@sme.up/ketchup 4.0.0 → 4.2.0

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 (303) hide show
  1. package/README.md +3 -3
  2. package/dist/cjs/cell-utils-dc0884a3.js +168 -0
  3. package/dist/cjs/f-button-2ba74fb5.js +105 -0
  4. package/dist/cjs/f-cell-fe60a08d.js +731 -0
  5. package/dist/cjs/f-chip-90d95d22.js +141 -0
  6. package/dist/cjs/{f-image-5f4f29ca.js → f-image-d3bd4e08.js} +4 -5
  7. package/dist/cjs/{index-3c471303.js → index-0416afab.js} +73 -64
  8. package/dist/cjs/ketchup.cjs.js +3 -3
  9. package/dist/cjs/kup-accordion.cjs.entry.js +6 -8
  10. package/dist/cjs/{kup-autocomplete_29.cjs.entry.js → kup-autocomplete_28.cjs.entry.js} +2580 -3060
  11. package/dist/cjs/kup-calendar.cjs.entry.js +30 -30
  12. package/dist/cjs/kup-cell.cjs.entry.js +201 -0
  13. package/dist/cjs/kup-dash-list.cjs.entry.js +15 -7
  14. package/dist/cjs/kup-dash_2.cjs.entry.js +104 -62
  15. package/dist/cjs/kup-drawer.cjs.entry.js +4 -6
  16. package/dist/cjs/kup-field.cjs.entry.js +3 -5
  17. package/dist/cjs/kup-iframe.cjs.entry.js +3 -4
  18. package/dist/cjs/kup-lazy.cjs.entry.js +4 -6
  19. package/dist/cjs/kup-magic-box.cjs.entry.js +21 -31
  20. package/dist/cjs/kup-manager-1a2688ca.js +5813 -0
  21. package/dist/cjs/kup-nav-bar.cjs.entry.js +4 -6
  22. package/dist/cjs/kup-probe.cjs.entry.js +3 -4
  23. package/dist/cjs/kup-qlik.cjs.entry.js +2 -3
  24. package/dist/cjs/kup-snackbar.cjs.entry.js +152 -0
  25. package/dist/cjs/loader.cjs.js +3 -3
  26. package/dist/cjs/{utils-2af73538.js → utils-0cc466b9.js} +17 -83
  27. package/dist/collection/assets/cell.js +51 -0
  28. package/dist/collection/assets/data-table.js +518 -1
  29. package/dist/collection/assets/index.js +8 -0
  30. package/dist/collection/assets/snackbar.js +32 -0
  31. package/dist/collection/collection-manifest.json +6 -6
  32. package/dist/collection/components/kup-accordion/kup-accordion.css +0 -213
  33. package/dist/collection/components/kup-accordion/kup-accordion.js +15 -16
  34. package/dist/collection/components/kup-autocomplete/kup-autocomplete-declarations.js +2 -2
  35. package/dist/collection/components/kup-autocomplete/kup-autocomplete.css +5 -2381
  36. package/dist/collection/components/kup-autocomplete/kup-autocomplete.js +83 -111
  37. package/dist/collection/components/kup-badge/kup-badge.css +1 -35
  38. package/dist/collection/components/kup-badge/kup-badge.js +13 -14
  39. package/dist/collection/components/kup-box/kup-box.css +47 -780
  40. package/dist/collection/components/kup-box/kup-box.js +240 -366
  41. package/dist/collection/components/kup-button/kup-button.css +0 -333
  42. package/dist/collection/components/kup-button/kup-button.js +27 -28
  43. package/dist/collection/components/kup-button-list/kup-button-list.css +0 -332
  44. package/dist/collection/components/kup-button-list/kup-button-list.js +19 -20
  45. package/dist/collection/components/kup-calendar/kup-calendar.css +0 -517
  46. package/dist/collection/components/kup-calendar/kup-calendar.js +47 -45
  47. package/dist/collection/components/kup-card/builtin/kup-card-builtin.js +20 -0
  48. package/dist/collection/components/kup-card/builtin/kup-card-calendar.js +458 -0
  49. package/dist/collection/components/kup-card/builtin/kup-card-clock.js +321 -0
  50. package/dist/collection/components/kup-card/dialog/kup-card-dialog.js +18 -0
  51. package/dist/collection/components/kup-card/free/kup-card-free.js +13 -0
  52. package/dist/collection/components/kup-card/kup-card-declarations.js +19 -0
  53. package/dist/collection/components/kup-card/kup-card-helper.js +19 -1
  54. package/dist/collection/components/kup-card/kup-card.css +615 -185
  55. package/dist/collection/components/kup-card/kup-card.js +94 -34
  56. package/dist/collection/components/kup-card/standard/kup-card-standard.js +75 -0
  57. package/dist/collection/components/kup-cell/kup-cell-declarations.js +11 -0
  58. package/dist/collection/components/kup-cell/kup-cell.css +20 -0
  59. package/dist/collection/components/kup-cell/kup-cell.js +413 -0
  60. package/dist/collection/components/kup-chart/kup-chart.js +41 -42
  61. package/dist/collection/components/kup-checkbox/kup-checkbox.css +0 -214
  62. package/dist/collection/components/kup-checkbox/kup-checkbox.js +19 -20
  63. package/dist/collection/components/kup-chip/kup-chip.css +0 -217
  64. package/dist/collection/components/kup-chip/kup-chip.js +15 -16
  65. package/dist/collection/components/kup-color-picker/kup-color-picker.css +7 -2380
  66. package/dist/collection/components/kup-color-picker/kup-color-picker.js +41 -41
  67. package/dist/collection/components/kup-combobox/kup-combobox-declarations.js +1 -0
  68. package/dist/collection/components/kup-combobox/kup-combobox.css +5 -2381
  69. package/dist/collection/components/kup-combobox/kup-combobox.js +68 -28
  70. package/dist/collection/components/kup-dash-list/kup-dash-list.js +13 -4
  71. package/dist/collection/components/kup-data-table/kup-data-table-declarations.js +2 -0
  72. package/dist/collection/components/kup-data-table/kup-data-table-helper.js +61 -102
  73. package/dist/collection/components/kup-data-table/kup-data-table.css +118 -3232
  74. package/dist/collection/components/kup-data-table/kup-data-table.js +589 -1089
  75. package/dist/collection/components/kup-date-picker/kup-date-picker.css +1 -85
  76. package/dist/collection/components/kup-date-picker/kup-date-picker.js +92 -395
  77. package/dist/collection/components/kup-drawer/kup-drawer.js +9 -10
  78. package/dist/collection/components/kup-dropdown-button/kup-dropdown-button.css +12 -340
  79. package/dist/collection/components/kup-dropdown-button/kup-dropdown-button.js +56 -45
  80. package/dist/collection/components/kup-field/kup-field.js +21 -22
  81. package/dist/collection/components/kup-gauge/kup-gauge.js +17 -18
  82. package/dist/collection/components/kup-grid/kup-grid.css +2 -1
  83. package/dist/collection/components/kup-grid/kup-grid.js +13 -14
  84. package/dist/collection/components/kup-iframe/kup-iframe.js +4 -4
  85. package/dist/collection/components/kup-image/assets/svg/ketchup.svg +74 -0
  86. package/dist/collection/components/kup-image/assets/svg/smeup.svg +59 -0
  87. package/dist/collection/components/kup-image/kup-image.css +0 -32
  88. package/dist/collection/components/kup-image/kup-image.js +25 -26
  89. package/dist/collection/components/kup-lazy/kup-lazy.js +17 -18
  90. package/dist/collection/components/kup-list/kup-list-declarations.js +1 -1
  91. package/dist/collection/components/kup-list/kup-list.css +4 -260
  92. package/dist/collection/components/kup-list/kup-list.js +39 -49
  93. package/dist/collection/components/kup-magic-box/kup-magic-box.css +13 -39
  94. package/dist/collection/components/kup-magic-box/kup-magic-box.js +29 -38
  95. package/dist/collection/components/kup-nav-bar/kup-nav-bar.js +11 -12
  96. package/dist/collection/components/kup-paginator/kup-paginator.css +0 -332
  97. package/dist/collection/components/kup-paginator/kup-paginator.js +44 -12
  98. package/dist/collection/components/kup-probe/kup-probe.js +9 -9
  99. package/dist/collection/components/kup-progress-bar/kup-progress-bar.js +21 -22
  100. package/dist/collection/components/kup-radio/kup-radio.js +17 -18
  101. package/dist/collection/components/kup-rating/kup-rating.js +15 -16
  102. package/dist/collection/components/kup-snackbar/kup-snackbar-declarations.js +13 -0
  103. package/dist/collection/components/kup-snackbar/kup-snackbar.css +75 -0
  104. package/dist/collection/components/kup-snackbar/kup-snackbar.js +390 -0
  105. package/dist/collection/components/kup-spinner/kup-spinner.js +23 -24
  106. package/dist/collection/components/kup-switch/kup-switch.css +0 -156
  107. package/dist/collection/components/kup-switch/kup-switch.js +17 -18
  108. package/dist/collection/components/kup-tab-bar/kup-tab-bar.css +0 -199
  109. package/dist/collection/components/kup-tab-bar/kup-tab-bar.js +13 -14
  110. package/dist/collection/components/kup-text-field/kup-text-field-declarations.js +1 -0
  111. package/dist/collection/components/kup-text-field/kup-text-field.css +4 -2371
  112. package/dist/collection/components/kup-text-field/kup-text-field.js +77 -51
  113. package/dist/collection/components/kup-time-picker/kup-time-picker.css +7 -0
  114. package/dist/collection/components/kup-time-picker/kup-time-picker.js +97 -317
  115. package/dist/collection/components/kup-tooltip/kup-tooltip.js +24 -14
  116. package/dist/collection/components/kup-tree/kup-tree.css +27 -371
  117. package/dist/collection/components/kup-tree/kup-tree.js +163 -383
  118. package/dist/collection/f-components/f-button/f-button.js +4 -2
  119. package/dist/collection/f-components/f-cell/f-cell-declarations.js +143 -0
  120. package/dist/collection/f-components/f-cell/f-cell.js +471 -0
  121. package/dist/collection/f-components/f-checkbox/f-checkbox.js +1 -1
  122. package/dist/collection/f-components/f-chip/f-chip.js +2 -2
  123. package/dist/collection/f-components/f-image/f-image.js +2 -3
  124. package/dist/collection/f-components/f-switch/f-switch.js +1 -1
  125. package/dist/collection/f-components/f-text-field/f-text-field-mdc.js +1 -1
  126. package/dist/collection/f-components/f-text-field/f-text-field.js +25 -21
  127. package/dist/collection/utils/cell-utils.js +18 -222
  128. package/dist/collection/utils/filters/filters.js +31 -37
  129. package/dist/collection/utils/kup-column-menu/kup-column-menu.js +15 -3
  130. package/dist/collection/utils/kup-dates/kup-dates.js +14 -2
  131. package/dist/collection/utils/kup-debug/kup-debug-browser-utils.js +3 -3
  132. package/dist/collection/utils/kup-debug/kup-debug.js +57 -29
  133. package/dist/collection/utils/kup-dynamic-position/kup-dynamic-position.js +5 -7
  134. package/dist/collection/utils/kup-interact/kup-interact-declarations.js +48 -0
  135. package/dist/collection/utils/kup-interact/kup-interact.js +379 -0
  136. package/dist/collection/utils/kup-language/kup-language-declarations.js +2 -0
  137. package/dist/collection/utils/kup-language/kup-language.js +1 -1
  138. package/dist/collection/utils/kup-manager/kup-manager.js +47 -10
  139. package/dist/collection/utils/kup-objects/kup-objects.js +9 -33
  140. package/dist/collection/utils/kup-scroll-on-hover/kup-scroll-on-hover.js +60 -62
  141. package/dist/collection/utils/kup-search/kup-search-declarations.js +1 -0
  142. package/dist/collection/utils/kup-search/kup-search.js +75 -0
  143. package/dist/collection/utils/kup-theme/kup-theme-declarations.js +1 -0
  144. package/dist/collection/utils/kup-theme/kup-theme.js +4 -3
  145. package/dist/collection/utils/kup-toolbar/kup-toolbar.js +16 -18
  146. package/dist/collection/utils/utils.js +15 -23
  147. package/dist/esm/cell-utils-8f512ea9.js +160 -0
  148. package/dist/esm/f-button-30dbcaa9.js +103 -0
  149. package/dist/esm/f-cell-95c186c6.js +727 -0
  150. package/dist/esm/f-chip-c0e9c0ff.js +139 -0
  151. package/dist/esm/{f-image-68b34fab.js → f-image-3bc8b24f.js} +4 -5
  152. package/dist/esm/{index-bf2824a6.js → index-e0e67c23.js} +74 -65
  153. package/dist/esm/ketchup.js +3 -3
  154. package/dist/esm/kup-accordion.entry.js +6 -8
  155. package/dist/esm/{kup-autocomplete_29.entry.js → kup-autocomplete_28.entry.js} +2379 -2858
  156. package/dist/esm/kup-calendar.entry.js +10 -10
  157. package/dist/esm/kup-cell.entry.js +197 -0
  158. package/dist/esm/kup-dash-list.entry.js +15 -7
  159. package/dist/esm/kup-dash_2.entry.js +104 -62
  160. package/dist/esm/kup-drawer.entry.js +4 -6
  161. package/dist/esm/kup-field.entry.js +3 -5
  162. package/dist/esm/kup-iframe.entry.js +3 -4
  163. package/dist/esm/kup-lazy.entry.js +4 -6
  164. package/dist/esm/kup-magic-box.entry.js +21 -31
  165. package/dist/esm/kup-manager-7fc234da.js +5800 -0
  166. package/dist/esm/kup-nav-bar.entry.js +4 -6
  167. package/dist/esm/kup-probe.entry.js +3 -4
  168. package/dist/esm/kup-qlik.entry.js +2 -3
  169. package/dist/esm/kup-snackbar.entry.js +148 -0
  170. package/dist/esm/loader.js +3 -3
  171. package/dist/esm/{utils-13dd007a.js → utils-6c73709d.js} +15 -78
  172. package/dist/ketchup/assets/svg/ketchup.svg +74 -0
  173. package/dist/ketchup/assets/svg/smeup.svg +59 -0
  174. package/dist/ketchup/ketchup.esm.js +1 -1
  175. package/dist/ketchup/p-15321eae.js +1 -0
  176. package/dist/ketchup/p-1baf1205.entry.js +1 -0
  177. package/dist/ketchup/p-1c6178e4.entry.js +1 -0
  178. package/dist/ketchup/p-44375e49.js +1 -0
  179. package/dist/ketchup/p-4dcdbd31.entry.js +45 -0
  180. package/dist/ketchup/p-5a5f2a53.js +1 -0
  181. package/dist/ketchup/{p-c7ee1fbc.js → p-61faaa38.js} +2 -2
  182. package/dist/ketchup/p-62816d0b.entry.js +1 -0
  183. package/dist/ketchup/p-65adc15b.entry.js +1 -0
  184. package/dist/ketchup/p-7e23ea7c.entry.js +1 -0
  185. package/dist/ketchup/p-a378ba56.entry.js +1 -0
  186. package/dist/ketchup/p-a878016f.entry.js +1 -0
  187. package/dist/ketchup/p-a96e6e32.entry.js +1 -0
  188. package/dist/ketchup/p-ad32821e.entry.js +1 -0
  189. package/dist/ketchup/p-af4a6191.entry.js +1 -0
  190. package/dist/ketchup/p-c18c7bb0.entry.js +27 -0
  191. package/dist/ketchup/p-ca0ca27f.entry.js +1 -0
  192. package/dist/ketchup/p-cb5f4994.js +1 -0
  193. package/dist/ketchup/p-ccda584a.entry.js +1 -0
  194. package/dist/ketchup/p-d4aa4922.js +1 -0
  195. package/dist/ketchup/p-dbb6998b.entry.js +1 -0
  196. package/dist/ketchup/p-de83f2f6.js +1 -0
  197. package/dist/ketchup/p-ec3a3db9.js +1 -0
  198. package/dist/types/components/kup-autocomplete/kup-autocomplete-declarations.d.ts +2 -6
  199. package/dist/types/components/kup-autocomplete/kup-autocomplete.d.ts +7 -13
  200. package/dist/types/components/kup-box/kup-box-declarations.d.ts +13 -4
  201. package/dist/types/components/kup-box/kup-box.d.ts +13 -6
  202. package/dist/types/components/kup-card/builtin/kup-card-builtin.d.ts +14 -0
  203. package/dist/types/components/kup-card/builtin/kup-card-calendar.d.ts +2 -0
  204. package/dist/types/components/kup-card/builtin/kup-card-clock.d.ts +2 -0
  205. package/dist/types/components/kup-card/dialog/kup-card-dialog.d.ts +6 -0
  206. package/dist/types/components/kup-card/free/kup-card-free.d.ts +8 -0
  207. package/dist/types/components/kup-card/kup-card-declarations.d.ts +74 -0
  208. package/dist/types/components/kup-card/kup-card.d.ts +12 -3
  209. package/dist/types/components/kup-card/standard/kup-card-standard.d.ts +6 -0
  210. package/dist/types/components/kup-cell/kup-cell-declarations.d.ts +10 -0
  211. package/dist/types/components/kup-cell/kup-cell.d.ts +67 -0
  212. package/dist/types/components/kup-color-picker/kup-color-picker.d.ts +1 -1
  213. package/dist/types/components/kup-combobox/kup-combobox-declarations.d.ts +3 -2
  214. package/dist/types/components/kup-combobox/kup-combobox.d.ts +5 -0
  215. package/dist/types/components/kup-dash-list/kup-dash-list.d.ts +4 -0
  216. package/dist/types/components/kup-data-table/kup-data-table-declarations.d.ts +20 -36
  217. package/dist/types/components/kup-data-table/kup-data-table-helper.d.ts +1 -15
  218. package/dist/types/components/kup-data-table/kup-data-table.d.ts +33 -83
  219. package/dist/types/components/kup-date-picker/kup-date-picker.d.ts +11 -23
  220. package/dist/types/components/kup-dropdown-button/kup-dropdown-button.d.ts +1 -4
  221. package/dist/types/components/kup-list/kup-list-declarations.d.ts +1 -1
  222. package/dist/types/components/kup-list/kup-list.d.ts +2 -3
  223. package/dist/types/components/kup-magic-box/kup-magic-box.d.ts +1 -0
  224. package/dist/types/components/kup-paginator/kup-paginator.d.ts +6 -0
  225. package/dist/types/components/kup-snackbar/kup-snackbar-declarations.d.ts +12 -0
  226. package/dist/types/components/kup-snackbar/kup-snackbar.d.ts +79 -0
  227. package/dist/types/components/kup-text-field/kup-text-field-declarations.d.ts +2 -1
  228. package/dist/types/components/kup-text-field/kup-text-field.d.ts +5 -0
  229. package/dist/types/components/kup-time-picker/kup-time-picker.d.ts +10 -20
  230. package/dist/types/components/kup-tooltip/kup-tooltip.d.ts +1 -0
  231. package/dist/types/components/kup-tree/kup-tree-declarations.d.ts +4 -4
  232. package/dist/types/components/kup-tree/kup-tree.d.ts +12 -23
  233. package/dist/types/components.d.ts +348 -176
  234. package/dist/types/f-components/f-cell/f-cell-declarations.d.ts +153 -0
  235. package/dist/types/f-components/f-cell/f-cell.d.ts +3 -0
  236. package/dist/types/f-components/f-text-field/f-text-field-declarations.d.ts +1 -0
  237. package/dist/types/f-components/f-text-field/f-text-field-mdc.d.ts +1 -1
  238. package/dist/types/utils/cell-utils.d.ts +0 -19
  239. package/dist/types/utils/kup-column-menu/kup-column-menu.d.ts +2 -0
  240. package/dist/types/utils/kup-dates/kup-dates.d.ts +9 -4
  241. package/dist/types/utils/kup-debug/kup-debug.d.ts +1 -1
  242. package/dist/types/utils/kup-dynamic-position/kup-dynamic-position-declarations.d.ts +1 -1
  243. package/dist/types/utils/kup-dynamic-position/kup-dynamic-position.d.ts +2 -2
  244. package/dist/types/utils/kup-interact/kup-interact-declarations.d.ts +127 -0
  245. package/dist/types/utils/kup-interact/kup-interact.d.ts +93 -0
  246. package/dist/types/utils/kup-language/kup-language-declarations.d.ts +2 -0
  247. package/dist/types/utils/kup-language/kup-language.d.ts +1 -1
  248. package/dist/types/utils/kup-manager/kup-manager-declarations.d.ts +28 -8
  249. package/dist/types/utils/kup-manager/kup-manager.d.ts +18 -5
  250. package/dist/types/utils/kup-objects/kup-objects.d.ts +1 -7
  251. package/dist/types/utils/kup-search/kup-search-declarations.d.ts +7 -0
  252. package/dist/types/utils/kup-search/kup-search.d.ts +20 -0
  253. package/dist/types/utils/kup-theme/kup-theme-declarations.d.ts +2 -0
  254. package/dist/types/utils/kup-theme/kup-theme.d.ts +2 -2
  255. package/dist/types/utils/utils.d.ts +0 -1
  256. package/package.json +4 -6
  257. package/dist/cjs/cell-utils-1f89a299.js +0 -1527
  258. package/dist/cjs/drag-and-drop-4787ff6f.js +0 -281
  259. package/dist/cjs/f-chip-2d58c8f7.js +0 -239
  260. package/dist/cjs/kup-grid.cjs.entry.js +0 -130
  261. package/dist/cjs/kup-manager-59ad8bdc.js +0 -4845
  262. package/dist/cjs/kup-objects-59ea949c.js +0 -717
  263. package/dist/collection/assets/images/drag-multiple.js +0 -1
  264. package/dist/collection/components/kup-editor/kup-editor.css +0 -5
  265. package/dist/collection/components/kup-editor/kup-editor.js +0 -59
  266. package/dist/collection/components/kup-layout/kup-layout.css +0 -53
  267. package/dist/collection/components/kup-layout/kup-layout.js +0 -156
  268. package/dist/collection/utils/drag-and-drop.js +0 -109
  269. package/dist/collection/utils/kup-dialog/kup-dialog-declarations.js +0 -36
  270. package/dist/collection/utils/kup-dialog/kup-dialog.js +0 -310
  271. package/dist/esm/cell-utils-cb612463.js +0 -1510
  272. package/dist/esm/drag-and-drop-321cb4ca.js +0 -265
  273. package/dist/esm/f-chip-125d5dd6.js +0 -236
  274. package/dist/esm/kup-grid.entry.js +0 -126
  275. package/dist/esm/kup-manager-e7d7b353.js +0 -4842
  276. package/dist/esm/kup-objects-d38d2fa2.js +0 -711
  277. package/dist/ketchup/p-00fe1e3e.js +0 -1
  278. package/dist/ketchup/p-0320e24e.entry.js +0 -1
  279. package/dist/ketchup/p-08c7a092.js +0 -1
  280. package/dist/ketchup/p-1165f4ea.entry.js +0 -1
  281. package/dist/ketchup/p-170d3cba.js +0 -1
  282. package/dist/ketchup/p-18cb3ba3.js +0 -1
  283. package/dist/ketchup/p-23541a97.entry.js +0 -45
  284. package/dist/ketchup/p-64ea7e37.entry.js +0 -1
  285. package/dist/ketchup/p-7896031c.entry.js +0 -1
  286. package/dist/ketchup/p-876da4c2.entry.js +0 -1
  287. package/dist/ketchup/p-8fb9d9b2.entry.js +0 -1
  288. package/dist/ketchup/p-940ab57a.entry.js +0 -1
  289. package/dist/ketchup/p-9c858a38.entry.js +0 -1
  290. package/dist/ketchup/p-a12a5690.entry.js +0 -1
  291. package/dist/ketchup/p-a5424073.js +0 -1
  292. package/dist/ketchup/p-b0724035.entry.js +0 -1
  293. package/dist/ketchup/p-b14e77f0.js +0 -1
  294. package/dist/ketchup/p-d24cfdea.entry.js +0 -1
  295. package/dist/ketchup/p-ee89966f.entry.js +0 -27
  296. package/dist/ketchup/p-fcd2fd8f.js +0 -1
  297. package/dist/ketchup/p-fce3b9d8.entry.js +0 -1
  298. package/dist/types/assets/images/drag-multiple.d.ts +0 -1
  299. package/dist/types/components/kup-editor/kup-editor.d.ts +0 -16
  300. package/dist/types/components/kup-layout/kup-layout.d.ts +0 -25
  301. package/dist/types/utils/drag-and-drop.d.ts +0 -53
  302. package/dist/types/utils/kup-dialog/kup-dialog-declarations.d.ts +0 -43
  303. package/dist/types/utils/kup-dialog/kup-dialog.d.ts +0 -50
