@omicronenergy/oscd-ui 0.0.2 → 0.0.4
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 +45 -0
- package/app-bar/OscdAppBar.js +142 -0
- package/app-bar/OscdAppBar.js.map +1 -0
- package/app-bar/OscdAppBar.stories.d.ts +10 -0
- package/app-bar/OscdAppBar.stories.js +85 -0
- package/app-bar/OscdAppBar.stories.js.map +1 -0
- package/app-bar/oscd-app-bar.d.ts +12 -0
- package/app-bar/oscd-app-bar.js +14 -0
- package/app-bar/oscd-app-bar.js.map +1 -0
- package/button/OscdButton.stories.d.ts +7 -0
- package/button/OscdButton.stories.js +60 -0
- package/button/OscdButton.stories.js.map +1 -0
- package/button/OscdFilledButton.d.ts +40 -0
- package/button/OscdFilledButton.js +42 -0
- package/button/OscdFilledButton.js.map +1 -0
- package/button/OscdFilledButton.spec.d.ts +6 -0
- package/button/OscdFilledButton.spec.js +75 -0
- package/button/OscdFilledButton.spec.js.map +1 -0
- package/button/OscdOutlinedButton.d.ts +42 -0
- package/button/OscdOutlinedButton.js +34 -0
- package/button/OscdOutlinedButton.js.map +1 -0
- package/button/OscdTextButton.d.ts +40 -0
- package/button/OscdTextButton.js +32 -0
- package/button/OscdTextButton.js.map +1 -0
- package/button/oscd-filled-button.d.ts +2 -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 +7 -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 +7 -0
- package/button/oscd-text-button.js +9 -0
- package/button/oscd-text-button.js.map +1 -0
- package/dialog/OscdDialog.d.ts +47 -0
- package/dialog/OscdDialog.js +49 -0
- package/dialog/OscdDialog.js.map +1 -0
- package/dialog/OscdDialog.stories.d.ts +5 -0
- package/dialog/OscdDialog.stories.js +50 -0
- package/dialog/OscdDialog.stories.js.map +1 -0
- package/dialog/oscd-dialog.d.ts +2 -0
- package/dialog/oscd-dialog.js +4 -0
- package/dialog/oscd-dialog.js.map +1 -0
- package/divider/OscdDivider.d.ts +30 -0
- package/divider/OscdDivider.js +21 -0
- package/divider/OscdDivider.js.map +1 -0
- package/divider/OscdDivider.stories.d.ts +5 -0
- package/divider/OscdDivider.stories.js +28 -0
- package/divider/OscdDivider.stories.js.map +1 -0
- package/divider/oscd-divider.d.ts +2 -0
- package/divider/oscd-divider.js +4 -0
- package/divider/oscd-divider.js.map +1 -0
- package/elevation/OscdElevation.d.ts +28 -0
- package/elevation/OscdElevation.js +19 -0
- package/elevation/OscdElevation.js.map +1 -0
- package/elevation/oscd-elevation.d.ts +7 -0
- package/elevation/oscd-elevation.js +9 -0
- package/elevation/oscd-elevation.js.map +1 -0
- package/field/OscdFilledField.d.ts +24 -0
- package/field/OscdFilledField.js +16 -0
- package/field/OscdFilledField.js.map +1 -0
- package/field/OscdOutlinedField.d.ts +24 -0
- package/field/OscdOutlinedField.js +16 -0
- package/field/OscdOutlinedField.js.map +1 -0
- package/field/oscd-filled-field.d.ts +2 -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 +2 -0
- package/field/oscd-outlined-field.js +4 -0
- package/field/oscd-outlined-field.js.map +1 -0
- package/icon/OscdIcon.d.ts +25 -0
- package/icon/OscdIcon.js +16 -0
- package/icon/OscdIcon.js.map +1 -0
- package/icon/OscdIcon.stories.d.ts +5 -0
- package/icon/OscdIcon.stories.js +54 -0
- package/icon/OscdIcon.stories.js.map +1 -0
- package/icon/oscd-icon.d.ts +2 -0
- package/icon/oscd-icon.js +4 -0
- package/icon/oscd-icon.js.map +1 -0
- package/iconbutton/OscdFilledIconButton.d.ts +44 -0
- package/iconbutton/OscdFilledIconButton.js +37 -0
- package/iconbutton/OscdFilledIconButton.js.map +1 -0
- package/iconbutton/OscdFilledTonalIconButton.d.ts +44 -0
- package/iconbutton/OscdFilledTonalIconButton.js +37 -0
- package/iconbutton/OscdFilledTonalIconButton.js.map +1 -0
- package/iconbutton/OscdIconButton.d.ts +43 -0
- package/iconbutton/OscdIconButton.js +36 -0
- package/iconbutton/OscdIconButton.js.map +1 -0
- package/iconbutton/OscdIconButton.stories.d.ts +7 -0
- package/iconbutton/OscdIconButton.stories.js +101 -0
- package/iconbutton/OscdIconButton.stories.js.map +1 -0
- package/iconbutton/OutlinedIconButton.d.ts +43 -0
- package/iconbutton/OutlinedIconButton.js +36 -0
- package/iconbutton/OutlinedIconButton.js.map +1 -0
- package/iconbutton/oscd-filled-icon-button.d.ts +2 -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 +2 -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 +2 -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 +2 -0
- package/iconbutton/oscd-outlined-icon-button.js +4 -0
- package/iconbutton/oscd-outlined-icon-button.js.map +1 -0
- package/list/OscdList.d.ts +39 -0
- package/list/OscdList.js +44 -0
- package/list/OscdList.js.map +1 -0
- package/list/OscdList.stories.d.ts +5 -0
- package/list/OscdList.stories.js +30 -0
- package/list/OscdList.stories.js.map +1 -0
- package/list/OscdListItem.d.ts +59 -0
- package/list/OscdListItem.js +80 -0
- package/list/OscdListItem.js.map +1 -0
- package/list/oscd-list-item.d.ts +2 -0
- package/list/oscd-list-item.js +4 -0
- package/list/oscd-list-item.js.map +1 -0
- package/list/oscd-list.d.ts +2 -0
- package/list/oscd-list.js +4 -0
- package/list/oscd-list.js.map +1 -0
- package/menu/OscdMenu.d.ts +73 -0
- package/menu/OscdMenu.js +62 -0
- package/menu/OscdMenu.js.map +1 -0
- package/menu/OscdMenu.stories.d.ts +6 -0
- package/menu/OscdMenu.stories.js +55 -0
- package/menu/OscdMenu.stories.js.map +1 -0
- package/menu/OscdMenuItem.d.ts +37 -0
- package/menu/OscdMenuItem.js +26 -0
- package/menu/OscdMenuItem.js.map +1 -0
- package/menu/OscdMenuItem.stories.d.ts +5 -0
- package/menu/OscdMenuItem.stories.js +37 -0
- package/menu/OscdMenuItem.stories.js.map +1 -0
- package/menu/oscd-menu-item.d.ts +2 -0
- package/menu/oscd-menu-item.js +4 -0
- package/menu/oscd-menu-item.js.map +1 -0
- package/menu/oscd-menu.d.ts +1 -0
- package/menu/oscd-menu.js +4 -0
- package/menu/oscd-menu.js.map +1 -0
- package/navigation-drawer/OscdNavigationDrawer.d.ts +15 -0
- package/navigation-drawer/OscdNavigationDrawer.js +37 -0
- package/navigation-drawer/OscdNavigationDrawer.js.map +1 -0
- package/navigation-drawer/OscdNavigationDrawer.stories.d.ts +5 -0
- package/navigation-drawer/OscdNavigationDrawer.stories.js +97 -0
- package/navigation-drawer/OscdNavigationDrawer.stories.js.map +1 -0
- package/navigation-drawer/OscdNavigationDrawerHeader.d.ts +15 -0
- package/navigation-drawer/OscdNavigationDrawerHeader.js +61 -0
- package/navigation-drawer/OscdNavigationDrawerHeader.js.map +1 -0
- package/navigation-drawer/OscdNavigationDrawerHeader.stories.d.ts +5 -0
- package/navigation-drawer/OscdNavigationDrawerHeader.stories.js +35 -0
- package/navigation-drawer/OscdNavigationDrawerHeader.stories.js.map +1 -0
- package/navigation-drawer/oscd-navigation-drawer-header.d.ts +2 -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 +3 -2
- package/select/OscdFilledSelect.d.ts +47 -0
- package/select/OscdFilledSelect.js +39 -0
- package/select/OscdFilledSelect.js.map +1 -0
- package/select/OscdFilledSelect.stories.d.ts +5 -0
- package/select/OscdFilledSelect.stories.js +29 -0
- package/select/OscdFilledSelect.stories.js.map +1 -0
- package/select/OscdOutlinedSelect.d.ts +47 -0
- package/select/OscdOutlinedSelect.js +39 -0
- package/select/OscdOutlinedSelect.js.map +1 -0
- package/select/OscdOutlinedSelect.stories.d.ts +5 -0
- package/select/OscdOutlinedSelect.stories.js +29 -0
- package/select/OscdOutlinedSelect.stories.js.map +1 -0
- package/select/OscdSelectOption.d.ts +51 -0
- package/select/OscdSelectOption.js +41 -0
- package/select/OscdSelectOption.js.map +1 -0
- package/select/oscd-filled-select.d.ts +2 -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 +2 -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 +2 -0
- package/select/oscd-select-option.js +4 -0
- package/select/oscd-select-option.js.map +1 -0
- package/tabs/OscdPrimaryTab.d.ts +26 -0
- package/tabs/OscdPrimaryTab.js +18 -0
- package/tabs/OscdPrimaryTab.js.map +1 -0
- package/tabs/OscdPrimaryTab.stories.d.ts +5 -0
- package/tabs/OscdPrimaryTab.stories.js +33 -0
- package/tabs/OscdPrimaryTab.stories.js.map +1 -0
- package/tabs/OscdSecondaryTab.d.ts +26 -0
- package/tabs/OscdSecondaryTab.js +18 -0
- package/tabs/OscdSecondaryTab.js.map +1 -0
- package/tabs/OscdSecondaryTab.stories.d.ts +5 -0
- package/tabs/OscdSecondaryTab.stories.js +33 -0
- package/tabs/OscdSecondaryTab.stories.js.map +1 -0
- package/tabs/OscdTabs.d.ts +26 -0
- package/tabs/OscdTabs.js +17 -0
- package/tabs/OscdTabs.js.map +1 -0
- package/tabs/OscdTabs.stories.d.ts +5 -0
- package/tabs/OscdTabs.stories.js +29 -0
- package/tabs/OscdTabs.stories.js.map +1 -0
- package/tabs/oscd-primary-tab.d.ts +2 -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 +2 -0
- package/tabs/oscd-secondary-tab.js +4 -0
- package/tabs/oscd-secondary-tab.js.map +1 -0
- package/tabs/oscd-tabs.d.ts +2 -0
- package/tabs/oscd-tabs.js +4 -0
- package/tabs/oscd-tabs.js.map +1 -0
- package/textfield/OscdFilledTextField.d.ts +31 -0
- package/textfield/OscdFilledTextField.js +30 -0
- package/textfield/OscdFilledTextField.js.map +1 -0
- package/textfield/OscdOutlinedTextField.d.ts +27 -0
- package/textfield/OscdOutlinedTextField.js +24 -0
- package/textfield/OscdOutlinedTextField.js.map +1 -0
- package/textfield/oscd-filled-text-field.d.ts +2 -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 +2 -0
- package/textfield/oscd-outlined-text-field.js +4 -0
- package/textfield/oscd-outlined-text-field.js.map +1 -0
- package/theming/AllComponents.stories.d.ts +5 -0
- package/theming/AllComponents.stories.js +309 -0
- package/theming/AllComponents.stories.js.map +1 -0
- package/utils/storybook/getStorybookHelpers.d.ts +4 -0
- package/utils/storybook/getStorybookHelpers.js +53 -0
- package/utils/storybook/getStorybookHelpers.js.map +1 -0
- package/utils/storybook/scopedWcDecorator.d.ts +2 -0
- package/utils/storybook/scopedWcDecorator.js +27 -0
- package/utils/storybook/scopedWcDecorator.js.map +1 -0
- package/utils/storybook/themingDecorator.d.ts +17 -0
- package/utils/storybook/themingDecorator.js +100 -0
- package/utils/storybook/themingDecorator.js.map +1 -0
|
@@ -0,0 +1,47 @@
|
|
|
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 { OutlinedSelect } from "@material/web/select/internal/outlined-select.js";
|
|
13
|
+
declare global {
|
|
14
|
+
interface HTMLElementTagNameMap {
|
|
15
|
+
"oscd-outlined-select": OscdOutlinedSelect;
|
|
16
|
+
}
|
|
17
|
+
}
|
|
18
|
+
/**
|
|
19
|
+
* @summary
|
|
20
|
+
* Select menus display a list of choices on temporary surfaces and display the
|
|
21
|
+
* currently selected menu item above the menu.
|
|
22
|
+
*
|
|
23
|
+
* @description
|
|
24
|
+
* The select component allows users to choose a value from a fixed list of
|
|
25
|
+
* available options. Composed of an interactive anchor button and a menu, it is
|
|
26
|
+
* analogous to the native HTML `<select>` element. This is the "outlined"
|
|
27
|
+
* variant.
|
|
28
|
+
*
|
|
29
|
+
* @example
|
|
30
|
+
* ```html
|
|
31
|
+
* <oscd-outlined-select label="fruits">
|
|
32
|
+
* <!-- An empty selected option will give select an "un-filled" state -->
|
|
33
|
+
* <oscd-select-option selected></oscd-select-option>
|
|
34
|
+
* <oscd-select-option value="apple" headline="Apple"></oscd-select-option>
|
|
35
|
+
* <oscd-select-option value="banana" headline="Banana"></oscd-select-option>
|
|
36
|
+
* <oscd-select-option value="kiwi" headline="Kiwi"></oscd-select-option>
|
|
37
|
+
* <oscd-select-option value="orange" headline="Orange"></oscd-select-option>
|
|
38
|
+
* <oscd-select-option value="tomato" headline="Tomato"></oscd-select-option>
|
|
39
|
+
* </oscd-outlined-select>
|
|
40
|
+
* ```
|
|
41
|
+
*
|
|
42
|
+
* @final
|
|
43
|
+
* @suppress {visibility}
|
|
44
|
+
*/
|
|
45
|
+
export declare class OscdOutlinedSelect extends OutlinedSelect {
|
|
46
|
+
static styles: CSSResultOrNative[];
|
|
47
|
+
}
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
* Copyright 2021 Google LLC
|
|
4
|
+
* SPDX-License-Identifier: Apache-2.0
|
|
5
|
+
*/
|
|
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
|
+
/**
|
|
10
|
+
* @summary
|
|
11
|
+
* Select menus display a list of choices on temporary surfaces and display the
|
|
12
|
+
* currently selected menu item above the menu.
|
|
13
|
+
*
|
|
14
|
+
* @description
|
|
15
|
+
* The select component allows users to choose a value from a fixed list of
|
|
16
|
+
* available options. Composed of an interactive anchor button and a menu, it is
|
|
17
|
+
* analogous to the native HTML `<select>` element. This is the "outlined"
|
|
18
|
+
* variant.
|
|
19
|
+
*
|
|
20
|
+
* @example
|
|
21
|
+
* ```html
|
|
22
|
+
* <oscd-outlined-select label="fruits">
|
|
23
|
+
* <!-- An empty selected option will give select an "un-filled" state -->
|
|
24
|
+
* <oscd-select-option selected></oscd-select-option>
|
|
25
|
+
* <oscd-select-option value="apple" headline="Apple"></oscd-select-option>
|
|
26
|
+
* <oscd-select-option value="banana" headline="Banana"></oscd-select-option>
|
|
27
|
+
* <oscd-select-option value="kiwi" headline="Kiwi"></oscd-select-option>
|
|
28
|
+
* <oscd-select-option value="orange" headline="Orange"></oscd-select-option>
|
|
29
|
+
* <oscd-select-option value="tomato" headline="Tomato"></oscd-select-option>
|
|
30
|
+
* </oscd-outlined-select>
|
|
31
|
+
* ```
|
|
32
|
+
*
|
|
33
|
+
* @final
|
|
34
|
+
* @suppress {visibility}
|
|
35
|
+
*/
|
|
36
|
+
export class OscdOutlinedSelect extends OutlinedSelect {
|
|
37
|
+
static styles = [sharedStyles, styles];
|
|
38
|
+
}
|
|
39
|
+
//# sourceMappingURL=OscdOutlinedSelect.js.map
|
|
@@ -0,0 +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;AAQxF;;;;;;;;;;;;;;;;;;;;;;;;;;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\ndeclare global {\n interface HTMLElementTagNameMap {\n \"oscd-outlined-select\": OscdOutlinedSelect;\n }\n}\n\n/**\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 * @description\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"]}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import { html } from "lit";
|
|
2
|
+
import { OscdOutlinedSelect } from "select/OscdOutlinedSelect";
|
|
3
|
+
import { OscdSelectOption } from "select/OscdSelectOption";
|
|
4
|
+
import { scopedWcDecorator } from "utils/storybook/scopedWcDecorator.js";
|
|
5
|
+
const meta = {
|
|
6
|
+
title: "Open SCD/Selects/Outlined Select",
|
|
7
|
+
component: "oscd-outlined-select",
|
|
8
|
+
tags: ["autodocs"],
|
|
9
|
+
decorators: [scopedWcDecorator],
|
|
10
|
+
parameters: {
|
|
11
|
+
layout: "centered",
|
|
12
|
+
scopedElements: {
|
|
13
|
+
"oscd-outlined-select": OscdOutlinedSelect,
|
|
14
|
+
"oscd-select-option": OscdSelectOption,
|
|
15
|
+
},
|
|
16
|
+
},
|
|
17
|
+
render: () => html `
|
|
18
|
+
<oscd-outlined-select label="Choose one">
|
|
19
|
+
<oscd-select-option value="1">Option 1</oscd-select-option>
|
|
20
|
+
<oscd-select-option value="2">Option 2</oscd-select-option>
|
|
21
|
+
</oscd-outlined-select>
|
|
22
|
+
`,
|
|
23
|
+
argTypes: {},
|
|
24
|
+
};
|
|
25
|
+
export default meta;
|
|
26
|
+
export const Default = {
|
|
27
|
+
args: {},
|
|
28
|
+
};
|
|
29
|
+
//# sourceMappingURL=OscdOutlinedSelect.stories.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"OscdOutlinedSelect.stories.js","sourceRoot":"","sources":["OscdOutlinedSelect.stories.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,KAAK,CAAC;AAG3B,OAAO,EAAE,kBAAkB,EAAE,MAAM,2BAA2B,CAAC;AAC/D,OAAO,EAAE,gBAAgB,EAAE,MAAM,yBAAyB,CAAC;AAC3D,OAAO,EAAE,iBAAiB,EAAE,MAAM,sCAAsC,CAAC;AAEzE,MAAM,IAAI,GAAS;IACjB,KAAK,EAAE,kCAAkC;IACzC,SAAS,EAAE,sBAAsB;IACjC,IAAI,EAAE,CAAC,UAAU,CAAC;IAClB,UAAU,EAAE,CAAC,iBAAiB,CAAC;IAC/B,UAAU,EAAE;QACV,MAAM,EAAE,UAAU;QAClB,cAAc,EAAE;YACd,sBAAsB,EAAE,kBAAkB;YAC1C,oBAAoB,EAAE,gBAAgB;SACvC;KACF;IACD,MAAM,EAAE,GAAG,EAAE,CAAC,IAAI,CAAA;;;;;GAKjB;IACD,QAAQ,EAAE,EAAE;CACb,CAAC;AAEF,eAAe,IAAI,CAAC;AAGpB,MAAM,CAAC,MAAM,OAAO,GAAU;IAC5B,IAAI,EAAE,EAAE;CACT,CAAC","sourcesContent":["import { html } from \"lit\";\nimport type { Meta, StoryObj } from \"@storybook/web-components\";\n\nimport { OscdOutlinedSelect } from \"select/OscdOutlinedSelect\";\nimport { OscdSelectOption } from \"select/OscdSelectOption\";\nimport { scopedWcDecorator } from \"utils/storybook/scopedWcDecorator.js\";\n\nconst meta: Meta = {\n title: \"Open SCD/Selects/Outlined Select\",\n component: \"oscd-outlined-select\",\n tags: [\"autodocs\"],\n decorators: [scopedWcDecorator],\n parameters: {\n layout: \"centered\",\n scopedElements: {\n \"oscd-outlined-select\": OscdOutlinedSelect,\n \"oscd-select-option\": OscdSelectOption,\n },\n },\n render: () => html`\n <oscd-outlined-select label=\"Choose one\">\n <oscd-select-option value=\"1\">Option 1</oscd-select-option>\n <oscd-select-option value=\"2\">Option 2</oscd-select-option>\n </oscd-outlined-select>\n `,\n argTypes: {},\n};\n\nexport default meta;\ntype Story = StoryObj;\n\nexport const Default: Story = {\n args: {},\n};\n"]}
|
|
@@ -0,0 +1,51 @@
|
|
|
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 { SelectOptionEl } from "@material/web/select/internal/selectoption/select-option.js";
|
|
13
|
+
export { type SelectOption } from "@material/web/select/internal/selectoption/select-option.js";
|
|
14
|
+
declare global {
|
|
15
|
+
interface HTMLElementTagNameMap {
|
|
16
|
+
"oscd-select-option": OscdSelectOption;
|
|
17
|
+
}
|
|
18
|
+
}
|
|
19
|
+
/**
|
|
20
|
+
* @summary
|
|
21
|
+
* Select menus display a list of choices on temporary surfaces and display the
|
|
22
|
+
* currently selected menu item above the menu.
|
|
23
|
+
*
|
|
24
|
+
* @description
|
|
25
|
+
* The select component allows users to choose a value from a fixed list of
|
|
26
|
+
* available options. Composed of an interactive anchor button and a menu, it is
|
|
27
|
+
* analogous to the native HTML `<select>` element. This is the option that
|
|
28
|
+
* can be placed inside of an oscd-select.
|
|
29
|
+
*
|
|
30
|
+
* This component is a subclass of `oscd-menu-item` and can accept the same slots,
|
|
31
|
+
* properties, and events as `oscd-menu-item`.
|
|
32
|
+
*
|
|
33
|
+
* @example
|
|
34
|
+
* ```html
|
|
35
|
+
* <oscd-outlined-select label="fruits">
|
|
36
|
+
* <!-- An empty selected option will give select an "un-filled" state -->
|
|
37
|
+
* <oscd-select-option selected></oscd-select-option>
|
|
38
|
+
* <oscd-select-option value="apple" headline="Apple"></oscd-select-option>
|
|
39
|
+
* <oscd-select-option value="banana" headline="Banana"></oscd-select-option>
|
|
40
|
+
* <oscd-select-option value="kiwi" headline="Kiwi"></oscd-select-option>
|
|
41
|
+
* <oscd-select-option value="orange" headline="Orange"></oscd-select-option>
|
|
42
|
+
* <oscd-select-option value="tomato" headline="Tomato"></oscd-select-option>
|
|
43
|
+
* </oscd-outlined-select>
|
|
44
|
+
* ```
|
|
45
|
+
*
|
|
46
|
+
* @final
|
|
47
|
+
* @suppress {visibility}
|
|
48
|
+
*/
|
|
49
|
+
export declare class OscdSelectOption extends SelectOptionEl {
|
|
50
|
+
static styles: CSSResultOrNative[];
|
|
51
|
+
}
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
* Copyright 2021 Google LLC
|
|
4
|
+
* SPDX-License-Identifier: Apache-2.0
|
|
5
|
+
*/
|
|
6
|
+
import { styles } from "@material/web/menu/internal/menuitem/menu-item-styles.js";
|
|
7
|
+
import { SelectOptionEl } from "@material/web/select/internal/selectoption/select-option.js";
|
|
8
|
+
/**
|
|
9
|
+
* @summary
|
|
10
|
+
* Select menus display a list of choices on temporary surfaces and display the
|
|
11
|
+
* currently selected menu item above the menu.
|
|
12
|
+
*
|
|
13
|
+
* @description
|
|
14
|
+
* The select component allows users to choose a value from a fixed list of
|
|
15
|
+
* available options. Composed of an interactive anchor button and a menu, it is
|
|
16
|
+
* analogous to the native HTML `<select>` element. This is the option that
|
|
17
|
+
* can be placed inside of an oscd-select.
|
|
18
|
+
*
|
|
19
|
+
* This component is a subclass of `oscd-menu-item` and can accept the same slots,
|
|
20
|
+
* properties, and events as `oscd-menu-item`.
|
|
21
|
+
*
|
|
22
|
+
* @example
|
|
23
|
+
* ```html
|
|
24
|
+
* <oscd-outlined-select label="fruits">
|
|
25
|
+
* <!-- An empty selected option will give select an "un-filled" state -->
|
|
26
|
+
* <oscd-select-option selected></oscd-select-option>
|
|
27
|
+
* <oscd-select-option value="apple" headline="Apple"></oscd-select-option>
|
|
28
|
+
* <oscd-select-option value="banana" headline="Banana"></oscd-select-option>
|
|
29
|
+
* <oscd-select-option value="kiwi" headline="Kiwi"></oscd-select-option>
|
|
30
|
+
* <oscd-select-option value="orange" headline="Orange"></oscd-select-option>
|
|
31
|
+
* <oscd-select-option value="tomato" headline="Tomato"></oscd-select-option>
|
|
32
|
+
* </oscd-outlined-select>
|
|
33
|
+
* ```
|
|
34
|
+
*
|
|
35
|
+
* @final
|
|
36
|
+
* @suppress {visibility}
|
|
37
|
+
*/
|
|
38
|
+
export class OscdSelectOption extends SelectOptionEl {
|
|
39
|
+
static styles = [styles];
|
|
40
|
+
}
|
|
41
|
+
//# sourceMappingURL=OscdSelectOption.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"OscdSelectOption.js","sourceRoot":"","sources":["OscdSelectOption.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAQH,OAAO,EAAE,MAAM,EAAE,MAAM,0DAA0D,CAAC;AAElF,OAAO,EAAE,cAAc,EAAE,MAAM,6DAA6D,CAAC;AAU7F;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA6BG;AACH,MAAM,OAAO,gBAAiB,SAAQ,cAAc;IAClD,MAAM,CAAU,MAAM,GAAwB,CAAC,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 { styles } from \"@material/web/menu/internal/menuitem/menu-item-styles.js\";\n\nimport { SelectOptionEl } from \"@material/web/select/internal/selectoption/select-option.js\";\n\nexport { type SelectOption } from \"@material/web/select/internal/selectoption/select-option.js\";\n\ndeclare global {\n interface HTMLElementTagNameMap {\n \"oscd-select-option\": OscdSelectOption;\n }\n}\n\n/**\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 * @description\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 option that\n * can be placed inside of an oscd-select.\n *\n * This component is a subclass of `oscd-menu-item` and can accept the same slots,\n * properties, and events as `oscd-menu-item`.\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 OscdSelectOption extends SelectOptionEl {\n static override styles: CSSResultOrNative[] = [styles];\n}\n"]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"oscd-filled-select.js","sourceRoot":"","sources":["oscd-filled-select.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAC;AAEtD,cAAc,CAAC,MAAM,CAAC,oBAAoB,EAAE,gBAAgB,CAAC,CAAC;AAC9D,OAAO,EAAE,gBAAgB,EAAE,CAAC","sourcesContent":["import { OscdFilledSelect } from \"./OscdFilledSelect\";\n\ncustomElements.define(\"oscd-filled-select\", OscdFilledSelect);\nexport { OscdFilledSelect };\n"]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"oscd-outlined-select.js","sourceRoot":"","sources":["oscd-outlined-select.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,kBAAkB,EAAE,MAAM,sBAAsB,CAAC;AAE1D,cAAc,CAAC,MAAM,CAAC,sBAAsB,EAAE,kBAAkB,CAAC,CAAC;AAClE,OAAO,EAAE,kBAAkB,EAAE,CAAC","sourcesContent":["import { OscdOutlinedSelect } from \"./OscdOutlinedSelect\";\n\ncustomElements.define(\"oscd-outlined-select\", OscdOutlinedSelect);\nexport { OscdOutlinedSelect };\n"]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"oscd-select-option.js","sourceRoot":"","sources":["oscd-select-option.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAC;AAEtD,cAAc,CAAC,MAAM,CAAC,oBAAoB,EAAE,gBAAgB,CAAC,CAAC;AAC9D,OAAO,EAAE,gBAAgB,EAAE,CAAC","sourcesContent":["import { OscdSelectOption } from \"./OscdSelectOption\";\n\ncustomElements.define(\"oscd-select-option\", OscdSelectOption);\nexport { OscdSelectOption };\n"]}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
* Copyright 2023 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 { PrimaryTab } from "@material/web/tabs/internal/primary-tab.js";
|
|
13
|
+
declare global {
|
|
14
|
+
interface HTMLElementTagNameMap {
|
|
15
|
+
"oscd-primary-tab": OscdPrimaryTab;
|
|
16
|
+
}
|
|
17
|
+
}
|
|
18
|
+
/**
|
|
19
|
+
* @summary Tab allow users to display a tab within a Tabs.
|
|
20
|
+
*
|
|
21
|
+
* @final
|
|
22
|
+
* @suppress {visibility}
|
|
23
|
+
*/
|
|
24
|
+
export declare class OscdPrimaryTab extends PrimaryTab {
|
|
25
|
+
static styles: CSSResultOrNative[];
|
|
26
|
+
}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
* Copyright 2023 Google LLC
|
|
4
|
+
* SPDX-License-Identifier: Apache-2.0
|
|
5
|
+
*/
|
|
6
|
+
import { PrimaryTab } from "@material/web/tabs/internal/primary-tab.js";
|
|
7
|
+
import { styles as primaryStyles } from "@material/web/tabs/internal/primary-tab-styles.js";
|
|
8
|
+
import { styles as sharedStyles } from "@material/web/tabs/internal/tab-styles.js";
|
|
9
|
+
/**
|
|
10
|
+
* @summary Tab allow users to display a tab within a Tabs.
|
|
11
|
+
*
|
|
12
|
+
* @final
|
|
13
|
+
* @suppress {visibility}
|
|
14
|
+
*/
|
|
15
|
+
export class OscdPrimaryTab extends PrimaryTab {
|
|
16
|
+
static styles = [sharedStyles, primaryStyles];
|
|
17
|
+
}
|
|
18
|
+
//# sourceMappingURL=OscdPrimaryTab.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"OscdPrimaryTab.js","sourceRoot":"","sources":["OscdPrimaryTab.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAQH,OAAO,EAAE,UAAU,EAAE,MAAM,4CAA4C,CAAC;AACxE,OAAO,EAAE,MAAM,IAAI,aAAa,EAAE,MAAM,mDAAmD,CAAC;AAC5F,OAAO,EAAE,MAAM,IAAI,YAAY,EAAE,MAAM,2CAA2C,CAAC;AAQnF;;;;;GAKG;AACH,MAAM,OAAO,cAAe,SAAQ,UAAU;IAC5C,MAAM,CAAU,MAAM,GAAwB,CAAC,YAAY,EAAE,aAAa,CAAC,CAAC","sourcesContent":["/**\n * @license\n * Copyright 2023 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 { PrimaryTab } from \"@material/web/tabs/internal/primary-tab.js\";\nimport { styles as primaryStyles } from \"@material/web/tabs/internal/primary-tab-styles.js\";\nimport { styles as sharedStyles } from \"@material/web/tabs/internal/tab-styles.js\";\n\ndeclare global {\n interface HTMLElementTagNameMap {\n \"oscd-primary-tab\": OscdPrimaryTab;\n }\n}\n\n/**\n * @summary Tab allow users to display a tab within a Tabs.\n *\n * @final\n * @suppress {visibility}\n */\nexport class OscdPrimaryTab extends PrimaryTab {\n static override styles: CSSResultOrNative[] = [sharedStyles, primaryStyles];\n}\n"]}
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import { html } from "lit";
|
|
2
|
+
import { OscdPrimaryTab } from "tabs/OscdPrimaryTab";
|
|
3
|
+
import { scopedWcDecorator } from "utils/storybook/scopedWcDecorator.js";
|
|
4
|
+
const meta = {
|
|
5
|
+
title: "Open SCD/Tabs/Primary Tab",
|
|
6
|
+
component: "oscd-primary-tab",
|
|
7
|
+
tags: ["autodocs"],
|
|
8
|
+
decorators: [scopedWcDecorator],
|
|
9
|
+
parameters: {
|
|
10
|
+
layout: "centered",
|
|
11
|
+
scopedElements: {
|
|
12
|
+
"oscd-primary-tab": OscdPrimaryTab,
|
|
13
|
+
},
|
|
14
|
+
},
|
|
15
|
+
render: ({ label }) => html `<oscd-primary-tab>${label}</oscd-primary-tab>`,
|
|
16
|
+
argTypes: {
|
|
17
|
+
label: {
|
|
18
|
+
control: { type: "text" },
|
|
19
|
+
description: "Tab label",
|
|
20
|
+
table: {
|
|
21
|
+
category: "Web Component Properties",
|
|
22
|
+
defaultValue: { summary: "Tab" },
|
|
23
|
+
},
|
|
24
|
+
},
|
|
25
|
+
},
|
|
26
|
+
};
|
|
27
|
+
export default meta;
|
|
28
|
+
export const Default = {
|
|
29
|
+
args: {
|
|
30
|
+
label: "Tab",
|
|
31
|
+
},
|
|
32
|
+
};
|
|
33
|
+
//# sourceMappingURL=OscdPrimaryTab.stories.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"OscdPrimaryTab.stories.js","sourceRoot":"","sources":["OscdPrimaryTab.stories.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,KAAK,CAAC;AAG3B,OAAO,EAAE,cAAc,EAAE,MAAM,qBAAqB,CAAC;AACrD,OAAO,EAAE,iBAAiB,EAAE,MAAM,sCAAsC,CAAC;AAEzE,MAAM,IAAI,GAAS;IACjB,KAAK,EAAE,2BAA2B;IAClC,SAAS,EAAE,kBAAkB;IAC7B,IAAI,EAAE,CAAC,UAAU,CAAC;IAClB,UAAU,EAAE,CAAC,iBAAiB,CAAC;IAC/B,UAAU,EAAE;QACV,MAAM,EAAE,UAAU;QAClB,cAAc,EAAE;YACd,kBAAkB,EAAE,cAAc;SACnC;KACF;IACD,MAAM,EAAE,CAAC,EAAE,KAAK,EAAE,EAAE,EAAE,CAAC,IAAI,CAAA,qBAAqB,KAAK,qBAAqB;IAC1E,QAAQ,EAAE;QACR,KAAK,EAAE;YACL,OAAO,EAAE,EAAE,IAAI,EAAE,MAAM,EAAE;YACzB,WAAW,EAAE,WAAW;YACxB,KAAK,EAAE;gBACL,QAAQ,EAAE,0BAA0B;gBACpC,YAAY,EAAE,EAAE,OAAO,EAAE,KAAK,EAAE;aACjC;SACF;KACF;CACF,CAAC;AAEF,eAAe,IAAI,CAAC;AAGpB,MAAM,CAAC,MAAM,OAAO,GAAU;IAC5B,IAAI,EAAE;QACJ,KAAK,EAAE,KAAK;KACb;CACF,CAAC","sourcesContent":["import { html } from \"lit\";\nimport type { Meta, StoryObj } from \"@storybook/web-components\";\n\nimport { OscdPrimaryTab } from \"tabs/OscdPrimaryTab\";\nimport { scopedWcDecorator } from \"utils/storybook/scopedWcDecorator.js\";\n\nconst meta: Meta = {\n title: \"Open SCD/Tabs/Primary Tab\",\n component: \"oscd-primary-tab\",\n tags: [\"autodocs\"],\n decorators: [scopedWcDecorator],\n parameters: {\n layout: \"centered\",\n scopedElements: {\n \"oscd-primary-tab\": OscdPrimaryTab,\n },\n },\n render: ({ label }) => html`<oscd-primary-tab>${label}</oscd-primary-tab>`,\n argTypes: {\n label: {\n control: { type: \"text\" },\n description: \"Tab label\",\n table: {\n category: \"Web Component Properties\",\n defaultValue: { summary: \"Tab\" },\n },\n },\n },\n};\n\nexport default meta;\ntype Story = StoryObj;\n\nexport const Default: Story = {\n args: {\n label: \"Tab\",\n },\n};\n"]}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
* Copyright 2023 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 { SecondaryTab } from "@material/web/tabs/internal/secondary-tab.js";
|
|
13
|
+
declare global {
|
|
14
|
+
interface HTMLElementTagNameMap {
|
|
15
|
+
"oscd-secondary-tab": OscdSecondaryTab;
|
|
16
|
+
}
|
|
17
|
+
}
|
|
18
|
+
/**
|
|
19
|
+
* @summary Tab allow users to display a tab within a Tabs.
|
|
20
|
+
*
|
|
21
|
+
* @final
|
|
22
|
+
* @suppress {visibility}
|
|
23
|
+
*/
|
|
24
|
+
export declare class OscdSecondaryTab extends SecondaryTab {
|
|
25
|
+
static styles: CSSResultOrNative[];
|
|
26
|
+
}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
* Copyright 2023 Google LLC
|
|
4
|
+
* SPDX-License-Identifier: Apache-2.0
|
|
5
|
+
*/
|
|
6
|
+
import { SecondaryTab } from "@material/web/tabs/internal/secondary-tab.js";
|
|
7
|
+
import { styles as secondaryStyles } from "@material/web/tabs/internal/secondary-tab-styles.js";
|
|
8
|
+
import { styles as sharedStyles } from "@material/web/tabs/internal/tab-styles.js";
|
|
9
|
+
/**
|
|
10
|
+
* @summary Tab allow users to display a tab within a Tabs.
|
|
11
|
+
*
|
|
12
|
+
* @final
|
|
13
|
+
* @suppress {visibility}
|
|
14
|
+
*/
|
|
15
|
+
export class OscdSecondaryTab extends SecondaryTab {
|
|
16
|
+
static styles = [sharedStyles, secondaryStyles];
|
|
17
|
+
}
|
|
18
|
+
//# sourceMappingURL=OscdSecondaryTab.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"OscdSecondaryTab.js","sourceRoot":"","sources":["OscdSecondaryTab.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAQH,OAAO,EAAE,YAAY,EAAE,MAAM,8CAA8C,CAAC;AAC5E,OAAO,EAAE,MAAM,IAAI,eAAe,EAAE,MAAM,qDAAqD,CAAC;AAChG,OAAO,EAAE,MAAM,IAAI,YAAY,EAAE,MAAM,2CAA2C,CAAC;AAQnF;;;;;GAKG;AACH,MAAM,OAAO,gBAAiB,SAAQ,YAAY;IAChD,MAAM,CAAU,MAAM,GAAwB,CAAC,YAAY,EAAE,eAAe,CAAC,CAAC","sourcesContent":["/**\n * @license\n * Copyright 2023 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 { SecondaryTab } from \"@material/web/tabs/internal/secondary-tab.js\";\nimport { styles as secondaryStyles } from \"@material/web/tabs/internal/secondary-tab-styles.js\";\nimport { styles as sharedStyles } from \"@material/web/tabs/internal/tab-styles.js\";\n\ndeclare global {\n interface HTMLElementTagNameMap {\n \"oscd-secondary-tab\": OscdSecondaryTab;\n }\n}\n\n/**\n * @summary Tab allow users to display a tab within a Tabs.\n *\n * @final\n * @suppress {visibility}\n */\nexport class OscdSecondaryTab extends SecondaryTab {\n static override styles: CSSResultOrNative[] = [sharedStyles, secondaryStyles];\n}\n"]}
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import { html } from "lit";
|
|
2
|
+
import { OscdSecondaryTab } from "tabs/OscdSecondaryTab";
|
|
3
|
+
import { scopedWcDecorator } from "utils/storybook/scopedWcDecorator.js";
|
|
4
|
+
const meta = {
|
|
5
|
+
title: "Open SCD/Tabs/Secondary Tab",
|
|
6
|
+
component: "oscd-secondary-tab",
|
|
7
|
+
tags: ["autodocs"],
|
|
8
|
+
decorators: [scopedWcDecorator],
|
|
9
|
+
parameters: {
|
|
10
|
+
layout: "centered",
|
|
11
|
+
scopedElements: {
|
|
12
|
+
"oscd-secondary-tab": OscdSecondaryTab,
|
|
13
|
+
},
|
|
14
|
+
},
|
|
15
|
+
render: ({ label }) => html `<oscd-secondary-tab>${label}</oscd-secondary-tab>`,
|
|
16
|
+
argTypes: {
|
|
17
|
+
label: {
|
|
18
|
+
control: { type: "text" },
|
|
19
|
+
description: "Tab label",
|
|
20
|
+
table: {
|
|
21
|
+
category: "Web Component Properties",
|
|
22
|
+
defaultValue: { summary: "Tab" },
|
|
23
|
+
},
|
|
24
|
+
},
|
|
25
|
+
},
|
|
26
|
+
};
|
|
27
|
+
export default meta;
|
|
28
|
+
export const Default = {
|
|
29
|
+
args: {
|
|
30
|
+
label: "Tab",
|
|
31
|
+
},
|
|
32
|
+
};
|
|
33
|
+
//# sourceMappingURL=OscdSecondaryTab.stories.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"OscdSecondaryTab.stories.js","sourceRoot":"","sources":["OscdSecondaryTab.stories.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,KAAK,CAAC;AAG3B,OAAO,EAAE,gBAAgB,EAAE,MAAM,uBAAuB,CAAC;AACzD,OAAO,EAAE,iBAAiB,EAAE,MAAM,sCAAsC,CAAC;AAEzE,MAAM,IAAI,GAAS;IACjB,KAAK,EAAE,6BAA6B;IACpC,SAAS,EAAE,oBAAoB;IAC/B,IAAI,EAAE,CAAC,UAAU,CAAC;IAClB,UAAU,EAAE,CAAC,iBAAiB,CAAC;IAC/B,UAAU,EAAE;QACV,MAAM,EAAE,UAAU;QAClB,cAAc,EAAE;YACd,oBAAoB,EAAE,gBAAgB;SACvC;KACF;IACD,MAAM,EAAE,CAAC,EAAE,KAAK,EAAE,EAAE,EAAE,CACpB,IAAI,CAAA,uBAAuB,KAAK,uBAAuB;IACzD,QAAQ,EAAE;QACR,KAAK,EAAE;YACL,OAAO,EAAE,EAAE,IAAI,EAAE,MAAM,EAAE;YACzB,WAAW,EAAE,WAAW;YACxB,KAAK,EAAE;gBACL,QAAQ,EAAE,0BAA0B;gBACpC,YAAY,EAAE,EAAE,OAAO,EAAE,KAAK,EAAE;aACjC;SACF;KACF;CACF,CAAC;AAEF,eAAe,IAAI,CAAC;AAGpB,MAAM,CAAC,MAAM,OAAO,GAAU;IAC5B,IAAI,EAAE;QACJ,KAAK,EAAE,KAAK;KACb;CACF,CAAC","sourcesContent":["import { html } from \"lit\";\nimport type { Meta, StoryObj } from \"@storybook/web-components\";\n\nimport { OscdSecondaryTab } from \"tabs/OscdSecondaryTab\";\nimport { scopedWcDecorator } from \"utils/storybook/scopedWcDecorator.js\";\n\nconst meta: Meta = {\n title: \"Open SCD/Tabs/Secondary Tab\",\n component: \"oscd-secondary-tab\",\n tags: [\"autodocs\"],\n decorators: [scopedWcDecorator],\n parameters: {\n layout: \"centered\",\n scopedElements: {\n \"oscd-secondary-tab\": OscdSecondaryTab,\n },\n },\n render: ({ label }) =>\n html`<oscd-secondary-tab>${label}</oscd-secondary-tab>`,\n argTypes: {\n label: {\n control: { type: \"text\" },\n description: \"Tab label\",\n table: {\n category: \"Web Component Properties\",\n defaultValue: { summary: \"Tab\" },\n },\n },\n },\n};\n\nexport default meta;\ntype Story = StoryObj;\n\nexport const Default: Story = {\n args: {\n label: \"Tab\",\n },\n};\n"]}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
* Copyright 2023 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 { Tabs } from "@material/web/tabs/internal/tabs.js";
|
|
13
|
+
declare global {
|
|
14
|
+
interface HTMLElementTagNameMap {
|
|
15
|
+
"oscd-tabs": OscdTabs;
|
|
16
|
+
}
|
|
17
|
+
}
|
|
18
|
+
/**
|
|
19
|
+
* @summary Tabs displays a list of selectable tabs.
|
|
20
|
+
*
|
|
21
|
+
* @final
|
|
22
|
+
* @suppress {visibility}
|
|
23
|
+
*/
|
|
24
|
+
export declare class OscdTabs extends Tabs {
|
|
25
|
+
static styles: CSSResultOrNative[];
|
|
26
|
+
}
|
package/tabs/OscdTabs.js
ADDED
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
* Copyright 2023 Google LLC
|
|
4
|
+
* SPDX-License-Identifier: Apache-2.0
|
|
5
|
+
*/
|
|
6
|
+
import { Tabs } from "@material/web/tabs/internal/tabs.js";
|
|
7
|
+
import { styles } from "@material/web/tabs/internal/tabs-styles.js";
|
|
8
|
+
/**
|
|
9
|
+
* @summary Tabs displays a list of selectable tabs.
|
|
10
|
+
*
|
|
11
|
+
* @final
|
|
12
|
+
* @suppress {visibility}
|
|
13
|
+
*/
|
|
14
|
+
export class OscdTabs extends Tabs {
|
|
15
|
+
static styles = [styles];
|
|
16
|
+
}
|
|
17
|
+
//# sourceMappingURL=OscdTabs.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"OscdTabs.js","sourceRoot":"","sources":["OscdTabs.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAQH,OAAO,EAAE,IAAI,EAAE,MAAM,qCAAqC,CAAC;AAC3D,OAAO,EAAE,MAAM,EAAE,MAAM,4CAA4C,CAAC;AAQpE;;;;;GAKG;AACH,MAAM,OAAO,QAAS,SAAQ,IAAI;IAChC,MAAM,CAAU,MAAM,GAAwB,CAAC,MAAM,CAAC,CAAC","sourcesContent":["/**\n * @license\n * Copyright 2023 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 { Tabs } from \"@material/web/tabs/internal/tabs.js\";\nimport { styles } from \"@material/web/tabs/internal/tabs-styles.js\";\n\ndeclare global {\n interface HTMLElementTagNameMap {\n \"oscd-tabs\": OscdTabs;\n }\n}\n\n/**\n * @summary Tabs displays a list of selectable tabs.\n *\n * @final\n * @suppress {visibility}\n */\nexport class OscdTabs extends Tabs {\n static override styles: CSSResultOrNative[] = [styles];\n}\n"]}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import { html } from "lit";
|
|
2
|
+
import { OscdTabs } from "tabs/OscdTabs";
|
|
3
|
+
import { OscdPrimaryTab } from "tabs/OscdPrimaryTab";
|
|
4
|
+
import { scopedWcDecorator } from "utils/storybook/scopedWcDecorator.js";
|
|
5
|
+
const meta = {
|
|
6
|
+
title: "Open SCD/Tabs/Tabs",
|
|
7
|
+
component: "oscd-tabs",
|
|
8
|
+
tags: ["autodocs"],
|
|
9
|
+
decorators: [scopedWcDecorator],
|
|
10
|
+
parameters: {
|
|
11
|
+
layout: "centered",
|
|
12
|
+
scopedElements: {
|
|
13
|
+
"oscd-tabs": OscdTabs,
|
|
14
|
+
"oscd-primary-tab": OscdPrimaryTab,
|
|
15
|
+
},
|
|
16
|
+
},
|
|
17
|
+
render: () => html `
|
|
18
|
+
<oscd-tabs>
|
|
19
|
+
<oscd-primary-tab>Tab 1</oscd-primary-tab>
|
|
20
|
+
<oscd-primary-tab>Tab 2</oscd-primary-tab>
|
|
21
|
+
</oscd-tabs>
|
|
22
|
+
`,
|
|
23
|
+
argTypes: {},
|
|
24
|
+
};
|
|
25
|
+
export default meta;
|
|
26
|
+
export const Default = {
|
|
27
|
+
args: {},
|
|
28
|
+
};
|
|
29
|
+
//# sourceMappingURL=OscdTabs.stories.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"OscdTabs.stories.js","sourceRoot":"","sources":["OscdTabs.stories.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,KAAK,CAAC;AAG3B,OAAO,EAAE,QAAQ,EAAE,MAAM,eAAe,CAAC;AACzC,OAAO,EAAE,cAAc,EAAE,MAAM,qBAAqB,CAAC;AACrD,OAAO,EAAE,iBAAiB,EAAE,MAAM,sCAAsC,CAAC;AAEzE,MAAM,IAAI,GAAS;IACjB,KAAK,EAAE,oBAAoB;IAC3B,SAAS,EAAE,WAAW;IACtB,IAAI,EAAE,CAAC,UAAU,CAAC;IAClB,UAAU,EAAE,CAAC,iBAAiB,CAAC;IAC/B,UAAU,EAAE;QACV,MAAM,EAAE,UAAU;QAClB,cAAc,EAAE;YACd,WAAW,EAAE,QAAQ;YACrB,kBAAkB,EAAE,cAAc;SACnC;KACF;IACD,MAAM,EAAE,GAAG,EAAE,CAAC,IAAI,CAAA;;;;;GAKjB;IACD,QAAQ,EAAE,EAAE;CACb,CAAC;AAEF,eAAe,IAAI,CAAC;AAGpB,MAAM,CAAC,MAAM,OAAO,GAAU;IAC5B,IAAI,EAAE,EAAE;CACT,CAAC","sourcesContent":["import { html } from \"lit\";\nimport type { Meta, StoryObj } from \"@storybook/web-components\";\n\nimport { OscdTabs } from \"tabs/OscdTabs\";\nimport { OscdPrimaryTab } from \"tabs/OscdPrimaryTab\";\nimport { scopedWcDecorator } from \"utils/storybook/scopedWcDecorator.js\";\n\nconst meta: Meta = {\n title: \"Open SCD/Tabs/Tabs\",\n component: \"oscd-tabs\",\n tags: [\"autodocs\"],\n decorators: [scopedWcDecorator],\n parameters: {\n layout: \"centered\",\n scopedElements: {\n \"oscd-tabs\": OscdTabs,\n \"oscd-primary-tab\": OscdPrimaryTab,\n },\n },\n render: () => html`\n <oscd-tabs>\n <oscd-primary-tab>Tab 1</oscd-primary-tab>\n <oscd-primary-tab>Tab 2</oscd-primary-tab>\n </oscd-tabs>\n `,\n argTypes: {},\n};\n\nexport default meta;\ntype Story = StoryObj;\n\nexport const Default: Story = {\n args: {},\n};\n"]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"oscd-primary-tab.js","sourceRoot":"","sources":["oscd-primary-tab.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAElD,cAAc,CAAC,MAAM,CAAC,kBAAkB,EAAE,cAAc,CAAC,CAAC;AAC1D,OAAO,EAAE,cAAc,EAAE,CAAC","sourcesContent":["import { OscdPrimaryTab } from \"./OscdPrimaryTab\";\n\ncustomElements.define(\"oscd-primary-tab\", OscdPrimaryTab);\nexport { OscdPrimaryTab };\n"]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"oscd-secondary-tab.js","sourceRoot":"","sources":["oscd-secondary-tab.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAC;AAEtD,cAAc,CAAC,MAAM,CAAC,oBAAoB,EAAE,gBAAgB,CAAC,CAAC;AAC9D,OAAO,EAAE,gBAAgB,EAAE,CAAC","sourcesContent":["import { OscdSecondaryTab } from \"./OscdSecondaryTab\";\n\ncustomElements.define(\"oscd-secondary-tab\", OscdSecondaryTab);\nexport { OscdSecondaryTab };\n"]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"oscd-tabs.js","sourceRoot":"","sources":["oscd-tabs.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AAEtC,cAAc,CAAC,MAAM,CAAC,WAAW,EAAE,QAAQ,CAAC,CAAC;AAC7C,OAAO,EAAE,QAAQ,EAAE,CAAC","sourcesContent":["import { OscdTabs } from \"./OscdTabs\";\n\ncustomElements.define(\"oscd-tabs\", OscdTabs);\nexport { OscdTabs };\n"]}
|