@sme.up/ketchup 5.2.0-SNAPSHOT → 6.1.0-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 (212) hide show
  1. package/dist/cjs/{cell-utils-5b16c180.js → cell-utils-a78d6fac.js} +2 -2
  2. package/dist/cjs/{component-d1496215.js → component-72a5b626.js} +30 -0
  3. package/dist/cjs/{f-button-3b9f32af.js → f-button-ac179257.js} +2 -2
  4. package/dist/cjs/{f-cell-c6ad973a.js → f-cell-69294bca.js} +33 -121
  5. package/dist/cjs/{f-chip-bed86c4a.js → f-chip-b00897d7.js} +5 -4
  6. package/dist/cjs/{f-image-08a3d340.js → f-image-89f25556.js} +2 -2
  7. package/dist/cjs/f-paginator-utils-8fa501b3.js +1898 -0
  8. package/dist/cjs/f-text-field-e1e45ade.js +94 -0
  9. package/dist/cjs/f-text-field-mdc-85997738.js +2570 -0
  10. package/dist/cjs/{index-8d7bb3be.js → index-eb556444.js} +2 -0
  11. package/dist/cjs/ketchup.cjs.js +3 -3
  12. package/dist/cjs/kup-accordion.cjs.entry.js +5 -5
  13. package/dist/cjs/{kup-autocomplete_27.cjs.entry.js → kup-autocomplete_25.cjs.entry.js} +1766 -8367
  14. package/dist/cjs/{kup-echart.cjs.entry.js → kup-box_2.cjs.entry.js} +17102 -14788
  15. package/dist/cjs/kup-calendar.cjs.entry.js +42 -34
  16. package/dist/cjs/kup-cell.cjs.entry.js +8 -7
  17. package/dist/cjs/kup-dash-list.cjs.entry.js +4 -4
  18. package/dist/cjs/kup-dash_2.cjs.entry.js +3 -3
  19. package/dist/cjs/kup-drawer.cjs.entry.js +12 -5
  20. package/dist/cjs/kup-field.cjs.entry.js +2 -2
  21. package/dist/cjs/kup-form-editor.cjs.entry.js +404 -0
  22. package/dist/cjs/kup-iframe.cjs.entry.js +3 -3
  23. package/dist/cjs/kup-image-list.cjs.entry.js +228 -0
  24. package/dist/cjs/kup-lazy.cjs.entry.js +3 -3
  25. package/dist/cjs/kup-magic-box.cjs.entry.js +4 -4
  26. package/dist/cjs/kup-manager-7a941909.js +16703 -0
  27. package/dist/cjs/kup-nav-bar.cjs.entry.js +3 -3
  28. package/dist/cjs/kup-numeric-picker.cjs.entry.js +423 -0
  29. package/dist/cjs/kup-photo-frame.cjs.entry.js +5 -5
  30. package/dist/cjs/kup-probe.cjs.entry.js +2 -2
  31. package/dist/cjs/kup-qlik.cjs.entry.js +2 -2
  32. package/dist/cjs/kup-snackbar.cjs.entry.js +6 -6
  33. package/dist/cjs/loader.cjs.js +3 -3
  34. package/dist/cjs/{utils-b9df398c.js → utils-6287d878.js} +1 -1
  35. package/dist/collection/assets/card.js +4 -5
  36. package/dist/collection/assets/data-table.js +0 -79
  37. package/dist/collection/assets/form-editor.js +338 -0
  38. package/dist/collection/assets/image-list.js +624 -0
  39. package/dist/collection/assets/index.js +16 -0
  40. package/dist/collection/assets/kupdata.js +0 -3
  41. package/dist/collection/assets/kuptooltip.js +654 -0
  42. package/dist/collection/assets/tree.js +0 -128
  43. package/dist/collection/collection-manifest.json +8 -6
  44. package/dist/collection/components/kup-autocomplete/kup-autocomplete.js +1 -1
  45. package/dist/collection/components/kup-box/kup-box-declarations.js +0 -4
  46. package/dist/collection/components/kup-box/kup-box.js +7 -135
  47. package/dist/collection/components/kup-card/built-in/kup-card-built-in.js +10 -0
  48. package/dist/collection/components/kup-card/built-in/kup-card-clock.js +1 -1
  49. package/dist/collection/components/kup-card/built-in/kup-card-column-drop-menu.js +1 -2
  50. package/dist/collection/components/kup-card/built-in/kup-card-numeric.js +153 -0
  51. package/dist/collection/components/kup-card/kup-card.css +61 -8
  52. package/dist/collection/components/kup-card/kup-card.js +2 -2
  53. package/dist/collection/components/kup-card/standard/kup-card-standard.js +14 -6
  54. package/dist/collection/components/kup-combobox/kup-combobox.js +1 -1
  55. package/dist/collection/components/kup-data-table/kup-data-table-declarations.js +1 -3
  56. package/dist/collection/components/kup-data-table/kup-data-table.js +50 -138
  57. package/dist/collection/components/kup-date-picker/kup-date-picker.js +1 -1
  58. package/dist/collection/components/kup-drawer/kup-drawer.css +1 -0
  59. package/dist/collection/components/kup-drawer/kup-drawer.js +8 -1
  60. package/dist/collection/components/kup-form-editor/kup-form-editor-declarations.js +23 -0
  61. package/dist/collection/components/kup-form-editor/kup-form-editor.css +80 -0
  62. package/dist/collection/components/kup-form-editor/kup-form-editor.js +561 -0
  63. package/dist/collection/components/kup-image-list/kup-image-list-declarations.js +10 -0
  64. package/dist/collection/components/kup-image-list/kup-image-list.css +166 -0
  65. package/dist/collection/components/kup-image-list/kup-image-list.js +432 -0
  66. package/dist/collection/components/kup-numeric-picker/kup-numeric-picker-declarations.js +16 -0
  67. package/dist/collection/components/kup-numeric-picker/kup-numeric-picker.css +50 -0
  68. package/dist/collection/components/kup-numeric-picker/kup-numeric-picker.js +895 -0
  69. package/dist/collection/components/kup-photo-frame/kup-photo-frame.css +3 -13
  70. package/dist/collection/components/kup-photo-frame/kup-photo-frame.js +1 -1
  71. package/dist/collection/components/kup-snackbar/kup-snackbar.css +4 -0
  72. package/dist/collection/components/kup-tab-bar/kup-tab-bar.js +18 -19
  73. package/dist/collection/components/kup-time-picker/kup-time-picker.js +2 -2
  74. package/dist/collection/components/kup-tree/kup-tree-declarations.js +0 -4
  75. package/dist/collection/components/kup-tree/kup-tree.css +10 -3
  76. package/dist/collection/components/kup-tree/kup-tree.js +65 -140
  77. package/dist/collection/f-components/f-cell/f-cell.js +7 -7
  78. package/dist/collection/f-components/f-chip/f-chip.js +2 -1
  79. package/dist/collection/managers/kup-data/kup-data-node-helper.js +24 -0
  80. package/dist/collection/managers/kup-data/kup-data.js +4 -1
  81. package/dist/collection/managers/kup-debug/kup-debug.js +1 -0
  82. package/dist/collection/managers/kup-dynamic-position/kup-dynamic-position.js +4 -2
  83. package/dist/collection/managers/kup-interact/kup-interact.js +1 -22
  84. package/dist/collection/managers/kup-language/kup-language-declarations.js +2 -0
  85. package/dist/collection/managers/kup-manager/kup-manager.js +31 -1
  86. package/dist/collection/managers/kup-math/kup-math.js +11 -1
  87. package/dist/collection/managers/kup-theme/kup-theme-declarations.js +6 -0
  88. package/dist/collection/managers/kup-tooltip/kup-tooltip-declarations.js +1 -0
  89. package/dist/collection/managers/kup-tooltip/kup-tooltip.js +224 -0
  90. package/dist/collection/types/GenericTypes.js +3 -0
  91. package/dist/collection/utils/kup-column-menu/kup-column-menu.js +8 -12
  92. package/dist/esm/{cell-utils-69f75e2e.js → cell-utils-964da6b5.js} +3 -3
  93. package/dist/esm/{component-c4eb6153.js → component-b1bedf1d.js} +27 -2
  94. package/dist/esm/{f-button-7e7607d8.js → f-button-871a544b.js} +2 -2
  95. package/dist/esm/{f-cell-e4d83c27.js → f-cell-521ef17a.js} +33 -120
  96. package/dist/esm/{f-chip-51dfefaf.js → f-chip-1dda722f.js} +6 -5
  97. package/dist/esm/{f-image-de331954.js → f-image-c468d8ae.js} +2 -2
  98. package/dist/esm/f-paginator-utils-7dff8ff0.js +1884 -0
  99. package/dist/esm/f-text-field-d6c61c73.js +92 -0
  100. package/dist/esm/f-text-field-mdc-d42d3f9e.js +2568 -0
  101. package/dist/esm/{index-aeec9835.js → index-baeab1ac.js} +2 -1
  102. package/dist/esm/ketchup.js +3 -3
  103. package/dist/esm/kup-accordion.entry.js +6 -6
  104. package/dist/esm/{kup-autocomplete_27.entry.js → kup-autocomplete_25.entry.js} +1711 -8310
  105. package/dist/esm/{kup-echart.entry.js → kup-box_2.entry.js} +17102 -14789
  106. package/dist/esm/kup-calendar.entry.js +43 -35
  107. package/dist/esm/kup-cell.entry.js +8 -7
  108. package/dist/esm/kup-dash-list.entry.js +4 -4
  109. package/dist/esm/kup-dash_2.entry.js +3 -3
  110. package/dist/esm/kup-drawer.entry.js +12 -5
  111. package/dist/esm/kup-field.entry.js +2 -2
  112. package/dist/esm/kup-form-editor.entry.js +400 -0
  113. package/dist/esm/kup-iframe.entry.js +3 -3
  114. package/dist/esm/kup-image-list.entry.js +224 -0
  115. package/dist/esm/kup-lazy.entry.js +3 -3
  116. package/dist/esm/kup-magic-box.entry.js +4 -4
  117. package/dist/esm/kup-manager-58b075b4.js +16686 -0
  118. package/dist/esm/kup-nav-bar.entry.js +3 -3
  119. package/dist/esm/kup-numeric-picker.entry.js +419 -0
  120. package/dist/esm/kup-photo-frame.entry.js +5 -5
  121. package/dist/esm/kup-probe.entry.js +2 -2
  122. package/dist/esm/kup-qlik.entry.js +2 -2
  123. package/dist/esm/kup-snackbar.entry.js +6 -6
  124. package/dist/esm/loader.js +3 -3
  125. package/dist/esm/polyfills/css-shim.js +1 -1
  126. package/dist/esm/{tslib.es6-8f2d44b6.js → tslib.es6-3eea2234.js} +1 -1
  127. package/dist/esm/{utils-35c7a90d.js → utils-d7e4b3c2.js} +2 -2
  128. package/dist/ketchup/ketchup.esm.js +1 -1
  129. package/dist/ketchup/{p-5d190cf5.js → p-1ae66cc5.js} +1 -1
  130. package/dist/ketchup/{p-8be1337b.js → p-34b74425.js} +1 -1
  131. package/dist/ketchup/{p-fea316ab.entry.js → p-3c11e615.entry.js} +1 -1
  132. package/dist/ketchup/p-44ec4f03.js +1 -0
  133. package/dist/ketchup/p-4ffbc3ff.js +1 -0
  134. package/dist/ketchup/p-5264a3e6.entry.js +1 -0
  135. package/dist/ketchup/{p-d7af8156.entry.js → p-65974e48.entry.js} +1 -1
  136. package/dist/ketchup/p-65b46587.entry.js +40 -0
  137. package/dist/ketchup/{p-3813281b.entry.js → p-6dff70f8.entry.js} +1 -1
  138. package/dist/ketchup/{p-33073f4a.js → p-7454cb92.js} +1 -1
  139. package/dist/ketchup/{p-a0b1d769.js → p-79b0730b.js} +1 -1
  140. package/dist/ketchup/p-7eff4eee.js +1 -0
  141. package/dist/ketchup/p-80968627.entry.js +1 -0
  142. package/dist/ketchup/{p-8c44c3b9.js → p-81605f08.js} +4 -5
  143. package/dist/ketchup/p-8cdf61a4.js +1 -0
  144. package/dist/ketchup/{p-f9c41e20.entry.js → p-954cc340.entry.js} +1 -1
  145. package/dist/ketchup/p-976244f9.entry.js +9 -0
  146. package/dist/ketchup/p-99e0d768.entry.js +1 -0
  147. package/dist/ketchup/{p-8f735633.entry.js → p-a0f6e25c.entry.js} +1 -1
  148. package/dist/ketchup/p-a203f78b.js +45 -0
  149. package/dist/ketchup/{p-9bcda66f.entry.js → p-a615a92b.entry.js} +1 -1
  150. package/dist/ketchup/p-aca0e54b.js +30 -0
  151. package/dist/ketchup/p-b8939a8b.entry.js +1 -0
  152. package/dist/ketchup/p-bfc3bac7.js +1 -0
  153. package/dist/ketchup/{p-67c64257.entry.js → p-c5ce8951.entry.js} +1 -1
  154. package/dist/ketchup/{p-68fc1428.entry.js → p-d2ee56dd.entry.js} +1 -1
  155. package/dist/ketchup/p-db71436b.entry.js +27 -0
  156. package/dist/ketchup/{p-10c8d755.js → p-e0035c58.js} +1 -1
  157. package/dist/ketchup/p-e1039cf2.entry.js +1 -0
  158. package/dist/ketchup/{p-b5e1dbfa.entry.js → p-ea10176c.entry.js} +1 -1
  159. package/dist/ketchup/p-f09f2f98.entry.js +1 -0
  160. package/dist/ketchup/{p-0751aaf6.entry.js → p-f71a1675.entry.js} +1 -1
  161. package/dist/ketchup/{p-4081f5f7.entry.js → p-fac1a08b.entry.js} +1 -1
  162. package/dist/types/components/kup-box/kup-box-declarations.d.ts +3 -5
  163. package/dist/types/components/kup-box/kup-box.d.ts +0 -22
  164. package/dist/types/components/kup-card/built-in/kup-card-built-in.d.ts +7 -0
  165. package/dist/types/components/kup-card/built-in/kup-card-numeric.d.ts +2 -0
  166. package/dist/types/components/kup-card/kup-card-declarations.d.ts +26 -1
  167. package/dist/types/components/kup-data-table/kup-data-table-declarations.d.ts +4 -4
  168. package/dist/types/components/kup-data-table/kup-data-table.d.ts +5 -19
  169. package/dist/types/components/kup-form-editor/kup-form-editor-declarations.d.ts +79 -0
  170. package/dist/types/components/kup-form-editor/kup-form-editor.d.ts +72 -0
  171. package/dist/types/components/kup-image-list/kup-image-list-declarations.d.ts +14 -0
  172. package/dist/types/components/kup-image-list/kup-image-list.d.ts +56 -0
  173. package/dist/types/components/kup-numeric-picker/kup-numeric-picker-declarations.d.ts +19 -0
  174. package/dist/types/components/kup-numeric-picker/kup-numeric-picker.d.ts +121 -0
  175. package/dist/types/components/kup-tab-bar/kup-tab-bar-declarations.d.ts +3 -9
  176. package/dist/types/components/kup-tab-bar/kup-tab-bar.d.ts +6 -6
  177. package/dist/types/components/kup-tree/kup-tree-declarations.d.ts +1 -5
  178. package/dist/types/components/kup-tree/kup-tree.d.ts +1 -24
  179. package/dist/types/components.d.ts +265 -232
  180. package/dist/types/managers/kup-data/kup-data-declarations.d.ts +1 -0
  181. package/dist/types/managers/kup-data/kup-data-node-helper.d.ts +7 -0
  182. package/dist/types/managers/kup-data/kup-data.d.ts +1 -0
  183. package/dist/types/managers/kup-language/kup-language-declarations.d.ts +2 -0
  184. package/dist/types/managers/kup-manager/kup-manager-declarations.d.ts +14 -0
  185. package/dist/types/managers/kup-manager/kup-manager.d.ts +14 -0
  186. package/dist/types/managers/kup-math/kup-math-declarations.d.ts +6 -0
  187. package/dist/types/managers/kup-math/kup-math.d.ts +2 -1
  188. package/dist/types/managers/kup-tooltip/kup-tooltip-declarations.d.ts +8 -0
  189. package/dist/types/managers/kup-tooltip/kup-tooltip.d.ts +51 -0
  190. package/dist/types/types/GenericTypes.d.ts +3 -0
  191. package/dist/types/utils/kup-column-menu/kup-column-menu.d.ts +1 -3
  192. package/package.json +16 -15
  193. package/dist/cjs/kup-manager-4227f0a2.js +0 -8582
  194. package/dist/collection/assets/tooltip.js +0 -73
  195. package/dist/collection/components/kup-tooltip/kup-tooltip-declarations.js +0 -20
  196. package/dist/collection/components/kup-tooltip/kup-tooltip.css +0 -149
  197. package/dist/collection/components/kup-tooltip/kup-tooltip.js +0 -1205
  198. package/dist/collection/utils/helpers.js +0 -38
  199. package/dist/esm/kup-manager-0ab94726.js +0 -8565
  200. package/dist/ketchup/p-24df4f29.entry.js +0 -27
  201. package/dist/ketchup/p-2d4f19f4.js +0 -1
  202. package/dist/ketchup/p-3445be1e.entry.js +0 -1
  203. package/dist/ketchup/p-3aab1f0d.entry.js +0 -1
  204. package/dist/ketchup/p-47b57d97.js +0 -1
  205. package/dist/ketchup/p-5186885c.entry.js +0 -1
  206. package/dist/ketchup/p-78223dc0.entry.js +0 -143
  207. package/dist/ketchup/p-96101f09.entry.js +0 -39
  208. package/dist/ketchup/p-c314b1e6.js +0 -1
  209. package/dist/ketchup/p-ee33cbe9.js +0 -9
  210. package/dist/types/components/kup-tooltip/kup-tooltip-declarations.d.ts +0 -93
  211. package/dist/types/components/kup-tooltip/kup-tooltip.d.ts +0 -142
  212. package/dist/types/utils/helpers.d.ts +0 -4
