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