@sme.up/ketchup 4.2.0-SNAPSHOT → 5.1.0-SNAPSHOT
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +107 -3
- package/dist/cjs/{cell-utils-1d44a3f0.js → cell-utils-9b1d6563.js} +4 -4
- package/dist/cjs/{component-8fbc31a2.js → component-d1496215.js} +203 -174
- package/dist/cjs/{f-button-a5788453.js → f-button-02a7cde4.js} +2 -2
- package/dist/cjs/{f-cell-eba6f39e.js → f-cell-4d1450a8.js} +62 -48
- package/dist/cjs/f-chip-a50b9f00.js +130 -0
- package/dist/cjs/{f-image-e03842eb.js → f-image-db55ac49.js} +3 -3
- package/dist/cjs/{index-0416afab.js → index-ab119fad.js} +23 -0
- package/dist/cjs/ketchup.cjs.js +3 -3
- package/dist/cjs/kup-accordion.cjs.entry.js +7 -7
- package/dist/cjs/{kup-autocomplete_28.cjs.entry.js → kup-autocomplete_27.cjs.entry.js} +5759 -4805
- package/dist/cjs/kup-calendar.cjs.entry.js +626 -359
- package/dist/cjs/kup-cell.cjs.entry.js +15 -13
- package/dist/cjs/kup-dash-list.cjs.entry.js +4 -4
- package/dist/cjs/kup-dash_2.cjs.entry.js +8 -7
- package/dist/cjs/kup-drawer.cjs.entry.js +3 -3
- package/dist/cjs/kup-echart.cjs.entry.js +93039 -0
- package/dist/cjs/kup-field.cjs.entry.js +2 -2
- package/dist/cjs/kup-iframe.cjs.entry.js +3 -3
- package/dist/cjs/kup-lazy.cjs.entry.js +22 -5
- package/dist/cjs/kup-magic-box.cjs.entry.js +95 -42
- package/dist/cjs/{kup-manager-75f1a2cd.js → kup-manager-5877b2ee.js} +3395 -737
- package/dist/cjs/kup-nav-bar.cjs.entry.js +3 -3
- package/dist/cjs/kup-probe.cjs.entry.js +2 -2
- package/dist/cjs/kup-qlik.cjs.entry.js +2 -2
- package/dist/cjs/kup-snackbar.cjs.entry.js +5 -5
- package/dist/cjs/loader.cjs.js +3 -3
- package/dist/cjs/{tslib.es6-4360c099.js → tslib.es6-0ee02c67.js} +13 -0
- package/dist/cjs/utils-1b5c8c70.js +482 -0
- package/dist/collection/assets/calendar.js +46 -1
- package/dist/collection/assets/card.js +15 -15
- package/dist/collection/assets/data-table.js +18 -6
- package/dist/collection/assets/index.js +8 -0
- package/dist/collection/assets/kupdata.js +937 -0
- package/dist/collection/collection-manifest.json +4 -4
- package/dist/collection/components/kup-accordion/kup-accordion.css +0 -1
- package/dist/collection/components/kup-accordion/kup-accordion.js +2 -2
- package/dist/collection/components/kup-autocomplete/kup-autocomplete-declarations.js +2 -0
- package/dist/collection/components/kup-autocomplete/kup-autocomplete.js +148 -52
- package/dist/collection/components/kup-badge/kup-badge.js +2 -2
- package/dist/collection/components/kup-box/kup-box.js +31 -17
- package/dist/collection/components/kup-button/kup-button.js +2 -2
- package/dist/collection/components/kup-button-list/kup-button-list.js +26 -8
- package/dist/collection/components/kup-calendar/kup-calendar-declarations.js +14 -8
- package/dist/collection/components/kup-calendar/kup-calendar.css +2 -2
- package/dist/collection/components/kup-calendar/kup-calendar.js +185 -315
- package/dist/collection/components/kup-card/built-in/kup-card-built-in.js +38 -0
- package/dist/collection/components/kup-card/built-in/kup-card-calendar.js +458 -0
- package/dist/collection/components/kup-card/built-in/kup-card-clock.js +321 -0
- package/dist/collection/components/kup-card/built-in/kup-card-column-drop-menu.js +167 -0
- package/dist/collection/components/kup-card/collapsible/kup-card-collapsible.js +1 -1
- package/dist/collection/components/kup-card/dialog/kup-card-dialog.js +2 -2
- package/dist/collection/components/kup-card/free/kup-card-free.js +22 -0
- package/dist/collection/components/kup-card/kup-card-declarations.js +19 -0
- package/dist/collection/components/kup-card/kup-card-helper.js +3 -3
- package/dist/collection/components/kup-card/kup-card.css +793 -8
- package/dist/collection/components/kup-card/kup-card.js +75 -15
- package/dist/collection/components/kup-card/scalable/kup-card-scalable.js +1 -1
- package/dist/collection/components/kup-card/standard/kup-card-standard.js +18 -5
- package/dist/collection/components/kup-cell/kup-cell.js +15 -13
- package/dist/collection/components/kup-chart/kup-chart-builder.js +3 -4
- package/dist/collection/components/kup-chart/kup-chart.js +7 -7
- package/dist/collection/components/kup-checkbox/kup-checkbox.js +1 -1
- package/dist/collection/components/kup-chip/kup-chip.css +1 -0
- package/dist/collection/components/kup-chip/kup-chip.js +51 -92
- package/dist/collection/components/kup-color-picker/kup-color-picker.css +1 -265
- package/dist/collection/components/kup-color-picker/kup-color-picker.js +93 -48
- package/dist/collection/components/kup-combobox/kup-combobox.js +148 -115
- package/dist/collection/components/kup-dash/kup-dash.js +1 -1
- package/dist/collection/components/kup-dash-list/kup-dash-list.js +5 -5
- 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 +28 -56
- package/dist/collection/components/kup-data-table/kup-data-table.css +4 -38
- package/dist/collection/components/kup-data-table/kup-data-table.js +366 -168
- package/dist/collection/components/kup-date-picker/kup-date-picker.css +0 -82
- package/dist/collection/components/kup-date-picker/kup-date-picker.js +41 -312
- package/dist/collection/components/kup-drawer/kup-drawer.js +1 -1
- package/dist/collection/components/kup-dropdown-button/kup-dropdown-button.js +2 -2
- package/dist/collection/components/kup-echart/assets/maps/africa.json +6116 -0
- package/dist/collection/components/kup-echart/assets/maps/america.json +5416 -0
- package/dist/collection/components/kup-echart/assets/maps/asia.json +6053 -0
- package/dist/collection/components/kup-echart/assets/maps/europe.json +5051 -0
- package/dist/collection/components/kup-echart/assets/maps/italy.json +3562 -0
- package/dist/collection/components/kup-echart/assets/maps/oceania.json +1069 -0
- package/dist/collection/components/kup-echart/assets/maps/world.json +23685 -0
- package/dist/collection/components/kup-echart/kup-echart-declarations.js +45 -0
- package/dist/collection/components/kup-echart/kup-echart.css +13 -0
- package/dist/collection/components/kup-echart/kup-echart.js +1165 -0
- package/dist/collection/components/kup-field/kup-field.js +2 -2
- package/dist/collection/components/kup-gauge/kup-gauge.js +3 -3
- package/dist/collection/components/kup-grid/kup-grid.css +2 -2
- package/dist/collection/components/kup-grid/kup-grid.js +6 -5
- package/dist/collection/components/kup-iframe/kup-iframe.js +2 -2
- package/dist/collection/components/kup-image/assets/svg/science.svg +1 -0
- package/dist/collection/components/kup-image/kup-image.js +3 -3
- package/dist/collection/components/kup-lazy/kup-lazy.css +21 -11
- package/dist/collection/components/kup-lazy/kup-lazy.js +62 -3
- package/dist/collection/components/kup-list/kup-list-helper.js +7 -1
- package/dist/collection/components/kup-list/kup-list.css +3 -0
- package/dist/collection/components/kup-list/kup-list.js +219 -288
- package/dist/collection/components/kup-magic-box/kup-magic-box-declarations.js +11 -7
- package/dist/collection/components/kup-magic-box/kup-magic-box.js +90 -41
- package/dist/collection/components/kup-nav-bar/kup-nav-bar.js +1 -1
- package/dist/collection/components/kup-probe/kup-probe.js +1 -1
- package/dist/collection/components/kup-progress-bar/kup-progress-bar.js +1 -1
- package/dist/collection/components/kup-qlik/kup-qlik.js +1 -1
- package/dist/collection/components/kup-radio/kup-radio.js +1 -1
- package/dist/collection/components/kup-rating/kup-rating.js +1 -1
- package/dist/collection/components/kup-snackbar/kup-snackbar.js +1 -1
- package/dist/collection/components/kup-spinner/kup-spinner.js +1 -1
- package/dist/collection/components/kup-state/mock-store.js +1 -1
- package/dist/collection/components/kup-switch/kup-switch.js +1 -1
- package/dist/collection/components/kup-tab-bar/kup-tab-bar.js +3 -3
- package/dist/collection/components/kup-text-field/kup-text-field.css +3 -0
- package/dist/collection/components/kup-text-field/kup-text-field.js +2 -2
- package/dist/collection/components/kup-time-picker/kup-time-picker.css +1 -0
- package/dist/collection/components/kup-time-picker/kup-time-picker.js +57 -244
- package/dist/collection/components/kup-tooltip/kup-tooltip.js +3 -3
- package/dist/collection/components/kup-tree/kup-tree-declarations.js +0 -5
- package/dist/collection/components/kup-tree/kup-tree-faker.js +2 -3
- package/dist/collection/components/kup-tree/kup-tree.css +2 -0
- package/dist/collection/components/kup-tree/kup-tree.js +145 -70
- package/dist/collection/f-components/f-cell/f-cell-declarations.js +3 -1
- package/dist/collection/f-components/f-cell/f-cell.js +53 -39
- package/dist/collection/f-components/f-chip/f-chip.js +76 -87
- package/dist/collection/f-components/f-image/f-image.js +2 -2
- package/dist/collection/f-components/f-paginator/f-paginator-declarations.js +5 -0
- package/dist/collection/f-components/f-paginator/f-paginator-utils.js +28 -0
- package/dist/collection/f-components/f-paginator/f-paginator.js +91 -0
- package/dist/collection/f-components/f-text-field/f-text-field.js +4 -4
- package/dist/collection/managers/kup-data/kup-data-cell-helper.js +52 -0
- package/dist/collection/managers/kup-data/kup-data-column-helper.js +272 -0
- package/dist/collection/managers/kup-data/kup-data-declarations.js +9 -0
- package/dist/collection/managers/kup-data/kup-data-node-helper.js +72 -0
- package/dist/collection/managers/kup-data/kup-data-row-helper.js +28 -0
- package/dist/collection/managers/kup-data/kup-data.js +382 -0
- package/dist/collection/{utils → managers}/kup-dates/kup-dates-declarations.js +0 -0
- package/dist/collection/{utils → managers}/kup-dates/kup-dates.js +53 -19
- package/dist/collection/{utils → managers}/kup-debug/kup-debug-browser-utils.js +1 -1
- package/dist/collection/{utils → managers}/kup-debug/kup-debug-declarations.js +0 -0
- package/dist/collection/{utils → managers}/kup-debug/kup-debug.js +79 -124
- package/dist/collection/{utils → managers}/kup-dynamic-position/kup-dynamic-position-declarations.js +0 -0
- package/dist/collection/{utils → managers}/kup-dynamic-position/kup-dynamic-position.js +10 -1
- package/dist/collection/{utils → managers}/kup-interact/kup-interact-declarations.js +1 -0
- package/dist/collection/{utils → managers}/kup-interact/kup-interact.js +22 -13
- package/dist/collection/{utils → managers}/kup-language/kup-language-declarations.js +10 -0
- package/dist/collection/{utils → managers}/kup-language/kup-language.js +5 -5
- package/dist/collection/{utils → managers}/kup-manager/kup-manager-declarations.js +0 -0
- package/dist/collection/{utils → managers}/kup-manager/kup-manager.js +45 -4
- package/dist/collection/managers/kup-math/kup-math-declarations.js +13 -0
- package/dist/collection/managers/kup-math/kup-math-helper.js +39 -0
- package/dist/collection/managers/kup-math/kup-math.js +151 -0
- package/dist/collection/{utils → managers}/kup-objects/kup-objects-declarations.js +0 -0
- package/dist/collection/{utils → managers}/kup-objects/kup-objects.js +15 -0
- package/dist/collection/{utils → managers}/kup-scroll-on-hover/kup-scroll-on-hover-declarations.js +0 -0
- package/dist/collection/{utils → managers}/kup-scroll-on-hover/kup-scroll-on-hover.js +0 -0
- package/dist/collection/{utils → managers}/kup-search/kup-search-declarations.js +0 -0
- package/dist/collection/{utils → managers}/kup-search/kup-search.js +0 -1
- package/dist/collection/{utils → managers}/kup-theme/kup-theme-declarations.js +99 -0
- package/dist/collection/{utils → managers}/kup-theme/kup-theme.js +117 -68
- package/dist/collection/{utils → managers}/kup-toolbar/kup-toolbar-declarations.js +0 -0
- package/dist/collection/{utils → managers}/kup-toolbar/kup-toolbar.js +0 -0
- package/dist/collection/types/GenericTypes.js +48 -1
- package/dist/collection/utils/cell-utils.js +3 -4
- package/dist/collection/utils/filters/filters-column-menu.js +7 -7
- package/dist/collection/utils/filters/filters-rows.js +2 -2
- package/dist/collection/utils/filters/filters-tree-items.js +12 -12
- package/dist/collection/utils/filters/filters.js +3 -2
- package/dist/collection/utils/kup-column-menu/kup-column-menu-declarations.js +1 -0
- package/dist/collection/utils/kup-column-menu/kup-column-menu.js +100 -68
- package/dist/collection/utils/utils.js +4 -4
- package/dist/esm/{cell-utils-9a2914fc.js → cell-utils-571978d6.js} +4 -4
- package/dist/esm/{component-d2803feb.js → component-c4eb6153.js} +204 -170
- package/dist/esm/{f-button-55a9ed88.js → f-button-b3011cc2.js} +2 -2
- package/dist/esm/{f-cell-ac520cb2.js → f-cell-b88b2731.js} +62 -48
- package/dist/esm/f-chip-a52489ec.js +128 -0
- package/dist/esm/{f-image-70ca9dfe.js → f-image-5e5ed7e2.js} +3 -3
- package/dist/esm/{index-e0e67c23.js → index-78f3699d.js} +23 -0
- package/dist/esm/ketchup.js +3 -3
- package/dist/esm/kup-accordion.entry.js +7 -7
- package/dist/esm/{kup-autocomplete_28.entry.js → kup-autocomplete_27.entry.js} +5570 -4615
- package/dist/esm/kup-calendar.entry.js +626 -359
- package/dist/esm/kup-cell.entry.js +15 -13
- package/dist/esm/kup-dash-list.entry.js +4 -4
- package/dist/esm/kup-dash_2.entry.js +8 -7
- package/dist/esm/kup-drawer.entry.js +3 -3
- package/dist/esm/kup-echart.entry.js +93035 -0
- package/dist/esm/kup-field.entry.js +2 -2
- package/dist/esm/kup-iframe.entry.js +3 -3
- package/dist/esm/kup-lazy.entry.js +22 -5
- package/dist/esm/kup-magic-box.entry.js +95 -42
- package/dist/esm/{kup-manager-bba32828.js → kup-manager-1f76a3ef.js} +3391 -737
- package/dist/esm/kup-nav-bar.entry.js +3 -3
- package/dist/esm/kup-probe.entry.js +2 -2
- package/dist/esm/kup-qlik.entry.js +2 -2
- package/dist/esm/kup-snackbar.entry.js +5 -5
- package/dist/esm/loader.js +3 -3
- package/dist/esm/polyfills/css-shim.js +1 -1
- package/dist/esm/{tslib.es6-e6137777.js → tslib.es6-8f2d44b6.js} +13 -1
- package/dist/esm/utils-93ae800f.js +461 -0
- package/dist/ketchup/assets/maps/africa.json +6116 -0
- package/dist/ketchup/assets/maps/america.json +5416 -0
- package/dist/ketchup/assets/maps/asia.json +6053 -0
- package/dist/ketchup/assets/maps/europe.json +5051 -0
- package/dist/ketchup/assets/maps/italy.json +3562 -0
- package/dist/ketchup/assets/maps/oceania.json +1069 -0
- package/dist/ketchup/assets/maps/world.json +23685 -0
- package/dist/ketchup/assets/svg/science.svg +1 -0
- package/dist/ketchup/ketchup.esm.js +1 -1
- package/dist/ketchup/{p-74259992.entry.js → p-088a886c.entry.js} +1 -1
- package/dist/ketchup/p-135cabdc.entry.js +1 -0
- package/dist/ketchup/p-1c1e830f.entry.js +1 -0
- package/dist/ketchup/{p-69a705ae.entry.js → p-29208220.entry.js} +1 -1
- package/dist/ketchup/{p-62208488.entry.js → p-2b9f2019.entry.js} +1 -1
- package/dist/ketchup/p-52d0582a.js +1 -0
- package/dist/ketchup/p-554bd5f0.entry.js +39 -0
- package/dist/ketchup/{p-06c209a5.js → p-5f52e313.js} +1 -1
- package/dist/ketchup/{p-e90934b5.entry.js → p-65449480.entry.js} +1 -1
- package/dist/ketchup/p-79cf3874.entry.js +1 -0
- package/dist/ketchup/p-7a85cda4.js +1 -0
- package/dist/ketchup/p-84cce555.entry.js +27 -0
- package/dist/ketchup/p-8c44c3b9.js +135 -0
- package/dist/ketchup/{p-ff7d590e.entry.js → p-9d49cdb2.entry.js} +1 -1
- package/dist/ketchup/{p-5a4a5fdc.js → p-a0b1d769.js} +1 -1
- package/dist/ketchup/{p-40df35de.entry.js → p-a2b6672e.entry.js} +1 -1
- package/dist/ketchup/{p-5faf7715.entry.js → p-a4be630b.entry.js} +1 -1
- package/dist/ketchup/p-c072b270.js +1 -0
- package/dist/ketchup/{p-daf03877.entry.js → p-c648972c.entry.js} +1 -1
- package/dist/ketchup/{p-03ae1be9.entry.js → p-d67d39c0.entry.js} +1 -1
- package/dist/ketchup/p-d6e2f2b0.entry.js +1 -0
- package/dist/ketchup/{p-52038ccb.js → p-da387e0e.js} +1 -1
- package/dist/ketchup/p-e5c9ec9e.js +1 -0
- package/dist/ketchup/{p-cb5f4994.js → p-ed0b8666.js} +0 -0
- package/dist/ketchup/p-ef539eda.js +9 -0
- package/dist/ketchup/p-f316234c.entry.js +143 -0
- package/dist/types/components/kup-accordion/kup-accordion-declarations.d.ts +2 -2
- package/dist/types/components/kup-autocomplete/kup-autocomplete-declarations.d.ts +6 -0
- package/dist/types/components/kup-autocomplete/kup-autocomplete.d.ts +29 -22
- package/dist/types/components/kup-box/kup-box-declarations.d.ts +7 -11
- package/dist/types/components/kup-box/kup-box.d.ts +4 -4
- package/dist/types/components/kup-button-list/kup-button-list-declarations.d.ts +6 -1
- package/dist/types/components/kup-button-list/kup-button-list.d.ts +4 -3
- package/dist/types/components/kup-calendar/kup-calendar-declarations.d.ts +28 -10
- package/dist/types/components/kup-calendar/kup-calendar.d.ts +19 -47
- package/dist/types/components/kup-card/built-in/kup-card-built-in.d.ts +27 -0
- package/dist/types/components/kup-card/built-in/kup-card-calendar.d.ts +2 -0
- package/dist/types/components/kup-card/built-in/kup-card-clock.d.ts +2 -0
- package/dist/types/components/kup-card/built-in/kup-card-column-drop-menu.d.ts +3 -0
- package/dist/types/components/kup-card/free/kup-card-free.d.ts +14 -0
- package/dist/types/components/kup-card/kup-card-declarations.d.ts +100 -1
- package/dist/types/components/kup-card/kup-card.d.ts +12 -5
- package/dist/types/components/kup-cell/kup-cell.d.ts +3 -3
- package/dist/types/components/kup-chart/kup-chart-builder.d.ts +5 -5
- package/dist/types/components/kup-chart/kup-chart-declarations.d.ts +3 -3
- package/dist/types/components/kup-chart/kup-chart.d.ts +2 -2
- package/dist/types/components/kup-chip/kup-chip-declarations.d.ts +6 -3
- package/dist/types/components/kup-chip/kup-chip.d.ts +9 -13
- package/dist/types/components/kup-color-picker/kup-color-picker.d.ts +7 -3
- package/dist/types/components/kup-combobox/kup-combobox-declarations.d.ts +4 -0
- package/dist/types/components/kup-combobox/kup-combobox.d.ts +11 -33
- package/dist/types/components/kup-dash-list/kup-dash-list.d.ts +2 -2
- package/dist/types/components/kup-data-table/kup-data-table-declarations.d.ts +45 -109
- package/dist/types/components/kup-data-table/kup-data-table-helper.d.ts +8 -11
- package/dist/types/components/kup-data-table/kup-data-table.d.ts +50 -29
- package/dist/types/components/kup-date-picker/kup-date-picker.d.ts +0 -10
- package/dist/types/components/kup-echart/kup-echart-declarations.d.ts +55 -0
- package/dist/types/components/kup-echart/kup-echart.d.ts +100 -0
- package/dist/types/components/kup-lazy/kup-lazy.d.ts +13 -1
- package/dist/types/components/kup-list/kup-list-declarations.d.ts +2 -1
- package/dist/types/components/kup-list/kup-list.d.ts +4 -35
- package/dist/types/components/kup-magic-box/kup-magic-box-declarations.d.ts +6 -10
- package/dist/types/components/kup-magic-box/kup-magic-box.d.ts +7 -11
- package/dist/types/components/kup-time-picker/kup-time-picker.d.ts +2 -9
- package/dist/types/components/kup-tooltip/kup-tooltip-declarations.d.ts +11 -13
- package/dist/types/components/kup-tree/kup-tree-declarations.d.ts +14 -35
- package/dist/types/components/kup-tree/kup-tree-faker.d.ts +10 -10
- package/dist/types/components/kup-tree/kup-tree.d.ts +45 -35
- package/dist/types/components.d.ts +307 -188
- package/dist/types/f-components/f-cell/f-cell-declarations.d.ts +11 -10
- package/dist/types/f-components/f-chip/f-chip-declarations.d.ts +7 -22
- package/dist/types/f-components/f-paginator/f-paginator-declarations.d.ts +22 -0
- package/dist/types/f-components/f-paginator/f-paginator-utils.d.ts +2 -0
- package/dist/types/f-components/f-paginator/f-paginator.d.ts +3 -0
- package/dist/types/managers/kup-data/kup-data-cell-helper.d.ts +24 -0
- package/dist/types/managers/kup-data/kup-data-column-helper.d.ts +31 -0
- package/dist/types/managers/kup-data/kup-data-declarations.d.ts +160 -0
- package/dist/types/managers/kup-data/kup-data-node-helper.d.ts +23 -0
- package/dist/types/managers/kup-data/kup-data-row-helper.d.ts +14 -0
- package/dist/types/managers/kup-data/kup-data.d.ts +77 -0
- package/dist/types/{utils → managers}/kup-dates/kup-dates-declarations.d.ts +0 -0
- package/dist/types/{utils → managers}/kup-dates/kup-dates.d.ts +24 -2
- package/dist/types/{utils → managers}/kup-debug/kup-debug-declarations.d.ts +0 -0
- package/dist/types/{utils → managers}/kup-debug/kup-debug.d.ts +6 -13
- package/dist/types/{utils → managers}/kup-dynamic-position/kup-dynamic-position-declarations.d.ts +1 -0
- package/dist/types/{utils → managers}/kup-dynamic-position/kup-dynamic-position.d.ts +0 -0
- package/dist/types/{utils → managers}/kup-interact/kup-interact-declarations.d.ts +9 -8
- package/dist/types/{utils → managers}/kup-interact/kup-interact.d.ts +7 -6
- package/dist/types/{utils → managers}/kup-language/kup-language-declarations.d.ts +11 -1
- package/dist/types/{utils → managers}/kup-language/kup-language.d.ts +3 -3
- package/dist/types/{utils → managers}/kup-manager/kup-manager-declarations.d.ts +21 -2
- package/dist/types/{utils → managers}/kup-manager/kup-manager.d.ts +4 -0
- package/dist/types/managers/kup-math/kup-math-declarations.d.ts +21 -0
- package/dist/types/managers/kup-math/kup-math-helper.d.ts +17 -0
- package/dist/types/managers/kup-math/kup-math.d.ts +60 -0
- package/dist/types/{utils → managers}/kup-objects/kup-objects-declarations.d.ts +0 -0
- package/dist/types/{utils → managers}/kup-objects/kup-objects.d.ts +6 -0
- package/dist/types/{utils → managers}/kup-scroll-on-hover/kup-scroll-on-hover-declarations.d.ts +0 -0
- package/dist/types/{utils → managers}/kup-scroll-on-hover/kup-scroll-on-hover.d.ts +0 -0
- package/dist/types/{utils → managers}/kup-search/kup-search-declarations.d.ts +0 -0
- package/dist/types/{utils → managers}/kup-search/kup-search.d.ts +0 -0
- package/dist/types/{utils → managers}/kup-theme/kup-theme-declarations.d.ts +37 -1
- package/dist/types/{utils → managers}/kup-theme/kup-theme.d.ts +19 -19
- package/dist/types/{utils → managers}/kup-toolbar/kup-toolbar-declarations.d.ts +0 -0
- package/dist/types/{utils → managers}/kup-toolbar/kup-toolbar.d.ts +0 -0
- package/dist/types/stencil-public-runtime.d.ts +6 -4
- package/dist/types/types/GenericTypes.d.ts +53 -6
- package/dist/types/utils/cell-utils.d.ts +7 -6
- package/dist/types/utils/filters/filters-column-menu.d.ts +16 -16
- package/dist/types/utils/filters/filters-rows.d.ts +10 -10
- package/dist/types/utils/filters/filters-tree-items.d.ts +7 -7
- package/dist/types/utils/helpers.d.ts +2 -2
- package/dist/types/utils/kup-column-menu/kup-column-menu-declarations.d.ts +1 -0
- package/dist/types/utils/kup-column-menu/kup-column-menu.d.ts +27 -33
- package/dist/types/utils/utils.d.ts +4 -2
- package/package.json +31 -26
- package/dist/cjs/f-chip-ce69b7d2.js +0 -141
- package/dist/cjs/utils-b3ec89fe.js +0 -1550
- package/dist/collection/components/kup-paginator/kup-paginator-declarations.js +0 -5
- package/dist/collection/components/kup-paginator/kup-paginator.css +0 -46
- package/dist/collection/components/kup-paginator/kup-paginator.js +0 -408
- package/dist/esm/f-chip-babf1740.js +0 -139
- package/dist/esm/utils-cfcbe33f.js +0 -1526
- package/dist/ketchup/p-1ce9a037.js +0 -1
- package/dist/ketchup/p-1e2c3497.js +0 -1
- package/dist/ketchup/p-4748be4b.js +0 -8
- package/dist/ketchup/p-5db41fae.entry.js +0 -45
- package/dist/ketchup/p-6cc8264d.entry.js +0 -1
- package/dist/ketchup/p-756aa8b1.entry.js +0 -1
- package/dist/ketchup/p-9d02a676.js +0 -134
- package/dist/ketchup/p-a7687c0e.entry.js +0 -27
- package/dist/ketchup/p-d58dbf0e.js +0 -1
- package/dist/ketchup/p-d6ce1ac6.entry.js +0 -1
- package/dist/ketchup/p-ea387b49.entry.js +0 -1
- package/dist/ketchup/p-f6bff949.js +0 -1
- package/dist/types/components/kup-paginator/kup-paginator-declarations.d.ts +0 -11
- package/dist/types/components/kup-paginator/kup-paginator.d.ts +0 -48
|
@@ -1,13 +1,14 @@
|
|
|
1
1
|
import { Component, Element, Event, forceUpdate, h, Host, Listen, Method, Prop, State, Watch, } from '@stencil/core';
|
|
2
|
-
import { kupManagerInstance, } from '../../
|
|
2
|
+
import { kupManagerInstance, } from '../../managers/kup-manager/kup-manager';
|
|
3
3
|
import { isValidFormattedStringTime, formattedStringToCustomUnformattedStringTime, unformattedStringToFormattedStringTime, formatTime, getProps, setProps, } from '../../utils/utils';
|
|
4
|
-
import { FButtonStyling } from '../../f-components/f-button/f-button-declarations';
|
|
5
4
|
import { KupTimePickerProps, } from './kup-time-picker-declarations';
|
|
6
|
-
import { KupDebugCategory } from '../../
|
|
5
|
+
import { KupDebugCategory } from '../../managers/kup-debug/kup-debug-declarations';
|
|
7
6
|
import { componentWrapperId } from '../../variables/GenericVariables';
|
|
8
|
-
import { KupDatesFormats } from '../../
|
|
7
|
+
import { KupDatesFormats } from '../../managers/kup-dates/kup-dates-declarations';
|
|
9
8
|
import { FTextField } from '../../f-components/f-text-field/f-text-field';
|
|
10
9
|
import { FTextFieldMDC } from '../../f-components/f-text-field/f-text-field-mdc';
|
|
10
|
+
import { KupCardFamily, } from '../kup-card/kup-card-declarations';
|
|
11
|
+
import { KupDynamicPositionPlacement } from '../../managers/kup-dynamic-position/kup-dynamic-position-declarations';
|
|
11
12
|
export class KupTimePicker {
|
|
12
13
|
constructor() {
|
|
13
14
|
/*-------------------------------------------------*/
|
|
@@ -69,10 +70,9 @@ export class KupTimePicker {
|
|
|
69
70
|
this.hoursActive = true;
|
|
70
71
|
this.minutesActive = false;
|
|
71
72
|
this.secondsActive = false;
|
|
73
|
+
this.textFieldContainerEl = undefined;
|
|
72
74
|
this.textfieldEl = undefined;
|
|
73
|
-
this.
|
|
74
|
-
this.pickerEl = undefined;
|
|
75
|
-
this.pickerOpened = false;
|
|
75
|
+
this.pickerKupEl = undefined;
|
|
76
76
|
this.clickCb = null;
|
|
77
77
|
}
|
|
78
78
|
onKupTimePickerItemClick(e, value) {
|
|
@@ -92,6 +92,7 @@ export class KupTimePicker {
|
|
|
92
92
|
id: this.rootElement.id,
|
|
93
93
|
value: this.value,
|
|
94
94
|
});
|
|
95
|
+
this.setFocus();
|
|
95
96
|
}
|
|
96
97
|
onKupClearIconClick() {
|
|
97
98
|
this.setPickerValueSelected('');
|
|
@@ -213,7 +214,7 @@ export class KupTimePicker {
|
|
|
213
214
|
*/
|
|
214
215
|
async setFocus() {
|
|
215
216
|
if (this.textfieldEl != null) {
|
|
216
|
-
this.textfieldEl.
|
|
217
|
+
this.textfieldEl.focus();
|
|
217
218
|
}
|
|
218
219
|
}
|
|
219
220
|
/**
|
|
@@ -274,61 +275,61 @@ export class KupTimePicker {
|
|
|
274
275
|
return this.value;
|
|
275
276
|
}
|
|
276
277
|
openPicker() {
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
this.
|
|
281
|
-
if (textfieldEl != null) {
|
|
282
|
-
textfieldEl.classList.add('toggled');
|
|
278
|
+
const elStyle = this.pickerKupEl.style;
|
|
279
|
+
elStyle.height = 'auto';
|
|
280
|
+
elStyle.minWidth = this.textFieldContainerEl.clientWidth + 'px';
|
|
281
|
+
this.pickerKupEl.menuVisible = true;
|
|
282
|
+
if (this.textfieldEl != null) {
|
|
283
|
+
this.textfieldEl.classList.add('toggled');
|
|
284
|
+
}
|
|
285
|
+
if (this.kupManager.dynamicPosition.isRegistered(this.pickerKupEl)) {
|
|
286
|
+
this.kupManager.dynamicPosition.changeAnchor(this.pickerKupEl, this.textFieldContainerEl);
|
|
283
287
|
}
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
const elStyle = containerEl.style;
|
|
287
|
-
elStyle.height = 'auto';
|
|
288
|
-
elStyle.minWidth = textfieldEl.clientWidth + 'px';
|
|
288
|
+
else {
|
|
289
|
+
this.kupManager.dynamicPosition.register(this.pickerKupEl, this.textFieldContainerEl, 0, KupDynamicPositionPlacement.AUTO, true);
|
|
289
290
|
}
|
|
291
|
+
this.kupManager.dynamicPosition.start(this.pickerKupEl);
|
|
290
292
|
if (!this.clickCb) {
|
|
291
293
|
this.clickCb = {
|
|
292
294
|
cb: () => {
|
|
293
295
|
this.closePicker();
|
|
294
296
|
},
|
|
295
|
-
el: this.
|
|
297
|
+
el: this.pickerKupEl,
|
|
296
298
|
};
|
|
297
299
|
}
|
|
298
300
|
this.kupManager.addClickCallback(this.clickCb, true);
|
|
299
|
-
this.refresh();
|
|
300
301
|
}
|
|
301
302
|
closePicker() {
|
|
303
|
+
this.pickerKupEl.menuVisible = false;
|
|
304
|
+
this.kupManager.removeClickCallback(this.clickCb);
|
|
302
305
|
let textfieldEl = this.textfieldEl;
|
|
303
|
-
let containerEl = this.pickerContainerEl;
|
|
304
|
-
this.pickerOpened = false;
|
|
305
306
|
if (textfieldEl != null) {
|
|
306
307
|
textfieldEl.classList.remove('toggled');
|
|
307
|
-
textfieldEl.emitSubmitEventOnEnter = true;
|
|
308
|
-
}
|
|
309
|
-
if (containerEl != null) {
|
|
310
|
-
containerEl.classList.remove('visible');
|
|
311
308
|
}
|
|
309
|
+
this.pickerKupEl.menuVisible = false;
|
|
310
|
+
this.kupManager.dynamicPosition.stop(this.pickerKupEl);
|
|
312
311
|
this.kupManager.removeClickCallback(this.clickCb);
|
|
313
312
|
}
|
|
314
313
|
isPickerOpened() {
|
|
315
|
-
return this.
|
|
314
|
+
return this.pickerKupEl.menuVisible == true;
|
|
316
315
|
}
|
|
317
316
|
getTextFieldId() {
|
|
318
317
|
return this.textfieldEl.id;
|
|
319
318
|
}
|
|
320
319
|
getPickerElId() {
|
|
321
|
-
return this.
|
|
320
|
+
return this.pickerKupEl.id;
|
|
322
321
|
}
|
|
323
322
|
prepTextfield(initialValue) {
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
323
|
+
const fullHeight = this.rootElement.classList.contains('kup-full-height');
|
|
324
|
+
const fullWidth = this.rootElement.classList.contains('kup-full-width');
|
|
325
|
+
const textfieldData = Object.assign({}, this.data['kup-text-field']);
|
|
326
|
+
if (!textfieldData.icon) {
|
|
327
|
+
textfieldData.icon = 'access_time';
|
|
327
328
|
}
|
|
328
|
-
if (textfieldData
|
|
329
|
-
textfieldData
|
|
329
|
+
if (textfieldData.icon) {
|
|
330
|
+
textfieldData.trailingIcon = true;
|
|
330
331
|
}
|
|
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()));
|
|
332
|
+
let comp = (h(FTextField, Object.assign({}, textfieldData, { disabled: this.disabled, fullHeight: fullHeight, fullWidth: fullWidth, 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()));
|
|
332
333
|
return comp;
|
|
333
334
|
}
|
|
334
335
|
isRelatedTargetInThisComponent(e) {
|
|
@@ -348,196 +349,25 @@ export class KupTimePicker {
|
|
|
348
349
|
let idConc = '#time-picker-div#confirm#';
|
|
349
350
|
return idConc.indexOf('#' + id + '#') >= 0;
|
|
350
351
|
}
|
|
351
|
-
setTimeFromClock(e) {
|
|
352
|
-
let text = this.hoursEl.innerText + ':' + this.minutesEl.innerText;
|
|
353
|
-
if (this.manageSeconds) {
|
|
354
|
-
text += ':' + this.secondsEl.innerText;
|
|
355
|
-
}
|
|
356
|
-
this.onKupTimePickerItemClick(e, text);
|
|
357
|
-
}
|
|
358
|
-
createClock() {
|
|
359
|
-
let selectedTime;
|
|
360
|
-
if (this.value) {
|
|
361
|
-
selectedTime = this.kupManager.dates.toDate(this.value, this.manageSeconds
|
|
362
|
-
? KupDatesFormats.ISO_TIME
|
|
363
|
-
: KupDatesFormats.ISO_TIME_WITHOUT_SECONDS);
|
|
364
|
-
}
|
|
365
|
-
else {
|
|
366
|
-
selectedTime = new Date();
|
|
367
|
-
}
|
|
368
|
-
let hh = selectedTime.getHours().toString();
|
|
369
|
-
let mm = selectedTime.getMinutes().toString();
|
|
370
|
-
if (hh.length === 1) {
|
|
371
|
-
hh = '0' + hh;
|
|
372
|
-
}
|
|
373
|
-
if (mm.length === 1) {
|
|
374
|
-
mm = '0' + mm;
|
|
375
|
-
}
|
|
376
|
-
let ss = '';
|
|
377
|
-
if (this.manageSeconds) {
|
|
378
|
-
ss = selectedTime.getSeconds().toString();
|
|
379
|
-
if (ss.length === 1) {
|
|
380
|
-
ss = '0' + ss;
|
|
381
|
-
}
|
|
382
|
-
}
|
|
383
|
-
let seconds;
|
|
384
|
-
let time = [
|
|
385
|
-
h("span", { class: "h", ref: (el) => (this.hoursEl = el), onClick: () => {
|
|
386
|
-
this.setClockViewActive(true, false, false);
|
|
387
|
-
this.switchView(this.hoursEl, this.hoursCircleEl);
|
|
388
|
-
}, innerHTML: hh }),
|
|
389
|
-
':',
|
|
390
|
-
h("span", { class: "m", ref: (el) => (this.minutesEl = el), onClick: () => {
|
|
391
|
-
this.setClockViewActive(false, true, false);
|
|
392
|
-
this.switchView(this.minutesEl, this.minutesCircleEl);
|
|
393
|
-
}, innerHTML: mm }),
|
|
394
|
-
];
|
|
395
|
-
if (this.manageSeconds) {
|
|
396
|
-
seconds = (h("div", { class: "circle seconds", ref: (el) => (this.secondsCircleEl = el) },
|
|
397
|
-
this.buildClock(60, 101, 115, 115, 'sec unit', 0, 5, ss),
|
|
398
|
-
h("div", { class: "mid" })));
|
|
399
|
-
time.push(':', h("span", { class: "s", ref: (el) => (this.secondsEl = el), onClick: () => {
|
|
400
|
-
this.setClockViewActive(false, false, true);
|
|
401
|
-
this.switchView(this.secondsEl, this.secondsCircleEl);
|
|
402
|
-
}, innerHTML: ss }));
|
|
403
|
-
}
|
|
404
|
-
return (h("div", { class: "clock", id: this.rootElement.id + '_clock', ref: (el) => (this.pickerEl = el) },
|
|
405
|
-
h("div", { class: "top" }, time),
|
|
406
|
-
h("div", { class: "circle hours", ref: (el) => (this.hoursCircleEl = el) },
|
|
407
|
-
this.buildClock(12, 101, 105, 105, 'hour', 0, 1, hh),
|
|
408
|
-
this.buildClock(12, 64, 110, 110, 'hour2', 12, 1, hh),
|
|
409
|
-
h("div", { class: "mid" })),
|
|
410
|
-
h("div", { class: "circle minutes", ref: (el) => (this.minutesCircleEl = el) },
|
|
411
|
-
this.buildClock(60, 101, 115, 115, 'min unit', 0, 5, mm),
|
|
412
|
-
h("div", { class: "mid" })),
|
|
413
|
-
seconds,
|
|
414
|
-
h("div", { class: "actions" },
|
|
415
|
-
h("kup-button", { "onkup-button-click": (e) => {
|
|
416
|
-
this.setTimeFromClock(e);
|
|
417
|
-
}, id: "confirm", styling: FButtonStyling.FLAT, label: "Ok" }))));
|
|
418
|
-
}
|
|
419
|
-
switchView(el, elCircle) {
|
|
420
|
-
this.hoursEl.classList.remove('active');
|
|
421
|
-
this.hoursCircleEl.classList.remove('active');
|
|
422
|
-
this.minutesEl.classList.remove('active');
|
|
423
|
-
this.minutesCircleEl.classList.remove('active');
|
|
424
|
-
if (this.secondsEl) {
|
|
425
|
-
this.secondsEl.classList.remove('active');
|
|
426
|
-
this.secondsCircleEl.classList.remove('active');
|
|
427
|
-
}
|
|
428
|
-
el.classList.add('active');
|
|
429
|
-
elCircle.classList.add('active');
|
|
430
|
-
}
|
|
431
|
-
setClockViewActive(hoursActive, minutesActive, secondsActive) {
|
|
432
|
-
this.hoursActive = hoursActive;
|
|
433
|
-
this.minutesActive = minutesActive;
|
|
434
|
-
this.secondsActive = secondsActive;
|
|
435
|
-
}
|
|
436
|
-
buildClock(num, radius, offsetX, offsetY, className, add, separator, selectedValue) {
|
|
437
|
-
let x, y;
|
|
438
|
-
let divsArray = [];
|
|
439
|
-
for (var n = 0; n < num; n++) {
|
|
440
|
-
x = radius * Math.cos((n / num) * 2 * Math.PI);
|
|
441
|
-
y = radius * Math.sin((n / num) * 2 * Math.PI);
|
|
442
|
-
let text;
|
|
443
|
-
let dataValue = {};
|
|
444
|
-
let style = {};
|
|
445
|
-
if (separator == 1) {
|
|
446
|
-
if (n + 3 > 12) {
|
|
447
|
-
text = n + 3 - 12 + add + '';
|
|
448
|
-
}
|
|
449
|
-
else {
|
|
450
|
-
let calc = n + 3 + add;
|
|
451
|
-
if (calc !== 24) {
|
|
452
|
-
text = n + 3 + add + '';
|
|
453
|
-
}
|
|
454
|
-
else {
|
|
455
|
-
text = '00';
|
|
456
|
-
}
|
|
457
|
-
}
|
|
458
|
-
dataValue['data-value'] = text;
|
|
459
|
-
}
|
|
460
|
-
else {
|
|
461
|
-
if (n % separator == 0) {
|
|
462
|
-
if (n + 15 >= 60) {
|
|
463
|
-
dataValue['data-value'] = n + 15 - 60 + '';
|
|
464
|
-
text = n + 15 - 60 + add + '';
|
|
465
|
-
}
|
|
466
|
-
else {
|
|
467
|
-
dataValue['data-value'] = n + 15 + '';
|
|
468
|
-
text = n + 15 + add + '';
|
|
469
|
-
}
|
|
470
|
-
}
|
|
471
|
-
else {
|
|
472
|
-
if (n + 15 >= 60) {
|
|
473
|
-
dataValue['data-value'] = n + 15 - 60 + '';
|
|
474
|
-
text = '⋅';
|
|
475
|
-
}
|
|
476
|
-
else {
|
|
477
|
-
dataValue['data-value'] = n + 15 + '';
|
|
478
|
-
text = '\u00B7';
|
|
479
|
-
}
|
|
480
|
-
}
|
|
481
|
-
}
|
|
482
|
-
style['left'] = x + offsetX + 'px';
|
|
483
|
-
style['top'] = y + offsetY + 'px';
|
|
484
|
-
if (dataValue['data-value'].length === 1) {
|
|
485
|
-
dataValue['data-value'] = '0' + dataValue['data-value'];
|
|
486
|
-
}
|
|
487
|
-
let elClass = className;
|
|
488
|
-
if (dataValue['data-value'] === selectedValue) {
|
|
489
|
-
elClass += ' selected';
|
|
490
|
-
}
|
|
491
|
-
let div = (h("div", Object.assign({ class: elClass, style: style }, dataValue, { onClick: (e) => this.setClockTime(e) }), text));
|
|
492
|
-
divsArray.push(div);
|
|
493
|
-
}
|
|
494
|
-
return divsArray;
|
|
495
|
-
}
|
|
496
|
-
setClockTime(e) {
|
|
497
|
-
let time = e.target.getAttribute('data-value');
|
|
498
|
-
if (this.hoursActive) {
|
|
499
|
-
this.hoursEl.innerText = time;
|
|
500
|
-
this.hoursCircleEl
|
|
501
|
-
.querySelector('.selected')
|
|
502
|
-
.classList.remove('selected');
|
|
503
|
-
this.setClockViewActive(false, true, false);
|
|
504
|
-
this.switchView(this.minutesEl, this.minutesCircleEl);
|
|
505
|
-
}
|
|
506
|
-
else if (this.minutesActive) {
|
|
507
|
-
this.minutesEl.innerText = time;
|
|
508
|
-
this.minutesCircleEl
|
|
509
|
-
.querySelector('.selected')
|
|
510
|
-
.classList.remove('selected');
|
|
511
|
-
if (this.manageSeconds) {
|
|
512
|
-
this.setClockViewActive(false, false, true);
|
|
513
|
-
this.switchView(this.secondsEl, this.secondsCircleEl);
|
|
514
|
-
}
|
|
515
|
-
else {
|
|
516
|
-
this.setTimeFromClock(e);
|
|
517
|
-
}
|
|
518
|
-
}
|
|
519
|
-
else {
|
|
520
|
-
this.secondsEl.innerText = time;
|
|
521
|
-
this.secondsCircleEl
|
|
522
|
-
.querySelector('.selected')
|
|
523
|
-
.classList.remove('selected');
|
|
524
|
-
this.setTimeFromClock(e);
|
|
525
|
-
}
|
|
526
|
-
e.target.classList.add('selected');
|
|
527
|
-
}
|
|
528
352
|
prepTimePicker() {
|
|
529
|
-
let widget = undefined;
|
|
530
353
|
if (this.clockVariant) {
|
|
531
|
-
|
|
354
|
+
const data = {
|
|
355
|
+
options: {
|
|
356
|
+
initialValue: this.value,
|
|
357
|
+
manageSeconds: this.manageSeconds,
|
|
358
|
+
hoursActive: this.hoursActive,
|
|
359
|
+
minutesActive: this.minutesActive,
|
|
360
|
+
secondsActive: this.secondsActive,
|
|
361
|
+
},
|
|
362
|
+
};
|
|
363
|
+
return (h("kup-card", { ref: (el) => (this.pickerKupEl = el), data: data, layoutFamily: KupCardFamily.BUILT_IN, layoutNumber: 2, sizeX: "300px", sizeY: "450px", isMenu: true, "onkup-card-click": (ev) => {
|
|
364
|
+
if (ev.detail.value != null && ev.detail.value != '')
|
|
365
|
+
this.onKupTimePickerItemClick(ev, ev.detail.value);
|
|
366
|
+
} }));
|
|
532
367
|
}
|
|
533
368
|
else {
|
|
534
|
-
|
|
369
|
+
return (h("kup-list", { ref: (el) => (this.pickerKupEl = el), data: this.createTimeListData(this.value), "is-menu": true, "onkup-list-click": (e) => this.onKupTimePickerItemClick(e, e.detail.selected.value), id: this.rootElement.id + '_list' }));
|
|
535
370
|
}
|
|
536
|
-
return (h("div", { id: "time-picker-div", ref: (el) => (this.pickerContainerEl = el), onBlur: (e) => {
|
|
537
|
-
if (!this.isRelatedTargetInThisComponent(e)) {
|
|
538
|
-
this.onKupBlur();
|
|
539
|
-
}
|
|
540
|
-
} }, widget));
|
|
541
371
|
}
|
|
542
372
|
createTimeListData(value) {
|
|
543
373
|
let listData = [];
|
|
@@ -585,6 +415,7 @@ export class KupTimePicker {
|
|
|
585
415
|
/* L i f e c y c l e H o o k s */
|
|
586
416
|
/*-------------------------------------------------*/
|
|
587
417
|
componentWillLoad() {
|
|
418
|
+
this.kupManager.dates.register(this);
|
|
588
419
|
this.kupManager.debug.logLoad(this, false);
|
|
589
420
|
this.kupManager.theme.register(this);
|
|
590
421
|
this.watchTimeMinutesStep();
|
|
@@ -607,42 +438,24 @@ export class KupTimePicker {
|
|
|
607
438
|
if (root) {
|
|
608
439
|
const f = root.querySelector('.f-text-field');
|
|
609
440
|
if (f) {
|
|
441
|
+
this.textFieldContainerEl = f;
|
|
610
442
|
this.textfieldEl = f.querySelector('input');
|
|
611
443
|
FTextFieldMDC(f);
|
|
612
444
|
}
|
|
613
445
|
}
|
|
614
|
-
if (this.clockVariant) {
|
|
615
|
-
if (this.hoursActive) {
|
|
616
|
-
this.switchView(this.hoursEl, this.hoursCircleEl);
|
|
617
|
-
}
|
|
618
|
-
else if (this.minutesActive) {
|
|
619
|
-
this.switchView(this.minutesEl, this.minutesCircleEl);
|
|
620
|
-
}
|
|
621
|
-
else if (this.secondsActive) {
|
|
622
|
-
this.switchView(this.secondsEl, this.secondsCircleEl);
|
|
623
|
-
}
|
|
624
|
-
}
|
|
625
446
|
this.kupManager.debug.logRender(this, true);
|
|
626
447
|
}
|
|
627
448
|
render() {
|
|
628
|
-
|
|
629
|
-
if (this.data &&
|
|
630
|
-
this.data['kup-text-field'] &&
|
|
631
|
-
this.data['kup-text-field']['className'] &&
|
|
632
|
-
this.data['kup-text-field']['className'].indexOf('kup-full-height') > -1) {
|
|
633
|
-
hostClass['kup-full-height'] = true;
|
|
634
|
-
}
|
|
635
|
-
if (this.data &&
|
|
636
|
-
this.data['kup-text-field'] &&
|
|
637
|
-
this.data['kup-text-field']['fullWidth']) {
|
|
638
|
-
hostClass['kup-full-width'] = true;
|
|
639
|
-
}
|
|
640
|
-
return (h(Host, { class: hostClass },
|
|
449
|
+
return (h(Host, null,
|
|
641
450
|
h("style", null, this.kupManager.theme.setKupStyle(this.rootElement)),
|
|
642
451
|
h("div", { id: componentWrapperId }, this.prepTextfield(this.getTimeForOutput()))));
|
|
643
452
|
}
|
|
644
453
|
disconnectedCallback() {
|
|
454
|
+
this.kupManager.dates.unregister(this);
|
|
645
455
|
this.kupManager.theme.unregister(this);
|
|
456
|
+
if (this.pickerKupEl) {
|
|
457
|
+
this.pickerKupEl.remove();
|
|
458
|
+
}
|
|
646
459
|
}
|
|
647
460
|
static get is() { return "kup-time-picker"; }
|
|
648
461
|
static get encapsulation() { return "shadow"; }
|
|
@@ -1,8 +1,8 @@
|
|
|
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
|
-
import { kupManagerInstance, } from '../../
|
|
4
|
-
import { kupDynamicPositionAttribute, } from '../../
|
|
5
|
-
import { KupLanguageGeneric } from '../../
|
|
3
|
+
import { kupManagerInstance, } from '../../managers/kup-manager/kup-manager';
|
|
4
|
+
import { kupDynamicPositionAttribute, } from '../../managers/kup-dynamic-position/kup-dynamic-position-declarations';
|
|
5
|
+
import { KupLanguageGeneric } from '../../managers/kup-language/kup-language-declarations';
|
|
6
6
|
import { KupCardFamily } from '../kup-card/kup-card-declarations';
|
|
7
7
|
import { getProps, setProps } from '../../utils/utils';
|
|
8
8
|
import { componentWrapperId } from '../../variables/GenericVariables';
|
|
@@ -37,11 +37,6 @@ export var KupTreeProps;
|
|
|
37
37
|
KupTreeProps["totals"] = "Defines the current totals options.";
|
|
38
38
|
KupTreeProps["useDynamicExpansion"] = "When the component must use the dynamic expansion feature to open its nodes, it means that not all the nodes of the tree have been passed inside the data property. Therefore, when expanding a node, the tree must emit an event (or run a given callback) and wait for the child nodes to be downloaded from the server.";
|
|
39
39
|
})(KupTreeProps || (KupTreeProps = {}));
|
|
40
|
-
/**
|
|
41
|
-
* The name of the property used by the tree component to store whether a TreeNode is open or closed
|
|
42
|
-
* @constant
|
|
43
|
-
*/
|
|
44
|
-
export const treeExpandedPropName = 'isExpanded';
|
|
45
40
|
/**
|
|
46
41
|
* The name of the constant used by the tree component to identify the main tree in column menu
|
|
47
42
|
* @constant
|
|
@@ -9,7 +9,6 @@ var __rest = (this && this.__rest) || function (s, e) {
|
|
|
9
9
|
}
|
|
10
10
|
return t;
|
|
11
11
|
};
|
|
12
|
-
import { treeExpandedPropName, } from './kup-tree-declarations';
|
|
13
12
|
//---- Constants ----
|
|
14
13
|
/**
|
|
15
14
|
* The data pool usable to populate a fake TreeNode
|
|
@@ -81,7 +80,7 @@ export function flattenTree(nodesToFlatten, useIsExpandedFlag = true) {
|
|
|
81
80
|
for (let i = 0; i < nodesToFlatten.length; i++) {
|
|
82
81
|
flattenedNodes.push(nodesToFlatten[i]);
|
|
83
82
|
if (!useIsExpandedFlag ||
|
|
84
|
-
(useIsExpandedFlag && nodesToFlatten[i]
|
|
83
|
+
(useIsExpandedFlag && nodesToFlatten[i].isExpanded)) {
|
|
85
84
|
flattenedNodes = flattenedNodes.concat(flattenTree(nodesToFlatten[i].children));
|
|
86
85
|
}
|
|
87
86
|
}
|
|
@@ -206,7 +205,7 @@ function TreeNodeFactory(columns, depth = {
|
|
|
206
205
|
expandable: !!childrenCount,
|
|
207
206
|
icon: 'account',
|
|
208
207
|
id: depth.path + depthAndIndex + childrenCount.toString(),
|
|
209
|
-
|
|
208
|
+
isExpanded: getBooleanOnProbability(options.isExpandedProbability || 0),
|
|
210
209
|
obj: {
|
|
211
210
|
t: 'TN',
|
|
212
211
|
p: '',
|