@omicronenergy/oscd-ui 0.0.4 → 0.0.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +100 -0
- package/app-bar/OscdAppBar.d.ts +13 -11
- package/app-bar/OscdAppBar.js +16 -8
- package/app-bar/OscdAppBar.js.map +1 -1
- package/app-bar/oscd-app-bar.d.ts +6 -6
- package/app-bar/oscd-app-bar.js +2 -7
- package/app-bar/oscd-app-bar.js.map +1 -1
- package/button/OscdFilledButton.d.ts +6 -8
- package/button/OscdFilledButton.js +8 -5
- package/button/OscdFilledButton.js.map +1 -1
- package/button/OscdFilledButton.spec.js +22 -18
- package/button/OscdFilledButton.spec.js.map +1 -1
- package/button/OscdOutlinedButton.d.ts +4 -6
- package/button/OscdOutlinedButton.js +4 -1
- package/button/OscdOutlinedButton.js.map +1 -1
- package/button/OscdTextButton.d.ts +6 -8
- package/button/OscdTextButton.js +7 -4
- package/button/OscdTextButton.js.map +1 -1
- package/button/oscd-filled-button.d.ts +6 -1
- package/button/oscd-filled-button.js +2 -2
- package/button/oscd-filled-button.js.map +1 -1
- package/button/oscd-outlined-button.d.ts +6 -1
- package/button/oscd-outlined-button.js +2 -2
- package/button/oscd-outlined-button.js.map +1 -1
- package/button/oscd-text-button.d.ts +6 -1
- package/button/oscd-text-button.js +2 -2
- package/button/oscd-text-button.js.map +1 -1
- package/dialog/OscdDialog.d.ts +3 -8
- package/dialog/OscdDialog.js +4 -4
- package/dialog/OscdDialog.js.map +1 -1
- package/dialog/oscd-dialog.d.ts +6 -1
- package/dialog/oscd-dialog.js +2 -2
- package/dialog/oscd-dialog.js.map +1 -1
- package/divider/OscdDivider.d.ts +4 -8
- package/divider/OscdDivider.js +4 -3
- package/divider/OscdDivider.js.map +1 -1
- package/divider/oscd-divider.d.ts +6 -1
- package/divider/oscd-divider.js +2 -2
- package/divider/oscd-divider.js.map +1 -1
- package/elevation/OscdElevation.d.ts +2 -6
- package/elevation/OscdElevation.js +2 -1
- package/elevation/OscdElevation.js.map +1 -1
- package/elevation/oscd-elevation.d.ts +6 -1
- package/elevation/oscd-elevation.js +2 -2
- package/elevation/oscd-elevation.js.map +1 -1
- package/field/OscdFilledField.d.ts +4 -7
- package/field/OscdFilledField.js +5 -3
- package/field/OscdFilledField.js.map +1 -1
- package/field/OscdOutlinedField.d.ts +6 -7
- package/field/OscdOutlinedField.js +7 -3
- package/field/OscdOutlinedField.js.map +1 -1
- package/field/oscd-filled-field.d.ts +6 -1
- package/field/oscd-filled-field.js +2 -2
- package/field/oscd-filled-field.js.map +1 -1
- package/field/oscd-outlined-field.d.ts +6 -1
- package/field/oscd-outlined-field.js +2 -2
- package/field/oscd-outlined-field.js.map +1 -1
- package/icon/OscdIcon.d.ts +6 -7
- package/icon/OscdIcon.js +6 -2
- package/icon/OscdIcon.js.map +1 -1
- package/icon/oscd-icon.d.ts +6 -1
- package/icon/oscd-icon.js +2 -2
- package/icon/oscd-icon.js.map +1 -1
- package/iconbutton/OscdFilledIconButton.d.ts +4 -9
- package/iconbutton/OscdFilledIconButton.js +5 -5
- package/iconbutton/OscdFilledIconButton.js.map +1 -1
- package/iconbutton/OscdFilledTonalIconButton.d.ts +5 -10
- package/iconbutton/OscdFilledTonalIconButton.js +6 -6
- package/iconbutton/OscdFilledTonalIconButton.js.map +1 -1
- package/iconbutton/OscdIconButton.d.ts +3 -8
- package/iconbutton/OscdIconButton.js +4 -4
- package/iconbutton/OscdIconButton.js.map +1 -1
- package/iconbutton/{OutlinedIconButton.d.ts → OscdOutlinedIconButton.d.ts} +3 -8
- package/iconbutton/{OutlinedIconButton.js → OscdOutlinedIconButton.js} +5 -5
- package/iconbutton/OscdOutlinedIconButton.js.map +1 -0
- package/iconbutton/oscd-filled-icon-button.d.ts +6 -1
- package/iconbutton/oscd-filled-icon-button.js +2 -2
- package/iconbutton/oscd-filled-icon-button.js.map +1 -1
- package/iconbutton/oscd-filled-tonal-icon-button.d.ts +6 -1
- package/iconbutton/oscd-filled-tonal-icon-button.js +2 -2
- package/iconbutton/oscd-filled-tonal-icon-button.js.map +1 -1
- package/iconbutton/oscd-icon-button.d.ts +6 -1
- package/iconbutton/oscd-icon-button.js +2 -2
- package/iconbutton/oscd-icon-button.js.map +1 -1
- package/iconbutton/oscd-outlined-icon-button.d.ts +6 -1
- package/iconbutton/oscd-outlined-icon-button.js +2 -2
- package/iconbutton/oscd-outlined-icon-button.js.map +1 -1
- package/list/OscdList.d.ts +3 -8
- package/list/OscdList.js +4 -4
- package/list/OscdList.js.map +1 -1
- package/list/OscdListItem.d.ts +4 -11
- package/list/OscdListItem.js +6 -8
- package/list/OscdListItem.js.map +1 -1
- package/list/oscd-list-item.d.ts +6 -1
- package/list/oscd-list-item.js +2 -2
- package/list/oscd-list-item.js.map +1 -1
- package/list/oscd-list.d.ts +6 -1
- package/list/oscd-list.js +2 -2
- package/list/oscd-list.js.map +1 -1
- package/menu/OscdMenu.d.ts +7 -12
- package/menu/OscdMenu.js +5 -5
- package/menu/OscdMenu.js.map +1 -1
- package/menu/OscdMenuItem.d.ts +5 -10
- package/menu/OscdMenuItem.js +3 -3
- package/menu/OscdMenuItem.js.map +1 -1
- package/menu/oscd-menu-item.d.ts +6 -1
- package/menu/oscd-menu-item.js +2 -2
- package/menu/oscd-menu-item.js.map +1 -1
- package/menu/oscd-menu.d.ts +7 -1
- package/menu/oscd-menu.js +3 -3
- package/menu/oscd-menu.js.map +1 -1
- package/navigation-drawer/OscdNavigationDrawer.d.ts +8 -2
- package/navigation-drawer/OscdNavigationDrawer.js +10 -4
- package/navigation-drawer/OscdNavigationDrawer.js.map +1 -1
- package/navigation-drawer/OscdNavigationDrawerHeader.d.ts +7 -7
- package/navigation-drawer/OscdNavigationDrawerHeader.js +8 -3
- package/navigation-drawer/OscdNavigationDrawerHeader.js.map +1 -1
- package/navigation-drawer/oscd-navigation-drawer-header.d.ts +6 -1
- package/navigation-drawer/oscd-navigation-drawer-header.js +2 -2
- package/navigation-drawer/oscd-navigation-drawer-header.js.map +1 -1
- package/navigation-drawer/oscd-navigation-drawer.d.ts +2 -2
- package/navigation-drawer/oscd-navigation-drawer.js +2 -2
- package/navigation-drawer/oscd-navigation-drawer.js.map +1 -1
- package/package.json +169 -15
- package/select/OscdFilledSelect.d.ts +3 -8
- package/select/OscdFilledSelect.js +4 -4
- package/select/OscdFilledSelect.js.map +1 -1
- package/select/OscdOutlinedSelect.d.ts +3 -8
- package/select/OscdOutlinedSelect.js +4 -4
- package/select/OscdOutlinedSelect.js.map +1 -1
- package/select/OscdSelectOption.d.ts +4 -9
- package/select/OscdSelectOption.js +3 -3
- package/select/OscdSelectOption.js.map +1 -1
- package/select/oscd-filled-select.d.ts +6 -1
- package/select/oscd-filled-select.js +2 -2
- package/select/oscd-filled-select.js.map +1 -1
- package/select/oscd-outlined-select.d.ts +6 -1
- package/select/oscd-outlined-select.js +2 -2
- package/select/oscd-outlined-select.js.map +1 -1
- package/select/oscd-select-option.d.ts +6 -1
- package/select/oscd-select-option.js +2 -2
- package/select/oscd-select-option.js.map +1 -1
- package/tabs/OscdPrimaryTab.d.ts +3 -7
- package/tabs/OscdPrimaryTab.js +4 -3
- package/tabs/OscdPrimaryTab.js.map +1 -1
- package/tabs/OscdSecondaryTab.d.ts +3 -7
- package/tabs/OscdSecondaryTab.js +4 -3
- package/tabs/OscdSecondaryTab.js.map +1 -1
- package/tabs/OscdTabs.d.ts +3 -7
- package/tabs/OscdTabs.js +3 -2
- package/tabs/OscdTabs.js.map +1 -1
- package/tabs/oscd-primary-tab.d.ts +6 -1
- package/tabs/oscd-primary-tab.js +2 -2
- package/tabs/oscd-primary-tab.js.map +1 -1
- package/tabs/oscd-secondary-tab.d.ts +6 -1
- package/tabs/oscd-secondary-tab.js +2 -2
- package/tabs/oscd-secondary-tab.js.map +1 -1
- package/tabs/oscd-tabs.d.ts +6 -1
- package/tabs/oscd-tabs.js +2 -2
- package/tabs/oscd-tabs.js.map +1 -1
- package/textfield/OscdFilledTextField.d.ts +10 -11
- package/textfield/OscdFilledTextField.js +12 -12
- package/textfield/OscdFilledTextField.js.map +1 -1
- package/textfield/OscdOutlinedTextField.d.ts +11 -10
- package/textfield/OscdOutlinedTextField.js +15 -11
- package/textfield/OscdOutlinedTextField.js.map +1 -1
- package/textfield/oscd-filled-text-field.d.ts +6 -1
- package/textfield/oscd-filled-text-field.js +2 -2
- package/textfield/oscd-filled-text-field.js.map +1 -1
- package/textfield/oscd-outlined-text-field.d.ts +6 -1
- package/textfield/oscd-outlined-text-field.js +2 -2
- package/textfield/oscd-outlined-text-field.js.map +1 -1
- package/utils/storybook/getStorybookHelpers.d.ts +2 -2
- package/utils/storybook/getStorybookHelpers.js +9 -9
- package/utils/storybook/getStorybookHelpers.js.map +1 -1
- package/utils/storybook/scopedWcDecorator.d.ts +1 -1
- package/utils/storybook/scopedWcDecorator.js +17 -7
- package/utils/storybook/scopedWcDecorator.js.map +1 -1
- package/utils/storybook/themingDecorator.d.ts +4 -15
- package/utils/storybook/themingDecorator.js +62 -62
- package/utils/storybook/themingDecorator.js.map +1 -1
- package/app-bar/OscdAppBar.stories.d.ts +0 -10
- package/app-bar/OscdAppBar.stories.js +0 -85
- package/app-bar/OscdAppBar.stories.js.map +0 -1
- package/button/OscdButton.stories.d.ts +0 -7
- package/button/OscdButton.stories.js +0 -60
- package/button/OscdButton.stories.js.map +0 -1
- package/dialog/OscdDialog.stories.d.ts +0 -5
- package/dialog/OscdDialog.stories.js +0 -50
- package/dialog/OscdDialog.stories.js.map +0 -1
- package/divider/OscdDivider.stories.d.ts +0 -5
- package/divider/OscdDivider.stories.js +0 -28
- package/divider/OscdDivider.stories.js.map +0 -1
- package/icon/OscdIcon.stories.d.ts +0 -5
- package/icon/OscdIcon.stories.js +0 -54
- package/icon/OscdIcon.stories.js.map +0 -1
- package/iconbutton/OscdIconButton.stories.d.ts +0 -7
- package/iconbutton/OscdIconButton.stories.js +0 -101
- package/iconbutton/OscdIconButton.stories.js.map +0 -1
- package/iconbutton/OutlinedIconButton.js.map +0 -1
- package/list/OscdList.stories.d.ts +0 -5
- package/list/OscdList.stories.js +0 -30
- package/list/OscdList.stories.js.map +0 -1
- package/menu/OscdMenu.stories.d.ts +0 -6
- package/menu/OscdMenu.stories.js +0 -55
- package/menu/OscdMenu.stories.js.map +0 -1
- package/menu/OscdMenuItem.stories.d.ts +0 -5
- package/menu/OscdMenuItem.stories.js +0 -37
- package/menu/OscdMenuItem.stories.js.map +0 -1
- package/navigation-drawer/OscdNavigationDrawer.stories.d.ts +0 -5
- package/navigation-drawer/OscdNavigationDrawer.stories.js +0 -97
- package/navigation-drawer/OscdNavigationDrawer.stories.js.map +0 -1
- package/navigation-drawer/OscdNavigationDrawerHeader.stories.d.ts +0 -5
- package/navigation-drawer/OscdNavigationDrawerHeader.stories.js +0 -35
- package/navigation-drawer/OscdNavigationDrawerHeader.stories.js.map +0 -1
- package/select/OscdFilledSelect.stories.d.ts +0 -5
- package/select/OscdFilledSelect.stories.js +0 -29
- package/select/OscdFilledSelect.stories.js.map +0 -1
- package/select/OscdOutlinedSelect.stories.d.ts +0 -5
- package/select/OscdOutlinedSelect.stories.js +0 -29
- package/select/OscdOutlinedSelect.stories.js.map +0 -1
- package/tabs/OscdPrimaryTab.stories.d.ts +0 -5
- package/tabs/OscdPrimaryTab.stories.js +0 -33
- package/tabs/OscdPrimaryTab.stories.js.map +0 -1
- package/tabs/OscdSecondaryTab.stories.d.ts +0 -5
- package/tabs/OscdSecondaryTab.stories.js +0 -33
- package/tabs/OscdSecondaryTab.stories.js.map +0 -1
- package/tabs/OscdTabs.stories.d.ts +0 -5
- package/tabs/OscdTabs.stories.js +0 -29
- package/tabs/OscdTabs.stories.js.map +0 -1
- package/theming/AllComponents.stories.d.ts +0 -5
- package/theming/AllComponents.stories.js +0 -309
- package/theming/AllComponents.stories.js.map +0 -1
package/menu/OscdMenuItem.js
CHANGED
|
@@ -3,12 +3,12 @@
|
|
|
3
3
|
* Copyright 2022 Google LLC
|
|
4
4
|
* SPDX-License-Identifier: Apache-2.0
|
|
5
5
|
*/
|
|
6
|
-
import { MenuItemEl } from
|
|
7
|
-
import { styles } from
|
|
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
8
|
/**
|
|
9
|
+
* @tag oscd-menu-item
|
|
9
10
|
* @summary Menus display a list of choices on a temporary surface.
|
|
10
11
|
*
|
|
11
|
-
* @description
|
|
12
12
|
* Menu items are the selectable choices within the menu. Menu items must
|
|
13
13
|
* implement the `MenuItem` interface and also have the `Oscdmenu-item`
|
|
14
14
|
* attribute. Additionally menu items are list items so they must also have the
|
package/menu/OscdMenuItem.js.map
CHANGED
|
@@ -1 +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;
|
|
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;IAC1C,MAAM,CAAU,MAAM,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"]}
|
package/menu/oscd-menu-item.d.ts
CHANGED
package/menu/oscd-menu-item.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { OscdMenuItem } from
|
|
2
|
-
customElements.define(
|
|
1
|
+
import { OscdMenuItem } from './OscdMenuItem.js';
|
|
2
|
+
customElements.define('oscd-menu-item', OscdMenuItem);
|
|
3
3
|
export { OscdMenuItem };
|
|
4
4
|
//# sourceMappingURL=oscd-menu-item.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"oscd-menu-item.js","sourceRoot":"","sources":["oscd-menu-item.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,
|
|
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"]}
|
package/menu/oscd-menu.d.ts
CHANGED
package/menu/oscd-menu.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { OscdMenu } from
|
|
2
|
-
customElements.define(
|
|
3
|
-
export
|
|
1
|
+
import { OscdMenu } from './OscdMenu.js';
|
|
2
|
+
customElements.define('oscd-menu', OscdMenu);
|
|
3
|
+
export { OscdMenu };
|
|
4
4
|
//# sourceMappingURL=oscd-menu.js.map
|
package/menu/oscd-menu.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"oscd-menu.js","sourceRoot":"","sources":["oscd-menu.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,
|
|
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"]}
|
|
@@ -8,8 +8,14 @@
|
|
|
8
8
|
* Copyright 2025 OMICRON Electronics GmbH
|
|
9
9
|
* SPDX-License-Identifier: Apache-2.0
|
|
10
10
|
*/
|
|
11
|
-
import { CSSResultOrNative } from
|
|
12
|
-
import { NavigationDrawerModal } from
|
|
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
|
+
*/
|
|
13
19
|
export declare class OscdNavigationDrawer extends NavigationDrawerModal {
|
|
14
20
|
static readonly styles: CSSResultOrNative[];
|
|
15
21
|
}
|
|
@@ -8,10 +8,10 @@
|
|
|
8
8
|
* Copyright 2025 OMICRON Electronics GmbH
|
|
9
9
|
* SPDX-License-Identifier: Apache-2.0
|
|
10
10
|
*/
|
|
11
|
-
import { css } from
|
|
12
|
-
import { NavigationDrawerModal } from
|
|
13
|
-
import { styles } from
|
|
14
|
-
import { styles as sharedStyles } from
|
|
11
|
+
import { css } from 'lit';
|
|
12
|
+
import { NavigationDrawerModal } from '@material/web/labs/navigationdrawer/internal/navigation-drawer-modal.js';
|
|
13
|
+
import { styles } from '@material/web/labs/navigationdrawer/internal/navigation-drawer-modal-styles.js';
|
|
14
|
+
import { styles as sharedStyles } from '@material/web/labs/navigationdrawer/internal/shared-styles.js';
|
|
15
15
|
const overrideStyles = css `
|
|
16
16
|
:host {
|
|
17
17
|
--md-navigation-drawer-modal-scrim-color: var(--md-sys-color-scrim, #000);
|
|
@@ -27,6 +27,12 @@ const overrideStyles = css `
|
|
|
27
27
|
z-index: 5;
|
|
28
28
|
}
|
|
29
29
|
`;
|
|
30
|
+
/**
|
|
31
|
+
* @tag oscd-navigation-drawer
|
|
32
|
+
* @summary Navigation drawers are temporary surfaces that display a list of
|
|
33
|
+
* choices.
|
|
34
|
+
*
|
|
35
|
+
*/
|
|
30
36
|
export class OscdNavigationDrawer extends NavigationDrawerModal {
|
|
31
37
|
static styles = [
|
|
32
38
|
sharedStyles,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"OscdNavigationDrawer.js","sourceRoot":"","sources":["OscdNavigationDrawer.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH;;;;GAIG;AACH,OAAO,EAAE,GAAG,EAAgC,MAAM,KAAK,CAAC;AACxD,OAAO,EAAE,qBAAqB,EAAE,MAAM,yEAAyE,CAAC;AAChH,OAAO,EAAE,MAAM,EAAE,MAAM,gFAAgF,CAAC;AACxG,OAAO,EAAE,MAAM,IAAI,YAAY,EAAE,MAAM,+DAA+D,CAAC;AAEvG,MAAM,cAAc,GAAG,GAAG,CAAA;;;;;;;;;;;;;;CAczB,CAAC;
|
|
1
|
+
{"version":3,"file":"OscdNavigationDrawer.js","sourceRoot":"","sources":["OscdNavigationDrawer.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH;;;;GAIG;AACH,OAAO,EAAE,GAAG,EAAgC,MAAM,KAAK,CAAC;AACxD,OAAO,EAAE,qBAAqB,EAAE,MAAM,yEAAyE,CAAC;AAChH,OAAO,EAAE,MAAM,EAAE,MAAM,gFAAgF,CAAC;AACxG,OAAO,EAAE,MAAM,IAAI,YAAY,EAAE,MAAM,+DAA+D,CAAC;AAEvG,MAAM,cAAc,GAAG,GAAG,CAAA;;;;;;;;;;;;;;CAczB,CAAC;AAEF;;;;;GAKG;AACH,MAAM,OAAO,oBAAqB,SAAQ,qBAAqB;IAC7D,MAAM,CAAmB,MAAM,GAAwB;QACrD,YAAoC;QACpC,MAA8B;QAC9B,cAAsC;KACvC,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, CSSResult, CSSResultOrNative } from 'lit';\nimport { NavigationDrawerModal } from '@material/web/labs/navigationdrawer/internal/navigation-drawer-modal.js';\nimport { styles } from '@material/web/labs/navigationdrawer/internal/navigation-drawer-modal-styles.js';\nimport { styles as sharedStyles } from '@material/web/labs/navigationdrawer/internal/shared-styles.js';\n\nconst overrideStyles = css`\n :host {\n --md-navigation-drawer-modal-scrim-color: var(--md-sys-color-scrim, #000);\n --md-navigation-drawer-modal-scrim-opacity: 0.32;\n --md-navigation-drawer-modal-container-color: var(\n --md-sys-color-surface-container\n );\n }\n .md3-navigation-drawer-modal--opened {\n z-index: 6;\n }\n .md3-navigation-drawer-modal__scrim {\n z-index: 5;\n }\n`;\n\n/**\n * @tag oscd-navigation-drawer\n * @summary Navigation drawers are temporary surfaces that display a list of\n * choices.\n *\n */\nexport class OscdNavigationDrawer extends NavigationDrawerModal {\n static override readonly styles: CSSResultOrNative[] = [\n sharedStyles as unknown as CSSResult,\n styles as unknown as CSSResult,\n overrideStyles as unknown as CSSResult,\n ];\n}\n"]}
|
|
@@ -3,13 +3,13 @@
|
|
|
3
3
|
* Copyright 2025 OMICRON Electronics GmbH
|
|
4
4
|
* SPDX-License-Identifier: Apache-2.0
|
|
5
5
|
*/
|
|
6
|
-
import { CSSResultOrNative } from
|
|
7
|
-
import { ListItemEl as ListItem } from
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
6
|
+
import { CSSResultOrNative } from 'lit';
|
|
7
|
+
import { ListItemEl as ListItem } from '@material/web/list/internal/listitem/list-item.js';
|
|
8
|
+
/**
|
|
9
|
+
* @tag oscd-navigation-drawer-header
|
|
10
|
+
* @summary A header for the navigation drawer.
|
|
11
|
+
*
|
|
12
|
+
*/
|
|
13
13
|
export declare class OscdNavigationDrawerHeader extends ListItem {
|
|
14
14
|
static readonly styles: CSSResultOrNative[];
|
|
15
15
|
}
|
|
@@ -3,9 +3,9 @@
|
|
|
3
3
|
* Copyright 2025 OMICRON Electronics GmbH
|
|
4
4
|
* SPDX-License-Identifier: Apache-2.0
|
|
5
5
|
*/
|
|
6
|
-
import { css } from
|
|
7
|
-
import { ListItemEl as ListItem } from
|
|
8
|
-
import { styles } from
|
|
6
|
+
import { css } from 'lit';
|
|
7
|
+
import { ListItemEl as ListItem } from '@material/web/list/internal/listitem/list-item.js';
|
|
8
|
+
import { styles } from '@material/web/list/internal/listitem/list-item-styles.js';
|
|
9
9
|
const overrideStyles = css `
|
|
10
10
|
:host {
|
|
11
11
|
--navigation-drawer-header-color: var(
|
|
@@ -52,6 +52,11 @@ const overrideStyles = css `
|
|
|
52
52
|
);
|
|
53
53
|
}
|
|
54
54
|
`;
|
|
55
|
+
/**
|
|
56
|
+
* @tag oscd-navigation-drawer-header
|
|
57
|
+
* @summary A header for the navigation drawer.
|
|
58
|
+
*
|
|
59
|
+
*/
|
|
55
60
|
export class OscdNavigationDrawerHeader extends ListItem {
|
|
56
61
|
static styles = [
|
|
57
62
|
styles,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"OscdNavigationDrawerHeader.js","sourceRoot":"","sources":["OscdNavigationDrawerHeader.ts"],"names":[],"mappings":"AAAA;;;;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;
|
|
1
|
+
{"version":3,"file":"OscdNavigationDrawerHeader.js","sourceRoot":"","sources":["OscdNavigationDrawerHeader.ts"],"names":[],"mappings":"AAAA;;;;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;AAElF,MAAM,cAAc,GAAG,GAAG,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA6CzB,CAAC;AAEF;;;;GAIG;AACH,MAAM,OAAO,0BAA2B,SAAQ,QAAQ;IACtD,MAAM,CAAmB,MAAM,GAAwB;QACrD,MAAM;QACN,cAAc;KACf,CAAC","sourcesContent":["/**\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';\n\nconst overrideStyles = css`\n :host {\n --navigation-drawer-header-color: var(\n --oscd-navigation-drawer-header-color,\n var(--md-sys-color-on-primary, #1d1b20)\n );\n --navigation-drawer-header-background-color: var(\n --oscd-navigation-drawer-header-background-color,\n var(--md-sys-color-primary, #fff)\n );\n\n --md-list-item-label-text-font: var(\n --oscd-navigation-drawer-header-text-font,\n Roboto\n );\n --md-list-item-label-text-size: var(\n --oscd-navigation-drawer-header-text-size,\n 1.25rem\n );\n --md-list-item-label-text-line-height: var(\n --oscd-navigation-drawer-header-text-line-height,\n 1.5rem\n );\n --md-list-item-label-text-weight: var(\n --oscd-navigation-drawer-header-text-weight,\n 500\n );\n\n --md-list-item-supporting-text-font: var(\n --oscd-navigation-drawer-header-supporting-text-font,\n var(--md-sys-typescale-body-medium-font, Roboto)\n );\n --md-list-item-supporting-text-size: var(\n --oscd-navigation-drawer-header-supporting-text-size,\n 0.875rem\n );\n --md-list-item-supporting-text-line-height: var(\n --oscd-navigation-drawer-header-supporting-text-line-height,\n 1.25rem\n );\n --md-list-item-supporting-text-weight: var(\n --oscd-navigation-drawer-header-supporting-text-weight,\n 400\n );\n }\n`;\n\n/**\n * @tag oscd-navigation-drawer-header\n * @summary A header for the navigation drawer.\n *\n */\nexport class OscdNavigationDrawerHeader extends ListItem {\n static override readonly styles: CSSResultOrNative[] = [\n styles,\n overrideStyles,\n ];\n}\n"]}
|
|
@@ -1,2 +1,7 @@
|
|
|
1
|
-
import { OscdNavigationDrawerHeader } from
|
|
1
|
+
import { OscdNavigationDrawerHeader } from './OscdNavigationDrawerHeader.js';
|
|
2
|
+
declare global {
|
|
3
|
+
interface HTMLElementTagNameMap {
|
|
4
|
+
'oscd-navigation-drawer-header': OscdNavigationDrawerHeader;
|
|
5
|
+
}
|
|
6
|
+
}
|
|
2
7
|
export { OscdNavigationDrawerHeader };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { OscdNavigationDrawerHeader } from
|
|
2
|
-
customElements.define(
|
|
1
|
+
import { OscdNavigationDrawerHeader } from './OscdNavigationDrawerHeader.js';
|
|
2
|
+
customElements.define('oscd-navigation-drawer-header', OscdNavigationDrawerHeader);
|
|
3
3
|
export { OscdNavigationDrawerHeader };
|
|
4
4
|
//# sourceMappingURL=oscd-navigation-drawer-header.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"oscd-navigation-drawer-header.js","sourceRoot":"","sources":["oscd-navigation-drawer-header.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,0BAA0B,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"oscd-navigation-drawer-header.js","sourceRoot":"","sources":["oscd-navigation-drawer-header.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,0BAA0B,EAAE,MAAM,iCAAiC,CAAC;AAQ7E,cAAc,CAAC,MAAM,CACnB,+BAA+B,EAC/B,0BAA0B,CAC3B,CAAC;AACF,OAAO,EAAE,0BAA0B,EAAE,CAAC","sourcesContent":["import { OscdNavigationDrawerHeader } from './OscdNavigationDrawerHeader.js';\n\ndeclare global {\n interface HTMLElementTagNameMap {\n 'oscd-navigation-drawer-header': OscdNavigationDrawerHeader;\n }\n}\n\ncustomElements.define(\n 'oscd-navigation-drawer-header',\n OscdNavigationDrawerHeader,\n);\nexport { OscdNavigationDrawerHeader };\n"]}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { OscdNavigationDrawer } from
|
|
1
|
+
import { OscdNavigationDrawer } from './OscdNavigationDrawer.js';
|
|
2
2
|
declare global {
|
|
3
3
|
interface HTMLElementTagNameMap {
|
|
4
|
-
|
|
4
|
+
'oscd-navigation-drawer': OscdNavigationDrawer;
|
|
5
5
|
}
|
|
6
6
|
}
|
|
7
7
|
export { OscdNavigationDrawer };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { OscdNavigationDrawer } from
|
|
2
|
-
customElements.define(
|
|
1
|
+
import { OscdNavigationDrawer } from './OscdNavigationDrawer.js';
|
|
2
|
+
customElements.define('oscd-navigation-drawer', OscdNavigationDrawer);
|
|
3
3
|
export { OscdNavigationDrawer };
|
|
4
4
|
//# sourceMappingURL=oscd-navigation-drawer.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"oscd-navigation-drawer.js","sourceRoot":"","sources":["oscd-navigation-drawer.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,oBAAoB,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"oscd-navigation-drawer.js","sourceRoot":"","sources":["oscd-navigation-drawer.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,oBAAoB,EAAE,MAAM,2BAA2B,CAAC;AAOjE,cAAc,CAAC,MAAM,CAAC,wBAAwB,EAAE,oBAAoB,CAAC,CAAC;AACtE,OAAO,EAAE,oBAAoB,EAAE,CAAC","sourcesContent":["import { OscdNavigationDrawer } from './OscdNavigationDrawer.js';\n\ndeclare global {\n interface HTMLElementTagNameMap {\n 'oscd-navigation-drawer': OscdNavigationDrawer;\n }\n}\ncustomElements.define('oscd-navigation-drawer', OscdNavigationDrawer);\nexport { OscdNavigationDrawer };\n"]}
|
package/package.json
CHANGED
|
@@ -1,18 +1,21 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@omicronenergy/oscd-ui",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.6",
|
|
4
4
|
"description": "UI Web Components set for OpenSCD",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"scripts": {
|
|
7
|
-
"
|
|
7
|
+
"lint": "eslint . --ext .ts",
|
|
8
|
+
"format": "eslint . --ext .ts --fix",
|
|
9
|
+
"build": "wireit",
|
|
8
10
|
"build:watch": "tsc --pretty --watch",
|
|
9
11
|
"test": "wtr",
|
|
10
12
|
"test:unit": "wtr",
|
|
11
13
|
"storybook": "storybook dev -p 6006",
|
|
12
14
|
"build-storybook": "storybook build",
|
|
13
15
|
"test:visual": "test-storybook",
|
|
14
|
-
"custom-elements
|
|
15
|
-
"
|
|
16
|
+
"copy-material-custom-elements": "cp md-custom-elements.json node_modules/@material/web/custom-elements.json",
|
|
17
|
+
"custom-elements-manifest": "npm run copy-material-custom-elements && cem analyze",
|
|
18
|
+
"prepare": "husky"
|
|
16
19
|
},
|
|
17
20
|
"repository": {
|
|
18
21
|
"type": "git",
|
|
@@ -35,13 +38,17 @@
|
|
|
35
38
|
"**/*.scss",
|
|
36
39
|
"**/*.css",
|
|
37
40
|
"**/*.css.map",
|
|
41
|
+
"!custom-elements-manifest.config.js",
|
|
38
42
|
"!web-test-runner.config.js",
|
|
43
|
+
"!test-runner.config.js",
|
|
39
44
|
"!commitlint.config.js",
|
|
40
45
|
"!**/test/**",
|
|
41
46
|
"!**/*_test.*",
|
|
47
|
+
"!**/*.stories.*",
|
|
42
48
|
"!.wireit/**",
|
|
43
49
|
"!catalog/",
|
|
44
50
|
"!scripts/",
|
|
51
|
+
"!.storybook/",
|
|
45
52
|
"!**/testing/**"
|
|
46
53
|
],
|
|
47
54
|
"overrides": {
|
|
@@ -50,6 +57,7 @@
|
|
|
50
57
|
}
|
|
51
58
|
},
|
|
52
59
|
"dependencies": {
|
|
60
|
+
"@lit/reactive-element": "^2.1.0",
|
|
53
61
|
"@material/web": "2.3.0",
|
|
54
62
|
"@open-wc/scoped-elements": "^3.0.5",
|
|
55
63
|
"@webcomponents/scoped-custom-element-registry": "^0.0.10",
|
|
@@ -57,31 +65,177 @@
|
|
|
57
65
|
"tslib": "^2.4.0"
|
|
58
66
|
},
|
|
59
67
|
"devDependencies": {
|
|
68
|
+
"@commitlint/cli": "^19.8.1",
|
|
69
|
+
"@commitlint/config-conventional": "^19.8.1",
|
|
60
70
|
"@custom-elements-manifest/analyzer": "^0.10.4",
|
|
61
|
-
"@
|
|
71
|
+
"@open-wc/eslint-config": "^12.0.3",
|
|
72
|
+
"@storybook/addon-actions": "^8.6.14",
|
|
62
73
|
"@storybook/addon-essentials": "^8.6.14",
|
|
63
74
|
"@storybook/addon-interactions": "^8.6.14",
|
|
64
75
|
"@storybook/blocks": "^8.6.14",
|
|
65
76
|
"@storybook/preview-api": "^8.6.14",
|
|
66
77
|
"@storybook/test": "^8.6.14",
|
|
67
|
-
"@storybook/test-runner": "^0.22.0",
|
|
68
78
|
"@storybook/web-components": "^8.6.14",
|
|
69
79
|
"@storybook/web-components-vite": "^8.6.14",
|
|
80
|
+
"@types/jasmine": "^4.0.3",
|
|
70
81
|
"@types/node": "^22.15.18",
|
|
71
|
-
"@typescript-eslint/
|
|
72
|
-
"@
|
|
82
|
+
"@typescript-eslint/eslint-plugin": "^7.16.0",
|
|
83
|
+
"@typescript-eslint/parser": "^7.16.0",
|
|
84
|
+
"@wc-toolkit/cem-inheritance": "^1.0.4",
|
|
73
85
|
"@wc-toolkit/storybook-helpers": "^1.1.3",
|
|
86
|
+
"@web/test-runner": "^0.18.2",
|
|
87
|
+
"@web/test-runner-core": "^0.13.0",
|
|
88
|
+
"@web/test-runner-playwright": "^0.11.0",
|
|
89
|
+
"concurrently": "^9.0.1",
|
|
90
|
+
"eslint": "^8.57.0",
|
|
91
|
+
"eslint-config-prettier": "^9.1.0",
|
|
92
|
+
"eslint-plugin-prettier": "^5.4.1",
|
|
93
|
+
"eslint-plugin-tsdoc": "^0.4.0",
|
|
94
|
+
"husky": "^9.1.7",
|
|
95
|
+
"jasmine": "^4.5.0",
|
|
96
|
+
"lint-staged": "^16.1.0",
|
|
74
97
|
"playwright": "^1.52.0",
|
|
75
98
|
"prettier": "^3.5.3",
|
|
76
99
|
"storybook": "^8.6.14",
|
|
77
|
-
"typescript": "^5.
|
|
100
|
+
"typescript": "^5.5.3",
|
|
78
101
|
"vite-tsconfig-paths": "^5.1.4",
|
|
79
102
|
"web-test-runner-jasmine": "^0.0.6",
|
|
80
|
-
"
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
"
|
|
84
|
-
|
|
85
|
-
|
|
103
|
+
"wireit": "^0.14.12"
|
|
104
|
+
},
|
|
105
|
+
"wireit": {
|
|
106
|
+
"build": {
|
|
107
|
+
"dependencies": [
|
|
108
|
+
"build:ts"
|
|
109
|
+
]
|
|
110
|
+
},
|
|
111
|
+
"build:ts": {
|
|
112
|
+
"command": "tsc --pretty",
|
|
113
|
+
"files": [
|
|
114
|
+
"tsconfig.json",
|
|
115
|
+
"**/*.ts",
|
|
116
|
+
"!**/*.d.ts",
|
|
117
|
+
"!**/*-styles.ts",
|
|
118
|
+
"!catalog/",
|
|
119
|
+
"!scripts/"
|
|
120
|
+
],
|
|
121
|
+
"output": [
|
|
122
|
+
".tsbuildinfo",
|
|
123
|
+
"**/*.js",
|
|
124
|
+
"**/*.js.map",
|
|
125
|
+
"**/*.d.ts",
|
|
126
|
+
"!custom-elements-manifest.config.js",
|
|
127
|
+
"!web-test-runner.config.js",
|
|
128
|
+
"!test-runner.config.js",
|
|
129
|
+
"!commitlint.config.js",
|
|
130
|
+
"!types/",
|
|
131
|
+
"!catalog/",
|
|
132
|
+
"!scripts/",
|
|
133
|
+
"!.storybook/"
|
|
134
|
+
],
|
|
135
|
+
"clean": "if-file-deleted",
|
|
136
|
+
"dependencies": []
|
|
137
|
+
}
|
|
138
|
+
},
|
|
139
|
+
"eslintConfig": {
|
|
140
|
+
"parser": "@typescript-eslint/parser",
|
|
141
|
+
"parserOptions": {
|
|
142
|
+
"lib": [
|
|
143
|
+
"es2018",
|
|
144
|
+
"dom"
|
|
145
|
+
]
|
|
146
|
+
},
|
|
147
|
+
"extends": [
|
|
148
|
+
"@open-wc",
|
|
149
|
+
"prettier",
|
|
150
|
+
"plugin:prettier/recommended"
|
|
151
|
+
],
|
|
152
|
+
"ignorePatterns": [
|
|
153
|
+
"*/**/*.js",
|
|
154
|
+
"*/**/*.d.ts",
|
|
155
|
+
"node_modules",
|
|
156
|
+
"coverage",
|
|
157
|
+
"doc"
|
|
158
|
+
],
|
|
159
|
+
"env": {
|
|
160
|
+
"jasmine": true
|
|
161
|
+
},
|
|
162
|
+
"plugins": [
|
|
163
|
+
"@typescript-eslint",
|
|
164
|
+
"eslint-plugin-tsdoc"
|
|
165
|
+
],
|
|
166
|
+
"rules": {
|
|
167
|
+
"no-unused-vars": "off",
|
|
168
|
+
"class-methods-use-this": [
|
|
169
|
+
"error",
|
|
170
|
+
{
|
|
171
|
+
"exceptMethods": [
|
|
172
|
+
"locale",
|
|
173
|
+
"render"
|
|
174
|
+
]
|
|
175
|
+
}
|
|
176
|
+
],
|
|
177
|
+
"@typescript-eslint/no-explicit-any": [
|
|
178
|
+
"error",
|
|
179
|
+
{
|
|
180
|
+
"ignoreRestArgs": true
|
|
181
|
+
}
|
|
182
|
+
],
|
|
183
|
+
"import/no-extraneous-dependencies": [
|
|
184
|
+
"error",
|
|
185
|
+
{
|
|
186
|
+
"devDependencies": [
|
|
187
|
+
"**/*.test.ts",
|
|
188
|
+
"**/*.spec.ts",
|
|
189
|
+
"**/*.stories.ts",
|
|
190
|
+
"utils/storybook/*.ts",
|
|
191
|
+
"web-test-runner.config.js",
|
|
192
|
+
"test-runner.config.js",
|
|
193
|
+
"custom-elements-manifest.config.js"
|
|
194
|
+
]
|
|
195
|
+
}
|
|
196
|
+
],
|
|
197
|
+
"curly": [
|
|
198
|
+
"error",
|
|
199
|
+
"all"
|
|
200
|
+
],
|
|
201
|
+
"@typescript-eslint/no-unused-vars": [
|
|
202
|
+
"error",
|
|
203
|
+
{
|
|
204
|
+
"argsIgnorePattern": "^_",
|
|
205
|
+
"varsIgnorePattern": "^_",
|
|
206
|
+
"destructuredArrayIgnorePattern": "^_"
|
|
207
|
+
}
|
|
208
|
+
],
|
|
209
|
+
"import/no-unresolved": "off",
|
|
210
|
+
"import/extensions": [
|
|
211
|
+
"error",
|
|
212
|
+
"always",
|
|
213
|
+
{
|
|
214
|
+
"ignorePackages": true
|
|
215
|
+
}
|
|
216
|
+
]
|
|
217
|
+
},
|
|
218
|
+
"overrides": [
|
|
219
|
+
{
|
|
220
|
+
"files": [
|
|
221
|
+
"**/*.spec.ts",
|
|
222
|
+
"**/*.test.ts"
|
|
223
|
+
],
|
|
224
|
+
"rules": {
|
|
225
|
+
"no-unused-expressions": "off"
|
|
226
|
+
}
|
|
227
|
+
}
|
|
228
|
+
]
|
|
229
|
+
},
|
|
230
|
+
"prettier": {
|
|
231
|
+
"singleQuote": true,
|
|
232
|
+
"arrowParens": "avoid"
|
|
233
|
+
},
|
|
234
|
+
"lint-staged": {
|
|
235
|
+
"*.ts": [
|
|
236
|
+
"eslint --fix --config package.json",
|
|
237
|
+
"prettier --write",
|
|
238
|
+
"eslint --config package.json"
|
|
239
|
+
]
|
|
86
240
|
}
|
|
87
241
|
}
|
|
@@ -8,19 +8,14 @@
|
|
|
8
8
|
* Copyright 2025 OMICRON Electronics GmbH
|
|
9
9
|
* SPDX-License-Identifier: Apache-2.0
|
|
10
10
|
*/
|
|
11
|
-
import { CSSResultOrNative } from
|
|
12
|
-
import { FilledSelect } from
|
|
13
|
-
declare global {
|
|
14
|
-
interface HTMLElementTagNameMap {
|
|
15
|
-
"oscd-filled-select": OscdFilledSelect;
|
|
16
|
-
}
|
|
17
|
-
}
|
|
11
|
+
import { CSSResultOrNative } from 'lit';
|
|
12
|
+
import { FilledSelect } from '@material/web/select/internal/filled-select.js';
|
|
18
13
|
/**
|
|
14
|
+
* @tag oscd-filled-select
|
|
19
15
|
* @summary
|
|
20
16
|
* Select menus display a list of choices on temporary surfaces and display the
|
|
21
17
|
* currently selected menu item above the menu.
|
|
22
18
|
*
|
|
23
|
-
* @description
|
|
24
19
|
* The select component allows users to choose a value from a fixed list of
|
|
25
20
|
* available options. Composed of an interactive anchor button and a menu, it is
|
|
26
21
|
* analogous to the native HTML `<select>` element. This is the "filled"
|
|
@@ -3,15 +3,15 @@
|
|
|
3
3
|
* Copyright 2021 Google LLC
|
|
4
4
|
* SPDX-License-Identifier: Apache-2.0
|
|
5
5
|
*/
|
|
6
|
-
import { FilledSelect } from
|
|
7
|
-
import { styles } from
|
|
8
|
-
import { styles as sharedStyles } from
|
|
6
|
+
import { FilledSelect } from '@material/web/select/internal/filled-select.js';
|
|
7
|
+
import { styles } from '@material/web/select/internal/filled-select-styles.js';
|
|
8
|
+
import { styles as sharedStyles } from '@material/web/select/internal/shared-styles.js';
|
|
9
9
|
/**
|
|
10
|
+
* @tag oscd-filled-select
|
|
10
11
|
* @summary
|
|
11
12
|
* Select menus display a list of choices on temporary surfaces and display the
|
|
12
13
|
* currently selected menu item above the menu.
|
|
13
14
|
*
|
|
14
|
-
* @description
|
|
15
15
|
* The select component allows users to choose a value from a fixed list of
|
|
16
16
|
* available options. Composed of an interactive anchor button and a menu, it is
|
|
17
17
|
* analogous to the native HTML `<select>` element. This is the "filled"
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"OscdFilledSelect.js","sourceRoot":"","sources":["OscdFilledSelect.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAQH,OAAO,EAAE,YAAY,EAAE,MAAM,gDAAgD,CAAC;AAC9E,OAAO,EAAE,MAAM,EAAE,MAAM,uDAAuD,CAAC;AAC/E,OAAO,EAAE,MAAM,IAAI,YAAY,EAAE,MAAM,gDAAgD,CAAC;
|
|
1
|
+
{"version":3,"file":"OscdFilledSelect.js","sourceRoot":"","sources":["OscdFilledSelect.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAQH,OAAO,EAAE,YAAY,EAAE,MAAM,gDAAgD,CAAC;AAC9E,OAAO,EAAE,MAAM,EAAE,MAAM,uDAAuD,CAAC;AAC/E,OAAO,EAAE,MAAM,IAAI,YAAY,EAAE,MAAM,gDAAgD,CAAC;AAExF;;;;;;;;;;;;;;;;;;;;;;;;;;GA0BG;AACH,MAAM,OAAO,gBAAiB,SAAQ,YAAY;IAChD,MAAM,CAAU,MAAM,GAAwB,CAAC,YAAY,EAAE,MAAM,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 { CSSResultOrNative } from 'lit';\nimport { FilledSelect } from '@material/web/select/internal/filled-select.js';\nimport { styles } from '@material/web/select/internal/filled-select-styles.js';\nimport { styles as sharedStyles } from '@material/web/select/internal/shared-styles.js';\n\n/**\n * @tag oscd-filled-select\n * @summary\n * Select menus display a list of choices on temporary surfaces and display the\n * currently selected menu item above the menu.\n *\n * The select component allows users to choose a value from a fixed list of\n * available options. Composed of an interactive anchor button and a menu, it is\n * analogous to the native HTML `<select>` element. This is the \"filled\"\n * variant.\n *\n * @example\n * ```html\n * <oscd-filled-select label=\"fruits\">\n * <!-- An empty selected option will give select an \"un-filled\" state -->\n * <oscd-select-option selected></oscd-select-option>\n * <oscd-select-option value=\"apple\" headline=\"Apple\"></oscd-select-option>\n * <oscd-select-option value=\"banana\" headline=\"Banana\"></oscd-select-option>\n * <oscd-select-option value=\"kiwi\" headline=\"Kiwi\"></oscd-select-option>\n * <oscd-select-option value=\"orange\" headline=\"Orange\"></oscd-select-option>\n * <oscd-select-option value=\"tomato\" headline=\"Tomato\"></oscd-select-option>\n * </oscd-filled-select>\n * ```\n *\n * @final\n * @suppress {visibility}\n */\nexport class OscdFilledSelect extends FilledSelect {\n static override styles: CSSResultOrNative[] = [sharedStyles, styles];\n}\n"]}
|
|
@@ -8,19 +8,14 @@
|
|
|
8
8
|
* Copyright 2025 OMICRON Electronics GmbH
|
|
9
9
|
* SPDX-License-Identifier: Apache-2.0
|
|
10
10
|
*/
|
|
11
|
-
import { CSSResultOrNative } from
|
|
12
|
-
import { OutlinedSelect } from
|
|
13
|
-
declare global {
|
|
14
|
-
interface HTMLElementTagNameMap {
|
|
15
|
-
"oscd-outlined-select": OscdOutlinedSelect;
|
|
16
|
-
}
|
|
17
|
-
}
|
|
11
|
+
import { CSSResultOrNative } from 'lit';
|
|
12
|
+
import { OutlinedSelect } from '@material/web/select/internal/outlined-select.js';
|
|
18
13
|
/**
|
|
14
|
+
* @tag oscd-outlined-select
|
|
19
15
|
* @summary
|
|
20
16
|
* Select menus display a list of choices on temporary surfaces and display the
|
|
21
17
|
* currently selected menu item above the menu.
|
|
22
18
|
*
|
|
23
|
-
* @description
|
|
24
19
|
* The select component allows users to choose a value from a fixed list of
|
|
25
20
|
* available options. Composed of an interactive anchor button and a menu, it is
|
|
26
21
|
* analogous to the native HTML `<select>` element. This is the "outlined"
|
|
@@ -3,15 +3,15 @@
|
|
|
3
3
|
* Copyright 2021 Google LLC
|
|
4
4
|
* SPDX-License-Identifier: Apache-2.0
|
|
5
5
|
*/
|
|
6
|
-
import { OutlinedSelect } from
|
|
7
|
-
import { styles } from
|
|
8
|
-
import { styles as sharedStyles } from
|
|
6
|
+
import { OutlinedSelect } from '@material/web/select/internal/outlined-select.js';
|
|
7
|
+
import { styles } from '@material/web/select/internal/outlined-select-styles.js';
|
|
8
|
+
import { styles as sharedStyles } from '@material/web/select/internal/shared-styles.js';
|
|
9
9
|
/**
|
|
10
|
+
* @tag oscd-outlined-select
|
|
10
11
|
* @summary
|
|
11
12
|
* Select menus display a list of choices on temporary surfaces and display the
|
|
12
13
|
* currently selected menu item above the menu.
|
|
13
14
|
*
|
|
14
|
-
* @description
|
|
15
15
|
* The select component allows users to choose a value from a fixed list of
|
|
16
16
|
* available options. Composed of an interactive anchor button and a menu, it is
|
|
17
17
|
* analogous to the native HTML `<select>` element. This is the "outlined"
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"OscdOutlinedSelect.js","sourceRoot":"","sources":["OscdOutlinedSelect.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAQH,OAAO,EAAE,cAAc,EAAE,MAAM,kDAAkD,CAAC;AAClF,OAAO,EAAE,MAAM,EAAE,MAAM,yDAAyD,CAAC;AACjF,OAAO,EAAE,MAAM,IAAI,YAAY,EAAE,MAAM,gDAAgD,CAAC;
|
|
1
|
+
{"version":3,"file":"OscdOutlinedSelect.js","sourceRoot":"","sources":["OscdOutlinedSelect.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAQH,OAAO,EAAE,cAAc,EAAE,MAAM,kDAAkD,CAAC;AAClF,OAAO,EAAE,MAAM,EAAE,MAAM,yDAAyD,CAAC;AACjF,OAAO,EAAE,MAAM,IAAI,YAAY,EAAE,MAAM,gDAAgD,CAAC;AAExF;;;;;;;;;;;;;;;;;;;;;;;;;;GA0BG;AACH,MAAM,OAAO,kBAAmB,SAAQ,cAAc;IACpD,MAAM,CAAU,MAAM,GAAwB,CAAC,YAAY,EAAE,MAAM,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 { CSSResultOrNative } from 'lit';\nimport { OutlinedSelect } from '@material/web/select/internal/outlined-select.js';\nimport { styles } from '@material/web/select/internal/outlined-select-styles.js';\nimport { styles as sharedStyles } from '@material/web/select/internal/shared-styles.js';\n\n/**\n * @tag oscd-outlined-select\n * @summary\n * Select menus display a list of choices on temporary surfaces and display the\n * currently selected menu item above the menu.\n *\n * The select component allows users to choose a value from a fixed list of\n * available options. Composed of an interactive anchor button and a menu, it is\n * analogous to the native HTML `<select>` element. This is the \"outlined\"\n * variant.\n *\n * @example\n * ```html\n * <oscd-outlined-select label=\"fruits\">\n * <!-- An empty selected option will give select an \"un-filled\" state -->\n * <oscd-select-option selected></oscd-select-option>\n * <oscd-select-option value=\"apple\" headline=\"Apple\"></oscd-select-option>\n * <oscd-select-option value=\"banana\" headline=\"Banana\"></oscd-select-option>\n * <oscd-select-option value=\"kiwi\" headline=\"Kiwi\"></oscd-select-option>\n * <oscd-select-option value=\"orange\" headline=\"Orange\"></oscd-select-option>\n * <oscd-select-option value=\"tomato\" headline=\"Tomato\"></oscd-select-option>\n * </oscd-outlined-select>\n * ```\n *\n * @final\n * @suppress {visibility}\n */\nexport class OscdOutlinedSelect extends OutlinedSelect {\n static override styles: CSSResultOrNative[] = [sharedStyles, styles];\n}\n"]}
|