@sme.up/ketchup 4.2.0-SNAPSHOT → 5.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 (346) hide show
  1. package/README.md +107 -3
  2. package/dist/cjs/{cell-utils-1d44a3f0.js → cell-utils-9b1d6563.js} +4 -4
  3. package/dist/cjs/{component-8fbc31a2.js → component-d1496215.js} +203 -174
  4. package/dist/cjs/{f-button-a5788453.js → f-button-02a7cde4.js} +2 -2
  5. package/dist/cjs/{f-cell-eba6f39e.js → f-cell-4d1450a8.js} +62 -48
  6. package/dist/cjs/f-chip-a50b9f00.js +130 -0
  7. package/dist/cjs/{f-image-e03842eb.js → f-image-db55ac49.js} +3 -3
  8. package/dist/cjs/{index-0416afab.js → index-ab119fad.js} +23 -0
  9. package/dist/cjs/ketchup.cjs.js +3 -3
  10. package/dist/cjs/kup-accordion.cjs.entry.js +7 -7
  11. package/dist/cjs/{kup-autocomplete_28.cjs.entry.js → kup-autocomplete_27.cjs.entry.js} +5759 -4805
  12. package/dist/cjs/kup-calendar.cjs.entry.js +626 -359
  13. package/dist/cjs/kup-cell.cjs.entry.js +15 -13
  14. package/dist/cjs/kup-dash-list.cjs.entry.js +4 -4
  15. package/dist/cjs/kup-dash_2.cjs.entry.js +8 -7
  16. package/dist/cjs/kup-drawer.cjs.entry.js +3 -3
  17. package/dist/cjs/kup-echart.cjs.entry.js +93039 -0
  18. package/dist/cjs/kup-field.cjs.entry.js +2 -2
  19. package/dist/cjs/kup-iframe.cjs.entry.js +3 -3
  20. package/dist/cjs/kup-lazy.cjs.entry.js +22 -5
  21. package/dist/cjs/kup-magic-box.cjs.entry.js +95 -42
  22. package/dist/cjs/{kup-manager-75f1a2cd.js → kup-manager-5877b2ee.js} +3395 -737
  23. package/dist/cjs/kup-nav-bar.cjs.entry.js +3 -3
  24. package/dist/cjs/kup-probe.cjs.entry.js +2 -2
  25. package/dist/cjs/kup-qlik.cjs.entry.js +2 -2
  26. package/dist/cjs/kup-snackbar.cjs.entry.js +5 -5
  27. package/dist/cjs/loader.cjs.js +3 -3
  28. package/dist/cjs/{tslib.es6-4360c099.js → tslib.es6-0ee02c67.js} +13 -0
  29. package/dist/cjs/utils-1b5c8c70.js +482 -0
  30. package/dist/collection/assets/calendar.js +46 -1
  31. package/dist/collection/assets/card.js +15 -15
  32. package/dist/collection/assets/data-table.js +18 -6
  33. package/dist/collection/assets/index.js +8 -0
  34. package/dist/collection/assets/kupdata.js +937 -0
  35. package/dist/collection/collection-manifest.json +4 -4
  36. package/dist/collection/components/kup-accordion/kup-accordion.css +0 -1
  37. package/dist/collection/components/kup-accordion/kup-accordion.js +2 -2
  38. package/dist/collection/components/kup-autocomplete/kup-autocomplete-declarations.js +2 -0
  39. package/dist/collection/components/kup-autocomplete/kup-autocomplete.js +148 -52
  40. package/dist/collection/components/kup-badge/kup-badge.js +2 -2
  41. package/dist/collection/components/kup-box/kup-box.js +31 -17
  42. package/dist/collection/components/kup-button/kup-button.js +2 -2
  43. package/dist/collection/components/kup-button-list/kup-button-list.js +26 -8
  44. package/dist/collection/components/kup-calendar/kup-calendar-declarations.js +14 -8
  45. package/dist/collection/components/kup-calendar/kup-calendar.css +2 -2
  46. package/dist/collection/components/kup-calendar/kup-calendar.js +185 -315
  47. package/dist/collection/components/kup-card/built-in/kup-card-built-in.js +38 -0
  48. package/dist/collection/components/kup-card/built-in/kup-card-calendar.js +458 -0
  49. package/dist/collection/components/kup-card/built-in/kup-card-clock.js +321 -0
  50. package/dist/collection/components/kup-card/built-in/kup-card-column-drop-menu.js +167 -0
  51. package/dist/collection/components/kup-card/collapsible/kup-card-collapsible.js +1 -1
  52. package/dist/collection/components/kup-card/dialog/kup-card-dialog.js +2 -2
  53. package/dist/collection/components/kup-card/free/kup-card-free.js +22 -0
  54. package/dist/collection/components/kup-card/kup-card-declarations.js +19 -0
  55. package/dist/collection/components/kup-card/kup-card-helper.js +3 -3
  56. package/dist/collection/components/kup-card/kup-card.css +793 -8
  57. package/dist/collection/components/kup-card/kup-card.js +75 -15
  58. package/dist/collection/components/kup-card/scalable/kup-card-scalable.js +1 -1
  59. package/dist/collection/components/kup-card/standard/kup-card-standard.js +18 -5
  60. package/dist/collection/components/kup-cell/kup-cell.js +15 -13
  61. package/dist/collection/components/kup-chart/kup-chart-builder.js +3 -4
  62. package/dist/collection/components/kup-chart/kup-chart.js +7 -7
  63. package/dist/collection/components/kup-checkbox/kup-checkbox.js +1 -1
  64. package/dist/collection/components/kup-chip/kup-chip.css +1 -0
  65. package/dist/collection/components/kup-chip/kup-chip.js +51 -92
  66. package/dist/collection/components/kup-color-picker/kup-color-picker.css +1 -265
  67. package/dist/collection/components/kup-color-picker/kup-color-picker.js +93 -48
  68. package/dist/collection/components/kup-combobox/kup-combobox.js +148 -115
  69. package/dist/collection/components/kup-dash/kup-dash.js +1 -1
  70. package/dist/collection/components/kup-dash-list/kup-dash-list.js +5 -5
  71. package/dist/collection/components/kup-data-table/kup-data-table-declarations.js +3 -1
  72. package/dist/collection/components/kup-data-table/kup-data-table-helper.js +28 -56
  73. package/dist/collection/components/kup-data-table/kup-data-table.css +4 -38
  74. package/dist/collection/components/kup-data-table/kup-data-table.js +366 -168
  75. package/dist/collection/components/kup-date-picker/kup-date-picker.css +0 -82
  76. package/dist/collection/components/kup-date-picker/kup-date-picker.js +41 -312
  77. package/dist/collection/components/kup-drawer/kup-drawer.js +1 -1
  78. package/dist/collection/components/kup-dropdown-button/kup-dropdown-button.js +2 -2
  79. package/dist/collection/components/kup-echart/assets/maps/africa.json +6116 -0
  80. package/dist/collection/components/kup-echart/assets/maps/america.json +5416 -0
  81. package/dist/collection/components/kup-echart/assets/maps/asia.json +6053 -0
  82. package/dist/collection/components/kup-echart/assets/maps/europe.json +5051 -0
  83. package/dist/collection/components/kup-echart/assets/maps/italy.json +3562 -0
  84. package/dist/collection/components/kup-echart/assets/maps/oceania.json +1069 -0
  85. package/dist/collection/components/kup-echart/assets/maps/world.json +23685 -0
  86. package/dist/collection/components/kup-echart/kup-echart-declarations.js +45 -0
  87. package/dist/collection/components/kup-echart/kup-echart.css +13 -0
  88. package/dist/collection/components/kup-echart/kup-echart.js +1165 -0
  89. package/dist/collection/components/kup-field/kup-field.js +2 -2
  90. package/dist/collection/components/kup-gauge/kup-gauge.js +3 -3
  91. package/dist/collection/components/kup-grid/kup-grid.css +2 -2
  92. package/dist/collection/components/kup-grid/kup-grid.js +6 -5
  93. package/dist/collection/components/kup-iframe/kup-iframe.js +2 -2
  94. package/dist/collection/components/kup-image/assets/svg/science.svg +1 -0
  95. package/dist/collection/components/kup-image/kup-image.js +3 -3
  96. package/dist/collection/components/kup-lazy/kup-lazy.css +21 -11
  97. package/dist/collection/components/kup-lazy/kup-lazy.js +62 -3
  98. package/dist/collection/components/kup-list/kup-list-helper.js +7 -1
  99. package/dist/collection/components/kup-list/kup-list.css +3 -0
  100. package/dist/collection/components/kup-list/kup-list.js +219 -288
  101. package/dist/collection/components/kup-magic-box/kup-magic-box-declarations.js +11 -7
  102. package/dist/collection/components/kup-magic-box/kup-magic-box.js +90 -41
  103. package/dist/collection/components/kup-nav-bar/kup-nav-bar.js +1 -1
  104. package/dist/collection/components/kup-probe/kup-probe.js +1 -1
  105. package/dist/collection/components/kup-progress-bar/kup-progress-bar.js +1 -1
  106. package/dist/collection/components/kup-qlik/kup-qlik.js +1 -1
  107. package/dist/collection/components/kup-radio/kup-radio.js +1 -1
  108. package/dist/collection/components/kup-rating/kup-rating.js +1 -1
  109. package/dist/collection/components/kup-snackbar/kup-snackbar.js +1 -1
  110. package/dist/collection/components/kup-spinner/kup-spinner.js +1 -1
  111. package/dist/collection/components/kup-state/mock-store.js +1 -1
  112. package/dist/collection/components/kup-switch/kup-switch.js +1 -1
  113. package/dist/collection/components/kup-tab-bar/kup-tab-bar.js +3 -3
  114. package/dist/collection/components/kup-text-field/kup-text-field.css +3 -0
  115. package/dist/collection/components/kup-text-field/kup-text-field.js +2 -2
  116. package/dist/collection/components/kup-time-picker/kup-time-picker.css +1 -0
  117. package/dist/collection/components/kup-time-picker/kup-time-picker.js +57 -244
  118. package/dist/collection/components/kup-tooltip/kup-tooltip.js +3 -3
  119. package/dist/collection/components/kup-tree/kup-tree-declarations.js +0 -5
  120. package/dist/collection/components/kup-tree/kup-tree-faker.js +2 -3
  121. package/dist/collection/components/kup-tree/kup-tree.css +2 -0
  122. package/dist/collection/components/kup-tree/kup-tree.js +145 -70
  123. package/dist/collection/f-components/f-cell/f-cell-declarations.js +3 -1
  124. package/dist/collection/f-components/f-cell/f-cell.js +53 -39
  125. package/dist/collection/f-components/f-chip/f-chip.js +76 -87
  126. package/dist/collection/f-components/f-image/f-image.js +2 -2
  127. package/dist/collection/f-components/f-paginator/f-paginator-declarations.js +5 -0
  128. package/dist/collection/f-components/f-paginator/f-paginator-utils.js +28 -0
  129. package/dist/collection/f-components/f-paginator/f-paginator.js +91 -0
  130. package/dist/collection/f-components/f-text-field/f-text-field.js +4 -4
  131. package/dist/collection/managers/kup-data/kup-data-cell-helper.js +52 -0
  132. package/dist/collection/managers/kup-data/kup-data-column-helper.js +272 -0
  133. package/dist/collection/managers/kup-data/kup-data-declarations.js +9 -0
  134. package/dist/collection/managers/kup-data/kup-data-node-helper.js +72 -0
  135. package/dist/collection/managers/kup-data/kup-data-row-helper.js +28 -0
  136. package/dist/collection/managers/kup-data/kup-data.js +382 -0
  137. package/dist/collection/{utils → managers}/kup-dates/kup-dates-declarations.js +0 -0
  138. package/dist/collection/{utils → managers}/kup-dates/kup-dates.js +53 -19
  139. package/dist/collection/{utils → managers}/kup-debug/kup-debug-browser-utils.js +1 -1
  140. package/dist/collection/{utils → managers}/kup-debug/kup-debug-declarations.js +0 -0
  141. package/dist/collection/{utils → managers}/kup-debug/kup-debug.js +79 -124
  142. package/dist/collection/{utils → managers}/kup-dynamic-position/kup-dynamic-position-declarations.js +0 -0
  143. package/dist/collection/{utils → managers}/kup-dynamic-position/kup-dynamic-position.js +10 -1
  144. package/dist/collection/{utils → managers}/kup-interact/kup-interact-declarations.js +1 -0
  145. package/dist/collection/{utils → managers}/kup-interact/kup-interact.js +22 -13
  146. package/dist/collection/{utils → managers}/kup-language/kup-language-declarations.js +10 -0
  147. package/dist/collection/{utils → managers}/kup-language/kup-language.js +5 -5
  148. package/dist/collection/{utils → managers}/kup-manager/kup-manager-declarations.js +0 -0
  149. package/dist/collection/{utils → managers}/kup-manager/kup-manager.js +45 -4
  150. package/dist/collection/managers/kup-math/kup-math-declarations.js +13 -0
  151. package/dist/collection/managers/kup-math/kup-math-helper.js +39 -0
  152. package/dist/collection/managers/kup-math/kup-math.js +151 -0
  153. package/dist/collection/{utils → managers}/kup-objects/kup-objects-declarations.js +0 -0
  154. package/dist/collection/{utils → managers}/kup-objects/kup-objects.js +15 -0
  155. package/dist/collection/{utils → managers}/kup-scroll-on-hover/kup-scroll-on-hover-declarations.js +0 -0
  156. package/dist/collection/{utils → managers}/kup-scroll-on-hover/kup-scroll-on-hover.js +0 -0
  157. package/dist/collection/{utils → managers}/kup-search/kup-search-declarations.js +0 -0
  158. package/dist/collection/{utils → managers}/kup-search/kup-search.js +0 -1
  159. package/dist/collection/{utils → managers}/kup-theme/kup-theme-declarations.js +99 -0
  160. package/dist/collection/{utils → managers}/kup-theme/kup-theme.js +117 -68
  161. package/dist/collection/{utils → managers}/kup-toolbar/kup-toolbar-declarations.js +0 -0
  162. package/dist/collection/{utils → managers}/kup-toolbar/kup-toolbar.js +0 -0
  163. package/dist/collection/types/GenericTypes.js +48 -1
  164. package/dist/collection/utils/cell-utils.js +3 -4
  165. package/dist/collection/utils/filters/filters-column-menu.js +7 -7
  166. package/dist/collection/utils/filters/filters-rows.js +2 -2
  167. package/dist/collection/utils/filters/filters-tree-items.js +12 -12
  168. package/dist/collection/utils/filters/filters.js +3 -2
  169. package/dist/collection/utils/kup-column-menu/kup-column-menu-declarations.js +1 -0
  170. package/dist/collection/utils/kup-column-menu/kup-column-menu.js +100 -68
  171. package/dist/collection/utils/utils.js +4 -4
  172. package/dist/esm/{cell-utils-9a2914fc.js → cell-utils-571978d6.js} +4 -4
  173. package/dist/esm/{component-d2803feb.js → component-c4eb6153.js} +204 -170
  174. package/dist/esm/{f-button-55a9ed88.js → f-button-b3011cc2.js} +2 -2
  175. package/dist/esm/{f-cell-ac520cb2.js → f-cell-b88b2731.js} +62 -48
  176. package/dist/esm/f-chip-a52489ec.js +128 -0
  177. package/dist/esm/{f-image-70ca9dfe.js → f-image-5e5ed7e2.js} +3 -3
  178. package/dist/esm/{index-e0e67c23.js → index-78f3699d.js} +23 -0
  179. package/dist/esm/ketchup.js +3 -3
  180. package/dist/esm/kup-accordion.entry.js +7 -7
  181. package/dist/esm/{kup-autocomplete_28.entry.js → kup-autocomplete_27.entry.js} +5570 -4615
  182. package/dist/esm/kup-calendar.entry.js +626 -359
  183. package/dist/esm/kup-cell.entry.js +15 -13
  184. package/dist/esm/kup-dash-list.entry.js +4 -4
  185. package/dist/esm/kup-dash_2.entry.js +8 -7
  186. package/dist/esm/kup-drawer.entry.js +3 -3
  187. package/dist/esm/kup-echart.entry.js +93035 -0
  188. package/dist/esm/kup-field.entry.js +2 -2
  189. package/dist/esm/kup-iframe.entry.js +3 -3
  190. package/dist/esm/kup-lazy.entry.js +22 -5
  191. package/dist/esm/kup-magic-box.entry.js +95 -42
  192. package/dist/esm/{kup-manager-bba32828.js → kup-manager-1f76a3ef.js} +3391 -737
  193. package/dist/esm/kup-nav-bar.entry.js +3 -3
  194. package/dist/esm/kup-probe.entry.js +2 -2
  195. package/dist/esm/kup-qlik.entry.js +2 -2
  196. package/dist/esm/kup-snackbar.entry.js +5 -5
  197. package/dist/esm/loader.js +3 -3
  198. package/dist/esm/polyfills/css-shim.js +1 -1
  199. package/dist/esm/{tslib.es6-e6137777.js → tslib.es6-8f2d44b6.js} +13 -1
  200. package/dist/esm/utils-93ae800f.js +461 -0
  201. package/dist/ketchup/assets/maps/africa.json +6116 -0
  202. package/dist/ketchup/assets/maps/america.json +5416 -0
  203. package/dist/ketchup/assets/maps/asia.json +6053 -0
  204. package/dist/ketchup/assets/maps/europe.json +5051 -0
  205. package/dist/ketchup/assets/maps/italy.json +3562 -0
  206. package/dist/ketchup/assets/maps/oceania.json +1069 -0
  207. package/dist/ketchup/assets/maps/world.json +23685 -0
  208. package/dist/ketchup/assets/svg/science.svg +1 -0
  209. package/dist/ketchup/ketchup.esm.js +1 -1
  210. package/dist/ketchup/{p-74259992.entry.js → p-088a886c.entry.js} +1 -1
  211. package/dist/ketchup/p-135cabdc.entry.js +1 -0
  212. package/dist/ketchup/p-1c1e830f.entry.js +1 -0
  213. package/dist/ketchup/{p-69a705ae.entry.js → p-29208220.entry.js} +1 -1
  214. package/dist/ketchup/{p-62208488.entry.js → p-2b9f2019.entry.js} +1 -1
  215. package/dist/ketchup/p-52d0582a.js +1 -0
  216. package/dist/ketchup/p-554bd5f0.entry.js +39 -0
  217. package/dist/ketchup/{p-06c209a5.js → p-5f52e313.js} +1 -1
  218. package/dist/ketchup/{p-e90934b5.entry.js → p-65449480.entry.js} +1 -1
  219. package/dist/ketchup/p-79cf3874.entry.js +1 -0
  220. package/dist/ketchup/p-7a85cda4.js +1 -0
  221. package/dist/ketchup/p-84cce555.entry.js +27 -0
  222. package/dist/ketchup/p-8c44c3b9.js +135 -0
  223. package/dist/ketchup/{p-ff7d590e.entry.js → p-9d49cdb2.entry.js} +1 -1
  224. package/dist/ketchup/{p-5a4a5fdc.js → p-a0b1d769.js} +1 -1
  225. package/dist/ketchup/{p-40df35de.entry.js → p-a2b6672e.entry.js} +1 -1
  226. package/dist/ketchup/{p-5faf7715.entry.js → p-a4be630b.entry.js} +1 -1
  227. package/dist/ketchup/p-c072b270.js +1 -0
  228. package/dist/ketchup/{p-daf03877.entry.js → p-c648972c.entry.js} +1 -1
  229. package/dist/ketchup/{p-03ae1be9.entry.js → p-d67d39c0.entry.js} +1 -1
  230. package/dist/ketchup/p-d6e2f2b0.entry.js +1 -0
  231. package/dist/ketchup/{p-52038ccb.js → p-da387e0e.js} +1 -1
  232. package/dist/ketchup/p-e5c9ec9e.js +1 -0
  233. package/dist/ketchup/{p-cb5f4994.js → p-ed0b8666.js} +0 -0
  234. package/dist/ketchup/p-ef539eda.js +9 -0
  235. package/dist/ketchup/p-f316234c.entry.js +143 -0
  236. package/dist/types/components/kup-accordion/kup-accordion-declarations.d.ts +2 -2
  237. package/dist/types/components/kup-autocomplete/kup-autocomplete-declarations.d.ts +6 -0
  238. package/dist/types/components/kup-autocomplete/kup-autocomplete.d.ts +29 -22
  239. package/dist/types/components/kup-box/kup-box-declarations.d.ts +7 -11
  240. package/dist/types/components/kup-box/kup-box.d.ts +4 -4
  241. package/dist/types/components/kup-button-list/kup-button-list-declarations.d.ts +6 -1
  242. package/dist/types/components/kup-button-list/kup-button-list.d.ts +4 -3
  243. package/dist/types/components/kup-calendar/kup-calendar-declarations.d.ts +28 -10
  244. package/dist/types/components/kup-calendar/kup-calendar.d.ts +19 -47
  245. package/dist/types/components/kup-card/built-in/kup-card-built-in.d.ts +27 -0
  246. package/dist/types/components/kup-card/built-in/kup-card-calendar.d.ts +2 -0
  247. package/dist/types/components/kup-card/built-in/kup-card-clock.d.ts +2 -0
  248. package/dist/types/components/kup-card/built-in/kup-card-column-drop-menu.d.ts +3 -0
  249. package/dist/types/components/kup-card/free/kup-card-free.d.ts +14 -0
  250. package/dist/types/components/kup-card/kup-card-declarations.d.ts +100 -1
  251. package/dist/types/components/kup-card/kup-card.d.ts +12 -5
  252. package/dist/types/components/kup-cell/kup-cell.d.ts +3 -3
  253. package/dist/types/components/kup-chart/kup-chart-builder.d.ts +5 -5
  254. package/dist/types/components/kup-chart/kup-chart-declarations.d.ts +3 -3
  255. package/dist/types/components/kup-chart/kup-chart.d.ts +2 -2
  256. package/dist/types/components/kup-chip/kup-chip-declarations.d.ts +6 -3
  257. package/dist/types/components/kup-chip/kup-chip.d.ts +9 -13
  258. package/dist/types/components/kup-color-picker/kup-color-picker.d.ts +7 -3
  259. package/dist/types/components/kup-combobox/kup-combobox-declarations.d.ts +4 -0
  260. package/dist/types/components/kup-combobox/kup-combobox.d.ts +11 -33
  261. package/dist/types/components/kup-dash-list/kup-dash-list.d.ts +2 -2
  262. package/dist/types/components/kup-data-table/kup-data-table-declarations.d.ts +45 -109
  263. package/dist/types/components/kup-data-table/kup-data-table-helper.d.ts +8 -11
  264. package/dist/types/components/kup-data-table/kup-data-table.d.ts +50 -29
  265. package/dist/types/components/kup-date-picker/kup-date-picker.d.ts +0 -10
  266. package/dist/types/components/kup-echart/kup-echart-declarations.d.ts +55 -0
  267. package/dist/types/components/kup-echart/kup-echart.d.ts +100 -0
  268. package/dist/types/components/kup-lazy/kup-lazy.d.ts +13 -1
  269. package/dist/types/components/kup-list/kup-list-declarations.d.ts +2 -1
  270. package/dist/types/components/kup-list/kup-list.d.ts +4 -35
  271. package/dist/types/components/kup-magic-box/kup-magic-box-declarations.d.ts +6 -10
  272. package/dist/types/components/kup-magic-box/kup-magic-box.d.ts +7 -11
  273. package/dist/types/components/kup-time-picker/kup-time-picker.d.ts +2 -9
  274. package/dist/types/components/kup-tooltip/kup-tooltip-declarations.d.ts +11 -13
  275. package/dist/types/components/kup-tree/kup-tree-declarations.d.ts +14 -35
  276. package/dist/types/components/kup-tree/kup-tree-faker.d.ts +10 -10
  277. package/dist/types/components/kup-tree/kup-tree.d.ts +45 -35
  278. package/dist/types/components.d.ts +307 -188
  279. package/dist/types/f-components/f-cell/f-cell-declarations.d.ts +11 -10
  280. package/dist/types/f-components/f-chip/f-chip-declarations.d.ts +7 -22
  281. package/dist/types/f-components/f-paginator/f-paginator-declarations.d.ts +22 -0
  282. package/dist/types/f-components/f-paginator/f-paginator-utils.d.ts +2 -0
  283. package/dist/types/f-components/f-paginator/f-paginator.d.ts +3 -0
  284. package/dist/types/managers/kup-data/kup-data-cell-helper.d.ts +24 -0
  285. package/dist/types/managers/kup-data/kup-data-column-helper.d.ts +31 -0
  286. package/dist/types/managers/kup-data/kup-data-declarations.d.ts +160 -0
  287. package/dist/types/managers/kup-data/kup-data-node-helper.d.ts +23 -0
  288. package/dist/types/managers/kup-data/kup-data-row-helper.d.ts +14 -0
  289. package/dist/types/managers/kup-data/kup-data.d.ts +77 -0
  290. package/dist/types/{utils → managers}/kup-dates/kup-dates-declarations.d.ts +0 -0
  291. package/dist/types/{utils → managers}/kup-dates/kup-dates.d.ts +24 -2
  292. package/dist/types/{utils → managers}/kup-debug/kup-debug-declarations.d.ts +0 -0
  293. package/dist/types/{utils → managers}/kup-debug/kup-debug.d.ts +6 -13
  294. package/dist/types/{utils → managers}/kup-dynamic-position/kup-dynamic-position-declarations.d.ts +1 -0
  295. package/dist/types/{utils → managers}/kup-dynamic-position/kup-dynamic-position.d.ts +0 -0
  296. package/dist/types/{utils → managers}/kup-interact/kup-interact-declarations.d.ts +9 -8
  297. package/dist/types/{utils → managers}/kup-interact/kup-interact.d.ts +7 -6
  298. package/dist/types/{utils → managers}/kup-language/kup-language-declarations.d.ts +11 -1
  299. package/dist/types/{utils → managers}/kup-language/kup-language.d.ts +3 -3
  300. package/dist/types/{utils → managers}/kup-manager/kup-manager-declarations.d.ts +21 -2
  301. package/dist/types/{utils → managers}/kup-manager/kup-manager.d.ts +4 -0
  302. package/dist/types/managers/kup-math/kup-math-declarations.d.ts +21 -0
  303. package/dist/types/managers/kup-math/kup-math-helper.d.ts +17 -0
  304. package/dist/types/managers/kup-math/kup-math.d.ts +60 -0
  305. package/dist/types/{utils → managers}/kup-objects/kup-objects-declarations.d.ts +0 -0
  306. package/dist/types/{utils → managers}/kup-objects/kup-objects.d.ts +6 -0
  307. package/dist/types/{utils → managers}/kup-scroll-on-hover/kup-scroll-on-hover-declarations.d.ts +0 -0
  308. package/dist/types/{utils → managers}/kup-scroll-on-hover/kup-scroll-on-hover.d.ts +0 -0
  309. package/dist/types/{utils → managers}/kup-search/kup-search-declarations.d.ts +0 -0
  310. package/dist/types/{utils → managers}/kup-search/kup-search.d.ts +0 -0
  311. package/dist/types/{utils → managers}/kup-theme/kup-theme-declarations.d.ts +37 -1
  312. package/dist/types/{utils → managers}/kup-theme/kup-theme.d.ts +19 -19
  313. package/dist/types/{utils → managers}/kup-toolbar/kup-toolbar-declarations.d.ts +0 -0
  314. package/dist/types/{utils → managers}/kup-toolbar/kup-toolbar.d.ts +0 -0
  315. package/dist/types/stencil-public-runtime.d.ts +6 -4
  316. package/dist/types/types/GenericTypes.d.ts +53 -6
  317. package/dist/types/utils/cell-utils.d.ts +7 -6
  318. package/dist/types/utils/filters/filters-column-menu.d.ts +16 -16
  319. package/dist/types/utils/filters/filters-rows.d.ts +10 -10
  320. package/dist/types/utils/filters/filters-tree-items.d.ts +7 -7
  321. package/dist/types/utils/helpers.d.ts +2 -2
  322. package/dist/types/utils/kup-column-menu/kup-column-menu-declarations.d.ts +1 -0
  323. package/dist/types/utils/kup-column-menu/kup-column-menu.d.ts +27 -33
  324. package/dist/types/utils/utils.d.ts +4 -2
  325. package/package.json +31 -26
  326. package/dist/cjs/f-chip-ce69b7d2.js +0 -141
  327. package/dist/cjs/utils-b3ec89fe.js +0 -1550
  328. package/dist/collection/components/kup-paginator/kup-paginator-declarations.js +0 -5
  329. package/dist/collection/components/kup-paginator/kup-paginator.css +0 -46
  330. package/dist/collection/components/kup-paginator/kup-paginator.js +0 -408
  331. package/dist/esm/f-chip-babf1740.js +0 -139
  332. package/dist/esm/utils-cfcbe33f.js +0 -1526
  333. package/dist/ketchup/p-1ce9a037.js +0 -1
  334. package/dist/ketchup/p-1e2c3497.js +0 -1
  335. package/dist/ketchup/p-4748be4b.js +0 -8
  336. package/dist/ketchup/p-5db41fae.entry.js +0 -45
  337. package/dist/ketchup/p-6cc8264d.entry.js +0 -1
  338. package/dist/ketchup/p-756aa8b1.entry.js +0 -1
  339. package/dist/ketchup/p-9d02a676.js +0 -134
  340. package/dist/ketchup/p-a7687c0e.entry.js +0 -27
  341. package/dist/ketchup/p-d58dbf0e.js +0 -1
  342. package/dist/ketchup/p-d6ce1ac6.entry.js +0 -1
  343. package/dist/ketchup/p-ea387b49.entry.js +0 -1
  344. package/dist/ketchup/p-f6bff949.js +0 -1
  345. package/dist/types/components/kup-paginator/kup-paginator-declarations.d.ts +0 -11
  346. package/dist/types/components/kup-paginator/kup-paginator.d.ts +0 -48
