@sme.up/ketchup 4.3.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-dc0884a3.js → cell-utils-9b1d6563.js} +4 -4
- package/dist/cjs/{component-8fbc31a2.js → component-d1496215.js} +203 -174
- package/dist/cjs/{f-button-2ba74fb5.js → f-button-02a7cde4.js} +2 -2
- package/dist/cjs/{f-cell-fe60a08d.js → f-cell-4d1450a8.js} +38 -28
- package/dist/cjs/f-chip-a50b9f00.js +130 -0
- package/dist/cjs/{f-image-d3bd4e08.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} +4636 -4073
- 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-1a2688ca.js → kup-manager-5877b2ee.js} +3392 -753
- 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/{builtin → built-in}/kup-card-calendar.js +1 -1
- package/dist/collection/components/kup-card/{builtin → built-in}/kup-card-clock.js +32 -32
- 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 +11 -2
- package/dist/collection/components/kup-card/kup-card-declarations.js +14 -14
- package/dist/collection/components/kup-card/kup-card-helper.js +3 -3
- package/dist/collection/components/kup-card/kup-card.css +423 -137
- package/dist/collection/components/kup-card/kup-card.js +62 -11
- 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 -0
- package/dist/collection/components/kup-data-table/kup-data-table.js +345 -158
- package/dist/collection/components/kup-date-picker/kup-date-picker.js +8 -5
- 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 +2 -0
- package/dist/collection/components/kup-text-field/kup-text-field.js +2 -2
- package/dist/collection/components/kup-time-picker/kup-time-picker.js +8 -5
- 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 +29 -19
- 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 -0
- 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-8f512ea9.js → cell-utils-571978d6.js} +4 -4
- package/dist/esm/{component-d2803feb.js → component-c4eb6153.js} +204 -170
- package/dist/esm/{f-button-30dbcaa9.js → f-button-b3011cc2.js} +2 -2
- package/dist/esm/{f-cell-95c186c6.js → f-cell-b88b2731.js} +38 -28
- package/dist/esm/f-chip-a52489ec.js +128 -0
- package/dist/esm/{f-image-3bc8b24f.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} +4420 -3856
- 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-7fc234da.js → kup-manager-1f76a3ef.js} +3388 -753
- 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-a878016f.entry.js → p-088a886c.entry.js} +1 -1
- package/dist/ketchup/p-135cabdc.entry.js +1 -0
- package/dist/ketchup/{p-1c6178e4.entry.js → p-1c1e830f.entry.js} +1 -1
- package/dist/ketchup/{p-62816d0b.entry.js → p-29208220.entry.js} +1 -1
- package/dist/ketchup/{p-ca0ca27f.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-de83f2f6.js → p-5f52e313.js} +1 -1
- package/dist/ketchup/{p-ccda584a.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-65adc15b.entry.js → p-9d49cdb2.entry.js} +1 -1
- package/dist/ketchup/{p-5a4a5fdc.js → p-a0b1d769.js} +1 -1
- package/dist/ketchup/{p-dbb6998b.entry.js → p-a2b6672e.entry.js} +1 -1
- package/dist/ketchup/{p-a378ba56.entry.js → p-a4be630b.entry.js} +1 -1
- package/dist/ketchup/p-c072b270.js +1 -0
- package/dist/ketchup/{p-1baf1205.entry.js → p-c648972c.entry.js} +1 -1
- package/dist/ketchup/{p-af4a6191.entry.js → p-d67d39c0.entry.js} +1 -1
- package/dist/ketchup/p-d6e2f2b0.entry.js +1 -0
- package/dist/ketchup/{p-44375e49.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/{builtin → built-in}/kup-card-calendar.d.ts +0 -0
- package/dist/types/components/kup-card/{builtin → built-in}/kup-card-clock.d.ts +0 -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 +7 -1
- package/dist/types/components/kup-card/kup-card-declarations.d.ts +46 -21
- package/dist/types/components/kup-card/kup-card.d.ts +9 -2
- 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 -104
- 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 +49 -27
- 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-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 +305 -186
- 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-90d95d22.js +0 -141
- package/dist/cjs/utils-0cc466b9.js +0 -1492
- package/dist/collection/components/kup-card/builtin/kup-card-builtin.js +0 -20
- 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-c0e9c0ff.js +0 -139
- package/dist/esm/utils-6c73709d.js +0 -1470
- package/dist/ketchup/p-15321eae.js +0 -1
- package/dist/ketchup/p-5a5f2a53.js +0 -1
- package/dist/ketchup/p-61faaa38.js +0 -8
- package/dist/ketchup/p-7e23ea7c.entry.js +0 -1
- package/dist/ketchup/p-9d02a676.js +0 -134
- package/dist/ketchup/p-a96e6e32.entry.js +0 -1
- package/dist/ketchup/p-ad32821e.entry.js +0 -1
- package/dist/ketchup/p-c18c7bb0.entry.js +0 -27
- package/dist/ketchup/p-d4aa4922.js +0 -1
- package/dist/ketchup/p-ec3a3db9.js +0 -1
- package/dist/ketchup/p-ecccb3a4.entry.js +0 -45
- package/dist/types/components/kup-card/builtin/kup-card-builtin.d.ts +0 -14
- 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
|
@@ -17,7 +17,7 @@
|
|
|
17
17
|
cursor: pointer;
|
|
18
18
|
}
|
|
19
19
|
#kup-component .mdc-text-field .kup-icon.action {
|
|
20
|
-
background-color: var(--kup_colorpicker_thumb_color, var(--kup-icon-color));
|
|
20
|
+
background-color: var(--kup_colorpicker_thumb_color, var(--kup-icon-color)) !important;
|
|
21
21
|
}
|
|
22
22
|
#kup-component .thumb-icon .kup-icon {
|
|
23
23
|
border: 3px solid rgba(var(--kup-text-color-rgb), 0.575);
|
|
@@ -39,270 +39,6 @@
|
|
|
39
39
|
cursor: default;
|
|
40
40
|
}
|
|
41
41
|
|
|
42
|
-
.picker_arrow {
|
|
43
|
-
position: absolute;
|
|
44
|
-
z-index: -1;
|
|
45
|
-
}
|
|
46
|
-
|
|
47
|
-
.picker_wrapper.popup {
|
|
48
|
-
position: absolute;
|
|
49
|
-
z-index: 2;
|
|
50
|
-
margin: 1.5em;
|
|
51
|
-
}
|
|
52
|
-
.picker_wrapper.popup,
|
|
53
|
-
.picker_wrapper.popup .picker_arrow::before,
|
|
54
|
-
.picker_wrapper.popup .picker_arrow::after {
|
|
55
|
-
background: var(--kup-background-color);
|
|
56
|
-
box-shadow: 0 0 10px 1px rgba(0, 0, 0, 0.4);
|
|
57
|
-
}
|
|
58
|
-
.picker_wrapper.popup .picker_arrow {
|
|
59
|
-
width: 3em;
|
|
60
|
-
height: 3em;
|
|
61
|
-
margin: 0;
|
|
62
|
-
}
|
|
63
|
-
.picker_wrapper.popup .picker_arrow::before, .picker_wrapper.popup .picker_arrow::after {
|
|
64
|
-
content: "";
|
|
65
|
-
display: block;
|
|
66
|
-
position: absolute;
|
|
67
|
-
top: 0;
|
|
68
|
-
left: 0;
|
|
69
|
-
z-index: -99;
|
|
70
|
-
}
|
|
71
|
-
.picker_wrapper.popup .picker_arrow::before {
|
|
72
|
-
width: 100%;
|
|
73
|
-
height: 100%;
|
|
74
|
-
transform: skew(45deg);
|
|
75
|
-
transform-origin: 0 100%;
|
|
76
|
-
}
|
|
77
|
-
.picker_wrapper.popup .picker_arrow::after {
|
|
78
|
-
width: 150%;
|
|
79
|
-
height: 150%;
|
|
80
|
-
box-shadow: none;
|
|
81
|
-
}
|
|
82
|
-
|
|
83
|
-
.popup.popup_top {
|
|
84
|
-
bottom: 100%;
|
|
85
|
-
left: 0;
|
|
86
|
-
}
|
|
87
|
-
.popup.popup_top .picker_arrow {
|
|
88
|
-
bottom: 0;
|
|
89
|
-
left: 0;
|
|
90
|
-
transform: rotate(-90deg);
|
|
91
|
-
}
|
|
92
|
-
|
|
93
|
-
.popup.popup_bottom {
|
|
94
|
-
top: 100%;
|
|
95
|
-
left: 0;
|
|
96
|
-
}
|
|
97
|
-
.popup.popup_bottom .picker_arrow {
|
|
98
|
-
top: 0;
|
|
99
|
-
left: 0;
|
|
100
|
-
transform: rotate(90deg) scale(1, -1);
|
|
101
|
-
}
|
|
102
|
-
|
|
103
|
-
.popup.popup_left {
|
|
104
|
-
top: 0;
|
|
105
|
-
right: 100%;
|
|
106
|
-
}
|
|
107
|
-
.popup.popup_left .picker_arrow {
|
|
108
|
-
top: 0;
|
|
109
|
-
right: 0;
|
|
110
|
-
transform: scale(-1, 1);
|
|
111
|
-
}
|
|
112
|
-
|
|
113
|
-
.popup.popup_right {
|
|
114
|
-
top: 0;
|
|
115
|
-
left: 100%;
|
|
116
|
-
}
|
|
117
|
-
.popup.popup_right .picker_arrow {
|
|
118
|
-
top: 0;
|
|
119
|
-
left: 0;
|
|
120
|
-
}
|
|
121
|
-
|
|
122
|
-
.picker_wrapper.no_alpha .picker_alpha {
|
|
123
|
-
display: none;
|
|
124
|
-
}
|
|
125
|
-
|
|
126
|
-
.picker_wrapper.no_editor .picker_editor {
|
|
127
|
-
position: absolute;
|
|
128
|
-
z-index: -1;
|
|
129
|
-
opacity: 0;
|
|
130
|
-
}
|
|
131
|
-
|
|
132
|
-
.picker_wrapper.no_cancel .picker_cancel {
|
|
133
|
-
display: none;
|
|
134
|
-
}
|
|
135
|
-
|
|
136
|
-
.layout_default.picker_wrapper {
|
|
137
|
-
display: flex;
|
|
138
|
-
flex-flow: row wrap;
|
|
139
|
-
justify-content: space-between;
|
|
140
|
-
align-items: stretch;
|
|
141
|
-
font-size: 10px;
|
|
142
|
-
width: 25em;
|
|
143
|
-
padding: 0.5em;
|
|
144
|
-
}
|
|
145
|
-
.layout_default.picker_wrapper input,
|
|
146
|
-
.layout_default.picker_wrapper button {
|
|
147
|
-
font-size: 1em;
|
|
148
|
-
}
|
|
149
|
-
.layout_default.picker_wrapper > * {
|
|
150
|
-
margin: 0.5em;
|
|
151
|
-
}
|
|
152
|
-
.layout_default.picker_wrapper::before {
|
|
153
|
-
content: "";
|
|
154
|
-
display: block;
|
|
155
|
-
width: 100%;
|
|
156
|
-
height: 0;
|
|
157
|
-
order: 1;
|
|
158
|
-
}
|
|
159
|
-
.layout_default .picker_slider,
|
|
160
|
-
.layout_default .picker_selector {
|
|
161
|
-
padding: 1em;
|
|
162
|
-
}
|
|
163
|
-
.layout_default .picker_hue {
|
|
164
|
-
width: 100%;
|
|
165
|
-
}
|
|
166
|
-
.layout_default .picker_sl {
|
|
167
|
-
flex: 1 1 auto;
|
|
168
|
-
}
|
|
169
|
-
.layout_default .picker_sl::before {
|
|
170
|
-
content: "";
|
|
171
|
-
display: block;
|
|
172
|
-
padding-bottom: 100%;
|
|
173
|
-
}
|
|
174
|
-
.layout_default .picker_editor {
|
|
175
|
-
order: 1;
|
|
176
|
-
width: 6.5em;
|
|
177
|
-
}
|
|
178
|
-
.layout_default .picker_editor input {
|
|
179
|
-
width: 100%;
|
|
180
|
-
height: 100%;
|
|
181
|
-
}
|
|
182
|
-
.layout_default .picker_sample {
|
|
183
|
-
order: 1;
|
|
184
|
-
flex: 1 1 auto;
|
|
185
|
-
}
|
|
186
|
-
.layout_default .picker_done,
|
|
187
|
-
.layout_default .picker_cancel {
|
|
188
|
-
order: 1;
|
|
189
|
-
}
|
|
190
|
-
|
|
191
|
-
.picker_wrapper {
|
|
192
|
-
box-sizing: border-box;
|
|
193
|
-
background: var(--kup-background-color);
|
|
194
|
-
box-shadow: 0 0 0 1px var(--kup-border-color);
|
|
195
|
-
cursor: default;
|
|
196
|
-
font-family: sans-serif;
|
|
197
|
-
color: #444;
|
|
198
|
-
pointer-events: auto;
|
|
199
|
-
}
|
|
200
|
-
.picker_wrapper:focus {
|
|
201
|
-
outline: none;
|
|
202
|
-
}
|
|
203
|
-
.picker_wrapper button,
|
|
204
|
-
.picker_wrapper input {
|
|
205
|
-
box-sizing: border-box;
|
|
206
|
-
border: none;
|
|
207
|
-
box-shadow: 0 0 0 1px var(--kup-border-color);
|
|
208
|
-
outline: none;
|
|
209
|
-
}
|
|
210
|
-
.picker_wrapper button:focus, .picker_wrapper button:active,
|
|
211
|
-
.picker_wrapper input:focus,
|
|
212
|
-
.picker_wrapper input:active {
|
|
213
|
-
box-shadow: 0 0 2px 1px var(--kup-border-color);
|
|
214
|
-
}
|
|
215
|
-
.picker_wrapper button {
|
|
216
|
-
padding: 0.4em 0.6em;
|
|
217
|
-
cursor: pointer;
|
|
218
|
-
background-color: whitesmoke;
|
|
219
|
-
background-image: linear-gradient(0deg, gainsboro, transparent);
|
|
220
|
-
}
|
|
221
|
-
.picker_wrapper button:active {
|
|
222
|
-
background-image: linear-gradient(0deg, transparent, gainsboro);
|
|
223
|
-
}
|
|
224
|
-
|
|
225
|
-
.picker_selector {
|
|
226
|
-
position: absolute;
|
|
227
|
-
z-index: 1;
|
|
228
|
-
display: block;
|
|
229
|
-
transform: translate(-50%, -50%);
|
|
230
|
-
border: 2px solid white;
|
|
231
|
-
border-radius: 100%;
|
|
232
|
-
box-shadow: 0 0 3px 1px #67b9ff;
|
|
233
|
-
background: currentColor;
|
|
234
|
-
cursor: pointer;
|
|
235
|
-
}
|
|
236
|
-
|
|
237
|
-
.picker_slider .picker_selector {
|
|
238
|
-
border-radius: 2px;
|
|
239
|
-
}
|
|
240
|
-
|
|
241
|
-
.picker_hue {
|
|
242
|
-
position: relative;
|
|
243
|
-
background-image: linear-gradient(90deg, red, yellow, lime, cyan, blue, magenta, red);
|
|
244
|
-
box-shadow: 0 0 0 1px var(--kup-border-color);
|
|
245
|
-
}
|
|
246
|
-
|
|
247
|
-
.picker_sl {
|
|
248
|
-
position: relative;
|
|
249
|
-
box-shadow: 0 0 0 1px var(--kup-border-color);
|
|
250
|
-
background-image: linear-gradient(180deg, white, rgba(255, 255, 255, 0) 50%), linear-gradient(0deg, black, rgba(0, 0, 0, 0) 50%), linear-gradient(90deg, #808080, rgba(128, 128, 128, 0));
|
|
251
|
-
}
|
|
252
|
-
|
|
253
|
-
.picker_alpha,
|
|
254
|
-
.picker_sample {
|
|
255
|
-
position: relative;
|
|
256
|
-
background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='2' height='2'%3E%3Cpath d='M1,0H0V1H2V2H1' fill='lightgrey'/%3E%3C/svg%3E") left top/contain white;
|
|
257
|
-
box-shadow: 0 0 0 1px var(--kup-border-color);
|
|
258
|
-
}
|
|
259
|
-
.picker_alpha .picker_selector,
|
|
260
|
-
.picker_sample .picker_selector {
|
|
261
|
-
background: none;
|
|
262
|
-
}
|
|
263
|
-
|
|
264
|
-
.picker_editor input {
|
|
265
|
-
font-family: monospace;
|
|
266
|
-
padding: 0.2em 0.4em;
|
|
267
|
-
}
|
|
268
|
-
|
|
269
|
-
.picker_sample::before {
|
|
270
|
-
content: "";
|
|
271
|
-
position: absolute;
|
|
272
|
-
display: block;
|
|
273
|
-
width: 100%;
|
|
274
|
-
height: 100%;
|
|
275
|
-
background: currentColor;
|
|
276
|
-
}
|
|
277
|
-
|
|
278
|
-
.picker_done,
|
|
279
|
-
.picker_arrow {
|
|
280
|
-
display: none;
|
|
281
|
-
}
|
|
282
|
-
|
|
283
|
-
.layout_default.picker_wrapper {
|
|
284
|
-
bottom: unset;
|
|
285
|
-
font-size: var(--kup-font-size);
|
|
286
|
-
left: unset;
|
|
287
|
-
padding: 0.25em;
|
|
288
|
-
right: unset;
|
|
289
|
-
top: unset;
|
|
290
|
-
width: var(--kup_colorpicker_picker_width, 25em);
|
|
291
|
-
}
|
|
292
|
-
|
|
293
|
-
.layout_default .picker_editor input {
|
|
294
|
-
background: none;
|
|
295
|
-
color: var(--kup-text-color);
|
|
296
|
-
font-family: var(--kup-font-family);
|
|
297
|
-
font-size: var(--kup-font-size);
|
|
298
|
-
}
|
|
299
|
-
|
|
300
|
-
.picker_wrapper.popup {
|
|
301
|
-
box-shadow: var(--kup-box-shadow);
|
|
302
|
-
margin: 0;
|
|
303
|
-
outline: none;
|
|
304
|
-
}
|
|
305
|
-
|
|
306
42
|
/*-------------------------------------------------*/
|
|
307
43
|
/* C o m p o n e n t C l a s s e s */
|
|
308
44
|
/*-------------------------------------------------*/
|
|
@@ -1,12 +1,13 @@
|
|
|
1
1
|
import { Component, Element, Event, forceUpdate, h, Host, Method, Prop, State, } from '@stencil/core';
|
|
2
|
-
import
|
|
3
|
-
import { kupManagerInstance, } from '../../utils/kup-manager/kup-manager';
|
|
2
|
+
import { kupManagerInstance, } from '../../managers/kup-manager/kup-manager';
|
|
4
3
|
import { KupColorPickerProps, } from './kup-color-picker-declarations';
|
|
5
|
-
import { KupLanguageGeneric } from '../../
|
|
4
|
+
import { KupLanguageGeneric } from '../../managers/kup-language/kup-language-declarations';
|
|
6
5
|
import { getProps, setProps } from '../../utils/utils';
|
|
7
6
|
import { componentWrapperId } from '../../variables/GenericVariables';
|
|
8
7
|
import { FTextField } from '../../f-components/f-text-field/f-text-field';
|
|
9
8
|
import { FTextFieldMDC } from '../../f-components/f-text-field/f-text-field-mdc';
|
|
9
|
+
import { KupCardFamily, } from '../kup-card/kup-card-declarations';
|
|
10
|
+
import { KupDynamicPositionPlacement } from '../../managers/kup-dynamic-position/kup-dynamic-position-declarations';
|
|
10
11
|
export class KupColorPicker {
|
|
11
12
|
constructor() {
|
|
12
13
|
/*-------------------------------------------------*/
|
|
@@ -92,6 +93,9 @@ export class KupColorPicker {
|
|
|
92
93
|
*/
|
|
93
94
|
async setValue(value) {
|
|
94
95
|
this.value = value;
|
|
96
|
+
if (this.picker && !this.isPickerOpened()) {
|
|
97
|
+
this.picker.setColor(value, true);
|
|
98
|
+
}
|
|
95
99
|
}
|
|
96
100
|
/**
|
|
97
101
|
* This method is used to trigger a new render of the component.
|
|
@@ -107,14 +111,72 @@ export class KupColorPicker {
|
|
|
107
111
|
if (this.value.indexOf('#') < 0) {
|
|
108
112
|
this.value = this.kupManager.theme.colorCheck(this.value).hexColor;
|
|
109
113
|
}
|
|
110
|
-
if (this.picker &&
|
|
111
|
-
this.value &&
|
|
112
|
-
this.value.indexOf('#') > -1 &&
|
|
113
|
-
this.value.length === 7) {
|
|
114
|
-
this.picker.setColour(this.value, true);
|
|
115
|
-
}
|
|
116
114
|
}
|
|
117
115
|
}
|
|
116
|
+
createCard() {
|
|
117
|
+
const card = document.createElement('kup-card');
|
|
118
|
+
const cardData = {
|
|
119
|
+
options: {
|
|
120
|
+
initialValue: this.value,
|
|
121
|
+
changeCb: (color) => {
|
|
122
|
+
this.setValue(color.hex.substring(0, 7));
|
|
123
|
+
this.kupChange.emit({
|
|
124
|
+
comp: this,
|
|
125
|
+
id: this.rootElement.id,
|
|
126
|
+
value: this.value,
|
|
127
|
+
});
|
|
128
|
+
},
|
|
129
|
+
creationCb: (picker) => {
|
|
130
|
+
this.picker = picker;
|
|
131
|
+
},
|
|
132
|
+
},
|
|
133
|
+
};
|
|
134
|
+
card.data = cardData;
|
|
135
|
+
card.isMenu = true;
|
|
136
|
+
card.layoutFamily = KupCardFamily.BUILT_IN;
|
|
137
|
+
card.layoutNumber = 4;
|
|
138
|
+
return card;
|
|
139
|
+
}
|
|
140
|
+
openPicker() {
|
|
141
|
+
if (!this.card) {
|
|
142
|
+
this.card = this.createCard();
|
|
143
|
+
}
|
|
144
|
+
const textfieldEl = this.textfieldEl;
|
|
145
|
+
this.card.menuVisible = true;
|
|
146
|
+
this.card.sizeX = this.textfieldEl.parentElement.clientWidth + 'px';
|
|
147
|
+
this.card.sizeY = 'auto';
|
|
148
|
+
if (textfieldEl != null) {
|
|
149
|
+
textfieldEl.classList.add('toggled');
|
|
150
|
+
}
|
|
151
|
+
if (this.kupManager.dynamicPosition.isRegistered(this.card)) {
|
|
152
|
+
this.kupManager.dynamicPosition.changeAnchor(this.card, this.textfieldEl.parentElement);
|
|
153
|
+
}
|
|
154
|
+
else {
|
|
155
|
+
this.kupManager.dynamicPosition.register(this.card, this.textfieldEl.parentElement, 0, KupDynamicPositionPlacement.AUTO, true);
|
|
156
|
+
}
|
|
157
|
+
this.kupManager.dynamicPosition.start(this.card);
|
|
158
|
+
if (!this.clickCb) {
|
|
159
|
+
this.clickCb = {
|
|
160
|
+
cb: () => {
|
|
161
|
+
this.closePicker();
|
|
162
|
+
},
|
|
163
|
+
el: this.card,
|
|
164
|
+
};
|
|
165
|
+
}
|
|
166
|
+
this.kupManager.addClickCallback(this.clickCb, true);
|
|
167
|
+
}
|
|
168
|
+
closePicker() {
|
|
169
|
+
this.kupManager.removeClickCallback(this.clickCb);
|
|
170
|
+
const textfieldEl = this.textfieldEl;
|
|
171
|
+
if (textfieldEl) {
|
|
172
|
+
textfieldEl.classList.remove('toggled');
|
|
173
|
+
}
|
|
174
|
+
this.card.menuVisible = false;
|
|
175
|
+
this.kupManager.dynamicPosition.stop(this.card);
|
|
176
|
+
}
|
|
177
|
+
isPickerOpened() {
|
|
178
|
+
return this.card && this.card.menuVisible ? true : false;
|
|
179
|
+
}
|
|
118
180
|
prepTextField() {
|
|
119
181
|
let value = null;
|
|
120
182
|
let textfieldProps = Object.assign({}, this.data['kup-text-field']);
|
|
@@ -143,7 +205,21 @@ export class KupColorPicker {
|
|
|
143
205
|
? true
|
|
144
206
|
: false, fullWidth: this.rootElement.classList.contains('kup-full-width')
|
|
145
207
|
? true
|
|
146
|
-
: false, readOnly: true, value: value, wrapperClass: textfieldProps.icon === 'brightness-1' ? 'thumb-icon' : ''
|
|
208
|
+
: false, readOnly: true, value: value, wrapperClass: textfieldProps.icon === 'brightness-1' ? 'thumb-icon' : '', onClick: () => {
|
|
209
|
+
if (this.isPickerOpened()) {
|
|
210
|
+
this.closePicker();
|
|
211
|
+
}
|
|
212
|
+
else {
|
|
213
|
+
this.openPicker();
|
|
214
|
+
}
|
|
215
|
+
}, onIconClick: () => {
|
|
216
|
+
if (this.isPickerOpened()) {
|
|
217
|
+
this.closePicker();
|
|
218
|
+
}
|
|
219
|
+
else {
|
|
220
|
+
this.openPicker();
|
|
221
|
+
}
|
|
222
|
+
} })));
|
|
147
223
|
}
|
|
148
224
|
/*-------------------------------------------------*/
|
|
149
225
|
/* L i f e c y c l e H o o k s */
|
|
@@ -161,41 +237,6 @@ export class KupColorPicker {
|
|
|
161
237
|
}
|
|
162
238
|
}
|
|
163
239
|
componentDidLoad() {
|
|
164
|
-
const root = this.rootElement.shadowRoot;
|
|
165
|
-
if (root) {
|
|
166
|
-
const that = this;
|
|
167
|
-
this.picker = new Picker({
|
|
168
|
-
alpha: false,
|
|
169
|
-
color: this.value,
|
|
170
|
-
parent: this.anchorEl,
|
|
171
|
-
});
|
|
172
|
-
this.picker['onClose'] = function (color) {
|
|
173
|
-
that.setValue(color.hex.substr(0, 7));
|
|
174
|
-
that.kupChange.emit({
|
|
175
|
-
comp: that,
|
|
176
|
-
id: that.rootElement.id,
|
|
177
|
-
value: that.value,
|
|
178
|
-
});
|
|
179
|
-
};
|
|
180
|
-
this.picker['onOpen'] = function () {
|
|
181
|
-
if (that.disabled) {
|
|
182
|
-
that.picker.closeHandler(null);
|
|
183
|
-
}
|
|
184
|
-
else {
|
|
185
|
-
that.rootElement.style.setProperty('--kup_colorpicker_picker_width', that.textfieldEl.clientWidth + 'px');
|
|
186
|
-
if (!that.clickCb) {
|
|
187
|
-
that.clickCb = {
|
|
188
|
-
cb: () => {
|
|
189
|
-
that.picker.closeHandler(null);
|
|
190
|
-
that.kupManager.removeClickCallback(that.clickCb);
|
|
191
|
-
},
|
|
192
|
-
el: that.picker['domElement'],
|
|
193
|
-
};
|
|
194
|
-
}
|
|
195
|
-
that.kupManager.addClickCallback(this.clickCb, true);
|
|
196
|
-
}
|
|
197
|
-
};
|
|
198
|
-
}
|
|
199
240
|
this.kupManager.debug.logLoad(this, true);
|
|
200
241
|
}
|
|
201
242
|
componentWillUpdate() {
|
|
@@ -217,9 +258,9 @@ export class KupColorPicker {
|
|
|
217
258
|
render() {
|
|
218
259
|
let widget = null;
|
|
219
260
|
if (this.swatchOnly) {
|
|
220
|
-
widget = (h("button", {
|
|
261
|
+
widget = (h("button", { disabled: this.disabled, class: "color-picker", onClick: () => this.openPicker(), style: {
|
|
221
262
|
backgroundColor: this.value,
|
|
222
|
-
} }));
|
|
263
|
+
}, type: "button" }));
|
|
223
264
|
}
|
|
224
265
|
else {
|
|
225
266
|
widget = this.prepTextField();
|
|
@@ -229,9 +270,13 @@ export class KupColorPicker {
|
|
|
229
270
|
};
|
|
230
271
|
return (h(Host, { style: style },
|
|
231
272
|
h("style", null, this.kupManager.theme.setKupStyle(this.rootElement)),
|
|
232
|
-
h("div", { id: componentWrapperId
|
|
273
|
+
h("div", { id: componentWrapperId }, widget)));
|
|
233
274
|
}
|
|
234
275
|
disconnectedCallback() {
|
|
276
|
+
if (this.card) {
|
|
277
|
+
this.kupManager.dynamicPosition.unregister([this.card]);
|
|
278
|
+
this.card.remove();
|
|
279
|
+
}
|
|
235
280
|
this.kupManager.language.unregister(this);
|
|
236
281
|
this.kupManager.theme.unregister(this);
|
|
237
282
|
}
|