@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
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { _ as __spreadArray, a as __read, b as __extends, c as __assign, d as __values } from './tslib.es6-8f2d44b6.js';
|
|
2
2
|
|
|
3
3
|
/**
|
|
4
4
|
* @license
|
|
@@ -103,8 +103,9 @@ var MDCComponent = /** @class */ (function () {
|
|
|
103
103
|
}
|
|
104
104
|
this.root = root;
|
|
105
105
|
this.initialize.apply(this, __spreadArray([], __read(args)));
|
|
106
|
-
// Note that we initialize foundation here and not within the constructor's
|
|
107
|
-
// this.
|
|
106
|
+
// Note that we initialize foundation here and not within the constructor's
|
|
107
|
+
// default param so that this.root is defined and can be used within the
|
|
108
|
+
// foundation class.
|
|
108
109
|
this.foundation =
|
|
109
110
|
foundation === undefined ? this.getDefaultFoundation() : foundation;
|
|
110
111
|
this.foundation.init();
|
|
@@ -255,31 +256,6 @@ function matches(element, selector) {
|
|
|
255
256
|
|| element.msMatchesSelector;
|
|
256
257
|
return nativeMatches.call(element, selector);
|
|
257
258
|
}
|
|
258
|
-
/**
|
|
259
|
-
* Used to compute the estimated scroll width of elements. When an element is
|
|
260
|
-
* hidden due to display: none; being applied to a parent element, the width is
|
|
261
|
-
* returned as 0. However, the element will have a true width once no longer
|
|
262
|
-
* inside a display: none context. This method computes an estimated width when
|
|
263
|
-
* the element is hidden or returns the true width when the element is visble.
|
|
264
|
-
* @param {Element} element the element whose width to estimate
|
|
265
|
-
*/
|
|
266
|
-
function estimateScrollWidth(element) {
|
|
267
|
-
// Check the offsetParent. If the element inherits display: none from any
|
|
268
|
-
// parent, the offsetParent property will be null (see
|
|
269
|
-
// https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement/offsetParent).
|
|
270
|
-
// This check ensures we only clone the node when necessary.
|
|
271
|
-
var htmlEl = element;
|
|
272
|
-
if (htmlEl.offsetParent !== null) {
|
|
273
|
-
return htmlEl.scrollWidth;
|
|
274
|
-
}
|
|
275
|
-
var clone = htmlEl.cloneNode(true);
|
|
276
|
-
clone.style.setProperty('position', 'absolute');
|
|
277
|
-
clone.style.setProperty('transform', 'translate(-9999px, -9999px)');
|
|
278
|
-
document.documentElement.appendChild(clone);
|
|
279
|
-
var scrollWidth = clone.scrollWidth;
|
|
280
|
-
document.documentElement.removeChild(clone);
|
|
281
|
-
return scrollWidth;
|
|
282
|
-
}
|
|
283
259
|
|
|
284
260
|
/**
|
|
285
261
|
* @license
|
|
@@ -416,25 +392,35 @@ var MDCRippleFoundation = /** @class */ (function (_super) {
|
|
|
416
392
|
__extends(MDCRippleFoundation, _super);
|
|
417
393
|
function MDCRippleFoundation(adapter) {
|
|
418
394
|
var _this = _super.call(this, __assign(__assign({}, MDCRippleFoundation.defaultAdapter), adapter)) || this;
|
|
419
|
-
_this.
|
|
420
|
-
_this.
|
|
421
|
-
_this.
|
|
422
|
-
_this.
|
|
423
|
-
_this.
|
|
424
|
-
_this.
|
|
425
|
-
_this.
|
|
426
|
-
_this.
|
|
427
|
-
_this.
|
|
428
|
-
_this.
|
|
429
|
-
_this.
|
|
430
|
-
_this.
|
|
431
|
-
_this.
|
|
395
|
+
_this.activationAnimationHasEnded = false;
|
|
396
|
+
_this.activationTimer = 0;
|
|
397
|
+
_this.fgDeactivationRemovalTimer = 0;
|
|
398
|
+
_this.fgScale = '0';
|
|
399
|
+
_this.frame = { width: 0, height: 0 };
|
|
400
|
+
_this.initialSize = 0;
|
|
401
|
+
_this.layoutFrame = 0;
|
|
402
|
+
_this.maxRadius = 0;
|
|
403
|
+
_this.unboundedCoords = { left: 0, top: 0 };
|
|
404
|
+
_this.activationState = _this.defaultActivationState();
|
|
405
|
+
_this.activationTimerCallback = function () {
|
|
406
|
+
_this.activationAnimationHasEnded = true;
|
|
407
|
+
_this.runDeactivationUXLogicIfReady();
|
|
408
|
+
};
|
|
409
|
+
_this.activateHandler = function (e) {
|
|
410
|
+
_this.activateImpl(e);
|
|
411
|
+
};
|
|
412
|
+
_this.deactivateHandler = function () {
|
|
413
|
+
_this.deactivateImpl();
|
|
414
|
+
};
|
|
415
|
+
_this.focusHandler = function () {
|
|
416
|
+
_this.handleFocus();
|
|
417
|
+
};
|
|
418
|
+
_this.blurHandler = function () {
|
|
419
|
+
_this.handleBlur();
|
|
420
|
+
};
|
|
421
|
+
_this.resizeHandler = function () {
|
|
422
|
+
_this.layout();
|
|
432
423
|
};
|
|
433
|
-
_this.activateHandler_ = function (e) { return _this.activate_(e); };
|
|
434
|
-
_this.deactivateHandler_ = function () { return _this.deactivate_(); };
|
|
435
|
-
_this.focusHandler_ = function () { return _this.handleFocus(); };
|
|
436
|
-
_this.blurHandler_ = function () { return _this.handleBlur(); };
|
|
437
|
-
_this.resizeHandler_ = function () { return _this.layout(); };
|
|
438
424
|
return _this;
|
|
439
425
|
}
|
|
440
426
|
Object.defineProperty(MDCRippleFoundation, "cssClasses", {
|
|
@@ -463,7 +449,9 @@ var MDCRippleFoundation = /** @class */ (function (_super) {
|
|
|
463
449
|
return {
|
|
464
450
|
addClass: function () { return undefined; },
|
|
465
451
|
browserSupportsCssVars: function () { return true; },
|
|
466
|
-
computeBoundingRect: function () {
|
|
452
|
+
computeBoundingRect: function () {
|
|
453
|
+
return ({ top: 0, right: 0, bottom: 0, left: 0, width: 0, height: 0 });
|
|
454
|
+
},
|
|
467
455
|
containsEventTarget: function () { return true; },
|
|
468
456
|
deregisterDocumentInteractionHandler: function () { return undefined; },
|
|
469
457
|
deregisterInteractionHandler: function () { return undefined; },
|
|
@@ -484,8 +472,8 @@ var MDCRippleFoundation = /** @class */ (function (_super) {
|
|
|
484
472
|
});
|
|
485
473
|
MDCRippleFoundation.prototype.init = function () {
|
|
486
474
|
var _this = this;
|
|
487
|
-
var supportsPressRipple = this.
|
|
488
|
-
this.
|
|
475
|
+
var supportsPressRipple = this.supportsPressRipple();
|
|
476
|
+
this.registerRootHandlers(supportsPressRipple);
|
|
489
477
|
if (supportsPressRipple) {
|
|
490
478
|
var _a = MDCRippleFoundation.cssClasses, ROOT_1 = _a.ROOT, UNBOUNDED_1 = _a.UNBOUNDED;
|
|
491
479
|
requestAnimationFrame(function () {
|
|
@@ -493,51 +481,51 @@ var MDCRippleFoundation = /** @class */ (function (_super) {
|
|
|
493
481
|
if (_this.adapter.isUnbounded()) {
|
|
494
482
|
_this.adapter.addClass(UNBOUNDED_1);
|
|
495
483
|
// Unbounded ripples need layout logic applied immediately to set coordinates for both shade and ripple
|
|
496
|
-
_this.
|
|
484
|
+
_this.layoutInternal();
|
|
497
485
|
}
|
|
498
486
|
});
|
|
499
487
|
}
|
|
500
488
|
};
|
|
501
489
|
MDCRippleFoundation.prototype.destroy = function () {
|
|
502
490
|
var _this = this;
|
|
503
|
-
if (this.
|
|
504
|
-
if (this.
|
|
505
|
-
clearTimeout(this.
|
|
506
|
-
this.
|
|
491
|
+
if (this.supportsPressRipple()) {
|
|
492
|
+
if (this.activationTimer) {
|
|
493
|
+
clearTimeout(this.activationTimer);
|
|
494
|
+
this.activationTimer = 0;
|
|
507
495
|
this.adapter.removeClass(MDCRippleFoundation.cssClasses.FG_ACTIVATION);
|
|
508
496
|
}
|
|
509
|
-
if (this.
|
|
510
|
-
clearTimeout(this.
|
|
511
|
-
this.
|
|
497
|
+
if (this.fgDeactivationRemovalTimer) {
|
|
498
|
+
clearTimeout(this.fgDeactivationRemovalTimer);
|
|
499
|
+
this.fgDeactivationRemovalTimer = 0;
|
|
512
500
|
this.adapter.removeClass(MDCRippleFoundation.cssClasses.FG_DEACTIVATION);
|
|
513
501
|
}
|
|
514
502
|
var _a = MDCRippleFoundation.cssClasses, ROOT_2 = _a.ROOT, UNBOUNDED_2 = _a.UNBOUNDED;
|
|
515
503
|
requestAnimationFrame(function () {
|
|
516
504
|
_this.adapter.removeClass(ROOT_2);
|
|
517
505
|
_this.adapter.removeClass(UNBOUNDED_2);
|
|
518
|
-
_this.
|
|
506
|
+
_this.removeCssVars();
|
|
519
507
|
});
|
|
520
508
|
}
|
|
521
|
-
this.
|
|
522
|
-
this.
|
|
509
|
+
this.deregisterRootHandlers();
|
|
510
|
+
this.deregisterDeactivationHandlers();
|
|
523
511
|
};
|
|
524
512
|
/**
|
|
525
513
|
* @param evt Optional event containing position information.
|
|
526
514
|
*/
|
|
527
515
|
MDCRippleFoundation.prototype.activate = function (evt) {
|
|
528
|
-
this.
|
|
516
|
+
this.activateImpl(evt);
|
|
529
517
|
};
|
|
530
518
|
MDCRippleFoundation.prototype.deactivate = function () {
|
|
531
|
-
this.
|
|
519
|
+
this.deactivateImpl();
|
|
532
520
|
};
|
|
533
521
|
MDCRippleFoundation.prototype.layout = function () {
|
|
534
522
|
var _this = this;
|
|
535
|
-
if (this.
|
|
536
|
-
cancelAnimationFrame(this.
|
|
523
|
+
if (this.layoutFrame) {
|
|
524
|
+
cancelAnimationFrame(this.layoutFrame);
|
|
537
525
|
}
|
|
538
|
-
this.
|
|
539
|
-
_this.
|
|
540
|
-
_this.
|
|
526
|
+
this.layoutFrame = requestAnimationFrame(function () {
|
|
527
|
+
_this.layoutInternal();
|
|
528
|
+
_this.layoutFrame = 0;
|
|
541
529
|
});
|
|
542
530
|
};
|
|
543
531
|
MDCRippleFoundation.prototype.setUnbounded = function (unbounded) {
|
|
@@ -563,10 +551,10 @@ var MDCRippleFoundation = /** @class */ (function (_super) {
|
|
|
563
551
|
* client-side feature-detection may happen too early, such as when components are rendered on the server
|
|
564
552
|
* and then initialized at mount time on the client.
|
|
565
553
|
*/
|
|
566
|
-
MDCRippleFoundation.prototype.
|
|
554
|
+
MDCRippleFoundation.prototype.supportsPressRipple = function () {
|
|
567
555
|
return this.adapter.browserSupportsCssVars();
|
|
568
556
|
};
|
|
569
|
-
MDCRippleFoundation.prototype.
|
|
557
|
+
MDCRippleFoundation.prototype.defaultActivationState = function () {
|
|
570
558
|
return {
|
|
571
559
|
activationEvent: undefined,
|
|
572
560
|
hasDeactivationUXRun: false,
|
|
@@ -579,49 +567,89 @@ var MDCRippleFoundation = /** @class */ (function (_super) {
|
|
|
579
567
|
/**
|
|
580
568
|
* supportsPressRipple Passed from init to save a redundant function call
|
|
581
569
|
*/
|
|
582
|
-
MDCRippleFoundation.prototype.
|
|
583
|
-
var
|
|
570
|
+
MDCRippleFoundation.prototype.registerRootHandlers = function (supportsPressRipple) {
|
|
571
|
+
var e_1, _a;
|
|
584
572
|
if (supportsPressRipple) {
|
|
585
|
-
|
|
586
|
-
|
|
587
|
-
|
|
573
|
+
try {
|
|
574
|
+
for (var ACTIVATION_EVENT_TYPES_1 = __values(ACTIVATION_EVENT_TYPES), ACTIVATION_EVENT_TYPES_1_1 = ACTIVATION_EVENT_TYPES_1.next(); !ACTIVATION_EVENT_TYPES_1_1.done; ACTIVATION_EVENT_TYPES_1_1 = ACTIVATION_EVENT_TYPES_1.next()) {
|
|
575
|
+
var evtType = ACTIVATION_EVENT_TYPES_1_1.value;
|
|
576
|
+
this.adapter.registerInteractionHandler(evtType, this.activateHandler);
|
|
577
|
+
}
|
|
578
|
+
}
|
|
579
|
+
catch (e_1_1) { e_1 = { error: e_1_1 }; }
|
|
580
|
+
finally {
|
|
581
|
+
try {
|
|
582
|
+
if (ACTIVATION_EVENT_TYPES_1_1 && !ACTIVATION_EVENT_TYPES_1_1.done && (_a = ACTIVATION_EVENT_TYPES_1.return)) _a.call(ACTIVATION_EVENT_TYPES_1);
|
|
583
|
+
}
|
|
584
|
+
finally { if (e_1) throw e_1.error; }
|
|
585
|
+
}
|
|
588
586
|
if (this.adapter.isUnbounded()) {
|
|
589
|
-
this.adapter.registerResizeHandler(this.
|
|
587
|
+
this.adapter.registerResizeHandler(this.resizeHandler);
|
|
590
588
|
}
|
|
591
589
|
}
|
|
592
|
-
this.adapter.registerInteractionHandler('focus', this.
|
|
593
|
-
this.adapter.registerInteractionHandler('blur', this.
|
|
590
|
+
this.adapter.registerInteractionHandler('focus', this.focusHandler);
|
|
591
|
+
this.adapter.registerInteractionHandler('blur', this.blurHandler);
|
|
594
592
|
};
|
|
595
|
-
MDCRippleFoundation.prototype.
|
|
596
|
-
var
|
|
593
|
+
MDCRippleFoundation.prototype.registerDeactivationHandlers = function (evt) {
|
|
594
|
+
var e_2, _a;
|
|
597
595
|
if (evt.type === 'keydown') {
|
|
598
|
-
this.adapter.registerInteractionHandler('keyup', this.
|
|
596
|
+
this.adapter.registerInteractionHandler('keyup', this.deactivateHandler);
|
|
599
597
|
}
|
|
600
598
|
else {
|
|
601
|
-
|
|
602
|
-
|
|
603
|
-
|
|
599
|
+
try {
|
|
600
|
+
for (var POINTER_DEACTIVATION_EVENT_TYPES_1 = __values(POINTER_DEACTIVATION_EVENT_TYPES), POINTER_DEACTIVATION_EVENT_TYPES_1_1 = POINTER_DEACTIVATION_EVENT_TYPES_1.next(); !POINTER_DEACTIVATION_EVENT_TYPES_1_1.done; POINTER_DEACTIVATION_EVENT_TYPES_1_1 = POINTER_DEACTIVATION_EVENT_TYPES_1.next()) {
|
|
601
|
+
var evtType = POINTER_DEACTIVATION_EVENT_TYPES_1_1.value;
|
|
602
|
+
this.adapter.registerDocumentInteractionHandler(evtType, this.deactivateHandler);
|
|
603
|
+
}
|
|
604
|
+
}
|
|
605
|
+
catch (e_2_1) { e_2 = { error: e_2_1 }; }
|
|
606
|
+
finally {
|
|
607
|
+
try {
|
|
608
|
+
if (POINTER_DEACTIVATION_EVENT_TYPES_1_1 && !POINTER_DEACTIVATION_EVENT_TYPES_1_1.done && (_a = POINTER_DEACTIVATION_EVENT_TYPES_1.return)) _a.call(POINTER_DEACTIVATION_EVENT_TYPES_1);
|
|
609
|
+
}
|
|
610
|
+
finally { if (e_2) throw e_2.error; }
|
|
611
|
+
}
|
|
604
612
|
}
|
|
605
613
|
};
|
|
606
|
-
MDCRippleFoundation.prototype.
|
|
607
|
-
var
|
|
608
|
-
|
|
609
|
-
|
|
610
|
-
|
|
611
|
-
|
|
612
|
-
|
|
614
|
+
MDCRippleFoundation.prototype.deregisterRootHandlers = function () {
|
|
615
|
+
var e_3, _a;
|
|
616
|
+
try {
|
|
617
|
+
for (var ACTIVATION_EVENT_TYPES_2 = __values(ACTIVATION_EVENT_TYPES), ACTIVATION_EVENT_TYPES_2_1 = ACTIVATION_EVENT_TYPES_2.next(); !ACTIVATION_EVENT_TYPES_2_1.done; ACTIVATION_EVENT_TYPES_2_1 = ACTIVATION_EVENT_TYPES_2.next()) {
|
|
618
|
+
var evtType = ACTIVATION_EVENT_TYPES_2_1.value;
|
|
619
|
+
this.adapter.deregisterInteractionHandler(evtType, this.activateHandler);
|
|
620
|
+
}
|
|
621
|
+
}
|
|
622
|
+
catch (e_3_1) { e_3 = { error: e_3_1 }; }
|
|
623
|
+
finally {
|
|
624
|
+
try {
|
|
625
|
+
if (ACTIVATION_EVENT_TYPES_2_1 && !ACTIVATION_EVENT_TYPES_2_1.done && (_a = ACTIVATION_EVENT_TYPES_2.return)) _a.call(ACTIVATION_EVENT_TYPES_2);
|
|
626
|
+
}
|
|
627
|
+
finally { if (e_3) throw e_3.error; }
|
|
628
|
+
}
|
|
629
|
+
this.adapter.deregisterInteractionHandler('focus', this.focusHandler);
|
|
630
|
+
this.adapter.deregisterInteractionHandler('blur', this.blurHandler);
|
|
613
631
|
if (this.adapter.isUnbounded()) {
|
|
614
|
-
this.adapter.deregisterResizeHandler(this.
|
|
632
|
+
this.adapter.deregisterResizeHandler(this.resizeHandler);
|
|
615
633
|
}
|
|
616
634
|
};
|
|
617
|
-
MDCRippleFoundation.prototype.
|
|
618
|
-
var
|
|
619
|
-
this.adapter.deregisterInteractionHandler('keyup', this.
|
|
620
|
-
|
|
621
|
-
|
|
622
|
-
|
|
635
|
+
MDCRippleFoundation.prototype.deregisterDeactivationHandlers = function () {
|
|
636
|
+
var e_4, _a;
|
|
637
|
+
this.adapter.deregisterInteractionHandler('keyup', this.deactivateHandler);
|
|
638
|
+
try {
|
|
639
|
+
for (var POINTER_DEACTIVATION_EVENT_TYPES_2 = __values(POINTER_DEACTIVATION_EVENT_TYPES), POINTER_DEACTIVATION_EVENT_TYPES_2_1 = POINTER_DEACTIVATION_EVENT_TYPES_2.next(); !POINTER_DEACTIVATION_EVENT_TYPES_2_1.done; POINTER_DEACTIVATION_EVENT_TYPES_2_1 = POINTER_DEACTIVATION_EVENT_TYPES_2.next()) {
|
|
640
|
+
var evtType = POINTER_DEACTIVATION_EVENT_TYPES_2_1.value;
|
|
641
|
+
this.adapter.deregisterDocumentInteractionHandler(evtType, this.deactivateHandler);
|
|
642
|
+
}
|
|
643
|
+
}
|
|
644
|
+
catch (e_4_1) { e_4 = { error: e_4_1 }; }
|
|
645
|
+
finally {
|
|
646
|
+
try {
|
|
647
|
+
if (POINTER_DEACTIVATION_EVENT_TYPES_2_1 && !POINTER_DEACTIVATION_EVENT_TYPES_2_1.done && (_a = POINTER_DEACTIVATION_EVENT_TYPES_2.return)) _a.call(POINTER_DEACTIVATION_EVENT_TYPES_2);
|
|
648
|
+
}
|
|
649
|
+
finally { if (e_4) throw e_4.error; }
|
|
650
|
+
}
|
|
623
651
|
};
|
|
624
|
-
MDCRippleFoundation.prototype.
|
|
652
|
+
MDCRippleFoundation.prototype.removeCssVars = function () {
|
|
625
653
|
var _this = this;
|
|
626
654
|
var rippleStrings = MDCRippleFoundation.strings;
|
|
627
655
|
var keys = Object.keys(rippleStrings);
|
|
@@ -631,17 +659,17 @@ var MDCRippleFoundation = /** @class */ (function (_super) {
|
|
|
631
659
|
}
|
|
632
660
|
});
|
|
633
661
|
};
|
|
634
|
-
MDCRippleFoundation.prototype.
|
|
662
|
+
MDCRippleFoundation.prototype.activateImpl = function (evt) {
|
|
635
663
|
var _this = this;
|
|
636
664
|
if (this.adapter.isSurfaceDisabled()) {
|
|
637
665
|
return;
|
|
638
666
|
}
|
|
639
|
-
var activationState = this.
|
|
667
|
+
var activationState = this.activationState;
|
|
640
668
|
if (activationState.isActivated) {
|
|
641
669
|
return;
|
|
642
670
|
}
|
|
643
671
|
// Avoid reacting to follow-on events fired by touch device after an already-processed user interaction
|
|
644
|
-
var previousActivationEvent = this.
|
|
672
|
+
var previousActivationEvent = this.previousActivationEvent;
|
|
645
673
|
var isSameInteraction = previousActivationEvent && evt !== undefined && previousActivationEvent.type !== evt.type;
|
|
646
674
|
if (isSameInteraction) {
|
|
647
675
|
return;
|
|
@@ -655,16 +683,16 @@ var MDCRippleFoundation = /** @class */ (function (_super) {
|
|
|
655
683
|
activatedTargets.some(function (target) { return _this.adapter.containsEventTarget(target); });
|
|
656
684
|
if (hasActivatedChild) {
|
|
657
685
|
// Immediately reset activation state, while preserving logic that prevents touch follow-on events
|
|
658
|
-
this.
|
|
686
|
+
this.resetActivationState();
|
|
659
687
|
return;
|
|
660
688
|
}
|
|
661
689
|
if (evt !== undefined) {
|
|
662
690
|
activatedTargets.push(evt.target);
|
|
663
|
-
this.
|
|
691
|
+
this.registerDeactivationHandlers(evt);
|
|
664
692
|
}
|
|
665
|
-
activationState.wasElementMadeActive = this.
|
|
693
|
+
activationState.wasElementMadeActive = this.checkElementMadeActive(evt);
|
|
666
694
|
if (activationState.wasElementMadeActive) {
|
|
667
|
-
this.
|
|
695
|
+
this.animateActivation();
|
|
668
696
|
}
|
|
669
697
|
requestAnimationFrame(function () {
|
|
670
698
|
// Reset array on next frame after the current event has had a chance to bubble to prevent ancestor ripples
|
|
@@ -678,130 +706,134 @@ var MDCRippleFoundation = /** @class */ (function (_super) {
|
|
|
678
706
|
// - https://bugzilla.mozilla.org/show_bug.cgi?id=1293741
|
|
679
707
|
// We try first outside rAF to support Edge, which does not exhibit this problem, but will crash if a CSS
|
|
680
708
|
// variable is set within a rAF callback for a submit button interaction (#2241).
|
|
681
|
-
activationState.wasElementMadeActive = _this.
|
|
709
|
+
activationState.wasElementMadeActive = _this.checkElementMadeActive(evt);
|
|
682
710
|
if (activationState.wasElementMadeActive) {
|
|
683
|
-
_this.
|
|
711
|
+
_this.animateActivation();
|
|
684
712
|
}
|
|
685
713
|
}
|
|
686
714
|
if (!activationState.wasElementMadeActive) {
|
|
687
715
|
// Reset activation state immediately if element was not made active.
|
|
688
|
-
_this.
|
|
716
|
+
_this.activationState = _this.defaultActivationState();
|
|
689
717
|
}
|
|
690
718
|
});
|
|
691
719
|
};
|
|
692
|
-
MDCRippleFoundation.prototype.
|
|
720
|
+
MDCRippleFoundation.prototype.checkElementMadeActive = function (evt) {
|
|
693
721
|
return (evt !== undefined && evt.type === 'keydown') ?
|
|
694
722
|
this.adapter.isSurfaceActive() :
|
|
695
723
|
true;
|
|
696
724
|
};
|
|
697
|
-
MDCRippleFoundation.prototype.
|
|
725
|
+
MDCRippleFoundation.prototype.animateActivation = function () {
|
|
698
726
|
var _this = this;
|
|
699
727
|
var _a = MDCRippleFoundation.strings, VAR_FG_TRANSLATE_START = _a.VAR_FG_TRANSLATE_START, VAR_FG_TRANSLATE_END = _a.VAR_FG_TRANSLATE_END;
|
|
700
728
|
var _b = MDCRippleFoundation.cssClasses, FG_DEACTIVATION = _b.FG_DEACTIVATION, FG_ACTIVATION = _b.FG_ACTIVATION;
|
|
701
729
|
var DEACTIVATION_TIMEOUT_MS = MDCRippleFoundation.numbers.DEACTIVATION_TIMEOUT_MS;
|
|
702
|
-
this.
|
|
730
|
+
this.layoutInternal();
|
|
703
731
|
var translateStart = '';
|
|
704
732
|
var translateEnd = '';
|
|
705
733
|
if (!this.adapter.isUnbounded()) {
|
|
706
|
-
var _c = this.
|
|
734
|
+
var _c = this.getFgTranslationCoordinates(), startPoint = _c.startPoint, endPoint = _c.endPoint;
|
|
707
735
|
translateStart = startPoint.x + "px, " + startPoint.y + "px";
|
|
708
736
|
translateEnd = endPoint.x + "px, " + endPoint.y + "px";
|
|
709
737
|
}
|
|
710
738
|
this.adapter.updateCssVariable(VAR_FG_TRANSLATE_START, translateStart);
|
|
711
739
|
this.adapter.updateCssVariable(VAR_FG_TRANSLATE_END, translateEnd);
|
|
712
740
|
// Cancel any ongoing activation/deactivation animations
|
|
713
|
-
clearTimeout(this.
|
|
714
|
-
clearTimeout(this.
|
|
715
|
-
this.
|
|
741
|
+
clearTimeout(this.activationTimer);
|
|
742
|
+
clearTimeout(this.fgDeactivationRemovalTimer);
|
|
743
|
+
this.rmBoundedActivationClasses();
|
|
716
744
|
this.adapter.removeClass(FG_DEACTIVATION);
|
|
717
745
|
// Force layout in order to re-trigger the animation.
|
|
718
746
|
this.adapter.computeBoundingRect();
|
|
719
747
|
this.adapter.addClass(FG_ACTIVATION);
|
|
720
|
-
this.
|
|
748
|
+
this.activationTimer = setTimeout(function () {
|
|
749
|
+
_this.activationTimerCallback();
|
|
750
|
+
}, DEACTIVATION_TIMEOUT_MS);
|
|
721
751
|
};
|
|
722
|
-
MDCRippleFoundation.prototype.
|
|
723
|
-
var _a = this.
|
|
752
|
+
MDCRippleFoundation.prototype.getFgTranslationCoordinates = function () {
|
|
753
|
+
var _a = this.activationState, activationEvent = _a.activationEvent, wasActivatedByPointer = _a.wasActivatedByPointer;
|
|
724
754
|
var startPoint;
|
|
725
755
|
if (wasActivatedByPointer) {
|
|
726
756
|
startPoint = getNormalizedEventCoords(activationEvent, this.adapter.getWindowPageOffset(), this.adapter.computeBoundingRect());
|
|
727
757
|
}
|
|
728
758
|
else {
|
|
729
759
|
startPoint = {
|
|
730
|
-
x: this.
|
|
731
|
-
y: this.
|
|
760
|
+
x: this.frame.width / 2,
|
|
761
|
+
y: this.frame.height / 2,
|
|
732
762
|
};
|
|
733
763
|
}
|
|
734
764
|
// Center the element around the start point.
|
|
735
765
|
startPoint = {
|
|
736
|
-
x: startPoint.x - (this.
|
|
737
|
-
y: startPoint.y - (this.
|
|
766
|
+
x: startPoint.x - (this.initialSize / 2),
|
|
767
|
+
y: startPoint.y - (this.initialSize / 2),
|
|
738
768
|
};
|
|
739
769
|
var endPoint = {
|
|
740
|
-
x: (this.
|
|
741
|
-
y: (this.
|
|
770
|
+
x: (this.frame.width / 2) - (this.initialSize / 2),
|
|
771
|
+
y: (this.frame.height / 2) - (this.initialSize / 2),
|
|
742
772
|
};
|
|
743
773
|
return { startPoint: startPoint, endPoint: endPoint };
|
|
744
774
|
};
|
|
745
|
-
MDCRippleFoundation.prototype.
|
|
775
|
+
MDCRippleFoundation.prototype.runDeactivationUXLogicIfReady = function () {
|
|
746
776
|
var _this = this;
|
|
747
777
|
// This method is called both when a pointing device is released, and when the activation animation ends.
|
|
748
778
|
// The deactivation animation should only run after both of those occur.
|
|
749
779
|
var FG_DEACTIVATION = MDCRippleFoundation.cssClasses.FG_DEACTIVATION;
|
|
750
|
-
var _a = this.
|
|
780
|
+
var _a = this.activationState, hasDeactivationUXRun = _a.hasDeactivationUXRun, isActivated = _a.isActivated;
|
|
751
781
|
var activationHasEnded = hasDeactivationUXRun || !isActivated;
|
|
752
|
-
if (activationHasEnded && this.
|
|
753
|
-
this.
|
|
782
|
+
if (activationHasEnded && this.activationAnimationHasEnded) {
|
|
783
|
+
this.rmBoundedActivationClasses();
|
|
754
784
|
this.adapter.addClass(FG_DEACTIVATION);
|
|
755
|
-
this.
|
|
785
|
+
this.fgDeactivationRemovalTimer = setTimeout(function () {
|
|
756
786
|
_this.adapter.removeClass(FG_DEACTIVATION);
|
|
757
787
|
}, numbers.FG_DEACTIVATION_MS);
|
|
758
788
|
}
|
|
759
789
|
};
|
|
760
|
-
MDCRippleFoundation.prototype.
|
|
790
|
+
MDCRippleFoundation.prototype.rmBoundedActivationClasses = function () {
|
|
761
791
|
var FG_ACTIVATION = MDCRippleFoundation.cssClasses.FG_ACTIVATION;
|
|
762
792
|
this.adapter.removeClass(FG_ACTIVATION);
|
|
763
|
-
this.
|
|
793
|
+
this.activationAnimationHasEnded = false;
|
|
764
794
|
this.adapter.computeBoundingRect();
|
|
765
795
|
};
|
|
766
|
-
MDCRippleFoundation.prototype.
|
|
796
|
+
MDCRippleFoundation.prototype.resetActivationState = function () {
|
|
767
797
|
var _this = this;
|
|
768
|
-
this.
|
|
769
|
-
this.
|
|
798
|
+
this.previousActivationEvent = this.activationState.activationEvent;
|
|
799
|
+
this.activationState = this.defaultActivationState();
|
|
770
800
|
// Touch devices may fire additional events for the same interaction within a short time.
|
|
771
801
|
// Store the previous event until it's safe to assume that subsequent events are for new interactions.
|
|
772
|
-
setTimeout(function () { return _this.
|
|
802
|
+
setTimeout(function () { return _this.previousActivationEvent = undefined; }, MDCRippleFoundation.numbers.TAP_DELAY_MS);
|
|
773
803
|
};
|
|
774
|
-
MDCRippleFoundation.prototype.
|
|
804
|
+
MDCRippleFoundation.prototype.deactivateImpl = function () {
|
|
775
805
|
var _this = this;
|
|
776
|
-
var activationState = this.
|
|
806
|
+
var activationState = this.activationState;
|
|
777
807
|
// This can happen in scenarios such as when you have a keyup event that blurs the element.
|
|
778
808
|
if (!activationState.isActivated) {
|
|
779
809
|
return;
|
|
780
810
|
}
|
|
781
811
|
var state = __assign({}, activationState);
|
|
782
812
|
if (activationState.isProgrammatic) {
|
|
783
|
-
requestAnimationFrame(function () {
|
|
784
|
-
|
|
813
|
+
requestAnimationFrame(function () {
|
|
814
|
+
_this.animateDeactivation(state);
|
|
815
|
+
});
|
|
816
|
+
this.resetActivationState();
|
|
785
817
|
}
|
|
786
818
|
else {
|
|
787
|
-
this.
|
|
819
|
+
this.deregisterDeactivationHandlers();
|
|
788
820
|
requestAnimationFrame(function () {
|
|
789
|
-
_this.
|
|
790
|
-
_this.
|
|
791
|
-
_this.
|
|
821
|
+
_this.activationState.hasDeactivationUXRun = true;
|
|
822
|
+
_this.animateDeactivation(state);
|
|
823
|
+
_this.resetActivationState();
|
|
792
824
|
});
|
|
793
825
|
}
|
|
794
826
|
};
|
|
795
|
-
MDCRippleFoundation.prototype.
|
|
827
|
+
MDCRippleFoundation.prototype.animateDeactivation = function (_a) {
|
|
796
828
|
var wasActivatedByPointer = _a.wasActivatedByPointer, wasElementMadeActive = _a.wasElementMadeActive;
|
|
797
829
|
if (wasActivatedByPointer || wasElementMadeActive) {
|
|
798
|
-
this.
|
|
830
|
+
this.runDeactivationUXLogicIfReady();
|
|
799
831
|
}
|
|
800
832
|
};
|
|
801
|
-
MDCRippleFoundation.prototype.
|
|
833
|
+
MDCRippleFoundation.prototype.layoutInternal = function () {
|
|
802
834
|
var _this = this;
|
|
803
|
-
this.
|
|
804
|
-
var maxDim = Math.max(this.
|
|
835
|
+
this.frame = this.adapter.computeBoundingRect();
|
|
836
|
+
var maxDim = Math.max(this.frame.height, this.frame.width);
|
|
805
837
|
// Surface diameter is treated differently for unbounded vs. bounded ripples.
|
|
806
838
|
// Unbounded ripple diameter is calculated smaller since the surface is expected to already be padded appropriately
|
|
807
839
|
// to extend the hitbox, and the ripple is expected to meet the edges of the padded hitbox (which is typically
|
|
@@ -809,33 +841,33 @@ var MDCRippleFoundation = /** @class */ (function (_super) {
|
|
|
809
841
|
// (calculated based on the diagonal plus a constant padding), and are clipped at the surface's border via
|
|
810
842
|
// `overflow: hidden`.
|
|
811
843
|
var getBoundedRadius = function () {
|
|
812
|
-
var hypotenuse = Math.sqrt(Math.pow(_this.
|
|
844
|
+
var hypotenuse = Math.sqrt(Math.pow(_this.frame.width, 2) + Math.pow(_this.frame.height, 2));
|
|
813
845
|
return hypotenuse + MDCRippleFoundation.numbers.PADDING;
|
|
814
846
|
};
|
|
815
|
-
this.
|
|
847
|
+
this.maxRadius = this.adapter.isUnbounded() ? maxDim : getBoundedRadius();
|
|
816
848
|
// Ripple is sized as a fraction of the largest dimension of the surface, then scales up using a CSS scale transform
|
|
817
849
|
var initialSize = Math.floor(maxDim * MDCRippleFoundation.numbers.INITIAL_ORIGIN_SCALE);
|
|
818
850
|
// Unbounded ripple size should always be even number to equally center align.
|
|
819
851
|
if (this.adapter.isUnbounded() && initialSize % 2 !== 0) {
|
|
820
|
-
this.
|
|
852
|
+
this.initialSize = initialSize - 1;
|
|
821
853
|
}
|
|
822
854
|
else {
|
|
823
|
-
this.
|
|
855
|
+
this.initialSize = initialSize;
|
|
824
856
|
}
|
|
825
|
-
this.
|
|
826
|
-
this.
|
|
857
|
+
this.fgScale = "" + this.maxRadius / this.initialSize;
|
|
858
|
+
this.updateLayoutCssVars();
|
|
827
859
|
};
|
|
828
|
-
MDCRippleFoundation.prototype.
|
|
860
|
+
MDCRippleFoundation.prototype.updateLayoutCssVars = function () {
|
|
829
861
|
var _a = MDCRippleFoundation.strings, VAR_FG_SIZE = _a.VAR_FG_SIZE, VAR_LEFT = _a.VAR_LEFT, VAR_TOP = _a.VAR_TOP, VAR_FG_SCALE = _a.VAR_FG_SCALE;
|
|
830
|
-
this.adapter.updateCssVariable(VAR_FG_SIZE, this.
|
|
831
|
-
this.adapter.updateCssVariable(VAR_FG_SCALE, this.
|
|
862
|
+
this.adapter.updateCssVariable(VAR_FG_SIZE, this.initialSize + "px");
|
|
863
|
+
this.adapter.updateCssVariable(VAR_FG_SCALE, this.fgScale);
|
|
832
864
|
if (this.adapter.isUnbounded()) {
|
|
833
|
-
this.
|
|
834
|
-
left: Math.round((this.
|
|
835
|
-
top: Math.round((this.
|
|
865
|
+
this.unboundedCoords = {
|
|
866
|
+
left: Math.round((this.frame.width / 2) - (this.initialSize / 2)),
|
|
867
|
+
top: Math.round((this.frame.height / 2) - (this.initialSize / 2)),
|
|
836
868
|
};
|
|
837
|
-
this.adapter.updateCssVariable(VAR_LEFT, this.
|
|
838
|
-
this.adapter.updateCssVariable(VAR_TOP, this.
|
|
869
|
+
this.adapter.updateCssVariable(VAR_LEFT, this.unboundedCoords.left + "px");
|
|
870
|
+
this.adapter.updateCssVariable(VAR_TOP, this.unboundedCoords.top + "px");
|
|
839
871
|
}
|
|
840
872
|
};
|
|
841
873
|
return MDCRippleFoundation;
|
|
@@ -871,7 +903,9 @@ var MDCRipple = /** @class */ (function (_super) {
|
|
|
871
903
|
return _this;
|
|
872
904
|
}
|
|
873
905
|
MDCRipple.attachTo = function (root, opts) {
|
|
874
|
-
if (opts === void 0) { opts = {
|
|
906
|
+
if (opts === void 0) { opts = {
|
|
907
|
+
isUnbounded: undefined
|
|
908
|
+
}; }
|
|
875
909
|
var ripple = new MDCRipple(root);
|
|
876
910
|
// Only override unbounded behavior if option is explicitly specified
|
|
877
911
|
if (opts.isUnbounded !== undefined) {
|
|
@@ -919,11 +953,11 @@ var MDCRipple = /** @class */ (function (_super) {
|
|
|
919
953
|
};
|
|
920
954
|
Object.defineProperty(MDCRipple.prototype, "unbounded", {
|
|
921
955
|
get: function () {
|
|
922
|
-
return Boolean(this.
|
|
956
|
+
return Boolean(this.isUnbounded);
|
|
923
957
|
},
|
|
924
958
|
set: function (unbounded) {
|
|
925
|
-
this.
|
|
926
|
-
this.
|
|
959
|
+
this.isUnbounded = Boolean(unbounded);
|
|
960
|
+
this.setUnbounded();
|
|
927
961
|
},
|
|
928
962
|
enumerable: false,
|
|
929
963
|
configurable: true
|
|
@@ -942,7 +976,7 @@ var MDCRipple = /** @class */ (function (_super) {
|
|
|
942
976
|
};
|
|
943
977
|
MDCRipple.prototype.initialSyncWithDOM = function () {
|
|
944
978
|
var root = this.root;
|
|
945
|
-
this.
|
|
979
|
+
this.isUnbounded = 'mdcRippleIsUnbounded' in root.dataset;
|
|
946
980
|
};
|
|
947
981
|
/**
|
|
948
982
|
* Closure Compiler throws an access control error when directly accessing a
|
|
@@ -950,10 +984,10 @@ var MDCRipple = /** @class */ (function (_super) {
|
|
|
950
984
|
* By accessing the protected property inside a method, we solve that problem.
|
|
951
985
|
* That's why this function exists.
|
|
952
986
|
*/
|
|
953
|
-
MDCRipple.prototype.
|
|
954
|
-
this.foundation.setUnbounded(Boolean(this.
|
|
987
|
+
MDCRipple.prototype.setUnbounded = function () {
|
|
988
|
+
this.foundation.setUnbounded(Boolean(this.isUnbounded));
|
|
955
989
|
};
|
|
956
990
|
return MDCRipple;
|
|
957
991
|
}(MDCComponent));
|
|
958
992
|
|
|
959
|
-
export {
|
|
993
|
+
export { MDCRipple as M, MDCRippleFoundation as a };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { h } from './index-
|
|
1
|
+
import { h } from './index-78f3699d.js';
|
|
2
2
|
import { F as FButtonStyling } from './f-button-declarations-fd4965d1.js';
|
|
3
|
-
import { F as FImage } from './f-image-
|
|
3
|
+
import { F as FImage } from './f-image-5e5ed7e2.js';
|
|
4
4
|
|
|
5
5
|
/*-------------------------------------------------*/
|
|
6
6
|
/* C o m p o n e n t */
|