@omicronenergy/oscd-ui 0.0.5 → 0.0.7
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/app-bar/OscdAppBar.d.ts +47 -0
- package/app-bar/OscdAppBar.js +152 -0
- package/app-bar/OscdAppBar.js.map +1 -0
- package/app-bar/oscd-app-bar.d.ts +12 -0
- package/app-bar/oscd-app-bar.js +9 -0
- package/app-bar/oscd-app-bar.js.map +1 -0
- package/button/OscdFilledButton.d.ts +38 -0
- package/button/OscdFilledButton.js +45 -0
- package/button/OscdFilledButton.js.map +1 -0
- package/button/OscdFilledButton.spec.d.ts +6 -0
- package/button/OscdFilledButton.spec.js +79 -0
- package/button/OscdFilledButton.spec.js.map +1 -0
- package/button/OscdOutlinedButton.d.ts +40 -0
- package/button/OscdOutlinedButton.js +37 -0
- package/button/OscdOutlinedButton.js.map +1 -0
- package/button/OscdTextButton.d.ts +38 -0
- package/button/OscdTextButton.js +35 -0
- package/button/OscdTextButton.js.map +1 -0
- package/button/oscd-filled-button.d.ts +7 -0
- package/button/oscd-filled-button.js +4 -0
- package/button/oscd-filled-button.js.map +1 -0
- package/button/oscd-outlined-button.d.ts +12 -0
- package/button/oscd-outlined-button.js +9 -0
- package/button/oscd-outlined-button.js.map +1 -0
- package/button/oscd-text-button.d.ts +12 -0
- package/button/oscd-text-button.js +9 -0
- package/button/oscd-text-button.js.map +1 -0
- package/dialog/OscdDialog.d.ts +42 -0
- package/dialog/OscdDialog.js +49 -0
- package/dialog/OscdDialog.js.map +1 -0
- package/dialog/oscd-dialog.d.ts +7 -0
- package/dialog/oscd-dialog.js +4 -0
- package/dialog/oscd-dialog.js.map +1 -0
- package/divider/OscdDivider.d.ts +26 -0
- package/divider/OscdDivider.js +22 -0
- package/divider/OscdDivider.js.map +1 -0
- package/divider/oscd-divider.d.ts +7 -0
- package/divider/oscd-divider.js +4 -0
- package/divider/oscd-divider.js.map +1 -0
- package/elevation/OscdElevation.d.ts +23 -0
- package/elevation/OscdElevation.js +19 -0
- package/elevation/OscdElevation.js.map +1 -0
- package/elevation/_elevation.scss +6 -0
- package/elevation/internal/_elevation.scss +176 -0
- package/elevation/internal/elevation-styles.css +1 -0
- package/elevation/internal/elevation-styles.css.map +1 -0
- package/elevation/internal/elevation-styles.d.ts +1 -0
- package/elevation/internal/elevation-styles.js +10 -0
- package/elevation/internal/elevation-styles.js.map +1 -0
- package/elevation/internal/elevation-styles.scss +10 -0
- package/elevation/internal/elevation.d.ts +13 -0
- package/elevation/internal/elevation.js +21 -0
- package/elevation/internal/elevation.js.map +1 -0
- package/elevation/oscd-elevation.d.ts +12 -0
- package/elevation/oscd-elevation.js +9 -0
- package/elevation/oscd-elevation.js.map +1 -0
- package/field/OscdFilledField.d.ts +21 -0
- package/field/OscdFilledField.js +18 -0
- package/field/OscdFilledField.js.map +1 -0
- package/field/OscdOutlinedField.d.ts +23 -0
- package/field/OscdOutlinedField.js +20 -0
- package/field/OscdOutlinedField.js.map +1 -0
- package/field/oscd-filled-field.d.ts +7 -0
- package/field/oscd-filled-field.js +4 -0
- package/field/oscd-filled-field.js.map +1 -0
- package/field/oscd-outlined-field.d.ts +7 -0
- package/field/oscd-outlined-field.js +4 -0
- package/field/oscd-outlined-field.js.map +1 -0
- package/focus/OscdFocusRing.d.ts +5 -0
- package/focus/OscdFocusRing.js +6 -0
- package/focus/OscdFocusRing.js.map +1 -0
- package/focus/_focus-ring.scss +6 -0
- package/focus/internal/_focus-ring.scss +113 -0
- package/focus/internal/focus-ring-styles.css +1 -0
- package/focus/internal/focus-ring-styles.css.map +1 -0
- package/focus/internal/focus-ring-styles.d.ts +1 -0
- package/focus/internal/focus-ring-styles.js +10 -0
- package/focus/internal/focus-ring-styles.js.map +1 -0
- package/focus/internal/focus-ring-styles.scss +10 -0
- package/focus/internal/focus-ring.d.ts +39 -0
- package/focus/internal/focus-ring.js +101 -0
- package/focus/internal/focus-ring.js.map +1 -0
- package/focus/oscd-focus-ring.d.ts +21 -0
- package/focus/oscd-focus-ring.js +23 -0
- package/focus/oscd-focus-ring.js.map +1 -0
- package/icon/OscdIcon.d.ts +24 -0
- package/icon/OscdIcon.js +20 -0
- package/icon/OscdIcon.js.map +1 -0
- package/icon/oscd-icon.d.ts +7 -0
- package/icon/oscd-icon.js +4 -0
- package/icon/oscd-icon.js.map +1 -0
- package/iconbutton/OscdFilledIconButton.d.ts +39 -0
- package/iconbutton/OscdFilledIconButton.js +37 -0
- package/iconbutton/OscdFilledIconButton.js.map +1 -0
- package/iconbutton/OscdFilledTonalIconButton.d.ts +39 -0
- package/iconbutton/OscdFilledTonalIconButton.js +37 -0
- package/iconbutton/OscdFilledTonalIconButton.js.map +1 -0
- package/iconbutton/OscdIconButton.d.ts +38 -0
- package/iconbutton/OscdIconButton.js +36 -0
- package/iconbutton/OscdIconButton.js.map +1 -0
- package/iconbutton/OscdOutlinedIconButton.d.ts +38 -0
- package/iconbutton/OscdOutlinedIconButton.js +36 -0
- package/iconbutton/OscdOutlinedIconButton.js.map +1 -0
- package/iconbutton/oscd-filled-icon-button.d.ts +7 -0
- package/iconbutton/oscd-filled-icon-button.js +4 -0
- package/iconbutton/oscd-filled-icon-button.js.map +1 -0
- package/iconbutton/oscd-filled-tonal-icon-button.d.ts +7 -0
- package/iconbutton/oscd-filled-tonal-icon-button.js +4 -0
- package/iconbutton/oscd-filled-tonal-icon-button.js.map +1 -0
- package/iconbutton/oscd-icon-button.d.ts +7 -0
- package/iconbutton/oscd-icon-button.js +4 -0
- package/iconbutton/oscd-icon-button.js.map +1 -0
- package/iconbutton/oscd-outlined-icon-button.d.ts +7 -0
- package/iconbutton/oscd-outlined-icon-button.js +4 -0
- package/iconbutton/oscd-outlined-icon-button.js.map +1 -0
- package/internal/aria/aria.d.ts +103 -0
- package/internal/aria/aria.js +81 -0
- package/internal/aria/aria.js.map +1 -0
- package/internal/aria/delegate.d.ts +54 -0
- package/internal/aria/delegate.js +176 -0
- package/internal/aria/delegate.js.map +1 -0
- package/internal/controller/attachable-controller.d.ts +114 -0
- package/internal/controller/attachable-controller.js +121 -0
- package/internal/controller/attachable-controller.js.map +1 -0
- package/internal/controller/form-submitter.d.ts +70 -0
- package/internal/controller/form-submitter.js +69 -0
- package/internal/controller/form-submitter.js.map +1 -0
- package/internal/controller/is-rtl.d.ts +14 -0
- package/internal/controller/is-rtl.js +18 -0
- package/internal/controller/is-rtl.js.map +1 -0
- package/internal/controller/string-converter.d.ts +9 -0
- package/internal/controller/string-converter.js +14 -0
- package/internal/controller/string-converter.js.map +1 -0
- package/internal/events/dispatch-hooks.d.ts +85 -0
- package/internal/events/dispatch-hooks.js +151 -0
- package/internal/events/dispatch-hooks.js.map +1 -0
- package/internal/events/form-label-activation.d.ts +55 -0
- package/internal/events/form-label-activation.js +96 -0
- package/internal/events/form-label-activation.js.map +1 -0
- package/internal/events/redispatch-event.d.ts +27 -0
- package/internal/events/redispatch-event.js +40 -0
- package/internal/events/redispatch-event.js.map +1 -0
- package/internal/motion/_animation.scss +33 -0
- package/internal/motion/animation.d.ts +80 -0
- package/internal/motion/animation.js +101 -0
- package/internal/motion/animation.js.map +1 -0
- package/internal/sass/_string-ext.scss +195 -0
- package/internal/sass/_var.scss +237 -0
- package/labs/badge/OscdBadge.d.ts +14 -0
- package/labs/badge/OscdBadge.js +15 -0
- package/labs/badge/OscdBadge.js.map +1 -0
- package/labs/badge/_badge.scss +6 -0
- package/labs/badge/internal/_badge.scss +76 -0
- package/labs/badge/internal/badge-styles.css +1 -0
- package/labs/badge/internal/badge-styles.css.map +1 -0
- package/labs/badge/internal/badge-styles.d.ts +1 -0
- package/labs/badge/internal/badge-styles.js +10 -0
- package/labs/badge/internal/badge-styles.js.map +1 -0
- package/labs/badge/internal/badge-styles.scss +10 -0
- package/labs/badge/internal/badge.d.ts +13 -0
- package/labs/badge/internal/badge.js +28 -0
- package/labs/badge/internal/badge.js.map +1 -0
- package/labs/badge/oscd-badge.d.ts +19 -0
- package/labs/badge/oscd-badge.js +21 -0
- package/labs/badge/oscd-badge.js.map +1 -0
- package/labs/behaviors/constraint-validation.d.ts +133 -0
- package/labs/behaviors/constraint-validation.js +131 -0
- package/labs/behaviors/constraint-validation.js.map +1 -0
- package/labs/behaviors/element-internals.d.ts +45 -0
- package/labs/behaviors/element-internals.js +46 -0
- package/labs/behaviors/element-internals.js.map +1 -0
- package/labs/behaviors/focusable.d.ts +39 -0
- package/labs/behaviors/focusable.js +87 -0
- package/labs/behaviors/focusable.js.map +1 -0
- package/labs/behaviors/form-associated.d.ts +199 -0
- package/labs/behaviors/form-associated.js +175 -0
- package/labs/behaviors/form-associated.js.map +1 -0
- package/labs/behaviors/mixin.d.ts +54 -0
- package/labs/behaviors/mixin.js +7 -0
- package/labs/behaviors/mixin.js.map +1 -0
- package/labs/behaviors/on-report-validity.d.ts +71 -0
- package/labs/behaviors/on-report-validity.js +289 -0
- package/labs/behaviors/on-report-validity.js.map +1 -0
- package/labs/behaviors/validators/checkbox-validator.d.ts +35 -0
- package/labs/behaviors/validators/checkbox-validator.js +34 -0
- package/labs/behaviors/validators/checkbox-validator.js.map +1 -0
- package/labs/behaviors/validators/radio-validator.d.ts +38 -0
- package/labs/behaviors/validators/radio-validator.js +67 -0
- package/labs/behaviors/validators/radio-validator.js.map +1 -0
- package/labs/behaviors/validators/select-validator.d.ts +35 -0
- package/labs/behaviors/validators/select-validator.js +35 -0
- package/labs/behaviors/validators/select-validator.js.map +1 -0
- package/labs/behaviors/validators/text-field-validator.d.ts +110 -0
- package/labs/behaviors/validators/text-field-validator.js +156 -0
- package/labs/behaviors/validators/text-field-validator.js.map +1 -0
- package/labs/behaviors/validators/validator.d.ts +96 -0
- package/labs/behaviors/validators/validator.js +73 -0
- package/labs/behaviors/validators/validator.js.map +1 -0
- package/labs/card/OscdElevatedCard.d.ts +20 -0
- package/labs/card/OscdElevatedCard.js +23 -0
- package/labs/card/OscdElevatedCard.js.map +1 -0
- package/labs/card/OscdFilledCard.d.ts +20 -0
- package/labs/card/OscdFilledCard.js +23 -0
- package/labs/card/OscdFilledCard.js.map +1 -0
- package/labs/card/OscdOutlinedCard.d.ts +20 -0
- package/labs/card/OscdOutlinedCard.js +23 -0
- package/labs/card/OscdOutlinedCard.js.map +1 -0
- package/labs/card/_elevated-card.scss +6 -0
- package/labs/card/_filled-card.scss +6 -0
- package/labs/card/_outlined-card.scss +6 -0
- package/labs/card/demo/demo.d.ts +7 -0
- package/labs/card/demo/demo.js +13 -0
- package/labs/card/demo/demo.js.map +1 -0
- package/labs/card/demo/stories.d.ts +15 -0
- package/labs/card/demo/stories.js +104 -0
- package/labs/card/demo/stories.js.map +1 -0
- package/labs/card/internal/_elevated-card.scss +35 -0
- package/labs/card/internal/_filled-card.scss +35 -0
- package/labs/card/internal/_outlined-card.scss +40 -0
- package/labs/card/internal/_shared.scss +62 -0
- package/labs/card/internal/card.d.ts +12 -0
- package/labs/card/internal/card.js +21 -0
- package/labs/card/internal/card.js.map +1 -0
- package/labs/card/internal/elevated-styles.css +1 -0
- package/labs/card/internal/elevated-styles.css.map +1 -0
- package/labs/card/internal/elevated-styles.d.ts +1 -0
- package/labs/card/internal/elevated-styles.js +10 -0
- package/labs/card/internal/elevated-styles.js.map +1 -0
- package/labs/card/internal/elevated-styles.scss +10 -0
- package/labs/card/internal/filled-styles.css +1 -0
- package/labs/card/internal/filled-styles.css.map +1 -0
- package/labs/card/internal/filled-styles.d.ts +1 -0
- package/labs/card/internal/filled-styles.js +10 -0
- package/labs/card/internal/filled-styles.js.map +1 -0
- package/labs/card/internal/filled-styles.scss +10 -0
- package/labs/card/internal/outlined-styles.css +1 -0
- package/labs/card/internal/outlined-styles.css.map +1 -0
- package/labs/card/internal/outlined-styles.d.ts +1 -0
- package/labs/card/internal/outlined-styles.js +10 -0
- package/labs/card/internal/outlined-styles.js.map +1 -0
- package/labs/card/internal/outlined-styles.scss +10 -0
- package/labs/card/internal/shared-styles.css +1 -0
- package/labs/card/internal/shared-styles.css.map +1 -0
- package/labs/card/internal/shared-styles.d.ts +1 -0
- package/labs/card/internal/shared-styles.js +10 -0
- package/labs/card/internal/shared-styles.js.map +1 -0
- package/labs/card/internal/shared-styles.scss +10 -0
- package/labs/card/oscd-elevated-card.d.ts +20 -0
- package/labs/card/oscd-elevated-card.js +23 -0
- package/labs/card/oscd-elevated-card.js.map +1 -0
- package/labs/card/oscd-filled-card.d.ts +25 -0
- package/labs/card/oscd-filled-card.js +28 -0
- package/labs/card/oscd-filled-card.js.map +1 -0
- package/labs/card/oscd-outlined-card.d.ts +20 -0
- package/labs/card/oscd-outlined-card.js +23 -0
- package/labs/card/oscd-outlined-card.js.map +1 -0
- package/list/OscdList.d.ts +34 -0
- package/list/OscdList.js +44 -0
- package/list/OscdList.js.map +1 -0
- package/list/OscdListItem.d.ts +56 -0
- package/list/OscdListItem.js +90 -0
- package/list/OscdListItem.js.map +1 -0
- package/list/oscd-list-item.d.ts +7 -0
- package/list/oscd-list-item.js +4 -0
- package/list/oscd-list-item.js.map +1 -0
- package/list/oscd-list.d.ts +7 -0
- package/list/oscd-list.js +4 -0
- package/list/oscd-list.js.map +1 -0
- package/menu/OscdMenu.d.ts +68 -0
- package/menu/OscdMenu.js +62 -0
- package/menu/OscdMenu.js.map +1 -0
- package/menu/OscdMenuItem.d.ts +32 -0
- package/menu/OscdMenuItem.js +26 -0
- package/menu/OscdMenuItem.js.map +1 -0
- package/menu/oscd-menu-item.d.ts +7 -0
- package/menu/oscd-menu-item.js +4 -0
- package/menu/oscd-menu-item.js.map +1 -0
- package/menu/oscd-menu.d.ts +7 -0
- package/menu/oscd-menu.js +4 -0
- package/menu/oscd-menu.js.map +1 -0
- package/navigation-drawer/OscdNavigationDrawer.d.ts +21 -0
- package/navigation-drawer/OscdNavigationDrawer.js +43 -0
- package/navigation-drawer/OscdNavigationDrawer.js.map +1 -0
- package/navigation-drawer/OscdNavigationDrawerHeader.d.ts +15 -0
- package/navigation-drawer/OscdNavigationDrawerHeader.js +66 -0
- package/navigation-drawer/OscdNavigationDrawerHeader.js.map +1 -0
- package/navigation-drawer/oscd-navigation-drawer-header.d.ts +7 -0
- package/navigation-drawer/oscd-navigation-drawer-header.js +4 -0
- package/navigation-drawer/oscd-navigation-drawer-header.js.map +1 -0
- package/navigation-drawer/oscd-navigation-drawer.d.ts +7 -0
- package/navigation-drawer/oscd-navigation-drawer.js +4 -0
- package/navigation-drawer/oscd-navigation-drawer.js.map +1 -0
- package/package.json +79 -107
- package/radio/OscdRadio.d.ts +31 -0
- package/radio/OscdRadio.js +27 -0
- package/radio/OscdRadio.js.map +1 -0
- package/radio/demo/demo.d.ts +7 -0
- package/radio/demo/demo.js +14 -0
- package/radio/demo/demo.js.map +1 -0
- package/radio/demo/stories.d.ts +13 -0
- package/radio/demo/stories.js +97 -0
- package/radio/demo/stories.js.map +1 -0
- package/radio/internal/_radio.scss +198 -0
- package/radio/internal/radio-styles.css +1 -0
- package/radio/internal/radio-styles.css.map +1 -0
- package/radio/internal/radio-styles.d.ts +1 -0
- package/radio/internal/radio-styles.js +10 -0
- package/radio/internal/radio-styles.js.map +1 -0
- package/radio/internal/radio-styles.scss +10 -0
- package/radio/internal/radio.d.ts +59 -0
- package/radio/internal/radio.js +175 -0
- package/radio/internal/radio.js.map +1 -0
- package/radio/internal/single-selection-controller.d.ts +80 -0
- package/radio/internal/single-selection-controller.js +199 -0
- package/radio/internal/single-selection-controller.js.map +1 -0
- package/radio/oscd-radio.d.ts +32 -0
- package/radio/oscd-radio.js +34 -0
- package/radio/oscd-radio.js.map +1 -0
- package/ripple/OscdRipple.d.ts +5 -0
- package/ripple/OscdRipple.js +6 -0
- package/ripple/OscdRipple.js.map +1 -0
- package/ripple/_ripple.scss +6 -0
- package/ripple/internal/_ripple.scss +92 -0
- package/ripple/internal/ripple-styles.css +1 -0
- package/ripple/internal/ripple-styles.css.map +1 -0
- package/ripple/internal/ripple-styles.d.ts +1 -0
- package/ripple/internal/ripple-styles.js +10 -0
- package/ripple/internal/ripple-styles.js.map +1 -0
- package/ripple/internal/ripple-styles.scss +10 -0
- package/ripple/internal/ripple.d.ts +76 -0
- package/ripple/internal/ripple.js +425 -0
- package/ripple/internal/ripple.js.map +1 -0
- package/ripple/oscd-ripple.d.ts +29 -0
- package/ripple/oscd-ripple.js +31 -0
- package/ripple/oscd-ripple.js.map +1 -0
- package/select/OscdFilledSelect.d.ts +42 -0
- package/select/OscdFilledSelect.js +39 -0
- package/select/OscdFilledSelect.js.map +1 -0
- package/select/OscdOutlinedSelect.d.ts +42 -0
- package/select/OscdOutlinedSelect.js +39 -0
- package/select/OscdOutlinedSelect.js.map +1 -0
- package/select/OscdSelectOption.d.ts +46 -0
- package/select/OscdSelectOption.js +41 -0
- package/select/OscdSelectOption.js.map +1 -0
- package/select/oscd-filled-select.d.ts +7 -0
- package/select/oscd-filled-select.js +4 -0
- package/select/oscd-filled-select.js.map +1 -0
- package/select/oscd-outlined-select.d.ts +7 -0
- package/select/oscd-outlined-select.js +4 -0
- package/select/oscd-outlined-select.js.map +1 -0
- package/select/oscd-select-option.d.ts +7 -0
- package/select/oscd-select-option.js +4 -0
- package/select/oscd-select-option.js.map +1 -0
- package/tabs/OscdPrimaryTab.d.ts +22 -0
- package/tabs/OscdPrimaryTab.js +19 -0
- package/tabs/OscdPrimaryTab.js.map +1 -0
- package/tabs/OscdSecondaryTab.d.ts +22 -0
- package/tabs/OscdSecondaryTab.js +19 -0
- package/tabs/OscdSecondaryTab.js.map +1 -0
- package/tabs/OscdTabs.d.ts +22 -0
- package/tabs/OscdTabs.js +18 -0
- package/tabs/OscdTabs.js.map +1 -0
- package/tabs/oscd-primary-tab.d.ts +7 -0
- package/tabs/oscd-primary-tab.js +4 -0
- package/tabs/oscd-primary-tab.js.map +1 -0
- package/tabs/oscd-secondary-tab.d.ts +7 -0
- package/tabs/oscd-secondary-tab.js +4 -0
- package/tabs/oscd-secondary-tab.js.map +1 -0
- package/tabs/oscd-tabs.d.ts +7 -0
- package/tabs/oscd-tabs.js +4 -0
- package/tabs/oscd-tabs.js.map +1 -0
- package/textfield/OscdFilledTextField.d.ts +30 -0
- package/textfield/OscdFilledTextField.js +33 -0
- package/textfield/OscdFilledTextField.js.map +1 -0
- package/textfield/OscdOutlinedTextField.d.ts +28 -0
- package/textfield/OscdOutlinedTextField.js +31 -0
- package/textfield/OscdOutlinedTextField.js.map +1 -0
- package/textfield/oscd-filled-text-field.d.ts +7 -0
- package/textfield/oscd-filled-text-field.js +4 -0
- package/textfield/oscd-filled-text-field.js.map +1 -0
- package/textfield/oscd-outlined-text-field.d.ts +7 -0
- package/textfield/oscd-outlined-text-field.js +4 -0
- package/textfield/oscd-outlined-text-field.js.map +1 -0
- package/tokens/_index.scss +66 -0
- package/tokens/_md-comp-assist-chip.scss +153 -0
- package/tokens/_md-comp-badge.scss +39 -0
- package/tokens/_md-comp-checkbox.scss +156 -0
- package/tokens/_md-comp-circular-progress.scss +79 -0
- package/tokens/_md-comp-dialog.scss +112 -0
- package/tokens/_md-comp-divider.scss +43 -0
- package/tokens/_md-comp-elevated-button.scss +143 -0
- package/tokens/_md-comp-elevated-card.scss +80 -0
- package/tokens/_md-comp-elevation.scss +48 -0
- package/tokens/_md-comp-fab-branded.scss +155 -0
- package/tokens/_md-comp-fab.scss +296 -0
- package/tokens/_md-comp-filled-button.scss +143 -0
- package/tokens/_md-comp-filled-card.scss +80 -0
- package/tokens/_md-comp-filled-field.scss +293 -0
- package/tokens/_md-comp-filled-icon-button.scss +119 -0
- package/tokens/_md-comp-filled-select.scss +198 -0
- package/tokens/_md-comp-filled-text-field.scss +200 -0
- package/tokens/_md-comp-filled-tonal-button.scss +143 -0
- package/tokens/_md-comp-filled-tonal-icon-button.scss +123 -0
- package/tokens/_md-comp-filter-chip.scss +265 -0
- package/tokens/_md-comp-focus-ring.scss +78 -0
- package/tokens/_md-comp-full-screen-dialog.scss +25 -0
- package/tokens/_md-comp-icon-button.scss +94 -0
- package/tokens/_md-comp-icon.scss +46 -0
- package/tokens/_md-comp-input-chip.scss +247 -0
- package/tokens/_md-comp-item.scss +88 -0
- package/tokens/_md-comp-linear-progress.scss +64 -0
- package/tokens/_md-comp-list-item.scss +173 -0
- package/tokens/_md-comp-list.scss +44 -0
- package/tokens/_md-comp-menu-item.scss +125 -0
- package/tokens/_md-comp-menu.scss +59 -0
- package/tokens/_md-comp-navigation-bar.scss +44 -0
- package/tokens/_md-comp-navigation-drawer.scss +44 -0
- package/tokens/_md-comp-outlined-button.scss +139 -0
- package/tokens/_md-comp-outlined-card.scss +86 -0
- package/tokens/_md-comp-outlined-field.scss +268 -0
- package/tokens/_md-comp-outlined-icon-button.scss +117 -0
- package/tokens/_md-comp-outlined-segmented-button.scss +123 -0
- package/tokens/_md-comp-outlined-select.scss +186 -0
- package/tokens/_md-comp-outlined-text-field.scss +187 -0
- package/tokens/_md-comp-primary-tab.scss +160 -0
- package/tokens/_md-comp-radio.scss +86 -0
- package/tokens/_md-comp-ripple.scss +48 -0
- package/tokens/_md-comp-secondary-tab.scss +158 -0
- package/tokens/_md-comp-slider.scss +117 -0
- package/tokens/_md-comp-suggestion-chip.scss +157 -0
- package/tokens/_md-comp-switch.scss +187 -0
- package/tokens/_md-comp-test-table.scss +43 -0
- package/tokens/_md-comp-text-button.scss +132 -0
- package/tokens/_md-ref-palette.scss +112 -0
- package/tokens/_md-ref-typeface.scss +46 -0
- package/tokens/_md-sys-color.scss +119 -0
- package/tokens/_md-sys-elevation.scss +31 -0
- package/tokens/_md-sys-motion.scss +12 -0
- package/tokens/_md-sys-shape.scss +102 -0
- package/tokens/_md-sys-state.scss +12 -0
- package/tokens/_md-sys-typescale.scss +149 -0
- package/tokens/internal/_shape.scss +93 -0
- package/tokens/internal/_validate.scss +109 -0
- package/tokens/v0_192/_index.scss +107 -0
- package/tokens/v0_192/_md-comp-assist-chip.scss +111 -0
- package/tokens/v0_192/_md-comp-badge.scss +61 -0
- package/tokens/v0_192/_md-comp-banner.scss +76 -0
- package/tokens/v0_192/_md-comp-bottom-app-bar.scss +36 -0
- package/tokens/v0_192/_md-comp-carousel-item.scss +66 -0
- package/tokens/v0_192/_md-comp-checkbox.scss +129 -0
- package/tokens/v0_192/_md-comp-circular-progress-indicator.scss +41 -0
- package/tokens/v0_192/_md-comp-data-table.scss +99 -0
- package/tokens/v0_192/_md-comp-date-input-modal.scss +90 -0
- package/tokens/v0_192/_md-comp-date-picker-docked.scss +247 -0
- package/tokens/v0_192/_md-comp-date-picker-modal.scss +306 -0
- package/tokens/v0_192/_md-comp-dialog.scss +124 -0
- package/tokens/v0_192/_md-comp-divider.scss +28 -0
- package/tokens/v0_192/_md-comp-elevated-button.scss +92 -0
- package/tokens/v0_192/_md-comp-elevated-card.scss +60 -0
- package/tokens/v0_192/_md-comp-extended-fab-branded.scss +89 -0
- package/tokens/v0_192/_md-comp-extended-fab-primary.scss +97 -0
- package/tokens/v0_192/_md-comp-extended-fab-secondary.scss +98 -0
- package/tokens/v0_192/_md-comp-extended-fab-surface.scss +93 -0
- package/tokens/v0_192/_md-comp-extended-fab-tertiary.scss +98 -0
- package/tokens/v0_192/_md-comp-fab-branded-large.scss +63 -0
- package/tokens/v0_192/_md-comp-fab-branded.scss +63 -0
- package/tokens/v0_192/_md-comp-fab-primary-large.scss +68 -0
- package/tokens/v0_192/_md-comp-fab-primary-small.scss +68 -0
- package/tokens/v0_192/_md-comp-fab-primary.scss +68 -0
- package/tokens/v0_192/_md-comp-fab-secondary-large.scss +69 -0
- package/tokens/v0_192/_md-comp-fab-secondary-small.scss +69 -0
- package/tokens/v0_192/_md-comp-fab-secondary.scss +69 -0
- package/tokens/v0_192/_md-comp-fab-surface-large.scss +67 -0
- package/tokens/v0_192/_md-comp-fab-surface-small.scss +67 -0
- package/tokens/v0_192/_md-comp-fab-surface.scss +67 -0
- package/tokens/v0_192/_md-comp-fab-tertiary-large.scss +69 -0
- package/tokens/v0_192/_md-comp-fab-tertiary-small.scss +69 -0
- package/tokens/v0_192/_md-comp-fab-tertiary.scss +69 -0
- package/tokens/v0_192/_md-comp-filled-autocomplete.scss +239 -0
- package/tokens/v0_192/_md-comp-filled-button.scss +92 -0
- package/tokens/v0_192/_md-comp-filled-card.scss +62 -0
- package/tokens/v0_192/_md-comp-filled-icon-button.scss +83 -0
- package/tokens/v0_192/_md-comp-filled-menu-button.scss +101 -0
- package/tokens/v0_192/_md-comp-filled-select.scss +273 -0
- package/tokens/v0_192/_md-comp-filled-text-field.scss +193 -0
- package/tokens/v0_192/_md-comp-filled-tonal-button.scss +102 -0
- package/tokens/v0_192/_md-comp-filled-tonal-icon-button.scss +90 -0
- package/tokens/v0_192/_md-comp-filter-chip.scss +210 -0
- package/tokens/v0_192/_md-comp-full-screen-dialog.scss +114 -0
- package/tokens/v0_192/_md-comp-icon-button.scss +74 -0
- package/tokens/v0_192/_md-comp-input-chip.scss +187 -0
- package/tokens/v0_192/_md-comp-linear-progress-indicator.scss +43 -0
- package/tokens/v0_192/_md-comp-list.scss +255 -0
- package/tokens/v0_192/_md-comp-menu.scss +44 -0
- package/tokens/v0_192/_md-comp-navigation-bar.scss +115 -0
- package/tokens/v0_192/_md-comp-navigation-drawer.scss +165 -0
- package/tokens/v0_192/_md-comp-navigation-rail.scss +119 -0
- package/tokens/v0_192/_md-comp-outlined-autocomplete.scss +229 -0
- package/tokens/v0_192/_md-comp-outlined-button.scss +87 -0
- package/tokens/v0_192/_md-comp-outlined-card.scss +66 -0
- package/tokens/v0_192/_md-comp-outlined-icon-button.scss +83 -0
- package/tokens/v0_192/_md-comp-outlined-menu-button.scss +97 -0
- package/tokens/v0_192/_md-comp-outlined-segmented-button.scss +115 -0
- package/tokens/v0_192/_md-comp-outlined-select.scss +263 -0
- package/tokens/v0_192/_md-comp-outlined-text-field.scss +174 -0
- package/tokens/v0_192/_md-comp-plain-tooltip.scss +58 -0
- package/tokens/v0_192/_md-comp-primary-navigation-tab.scss +124 -0
- package/tokens/v0_192/_md-comp-radio-button.scss +71 -0
- package/tokens/v0_192/_md-comp-rich-tooltip.scss +122 -0
- package/tokens/v0_192/_md-comp-scrim.scss +28 -0
- package/tokens/v0_192/_md-comp-search-bar.scss +100 -0
- package/tokens/v0_192/_md-comp-search-view.scss +94 -0
- package/tokens/v0_192/_md-comp-secondary-navigation-tab.scss +87 -0
- package/tokens/v0_192/_md-comp-sheet-bottom.scss +46 -0
- package/tokens/v0_192/_md-comp-sheet-floating.scss +35 -0
- package/tokens/v0_192/_md-comp-sheet-side.scss +94 -0
- package/tokens/v0_192/_md-comp-slider.scss +118 -0
- package/tokens/v0_192/_md-comp-snackbar.scss +130 -0
- package/tokens/v0_192/_md-comp-standard-menu-button.scss +101 -0
- package/tokens/v0_192/_md-comp-suggestion-chip.scss +127 -0
- package/tokens/v0_192/_md-comp-switch.scss +141 -0
- package/tokens/v0_192/_md-comp-text-button.scss +80 -0
- package/tokens/v0_192/_md-comp-time-input.scss +220 -0
- package/tokens/v0_192/_md-comp-time-picker.scss +267 -0
- package/tokens/v0_192/_md-comp-top-app-bar-large.scss +64 -0
- package/tokens/v0_192/_md-comp-top-app-bar-medium.scss +64 -0
- package/tokens/v0_192/_md-comp-top-app-bar-small-centered.scss +71 -0
- package/tokens/v0_192/_md-comp-top-app-bar-small.scss +67 -0
- package/tokens/v0_192/_md-ref-palette.scss +109 -0
- package/tokens/v0_192/_md-ref-typeface.scss +23 -0
- package/tokens/v0_192/_md-sys-color.scss +135 -0
- package/tokens/v0_192/_md-sys-elevation.scss +24 -0
- package/tokens/v0_192/_md-sys-motion.scss +55 -0
- package/tokens/v0_192/_md-sys-shape.scss +33 -0
- package/tokens/v0_192/_md-sys-state.scss +22 -0
- package/tokens/v0_192/_md-sys-typescale.scss +286 -0
- package/tokens/v0_192/index.test.css +1 -0
- package/tokens/v0_192/index.test.css.map +1 -0
- package/tokens/v0_192/index.test.scss +584 -0
- package/tokens/v0_192/lib.test.css +1 -0
- package/tokens/v0_192/lib.test.css.map +1 -0
- package/tokens/v0_192/lib.test.scss +663 -0
- package/utils/storybook/getStorybookHelpers.d.ts +4 -0
- package/utils/storybook/getStorybookHelpers.js +52 -0
- package/utils/storybook/getStorybookHelpers.js.map +1 -0
- package/utils/storybook/scopedWcDecorator.d.ts +2 -0
- package/utils/storybook/scopedWcDecorator.js +38 -0
- package/utils/storybook/scopedWcDecorator.js.map +1 -0
- package/utils/storybook/stories/components/knob-ui-components.d.ts +103 -0
- package/utils/storybook/stories/components/knob-ui-components.js +414 -0
- package/utils/storybook/stories/components/knob-ui-components.js.map +1 -0
- package/utils/storybook/stories/components/stories-renderer.d.ts +40 -0
- package/utils/storybook/stories/components/stories-renderer.js +204 -0
- package/utils/storybook/stories/components/stories-renderer.js.map +1 -0
- package/utils/storybook/stories/components/story-knob-panel.d.ts +53 -0
- package/utils/storybook/stories/components/story-knob-panel.js +333 -0
- package/utils/storybook/stories/components/story-knob-panel.js.map +1 -0
- package/utils/storybook/stories/components/story-renderer.d.ts +27 -0
- package/utils/storybook/stories/components/story-renderer.js +84 -0
- package/utils/storybook/stories/components/story-renderer.js.map +1 -0
- package/utils/storybook/stories/index.d.ts +8 -0
- package/utils/storybook/stories/index.js +11 -0
- package/utils/storybook/stories/index.js.map +1 -0
- package/utils/storybook/stories/knobs.d.ts +143 -0
- package/utils/storybook/stories/knobs.js +177 -0
- package/utils/storybook/stories/knobs.js.map +1 -0
- package/utils/storybook/stories/material-collection.d.ts +75 -0
- package/utils/storybook/stories/material-collection.js +59 -0
- package/utils/storybook/stories/material-collection.js.map +1 -0
- package/utils/storybook/stories/story.d.ts +85 -0
- package/utils/storybook/stories/story.js +142 -0
- package/utils/storybook/stories/story.js.map +1 -0
- package/utils/storybook/stories/theme-loader.d.ts +13 -0
- package/utils/storybook/stories/theme-loader.js +43 -0
- package/utils/storybook/stories/theme-loader.js.map +1 -0
- package/utils/storybook/themingDecorator.d.ts +19 -0
- package/utils/storybook/themingDecorator.js +100 -0
- package/utils/storybook/themingDecorator.js.map +1 -0
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
* Copyright 2023 Google LLC
|
|
4
|
+
* SPDX-License-Identifier: Apache-2.0
|
|
5
|
+
*/
|
|
6
|
+
import { __decorate } from "tslib";
|
|
7
|
+
import { customElement } from 'lit/decorators.js';
|
|
8
|
+
import { Card } from './internal/card.js';
|
|
9
|
+
import { styles as filledStyles } from './internal/filled-styles.js';
|
|
10
|
+
import { styles as sharedStyles } from './internal/shared-styles.js';
|
|
11
|
+
import '../../elevation/elevation.js';
|
|
12
|
+
/**
|
|
13
|
+
* @tag oscd-filled-card
|
|
14
|
+
* @class OscdFilledCard
|
|
15
|
+
* @summary A card component with a filled background.
|
|
16
|
+
*
|
|
17
|
+
* `oscd-filled-card` is a card component with a filled background. It can be used to group related content and actions.
|
|
18
|
+
* @final
|
|
19
|
+
* @suppress {visibility}
|
|
20
|
+
*/
|
|
21
|
+
let OscdFilledCard = class OscdFilledCard extends Card {
|
|
22
|
+
static { this.styles = [sharedStyles, filledStyles]; }
|
|
23
|
+
};
|
|
24
|
+
OscdFilledCard = __decorate([
|
|
25
|
+
customElement('oscd-filled-card')
|
|
26
|
+
], OscdFilledCard);
|
|
27
|
+
export { OscdFilledCard };
|
|
28
|
+
//# sourceMappingURL=oscd-filled-card.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"oscd-filled-card.js","sourceRoot":"","sources":["oscd-filled-card.ts"],"names":[],"mappings":"AAAA;;;;GAIG;;AAGH,OAAO,EAAE,aAAa,EAAE,MAAM,mBAAmB,CAAC;AAElD,OAAO,EAAE,IAAI,EAAE,MAAM,oBAAoB,CAAC;AAC1C,OAAO,EAAE,MAAM,IAAI,YAAY,EAAE,MAAM,6BAA6B,CAAC;AACrE,OAAO,EAAE,MAAM,IAAI,YAAY,EAAE,MAAM,6BAA6B,CAAC;AAErE,OAAO,8BAA8B,CAAC;AAQtC;;;;;;;;GAQG;AAEI,IAAM,cAAc,GAApB,MAAM,cAAe,SAAQ,IAAI;aACtB,WAAM,GAAwB,CAAC,YAAY,EAAE,YAAY,CAAC,AAApD,CAAqD;;AADhE,cAAc;IAD1B,aAAa,CAAC,kBAAkB,CAAC;GACrB,cAAc,CAE1B","sourcesContent":["/**\n * @license\n * Copyright 2023 Google LLC\n * SPDX-License-Identifier: Apache-2.0\n */\n\nimport { CSSResultOrNative } from 'lit';\nimport { customElement } from 'lit/decorators.js';\n\nimport { Card } from './internal/card.js';\nimport { styles as filledStyles } from './internal/filled-styles.js';\nimport { styles as sharedStyles } from './internal/shared-styles.js';\n\nimport '../../elevation/elevation.js';\n\ndeclare global {\n interface HTMLElementTagNameMap {\n 'oscd-filled-card': OscdFilledCard;\n }\n}\n\n/**\n * @tag oscd-filled-card\n * @class OscdFilledCard\n * @summary A card component with a filled background.\n *\n * `oscd-filled-card` is a card component with a filled background. It can be used to group related content and actions.\n * @final\n * @suppress {visibility}\n */\n@customElement('oscd-filled-card')\nexport class OscdFilledCard extends Card {\n static override styles: CSSResultOrNative[] = [sharedStyles, filledStyles];\n}\n"]}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
* Copyright 2023 Google LLC
|
|
4
|
+
* SPDX-License-Identifier: Apache-2.0
|
|
5
|
+
*/
|
|
6
|
+
import { CSSResultOrNative } from 'lit';
|
|
7
|
+
import { Card } from './internal/card.js';
|
|
8
|
+
import '../../elevation/elevation.js';
|
|
9
|
+
declare global {
|
|
10
|
+
interface HTMLElementTagNameMap {
|
|
11
|
+
'oscd-outlined-card': OscdOutlinedCard;
|
|
12
|
+
}
|
|
13
|
+
}
|
|
14
|
+
/**
|
|
15
|
+
* @final
|
|
16
|
+
* @suppress {visibility}
|
|
17
|
+
*/
|
|
18
|
+
export declare class OscdOutlinedCard extends Card {
|
|
19
|
+
static styles: CSSResultOrNative[];
|
|
20
|
+
}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
* Copyright 2023 Google LLC
|
|
4
|
+
* SPDX-License-Identifier: Apache-2.0
|
|
5
|
+
*/
|
|
6
|
+
import { __decorate } from "tslib";
|
|
7
|
+
import { customElement } from 'lit/decorators.js';
|
|
8
|
+
import { Card } from './internal/card.js';
|
|
9
|
+
import { styles as outlinedStyles } from './internal/outlined-styles.js';
|
|
10
|
+
import { styles as sharedStyles } from './internal/shared-styles.js';
|
|
11
|
+
import '../../elevation/elevation.js';
|
|
12
|
+
/**
|
|
13
|
+
* @final
|
|
14
|
+
* @suppress {visibility}
|
|
15
|
+
*/
|
|
16
|
+
let OscdOutlinedCard = class OscdOutlinedCard extends Card {
|
|
17
|
+
static { this.styles = [sharedStyles, outlinedStyles]; }
|
|
18
|
+
};
|
|
19
|
+
OscdOutlinedCard = __decorate([
|
|
20
|
+
customElement('oscd-outlined-card')
|
|
21
|
+
], OscdOutlinedCard);
|
|
22
|
+
export { OscdOutlinedCard };
|
|
23
|
+
//# sourceMappingURL=oscd-outlined-card.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"oscd-outlined-card.js","sourceRoot":"","sources":["oscd-outlined-card.ts"],"names":[],"mappings":"AAAA;;;;GAIG;;AAGH,OAAO,EAAE,aAAa,EAAE,MAAM,mBAAmB,CAAC;AAElD,OAAO,EAAE,IAAI,EAAE,MAAM,oBAAoB,CAAC;AAC1C,OAAO,EAAE,MAAM,IAAI,cAAc,EAAE,MAAM,+BAA+B,CAAC;AACzE,OAAO,EAAE,MAAM,IAAI,YAAY,EAAE,MAAM,6BAA6B,CAAC;AACrE,OAAO,8BAA8B,CAAC;AAQtC;;;GAGG;AAEI,IAAM,gBAAgB,GAAtB,MAAM,gBAAiB,SAAQ,IAAI;aACxB,WAAM,GAAwB,CAAC,YAAY,EAAE,cAAc,CAAC,AAAtD,CAAuD;;AADlE,gBAAgB;IAD5B,aAAa,CAAC,oBAAoB,CAAC;GACvB,gBAAgB,CAE5B","sourcesContent":["/**\n * @license\n * Copyright 2023 Google LLC\n * SPDX-License-Identifier: Apache-2.0\n */\n\nimport { CSSResultOrNative } from 'lit';\nimport { customElement } from 'lit/decorators.js';\n\nimport { Card } from './internal/card.js';\nimport { styles as outlinedStyles } from './internal/outlined-styles.js';\nimport { styles as sharedStyles } from './internal/shared-styles.js';\nimport '../../elevation/elevation.js';\n\ndeclare global {\n interface HTMLElementTagNameMap {\n 'oscd-outlined-card': OscdOutlinedCard;\n }\n}\n\n/**\n * @final\n * @suppress {visibility}\n */\n@customElement('oscd-outlined-card')\nexport class OscdOutlinedCard extends Card {\n static override styles: CSSResultOrNative[] = [sharedStyles, outlinedStyles];\n}\n"]}
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
* Copyright 2021 Google LLC
|
|
4
|
+
* SPDX-License-Identifier: Apache-2.0
|
|
5
|
+
*/
|
|
6
|
+
/**
|
|
7
|
+
* @license
|
|
8
|
+
* Copyright 2025 OMICRON Electronics GmbH
|
|
9
|
+
* SPDX-License-Identifier: Apache-2.0
|
|
10
|
+
*/
|
|
11
|
+
import { CSSResultOrNative } from 'lit';
|
|
12
|
+
import { List } from '@material/web/list/internal/list.js';
|
|
13
|
+
/**
|
|
14
|
+
* @tag oscd-list
|
|
15
|
+
* @summary Lists are continuous, vertical indexes of text or images.
|
|
16
|
+
*
|
|
17
|
+
* Lists consist of one or more list items, and can contain actions represented
|
|
18
|
+
* by icons and text. List items come in three sizes: one-line, two-line, and
|
|
19
|
+
* three-line.
|
|
20
|
+
*
|
|
21
|
+
* __Takeaways:__
|
|
22
|
+
*
|
|
23
|
+
* - Lists should be sorted in logical ways that make content easy to scan, such
|
|
24
|
+
* as alphabetical, numerical, chronological, or by user preference.
|
|
25
|
+
* - Lists present content in a way that makes it easy to identify a specific
|
|
26
|
+
* item in a collection and act on it.
|
|
27
|
+
* - Lists should present icons, text, and actions in a consistent format.
|
|
28
|
+
*
|
|
29
|
+
* @final
|
|
30
|
+
* @suppress {visibility}
|
|
31
|
+
*/
|
|
32
|
+
export declare class OscdList extends List {
|
|
33
|
+
static styles: CSSResultOrNative[];
|
|
34
|
+
}
|
package/list/OscdList.js
ADDED
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
* Copyright 2021 Google LLC
|
|
4
|
+
* SPDX-License-Identifier: Apache-2.0
|
|
5
|
+
*/
|
|
6
|
+
/**
|
|
7
|
+
* @license
|
|
8
|
+
* Copyright 2025 OMICRON Electronics GmbH
|
|
9
|
+
* SPDX-License-Identifier: Apache-2.0
|
|
10
|
+
*/
|
|
11
|
+
import { css } from 'lit';
|
|
12
|
+
import { List } from '@material/web/list/internal/list.js';
|
|
13
|
+
import { styles } from '@material/web/list/internal/list-styles.js';
|
|
14
|
+
const overrideStyles = css `
|
|
15
|
+
:host {
|
|
16
|
+
--md-list-container-color: var(
|
|
17
|
+
--oscd-list-container-color,
|
|
18
|
+
var(--md-sys-color-surface-container, #fef7ff)
|
|
19
|
+
);
|
|
20
|
+
}
|
|
21
|
+
`;
|
|
22
|
+
/**
|
|
23
|
+
* @tag oscd-list
|
|
24
|
+
* @summary Lists are continuous, vertical indexes of text or images.
|
|
25
|
+
*
|
|
26
|
+
* Lists consist of one or more list items, and can contain actions represented
|
|
27
|
+
* by icons and text. List items come in three sizes: one-line, two-line, and
|
|
28
|
+
* three-line.
|
|
29
|
+
*
|
|
30
|
+
* __Takeaways:__
|
|
31
|
+
*
|
|
32
|
+
* - Lists should be sorted in logical ways that make content easy to scan, such
|
|
33
|
+
* as alphabetical, numerical, chronological, or by user preference.
|
|
34
|
+
* - Lists present content in a way that makes it easy to identify a specific
|
|
35
|
+
* item in a collection and act on it.
|
|
36
|
+
* - Lists should present icons, text, and actions in a consistent format.
|
|
37
|
+
*
|
|
38
|
+
* @final
|
|
39
|
+
* @suppress {visibility}
|
|
40
|
+
*/
|
|
41
|
+
export class OscdList extends List {
|
|
42
|
+
static { this.styles = [styles, overrideStyles]; }
|
|
43
|
+
}
|
|
44
|
+
//# sourceMappingURL=OscdList.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"OscdList.js","sourceRoot":"","sources":["OscdList.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH;;;;GAIG;AACH,OAAO,EAAE,GAAG,EAAqB,MAAM,KAAK,CAAC;AAC7C,OAAO,EAAE,IAAI,EAAE,MAAM,qCAAqC,CAAC;AAC3D,OAAO,EAAE,MAAM,EAAE,MAAM,4CAA4C,CAAC;AAEpE,MAAM,cAAc,GAAG,GAAG,CAAA;;;;;;;CAOzB,CAAC;AAEF;;;;;;;;;;;;;;;;;;GAkBG;AACH,MAAM,OAAO,QAAS,SAAQ,IAAI;aAChB,WAAM,GAAwB,CAAC,MAAM,EAAE,cAAc,CAAC,CAAC","sourcesContent":["/**\n * @license\n * Copyright 2021 Google LLC\n * SPDX-License-Identifier: Apache-2.0\n */\n\n/**\n * @license\n * Copyright 2025 OMICRON Electronics GmbH\n * SPDX-License-Identifier: Apache-2.0\n */\nimport { css, CSSResultOrNative } from 'lit';\nimport { List } from '@material/web/list/internal/list.js';\nimport { styles } from '@material/web/list/internal/list-styles.js';\n\nconst overrideStyles = css`\n :host {\n --md-list-container-color: var(\n --oscd-list-container-color,\n var(--md-sys-color-surface-container, #fef7ff)\n );\n }\n`;\n\n/**\n * @tag oscd-list\n * @summary Lists are continuous, vertical indexes of text or images.\n *\n * Lists consist of one or more list items, and can contain actions represented\n * by icons and text. List items come in three sizes: one-line, two-line, and\n * three-line.\n *\n * __Takeaways:__\n *\n * - Lists should be sorted in logical ways that make content easy to scan, such\n * as alphabetical, numerical, chronological, or by user preference.\n * - Lists present content in a way that makes it easy to identify a specific\n * item in a collection and act on it.\n * - Lists should present icons, text, and actions in a consistent format.\n *\n * @final\n * @suppress {visibility}\n */\nexport class OscdList extends List {\n static override styles: CSSResultOrNative[] = [styles, overrideStyles];\n}\n"]}
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
* Copyright 2022 Google LLC
|
|
4
|
+
* SPDX-License-Identifier: Apache-2.0
|
|
5
|
+
*/
|
|
6
|
+
/**
|
|
7
|
+
* @license
|
|
8
|
+
* Copyright 2025 OMICRON Electronics GmbH
|
|
9
|
+
* SPDX-License-Identifier: Apache-2.0
|
|
10
|
+
*/
|
|
11
|
+
import { CSSResultOrNative } from 'lit';
|
|
12
|
+
import { ListItemEl as ListItem } from '@material/web/list/internal/listitem/list-item.js';
|
|
13
|
+
export { type ListItemType } from '@material/web/list/internal/listitem/list-item.js';
|
|
14
|
+
/**
|
|
15
|
+
* @tag oscd-list-item
|
|
16
|
+
* @summary
|
|
17
|
+
* Lists are continuous, vertical indexes of text or images. Items are placed
|
|
18
|
+
* inside the list.
|
|
19
|
+
*
|
|
20
|
+
* Lists consist of one or more list items, and can contain actions represented
|
|
21
|
+
* by icons and text. List items come in three sizes: one-line, two-line, and
|
|
22
|
+
* three-line.
|
|
23
|
+
*
|
|
24
|
+
* __Takeaways:__
|
|
25
|
+
*
|
|
26
|
+
* - Lists should be sorted in logical ways that make content easy to scan, such
|
|
27
|
+
* as alphabetical, numerical, chronological, or by user preference.
|
|
28
|
+
* - Lists present content in a way that makes it easy to identify a specific
|
|
29
|
+
* item in a collection and act on it.
|
|
30
|
+
* - Lists should present icons, text, and actions in a consistent format.
|
|
31
|
+
*
|
|
32
|
+
* Acceptable slot child variants are:
|
|
33
|
+
*
|
|
34
|
+
* - `img[slot=end]`
|
|
35
|
+
* - `img[slot=start]`
|
|
36
|
+
*
|
|
37
|
+
* @example
|
|
38
|
+
* ```html
|
|
39
|
+
* <oscd-list-item
|
|
40
|
+
* headline="User Name"
|
|
41
|
+
* supportingText="user@name.com">
|
|
42
|
+
* <oscd-icon slot="start">account_circle</oscd-icon>
|
|
43
|
+
* <oscd-icon slot="end">check</oscd-icon>
|
|
44
|
+
* </oscd-list-item>
|
|
45
|
+
* ```
|
|
46
|
+
*
|
|
47
|
+
* @final
|
|
48
|
+
* @suppress {visibility}
|
|
49
|
+
*/
|
|
50
|
+
export declare class OscdListItem extends ListItem {
|
|
51
|
+
/**
|
|
52
|
+
* Boolean indicating whether the item is activated.
|
|
53
|
+
*/
|
|
54
|
+
activated: boolean;
|
|
55
|
+
static styles: CSSResultOrNative[];
|
|
56
|
+
}
|
|
@@ -0,0 +1,90 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
* Copyright 2022 Google LLC
|
|
4
|
+
* SPDX-License-Identifier: Apache-2.0
|
|
5
|
+
*/
|
|
6
|
+
import { __decorate } from "tslib";
|
|
7
|
+
/**
|
|
8
|
+
* @license
|
|
9
|
+
* Copyright 2025 OMICRON Electronics GmbH
|
|
10
|
+
* SPDX-License-Identifier: Apache-2.0
|
|
11
|
+
*/
|
|
12
|
+
import { css } from 'lit';
|
|
13
|
+
import { ListItemEl as ListItem } from '@material/web/list/internal/listitem/list-item.js';
|
|
14
|
+
import { styles } from '@material/web/list/internal/listitem/list-item-styles.js';
|
|
15
|
+
import { property } from 'lit/decorators.js';
|
|
16
|
+
const styleOverrides = css `
|
|
17
|
+
:host([activated]) {
|
|
18
|
+
--md-list-item-label-text-color: var(
|
|
19
|
+
--oscd-list-item-activated-color,
|
|
20
|
+
var(--md-sys-color-primary, #6750a4)
|
|
21
|
+
);
|
|
22
|
+
|
|
23
|
+
background-color: var(
|
|
24
|
+
--oscd-list-item-activated-background-color,
|
|
25
|
+
var(--md-sys-color-surface-bright, #eaddff)
|
|
26
|
+
);
|
|
27
|
+
}
|
|
28
|
+
[slot='start'] {
|
|
29
|
+
color: var(
|
|
30
|
+
--md-list-item-leading-icon-color,
|
|
31
|
+
var(--md-sys-color-on-surface, #49454f)
|
|
32
|
+
);
|
|
33
|
+
}
|
|
34
|
+
[slot='end'] {
|
|
35
|
+
color: var(
|
|
36
|
+
--md-list-item-trailing-icon-color,
|
|
37
|
+
var(--md-sys-color-on-surface, #49454f)
|
|
38
|
+
);
|
|
39
|
+
}
|
|
40
|
+
`;
|
|
41
|
+
/**
|
|
42
|
+
* @tag oscd-list-item
|
|
43
|
+
* @summary
|
|
44
|
+
* Lists are continuous, vertical indexes of text or images. Items are placed
|
|
45
|
+
* inside the list.
|
|
46
|
+
*
|
|
47
|
+
* Lists consist of one or more list items, and can contain actions represented
|
|
48
|
+
* by icons and text. List items come in three sizes: one-line, two-line, and
|
|
49
|
+
* three-line.
|
|
50
|
+
*
|
|
51
|
+
* __Takeaways:__
|
|
52
|
+
*
|
|
53
|
+
* - Lists should be sorted in logical ways that make content easy to scan, such
|
|
54
|
+
* as alphabetical, numerical, chronological, or by user preference.
|
|
55
|
+
* - Lists present content in a way that makes it easy to identify a specific
|
|
56
|
+
* item in a collection and act on it.
|
|
57
|
+
* - Lists should present icons, text, and actions in a consistent format.
|
|
58
|
+
*
|
|
59
|
+
* Acceptable slot child variants are:
|
|
60
|
+
*
|
|
61
|
+
* - `img[slot=end]`
|
|
62
|
+
* - `img[slot=start]`
|
|
63
|
+
*
|
|
64
|
+
* @example
|
|
65
|
+
* ```html
|
|
66
|
+
* <oscd-list-item
|
|
67
|
+
* headline="User Name"
|
|
68
|
+
* supportingText="user@name.com">
|
|
69
|
+
* <oscd-icon slot="start">account_circle</oscd-icon>
|
|
70
|
+
* <oscd-icon slot="end">check</oscd-icon>
|
|
71
|
+
* </oscd-list-item>
|
|
72
|
+
* ```
|
|
73
|
+
*
|
|
74
|
+
* @final
|
|
75
|
+
* @suppress {visibility}
|
|
76
|
+
*/
|
|
77
|
+
export class OscdListItem extends ListItem {
|
|
78
|
+
constructor() {
|
|
79
|
+
super(...arguments);
|
|
80
|
+
/**
|
|
81
|
+
* Boolean indicating whether the item is activated.
|
|
82
|
+
*/
|
|
83
|
+
this.activated = false;
|
|
84
|
+
}
|
|
85
|
+
static { this.styles = [styles, styleOverrides]; }
|
|
86
|
+
}
|
|
87
|
+
__decorate([
|
|
88
|
+
property({ type: Boolean, reflect: true })
|
|
89
|
+
], OscdListItem.prototype, "activated", void 0);
|
|
90
|
+
//# sourceMappingURL=OscdListItem.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"OscdListItem.js","sourceRoot":"","sources":["OscdListItem.ts"],"names":[],"mappings":"AAAA;;;;GAIG;;AAEH;;;;GAIG;AACH,OAAO,EAAE,GAAG,EAAqB,MAAM,KAAK,CAAC;AAC7C,OAAO,EAAE,UAAU,IAAI,QAAQ,EAAE,MAAM,mDAAmD,CAAC;AAC3F,OAAO,EAAE,MAAM,EAAE,MAAM,0DAA0D,CAAC;AAClF,OAAO,EAAE,QAAQ,EAAE,MAAM,mBAAmB,CAAC;AAI7C,MAAM,cAAc,GAAG,GAAG,CAAA;;;;;;;;;;;;;;;;;;;;;;;;CAwBzB,CAAC;AAEF;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAmCG;AACH,MAAM,OAAO,YAAa,SAAQ,QAAQ;IAA1C;;QACE;;WAEG;QAEH,cAAS,GAAG,KAAK,CAAC;IAGpB,CAAC;aADiB,WAAM,GAAwB,CAAC,MAAM,EAAE,cAAc,CAAC,AAAhD,CAAiD;;AAFvE;IADC,QAAQ,CAAC,EAAE,IAAI,EAAE,OAAO,EAAE,OAAO,EAAE,IAAI,EAAE,CAAC;+CACzB","sourcesContent":["/**\n * @license\n * Copyright 2022 Google LLC\n * SPDX-License-Identifier: Apache-2.0\n */\n\n/**\n * @license\n * Copyright 2025 OMICRON Electronics GmbH\n * SPDX-License-Identifier: Apache-2.0\n */\nimport { css, CSSResultOrNative } from 'lit';\nimport { ListItemEl as ListItem } from '@material/web/list/internal/listitem/list-item.js';\nimport { styles } from '@material/web/list/internal/listitem/list-item-styles.js';\nimport { property } from 'lit/decorators.js';\n\nexport { type ListItemType } from '@material/web/list/internal/listitem/list-item.js';\n\nconst styleOverrides = css`\n :host([activated]) {\n --md-list-item-label-text-color: var(\n --oscd-list-item-activated-color,\n var(--md-sys-color-primary, #6750a4)\n );\n\n background-color: var(\n --oscd-list-item-activated-background-color,\n var(--md-sys-color-surface-bright, #eaddff)\n );\n }\n [slot='start'] {\n color: var(\n --md-list-item-leading-icon-color,\n var(--md-sys-color-on-surface, #49454f)\n );\n }\n [slot='end'] {\n color: var(\n --md-list-item-trailing-icon-color,\n var(--md-sys-color-on-surface, #49454f)\n );\n }\n`;\n\n/**\n * @tag oscd-list-item\n * @summary\n * Lists are continuous, vertical indexes of text or images. Items are placed\n * inside the list.\n *\n * Lists consist of one or more list items, and can contain actions represented\n * by icons and text. List items come in three sizes: one-line, two-line, and\n * three-line.\n *\n * __Takeaways:__\n *\n * - Lists should be sorted in logical ways that make content easy to scan, such\n * as alphabetical, numerical, chronological, or by user preference.\n * - Lists present content in a way that makes it easy to identify a specific\n * item in a collection and act on it.\n * - Lists should present icons, text, and actions in a consistent format.\n *\n * Acceptable slot child variants are:\n *\n * - `img[slot=end]`\n * - `img[slot=start]`\n *\n * @example\n * ```html\n * <oscd-list-item\n * headline=\"User Name\"\n * supportingText=\"user@name.com\">\n * <oscd-icon slot=\"start\">account_circle</oscd-icon>\n * <oscd-icon slot=\"end\">check</oscd-icon>\n * </oscd-list-item>\n * ```\n *\n * @final\n * @suppress {visibility}\n */\nexport class OscdListItem extends ListItem {\n /**\n * Boolean indicating whether the item is activated.\n */\n @property({ type: Boolean, reflect: true })\n activated = false;\n\n static override styles: CSSResultOrNative[] = [styles, styleOverrides];\n}\n"]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"oscd-list-item.js","sourceRoot":"","sources":["oscd-list-item.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAC;AAQjD,cAAc,CAAC,MAAM,CAAC,gBAAgB,EAAE,YAAY,CAAC,CAAC;AACtD,OAAO,EAAE,YAAY,EAAE,CAAC","sourcesContent":["import { OscdListItem } from './OscdListItem.js';\n\ndeclare global {\n interface HTMLElementTagNameMap {\n 'oscd-list-item': OscdListItem;\n }\n}\n\ncustomElements.define('oscd-list-item', OscdListItem);\nexport { OscdListItem };\n"]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"oscd-list.js","sourceRoot":"","sources":["oscd-list.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,eAAe,CAAC;AAQzC,cAAc,CAAC,MAAM,CAAC,WAAW,EAAE,QAAQ,CAAC,CAAC;AAC7C,OAAO,EAAE,QAAQ,EAAE,CAAC","sourcesContent":["import { OscdList } from './OscdList.js';\n\ndeclare global {\n interface HTMLElementTagNameMap {\n 'oscd-list': OscdList;\n }\n}\n\ncustomElements.define('oscd-list', OscdList);\nexport { OscdList };\n"]}
|
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
* Copyright 2022 Google LLC
|
|
4
|
+
* SPDX-License-Identifier: Apache-2.0
|
|
5
|
+
*/
|
|
6
|
+
/**
|
|
7
|
+
* @license
|
|
8
|
+
* Copyright 2025 OMICRON Electronics GmbH
|
|
9
|
+
* SPDX-License-Identifier: Apache-2.0
|
|
10
|
+
*/
|
|
11
|
+
import { CSSResultOrNative } from 'lit';
|
|
12
|
+
import { Menu } from '@material/web/menu/internal/menu.js';
|
|
13
|
+
export { type ListItem } from '@material/web/list/internal/list-navigation-helpers.js';
|
|
14
|
+
export { type MenuItem } from '@material/web/menu/internal/controllers/menuItemController.js';
|
|
15
|
+
export { CloseReason, FocusState, type CloseMenuEvent, type Menu, } from '@material/web/menu/internal/controllers/shared.js';
|
|
16
|
+
export { Corner } from '@material/web/menu/internal/menu.js';
|
|
17
|
+
/**
|
|
18
|
+
* @tag oscd-menu
|
|
19
|
+
* @summary Menus display a list of choices on a temporary surface.
|
|
20
|
+
*
|
|
21
|
+
* Menus appear when users interact with a button, action, or other control.
|
|
22
|
+
*
|
|
23
|
+
* They can be opened from a variety of elements, most commonly icon buttons,
|
|
24
|
+
* buttons, and text fields.
|
|
25
|
+
*
|
|
26
|
+
* oscd-menu listens for the `close-menu` and `deselect-items` events.
|
|
27
|
+
*
|
|
28
|
+
* - `close-menu` closes the menu when dispatched from a child element.
|
|
29
|
+
* - `deselect-items` deselects all of its immediate menu-item children.
|
|
30
|
+
*
|
|
31
|
+
* @example
|
|
32
|
+
* ```html
|
|
33
|
+
* <div style="position:relative;">
|
|
34
|
+
* <button
|
|
35
|
+
* id="anchor"
|
|
36
|
+
* @click=${() => this.menuRef.value.show()}>
|
|
37
|
+
* Click to open menu
|
|
38
|
+
* </button>
|
|
39
|
+
* <!--
|
|
40
|
+
* `has-overflow` is required when using a submenu which overflows the
|
|
41
|
+
* menu's contents.
|
|
42
|
+
*
|
|
43
|
+
* Additionally, `anchor` ingests an idref which do not pass through shadow
|
|
44
|
+
* roots. You can also set `.anchorElement` to an element reference if
|
|
45
|
+
* necessary.
|
|
46
|
+
* -->
|
|
47
|
+
* <oscd-menu anchor="anchor" has-overflow ${ref(menuRef)}>
|
|
48
|
+
* <oscd-menu-item headline="This is a headline"></oscd-menu-item>
|
|
49
|
+
* <oscd-sub-menu>
|
|
50
|
+
* <oscd-menu-item
|
|
51
|
+
* slot="item"
|
|
52
|
+
* headline="this is a submenu item">
|
|
53
|
+
* </oscd-menu-item>
|
|
54
|
+
* <oscd-menu slot="menu">
|
|
55
|
+
* <oscd-menu-item headline="This is an item inside a submenu">
|
|
56
|
+
* </oscd-menu-item>
|
|
57
|
+
* </oscd-menu>
|
|
58
|
+
* </oscd-sub-menu>
|
|
59
|
+
* </oscd-menu>
|
|
60
|
+
* </div>
|
|
61
|
+
* ```
|
|
62
|
+
*
|
|
63
|
+
* @final
|
|
64
|
+
* @suppress {visibility}
|
|
65
|
+
*/
|
|
66
|
+
export declare class OscdMenu extends Menu {
|
|
67
|
+
static styles: CSSResultOrNative[];
|
|
68
|
+
}
|
package/menu/OscdMenu.js
ADDED
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
* Copyright 2022 Google LLC
|
|
4
|
+
* SPDX-License-Identifier: Apache-2.0
|
|
5
|
+
*/
|
|
6
|
+
import { Menu } from '@material/web/menu/internal/menu.js';
|
|
7
|
+
import { styles } from '@material/web/menu/internal/menu-styles.js';
|
|
8
|
+
export { CloseReason, FocusState, } from '@material/web/menu/internal/controllers/shared.js';
|
|
9
|
+
export { Corner } from '@material/web/menu/internal/menu.js';
|
|
10
|
+
/**
|
|
11
|
+
* @tag oscd-menu
|
|
12
|
+
* @summary Menus display a list of choices on a temporary surface.
|
|
13
|
+
*
|
|
14
|
+
* Menus appear when users interact with a button, action, or other control.
|
|
15
|
+
*
|
|
16
|
+
* They can be opened from a variety of elements, most commonly icon buttons,
|
|
17
|
+
* buttons, and text fields.
|
|
18
|
+
*
|
|
19
|
+
* oscd-menu listens for the `close-menu` and `deselect-items` events.
|
|
20
|
+
*
|
|
21
|
+
* - `close-menu` closes the menu when dispatched from a child element.
|
|
22
|
+
* - `deselect-items` deselects all of its immediate menu-item children.
|
|
23
|
+
*
|
|
24
|
+
* @example
|
|
25
|
+
* ```html
|
|
26
|
+
* <div style="position:relative;">
|
|
27
|
+
* <button
|
|
28
|
+
* id="anchor"
|
|
29
|
+
* @click=${() => this.menuRef.value.show()}>
|
|
30
|
+
* Click to open menu
|
|
31
|
+
* </button>
|
|
32
|
+
* <!--
|
|
33
|
+
* `has-overflow` is required when using a submenu which overflows the
|
|
34
|
+
* menu's contents.
|
|
35
|
+
*
|
|
36
|
+
* Additionally, `anchor` ingests an idref which do not pass through shadow
|
|
37
|
+
* roots. You can also set `.anchorElement` to an element reference if
|
|
38
|
+
* necessary.
|
|
39
|
+
* -->
|
|
40
|
+
* <oscd-menu anchor="anchor" has-overflow ${ref(menuRef)}>
|
|
41
|
+
* <oscd-menu-item headline="This is a headline"></oscd-menu-item>
|
|
42
|
+
* <oscd-sub-menu>
|
|
43
|
+
* <oscd-menu-item
|
|
44
|
+
* slot="item"
|
|
45
|
+
* headline="this is a submenu item">
|
|
46
|
+
* </oscd-menu-item>
|
|
47
|
+
* <oscd-menu slot="menu">
|
|
48
|
+
* <oscd-menu-item headline="This is an item inside a submenu">
|
|
49
|
+
* </oscd-menu-item>
|
|
50
|
+
* </oscd-menu>
|
|
51
|
+
* </oscd-sub-menu>
|
|
52
|
+
* </oscd-menu>
|
|
53
|
+
* </div>
|
|
54
|
+
* ```
|
|
55
|
+
*
|
|
56
|
+
* @final
|
|
57
|
+
* @suppress {visibility}
|
|
58
|
+
*/
|
|
59
|
+
export class OscdMenu extends Menu {
|
|
60
|
+
static { this.styles = [styles]; }
|
|
61
|
+
}
|
|
62
|
+
//# sourceMappingURL=OscdMenu.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"OscdMenu.js","sourceRoot":"","sources":["OscdMenu.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAQH,OAAO,EAAE,IAAI,EAAE,MAAM,qCAAqC,CAAC;AAC3D,OAAO,EAAE,MAAM,EAAE,MAAM,4CAA4C,CAAC;AAIpE,OAAO,EACL,WAAW,EACX,UAAU,GAGX,MAAM,mDAAmD,CAAC;AAC3D,OAAO,EAAE,MAAM,EAAE,MAAM,qCAAqC,CAAC;AAE7D;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAgDG;AACH,MAAM,OAAO,QAAS,SAAQ,IAAI;aAChB,WAAM,GAAwB,CAAC,MAAM,CAAC,CAAC","sourcesContent":["/**\n * @license\n * Copyright 2022 Google LLC\n * SPDX-License-Identifier: Apache-2.0\n */\n\n/**\n * @license\n * Copyright 2025 OMICRON Electronics GmbH\n * SPDX-License-Identifier: Apache-2.0\n */\nimport { CSSResultOrNative } from 'lit';\nimport { Menu } from '@material/web/menu/internal/menu.js';\nimport { styles } from '@material/web/menu/internal/menu-styles.js';\n\nexport { type ListItem } from '@material/web/list/internal/list-navigation-helpers.js';\nexport { type MenuItem } from '@material/web/menu/internal/controllers/menuItemController.js';\nexport {\n CloseReason,\n FocusState,\n type CloseMenuEvent,\n type Menu,\n} from '@material/web/menu/internal/controllers/shared.js';\nexport { Corner } from '@material/web/menu/internal/menu.js';\n\n/**\n * @tag oscd-menu\n * @summary Menus display a list of choices on a temporary surface.\n *\n * Menus appear when users interact with a button, action, or other control.\n *\n * They can be opened from a variety of elements, most commonly icon buttons,\n * buttons, and text fields.\n *\n * oscd-menu listens for the `close-menu` and `deselect-items` events.\n *\n * - `close-menu` closes the menu when dispatched from a child element.\n * - `deselect-items` deselects all of its immediate menu-item children.\n *\n * @example\n * ```html\n * <div style=\"position:relative;\">\n * <button\n * id=\"anchor\"\n * @click=${() => this.menuRef.value.show()}>\n * Click to open menu\n * </button>\n * <!--\n * `has-overflow` is required when using a submenu which overflows the\n * menu's contents.\n *\n * Additionally, `anchor` ingests an idref which do not pass through shadow\n * roots. You can also set `.anchorElement` to an element reference if\n * necessary.\n * -->\n * <oscd-menu anchor=\"anchor\" has-overflow ${ref(menuRef)}>\n * <oscd-menu-item headline=\"This is a headline\"></oscd-menu-item>\n * <oscd-sub-menu>\n * <oscd-menu-item\n * slot=\"item\"\n * headline=\"this is a submenu item\">\n * </oscd-menu-item>\n * <oscd-menu slot=\"menu\">\n * <oscd-menu-item headline=\"This is an item inside a submenu\">\n * </oscd-menu-item>\n * </oscd-menu>\n * </oscd-sub-menu>\n * </oscd-menu>\n * </div>\n * ```\n *\n * @final\n * @suppress {visibility}\n */\nexport class OscdMenu extends Menu {\n static override styles: CSSResultOrNative[] = [styles];\n}\n"]}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
* Copyright 2022 Google LLC
|
|
4
|
+
* SPDX-License-Identifier: Apache-2.0
|
|
5
|
+
*/
|
|
6
|
+
/**
|
|
7
|
+
* @license
|
|
8
|
+
* Copyright 2025 OMICRON Electronics GmbH
|
|
9
|
+
* SPDX-License-Identifier: Apache-2.0
|
|
10
|
+
*/
|
|
11
|
+
import { CSSResultOrNative } from 'lit';
|
|
12
|
+
import { MenuItemEl } from '@material/web/menu/internal/menuitem/menu-item.js';
|
|
13
|
+
export { type MenuItem } from '@material/web/menu/internal/controllers/menuItemController.js';
|
|
14
|
+
export { type CloseMenuEvent } from '@material/web/menu/internal/controllers/shared.js';
|
|
15
|
+
/**
|
|
16
|
+
* @tag oscd-menu-item
|
|
17
|
+
* @summary Menus display a list of choices on a temporary surface.
|
|
18
|
+
*
|
|
19
|
+
* Menu items are the selectable choices within the menu. Menu items must
|
|
20
|
+
* implement the `MenuItem` interface and also have the `Oscdmenu-item`
|
|
21
|
+
* attribute. Additionally menu items are list items so they must also have the
|
|
22
|
+
* `oscd-list-item` attribute.
|
|
23
|
+
*
|
|
24
|
+
* Menu items can control a menu by selectively firing the `close-menu` and
|
|
25
|
+
* `deselect-items` events.
|
|
26
|
+
*
|
|
27
|
+
* @final
|
|
28
|
+
* @suppress {visibility}
|
|
29
|
+
*/
|
|
30
|
+
export declare class OscdMenuItem extends MenuItemEl {
|
|
31
|
+
static styles: CSSResultOrNative[];
|
|
32
|
+
}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
* Copyright 2022 Google LLC
|
|
4
|
+
* SPDX-License-Identifier: Apache-2.0
|
|
5
|
+
*/
|
|
6
|
+
import { MenuItemEl } from '@material/web/menu/internal/menuitem/menu-item.js';
|
|
7
|
+
import { styles } from '@material/web/menu/internal/menuitem/menu-item-styles.js';
|
|
8
|
+
/**
|
|
9
|
+
* @tag oscd-menu-item
|
|
10
|
+
* @summary Menus display a list of choices on a temporary surface.
|
|
11
|
+
*
|
|
12
|
+
* Menu items are the selectable choices within the menu. Menu items must
|
|
13
|
+
* implement the `MenuItem` interface and also have the `Oscdmenu-item`
|
|
14
|
+
* attribute. Additionally menu items are list items so they must also have the
|
|
15
|
+
* `oscd-list-item` attribute.
|
|
16
|
+
*
|
|
17
|
+
* Menu items can control a menu by selectively firing the `close-menu` and
|
|
18
|
+
* `deselect-items` events.
|
|
19
|
+
*
|
|
20
|
+
* @final
|
|
21
|
+
* @suppress {visibility}
|
|
22
|
+
*/
|
|
23
|
+
export class OscdMenuItem extends MenuItemEl {
|
|
24
|
+
static { this.styles = [styles]; }
|
|
25
|
+
}
|
|
26
|
+
//# sourceMappingURL=OscdMenuItem.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"OscdMenuItem.js","sourceRoot":"","sources":["OscdMenuItem.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAQH,OAAO,EAAE,UAAU,EAAE,MAAM,mDAAmD,CAAC;AAC/E,OAAO,EAAE,MAAM,EAAE,MAAM,0DAA0D,CAAC;AAKlF;;;;;;;;;;;;;;GAcG;AACH,MAAM,OAAO,YAAa,SAAQ,UAAU;aAC1B,WAAM,GAAwB,CAAC,MAAM,CAAC,CAAC","sourcesContent":["/**\n * @license\n * Copyright 2022 Google LLC\n * SPDX-License-Identifier: Apache-2.0\n */\n\n/**\n * @license\n * Copyright 2025 OMICRON Electronics GmbH\n * SPDX-License-Identifier: Apache-2.0\n */\nimport { CSSResultOrNative } from 'lit';\nimport { MenuItemEl } from '@material/web/menu/internal/menuitem/menu-item.js';\nimport { styles } from '@material/web/menu/internal/menuitem/menu-item-styles.js';\n\nexport { type MenuItem } from '@material/web/menu/internal/controllers/menuItemController.js';\nexport { type CloseMenuEvent } from '@material/web/menu/internal/controllers/shared.js';\n\n/**\n * @tag oscd-menu-item\n * @summary Menus display a list of choices on a temporary surface.\n *\n * Menu items are the selectable choices within the menu. Menu items must\n * implement the `MenuItem` interface and also have the `Oscdmenu-item`\n * attribute. Additionally menu items are list items so they must also have the\n * `oscd-list-item` attribute.\n *\n * Menu items can control a menu by selectively firing the `close-menu` and\n * `deselect-items` events.\n *\n * @final\n * @suppress {visibility}\n */\nexport class OscdMenuItem extends MenuItemEl {\n static override styles: CSSResultOrNative[] = [styles];\n}\n"]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"oscd-menu-item.js","sourceRoot":"","sources":["oscd-menu-item.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAC;AAQjD,cAAc,CAAC,MAAM,CAAC,gBAAgB,EAAE,YAAY,CAAC,CAAC;AACtD,OAAO,EAAE,YAAY,EAAE,CAAC","sourcesContent":["import { OscdMenuItem } from './OscdMenuItem.js';\n\ndeclare global {\n interface HTMLElementTagNameMap {\n 'oscd-menu-item': OscdMenuItem;\n }\n}\n\ncustomElements.define('oscd-menu-item', OscdMenuItem);\nexport { OscdMenuItem };\n"]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"oscd-menu.js","sourceRoot":"","sources":["oscd-menu.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,eAAe,CAAC;AAQzC,cAAc,CAAC,MAAM,CAAC,WAAW,EAAE,QAAQ,CAAC,CAAC;AAC7C,OAAO,EAAE,QAAQ,EAAE,CAAC","sourcesContent":["import { OscdMenu } from './OscdMenu.js';\n\ndeclare global {\n interface HTMLElementTagNameMap {\n 'oscd-menu': OscdMenu;\n }\n}\n\ncustomElements.define('oscd-menu', OscdMenu);\nexport { OscdMenu };\n"]}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
* Copyright 2021 Google LLC
|
|
4
|
+
* SPDX-License-Identifier: Apache-2.0
|
|
5
|
+
*/
|
|
6
|
+
/**
|
|
7
|
+
* @license
|
|
8
|
+
* Copyright 2025 OMICRON Electronics GmbH
|
|
9
|
+
* SPDX-License-Identifier: Apache-2.0
|
|
10
|
+
*/
|
|
11
|
+
import { CSSResultOrNative } from 'lit';
|
|
12
|
+
import { NavigationDrawerModal } from '@material/web/labs/navigationdrawer/internal/navigation-drawer-modal.js';
|
|
13
|
+
/**
|
|
14
|
+
* @tag oscd-navigation-drawer
|
|
15
|
+
* @summary Navigation drawers are temporary surfaces that display a list of
|
|
16
|
+
* choices.
|
|
17
|
+
*
|
|
18
|
+
*/
|
|
19
|
+
export declare class OscdNavigationDrawer extends NavigationDrawerModal {
|
|
20
|
+
static readonly styles: CSSResultOrNative[];
|
|
21
|
+
}
|