@aurelia-mdc-web/all 9.3.3-au2 → 9.3.5-au2
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/dist/alert/alert-configuration.js +5 -9
- package/dist/alert/alert-configuration.js.map +1 -1
- package/dist/alert/alert-modal/alert-modal.js +8 -11
- package/dist/alert/alert-modal/alert-modal.js.map +1 -1
- package/dist/alert/alert-modal/alert-modal.scss +10 -0
- package/dist/alert/alert-modal/i-alert-modal-payload.js +8 -7
- package/dist/alert/alert-modal/i-alert-modal-payload.js.map +1 -1
- package/dist/alert/alert-service.js +52 -37
- package/dist/alert/alert-service.js.map +1 -1
- package/dist/alert/decorators/confirm-action.js +1 -4
- package/dist/alert/decorators/confirm-action.js.map +1 -1
- package/dist/alert/decorators/using-progress.js +1 -4
- package/dist/alert/decorators/using-progress.js.map +1 -1
- package/dist/alert/exceptions-tracker.js +1 -5
- package/dist/alert/exceptions-tracker.js.map +1 -1
- package/dist/alert/global-progress/global-progress.js +24 -27
- package/dist/alert/global-progress/global-progress.js.map +1 -1
- package/dist/alert/global-progress/global-progress.scss +38 -0
- package/dist/alert/prompt-dialog/prompt-dialog.js +9 -12
- package/dist/alert/prompt-dialog/prompt-dialog.js.map +1 -1
- package/dist/banner/mdc-banner.js +42 -45
- package/dist/banner/mdc-banner.js.map +1 -1
- package/dist/base/attributes/mdc-focus-trap.js +22 -25
- package/dist/base/attributes/mdc-focus-trap.js.map +1 -1
- package/dist/base/elements/i-validated-element.js +1 -2
- package/dist/base/elements/mdc-promisify-reference.js +13 -16
- package/dist/base/elements/mdc-promisify-reference.js.map +1 -1
- package/dist/base/index.js +9 -21
- package/dist/base/index.js.map +1 -1
- package/dist/base/interceptors.js +5 -12
- package/dist/base/interceptors.js.map +1 -1
- package/dist/base/material-palette.js +1 -4
- package/dist/base/material-palette.js.map +1 -1
- package/dist/base/mdc-component.js +1 -5
- package/dist/base/mdc-component.js.map +1 -1
- package/dist/base/next-element.js +1 -4
- package/dist/base/next-element.js.map +1 -1
- package/dist/button/enhance-mdc-button.js +6 -9
- package/dist/button/enhance-mdc-button.js.map +1 -1
- package/dist/button/mdc-button-label.js +6 -9
- package/dist/button/mdc-button-label.js.map +1 -1
- package/dist/button/mdc-button.js +27 -30
- package/dist/button/mdc-button.js.map +1 -1
- package/dist/card/mdc-card-action-buttons.js +6 -9
- package/dist/card/mdc-card-action-buttons.js.map +1 -1
- package/dist/card/mdc-card-action-icons.js +6 -9
- package/dist/card/mdc-card-action-icons.js.map +1 -1
- package/dist/card/mdc-card-actions/mdc-card-actions.js +12 -15
- package/dist/card/mdc-card-actions/mdc-card-actions.js.map +1 -1
- package/dist/card/mdc-card-media/mdc-card-media.js +15 -18
- package/dist/card/mdc-card-media/mdc-card-media.js.map +1 -1
- package/dist/card/mdc-card-primary-action.js +12 -15
- package/dist/card/mdc-card-primary-action.js.map +1 -1
- package/dist/card/mdc-card.js +12 -15
- package/dist/card/mdc-card.js.map +1 -1
- package/dist/checkbox/mdc-checkbox.js +35 -38
- package/dist/checkbox/mdc-checkbox.js.map +1 -1
- package/dist/chips/mdc-chip/mdc-chip.js +34 -37
- package/dist/chips/mdc-chip/mdc-chip.js.map +1 -1
- package/dist/chips/mdc-chip-action/enhance-mdc-chip-action.js +6 -9
- package/dist/chips/mdc-chip-action/enhance-mdc-chip-action.js.map +1 -1
- package/dist/chips/mdc-chip-action/mdc-chip-action.js +37 -40
- package/dist/chips/mdc-chip-action/mdc-chip-action.js.map +1 -1
- package/dist/chips/mdc-chip-set/mdc-chip-set.js +24 -27
- package/dist/chips/mdc-chip-set/mdc-chip-set.js.map +1 -1
- package/dist/chips/styles/_index.scss +1 -0
- package/dist/chips/styles/mdc-chips.import.scss +1 -0
- package/dist/chips/styles/mdc-chips.scss +11 -0
- package/dist/circular-progress/mdc-circular-progress.js +22 -25
- package/dist/circular-progress/mdc-circular-progress.js.map +1 -1
- package/dist/circular-progress/styles/_index.scss +1 -0
- package/dist/circular-progress/styles/mdc-circular-progress.import.scss +1 -0
- package/dist/circular-progress/styles/mdc-circular-progress.scss +14 -0
- package/dist/data-table/mdc-data-table-row.js +10 -13
- package/dist/data-table/mdc-data-table-row.js.map +1 -1
- package/dist/data-table/mdc-data-table.js +88 -91
- package/dist/data-table/mdc-data-table.js.map +1 -1
- package/dist/data-table/styles/_index.scss +1 -0
- package/dist/data-table/styles/mdc-data-table.import.scss +1 -0
- package/dist/data-table/styles/mdc-data-table.scss +64 -0
- package/dist/dialog/mdc-dialog-actions.js +10 -13
- package/dist/dialog/mdc-dialog-actions.js.map +1 -1
- package/dist/dialog/mdc-dialog-content.js +6 -9
- package/dist/dialog/mdc-dialog-content.js.map +1 -1
- package/dist/dialog/mdc-dialog-service.js +13 -17
- package/dist/dialog/mdc-dialog-service.js.map +1 -1
- package/dist/dialog/mdc-dialog-title.js +6 -9
- package/dist/dialog/mdc-dialog-title.js.map +1 -1
- package/dist/dialog/mdc-dialog.js +46 -49
- package/dist/dialog/mdc-dialog.js.map +1 -1
- package/dist/drawer/mdc-drawer-app-content.js +6 -9
- package/dist/drawer/mdc-drawer-app-content.js.map +1 -1
- package/dist/drawer/mdc-drawer-content.js +6 -9
- package/dist/drawer/mdc-drawer-content.js.map +1 -1
- package/dist/drawer/mdc-drawer-header/mdc-drawer-header.js +14 -17
- package/dist/drawer/mdc-drawer-header/mdc-drawer-header.js.map +1 -1
- package/dist/drawer/mdc-drawer.js +21 -24
- package/dist/drawer/mdc-drawer.js.map +1 -1
- package/dist/drawer/styles/_index.scss +1 -0
- package/dist/drawer/styles/mdc-drawer.import.scss +1 -0
- package/dist/drawer/styles/mdc-drawer.scss +0 -0
- package/dist/elevation/mdc-elevation.js +6 -9
- package/dist/elevation/mdc-elevation.js.map +1 -1
- package/dist/expandable/mdc-expandable.js +17 -20
- package/dist/expandable/mdc-expandable.js.map +1 -1
- package/dist/expandable/styles/_icon-variables.scss +3 -0
- package/dist/expandable/styles/_index.scss +1 -0
- package/dist/expandable/styles/_mixins.scss +287 -0
- package/dist/expandable/styles/_variables.scss +17 -0
- package/dist/expandable/styles/mdc-expandable.import.scss +1 -0
- package/dist/expandable/styles/mdc-expandable.scss +3 -0
- package/dist/fab/enhance-mdc-fab.js +6 -9
- package/dist/fab/enhance-mdc-fab.js.map +1 -1
- package/dist/fab/mdc-fab-icon.js +6 -9
- package/dist/fab/mdc-fab-icon.js.map +1 -1
- package/dist/fab/mdc-fab.js +30 -33
- package/dist/fab/mdc-fab.js.map +1 -1
- package/dist/floating-label/mdc-floating-label.js +13 -16
- package/dist/floating-label/mdc-floating-label.js.map +1 -1
- package/dist/form-field/mdc-form-field.js +24 -27
- package/dist/form-field/mdc-form-field.js.map +1 -1
- package/dist/icon/mdc-icon.js +7 -10
- package/dist/icon/mdc-icon.js.map +1 -1
- package/dist/icon-button/enhance-mdc-icon-button.js +6 -9
- package/dist/icon-button/enhance-mdc-icon-button.js.map +1 -1
- package/dist/icon-button/mdc-icon-button-icon/mdc-icon-button-icon.js +15 -18
- package/dist/icon-button/mdc-icon-button-icon/mdc-icon-button-icon.js.map +1 -1
- package/dist/icon-button/mdc-icon-button.js +25 -28
- package/dist/icon-button/mdc-icon-button.js.map +1 -1
- package/dist/image-list/mdc-image-list-item/mdc-image-list-item.js +19 -22
- package/dist/image-list/mdc-image-list-item/mdc-image-list-item.js.map +1 -1
- package/dist/image-list/mdc-image-list.js +18 -21
- package/dist/image-list/mdc-image-list.js.map +1 -1
- package/dist/image-list/styles/_index.scss +1 -0
- package/dist/image-list/styles/mdc-image-list.import.scss +1 -0
- package/dist/image-list/styles/mdc-image-list.scss +7 -0
- package/dist/index.js +151 -297
- package/dist/index.js.map +1 -1
- package/dist/layout-grid/mdc-layout-grid-cell/mdc-layout-grid-cell.js +33 -36
- package/dist/layout-grid/mdc-layout-grid-cell/mdc-layout-grid-cell.js.map +1 -1
- package/dist/layout-grid/mdc-layout-grid-inner.js +6 -9
- package/dist/layout-grid/mdc-layout-grid-inner.js.map +1 -1
- package/dist/layout-grid/mdc-layout-grid.js +30 -33
- package/dist/layout-grid/mdc-layout-grid.js.map +1 -1
- package/dist/layout-grid/styles/_index.scss +1 -0
- package/dist/layout-grid/styles/mdc-layout-grid.import.scss +1 -0
- package/dist/layout-grid/styles/mdc-layout-grid.scss +11 -0
- package/dist/line-ripple/mdc-line-ripple.js +10 -13
- package/dist/line-ripple/mdc-line-ripple.js.map +1 -1
- package/dist/linear-progress/mdc-linear-progress.js +23 -26
- package/dist/linear-progress/mdc-linear-progress.js.map +1 -1
- package/dist/list/mdc-deprecated-list/mdc-deprecated-list-divider/mdc-deprecated-list-divider.js +15 -18
- package/dist/list/mdc-deprecated-list/mdc-deprecated-list-divider/mdc-deprecated-list-divider.js.map +1 -1
- package/dist/list/mdc-deprecated-list/mdc-deprecated-list-group.js +14 -17
- package/dist/list/mdc-deprecated-list/mdc-deprecated-list-group.js.map +1 -1
- package/dist/list/mdc-deprecated-list/mdc-deprecated-list-item/enhance-mdc-deprecated-list-item.js +6 -9
- package/dist/list/mdc-deprecated-list/mdc-deprecated-list-item/enhance-mdc-deprecated-list-item.js.map +1 -1
- package/dist/list/mdc-deprecated-list/mdc-deprecated-list-item/mdc-deprecated-list-item-graphic.js +6 -9
- package/dist/list/mdc-deprecated-list/mdc-deprecated-list-item/mdc-deprecated-list-item-graphic.js.map +1 -1
- package/dist/list/mdc-deprecated-list/mdc-deprecated-list-item/mdc-deprecated-list-item-meta.js +6 -9
- package/dist/list/mdc-deprecated-list/mdc-deprecated-list-item/mdc-deprecated-list-item-meta.js.map +1 -1
- package/dist/list/mdc-deprecated-list/mdc-deprecated-list-item/mdc-deprecated-list-item.js +25 -28
- package/dist/list/mdc-deprecated-list/mdc-deprecated-list-item/mdc-deprecated-list-item.js.map +1 -1
- package/dist/list/mdc-deprecated-list/mdc-deprecated-list-item-primary-text.js +6 -9
- package/dist/list/mdc-deprecated-list/mdc-deprecated-list-item-primary-text.js.map +1 -1
- package/dist/list/mdc-deprecated-list/mdc-deprecated-list-item-secondary-text.js +6 -9
- package/dist/list/mdc-deprecated-list/mdc-deprecated-list-item-secondary-text.js.map +1 -1
- package/dist/list/mdc-deprecated-list/mdc-deprecated-list.js +75 -78
- package/dist/list/mdc-deprecated-list/mdc-deprecated-list.js.map +1 -1
- package/dist/list/mdc-list-divider/mdc-list-divider.js +18 -21
- package/dist/list/mdc-list-divider/mdc-list-divider.js.map +1 -1
- package/dist/list/mdc-list-group.js +14 -17
- package/dist/list/mdc-list-group.js.map +1 -1
- package/dist/list/mdc-list-item/enhance-mdc-list-item.js +6 -9
- package/dist/list/mdc-list-item/enhance-mdc-list-item.js.map +1 -1
- package/dist/list/mdc-list-item/mdc-list-item-leading.js +6 -9
- package/dist/list/mdc-list-item/mdc-list-item-leading.js.map +1 -1
- package/dist/list/mdc-list-item/mdc-list-item-trailing.js +6 -9
- package/dist/list/mdc-list-item/mdc-list-item-trailing.js.map +1 -1
- package/dist/list/mdc-list-item/mdc-list-item.js +37 -40
- package/dist/list/mdc-list-item/mdc-list-item.js.map +1 -1
- package/dist/list/mdc-list-item-overline-text.js +6 -9
- package/dist/list/mdc-list-item-overline-text.js.map +1 -1
- package/dist/list/mdc-list-item-primary-text.js +6 -9
- package/dist/list/mdc-list-item-primary-text.js.map +1 -1
- package/dist/list/mdc-list-item-secondary-text.js +6 -9
- package/dist/list/mdc-list-item-secondary-text.js.map +1 -1
- package/dist/list/mdc-list.js +55 -58
- package/dist/list/mdc-list.js.map +1 -1
- package/dist/list/styles/_index.scss +1 -0
- package/dist/list/styles/mdc-list.import.scss +1 -0
- package/dist/list/styles/mdc-list.scss +6 -0
- package/dist/lookup/discardable-promise.js +1 -5
- package/dist/lookup/discardable-promise.js.map +1 -1
- package/dist/lookup/mdc-lookup-configuration.js +1 -5
- package/dist/lookup/mdc-lookup-configuration.js.map +1 -1
- package/dist/lookup/mdc-lookup.js +66 -69
- package/dist/lookup/mdc-lookup.js.map +1 -1
- package/dist/mdc-configuration.js +11 -15
- package/dist/mdc-configuration.js.map +1 -1
- package/dist/menu/mdc-menu-selection-group-icon.js +6 -9
- package/dist/menu/mdc-menu-selection-group-icon.js.map +1 -1
- package/dist/menu/mdc-menu-selection-group.js +6 -9
- package/dist/menu/mdc-menu-selection-group.js.map +1 -1
- package/dist/menu/mdc-menu.js +68 -71
- package/dist/menu/mdc-menu.js.map +1 -1
- package/dist/menu-surface/mdc-menu-surface-anchor.js +8 -11
- package/dist/menu-surface/mdc-menu-surface-anchor.js.map +1 -1
- package/dist/menu-surface/mdc-menu-surface.js +58 -61
- package/dist/menu-surface/mdc-menu-surface.js.map +1 -1
- package/dist/notched-outline/mdc-notched-outline.js +17 -20
- package/dist/notched-outline/mdc-notched-outline.js.map +1 -1
- package/dist/radio/mdc-radio.js +24 -27
- package/dist/radio/mdc-radio.js.map +1 -1
- package/dist/ripple/mdc-ripple.js +48 -51
- package/dist/ripple/mdc-ripple.js.map +1 -1
- package/dist/ripple/styles/_index.scss +1 -0
- package/dist/ripple/styles/mdc-ripple.import.scss +1 -0
- package/dist/ripple/styles/mdc-ripple.scss +10 -0
- package/dist/segmented-button/mdc-segmented-button-segment/enhance-mdc-segmented-button-segment.js +6 -9
- package/dist/segmented-button/mdc-segmented-button-segment/enhance-mdc-segmented-button-segment.js.map +1 -1
- package/dist/segmented-button/mdc-segmented-button-segment/mdc-segmented-button-segment.js +24 -27
- package/dist/segmented-button/mdc-segmented-button-segment/mdc-segmented-button-segment.js.map +1 -1
- package/dist/segmented-button/mdc-segmented-button.js +21 -24
- package/dist/segmented-button/mdc-segmented-button.js.map +1 -1
- package/dist/select/mdc-default-select-configuration.js +1 -5
- package/dist/select/mdc-default-select-configuration.js.map +1 -1
- package/dist/select/mdc-select-adapter-aurelia.js +1 -2
- package/dist/select/mdc-select-adapter-aurelia.js.map +1 -1
- package/dist/select/mdc-select-foundation-aurelia.js +43 -47
- package/dist/select/mdc-select-foundation-aurelia.js.map +1 -1
- package/dist/select/mdc-select-helper-text/mdc-select-helper-text.js +24 -27
- package/dist/select/mdc-select-helper-text/mdc-select-helper-text.js.map +1 -1
- package/dist/select/mdc-select-icon.js +13 -16
- package/dist/select/mdc-select-icon.js.map +1 -1
- package/dist/select/mdc-select-value-observer.js +11 -14
- package/dist/select/mdc-select-value-observer.js.map +1 -1
- package/dist/select/mdc-select.js +64 -67
- package/dist/select/mdc-select.js.map +1 -1
- package/dist/slider/mdc-slider-foundation-aurelia.js +2 -6
- package/dist/slider/mdc-slider-foundation-aurelia.js.map +1 -1
- package/dist/slider/mdc-slider.js +76 -79
- package/dist/slider/mdc-slider.js.map +1 -1
- package/dist/slider/styles/_index.scss +1 -0
- package/dist/slider/styles/mdc-slider.import.scss +1 -0
- package/dist/slider/styles/mdc-slider.scss +8 -0
- package/dist/snackbar/mdc-snackbar-service.js +4 -8
- package/dist/snackbar/mdc-snackbar-service.js.map +1 -1
- package/dist/snackbar/mdc-snackbar.js +52 -55
- package/dist/snackbar/mdc-snackbar.js.map +1 -1
- package/dist/switch/enhance-mdc-switch.js +6 -9
- package/dist/switch/enhance-mdc-switch.js.map +1 -1
- package/dist/switch/mdc-switch.js +13 -16
- package/dist/switch/mdc-switch.js.map +1 -1
- package/dist/tab-bar/indicator/mdc-tab-indicator.js +23 -26
- package/dist/tab-bar/indicator/mdc-tab-indicator.js.map +1 -1
- package/dist/tab-bar/mdc-tab-bar.js +26 -29
- package/dist/tab-bar/mdc-tab-bar.js.map +1 -1
- package/dist/tab-bar/scroller/mdc-tab-scroller.js +22 -25
- package/dist/tab-bar/scroller/mdc-tab-scroller.js.map +1 -1
- package/dist/tab-bar/tab/mdc-tab.js +41 -44
- package/dist/tab-bar/tab/mdc-tab.js.map +1 -1
- package/dist/text-field/enhance-mdc-text-field.js +6 -9
- package/dist/text-field/enhance-mdc-text-field.js.map +1 -1
- package/dist/text-field/mdc-default-text-field-configuration.js +1 -5
- package/dist/text-field/mdc-default-text-field-configuration.js.map +1 -1
- package/dist/text-field/mdc-inputmask.js +12 -15
- package/dist/text-field/mdc-inputmask.js.map +1 -1
- package/dist/text-field/mdc-text-field-character-counter.js +10 -13
- package/dist/text-field/mdc-text-field-character-counter.js.map +1 -1
- package/dist/text-field/mdc-text-field-helper-line/mdc-text-field-helper-line.js +11 -14
- package/dist/text-field/mdc-text-field-helper-line/mdc-text-field-helper-line.js.map +1 -1
- package/dist/text-field/mdc-text-field-helper-text/mdc-text-field-helper-text.js +19 -22
- package/dist/text-field/mdc-text-field-helper-text/mdc-text-field-helper-text.js.map +1 -1
- package/dist/text-field/mdc-text-field-icon.js +19 -22
- package/dist/text-field/mdc-text-field-icon.js.map +1 -1
- package/dist/text-field/mdc-text-field.js +109 -112
- package/dist/text-field/mdc-text-field.js.map +1 -1
- package/dist/text-field/styles/_index.scss +1 -0
- package/dist/text-field/styles/mdc-text-field.import.scss +1 -0
- package/dist/text-field/styles/mdc-text-field.scss +8 -0
- package/dist/tooltip/mdc-default-tooltip-configuration.js +1 -5
- package/dist/tooltip/mdc-default-tooltip-configuration.js.map +1 -1
- package/dist/tooltip/mdc-tooltip-attribute.js +36 -39
- package/dist/tooltip/mdc-tooltip-attribute.js.map +1 -1
- package/dist/tooltip/mdc-tooltip.js +57 -60
- package/dist/tooltip/mdc-tooltip.js.map +1 -1
- package/dist/top-app-bar/enhance-top-app-bar-actions.js +6 -9
- package/dist/top-app-bar/enhance-top-app-bar-actions.js.map +1 -1
- package/dist/top-app-bar/mdc-top-app-bar-action-item.js +6 -9
- package/dist/top-app-bar/mdc-top-app-bar-action-item.js.map +1 -1
- package/dist/top-app-bar/mdc-top-app-bar-fixed-adjust.js +6 -9
- package/dist/top-app-bar/mdc-top-app-bar-fixed-adjust.js.map +1 -1
- package/dist/top-app-bar/mdc-top-app-bar-nav-icon.js +6 -9
- package/dist/top-app-bar/mdc-top-app-bar-nav-icon.js.map +1 -1
- package/dist/top-app-bar/mdc-top-app-bar-row.js +6 -9
- package/dist/top-app-bar/mdc-top-app-bar-row.js.map +1 -1
- package/dist/top-app-bar/mdc-top-app-bar-section/mdc-top-app-bar-section.js +12 -15
- package/dist/top-app-bar/mdc-top-app-bar-section/mdc-top-app-bar-section.js.map +1 -1
- package/dist/top-app-bar/mdc-top-app-bar-title.js +6 -9
- package/dist/top-app-bar/mdc-top-app-bar-title.js.map +1 -1
- package/dist/top-app-bar/mdc-top-app-bar.js +40 -43
- package/dist/top-app-bar/mdc-top-app-bar.js.map +1 -1
- package/dist/tree-view/i-tree-node.js +1 -2
- package/dist/tree-view/mdc-tree-node-meta.js +6 -9
- package/dist/tree-view/mdc-tree-node-meta.js.map +1 -1
- package/dist/tree-view/mdc-tree-node.js +6 -9
- package/dist/tree-view/mdc-tree-node.js.map +1 -1
- package/dist/tree-view/mdc-tree-view.js +25 -29
- package/dist/tree-view/mdc-tree-view.js.map +1 -1
- package/dist/tree-view/node-filter.js +6 -9
- package/dist/tree-view/node-filter.js.map +1 -1
- package/dist/tree-view/styles/_index.scss +1 -0
- package/dist/tree-view/styles/_mixins.scss +145 -0
- package/dist/tree-view/styles/_variables.scss +8 -0
- package/dist/tree-view/styles/mdc-tree-view.import.scss +1 -0
- package/dist/tree-view/styles/mdc-tree-view.scss +3 -0
- package/dist/types/alert/alert-modal/i-alert-modal-payload.d.ts +7 -2
- package/dist/types/index.d.ts +1 -0
- package/dist/typography/mdc-typography.js +57 -60
- package/dist/typography/mdc-typography.js.map +1 -1
- package/dist/validation/mdc-validation-controller-factory.js +6 -10
- package/dist/validation/mdc-validation-controller-factory.js.map +1 -1
- package/dist/validation/mdc-validation-result-presenter.js +1 -5
- package/dist/validation/mdc-validation-result-presenter.js.map +1 -1
- package/dist/validation/validate.js +1 -4
- package/dist/validation/validate.js.map +1 -1
- package/package.json +2 -2
- package/src/alert/alert-modal/i-alert-modal-payload.ts +14 -9
- package/src/alert/alert-service.ts +29 -10
- package/src/index.ts +1 -0
|
@@ -0,0 +1,287 @@
|
|
|
1
|
+
@use 'sass:math';
|
|
2
|
+
@use "@material/feature-targeting/functions"as feature-targeting-functions;
|
|
3
|
+
@use "@material/feature-targeting/mixins"as feature-targeting-mixins;
|
|
4
|
+
@use "@material/theme/mixins"as theme-mixins;
|
|
5
|
+
@use "@material/theme/variables"as theme-variables;
|
|
6
|
+
@use "@material/rtl/mixins"as rtl-mixins;
|
|
7
|
+
@use "@material/ripple/mixins"as ripple-mixins;
|
|
8
|
+
@use "@material/ripple/functions"as ripple-functions;
|
|
9
|
+
@use "@material/elevation/mixins"as elevation-mixins;
|
|
10
|
+
@use "@material/shape/mixins"as shape-mixins;
|
|
11
|
+
|
|
12
|
+
@use "./variables";
|
|
13
|
+
@use "./icon-variables";
|
|
14
|
+
|
|
15
|
+
@mixin core-styles($query: feature-targeting-functions.all()) {
|
|
16
|
+
@include ripple($query);
|
|
17
|
+
@include without-ripple($query);
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
@mixin without-ripple($query: feature-targeting-functions.all()) {
|
|
21
|
+
$feat-animation: feature-targeting-functions.create-target($query, animation);
|
|
22
|
+
$feat-color: feature-targeting-functions.create-target($query, color);
|
|
23
|
+
$feat-structure: feature-targeting-functions.create-target($query, structure);
|
|
24
|
+
|
|
25
|
+
@include elevation-mixins.overlay-common($query); // COPYBARA_COMMENT_THIS_LINE
|
|
26
|
+
|
|
27
|
+
.mdc-expandable {
|
|
28
|
+
@include shape-radius(variables.$shape-radius, $query: $query);
|
|
29
|
+
@include fill-color(surface, $query);
|
|
30
|
+
@include elevation-mixins.overlay-surface-position($query: $query);
|
|
31
|
+
@include elevation-mixins.overlay-dimensions(100%, $query: $query);
|
|
32
|
+
@include elevation-mixins.elevation(1, $query: $query);
|
|
33
|
+
|
|
34
|
+
@include dropdown-icon-color(variables.$dropdown-icon-color, $query: $query);
|
|
35
|
+
@include focused-dropdown-icon-color(primary, $query: $query);
|
|
36
|
+
|
|
37
|
+
@include _dropdown-icon-size(icon-variables.$icon-size, $query: $query);
|
|
38
|
+
|
|
39
|
+
|
|
40
|
+
display: block;
|
|
41
|
+
|
|
42
|
+
&.mdc-expandable--open {
|
|
43
|
+
margin: 16px 0;
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
transition: {
|
|
47
|
+
duration: variables.$duration;
|
|
48
|
+
timing-function: variables.$fast-out-slow-in-timing-function;
|
|
49
|
+
property: margin;
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
.mdc-expandable__header {
|
|
53
|
+
cursor: pointer;
|
|
54
|
+
display: flex;
|
|
55
|
+
flex-direction: row;
|
|
56
|
+
align-items: center;
|
|
57
|
+
padding: 0 24px;
|
|
58
|
+
border-radius: inherit;
|
|
59
|
+
position: relative;
|
|
60
|
+
overflow: hidden;
|
|
61
|
+
|
|
62
|
+
&:focus {
|
|
63
|
+
outline: none;
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
&.mdc-expandable__header--open {
|
|
67
|
+
height: 64px;
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
&.mdc-expandable__header--closed {
|
|
71
|
+
height: 48px;
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
transition: {
|
|
75
|
+
duration: variables.$duration;
|
|
76
|
+
timing-function: variables.$timing-function;
|
|
77
|
+
property: height;
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
.mdc-expandable__caption {
|
|
81
|
+
flex: 1;
|
|
82
|
+
}
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
&__dropdown-icon {
|
|
86
|
+
@include _dropdown-icon-base($query: $query);
|
|
87
|
+
@include _dropdown-icon-inactive($query: $query);
|
|
88
|
+
|
|
89
|
+
@include feature-targeting-mixins.targets($feat-structure) {
|
|
90
|
+
@include rtl-mixins.reflexive-property(margin,
|
|
91
|
+
icon-variables.$icon-horizontal-margin,
|
|
92
|
+
icon-variables.$icon-horizontal-margin);
|
|
93
|
+
display: inline-flex;
|
|
94
|
+
position: relative;
|
|
95
|
+
align-self: center;
|
|
96
|
+
align-items: center;
|
|
97
|
+
justify-content: center;
|
|
98
|
+
flex-shrink: 0;
|
|
99
|
+
pointer-events: none;
|
|
100
|
+
}
|
|
101
|
+
|
|
102
|
+
.mdc-expandable--open & {
|
|
103
|
+
@include _dropdown-icon-active($query: $query);
|
|
104
|
+
}
|
|
105
|
+
}
|
|
106
|
+
|
|
107
|
+
.mdc-expandable__content-container {
|
|
108
|
+
height: 0;
|
|
109
|
+
overflow: hidden;
|
|
110
|
+
|
|
111
|
+
transition: {
|
|
112
|
+
duration: variables.$duration;
|
|
113
|
+
timing-function: variables.$timing-function;
|
|
114
|
+
property: height;
|
|
115
|
+
}
|
|
116
|
+
|
|
117
|
+
.mdc-expandable__content {
|
|
118
|
+
padding: 0 24px 16px;
|
|
119
|
+
}
|
|
120
|
+
}
|
|
121
|
+
}
|
|
122
|
+
}
|
|
123
|
+
|
|
124
|
+
@mixin ripple($query: feature-targeting-functions.all()) {
|
|
125
|
+
@include ripple-mixins.common($query); // COPYBARA_COMMENT_THIS_LINE
|
|
126
|
+
|
|
127
|
+
.mdc-expandable__header {
|
|
128
|
+
@include ripple-mixins.surface($query);
|
|
129
|
+
@include ripple-mixins.radius-bounded($query: $query);
|
|
130
|
+
@include ripple-mixins.states($query: $query);
|
|
131
|
+
}
|
|
132
|
+
}
|
|
133
|
+
|
|
134
|
+
@mixin dropdown-icon-color($color, $query: feature-targeting-functions.all()) {
|
|
135
|
+
@include _dropdown-icon-color($color, $query: $query);
|
|
136
|
+
}
|
|
137
|
+
|
|
138
|
+
@mixin focused-dropdown-icon-color($color,
|
|
139
|
+
$query: feature-targeting-functions.all()) {
|
|
140
|
+
.mdc-expandable__header--focused {
|
|
141
|
+
@include _dropdown-icon-color($color, $query: $query);
|
|
142
|
+
}
|
|
143
|
+
}
|
|
144
|
+
|
|
145
|
+
///
|
|
146
|
+
/// Sets the dropdown icon to the specified size.
|
|
147
|
+
/// @access private
|
|
148
|
+
///
|
|
149
|
+
@mixin _dropdown-icon-size($size, $query: feature-targeting-functions.all()) {
|
|
150
|
+
$feat-structure: feature-targeting-functions.create-target($query, structure);
|
|
151
|
+
|
|
152
|
+
.mdc-expandable__dropdown-icon {
|
|
153
|
+
@include feature-targeting-mixins.targets($feat-structure) {
|
|
154
|
+
width: $size;
|
|
155
|
+
height: $size;
|
|
156
|
+
}
|
|
157
|
+
}
|
|
158
|
+
}
|
|
159
|
+
|
|
160
|
+
///
|
|
161
|
+
/// Sets the dropdown icon to the specified color.
|
|
162
|
+
/// @access private
|
|
163
|
+
///
|
|
164
|
+
@mixin _dropdown-icon-color($color, $query: feature-targeting-functions.all()) {
|
|
165
|
+
$feat-color: feature-targeting-functions.create-target($query, color);
|
|
166
|
+
|
|
167
|
+
@include feature-targeting-mixins.targets($feat-color) {
|
|
168
|
+
.mdc-expandable__dropdown-icon {
|
|
169
|
+
@include theme-mixins.prop(fill, $color);
|
|
170
|
+
}
|
|
171
|
+
}
|
|
172
|
+
}
|
|
173
|
+
|
|
174
|
+
///
|
|
175
|
+
/// Sets base dropdown icon styles.
|
|
176
|
+
/// @access private
|
|
177
|
+
///
|
|
178
|
+
@mixin _dropdown-icon-base($query: feature-targeting-functions.all()) {
|
|
179
|
+
$feat-structure: feature-targeting-functions.create-target($query, structure);
|
|
180
|
+
|
|
181
|
+
.mdc-expandable__dropdown-icon-active,
|
|
182
|
+
.mdc-expandable__dropdown-icon-inactive {
|
|
183
|
+
@include feature-targeting-mixins.targets($feat-structure) {
|
|
184
|
+
position: absolute;
|
|
185
|
+
top: 0;
|
|
186
|
+
left: 0;
|
|
187
|
+
}
|
|
188
|
+
}
|
|
189
|
+
|
|
190
|
+
.mdc-expandable__dropdown-icon-graphic {
|
|
191
|
+
$svg-natural-width: 10px;
|
|
192
|
+
$svg-natural-height: 5px;
|
|
193
|
+
|
|
194
|
+
@include feature-targeting-mixins.targets($feat-structure) {
|
|
195
|
+
width: math.div($svg-natural-width, icon-variables.$icon-size) * 100%;
|
|
196
|
+
height: math.div($svg-natural-height, icon-variables.$icon-size) * 100%;
|
|
197
|
+
}
|
|
198
|
+
}
|
|
199
|
+
}
|
|
200
|
+
|
|
201
|
+
///
|
|
202
|
+
/// Sets styles for transitioning the dropdown icon to inactive state.
|
|
203
|
+
/// @access private
|
|
204
|
+
///
|
|
205
|
+
@mixin _dropdown-icon-inactive($query: feature-targeting-functions.all()) {
|
|
206
|
+
$feat-structure: feature-targeting-functions.create-target($query, structure);
|
|
207
|
+
$feat-animation: feature-targeting-functions.create-target($query, animation);
|
|
208
|
+
|
|
209
|
+
.mdc-expandable__dropdown-icon-inactive {
|
|
210
|
+
@include feature-targeting-mixins.targets($feat-structure) {
|
|
211
|
+
opacity: 1;
|
|
212
|
+
}
|
|
213
|
+
|
|
214
|
+
@include feature-targeting-mixins.targets($feat-animation) {
|
|
215
|
+
transition: opacity variables.$icon-inactive-fade-in-duration linear variables.$icon-inactive-fade-out-duration;
|
|
216
|
+
}
|
|
217
|
+
}
|
|
218
|
+
|
|
219
|
+
.mdc-expandable__dropdown-icon-active {
|
|
220
|
+
@include feature-targeting-mixins.targets($feat-structure) {
|
|
221
|
+
opacity: 0;
|
|
222
|
+
}
|
|
223
|
+
|
|
224
|
+
@include feature-targeting-mixins.targets($feat-animation) {
|
|
225
|
+
transition: opacity variables.$icon-inactive-fade-out-duration linear;
|
|
226
|
+
}
|
|
227
|
+
}
|
|
228
|
+
}
|
|
229
|
+
|
|
230
|
+
///
|
|
231
|
+
/// Sets styles for transitioning the dropdown icon to activated state.
|
|
232
|
+
/// @access private
|
|
233
|
+
///
|
|
234
|
+
@mixin _dropdown-icon-active($query: feature-targeting-functions.all()) {
|
|
235
|
+
$feat-structure: feature-targeting-functions.create-target($query, structure);
|
|
236
|
+
$feat-animation: feature-targeting-functions.create-target($query, animation);
|
|
237
|
+
|
|
238
|
+
.mdc-expandable__dropdown-icon-inactive {
|
|
239
|
+
@include feature-targeting-mixins.targets($feat-structure) {
|
|
240
|
+
opacity: 0;
|
|
241
|
+
}
|
|
242
|
+
|
|
243
|
+
@include feature-targeting-mixins.targets($feat-animation) {
|
|
244
|
+
transition: opacity variables.$icon-active-fade-out-duration linear;
|
|
245
|
+
}
|
|
246
|
+
}
|
|
247
|
+
|
|
248
|
+
.mdc-expandable__dropdown-icon-active {
|
|
249
|
+
@include feature-targeting-mixins.targets($feat-structure) {
|
|
250
|
+
opacity: 1;
|
|
251
|
+
}
|
|
252
|
+
|
|
253
|
+
@include feature-targeting-mixins.targets($feat-animation) {
|
|
254
|
+
transition: opacity variables.$icon-active-fade-in-duration linear variables.$icon-active-fade-out-duration;
|
|
255
|
+
}
|
|
256
|
+
}
|
|
257
|
+
}
|
|
258
|
+
|
|
259
|
+
@mixin fill-color($color, $query: functions.all()) {
|
|
260
|
+
$feat-color: feature-targeting-functions.create-target($query, color);
|
|
261
|
+
|
|
262
|
+
@include feature-targeting-mixins.targets($feat-color) {
|
|
263
|
+
@include theme-mixins.prop(background-color, $color);
|
|
264
|
+
}
|
|
265
|
+
}
|
|
266
|
+
|
|
267
|
+
@mixin shape-radius($radius, $rtl-reflexive: false, $query: functions.all()) {
|
|
268
|
+
&:first-of-type {
|
|
269
|
+
@include shape-mixins.radius($radius $radius 0 0, $rtl-reflexive, $query);
|
|
270
|
+
}
|
|
271
|
+
|
|
272
|
+
&:last-of-type {
|
|
273
|
+
@include shape-mixins.radius(0 0 $radius $radius, $rtl-reflexive, $query);
|
|
274
|
+
}
|
|
275
|
+
|
|
276
|
+
&:first-of-type:last-of-type {
|
|
277
|
+
@include shape-mixins.radius($radius, $rtl-reflexive, $query);
|
|
278
|
+
}
|
|
279
|
+
|
|
280
|
+
&.mdc-expandable--open {
|
|
281
|
+
@include shape-mixins.radius($radius, $rtl-reflexive, $query);
|
|
282
|
+
|
|
283
|
+
.mdc-expandable__header {
|
|
284
|
+
@include shape-mixins.radius($radius $radius 0 0, $rtl-reflexive, $query);
|
|
285
|
+
}
|
|
286
|
+
}
|
|
287
|
+
}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
@use "@material/theme/variables";
|
|
2
|
+
|
|
3
|
+
$dropdown-icon-color: rgba(variables.prop-value(on-surface), 0.54) !default;
|
|
4
|
+
$dropdown-transition-duration: 150ms !default;
|
|
5
|
+
// Transition durartions to active state
|
|
6
|
+
$icon-active-fade-out-duration: 0.33 * $dropdown-transition-duration !default;
|
|
7
|
+
$icon-active-fade-in-duration: 0.67 * $dropdown-transition-duration !default;
|
|
8
|
+
// Transition durartions to inactive state
|
|
9
|
+
$icon-inactive-fade-out-duration: 0.5 * $dropdown-transition-duration !default;
|
|
10
|
+
$icon-inactive-fade-in-duration: 0.5 * $dropdown-transition-duration !default;
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
$duration: 225ms;
|
|
14
|
+
$timing-function: cubic-bezier(0.25, 0.8, 0.25, 1);
|
|
15
|
+
$fast-out-slow-in-timing-function: cubic-bezier(0.4, 0, 0.2, 1) !default;
|
|
16
|
+
|
|
17
|
+
$shape-radius: small !default;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
@forward './mdc-expandable.scss';
|
|
@@ -1,10 +1,7 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
exports.EnhanceMdcFab = void 0;
|
|
4
|
-
const tslib_1 = require("tslib");
|
|
5
|
-
const aurelia_1 = require("aurelia");
|
|
1
|
+
import { __esDecorate, __runInitializers } from "tslib";
|
|
2
|
+
import { templateCompilerHooks } from 'aurelia';
|
|
6
3
|
let EnhanceMdcFab = (() => {
|
|
7
|
-
let _classDecorators = [
|
|
4
|
+
let _classDecorators = [templateCompilerHooks];
|
|
8
5
|
let _classDescriptor;
|
|
9
6
|
let _classExtraInitializers = [];
|
|
10
7
|
let _classThis;
|
|
@@ -12,10 +9,10 @@ let EnhanceMdcFab = (() => {
|
|
|
12
9
|
static { _classThis = this; }
|
|
13
10
|
static {
|
|
14
11
|
const _metadata = typeof Symbol === "function" && Symbol.metadata ? Object.create(null) : void 0;
|
|
15
|
-
|
|
12
|
+
__esDecorate(null, _classDescriptor = { value: _classThis }, _classDecorators, { kind: "class", name: _classThis.name, metadata: _metadata }, null, _classExtraInitializers);
|
|
16
13
|
EnhanceMdcFab = _classThis = _classDescriptor.value;
|
|
17
14
|
if (_metadata) Object.defineProperty(_classThis, Symbol.metadata, { enumerable: true, configurable: true, writable: true, value: _metadata });
|
|
18
|
-
|
|
15
|
+
__runInitializers(_classThis, _classExtraInitializers);
|
|
19
16
|
}
|
|
20
17
|
compiling(template) {
|
|
21
18
|
template.innerHTML = template.innerHTML.replaceAll('mdc-fab=""', 'as-element="mdc-fab"');
|
|
@@ -23,5 +20,5 @@ let EnhanceMdcFab = (() => {
|
|
|
23
20
|
};
|
|
24
21
|
return EnhanceMdcFab = _classThis;
|
|
25
22
|
})();
|
|
26
|
-
|
|
23
|
+
export { EnhanceMdcFab };
|
|
27
24
|
//# sourceMappingURL=enhance-mdc-fab.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"enhance-mdc-fab.js","sourceRoot":"","sources":["../../src/fab/enhance-mdc-fab.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"enhance-mdc-fab.js","sourceRoot":"","sources":["../../src/fab/enhance-mdc-fab.ts"],"names":[],"mappings":";AAAA,OAAO,EAAE,qBAAqB,EAAE,MAAM,SAAS,CAAC;IAGnC,aAAa;4BADzB,qBAAqB;;;;;;;;YACtB,6KAIC;;;YAJY,uDAAa;;QACxB,SAAS,CAAC,QAA2C;YACnD,QAAQ,CAAC,SAAS,GAAG,QAAQ,CAAC,SAAS,CAAC,UAAU,CAAC,YAAY,EAAC,sBAAsB,CAAC,CAAC;QAC1F,CAAC;;;;SAHU,aAAa","sourcesContent":["import { templateCompilerHooks } from 'aurelia';\r\n\r\n@templateCompilerHooks\r\nexport class EnhanceMdcFab {\r\n compiling(template: HTMLElement | HTMLTemplateElement) {\r\n template.innerHTML = template.innerHTML.replaceAll('mdc-fab=\"\"','as-element=\"mdc-fab\"');\r\n }\r\n}\r\n"]}
|
package/dist/fab/mdc-fab-icon.js
CHANGED
|
@@ -1,14 +1,11 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
exports.MdcFabIcon = void 0;
|
|
4
|
-
const tslib_1 = require("tslib");
|
|
5
|
-
const aurelia_1 = require("aurelia");
|
|
1
|
+
import { __esDecorate, __runInitializers } from "tslib";
|
|
2
|
+
import { inject, customAttribute } from 'aurelia';
|
|
6
3
|
/**
|
|
7
4
|
* Optional. Can be used with SVG icons, for example.
|
|
8
5
|
* @selector [mdc-fab-icon]
|
|
9
6
|
*/
|
|
10
7
|
let MdcFabIcon = (() => {
|
|
11
|
-
let _classDecorators = [
|
|
8
|
+
let _classDecorators = [inject(Element), customAttribute('mdc-fab-icon')];
|
|
12
9
|
let _classDescriptor;
|
|
13
10
|
let _classExtraInitializers = [];
|
|
14
11
|
let _classThis;
|
|
@@ -16,10 +13,10 @@ let MdcFabIcon = (() => {
|
|
|
16
13
|
static { _classThis = this; }
|
|
17
14
|
static {
|
|
18
15
|
const _metadata = typeof Symbol === "function" && Symbol.metadata ? Object.create(null) : void 0;
|
|
19
|
-
|
|
16
|
+
__esDecorate(null, _classDescriptor = { value: _classThis }, _classDecorators, { kind: "class", name: _classThis.name, metadata: _metadata }, null, _classExtraInitializers);
|
|
20
17
|
MdcFabIcon = _classThis = _classDescriptor.value;
|
|
21
18
|
if (_metadata) Object.defineProperty(_classThis, Symbol.metadata, { enumerable: true, configurable: true, writable: true, value: _metadata });
|
|
22
|
-
|
|
19
|
+
__runInitializers(_classThis, _classExtraInitializers);
|
|
23
20
|
}
|
|
24
21
|
root;
|
|
25
22
|
constructor(root) {
|
|
@@ -31,5 +28,5 @@ let MdcFabIcon = (() => {
|
|
|
31
28
|
};
|
|
32
29
|
return MdcFabIcon = _classThis;
|
|
33
30
|
})();
|
|
34
|
-
|
|
31
|
+
export { MdcFabIcon };
|
|
35
32
|
//# sourceMappingURL=mdc-fab-icon.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"mdc-fab-icon.js","sourceRoot":"","sources":["../../src/fab/mdc-fab-icon.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"mdc-fab-icon.js","sourceRoot":"","sources":["../../src/fab/mdc-fab-icon.ts"],"names":[],"mappings":";AAAA,OAAO,EAAE,MAAM,EAAE,eAAe,EAAE,MAAM,SAAS,CAAC;AAElD;;;GAGG;IAGU,UAAU;4BAFtB,MAAM,CAAC,OAAO,CAAC,EACf,eAAe,CAAC,cAAc,CAAC;;;;;;;;YAChC,6KAMC;;;YANY,uDAAU;;QACD,IAAI;QAAxB,YAAoB,IAAiB;YAAjB,SAAI,GAAJ,IAAI,CAAa;QAAI,CAAC;QAE1C,QAAQ;YACN,IAAI,CAAC,IAAI,CAAC,SAAS,CAAC,GAAG,CAAC,eAAe,CAAC,CAAC;QAC3C,CAAC;;;;SALU,UAAU","sourcesContent":["import { inject, customAttribute } from 'aurelia';\r\n\r\n/**\r\n * Optional. Can be used with SVG icons, for example.\r\n * @selector [mdc-fab-icon]\r\n */\r\n@inject(Element)\r\n@customAttribute('mdc-fab-icon')\r\nexport class MdcFabIcon {\r\n constructor(private root: HTMLElement) { }\r\n\r\n attached() {\r\n this.root.classList.add('mdc-fab__icon');\r\n }\r\n}\r\n"]}
|
package/dist/fab/mdc-fab.js
CHANGED
|
@@ -1,17 +1,14 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
const aurelia_1 = require("aurelia");
|
|
6
|
-
const base_1 = require("../base");
|
|
7
|
-
const mdc_fab_html_raw_1 = tslib_1.__importDefault(require("./mdc-fab.html?raw"));
|
|
1
|
+
import { __esDecorate, __runInitializers } from "tslib";
|
|
2
|
+
import { customElement, bindable, inject } from 'aurelia';
|
|
3
|
+
import { booleanAttr } from '../base';
|
|
4
|
+
import template from './mdc-fab.html?raw';
|
|
8
5
|
/**
|
|
9
6
|
* @selector mdc-fab
|
|
10
7
|
* @selector a[mdc-fab]
|
|
11
8
|
* @selector button[mdc-fab]
|
|
12
9
|
*/
|
|
13
10
|
let MdcFab = (() => {
|
|
14
|
-
let _classDecorators = [
|
|
11
|
+
let _classDecorators = [inject(Element), customElement({ name: 'mdc-fab', template })];
|
|
15
12
|
let _classDescriptor;
|
|
16
13
|
let _classExtraInitializers = [];
|
|
17
14
|
let _classThis;
|
|
@@ -40,44 +37,44 @@ let MdcFab = (() => {
|
|
|
40
37
|
static { _classThis = this; }
|
|
41
38
|
static {
|
|
42
39
|
const _metadata = typeof Symbol === "function" && Symbol.metadata ? Object.create(null) : void 0;
|
|
43
|
-
_mini_decorators = [
|
|
44
|
-
_extended_decorators = [
|
|
45
|
-
_touch_decorators = [
|
|
46
|
-
_exited_decorators = [
|
|
47
|
-
_icon_decorators = [
|
|
48
|
-
_label_decorators = [
|
|
49
|
-
_disabled_decorators = [
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
40
|
+
_mini_decorators = [bindable({ set: booleanAttr })];
|
|
41
|
+
_extended_decorators = [bindable({ set: booleanAttr })];
|
|
42
|
+
_touch_decorators = [bindable({ set: booleanAttr })];
|
|
43
|
+
_exited_decorators = [bindable({ set: booleanAttr })];
|
|
44
|
+
_icon_decorators = [bindable()];
|
|
45
|
+
_label_decorators = [bindable()];
|
|
46
|
+
_disabled_decorators = [bindable({ set: booleanAttr })];
|
|
47
|
+
__esDecorate(null, null, _mini_decorators, { kind: "field", name: "mini", static: false, private: false, access: { has: obj => "mini" in obj, get: obj => obj.mini, set: (obj, value) => { obj.mini = value; } }, metadata: _metadata }, _mini_initializers, _mini_extraInitializers);
|
|
48
|
+
__esDecorate(null, null, _extended_decorators, { kind: "field", name: "extended", static: false, private: false, access: { has: obj => "extended" in obj, get: obj => obj.extended, set: (obj, value) => { obj.extended = value; } }, metadata: _metadata }, _extended_initializers, _extended_extraInitializers);
|
|
49
|
+
__esDecorate(null, null, _touch_decorators, { kind: "field", name: "touch", static: false, private: false, access: { has: obj => "touch" in obj, get: obj => obj.touch, set: (obj, value) => { obj.touch = value; } }, metadata: _metadata }, _touch_initializers, _touch_extraInitializers);
|
|
50
|
+
__esDecorate(null, null, _exited_decorators, { kind: "field", name: "exited", static: false, private: false, access: { has: obj => "exited" in obj, get: obj => obj.exited, set: (obj, value) => { obj.exited = value; } }, metadata: _metadata }, _exited_initializers, _exited_extraInitializers);
|
|
51
|
+
__esDecorate(null, null, _icon_decorators, { kind: "field", name: "icon", static: false, private: false, access: { has: obj => "icon" in obj, get: obj => obj.icon, set: (obj, value) => { obj.icon = value; } }, metadata: _metadata }, _icon_initializers, _icon_extraInitializers);
|
|
52
|
+
__esDecorate(null, null, _label_decorators, { kind: "field", name: "label", static: false, private: false, access: { has: obj => "label" in obj, get: obj => obj.label, set: (obj, value) => { obj.label = value; } }, metadata: _metadata }, _label_initializers, _label_extraInitializers);
|
|
53
|
+
__esDecorate(null, null, _disabled_decorators, { kind: "field", name: "disabled", static: false, private: false, access: { has: obj => "disabled" in obj, get: obj => obj.disabled, set: (obj, value) => { obj.disabled = value; } }, metadata: _metadata }, _disabled_initializers, _disabled_extraInitializers);
|
|
54
|
+
__esDecorate(null, _classDescriptor = { value: _classThis }, _classDecorators, { kind: "class", name: _classThis.name, metadata: _metadata }, null, _classExtraInitializers);
|
|
58
55
|
MdcFab = _classThis = _classDescriptor.value;
|
|
59
56
|
if (_metadata) Object.defineProperty(_classThis, Symbol.metadata, { enumerable: true, configurable: true, writable: true, value: _metadata });
|
|
60
|
-
|
|
57
|
+
__runInitializers(_classThis, _classExtraInitializers);
|
|
61
58
|
}
|
|
62
59
|
root;
|
|
63
60
|
constructor(root) {
|
|
64
|
-
|
|
61
|
+
__runInitializers(this, _disabled_extraInitializers);
|
|
65
62
|
this.root = root;
|
|
66
63
|
}
|
|
67
64
|
/** Make the fab smaller (40 x 40 pixels) */
|
|
68
|
-
mini =
|
|
65
|
+
mini = __runInitializers(this, _mini_initializers, void 0);
|
|
69
66
|
/** Modifies the FAB to wider size which includes a text label */
|
|
70
|
-
extended = (
|
|
67
|
+
extended = (__runInitializers(this, _mini_extraInitializers), __runInitializers(this, _extended_initializers, void 0));
|
|
71
68
|
/** Set the mini fab touch target to 48 x 48 px. Only applies if FAB is set to mini as well. */
|
|
72
|
-
touch = (
|
|
69
|
+
touch = (__runInitializers(this, _extended_extraInitializers), __runInitializers(this, _touch_initializers, void 0));
|
|
73
70
|
/** Animates the FAB in or out of view */
|
|
74
|
-
exited = (
|
|
71
|
+
exited = (__runInitializers(this, _touch_extraInitializers), __runInitializers(this, _exited_initializers, void 0));
|
|
75
72
|
/** Optional. Apply a Material Icon. */
|
|
76
|
-
icon = (
|
|
73
|
+
icon = (__runInitializers(this, _exited_extraInitializers), __runInitializers(this, _icon_initializers, void 0));
|
|
77
74
|
/** Optional, for the text label. Applicable only for Extended FAB. */
|
|
78
|
-
label = (
|
|
75
|
+
label = (__runInitializers(this, _icon_extraInitializers), __runInitializers(this, _label_initializers, void 0));
|
|
79
76
|
/** Set the button disabled */
|
|
80
|
-
disabled = (
|
|
77
|
+
disabled = (__runInitializers(this, _label_extraInitializers), __runInitializers(this, _disabled_initializers, void 0));
|
|
81
78
|
disabledChanged() {
|
|
82
79
|
if (this.disabled) {
|
|
83
80
|
this.root.setAttribute('disabled', '');
|
|
@@ -89,5 +86,5 @@ let MdcFab = (() => {
|
|
|
89
86
|
};
|
|
90
87
|
return MdcFab = _classThis;
|
|
91
88
|
})();
|
|
92
|
-
|
|
89
|
+
export { MdcFab };
|
|
93
90
|
//# sourceMappingURL=mdc-fab.js.map
|
package/dist/fab/mdc-fab.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"mdc-fab.js","sourceRoot":"","sources":["../../src/fab/mdc-fab.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"mdc-fab.js","sourceRoot":"","sources":["../../src/fab/mdc-fab.ts"],"names":[],"mappings":";AAAA,OAAO,EAAE,aAAa,EAAE,QAAQ,EAAE,MAAM,EAAE,MAAM,SAAS,CAAC;AAC1D,OAAO,EAAE,WAAW,EAAE,MAAM,SAAS,CAAC;AACtC,OAAO,QAAQ,MAAM,oBAAoB,CAAC;AAE1C;;;;GAIG;IAGU,MAAM;4BAFlB,MAAM,CAAC,OAAO,CAAC,EACf,aAAa,CAAC,EAAE,IAAI,EAAE,SAAS,EAAE,QAAQ,EAAE,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;gCAK1C,QAAQ,CAAC,EAAE,GAAG,EAAE,WAAW,EAAE,CAAC;oCAI9B,QAAQ,CAAC,EAAE,GAAG,EAAE,WAAW,EAAE,CAAC;iCAI9B,QAAQ,CAAC,EAAE,GAAG,EAAE,WAAW,EAAE,CAAC;kCAI9B,QAAQ,CAAC,EAAE,GAAG,EAAE,WAAW,EAAE,CAAC;gCAI9B,QAAQ,EAAE;iCAIV,QAAQ,EAAE;oCAKV,QAAQ,CAAC,EAAE,GAAG,EAAE,WAAW,EAAE,CAAC;YAxB/B,8JAAA,IAAI,6BAAJ,IAAI,mFAAU;YAId,0KAAA,QAAQ,6BAAR,QAAQ,2FAAU;YAIlB,iKAAA,KAAK,6BAAL,KAAK,qFAAU;YAIf,oKAAA,MAAM,6BAAN,MAAM,uFAAU;YAIhB,8JAAA,IAAI,6BAAJ,IAAI,mFAAS;YAIb,iKAAA,KAAK,6BAAL,KAAK,qFAAS;YAKd,0KAAA,QAAQ,6BAAR,QAAQ,2FAAU;YA9BpB,6KAsCC;;;YAtCY,uDAAM;;QACG,IAAI;QAAxB,YAAoB,IAAiB;;YAAjB,SAAI,GAAJ,IAAI,CAAa;SAAK;QAE1C,4CAA4C;QAE5C,IAAI,uDAAU;QAEd,iEAAiE;QAEjE,QAAQ,+GAAU;QAElB,+FAA+F;QAE/F,KAAK,gHAAU;QAEf,yCAAyC;QAEzC,MAAM,8GAAU;QAEhB,uCAAuC;QAEvC,IAAI,6GAAS;QAEb,sEAAsE;QAEtE,KAAK,4GAAS;QAGd,8BAA8B;QAE9B,QAAQ,gHAAU;QAClB,eAAe;YACb,IAAI,IAAI,CAAC,QAAQ,EAAE,CAAC;gBAClB,IAAI,CAAC,IAAI,CAAC,YAAY,CAAC,UAAU,EAAE,EAAE,CAAC,CAAC;YACzC,CAAC;iBAAM,CAAC;gBACN,IAAI,CAAC,IAAI,CAAC,eAAe,CAAC,UAAU,CAAC,CAAC;YACxC,CAAC;QACH,CAAC;;;;SArCU,MAAM","sourcesContent":["import { customElement, bindable, inject } from 'aurelia';\r\nimport { booleanAttr } from '../base';\r\nimport template from './mdc-fab.html?raw';\r\n\r\n/**\r\n * @selector mdc-fab\r\n * @selector a[mdc-fab]\r\n * @selector button[mdc-fab]\r\n */\r\n@inject(Element)\r\n@customElement({ name: 'mdc-fab', template })\r\nexport class MdcFab {\r\n constructor(private root: HTMLElement) { }\r\n\r\n /** Make the fab smaller (40 x 40 pixels) */\r\n @bindable({ set: booleanAttr })\r\n mini: boolean;\r\n\r\n /** Modifies the FAB to wider size which includes a text label */\r\n @bindable({ set: booleanAttr })\r\n extended: boolean;\r\n\r\n /** Set the mini fab touch target to 48 x 48 px. Only applies if FAB is set to mini as well. */\r\n @bindable({ set: booleanAttr })\r\n touch: boolean;\r\n\r\n /** Animates the FAB in or out of view */\r\n @bindable({ set: booleanAttr })\r\n exited: boolean;\r\n\r\n /** Optional. Apply a Material Icon. */\r\n @bindable()\r\n icon: string;\r\n\r\n /** Optional, for the text label. Applicable only for Extended FAB. */\r\n @bindable()\r\n label: string;\r\n\r\n\r\n /** Set the button disabled */\r\n @bindable({ set: booleanAttr })\r\n disabled: boolean;\r\n disabledChanged() {\r\n if (this.disabled) {\r\n this.root.setAttribute('disabled', '');\r\n } else {\r\n this.root.removeAttribute('disabled');\r\n }\r\n }\r\n}\r\n"]}
|
|
@@ -1,26 +1,23 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
const base_1 = require("../base");
|
|
8
|
-
const ponyfill_1 = require("@material/dom/ponyfill");
|
|
9
|
-
const mdc_floating_label_html_raw_1 = tslib_1.__importDefault(require("./mdc-floating-label.html?raw"));
|
|
1
|
+
import { __esDecorate, __runInitializers } from "tslib";
|
|
2
|
+
import { inject, customElement } from 'aurelia';
|
|
3
|
+
import { MDCFloatingLabelFoundation } from '@material/floating-label';
|
|
4
|
+
import { MdcComponent } from '../base';
|
|
5
|
+
import { estimateScrollWidth } from '@material/dom/ponyfill';
|
|
6
|
+
import template from './mdc-floating-label.html?raw';
|
|
10
7
|
let MdcFloatingLabel = (() => {
|
|
11
|
-
let _classDecorators = [
|
|
8
|
+
let _classDecorators = [inject(Element), customElement({ name: 'mdc-floating-label', template })];
|
|
12
9
|
let _classDescriptor;
|
|
13
10
|
let _classExtraInitializers = [];
|
|
14
11
|
let _classThis;
|
|
15
|
-
let _classSuper =
|
|
12
|
+
let _classSuper = MdcComponent;
|
|
16
13
|
var MdcFloatingLabel = class extends _classSuper {
|
|
17
14
|
static { _classThis = this; }
|
|
18
15
|
static {
|
|
19
16
|
const _metadata = typeof Symbol === "function" && Symbol.metadata ? Object.create(_classSuper[Symbol.metadata] ?? null) : void 0;
|
|
20
|
-
|
|
17
|
+
__esDecorate(null, _classDescriptor = { value: _classThis }, _classDecorators, { kind: "class", name: _classThis.name, metadata: _metadata }, null, _classExtraInitializers);
|
|
21
18
|
MdcFloatingLabel = _classThis = _classDescriptor.value;
|
|
22
19
|
if (_metadata) Object.defineProperty(_classThis, Symbol.metadata, { enumerable: true, configurable: true, writable: true, value: _metadata });
|
|
23
|
-
|
|
20
|
+
__runInitializers(_classThis, _classExtraInitializers);
|
|
24
21
|
}
|
|
25
22
|
shake(shouldShake) {
|
|
26
23
|
this.foundation?.shake(shouldShake);
|
|
@@ -46,14 +43,14 @@ let MdcFloatingLabel = (() => {
|
|
|
46
43
|
const adapter = {
|
|
47
44
|
addClass: (className) => this.root.classList.add(className),
|
|
48
45
|
removeClass: (className) => this.root.classList.remove(className),
|
|
49
|
-
getWidth: () =>
|
|
46
|
+
getWidth: () => estimateScrollWidth(this.root),
|
|
50
47
|
registerInteractionHandler: (evtType, handler) => this.listen(evtType, handler),
|
|
51
48
|
deregisterInteractionHandler: (evtType, handler) => this.unlisten(evtType, handler),
|
|
52
49
|
};
|
|
53
|
-
return new
|
|
50
|
+
return new MDCFloatingLabelFoundation(adapter);
|
|
54
51
|
}
|
|
55
52
|
};
|
|
56
53
|
return MdcFloatingLabel = _classThis;
|
|
57
54
|
})();
|
|
58
|
-
|
|
55
|
+
export { MdcFloatingLabel };
|
|
59
56
|
//# sourceMappingURL=mdc-floating-label.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"mdc-floating-label.js","sourceRoot":"","sources":["../../src/floating-label/mdc-floating-label.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"mdc-floating-label.js","sourceRoot":"","sources":["../../src/floating-label/mdc-floating-label.ts"],"names":[],"mappings":";AAAA,OAAO,EAAE,MAAM,EAAE,aAAa,EAAE,MAAM,SAAS,CAAC;AAChD,OAAO,EAAE,0BAA0B,EAA2B,MAAM,0BAA0B,CAAC;AAC/F,OAAO,EAAE,YAAY,EAAE,MAAM,SAAS,CAAC;AACvC,OAAO,EAAE,mBAAmB,EAAE,MAAM,wBAAwB,CAAC;AAC7D,OAAO,QAAQ,MAAM,+BAA+B,CAAC;IAIxC,gBAAgB;4BAF5B,MAAM,CAAC,OAAO,CAAC,EACf,aAAa,CAAC,EAAE,IAAI,EAAE,oBAAoB,EAAE,QAAQ,EAAE,CAAC;;;;sBAClB,YAAY;gCAApB,SAAQ,WAAwC;;;;YAA9E,6KAmCC;;;YAnCY,uDAAgB;;QAC3B,KAAK,CAAC,WAAoB;YACxB,IAAI,CAAC,UAAU,EAAE,KAAK,CAAC,WAAW,CAAC,CAAC;QACtC,CAAC;QAED;;;WAGG;QACH,KAAK,CAAC,WAAoB;YACxB,IAAI,CAAC,UAAU,EAAE,KAAK,CAAC,WAAW,CAAC,CAAC;QACtC,CAAC;QAED;;;WAGG;QACH,WAAW,CAAC,UAAmB;YAC7B,IAAI,CAAC,UAAU,EAAE,WAAW,CAAC,UAAU,CAAC,CAAC;QAC3C,CAAC;QAED,QAAQ;YACN,OAAO,IAAI,CAAC,UAAW,CAAC,QAAQ,EAAE,CAAC;QACrC,CAAC;QAED,oBAAoB;YAClB,MAAM,OAAO,GAA4B;gBACvC,QAAQ,EAAE,CAAC,SAAS,EAAE,EAAE,CAAC,IAAI,CAAC,IAAI,CAAC,SAAS,CAAC,GAAG,CAAC,SAAS,CAAC;gBAC3D,WAAW,EAAE,CAAC,SAAS,EAAE,EAAE,CAAC,IAAI,CAAC,IAAI,CAAC,SAAS,CAAC,MAAM,CAAC,SAAS,CAAC;gBACjE,QAAQ,EAAE,GAAG,EAAE,CAAC,mBAAmB,CAAC,IAAI,CAAC,IAAI,CAAC;gBAC9C,0BAA0B,EAAE,CAAC,OAAO,EAAE,OAAO,EAAE,EAAE,CAAC,IAAI,CAAC,MAAM,CAAC,OAAO,EAAE,OAAO,CAAC;gBAC/E,4BAA4B,EAAE,CAAC,OAAO,EAAE,OAAO,EAAE,EAAE,CAAC,IAAI,CAAC,QAAQ,CAAC,OAAO,EAAE,OAAO,CAAC;aACpF,CAAC;YACF,OAAO,IAAI,0BAA0B,CAAC,OAAO,CAAC,CAAC;QACjD,CAAC;;;;SAlCU,gBAAgB","sourcesContent":["import { inject, customElement } from 'aurelia';\r\nimport { MDCFloatingLabelFoundation, MDCFloatingLabelAdapter } from '@material/floating-label';\r\nimport { MdcComponent } from '../base';\r\nimport { estimateScrollWidth } from '@material/dom/ponyfill';\r\nimport template from './mdc-floating-label.html?raw';\r\n\r\n@inject(Element)\r\n@customElement({ name: 'mdc-floating-label', template })\r\nexport class MdcFloatingLabel extends MdcComponent<MDCFloatingLabelFoundation> {\r\n shake(shouldShake: boolean) {\r\n this.foundation?.shake(shouldShake);\r\n }\r\n\r\n /**\r\n * Styles the label to float/dock.\r\n * @param shouldFloat If true, floats the label by adding a CSS class; otherwise, docks it by removing the class.\r\n */\r\n float(shouldFloat: boolean) {\r\n this.foundation?.float(shouldFloat);\r\n }\r\n\r\n /**\r\n * Styles the label as required.\r\n * @param isRequired If true, adds an asterisk to the label, indicating that it is required.\r\n */\r\n setRequired(isRequired: boolean) {\r\n this.foundation?.setRequired(isRequired);\r\n }\r\n\r\n getWidth(): number {\r\n return this.foundation!.getWidth();\r\n }\r\n\r\n getDefaultFoundation() {\r\n const adapter: MDCFloatingLabelAdapter = {\r\n addClass: (className) => this.root.classList.add(className),\r\n removeClass: (className) => this.root.classList.remove(className),\r\n getWidth: () => estimateScrollWidth(this.root),\r\n registerInteractionHandler: (evtType, handler) => this.listen(evtType, handler),\r\n deregisterInteractionHandler: (evtType, handler) => this.unlisten(evtType, handler),\r\n };\r\n return new MDCFloatingLabelFoundation(adapter);\r\n }\r\n}\r\n"]}
|