@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.
- package/README.md +3 -3
- package/dist/cjs/cell-utils-dc0884a3.js +168 -0
- package/dist/cjs/f-button-2ba74fb5.js +105 -0
- package/dist/cjs/f-cell-fe60a08d.js +731 -0
- package/dist/cjs/f-chip-90d95d22.js +141 -0
- package/dist/cjs/{f-image-5f4f29ca.js → f-image-d3bd4e08.js} +4 -5
- package/dist/cjs/{index-3c471303.js → index-0416afab.js} +73 -64
- package/dist/cjs/ketchup.cjs.js +3 -3
- package/dist/cjs/kup-accordion.cjs.entry.js +6 -8
- package/dist/cjs/{kup-autocomplete_29.cjs.entry.js → kup-autocomplete_28.cjs.entry.js} +2580 -3060
- package/dist/cjs/kup-calendar.cjs.entry.js +30 -30
- package/dist/cjs/kup-cell.cjs.entry.js +201 -0
- package/dist/cjs/kup-dash-list.cjs.entry.js +15 -7
- package/dist/cjs/kup-dash_2.cjs.entry.js +104 -62
- package/dist/cjs/kup-drawer.cjs.entry.js +4 -6
- package/dist/cjs/kup-field.cjs.entry.js +3 -5
- package/dist/cjs/kup-iframe.cjs.entry.js +3 -4
- package/dist/cjs/kup-lazy.cjs.entry.js +4 -6
- package/dist/cjs/kup-magic-box.cjs.entry.js +21 -31
- package/dist/cjs/kup-manager-1a2688ca.js +5813 -0
- package/dist/cjs/kup-nav-bar.cjs.entry.js +4 -6
- package/dist/cjs/kup-probe.cjs.entry.js +3 -4
- package/dist/cjs/kup-qlik.cjs.entry.js +2 -3
- package/dist/cjs/kup-snackbar.cjs.entry.js +152 -0
- package/dist/cjs/loader.cjs.js +3 -3
- package/dist/cjs/{utils-2af73538.js → utils-0cc466b9.js} +17 -83
- package/dist/collection/assets/cell.js +51 -0
- package/dist/collection/assets/data-table.js +518 -1
- package/dist/collection/assets/index.js +8 -0
- package/dist/collection/assets/snackbar.js +32 -0
- package/dist/collection/collection-manifest.json +6 -6
- package/dist/collection/components/kup-accordion/kup-accordion.css +0 -213
- package/dist/collection/components/kup-accordion/kup-accordion.js +15 -16
- package/dist/collection/components/kup-autocomplete/kup-autocomplete-declarations.js +2 -2
- package/dist/collection/components/kup-autocomplete/kup-autocomplete.css +5 -2381
- package/dist/collection/components/kup-autocomplete/kup-autocomplete.js +83 -111
- package/dist/collection/components/kup-badge/kup-badge.css +1 -35
- package/dist/collection/components/kup-badge/kup-badge.js +13 -14
- package/dist/collection/components/kup-box/kup-box.css +47 -780
- package/dist/collection/components/kup-box/kup-box.js +240 -366
- package/dist/collection/components/kup-button/kup-button.css +0 -333
- package/dist/collection/components/kup-button/kup-button.js +27 -28
- package/dist/collection/components/kup-button-list/kup-button-list.css +0 -332
- package/dist/collection/components/kup-button-list/kup-button-list.js +19 -20
- package/dist/collection/components/kup-calendar/kup-calendar.css +0 -517
- package/dist/collection/components/kup-calendar/kup-calendar.js +47 -45
- package/dist/collection/components/kup-card/builtin/kup-card-builtin.js +20 -0
- package/dist/collection/components/kup-card/builtin/kup-card-calendar.js +458 -0
- package/dist/collection/components/kup-card/builtin/kup-card-clock.js +321 -0
- package/dist/collection/components/kup-card/dialog/kup-card-dialog.js +18 -0
- package/dist/collection/components/kup-card/free/kup-card-free.js +13 -0
- package/dist/collection/components/kup-card/kup-card-declarations.js +19 -0
- package/dist/collection/components/kup-card/kup-card-helper.js +19 -1
- package/dist/collection/components/kup-card/kup-card.css +615 -185
- package/dist/collection/components/kup-card/kup-card.js +94 -34
- package/dist/collection/components/kup-card/standard/kup-card-standard.js +75 -0
- package/dist/collection/components/kup-cell/kup-cell-declarations.js +11 -0
- package/dist/collection/components/kup-cell/kup-cell.css +20 -0
- package/dist/collection/components/kup-cell/kup-cell.js +413 -0
- package/dist/collection/components/kup-chart/kup-chart.js +41 -42
- package/dist/collection/components/kup-checkbox/kup-checkbox.css +0 -214
- package/dist/collection/components/kup-checkbox/kup-checkbox.js +19 -20
- package/dist/collection/components/kup-chip/kup-chip.css +0 -217
- package/dist/collection/components/kup-chip/kup-chip.js +15 -16
- package/dist/collection/components/kup-color-picker/kup-color-picker.css +7 -2380
- package/dist/collection/components/kup-color-picker/kup-color-picker.js +41 -41
- package/dist/collection/components/kup-combobox/kup-combobox-declarations.js +1 -0
- package/dist/collection/components/kup-combobox/kup-combobox.css +5 -2381
- package/dist/collection/components/kup-combobox/kup-combobox.js +68 -28
- package/dist/collection/components/kup-dash-list/kup-dash-list.js +13 -4
- package/dist/collection/components/kup-data-table/kup-data-table-declarations.js +2 -0
- package/dist/collection/components/kup-data-table/kup-data-table-helper.js +61 -102
- package/dist/collection/components/kup-data-table/kup-data-table.css +118 -3232
- package/dist/collection/components/kup-data-table/kup-data-table.js +589 -1089
- package/dist/collection/components/kup-date-picker/kup-date-picker.css +1 -85
- package/dist/collection/components/kup-date-picker/kup-date-picker.js +92 -395
- package/dist/collection/components/kup-drawer/kup-drawer.js +9 -10
- package/dist/collection/components/kup-dropdown-button/kup-dropdown-button.css +12 -340
- package/dist/collection/components/kup-dropdown-button/kup-dropdown-button.js +56 -45
- package/dist/collection/components/kup-field/kup-field.js +21 -22
- package/dist/collection/components/kup-gauge/kup-gauge.js +17 -18
- package/dist/collection/components/kup-grid/kup-grid.css +2 -1
- package/dist/collection/components/kup-grid/kup-grid.js +13 -14
- package/dist/collection/components/kup-iframe/kup-iframe.js +4 -4
- package/dist/collection/components/kup-image/assets/svg/ketchup.svg +74 -0
- package/dist/collection/components/kup-image/assets/svg/smeup.svg +59 -0
- package/dist/collection/components/kup-image/kup-image.css +0 -32
- package/dist/collection/components/kup-image/kup-image.js +25 -26
- package/dist/collection/components/kup-lazy/kup-lazy.js +17 -18
- package/dist/collection/components/kup-list/kup-list-declarations.js +1 -1
- package/dist/collection/components/kup-list/kup-list.css +4 -260
- package/dist/collection/components/kup-list/kup-list.js +39 -49
- package/dist/collection/components/kup-magic-box/kup-magic-box.css +13 -39
- package/dist/collection/components/kup-magic-box/kup-magic-box.js +29 -38
- package/dist/collection/components/kup-nav-bar/kup-nav-bar.js +11 -12
- package/dist/collection/components/kup-paginator/kup-paginator.css +0 -332
- package/dist/collection/components/kup-paginator/kup-paginator.js +44 -12
- package/dist/collection/components/kup-probe/kup-probe.js +9 -9
- package/dist/collection/components/kup-progress-bar/kup-progress-bar.js +21 -22
- package/dist/collection/components/kup-radio/kup-radio.js +17 -18
- package/dist/collection/components/kup-rating/kup-rating.js +15 -16
- package/dist/collection/components/kup-snackbar/kup-snackbar-declarations.js +13 -0
- package/dist/collection/components/kup-snackbar/kup-snackbar.css +75 -0
- package/dist/collection/components/kup-snackbar/kup-snackbar.js +390 -0
- package/dist/collection/components/kup-spinner/kup-spinner.js +23 -24
- package/dist/collection/components/kup-switch/kup-switch.css +0 -156
- package/dist/collection/components/kup-switch/kup-switch.js +17 -18
- package/dist/collection/components/kup-tab-bar/kup-tab-bar.css +0 -199
- package/dist/collection/components/kup-tab-bar/kup-tab-bar.js +13 -14
- package/dist/collection/components/kup-text-field/kup-text-field-declarations.js +1 -0
- package/dist/collection/components/kup-text-field/kup-text-field.css +4 -2371
- package/dist/collection/components/kup-text-field/kup-text-field.js +77 -51
- package/dist/collection/components/kup-time-picker/kup-time-picker.css +7 -0
- package/dist/collection/components/kup-time-picker/kup-time-picker.js +97 -317
- package/dist/collection/components/kup-tooltip/kup-tooltip.js +24 -14
- package/dist/collection/components/kup-tree/kup-tree.css +27 -371
- package/dist/collection/components/kup-tree/kup-tree.js +163 -383
- package/dist/collection/f-components/f-button/f-button.js +4 -2
- package/dist/collection/f-components/f-cell/f-cell-declarations.js +143 -0
- package/dist/collection/f-components/f-cell/f-cell.js +471 -0
- package/dist/collection/f-components/f-checkbox/f-checkbox.js +1 -1
- package/dist/collection/f-components/f-chip/f-chip.js +2 -2
- package/dist/collection/f-components/f-image/f-image.js +2 -3
- package/dist/collection/f-components/f-switch/f-switch.js +1 -1
- package/dist/collection/f-components/f-text-field/f-text-field-mdc.js +1 -1
- package/dist/collection/f-components/f-text-field/f-text-field.js +25 -21
- package/dist/collection/utils/cell-utils.js +18 -222
- package/dist/collection/utils/filters/filters.js +31 -37
- package/dist/collection/utils/kup-column-menu/kup-column-menu.js +15 -3
- package/dist/collection/utils/kup-dates/kup-dates.js +14 -2
- package/dist/collection/utils/kup-debug/kup-debug-browser-utils.js +3 -3
- package/dist/collection/utils/kup-debug/kup-debug.js +57 -29
- package/dist/collection/utils/kup-dynamic-position/kup-dynamic-position.js +5 -7
- package/dist/collection/utils/kup-interact/kup-interact-declarations.js +48 -0
- package/dist/collection/utils/kup-interact/kup-interact.js +379 -0
- package/dist/collection/utils/kup-language/kup-language-declarations.js +2 -0
- package/dist/collection/utils/kup-language/kup-language.js +1 -1
- package/dist/collection/utils/kup-manager/kup-manager.js +47 -10
- package/dist/collection/utils/kup-objects/kup-objects.js +9 -33
- package/dist/collection/utils/kup-scroll-on-hover/kup-scroll-on-hover.js +60 -62
- package/dist/collection/utils/kup-search/kup-search-declarations.js +1 -0
- package/dist/collection/utils/kup-search/kup-search.js +75 -0
- package/dist/collection/utils/kup-theme/kup-theme-declarations.js +1 -0
- package/dist/collection/utils/kup-theme/kup-theme.js +4 -3
- package/dist/collection/utils/kup-toolbar/kup-toolbar.js +16 -18
- package/dist/collection/utils/utils.js +15 -23
- package/dist/esm/cell-utils-8f512ea9.js +160 -0
- package/dist/esm/f-button-30dbcaa9.js +103 -0
- package/dist/esm/f-cell-95c186c6.js +727 -0
- package/dist/esm/f-chip-c0e9c0ff.js +139 -0
- package/dist/esm/{f-image-68b34fab.js → f-image-3bc8b24f.js} +4 -5
- package/dist/esm/{index-bf2824a6.js → index-e0e67c23.js} +74 -65
- package/dist/esm/ketchup.js +3 -3
- package/dist/esm/kup-accordion.entry.js +6 -8
- package/dist/esm/{kup-autocomplete_29.entry.js → kup-autocomplete_28.entry.js} +2379 -2858
- package/dist/esm/kup-calendar.entry.js +10 -10
- package/dist/esm/kup-cell.entry.js +197 -0
- package/dist/esm/kup-dash-list.entry.js +15 -7
- package/dist/esm/kup-dash_2.entry.js +104 -62
- package/dist/esm/kup-drawer.entry.js +4 -6
- package/dist/esm/kup-field.entry.js +3 -5
- package/dist/esm/kup-iframe.entry.js +3 -4
- package/dist/esm/kup-lazy.entry.js +4 -6
- package/dist/esm/kup-magic-box.entry.js +21 -31
- package/dist/esm/kup-manager-7fc234da.js +5800 -0
- package/dist/esm/kup-nav-bar.entry.js +4 -6
- package/dist/esm/kup-probe.entry.js +3 -4
- package/dist/esm/kup-qlik.entry.js +2 -3
- package/dist/esm/kup-snackbar.entry.js +148 -0
- package/dist/esm/loader.js +3 -3
- package/dist/esm/{utils-13dd007a.js → utils-6c73709d.js} +15 -78
- package/dist/ketchup/assets/svg/ketchup.svg +74 -0
- package/dist/ketchup/assets/svg/smeup.svg +59 -0
- package/dist/ketchup/ketchup.esm.js +1 -1
- package/dist/ketchup/p-15321eae.js +1 -0
- package/dist/ketchup/p-1baf1205.entry.js +1 -0
- package/dist/ketchup/p-1c6178e4.entry.js +1 -0
- package/dist/ketchup/p-44375e49.js +1 -0
- package/dist/ketchup/p-4dcdbd31.entry.js +45 -0
- package/dist/ketchup/p-5a5f2a53.js +1 -0
- package/dist/ketchup/{p-c7ee1fbc.js → p-61faaa38.js} +2 -2
- package/dist/ketchup/p-62816d0b.entry.js +1 -0
- package/dist/ketchup/p-65adc15b.entry.js +1 -0
- package/dist/ketchup/p-7e23ea7c.entry.js +1 -0
- package/dist/ketchup/p-a378ba56.entry.js +1 -0
- package/dist/ketchup/p-a878016f.entry.js +1 -0
- package/dist/ketchup/p-a96e6e32.entry.js +1 -0
- package/dist/ketchup/p-ad32821e.entry.js +1 -0
- package/dist/ketchup/p-af4a6191.entry.js +1 -0
- package/dist/ketchup/p-c18c7bb0.entry.js +27 -0
- package/dist/ketchup/p-ca0ca27f.entry.js +1 -0
- package/dist/ketchup/p-cb5f4994.js +1 -0
- package/dist/ketchup/p-ccda584a.entry.js +1 -0
- package/dist/ketchup/p-d4aa4922.js +1 -0
- package/dist/ketchup/p-dbb6998b.entry.js +1 -0
- package/dist/ketchup/p-de83f2f6.js +1 -0
- package/dist/ketchup/p-ec3a3db9.js +1 -0
- package/dist/types/components/kup-autocomplete/kup-autocomplete-declarations.d.ts +2 -6
- package/dist/types/components/kup-autocomplete/kup-autocomplete.d.ts +7 -13
- package/dist/types/components/kup-box/kup-box-declarations.d.ts +13 -4
- package/dist/types/components/kup-box/kup-box.d.ts +13 -6
- package/dist/types/components/kup-card/builtin/kup-card-builtin.d.ts +14 -0
- package/dist/types/components/kup-card/builtin/kup-card-calendar.d.ts +2 -0
- package/dist/types/components/kup-card/builtin/kup-card-clock.d.ts +2 -0
- package/dist/types/components/kup-card/dialog/kup-card-dialog.d.ts +6 -0
- package/dist/types/components/kup-card/free/kup-card-free.d.ts +8 -0
- package/dist/types/components/kup-card/kup-card-declarations.d.ts +74 -0
- package/dist/types/components/kup-card/kup-card.d.ts +12 -3
- package/dist/types/components/kup-card/standard/kup-card-standard.d.ts +6 -0
- package/dist/types/components/kup-cell/kup-cell-declarations.d.ts +10 -0
- package/dist/types/components/kup-cell/kup-cell.d.ts +67 -0
- package/dist/types/components/kup-color-picker/kup-color-picker.d.ts +1 -1
- package/dist/types/components/kup-combobox/kup-combobox-declarations.d.ts +3 -2
- package/dist/types/components/kup-combobox/kup-combobox.d.ts +5 -0
- package/dist/types/components/kup-dash-list/kup-dash-list.d.ts +4 -0
- package/dist/types/components/kup-data-table/kup-data-table-declarations.d.ts +20 -36
- package/dist/types/components/kup-data-table/kup-data-table-helper.d.ts +1 -15
- package/dist/types/components/kup-data-table/kup-data-table.d.ts +33 -83
- package/dist/types/components/kup-date-picker/kup-date-picker.d.ts +11 -23
- package/dist/types/components/kup-dropdown-button/kup-dropdown-button.d.ts +1 -4
- package/dist/types/components/kup-list/kup-list-declarations.d.ts +1 -1
- package/dist/types/components/kup-list/kup-list.d.ts +2 -3
- package/dist/types/components/kup-magic-box/kup-magic-box.d.ts +1 -0
- package/dist/types/components/kup-paginator/kup-paginator.d.ts +6 -0
- package/dist/types/components/kup-snackbar/kup-snackbar-declarations.d.ts +12 -0
- package/dist/types/components/kup-snackbar/kup-snackbar.d.ts +79 -0
- package/dist/types/components/kup-text-field/kup-text-field-declarations.d.ts +2 -1
- package/dist/types/components/kup-text-field/kup-text-field.d.ts +5 -0
- package/dist/types/components/kup-time-picker/kup-time-picker.d.ts +10 -20
- package/dist/types/components/kup-tooltip/kup-tooltip.d.ts +1 -0
- package/dist/types/components/kup-tree/kup-tree-declarations.d.ts +4 -4
- package/dist/types/components/kup-tree/kup-tree.d.ts +12 -23
- package/dist/types/components.d.ts +348 -176
- package/dist/types/f-components/f-cell/f-cell-declarations.d.ts +153 -0
- package/dist/types/f-components/f-cell/f-cell.d.ts +3 -0
- package/dist/types/f-components/f-text-field/f-text-field-declarations.d.ts +1 -0
- package/dist/types/f-components/f-text-field/f-text-field-mdc.d.ts +1 -1
- package/dist/types/utils/cell-utils.d.ts +0 -19
- package/dist/types/utils/kup-column-menu/kup-column-menu.d.ts +2 -0
- package/dist/types/utils/kup-dates/kup-dates.d.ts +9 -4
- package/dist/types/utils/kup-debug/kup-debug.d.ts +1 -1
- package/dist/types/utils/kup-dynamic-position/kup-dynamic-position-declarations.d.ts +1 -1
- package/dist/types/utils/kup-dynamic-position/kup-dynamic-position.d.ts +2 -2
- package/dist/types/utils/kup-interact/kup-interact-declarations.d.ts +127 -0
- package/dist/types/utils/kup-interact/kup-interact.d.ts +93 -0
- package/dist/types/utils/kup-language/kup-language-declarations.d.ts +2 -0
- package/dist/types/utils/kup-language/kup-language.d.ts +1 -1
- package/dist/types/utils/kup-manager/kup-manager-declarations.d.ts +28 -8
- package/dist/types/utils/kup-manager/kup-manager.d.ts +18 -5
- package/dist/types/utils/kup-objects/kup-objects.d.ts +1 -7
- package/dist/types/utils/kup-search/kup-search-declarations.d.ts +7 -0
- package/dist/types/utils/kup-search/kup-search.d.ts +20 -0
- package/dist/types/utils/kup-theme/kup-theme-declarations.d.ts +2 -0
- package/dist/types/utils/kup-theme/kup-theme.d.ts +2 -2
- package/dist/types/utils/utils.d.ts +0 -1
- package/package.json +4 -6
- package/dist/cjs/cell-utils-1f89a299.js +0 -1527
- package/dist/cjs/drag-and-drop-4787ff6f.js +0 -281
- package/dist/cjs/f-chip-2d58c8f7.js +0 -239
- package/dist/cjs/kup-grid.cjs.entry.js +0 -130
- package/dist/cjs/kup-manager-59ad8bdc.js +0 -4845
- package/dist/cjs/kup-objects-59ea949c.js +0 -717
- package/dist/collection/assets/images/drag-multiple.js +0 -1
- package/dist/collection/components/kup-editor/kup-editor.css +0 -5
- package/dist/collection/components/kup-editor/kup-editor.js +0 -59
- package/dist/collection/components/kup-layout/kup-layout.css +0 -53
- package/dist/collection/components/kup-layout/kup-layout.js +0 -156
- package/dist/collection/utils/drag-and-drop.js +0 -109
- package/dist/collection/utils/kup-dialog/kup-dialog-declarations.js +0 -36
- package/dist/collection/utils/kup-dialog/kup-dialog.js +0 -310
- package/dist/esm/cell-utils-cb612463.js +0 -1510
- package/dist/esm/drag-and-drop-321cb4ca.js +0 -265
- package/dist/esm/f-chip-125d5dd6.js +0 -236
- package/dist/esm/kup-grid.entry.js +0 -126
- package/dist/esm/kup-manager-e7d7b353.js +0 -4842
- package/dist/esm/kup-objects-d38d2fa2.js +0 -711
- package/dist/ketchup/p-00fe1e3e.js +0 -1
- package/dist/ketchup/p-0320e24e.entry.js +0 -1
- package/dist/ketchup/p-08c7a092.js +0 -1
- package/dist/ketchup/p-1165f4ea.entry.js +0 -1
- package/dist/ketchup/p-170d3cba.js +0 -1
- package/dist/ketchup/p-18cb3ba3.js +0 -1
- package/dist/ketchup/p-23541a97.entry.js +0 -45
- package/dist/ketchup/p-64ea7e37.entry.js +0 -1
- package/dist/ketchup/p-7896031c.entry.js +0 -1
- package/dist/ketchup/p-876da4c2.entry.js +0 -1
- package/dist/ketchup/p-8fb9d9b2.entry.js +0 -1
- package/dist/ketchup/p-940ab57a.entry.js +0 -1
- package/dist/ketchup/p-9c858a38.entry.js +0 -1
- package/dist/ketchup/p-a12a5690.entry.js +0 -1
- package/dist/ketchup/p-a5424073.js +0 -1
- package/dist/ketchup/p-b0724035.entry.js +0 -1
- package/dist/ketchup/p-b14e77f0.js +0 -1
- package/dist/ketchup/p-d24cfdea.entry.js +0 -1
- package/dist/ketchup/p-ee89966f.entry.js +0 -27
- package/dist/ketchup/p-fcd2fd8f.js +0 -1
- package/dist/ketchup/p-fce3b9d8.entry.js +0 -1
- package/dist/types/assets/images/drag-multiple.d.ts +0 -1
- package/dist/types/components/kup-editor/kup-editor.d.ts +0 -16
- package/dist/types/components/kup-layout/kup-layout.d.ts +0 -25
- package/dist/types/utils/drag-and-drop.d.ts +0 -53
- package/dist/types/utils/kup-dialog/kup-dialog-declarations.d.ts +0 -43
- package/dist/types/utils/kup-dialog/kup-dialog.d.ts +0 -50
|
@@ -1,711 +0,0 @@
|
|
|
1
|
-
var commonjsGlobal = typeof globalThis !== 'undefined' ? globalThis : typeof window !== 'undefined' ? window : typeof global !== 'undefined' ? global : typeof self !== 'undefined' ? self : {};
|
|
2
|
-
|
|
3
|
-
function getDefaultExportFromCjs (x) {
|
|
4
|
-
return x && x.__esModule && Object.prototype.hasOwnProperty.call(x, 'default') ? x['default'] : x;
|
|
5
|
-
}
|
|
6
|
-
|
|
7
|
-
function createCommonjsModule(fn, basedir, module) {
|
|
8
|
-
return module = {
|
|
9
|
-
path: basedir,
|
|
10
|
-
exports: {},
|
|
11
|
-
require: function (path, base) {
|
|
12
|
-
return commonjsRequire();
|
|
13
|
-
}
|
|
14
|
-
}, fn(module, module.exports), module.exports;
|
|
15
|
-
}
|
|
16
|
-
|
|
17
|
-
function commonjsRequire () {
|
|
18
|
-
throw new Error('Dynamic requires are not currently supported by @rollup/plugin-commonjs');
|
|
19
|
-
}
|
|
20
|
-
|
|
21
|
-
var dayjs_min = createCommonjsModule(function (module, exports) {
|
|
22
|
-
!function(t,e){module.exports=e();}(commonjsGlobal,(function(){var t=1e3,e=6e4,n=36e5,r="millisecond",i="second",s="minute",u="hour",a="day",o="week",f="month",h="quarter",c="year",d="date",$="Invalid Date",l=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,y=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,M={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_")},m=function(t,e,n){var r=String(t);return !r||r.length>=e?t:""+Array(e+1-r.length).join(n)+t},g={s:m,z:function(t){var e=-t.utcOffset(),n=Math.abs(e),r=Math.floor(n/60),i=n%60;return (e<=0?"+":"-")+m(r,2,"0")+":"+m(i,2,"0")},m:function t(e,n){if(e.date()<n.date())return -t(n,e);var r=12*(n.year()-e.year())+(n.month()-e.month()),i=e.clone().add(r,f),s=n-i<0,u=e.clone().add(r+(s?-1:1),f);return +(-(r+(n-i)/(s?i-u:u-i))||0)},a:function(t){return t<0?Math.ceil(t)||0:Math.floor(t)},p:function(t){return {M:f,y:c,w:o,d:a,D:d,h:u,m:s,s:i,ms:r,Q:h}[t]||String(t||"").toLowerCase().replace(/s$/,"")},u:function(t){return void 0===t}},D="en",v={};v[D]=M;var p=function(t){return t instanceof _},S=function(t,e,n){var r;if(!t)return D;if("string"==typeof t)v[t]&&(r=t),e&&(v[t]=e,r=t);else {var i=t.name;v[i]=t,r=i;}return !n&&r&&(D=r),r||!n&&D},w=function(t,e){if(p(t))return t.clone();var n="object"==typeof e?e:{};return n.date=t,n.args=arguments,new _(n)},O=g;O.l=S,O.i=p,O.w=function(t,e){return w(t,{locale:e.$L,utc:e.$u,x:e.$x,$offset:e.$offset})};var _=function(){function M(t){this.$L=S(t.locale,null,!0),this.parse(t);}var m=M.prototype;return m.parse=function(t){this.$d=function(t){var e=t.date,n=t.utc;if(null===e)return new Date(NaN);if(O.u(e))return new Date;if(e instanceof Date)return new Date(e);if("string"==typeof e&&!/Z$/i.test(e)){var r=e.match(l);if(r){var i=r[2]-1||0,s=(r[7]||"0").substring(0,3);return n?new Date(Date.UTC(r[1],i,r[3]||1,r[4]||0,r[5]||0,r[6]||0,s)):new Date(r[1],i,r[3]||1,r[4]||0,r[5]||0,r[6]||0,s)}}return new Date(e)}(t),this.$x=t.x||{},this.init();},m.init=function(){var t=this.$d;this.$y=t.getFullYear(),this.$M=t.getMonth(),this.$D=t.getDate(),this.$W=t.getDay(),this.$H=t.getHours(),this.$m=t.getMinutes(),this.$s=t.getSeconds(),this.$ms=t.getMilliseconds();},m.$utils=function(){return O},m.isValid=function(){return !(this.$d.toString()===$)},m.isSame=function(t,e){var n=w(t);return this.startOf(e)<=n&&n<=this.endOf(e)},m.isAfter=function(t,e){return w(t)<this.startOf(e)},m.isBefore=function(t,e){return this.endOf(e)<w(t)},m.$g=function(t,e,n){return O.u(t)?this[e]:this.set(n,t)},m.unix=function(){return Math.floor(this.valueOf()/1e3)},m.valueOf=function(){return this.$d.getTime()},m.startOf=function(t,e){var n=this,r=!!O.u(e)||e,h=O.p(t),$=function(t,e){var i=O.w(n.$u?Date.UTC(n.$y,e,t):new Date(n.$y,e,t),n);return r?i:i.endOf(a)},l=function(t,e){return O.w(n.toDate()[t].apply(n.toDate("s"),(r?[0,0,0,0]:[23,59,59,999]).slice(e)),n)},y=this.$W,M=this.$M,m=this.$D,g="set"+(this.$u?"UTC":"");switch(h){case c:return r?$(1,0):$(31,11);case f:return r?$(1,M):$(0,M+1);case o:var D=this.$locale().weekStart||0,v=(y<D?y+7:y)-D;return $(r?m-v:m+(6-v),M);case a:case d:return l(g+"Hours",0);case u:return l(g+"Minutes",1);case s:return l(g+"Seconds",2);case i:return l(g+"Milliseconds",3);default:return this.clone()}},m.endOf=function(t){return this.startOf(t,!1)},m.$set=function(t,e){var n,o=O.p(t),h="set"+(this.$u?"UTC":""),$=(n={},n[a]=h+"Date",n[d]=h+"Date",n[f]=h+"Month",n[c]=h+"FullYear",n[u]=h+"Hours",n[s]=h+"Minutes",n[i]=h+"Seconds",n[r]=h+"Milliseconds",n)[o],l=o===a?this.$D+(e-this.$W):e;if(o===f||o===c){var y=this.clone().set(d,1);y.$d[$](l),y.init(),this.$d=y.set(d,Math.min(this.$D,y.daysInMonth())).$d;}else $&&this.$d[$](l);return this.init(),this},m.set=function(t,e){return this.clone().$set(t,e)},m.get=function(t){return this[O.p(t)]()},m.add=function(r,h){var d,$=this;r=Number(r);var l=O.p(h),y=function(t){var e=w($);return O.w(e.date(e.date()+Math.round(t*r)),$)};if(l===f)return this.set(f,this.$M+r);if(l===c)return this.set(c,this.$y+r);if(l===a)return y(1);if(l===o)return y(7);var M=(d={},d[s]=e,d[u]=n,d[i]=t,d)[l]||1,m=this.$d.getTime()+r*M;return O.w(m,this)},m.subtract=function(t,e){return this.add(-1*t,e)},m.format=function(t){var e=this,n=this.$locale();if(!this.isValid())return n.invalidDate||$;var r=t||"YYYY-MM-DDTHH:mm:ssZ",i=O.z(this),s=this.$H,u=this.$m,a=this.$M,o=n.weekdays,f=n.months,h=function(t,n,i,s){return t&&(t[n]||t(e,r))||i[n].substr(0,s)},c=function(t){return O.s(s%12||12,t,"0")},d=n.meridiem||function(t,e,n){var r=t<12?"AM":"PM";return n?r.toLowerCase():r},l={YY:String(this.$y).slice(-2),YYYY:this.$y,M:a+1,MM:O.s(a+1,2,"0"),MMM:h(n.monthsShort,a,f,3),MMMM:h(f,a),D:this.$D,DD:O.s(this.$D,2,"0"),d:String(this.$W),dd:h(n.weekdaysMin,this.$W,o,2),ddd:h(n.weekdaysShort,this.$W,o,3),dddd:o[this.$W],H:String(s),HH:O.s(s,2,"0"),h:c(1),hh:c(2),a:d(s,u,!0),A:d(s,u,!1),m:String(u),mm:O.s(u,2,"0"),s:String(this.$s),ss:O.s(this.$s,2,"0"),SSS:O.s(this.$ms,3,"0"),Z:i};return r.replace(y,(function(t,e){return e||l[t]||i.replace(":","")}))},m.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},m.diff=function(r,d,$){var l,y=O.p(d),M=w(r),m=(M.utcOffset()-this.utcOffset())*e,g=this-M,D=O.m(this,M);return D=(l={},l[c]=D/12,l[f]=D,l[h]=D/3,l[o]=(g-m)/6048e5,l[a]=(g-m)/864e5,l[u]=g/n,l[s]=g/e,l[i]=g/t,l)[y]||g,$?D:O.a(D)},m.daysInMonth=function(){return this.endOf(f).$D},m.$locale=function(){return v[this.$L]},m.locale=function(t,e){if(!t)return this.$L;var n=this.clone(),r=S(t,e,!0);return r&&(n.$L=r),n},m.clone=function(){return O.w(this.$d,this)},m.toDate=function(){return new Date(this.valueOf())},m.toJSON=function(){return this.isValid()?this.toISOString():null},m.toISOString=function(){return this.$d.toISOString()},m.toString=function(){return this.$d.toUTCString()},M}(),b=_.prototype;return w.prototype=b,[["$ms",r],["$s",i],["$m",s],["$H",u],["$W",a],["$M",f],["$y",c],["$D",d]].forEach((function(t){b[t[1]]=function(e){return this.$g(e,t[0],t[1])};})),w.extend=function(t,e){return t.$i||(t(e,_,w),t.$i=!0),w},w.locale=S,w.isDayjs=p,w.unix=function(t){return w(1e3*t)},w.en=v[D],w.Ls=v,w.p={},w}));
|
|
23
|
-
});
|
|
24
|
-
|
|
25
|
-
var customParseFormat = createCommonjsModule(function (module, exports) {
|
|
26
|
-
!function(t,e){module.exports=e();}(commonjsGlobal,(function(){var t={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},e=/(\[[^[]*\])|([-:/.()\s]+)|(A|a|YYYY|YY?|MM?M?M?|Do|DD?|hh?|HH?|mm?|ss?|S{1,3}|z|ZZ?)/g,n=/\d\d/,r=/\d\d?/,i=/\d*[^\s\d-_:/()]+/,o={},s=function(t){return (t=+t)+(t>68?1900:2e3)};var a=function(t){return function(e){this[t]=+e;}},f=[/[+-]\d\d:?(\d\d)?|Z/,function(t){(this.zone||(this.zone={})).offset=function(t){if(!t)return 0;if("Z"===t)return 0;var e=t.match(/([+-]|\d\d)/g),n=60*e[1]+(+e[2]||0);return 0===n?0:"+"===e[0]?-n:n}(t);}],u=function(t){var e=o[t];return e&&(e.indexOf?e:e.s.concat(e.f))},h=function(t,e){var n,r=o.meridiem;if(r){for(var i=1;i<=24;i+=1)if(t.indexOf(r(i,0,e))>-1){n=i>12;break}}else n=t===(e?"pm":"PM");return n},d={A:[i,function(t){this.afternoon=h(t,!1);}],a:[i,function(t){this.afternoon=h(t,!0);}],S:[/\d/,function(t){this.milliseconds=100*+t;}],SS:[n,function(t){this.milliseconds=10*+t;}],SSS:[/\d{3}/,function(t){this.milliseconds=+t;}],s:[r,a("seconds")],ss:[r,a("seconds")],m:[r,a("minutes")],mm:[r,a("minutes")],H:[r,a("hours")],h:[r,a("hours")],HH:[r,a("hours")],hh:[r,a("hours")],D:[r,a("day")],DD:[n,a("day")],Do:[i,function(t){var e=o.ordinal,n=t.match(/\d+/);if(this.day=n[0],e)for(var r=1;r<=31;r+=1)e(r).replace(/\[|\]/g,"")===t&&(this.day=r);}],M:[r,a("month")],MM:[n,a("month")],MMM:[i,function(t){var e=u("months"),n=(u("monthsShort")||e.map((function(t){return t.substr(0,3)}))).indexOf(t)+1;if(n<1)throw new Error;this.month=n%12||n;}],MMMM:[i,function(t){var e=u("months").indexOf(t)+1;if(e<1)throw new Error;this.month=e%12||e;}],Y:[/[+-]?\d+/,a("year")],YY:[n,function(t){this.year=s(t);}],YYYY:[/\d{4}/,a("year")],Z:f,ZZ:f};function c(n){var r,i;r=n,i=o&&o.formats;for(var s=(n=r.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,(function(e,n,r){var o=r&&r.toUpperCase();return n||i[r]||t[r]||i[o].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,(function(t,e,n){return e||n.slice(1)}))}))).match(e),a=s.length,f=0;f<a;f+=1){var u=s[f],h=d[u],c=h&&h[0],l=h&&h[1];s[f]=l?{regex:c,parser:l}:u.replace(/^\[|\]$/g,"");}return function(t){for(var e={},n=0,r=0;n<a;n+=1){var i=s[n];if("string"==typeof i)r+=i.length;else {var o=i.regex,f=i.parser,u=t.substr(r),h=o.exec(u)[0];f.call(e,h),t=t.replace(h,"");}}return function(t){var e=t.afternoon;if(void 0!==e){var n=t.hours;e?n<12&&(t.hours+=12):12===n&&(t.hours=0),delete t.afternoon;}}(e),e}}return function(t,e,n){n.p.customParseFormat=!0,t&&t.parseTwoDigitYear&&(s=t.parseTwoDigitYear);var r=e.prototype,i=r.parse;r.parse=function(t){var e=t.date,r=t.utc,s=t.args;this.$u=r;var a=s[1];if("string"==typeof a){var f=!0===s[2],u=!0===s[3],h=f||u,d=s[2];u&&(d=s[2]),o=this.$locale(),!f&&d&&(o=n.Ls[d]),this.$d=function(t,e,n){try{if(["x","X"].indexOf(e)>-1)return new Date(("X"===e?1e3:1)*t);var r=c(e)(t),i=r.year,o=r.month,s=r.day,a=r.hours,f=r.minutes,u=r.seconds,h=r.milliseconds,d=r.zone,l=new Date,m=s||(i||o?1:l.getDate()),M=i||l.getFullYear(),Y=0;i&&!o||(Y=o>0?o-1:l.getMonth());var p=a||0,v=f||0,D=u||0,g=h||0;return d?new Date(Date.UTC(M,Y,m,p,v,D,g+60*d.offset*1e3)):n?new Date(Date.UTC(M,Y,m,p,v,D,g)):new Date(M,Y,m,p,v,D,g)}catch(t){return new Date("")}}(e,a,r),this.init(),d&&!0!==d&&(this.$L=this.locale(d).$L),h&&e!=this.format(a)&&(this.$d=new Date("")),o={};}else if(a instanceof Array)for(var l=a.length,m=1;m<=l;m+=1){s[1]=a[m-1];var M=n.apply(this,s);if(M.isValid()){this.$d=M.$d,this.$L=M.$L,this.init();break}m===l&&(this.$d=new Date(""));}else i.call(this,t);};}}));
|
|
27
|
-
});
|
|
28
|
-
|
|
29
|
-
var localizedFormat = createCommonjsModule(function (module, exports) {
|
|
30
|
-
!function(e,t){module.exports=t();}(commonjsGlobal,(function(){var e={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"};return function(t,o,n){var r=o.prototype,i=r.format;n.en.formats=e,r.format=function(t){void 0===t&&(t="YYYY-MM-DDTHH:mm:ssZ");var o=this.$locale().formats,n=function(t,o){return t.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,(function(t,n,r){var i=r&&r.toUpperCase();return n||o[r]||e[r]||o[i].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,(function(e,t,o){return t||o.slice(1)}))}))}(t,void 0===o?{}:o);return i.call(this,n)};}}));
|
|
31
|
-
});
|
|
32
|
-
|
|
33
|
-
var minMax = createCommonjsModule(function (module, exports) {
|
|
34
|
-
!function(e,n){module.exports=n();}(commonjsGlobal,(function(){return function(e,n,t){var i=function(e,n){if(!n||!n.length||!n[0]||1===n.length&&!n[0].length)return null;var t;1===n.length&&n[0].length>0&&(n=n[0]);t=n[0];for(var i=1;i<n.length;i+=1)n[i].isValid()&&!n[i][e](t)||(t=n[i]);return t};t.max=function(){var e=[].slice.call(arguments,0);return i("isAfter",e)},t.min=function(){var e=[].slice.call(arguments,0);return i("isBefore",e)};}}));
|
|
35
|
-
});
|
|
36
|
-
|
|
37
|
-
createCommonjsModule(function (module, exports) {
|
|
38
|
-
!function(e,o){module.exports=o(dayjs_min);}(commonjsGlobal,(function(e){function o(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var s=o(e),d={name:"es",monthsShort:"ene_feb_mar_abr_may_jun_jul_ago_sep_oct_nov_dic".split("_"),weekdays:"domingo_lunes_martes_miércoles_jueves_viernes_sábado".split("_"),weekdaysShort:"dom._lun._mar._mié._jue._vie._sáb.".split("_"),weekdaysMin:"do_lu_ma_mi_ju_vi_sá".split("_"),months:"enero_febrero_marzo_abril_mayo_junio_julio_agosto_septiembre_octubre_noviembre_diciembre".split("_"),weekStart:1,formats:{LT:"H:mm",LTS:"H:mm:ss",L:"DD/MM/YYYY",LL:"D [de] MMMM [de] YYYY",LLL:"D [de] MMMM [de] YYYY H:mm",LLLL:"dddd, D [de] MMMM [de] YYYY H:mm"},relativeTime:{future:"en %s",past:"hace %s",s:"unos segundos",m:"un minuto",mm:"%d minutos",h:"una hora",hh:"%d horas",d:"un día",dd:"%d días",M:"un mes",MM:"%d meses",y:"un año",yy:"%d años"},ordinal:function(e){return e+"º"}};return s.default.locale(d,null,!0),d}));
|
|
39
|
-
});
|
|
40
|
-
|
|
41
|
-
createCommonjsModule(function (module, exports) {
|
|
42
|
-
!function(e,n){module.exports=n(dayjs_min);}(commonjsGlobal,(function(e){function n(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var t=n(e),i={name:"fr",weekdays:"dimanche_lundi_mardi_mercredi_jeudi_vendredi_samedi".split("_"),weekdaysShort:"dim._lun._mar._mer._jeu._ven._sam.".split("_"),weekdaysMin:"di_lu_ma_me_je_ve_sa".split("_"),months:"janvier_février_mars_avril_mai_juin_juillet_août_septembre_octobre_novembre_décembre".split("_"),monthsShort:"janv._févr._mars_avr._mai_juin_juil._août_sept._oct._nov._déc.".split("_"),weekStart:1,yearStart:4,formats:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},relativeTime:{future:"dans %s",past:"il y a %s",s:"quelques secondes",m:"une minute",mm:"%d minutes",h:"une heure",hh:"%d heures",d:"un jour",dd:"%d jours",M:"un mois",MM:"%d mois",y:"un an",yy:"%d ans"},ordinal:function(e){return ""+e+(1===e?"er":"")}};return t.default.locale(i,null,!0),i}));
|
|
43
|
-
});
|
|
44
|
-
|
|
45
|
-
createCommonjsModule(function (module, exports) {
|
|
46
|
-
!function(e,o){module.exports=o(dayjs_min);}(commonjsGlobal,(function(e){function o(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var t=o(e),n={name:"it",weekdays:"domenica_lunedì_martedì_mercoledì_giovedì_venerdì_sabato".split("_"),weekdaysShort:"dom_lun_mar_mer_gio_ven_sab".split("_"),weekdaysMin:"do_lu_ma_me_gi_ve_sa".split("_"),months:"gennaio_febbraio_marzo_aprile_maggio_giugno_luglio_agosto_settembre_ottobre_novembre_dicembre".split("_"),weekStart:1,monthsShort:"gen_feb_mar_apr_mag_giu_lug_ago_set_ott_nov_dic".split("_"),formats:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},relativeTime:{future:"tra %s",past:"%s fa",s:"qualche secondo",m:"un minuto",mm:"%d minuti",h:"un' ora",hh:"%d ore",d:"un giorno",dd:"%d giorni",M:"un mese",MM:"%d mesi",y:"un anno",yy:"%d anni"},ordinal:function(e){return e+"º"}};return t.default.locale(n,null,!0),n}));
|
|
47
|
-
});
|
|
48
|
-
|
|
49
|
-
createCommonjsModule(function (module, exports) {
|
|
50
|
-
!function(e,t){module.exports=t(dayjs_min);}(commonjsGlobal,(function(e){function t(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var i=t(e);function a(e){return e%10<5&&e%10>1&&~~(e/10)%10!=1}function n(e,t,i){var n=e+" ";switch(i){case"m":return t?"minuta":"minutę";case"mm":return n+(a(e)?"minuty":"minut");case"h":return t?"godzina":"godzinę";case"hh":return n+(a(e)?"godziny":"godzin");case"MM":return n+(a(e)?"miesiące":"miesięcy");case"yy":return n+(a(e)?"lata":"lat")}}var r="stycznia_lutego_marca_kwietnia_maja_czerwca_lipca_sierpnia_września_października_listopada_grudnia".split("_"),_="styczeń_luty_marzec_kwiecień_maj_czerwiec_lipiec_sierpień_wrzesień_październik_listopad_grudzień".split("_"),s=/D MMMM/,d=function(e,t){return s.test(t)?r[e.month()]:_[e.month()]};d.s=_,d.f=r;var o={name:"pl",weekdays:"niedziela_poniedziałek_wtorek_środa_czwartek_piątek_sobota".split("_"),weekdaysShort:"ndz_pon_wt_śr_czw_pt_sob".split("_"),weekdaysMin:"Nd_Pn_Wt_Śr_Cz_Pt_So".split("_"),months:d,monthsShort:"sty_lut_mar_kwi_maj_cze_lip_sie_wrz_paź_lis_gru".split("_"),ordinal:function(e){return e+"."},weekStart:1,yearStart:4,relativeTime:{future:"za %s",past:"%s temu",s:"kilka sekund",m:n,mm:n,h:n,hh:n,d:"1 dzień",dd:"%d dni",M:"miesiąc",MM:n,y:"rok",yy:n},formats:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"}};return i.default.locale(o,null,!0),o}));
|
|
51
|
-
});
|
|
52
|
-
|
|
53
|
-
createCommonjsModule(function (module, exports) {
|
|
54
|
-
!function(_,t){module.exports=t(dayjs_min);}(commonjsGlobal,(function(_){function t(_){return _&&"object"==typeof _&&"default"in _?_:{default:_}}var e=t(_),n="января_февраля_марта_апреля_мая_июня_июля_августа_сентября_октября_ноября_декабря".split("_"),s="январь_февраль_март_апрель_май_июнь_июль_август_сентябрь_октябрь_ноябрь_декабрь".split("_"),r="янв._февр._мар._апр._мая_июня_июля_авг._сент._окт._нояб._дек.".split("_"),o="янв._февр._март_апр._май_июнь_июль_авг._сент._окт._нояб._дек.".split("_"),i=/D[oD]?(\[[^[\]]*\]|\s)+MMMM?/;function d(_,t,e){var n,s;return "m"===e?t?"минута":"минуту":_+" "+(n=+_,s={mm:t?"минута_минуты_минут":"минуту_минуты_минут",hh:"час_часа_часов",dd:"день_дня_дней",MM:"месяц_месяца_месяцев",yy:"год_года_лет"}[e].split("_"),n%10==1&&n%100!=11?s[0]:n%10>=2&&n%10<=4&&(n%100<10||n%100>=20)?s[1]:s[2])}var u=function(_,t){return i.test(t)?n[_.month()]:s[_.month()]};u.s=s,u.f=n;var a=function(_,t){return i.test(t)?r[_.month()]:o[_.month()]};a.s=o,a.f=r;var m={name:"ru",weekdays:"воскресенье_понедельник_вторник_среда_четверг_пятница_суббота".split("_"),weekdaysShort:"вск_пнд_втр_срд_чтв_птн_сбт".split("_"),weekdaysMin:"вс_пн_вт_ср_чт_пт_сб".split("_"),months:u,monthsShort:a,weekStart:1,yearStart:4,formats:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY г.",LLL:"D MMMM YYYY г., H:mm",LLLL:"dddd, D MMMM YYYY г., H:mm"},relativeTime:{future:"через %s",past:"%s назад",s:"несколько секунд",m:d,mm:d,h:"час",hh:d,d:"день",dd:d,M:"месяц",MM:d,y:"год",yy:d},ordinal:function(_){return _},meridiem:function(_){return _<4?"ночи":_<12?"утра":_<17?"дня":"вечера"}};return e.default.locale(m,null,!0),m}));
|
|
55
|
-
});
|
|
56
|
-
|
|
57
|
-
createCommonjsModule(function (module, exports) {
|
|
58
|
-
!function(e,_){module.exports=_(dayjs_min);}(commonjsGlobal,(function(e){function _(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var t=_(e),d={name:"zh",weekdays:"星期日_星期一_星期二_星期三_星期四_星期五_星期六".split("_"),weekdaysShort:"周日_周一_周二_周三_周四_周五_周六".split("_"),weekdaysMin:"日_一_二_三_四_五_六".split("_"),months:"一月_二月_三月_四月_五月_六月_七月_八月_九月_十月_十一月_十二月".split("_"),monthsShort:"1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月".split("_"),ordinal:function(e,_){switch(_){case"W":return e+"周";default:return e+"日"}},weekStart:1,yearStart:4,formats:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY/MM/DD",LL:"YYYY年M月D日",LLL:"YYYY年M月D日Ah点mm分",LLLL:"YYYY年M月D日ddddAh点mm分",l:"YYYY/M/D",ll:"YYYY年M月D日",lll:"YYYY年M月D日 HH:mm",llll:"YYYY年M月D日dddd HH:mm"},relativeTime:{future:"%s后",past:"%s前",s:"几秒",m:"1 分钟",mm:"%d 分钟",h:"1 小时",hh:"%d 小时",d:"1 天",dd:"%d 天",M:"1 个月",MM:"%d 个月",y:"1 年",yy:"%d 年"},meridiem:function(e,_){var t=100*e+_;return t<600?"凌晨":t<900?"早上":t<1100?"上午":t<1300?"中午":t<1800?"下午":"晚上"}};return t.default.locale(d,null,!0),d}));
|
|
59
|
-
});
|
|
60
|
-
|
|
61
|
-
/**
|
|
62
|
-
* Normalization types.
|
|
63
|
-
*/
|
|
64
|
-
var KupDatesNormalize;
|
|
65
|
-
(function (KupDatesNormalize) {
|
|
66
|
-
KupDatesNormalize["DATE"] = "date";
|
|
67
|
-
KupDatesNormalize["TIME"] = "time";
|
|
68
|
-
KupDatesNormalize["TIMESTAMP"] = "timestamp";
|
|
69
|
-
})(KupDatesNormalize || (KupDatesNormalize = {}));
|
|
70
|
-
/**
|
|
71
|
-
* Common use formats
|
|
72
|
-
*/
|
|
73
|
-
var KupDatesFormats;
|
|
74
|
-
(function (KupDatesFormats) {
|
|
75
|
-
KupDatesFormats["ISO_DATE"] = "YYYY-MM-DD";
|
|
76
|
-
KupDatesFormats["ISO_DATE_TIME"] = "YYYY-MM-DD HH:mm:ss";
|
|
77
|
-
KupDatesFormats["ISO_TIME"] = "HH:mm:ss";
|
|
78
|
-
KupDatesFormats["ISO_TIME_WITHOUT_SECONDS"] = "HH:mm";
|
|
79
|
-
})(KupDatesFormats || (KupDatesFormats = {}));
|
|
80
|
-
/**
|
|
81
|
-
* Supported locales.
|
|
82
|
-
*/
|
|
83
|
-
var KupDatesLocales;
|
|
84
|
-
(function (KupDatesLocales) {
|
|
85
|
-
KupDatesLocales["CHINESE"] = "cn";
|
|
86
|
-
KupDatesLocales["ENGLISH"] = "en";
|
|
87
|
-
KupDatesLocales["FRENCH"] = "fr";
|
|
88
|
-
KupDatesLocales["ITALIAN"] = "it";
|
|
89
|
-
KupDatesLocales["POLISH"] = "pl";
|
|
90
|
-
KupDatesLocales["RUSSIAN"] = "ru";
|
|
91
|
-
KupDatesLocales["SPANISH"] = "es";
|
|
92
|
-
})(KupDatesLocales || (KupDatesLocales = {}));
|
|
93
|
-
|
|
94
|
-
/**
|
|
95
|
-
* Handles operations and formatting of dates.
|
|
96
|
-
* @module KupDates
|
|
97
|
-
*/
|
|
98
|
-
class KupDates {
|
|
99
|
-
/**
|
|
100
|
-
* Initializes KupDates.
|
|
101
|
-
*/
|
|
102
|
-
constructor(locale) {
|
|
103
|
-
this.setLocale(locale);
|
|
104
|
-
this.dayjs = dayjs_min;
|
|
105
|
-
dayjs_min.extend(customParseFormat);
|
|
106
|
-
dayjs_min.extend(localizedFormat);
|
|
107
|
-
dayjs_min.extend(minMax);
|
|
108
|
-
}
|
|
109
|
-
/**
|
|
110
|
-
* Sets the locale from the browser or from a given argument.
|
|
111
|
-
* @returns {string} Locale string.
|
|
112
|
-
* @see https://github.com/iamkun/dayjs/issues/732
|
|
113
|
-
*/
|
|
114
|
-
setLocale(locale) {
|
|
115
|
-
if (locale) {
|
|
116
|
-
// Sets locale from string
|
|
117
|
-
this.locale = locale;
|
|
118
|
-
}
|
|
119
|
-
else {
|
|
120
|
-
// Sets locale from browser
|
|
121
|
-
const navLangs = navigator.languages ||
|
|
122
|
-
(navigator.language ? [navigator.language] : false);
|
|
123
|
-
if (!navLangs || !navLangs.length) {
|
|
124
|
-
return 'en';
|
|
125
|
-
}
|
|
126
|
-
this.locale = navLangs[0].split('-')[0].toLowerCase();
|
|
127
|
-
}
|
|
128
|
-
dayjs_min.locale(this.locale);
|
|
129
|
-
document.dispatchEvent(new CustomEvent('kup-dates-localechange'));
|
|
130
|
-
}
|
|
131
|
-
/**
|
|
132
|
-
*
|
|
133
|
-
* @returns the current locale
|
|
134
|
-
*/
|
|
135
|
-
getLocale() {
|
|
136
|
-
return this.locale;
|
|
137
|
-
}
|
|
138
|
-
/**
|
|
139
|
-
* Formats the given date.
|
|
140
|
-
* @param {dayjs.ConfigType} input - Date to be formatted.
|
|
141
|
-
* @param {string} format - Output format.
|
|
142
|
-
* @see https://day.js.org/docs/en/display/format
|
|
143
|
-
*/
|
|
144
|
-
format(input, format) {
|
|
145
|
-
if (!format) {
|
|
146
|
-
format = 'L'; // MM/DD/YYYY, DD/MM/YYYY depending on locale
|
|
147
|
-
}
|
|
148
|
-
return dayjs_min(input).format(format);
|
|
149
|
-
}
|
|
150
|
-
/**
|
|
151
|
-
* Validates the given date.
|
|
152
|
-
* @param {dayjs.ConfigType} date - Date to be validated.
|
|
153
|
-
* @param {string} format - Format of the input date.
|
|
154
|
-
* @returns {boolean} Returns whether the argument is a valid date or not.
|
|
155
|
-
*/
|
|
156
|
-
isValid(date, format, strict) {
|
|
157
|
-
if (format && format != null) {
|
|
158
|
-
return dayjs_min(date, format, strict).isValid();
|
|
159
|
-
}
|
|
160
|
-
else {
|
|
161
|
-
return dayjs_min(date, undefined, strict).isValid();
|
|
162
|
-
}
|
|
163
|
-
}
|
|
164
|
-
/**
|
|
165
|
-
* Converts the input in a Date object.
|
|
166
|
-
* @param {dayjs.ConfigType} input - Input date.
|
|
167
|
-
* @param {string} format - Format of the input date.
|
|
168
|
-
* @returns {Date} Date object.
|
|
169
|
-
*/
|
|
170
|
-
toDate(input, format) {
|
|
171
|
-
if (format && format != null) {
|
|
172
|
-
return dayjs_min(input, format).toDate();
|
|
173
|
-
}
|
|
174
|
-
else {
|
|
175
|
-
return dayjs_min(input).toDate();
|
|
176
|
-
}
|
|
177
|
-
}
|
|
178
|
-
/**
|
|
179
|
-
* Converts the input in a Dayjs object.
|
|
180
|
-
* @param {dayjs.ConfigType} input - Input date.
|
|
181
|
-
* @param {string} format - Format of the input date.
|
|
182
|
-
* @returns {dayjs.Dayjs} Dayjs object.
|
|
183
|
-
*/
|
|
184
|
-
toDayjs(input, format) {
|
|
185
|
-
if (format) {
|
|
186
|
-
return dayjs_min(input, format);
|
|
187
|
-
}
|
|
188
|
-
else {
|
|
189
|
-
return dayjs_min(input);
|
|
190
|
-
}
|
|
191
|
-
}
|
|
192
|
-
/**
|
|
193
|
-
* Returns a computed ISO date/time from a partial string.
|
|
194
|
-
* @param {string} input - Input string containing a partial date/time (i.e.: 011221).
|
|
195
|
-
* @param {KupDatesNormalize} type - Type of the input string.
|
|
196
|
-
* @returns {dayjs.Dayjs} Dayjs object of the normalized date.
|
|
197
|
-
*/
|
|
198
|
-
normalize(input, type) {
|
|
199
|
-
const l = dayjs_min.Ls[this.locale].formats.L;
|
|
200
|
-
// array e for-each con contains
|
|
201
|
-
const allowedChars = [
|
|
202
|
-
'0',
|
|
203
|
-
'1',
|
|
204
|
-
'2',
|
|
205
|
-
'3',
|
|
206
|
-
'4',
|
|
207
|
-
'5',
|
|
208
|
-
'6',
|
|
209
|
-
'7',
|
|
210
|
-
'8',
|
|
211
|
-
'9',
|
|
212
|
-
];
|
|
213
|
-
let inputCleaned = '';
|
|
214
|
-
for (let i = 0; i < input.length; i++) {
|
|
215
|
-
let ch = input.charAt(i);
|
|
216
|
-
if (allowedChars.includes(ch)) {
|
|
217
|
-
inputCleaned += ch;
|
|
218
|
-
}
|
|
219
|
-
}
|
|
220
|
-
input = inputCleaned;
|
|
221
|
-
switch (type) {
|
|
222
|
-
case KupDatesNormalize.TIME:
|
|
223
|
-
const time = normalizeTime();
|
|
224
|
-
return dayjs_min(time);
|
|
225
|
-
case KupDatesNormalize.TIMESTAMP:
|
|
226
|
-
return dayjs_min(input);
|
|
227
|
-
case KupDatesNormalize.DATE:
|
|
228
|
-
default:
|
|
229
|
-
const date = normalizeDate();
|
|
230
|
-
return dayjs_min(date);
|
|
231
|
-
}
|
|
232
|
-
function normalizeDate() {
|
|
233
|
-
const today = new Date();
|
|
234
|
-
const dIndex = l.indexOf('DD');
|
|
235
|
-
const mIndex = l.indexOf('MM');
|
|
236
|
-
let sub1 = 0, sub2 = 0, year = '';
|
|
237
|
-
switch (input.length) {
|
|
238
|
-
case 1:
|
|
239
|
-
case 2:
|
|
240
|
-
sub1 = parseInt(input);
|
|
241
|
-
today.setDate(sub1);
|
|
242
|
-
break;
|
|
243
|
-
case 3:
|
|
244
|
-
//input = '0' + input; // continue into case 4
|
|
245
|
-
case 4:
|
|
246
|
-
sub1 = parseInt(input.substr(0, 2));
|
|
247
|
-
sub2 = parseInt(input.substr(2));
|
|
248
|
-
if (mIndex === 0) {
|
|
249
|
-
today.setDate(sub2);
|
|
250
|
-
today.setMonth(sub1 - 1); // -1 because it's 0 based
|
|
251
|
-
}
|
|
252
|
-
else if (dIndex === 0) {
|
|
253
|
-
today.setDate(sub1);
|
|
254
|
-
today.setMonth(sub2 - 1); // -1 because it's 0 based
|
|
255
|
-
}
|
|
256
|
-
break;
|
|
257
|
-
case 5:
|
|
258
|
-
//input = '0' + input; // continue into case 6
|
|
259
|
-
case 6:
|
|
260
|
-
sub1 = parseInt(input.substr(0, 2));
|
|
261
|
-
sub2 = parseInt(input.substr(2, 2));
|
|
262
|
-
year = today.getFullYear().toString();
|
|
263
|
-
year = year.substr(0, 2) + input.substr(4);
|
|
264
|
-
if (mIndex === 0) {
|
|
265
|
-
today.setFullYear(parseInt(year), sub1 - 1, sub2);
|
|
266
|
-
}
|
|
267
|
-
else if (dIndex === 0) {
|
|
268
|
-
today.setFullYear(parseInt(year), sub2 - 1, sub1);
|
|
269
|
-
}
|
|
270
|
-
break;
|
|
271
|
-
case 7:
|
|
272
|
-
//input = '0' + input; // continue into case 8
|
|
273
|
-
case 8:
|
|
274
|
-
sub1 = parseInt(input.substr(0, 2));
|
|
275
|
-
sub2 = parseInt(input.substr(2, 2));
|
|
276
|
-
year = input.substr(4);
|
|
277
|
-
if (mIndex === 0) {
|
|
278
|
-
today.setFullYear(parseInt(year), sub1 - 1, sub2);
|
|
279
|
-
}
|
|
280
|
-
else if (dIndex === 0) {
|
|
281
|
-
today.setFullYear(parseInt(year), sub2 - 1, sub1);
|
|
282
|
-
}
|
|
283
|
-
break;
|
|
284
|
-
}
|
|
285
|
-
return today;
|
|
286
|
-
}
|
|
287
|
-
function normalizeTime() {
|
|
288
|
-
const today = new Date();
|
|
289
|
-
let hh = 0, mm = 0, ss = 0, ms = 0;
|
|
290
|
-
switch (input.length) {
|
|
291
|
-
case 1:
|
|
292
|
-
case 2:
|
|
293
|
-
hh = parseInt(input);
|
|
294
|
-
today.setHours(hh, 0, 0, 0);
|
|
295
|
-
break;
|
|
296
|
-
case 3:
|
|
297
|
-
//input = '0' + input; // continue into case 4
|
|
298
|
-
case 4:
|
|
299
|
-
hh = parseInt(input.substr(0, 2));
|
|
300
|
-
mm = parseInt(input.substr(2));
|
|
301
|
-
today.setHours(hh, mm, 0, 0);
|
|
302
|
-
break;
|
|
303
|
-
case 5:
|
|
304
|
-
//input = '0' + input; // continue into case 6
|
|
305
|
-
case 6:
|
|
306
|
-
hh = parseInt(input.substr(0, 2));
|
|
307
|
-
mm = parseInt(input.substr(2, 2));
|
|
308
|
-
ss = parseInt(input.substr(4));
|
|
309
|
-
today.setHours(hh, mm, ss, 0);
|
|
310
|
-
break;
|
|
311
|
-
case 7:
|
|
312
|
-
//input = '0' + input; // continue into case 8
|
|
313
|
-
case 8:
|
|
314
|
-
hh = parseInt(input.substr(0, 2));
|
|
315
|
-
mm = parseInt(input.substr(2, 2));
|
|
316
|
-
ss = parseInt(input.substr(4, 2));
|
|
317
|
-
ms = parseInt(input.substr(6));
|
|
318
|
-
today.setHours(hh, mm, ss, ms);
|
|
319
|
-
break;
|
|
320
|
-
}
|
|
321
|
-
return today;
|
|
322
|
-
}
|
|
323
|
-
}
|
|
324
|
-
/**
|
|
325
|
-
* Returns the minimum date from an array of dates.
|
|
326
|
-
* @param {dayjs.ConfigType[]} dates - Array of dates.
|
|
327
|
-
* @returns {dayjs.Dayjs} Minimum date.
|
|
328
|
-
*/
|
|
329
|
-
min(dates) {
|
|
330
|
-
const dayjsDates = [];
|
|
331
|
-
for (let index = 0; index < dates.length; index++) {
|
|
332
|
-
const date = dates[index];
|
|
333
|
-
dayjsDates.push(dayjs_min(date));
|
|
334
|
-
}
|
|
335
|
-
return dayjs_min.min(dayjsDates);
|
|
336
|
-
}
|
|
337
|
-
/**
|
|
338
|
-
* Returns the maximum date from an array of dates.
|
|
339
|
-
* @param {dayjs.ConfigType[]} dates - Array of dates.
|
|
340
|
-
* @returns {dayjs.Dayjs} Maximum date.
|
|
341
|
-
*/
|
|
342
|
-
max(dates) {
|
|
343
|
-
const dayjsDates = [];
|
|
344
|
-
for (let index = 0; index < dates.length; index++) {
|
|
345
|
-
const date = dates[index];
|
|
346
|
-
dayjsDates.push(dayjs_min(date));
|
|
347
|
-
}
|
|
348
|
-
return dayjs_min.max(dayjsDates);
|
|
349
|
-
}
|
|
350
|
-
/**
|
|
351
|
-
* Subtracts the given amount of time from the input date.
|
|
352
|
-
* @param {dayjs.ConfigType} input - Input date.
|
|
353
|
-
* @param {number} value - The value of the subtraction (i.e.: 7).
|
|
354
|
-
* @param {dayjs.OpUnitType} unit - The unit of the subtraction (i.e.: "year").
|
|
355
|
-
* @returns {dayjs.Dayjs} Computed date.
|
|
356
|
-
* @see https://day.js.org/docs/en/manipulate/subtract
|
|
357
|
-
*/
|
|
358
|
-
subtract(input, value, unit) {
|
|
359
|
-
return dayjs_min(input).subtract(value, unit);
|
|
360
|
-
}
|
|
361
|
-
}
|
|
362
|
-
|
|
363
|
-
const NOTE = "This is a currently unused mock up of what the definition of objects could be inside Ketch.UP ( possible use case: bind specific shapes to specific objects ).";
|
|
364
|
-
const types = {
|
|
365
|
-
CN: {
|
|
366
|
-
parameters: {
|
|
367
|
-
COL: {
|
|
368
|
-
CASFRA: {
|
|
369
|
-
shape: "kup-button"
|
|
370
|
-
},
|
|
371
|
-
FOSLUC: {
|
|
372
|
-
shape: "kup-text-field"
|
|
373
|
-
}
|
|
374
|
-
}
|
|
375
|
-
}
|
|
376
|
-
}
|
|
377
|
-
};
|
|
378
|
-
const obj = {
|
|
379
|
-
NOTE: NOTE,
|
|
380
|
-
types: types
|
|
381
|
-
};
|
|
382
|
-
|
|
383
|
-
const dom = document.documentElement;
|
|
384
|
-
const kupDates = dom.ketchup ? dom.ketchup.dates : new KupDates();
|
|
385
|
-
/**
|
|
386
|
-
* Handles objects definition and validation.
|
|
387
|
-
* @module KupObjects
|
|
388
|
-
*/
|
|
389
|
-
class KupObjects {
|
|
390
|
-
/**
|
|
391
|
-
* Initializes KupObjects.
|
|
392
|
-
* @param {KupObjectsJSON} list - Overrides the default obj.json.
|
|
393
|
-
*/
|
|
394
|
-
constructor(list) {
|
|
395
|
-
this.list = list ? list : obj;
|
|
396
|
-
}
|
|
397
|
-
/**
|
|
398
|
-
* Checks whether the object can automatically derive columns.
|
|
399
|
-
* @param {KupObj} obj - Object to check.
|
|
400
|
-
* @returns {boolean} True when columns can be automatically derived from the object.
|
|
401
|
-
*/
|
|
402
|
-
canHaveAutomaticDerivedColumn(obj) {
|
|
403
|
-
if (!this.canObjHaveExtraColumns(obj)) {
|
|
404
|
-
return false;
|
|
405
|
-
}
|
|
406
|
-
return (!this.isNumber(obj) &&
|
|
407
|
-
!this.isTime(obj) &&
|
|
408
|
-
!this.isTimestamp(obj) &&
|
|
409
|
-
!this.isPercentage(obj));
|
|
410
|
-
}
|
|
411
|
-
/**
|
|
412
|
-
* Checks whether the objects can have extra columns or not.
|
|
413
|
-
* @param {KupObj} obj - Object to check.
|
|
414
|
-
* @returns {boolean} True when the object has extra columns.
|
|
415
|
-
*/
|
|
416
|
-
canObjsHaveExtraColumns(objs) {
|
|
417
|
-
if (!objs)
|
|
418
|
-
return false;
|
|
419
|
-
let result = false;
|
|
420
|
-
for (let i = 0; i < objs.length; i++) {
|
|
421
|
-
result = result || this.canObjHaveExtraColumns(objs[i]);
|
|
422
|
-
}
|
|
423
|
-
return result;
|
|
424
|
-
}
|
|
425
|
-
/**
|
|
426
|
-
* Checks whether the object can have extra columns or not.
|
|
427
|
-
* @param {KupObj} obj - Object to check.
|
|
428
|
-
* @returns {boolean} True when the object has extra columns.
|
|
429
|
-
*/
|
|
430
|
-
canObjHaveExtraColumns(obj) {
|
|
431
|
-
if (!obj)
|
|
432
|
-
return false;
|
|
433
|
-
if (!obj.t ||
|
|
434
|
-
obj.t.trim() == '' ||
|
|
435
|
-
obj.t.trim() == '**') {
|
|
436
|
-
return false;
|
|
437
|
-
}
|
|
438
|
-
return (!this.isBar(obj) &&
|
|
439
|
-
!this.isButton(obj) &&
|
|
440
|
-
!this.isCheckbox(obj) &&
|
|
441
|
-
!this.isIcon(obj) &&
|
|
442
|
-
!this.isImage(obj) &&
|
|
443
|
-
!this.isLink(obj) &&
|
|
444
|
-
!this.isProgressBar(obj) &&
|
|
445
|
-
!this.isRadio(obj) &&
|
|
446
|
-
!this.isVoCodver(obj) &&
|
|
447
|
-
!this.isChart(obj));
|
|
448
|
-
}
|
|
449
|
-
/**
|
|
450
|
-
* Checks whether the object can have a related tooltip or not.
|
|
451
|
-
* @param {KupObj} obj - Object to check.
|
|
452
|
-
* @returns {boolean} True when the object can have a related tooltip.
|
|
453
|
-
*/
|
|
454
|
-
hasTooltip(obj) {
|
|
455
|
-
if (!obj)
|
|
456
|
-
return false;
|
|
457
|
-
if (obj.t == null || obj.t.trim() == '')
|
|
458
|
-
return false;
|
|
459
|
-
return (!this.isBar(obj) &&
|
|
460
|
-
!this.isButton(obj) &&
|
|
461
|
-
!this.isCheckbox(obj) &&
|
|
462
|
-
!this.isIcon(obj) &&
|
|
463
|
-
!this.isImage(obj) &&
|
|
464
|
-
!this.isLink(obj) &&
|
|
465
|
-
!this.isNumber(obj) &&
|
|
466
|
-
!this.isPercentage(obj) &&
|
|
467
|
-
!this.isProgressBar(obj) &&
|
|
468
|
-
!this.isRadio(obj) &&
|
|
469
|
-
!this.isVoCodver(obj) &&
|
|
470
|
-
!this.isChart(obj));
|
|
471
|
-
}
|
|
472
|
-
/**
|
|
473
|
-
* Checks whether the object represents a bar or not.
|
|
474
|
-
* @param {KupObj} obj - Object to check.
|
|
475
|
-
* @returns {boolean} True when the object is a bar.
|
|
476
|
-
*/
|
|
477
|
-
isBar(obj) {
|
|
478
|
-
if (!obj)
|
|
479
|
-
return false;
|
|
480
|
-
return 'J4' === obj.t && 'BAR' === obj.p;
|
|
481
|
-
}
|
|
482
|
-
/**
|
|
483
|
-
* Checks whether the object represents a button or not.
|
|
484
|
-
* @param {KupObj} obj - Object to check.
|
|
485
|
-
* @returns {boolean} True when the object is a button.
|
|
486
|
-
*/
|
|
487
|
-
isButton(obj) {
|
|
488
|
-
if (!obj)
|
|
489
|
-
return false;
|
|
490
|
-
return 'J4' === obj.t && 'BTN' === obj.p;
|
|
491
|
-
}
|
|
492
|
-
/**
|
|
493
|
-
* Checks whether the object represents a chart or not.
|
|
494
|
-
* @param {KupObj} obj - Object to check.
|
|
495
|
-
* @returns {boolean} True when the object is a chart.
|
|
496
|
-
*/
|
|
497
|
-
isChart(obj) {
|
|
498
|
-
if (!obj)
|
|
499
|
-
return false;
|
|
500
|
-
return 'J4' === obj.t && obj.p.toLocaleUpperCase().startsWith('GRA_');
|
|
501
|
-
}
|
|
502
|
-
/**
|
|
503
|
-
* Checks whether the object represents a checkbox or not.
|
|
504
|
-
* @param {KupObj} obj - Object to check.
|
|
505
|
-
* @returns {boolean} True when the object is a checkbox.
|
|
506
|
-
*/
|
|
507
|
-
isCheckbox(obj) {
|
|
508
|
-
if (!obj)
|
|
509
|
-
return false;
|
|
510
|
-
return 'V2' === obj.t && 'SI/NO' === obj.p.toUpperCase();
|
|
511
|
-
}
|
|
512
|
-
/**
|
|
513
|
-
* Checks whether the object represents a color or not.
|
|
514
|
-
* @param {KupObj} obj - Object to check.
|
|
515
|
-
* @returns {boolean} True when the object is a color.
|
|
516
|
-
*/
|
|
517
|
-
isColor(obj) {
|
|
518
|
-
if (!obj)
|
|
519
|
-
return false;
|
|
520
|
-
return 'J1' === obj.t && 'COL' === obj.p;
|
|
521
|
-
}
|
|
522
|
-
/**
|
|
523
|
-
* Checks whether the object represents a date or not.
|
|
524
|
-
* @param {KupObj} obj - Object to check.
|
|
525
|
-
* @returns {boolean} True when the object is a date.
|
|
526
|
-
*/
|
|
527
|
-
isDate(obj) {
|
|
528
|
-
if (!obj)
|
|
529
|
-
return false;
|
|
530
|
-
return 'D8' === obj.t;
|
|
531
|
-
}
|
|
532
|
-
/**
|
|
533
|
-
* Checks whether the object represents an icon or not.
|
|
534
|
-
* @param {KupObj} obj - Object to check.
|
|
535
|
-
* @returns {boolean} True when the object is an icon.
|
|
536
|
-
*/
|
|
537
|
-
isIcon(obj) {
|
|
538
|
-
if (!obj)
|
|
539
|
-
return false;
|
|
540
|
-
return 'J4' === obj.t && 'ICO' === obj.p;
|
|
541
|
-
}
|
|
542
|
-
/**
|
|
543
|
-
* Checks whether the object represents an image or not.
|
|
544
|
-
* @param {KupObj} obj - Object to check.
|
|
545
|
-
* @returns {boolean} True when the object is an image.
|
|
546
|
-
*/
|
|
547
|
-
isImage(obj) {
|
|
548
|
-
if (!obj)
|
|
549
|
-
return false;
|
|
550
|
-
return 'J4' === obj.t && 'IMG' === obj.p;
|
|
551
|
-
}
|
|
552
|
-
/**
|
|
553
|
-
* Checks whether the object represents an object list or not.
|
|
554
|
-
* @param {KupObj} obj - Object to check.
|
|
555
|
-
* @returns {boolean} True when the object is an object list.
|
|
556
|
-
*/
|
|
557
|
-
isKupObjList(obj) {
|
|
558
|
-
if (!obj)
|
|
559
|
-
return false;
|
|
560
|
-
return 'JL' === obj.t;
|
|
561
|
-
}
|
|
562
|
-
/**
|
|
563
|
-
* Checks whether the object represents a link or not.
|
|
564
|
-
* @param {KupObj} obj - Object to check.
|
|
565
|
-
* @returns {boolean} True when the object is a link.
|
|
566
|
-
*/
|
|
567
|
-
isLink(obj) {
|
|
568
|
-
if (!obj)
|
|
569
|
-
return false;
|
|
570
|
-
return 'J1' === obj.t && 'URL' === obj.p;
|
|
571
|
-
}
|
|
572
|
-
/**
|
|
573
|
-
* Checks whether the object represents a number or not.
|
|
574
|
-
* @param {KupObj} obj - Object to check.
|
|
575
|
-
* @returns {boolean} True when the object is a number.
|
|
576
|
-
*/
|
|
577
|
-
isNumber(obj) {
|
|
578
|
-
if (!obj)
|
|
579
|
-
return false;
|
|
580
|
-
return 'NR' === obj.t;
|
|
581
|
-
}
|
|
582
|
-
/**
|
|
583
|
-
* Checks whether the object represents a password or not.
|
|
584
|
-
* @param {KupObj} obj - Object to check.
|
|
585
|
-
* @returns {boolean} True when the object is a password.
|
|
586
|
-
*/
|
|
587
|
-
isPassword(obj) {
|
|
588
|
-
if (!obj)
|
|
589
|
-
return false;
|
|
590
|
-
return 'J1' === obj.t && 'PWD' === obj.p;
|
|
591
|
-
}
|
|
592
|
-
/**
|
|
593
|
-
* Checks whether the object represents a percentage or not.
|
|
594
|
-
* @param {KupObj} obj - Object to check.
|
|
595
|
-
* @returns {boolean} True when the object is a percentage.
|
|
596
|
-
*/
|
|
597
|
-
isPercentage(obj) {
|
|
598
|
-
if (!obj)
|
|
599
|
-
return false;
|
|
600
|
-
return 'NRP' === obj.t + obj.p;
|
|
601
|
-
}
|
|
602
|
-
/**
|
|
603
|
-
* Checks whether the object represents a progress bar or not.
|
|
604
|
-
* @param {KupObj} obj - Object to check.
|
|
605
|
-
* @returns {boolean} True when the object is a progress bar.
|
|
606
|
-
*/
|
|
607
|
-
isProgressBar(obj) {
|
|
608
|
-
if (!obj)
|
|
609
|
-
return false;
|
|
610
|
-
return 'J4' === obj.t && 'PGB' === obj.p;
|
|
611
|
-
}
|
|
612
|
-
/**
|
|
613
|
-
* Checks whether the object represents a radio button or not.
|
|
614
|
-
* @param {KupObj} obj - Object to check.
|
|
615
|
-
* @returns {boolean} True when the object is a radio button.
|
|
616
|
-
*/
|
|
617
|
-
isRadio(obj) {
|
|
618
|
-
if (!obj)
|
|
619
|
-
return false;
|
|
620
|
-
return 'V2' === obj.t && 'RADIO' === obj.p;
|
|
621
|
-
}
|
|
622
|
-
/**
|
|
623
|
-
* Checks whether the object can be identifiable as a string.
|
|
624
|
-
* @param {KupObj} obj - Object to check.
|
|
625
|
-
* @returns {boolean} True when the object can be considered as a string.
|
|
626
|
-
*/
|
|
627
|
-
isStringObject(obj) {
|
|
628
|
-
if (!obj)
|
|
629
|
-
return true;
|
|
630
|
-
return (!this.isVoCodver(obj) &&
|
|
631
|
-
!this.isIcon(obj) &&
|
|
632
|
-
!this.isImage(obj) &&
|
|
633
|
-
!this.isCheckbox(obj) &&
|
|
634
|
-
!this.isRadio(obj) &&
|
|
635
|
-
!this.isChart(obj));
|
|
636
|
-
}
|
|
637
|
-
/**
|
|
638
|
-
* Checks whether the object represents a text field or not.
|
|
639
|
-
* @param {KupObj} obj - Object to check.
|
|
640
|
-
* @returns {boolean} True when the object is a text field.
|
|
641
|
-
*/
|
|
642
|
-
isTextField(obj) {
|
|
643
|
-
if (!obj)
|
|
644
|
-
return false;
|
|
645
|
-
return 'J4' === obj.t && 'TEXTFIELD' === obj.p;
|
|
646
|
-
}
|
|
647
|
-
/**
|
|
648
|
-
* Checks whether the object represents a time or not.
|
|
649
|
-
* @param {KupObj} obj - Object to check.
|
|
650
|
-
* @returns {boolean} True when the object is a time.
|
|
651
|
-
*/
|
|
652
|
-
isTime(obj) {
|
|
653
|
-
if (!obj)
|
|
654
|
-
return false;
|
|
655
|
-
return 'I1' === obj.t || 'I2' === obj.t;
|
|
656
|
-
}
|
|
657
|
-
/**
|
|
658
|
-
* Checks whether the object represents a timestamp or not.
|
|
659
|
-
* @param {KupObj} obj - Object to check.
|
|
660
|
-
* @returns {boolean} True when the object is a timestamp.
|
|
661
|
-
*/
|
|
662
|
-
isTimestamp(obj) {
|
|
663
|
-
if (!obj)
|
|
664
|
-
return false;
|
|
665
|
-
return 'I3' === obj.t && '2' === obj.p;
|
|
666
|
-
}
|
|
667
|
-
/**
|
|
668
|
-
* Checks whether the object represents a time and handles seconds or not.
|
|
669
|
-
* @param {KupObj} obj - Object to check.
|
|
670
|
-
* @returns {boolean} True when the object is a time and handles seconds.
|
|
671
|
-
*/
|
|
672
|
-
isTimeWithSeconds(obj) {
|
|
673
|
-
if (!this.isTime(obj)) {
|
|
674
|
-
return false;
|
|
675
|
-
}
|
|
676
|
-
return '2' === obj.p;
|
|
677
|
-
}
|
|
678
|
-
/**
|
|
679
|
-
* Checks whether the object represents a verb or not.
|
|
680
|
-
* @param {KupObj} obj - Object to check.
|
|
681
|
-
* @returns {boolean} True when the object is a verb.
|
|
682
|
-
*/
|
|
683
|
-
isVoCodver(obj) {
|
|
684
|
-
if (!obj)
|
|
685
|
-
return false;
|
|
686
|
-
return 'VO' === obj.t && 'COD_VER' === obj.p;
|
|
687
|
-
}
|
|
688
|
-
/**
|
|
689
|
-
* Checks whether the object is null or empty
|
|
690
|
-
* @param {KupObj} obj - Object to check.
|
|
691
|
-
* @returns {boolean} True when the object is null or empty.
|
|
692
|
-
*/
|
|
693
|
-
isEmptySmeupObject(obj) {
|
|
694
|
-
if (!obj)
|
|
695
|
-
return true;
|
|
696
|
-
return obj.t.trim() == '' && obj.p.trim() == '' && obj.k.trim() == '';
|
|
697
|
-
}
|
|
698
|
-
/**
|
|
699
|
-
* Parses a date depending on the object's type.
|
|
700
|
-
* @param {KupObj} obj - Object to check.
|
|
701
|
-
* @returns {Dayjs} Dayjs object.
|
|
702
|
-
*/
|
|
703
|
-
parseDate(obj) {
|
|
704
|
-
if (obj.t === 'D8' && obj.p === '*DMYY') {
|
|
705
|
-
return kupDates.toDayjs(obj.k, 'DDMMYYYY');
|
|
706
|
-
}
|
|
707
|
-
return kupDates.toDayjs(obj.k);
|
|
708
|
-
}
|
|
709
|
-
}
|
|
710
|
-
|
|
711
|
-
export { KupDates as K, KupDatesFormats as a, KupDatesNormalize as b, KupObjects as c, createCommonjsModule as d, KupDatesLocales as e, commonjsGlobal as f, getDefaultExportFromCjs as g };
|