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