@sme.up/ketchup 5.0.0 → 5.2.1-SNAPSHOT

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 (224) hide show
  1. package/README.md +1 -1
  2. package/dist/cjs/{cell-utils-720be0c8.js → cell-utils-d96b2993.js} +4 -4
  3. package/dist/cjs/{f-button-dbf3cd3a.js → f-button-2b9b99b1.js} +2 -2
  4. package/dist/cjs/{f-cell-93d984ad.js → f-cell-8351cb84.js} +8 -96
  5. package/dist/cjs/{f-chip-438213eb.js → f-chip-df59e1b0.js} +3 -3
  6. package/dist/cjs/{f-image-21865ab7.js → f-image-12bab3b5.js} +2 -2
  7. package/dist/cjs/f-text-field-e7c35b5b.js +94 -0
  8. package/dist/cjs/f-text-field-mdc-a67f5dfe.js +2852 -0
  9. package/dist/cjs/{index-ab119fad.js → index-eb556444.js} +6 -1
  10. package/dist/cjs/ketchup.cjs.js +3 -3
  11. package/dist/cjs/kup-accordion.cjs.entry.js +5 -5
  12. package/dist/cjs/kup-autocomplete_27.cjs.entry.js +641 -3331
  13. package/dist/cjs/kup-calendar.cjs.entry.js +8 -8
  14. package/dist/cjs/kup-cell.cjs.entry.js +9 -8
  15. package/dist/cjs/kup-dash-list.cjs.entry.js +5 -5
  16. package/dist/cjs/kup-dash_2.cjs.entry.js +5 -5
  17. package/dist/cjs/kup-drawer.cjs.entry.js +8 -5
  18. package/dist/cjs/kup-echart.cjs.entry.js +210 -60
  19. package/dist/cjs/kup-field.cjs.entry.js +3 -3
  20. package/dist/cjs/kup-iframe.cjs.entry.js +4 -4
  21. package/dist/cjs/kup-lazy.cjs.entry.js +4 -4
  22. package/dist/cjs/kup-magic-box.cjs.entry.js +7 -7
  23. package/dist/cjs/{kup-manager-09c0c1fc.js → kup-manager-5c03da64.js} +3061 -2642
  24. package/dist/cjs/kup-nav-bar.cjs.entry.js +6 -6
  25. package/dist/cjs/kup-numeric-picker.cjs.entry.js +423 -0
  26. package/dist/cjs/kup-photo-frame.cjs.entry.js +179 -0
  27. package/dist/cjs/kup-probe.cjs.entry.js +3 -3
  28. package/dist/cjs/kup-qlik.cjs.entry.js +3 -3
  29. package/dist/cjs/kup-snackbar.cjs.entry.js +6 -6
  30. package/dist/cjs/loader.cjs.js +3 -3
  31. package/dist/cjs/{utils-a60ab5fa.js → utils-e99921c1.js} +4 -38
  32. package/dist/collection/assets/card.js +30 -30
  33. package/dist/collection/assets/data-table.js +24 -74
  34. package/dist/collection/assets/echart.js +481 -0
  35. package/dist/collection/assets/index.js +87 -79
  36. package/dist/collection/assets/kupdata.js +29 -41
  37. package/dist/collection/assets/kuptooltip.js +608 -0
  38. package/dist/collection/assets/list.js +6 -6
  39. package/dist/collection/assets/nav-bar.js +4 -4
  40. package/dist/collection/assets/probe.js +18 -18
  41. package/dist/collection/collection-manifest.json +3 -1
  42. package/dist/collection/components/kup-autocomplete/kup-autocomplete.js +4 -4
  43. package/dist/collection/components/kup-box/kup-box.js +9 -9
  44. package/dist/collection/components/kup-button-list/kup-button-list.js +4 -4
  45. package/dist/collection/components/kup-card/built-in/kup-card-built-in.js +10 -0
  46. package/dist/collection/components/kup-card/built-in/kup-card-column-drop-menu.js +20 -20
  47. package/dist/collection/components/kup-card/built-in/kup-card-numeric.js +153 -0
  48. package/dist/collection/components/kup-card/kup-card.css +35 -0
  49. package/dist/collection/components/kup-card/kup-card.js +1 -0
  50. package/dist/collection/components/kup-chip/kup-chip.js +4 -4
  51. package/dist/collection/components/kup-combobox/kup-combobox.js +5 -5
  52. package/dist/collection/components/kup-data-table/kup-data-table-declarations.js +0 -2
  53. package/dist/collection/components/kup-data-table/kup-data-table-helper.js +31 -32
  54. package/dist/collection/components/kup-data-table/kup-data-table-state.js +1 -1
  55. package/dist/collection/components/kup-data-table/kup-data-table.js +112 -159
  56. package/dist/collection/components/kup-date-picker/kup-date-picker.js +1 -1
  57. package/dist/collection/components/kup-drawer/kup-drawer.js +4 -1
  58. package/dist/collection/components/kup-dropdown-button/kup-dropdown-button.css +3 -3
  59. package/dist/collection/components/kup-dropdown-button/kup-dropdown-button.js +14 -14
  60. package/dist/collection/components/kup-echart/kup-echart-declarations.js +3 -0
  61. package/dist/collection/components/kup-echart/kup-echart.js +246 -58
  62. package/dist/collection/components/kup-image/assets/svg/instagram.svg +1 -0
  63. package/dist/collection/components/kup-image/assets/svg/pinterest.svg +1 -0
  64. package/dist/collection/components/kup-image/assets/svg/reddit.svg +1 -0
  65. package/dist/collection/components/kup-list/kup-list-helper.js +26 -26
  66. package/dist/collection/components/kup-list/kup-list.css +35 -3
  67. package/dist/collection/components/kup-list/kup-list.js +52 -44
  68. package/dist/collection/components/kup-magic-box/kup-magic-box.js +3 -3
  69. package/dist/collection/components/kup-nav-bar/kup-nav-bar.js +2 -2
  70. package/dist/collection/components/kup-numeric-picker/kup-numeric-picker-declarations.js +16 -0
  71. package/dist/collection/components/kup-numeric-picker/kup-numeric-picker.css +50 -0
  72. package/dist/collection/components/kup-numeric-picker/kup-numeric-picker.js +895 -0
  73. package/dist/collection/components/kup-photo-frame/kup-photo-frame-declarations.js +10 -0
  74. package/dist/collection/components/kup-photo-frame/kup-photo-frame.css +70 -0
  75. package/dist/collection/components/kup-photo-frame/kup-photo-frame.js +382 -0
  76. package/dist/collection/components/kup-tab-bar/kup-tab-bar.css +1 -1
  77. package/dist/collection/components/kup-time-picker/kup-time-picker.js +8 -8
  78. package/dist/collection/components/kup-tree/kup-tree.js +25 -38
  79. package/dist/collection/f-components/f-paginator/f-paginator.js +6 -6
  80. package/dist/collection/managers/kup-data/kup-data-cell-helper.js +2 -2
  81. package/dist/collection/managers/kup-data/kup-data-column-helper.js +27 -3
  82. package/dist/collection/managers/kup-data/kup-data-declarations.js +2 -1
  83. package/dist/collection/managers/kup-data/kup-data-node-helper.js +1 -1
  84. package/dist/collection/managers/kup-data/kup-data-row-helper.js +2 -2
  85. package/dist/collection/managers/kup-data/kup-data.js +337 -155
  86. package/dist/collection/managers/kup-dates/kup-dates.js +2 -2
  87. package/dist/collection/managers/kup-debug/kup-debug.js +7 -6
  88. package/dist/collection/managers/kup-dynamic-position/kup-dynamic-position.js +1 -1
  89. package/dist/collection/managers/kup-language/kup-language.js +2 -2
  90. package/dist/collection/managers/kup-manager/kup-manager.js +25 -1
  91. package/dist/collection/managers/kup-math/kup-math-declarations.js +13 -0
  92. package/dist/collection/managers/kup-math/kup-math-helper.js +39 -0
  93. package/dist/collection/managers/kup-math/kup-math.js +161 -0
  94. package/dist/collection/managers/kup-objects/kup-objects.js +48 -1
  95. package/dist/collection/managers/kup-theme/kup-theme-declarations.js +1 -0
  96. package/dist/collection/managers/kup-theme/kup-theme.js +2 -2
  97. package/dist/collection/managers/kup-tooltip/kup-tooltip-declarations.js +1 -0
  98. package/dist/collection/managers/kup-tooltip/kup-tooltip.js +191 -0
  99. package/dist/collection/types/GenericTypes.js +1 -0
  100. package/dist/collection/utils/cell-utils.js +2 -3
  101. package/dist/collection/utils/kup-column-menu/kup-column-menu.js +1 -1
  102. package/dist/collection/utils/utils.js +3 -74
  103. package/dist/esm/{cell-utils-b80ccb8c.js → cell-utils-f4bdbbc8.js} +4 -4
  104. package/dist/esm/{f-button-9e835467.js → f-button-54a49fd8.js} +2 -2
  105. package/dist/esm/{f-cell-f8bb2e04.js → f-cell-d5dac50b.js} +8 -95
  106. package/dist/esm/{f-chip-953c6915.js → f-chip-a3035b4b.js} +3 -3
  107. package/dist/esm/{f-image-78c5265e.js → f-image-d32465e3.js} +2 -2
  108. package/dist/esm/f-text-field-c25cc63f.js +92 -0
  109. package/dist/esm/f-text-field-mdc-9fbbefc3.js +2850 -0
  110. package/dist/esm/{index-78f3699d.js → index-baeab1ac.js} +6 -2
  111. package/dist/esm/ketchup.js +3 -3
  112. package/dist/esm/kup-accordion.entry.js +5 -5
  113. package/dist/esm/kup-autocomplete_27.entry.js +625 -3315
  114. package/dist/esm/kup-calendar.entry.js +8 -8
  115. package/dist/esm/kup-cell.entry.js +9 -8
  116. package/dist/esm/kup-dash-list.entry.js +5 -5
  117. package/dist/esm/kup-dash_2.entry.js +5 -5
  118. package/dist/esm/kup-drawer.entry.js +8 -5
  119. package/dist/esm/kup-echart.entry.js +210 -60
  120. package/dist/esm/kup-field.entry.js +3 -3
  121. package/dist/esm/kup-iframe.entry.js +4 -4
  122. package/dist/esm/kup-lazy.entry.js +4 -4
  123. package/dist/esm/kup-magic-box.entry.js +7 -7
  124. package/dist/esm/{kup-manager-bba62291.js → kup-manager-9316a184.js} +3062 -2642
  125. package/dist/esm/kup-nav-bar.entry.js +6 -6
  126. package/dist/esm/kup-numeric-picker.entry.js +419 -0
  127. package/dist/esm/kup-photo-frame.entry.js +175 -0
  128. package/dist/esm/kup-probe.entry.js +3 -3
  129. package/dist/esm/kup-qlik.entry.js +3 -3
  130. package/dist/esm/kup-snackbar.entry.js +6 -6
  131. package/dist/esm/loader.js +3 -3
  132. package/dist/esm/{utils-d1569956.js → utils-f24319a0.js} +5 -37
  133. package/dist/ketchup/assets/svg/instagram.svg +1 -0
  134. package/dist/ketchup/assets/svg/pinterest.svg +1 -0
  135. package/dist/ketchup/assets/svg/reddit.svg +1 -0
  136. package/dist/ketchup/ketchup.esm.js +1 -1
  137. package/dist/ketchup/p-09d708c4.entry.js +1 -0
  138. package/dist/ketchup/p-11e72a8c.entry.js +1 -0
  139. package/dist/ketchup/p-12773ca8.js +9 -0
  140. package/dist/ketchup/p-203d6295.entry.js +1 -0
  141. package/dist/ketchup/p-34748c91.js +1 -0
  142. package/dist/ketchup/p-34b74425.js +1 -0
  143. package/dist/ketchup/p-40f97429.js +1 -0
  144. package/dist/ketchup/p-4173422f.entry.js +1 -0
  145. package/dist/ketchup/p-41741c28.entry.js +1 -0
  146. package/dist/ketchup/p-44192f30.entry.js +1 -0
  147. package/dist/ketchup/{p-ebf4cf56.js → p-44f8da2a.js} +1 -1
  148. package/dist/ketchup/{p-fa540f82.js → p-4f56932b.js} +1 -1
  149. package/dist/ketchup/p-669bde31.js +1 -0
  150. package/dist/ketchup/p-67842f1e.entry.js +1 -0
  151. package/dist/ketchup/{p-f993f813.js → p-7a74ad17.js} +1 -1
  152. package/dist/ketchup/p-7ba8fa4a.entry.js +39 -0
  153. package/dist/ketchup/p-7de0d7e1.js +1 -0
  154. package/dist/ketchup/p-8418e8fa.entry.js +1 -0
  155. package/dist/ketchup/p-96bf19aa.entry.js +1 -0
  156. package/dist/ketchup/p-9a61d8dc.entry.js +1 -0
  157. package/dist/ketchup/p-b0ddcce9.entry.js +9 -0
  158. package/dist/ketchup/{p-aa27f9f7.entry.js → p-b6c21223.entry.js} +2 -2
  159. package/dist/ketchup/p-bb8844bf.entry.js +1 -0
  160. package/dist/ketchup/p-c58a2a81.entry.js +1 -0
  161. package/dist/ketchup/p-ca3d585b.entry.js +1 -0
  162. package/dist/ketchup/p-e6709c26.entry.js +1 -0
  163. package/dist/ketchup/p-e8e3c9da.entry.js +1 -0
  164. package/dist/ketchup/p-ecb7069b.js +135 -0
  165. package/dist/types/components/kup-button-list/kup-button-list-declarations.d.ts +2 -1
  166. package/dist/types/components/kup-card/built-in/kup-card-built-in.d.ts +7 -0
  167. package/dist/types/components/kup-card/built-in/kup-card-numeric.d.ts +2 -0
  168. package/dist/types/components/kup-card/kup-card-declarations.d.ts +26 -1
  169. package/dist/types/components/kup-data-table/kup-data-table-declarations.d.ts +2 -2
  170. package/dist/types/components/kup-data-table/kup-data-table-state.d.ts +1 -1
  171. package/dist/types/components/kup-data-table/kup-data-table.d.ts +7 -15
  172. package/dist/types/components/kup-dropdown-button/kup-dropdown-button.d.ts +1 -1
  173. package/dist/types/components/kup-echart/kup-echart-declarations.d.ts +3 -0
  174. package/dist/types/components/kup-echart/kup-echart.d.ts +12 -1
  175. package/dist/types/components/kup-list/kup-list-declarations.d.ts +3 -7
  176. package/dist/types/components/kup-list/kup-list-helper.d.ts +6 -6
  177. package/dist/types/components/kup-list/kup-list.d.ts +2 -2
  178. package/dist/types/components/kup-numeric-picker/kup-numeric-picker-declarations.d.ts +19 -0
  179. package/dist/types/components/kup-numeric-picker/kup-numeric-picker.d.ts +121 -0
  180. package/dist/types/components/kup-photo-frame/kup-photo-frame-declarations.d.ts +9 -0
  181. package/dist/types/components/kup-photo-frame/kup-photo-frame.d.ts +61 -0
  182. package/dist/types/components.d.ts +249 -28
  183. package/dist/types/managers/kup-data/kup-data-column-helper.d.ts +9 -1
  184. package/dist/types/managers/kup-data/kup-data-declarations.d.ts +4 -25
  185. package/dist/types/managers/kup-data/kup-data-node-helper.d.ts +1 -1
  186. package/dist/types/managers/kup-data/kup-data.d.ts +63 -27
  187. package/dist/types/managers/kup-manager/kup-manager-declarations.d.ts +21 -0
  188. package/dist/types/managers/kup-manager/kup-manager.d.ts +4 -0
  189. package/dist/types/managers/kup-math/kup-math-declarations.d.ts +27 -0
  190. package/dist/types/managers/kup-math/kup-math-helper.d.ts +17 -0
  191. package/dist/types/managers/kup-math/kup-math.d.ts +61 -0
  192. package/dist/types/managers/kup-objects/kup-objects.d.ts +22 -0
  193. package/dist/types/managers/kup-tooltip/kup-tooltip-declarations.d.ts +8 -0
  194. package/dist/types/managers/kup-tooltip/kup-tooltip.d.ts +40 -0
  195. package/dist/types/types/GenericTypes.d.ts +1 -0
  196. package/dist/types/utils/utils.d.ts +0 -18
  197. package/package.json +3 -3
  198. package/CHANGELOG.md +0 -5
  199. package/dist/collection/managers/kup-data/kup-data-dataset-helper.js +0 -262
  200. package/dist/collection/managers/kup-data/kup-data-helper.js +0 -61
  201. package/dist/collection/utils/state-utils.js +0 -9
  202. package/dist/ketchup/p-0032a782.entry.js +0 -1
  203. package/dist/ketchup/p-18c4d083.entry.js +0 -1
  204. package/dist/ketchup/p-199c972e.entry.js +0 -1
  205. package/dist/ketchup/p-29800a2e.js +0 -1
  206. package/dist/ketchup/p-34aa8d8a.entry.js +0 -1
  207. package/dist/ketchup/p-542279e9.entry.js +0 -1
  208. package/dist/ketchup/p-5b26a7a8.entry.js +0 -39
  209. package/dist/ketchup/p-5c97e7ab.js +0 -1
  210. package/dist/ketchup/p-6817ca85.entry.js +0 -1
  211. package/dist/ketchup/p-76e674ca.entry.js +0 -1
  212. package/dist/ketchup/p-78aa6f1b.js +0 -1
  213. package/dist/ketchup/p-842b66aa.entry.js +0 -1
  214. package/dist/ketchup/p-894981c0.entry.js +0 -143
  215. package/dist/ketchup/p-8ac2fa75.entry.js +0 -1
  216. package/dist/ketchup/p-907c9e11.entry.js +0 -1
  217. package/dist/ketchup/p-9ae9149b.entry.js +0 -1
  218. package/dist/ketchup/p-b0d1bdd8.js +0 -9
  219. package/dist/ketchup/p-e1e4c951.entry.js +0 -1
  220. package/dist/ketchup/p-eba369d9.entry.js +0 -1
  221. package/dist/ketchup/p-ed0b8666.js +0 -1
  222. package/dist/types/managers/kup-data/kup-data-dataset-helper.d.ts +0 -42
  223. package/dist/types/managers/kup-data/kup-data-helper.d.ts +0 -11
  224. package/dist/types/utils/state-utils.d.ts +0 -1
