@sme.up/ketchup 4.3.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 (343) hide show
  1. package/README.md +107 -3
  2. package/dist/cjs/{cell-utils-dc0884a3.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-2ba74fb5.js → f-button-02a7cde4.js} +2 -2
  5. package/dist/cjs/{f-cell-fe60a08d.js → f-cell-4d1450a8.js} +38 -28
  6. package/dist/cjs/f-chip-a50b9f00.js +130 -0
  7. package/dist/cjs/{f-image-d3bd4e08.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} +4636 -4073
  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-1a2688ca.js → kup-manager-5877b2ee.js} +3392 -753
  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/{builtin → built-in}/kup-card-calendar.js +1 -1
  49. package/dist/collection/components/kup-card/{builtin → built-in}/kup-card-clock.js +32 -32
  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 +11 -2
  54. package/dist/collection/components/kup-card/kup-card-declarations.js +14 -14
  55. package/dist/collection/components/kup-card/kup-card-helper.js +3 -3
  56. package/dist/collection/components/kup-card/kup-card.css +423 -137
  57. package/dist/collection/components/kup-card/kup-card.js +62 -11
  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 -0
  74. package/dist/collection/components/kup-data-table/kup-data-table.js +345 -158
  75. package/dist/collection/components/kup-date-picker/kup-date-picker.js +8 -5
  76. package/dist/collection/components/kup-drawer/kup-drawer.js +1 -1
  77. package/dist/collection/components/kup-dropdown-button/kup-dropdown-button.js +2 -2
  78. package/dist/collection/components/kup-echart/assets/maps/africa.json +6116 -0
  79. package/dist/collection/components/kup-echart/assets/maps/america.json +5416 -0
  80. package/dist/collection/components/kup-echart/assets/maps/asia.json +6053 -0
  81. package/dist/collection/components/kup-echart/assets/maps/europe.json +5051 -0
  82. package/dist/collection/components/kup-echart/assets/maps/italy.json +3562 -0
  83. package/dist/collection/components/kup-echart/assets/maps/oceania.json +1069 -0
  84. package/dist/collection/components/kup-echart/assets/maps/world.json +23685 -0
  85. package/dist/collection/components/kup-echart/kup-echart-declarations.js +45 -0
  86. package/dist/collection/components/kup-echart/kup-echart.css +13 -0
  87. package/dist/collection/components/kup-echart/kup-echart.js +1165 -0
  88. package/dist/collection/components/kup-field/kup-field.js +2 -2
  89. package/dist/collection/components/kup-gauge/kup-gauge.js +3 -3
  90. package/dist/collection/components/kup-grid/kup-grid.css +2 -2
  91. package/dist/collection/components/kup-grid/kup-grid.js +6 -5
  92. package/dist/collection/components/kup-iframe/kup-iframe.js +2 -2
  93. package/dist/collection/components/kup-image/assets/svg/science.svg +1 -0
  94. package/dist/collection/components/kup-image/kup-image.js +3 -3
  95. package/dist/collection/components/kup-lazy/kup-lazy.css +21 -11
  96. package/dist/collection/components/kup-lazy/kup-lazy.js +62 -3
  97. package/dist/collection/components/kup-list/kup-list-helper.js +7 -1
  98. package/dist/collection/components/kup-list/kup-list.css +3 -0
  99. package/dist/collection/components/kup-list/kup-list.js +219 -288
  100. package/dist/collection/components/kup-magic-box/kup-magic-box-declarations.js +11 -7
  101. package/dist/collection/components/kup-magic-box/kup-magic-box.js +90 -41
  102. package/dist/collection/components/kup-nav-bar/kup-nav-bar.js +1 -1
  103. package/dist/collection/components/kup-probe/kup-probe.js +1 -1
  104. package/dist/collection/components/kup-progress-bar/kup-progress-bar.js +1 -1
  105. package/dist/collection/components/kup-qlik/kup-qlik.js +1 -1
  106. package/dist/collection/components/kup-radio/kup-radio.js +1 -1
  107. package/dist/collection/components/kup-rating/kup-rating.js +1 -1
  108. package/dist/collection/components/kup-snackbar/kup-snackbar.js +1 -1
  109. package/dist/collection/components/kup-spinner/kup-spinner.js +1 -1
  110. package/dist/collection/components/kup-state/mock-store.js +1 -1
  111. package/dist/collection/components/kup-switch/kup-switch.js +1 -1
  112. package/dist/collection/components/kup-tab-bar/kup-tab-bar.js +3 -3
  113. package/dist/collection/components/kup-text-field/kup-text-field.css +2 -0
  114. package/dist/collection/components/kup-text-field/kup-text-field.js +2 -2
  115. package/dist/collection/components/kup-time-picker/kup-time-picker.js +8 -5
  116. package/dist/collection/components/kup-tooltip/kup-tooltip.js +3 -3
  117. package/dist/collection/components/kup-tree/kup-tree-declarations.js +0 -5
  118. package/dist/collection/components/kup-tree/kup-tree-faker.js +2 -3
  119. package/dist/collection/components/kup-tree/kup-tree.css +2 -0
  120. package/dist/collection/components/kup-tree/kup-tree.js +145 -70
  121. package/dist/collection/f-components/f-cell/f-cell-declarations.js +3 -1
  122. package/dist/collection/f-components/f-cell/f-cell.js +29 -19
  123. package/dist/collection/f-components/f-chip/f-chip.js +76 -87
  124. package/dist/collection/f-components/f-image/f-image.js +2 -2
  125. package/dist/collection/f-components/f-paginator/f-paginator-declarations.js +5 -0
  126. package/dist/collection/f-components/f-paginator/f-paginator-utils.js +28 -0
  127. package/dist/collection/f-components/f-paginator/f-paginator.js +91 -0
  128. package/dist/collection/f-components/f-text-field/f-text-field.js +4 -4
  129. package/dist/collection/managers/kup-data/kup-data-cell-helper.js +52 -0
  130. package/dist/collection/managers/kup-data/kup-data-column-helper.js +272 -0
  131. package/dist/collection/managers/kup-data/kup-data-declarations.js +9 -0
  132. package/dist/collection/managers/kup-data/kup-data-node-helper.js +72 -0
  133. package/dist/collection/managers/kup-data/kup-data-row-helper.js +28 -0
  134. package/dist/collection/managers/kup-data/kup-data.js +382 -0
  135. package/dist/collection/{utils → managers}/kup-dates/kup-dates-declarations.js +0 -0
  136. package/dist/collection/{utils → managers}/kup-dates/kup-dates.js +53 -19
  137. package/dist/collection/{utils → managers}/kup-debug/kup-debug-browser-utils.js +1 -1
  138. package/dist/collection/{utils → managers}/kup-debug/kup-debug-declarations.js +0 -0
  139. package/dist/collection/{utils → managers}/kup-debug/kup-debug.js +79 -124
  140. package/dist/collection/{utils → managers}/kup-dynamic-position/kup-dynamic-position-declarations.js +0 -0
  141. package/dist/collection/{utils → managers}/kup-dynamic-position/kup-dynamic-position.js +10 -1
  142. package/dist/collection/{utils → managers}/kup-interact/kup-interact-declarations.js +1 -0
  143. package/dist/collection/{utils → managers}/kup-interact/kup-interact.js +22 -13
  144. package/dist/collection/{utils → managers}/kup-language/kup-language-declarations.js +10 -0
  145. package/dist/collection/{utils → managers}/kup-language/kup-language.js +5 -5
  146. package/dist/collection/{utils → managers}/kup-manager/kup-manager-declarations.js +0 -0
  147. package/dist/collection/{utils → managers}/kup-manager/kup-manager.js +45 -4
  148. package/dist/collection/managers/kup-math/kup-math-declarations.js +13 -0
  149. package/dist/collection/managers/kup-math/kup-math-helper.js +39 -0
  150. package/dist/collection/managers/kup-math/kup-math.js +151 -0
  151. package/dist/collection/{utils → managers}/kup-objects/kup-objects-declarations.js +0 -0
  152. package/dist/collection/{utils → managers}/kup-objects/kup-objects.js +15 -0
  153. package/dist/collection/{utils → managers}/kup-scroll-on-hover/kup-scroll-on-hover-declarations.js +0 -0
  154. package/dist/collection/{utils → managers}/kup-scroll-on-hover/kup-scroll-on-hover.js +0 -0
  155. package/dist/collection/{utils → managers}/kup-search/kup-search-declarations.js +0 -0
  156. package/dist/collection/{utils → managers}/kup-search/kup-search.js +0 -0
  157. package/dist/collection/{utils → managers}/kup-theme/kup-theme-declarations.js +99 -0
  158. package/dist/collection/{utils → managers}/kup-theme/kup-theme.js +117 -68
  159. package/dist/collection/{utils → managers}/kup-toolbar/kup-toolbar-declarations.js +0 -0
  160. package/dist/collection/{utils → managers}/kup-toolbar/kup-toolbar.js +0 -0
  161. package/dist/collection/types/GenericTypes.js +48 -1
  162. package/dist/collection/utils/cell-utils.js +3 -4
  163. package/dist/collection/utils/filters/filters-column-menu.js +7 -7
  164. package/dist/collection/utils/filters/filters-rows.js +2 -2
  165. package/dist/collection/utils/filters/filters-tree-items.js +12 -12
  166. package/dist/collection/utils/filters/filters.js +3 -2
  167. package/dist/collection/utils/kup-column-menu/kup-column-menu-declarations.js +1 -0
  168. package/dist/collection/utils/kup-column-menu/kup-column-menu.js +100 -68
  169. package/dist/collection/utils/utils.js +4 -4
  170. package/dist/esm/{cell-utils-8f512ea9.js → cell-utils-571978d6.js} +4 -4
  171. package/dist/esm/{component-d2803feb.js → component-c4eb6153.js} +204 -170
  172. package/dist/esm/{f-button-30dbcaa9.js → f-button-b3011cc2.js} +2 -2
  173. package/dist/esm/{f-cell-95c186c6.js → f-cell-b88b2731.js} +38 -28
  174. package/dist/esm/f-chip-a52489ec.js +128 -0
  175. package/dist/esm/{f-image-3bc8b24f.js → f-image-5e5ed7e2.js} +3 -3
  176. package/dist/esm/{index-e0e67c23.js → index-78f3699d.js} +23 -0
  177. package/dist/esm/ketchup.js +3 -3
  178. package/dist/esm/kup-accordion.entry.js +7 -7
  179. package/dist/esm/{kup-autocomplete_28.entry.js → kup-autocomplete_27.entry.js} +4420 -3856
  180. package/dist/esm/kup-calendar.entry.js +626 -359
  181. package/dist/esm/kup-cell.entry.js +15 -13
  182. package/dist/esm/kup-dash-list.entry.js +4 -4
  183. package/dist/esm/kup-dash_2.entry.js +8 -7
  184. package/dist/esm/kup-drawer.entry.js +3 -3
  185. package/dist/esm/kup-echart.entry.js +93035 -0
  186. package/dist/esm/kup-field.entry.js +2 -2
  187. package/dist/esm/kup-iframe.entry.js +3 -3
  188. package/dist/esm/kup-lazy.entry.js +22 -5
  189. package/dist/esm/kup-magic-box.entry.js +95 -42
  190. package/dist/esm/{kup-manager-7fc234da.js → kup-manager-1f76a3ef.js} +3388 -753
  191. package/dist/esm/kup-nav-bar.entry.js +3 -3
  192. package/dist/esm/kup-probe.entry.js +2 -2
  193. package/dist/esm/kup-qlik.entry.js +2 -2
  194. package/dist/esm/kup-snackbar.entry.js +5 -5
  195. package/dist/esm/loader.js +3 -3
  196. package/dist/esm/polyfills/css-shim.js +1 -1
  197. package/dist/esm/{tslib.es6-e6137777.js → tslib.es6-8f2d44b6.js} +13 -1
  198. package/dist/esm/utils-93ae800f.js +461 -0
  199. package/dist/ketchup/assets/maps/africa.json +6116 -0
  200. package/dist/ketchup/assets/maps/america.json +5416 -0
  201. package/dist/ketchup/assets/maps/asia.json +6053 -0
  202. package/dist/ketchup/assets/maps/europe.json +5051 -0
  203. package/dist/ketchup/assets/maps/italy.json +3562 -0
  204. package/dist/ketchup/assets/maps/oceania.json +1069 -0
  205. package/dist/ketchup/assets/maps/world.json +23685 -0
  206. package/dist/ketchup/assets/svg/science.svg +1 -0
  207. package/dist/ketchup/ketchup.esm.js +1 -1
  208. package/dist/ketchup/{p-a878016f.entry.js → p-088a886c.entry.js} +1 -1
  209. package/dist/ketchup/p-135cabdc.entry.js +1 -0
  210. package/dist/ketchup/{p-1c6178e4.entry.js → p-1c1e830f.entry.js} +1 -1
  211. package/dist/ketchup/{p-62816d0b.entry.js → p-29208220.entry.js} +1 -1
  212. package/dist/ketchup/{p-ca0ca27f.entry.js → p-2b9f2019.entry.js} +1 -1
  213. package/dist/ketchup/p-52d0582a.js +1 -0
  214. package/dist/ketchup/p-554bd5f0.entry.js +39 -0
  215. package/dist/ketchup/{p-de83f2f6.js → p-5f52e313.js} +1 -1
  216. package/dist/ketchup/{p-ccda584a.entry.js → p-65449480.entry.js} +1 -1
  217. package/dist/ketchup/p-79cf3874.entry.js +1 -0
  218. package/dist/ketchup/p-7a85cda4.js +1 -0
  219. package/dist/ketchup/p-84cce555.entry.js +27 -0
  220. package/dist/ketchup/p-8c44c3b9.js +135 -0
  221. package/dist/ketchup/{p-65adc15b.entry.js → p-9d49cdb2.entry.js} +1 -1
  222. package/dist/ketchup/{p-5a4a5fdc.js → p-a0b1d769.js} +1 -1
  223. package/dist/ketchup/{p-dbb6998b.entry.js → p-a2b6672e.entry.js} +1 -1
  224. package/dist/ketchup/{p-a378ba56.entry.js → p-a4be630b.entry.js} +1 -1
  225. package/dist/ketchup/p-c072b270.js +1 -0
  226. package/dist/ketchup/{p-1baf1205.entry.js → p-c648972c.entry.js} +1 -1
  227. package/dist/ketchup/{p-af4a6191.entry.js → p-d67d39c0.entry.js} +1 -1
  228. package/dist/ketchup/p-d6e2f2b0.entry.js +1 -0
  229. package/dist/ketchup/{p-44375e49.js → p-da387e0e.js} +1 -1
  230. package/dist/ketchup/p-e5c9ec9e.js +1 -0
  231. package/dist/ketchup/{p-cb5f4994.js → p-ed0b8666.js} +0 -0
  232. package/dist/ketchup/p-ef539eda.js +9 -0
  233. package/dist/ketchup/p-f316234c.entry.js +143 -0
  234. package/dist/types/components/kup-accordion/kup-accordion-declarations.d.ts +2 -2
  235. package/dist/types/components/kup-autocomplete/kup-autocomplete-declarations.d.ts +6 -0
  236. package/dist/types/components/kup-autocomplete/kup-autocomplete.d.ts +29 -22
  237. package/dist/types/components/kup-box/kup-box-declarations.d.ts +7 -11
  238. package/dist/types/components/kup-box/kup-box.d.ts +4 -4
  239. package/dist/types/components/kup-button-list/kup-button-list-declarations.d.ts +6 -1
  240. package/dist/types/components/kup-button-list/kup-button-list.d.ts +4 -3
  241. package/dist/types/components/kup-calendar/kup-calendar-declarations.d.ts +28 -10
  242. package/dist/types/components/kup-calendar/kup-calendar.d.ts +19 -47
  243. package/dist/types/components/kup-card/built-in/kup-card-built-in.d.ts +27 -0
  244. package/dist/types/components/kup-card/{builtin → built-in}/kup-card-calendar.d.ts +0 -0
  245. package/dist/types/components/kup-card/{builtin → built-in}/kup-card-clock.d.ts +0 -0
  246. package/dist/types/components/kup-card/built-in/kup-card-column-drop-menu.d.ts +3 -0
  247. package/dist/types/components/kup-card/free/kup-card-free.d.ts +7 -1
  248. package/dist/types/components/kup-card/kup-card-declarations.d.ts +46 -21
  249. package/dist/types/components/kup-card/kup-card.d.ts +9 -2
  250. package/dist/types/components/kup-cell/kup-cell.d.ts +3 -3
  251. package/dist/types/components/kup-chart/kup-chart-builder.d.ts +5 -5
  252. package/dist/types/components/kup-chart/kup-chart-declarations.d.ts +3 -3
  253. package/dist/types/components/kup-chart/kup-chart.d.ts +2 -2
  254. package/dist/types/components/kup-chip/kup-chip-declarations.d.ts +6 -3
  255. package/dist/types/components/kup-chip/kup-chip.d.ts +9 -13
  256. package/dist/types/components/kup-color-picker/kup-color-picker.d.ts +7 -3
  257. package/dist/types/components/kup-combobox/kup-combobox-declarations.d.ts +4 -0
  258. package/dist/types/components/kup-combobox/kup-combobox.d.ts +11 -33
  259. package/dist/types/components/kup-dash-list/kup-dash-list.d.ts +2 -2
  260. package/dist/types/components/kup-data-table/kup-data-table-declarations.d.ts +45 -104
  261. package/dist/types/components/kup-data-table/kup-data-table-helper.d.ts +8 -11
  262. package/dist/types/components/kup-data-table/kup-data-table.d.ts +49 -27
  263. package/dist/types/components/kup-echart/kup-echart-declarations.d.ts +55 -0
  264. package/dist/types/components/kup-echart/kup-echart.d.ts +100 -0
  265. package/dist/types/components/kup-lazy/kup-lazy.d.ts +13 -1
  266. package/dist/types/components/kup-list/kup-list-declarations.d.ts +2 -1
  267. package/dist/types/components/kup-list/kup-list.d.ts +4 -35
  268. package/dist/types/components/kup-magic-box/kup-magic-box-declarations.d.ts +6 -10
  269. package/dist/types/components/kup-magic-box/kup-magic-box.d.ts +7 -11
  270. package/dist/types/components/kup-tooltip/kup-tooltip-declarations.d.ts +11 -13
  271. package/dist/types/components/kup-tree/kup-tree-declarations.d.ts +14 -35
  272. package/dist/types/components/kup-tree/kup-tree-faker.d.ts +10 -10
  273. package/dist/types/components/kup-tree/kup-tree.d.ts +45 -35
  274. package/dist/types/components.d.ts +305 -186
  275. package/dist/types/f-components/f-cell/f-cell-declarations.d.ts +11 -10
  276. package/dist/types/f-components/f-chip/f-chip-declarations.d.ts +7 -22
  277. package/dist/types/f-components/f-paginator/f-paginator-declarations.d.ts +22 -0
  278. package/dist/types/f-components/f-paginator/f-paginator-utils.d.ts +2 -0
  279. package/dist/types/f-components/f-paginator/f-paginator.d.ts +3 -0
  280. package/dist/types/managers/kup-data/kup-data-cell-helper.d.ts +24 -0
  281. package/dist/types/managers/kup-data/kup-data-column-helper.d.ts +31 -0
  282. package/dist/types/managers/kup-data/kup-data-declarations.d.ts +160 -0
  283. package/dist/types/managers/kup-data/kup-data-node-helper.d.ts +23 -0
  284. package/dist/types/managers/kup-data/kup-data-row-helper.d.ts +14 -0
  285. package/dist/types/managers/kup-data/kup-data.d.ts +77 -0
  286. package/dist/types/{utils → managers}/kup-dates/kup-dates-declarations.d.ts +0 -0
  287. package/dist/types/{utils → managers}/kup-dates/kup-dates.d.ts +24 -2
  288. package/dist/types/{utils → managers}/kup-debug/kup-debug-declarations.d.ts +0 -0
  289. package/dist/types/{utils → managers}/kup-debug/kup-debug.d.ts +6 -13
  290. package/dist/types/{utils → managers}/kup-dynamic-position/kup-dynamic-position-declarations.d.ts +1 -0
  291. package/dist/types/{utils → managers}/kup-dynamic-position/kup-dynamic-position.d.ts +0 -0
  292. package/dist/types/{utils → managers}/kup-interact/kup-interact-declarations.d.ts +9 -8
  293. package/dist/types/{utils → managers}/kup-interact/kup-interact.d.ts +7 -6
  294. package/dist/types/{utils → managers}/kup-language/kup-language-declarations.d.ts +11 -1
  295. package/dist/types/{utils → managers}/kup-language/kup-language.d.ts +3 -3
  296. package/dist/types/{utils → managers}/kup-manager/kup-manager-declarations.d.ts +21 -2
  297. package/dist/types/{utils → managers}/kup-manager/kup-manager.d.ts +4 -0
  298. package/dist/types/managers/kup-math/kup-math-declarations.d.ts +21 -0
  299. package/dist/types/managers/kup-math/kup-math-helper.d.ts +17 -0
  300. package/dist/types/managers/kup-math/kup-math.d.ts +60 -0
  301. package/dist/types/{utils → managers}/kup-objects/kup-objects-declarations.d.ts +0 -0
  302. package/dist/types/{utils → managers}/kup-objects/kup-objects.d.ts +6 -0
  303. package/dist/types/{utils → managers}/kup-scroll-on-hover/kup-scroll-on-hover-declarations.d.ts +0 -0
  304. package/dist/types/{utils → managers}/kup-scroll-on-hover/kup-scroll-on-hover.d.ts +0 -0
  305. package/dist/types/{utils → managers}/kup-search/kup-search-declarations.d.ts +0 -0
  306. package/dist/types/{utils → managers}/kup-search/kup-search.d.ts +0 -0
  307. package/dist/types/{utils → managers}/kup-theme/kup-theme-declarations.d.ts +37 -1
  308. package/dist/types/{utils → managers}/kup-theme/kup-theme.d.ts +19 -19
  309. package/dist/types/{utils → managers}/kup-toolbar/kup-toolbar-declarations.d.ts +0 -0
  310. package/dist/types/{utils → managers}/kup-toolbar/kup-toolbar.d.ts +0 -0
  311. package/dist/types/stencil-public-runtime.d.ts +6 -4
  312. package/dist/types/types/GenericTypes.d.ts +53 -6
  313. package/dist/types/utils/cell-utils.d.ts +7 -6
  314. package/dist/types/utils/filters/filters-column-menu.d.ts +16 -16
  315. package/dist/types/utils/filters/filters-rows.d.ts +10 -10
  316. package/dist/types/utils/filters/filters-tree-items.d.ts +7 -7
  317. package/dist/types/utils/helpers.d.ts +2 -2
  318. package/dist/types/utils/kup-column-menu/kup-column-menu-declarations.d.ts +1 -0
  319. package/dist/types/utils/kup-column-menu/kup-column-menu.d.ts +27 -33
  320. package/dist/types/utils/utils.d.ts +4 -2
  321. package/package.json +31 -26
  322. package/dist/cjs/f-chip-90d95d22.js +0 -141
  323. package/dist/cjs/utils-0cc466b9.js +0 -1492
  324. package/dist/collection/components/kup-card/builtin/kup-card-builtin.js +0 -20
  325. package/dist/collection/components/kup-paginator/kup-paginator-declarations.js +0 -5
  326. package/dist/collection/components/kup-paginator/kup-paginator.css +0 -46
  327. package/dist/collection/components/kup-paginator/kup-paginator.js +0 -408
  328. package/dist/esm/f-chip-c0e9c0ff.js +0 -139
  329. package/dist/esm/utils-6c73709d.js +0 -1470
  330. package/dist/ketchup/p-15321eae.js +0 -1
  331. package/dist/ketchup/p-5a5f2a53.js +0 -1
  332. package/dist/ketchup/p-61faaa38.js +0 -8
  333. package/dist/ketchup/p-7e23ea7c.entry.js +0 -1
  334. package/dist/ketchup/p-9d02a676.js +0 -134
  335. package/dist/ketchup/p-a96e6e32.entry.js +0 -1
  336. package/dist/ketchup/p-ad32821e.entry.js +0 -1
  337. package/dist/ketchup/p-c18c7bb0.entry.js +0 -27
  338. package/dist/ketchup/p-d4aa4922.js +0 -1
  339. package/dist/ketchup/p-ec3a3db9.js +0 -1
  340. package/dist/ketchup/p-ecccb3a4.entry.js +0 -45
  341. package/dist/types/components/kup-card/builtin/kup-card-builtin.d.ts +0 -14
  342. package/dist/types/components/kup-paginator/kup-paginator-declarations.d.ts +0 -11
  343. package/dist/types/components/kup-paginator/kup-paginator.d.ts +0 -48