@@ -2,9 +2,9 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- const index = require('./index-8d7bb3be.js');
6
- const kupManager = require('./kup-manager-4227f0a2.js');
7
- const utils = require('./utils-b9df398c.js');
5
+ const index = require('./index-eb556444.js');
6
+ const kupManager = require('./kup-manager-7a941909.js');
7
+ const utils = require('./utils-6287d878.js');
8
8
  const GenericVariables = require('./GenericVariables-a9ed17ee.js');
9
9
 
10
10
  const navbarClass = 'nav-bar';
@@ -0,0 +1,423 @@
1
+ 'use strict';
2
+
3
+ Object.defineProperty(exports, '__esModule', { value: true });
4
+
5
+ const index = require('./index-eb556444.js');
6
+ const kupManager = require('./kup-manager-7a941909.js');
7
+ const GenericVariables = require('./GenericVariables-a9ed17ee.js');
8
+ const fTextField = require('./f-text-field-e1e45ade.js');
9
+ const fTextFieldMdc = require('./f-text-field-mdc-85997738.js');
10
+ require('./tslib.es6-0ee02c67.js');
11
+ require('./component-72a5b626.js');
12
+
13
+ /**
14
+ * Props of the kup-numeric-picker component.
15
+ * Used to export every prop in an object.
16
+ */
17
+ var KupNumericPickerProps;
18
+ (function (KupNumericPickerProps) {
19
+ KupNumericPickerProps["customStyle"] = "Custom style of the component.";
20
+ KupNumericPickerProps["data"] = "Props of the sub-components.";
21
+ KupNumericPickerProps["decimals"] = "Defaults at false. When set to true, the component has decimals.";
22
+ KupNumericPickerProps["disabled"] = "Defaults at false. When set to true, the component is disabled.";
23
+ KupNumericPickerProps["initialValue"] = "Sets the initial value of the component";
24
+ KupNumericPickerProps["maxDecimals"] = "when set, the component allows you to enter decimals with a maximum of characters.";
25
+ KupNumericPickerProps["maxIntegers"] = "When set, the component allows you to enter integer numbers with a maximum of characters.";
26
+ KupNumericPickerProps["maxLength"] = "When set, the component allows you to enter numbers with a maximum of characters, including decimals.";
27
+ KupNumericPickerProps["negative"] = "Defaults at false. When set to true, the component has negative number.";
28
+ })(KupNumericPickerProps || (KupNumericPickerProps = {}));
29
+
30
+ 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)}";
31
+
32
+ const KupNumericPicker = class {
33
+ constructor(hostRef) {
34
+ index.registerInstance(this, hostRef);
35
+ this.kupBlur = index.createEvent(this, "kup-numericpicker-blur", 6);
36
+ this.kupChange = index.createEvent(this, "kup-numericpicker-change", 6);
37
+ this.kupClick = index.createEvent(this, "kup-numericpicker-click", 6);
38
+ this.kupFocus = index.createEvent(this, "kup-numericpicker-focus", 6);
39
+ this.kupInput = index.createEvent(this, "kup-numericpicker-input", 6);
40
+ this.kupIconClick = index.createEvent(this, "kup-numericpicker-iconclick", 6);
41
+ this.kupItemClick = index.createEvent(this, "kup-numericpicker-itemclick", 6);
42
+ this.kupTextFieldSubmit = index.createEvent(this, "kup-numericpicker-textfieldsubmit", 6);
43
+ this.kupClearIconClick = index.createEvent(this, "kup-numericpicker-cleariconclick", 6);
44
+ /*-------------------------------------------------*/
45
+ /* S t a t e s */
46
+ /*-------------------------------------------------*/
47
+ this.stateSwitcher = false;
48
+ this.value = '';
49
+ /*-------------------------------------------------*/
50
+ /* P r o p s */
51
+ /*-------------------------------------------------*/
52
+ /**
53
+ * Custom style of the component.
54
+ * @default ""
55
+ * @see https://ketchup.smeup.com/ketchup-showcase/#/customization
56
+ */
57
+ this.customStyle = '';
58
+ /**
59
+ * Props of the sub-components.
60
+ * @default null
61
+ */
62
+ this.data = null;
63
+ /**
64
+ * Defaults at false. When set to true, the component has decimals.
65
+ * @default false
66
+ */
67
+ this.decimals = false;
68
+ /**
69
+ * Defaults at false. When set to true, the component is disabled.
70
+ * @default false
71
+ */
72
+ this.disabled = false;
73
+ /**
74
+ * Sets the initial value of the component
75
+ * @default ""
76
+ */
77
+ this.initialValue = '';
78
+ /**
79
+ * when set, the component allows you to enter decimals with a maximum of characters.
80
+ * @default null
81
+ */
82
+ this.maxDecimals = null;
83
+ /**
84
+ * When set, the component allows you to enter integer numbers with a maximum of characters.
85
+ * @default null
86
+ */
87
+ this.maxIntegers = null;
88
+ /**
89
+ * When set, the component allows you to enter numbers with a maximum of characters, including decimals.
90
+ * @default null
91
+ */
92
+ this.maxLength = null;
93
+ /**
94
+ * Defaults at false. When set to true, the component has negative number.
95
+ * @default false
96
+ */
97
+ this.negative = false;
98
+ /*-------------------------------------------------*/
99
+ /* I n t e r n a l V a r i a b l e s */
100
+ /*-------------------------------------------------*/
101
+ /**
102
+ * Instance of the KupManager class.
103
+ */
104
+ this.kupManager = kupManager.kupManagerInstance();
105
+ this.textfieldEl = null;
106
+ this.pickerContainerEl = null;
107
+ this.pickerEl = {
108
+ value: new Date().toISOString(),
109
+ date: new Date(),
110
+ };
111
+ this.clickCb = null;
112
+ }
113
+ onKupPickerItemClick(value) {
114
+ this.setPickerValueSelected(value);
115
+ this.kupChange.emit({
116
+ comp: this,
117
+ id: this.rootElement.id,
118
+ value: this.value,
119
+ });
120
+ this.kupItemClick.emit({
121
+ comp: this,
122
+ id: this.rootElement.id,
123
+ value: this.value,
124
+ });
125
+ this.setFocus();
126
+ }
127
+ onKupClearIconClick() {
128
+ this.setPickerValueSelected('');
129
+ this.kupChange.emit({
130
+ comp: this,
131
+ id: this.rootElement.id,
132
+ value: this.value,
133
+ });
134
+ this.kupClearIconClick.emit({
135
+ comp: this,
136
+ id: this.rootElement.id,
137
+ });
138
+ }
139
+ onKupBlur() {
140
+ this.kupBlur.emit({
141
+ id: this.rootElement.id,
142
+ value: this.value,
143
+ comp: this,
144
+ });
145
+ }
146
+ onKupChange(e) {
147
+ this.refreshPickerValue(e.target.value, this.kupChange);
148
+ }
149
+ onKupClick() {
150
+ this.kupClick.emit({
151
+ comp: this,
152
+ id: this.rootElement.id,
153
+ value: this.value,
154
+ });
155
+ }
156
+ onKupFocus() {
157
+ this.kupFocus.emit({
158
+ comp: this,
159
+ id: this.rootElement.id,
160
+ value: this.value,
161
+ });
162
+ }
163
+ onKupInput(e) {
164
+ this.refreshPickerValue(e.target.value, this.kupInput, true);
165
+ }
166
+ onkupTextFieldSubmit(e) {
167
+ if (e.key === 'Enter') {
168
+ this.refreshPickerValue(e.target.value, this.kupTextFieldSubmit);
169
+ }
170
+ }
171
+ onKupIconClick() {
172
+ if (this.isPickerOpened()) {
173
+ this.closePicker();
174
+ }
175
+ else {
176
+ this.openPicker();
177
+ }
178
+ this.kupIconClick.emit({
179
+ comp: this,
180
+ id: this.rootElement.id,
181
+ value: this.value,
182
+ });
183
+ }
184
+ /*-------------------------------------------------*/
185
+ /* L i s t e n e r s */
186
+ /*-------------------------------------------------*/
187
+ listenKeyup(e) {
188
+ if (this.isPickerOpened()) {
189
+ if (e.key === 'Escape') {
190
+ this.closePicker();
191
+ }
192
+ if (e.key === 'Enter') {
193
+ this.setPickerValueSelected();
194
+ }
195
+ }
196
+ }
197
+ /*-------------------------------------------------*/
198
+ /* P u b l i c M e t h o d s */
199
+ /*-------------------------------------------------*/
200
+ /**
201
+ * Retrieves the component's value.
202
+ * @returns {string} Value of the component.
203
+ */
204
+ async getValue() {
205
+ return this.value;
206
+ }
207
+ /**
208
+ * Used to retrieve component's props values.
209
+ * @param {boolean} descriptions - When provided and true, the result will be the list of props with their description.
210
+ * @returns {Promise<GenericObject>} List of props as object, each key will be a prop.
211
+ */
212
+ async getProps(descriptions) {
213
+ let props = {};
214
+ if (descriptions) {
215
+ props = KupNumericPickerProps;
216
+ }
217
+ else {
218
+ for (const key in KupNumericPickerProps) {
219
+ if (Object.prototype.hasOwnProperty.call(KupNumericPickerProps, key)) {
220
+ props[key] = this[key];
221
+ }
222
+ }
223
+ }
224
+ return props;
225
+ }
226
+ /**
227
+ * This method is used to trigger a new render of the component.
228
+ */
229
+ async refresh() {
230
+ index.forceUpdate(this);
231
+ }
232
+ /**
233
+ * Sets the focus to the component.
234
+ */
235
+ async setFocus() {
236
+ if (this.textfieldEl != null) {
237
+ this.textfieldEl.focus();
238
+ }
239
+ }
240
+ /**
241
+ * Sets the component's value.
242
+ * @param {string} value - Value to be set.
243
+ */
244
+ async setValue(value) {
245
+ this.value = value;
246
+ }
247
+ /*-------------------------------------------------*/
248
+ /* P r i v a t e M e t h o d s */
249
+ /*-------------------------------------------------*/
250
+ refreshPickerValue(eventDetailValue, eventToRaise, isOnInputEvent) {
251
+ let newValue = this.kupManager.math.numberify(eventDetailValue, true);
252
+ if (newValue) {
253
+ let str = newValue.toString();
254
+ // here we check the input digits and fix with numeric picker rules.
255
+ const idx = str.indexOf('.');
256
+ let int = idx > -1 ? str.substring(0, idx) : str;
257
+ let dec = idx > -1 ? str.substring(idx + 1) : '';
258
+ if (this.maxIntegers && int.length > this.maxIntegers)
259
+ int = int.substring(int.length - this.maxIntegers);
260
+ if (this.maxDecimals && dec.length > this.maxDecimals)
261
+ dec = dec.substring(0, this.maxDecimals);
262
+ while (this.maxLength && int.length + dec.length > this.maxLength) {
263
+ if (dec.length > 1)
264
+ dec = dec.substring(0, dec.length - 1);
265
+ else if (int.length > 1)
266
+ int = int.substring(1);
267
+ }
268
+ str = idx > -1 ? `${int}.${dec}` : int;
269
+ if (isOnInputEvent != true) {
270
+ this.setValue(str);
271
+ }
272
+ if (eventToRaise != null) {
273
+ eventToRaise.emit({
274
+ id: this.rootElement.id,
275
+ value: str,
276
+ });
277
+ }
278
+ }
279
+ }
280
+ setPickerValueSelected(newValue) {
281
+ if (this.disabled == true) {
282
+ return;
283
+ }
284
+ if (newValue == null) {
285
+ newValue = this.getPickerValueSelected();
286
+ }
287
+ this.closePicker();
288
+ if (newValue == null) {
289
+ return;
290
+ }
291
+ this.setValue(newValue);
292
+ }
293
+ getPickerValueSelected() {
294
+ return this.pickerEl.value;
295
+ }
296
+ getValueForPickerComponent() {
297
+ return this.value;
298
+ }
299
+ openPicker() {
300
+ const textfieldEl = this.textfieldEl;
301
+ this.pickerContainerEl.menuVisible = true;
302
+ const elStyle = this.pickerContainerEl.style;
303
+ elStyle.height = 'auto';
304
+ elStyle.minWidth = this.textfieldEl.parentElement.clientWidth + 'px';
305
+ if (textfieldEl != null) {
306
+ textfieldEl.classList.add('toggled');
307
+ }
308
+ if (this.kupManager.dynamicPosition.isRegistered(this.pickerContainerEl)) {
309
+ this.kupManager.dynamicPosition.changeAnchor(this.pickerContainerEl, this.textfieldEl.parentElement);
310
+ }
311
+ else {
312
+ this.kupManager.dynamicPosition.register(this.pickerContainerEl, this.textfieldEl.parentElement, 0, kupManager.KupDynamicPositionPlacement.AUTO, true);
313
+ }
314
+ this.kupManager.dynamicPosition.start(this.pickerContainerEl);
315
+ if (!this.clickCb) {
316
+ this.clickCb = {
317
+ cb: () => {
318
+ this.closePicker();
319
+ },
320
+ el: this.pickerContainerEl,
321
+ };
322
+ }
323
+ this.kupManager.addClickCallback(this.clickCb, true);
324
+ }
325
+ closePicker() {
326
+ this.kupManager.removeClickCallback(this.clickCb);
327
+ if (!this.isPickerOpened()) {
328
+ return;
329
+ }
330
+ let textfieldEl = this.textfieldEl;
331
+ if (textfieldEl != null) {
332
+ textfieldEl.classList.remove('toggled');
333
+ }
334
+ this.pickerContainerEl.menuVisible = false;
335
+ this.kupManager.dynamicPosition.stop(this.pickerContainerEl);
336
+ }
337
+ isPickerOpened() {
338
+ return this.pickerContainerEl.menuVisible == true;
339
+ }
340
+ getTextFieldId() {
341
+ return this.textfieldEl.id;
342
+ }
343
+ prepTextfield() {
344
+ if (!this.decimals && !this.maxIntegers)
345
+ this.maxIntegers = 17;
346
+ if (this.decimals && !this.maxIntegers && !this.maxDecimals) {
347
+ this.maxIntegers = 15;
348
+ this.maxDecimals = 2;
349
+ }
350
+ const fullHeight = this.rootElement.classList.contains('kup-full-height');
351
+ const fullWidth = this.rootElement.classList.contains('kup-full-width');
352
+ const textfieldData = Object.assign({}, this.data['kup-text-field']);
353
+ if (!textfieldData.icon) {
354
+ textfieldData.icon = 'calculator';
355
+ }
356
+ if (textfieldData.icon) {
357
+ textfieldData.trailingIcon = true;
358
+ }
359
+ return (index.h(fTextField.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()));
360
+ }
361
+ prepPicker() {
362
+ const data = {
363
+ options: {
364
+ decimals: this.decimals,
365
+ initialValue: this.value,
366
+ maxDecimals: this.maxDecimals,
367
+ maxIntegers: this.maxIntegers,
368
+ maxLength: this.maxLength,
369
+ negative: this.negative,
370
+ resetStatus: true,
371
+ },
372
+ };
373
+ return (index.h("kup-card", { ref: (el) => (this.pickerContainerEl = el), data: data, layoutFamily: kupManager.KupCardFamily.BUILT_IN, layoutNumber: 5, sizeX: "300px", sizeY: "auto", isMenu: true, "onkup-card-click": (ev) => {
374
+ if (ev.detail.value != null)
375
+ this.onKupPickerItemClick(ev.detail.value);
376
+ } }));
377
+ }
378
+ /*-------------------------------------------------*/
379
+ /* L i f e c y c l e H o o k s */
380
+ /*-------------------------------------------------*/
381
+ componentWillLoad() {
382
+ this.kupManager.dates.register(this);
383
+ this.kupManager.debug.logLoad(this, false);
384
+ this.kupManager.theme.register(this);
385
+ this.value = this.initialValue;
386
+ if (!this.data) {
387
+ this.data = {
388
+ 'kup-text-field': {},
389
+ };
390
+ }
391
+ }
392
+ componentDidLoad() {
393
+ this.kupManager.debug.logLoad(this, true);
394
+ }
395
+ componentWillRender() {
396
+ this.kupManager.debug.logRender(this, false);
397
+ }
398
+ componentDidRender() {
399
+ const root = this.rootElement.shadowRoot;
400
+ if (root) {
401
+ const f = root.querySelector('.f-text-field');
402
+ if (f) {
403
+ this.textfieldEl = f.querySelector('input');
404
+ fTextFieldMdc.FTextFieldMDC(f);
405
+ }
406
+ }
407
+ this.kupManager.debug.logRender(this, true);
408
+ }
409
+ render() {
410
+ return (index.h(index.Host, null, index.h("style", null, this.kupManager.theme.setKupStyle(this.rootElement)), index.h("div", { id: GenericVariables.componentWrapperId }, this.prepTextfield())));
411
+ }
412
+ disconnectedCallback() {
413
+ this.kupManager.dates.unregister(this);
414
+ this.kupManager.theme.unregister(this);
415
+ if (this.pickerContainerEl) {
416
+ this.pickerContainerEl.remove();
417
+ }
418
+ }
419
+ get rootElement() { return index.getElement(this); }
420
+ };
421
+ KupNumericPicker.style = kupNumericPickerCss;
422
+
423
+ exports.kup_numeric_picker = KupNumericPicker;
@@ -2,9 +2,9 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- const index = require('./index-8d7bb3be.js');
6
- const kupManager = require('./kup-manager-4227f0a2.js');
7
- const utils = require('./utils-b9df398c.js');
5
+ const index = require('./index-eb556444.js');
6
+ const kupManager = require('./kup-manager-7a941909.js');
7
+ const utils = require('./utils-6287d878.js');
8
8
  const GenericVariables = require('./GenericVariables-a9ed17ee.js');