@@ -1,6 +1,6 @@
1
- import { r as registerInstance, c as createEvent, f as forceUpdate, h, H as Host, g as getElement } from './index-78f3699d.js';
2
- import { k as kupManagerInstance } from './kup-manager-bba62291.js';
3
- import { g as getProps, s as setProps } from './utils-d1569956.js';
1
+ import { r as registerInstance, c as createEvent, f as forceUpdate, h, H as Host, g as getElement } from './index-baeab1ac.js';
2
+ import { k as kupManagerInstance } from './kup-manager-9316a184.js';
3
+ import { g as getProps, s as setProps } from './utils-f24319a0.js';
4
4
  import { c as componentWrapperId } from './GenericVariables-665de00a.js';
5
5
 
6
6
  const navbarClass = 'nav-bar';
@@ -27,7 +27,7 @@ var KupNavBarStyling;
27
27
 
28
28
  const kupNavBarCss = ":host{--kup_navbar_box_shadow:var(\n --kup-navbar-box-shadow,\n 0 2px 4px -1px rgba(128, 128, 128, 0.2),\n 0 4px 5px 0 rgba(128, 128, 128, 0.14),\n 0 1px 10px 0 rgba(128, 128, 128, 0.12)\n );--kup_navbar_padding:var(--kup-navbar-padding, 8px 12px);--kup_navbar_position:var(--kup-navbar-position, fixed);--kup_navbar_short_border_radius:var(\n --kup-navbar-short-border-radius,\n 0px 0px 24px\n );--kup_navbar_short_box_shadow:var(\n --kup-navbar-short-box-shadow,\n rgba(128, 128, 128, 0.2) 0px 2px 4px -1px,\n rgba(128, 128, 128, 0.14) 0px 4px 5px 0px,\n rgba(128, 128, 128, 0.12) 0px 1px 10px 0px\n );--kup_navbar_short_width:var(--kup-navbar-short-width, 9em);--kup_navbar_transition:var(--kup-navbar-transition, 250ms);--kup_navbar_width:var(--kup-navbar-width, 100%);box-sizing:border-box;font-size:var(--kup-font-size);left:0;position:var(--kup_navbar_position);top:0;transition:all var(--kup_navbar_transition);width:var(--kup_navbar_width);z-index:var(--kup-navbar-zindex)}#kup-component{width:var(--kup_navbar_width)}.nav-bar{background-color:var(--kup-navbar-background-color);box-shadow:var(--kup_navbar_box_shadow);box-sizing:border-box;color:var(--kup-navbar-color);display:flex;flex-direction:column;justify-content:space-between;width:var(--kup_navbar_width)}.nav-bar--short{border-radius:var(--kup_navbar_short_border_radius);box-shadow:var(--kup_navbar_short_box_shadow);width:var(--kup_navbar_short_width)}.nav-bar--short .nav-bar__section{padding:0 0.5em}.nav-bar--short section{overflow:hidden}.nav-bar ::slotted(*){--kup-button-primary-color:var(--kup-navbar-color);--kup-button-primary-color-rgb:var(--kup-navbar-color-rgb);--kup-button-primary-color-h:var(--kup-navbar-color-h);--kup-button-primary-color-s:var(--kup-navbar-color-s);--kup-button-primary-color-l:var(--kup-navbar-color-l);--kup-switch-label-color:var(--kup-navbar-color);--kup-switch-primary-color:var(--kup-navbar-color);--kup-switch-primary-color-rgb:var(--kup-navbar-color-rgb);--kup-textfield-color:var(--kup-navbar-color);--kup-textfield-color-rgb:var(--kup-navbar-color-rgb);--kup-tree-color:var(--kup-navbar-color);--kup-tree-color-rgb:var(--kup-navbar-color-rgb);color:var(--kup-navbar-color);fill:var(--kup-navbar-color);margin:0}.nav-bar__row{box-sizing:border-box;display:flex;height:var(--kup-navbar-height);position:relative;width:var(--kup_navbar_width)}.nav-bar__section{align-items:center;display:inline-flex;flex:1 1 auto;min-width:0;padding:var(--kup_navbar_padding)}.nav-bar__section--align-start{flex-shrink:5;justify-content:flex-start;order:-1}.nav-bar__section--align-end{justify-content:flex-end;order:1;overflow:hidden}::slotted(*){--kup-button-primary-color:var(--kup-navbar-color);--kup-button-primary-color-rgb:var(--kup-navbar-color-rgb);--kup-button-primary-color-h:var(--kup-navbar-color-h);--kup-button-primary-color-s:var(--kup-navbar-color-s);--kup-button-primary-color-l:var(--kup-navbar-color-l);--kup-switch-label-color:var(--kup-navbar-color);--kup-switch-primary-color:var(--kup-navbar-color);--kup-switch-primary-color-rgb:var(--kup-navbar-color-rgb);--kup-textfield-color:var(--kup-navbar-color);--kup-textfield-color-rgb:var(--kup-navbar-color-rgb);--kup-textfield-primary-color:var(--kup-navbar-color);--kup-textfield-primary-color-rgb:var(--kup-navbar-color-rgb);--kup-tree-color:var(--kup-navbar-color);--kup-tree-color-rgb:var(--kup-navbar-color-rgb);color:var(--kup-navbar-color);fill:var(--kup-navbar-color);margin:0}";