@@ -1,4 +1,4 @@
1
- import { Component, Element, Event, forceUpdate, getAssetPath, h, Host, Method, Prop, } from '@stencil/core';
1
+ import { Component, Element, Event, forceUpdate, getAssetPath, h, Host, Method, Prop, Watch, } from '@stencil/core';
2
2
  import { Calendar, } from '@fullcalendar/core';
3
3
  import dayGridPlugin from '@fullcalendar/daygrid';
4
4
  import interactionPlugin from '@fullcalendar/interaction';
@@ -11,21 +11,26 @@ import itLocale from '@fullcalendar/core/locales/it';
11
11
  import plLocale from '@fullcalendar/core/locales/pl';
12
12
  import ruLocale from '@fullcalendar/core/locales/ru';
13
13
  import zhLocale from '@fullcalendar/core/locales/zh-cn';
14
- import { kupManagerInstance, } from '../../utils/kup-manager/kup-manager';
14
+ import { kupManagerInstance, } from '../../managers/kup-manager/kup-manager';
15
15
  import { getColumnByName } from '../../utils/cell-utils';
16
16
  import { componentWrapperId } from '../../variables/GenericVariables';
17
17
  import { FButton } from '../../f-components/f-button/f-button';
18
18
  import { getProps, setProps } from '../../utils/utils';