@@ -1,1510 +0,0 @@
1
- import { f as commonjsGlobal, K as KupDates, c as KupObjects, a as KupDatesFormats } from './kup-objects-d38d2fa2.js';
2
- import { q as unformattedStringToFormattedStringNumber, t as unformattedStringToFormattedStringTime, v as unformattedStringToFormattedStringTimestamp, n as numeral, d as stringToNumber } from './utils-13dd007a.js';
3
-
4
- /**
5
- * Checks if `value` is classified as an `Array` object.
6
- *
7
- * @static
8
- * @memberOf _
9
- * @since 0.1.0
10
- * @category Lang
11
- * @param {*} value The value to check.
12
- * @returns {boolean} Returns `true` if `value` is an array, else `false`.
13
- * @example
14
- *
15
- * _.isArray([1, 2, 3]);
16
- * // => true
17
- *
18
- * _.isArray(document.body.children);
19
- * // => false
20
- *
21
- * _.isArray('abc');
22
- * // => false
23
- *
24
- * _.isArray(_.noop);
25
- * // => false
26
- */
27
- var isArray = Array.isArray;
28
-
29
- var isArray_1 = isArray;
30
-
31
- /** Detect free variable `global` from Node.js. */
32
- var freeGlobal = typeof commonjsGlobal == 'object' && commonjsGlobal && commonjsGlobal.Object === Object && commonjsGlobal;
33
-
34
- var _freeGlobal = freeGlobal;
35
-
36
- /** Detect free variable `self`. */
37
- var freeSelf = typeof self == 'object' && self && self.Object === Object && self;
38
-
39
- /** Used as a reference to the global object. */
40
- var root = _freeGlobal || freeSelf || Function('return this')();
41
-
42
- var _root = root;
43
-
44
- /** Built-in value references. */
45
- var Symbol = _root.Symbol;
46
-
47
- var _Symbol = Symbol;
48
-
49
- /** Used for built-in method references. */
50
- var objectProto$4 = Object.prototype;
51
-
52
- /** Used to check objects for own properties. */
53
- var hasOwnProperty$3 = objectProto$4.hasOwnProperty;
54
-
55
- /**
56
- * Used to resolve the
57
- * [`toStringTag`](http://ecma-international.org/ecma-262/7.0/#sec-object.prototype.tostring)
58
- * of values.
59
- */
60
- var nativeObjectToString$1 = objectProto$4.toString;
61
-
62
- /** Built-in value references. */
63
- var symToStringTag$1 = _Symbol ? _Symbol.toStringTag : undefined;
64
-
65
- /**
66
- * A specialized version of `baseGetTag` which ignores `Symbol.toStringTag` values.
67
- *
68
- * @private
69
- * @param {*} value The value to query.
70
- * @returns {string} Returns the raw `toStringTag`.
71
- */
72
- function getRawTag(value) {
73
- var isOwn = hasOwnProperty$3.call(value, symToStringTag$1),
74
- tag = value[symToStringTag$1];
75
-
76
- try {
77
- value[symToStringTag$1] = undefined;
78
- var unmasked = true;
79
- } catch (e) {}
80
-
81
- var result = nativeObjectToString$1.call(value);
82
- if (unmasked) {
83
- if (isOwn) {
84
- value[symToStringTag$1] = tag;
85
- } else {
86
- delete value[symToStringTag$1];
87
- }
88
- }
89
- return result;
90
- }
91
-
92
- var _getRawTag = getRawTag;
93
-
94
- /** Used for built-in method references. */
95
- var objectProto$3 = Object.prototype;
96
-
97
- /**
98
- * Used to resolve the
99
- * [`toStringTag`](http://ecma-international.org/ecma-262/7.0/#sec-object.prototype.tostring)
100
- * of values.
101
- */
102
- var nativeObjectToString = objectProto$3.toString;
103
-
104
- /**
105
- * Converts `value` to a string using `Object.prototype.toString`.
106
- *
107
- * @private
108
- * @param {*} value The value to convert.
109
- * @returns {string} Returns the converted string.
110
- */
111
- function objectToString(value) {
112
- return nativeObjectToString.call(value);
113
- }
114
-
115
- var _objectToString = objectToString;
116
-
117
- /** `Object#toString` result references. */
118
- var nullTag = '[object Null]',
119
- undefinedTag = '[object Undefined]';
120
-
121
- /** Built-in value references. */
122
- var symToStringTag = _Symbol ? _Symbol.toStringTag : undefined;
123
-
124
- /**
125
- * The base implementation of `getTag` without fallbacks for buggy environments.
126
- *
127
- * @private
128
- * @param {*} value The value to query.
129
- * @returns {string} Returns the `toStringTag`.
130
- */
131
- function baseGetTag(value) {
132
- if (value == null) {
133
- return value === undefined ? undefinedTag : nullTag;
134
- }
135
- return (symToStringTag && symToStringTag in Object(value))
136
- ? _getRawTag(value)
137
- : _objectToString(value);
138
- }
139
-
140
- var _baseGetTag = baseGetTag;
141
-
142
- /**
143
- * Checks if `value` is object-like. A value is object-like if it's not `null`
144
- * and has a `typeof` result of "object".
145
- *
146
- * @static
147
- * @memberOf _
148
- * @since 4.0.0
149
- * @category Lang
150
- * @param {*} value The value to check.
151
- * @returns {boolean} Returns `true` if `value` is object-like, else `false`.
152
- * @example
153
- *
154
- * _.isObjectLike({});
155
- * // => true
156
- *
157
- * _.isObjectLike([1, 2, 3]);
158
- * // => true
159
- *
160
- * _.isObjectLike(_.noop);
161
- * // => false
162
- *
163
- * _.isObjectLike(null);
164
- * // => false
165
- */
166
- function isObjectLike(value) {
167
- return value != null && typeof value == 'object';
168
- }
169
-
170
- var isObjectLike_1 = isObjectLike;
171
-
172
- /** `Object#toString` result references. */
173
- var symbolTag = '[object Symbol]';
174
-
175
- /**
176
- * Checks if `value` is classified as a `Symbol` primitive or object.
177
- *
178
- * @static
179
- * @memberOf _
180
- * @since 4.0.0
181
- * @category Lang
182
- * @param {*} value The value to check.
183
- * @returns {boolean} Returns `true` if `value` is a symbol, else `false`.
184
- * @example
185
- *
186
- * _.isSymbol(Symbol.iterator);
187
- * // => true
188
- *
189
- * _.isSymbol('abc');
190
- * // => false
191
- */
192
- function isSymbol(value) {
193
- return typeof value == 'symbol' ||
194
- (isObjectLike_1(value) && _baseGetTag(value) == symbolTag);
195
- }
196
-
197
- var isSymbol_1 = isSymbol;
198
-
199
- /** Used to match property names within property paths. */
200
- var reIsDeepProp = /\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,
201
- reIsPlainProp = /^\w*$/;
202
-
203
- /**
204
- * Checks if `value` is a property name and not a property path.
205
- *
206
- * @private
207
- * @param {*} value The value to check.
208
- * @param {Object} [object] The object to query keys on.
209
- * @returns {boolean} Returns `true` if `value` is a property name, else `false`.
210
- */
211
- function isKey(value, object) {
212
- if (isArray_1(value)) {
213
- return false;
214
- }
215
- var type = typeof value;
216
- if (type == 'number' || type == 'symbol' || type == 'boolean' ||
217
- value == null || isSymbol_1(value)) {
218
- return true;
219
- }
220
- return reIsPlainProp.test(value) || !reIsDeepProp.test(value) ||
221
- (object != null && value in Object(object));
222
- }
223
-
224
- var _isKey = isKey;
225
-
226
- /**
227
- * Checks if `value` is the
228
- * [language type](http://www.ecma-international.org/ecma-262/7.0/#sec-ecmascript-language-types)
229
- * of `Object`. (e.g. arrays, functions, objects, regexes, `new Number(0)`, and `new String('')`)
230
- *
231
- * @static
232
- * @memberOf _
233
- * @since 0.1.0
234
- * @category Lang
235
- * @param {*} value The value to check.
236
- * @returns {boolean} Returns `true` if `value` is an object, else `false`.
237
- * @example
238
- *
239
- * _.isObject({});
240
- * // => true
241
- *
242
- * _.isObject([1, 2, 3]);
243
- * // => true
244
- *
245
- * _.isObject(_.noop);
246
- * // => true
247
- *
248
- * _.isObject(null);
249
- * // => false
250
- */
251
- function isObject(value) {
252
- var type = typeof value;
253
- return value != null && (type == 'object' || type == 'function');
254
- }
255
-
256
- var isObject_1 = isObject;
257
-
258
- /** `Object#toString` result references. */
259
- var asyncTag = '[object AsyncFunction]',
260
- funcTag = '[object Function]',
261
- genTag = '[object GeneratorFunction]',
262
- proxyTag = '[object Proxy]';
263
-
264
- /**
265
- * Checks if `value` is classified as a `Function` object.
266
- *
267
- * @static
268
- * @memberOf _
269
- * @since 0.1.0
270
- * @category Lang
271
- * @param {*} value The value to check.
272
- * @returns {boolean} Returns `true` if `value` is a function, else `false`.
273
- * @example
274
- *
275
- * _.isFunction(_);
276
- * // => true
277
- *
278
- * _.isFunction(/abc/);
279
- * // => false
280
- */
281
- function isFunction(value) {
282
- if (!isObject_1(value)) {
283
- return false;
284
- }
285
- // The use of `Object#toString` avoids issues with the `typeof` operator
286
- // in Safari 9 which returns 'object' for typed arrays and other constructors.
287
- var tag = _baseGetTag(value);
288
- return tag == funcTag || tag == genTag || tag == asyncTag || tag == proxyTag;
289
- }
290
-
291
- var isFunction_1 = isFunction;
292
-
293
- /** Used to detect overreaching core-js shims. */
294
- var coreJsData = _root['__core-js_shared__'];
295
-
296
- var _coreJsData = coreJsData;
297
-
298
- /** Used to detect methods masquerading as native. */
299
- var maskSrcKey = (function() {
300
- var uid = /[^.]+$/.exec(_coreJsData && _coreJsData.keys && _coreJsData.keys.IE_PROTO || '');
301
- return uid ? ('Symbol(src)_1.' + uid) : '';
302
- }());
303
-
304
- /**
305
- * Checks if `func` has its source masked.
306
- *
307
- * @private
308
- * @param {Function} func The function to check.
309
- * @returns {boolean} Returns `true` if `func` is masked, else `false`.
310
- */
311
- function isMasked(func) {
312
- return !!maskSrcKey && (maskSrcKey in func);
313
- }
314
-
315
- var _isMasked = isMasked;
316
-
317
- /** Used for built-in method references. */
318
- var funcProto$1 = Function.prototype;
319
-
320
- /** Used to resolve the decompiled source of functions. */
321
- var funcToString$1 = funcProto$1.toString;
322
-
323
- /**
324
- * Converts `func` to its source code.
325
- *
326
- * @private
327
- * @param {Function} func The function to convert.
328
- * @returns {string} Returns the source code.
329
- */
330
- function toSource(func) {
331
- if (func != null) {
332
- try {
333
- return funcToString$1.call(func);
334
- } catch (e) {}
335
- try {
336
- return (func + '');
337
- } catch (e) {}
338
- }
339
- return '';
340
- }
341
-
342
- var _toSource = toSource;
343
-
344
- /**
345
- * Used to match `RegExp`
346
- * [syntax characters](http://ecma-international.org/ecma-262/7.0/#sec-patterns).
347
- */
348
- var reRegExpChar = /[\\^$.*+?()[\]{}|]/g;
349
-
350
- /** Used to detect host constructors (Safari). */
351
- var reIsHostCtor = /^\[object .+?Constructor\]$/;
352
-
353
- /** Used for built-in method references. */
354
- var funcProto = Function.prototype,
355
- objectProto$2 = Object.prototype;
356
-
357
- /** Used to resolve the decompiled source of functions. */
358
- var funcToString = funcProto.toString;
359
-
360
- /** Used to check objects for own properties. */
361
- var hasOwnProperty$2 = objectProto$2.hasOwnProperty;
362
-
363
- /** Used to detect if a method is native. */
364
- var reIsNative = RegExp('^' +
365
- funcToString.call(hasOwnProperty$2).replace(reRegExpChar, '\\$&')
366
- .replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, '$1.*?') + '$'
367
- );
368
-
369
- /**
370
- * The base implementation of `_.isNative` without bad shim checks.
371
- *
372
- * @private
373
- * @param {*} value The value to check.
374
- * @returns {boolean} Returns `true` if `value` is a native function,
375
- * else `false`.
376
- */
377
- function baseIsNative(value) {
378
- if (!isObject_1(value) || _isMasked(value)) {
379
- return false;
380
- }
381
- var pattern = isFunction_1(value) ? reIsNative : reIsHostCtor;
382
- return pattern.test(_toSource(value));
383
- }
384
-
385
- var _baseIsNative = baseIsNative;
386
-
387
- /**
388
- * Gets the value at `key` of `object`.
389
- *
390
- * @private
391
- * @param {Object} [object] The object to query.
392
- * @param {string} key The key of the property to get.
393
- * @returns {*} Returns the property value.
394
- */
395
- function getValue(object, key) {
396
- return object == null ? undefined : object[key];
397
- }
398
-
399
- var _getValue = getValue;
400
-
401
- /**
402
- * Gets the native function at `key` of `object`.
403
- *
404
- * @private
405
- * @param {Object} object The object to query.
406
- * @param {string} key The key of the method to get.
407
- * @returns {*} Returns the function if it's native, else `undefined`.
408
- */
409
- function getNative(object, key) {
410
- var value = _getValue(object, key);
411
- return _baseIsNative(value) ? value : undefined;
412
- }
413
-
414
- var _getNative = getNative;
415
-
416
- /* Built-in method references that are verified to be native. */
417
- var nativeCreate = _getNative(Object, 'create');
418
-
419
- var _nativeCreate = nativeCreate;
420
-
421
- /**
422
- * Removes all key-value entries from the hash.
423
- *
424
- * @private
425
- * @name clear
426
- * @memberOf Hash
427
- */
428
- function hashClear() {
429
- this.__data__ = _nativeCreate ? _nativeCreate(null) : {};
430
- this.size = 0;
431
- }
432
-
433
- var _hashClear = hashClear;
434
-
435
- /**
436
- * Removes `key` and its value from the hash.
437
- *
438
- * @private
439
- * @name delete
440
- * @memberOf Hash
441
- * @param {Object} hash The hash to modify.
442
- * @param {string} key The key of the value to remove.
443
- * @returns {boolean} Returns `true` if the entry was removed, else `false`.
444
- */
445
- function hashDelete(key) {
446
- var result = this.has(key) && delete this.__data__[key];
447
- this.size -= result ? 1 : 0;
448
- return result;
449
- }
450
-
451
- var _hashDelete = hashDelete;
452
-
453
- /** Used to stand-in for `undefined` hash values. */
454
- var HASH_UNDEFINED$1 = '__lodash_hash_undefined__';
455
-
456
- /** Used for built-in method references. */
457
- var objectProto$1 = Object.prototype;
458
-
459
- /** Used to check objects for own properties. */
460
- var hasOwnProperty$1 = objectProto$1.hasOwnProperty;
461
-
462
- /**
463
- * Gets the hash value for `key`.
464
- *
465
- * @private
466
- * @name get
467
- * @memberOf Hash
468
- * @param {string} key The key of the value to get.
469
- * @returns {*} Returns the entry value.
470
- */
471
- function hashGet(key) {
472
- var data = this.__data__;
473
- if (_nativeCreate) {
474
- var result = data[key];
475
- return result === HASH_UNDEFINED$1 ? undefined : result;
476
- }
477
- return hasOwnProperty$1.call(data, key) ? data[key] : undefined;
478
- }
479
-
480
- var _hashGet = hashGet;
481
-
482
- /** Used for built-in method references. */
483
- var objectProto = Object.prototype;
484
-
485
- /** Used to check objects for own properties. */
486
- var hasOwnProperty = objectProto.hasOwnProperty;
487
-
488
- /**
489
- * Checks if a hash value for `key` exists.
490
- *
491
- * @private
492
- * @name has
493
- * @memberOf Hash
494
- * @param {string} key The key of the entry to check.
495
- * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`.
496
- */
497
- function hashHas(key) {
498
- var data = this.__data__;
499
- return _nativeCreate ? (data[key] !== undefined) : hasOwnProperty.call(data, key);
500
- }
501
-
502
- var _hashHas = hashHas;
503
-
504
- /** Used to stand-in for `undefined` hash values. */
505
- var HASH_UNDEFINED = '__lodash_hash_undefined__';
506
-
507
- /**
508
- * Sets the hash `key` to `value`.
509
- *
510
- * @private
511
- * @name set
512
- * @memberOf Hash
513
- * @param {string} key The key of the value to set.
514
- * @param {*} value The value to set.
515
- * @returns {Object} Returns the hash instance.
516
- */
517
- function hashSet(key, value) {
518
- var data = this.__data__;
519
- this.size += this.has(key) ? 0 : 1;
520
- data[key] = (_nativeCreate && value === undefined) ? HASH_UNDEFINED : value;
521
- return this;
522
- }
523
-
524
- var _hashSet = hashSet;
525
-
526
- /**
527
- * Creates a hash object.
528
- *
529
- * @private
530
- * @constructor
531
- * @param {Array} [entries] The key-value pairs to cache.
532
- */
533
- function Hash(entries) {
534
- var index = -1,
535
- length = entries == null ? 0 : entries.length;
536
-
537
- this.clear();
538
- while (++index < length) {
539
- var entry = entries[index];
540
- this.set(entry[0], entry[1]);
541
- }
542
- }
543
-
544
- // Add methods to `Hash`.
545
- Hash.prototype.clear = _hashClear;
546
- Hash.prototype['delete'] = _hashDelete;
547
- Hash.prototype.get = _hashGet;
548
- Hash.prototype.has = _hashHas;
549
- Hash.prototype.set = _hashSet;
550
-
551
- var _Hash = Hash;
552
-
553
- /**
554
- * Removes all key-value entries from the list cache.
555
- *
556
- * @private
557
- * @name clear
558
- * @memberOf ListCache
559
- */
560
- function listCacheClear() {
561
- this.__data__ = [];
562
- this.size = 0;
563
- }
564
-
565
- var _listCacheClear = listCacheClear;
566
-
567
- /**
568
- * Performs a
569
- * [`SameValueZero`](http://ecma-international.org/ecma-262/7.0/#sec-samevaluezero)
570
- * comparison between two values to determine if they are equivalent.
571
- *
572
- * @static
573
- * @memberOf _
574
- * @since 4.0.0
575
- * @category Lang
576
- * @param {*} value The value to compare.
577
- * @param {*} other The other value to compare.
578
- * @returns {boolean} Returns `true` if the values are equivalent, else `false`.
579
- * @example
580
- *
581
- * var object = { 'a': 1 };
582
- * var other = { 'a': 1 };
583
- *
584
- * _.eq(object, object);
585
- * // => true
586
- *
587
- * _.eq(object, other);
588
- * // => false
589
- *
590
- * _.eq('a', 'a');
591
- * // => true
592
- *
593
- * _.eq('a', Object('a'));
594
- * // => false
595
- *
596
- * _.eq(NaN, NaN);
597
- * // => true
598
- */
599
- function eq(value, other) {
600
- return value === other || (value !== value && other !== other);
601
- }
602
-
603
- var eq_1 = eq;
604
-
605
- /**
606
- * Gets the index at which the `key` is found in `array` of key-value pairs.
607
- *
608
- * @private
609
- * @param {Array} array The array to inspect.
610
- * @param {*} key The key to search for.
611
- * @returns {number} Returns the index of the matched value, else `-1`.
612
- */
613
- function assocIndexOf(array, key) {
614
- var length = array.length;
615
- while (length--) {
616
- if (eq_1(array[length][0], key)) {
617
- return length;
618
- }
619
- }
620
- return -1;
621
- }
622
-
623
- var _assocIndexOf = assocIndexOf;
624
-
625
- /** Used for built-in method references. */
626
- var arrayProto = Array.prototype;
627
-
628
- /** Built-in value references. */
629
- var splice = arrayProto.splice;
630
-
631
- /**
632
- * Removes `key` and its value from the list cache.
633
- *
634
- * @private
635
- * @name delete
636
- * @memberOf ListCache
637
- * @param {string} key The key of the value to remove.
638
- * @returns {boolean} Returns `true` if the entry was removed, else `false`.
639
- */
640
- function listCacheDelete(key) {
641
- var data = this.__data__,
642
- index = _assocIndexOf(data, key);
643
-
644
- if (index < 0) {
645
- return false;
646
- }
647
- var lastIndex = data.length - 1;
648
- if (index == lastIndex) {
649
- data.pop();
650
- } else {
651
- splice.call(data, index, 1);
652
- }
653
- --this.size;
654
- return true;
655
- }
656
-
657
- var _listCacheDelete = listCacheDelete;
658
-
659
- /**
660
- * Gets the list cache value for `key`.
661
- *
662
- * @private
663
- * @name get
664
- * @memberOf ListCache
665
- * @param {string} key The key of the value to get.
666
- * @returns {*} Returns the entry value.
667
- */
668
- function listCacheGet(key) {
669
- var data = this.__data__,
670
- index = _assocIndexOf(data, key);
671
-
672
- return index < 0 ? undefined : data[index][1];
673
- }
674
-
675
- var _listCacheGet = listCacheGet;
676
-
677
- /**
678
- * Checks if a list cache value for `key` exists.
679
- *
680
- * @private
681
- * @name has
682
- * @memberOf ListCache
683
- * @param {string} key The key of the entry to check.
684
- * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`.
685
- */
686
- function listCacheHas(key) {
687
- return _assocIndexOf(this.__data__, key) > -1;
688
- }
689
-
690
- var _listCacheHas = listCacheHas;
691
-
692
- /**
693
- * Sets the list cache `key` to `value`.
694
- *
695
- * @private
696
- * @name set
697
- * @memberOf ListCache
698
- * @param {string} key The key of the value to set.
699
- * @param {*} value The value to set.
700
- * @returns {Object} Returns the list cache instance.
701
- */
702
- function listCacheSet(key, value) {
703
- var data = this.__data__,
704
- index = _assocIndexOf(data, key);
705
-
706
- if (index < 0) {
707
- ++this.size;
708
- data.push([key, value]);
709
- } else {
710
- data[index][1] = value;
711
- }
712
- return this;
713
- }
714
-
715
- var _listCacheSet = listCacheSet;
716
-
717
- /**
718
- * Creates an list cache object.
719
- *
720
- * @private
721
- * @constructor
722
- * @param {Array} [entries] The key-value pairs to cache.
723
- */
724
- function ListCache(entries) {
725
- var index = -1,
726
- length = entries == null ? 0 : entries.length;
727
-
728
- this.clear();
729
- while (++index < length) {
730
- var entry = entries[index];
731
- this.set(entry[0], entry[1]);
732
- }
733
- }
734
-
735
- // Add methods to `ListCache`.
736
- ListCache.prototype.clear = _listCacheClear;
737
- ListCache.prototype['delete'] = _listCacheDelete;
738
- ListCache.prototype.get = _listCacheGet;
739
- ListCache.prototype.has = _listCacheHas;
740
- ListCache.prototype.set = _listCacheSet;
741
-
742
- var _ListCache = ListCache;
743
-
744
- /* Built-in method references that are verified to be native. */
745
- var Map = _getNative(_root, 'Map');
746
-
747
- var _Map = Map;
748
-
749
- /**
750
- * Removes all key-value entries from the map.
751
- *
752
- * @private
753
- * @name clear
754
- * @memberOf MapCache
755
- */
756
- function mapCacheClear() {
757
- this.size = 0;
758
- this.__data__ = {
759
- 'hash': new _Hash,
760
- 'map': new (_Map || _ListCache),
761
- 'string': new _Hash
762
- };
763
- }
764
-
765
- var _mapCacheClear = mapCacheClear;
766
-
767
- /**
768
- * Checks if `value` is suitable for use as unique object key.
769
- *
770
- * @private
771
- * @param {*} value The value to check.
772
- * @returns {boolean} Returns `true` if `value` is suitable, else `false`.
773
- */
774
- function isKeyable(value) {
775
- var type = typeof value;
776
- return (type == 'string' || type == 'number' || type == 'symbol' || type == 'boolean')
777
- ? (value !== '__proto__')
778
- : (value === null);
779
- }
780
-
781
- var _isKeyable = isKeyable;
782
-
783
- /**
784
- * Gets the data for `map`.
785
- *
786
- * @private
787
- * @param {Object} map The map to query.
788
- * @param {string} key The reference key.
789
- * @returns {*} Returns the map data.
790
- */
791
- function getMapData(map, key) {
792
- var data = map.__data__;
793
- return _isKeyable(key)
794
- ? data[typeof key == 'string' ? 'string' : 'hash']
795
- : data.map;
796
- }
797
-
798
- var _getMapData = getMapData;
799
-
800
- /**
801
- * Removes `key` and its value from the map.
802
- *
803
- * @private
804
- * @name delete
805
- * @memberOf MapCache
806
- * @param {string} key The key of the value to remove.
807
- * @returns {boolean} Returns `true` if the entry was removed, else `false`.
808
- */
809
- function mapCacheDelete(key) {
810
- var result = _getMapData(this, key)['delete'](key);
811
- this.size -= result ? 1 : 0;
812
- return result;
813
- }
814
-
815
- var _mapCacheDelete = mapCacheDelete;
816
-
817
- /**
818
- * Gets the map value for `key`.
819
- *
820
- * @private
821
- * @name get
822
- * @memberOf MapCache
823
- * @param {string} key The key of the value to get.
824
- * @returns {*} Returns the entry value.
825
- */
826
- function mapCacheGet(key) {
827
- return _getMapData(this, key).get(key);
828
- }
829
-
830
- var _mapCacheGet = mapCacheGet;
831
-
832
- /**
833
- * Checks if a map value for `key` exists.
834
- *
835
- * @private
836
- * @name has
837
- * @memberOf MapCache
838
- * @param {string} key The key of the entry to check.
839
- * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`.
840
- */
841
- function mapCacheHas(key) {
842
- return _getMapData(this, key).has(key);
843
- }
844
-
845
- var _mapCacheHas = mapCacheHas;
846
-
847
- /**
848
- * Sets the map `key` to `value`.
849
- *
850
- * @private
851
- * @name set
852
- * @memberOf MapCache
853
- * @param {string} key The key of the value to set.
854
- * @param {*} value The value to set.
855
- * @returns {Object} Returns the map cache instance.
856
- */
857
- function mapCacheSet(key, value) {
858
- var data = _getMapData(this, key),
859
- size = data.size;
860
-
861
- data.set(key, value);
862
- this.size += data.size == size ? 0 : 1;
863
- return this;
864
- }
865
-
866
- var _mapCacheSet = mapCacheSet;
867
-
868
- /**
869
- * Creates a map cache object to store key-value pairs.
870
- *
871
- * @private
872
- * @constructor
873
- * @param {Array} [entries] The key-value pairs to cache.
874
- */
875
- function MapCache(entries) {
876
- var index = -1,
877
- length = entries == null ? 0 : entries.length;
878
-
879
- this.clear();
880
- while (++index < length) {
881
- var entry = entries[index];
882
- this.set(entry[0], entry[1]);
883
- }
884
- }
885
-
886
- // Add methods to `MapCache`.
887
- MapCache.prototype.clear = _mapCacheClear;
888
- MapCache.prototype['delete'] = _mapCacheDelete;
889
- MapCache.prototype.get = _mapCacheGet;
890
- MapCache.prototype.has = _mapCacheHas;
891
- MapCache.prototype.set = _mapCacheSet;
892
-
893
- var _MapCache = MapCache;
894
-
895
- /** Error message constants. */
896
- var FUNC_ERROR_TEXT = 'Expected a function';
897
-
898
- /**
899
- * Creates a function that memoizes the result of `func`. If `resolver` is
900
- * provided, it determines the cache key for storing the result based on the
901
- * arguments provided to the memoized function. By default, the first argument
902
- * provided to the memoized function is used as the map cache key. The `func`
903
- * is invoked with the `this` binding of the memoized function.
904
- *
905
- * **Note:** The cache is exposed as the `cache` property on the memoized
906
- * function. Its creation may be customized by replacing the `_.memoize.Cache`
907
- * constructor with one whose instances implement the
908
- * [`Map`](http://ecma-international.org/ecma-262/7.0/#sec-properties-of-the-map-prototype-object)
909
- * method interface of `clear`, `delete`, `get`, `has`, and `set`.
910
- *
911
- * @static
912
- * @memberOf _
913
- * @since 0.1.0
914
- * @category Function
915
- * @param {Function} func The function to have its output memoized.
916
- * @param {Function} [resolver] The function to resolve the cache key.
917
- * @returns {Function} Returns the new memoized function.
918
- * @example
919
- *
920
- * var object = { 'a': 1, 'b': 2 };
921
- * var other = { 'c': 3, 'd': 4 };
922
- *
923
- * var values = _.memoize(_.values);
924
- * values(object);
925
- * // => [1, 2]
926
- *
927
- * values(other);
928
- * // => [3, 4]
929
- *
930
- * object.a = 2;
931
- * values(object);
932
- * // => [1, 2]
933
- *
934
- * // Modify the result cache.
935
- * values.cache.set(object, ['a', 'b']);
936
- * values(object);
937
- * // => ['a', 'b']
938
- *
939
- * // Replace `_.memoize.Cache`.
940
- * _.memoize.Cache = WeakMap;
941
- */
942
- function memoize(func, resolver) {
943
- if (typeof func != 'function' || (resolver != null && typeof resolver != 'function')) {
944
- throw new TypeError(FUNC_ERROR_TEXT);
945
- }
946
- var memoized = function() {
947
- var args = arguments,
948
- key = resolver ? resolver.apply(this, args) : args[0],
949
- cache = memoized.cache;
950
-
951
- if (cache.has(key)) {
952
- return cache.get(key);
953
- }
954
- var result = func.apply(this, args);
955
- memoized.cache = cache.set(key, result) || cache;
956
- return result;
957
- };
958
- memoized.cache = new (memoize.Cache || _MapCache);
959
- return memoized;
960
- }
961
-
962
- // Expose `MapCache`.
963
- memoize.Cache = _MapCache;
964
-
965
- var memoize_1 = memoize;
966
-
967
- /** Used as the maximum memoize cache size. */
968
- var MAX_MEMOIZE_SIZE = 500;
969
-
970
- /**
971
- * A specialized version of `_.memoize` which clears the memoized function's
972
- * cache when it exceeds `MAX_MEMOIZE_SIZE`.
973
- *
974
- * @private
975
- * @param {Function} func The function to have its output memoized.
976
- * @returns {Function} Returns the new memoized function.
977
- */
978
- function memoizeCapped(func) {
979
- var result = memoize_1(func, function(key) {
980
- if (cache.size === MAX_MEMOIZE_SIZE) {
981
- cache.clear();
982
- }
983
- return key;
984
- });
985
-
986
- var cache = result.cache;
987
- return result;
988
- }
989
-
990
- var _memoizeCapped = memoizeCapped;
991
-
992
- /** Used to match property names within property paths. */
993
- var rePropName = /[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g;
994
-
995
- /** Used to match backslashes in property paths. */
996
- var reEscapeChar = /\\(\\)?/g;
997
-
998
- /**
999
- * Converts `string` to a property path array.
1000
- *
1001
- * @private
1002
- * @param {string} string The string to convert.
1003
- * @returns {Array} Returns the property path array.
1004
- */
1005
- var stringToPath = _memoizeCapped(function(string) {
1006
- var result = [];
1007
- if (string.charCodeAt(0) === 46 /* . */) {
1008
- result.push('');
1009
- }
1010
- string.replace(rePropName, function(match, number, quote, subString) {
1011
- result.push(quote ? subString.replace(reEscapeChar, '$1') : (number || match));
1012
- });
1013
- return result;
1014
- });
1015
-
1016
- var _stringToPath = stringToPath;
1017
-
1018
- /**
1019
- * A specialized version of `_.map` for arrays without support for iteratee
1020
- * shorthands.
1021
- *
1022
- * @private
1023
- * @param {Array} [array] The array to iterate over.
1024
- * @param {Function} iteratee The function invoked per iteration.
1025
- * @returns {Array} Returns the new mapped array.
1026
- */
1027
- function arrayMap(array, iteratee) {
1028
- var index = -1,
1029
- length = array == null ? 0 : array.length,
1030
- result = Array(length);
1031
-
1032
- while (++index < length) {
1033
- result[index] = iteratee(array[index], index, array);
1034
- }
1035
- return result;
1036
- }
1037
-
1038
- var _arrayMap = arrayMap;
1039
-
1040
- /** Used as references for various `Number` constants. */
1041
- var INFINITY$1 = 1 / 0;
1042
-
1043
- /** Used to convert symbols to primitives and strings. */
1044
- var symbolProto = _Symbol ? _Symbol.prototype : undefined,
1045
- symbolToString = symbolProto ? symbolProto.toString : undefined;
1046
-
1047
- /**
1048
- * The base implementation of `_.toString` which doesn't convert nullish
1049
- * values to empty strings.
1050
- *
1051
- * @private
1052
- * @param {*} value The value to process.
1053
- * @returns {string} Returns the string.
1054
- */
1055
- function baseToString(value) {
1056
- // Exit early for strings to avoid a performance hit in some environments.
1057
- if (typeof value == 'string') {
1058
- return value;
1059
- }
1060
- if (isArray_1(value)) {
1061
- // Recursively convert values (susceptible to call stack limits).
1062
- return _arrayMap(value, baseToString) + '';
1063
- }
1064
- if (isSymbol_1(value)) {
1065
- return symbolToString ? symbolToString.call(value) : '';
1066
- }
1067
- var result = (value + '');
1068
- return (result == '0' && (1 / value) == -INFINITY$1) ? '-0' : result;
1069
- }
1070
-
1071
- var _baseToString = baseToString;
1072
-
1073
- /**
1074
- * Converts `value` to a string. An empty string is returned for `null`
1075
- * and `undefined` values. The sign of `-0` is preserved.
1076
- *
1077
- * @static
1078
- * @memberOf _
1079
- * @since 4.0.0
1080
- * @category Lang
1081
- * @param {*} value The value to convert.
1082
- * @returns {string} Returns the converted string.
1083
- * @example
1084
- *
1085
- * _.toString(null);
1086
- * // => ''
1087
- *
1088
- * _.toString(-0);
1089
- * // => '-0'
1090
- *
1091
- * _.toString([1, 2, 3]);
1092
- * // => '1,2,3'
1093
- */
1094
- function toString(value) {
1095
- return value == null ? '' : _baseToString(value);
1096
- }
1097
-
1098
- var toString_1 = toString;
1099
-
1100
- /**
1101
- * Casts `value` to a path array if it's not one.
1102
- *
1103
- * @private
1104
- * @param {*} value The value to inspect.
1105
- * @param {Object} [object] The object to query keys on.
1106
- * @returns {Array} Returns the cast property path array.
1107
- */
1108
- function castPath(value, object) {
1109
- if (isArray_1(value)) {
1110
- return value;
1111
- }
1112
- return _isKey(value, object) ? [value] : _stringToPath(toString_1(value));
1113
- }
1114
-
1115
- var _castPath = castPath;
1116
-
1117
- /** Used as references for various `Number` constants. */
1118
- var INFINITY = 1 / 0;
1119
-
1120
- /**
1121
- * Converts `value` to a string key if it's not a string or symbol.
1122
- *
1123
- * @private
1124
- * @param {*} value The value to inspect.
1125
- * @returns {string|symbol} Returns the key.
1126
- */
1127
- function toKey(value) {
1128
- if (typeof value == 'string' || isSymbol_1(value)) {
1129
- return value;
1130
- }
1131
- var result = (value + '');
1132
- return (result == '0' && (1 / value) == -INFINITY) ? '-0' : result;
1133
- }
1134
-
1135
- var _toKey = toKey;
1136
-
1137
- /**
1138
- * The base implementation of `_.get` without support for default values.
1139
- *
1140
- * @private
1141
- * @param {Object} object The object to query.
1142
- * @param {Array|string} path The path of the property to get.
1143
- * @returns {*} Returns the resolved value.
1144
- */
1145
- function baseGet(object, path) {
1146
- path = _castPath(path, object);
1147
-
1148
- var index = 0,
1149
- length = path.length;
1150
-
1151
- while (object != null && index < length) {
1152
- object = object[_toKey(path[index++])];
1153
- }
1154
- return (index && index == length) ? object : undefined;
1155
- }
1156
-
1157
- var _baseGet = baseGet;
1158
-
1159
- /**
1160
- * Gets the value at `path` of `object`. If the resolved value is
1161
- * `undefined`, the `defaultValue` is returned in its place.
1162
- *
1163
- * @static
1164
- * @memberOf _
1165
- * @since 3.7.0
1166
- * @category Object
1167
- * @param {Object} object The object to query.
1168
- * @param {Array|string} path The path of the property to get.
1169
- * @param {*} [defaultValue] The value returned for `undefined` resolved values.
1170
- * @returns {*} Returns the resolved value.
1171
- * @example
1172
- *
1173
- * var object = { 'a': [{ 'b': { 'c': 3 } }] };
1174
- *
1175
- * _.get(object, 'a[0].b.c');
1176
- * // => 3
1177
- *
1178
- * _.get(object, ['a', '0', 'b', 'c']);
1179
- * // => 3
1180
- *
1181
- * _.get(object, 'a.b.c', 'default');
1182
- * // => 'default'
1183
- */
1184
- function get(object, path, defaultValue) {
1185
- var result = object == null ? undefined : _baseGet(object, path);
1186
- return result === undefined ? defaultValue : result;
1187
- }
1188
-
1189
- var get_1 = get;
1190
-
1191
- const dom = document.documentElement;
1192
- const kupDates = dom.ketchup ? dom.ketchup.dates : new KupDates();
1193
- const kupObjects = dom.ketchup
1194
- ? dom.ketchup.objects
1195
- : new KupObjects();
1196
- // -------------
1197
- // COMMONS
1198
- // -------------
1199
- function getShape(cell, boxObject) {
1200
- let prop = get_1(cell, 'shape', null);
1201
- if (!prop && boxObject) {
1202
- prop = get_1(boxObject, 'shape', null);
1203
- }
1204
- return prop ? prop.toUpperCase() : null;
1205
- }
1206
- // -------------
1207
- // PROGRESS BAR
1208
- // -------------
1209
- function isProgressBar(cell, boxObject) {
1210
- let shape = getShape(cell, boxObject);
1211
- return ('PGB' === shape ||
1212
- (!shape && cell && cell.obj && kupObjects.isProgressBar(cell.obj)));
1213
- }
1214
- // -------------
1215
- // CHIP
1216
- // -------------
1217
- function isChip(cell, boxObject) {
1218
- let shape = getShape(cell, boxObject);
1219
- return ('CHI' === shape ||
1220
- (!shape && cell && cell.obj && kupObjects.isKupObjList(cell.obj)));
1221
- }
1222
- // -------------
1223
- // IMAGE
1224
- // -------------
1225
- function isImage(cell, boxObject) {
1226
- let shape = getShape(cell, boxObject);
1227
- return ('IMG' === shape ||
1228
- (!shape && cell && cell.obj && kupObjects.isImage(cell.obj)));
1229
- }
1230
- // -------------
1231
- // INPUT EDITOR
1232
- // -------------
1233
- function isEditor(cell, boxObject) {
1234
- let shape = getShape(cell, boxObject);
1235
- return 'EDT' === shape;
1236
- }
1237
- // -------------
1238
- // RATING
1239
- // -------------
1240
- function isRating(cell, boxObject) {
1241
- let shape = getShape(cell, boxObject);
1242
- return 'RTG' === shape;
1243
- }
1244
- // -------------
1245
- // COLOR
1246
- // -------------
1247
- function isColor(cell, boxObject) {
1248
- let shape = getShape(cell, boxObject);
1249
- return ('CLP' === shape ||
1250
- (!shape && cell && cell.obj && kupObjects.isColor(cell.obj)));
1251
- }
1252
- // -------------
1253
- // CHART
1254
- // -------------
1255
- function isChart(cell, boxObject) {
1256
- let shape = getShape(cell, boxObject);
1257
- return ('GRA' === shape ||
1258
- (!shape && cell && cell.obj && kupObjects.isChart(cell.obj)));
1259
- }
1260
- // -------------
1261
- // RADIO
1262
- // -------------
1263
- function isRadio(cell, boxObject) {
1264
- let shape = getShape(cell, boxObject);
1265
- return ('RAD' === shape ||
1266
- (!shape && cell && cell.obj && kupObjects.isRadio(cell.obj)));
1267
- }
1268
- // -------------
1269
- // GAUGE
1270
- // -------------
1271
- function isGauge(cell, boxObject) {
1272
- let shape = getShape(cell, boxObject);
1273
- return 'GAU' === shape;
1274
- }
1275
- // -------------
1276
- // KNOB
1277
- // -------------
1278
- function isKnob(cell, boxObject) {
1279
- let shape = getShape(cell, boxObject);
1280
- return 'KNB' === shape;
1281
- }
1282
- // -------------
1283
- // BUTTON-LIST
1284
- // -------------
1285
- function isButtonList(cell) {
1286
- let shape = getShape(cell);
1287
- return shape === 'BTN';
1288
- }
1289
- function getCellType(cell) {
1290
- let obj = cell.obj;
1291
- if (isButtonList(cell)) {
1292
- return 'btn';
1293
- }
1294
- else if (kupObjects.isBar(obj)) {
1295
- return 'bar';
1296
- }
1297
- else if (kupObjects.isButton(obj)) {
1298
- return 'button';
1299
- }
1300
- else if (kupObjects.isChart(obj)) {
1301
- return 'chart';
1302
- }
1303
- else if (kupObjects.isCheckbox(obj)) {
1304
- return 'checkbox';
1305
- }
1306
- else if (isColor(cell, null)) {
1307
- return 'color-picker';
1308
- }
1309
- else if (isGauge(cell, null)) {
1310
- return 'gauge';
1311
- }
1312
- else if (isKnob(cell, null)) {
1313
- return 'knob';
1314
- }
1315
- else if (kupObjects.isIcon(obj)) {
1316
- return 'icon';
1317
- }
1318
- else if (isImage(cell, null)) {
1319
- return 'image';
1320
- }
1321
- else if (kupObjects.isLink(obj)) {
1322
- return 'link';
1323
- }
1324
- else if (isProgressBar(cell, null)) {
1325
- return 'progress-bar';
1326
- }
1327
- else if (isRadio(cell, null)) {
1328
- return 'radio';
1329
- }
1330
- else if (isRating(cell, null)) {
1331
- return 'rating';
1332
- }
1333
- else if (isChip(cell, null)) {
1334
- return 'chips';
1335
- }
1336
- else if (kupObjects.isNumber(obj)) {
1337
- return 'number';
1338
- }
1339
- else if (kupObjects.isDate(obj)) {
1340
- return 'date';
1341
- }
1342
- else if (kupObjects.isTimestamp(obj)) {
1343
- return 'datetime';
1344
- }
1345
- else if (kupObjects.isTime(obj)) {
1346
- return 'time';
1347
- }
1348
- else if (kupObjects.isTextField(obj)) {
1349
- return 'text-field';
1350
- }
1351
- else if (kupObjects.isVoCodver(obj)) {
1352
- return 'icon';
1353
- }
1354
- else {
1355
- return 'string';
1356
- }
1357
- }
1358
- function getCellValueForDisplay(column, cell) {
1359
- if (cell != null) {
1360
- if (cell.displayedValue != null) {
1361
- return cell.displayedValue;
1362
- }
1363
- }
1364
- let formattedValue = _getCellValueForDisplay(cell.value, column, cell);
1365
- if (cell != null) {
1366
- cell.displayedValue = formattedValue;
1367
- }
1368
- return formattedValue;
1369
- }
1370
- function getValueForDisplay2(values, column) {
1371
- if (values == null) {
1372
- return '';
1373
- }
1374
- if (values.displayedValue == null || values.displayedValue.trim() == '') {
1375
- values.displayedValue = _getCellValueForDisplay(values.value, column, null);
1376
- }
1377
- return values.displayedValue;
1378
- }
1379
- function formatToNumber(cell) {
1380
- if (cell.obj) {
1381
- return numeral(cell.obj.k).value();
1382
- }
1383
- return numeral(cell.value).value();
1384
- }
1385
- function _getCellValueForDisplay(value, column, cell) {
1386
- let obj = column != null ? column.obj : null;
1387
- if (cell != null) {
1388
- obj = cell.obj ? cell.obj : obj;
1389
- }
1390
- return getValueForDisplay(value, obj, column != null ? column.decimals : null);
1391
- }
1392
- function getValueForDisplay(value, obj, decimals) {
1393
- if (value == null || value.trim() == '') {
1394
- return value;
1395
- }
1396
- if (kupObjects.isNumber(obj)) {
1397
- return unformattedStringToFormattedStringNumber(value, decimals ? decimals : -1, obj ? obj.p : '');
1398
- }
1399
- if (kupObjects.isDate(obj) &&
1400
- kupDates.isValid(value, KupDatesFormats.ISO_DATE)) {
1401
- return kupDates.format(value);
1402
- }
1403
- if (kupObjects.isTime(obj)) {
1404
- return unformattedStringToFormattedStringTime(value, kupObjects.isTimeWithSeconds(obj), obj.t + obj.p);
1405
- }
1406
- if (kupObjects.isTimestamp(obj)) {
1407
- return unformattedStringToFormattedStringTimestamp(value);
1408
- }
1409
- return value;
1410
- }
1411
- function getColumnByName(columns, name) {
1412
- if (columns == null) {
1413
- return null;
1414
- }
1415
- for (let column of columns) {
1416
- if (column.name === name) {
1417
- return column;
1418
- }
1419
- }
1420
- return null;
1421
- }
1422
- function compareCell(cell1, cell2, sortMode) {
1423
- return compareValues(cell1.obj, cell1.value, cell2.obj, cell2.value, sortMode);
1424
- }
1425
- function compareValues(obj1, value1, obj2, value2, sortMode) {
1426
- const sm = sortMode === 'A' ? 1 : -1;
1427
- if (obj1 == null || obj2 == null) {
1428
- return sm * localCompareAsInJava(value1, value2);
1429
- }
1430
- // If either the type or the parameter of the current object are not equal.
1431
- if (!(obj1.t === obj2.t && obj1.p === obj2.p)) {
1432
- let compare = localCompareAsInJava(obj1.t, obj2.t);
1433
- if (compare === 0) {
1434
- compare = localCompareAsInJava(obj1.p, obj2.p);
1435
- }
1436
- return compare * sm;
1437
- }
1438
- let s1 = value1;
1439
- let s2 = value2;
1440
- if (s1 == s2) {
1441
- return 0;
1442
- }
1443
- if (s1 == '') {
1444
- return sm * -1;
1445
- }
1446
- if (s2 == '') {
1447
- return sm * 1;
1448
- }
1449
- let v1 = s1;
1450
- let v2 = s2;
1451
- if (kupObjects.isNumber(obj1)) {
1452
- v1 = stringToNumber(s1);
1453
- v2 = stringToNumber(s2);
1454
- }
1455
- else if (kupObjects.isDate(obj1)) {
1456
- v1 = kupDates.toDate(kupDates.format(s1, KupDatesFormats.ISO_DATE));
1457
- v2 = kupDates.toDate(kupDates.format(s2, KupDatesFormats.ISO_DATE));
1458
- }
1459
- else if (kupObjects.isTime(obj1)) {
1460
- let manageSeconds = kupObjects.isTimeWithSeconds(obj1);
1461
- v1 = kupDates.toDate(kupDates.format(s1, manageSeconds
1462
- ? KupDatesFormats.ISO_TIME
1463
- : KupDatesFormats.ISO_TIME_WITHOUT_SECONDS));
1464
- v2 = kupDates.toDate(kupDates.format(s2, manageSeconds
1465
- ? KupDatesFormats.ISO_TIME
1466
- : KupDatesFormats.ISO_TIME_WITHOUT_SECONDS));
1467
- }
1468
- else if (kupObjects.isTimestamp(obj1)) {
1469
- v1 = kupDates.toDate(kupDates.format(s1, KupDatesFormats.ISO_DATE_TIME));
1470
- v2 = kupDates.toDate(kupDates.format(s2, KupDatesFormats.ISO_DATE_TIME));
1471
- }
1472
- if (v1 > v2) {
1473
- return sm * 1;
1474
- }
1475
- if (v1 < v2) {
1476
- return sm * -1;
1477
- }
1478
- return 0;
1479
- }
1480
- /**
1481
- * Given two strings to compare, the functions decides which string comes before the other or if they are equal.
1482
- * This is meant as a replacement for the JavaScript function localCompare() which produces a slightly different result from
1483
- * the Java version of compareTo().
1484
- *
1485
- * Re-implemented from java source method compareTo() of java.lang.String
1486
- * @param t1 firstString the first string to be compared
1487
- * @param t2 anotherString the another string to be compared to the first one
1488
- * @returns the value 0 if the anotherString is equal to
1489
- * firstString; a value less than 0 if firstString
1490
- * is lexicographically less than the anotherString; and a
1491
- * value greater than 0 if firstString is
1492
- * lexicographically greater than the anotherString.
1493
- */
1494
- function localCompareAsInJava(t1, t2) {
1495
- let t1Length = t1 == null ? 0 : t1.length;
1496
- let t2Length = t2 == null ? 0 : t2.length;
1497
- const lim = Math.min(t1Length, t2Length);
1498
- let k = 0;
1499
- while (k < lim) {
1500
- const c1 = t1[k];
1501
- const c2 = t2[k];
1502
- if (c1 !== c2) {
1503
- return c1.charCodeAt(0) - c2.charCodeAt(0);
1504
- }
1505
- k++;
1506
- }
1507
- return t1Length - t2Length;
1508
- }
1509
-
1510
- export { getValueForDisplay2 as a, getCellValueForDisplay as b, getColumnByName as c, compareValues as d, compareCell as e, isEditor as f, getValueForDisplay as g, isImage as h, isChart as i, isProgressBar as j, isRadio as k, isGauge as l, isKnob as m, formatToNumber as n, isRating as o, getCellType as p };