@@ -3,88 +3,6 @@
3
3
  font-size: var(--kup-font-size);
4
4
  }
5
5
 
6
- #date-picker-div {
7
- outline: none;
8
- pointer-events: all;
9
- background-color: var(--kup-background-color);
10
- box-shadow: var(--kup-box-shadow);
11
- color: var(--kup-text-color);
12
- display: none;
13
- overflow: hidden;
14
- padding: 10px;
15
- box-sizing: border-box;
16
- flex-direction: column;
17
- justify-content: center;
18
- height: 22em;
19
- width: 22em;
20
- position: absolute;
21
- z-index: 1;
22
- }
23
- #date-picker-div.visible {
24
- display: block;
25
- }
26
- #date-picker-div.dynamic-position-active {
27
- display: flex;
28
- }
29
- #date-picker-div .section-1 {
30
- box-sizing: border-box;
31
- height: 5em;
32
- overflow: auto;
33
- padding-bottom: 1em;
34
- width: 100%;
35
- }
36
- #date-picker-div .section-1 .sub-1 {
37
- display: flex;
38
- flex-direction: row;
39
- justify-content: center;
40
- }
41
- #date-picker-div .section-2 {
42
- height: calc(100% - 60px);
43
- overflow: auto;
44
- width: 100%;
45
- }
46
- #date-picker-div #prev-page {
47
- margin-left: auto;
48
- }
49
- #date-picker-div #change-view-button {
50
- margin: auto;
51
- width: 12em;
52
- text-align: center;
53
- }
54
- #date-picker-div #next-page {
55
- margin-right: auto;
56
- }
57
- #date-picker-div #calendar {
58
- border-collapse: collapse;
59
- width: 100%;
60
- }
61
- #date-picker-div thead {
62
- border-bottom: 1px solid var(--kup-border-color);
63
- }
64
- #date-picker-div .item-text {
65
- color: rgba(var(--kup-text-color-rgb), 0.5);
66
- }
67
- #date-picker-div .item {
68
- text-align: center;
69
- }
70
- #date-picker-div .item:not(.selected) .item-number:hover {
71
- background-color: var(--kup-hover-background-color);
72
- }
73
- #date-picker-div .item.selected .item-number, #date-picker-div .item.selected .item-number:hover {
74
- background-color: rgba(var(--kup-primary-color-rgb), 0.175);
75
- }
76
- #date-picker-div .item-number {
77
- border-radius: 50%;
78
- cursor: pointer;
79
- display: flex;
80
- justify-content: center;
81
- line-height: 2.5em;
82
- margin: auto;
83
- width: 2.5em;
84
- transition: background-color 0.25s;
85
- text-transform: capitalize;
86
- }
87
-
88
6
  .f-text-field {
89
7
  position: relative;
90
8
  }
