From fa3b16900e5fd81a336233a43fbd27ce77048700 Mon Sep 17 00:00:00 2001 From: William Troup Date: Mon, 2 Sep 2024 13:41:27 +0100 Subject: [PATCH 01/14] Updated to v1.8.0. --- README.md | 10 +++++----- README_NUGET.md | 10 +++++----- dist/peek.esm.js | 2 +- dist/peek.js | 2 +- dist/peek.js.css | 2 +- dist/peek.min.js | 2 +- docs/CHANGE_LOG.md | 2 +- package-lock.json | 4 ++-- package.json | 2 +- peek.js.nuspec | 2 +- src/peek.js.scss | 2 +- src/peek.ts | 4 ++-- src/ts/api.ts | 2 +- src/ts/constant.ts | 2 +- src/ts/data/default.ts | 2 +- src/ts/data/enum.ts | 2 +- src/ts/data/is.ts | 2 +- src/ts/dom/dom.ts | 2 +- src/ts/options/config.ts | 2 +- src/ts/options/options.ts | 2 +- src/ts/type.ts | 2 +- 21 files changed, 31 insertions(+), 31 deletions(-) diff --git a/README.md b/README.md index bb550af..5c10300 100644 --- a/README.md +++ b/README.md @@ -2,15 +2,15 @@ Peek.js [![Tweet](https://img.shields.io/twitter/url/http/shields.io.svg?style=social)](https://twitter.com/intent/tweet?text=Peek.js%2C%20a%20free%20JavaScript%json%20converter&url=https://github.com/williamtroup/Peek.js&hashtags=javascript,element,property,viewer) -[![npm](https://img.shields.io/badge/npmjs-v1.7.0-blue)](https://www.npmjs.com/package/jpeek.js) -[![nuget](https://img.shields.io/badge/nuget-v1.7.0-purple)](https://www.nuget.org/packages/Peek.js/) +[![npm](https://img.shields.io/badge/npmjs-v1.8.0-blue)](https://www.npmjs.com/package/jpeek.js) +[![nuget](https://img.shields.io/badge/nuget-v1.8.0-purple)](https://www.nuget.org/packages/Peek.js/) [![license](https://img.shields.io/badge/license-MIT-green)](https://github.com/williamtroup/Peek.js/blob/main/LICENSE.txt) [![discussions Welcome](https://img.shields.io/badge/discussions-Welcome-red)](https://github.com/williamtroup/Peek.js/discussions) [![coded by William Troup](https://img.shields.io/badge/coded_by-William_Troup-yellow)](https://william-troup.com/) >

🐛 A lightweight JavaScript library that attaches a viewer to a specific node type, allowing you to view the CSS properties, attributes, and size/position.

->

v1.7.0

+>

v1.8.0


![Peek.js - CSS Mode](docs/images/css-mode.png) @@ -64,8 +64,8 @@ npm install jpeek.js You can also use the following CDN links: ```markdown -https://cdn.jsdelivr.net/gh/williamtroup/Peek.js@1.7.0/dist/peek.min.js -https://cdn.jsdelivr.net/gh/williamtroup/Peek.js@1.7.0/dist/peek.js.min.css +https://cdn.jsdelivr.net/gh/williamtroup/Peek.js@1.8.0/dist/peek.min.js +https://cdn.jsdelivr.net/gh/williamtroup/Peek.js@1.8.0/dist/peek.js.min.css ```

diff --git a/README_NUGET.md b/README_NUGET.md index 66b483b..5b5d008 100644 --- a/README_NUGET.md +++ b/README_NUGET.md @@ -1,8 +1,8 @@ -# Peek.js v1.7.0 +# Peek.js v1.8.0 [![Tweet](https://img.shields.io/twitter/url/http/shields.io.svg?style=social)](https://twitter.com/intent/tweet?text=Peek.js%2C%20a%20free%20JavaScript%json%20converter&url=https://github.com/williamtroup/Peek.js&hashtags=javascript,element,property,viewer) -[![npm](https://img.shields.io/badge/npmjs-v1.7.0-blue)](https://www.npmjs.com/package/jpeek.js) -[![nuget](https://img.shields.io/badge/nuget-v1.7.0-purple)](https://www.nuget.org/packages/Peek.js/) +[![npm](https://img.shields.io/badge/npmjs-v1.8.0-blue)](https://www.npmjs.com/package/jpeek.js) +[![nuget](https://img.shields.io/badge/nuget-v1.8.0-purple)](https://www.nuget.org/packages/Peek.js/) [![license](https://img.shields.io/badge/license-MIT-green)](https://github.com/williamtroup/Peek.js/blob/main/LICENSE.txt) [![discussions Welcome](https://img.shields.io/badge/discussions-Welcome-red)](https://github.com/williamtroup/Peek.js/discussions) [![coded by William Troup](https://img.shields.io/badge/coded_by-William_Troup-yellow)](https://william-troup.com/) @@ -47,8 +47,8 @@ npm install jpeek.js You can also use the following CDN links: ```markdown -https://cdn.jsdelivr.net/gh/williamtroup/Peek.js@1.7.0/dist/peek.min.js -https://cdn.jsdelivr.net/gh/williamtroup/Peek.js@1.7.0/dist/peek.js.min.css +https://cdn.jsdelivr.net/gh/williamtroup/Peek.js@1.8.0/dist/peek.min.js +https://cdn.jsdelivr.net/gh/williamtroup/Peek.js@1.8.0/dist/peek.js.min.css ``` diff --git a/dist/peek.esm.js b/dist/peek.esm.js index eb679bc..a2883da 100644 --- a/dist/peek.esm.js +++ b/dist/peek.esm.js @@ -756,7 +756,7 @@ var i; return de; }, getVersion: function() { - return "1.7.0"; + return "1.8.0"; } }; (() => { diff --git a/dist/peek.js b/dist/peek.js index 1d2d9c5..e123963 100644 --- a/dist/peek.js +++ b/dist/peek.js @@ -758,7 +758,7 @@ var i; return de; }, getVersion: function() { - return "1.7.0"; + return "1.8.0"; } }; (() => { diff --git a/dist/peek.js.css b/dist/peek.js.css index 77b5f2f..96f8e21 100644 --- a/dist/peek.js.css +++ b/dist/peek.js.css @@ -1,5 +1,5 @@ /* - * Peek.js Library v1.7.0 + * Peek.js Library v1.8.0 * * Copyright 2024 Bunoon * Released under the MIT License diff --git a/dist/peek.min.js b/dist/peek.min.js index fc10689..f9f7169 100644 --- a/dist/peek.min.js +++ b/dist/peek.min.js @@ -1 +1 @@ -"use strict";var e,t,n,o,r,i;(e=>{function t(e){return null!=e&&""!==e.toString()}function n(e){return t(e)&&"object"==typeof e}function o(e){return n(e)&&e instanceof Array}e.defined=t,e.definedObject=n,e.definedBoolean=function(e){return t(e)&&"boolean"==typeof e},e.definedString=function(e){return t(e)&&"string"==typeof e},e.definedFunction=function(e){return t(e)&&"function"==typeof e},e.definedNumber=function(e){return t(e)&&"number"==typeof e},e.definedArray=o,e.definedDate=function(e){return n(e)&&e instanceof Date},e.invalidOptionArray=function(e,t=1){return!o(e)||e.length=2&&e.length<=7;return t=!(!t||"#"!==e[0])&&isNaN(+e.substring(1,e.length-1)),t},e.isRgbColor=function(e){return e.startsWith("rgb")||e.startsWith("rgba")}})(e||(e={})),(t||(t={})).PEEK_JS_IGNORE_STATE_ATTRIBUTE="data-peek-js-ignore-state",(n=>{function o(n,o,r="",i=!1){const l=o.toLowerCase();let s="text"===l?document.createTextNode(""):document.createElement(l);return s.setAttribute(t.PEEK_JS_IGNORE_STATE_ATTRIBUTE,"ignore"),e.definedString(r)&&(s.className=r),i?n.insertBefore(s,n.children[0]):n.appendChild(s),s}function r(){const e=document.documentElement;return{left:e.scrollLeft-(e.clientLeft||0),top:e.scrollTop-(e.clientTop||0)}}n.create=o,n.createWithHTML=function(e,n,r,i,l=!1){const s=o(e,n,r,l);return s.innerHTML=i,s.setAttribute(t.PEEK_JS_IGNORE_STATE_ATTRIBUTE,"ignore"),s},n.cancelBubble=function(e){e.preventDefault(),e.stopPropagation()},n.getScrollPosition=r,n.showElementAtMousePosition=function(e,t){if("block"!==t.style.display){let n=e.pageX,o=e.pageY;const i=r();t.style.display="block",n+t.offsetWidth>window.innerWidth?n-=t.offsetWidth:n++,o+t.offsetHeight>window.innerHeight?o-=t.offsetHeight:o++,n{function n(t,n){return e.definedArray(t)?t:n}t.getAnyString=function(e,t){return"string"==typeof e?e:t},t.getString=function(t,n){return e.definedString(t)?t:n},t.getBoolean=function(t,n){return e.definedBoolean(t)?t:n},t.getNumber=function(t,n){return e.definedNumber(t)?t:n},t.getArray=n,t.getObject=function(t,n){return e.definedObject(t)?t:n},t.getStringOrArray=function(t,o){let r=o;if(e.definedString(t)){const e=t.toString().split(" ");0===e.length?t=o:r=e}else r=n(t,o);return r}})(o||(o={})),(e=>{let t;(t=e.Options||(e.Options={})).get=function(e=null){let t=o.getObject(e,{});return t.dialogDisplayDelay=o.getNumber(t.dialogDisplayDelay,1e3),t.searchDelayDelay=o.getNumber(t.searchDelayDelay,500),t=function(e){return e.text=o.getObject(e.text,{}),e.text.cssText=o.getAnyString(e.text.cssText,"CSS"),e.text.attributesText=o.getAnyString(e.text.attributesText,"Attributes"),e.text.sizeText=o.getAnyString(e.text.sizeText,"Size"),e.text.classesText=o.getAnyString(e.text.classesText,"Classes"),e.text.noAttributesAvailableText=o.getAnyString(e.text.noAttributesAvailableText,"No attributes are available."),e.text.closeText=o.getAnyString(e.text.closeText,"Close"),e.text.copyText=o.getAnyString(e.text.copyText,"Copy"),e.text.copySymbolText=o.getAnyString(e.text.copySymbolText,"❐"),e.text.pasteText=o.getAnyString(e.text.pasteText,"Paste"),e.text.pasteSymbolText=o.getAnyString(e.text.pasteSymbolText,"☐"),e.text.removeText=o.getAnyString(e.text.removeText,"Remove"),e.text.removeSymbolText=o.getAnyString(e.text.removeSymbolText,"✕"),e.text.noClassesAvailableText=o.getAnyString(e.text.noClassesAvailableText,"No classes are available."),e.text.searchPropertiesPlaceHolderText=o.getAnyString(e.text.searchPropertiesPlaceHolderText,"Search properties..."),e.text.clearText=o.getAnyString(e.text.clearText,"Clear"),e.text.clearSymbolText=o.getAnyString(e.text.clearSymbolText,"✕"),e.text.noPropertiesFoundForSearchText=o.getAnyString(e.text.noPropertiesFoundForSearchText,"No properties were found for your search."),e.text.dialogMovedSymbolText=o.getAnyString(e.text.dialogMovedSymbolText,"✸"),e.text.propertyValuePlaceHolderText=o.getAnyString(e.text.propertyValuePlaceHolderText,"Enter value..."),e.text.modeNotSupportedText=o.getAnyString(e.text.modeNotSupportedText,"The mode you have specified is not supported."),e.text.unknownModeText=o.getAnyString(e.text.unknownModeText,"Unknown Mode"),e.text.moveUpText=o.getAnyString(e.text.moveUpText,"Move Up"),e.text.moveUpSymbolText=o.getAnyString(e.text.moveUpSymbolText,"↑"),e.text.moveDownText=o.getAnyString(e.text.moveDownText,"Move Down"),e.text.moveDownSymbolText=o.getAnyString(e.text.moveDownSymbolText,"↓"),e.text.removeElementSymbolText=o.getAnyString(e.text.removeElementSymbolText,"⌫"),e.text.lockText=o.getAnyString(e.text.lockText,"Lock"),e}(t),t}})(r||(r={})),(e=>{let t;(t=e.Options||(e.Options={})).get=function(e){let t=o.getObject(e,{});return t.nodeType=o.getStringOrArray(t.nodeType,[]),t.mode=o.getNumber(t.mode,1),t.titleText=o.getString(t.titleText,""),t.showOnly=o.getStringOrArray(t.showOnly,[]),t.allowEditing=o.getBoolean(t.allowEditing,!1),t.showIdOrNameInTitle=o.getBoolean(t.showIdOrNameInTitle,!0),t.showNodeNameInTitle=o.getBoolean(t.showNodeNameInTitle,!1),t.ignoreValues=o.getStringOrArray(t.ignoreValues,[]),t.showLockButtonInTitle=o.getBoolean(t.showLockButtonInTitle,!0),t}})(i||(i={})),(()=>{let o={},l=null,s=null,a=null,c=null,u=null,d=0,p=null,x=null,f=null,g=null,y=null,m=null,T=null,v=0,b=null,h=[],S={},A=null,L=!1,w=0,E=0,N=null,O=0,M=0,H=!1,P=0,k=0;function C(){e.definedObject(l)&&(D(),document.body.removeChild(l),l=null),l=n.create(document.body,"div","peek-js"),l.onmousemove=n.cancelBubble,s=n.create(l,"div","dialog-title-bar"),c=n.create(l,"div","dialog-search"),p=n.create(l,"div","dialog-contents"),f=n.create(l,"div","dialog-buttons"),g=n.createWithHTML(f,"button","copy",o.text.copyText),g.onclick=I,u=n.create(c,"input"),u.placeholder=o.text.searchPropertiesPlaceHolderText,u.type="text",u.onkeyup=j,u.onpaste=j,u.onfocus=()=>u.select();const t=n.createWithHTML(c,"button","clear-small",o.text.clearSymbolText);t.title=o.text.clearText,t.onclick=_;var r,i;n.createWithHTML(f,"button","close",o.text.closeText).onclick=D,y=n.createWithHTML(f,"button","remove",o.text.removeElementSymbolText),y.onclick=$,y.title=o.text.removeText,m=n.createWithHTML(f,"button","move-up",o.text.moveUpSymbolText),m.onclick=R,m.title=o.text.moveUpText,T=n.createWithHTML(f,"button","move-down",o.text.moveDownSymbolText),T.onclick=U,T.title=o.text.moveDownText,i=l,(r=s).onmousedown=e=>{!function(e,t){H||(N=t,H=!0,P=e.pageX-N.offsetLeft,k=e.pageY-N.offsetTop,O=N.offsetLeft,M=N.offsetTop)}(e,i)},i.onmousemove=e=>{q(e,!0)},r.onmouseup=()=>{Y()},r.oncontextmenu=()=>{Y()},document.addEventListener("mousemove",q),document.addEventListener("mouseleave",Q)}function W(t=null){if(!L&&e.defined(b)){let r=b.titleText;if(s.innerHTML="",e.definedString(r)||(r=1===b.mode?o.text.cssText:2===b.mode?o.text.attributesText:3===b.mode?o.text.sizeText:4===b.mode?o.text.classesText:o.text.unknownModeText),n.createWithHTML(s,"span","title",r),w>1&&b.showNodeNameInTitle&&(n.createWithHTML(s,"span","dash"," - "),n.createWithHTML(s,"span","node-name",`[${t.nodeName.toLowerCase()}]`)),b.showIdOrNameInTitle&&e.defined(t)){const o=t.getAttribute("id"),r=t.getAttribute("name");e.definedString(o)?(n.createWithHTML(s,"span","dash"," - "),n.createWithHTML(s,"span","id-or-name",o)):e.definedString(r)&&(n.createWithHTML(s,"span","dash"," - "),n.createWithHTML(s,"span","id-or-name",r))}b.showLockButtonInTitle&&(a=n.createWithHTML(s,"button","lock",o.text.dialogMovedSymbolText),a.title=o.text.lockText,a.onclick=()=>B())}}function B(){L||(n.createWithHTML(s,"span","locked",`${o.text.dialogMovedSymbolText} `,!0),e.defined(a)&&(a.parentNode.removeChild(a),a=null),L=!0)}function D(){l.style.display="none",L=!1,u.value=""}function I(){const e=[];for(let t in S)S.hasOwnProperty(t)&&(1===b.mode?e.push(`${t}: ${S[t]};`):2===b.mode?e.push(`${t}="${S[t]}"`):4===b.mode&&e.push(S[t]));1===b.mode?navigator.clipboard.writeText(`${A.nodeName.toLowerCase()} { \n ${e.join("\n")} \n }`):2!==b.mode&&4!==b.mode||navigator.clipboard.writeText(e.join(" "))}function $(){var e;null==(e=A.parentNode)||e.removeChild(A),D()}function j(){0!==d&&(clearTimeout(d),d=0),d=setTimeout((()=>{const t=p.getElementsByClassName("property-name"),n=[].slice.call(t),o=n.length,r=u.value.toLowerCase();let i=0;for(let t=0;t-1?(o.style.removeProperty("display"),i++):o.style.display="none"}}0===i?x.style.display="block":x.style.removeProperty("display")}),o.searchDelayDelay)}function _(){u.value="",u.focus(),j()}function R(){null!==A.parentNode&&null!==A.previousElementSibling&&A.parentNode.insertBefore(A,A.previousElementSibling)}function U(){null!==A.parentNode&&null!==A.nextElementSibling&&A.parentNode.insertBefore(A.nextElementSibling,A)}function V(t){e.defined(b)&&(p.innerHTML="",p.scrollTop=0,S={},E=0,A=t,W(t),1===b.mode||4===b.mode||2===b.mode?g.style.removeProperty("display"):g.style.display="none",b.allowEditing?(y.style.removeProperty("display"),m.style.removeProperty("display"),T.style.removeProperty("display")):(y.style.display="none",m.style.display="none",T.style.display="none"),x=n.createWithHTML(p,"span","no-search-results",o.text.noPropertiesFoundForSearchText),1===b.mode?function(e){const t=getComputedStyle(e),n=t.length;for(let o=0;o0){let t=1;for(let n of e.classList)F(e,t.toString(),n),t++}else p.innerHTML="",n.createWithHTML(p,"span","warning",o.text.noClassesAvailableText)}(t):n.createWithHTML(p,"span","warning",o.text.modeNotSupportedText),E<=15?c.style.display="none":c.style.removeProperty("display"))}function F(t,r,i,l=!0){if(function(e){return 0===b.showOnly.length||b.showOnly.indexOf(e)>-1}(r)&&function(e){return 0===b.ignoreValues.length||b.ignoreValues.indexOf(e)<=-1}(i)){const s=n.create(p,"div","property-row");n.createWithHTML(s,"div","property-name",r);const a=n.create(s,"div","property-value"),c=n.create(a,"input");(e.hexColor(i)||e.isRgbColor(i))&&(c.classList.add("property-value-color"),c.style.borderLeftColor=i),c.placeholder=o.text.propertyValuePlaceHolderText,c.onfocus=()=>c.select();const u=n.createWithHTML(s,"button","copy-small",o.text.copySymbolText);if(u.title=o.text.copyText,u.onclick=()=>navigator.clipboard.writeText(i),b.allowEditing&&l){const e=n.createWithHTML(s,"button","paste-small",o.text.pasteSymbolText),l=n.createWithHTML(s,"button","remove-small",o.text.removeSymbolText);e.title=o.text.pasteText,l.title=o.text.removeText,e.onclick=()=>function(e,t,n){navigator.clipboard.readText().then((o=>{t.value=o,z(e,n,t)}))}(t,c,r),l.onclick=()=>function(e,t,n,o){1===b.mode?(t.style.removeProperty(n),e.parentNode.removeChild(e)):2===b.mode?(t.removeAttribute(n),e.parentNode.removeChild(e)):4===b.mode&&(t.classList.remove(o),e.parentNode.removeChild(e))}(s,t,r,i)}c.type="text",c.value=i,S[r]=i,E++,b.allowEditing&&l?c.onkeyup=e=>function(e,t,n,o){"Enter"===e.code&&z(o,t,n)}(e,r,c,t):c.readOnly=!0}}function z(t,n,o){1===b.mode?t.style.setProperty(n,o.value):2===b.mode?t.setAttribute(n,o.value):4===b.mode&&t.classList.replace(t.classList[parseInt(n)-1],o.value),S[n]=o.value,e.hexColor(o.value)||e.isRgbColor(o.value)?(o.classList.add("property-value-color"),o.style.borderLeftColor=o.value):o.classList.remove("property-value-color")}function G(n){const o=n.getAttribute(t.PEEK_JS_IGNORE_STATE_ATTRIBUTE);e.definedString(o)||"ignore"===o||(n.addEventListener("mousemove",(e=>{J(e,n)})),h.push(n))}function J(t,r){!L&&e.defined(b)&&(n.cancelBubble(t),X(),v=setTimeout((()=>{V(r),n.showElementAtMousePosition(t,l)}),o.dialogDisplayDelay))}function K(){L||(X(),D())}function X(){0!==v&&(clearTimeout(v),v=0)}function Y(){H&&(H=!1,N=null,O=0,M=0)}function q(e,t=!1){t&&n.cancelBubble(e),H&&(B(),N.style.left=e.pageX-P+"px",N.style.top=e.pageY-k+"px")}function Q(){H&&(N.style.left=`${O}px`,N.style.top=`${M}px`,H=!1,N=null,O=0,M=0)}const Z={start:function(t){return e.definedObject(b)||(b=i.Options.get(t),W(),function(){const e=b.nodeType;w=e.length;for(let t=0;t{J(t,e)}))}h=[],window.removeEventListener("mousemove",K),D()}()),Z},close:function(){return D(),Z},setConfiguration:function(t){if(e.definedObject(t)){let n=!1;const i=o;for(let e in t)t.hasOwnProperty(e)&&o.hasOwnProperty(e)&&i[e]!==t[e]&&(i[e]=t[e],n=!0);n&&(o=r.Options.get(i),C(),e.definedObject(b)&&W())}return Z},getVersion:function(){return"1.7.0"}};o=r.Options.get(),document.addEventListener("DOMContentLoaded",(()=>{C()})),e.defined(window.$peek)||(window.$peek=Z)})(); \ No newline at end of file +"use strict";var e,t,n,o,r,i;(e=>{function t(e){return null!=e&&""!==e.toString()}function n(e){return t(e)&&"object"==typeof e}function o(e){return n(e)&&e instanceof Array}e.defined=t,e.definedObject=n,e.definedBoolean=function(e){return t(e)&&"boolean"==typeof e},e.definedString=function(e){return t(e)&&"string"==typeof e},e.definedFunction=function(e){return t(e)&&"function"==typeof e},e.definedNumber=function(e){return t(e)&&"number"==typeof e},e.definedArray=o,e.definedDate=function(e){return n(e)&&e instanceof Date},e.invalidOptionArray=function(e,t=1){return!o(e)||e.length=2&&e.length<=7;return t=!(!t||"#"!==e[0])&&isNaN(+e.substring(1,e.length-1)),t},e.isRgbColor=function(e){return e.startsWith("rgb")||e.startsWith("rgba")}})(e||(e={})),(t||(t={})).PEEK_JS_IGNORE_STATE_ATTRIBUTE="data-peek-js-ignore-state",(n=>{function o(n,o,r="",i=!1){const l=o.toLowerCase();let s="text"===l?document.createTextNode(""):document.createElement(l);return s.setAttribute(t.PEEK_JS_IGNORE_STATE_ATTRIBUTE,"ignore"),e.definedString(r)&&(s.className=r),i?n.insertBefore(s,n.children[0]):n.appendChild(s),s}function r(){const e=document.documentElement;return{left:e.scrollLeft-(e.clientLeft||0),top:e.scrollTop-(e.clientTop||0)}}n.create=o,n.createWithHTML=function(e,n,r,i,l=!1){const s=o(e,n,r,l);return s.innerHTML=i,s.setAttribute(t.PEEK_JS_IGNORE_STATE_ATTRIBUTE,"ignore"),s},n.cancelBubble=function(e){e.preventDefault(),e.stopPropagation()},n.getScrollPosition=r,n.showElementAtMousePosition=function(e,t){if("block"!==t.style.display){let n=e.pageX,o=e.pageY;const i=r();t.style.display="block",n+t.offsetWidth>window.innerWidth?n-=t.offsetWidth:n++,o+t.offsetHeight>window.innerHeight?o-=t.offsetHeight:o++,n{function n(t,n){return e.definedArray(t)?t:n}t.getAnyString=function(e,t){return"string"==typeof e?e:t},t.getString=function(t,n){return e.definedString(t)?t:n},t.getBoolean=function(t,n){return e.definedBoolean(t)?t:n},t.getNumber=function(t,n){return e.definedNumber(t)?t:n},t.getArray=n,t.getObject=function(t,n){return e.definedObject(t)?t:n},t.getStringOrArray=function(t,o){let r=o;if(e.definedString(t)){const e=t.toString().split(" ");0===e.length?t=o:r=e}else r=n(t,o);return r}})(o||(o={})),(e=>{let t;(t=e.Options||(e.Options={})).get=function(e=null){let t=o.getObject(e,{});return t.dialogDisplayDelay=o.getNumber(t.dialogDisplayDelay,1e3),t.searchDelayDelay=o.getNumber(t.searchDelayDelay,500),t=function(e){return e.text=o.getObject(e.text,{}),e.text.cssText=o.getAnyString(e.text.cssText,"CSS"),e.text.attributesText=o.getAnyString(e.text.attributesText,"Attributes"),e.text.sizeText=o.getAnyString(e.text.sizeText,"Size"),e.text.classesText=o.getAnyString(e.text.classesText,"Classes"),e.text.noAttributesAvailableText=o.getAnyString(e.text.noAttributesAvailableText,"No attributes are available."),e.text.closeText=o.getAnyString(e.text.closeText,"Close"),e.text.copyText=o.getAnyString(e.text.copyText,"Copy"),e.text.copySymbolText=o.getAnyString(e.text.copySymbolText,"❐"),e.text.pasteText=o.getAnyString(e.text.pasteText,"Paste"),e.text.pasteSymbolText=o.getAnyString(e.text.pasteSymbolText,"☐"),e.text.removeText=o.getAnyString(e.text.removeText,"Remove"),e.text.removeSymbolText=o.getAnyString(e.text.removeSymbolText,"✕"),e.text.noClassesAvailableText=o.getAnyString(e.text.noClassesAvailableText,"No classes are available."),e.text.searchPropertiesPlaceHolderText=o.getAnyString(e.text.searchPropertiesPlaceHolderText,"Search properties..."),e.text.clearText=o.getAnyString(e.text.clearText,"Clear"),e.text.clearSymbolText=o.getAnyString(e.text.clearSymbolText,"✕"),e.text.noPropertiesFoundForSearchText=o.getAnyString(e.text.noPropertiesFoundForSearchText,"No properties were found for your search."),e.text.dialogMovedSymbolText=o.getAnyString(e.text.dialogMovedSymbolText,"✸"),e.text.propertyValuePlaceHolderText=o.getAnyString(e.text.propertyValuePlaceHolderText,"Enter value..."),e.text.modeNotSupportedText=o.getAnyString(e.text.modeNotSupportedText,"The mode you have specified is not supported."),e.text.unknownModeText=o.getAnyString(e.text.unknownModeText,"Unknown Mode"),e.text.moveUpText=o.getAnyString(e.text.moveUpText,"Move Up"),e.text.moveUpSymbolText=o.getAnyString(e.text.moveUpSymbolText,"↑"),e.text.moveDownText=o.getAnyString(e.text.moveDownText,"Move Down"),e.text.moveDownSymbolText=o.getAnyString(e.text.moveDownSymbolText,"↓"),e.text.removeElementSymbolText=o.getAnyString(e.text.removeElementSymbolText,"⌫"),e.text.lockText=o.getAnyString(e.text.lockText,"Lock"),e}(t),t}})(r||(r={})),(e=>{let t;(t=e.Options||(e.Options={})).get=function(e){let t=o.getObject(e,{});return t.nodeType=o.getStringOrArray(t.nodeType,[]),t.mode=o.getNumber(t.mode,1),t.titleText=o.getString(t.titleText,""),t.showOnly=o.getStringOrArray(t.showOnly,[]),t.allowEditing=o.getBoolean(t.allowEditing,!1),t.showIdOrNameInTitle=o.getBoolean(t.showIdOrNameInTitle,!0),t.showNodeNameInTitle=o.getBoolean(t.showNodeNameInTitle,!1),t.ignoreValues=o.getStringOrArray(t.ignoreValues,[]),t.showLockButtonInTitle=o.getBoolean(t.showLockButtonInTitle,!0),t}})(i||(i={})),(()=>{let o={},l=null,s=null,a=null,c=null,u=null,d=0,p=null,x=null,f=null,g=null,y=null,m=null,T=null,v=0,b=null,h=[],S={},A=null,L=!1,w=0,E=0,N=null,O=0,M=0,H=!1,P=0,k=0;function C(){e.definedObject(l)&&(D(),document.body.removeChild(l),l=null),l=n.create(document.body,"div","peek-js"),l.onmousemove=n.cancelBubble,s=n.create(l,"div","dialog-title-bar"),c=n.create(l,"div","dialog-search"),p=n.create(l,"div","dialog-contents"),f=n.create(l,"div","dialog-buttons"),g=n.createWithHTML(f,"button","copy",o.text.copyText),g.onclick=I,u=n.create(c,"input"),u.placeholder=o.text.searchPropertiesPlaceHolderText,u.type="text",u.onkeyup=j,u.onpaste=j,u.onfocus=()=>u.select();const t=n.createWithHTML(c,"button","clear-small",o.text.clearSymbolText);t.title=o.text.clearText,t.onclick=_;var r,i;n.createWithHTML(f,"button","close",o.text.closeText).onclick=D,y=n.createWithHTML(f,"button","remove",o.text.removeElementSymbolText),y.onclick=$,y.title=o.text.removeText,m=n.createWithHTML(f,"button","move-up",o.text.moveUpSymbolText),m.onclick=R,m.title=o.text.moveUpText,T=n.createWithHTML(f,"button","move-down",o.text.moveDownSymbolText),T.onclick=U,T.title=o.text.moveDownText,i=l,(r=s).onmousedown=e=>{!function(e,t){H||(N=t,H=!0,P=e.pageX-N.offsetLeft,k=e.pageY-N.offsetTop,O=N.offsetLeft,M=N.offsetTop)}(e,i)},i.onmousemove=e=>{q(e,!0)},r.onmouseup=()=>{Y()},r.oncontextmenu=()=>{Y()},document.addEventListener("mousemove",q),document.addEventListener("mouseleave",Q)}function W(t=null){if(!L&&e.defined(b)){let r=b.titleText;if(s.innerHTML="",e.definedString(r)||(r=1===b.mode?o.text.cssText:2===b.mode?o.text.attributesText:3===b.mode?o.text.sizeText:4===b.mode?o.text.classesText:o.text.unknownModeText),n.createWithHTML(s,"span","title",r),w>1&&b.showNodeNameInTitle&&(n.createWithHTML(s,"span","dash"," - "),n.createWithHTML(s,"span","node-name",`[${t.nodeName.toLowerCase()}]`)),b.showIdOrNameInTitle&&e.defined(t)){const o=t.getAttribute("id"),r=t.getAttribute("name");e.definedString(o)?(n.createWithHTML(s,"span","dash"," - "),n.createWithHTML(s,"span","id-or-name",o)):e.definedString(r)&&(n.createWithHTML(s,"span","dash"," - "),n.createWithHTML(s,"span","id-or-name",r))}b.showLockButtonInTitle&&(a=n.createWithHTML(s,"button","lock",o.text.dialogMovedSymbolText),a.title=o.text.lockText,a.onclick=()=>B())}}function B(){L||(n.createWithHTML(s,"span","locked",`${o.text.dialogMovedSymbolText} `,!0),e.defined(a)&&(a.parentNode.removeChild(a),a=null),L=!0)}function D(){l.style.display="none",L=!1,u.value=""}function I(){const e=[];for(let t in S)S.hasOwnProperty(t)&&(1===b.mode?e.push(`${t}: ${S[t]};`):2===b.mode?e.push(`${t}="${S[t]}"`):4===b.mode&&e.push(S[t]));1===b.mode?navigator.clipboard.writeText(`${A.nodeName.toLowerCase()} { \n ${e.join("\n")} \n }`):2!==b.mode&&4!==b.mode||navigator.clipboard.writeText(e.join(" "))}function $(){var e;null==(e=A.parentNode)||e.removeChild(A),D()}function j(){0!==d&&(clearTimeout(d),d=0),d=setTimeout((()=>{const t=p.getElementsByClassName("property-name"),n=[].slice.call(t),o=n.length,r=u.value.toLowerCase();let i=0;for(let t=0;t-1?(o.style.removeProperty("display"),i++):o.style.display="none"}}0===i?x.style.display="block":x.style.removeProperty("display")}),o.searchDelayDelay)}function _(){u.value="",u.focus(),j()}function R(){null!==A.parentNode&&null!==A.previousElementSibling&&A.parentNode.insertBefore(A,A.previousElementSibling)}function U(){null!==A.parentNode&&null!==A.nextElementSibling&&A.parentNode.insertBefore(A.nextElementSibling,A)}function V(t){e.defined(b)&&(p.innerHTML="",p.scrollTop=0,S={},E=0,A=t,W(t),1===b.mode||4===b.mode||2===b.mode?g.style.removeProperty("display"):g.style.display="none",b.allowEditing?(y.style.removeProperty("display"),m.style.removeProperty("display"),T.style.removeProperty("display")):(y.style.display="none",m.style.display="none",T.style.display="none"),x=n.createWithHTML(p,"span","no-search-results",o.text.noPropertiesFoundForSearchText),1===b.mode?function(e){const t=getComputedStyle(e),n=t.length;for(let o=0;o0){let t=1;for(let n of e.classList)F(e,t.toString(),n),t++}else p.innerHTML="",n.createWithHTML(p,"span","warning",o.text.noClassesAvailableText)}(t):n.createWithHTML(p,"span","warning",o.text.modeNotSupportedText),E<=15?c.style.display="none":c.style.removeProperty("display"))}function F(t,r,i,l=!0){if(function(e){return 0===b.showOnly.length||b.showOnly.indexOf(e)>-1}(r)&&function(e){return 0===b.ignoreValues.length||b.ignoreValues.indexOf(e)<=-1}(i)){const s=n.create(p,"div","property-row");n.createWithHTML(s,"div","property-name",r);const a=n.create(s,"div","property-value"),c=n.create(a,"input");(e.hexColor(i)||e.isRgbColor(i))&&(c.classList.add("property-value-color"),c.style.borderLeftColor=i),c.placeholder=o.text.propertyValuePlaceHolderText,c.onfocus=()=>c.select();const u=n.createWithHTML(s,"button","copy-small",o.text.copySymbolText);if(u.title=o.text.copyText,u.onclick=()=>navigator.clipboard.writeText(i),b.allowEditing&&l){const e=n.createWithHTML(s,"button","paste-small",o.text.pasteSymbolText),l=n.createWithHTML(s,"button","remove-small",o.text.removeSymbolText);e.title=o.text.pasteText,l.title=o.text.removeText,e.onclick=()=>function(e,t,n){navigator.clipboard.readText().then((o=>{t.value=o,z(e,n,t)}))}(t,c,r),l.onclick=()=>function(e,t,n,o){1===b.mode?(t.style.removeProperty(n),e.parentNode.removeChild(e)):2===b.mode?(t.removeAttribute(n),e.parentNode.removeChild(e)):4===b.mode&&(t.classList.remove(o),e.parentNode.removeChild(e))}(s,t,r,i)}c.type="text",c.value=i,S[r]=i,E++,b.allowEditing&&l?c.onkeyup=e=>function(e,t,n,o){"Enter"===e.code&&z(o,t,n)}(e,r,c,t):c.readOnly=!0}}function z(t,n,o){1===b.mode?t.style.setProperty(n,o.value):2===b.mode?t.setAttribute(n,o.value):4===b.mode&&t.classList.replace(t.classList[parseInt(n)-1],o.value),S[n]=o.value,e.hexColor(o.value)||e.isRgbColor(o.value)?(o.classList.add("property-value-color"),o.style.borderLeftColor=o.value):o.classList.remove("property-value-color")}function G(n){const o=n.getAttribute(t.PEEK_JS_IGNORE_STATE_ATTRIBUTE);e.definedString(o)||"ignore"===o||(n.addEventListener("mousemove",(e=>{J(e,n)})),h.push(n))}function J(t,r){!L&&e.defined(b)&&(n.cancelBubble(t),X(),v=setTimeout((()=>{V(r),n.showElementAtMousePosition(t,l)}),o.dialogDisplayDelay))}function K(){L||(X(),D())}function X(){0!==v&&(clearTimeout(v),v=0)}function Y(){H&&(H=!1,N=null,O=0,M=0)}function q(e,t=!1){t&&n.cancelBubble(e),H&&(B(),N.style.left=e.pageX-P+"px",N.style.top=e.pageY-k+"px")}function Q(){H&&(N.style.left=`${O}px`,N.style.top=`${M}px`,H=!1,N=null,O=0,M=0)}const Z={start:function(t){return e.definedObject(b)||(b=i.Options.get(t),W(),function(){const e=b.nodeType;w=e.length;for(let t=0;t{J(t,e)}))}h=[],window.removeEventListener("mousemove",K),D()}()),Z},close:function(){return D(),Z},setConfiguration:function(t){if(e.definedObject(t)){let n=!1;const i=o;for(let e in t)t.hasOwnProperty(e)&&o.hasOwnProperty(e)&&i[e]!==t[e]&&(i[e]=t[e],n=!0);n&&(o=r.Options.get(i),C(),e.definedObject(b)&&W())}return Z},getVersion:function(){return"1.8.0"}};o=r.Options.get(),document.addEventListener("DOMContentLoaded",(()=>{C()})),e.defined(window.$peek)||(window.$peek=Z)})(); \ No newline at end of file diff --git a/docs/CHANGE_LOG.md b/docs/CHANGE_LOG.md index 96dc182..1531628 100755 --- a/docs/CHANGE_LOG.md +++ b/docs/CHANGE_LOG.md @@ -1,6 +1,6 @@ # Peek.js - Change Log: -## Version 1.7.0: +## Version 1.8.0: #### **Start Options:** - Added a start option "ignore" (defaults to "[]"), which states the property values that only should be ignored. diff --git a/package-lock.json b/package-lock.json index 3b092a0..97eb30c 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "jpeek.js", - "version": "1.7.0", + "version": "1.8.0", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "jpeek.js", - "version": "1.7.0", + "version": "1.8.0", "license": "MIT", "devDependencies": { "@swc/core": "^1.7.5", diff --git a/package.json b/package.json index 716e2b2..1ff024f 100644 --- a/package.json +++ b/package.json @@ -2,7 +2,7 @@ "name": "jpeek.js", "title": "Peek.js", "description": "A lightweight JavaScript library that attaches a viewer to a specific node type, allowing you to view the CSS properties, attributes, and size/position.", - "version": "1.7.0", + "version": "1.8.0", "homepage": "https://www.william-troup.com/peek-js/", "author": { "name": "Bunoon" diff --git a/peek.js.nuspec b/peek.js.nuspec index f1e37a3..1a75d7e 100644 --- a/peek.js.nuspec +++ b/peek.js.nuspec @@ -2,7 +2,7 @@ jPeek.js - 1.7.0 + 1.8.0 Peek.js A lightweight JavaScript library that attaches a viewer to a specific node type, allowing you to view the CSS properties, attributes, and size/position. William Troup diff --git a/src/peek.js.scss b/src/peek.js.scss index 2ff7313..f7f83e9 100644 --- a/src/peek.js.scss +++ b/src/peek.js.scss @@ -1,5 +1,5 @@ /* - * Peek.js Library v1.7.0 + * Peek.js Library v1.8.0 * * Copyright 2024 Bunoon * Released under the MIT License diff --git a/src/peek.ts b/src/peek.ts index 5c88af7..237cb74 100644 --- a/src/peek.ts +++ b/src/peek.ts @@ -4,7 +4,7 @@ * A lightweight JavaScript library that attaches a viewer to a specific node type, allowing you to view the CSS properties, attributes, and size/position. * * @file peek.ts - * @version v1.7.0 + * @version v1.8.0 * @author Bunoon * @license MIT License * @copyright Bunoon 2024 @@ -719,7 +719,7 @@ type DialogProperties = Record; */ getVersion: function () : string { - return "1.7.0"; + return "1.8.0"; } }; diff --git a/src/ts/api.ts b/src/ts/api.ts index 61f0f83..df34816 100644 --- a/src/ts/api.ts +++ b/src/ts/api.ts @@ -4,7 +4,7 @@ * A lightweight JavaScript library that attaches a viewer to a specific node type, allowing you to view the CSS properties, attributes, and size/position. * * @file api.ts - * @version v1.7.0 + * @version v1.8.0 * @author Bunoon * @license MIT License * @copyright Bunoon 2024 diff --git a/src/ts/constant.ts b/src/ts/constant.ts index 08aaf63..06780ea 100644 --- a/src/ts/constant.ts +++ b/src/ts/constant.ts @@ -4,7 +4,7 @@ * A lightweight JavaScript library that attaches a viewer to a specific node type, allowing you to view the CSS properties, attributes, and size/position. * * @file constant.ts - * @version v1.7.0 + * @version v1.8.0 * @author Bunoon * @license MIT License * @copyright Bunoon 2024 diff --git a/src/ts/data/default.ts b/src/ts/data/default.ts index c7ee4e8..473f655 100644 --- a/src/ts/data/default.ts +++ b/src/ts/data/default.ts @@ -4,7 +4,7 @@ * A lightweight JavaScript library that attaches a viewer to a specific node type, allowing you to view the CSS properties, attributes, and size/position. * * @file default.ts - * @version v1.7.0 + * @version v1.8.0 * @author Bunoon * @license MIT License * @copyright Bunoon 2024 diff --git a/src/ts/data/enum.ts b/src/ts/data/enum.ts index f878ff3..90459a6 100644 --- a/src/ts/data/enum.ts +++ b/src/ts/data/enum.ts @@ -4,7 +4,7 @@ * A lightweight JavaScript library that attaches a viewer to a specific node type, allowing you to view the CSS properties, attributes, and size/position. * * @file enum.ts - * @version v1.7.0 + * @version v1.8.0 * @author Bunoon * @license MIT License * @copyright Bunoon 2024 diff --git a/src/ts/data/is.ts b/src/ts/data/is.ts index 97ebfaf..650fdc6 100644 --- a/src/ts/data/is.ts +++ b/src/ts/data/is.ts @@ -4,7 +4,7 @@ * A lightweight JavaScript library that attaches a viewer to a specific node type, allowing you to view the CSS properties, attributes, and size/position. * * @file is.ts - * @version v1.7.0 + * @version v1.8.0 * @author Bunoon * @license MIT License * @copyright Bunoon 2024 diff --git a/src/ts/dom/dom.ts b/src/ts/dom/dom.ts index 2e77292..3d90ce6 100644 --- a/src/ts/dom/dom.ts +++ b/src/ts/dom/dom.ts @@ -4,7 +4,7 @@ * A lightweight JavaScript library that attaches a viewer to a specific node type, allowing you to view the CSS properties, attributes, and size/position. * * @file dom.ts - * @version v1.7.0 + * @version v1.8.0 * @author Bunoon * @license MIT License * @copyright Bunoon 2024 diff --git a/src/ts/options/config.ts b/src/ts/options/config.ts index ae64bb7..b43bdc7 100644 --- a/src/ts/options/config.ts +++ b/src/ts/options/config.ts @@ -4,7 +4,7 @@ * A lightweight JavaScript library that attaches a viewer to a specific node type, allowing you to view the CSS properties, attributes, and size/position. * * @file config.ts - * @version v1.7.0 + * @version v1.8.0 * @author Bunoon * @license MIT License * @copyright Bunoon 2024 diff --git a/src/ts/options/options.ts b/src/ts/options/options.ts index 6c64465..570c30d 100644 --- a/src/ts/options/options.ts +++ b/src/ts/options/options.ts @@ -4,7 +4,7 @@ * A lightweight JavaScript library that attaches a viewer to a specific node type, allowing you to view the CSS properties, attributes, and size/position. * * @file options.ts - * @version v1.7.0 + * @version v1.8.0 * @author Bunoon * @license MIT License * @copyright Bunoon 2024 diff --git a/src/ts/type.ts b/src/ts/type.ts index e24d561..b869ca5 100644 --- a/src/ts/type.ts +++ b/src/ts/type.ts @@ -4,7 +4,7 @@ * A lightweight JavaScript library that attaches a viewer to a specific node type, allowing you to view the CSS properties, attributes, and size/position. * * @file type.ts - * @version v1.7.0 + * @version v1.8.0 * @author Bunoon * @license MIT License * @copyright Bunoon 2024 From 624113267c079e5f75cae76d38ec34ed4521875a Mon Sep 17 00:00:00 2001 From: William Troup Date: Mon, 2 Sep 2024 13:53:03 +0100 Subject: [PATCH 02/14] Updated to the latest NPM packages. --- docs/CHANGE_LOG.md | 6 +++ package-lock.json | 96 +++++++++++++++++++++++----------------------- package.json | 4 +- 3 files changed, 56 insertions(+), 50 deletions(-) diff --git a/docs/CHANGE_LOG.md b/docs/CHANGE_LOG.md index 1531628..d15b694 100755 --- a/docs/CHANGE_LOG.md +++ b/docs/CHANGE_LOG.md @@ -2,6 +2,12 @@ ## Version 1.8.0: +#### **Adjustments:** +- Updated to the latest NPM packages. + + +## Version 1.7.0: + #### **Start Options:** - Added a start option "ignore" (defaults to "[]"), which states the property values that only should be ignored. - Added start option "showLockButtonInTitle" (defaults to true), which states if the lock button should be shown in the title bar. diff --git a/package-lock.json b/package-lock.json index 97eb30c..067cbbe 100644 --- a/package-lock.json +++ b/package-lock.json @@ -9,9 +9,9 @@ "version": "1.8.0", "license": "MIT", "devDependencies": { - "@swc/core": "^1.7.5", + "@swc/core": "^1.7.22", "sass": "^1.77.8", - "terser": "^5.31.3", + "terser": "^5.31.6", "tsup": "^8.2.4", "typescript": "^5.5.4" } @@ -780,9 +780,9 @@ ] }, "node_modules/@swc/core": { - "version": "1.7.5", - "resolved": "https://registry.npmjs.org/@swc/core/-/core-1.7.5.tgz", - "integrity": "sha512-qKK0/Ta4qvxs/ok3XyYVPT7OBenwRn1sSINf1cKQTBHPqr7U/uB4k2GTl6JgEs8H4PiJrMTNWfMLTucIoVSfAg==", + "version": "1.7.22", + "resolved": "https://registry.npmjs.org/@swc/core/-/core-1.7.22.tgz", + "integrity": "sha512-Asn79WKqyjEuO2VEeSnVjn2YiRMToRhFJwOsQeqftBvwWMn1FGUuzVcXtkQFBk37si8Gh2Vkk/+p0u4K5NxDig==", "dev": true, "hasInstallScript": true, "license": "Apache-2.0", @@ -798,16 +798,16 @@ "url": "https://opencollective.com/swc" }, "optionalDependencies": { - "@swc/core-darwin-arm64": "1.7.5", - "@swc/core-darwin-x64": "1.7.5", - "@swc/core-linux-arm-gnueabihf": "1.7.5", - "@swc/core-linux-arm64-gnu": "1.7.5", - "@swc/core-linux-arm64-musl": "1.7.5", - "@swc/core-linux-x64-gnu": "1.7.5", - "@swc/core-linux-x64-musl": "1.7.5", - "@swc/core-win32-arm64-msvc": "1.7.5", - "@swc/core-win32-ia32-msvc": "1.7.5", - "@swc/core-win32-x64-msvc": "1.7.5" + "@swc/core-darwin-arm64": "1.7.22", + "@swc/core-darwin-x64": "1.7.22", + "@swc/core-linux-arm-gnueabihf": "1.7.22", + "@swc/core-linux-arm64-gnu": "1.7.22", + "@swc/core-linux-arm64-musl": "1.7.22", + "@swc/core-linux-x64-gnu": "1.7.22", + "@swc/core-linux-x64-musl": "1.7.22", + "@swc/core-win32-arm64-msvc": "1.7.22", + "@swc/core-win32-ia32-msvc": "1.7.22", + "@swc/core-win32-x64-msvc": "1.7.22" }, "peerDependencies": { "@swc/helpers": "*" @@ -819,9 +819,9 @@ } }, "node_modules/@swc/core-darwin-arm64": { - "version": "1.7.5", - "resolved": "https://registry.npmjs.org/@swc/core-darwin-arm64/-/core-darwin-arm64-1.7.5.tgz", - "integrity": "sha512-Y+bvW9C4/u26DskMbtQKT4FU6QQenaDYkKDi028vDIKAa7v1NZqYG9wmhD/Ih7n5EUy2uJ5I5EWD7WaoLzT6PA==", + "version": "1.7.22", + "resolved": "https://registry.npmjs.org/@swc/core-darwin-arm64/-/core-darwin-arm64-1.7.22.tgz", + "integrity": "sha512-B2Bh2W+C7ALdGwDxRWAJ+UtNExfozvwyayGiNkbR3wmDKXXeQfhGM5MK+QYUWKu7UQ6ATq69OyZrxofDobKUug==", "cpu": [ "arm64" ], @@ -836,9 +836,9 @@ } }, "node_modules/@swc/core-darwin-x64": { - "version": "1.7.5", - "resolved": "https://registry.npmjs.org/@swc/core-darwin-x64/-/core-darwin-x64-1.7.5.tgz", - "integrity": "sha512-AuIbDlcaAhYS6mtF4UqvXgrLeAfXZbVf4pgtgShPbutF80VbCQiIB55zOFz5aZdCpsBVuCWcBq0zLneK+VQKkQ==", + "version": "1.7.22", + "resolved": "https://registry.npmjs.org/@swc/core-darwin-x64/-/core-darwin-x64-1.7.22.tgz", + "integrity": "sha512-s34UQntnQ6tL9hS9aX3xG7OfGhpmy05FEEndbHaooGO8O+L5k8uWxhE5KhYCOC0N803sGdZg6YZmKtYrWN/YxA==", "cpu": [ "x64" ], @@ -853,9 +853,9 @@ } }, "node_modules/@swc/core-linux-arm-gnueabihf": { - "version": "1.7.5", - "resolved": "https://registry.npmjs.org/@swc/core-linux-arm-gnueabihf/-/core-linux-arm-gnueabihf-1.7.5.tgz", - "integrity": "sha512-99uBPHITRqgGwCXAjHY94VaV3Z40+D2NQNgR1t6xQpO8ZnevI6YSzX6GVZfBnV7+7oisiGkrVEwfIRRa+1s8FA==", + "version": "1.7.22", + "resolved": "https://registry.npmjs.org/@swc/core-linux-arm-gnueabihf/-/core-linux-arm-gnueabihf-1.7.22.tgz", + "integrity": "sha512-SE69+oos1jLOXx5YdMH//Qc5zQc2xYukajB+0BWmkcFd/S/cCanGWYtdSzYausm8af2Fw1hPJMNIfndJLnBDFw==", "cpu": [ "arm" ], @@ -870,9 +870,9 @@ } }, "node_modules/@swc/core-linux-arm64-gnu": { - "version": "1.7.5", - "resolved": "https://registry.npmjs.org/@swc/core-linux-arm64-gnu/-/core-linux-arm64-gnu-1.7.5.tgz", - "integrity": "sha512-xHL3Erlz+OGGCG4h6K2HWiR56H5UYMuBWWPbbUufi2bJpfhuKQy/X3vWffwL8ZVfJmCUwr4/G91GHcm32uYzRg==", + "version": "1.7.22", + "resolved": "https://registry.npmjs.org/@swc/core-linux-arm64-gnu/-/core-linux-arm64-gnu-1.7.22.tgz", + "integrity": "sha512-59FzDW/ojgiTj4dlnv3Z3ESuVlzhSAq9X12CNYh4/WTCNA8BoJqOnWMRQKspWtoNlnVviFLMvpek0pGXHndEBA==", "cpu": [ "arm64" ], @@ -887,9 +887,9 @@ } }, "node_modules/@swc/core-linux-arm64-musl": { - "version": "1.7.5", - "resolved": "https://registry.npmjs.org/@swc/core-linux-arm64-musl/-/core-linux-arm64-musl-1.7.5.tgz", - "integrity": "sha512-5ArGdqvFMszNHdi4a67vopeYq8d1K+FuTWDrblHrAvZFhAyv+GQz2PnKqYOgl0sWmQxsNPfNwBFtxACpUO3Jzg==", + "version": "1.7.22", + "resolved": "https://registry.npmjs.org/@swc/core-linux-arm64-musl/-/core-linux-arm64-musl-1.7.22.tgz", + "integrity": "sha512-cMQMI8YRO/XR3OrYuiUlWksNsJOZSkA6gSLNyH6eHTw+FOAzv05oJ4SFYe6s1WesrOqRwhpez6y5H6OIP/EKzg==", "cpu": [ "arm64" ], @@ -904,9 +904,9 @@ } }, "node_modules/@swc/core-linux-x64-gnu": { - "version": "1.7.5", - "resolved": "https://registry.npmjs.org/@swc/core-linux-x64-gnu/-/core-linux-x64-gnu-1.7.5.tgz", - "integrity": "sha512-mSVVV/PFzCGtI1nVQQyx34NwCMgSurF6ZX/me8pUAX054vsE/pSFL66xN+kQOe/1Z/LOd4UmXFkZ/EzOSnYcSg==", + "version": "1.7.22", + "resolved": "https://registry.npmjs.org/@swc/core-linux-x64-gnu/-/core-linux-x64-gnu-1.7.22.tgz", + "integrity": "sha512-639kA7MXrWqWYfwuSJ+XTg21VYb/5o99R1zJrndoEjEX6m7Wza/sXssQKU5jbbkPoSEKVKNP3n/gazLWiUKgiQ==", "cpu": [ "x64" ], @@ -921,9 +921,9 @@ } }, "node_modules/@swc/core-linux-x64-musl": { - "version": "1.7.5", - "resolved": "https://registry.npmjs.org/@swc/core-linux-x64-musl/-/core-linux-x64-musl-1.7.5.tgz", - "integrity": "sha512-09hY3ZKMUORXVunESKS9yuP78+gQbr759GKHo8wyCdtAx8lCZdEjfI5NtC7/1VqwfeE32/U6u+5MBTVhZTt0AA==", + "version": "1.7.22", + "resolved": "https://registry.npmjs.org/@swc/core-linux-x64-musl/-/core-linux-x64-musl-1.7.22.tgz", + "integrity": "sha512-f3zfGgY8EJQUOk3ve25ZTkNkhB/kHo9QlN2r+0exaE1g9W7X8IS6J8pWzF3hJrV2P9dBi6ofMOt+opVA89JKHA==", "cpu": [ "x64" ], @@ -938,9 +938,9 @@ } }, "node_modules/@swc/core-win32-arm64-msvc": { - "version": "1.7.5", - "resolved": "https://registry.npmjs.org/@swc/core-win32-arm64-msvc/-/core-win32-arm64-msvc-1.7.5.tgz", - "integrity": "sha512-B/UDtPI3RlYRFW42xQxOpl6kI/9LtkD7No+XeRIKQTPe15EP2o+rUlv7CmKljVBXgJ8KmaQbZlaEh1YP+QZEEQ==", + "version": "1.7.22", + "resolved": "https://registry.npmjs.org/@swc/core-win32-arm64-msvc/-/core-win32-arm64-msvc-1.7.22.tgz", + "integrity": "sha512-p/Fav5U+LtTJD/tbbS0dKK8SVVAhXo5Jdm1TDeBPJ4BEIVguYBZEXgD3CW9wY4K34g1hscpiz2Q2rktfhFj1+A==", "cpu": [ "arm64" ], @@ -955,9 +955,9 @@ } }, "node_modules/@swc/core-win32-ia32-msvc": { - "version": "1.7.5", - "resolved": "https://registry.npmjs.org/@swc/core-win32-ia32-msvc/-/core-win32-ia32-msvc-1.7.5.tgz", - "integrity": "sha512-BgLesVGmIY6Nub/sURqtSRvWYcbCE/ACfuZB3bZHVKD6nsZJJuOpdB8oC41fZPyc8yZUzL3XTBIifkT2RP+w9w==", + "version": "1.7.22", + "resolved": "https://registry.npmjs.org/@swc/core-win32-ia32-msvc/-/core-win32-ia32-msvc-1.7.22.tgz", + "integrity": "sha512-HbmfasaCNTqeCTvDjleYj+jJZQ6MlraiVOdhW55KtbA9mAVQdPBq6DDAvR7VOero3wUNYUM/e36otFKgEJI5Rg==", "cpu": [ "ia32" ], @@ -972,9 +972,9 @@ } }, "node_modules/@swc/core-win32-x64-msvc": { - "version": "1.7.5", - "resolved": "https://registry.npmjs.org/@swc/core-win32-x64-msvc/-/core-win32-x64-msvc-1.7.5.tgz", - "integrity": "sha512-CnF557tidLfQRPczcqDJ8x+LBQYsFa0Ra6w2+YU1iFUboaI2jJVuqt3vEChu80y6JiRIBAaaV2L/GawDJh1dIQ==", + "version": "1.7.22", + "resolved": "https://registry.npmjs.org/@swc/core-win32-x64-msvc/-/core-win32-x64-msvc-1.7.22.tgz", + "integrity": "sha512-lppIveE+hpe7WXny/9cUT+T6sBM/ND0E+dviKWJ5jFBISj2KWomlSJGUjYEsRGJVPnTEc8uOlKK7etmXBhQx9A==", "cpu": [ "x64" ], @@ -2284,9 +2284,9 @@ } }, "node_modules/terser": { - "version": "5.31.3", - "resolved": "https://registry.npmjs.org/terser/-/terser-5.31.3.tgz", - "integrity": "sha512-pAfYn3NIZLyZpa83ZKigvj6Rn9c/vd5KfYGX7cN1mnzqgDcxWvrU5ZtAfIKhEXz9nRecw4z3LXkjaq96/qZqAA==", + "version": "5.31.6", + "resolved": "https://registry.npmjs.org/terser/-/terser-5.31.6.tgz", + "integrity": "sha512-PQ4DAriWzKj+qgehQ7LK5bQqCFNMmlhjR2PFFLuqGCpuCAauxemVBWwWOxo3UIwWQx8+Pr61Df++r76wDmkQBg==", "dev": true, "license": "BSD-2-Clause", "dependencies": { diff --git a/package.json b/package.json index 1ff024f..8b2a8f4 100644 --- a/package.json +++ b/package.json @@ -43,9 +43,9 @@ "build-sass-minimized": "sass src/peek.js.scss dist/peek.js.min.css --style=compressed --no-source-map" }, "devDependencies": { - "@swc/core": "^1.7.5", + "@swc/core": "^1.7.22", "sass": "^1.77.8", - "terser": "^5.31.3", + "terser": "^5.31.6", "tsup": "^8.2.4", "typescript": "^5.5.4" } From a93036ff2e6bfd36c1da7a0a08631da9588e4a3f Mon Sep 17 00:00:00 2001 From: William Troup Date: Mon, 2 Sep 2024 15:32:07 +0100 Subject: [PATCH 03/14] Added an ignore path for ".DS_Store" files when packing the NuGet package. --- docs/CHANGE_LOG.md | 1 + peek.js.nuspec | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/docs/CHANGE_LOG.md b/docs/CHANGE_LOG.md index d15b694..3eb27e7 100755 --- a/docs/CHANGE_LOG.md +++ b/docs/CHANGE_LOG.md @@ -4,6 +4,7 @@ #### **Adjustments:** - Updated to the latest NPM packages. +- Added an ignore path for ".DS_Store" files when packing the NuGet package. ## Version 1.7.0: diff --git a/peek.js.nuspec b/peek.js.nuspec index 1a75d7e..ed36cbe 100644 --- a/peek.js.nuspec +++ b/peek.js.nuspec @@ -15,6 +15,6 @@ William Troup - + \ No newline at end of file From 846974c7882465f01b48a79ad1ce66c42d183779 Mon Sep 17 00:00:00 2001 From: William Troup Date: Mon, 2 Sep 2024 15:32:49 +0100 Subject: [PATCH 04/14] Moved from ES2016 to ES2020. --- dist/peek.esm.js | 3 +-- dist/peek.esm.js.map | 2 +- dist/peek.js | 3 +-- dist/peek.js.map | 2 +- dist/peek.min.js | 2 +- docs/CHANGE_LOG.md | 1 + tsconfig.json | 2 +- 7 files changed, 7 insertions(+), 8 deletions(-) diff --git a/dist/peek.esm.js b/dist/peek.esm.js index a2883da..e77064a 100644 --- a/dist/peek.esm.js +++ b/dist/peek.esm.js @@ -394,8 +394,7 @@ var i; } } function I() { - var e; - (e = A.parentNode) == null ? void 0 : e.removeChild(A); + A.parentNode?.removeChild(A); D(); } function j() { diff --git a/dist/peek.esm.js.map b/dist/peek.esm.js.map index 6714082..145a89b 100644 --- a/dist/peek.esm.js.map +++ b/dist/peek.esm.js.map @@ -1 +1 @@ -{"version":3,"sources":["/Users/williamtroup/Documents/GitHub%20Repos/Peek.js/dist/peek.esm.js"],"names":["Is","Is2","defined","value","toString","definedObject","object","definedBoolean","definedString","definedFunction","definedNumber","definedArray","Array","definedDate","Date","invalidOptionArray","array","minimumLength","length","hexColor","valid","isNaN","substring","isRgbColor","startsWith","Constant","Constant2","PEEK_JS_IGNORE_STATE_ATTRIBUTE","DomElement","DomElement2","create","container","type","className","insertAtStart","nodeType","toLowerCase","isText","result","document","createTextNode","createElement","setAttribute","appendChild","insertBefore","children","createWithHTML","html","element","innerHTML","cancelBubble","e","preventDefault","stopPropagation","getScrollPosition","documentElement","left","scrollLeft","clientLeft","top","scrollTop","clientTop","showElementAtMousePosition","style","display","pageX","pageY","scrollPosition","offsetWidth","window","innerWidth","offsetHeight","innerHeight","getOffset","offsetLeft","offsetTop","offsetParent","Default","Default2","getAnyString","defaultValue","getString","getBoolean","getNumber","getArray","getObject","getStringOrArray","values","split","Config","Config2","Options","Options2","get","newConfiguration","configuration","dialogDisplayDelay","searchDelayDelay","getText","text","cssText","attributesText","sizeText","classesText","noAttributesAvailableText","closeText","copyText","copySymbolText","pasteText","pasteSymbolText","removeText","removeSymbolText","noClassesAvailableText","searchPropertiesPlaceHolderText","clearText","clearSymbolText","noPropertiesFoundForSearchText","dialogMovedSymbolText","propertyValuePlaceHolderText","modeNotSupportedText","unknownModeText","moveUpText","moveUpSymbolText","moveDownText","moveDownSymbolText","removeElementSymbolText","lockText","Start","Start2","newOptions","options","mode","titleText","showOnly","allowEditing","showIdOrNameInTitle","showNodeNameInTitle","ignoreValues","showLockButtonInTitle","_configuration","_dialog","_dialog_Title","_dialog_Title_Button_Lock","_dialog_Search","_dialog_Search_Input","_dialog_Search_Input_TimerId","_dialog_Contents","_dialog_Contents_NoSearchResultsText","_dialog_Buttons","_dialog_Buttons_Copy","_dialog_Buttons_Remove","_dialog_Buttons_MoveUp","_dialog_Buttons_MoveDown","_dialog_TimerId","_current_Process_Options","_current_Process_Elements","_current_Process_Properties","_current_Process_Element","_current_Process_Locked","_current_Process_NodeCount","_current_Process_Properties_Count","_element_Dialog_Move","_element_Dialog_Move_Original_X","_element_Dialog_Move_Original_Y","_element_Dialog_Move_IsMoving","_element_Dialog_Move_X","_element_Dialog_Move_Y","buildDialog","closeDialog","body","removeChild","onmousemove","onclick","onCopy","placeholder","onkeyup","onSearchProperties","onpaste","onfocus","select","removeButton","title","onSearchPropertiesClear","closeButton","onRemove","onMoveUp","onMoveDown","makeDialogMovable","setDialogTitle","nodeName","id","getAttribute","name","setDialogAsLocked","parentNode","lines","propertyName","hasOwnProperty","push","navigator","clipboard","writeText","join","_a","clearTimeout","setTimeout","getElementsByClassName","propertyNames","slice","call","propertyNamesLength","searchValue","propertiesFound","propertyNameIndex","parent","trim","removeProperty","propertyNameText","innerText","indexOf","focus","previousElementSibling","nextElementSibling","buildDialogContent","buildCssProperties","buildAttributeProperties","buildSizeProperties","buildClassProperties","computedStyles","getComputedStyle","computedStylesLength","styleIndex","buildPropertyRow","getPropertyValue","hasAttributes","attribute","attributes","offset","classList","index","propertyValueText","isPropertyVisible","isPropertyValueVisible","property","propertyValue","propertyValueInput","add","borderLeftColor","copyButton","pasteButton","onPropertyPaste","onPropertyRemove","readOnly","onPropertyValueKeyUp","readText","then","data","updatePropertyValue","removeAttribute","remove","input","code","setProperty","replace","parseInt","buildNodeEvents","tagTypes","tagTypeIndex","domElements","getElementsByTagName","elements","elementsLength","elementIndex","buildNodeEvent","addEventListener","onWindowMove","attributeValue","onNodeMouseOver","removeNodeEvents","currentProcessElementsLength","removeEventListener","clearDialogShowTimer","titleBar","dialog","onmousedown","onMoveTitleBarMouseDown","onMoveDocumentMouseMove","onmouseup","onMoveTitleBarMouseUp","oncontextmenu","onMoveDocumentMouseLeave","_public","start","stop","close","setConfiguration","configurationHasChanged","newInternalConfiguration","getVersion","$peek"],"mappings":"AACA,IAAIA;;AACJ,CAAEC;IACA,SAASC,EAAQC;QACf,OAAOA,MAAU,QAAQA,WAAe,KAAKA,EAAMC,eAAe;AACpE;IACAH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F;QACE/J,IAAiBlD,EAAOE,QAAQE;QAChCtD,SAAS2O,iBAAiB,qBAAoB;YAC5C3G;AAAa;QAEf,KAAKvK,EAAGE,QAAQmE,OAAOsO,QAAQ;YAC7BtO,OAAOsO,QAAQR;AACjB;AACD,MARD;AASD,EAjhBD","sourcesContent":[null]} \ No newline at end of file +{"version":3,"sources":["/Users/williamtroup/Documents/GitHub%20Repos/Peek.js/dist/peek.esm.js"],"names":["Is","Is2","defined","value","toString","definedObject","object","definedBoolean","definedString","definedFunction","definedNumber","definedArray","Array","definedDate","Date","invalidOptionArray","array","minimumLength","length","hexColor","valid","isNaN","substring","isRgbColor","startsWith","Constant","Constant2","PEEK_JS_IGNORE_STATE_ATTRIBUTE","DomElement","DomElement2","create","container","type","className","insertAtStart","nodeType","toLowerCase","isText","result","document","createTextNode","createElement","setAttribute","appendChild","insertBefore","children","createWithHTML","html","element","innerHTML","cancelBubble","e","preventDefault","stopPropagation","getScrollPosition","documentElement","left","scrollLeft","clientLeft","top","scrollTop","clientTop","showElementAtMousePosition","style","display","pageX","pageY","scrollPosition","offsetWidth","window","innerWidth","offsetHeight","innerHeight","getOffset","offsetLeft","offsetTop","offsetParent","Default","Default2","getAnyString","defaultValue","getString","getBoolean","getNumber","getArray","getObject","getStringOrArray","values","split","Config","Config2","Options","Options2","get","newConfiguration","configuration","dialogDisplayDelay","searchDelayDelay","getText","text","cssText","attributesText","sizeText","classesText","noAttributesAvailableText","closeText","copyText","copySymbolText","pasteText","pasteSymbolText","removeText","removeSymbolText","noClassesAvailableText","searchPropertiesPlaceHolderText","clearText","clearSymbolText","noPropertiesFoundForSearchText","dialogMovedSymbolText","propertyValuePlaceHolderText","modeNotSupportedText","unknownModeText","moveUpText","moveUpSymbolText","moveDownText","moveDownSymbolText","removeElementSymbolText","lockText","Start","Start2","newOptions","options","mode","titleText","showOnly","allowEditing","showIdOrNameInTitle","showNodeNameInTitle","ignoreValues","showLockButtonInTitle","_configuration","_dialog","_dialog_Title","_dialog_Title_Button_Lock","_dialog_Search","_dialog_Search_Input","_dialog_Search_Input_TimerId","_dialog_Contents","_dialog_Contents_NoSearchResultsText","_dialog_Buttons","_dialog_Buttons_Copy","_dialog_Buttons_Remove","_dialog_Buttons_MoveUp","_dialog_Buttons_MoveDown","_dialog_TimerId","_current_Process_Options","_current_Process_Elements","_current_Process_Properties","_current_Process_Element","_current_Process_Locked","_current_Process_NodeCount","_current_Process_Properties_Count","_element_Dialog_Move","_element_Dialog_Move_Original_X","_element_Dialog_Move_Original_Y","_element_Dialog_Move_IsMoving","_element_Dialog_Move_X","_element_Dialog_Move_Y","buildDialog","closeDialog","body","removeChild","onmousemove","onclick","onCopy","placeholder","onkeyup","onSearchProperties","onpaste","onfocus","select","removeButton","title","onSearchPropertiesClear","closeButton","onRemove","onMoveUp","onMoveDown","makeDialogMovable","setDialogTitle","nodeName","id","getAttribute","name","setDialogAsLocked","parentNode","lines","propertyName","hasOwnProperty","push","navigator","clipboard","writeText","join","clearTimeout","setTimeout","getElementsByClassName","propertyNames","slice","call","propertyNamesLength","searchValue","propertiesFound","propertyNameIndex","parent","trim","removeProperty","propertyNameText","innerText","indexOf","focus","previousElementSibling","nextElementSibling","buildDialogContent","buildCssProperties","buildAttributeProperties","buildSizeProperties","buildClassProperties","computedStyles","getComputedStyle","computedStylesLength","styleIndex","buildPropertyRow","getPropertyValue","hasAttributes","attribute","attributes","offset","classList","index","propertyValueText","isPropertyVisible","isPropertyValueVisible","property","propertyValue","propertyValueInput","add","borderLeftColor","copyButton","pasteButton","onPropertyPaste","onPropertyRemove","readOnly","onPropertyValueKeyUp","readText","then","data","updatePropertyValue","removeAttribute","remove","input","code","setProperty","replace","parseInt","buildNodeEvents","tagTypes","tagTypeIndex","domElements","getElementsByTagName","elements","elementsLength","elementIndex","buildNodeEvent","addEventListener","onWindowMove","attributeValue","onNodeMouseOver","removeNodeEvents","currentProcessElementsLength","removeEventListener","clearDialogShowTimer","titleBar","dialog","onmousedown","onMoveTitleBarMouseDown","onMoveDocumentMouseMove","onmouseup","onMoveTitleBarMouseUp","oncontextmenu","onMoveDocumentMouseLeave","_public","start","stop","close","setConfiguration","configurationHasChanged","newInternalConfiguration","getVersion","$peek"],"mappings":"AACA,IAAIA;;AACJ,CAAEC;IACA,SAASC,EAAQC;QACf,OAAOA,MAAU,QAAQA,WAAe,KAAKA,EAAMC,eAAe;AACpE;IACAH,EAAIC,UAAUA;IACd,SAASG,EAAcC;QACrB,OAAOJ,EAAQI,aAAkBA,MAAW;AAC9C;IACAL,EAAII,gBAAgBA;IACpB,SAASE,EAAeD;QACtB,OAAOJ,EAAQI,aAAkBA,MAAW;AAC9C;IACAL,EAAIM,iBAAiBA;IACrB,SAASC,EAAcF;QACrB,OAAOJ,EAAQI,aAAkBA,MAAW;AAC9C;IACAL,EAAIO,gBAAgBA;IACpB,SAASC,EAAgBH;QACvB,OAAOJ,EAAQI,aAAkBA,MAAW;AAC9C;IACAL,EAAIQ,kBAAkBA;IACtB,SAASC,EAAcJ;QACrB,OAAOJ,EAAQI,aAAkBA,MAAW;AAC9C;IACAL,EAAIS,gBAAgBA;IACpB,SAASC,EAAaL;QACpB,OAAOD,EAAcC,MAAWA,aAAkBM;AACpD;IACAX,EAAIU,eAAeA;IACnB,SAASE,EAAYP;QACnB,OAAOD,EAAcC,MAAWA,aAAkBQ;AACpD;IACAb,EAAIY,cAAcA;IAClB,SAASE,EAAmBC,GAAOC,IAAgB;QACjD,QAAQN,EAAaK,MAAUA,EAAME,SAASD;AAChD;IACAhB,EAAIc,qBAAqBA;IACzB,SAASI,EAAShB;QAChB,IAAIiB,IAAQjB,EAAMe,UAAU,KAAKf,EAAMe,UAAU;QACjD,IAAIE,KAASjB,EAAM,OAAO,KAAgB;YACxCiB,IAAQC,OAAOlB,EAAMmB,UAAU,GAAGnB,EAAMe,SAAS;AACnD,eAAO;YACLE,IAAQ;AACV;QACA,OAAOA;AACT;IACAnB,EAAIkB,WAAWA;IACf,SAASI,EAAWpB;QAClB,OAAOA,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C5B;AACF;gBACA,IAAIA,GAAyB;oBAC3B5J,IAAiBlD,EAAOE,QAAQE,IAAI2M;oBACpCjI;oBACA,IAAIvK,EAAGK,cAAcqJ,IAA2B;wBAC9CkC;AACF;AACF;AACF;YACA,OAAOsG;AACT;QAMAO,YAAY;YACV,OAAO;AACT;;IAEF;QACE9J,IAAiBlD,EAAOE,QAAQE;QAChCtD,SAAS0O,iBAAiB,qBAAoB;YAC5C1G;AAAa;QAEf,KAAKvK,EAAGE,QAAQmE,OAAOqO,QAAQ;YAC7BrO,OAAOqO,QAAQR;AACjB;AACD,MARD;AASD,EAhhBD","sourcesContent":[null]} \ No newline at end of file diff --git a/dist/peek.js b/dist/peek.js index e123963..4d34e75 100644 --- a/dist/peek.js +++ b/dist/peek.js @@ -396,8 +396,7 @@ var i; } } function I() { - var e; - (e = A.parentNode) == null ? void 0 : e.removeChild(A); + A.parentNode?.removeChild(A); D(); } function j() { diff --git a/dist/peek.js.map b/dist/peek.js.map index 9735311..d54e05c 100644 --- a/dist/peek.js.map +++ b/dist/peek.js.map @@ -1 +1 @@ -{"version":3,"sources":["/Users/williamtroup/Documents/GitHub%20Repos/Peek.js/dist/peek.js"],"names":["Is","Is2","defined","value","toString","definedObject","object","definedBoolean","definedString","definedFunction","definedNumber","definedArray","Array","definedDate","Date","invalidOptionArray","array","minimumLength","length","hexColor","valid","isNaN","substring","isRgbColor","startsWith","Constant","Constant2","PEEK_JS_IGNORE_STATE_ATTRIBUTE","DomElement","DomElement2","create","container","type","className","insertAtStart","nodeType","toLowerCase","isText","result","document","createTextNode","createElement","setAttribute","appendChild","insertBefore","children","createWithHTML","html","element","innerHTML","cancelBubble","e","preventDefault","stopPropagation","getScrollPosition","documentElement","left","scrollLeft","clientLeft","top","scrollTop","clientTop","showElementAtMousePosition","style","display","pageX","pageY","scrollPosition","offsetWidth","window","innerWidth","offsetHeight","innerHeight","getOffset","offsetLeft","offsetTop","offsetParent","Default","Default2","getAnyString","defaultValue","getString","getBoolean","getNumber","getArray","getObject","getStringOrArray","values","split","Config","Config2","Options","Options2","get","newConfiguration","configuration","dialogDisplayDelay","searchDelayDelay","getText","text","cssText","attributesText","sizeText","classesText","noAttributesAvailableText","closeText","copyText","copySymbolText","pasteText","pasteSymbolText","removeText","removeSymbolText","noClassesAvailableText","searchPropertiesPlaceHolderText","clearText","clearSymbolText","noPropertiesFoundForSearchText","dialogMovedSymbolText","propertyValuePlaceHolderText","modeNotSupportedText","unknownModeText","moveUpText","moveUpSymbolText","moveDownText","moveDownSymbolText","removeElementSymbolText","lockText","Start","Start2","newOptions","options","mode","titleText","showOnly","allowEditing","showIdOrNameInTitle","showNodeNameInTitle","ignoreValues","showLockButtonInTitle","_configuration","_dialog","_dialog_Title","_dialog_Title_Button_Lock","_dialog_Search","_dialog_Search_Input","_dialog_Search_Input_TimerId","_dialog_Contents","_dialog_Contents_NoSearchResultsText","_dialog_Buttons","_dialog_Buttons_Copy","_dialog_Buttons_Remove","_dialog_Buttons_MoveUp","_dialog_Buttons_MoveDown","_dialog_TimerId","_current_Process_Options","_current_Process_Elements","_current_Process_Properties","_current_Process_Element","_current_Process_Locked","_current_Process_NodeCount","_current_Process_Properties_Count","_element_Dialog_Move","_element_Dialog_Move_Original_X","_element_Dialog_Move_Original_Y","_element_Dialog_Move_IsMoving","_element_Dialog_Move_X","_element_Dialog_Move_Y","buildDialog","closeDialog","body","removeChild","onmousemove","onclick","onCopy","placeholder","onkeyup","onSearchProperties","onpaste","onfocus","select","removeButton","title","onSearchPropertiesClear","closeButton","onRemove","onMoveUp","onMoveDown","makeDialogMovable","setDialogTitle","nodeName","id","getAttribute","name","setDialogAsLocked","parentNode","lines","propertyName","hasOwnProperty","push","navigator","clipboard","writeText","join","_a","clearTimeout","setTimeout","getElementsByClassName","propertyNames","slice","call","propertyNamesLength","searchValue","propertiesFound","propertyNameIndex","parent","trim","removeProperty","propertyNameText","innerText","indexOf","focus","previousElementSibling","nextElementSibling","buildDialogContent","buildCssProperties","buildAttributeProperties","buildSizeProperties","buildClassProperties","computedStyles","getComputedStyle","computedStylesLength","styleIndex","buildPropertyRow","getPropertyValue","hasAttributes","attribute","attributes","offset","classList","index","propertyValueText","isPropertyVisible","isPropertyValueVisible","property","propertyValue","propertyValueInput","add","borderLeftColor","copyButton","pasteButton","onPropertyPaste","onPropertyRemove","readOnly","onPropertyValueKeyUp","readText","then","data","updatePropertyValue","removeAttribute","remove","input","code","setProperty","replace","parseInt","buildNodeEvents","tagTypes","tagTypeIndex","domElements","getElementsByTagName","elements","elementsLength","elementIndex","buildNodeEvent","addEventListener","onWindowMove","attributeValue","onNodeMouseOver","removeNodeEvents","currentProcessElementsLength","removeEventListener","clearDialogShowTimer","titleBar","dialog","onmousedown","onMoveTitleBarMouseDown","onMoveDocumentMouseMove","onmouseup","onMoveTitleBarMouseUp","oncontextmenu","onMoveDocumentMouseLeave","_public","start","stop","close","setConfiguration","configurationHasChanged","newInternalConfiguration","getVersion","$peek"],"mappings":"AAAA;;AAGA,IAAIA;;AACJ,CAAEC;IACA,SAASC,EAAQC;QACf,OAAOA,MAAU,QAAQA,WAAe,KAAKA,EAAMC,eAAe;AACpE;IACAH,EAAIC,UAAUA;IACd,SAASG,EAAcC;QACrB,OAAOJ,EAAQI,aAAkBA,MAAW;AAC9C;IACAL,EAAII,gBAAgBA;IACpB,SAASE,EAAeD;QACtB,OAAOJ,EAAQI,aAAkBA,MAAW;AAC9C;IACAL,EAAIM,iBAAiBA;IACrB,SAASC,EAAcF;QACrB,OAAOJ,EAAQI,aAAkBA,MAAW;AAC9C;IACAL,EAAIO,gBAAgBA;IACpB,SAASC,EAAgBH;QACvB,OAAOJ,EAAQI,aAAkBA,MAAW;AAC9C;IACAL,EAAIQ,kBAAkBA;IACtB,SAASC,EAAcJ;QACrB,OAAOJ,EAAQI,aAAkBA,MAAW;AAC9C;IACAL,EAAIS,gBAAgBA;IACpB,SAASC,EAAaL;QACpB,OAAOD,EAAcC,MAAWA,aAAkBM;AACpD;IACAX,EAAIU,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AMpC,QAAQE,IAAIqC;gBAC7C0D;gBACA6E;AACF;YACA,OAAO0B;AACT;QACAE,MAAM;YACJ,IAAIrS,EAAGK,cAAcqJ,IAA2B;gBAC9CA,IAA2B;gBAC3B+H;gBACAH;AACF;YACA,OAAOa;AACT;QACAG,OAAO;YACL9H;YACA,OAAO2H;AACT;QAMAI,kBAAkB,SAASzM;YACzB,IAAI9F,EAAGK,cAAcyF,IAAmB;gBACtC,IAAI0M,IAA0B;gBAC9B,MAAMC,IAA2B9J;gBACjC,KAAK,IAAIyD,KAAgBtG,GAAkB;oBACzC,IAAIA,EAAiBuG,eAAeD,MAAiBzD,EAAe0D,eAAeD,MAAiBqG,EAAyBrG,OAAkBtG,EAAiBsG,IAAe;wBAC7KqG,EAAyBrG,KAAgBtG,EAAiBsG;wBAC1DoG,IAA0B;AAC5B;AACF;gBACA,IAAIA,GAAyB;oBAC3B7J,IAAiBlD,EAAOE,QAAQE,IAAI4M;oBACpClI;oBACA,IAAIvK,EAAGK,cAAcqJ,IAA2B;wBAC9CkC;AACF;AACF;AACF;YACA,OAAOuG;AACT;QAMAO,YAAY;YACV,OAAO;AACT;;IAEF;QACE/J,IAAiBlD,EAAOE,QAAQE;QAChCtD,SAAS2O,iBAAiB,qBAAoB;YAC5C3G;AAAa;QAEf,KAAKvK,EAAGE,QAAQmE,OAAOsO,QAAQ;YAC7BtO,OAAOsO,QAAQR;AACjB;AACD,MARD;AASD,EAjhBD","sourcesContent":[null]} \ No newline at end of file +{"version":3,"sources":["/Users/williamtroup/Documents/GitHub%20Repos/Peek.js/dist/peek.js"],"names":["Is","Is2","defined","value","toString","definedObject","object","definedBoolean","definedString","definedFunction","definedNumber","definedArray","Array","definedDate","Date","invalidOptionArray","array","minimumLength","length","hexColor","valid","isNaN","substring","isRgbColor","startsWith","Constant","Constant2","PEEK_JS_IGNORE_STATE_ATTRIBUTE","DomElement","DomElement2","create","container","type","className","insertAtStart","nodeType","toLowerCase","isText","result","document","createTextNode","createElement","setAttribute","appendChild","insertBefore","children","createWithHTML","html","element","innerHTML","cancelBubble","e","preventDefault","stopPropagation","getScrollPosition","documentElement","left","scrollLeft","clientLeft","top","scrollTop","clientTop","showElementAtMousePosition","style","display","pageX","pageY","scrollPosition","offsetWidth","window","innerWidth","offsetHeight","innerHeight","getOffset","offsetLeft","offsetTop","offsetParent","Default","Default2","getAnyString","defaultValue","getString","getBoolean","getNumber","getArray","getObject","getStringOrArray","values","split","Config","Config2","Options","Options2","get","newConfiguration","configuration","dialogDisplayDelay","searchDelayDelay","getText","text","cssText","attributesText","sizeText","classesText","noAttributesAvailableText","closeText","copyText","copySymbolText","pasteText","pasteSymbolText","removeText","removeSymbolText","noClassesAvailableText","searchPropertiesPlaceHolderText","clearText","clearSymbolText","noPropertiesFoundForSearchText","dialogMovedSymbolText","propertyValuePlaceHolderText","modeNotSupportedText","unknownModeText","moveUpText","moveUpSymbolText","moveDownText","moveDownSymbolText","removeElementSymbolText","lockText","Start","Start2","newOptions","options","mode","titleText","showOnly","allowEditing","showIdOrNameInTitle","showNodeNameInTitle","ignoreValues","showLockButtonInTitle","_configuration","_dialog","_dialog_Title","_dialog_Title_Button_Lock","_dialog_Search","_dialog_Search_Input","_dialog_Search_Input_TimerId","_dialog_Contents","_dialog_Contents_NoSearchResultsText","_dialog_Buttons","_dialog_Buttons_Copy","_dialog_Buttons_Remove","_dialog_Buttons_MoveUp","_dialog_Buttons_MoveDown","_dialog_TimerId","_current_Process_Options","_current_Process_Elements","_current_Process_Properties","_current_Process_Element","_current_Process_Locked","_current_Process_NodeCount","_current_Process_Properties_Count","_element_Dialog_Move","_element_Dialog_Move_Original_X","_element_Dialog_Move_Original_Y","_element_Dialog_Move_IsMoving","_element_Dialog_Move_X","_element_Dialog_Move_Y","buildDialog","closeDialog","body","removeChild","onmousemove","onclick","onCopy","placeholder","onkeyup","onSearchProperties","onpaste","onfocus","select","removeButton","title","onSearchPropertiesClear","closeButton","onRemove","onMoveUp","onMoveDown","makeDialogMovable","setDialogTitle","nodeName","id","getAttribute","name","setDialogAsLocked","parentNode","lines","propertyName","hasOwnProperty","push","navigator","clipboard","writeText","join","clearTimeout","setTimeout","getElementsByClassName","propertyNames","slice","call","propertyNamesLength","searchValue","propertiesFound","propertyNameIndex","parent","trim","removeProperty","propertyNameText","innerText","indexOf","focus","previousElementSibling","nextElementSibling","buildDialogContent","buildCssProperties","buildAttributeProperties","buildSizeProperties","buildClassProperties","computedStyles","getComputedStyle","computedStylesLength","styleIndex","buildPropertyRow","getPropertyValue","hasAttributes","attribute","attributes","offset","classList","index","propertyValueText","isPropertyVisible","isPropertyValueVisible","property","propertyValue","propertyValueInput","add","borderLeftColor","copyButton","pasteButton","onPropertyPaste","onPropertyRemove","readOnly","onPropertyValueKeyUp","readText","then","data","updatePropertyValue","removeAttribute","remove","input","code","setProperty","replace","parseInt","buildNodeEvents","tagTypes","tagTypeIndex","domElements","getElementsByTagName","elements","elementsLength","elementIndex","buildNodeEvent","addEventListener","onWindowMove","attributeValue","onNodeMouseOver","removeNodeEvents","currentProcessElementsLength","removeEventListener","clearDialogShowTimer","titleBar","dialog","onmousedown","onMoveTitleBarMouseDown","onMoveDocumentMouseMove","onmouseup","onMoveTitleBarMouseUp","oncontextmenu","onMoveDocumentMouseLeave","_public","start","stop","close","setConfiguration","configurationHasChanged","newInternalConfiguration","getVersion","$peek"],"mappings":"AAAA;;AAGA,IAAIA;;AACJ,CAAEC;IACA,SAASC,EAAQC;QACf,OAAOA,MAAU,QAAQA,WAAe,KAAKA,EAAMC,eAAe;AACpE;IACAH,EAAIC,UAAUA;IACd,SAASG,EAAcC;QACrB,OAAOJ,EAAQI,aAAkBA,MAAW;AAC9C;IACAL,EAAII,gBAAgBA;IACpB,SAASE,EAAeD;QACtB,OAAOJ,EAAQI,aAAkBA,MAAW;AAC9C;IACAL,EAAIM,iBAAiBA;IACrB,SAASC,EAAcF;QACrB,OAAOJ,EAAQI,aAAkBA,MAAW;AAC9C;IACAL,EAAIO,gBAAgBA;IACp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D,EAAqBlG,MAAMJ,MAAM,GAAGwG;YACpCC,IAAgC;YAChCH,IAAuB;YACvBC,IAAkC;YAClCC,IAAkC;AACpC;AACF;IACA,MAAM+H,KAAU;QAMdC,OAAO,SAASjK;YACd,KAAKlI,EAAGK,cAAcqJ,IAA2B;gBAC/CA,IAA2B3B,EAAMpC,QAAQE,IAAIqC;gBAC7C0D;gBACA4E;AACF;YACA,OAAO0B;AACT;QACAE,MAAM;YACJ,IAAIpS,EAAGK,cAAcqJ,IAA2B;gBAC9CA,IAA2B;gBAC3B8H;gBACAH;AACF;YACA,OAAOa;AACT;QACAG,OAAO;YACL7H;YACA,OAAO0H;AACT;QAMAI,kBAAkB,SAASxM;YACzB,IAAI9F,EAAGK,cAAcyF,IAAmB;gBACtC,IAAIyM,IAA0B;gBAC9B,MAAMC,IAA2B7J;gBACjC,KAAK,IAAIyD,KAAgBtG,GAAkB;oBACzC,IAAIA,EAAiBuG,eAAeD,MAAiBzD,EAAe0D,eAAeD,MAAiBoG,EAAyBpG,OAAkBtG,EAAiBsG,IAAe;wBAC7KoG,EAAyBpG,KAAgBtG,EAAiBsG;wBAC1DmG,IAA0B;AAC5B;AACF;gBACA,IAAIA,GAAyB;oBAC3B5J,IAAiBlD,EAAOE,QAAQE,IAAI2M;oBACpCjI;oBACA,IAAIvK,EAAGK,cAAcqJ,IAA2B;wBAC9CkC;AACF;AACF;AACF;YACA,OAAOsG;AACT;QAMAO,YAAY;YACV,OAAO;AACT;;IAEF;QACE9J,IAAiBlD,EAAOE,QAAQE;QAChCtD,SAAS0O,iBAAiB,qBAAoB;YAC5C1G;AAAa;QAEf,KAAKvK,EAAGE,QAAQmE,OAAOqO,QAAQ;YAC7BrO,OAAOqO,QAAQR;AACjB;AACD,MARD;AASD,EAhhBD","sourcesContent":[null]} \ No newline at end of file diff --git a/dist/peek.min.js b/dist/peek.min.js index f9f7169..55f8344 100644 --- a/dist/peek.min.js +++ b/dist/peek.min.js @@ -1 +1 @@ -"use strict";var e,t,n,o,r,i;(e=>{function t(e){return null!=e&&""!==e.toString()}function n(e){return t(e)&&"object"==typeof e}function o(e){return n(e)&&e instanceof Array}e.defined=t,e.definedObject=n,e.definedBoolean=function(e){return t(e)&&"boolean"==typeof e},e.definedString=function(e){return t(e)&&"string"==typeof e},e.definedFunction=function(e){return t(e)&&"function"==typeof e},e.definedNumber=function(e){return t(e)&&"number"==typeof e},e.definedArray=o,e.definedDate=function(e){return n(e)&&e instanceof Date},e.invalidOptionArray=function(e,t=1){return!o(e)||e.length=2&&e.length<=7;return t=!(!t||"#"!==e[0])&&isNaN(+e.substring(1,e.length-1)),t},e.isRgbColor=function(e){return e.startsWith("rgb")||e.startsWith("rgba")}})(e||(e={})),(t||(t={})).PEEK_JS_IGNORE_STATE_ATTRIBUTE="data-peek-js-ignore-state",(n=>{function o(n,o,r="",i=!1){const l=o.toLowerCase();let s="text"===l?document.createTextNode(""):document.createElement(l);return s.setAttribute(t.PEEK_JS_IGNORE_STATE_ATTRIBUTE,"ignore"),e.definedString(r)&&(s.className=r),i?n.insertBefore(s,n.children[0]):n.appendChild(s),s}function r(){const e=document.documentElement;return{left:e.scrollLeft-(e.clientLeft||0),top:e.scrollTop-(e.clientTop||0)}}n.create=o,n.createWithHTML=function(e,n,r,i,l=!1){const s=o(e,n,r,l);return s.innerHTML=i,s.setAttribute(t.PEEK_JS_IGNORE_STATE_ATTRIBUTE,"ignore"),s},n.cancelBubble=function(e){e.preventDefault(),e.stopPropagation()},n.getScrollPosition=r,n.showElementAtMousePosition=function(e,t){if("block"!==t.style.display){let n=e.pageX,o=e.pageY;const i=r();t.style.display="block",n+t.offsetWidth>window.innerWidth?n-=t.offsetWidth:n++,o+t.offsetHeight>window.innerHeight?o-=t.offsetHeight:o++,n{function n(t,n){return e.definedArray(t)?t:n}t.getAnyString=function(e,t){return"string"==typeof e?e:t},t.getString=function(t,n){return e.definedString(t)?t:n},t.getBoolean=function(t,n){return e.definedBoolean(t)?t:n},t.getNumber=function(t,n){return e.definedNumber(t)?t:n},t.getArray=n,t.getObject=function(t,n){return e.definedObject(t)?t:n},t.getStringOrArray=function(t,o){let r=o;if(e.definedString(t)){const e=t.toString().split(" ");0===e.length?t=o:r=e}else r=n(t,o);return r}})(o||(o={})),(e=>{let t;(t=e.Options||(e.Options={})).get=function(e=null){let t=o.getObject(e,{});return t.dialogDisplayDelay=o.getNumber(t.dialogDisplayDelay,1e3),t.searchDelayDelay=o.getNumber(t.searchDelayDelay,500),t=function(e){return e.text=o.getObject(e.text,{}),e.text.cssText=o.getAnyString(e.text.cssText,"CSS"),e.text.attributesText=o.getAnyString(e.text.attributesText,"Attributes"),e.text.sizeText=o.getAnyString(e.text.sizeText,"Size"),e.text.classesText=o.getAnyString(e.text.classesText,"Classes"),e.text.noAttributesAvailableText=o.getAnyString(e.text.noAttributesAvailableText,"No attributes are available."),e.text.closeText=o.getAnyString(e.text.closeText,"Close"),e.text.copyText=o.getAnyString(e.text.copyText,"Copy"),e.text.copySymbolText=o.getAnyString(e.text.copySymbolText,"❐"),e.text.pasteText=o.getAnyString(e.text.pasteText,"Paste"),e.text.pasteSymbolText=o.getAnyString(e.text.pasteSymbolText,"☐"),e.text.removeText=o.getAnyString(e.text.removeText,"Remove"),e.text.removeSymbolText=o.getAnyString(e.text.removeSymbolText,"✕"),e.text.noClassesAvailableText=o.getAnyString(e.text.noClassesAvailableText,"No classes are available."),e.text.searchPropertiesPlaceHolderText=o.getAnyString(e.text.searchPropertiesPlaceHolderText,"Search properties..."),e.text.clearText=o.getAnyString(e.text.clearText,"Clear"),e.text.clearSymbolText=o.getAnyString(e.text.clearSymbolText,"✕"),e.text.noPropertiesFoundForSearchText=o.getAnyString(e.text.noPropertiesFoundForSearchText,"No properties were found for your search."),e.text.dialogMovedSymbolText=o.getAnyString(e.text.dialogMovedSymbolText,"✸"),e.text.propertyValuePlaceHolderText=o.getAnyString(e.text.propertyValuePlaceHolderText,"Enter value..."),e.text.modeNotSupportedText=o.getAnyString(e.text.modeNotSupportedText,"The mode you have specified is not supported."),e.text.unknownModeText=o.getAnyString(e.text.unknownModeText,"Unknown Mode"),e.text.moveUpText=o.getAnyString(e.text.moveUpText,"Move Up"),e.text.moveUpSymbolText=o.getAnyString(e.text.moveUpSymbolText,"↑"),e.text.moveDownText=o.getAnyString(e.text.moveDownText,"Move Down"),e.text.moveDownSymbolText=o.getAnyString(e.text.moveDownSymbolText,"↓"),e.text.removeElementSymbolText=o.getAnyString(e.text.removeElementSymbolText,"⌫"),e.text.lockText=o.getAnyString(e.text.lockText,"Lock"),e}(t),t}})(r||(r={})),(e=>{let t;(t=e.Options||(e.Options={})).get=function(e){let t=o.getObject(e,{});return t.nodeType=o.getStringOrArray(t.nodeType,[]),t.mode=o.getNumber(t.mode,1),t.titleText=o.getString(t.titleText,""),t.showOnly=o.getStringOrArray(t.showOnly,[]),t.allowEditing=o.getBoolean(t.allowEditing,!1),t.showIdOrNameInTitle=o.getBoolean(t.showIdOrNameInTitle,!0),t.showNodeNameInTitle=o.getBoolean(t.showNodeNameInTitle,!1),t.ignoreValues=o.getStringOrArray(t.ignoreValues,[]),t.showLockButtonInTitle=o.getBoolean(t.showLockButtonInTitle,!0),t}})(i||(i={})),(()=>{let o={},l=null,s=null,a=null,c=null,u=null,d=0,p=null,x=null,f=null,g=null,y=null,m=null,T=null,v=0,b=null,h=[],S={},A=null,L=!1,w=0,E=0,N=null,O=0,M=0,H=!1,P=0,k=0;function C(){e.definedObject(l)&&(D(),document.body.removeChild(l),l=null),l=n.create(document.body,"div","peek-js"),l.onmousemove=n.cancelBubble,s=n.create(l,"div","dialog-title-bar"),c=n.create(l,"div","dialog-search"),p=n.create(l,"div","dialog-contents"),f=n.create(l,"div","dialog-buttons"),g=n.createWithHTML(f,"button","copy",o.text.copyText),g.onclick=I,u=n.create(c,"input"),u.placeholder=o.text.searchPropertiesPlaceHolderText,u.type="text",u.onkeyup=j,u.onpaste=j,u.onfocus=()=>u.select();const t=n.createWithHTML(c,"button","clear-small",o.text.clearSymbolText);t.title=o.text.clearText,t.onclick=_;var r,i;n.createWithHTML(f,"button","close",o.text.closeText).onclick=D,y=n.createWithHTML(f,"button","remove",o.text.removeElementSymbolText),y.onclick=$,y.title=o.text.removeText,m=n.createWithHTML(f,"button","move-up",o.text.moveUpSymbolText),m.onclick=R,m.title=o.text.moveUpText,T=n.createWithHTML(f,"button","move-down",o.text.moveDownSymbolText),T.onclick=U,T.title=o.text.moveDownText,i=l,(r=s).onmousedown=e=>{!function(e,t){H||(N=t,H=!0,P=e.pageX-N.offsetLeft,k=e.pageY-N.offsetTop,O=N.offsetLeft,M=N.offsetTop)}(e,i)},i.onmousemove=e=>{q(e,!0)},r.onmouseup=()=>{Y()},r.oncontextmenu=()=>{Y()},document.addEventListener("mousemove",q),document.addEventListener("mouseleave",Q)}function W(t=null){if(!L&&e.defined(b)){let r=b.titleText;if(s.innerHTML="",e.definedString(r)||(r=1===b.mode?o.text.cssText:2===b.mode?o.text.attributesText:3===b.mode?o.text.sizeText:4===b.mode?o.text.classesText:o.text.unknownModeText),n.createWithHTML(s,"span","title",r),w>1&&b.showNodeNameInTitle&&(n.createWithHTML(s,"span","dash"," - "),n.createWithHTML(s,"span","node-name",`[${t.nodeName.toLowerCase()}]`)),b.showIdOrNameInTitle&&e.defined(t)){const o=t.getAttribute("id"),r=t.getAttribute("name");e.definedString(o)?(n.createWithHTML(s,"span","dash"," - "),n.createWithHTML(s,"span","id-or-name",o)):e.definedString(r)&&(n.createWithHTML(s,"span","dash"," - "),n.createWithHTML(s,"span","id-or-name",r))}b.showLockButtonInTitle&&(a=n.createWithHTML(s,"button","lock",o.text.dialogMovedSymbolText),a.title=o.text.lockText,a.onclick=()=>B())}}function B(){L||(n.createWithHTML(s,"span","locked",`${o.text.dialogMovedSymbolText} `,!0),e.defined(a)&&(a.parentNode.removeChild(a),a=null),L=!0)}function D(){l.style.display="none",L=!1,u.value=""}function I(){const e=[];for(let t in S)S.hasOwnProperty(t)&&(1===b.mode?e.push(`${t}: ${S[t]};`):2===b.mode?e.push(`${t}="${S[t]}"`):4===b.mode&&e.push(S[t]));1===b.mode?navigator.clipboard.writeText(`${A.nodeName.toLowerCase()} { \n ${e.join("\n")} \n }`):2!==b.mode&&4!==b.mode||navigator.clipboard.writeText(e.join(" "))}function $(){var e;null==(e=A.parentNode)||e.removeChild(A),D()}function j(){0!==d&&(clearTimeout(d),d=0),d=setTimeout((()=>{const t=p.getElementsByClassName("property-name"),n=[].slice.call(t),o=n.length,r=u.value.toLowerCase();let i=0;for(let t=0;t-1?(o.style.removeProperty("display"),i++):o.style.display="none"}}0===i?x.style.display="block":x.style.removeProperty("display")}),o.searchDelayDelay)}function _(){u.value="",u.focus(),j()}function R(){null!==A.parentNode&&null!==A.previousElementSibling&&A.parentNode.insertBefore(A,A.previousElementSibling)}function U(){null!==A.parentNode&&null!==A.nextElementSibling&&A.parentNode.insertBefore(A.nextElementSibling,A)}function V(t){e.defined(b)&&(p.innerHTML="",p.scrollTop=0,S={},E=0,A=t,W(t),1===b.mode||4===b.mode||2===b.mode?g.style.removeProperty("display"):g.style.display="none",b.allowEditing?(y.style.removeProperty("display"),m.style.removeProperty("display"),T.style.removeProperty("display")):(y.style.display="none",m.style.display="none",T.style.display="none"),x=n.createWithHTML(p,"span","no-search-results",o.text.noPropertiesFoundForSearchText),1===b.mode?function(e){const t=getComputedStyle(e),n=t.length;for(let o=0;o0){let t=1;for(let n of e.classList)F(e,t.toString(),n),t++}else p.innerHTML="",n.createWithHTML(p,"span","warning",o.text.noClassesAvailableText)}(t):n.createWithHTML(p,"span","warning",o.text.modeNotSupportedText),E<=15?c.style.display="none":c.style.removeProperty("display"))}function F(t,r,i,l=!0){if(function(e){return 0===b.showOnly.length||b.showOnly.indexOf(e)>-1}(r)&&function(e){return 0===b.ignoreValues.length||b.ignoreValues.indexOf(e)<=-1}(i)){const s=n.create(p,"div","property-row");n.createWithHTML(s,"div","property-name",r);const a=n.create(s,"div","property-value"),c=n.create(a,"input");(e.hexColor(i)||e.isRgbColor(i))&&(c.classList.add("property-value-color"),c.style.borderLeftColor=i),c.placeholder=o.text.propertyValuePlaceHolderText,c.onfocus=()=>c.select();const u=n.createWithHTML(s,"button","copy-small",o.text.copySymbolText);if(u.title=o.text.copyText,u.onclick=()=>navigator.clipboard.writeText(i),b.allowEditing&&l){const e=n.createWithHTML(s,"button","paste-small",o.text.pasteSymbolText),l=n.createWithHTML(s,"button","remove-small",o.text.removeSymbolText);e.title=o.text.pasteText,l.title=o.text.removeText,e.onclick=()=>function(e,t,n){navigator.clipboard.readText().then((o=>{t.value=o,z(e,n,t)}))}(t,c,r),l.onclick=()=>function(e,t,n,o){1===b.mode?(t.style.removeProperty(n),e.parentNode.removeChild(e)):2===b.mode?(t.removeAttribute(n),e.parentNode.removeChild(e)):4===b.mode&&(t.classList.remove(o),e.parentNode.removeChild(e))}(s,t,r,i)}c.type="text",c.value=i,S[r]=i,E++,b.allowEditing&&l?c.onkeyup=e=>function(e,t,n,o){"Enter"===e.code&&z(o,t,n)}(e,r,c,t):c.readOnly=!0}}function z(t,n,o){1===b.mode?t.style.setProperty(n,o.value):2===b.mode?t.setAttribute(n,o.value):4===b.mode&&t.classList.replace(t.classList[parseInt(n)-1],o.value),S[n]=o.value,e.hexColor(o.value)||e.isRgbColor(o.value)?(o.classList.add("property-value-color"),o.style.borderLeftColor=o.value):o.classList.remove("property-value-color")}function G(n){const o=n.getAttribute(t.PEEK_JS_IGNORE_STATE_ATTRIBUTE);e.definedString(o)||"ignore"===o||(n.addEventListener("mousemove",(e=>{J(e,n)})),h.push(n))}function J(t,r){!L&&e.defined(b)&&(n.cancelBubble(t),X(),v=setTimeout((()=>{V(r),n.showElementAtMousePosition(t,l)}),o.dialogDisplayDelay))}function K(){L||(X(),D())}function X(){0!==v&&(clearTimeout(v),v=0)}function Y(){H&&(H=!1,N=null,O=0,M=0)}function q(e,t=!1){t&&n.cancelBubble(e),H&&(B(),N.style.left=e.pageX-P+"px",N.style.top=e.pageY-k+"px")}function Q(){H&&(N.style.left=`${O}px`,N.style.top=`${M}px`,H=!1,N=null,O=0,M=0)}const Z={start:function(t){return e.definedObject(b)||(b=i.Options.get(t),W(),function(){const e=b.nodeType;w=e.length;for(let t=0;t{J(t,e)}))}h=[],window.removeEventListener("mousemove",K),D()}()),Z},close:function(){return D(),Z},setConfiguration:function(t){if(e.definedObject(t)){let n=!1;const i=o;for(let e in t)t.hasOwnProperty(e)&&o.hasOwnProperty(e)&&i[e]!==t[e]&&(i[e]=t[e],n=!0);n&&(o=r.Options.get(i),C(),e.definedObject(b)&&W())}return Z},getVersion:function(){return"1.8.0"}};o=r.Options.get(),document.addEventListener("DOMContentLoaded",(()=>{C()})),e.defined(window.$peek)||(window.$peek=Z)})(); \ No newline at end of file +"use strict";var e,t,n,o,r,i;(e=>{function t(e){return null!=e&&""!==e.toString()}function n(e){return t(e)&&"object"==typeof e}function o(e){return n(e)&&e instanceof Array}e.defined=t,e.definedObject=n,e.definedBoolean=function(e){return t(e)&&"boolean"==typeof e},e.definedString=function(e){return t(e)&&"string"==typeof e},e.definedFunction=function(e){return t(e)&&"function"==typeof e},e.definedNumber=function(e){return t(e)&&"number"==typeof e},e.definedArray=o,e.definedDate=function(e){return n(e)&&e instanceof Date},e.invalidOptionArray=function(e,t=1){return!o(e)||e.length=2&&e.length<=7;return t=!(!t||"#"!==e[0])&&isNaN(+e.substring(1,e.length-1)),t},e.isRgbColor=function(e){return e.startsWith("rgb")||e.startsWith("rgba")}})(e||(e={})),(t||(t={})).PEEK_JS_IGNORE_STATE_ATTRIBUTE="data-peek-js-ignore-state",(n=>{function o(n,o,r="",i=!1){const l=o.toLowerCase();let s="text"===l?document.createTextNode(""):document.createElement(l);return s.setAttribute(t.PEEK_JS_IGNORE_STATE_ATTRIBUTE,"ignore"),e.definedString(r)&&(s.className=r),i?n.insertBefore(s,n.children[0]):n.appendChild(s),s}function r(){const e=document.documentElement;return{left:e.scrollLeft-(e.clientLeft||0),top:e.scrollTop-(e.clientTop||0)}}n.create=o,n.createWithHTML=function(e,n,r,i,l=!1){const s=o(e,n,r,l);return s.innerHTML=i,s.setAttribute(t.PEEK_JS_IGNORE_STATE_ATTRIBUTE,"ignore"),s},n.cancelBubble=function(e){e.preventDefault(),e.stopPropagation()},n.getScrollPosition=r,n.showElementAtMousePosition=function(e,t){if("block"!==t.style.display){let n=e.pageX,o=e.pageY;const i=r();t.style.display="block",n+t.offsetWidth>window.innerWidth?n-=t.offsetWidth:n++,o+t.offsetHeight>window.innerHeight?o-=t.offsetHeight:o++,n{function n(t,n){return e.definedArray(t)?t:n}t.getAnyString=function(e,t){return"string"==typeof e?e:t},t.getString=function(t,n){return e.definedString(t)?t:n},t.getBoolean=function(t,n){return e.definedBoolean(t)?t:n},t.getNumber=function(t,n){return e.definedNumber(t)?t:n},t.getArray=n,t.getObject=function(t,n){return e.definedObject(t)?t:n},t.getStringOrArray=function(t,o){let r=o;if(e.definedString(t)){const e=t.toString().split(" ");0===e.length?t=o:r=e}else r=n(t,o);return r}})(o||(o={})),(e=>{let t;(t=e.Options||(e.Options={})).get=function(e=null){let t=o.getObject(e,{});return t.dialogDisplayDelay=o.getNumber(t.dialogDisplayDelay,1e3),t.searchDelayDelay=o.getNumber(t.searchDelayDelay,500),t=function(e){return e.text=o.getObject(e.text,{}),e.text.cssText=o.getAnyString(e.text.cssText,"CSS"),e.text.attributesText=o.getAnyString(e.text.attributesText,"Attributes"),e.text.sizeText=o.getAnyString(e.text.sizeText,"Size"),e.text.classesText=o.getAnyString(e.text.classesText,"Classes"),e.text.noAttributesAvailableText=o.getAnyString(e.text.noAttributesAvailableText,"No attributes are available."),e.text.closeText=o.getAnyString(e.text.closeText,"Close"),e.text.copyText=o.getAnyString(e.text.copyText,"Copy"),e.text.copySymbolText=o.getAnyString(e.text.copySymbolText,"❐"),e.text.pasteText=o.getAnyString(e.text.pasteText,"Paste"),e.text.pasteSymbolText=o.getAnyString(e.text.pasteSymbolText,"☐"),e.text.removeText=o.getAnyString(e.text.removeText,"Remove"),e.text.removeSymbolText=o.getAnyString(e.text.removeSymbolText,"✕"),e.text.noClassesAvailableText=o.getAnyString(e.text.noClassesAvailableText,"No classes are available."),e.text.searchPropertiesPlaceHolderText=o.getAnyString(e.text.searchPropertiesPlaceHolderText,"Search properties..."),e.text.clearText=o.getAnyString(e.text.clearText,"Clear"),e.text.clearSymbolText=o.getAnyString(e.text.clearSymbolText,"✕"),e.text.noPropertiesFoundForSearchText=o.getAnyString(e.text.noPropertiesFoundForSearchText,"No properties were found for your search."),e.text.dialogMovedSymbolText=o.getAnyString(e.text.dialogMovedSymbolText,"✸"),e.text.propertyValuePlaceHolderText=o.getAnyString(e.text.propertyValuePlaceHolderText,"Enter value..."),e.text.modeNotSupportedText=o.getAnyString(e.text.modeNotSupportedText,"The mode you have specified is not supported."),e.text.unknownModeText=o.getAnyString(e.text.unknownModeText,"Unknown Mode"),e.text.moveUpText=o.getAnyString(e.text.moveUpText,"Move Up"),e.text.moveUpSymbolText=o.getAnyString(e.text.moveUpSymbolText,"↑"),e.text.moveDownText=o.getAnyString(e.text.moveDownText,"Move Down"),e.text.moveDownSymbolText=o.getAnyString(e.text.moveDownSymbolText,"↓"),e.text.removeElementSymbolText=o.getAnyString(e.text.removeElementSymbolText,"⌫"),e.text.lockText=o.getAnyString(e.text.lockText,"Lock"),e}(t),t}})(r||(r={})),(e=>{let t;(t=e.Options||(e.Options={})).get=function(e){let t=o.getObject(e,{});return t.nodeType=o.getStringOrArray(t.nodeType,[]),t.mode=o.getNumber(t.mode,1),t.titleText=o.getString(t.titleText,""),t.showOnly=o.getStringOrArray(t.showOnly,[]),t.allowEditing=o.getBoolean(t.allowEditing,!1),t.showIdOrNameInTitle=o.getBoolean(t.showIdOrNameInTitle,!0),t.showNodeNameInTitle=o.getBoolean(t.showNodeNameInTitle,!1),t.ignoreValues=o.getStringOrArray(t.ignoreValues,[]),t.showLockButtonInTitle=o.getBoolean(t.showLockButtonInTitle,!0),t}})(i||(i={})),(()=>{let o={},l=null,s=null,a=null,c=null,u=null,d=0,p=null,x=null,f=null,g=null,y=null,m=null,T=null,v=0,b=null,h=[],S={},A=null,L=!1,w=0,E=0,N=null,O=0,M=0,H=!1,P=0,k=0;function C(){e.definedObject(l)&&(D(),document.body.removeChild(l),l=null),l=n.create(document.body,"div","peek-js"),l.onmousemove=n.cancelBubble,s=n.create(l,"div","dialog-title-bar"),c=n.create(l,"div","dialog-search"),p=n.create(l,"div","dialog-contents"),f=n.create(l,"div","dialog-buttons"),g=n.createWithHTML(f,"button","copy",o.text.copyText),g.onclick=I,u=n.create(c,"input"),u.placeholder=o.text.searchPropertiesPlaceHolderText,u.type="text",u.onkeyup=j,u.onpaste=j,u.onfocus=()=>u.select();const t=n.createWithHTML(c,"button","clear-small",o.text.clearSymbolText);t.title=o.text.clearText,t.onclick=_;var r,i;n.createWithHTML(f,"button","close",o.text.closeText).onclick=D,y=n.createWithHTML(f,"button","remove",o.text.removeElementSymbolText),y.onclick=$,y.title=o.text.removeText,m=n.createWithHTML(f,"button","move-up",o.text.moveUpSymbolText),m.onclick=R,m.title=o.text.moveUpText,T=n.createWithHTML(f,"button","move-down",o.text.moveDownSymbolText),T.onclick=U,T.title=o.text.moveDownText,i=l,(r=s).onmousedown=e=>{!function(e,t){H||(N=t,H=!0,P=e.pageX-N.offsetLeft,k=e.pageY-N.offsetTop,O=N.offsetLeft,M=N.offsetTop)}(e,i)},i.onmousemove=e=>{q(e,!0)},r.onmouseup=()=>{Y()},r.oncontextmenu=()=>{Y()},document.addEventListener("mousemove",q),document.addEventListener("mouseleave",Q)}function W(t=null){if(!L&&e.defined(b)){let r=b.titleText;if(s.innerHTML="",e.definedString(r)||(r=1===b.mode?o.text.cssText:2===b.mode?o.text.attributesText:3===b.mode?o.text.sizeText:4===b.mode?o.text.classesText:o.text.unknownModeText),n.createWithHTML(s,"span","title",r),w>1&&b.showNodeNameInTitle&&(n.createWithHTML(s,"span","dash"," - "),n.createWithHTML(s,"span","node-name",`[${t.nodeName.toLowerCase()}]`)),b.showIdOrNameInTitle&&e.defined(t)){const o=t.getAttribute("id"),r=t.getAttribute("name");e.definedString(o)?(n.createWithHTML(s,"span","dash"," - "),n.createWithHTML(s,"span","id-or-name",o)):e.definedString(r)&&(n.createWithHTML(s,"span","dash"," - "),n.createWithHTML(s,"span","id-or-name",r))}b.showLockButtonInTitle&&(a=n.createWithHTML(s,"button","lock",o.text.dialogMovedSymbolText),a.title=o.text.lockText,a.onclick=()=>B())}}function B(){L||(n.createWithHTML(s,"span","locked",`${o.text.dialogMovedSymbolText} `,!0),e.defined(a)&&(a.parentNode.removeChild(a),a=null),L=!0)}function D(){l.style.display="none",L=!1,u.value=""}function I(){const e=[];for(let t in S)S.hasOwnProperty(t)&&(1===b.mode?e.push(`${t}: ${S[t]};`):2===b.mode?e.push(`${t}="${S[t]}"`):4===b.mode&&e.push(S[t]));1===b.mode?navigator.clipboard.writeText(`${A.nodeName.toLowerCase()} { \n ${e.join("\n")} \n }`):2!==b.mode&&4!==b.mode||navigator.clipboard.writeText(e.join(" "))}function $(){A.parentNode?.removeChild(A),D()}function j(){0!==d&&(clearTimeout(d),d=0),d=setTimeout((()=>{const t=p.getElementsByClassName("property-name"),n=[].slice.call(t),o=n.length,r=u.value.toLowerCase();let i=0;for(let t=0;t-1?(o.style.removeProperty("display"),i++):o.style.display="none"}}0===i?x.style.display="block":x.style.removeProperty("display")}),o.searchDelayDelay)}function _(){u.value="",u.focus(),j()}function R(){null!==A.parentNode&&null!==A.previousElementSibling&&A.parentNode.insertBefore(A,A.previousElementSibling)}function U(){null!==A.parentNode&&null!==A.nextElementSibling&&A.parentNode.insertBefore(A.nextElementSibling,A)}function V(t){e.defined(b)&&(p.innerHTML="",p.scrollTop=0,S={},E=0,A=t,W(t),1===b.mode||4===b.mode||2===b.mode?g.style.removeProperty("display"):g.style.display="none",b.allowEditing?(y.style.removeProperty("display"),m.style.removeProperty("display"),T.style.removeProperty("display")):(y.style.display="none",m.style.display="none",T.style.display="none"),x=n.createWithHTML(p,"span","no-search-results",o.text.noPropertiesFoundForSearchText),1===b.mode?function(e){const t=getComputedStyle(e),n=t.length;for(let o=0;o0){let t=1;for(let n of e.classList)F(e,t.toString(),n),t++}else p.innerHTML="",n.createWithHTML(p,"span","warning",o.text.noClassesAvailableText)}(t):n.createWithHTML(p,"span","warning",o.text.modeNotSupportedText),E<=15?c.style.display="none":c.style.removeProperty("display"))}function F(t,r,i,l=!0){if(function(e){return 0===b.showOnly.length||b.showOnly.indexOf(e)>-1}(r)&&function(e){return 0===b.ignoreValues.length||b.ignoreValues.indexOf(e)<=-1}(i)){const s=n.create(p,"div","property-row");n.createWithHTML(s,"div","property-name",r);const a=n.create(s,"div","property-value"),c=n.create(a,"input");(e.hexColor(i)||e.isRgbColor(i))&&(c.classList.add("property-value-color"),c.style.borderLeftColor=i),c.placeholder=o.text.propertyValuePlaceHolderText,c.onfocus=()=>c.select();const u=n.createWithHTML(s,"button","copy-small",o.text.copySymbolText);if(u.title=o.text.copyText,u.onclick=()=>navigator.clipboard.writeText(i),b.allowEditing&&l){const e=n.createWithHTML(s,"button","paste-small",o.text.pasteSymbolText),l=n.createWithHTML(s,"button","remove-small",o.text.removeSymbolText);e.title=o.text.pasteText,l.title=o.text.removeText,e.onclick=()=>function(e,t,n){navigator.clipboard.readText().then((o=>{t.value=o,z(e,n,t)}))}(t,c,r),l.onclick=()=>function(e,t,n,o){1===b.mode?(t.style.removeProperty(n),e.parentNode.removeChild(e)):2===b.mode?(t.removeAttribute(n),e.parentNode.removeChild(e)):4===b.mode&&(t.classList.remove(o),e.parentNode.removeChild(e))}(s,t,r,i)}c.type="text",c.value=i,S[r]=i,E++,b.allowEditing&&l?c.onkeyup=e=>function(e,t,n,o){"Enter"===e.code&&z(o,t,n)}(e,r,c,t):c.readOnly=!0}}function z(t,n,o){1===b.mode?t.style.setProperty(n,o.value):2===b.mode?t.setAttribute(n,o.value):4===b.mode&&t.classList.replace(t.classList[parseInt(n)-1],o.value),S[n]=o.value,e.hexColor(o.value)||e.isRgbColor(o.value)?(o.classList.add("property-value-color"),o.style.borderLeftColor=o.value):o.classList.remove("property-value-color")}function G(n){const o=n.getAttribute(t.PEEK_JS_IGNORE_STATE_ATTRIBUTE);e.definedString(o)||"ignore"===o||(n.addEventListener("mousemove",(e=>{J(e,n)})),h.push(n))}function J(t,r){!L&&e.defined(b)&&(n.cancelBubble(t),X(),v=setTimeout((()=>{V(r),n.showElementAtMousePosition(t,l)}),o.dialogDisplayDelay))}function K(){L||(X(),D())}function X(){0!==v&&(clearTimeout(v),v=0)}function Y(){H&&(H=!1,N=null,O=0,M=0)}function q(e,t=!1){t&&n.cancelBubble(e),H&&(B(),N.style.left=e.pageX-P+"px",N.style.top=e.pageY-k+"px")}function Q(){H&&(N.style.left=`${O}px`,N.style.top=`${M}px`,H=!1,N=null,O=0,M=0)}const Z={start:function(t){return e.definedObject(b)||(b=i.Options.get(t),W(),function(){const e=b.nodeType;w=e.length;for(let t=0;t{J(t,e)}))}h=[],window.removeEventListener("mousemove",K),D()}()),Z},close:function(){return D(),Z},setConfiguration:function(t){if(e.definedObject(t)){let n=!1;const i=o;for(let e in t)t.hasOwnProperty(e)&&o.hasOwnProperty(e)&&i[e]!==t[e]&&(i[e]=t[e],n=!0);n&&(o=r.Options.get(i),C(),e.definedObject(b)&&W())}return Z},getVersion:function(){return"1.8.0"}};o=r.Options.get(),document.addEventListener("DOMContentLoaded",(()=>{C()})),e.defined(window.$peek)||(window.$peek=Z)})(); \ No newline at end of file diff --git a/docs/CHANGE_LOG.md b/docs/CHANGE_LOG.md index 3eb27e7..37d547d 100755 --- a/docs/CHANGE_LOG.md +++ b/docs/CHANGE_LOG.md @@ -3,6 +3,7 @@ ## Version 1.8.0: #### **Adjustments:** +- Moved from ES2016 to ES2020. - Updated to the latest NPM packages. - Added an ignore path for ".DS_Store" files when packing the NuGet package. diff --git a/tsconfig.json b/tsconfig.json index 312bf5f..3f89529 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -1,6 +1,6 @@ { "compilerOptions": { - "target": "ES2016", + "target": "ES2020", "module": "ESNext", "moduleResolution": "node", "declaration": true, From df428ca23d2f8e950c42029aaa2fd0b6c4c7a9b8 Mon Sep 17 00:00:00 2001 From: William Troup Date: Mon, 2 Sep 2024 15:33:43 +0100 Subject: [PATCH 05/14] Adjustments. --- dist/peek.esm.js | 2 +- dist/peek.esm.js.map | 2 +- dist/peek.js | 2 +- dist/peek.js.map | 2 +- dist/peek.min.js | 2 +- src/peek.ts | 2 +- 6 files changed, 6 insertions(+), 6 deletions(-) diff --git a/dist/peek.esm.js b/dist/peek.esm.js index e77064a..2288892 100644 --- a/dist/peek.esm.js +++ b/dist/peek.esm.js @@ -394,7 +394,7 @@ var i; } } function I() { - A.parentNode?.removeChild(A); + A.parentNode.removeChild(A); D(); } function j() { diff --git a/dist/peek.esm.js.map b/dist/peek.esm.js.map index 145a89b..a457001 100644 --- a/dist/peek.esm.js.map +++ b/dist/peek.esm.js.map @@ -1 +1 @@ -{"version":3,"sources":["/Users/williamtroup/Documents/GitHub%20Repos/Peek.js/dist/peek.esm.js"],"names":["Is","Is2","defined","value","toString","definedObject","object","definedBoolean","definedString","definedFunction","definedNumber","definedArray","Array","definedDate","Date","invalidOptionArray","array","minimumLength","length","hexColor","valid","isNaN","substring","isRgbColor","startsWith","Constant","Constant2","PEEK_JS_IGNORE_STATE_ATTRIBUTE","DomElement","DomElement2","create","container","type","className","insertAtStart","nodeType","toLowerCase","isText","result","document","createTextNode","createElement","setAttribute","appendChild","insertBefore","children","createWithHTML","html","element","innerHTML","cancelBubble","e","preventDefault","stopPropagation","getScrollPosition","documentElement","left","scrollLeft","clientLeft","top","scrollTop","clientTop","showElementAtMousePosition","style","display","pageX","pageY","scrollPosition","offsetWidth","window","innerWidth","offsetHeight","innerHeight","getOffset","offsetLeft","offsetTop","offsetParent","Default","Default2","getAnyString","defaultValue","getString","getBoolean","getNumber","getArray","getObject","getStringOrArray","values","split","Config","Config2","Options","Options2","get","newConfiguration","configuration","dialogDisplayDelay","searchDelayDelay","getText","text","cssText","attributesText","sizeText","classesText","noAttributesAvailableText","closeText","copyText","copySymbolText","pasteText","pasteSymbolText","removeText","removeSymbolText","noClassesAvailableText","searchPropertiesPlaceHolderText","clearText","clearSymbolText","noPropertiesFoundForSearchText","dialogMovedSymbolText","propertyValuePlaceHolderText","modeNotSupportedText","unknownModeText","moveUpText","moveUpSymbolText","moveDownText","moveDownSymbolText","removeElementSymbolText","lockText","Start","Start2","newOptions","options","mode","titleText","showOnly","allowEditing","showIdOrNameInTitle","showNodeNameInTitle","ignoreValues","showLockButtonInTitle","_configuration","_dialog","_dialog_Title","_dialog_Title_Button_Lock","_dialog_Search","_dialog_Search_Input","_dialog_Search_Input_TimerId","_dialog_Contents","_dialog_Contents_NoSearchResultsText","_dialog_Buttons","_dialog_Buttons_Copy","_dialog_Buttons_Remove","_dialog_Buttons_MoveUp","_dialog_Buttons_MoveDown","_dialog_TimerId","_current_Process_Options","_current_Process_Elements","_current_Process_Properties","_current_Process_Element","_current_Process_Locked","_current_Process_NodeCount","_current_Process_Properties_Count","_element_Dialog_Move","_element_Dialog_Move_Original_X","_element_Dialog_Move_Original_Y","_element_Dialog_Move_IsMoving","_element_Dialog_Move_X","_element_Dialog_Move_Y","buildDialog","closeDialog","body","removeChild","onmousemove","onclick","onCopy","placeholder","onkeyup","onSearchProperties","onpaste","onfocus","select","removeButton","title","onSearchPropertiesClear","closeButton","onRemove","onMoveUp","onMoveDown","makeDialogMovable","setDialogTitle","nodeName","id","getAttribute","name","setDialogAsLocked","parentNode","lines","propertyName","hasOwnProperty","push","navigator","clipboard","writeText","join","clearTimeout","setTimeout","getElementsByClassName","propertyNames","slice","call","propertyNamesLength","searchValue","propertiesFound","propertyNameIndex","parent","trim","removeProperty","propertyNameText","innerText","indexOf","focus","previousElementSibling","nextElementSibling","buildDialogContent","buildCssProperties","buildAttributeProperties","buildSizeProperties","buildClassProperties","computedStyles","getComputedStyle","computedStylesLength","styleIndex","buildPropertyRow","getPropertyValue","hasAttributes","attribute","attributes","offset","classList","index","propertyValueText","isPropertyVisible","isPropertyValueVisible","property","propertyValue","propertyValueInput","add","borderLeftColor","copyButton","pasteButton","onPropertyPaste","onPropertyRemove","readOnly","onPropertyValueKeyUp","readText","then","data","updatePropertyValue","removeAttribute","remove","input","code","setProperty","replace","parseInt","buildNodeEvents","tagTypes","tagTypeIndex","domElements","getElementsByTagName","elements","elementsLength","elementIndex","buildNodeEvent","addEventListener","onWindowMove","attributeValue","onNodeMouseOver","removeNodeEvents","currentProcessElementsLength","removeEventListener","clearDialogShowTimer","titleBar","dialog","onmousedown","onMoveTitleBarMouseDown","onMoveDocumentMouseMove","onmouseup","onMoveTitleBarMouseUp","oncontextmenu","onMoveDocumentMouseLeave","_public","start","stop","close","setConfiguration","configurationHasChanged","newInternalConfiguration","getVersion","$peek"],"mappings":"AACA,IAAIA;;AACJ,CAAEC;IACA,SAASC,EAAQC;QACf,OAAOA,MAAU,QAAQA,WAAe,KAAKA,EAAMC,eAAe;AACpE;IACAH,EAAIC,UAAUA;IACd,SAASG,EAAcC;QACrB,OAAOJ,EAAQI,aAAkBA,MAAW;AAC9C;IACAL,EAAII,gBAAgBA;IACpB,SAASE,EAAeD;QACtB,OAAOJ,EAAQI,aAAkBA,MAAW;AAC9C;IACAL,EAAIM,iBAAiBA;IACrB,SAASC,EAAcF;QACrB,OAAOJ,EAAQI,aAAkBA,MAAW;AAC9C;IACAL,EAAIO,gBAAgBA;IACpB,SAASC,EAAgBH;QACvB,OAAOJ,EAAQI,aAAkBA,MAAW;AAC9C;IACAL,EAAIQ,kBAAkBA;IACtB,SAASC,EAAcJ;QACrB,OAAOJ,EAAQI,aAAkBA,MAAW;AAC9C;IACAL,EAAIS,gBAAgBA;IACpB,SAASC,EAAaL;QACpB,OAAOD,EAAcC,MAAWA,aAAkBM;AACpD;IACAX,EAAIU,eAAeA;IACnB,SAASE,EAAYP;QACnB,OAAOD,EAAcC,MAAWA,aAAkBQ;AACpD;IACA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AC9CA,IAA2B;gBAC3B8H;gBACAH;AACF;YACA,OAAOa;AACT;QACAG,OAAO;YACL7H;YACA,OAAO0H;AACT;QAMAI,kBAAkB,SAASxM;YACzB,IAAI9F,EAAGK,cAAcyF,IAAmB;gBACtC,IAAIyM,IAA0B;gBAC9B,MAAMC,IAA2B7J;gBACjC,KAAK,IAAIyD,KAAgBtG,GAAkB;oBACzC,IAAIA,EAAiBuG,eAAeD,MAAiBzD,EAAe0D,eAAeD,MAAiBoG,EAAyBpG,OAAkBtG,EAAiBsG,IAAe;wBAC7KoG,EAAyBpG,KAAgBtG,EAAiBsG;wBAC1DmG,IAA0B;AAC5B;AACF;gBACA,IAAIA,GAAyB;oBAC3B5J,IAAiBlD,EAAOE,QAAQE,IAAI2M;oBACpCjI;oBACA,IAAIvK,EAAGK,cAAcqJ,IAA2B;wBAC9CkC;AACF;AACF;AACF;YACA,OAAOsG;AACT;QAMAO,YAAY;YACV,OAAO;AACT;;IAEF;QACE9J,IAAiBlD,EAAOE,QAAQE;QAChCtD,SAAS0O,iBAAiB,qBAAoB;YAC5C1G;AAAa;QAEf,KAAKvK,EAAGE,QAAQmE,OAAOqO,QAAQ;YAC7BrO,OAAOqO,QAAQR;AACjB;AACD,MARD;AASD,EAhhBD","sourcesContent":[null]} \ No newline at end of file +{"version":3,"sources":["/Users/williamtroup/Documents/GitHub%20Repos/Peek.js/dist/peek.esm.js"],"names":["Is","Is2","defined","value","toString","definedObject","object","definedBoolean","definedString","definedFunction","definedNumber","definedArray","Array","definedDate","Date","invalidOptionArray","array","minimumLength","length","hexColor","valid","isNaN","substring","isRgbColor","startsWith","Constant","Constant2","PEEK_JS_IGNORE_STATE_ATTRIBUTE","DomElement","DomElement2","create","container","type","className","insertAtStart","nodeType","toLowerCase","isText","result","document","createTextNode","createElement","setAttribute","appendChild","insertBefore","children","createWithHTML","html","element","innerHTML","cancelBubble","e","preventDefault","stopPropagation","getScrollPosition","documentElement","left","scrollLeft","clientLeft","top","scrollTop","clientTop","showElementAtMousePosition","style","display","pageX","pageY","scrollPosition","offsetWidth","window","innerWidth","offsetHeight","innerHeight","getOffset","offsetLeft","offsetTop","offsetParent","Default","Default2","getAnyString","defaultValue","getString","getBoolean","getNumber","getArray","getObject","getStringOrArray","values","split","Config","Config2","Options","Options2","get","newConfiguration","configuration","dialogDisplayDelay","searchDelayDelay","getText","text","cssText","attributesText","sizeText","classesText","noAttributesAvailableText","closeText","copyText","copySymbolText","pasteText","pasteSymbolText","removeText","removeSymbolText","noClassesAvailableText","searchPropertiesPlaceHolderText","clearText","clearSymbolText","noPropertiesFoundForSearchText","dialogMovedSymbolText","propertyValuePlaceHolderText","modeNotSupportedText","unknownModeText","moveUpText","moveUpSymbolText","moveDownText","moveDownSymbolText","removeElementSymbolText","lockText","Start","Start2","newOptions","options","mode","titleText","showOnly","allowEditing","showIdOrNameInTitle","showNodeNameInTitle","ignoreValues","showLockButtonInTitle","_configuration","_dialog","_dialog_Title","_dialog_Title_Button_Lock","_dialog_Search","_dialog_Search_Input","_dialog_Search_Input_TimerId","_dialog_Contents","_dialog_Contents_NoSearchResultsText","_dialog_Buttons","_dialog_Buttons_Copy","_dialog_Buttons_Remove","_dialog_Buttons_MoveUp","_dialog_Buttons_MoveDown","_dialog_TimerId","_current_Process_Options","_current_Process_Elements","_current_Process_Properties","_current_Process_Element","_current_Process_Locked","_current_Process_NodeCount","_current_Process_Properties_Count","_element_Dialog_Move","_element_Dialog_Move_Original_X","_element_Dialog_Move_Original_Y","_element_Dialog_Move_IsMoving","_element_Dialog_Move_X","_element_Dialog_Move_Y","buildDialog","closeDialog","body","removeChild","onmousemove","onclick","onCopy","placeholder","onkeyup","onSearchProperties","onpaste","onfocus","select","removeButton","title","onSearchPropertiesClear","closeButton","onRemove","onMoveUp","onMoveDown","makeDialogMovable","setDialogTitle","nodeName","id","getAttribute","name","setDialogAsLocked","parentNode","lines","propertyName","hasOwnProperty","push","navigator","clipboard","writeText","join","clearTimeout","setTimeout","getElementsByClassName","propertyNames","slice","call","propertyNamesLength","searchValue","propertiesFound","propertyNameIndex","parent","trim","removeProperty","propertyNameText","innerText","indexOf","focus","previousElementSibling","nextElementSibling","buildDialogContent","buildCssProperties","buildAttributeProperties","buildSizeProperties","buildClassProperties","computedStyles","getComputedStyle","computedStylesLength","styleIndex","buildPropertyRow","getPropertyValue","hasAttributes","attribute","attributes","offset","classList","index","propertyValueText","isPropertyVisible","isPropertyValueVisible","property","propertyValue","propertyValueInput","add","borderLeftColor","copyButton","pasteButton","onPropertyPaste","onPropertyRemove","readOnly","onPropertyValueKeyUp","readText","then","data","updatePropertyValue","removeAttribute","remove","input","code","setProperty","replace","parseInt","buildNodeEvents","tagTypes","tagTypeIndex","domElements","getElementsByTagName","elements","elementsLength","elementIndex","buildNodeEvent","addEventListener","onWindowMove","attributeValue","onNodeMouseOver","removeNodeEvents","currentProcessElementsLength","removeEventListener","clearDialogShowTimer","titleBar","dialog","onmousedown","onMoveTitleBarMouseDown","onMoveDocumentMouseMove","onmouseup","onMoveTitleBarMouseUp","oncontextmenu","onMoveDocumentMouseLeave","_public","start","stop","close","setConfiguration","configurationHasChanged","newInternalConfiguration","getVersion","$peek"],"mappings":"AACA,IAAIA;;AACJ,CAAEC;IACA,SAASC,EAAQC;QACf,OAAOA,MAAU,QAAQA,WAAe,KAAKA,EAAMC,eAAe;AACpE;IACAH,EAAIC,UAAUA;IACd,SAASG,EAAcC;QACrB,OAAOJ,EAAQI,aAAkBA,MAAW;AAC9C;IACAL,EAAII,gBAAgBA;IACpB,SAASE,EAAeD;QACtB,OAAOJ,EAAQI,aAAkBA,MAAW;AAC9C;IACAL,EAAIM,iBAAiBA;IACrB,SAASC,EAAcF;QACrB,OAAOJ,EAAQI,aAAkBA,MAAW;AAC9C;IACAL,EAAIO,gBAAgBA;IACpB,SAASC,EAAgBH;QACvB,OAAOJ,EAAQI,aAAkBA,MAAW;AAC9C;IACAL,EAAIQ,kBAAkBA;IACtB,SAASC,EAAcJ;QACrB,OAAOJ,E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U;QAMdC,OAAO,SAASjK;YACd,KAAKlI,EAAGK,cAAcqJ,IAA2B;gBAC/CA,IAA2B3B,EAAMpC,QAAQE,IAAIqC;gBAC7C0D;gBACA4E;AACF;YACA,OAAO0B;AACT;QACAE,MAAM;YACJ,IAAIpS,EAAGK,cAAcqJ,IAA2B;gBAC9CA,IAA2B;gBAC3B8H;gBACAH;AACF;YACA,OAAOa;AACT;QACAG,OAAO;YACL7H;YACA,OAAO0H;AACT;QAMAI,kBAAkB,SAASxM;YACzB,IAAI9F,EAAGK,cAAcyF,IAAmB;gBACtC,IAAIyM,IAA0B;gBAC9B,MAAMC,IAA2B7J;gBACjC,KAAK,IAAIyD,KAAgBtG,GAAkB;oBACzC,IAAIA,EAAiBuG,eAAeD,MAAiBzD,EAAe0D,eAAeD,MAAiBoG,EAAyBpG,OAAkBtG,EAAiBsG,IAAe;wBAC7KoG,EAAyBpG,KAAgBtG,EAAiBsG;wBAC1DmG,IAA0B;AAC5B;AACF;gBACA,IAAIA,GAAyB;oBAC3B5J,IAAiBlD,EAAOE,QAAQE,IAAI2M;oBACpCjI;oBACA,IAAIvK,EAAGK,cAAcqJ,IAA2B;wBAC9CkC;AACF;AACF;AACF;YACA,OAAOsG;AACT;QAMAO,YAAY;YACV,OAAO;AACT;;IAEF;QACE9J,IAAiBlD,EAAOE,QAAQE;QAChCtD,SAAS0O,iBAAiB,qBAAoB;YAC5C1G;AAAa;QAEf,KAAKvK,EAAGE,QAAQmE,OAAOqO,QAAQ;YAC7BrO,OAAOqO,QAAQR;AACjB;AACD,MARD;AASD,EAhhBD","sourcesContent":[null]} \ No newline at end of file diff --git a/dist/peek.js b/dist/peek.js index 4d34e75..c726386 100644 --- a/dist/peek.js +++ b/dist/peek.js @@ -396,7 +396,7 @@ var i; } } function I() { - A.parentNode?.removeChild(A); + A.parentNode.removeChild(A); D(); } function j() { diff --git a/dist/peek.js.map b/dist/peek.js.map index d54e05c..6b6cefb 100644 --- a/dist/peek.js.map +++ b/dist/peek.js.map @@ -1 +1 @@ -{"version":3,"sources":["/Users/williamtroup/Documents/GitHub%20Repos/Peek.js/dist/peek.js"],"names":["Is","Is2","defined","value","toString","definedObject","object","definedBoolean","definedString","definedFunction","definedNumber","definedArray","Array","definedDate","Date","invalidOptionArray","array","minimumLength","length","hexColor","valid","isNaN","substring","isRgbColor","startsWith","Constant","Constant2","PEEK_JS_IGNORE_STATE_ATTRIBUTE","DomElement","DomElement2","create","container","type","className","insertAtStart","nodeType","toLowerCase","isText","result","document","createTextNode","createElement","setAttribute","appendChild","insertBefore","children","createWithHTML","html","element","innerHTML","cancelBubble","e","preventDefault","stopPropagation","getScrollPosition","documentElement","left","scrollLeft","clientLeft","top","scrollTop","clientTop","showElementAtMousePosition","style","display","pageX","pageY","scrollPosition","offsetWidth","window","innerWidth","offsetHeight","innerHeight","getOffset","offsetLeft","offsetTop","offsetParent","Default","Default2","getAnyString","defaultValue","getString","getBoolean","getNumber","getArray","getObject","getStringOrArray","values","split","Config","Config2","Options","Options2","get","newConfiguration","configuration","dialogDisplayDelay","searchDelayDelay","getText","text","cssText","attributesText","sizeText","classesText","noAttributesAvailableText","closeText","copyText","copySymbolText","pasteText","pasteSymbolText","removeText","removeSymbolText","noClassesAvailableText","searchPropertiesPlaceHolderText","clearText","clearSymbolText","noPropertiesFoundForSearchText","dialogMovedSymbolText","propertyValuePlaceHolderText","modeNotSupportedText","unknownModeText","moveUpText","moveUpSymbolText","moveDownText","moveDownSymbolText","removeElementSymbolText","lockText","Start","Start2","newOptions","options","mode","titleText","showOnly","allowEditing","showIdOrNameInTitle","showNodeNameInTitle","ignoreValues","showLockButtonInTitle","_configuration","_dialog","_dialog_Title","_dialog_Title_Button_Lock","_dialog_Search","_dialog_Search_Input","_dialog_Search_Input_TimerId","_dialog_Contents","_dialog_Contents_NoSearchResultsText","_dialog_Buttons","_dialog_Buttons_Copy","_dialog_Buttons_Remove","_dialog_Buttons_MoveUp","_dialog_Buttons_MoveDown","_dialog_TimerId","_current_Process_Options","_current_Process_Elements","_current_Process_Properties","_current_Process_Element","_current_Process_Locked","_current_Process_NodeCount","_current_Process_Properties_Count","_element_Dialog_Move","_element_Dialog_Move_Original_X","_element_Dialog_Move_Original_Y","_element_Dialog_Move_IsMoving","_element_Dialog_Move_X","_element_Dialog_Move_Y","buildDialog","closeDialog","body","removeChild","onmousemove","onclick","onCopy","placeholder","onkeyup","onSearchProperties","onpaste","onfocus","select","removeButton","title","onSearchPropertiesClear","closeButton","onRemove","onMoveUp","onMoveDown","makeDialogMovable","setDialogTitle","nodeName","id","getAttribute","name","setDialogAsLocked","parentNode","lines","propertyName","hasOwnProperty","push","navigator","clipboard","writeText","join","clearTimeout","setTimeout","getElementsByClassName","propertyNames","slice","call","propertyNamesLength","searchValue","propertiesFound","propertyNameIndex","parent","trim","removeProperty","propertyNameText","innerText","indexOf","focus","previousElementSibling","nextElementSibling","buildDialogContent","buildCssProperties","buildAttributeProperties","buildSizeProperties","buildClassProperties","computedStyles","getComputedStyle","computedStylesLength","styleIndex","buildPropertyRow","getPropertyValue","hasAttributes","attribute","attributes","offset","classList","index","propertyValueText","isPropertyVisible","isPropertyValueVisible","property","propertyValue","propertyValueInput","add","borderLeftColor","copyButton","pasteButton","onPropertyPaste","onPropertyRemove","readOnly","onPropertyValueKeyUp","readText","then","data","updatePropertyValue","removeAttribute","remove","input","code","setProperty","replace","parseInt","buildNodeEvents","tagTypes","tagTypeIndex","domElements","getElementsByTagName","elements","elementsLength","elementIndex","buildNodeEvent","addEventListener","onWindowMove","attributeValue","onNodeMouseOver","removeNodeEvents","currentProcessElementsLength","removeEventListener","clearDialogShowTimer","titleBar","dialog","onmousedown","onMoveTitleBarMouseDown","onMoveDocumentMouseMove","onmouseup","onMoveTitleBarMouseUp","oncontextmenu","onMoveDocumentMouseLeave","_public","start","stop","close","setConfiguration","configurationHasChanged","newInternalConfiguration","getVersion","$peek"],"mappings":"AAAA;;AAGA,IAAIA;;AACJ,CAAEC;IACA,SAASC,EAAQC;QACf,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OAAO;AACT;;IAEF;QACE9J,IAAiBlD,EAAOE,QAAQE;QAChCtD,SAAS0O,iBAAiB,qBAAoB;YAC5C1G;AAAa;QAEf,KAAKvK,EAAGE,QAAQmE,OAAOqO,QAAQ;YAC7BrO,OAAOqO,QAAQR;AACjB;AACD,MARD;AASD,EAhhBD","sourcesContent":[null]} \ No newline at end of file +{"version":3,"sources":["/Users/williamtroup/Documents/GitHub%20Repos/Peek.js/dist/peek.js"],"names":["Is","Is2","defined","value","toString","definedObject","object","definedBoolean","definedString","definedFunction","definedNumber","definedArray","Array","definedDate","Date","invalidOptionArray","array","minimumLength","length","hexColor","valid","isNaN","substring","isRgbColor","startsWith","Constant","Constant2","PEEK_JS_IGNORE_STATE_ATTRIBUTE","DomElement","DomElement2","create","container","type","className","insertAtStart","nodeType","toLowerCase","isText","result","document","createTextNode","createElement","setAttribute","appendChild","insertBefore","children","createWithHTML","html","element","innerHTML","cancelBubble","e","preventDefault","stopPropagation","getScrollPosition","documentElement","left","scrollLeft","clientLeft","top","scrollTop","clientTop","showElementAtMousePosition","style","display","pageX","pageY","scrollPosition","offsetWidth","window","innerWidth","offsetHeight","innerHeight","getOffset","offsetLeft","offsetTop","offsetParent","Default","Default2","getAnyString","defaultValue","getString","getBoolean","getNumber","getArray","getObject","getStringOrArray","values","split","Config","Config2","Options","Options2","get","newConfiguration","configuration","dialogDisplayDelay","searchDelayDelay","getText","text","cssText","attributesText","sizeText","classesText","noAttributesAvailableText","closeText","copyText","copySymbolText","pasteText","pasteSymbolText","removeText","removeSymbolText","noClassesAvailableText","searchPropertiesPlaceHolderText","clearText","clearSymbolText","noPropertiesFoundForSearchText","dialogMovedSymbolText","propertyValuePlaceHolderText","modeNotSupportedText","unknownModeText","moveUpText","moveUpSymbolText","moveDownText","moveDownSymbolText","removeElementSymbolText","lockText","Start","Start2","newOptions","options","mode","titleText","showOnly","allowEditing","showIdOrNameInTitle","showNodeNameInTitle","ignoreValues","showLockButtonInTitle","_configuration","_dialog","_dialog_Title","_dialog_Title_Button_Lock","_dialog_Search","_dialog_Search_Input","_dialog_Search_Input_TimerId","_dialog_Contents","_dialog_Contents_NoSearchResultsText","_dialog_Buttons","_dialog_Buttons_Copy","_dialog_Buttons_Remove","_dialog_Buttons_MoveUp","_dialog_Buttons_MoveDown","_dialog_TimerId","_current_Process_Options","_current_Process_Elements","_current_Process_Properties","_current_Process_Element","_current_Process_Locked","_current_Process_NodeCount","_current_Process_Properties_Count","_element_Dialog_Move","_element_Dialog_Move_Original_X","_element_Dialog_Move_Original_Y","_element_Dialog_Move_IsMoving","_element_Dialog_Move_X","_element_Dialog_Move_Y","buildDialog","closeDialog","body","removeChild","onmousemove","onclick","onCopy","placeholder","onkeyup","onSearchProperties","onpaste","onfocus","select","removeButton","title","onSearchPropertiesClear","closeButton","onRemove","onMoveUp","onMoveDown","makeDialogMovable","setDialogTitle","nodeName","id","getAttribute","name","setDialogAsLocked","parentNode","lines","propertyName","hasOwnProperty","push","navigator","clipboard","writeText","join","clearTimeout","setTimeout","getElementsByClassName","propertyNames","slice","call","propertyNamesLength","searchValue","propertiesFound","propertyNameIndex","parent","trim","removeProperty","propertyNameText","innerText","indexOf","focus","previousElementSibling","nextElementSibling","buildDialogContent","buildCssProperties","buildAttributeProperties","buildSizeProperties","buildClassProperties","computedStyles","getComputedStyle","computedStylesLength","styleIndex","buildPropertyRow","getPropertyValue","hasAttributes","attribute","attributes","offset","classList","index","propertyValueText","isPropertyVisible","isPropertyValueVisible","property","propertyValue","propertyValueInput","add","borderLeftColor","copyButton","pasteButton","onPropertyPaste","onPropertyRemove","readOnly","onPropertyValueKeyUp","readText","then","data","updatePropertyValue","removeAttribute","remove","input","code","setProperty","replace","parseInt","buildNodeEvents","tagTypes","tagTypeIndex","domElements","getElementsByTagName","elements","elementsLength","elementIndex","buildNodeEvent","addEventListener","onWindowMove","attributeValue","onNodeMouseOver","removeNodeEvents","currentProcessElementsLength","removeEventListener","clearDialogShowTimer","titleBar","dialog","onmousedown","onMoveTitleBarMouseDown","onMoveDocumentMouseMove","onmouseup","onMoveTitleBarMouseUp","oncontextmenu","onMoveDocumentMouseLeave","_public","start","stop","close","setConfiguration","configurationHasChanged","newInternalConfiguration","getVersion","$peek"],"mappings":"AAAA;;AAGA,IAAIA;;AACJ,CAAEC;IACA,SAASC,EAAQC;QACf,OAAOA,MAAU,QAAQA,WAAe,KAAKA,EAAMC,eAAe;AACpE;IACAH,EAAIC,UAAUA;IACd,SAASG,EAAcC;QACrB,OAAOJ,EAAQI,aAAkBA,MAAW;AAC9C;IACAL,EAAII,gBAAgBA;IACpB,SAASE,EAAeD;QACtB,OAAOJ,EAAQI,aAAkBA,MAAW;AAC9C;IACAL,EAAIM,iBAAiBA;IACrB,SAASC,EAAcF;QACrB,OAAOJ,EAAQI,aAAkBA,MAAW;AAC9C;IACAL,EAAIO,gBAAgBA;IACpB,SAASC,EAAgBH;QACvB,OAAOJ,EAAQI,aAAkBA,MAAW;AAC9C;IACAL,EAAIQ,kBAAkBA;IACtB,SAASC,EAAcJ;QACrB,OAAOJ,EAAQI,aAAkBA,MAAW;AAC9C;IACAL,EAAIS,gBAAgBA;IACpB,SAASC,EAAaL;QACpB,OAAOD,EAAcC,MAAWA,aAAkBM;AACpD;IACAX,EAAIU,eAAeA;IACnB,SAASE,EAAYP;QACnB,OAAOD,EAAcC,MAAWA,aAAkBQ;AACpD;IACAb,EAAIY,cAAcA;IAClB,SAASE,EAAmBC,GAAOC,IAAgB;QACjD,QAAQN,EAAaK,MAAUA,EAAME,SAASD;AAChD;IACAhB,EAAIc,qBAAqBA;IACzB,SAASI,EAAShB;QAChB,IAAIiB,IAAQjB,EAAMe,UAAU,KAAKf,EAAMe,UAAU;QACjD,IAAIE,KAASjB,EAAM,OAAO,KAAgB;YACxCiB,IAAQC,OAAOlB,EAAMmB,UAAU,GAAGnB,EAAMe,SAAS;AACnD,eAAO;YACLE,IAAQ;AACV;QACA,OAAOA;AACT;IACAnB,EAAIkB,WAAWA;IACf,SAASI,E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wBAC1DmG,IAA0B;AAC5B;AACF;gBACA,IAAIA,GAAyB;oBAC3B5J,IAAiBlD,EAAOE,QAAQE,IAAI2M;oBACpCjI;oBACA,IAAIvK,EAAGK,cAAcqJ,IAA2B;wBAC9CkC;AACF;AACF;AACF;YACA,OAAOsG;AACT;QAMAO,YAAY;YACV,OAAO;AACT;;IAEF;QACE9J,IAAiBlD,EAAOE,QAAQE;QAChCtD,SAAS0O,iBAAiB,qBAAoB;YAC5C1G;AAAa;QAEf,KAAKvK,EAAGE,QAAQmE,OAAOqO,QAAQ;YAC7BrO,OAAOqO,QAAQR;AACjB;AACD,MARD;AASD,EAhhBD","sourcesContent":[null]} \ No newline at end of file diff --git a/dist/peek.min.js b/dist/peek.min.js index 55f8344..41ef921 100644 --- a/dist/peek.min.js +++ b/dist/peek.min.js @@ -1 +1 @@ -"use strict";var e,t,n,o,r,i;(e=>{function t(e){return null!=e&&""!==e.toString()}function n(e){return t(e)&&"object"==typeof e}function o(e){return n(e)&&e instanceof Array}e.defined=t,e.definedObject=n,e.definedBoolean=function(e){return t(e)&&"boolean"==typeof e},e.definedString=function(e){return t(e)&&"string"==typeof e},e.definedFunction=function(e){return t(e)&&"function"==typeof e},e.definedNumber=function(e){return t(e)&&"number"==typeof e},e.definedArray=o,e.definedDate=function(e){return n(e)&&e instanceof Date},e.invalidOptionArray=function(e,t=1){return!o(e)||e.length=2&&e.length<=7;return t=!(!t||"#"!==e[0])&&isNaN(+e.substring(1,e.length-1)),t},e.isRgbColor=function(e){return e.startsWith("rgb")||e.startsWith("rgba")}})(e||(e={})),(t||(t={})).PEEK_JS_IGNORE_STATE_ATTRIBUTE="data-peek-js-ignore-state",(n=>{function o(n,o,r="",i=!1){const l=o.toLowerCase();let s="text"===l?document.createTextNode(""):document.createElement(l);return s.setAttribute(t.PEEK_JS_IGNORE_STATE_ATTRIBUTE,"ignore"),e.definedString(r)&&(s.className=r),i?n.insertBefore(s,n.children[0]):n.appendChild(s),s}function r(){const e=document.documentElement;return{left:e.scrollLeft-(e.clientLeft||0),top:e.scrollTop-(e.clientTop||0)}}n.create=o,n.createWithHTML=function(e,n,r,i,l=!1){const s=o(e,n,r,l);return s.innerHTML=i,s.setAttribute(t.PEEK_JS_IGNORE_STATE_ATTRIBUTE,"ignore"),s},n.cancelBubble=function(e){e.preventDefault(),e.stopPropagation()},n.getScrollPosition=r,n.showElementAtMousePosition=function(e,t){if("block"!==t.style.display){let n=e.pageX,o=e.pageY;const i=r();t.style.display="block",n+t.offsetWidth>window.innerWidth?n-=t.offsetWidth:n++,o+t.offsetHeight>window.innerHeight?o-=t.offsetHeight:o++,n{function n(t,n){return e.definedArray(t)?t:n}t.getAnyString=function(e,t){return"string"==typeof e?e:t},t.getString=function(t,n){return e.definedString(t)?t:n},t.getBoolean=function(t,n){return e.definedBoolean(t)?t:n},t.getNumber=function(t,n){return e.definedNumber(t)?t:n},t.getArray=n,t.getObject=function(t,n){return e.definedObject(t)?t:n},t.getStringOrArray=function(t,o){let r=o;if(e.definedString(t)){const e=t.toString().split(" ");0===e.length?t=o:r=e}else r=n(t,o);return r}})(o||(o={})),(e=>{let t;(t=e.Options||(e.Options={})).get=function(e=null){let t=o.getObject(e,{});return t.dialogDisplayDelay=o.getNumber(t.dialogDisplayDelay,1e3),t.searchDelayDelay=o.getNumber(t.searchDelayDelay,500),t=function(e){return e.text=o.getObject(e.text,{}),e.text.cssText=o.getAnyString(e.text.cssText,"CSS"),e.text.attributesText=o.getAnyString(e.text.attributesText,"Attributes"),e.text.sizeText=o.getAnyString(e.text.sizeText,"Size"),e.text.classesText=o.getAnyString(e.text.classesText,"Classes"),e.text.noAttributesAvailableText=o.getAnyString(e.text.noAttributesAvailableText,"No attributes are available."),e.text.closeText=o.getAnyString(e.text.closeText,"Close"),e.text.copyText=o.getAnyString(e.text.copyText,"Copy"),e.text.copySymbolText=o.getAnyString(e.text.copySymbolText,"❐"),e.text.pasteText=o.getAnyString(e.text.pasteText,"Paste"),e.text.pasteSymbolText=o.getAnyString(e.text.pasteSymbolText,"☐"),e.text.removeText=o.getAnyString(e.text.removeText,"Remove"),e.text.removeSymbolText=o.getAnyString(e.text.removeSymbolText,"✕"),e.text.noClassesAvailableText=o.getAnyString(e.text.noClassesAvailableText,"No classes are available."),e.text.searchPropertiesPlaceHolderText=o.getAnyString(e.text.searchPropertiesPlaceHolderText,"Search properties..."),e.text.clearText=o.getAnyString(e.text.clearText,"Clear"),e.text.clearSymbolText=o.getAnyString(e.text.clearSymbolText,"✕"),e.text.noPropertiesFoundForSearchText=o.getAnyString(e.text.noPropertiesFoundForSearchText,"No properties were found for your search."),e.text.dialogMovedSymbolText=o.getAnyString(e.text.dialogMovedSymbolText,"✸"),e.text.propertyValuePlaceHolderText=o.getAnyString(e.text.propertyValuePlaceHolderText,"Enter value..."),e.text.modeNotSupportedText=o.getAnyString(e.text.modeNotSupportedText,"The mode you have specified is not supported."),e.text.unknownModeText=o.getAnyString(e.text.unknownModeText,"Unknown Mode"),e.text.moveUpText=o.getAnyString(e.text.moveUpText,"Move Up"),e.text.moveUpSymbolText=o.getAnyString(e.text.moveUpSymbolText,"↑"),e.text.moveDownText=o.getAnyString(e.text.moveDownText,"Move Down"),e.text.moveDownSymbolText=o.getAnyString(e.text.moveDownSymbolText,"↓"),e.text.removeElementSymbolText=o.getAnyString(e.text.removeElementSymbolText,"⌫"),e.text.lockText=o.getAnyString(e.text.lockText,"Lock"),e}(t),t}})(r||(r={})),(e=>{let t;(t=e.Options||(e.Options={})).get=function(e){let t=o.getObject(e,{});return t.nodeType=o.getStringOrArray(t.nodeType,[]),t.mode=o.getNumber(t.mode,1),t.titleText=o.getString(t.titleText,""),t.showOnly=o.getStringOrArray(t.showOnly,[]),t.allowEditing=o.getBoolean(t.allowEditing,!1),t.showIdOrNameInTitle=o.getBoolean(t.showIdOrNameInTitle,!0),t.showNodeNameInTitle=o.getBoolean(t.showNodeNameInTitle,!1),t.ignoreValues=o.getStringOrArray(t.ignoreValues,[]),t.showLockButtonInTitle=o.getBoolean(t.showLockButtonInTitle,!0),t}})(i||(i={})),(()=>{let o={},l=null,s=null,a=null,c=null,u=null,d=0,p=null,x=null,f=null,g=null,y=null,m=null,T=null,v=0,b=null,h=[],S={},A=null,L=!1,w=0,E=0,N=null,O=0,M=0,H=!1,P=0,k=0;function C(){e.definedObject(l)&&(D(),document.body.removeChild(l),l=null),l=n.create(document.body,"div","peek-js"),l.onmousemove=n.cancelBubble,s=n.create(l,"div","dialog-title-bar"),c=n.create(l,"div","dialog-search"),p=n.create(l,"div","dialog-contents"),f=n.create(l,"div","dialog-buttons"),g=n.createWithHTML(f,"button","copy",o.text.copyText),g.onclick=I,u=n.create(c,"input"),u.placeholder=o.text.searchPropertiesPlaceHolderText,u.type="text",u.onkeyup=j,u.onpaste=j,u.onfocus=()=>u.select();const t=n.createWithHTML(c,"button","clear-small",o.text.clearSymbolText);t.title=o.text.clearText,t.onclick=_;var r,i;n.createWithHTML(f,"button","close",o.text.closeText).onclick=D,y=n.createWithHTML(f,"button","remove",o.text.removeElementSymbolText),y.onclick=$,y.title=o.text.removeText,m=n.createWithHTML(f,"button","move-up",o.text.moveUpSymbolText),m.onclick=R,m.title=o.text.moveUpText,T=n.createWithHTML(f,"button","move-down",o.text.moveDownSymbolText),T.onclick=U,T.title=o.text.moveDownText,i=l,(r=s).onmousedown=e=>{!function(e,t){H||(N=t,H=!0,P=e.pageX-N.offsetLeft,k=e.pageY-N.offsetTop,O=N.offsetLeft,M=N.offsetTop)}(e,i)},i.onmousemove=e=>{q(e,!0)},r.onmouseup=()=>{Y()},r.oncontextmenu=()=>{Y()},document.addEventListener("mousemove",q),document.addEventListener("mouseleave",Q)}function W(t=null){if(!L&&e.defined(b)){let r=b.titleText;if(s.innerHTML="",e.definedString(r)||(r=1===b.mode?o.text.cssText:2===b.mode?o.text.attributesText:3===b.mode?o.text.sizeText:4===b.mode?o.text.classesText:o.text.unknownModeText),n.createWithHTML(s,"span","title",r),w>1&&b.showNodeNameInTitle&&(n.createWithHTML(s,"span","dash"," - "),n.createWithHTML(s,"span","node-name",`[${t.nodeName.toLowerCase()}]`)),b.showIdOrNameInTitle&&e.defined(t)){const o=t.getAttribute("id"),r=t.getAttribute("name");e.definedString(o)?(n.createWithHTML(s,"span","dash"," - "),n.createWithHTML(s,"span","id-or-name",o)):e.definedString(r)&&(n.createWithHTML(s,"span","dash"," - "),n.createWithHTML(s,"span","id-or-name",r))}b.showLockButtonInTitle&&(a=n.createWithHTML(s,"button","lock",o.text.dialogMovedSymbolText),a.title=o.text.lockText,a.onclick=()=>B())}}function B(){L||(n.createWithHTML(s,"span","locked",`${o.text.dialogMovedSymbolText} `,!0),e.defined(a)&&(a.parentNode.removeChild(a),a=null),L=!0)}function D(){l.style.display="none",L=!1,u.value=""}function I(){const e=[];for(let t in S)S.hasOwnProperty(t)&&(1===b.mode?e.push(`${t}: ${S[t]};`):2===b.mode?e.push(`${t}="${S[t]}"`):4===b.mode&&e.push(S[t]));1===b.mode?navigator.clipboard.writeText(`${A.nodeName.toLowerCase()} { \n ${e.join("\n")} \n }`):2!==b.mode&&4!==b.mode||navigator.clipboard.writeText(e.join(" "))}function $(){A.parentNode?.removeChild(A),D()}function j(){0!==d&&(clearTimeout(d),d=0),d=setTimeout((()=>{const t=p.getElementsByClassName("property-name"),n=[].slice.call(t),o=n.length,r=u.value.toLowerCase();let i=0;for(let t=0;t-1?(o.style.removeProperty("display"),i++):o.style.display="none"}}0===i?x.style.display="block":x.style.removeProperty("display")}),o.searchDelayDelay)}function _(){u.value="",u.focus(),j()}function R(){null!==A.parentNode&&null!==A.previousElementSibling&&A.parentNode.insertBefore(A,A.previousElementSibling)}function U(){null!==A.parentNode&&null!==A.nextElementSibling&&A.parentNode.insertBefore(A.nextElementSibling,A)}function V(t){e.defined(b)&&(p.innerHTML="",p.scrollTop=0,S={},E=0,A=t,W(t),1===b.mode||4===b.mode||2===b.mode?g.style.removeProperty("display"):g.style.display="none",b.allowEditing?(y.style.removeProperty("display"),m.style.removeProperty("display"),T.style.removeProperty("display")):(y.style.display="none",m.style.display="none",T.style.display="none"),x=n.createWithHTML(p,"span","no-search-results",o.text.noPropertiesFoundForSearchText),1===b.mode?function(e){const t=getComputedStyle(e),n=t.length;for(let o=0;o0){let t=1;for(let n of e.classList)F(e,t.toString(),n),t++}else p.innerHTML="",n.createWithHTML(p,"span","warning",o.text.noClassesAvailableText)}(t):n.createWithHTML(p,"span","warning",o.text.modeNotSupportedText),E<=15?c.style.display="none":c.style.removeProperty("display"))}function F(t,r,i,l=!0){if(function(e){return 0===b.showOnly.length||b.showOnly.indexOf(e)>-1}(r)&&function(e){return 0===b.ignoreValues.length||b.ignoreValues.indexOf(e)<=-1}(i)){const s=n.create(p,"div","property-row");n.createWithHTML(s,"div","property-name",r);const a=n.create(s,"div","property-value"),c=n.create(a,"input");(e.hexColor(i)||e.isRgbColor(i))&&(c.classList.add("property-value-color"),c.style.borderLeftColor=i),c.placeholder=o.text.propertyValuePlaceHolderText,c.onfocus=()=>c.select();const u=n.createWithHTML(s,"button","copy-small",o.text.copySymbolText);if(u.title=o.text.copyText,u.onclick=()=>navigator.clipboard.writeText(i),b.allowEditing&&l){const e=n.createWithHTML(s,"button","paste-small",o.text.pasteSymbolText),l=n.createWithHTML(s,"button","remove-small",o.text.removeSymbolText);e.title=o.text.pasteText,l.title=o.text.removeText,e.onclick=()=>function(e,t,n){navigator.clipboard.readText().then((o=>{t.value=o,z(e,n,t)}))}(t,c,r),l.onclick=()=>function(e,t,n,o){1===b.mode?(t.style.removeProperty(n),e.parentNode.removeChild(e)):2===b.mode?(t.removeAttribute(n),e.parentNode.removeChild(e)):4===b.mode&&(t.classList.remove(o),e.parentNode.removeChild(e))}(s,t,r,i)}c.type="text",c.value=i,S[r]=i,E++,b.allowEditing&&l?c.onkeyup=e=>function(e,t,n,o){"Enter"===e.code&&z(o,t,n)}(e,r,c,t):c.readOnly=!0}}function z(t,n,o){1===b.mode?t.style.setProperty(n,o.value):2===b.mode?t.setAttribute(n,o.value):4===b.mode&&t.classList.replace(t.classList[parseInt(n)-1],o.value),S[n]=o.value,e.hexColor(o.value)||e.isRgbColor(o.value)?(o.classList.add("property-value-color"),o.style.borderLeftColor=o.value):o.classList.remove("property-value-color")}function G(n){const o=n.getAttribute(t.PEEK_JS_IGNORE_STATE_ATTRIBUTE);e.definedString(o)||"ignore"===o||(n.addEventListener("mousemove",(e=>{J(e,n)})),h.push(n))}function J(t,r){!L&&e.defined(b)&&(n.cancelBubble(t),X(),v=setTimeout((()=>{V(r),n.showElementAtMousePosition(t,l)}),o.dialogDisplayDelay))}function K(){L||(X(),D())}function X(){0!==v&&(clearTimeout(v),v=0)}function Y(){H&&(H=!1,N=null,O=0,M=0)}function q(e,t=!1){t&&n.cancelBubble(e),H&&(B(),N.style.left=e.pageX-P+"px",N.style.top=e.pageY-k+"px")}function Q(){H&&(N.style.left=`${O}px`,N.style.top=`${M}px`,H=!1,N=null,O=0,M=0)}const Z={start:function(t){return e.definedObject(b)||(b=i.Options.get(t),W(),function(){const e=b.nodeType;w=e.length;for(let t=0;t{J(t,e)}))}h=[],window.removeEventListener("mousemove",K),D()}()),Z},close:function(){return D(),Z},setConfiguration:function(t){if(e.definedObject(t)){let n=!1;const i=o;for(let e in t)t.hasOwnProperty(e)&&o.hasOwnProperty(e)&&i[e]!==t[e]&&(i[e]=t[e],n=!0);n&&(o=r.Options.get(i),C(),e.definedObject(b)&&W())}return Z},getVersion:function(){return"1.8.0"}};o=r.Options.get(),document.addEventListener("DOMContentLoaded",(()=>{C()})),e.defined(window.$peek)||(window.$peek=Z)})(); \ No newline at end of file +"use strict";var e,t,n,o,r,i;(e=>{function t(e){return null!=e&&""!==e.toString()}function n(e){return t(e)&&"object"==typeof e}function o(e){return n(e)&&e instanceof Array}e.defined=t,e.definedObject=n,e.definedBoolean=function(e){return t(e)&&"boolean"==typeof e},e.definedString=function(e){return t(e)&&"string"==typeof e},e.definedFunction=function(e){return t(e)&&"function"==typeof e},e.definedNumber=function(e){return t(e)&&"number"==typeof e},e.definedArray=o,e.definedDate=function(e){return n(e)&&e instanceof Date},e.invalidOptionArray=function(e,t=1){return!o(e)||e.length=2&&e.length<=7;return t=!(!t||"#"!==e[0])&&isNaN(+e.substring(1,e.length-1)),t},e.isRgbColor=function(e){return e.startsWith("rgb")||e.startsWith("rgba")}})(e||(e={})),(t||(t={})).PEEK_JS_IGNORE_STATE_ATTRIBUTE="data-peek-js-ignore-state",(n=>{function o(n,o,r="",i=!1){const l=o.toLowerCase();let s="text"===l?document.createTextNode(""):document.createElement(l);return s.setAttribute(t.PEEK_JS_IGNORE_STATE_ATTRIBUTE,"ignore"),e.definedString(r)&&(s.className=r),i?n.insertBefore(s,n.children[0]):n.appendChild(s),s}function r(){const e=document.documentElement;return{left:e.scrollLeft-(e.clientLeft||0),top:e.scrollTop-(e.clientTop||0)}}n.create=o,n.createWithHTML=function(e,n,r,i,l=!1){const s=o(e,n,r,l);return s.innerHTML=i,s.setAttribute(t.PEEK_JS_IGNORE_STATE_ATTRIBUTE,"ignore"),s},n.cancelBubble=function(e){e.preventDefault(),e.stopPropagation()},n.getScrollPosition=r,n.showElementAtMousePosition=function(e,t){if("block"!==t.style.display){let n=e.pageX,o=e.pageY;const i=r();t.style.display="block",n+t.offsetWidth>window.innerWidth?n-=t.offsetWidth:n++,o+t.offsetHeight>window.innerHeight?o-=t.offsetHeight:o++,n{function n(t,n){return e.definedArray(t)?t:n}t.getAnyString=function(e,t){return"string"==typeof e?e:t},t.getString=function(t,n){return e.definedString(t)?t:n},t.getBoolean=function(t,n){return e.definedBoolean(t)?t:n},t.getNumber=function(t,n){return e.definedNumber(t)?t:n},t.getArray=n,t.getObject=function(t,n){return e.definedObject(t)?t:n},t.getStringOrArray=function(t,o){let r=o;if(e.definedString(t)){const e=t.toString().split(" ");0===e.length?t=o:r=e}else r=n(t,o);return r}})(o||(o={})),(e=>{let t;(t=e.Options||(e.Options={})).get=function(e=null){let t=o.getObject(e,{});return t.dialogDisplayDelay=o.getNumber(t.dialogDisplayDelay,1e3),t.searchDelayDelay=o.getNumber(t.searchDelayDelay,500),t=function(e){return e.text=o.getObject(e.text,{}),e.text.cssText=o.getAnyString(e.text.cssText,"CSS"),e.text.attributesText=o.getAnyString(e.text.attributesText,"Attributes"),e.text.sizeText=o.getAnyString(e.text.sizeText,"Size"),e.text.classesText=o.getAnyString(e.text.classesText,"Classes"),e.text.noAttributesAvailableText=o.getAnyString(e.text.noAttributesAvailableText,"No attributes are available."),e.text.closeText=o.getAnyString(e.text.closeText,"Close"),e.text.copyText=o.getAnyString(e.text.copyText,"Copy"),e.text.copySymbolText=o.getAnyString(e.text.copySymbolText,"❐"),e.text.pasteText=o.getAnyString(e.text.pasteText,"Paste"),e.text.pasteSymbolText=o.getAnyString(e.text.pasteSymbolText,"☐"),e.text.removeText=o.getAnyString(e.text.removeText,"Remove"),e.text.removeSymbolText=o.getAnyString(e.text.removeSymbolText,"✕"),e.text.noClassesAvailableText=o.getAnyString(e.text.noClassesAvailableText,"No classes are available."),e.text.searchPropertiesPlaceHolderText=o.getAnyString(e.text.searchPropertiesPlaceHolderText,"Search properties..."),e.text.clearText=o.getAnyString(e.text.clearText,"Clear"),e.text.clearSymbolText=o.getAnyString(e.text.clearSymbolText,"✕"),e.text.noPropertiesFoundForSearchText=o.getAnyString(e.text.noPropertiesFoundForSearchText,"No properties were found for your search."),e.text.dialogMovedSymbolText=o.getAnyString(e.text.dialogMovedSymbolText,"✸"),e.text.propertyValuePlaceHolderText=o.getAnyString(e.text.propertyValuePlaceHolderText,"Enter value..."),e.text.modeNotSupportedText=o.getAnyString(e.text.modeNotSupportedText,"The mode you have specified is not supported."),e.text.unknownModeText=o.getAnyString(e.text.unknownModeText,"Unknown Mode"),e.text.moveUpText=o.getAnyString(e.text.moveUpText,"Move Up"),e.text.moveUpSymbolText=o.getAnyString(e.text.moveUpSymbolText,"↑"),e.text.moveDownText=o.getAnyString(e.text.moveDownText,"Move Down"),e.text.moveDownSymbolText=o.getAnyString(e.text.moveDownSymbolText,"↓"),e.text.removeElementSymbolText=o.getAnyString(e.text.removeElementSymbolText,"⌫"),e.text.lockText=o.getAnyString(e.text.lockText,"Lock"),e}(t),t}})(r||(r={})),(e=>{let t;(t=e.Options||(e.Options={})).get=function(e){let t=o.getObject(e,{});return t.nodeType=o.getStringOrArray(t.nodeType,[]),t.mode=o.getNumber(t.mode,1),t.titleText=o.getString(t.titleText,""),t.showOnly=o.getStringOrArray(t.showOnly,[]),t.allowEditing=o.getBoolean(t.allowEditing,!1),t.showIdOrNameInTitle=o.getBoolean(t.showIdOrNameInTitle,!0),t.showNodeNameInTitle=o.getBoolean(t.showNodeNameInTitle,!1),t.ignoreValues=o.getStringOrArray(t.ignoreValues,[]),t.showLockButtonInTitle=o.getBoolean(t.showLockButtonInTitle,!0),t}})(i||(i={})),(()=>{let o={},l=null,s=null,a=null,c=null,u=null,d=0,p=null,x=null,f=null,g=null,y=null,m=null,T=null,v=0,b=null,h=[],S={},A=null,L=!1,w=0,E=0,N=null,O=0,M=0,H=!1,P=0,k=0;function C(){e.definedObject(l)&&(D(),document.body.removeChild(l),l=null),l=n.create(document.body,"div","peek-js"),l.onmousemove=n.cancelBubble,s=n.create(l,"div","dialog-title-bar"),c=n.create(l,"div","dialog-search"),p=n.create(l,"div","dialog-contents"),f=n.create(l,"div","dialog-buttons"),g=n.createWithHTML(f,"button","copy",o.text.copyText),g.onclick=I,u=n.create(c,"input"),u.placeholder=o.text.searchPropertiesPlaceHolderText,u.type="text",u.onkeyup=j,u.onpaste=j,u.onfocus=()=>u.select();const t=n.createWithHTML(c,"button","clear-small",o.text.clearSymbolText);t.title=o.text.clearText,t.onclick=_;var r,i;n.createWithHTML(f,"button","close",o.text.closeText).onclick=D,y=n.createWithHTML(f,"button","remove",o.text.removeElementSymbolText),y.onclick=$,y.title=o.text.removeText,m=n.createWithHTML(f,"button","move-up",o.text.moveUpSymbolText),m.onclick=R,m.title=o.text.moveUpText,T=n.createWithHTML(f,"button","move-down",o.text.moveDownSymbolText),T.onclick=U,T.title=o.text.moveDownText,i=l,(r=s).onmousedown=e=>{!function(e,t){H||(N=t,H=!0,P=e.pageX-N.offsetLeft,k=e.pageY-N.offsetTop,O=N.offsetLeft,M=N.offsetTop)}(e,i)},i.onmousemove=e=>{q(e,!0)},r.onmouseup=()=>{Y()},r.oncontextmenu=()=>{Y()},document.addEventListener("mousemove",q),document.addEventListener("mouseleave",Q)}function W(t=null){if(!L&&e.defined(b)){let r=b.titleText;if(s.innerHTML="",e.definedString(r)||(r=1===b.mode?o.text.cssText:2===b.mode?o.text.attributesText:3===b.mode?o.text.sizeText:4===b.mode?o.text.classesText:o.text.unknownModeText),n.createWithHTML(s,"span","title",r),w>1&&b.showNodeNameInTitle&&(n.createWithHTML(s,"span","dash"," - "),n.createWithHTML(s,"span","node-name",`[${t.nodeName.toLowerCase()}]`)),b.showIdOrNameInTitle&&e.defined(t)){const o=t.getAttribute("id"),r=t.getAttribute("name");e.definedString(o)?(n.createWithHTML(s,"span","dash"," - "),n.createWithHTML(s,"span","id-or-name",o)):e.definedString(r)&&(n.createWithHTML(s,"span","dash"," - "),n.createWithHTML(s,"span","id-or-name",r))}b.showLockButtonInTitle&&(a=n.createWithHTML(s,"button","lock",o.text.dialogMovedSymbolText),a.title=o.text.lockText,a.onclick=()=>B())}}function B(){L||(n.createWithHTML(s,"span","locked",`${o.text.dialogMovedSymbolText} `,!0),e.defined(a)&&(a.parentNode.removeChild(a),a=null),L=!0)}function D(){l.style.display="none",L=!1,u.value=""}function I(){const e=[];for(let t in S)S.hasOwnProperty(t)&&(1===b.mode?e.push(`${t}: ${S[t]};`):2===b.mode?e.push(`${t}="${S[t]}"`):4===b.mode&&e.push(S[t]));1===b.mode?navigator.clipboard.writeText(`${A.nodeName.toLowerCase()} { \n ${e.join("\n")} \n }`):2!==b.mode&&4!==b.mode||navigator.clipboard.writeText(e.join(" "))}function $(){A.parentNode.removeChild(A),D()}function j(){0!==d&&(clearTimeout(d),d=0),d=setTimeout((()=>{const t=p.getElementsByClassName("property-name"),n=[].slice.call(t),o=n.length,r=u.value.toLowerCase();let i=0;for(let t=0;t-1?(o.style.removeProperty("display"),i++):o.style.display="none"}}0===i?x.style.display="block":x.style.removeProperty("display")}),o.searchDelayDelay)}function _(){u.value="",u.focus(),j()}function R(){null!==A.parentNode&&null!==A.previousElementSibling&&A.parentNode.insertBefore(A,A.previousElementSibling)}function U(){null!==A.parentNode&&null!==A.nextElementSibling&&A.parentNode.insertBefore(A.nextElementSibling,A)}function V(t){e.defined(b)&&(p.innerHTML="",p.scrollTop=0,S={},E=0,A=t,W(t),1===b.mode||4===b.mode||2===b.mode?g.style.removeProperty("display"):g.style.display="none",b.allowEditing?(y.style.removeProperty("display"),m.style.removeProperty("display"),T.style.removeProperty("display")):(y.style.display="none",m.style.display="none",T.style.display="none"),x=n.createWithHTML(p,"span","no-search-results",o.text.noPropertiesFoundForSearchText),1===b.mode?function(e){const t=getComputedStyle(e),n=t.length;for(let o=0;o0){let t=1;for(let n of e.classList)F(e,t.toString(),n),t++}else p.innerHTML="",n.createWithHTML(p,"span","warning",o.text.noClassesAvailableText)}(t):n.createWithHTML(p,"span","warning",o.text.modeNotSupportedText),E<=15?c.style.display="none":c.style.removeProperty("display"))}function F(t,r,i,l=!0){if(function(e){return 0===b.showOnly.length||b.showOnly.indexOf(e)>-1}(r)&&function(e){return 0===b.ignoreValues.length||b.ignoreValues.indexOf(e)<=-1}(i)){const s=n.create(p,"div","property-row");n.createWithHTML(s,"div","property-name",r);const a=n.create(s,"div","property-value"),c=n.create(a,"input");(e.hexColor(i)||e.isRgbColor(i))&&(c.classList.add("property-value-color"),c.style.borderLeftColor=i),c.placeholder=o.text.propertyValuePlaceHolderText,c.onfocus=()=>c.select();const u=n.createWithHTML(s,"button","copy-small",o.text.copySymbolText);if(u.title=o.text.copyText,u.onclick=()=>navigator.clipboard.writeText(i),b.allowEditing&&l){const e=n.createWithHTML(s,"button","paste-small",o.text.pasteSymbolText),l=n.createWithHTML(s,"button","remove-small",o.text.removeSymbolText);e.title=o.text.pasteText,l.title=o.text.removeText,e.onclick=()=>function(e,t,n){navigator.clipboard.readText().then((o=>{t.value=o,z(e,n,t)}))}(t,c,r),l.onclick=()=>function(e,t,n,o){1===b.mode?(t.style.removeProperty(n),e.parentNode.removeChild(e)):2===b.mode?(t.removeAttribute(n),e.parentNode.removeChild(e)):4===b.mode&&(t.classList.remove(o),e.parentNode.removeChild(e))}(s,t,r,i)}c.type="text",c.value=i,S[r]=i,E++,b.allowEditing&&l?c.onkeyup=e=>function(e,t,n,o){"Enter"===e.code&&z(o,t,n)}(e,r,c,t):c.readOnly=!0}}function z(t,n,o){1===b.mode?t.style.setProperty(n,o.value):2===b.mode?t.setAttribute(n,o.value):4===b.mode&&t.classList.replace(t.classList[parseInt(n)-1],o.value),S[n]=o.value,e.hexColor(o.value)||e.isRgbColor(o.value)?(o.classList.add("property-value-color"),o.style.borderLeftColor=o.value):o.classList.remove("property-value-color")}function G(n){const o=n.getAttribute(t.PEEK_JS_IGNORE_STATE_ATTRIBUTE);e.definedString(o)||"ignore"===o||(n.addEventListener("mousemove",(e=>{J(e,n)})),h.push(n))}function J(t,r){!L&&e.defined(b)&&(n.cancelBubble(t),X(),v=setTimeout((()=>{V(r),n.showElementAtMousePosition(t,l)}),o.dialogDisplayDelay))}function K(){L||(X(),D())}function X(){0!==v&&(clearTimeout(v),v=0)}function Y(){H&&(H=!1,N=null,O=0,M=0)}function q(e,t=!1){t&&n.cancelBubble(e),H&&(B(),N.style.left=e.pageX-P+"px",N.style.top=e.pageY-k+"px")}function Q(){H&&(N.style.left=`${O}px`,N.style.top=`${M}px`,H=!1,N=null,O=0,M=0)}const Z={start:function(t){return e.definedObject(b)||(b=i.Options.get(t),W(),function(){const e=b.nodeType;w=e.length;for(let t=0;t{J(t,e)}))}h=[],window.removeEventListener("mousemove",K),D()}()),Z},close:function(){return D(),Z},setConfiguration:function(t){if(e.definedObject(t)){let n=!1;const i=o;for(let e in t)t.hasOwnProperty(e)&&o.hasOwnProperty(e)&&i[e]!==t[e]&&(i[e]=t[e],n=!0);n&&(o=r.Options.get(i),C(),e.definedObject(b)&&W())}return Z},getVersion:function(){return"1.8.0"}};o=r.Options.get(),document.addEventListener("DOMContentLoaded",(()=>{C()})),e.defined(window.$peek)||(window.$peek=Z)})(); \ No newline at end of file diff --git a/src/peek.ts b/src/peek.ts index 237cb74..bfcc09d 100644 --- a/src/peek.ts +++ b/src/peek.ts @@ -210,7 +210,7 @@ type DialogProperties = Record; } function onRemove() : void { - _current_Process_Element.parentNode?.removeChild( _current_Process_Element ); + _current_Process_Element.parentNode!.removeChild( _current_Process_Element ); closeDialog(); } From 3b8506aebd83bb6e831e11739597b39016d2c2e3 Mon Sep 17 00:00:00 2001 From: William Troup Date: Wed, 4 Sep 2024 22:01:54 +0100 Subject: [PATCH 06/14] Added a start option "offset" (defaults to 0), which states the additional offset to use for the dialogs position. --- dist/peek.esm.js | 69 ++++++++++++++++++++------------------- dist/peek.esm.js.map | 2 +- dist/peek.js | 69 ++++++++++++++++++++------------------- dist/peek.js.map | 2 +- dist/peek.min.js | 2 +- docs/CHANGE_LOG.md | 6 ++++ docs/options/OPTIONS.md | 2 ++ src/peek.ts | 2 +- src/ts/dom/dom.ts | 8 +++-- src/ts/options/options.ts | 1 + src/ts/type.ts | 1 + 11 files changed, 91 insertions(+), 73 deletions(-) diff --git a/dist/peek.esm.js b/dist/peek.esm.js index 2288892..9b82a54 100644 --- a/dist/peek.esm.js +++ b/dist/peek.esm.js @@ -99,30 +99,32 @@ var n; return t; } n.getScrollPosition = r; - function s(e, t) { + function s(e, t, n) { if (t.style.display !== "block") { - let n = e.pageX; - let o = e.pageY; - const l = r(); + let o = e.pageX; + let l = e.pageY; + const i = r(); t.style.display = "block"; - if (n + t.offsetWidth > window.innerWidth) { - n -= t.offsetWidth; + if (o + t.offsetWidth > window.innerWidth) { + o -= t.offsetWidth + n; } else { - n++; + o++; + o += n; } - if (o + t.offsetHeight > window.innerHeight) { - o -= t.offsetHeight; + if (l + t.offsetHeight > window.innerHeight) { + l -= t.offsetHeight + n; } else { - o++; + l++; + l += n; } - if (n < l.left) { - n = e.pageX + 1; + if (o < i.left) { + o = e.pageX + 1; } - if (o < l.top) { - o = e.pageY + 1; + if (l < i.top) { + l = e.pageY + 1; } - t.style.left = `${n}px`; - t.style.top = `${o}px`; + t.style.left = `${o}px`; + t.style.top = `${l}px`; } } n.showElementAtMousePosition = s; @@ -248,6 +250,7 @@ var i; t.showNodeNameInTitle = o.getBoolean(t.showNodeNameInTitle, false); t.ignoreValues = o.getStringOrArray(t.ignoreValues, []); t.showLockButtonInTitle = o.getBoolean(t.showLockButtonInTitle, true); + t.dialogOffset = o.getNumber(t.dialogOffset, 0); return t; } e.get = t; @@ -276,8 +279,8 @@ var i; let A = null; let w = false; let L = 0; - let E = 0; - let N = null; + let N = 0; + let E = null; let O = 0; let M = 0; let H = false; @@ -452,7 +455,7 @@ var i; d.innerHTML = ""; d.scrollTop = 0; S = {}; - E = 0; + N = 0; A = t; W(t); if (b.mode === 1 || b.mode === 4 || b.mode === 2) { @@ -481,7 +484,7 @@ var i; } else { n.createWithHTML(d, "span", "warning", o.text.modeNotSupportedText); } - if (E <= 15) { + if (N <= 15) { c.style.display = "none"; } else { c.style.removeProperty("display"); @@ -550,7 +553,7 @@ var i; c.type = "text"; c.value = i; S[l] = i; - E++; + N++; if (!b.allowEditing || !r) { c.readOnly = true; } else { @@ -643,7 +646,7 @@ var i; re(); v = setTimeout((() => { V(l); - n.showElementAtMousePosition(t, r); + n.showElementAtMousePosition(t, r, b.dialogOffset); }), o.dialogDisplayDelay); } } @@ -677,18 +680,18 @@ var i; } function ae(e, t) { if (!H) { - N = t; + E = t; H = true; - P = e.pageX - N.offsetLeft; - k = e.pageY - N.offsetTop; - O = N.offsetLeft; - M = N.offsetTop; + P = e.pageX - E.offsetLeft; + k = e.pageY - E.offsetTop; + O = E.offsetLeft; + M = E.offsetTop; } } function ce() { if (H) { H = false; - N = null; + E = null; O = 0; M = 0; } @@ -699,16 +702,16 @@ var i; } if (H) { B(); - N.style.left = `${e.pageX - P}px`; - N.style.top = `${e.pageY - k}px`; + E.style.left = `${e.pageX - P}px`; + E.style.top = `${e.pageY - k}px`; } } function ue() { if (H) { - N.style.left = `${O}px`; - N.style.top = `${M}px`; + E.style.left = `${O}px`; + E.style.top = `${M}px`; H = false; - N = null; + E = null; O = 0; M = 0; } diff --git a/dist/peek.esm.js.map b/dist/peek.esm.js.map index a457001..777ad30 100644 --- a/dist/peek.esm.js.map +++ b/dist/peek.esm.js.map @@ -1 +1 @@ -{"version":3,"sources":["/Users/williamtroup/Documents/GitHub%20Repos/Peek.js/dist/peek.esm.js"],"names":["Is","Is2","defined","value","toString","definedObject","object","definedBoolean","definedString","definedFunction","definedNumber","definedArray","Array","definedDate","Date","invalidOptionArray","array","minimumLength","length","hexColor","valid","isNaN","substring","isRgbColor","startsWith","Constant","Constant2","PEEK_JS_IGNORE_STATE_ATTRIBUTE","DomElement","DomElement2","create","container","type","className","insertAtStart","nodeType","toLowerCase","isText","result","document","createTextNode","createElement","setAttribute","appendChild","insertBefore","children","createWithHTML","html","element","innerHTML","cancelBubble","e","preventDefault","stopPropagation","getScrollPosition","documentElement","left","scrollLeft","clientLeft","top","scrollTop","clientTop","showElementAtMousePosition","style","display","pageX","pageY","scrollPosition","offsetWidth","window","innerWidth","offsetHeight","innerHeight","getOffset","offsetLeft","offsetTop","offsetParent","Default","Default2","getAnyString","defaultValue","getString","getBoolean","getNumber","getArray","getObject","getStringOrArray","values","split","Config","Config2","Options","Options2","get","newConfiguration","configuration","dialogDisplayDelay","searchDelayDelay","getText","text","cssText","attributesText","sizeText","classesText","noAttributesAvailableText","closeText","copyText","copySymbolText","pasteText","pasteSymbolText","removeText","removeSymbolText","noClassesAvailableText","searchPropertiesPlaceHolderText","clearText","clearSymbolText","noPropertiesFoundForSearchText","dialogMovedSymbolText","propertyValuePlaceHolderText","modeNotSupportedText","unknownModeText","moveUpText","moveUpSymbolText","moveDownText","moveDownSymbolText","removeElementSymbolText","lockText","Start","Start2","newOptions","options","mode","titleText","showOnly","allowEditing","showIdOrNameInTitle","showNodeNameInTitle","ignoreValues","showLockButtonInTitle","_configuration","_dialog","_dialog_Title","_dialog_Title_Button_Lock","_dialog_Search","_dialog_Search_Input","_dialog_Search_Input_TimerId","_dialog_Contents","_dialog_Contents_NoSearchResultsText","_dialog_Buttons","_dialog_Buttons_Copy","_dialog_Buttons_Remove","_dialog_Buttons_MoveUp","_dialog_Buttons_MoveDown","_dialog_TimerId","_current_Process_Options","_current_Process_Elements","_current_Process_Properties","_current_Process_Element","_current_Process_Locked","_current_Process_NodeCount","_current_Process_Properties_Count","_element_Dialog_Move","_element_Dialog_Move_Original_X","_element_Dialog_Move_Original_Y","_element_Dialog_Move_IsMoving","_element_Dialog_Move_X","_element_Dialog_Move_Y","buildDialog","closeDialog","body","removeChild","onmousemove","onclick","onCopy","placeholder","onkeyup","onSearchProperties","onpaste","onfocus","select","removeButton","title","onSearchPropertiesClear","closeButton","onRemove","onMoveUp","onMoveDown","makeDialogMovable","setDialogTitle","nodeName","id","getAttribute","name","setDialogAsLocked","parentNode","lines","propertyName","hasOwnProperty","push","navigator","clipboard","writeText","join","clearTimeout","setTimeout","getElementsByClassName","propertyNames","slice","call","propertyNamesLength","searchValue","propertiesFound","propertyNameIndex","parent","trim","removeProperty","propertyNameText","innerText","indexOf","focus","previousElementSibling","nextElementSibling","buildDialogContent","buildCssProperties","buildAttributeProperties","buildSizeProperties","buildClassProperties","computedStyles","getComputedStyle","computedStylesLength","styleIndex","buildPropertyRow","getPropertyValue","hasAttributes","attribute","attributes","offset","classList","index","propertyValueText","isPropertyVisible","isPropertyValueVisible","property","propertyValue","propertyValueInput","add","borderLeftColor","copyButton","pasteButton","onPropertyPaste","onPropertyRemove","readOnly","onPropertyValueKeyUp","readText","then","data","updatePropertyValue","removeAttribute","remove","input","code","setProperty","replace","parseInt","buildNodeEvents","tagTypes","tagTypeIndex","domElements","getElementsByTagName","elements","elementsLength","elementIndex","buildNodeEvent","addEventListener","onWindowMove","attributeValue","onNodeMouseOver","removeNodeEvents","currentProcessElementsLength","removeEventListener","clearDialogShowTimer","titleBar","dialog","onmousedown","onMoveTitleBarMouseDown","onMoveDocumentMouseMove","onmouseup","onMoveTitleBarMouseUp","oncontextmenu","onMoveDocumentMouseLeave","_public","start","stop","close","setConfiguration","configurationHasChanged","newInternalConfiguration","getVersion","$peek"],"mappings":"AACA,IAAIA;;AACJ,CAAEC;IACA,SAASC,EAAQC;QACf,OAAOA,MAAU,QAAQA,WAAe,KAAKA,EAAMC,eAAe;AACpE;IACAH,EAAIC,UAAUA;IACd,SAASG,EAAcC;QACrB,OAAOJ,EAAQI,aAAkBA,MAAW;AAC9C;IACAL,EAAII,gBAAgBA;IACpB,SAASE,EAAeD;QACtB,OAAOJ,EAAQI,aAAkBA,MAAW;AAC9C;IACAL,EAAIM,iBAAiBA;IACrB,SAASC,EAAcF;QACrB,OAAOJ,EAAQI,aAAkBA,MAAW;AAC9C;IACAL,EAAIO,gBAAgBA;IACpB,SAASC,EAAgBH;QACvB,OAAOJ,EAAQI,aAAkBA,MAAW;AAC9C;IACAL,EAAIQ,kBAAkBA;IACtB,SAASC,EAAcJ;QACrB,OAAOJ,EAAQI,aAAkBA,MAAW;AAC9C;IACAL,EAAIS,gBAAgBA;IACpB,SAASC,EAAaL;QACpB,OAAOD,EAAcC,MAAWA,aAAkBM;AACpD;IACAX,EAAIU,eAAeA;IACnB,SAASE,EAAYP;QACnB,OAAOD,EAAcC,MAAWA,aAAkBQ;AACpD;IACAb,EAAIY,cAAcA;IAClB,SAASE,EAAmBC,GAAOC,IAAgB;QACjD,QAAQN,EAAaK,MAAUA,EAAME,SAASD;AAChD;IACAhB,EAAIc,qBAAqBA;IACzB,SAASI,EAAShB;QAChB,IAAIiB,IAAQjB,EAAMe,UAAU,KAAKf,EAAMe,UAAU;QACjD,IAAIE,KAASjB,EAAM,OAAO,KAAgB;Y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oBACzC,IAAIA,EAAiBuG,eAAeD,MAAiBzD,EAAe0D,eAAeD,MAAiBoG,EAAyBpG,OAAkBtG,EAAiBsG,IAAe;wBAC7KoG,EAAyBpG,KAAgBtG,EAAiBsG;wBAC1DmG,IAA0B;AAC5B;AACF;gBACA,IAAIA,GAAyB;oBAC3B5J,IAAiBlD,EAAOE,QAAQE,IAAI2M;oBACpCjI;oBACA,IAAIvK,EAAGK,cAAcqJ,IAA2B;wBAC9CkC;AACF;AACF;AACF;YACA,OAAOsG;AACT;QAMAO,YAAY;YACV,OAAO;AACT;;IAEF;QACE9J,IAAiBlD,EAAOE,QAAQE;QAChCtD,SAAS0O,iBAAiB,qBAAoB;YAC5C1G;AAAa;QAEf,KAAKvK,EAAGE,QAAQmE,OAAOqO,QAAQ;YAC7BrO,OAAOqO,QAAQR;AACjB;AACD,MARD;AASD,EAhhBD","sourcesContent":[null]} \ No newline at end of file +{"version":3,"sources":["/Users/williamtroup/Documents/GitHub%20Repos/Peek.js/dist/peek.esm.js"],"names":["Is","Is2","defined","value","toString","definedObject","object","definedBoolean","definedString","definedFunction","definedNumber","definedArray","Array","definedDate","Date","invalidOptionArray","array","minimumLength","length","hexColor","valid","isNaN","substring","isRgbColor","startsWith","Constant","Constant2","PEEK_JS_IGNORE_STATE_ATTRIBUTE","DomElement","DomElement2","create","container","type","className","insertAtStart","nodeType","toLowerCase","isText","result","document","createTextNode","createElement","setAttribute","appendChild","insertBefore","children","createWithHTML","html","element","innerHTML","cancelBubble","e","preventDefault","stopPropagation","getScrollPosition","documentElement","left","scrollLeft","clientLeft","top","scrollTop","clientTop","showElementAtMousePosition","offset","style","display","pageX","pageY","scrollPosition","offsetWidth","window","innerWidth","offsetHeight","innerHeight","getOffset","offsetLeft","offsetTop","offsetParent","Default","Default2","getAnyString","defaultValue","getString","getBoolean","getNumber","getArray","getObject","getStringOrArray","values","split","Config","Config2","Options","Options2","get","newConfiguration","configuration","dialogDisplayDelay","searchDelayDelay","getText","text","cssText","attributesText","sizeText","classesText","noAttributesAvailableText","closeText","copyText","copySymbolText","pasteText","pasteSymbolText","removeText","removeSymbolText","noClassesAvailableText","searchPropertiesPlaceHolderText","clearText","clearSymbolText","noPropertiesFoundForSearchText","dialogMovedSymbolText","propertyValuePlaceHolderText","modeNotSupportedText","unknownModeText","moveUpText","moveUpSymbolText","moveDownText","moveDownSymbolText","removeElementSymbolText","lockText","Start","Start2","newOptions","options","mode","titleText","showOnly","allowEditing","showIdOrNameInTitle","showNodeNameInTitle","ignoreValues","showLockButtonInTitle","dialogOffset","_configuration","_dialog","_dialog_Title","_dialog_Title_Button_Lock","_dialog_Search","_dialog_Search_Input","_dialog_Search_Input_TimerId","_dialog_Contents","_dialog_Contents_NoSearchResultsText","_dialog_Buttons","_dialog_Buttons_Copy","_dialog_Buttons_Remove","_dialog_Buttons_MoveUp","_dialog_Buttons_MoveDown","_dialog_TimerId","_current_Process_Options","_current_Process_Elements","_current_Process_Properties","_current_Process_Element","_current_Process_Locked","_current_Process_NodeCount","_current_Process_Properties_Count","_element_Dialog_Move","_element_Dialog_Move_Original_X","_element_Dialog_Move_Original_Y","_element_Dialog_Move_IsMoving","_element_Dialog_Move_X","_element_Dialog_Move_Y","buildDialog","closeDialog","body","removeChild","onmousemove","onclick","onCopy","placeholder","onkeyup","onSearchProperties","onpaste","onfocus","select","removeButton","title","onSearchPropertiesClear","closeButton","onRemove","onMoveUp","onMoveDown","makeDialogMovable","setDialogTitle","nodeName","id","getAttribute","name","setDialogAsLocked","parentNode","lines","propertyName","hasOwnProperty","push","navigator","clipboard","writeText","join","clearTimeout","setTimeout","getElementsByClassName","propertyNames","slice","call","propertyNamesLength","searchValue","propertiesFound","propertyNameIndex","parent","trim","removeProperty","propertyNameText","innerText","indexOf","focus","previousElementSibling","nextElementSibling","buildDialogContent","buildCssProperties","buildAttributeProperties","buildSizeProperties","buildClassProperties","computedStyles","getComputedStyle","computedStylesLength","styleIndex","buildPropertyRow","getPropertyValue","hasAttributes","attribute","attributes","classList","index","propertyValueText","isPropertyVisible","isPropertyValueVisible","property","propertyValue","propertyValueInput","add","borderLeftColor","copyButton","pasteButton","onPropertyPaste","onPropertyRemove","readOnly","onPropertyValueKeyUp","readText","then","data","updatePropertyValue","removeAttribute","remove","input","code","setProperty","replace","parseInt","buildNodeEvents","tagTypes","tagTypeIndex","domElements","getElementsByTagName","elements","elementsLength","elementIndex","buildNodeEvent","addEventListener","onWindowMove","attributeValue","onNodeMouseOver","removeNodeEvents","currentProcessElementsLength","removeEventListener","clearDialogShowTimer","titleBar","dialog","onmousedown","onMoveTitleBarMouseDown","onMoveDocumentMouseMove","onmouseup","onMoveTitleBarMouseUp","oncontextmenu","onMoveDocumentMouseLeave","_public","start","stop","close","setConfiguration","configurationHasChanged","newInternalConfiguration","getVersion","$peek"],"mappings":"AACA,IAAIA;;AACJ,CAAEC;IACA,SAASC,EAAQC;QACf,OAAOA,MAAU,QAAQA,WAAe,KAAKA,EAAMC,eAAe;AACpE;IACAH,EAAIC,UAAUA;IACd,SAASG,EAAcC;QACrB,OAAOJ,EAAQI,aAAkBA,MAAW;AAC9C;IACAL,EAAII,gBAAgBA;IACpB,SAASE,EAAeD;QACtB,OAAOJ,EAAQI,aAAkBA,MAAW;AAC9C;IACAL,EAAIM,iBAAiBA;IACrB,SAASC,EAAcF;QACrB,OAAOJ,EAAQI,aAAkBA,MAAW;AAC9C;IACAL,EAAIO,gBAAgBA;IACpB,SAASC,EAAgBH;QACvB,OAAOJ,EAAQI,aAAkBA,MAAW;AAC9C;IACAL,EAAIQ,kBAAkBA;IACtB,SAASC,EAAcJ;QACrB,OAAOJ,EAAQI,aAAkBA,MAAW;AAC9C;IACAL,EAAIS,gBAAgBA;IACpB,SAASC,EAAaL;QACpB,OAAOD,EAAcC,MAAWA,aAAkBM;AACpD;IACAX,EAAIU,eAAeA;IACnB,SAASE,EAAYP;QACnB,OAAOD,EAAcC,MAAWA,aAAkBQ;AACpD;IACAb,EAAIY,cAAcA;IAClB,SAASE,EA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BAC7C2D;gBACA2E;AACF;YACA,OAAO0B;AACT;QACAE,MAAM;YACJ,IAAIrS,EAAGK,cAAcuJ,IAA2B;gBAC9CA,IAA2B;gBAC3B6H;gBACAH;AACF;YACA,OAAOa;AACT;QACAG,OAAO;YACL5H;YACA,OAAOyH;AACT;QAMAI,kBAAkB,SAASxM;YACzB,IAAI/F,EAAGK,cAAc0F,IAAmB;gBACtC,IAAIyM,IAA0B;gBAC9B,MAAMC,IAA2B5J;gBACjC,KAAK,IAAIyD,KAAgBvG,GAAkB;oBACzC,IAAIA,EAAiBwG,eAAeD,MAAiBzD,EAAe0D,eAAeD,MAAiBmG,EAAyBnG,OAAkBvG,EAAiBuG,IAAe;wBAC7KmG,EAAyBnG,KAAgBvG,EAAiBuG;wBAC1DkG,IAA0B;AAC5B;AACF;gBACA,IAAIA,GAAyB;oBAC3B3J,IAAiBnD,EAAOE,QAAQE,IAAI2M;oBACpChI;oBACA,IAAIzK,EAAGK,cAAcuJ,IAA2B;wBAC9CkC;AACF;AACF;AACF;YACA,OAAOqG;AACT;QAMAO,YAAY;YACV,OAAO;AACT;;IAEF;QACE7J,IAAiBnD,EAAOE,QAAQE;QAChCvD,SAAS2O,iBAAiB,qBAAoB;YAC5CzG;AAAa;QAEf,KAAKzK,EAAGE,QAAQoE,OAAOqO,QAAQ;YAC7BrO,OAAOqO,QAAQR;AACjB;AACD,MARD;AASD,EAhhBD","sourcesContent":[null]} \ No newline at end of file diff --git a/dist/peek.js b/dist/peek.js index c726386..a68bf68 100644 --- a/dist/peek.js +++ b/dist/peek.js @@ -101,30 +101,32 @@ var n; return t; } n.getScrollPosition = r; - function s(e, t) { + function s(e, t, n) { if (t.style.display !== "block") { - let n = e.pageX; - let o = e.pageY; - const l = r(); + let o = e.pageX; + let l = e.pageY; + const i = r(); t.style.display = "block"; - if (n + t.offsetWidth > window.innerWidth) { - n -= t.offsetWidth; + if (o + t.offsetWidth > window.innerWidth) { + o -= t.offsetWidth + n; } else { - n++; + o++; + o += n; } - if (o + t.offsetHeight > window.innerHeight) { - o -= t.offsetHeight; + if (l + t.offsetHeight > window.innerHeight) { + l -= t.offsetHeight + n; } else { - o++; + l++; + l += n; } - if (n < l.left) { - n = e.pageX + 1; + if (o < i.left) { + o = e.pageX + 1; } - if (o < l.top) { - o = e.pageY + 1; + if (l < i.top) { + l = e.pageY + 1; } - t.style.left = `${n}px`; - t.style.top = `${o}px`; + t.style.left = `${o}px`; + t.style.top = `${l}px`; } } n.showElementAtMousePosition = s; @@ -250,6 +252,7 @@ var i; t.showNodeNameInTitle = o.getBoolean(t.showNodeNameInTitle, false); t.ignoreValues = o.getStringOrArray(t.ignoreValues, []); t.showLockButtonInTitle = o.getBoolean(t.showLockButtonInTitle, true); + t.dialogOffset = o.getNumber(t.dialogOffset, 0); return t; } e.get = t; @@ -278,8 +281,8 @@ var i; let A = null; let w = false; let L = 0; - let E = 0; - let N = null; + let N = 0; + let E = null; let O = 0; let M = 0; let H = false; @@ -454,7 +457,7 @@ var i; d.innerHTML = ""; d.scrollTop = 0; S = {}; - E = 0; + N = 0; A = t; W(t); if (b.mode === 1 || b.mode === 4 || b.mode === 2) { @@ -483,7 +486,7 @@ var i; } else { n.createWithHTML(d, "span", "warning", o.text.modeNotSupportedText); } - if (E <= 15) { + if (N <= 15) { c.style.display = "none"; } else { c.style.removeProperty("display"); @@ -552,7 +555,7 @@ var i; c.type = "text"; c.value = i; S[l] = i; - E++; + N++; if (!b.allowEditing || !r) { c.readOnly = true; } else { @@ -645,7 +648,7 @@ var i; re(); v = setTimeout((() => { V(l); - n.showElementAtMousePosition(t, r); + n.showElementAtMousePosition(t, r, b.dialogOffset); }), o.dialogDisplayDelay); } } @@ -679,18 +682,18 @@ var i; } function ae(e, t) { if (!H) { - N = t; + E = t; H = true; - P = e.pageX - N.offsetLeft; - k = e.pageY - N.offsetTop; - O = N.offsetLeft; - M = N.offsetTop; + P = e.pageX - E.offsetLeft; + k = e.pageY - E.offsetTop; + O = E.offsetLeft; + M = E.offsetTop; } } function ce() { if (H) { H = false; - N = null; + E = null; O = 0; M = 0; } @@ -701,16 +704,16 @@ var i; } if (H) { B(); - N.style.left = `${e.pageX - P}px`; - N.style.top = `${e.pageY - k}px`; + E.style.left = `${e.pageX - P}px`; + E.style.top = `${e.pageY - k}px`; } } function ue() { if (H) { - N.style.left = `${O}px`; - N.style.top = `${M}px`; + E.style.left = `${O}px`; + E.style.top = `${M}px`; H = false; - N = null; + E = null; O = 0; M = 0; } diff --git a/dist/peek.js.map b/dist/peek.js.map index 6b6cefb..b057e48 100644 --- a/dist/peek.js.map +++ b/dist/peek.js.map @@ -1 +1 @@ -{"version":3,"sources":["/Users/williamtroup/Documents/GitHub%20Repos/Peek.js/dist/peek.js"],"names":["Is","Is2","defined","value","toString","definedObject","object","definedBoolean","definedString","definedFunction","definedNumber","definedArray","Array","definedDate","Date","invalidOptionArray","array","minimumLength","length","hexColor","valid","isNaN","substring","isRgbColor","startsWith","Constant","Constant2","PEEK_JS_IGNORE_STATE_ATTRIBUTE","DomElement","DomElement2","create","container","type","className","insertAtStart","nodeType","toLowerCase","isText","result","document","createTextNode","createElement","setAttribute","appendChild","insertBefore","children","createWithHTML","html","element","innerHTML","cancelBubble","e","preventDefault","stopPropagation","getScrollPosition","documentElement","left","scrollLeft","clientLeft","top","scrollTop","clientTop","showElementAtMousePosition","style","display","pageX","pageY","scrollPosition","offsetWidth","window","innerWidth","offsetHeight","innerHeight","getOffset","offsetLeft","offsetTop","offsetParent","Default","Default2","getAnyString","defaultValue","getString","getBoolean","getNumber","getArray","getObject","getStringOrArray","values","split","Config","Config2","Options","Options2","get","newConfiguration","configuration","dialogDisplayDelay","searchDelayDelay","getText","text","cssText","attributesText","sizeText","classesText","noAttributesAvailableText","closeText","copyText","copySymbolText","pasteText","pasteSymbolText","removeText","removeSymbolText","noClassesAvailableText","searchPropertiesPlaceHolderText","clearText","clearSymbolText","noPropertiesFoundForSearchText","dialogMovedSymbolText","propertyValuePlaceHolderText","modeNotSupportedText","unknownModeText","moveUpText","moveUpSymbolText","moveDownText","moveDownSymbolText","removeElementSymbolText","lockText","Start","Start2","newOptions","options","mode","titleText","showOnly","allowEditing","showIdOrNameInTitle","showNodeNameInTitle","ignoreValues","showLockButtonInTitle","_configuration","_dialog","_dialog_Title","_dialog_Title_Button_Lock","_dialog_Search","_dialog_Search_Input","_dialog_Search_Input_TimerId","_dialog_Contents","_dialog_Contents_NoSearchResultsText","_dialog_Buttons","_dialog_Buttons_Copy","_dialog_Buttons_Remove","_dialog_Buttons_MoveUp","_dialog_Buttons_MoveDown","_dialog_TimerId","_current_Process_Options","_current_Process_Elements","_current_Process_Properties","_current_Process_Element","_current_Process_Locked","_current_Process_NodeCount","_current_Process_Properties_Count","_element_Dialog_Move","_element_Dialog_Move_Original_X","_element_Dialog_Move_Original_Y","_element_Dialog_Move_IsMoving","_element_Dialog_Move_X","_element_Dialog_Move_Y","buildDialog","closeDialog","body","removeChild","onmousemove","onclick","onCopy","placeholder","onkeyup","onSearchProperties","onpaste","onfocus","select","removeButton","title","onSearchPropertiesClear","closeButton","onRemove","onMoveUp","onMoveDown","makeDialogMovable","setDialogTitle","nodeName","id","getAttribute","name","setDialogAsLocked","parentNode","lines","propertyName","hasOwnProperty","push","navigator","clipboard","writeText","join","clearTimeout","setTimeout","getElementsByClassName","propertyNames","slice","call","propertyNamesLength","searchValue","propertiesFound","propertyNameIndex","parent","trim","removeProperty","propertyNameText","innerText","indexOf","focus","previousElementSibling","nextElementSibling","buildDialogContent","buildCssProperties","buildAttributeProperties","buildSizeProperties","buildClassProperties","computedStyles","getComputedStyle","computedStylesLength","styleIndex","buildPropertyRow","getPropertyValue","hasAttributes","attribute","attributes","offset","classList","index","propertyValueText","isPropertyVisible","isPropertyValueVisible","property","propertyValue","propertyValueInput","add","borderLeftColor","copyButton","pasteButton","onPropertyPaste","onPropertyRemove","readOnly","onPropertyValueKeyUp","readText","then","data","updatePropertyValue","removeAttribute","remove","input","code","setProperty","replace","parseInt","buildNodeEvents","tagTypes","tagTypeIndex","domElements","getElementsByTagName","elements","elementsLength","elementIndex","buildNodeEvent","addEventListener","onWindowMove","attributeValue","onNodeMouseOver","removeNodeEvents","currentProcessElementsLength","removeEventListener","clearDialogShowTimer","titleBar","dialog","onmousedown","onMoveTitleBarMouseDown","onMoveDocumentMouseMove","onmouseup","onMoveTitleBarMouseUp","oncontextmenu","onMoveDocumentMouseLeave","_public","start","stop","close","setConfiguration","configurationHasChanged","newInternalConfiguration","getVersion","$peek"],"mappings":"AAAA;;AAGA,IAAIA;;AACJ,CAAEC;IACA,SAASC,EAAQC;QACf,OAAOA,MAAU,QAAQA,WAAe,KAAKA,EAAMC,eAAe;AACpE;IACAH,EAAIC,UAAUA;IACd,SAASG,EAAcC;QACrB,OAAOJ,EAAQI,aAAkBA,MAAW;AAC9C;IACAL,EAAII,gBAAgBA;IACpB,SAASE,EAAeD;QACtB,OAAOJ,EAAQI,aAAkBA,MAAW;AAC9C;IACAL,EAAIM,iBAAiBA;IACrB,SAASC,EAAcF;QACrB,OAAOJ,EAAQI,aAAkBA,MAAW;AAC9C;IACAL,EAAIO,gBAAgBA;IACpB,SAASC,EAAgBH;QACvB,OAAOJ,EAAQI,aAAkBA,MAAW;AAC9C;IACAL,EAAIQ,kBAAkBA;IACtB,SAASC,EAAcJ;QACrB,OAAOJ,EAAQI,aAAkBA,MAAW;AAC9C;IACAL,EAAIS,gBAAgBA;IACpB,SAASC,EAAaL;QACpB,OAAOD,EAAcC,MAAWA,aAAkBM;AACpD;IACAX,EAAIU,eAAeA;IACnB,SAASE,EAAYP;QACnB,OAAOD,EAAcC,MAAWA,aAAkBQ;AACpD;IACAb,EAAIY,cAAcA;IAClB,SAASE,EAAmBC,GAAOC,IAAgB;QACjD,QAAQN,EAAaK,MAAUA,EAAME,SAASD;AAChD;IACAhB,EAAIc,qBAAqBA;IACzB,SAASI,EAAShB;QAChB,IAAIiB,IAAQjB,EAAMe,UAAU,KAAKf,EAAMe,UAAU;QACjD,IAAI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AAK,IAAIyD,KAAgBtG,GAAkB;oBACzC,IAAIA,EAAiBuG,eAAeD,MAAiBzD,EAAe0D,eAAeD,MAAiBoG,EAAyBpG,OAAkBtG,EAAiBsG,IAAe;wBAC7KoG,EAAyBpG,KAAgBtG,EAAiBsG;wBAC1DmG,IAA0B;AAC5B;AACF;gBACA,IAAIA,GAAyB;oBAC3B5J,IAAiBlD,EAAOE,QAAQE,IAAI2M;oBACpCjI;oBACA,IAAIvK,EAAGK,cAAcqJ,IAA2B;wBAC9CkC;AACF;AACF;AACF;YACA,OAAOsG;AACT;QAMAO,YAAY;YACV,OAAO;AACT;;IAEF;QACE9J,IAAiBlD,EAAOE,QAAQE;QAChCtD,SAAS0O,iBAAiB,qBAAoB;YAC5C1G;AAAa;QAEf,KAAKvK,EAAGE,QAAQmE,OAAOqO,QAAQ;YAC7BrO,OAAOqO,QAAQR;AACjB;AACD,MARD;AASD,EAhhBD","sourcesContent":[null]} \ No newline at end of file +{"version":3,"sources":["/Users/williamtroup/Documents/GitHub%20Repos/Peek.js/dist/peek.js"],"names":["Is","Is2","defined","value","toString","definedObject","object","definedBoolean","definedString","definedFunction","definedNumber","definedArray","Array","definedDate","Date","invalidOptionArray","array","minimumLength","length","hexColor","valid","isNaN","substring","isRgbColor","startsWith","Constant","Constant2","PEEK_JS_IGNORE_STATE_ATTRIBUTE","DomElement","DomElement2","create","container","type","className","insertAtStart","nodeType","toLowerCase","isText","result","document","createTextNode","createElement","setAttribute","appendChild","insertBefore","children","createWithHTML","html","element","innerHTML","cancelBubble","e","preventDefault","stopPropagation","getScrollPosition","documentElement","left","scrollLeft","clientLeft","top","scrollTop","clientTop","showElementAtMousePosition","offset","style","display","pageX","pageY","scrollPosition","offsetWidth","window","innerWidth","offsetHeight","innerHeight","getOffset","offsetLeft","offsetTop","offsetParent","Default","Default2","getAnyString","defaultValue","getString","getBoolean","getNumber","getArray","getObject","getStringOrArray","values","split","Config","Config2","Options","Options2","get","newConfiguration","configuration","dialogDisplayDelay","searchDelayDelay","getText","text","cssText","attributesText","sizeText","classesText","noAttributesAvailableText","closeText","copyText","copySymbolText","pasteText","pasteSymbolText","removeText","removeSymbolText","noClassesAvailableText","searchPropertiesPlaceHolderText","clearText","clearSymbolText","noPropertiesFoundForSearchText","dialogMovedSymbolText","propertyValuePlaceHolderText","modeNotSupportedText","unknownModeText","moveUpText","moveUpSymbolText","moveDownText","moveDownSymbolText","removeElementSymbolText","lockText","Start","Start2","newOptions","options","mode","titleText","showOnly","allowEditing","showIdOrNameInTitle","showNodeNameInTitle","ignoreValues","showLockButtonInTitle","dialogOffset","_configuration","_dialog","_dialog_Title","_dialog_Title_Button_Lock","_dialog_Search","_dialog_Search_Input","_dialog_Search_Input_TimerId","_dialog_Contents","_dialog_Contents_NoSearchResultsText","_dialog_Buttons","_dialog_Buttons_Copy","_dialog_Buttons_Remove","_dialog_Buttons_MoveUp","_dialog_Buttons_MoveDown","_dialog_TimerId","_current_Process_Options","_current_Process_Elements","_current_Process_Properties","_current_Process_Element","_current_Process_Locked","_current_Process_NodeCount","_current_Process_Properties_Count","_element_Dialog_Move","_element_Dialog_Move_Original_X","_element_Dialog_Move_Original_Y","_element_Dialog_Move_IsMoving","_element_Dialog_Move_X","_element_Dialog_Move_Y","buildDialog","closeDialog","body","removeChild","onmousemove","onclick","onCopy","placeholder","onkeyup","onSearchProperties","onpaste","onfocus","select","removeButton","title","onSearchPropertiesClear","closeButton","onRemove","onMoveUp","onMoveDown","makeDialogMovable","setDialogTitle","nodeName","id","getAttribute","name","setDialogAsLocked","parentNode","lines","propertyName","hasOwnProperty","push","navigator","clipboard","writeText","join","clearTimeout","setTimeout","getElementsByClassName","propertyNames","slice","call","propertyNamesLength","searchValue","propertiesFound","propertyNameIndex","parent","trim","removeProperty","propertyNameText","innerText","indexOf","focus","previousElementSibling","nextElementSibling","buildDialogContent","buildCssProperties","buildAttributeProperties","buildSizeProperties","buildClassProperties","computedStyles","getComputedStyle","computedStylesLength","styleIndex","buildPropertyRow","getPropertyValue","hasAttributes","attribute","attributes","classList","index","propertyValueText","isPropertyVisible","isPropertyValueVisible","property","propertyValue","propertyValueInput","add","borderLeftColor","copyButton","pasteButton","onPropertyPaste","onPropertyRemove","readOnly","onPropertyValueKeyUp","readText","then","data","updatePropertyValue","removeAttribute","remove","input","code","setProperty","replace","parseInt","buildNodeEvents","tagTypes","tagTypeIndex","domElements","getElementsByTagName","elements","elementsLength","elementIndex","buildNodeEvent","addEventListener","onWindowMove","attributeValue","onNodeMouseOver","removeNodeEvents","currentProcessElementsLength","removeEventListener","clearDialogShowTimer","titleBar","dialog","onmousedown","onMoveTitleBarMouseDown","onMoveDocumentMouseMove","onmouseup","onMoveTitleBarMouseUp","oncontextmenu","onMoveDocumentMouseLeave","_public","start","stop","close","setConfiguration","configurationHasChanged","newInternalConfiguration","getVersion","$peek"],"mappings":"AAAA;;AAGA,IAAIA;;AACJ,CAAEC;IACA,SAASC,EAAQC;QACf,OAAOA,MAAU,QAAQA,WAAe,KAAKA,EAAMC,eAAe;AACpE;IACAH,EAAIC,UAAUA;IACd,SAASG,EAAcC;QACrB,OAAOJ,EAAQI,aAAkBA,MAAW;AAC9C;IACAL,EAAII,gBAAgBA;IACpB,SAASE,EAAeD;QACtB,OAAOJ,EAAQI,aAAkBA,MAAW;AAC9C;IACAL,EAAIM,iBAAiBA;IACrB,SAASC,EAAcF;QACrB,OAAOJ,EAAQI,aAAkBA,MAAW;AAC9C;IACAL,EAAIO,gBAAgBA;IACpB,SAASC,EAAgBH;QACvB,OAAOJ,EAAQI,aAAkBA,MAAW;AAC9C;IACAL,EAAIQ,kBAAkBA;IACtB,SAASC,EAAcJ;QACrB,OAAOJ,EAAQI,aAAkBA,MAAW;AAC9C;IACAL,EAAIS,gBAAgBA;IACpB,SAASC,EAAaL;QACpB,OAAOD,EAAcC,MAAWA,aAAkBM;AACpD;IACAX,EAAIU,eAAeA;IACnB,SAASE,EAAYP;QACnB,OAAOD,EAAcC,MAAWA,aAAkBQ;AACpD;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IAA2B5B,EAAMpC,QAAQE,IAAIqC;gBAC7C2D;gBACA2E;AACF;YACA,OAAO0B;AACT;QACAE,MAAM;YACJ,IAAIrS,EAAGK,cAAcuJ,IAA2B;gBAC9CA,IAA2B;gBAC3B6H;gBACAH;AACF;YACA,OAAOa;AACT;QACAG,OAAO;YACL5H;YACA,OAAOyH;AACT;QAMAI,kBAAkB,SAASxM;YACzB,IAAI/F,EAAGK,cAAc0F,IAAmB;gBACtC,IAAIyM,IAA0B;gBAC9B,MAAMC,IAA2B5J;gBACjC,KAAK,IAAIyD,KAAgBvG,GAAkB;oBACzC,IAAIA,EAAiBwG,eAAeD,MAAiBzD,EAAe0D,eAAeD,MAAiBmG,EAAyBnG,OAAkBvG,EAAiBuG,IAAe;wBAC7KmG,EAAyBnG,KAAgBvG,EAAiBuG;wBAC1DkG,IAA0B;AAC5B;AACF;gBACA,IAAIA,GAAyB;oBAC3B3J,IAAiBnD,EAAOE,QAAQE,IAAI2M;oBACpChI;oBACA,IAAIzK,EAAGK,cAAcuJ,IAA2B;wBAC9CkC;AACF;AACF;AACF;YACA,OAAOqG;AACT;QAMAO,YAAY;YACV,OAAO;AACT;;IAEF;QACE7J,IAAiBnD,EAAOE,QAAQE;QAChCvD,SAAS2O,iBAAiB,qBAAoB;YAC5CzG;AAAa;QAEf,KAAKzK,EAAGE,QAAQoE,OAAOqO,QAAQ;YAC7BrO,OAAOqO,QAAQR;AACjB;AACD,MARD;AASD,EAhhBD","sourcesContent":[null]} \ No newline at end of file diff --git a/dist/peek.min.js b/dist/peek.min.js index 41ef921..923eac8 100644 --- a/dist/peek.min.js +++ b/dist/peek.min.js @@ -1 +1 @@ -"use strict";var e,t,n,o,r,i;(e=>{function t(e){return null!=e&&""!==e.toString()}function n(e){return t(e)&&"object"==typeof e}function o(e){return n(e)&&e instanceof Array}e.defined=t,e.definedObject=n,e.definedBoolean=function(e){return t(e)&&"boolean"==typeof e},e.definedString=function(e){return t(e)&&"string"==typeof e},e.definedFunction=function(e){return t(e)&&"function"==typeof e},e.definedNumber=function(e){return t(e)&&"number"==typeof e},e.definedArray=o,e.definedDate=function(e){return n(e)&&e instanceof Date},e.invalidOptionArray=function(e,t=1){return!o(e)||e.length=2&&e.length<=7;return t=!(!t||"#"!==e[0])&&isNaN(+e.substring(1,e.length-1)),t},e.isRgbColor=function(e){return e.startsWith("rgb")||e.startsWith("rgba")}})(e||(e={})),(t||(t={})).PEEK_JS_IGNORE_STATE_ATTRIBUTE="data-peek-js-ignore-state",(n=>{function o(n,o,r="",i=!1){const l=o.toLowerCase();let s="text"===l?document.createTextNode(""):document.createElement(l);return s.setAttribute(t.PEEK_JS_IGNORE_STATE_ATTRIBUTE,"ignore"),e.definedString(r)&&(s.className=r),i?n.insertBefore(s,n.children[0]):n.appendChild(s),s}function r(){const e=document.documentElement;return{left:e.scrollLeft-(e.clientLeft||0),top:e.scrollTop-(e.clientTop||0)}}n.create=o,n.createWithHTML=function(e,n,r,i,l=!1){const s=o(e,n,r,l);return s.innerHTML=i,s.setAttribute(t.PEEK_JS_IGNORE_STATE_ATTRIBUTE,"ignore"),s},n.cancelBubble=function(e){e.preventDefault(),e.stopPropagation()},n.getScrollPosition=r,n.showElementAtMousePosition=function(e,t){if("block"!==t.style.display){let n=e.pageX,o=e.pageY;const i=r();t.style.display="block",n+t.offsetWidth>window.innerWidth?n-=t.offsetWidth:n++,o+t.offsetHeight>window.innerHeight?o-=t.offsetHeight:o++,n{function n(t,n){return e.definedArray(t)?t:n}t.getAnyString=function(e,t){return"string"==typeof e?e:t},t.getString=function(t,n){return e.definedString(t)?t:n},t.getBoolean=function(t,n){return e.definedBoolean(t)?t:n},t.getNumber=function(t,n){return e.definedNumber(t)?t:n},t.getArray=n,t.getObject=function(t,n){return e.definedObject(t)?t:n},t.getStringOrArray=function(t,o){let r=o;if(e.definedString(t)){const e=t.toString().split(" ");0===e.length?t=o:r=e}else r=n(t,o);return r}})(o||(o={})),(e=>{let t;(t=e.Options||(e.Options={})).get=function(e=null){let t=o.getObject(e,{});return t.dialogDisplayDelay=o.getNumber(t.dialogDisplayDelay,1e3),t.searchDelayDelay=o.getNumber(t.searchDelayDelay,500),t=function(e){return e.text=o.getObject(e.text,{}),e.text.cssText=o.getAnyString(e.text.cssText,"CSS"),e.text.attributesText=o.getAnyString(e.text.attributesText,"Attributes"),e.text.sizeText=o.getAnyString(e.text.sizeText,"Size"),e.text.classesText=o.getAnyString(e.text.classesText,"Classes"),e.text.noAttributesAvailableText=o.getAnyString(e.text.noAttributesAvailableText,"No attributes are available."),e.text.closeText=o.getAnyString(e.text.closeText,"Close"),e.text.copyText=o.getAnyString(e.text.copyText,"Copy"),e.text.copySymbolText=o.getAnyString(e.text.copySymbolText,"❐"),e.text.pasteText=o.getAnyString(e.text.pasteText,"Paste"),e.text.pasteSymbolText=o.getAnyString(e.text.pasteSymbolText,"☐"),e.text.removeText=o.getAnyString(e.text.removeText,"Remove"),e.text.removeSymbolText=o.getAnyString(e.text.removeSymbolText,"✕"),e.text.noClassesAvailableText=o.getAnyString(e.text.noClassesAvailableText,"No classes are available."),e.text.searchPropertiesPlaceHolderText=o.getAnyString(e.text.searchPropertiesPlaceHolderText,"Search properties..."),e.text.clearText=o.getAnyString(e.text.clearText,"Clear"),e.text.clearSymbolText=o.getAnyString(e.text.clearSymbolText,"✕"),e.text.noPropertiesFoundForSearchText=o.getAnyString(e.text.noPropertiesFoundForSearchText,"No properties were found for your search."),e.text.dialogMovedSymbolText=o.getAnyString(e.text.dialogMovedSymbolText,"✸"),e.text.propertyValuePlaceHolderText=o.getAnyString(e.text.propertyValuePlaceHolderText,"Enter value..."),e.text.modeNotSupportedText=o.getAnyString(e.text.modeNotSupportedText,"The mode you have specified is not supported."),e.text.unknownModeText=o.getAnyString(e.text.unknownModeText,"Unknown Mode"),e.text.moveUpText=o.getAnyString(e.text.moveUpText,"Move Up"),e.text.moveUpSymbolText=o.getAnyString(e.text.moveUpSymbolText,"↑"),e.text.moveDownText=o.getAnyString(e.text.moveDownText,"Move Down"),e.text.moveDownSymbolText=o.getAnyString(e.text.moveDownSymbolText,"↓"),e.text.removeElementSymbolText=o.getAnyString(e.text.removeElementSymbolText,"⌫"),e.text.lockText=o.getAnyString(e.text.lockText,"Lock"),e}(t),t}})(r||(r={})),(e=>{let t;(t=e.Options||(e.Options={})).get=function(e){let t=o.getObject(e,{});return t.nodeType=o.getStringOrArray(t.nodeType,[]),t.mode=o.getNumber(t.mode,1),t.titleText=o.getString(t.titleText,""),t.showOnly=o.getStringOrArray(t.showOnly,[]),t.allowEditing=o.getBoolean(t.allowEditing,!1),t.showIdOrNameInTitle=o.getBoolean(t.showIdOrNameInTitle,!0),t.showNodeNameInTitle=o.getBoolean(t.showNodeNameInTitle,!1),t.ignoreValues=o.getStringOrArray(t.ignoreValues,[]),t.showLockButtonInTitle=o.getBoolean(t.showLockButtonInTitle,!0),t}})(i||(i={})),(()=>{let o={},l=null,s=null,a=null,c=null,u=null,d=0,p=null,x=null,f=null,g=null,y=null,m=null,T=null,v=0,b=null,h=[],S={},A=null,L=!1,w=0,E=0,N=null,O=0,M=0,H=!1,P=0,k=0;function C(){e.definedObject(l)&&(D(),document.body.removeChild(l),l=null),l=n.create(document.body,"div","peek-js"),l.onmousemove=n.cancelBubble,s=n.create(l,"div","dialog-title-bar"),c=n.create(l,"div","dialog-search"),p=n.create(l,"div","dialog-contents"),f=n.create(l,"div","dialog-buttons"),g=n.createWithHTML(f,"button","copy",o.text.copyText),g.onclick=I,u=n.create(c,"input"),u.placeholder=o.text.searchPropertiesPlaceHolderText,u.type="text",u.onkeyup=j,u.onpaste=j,u.onfocus=()=>u.select();const t=n.createWithHTML(c,"button","clear-small",o.text.clearSymbolText);t.title=o.text.clearText,t.onclick=_;var r,i;n.createWithHTML(f,"button","close",o.text.closeText).onclick=D,y=n.createWithHTML(f,"button","remove",o.text.removeElementSymbolText),y.onclick=$,y.title=o.text.removeText,m=n.createWithHTML(f,"button","move-up",o.text.moveUpSymbolText),m.onclick=R,m.title=o.text.moveUpText,T=n.createWithHTML(f,"button","move-down",o.text.moveDownSymbolText),T.onclick=U,T.title=o.text.moveDownText,i=l,(r=s).onmousedown=e=>{!function(e,t){H||(N=t,H=!0,P=e.pageX-N.offsetLeft,k=e.pageY-N.offsetTop,O=N.offsetLeft,M=N.offsetTop)}(e,i)},i.onmousemove=e=>{q(e,!0)},r.onmouseup=()=>{Y()},r.oncontextmenu=()=>{Y()},document.addEventListener("mousemove",q),document.addEventListener("mouseleave",Q)}function W(t=null){if(!L&&e.defined(b)){let r=b.titleText;if(s.innerHTML="",e.definedString(r)||(r=1===b.mode?o.text.cssText:2===b.mode?o.text.attributesText:3===b.mode?o.text.sizeText:4===b.mode?o.text.classesText:o.text.unknownModeText),n.createWithHTML(s,"span","title",r),w>1&&b.showNodeNameInTitle&&(n.createWithHTML(s,"span","dash"," - "),n.createWithHTML(s,"span","node-name",`[${t.nodeName.toLowerCase()}]`)),b.showIdOrNameInTitle&&e.defined(t)){const o=t.getAttribute("id"),r=t.getAttribute("name");e.definedString(o)?(n.createWithHTML(s,"span","dash"," - "),n.createWithHTML(s,"span","id-or-name",o)):e.definedString(r)&&(n.createWithHTML(s,"span","dash"," - "),n.createWithHTML(s,"span","id-or-name",r))}b.showLockButtonInTitle&&(a=n.createWithHTML(s,"button","lock",o.text.dialogMovedSymbolText),a.title=o.text.lockText,a.onclick=()=>B())}}function B(){L||(n.createWithHTML(s,"span","locked",`${o.text.dialogMovedSymbolText} `,!0),e.defined(a)&&(a.parentNode.removeChild(a),a=null),L=!0)}function D(){l.style.display="none",L=!1,u.value=""}function I(){const e=[];for(let t in S)S.hasOwnProperty(t)&&(1===b.mode?e.push(`${t}: ${S[t]};`):2===b.mode?e.push(`${t}="${S[t]}"`):4===b.mode&&e.push(S[t]));1===b.mode?navigator.clipboard.writeText(`${A.nodeName.toLowerCase()} { \n ${e.join("\n")} \n }`):2!==b.mode&&4!==b.mode||navigator.clipboard.writeText(e.join(" "))}function $(){A.parentNode.removeChild(A),D()}function j(){0!==d&&(clearTimeout(d),d=0),d=setTimeout((()=>{const t=p.getElementsByClassName("property-name"),n=[].slice.call(t),o=n.length,r=u.value.toLowerCase();let i=0;for(let t=0;t-1?(o.style.removeProperty("display"),i++):o.style.display="none"}}0===i?x.style.display="block":x.style.removeProperty("display")}),o.searchDelayDelay)}function _(){u.value="",u.focus(),j()}function R(){null!==A.parentNode&&null!==A.previousElementSibling&&A.parentNode.insertBefore(A,A.previousElementSibling)}function U(){null!==A.parentNode&&null!==A.nextElementSibling&&A.parentNode.insertBefore(A.nextElementSibling,A)}function V(t){e.defined(b)&&(p.innerHTML="",p.scrollTop=0,S={},E=0,A=t,W(t),1===b.mode||4===b.mode||2===b.mode?g.style.removeProperty("display"):g.style.display="none",b.allowEditing?(y.style.removeProperty("display"),m.style.removeProperty("display"),T.style.removeProperty("display")):(y.style.display="none",m.style.display="none",T.style.display="none"),x=n.createWithHTML(p,"span","no-search-results",o.text.noPropertiesFoundForSearchText),1===b.mode?function(e){const t=getComputedStyle(e),n=t.length;for(let o=0;o0){let t=1;for(let n of e.classList)F(e,t.toString(),n),t++}else p.innerHTML="",n.createWithHTML(p,"span","warning",o.text.noClassesAvailableText)}(t):n.createWithHTML(p,"span","warning",o.text.modeNotSupportedText),E<=15?c.style.display="none":c.style.removeProperty("display"))}function F(t,r,i,l=!0){if(function(e){return 0===b.showOnly.length||b.showOnly.indexOf(e)>-1}(r)&&function(e){return 0===b.ignoreValues.length||b.ignoreValues.indexOf(e)<=-1}(i)){const s=n.create(p,"div","property-row");n.createWithHTML(s,"div","property-name",r);const a=n.create(s,"div","property-value"),c=n.create(a,"input");(e.hexColor(i)||e.isRgbColor(i))&&(c.classList.add("property-value-color"),c.style.borderLeftColor=i),c.placeholder=o.text.propertyValuePlaceHolderText,c.onfocus=()=>c.select();const u=n.createWithHTML(s,"button","copy-small",o.text.copySymbolText);if(u.title=o.text.copyText,u.onclick=()=>navigator.clipboard.writeText(i),b.allowEditing&&l){const e=n.createWithHTML(s,"button","paste-small",o.text.pasteSymbolText),l=n.createWithHTML(s,"button","remove-small",o.text.removeSymbolText);e.title=o.text.pasteText,l.title=o.text.removeText,e.onclick=()=>function(e,t,n){navigator.clipboard.readText().then((o=>{t.value=o,z(e,n,t)}))}(t,c,r),l.onclick=()=>function(e,t,n,o){1===b.mode?(t.style.removeProperty(n),e.parentNode.removeChild(e)):2===b.mode?(t.removeAttribute(n),e.parentNode.removeChild(e)):4===b.mode&&(t.classList.remove(o),e.parentNode.removeChild(e))}(s,t,r,i)}c.type="text",c.value=i,S[r]=i,E++,b.allowEditing&&l?c.onkeyup=e=>function(e,t,n,o){"Enter"===e.code&&z(o,t,n)}(e,r,c,t):c.readOnly=!0}}function z(t,n,o){1===b.mode?t.style.setProperty(n,o.value):2===b.mode?t.setAttribute(n,o.value):4===b.mode&&t.classList.replace(t.classList[parseInt(n)-1],o.value),S[n]=o.value,e.hexColor(o.value)||e.isRgbColor(o.value)?(o.classList.add("property-value-color"),o.style.borderLeftColor=o.value):o.classList.remove("property-value-color")}function G(n){const o=n.getAttribute(t.PEEK_JS_IGNORE_STATE_ATTRIBUTE);e.definedString(o)||"ignore"===o||(n.addEventListener("mousemove",(e=>{J(e,n)})),h.push(n))}function J(t,r){!L&&e.defined(b)&&(n.cancelBubble(t),X(),v=setTimeout((()=>{V(r),n.showElementAtMousePosition(t,l)}),o.dialogDisplayDelay))}function K(){L||(X(),D())}function X(){0!==v&&(clearTimeout(v),v=0)}function Y(){H&&(H=!1,N=null,O=0,M=0)}function q(e,t=!1){t&&n.cancelBubble(e),H&&(B(),N.style.left=e.pageX-P+"px",N.style.top=e.pageY-k+"px")}function Q(){H&&(N.style.left=`${O}px`,N.style.top=`${M}px`,H=!1,N=null,O=0,M=0)}const Z={start:function(t){return e.definedObject(b)||(b=i.Options.get(t),W(),function(){const e=b.nodeType;w=e.length;for(let t=0;t{J(t,e)}))}h=[],window.removeEventListener("mousemove",K),D()}()),Z},close:function(){return D(),Z},setConfiguration:function(t){if(e.definedObject(t)){let n=!1;const i=o;for(let e in t)t.hasOwnProperty(e)&&o.hasOwnProperty(e)&&i[e]!==t[e]&&(i[e]=t[e],n=!0);n&&(o=r.Options.get(i),C(),e.definedObject(b)&&W())}return Z},getVersion:function(){return"1.8.0"}};o=r.Options.get(),document.addEventListener("DOMContentLoaded",(()=>{C()})),e.defined(window.$peek)||(window.$peek=Z)})(); \ No newline at end of file +"use strict";var e,t,n,o,r,i;(e=>{function t(e){return null!=e&&""!==e.toString()}function n(e){return t(e)&&"object"==typeof e}function o(e){return n(e)&&e instanceof Array}e.defined=t,e.definedObject=n,e.definedBoolean=function(e){return t(e)&&"boolean"==typeof e},e.definedString=function(e){return t(e)&&"string"==typeof e},e.definedFunction=function(e){return t(e)&&"function"==typeof e},e.definedNumber=function(e){return t(e)&&"number"==typeof e},e.definedArray=o,e.definedDate=function(e){return n(e)&&e instanceof Date},e.invalidOptionArray=function(e,t=1){return!o(e)||e.length=2&&e.length<=7;return t=!(!t||"#"!==e[0])&&isNaN(+e.substring(1,e.length-1)),t},e.isRgbColor=function(e){return e.startsWith("rgb")||e.startsWith("rgba")}})(e||(e={})),(t||(t={})).PEEK_JS_IGNORE_STATE_ATTRIBUTE="data-peek-js-ignore-state",(n=>{function o(n,o,r="",i=!1){const l=o.toLowerCase();let s="text"===l?document.createTextNode(""):document.createElement(l);return s.setAttribute(t.PEEK_JS_IGNORE_STATE_ATTRIBUTE,"ignore"),e.definedString(r)&&(s.className=r),i?n.insertBefore(s,n.children[0]):n.appendChild(s),s}function r(){const e=document.documentElement;return{left:e.scrollLeft-(e.clientLeft||0),top:e.scrollTop-(e.clientTop||0)}}n.create=o,n.createWithHTML=function(e,n,r,i,l=!1){const s=o(e,n,r,l);return s.innerHTML=i,s.setAttribute(t.PEEK_JS_IGNORE_STATE_ATTRIBUTE,"ignore"),s},n.cancelBubble=function(e){e.preventDefault(),e.stopPropagation()},n.getScrollPosition=r,n.showElementAtMousePosition=function(e,t,n){if("block"!==t.style.display){let o=e.pageX,i=e.pageY;const l=r();t.style.display="block",o+t.offsetWidth>window.innerWidth?o-=t.offsetWidth+n:(o++,o+=n),i+t.offsetHeight>window.innerHeight?i-=t.offsetHeight+n:(i++,i+=n),o{function n(t,n){return e.definedArray(t)?t:n}t.getAnyString=function(e,t){return"string"==typeof e?e:t},t.getString=function(t,n){return e.definedString(t)?t:n},t.getBoolean=function(t,n){return e.definedBoolean(t)?t:n},t.getNumber=function(t,n){return e.definedNumber(t)?t:n},t.getArray=n,t.getObject=function(t,n){return e.definedObject(t)?t:n},t.getStringOrArray=function(t,o){let r=o;if(e.definedString(t)){const e=t.toString().split(" ");0===e.length?t=o:r=e}else r=n(t,o);return r}})(o||(o={})),(e=>{let t;(t=e.Options||(e.Options={})).get=function(e=null){let t=o.getObject(e,{});return t.dialogDisplayDelay=o.getNumber(t.dialogDisplayDelay,1e3),t.searchDelayDelay=o.getNumber(t.searchDelayDelay,500),t=function(e){return e.text=o.getObject(e.text,{}),e.text.cssText=o.getAnyString(e.text.cssText,"CSS"),e.text.attributesText=o.getAnyString(e.text.attributesText,"Attributes"),e.text.sizeText=o.getAnyString(e.text.sizeText,"Size"),e.text.classesText=o.getAnyString(e.text.classesText,"Classes"),e.text.noAttributesAvailableText=o.getAnyString(e.text.noAttributesAvailableText,"No attributes are available."),e.text.closeText=o.getAnyString(e.text.closeText,"Close"),e.text.copyText=o.getAnyString(e.text.copyText,"Copy"),e.text.copySymbolText=o.getAnyString(e.text.copySymbolText,"❐"),e.text.pasteText=o.getAnyString(e.text.pasteText,"Paste"),e.text.pasteSymbolText=o.getAnyString(e.text.pasteSymbolText,"☐"),e.text.removeText=o.getAnyString(e.text.removeText,"Remove"),e.text.removeSymbolText=o.getAnyString(e.text.removeSymbolText,"✕"),e.text.noClassesAvailableText=o.getAnyString(e.text.noClassesAvailableText,"No classes are available."),e.text.searchPropertiesPlaceHolderText=o.getAnyString(e.text.searchPropertiesPlaceHolderText,"Search properties..."),e.text.clearText=o.getAnyString(e.text.clearText,"Clear"),e.text.clearSymbolText=o.getAnyString(e.text.clearSymbolText,"✕"),e.text.noPropertiesFoundForSearchText=o.getAnyString(e.text.noPropertiesFoundForSearchText,"No properties were found for your search."),e.text.dialogMovedSymbolText=o.getAnyString(e.text.dialogMovedSymbolText,"✸"),e.text.propertyValuePlaceHolderText=o.getAnyString(e.text.propertyValuePlaceHolderText,"Enter value..."),e.text.modeNotSupportedText=o.getAnyString(e.text.modeNotSupportedText,"The mode you have specified is not supported."),e.text.unknownModeText=o.getAnyString(e.text.unknownModeText,"Unknown Mode"),e.text.moveUpText=o.getAnyString(e.text.moveUpText,"Move Up"),e.text.moveUpSymbolText=o.getAnyString(e.text.moveUpSymbolText,"↑"),e.text.moveDownText=o.getAnyString(e.text.moveDownText,"Move Down"),e.text.moveDownSymbolText=o.getAnyString(e.text.moveDownSymbolText,"↓"),e.text.removeElementSymbolText=o.getAnyString(e.text.removeElementSymbolText,"⌫"),e.text.lockText=o.getAnyString(e.text.lockText,"Lock"),e}(t),t}})(r||(r={})),(e=>{let t;(t=e.Options||(e.Options={})).get=function(e){let t=o.getObject(e,{});return t.nodeType=o.getStringOrArray(t.nodeType,[]),t.mode=o.getNumber(t.mode,1),t.titleText=o.getString(t.titleText,""),t.showOnly=o.getStringOrArray(t.showOnly,[]),t.allowEditing=o.getBoolean(t.allowEditing,!1),t.showIdOrNameInTitle=o.getBoolean(t.showIdOrNameInTitle,!0),t.showNodeNameInTitle=o.getBoolean(t.showNodeNameInTitle,!1),t.ignoreValues=o.getStringOrArray(t.ignoreValues,[]),t.showLockButtonInTitle=o.getBoolean(t.showLockButtonInTitle,!0),t.dialogOffset=o.getNumber(t.dialogOffset,0),t}})(i||(i={})),(()=>{let o={},l=null,s=null,a=null,c=null,d=null,u=0,p=null,x=null,f=null,g=null,y=null,m=null,T=null,v=0,b=null,h=[],S={},A=null,L=!1,w=0,N=0,E=null,O=0,M=0,H=!1,P=0,k=0;function C(){e.definedObject(l)&&(D(),document.body.removeChild(l),l=null),l=n.create(document.body,"div","peek-js"),l.onmousemove=n.cancelBubble,s=n.create(l,"div","dialog-title-bar"),c=n.create(l,"div","dialog-search"),p=n.create(l,"div","dialog-contents"),f=n.create(l,"div","dialog-buttons"),g=n.createWithHTML(f,"button","copy",o.text.copyText),g.onclick=I,d=n.create(c,"input"),d.placeholder=o.text.searchPropertiesPlaceHolderText,d.type="text",d.onkeyup=j,d.onpaste=j,d.onfocus=()=>d.select();const t=n.createWithHTML(c,"button","clear-small",o.text.clearSymbolText);t.title=o.text.clearText,t.onclick=_;var r,i;n.createWithHTML(f,"button","close",o.text.closeText).onclick=D,y=n.createWithHTML(f,"button","remove",o.text.removeElementSymbolText),y.onclick=$,y.title=o.text.removeText,m=n.createWithHTML(f,"button","move-up",o.text.moveUpSymbolText),m.onclick=R,m.title=o.text.moveUpText,T=n.createWithHTML(f,"button","move-down",o.text.moveDownSymbolText),T.onclick=U,T.title=o.text.moveDownText,i=l,(r=s).onmousedown=e=>{!function(e,t){H||(E=t,H=!0,P=e.pageX-E.offsetLeft,k=e.pageY-E.offsetTop,O=E.offsetLeft,M=E.offsetTop)}(e,i)},i.onmousemove=e=>{q(e,!0)},r.onmouseup=()=>{Y()},r.oncontextmenu=()=>{Y()},document.addEventListener("mousemove",q),document.addEventListener("mouseleave",Q)}function W(t=null){if(!L&&e.defined(b)){let r=b.titleText;if(s.innerHTML="",e.definedString(r)||(r=1===b.mode?o.text.cssText:2===b.mode?o.text.attributesText:3===b.mode?o.text.sizeText:4===b.mode?o.text.classesText:o.text.unknownModeText),n.createWithHTML(s,"span","title",r),w>1&&b.showNodeNameInTitle&&(n.createWithHTML(s,"span","dash"," - "),n.createWithHTML(s,"span","node-name",`[${t.nodeName.toLowerCase()}]`)),b.showIdOrNameInTitle&&e.defined(t)){const o=t.getAttribute("id"),r=t.getAttribute("name");e.definedString(o)?(n.createWithHTML(s,"span","dash"," - "),n.createWithHTML(s,"span","id-or-name",o)):e.definedString(r)&&(n.createWithHTML(s,"span","dash"," - "),n.createWithHTML(s,"span","id-or-name",r))}b.showLockButtonInTitle&&(a=n.createWithHTML(s,"button","lock",o.text.dialogMovedSymbolText),a.title=o.text.lockText,a.onclick=()=>B())}}function B(){L||(n.createWithHTML(s,"span","locked",`${o.text.dialogMovedSymbolText} `,!0),e.defined(a)&&(a.parentNode.removeChild(a),a=null),L=!0)}function D(){l.style.display="none",L=!1,d.value=""}function I(){const e=[];for(let t in S)S.hasOwnProperty(t)&&(1===b.mode?e.push(`${t}: ${S[t]};`):2===b.mode?e.push(`${t}="${S[t]}"`):4===b.mode&&e.push(S[t]));1===b.mode?navigator.clipboard.writeText(`${A.nodeName.toLowerCase()} { \n ${e.join("\n")} \n }`):2!==b.mode&&4!==b.mode||navigator.clipboard.writeText(e.join(" "))}function $(){A.parentNode.removeChild(A),D()}function j(){0!==u&&(clearTimeout(u),u=0),u=setTimeout((()=>{const t=p.getElementsByClassName("property-name"),n=[].slice.call(t),o=n.length,r=d.value.toLowerCase();let i=0;for(let t=0;t-1?(o.style.removeProperty("display"),i++):o.style.display="none"}}0===i?x.style.display="block":x.style.removeProperty("display")}),o.searchDelayDelay)}function _(){d.value="",d.focus(),j()}function R(){null!==A.parentNode&&null!==A.previousElementSibling&&A.parentNode.insertBefore(A,A.previousElementSibling)}function U(){null!==A.parentNode&&null!==A.nextElementSibling&&A.parentNode.insertBefore(A.nextElementSibling,A)}function V(t){e.defined(b)&&(p.innerHTML="",p.scrollTop=0,S={},N=0,A=t,W(t),1===b.mode||4===b.mode||2===b.mode?g.style.removeProperty("display"):g.style.display="none",b.allowEditing?(y.style.removeProperty("display"),m.style.removeProperty("display"),T.style.removeProperty("display")):(y.style.display="none",m.style.display="none",T.style.display="none"),x=n.createWithHTML(p,"span","no-search-results",o.text.noPropertiesFoundForSearchText),1===b.mode?function(e){const t=getComputedStyle(e),n=t.length;for(let o=0;o0){let t=1;for(let n of e.classList)F(e,t.toString(),n),t++}else p.innerHTML="",n.createWithHTML(p,"span","warning",o.text.noClassesAvailableText)}(t):n.createWithHTML(p,"span","warning",o.text.modeNotSupportedText),N<=15?c.style.display="none":c.style.removeProperty("display"))}function F(t,r,i,l=!0){if(function(e){return 0===b.showOnly.length||b.showOnly.indexOf(e)>-1}(r)&&function(e){return 0===b.ignoreValues.length||b.ignoreValues.indexOf(e)<=-1}(i)){const s=n.create(p,"div","property-row");n.createWithHTML(s,"div","property-name",r);const a=n.create(s,"div","property-value"),c=n.create(a,"input");(e.hexColor(i)||e.isRgbColor(i))&&(c.classList.add("property-value-color"),c.style.borderLeftColor=i),c.placeholder=o.text.propertyValuePlaceHolderText,c.onfocus=()=>c.select();const d=n.createWithHTML(s,"button","copy-small",o.text.copySymbolText);if(d.title=o.text.copyText,d.onclick=()=>navigator.clipboard.writeText(i),b.allowEditing&&l){const e=n.createWithHTML(s,"button","paste-small",o.text.pasteSymbolText),l=n.createWithHTML(s,"button","remove-small",o.text.removeSymbolText);e.title=o.text.pasteText,l.title=o.text.removeText,e.onclick=()=>function(e,t,n){navigator.clipboard.readText().then((o=>{t.value=o,z(e,n,t)}))}(t,c,r),l.onclick=()=>function(e,t,n,o){1===b.mode?(t.style.removeProperty(n),e.parentNode.removeChild(e)):2===b.mode?(t.removeAttribute(n),e.parentNode.removeChild(e)):4===b.mode&&(t.classList.remove(o),e.parentNode.removeChild(e))}(s,t,r,i)}c.type="text",c.value=i,S[r]=i,N++,b.allowEditing&&l?c.onkeyup=e=>function(e,t,n,o){"Enter"===e.code&&z(o,t,n)}(e,r,c,t):c.readOnly=!0}}function z(t,n,o){1===b.mode?t.style.setProperty(n,o.value):2===b.mode?t.setAttribute(n,o.value):4===b.mode&&t.classList.replace(t.classList[parseInt(n)-1],o.value),S[n]=o.value,e.hexColor(o.value)||e.isRgbColor(o.value)?(o.classList.add("property-value-color"),o.style.borderLeftColor=o.value):o.classList.remove("property-value-color")}function G(n){const o=n.getAttribute(t.PEEK_JS_IGNORE_STATE_ATTRIBUTE);e.definedString(o)||"ignore"===o||(n.addEventListener("mousemove",(e=>{J(e,n)})),h.push(n))}function J(t,r){!L&&e.defined(b)&&(n.cancelBubble(t),X(),v=setTimeout((()=>{V(r),n.showElementAtMousePosition(t,l,b.dialogOffset)}),o.dialogDisplayDelay))}function K(){L||(X(),D())}function X(){0!==v&&(clearTimeout(v),v=0)}function Y(){H&&(H=!1,E=null,O=0,M=0)}function q(e,t=!1){t&&n.cancelBubble(e),H&&(B(),E.style.left=e.pageX-P+"px",E.style.top=e.pageY-k+"px")}function Q(){H&&(E.style.left=`${O}px`,E.style.top=`${M}px`,H=!1,E=null,O=0,M=0)}const Z={start:function(t){return e.definedObject(b)||(b=i.Options.get(t),W(),function(){const e=b.nodeType;w=e.length;for(let t=0;t{J(t,e)}))}h=[],window.removeEventListener("mousemove",K),D()}()),Z},close:function(){return D(),Z},setConfiguration:function(t){if(e.definedObject(t)){let n=!1;const i=o;for(let e in t)t.hasOwnProperty(e)&&o.hasOwnProperty(e)&&i[e]!==t[e]&&(i[e]=t[e],n=!0);n&&(o=r.Options.get(i),C(),e.definedObject(b)&&W())}return Z},getVersion:function(){return"1.8.0"}};o=r.Options.get(),document.addEventListener("DOMContentLoaded",(()=>{C()})),e.defined(window.$peek)||(window.$peek=Z)})(); \ No newline at end of file diff --git a/docs/CHANGE_LOG.md b/docs/CHANGE_LOG.md index 37d547d..55e1f80 100755 --- a/docs/CHANGE_LOG.md +++ b/docs/CHANGE_LOG.md @@ -2,11 +2,17 @@ ## Version 1.8.0: +#### **Start Options:** +- Added a start option "offset" (defaults to 0), which states the additional offset to use for the dialogs position. + #### **Adjustments:** - Moved from ES2016 to ES2020. - Updated to the latest NPM packages. - Added an ignore path for ".DS_Store" files when packing the NuGet package. +#### **Fixes:** +- Fixed missing documentation in the "options/OPTIONS.md". + ## Version 1.7.0: diff --git a/docs/options/OPTIONS.md b/docs/options/OPTIONS.md index 2f39ed9..c761617 100755 --- a/docs/options/OPTIONS.md +++ b/docs/options/OPTIONS.md @@ -16,6 +16,8 @@ Below are all the options that can be passed to the "start()" public function. | *boolean* | showIdOrNameInTitle | States if showing the Name/ID of the element in the title of the dialog is enabled (defaults to true). | | *boolean* | showNodeNameInTitle | States if the node type should be shown in the title (if more than one is being used. Defaults to false). | | *string[]* | ignoreValues | States the property values that only should be ignored (defaults to []). | +| *boolean* | showLockButtonInTitle | States if the lock symbol button should be shown in the title when the dialog is moved (defaults to true). | +| *number* | offset | States the additional offset to use for the dialog position (defaults to 0). |
diff --git a/src/peek.ts b/src/peek.ts index bfcc09d..626f41c 100644 --- a/src/peek.ts +++ b/src/peek.ts @@ -545,7 +545,7 @@ type DialogProperties = Record; _dialog_TimerId = setTimeout( () => { buildDialogContent( element ); - DomElement.showElementAtMousePosition( e, _dialog ); + DomElement.showElementAtMousePosition( e, _dialog, _current_Process_Options.dialogOffset! ); }, _configuration.dialogDisplayDelay ); } } diff --git a/src/ts/dom/dom.ts b/src/ts/dom/dom.ts index 3d90ce6..e78bf73 100644 --- a/src/ts/dom/dom.ts +++ b/src/ts/dom/dom.ts @@ -63,7 +63,7 @@ export namespace DomElement { return result; } - export function showElementAtMousePosition( e: MouseEvent, element: HTMLElement ) : void { + export function showElementAtMousePosition( e: MouseEvent, element: HTMLElement, offset: number ) : void { if ( element.style.display !== "block" ) { let left: number = e.pageX; let top: number = e.pageY; @@ -72,15 +72,17 @@ export namespace DomElement { element.style.display = "block"; if ( left + element.offsetWidth > window.innerWidth ) { - left -= element.offsetWidth; + left -= ( element.offsetWidth + offset ); } else { left++; + left += offset; } if ( top + element.offsetHeight > window.innerHeight ) { - top -= element.offsetHeight; + top -= ( element.offsetHeight + offset ); } else { top++; + top += offset; } if ( left < scrollPosition.left ) { diff --git a/src/ts/options/options.ts b/src/ts/options/options.ts index 570c30d..cb76593 100644 --- a/src/ts/options/options.ts +++ b/src/ts/options/options.ts @@ -29,6 +29,7 @@ export namespace Start { options.showNodeNameInTitle = Default.getBoolean( options.showNodeNameInTitle, false ); options.ignoreValues = Default.getStringOrArray( options.ignoreValues, [] ); options.showLockButtonInTitle = Default.getBoolean( options.showLockButtonInTitle, true ); + options.dialogOffset = Default.getNumber( options.dialogOffset, 0 ); return options; } diff --git a/src/ts/type.ts b/src/ts/type.ts index b869ca5..7dc05b9 100644 --- a/src/ts/type.ts +++ b/src/ts/type.ts @@ -62,4 +62,5 @@ export type StartOptions = { showNodeNameInTitle?: boolean; ignoreValues?: string[] | string; showLockButtonInTitle?: boolean; + dialogOffset?: number; }; \ No newline at end of file From 3e547735bc46b4fa361af3e8847c4108a08e1b40 Mon Sep 17 00:00:00 2001 From: William Troup Date: Wed, 4 Sep 2024 22:22:30 +0100 Subject: [PATCH 07/14] Fixed change log. --- docs/CHANGE_LOG.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/CHANGE_LOG.md b/docs/CHANGE_LOG.md index 55e1f80..0709c78 100755 --- a/docs/CHANGE_LOG.md +++ b/docs/CHANGE_LOG.md @@ -17,7 +17,7 @@ ## Version 1.7.0: #### **Start Options:** -- Added a start option "ignore" (defaults to "[]"), which states the property values that only should be ignored. +- Added a start option "ignoreValues" (defaults to "[]"), which states the property values that only should be ignored. - Added start option "showLockButtonInTitle" (defaults to true), which states if the lock button should be shown in the title bar. #### **Configuration Options:** From df6d2f7b6b3a6228c9c3dd98cb58ba211ea5f777 Mon Sep 17 00:00:00 2001 From: William Troup Date: Wed, 4 Sep 2024 22:27:48 +0100 Subject: [PATCH 08/14] Renamed configuration options. --- dist/peek.esm.js | 228 +++++++++++++++++----------------- dist/peek.esm.js.map | 2 +- dist/peek.js | 228 +++++++++++++++++----------------- dist/peek.js.map | 2 +- dist/peek.min.js | 2 +- docs/CHANGE_LOG.md | 4 + docs/configuration/OPTIONS.md | 4 +- src/peek.ts | 4 +- src/ts/options/config.ts | 4 +- src/ts/type.ts | 4 +- 10 files changed, 243 insertions(+), 239 deletions(-) diff --git a/dist/peek.esm.js b/dist/peek.esm.js index 9b82a54..91ea433 100644 --- a/dist/peek.esm.js +++ b/dist/peek.esm.js @@ -13,14 +13,14 @@ var e; return t(e) && typeof e === "boolean"; } e.definedBoolean = o; - function l(e) { + function i(e) { return t(e) && typeof e === "string"; } - e.definedString = l; - function i(e) { + e.definedString = i; + function l(e) { return t(e) && typeof e === "function"; } - e.definedFunction = i; + e.definedFunction = l; function r(e) { return t(e) && typeof e === "number"; } @@ -62,15 +62,15 @@ var t; var n; (n => { - function o(n, o, l = "", i = false) { + function o(n, o, i = "", l = false) { const r = o.toLowerCase(); const s = r === "text"; let a = s ? document.createTextNode("") : document.createElement(r); a.setAttribute(t.PEEK_JS_IGNORE_STATE_ATTRIBUTE, "ignore"); - if (e.definedString(l)) { - a.className = l; + if (e.definedString(i)) { + a.className = i; } - if (!i) { + if (!l) { n.appendChild(a); } else { n.insertBefore(a, n.children[0]); @@ -78,18 +78,18 @@ var n; return a; } n.create = o; - function l(e, n, l, i, r = false) { - const s = o(e, n, l, r); - s.innerHTML = i; + function i(e, n, i, l, r = false) { + const s = o(e, n, i, r); + s.innerHTML = l; s.setAttribute(t.PEEK_JS_IGNORE_STATE_ATTRIBUTE, "ignore"); return s; } - n.createWithHTML = l; - function i(e) { + n.createWithHTML = i; + function l(e) { e.preventDefault(); e.stopPropagation(); } - n.cancelBubble = i; + n.cancelBubble = l; function r() { const e = document.documentElement; const t = { @@ -102,8 +102,8 @@ var n; function s(e, t, n) { if (t.style.display !== "block") { let o = e.pageX; - let l = e.pageY; - const i = r(); + let i = e.pageY; + const l = r(); t.style.display = "block"; if (o + t.offsetWidth > window.innerWidth) { o -= t.offsetWidth + n; @@ -111,20 +111,20 @@ var n; o++; o += n; } - if (l + t.offsetHeight > window.innerHeight) { - l -= t.offsetHeight + n; + if (i + t.offsetHeight > window.innerHeight) { + i -= t.offsetHeight + n; } else { - l++; - l += n; + i++; + i += n; } - if (o < i.left) { + if (o < l.left) { o = e.pageX + 1; } - if (l < i.top) { - l = e.pageY + 1; + if (i < l.top) { + i = e.pageY + 1; } t.style.left = `${o}px`; - t.style.top = `${l}px`; + t.style.top = `${i}px`; } } n.showElementAtMousePosition = s; @@ -154,14 +154,14 @@ var o; return e.definedString(t) ? t : n; } t.getString = o; - function l(t, n) { + function i(t, n) { return e.definedBoolean(t) ? t : n; } - t.getBoolean = l; - function i(t, n) { + t.getBoolean = i; + function l(t, n) { return e.definedNumber(t) ? t : n; } - t.getNumber = i; + t.getNumber = l; function r(t, n) { return e.definedArray(t) ? t : n; } @@ -187,15 +187,15 @@ var o; t.getStringOrArray = a; })(o || (o = {})); -var l; +var i; (e => { let t; (e => { function t(e = null) { let t = o.getObject(e, {}); - t.dialogDisplayDelay = o.getNumber(t.dialogDisplayDelay, 1e3); - t.searchDelayDelay = o.getNumber(t.searchDelayDelay, 500); + t.dialogShowDelay = o.getNumber(t.dialogShowDelay, 1e3); + t.searchDelay = o.getNumber(t.searchDelay, 500); t = n(t); return t; } @@ -232,9 +232,9 @@ var l; return e; } })(t = e.Options || (e.Options = {})); -})(l || (l = {})); +})(i || (i = {})); -var i; +var l; (e => { let t; @@ -255,7 +255,7 @@ var i; } e.get = t; })(t = e.Options || (e.Options = {})); -})(i || (i = {})); +})(l || (l = {})); (() => { let o = {}; @@ -269,15 +269,15 @@ var i; let p = null; let x = null; let g = null; - let y = null; let m = null; + let y = null; let T = null; let v = 0; let b = null; let h = []; let S = {}; - let A = null; - let w = false; + let w = null; + let A = false; let L = 0; let N = 0; let E = null; @@ -288,7 +288,7 @@ var i; let k = 0; function C() { if (e.definedObject(r)) { - D(); + $(); document.body.removeChild(r); r = null; } @@ -299,7 +299,7 @@ var i; d = n.create(r, "div", "dialog-contents"); x = n.create(r, "div", "dialog-buttons"); g = n.createWithHTML(x, "button", "copy", o.text.copyText); - g.onclick = $; + g.onclick = I; f = n.create(c, "input"); f.placeholder = o.text.searchPropertiesPlaceHolderText; f.type = "text"; @@ -309,50 +309,50 @@ var i; const t = n.createWithHTML(c, "button", "clear-small", o.text.clearSymbolText); t.title = o.text.clearText; t.onclick = _; - const l = n.createWithHTML(x, "button", "close", o.text.closeText); - l.onclick = D; - y = n.createWithHTML(x, "button", "remove", o.text.removeElementSymbolText); - y.onclick = I; - y.title = o.text.removeText; - m = n.createWithHTML(x, "button", "move-up", o.text.moveUpSymbolText); - m.onclick = R; - m.title = o.text.moveUpText; + const i = n.createWithHTML(x, "button", "close", o.text.closeText); + i.onclick = $; + m = n.createWithHTML(x, "button", "remove", o.text.removeElementSymbolText); + m.onclick = D; + m.title = o.text.removeText; + y = n.createWithHTML(x, "button", "move-up", o.text.moveUpSymbolText); + y.onclick = R; + y.title = o.text.moveUpText; T = n.createWithHTML(x, "button", "move-down", o.text.moveDownSymbolText); T.onclick = U; T.title = o.text.moveDownText; se(s, r); } function W(t = null) { - if (!w && e.defined(b)) { - let l = b.titleText; + if (!A && e.defined(b)) { + let i = b.titleText; s.innerHTML = ""; - if (!e.definedString(l)) { + if (!e.definedString(i)) { if (b.mode === 1) { - l = o.text.cssText; + i = o.text.cssText; } else if (b.mode === 2) { - l = o.text.attributesText; + i = o.text.attributesText; } else if (b.mode === 3) { - l = o.text.sizeText; + i = o.text.sizeText; } else if (b.mode === 4) { - l = o.text.classesText; + i = o.text.classesText; } else { - l = o.text.unknownModeText; + i = o.text.unknownModeText; } } - n.createWithHTML(s, "span", "title", l); + n.createWithHTML(s, "span", "title", i); if (L > 1 && b.showNodeNameInTitle) { n.createWithHTML(s, "span", "dash", " - "); n.createWithHTML(s, "span", "node-name", `[${t.nodeName.toLowerCase()}]`); } if (b.showIdOrNameInTitle && e.defined(t)) { const o = t.getAttribute("id"); - const l = t.getAttribute("name"); + const i = t.getAttribute("name"); if (e.definedString(o)) { n.createWithHTML(s, "span", "dash", " - "); n.createWithHTML(s, "span", "id-or-name", o); - } else if (e.definedString(l)) { + } else if (e.definedString(i)) { n.createWithHTML(s, "span", "dash", " - "); - n.createWithHTML(s, "span", "id-or-name", l); + n.createWithHTML(s, "span", "id-or-name", i); } } if (b.showLockButtonInTitle) { @@ -363,21 +363,21 @@ var i; } } function B() { - if (!w) { + if (!A) { n.createWithHTML(s, "span", "locked", `${o.text.dialogMovedSymbolText}${" "}`, true); if (e.defined(a)) { a.parentNode.removeChild(a); a = null; } - w = true; + A = true; } } - function D() { + function $() { r.style.display = "none"; - w = false; + A = false; f.value = ""; } - function $() { + function I() { const e = []; for (let t in S) { if (S.hasOwnProperty(t)) { @@ -391,14 +391,14 @@ var i; } } if (b.mode === 1) { - navigator.clipboard.writeText(`${A.nodeName.toLowerCase()} { ${"\n"} ${e.join("\n")} ${"\n"} }`); + navigator.clipboard.writeText(`${w.nodeName.toLowerCase()} { ${"\n"} ${e.join("\n")} ${"\n"} }`); } else if (b.mode === 2 || b.mode === 4) { navigator.clipboard.writeText(e.join(" ")); } } - function I() { - A.parentNode.removeChild(A); - D(); + function D() { + w.parentNode.removeChild(w); + $(); } function j() { if (u !== 0) { @@ -409,31 +409,31 @@ var i; const t = d.getElementsByClassName("property-name"); const n = [].slice.call(t); const o = n.length; - const l = f.value.toLowerCase(); - let i = 0; + const i = f.value.toLowerCase(); + let l = 0; for (let t = 0; t < o; t++) { const o = n[t].parentNode; if (e.defined(o)) { if (f.value.trim() === "") { o.style.removeProperty("display"); - i++; + l++; } else { const e = n[t].innerText; - if (e.toLowerCase().indexOf(l) > -1) { + if (e.toLowerCase().indexOf(i) > -1) { o.style.removeProperty("display"); - i++; + l++; } else { o.style.display = "none"; } } } } - if (i === 0) { + if (l === 0) { p.style.display = "block"; } else { p.style.removeProperty("display"); } - }), o.searchDelayDelay); + }), o.searchDelay); } function _() { f.value = ""; @@ -441,13 +441,13 @@ var i; j(); } function R() { - if (A.parentNode !== null && A.previousElementSibling !== null) { - A.parentNode.insertBefore(A, A.previousElementSibling); + if (w.parentNode !== null && w.previousElementSibling !== null) { + w.parentNode.insertBefore(w, w.previousElementSibling); } } function U() { - if (A.parentNode !== null && A.nextElementSibling !== null) { - A.parentNode.insertBefore(A.nextElementSibling, A); + if (w.parentNode !== null && w.nextElementSibling !== null) { + w.parentNode.insertBefore(w.nextElementSibling, w); } } function V(t) { @@ -456,7 +456,7 @@ var i; d.scrollTop = 0; S = {}; N = 0; - A = t; + w = t; W(t); if (b.mode === 1 || b.mode === 4 || b.mode === 2) { g.style.removeProperty("display"); @@ -464,12 +464,12 @@ var i; g.style.display = "none"; } if (!b.allowEditing) { - y.style.display = "none"; m.style.display = "none"; + y.style.display = "none"; T.style.display = "none"; } else { - y.style.removeProperty("display"); m.style.removeProperty("display"); + y.style.removeProperty("display"); T.style.removeProperty("display"); } p = n.createWithHTML(d, "span", "no-search-results", o.text.noPropertiesFoundForSearchText); @@ -527,37 +527,37 @@ var i; n.createWithHTML(d, "span", "warning", o.text.noClassesAvailableText); } } - function K(t, l, i, r = true) { - if (Z(l) && ee(i)) { + function K(t, i, l, r = true) { + if (Z(i) && ee(l)) { const s = n.create(d, "div", "property-row"); - n.createWithHTML(s, "div", "property-name", l); + n.createWithHTML(s, "div", "property-name", i); const a = n.create(s, "div", "property-value"); const c = n.create(a, "input"); - if (e.hexColor(i) || e.isRgbColor(i)) { + if (e.hexColor(l) || e.isRgbColor(l)) { c.classList.add("property-value-color"); - c.style.borderLeftColor = i; + c.style.borderLeftColor = l; } c.placeholder = o.text.propertyValuePlaceHolderText; c.onfocus = () => c.select(); const f = n.createWithHTML(s, "button", "copy-small", o.text.copySymbolText); f.title = o.text.copyText; - f.onclick = () => navigator.clipboard.writeText(i); + f.onclick = () => navigator.clipboard.writeText(l); if (b.allowEditing && r) { const e = n.createWithHTML(s, "button", "paste-small", o.text.pasteSymbolText); const r = n.createWithHTML(s, "button", "remove-small", o.text.removeSymbolText); e.title = o.text.pasteText; r.title = o.text.removeText; - e.onclick = () => X(t, c, l); - r.onclick = () => Y(s, t, l, i); + e.onclick = () => X(t, c, i); + r.onclick = () => Y(s, t, i, l); } c.type = "text"; - c.value = i; - S[l] = i; + c.value = l; + S[i] = l; N++; if (!b.allowEditing || !r) { c.readOnly = true; } else { - c.onkeyup = e => q(e, l, c, t); + c.onkeyup = e => q(e, i, c, t); } } } @@ -612,18 +612,18 @@ var i; for (let t = 0; t < L; t++) { const n = document.getElementsByTagName(e[t]); const o = [].slice.call(n); - const l = o.length; - for (let e = 0; e < l; e++) { + const i = o.length; + for (let e = 0; e < i; e++) { ne(o[e]); } } - window.addEventListener("mousemove", ie); + window.addEventListener("mousemove", le); } function ne(n) { const o = n.getAttribute(t.PEEK_JS_IGNORE_STATE_ATTRIBUTE); if (!e.definedString(o) && o !== "ignore") { n.addEventListener("mousemove", (e => { - le(e, n); + ie(e, n); })); h.push(n); } @@ -633,27 +633,27 @@ var i; for (let t = 0; t < e; t++) { const e = h[t]; e.removeEventListener("mousemove", (t => { - le(t, e); + ie(t, e); })); } h = []; - window.removeEventListener("mousemove", ie); - D(); + window.removeEventListener("mousemove", le); + $(); } - function le(t, l) { - if (!w && e.defined(b)) { + function ie(t, i) { + if (!A && e.defined(b)) { n.cancelBubble(t); re(); v = setTimeout((() => { - V(l); + V(i); n.showElementAtMousePosition(t, r, b.dialogOffset); - }), o.dialogDisplayDelay); + }), o.dialogShowDelay); } } - function ie() { - if (!w) { + function le() { + if (!A) { re(); - D(); + $(); } } function re() { @@ -719,7 +719,7 @@ var i; const de = { start: function(t) { if (!e.definedObject(b)) { - b = i.Options.get(t); + b = l.Options.get(t); W(); te(); } @@ -734,21 +734,21 @@ var i; return de; }, close: function() { - D(); + $(); return de; }, setConfiguration: function(t) { if (e.definedObject(t)) { let n = false; - const i = o; + const l = o; for (let e in t) { - if (t.hasOwnProperty(e) && o.hasOwnProperty(e) && i[e] !== t[e]) { - i[e] = t[e]; + if (t.hasOwnProperty(e) && o.hasOwnProperty(e) && l[e] !== t[e]) { + l[e] = t[e]; n = true; } } if (n) { - o = l.Options.get(i); + o = i.Options.get(l); C(); if (e.definedObject(b)) { W(); @@ -762,7 +762,7 @@ var i; } }; (() => { - o = l.Options.get(); + o = i.Options.get(); document.addEventListener("DOMContentLoaded", (() => { C(); })); diff --git a/dist/peek.esm.js.map b/dist/peek.esm.js.map index 777ad30..f238fb1 100644 --- a/dist/peek.esm.js.map +++ b/dist/peek.esm.js.map @@ -1 +1 @@ -{"version":3,"sources":["/Users/williamtroup/Documents/GitHub%20Repos/Peek.js/dist/peek.esm.js"],"names":["Is","Is2","defined","value","toString","definedObject","object","definedBoolean","definedString","definedFunction","definedNumber","definedArray","Array","definedDate","Date","invalidOptionArray","array","minimumLength","length","hexColor","valid","isNaN","substring","isRgbColor","startsWith","Constant","Constant2","PEEK_JS_IGNORE_STATE_ATTRIBUTE","DomElement","DomElement2","create","container","type","className","insertAtStart","nodeType","toLowerCase","isText","result","document","createTextNode","createElement","setAttribute","appendChild","insertBefore","children","createWithHTML","html","element","innerHTML","cancelBubble","e","preventDefault","stopPropagation","getScrollPosition","documentElement","left","scrollLeft","clientLeft","top","scrollTop","clientTop","showElementAtMousePosition","offset","style","display","pageX","pageY","scrollPosition","offsetWidth","window","innerWidth","offsetHeight","innerHeight","getOffset","offsetLeft","offsetTop","offsetParent","Default","Default2","getAnyString","defaultValue","getString","getBoolean","getNumber","getArray","getObject","getStringOrArray","values","split","Config","Config2","Options","Options2","get","newConfiguration","configuration","dialogDisplayDelay","searchDelayDelay","getText","text","cssText","attributesText","sizeText","classesText","noAttributesAvailableText","closeText","copyText","copySymbolText","pasteText","pasteSymbolText","removeText","removeSymbolText","noClassesAvailableText","searchPropertiesPlaceHolderText","clearText","clearSymbolText","noPropertiesFoundForSearchText","dialogMovedSymbolText","propertyValuePlaceHolderText","modeNotSupportedText","unknownModeText","moveUpText","moveUpSymbolText","moveDownText","moveDownSymbolText","removeElementSymbolText","lockText","Start","Start2","newOptions","options","mode","titleText","showOnly","allowEditing","showIdOrNameInTitle","showNodeNameInTitle","ignoreValues","showLockButtonInTitle","dialogOffset","_configuration","_dialog","_dialog_Title","_dialog_Title_Button_Lock","_dialog_Search","_dialog_Search_Input","_dialog_Search_Input_TimerId","_dialog_Contents","_dialog_Contents_NoSearchResultsText","_dialog_Buttons","_dialog_Buttons_Copy","_dialog_Buttons_Remove","_dialog_Buttons_MoveUp","_dialog_Buttons_MoveDown","_dialog_TimerId","_current_Process_Options","_current_Process_Elements","_current_Process_Properties","_current_Process_Element","_current_Process_Locked","_current_Process_NodeCount","_current_Process_Properties_Count","_element_Dialog_Move","_element_Dialog_Move_Original_X","_element_Dialog_Move_Original_Y","_element_Dialog_Move_IsMoving","_element_Dialog_Move_X","_element_Dialog_Move_Y","buildDialog","closeDialog","body","removeChild","onmousemove","onclick","onCopy","placeholder","onkeyup","onSearchProperties","onpaste","onfocus","select","removeButton","title","onSearchPropertiesClear","closeButton","onRemove","onMoveUp","onMoveDown","makeDialogMovable","setDialogTitle","nodeName","id","getAttribute","name","setDialogAsLocked","parentNode","lines","propertyName","hasOwnProperty","push","navigator","clipboard","writeText","join","clearTimeout","setTimeout","getElementsByClassName","propertyNames","slice","call","propertyNamesLength","searchValue","propertiesFound","propertyNameIndex","parent","trim","removeProperty","propertyNameText","innerText","indexOf","focus","previousElementSibling","nextElementSibling","buildDialogContent","buildCssProperties","buildAttributeProperties","buildSizeProperties","buildClassProperties","computedStyles","getComputedStyle","computedStylesLength","styleIndex","buildPropertyRow","getPropertyValue","hasAttributes","attribute","attributes","classList","index","propertyValueText","isPropertyVisible","isPropertyValueVisible","property","propertyValue","propertyValueInput","add","borderLeftColor","copyButton","pasteButton","onPropertyPaste","onPropertyRemove","readOnly","onPropertyValueKeyUp","readText","then","data","updatePropertyValue","removeAttribute","remove","input","code","setProperty","replace","parseInt","buildNodeEvents","tagTypes","tagTypeIndex","domElements","getElementsByTagName","elements","elementsLength","elementIndex","buildNodeEvent","addEventListener","onWindowMove","attributeValue","onNodeMouseOver","removeNodeEvents","currentProcessElementsLength","removeEventListener","clearDialogShowTimer","titleBar","dialog","onmousedown","onMoveTitleBarMouseDown","onMoveDocumentMouseMove","onmouseup","onMoveTitleBarMouseUp","oncontextmenu","onMoveDocumentMouseLeave","_public","start","stop","close","setConfiguration","configurationHasChanged","newInternalCon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C1DkG,IAA0B;AAC5B;AACF;gBACA,IAAIA,GAAyB;oBAC3B3J,IAAiBnD,EAAOE,QAAQE,IAAI2M;oBACpChI;oBACA,IAAIzK,EAAGK,cAAcuJ,IAA2B;wBAC9CkC;AACF;AACF;AACF;YACA,OAAOqG;AACT;QAMAO,YAAY;YACV,OAAO;AACT;;IAEF;QACE7J,IAAiBnD,EAAOE,QAAQE;QAChCvD,SAAS2O,iBAAiB,qBAAoB;YAC5CzG;AAAa;QAEf,KAAKzK,EAAGE,QAAQoE,OAAOqO,QAAQ;YAC7BrO,OAAOqO,QAAQR;AACjB;AACD,MARD;AASD,EAhhBD","sourcesContent":[null]} \ No newline at end of file +{"version":3,"sources":["/Users/williamtroup/Documents/GitHub%20Repos/Peek.js/dist/peek.esm.js"],"names":["Is","Is2","defined","value","toString","definedObject","object","definedBoolean","definedString","definedFunction","definedNumber","definedArray","Array","definedDate","Date","invalidOptionArray","array","minimumLength","length","hexColor","valid","isNaN","substring","isRgbColor","startsWith","Constant","Constant2","PEEK_JS_IGNORE_STATE_ATTRIBUTE","DomElement","DomElement2","create","container","type","className","insertAtStart","nodeType","toLowerCase","isText","result","document","createTextNode","createElement","setAttribute","appendChild","insertBefore","children","createWithHTML","html","element","innerHTML","cancelBubble","e","preventDefault","stopPropagation","getScrollPosition","documentElement","left","scrollLeft","clientLeft","top","scrollTop","clientTop","showElementAtMousePosition","offset","style","display","pageX","pageY","scrollPosition","offsetWidth","window","innerWidth","offsetHeight","innerHeight","getOffset","offsetLeft","offsetTop","offsetParent","Default","Default2","getAnyString","defaultValue","getString","getBoolean","getNumber","getArray","getObject","getStringOrArray","values","split","Config","Config2","Options","Options2","get","newConfiguration","configuration","dialogShowDelay","searchDelay","getText","text","cssText","attributesText","sizeText","classesText","noAttributesAvailableText","closeText","copyText","copySymbolText","pasteText","pasteSymbolText","removeText","removeSymbolText","noClassesAvailableText","searchPropertiesPlaceHolderText","clearText","clearSymbolText","noPropertiesFoundForSearchText","dialogMovedSymbolText","propertyValuePlaceHolderText","modeNotSupportedText","unknownModeText","moveUpText","moveUpSymbolText","moveDownText","moveDownSymbolText","removeElementSymbolText","lockText","Start","Start2","newOptions","options","mode","titleText","showOnly","allowEditing","showIdOrNameInTitle","showNodeNameInTitle","ignoreValues","showLockButtonInTitle","dialogOffset","_configuration","_dialog","_dialog_Title","_dialog_Title_Button_Lock","_dialog_Search","_dialog_Search_Input","_dialog_Search_Input_TimerId","_dialog_Contents","_dialog_Contents_NoSearchResultsText","_dialog_Buttons","_dialog_Buttons_Copy","_dialog_Buttons_Remove","_dialog_Buttons_MoveUp","_dialog_Buttons_MoveDown","_dialog_TimerId","_current_Process_Options","_current_Process_Elements","_current_Process_Properties","_current_Process_Element","_current_Process_Locked","_current_Process_NodeCount","_current_Process_Properties_Count","_element_Dialog_Move","_element_Dialog_Move_Original_X","_element_Dialog_Move_Original_Y","_element_Dialog_Move_IsMoving","_element_Dialog_Move_X","_element_Dialog_Move_Y","buildDialog","closeDialog","body","removeChild","onmousemove","onclick","onCopy","placeholder","onkeyup","onSearchProperties","onpaste","onfocus","select","removeButton","title","onSearchPropertiesClear","closeButton","onRemove","onMoveUp","onMoveDown","makeDialogMovable","setDialogTitle","nodeName","id","getAttribute","name","setDialogAsLocked","parentNode","lines","propertyName","hasOwnProperty","push","navigator","clipboard","writeText","join","clearTimeout","setTimeout","getElementsByClassName","propertyNames","slice","call","propertyNamesLength","searchValue","propertiesFound","propertyNameIndex","parent","trim","removeProperty","propertyNameText","innerText","indexOf","focus","previousElementSibling","nextElementSibling","buildDialogContent","buildCssProperties","buildAttributeProperties","buildSizeProperties","buildClassProperties","computedStyles","getComputedStyle","computedStylesLength","styleIndex","buildPropertyRow","getPropertyValue","hasAttributes","attribute","attributes","classList","index","propertyValueText","isPropertyVisible","isPropertyValueVisible","property","propertyValue","propertyValueInput","add","borderLeftColor","copyButton","pasteButton","onPropertyPaste","onPropertyRemove","readOnly","onPropertyValueKeyUp","readText","then","data","updatePropertyValue","removeAttribute","remove","input","code","setProperty","replace","parseInt","buildNodeEvents","tagTypes","tagTypeIndex","domElements","getElementsByTagName","elements","elementsLength","elementIndex","buildNodeEvent","addEventListener","onWindowMove","attributeValue","onNodeMouseOver","removeNodeEvents","currentProcessElementsLength","removeEventListener","clearDialogShowTimer","titleBar","dialog","onmousedown","onMoveTitleBarMouseDown","onMoveDocumentMouseMove","onmouseup","onMoveTitleBarMouseUp","oncontextmenu","onMoveDocumentMouseLeave","_public","start","stop","close","setConfiguration","configurationHasChanged","newInternalConfiguration","getVersion","$peek"],"mappings":"AACA,IAAIA;;AACJ,CAAEC;IACA,SAASC,EAAQC;QACf,OAAOA,MAAU,QAAQA,WAAe,KAAKA,EAAMC,eAAe;AACpE;IACAH,EAAIC,UAAUA;IACd,SAASG,EAAcC;QACrB,OAAOJ,EAAQI,aAAkBA,MAAW;AAC9C;IACAL,EAAII,gBAAgBA;IACpB,SAASE,EAAeD;QACtB,OAAOJ,EAAQI,aAAkBA,MAAW;AAC9C;IACAL,EAAIM,iBAAiBA;IACrB,SAASC,EAAcF;QACrB,OAAOJ,EAAQI,aAAkBA,MAAW;AAC9C;IACAL,EAAIO,gBAAgBA;IACpB,SAASC,EAAgBH;QACvB,OAAOJ,EAAQI,aAAkBA,MAAW;AAC9C;IACAL,EAAIQ,kBAAkBA;IACtB,SAASC,EAAcJ;QACrB,OAAOJ,EAAQI,aAAkBA,MAAW;AAC9C;IACAL,EAAIS,gBAAgBA;IACpB,SAASC,EAAaL;QACpB,OAAOD,EAAcC,MAAWA,aAAkBM;AACpD;IACAX,EAAIU,eAAeA;IACnB,SAASE,EAAYP;QACnB,OAAOD,EAAcC,MAAWA,aAAkBQ;AACpD;IACAb,EAAIY,cAAcA;IAClB,SAASE,EAAmBC,GAAOC,IAAgB;QACjD,QAAQN,EAAaK,MAAUA,EAAME,SAASD;AAChD;IACAhB,EAAIc,qBAAqBA;IACzB,SAASI,EAAShB;QAChB,IAAIiB,IAAQjB,EAAMe,UAAU,KAAKf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AO;YACL5H;YACA,OAAOyH;AACT;QAMAI,kBAAkB,SAASxM;YACzB,IAAI/F,EAAGK,cAAc0F,IAAmB;gBACtC,IAAIyM,IAA0B;gBAC9B,MAAMC,IAA2B5J;gBACjC,KAAK,IAAIyD,KAAgBvG,GAAkB;oBACzC,IAAIA,EAAiBwG,eAAeD,MAAiBzD,EAAe0D,eAAeD,MAAiBmG,EAAyBnG,OAAkBvG,EAAiBuG,IAAe;wBAC7KmG,EAAyBnG,KAAgBvG,EAAiBuG;wBAC1DkG,IAA0B;AAC5B;AACF;gBACA,IAAIA,GAAyB;oBAC3B3J,IAAiBnD,EAAOE,QAAQE,IAAI2M;oBACpChI;oBACA,IAAIzK,EAAGK,cAAcuJ,IAA2B;wBAC9CkC;AACF;AACF;AACF;YACA,OAAOqG;AACT;QAMAO,YAAY;YACV,OAAO;AACT;;IAEF;QACE7J,IAAiBnD,EAAOE,QAAQE;QAChCvD,SAAS2O,iBAAiB,qBAAoB;YAC5CzG;AAAa;QAEf,KAAKzK,EAAGE,QAAQoE,OAAOqO,QAAQ;YAC7BrO,OAAOqO,QAAQR;AACjB;AACD,MARD;AASD,EAhhBD","sourcesContent":[null]} \ No newline at end of file diff --git a/dist/peek.js b/dist/peek.js index a68bf68..1a5b305 100644 --- a/dist/peek.js +++ b/dist/peek.js @@ -15,14 +15,14 @@ var e; return t(e) && typeof e === "boolean"; } e.definedBoolean = o; - function l(e) { + function i(e) { return t(e) && typeof e === "string"; } - e.definedString = l; - function i(e) { + e.definedString = i; + function l(e) { return t(e) && typeof e === "function"; } - e.definedFunction = i; + e.definedFunction = l; function r(e) { return t(e) && typeof e === "number"; } @@ -64,15 +64,15 @@ var t; var n; (n => { - function o(n, o, l = "", i = false) { + function o(n, o, i = "", l = false) { const r = o.toLowerCase(); const s = r === "text"; let a = s ? document.createTextNode("") : document.createElement(r); a.setAttribute(t.PEEK_JS_IGNORE_STATE_ATTRIBUTE, "ignore"); - if (e.definedString(l)) { - a.className = l; + if (e.definedString(i)) { + a.className = i; } - if (!i) { + if (!l) { n.appendChild(a); } else { n.insertBefore(a, n.children[0]); @@ -80,18 +80,18 @@ var n; return a; } n.create = o; - function l(e, n, l, i, r = false) { - const s = o(e, n, l, r); - s.innerHTML = i; + function i(e, n, i, l, r = false) { + const s = o(e, n, i, r); + s.innerHTML = l; s.setAttribute(t.PEEK_JS_IGNORE_STATE_ATTRIBUTE, "ignore"); return s; } - n.createWithHTML = l; - function i(e) { + n.createWithHTML = i; + function l(e) { e.preventDefault(); e.stopPropagation(); } - n.cancelBubble = i; + n.cancelBubble = l; function r() { const e = document.documentElement; const t = { @@ -104,8 +104,8 @@ var n; function s(e, t, n) { if (t.style.display !== "block") { let o = e.pageX; - let l = e.pageY; - const i = r(); + let i = e.pageY; + const l = r(); t.style.display = "block"; if (o + t.offsetWidth > window.innerWidth) { o -= t.offsetWidth + n; @@ -113,20 +113,20 @@ var n; o++; o += n; } - if (l + t.offsetHeight > window.innerHeight) { - l -= t.offsetHeight + n; + if (i + t.offsetHeight > window.innerHeight) { + i -= t.offsetHeight + n; } else { - l++; - l += n; + i++; + i += n; } - if (o < i.left) { + if (o < l.left) { o = e.pageX + 1; } - if (l < i.top) { - l = e.pageY + 1; + if (i < l.top) { + i = e.pageY + 1; } t.style.left = `${o}px`; - t.style.top = `${l}px`; + t.style.top = `${i}px`; } } n.showElementAtMousePosition = s; @@ -156,14 +156,14 @@ var o; return e.definedString(t) ? t : n; } t.getString = o; - function l(t, n) { + function i(t, n) { return e.definedBoolean(t) ? t : n; } - t.getBoolean = l; - function i(t, n) { + t.getBoolean = i; + function l(t, n) { return e.definedNumber(t) ? t : n; } - t.getNumber = i; + t.getNumber = l; function r(t, n) { return e.definedArray(t) ? t : n; } @@ -189,15 +189,15 @@ var o; t.getStringOrArray = a; })(o || (o = {})); -var l; +var i; (e => { let t; (e => { function t(e = null) { let t = o.getObject(e, {}); - t.dialogDisplayDelay = o.getNumber(t.dialogDisplayDelay, 1e3); - t.searchDelayDelay = o.getNumber(t.searchDelayDelay, 500); + t.dialogShowDelay = o.getNumber(t.dialogShowDelay, 1e3); + t.searchDelay = o.getNumber(t.searchDelay, 500); t = n(t); return t; } @@ -234,9 +234,9 @@ var l; return e; } })(t = e.Options || (e.Options = {})); -})(l || (l = {})); +})(i || (i = {})); -var i; +var l; (e => { let t; @@ -257,7 +257,7 @@ var i; } e.get = t; })(t = e.Options || (e.Options = {})); -})(i || (i = {})); +})(l || (l = {})); (() => { let o = {}; @@ -271,15 +271,15 @@ var i; let p = null; let x = null; let g = null; - let y = null; let m = null; + let y = null; let T = null; let v = 0; let b = null; let h = []; let S = {}; - let A = null; - let w = false; + let w = null; + let A = false; let L = 0; let N = 0; let E = null; @@ -290,7 +290,7 @@ var i; let k = 0; function C() { if (e.definedObject(r)) { - D(); + $(); document.body.removeChild(r); r = null; } @@ -301,7 +301,7 @@ var i; d = n.create(r, "div", "dialog-contents"); x = n.create(r, "div", "dialog-buttons"); g = n.createWithHTML(x, "button", "copy", o.text.copyText); - g.onclick = $; + g.onclick = I; f = n.create(c, "input"); f.placeholder = o.text.searchPropertiesPlaceHolderText; f.type = "text"; @@ -311,50 +311,50 @@ var i; const t = n.createWithHTML(c, "button", "clear-small", o.text.clearSymbolText); t.title = o.text.clearText; t.onclick = _; - const l = n.createWithHTML(x, "button", "close", o.text.closeText); - l.onclick = D; - y = n.createWithHTML(x, "button", "remove", o.text.removeElementSymbolText); - y.onclick = I; - y.title = o.text.removeText; - m = n.createWithHTML(x, "button", "move-up", o.text.moveUpSymbolText); - m.onclick = R; - m.title = o.text.moveUpText; + const i = n.createWithHTML(x, "button", "close", o.text.closeText); + i.onclick = $; + m = n.createWithHTML(x, "button", "remove", o.text.removeElementSymbolText); + m.onclick = D; + m.title = o.text.removeText; + y = n.createWithHTML(x, "button", "move-up", o.text.moveUpSymbolText); + y.onclick = R; + y.title = o.text.moveUpText; T = n.createWithHTML(x, "button", "move-down", o.text.moveDownSymbolText); T.onclick = U; T.title = o.text.moveDownText; se(s, r); } function W(t = null) { - if (!w && e.defined(b)) { - let l = b.titleText; + if (!A && e.defined(b)) { + let i = b.titleText; s.innerHTML = ""; - if (!e.definedString(l)) { + if (!e.definedString(i)) { if (b.mode === 1) { - l = o.text.cssText; + i = o.text.cssText; } else if (b.mode === 2) { - l = o.text.attributesText; + i = o.text.attributesText; } else if (b.mode === 3) { - l = o.text.sizeText; + i = o.text.sizeText; } else if (b.mode === 4) { - l = o.text.classesText; + i = o.text.classesText; } else { - l = o.text.unknownModeText; + i = o.text.unknownModeText; } } - n.createWithHTML(s, "span", "title", l); + n.createWithHTML(s, "span", "title", i); if (L > 1 && b.showNodeNameInTitle) { n.createWithHTML(s, "span", "dash", " - "); n.createWithHTML(s, "span", "node-name", `[${t.nodeName.toLowerCase()}]`); } if (b.showIdOrNameInTitle && e.defined(t)) { const o = t.getAttribute("id"); - const l = t.getAttribute("name"); + const i = t.getAttribute("name"); if (e.definedString(o)) { n.createWithHTML(s, "span", "dash", " - "); n.createWithHTML(s, "span", "id-or-name", o); - } else if (e.definedString(l)) { + } else if (e.definedString(i)) { n.createWithHTML(s, "span", "dash", " - "); - n.createWithHTML(s, "span", "id-or-name", l); + n.createWithHTML(s, "span", "id-or-name", i); } } if (b.showLockButtonInTitle) { @@ -365,21 +365,21 @@ var i; } } function B() { - if (!w) { + if (!A) { n.createWithHTML(s, "span", "locked", `${o.text.dialogMovedSymbolText}${" "}`, true); if (e.defined(a)) { a.parentNode.removeChild(a); a = null; } - w = true; + A = true; } } - function D() { + function $() { r.style.display = "none"; - w = false; + A = false; f.value = ""; } - function $() { + function I() { const e = []; for (let t in S) { if (S.hasOwnProperty(t)) { @@ -393,14 +393,14 @@ var i; } } if (b.mode === 1) { - navigator.clipboard.writeText(`${A.nodeName.toLowerCase()} { ${"\n"} ${e.join("\n")} ${"\n"} }`); + navigator.clipboard.writeText(`${w.nodeName.toLowerCase()} { ${"\n"} ${e.join("\n")} ${"\n"} }`); } else if (b.mode === 2 || b.mode === 4) { navigator.clipboard.writeText(e.join(" ")); } } - function I() { - A.parentNode.removeChild(A); - D(); + function D() { + w.parentNode.removeChild(w); + $(); } function j() { if (u !== 0) { @@ -411,31 +411,31 @@ var i; const t = d.getElementsByClassName("property-name"); const n = [].slice.call(t); const o = n.length; - const l = f.value.toLowerCase(); - let i = 0; + const i = f.value.toLowerCase(); + let l = 0; for (let t = 0; t < o; t++) { const o = n[t].parentNode; if (e.defined(o)) { if (f.value.trim() === "") { o.style.removeProperty("display"); - i++; + l++; } else { const e = n[t].innerText; - if (e.toLowerCase().indexOf(l) > -1) { + if (e.toLowerCase().indexOf(i) > -1) { o.style.removeProperty("display"); - i++; + l++; } else { o.style.display = "none"; } } } } - if (i === 0) { + if (l === 0) { p.style.display = "block"; } else { p.style.removeProperty("display"); } - }), o.searchDelayDelay); + }), o.searchDelay); } function _() { f.value = ""; @@ -443,13 +443,13 @@ var i; j(); } function R() { - if (A.parentNode !== null && A.previousElementSibling !== null) { - A.parentNode.insertBefore(A, A.previousElementSibling); + if (w.parentNode !== null && w.previousElementSibling !== null) { + w.parentNode.insertBefore(w, w.previousElementSibling); } } function U() { - if (A.parentNode !== null && A.nextElementSibling !== null) { - A.parentNode.insertBefore(A.nextElementSibling, A); + if (w.parentNode !== null && w.nextElementSibling !== null) { + w.parentNode.insertBefore(w.nextElementSibling, w); } } function V(t) { @@ -458,7 +458,7 @@ var i; d.scrollTop = 0; S = {}; N = 0; - A = t; + w = t; W(t); if (b.mode === 1 || b.mode === 4 || b.mode === 2) { g.style.removeProperty("display"); @@ -466,12 +466,12 @@ var i; g.style.display = "none"; } if (!b.allowEditing) { - y.style.display = "none"; m.style.display = "none"; + y.style.display = "none"; T.style.display = "none"; } else { - y.style.removeProperty("display"); m.style.removeProperty("display"); + y.style.removeProperty("display"); T.style.removeProperty("display"); } p = n.createWithHTML(d, "span", "no-search-results", o.text.noPropertiesFoundForSearchText); @@ -529,37 +529,37 @@ var i; n.createWithHTML(d, "span", "warning", o.text.noClassesAvailableText); } } - function K(t, l, i, r = true) { - if (Z(l) && ee(i)) { + function K(t, i, l, r = true) { + if (Z(i) && ee(l)) { const s = n.create(d, "div", "property-row"); - n.createWithHTML(s, "div", "property-name", l); + n.createWithHTML(s, "div", "property-name", i); const a = n.create(s, "div", "property-value"); const c = n.create(a, "input"); - if (e.hexColor(i) || e.isRgbColor(i)) { + if (e.hexColor(l) || e.isRgbColor(l)) { c.classList.add("property-value-color"); - c.style.borderLeftColor = i; + c.style.borderLeftColor = l; } c.placeholder = o.text.propertyValuePlaceHolderText; c.onfocus = () => c.select(); const f = n.createWithHTML(s, "button", "copy-small", o.text.copySymbolText); f.title = o.text.copyText; - f.onclick = () => navigator.clipboard.writeText(i); + f.onclick = () => navigator.clipboard.writeText(l); if (b.allowEditing && r) { const e = n.createWithHTML(s, "button", "paste-small", o.text.pasteSymbolText); const r = n.createWithHTML(s, "button", "remove-small", o.text.removeSymbolText); e.title = o.text.pasteText; r.title = o.text.removeText; - e.onclick = () => X(t, c, l); - r.onclick = () => Y(s, t, l, i); + e.onclick = () => X(t, c, i); + r.onclick = () => Y(s, t, i, l); } c.type = "text"; - c.value = i; - S[l] = i; + c.value = l; + S[i] = l; N++; if (!b.allowEditing || !r) { c.readOnly = true; } else { - c.onkeyup = e => q(e, l, c, t); + c.onkeyup = e => q(e, i, c, t); } } } @@ -614,18 +614,18 @@ var i; for (let t = 0; t < L; t++) { const n = document.getElementsByTagName(e[t]); const o = [].slice.call(n); - const l = o.length; - for (let e = 0; e < l; e++) { + const i = o.length; + for (let e = 0; e < i; e++) { ne(o[e]); } } - window.addEventListener("mousemove", ie); + window.addEventListener("mousemove", le); } function ne(n) { const o = n.getAttribute(t.PEEK_JS_IGNORE_STATE_ATTRIBUTE); if (!e.definedString(o) && o !== "ignore") { n.addEventListener("mousemove", (e => { - le(e, n); + ie(e, n); })); h.push(n); } @@ -635,27 +635,27 @@ var i; for (let t = 0; t < e; t++) { const e = h[t]; e.removeEventListener("mousemove", (t => { - le(t, e); + ie(t, e); })); } h = []; - window.removeEventListener("mousemove", ie); - D(); + window.removeEventListener("mousemove", le); + $(); } - function le(t, l) { - if (!w && e.defined(b)) { + function ie(t, i) { + if (!A && e.defined(b)) { n.cancelBubble(t); re(); v = setTimeout((() => { - V(l); + V(i); n.showElementAtMousePosition(t, r, b.dialogOffset); - }), o.dialogDisplayDelay); + }), o.dialogShowDelay); } } - function ie() { - if (!w) { + function le() { + if (!A) { re(); - D(); + $(); } } function re() { @@ -721,7 +721,7 @@ var i; const de = { start: function(t) { if (!e.definedObject(b)) { - b = i.Options.get(t); + b = l.Options.get(t); W(); te(); } @@ -736,21 +736,21 @@ var i; return de; }, close: function() { - D(); + $(); return de; }, setConfiguration: function(t) { if (e.definedObject(t)) { let n = false; - const i = o; + const l = o; for (let e in t) { - if (t.hasOwnProperty(e) && o.hasOwnProperty(e) && i[e] !== t[e]) { - i[e] = t[e]; + if (t.hasOwnProperty(e) && o.hasOwnProperty(e) && l[e] !== t[e]) { + l[e] = t[e]; n = true; } } if (n) { - o = l.Options.get(i); + o = i.Options.get(l); C(); if (e.definedObject(b)) { W(); @@ -764,7 +764,7 @@ var i; } }; (() => { - o = l.Options.get(); + o = i.Options.get(); document.addEventListener("DOMContentLoaded", (() => { C(); })); diff --git a/dist/peek.js.map b/dist/peek.js.map index b057e48..6996f10 100644 --- a/dist/peek.js.map +++ b/dist/peek.js.map @@ -1 +1 @@ -{"version":3,"sources":["/Users/williamtroup/Documents/GitHub%20Repos/Peek.js/dist/peek.js"],"names":["Is","Is2","defined","value","toString","definedObject","object","definedBoolean","definedString","definedFunction","definedNumber","definedArray","Array","definedDate","Date","invalidOptionArray","array","minimumLength","length","hexColor","valid","isNaN","substring","isRgbColor","startsWith","Constant","Constant2","PEEK_JS_IGNORE_STATE_ATTRIBUTE","DomElement","DomElement2","create","container","type","className","insertAtStart","nodeType","toLowerCase","isText","result","document","createTextNode","createElement","setAttribute","appendChild","insertBefore","children","createWithHTML","html","element","innerHTML","cancelBubble","e","preventDefault","stopPropagation","getScrollPosition","documentElement","left","scrollLeft","clientLeft","top","scrollTop","clientTop","showElementAtMousePosition","offset","style","display","pageX","pageY","scrollPosition","offsetWidth","window","innerWidth","offsetHeight","innerHeight","getOffset","offsetLeft","offsetTop","offsetParent","Default","Default2","getAnyString","defaultValue","getString","getBoolean","getNumber","getArray","getObject","getStringOrArray","values","split","Config","Config2","Options","Options2","get","newConfiguration","configuration","dialogDisplayDelay","searchDelayDelay","getText","text","cssText","attributesText","sizeText","classesText","noAttributesAvailableText","closeText","copyText","copySymbolText","pasteText","pasteSymbolText","removeText","removeSymbolText","noClassesAvailableText","searchPropertiesPlaceHolderText","clearText","clearSymbolText","noPropertiesFoundForSearchText","dialogMovedSymbolText","propertyValuePlaceHolderText","modeNotSupportedText","unknownModeText","moveUpText","moveUpSymbolText","moveDownText","moveDownSymbolText","removeElementSymbolText","lockText","Start","Start2","newOptions","options","mode","titleText","showOnly","allowEditing","showIdOrNameInTitle","showNodeNameInTitle","ignoreValues","showLockButtonInTitle","dialogOffset","_configuration","_dialog","_dialog_Title","_dialog_Title_Button_Lock","_dialog_Search","_dialog_Search_Input","_dialog_Search_Input_TimerId","_dialog_Contents","_dialog_Contents_NoSearchResultsText","_dialog_Buttons","_dialog_Buttons_Copy","_dialog_Buttons_Remove","_dialog_Buttons_MoveUp","_dialog_Buttons_MoveDown","_dialog_TimerId","_current_Process_Options","_current_Process_Elements","_current_Process_Properties","_current_Process_Element","_current_Process_Locked","_current_Process_NodeCount","_current_Process_Properties_Count","_element_Dialog_Move","_element_Dialog_Move_Original_X","_element_Dialog_Move_Original_Y","_element_Dialog_Move_IsMoving","_element_Dialog_Move_X","_element_Dialog_Move_Y","buildDialog","closeDialog","body","removeChild","onmousemove","onclick","onCopy","placeholder","onkeyup","onSearchProperties","onpaste","onfocus","select","removeButton","title","onSearchPropertiesClear","closeButton","onRemove","onMoveUp","onMoveDown","makeDialogMovable","setDialogTitle","nodeName","id","getAttribute","name","setDialogAsLocked","parentNode","lines","propertyName","hasOwnProperty","push","navigator","clipboard","writeText","join","clearTimeout","setTimeout","getElementsByClassName","propertyNames","slice","call","propertyNamesLength","searchValue","propertiesFound","propertyNameIndex","parent","trim","removeProperty","propertyNameText","innerText","indexOf","focus","previousElementSibling","nextElementSibling","buildDialogContent","buildCssProperties","buildAttributeProperties","buildSizeProperties","buildClassProperties","computedStyles","getComputedStyle","computedStylesLength","styleIndex","buildPropertyRow","getPropertyValue","hasAttributes","attribute","attributes","classList","index","propertyValueText","isPropertyVisible","isPropertyValueVisible","property","propertyValue","propertyValueInput","add","borderLeftColor","copyButton","pasteButton","onPropertyPaste","onPropertyRemove","readOnly","onPropertyValueKeyUp","readText","then","data","updatePropertyValue","removeAttribute","remove","input","code","setProperty","replace","parseInt","buildNodeEvents","tagTypes","tagTypeIndex","domElements","getElementsByTagName","elements","elementsLength","elementIndex","buildNodeEvent","addEventListener","onWindowMove","attributeValue","onNodeMouseOver","removeNodeEvents","currentProcessElementsLength","removeEventListener","clearDialogShowTimer","titleBar","dialog","onmousedown","onMoveTitleBarMouseDown","onMoveDocumentMouseMove","onmouseup","onMoveTitleBarMouseUp","oncontextmenu","onMoveDocumentMouseLeave","_public","start","stop","close","setConfiguration","configurationHasChanged","newInternalConfiguration","getVersion","$peek"],"mappings":"AAAA;;AAGA,IAAIA;;AACJ,CAAEC;IACA,SAASC,EAAQC;QACf,OAAOA,MAAU,QAAQA,WAAe,KAAKA,EAAMC,eAAe;AACpE;IACAH,EAAIC,UAAUA;IACd,SAASG,EAAcC;QACrB,OAAOJ,EAAQI,aAAkBA,MAAW;AAC9C;IACAL,EAAII,gBAAgBA;IACpB,SAASE,EAAeD;QACtB,OAAOJ,EAAQI,aAAkBA,MAAW;AAC9C;IACAL,EAAIM,iBAAiBA;IACrB,SAASC,EAAcF;QACrB,OAAOJ,EAAQI,aAAkBA,MAAW;AAC9C;IACAL,EAAIO,gBAAgBA;IACpB,SAASC,EAAgBH;QACvB,OAAOJ,EAAQ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qG;AAChD;AACF;IACA,SAAS0H;QACP,IAAI5H,GAA+B;YACjCH,EAAqBnG,MAAMR,OAAO,GAAG4G;YACrCD,EAAqBnG,MAAML,MAAM,GAAG0G;YACpCC,IAAgC;YAChCH,IAAuB;YACvBC,IAAkC;YAClCC,IAAkC;AACpC;AACF;IACA,MAAM8H,KAAU;QAMdC,OAAO,SAASjK;YACd,KAAKnI,EAAGK,cAAcuJ,IAA2B;gBAC/CA,IAA2B5B,EAAMpC,QAAQE,IAAIqC;gBAC7C2D;gBACA2E;AACF;YACA,OAAO0B;AACT;QACAE,MAAM;YACJ,IAAIrS,EAAGK,cAAcuJ,IAA2B;gBAC9CA,IAA2B;gBAC3B6H;gBACAH;AACF;YACA,OAAOa;AACT;QACAG,OAAO;YACL5H;YACA,OAAOyH;AACT;QAMAI,kBAAkB,SAASxM;YACzB,IAAI/F,EAAGK,cAAc0F,IAAmB;gBACtC,IAAIyM,IAA0B;gBAC9B,MAAMC,IAA2B5J;gBACjC,KAAK,IAAIyD,KAAgBvG,GAAkB;oBACzC,IAAIA,EAAiBwG,eAAeD,MAAiBzD,EAAe0D,eAAeD,MAAiBmG,EAAyBnG,OAAkBvG,EAAiBuG,IAAe;wBAC7KmG,EAAyBnG,KAAgBvG,EAAiBuG;wBAC1DkG,IAA0B;AAC5B;AACF;gBACA,IAAIA,GAAyB;oBAC3B3J,IAAiBnD,EAAOE,QAAQE,IAAI2M;oBACpChI;oBACA,IAAIzK,EAAGK,cAAcuJ,IAA2B;wBAC9CkC;AACF;AACF;AACF;YACA,OAAOqG;AACT;QAMAO,YAAY;YACV,OAAO;AACT;;IAEF;QACE7J,IAAiBnD,EAAOE,QAAQE;QAChCvD,SAAS2O,iBAAiB,qBAAoB;YAC5CzG;AAAa;QAEf,KAAKzK,EAAGE,QAAQoE,OAAOqO,QAAQ;YAC7BrO,OAAOqO,QAAQR;AACjB;AACD,MARD;AASD,EAhhBD","sourcesContent":[null]} \ No newline at end of file +{"version":3,"sources":["/Users/williamtroup/Documents/GitHub%20Repos/Peek.js/dist/peek.js"],"names":["Is","Is2","defined","value","toString","definedObject","object","definedBoolean","definedString","definedFunction","definedNumber","definedArray","Array","definedDate","Date","invalidOptionArray","array","minimumLength","length","hexColor","valid","isNaN","substring","isRgbColor","startsWith","Constant","Constant2","PEEK_JS_IGNORE_STATE_ATTRIBUTE","DomElement","DomElement2","create","container","type","className","insertAtStart","nodeType","toLowerCase","isText","result","document","createTextNode","createElement","setAttribute","appendChild","insertBefore","children","createWithHTML","html","element","innerHTML","cancelBubble","e","preventDefault","stopPropagation","getScrollPosition","documentElement","left","scrollLeft","clientLeft","top","scrollTop","clientTop","showElementAtMousePosition","offset","style","display","pageX","pageY","scrollPosition","offsetWidth","window","innerWidth","offsetHeight","innerHeight","getOffset","offsetLeft","offsetTop","offsetParent","Default","Default2","getAnyString","defaultValue","getString","getBoolean","getNumber","getArray","getObject","getStringOrArray","values","split","Config","Config2","Options","Options2","get","newConfiguration","configuration","dialogShowDelay","searchDelay","getText","text","cssText","attributesText","sizeText","classesText","noAttributesAvailableText","closeText","copyText","copySymbolText","pasteText","pasteSymbolText","removeText","removeSymbolText","noClassesAvailableText","searchPropertiesPlaceHolderText","clearText","clearSymbolText","noPropertiesFoundForSearchText","dialogMovedSymbolText","propertyValuePlaceHolderText","modeNotSupportedText","unknownModeText","moveUpText","moveUpSymbolText","moveDownText","moveDownSymbolText","removeElementSymbolText","lockText","Start","Start2","newOptions","options","mode","titleText","showOnly","allowEditing","showIdOrNameInTitle","showNodeNameInTitle","ignoreValues","showLockButtonInTitle","dialogOffset","_configuration","_dialog","_dialog_Title","_dialog_Title_Button_Lock","_dialog_Search","_dialog_Search_Input","_dialog_Search_Input_TimerId","_dialog_Contents","_dialog_Contents_NoSearchResultsText","_dialog_Buttons","_dialog_Buttons_Copy","_dialog_Buttons_Remove","_dialog_Buttons_MoveUp","_dialog_Buttons_MoveDown","_dialog_TimerId","_current_Process_Options","_current_Process_Elements","_current_Process_Properties","_current_Process_Element","_current_Process_Locked","_current_Process_NodeCount","_current_Process_Properties_Count","_element_Dialog_Move","_element_Dialog_Move_Original_X","_element_Dialog_Move_Original_Y","_element_Dialog_Move_IsMoving","_element_Dialog_Move_X","_element_Dialog_Move_Y","buildDialog","closeDialog","body","removeChild","onmousemove","onclick","onCopy","placeholder","onkeyup","onSearchProperties","onpaste","onfocus","select","removeButton","title","onSearchPropertiesClear","closeButton","onRemove","onMoveUp","onMoveDown","makeDialogMovable","setDialogTitle","nodeName","id","getAttribute","name","setDialogAsLocked","parentNode","lines","propertyName","hasOwnProperty","push","navigator","clipboard","writeText","join","clearTimeout","setTimeout","getElementsByClassName","propertyNames","slice","call","propertyNamesLength","searchValue","propertiesFound","propertyNameIndex","parent","trim","removeProperty","propertyNameText","innerText","indexOf","focus","previousElementSibling","nextElementSibling","buildDialogContent","buildCssProperties","buildAttributeProperties","buildSizeProperties","buildClassProperties","computedStyles","getComputedStyle","computedStylesLength","styleIndex","buildPropertyRow","getPropertyValue","hasAttributes","attribute","attributes","classList","index","propertyValueText","isPropertyVisible","isPropertyValueVisible","property","propertyValue","propertyValueInput","add","borderLeftColor","copyButton","pasteButton","onPropertyPaste","onPropertyRemove","readOnly","onPropertyValueKeyUp","readText","then","data","updatePropertyValue","removeAttribute","remove","input","code","setProperty","replace","parseInt","buildNodeEvents","tagTypes","tagTypeIndex","domElements","getElementsByTagName","elements","elementsLength","elementIndex","buildNodeEvent","addEventListener","onWindowMove","attributeValue","onNodeMouseOver","removeNodeEvents","currentProcessElementsLength","removeEventListener","clearDialogShowTimer","titleBar","dialog","onmousedown","onMoveTitleBarMouseDown","onMoveDocumentMouseMove","onmouseup","onMoveTitleBarMouseUp","oncontextmenu","onMoveDocumentMouseLeave","_public","start","stop","close","setConfiguration","configurationHasChanged","newInternalConfiguration","getVersion","$peek"],"mappings":"AAAA;;AAGA,IAAIA;;AACJ,CAAEC;IACA,SAASC,EAAQC;QACf,OAAOA,MAAU,QAAQA,WAAe,KAAKA,EAA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GK,cAAcuJ,IAA2B;wBAC9CkC;AACF;AACF;AACF;YACA,OAAOqG;AACT;QAMAO,YAAY;YACV,OAAO;AACT;;IAEF;QACE7J,IAAiBnD,EAAOE,QAAQE;QAChCvD,SAAS2O,iBAAiB,qBAAoB;YAC5CzG;AAAa;QAEf,KAAKzK,EAAGE,QAAQoE,OAAOqO,QAAQ;YAC7BrO,OAAOqO,QAAQR;AACjB;AACD,MARD;AASD,EAhhBD","sourcesContent":[null]} \ No newline at end of file diff --git a/dist/peek.min.js b/dist/peek.min.js index 923eac8..5daff2d 100644 --- a/dist/peek.min.js +++ b/dist/peek.min.js @@ -1 +1 @@ -"use strict";var e,t,n,o,r,i;(e=>{function t(e){return null!=e&&""!==e.toString()}function n(e){return t(e)&&"object"==typeof e}function o(e){return n(e)&&e instanceof Array}e.defined=t,e.definedObject=n,e.definedBoolean=function(e){return t(e)&&"boolean"==typeof e},e.definedString=function(e){return t(e)&&"string"==typeof e},e.definedFunction=function(e){return t(e)&&"function"==typeof e},e.definedNumber=function(e){return t(e)&&"number"==typeof e},e.definedArray=o,e.definedDate=function(e){return n(e)&&e instanceof Date},e.invalidOptionArray=function(e,t=1){return!o(e)||e.length=2&&e.length<=7;return t=!(!t||"#"!==e[0])&&isNaN(+e.substring(1,e.length-1)),t},e.isRgbColor=function(e){return e.startsWith("rgb")||e.startsWith("rgba")}})(e||(e={})),(t||(t={})).PEEK_JS_IGNORE_STATE_ATTRIBUTE="data-peek-js-ignore-state",(n=>{function o(n,o,r="",i=!1){const l=o.toLowerCase();let s="text"===l?document.createTextNode(""):document.createElement(l);return s.setAttribute(t.PEEK_JS_IGNORE_STATE_ATTRIBUTE,"ignore"),e.definedString(r)&&(s.className=r),i?n.insertBefore(s,n.children[0]):n.appendChild(s),s}function r(){const e=document.documentElement;return{left:e.scrollLeft-(e.clientLeft||0),top:e.scrollTop-(e.clientTop||0)}}n.create=o,n.createWithHTML=function(e,n,r,i,l=!1){const s=o(e,n,r,l);return s.innerHTML=i,s.setAttribute(t.PEEK_JS_IGNORE_STATE_ATTRIBUTE,"ignore"),s},n.cancelBubble=function(e){e.preventDefault(),e.stopPropagation()},n.getScrollPosition=r,n.showElementAtMousePosition=function(e,t,n){if("block"!==t.style.display){let o=e.pageX,i=e.pageY;const l=r();t.style.display="block",o+t.offsetWidth>window.innerWidth?o-=t.offsetWidth+n:(o++,o+=n),i+t.offsetHeight>window.innerHeight?i-=t.offsetHeight+n:(i++,i+=n),o{function n(t,n){return e.definedArray(t)?t:n}t.getAnyString=function(e,t){return"string"==typeof e?e:t},t.getString=function(t,n){return e.definedString(t)?t:n},t.getBoolean=function(t,n){return e.definedBoolean(t)?t:n},t.getNumber=function(t,n){return e.definedNumber(t)?t:n},t.getArray=n,t.getObject=function(t,n){return e.definedObject(t)?t:n},t.getStringOrArray=function(t,o){let r=o;if(e.definedString(t)){const e=t.toString().split(" ");0===e.length?t=o:r=e}else r=n(t,o);return r}})(o||(o={})),(e=>{let t;(t=e.Options||(e.Options={})).get=function(e=null){let t=o.getObject(e,{});return t.dialogDisplayDelay=o.getNumber(t.dialogDisplayDelay,1e3),t.searchDelayDelay=o.getNumber(t.searchDelayDelay,500),t=function(e){return e.text=o.getObject(e.text,{}),e.text.cssText=o.getAnyString(e.text.cssText,"CSS"),e.text.attributesText=o.getAnyString(e.text.attributesText,"Attributes"),e.text.sizeText=o.getAnyString(e.text.sizeText,"Size"),e.text.classesText=o.getAnyString(e.text.classesText,"Classes"),e.text.noAttributesAvailableText=o.getAnyString(e.text.noAttributesAvailableText,"No attributes are available."),e.text.closeText=o.getAnyString(e.text.closeText,"Close"),e.text.copyText=o.getAnyString(e.text.copyText,"Copy"),e.text.copySymbolText=o.getAnyString(e.text.copySymbolText,"❐"),e.text.pasteText=o.getAnyString(e.text.pasteText,"Paste"),e.text.pasteSymbolText=o.getAnyString(e.text.pasteSymbolText,"☐"),e.text.removeText=o.getAnyString(e.text.removeText,"Remove"),e.text.removeSymbolText=o.getAnyString(e.text.removeSymbolText,"✕"),e.text.noClassesAvailableText=o.getAnyString(e.text.noClassesAvailableText,"No classes are available."),e.text.searchPropertiesPlaceHolderText=o.getAnyString(e.text.searchPropertiesPlaceHolderText,"Search properties..."),e.text.clearText=o.getAnyString(e.text.clearText,"Clear"),e.text.clearSymbolText=o.getAnyString(e.text.clearSymbolText,"✕"),e.text.noPropertiesFoundForSearchText=o.getAnyString(e.text.noPropertiesFoundForSearchText,"No properties were found for your search."),e.text.dialogMovedSymbolText=o.getAnyString(e.text.dialogMovedSymbolText,"✸"),e.text.propertyValuePlaceHolderText=o.getAnyString(e.text.propertyValuePlaceHolderText,"Enter value..."),e.text.modeNotSupportedText=o.getAnyString(e.text.modeNotSupportedText,"The mode you have specified is not supported."),e.text.unknownModeText=o.getAnyString(e.text.unknownModeText,"Unknown Mode"),e.text.moveUpText=o.getAnyString(e.text.moveUpText,"Move Up"),e.text.moveUpSymbolText=o.getAnyString(e.text.moveUpSymbolText,"↑"),e.text.moveDownText=o.getAnyString(e.text.moveDownText,"Move Down"),e.text.moveDownSymbolText=o.getAnyString(e.text.moveDownSymbolText,"↓"),e.text.removeElementSymbolText=o.getAnyString(e.text.removeElementSymbolText,"⌫"),e.text.lockText=o.getAnyString(e.text.lockText,"Lock"),e}(t),t}})(r||(r={})),(e=>{let t;(t=e.Options||(e.Options={})).get=function(e){let t=o.getObject(e,{});return t.nodeType=o.getStringOrArray(t.nodeType,[]),t.mode=o.getNumber(t.mode,1),t.titleText=o.getString(t.titleText,""),t.showOnly=o.getStringOrArray(t.showOnly,[]),t.allowEditing=o.getBoolean(t.allowEditing,!1),t.showIdOrNameInTitle=o.getBoolean(t.showIdOrNameInTitle,!0),t.showNodeNameInTitle=o.getBoolean(t.showNodeNameInTitle,!1),t.ignoreValues=o.getStringOrArray(t.ignoreValues,[]),t.showLockButtonInTitle=o.getBoolean(t.showLockButtonInTitle,!0),t.dialogOffset=o.getNumber(t.dialogOffset,0),t}})(i||(i={})),(()=>{let o={},l=null,s=null,a=null,c=null,d=null,u=0,p=null,x=null,f=null,g=null,y=null,m=null,T=null,v=0,b=null,h=[],S={},A=null,L=!1,w=0,N=0,E=null,O=0,M=0,H=!1,P=0,k=0;function C(){e.definedObject(l)&&(D(),document.body.removeChild(l),l=null),l=n.create(document.body,"div","peek-js"),l.onmousemove=n.cancelBubble,s=n.create(l,"div","dialog-title-bar"),c=n.create(l,"div","dialog-search"),p=n.create(l,"div","dialog-contents"),f=n.create(l,"div","dialog-buttons"),g=n.createWithHTML(f,"button","copy",o.text.copyText),g.onclick=I,d=n.create(c,"input"),d.placeholder=o.text.searchPropertiesPlaceHolderText,d.type="text",d.onkeyup=j,d.onpaste=j,d.onfocus=()=>d.select();const t=n.createWithHTML(c,"button","clear-small",o.text.clearSymbolText);t.title=o.text.clearText,t.onclick=_;var r,i;n.createWithHTML(f,"button","close",o.text.closeText).onclick=D,y=n.createWithHTML(f,"button","remove",o.text.removeElementSymbolText),y.onclick=$,y.title=o.text.removeText,m=n.createWithHTML(f,"button","move-up",o.text.moveUpSymbolText),m.onclick=R,m.title=o.text.moveUpText,T=n.createWithHTML(f,"button","move-down",o.text.moveDownSymbolText),T.onclick=U,T.title=o.text.moveDownText,i=l,(r=s).onmousedown=e=>{!function(e,t){H||(E=t,H=!0,P=e.pageX-E.offsetLeft,k=e.pageY-E.offsetTop,O=E.offsetLeft,M=E.offsetTop)}(e,i)},i.onmousemove=e=>{q(e,!0)},r.onmouseup=()=>{Y()},r.oncontextmenu=()=>{Y()},document.addEventListener("mousemove",q),document.addEventListener("mouseleave",Q)}function W(t=null){if(!L&&e.defined(b)){let r=b.titleText;if(s.innerHTML="",e.definedString(r)||(r=1===b.mode?o.text.cssText:2===b.mode?o.text.attributesText:3===b.mode?o.text.sizeText:4===b.mode?o.text.classesText:o.text.unknownModeText),n.createWithHTML(s,"span","title",r),w>1&&b.showNodeNameInTitle&&(n.createWithHTML(s,"span","dash"," - "),n.createWithHTML(s,"span","node-name",`[${t.nodeName.toLowerCase()}]`)),b.showIdOrNameInTitle&&e.defined(t)){const o=t.getAttribute("id"),r=t.getAttribute("name");e.definedString(o)?(n.createWithHTML(s,"span","dash"," - "),n.createWithHTML(s,"span","id-or-name",o)):e.definedString(r)&&(n.createWithHTML(s,"span","dash"," - "),n.createWithHTML(s,"span","id-or-name",r))}b.showLockButtonInTitle&&(a=n.createWithHTML(s,"button","lock",o.text.dialogMovedSymbolText),a.title=o.text.lockText,a.onclick=()=>B())}}function B(){L||(n.createWithHTML(s,"span","locked",`${o.text.dialogMovedSymbolText} `,!0),e.defined(a)&&(a.parentNode.removeChild(a),a=null),L=!0)}function D(){l.style.display="none",L=!1,d.value=""}function I(){const e=[];for(let t in S)S.hasOwnProperty(t)&&(1===b.mode?e.push(`${t}: ${S[t]};`):2===b.mode?e.push(`${t}="${S[t]}"`):4===b.mode&&e.push(S[t]));1===b.mode?navigator.clipboard.writeText(`${A.nodeName.toLowerCase()} { \n ${e.join("\n")} \n }`):2!==b.mode&&4!==b.mode||navigator.clipboard.writeText(e.join(" "))}function $(){A.parentNode.removeChild(A),D()}function j(){0!==u&&(clearTimeout(u),u=0),u=setTimeout((()=>{const t=p.getElementsByClassName("property-name"),n=[].slice.call(t),o=n.length,r=d.value.toLowerCase();let i=0;for(let t=0;t-1?(o.style.removeProperty("display"),i++):o.style.display="none"}}0===i?x.style.display="block":x.style.removeProperty("display")}),o.searchDelayDelay)}function _(){d.value="",d.focus(),j()}function R(){null!==A.parentNode&&null!==A.previousElementSibling&&A.parentNode.insertBefore(A,A.previousElementSibling)}function U(){null!==A.parentNode&&null!==A.nextElementSibling&&A.parentNode.insertBefore(A.nextElementSibling,A)}function V(t){e.defined(b)&&(p.innerHTML="",p.scrollTop=0,S={},N=0,A=t,W(t),1===b.mode||4===b.mode||2===b.mode?g.style.removeProperty("display"):g.style.display="none",b.allowEditing?(y.style.removeProperty("display"),m.style.removeProperty("display"),T.style.removeProperty("display")):(y.style.display="none",m.style.display="none",T.style.display="none"),x=n.createWithHTML(p,"span","no-search-results",o.text.noPropertiesFoundForSearchText),1===b.mode?function(e){const t=getComputedStyle(e),n=t.length;for(let o=0;o0){let t=1;for(let n of e.classList)F(e,t.toString(),n),t++}else p.innerHTML="",n.createWithHTML(p,"span","warning",o.text.noClassesAvailableText)}(t):n.createWithHTML(p,"span","warning",o.text.modeNotSupportedText),N<=15?c.style.display="none":c.style.removeProperty("display"))}function F(t,r,i,l=!0){if(function(e){return 0===b.showOnly.length||b.showOnly.indexOf(e)>-1}(r)&&function(e){return 0===b.ignoreValues.length||b.ignoreValues.indexOf(e)<=-1}(i)){const s=n.create(p,"div","property-row");n.createWithHTML(s,"div","property-name",r);const a=n.create(s,"div","property-value"),c=n.create(a,"input");(e.hexColor(i)||e.isRgbColor(i))&&(c.classList.add("property-value-color"),c.style.borderLeftColor=i),c.placeholder=o.text.propertyValuePlaceHolderText,c.onfocus=()=>c.select();const d=n.createWithHTML(s,"button","copy-small",o.text.copySymbolText);if(d.title=o.text.copyText,d.onclick=()=>navigator.clipboard.writeText(i),b.allowEditing&&l){const e=n.createWithHTML(s,"button","paste-small",o.text.pasteSymbolText),l=n.createWithHTML(s,"button","remove-small",o.text.removeSymbolText);e.title=o.text.pasteText,l.title=o.text.removeText,e.onclick=()=>function(e,t,n){navigator.clipboard.readText().then((o=>{t.value=o,z(e,n,t)}))}(t,c,r),l.onclick=()=>function(e,t,n,o){1===b.mode?(t.style.removeProperty(n),e.parentNode.removeChild(e)):2===b.mode?(t.removeAttribute(n),e.parentNode.removeChild(e)):4===b.mode&&(t.classList.remove(o),e.parentNode.removeChild(e))}(s,t,r,i)}c.type="text",c.value=i,S[r]=i,N++,b.allowEditing&&l?c.onkeyup=e=>function(e,t,n,o){"Enter"===e.code&&z(o,t,n)}(e,r,c,t):c.readOnly=!0}}function z(t,n,o){1===b.mode?t.style.setProperty(n,o.value):2===b.mode?t.setAttribute(n,o.value):4===b.mode&&t.classList.replace(t.classList[parseInt(n)-1],o.value),S[n]=o.value,e.hexColor(o.value)||e.isRgbColor(o.value)?(o.classList.add("property-value-color"),o.style.borderLeftColor=o.value):o.classList.remove("property-value-color")}function G(n){const o=n.getAttribute(t.PEEK_JS_IGNORE_STATE_ATTRIBUTE);e.definedString(o)||"ignore"===o||(n.addEventListener("mousemove",(e=>{J(e,n)})),h.push(n))}function J(t,r){!L&&e.defined(b)&&(n.cancelBubble(t),X(),v=setTimeout((()=>{V(r),n.showElementAtMousePosition(t,l,b.dialogOffset)}),o.dialogDisplayDelay))}function K(){L||(X(),D())}function X(){0!==v&&(clearTimeout(v),v=0)}function Y(){H&&(H=!1,E=null,O=0,M=0)}function q(e,t=!1){t&&n.cancelBubble(e),H&&(B(),E.style.left=e.pageX-P+"px",E.style.top=e.pageY-k+"px")}function Q(){H&&(E.style.left=`${O}px`,E.style.top=`${M}px`,H=!1,E=null,O=0,M=0)}const Z={start:function(t){return e.definedObject(b)||(b=i.Options.get(t),W(),function(){const e=b.nodeType;w=e.length;for(let t=0;t{J(t,e)}))}h=[],window.removeEventListener("mousemove",K),D()}()),Z},close:function(){return D(),Z},setConfiguration:function(t){if(e.definedObject(t)){let n=!1;const i=o;for(let e in t)t.hasOwnProperty(e)&&o.hasOwnProperty(e)&&i[e]!==t[e]&&(i[e]=t[e],n=!0);n&&(o=r.Options.get(i),C(),e.definedObject(b)&&W())}return Z},getVersion:function(){return"1.8.0"}};o=r.Options.get(),document.addEventListener("DOMContentLoaded",(()=>{C()})),e.defined(window.$peek)||(window.$peek=Z)})(); \ No newline at end of file +"use strict";var e,t,n,o,r,i;(e=>{function t(e){return null!=e&&""!==e.toString()}function n(e){return t(e)&&"object"==typeof e}function o(e){return n(e)&&e instanceof Array}e.defined=t,e.definedObject=n,e.definedBoolean=function(e){return t(e)&&"boolean"==typeof e},e.definedString=function(e){return t(e)&&"string"==typeof e},e.definedFunction=function(e){return t(e)&&"function"==typeof e},e.definedNumber=function(e){return t(e)&&"number"==typeof e},e.definedArray=o,e.definedDate=function(e){return n(e)&&e instanceof Date},e.invalidOptionArray=function(e,t=1){return!o(e)||e.length=2&&e.length<=7;return t=!(!t||"#"!==e[0])&&isNaN(+e.substring(1,e.length-1)),t},e.isRgbColor=function(e){return e.startsWith("rgb")||e.startsWith("rgba")}})(e||(e={})),(t||(t={})).PEEK_JS_IGNORE_STATE_ATTRIBUTE="data-peek-js-ignore-state",(n=>{function o(n,o,r="",i=!1){const l=o.toLowerCase();let s="text"===l?document.createTextNode(""):document.createElement(l);return s.setAttribute(t.PEEK_JS_IGNORE_STATE_ATTRIBUTE,"ignore"),e.definedString(r)&&(s.className=r),i?n.insertBefore(s,n.children[0]):n.appendChild(s),s}function r(){const e=document.documentElement;return{left:e.scrollLeft-(e.clientLeft||0),top:e.scrollTop-(e.clientTop||0)}}n.create=o,n.createWithHTML=function(e,n,r,i,l=!1){const s=o(e,n,r,l);return s.innerHTML=i,s.setAttribute(t.PEEK_JS_IGNORE_STATE_ATTRIBUTE,"ignore"),s},n.cancelBubble=function(e){e.preventDefault(),e.stopPropagation()},n.getScrollPosition=r,n.showElementAtMousePosition=function(e,t,n){if("block"!==t.style.display){let o=e.pageX,i=e.pageY;const l=r();t.style.display="block",o+t.offsetWidth>window.innerWidth?o-=t.offsetWidth+n:(o++,o+=n),i+t.offsetHeight>window.innerHeight?i-=t.offsetHeight+n:(i++,i+=n),o{function n(t,n){return e.definedArray(t)?t:n}t.getAnyString=function(e,t){return"string"==typeof e?e:t},t.getString=function(t,n){return e.definedString(t)?t:n},t.getBoolean=function(t,n){return e.definedBoolean(t)?t:n},t.getNumber=function(t,n){return e.definedNumber(t)?t:n},t.getArray=n,t.getObject=function(t,n){return e.definedObject(t)?t:n},t.getStringOrArray=function(t,o){let r=o;if(e.definedString(t)){const e=t.toString().split(" ");0===e.length?t=o:r=e}else r=n(t,o);return r}})(o||(o={})),(e=>{let t;(t=e.Options||(e.Options={})).get=function(e=null){let t=o.getObject(e,{});return t.dialogShowDelay=o.getNumber(t.dialogShowDelay,1e3),t.searchDelay=o.getNumber(t.searchDelay,500),t=function(e){return e.text=o.getObject(e.text,{}),e.text.cssText=o.getAnyString(e.text.cssText,"CSS"),e.text.attributesText=o.getAnyString(e.text.attributesText,"Attributes"),e.text.sizeText=o.getAnyString(e.text.sizeText,"Size"),e.text.classesText=o.getAnyString(e.text.classesText,"Classes"),e.text.noAttributesAvailableText=o.getAnyString(e.text.noAttributesAvailableText,"No attributes are available."),e.text.closeText=o.getAnyString(e.text.closeText,"Close"),e.text.copyText=o.getAnyString(e.text.copyText,"Copy"),e.text.copySymbolText=o.getAnyString(e.text.copySymbolText,"❐"),e.text.pasteText=o.getAnyString(e.text.pasteText,"Paste"),e.text.pasteSymbolText=o.getAnyString(e.text.pasteSymbolText,"☐"),e.text.removeText=o.getAnyString(e.text.removeText,"Remove"),e.text.removeSymbolText=o.getAnyString(e.text.removeSymbolText,"✕"),e.text.noClassesAvailableText=o.getAnyString(e.text.noClassesAvailableText,"No classes are available."),e.text.searchPropertiesPlaceHolderText=o.getAnyString(e.text.searchPropertiesPlaceHolderText,"Search properties..."),e.text.clearText=o.getAnyString(e.text.clearText,"Clear"),e.text.clearSymbolText=o.getAnyString(e.text.clearSymbolText,"✕"),e.text.noPropertiesFoundForSearchText=o.getAnyString(e.text.noPropertiesFoundForSearchText,"No properties were found for your search."),e.text.dialogMovedSymbolText=o.getAnyString(e.text.dialogMovedSymbolText,"✸"),e.text.propertyValuePlaceHolderText=o.getAnyString(e.text.propertyValuePlaceHolderText,"Enter value..."),e.text.modeNotSupportedText=o.getAnyString(e.text.modeNotSupportedText,"The mode you have specified is not supported."),e.text.unknownModeText=o.getAnyString(e.text.unknownModeText,"Unknown Mode"),e.text.moveUpText=o.getAnyString(e.text.moveUpText,"Move Up"),e.text.moveUpSymbolText=o.getAnyString(e.text.moveUpSymbolText,"↑"),e.text.moveDownText=o.getAnyString(e.text.moveDownText,"Move Down"),e.text.moveDownSymbolText=o.getAnyString(e.text.moveDownSymbolText,"↓"),e.text.removeElementSymbolText=o.getAnyString(e.text.removeElementSymbolText,"⌫"),e.text.lockText=o.getAnyString(e.text.lockText,"Lock"),e}(t),t}})(r||(r={})),(e=>{let t;(t=e.Options||(e.Options={})).get=function(e){let t=o.getObject(e,{});return t.nodeType=o.getStringOrArray(t.nodeType,[]),t.mode=o.getNumber(t.mode,1),t.titleText=o.getString(t.titleText,""),t.showOnly=o.getStringOrArray(t.showOnly,[]),t.allowEditing=o.getBoolean(t.allowEditing,!1),t.showIdOrNameInTitle=o.getBoolean(t.showIdOrNameInTitle,!0),t.showNodeNameInTitle=o.getBoolean(t.showNodeNameInTitle,!1),t.ignoreValues=o.getStringOrArray(t.ignoreValues,[]),t.showLockButtonInTitle=o.getBoolean(t.showLockButtonInTitle,!0),t.dialogOffset=o.getNumber(t.dialogOffset,0),t}})(i||(i={})),(()=>{let o={},l=null,s=null,a=null,c=null,d=null,u=0,p=null,x=null,f=null,g=null,m=null,y=null,T=null,v=0,b=null,h=[],S={},w=null,A=!1,L=0,N=0,E=null,O=0,M=0,H=!1,P=0,k=0;function C(){e.definedObject(l)&&(I(),document.body.removeChild(l),l=null),l=n.create(document.body,"div","peek-js"),l.onmousemove=n.cancelBubble,s=n.create(l,"div","dialog-title-bar"),c=n.create(l,"div","dialog-search"),p=n.create(l,"div","dialog-contents"),f=n.create(l,"div","dialog-buttons"),g=n.createWithHTML(f,"button","copy",o.text.copyText),g.onclick=$,d=n.create(c,"input"),d.placeholder=o.text.searchPropertiesPlaceHolderText,d.type="text",d.onkeyup=j,d.onpaste=j,d.onfocus=()=>d.select();const t=n.createWithHTML(c,"button","clear-small",o.text.clearSymbolText);t.title=o.text.clearText,t.onclick=_;var r,i;n.createWithHTML(f,"button","close",o.text.closeText).onclick=I,m=n.createWithHTML(f,"button","remove",o.text.removeElementSymbolText),m.onclick=D,m.title=o.text.removeText,y=n.createWithHTML(f,"button","move-up",o.text.moveUpSymbolText),y.onclick=R,y.title=o.text.moveUpText,T=n.createWithHTML(f,"button","move-down",o.text.moveDownSymbolText),T.onclick=U,T.title=o.text.moveDownText,i=l,(r=s).onmousedown=e=>{!function(e,t){H||(E=t,H=!0,P=e.pageX-E.offsetLeft,k=e.pageY-E.offsetTop,O=E.offsetLeft,M=E.offsetTop)}(e,i)},i.onmousemove=e=>{q(e,!0)},r.onmouseup=()=>{Y()},r.oncontextmenu=()=>{Y()},document.addEventListener("mousemove",q),document.addEventListener("mouseleave",Q)}function W(t=null){if(!A&&e.defined(b)){let r=b.titleText;if(s.innerHTML="",e.definedString(r)||(r=1===b.mode?o.text.cssText:2===b.mode?o.text.attributesText:3===b.mode?o.text.sizeText:4===b.mode?o.text.classesText:o.text.unknownModeText),n.createWithHTML(s,"span","title",r),L>1&&b.showNodeNameInTitle&&(n.createWithHTML(s,"span","dash"," - "),n.createWithHTML(s,"span","node-name",`[${t.nodeName.toLowerCase()}]`)),b.showIdOrNameInTitle&&e.defined(t)){const o=t.getAttribute("id"),r=t.getAttribute("name");e.definedString(o)?(n.createWithHTML(s,"span","dash"," - "),n.createWithHTML(s,"span","id-or-name",o)):e.definedString(r)&&(n.createWithHTML(s,"span","dash"," - "),n.createWithHTML(s,"span","id-or-name",r))}b.showLockButtonInTitle&&(a=n.createWithHTML(s,"button","lock",o.text.dialogMovedSymbolText),a.title=o.text.lockText,a.onclick=()=>B())}}function B(){A||(n.createWithHTML(s,"span","locked",`${o.text.dialogMovedSymbolText} `,!0),e.defined(a)&&(a.parentNode.removeChild(a),a=null),A=!0)}function I(){l.style.display="none",A=!1,d.value=""}function $(){const e=[];for(let t in S)S.hasOwnProperty(t)&&(1===b.mode?e.push(`${t}: ${S[t]};`):2===b.mode?e.push(`${t}="${S[t]}"`):4===b.mode&&e.push(S[t]));1===b.mode?navigator.clipboard.writeText(`${w.nodeName.toLowerCase()} { \n ${e.join("\n")} \n }`):2!==b.mode&&4!==b.mode||navigator.clipboard.writeText(e.join(" "))}function D(){w.parentNode.removeChild(w),I()}function j(){0!==u&&(clearTimeout(u),u=0),u=setTimeout((()=>{const t=p.getElementsByClassName("property-name"),n=[].slice.call(t),o=n.length,r=d.value.toLowerCase();let i=0;for(let t=0;t-1?(o.style.removeProperty("display"),i++):o.style.display="none"}}0===i?x.style.display="block":x.style.removeProperty("display")}),o.searchDelay)}function _(){d.value="",d.focus(),j()}function R(){null!==w.parentNode&&null!==w.previousElementSibling&&w.parentNode.insertBefore(w,w.previousElementSibling)}function U(){null!==w.parentNode&&null!==w.nextElementSibling&&w.parentNode.insertBefore(w.nextElementSibling,w)}function V(t){e.defined(b)&&(p.innerHTML="",p.scrollTop=0,S={},N=0,w=t,W(t),1===b.mode||4===b.mode||2===b.mode?g.style.removeProperty("display"):g.style.display="none",b.allowEditing?(m.style.removeProperty("display"),y.style.removeProperty("display"),T.style.removeProperty("display")):(m.style.display="none",y.style.display="none",T.style.display="none"),x=n.createWithHTML(p,"span","no-search-results",o.text.noPropertiesFoundForSearchText),1===b.mode?function(e){const t=getComputedStyle(e),n=t.length;for(let o=0;o0){let t=1;for(let n of e.classList)F(e,t.toString(),n),t++}else p.innerHTML="",n.createWithHTML(p,"span","warning",o.text.noClassesAvailableText)}(t):n.createWithHTML(p,"span","warning",o.text.modeNotSupportedText),N<=15?c.style.display="none":c.style.removeProperty("display"))}function F(t,r,i,l=!0){if(function(e){return 0===b.showOnly.length||b.showOnly.indexOf(e)>-1}(r)&&function(e){return 0===b.ignoreValues.length||b.ignoreValues.indexOf(e)<=-1}(i)){const s=n.create(p,"div","property-row");n.createWithHTML(s,"div","property-name",r);const a=n.create(s,"div","property-value"),c=n.create(a,"input");(e.hexColor(i)||e.isRgbColor(i))&&(c.classList.add("property-value-color"),c.style.borderLeftColor=i),c.placeholder=o.text.propertyValuePlaceHolderText,c.onfocus=()=>c.select();const d=n.createWithHTML(s,"button","copy-small",o.text.copySymbolText);if(d.title=o.text.copyText,d.onclick=()=>navigator.clipboard.writeText(i),b.allowEditing&&l){const e=n.createWithHTML(s,"button","paste-small",o.text.pasteSymbolText),l=n.createWithHTML(s,"button","remove-small",o.text.removeSymbolText);e.title=o.text.pasteText,l.title=o.text.removeText,e.onclick=()=>function(e,t,n){navigator.clipboard.readText().then((o=>{t.value=o,z(e,n,t)}))}(t,c,r),l.onclick=()=>function(e,t,n,o){1===b.mode?(t.style.removeProperty(n),e.parentNode.removeChild(e)):2===b.mode?(t.removeAttribute(n),e.parentNode.removeChild(e)):4===b.mode&&(t.classList.remove(o),e.parentNode.removeChild(e))}(s,t,r,i)}c.type="text",c.value=i,S[r]=i,N++,b.allowEditing&&l?c.onkeyup=e=>function(e,t,n,o){"Enter"===e.code&&z(o,t,n)}(e,r,c,t):c.readOnly=!0}}function z(t,n,o){1===b.mode?t.style.setProperty(n,o.value):2===b.mode?t.setAttribute(n,o.value):4===b.mode&&t.classList.replace(t.classList[parseInt(n)-1],o.value),S[n]=o.value,e.hexColor(o.value)||e.isRgbColor(o.value)?(o.classList.add("property-value-color"),o.style.borderLeftColor=o.value):o.classList.remove("property-value-color")}function G(n){const o=n.getAttribute(t.PEEK_JS_IGNORE_STATE_ATTRIBUTE);e.definedString(o)||"ignore"===o||(n.addEventListener("mousemove",(e=>{J(e,n)})),h.push(n))}function J(t,r){!A&&e.defined(b)&&(n.cancelBubble(t),X(),v=setTimeout((()=>{V(r),n.showElementAtMousePosition(t,l,b.dialogOffset)}),o.dialogShowDelay))}function K(){A||(X(),I())}function X(){0!==v&&(clearTimeout(v),v=0)}function Y(){H&&(H=!1,E=null,O=0,M=0)}function q(e,t=!1){t&&n.cancelBubble(e),H&&(B(),E.style.left=e.pageX-P+"px",E.style.top=e.pageY-k+"px")}function Q(){H&&(E.style.left=`${O}px`,E.style.top=`${M}px`,H=!1,E=null,O=0,M=0)}const Z={start:function(t){return e.definedObject(b)||(b=i.Options.get(t),W(),function(){const e=b.nodeType;L=e.length;for(let t=0;t{J(t,e)}))}h=[],window.removeEventListener("mousemove",K),I()}()),Z},close:function(){return I(),Z},setConfiguration:function(t){if(e.definedObject(t)){let n=!1;const i=o;for(let e in t)t.hasOwnProperty(e)&&o.hasOwnProperty(e)&&i[e]!==t[e]&&(i[e]=t[e],n=!0);n&&(o=r.Options.get(i),C(),e.definedObject(b)&&W())}return Z},getVersion:function(){return"1.8.0"}};o=r.Options.get(),document.addEventListener("DOMContentLoaded",(()=>{C()})),e.defined(window.$peek)||(window.$peek=Z)})(); \ No newline at end of file diff --git a/docs/CHANGE_LOG.md b/docs/CHANGE_LOG.md index 0709c78..ce993ce 100755 --- a/docs/CHANGE_LOG.md +++ b/docs/CHANGE_LOG.md @@ -5,6 +5,10 @@ #### **Start Options:** - Added a start option "offset" (defaults to 0), which states the additional offset to use for the dialogs position. +#### **Configuration Options:** +- BREAKING: Renamed the configuration option "dialogDisplayDelay" to "dialogShowDelay". +- BREAKING: Renamed the configuration option "searchDelayDelay" to "searchDelay". + #### **Adjustments:** - Moved from ES2016 to ES2020. - Updated to the latest NPM packages. diff --git a/docs/configuration/OPTIONS.md b/docs/configuration/OPTIONS.md index c019de7..365b235 100755 --- a/docs/configuration/OPTIONS.md +++ b/docs/configuration/OPTIONS.md @@ -9,8 +9,8 @@ Below are all the configuration options that can be passed to the "setConfigurat | Type: | Name: | Description: | | --- | --- | --- | -| *number* | dialogDisplayDelay | States the delay (in milliseconds) that should be used before showing the viewer dialog (defaults to 1000). | -| *number* | searchDelayDelay | States the delay (in milliseconds) that should be used when typing before searching (defaults to 500). | +| *number* | dialogShowDelay | States the delay (in milliseconds) that should be used before showing the viewer dialog (defaults to 1000). | +| *number* | searchDelay | States the delay (in milliseconds) that should be used when typing before searching (defaults to 500). |
diff --git a/src/peek.ts b/src/peek.ts index 626f41c..ac3d55c 100644 --- a/src/peek.ts +++ b/src/peek.ts @@ -255,7 +255,7 @@ type DialogProperties = Record; _dialog_Contents_NoSearchResultsText.style.removeProperty( "display" ); } - }, _configuration.searchDelayDelay ); + }, _configuration.searchDelay ); } function onSearchPropertiesClear() : void { @@ -546,7 +546,7 @@ type DialogProperties = Record; buildDialogContent( element ); DomElement.showElementAtMousePosition( e, _dialog, _current_Process_Options.dialogOffset! ); - }, _configuration.dialogDisplayDelay ); + }, _configuration.dialogShowDelay ); } } diff --git a/src/ts/options/config.ts b/src/ts/options/config.ts index b43bdc7..c8af896 100644 --- a/src/ts/options/config.ts +++ b/src/ts/options/config.ts @@ -19,8 +19,8 @@ export namespace Config { export namespace Options { export function get( newConfiguration: Configuration = null! ) : Configuration { let configuration: Configuration = Default.getObject( newConfiguration, {} as Configuration ); - configuration.dialogDisplayDelay = Default.getNumber( configuration.dialogDisplayDelay, 1000 ); - configuration.searchDelayDelay = Default.getNumber( configuration.searchDelayDelay, 500 ); + configuration.dialogShowDelay = Default.getNumber( configuration.dialogShowDelay, 1000 ); + configuration.searchDelay = Default.getNumber( configuration.searchDelay, 500 ); configuration = getText( configuration ); diff --git a/src/ts/type.ts b/src/ts/type.ts index 7dc05b9..130c21b 100644 --- a/src/ts/type.ts +++ b/src/ts/type.ts @@ -17,8 +17,8 @@ export type Position = { }; export type Configuration = { - dialogDisplayDelay?: number; - searchDelayDelay?: number; + dialogShowDelay?: number; + searchDelay?: number; text?: ConfigurationText; }; From 0ee9e421f3fa0f6cf2a45f2f3aa6ece961aade93 Mon Sep 17 00:00:00 2001 From: William Troup Date: Wed, 4 Sep 2024 22:39:57 +0100 Subject: [PATCH 09/14] Added a new configuration option called "dialogHideDelay" (default to 0 milliseconds), which states the delay that should be used before hiding the dialog when moving away from an element. --- dist/peek.esm.js | 414 +++++++++++++++++++++------------------ dist/peek.esm.js.map | 2 +- dist/peek.js | 414 +++++++++++++++++++++------------------ dist/peek.js.map | 2 +- dist/peek.min.js | 2 +- docs/CHANGE_LOG.md | 1 + src/peek.ts | 50 +++-- src/ts/options/config.ts | 1 + src/ts/type.ts | 1 + 9 files changed, 483 insertions(+), 404 deletions(-) diff --git a/dist/peek.esm.js b/dist/peek.esm.js index 91ea433..43c1816 100644 --- a/dist/peek.esm.js +++ b/dist/peek.esm.js @@ -195,6 +195,7 @@ var i; function t(e = null) { let t = o.getObject(e, {}); t.dialogShowDelay = o.getNumber(t.dialogShowDelay, 1e3); + t.dialogHideDelay = o.getNumber(t.dialogHideDelay, 500); t.searchDelay = o.getNumber(t.searchDelay, 500); t = n(t); return t; @@ -273,22 +274,23 @@ var l; let y = null; let T = null; let v = 0; - let b = null; - let h = []; - let S = {}; - let w = null; - let A = false; - let L = 0; + let b = 0; + let h = null; + let S = []; + let w = {}; + let A = null; + let L = false; let N = 0; - let E = null; - let O = 0; + let E = 0; + let O = null; + let H = 0; let M = 0; - let H = false; - let P = 0; + let P = false; let k = 0; - function C() { + let C = 0; + function W() { if (e.definedObject(r)) { - $(); + I(); document.body.removeChild(r); r = null; } @@ -299,52 +301,52 @@ var l; d = n.create(r, "div", "dialog-contents"); x = n.create(r, "div", "dialog-buttons"); g = n.createWithHTML(x, "button", "copy", o.text.copyText); - g.onclick = I; + g.onclick = D; f = n.create(c, "input"); f.placeholder = o.text.searchPropertiesPlaceHolderText; f.type = "text"; - f.onkeyup = j; - f.onpaste = j; + f.onkeyup = _; + f.onpaste = _; f.onfocus = () => f.select(); const t = n.createWithHTML(c, "button", "clear-small", o.text.clearSymbolText); t.title = o.text.clearText; - t.onclick = _; + t.onclick = R; const i = n.createWithHTML(x, "button", "close", o.text.closeText); - i.onclick = $; + i.onclick = () => I(); m = n.createWithHTML(x, "button", "remove", o.text.removeElementSymbolText); - m.onclick = D; + m.onclick = j; m.title = o.text.removeText; y = n.createWithHTML(x, "button", "move-up", o.text.moveUpSymbolText); - y.onclick = R; + y.onclick = U; y.title = o.text.moveUpText; T = n.createWithHTML(x, "button", "move-down", o.text.moveDownSymbolText); - T.onclick = U; + T.onclick = V; T.title = o.text.moveDownText; - se(s, r); + ce(s, r); } - function W(t = null) { - if (!A && e.defined(b)) { - let i = b.titleText; + function B(t = null) { + if (!L && e.defined(h)) { + let i = h.titleText; s.innerHTML = ""; if (!e.definedString(i)) { - if (b.mode === 1) { + if (h.mode === 1) { i = o.text.cssText; - } else if (b.mode === 2) { + } else if (h.mode === 2) { i = o.text.attributesText; - } else if (b.mode === 3) { + } else if (h.mode === 3) { i = o.text.sizeText; - } else if (b.mode === 4) { + } else if (h.mode === 4) { i = o.text.classesText; } else { i = o.text.unknownModeText; } } n.createWithHTML(s, "span", "title", i); - if (L > 1 && b.showNodeNameInTitle) { + if (N > 1 && h.showNodeNameInTitle) { n.createWithHTML(s, "span", "dash", " - "); n.createWithHTML(s, "span", "node-name", `[${t.nodeName.toLowerCase()}]`); } - if (b.showIdOrNameInTitle && e.defined(t)) { + if (h.showIdOrNameInTitle && e.defined(t)) { const o = t.getAttribute("id"); const i = t.getAttribute("name"); if (e.definedString(o)) { @@ -355,52 +357,67 @@ var l; n.createWithHTML(s, "span", "id-or-name", i); } } - if (b.showLockButtonInTitle) { + if (h.showLockButtonInTitle) { a = n.createWithHTML(s, "button", "lock", o.text.dialogMovedSymbolText); a.title = o.text.lockText; - a.onclick = () => B(); + a.onclick = () => $(); } } } - function B() { - if (!A) { + function $() { + if (!L) { n.createWithHTML(s, "span", "locked", `${o.text.dialogMovedSymbolText}${" "}`, true); if (e.defined(a)) { a.parentNode.removeChild(a); a = null; } - A = true; + L = true; + } + } + function I(e = false) { + if (r.style.display !== "none") { + const t = () => { + r.style.display = "none"; + L = false; + f.value = ""; + ae(); + }; + if (e) { + if (b === 0) { + se(); + b = setTimeout((() => { + t(); + }), o.dialogHideDelay); + } + } else { + t(); + } } } - function $() { - r.style.display = "none"; - A = false; - f.value = ""; - } - function I() { + function D() { const e = []; - for (let t in S) { - if (S.hasOwnProperty(t)) { - if (b.mode === 1) { - e.push(`${t}: ${S[t]};`); - } else if (b.mode === 2) { - e.push(`${t}="${S[t]}"`); - } else if (b.mode === 4) { - e.push(S[t]); + for (let t in w) { + if (w.hasOwnProperty(t)) { + if (h.mode === 1) { + e.push(`${t}: ${w[t]};`); + } else if (h.mode === 2) { + e.push(`${t}="${w[t]}"`); + } else if (h.mode === 4) { + e.push(w[t]); } } } - if (b.mode === 1) { - navigator.clipboard.writeText(`${w.nodeName.toLowerCase()} { ${"\n"} ${e.join("\n")} ${"\n"} }`); - } else if (b.mode === 2 || b.mode === 4) { + if (h.mode === 1) { + navigator.clipboard.writeText(`${A.nodeName.toLowerCase()} { ${"\n"} ${e.join("\n")} ${"\n"} }`); + } else if (h.mode === 2 || h.mode === 4) { navigator.clipboard.writeText(e.join(" ")); } } - function D() { - w.parentNode.removeChild(w); - $(); - } function j() { + A.parentNode.removeChild(A); + I(); + } + function _() { if (u !== 0) { clearTimeout(u); u = 0; @@ -435,35 +452,35 @@ var l; } }), o.searchDelay); } - function _() { + function R() { f.value = ""; f.focus(); - j(); + _(); } - function R() { - if (w.parentNode !== null && w.previousElementSibling !== null) { - w.parentNode.insertBefore(w, w.previousElementSibling); + function U() { + if (A.parentNode !== null && A.previousElementSibling !== null) { + A.parentNode.insertBefore(A, A.previousElementSibling); } } - function U() { - if (w.parentNode !== null && w.nextElementSibling !== null) { - w.parentNode.insertBefore(w.nextElementSibling, w); + function V() { + if (A.parentNode !== null && A.nextElementSibling !== null) { + A.parentNode.insertBefore(A.nextElementSibling, A); } } - function V(t) { - if (e.defined(b)) { + function F(t) { + if (e.defined(h)) { d.innerHTML = ""; d.scrollTop = 0; - S = {}; - N = 0; - w = t; - W(t); - if (b.mode === 1 || b.mode === 4 || b.mode === 2) { + w = {}; + E = 0; + A = t; + B(t); + if (h.mode === 1 || h.mode === 4 || h.mode === 2) { g.style.removeProperty("display"); } else { g.style.display = "none"; } - if (!b.allowEditing) { + if (!h.allowEditing) { m.style.display = "none"; y.style.display = "none"; T.style.display = "none"; @@ -473,53 +490,53 @@ var l; T.style.removeProperty("display"); } p = n.createWithHTML(d, "span", "no-search-results", o.text.noPropertiesFoundForSearchText); - if (b.mode === 1) { - F(t); - } else if (b.mode === 2) { + if (h.mode === 1) { z(t); - } else if (b.mode === 3) { + } else if (h.mode === 2) { G(t); - } else if (b.mode === 4) { + } else if (h.mode === 3) { J(t); + } else if (h.mode === 4) { + K(t); } else { n.createWithHTML(d, "span", "warning", o.text.modeNotSupportedText); } - if (N <= 15) { + if (E <= 15) { c.style.display = "none"; } else { c.style.removeProperty("display"); } } } - function F(e) { + function z(e) { const t = getComputedStyle(e); const n = t.length; for (let o = 0; o < n; o++) { - K(e, t[o], t.getPropertyValue(t[o])); + X(e, t[o], t.getPropertyValue(t[o])); } } - function z(e) { + function G(e) { if (e.hasAttributes()) { for (let t of e.attributes) { - K(e, t.name, t.value); + X(e, t.name, t.value); } } else { d.innerHTML = ""; n.createWithHTML(d, "span", "warning", o.text.noAttributesAvailableText); } } - function G(e) { + function J(e) { const t = n.getOffset(e); - K(e, "left", `${t.left.toString()}px`, false); - K(e, "top", `${t.top.toString()}px`, false); - K(e, "width", `${e.offsetWidth.toString()}px`, false); - K(e, "height", `${e.offsetHeight.toString()}px`, false); + X(e, "left", `${t.left.toString()}px`, false); + X(e, "top", `${t.top.toString()}px`, false); + X(e, "width", `${e.offsetWidth.toString()}px`, false); + X(e, "height", `${e.offsetHeight.toString()}px`, false); } - function J(e) { + function K(e) { if (e.classList.length > 0) { let t = 1; for (let n of e.classList) { - K(e, t.toString(), n); + X(e, t.toString(), n); t++; } } else { @@ -527,8 +544,8 @@ var l; n.createWithHTML(d, "span", "warning", o.text.noClassesAvailableText); } } - function K(t, i, l, r = true) { - if (Z(i) && ee(l)) { + function X(t, i, l, r = true) { + if (ee(i) && te(l)) { const s = n.create(d, "div", "property-row"); n.createWithHTML(s, "div", "property-name", i); const a = n.create(s, "div", "property-value"); @@ -542,57 +559,57 @@ var l; const f = n.createWithHTML(s, "button", "copy-small", o.text.copySymbolText); f.title = o.text.copyText; f.onclick = () => navigator.clipboard.writeText(l); - if (b.allowEditing && r) { + if (h.allowEditing && r) { const e = n.createWithHTML(s, "button", "paste-small", o.text.pasteSymbolText); const r = n.createWithHTML(s, "button", "remove-small", o.text.removeSymbolText); e.title = o.text.pasteText; r.title = o.text.removeText; - e.onclick = () => X(t, c, i); - r.onclick = () => Y(s, t, i, l); + e.onclick = () => Y(t, c, i); + r.onclick = () => q(s, t, i, l); } c.type = "text"; c.value = l; - S[i] = l; - N++; - if (!b.allowEditing || !r) { + w[i] = l; + E++; + if (!h.allowEditing || !r) { c.readOnly = true; } else { - c.onkeyup = e => q(e, i, c, t); + c.onkeyup = e => Q(e, i, c, t); } } } - function X(e, t, n) { + function Y(e, t, n) { navigator.clipboard.readText().then((o => { t.value = o; - Q(e, n, t); + Z(e, n, t); })); } - function Y(e, t, n, o) { - if (b.mode === 1) { + function q(e, t, n, o) { + if (h.mode === 1) { t.style.removeProperty(n); e.parentNode.removeChild(e); - } else if (b.mode === 2) { + } else if (h.mode === 2) { t.removeAttribute(n); e.parentNode.removeChild(e); - } else if (b.mode === 4) { + } else if (h.mode === 4) { t.classList.remove(o); e.parentNode.removeChild(e); } } - function q(e, t, n, o) { + function Q(e, t, n, o) { if (e.code === "Enter") { - Q(o, t, n); + Z(o, t, n); } } - function Q(t, n, o) { - if (b.mode === 1) { + function Z(t, n, o) { + if (h.mode === 1) { t.style.setProperty(n, o.value); - } else if (b.mode === 2) { + } else if (h.mode === 2) { t.setAttribute(n, o.value); - } else if (b.mode === 4) { + } else if (h.mode === 4) { t.classList.replace(t.classList[parseInt(n) - 1], o.value); } - S[n] = o.value; + w[n] = o.value; if (e.hexColor(o.value) || e.isRgbColor(o.value)) { o.classList.add("property-value-color"); o.style.borderLeftColor = o.value; @@ -600,142 +617,149 @@ var l; o.classList.remove("property-value-color"); } } - function Z(e) { - return b.showOnly.length === 0 || b.showOnly.indexOf(e) > -1; - } function ee(e) { - return b.ignoreValues.length === 0 || b.ignoreValues.indexOf(e) <= -1; + return h.showOnly.length === 0 || h.showOnly.indexOf(e) > -1; + } + function te(e) { + return h.ignoreValues.length === 0 || h.ignoreValues.indexOf(e) <= -1; } - function te() { - const e = b.nodeType; - L = e.length; - for (let t = 0; t < L; t++) { + function ne() { + const e = h.nodeType; + N = e.length; + for (let t = 0; t < N; t++) { const n = document.getElementsByTagName(e[t]); const o = [].slice.call(n); const i = o.length; for (let e = 0; e < i; e++) { - ne(o[e]); + oe(o[e]); } } - window.addEventListener("mousemove", le); + window.addEventListener("mousemove", re); } - function ne(n) { + function oe(n) { const o = n.getAttribute(t.PEEK_JS_IGNORE_STATE_ATTRIBUTE); if (!e.definedString(o) && o !== "ignore") { n.addEventListener("mousemove", (e => { - ie(e, n); + le(e, n); })); - h.push(n); + S.push(n); } } - function oe() { - const e = h.length; + function ie() { + const e = S.length; for (let t = 0; t < e; t++) { - const e = h[t]; + const e = S[t]; e.removeEventListener("mousemove", (t => { - ie(t, e); + le(t, e); })); } - h = []; - window.removeEventListener("mousemove", le); - $(); + S = []; + window.removeEventListener("mousemove", re); + I(); } - function ie(t, i) { - if (!A && e.defined(b)) { + function le(t, i) { + if (!L && e.defined(h)) { n.cancelBubble(t); - re(); + se(); v = setTimeout((() => { - V(i); - n.showElementAtMousePosition(t, r, b.dialogOffset); + F(i); + ae(); + n.showElementAtMousePosition(t, r, h.dialogOffset); }), o.dialogShowDelay); } } - function le() { - if (!A) { - re(); - $(); + function re() { + if (!L) { + se(); + I(true); } } - function re() { + function se() { if (v !== 0) { clearTimeout(v); v = 0; } } - function se(e, t) { + function ae() { + if (b !== 0) { + clearTimeout(b); + b = 0; + } + } + function ce(e, t) { e.onmousedown = e => { - ae(e, t); + fe(e, t); }; t.onmousemove = e => { - fe(e, true); + de(e, true); }; e.onmouseup = () => { - ce(); + ue(); }; e.oncontextmenu = () => { - ce(); + ue(); }; - document.addEventListener("mousemove", fe); - document.addEventListener("mouseleave", ue); - } - function ae(e, t) { - if (!H) { - E = t; - H = true; - P = e.pageX - E.offsetLeft; - k = e.pageY - E.offsetTop; - O = E.offsetLeft; - M = E.offsetTop; - } - } - function ce() { - if (H) { - H = false; - E = null; - O = 0; + document.addEventListener("mousemove", de); + document.addEventListener("mouseleave", pe); + } + function fe(e, t) { + if (!P) { + O = t; + P = true; + k = e.pageX - O.offsetLeft; + C = e.pageY - O.offsetTop; + H = O.offsetLeft; + M = O.offsetTop; + } + } + function ue() { + if (P) { + P = false; + O = null; + H = 0; M = 0; } } - function fe(e, t = false) { + function de(e, t = false) { if (t) { n.cancelBubble(e); } - if (H) { - B(); - E.style.left = `${e.pageX - P}px`; - E.style.top = `${e.pageY - k}px`; + if (P) { + $(); + O.style.left = `${e.pageX - k}px`; + O.style.top = `${e.pageY - C}px`; } } - function ue() { - if (H) { - E.style.left = `${O}px`; - E.style.top = `${M}px`; - H = false; - E = null; - O = 0; + function pe() { + if (P) { + O.style.left = `${H}px`; + O.style.top = `${M}px`; + P = false; + O = null; + H = 0; M = 0; } } - const de = { + const xe = { start: function(t) { - if (!e.definedObject(b)) { - b = l.Options.get(t); - W(); - te(); + if (!e.definedObject(h)) { + h = l.Options.get(t); + B(); + ne(); } - return de; + return xe; }, stop: function() { - if (e.definedObject(b)) { - b = null; - re(); - oe(); + if (e.definedObject(h)) { + h = null; + se(); + ie(); } - return de; + return xe; }, close: function() { - $(); - return de; + I(); + return xe; }, setConfiguration: function(t) { if (e.definedObject(t)) { @@ -749,13 +773,13 @@ var l; } if (n) { o = i.Options.get(l); - C(); - if (e.definedObject(b)) { - W(); + W(); + if (e.definedObject(h)) { + B(); } } } - return de; + return xe; }, getVersion: function() { return "1.8.0"; @@ -764,10 +788,10 @@ var l; (() => { o = i.Options.get(); document.addEventListener("DOMContentLoaded", (() => { - C(); + W(); })); if (!e.defined(window.$peek)) { - window.$peek = de; + window.$peek = xe; } })(); })();//# sourceMappingURL=peek.esm.js.map \ No newline at end of file diff --git a/dist/peek.esm.js.map b/dist/peek.esm.js.map index f238fb1..1d0d14b 100644 --- a/dist/peek.esm.js.map +++ b/dist/peek.esm.js.map @@ -1 +1 @@ -{"version":3,"sources":["/Users/williamtroup/Documents/GitHub%20Repos/Peek.js/dist/peek.esm.js"],"names":["Is","Is2","defined","value","toString","definedObject","object","definedBoolean","definedString","definedFunction","definedNumber","definedArray","Array","definedDate","Date","invalidOptionArray","array","minimumLength","length","hexColor","valid","isNaN","substring","isRgbColor","startsWith","Constant","Constant2","PEEK_JS_IGNORE_STATE_ATTRIBUTE","DomElement","DomElement2","create","container","type","className","insertAtStart","nodeType","toLowerCase","isText","result","document","createTextNode","createElement","setAttribute","appendChild","insertBefore","children","createWithHTML","html","element","innerHTML","cancelBubble","e","preventDefault","stopPropagation","getScrollPosition","documentElement","left","scrollLeft","clientLeft","top","scrollTop","clientTop","showElementAtMousePosition","offset","style","display","pageX","pageY","scrollPosition","offsetWidth","window","innerWidth","offsetHeight","innerHeight","getOffset","offsetLeft","offsetTop","offsetParent","Default","Default2","getAnyString","defaultValue","getString","getBoolean","getNumber","getArray","getObject","getStringOrArray","values","split","Config","Config2","Options","Options2","get","newConfiguration","configuration","dialogShowDelay","searchDelay","getText","text","cssText","attributesText","sizeText","classesText","noAttributesAvailableText","closeText","copyText","copySymbolText","pasteText","pasteSymbolText","removeText","removeSymbolText","noClassesAvailableText","searchPropertiesPlaceHolderText","clearText","clearSymbolText","noPropertiesFoundForSearchText","dialogMovedSymbolText","propertyValuePlaceHolderText","modeNotSupportedText","unknownModeText","moveUpText","moveUpSymbolText","moveDownText","moveDownSymbolText","removeElementSymbolText","lockText","Start","Start2","newOptions","options","mode","titleText","showOnly","allowEditing","showIdOrNameInTitle","showNodeNameInTitle","ignoreValues","showLockButtonInTitle","dialogOffset","_configuration","_dialog","_dialog_Title","_dialog_Title_Button_Lock","_dialog_Search","_dialog_Search_Input","_dialog_Search_Input_TimerId","_dialog_Contents","_dialog_Contents_NoSearchResultsText","_dialog_Buttons","_dialog_Buttons_Copy","_dialog_Buttons_Remove","_dialog_Buttons_MoveUp","_dialog_Buttons_MoveDown","_dialog_TimerId","_current_Process_Options","_current_Process_Elements","_current_Process_Properties","_current_Process_Element","_current_Process_Locked","_current_Process_NodeCount","_current_Process_Properties_Count","_element_Dialog_Move","_element_Dialog_Move_Original_X","_element_Dialog_Move_Original_Y","_element_Dialog_Move_IsMoving","_element_Dialog_Move_X","_element_Dialog_Move_Y","buildDialog","closeDialog","body","removeChild","onmousemove","onclick","onCopy","placeholder","onkeyup","onSearchProperties","onpaste","onfocus","select","removeButton","title","onSearchPropertiesClear","closeButton","onRemove","onMoveUp","onMoveDown","makeDialogMovable","setDialogTitle","nodeName","id","getAttribute","name","setDialogAsLocked","parentNode","lines","propertyName","hasOwnProperty","push","navigator","clipboard","writeText","join","clearTimeout","setTimeout","getElementsByClassName","propertyNames","slice","call","propertyNamesLength","searchValue","propertiesFound","propertyNameIndex","parent","trim","removeProperty","propertyNameText","innerText","indexOf","focus","previousElementSibling","nextElementSibling","buildDialogContent","buildCssProperties","buildAttributeProperties","buildSizeProperties","buildClassProperties","computedStyles","getComputedStyle","computedStylesLength","styleIndex","buildPropertyRow","getPropertyValue","hasAttributes","attribute","attributes","classList","index","propertyValueText","isPropertyVisible","isPropertyValueVisible","property","propertyValue","propertyValueInput","add","borderLeftColor","copyButton","pasteButton","onPropertyPaste","onPropertyRemove","readOnly","onPropertyValueKeyUp","readText","then","data","updatePropertyValue","removeAttribute","remove","input","code","setProperty","replace","parseInt","buildNodeEvents","tagTypes","tagTypeIndex","domElements","getElementsByTagName","elements","elementsLength","elementIndex","buildNodeEvent","addEventListener","onWindowMove","attributeValue","onNodeMouseOver","removeNodeEvents","currentProcessElementsLength","removeEventListener","clearDialogShowTimer","titleBar","dialog","onmousedown","onMoveTitleBarMouseDown","onMoveDocumentMouseMove","onmouseup","onMoveTitleBarMouseUp","oncontextmenu","onMoveDocumentMouseLeave","_public","start","stop","close","setConfiguration","configurationHasChanged","newInternalConfiguration","getVersion","$peek"],"mappings":"AACA,IAAIA;;AACJ,CAAEC;IACA,SAASC,EAAQC;QACf,OAAOA,MAAU,QAAQA,WAAe,KAAKA,EAAMC,eAAe;AACpE;IACAH,EAAIC,UAAUA;IACd,SAASG,EAAcC;QACrB,OAAOJ,EAAQI,aAAkBA,MAAW;AAC9C;IACAL,EAAII,gBAAgBA;IACpB,SAASE,EAAeD;QACtB,OAAOJ,EAAQI,aA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B;YAC5CzG;AAAa;QAEf,KAAKzK,EAAGE,QAAQoE,OAAOqO,QAAQ;YAC7BrO,OAAOqO,QAAQR;AACjB;AACD,MARD;AASD,EAhhBD","sourcesContent":[null]} \ No newline at end of file +{"version":3,"sources":["/Users/williamtroup/Documents/GitHub%20Repos/Peek.js/dist/peek.esm.js"],"names":["Is","Is2","defined","value","toString","definedObject","object","definedBoolean","definedString","definedFunction","definedNumber","definedArray","Array","definedDate","Date","invalidOptionArray","array","minimumLength","length","hexColor","valid","isNaN","substring","isRgbColor","startsWith","Constant","Constant2","PEEK_JS_IGNORE_STATE_ATTRIBUTE","DomElement","DomElement2","create","container","type","className","insertAtStart","nodeType","toLowerCase","isText","result","document","createTextNode","createElement","setAttribute","appendChild","insertBefore","children","createWithHTML","html","element","innerHTML","cancelBubble","e","preventDefault","stopPropagation","getScrollPosition","documentElement","left","scrollLeft","clientLeft","top","scrollTop","clientTop","showElementAtMousePosition","offset","style","display","pageX","pageY","scrollPosition","offsetWidth","window","innerWidth","offsetHeight","innerHeight","getOffset","offsetLeft","offsetTop","offsetParent","Default","Default2","getAnyString","defaultValue","getString","getBoolean","getNumber","getArray","getObject","getStringOrArray","values","split","Config","Config2","Options","Options2","get","newConfiguration","configuration","dialogShowDelay","dialogHideDelay","searchDelay","getText","text","cssText","attributesText","sizeText","classesText","noAttributesAvailableText","closeText","copyText","copySymbolText","pasteText","pasteSymbolText","removeText","removeSymbolText","noClassesAvailableText","searchPropertiesPlaceHolderText","clearText","clearSymbolText","noPropertiesFoundForSearchText","dialogMovedSymbolText","propertyValuePlaceHolderText","modeNotSupportedText","unknownModeText","moveUpText","moveUpSymbolText","moveDownText","moveDownSymbolText","removeElementSymbolText","lockText","Start","Start2","newOptions","options","mode","titleText","showOnly","allowEditing","showIdOrNameInTitle","showNodeNameInTitle","ignoreValues","showLockButtonInTitle","dialogOffset","_configuration","_dialog","_dialog_Title","_dialog_Title_Button_Lock","_dialog_Search","_dialog_Search_Input","_dialog_Search_Input_TimerId","_dialog_Contents","_dialog_Contents_NoSearchResultsText","_dialog_Buttons","_dialog_Buttons_Copy","_dialog_Buttons_Remove","_dialog_Buttons_MoveUp","_dialog_Buttons_MoveDown","_dialog_Show_TimerId","_dialog_Hide_TimerId","_current_Process_Options","_current_Process_Elements","_current_Process_Properties","_current_Process_Element","_current_Process_Locked","_current_Process_NodeCount","_current_Process_Properties_Count","_element_Dialog_Move","_element_Dialog_Move_Original_X","_element_Dialog_Move_Original_Y","_element_Dialog_Move_IsMoving","_element_Dialog_Move_X","_element_Dialog_Move_Y","buildDialog","closeDialog","body","removeChild","onmousemove","onclick","onCopy","placeholder","onkeyup","onSearchProperties","onpaste","onfocus","select","removeButton","title","onSearchPropertiesClear","closeButton","onRemove","onMoveUp","onMoveDown","makeDialogMovable","setDialogTitle","nodeName","id","getAttribute","name","setDialogAsLocked","parentNode","useDelay","closeFunc","clearDialogHideTimer","clearDialogShowTimer","setTimeout","lines","propertyName","hasOwnProperty","push","navigator","clipboard","writeText","join","clearTimeout","getElementsByClassName","propertyNames","slice","call","propertyNamesLength","searchValue","propertiesFound","propertyNameIndex","parent","trim","removeProperty","propertyNameText","innerText","indexOf","focus","previousElementSibling","nextElementSibling","buildDialogContent","buildCssProperties","buildAttributeProperties","buildSizeProperties","buildClassProperties","computedStyles","getComputedStyle","computedStylesLength","styleIndex","buildPropertyRow","getPropertyValue","hasAttributes","attribute","attributes","classList","index","propertyValueText","isPropertyVisible","isPropertyValueVisible","property","propertyValue","propertyValueInput","add","borderLeftColor","copyButton","pasteButton","onPropertyPaste","onPropertyRemove","readOnly","onPropertyValueKeyUp","readText","then","data","updatePropertyValue","removeAttribute","remove","input","code","setProperty","replace","parseInt","buildNodeEvents","tagTypes","tagTypeIndex","domElements","getElementsByTagName","elements","elementsLength","elementIndex","buildNodeEvent","addEventListener","onWindowMove","attributeValue","onNodeMouseOver","removeNodeEvents","currentProcessElementsLength","removeEventListener","titleBar","dialog","onmousedown","onMoveTitleBarMouseDown","onMoveDocumentMouseMove","onmouseup","onMoveTitleBarMouseUp","oncontextmenu","onMoveDocumentMouseLeave","_public","start","stop","close","setConfiguration","configurationHasChanged","newInternalConfiguration","getVersion","$peek"],"mappings":"AACA,IAAIA;;AACJ,CAAEC;IACA,SAASC,EAAQC;QACf,OAAOA,MAAU,QAAQA,WAAe,KAAKA,EAAMC,eAAe;AACpE;IACAH,EAAIC,UAAUA;IACd,SAASG,EAAcC;QACrB,OAAOJ,EAAQI,aAAkBA,MAAW;AAC9C;IACAL,EAAII,gBAAgBA;IACpB,SAASE,EAAeD;QACtB,OAAOJ,EAAQI,aAAkBA,MAAW;AAC9C;IACAL,EAAIM,iBAAiBA;IACrB,SAASC,EAAcF;QACrB,OAAOJ,EAAQI,aAAkBA,MAAW;AAC9C;IACAL,EAAIO,gBAAgBA;IACpB,SAASC,EAAgBH;QACvB,OAAOJ,EAAQI,aAAkBA,MAAW;AAC9C;IACAL,EAAIQ,kBAAkBA;IACtB,SAASC,EAAcJ;QACrB,OAAOJ,EAAQI,aAAkBA,MAAW;AAC9C;IACAL,EAAIS,gBAAgBA;IACpB,SAASC,EAAaL;QACpB,OAAOD,EAAcC,MAAWA,aAAkBM;AACpD;IACAX,EAAIU,eAAeA;IACnB,SAASE,EAAYP;QACnB,OAAOD,EAAcC,MAAWA,aAAkBQ;AACpD;IACAb,EAAIY,cAAcA;IAClB,SAASE,EAAmBC,GAAOC,IAAgB;QACjD,QAAQN,EAAaK,MAAUA,EAAME,SAASD;AAChD;IACAhB,EAAIc,qBAAqBA;IACzB,SAASI,EAAShB;QAChB,IAAIiB,IAAQjB,EAAMe,UAAU,KAAKf,EAAMe,UAAU;QACjD,IAAIE,KAASjB,EAAM,OAAO,KAAgB;YACxCiB,IAAQC,OAAOlB,EAAMmB,UAAU,GAAGnB,EAAMe,SAAS;AACnD,eAAO;YACLE,IAAQ;AACV;QACA,OAAOA;AACT;IACAnB,EAAIkB,WAAWA;IACf,SAASI,EAAWpB;QAClB,OAAOA,EAAM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A2B7B,EAAMrC,QAAQE,IAAIsC;gBAC7C4D;gBACA+E;AACF;YACA,OAAOyB;AACT;QACAE,MAAM;YACJ,IAAI1S,EAAGK,cAAcyJ,IAA2B;gBAC9CA,IAA2B;gBAC3B4C;gBACAkF;AACF;YACA,OAAOY;AACT;QACAG,OAAO;YACL/H;YACA,OAAO4H;AACT;QAMAI,kBAAkB,SAAS7M;YACzB,IAAI/F,EAAGK,cAAc0F,IAAmB;gBACtC,IAAI8M,IAA0B;gBAC9B,MAAMC,IAA2BhK;gBACjC,KAAK,IAAI+D,KAAgB9G,GAAkB;oBACzC,IAAIA,EAAiB+G,eAAeD,MAAiB/D,EAAegE,eAAeD,MAAiBiG,EAAyBjG,OAAkB9G,EAAiB8G,IAAe;wBAC7KiG,EAAyBjG,KAAgB9G,EAAiB8G;wBAC1DgG,IAA0B;AAC5B;AACF;gBACA,IAAIA,GAAyB;oBAC3B/J,IAAiBpD,EAAOE,QAAQE,IAAIgN;oBACpCnI;oBACA,IAAI3K,EAAGK,cAAcyJ,IAA2B;wBAC9CkC;AACF;AACF;AACF;YACA,OAAOwG;AACT;QAMAO,YAAY;YACV,OAAO;AACT;;IAEF;QACEjK,IAAiBpD,EAAOE,QAAQE;QAChCvD,SAASiP,iBAAiB,qBAAoB;YAC5C7G;AAAa;QAEf,KAAK3K,EAAGE,QAAQoE,OAAO0O,QAAQ;YAC7B1O,OAAO0O,QAAQR;AACjB;AACD,MARD;AASD,EAviBD","sourcesContent":[null]} \ No newline at end of file diff --git a/dist/peek.js b/dist/peek.js index 1a5b305..2f5730f 100644 --- a/dist/peek.js +++ b/dist/peek.js @@ -197,6 +197,7 @@ var i; function t(e = null) { let t = o.getObject(e, {}); t.dialogShowDelay = o.getNumber(t.dialogShowDelay, 1e3); + t.dialogHideDelay = o.getNumber(t.dialogHideDelay, 500); t.searchDelay = o.getNumber(t.searchDelay, 500); t = n(t); return t; @@ -275,22 +276,23 @@ var l; let y = null; let T = null; let v = 0; - let b = null; - let h = []; - let S = {}; - let w = null; - let A = false; - let L = 0; + let b = 0; + let h = null; + let S = []; + let w = {}; + let A = null; + let L = false; let N = 0; - let E = null; - let O = 0; + let E = 0; + let O = null; + let H = 0; let M = 0; - let H = false; - let P = 0; + let P = false; let k = 0; - function C() { + let C = 0; + function W() { if (e.definedObject(r)) { - $(); + I(); document.body.removeChild(r); r = null; } @@ -301,52 +303,52 @@ var l; d = n.create(r, "div", "dialog-contents"); x = n.create(r, "div", "dialog-buttons"); g = n.createWithHTML(x, "button", "copy", o.text.copyText); - g.onclick = I; + g.onclick = D; f = n.create(c, "input"); f.placeholder = o.text.searchPropertiesPlaceHolderText; f.type = "text"; - f.onkeyup = j; - f.onpaste = j; + f.onkeyup = _; + f.onpaste = _; f.onfocus = () => f.select(); const t = n.createWithHTML(c, "button", "clear-small", o.text.clearSymbolText); t.title = o.text.clearText; - t.onclick = _; + t.onclick = R; const i = n.createWithHTML(x, "button", "close", o.text.closeText); - i.onclick = $; + i.onclick = () => I(); m = n.createWithHTML(x, "button", "remove", o.text.removeElementSymbolText); - m.onclick = D; + m.onclick = j; m.title = o.text.removeText; y = n.createWithHTML(x, "button", "move-up", o.text.moveUpSymbolText); - y.onclick = R; + y.onclick = U; y.title = o.text.moveUpText; T = n.createWithHTML(x, "button", "move-down", o.text.moveDownSymbolText); - T.onclick = U; + T.onclick = V; T.title = o.text.moveDownText; - se(s, r); + ce(s, r); } - function W(t = null) { - if (!A && e.defined(b)) { - let i = b.titleText; + function B(t = null) { + if (!L && e.defined(h)) { + let i = h.titleText; s.innerHTML = ""; if (!e.definedString(i)) { - if (b.mode === 1) { + if (h.mode === 1) { i = o.text.cssText; - } else if (b.mode === 2) { + } else if (h.mode === 2) { i = o.text.attributesText; - } else if (b.mode === 3) { + } else if (h.mode === 3) { i = o.text.sizeText; - } else if (b.mode === 4) { + } else if (h.mode === 4) { i = o.text.classesText; } else { i = o.text.unknownModeText; } } n.createWithHTML(s, "span", "title", i); - if (L > 1 && b.showNodeNameInTitle) { + if (N > 1 && h.showNodeNameInTitle) { n.createWithHTML(s, "span", "dash", " - "); n.createWithHTML(s, "span", "node-name", `[${t.nodeName.toLowerCase()}]`); } - if (b.showIdOrNameInTitle && e.defined(t)) { + if (h.showIdOrNameInTitle && e.defined(t)) { const o = t.getAttribute("id"); const i = t.getAttribute("name"); if (e.definedString(o)) { @@ -357,52 +359,67 @@ var l; n.createWithHTML(s, "span", "id-or-name", i); } } - if (b.showLockButtonInTitle) { + if (h.showLockButtonInTitle) { a = n.createWithHTML(s, "button", "lock", o.text.dialogMovedSymbolText); a.title = o.text.lockText; - a.onclick = () => B(); + a.onclick = () => $(); } } } - function B() { - if (!A) { + function $() { + if (!L) { n.createWithHTML(s, "span", "locked", `${o.text.dialogMovedSymbolText}${" "}`, true); if (e.defined(a)) { a.parentNode.removeChild(a); a = null; } - A = true; + L = true; + } + } + function I(e = false) { + if (r.style.display !== "none") { + const t = () => { + r.style.display = "none"; + L = false; + f.value = ""; + ae(); + }; + if (e) { + if (b === 0) { + se(); + b = setTimeout((() => { + t(); + }), o.dialogHideDelay); + } + } else { + t(); + } } } - function $() { - r.style.display = "none"; - A = false; - f.value = ""; - } - function I() { + function D() { const e = []; - for (let t in S) { - if (S.hasOwnProperty(t)) { - if (b.mode === 1) { - e.push(`${t}: ${S[t]};`); - } else if (b.mode === 2) { - e.push(`${t}="${S[t]}"`); - } else if (b.mode === 4) { - e.push(S[t]); + for (let t in w) { + if (w.hasOwnProperty(t)) { + if (h.mode === 1) { + e.push(`${t}: ${w[t]};`); + } else if (h.mode === 2) { + e.push(`${t}="${w[t]}"`); + } else if (h.mode === 4) { + e.push(w[t]); } } } - if (b.mode === 1) { - navigator.clipboard.writeText(`${w.nodeName.toLowerCase()} { ${"\n"} ${e.join("\n")} ${"\n"} }`); - } else if (b.mode === 2 || b.mode === 4) { + if (h.mode === 1) { + navigator.clipboard.writeText(`${A.nodeName.toLowerCase()} { ${"\n"} ${e.join("\n")} ${"\n"} }`); + } else if (h.mode === 2 || h.mode === 4) { navigator.clipboard.writeText(e.join(" ")); } } - function D() { - w.parentNode.removeChild(w); - $(); - } function j() { + A.parentNode.removeChild(A); + I(); + } + function _() { if (u !== 0) { clearTimeout(u); u = 0; @@ -437,35 +454,35 @@ var l; } }), o.searchDelay); } - function _() { + function R() { f.value = ""; f.focus(); - j(); + _(); } - function R() { - if (w.parentNode !== null && w.previousElementSibling !== null) { - w.parentNode.insertBefore(w, w.previousElementSibling); + function U() { + if (A.parentNode !== null && A.previousElementSibling !== null) { + A.parentNode.insertBefore(A, A.previousElementSibling); } } - function U() { - if (w.parentNode !== null && w.nextElementSibling !== null) { - w.parentNode.insertBefore(w.nextElementSibling, w); + function V() { + if (A.parentNode !== null && A.nextElementSibling !== null) { + A.parentNode.insertBefore(A.nextElementSibling, A); } } - function V(t) { - if (e.defined(b)) { + function F(t) { + if (e.defined(h)) { d.innerHTML = ""; d.scrollTop = 0; - S = {}; - N = 0; - w = t; - W(t); - if (b.mode === 1 || b.mode === 4 || b.mode === 2) { + w = {}; + E = 0; + A = t; + B(t); + if (h.mode === 1 || h.mode === 4 || h.mode === 2) { g.style.removeProperty("display"); } else { g.style.display = "none"; } - if (!b.allowEditing) { + if (!h.allowEditing) { m.style.display = "none"; y.style.display = "none"; T.style.display = "none"; @@ -475,53 +492,53 @@ var l; T.style.removeProperty("display"); } p = n.createWithHTML(d, "span", "no-search-results", o.text.noPropertiesFoundForSearchText); - if (b.mode === 1) { - F(t); - } else if (b.mode === 2) { + if (h.mode === 1) { z(t); - } else if (b.mode === 3) { + } else if (h.mode === 2) { G(t); - } else if (b.mode === 4) { + } else if (h.mode === 3) { J(t); + } else if (h.mode === 4) { + K(t); } else { n.createWithHTML(d, "span", "warning", o.text.modeNotSupportedText); } - if (N <= 15) { + if (E <= 15) { c.style.display = "none"; } else { c.style.removeProperty("display"); } } } - function F(e) { + function z(e) { const t = getComputedStyle(e); const n = t.length; for (let o = 0; o < n; o++) { - K(e, t[o], t.getPropertyValue(t[o])); + X(e, t[o], t.getPropertyValue(t[o])); } } - function z(e) { + function G(e) { if (e.hasAttributes()) { for (let t of e.attributes) { - K(e, t.name, t.value); + X(e, t.name, t.value); } } else { d.innerHTML = ""; n.createWithHTML(d, "span", "warning", o.text.noAttributesAvailableText); } } - function G(e) { + function J(e) { const t = n.getOffset(e); - K(e, "left", `${t.left.toString()}px`, false); - K(e, "top", `${t.top.toString()}px`, false); - K(e, "width", `${e.offsetWidth.toString()}px`, false); - K(e, "height", `${e.offsetHeight.toString()}px`, false); + X(e, "left", `${t.left.toString()}px`, false); + X(e, "top", `${t.top.toString()}px`, false); + X(e, "width", `${e.offsetWidth.toString()}px`, false); + X(e, "height", `${e.offsetHeight.toString()}px`, false); } - function J(e) { + function K(e) { if (e.classList.length > 0) { let t = 1; for (let n of e.classList) { - K(e, t.toString(), n); + X(e, t.toString(), n); t++; } } else { @@ -529,8 +546,8 @@ var l; n.createWithHTML(d, "span", "warning", o.text.noClassesAvailableText); } } - function K(t, i, l, r = true) { - if (Z(i) && ee(l)) { + function X(t, i, l, r = true) { + if (ee(i) && te(l)) { const s = n.create(d, "div", "property-row"); n.createWithHTML(s, "div", "property-name", i); const a = n.create(s, "div", "property-value"); @@ -544,57 +561,57 @@ var l; const f = n.createWithHTML(s, "button", "copy-small", o.text.copySymbolText); f.title = o.text.copyText; f.onclick = () => navigator.clipboard.writeText(l); - if (b.allowEditing && r) { + if (h.allowEditing && r) { const e = n.createWithHTML(s, "button", "paste-small", o.text.pasteSymbolText); const r = n.createWithHTML(s, "button", "remove-small", o.text.removeSymbolText); e.title = o.text.pasteText; r.title = o.text.removeText; - e.onclick = () => X(t, c, i); - r.onclick = () => Y(s, t, i, l); + e.onclick = () => Y(t, c, i); + r.onclick = () => q(s, t, i, l); } c.type = "text"; c.value = l; - S[i] = l; - N++; - if (!b.allowEditing || !r) { + w[i] = l; + E++; + if (!h.allowEditing || !r) { c.readOnly = true; } else { - c.onkeyup = e => q(e, i, c, t); + c.onkeyup = e => Q(e, i, c, t); } } } - function X(e, t, n) { + function Y(e, t, n) { navigator.clipboard.readText().then((o => { t.value = o; - Q(e, n, t); + Z(e, n, t); })); } - function Y(e, t, n, o) { - if (b.mode === 1) { + function q(e, t, n, o) { + if (h.mode === 1) { t.style.removeProperty(n); e.parentNode.removeChild(e); - } else if (b.mode === 2) { + } else if (h.mode === 2) { t.removeAttribute(n); e.parentNode.removeChild(e); - } else if (b.mode === 4) { + } else if (h.mode === 4) { t.classList.remove(o); e.parentNode.removeChild(e); } } - function q(e, t, n, o) { + function Q(e, t, n, o) { if (e.code === "Enter") { - Q(o, t, n); + Z(o, t, n); } } - function Q(t, n, o) { - if (b.mode === 1) { + function Z(t, n, o) { + if (h.mode === 1) { t.style.setProperty(n, o.value); - } else if (b.mode === 2) { + } else if (h.mode === 2) { t.setAttribute(n, o.value); - } else if (b.mode === 4) { + } else if (h.mode === 4) { t.classList.replace(t.classList[parseInt(n) - 1], o.value); } - S[n] = o.value; + w[n] = o.value; if (e.hexColor(o.value) || e.isRgbColor(o.value)) { o.classList.add("property-value-color"); o.style.borderLeftColor = o.value; @@ -602,142 +619,149 @@ var l; o.classList.remove("property-value-color"); } } - function Z(e) { - return b.showOnly.length === 0 || b.showOnly.indexOf(e) > -1; - } function ee(e) { - return b.ignoreValues.length === 0 || b.ignoreValues.indexOf(e) <= -1; + return h.showOnly.length === 0 || h.showOnly.indexOf(e) > -1; + } + function te(e) { + return h.ignoreValues.length === 0 || h.ignoreValues.indexOf(e) <= -1; } - function te() { - const e = b.nodeType; - L = e.length; - for (let t = 0; t < L; t++) { + function ne() { + const e = h.nodeType; + N = e.length; + for (let t = 0; t < N; t++) { const n = document.getElementsByTagName(e[t]); const o = [].slice.call(n); const i = o.length; for (let e = 0; e < i; e++) { - ne(o[e]); + oe(o[e]); } } - window.addEventListener("mousemove", le); + window.addEventListener("mousemove", re); } - function ne(n) { + function oe(n) { const o = n.getAttribute(t.PEEK_JS_IGNORE_STATE_ATTRIBUTE); if (!e.definedString(o) && o !== "ignore") { n.addEventListener("mousemove", (e => { - ie(e, n); + le(e, n); })); - h.push(n); + S.push(n); } } - function oe() { - const e = h.length; + function ie() { + const e = S.length; for (let t = 0; t < e; t++) { - const e = h[t]; + const e = S[t]; e.removeEventListener("mousemove", (t => { - ie(t, e); + le(t, e); })); } - h = []; - window.removeEventListener("mousemove", le); - $(); + S = []; + window.removeEventListener("mousemove", re); + I(); } - function ie(t, i) { - if (!A && e.defined(b)) { + function le(t, i) { + if (!L && e.defined(h)) { n.cancelBubble(t); - re(); + se(); v = setTimeout((() => { - V(i); - n.showElementAtMousePosition(t, r, b.dialogOffset); + F(i); + ae(); + n.showElementAtMousePosition(t, r, h.dialogOffset); }), o.dialogShowDelay); } } - function le() { - if (!A) { - re(); - $(); + function re() { + if (!L) { + se(); + I(true); } } - function re() { + function se() { if (v !== 0) { clearTimeout(v); v = 0; } } - function se(e, t) { + function ae() { + if (b !== 0) { + clearTimeout(b); + b = 0; + } + } + function ce(e, t) { e.onmousedown = e => { - ae(e, t); + fe(e, t); }; t.onmousemove = e => { - fe(e, true); + de(e, true); }; e.onmouseup = () => { - ce(); + ue(); }; e.oncontextmenu = () => { - ce(); + ue(); }; - document.addEventListener("mousemove", fe); - document.addEventListener("mouseleave", ue); - } - function ae(e, t) { - if (!H) { - E = t; - H = true; - P = e.pageX - E.offsetLeft; - k = e.pageY - E.offsetTop; - O = E.offsetLeft; - M = E.offsetTop; - } - } - function ce() { - if (H) { - H = false; - E = null; - O = 0; + document.addEventListener("mousemove", de); + document.addEventListener("mouseleave", pe); + } + function fe(e, t) { + if (!P) { + O = t; + P = true; + k = e.pageX - O.offsetLeft; + C = e.pageY - O.offsetTop; + H = O.offsetLeft; + M = O.offsetTop; + } + } + function ue() { + if (P) { + P = false; + O = null; + H = 0; M = 0; } } - function fe(e, t = false) { + function de(e, t = false) { if (t) { n.cancelBubble(e); } - if (H) { - B(); - E.style.left = `${e.pageX - P}px`; - E.style.top = `${e.pageY - k}px`; + if (P) { + $(); + O.style.left = `${e.pageX - k}px`; + O.style.top = `${e.pageY - C}px`; } } - function ue() { - if (H) { - E.style.left = `${O}px`; - E.style.top = `${M}px`; - H = false; - E = null; - O = 0; + function pe() { + if (P) { + O.style.left = `${H}px`; + O.style.top = `${M}px`; + P = false; + O = null; + H = 0; M = 0; } } - const de = { + const xe = { start: function(t) { - if (!e.definedObject(b)) { - b = l.Options.get(t); - W(); - te(); + if (!e.definedObject(h)) { + h = l.Options.get(t); + B(); + ne(); } - return de; + return xe; }, stop: function() { - if (e.definedObject(b)) { - b = null; - re(); - oe(); + if (e.definedObject(h)) { + h = null; + se(); + ie(); } - return de; + return xe; }, close: function() { - $(); - return de; + I(); + return xe; }, setConfiguration: function(t) { if (e.definedObject(t)) { @@ -751,13 +775,13 @@ var l; } if (n) { o = i.Options.get(l); - C(); - if (e.definedObject(b)) { - W(); + W(); + if (e.definedObject(h)) { + B(); } } } - return de; + return xe; }, getVersion: function() { return "1.8.0"; @@ -766,10 +790,10 @@ var l; (() => { o = i.Options.get(); document.addEventListener("DOMContentLoaded", (() => { - C(); + W(); })); if (!e.defined(window.$peek)) { - window.$peek = de; + window.$peek = xe; } })(); })();//# sourceMappingURL=peek.js.map \ No newline at end of file diff --git a/dist/peek.js.map b/dist/peek.js.map index 6996f10..98367dc 100644 --- a/dist/peek.js.map +++ b/dist/peek.js.map @@ -1 +1 @@ -{"version":3,"sources":["/Users/williamtroup/Documents/GitHub%20Repos/Peek.js/dist/peek.js"],"names":["Is","Is2","defined","value","toString","definedObject","object","definedBoolean","definedString","definedFunction","definedNumber","definedArray","Array","definedDate","Date","invalidOptionArray","array","minimumLength","length","hexColor","valid","isNaN","substring","isRgbColor","startsWith","Constant","Constant2","PEEK_JS_IGNORE_STATE_ATTRIBUTE","DomElement","DomElement2","create","container","type","className","insertAtStart","nodeType","toLowerCase","isText","result","document","createTextNode","createElement","setAttribute","appendChild","insertBefore","children","createWithHTML","html","element","innerHTML","cancelBubble","e","preventDefault","stopPropagation","getScrollPosition","documentElement","left","scrollLeft","clientLeft","top","scrollTop","clientTop","showElementAtMousePosition","offset","style","display","pageX","pageY","scrollPosition","offsetWidth","window","innerWidth","offsetHeight","innerHeight","getOffset","offsetLeft","offsetTop","offsetParent","Default","Default2","getAnyString","defaultValue","getString","getBoolean","getNumber","getArray","getObject","getStringOrArray","values","split","Config","Config2","Options","Options2","get","newConfiguration","configuration","dialogShowDelay","searchDelay","getText","text","cssText","attributesText","sizeText","classesText","noAttributesAvailableText","closeText","copyText","copySymbolText","pasteText","pasteSymbolText","removeText","removeSymbolText","noClassesAvailableText","searchPropertiesPlaceHolderText","clearText","clearSymbolText","noPropertiesFoundForSearchText","dialogMovedSymbolText","propertyValuePlaceHolderText","modeNotSupportedText","unknownModeText","moveUpText","moveUpSymbolText","moveDownText","moveDownSymbolText","removeElementSymbolText","lockText","Start","Start2","newOptions","options","mode","titleText","showOnly","allowEditing","showIdOrNameInTitle","showNodeNameInTitle","ignoreValues","showLockButtonInTitle","dialogOffset","_configuration","_dialog","_dialog_Title","_dialog_Title_Button_Lock","_dialog_Search","_dialog_Search_Input","_dialog_Search_Input_TimerId","_dialog_Contents","_dialog_Contents_NoSearchResultsText","_dialog_Buttons","_dialog_Buttons_Copy","_dialog_Buttons_Remove","_dialog_Buttons_MoveUp","_dialog_Buttons_MoveDown","_dialog_TimerId","_current_Process_Options","_current_Process_Elements","_current_Process_Properties","_current_Process_Element","_current_Process_Locked","_current_Process_NodeCount","_current_Process_Properties_Count","_element_Dialog_Move","_element_Dialog_Move_Original_X","_element_Dialog_Move_Original_Y","_element_Dialog_Move_IsMoving","_element_Dialog_Move_X","_element_Dialog_Move_Y","buildDialog","closeDialog","body","removeChild","onmousemove","onclick","onCopy","placeholder","onkeyup","onSearchProperties","onpaste","onfocus","select","removeButton","title","onSearchPropertiesClear","closeButton","onRemove","onMoveUp","onMoveDown","makeDialogMovable","setDialogTitle","nodeName","id","getAttribute","name","setDialogAsLocked","parentNode","lines","propertyName","hasOwnProperty","push","navigator","clipboard","writeText","join","clearTimeout","setTimeout","getElementsByClassName","propertyNames","slice","call","propertyNamesLength","searchValue","propertiesFound","propertyNameIndex","parent","trim","removeProperty","propertyNameText","innerText","indexOf","focus","previousElementSibling","nextElementSibling","buildDialogContent","buildCssProperties","buildAttributeProperties","buildSizeProperties","buildClassProperties","computedStyles","getComputedStyle","computedStylesLength","styleIndex","buildPropertyRow","getPropertyValue","hasAttributes","attribute","attributes","classList","index","propertyValueText","isPropertyVisible","isPropertyValueVisible","property","propertyValue","propertyValueInput","add","borderLeftColor","copyButton","pasteButton","onPropertyPaste","onPropertyRemove","readOnly","onPropertyValueKeyUp","readText","then","data","updatePropertyValue","removeAttribute","remove","input","code","setProperty","replace","parseInt","buildNodeEvents","tagTypes","tagTypeIndex","domElements","getElementsByTagName","elements","elementsLength","elementIndex","buildNodeEvent","addEventListener","onWindowMove","attributeValue","onNodeMouseOver","removeNodeEvents","currentProcessElementsLength","removeEventListener","clearDialogShowTimer","titleBar","dialog","onmousedown","onMoveTitleBarMouseDown","onMoveDocumentMouseMove","onmouseup","onMoveTitleBarMouseUp","oncontextmenu","onMoveDocumentMouseLeave","_public","start","stop","close","setConfiguration","configurationHasChanged","newInternalConfiguration","getVersion","$peek"],"mappings":"AAAA;;AAGA,IAAIA;;AACJ,CAAEC;IACA,SAASC,EAAQC;QACf,OAAOA,MAAU,QAAQA,WAAe,KAAKA,EAAMC,eAAe;AACpE;IACAH,EAAIC,UAAUA;IACd,SAASG,EAAcC;QACrB,OAAOJ,EAAQI,aAAkBA,MAAW;AAC9C;IACAL,EAAII,gBAAgBA;IACpB,SAASE,EAAeD;QACtB,OAAOJ,EAAQI,aAAkBA,MAAW;AAC9C;IACAL,EAAIM,iBAAiBA;IACrB,SAASC,EAAcF;QACrB,OAAOJ,EAAQI,aAAkBA,MAAW;AAC9C;IACAL,EAAIO,gBAAgBA;IACpB,SAASC,EAAgBH;QACvB,OAAOJ,EAAQI,aAAkBA,MAAW;AAC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H;QACP,IAAI5H,GAA+B;YACjCH,EAAqBnG,MAAMR,OAAO,GAAG4G;YACrCD,EAAqBnG,MAAML,MAAM,GAAG0G;YACpCC,IAAgC;YAChCH,IAAuB;YACvBC,IAAkC;YAClCC,IAAkC;AACpC;AACF;IACA,MAAM8H,KAAU;QAMdC,OAAO,SAASjK;YACd,KAAKnI,EAAGK,cAAcuJ,IAA2B;gBAC/CA,IAA2B5B,EAAMpC,QAAQE,IAAIqC;gBAC7C2D;gBACA2E;AACF;YACA,OAAO0B;AACT;QACAE,MAAM;YACJ,IAAIrS,EAAGK,cAAcuJ,IAA2B;gBAC9CA,IAA2B;gBAC3B6H;gBACAH;AACF;YACA,OAAOa;AACT;QACAG,OAAO;YACL5H;YACA,OAAOyH;AACT;QAMAI,kBAAkB,SAASxM;YACzB,IAAI/F,EAAGK,cAAc0F,IAAmB;gBACtC,IAAIyM,IAA0B;gBAC9B,MAAMC,IAA2B5J;gBACjC,KAAK,IAAIyD,KAAgBvG,GAAkB;oBACzC,IAAIA,EAAiBwG,eAAeD,MAAiBzD,EAAe0D,eAAeD,MAAiBmG,EAAyBnG,OAAkBvG,EAAiBuG,IAAe;wBAC7KmG,EAAyBnG,KAAgBvG,EAAiBuG;wBAC1DkG,IAA0B;AAC5B;AACF;gBACA,IAAIA,GAAyB;oBAC3B3J,IAAiBnD,EAAOE,QAAQE,IAAI2M;oBACpChI;oBACA,IAAIzK,EAAGK,cAAcuJ,IAA2B;wBAC9CkC;AACF;AACF;AACF;YACA,OAAOqG;AACT;QAMAO,YAAY;YACV,OAAO;AACT;;IAEF;QACE7J,IAAiBnD,EAAOE,QAAQE;QAChCvD,SAAS2O,iBAAiB,qBAAoB;YAC5CzG;AAAa;QAEf,KAAKzK,EAAGE,QAAQoE,OAAOqO,QAAQ;YAC7BrO,OAAOqO,QAAQR;AACjB;AACD,MARD;AASD,EAhhBD","sourcesContent":[null]} \ No newline at end of file +{"version":3,"sources":["/Users/williamtroup/Documents/GitHub%20Repos/Peek.js/dist/peek.js"],"names":["Is","Is2","defined","value","toString","definedObject","object","definedBoolean","definedString","definedFunction","definedNumber","definedArray","Array","definedDate","Date","invalidOptionArray","array","minimumLength","length","hexColor","valid","isNaN","substring","isRgbColor","startsWith","Constant","Constant2","PEEK_JS_IGNORE_STATE_ATTRIBUTE","DomElement","DomElement2","create","container","type","className","insertAtStart","nodeType","toLowerCase","isText","result","document","createTextNode","createElement","setAttribute","appendChild","insertBefore","children","createWithHTML","html","element","innerHTML","cancelBubble","e","preventDefault","stopPropagation","getScrollPosition","documentElement","left","scrollLeft","clientLeft","top","scrollTop","clientTop","showElementAtMousePosition","offset","style","display","pageX","pageY","scrollPosition","offsetWidth","window","innerWidth","offsetHeight","innerHeight","getOffset","offsetLeft","offsetTop","offsetParent","Default","Default2","getAnyString","defaultValue","getString","getBoolean","getNumber","getArray","getObject","getStringOrArray","values","split","Config","Config2","Options","Options2","get","newConfiguration","configuration","dialogShowDelay","dialogHideDelay","searchDelay","getText","text","cssText","attributesText","sizeText","classesText","noAttributesAvailableText","closeText","copyText","copySymbolText","pasteText","pasteSymbolText","removeText","removeSymbolText","noClassesAvailableText","searchPropertiesPlaceHolderText","clearText","clearSymbolText","noPropertiesFoundForSearchText","dialogMovedSymbolText","propertyValuePlaceHolderText","modeNotSupportedText","unknownModeText","moveUpText","moveUpSymbolText","moveDownText","moveDownSymbolText","removeElementSymbolText","lockText","Start","Start2","newOptions","options","mode","titleText","showOnly","allowEditing","showIdOrNameInTitle","showNodeNameInTitle","ignoreValues","showLockButtonInTitle","dialogOffset","_configuration","_dialog","_dialog_Title","_dialog_Title_Button_Lock","_dialog_Search","_dialog_Search_Input","_dialog_Search_Input_TimerId","_dialog_Contents","_dialog_Contents_NoSearchResultsText","_dialog_Buttons","_dialog_Buttons_Copy","_dialog_Buttons_Remove","_dialog_Buttons_MoveUp","_dialog_Buttons_MoveDown","_dialog_Show_TimerId","_dialog_Hide_TimerId","_current_Process_Options","_current_Process_Elements","_current_Process_Properties","_current_Process_Element","_current_Process_Locked","_current_Process_NodeCount","_current_Process_Properties_Count","_element_Dialog_Move","_element_Dialog_Move_Original_X","_element_Dialog_Move_Original_Y","_element_Dialog_Move_IsMoving","_element_Dialog_Move_X","_element_Dialog_Move_Y","buildDialog","closeDialog","body","removeChild","onmousemove","onclick","onCopy","placeholder","onkeyup","onSearchProperties","onpaste","onfocus","select","removeButton","title","onSearchPropertiesClear","closeButton","onRemove","onMoveUp","onMoveDown","makeDialogMovable","setDialogTitle","nodeName","id","getAttribute","name","setDialogAsLocked","parentNode","useDelay","closeFunc","clearDialogHideTimer","clearDialogShowTimer","setTimeout","lines","propertyName","hasOwnProperty","push","navigator","clipboard","writeText","join","clearTimeout","getElementsByClassName","propertyNames","slice","call","propertyNamesLength","searchValue","propertiesFound","propertyNameIndex","parent","trim","removeProperty","propertyNameText","innerText","indexOf","focus","previousElementSibling","nextElementSibling","buildDialogContent","buildCssProperties","buildAttributeProperties","buildSizeProperties","buildClassProperties","computedStyles","getComputedStyle","computedStylesLength","styleIndex","buildPropertyRow","getPropertyValue","hasAttributes","attribute","attributes","classList","index","propertyValueText","isPropertyVisible","isPropertyValueVisible","property","propertyValue","propertyValueInput","add","borderLeftColor","copyButton","pasteButton","onPropertyPaste","onPropertyRemove","readOnly","onPropertyValueKeyUp","readText","then","data","updatePropertyValue","removeAttribute","remove","input","code","setProperty","replace","parseInt","buildNodeEvents","tagTypes","tagTypeIndex","domElements","getElementsByTagName","elements","elementsLength","elementIndex","buildNodeEvent","addEventListener","onWindowMove","attributeValue","onNodeMouseOver","removeNodeEvents","currentProcessElementsLength","removeEventListener","titleBar","dialog","onmousedown","onMoveTitleBarMouseDown","onMoveDocumentMouseMove","onmouseup","onMoveTitleBarMouseUp","oncontextmenu","onMoveDocumentMouseLeave","_public","start","stop","close","setConfiguration","configurationHasChanged","newInternalConfiguration","getVersion","$peek"],"mappings":"AAAA;;AAGA,IAAIA;;AACJ,CAAEC;IACA,SAASC,EAAQC;QACf,OAAO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ACAG,OAAO;YACL/H;YACA,OAAO4H;AACT;QAMAI,kBAAkB,SAAS7M;YACzB,IAAI/F,EAAGK,cAAc0F,IAAmB;gBACtC,IAAI8M,IAA0B;gBAC9B,MAAMC,IAA2BhK;gBACjC,KAAK,IAAI+D,KAAgB9G,GAAkB;oBACzC,IAAIA,EAAiB+G,eAAeD,MAAiB/D,EAAegE,eAAeD,MAAiBiG,EAAyBjG,OAAkB9G,EAAiB8G,IAAe;wBAC7KiG,EAAyBjG,KAAgB9G,EAAiB8G;wBAC1DgG,IAA0B;AAC5B;AACF;gBACA,IAAIA,GAAyB;oBAC3B/J,IAAiBpD,EAAOE,QAAQE,IAAIgN;oBACpCnI;oBACA,IAAI3K,EAAGK,cAAcyJ,IAA2B;wBAC9CkC;AACF;AACF;AACF;YACA,OAAOwG;AACT;QAMAO,YAAY;YACV,OAAO;AACT;;IAEF;QACEjK,IAAiBpD,EAAOE,QAAQE;QAChCvD,SAASiP,iBAAiB,qBAAoB;YAC5C7G;AAAa;QAEf,KAAK3K,EAAGE,QAAQoE,OAAO0O,QAAQ;YAC7B1O,OAAO0O,QAAQR;AACjB;AACD,MARD;AASD,EAviBD","sourcesContent":[null]} \ No newline at end of file diff --git a/dist/peek.min.js b/dist/peek.min.js index 5daff2d..2cc5aa0 100644 --- a/dist/peek.min.js +++ b/dist/peek.min.js @@ -1 +1 @@ -"use strict";var e,t,n,o,r,i;(e=>{function t(e){return null!=e&&""!==e.toString()}function n(e){return t(e)&&"object"==typeof e}function o(e){return n(e)&&e instanceof Array}e.defined=t,e.definedObject=n,e.definedBoolean=function(e){return t(e)&&"boolean"==typeof e},e.definedString=function(e){return t(e)&&"string"==typeof e},e.definedFunction=function(e){return t(e)&&"function"==typeof e},e.definedNumber=function(e){return t(e)&&"number"==typeof e},e.definedArray=o,e.definedDate=function(e){return n(e)&&e instanceof Date},e.invalidOptionArray=function(e,t=1){return!o(e)||e.length=2&&e.length<=7;return t=!(!t||"#"!==e[0])&&isNaN(+e.substring(1,e.length-1)),t},e.isRgbColor=function(e){return e.startsWith("rgb")||e.startsWith("rgba")}})(e||(e={})),(t||(t={})).PEEK_JS_IGNORE_STATE_ATTRIBUTE="data-peek-js-ignore-state",(n=>{function o(n,o,r="",i=!1){const l=o.toLowerCase();let s="text"===l?document.createTextNode(""):document.createElement(l);return s.setAttribute(t.PEEK_JS_IGNORE_STATE_ATTRIBUTE,"ignore"),e.definedString(r)&&(s.className=r),i?n.insertBefore(s,n.children[0]):n.appendChild(s),s}function r(){const e=document.documentElement;return{left:e.scrollLeft-(e.clientLeft||0),top:e.scrollTop-(e.clientTop||0)}}n.create=o,n.createWithHTML=function(e,n,r,i,l=!1){const s=o(e,n,r,l);return s.innerHTML=i,s.setAttribute(t.PEEK_JS_IGNORE_STATE_ATTRIBUTE,"ignore"),s},n.cancelBubble=function(e){e.preventDefault(),e.stopPropagation()},n.getScrollPosition=r,n.showElementAtMousePosition=function(e,t,n){if("block"!==t.style.display){let o=e.pageX,i=e.pageY;const l=r();t.style.display="block",o+t.offsetWidth>window.innerWidth?o-=t.offsetWidth+n:(o++,o+=n),i+t.offsetHeight>window.innerHeight?i-=t.offsetHeight+n:(i++,i+=n),o{function n(t,n){return e.definedArray(t)?t:n}t.getAnyString=function(e,t){return"string"==typeof e?e:t},t.getString=function(t,n){return e.definedString(t)?t:n},t.getBoolean=function(t,n){return e.definedBoolean(t)?t:n},t.getNumber=function(t,n){return e.definedNumber(t)?t:n},t.getArray=n,t.getObject=function(t,n){return e.definedObject(t)?t:n},t.getStringOrArray=function(t,o){let r=o;if(e.definedString(t)){const e=t.toString().split(" ");0===e.length?t=o:r=e}else r=n(t,o);return r}})(o||(o={})),(e=>{let t;(t=e.Options||(e.Options={})).get=function(e=null){let t=o.getObject(e,{});return t.dialogShowDelay=o.getNumber(t.dialogShowDelay,1e3),t.searchDelay=o.getNumber(t.searchDelay,500),t=function(e){return e.text=o.getObject(e.text,{}),e.text.cssText=o.getAnyString(e.text.cssText,"CSS"),e.text.attributesText=o.getAnyString(e.text.attributesText,"Attributes"),e.text.sizeText=o.getAnyString(e.text.sizeText,"Size"),e.text.classesText=o.getAnyString(e.text.classesText,"Classes"),e.text.noAttributesAvailableText=o.getAnyString(e.text.noAttributesAvailableText,"No attributes are available."),e.text.closeText=o.getAnyString(e.text.closeText,"Close"),e.text.copyText=o.getAnyString(e.text.copyText,"Copy"),e.text.copySymbolText=o.getAnyString(e.text.copySymbolText,"❐"),e.text.pasteText=o.getAnyString(e.text.pasteText,"Paste"),e.text.pasteSymbolText=o.getAnyString(e.text.pasteSymbolText,"☐"),e.text.removeText=o.getAnyString(e.text.removeText,"Remove"),e.text.removeSymbolText=o.getAnyString(e.text.removeSymbolText,"✕"),e.text.noClassesAvailableText=o.getAnyString(e.text.noClassesAvailableText,"No classes are available."),e.text.searchPropertiesPlaceHolderText=o.getAnyString(e.text.searchPropertiesPlaceHolderText,"Search properties..."),e.text.clearText=o.getAnyString(e.text.clearText,"Clear"),e.text.clearSymbolText=o.getAnyString(e.text.clearSymbolText,"✕"),e.text.noPropertiesFoundForSearchText=o.getAnyString(e.text.noPropertiesFoundForSearchText,"No properties were found for your search."),e.text.dialogMovedSymbolText=o.getAnyString(e.text.dialogMovedSymbolText,"✸"),e.text.propertyValuePlaceHolderText=o.getAnyString(e.text.propertyValuePlaceHolderText,"Enter value..."),e.text.modeNotSupportedText=o.getAnyString(e.text.modeNotSupportedText,"The mode you have specified is not supported."),e.text.unknownModeText=o.getAnyString(e.text.unknownModeText,"Unknown Mode"),e.text.moveUpText=o.getAnyString(e.text.moveUpText,"Move Up"),e.text.moveUpSymbolText=o.getAnyString(e.text.moveUpSymbolText,"↑"),e.text.moveDownText=o.getAnyString(e.text.moveDownText,"Move Down"),e.text.moveDownSymbolText=o.getAnyString(e.text.moveDownSymbolText,"↓"),e.text.removeElementSymbolText=o.getAnyString(e.text.removeElementSymbolText,"⌫"),e.text.lockText=o.getAnyString(e.text.lockText,"Lock"),e}(t),t}})(r||(r={})),(e=>{let t;(t=e.Options||(e.Options={})).get=function(e){let t=o.getObject(e,{});return t.nodeType=o.getStringOrArray(t.nodeType,[]),t.mode=o.getNumber(t.mode,1),t.titleText=o.getString(t.titleText,""),t.showOnly=o.getStringOrArray(t.showOnly,[]),t.allowEditing=o.getBoolean(t.allowEditing,!1),t.showIdOrNameInTitle=o.getBoolean(t.showIdOrNameInTitle,!0),t.showNodeNameInTitle=o.getBoolean(t.showNodeNameInTitle,!1),t.ignoreValues=o.getStringOrArray(t.ignoreValues,[]),t.showLockButtonInTitle=o.getBoolean(t.showLockButtonInTitle,!0),t.dialogOffset=o.getNumber(t.dialogOffset,0),t}})(i||(i={})),(()=>{let o={},l=null,s=null,a=null,c=null,d=null,u=0,p=null,x=null,f=null,g=null,m=null,y=null,T=null,v=0,b=null,h=[],S={},w=null,A=!1,L=0,N=0,E=null,O=0,M=0,H=!1,P=0,k=0;function C(){e.definedObject(l)&&(I(),document.body.removeChild(l),l=null),l=n.create(document.body,"div","peek-js"),l.onmousemove=n.cancelBubble,s=n.create(l,"div","dialog-title-bar"),c=n.create(l,"div","dialog-search"),p=n.create(l,"div","dialog-contents"),f=n.create(l,"div","dialog-buttons"),g=n.createWithHTML(f,"button","copy",o.text.copyText),g.onclick=$,d=n.create(c,"input"),d.placeholder=o.text.searchPropertiesPlaceHolderText,d.type="text",d.onkeyup=j,d.onpaste=j,d.onfocus=()=>d.select();const t=n.createWithHTML(c,"button","clear-small",o.text.clearSymbolText);t.title=o.text.clearText,t.onclick=_;var r,i;n.createWithHTML(f,"button","close",o.text.closeText).onclick=I,m=n.createWithHTML(f,"button","remove",o.text.removeElementSymbolText),m.onclick=D,m.title=o.text.removeText,y=n.createWithHTML(f,"button","move-up",o.text.moveUpSymbolText),y.onclick=R,y.title=o.text.moveUpText,T=n.createWithHTML(f,"button","move-down",o.text.moveDownSymbolText),T.onclick=U,T.title=o.text.moveDownText,i=l,(r=s).onmousedown=e=>{!function(e,t){H||(E=t,H=!0,P=e.pageX-E.offsetLeft,k=e.pageY-E.offsetTop,O=E.offsetLeft,M=E.offsetTop)}(e,i)},i.onmousemove=e=>{q(e,!0)},r.onmouseup=()=>{Y()},r.oncontextmenu=()=>{Y()},document.addEventListener("mousemove",q),document.addEventListener("mouseleave",Q)}function W(t=null){if(!A&&e.defined(b)){let r=b.titleText;if(s.innerHTML="",e.definedString(r)||(r=1===b.mode?o.text.cssText:2===b.mode?o.text.attributesText:3===b.mode?o.text.sizeText:4===b.mode?o.text.classesText:o.text.unknownModeText),n.createWithHTML(s,"span","title",r),L>1&&b.showNodeNameInTitle&&(n.createWithHTML(s,"span","dash"," - "),n.createWithHTML(s,"span","node-name",`[${t.nodeName.toLowerCase()}]`)),b.showIdOrNameInTitle&&e.defined(t)){const o=t.getAttribute("id"),r=t.getAttribute("name");e.definedString(o)?(n.createWithHTML(s,"span","dash"," - "),n.createWithHTML(s,"span","id-or-name",o)):e.definedString(r)&&(n.createWithHTML(s,"span","dash"," - "),n.createWithHTML(s,"span","id-or-name",r))}b.showLockButtonInTitle&&(a=n.createWithHTML(s,"button","lock",o.text.dialogMovedSymbolText),a.title=o.text.lockText,a.onclick=()=>B())}}function B(){A||(n.createWithHTML(s,"span","locked",`${o.text.dialogMovedSymbolText} `,!0),e.defined(a)&&(a.parentNode.removeChild(a),a=null),A=!0)}function I(){l.style.display="none",A=!1,d.value=""}function $(){const e=[];for(let t in S)S.hasOwnProperty(t)&&(1===b.mode?e.push(`${t}: ${S[t]};`):2===b.mode?e.push(`${t}="${S[t]}"`):4===b.mode&&e.push(S[t]));1===b.mode?navigator.clipboard.writeText(`${w.nodeName.toLowerCase()} { \n ${e.join("\n")} \n }`):2!==b.mode&&4!==b.mode||navigator.clipboard.writeText(e.join(" "))}function D(){w.parentNode.removeChild(w),I()}function j(){0!==u&&(clearTimeout(u),u=0),u=setTimeout((()=>{const t=p.getElementsByClassName("property-name"),n=[].slice.call(t),o=n.length,r=d.value.toLowerCase();let i=0;for(let t=0;t-1?(o.style.removeProperty("display"),i++):o.style.display="none"}}0===i?x.style.display="block":x.style.removeProperty("display")}),o.searchDelay)}function _(){d.value="",d.focus(),j()}function R(){null!==w.parentNode&&null!==w.previousElementSibling&&w.parentNode.insertBefore(w,w.previousElementSibling)}function U(){null!==w.parentNode&&null!==w.nextElementSibling&&w.parentNode.insertBefore(w.nextElementSibling,w)}function V(t){e.defined(b)&&(p.innerHTML="",p.scrollTop=0,S={},N=0,w=t,W(t),1===b.mode||4===b.mode||2===b.mode?g.style.removeProperty("display"):g.style.display="none",b.allowEditing?(m.style.removeProperty("display"),y.style.removeProperty("display"),T.style.removeProperty("display")):(m.style.display="none",y.style.display="none",T.style.display="none"),x=n.createWithHTML(p,"span","no-search-results",o.text.noPropertiesFoundForSearchText),1===b.mode?function(e){const t=getComputedStyle(e),n=t.length;for(let o=0;o0){let t=1;for(let n of e.classList)F(e,t.toString(),n),t++}else p.innerHTML="",n.createWithHTML(p,"span","warning",o.text.noClassesAvailableText)}(t):n.createWithHTML(p,"span","warning",o.text.modeNotSupportedText),N<=15?c.style.display="none":c.style.removeProperty("display"))}function F(t,r,i,l=!0){if(function(e){return 0===b.showOnly.length||b.showOnly.indexOf(e)>-1}(r)&&function(e){return 0===b.ignoreValues.length||b.ignoreValues.indexOf(e)<=-1}(i)){const s=n.create(p,"div","property-row");n.createWithHTML(s,"div","property-name",r);const a=n.create(s,"div","property-value"),c=n.create(a,"input");(e.hexColor(i)||e.isRgbColor(i))&&(c.classList.add("property-value-color"),c.style.borderLeftColor=i),c.placeholder=o.text.propertyValuePlaceHolderText,c.onfocus=()=>c.select();const d=n.createWithHTML(s,"button","copy-small",o.text.copySymbolText);if(d.title=o.text.copyText,d.onclick=()=>navigator.clipboard.writeText(i),b.allowEditing&&l){const e=n.createWithHTML(s,"button","paste-small",o.text.pasteSymbolText),l=n.createWithHTML(s,"button","remove-small",o.text.removeSymbolText);e.title=o.text.pasteText,l.title=o.text.removeText,e.onclick=()=>function(e,t,n){navigator.clipboard.readText().then((o=>{t.value=o,z(e,n,t)}))}(t,c,r),l.onclick=()=>function(e,t,n,o){1===b.mode?(t.style.removeProperty(n),e.parentNode.removeChild(e)):2===b.mode?(t.removeAttribute(n),e.parentNode.removeChild(e)):4===b.mode&&(t.classList.remove(o),e.parentNode.removeChild(e))}(s,t,r,i)}c.type="text",c.value=i,S[r]=i,N++,b.allowEditing&&l?c.onkeyup=e=>function(e,t,n,o){"Enter"===e.code&&z(o,t,n)}(e,r,c,t):c.readOnly=!0}}function z(t,n,o){1===b.mode?t.style.setProperty(n,o.value):2===b.mode?t.setAttribute(n,o.value):4===b.mode&&t.classList.replace(t.classList[parseInt(n)-1],o.value),S[n]=o.value,e.hexColor(o.value)||e.isRgbColor(o.value)?(o.classList.add("property-value-color"),o.style.borderLeftColor=o.value):o.classList.remove("property-value-color")}function G(n){const o=n.getAttribute(t.PEEK_JS_IGNORE_STATE_ATTRIBUTE);e.definedString(o)||"ignore"===o||(n.addEventListener("mousemove",(e=>{J(e,n)})),h.push(n))}function J(t,r){!A&&e.defined(b)&&(n.cancelBubble(t),X(),v=setTimeout((()=>{V(r),n.showElementAtMousePosition(t,l,b.dialogOffset)}),o.dialogShowDelay))}function K(){A||(X(),I())}function X(){0!==v&&(clearTimeout(v),v=0)}function Y(){H&&(H=!1,E=null,O=0,M=0)}function q(e,t=!1){t&&n.cancelBubble(e),H&&(B(),E.style.left=e.pageX-P+"px",E.style.top=e.pageY-k+"px")}function Q(){H&&(E.style.left=`${O}px`,E.style.top=`${M}px`,H=!1,E=null,O=0,M=0)}const Z={start:function(t){return e.definedObject(b)||(b=i.Options.get(t),W(),function(){const e=b.nodeType;L=e.length;for(let t=0;t{J(t,e)}))}h=[],window.removeEventListener("mousemove",K),I()}()),Z},close:function(){return I(),Z},setConfiguration:function(t){if(e.definedObject(t)){let n=!1;const i=o;for(let e in t)t.hasOwnProperty(e)&&o.hasOwnProperty(e)&&i[e]!==t[e]&&(i[e]=t[e],n=!0);n&&(o=r.Options.get(i),C(),e.definedObject(b)&&W())}return Z},getVersion:function(){return"1.8.0"}};o=r.Options.get(),document.addEventListener("DOMContentLoaded",(()=>{C()})),e.defined(window.$peek)||(window.$peek=Z)})(); \ No newline at end of file +"use strict";var e,t,n,o,r,i;(e=>{function t(e){return null!=e&&""!==e.toString()}function n(e){return t(e)&&"object"==typeof e}function o(e){return n(e)&&e instanceof Array}e.defined=t,e.definedObject=n,e.definedBoolean=function(e){return t(e)&&"boolean"==typeof e},e.definedString=function(e){return t(e)&&"string"==typeof e},e.definedFunction=function(e){return t(e)&&"function"==typeof e},e.definedNumber=function(e){return t(e)&&"number"==typeof e},e.definedArray=o,e.definedDate=function(e){return n(e)&&e instanceof Date},e.invalidOptionArray=function(e,t=1){return!o(e)||e.length=2&&e.length<=7;return t=!(!t||"#"!==e[0])&&isNaN(+e.substring(1,e.length-1)),t},e.isRgbColor=function(e){return e.startsWith("rgb")||e.startsWith("rgba")}})(e||(e={})),(t||(t={})).PEEK_JS_IGNORE_STATE_ATTRIBUTE="data-peek-js-ignore-state",(n=>{function o(n,o,r="",i=!1){const l=o.toLowerCase();let s="text"===l?document.createTextNode(""):document.createElement(l);return s.setAttribute(t.PEEK_JS_IGNORE_STATE_ATTRIBUTE,"ignore"),e.definedString(r)&&(s.className=r),i?n.insertBefore(s,n.children[0]):n.appendChild(s),s}function r(){const e=document.documentElement;return{left:e.scrollLeft-(e.clientLeft||0),top:e.scrollTop-(e.clientTop||0)}}n.create=o,n.createWithHTML=function(e,n,r,i,l=!1){const s=o(e,n,r,l);return s.innerHTML=i,s.setAttribute(t.PEEK_JS_IGNORE_STATE_ATTRIBUTE,"ignore"),s},n.cancelBubble=function(e){e.preventDefault(),e.stopPropagation()},n.getScrollPosition=r,n.showElementAtMousePosition=function(e,t,n){if("block"!==t.style.display){let o=e.pageX,i=e.pageY;const l=r();t.style.display="block",o+t.offsetWidth>window.innerWidth?o-=t.offsetWidth+n:(o++,o+=n),i+t.offsetHeight>window.innerHeight?i-=t.offsetHeight+n:(i++,i+=n),o{function n(t,n){return e.definedArray(t)?t:n}t.getAnyString=function(e,t){return"string"==typeof e?e:t},t.getString=function(t,n){return e.definedString(t)?t:n},t.getBoolean=function(t,n){return e.definedBoolean(t)?t:n},t.getNumber=function(t,n){return e.definedNumber(t)?t:n},t.getArray=n,t.getObject=function(t,n){return e.definedObject(t)?t:n},t.getStringOrArray=function(t,o){let r=o;if(e.definedString(t)){const e=t.toString().split(" ");0===e.length?t=o:r=e}else r=n(t,o);return r}})(o||(o={})),(e=>{let t;(t=e.Options||(e.Options={})).get=function(e=null){let t=o.getObject(e,{});return t.dialogShowDelay=o.getNumber(t.dialogShowDelay,1e3),t.dialogHideDelay=o.getNumber(t.dialogHideDelay,500),t.searchDelay=o.getNumber(t.searchDelay,500),t=function(e){return e.text=o.getObject(e.text,{}),e.text.cssText=o.getAnyString(e.text.cssText,"CSS"),e.text.attributesText=o.getAnyString(e.text.attributesText,"Attributes"),e.text.sizeText=o.getAnyString(e.text.sizeText,"Size"),e.text.classesText=o.getAnyString(e.text.classesText,"Classes"),e.text.noAttributesAvailableText=o.getAnyString(e.text.noAttributesAvailableText,"No attributes are available."),e.text.closeText=o.getAnyString(e.text.closeText,"Close"),e.text.copyText=o.getAnyString(e.text.copyText,"Copy"),e.text.copySymbolText=o.getAnyString(e.text.copySymbolText,"❐"),e.text.pasteText=o.getAnyString(e.text.pasteText,"Paste"),e.text.pasteSymbolText=o.getAnyString(e.text.pasteSymbolText,"☐"),e.text.removeText=o.getAnyString(e.text.removeText,"Remove"),e.text.removeSymbolText=o.getAnyString(e.text.removeSymbolText,"✕"),e.text.noClassesAvailableText=o.getAnyString(e.text.noClassesAvailableText,"No classes are available."),e.text.searchPropertiesPlaceHolderText=o.getAnyString(e.text.searchPropertiesPlaceHolderText,"Search properties..."),e.text.clearText=o.getAnyString(e.text.clearText,"Clear"),e.text.clearSymbolText=o.getAnyString(e.text.clearSymbolText,"✕"),e.text.noPropertiesFoundForSearchText=o.getAnyString(e.text.noPropertiesFoundForSearchText,"No properties were found for your search."),e.text.dialogMovedSymbolText=o.getAnyString(e.text.dialogMovedSymbolText,"✸"),e.text.propertyValuePlaceHolderText=o.getAnyString(e.text.propertyValuePlaceHolderText,"Enter value..."),e.text.modeNotSupportedText=o.getAnyString(e.text.modeNotSupportedText,"The mode you have specified is not supported."),e.text.unknownModeText=o.getAnyString(e.text.unknownModeText,"Unknown Mode"),e.text.moveUpText=o.getAnyString(e.text.moveUpText,"Move Up"),e.text.moveUpSymbolText=o.getAnyString(e.text.moveUpSymbolText,"↑"),e.text.moveDownText=o.getAnyString(e.text.moveDownText,"Move Down"),e.text.moveDownSymbolText=o.getAnyString(e.text.moveDownSymbolText,"↓"),e.text.removeElementSymbolText=o.getAnyString(e.text.removeElementSymbolText,"⌫"),e.text.lockText=o.getAnyString(e.text.lockText,"Lock"),e}(t),t}})(r||(r={})),(e=>{let t;(t=e.Options||(e.Options={})).get=function(e){let t=o.getObject(e,{});return t.nodeType=o.getStringOrArray(t.nodeType,[]),t.mode=o.getNumber(t.mode,1),t.titleText=o.getString(t.titleText,""),t.showOnly=o.getStringOrArray(t.showOnly,[]),t.allowEditing=o.getBoolean(t.allowEditing,!1),t.showIdOrNameInTitle=o.getBoolean(t.showIdOrNameInTitle,!0),t.showNodeNameInTitle=o.getBoolean(t.showNodeNameInTitle,!1),t.ignoreValues=o.getStringOrArray(t.ignoreValues,[]),t.showLockButtonInTitle=o.getBoolean(t.showLockButtonInTitle,!0),t.dialogOffset=o.getNumber(t.dialogOffset,0),t}})(i||(i={})),(()=>{let o={},l=null,s=null,a=null,c=null,d=null,u=0,p=null,f=null,x=null,g=null,m=null,y=null,T=null,v=0,b=0,h=null,S=[],w={},A=null,L=!1,N=0,E=0,O=null,H=0,M=0,P=!1,k=0,C=0;function W(){e.definedObject(l)&&(D(),document.body.removeChild(l),l=null),l=n.create(document.body,"div","peek-js"),l.onmousemove=n.cancelBubble,s=n.create(l,"div","dialog-title-bar"),c=n.create(l,"div","dialog-search"),p=n.create(l,"div","dialog-contents"),x=n.create(l,"div","dialog-buttons"),g=n.createWithHTML(x,"button","copy",o.text.copyText),g.onclick=$,d=n.create(c,"input"),d.placeholder=o.text.searchPropertiesPlaceHolderText,d.type="text",d.onkeyup=_,d.onpaste=_,d.onfocus=()=>d.select();const t=n.createWithHTML(c,"button","clear-small",o.text.clearSymbolText);t.title=o.text.clearText,t.onclick=R;var r,i;n.createWithHTML(x,"button","close",o.text.closeText).onclick=()=>D(),m=n.createWithHTML(x,"button","remove",o.text.removeElementSymbolText),m.onclick=j,m.title=o.text.removeText,y=n.createWithHTML(x,"button","move-up",o.text.moveUpSymbolText),y.onclick=U,y.title=o.text.moveUpText,T=n.createWithHTML(x,"button","move-down",o.text.moveDownSymbolText),T.onclick=V,T.title=o.text.moveDownText,i=l,(r=s).onmousedown=e=>{!function(e,t){P||(O=t,P=!0,k=e.pageX-O.offsetLeft,C=e.pageY-O.offsetTop,H=O.offsetLeft,M=O.offsetTop)}(e,i)},i.onmousemove=e=>{Z(e,!0)},r.onmouseup=()=>{Q()},r.oncontextmenu=()=>{Q()},document.addEventListener("mousemove",Z),document.addEventListener("mouseleave",ee)}function B(t=null){if(!L&&e.defined(h)){let r=h.titleText;if(s.innerHTML="",e.definedString(r)||(r=1===h.mode?o.text.cssText:2===h.mode?o.text.attributesText:3===h.mode?o.text.sizeText:4===h.mode?o.text.classesText:o.text.unknownModeText),n.createWithHTML(s,"span","title",r),N>1&&h.showNodeNameInTitle&&(n.createWithHTML(s,"span","dash"," - "),n.createWithHTML(s,"span","node-name",`[${t.nodeName.toLowerCase()}]`)),h.showIdOrNameInTitle&&e.defined(t)){const o=t.getAttribute("id"),r=t.getAttribute("name");e.definedString(o)?(n.createWithHTML(s,"span","dash"," - "),n.createWithHTML(s,"span","id-or-name",o)):e.definedString(r)&&(n.createWithHTML(s,"span","dash"," - "),n.createWithHTML(s,"span","id-or-name",r))}h.showLockButtonInTitle&&(a=n.createWithHTML(s,"button","lock",o.text.dialogMovedSymbolText),a.title=o.text.lockText,a.onclick=()=>I())}}function I(){L||(n.createWithHTML(s,"span","locked",`${o.text.dialogMovedSymbolText} `,!0),e.defined(a)&&(a.parentNode.removeChild(a),a=null),L=!0)}function D(e=!1){if("none"!==l.style.display){const t=()=>{l.style.display="none",L=!1,d.value="",q()};e?0===b&&(Y(),b=setTimeout((()=>{t()}),o.dialogHideDelay)):t()}}function $(){const e=[];for(let t in w)w.hasOwnProperty(t)&&(1===h.mode?e.push(`${t}: ${w[t]};`):2===h.mode?e.push(`${t}="${w[t]}"`):4===h.mode&&e.push(w[t]));1===h.mode?navigator.clipboard.writeText(`${A.nodeName.toLowerCase()} { \n ${e.join("\n")} \n }`):2!==h.mode&&4!==h.mode||navigator.clipboard.writeText(e.join(" "))}function j(){A.parentNode.removeChild(A),D()}function _(){0!==u&&(clearTimeout(u),u=0),u=setTimeout((()=>{const t=p.getElementsByClassName("property-name"),n=[].slice.call(t),o=n.length,r=d.value.toLowerCase();let i=0;for(let t=0;t-1?(o.style.removeProperty("display"),i++):o.style.display="none"}}0===i?f.style.display="block":f.style.removeProperty("display")}),o.searchDelay)}function R(){d.value="",d.focus(),_()}function U(){null!==A.parentNode&&null!==A.previousElementSibling&&A.parentNode.insertBefore(A,A.previousElementSibling)}function V(){null!==A.parentNode&&null!==A.nextElementSibling&&A.parentNode.insertBefore(A.nextElementSibling,A)}function F(t){e.defined(h)&&(p.innerHTML="",p.scrollTop=0,w={},E=0,A=t,B(t),1===h.mode||4===h.mode||2===h.mode?g.style.removeProperty("display"):g.style.display="none",h.allowEditing?(m.style.removeProperty("display"),y.style.removeProperty("display"),T.style.removeProperty("display")):(m.style.display="none",y.style.display="none",T.style.display="none"),f=n.createWithHTML(p,"span","no-search-results",o.text.noPropertiesFoundForSearchText),1===h.mode?function(e){const t=getComputedStyle(e),n=t.length;for(let o=0;o0){let t=1;for(let n of e.classList)z(e,t.toString(),n),t++}else p.innerHTML="",n.createWithHTML(p,"span","warning",o.text.noClassesAvailableText)}(t):n.createWithHTML(p,"span","warning",o.text.modeNotSupportedText),E<=15?c.style.display="none":c.style.removeProperty("display"))}function z(t,r,i,l=!0){if(function(e){return 0===h.showOnly.length||h.showOnly.indexOf(e)>-1}(r)&&function(e){return 0===h.ignoreValues.length||h.ignoreValues.indexOf(e)<=-1}(i)){const s=n.create(p,"div","property-row");n.createWithHTML(s,"div","property-name",r);const a=n.create(s,"div","property-value"),c=n.create(a,"input");(e.hexColor(i)||e.isRgbColor(i))&&(c.classList.add("property-value-color"),c.style.borderLeftColor=i),c.placeholder=o.text.propertyValuePlaceHolderText,c.onfocus=()=>c.select();const d=n.createWithHTML(s,"button","copy-small",o.text.copySymbolText);if(d.title=o.text.copyText,d.onclick=()=>navigator.clipboard.writeText(i),h.allowEditing&&l){const e=n.createWithHTML(s,"button","paste-small",o.text.pasteSymbolText),l=n.createWithHTML(s,"button","remove-small",o.text.removeSymbolText);e.title=o.text.pasteText,l.title=o.text.removeText,e.onclick=()=>function(e,t,n){navigator.clipboard.readText().then((o=>{t.value=o,G(e,n,t)}))}(t,c,r),l.onclick=()=>function(e,t,n,o){1===h.mode?(t.style.removeProperty(n),e.parentNode.removeChild(e)):2===h.mode?(t.removeAttribute(n),e.parentNode.removeChild(e)):4===h.mode&&(t.classList.remove(o),e.parentNode.removeChild(e))}(s,t,r,i)}c.type="text",c.value=i,w[r]=i,E++,h.allowEditing&&l?c.onkeyup=e=>function(e,t,n,o){"Enter"===e.code&&G(o,t,n)}(e,r,c,t):c.readOnly=!0}}function G(t,n,o){1===h.mode?t.style.setProperty(n,o.value):2===h.mode?t.setAttribute(n,o.value):4===h.mode&&t.classList.replace(t.classList[parseInt(n)-1],o.value),w[n]=o.value,e.hexColor(o.value)||e.isRgbColor(o.value)?(o.classList.add("property-value-color"),o.style.borderLeftColor=o.value):o.classList.remove("property-value-color")}function J(n){const o=n.getAttribute(t.PEEK_JS_IGNORE_STATE_ATTRIBUTE);e.definedString(o)||"ignore"===o||(n.addEventListener("mousemove",(e=>{K(e,n)})),S.push(n))}function K(t,r){!L&&e.defined(h)&&(n.cancelBubble(t),Y(),v=setTimeout((()=>{F(r),q(),n.showElementAtMousePosition(t,l,h.dialogOffset)}),o.dialogShowDelay))}function X(){L||(Y(),D(!0))}function Y(){0!==v&&(clearTimeout(v),v=0)}function q(){0!==b&&(clearTimeout(b),b=0)}function Q(){P&&(P=!1,O=null,H=0,M=0)}function Z(e,t=!1){t&&n.cancelBubble(e),P&&(I(),O.style.left=e.pageX-k+"px",O.style.top=e.pageY-C+"px")}function ee(){P&&(O.style.left=`${H}px`,O.style.top=`${M}px`,P=!1,O=null,H=0,M=0)}const te={start:function(t){return e.definedObject(h)||(h=i.Options.get(t),B(),function(){const e=h.nodeType;N=e.length;for(let t=0;t{K(t,e)}))}S=[],window.removeEventListener("mousemove",X),D()}()),te},close:function(){return D(),te},setConfiguration:function(t){if(e.definedObject(t)){let n=!1;const i=o;for(let e in t)t.hasOwnProperty(e)&&o.hasOwnProperty(e)&&i[e]!==t[e]&&(i[e]=t[e],n=!0);n&&(o=r.Options.get(i),W(),e.definedObject(h)&&B())}return te},getVersion:function(){return"1.8.0"}};o=r.Options.get(),document.addEventListener("DOMContentLoaded",(()=>{W()})),e.defined(window.$peek)||(window.$peek=te)})(); \ No newline at end of file diff --git a/docs/CHANGE_LOG.md b/docs/CHANGE_LOG.md index ce993ce..edcd310 100755 --- a/docs/CHANGE_LOG.md +++ b/docs/CHANGE_LOG.md @@ -8,6 +8,7 @@ #### **Configuration Options:** - BREAKING: Renamed the configuration option "dialogDisplayDelay" to "dialogShowDelay". - BREAKING: Renamed the configuration option "searchDelayDelay" to "searchDelay". +- Added a new configuration option called "dialogHideDelay" (default to 0 milliseconds), which states the delay that should be used before hiding the dialog when moving away from an element. #### **Adjustments:** - Moved from ES2016 to ES2020. diff --git a/src/peek.ts b/src/peek.ts index ac3d55c..1163441 100644 --- a/src/peek.ts +++ b/src/peek.ts @@ -46,7 +46,8 @@ type DialogProperties = Record; let _dialog_Buttons_Remove: HTMLButtonElement = null!; let _dialog_Buttons_MoveUp: HTMLButtonElement = null!; let _dialog_Buttons_MoveDown: HTMLButtonElement = null!; - let _dialog_TimerId: number = 0; + let _dialog_Show_TimerId: number = 0; + let _dialog_Hide_TimerId: number = 0; // Variables: Current Process: let _current_Process_Options: StartOptions = null!; @@ -103,7 +104,7 @@ type DialogProperties = Record; removeButton.onclick = onSearchPropertiesClear; const closeButton: HTMLElement = DomElement.createWithHTML( _dialog_Buttons, "button", "close", _configuration.text!.closeText! ); - closeButton.onclick = closeDialog; + closeButton.onclick = () => closeDialog(); _dialog_Buttons_Remove = DomElement.createWithHTML( _dialog_Buttons, "button", "remove", _configuration.text!.removeElementSymbolText! ) as HTMLButtonElement; _dialog_Buttons_Remove.onclick = onRemove; @@ -181,10 +182,29 @@ type DialogProperties = Record; } } - function closeDialog() : void { - _dialog.style.display = "none"; - _current_Process_Locked = false; - _dialog_Search_Input.value = Char.empty; + function closeDialog( useDelay: boolean = false ) : void { + if ( _dialog.style.display !== "none" ) { + const closeFunc: Function = () => { + _dialog.style.display = "none"; + _current_Process_Locked = false; + _dialog_Search_Input.value = Char.empty; + + clearDialogHideTimer(); + } + + if ( useDelay ) { + if ( _dialog_Hide_TimerId === 0 ) { + clearDialogShowTimer(); + + _dialog_Hide_TimerId = setTimeout( () => { + closeFunc(); + }, _configuration.dialogHideDelay ); + } + + } else { + closeFunc(); + } + } } function onCopy() : void { @@ -542,8 +562,9 @@ type DialogProperties = Record; clearDialogShowTimer(); - _dialog_TimerId = setTimeout( () => { + _dialog_Show_TimerId = setTimeout( () => { buildDialogContent( element ); + clearDialogHideTimer(); DomElement.showElementAtMousePosition( e, _dialog, _current_Process_Options.dialogOffset! ); }, _configuration.dialogShowDelay ); @@ -553,14 +574,21 @@ type DialogProperties = Record; function onWindowMove() : void { if ( !_current_Process_Locked ) { clearDialogShowTimer(); - closeDialog(); + closeDialog( true ); } } function clearDialogShowTimer() : void { - if ( _dialog_TimerId !== 0 ) { - clearTimeout( _dialog_TimerId ); - _dialog_TimerId = 0; + if ( _dialog_Show_TimerId !== 0 ) { + clearTimeout( _dialog_Show_TimerId ); + _dialog_Show_TimerId = 0; + } + } + + function clearDialogHideTimer() : void { + if ( _dialog_Hide_TimerId !== 0 ) { + clearTimeout( _dialog_Hide_TimerId ); + _dialog_Hide_TimerId = 0; } } diff --git a/src/ts/options/config.ts b/src/ts/options/config.ts index c8af896..73c8326 100644 --- a/src/ts/options/config.ts +++ b/src/ts/options/config.ts @@ -20,6 +20,7 @@ export namespace Config { export function get( newConfiguration: Configuration = null! ) : Configuration { let configuration: Configuration = Default.getObject( newConfiguration, {} as Configuration ); configuration.dialogShowDelay = Default.getNumber( configuration.dialogShowDelay, 1000 ); + configuration.dialogHideDelay = Default.getNumber( configuration.dialogHideDelay, 500 ); configuration.searchDelay = Default.getNumber( configuration.searchDelay, 500 ); configuration = getText( configuration ); diff --git a/src/ts/type.ts b/src/ts/type.ts index 130c21b..9dd5d0c 100644 --- a/src/ts/type.ts +++ b/src/ts/type.ts @@ -18,6 +18,7 @@ export type Position = { export type Configuration = { dialogShowDelay?: number; + dialogHideDelay?: number; searchDelay?: number; text?: ConfigurationText; }; From 0fecc04fb0a6812e0c83813f3b8dff1e545f134b Mon Sep 17 00:00:00 2001 From: William Troup Date: Wed, 4 Sep 2024 22:40:45 +0100 Subject: [PATCH 10/14] Updated documentation. --- docs/configuration/OPTIONS.md | 1 + 1 file changed, 1 insertion(+) diff --git a/docs/configuration/OPTIONS.md b/docs/configuration/OPTIONS.md index 365b235..e3d2d33 100755 --- a/docs/configuration/OPTIONS.md +++ b/docs/configuration/OPTIONS.md @@ -10,6 +10,7 @@ Below are all the configuration options that can be passed to the "setConfigurat | Type: | Name: | Description: | | --- | --- | --- | | *number* | dialogShowDelay | States the delay (in milliseconds) that should be used before showing the viewer dialog (defaults to 1000). | +| *number* | dialogHideDelay | States the delay (in milliseconds) that should be used before hiding the viewer dialog when moving away from a DOM element (defaults to 500). | | *number* | searchDelay | States the delay (in milliseconds) that should be used when typing before searching (defaults to 500). |
From 684e44aa81340f8c67e26db1064cb6a2c6a0bea9 Mon Sep 17 00:00:00 2001 From: William Troup Date: Wed, 4 Sep 2024 22:53:42 +0100 Subject: [PATCH 11/14] Added "showSearch" and "showSearchPropertyCount" start options. --- dist/peek.esm.js | 528 ++++++++++++++++++----------------- dist/peek.esm.js.map | 2 +- dist/peek.js | 528 ++++++++++++++++++----------------- dist/peek.js.map | 2 +- dist/peek.min.js | 2 +- docs/CHANGE_LOG.md | 2 + docs/options/OPTIONS.md | 2 + src/peek.ts | 2 +- src/ts/options/options.ts | 2 + src/ts/type.ts | 2 + test/peek.js.attributes.html | 2 +- test/peek.js.class.html | 2 +- test/peek.js.css.html | 2 +- test/peek.js.size.html | 2 +- 14 files changed, 546 insertions(+), 534 deletions(-) diff --git a/dist/peek.esm.js b/dist/peek.esm.js index 43c1816..aa52c38 100644 --- a/dist/peek.esm.js +++ b/dist/peek.esm.js @@ -5,14 +5,14 @@ var e; return e !== null && e !== void 0 && e.toString() !== ""; } e.defined = t; - function n(e) { + function o(e) { return t(e) && typeof e === "object"; } - e.definedObject = n; - function o(e) { + e.definedObject = o; + function n(e) { return t(e) && typeof e === "boolean"; } - e.definedBoolean = o; + e.definedBoolean = n; function i(e) { return t(e) && typeof e === "string"; } @@ -26,11 +26,11 @@ var e; } e.definedNumber = r; function s(e) { - return n(e) && e instanceof Array; + return o(e) && e instanceof Array; } e.definedArray = s; function a(e) { - return n(e) && e instanceof Date; + return o(e) && e instanceof Date; } e.definedDate = a; function c(e, t = 1) { @@ -59,11 +59,11 @@ var t; e.PEEK_JS_IGNORE_STATE_ATTRIBUTE = "data-peek-js-ignore-state"; })(t || (t = {})); -var n; +var o; -(n => { - function o(n, o, i = "", l = false) { - const r = o.toLowerCase(); +(o => { + function n(o, n, i = "", l = false) { + const r = n.toLowerCase(); const s = r === "text"; let a = s ? document.createTextNode("") : document.createElement(r); a.setAttribute(t.PEEK_JS_IGNORE_STATE_ATTRIBUTE, "ignore"); @@ -71,25 +71,25 @@ var n; a.className = i; } if (!l) { - n.appendChild(a); + o.appendChild(a); } else { - n.insertBefore(a, n.children[0]); + o.insertBefore(a, o.children[0]); } return a; } - n.create = o; - function i(e, n, i, l, r = false) { - const s = o(e, n, i, r); + o.create = n; + function i(e, o, i, l, r = false) { + const s = n(e, o, i, r); s.innerHTML = l; s.setAttribute(t.PEEK_JS_IGNORE_STATE_ATTRIBUTE, "ignore"); return s; } - n.createWithHTML = i; + o.createWithHTML = i; function l(e) { e.preventDefault(); e.stopPropagation(); } - n.cancelBubble = l; + o.cancelBubble = l; function r() { const e = document.documentElement; const t = { @@ -98,36 +98,36 @@ var n; }; return t; } - n.getScrollPosition = r; - function s(e, t, n) { + o.getScrollPosition = r; + function s(e, t, o) { if (t.style.display !== "block") { - let o = e.pageX; + let n = e.pageX; let i = e.pageY; const l = r(); t.style.display = "block"; - if (o + t.offsetWidth > window.innerWidth) { - o -= t.offsetWidth + n; + if (n + t.offsetWidth > window.innerWidth) { + n -= t.offsetWidth + o; } else { - o++; - o += n; + n++; + n += o; } if (i + t.offsetHeight > window.innerHeight) { - i -= t.offsetHeight + n; + i -= t.offsetHeight + o; } else { i++; - i += n; + i += o; } - if (o < l.left) { - o = e.pageX + 1; + if (n < l.left) { + n = e.pageX + 1; } if (i < l.top) { i = e.pageY + 1; } - t.style.left = `${o}px`; + t.style.left = `${n}px`; t.style.top = `${i}px`; } } - n.showElementAtMousePosition = s; + o.showElementAtMousePosition = s; function a(e) { const t = { left: 0, @@ -140,52 +140,52 @@ var n; } return t; } - n.getOffset = a; -})(n || (n = {})); + o.getOffset = a; +})(o || (o = {})); -var o; +var n; (t => { - function n(e, t) { + function o(e, t) { return typeof e === "string" ? e : t; } - t.getAnyString = n; - function o(t, n) { - return e.definedString(t) ? t : n; + t.getAnyString = o; + function n(t, o) { + return e.definedString(t) ? t : o; } - t.getString = o; - function i(t, n) { - return e.definedBoolean(t) ? t : n; + t.getString = n; + function i(t, o) { + return e.definedBoolean(t) ? t : o; } t.getBoolean = i; - function l(t, n) { - return e.definedNumber(t) ? t : n; + function l(t, o) { + return e.definedNumber(t) ? t : o; } t.getNumber = l; - function r(t, n) { - return e.definedArray(t) ? t : n; + function r(t, o) { + return e.definedArray(t) ? t : o; } t.getArray = r; - function s(t, n) { - return e.definedObject(t) ? t : n; + function s(t, o) { + return e.definedObject(t) ? t : o; } t.getObject = s; - function a(t, n) { - let o = n; + function a(t, o) { + let n = o; if (e.definedString(t)) { const e = t.toString().split(" "); if (e.length === 0) { - t = n; + t = o; } else { - o = e; + n = e; } } else { - o = r(t, n); + n = r(t, o); } - return o; + return n; } t.getStringOrArray = a; -})(o || (o = {})); +})(n || (n = {})); var i; @@ -193,43 +193,43 @@ var i; let t; (e => { function t(e = null) { - let t = o.getObject(e, {}); - t.dialogShowDelay = o.getNumber(t.dialogShowDelay, 1e3); - t.dialogHideDelay = o.getNumber(t.dialogHideDelay, 500); - t.searchDelay = o.getNumber(t.searchDelay, 500); - t = n(t); + let t = n.getObject(e, {}); + t.dialogShowDelay = n.getNumber(t.dialogShowDelay, 1e3); + t.dialogHideDelay = n.getNumber(t.dialogHideDelay, 500); + t.searchDelay = n.getNumber(t.searchDelay, 500); + t = o(t); return t; } e.get = t; - function n(e) { - e.text = o.getObject(e.text, {}); - e.text.cssText = o.getAnyString(e.text.cssText, "CSS"); - e.text.attributesText = o.getAnyString(e.text.attributesText, "Attributes"); - e.text.sizeText = o.getAnyString(e.text.sizeText, "Size"); - e.text.classesText = o.getAnyString(e.text.classesText, "Classes"); - e.text.noAttributesAvailableText = o.getAnyString(e.text.noAttributesAvailableText, "No attributes are available."); - e.text.closeText = o.getAnyString(e.text.closeText, "Close"); - e.text.copyText = o.getAnyString(e.text.copyText, "Copy"); - e.text.copySymbolText = o.getAnyString(e.text.copySymbolText, "❐"); - e.text.pasteText = o.getAnyString(e.text.pasteText, "Paste"); - e.text.pasteSymbolText = o.getAnyString(e.text.pasteSymbolText, "☐"); - e.text.removeText = o.getAnyString(e.text.removeText, "Remove"); - e.text.removeSymbolText = o.getAnyString(e.text.removeSymbolText, "✕"); - e.text.noClassesAvailableText = o.getAnyString(e.text.noClassesAvailableText, "No classes are available."); - e.text.searchPropertiesPlaceHolderText = o.getAnyString(e.text.searchPropertiesPlaceHolderText, "Search properties..."); - e.text.clearText = o.getAnyString(e.text.clearText, "Clear"); - e.text.clearSymbolText = o.getAnyString(e.text.clearSymbolText, "✕"); - e.text.noPropertiesFoundForSearchText = o.getAnyString(e.text.noPropertiesFoundForSearchText, "No properties were found for your search."); - e.text.dialogMovedSymbolText = o.getAnyString(e.text.dialogMovedSymbolText, "✸"); - e.text.propertyValuePlaceHolderText = o.getAnyString(e.text.propertyValuePlaceHolderText, "Enter value..."); - e.text.modeNotSupportedText = o.getAnyString(e.text.modeNotSupportedText, "The mode you have specified is not supported."); - e.text.unknownModeText = o.getAnyString(e.text.unknownModeText, "Unknown Mode"); - e.text.moveUpText = o.getAnyString(e.text.moveUpText, "Move Up"); - e.text.moveUpSymbolText = o.getAnyString(e.text.moveUpSymbolText, "↑"); - e.text.moveDownText = o.getAnyString(e.text.moveDownText, "Move Down"); - e.text.moveDownSymbolText = o.getAnyString(e.text.moveDownSymbolText, "↓"); - e.text.removeElementSymbolText = o.getAnyString(e.text.removeElementSymbolText, "⌫"); - e.text.lockText = o.getAnyString(e.text.lockText, "Lock"); + function o(e) { + e.text = n.getObject(e.text, {}); + e.text.cssText = n.getAnyString(e.text.cssText, "CSS"); + e.text.attributesText = n.getAnyString(e.text.attributesText, "Attributes"); + e.text.sizeText = n.getAnyString(e.text.sizeText, "Size"); + e.text.classesText = n.getAnyString(e.text.classesText, "Classes"); + e.text.noAttributesAvailableText = n.getAnyString(e.text.noAttributesAvailableText, "No attributes are available."); + e.text.closeText = n.getAnyString(e.text.closeText, "Close"); + e.text.copyText = n.getAnyString(e.text.copyText, "Copy"); + e.text.copySymbolText = n.getAnyString(e.text.copySymbolText, "❐"); + e.text.pasteText = n.getAnyString(e.text.pasteText, "Paste"); + e.text.pasteSymbolText = n.getAnyString(e.text.pasteSymbolText, "☐"); + e.text.removeText = n.getAnyString(e.text.removeText, "Remove"); + e.text.removeSymbolText = n.getAnyString(e.text.removeSymbolText, "✕"); + e.text.noClassesAvailableText = n.getAnyString(e.text.noClassesAvailableText, "No classes are available."); + e.text.searchPropertiesPlaceHolderText = n.getAnyString(e.text.searchPropertiesPlaceHolderText, "Search properties..."); + e.text.clearText = n.getAnyString(e.text.clearText, "Clear"); + e.text.clearSymbolText = n.getAnyString(e.text.clearSymbolText, "✕"); + e.text.noPropertiesFoundForSearchText = n.getAnyString(e.text.noPropertiesFoundForSearchText, "No properties were found for your search."); + e.text.dialogMovedSymbolText = n.getAnyString(e.text.dialogMovedSymbolText, "✸"); + e.text.propertyValuePlaceHolderText = n.getAnyString(e.text.propertyValuePlaceHolderText, "Enter value..."); + e.text.modeNotSupportedText = n.getAnyString(e.text.modeNotSupportedText, "The mode you have specified is not supported."); + e.text.unknownModeText = n.getAnyString(e.text.unknownModeText, "Unknown Mode"); + e.text.moveUpText = n.getAnyString(e.text.moveUpText, "Move Up"); + e.text.moveUpSymbolText = n.getAnyString(e.text.moveUpSymbolText, "↑"); + e.text.moveDownText = n.getAnyString(e.text.moveDownText, "Move Down"); + e.text.moveDownSymbolText = n.getAnyString(e.text.moveDownSymbolText, "↓"); + e.text.removeElementSymbolText = n.getAnyString(e.text.removeElementSymbolText, "⌫"); + e.text.lockText = n.getAnyString(e.text.lockText, "Lock"); return e; } })(t = e.Options || (e.Options = {})); @@ -241,17 +241,19 @@ var l; let t; (e => { function t(e) { - let t = o.getObject(e, {}); - t.nodeType = o.getStringOrArray(t.nodeType, []); - t.mode = o.getNumber(t.mode, 1); - t.titleText = o.getString(t.titleText, ""); - t.showOnly = o.getStringOrArray(t.showOnly, []); - t.allowEditing = o.getBoolean(t.allowEditing, false); - t.showIdOrNameInTitle = o.getBoolean(t.showIdOrNameInTitle, true); - t.showNodeNameInTitle = o.getBoolean(t.showNodeNameInTitle, false); - t.ignoreValues = o.getStringOrArray(t.ignoreValues, []); - t.showLockButtonInTitle = o.getBoolean(t.showLockButtonInTitle, true); - t.dialogOffset = o.getNumber(t.dialogOffset, 0); + let t = n.getObject(e, {}); + t.nodeType = n.getStringOrArray(t.nodeType, []); + t.mode = n.getNumber(t.mode, 1); + t.titleText = n.getString(t.titleText, ""); + t.showOnly = n.getStringOrArray(t.showOnly, []); + t.allowEditing = n.getBoolean(t.allowEditing, false); + t.showIdOrNameInTitle = n.getBoolean(t.showIdOrNameInTitle, true); + t.showNodeNameInTitle = n.getBoolean(t.showNodeNameInTitle, false); + t.ignoreValues = n.getStringOrArray(t.ignoreValues, []); + t.showLockButtonInTitle = n.getBoolean(t.showLockButtonInTitle, true); + t.dialogOffset = n.getNumber(t.dialogOffset, 0); + t.showSearch = n.getBoolean(t.showSearch, true); + t.showSearchPropertyCount = n.getNumber(t.showSearchPropertyCount, 15); return t; } e.get = t; @@ -259,7 +261,7 @@ var l; })(l || (l = {})); (() => { - let o = {}; + let n = {}; let r = null; let s = null; let a = null; @@ -273,9 +275,9 @@ var l; let m = null; let y = null; let T = null; + let h = 0; let v = 0; - let b = 0; - let h = null; + let b = null; let S = []; let w = {}; let A = null; @@ -286,87 +288,87 @@ var l; let H = 0; let M = 0; let P = false; - let k = 0; let C = 0; + let k = 0; function W() { if (e.definedObject(r)) { I(); document.body.removeChild(r); r = null; } - r = n.create(document.body, "div", "peek-js"); - r.onmousemove = n.cancelBubble; - s = n.create(r, "div", "dialog-title-bar"); - c = n.create(r, "div", "dialog-search"); - d = n.create(r, "div", "dialog-contents"); - x = n.create(r, "div", "dialog-buttons"); - g = n.createWithHTML(x, "button", "copy", o.text.copyText); + r = o.create(document.body, "div", "peek-js"); + r.onmousemove = o.cancelBubble; + s = o.create(r, "div", "dialog-title-bar"); + c = o.create(r, "div", "dialog-search"); + d = o.create(r, "div", "dialog-contents"); + x = o.create(r, "div", "dialog-buttons"); + g = o.createWithHTML(x, "button", "copy", n.text.copyText); g.onclick = D; - f = n.create(c, "input"); - f.placeholder = o.text.searchPropertiesPlaceHolderText; + f = o.create(c, "input"); + f.placeholder = n.text.searchPropertiesPlaceHolderText; f.type = "text"; f.onkeyup = _; f.onpaste = _; f.onfocus = () => f.select(); - const t = n.createWithHTML(c, "button", "clear-small", o.text.clearSymbolText); - t.title = o.text.clearText; + const t = o.createWithHTML(c, "button", "clear-small", n.text.clearSymbolText); + t.title = n.text.clearText; t.onclick = R; - const i = n.createWithHTML(x, "button", "close", o.text.closeText); + const i = o.createWithHTML(x, "button", "close", n.text.closeText); i.onclick = () => I(); - m = n.createWithHTML(x, "button", "remove", o.text.removeElementSymbolText); + m = o.createWithHTML(x, "button", "remove", n.text.removeElementSymbolText); m.onclick = j; - m.title = o.text.removeText; - y = n.createWithHTML(x, "button", "move-up", o.text.moveUpSymbolText); + m.title = n.text.removeText; + y = o.createWithHTML(x, "button", "move-up", n.text.moveUpSymbolText); y.onclick = U; - y.title = o.text.moveUpText; - T = n.createWithHTML(x, "button", "move-down", o.text.moveDownSymbolText); + y.title = n.text.moveUpText; + T = o.createWithHTML(x, "button", "move-down", n.text.moveDownSymbolText); T.onclick = V; - T.title = o.text.moveDownText; + T.title = n.text.moveDownText; ce(s, r); } function B(t = null) { - if (!L && e.defined(h)) { - let i = h.titleText; + if (!L && e.defined(b)) { + let i = b.titleText; s.innerHTML = ""; if (!e.definedString(i)) { - if (h.mode === 1) { - i = o.text.cssText; - } else if (h.mode === 2) { - i = o.text.attributesText; - } else if (h.mode === 3) { - i = o.text.sizeText; - } else if (h.mode === 4) { - i = o.text.classesText; + if (b.mode === 1) { + i = n.text.cssText; + } else if (b.mode === 2) { + i = n.text.attributesText; + } else if (b.mode === 3) { + i = n.text.sizeText; + } else if (b.mode === 4) { + i = n.text.classesText; } else { - i = o.text.unknownModeText; + i = n.text.unknownModeText; } } - n.createWithHTML(s, "span", "title", i); - if (N > 1 && h.showNodeNameInTitle) { - n.createWithHTML(s, "span", "dash", " - "); - n.createWithHTML(s, "span", "node-name", `[${t.nodeName.toLowerCase()}]`); + o.createWithHTML(s, "span", "title", i); + if (N > 1 && b.showNodeNameInTitle) { + o.createWithHTML(s, "span", "dash", " - "); + o.createWithHTML(s, "span", "node-name", `[${t.nodeName.toLowerCase()}]`); } - if (h.showIdOrNameInTitle && e.defined(t)) { - const o = t.getAttribute("id"); + if (b.showIdOrNameInTitle && e.defined(t)) { + const n = t.getAttribute("id"); const i = t.getAttribute("name"); - if (e.definedString(o)) { - n.createWithHTML(s, "span", "dash", " - "); - n.createWithHTML(s, "span", "id-or-name", o); + if (e.definedString(n)) { + o.createWithHTML(s, "span", "dash", " - "); + o.createWithHTML(s, "span", "id-or-name", n); } else if (e.definedString(i)) { - n.createWithHTML(s, "span", "dash", " - "); - n.createWithHTML(s, "span", "id-or-name", i); + o.createWithHTML(s, "span", "dash", " - "); + o.createWithHTML(s, "span", "id-or-name", i); } } - if (h.showLockButtonInTitle) { - a = n.createWithHTML(s, "button", "lock", o.text.dialogMovedSymbolText); - a.title = o.text.lockText; + if (b.showLockButtonInTitle) { + a = o.createWithHTML(s, "button", "lock", n.text.dialogMovedSymbolText); + a.title = n.text.lockText; a.onclick = () => $(); } } } function $() { if (!L) { - n.createWithHTML(s, "span", "locked", `${o.text.dialogMovedSymbolText}${" "}`, true); + o.createWithHTML(s, "span", "locked", `${n.text.dialogMovedSymbolText}${" "}`, true); if (e.defined(a)) { a.parentNode.removeChild(a); a = null; @@ -383,11 +385,11 @@ var l; ae(); }; if (e) { - if (b === 0) { + if (v === 0) { se(); - b = setTimeout((() => { + v = setTimeout((() => { t(); - }), o.dialogHideDelay); + }), n.dialogHideDelay); } } else { t(); @@ -398,18 +400,18 @@ var l; const e = []; for (let t in w) { if (w.hasOwnProperty(t)) { - if (h.mode === 1) { + if (b.mode === 1) { e.push(`${t}: ${w[t]};`); - } else if (h.mode === 2) { + } else if (b.mode === 2) { e.push(`${t}="${w[t]}"`); - } else if (h.mode === 4) { + } else if (b.mode === 4) { e.push(w[t]); } } } - if (h.mode === 1) { + if (b.mode === 1) { navigator.clipboard.writeText(`${A.nodeName.toLowerCase()} { ${"\n"} ${e.join("\n")} ${"\n"} }`); - } else if (h.mode === 2 || h.mode === 4) { + } else if (b.mode === 2 || b.mode === 4) { navigator.clipboard.writeText(e.join(" ")); } } @@ -424,23 +426,23 @@ var l; } u = setTimeout((() => { const t = d.getElementsByClassName("property-name"); - const n = [].slice.call(t); - const o = n.length; + const o = [].slice.call(t); + const n = o.length; const i = f.value.toLowerCase(); let l = 0; - for (let t = 0; t < o; t++) { - const o = n[t].parentNode; - if (e.defined(o)) { + for (let t = 0; t < n; t++) { + const n = o[t].parentNode; + if (e.defined(n)) { if (f.value.trim() === "") { - o.style.removeProperty("display"); + n.style.removeProperty("display"); l++; } else { - const e = n[t].innerText; + const e = o[t].innerText; if (e.toLowerCase().indexOf(i) > -1) { - o.style.removeProperty("display"); + n.style.removeProperty("display"); l++; } else { - o.style.display = "none"; + n.style.display = "none"; } } } @@ -450,7 +452,7 @@ var l; } else { p.style.removeProperty("display"); } - }), o.searchDelay); + }), n.searchDelay); } function R() { f.value = ""; @@ -468,19 +470,19 @@ var l; } } function F(t) { - if (e.defined(h)) { + if (e.defined(b)) { d.innerHTML = ""; d.scrollTop = 0; w = {}; E = 0; A = t; B(t); - if (h.mode === 1 || h.mode === 4 || h.mode === 2) { + if (b.mode === 1 || b.mode === 4 || b.mode === 2) { g.style.removeProperty("display"); } else { g.style.display = "none"; } - if (!h.allowEditing) { + if (!b.allowEditing) { m.style.display = "none"; y.style.display = "none"; T.style.display = "none"; @@ -489,19 +491,19 @@ var l; y.style.removeProperty("display"); T.style.removeProperty("display"); } - p = n.createWithHTML(d, "span", "no-search-results", o.text.noPropertiesFoundForSearchText); - if (h.mode === 1) { + p = o.createWithHTML(d, "span", "no-search-results", n.text.noPropertiesFoundForSearchText); + if (b.mode === 1) { z(t); - } else if (h.mode === 2) { + } else if (b.mode === 2) { G(t); - } else if (h.mode === 3) { + } else if (b.mode === 3) { J(t); - } else if (h.mode === 4) { + } else if (b.mode === 4) { K(t); } else { - n.createWithHTML(d, "span", "warning", o.text.modeNotSupportedText); + o.createWithHTML(d, "span", "warning", n.text.modeNotSupportedText); } - if (E <= 15) { + if (E <= b.showSearchPropertyCount || !b.showSearch) { c.style.display = "none"; } else { c.style.removeProperty("display"); @@ -510,9 +512,9 @@ var l; } function z(e) { const t = getComputedStyle(e); - const n = t.length; - for (let o = 0; o < n; o++) { - X(e, t[o], t.getPropertyValue(t[o])); + const o = t.length; + for (let n = 0; n < o; n++) { + X(e, t[n], t.getPropertyValue(t[n])); } } function G(e) { @@ -522,11 +524,11 @@ var l; } } else { d.innerHTML = ""; - n.createWithHTML(d, "span", "warning", o.text.noAttributesAvailableText); + o.createWithHTML(d, "span", "warning", n.text.noAttributesAvailableText); } } function J(e) { - const t = n.getOffset(e); + const t = o.getOffset(e); X(e, "left", `${t.left.toString()}px`, false); X(e, "top", `${t.top.toString()}px`, false); X(e, "width", `${e.offsetWidth.toString()}px`, false); @@ -535,35 +537,35 @@ var l; function K(e) { if (e.classList.length > 0) { let t = 1; - for (let n of e.classList) { - X(e, t.toString(), n); + for (let o of e.classList) { + X(e, t.toString(), o); t++; } } else { d.innerHTML = ""; - n.createWithHTML(d, "span", "warning", o.text.noClassesAvailableText); + o.createWithHTML(d, "span", "warning", n.text.noClassesAvailableText); } } function X(t, i, l, r = true) { if (ee(i) && te(l)) { - const s = n.create(d, "div", "property-row"); - n.createWithHTML(s, "div", "property-name", i); - const a = n.create(s, "div", "property-value"); - const c = n.create(a, "input"); + const s = o.create(d, "div", "property-row"); + o.createWithHTML(s, "div", "property-name", i); + const a = o.create(s, "div", "property-value"); + const c = o.create(a, "input"); if (e.hexColor(l) || e.isRgbColor(l)) { c.classList.add("property-value-color"); c.style.borderLeftColor = l; } - c.placeholder = o.text.propertyValuePlaceHolderText; + c.placeholder = n.text.propertyValuePlaceHolderText; c.onfocus = () => c.select(); - const f = n.createWithHTML(s, "button", "copy-small", o.text.copySymbolText); - f.title = o.text.copyText; + const f = o.createWithHTML(s, "button", "copy-small", n.text.copySymbolText); + f.title = n.text.copyText; f.onclick = () => navigator.clipboard.writeText(l); - if (h.allowEditing && r) { - const e = n.createWithHTML(s, "button", "paste-small", o.text.pasteSymbolText); - const r = n.createWithHTML(s, "button", "remove-small", o.text.removeSymbolText); - e.title = o.text.pasteText; - r.title = o.text.removeText; + if (b.allowEditing && r) { + const e = o.createWithHTML(s, "button", "paste-small", n.text.pasteSymbolText); + const r = o.createWithHTML(s, "button", "remove-small", n.text.removeSymbolText); + e.title = n.text.pasteText; + r.title = n.text.removeText; e.onclick = () => Y(t, c, i); r.onclick = () => q(s, t, i, l); } @@ -571,78 +573,78 @@ var l; c.value = l; w[i] = l; E++; - if (!h.allowEditing || !r) { + if (!b.allowEditing || !r) { c.readOnly = true; } else { c.onkeyup = e => Q(e, i, c, t); } } } - function Y(e, t, n) { - navigator.clipboard.readText().then((o => { - t.value = o; - Z(e, n, t); + function Y(e, t, o) { + navigator.clipboard.readText().then((n => { + t.value = n; + Z(e, o, t); })); } - function q(e, t, n, o) { - if (h.mode === 1) { - t.style.removeProperty(n); + function q(e, t, o, n) { + if (b.mode === 1) { + t.style.removeProperty(o); e.parentNode.removeChild(e); - } else if (h.mode === 2) { - t.removeAttribute(n); + } else if (b.mode === 2) { + t.removeAttribute(o); e.parentNode.removeChild(e); - } else if (h.mode === 4) { - t.classList.remove(o); + } else if (b.mode === 4) { + t.classList.remove(n); e.parentNode.removeChild(e); } } - function Q(e, t, n, o) { + function Q(e, t, o, n) { if (e.code === "Enter") { - Z(o, t, n); + Z(n, t, o); } } - function Z(t, n, o) { - if (h.mode === 1) { - t.style.setProperty(n, o.value); - } else if (h.mode === 2) { - t.setAttribute(n, o.value); - } else if (h.mode === 4) { - t.classList.replace(t.classList[parseInt(n) - 1], o.value); + function Z(t, o, n) { + if (b.mode === 1) { + t.style.setProperty(o, n.value); + } else if (b.mode === 2) { + t.setAttribute(o, n.value); + } else if (b.mode === 4) { + t.classList.replace(t.classList[parseInt(o) - 1], n.value); } - w[n] = o.value; - if (e.hexColor(o.value) || e.isRgbColor(o.value)) { - o.classList.add("property-value-color"); - o.style.borderLeftColor = o.value; + w[o] = n.value; + if (e.hexColor(n.value) || e.isRgbColor(n.value)) { + n.classList.add("property-value-color"); + n.style.borderLeftColor = n.value; } else { - o.classList.remove("property-value-color"); + n.classList.remove("property-value-color"); } } function ee(e) { - return h.showOnly.length === 0 || h.showOnly.indexOf(e) > -1; + return b.showOnly.length === 0 || b.showOnly.indexOf(e) > -1; } function te(e) { - return h.ignoreValues.length === 0 || h.ignoreValues.indexOf(e) <= -1; + return b.ignoreValues.length === 0 || b.ignoreValues.indexOf(e) <= -1; } - function ne() { - const e = h.nodeType; + function oe() { + const e = b.nodeType; N = e.length; for (let t = 0; t < N; t++) { - const n = document.getElementsByTagName(e[t]); - const o = [].slice.call(n); - const i = o.length; + const o = document.getElementsByTagName(e[t]); + const n = [].slice.call(o); + const i = n.length; for (let e = 0; e < i; e++) { - oe(o[e]); + ne(n[e]); } } window.addEventListener("mousemove", re); } - function oe(n) { - const o = n.getAttribute(t.PEEK_JS_IGNORE_STATE_ATTRIBUTE); - if (!e.definedString(o) && o !== "ignore") { - n.addEventListener("mousemove", (e => { - le(e, n); + function ne(o) { + const n = o.getAttribute(t.PEEK_JS_IGNORE_STATE_ATTRIBUTE); + if (!e.definedString(n) && n !== "ignore") { + o.addEventListener("mousemove", (e => { + le(e, o); })); - S.push(n); + S.push(o); } } function ie() { @@ -658,14 +660,14 @@ var l; I(); } function le(t, i) { - if (!L && e.defined(h)) { - n.cancelBubble(t); + if (!L && e.defined(b)) { + o.cancelBubble(t); se(); - v = setTimeout((() => { + h = setTimeout((() => { F(i); ae(); - n.showElementAtMousePosition(t, r, h.dialogOffset); - }), o.dialogShowDelay); + o.showElementAtMousePosition(t, r, b.dialogOffset); + }), n.dialogShowDelay); } } function re() { @@ -675,15 +677,15 @@ var l; } } function se() { - if (v !== 0) { - clearTimeout(v); - v = 0; + if (h !== 0) { + clearTimeout(h); + h = 0; } } function ae() { - if (b !== 0) { - clearTimeout(b); - b = 0; + if (v !== 0) { + clearTimeout(v); + v = 0; } } function ce(e, t) { @@ -706,8 +708,8 @@ var l; if (!P) { O = t; P = true; - k = e.pageX - O.offsetLeft; - C = e.pageY - O.offsetTop; + C = e.pageX - O.offsetLeft; + k = e.pageY - O.offsetTop; H = O.offsetLeft; M = O.offsetTop; } @@ -722,12 +724,12 @@ var l; } function de(e, t = false) { if (t) { - n.cancelBubble(e); + o.cancelBubble(e); } if (P) { $(); - O.style.left = `${e.pageX - k}px`; - O.style.top = `${e.pageY - C}px`; + O.style.left = `${e.pageX - C}px`; + O.style.top = `${e.pageY - k}px`; } } function pe() { @@ -742,16 +744,16 @@ var l; } const xe = { start: function(t) { - if (!e.definedObject(h)) { - h = l.Options.get(t); + if (!e.definedObject(b)) { + b = l.Options.get(t); B(); - ne(); + oe(); } return xe; }, stop: function() { - if (e.definedObject(h)) { - h = null; + if (e.definedObject(b)) { + b = null; se(); ie(); } @@ -763,18 +765,18 @@ var l; }, setConfiguration: function(t) { if (e.definedObject(t)) { - let n = false; - const l = o; + let o = false; + const l = n; for (let e in t) { - if (t.hasOwnProperty(e) && o.hasOwnProperty(e) && l[e] !== t[e]) { + if (t.hasOwnProperty(e) && n.hasOwnProperty(e) && l[e] !== t[e]) { l[e] = t[e]; - n = true; + o = true; } } - if (n) { - o = i.Options.get(l); + if (o) { + n = i.Options.get(l); W(); - if (e.definedObject(h)) { + if (e.definedObject(b)) { B(); } } @@ -786,7 +788,7 @@ var l; } }; (() => { - o = i.Options.get(); + n = i.Options.get(); document.addEventListener("DOMContentLoaded", (() => { W(); })); diff --git a/dist/peek.esm.js.map b/dist/peek.esm.js.map index 1d0d14b..2ab1802 100644 --- a/dist/peek.esm.js.map +++ b/dist/peek.esm.js.map @@ -1 +1 @@ -{"version":3,"sources":["/Users/williamtroup/Documents/GitHub%20Repos/Peek.js/dist/peek.esm.js"],"names":["Is","Is2","defined","value","toString","definedObject","object","definedBoolean","definedString","definedFunction","definedNumber","definedArray","Array","definedDate","Date","invalidOptionArray","array","minimumLength","length","hexColor","valid","isNaN","substring","isRgbColor","startsWith","Constant","Constant2","PEEK_JS_IGNORE_STATE_ATTRIBUTE","DomElement","DomElement2","create","container","type","className","insertAtStart","nodeType","toLowerCase","isText","result","document","createTextNode","createElement","setAttribute","appendChild","insertBefore","children","createWithHTML","html","element","innerHTML","cancelBubble","e","preventDefault","stopPropagation","getScrollPosition","documentElement","left","scrollLeft","clientLeft","top","scrollTop","clientTop","showElementAtMousePosition","offset","style","display","pageX","pageY","scrollPosition","offsetWidth","window","innerWidth","offsetHeight","innerHeight","getOffset","offsetLeft","offsetTop","offsetParent","Default","Default2","getAnyString","defaultValue","getString","getBoolean","getNumber","getArray","getObject","getStringOrArray","values","split","Config","Config2","Options","Options2","get","newConfiguration","configuration","dialogShowDelay","dialogHideDelay","searchDelay","getText","text","cssText","attributesText","sizeText","classesText","noAttributesAvailableText","closeText","copyText","copySymbolText","pasteText","pasteSymbolText","removeText","removeSymbolText","noClassesAvailableText","searchPropertiesPlaceHolderText","clearText","clearSymbolText","noPropertiesFoundForSearchText","dialogMovedSymbolText","propertyValuePlaceHolderText","modeNotSupportedText","unknownModeText","moveUpText","moveUpSymbolText","moveDownText","moveDownSymbolText","removeElementSymbolText","lockText","Start","Start2","newOptions","options","mode","titleText","showOnly","allowEditing","showIdOrNameInTitle","showNodeNameInTitle","ignoreValues","showLockButtonInTitle","dialogOffset","_configuration","_dialog","_dialog_Title","_dialog_Title_Button_Lock","_dialog_Search","_dialog_Search_Input","_dialog_Search_Input_TimerId","_dialog_Contents","_dialog_Contents_NoSearchResultsText","_dialog_Buttons","_dialog_Buttons_Copy","_dialog_Buttons_Remove","_dialog_Buttons_MoveUp","_dialog_Buttons_MoveDown","_dialog_Show_TimerId","_dialog_Hide_TimerId","_current_Process_Options","_current_Process_Elements","_current_Process_Properties","_current_Process_Element","_current_Process_Locked","_current_Process_NodeCount","_current_Process_Properties_Count","_element_Dialog_Move","_element_Dialog_Move_Original_X","_element_Dialog_Move_Original_Y","_element_Dialog_Move_IsMoving","_element_Dialog_Move_X","_element_Dialog_Move_Y","buildDialog","closeDialog","body","removeChild","onmousemove","onclick","onCopy","placeholder","onkeyup","onSearchProperties","onpaste","onfocus","select","removeButton","title","onSearchPropertiesClear","closeButton","onRemove","onMoveUp","onMoveDown","makeDialogMovable","setDialogTitle","nodeName","id","getAttribute","name","setDialogAsLocked","parentNode","useDelay","closeFunc","clearDialogHideTimer","clearDialogShowTimer","setTimeout","lines","propertyName","hasOwnProperty","push","navigator","clipboard","writeText","join","clearTimeout","getElementsByClassName","propertyNames","slice","call","propertyNamesLength","searchValue","propertiesFound","propertyNameIndex","parent","trim","removeProperty","propertyNameText","innerText","indexOf","focus","previousElementSibling","nextElementSibling","buildDialogContent","buildCssProperties","buildAttributeProperties","buildSizeProperties","buildClassProperties","computedStyles","getComputedStyle","computedStylesLength","styleIndex","buildPropertyRow","getPropertyValue","hasAttributes","attribute","attributes","classList","index","propertyValueText","isPropertyVisible","isPropertyValueVisible","property","propertyValue","propertyValueInput","add","borderLeftColor","copyButton","pasteButton","onPropertyPaste","onPropertyRemove","readOnly","onPropertyValueKeyUp","readText","then","data","updatePropertyValue","removeAttribute","remove","input","code","setProperty","replace","parseInt","buildNodeEvents","tagTypes","tagTypeIndex","domElements","getElementsByTagName","elements","elementsLength","elementIndex","buildNodeEvent","addEventListener","onWindowMove","attributeValue","onNodeMouseOver","removeNodeEvents","currentProcessElementsLength","removeEventListener","titleBar","dialog","onmousedown","onMoveTitleBarMouseDown","onMoveDocumentMouseMove","onmouseup","onMoveTitleBarMouseUp","oncontextmenu","onMoveDocumentMouseLeave","_public","start","stop","close","setConfiguration","configurationHasChanged","newInternalConfiguration","getVersion","$peek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A2B;gBAC9CA,IAA2B;gBAC3B4C;gBACAkF;AACF;YACA,OAAOY;AACT;QACAG,OAAO;YACL/H;YACA,OAAO4H;AACT;QAMAI,kBAAkB,SAAS7M;YACzB,IAAI/F,EAAGK,cAAc0F,IAAmB;gBACtC,IAAI8M,IAA0B;gBAC9B,MAAMC,IAA2BhK;gBACjC,KAAK,IAAI+D,KAAgB9G,GAAkB;oBACzC,IAAIA,EAAiB+G,eAAeD,MAAiB/D,EAAegE,eAAeD,MAAiBiG,EAAyBjG,OAAkB9G,EAAiB8G,IAAe;wBAC7KiG,EAAyBjG,KAAgB9G,EAAiB8G;wBAC1DgG,IAA0B;AAC5B;AACF;gBACA,IAAIA,GAAyB;oBAC3B/J,IAAiBpD,EAAOE,QAAQE,IAAIgN;oBACpCnI;oBACA,IAAI3K,EAAGK,cAAcyJ,IAA2B;wBAC9CkC;AACF;AACF;AACF;YACA,OAAOwG;AACT;QAMAO,YAAY;YACV,OAAO;AACT;;IAEF;QACEjK,IAAiBpD,EAAOE,QAAQE;QAChCvD,SAASiP,iBAAiB,qBAAoB;YAC5C7G;AAAa;QAEf,KAAK3K,EAAGE,QAAQoE,OAAO0O,QAAQ;YAC7B1O,OAAO0O,QAAQR;AACjB;AACD,MARD;AASD,EAviBD","sourcesContent":[null]} \ No newline at end of file +{"version":3,"sources":["/Users/williamtroup/Documents/GitHub%20Repos/Peek.js/dist/peek.esm.js"],"names":["Is","Is2","defined","value","toString","definedObject","object","definedBoolean","definedString","definedFunction","definedNumber","definedArray","Array","definedDate","Date","invalidOptionArray","array","minimumLength","length","hexColor","valid","isNaN","substring","isRgbColor","startsWith","Constant","Constant2","PEEK_JS_IGNORE_STATE_ATTRIBUTE","DomElement","DomElement2","create","container","type","className","insertAtStart","nodeType","toLowerCase","isText","result","document","createTextNode","createElement","setAttribute","appendChild","insertBefore","children","createWithHTML","html","element","innerHTML","cancelBubble","e","preventDefault","stopPropagation","getScrollPosition","documentElement","left","scrollLeft","clientLeft","top","scrollTop","clientTop","showElementAtMousePosition","offset","style","display","pageX","pageY","scrollPosition","offsetWidth","window","innerWidth","offsetHeight","innerHeight","getOffset","offsetLeft","offsetTop","offsetParent","Default","Default2","getAnyString","defaultValue","getString","getBoolean","getNumber","getArray","getObject","getStringOrArray","values","split","Config","Config2","Options","Options2","get","newConfiguration","configuration","dialogShowDelay","dialogHideDelay","searchDelay","getText","text","cssText","attributesText","sizeText","classesText","noAttributesAvailableText","closeText","copyText","copySymbolText","pasteText","pasteSymbolText","removeText","removeSymbolText","noClassesAvailableText","searchPropertiesPlaceHolderText","clearText","clearSymbolText","noPropertiesFoundForSearchText","dialogMovedSymbolText","propertyValuePlaceHolderText","modeNotSupportedText","unknownModeText","moveUpText","moveUpSymbolText","moveDownText","moveDownSymbolText","removeElementSymbolText","lockText","Start","Start2","newOptions","options","mode","titleText","showOnly","allowEditing","showIdOrNameInTitle","showNodeNameInTitle","ignoreValues","showLockButtonInTitle","dialogOffset","showSearch","showSearchPropertyCount","_configuration","_dialog","_dialog_Title","_dialog_Title_Button_Lock","_dialog_Search","_dialog_Search_Input","_dialog_Search_Input_TimerId","_dialog_Contents","_dialog_Contents_NoSearchResultsText","_dialog_Buttons","_dialog_Buttons_Copy","_dialog_Buttons_Remove","_dialog_Buttons_MoveUp","_dialog_Buttons_MoveDown","_dialog_Show_TimerId","_dialog_Hide_TimerId","_current_Process_Options","_current_Process_Elements","_current_Process_Properties","_current_Process_Element","_current_Process_Locked","_current_Process_NodeCount","_current_Process_Properties_Count","_element_Dialog_Move","_element_Dialog_Move_Original_X","_element_Dialog_Move_Original_Y","_element_Dialog_Move_IsMoving","_element_Dialog_Move_X","_element_Dialog_Move_Y","buildDialog","closeDialog","body","removeChild","onmousemove","onclick","onCopy","placeholder","onkeyup","onSearchProperties","onpaste","onfocus","select","removeButton","title","onSearchPropertiesClear","closeButton","onRemove","onMoveUp","onMoveDown","makeDialogMovable","setDialogTitle","nodeName","id","getAttribute","name","setDialogAsLocked","parentNode","useDelay","closeFunc","clearDialogHideTimer","clearDialogShowTimer","setTimeout","lines","propertyName","hasOwnProperty","push","navigator","clipboard","writeText","join","clearTimeout","getElementsByClassName","propertyNames","slice","call","propertyNamesLength","searchValue","propertiesFound","propertyNameIndex","parent","trim","removeProperty","propertyNameText","innerText","indexOf","focus","previousElementSibling","nextElementSibling","buildDialogContent","buildCssProperties","buildAttributeProperties","buildSizeProperties","buildClassProperties","computedStyles","getComputedStyle","computedStylesLength","styleIndex","buildPropertyRow","getPropertyValue","hasAttributes","attribute","attributes","classList","index","propertyValueText","isPropertyVisible","isPropertyValueVisible","property","propertyValue","propertyValueInput","add","borderLeftColor","copyButton","pasteButton","onPropertyPaste","onPropertyRemove","readOnly","onPropertyValueKeyUp","readText","then","data","updatePropertyValue","removeAttribute","remove","input","code","setProperty","replace","parseInt","buildNodeEvents","tagTypes","tagTypeIndex","domElements","getElementsByTagName","elements","elementsLength","elementIndex","buildNodeEvent","addEventListener","onWindowMove","attributeValue","onNodeMouseOver","removeNodeEvents","currentProcessElementsLength","removeEventListener","titleBar","dialog","onmousedown","onMoveTitleBarMouseDown","onMoveDocumentMouseMove","onmouseup","onMoveTitleBarMouseUp","oncontextmenu","onMoveDocumentMouseLeave","_public","start","stop","close","setConfiguration","configurationHasChanged","newInternalConfiguration","getVersion","$peek"],"mappings":"AACA,IAAIA;;AACJ,CAAEC;IACA,SAASC,EAAQC;QACf,OAAOA,MAAU,QAAQA,WAAe,KAAKA,EAAMC,eAAe;AACpE;IACAH,EAAIC,UAAUA;IACd,SAASG,EAAcC;QACrB,OAAOJ,EAAQI,aAAkBA,MAAW;AAC9C;IACAL,EAAII,gBAAgBA;IACpB,SAASE,EAAeD;QACtB,OAAOJ,EAAQI,aAAkBA,MAAW;AAC9C;IACAL,EAAIM,iBAAiBA;IACrB,SAASC,EAAcF;QACrB,OAAOJ,EAAQI,aAAkBA,MAAW;AAC9C;IACAL,EAAIO,gBAAgBA;IACpB,SAASC,EAAgBH;QACvB,OAAOJ,EAA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BhH,GAAkB;oBACzC,IAAIA,EAAiBiH,eAAeD,MAAiB/D,EAAegE,eAAeD,MAAiBiG,EAAyBjG,OAAkBhH,EAAiBgH,IAAe;wBAC7KiG,EAAyBjG,KAAgBhH,EAAiBgH;wBAC1DgG,IAA0B;AAC5B;AACF;gBACA,IAAIA,GAAyB;oBAC3B/J,IAAiBtD,EAAOE,QAAQE,IAAIkN;oBACpCnI;oBACA,IAAI7K,EAAGK,cAAc2J,IAA2B;wBAC9CkC;AACF;AACF;AACF;YACA,OAAOwG;AACT;QAMAO,YAAY;YACV,OAAO;AACT;;IAEF;QACEjK,IAAiBtD,EAAOE,QAAQE;QAChCvD,SAASmP,iBAAiB,qBAAoB;YAC5C7G;AAAa;QAEf,KAAK7K,EAAGE,QAAQoE,OAAO4O,QAAQ;YAC7B5O,OAAO4O,QAAQR;AACjB;AACD,MARD;AASD,EAviBD","sourcesContent":[null]} \ No newline at end of file diff --git a/dist/peek.js b/dist/peek.js index 2f5730f..09f0e0d 100644 --- a/dist/peek.js +++ b/dist/peek.js @@ -7,14 +7,14 @@ var e; return e !== null && e !== void 0 && e.toString() !== ""; } e.defined = t; - function n(e) { + function o(e) { return t(e) && typeof e === "object"; } - e.definedObject = n; - function o(e) { + e.definedObject = o; + function n(e) { return t(e) && typeof e === "boolean"; } - e.definedBoolean = o; + e.definedBoolean = n; function i(e) { return t(e) && typeof e === "string"; } @@ -28,11 +28,11 @@ var e; } e.definedNumber = r; function s(e) { - return n(e) && e instanceof Array; + return o(e) && e instanceof Array; } e.definedArray = s; function a(e) { - return n(e) && e instanceof Date; + return o(e) && e instanceof Date; } e.definedDate = a; function c(e, t = 1) { @@ -61,11 +61,11 @@ var t; e.PEEK_JS_IGNORE_STATE_ATTRIBUTE = "data-peek-js-ignore-state"; })(t || (t = {})); -var n; +var o; -(n => { - function o(n, o, i = "", l = false) { - const r = o.toLowerCase(); +(o => { + function n(o, n, i = "", l = false) { + const r = n.toLowerCase(); const s = r === "text"; let a = s ? document.createTextNode("") : document.createElement(r); a.setAttribute(t.PEEK_JS_IGNORE_STATE_ATTRIBUTE, "ignore"); @@ -73,25 +73,25 @@ var n; a.className = i; } if (!l) { - n.appendChild(a); + o.appendChild(a); } else { - n.insertBefore(a, n.children[0]); + o.insertBefore(a, o.children[0]); } return a; } - n.create = o; - function i(e, n, i, l, r = false) { - const s = o(e, n, i, r); + o.create = n; + function i(e, o, i, l, r = false) { + const s = n(e, o, i, r); s.innerHTML = l; s.setAttribute(t.PEEK_JS_IGNORE_STATE_ATTRIBUTE, "ignore"); return s; } - n.createWithHTML = i; + o.createWithHTML = i; function l(e) { e.preventDefault(); e.stopPropagation(); } - n.cancelBubble = l; + o.cancelBubble = l; function r() { const e = document.documentElement; const t = { @@ -100,36 +100,36 @@ var n; }; return t; } - n.getScrollPosition = r; - function s(e, t, n) { + o.getScrollPosition = r; + function s(e, t, o) { if (t.style.display !== "block") { - let o = e.pageX; + let n = e.pageX; let i = e.pageY; const l = r(); t.style.display = "block"; - if (o + t.offsetWidth > window.innerWidth) { - o -= t.offsetWidth + n; + if (n + t.offsetWidth > window.innerWidth) { + n -= t.offsetWidth + o; } else { - o++; - o += n; + n++; + n += o; } if (i + t.offsetHeight > window.innerHeight) { - i -= t.offsetHeight + n; + i -= t.offsetHeight + o; } else { i++; - i += n; + i += o; } - if (o < l.left) { - o = e.pageX + 1; + if (n < l.left) { + n = e.pageX + 1; } if (i < l.top) { i = e.pageY + 1; } - t.style.left = `${o}px`; + t.style.left = `${n}px`; t.style.top = `${i}px`; } } - n.showElementAtMousePosition = s; + o.showElementAtMousePosition = s; function a(e) { const t = { left: 0, @@ -142,52 +142,52 @@ var n; } return t; } - n.getOffset = a; -})(n || (n = {})); + o.getOffset = a; +})(o || (o = {})); -var o; +var n; (t => { - function n(e, t) { + function o(e, t) { return typeof e === "string" ? e : t; } - t.getAnyString = n; - function o(t, n) { - return e.definedString(t) ? t : n; + t.getAnyString = o; + function n(t, o) { + return e.definedString(t) ? t : o; } - t.getString = o; - function i(t, n) { - return e.definedBoolean(t) ? t : n; + t.getString = n; + function i(t, o) { + return e.definedBoolean(t) ? t : o; } t.getBoolean = i; - function l(t, n) { - return e.definedNumber(t) ? t : n; + function l(t, o) { + return e.definedNumber(t) ? t : o; } t.getNumber = l; - function r(t, n) { - return e.definedArray(t) ? t : n; + function r(t, o) { + return e.definedArray(t) ? t : o; } t.getArray = r; - function s(t, n) { - return e.definedObject(t) ? t : n; + function s(t, o) { + return e.definedObject(t) ? t : o; } t.getObject = s; - function a(t, n) { - let o = n; + function a(t, o) { + let n = o; if (e.definedString(t)) { const e = t.toString().split(" "); if (e.length === 0) { - t = n; + t = o; } else { - o = e; + n = e; } } else { - o = r(t, n); + n = r(t, o); } - return o; + return n; } t.getStringOrArray = a; -})(o || (o = {})); +})(n || (n = {})); var i; @@ -195,43 +195,43 @@ var i; let t; (e => { function t(e = null) { - let t = o.getObject(e, {}); - t.dialogShowDelay = o.getNumber(t.dialogShowDelay, 1e3); - t.dialogHideDelay = o.getNumber(t.dialogHideDelay, 500); - t.searchDelay = o.getNumber(t.searchDelay, 500); - t = n(t); + let t = n.getObject(e, {}); + t.dialogShowDelay = n.getNumber(t.dialogShowDelay, 1e3); + t.dialogHideDelay = n.getNumber(t.dialogHideDelay, 500); + t.searchDelay = n.getNumber(t.searchDelay, 500); + t = o(t); return t; } e.get = t; - function n(e) { - e.text = o.getObject(e.text, {}); - e.text.cssText = o.getAnyString(e.text.cssText, "CSS"); - e.text.attributesText = o.getAnyString(e.text.attributesText, "Attributes"); - e.text.sizeText = o.getAnyString(e.text.sizeText, "Size"); - e.text.classesText = o.getAnyString(e.text.classesText, "Classes"); - e.text.noAttributesAvailableText = o.getAnyString(e.text.noAttributesAvailableText, "No attributes are available."); - e.text.closeText = o.getAnyString(e.text.closeText, "Close"); - e.text.copyText = o.getAnyString(e.text.copyText, "Copy"); - e.text.copySymbolText = o.getAnyString(e.text.copySymbolText, "❐"); - e.text.pasteText = o.getAnyString(e.text.pasteText, "Paste"); - e.text.pasteSymbolText = o.getAnyString(e.text.pasteSymbolText, "☐"); - e.text.removeText = o.getAnyString(e.text.removeText, "Remove"); - e.text.removeSymbolText = o.getAnyString(e.text.removeSymbolText, "✕"); - e.text.noClassesAvailableText = o.getAnyString(e.text.noClassesAvailableText, "No classes are available."); - e.text.searchPropertiesPlaceHolderText = o.getAnyString(e.text.searchPropertiesPlaceHolderText, "Search properties..."); - e.text.clearText = o.getAnyString(e.text.clearText, "Clear"); - e.text.clearSymbolText = o.getAnyString(e.text.clearSymbolText, "✕"); - e.text.noPropertiesFoundForSearchText = o.getAnyString(e.text.noPropertiesFoundForSearchText, "No properties were found for your search."); - e.text.dialogMovedSymbolText = o.getAnyString(e.text.dialogMovedSymbolText, "✸"); - e.text.propertyValuePlaceHolderText = o.getAnyString(e.text.propertyValuePlaceHolderText, "Enter value..."); - e.text.modeNotSupportedText = o.getAnyString(e.text.modeNotSupportedText, "The mode you have specified is not supported."); - e.text.unknownModeText = o.getAnyString(e.text.unknownModeText, "Unknown Mode"); - e.text.moveUpText = o.getAnyString(e.text.moveUpText, "Move Up"); - e.text.moveUpSymbolText = o.getAnyString(e.text.moveUpSymbolText, "↑"); - e.text.moveDownText = o.getAnyString(e.text.moveDownText, "Move Down"); - e.text.moveDownSymbolText = o.getAnyString(e.text.moveDownSymbolText, "↓"); - e.text.removeElementSymbolText = o.getAnyString(e.text.removeElementSymbolText, "⌫"); - e.text.lockText = o.getAnyString(e.text.lockText, "Lock"); + function o(e) { + e.text = n.getObject(e.text, {}); + e.text.cssText = n.getAnyString(e.text.cssText, "CSS"); + e.text.attributesText = n.getAnyString(e.text.attributesText, "Attributes"); + e.text.sizeText = n.getAnyString(e.text.sizeText, "Size"); + e.text.classesText = n.getAnyString(e.text.classesText, "Classes"); + e.text.noAttributesAvailableText = n.getAnyString(e.text.noAttributesAvailableText, "No attributes are available."); + e.text.closeText = n.getAnyString(e.text.closeText, "Close"); + e.text.copyText = n.getAnyString(e.text.copyText, "Copy"); + e.text.copySymbolText = n.getAnyString(e.text.copySymbolText, "❐"); + e.text.pasteText = n.getAnyString(e.text.pasteText, "Paste"); + e.text.pasteSymbolText = n.getAnyString(e.text.pasteSymbolText, "☐"); + e.text.removeText = n.getAnyString(e.text.removeText, "Remove"); + e.text.removeSymbolText = n.getAnyString(e.text.removeSymbolText, "✕"); + e.text.noClassesAvailableText = n.getAnyString(e.text.noClassesAvailableText, "No classes are available."); + e.text.searchPropertiesPlaceHolderText = n.getAnyString(e.text.searchPropertiesPlaceHolderText, "Search properties..."); + e.text.clearText = n.getAnyString(e.text.clearText, "Clear"); + e.text.clearSymbolText = n.getAnyString(e.text.clearSymbolText, "✕"); + e.text.noPropertiesFoundForSearchText = n.getAnyString(e.text.noPropertiesFoundForSearchText, "No properties were found for your search."); + e.text.dialogMovedSymbolText = n.getAnyString(e.text.dialogMovedSymbolText, "✸"); + e.text.propertyValuePlaceHolderText = n.getAnyString(e.text.propertyValuePlaceHolderText, "Enter value..."); + e.text.modeNotSupportedText = n.getAnyString(e.text.modeNotSupportedText, "The mode you have specified is not supported."); + e.text.unknownModeText = n.getAnyString(e.text.unknownModeText, "Unknown Mode"); + e.text.moveUpText = n.getAnyString(e.text.moveUpText, "Move Up"); + e.text.moveUpSymbolText = n.getAnyString(e.text.moveUpSymbolText, "↑"); + e.text.moveDownText = n.getAnyString(e.text.moveDownText, "Move Down"); + e.text.moveDownSymbolText = n.getAnyString(e.text.moveDownSymbolText, "↓"); + e.text.removeElementSymbolText = n.getAnyString(e.text.removeElementSymbolText, "⌫"); + e.text.lockText = n.getAnyString(e.text.lockText, "Lock"); return e; } })(t = e.Options || (e.Options = {})); @@ -243,17 +243,19 @@ var l; let t; (e => { function t(e) { - let t = o.getObject(e, {}); - t.nodeType = o.getStringOrArray(t.nodeType, []); - t.mode = o.getNumber(t.mode, 1); - t.titleText = o.getString(t.titleText, ""); - t.showOnly = o.getStringOrArray(t.showOnly, []); - t.allowEditing = o.getBoolean(t.allowEditing, false); - t.showIdOrNameInTitle = o.getBoolean(t.showIdOrNameInTitle, true); - t.showNodeNameInTitle = o.getBoolean(t.showNodeNameInTitle, false); - t.ignoreValues = o.getStringOrArray(t.ignoreValues, []); - t.showLockButtonInTitle = o.getBoolean(t.showLockButtonInTitle, true); - t.dialogOffset = o.getNumber(t.dialogOffset, 0); + let t = n.getObject(e, {}); + t.nodeType = n.getStringOrArray(t.nodeType, []); + t.mode = n.getNumber(t.mode, 1); + t.titleText = n.getString(t.titleText, ""); + t.showOnly = n.getStringOrArray(t.showOnly, []); + t.allowEditing = n.getBoolean(t.allowEditing, false); + t.showIdOrNameInTitle = n.getBoolean(t.showIdOrNameInTitle, true); + t.showNodeNameInTitle = n.getBoolean(t.showNodeNameInTitle, false); + t.ignoreValues = n.getStringOrArray(t.ignoreValues, []); + t.showLockButtonInTitle = n.getBoolean(t.showLockButtonInTitle, true); + t.dialogOffset = n.getNumber(t.dialogOffset, 0); + t.showSearch = n.getBoolean(t.showSearch, true); + t.showSearchPropertyCount = n.getNumber(t.showSearchPropertyCount, 15); return t; } e.get = t; @@ -261,7 +263,7 @@ var l; })(l || (l = {})); (() => { - let o = {}; + let n = {}; let r = null; let s = null; let a = null; @@ -275,9 +277,9 @@ var l; let m = null; let y = null; let T = null; + let h = 0; let v = 0; - let b = 0; - let h = null; + let b = null; let S = []; let w = {}; let A = null; @@ -288,87 +290,87 @@ var l; let H = 0; let M = 0; let P = false; - let k = 0; let C = 0; + let k = 0; function W() { if (e.definedObject(r)) { I(); document.body.removeChild(r); r = null; } - r = n.create(document.body, "div", "peek-js"); - r.onmousemove = n.cancelBubble; - s = n.create(r, "div", "dialog-title-bar"); - c = n.create(r, "div", "dialog-search"); - d = n.create(r, "div", "dialog-contents"); - x = n.create(r, "div", "dialog-buttons"); - g = n.createWithHTML(x, "button", "copy", o.text.copyText); + r = o.create(document.body, "div", "peek-js"); + r.onmousemove = o.cancelBubble; + s = o.create(r, "div", "dialog-title-bar"); + c = o.create(r, "div", "dialog-search"); + d = o.create(r, "div", "dialog-contents"); + x = o.create(r, "div", "dialog-buttons"); + g = o.createWithHTML(x, "button", "copy", n.text.copyText); g.onclick = D; - f = n.create(c, "input"); - f.placeholder = o.text.searchPropertiesPlaceHolderText; + f = o.create(c, "input"); + f.placeholder = n.text.searchPropertiesPlaceHolderText; f.type = "text"; f.onkeyup = _; f.onpaste = _; f.onfocus = () => f.select(); - const t = n.createWithHTML(c, "button", "clear-small", o.text.clearSymbolText); - t.title = o.text.clearText; + const t = o.createWithHTML(c, "button", "clear-small", n.text.clearSymbolText); + t.title = n.text.clearText; t.onclick = R; - const i = n.createWithHTML(x, "button", "close", o.text.closeText); + const i = o.createWithHTML(x, "button", "close", n.text.closeText); i.onclick = () => I(); - m = n.createWithHTML(x, "button", "remove", o.text.removeElementSymbolText); + m = o.createWithHTML(x, "button", "remove", n.text.removeElementSymbolText); m.onclick = j; - m.title = o.text.removeText; - y = n.createWithHTML(x, "button", "move-up", o.text.moveUpSymbolText); + m.title = n.text.removeText; + y = o.createWithHTML(x, "button", "move-up", n.text.moveUpSymbolText); y.onclick = U; - y.title = o.text.moveUpText; - T = n.createWithHTML(x, "button", "move-down", o.text.moveDownSymbolText); + y.title = n.text.moveUpText; + T = o.createWithHTML(x, "button", "move-down", n.text.moveDownSymbolText); T.onclick = V; - T.title = o.text.moveDownText; + T.title = n.text.moveDownText; ce(s, r); } function B(t = null) { - if (!L && e.defined(h)) { - let i = h.titleText; + if (!L && e.defined(b)) { + let i = b.titleText; s.innerHTML = ""; if (!e.definedString(i)) { - if (h.mode === 1) { - i = o.text.cssText; - } else if (h.mode === 2) { - i = o.text.attributesText; - } else if (h.mode === 3) { - i = o.text.sizeText; - } else if (h.mode === 4) { - i = o.text.classesText; + if (b.mode === 1) { + i = n.text.cssText; + } else if (b.mode === 2) { + i = n.text.attributesText; + } else if (b.mode === 3) { + i = n.text.sizeText; + } else if (b.mode === 4) { + i = n.text.classesText; } else { - i = o.text.unknownModeText; + i = n.text.unknownModeText; } } - n.createWithHTML(s, "span", "title", i); - if (N > 1 && h.showNodeNameInTitle) { - n.createWithHTML(s, "span", "dash", " - "); - n.createWithHTML(s, "span", "node-name", `[${t.nodeName.toLowerCase()}]`); + o.createWithHTML(s, "span", "title", i); + if (N > 1 && b.showNodeNameInTitle) { + o.createWithHTML(s, "span", "dash", " - "); + o.createWithHTML(s, "span", "node-name", `[${t.nodeName.toLowerCase()}]`); } - if (h.showIdOrNameInTitle && e.defined(t)) { - const o = t.getAttribute("id"); + if (b.showIdOrNameInTitle && e.defined(t)) { + const n = t.getAttribute("id"); const i = t.getAttribute("name"); - if (e.definedString(o)) { - n.createWithHTML(s, "span", "dash", " - "); - n.createWithHTML(s, "span", "id-or-name", o); + if (e.definedString(n)) { + o.createWithHTML(s, "span", "dash", " - "); + o.createWithHTML(s, "span", "id-or-name", n); } else if (e.definedString(i)) { - n.createWithHTML(s, "span", "dash", " - "); - n.createWithHTML(s, "span", "id-or-name", i); + o.createWithHTML(s, "span", "dash", " - "); + o.createWithHTML(s, "span", "id-or-name", i); } } - if (h.showLockButtonInTitle) { - a = n.createWithHTML(s, "button", "lock", o.text.dialogMovedSymbolText); - a.title = o.text.lockText; + if (b.showLockButtonInTitle) { + a = o.createWithHTML(s, "button", "lock", n.text.dialogMovedSymbolText); + a.title = n.text.lockText; a.onclick = () => $(); } } } function $() { if (!L) { - n.createWithHTML(s, "span", "locked", `${o.text.dialogMovedSymbolText}${" "}`, true); + o.createWithHTML(s, "span", "locked", `${n.text.dialogMovedSymbolText}${" "}`, true); if (e.defined(a)) { a.parentNode.removeChild(a); a = null; @@ -385,11 +387,11 @@ var l; ae(); }; if (e) { - if (b === 0) { + if (v === 0) { se(); - b = setTimeout((() => { + v = setTimeout((() => { t(); - }), o.dialogHideDelay); + }), n.dialogHideDelay); } } else { t(); @@ -400,18 +402,18 @@ var l; const e = []; for (let t in w) { if (w.hasOwnProperty(t)) { - if (h.mode === 1) { + if (b.mode === 1) { e.push(`${t}: ${w[t]};`); - } else if (h.mode === 2) { + } else if (b.mode === 2) { e.push(`${t}="${w[t]}"`); - } else if (h.mode === 4) { + } else if (b.mode === 4) { e.push(w[t]); } } } - if (h.mode === 1) { + if (b.mode === 1) { navigator.clipboard.writeText(`${A.nodeName.toLowerCase()} { ${"\n"} ${e.join("\n")} ${"\n"} }`); - } else if (h.mode === 2 || h.mode === 4) { + } else if (b.mode === 2 || b.mode === 4) { navigator.clipboard.writeText(e.join(" ")); } } @@ -426,23 +428,23 @@ var l; } u = setTimeout((() => { const t = d.getElementsByClassName("property-name"); - const n = [].slice.call(t); - const o = n.length; + const o = [].slice.call(t); + const n = o.length; const i = f.value.toLowerCase(); let l = 0; - for (let t = 0; t < o; t++) { - const o = n[t].parentNode; - if (e.defined(o)) { + for (let t = 0; t < n; t++) { + const n = o[t].parentNode; + if (e.defined(n)) { if (f.value.trim() === "") { - o.style.removeProperty("display"); + n.style.removeProperty("display"); l++; } else { - const e = n[t].innerText; + const e = o[t].innerText; if (e.toLowerCase().indexOf(i) > -1) { - o.style.removeProperty("display"); + n.style.removeProperty("display"); l++; } else { - o.style.display = "none"; + n.style.display = "none"; } } } @@ -452,7 +454,7 @@ var l; } else { p.style.removeProperty("display"); } - }), o.searchDelay); + }), n.searchDelay); } function R() { f.value = ""; @@ -470,19 +472,19 @@ var l; } } function F(t) { - if (e.defined(h)) { + if (e.defined(b)) { d.innerHTML = ""; d.scrollTop = 0; w = {}; E = 0; A = t; B(t); - if (h.mode === 1 || h.mode === 4 || h.mode === 2) { + if (b.mode === 1 || b.mode === 4 || b.mode === 2) { g.style.removeProperty("display"); } else { g.style.display = "none"; } - if (!h.allowEditing) { + if (!b.allowEditing) { m.style.display = "none"; y.style.display = "none"; T.style.display = "none"; @@ -491,19 +493,19 @@ var l; y.style.removeProperty("display"); T.style.removeProperty("display"); } - p = n.createWithHTML(d, "span", "no-search-results", o.text.noPropertiesFoundForSearchText); - if (h.mode === 1) { + p = o.createWithHTML(d, "span", "no-search-results", n.text.noPropertiesFoundForSearchText); + if (b.mode === 1) { z(t); - } else if (h.mode === 2) { + } else if (b.mode === 2) { G(t); - } else if (h.mode === 3) { + } else if (b.mode === 3) { J(t); - } else if (h.mode === 4) { + } else if (b.mode === 4) { K(t); } else { - n.createWithHTML(d, "span", "warning", o.text.modeNotSupportedText); + o.createWithHTML(d, "span", "warning", n.text.modeNotSupportedText); } - if (E <= 15) { + if (E <= b.showSearchPropertyCount || !b.showSearch) { c.style.display = "none"; } else { c.style.removeProperty("display"); @@ -512,9 +514,9 @@ var l; } function z(e) { const t = getComputedStyle(e); - const n = t.length; - for (let o = 0; o < n; o++) { - X(e, t[o], t.getPropertyValue(t[o])); + const o = t.length; + for (let n = 0; n < o; n++) { + X(e, t[n], t.getPropertyValue(t[n])); } } function G(e) { @@ -524,11 +526,11 @@ var l; } } else { d.innerHTML = ""; - n.createWithHTML(d, "span", "warning", o.text.noAttributesAvailableText); + o.createWithHTML(d, "span", "warning", n.text.noAttributesAvailableText); } } function J(e) { - const t = n.getOffset(e); + const t = o.getOffset(e); X(e, "left", `${t.left.toString()}px`, false); X(e, "top", `${t.top.toString()}px`, false); X(e, "width", `${e.offsetWidth.toString()}px`, false); @@ -537,35 +539,35 @@ var l; function K(e) { if (e.classList.length > 0) { let t = 1; - for (let n of e.classList) { - X(e, t.toString(), n); + for (let o of e.classList) { + X(e, t.toString(), o); t++; } } else { d.innerHTML = ""; - n.createWithHTML(d, "span", "warning", o.text.noClassesAvailableText); + o.createWithHTML(d, "span", "warning", n.text.noClassesAvailableText); } } function X(t, i, l, r = true) { if (ee(i) && te(l)) { - const s = n.create(d, "div", "property-row"); - n.createWithHTML(s, "div", "property-name", i); - const a = n.create(s, "div", "property-value"); - const c = n.create(a, "input"); + const s = o.create(d, "div", "property-row"); + o.createWithHTML(s, "div", "property-name", i); + const a = o.create(s, "div", "property-value"); + const c = o.create(a, "input"); if (e.hexColor(l) || e.isRgbColor(l)) { c.classList.add("property-value-color"); c.style.borderLeftColor = l; } - c.placeholder = o.text.propertyValuePlaceHolderText; + c.placeholder = n.text.propertyValuePlaceHolderText; c.onfocus = () => c.select(); - const f = n.createWithHTML(s, "button", "copy-small", o.text.copySymbolText); - f.title = o.text.copyText; + const f = o.createWithHTML(s, "button", "copy-small", n.text.copySymbolText); + f.title = n.text.copyText; f.onclick = () => navigator.clipboard.writeText(l); - if (h.allowEditing && r) { - const e = n.createWithHTML(s, "button", "paste-small", o.text.pasteSymbolText); - const r = n.createWithHTML(s, "button", "remove-small", o.text.removeSymbolText); - e.title = o.text.pasteText; - r.title = o.text.removeText; + if (b.allowEditing && r) { + const e = o.createWithHTML(s, "button", "paste-small", n.text.pasteSymbolText); + const r = o.createWithHTML(s, "button", "remove-small", n.text.removeSymbolText); + e.title = n.text.pasteText; + r.title = n.text.removeText; e.onclick = () => Y(t, c, i); r.onclick = () => q(s, t, i, l); } @@ -573,78 +575,78 @@ var l; c.value = l; w[i] = l; E++; - if (!h.allowEditing || !r) { + if (!b.allowEditing || !r) { c.readOnly = true; } else { c.onkeyup = e => Q(e, i, c, t); } } } - function Y(e, t, n) { - navigator.clipboard.readText().then((o => { - t.value = o; - Z(e, n, t); + function Y(e, t, o) { + navigator.clipboard.readText().then((n => { + t.value = n; + Z(e, o, t); })); } - function q(e, t, n, o) { - if (h.mode === 1) { - t.style.removeProperty(n); + function q(e, t, o, n) { + if (b.mode === 1) { + t.style.removeProperty(o); e.parentNode.removeChild(e); - } else if (h.mode === 2) { - t.removeAttribute(n); + } else if (b.mode === 2) { + t.removeAttribute(o); e.parentNode.removeChild(e); - } else if (h.mode === 4) { - t.classList.remove(o); + } else if (b.mode === 4) { + t.classList.remove(n); e.parentNode.removeChild(e); } } - function Q(e, t, n, o) { + function Q(e, t, o, n) { if (e.code === "Enter") { - Z(o, t, n); + Z(n, t, o); } } - function Z(t, n, o) { - if (h.mode === 1) { - t.style.setProperty(n, o.value); - } else if (h.mode === 2) { - t.setAttribute(n, o.value); - } else if (h.mode === 4) { - t.classList.replace(t.classList[parseInt(n) - 1], o.value); + function Z(t, o, n) { + if (b.mode === 1) { + t.style.setProperty(o, n.value); + } else if (b.mode === 2) { + t.setAttribute(o, n.value); + } else if (b.mode === 4) { + t.classList.replace(t.classList[parseInt(o) - 1], n.value); } - w[n] = o.value; - if (e.hexColor(o.value) || e.isRgbColor(o.value)) { - o.classList.add("property-value-color"); - o.style.borderLeftColor = o.value; + w[o] = n.value; + if (e.hexColor(n.value) || e.isRgbColor(n.value)) { + n.classList.add("property-value-color"); + n.style.borderLeftColor = n.value; } else { - o.classList.remove("property-value-color"); + n.classList.remove("property-value-color"); } } function ee(e) { - return h.showOnly.length === 0 || h.showOnly.indexOf(e) > -1; + return b.showOnly.length === 0 || b.showOnly.indexOf(e) > -1; } function te(e) { - return h.ignoreValues.length === 0 || h.ignoreValues.indexOf(e) <= -1; + return b.ignoreValues.length === 0 || b.ignoreValues.indexOf(e) <= -1; } - function ne() { - const e = h.nodeType; + function oe() { + const e = b.nodeType; N = e.length; for (let t = 0; t < N; t++) { - const n = document.getElementsByTagName(e[t]); - const o = [].slice.call(n); - const i = o.length; + const o = document.getElementsByTagName(e[t]); + const n = [].slice.call(o); + const i = n.length; for (let e = 0; e < i; e++) { - oe(o[e]); + ne(n[e]); } } window.addEventListener("mousemove", re); } - function oe(n) { - const o = n.getAttribute(t.PEEK_JS_IGNORE_STATE_ATTRIBUTE); - if (!e.definedString(o) && o !== "ignore") { - n.addEventListener("mousemove", (e => { - le(e, n); + function ne(o) { + const n = o.getAttribute(t.PEEK_JS_IGNORE_STATE_ATTRIBUTE); + if (!e.definedString(n) && n !== "ignore") { + o.addEventListener("mousemove", (e => { + le(e, o); })); - S.push(n); + S.push(o); } } function ie() { @@ -660,14 +662,14 @@ var l; I(); } function le(t, i) { - if (!L && e.defined(h)) { - n.cancelBubble(t); + if (!L && e.defined(b)) { + o.cancelBubble(t); se(); - v = setTimeout((() => { + h = setTimeout((() => { F(i); ae(); - n.showElementAtMousePosition(t, r, h.dialogOffset); - }), o.dialogShowDelay); + o.showElementAtMousePosition(t, r, b.dialogOffset); + }), n.dialogShowDelay); } } function re() { @@ -677,15 +679,15 @@ var l; } } function se() { - if (v !== 0) { - clearTimeout(v); - v = 0; + if (h !== 0) { + clearTimeout(h); + h = 0; } } function ae() { - if (b !== 0) { - clearTimeout(b); - b = 0; + if (v !== 0) { + clearTimeout(v); + v = 0; } } function ce(e, t) { @@ -708,8 +710,8 @@ var l; if (!P) { O = t; P = true; - k = e.pageX - O.offsetLeft; - C = e.pageY - O.offsetTop; + C = e.pageX - O.offsetLeft; + k = e.pageY - O.offsetTop; H = O.offsetLeft; M = O.offsetTop; } @@ -724,12 +726,12 @@ var l; } function de(e, t = false) { if (t) { - n.cancelBubble(e); + o.cancelBubble(e); } if (P) { $(); - O.style.left = `${e.pageX - k}px`; - O.style.top = `${e.pageY - C}px`; + O.style.left = `${e.pageX - C}px`; + O.style.top = `${e.pageY - k}px`; } } function pe() { @@ -744,16 +746,16 @@ var l; } const xe = { start: function(t) { - if (!e.definedObject(h)) { - h = l.Options.get(t); + if (!e.definedObject(b)) { + b = l.Options.get(t); B(); - ne(); + oe(); } return xe; }, stop: function() { - if (e.definedObject(h)) { - h = null; + if (e.definedObject(b)) { + b = null; se(); ie(); } @@ -765,18 +767,18 @@ var l; }, setConfiguration: function(t) { if (e.definedObject(t)) { - let n = false; - const l = o; + let o = false; + const l = n; for (let e in t) { - if (t.hasOwnProperty(e) && o.hasOwnProperty(e) && l[e] !== t[e]) { + if (t.hasOwnProperty(e) && n.hasOwnProperty(e) && l[e] !== t[e]) { l[e] = t[e]; - n = true; + o = true; } } - if (n) { - o = i.Options.get(l); + if (o) { + n = i.Options.get(l); W(); - if (e.definedObject(h)) { + if (e.definedObject(b)) { B(); } } @@ -788,7 +790,7 @@ var l; } }; (() => { - o = i.Options.get(); + n = i.Options.get(); document.addEventListener("DOMContentLoaded", (() => { W(); })); diff --git a/dist/peek.js.map b/dist/peek.js.map index 98367dc..f306acb 100644 --- a/dist/peek.js.map +++ b/dist/peek.js.map @@ -1 +1 @@ -{"version":3,"sources":["/Users/williamtroup/Documents/GitHub%20Repos/Peek.js/dist/peek.js"],"names":["Is","Is2","defined","value","toString","definedObject","object","definedBoolean","definedString","definedFunction","definedNumber","definedArray","Array","definedDate","Date","invalidOptionArray","array","minimumLength","length","hexColor","valid","isNaN","substring","isRgbColor","startsWith","Constant","Constant2","PEEK_JS_IGNORE_STATE_ATTRIBUTE","DomElement","DomElement2","create","container","type","className","insertAtStart","nodeType","toLowerCase","isText","result","document","createTextNode","createElement","setAttribute","appendChild","insertBefore","children","createWithHTML","html","element","innerHTML","cancelBubble","e","preventDefault","stopPropagation","getScrollPosition","documentElement","left","scrollLeft","clientLeft","top","scrollTop","clientTop","showElementAtMousePosition","offset","style","display","pageX","pageY","scrollPosition","offsetWidth","window","innerWidth","offsetHeight","innerHeight","getOffset","offsetLeft","offsetTop","offsetParent","Default","Default2","getAnyString","defaultValue","getString","getBoolean","getNumber","getArray","getObject","getStringOrArray","values","split","Config","Config2","Options","Options2","get","newConfiguration","configuration","dialogShowDelay","dialogHideDelay","searchDelay","getText","text","cssText","attributesText","sizeText","classesText","noAttributesAvailableText","closeText","copyText","copySymbolText","pasteText","pasteSymbolText","removeText","removeSymbolText","noClassesAvailableText","searchPropertiesPlaceHolderText","clearText","clearSymbolText","noPropertiesFoundForSearchText","dialogMovedSymbolText","propertyValuePlaceHolderText","modeNotSupportedText","unknownModeText","moveUpText","moveUpSymbolText","moveDownText","moveDownSymbolText","removeElementSymbolText","lockText","Start","Start2","newOptions","options","mode","titleText","showOnly","allowEditing","showIdOrNameInTitle","showNodeNameInTitle","ignoreValues","showLockButtonInTitle","dialogOffset","_configuration","_dialog","_dialog_Title","_dialog_Title_Button_Lock","_dialog_Search","_dialog_Search_Input","_dialog_Search_Input_TimerId","_dialog_Contents","_dialog_Contents_NoSearchResultsText","_dialog_Buttons","_dialog_Buttons_Copy","_dialog_Buttons_Remove","_dialog_Buttons_MoveUp","_dialog_Buttons_MoveDown","_dialog_Show_TimerId","_dialog_Hide_TimerId","_current_Process_Options","_current_Process_Elements","_current_Process_Properties","_current_Process_Element","_current_Process_Locked","_current_Process_NodeCount","_current_Process_Properties_Count","_element_Dialog_Move","_element_Dialog_Move_Original_X","_element_Dialog_Move_Original_Y","_element_Dialog_Move_IsMoving","_element_Dialog_Move_X","_element_Dialog_Move_Y","buildDialog","closeDialog","body","removeChild","onmousemove","onclick","onCopy","placeholder","onkeyup","onSearchProperties","onpaste","onfocus","select","removeButton","title","onSearchPropertiesClear","closeButton","onRemove","onMoveUp","onMoveDown","makeDialogMovable","setDialogTitle","nodeName","id","getAttribute","name","setDialogAsLocked","parentNode","useDelay","closeFunc","clearDialogHideTimer","clearDialogShowTimer","setTimeout","lines","propertyName","hasOwnProperty","push","navigator","clipboard","writeText","join","clearTimeout","getElementsByClassName","propertyNames","slice","call","propertyNamesLength","searchValue","propertiesFound","propertyNameIndex","parent","trim","removeProperty","propertyNameText","innerText","indexOf","focus","previousElementSibling","nextElementSibling","buildDialogContent","buildCssProperties","buildAttributeProperties","buildSizeProperties","buildClassProperties","computedStyles","getComputedStyle","computedStylesLength","styleIndex","buildPropertyRow","getPropertyValue","hasAttributes","attribute","attributes","classList","index","propertyValueText","isPropertyVisible","isPropertyValueVisible","property","propertyValue","propertyValueInput","add","borderLeftColor","copyButton","pasteButton","onPropertyPaste","onPropertyRemove","readOnly","onPropertyValueKeyUp","readText","then","data","updatePropertyValue","removeAttribute","remove","input","code","setProperty","replace","parseInt","buildNodeEvents","tagTypes","tagTypeIndex","domElements","getElementsByTagName","elements","elementsLength","elementIndex","buildNodeEvent","addEventListener","onWindowMove","attributeValue","onNodeMouseOver","removeNodeEvents","currentProcessElementsLength","removeEventListener","titleBar","dialog","onmousedown","onMoveTitleBarMouseDown","onMoveDocumentMouseMove","onmouseup","onMoveTitleBarMouseUp","oncontextmenu","onMoveDocumentMouseLeave","_public","start","stop","close","setConfiguration","configurationHasChanged","newInternalCon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I1S,EAAGK,cAAcyJ,IAA2B;gBAC9CA,IAA2B;gBAC3B4C;gBACAkF;AACF;YACA,OAAOY;AACT;QACAG,OAAO;YACL/H;YACA,OAAO4H;AACT;QAMAI,kBAAkB,SAAS7M;YACzB,IAAI/F,EAAGK,cAAc0F,IAAmB;gBACtC,IAAI8M,IAA0B;gBAC9B,MAAMC,IAA2BhK;gBACjC,KAAK,IAAI+D,KAAgB9G,GAAkB;oBACzC,IAAIA,EAAiB+G,eAAeD,MAAiB/D,EAAegE,eAAeD,MAAiBiG,EAAyBjG,OAAkB9G,EAAiB8G,IAAe;wBAC7KiG,EAAyBjG,KAAgB9G,EAAiB8G;wBAC1DgG,IAA0B;AAC5B;AACF;gBACA,IAAIA,GAAyB;oBAC3B/J,IAAiBpD,EAAOE,QAAQE,IAAIgN;oBACpCnI;oBACA,IAAI3K,EAAGK,cAAcyJ,IAA2B;wBAC9CkC;AACF;AACF;AACF;YACA,OAAOwG;AACT;QAMAO,YAAY;YACV,OAAO;AACT;;IAEF;QACEjK,IAAiBpD,EAAOE,QAAQE;QAChCvD,SAASiP,iBAAiB,qBAAoB;YAC5C7G;AAAa;QAEf,KAAK3K,EAAGE,QAAQoE,OAAO0O,QAAQ;YAC7B1O,OAAO0O,QAAQR;AACjB;AACD,MARD;AASD,EAviBD","sourcesContent":[null]} \ No newline at end of file +{"version":3,"sources":["/Users/williamtroup/Documents/GitHub%20Repos/Peek.js/dist/peek.js"],"names":["Is","Is2","defined","value","toString","definedObject","object","definedBoolean","definedString","definedFunction","definedNumber","definedArray","Array","definedDate","Date","invalidOptionArray","array","minimumLength","length","hexColor","valid","isNaN","substring","isRgbColor","startsWith","Constant","Constant2","PEEK_JS_IGNORE_STATE_ATTRIBUTE","DomElement","DomElement2","create","container","type","className","insertAtStart","nodeType","toLowerCase","isText","result","document","createTextNode","createElement","setAttribute","appendChild","insertBefore","children","createWithHTML","html","element","innerHTML","cancelBubble","e","preventDefault","stopPropagation","getScrollPosition","documentElement","left","scrollLeft","clientLeft","top","scrollTop","clientTop","showElementAtMousePosition","offset","style","display","pageX","pageY","scrollPosition","offsetWidth","window","innerWidth","offsetHeight","innerHeight","getOffset","offsetLeft","offsetTop","offsetParent","Default","Default2","getAnyString","defaultValue","getString","getBoolean","getNumber","getArray","getObject","getStringOrArray","values","split","Config","Config2","Options","Options2","get","newConfiguration","configuration","dialogShowDelay","dialogHideDelay","searchDelay","getText","text","cssText","attributesText","sizeText","classesText","noAttributesAvailableText","closeText","copyText","copySymbolText","pasteText","pasteSymbolText","removeText","removeSymbolText","noClassesAvailableText","searchPropertiesPlaceHolderText","clearText","clearSymbolText","noPropertiesFoundForSearchText","dialogMovedSymbolText","propertyValuePlaceHolderText","modeNotSupportedText","unknownModeText","moveUpText","moveUpSymbolText","moveDownText","moveDownSymbolText","removeElementSymbolText","lockText","Start","Start2","newOptions","options","mode","titleText","showOnly","allowEditing","showIdOrNameInTitle","showNodeNameInTitle","ignoreValues","showLockButtonInTitle","dialogOffset","showSearch","showSearchPropertyCount","_configuration","_dialog","_dialog_Title","_dialog_Title_Button_Lock","_dialog_Search","_dialog_Search_Input","_dialog_Search_Input_TimerId","_dialog_Contents","_dialog_Contents_NoSearchResultsText","_dialog_Buttons","_dialog_Buttons_Copy","_dialog_Buttons_Remove","_dialog_Buttons_MoveUp","_dialog_Buttons_MoveDown","_dialog_Show_TimerId","_dialog_Hide_TimerId","_current_Process_Options","_current_Process_Elements","_current_Process_Properties","_current_Process_Element","_current_Process_Locked","_current_Process_NodeCount","_current_Process_Properties_Count","_element_Dialog_Move","_element_Dialog_Move_Original_X","_element_Dialog_Move_Original_Y","_element_Dialog_Move_IsMoving","_element_Dialog_Move_X","_element_Dialog_Move_Y","buildDialog","closeDialog","body","removeChild","onmousemove","onclick","onCopy","placeholder","onkeyup","onSearchProperties","onpaste","onfocus","select","removeButton","title","onSearchPropertiesClear","closeButton","onRemove","onMoveUp","onMoveDown","makeDialogMovable","setDialogTitle","nodeName","id","getAttribute","name","setDialogAsLocked","parentNode","useDelay","closeFunc","clearDialogHideTimer","clearDialogShowTimer","setTimeout","lines","propertyName","hasOwnProperty","push","navigator","clipboard","writeText","join","clearTimeout","getElementsByClassName","propertyNames","slice","call","propertyNamesLength","searchValue","propertiesFound","propertyNameIndex","parent","trim","removeProperty","propertyNameText","innerText","indexOf","focus","previousElementSibling","nextElementSibling","buildDialogContent","buildCssProperties","buildAttributeProperties","buildSizeProperties","buildClassProperties","computedStyles","getComputedStyle","computedStylesLength","styleIndex","buildPropertyRow","getPropertyValue","hasAttributes","attribute","attributes","classList","index","propertyValueText","isPropertyVisible","isPropertyValueVisible","property","propertyValue","propertyValueInput","add","borderLeftColor","copyButton","pasteButton","onPropertyPaste","onPropertyRemove","readOnly","onPropertyValueKeyUp","readText","then","data","updatePropertyValue","removeAttribute","remove","input","code","setProperty","replace","parseInt","buildNodeEvents","tagTypes","tagTypeIndex","domElements","getElementsByTagName","elements","elementsLength","elementIndex","buildNodeEvent","addEventListener","onWindowMove","attributeValue","onNodeMouseOver","removeNodeEvents","currentProcessElementsLength","removeEventListener","titleBar","dialog","onmousedown","onMoveTitleBarMouseDown","onMoveDocumentMouseMove","onmouseup","onMoveTitleBarMouseUp","oncontextmenu","onMoveDocumentMouseLeave","_public","start","stop","close","setConfiguration","configurationHasChanged","newInternalConfiguration","getVersion","$peek"],"mappings":"AAAA;;AAGA,IAAIA;;AACJ,CAAEC;IACA,SAASC,EAAQC;QACf,OAAOA,MAAU,QAAQA,WAAe,KAAKA,EAAMC,eAAe;AACpE;IACAH,EAAIC,UAAUA;IACd,SAASG,EAAcC;QACrB,OAAOJ,EAAQI,aAAkBA,MAAW;AAC9C;IACAL,EAAII,gBAAgBA;IACpB,SAASE,EAAeD;QACtB,OAAOJ,EAAQI,aAAkBA,MAAW;AAC9C;IACAL,EAAIM,iBAAiBA;IACrB,SAASC,EAAcF;QACrB,OAAOJ,EAAQI,aAAkBA,MAAW;AAC9C;IACAL,EAAIO,gBAAgBA;IACpB,SAAS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K;gBACjC,KAAK,IAAI+D,KAAgBhH,GAAkB;oBACzC,IAAIA,EAAiBiH,eAAeD,MAAiB/D,EAAegE,eAAeD,MAAiBiG,EAAyBjG,OAAkBhH,EAAiBgH,IAAe;wBAC7KiG,EAAyBjG,KAAgBhH,EAAiBgH;wBAC1DgG,IAA0B;AAC5B;AACF;gBACA,IAAIA,GAAyB;oBAC3B/J,IAAiBtD,EAAOE,QAAQE,IAAIkN;oBACpCnI;oBACA,IAAI7K,EAAGK,cAAc2J,IAA2B;wBAC9CkC;AACF;AACF;AACF;YACA,OAAOwG;AACT;QAMAO,YAAY;YACV,OAAO;AACT;;IAEF;QACEjK,IAAiBtD,EAAOE,QAAQE;QAChCvD,SAASmP,iBAAiB,qBAAoB;YAC5C7G;AAAa;QAEf,KAAK7K,EAAGE,QAAQoE,OAAO4O,QAAQ;YAC7B5O,OAAO4O,QAAQR;AACjB;AACD,MARD;AASD,EAviBD","sourcesContent":[null]} \ No newline at end of file diff --git a/dist/peek.min.js b/dist/peek.min.js index 2cc5aa0..f86c3f4 100644 --- a/dist/peek.min.js +++ b/dist/peek.min.js @@ -1 +1 @@ -"use strict";var e,t,n,o,r,i;(e=>{function t(e){return null!=e&&""!==e.toString()}function n(e){return t(e)&&"object"==typeof e}function o(e){return n(e)&&e instanceof Array}e.defined=t,e.definedObject=n,e.definedBoolean=function(e){return t(e)&&"boolean"==typeof e},e.definedString=function(e){return t(e)&&"string"==typeof e},e.definedFunction=function(e){return t(e)&&"function"==typeof e},e.definedNumber=function(e){return t(e)&&"number"==typeof e},e.definedArray=o,e.definedDate=function(e){return n(e)&&e instanceof Date},e.invalidOptionArray=function(e,t=1){return!o(e)||e.length=2&&e.length<=7;return t=!(!t||"#"!==e[0])&&isNaN(+e.substring(1,e.length-1)),t},e.isRgbColor=function(e){return e.startsWith("rgb")||e.startsWith("rgba")}})(e||(e={})),(t||(t={})).PEEK_JS_IGNORE_STATE_ATTRIBUTE="data-peek-js-ignore-state",(n=>{function o(n,o,r="",i=!1){const l=o.toLowerCase();let s="text"===l?document.createTextNode(""):document.createElement(l);return s.setAttribute(t.PEEK_JS_IGNORE_STATE_ATTRIBUTE,"ignore"),e.definedString(r)&&(s.className=r),i?n.insertBefore(s,n.children[0]):n.appendChild(s),s}function r(){const e=document.documentElement;return{left:e.scrollLeft-(e.clientLeft||0),top:e.scrollTop-(e.clientTop||0)}}n.create=o,n.createWithHTML=function(e,n,r,i,l=!1){const s=o(e,n,r,l);return s.innerHTML=i,s.setAttribute(t.PEEK_JS_IGNORE_STATE_ATTRIBUTE,"ignore"),s},n.cancelBubble=function(e){e.preventDefault(),e.stopPropagation()},n.getScrollPosition=r,n.showElementAtMousePosition=function(e,t,n){if("block"!==t.style.display){let o=e.pageX,i=e.pageY;const l=r();t.style.display="block",o+t.offsetWidth>window.innerWidth?o-=t.offsetWidth+n:(o++,o+=n),i+t.offsetHeight>window.innerHeight?i-=t.offsetHeight+n:(i++,i+=n),o{function n(t,n){return e.definedArray(t)?t:n}t.getAnyString=function(e,t){return"string"==typeof e?e:t},t.getString=function(t,n){return e.definedString(t)?t:n},t.getBoolean=function(t,n){return e.definedBoolean(t)?t:n},t.getNumber=function(t,n){return e.definedNumber(t)?t:n},t.getArray=n,t.getObject=function(t,n){return e.definedObject(t)?t:n},t.getStringOrArray=function(t,o){let r=o;if(e.definedString(t)){const e=t.toString().split(" ");0===e.length?t=o:r=e}else r=n(t,o);return r}})(o||(o={})),(e=>{let t;(t=e.Options||(e.Options={})).get=function(e=null){let t=o.getObject(e,{});return t.dialogShowDelay=o.getNumber(t.dialogShowDelay,1e3),t.dialogHideDelay=o.getNumber(t.dialogHideDelay,500),t.searchDelay=o.getNumber(t.searchDelay,500),t=function(e){return e.text=o.getObject(e.text,{}),e.text.cssText=o.getAnyString(e.text.cssText,"CSS"),e.text.attributesText=o.getAnyString(e.text.attributesText,"Attributes"),e.text.sizeText=o.getAnyString(e.text.sizeText,"Size"),e.text.classesText=o.getAnyString(e.text.classesText,"Classes"),e.text.noAttributesAvailableText=o.getAnyString(e.text.noAttributesAvailableText,"No attributes are available."),e.text.closeText=o.getAnyString(e.text.closeText,"Close"),e.text.copyText=o.getAnyString(e.text.copyText,"Copy"),e.text.copySymbolText=o.getAnyString(e.text.copySymbolText,"❐"),e.text.pasteText=o.getAnyString(e.text.pasteText,"Paste"),e.text.pasteSymbolText=o.getAnyString(e.text.pasteSymbolText,"☐"),e.text.removeText=o.getAnyString(e.text.removeText,"Remove"),e.text.removeSymbolText=o.getAnyString(e.text.removeSymbolText,"✕"),e.text.noClassesAvailableText=o.getAnyString(e.text.noClassesAvailableText,"No classes are available."),e.text.searchPropertiesPlaceHolderText=o.getAnyString(e.text.searchPropertiesPlaceHolderText,"Search properties..."),e.text.clearText=o.getAnyString(e.text.clearText,"Clear"),e.text.clearSymbolText=o.getAnyString(e.text.clearSymbolText,"✕"),e.text.noPropertiesFoundForSearchText=o.getAnyString(e.text.noPropertiesFoundForSearchText,"No properties were found for your search."),e.text.dialogMovedSymbolText=o.getAnyString(e.text.dialogMovedSymbolText,"✸"),e.text.propertyValuePlaceHolderText=o.getAnyString(e.text.propertyValuePlaceHolderText,"Enter value..."),e.text.modeNotSupportedText=o.getAnyString(e.text.modeNotSupportedText,"The mode you have specified is not supported."),e.text.unknownModeText=o.getAnyString(e.text.unknownModeText,"Unknown Mode"),e.text.moveUpText=o.getAnyString(e.text.moveUpText,"Move Up"),e.text.moveUpSymbolText=o.getAnyString(e.text.moveUpSymbolText,"↑"),e.text.moveDownText=o.getAnyString(e.text.moveDownText,"Move Down"),e.text.moveDownSymbolText=o.getAnyString(e.text.moveDownSymbolText,"↓"),e.text.removeElementSymbolText=o.getAnyString(e.text.removeElementSymbolText,"⌫"),e.text.lockText=o.getAnyString(e.text.lockText,"Lock"),e}(t),t}})(r||(r={})),(e=>{let t;(t=e.Options||(e.Options={})).get=function(e){let t=o.getObject(e,{});return t.nodeType=o.getStringOrArray(t.nodeType,[]),t.mode=o.getNumber(t.mode,1),t.titleText=o.getString(t.titleText,""),t.showOnly=o.getStringOrArray(t.showOnly,[]),t.allowEditing=o.getBoolean(t.allowEditing,!1),t.showIdOrNameInTitle=o.getBoolean(t.showIdOrNameInTitle,!0),t.showNodeNameInTitle=o.getBoolean(t.showNodeNameInTitle,!1),t.ignoreValues=o.getStringOrArray(t.ignoreValues,[]),t.showLockButtonInTitle=o.getBoolean(t.showLockButtonInTitle,!0),t.dialogOffset=o.getNumber(t.dialogOffset,0),t}})(i||(i={})),(()=>{let o={},l=null,s=null,a=null,c=null,d=null,u=0,p=null,f=null,x=null,g=null,m=null,y=null,T=null,v=0,b=0,h=null,S=[],w={},A=null,L=!1,N=0,E=0,O=null,H=0,M=0,P=!1,k=0,C=0;function W(){e.definedObject(l)&&(D(),document.body.removeChild(l),l=null),l=n.create(document.body,"div","peek-js"),l.onmousemove=n.cancelBubble,s=n.create(l,"div","dialog-title-bar"),c=n.create(l,"div","dialog-search"),p=n.create(l,"div","dialog-contents"),x=n.create(l,"div","dialog-buttons"),g=n.createWithHTML(x,"button","copy",o.text.copyText),g.onclick=$,d=n.create(c,"input"),d.placeholder=o.text.searchPropertiesPlaceHolderText,d.type="text",d.onkeyup=_,d.onpaste=_,d.onfocus=()=>d.select();const t=n.createWithHTML(c,"button","clear-small",o.text.clearSymbolText);t.title=o.text.clearText,t.onclick=R;var r,i;n.createWithHTML(x,"button","close",o.text.closeText).onclick=()=>D(),m=n.createWithHTML(x,"button","remove",o.text.removeElementSymbolText),m.onclick=j,m.title=o.text.removeText,y=n.createWithHTML(x,"button","move-up",o.text.moveUpSymbolText),y.onclick=U,y.title=o.text.moveUpText,T=n.createWithHTML(x,"button","move-down",o.text.moveDownSymbolText),T.onclick=V,T.title=o.text.moveDownText,i=l,(r=s).onmousedown=e=>{!function(e,t){P||(O=t,P=!0,k=e.pageX-O.offsetLeft,C=e.pageY-O.offsetTop,H=O.offsetLeft,M=O.offsetTop)}(e,i)},i.onmousemove=e=>{Z(e,!0)},r.onmouseup=()=>{Q()},r.oncontextmenu=()=>{Q()},document.addEventListener("mousemove",Z),document.addEventListener("mouseleave",ee)}function B(t=null){if(!L&&e.defined(h)){let r=h.titleText;if(s.innerHTML="",e.definedString(r)||(r=1===h.mode?o.text.cssText:2===h.mode?o.text.attributesText:3===h.mode?o.text.sizeText:4===h.mode?o.text.classesText:o.text.unknownModeText),n.createWithHTML(s,"span","title",r),N>1&&h.showNodeNameInTitle&&(n.createWithHTML(s,"span","dash"," - "),n.createWithHTML(s,"span","node-name",`[${t.nodeName.toLowerCase()}]`)),h.showIdOrNameInTitle&&e.defined(t)){const o=t.getAttribute("id"),r=t.getAttribute("name");e.definedString(o)?(n.createWithHTML(s,"span","dash"," - "),n.createWithHTML(s,"span","id-or-name",o)):e.definedString(r)&&(n.createWithHTML(s,"span","dash"," - "),n.createWithHTML(s,"span","id-or-name",r))}h.showLockButtonInTitle&&(a=n.createWithHTML(s,"button","lock",o.text.dialogMovedSymbolText),a.title=o.text.lockText,a.onclick=()=>I())}}function I(){L||(n.createWithHTML(s,"span","locked",`${o.text.dialogMovedSymbolText} `,!0),e.defined(a)&&(a.parentNode.removeChild(a),a=null),L=!0)}function D(e=!1){if("none"!==l.style.display){const t=()=>{l.style.display="none",L=!1,d.value="",q()};e?0===b&&(Y(),b=setTimeout((()=>{t()}),o.dialogHideDelay)):t()}}function $(){const e=[];for(let t in w)w.hasOwnProperty(t)&&(1===h.mode?e.push(`${t}: ${w[t]};`):2===h.mode?e.push(`${t}="${w[t]}"`):4===h.mode&&e.push(w[t]));1===h.mode?navigator.clipboard.writeText(`${A.nodeName.toLowerCase()} { \n ${e.join("\n")} \n }`):2!==h.mode&&4!==h.mode||navigator.clipboard.writeText(e.join(" "))}function j(){A.parentNode.removeChild(A),D()}function _(){0!==u&&(clearTimeout(u),u=0),u=setTimeout((()=>{const t=p.getElementsByClassName("property-name"),n=[].slice.call(t),o=n.length,r=d.value.toLowerCase();let i=0;for(let t=0;t-1?(o.style.removeProperty("display"),i++):o.style.display="none"}}0===i?f.style.display="block":f.style.removeProperty("display")}),o.searchDelay)}function R(){d.value="",d.focus(),_()}function U(){null!==A.parentNode&&null!==A.previousElementSibling&&A.parentNode.insertBefore(A,A.previousElementSibling)}function V(){null!==A.parentNode&&null!==A.nextElementSibling&&A.parentNode.insertBefore(A.nextElementSibling,A)}function F(t){e.defined(h)&&(p.innerHTML="",p.scrollTop=0,w={},E=0,A=t,B(t),1===h.mode||4===h.mode||2===h.mode?g.style.removeProperty("display"):g.style.display="none",h.allowEditing?(m.style.removeProperty("display"),y.style.removeProperty("display"),T.style.removeProperty("display")):(m.style.display="none",y.style.display="none",T.style.display="none"),f=n.createWithHTML(p,"span","no-search-results",o.text.noPropertiesFoundForSearchText),1===h.mode?function(e){const t=getComputedStyle(e),n=t.length;for(let o=0;o0){let t=1;for(let n of e.classList)z(e,t.toString(),n),t++}else p.innerHTML="",n.createWithHTML(p,"span","warning",o.text.noClassesAvailableText)}(t):n.createWithHTML(p,"span","warning",o.text.modeNotSupportedText),E<=15?c.style.display="none":c.style.removeProperty("display"))}function z(t,r,i,l=!0){if(function(e){return 0===h.showOnly.length||h.showOnly.indexOf(e)>-1}(r)&&function(e){return 0===h.ignoreValues.length||h.ignoreValues.indexOf(e)<=-1}(i)){const s=n.create(p,"div","property-row");n.createWithHTML(s,"div","property-name",r);const a=n.create(s,"div","property-value"),c=n.create(a,"input");(e.hexColor(i)||e.isRgbColor(i))&&(c.classList.add("property-value-color"),c.style.borderLeftColor=i),c.placeholder=o.text.propertyValuePlaceHolderText,c.onfocus=()=>c.select();const d=n.createWithHTML(s,"button","copy-small",o.text.copySymbolText);if(d.title=o.text.copyText,d.onclick=()=>navigator.clipboard.writeText(i),h.allowEditing&&l){const e=n.createWithHTML(s,"button","paste-small",o.text.pasteSymbolText),l=n.createWithHTML(s,"button","remove-small",o.text.removeSymbolText);e.title=o.text.pasteText,l.title=o.text.removeText,e.onclick=()=>function(e,t,n){navigator.clipboard.readText().then((o=>{t.value=o,G(e,n,t)}))}(t,c,r),l.onclick=()=>function(e,t,n,o){1===h.mode?(t.style.removeProperty(n),e.parentNode.removeChild(e)):2===h.mode?(t.removeAttribute(n),e.parentNode.removeChild(e)):4===h.mode&&(t.classList.remove(o),e.parentNode.removeChild(e))}(s,t,r,i)}c.type="text",c.value=i,w[r]=i,E++,h.allowEditing&&l?c.onkeyup=e=>function(e,t,n,o){"Enter"===e.code&&G(o,t,n)}(e,r,c,t):c.readOnly=!0}}function G(t,n,o){1===h.mode?t.style.setProperty(n,o.value):2===h.mode?t.setAttribute(n,o.value):4===h.mode&&t.classList.replace(t.classList[parseInt(n)-1],o.value),w[n]=o.value,e.hexColor(o.value)||e.isRgbColor(o.value)?(o.classList.add("property-value-color"),o.style.borderLeftColor=o.value):o.classList.remove("property-value-color")}function J(n){const o=n.getAttribute(t.PEEK_JS_IGNORE_STATE_ATTRIBUTE);e.definedString(o)||"ignore"===o||(n.addEventListener("mousemove",(e=>{K(e,n)})),S.push(n))}function K(t,r){!L&&e.defined(h)&&(n.cancelBubble(t),Y(),v=setTimeout((()=>{F(r),q(),n.showElementAtMousePosition(t,l,h.dialogOffset)}),o.dialogShowDelay))}function X(){L||(Y(),D(!0))}function Y(){0!==v&&(clearTimeout(v),v=0)}function q(){0!==b&&(clearTimeout(b),b=0)}function Q(){P&&(P=!1,O=null,H=0,M=0)}function Z(e,t=!1){t&&n.cancelBubble(e),P&&(I(),O.style.left=e.pageX-k+"px",O.style.top=e.pageY-C+"px")}function ee(){P&&(O.style.left=`${H}px`,O.style.top=`${M}px`,P=!1,O=null,H=0,M=0)}const te={start:function(t){return e.definedObject(h)||(h=i.Options.get(t),B(),function(){const e=h.nodeType;N=e.length;for(let t=0;t{K(t,e)}))}S=[],window.removeEventListener("mousemove",X),D()}()),te},close:function(){return D(),te},setConfiguration:function(t){if(e.definedObject(t)){let n=!1;const i=o;for(let e in t)t.hasOwnProperty(e)&&o.hasOwnProperty(e)&&i[e]!==t[e]&&(i[e]=t[e],n=!0);n&&(o=r.Options.get(i),W(),e.definedObject(h)&&B())}return te},getVersion:function(){return"1.8.0"}};o=r.Options.get(),document.addEventListener("DOMContentLoaded",(()=>{W()})),e.defined(window.$peek)||(window.$peek=te)})(); \ No newline at end of file +"use strict";var e,t,o,n,r,i;(e=>{function t(e){return null!=e&&""!==e.toString()}function o(e){return t(e)&&"object"==typeof e}function n(e){return o(e)&&e instanceof Array}e.defined=t,e.definedObject=o,e.definedBoolean=function(e){return t(e)&&"boolean"==typeof e},e.definedString=function(e){return t(e)&&"string"==typeof e},e.definedFunction=function(e){return t(e)&&"function"==typeof e},e.definedNumber=function(e){return t(e)&&"number"==typeof e},e.definedArray=n,e.definedDate=function(e){return o(e)&&e instanceof Date},e.invalidOptionArray=function(e,t=1){return!n(e)||e.length=2&&e.length<=7;return t=!(!t||"#"!==e[0])&&isNaN(+e.substring(1,e.length-1)),t},e.isRgbColor=function(e){return e.startsWith("rgb")||e.startsWith("rgba")}})(e||(e={})),(t||(t={})).PEEK_JS_IGNORE_STATE_ATTRIBUTE="data-peek-js-ignore-state",(o=>{function n(o,n,r="",i=!1){const l=n.toLowerCase();let s="text"===l?document.createTextNode(""):document.createElement(l);return s.setAttribute(t.PEEK_JS_IGNORE_STATE_ATTRIBUTE,"ignore"),e.definedString(r)&&(s.className=r),i?o.insertBefore(s,o.children[0]):o.appendChild(s),s}function r(){const e=document.documentElement;return{left:e.scrollLeft-(e.clientLeft||0),top:e.scrollTop-(e.clientTop||0)}}o.create=n,o.createWithHTML=function(e,o,r,i,l=!1){const s=n(e,o,r,l);return s.innerHTML=i,s.setAttribute(t.PEEK_JS_IGNORE_STATE_ATTRIBUTE,"ignore"),s},o.cancelBubble=function(e){e.preventDefault(),e.stopPropagation()},o.getScrollPosition=r,o.showElementAtMousePosition=function(e,t,o){if("block"!==t.style.display){let n=e.pageX,i=e.pageY;const l=r();t.style.display="block",n+t.offsetWidth>window.innerWidth?n-=t.offsetWidth+o:(n++,n+=o),i+t.offsetHeight>window.innerHeight?i-=t.offsetHeight+o:(i++,i+=o),n{function o(t,o){return e.definedArray(t)?t:o}t.getAnyString=function(e,t){return"string"==typeof e?e:t},t.getString=function(t,o){return e.definedString(t)?t:o},t.getBoolean=function(t,o){return e.definedBoolean(t)?t:o},t.getNumber=function(t,o){return e.definedNumber(t)?t:o},t.getArray=o,t.getObject=function(t,o){return e.definedObject(t)?t:o},t.getStringOrArray=function(t,n){let r=n;if(e.definedString(t)){const e=t.toString().split(" ");0===e.length?t=n:r=e}else r=o(t,n);return r}})(n||(n={})),(e=>{let t;(t=e.Options||(e.Options={})).get=function(e=null){let t=n.getObject(e,{});return t.dialogShowDelay=n.getNumber(t.dialogShowDelay,1e3),t.dialogHideDelay=n.getNumber(t.dialogHideDelay,500),t.searchDelay=n.getNumber(t.searchDelay,500),t=function(e){return e.text=n.getObject(e.text,{}),e.text.cssText=n.getAnyString(e.text.cssText,"CSS"),e.text.attributesText=n.getAnyString(e.text.attributesText,"Attributes"),e.text.sizeText=n.getAnyString(e.text.sizeText,"Size"),e.text.classesText=n.getAnyString(e.text.classesText,"Classes"),e.text.noAttributesAvailableText=n.getAnyString(e.text.noAttributesAvailableText,"No attributes are available."),e.text.closeText=n.getAnyString(e.text.closeText,"Close"),e.text.copyText=n.getAnyString(e.text.copyText,"Copy"),e.text.copySymbolText=n.getAnyString(e.text.copySymbolText,"❐"),e.text.pasteText=n.getAnyString(e.text.pasteText,"Paste"),e.text.pasteSymbolText=n.getAnyString(e.text.pasteSymbolText,"☐"),e.text.removeText=n.getAnyString(e.text.removeText,"Remove"),e.text.removeSymbolText=n.getAnyString(e.text.removeSymbolText,"✕"),e.text.noClassesAvailableText=n.getAnyString(e.text.noClassesAvailableText,"No classes are available."),e.text.searchPropertiesPlaceHolderText=n.getAnyString(e.text.searchPropertiesPlaceHolderText,"Search properties..."),e.text.clearText=n.getAnyString(e.text.clearText,"Clear"),e.text.clearSymbolText=n.getAnyString(e.text.clearSymbolText,"✕"),e.text.noPropertiesFoundForSearchText=n.getAnyString(e.text.noPropertiesFoundForSearchText,"No properties were found for your search."),e.text.dialogMovedSymbolText=n.getAnyString(e.text.dialogMovedSymbolText,"✸"),e.text.propertyValuePlaceHolderText=n.getAnyString(e.text.propertyValuePlaceHolderText,"Enter value..."),e.text.modeNotSupportedText=n.getAnyString(e.text.modeNotSupportedText,"The mode you have specified is not supported."),e.text.unknownModeText=n.getAnyString(e.text.unknownModeText,"Unknown Mode"),e.text.moveUpText=n.getAnyString(e.text.moveUpText,"Move Up"),e.text.moveUpSymbolText=n.getAnyString(e.text.moveUpSymbolText,"↑"),e.text.moveDownText=n.getAnyString(e.text.moveDownText,"Move Down"),e.text.moveDownSymbolText=n.getAnyString(e.text.moveDownSymbolText,"↓"),e.text.removeElementSymbolText=n.getAnyString(e.text.removeElementSymbolText,"⌫"),e.text.lockText=n.getAnyString(e.text.lockText,"Lock"),e}(t),t}})(r||(r={})),(e=>{let t;(t=e.Options||(e.Options={})).get=function(e){let t=n.getObject(e,{});return t.nodeType=n.getStringOrArray(t.nodeType,[]),t.mode=n.getNumber(t.mode,1),t.titleText=n.getString(t.titleText,""),t.showOnly=n.getStringOrArray(t.showOnly,[]),t.allowEditing=n.getBoolean(t.allowEditing,!1),t.showIdOrNameInTitle=n.getBoolean(t.showIdOrNameInTitle,!0),t.showNodeNameInTitle=n.getBoolean(t.showNodeNameInTitle,!1),t.ignoreValues=n.getStringOrArray(t.ignoreValues,[]),t.showLockButtonInTitle=n.getBoolean(t.showLockButtonInTitle,!0),t.dialogOffset=n.getNumber(t.dialogOffset,0),t.showSearch=n.getBoolean(t.showSearch,!0),t.showSearchPropertyCount=n.getNumber(t.showSearchPropertyCount,15),t}})(i||(i={})),(()=>{let n={},l=null,s=null,a=null,c=null,u=null,d=0,p=null,f=null,x=null,g=null,m=null,y=null,T=null,h=0,b=0,v=null,S=[],w={},A=null,L=!1,N=0,E=0,O=null,H=0,M=0,P=!1,C=0,k=0;function W(){e.definedObject(l)&&(D(),document.body.removeChild(l),l=null),l=o.create(document.body,"div","peek-js"),l.onmousemove=o.cancelBubble,s=o.create(l,"div","dialog-title-bar"),c=o.create(l,"div","dialog-search"),p=o.create(l,"div","dialog-contents"),x=o.create(l,"div","dialog-buttons"),g=o.createWithHTML(x,"button","copy",n.text.copyText),g.onclick=$,u=o.create(c,"input"),u.placeholder=n.text.searchPropertiesPlaceHolderText,u.type="text",u.onkeyup=_,u.onpaste=_,u.onfocus=()=>u.select();const t=o.createWithHTML(c,"button","clear-small",n.text.clearSymbolText);t.title=n.text.clearText,t.onclick=R;var r,i;o.createWithHTML(x,"button","close",n.text.closeText).onclick=()=>D(),m=o.createWithHTML(x,"button","remove",n.text.removeElementSymbolText),m.onclick=j,m.title=n.text.removeText,y=o.createWithHTML(x,"button","move-up",n.text.moveUpSymbolText),y.onclick=U,y.title=n.text.moveUpText,T=o.createWithHTML(x,"button","move-down",n.text.moveDownSymbolText),T.onclick=V,T.title=n.text.moveDownText,i=l,(r=s).onmousedown=e=>{!function(e,t){P||(O=t,P=!0,C=e.pageX-O.offsetLeft,k=e.pageY-O.offsetTop,H=O.offsetLeft,M=O.offsetTop)}(e,i)},i.onmousemove=e=>{Z(e,!0)},r.onmouseup=()=>{Q()},r.oncontextmenu=()=>{Q()},document.addEventListener("mousemove",Z),document.addEventListener("mouseleave",ee)}function B(t=null){if(!L&&e.defined(v)){let r=v.titleText;if(s.innerHTML="",e.definedString(r)||(r=1===v.mode?n.text.cssText:2===v.mode?n.text.attributesText:3===v.mode?n.text.sizeText:4===v.mode?n.text.classesText:n.text.unknownModeText),o.createWithHTML(s,"span","title",r),N>1&&v.showNodeNameInTitle&&(o.createWithHTML(s,"span","dash"," - "),o.createWithHTML(s,"span","node-name",`[${t.nodeName.toLowerCase()}]`)),v.showIdOrNameInTitle&&e.defined(t)){const n=t.getAttribute("id"),r=t.getAttribute("name");e.definedString(n)?(o.createWithHTML(s,"span","dash"," - "),o.createWithHTML(s,"span","id-or-name",n)):e.definedString(r)&&(o.createWithHTML(s,"span","dash"," - "),o.createWithHTML(s,"span","id-or-name",r))}v.showLockButtonInTitle&&(a=o.createWithHTML(s,"button","lock",n.text.dialogMovedSymbolText),a.title=n.text.lockText,a.onclick=()=>I())}}function I(){L||(o.createWithHTML(s,"span","locked",`${n.text.dialogMovedSymbolText} `,!0),e.defined(a)&&(a.parentNode.removeChild(a),a=null),L=!0)}function D(e=!1){if("none"!==l.style.display){const t=()=>{l.style.display="none",L=!1,u.value="",q()};e?0===b&&(Y(),b=setTimeout((()=>{t()}),n.dialogHideDelay)):t()}}function $(){const e=[];for(let t in w)w.hasOwnProperty(t)&&(1===v.mode?e.push(`${t}: ${w[t]};`):2===v.mode?e.push(`${t}="${w[t]}"`):4===v.mode&&e.push(w[t]));1===v.mode?navigator.clipboard.writeText(`${A.nodeName.toLowerCase()} { \n ${e.join("\n")} \n }`):2!==v.mode&&4!==v.mode||navigator.clipboard.writeText(e.join(" "))}function j(){A.parentNode.removeChild(A),D()}function _(){0!==d&&(clearTimeout(d),d=0),d=setTimeout((()=>{const t=p.getElementsByClassName("property-name"),o=[].slice.call(t),n=o.length,r=u.value.toLowerCase();let i=0;for(let t=0;t-1?(n.style.removeProperty("display"),i++):n.style.display="none"}}0===i?f.style.display="block":f.style.removeProperty("display")}),n.searchDelay)}function R(){u.value="",u.focus(),_()}function U(){null!==A.parentNode&&null!==A.previousElementSibling&&A.parentNode.insertBefore(A,A.previousElementSibling)}function V(){null!==A.parentNode&&null!==A.nextElementSibling&&A.parentNode.insertBefore(A.nextElementSibling,A)}function F(t){e.defined(v)&&(p.innerHTML="",p.scrollTop=0,w={},E=0,A=t,B(t),1===v.mode||4===v.mode||2===v.mode?g.style.removeProperty("display"):g.style.display="none",v.allowEditing?(m.style.removeProperty("display"),y.style.removeProperty("display"),T.style.removeProperty("display")):(m.style.display="none",y.style.display="none",T.style.display="none"),f=o.createWithHTML(p,"span","no-search-results",n.text.noPropertiesFoundForSearchText),1===v.mode?function(e){const t=getComputedStyle(e),o=t.length;for(let n=0;n0){let t=1;for(let o of e.classList)z(e,t.toString(),o),t++}else p.innerHTML="",o.createWithHTML(p,"span","warning",n.text.noClassesAvailableText)}(t):o.createWithHTML(p,"span","warning",n.text.modeNotSupportedText),E<=v.showSearchPropertyCount||!v.showSearch?c.style.display="none":c.style.removeProperty("display"))}function z(t,r,i,l=!0){if(function(e){return 0===v.showOnly.length||v.showOnly.indexOf(e)>-1}(r)&&function(e){return 0===v.ignoreValues.length||v.ignoreValues.indexOf(e)<=-1}(i)){const s=o.create(p,"div","property-row");o.createWithHTML(s,"div","property-name",r);const a=o.create(s,"div","property-value"),c=o.create(a,"input");(e.hexColor(i)||e.isRgbColor(i))&&(c.classList.add("property-value-color"),c.style.borderLeftColor=i),c.placeholder=n.text.propertyValuePlaceHolderText,c.onfocus=()=>c.select();const u=o.createWithHTML(s,"button","copy-small",n.text.copySymbolText);if(u.title=n.text.copyText,u.onclick=()=>navigator.clipboard.writeText(i),v.allowEditing&&l){const e=o.createWithHTML(s,"button","paste-small",n.text.pasteSymbolText),l=o.createWithHTML(s,"button","remove-small",n.text.removeSymbolText);e.title=n.text.pasteText,l.title=n.text.removeText,e.onclick=()=>function(e,t,o){navigator.clipboard.readText().then((n=>{t.value=n,G(e,o,t)}))}(t,c,r),l.onclick=()=>function(e,t,o,n){1===v.mode?(t.style.removeProperty(o),e.parentNode.removeChild(e)):2===v.mode?(t.removeAttribute(o),e.parentNode.removeChild(e)):4===v.mode&&(t.classList.remove(n),e.parentNode.removeChild(e))}(s,t,r,i)}c.type="text",c.value=i,w[r]=i,E++,v.allowEditing&&l?c.onkeyup=e=>function(e,t,o,n){"Enter"===e.code&&G(n,t,o)}(e,r,c,t):c.readOnly=!0}}function G(t,o,n){1===v.mode?t.style.setProperty(o,n.value):2===v.mode?t.setAttribute(o,n.value):4===v.mode&&t.classList.replace(t.classList[parseInt(o)-1],n.value),w[o]=n.value,e.hexColor(n.value)||e.isRgbColor(n.value)?(n.classList.add("property-value-color"),n.style.borderLeftColor=n.value):n.classList.remove("property-value-color")}function J(o){const n=o.getAttribute(t.PEEK_JS_IGNORE_STATE_ATTRIBUTE);e.definedString(n)||"ignore"===n||(o.addEventListener("mousemove",(e=>{K(e,o)})),S.push(o))}function K(t,r){!L&&e.defined(v)&&(o.cancelBubble(t),Y(),h=setTimeout((()=>{F(r),q(),o.showElementAtMousePosition(t,l,v.dialogOffset)}),n.dialogShowDelay))}function X(){L||(Y(),D(!0))}function Y(){0!==h&&(clearTimeout(h),h=0)}function q(){0!==b&&(clearTimeout(b),b=0)}function Q(){P&&(P=!1,O=null,H=0,M=0)}function Z(e,t=!1){t&&o.cancelBubble(e),P&&(I(),O.style.left=e.pageX-C+"px",O.style.top=e.pageY-k+"px")}function ee(){P&&(O.style.left=`${H}px`,O.style.top=`${M}px`,P=!1,O=null,H=0,M=0)}const te={start:function(t){return e.definedObject(v)||(v=i.Options.get(t),B(),function(){const e=v.nodeType;N=e.length;for(let t=0;t{K(t,e)}))}S=[],window.removeEventListener("mousemove",X),D()}()),te},close:function(){return D(),te},setConfiguration:function(t){if(e.definedObject(t)){let o=!1;const i=n;for(let e in t)t.hasOwnProperty(e)&&n.hasOwnProperty(e)&&i[e]!==t[e]&&(i[e]=t[e],o=!0);o&&(n=r.Options.get(i),W(),e.definedObject(v)&&B())}return te},getVersion:function(){return"1.8.0"}};n=r.Options.get(),document.addEventListener("DOMContentLoaded",(()=>{W()})),e.defined(window.$peek)||(window.$peek=te)})(); \ No newline at end of file diff --git a/docs/CHANGE_LOG.md b/docs/CHANGE_LOG.md index edcd310..1774d0b 100755 --- a/docs/CHANGE_LOG.md +++ b/docs/CHANGE_LOG.md @@ -4,6 +4,8 @@ #### **Start Options:** - Added a start option "offset" (defaults to 0), which states the additional offset to use for the dialogs position. +- Added a start option "showSearch" (defaults to true), which states if the search bar should be shown. +- Added a start option "showSearchPropertyCount" (defaults to 15), which states the minimum number of properties that should be available for the search bar to be visible. #### **Configuration Options:** - BREAKING: Renamed the configuration option "dialogDisplayDelay" to "dialogShowDelay". diff --git a/docs/options/OPTIONS.md b/docs/options/OPTIONS.md index c761617..4121949 100755 --- a/docs/options/OPTIONS.md +++ b/docs/options/OPTIONS.md @@ -18,6 +18,8 @@ Below are all the options that can be passed to the "start()" public function. | *string[]* | ignoreValues | States the property values that only should be ignored (defaults to []). | | *boolean* | showLockButtonInTitle | States if the lock symbol button should be shown in the title when the dialog is moved (defaults to true). | | *number* | offset | States the additional offset to use for the dialog position (defaults to 0). | +| *boolean* | showSearch | States if the search bar should be shown (defaults to true). | +| *number* | showSearchPropertyCount | States minimum number of properties that should be available to show the search bar (defaults to 15). |
diff --git a/src/peek.ts b/src/peek.ts index 1163441..ff43e8c 100644 --- a/src/peek.ts +++ b/src/peek.ts @@ -344,7 +344,7 @@ type DialogProperties = Record; DomElement.createWithHTML( _dialog_Contents, "span", "warning", _configuration.text!.modeNotSupportedText! ); } - if ( _current_Process_Properties_Count <= 15 ) { + if ( _current_Process_Properties_Count <= _current_Process_Options.showSearchPropertyCount! || !_current_Process_Options.showSearch ) { _dialog_Search.style.display = "none"; } else { _dialog_Search.style.removeProperty( "display" ); diff --git a/src/ts/options/options.ts b/src/ts/options/options.ts index cb76593..393c800 100644 --- a/src/ts/options/options.ts +++ b/src/ts/options/options.ts @@ -30,6 +30,8 @@ export namespace Start { options.ignoreValues = Default.getStringOrArray( options.ignoreValues, [] ); options.showLockButtonInTitle = Default.getBoolean( options.showLockButtonInTitle, true ); options.dialogOffset = Default.getNumber( options.dialogOffset, 0 ); + options.showSearch = Default.getBoolean( options.showSearch, true ); + options.showSearchPropertyCount = Default.getNumber( options.showSearchPropertyCount, 15 ); return options; } diff --git a/src/ts/type.ts b/src/ts/type.ts index 9dd5d0c..bf2ef91 100644 --- a/src/ts/type.ts +++ b/src/ts/type.ts @@ -64,4 +64,6 @@ export type StartOptions = { ignoreValues?: string[] | string; showLockButtonInTitle?: boolean; dialogOffset?: number; + showSearch?: boolean; + showSearchPropertyCount?: number; }; \ No newline at end of file diff --git a/test/peek.js.attributes.html b/test/peek.js.attributes.html index 857135d..5de27e0 100644 --- a/test/peek.js.attributes.html +++ b/test/peek.js.attributes.html @@ -25,7 +25,7 @@

Configuration:


Running:

- +
diff --git a/test/peek.js.class.html b/test/peek.js.class.html index 86f3025..7cdf423 100644 --- a/test/peek.js.class.html +++ b/test/peek.js.class.html @@ -25,7 +25,7 @@

Configuration:


Running:

- +
diff --git a/test/peek.js.css.html b/test/peek.js.css.html index 04a6601..be85040 100644 --- a/test/peek.js.css.html +++ b/test/peek.js.css.html @@ -25,7 +25,7 @@

Configuration:


Running:

- +
diff --git a/test/peek.js.size.html b/test/peek.js.size.html index 6dae011..74c3776 100644 --- a/test/peek.js.size.html +++ b/test/peek.js.size.html @@ -25,7 +25,7 @@

Configuration:


Running:

- +
From b9f47e26f237fb78221082341f524f61d6344f0c Mon Sep 17 00:00:00 2001 From: William Troup Date: Wed, 4 Sep 2024 22:55:29 +0100 Subject: [PATCH 12/14] Renamed some of the documentation. --- README.md | 2 +- README_NUGET.md | 2 +- docs/CHANGE_LOG.md | 1 + docs/options/{OPTIONS.md => START_OPTIONS.md} | 2 +- 4 files changed, 4 insertions(+), 3 deletions(-) rename docs/options/{OPTIONS.md => START_OPTIONS.md} (98%) diff --git a/README.md b/README.md index 5c10300..d66cc5c 100644 --- a/README.md +++ b/README.md @@ -106,7 +106,7 @@ Make sure you include the "DOCTYPE html" tag at the top of your HTML, as follows ``` -To see a list of all the available binding options you can use, click [here](docs/options/OPTIONS.md). +To see a list of all the available binding options you can use, click [here](docs/options/START_OPTIONS.md).
diff --git a/README_NUGET.md b/README_NUGET.md index 5b5d008..e989332 100644 --- a/README_NUGET.md +++ b/README_NUGET.md @@ -81,7 +81,7 @@ Make sure you include the "DOCTYPE html" tag at the top of your HTML, as follows ``` -To see a list of all the available binding options you can use, click [here](docs/options/OPTIONS.md). +To see a list of all the available binding options you can use, click [here](docs/options/START_OPTIONS.md). ### 4. Finishing Up: diff --git a/docs/CHANGE_LOG.md b/docs/CHANGE_LOG.md index 1774d0b..2d73707 100755 --- a/docs/CHANGE_LOG.md +++ b/docs/CHANGE_LOG.md @@ -16,6 +16,7 @@ - Moved from ES2016 to ES2020. - Updated to the latest NPM packages. - Added an ignore path for ".DS_Store" files when packing the NuGet package. +- Renamed some of the documentation. #### **Fixes:** - Fixed missing documentation in the "options/OPTIONS.md". diff --git a/docs/options/OPTIONS.md b/docs/options/START_OPTIONS.md similarity index 98% rename from docs/options/OPTIONS.md rename to docs/options/START_OPTIONS.md index 4121949..9af9bad 100755 --- a/docs/options/OPTIONS.md +++ b/docs/options/START_OPTIONS.md @@ -1,4 +1,4 @@ -# Peek.js - Options: +# Peek.js - Start Options: Below are all the options that can be passed to the "start()" public function.
From 6d01418203220102dd7aa004226a27c7312c502e Mon Sep 17 00:00:00 2001 From: William Troup Date: Wed, 4 Sep 2024 22:56:42 +0100 Subject: [PATCH 13/14] Fixed documentation. --- docs/CHANGE_LOG.md | 2 +- docs/options/START_OPTIONS.md | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/CHANGE_LOG.md b/docs/CHANGE_LOG.md index 2d73707..fb11046 100755 --- a/docs/CHANGE_LOG.md +++ b/docs/CHANGE_LOG.md @@ -3,7 +3,7 @@ ## Version 1.8.0: #### **Start Options:** -- Added a start option "offset" (defaults to 0), which states the additional offset to use for the dialogs position. +- Added a start option "dialogOffset" (defaults to 0), which states the additional offset to use for the dialogs position. - Added a start option "showSearch" (defaults to true), which states if the search bar should be shown. - Added a start option "showSearchPropertyCount" (defaults to 15), which states the minimum number of properties that should be available for the search bar to be visible. diff --git a/docs/options/START_OPTIONS.md b/docs/options/START_OPTIONS.md index 9af9bad..63acbb6 100755 --- a/docs/options/START_OPTIONS.md +++ b/docs/options/START_OPTIONS.md @@ -17,7 +17,7 @@ Below are all the options that can be passed to the "start()" public function. | *boolean* | showNodeNameInTitle | States if the node type should be shown in the title (if more than one is being used. Defaults to false). | | *string[]* | ignoreValues | States the property values that only should be ignored (defaults to []). | | *boolean* | showLockButtonInTitle | States if the lock symbol button should be shown in the title when the dialog is moved (defaults to true). | -| *number* | offset | States the additional offset to use for the dialog position (defaults to 0). | +| *number* | dialogOffset | States the additional offset to use for the dialog position (defaults to 0). | | *boolean* | showSearch | States if the search bar should be shown (defaults to true). | | *number* | showSearchPropertyCount | States minimum number of properties that should be available to show the search bar (defaults to 15). | From 1542d4d88e345dac6a30d90ec0ee38e4c4e277a4 Mon Sep 17 00:00:00 2001 From: William Troup Date: Wed, 4 Sep 2024 22:57:38 +0100 Subject: [PATCH 14/14] Corrections. --- docs/CHANGE_LOG.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/CHANGE_LOG.md b/docs/CHANGE_LOG.md index fb11046..aff89f7 100755 --- a/docs/CHANGE_LOG.md +++ b/docs/CHANGE_LOG.md @@ -19,7 +19,7 @@ - Renamed some of the documentation. #### **Fixes:** -- Fixed missing documentation in the "options/OPTIONS.md". +- Fixed some missing documentation in the "options/OPTIONS.md". ## Version 1.7.0: