@e1011/es-kit 1.0.34 → 1.0.36

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.
Files changed (119) hide show
  1. package/dist/hooks/esm/index.css +8 -3
  2. package/dist/hooks/index.css +8 -3
  3. package/dist/lib/cjs/index.css +8 -3
  4. package/dist/lib/cjs/src/core/ui/components/icon/IconBase.js +1 -1
  5. package/dist/lib/cjs/src/core/ui/components/icon/IconBase.js.map +1 -1
  6. package/dist/lib/cjs/src/core/ui/components/icon/IconWC.js +1 -1
  7. package/dist/lib/cjs/src/core/ui/components/icon/IconWC.js.map +1 -1
  8. package/dist/lib/cjs/src/core/ui/components/icon/icon.module.scss.js +1 -1
  9. package/dist/lib/cjs/src/core/utils/webComponents/webComponent.utils.js +2 -0
  10. package/dist/lib/cjs/src/core/utils/webComponents/webComponent.utils.js.map +1 -0
  11. package/dist/lib/cjs/src/index.js +1 -1
  12. package/dist/lib/esm/index.css +8 -3
  13. package/dist/lib/esm/src/core/ui/components/icon/IconBase.js +1 -1
  14. package/dist/lib/esm/src/core/ui/components/icon/IconBase.js.map +1 -1
  15. package/dist/lib/esm/src/core/ui/components/icon/IconWC.js +1 -1
  16. package/dist/lib/esm/src/core/ui/components/icon/IconWC.js.map +1 -1
  17. package/dist/lib/esm/src/core/ui/components/icon/icon.module.scss.js +1 -1
  18. package/dist/lib/esm/src/core/utils/webComponents/webComponent.utils.js +2 -0
  19. package/dist/lib/esm/src/core/utils/webComponents/webComponent.utils.js.map +1 -0
  20. package/dist/lib/esm/src/index.js +1 -1
  21. package/dist/lib/src/core/ui/components/icon/IconBase.js +5 -5
  22. package/dist/lib/src/core/ui/components/icon/IconBase.js.map +1 -1
  23. package/dist/lib/src/core/ui/components/icon/IconWC.js +10 -15
  24. package/dist/lib/src/core/ui/components/icon/IconWC.js.map +1 -1
  25. package/dist/lib/src/core/utils/index.js +1 -1
  26. package/dist/lib/src/core/utils/index.js.map +1 -1
  27. package/dist/lib/src/core/utils/webComponents/exampleCustomElement.js +41 -0
  28. package/dist/lib/src/core/utils/webComponents/exampleCustomElement.js.map +1 -0
  29. package/dist/lib/src/core/utils/webComponents/index.js +2 -0
  30. package/dist/lib/src/core/utils/webComponents/index.js.map +1 -0
  31. package/dist/lib/src/core/utils/webComponents/webComponent.utils.js +29 -0
  32. package/dist/lib/src/core/utils/webComponents/webComponent.utils.js.map +1 -0
  33. package/dist/lib/tsconfig.tsbuildinfo +1 -1
  34. package/dist/types/src/core/ui/components/container/Flex.d.ts +6 -6
  35. package/dist/types/src/core/ui/components/icon/IconBase.d.ts +12 -1
  36. package/dist/types/src/core/ui/components/icon/IconBase.d.ts.map +1 -1
  37. package/dist/types/src/core/ui/components/icon/IconWC.d.ts +12 -0
  38. package/dist/types/src/core/ui/components/icon/IconWC.d.ts.map +1 -1
  39. package/dist/types/src/core/utils/index.d.ts +1 -1
  40. package/dist/types/src/core/utils/index.d.ts.map +1 -1
  41. package/dist/types/src/core/utils/webComponents/exampleCustomElement.d.ts +7 -0
  42. package/dist/types/src/core/utils/webComponents/exampleCustomElement.d.ts.map +1 -0
  43. package/dist/types/src/core/utils/webComponents/index.d.ts +2 -0
  44. package/dist/types/src/core/utils/webComponents/index.d.ts.map +1 -0
  45. package/dist/types/src/core/utils/webComponents/webComponent.utils.d.ts +9 -0
  46. package/dist/types/src/core/utils/webComponents/webComponent.utils.d.ts.map +1 -0
  47. package/dist/ui/esm/index.css +8 -3
  48. package/dist/ui/esm/node_modules/core-js/internals/a-possible-prototype.js +2 -0
  49. package/dist/ui/esm/node_modules/core-js/internals/a-possible-prototype.js.map +1 -0
  50. package/dist/ui/esm/node_modules/core-js/internals/array-for-each.js +2 -0
  51. package/dist/ui/esm/node_modules/core-js/internals/array-for-each.js.map +1 -0
  52. package/dist/ui/esm/node_modules/core-js/internals/dom-iterables.js +2 -0
  53. package/dist/ui/esm/node_modules/core-js/internals/dom-iterables.js.map +1 -0
  54. package/dist/ui/esm/node_modules/core-js/internals/dom-token-list-prototype.js +2 -0
  55. package/dist/ui/esm/node_modules/core-js/internals/dom-token-list-prototype.js.map +1 -0
  56. package/dist/ui/esm/node_modules/core-js/internals/function-uncurry-this-accessor.js +2 -0
  57. package/dist/ui/esm/node_modules/core-js/internals/function-uncurry-this-accessor.js.map +1 -0
  58. package/dist/ui/esm/node_modules/core-js/internals/inherit-if-required.js +2 -0
  59. package/dist/ui/esm/node_modules/core-js/internals/inherit-if-required.js.map +1 -0
  60. package/dist/ui/esm/node_modules/core-js/internals/is-pure.js +2 -0
  61. package/dist/ui/esm/node_modules/core-js/internals/is-pure.js.map +1 -0
  62. package/dist/ui/esm/node_modules/core-js/internals/object-set-prototype-of.js +2 -0
  63. package/dist/ui/esm/node_modules/core-js/internals/object-set-prototype-of.js.map +1 -0
  64. package/dist/ui/esm/node_modules/core-js/internals/path.js +2 -0
  65. package/dist/ui/esm/node_modules/core-js/internals/path.js.map +1 -0
  66. package/dist/ui/esm/node_modules/core-js/internals/this-number-value.js +2 -0
  67. package/dist/ui/esm/node_modules/core-js/internals/this-number-value.js.map +1 -0
  68. package/dist/ui/esm/node_modules/core-js/modules/es.number.constructor.js +2 -0
  69. package/dist/ui/esm/node_modules/core-js/modules/es.number.constructor.js.map +1 -0
  70. package/dist/ui/esm/node_modules/core-js/modules/web.dom-collections.for-each.js +2 -0
  71. package/dist/ui/esm/node_modules/core-js/modules/web.dom-collections.for-each.js.map +1 -0
  72. package/dist/ui/esm/src/core/ui/components/icon/IconBase.js +1 -1
  73. package/dist/ui/esm/src/core/ui/components/icon/IconBase.js.map +1 -1
  74. package/dist/ui/esm/src/core/ui/components/icon/IconWC.js +1 -1
  75. package/dist/ui/esm/src/core/ui/components/icon/IconWC.js.map +1 -1
  76. package/dist/ui/esm/src/core/ui/components/icon/icon.module.scss.js +1 -1
  77. package/dist/ui/esm/src/core/utils/webComponents/webComponent.utils.js +2 -0
  78. package/dist/ui/esm/src/core/utils/webComponents/webComponent.utils.js.map +1 -0
  79. package/dist/ui/index.css +8 -3
  80. package/dist/ui/node_modules/core-js/internals/a-possible-prototype.js +2 -0
  81. package/dist/ui/node_modules/core-js/internals/a-possible-prototype.js.map +1 -0
  82. package/dist/ui/node_modules/core-js/internals/array-for-each.js +2 -0
  83. package/dist/ui/node_modules/core-js/internals/array-for-each.js.map +1 -0
  84. package/dist/ui/node_modules/core-js/internals/dom-iterables.js +2 -0
  85. package/dist/ui/node_modules/core-js/internals/dom-iterables.js.map +1 -0
  86. package/dist/ui/node_modules/core-js/internals/dom-token-list-prototype.js +2 -0
  87. package/dist/ui/node_modules/core-js/internals/dom-token-list-prototype.js.map +1 -0
  88. package/dist/ui/node_modules/core-js/internals/function-uncurry-this-accessor.js +2 -0
  89. package/dist/ui/node_modules/core-js/internals/function-uncurry-this-accessor.js.map +1 -0
  90. package/dist/ui/node_modules/core-js/internals/inherit-if-required.js +2 -0
  91. package/dist/ui/node_modules/core-js/internals/inherit-if-required.js.map +1 -0
  92. package/dist/ui/node_modules/core-js/internals/is-pure.js +2 -0
  93. package/dist/ui/node_modules/core-js/internals/is-pure.js.map +1 -0
  94. package/dist/ui/node_modules/core-js/internals/object-set-prototype-of.js +2 -0
  95. package/dist/ui/node_modules/core-js/internals/object-set-prototype-of.js.map +1 -0
  96. package/dist/ui/node_modules/core-js/internals/path.js +2 -0
  97. package/dist/ui/node_modules/core-js/internals/path.js.map +1 -0
  98. package/dist/ui/node_modules/core-js/internals/this-number-value.js +2 -0
  99. package/dist/ui/node_modules/core-js/internals/this-number-value.js.map +1 -0
  100. package/dist/ui/node_modules/core-js/modules/es.number.constructor.js +2 -0
  101. package/dist/ui/node_modules/core-js/modules/es.number.constructor.js.map +1 -0
  102. package/dist/ui/node_modules/core-js/modules/web.dom-collections.for-each.js +2 -0
  103. package/dist/ui/node_modules/core-js/modules/web.dom-collections.for-each.js.map +1 -0
  104. package/dist/ui/src/core/ui/components/icon/IconBase.js +1 -1
  105. package/dist/ui/src/core/ui/components/icon/IconBase.js.map +1 -1
  106. package/dist/ui/src/core/ui/components/icon/IconWC.js +1 -1
  107. package/dist/ui/src/core/ui/components/icon/IconWC.js.map +1 -1
  108. package/dist/ui/src/core/ui/components/icon/icon.module.scss.js +1 -1
  109. package/dist/ui/src/core/utils/webComponents/webComponent.utils.js +2 -0
  110. package/dist/ui/src/core/utils/webComponents/webComponent.utils.js.map +1 -0
  111. package/dist/utils/esm/index.css +8 -3
  112. package/dist/utils/esm/src/core/utils/index.js +1 -1
  113. package/dist/utils/esm/src/core/utils/webComponents/webComponent.utils.js +2 -0
  114. package/dist/utils/esm/src/core/utils/webComponents/webComponent.utils.js.map +1 -0
  115. package/dist/utils/index.css +8 -3
  116. package/dist/utils/src/core/utils/index.js +1 -1
  117. package/dist/utils/src/core/utils/webComponents/webComponent.utils.js +2 -0
  118. package/dist/utils/src/core/utils/webComponents/webComponent.utils.js.map +1 -0
  119. package/package.json +1 -1
@@ -1,8 +1,13 @@
1
+ .icon-module_icon-base-parent__nOMvW {
2
+ line-height: 1px !important;
3
+ }
4
+
1
5
  .icon-module_icon-base__S0tHf {
2
6
  min-width: var(--min-width);
3
- min-height: var(--min-width);
4
- width: var(--height);
5
- height: var(--width);
7
+ min-height: var(--min-height);
8
+ width: var(--width);
9
+ height: var(--height);
10
+ line-height: var(--height);
6
11
  background-color: var(--icon-color);
7
12
  color: var(--icon-content-color);
8
13
  background-repeat: no-repeat;
@@ -1,8 +1,13 @@
1
+ .icon-module_icon-base-parent__nOMvW {
2
+ line-height: 1px !important;
3
+ }
4
+
1
5
  .icon-module_icon-base__S0tHf {
2
6
  min-width: var(--min-width);
3
- min-height: var(--min-width);
4
- width: var(--height);
5
- height: var(--width);
7
+ min-height: var(--min-height);
8
+ width: var(--width);
9
+ height: var(--height);
10
+ line-height: var(--height);
6
11
  background-color: var(--icon-color);
7
12
  color: var(--icon-content-color);
8
13
  background-repeat: no-repeat;
@@ -41,11 +41,16 @@
41
41
  height: var(--height);
42
42
  margin: var(--margin);
43
43
  }
44
+ .icon-module_icon-base-parent__nOMvW {
45
+ line-height: 1px !important;
46
+ }
47
+
44
48
  .icon-module_icon-base__S0tHf {
45
49
  min-width: var(--min-width);
46
- min-height: var(--min-width);
47
- width: var(--height);
48
- height: var(--width);
50
+ min-height: var(--min-height);
51
+ width: var(--width);
52
+ height: var(--height);
53
+ line-height: var(--height);
49
54
  background-color: var(--icon-color);
50
55
  color: var(--icon-content-color);
51
56
  background-repeat: no-repeat;
@@ -1,2 +1,2 @@
1
- "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("../../../../../_virtual/_rollupPluginBabelHelpers.js");require("../../../../../node_modules/core-js/modules/es.array.concat.js");var o=require("react"),r=require("./icon.module.scss.js"),c=o.memo((function(c){var i=c.iconUrl,t=c.minWidth,n=void 0===t?"1rem":t,a=c.minHeight,s=void 0===a?"1rem":a,l=c.size,u=c.width,d=c.height,m=c.color,h=void 0===m?"currentColor":m,p=c.className,v=void 0===p?"":p,j=c.children,b=o.useMemo((function(){return e.objectSpread2(e.objectSpread2(e.objectSpread2({"--min-width":n,"--min-height":s,"--width":l||u,"--height":l||d},l?{fontSize:l}:{}),i?{"--icon-url":"url(".concat(i,")")}:{}),i?{"--icon-color":h}:{"--icon-content-color":h})}),[n,s,l,u,d,i,h]);return React.createElement("span",{className:"".concat(r["icon-base"]," icon-base ").concat(v),style:b},!i&&j&&j)}));c.displayName="IconBase",exports.IconBase=c;
1
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("../../../../../_virtual/_rollupPluginBabelHelpers.js");require("../../../../../node_modules/core-js/modules/es.array.concat.js");var o=require("react"),r=require("./icon.module.scss.js"),i=o.memo((function(i){var t=i.iconUrl,c=i.minWidth,n=void 0===c?"1rem":c,a=i.minHeight,s=void 0===a?"1rem":a,l=i.size,u=i.fontSize,d=i.width,m=i.height,h=i.color,p=void 0===h?"currentColor":h,v=i.className,j=void 0===v?"":v,b=i.children,f=o.useMemo((function(){return e.objectSpread2(e.objectSpread2(e.objectSpread2({"--min-width":Math.min(n,l||d),"--min-height":Math.min(s,l||m),"--width":l||d,"--height":l||m},u?{fontSize:u}:{}),t?{"--icon-url":"url(".concat(t,")")}:{}),t?{"--icon-color":p}:{"--icon-content-color":p})}),[n,s,l,d,m,u,t,p]);return React.createElement("span",{className:"".concat(r["icon-base"]," icon-base ").concat(j),style:f},!t&&b&&b)}));i.displayName="IconBase",exports.IconBase=i;
2
2
  //# sourceMappingURL=IconBase.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"IconBase.js","sources":["../../../../../../../../src/core/ui/components/icon/IconBase.tsx"],"sourcesContent":["import { CSSProperties, memo, useMemo, PropsWithChildren } from 'react'\n\nimport classes from './icon.module.scss'\n\ntype IconBaseType = PropsWithChildren<any> & {\n iconUrl?: string\n minWidth?: string\n minHeight?: string\n width?: string\n height?: string\n size?: string\n color?: string\n className?: string\n}\n\nexport const IconBase = memo<IconBaseType>(({\n iconUrl, minWidth = '1rem', minHeight = '1rem', size, width, height, color = 'currentColor', className = '', children,\n}: IconBaseType) => {\n const styles = useMemo(() => (\n {\n '--min-width': minWidth,\n '--min-height': minHeight,\n '--width': size || width,\n '--height': size || height,\n ...(size ? { fontSize: size } : {}),\n ...(iconUrl ? { '--icon-url': `url(${iconUrl})` } : {}),\n ...(iconUrl ? { '--icon-color': color } : { '--icon-content-color': color }),\n }\n ), [minWidth, minHeight, size, width, height, iconUrl, color])\n\n return (\n <span\n className={`${(classes as any)['icon-base']} icon-base ${className}`}\n style={styles as CSSProperties}\n >\n {(!iconUrl && children) && children}\n </span>\n )\n})\n\nIconBase.displayName = 'IconBase'\n"],"names":["IconBase","memo","_ref","iconUrl","_ref$minWidth","minWidth","_ref$minHeight","minHeight","size","width","height","_ref$color","color","_ref$className","className","children","styles","useMemo","_objectSpread","objectSpread2","fontSize","concat","React","createElement","classes","style","displayName"],"mappings":"8QAeaA,EAAWC,EAAAA,MAAmB,SAAAC,GAEvB,IADlBC,EAAOD,EAAPC,QAAOC,EAAAF,EAAEG,SAAAA,OAAW,IAAHD,EAAG,OAAMA,EAAAE,EAAAJ,EAAEK,UAAAA,OAAY,IAAHD,EAAG,OAAMA,EAAEE,EAAIN,EAAJM,KAAMC,EAAKP,EAALO,MAAOC,EAAMR,EAANQ,OAAMC,EAAAT,EAAEU,MAAAA,OAAQ,IAAHD,EAAG,eAAcA,EAAAE,EAAAX,EAAEY,UAAAA,OAAY,IAAHD,EAAG,GAAEA,EAAEE,EAAQb,EAARa,SAEvGC,EAASC,EAAAA,SAAQ,WAAA,OAAAC,EAAAC,cAAAD,EAAAC,cAAAD,gBAAA,CAEnB,cAAeb,EACf,eAAgBE,EAChB,UAAWC,GAAQC,EACnB,WAAYD,GAAQE,GAChBF,EAAO,CAAEY,SAAUZ,GAAS,CAAA,GAC5BL,EAAU,CAAE,aAAY,OAAAkB,OAASlB,EAAO,MAAQ,CAAA,GAChDA,EAAU,CAAE,eAAgBS,GAAU,CAAE,uBAAwBA,GAAO,GAE5E,CAACP,EAAUE,EAAWC,EAAMC,EAAOC,EAAQP,EAASS,IAEvD,OACEU,MAAAC,cAAA,OAAA,CACET,UAAS,GAAAO,OAAMG,EAAgB,aAAYH,eAAAA,OAAcP,GACzDW,MAAOT,IAEJb,GAAWY,GAAaA,EAGjC,IAEAf,EAAS0B,YAAc"}
1
+ {"version":3,"file":"IconBase.js","sources":["../../../../../../../../src/core/ui/components/icon/IconBase.tsx"],"sourcesContent":["import { CSSProperties, memo, useMemo, PropsWithChildren } from 'react'\n\nimport classes from './icon.module.scss'\n\nexport type IconBaseType = PropsWithChildren<any> & {\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\nexport const IconBase = memo<IconBaseType>(({\n iconUrl, minWidth = '1rem', minHeight = '1rem',\n size, fontSize, width, height, color = 'currentColor', className = '', children,\n}: IconBaseType) => {\n const styles = useMemo(() => (\n {\n '--min-width': Math.min(minWidth, size || width),\n '--min-height': Math.min(minHeight, size || height),\n '--width': size || width,\n '--height': size || height,\n ...(fontSize ? { fontSize } : {}),\n ...(iconUrl ? { '--icon-url': `url(${iconUrl})` } : {}),\n ...(iconUrl ? { '--icon-color': color } : { '--icon-content-color': color }),\n }\n ), [minWidth, minHeight, size, width, height, fontSize, iconUrl, color])\n\n return (\n <span\n className={`${(classes as any)['icon-base']} icon-base ${className}`}\n style={styles as CSSProperties}\n >\n {(!iconUrl && children) && children}\n </span>\n )\n})\n\nIconBase.displayName = 'IconBase'\n"],"names":["IconBase","memo","_ref","iconUrl","_ref$minWidth","minWidth","_ref$minHeight","minHeight","size","fontSize","width","height","_ref$color","color","_ref$className","className","children","styles","useMemo","_objectSpread","objectSpread2","Math","min","concat","React","createElement","classes","style","displayName"],"mappings":"8QAgBaA,EAAWC,EAAAA,MAAmB,SAAAC,GAGvB,IAFlBC,EAAOD,EAAPC,QAAOC,EAAAF,EAAEG,SAAAA,OAAW,IAAHD,EAAG,OAAMA,EAAAE,EAAAJ,EAAEK,UAAAA,OAAY,IAAHD,EAAG,OAAMA,EAC9CE,EAAIN,EAAJM,KAAMC,EAAQP,EAARO,SAAUC,EAAKR,EAALQ,MAAOC,EAAMT,EAANS,OAAMC,EAAAV,EAAEW,MAAAA,OAAQ,IAAHD,EAAG,eAAcA,EAAAE,EAAAZ,EAAEa,UAAAA,OAAY,IAAHD,EAAG,GAAEA,EAAEE,EAAQd,EAARc,SAEjEC,EAASC,EAAAA,SAAQ,WAAA,OAAAC,EAAAC,cAAAD,EAAAC,cAAAD,gBAAA,CAEnB,cAAeE,KAAKC,IAAIjB,EAAUG,GAAQE,GAC1C,eAAgBW,KAAKC,IAAIf,EAAWC,GAAQG,GAC5C,UAAWH,GAAQE,EACnB,WAAYF,GAAQG,GAChBF,EAAW,CAAEA,SAAAA,GAAa,CAAA,GAC1BN,EAAU,CAAE,aAAY,OAAAoB,OAASpB,EAAO,MAAQ,CAAA,GAChDA,EAAU,CAAE,eAAgBU,GAAU,CAAE,uBAAwBA,GAAO,GAE5E,CAACR,EAAUE,EAAWC,EAAME,EAAOC,EAAQF,EAAUN,EAASU,IAEjE,OACEW,MAAAC,cAAA,OAAA,CACEV,UAAS,GAAAQ,OAAMG,EAAgB,aAAYH,eAAAA,OAAcR,GACzDY,MAAOV,IAEJd,GAAWa,GAAaA,EAGjC,IAEAhB,EAAS4B,YAAc"}
@@ -1,2 +1,2 @@
1
- "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("../../../../../_virtual/_rollupPluginBabelHelpers.js");require("../../../../../node_modules/core-js/modules/es.array.concat.js"),require("../../../../../node_modules/core-js/modules/es.array.map.js"),require("../../../../../node_modules/core-js/modules/es.object.entries.js");var t,i=require("../../../utils/web-components/coreElements/coreElements.js"),s=require("./icon.module.scss.js"),n=document.createElement("template");n.innerHTML='<span class="icon-base"></span>';var r=i.ced("icon-base")(t=function(t){e.inherits(r,t);var i=e.createSuper(r);function r(){var t;e.classCallCheck(this,r);for(var n=arguments.length,o=new Array(n),c=0;c<n;c++)o[c]=arguments[c];return(t=i.call.apply(i,[this].concat(o))).content=void 0,t.mainElement=void 0,t.iconUrl=void 0,t.minWidth=void 0,t.minHeight=void 0,t.width=void 0,t.height=void 0,t.size=void 0,t.color=void 0,t.render=function(){if(t.mainElement=t.mainElement||t.querySelector(".icon-base"),t.mainElement){t.mainElement.classList.add(s["icon-base"]);var i=e.objectSpread2(e.objectSpread2(e.objectSpread2({"--min-width":t.minWidth||"unset","--min-height":t.minHeight||"unset","--width":t.size||t.width||"unset","--height":t.size||t.height||"unset"},t.size?{"font-size":t.size||"unset"}:{}),t.iconUrl?{"--icon-url":"url(".concat(t.iconUrl,")")}:{}),t.iconUrl?{"--icon-color":t.color}:{"--icon-content-color":t.color});t.mainElement.innerHTML=t.iconUrl?"":t.content||"",t.mainElement.setAttribute("style",Object.entries(i).map((function(t){var i=e.slicedToArray(t,2),s=i[0],n=i[1];return"".concat(s,": ").concat(n,";")})).join(" "))}},t}return e.createClass(r,[{key:"connectedCallback",value:function(){this.innerHTML&&(this.content=this.content||this.innerHTML||this.getAttribute("content")),this.innerHTML=n.innerHTML,this.iconUrl=this.iconUrl||this.getAttribute("iconUrl"),this.minWidth=this.minWidth||this.getAttribute("minWidth"),this.minHeight=this.minHeight||this.getAttribute("minHeight"),this.width=this.width||this.getAttribute("width"),this.height=this.height||this.getAttribute("height"),this.size=this.size||this.getAttribute("size"),this.color=this.color||this.getAttribute("color"),this.className=this.className||this.getAttribute("className"),this.render()}},{key:"attributeChangedCallback",value:function(e,t,i){if("className"===e)return this.className=i||"",void(this.className&&(this.classList.remove(this.className),this.classList.add(this.className)));this[e]=i,this.render()}}],[{key:"observedAttributes",get:function(){return["iconUrl","minWidth","minHeight","width","height","size","color","className"]}}]),r}(e.wrapNativeSuper(HTMLElement)))||t,o={IconBaseWC:r};exports.IconBaseWC=o,exports.default=r;
1
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("../../../../../_virtual/_rollupPluginBabelHelpers.js");require("../../../../../node_modules/core-js/modules/es.array.concat.js"),require("../../../../../node_modules/core-js/modules/es.number.constructor.js"),require("../../../../../node_modules/core-js/modules/es.array.map.js"),require("../../../../../node_modules/core-js/modules/es.object.entries.js");var t,i=require("../../../utils/webComponents/webComponent.utils.js"),n=require("./icon.module.scss.js"),s=document.createElement("template");s.innerHTML='<span class="icon-base"></span>';var r=i.ced("icon-base")(t=function(t){e.inherits(o,t);var r=e.createSuper(o);function o(){var t;e.classCallCheck(this,o);for(var i=arguments.length,s=new Array(i),a=0;a<i;a++)s[a]=arguments[a];return(t=r.call.apply(r,[this].concat(s))).content=void 0,t.mainElement=void 0,t.iconUrl=void 0,t.minWidth=void 0,t.minHeight=void 0,t.width=void 0,t.height=void 0,t.size=void 0,t.fontSize=void 0,t.color=void 0,t.render=function(){if(t.mainElement=t.mainElement||t.querySelector(".icon-base"),t.mainElement){t.classList.add(n["icon-base-parent"]),t.mainElement.classList.add(n["icon-base"]);var i=e.objectSpread2(e.objectSpread2(e.objectSpread2({"--min-width":Math.min(Number(t.minWidth),Number(t.size||t.width))||"unset","--min-height":Math.min(Number(t.minHeight),Number(t.size||t.height))||"unset","--width":t.size||t.width||"unset","--height":t.size||t.height||"unset"},t.fontSize?{"font-size":t.fontSize||"unset"}:{}),t.iconUrl?{"--icon-url":"url(".concat(t.iconUrl,")")}:{}),t.iconUrl?{"--icon-color":t.color}:{"--icon-content-color":t.color});t.mainElement.innerHTML=t.iconUrl?"":t.content||"",t.mainElement.setAttribute("style",Object.entries(i).map((function(t){var i=e.slicedToArray(t,2),n=i[0],s=i[1];return"".concat(n,": ").concat(s,";")})).join(" "))}},t}return e.createClass(o,[{key:"connectedCallback",value:function(){this.innerHTML&&(this.content=this.content||this.innerHTML||this.getAttribute("content")),this.innerHTML=s.innerHTML,i.resolveAttributes(this,o.observedAttributes),this.render()}},{key:"attributeChangedCallback",value:function(e,t,i){if("className"===e)return this.className=i||"",void(this.className&&(this.classList.remove(this.className),this.classList.add(this.className)));this[e]=i,this.render()}}],[{key:"observedAttributes",get:function(){return["iconUrl","minWidth","minHeight","width","height","size","fontSize","color","className"]}}]),o}(e.wrapNativeSuper(HTMLElement)))||t,o={IconBaseWC:r};exports.IconBaseWC=o,exports.default=r;
2
2
  //# sourceMappingURL=IconWC.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"IconWC.js","sources":["../../../../../../../../src/core/ui/components/icon/IconWC.ts"],"sourcesContent":["import { ced } from '../../../utils/web-components/coreElements/coreElements'\n\nimport classes from './icon.module.scss'\n\n\nconst template = document.createElement('template')\n\ntemplate.innerHTML = '<span class=\"icon-base\"></span>'\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 color?: string | null\n\n static get observedAttributes() {\n return ['iconUrl', 'minWidth', 'minHeight', 'width', 'height', 'size', '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 this.iconUrl = this.iconUrl || this.getAttribute('iconUrl')\n this.minWidth = this.minWidth || this.getAttribute('minWidth')\n this.minHeight = this.minHeight || this.getAttribute('minHeight')\n this.width = this.width || this.getAttribute('width')\n this.height = this.height || this.getAttribute('height')\n this.size = this.size || this.getAttribute('size')\n this.color = this.color || this.getAttribute('color')\n this.className = (this.className || this.getAttribute('className')) as string\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 return\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\n this.mainElement.classList.add(classes['icon-base'])\n\n const styles = {\n '--min-width': this.minWidth || 'unset',\n '--min-height': this.minHeight || 'unset',\n '--width': this.size || this.width || 'unset',\n '--height': this.size || this.height || 'unset',\n ...(this.size ? { 'font-size': this.size || '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","color","render","querySelector","classList","add","classes","styles","_objectSpread","objectSpread2","setAttribute","Object","entries","map","_ref","_ref2","_slicedToArray","key","value","join","_createClass","createClass","getAttribute","className","attrName","oldVal","newVal","remove","get","_wrapNativeSuper","HTMLElement","IconBaseWC"],"mappings":"wdAKMA,EAAWC,SAASC,cAAc,YAExCF,EAASG,UAAY,kCAAiC,IAIjCC,EADpBC,MAAI,YAAYC,CAAAC,WAAAC,GAAAC,WAAAL,EAAAI,GAAA,IAAAE,EAAAC,cAAAP,GAAA,SAAAA,IAAA,IAAAQ,EAAAC,sBAAAT,GAAA,IAAA,IAAAU,EAAAC,UAAAC,OAAAC,EAAAC,IAAAA,MAAAJ,GAAAK,EAAA,EAAAA,EAAAL,EAAAK,IAAAF,EAAAE,GAAAJ,UAAAI,GA+Ed,OA/EcP,EAAAF,EAAAU,KAAAC,MAAAX,EAAA,CAAAY,MAAAC,OAAAN,KAEfO,aAAO,EAAAZ,EAEPa,iBAAW,EAAAb,EAEXc,aAAO,EAAAd,EAEPe,cAAQ,EAAAf,EAERgB,eAAS,EAAAhB,EAETiB,WAAK,EAAAjB,EAELkB,YAAM,EAAAlB,EAENmB,UAAI,EAAAnB,EAEJoB,WAAK,EAAApB,EAwCLqB,OAAS,WAEP,GADArB,EAAKa,YAAcb,EAAKa,aAAeb,EAAKsB,cAAc,cACrDtB,EAAKa,YAAV,CAIAb,EAAKa,YAAYU,UAAUC,IAAIC,EAAQ,cAEvC,IAAMC,EAAMC,EAAAA,cAAAA,EAAAC,cAAAD,gBAAA,CACV,cAAe3B,EAAKe,UAAY,QAChC,eAAgBf,EAAKgB,WAAa,QAClC,UAAWhB,EAAKmB,MAAQnB,EAAKiB,OAAS,QACtC,WAAYjB,EAAKmB,MAAQnB,EAAKkB,QAAU,SACpClB,EAAKmB,KAAO,CAAE,YAAanB,EAAKmB,MAAQ,SAAY,C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KAAKgC,YACPhC,KAAKa,UAAUuB,OAAOpC,KAAKgC,WAC3BhC,KAAKa,UAAUC,IAAId,KAAKgC,aAM5BhC,KAAKiC,GAAYE,EACjBnC,KAAKW,QACP,IAAC,CAAA,CAAAe,IAAA,qBAAAW,IApCD,WACE,MAAO,CAAC,UAAW,WAAY,YAAa,QAAS,SAAU,OAAQ,QAAS,YAClF,KAACvD,CAAA,EAAAwD,kBArBmCC,gBAAWtD,EA0FpCuD,EAAa,CACxBA,WAAY1D"}
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\n\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 return\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': Math.min(Number(this.minWidth), Number(this.size || this.width)) || 'unset',\n '--min-height': Math.min(Number(this.minHeight), Number(this.size || this.height)) || 'unset',\n '--width': this.size || this.width || 'unset',\n '--height': this.size || this.height || 'unset',\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","Math","min","Number","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":"giBAMMA,EAAWC,SAASC,cAAc,YAExCF,EAASG,UAAY,kCAAiC,IAejCC,EADpBC,MAAI,YAAYC,CAAAC,WAAAC,GAAAC,WAAAL,EAAAI,GAAA,IAAAE,EAAAC,cAAAP,GAAA,SAAAA,IAAA,IAAAQ,EAAAC,sBAAAT,GAAA,IAAA,I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OAAOC,QAAQR,GAAQS,KAAI,SAAAC,GAAA,IAAAC,EAAAC,EAAAA,cAAAF,EAAA,GAAEG,EAAGF,EAAA,GAAEG,EAAKH,EAAA,GAAA,MAAA,GAAA3B,OAAS6B,EAAG7B,MAAAA,OAAK8B,EAAK,IAAA,IAAKC,KAAK,KAhB9G,GAiBD1C,CAAA,CAlDA,OAkDA2C,EAAAC,YAAApD,EAAA,CAAA,CAAAgD,IAAA,oBAAAC,MAhDD,WACM/B,KAAKnB,YACPmB,KAAKE,QAAUF,KAAKE,SAAWF,KAAKnB,WAAamB,KAAKmC,aAAa,YAGrEnC,KAAKnB,UAAYH,EAASG,UAE1BuD,EAAAA,kBAAkBpC,KAAMlB,EAASuD,oBAEjCrC,KAAKY,QACP,GAAC,CAAAkB,IAAA,2BAAAC,MAED,SAAyBO,EAAkBC,EAAgCC,GACzE,GAAiB,cAAbF,EAMF,OALAtC,KAAKyC,UAAaD,GAAqB,QACnCxC,KAAKyC,YACPzC,KAAKc,UAAU4B,OAAO1C,KAAKyC,WAC3BzC,KAAKc,UAAUC,IAAIf,KAAKyC,aAM5BzC,KAAKsC,GAAYE,EACjBxC,KAAKY,QACP,IAAC,CAAA,CAAAkB,IAAA,qBAAAa,IA7BD,WACE,MAAO,CAAC,UAAW,WAAY,YAAa,QAAS,SAAU,OAAQ,WAAY,QAAS,YAC9F,KAAC7D,CAAA,EAAA8D,kBAvBmCC,gBAAW5D,EAqFpC6D,EAAa,CACxBA,WAAYhE"}
@@ -1,2 +1,2 @@
1
- "use strict";module.exports={"icon-base":"icon-module_icon-base__S0tHf"};
1
+ "use strict";module.exports={"icon-base-parent":"icon-module_icon-base-parent__nOMvW","icon-base":"icon-module_icon-base__S0tHf"};
2
2
  //# sourceMappingURL=icon.module.scss.js.map
@@ -0,0 +1,2 @@
1
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0}),require("../../../../node_modules/core-js/modules/es.object.to-string.js"),require("../../../../node_modules/core-js/modules/web.dom-collections.for-each.js");var e=function(e){return function(t){customElements.get(e)||customElements.define(e,t)}},t=e,o=function(e){return function(t){var o=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],r=arguments.length>2?arguments[2]:void 0,n=e.getAttribute(t),s=void 0!==n;return o&&s&&void 0===e[t]&&(e[t]=r?r(n):n),s}};exports.ced=e,exports.createResolveAttribute=o,exports.customElementDefine=t,exports.resolveAttributes=function(e,t){var r=o(e);t.forEach((function(e){if("string"==typeof e)r(e);else{var t=e.name,o=e.override,n=e.valueMap;r(t,o,n)}}))};
2
+ //# sourceMappingURL=webComponent.utils.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"webComponent.utils.js","sources":["../../../../../../../src/core/utils/webComponents/webComponent.utils.ts"],"sourcesContent":["/* custom elements define */\nexport const ced = (name: string) => (\n componentClass: typeof HTMLElement,\n) => {\n customElements.get(name) || customElements.define(name, componentClass)\n}\n\nexport const customElementDefine = ced\n\n\n\nexport const createResolveAttribute = (\n component: Element & Record<string, any>,\n) => (\n attributeName: string,\n // eslint-disable-next-line default-param-last\n overrideProperty = true,\n valueMap?: (value: unknown) => unknown,\n): boolean => {\n const attrValue = component.getAttribute(attributeName)\n const attrValueDefined = attrValue !== undefined\n\n if (overrideProperty && attrValueDefined && component[attributeName] === undefined) {\n // eslint-disable-next-line no-param-reassign\n component[attributeName] = valueMap ? valueMap(attrValue) : attrValue\n }\n\n return attrValueDefined\n}\n\nexport const resolveAttributes = (\n component: Element & Record<string, any>,\n attributes: ({ name: string; override: boolean; valueMap?: (value: unknown) => unknown } | string)[],\n) => {\n const resolver = createResolveAttribute(component)\n\n attributes.forEach((attribute) => {\n if (typeof attribute === 'string') {\n resolver(attribute)\n } else {\n const { name, override, valueMap } = attribute\n\n resolver(name, override, valueMap)\n }\n })\n}\n"],"names":["ced","name","componentClass","customElements","get","define","customElementDefine","createResolveAttribute","component","attributeName","overrideProperty","arguments","length","undefined","valueMap","attrValue","getAttribute","attrValueDefined","attributes","resolver","forEach","attribute","override"],"mappings":"uOACaA,EAAM,SAACC,GAAY,OAAK,SACnCC,GAEAC,eAAeC,IAAIH,IAASE,eAAeE,OAAOJ,EAAMC,GACzD,EAEYI,EAAsBN,EAItBO,EAAyB,SACpCC,GAAwC,OACrC,SACHC,GAIY,IAFZC,IAAgBC,UAAAC,OAAA,QAAAC,IAAAF,UAAA,KAAAA,UAAA,GAChBG,EAAsCH,UAAAC,OAAAD,EAAAA,kBAAAE,EAEhCE,EAAYP,EAAUQ,aAAaP,GACnCQ,OAAiCJ,IAAdE,EAOzB,OALIL,GAAoBO,QAAiDJ,IAA7BL,EAAUC,KAEpDD,EAAUC,GAAiBK,EAAWA,EAASC,GAAaA,GAGvDE,EACR,yGAEgC,SAC/BT,EACAU,GAEA,IAAMC,EAAWZ,EAAuBC,GAExCU,EAAWE,SAAQ,SAACC,GAClB,GAAyB,iBAAdA,EACTF,EAASE,OACJ,CACL,IAAQpB,EAA6BoB,EAA7BpB,KAAMqB,EAAuBD,EAAvBC,SAAUR,EAAaO,EAAbP,SAExBK,EAASlB,EAAMqB,EAAUR,EAC3B,CACF,GACF"}
@@ -1,2 +1,2 @@
1
- "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("./core/hooks/useApi.js"),r=require("./core/hooks/useToggle.js"),t=require("./core/hooks/useTranslations.js"),o=require("./core/hooks/useOutsideClick.js"),s=require("./core/hooks/useResize.js"),i=require("./core/utils/helpers/birthnumber.validator.js"),a=require("./core/utils/helpers/birthnumberCZSKvalidator.js"),n=require("./core/utils/helpers/fileValidator.js"),l=require("./core/utils/helpers/date.js"),p=require("./core/utils/helpers/deviceInfo.js"),c=require("./core/utils/helpers/emailMatcher.js"),u=require("./core/utils/helpers/file.js"),x=require("./core/utils/helpers/objectOperations.js"),m=require("./core/utils/helpers/other.js"),d=require("./core/utils/helpers/textValueOperations.js"),g=require("./core/utils/helpers/valueOperations.js"),T=require("./core/utils/keyExtractor.js"),h=require("./core/utils/date.js"),F=require("./core/utils/web-components/coreElements/coreElements.js"),j=require("./core/ui/utils/style.js"),v=require("./core/ui/components/container/FBox.js"),C=require("./core/ui/components/container/Flex.js"),b=require("./core/ui/components/container/Placeholder.js"),f=require("./core/ui/components/container/Container.js"),q=require("./core/ui/components/container/ResizableContainer.js"),S=require("./core/ui/components/field/Field.js"),y=require("./core/ui/components/dividers/DividerLine.js"),I=require("./core/ui/components/icon/IconBase.js"),O=require("./core/ui/components/icon/Icon.js"),D=require("./core/ui/components/icon/IconWC.js"),z=require("./core/constants/ui.constants.js");exports.useApi=e.useApi,exports.useToggle=r.useToggle,exports.createSafeT=t.createSafeT,exports.setUseTranslation=t.setUseTranslation,exports.useTranslations=t.useTranslations,exports.useOutsideClick=o.useOutsideClick,exports.useResize=s.useResize,exports.isBirthNumberValid=i.isBirthNumberValid,exports.getMatch=a.getMatch,exports.isValidFormat=a.isValidFormat,exports.isValidModulo11=a.isValidModulo11,exports.parse=a.parse,exports.regex=a.regex,exports.parseCSVdata=n.parseCSVdata,exports.validateCSVFile=n.validateCSVFile,exports.validateCSVlines=n.validateCSVlines,exports.validateJSONFile=n.validateJSONFile,exports.validateLineCellTrimmed=n.validateLineCellTrimmed,exports.validateLineNumColumns=n.validateLineNumColumns,exports.validateSDFFile=n.validateSDFFile,exports.DATE_FORMAT=l.DATE_FORMAT,exports.formatDateToTimestamp=l.formatDateToTimestamp,exports.getDate=l.getDate,exports.getDeviceId=p.getDeviceId,exports.emailMatch=c.emailMatch,exports.emailMatcher=c.emailMatcher,exports.regexBuilder=c.regexBuilder,exports.cleanCsvLines=u.cleanCsvLines,exports.formatFilePath=u.formatFilePath,exports.arrayToObjectTree=x.arrayToObjectTree,exports.chunkArray=x.chunkArray,exports.duplicatesInArray=x.duplicatesInArray,exports.formatJsonString=x.formatJsonString,exports.formatObj=x.formatObj,exports.debounce=m.debounce,exports.delay=m.delay,exports.memoize=m.memoize,exports.memoizeComplex=m.memoizeComplex,exports.memoizer=m.memoizer,exports.nestedTernary=m.nestedTernary,exports.escapeRegExp=d.escapeRegExp,exports.fileNameExt=d.fileNameExt,exports.findStringInText=d.findStringInText,exports.normalizeString=d.normalizeString,exports.removeWhitespaces=d.removeWhitespaces,exports.sanitizeId=d.sanitizeId,exports.sanitizePathId=d.sanitizePathId,exports.toLowerCase=d.toLowerCase,exports.toUpperCase=d.toUpperCase,exports.truncateText=d.truncateText,Object.defineProperty(exports,"Operation",{enumerable:!0,get:function(){return g.Operation}}),exports.decrementValue=g.decrementValue,exports.incerementValue=g.incerementValue,exports.numberDefined=g.numberDefined,exports.numberOperation=g.numberOperation,exports.restrictNumberInLimits=g.restrictNumberInLimits,exports.setValue=g.setValue,exports.keyExtractor=T.keyExtractor,exports.keyExtractorFunction=T.keyExtractorFunction,exports.dateRangeFormat=h.dateRangeFormat,exports.getDateTime=h.getDateTime,exports.getTimeFromNow=h.getTimeFromNow,exports.getTimeFromNowOriginal=h.getTimeFromNowOriginal,exports.getTimeTo=h.getTimeTo,exports.ced=F.ced,exports.createResolveAttribute=F.createResolveAttribute,exports.customElementDefine=F.customElementDefine,exports.stringArrayParser=F.stringArrayParser,exports.stringObjectParser=F.stringObjectParser,exports.calculateColors=j.calculateColors,exports.calculatePercColor=j.calculatePercColor,exports.convertHex=j.convertHex,exports.convertRGB=j.convertRGB,Object.defineProperty(exports,"defaultFontSize",{enumerable:!0,get:function(){return j.defaultFontSize}}),exports.pxToRem=j.pxToRem,exports.resolveStyleValue=j.resolveStyleValue,exports.setDefaultFontSize=j.setDefaultFontSize,exports.toHex=j.toHex,exports.FBox=v.FBox,exports.Flex=C.Flex,exports.FlexTight=C.FlexTight,exports.FlexTightStyled=C.FlexTightStyled,exports.FlexWrapper=C.FlexWrapper,exports.Placeholder=b.Placeholder,exports.Container=f.Container,exports.ResizableContainer=q.ResizableContainer,exports.Field=S.Field,exports.FieldWrapper=S.FieldWrapper,exports.Select=S.Select,exports.setIconColor=S.setIconColor,exports.setIconComponent=S.setIconComponent,exports.DividerHorizontal=y.DividerHorizontal,exports.DividerLine=y.DividerLine,exports.DividerVertical=y.DividerVertical,exports.IconBase=I.IconBase,exports.Icon=O.Icon,exports.IconBaseWC=D.IconBaseWC,Object.defineProperty(exports,"EventName",{enumerable:!0,get:function(){return z.EventName}});
1
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("./core/hooks/useApi.js"),r=require("./core/hooks/useToggle.js"),t=require("./core/hooks/useTranslations.js"),o=require("./core/hooks/useOutsideClick.js"),s=require("./core/hooks/useResize.js"),i=require("./core/utils/helpers/birthnumber.validator.js"),a=require("./core/utils/helpers/birthnumberCZSKvalidator.js"),n=require("./core/utils/helpers/fileValidator.js"),l=require("./core/utils/helpers/date.js"),p=require("./core/utils/helpers/deviceInfo.js"),c=require("./core/utils/helpers/emailMatcher.js"),u=require("./core/utils/helpers/file.js"),x=require("./core/utils/helpers/objectOperations.js"),m=require("./core/utils/helpers/other.js"),d=require("./core/utils/helpers/textValueOperations.js"),T=require("./core/utils/helpers/valueOperations.js"),v=require("./core/utils/keyExtractor.js"),g=require("./core/utils/date.js"),h=require("./core/utils/webComponents/webComponent.utils.js"),F=require("./core/ui/utils/style.js"),C=require("./core/ui/components/container/FBox.js"),j=require("./core/ui/components/container/Flex.js"),b=require("./core/ui/components/container/Placeholder.js"),f=require("./core/ui/components/container/Container.js"),q=require("./core/ui/components/container/ResizableContainer.js"),S=require("./core/ui/components/field/Field.js"),I=require("./core/ui/components/dividers/DividerLine.js"),D=require("./core/ui/components/icon/IconBase.js"),y=require("./core/ui/components/icon/Icon.js"),z=require("./core/ui/components/icon/IconWC.js"),O=require("./core/constants/ui.constants.js");exports.useApi=e.useApi,exports.useToggle=r.useToggle,exports.createSafeT=t.createSafeT,exports.setUseTranslation=t.setUseTranslation,exports.useTranslations=t.useTranslations,exports.useOutsideClick=o.useOutsideClick,exports.useResize=s.useResize,exports.isBirthNumberValid=i.isBirthNumberValid,exports.getMatch=a.getMatch,exports.isValidFormat=a.isValidFormat,exports.isValidModulo11=a.isValidModulo11,exports.parse=a.parse,exports.regex=a.regex,exports.parseCSVdata=n.parseCSVdata,exports.validateCSVFile=n.validateCSVFile,exports.validateCSVlines=n.validateCSVlines,exports.validateJSONFile=n.validateJSONFile,exports.validateLineCellTrimmed=n.validateLineCellTrimmed,exports.validateLineNumColumns=n.validateLineNumColumns,exports.validateSDFFile=n.validateSDFFile,exports.DATE_FORMAT=l.DATE_FORMAT,exports.formatDateToTimestamp=l.formatDateToTimestamp,exports.getDate=l.getDate,exports.getDeviceId=p.getDeviceId,exports.emailMatch=c.emailMatch,exports.emailMatcher=c.emailMatcher,exports.regexBuilder=c.regexBuilder,exports.cleanCsvLines=u.cleanCsvLines,exports.formatFilePath=u.formatFilePath,exports.arrayToObjectTree=x.arrayToObjectTree,exports.chunkArray=x.chunkArray,exports.duplicatesInArray=x.duplicatesInArray,exports.formatJsonString=x.formatJsonString,exports.formatObj=x.formatObj,exports.debounce=m.debounce,exports.delay=m.delay,exports.memoize=m.memoize,exports.memoizeComplex=m.memoizeComplex,exports.memoizer=m.memoizer,exports.nestedTernary=m.nestedTernary,exports.escapeRegExp=d.escapeRegExp,exports.fileNameExt=d.fileNameExt,exports.findStringInText=d.findStringInText,exports.normalizeString=d.normalizeString,exports.removeWhitespaces=d.removeWhitespaces,exports.sanitizeId=d.sanitizeId,exports.sanitizePathId=d.sanitizePathId,exports.toLowerCase=d.toLowerCase,exports.toUpperCase=d.toUpperCase,exports.truncateText=d.truncateText,Object.defineProperty(exports,"Operation",{enumerable:!0,get:function(){return T.Operation}}),exports.decrementValue=T.decrementValue,exports.incerementValue=T.incerementValue,exports.numberDefined=T.numberDefined,exports.numberOperation=T.numberOperation,exports.restrictNumberInLimits=T.restrictNumberInLimits,exports.setValue=T.setValue,exports.keyExtractor=v.keyExtractor,exports.keyExtractorFunction=v.keyExtractorFunction,exports.dateRangeFormat=g.dateRangeFormat,exports.getDateTime=g.getDateTime,exports.getTimeFromNow=g.getTimeFromNow,exports.getTimeFromNowOriginal=g.getTimeFromNowOriginal,exports.getTimeTo=g.getTimeTo,exports.ced=h.ced,exports.createResolveAttribute=h.createResolveAttribute,exports.customElementDefine=h.customElementDefine,exports.resolveAttributes=h.resolveAttributes,exports.calculateColors=F.calculateColors,exports.calculatePercColor=F.calculatePercColor,exports.convertHex=F.convertHex,exports.convertRGB=F.convertRGB,Object.defineProperty(exports,"defaultFontSize",{enumerable:!0,get:function(){return F.defaultFontSize}}),exports.pxToRem=F.pxToRem,exports.resolveStyleValue=F.resolveStyleValue,exports.setDefaultFontSize=F.setDefaultFontSize,exports.toHex=F.toHex,exports.FBox=C.FBox,exports.Flex=j.Flex,exports.FlexTight=j.FlexTight,exports.FlexTightStyled=j.FlexTightStyled,exports.FlexWrapper=j.FlexWrapper,exports.Placeholder=b.Placeholder,exports.Container=f.Container,exports.ResizableContainer=q.ResizableContainer,exports.Field=S.Field,exports.FieldWrapper=S.FieldWrapper,exports.Select=S.Select,exports.setIconColor=S.setIconColor,exports.setIconComponent=S.setIconComponent,exports.DividerHorizontal=I.DividerHorizontal,exports.DividerLine=I.DividerLine,exports.DividerVertical=I.DividerVertical,exports.IconBase=D.IconBase,exports.Icon=y.Icon,exports.IconBaseWC=z.IconBaseWC,Object.defineProperty(exports,"EventName",{enumerable:!0,get:function(){return O.EventName}});
2
2
  //# sourceMappingURL=index.js.map
@@ -41,11 +41,16 @@
41
41
  height: var(--height);
42
42
  margin: var(--margin);
43
43
  }
44
+ .icon-module_icon-base-parent__nOMvW {
45
+ line-height: 1px !important;
46
+ }
47
+
44
48
  .icon-module_icon-base__S0tHf {
45
49
  min-width: var(--min-width);
46
- min-height: var(--min-width);
47
- width: var(--height);
48
- height: var(--width);
50
+ min-height: var(--min-height);
51
+ width: var(--width);
52
+ height: var(--height);
53
+ line-height: var(--height);
49
54
  background-color: var(--icon-color);
50
55
  color: var(--icon-content-color);
51
56
  background-repeat: no-repeat;
@@ -1,2 +1,2 @@
1
- import{objectSpread2 as o}from"../../../../../_virtual/_rollupPluginBabelHelpers.js";import"../../../../../node_modules/core-js/modules/es.array.concat.js";import{memo as e,useMemo as i}from"react";import r from"./icon.module.scss.js";var c=e((function(e){var c=e.iconUrl,t=e.minWidth,n=void 0===t?"1rem":t,a=e.minHeight,s=void 0===a?"1rem":a,l=e.size,m=e.width,d=e.height,u=e.color,h=void 0===u?"currentColor":u,p=e.className,v=void 0===p?"":p,f=e.children,g=i((function(){return o(o(o({"--min-width":n,"--min-height":s,"--width":l||m,"--height":l||d},l?{fontSize:l}:{}),c?{"--icon-url":"url(".concat(c,")")}:{}),c?{"--icon-color":h}:{"--icon-content-color":h})}),[n,s,l,m,d,c,h]);return React.createElement("span",{className:"".concat(r["icon-base"]," icon-base ").concat(v),style:g},!c&&f&&f)}));c.displayName="IconBase";export{c as IconBase};
1
+ import{objectSpread2 as o}from"../../../../../_virtual/_rollupPluginBabelHelpers.js";import"../../../../../node_modules/core-js/modules/es.array.concat.js";import{memo as e,useMemo as i}from"react";import r from"./icon.module.scss.js";var t=e((function(e){var t=e.iconUrl,n=e.minWidth,c=void 0===n?"1rem":n,a=e.minHeight,s=void 0===a?"1rem":a,l=e.size,m=e.fontSize,d=e.width,h=e.height,u=e.color,p=void 0===u?"currentColor":u,f=e.className,v=void 0===f?"":f,g=e.children,j=i((function(){return o(o(o({"--min-width":Math.min(c,l||d),"--min-height":Math.min(s,l||h),"--width":l||d,"--height":l||h},m?{fontSize:m}:{}),t?{"--icon-url":"url(".concat(t,")")}:{}),t?{"--icon-color":p}:{"--icon-content-color":p})}),[c,s,l,d,h,m,t,p]);return React.createElement("span",{className:"".concat(r["icon-base"]," icon-base ").concat(v),style:j},!t&&g&&g)}));t.displayName="IconBase";export{t as IconBase};
2
2
  //# sourceMappingURL=IconBase.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"IconBase.js","sources":["../../../../../../../../src/core/ui/components/icon/IconBase.tsx"],"sourcesContent":["import { CSSProperties, memo, useMemo, PropsWithChildren } from 'react'\n\nimport classes from './icon.module.scss'\n\ntype IconBaseType = PropsWithChildren<any> & {\n iconUrl?: string\n minWidth?: string\n minHeight?: string\n width?: string\n height?: string\n size?: string\n color?: string\n className?: string\n}\n\nexport const IconBase = memo<IconBaseType>(({\n iconUrl, minWidth = '1rem', minHeight = '1rem', size, width, height, color = 'currentColor', className = '', children,\n}: IconBaseType) => {\n const styles = useMemo(() => (\n {\n '--min-width': minWidth,\n '--min-height': minHeight,\n '--width': size || width,\n '--height': size || height,\n ...(size ? { fontSize: size } : {}),\n ...(iconUrl ? { '--icon-url': `url(${iconUrl})` } : {}),\n ...(iconUrl ? { '--icon-color': color } : { '--icon-content-color': color }),\n }\n ), [minWidth, minHeight, size, width, height, iconUrl, color])\n\n return (\n <span\n className={`${(classes as any)['icon-base']} icon-base ${className}`}\n style={styles as CSSProperties}\n >\n {(!iconUrl && children) && children}\n </span>\n )\n})\n\nIconBase.displayName = 'IconBase'\n"],"names":["IconBase","memo","_ref","iconUrl","_ref$minWidth","minWidth","_ref$minHeight","minHeight","size","width","height","_ref$color","color","_ref$className","className","children","styles","useMemo","_objectSpread","fontSize","concat","React","createElement","classes","style","displayName"],"mappings":"+OAeaA,EAAWC,GAAmB,SAAAC,GAEvB,IADlBC,EAAOD,EAAPC,QAAOC,EAAAF,EAAEG,SAAAA,OAAW,IAAHD,EAAG,OAAMA,EAAAE,EAAAJ,EAAEK,UAAAA,OAAY,IAAHD,EAAG,OAAMA,EAAEE,EAAIN,EAAJM,KAAMC,EAAKP,EAALO,MAAOC,EAAMR,EAANQ,OAAMC,EAAAT,EAAEU,MAAAA,OAAQ,IAAHD,EAAG,eAAcA,EAAAE,EAAAX,EAAEY,UAAAA,OAAY,IAAHD,EAAG,GAAEA,EAAEE,EAAQb,EAARa,SAEvGC,EAASC,GAAQ,WAAA,OAAAC,EAAAA,EAAAA,EAAA,CAEnB,cAAeb,EACf,eAAgBE,EAChB,UAAWC,GAAQC,EACnB,WAAYD,GAAQE,GAChBF,EAAO,CAAEW,SAAUX,GAAS,CAAA,GAC5BL,EAAU,CAAE,aAAY,OAAAiB,OAASjB,EAAO,MAAQ,CAAA,GAChDA,EAAU,CAAE,eAAgBS,GAAU,CAAE,uBAAwBA,GAAO,GAE5E,CAACP,EAAUE,EAAWC,EAAMC,EAAOC,EAAQP,EAASS,IAEvD,OACES,MAAAC,cAAA,OAAA,CACER,UAAS,GAAAM,OAAMG,EAAgB,aAAYH,eAAAA,OAAcN,GACzDU,MAAOR,IAEJb,GAAWY,GAAaA,EAGjC,IAEAf,EAASyB,YAAc"}
1
+ {"version":3,"file":"IconBase.js","sources":["../../../../../../../../src/core/ui/components/icon/IconBase.tsx"],"sourcesContent":["import { CSSProperties, memo, useMemo, PropsWithChildren } from 'react'\n\nimport classes from './icon.module.scss'\n\nexport type IconBaseType = PropsWithChildren<any> & {\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\nexport const IconBase = memo<IconBaseType>(({\n iconUrl, minWidth = '1rem', minHeight = '1rem',\n size, fontSize, width, height, color = 'currentColor', className = '', children,\n}: IconBaseType) => {\n const styles = useMemo(() => (\n {\n '--min-width': Math.min(minWidth, size || width),\n '--min-height': Math.min(minHeight, size || height),\n '--width': size || width,\n '--height': size || height,\n ...(fontSize ? { fontSize } : {}),\n ...(iconUrl ? { '--icon-url': `url(${iconUrl})` } : {}),\n ...(iconUrl ? { '--icon-color': color } : { '--icon-content-color': color }),\n }\n ), [minWidth, minHeight, size, width, height, fontSize, iconUrl, color])\n\n return (\n <span\n className={`${(classes as any)['icon-base']} icon-base ${className}`}\n style={styles as CSSProperties}\n >\n {(!iconUrl && children) && children}\n </span>\n )\n})\n\nIconBase.displayName = 'IconBase'\n"],"names":["IconBase","memo","_ref","iconUrl","_ref$minWidth","minWidth","_ref$minHeight","minHeight","size","fontSize","width","height","_ref$color","color","_ref$className","className","children","styles","useMemo","_objectSpread","Math","min","concat","React","createElement","classes","style","displayName"],"mappings":"+OAgBaA,EAAWC,GAAmB,SAAAC,GAGvB,IAFlBC,EAAOD,EAAPC,QAAOC,EAAAF,EAAEG,SAAAA,OAAW,IAAHD,EAAG,OAAMA,EAAAE,EAAAJ,EAAEK,UAAAA,OAAY,IAAHD,EAAG,OAAMA,EAC9CE,EAAIN,EAAJM,KAAMC,EAAQP,EAARO,SAAUC,EAAKR,EAALQ,MAAOC,EAAMT,EAANS,OAAMC,EAAAV,EAAEW,MAAAA,OAAQ,IAAHD,EAAG,eAAcA,EAAAE,EAAAZ,EAAEa,UAAAA,OAAY,IAAHD,EAAG,GAAEA,EAAEE,EAAQd,EAARc,SAEjEC,EAASC,GAAQ,WAAA,OAAAC,EAAAA,EAAAA,EAAA,CAEnB,cAAeC,KAAKC,IAAIhB,EAAUG,GAAQE,GAC1C,eAAgBU,KAAKC,IAAId,EAAWC,GAAQG,GAC5C,UAAWH,GAAQE,EACnB,WAAYF,GAAQG,GAChBF,EAAW,CAAEA,SAAAA,GAAa,CAAA,GAC1BN,EAAU,CAAE,aAAY,OAAAmB,OAASnB,EAAO,MAAQ,CAAA,GAChDA,EAAU,CAAE,eAAgBU,GAAU,CAAE,uBAAwBA,GAAO,GAE5E,CAACR,EAAUE,EAAWC,EAAME,EAAOC,EAAQF,EAAUN,EAASU,IAEjE,OACEU,MAAAC,cAAA,OAAA,CACET,UAAS,GAAAO,OAAMG,EAAgB,aAAYH,eAAAA,OAAcP,GACzDW,MAAOT,IAEJd,GAAWa,GAAaA,EAGjC,IAEAhB,EAAS2B,YAAc"}
@@ -1,2 +1,2 @@
1
- import{inherits as t,createSuper as e,createClass as i,classCallCheck as s,objectSpread2 as n,slicedToArray as o,wrapNativeSuper as r}from"../../../../../_virtual/_rollupPluginBabelHelpers.js";import"../../../../../node_modules/core-js/modules/es.array.concat.js";import"../../../../../node_modules/core-js/modules/es.array.map.js";import"../../../../../node_modules/core-js/modules/es.object.entries.js";import{ced as a}from"../../../utils/web-components/coreElements/coreElements.js";import c from"./icon.module.scss.js";var h,l=document.createElement("template");l.innerHTML='<span class="icon-base"></span>';var m=a("icon-base")(h=function(r){t(h,r);var a=e(h);function h(){var t;s(this,h);for(var e=arguments.length,i=new Array(e),r=0;r<e;r++)i[r]=arguments[r];return(t=a.call.apply(a,[this].concat(i))).content=void 0,t.mainElement=void 0,t.iconUrl=void 0,t.minWidth=void 0,t.minHeight=void 0,t.width=void 0,t.height=void 0,t.size=void 0,t.color=void 0,t.render=function(){if(t.mainElement=t.mainElement||t.querySelector(".icon-base"),t.mainElement){t.mainElement.classList.add(c["icon-base"]);var e=n(n(n({"--min-width":t.minWidth||"unset","--min-height":t.minHeight||"unset","--width":t.size||t.width||"unset","--height":t.size||t.height||"unset"},t.size?{"font-size":t.size||"unset"}:{}),t.iconUrl?{"--icon-url":"url(".concat(t.iconUrl,")")}:{}),t.iconUrl?{"--icon-color":t.color}:{"--icon-content-color":t.color});t.mainElement.innerHTML=t.iconUrl?"":t.content||"",t.mainElement.setAttribute("style",Object.entries(e).map((function(t){var e=o(t,2),i=e[0],s=e[1];return"".concat(i,": ").concat(s,";")})).join(" "))}},t}return i(h,[{key:"connectedCallback",value:function(){this.innerHTML&&(this.content=this.content||this.innerHTML||this.getAttribute("content")),this.innerHTML=l.innerHTML,this.iconUrl=this.iconUrl||this.getAttribute("iconUrl"),this.minWidth=this.minWidth||this.getAttribute("minWidth"),this.minHeight=this.minHeight||this.getAttribute("minHeight"),this.width=this.width||this.getAttribute("width"),this.height=this.height||this.getAttribute("height"),this.size=this.size||this.getAttribute("size"),this.color=this.color||this.getAttribute("color"),this.className=this.className||this.getAttribute("className"),this.render()}},{key:"attributeChangedCallback",value:function(t,e,i){if("className"===t)return this.className=i||"",void(this.className&&(this.classList.remove(this.className),this.classList.add(this.className)));this[t]=i,this.render()}}],[{key:"observedAttributes",get:function(){return["iconUrl","minWidth","minHeight","width","height","size","color","className"]}}]),h}(r(HTMLElement)))||h,u={IconBaseWC:m};export{u as IconBaseWC,m as default};
1
+ import{inherits as e,createSuper as t,createClass as i,classCallCheck as n,objectSpread2 as s,slicedToArray as o,wrapNativeSuper as r}from"../../../../../_virtual/_rollupPluginBabelHelpers.js";import"../../../../../node_modules/core-js/modules/es.array.concat.js";import"../../../../../node_modules/core-js/modules/es.number.constructor.js";import"../../../../../node_modules/core-js/modules/es.array.map.js";import"../../../../../node_modules/core-js/modules/es.object.entries.js";import{ced as a,resolveAttributes as c}from"../../../utils/webComponents/webComponent.utils.js";import l from"./icon.module.scss.js";var m,u=document.createElement("template");u.innerHTML='<span class="icon-base"></span>';var d=a("icon-base")(m=function(r){e(m,r);var a=t(m);function m(){var e;n(this,m);for(var t=arguments.length,i=new Array(t),r=0;r<t;r++)i[r]=arguments[r];return(e=a.call.apply(a,[this].concat(i))).content=void 0,e.mainElement=void 0,e.iconUrl=void 0,e.minWidth=void 0,e.minHeight=void 0,e.width=void 0,e.height=void 0,e.size=void 0,e.fontSize=void 0,e.color=void 0,e.render=function(){if(e.mainElement=e.mainElement||e.querySelector(".icon-base"),e.mainElement){e.classList.add(l["icon-base-parent"]),e.mainElement.classList.add(l["icon-base"]);var t=s(s(s({"--min-width":Math.min(Number(e.minWidth),Number(e.size||e.width))||"unset","--min-height":Math.min(Number(e.minHeight),Number(e.size||e.height))||"unset","--width":e.size||e.width||"unset","--height":e.size||e.height||"unset"},e.fontSize?{"font-size":e.fontSize||"unset"}:{}),e.iconUrl?{"--icon-url":"url(".concat(e.iconUrl,")")}:{}),e.iconUrl?{"--icon-color":e.color}:{"--icon-content-color":e.color});e.mainElement.innerHTML=e.iconUrl?"":e.content||"",e.mainElement.setAttribute("style",Object.entries(t).map((function(e){var t=o(e,2),i=t[0],n=t[1];return"".concat(i,": ").concat(n,";")})).join(" "))}},e}return i(m,[{key:"connectedCallback",value:function(){this.innerHTML&&(this.content=this.content||this.innerHTML||this.getAttribute("content")),this.innerHTML=u.innerHTML,c(this,m.observedAttributes),this.render()}},{key:"attributeChangedCallback",value:function(e,t,i){if("className"===e)return this.className=i||"",void(this.className&&(this.classList.remove(this.className),this.classList.add(this.className)));this[e]=i,this.render()}}],[{key:"observedAttributes",get:function(){return["iconUrl","minWidth","minHeight","width","height","size","fontSize","color","className"]}}]),m}(r(HTMLElement)))||m,h={IconBaseWC:d};export{h as IconBaseWC,d as default};
2
2
  //# sourceMappingURL=IconWC.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"IconWC.js","sources":["../../../../../../../../src/core/ui/components/icon/IconWC.ts"],"sourcesContent":["import { ced } from '../../../utils/web-components/coreElements/coreElements'\n\nimport classes from './icon.module.scss'\n\n\nconst template = document.createElement('template')\n\ntemplate.innerHTML = '<span class=\"icon-base\"></span>'\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 color?: string | null\n\n static get observedAttributes() {\n return ['iconUrl', 'minWidth', 'minHeight', 'width', 'height', 'size', '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 this.iconUrl = this.iconUrl || this.getAttribute('iconUrl')\n this.minWidth = this.minWidth || this.getAttribute('minWidth')\n this.minHeight = this.minHeight || this.getAttribute('minHeight')\n this.width = this.width || this.getAttribute('width')\n this.height = this.height || this.getAttribute('height')\n this.size = this.size || this.getAttribute('size')\n this.color = this.color || this.getAttribute('color')\n this.className = (this.className || this.getAttribute('className')) as string\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 return\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\n this.mainElement.classList.add(classes['icon-base'])\n\n const styles = {\n '--min-width': this.minWidth || 'unset',\n '--min-height': this.minHeight || 'unset',\n '--width': this.size || this.width || 'unset',\n '--height': this.size || this.height || 'unset',\n ...(this.size ? { 'font-size': this.size || '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","color","render","querySelector","classList","add","classes","styles","_objectSpread","setAttribute","Object","entries","map","_ref","_ref2","_slicedToArray","key","value","join","_createClass","getAttribute","className","attrName","oldVal","newVal","remove","get","_wrapNativeSuper","HTMLElement","IconBaseWC"],"mappings":"ihBAKMA,EAAWC,SAASC,cAAc,YAExCF,EAASG,UAAY,kCAAiC,IAIjCC,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,EAAAK,IAAAF,EAAAE,GAAAJ,UAAAI,GA+Ed,OA/EcP,EAAAF,EAAAU,KAAAC,MAAAX,EAAA,CAAAY,MAAA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ASG,UAE1BmB,KAAKI,QAAUJ,KAAKI,SAAWJ,KAAK6B,aAAa,WACjD7B,KAAKK,SAAWL,KAAKK,UAAYL,KAAK6B,aAAa,YACnD7B,KAAKM,UAAYN,KAAKM,WAAaN,KAAK6B,aAAa,aACrD7B,KAAKO,MAAQP,KAAKO,OAASP,KAAK6B,aAAa,SAC7C7B,KAAKQ,OAASR,KAAKQ,QAAUR,KAAK6B,aAAa,UAC/C7B,KAAKS,KAAOT,KAAKS,MAAQT,KAAK6B,aAAa,QAC3C7B,KAAKU,MAAQV,KAAKU,OAASV,KAAK6B,aAAa,SAC7C7B,KAAK8B,UAAa9B,KAAK8B,WAAa9B,KAAK6B,aAAa,aAEtD7B,KAAKW,QACP,GAAC,CAAAc,IAAA,2BAAAC,MAED,SAAyBK,EAAkBC,EAAgCC,GACzE,GAAiB,cAAbF,EAMF,OALA/B,KAAK8B,UAAaG,GAAqB,QACnCjC,KAAK8B,YACP9B,KAAKa,UAAUqB,OAAOlC,KAAK8B,WAC3B9B,KAAKa,UAAUC,IAAId,KAAK8B,aAM5B9B,KAAK+B,GAAYE,EACjBjC,KAAKW,QACP,IAAC,CAAA,CAAAc,IAAA,qBAAAU,IApCD,WACE,MAAO,CAAC,UAAW,WAAY,YAAa,QAAS,SAAU,OAAQ,QAAS,YAClF,KAACrD,CAAA,EAAAsD,EArBmCC,gBAAWpD,EA0FpCqD,EAAa,CACxBA,WAAYxD"}
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\n\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 return\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': Math.min(Number(this.minWidth), Number(this.size || this.width)) || 'unset',\n '--min-height': Math.min(Number(this.minHeight), Number(this.size || this.height)) || 'unset',\n '--width': this.size || this.width || 'unset',\n '--height': this.size || this.height || 'unset',\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","Math","min","Number","setAttribute","Object","entries","map","_ref","_ref2","_slicedToArray","key","value","join","_createClass","getAttribute","resolveAttributes","observedAttributes","attrName","oldVal","newVal","className","remove","get","_wrapNativeSuper","HTMLElement","IconBaseWC"],"mappings":"6mBAMMA,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,EAAAK,IAAAF,EAAAE,GAAAJ,UAAAI,GA0Ed,OA1EcP,EAAAF,EAAAU,KAAAC,MAAAX,EAAA,CAAAY,MAAAC,OAAAN,KAEfO,aAAO,EAAAZ,EAEPa,iBAAW,EAAAb,EAEXc,aAAO,EAAAd,EAEPe,cAAQ,EAAAf,EAERgB,eAAS,EAAAhB,EAETiB,WAAK,EAAAjB,EAELkB,YAAM,EAAAlB,EAENmB,UAAI,EAAAnB,EAEJoB,cAAQ,EAAApB,EAERqB,WAAK,EAAArB,EAiCLsB,OAAS,WAEP,GADAtB,EAAKa,YAAcb,EAAKa,aAAeb,EAAKuB,cAAc,cACrDvB,EAAKa,YAAV,CAGAb,EAAKwB,UAAUC,IAAIC,EAAQ,qBAC3B1B,EAAKa,YAAYW,UAAUC,IAAIC,EAAQ,cAEvC,IAAMC,EAAMC,EAAAA,EAAAA,EAAA,CACV,cAAeC,KAAKC,IAAIC,OAAO/B,EAAKe,UAAWg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jBtC,KAAKY,QACP,IAAC,CAAA,CAAAiB,IAAA,qBAAAY,IA7BD,WACE,MAAO,CAAC,UAAW,WAAY,YAAa,QAAS,SAAU,OAAQ,WAAY,QAAS,YAC9F,KAAC3D,CAAA,EAAA4D,EAvBmCC,gBAAW1D,EAqFpC2D,EAAa,CACxBA,WAAY9D"}
@@ -1,2 +1,2 @@
1
- var a={"icon-base":"icon-module_icon-base__S0tHf"};export{a as default};
1
+ var e={"icon-base-parent":"icon-module_icon-base-parent__nOMvW","icon-base":"icon-module_icon-base__S0tHf"};export{e as default};
2
2
  //# sourceMappingURL=icon.module.scss.js.map
@@ -0,0 +1,2 @@
1
+ import"../../../../node_modules/core-js/modules/es.object.to-string.js";import"../../../../node_modules/core-js/modules/web.dom-collections.for-each.js";var e=function(e){return function(o){customElements.get(e)||customElements.define(e,o)}},o=e,t=function(e){return function(o){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],n=arguments.length>2?arguments[2]:void 0,r=e.getAttribute(o),i=void 0!==r;return t&&i&&void 0===e[o]&&(e[o]=n?n(r):r),i}},n=function(e,o){var n=t(e);o.forEach((function(e){if("string"==typeof e)n(e);else{var o=e.name,t=e.override,r=e.valueMap;n(o,t,r)}}))};export{e as ced,t as createResolveAttribute,o as customElementDefine,n as resolveAttributes};
2
+ //# sourceMappingURL=webComponent.utils.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"webComponent.utils.js","sources":["../../../../../../../src/core/utils/webComponents/webComponent.utils.ts"],"sourcesContent":["/* custom elements define */\nexport const ced = (name: string) => (\n componentClass: typeof HTMLElement,\n) => {\n customElements.get(name) || customElements.define(name, componentClass)\n}\n\nexport const customElementDefine = ced\n\n\n\nexport const createResolveAttribute = (\n component: Element & Record<string, any>,\n) => (\n attributeName: string,\n // eslint-disable-next-line default-param-last\n overrideProperty = true,\n valueMap?: (value: unknown) => unknown,\n): boolean => {\n const attrValue = component.getAttribute(attributeName)\n const attrValueDefined = attrValue !== undefined\n\n if (overrideProperty && attrValueDefined && component[attributeName] === undefined) {\n // eslint-disable-next-line no-param-reassign\n component[attributeName] = valueMap ? valueMap(attrValue) : attrValue\n }\n\n return attrValueDefined\n}\n\nexport const resolveAttributes = (\n component: Element & Record<string, any>,\n attributes: ({ name: string; override: boolean; valueMap?: (value: unknown) => unknown } | string)[],\n) => {\n const resolver = createResolveAttribute(component)\n\n attributes.forEach((attribute) => {\n if (typeof attribute === 'string') {\n resolver(attribute)\n } else {\n const { name, override, valueMap } = attribute\n\n resolver(name, override, valueMap)\n }\n })\n}\n"],"names":["ced","name","componentClass","customElements","get","define","customElementDefine","createResolveAttribute","component","attributeName","overrideProperty","arguments","length","undefined","valueMap","attrValue","getAttribute","attrValueDefined","resolveAttributes","attributes","resolver","forEach","attribute","override"],"mappings":"6JACaA,EAAM,SAACC,GAAY,OAAK,SACnCC,GAEAC,eAAeC,IAAIH,IAASE,eAAeE,OAAOJ,EAAMC,GACzD,EAEYI,EAAsBN,EAItBO,EAAyB,SACpCC,GAAwC,OACrC,SACHC,GAIY,IAFZC,IAAgBC,UAAAC,OAAA,QAAAC,IAAAF,UAAA,KAAAA,UAAA,GAChBG,EAAsCH,UAAAC,OAAAD,EAAAA,kBAAAE,EAEhCE,EAAYP,EAAUQ,aAAaP,GACnCQ,OAAiCJ,IAAdE,EAOzB,OALIL,GAAoBO,QAAiDJ,IAA7BL,EAAUC,KAEpDD,EAAUC,GAAiBK,EAAWA,EAASC,GAAaA,GAGvDE,EACR,EAEYC,EAAoB,SAC/BV,EACAW,GAEA,IAAMC,EAAWb,EAAuBC,GAExCW,EAAWE,SAAQ,SAACC,GAClB,GAAyB,iBAAdA,EACTF,EAASE,OACJ,CACL,IAAQrB,EAA6BqB,EAA7BrB,KAAMsB,EAAuBD,EAAvBC,SAAUT,EAAaQ,EAAbR,SAExBM,EAASnB,EAAMsB,EAAUT,EAC3B,CACF,GACF"}
@@ -1,2 +1,2 @@
1
- export{useApi}from"./core/hooks/useApi.js";export{useToggle}from"./core/hooks/useToggle.js";export{createSafeT,setUseTranslation,useTranslations}from"./core/hooks/useTranslations.js";export{useOutsideClick}from"./core/hooks/useOutsideClick.js";export{useResize}from"./core/hooks/useResize.js";export{isBirthNumberValid}from"./core/utils/helpers/birthnumber.validator.js";export{getMatch,isValidFormat,isValidModulo11,parse,regex}from"./core/utils/helpers/birthnumberCZSKvalidator.js";export{parseCSVdata,validateCSVFile,validateCSVlines,validateJSONFile,validateLineCellTrimmed,validateLineNumColumns,validateSDFFile}from"./core/utils/helpers/fileValidator.js";export{DATE_FORMAT,formatDateToTimestamp,getDate}from"./core/utils/helpers/date.js";export{getDeviceId}from"./core/utils/helpers/deviceInfo.js";export{emailMatch,emailMatcher,regexBuilder}from"./core/utils/helpers/emailMatcher.js";export{cleanCsvLines,formatFilePath}from"./core/utils/helpers/file.js";export{arrayToObjectTree,chunkArray,duplicatesInArray,formatJsonString,formatObj}from"./core/utils/helpers/objectOperations.js";export{debounce,delay,memoize,memoizeComplex,memoizer,nestedTernary}from"./core/utils/helpers/other.js";export{escapeRegExp,fileNameExt,findStringInText,normalizeString,removeWhitespaces,sanitizeId,sanitizePathId,toLowerCase,toUpperCase,truncateText}from"./core/utils/helpers/textValueOperations.js";export{Operation,decrementValue,incerementValue,numberDefined,numberOperation,restrictNumberInLimits,setValue}from"./core/utils/helpers/valueOperations.js";export{keyExtractor,keyExtractorFunction}from"./core/utils/keyExtractor.js";export{dateRangeFormat,getDateTime,getTimeFromNow,getTimeFromNowOriginal,getTimeTo}from"./core/utils/date.js";export{ced,createResolveAttribute,customElementDefine,stringArrayParser,stringObjectParser}from"./core/utils/web-components/coreElements/coreElements.js";export{calculateColors,calculatePercColor,convertHex,convertRGB,defaultFontSize,pxToRem,resolveStyleValue,setDefaultFontSize,toHex}from"./core/ui/utils/style.js";export{FBox}from"./core/ui/components/container/FBox.js";export{Flex,FlexTight,FlexTightStyled,FlexWrapper}from"./core/ui/components/container/Flex.js";export{Placeholder}from"./core/ui/components/container/Placeholder.js";export{Container}from"./core/ui/components/container/Container.js";export{ResizableContainer}from"./core/ui/components/container/ResizableContainer.js";export{Field,FieldWrapper,Select,setIconColor,setIconComponent}from"./core/ui/components/field/Field.js";export{DividerHorizontal,DividerLine,DividerVertical}from"./core/ui/components/dividers/DividerLine.js";export{IconBase}from"./core/ui/components/icon/IconBase.js";export{Icon}from"./core/ui/components/icon/Icon.js";export{IconBaseWC}from"./core/ui/components/icon/IconWC.js";export{EventName}from"./core/constants/ui.constants.js";
1
+ export{useApi}from"./core/hooks/useApi.js";export{useToggle}from"./core/hooks/useToggle.js";export{createSafeT,setUseTranslation,useTranslations}from"./core/hooks/useTranslations.js";export{useOutsideClick}from"./core/hooks/useOutsideClick.js";export{useResize}from"./core/hooks/useResize.js";export{isBirthNumberValid}from"./core/utils/helpers/birthnumber.validator.js";export{getMatch,isValidFormat,isValidModulo11,parse,regex}from"./core/utils/helpers/birthnumberCZSKvalidator.js";export{parseCSVdata,validateCSVFile,validateCSVlines,validateJSONFile,validateLineCellTrimmed,validateLineNumColumns,validateSDFFile}from"./core/utils/helpers/fileValidator.js";export{DATE_FORMAT,formatDateToTimestamp,getDate}from"./core/utils/helpers/date.js";export{getDeviceId}from"./core/utils/helpers/deviceInfo.js";export{emailMatch,emailMatcher,regexBuilder}from"./core/utils/helpers/emailMatcher.js";export{cleanCsvLines,formatFilePath}from"./core/utils/helpers/file.js";export{arrayToObjectTree,chunkArray,duplicatesInArray,formatJsonString,formatObj}from"./core/utils/helpers/objectOperations.js";export{debounce,delay,memoize,memoizeComplex,memoizer,nestedTernary}from"./core/utils/helpers/other.js";export{escapeRegExp,fileNameExt,findStringInText,normalizeString,removeWhitespaces,sanitizeId,sanitizePathId,toLowerCase,toUpperCase,truncateText}from"./core/utils/helpers/textValueOperations.js";export{Operation,decrementValue,incerementValue,numberDefined,numberOperation,restrictNumberInLimits,setValue}from"./core/utils/helpers/valueOperations.js";export{keyExtractor,keyExtractorFunction}from"./core/utils/keyExtractor.js";export{dateRangeFormat,getDateTime,getTimeFromNow,getTimeFromNowOriginal,getTimeTo}from"./core/utils/date.js";export{ced,createResolveAttribute,customElementDefine,resolveAttributes}from"./core/utils/webComponents/webComponent.utils.js";export{calculateColors,calculatePercColor,convertHex,convertRGB,defaultFontSize,pxToRem,resolveStyleValue,setDefaultFontSize,toHex}from"./core/ui/utils/style.js";export{FBox}from"./core/ui/components/container/FBox.js";export{Flex,FlexTight,FlexTightStyled,FlexWrapper}from"./core/ui/components/container/Flex.js";export{Placeholder}from"./core/ui/components/container/Placeholder.js";export{Container}from"./core/ui/components/container/Container.js";export{ResizableContainer}from"./core/ui/components/container/ResizableContainer.js";export{Field,FieldWrapper,Select,setIconColor,setIconComponent}from"./core/ui/components/field/Field.js";export{DividerHorizontal,DividerLine,DividerVertical}from"./core/ui/components/dividers/DividerLine.js";export{IconBase}from"./core/ui/components/icon/IconBase.js";export{Icon}from"./core/ui/components/icon/Icon.js";export{IconBaseWC}from"./core/ui/components/icon/IconWC.js";export{EventName}from"./core/constants/ui.constants.js";
2
2
  //# sourceMappingURL=index.js.map