29
29
 
30
- let KupNavBar = class {
30
+ const KupNavBar = class {
31
31
  constructor(hostRef) {
32
32
  registerInstance(this, hostRef);
33
33
  this.kupNavbarReady = createEvent(this, "kup-navbar-ready", 6);
@@ -110,8 +110,8 @@ let KupNavBar = class {
110
110
  }
111
111
  }
112
112
  return [
113
- h("section", { class: `${navbarClass}__section ${navbarClass}__section--align-start` }, leftSlots),
114
- h("section", { class: `${navbarClass}__section ${navbarClass}__section--align-end`, role: "toolbar" }, rightSlots),
113
+ leftSlots.length ? (h("section", { class: `${navbarClass}__section ${navbarClass}__section--align-start` }, leftSlots)) : null,
114
+ rightSlots.length ? (h("section", { class: `${navbarClass}__section ${navbarClass}__section--align-end`, role: "toolbar" }, rightSlots)) : null,
115
115
  ];
116
116
  }
117
117
  /*-------------------------------------------------*/
@@ -0,0 +1,419 @@
1
+ import { r as registerInstance, c as createEvent, f as forceUpdate, h, H as Host, g as getElement } from './index-baeab1ac.js';
2
+ import { k as kupManagerInstance, K as KupDynamicPositionPlacement, x as KupCardFamily } from './kup-manager-9316a184.js';
3
+ import { c as componentWrapperId } from './GenericVariables-665de00a.js';
4
+ import { F as FTextField } from './f-text-field-c25cc63f.js';
5
+ import { F as FTextFieldMDC } from './f-text-field-mdc-9fbbefc3.js';
6
+ import './tslib.es6-8f2d44b6.js';
7
+ import './component-c4eb6153.js';
8
+
9
+ /**
10
+ * Props of the kup-numeric-picker component.
11
+ * Used to export every prop in an object.
12
+ */
13
+ var KupNumericPickerProps;
14
+ (function (KupNumericPickerProps) {
15
+ KupNumericPickerProps["customStyle"] = "Custom style of the component.";
16
+ KupNumericPickerProps["data"] = "Props of the sub-components.";
17
+ KupNumericPickerProps["decimals"] = "Defaults at false. When set to true, the component has decimals.";
18
+ KupNumericPickerProps["disabled"] = "Defaults at false. When set to true, the component is disabled.";
19
+ KupNumericPickerProps["initialValue"] = "Sets the initial value of the component";
20
+ KupNumericPickerProps["maxDecimals"] = "when set, the component allows you to enter decimals with a maximum of characters.";
21
+ KupNumericPickerProps["maxIntegers"] = "When set, the component allows you to enter integer numbers with a maximum of characters.";
22
+ KupNumericPickerProps["maxLength"] = "When set, the component allows you to enter numbers with a maximum of characters, including decimals.";
23
+ KupNumericPickerProps["negative"] = "Defaults at false. When set to true, the component has negative number.";
24
+ })(KupNumericPickerProps || (KupNumericPickerProps = {}));
25
+
26
+ const kupNumericPickerCss = ":host{display:block;font-size:var(--kup-font-size)}.f-text-field{position:relative}:host(.kup-full-height){height:100%}:host(.kup-full-height) #kup-component{height:100%}:host(.kup-full-width){width:100%}:host(.kup-full-width) #kup-component{width:100%}:host(.kup-danger){--kup-textfield-primary-color:var(--kup-danger-color);--kup-textfield-primary-color-rgb:var(--kup-danger-color-rgb)}:host(.kup-info){--kup-textfield-primary-color:var(--kup-info-color);--kup-textfield-primary-color-rgb:var(--kup-info-color-rgb)}:host(.kup-secondary){--kup-textfield-primary-color:var(--kup-secondary-color);--kup-textfield-primary-color-rgb:var(--kup-secondary-color-rgb)}:host(.kup-success){--kup-textfield-primary-color:var(--kup-success-color);--kup-textfield-primary-color-rgb:var(--kup-success-color-rgb)}:host(.kup-warning){--kup-textfield-primary-color:var(--kup-warning-color);--kup-textfield-primary-color-rgb:var(--kup-warning-color-rgb)}";
27
+
28
+ const KupNumericPicker = class {
29
+ constructor(hostRef) {
30
+ registerInstance(this, hostRef);
31
+ this.kupBlur = createEvent(this, "kup-numericpicker-blur", 6);
32
+ this.kupChange = createEvent(this, "kup-numericpicker-change", 6);
33
+ this.kupClick = createEvent(this, "kup-numericpicker-click", 6);
34
+ this.kupFocus = createEvent(this, "kup-numericpicker-focus", 6);
35
+ this.kupInput = createEvent(this, "kup-numericpicker-input", 6);
36
+ this.kupIconClick = createEvent(this, "kup-numericpicker-iconclick", 6);
37
+ this.kupItemClick = createEvent(this, "kup-numericpicker-itemclick", 6);
38
+ this.kupTextFieldSubmit = createEvent(this, "kup-numericpicker-textfieldsubmit", 6);
39
+ this.kupClearIconClick = createEvent(this, "kup-numericpicker-cleariconclick", 6);
40
+ /*-------------------------------------------------*/
41
+ /* S t a t e s */
42
+ /*-------------------------------------------------*/
43
+ this.stateSwitcher = false;
44
+ this.value = '';
45
+ /*-------------------------------------------------*/
46
+ /* P r o p s */
47
+ /*-------------------------------------------------*/
48
+ /**
49
+ * Custom style of the component.
50
+ * @default ""
51
+ * @see https://ketchup.smeup.com/ketchup-showcase/#/customization
52
+ */
53
+ this.customStyle = '';
54
+ /**
55
+ * Props of the sub-components.
56
+ * @default null
57
+ */
58
+ this.data = null;
59
+ /**
60
+ * Defaults at false. When set to true, the component has decimals.
61
+ * @default false
62
+ */
63
+ this.decimals = false;
64
+ /**
65
+ * Defaults at false. When set to true, the component is disabled.
66
+ * @default false
67
+ */
68
+ this.disabled = false;
69
+ /**
70
+ * Sets the initial value of the component
71
+ * @default ""
72
+ */
73
+ this.initialValue = '';
74
+ /**
75
+ * when set, the component allows you to enter decimals with a maximum of characters.
76
+ * @default null
77
+ */
78
+ this.maxDecimals = null;
79
+ /**
80
+ * When set, the component allows you to enter integer numbers with a maximum of characters.
81
+ * @default null
82
+ */
83
+ this.maxIntegers = null;
84
+ /**
85
+ * When set, the component allows you to enter numbers with a maximum of characters, including decimals.
86
+ * @default null
87
+ */
88
+ this.maxLength = null;
89
+ /**
90
+ * Defaults at false. When set to true, the component has negative number.
91
+ * @default false
92
+ */
93
+ this.negative = false;
94
+ /*-------------------------------------------------*/
95
+ /* I n t e r n a l V a r i a b l e s */
96
+ /*-------------------------------------------------*/
97
+ /**
98
+ * Instance of the KupManager class.
99
+ */
100
+ this.kupManager = kupManagerInstance();
101
+ this.textfieldEl = null;
102
+ this.pickerContainerEl = null;
103
+ this.pickerEl = {
104
+ value: new Date().toISOString(),
105
+ date: new Date(),
106
+ };
107
+ this.clickCb = null;
108
+ }
109
+ onKupPickerItemClick(value) {
110
+ this.setPickerValueSelected(value);
111
+ this.kupChange.emit({
112
+ comp: this,
113
+ id: this.rootElement.id,
114
+ value: this.value,
115
+ });
116
+ this.kupItemClick.emit({
117
+ comp: this,
118
+ id: this.rootElement.id,
119
+ value: this.value,
120
+ });
121
+ this.setFocus();
122
+ }
123
+ onKupClearIconClick() {
124
+ this.setPickerValueSelected('');
125
+ this.kupChange.emit({
126
+ comp: this,
127
+ id: this.rootElement.id,
128
+ value: this.value,
129
+ });
130
+ this.kupClearIconClick.emit({
131
+ comp: this,
132
+ id: this.rootElement.id,
133
+ });
134
+ }
135
+ onKupBlur() {
136
+ this.kupBlur.emit({
137
+ id: this.rootElement.id,
138
+ value: this.value,
139
+ comp: this,
140
+ });
141
+ }
142
+ onKupChange(e) {
143
+ this.refreshPickerValue(e.target.value, this.kupChange);
144
+ }
145
+ onKupClick() {
146
+ this.kupClick.emit({
147
+ comp: this,
148
+ id: this.rootElement.id,
149
+ value: this.value,
150
+ });
151
+ }
152
+ onKupFocus() {
153
+ this.kupFocus.emit({
154
+ comp: this,
155
+ id: this.rootElement.id,
156
+ value: this.value,
157
+ });
158
+ }
159
+ onKupInput(e) {
160
+ this.refreshPickerValue(e.target.value, this.kupInput, true);
161
+ }
162
+ onkupTextFieldSubmit(e) {
163
+ if (e.key === 'Enter') {
164
+ this.refreshPickerValue(e.target.value, this.kupTextFieldSubmit);
165
+ }
166
+ }
167
+ onKupIconClick() {
168
+ if (this.isPickerOpened()) {
169
+ this.closePicker();
170
+ }
171
+ else {
172
+ this.openPicker();
173
+ }
174
+ this.kupIconClick.emit({
175
+ comp: this,
176
+ id: this.rootElement.id,
177
+ value: this.value,
178
+ });
179
+ }
180
+ /*-------------------------------------------------*/
181
+ /* L i s t e n e r s */
182
+ /*-------------------------------------------------*/
183
+ listenKeyup(e) {
184
+ if (this.isPickerOpened()) {
185
+ if (e.key === 'Escape') {
186
+ this.closePicker();
187
+ }
188
+ if (e.key === 'Enter') {
189
+ this.setPickerValueSelected();
190
+ }
191
+ }
192
+ }
193
+ /*-------------------------------------------------*/
194
+ /* P u b l i c M e t h o d s */
195
+ /*-------------------------------------------------*/
196
+ /**
197
+ * Retrieves the component's value.
198
+ * @returns {string} Value of the component.
199
+ */
200
+ async getValue() {
201
+ return this.value;
202
+ }
203
+ /**
204
+ * Used to retrieve component's props values.
205
+ * @param {boolean} descriptions - When provided and true, the result will be the list of props with their description.
206
+ * @returns {Promise<GenericObject>} List of props as object, each key will be a prop.
207
+ */
208
+ async getProps(descriptions) {
209
+ let props = {};
210
+ if (descriptions) {
211
+ props = KupNumericPickerProps;
212
+ }
213
+ else {
214
+ for (const key in KupNumericPickerProps) {
215
+ if (Object.prototype.hasOwnProperty.call(KupNumericPickerProps, key)) {
216
+ props[key] = this[key];
217
+ }
218
+ }
219
+ }
220
+ return props;
221
+ }
222
+ /**
223
+ * This method is used to trigger a new render of the component.
224
+ */
225
+ async refresh() {
226
+ forceUpdate(this);
227
+ }
228
+ /**
229
+ * Sets the focus to the component.
230
+ */
231
+ async setFocus() {
232
+ if (this.textfieldEl != null) {
233
+ this.textfieldEl.focus();
234
+ }
235
+ }
236
+ /**
237
+ * Sets the component's value.
238
+ * @param {string} value - Value to be set.
239
+ */
240
+ async setValue(value) {
241
+ this.value = value;
242
+ }
243
+ /*-------------------------------------------------*/
244
+ /* P r i v a t e M e t h o d s */
245
+ /*-------------------------------------------------*/
246
+ refreshPickerValue(eventDetailValue, eventToRaise, isOnInputEvent) {
247
+ let newValue = this.kupManager.math.numberify(eventDetailValue, true);
248
+ if (newValue) {
249
+ let str = newValue.toString();
250
+ // here we check the input digits and fix with numeric picker rules.
251
+ const idx = str.indexOf('.');
252
+ let int = idx > -1 ? str.substring(0, idx) : str;
253
+ let dec = idx > -1 ? str.substring(idx + 1) : '';
254
+ if (this.maxIntegers && int.length > this.maxIntegers)
255
+ int = int.substring(int.length - this.maxIntegers);
256
+ if (this.maxDecimals && dec.length > this.maxDecimals)
257
+ dec = dec.substring(0, this.maxDecimals);
258
+ while (this.maxLength && int.length + dec.length > this.maxLength) {
259
+ if (dec.length > 1)
260
+ dec = dec.substring(0, dec.length - 1);
261
+ else if (int.length > 1)
262
+ int = int.substring(1);
263
+ }
264
+ str = idx > -1 ? `${int}.${dec}` : int;
265
+ if (isOnInputEvent != true) {
266
+ this.setValue(str);
267
+ }
268
+ if (eventToRaise != null) {
269
+ eventToRaise.emit({
270
+ id: this.rootElement.id,
271
+ value: str,
272
+ });
273
+ }
274
+ }
275
+ }
276
+ setPickerValueSelected(newValue) {
277
+ if (this.disabled == true) {
278
+ return;
279
+ }
280
+ if (newValue == null) {
281
+ newValue = this.getPickerValueSelected();
282
+ }
283
+ this.closePicker();
284
+ if (newValue == null) {
285
+ return;
286
+ }
287
+ this.setValue(newValue);
288
+ }
289
+ getPickerValueSelected() {
290
+ return this.pickerEl.value;
291
+ }
292
+ getValueForPickerComponent() {
293
+ return this.value;
294
+ }
295
+ openPicker() {
296
+ const textfieldEl = this.textfieldEl;
297
+ this.pickerContainerEl.menuVisible = true;
298
+ const elStyle = this.pickerContainerEl.style;
299
+ elStyle.height = 'auto';
300
+ elStyle.minWidth = this.textfieldEl.parentElement.clientWidth + 'px';
301
+ if (textfieldEl != null) {
302
+ textfieldEl.classList.add('toggled');
303
+ }
304
+ if (this.kupManager.dynamicPosition.isRegistered(this.pickerContainerEl)) {
305
+ this.kupManager.dynamicPosition.changeAnchor(this.pickerContainerEl, this.textfieldEl.parentElement);
306
+ }
307
+ else {
308
+ this.kupManager.dynamicPosition.register(this.pickerContainerEl, this.textfieldEl.parentElement, 0, KupDynamicPositionPlacement.AUTO, true);
309
+ }
310
+ this.kupManager.dynamicPosition.start(this.pickerContainerEl);
311
+ if (!this.clickCb) {
312
+ this.clickCb = {
313
+ cb: () => {
314
+ this.closePicker();
315
+ },
316
+ el: this.pickerContainerEl,
317
+ };
318
+ }
319
+ this.kupManager.addClickCallback(this.clickCb, true);
320
+ }
321
+ closePicker() {
322
+ this.kupManager.removeClickCallback(this.clickCb);
323
+ if (!this.isPickerOpened()) {
324
+ return;
325
+ }
326
+ let textfieldEl = this.textfieldEl;
327
+ if (textfieldEl != null) {
328
+ textfieldEl.classList.remove('toggled');
329
+ }
330
+ this.pickerContainerEl.menuVisible = false;
331
+ this.kupManager.dynamicPosition.stop(this.pickerContainerEl);
332
+ }
333
+ isPickerOpened() {
334
+ return this.pickerContainerEl.menuVisible == true;
335
+ }
336
+ getTextFieldId() {
337
+ return this.textfieldEl.id;
338
+ }
339
+ prepTextfield() {
340
+ if (!this.decimals && !this.maxIntegers)
341
+ this.maxIntegers = 17;
342
+ if (this.decimals && !this.maxIntegers && !this.maxDecimals) {
343
+ this.maxIntegers = 15;
344
+ this.maxDecimals = 2;
345
+ }
346
+ const fullHeight = this.rootElement.classList.contains('kup-full-height');
347
+ const fullWidth = this.rootElement.classList.contains('kup-full-width');
348
+ const textfieldData = Object.assign({}, this.data['kup-text-field']);
349
+ if (!textfieldData.icon) {
350
+ textfieldData.icon = 'calculator';
351
+ }
352
+ if (textfieldData.icon) {
353
+ textfieldData.trailingIcon = true;
354
+ }
355
+ return (h(FTextField, Object.assign({}, textfieldData, { disabled: this.disabled, fullHeight: fullHeight, fullWidth: fullWidth, id: this.rootElement.id + '_text-field', value: this.kupManager.math.numbers.toLocaleString(this.value), onBlur: () => this.onKupBlur(), onChange: (e) => this.onKupChange(e), onClearIconClick: () => this.onKupClearIconClick(), onClick: () => this.onKupClick(), onFocus: () => this.onKupFocus(), onIconClick: () => this.onKupIconClick(), onKeyDown: (e) => this.onkupTextFieldSubmit(e), onInput: (e) => this.onKupInput(e) }), this.prepPicker()));
356
+ }
357
+ prepPicker() {
358
+ const data = {
359
+ options: {
360
+ decimals: this.decimals,
361
+ initialValue: this.value,
362
+ maxDecimals: this.maxDecimals,
363
+ maxIntegers: this.maxIntegers,
364
+ maxLength: this.maxLength,
365
+ negative: this.negative,
366
+ resetStatus: true,
367
+ },
368
+ };
369
+ return (h("kup-card", { ref: (el) => (this.pickerContainerEl = el), data: data, layoutFamily: KupCardFamily.BUILT_IN, layoutNumber: 5, sizeX: "300px", sizeY: "auto", isMenu: true, "onkup-card-click": (ev) => {
370
+ if (ev.detail.value != null)
371
+ this.onKupPickerItemClick(ev.detail.value);
372
+ } }));
373
+ }
374
+ /*-------------------------------------------------*/
375
+ /* L i f e c y c l e H o o k s */
376
+ /*-------------------------------------------------*/
377
+ componentWillLoad() {
378
+ this.kupManager.dates.register(this);
379
+ this.kupManager.debug.logLoad(this, false);
380
+ this.kupManager.theme.register(this);
381
+ this.value = this.initialValue;
382
+ if (!this.data) {
383
+ this.data = {
384
+ 'kup-text-field': {},
385
+ };
386
+ }
387
+ }
388
+ componentDidLoad() {
389
+ this.kupManager.debug.logLoad(this, true);
390
+ }
391
+ componentWillRender() {
392
+ this.kupManager.debug.logRender(this, false);
393
+ }
394
+ componentDidRender() {
395
+ const root = this.rootElement.shadowRoot;
396
+ if (root) {
397
+ const f = root.querySelector('.f-text-field');
398
+ if (f) {
399
+ this.textfieldEl = f.querySelector('input');
400
+ FTextFieldMDC(f);
401
+ }
402
+ }
403
+ this.kupManager.debug.logRender(this, true);
404
+ }
405
+ render() {
406
+ return (h(Host, null, h("style", null, this.kupManager.theme.setKupStyle(this.rootElement)), h("div", { id: componentWrapperId }, this.prepTextfield())));
407
+ }
408
+ disconnectedCallback() {
409
+ this.kupManager.dates.unregister(this);
410
+ this.kupManager.theme.unregister(this);
411
+ if (this.pickerContainerEl) {
412
+ this.pickerContainerEl.remove();
413
+ }
414
+ }
415
+ get rootElement() { return getElement(this); }
416
+ };
417
+ KupNumericPicker.style = kupNumericPickerCss;
418
+
419
+ export { KupNumericPicker as kup_numeric_picker };
@@ -0,0 +1,175 @@
1
+ import { r as registerInstance, c as createEvent, f as forceUpdate, h, H as Host, g as getElement } from './index-baeab1ac.js';
2
+ import { k as kupManagerInstance } from './kup-manager-9316a184.js';
3
+ import { g as getProps, s as setProps } from './utils-f24319a0.js';
4
+ import { c as componentWrapperId } from './GenericVariables-665de00a.js';
5
+
6
+ /**
7
+ * Props of the kup-photo-frame component.
8
+ * Used to export every prop in an object.
9
+ */
10
+ var KupPhotoFrameProps;
11
+ (function (KupPhotoFrameProps) {
12
+ KupPhotoFrameProps["customStyle"] = "Custom style of the component.";
13
+ KupPhotoFrameProps["placeholderAttrs"] = "Html attributes of the picture before the component enters the viewport.";
14
+ KupPhotoFrameProps["resourceAttrs"] = "Html attributes of the picture after the component enters the viewport.";
15
+ })(KupPhotoFrameProps || (KupPhotoFrameProps = {}));
16
+
17
+ const kupPhotoFrameCss = ":host{--kup_photoframe_border:var(\n --kup-photoframe-border,\n 1px inset var(--kup-border-color)\n );--kup_photoframe_fade_out_time:var(--kup-photoframe-fade-out-time, 2000ms);border:var(--kup_photoframe_border);display:block;height:100%;position:relative;width:100%}#kup-component{position:relative;height:100%;width:100%}img{max-height:100%;max-width:100%}.horizontal img{width:100%}.vertical img{height:100%}.placeholder{display:none;transition:opacity var(--kup_photoframe_fade_out_time) ease-out;will-change:opacity;z-index:1}.placeholder--loaded{display:block}.placeholder--fade-out{opacity:0;position:absolute}.resource{display:none;left:0;position:absolute;top:0;z-index:0}.resource--fade-in{display:block;position:relative}:host(.kup-fit) img{height:100%;object-fit:cover;width:100%}";
18
+
19
+ var __classPrivateFieldGet = (undefined && undefined.__classPrivateFieldGet) || function (receiver, state, kind, f) {
20
+ if (kind === "a" && !f)
21
+ throw new TypeError("Private accessor was defined without a getter");
22
+ if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver))
23
+ throw new TypeError("Cannot read private member from an object whose class did not declare it");
24
+ return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
25
+ };
26
+ var __classPrivateFieldSet = (undefined && undefined.__classPrivateFieldSet) || function (receiver, state, value, kind, f) {
27
+ if (kind === "m")
28
+ throw new TypeError("Private method is not writable");
29
+ if (kind === "a" && !f)
30
+ throw new TypeError("Private accessor was defined without a setter");
31
+ if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver))
32
+ throw new TypeError("Cannot write private member to an object whose class did not declare it");
33
+ return (kind === "a" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value)), value;
34
+ };
35
+ var _KupPhotoFrame_intObserver, _KupPhotoFrame_kupManager, _KupPhotoFrame_placeholderEl, _KupPhotoFrame_resourceEl, _KupPhotoFrame_renderResource, _KupPhotoFrame_wrapperEl;
36
+ const KupPhotoFrame = class {
37
+ constructor(hostRef) {
38
+ registerInstance(this, hostRef);
39
+ this.kupPhotoFramePlaceholderLoad = createEvent(this, "kup-photoframe-placeholderload", 6);
40
+ this.kupPhotoFrameResourceLoad = createEvent(this, "kup-photoframe-resourceload", 6);
41
+ /*-------------------------------------------------*/
42
+ /* S t a t e s */
43
+ /*-------------------------------------------------*/
44
+ this.isInViewport = false;
45
+ /*-------------------------------------------------*/
46
+ /* P r o p s */
47
+ /*-------------------------------------------------*/
48
+ /**
49
+ * Custom style of the component.
50
+ * @default ""
51
+ * @see https://ketchup.smeup.com/ketchup-showcase/#/customization
52
+ */
53
+ this.customStyle = '';
54
+ /**
55
+ * Html attributes of the picture before the component enters the viewport.
56
+ * @default {}
57
+ */
58
+ this.placeholderAttrs = {};
59
+ /**
60
+ * Html attributes of the picture after the component enters the viewport.
61
+ * @default {}
62
+ */
63
+ this.resourceAttrs = {};
64
+ /**
65
+ * Percentage of the component dimensions entering the viewport (0.1 => 1).
66
+ * @default 0.25
67
+ */
68
+ this.threshold = 0.25;
69
+ /*-------------------------------------------------*/
70
+ /* I n t e r n a l V a r i a b l e s */
71
+ /*-------------------------------------------------*/
72
+ _KupPhotoFrame_intObserver.set(this, null);
73
+ _KupPhotoFrame_kupManager.set(this, kupManagerInstance());
74
+ _KupPhotoFrame_placeholderEl.set(this, null);
75
+ _KupPhotoFrame_resourceEl.set(this, null);
76
+ _KupPhotoFrame_renderResource.set(this, false);
77
+ _KupPhotoFrame_wrapperEl.set(this, null);
78
+ }
79
+ /*-------------------------------------------------*/
80
+ /* P u b l i c M e t h o d s */
81
+ /*-------------------------------------------------*/
82
+ /**
83
+ * Used to retrieve component's props values.
84
+ * @param {boolean} descriptions - When provided and true, the result will be the list of props with their description.
85
+ * @returns {Promise<GenericObject>} List of props as object, each key will be a prop.
86
+ */
87
+ async getProps(descriptions) {
88
+ return getProps(this, KupPhotoFrameProps, descriptions);
89
+ }
90
+ /**
91
+ * This method is used to trigger a new render of the component.
92
+ */
93
+ async refresh() {
94
+ forceUpdate(this);
95
+ }
96
+ /**
97
+ * Sets the props to the component.
98
+ * @param {GenericObject} props - Object containing props that will be set to the component.
99
+ */
100
+ async setProps(props) {
101
+ setProps(this, KupPhotoFrameProps, props);
102
+ }
103
+ /*-------------------------------------------------*/
104
+ /* P r i v a t e M e t h o d s */
105
+ /*-------------------------------------------------*/
106
+ setObserver() {
107
+ let callback = (entries) => {
108
+ entries.forEach((entry) => {
109
+ if (entry.isIntersecting) {
110
+ this.isInViewport = true;
111
+ __classPrivateFieldGet(this, _KupPhotoFrame_intObserver, "f").unobserve(this.rootElement);
112
+ }
113
+ });
114
+ };
115
+ let options = {
116
+ threshold: this.threshold,
117
+ };
118
+ __classPrivateFieldSet(this, _KupPhotoFrame_intObserver, new IntersectionObserver(callback, options), "f");
119
+ }
120
+ /*-------------------------------------------------*/
121
+ /* L i f e c y c l e H o o k s */
122
+ /*-------------------------------------------------*/
123
+ componentWillLoad() {
124
+ __classPrivateFieldGet(this, _KupPhotoFrame_kupManager, "f").debug.logLoad(this, false);
125
+ __classPrivateFieldGet(this, _KupPhotoFrame_kupManager, "f").theme.register(this);
126
+ this.setObserver();
127
+ }
128
+ componentDidLoad() {
129
+ __classPrivateFieldGet(this, _KupPhotoFrame_kupManager, "f").debug.logLoad(this, true);
130
+ }
131
+ componentWillRender() {
132
+ __classPrivateFieldGet(this, _KupPhotoFrame_kupManager, "f").debug.logRender(this, false);
133
+ }
134
+ componentDidRender() {
135
+ __classPrivateFieldGet(this, _KupPhotoFrame_kupManager, "f").debug.logRender(this, true);
136
+ }
137
+ render() {
138
+ if (this.isInViewport && !__classPrivateFieldGet(this, _KupPhotoFrame_renderResource, "f")) {
139
+ __classPrivateFieldSet(this, _KupPhotoFrame_renderResource, true, "f");
140
+ }
141
+ return (h(Host, null, h("style", null, __classPrivateFieldGet(this, _KupPhotoFrame_kupManager, "f").theme.setKupStyle(this.rootElement)), h("div", { id: componentWrapperId, ref: (el) => {
142
+ __classPrivateFieldSet(this, _KupPhotoFrame_wrapperEl, el, "f");
143
+ } }, h("img", Object.assign({}, this.placeholderAttrs, { class: "placeholder", ref: (el) => (__classPrivateFieldSet(this, _KupPhotoFrame_placeholderEl, el, "f")), onLoad: () => {
144
+ if (__classPrivateFieldGet(this, _KupPhotoFrame_placeholderEl, "f").naturalWidth >
145
+ __classPrivateFieldGet(this, _KupPhotoFrame_placeholderEl, "f").naturalHeight) {
146
+ __classPrivateFieldGet(this, _KupPhotoFrame_wrapperEl, "f").classList.add('horizontal');
147
+ }
148
+ else {
149
+ __classPrivateFieldGet(this, _KupPhotoFrame_wrapperEl, "f").classList.add('vertical');
150
+ }
151
+ __classPrivateFieldGet(this, _KupPhotoFrame_intObserver, "f").observe(this.rootElement);
152
+ __classPrivateFieldGet(this, _KupPhotoFrame_placeholderEl, "f").classList.add('placeholder--loaded');
153
+ this.kupPhotoFramePlaceholderLoad.emit({
154
+ comp: this,
155
+ id: this.rootElement.id,
156
+ });
157
+ } })), __classPrivateFieldGet(this, _KupPhotoFrame_renderResource, "f") ? (h("img", Object.assign({}, this.resourceAttrs, { class: "resource", ref: (el) => (__classPrivateFieldSet(this, _KupPhotoFrame_resourceEl, el, "f")), onLoad: () => {
158
+ __classPrivateFieldGet(this, _KupPhotoFrame_placeholderEl, "f").classList.add('placeholder--fade-out');
159
+ __classPrivateFieldGet(this, _KupPhotoFrame_resourceEl, "f").classList.add('resource--fade-in');
160
+ this.kupPhotoFrameResourceLoad.emit({
161
+ comp: this,
162
+ id: this.rootElement.id,
163
+ });
164
+ } }))) : null)));
165
+ }
166
+ disconnectedCallback() {
167
+ __classPrivateFieldGet(this, _KupPhotoFrame_kupManager, "f").theme.unregister(this);
168
+ __classPrivateFieldGet(this, _KupPhotoFrame_intObserver, "f").unobserve(this.rootElement);
169
+ }
170
+ get rootElement() { return getElement(this); }
171
+ };
172
+ _KupPhotoFrame_intObserver = new WeakMap(), _KupPhotoFrame_kupManager = new WeakMap(), _KupPhotoFrame_placeholderEl = new WeakMap(), _KupPhotoFrame_resourceEl = new WeakMap(), _KupPhotoFrame_renderResource = new WeakMap(), _KupPhotoFrame_wrapperEl = new WeakMap();
173
+ KupPhotoFrame.style = kupPhotoFrameCss;
174
+
175
+ export { KupPhotoFrame as kup_photo_frame };
@@ -1,8 +1,8 @@
1
- import { r as registerInstance, f as forceUpdate, h, H as Host, g as getElement } from './index-78f3699d.js';
2
- import { k as kupManagerInstance } from './kup-manager-bba62291.js';
1
+ import { r as registerInstance, f as forceUpdate, h, H as Host, g as getElement } from './index-baeab1ac.js';
2
+ import { k as kupManagerInstance } from './kup-manager-9316a184.js';
3
3
  import { c as componentWrapperId } from './GenericVariables-665de00a.js';