@@ -1,13 +1,13 @@
1
1
  import { Component, Element, Event, forceUpdate, h, Host, Listen, Method, Prop, State, Watch, } from '@stencil/core';
2
- import { kupManagerInstance, } from '../../utils/kup-manager/kup-manager';
3
- import { getMonthsAsStringByLocale, getDaysOfWeekAsStringByLocale, fillString, DateTimeFormatOptionsMonth, } from '../../utils/utils';
4
- import { KupDatePickerProps, SourceEvent, } from './kup-date-picker-declarations';
5
- import { FButtonStyling } from '../../f-components/f-button/f-button-declarations';
6
- import { KupDebugCategory } from '../../utils/kup-debug/kup-debug-declarations';
2
+ import { kupManagerInstance, } from '../../managers/kup-manager/kup-manager';
3
+ import { KupDatePickerProps, } from './kup-date-picker-declarations';
4
+ import { KupDebugCategory } from '../../managers/kup-debug/kup-debug-declarations';
7
5
  import { componentWrapperId } from '../../variables/GenericVariables';
8
- import { KupDatesFormats, KupDatesNormalize, } from '../../utils/kup-dates/kup-dates-declarations';
6
+ import { KupDatesFormats, KupDatesNormalize, } from '../../managers/kup-dates/kup-dates-declarations';
9
7
  import { FTextField } from '../../f-components/f-text-field/f-text-field';