@@ -1,16 +1,16 @@
1
1
  import { jsx as _jsx } from "react/jsx-runtime";
2
2
  import { memo, useMemo } from 'react';
3
3
  import classes from './icon.module.scss';
4
- export const IconBase = memo(({ iconUrl, minWidth = '1rem', minHeight = '1rem', size, width, height, color = 'currentColor', className = '', children, }) => {
4
+ export const IconBase = memo(({ iconUrl, minWidth = '1rem', minHeight = '1rem', size, fontSize, width, height, color = 'currentColor', className = '', children, }) => {
5
5
  const styles = useMemo(() => ({
6
- '--min-width': minWidth,
7
- '--min-height': minHeight,
6
+ '--min-width': Math.min(minWidth, size || width),
7
+ '--min-height': Math.min(minHeight, size || height),
8
8
  '--width': size || width,
9
9
  '--height': size || height,
10
- ...(size ? { fontSize: size } : {}),
10
+ ...(fontSize ? { fontSize } : {}),
11
11
  ...(iconUrl ? { '--icon-url': `url(${iconUrl})` } : {}),
12
12
  ...(iconUrl ? { '--icon-color': color } : { '--icon-content-color': color }),
13
- }), [minWidth, minHeight, size, width, height, iconUrl, color]);
13
+ }), [minWidth, minHeight, size, width, height, fontSize, iconUrl, color]);
14
14
  return (_jsx("span", { className: `${classes['icon-base']} icon-base ${className}`, style: styles, children: (!iconUrl && children) && children }));
15
15
  });
