domelemjs 1.1.19 → 1.2.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +23 -0
- package/{test → dist}/DOMElem.html +1 -1
- package/{test → dist}/createDOMElem.html +1 -1
- package/dist/index.js +1 -0
- package/package.json +27 -3
- package/.gitattributes +0 -2
- package/.vscode/settings.json +0 -3
- package/htmlElems.csv +0 -2
- package/index.js +0 -1248
- package/index.min.js +0 -2
- package/index.min.js.map +0 -1020
package/LICENSE
ADDED
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
Copyright (c) 2022-present Viktor Bozzay <bozzay.viktor@gmail.com>
|
|
2
|
+
|
|
3
|
+
Permission is hereby granted, free of charge, to any person
|
|
4
|
+
obtaining a copy of this software and associated
|
|
5
|
+
documentation files (the "Software"), to deal in the Software
|
|
6
|
+
without restriction, including without limitation the rights
|
|
7
|
+
to use, copy, modify, merge, publish, distribute, sublicense,
|
|
8
|
+
and/or sell copies of the Software, and to permit persons to
|
|
9
|
+
whom the Software is furnished to do so, subject to the
|
|
10
|
+
following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall
|
|
13
|
+
be included in all copies or substantial portions of the
|
|
14
|
+
Software.
|
|
15
|
+
|
|
16
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY
|
|
17
|
+
KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE
|
|
18
|
+
WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR
|
|
19
|
+
PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
|
|
20
|
+
COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
21
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR
|
|
22
|
+
OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
|
|
23
|
+
SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
package/dist/index.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
!function webpackUniversalModuleDefinition(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define("domElemJS",[],t):"object"==typeof exports?exports.domElemJS=t():e.domElemJS=t()}(this,(()=>(()=>{"use strict";var e={d:(t,a)=>{for(var o in a)e.o(a,o)&&!e.o(t,o)&&Object.defineProperty(t,o,{enumerable:!0,get:a[o]})},o:(e,t)=>Object.prototype.hasOwnProperty.call(e,t),r:e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})}},t={};function makeThatArray(e){return e?Array.isArray(e)?e:[e]:[]}e.r(t),e.d(t,{a:()=>a,abbr:()=>o,acronym:()=>r,address:()=>i,applet:()=>n,area:()=>l,article:()=>s,aside:()=>d,audio:()=>c,b:()=>u,base:()=>p,basefont:()=>m,bdi:()=>f,bdo:()=>b,big:()=>h,blockquote:()=>y,body:()=>O,br:()=>A,button:()=>E,canvas:()=>g,caption:()=>k,center:()=>U,cite:()=>v,code:()=>j,col:()=>T,colgroup:()=>S,data:()=>L,datalist:()=>I,dd:()=>D,default:()=>createDOMElem,del:()=>C,details:()=>z,dfn:()=>R,dialog:()=>N,dir:()=>Y,div:()=>w,dl:()=>M,dt:()=>Z,em:()=>x,embed:()=>G,fieldset:()=>H,figcaption:()=>P,figure:()=>q,font:()=>K,footer:()=>J,form:()=>V,frame:()=>B,frameset:()=>W,h1:()=>F,h2:()=>Q,h3:()=>X,h4:()=>$,h5:()=>_,h6:()=>ee,head:()=>te,header:()=>ae,hr:()=>oe,html:()=>re,i:()=>ie,iframe:()=>ne,img:()=>le,input:()=>se,ins:()=>de,kbd:()=>ce,label:()=>ue,legend:()=>pe,li:()=>me,link:()=>fe,main:()=>be,map:()=>he,mark:()=>ye,meta:()=>Oe,meter:()=>Ae,nav:()=>Ee,noframes:()=>ge,noscript:()=>ke,object:()=>Ue,ol:()=>ve,optgroup:()=>je,option:()=>Te,output:()=>Se,p:()=>Le,param:()=>Ie,picture:()=>De,pre:()=>Ce,progress:()=>ze,q:()=>Re,rp:()=>Ne,rt:()=>Ye,ruby:()=>we,s:()=>Me,samp:()=>Ze,script:()=>xe,section:()=>Ge,select:()=>He,small:()=>Pe,source:()=>qe,span:()=>Ke,strike:()=>Je,strong:()=>Ve,style:()=>Be,sub:()=>We,summary:()=>Fe,sup:()=>Qe,svg:()=>Xe,table:()=>$e,tbody:()=>_e,td:()=>et,template:()=>tt,textarea:()=>at,tfoot:()=>ot,th:()=>rt,thead:()=>it,time:()=>nt,title:()=>lt,tr:()=>st,track:()=>dt,tt:()=>ct,u:()=>ut,ul:()=>pt,video:()=>mt,wbr:()=>ft});const[a,o,r,i,n,l,s,d,c,u,p,m,f,b,h,y,O,A,E,g,k,U,v,j,T,S,L,I,D,C,z,R,N,Y,w,M,Z,x,G,H,P,q,K,J,V,B,W,F,Q,X,$,_,ee,te,ae,oe,re,ie,ne,le,se,de,ce,ue,pe,me,fe,be,he,ye,Oe,Ae,Ee,ge,ke,Ue,ve,je,Te,Se,Le,Ie,De,Ce,ze,Re,Ne,Ye,we,Me,Ze,xe,Ge,He,Pe,qe,Ke,Je,Ve,Be,We,Fe,Qe,Xe,$e,_e,et,tt,at,ot,rt,it,nt,lt,st,dt,ct,ut,pt,mt,ft]=["a","abbr","acronym","address","applet","area","article","aside","audio","b","base","basefont","bdi","bdo","big","blockquote","body","br","button","canvas","caption","center","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","dir","div","dl","dt","em","embed","fieldset","figcaption","figure","font","footer","form","frame","frameset","h1","h2","h3","h4","h5","h6","head","header","hr","html","i","iframe","img","input","ins","kbd","label","legend","li","link","main","map","mark","meta","meter","nav","noframes","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strike","strong","style","sub","summary","sup","svg","table","tbody","td","template","textarea","tfoot","th","thead","time","title","tr","track","tt","u","ul","video","wbr"];function createDOMElem({tag:e,content:t,text:a,attrs:o,style:r,children:i,parent:n,handleEvent:l,append:s=!0}){let d=document.createElement(e);t&&(d.innerHTML=t),a&&(d.textContent=a);const c=["class","id"];if(o&&makeThatArray(o).forEach((e=>Object.keys(e).forEach((t=>{e[t]&&("checked"===t?d.checked=e[t]:"dataset"===t?makeThatArray(e[t]).map((e=>Object.keys(e).forEach((t=>d.dataset[t]=e[t])))):d.setAttribute(t,makeThatArray(e[t]).map((e=>c.includes(t)?function noSpecChars(e,t=!1){let a={Ă:"A",Ắ:"A",Ặ:"A",Ằ:"A",Ẳ:"A",Ẵ:"A",Ǎ:"A",Â:"A",Ấ:"A",Ậ:"A",Ầ:"A",Ẩ:"A",Ẫ:"A",Ä:"A",Ǟ:"A",Ȧ:"A",Ǡ:"A",Ạ:"A",Ȁ:"A",À:"A",Ả:"A",Ȃ:"A",Ā:"A",Ą:"A",Å:"A",Ǻ:"A",Ḁ:"A",Ⱥ:"A",Ã:"A",Ꜳ:"AA",Æ:"AE",Ǽ:"AE",Ǣ:"AE",Ꜵ:"AO",Ꜷ:"AU",Ꜹ:"AV",Ꜻ:"AV",Ꜽ:"AY",Ḃ:"B",Ḅ:"B",Ɓ:"B",Ḇ:"B",Ƀ:"B",Ƃ:"B",Ć:"C",Č:"C",Ç:"C",Ḉ:"C",Ĉ:"C",Ċ:"C",Ƈ:"C",Ȼ:"C",Ď:"D",Ḑ:"D",Ḓ:"D",Ḋ:"D",Ḍ:"D",Ɗ:"D",Ḏ:"D",Dz:"D",Dž:"D",Đ:"D",Ƌ:"D",DZ:"DZ",DŽ:"DZ",É:"E",Ĕ:"E",Ě:"E",Ȩ:"E",Ḝ:"E",Ê:"E",Ế:"E",Ệ:"E",Ề:"E",Ể:"E",Ễ:"E",Ḙ:"E",Ë:"E",Ė:"E",Ẹ:"E",Ȅ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:"O",Ợ:"O",Ờ:"O",Ở:"O",Ỡ:"O",Ȏ:"O",Ꝋ:"O",Ꝍ:"O",Ō:"O",Ṓ:"O",Ṑ:"O",Ɵ:"O",Ǫ:"O",Ǭ:"O",Ø:"O",Ǿ:"O",Õ:"O",Ṍ:"O",Ṏ:"O",Ȭ:"O",Ƣ:"OI",Ꝏ:"OO",Ɛ:"E",Ɔ:"O",Ȣ:"OU",Ṕ:"P",Ṗ:"P",Ꝓ:"P",Ƥ:"P",Ꝕ:"P",Ᵽ:"P",Ꝑ:"P",Ꝙ:"Q",Ꝗ:"Q",Ŕ:"R",Ř:"R",Ŗ:"R",Ṙ:"R",Ṛ:"R",Ṝ:"R",Ȑ:"R",Ȓ:"R",Ṟ:"R",Ɍ:"R",Ɽ:"R",Ꜿ:"C",Ǝ:"E",Ś:"S",Ṥ:"S",Š:"S",Ṧ:"S",Ş:"S",Ŝ:"S",Ș:"S",Ṡ:"S",Ṣ:"S",Ṩ:"S",Ť:"T",Ţ:"T",Ṱ:"T",Ț:"T",Ⱦ:"T",Ṫ:"T",Ṭ:"T",Ƭ:"T",Ṯ:"T",Ʈ:"T",Ŧ:"T",Ɐ:"A",Ꞁ:"L",Ɯ:"M",Ʌ:"V",Ꜩ:"TZ",Ú:"U",Ŭ:"U",Ǔ:"U",Û:"U",Ṷ:"U",Ü:"U",Ǘ:"U",Ǚ:"U",Ǜ:"U",Ǖ:"U",Ṳ:"U",Ụ:"U",Ű:"U",Ȕ:"U",Ù:"U",Ủ:"U",Ư:"U",Ứ:"U",Ự:"U",Ừ:"U",Ử:"U",Ữ:"U",Ȗ:"U",Ū:"U",Ṻ:"U",Ų:"U",Ů:"U",Ũ:"U",Ṹ:"U",Ṵ:"U",Ꝟ:"V",Ṿ:"V",Ʋ:"V",Ṽ:"V",Ꝡ:"VY",Ẃ:"W",Ŵ:"W",Ẅ:"W",Ẇ:"W",Ẉ:"W",Ẁ:"W",Ⱳ:"W",Ẍ:"X",Ẋ:"X",Ý:"Y",Ŷ:"Y",Ÿ:"Y",Ẏ:"Y",Ỵ:"Y",Ỳ:"Y",Ƴ:"Y",Ỷ:"Y",Ỿ:"Y",Ȳ:"Y",Ɏ:"Y",Ỹ:"Y",Ź:"Z",Ž:"Z",Ẑ:"Z",Ⱬ:"Z",Ż:"Z",Ẓ:"Z",Ȥ:"Z",Ẕ:"Z",Ƶ:"Z",IJ:"IJ",Œ:"OE",ᴀ:"A",ᴁ:"AE",ʙ:"B",ᴃ:"B",ᴄ:"C",ᴅ:"D",ᴇ:"E",ꜰ:"F",ɢ:"G",ʛ:"G",ʜ:"H",ɪ:"I",ʁ:"R",ᴊ:"J",ᴋ:"K",ʟ:"L",ᴌ:"L",ᴍ:"M",ɴ:"N",ᴏ:"O",ɶ:"OE",ᴐ:"O",ᴕ:"OU",ᴘ:"P",ʀ:"R",ᴎ:"N",ᴙ:"R",ꜱ:"S",ᴛ:"T",ⱻ:"E",ᴚ:"R",ᴜ:"U",ᴠ:"V",ᴡ:"W",ʏ:"Y",ᴢ:"Z",á:"a",ă:"a",ắ:"a",ặ:"a",ằ:"a",ẳ:"a",ẵ:"a",ǎ:"a",â:"a",ấ:"a",ậ:"a",ầ:"a",ẩ:"a",ẫ:"a",ä:"a",ǟ:"a",ȧ:"a",ǡ:"a",ạ:"a",ȁ:"a",à:"a",ả:"a",ȃ:"a",ā:"a",ą:"a",ᶏ:"a",ẚ:"a",å:"a",ǻ:"a",ḁ:"a",ⱥ:"a",ã:"a",ꜳ:"aa",æ:"ae",ǽ:"ae",ǣ:"ae",ꜵ:"ao",ꜷ:"au",ꜹ:"av",ꜻ:"av",ꜽ:"ay",ḃ:"b",ḅ:"b",ɓ:"b",ḇ:"b",ᵬ:"b",ᶀ:"b",ƀ:"b",ƃ:"b",ɵ:"o",ć:"c",č:"c",ç:"c",ḉ:"c",ĉ:"c",ɕ:"c",ċ:"c",ƈ:"c",ȼ:"c",ď:"d",ḑ:"d",ḓ:"d",ȡ:"d",ḋ:"d",ḍ:"d",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ṃ:"m",ɱ:"m",ᵯ:"m",ᶆ:"m",ń:"n",ň:"n",ņ:"n",ṋ:"n",ȵ:"n",ṅ:"n",ṇ:"n",ǹ:"n",ɲ:"n",ṉ:"n",ƞ:"n",ᵰ:"n",ᶇ:"n",ɳ:"n",ñ:"n",nj:"nj",ó:"o",ŏ:"o",ǒ:"o",ô:"o",ố:"o",ộ:"o",ồ:"o",ổ:"o",ỗ:"o",ö:"o",ȫ:"o",ȯ:"o",ȱ:"o",ọ:"o",ő:"o",ȍ:"o",ò:"o",ỏ:"o",ơ:"o",ớ:"o",ợ:"o",ờ:"o",ở:"o",ỡ:"o",ȏ:"o",ꝋ:"o",ꝍ:"o",ⱺ:"o",ō:"o",ṓ:"o",ṑ:"o",ǫ:"o",ǭ:"o",ø:"o",ǿ:"o",õ:"o",ṍ:"o",ṏ:"o",ȭ:"o",ƣ:"oi",ꝏ:"oo",ɛ:"e",ᶓ:"e",ɔ:"o",ᶗ:"o",ȣ:"ou",ṕ:"p",ṗ:"p",ꝓ:"p",ƥ:"p",ᵱ:"p",ᶈ:"p",ꝕ:"p",ᵽ:"p",ꝑ:"p",ꝙ:"q",ʠ:"q",ɋ:"q",ꝗ:"q",ŕ:"r",ř:"r",ŗ:"r",ṙ:"r",ṛ:"r",ṝ:"r",ȑ:"r",ɾ:"r",ᵳ:"r",ȓ:"r",ṟ:"r",ɼ:"r",ᵲ:"r",ᶉ:"r",ɍ:"r",ɽ:"r",ↄ:"c",ꜿ:"c",ɘ:"e",ɿ:"r",ś:"s",ṥ:"s",š:"s",ṧ:"s",ş:"s",ŝ:"s",ș:"s",ṡ:"s",ṣ:"s",ṩ:"s",ʂ:"s",ᵴ:"s",ᶊ:"s",ȿ:"s",ɡ:"g",ᴑ:"o",ᴓ:"o",ᴝ:"u",ť:"t",ţ:"t",ṱ:"t",ț:"t",ȶ:"t",ẗ:"t",ⱦ:"t",ṫ:"t",ṭ:"t",ƭ:"t",ṯ:"t",ᵵ:"t",ƫ:"t",ʈ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)).join(" ")))})))),r&&makeThatArray(r).map((e=>"object"==typeof e?Object.keys(e).map((t=>`${t}: ${e[t]}`)).join("; "):makeThatArray(e).join("; "))).join("; ").split(";").forEach((e=>{let[t,a]=e.split(":").map((e=>e.trim()));d.style[function makeCamelCase(e){return e.split("-").map(((e,t)=>t>0?e.charAt(0).toUpperCase()+e.slice(1):e)).join("")}(t)]=a})),i&&makeThatArray(i).forEach((e=>d.appendChild(e instanceof HTMLElement?e:createDOMElem(e)))),l&&makeThatArray(l).forEach((e=>e&&e.event&&e.cb&&d.addEventListener(e.event,e.cb))),n){const e=["#","."];"string"==typeof n&&(n=n.charAt(0)in e?document.querySelector(n):e.map((e=>document.querySelector(e+n))).filter((e=>null!==e))[0])}else n=document.querySelector("body");return s&&n.appendChild(d),d}return t})()));
|
package/package.json
CHANGED
|
@@ -1,10 +1,13 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "domelemjs",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.2.3",
|
|
4
|
+
"type": "module",
|
|
4
5
|
"description": "With the help of this package the rendering of HTML elements form JavaScript become a easy job.",
|
|
5
|
-
"main": "index.js",
|
|
6
|
+
"main": "./dist/index.js",
|
|
7
|
+
"prepublishOnly": "webpack --mode=production",
|
|
6
8
|
"scripts": {
|
|
7
|
-
"
|
|
9
|
+
"build": "webpack",
|
|
10
|
+
"dev": "webpack serve"
|
|
8
11
|
},
|
|
9
12
|
"repository": {
|
|
10
13
|
"type": "git",
|
|
@@ -17,6 +20,9 @@
|
|
|
17
20
|
"webapp"
|
|
18
21
|
],
|
|
19
22
|
"author": "VIKTOR, Bozzay",
|
|
23
|
+
"files": [
|
|
24
|
+
"dist"
|
|
25
|
+
],
|
|
20
26
|
"license": "MIT",
|
|
21
27
|
"bugs": {
|
|
22
28
|
"url": "https://github.com/exphoenee/DOMelemJS/issues"
|
|
@@ -24,5 +30,23 @@
|
|
|
24
30
|
"homepage": "https://github.com/exphoenee/DOMelemJS#readme",
|
|
25
31
|
"directories": {
|
|
26
32
|
"test": "test"
|
|
33
|
+
},
|
|
34
|
+
"dependencies": {
|
|
35
|
+
"makeCamelCase": "file:./src/Utils/makeCamelCase.mjs",
|
|
36
|
+
"makeThatArray": "file:./src/Utils/makeThatArray.mjs",
|
|
37
|
+
"noSpecChars": "file:./src/Utils/noSpecChars.mjs",
|
|
38
|
+
"domElemTypes": "file:./src/model/domElemTypes.mjs"
|
|
39
|
+
},
|
|
40
|
+
"devDependencies": {
|
|
41
|
+
"url-loader": "^4.1.1",
|
|
42
|
+
"clean-webpack-plugin": "^4.0.0",
|
|
43
|
+
"css-loader": "^6.7.1",
|
|
44
|
+
"html-webpack-plugin": "^5.5.0",
|
|
45
|
+
"sass": "^1.53.0",
|
|
46
|
+
"sass-loader": "^13.0.2",
|
|
47
|
+
"style-loader": "^3.3.1",
|
|
48
|
+
"terser-webpack-plugin": "^5.3.3",
|
|
49
|
+
"webpack-cli": "^4.10.0",
|
|
50
|
+
"webpack-dev-server": "^4.9.3"
|
|
27
51
|
}
|
|
28
52
|
}
|
package/.gitattributes
DELETED
package/.vscode/settings.json
DELETED
package/htmlElems.csv
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
a,abbr,acronym,address,applet,area,article,aside,audio,b,base,basefont,bdi,bdo,big,blockquote,body,br,button,canvas,caption,center,cite,code,col,colgroup,data,datalist,dd,del,details,dfn,dialog,dir,div,dl,dt,em,embed,fieldset,figcaption,figure,font,footer,form,frame,frameset,h1 to h6,head,header,hr,html,i,iframe,img,input,ins,kbd,label,legend,li,link,main,map,mark,meta,meter,nav,noframes,,noscript,object,ol,optgroup,option,output,p,param,picture,pre,progress,q,rp,rt,ruby,s,samp,script,section,select,small,source,span,strike,strong,style,sub,summary,sup,svg,table,tbody,td,template,textarea,tfoot,th,thead,time,title,tr,track,tt,u,ul,var,video,wbr
|
|
2
|
-
"a","abbr","acronym","address","applet","area","article","aside","audio","b","base","basefont","bdi","bdo","big","blockquote","body","br","button","canvas","caption","center","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","dir","div","dl","dt","em","embed","fieldset","figcaption","figure","font","footer","form","frame","frameset","h1 to h6","head","header","hr","html","i","iframe","img","input","ins","kbd","label","legend","li","link","main","map","mark","meta","meter","nav","noframes",,"noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strike","strong","style","sub","summary","sup","svg","table","tbody","td","template","textarea","tfoot","th","thead","time","title","tr","track","tt","u","ul","var","video","wbr"
|