10
8
  import { FTextFieldMDC } from '../../f-components/f-text-field/f-text-field-mdc';
9
+ import { KupDynamicPositionPlacement } from '../../managers/kup-dynamic-position/kup-dynamic-position-declarations';
10
+ import { KupCardFamily, } from '../kup-card/kup-card-declarations';
11
11
  export class KupDatePicker {
12
12
  constructor() {
13
13
  /*-------------------------------------------------*/
@@ -52,14 +52,12 @@ export class KupDatePicker {
52
52
  * Instance of the KupManager class.
53
53
  */
54
54
  this.kupManager = kupManagerInstance();
55
- this.calendarView = SourceEvent.DATE;
56
55
  this.textfieldEl = null;
57
56
  this.pickerContainerEl = null;
58
57
  this.pickerEl = {
59
58
  value: new Date().toISOString(),
60
59
  date: new Date(),
61
60
  };
62
- this.pickerOpened = false;
63
61
  this.clickCb = null;
64
62
  }
65
63
  onKupDatePickerItemClick(value) {
@@ -74,6 +72,7 @@ export class KupDatePicker {
74
72
  id: this.rootElement.id,
75
73
  value: this.value,
76
74
  });
75
+ this.setFocus();
77
76
  }
78
77
  onKupClearIconClick() {
79
78
  this.setPickerValueSelected('');
@@ -87,19 +86,6 @@ export class KupDatePicker {
87
86
  id: this.rootElement.id,
88
87
  });
89
88
  }