4
4
 
5
- let KupProbe = class {
5
+ const KupProbe = class {
6
6
  constructor(hostRef) {
7
7
  registerInstance(this, hostRef);
8
8
  /*-------------------------------------------------*/
@@ -1,9 +1,9 @@
1
- import { r as registerInstance, h, g as getElement } from './index-78f3699d.js';
2
- import { k as kupManagerInstance } from './kup-manager-bba62291.js';
1
+ import { r as registerInstance, h, g as getElement } from './index-baeab1ac.js';
2
+ import { k as kupManagerInstance } from './kup-manager-9316a184.js';
3
3
 
4
4
  const kupQlikCss = ".kup-qlik-container-fluid{width:100%}.kup-qlik-container{width:100%}@media (min-width: 576px){.kup-qlik-container{width:576px}.kup-qlik-row>.qvobject{flex:0 0 auto;min-width:100px;margin:0px auto 5px auto}}@media (min-width: 768px){.kup-qlik-container{width:768px}.kup-qlik-row>.qvobject{flex:0 0 auto;min-width:100px;margin:0px auto 5px auto}}@media (min-width: 992px){.kup-qlik-container{width:992px}.kup-qlik-row>.qvobject{flex:0 0 auto;min-width:100px;margin:0px auto 5px auto}}@media (min-width: 1200px){.kup-qlik-container{width:1200px}.kup-qlik-row>.qvobject{flex:0 0 auto;min-width:100px;margin:0px auto 5px auto}}.kup-qlik-row{display:flex;display:ms-flexbox;flex-wrap:wrap;-ms-flex-wrap:wrap;margin-bottom:5px}.kup-qlik-row .size-M{height:var(--lyo_obj-height)}.kup-qlik-row .size-S{height:calc(var(--lyo_obj-height)/2)}.kup-qlik-row .size-XS{height:calc(var(--lyo_obj-height)/3)}.kup-qlik-row .size-L{height:calc(var(--lyo_obj-height)*2)}.kup-qlik-row .size-XL{height:calc(var(--lyo_obj-height)*3)}.kup-qlik-row .bordered{border:1px solid var(--kup-border-color, #969696)}.kup-qlik-row .width-1{width:8.3333%}.kup-qlik-row .width-2{width:16.6666%}.kup-qlik-row .width-3{width:25%}.kup-qlik-row .width-4{width:33.3333%}.kup-qlik-row .width-5{width:41.6666%}.kup-qlik-row .width-6{width:50%}.kup-qlik-row .width-7{width:58.3333%}.kup-qlik-row .width-8{width:66.6666%}.kup-qlik-row .width-9{width:75%}.kup-qlik-row .width-10{width:83.3333%}.kup-qlik-row .width-11{width:91.6666%}.kup-qlik-row .width-12{width:100%}";
5
5
 
6
- let KupQlik = class {
6
+ const KupQlik = class {
7
7
  constructor(hostRef) {
8
8
  registerInstance(this, hostRef);
9
9
  /**