16
16
  IconBase.displayName = 'IconBase';
@@ -1 +1 @@
1
- {"version":3,"file":"IconBase.js","sourceRoot":"","sources":["../../../../../../../src/core/ui/components/icon/IconBase.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAiB,IAAI,EAAE,OAAO,EAAqB,MAAM,OAAO,CAAA;AAEvE,OAAO,OAAO,MAAM,oBAAoB,CAAA;AAaxC,MAAM,CAAC,MAAM,QAAQ,GAAG,IAAI,CAAe,CAAC,EAC1C,OAAO,EAAE,QAAQ,GAAG,MAAM,EAAE,SAAS,GAAG,MAAM,EAAE,IAAI,EAAE,KAAK,EAAE,MAAM,EAAE,KAAK,GAAG,cAAc,EAAE,SAAS,GAAG,EAAE,EAAE,QAAQ,GACxG,EAAE,EAAE;IACjB,MAAM,MAAM,GAAG,OAAO,CAAC,GAAG,EAAE,CAAC,CAC3B;QACE,aAAa,EAAE,QAAQ;QACvB,cAAc,EAAE,SAAS;QACzB,SAAS,EAAE,IAAI,IAAI,KAAK;QACxB,UAAU,EAAE,IAAI,IAAI,MAAM;QAC1B,GAAG,CAAC,IAAI,CAAC,CAAC,CAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC,CAAC,CAAC,EAAE,CAAC;QACnC,GAAG,CAAC,OAAO,CAAC,CAAC,CAAC,EAAE,YAAY,EAAE,OAAO,OAAO,GAAG,EAAE,CAAC,CAAC,CAAC,EAAE,CAAC;QACvD,GAAG,CAAC,OAAO,CAAC,CAAC,CAAC,EAAE,cAAc,EAAE,KAAK,EAAE,CAAC,CAAC,CAAC,EAAE,sBAAsB,EAAE,KAAK,EAAE,CAAC;KAC7E,CACF,EAAE,CAAC,QAAQ,EAAE,SAAS,EAAE,IAAI,EAAE,KA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AAC,EAAE,CAAC;QACvD,GAAG,CAAC,OAAO,CAAC,CAAC,CAAC,EAAE,cAAc,EAAE,KAAK,EAAE,CAAC,CAAC,CAAC,EAAE,sBAAsB,EAAE,KAAK,EAAE,CAAC;KAC7E,CACF,EAAE,CAAC,QAAQ,EAAE,SAAS,EAAE,IAAI,EAAE,KAAK,EAAE,MAAM,EAAE,QAAQ,EAAE,OAAO,EAAE,KAAK,CAAC,CAAC,CAAA;IAExE,OAAO,CACL,eACE,SAAS,EAAE,GAAI,OAAe,CAAC,WAAW,CAAC,cAAc,SAAS,EAAE,EACpE,KAAK,EAAE,MAAuB,YAE7B,CAAC,CAAC,OAAO,IAAI,QAAQ,CAAC,IAAI,QAAQ,GAC9B,CACR,CAAA;AACH,CAAC,CAAC,CAAA;AAEF,QAAQ,CAAC,WAAW,GAAG,UAAU,CAAA"}
@@ -4,11 +4,12 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key,
4
4
  else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
5
5
  return c > 3 && r && Object.defineProperty(target, key, r), r;
6
6
  };