90
- onKupDatePickerMonthYearItemClick(value) {
91
- switch (this.calendarView) {
92
- case SourceEvent.MONTH: {
93
- this.calendarView = SourceEvent.DATE;
94
- break;
95
- }
96
- case SourceEvent.YEAR: {
97
- this.calendarView = SourceEvent.MONTH;
98
- break;
99
- }
100
- }
101
- this.refreshPickerComponentValue(value);
102
- }
103
89
  onKupBlur() {
104
90
  this.kupBlur.emit({
105
91
  id: this.rootElement.id,
@@ -275,20 +261,22 @@ export class KupDatePicker {
275
261
  return this.value;
276
262
  }
277
263
  openPicker() {
278
- this.calendarView = SourceEvent.DATE;
279
- let textfieldEl = this.textfieldEl;
280
- let containerEl = this.pickerContainerEl;
281
- this.pickerOpened = true;
264
+ const textfieldEl = this.textfieldEl;
265
+ this.pickerContainerEl.menuVisible = true;
266
+ const elStyle = this.pickerContainerEl.style;
267
+ elStyle.height = 'auto';
268
+ elStyle.minWidth = this.textfieldEl.parentElement.clientWidth + 'px';
282
269
  this.refreshPickerComponentValue(this.getValueForPickerComponent());
283
270
  if (textfieldEl != null) {
284
271
  textfieldEl.classList.add('toggled');
285
272
  }
286
- if (containerEl != null) {
287
- containerEl.classList.add('visible');
288
- const elStyle = containerEl.style;
289
- elStyle.height = 'auto';
290
- elStyle.minWidth = textfieldEl.clientWidth + 'px';
273
+ if (this.kupManager.dynamicPosition.isRegistered(this.pickerContainerEl)) {
274
+ this.kupManager.dynamicPosition.changeAnchor(this.pickerContainerEl, this.textfieldEl.parentElement);
291
275
  }
276
+ else {
277
+ this.kupManager.dynamicPosition.register(this.pickerContainerEl, this.textfieldEl.parentElement, 0, KupDynamicPositionPlacement.AUTO, true);
278
+ }
279
+ this.kupManager.dynamicPosition.start(this.pickerContainerEl);
292
280
  if (!this.clickCb) {
293
281
  this.clickCb = {
294
282
  cb: () => {
@@ -305,22 +293,21 @@ export class KupDatePicker {
305
293
  return;
306
294
  }
307
295
  let textfieldEl = this.textfieldEl;
308
- let containerEl = this.pickerContainerEl;
309
- this.pickerOpened = false;
310
296
  if (textfieldEl != null) {
311
297
  textfieldEl.classList.remove('toggled');
312
298
  }
313
- if (containerEl != null) {
314
- containerEl.classList.remove('visible');
315
- }
299
+ this.pickerContainerEl.menuVisible = false;
300
+ this.kupManager.dynamicPosition.stop(this.pickerContainerEl);
316
301
  }
317
302
  isPickerOpened() {
318
- return this.pickerOpened;
303
+ return this.pickerContainerEl.menuVisible == true;
319
304
  }
320
305
  getTextFieldId() {
321
306
  return this.textfieldEl.id;
322
307
  }
323
308
  prepTextfield(initialValue) {
309
+ const fullHeight = this.rootElement.classList.contains('kup-full-height');
310
+ const fullWidth = this.rootElement.classList.contains('kup-full-width');
324
311
  const textfieldData = Object.assign({}, this.data['kup-text-field']);
325
312
  if (!textfieldData.icon) {
326
313
  textfieldData.icon = 'calendar';
@@ -328,7 +315,7 @@ export class KupDatePicker {
328
315
  if (textfieldData.icon) {
329
316
  textfieldData.trailingIcon = true;
330
317
  }
331
- return (h(FTextField, Object.assign({}, textfieldData, { disabled: this.disabled, id: this.rootElement.id + '_text-field', value: initialValue, 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.prepDatePicker()));
318
+ return (h(FTextField, Object.assign({}, textfieldData, { disabled: this.disabled, fullHeight: fullHeight, fullWidth: fullWidth, id: this.rootElement.id + '_text-field', value: initialValue, 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.prepDatePicker()));
332
319
  }
333
320
  getInitEndYear(curYear) {
334
321
  let initYear = curYear - (curYear % 10);
@@ -350,268 +337,17 @@ export class KupDatePicker {
350
337
  return idConc.indexOf('#' + id + '#') >= 0;
351
338
  }
352
339
  prepDatePicker() {
353
- let date = this.pickerEl.date;
354
- let months = getMonthsAsStringByLocale();
355
- let curYear = date.getFullYear();
356
- let yearRange = this.getInitEndYear(curYear);
357
- let initYear = yearRange.initYear;
358
- let endYear = yearRange.endYear;
359
- let changeViewButtonLabel = 'not-set';
360
- switch (this.calendarView) {
361
- case SourceEvent.DATE: {
362
- changeViewButtonLabel =
363
- months[date.getMonth()] + ', ' + curYear.toString();
364
- break;
365
- }
366
- case SourceEvent.MONTH: {
367
- changeViewButtonLabel = curYear.toString();
368
- break;
369
- }
370
- case SourceEvent.YEAR: {
371
- changeViewButtonLabel =
372
- initYear.toString() + ' - ' + endYear.toString();
373
- break;
374
- }
375
- }
376
- let prevButtonComp = null;
377
- let nextButtonComp = null;
378
- prevButtonComp = (h("kup-button", { id: "prev-page", icon: "chevron_left", "onkup-button-click": () => this.prevPage() }));
379
- nextButtonComp = (h("kup-button", { id: "next-page", icon: "chevron_right", "onkup-button-click": () => this.nextPage() }));
380
- return (h("div", { id: "date-picker-div", ref: (el) => (this.pickerContainerEl = el) },
381
- h("div", { class: "section-1" },
382
- h("div", { class: "sub-1 nav" },
383
- prevButtonComp,
384
- h("kup-button", { customStyle: "#kup-component button {text-transform:capitalize}", id: "change-view-button", styling: FButtonStyling.FLAT, label: changeViewButtonLabel, "onkup-button-click": () => this.changeView() }),
385
- nextButtonComp)),
386
- h("div", { class: "section-2" }, this.createCalendar())));
387
- }
388
- createCalendar() {
389
- switch (this.calendarView) {
390
- case SourceEvent.DATE: {
391
- return this.createDaysCalendar();
392
- }
393
- case SourceEvent.MONTH: {
394
- return this.createMonthsCalendar();
395
- }
396
- case SourceEvent.YEAR: {
397
- return this.createYearsCalendar();
398
- }
399
- }
400
- }
401
- createDaysCalendar() {
402
- let days = getDaysOfWeekAsStringByLocale(this.firstDayIndex);
403
- let date = this.pickerEl.date;
404
- let selecteDate = new Date(date);
405
- let thead = [];
406
- let tbody = [];
407
- for (let index = 0; index < days.length; index++) {
408
- thead.push(h("th", null,
409
- h("span", { class: "item-text" }, days[index])));
410
- }
411
- let firstMonthDay = new Date(date.getFullYear(), date.getMonth(), 1);
412
- let lastMonthDay = new Date(date.getFullYear(), date.getMonth() + 1, 0);
413
- let finish = false;
414
- let currentDayIndex = this.firstDayIndex;
415
- let firstMonthDayIndex = firstMonthDay.getDay();
416
- let row = [];
417
- let daysForRowAdded = 0;
418
- while (!finish) {
419
- if (currentDayIndex == firstMonthDayIndex) {
420
- break;
421
- }
422
- row.push(h("td", { class: "item empty" }));
423
- currentDayIndex++;
424
- daysForRowAdded++;
425
- if (currentDayIndex > 6) {
426
- currentDayIndex = 0;
427
- }
428
- }
429
- let dayCount = 1;
430
- while (dayCount <= lastMonthDay.getDate()) {
431
- for (let i = daysForRowAdded; i < 7; i++) {
432
- let dayClass = 'item';
433
- let dataIndex = {
434
- 'data-index': date.getFullYear().toString() +
435
- '-' +
436
- fillString((date.getMonth() + 1).toString(), '0', 2, true) +
437
- '-' +
438
- fillString(dayCount.toString(), '0', 2, true),
439
- };
440
- if (dayCount === selecteDate.getDate() &&
441
- date.getMonth() === selecteDate.getMonth() &&
442
- date.getFullYear() === selecteDate.getFullYear()) {
443
- dayClass += ' selected';
444
- }
445
- row.push(h("td", { class: dayClass },
446
- h("span", Object.assign({}, dataIndex, { class: "item-number", onClick: () => {
447
- this.onKupDatePickerItemClick(dataIndex['data-index']);
448
- } }), dayCount)));
449
- dayCount++;
450
- if (dayCount > lastMonthDay.getDate()) {
451
- break;
452
- }
453
- }
454
- if (row.length > 0) {
455
- tbody.push(h("tr", null, row));
456
- row = [];
457
- }
458
- daysForRowAdded = 0;
459
- }
460
- return (h("table", { id: "calendar" },
461
- h("thead", null, thead),
462
- h("tbody", null, tbody)));
463
- }
464
- createMonthsCalendar() {
465
- let months = getMonthsAsStringByLocale(DateTimeFormatOptionsMonth.SHORT);
466
- let date = this.pickerEl.date;
467
- let selecteDate;
468
- if (this.value == null || this.value.trim() == '') {
469
- selecteDate = new Date();
470
- }
471
- else {
472
- selecteDate = new Date(this.value);
473
- }
474
- let tbody = [];
475
- let row = [];
476
- let monthCount = 0;
477
- while (monthCount < 12) {
478
- for (let i = 0; i < 4; i++) {
479
- let monthClass = 'item';
480
- let dataIndex = {
481
- 'data-index': date.getFullYear().toString() +
482
- '-' +
483
- fillString((monthCount + 1).toString(), '0', 2, true) +
484
- '-' +
485
- fillString(date.getDate().toString(), '0', 2, true),
486
- };
487
- if (monthCount === selecteDate.getMonth() &&
488
- date.getFullYear() == selecteDate.getFullYear()) {
489
- monthClass += ' selected';
490
- }
491
- row.push(h("td", { class: monthClass },
492
- h("span", Object.assign({}, dataIndex, { class: "item-number", onClick: () => {
493
- this.onKupDatePickerMonthYearItemClick(dataIndex['data-index']);
494
- } }), months[monthCount])));
495
- monthCount++;
496
- }
497
- if (row.length > 0) {
498
- tbody.push(h("tr", null, row));
499
- row = [];
500
- }
501
- }
502
- return (h("table", { id: "calendar" },
503
- h("tbody", null, tbody)));
504
- }
505
- createYearsCalendar() {
506
- let date = this.pickerEl.date;
507
- let curYear = date.getFullYear();
508
- let yearRange = this.getInitEndYear(curYear);
509
- let initYear = yearRange.initYear;
510
- let endYear = yearRange.endYear;
511
- let selecteDate;
512
- if (this.value == null || this.value.trim() == '') {
513
- selecteDate = new Date();
514
- }
515
- else {
516
- selecteDate = new Date(this.value);
517
- }
518
- let tbody = [];
519
- let row = [];
520
- let yearCount = initYear;
521
- while (yearCount <= endYear) {
522
- for (let i = 0; i < 4; i++) {
523
- let yearClass = 'item';
524
- let dataIndex = {
525
- 'data-index': yearCount.toString() +
526
- '-' +
527
- fillString((date.getMonth() + 1).toString(), '0', 2, true) +
528
- '-' +
529
- fillString(date.getDate().toString(), '0', 2, true),
530
- };
531
- if (yearCount === selecteDate.getFullYear()) {
532
- yearClass += ' selected';
533
- }
534
- row.push(h("td", { class: yearClass },
535
- h("span", Object.assign({}, dataIndex, { class: "item-number", onClick: () => {
536
- this.onKupDatePickerMonthYearItemClick(dataIndex['data-index']);
537
- } }), yearCount)));
538
- yearCount++;
539
- }
540
- if (row.length > 0) {
541
- tbody.push(h("tr", null, row));
542
- row = [];
543
- }
544
- }
545
- return (h("table", { id: "calendar" },
546
- h("tbody", null, tbody)));
547
- }
548
- changeView() {
549
- switch (this.calendarView) {
550
- case SourceEvent.DATE: {
551
- this.calendarView = SourceEvent.MONTH;
552
- break;
553
- }
554
- case SourceEvent.MONTH: {
555
- this.calendarView = SourceEvent.YEAR;
556
- break;
557
- }
558
- case SourceEvent.YEAR: {
559
- this.calendarView = SourceEvent.DATE;
560
- }
561
- }
562
- this.refresh();
563
- }
564
- prevPage() {
565
- let date = this.pickerEl.date;
566
- let yy = date.getFullYear();
567
- let mm = date.getMonth();
568
- if (this.calendarView == SourceEvent.DATE) {
569
- if (mm < 1) {
570
- mm = 11;
571
- yy--;
572
- }
573
- else {
574
- mm--;
575
- }
576
- }
577
- if (this.calendarView == SourceEvent.MONTH) {
578
- yy--;
579
- }
580
- if (this.calendarView == SourceEvent.YEAR) {
581
- let yearRange = this.getInitEndYear(yy);
582
- yy = yearRange.initYear - 1;
583
- }
584
- date.setFullYear(yy);
585
- date.setMonth(mm);
586
- this.pickerEl.value = date.toISOString();
587
- this.pickerEl.date = date;
588
- this.refresh();
589
- }
590
- nextPage() {
591
- let date = this.pickerEl.date;
592
- let yy = date.getFullYear();
593
- let mm = date.getMonth();
594
- if (this.calendarView == SourceEvent.DATE) {
595
- if (mm > 10) {
596
- mm = 0;
597
- yy++;
598
- }
599
- else {
600
- mm++;
601
- }
602
- }
603
- if (this.calendarView == SourceEvent.MONTH) {
604
- yy++;
605
- }
606
- if (this.calendarView == SourceEvent.YEAR) {
607
- let yearRange = this.getInitEndYear(yy);
608
- yy = yearRange.endYear + 1;
609
- }
610
- date.setFullYear(yy);
611
- date.setMonth(mm);
612
- this.pickerEl.value = date.toISOString();
613
- this.pickerEl.date = date;
614
- this.refresh();
340
+ const data = {
341
+ options: {
342
+ initialValue: this.value,
343
+ firstDayIndex: this.firstDayIndex,
344
+ resetStatus: true,
345
+ },
346
+ };
347
+ return (h("kup-card", { ref: (el) => (this.pickerContainerEl = el), data: data, layoutFamily: KupCardFamily.BUILT_IN, sizeX: "300px", sizeY: "300px", isMenu: true, "onkup-card-click": (ev) => {
348
+ if (ev.detail.value != null && ev.detail.value != '')
349
+ this.onKupDatePickerItemClick(ev.detail.value);
350
+ } }));
615
351
  }
616
352
  getDateForOutput() {
617
353
  if (this.value == null || this.value.trim() == '') {
@@ -624,6 +360,7 @@ export class KupDatePicker {
624
360
  /* L i f e c y c l e H o o k s */
625
361
  /*-------------------------------------------------*/
626
362
  componentWillLoad() {
363
+ this.kupManager.dates.register(this);
627
364
  this.kupManager.debug.logLoad(this, false);
628
365
  this.kupManager.theme.register(this);
629
366
  this.watchFirstDayIndex();
@@ -652,24 +389,16 @@ export class KupDatePicker {
652
389
  this.kupManager.debug.logRender(this, true);
653
390
  }
654
391
  render() {
655
- const hostClass = {};
656
- if (this.data &&
657
- this.data['kup-text-field'] &&
658
- this.data['kup-text-field']['className'] &&
659
- this.data['kup-text-field']['className'].indexOf('kup-full-height') > -1) {
660
- hostClass['kup-full-height'] = true;
661
- }
662
- if (this.data &&
663
- this.data['kup-text-field'] &&
664
- this.data['kup-text-field']['fullWidth']) {
665
- hostClass['kup-full-width'] = true;
666
- }
667
- return (h(Host, { class: hostClass },
392
+ return (h(Host, null,
668
393
  h("style", null, this.kupManager.theme.setKupStyle(this.rootElement)),
669
394
  h("div", { id: componentWrapperId }, this.prepTextfield(this.getDateForOutput()))));
670
395
  }
671
396
  disconnectedCallback() {
397
+ this.kupManager.dates.unregister(this);
672
398
  this.kupManager.theme.unregister(this);
399
+ if (this.pickerContainerEl) {
400
+ this.pickerContainerEl.remove();
401
+ }
673
402
  }
674
403
  static get is() { return "kup-date-picker"; }
675
404
  static get encapsulation() { return "shadow"; }
@@ -1,5 +1,5 @@
1
1
  import { Component, Element, Event, forceUpdate, h, Host, Method, Prop, State, } from '@stencil/core';
2
- import { kupManagerInstance, } from '../../utils/kup-manager/kup-manager';
2
+ import { kupManagerInstance, } from '../../managers/kup-manager/kup-manager';
3
3
  import { getProps, setProps } from '../../utils/utils';
4
4
  import { componentWrapperId } from '../../variables/GenericVariables';
5
5
  import { drawerClass, KupDrawerProps } from './kup-drawer-declarations';
@@ -1,5 +1,5 @@
1
1
  import { Component, Element, Event, forceUpdate, h, Host, Listen, Method, Prop, State, } from '@stencil/core';
2
- import { kupManagerInstance, } from '../../utils/kup-manager/kup-manager';
2
+ import { kupManagerInstance, } from '../../managers/kup-manager/kup-manager';
3
3
  import { ItemsDisplayMode } from '../kup-list/kup-list-declarations';
4
4
  import { consistencyCheck } from '../kup-list/kup-list-helper';
5
5
  import { KupDropdownButtonProps, } from './kup-dropdown-button-declarations';
@@ -7,7 +7,7 @@ import { FButtonStyling, } from '../../f-components/f-button/f-button-declaratio
7
7
  import { FButton } from '../../f-components/f-button/f-button';
8
8
  import { getProps, setProps } from '../../utils/utils';
9
9
  import { componentWrapperId } from '../../variables/GenericVariables';
10
- import { KupDynamicPositionPlacement } from '../../utils/kup-dynamic-position/kup-dynamic-position-declarations';
10
+ import { KupDynamicPositionPlacement } from '../../managers/kup-dynamic-position/kup-dynamic-position-declarations';
11
11
  export class KupDropdownButton {
12
12
  constructor() {
13
13
  /*-------------------------------------------------*/