@sme.up/ketchup 4.0.0 → 4.2.0-SNAPSHOT
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +3 -3
- package/dist/cjs/cell-utils-1d44a3f0.js +168 -0
- package/dist/cjs/f-button-a5788453.js +105 -0
- package/dist/cjs/f-cell-eba6f39e.js +727 -0
- package/dist/cjs/f-chip-ce69b7d2.js +141 -0
- package/dist/cjs/{f-image-5f4f29ca.js → f-image-e03842eb.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} +1678 -2558
- 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-75f1a2cd.js +5794 -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-b3ec89fe.js} +18 -26
- package/dist/collection/assets/cell.js +51 -0
- package/dist/collection/assets/data-table.js +518 -45
- 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/dialog/kup-card-dialog.js +18 -0
- package/dist/collection/components/kup-card/kup-card-helper.js +19 -1
- package/dist/collection/components/kup-card/kup-card.css +147 -216
- package/dist/collection/components/kup-card/kup-card.js +80 -29
- 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 +3 -1
- package/dist/collection/components/kup-data-table/kup-data-table-helper.js +61 -102
- package/dist/collection/components/kup-data-table/kup-data-table-state.js +1 -1
- package/dist/collection/components/kup-data-table/kup-data-table.css +127 -3203
- package/dist/collection/components/kup-data-table/kup-data-table.js +568 -1085
- package/dist/collection/components/kup-date-picker/kup-date-picker.css +6 -8
- package/dist/collection/components/kup-date-picker/kup-date-picker.js +77 -106
- 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 +3 -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 +6 -0
- package/dist/collection/components/kup-time-picker/kup-time-picker.js +55 -85
- 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 +158 -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 +467 -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 +76 -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-9a2914fc.js +160 -0
- package/dist/esm/f-button-55a9ed88.js +103 -0
- package/dist/esm/f-cell-ac520cb2.js +723 -0
- package/dist/esm/f-chip-babf1740.js +139 -0
- package/dist/esm/{f-image-68b34fab.js → f-image-70ca9dfe.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} +1451 -2330
- 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-bba32828.js +5781 -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-cfcbe33f.js} +16 -23
- 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-03ae1be9.entry.js +1 -0
- package/dist/ketchup/p-06c209a5.js +1 -0
- package/dist/ketchup/p-1ce9a037.js +1 -0
- package/dist/ketchup/p-1e2c3497.js +1 -0
- package/dist/ketchup/p-40df35de.entry.js +1 -0
- package/dist/ketchup/{p-c7ee1fbc.js → p-4748be4b.js} +2 -2
- package/dist/ketchup/p-52038ccb.js +1 -0
- package/dist/ketchup/p-5db41fae.entry.js +45 -0
- package/dist/ketchup/p-5faf7715.entry.js +1 -0
- package/dist/ketchup/p-62208488.entry.js +1 -0
- package/dist/ketchup/p-69a705ae.entry.js +1 -0
- package/dist/ketchup/p-6cc8264d.entry.js +1 -0
- package/dist/ketchup/p-74259992.entry.js +1 -0
- package/dist/ketchup/p-756aa8b1.entry.js +1 -0
- package/dist/ketchup/p-a7687c0e.entry.js +27 -0
- package/dist/ketchup/p-cb5f4994.js +1 -0
- package/dist/ketchup/p-d58dbf0e.js +1 -0
- package/dist/ketchup/p-d6ce1ac6.entry.js +1 -0
- package/dist/ketchup/p-daf03877.entry.js +1 -0
- package/dist/ketchup/p-e90934b5.entry.js +1 -0
- package/dist/ketchup/p-ea387b49.entry.js +1 -0
- package/dist/ketchup/p-f6bff949.js +1 -0
- package/dist/ketchup/p-ff7d590e.entry.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/dialog/kup-card-dialog.d.ts +6 -0
- package/dist/types/components/kup-card/kup-card.d.ts +9 -0
- 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 +21 -32
- 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-state.d.ts +1 -1
- package/dist/types/components/kup-data-table/kup-data-table.d.ts +32 -81
- package/dist/types/components/kup-date-picker/kup-date-picker.d.ts +12 -14
- 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 +8 -11
- 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 +346 -174
- 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
|
@@ -2,11 +2,12 @@ import { Component, Element, Event, forceUpdate, h, Host, Listen, Method, Prop,
|
|
|
2
2
|
import { kupManagerInstance, } from '../../utils/kup-manager/kup-manager';
|
|
3
3
|
import { isValidFormattedStringTime, formattedStringToCustomUnformattedStringTime, unformattedStringToFormattedStringTime, formatTime, getProps, setProps, } from '../../utils/utils';
|
|
4
4
|
import { FButtonStyling } from '../../f-components/f-button/f-button-declarations';
|
|
5
|
-
import { kupDynamicPositionAttribute, } from '../../utils/kup-dynamic-position/kup-dynamic-position-declarations';
|
|
6
5
|
import { KupTimePickerProps, } from './kup-time-picker-declarations';
|
|
7
6
|
import { KupDebugCategory } from '../../utils/kup-debug/kup-debug-declarations';
|
|
8
7
|
import { componentWrapperId } from '../../variables/GenericVariables';
|
|
9
8
|
import { KupDatesFormats } from '../../utils/kup-dates/kup-dates-declarations';
|
|
9
|
+
import { FTextField } from '../../f-components/f-text-field/f-text-field';
|
|
10
|
+
import { FTextFieldMDC } from '../../f-components/f-text-field/f-text-field-mdc';
|
|
10
11
|
export class KupTimePicker {
|
|
11
12
|
constructor() {
|
|
12
13
|
/*-------------------------------------------------*/
|
|
@@ -72,10 +73,10 @@ export class KupTimePicker {
|
|
|
72
73
|
this.pickerContainerEl = undefined;
|
|
73
74
|
this.pickerEl = undefined;
|
|
74
75
|
this.pickerOpened = false;
|
|
76
|
+
this.clickCb = null;
|
|
75
77
|
}
|
|
76
78
|
onKupTimePickerItemClick(e, value) {
|
|
77
79
|
if (e != null) {
|
|
78
|
-
e.stopPropagation();
|
|
79
80
|
if (value == null) {
|
|
80
81
|
value = e.detail.selected.value;
|
|
81
82
|
}
|
|
@@ -92,8 +93,7 @@ export class KupTimePicker {
|
|
|
92
93
|
value: this.value,
|
|
93
94
|
});
|
|
94
95
|
}
|
|
95
|
-
onKupClearIconClick(
|
|
96
|
-
e.stopPropagation();
|
|
96
|
+
onKupClearIconClick() {
|
|
97
97
|
this.setPickerValueSelected('');
|
|
98
98
|
this.kupChange.emit({
|
|
99
99
|
comp: this,
|
|
@@ -113,29 +113,17 @@ export class KupTimePicker {
|
|
|
113
113
|
value: this.value,
|
|
114
114
|
});
|
|
115
115
|
}
|
|
116
|
-
onKupTextFieldBlur(e) {
|
|
117
|
-
const eventValue = e.detail.value;
|
|
118
|
-
if (eventValue) {
|
|
119
|
-
const newValue = this.getFormattedValue(eventValue);
|
|
120
|
-
if (newValue) {
|
|
121
|
-
this.setValue(newValue);
|
|
122
|
-
}
|
|
123
|
-
}
|
|
124
|
-
}
|
|
125
116
|
onKupChange(e) {
|
|
126
|
-
e.
|
|
127
|
-
this.refreshPickerValue(e.detail.value, this.kupChange);
|
|
117
|
+
this.refreshPickerValue(e.target.value, this.kupChange);
|
|
128
118
|
}
|
|
129
|
-
onKupClick(
|
|
130
|
-
e.stopPropagation();
|
|
119
|
+
onKupClick() {
|
|
131
120
|
this.kupClick.emit({
|
|
132
121
|
comp: this,
|
|
133
122
|
id: this.rootElement.id,
|
|
134
123
|
value: this.value,
|
|
135
124
|
});
|
|
136
125
|
}
|
|
137
|
-
onKupFocus(
|
|
138
|
-
e.stopPropagation();
|
|
126
|
+
onKupFocus() {
|
|
139
127
|
this.kupFocus.emit({
|
|
140
128
|
comp: this,
|
|
141
129
|
id: this.rootElement.id,
|
|
@@ -143,15 +131,12 @@ export class KupTimePicker {
|
|
|
143
131
|
});
|
|
144
132
|
}
|
|
145
133
|
onKupInput(e) {
|
|
146
|
-
e.
|
|
147
|
-
this.refreshPickerValue(e.detail.value, this.kupInput);
|
|
134
|
+
this.refreshPickerValue(e.target.value, this.kupInput);
|
|
148
135
|
}
|
|
149
136
|
onKupTextFieldSubmit(e) {
|
|
150
|
-
e.
|
|
151
|
-
this.refreshPickerValue(e.detail.value, this.kupTextFieldSubmit);
|
|
137
|
+
this.refreshPickerValue(e.target.value, this.kupTextFieldSubmit);
|
|
152
138
|
}
|
|
153
|
-
onKupIconClick(
|
|
154
|
-
e.stopPropagation();
|
|
139
|
+
onKupIconClick() {
|
|
155
140
|
if (this.isPickerOpened()) {
|
|
156
141
|
this.closePicker();
|
|
157
142
|
}
|
|
@@ -173,7 +158,6 @@ export class KupTimePicker {
|
|
|
173
158
|
this.closePicker();
|
|
174
159
|
}
|
|
175
160
|
if (e.key === 'Enter') {
|
|
176
|
-
e.stopPropagation();
|
|
177
161
|
this.onKupTimePickerItemClick(null);
|
|
178
162
|
}
|
|
179
163
|
}
|
|
@@ -244,7 +228,6 @@ export class KupTimePicker {
|
|
|
244
228
|
*/
|
|
245
229
|
async setValue(value) {
|
|
246
230
|
this.value = value;
|
|
247
|
-
this.setTextFieldInitalValue(this.getTimeForOutput());
|
|
248
231
|
}
|
|
249
232
|
/*-------------------------------------------------*/
|
|
250
233
|
/* P r i v a t e M e t h o d s */
|
|
@@ -259,7 +242,6 @@ export class KupTimePicker {
|
|
|
259
242
|
if (isValidFormattedStringTime(eventDetailValue, this.manageSeconds)) {
|
|
260
243
|
this.value = eventDetailValue;
|
|
261
244
|
newValue = this.value;
|
|
262
|
-
this.setTextFieldInitalValue(this.getTimeForOutput());
|
|
263
245
|
}
|
|
264
246
|
if (newValue != null) {
|
|
265
247
|
eventToRaise.emit({
|
|
@@ -284,16 +266,10 @@ export class KupTimePicker {
|
|
|
284
266
|
return;
|
|
285
267
|
}
|
|
286
268
|
this.value = newValue;
|
|
287
|
-
this.setTextFieldInitalValue(this.getTimeForOutput());
|
|
288
269
|
}
|
|
289
270
|
getPickerValueSelected() {
|
|
290
271
|
return this.value;
|
|
291
272
|
}
|
|
292
|
-
setTextFieldInitalValue(value) {
|
|
293
|
-
if (this.textfieldEl !== undefined) {
|
|
294
|
-
this.textfieldEl.setValue(value);
|
|
295
|
-
}
|
|
296
|
-
}
|
|
297
273
|
getValueForPickerComponent() {
|
|
298
274
|
return this.value;
|
|
299
275
|
}
|
|
@@ -302,22 +278,24 @@ export class KupTimePicker {
|
|
|
302
278
|
let containerEl = this.pickerContainerEl;
|
|
303
279
|
this.pickerOpened = true;
|
|
304
280
|
this.setClockViewActive(true, false, false);
|
|
305
|
-
let textFieldWidth = null;
|
|
306
281
|
if (textfieldEl != null) {
|
|
307
|
-
textFieldWidth =
|
|
308
|
-
textfieldEl.shadowRoot.querySelector('.mdc-text-field').clientWidth;
|
|
309
282
|
textfieldEl.classList.add('toggled');
|
|
310
|
-
textfieldEl.emitSubmitEventOnEnter = false;
|
|
311
283
|
}
|
|
312
284
|
if (containerEl != null) {
|
|
313
|
-
this.kupManager.dynamicPosition.start(containerEl);
|
|
314
285
|
containerEl.classList.add('visible');
|
|
315
|
-
|
|
286
|
+
const elStyle = containerEl.style;
|
|
316
287
|
elStyle.height = 'auto';
|
|
317
|
-
|
|
318
|
-
elStyle.minWidth = textFieldWidth + 'px';
|
|
319
|
-
}
|
|
288
|
+
elStyle.minWidth = textfieldEl.clientWidth + 'px';
|
|
320
289
|
}
|
|
290
|
+
if (!this.clickCb) {
|
|
291
|
+
this.clickCb = {
|
|
292
|
+
cb: () => {
|
|
293
|
+
this.closePicker();
|
|
294
|
+
},
|
|
295
|
+
el: this.pickerContainerEl,
|
|
296
|
+
};
|
|
297
|
+
}
|
|
298
|
+
this.kupManager.addClickCallback(this.clickCb, true);
|
|
321
299
|
this.refresh();
|
|
322
300
|
}
|
|
323
301
|
closePicker() {
|
|
@@ -329,9 +307,9 @@ export class KupTimePicker {
|
|
|
329
307
|
textfieldEl.emitSubmitEventOnEnter = true;
|
|
330
308
|
}
|
|
331
309
|
if (containerEl != null) {
|
|
332
|
-
this.kupManager.dynamicPosition.stop(containerEl);
|
|
333
310
|
containerEl.classList.remove('visible');
|
|
334
311
|
}
|
|
312
|
+
this.kupManager.removeClickCallback(this.clickCb);
|
|
335
313
|
}
|
|
336
314
|
isPickerOpened() {
|
|
337
315
|
return this.pickerOpened;
|
|
@@ -342,9 +320,6 @@ export class KupTimePicker {
|
|
|
342
320
|
getPickerElId() {
|
|
343
321
|
return this.pickerEl.id;
|
|
344
322
|
}
|
|
345
|
-
prepTimeTextfield() {
|
|
346
|
-
return this.prepTextfield(this.getTimeForOutput());
|
|
347
|
-
}
|
|
348
323
|
prepTextfield(initialValue) {
|
|
349
324
|
let textfieldData = Object.assign({}, this.data['kup-text-field']);
|
|
350
325
|
if (!textfieldData['icon']) {
|
|
@@ -353,7 +328,7 @@ export class KupTimePicker {
|
|
|
353
328
|
if (textfieldData['icon']) {
|
|
354
329
|
textfieldData['trailingIcon'] = true;
|
|
355
330
|
}
|
|
356
|
-
let comp = (h(
|
|
331
|
+
let comp = (h(FTextField, Object.assign({}, textfieldData, { disabled: this.disabled, id: this.rootElement.id + '_text-field', value: initialValue, onChange: (e) => this.onKupChange(e), onClick: () => this.onKupClick(), onFocus: () => this.onKupFocus(), onInput: (e) => this.onKupInput(e), onIconClick: () => this.onKupIconClick(), onKeyDown: (e) => this.onKupTextFieldSubmit(e), onClearIconClick: () => this.onKupClearIconClick() }), this.prepTimePicker()));
|
|
357
332
|
return comp;
|
|
358
333
|
}
|
|
359
334
|
isRelatedTargetInThisComponent(e) {
|
|
@@ -558,7 +533,7 @@ export class KupTimePicker {
|
|
|
558
533
|
else {
|
|
559
534
|
widget = (h("kup-list", { data: this.createTimeListData(this.value), "is-menu": true, "menu-visible": true, "onkup-list-click": (e) => this.onKupTimePickerItemClick(e, e.detail.selected.value), id: this.rootElement.id + '_list', ref: (el) => (this.pickerEl = el) }));
|
|
560
535
|
}
|
|
561
|
-
return (h("div", {
|
|
536
|
+
return (h("div", { id: "time-picker-div", ref: (el) => (this.pickerContainerEl = el), onBlur: (e) => {
|
|
562
537
|
if (!this.isRelatedTargetInThisComponent(e)) {
|
|
563
538
|
this.onKupBlur();
|
|
564
539
|
}
|
|
@@ -606,11 +581,6 @@ export class KupTimePicker {
|
|
|
606
581
|
let v1 = unformattedStringToFormattedStringTime(this.value, this.manageSeconds);
|
|
607
582
|
return v1;
|
|
608
583
|
}
|
|
609
|
-
recalcPosition() {
|
|
610
|
-
if (this.pickerContainerEl != null && this.textfieldEl != null) {
|
|
611
|
-
this.kupManager.dynamicPosition.register(this.pickerContainerEl, this.textfieldEl);
|
|
612
|
-
}
|
|
613
|
-
}
|
|
614
584
|
/*-------------------------------------------------*/
|
|
615
585
|
/* L i f e c y c l e H o o k s */
|
|
616
586
|
/*-------------------------------------------------*/
|
|
@@ -633,6 +603,14 @@ export class KupTimePicker {
|
|
|
633
603
|
this.kupManager.debug.logRender(this, false);
|
|
634
604
|
}
|
|
635
605
|
componentDidRender() {
|
|
606
|
+
const root = this.rootElement.shadowRoot;
|
|
607
|
+
if (root) {
|
|
608
|
+
const f = root.querySelector('.f-text-field');
|
|
609
|
+
if (f) {
|
|
610
|
+
this.textfieldEl = f.querySelector('input');
|
|
611
|
+
FTextFieldMDC(f);
|
|
612
|
+
}
|
|
613
|
+
}
|
|
636
614
|
if (this.clockVariant) {
|
|
637
615
|
if (this.hoursActive) {
|
|
638
616
|
this.switchView(this.hoursEl, this.hoursCircleEl);
|
|
@@ -644,7 +622,6 @@ export class KupTimePicker {
|
|
|
644
622
|
this.switchView(this.secondsEl, this.secondsCircleEl);
|
|
645
623
|
}
|
|
646
624
|
}
|
|
647
|
-
this.recalcPosition();
|
|
648
625
|
this.kupManager.debug.logRender(this, true);
|
|
649
626
|
}
|
|
650
627
|
render() {
|
|
@@ -660,19 +637,12 @@ export class KupTimePicker {
|
|
|
660
637
|
this.data['kup-text-field']['fullWidth']) {
|
|
661
638
|
hostClass['kup-full-width'] = true;
|
|
662
639
|
}
|
|
663
|
-
|
|
664
|
-
|
|
665
|
-
|
|
666
|
-
h("div", { id: componentWrapperId },
|
|
667
|
-
this.prepTimeTextfield(),
|
|
668
|
-
this.prepTimePicker())));
|
|
640
|
+
return (h(Host, { class: hostClass },
|
|
641
|
+
h("style", null, this.kupManager.theme.setKupStyle(this.rootElement)),
|
|
642
|
+
h("div", { id: componentWrapperId }, this.prepTextfield(this.getTimeForOutput()))));
|
|
669
643
|
}
|
|
670
644
|
disconnectedCallback() {
|
|
671
645
|
this.kupManager.theme.unregister(this);
|
|
672
|
-
const dynamicPositionElements = this.rootElement.shadowRoot.querySelectorAll('[' + kupDynamicPositionAttribute + ']');
|
|
673
|
-
if (dynamicPositionElements.length > 0) {
|
|
674
|
-
this.kupManager.dynamicPosition.unregister(Array.prototype.slice.call(dynamicPositionElements));
|
|
675
|
-
}
|
|
676
646
|
}
|
|
677
647
|
static get is() { return "kup-time-picker"; }
|
|
678
648
|
static get encapsulation() { return "shadow"; }
|
|
@@ -695,8 +665,8 @@ export class KupTimePicker {
|
|
|
695
665
|
"optional": false,
|
|
696
666
|
"docs": {
|
|
697
667
|
"tags": [{
|
|
698
|
-
"
|
|
699
|
-
"
|
|
668
|
+
"name": "default",
|
|
669
|
+
"text": "true"
|
|
700
670
|
}],
|
|
701
671
|
"text": "When set to true, the drop down menu will display a clock."
|
|
702
672
|
},
|
|
@@ -716,11 +686,11 @@ export class KupTimePicker {
|
|
|
716
686
|
"optional": false,
|
|
717
687
|
"docs": {
|
|
718
688
|
"tags": [{
|
|
719
|
-
"
|
|
720
|
-
"
|
|
689
|
+
"name": "default",
|
|
690
|
+
"text": "\"\""
|
|
721
691
|
}, {
|
|
722
|
-
"
|
|
723
|
-
"
|
|
692
|
+
"name": "see",
|
|
693
|
+
"text": "https://ketchup.smeup.com/ketchup-showcase/#/customization"
|
|
724
694
|
}],
|
|
725
695
|
"text": "Custom style of the component."
|
|
726
696
|
},
|
|
@@ -744,8 +714,8 @@ export class KupTimePicker {
|
|
|
744
714
|
"optional": false,
|
|
745
715
|
"docs": {
|
|
746
716
|
"tags": [{
|
|
747
|
-
"
|
|
748
|
-
"
|
|
717
|
+
"name": "default",
|
|
718
|
+
"text": "{}"
|
|
749
719
|
}],
|
|
750
720
|
"text": "Props of the sub-components (time input text field)"
|
|
751
721
|
},
|
|
@@ -763,8 +733,8 @@ export class KupTimePicker {
|
|
|
763
733
|
"optional": false,
|
|
764
734
|
"docs": {
|
|
765
735
|
"tags": [{
|
|
766
|
-
"
|
|
767
|
-
"
|
|
736
|
+
"name": "default",
|
|
737
|
+
"text": "false"
|
|
768
738
|
}],
|
|
769
739
|
"text": "Defaults at false. When set to true, the component is disabled."
|
|
770
740
|
},
|
|
@@ -784,8 +754,8 @@ export class KupTimePicker {
|
|
|
784
754
|
"optional": false,
|
|
785
755
|
"docs": {
|
|
786
756
|
"tags": [{
|
|
787
|
-
"
|
|
788
|
-
"
|
|
757
|
+
"name": "default",
|
|
758
|
+
"text": "\"\""
|
|
789
759
|
}],
|
|
790
760
|
"text": "Sets the initial value of the component."
|
|
791
761
|
},
|
|
@@ -805,8 +775,8 @@ export class KupTimePicker {
|
|
|
805
775
|
"optional": false,
|
|
806
776
|
"docs": {
|
|
807
777
|
"tags": [{
|
|
808
|
-
"
|
|
809
|
-
"
|
|
778
|
+
"name": "default",
|
|
779
|
+
"text": "false"
|
|
810
780
|
}],
|
|
811
781
|
"text": "Manage seconds."
|
|
812
782
|
},
|
|
@@ -826,8 +796,8 @@ export class KupTimePicker {
|
|
|
826
796
|
"optional": false,
|
|
827
797
|
"docs": {
|
|
828
798
|
"tags": [{
|
|
829
|
-
"
|
|
830
|
-
"
|
|
799
|
+
"name": "default",
|
|
800
|
+
"text": "10"
|
|
831
801
|
}],
|
|
832
802
|
"text": "Minutes step."
|
|
833
803
|
},
|
|
@@ -1026,8 +996,8 @@ export class KupTimePicker {
|
|
|
1026
996
|
"signature": "(descriptions?: boolean) => Promise<GenericObject>",
|
|
1027
997
|
"parameters": [{
|
|
1028
998
|
"tags": [{
|
|
1029
|
-
"
|
|
1030
|
-
"
|
|
999
|
+
"name": "param",
|
|
1000
|
+
"text": "descriptions - When provided and true, the result will be the list of props with their description."
|
|
1031
1001
|
}],
|
|
1032
1002
|
"text": "- When provided and true, the result will be the list of props with their description."
|
|
1033
1003
|
}],
|
|
@@ -1106,8 +1076,8 @@ export class KupTimePicker {
|
|
|
1106
1076
|
"signature": "(props: GenericObject) => Promise<void>",
|
|
1107
1077
|
"parameters": [{
|
|
1108
1078
|
"tags": [{
|
|
1109
|
-
"
|
|
1110
|
-
"
|
|
1079
|
+
"name": "param",
|
|
1080
|
+
"text": "props - Object containing props that will be set to the component."
|
|
1111
1081
|
}],
|
|
1112
1082
|
"text": "- Object containing props that will be set to the component."
|
|
1113
1083
|
}],
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { Component, Element, Event, forceUpdate, h, Host, Method, Prop, State, Watch, } from '@stencil/core';
|
|
2
2
|
import { ViewMode, KupTooltipProps, } from './kup-tooltip-declarations';
|
|
3
3
|
import { kupManagerInstance, } from '../../utils/kup-manager/kup-manager';
|
|
4
|
-
import { kupDynamicPositionAttribute,
|
|
4
|
+
import { kupDynamicPositionAttribute, } from '../../utils/kup-dynamic-position/kup-dynamic-position-declarations';
|
|
5
5
|
import { KupLanguageGeneric } from '../../utils/kup-language/kup-language-declarations';
|
|
6
6
|
import { KupCardFamily } from '../kup-card/kup-card-declarations';
|
|
7
7
|
import { getProps, setProps } from '../../utils/utils';
|
|
@@ -39,6 +39,7 @@ export class KupTooltip {
|
|
|
39
39
|
this.firstLoad = false;
|
|
40
40
|
this._mouseIsOn = false;
|
|
41
41
|
this.waitingServerResponse = false;
|
|
42
|
+
this.clickCb = null;
|
|
42
43
|
}
|
|
43
44
|
onElementChanged() {
|
|
44
45
|
if (this.relatedObject != null) {
|
|
@@ -49,6 +50,7 @@ export class KupTooltip {
|
|
|
49
50
|
}
|
|
50
51
|
}
|
|
51
52
|
onDataChanged() {
|
|
53
|
+
this.kupManager.removeClickCallback(this.clickCb);
|
|
52
54
|
this.waitingServerResponse = false;
|
|
53
55
|
if (this.relatedObject == null) {
|
|
54
56
|
this.kupManager.dynamicPosition.stop(this.rootElement);
|
|
@@ -61,14 +63,24 @@ export class KupTooltip {
|
|
|
61
63
|
return;
|
|
62
64
|
}
|
|
63
65
|
if (!this.kupManager.dynamicPosition.isRegistered(this.rootElement)) {
|
|
64
|
-
this.kupManager.dynamicPosition.register(this.rootElement, this.relatedObject.element
|
|
66
|
+
this.kupManager.dynamicPosition.register(this.rootElement, this.relatedObject.element);
|
|
65
67
|
}
|
|
66
68
|
else {
|
|
67
69
|
this.kupManager.dynamicPosition.changeAnchor(this.rootElement, this.relatedObject.element);
|
|
68
70
|
}
|
|
71
|
+
if (!this.clickCb) {
|
|
72
|
+
this.clickCb = {
|
|
73
|
+
cb: () => {
|
|
74
|
+
this.data = null;
|
|
75
|
+
this.kupManager.dynamicPosition.stop(this.rootElement);
|
|
76
|
+
this.kupManager.removeClickCallback(this.clickCb);
|
|
77
|
+
},
|
|
78
|
+
el: this.rootElement,
|
|
79
|
+
};
|
|
80
|
+
}
|
|
81
|
+
this.kupManager.addClickCallback(this.clickCb, true);
|
|
69
82
|
this.kupManager.dynamicPosition.start(this.rootElement);
|
|
70
83
|
this.visible = true;
|
|
71
|
-
this.rootElement.focus();
|
|
72
84
|
this.startLoadDetail(true);
|
|
73
85
|
}
|
|
74
86
|
onTooltipDetailChanged() {
|
|
@@ -184,7 +196,6 @@ export class KupTooltip {
|
|
|
184
196
|
this.resetAll();
|
|
185
197
|
return;
|
|
186
198
|
}
|
|
187
|
-
this.rootElement.focus();
|
|
188
199
|
if (this.isViewModeTooltip()) {
|
|
189
200
|
this.cellOptions = null;
|
|
190
201
|
this.kupTooltipLoadDetail.emit({
|
|
@@ -608,9 +619,8 @@ export class KupTooltip {
|
|
|
608
619
|
if (this.isCardLayout()) {
|
|
609
620
|
return this.getCardLayoutContent();
|
|
610
621
|
}
|
|
611
|
-
const customStyle = this.kupManager.theme.setCustomStyle(this.rootElement);
|
|
612
622
|
return (h(Host, null,
|
|
613
|
-
|
|
623
|
+
h("style", null, this.kupManager.theme.setKupStyle(this.rootElement)),
|
|
614
624
|
h("div", { id: componentWrapperId },
|
|
615
625
|
h("div", { id: "wrapper", onMouseEnter: (ev) => {
|
|
616
626
|
this.onMouseEnter();
|
|
@@ -671,11 +681,11 @@ export class KupTooltip {
|
|
|
671
681
|
"optional": false,
|
|
672
682
|
"docs": {
|
|
673
683
|
"tags": [{
|
|
674
|
-
"
|
|
675
|
-
"
|
|
684
|
+
"name": "default",
|
|
685
|
+
"text": "\"\""
|
|
676
686
|
}, {
|
|
677
|
-
"
|
|
678
|
-
"
|
|
687
|
+
"name": "see",
|
|
688
|
+
"text": "https://ketchup.smeup.com/ketchup-showcase/#/customization"
|
|
679
689
|
}],
|
|
680
690
|
"text": "Custom style of the component."
|
|
681
691
|
},
|
|
@@ -1121,8 +1131,8 @@ export class KupTooltip {
|
|
|
1121
1131
|
"signature": "(descriptions?: boolean) => Promise<GenericObject>",
|
|
1122
1132
|
"parameters": [{
|
|
1123
1133
|
"tags": [{
|
|
1124
|
-
"
|
|
1125
|
-
"
|
|
1134
|
+
"name": "param",
|
|
1135
|
+
"text": "descriptions - When provided and true, the result will be the list of props with their description."
|
|
1126
1136
|
}],
|
|
1127
1137
|
"text": "- When provided and true, the result will be the list of props with their description."
|
|
1128
1138
|
}],
|
|
@@ -1153,8 +1163,8 @@ export class KupTooltip {
|
|
|
1153
1163
|
"signature": "(props: GenericObject) => Promise<void>",
|
|
1154
1164
|
"parameters": [{
|
|
1155
1165
|
"tags": [{
|
|
1156
|
-
"
|
|
1157
|
-
"
|
|
1166
|
+
"name": "param",
|
|
1167
|
+
"text": "props - Object containing props that will be set to the component."
|
|
1158
1168
|
}],
|
|
1159
1169
|
"text": "- Object containing props that will be set to the component."
|
|
1160
1170
|
}],
|