19
- import { KupCalendarProps, KupCalendarViewTypes, } from './kup-calendar-declarations';
19
+ import { KupCalendarOptions, KupCalendarProps, KupCalendarViewTypes, } from './kup-calendar-declarations';
20
20
  import { FChip } from '../../f-components/f-chip/f-chip';
21
21
  import { FChipType, } from '../../f-components/f-chip/f-chip-declarations';
22
- import { KupLanguageGeneric } from '../../utils/kup-language/kup-language-declarations';
23
- import { KupDatesLocales } from '../../utils/kup-dates/kup-dates-declarations';
22
+ import { KupLanguageGeneric } from '../../managers/kup-language/kup-language-declarations';
23
+ import { KupDatesLocales } from '../../managers/kup-dates/kup-dates-declarations';
24
24
  export class KupCalendar {
25
25
  constructor() {
26
26
  /*-------------------------------------------------*/
27
27
  /* P r o p s */
28
28
  /*-------------------------------------------------*/
29
+ /**
30
+ * Sets the initial date of the calendar. Must be in ISO format (YYYY-MM-DD).
31
+ * @default null
32
+ */
33
+ this.currentDate = null;
29
34
  /**
30
35
  * Custom style of the component.
31
36
  * @default ""
@@ -37,51 +42,11 @@ export class KupCalendar {
37
42
  * @default null
38
43
  */
39
44
  this.data = null;
40
- /**
41
- * Column containing events' dates.
42
- * @default null
43
- */
44
- this.dateCol = null;
45
- /**
46
- * Column containing events' descriptions.
47
- * @default null
48
- */
49
- this.descrCol = null;
50
- /**
51
- * Column containing events' ending time.
52
- * @default null
53
- */
54
- this.endCol = null;
55
45
  /**
56
46
  * When disabled, the navigation toolbar won't be displayed.
57
47
  * @default false
58
48
  */
59
49
  this.hideNavigation = false;
60
- /**
61
- * Column containing events' icons. There can be multiple icons, divided by ";".
62
- * @default null
63
- */
64
- this.iconCol = null;
65
- /**
66
- * Column containing events' images. There can be multiple images, divided by ";".
67
- * @default null
68
- */
69
- this.imageCol = null;
70
- /**
71
- * Sets the initial date of the calendar. Must be in ISO format (YYYY-MM-DD).
72
- * @default null
73
- */
74
- this.initialDate = null;
75
- /**
76
- * Column containing events' starting time.
77
- * @default null
78
- */
79
- this.startCol = null;
80
- /**
81
- * Column containing events' CSS styles.
82
- * @default null
83
- */
84
- this.styleCol = null;
85
50
  /**
86
51
  * Type of the view.
87
52
  * @default KupCalendarViewTypes.MONTH
@@ -91,6 +56,142 @@ export class KupCalendar {
91
56
  this.kupManager = kupManagerInstance();
92
57
  this.navTitle = null;
93
58
  this.resizeTimeout = null;
59
+ this.dateCol = null;
60
+ this.descrCol = null;
61
+ this.endCol = null;
62
+ this.iconCol = null;
63
+ this.imageCol = null;
64
+ this.startCol = null;
65
+ this.styleCol = null;
66
+ }
67
+ /*-------------------------------------------------*/
68
+ /* W a t c h e r s */
69
+ /*-------------------------------------------------*/
70
+ setCalendarData() {
71
+ if (this.calendar) {
72
+ this.calendar.destroy();
73
+ }
74
+ for (let index = 0; this.data && this.data.columns && index < this.data.columns.length; index++) {
75
+ const column = this.data.columns[index];
76
+ switch (column.calendarOption) {
77
+ case KupCalendarOptions.DATE:
78
+ this.dateCol = column.name;
79
+ break;
80
+ case KupCalendarOptions.DESCR:
81
+ this.descrCol = column.name;
82
+ break;
83
+ case KupCalendarOptions.END:
84
+ this.endCol = column.name;
85
+ break;
86
+ case KupCalendarOptions.ICON:
87
+ this.iconCol = column.name;
88
+ break;
89
+ case KupCalendarOptions.IMAGE:
90
+ this.imageCol = column.name;
91
+ break;
92
+ case KupCalendarOptions.START:
93
+ this.startCol = column.name;
94
+ break;
95
+ case KupCalendarOptions.STYLE:
96
+ this.styleCol = column.name;
97
+ break;
98
+ }
99
+ }
100
+ this.calendar = new Calendar(this.calendarContainer, {
101
+ dateClick: ({ date }) => {
102
+ this.kupCalendarDateClick.emit({
103
+ comp: this,
104
+ id: this.rootElement.id,
105
+ date: date,
106
+ });
107
+ },
108
+ editable: true,
109
+ eventClick: ({ event }) => {
110
+ this.kupCalendarEventClick.emit({
111
+ comp: this,
112
+ id: this.rootElement.id,
113
+ row: event.extendedProps.row,
114
+ });
115
+ },
116
+ eventDidMount: (info) => {
117
+ if (this.iconCol) {
118
+ const row = info.event.extendedProps.row;
119
+ const cell = row.cells[this.iconCol];
120
+ if (cell && cell.value) {
121
+ const wrapper = document.createElement('div');
122
+ wrapper.classList.add('icon-wrapper');
123
+ cell.value.split(';').forEach((icon) => {
124
+ const span = document.createElement('span');
125
+ span.className = 'custom-icon';
126
+ const path = getAssetPath(`./assets/svg/${icon}.svg`);
127
+ span.style.mask = `url('${path}') no-repeat center`;
128
+ span.style.webkitMask = `url('${path}') no-repeat center`;
129
+ wrapper.appendChild(span);
130
+ });
131
+ info.el.appendChild(wrapper);
132
+ }
133
+ }
134
+ if (this.imageCol) {
135
+ const row = info.event.extendedProps.row;
136
+ const cell = row.cells[this.imageCol];
137
+ if (cell && cell.value) {
138
+ const wrapper = document.createElement('div');
139
+ wrapper.classList.add('image-wrapper');
140
+ cell.value.split(';').forEach((icon) => {
141
+ const img = document.createElement('img');
142
+ img.src = icon;
143
+ wrapper.appendChild(img);
144
+ });
145
+ info.el.appendChild(wrapper);
146
+ }
147
+ }
148
+ if (this.styleCol) {
149
+ const row = info.event.extendedProps.row;
150
+ const cell = row.cells[this.styleCol];
151
+ const eventCell = info.el.children[0];
152
+ const parent = eventCell.parentElement;
153
+ if (cell && cell.style) {
154
+ Object.keys(cell.style).forEach((k) => {
155
+ parent.style[k] = cell.style[k];
156
+ });
157
+ }
158
+ }
159
+ },
160
+ eventDrop: ({ event, oldEvent }) => {
161
+ this.kupCalendarEventDrop.emit({
162
+ comp: this,
163
+ id: this.rootElement.id,
164
+ fromDate: {
165
+ start: oldEvent.start,
166
+ end: oldEvent.end,
167
+ },
168
+ toDate: {
169
+ start: event.start,
170
+ end: event.end,
171
+ },
172
+ });
173
+ },
174
+ events: this.getEvents(),
175
+ headerToolbar: false,
176
+ initialDate: this.currentDate,
177
+ initialView: this.viewType,
178
+ locale: this.getLocale(),
179
+ locales: [
180
+ esLocale,
181
+ frLocale,
182
+ itLocale,
183
+ plLocale,
184
+ ruLocale,
185
+ zhLocale,
186
+ ],
187
+ plugins: [
188
+ dayGridPlugin,
189
+ interactionPlugin,
190
+ listPlugin,
191
+ timeGridPlugin,
192
+ ],
193
+ });
194
+ this.calendar.render();
94
195
  }
95
196
  /*-------------------------------------------------*/
96
197
  /* P u b l i c M e t h o d s */
@@ -173,9 +274,9 @@ export class KupCalendar {
173
274
  for (const key in KupCalendarViewTypes) {
174
275
  const view = KupCalendarViewTypes[key];
175
276
  const chipData = {
176
- value: key,
177
- label: this.kupManager.language.translate(KupLanguageGeneric[key]),
178
277
  checked: this.viewType === view ? true : false,
278
+ value: this.kupManager.language.translate(KupLanguageGeneric[key]),
279
+ id: key,
179
280
  };
180
281
  props.data.push(chipData);
181
282
  props.onClick.push(() => this.changeView(view));
@@ -236,7 +337,7 @@ export class KupCalendar {
236
337
  const to = this.kupManager.dates
237
338
  .subtract(this.calendar.view.currentEnd, 1, 'day')
238
339
  .toDate();
239
- this.kupCalendarViewChanged.emit({
340
+ this.kupCalendarViewChange.emit({
240
341
  comp: this,
241
342
  id: this.rootElement.id,
242
343
  from: this.calendar.view.currentStart,
@@ -254,105 +355,13 @@ export class KupCalendar {
254
355
  /* L i f e c y c l e H o o k s */
255
356
  /*-------------------------------------------------*/
256
357
  componentWillLoad() {
358
+ this.kupManager.dates.register(this);
257
359
  this.kupManager.debug.logLoad(this, false);
258
360
  this.kupManager.language.register(this);
259
361
  this.kupManager.theme.register(this);
260
362
  }
261
363
  componentDidLoad() {
262
- this.calendar = new Calendar(this.calendarContainer, {
263
- dateClick: ({ date }) => {
264
- this.kupCalendarDateClicked.emit({
265
- comp: this,
266
- id: this.rootElement.id,
267
- date: date,
268
- });
269
- },
270
- editable: true,
271
- eventClick: ({ event }) => {
272
- this.kupCalendarEventClicked.emit({
273
- comp: this,
274
- id: this.rootElement.id,
275
- row: event.extendedProps.row,
276
- });
277
- },
278
- eventDidMount: (info) => {
279
- if (this.styleCol) {
280
- const row = info.event.extendedProps.row;
281
- const cell = row.cells[this.styleCol];
282
- const eventCell = info.el.children[0];
283
- if (cell && cell.style) {
284
- Object.keys(cell.style).forEach((k) => {
285
- eventCell.style[k] = cell.style[k];
286
- });
287
- }
288
- }
289
- if (this.iconCol) {
290
- const row = info.event.extendedProps.row;
291
- const cell = row.cells[this.iconCol];
292
- if (cell && cell.value) {
293
- const wrapper = document.createElement('div');
294
- wrapper.classList.add('icon-wrapper');
295
- cell.value.split(';').forEach((icon) => {
296
- const span = document.createElement('span');
297
- span.className = 'custom-icon';
298
- const path = getAssetPath(`./assets/svg/${icon}.svg`);
299
- span.style.mask = `url('${path}') no-repeat center`;
300
- span.style.webkitMask = `url('${path}') no-repeat center`;
301
- wrapper.appendChild(span);
302
- });
303
- info.el.appendChild(wrapper);
304
- }
305
- }
306
- if (this.imageCol) {
307
- const row = info.event.extendedProps.row;
308
- const cell = row.cells[this.imageCol];
309
- if (cell && cell.value) {
310
- const wrapper = document.createElement('div');
311
- wrapper.classList.add('image-wrapper');
312
- cell.value.split(';').forEach((icon) => {
313
- const img = document.createElement('img');
314
- img.src = icon;
315
- wrapper.appendChild(img);
316
- });
317
- info.el.appendChild(wrapper);
318
- }
319
- }
320
- },
321
- eventDrop: ({ event, oldEvent }) => {
322
- this.kupCalendarEventDropped.emit({
323
- comp: this,
324
- id: this.rootElement.id,
325
- fromDate: {
326
- start: oldEvent.start,
327
- end: oldEvent.end,
328
- },
329
- toDate: {
330
- start: event.start,
331
- end: event.end,
332
- },
333
- });
334
- },
335
- events: this.getEvents(),
336
- headerToolbar: false,
337
- initialDate: this.initialDate,
338
- initialView: this.viewType,
339
- locale: this.getLocale(),
340
- locales: [
341
- esLocale,
342
- frLocale,
343
- itLocale,
344
- plLocale,
345
- ruLocale,
346
- zhLocale,
347
- ],
348
- plugins: [
349
- dayGridPlugin,
350
- interactionPlugin,
351
- listPlugin,
352
- timeGridPlugin,
353
- ],
354
- });
355
- this.calendar.render();
364
+ this.setCalendarData();
356
365
  this.updateCalendar();
357
366
  this.kupManager.resize.observe(this.rootElement);
358
367
  this.kupManager.debug.logLoad(this, true);
@@ -386,6 +395,7 @@ export class KupCalendar {
386
395
  if (this.calendar) {
387
396
  this.calendar.destroy();
388
397
  }
398
+ this.kupManager.dates.unregister(this);
389
399
  this.kupManager.language.unregister(this);
390
400
  this.kupManager.resize.unobserve(this.rootElement);
391
401
  this.kupManager.theme.unregister(this);
@@ -399,55 +409,7 @@ export class KupCalendar {
399
409
  "$": ["kup-calendar.css"]
400
410
  }; }
401
411
  static get properties() { return {
402
- "customStyle": {
403
- "type": "string",
404
- "mutable": false,
405
- "complexType": {
406
- "original": "string",
407
- "resolved": "string",
408
- "references": {}
409
- },
410
- "required": false,
411
- "optional": false,
412
- "docs": {
413
- "tags": [{
414
- "name": "default",
415
- "text": "\"\""
416
- }, {
417
- "name": "see",
418
- "text": "https://ketchup.smeup.com/ketchup-showcase/#/customization"
419
- }],
420
- "text": "Custom style of the component."
421
- },
422
- "attribute": "custom-style",
423
- "reflect": false,
424
- "defaultValue": "''"
425
- },
426
- "data": {
427
- "type": "unknown",
428
- "mutable": false,
429
- "complexType": {
430
- "original": "TableData",
431
- "resolved": "TableData",
432
- "references": {
433
- "TableData": {
434
- "location": "import",
435
- "path": "../kup-data-table/kup-data-table-declarations"
436
- }
437
- }
438
- },
439
- "required": false,
440
- "optional": false,
441
- "docs": {
442
- "tags": [{
443
- "name": "default",
444
- "text": "null"
445
- }],
446
- "text": "Actual data of the calendar."
447
- },
448
- "defaultValue": "null"
449
- },
450
- "dateCol": {
412
+ "currentDate": {
451
413
  "type": "string",
452
414
  "mutable": false,
453
415
  "complexType": {
@@ -462,13 +424,13 @@ export class KupCalendar {
462
424
  "name": "default",
463
425
  "text": "null"
464
426
  }],
465
- "text": "Column containing events' dates."
427
+ "text": "Sets the initial date of the calendar. Must be in ISO format (YYYY-MM-DD)."
466
428
  },
467
- "attribute": "date-col",
429
+ "attribute": "current-date",
468
430
  "reflect": false,
469
431
  "defaultValue": "null"
470
432
  },
471
- "descrCol": {
433
+ "customStyle": {
472
434
  "type": "string",
473
435
  "mutable": false,
474
436
  "complexType": {
@@ -481,21 +443,29 @@ export class KupCalendar {
481
443
  "docs": {
482
444
  "tags": [{
483
445
  "name": "default",
484
- "text": "null"
446
+ "text": "\"\""
447
+ }, {
448
+ "name": "see",
449
+ "text": "https://ketchup.smeup.com/ketchup-showcase/#/customization"
485
450
  }],
486
- "text": "Column containing events' descriptions."
451
+ "text": "Custom style of the component."
487
452
  },
488
- "attribute": "descr-col",
453
+ "attribute": "custom-style",
489
454
  "reflect": false,
490
- "defaultValue": "null"
455
+ "defaultValue": "''"
491
456
  },
492
- "endCol": {
493
- "type": "string",
457
+ "data": {
458
+ "type": "unknown",
494
459
  "mutable": false,
495
460
  "complexType": {
496
- "original": "string",
497
- "resolved": "string",
498
- "references": {}
461
+ "original": "KupCalendarData",
462
+ "resolved": "KupCalendarData",
463
+ "references": {
464
+ "KupCalendarData": {
465
+ "location": "import",
466
+ "path": "./kup-calendar-declarations"
467
+ }
468
+ }
499
469
  },
500
470
  "required": false,
501
471
  "optional": false,
@@ -504,10 +474,8 @@ export class KupCalendar {
504
474
  "name": "default",
505
475
  "text": "null"
506
476
  }],
507
- "text": "Column containing events' ending time."
477
+ "text": "Actual data of the calendar."
508
478
  },
509
- "attribute": "end-col",
510
- "reflect": false,
511
479
  "defaultValue": "null"
512
480
  },
513
481
  "hideNavigation": {
@@ -531,111 +499,6 @@ export class KupCalendar {
531
499
  "reflect": false,
532
500
  "defaultValue": "false"
533
501
  },
534
- "iconCol": {
535
- "type": "string",
536
- "mutable": false,
537
- "complexType": {
538
- "original": "string",
539
- "resolved": "string",
540
- "references": {}
541
- },
542
- "required": false,
543
- "optional": false,
544
- "docs": {
545
- "tags": [{
546
- "name": "default",
547
- "text": "null"
548
- }],
549
- "text": "Column containing events' icons. There can be multiple icons, divided by \";\"."
550
- },
551
- "attribute": "icon-col",
552
- "reflect": false,
553
- "defaultValue": "null"
554
- },
555
- "imageCol": {
556
- "type": "string",
557
- "mutable": false,
558
- "complexType": {
559
- "original": "string",
560
- "resolved": "string",
561
- "references": {}
562
- },
563
- "required": false,
564
- "optional": false,
565
- "docs": {
566
- "tags": [{
567
- "name": "default",
568
- "text": "null"
569
- }],
570
- "text": "Column containing events' images. There can be multiple images, divided by \";\"."
571
- },
572
- "attribute": "image-col",
573
- "reflect": false,
574
- "defaultValue": "null"
575
- },
576
- "initialDate": {
577
- "type": "string",
578
- "mutable": false,
579
- "complexType": {
580
- "original": "string",
581
- "resolved": "string",
582
- "references": {}
583
- },
584
- "required": false,
585
- "optional": false,
586
- "docs": {
587
- "tags": [{
588
- "name": "default",
589
- "text": "null"
590
- }],
591
- "text": "Sets the initial date of the calendar. Must be in ISO format (YYYY-MM-DD)."
592
- },
593
- "attribute": "initial-date",
594
- "reflect": false,
595
- "defaultValue": "null"
596
- },
597
- "startCol": {
598
- "type": "string",
599
- "mutable": false,
600
- "complexType": {
601
- "original": "string",
602
- "resolved": "string",
603
- "references": {}
604
- },
605
- "required": false,
606
- "optional": false,
607
- "docs": {
608
- "tags": [{
609
- "name": "default",
610
- "text": "null"
611
- }],
612
- "text": "Column containing events' starting time."
613
- },
614
- "attribute": "start-col",
615
- "reflect": false,
616
- "defaultValue": "null"
617
- },
618
- "styleCol": {
619
- "type": "string",
620
- "mutable": false,
621
- "complexType": {
622
- "original": "string",
623
- "resolved": "string",
624
- "references": {}
625
- },
626
- "required": false,
627
- "optional": false,
628
- "docs": {
629
- "tags": [{
630
- "name": "default",
631
- "text": "null"
632
- }],
633
- "text": "Column containing events' CSS styles."
634
- },
635
- "attribute": "style-col",
636
- "reflect": false,
637
- "defaultValue": "null"
638
- },
639
502
  "viewType": {
640
503
  "type": "string",
641
504
  "mutable": true,
@@ -664,7 +527,7 @@ export class KupCalendar {
664
527
  }
665
528
  }; }
666
529
  static get events() { return [{
667
- "method": "kupCalendarEventClicked",
530
+ "method": "kupCalendarEventClick",
668
531
  "name": "kup-calendar-eventclick",
669
532
  "bubbles": true,
670
533
  "cancelable": false,
@@ -684,7 +547,7 @@ export class KupCalendar {
684
547
  }
685
548
  }
686
549
  }, {
687
- "method": "kupCalendarDateClicked",
550
+ "method": "kupCalendarDateClick",
688
551
  "name": "kup-calendar-dateclick",
689
552
  "bubbles": true,
690
553
  "cancelable": false,
@@ -704,7 +567,7 @@ export class KupCalendar {
704
567
  }
705
568
  }
706
569
  }, {
707
- "method": "kupCalendarEventDropped",
570
+ "method": "kupCalendarEventDrop",
708
571
  "name": "kup-calendar-eventdrop",
709
572
  "bubbles": true,
710
573
  "cancelable": false,
@@ -724,7 +587,7 @@ export class KupCalendar {
724
587
  }
725
588
  }
726
589
  }, {
727
- "method": "kupCalendarViewChanged",
590
+ "method": "kupCalendarViewChange",
728
591
  "name": "kup-calendar-viewchange",
729
592
  "bubbles": true,
730
593
  "cancelable": false,
@@ -840,4 +703,11 @@ export class KupCalendar {
840
703
  }
841
704
  }; }
842
705
  static get elementRef() { return "rootElement"; }
706
+ static get watchers() { return [{
707
+ "propName": "data",
708
+ "methodName": "setCalendarData"
709
+ }, {
710
+ "propName": "currentDate",
711
+ "methodName": "setCalendarData"
712
+ }]; }
843
713
  }
@@ -0,0 +1,38 @@
1
+ import { h } from '@stencil/core';
2
+ import { KupCardCSSClasses } from '../kup-card-declarations';
3
+ import { prepareCalendar } from './kup-card-calendar';
4
+ import { prepareClock } from './kup-card-clock';
5
+ import { prepareColumnDropMenu } from './kup-card-column-drop-menu';
6
+ /**
7
+ * 1st built-in layout, calendar view.
8
+ * @param {KupCard} component - Card component.
9
+ * @returns {VNode} 1st built-in layout virtual node.
10
+ */
11
+ export function create1(component) {
12
+ return (h("div", { class: `built-in-layout-${component.layoutNumber} ${KupCardCSSClasses.BUILT_IN_CARD}` }, prepareCalendar(component)));
13
+ }
14
+ /**
15
+ * 2nd built-in layout, clock view.
16
+ * @param {KupCard} component - Card component.
17
+ * @returns {VNode} 2st built-in layout virtual node.
18
+ */
19
+ export function create2(component) {
20
+ return (h("div", { class: `built-in-layout-${component.layoutNumber} ${KupCardCSSClasses.BUILT_IN_CARD}` }, prepareClock(component)));
21
+ }
22
+ /**
23
+ * 3rd built-in layout, column drop menu - used in data table when a column is dropped onto another one.
24
+ * @param {KupCard} component - Card component.
25
+ * @returns {VNode} 3rd built-in layout virtual node.
26
+ */
27
+ export function create3(component) {
28
+ return (h("div", { class: `built-in-layout-${component.layoutNumber} ${KupCardCSSClasses.BUILT_IN_CARD}` }, prepareColumnDropMenu(component)));
29
+ }
30
+ /**
31
+ * 4th built-in layout, color picker.
32
+ * This layout is rendered after the render cycle completes.
33
+ * @param {KupCard} component - Card component.
34
+ * @returns {VNode} 4th built-in layout virtual node.
35
+ */
36
+ export function create4(component) {
37
+ return (h("div", { class: `built-in-layout-${component.layoutNumber} ${KupCardCSSClasses.BUILT_IN_CARD}` }));
38
+ }
@@ -1,7 +1,7 @@
1
1
  import { h } from '@stencil/core';
2
2
  import { FButton } from '../../../f-components/f-button/f-button';
3
3
  import { FButtonStyling, } from '../../../f-components/f-button/f-button-declarations';
4
- import { KupDatesFormats } from '../../../utils/kup-dates/kup-dates-declarations';
4
+ import { KupDatesFormats } from '../../../managers/kup-dates/kup-dates-declarations';
5
5
  import { DateTimeFormatOptionsMonth, getMonthsAsStringByLocale, } from '../../../utils/utils';
6
6
  import { SourceEvent } from '../../kup-date-picker/kup-date-picker-declarations';
7
7
  const dom = document.documentElement;