7
- import { ced } from '../../../utils/web-components/coreElements/coreElements';
7
+ var IconBase_1;
8
+ import { ced, resolveAttributes } from '../../../utils/webComponents/webComponent.utils';
8
9
  import classes from './icon.module.scss';
9
10
  const template = document.createElement('template');
10
11
  template.innerHTML = '<span class="icon-base"></span>';
11
- let IconBase = class IconBase extends HTMLElement {
12
+ let IconBase = IconBase_1 = class IconBase extends HTMLElement {
12
13
  constructor() {
13
14
  super(...arguments);
14
15
  this.render = () => {
@@ -16,13 +17,14 @@ let IconBase = class IconBase extends HTMLElement {
16
17
  if (!this.mainElement) {
17
18
  return;
18
19
  }
20
+ this.classList.add(classes['icon-base-parent']);
19
21
  this.mainElement.classList.add(classes['icon-base']);
20
22
  const styles = {
21
- '--min-width': this.minWidth || 'unset',
22
- '--min-height': this.minHeight || 'unset',
23
+ '--min-width': Math.min(Number(this.minWidth), Number(this.size || this.width)) || 'unset',
24
+ '--min-height': Math.min(Number(this.minHeight), Number(this.size || this.height)) || 'unset',
23
25
  '--width': this.size || this.width || 'unset',
24
26
  '--height': this.size || this.height || 'unset',
25
- ...(this.size ? { 'font-size': this.size || 'unset' } : {}),
27
+ ...(this.fontSize ? { 'font-size': this.fontSize || 'unset' } : {}),
26
28
  ...(this.iconUrl ? { '--icon-url': `url(${this.iconUrl})` } : {}),
27
29
  ...(this.iconUrl ? { '--icon-color': this.color } : { '--icon-content-color': this.color }),
28
30
  };
@@ -31,21 +33,14 @@ let IconBase = class IconBase extends HTMLElement {
31
33
  };
32
34
  }
33
35
  static get observedAttributes() {
34
- return ['iconUrl', 'minWidth', 'minHeight', 'width', 'height', 'size', 'color', 'className'];
36
+ return ['iconUrl', 'minWidth', 'minHeight', 'width', 'height', 'size', 'fontSize', 'color', 'className'];
35
37
  }
36
38
  connectedCallback() {
37
39
  if (this.innerHTML) {
38
40
  this.content = this.content || this.innerHTML || this.getAttribute('content');
39
41
  }
40
42
  this.innerHTML = template.innerHTML;
41
- this.iconUrl = this.iconUrl || this.getAttribute('iconUrl');
42
- this.minWidth = this.minWidth || this.getAttribute('minWidth');
43
- this.minHeight = this.minHeight || this.getAttribute('minHeight');
44
- this.width = this.width || this.getAttribute('width');
45
- this.height = this.height || this.getAttribute('height');
46
- this.size = this.size || this.getAttribute('size');
47
- this.color = this.color || this.getAttribute('color');
48
- this.className = (this.className || this.getAttribute('className'));
43
+ resolveAttributes(this, IconBase_1.observedAttributes);
49
44
  this.render();
50
45
  }
51
46
  attributeChangedCallback(attrName, oldVal, newVal) {
@@ -63,7 +58,7 @@ let IconBase = class IconBase extends HTMLElement {
63
58
  this.render();
64
59
  }
65
60
  };
66
- IconBase = __decorate([
61
+ IconBase = IconBase_1 = __decorate([
67
62
  ced('icon-base')
68
63
  ], IconBase);
69
64
  export default IconBase;
@@ -1 +1 @@
1
- {"version":3,"file":"IconWC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AS,CAAA;QAEnC,iBAAiB,CAAC,IAAI,EAAE,UAAQ,CAAC,kBAAkB,CAAC,CAAA;QAEpD,IAAI,CAAC,MAAM,EAAE,CAAA;IACf,CAAC;IAED,wBAAwB,CAAC,QAAgB,EAAE,MAA8B,EAAE,MAA8B;QACvG,IAAI,QAAQ,KAAK,WAAW,EAAE;YAC5B,IAAI,CAAC,SAAS,GAAI,MAAiB,IAAI,EAAE,CAAA;YACzC,IAAI,IAAI,CAAC,SAAS,EAAE;gBAClB,IAAI,CAAC,SAAS,CAAC,MAAM,CAAC,IAAI,CAAC,SAAS,CAAC,CAAA;gBACrC,IAAI,CAAC,SAAS,CAAC,GAAG,CAAC,IAAI,CAAC,SAAS,CAAC,CAAA;aACnC;YACD,OAAM;SACP;QACD,6DAA6D;QAC7D,aAAa;QACb,IAAI,CAAC,QAAQ,CAAC,GAAG,MAAM,CAAA;QACvB,IAAI,CAAC,MAAM,EAAE,CAAA;IACf,CAAC;CAwBF,CAAA;AA1EoB,QAAQ;IAD5B,GAAG,CAAC,WAAW,CAAC;GACI,QAAQ,CA0E5B;eA1EoB,QAAQ;AAqF7B,MAAM,CAAC,MAAM,UAAU,GAAG;IACxB,UAAU,EAAE,QAAQ;CACrB,CAAA"}
@@ -1,5 +1,5 @@
1
1
  export * from './helpers';
2
2
  export * from './keyExtractor';
3
3
  export * from './date';
4
- export * from './web-components';
4
+ export * from './webComponents';
5
5
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/core/utils/index.ts"],"names":[],"mappings":"AAAA,cAAc,WAAW,CAAA;AACzB,cAAc,gBAAgB,CAAA;AAC9B,cAAc,QAAQ,CAAA;AACtB,cAAc,kBAAkB,CAAA"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/core/utils/index.ts"],"names":[],"mappings":"AAAA,cAAc,WAAW,CAAA;AACzB,cAAc,gBAAgB,CAAA;AAC9B,cAAc,QAAQ,CAAA;AACtB,cAAc,iBAAiB,CAAA"}
@@ -0,0 +1,41 @@
1
+ var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
2
+ var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
3
+ if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
4
+ else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
5
+ return c > 3 && r && Object.defineProperty(target, key, r), r;
6
+ };
7
+ var __metadata = (this && this.__metadata) || function (k, v) {
8
+ if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
9
+ };
10
+ import { ced } from './webComponent.utils';
11
+ let CustomTitle = class CustomTitle extends HTMLElement {
12
+ static get observedAttributes() {
13
+ return ['text'];
14
+ }
15
+ constructor() {
16
+ super();
17
+ this.attachShadow({ mode: 'open' });
18
+ this.shadowRoot.innerHTML = '<div class=\'title\'><b>Title</b><i><slot id=\'subtitle\'></slot></i></div>';
19
+ }
20
+ attributeChangedCallback(attrName, oldVal, newVal) {
21
+ switch (attrName) {
22
+ case 'text': {
23
+ this.text = newVal;
24
+ const mainElement = this.shadowRoot?.querySelector('b');
25
+ if (mainElement) {
26
+ mainElement.innerText = newVal;
27
+ }
28
+ break;
29
+ }
30
+ default: {
31
+ break;
32
+ }
33
+ }
34
+ }
35
+ };
36
+ CustomTitle = __decorate([
37
+ ced('custom-title'),
38
+ __metadata("design:paramtypes", [])
39
+ ], CustomTitle);
40
+ export { CustomTitle };
41
+ //# sourceMappingURL=exampleCustomElement.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"exampleCustomElement.js","sourceRoot":"","sources":["../../../../../../src/core/utils/webComponents/exampleCustomElement.ts"],"names":[],"mappings":";;;;;;;;;AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,sBAAsB,CAAA;AAGnC,IAAM,WAAW,GAAjB,MAAM,WAAY,SAAQ,WAAW;IAG1C,MAAM,KAAK,kBAAkB;QAC3B,OAAO,CAAC,MAAM,CAAC,CAAA;IACjB,CAAC;IAED;QACE,KAAK,EAAE,CAAA;QACP,IAAI,CAAC,YAAY,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC,CAAA;QACnC,IAAI,CAAC,UAAW,CAAC,SAAS,GAAG,6EAA6E,CAAA;IAC5G,CAAC;IAED,wBAAwB,CAAC,QAAgB,EAAE,MAAc,EAAE,MAAc;QACvE,QAAQ,QAAQ,EAAE;YAChB,KAAK,MAAM,CAAC,CAAC;gBACX,IAAI,CAAC,IAAI,GAAG,MAAM,CAAA;gBAClB,MAAM,WAAW,GAAG,IAAI,CAAC,UAAU,EAAE,aAAa,CAAC,GAAG,CAAgB,CAAA;gBAEtE,IAAI,WAAW,EAAE;oBACf,WAAW,CAAC,SAAS,GAAG,MAAM,CAAA;iBAC/B;gBACD,MAAK;aACN;YACD,OAAO,CAAC,CAAC;gBACP,MAAK;aACN;SACF;IACH,CAAC;CACF,CAAA;AA7BY,WAAW;IADvB,GAAG,CAAC,cAAc,CAAC;;GACP,WAAW,CA6BvB;SA7BY,WAAW"}
@@ -0,0 +1,2 @@
1
+ export * from './webComponent.utils';
2
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../src/core/utils/webComponents/index.ts"],"names":[],"mappings":"AAAA,cAAc,sBAAsB,CAAA"}
@@ -0,0 +1,29 @@
1
+ /* custom elements define */
2
+ export const ced = (name) => (componentClass) => {
3
+ customElements.get(name) || customElements.define(name, componentClass);
4
+ };
5
+ export const customElementDefine = ced;
6
+ export const createResolveAttribute = (component) => (attributeName,
7
+ // eslint-disable-next-line default-param-last
8
+ overrideProperty = true, valueMap) => {
9
+ const attrValue = component.getAttribute(attributeName);
10
+ const attrValueDefined = attrValue !== undefined;
11
+ if (overrideProperty && attrValueDefined && component[attributeName] === undefined) {
12
+ // eslint-disable-next-line no-param-reassign
13
+ component[attributeName] = valueMap ? valueMap(attrValue) : attrValue;
14
+ }
15
+ return attrValueDefined;
16
+ };
17
+ export const resolveAttributes = (component, attributes) => {
18
+ const resolver = createResolveAttribute(component);
19
+ attributes.forEach((attribute) => {
20
+ if (typeof attribute === 'string') {
21
+ resolver(attribute);
22
+ }
23
+ else {
24
+ const { name, override, valueMap } = attribute;
25
+ resolver(name, override, valueMap);
26
+ }
27
+ });
28
+ };
29
+ //# sourceMappingURL=webComponent.utils.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"webComponent.utils.js","sourceRoot":"","sources":["../../../../../../src/core/utils/webComponents/webComponent.utils.ts"],"names":[],"mappings":"AAAA,4BAA4B;AAC5B,MAAM,CAAC,MAAM,GAAG,GAAG,CAAC,IAAY,EAAE,EAAE,CAAC,CACnC,cAAkC,EAClC,EAAE;IACF,cAAc,CAAC,GAAG,CAAC,IAAI,CAAC,IAAI,cAAc,CAAC,MAAM,CAAC,IAAI,EAAE,cAAc,CAAC,CAAA;AACzE,CAAC,CAAA;AAED,MAAM,CAAC,MAAM,mBAAmB,GAAG,GAAG,CAAA;AAItC,MAAM,CAAC,MAAM,sBAAsB,GAAG,CACpC,SAAwC,EACxC,EAAE,CAAC,CACH,aAAqB;AACrB,8CAA8C;AAC9C,gBAAgB,GAAG,IAAI,EACvB,QAAsC,EAC7B,EAAE;IACX,MAAM,SAAS,GAAG,SAAS,CAAC,YAAY,CAAC,aAAa,CAAC,CAAA;IACvD,MAAM,gBAAgB,GAAG,SAAS,KAAK,SAAS,CAAA;IAEhD,IAAI,gBAAgB,IAAI,gBAAgB,IAAI,SAAS,CAAC,aAAa,CAAC,KAAK,SAAS,EAAE;QAClF,6CAA6C;QAC7C,SAAS,CAAC,aAAa,CAAC,GAAG,QAAQ,CAAC,CAAC,CAAC,QAAQ,CAAC,SAAS,CAAC,CAAC,CAAC,CAAC,SAAS,CAAA;KACt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