9
9
 
10
10
  /**
@@ -18,7 +18,7 @@ var KupPhotoFrameProps;
18
18
  KupPhotoFrameProps["resourceAttrs"] = "Html attributes of the picture after the component enters the viewport.";
19
19
  })(KupPhotoFrameProps || (KupPhotoFrameProps = {}));
20
20
 
21
- 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%}";
21
+ 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, 3000ms);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{opacity:1;transition:opacity var(--kup_photoframe_fade_out_time) ease-out;z-index:1}.placeholder--fade-out{opacity:0}.resource{left:0;position:absolute;top:0;z-index:-1}:host(.kup-fit) img{height:100%;object-fit:cover;width:100%}";
22
22
 
23
23
  var __classPrivateFieldGet = (undefined && undefined.__classPrivateFieldGet) || function (receiver, state, kind, f) {
24
24
  if (kind === "a" && !f)
@@ -159,8 +159,8 @@ const KupPhotoFrame = class {
159
159
  id: this.rootElement.id,
160
160
  });
161
161
  } })), __classPrivateFieldGet(this, _KupPhotoFrame_renderResource, "f") ? (index.h("img", Object.assign({}, this.resourceAttrs, { class: "resource", ref: (el) => (__classPrivateFieldSet(this, _KupPhotoFrame_resourceEl, el, "f")), onLoad: () => {
162
- __classPrivateFieldGet(this, _KupPhotoFrame_placeholderEl, "f").classList.add('placeholder--fade-out');
163
162
  __classPrivateFieldGet(this, _KupPhotoFrame_resourceEl, "f").classList.add('resource--fade-in');
163
+ __classPrivateFieldGet(this, _KupPhotoFrame_placeholderEl, "f").classList.add('placeholder--fade-out');
164
164
  this.kupPhotoFrameResourceLoad.emit({
165
165
  comp: this,
166
166
  id: this.rootElement.id,
@@ -2,8 +2,8 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- const index = require('./index-8d7bb3be.js');
6
- const kupManager = require('./kup-manager-4227f0a2.js');
5
+ const index = require('./index-eb556444.js');
6
+ const kupManager = require('./kup-manager-7a941909.js');
7
7
  const GenericVariables = require('./GenericVariables-a9ed17ee.js');
8
8
 
9
9
  const KupProbe = class {
@@ -2,8 +2,8 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- const index = require('./index-8d7bb3be.js');
6
- const kupManager = require('./kup-manager-4227f0a2.js');
5
+ const index = require('./index-eb556444.js');
6
+ const kupManager = require('./kup-manager-7a941909.js');
7
7
 
8
8
  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%}";
9
9
 
@@ -2,13 +2,13 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- const index = require('./index-8d7bb3be.js');
6
- const kupManager = require('./kup-manager-4227f0a2.js');
7
- const utils = require('./utils-b9df398c.js');
5
+ const index = require('./index-eb556444.js');
6
+ const kupManager = require('./kup-manager-7a941909.js');
7
+ const utils = require('./utils-6287d878.js');
8
8
  const GenericVariables = require('./GenericVariables-a9ed17ee.js');
9
- const fButton = require('./f-button-3b9f32af.js');
9
+ const fButton = require('./f-button-ac179257.js');
10
10
  require('./f-button-declarations-b611587f.js');
11
- require('./f-image-08a3d340.js');
11
+ require('./f-image-89f25556.js');
12
12
 
13
13
  const snackbarClass = 'snackbar';
14
14
  /**
@@ -24,7 +24,7 @@ var KupSnackbarProps;
24
24
  KupSnackbarProps["timeout"] = "Defaults at null, when set the snackbar will automatically disappear after the specified amount of milliseconds.";
25
25
  })(KupSnackbarProps || (KupSnackbarProps = {}));
26
26
 
27
- const kupSnackbarCss = ":host{animation:snackbar-show 125ms;bottom:0;box-sizing:border-box;display:block;left:0;outline:none;position:fixed;transition:opacity 0.15s cubic-bezier(0, 0, 0.2, 1) 0ms, transform 0.15s cubic-bezier(0, 0, 0.2, 1) 0ms, -webkit-transform 0.15s cubic-bezier(0, 0, 0.2, 1) 0ms;width:100%;z-index:calc(var(--kup-navbar-zindex) + 1)}:host(:not([kup-visible])){display:none}#kup-component{display:flex;justify-content:center;height:100%;padding:8px;width:100%}.snackbar{align-items:center;background:var(--kup-navbar-background-color);border-radius:5px;box-shadow:var(--kup-box-shadow);color:var(--kup-navbar-color);display:flex;justify-content:flex-start;max-width:672px;min-height:48px;min-width:344px}.snackbar__text{padding:14px 16px;white-space:nowrap}.snackbar__buttons{--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);align-items:center;display:flex;justify-content:flex-end;margin-right:8px;width:100%}.snackbar__close{--kup-button-font-size:11px;margin-left:8px}@keyframes snackbar-show{from{transform:scale(0.5);opacity:0}to{transform:scale(1);opacity:1}}:host(.kup-top){bottom:unset;top:var(--kup-navbar-height, 0)}";
27
+ const kupSnackbarCss = ":host{animation:snackbar-show 125ms;bottom:0;box-sizing:border-box;display:block;left:0;outline:none;pointer-events:none;position:fixed;transition:opacity 0.15s cubic-bezier(0, 0, 0.2, 1) 0ms, transform 0.15s cubic-bezier(0, 0, 0.2, 1) 0ms, -webkit-transform 0.15s cubic-bezier(0, 0, 0.2, 1) 0ms;width:100%;z-index:calc(var(--kup-navbar-zindex) + 1)}:host(:not([kup-visible])){display:none}#kup-component{display:flex;justify-content:center;height:100%;padding:8px;width:100%}.snackbar{align-items:center;background:var(--kup-navbar-background-color);border-radius:5px;box-shadow:var(--kup-box-shadow);color:var(--kup-navbar-color);display:flex;justify-content:flex-start;max-width:672px;min-height:48px;min-width:344px}.snackbar__text{padding:14px 16px;pointer-events:all;white-space:nowrap}.snackbar__buttons{--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);align-items:center;display:flex;justify-content:flex-end;margin-right:8px;pointer-events:all;width:100%}.snackbar__close{--kup-button-font-size:11px;margin-left:8px;pointer-events:all}@keyframes snackbar-show{from{transform:scale(0.5);opacity:0}to{transform:scale(1);opacity:1}}:host(.kup-top){bottom:unset;top:var(--kup-navbar-height, 0)}";
28
28
 
29
29
  const KupSnackbar = class {
30
30
  constructor(hostRef) {