@e1011/es-kit 1.0.60 → 1.0.64
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/dist/hooks/esm/index.css +30 -30
- package/dist/hooks/esm/node_modules/core-js/internals/shared.js +1 -1
- package/dist/hooks/esm/node_modules/core-js/internals/shared.js.map +1 -1
- package/dist/hooks/index.css +30 -30
- package/dist/hooks/node_modules/core-js/internals/shared.js +1 -1
- package/dist/hooks/node_modules/core-js/internals/shared.js.map +1 -1
- package/dist/lib/cjs/index.css +2 -2
- package/dist/lib/cjs/node_modules/core-js/internals/shared.js +1 -1
- package/dist/lib/cjs/node_modules/core-js/internals/shared.js.map +1 -1
- package/dist/lib/cjs/src/core/ui/components/icon/IconWC.js.map +1 -1
- package/dist/lib/esm/index.css +2 -2
- package/dist/lib/esm/node_modules/core-js/internals/shared.js +1 -1
- package/dist/lib/esm/node_modules/core-js/internals/shared.js.map +1 -1
- package/dist/lib/esm/src/core/ui/components/icon/IconWC.js.map +1 -1
- package/dist/lib/src/core/ui/components/icon/IconWC.js.map +1 -1
- package/dist/lib/tsconfig.tsbuildinfo +1 -1
- package/dist/types/src/core/ui/components/icon/IconWC.d.ts.map +1 -1
- package/dist/ui/esm/index.css +2 -2
- package/dist/ui/esm/node_modules/core-js/internals/shared.js +1 -1
- package/dist/ui/esm/node_modules/core-js/internals/shared.js.map +1 -1
- package/dist/ui/esm/src/core/ui/components/icon/IconWC.js.map +1 -1
- package/dist/ui/index.css +2 -2
- package/dist/ui/node_modules/core-js/internals/shared.js +1 -1
- package/dist/ui/node_modules/core-js/internals/shared.js.map +1 -1
- package/dist/ui/src/core/ui/components/icon/IconWC.js.map +1 -1
- package/dist/utils/esm/index.css +30 -30
- package/dist/utils/esm/node_modules/core-js/internals/shared.js +1 -1
- package/dist/utils/esm/node_modules/core-js/internals/shared.js.map +1 -1
- package/dist/utils/index.css +30 -30
- package/dist/utils/node_modules/core-js/internals/shared.js +1 -1
- package/dist/utils/node_modules/core-js/internals/shared.js.map +1 -1
- package/package.json +1 -1
package/dist/hooks/esm/index.css
CHANGED
|
@@ -1,33 +1,3 @@
|
|
|
1
|
-
.icon-module_icon-base-parent__nOMvW {
|
|
2
|
-
line-height: 1px !important;
|
|
3
|
-
}
|
|
4
|
-
|
|
5
|
-
.icon-module_icon-base__S0tHf {
|
|
6
|
-
min-width: var(--min-width);
|
|
7
|
-
min-height: var(--min-height);
|
|
8
|
-
width: var(--width);
|
|
9
|
-
height: var(--height);
|
|
10
|
-
line-height: var(--height);
|
|
11
|
-
background-color: var(--icon-color);
|
|
12
|
-
color: var(--icon-content-color);
|
|
13
|
-
background-repeat: no-repeat;
|
|
14
|
-
mask-image: var(--icon-url);
|
|
15
|
-
-webkit-mask-image: var(--icon-url);
|
|
16
|
-
mask-repeat: no-repeat;
|
|
17
|
-
-webkit-mask-repeat: no-repeat;
|
|
18
|
-
mask-size: contain;
|
|
19
|
-
-webkit-mask-size: contain;
|
|
20
|
-
mask-position: center;
|
|
21
|
-
-webkit-mask-position: center;
|
|
22
|
-
display: inline-block;
|
|
23
|
-
will-change: transform;
|
|
24
|
-
transform: translate3d(0, 0, 0);
|
|
25
|
-
}
|
|
26
|
-
.icon-module_icon-base__S0tHf svg {
|
|
27
|
-
fill: var(--icon-content-color);
|
|
28
|
-
width: var(--height);
|
|
29
|
-
height: var(--width);
|
|
30
|
-
}
|
|
31
1
|
.divider-module_divider-line__6CesR {
|
|
32
2
|
position: relative;
|
|
33
3
|
display: block;
|
|
@@ -70,4 +40,34 @@
|
|
|
70
40
|
min-width: 0;
|
|
71
41
|
min-height: 0;
|
|
72
42
|
border-radius: initial;
|
|
43
|
+
}
|
|
44
|
+
.icon-module_icon-base-parent__nOMvW {
|
|
45
|
+
line-height: 1px !important;
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
.icon-module_icon-base__S0tHf {
|
|
49
|
+
min-width: var(--min-width);
|
|
50
|
+
min-height: var(--min-height);
|
|
51
|
+
width: var(--width) !important;
|
|
52
|
+
height: var(--height) !important;
|
|
53
|
+
line-height: var(--height);
|
|
54
|
+
background-color: var(--icon-color);
|
|
55
|
+
color: var(--icon-content-color);
|
|
56
|
+
background-repeat: no-repeat;
|
|
57
|
+
mask-image: var(--icon-url);
|
|
58
|
+
-webkit-mask-image: var(--icon-url);
|
|
59
|
+
mask-repeat: no-repeat;
|
|
60
|
+
-webkit-mask-repeat: no-repeat;
|
|
61
|
+
mask-size: contain;
|
|
62
|
+
-webkit-mask-size: contain;
|
|
63
|
+
mask-position: center;
|
|
64
|
+
-webkit-mask-position: center;
|
|
65
|
+
display: inline-block;
|
|
66
|
+
will-change: transform;
|
|
67
|
+
transform: translate3d(0, 0, 0);
|
|
68
|
+
}
|
|
69
|
+
.icon-module_icon-base__S0tHf svg {
|
|
70
|
+
fill: var(--icon-content-color);
|
|
71
|
+
width: var(--height);
|
|
72
|
+
height: var(--width);
|
|
73
73
|
}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{__module as o}from"../../../_virtual/shared.js";export{exports as default}from"../../../_virtual/shared.js";import r from"./shared-store.js";var s=r;(o.exports=function(o,r){return s[o]||(s[o]=void 0!==r?r:{})})("versions",[]).push({version:"3.29.
|
|
1
|
+
import{__module as o}from"../../../_virtual/shared.js";export{exports as default}from"../../../_virtual/shared.js";import r from"./shared-store.js";var s=r;(o.exports=function(o,r){return s[o]||(s[o]=void 0!==r?r:{})})("versions",[]).push({version:"3.29.1",mode:"global",copyright:"© 2014-2023 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.29.1/LICENSE",source:"https://github.com/zloirock/core-js"});
|
|
2
2
|
//# sourceMappingURL=shared.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"shared.js","sources":["../../../../../../node_modules/core-js/internals/shared.js"],"sourcesContent":["var IS_PURE = require('../internals/is-pure');\nvar store = require('../internals/shared-store');\n\n(module.exports = function (key, value) {\n return store[key] || (store[key] = value !== undefined ? value : {});\n})('versions', []).push({\n version: '3.29.
|
|
1
|
+
{"version":3,"file":"shared.js","sources":["../../../../../../node_modules/core-js/internals/shared.js"],"sourcesContent":["var IS_PURE = require('../internals/is-pure');\nvar store = require('../internals/shared-store');\n\n(module.exports = function (key, value) {\n return store[key] || (store[key] = value !== undefined ? value : {});\n})('versions', []).push({\n version: '3.29.1',\n mode: IS_PURE ? 'pure' : 'global',\n copyright: '© 2014-2023 Denis Pushkarev (zloirock.ru)',\n license: 'https://github.com/zloirock/core-js/blob/v3.29.1/LICENSE',\n source: 'https://github.com/zloirock/core-js'\n});\n"],"names":["store","require$$1","sharedModule","key","value","undefined","push","version","mode","copyright","license","source"],"mappings":"oJACA,IAAIA,EAAQC,GAEXC,UAAiB,SAAUC,EAAKC,GAC/B,OAAOJ,EAAMG,KAASH,EAAMG,QAAiBE,IAAVD,EAAsBA,EAAQ,CAAA,EACnE,GAAG,WAAY,IAAIE,KAAK,CACtBC,QAAS,SACTC,KAAyB,SACzBC,UAAW,4CACXC,QAAS,2DACTC,OAAQ"}
|
package/dist/hooks/index.css
CHANGED
|
@@ -1,33 +1,3 @@
|
|
|
1
|
-
.icon-module_icon-base-parent__nOMvW {
|
|
2
|
-
line-height: 1px !important;
|
|
3
|
-
}
|
|
4
|
-
|
|
5
|
-
.icon-module_icon-base__S0tHf {
|
|
6
|
-
min-width: var(--min-width);
|
|
7
|
-
min-height: var(--min-height);
|
|
8
|
-
width: var(--width);
|
|
9
|
-
height: var(--height);
|
|
10
|
-
line-height: var(--height);
|
|
11
|
-
background-color: var(--icon-color);
|
|
12
|
-
color: var(--icon-content-color);
|
|
13
|
-
background-repeat: no-repeat;
|
|
14
|
-
mask-image: var(--icon-url);
|
|
15
|
-
-webkit-mask-image: var(--icon-url);
|
|
16
|
-
mask-repeat: no-repeat;
|
|
17
|
-
-webkit-mask-repeat: no-repeat;
|
|
18
|
-
mask-size: contain;
|
|
19
|
-
-webkit-mask-size: contain;
|
|
20
|
-
mask-position: center;
|
|
21
|
-
-webkit-mask-position: center;
|
|
22
|
-
display: inline-block;
|
|
23
|
-
will-change: transform;
|
|
24
|
-
transform: translate3d(0, 0, 0);
|
|
25
|
-
}
|
|
26
|
-
.icon-module_icon-base__S0tHf svg {
|
|
27
|
-
fill: var(--icon-content-color);
|
|
28
|
-
width: var(--height);
|
|
29
|
-
height: var(--width);
|
|
30
|
-
}
|
|
31
1
|
.divider-module_divider-line__6CesR {
|
|
32
2
|
position: relative;
|
|
33
3
|
display: block;
|
|
@@ -70,4 +40,34 @@
|
|
|
70
40
|
min-width: 0;
|
|
71
41
|
min-height: 0;
|
|
72
42
|
border-radius: initial;
|
|
43
|
+
}
|
|
44
|
+
.icon-module_icon-base-parent__nOMvW {
|
|
45
|
+
line-height: 1px !important;
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
.icon-module_icon-base__S0tHf {
|
|
49
|
+
min-width: var(--min-width);
|
|
50
|
+
min-height: var(--min-height);
|
|
51
|
+
width: var(--width) !important;
|
|
52
|
+
height: var(--height) !important;
|
|
53
|
+
line-height: var(--height);
|
|
54
|
+
background-color: var(--icon-color);
|
|
55
|
+
color: var(--icon-content-color);
|
|
56
|
+
background-repeat: no-repeat;
|
|
57
|
+
mask-image: var(--icon-url);
|
|
58
|
+
-webkit-mask-image: var(--icon-url);
|
|
59
|
+
mask-repeat: no-repeat;
|
|
60
|
+
-webkit-mask-repeat: no-repeat;
|
|
61
|
+
mask-size: contain;
|
|
62
|
+
-webkit-mask-size: contain;
|
|
63
|
+
mask-position: center;
|
|
64
|
+
-webkit-mask-position: center;
|
|
65
|
+
display: inline-block;
|
|
66
|
+
will-change: transform;
|
|
67
|
+
transform: translate3d(0, 0, 0);
|
|
68
|
+
}
|
|
69
|
+
.icon-module_icon-base__S0tHf svg {
|
|
70
|
+
fill: var(--icon-content-color);
|
|
71
|
+
width: var(--height);
|
|
72
|
+
height: var(--width);
|
|
73
73
|
}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";var r=require("../../../_virtual/shared.js"),o=require("./shared-store.js");(r.__module.exports=function(r,e){return o[r]||(o[r]=void 0!==e?e:{})})("versions",[]).push({version:"3.29.
|
|
1
|
+
"use strict";var r=require("../../../_virtual/shared.js"),o=require("./shared-store.js");(r.__module.exports=function(r,e){return o[r]||(o[r]=void 0!==e?e:{})})("versions",[]).push({version:"3.29.1",mode:"global",copyright:"© 2014-2023 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.29.1/LICENSE",source:"https://github.com/zloirock/core-js"}),module.exports=r.exports;
|
|
2
2
|
//# sourceMappingURL=shared.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"shared.js","sources":["../../../../../node_modules/core-js/internals/shared.js"],"sourcesContent":["var IS_PURE = require('../internals/is-pure');\nvar store = require('../internals/shared-store');\n\n(module.exports = function (key, value) {\n return store[key] || (store[key] = value !== undefined ? value : {});\n})('versions', []).push({\n version: '3.29.
|
|
1
|
+
{"version":3,"file":"shared.js","sources":["../../../../../node_modules/core-js/internals/shared.js"],"sourcesContent":["var IS_PURE = require('../internals/is-pure');\nvar store = require('../internals/shared-store');\n\n(module.exports = function (key, value) {\n return store[key] || (store[key] = value !== undefined ? value : {});\n})('versions', []).push({\n version: '3.29.1',\n mode: IS_PURE ? 'pure' : 'global',\n copyright: '© 2014-2023 Denis Pushkarev (zloirock.ru)',\n license: 'https://github.com/zloirock/core-js/blob/v3.29.1/LICENSE',\n source: 'https://github.com/zloirock/core-js'\n});\n"],"names":["store","sharedModule","key","value","undefined","push","version","mode","copyright","license","source"],"mappings":"0DACIA,gCAEHC,EAAAA,iBAAiB,SAAUC,EAAKC,GAC/B,OAAOH,EAAME,KAASF,EAAME,QAAiBE,IAAVD,EAAsBA,EAAQ,CAAA,EACnE,GAAG,WAAY,IAAIE,KAAK,CACtBC,QAAS,SACTC,KAAyB,SACzBC,UAAW,4CACXC,QAAS,2DACTC,OAAQ"}
|
package/dist/lib/cjs/index.css
CHANGED
|
@@ -48,8 +48,8 @@
|
|
|
48
48
|
.icon-module_icon-base__S0tHf {
|
|
49
49
|
min-width: var(--min-width);
|
|
50
50
|
min-height: var(--min-height);
|
|
51
|
-
width: var(--width);
|
|
52
|
-
height: var(--height);
|
|
51
|
+
width: var(--width) !important;
|
|
52
|
+
height: var(--height) !important;
|
|
53
53
|
line-height: var(--height);
|
|
54
54
|
background-color: var(--icon-color);
|
|
55
55
|
color: var(--icon-content-color);
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";var r=require("../../../_virtual/shared.js"),o=require("./shared-store.js");(r.__module.exports=function(r,e){return o[r]||(o[r]=void 0!==e?e:{})})("versions",[]).push({version:"3.29.
|
|
1
|
+
"use strict";var r=require("../../../_virtual/shared.js"),o=require("./shared-store.js");(r.__module.exports=function(r,e){return o[r]||(o[r]=void 0!==e?e:{})})("versions",[]).push({version:"3.29.1",mode:"global",copyright:"© 2014-2023 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.29.1/LICENSE",source:"https://github.com/zloirock/core-js"}),module.exports=r.exports;
|
|
2
2
|
//# sourceMappingURL=shared.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"shared.js","sources":["../../../../../../node_modules/core-js/internals/shared.js"],"sourcesContent":["var IS_PURE = require('../internals/is-pure');\nvar store = require('../internals/shared-store');\n\n(module.exports = function (key, value) {\n return store[key] || (store[key] = value !== undefined ? value : {});\n})('versions', []).push({\n version: '3.29.
|
|
1
|
+
{"version":3,"file":"shared.js","sources":["../../../../../../node_modules/core-js/internals/shared.js"],"sourcesContent":["var IS_PURE = require('../internals/is-pure');\nvar store = require('../internals/shared-store');\n\n(module.exports = function (key, value) {\n return store[key] || (store[key] = value !== undefined ? value : {});\n})('versions', []).push({\n version: '3.29.1',\n mode: IS_PURE ? 'pure' : 'global',\n copyright: '© 2014-2023 Denis Pushkarev (zloirock.ru)',\n license: 'https://github.com/zloirock/core-js/blob/v3.29.1/LICENSE',\n source: 'https://github.com/zloirock/core-js'\n});\n"],"names":["store","sharedModule","key","value","undefined","push","version","mode","copyright","license","source"],"mappings":"0DACIA,gCAEHC,EAAAA,iBAAiB,SAAUC,EAAKC,GAC/B,OAAOH,EAAME,KAASF,EAAME,QAAiBE,IAAVD,EAAsBA,EAAQ,CAAA,EACnE,GAAG,WAAY,IAAIE,KAAK,CACtBC,QAAS,SACTC,KAAyB,SACzBC,UAAW,4CACXC,QAAS,2DACTC,OAAQ"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"IconWC.js","sources":["../../../../../../../../src/core/ui/components/icon/IconWC.ts"],"sourcesContent":["import { ced, resolveAttributes } from '../../../utils/webComponents/webComponent.utils'\n\nimport classes from './icon.module.scss'\n\
|
|
1
|
+
{"version":3,"file":"IconWC.js","sources":["../../../../../../../../src/core/ui/components/icon/IconWC.ts"],"sourcesContent":["import { ced, resolveAttributes } from '../../../utils/webComponents/webComponent.utils'\n\nimport classes from './icon.module.scss'\n\nconst template = document.createElement('template')\n\ntemplate.innerHTML = '<span class=\"icon-base\"></span>'\n\nexport type IconBaseWCType = {\n iconUrl?: string\n minWidth?: string\n minHeight?: string\n width?: string\n height?: string\n size?: string\n fontSize?: string\n color?: string\n className?: string\n}\n\n@ced('icon-base')\nexport default class IconBase extends HTMLElement {\n content: string | null\n\n mainElement: HTMLElement\n\n iconUrl?: string | null\n\n minWidth?: string | null\n\n minHeight?: string | null\n\n width?: string | null\n\n height?: string | null\n\n size?: string | null\n\n fontSize?: string | null\n\n color?: string | null\n\n static get observedAttributes() {\n return ['iconUrl', 'minWidth', 'minHeight', 'width', 'height', 'size', 'fontSize', 'color', 'className']\n }\n\n connectedCallback() {\n if (this.innerHTML) {\n this.content = this.content || this.innerHTML || this.getAttribute('content')\n }\n\n this.innerHTML = template.innerHTML\n\n resolveAttributes(this, IconBase.observedAttributes)\n\n this.render()\n }\n\n attributeChangedCallback(attrName: string, oldVal: string | number | null, newVal: string | number | null) {\n if (attrName === 'className') {\n this.className = (newVal as string) || ''\n if (this.className) {\n this.classList.remove(this.className)\n this.classList.add(this.className)\n }\n }\n // eslint-disable-next-line @typescript-eslint/ban-ts-comment\n // @ts-ignore\n this[attrName] = newVal\n this.render()\n }\n\n render = () => {\n this.mainElement = this.mainElement || this.querySelector('.icon-base') as HTMLElement\n if (!this.mainElement) {\n return\n }\n this.classList.add(classes['icon-base-parent'])\n this.mainElement.classList.add(classes['icon-base'])\n\n const styles = {\n '--min-width': this.minWidth || this.size || this.width || 'auto',\n '--min-height': this.minHeight || this.size || this.height || 'auto',\n '--width': this.size || this.width,\n '--height': this.size || this.height,\n ...(this.fontSize ? { 'font-size': this.fontSize || 'unset' } : {}),\n ...(this.iconUrl ? { '--icon-url': `url(${this.iconUrl})` } : {}),\n ...(this.iconUrl ? { '--icon-color': this.color } : { '--icon-content-color': this.color }),\n }\n\n this.mainElement.innerHTML = this.iconUrl ? '' : (this.content || '')\n\n this.mainElement.setAttribute('style', Object.entries(styles).map(([key, value]) => `${key}: ${value};`).join(' '))\n }\n}\n\ndeclare global {\n // eslint-disable-next-line @typescript-eslint/no-namespace\n namespace JSX {\n interface IntrinsicElements {\n 'icon-base': any\n }\n }\n}\n\nexport const IconBaseWC = {\n IconBaseWC: IconBase,\n}\n"],"names":["template","document","createElement","innerHTML","IconBase","ced","_dec","_class","_HTMLElement","_inherits","_super","_createSuper","_this","_classCallCheck","_len","arguments","length","args","Array","_key","call","apply","this","concat","content","mainElement","iconUrl","minWidth","minHeight","width","height","size","fontSize","color","render","querySelector","classList","add","classes","styles","_objectSpread","objectSpread2","setAttribute","Object","entries","map","_ref","_ref2","_slicedToArray","key","value","join","_createClass","createClass","getAttribute","resolveAttributes","observedAttributes","attrName","oldVal","newVal","className","remove","get","_wrapNativeSuper","HTMLElement","IconBaseWC"],"mappings":"gdAIMA,EAAWC,SAASC,cAAc,YAExCF,EAASG,UAAY,kCAAiC,IAejCC,EADpB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Kc,QAAU,GAAMd,EAAKY,SAAW,GAElEZ,EAAKa,YAAYiB,aAAa,QAASC,OAAOC,QAAQL,GAAQM,KAAI,SAAAC,GAAA,IAAAC,EAAAC,EAAAA,cAAAF,EAAA,GAAEG,EAAGF,EAAA,GAAEG,EAAKH,EAAA,GAAA,MAAA,GAAAxB,OAAS0B,EAAG1B,MAAAA,OAAK2B,EAAK,IAAA,IAAKC,KAAK,KAhB9G,GAiBDvC,CAAA,CAjDA,OAiDAwC,EAAAC,YAAAjD,EAAA,CAAA,CAAA6C,IAAA,oBAAAC,MA/CD,WACM5B,KAAKnB,YACPmB,KAAKE,QAAUF,KAAKE,SAAWF,KAAKnB,WAAamB,KAAKgC,aAAa,YAGrEhC,KAAKnB,UAAYH,EAASG,UAE1BoD,EAAAA,kBAAkBjC,KAAMlB,EAASoD,oBAEjClC,KAAKY,QACP,GAAC,CAAAe,IAAA,2BAAAC,MAED,SAAyBO,EAAkBC,EAAgCC,GACxD,cAAbF,IACFnC,KAAKsC,UAAaD,GAAqB,GACnCrC,KAAKsC,YACPtC,KAAKc,UAAUyB,OAAOvC,KAAKsC,WAC3BtC,KAAKc,UAAUC,IAAIf,KAAKsC,aAK5BtC,KAAKmC,GAAYE,EACjBrC,KAAKY,QACP,IAAC,CAAA,CAAAe,IAAA,qBAAAa,IA5BD,WACE,MAAO,CAAC,UAAW,WAAY,YAAa,QAAS,SAAU,OAAQ,WAAY,QAAS,YAC9F,KAAC1D,CAAA,EAAA2D,kBAvBmCC,gBAAWzD,EAoFpC0D,EAAa,CACxBA,WAAY7D"}
|
package/dist/lib/esm/index.css
CHANGED
|
@@ -48,8 +48,8 @@
|
|
|
48
48
|
.icon-module_icon-base__S0tHf {
|
|
49
49
|
min-width: var(--min-width);
|
|
50
50
|
min-height: var(--min-height);
|
|
51
|
-
width: var(--width);
|
|
52
|
-
height: var(--height);
|
|
51
|
+
width: var(--width) !important;
|
|
52
|
+
height: var(--height) !important;
|
|
53
53
|
line-height: var(--height);
|
|
54
54
|
background-color: var(--icon-color);
|
|
55
55
|
color: var(--icon-content-color);
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{__module as o}from"../../../_virtual/shared.js";export{exports as default}from"../../../_virtual/shared.js";import r from"./shared-store.js";var s=r;(o.exports=function(o,r){return s[o]||(s[o]=void 0!==r?r:{})})("versions",[]).push({version:"3.29.
|
|
1
|
+
import{__module as o}from"../../../_virtual/shared.js";export{exports as default}from"../../../_virtual/shared.js";import r from"./shared-store.js";var s=r;(o.exports=function(o,r){return s[o]||(s[o]=void 0!==r?r:{})})("versions",[]).push({version:"3.29.1",mode:"global",copyright:"© 2014-2023 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.29.1/LICENSE",source:"https://github.com/zloirock/core-js"});
|
|
2
2
|
//# sourceMappingURL=shared.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"shared.js","sources":["../../../../../../node_modules/core-js/internals/shared.js"],"sourcesContent":["var IS_PURE = require('../internals/is-pure');\nvar store = require('../internals/shared-store');\n\n(module.exports = function (key, value) {\n return store[key] || (store[key] = value !== undefined ? value : {});\n})('versions', []).push({\n version: '3.29.
|
|
1
|
+
{"version":3,"file":"shared.js","sources":["../../../../../../node_modules/core-js/internals/shared.js"],"sourcesContent":["var IS_PURE = require('../internals/is-pure');\nvar store = require('../internals/shared-store');\n\n(module.exports = function (key, value) {\n return store[key] || (store[key] = value !== undefined ? value : {});\n})('versions', []).push({\n version: '3.29.1',\n mode: IS_PURE ? 'pure' : 'global',\n copyright: '© 2014-2023 Denis Pushkarev (zloirock.ru)',\n license: 'https://github.com/zloirock/core-js/blob/v3.29.1/LICENSE',\n source: 'https://github.com/zloirock/core-js'\n});\n"],"names":["store","require$$1","sharedModule","key","value","undefined","push","version","mode","copyright","license","source"],"mappings":"oJACA,IAAIA,EAAQC,GAEXC,UAAiB,SAAUC,EAAKC,GAC/B,OAAOJ,EAAMG,KAASH,EAAMG,QAAiBE,IAAVD,EAAsBA,EAAQ,CAAA,EACnE,GAAG,WAAY,IAAIE,KAAK,CACtBC,QAAS,SACTC,KAAyB,SACzBC,UAAW,4CACXC,QAAS,2DACTC,OAAQ"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"IconWC.js","sources":["../../../../../../../../src/core/ui/components/icon/IconWC.ts"],"sourcesContent":["import { ced, resolveAttributes } from '../../../utils/webComponents/webComponent.utils'\n\nimport classes from './icon.module.scss'\n\
|
|
1
|
+
{"version":3,"file":"IconWC.js","sources":["../../../../../../../../src/core/ui/components/icon/IconWC.ts"],"sourcesContent":["import { ced, resolveAttributes } from '../../../utils/webComponents/webComponent.utils'\n\nimport classes from './icon.module.scss'\n\nconst template = document.createElement('template')\n\ntemplate.innerHTML = '<span class=\"icon-base\"></span>'\n\nexport type IconBaseWCType = {\n iconUrl?: string\n minWidth?: string\n minHeight?: string\n width?: string\n height?: string\n size?: string\n fontSize?: string\n color?: string\n className?: string\n}\n\n@ced('icon-base')\nexport default class IconBase extends HTMLElement {\n content: string | null\n\n mainElement: HTMLElement\n\n iconUrl?: string | null\n\n minWidth?: string | null\n\n minHeight?: string | null\n\n width?: string | null\n\n height?: string | null\n\n size?: string | null\n\n fontSize?: string | null\n\n color?: string | null\n\n static get observedAttributes() {\n return ['iconUrl', 'minWidth', 'minHeight', 'width', 'height', 'size', 'fontSize', 'color', 'className']\n }\n\n connectedCallback() {\n if (this.innerHTML) {\n this.content = this.content || this.innerHTML || this.getAttribute('content')\n }\n\n this.innerHTML = template.innerHTML\n\n resolveAttributes(this, IconBase.observedAttributes)\n\n this.render()\n }\n\n attributeChangedCallback(attrName: string, oldVal: string | number | null, newVal: string | number | null) {\n if (attrName === 'className') {\n this.className = (newVal as string) || ''\n if (this.className) {\n this.classList.remove(this.className)\n this.classList.add(this.className)\n }\n }\n // eslint-disable-next-line @typescript-eslint/ban-ts-comment\n // @ts-ignore\n this[attrName] = newVal\n this.render()\n }\n\n render = () => {\n this.mainElement = this.mainElement || this.querySelector('.icon-base') as HTMLElement\n if (!this.mainElement) {\n return\n }\n this.classList.add(classes['icon-base-parent'])\n this.mainElement.classList.add(classes['icon-base'])\n\n const styles = {\n '--min-width': this.minWidth || this.size || this.width || 'auto',\n '--min-height': this.minHeight || this.size || this.height || 'auto',\n '--width': this.size || this.width,\n '--height': this.size || this.height,\n ...(this.fontSize ? { 'font-size': this.fontSize || 'unset' } : {}),\n ...(this.iconUrl ? { '--icon-url': `url(${this.iconUrl})` } : {}),\n ...(this.iconUrl ? { '--icon-color': this.color } : { '--icon-content-color': this.color }),\n }\n\n this.mainElement.innerHTML = this.iconUrl ? '' : (this.content || '')\n\n this.mainElement.setAttribute('style', Object.entries(styles).map(([key, value]) => `${key}: ${value};`).join(' '))\n }\n}\n\ndeclare global {\n // eslint-disable-next-line @typescript-eslint/no-namespace\n namespace JSX {\n interface IntrinsicElements {\n 'icon-base': any\n }\n }\n}\n\nexport const IconBaseWC = {\n IconBaseWC: IconBase,\n}\n"],"names":["template","document","createElement","innerHTML","IconBase","ced","_dec","_class","_HTMLElement","_inherits","_super","_createSuper","_this","_classCallCheck","_len","arguments","length","args","Array","_key","call","apply","this","concat","content","mainElement","iconUrl","minWidth","minHeight","width","height","size","fontSize","color","render","querySelector","classList","add","classes","styles","_objectSpread","setAttribute","Object","entries","map","_ref","_ref2","_slicedToArray","key","value","join","_createClass","getAttribute","resolveAttributes","observedAttributes","attrName","oldVal","newVal","className","remove","get","_wrapNativeSuper","HTMLElement","IconBaseWC"],"mappings":"giBAIMA,EAAWC,SAASC,cAAc,YAExCF,EAASG,UAAY,kCAAiC,IAejCC,EADpBC,EAAI,YAAYC,CAAAC,WAAAC,GAAAC,EAAAL,EAAAI,GAAA,IAAAE,EAAAC,EAAAP,GAAA,SAAAA,IAAA,IAAAQ,EAAAC,OAAAT,GAAA,IAAA,IAAAU,EAAAC,UAAAC,OAAAC,EAAAC,IAAAA,MAAAJ,GAAAK,EAAA,EAAAA,EAAAL,E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AK,IAAA,IAAKC,KAAK,KAhB9G,GAiBDtC,CAAA,CAjDA,OAiDAuC,EAAA/C,EAAA,CAAA,CAAA4C,IAAA,oBAAAC,MA/CD,WACM3B,KAAKnB,YACPmB,KAAKE,QAAUF,KAAKE,SAAWF,KAAKnB,WAAamB,KAAK8B,aAAa,YAGrE9B,KAAKnB,UAAYH,EAASG,UAE1BkD,EAAkB/B,KAAMlB,EAASkD,oBAEjChC,KAAKY,QACP,GAAC,CAAAc,IAAA,2BAAAC,MAED,SAAyBM,EAAkBC,EAAgCC,GACxD,cAAbF,IACFjC,KAAKoC,UAAaD,GAAqB,GACnCnC,KAAKoC,YACPpC,KAAKc,UAAUuB,OAAOrC,KAAKoC,WAC3BpC,KAAKc,UAAUC,IAAIf,KAAKoC,aAK5BpC,KAAKiC,GAAYE,EACjBnC,KAAKY,QACP,IAAC,CAAA,CAAAc,IAAA,qBAAAY,IA5BD,WACE,MAAO,CAAC,UAAW,WAAY,YAAa,QAAS,SAAU,OAAQ,WAAY,QAAS,YAC9F,KAACxD,CAAA,EAAAyD,EAvBmCC,gBAAWvD,EAoFpCwD,EAAa,CACxBA,WAAY3D"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"IconWC.js","sourceRoot":"","sources":["../../../../../../../src/core/ui/components/icon/IconWC.ts"],"names":[],"mappings":";;;;;;;AAAA,OAAO,EAAE,GAAG,EAAE,iBAAiB,EAAE,MAAM,iDAAiD,CAAA;AAExF,OAAO,OAAO,MAAM,oBAAoB,CAAA;
|
|
1
|
+
{"version":3,"file":"IconWC.js","sourceRoot":"","sources":["../../../../../../../src/core/ui/components/icon/IconWC.ts"],"names":[],"mappings":";;;;;;;AAAA,OAAO,EAAE,GAAG,EAAE,iBAAiB,EAAE,MAAM,iDAAiD,CAAA;AAExF,OAAO,OAAO,MAAM,oBAAoB,CAAA;AAExC,MAAM,QAAQ,GAAG,QAAQ,CAAC,aAAa,CAAC,UAAU,CAAC,CAAA;AAEnD,QAAQ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