@omicronenergy/oscd-ui 0.0.4 → 0.0.5
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/package.json +163 -15
- package/app-bar/OscdAppBar.d.ts +0 -45
- package/app-bar/OscdAppBar.js +0 -142
- package/app-bar/OscdAppBar.js.map +0 -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/app-bar/oscd-app-bar.d.ts +0 -12
- package/app-bar/oscd-app-bar.js +0 -14
- package/app-bar/oscd-app-bar.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/button/OscdFilledButton.d.ts +0 -40
- package/button/OscdFilledButton.js +0 -42
- package/button/OscdFilledButton.js.map +0 -1
- package/button/OscdFilledButton.spec.d.ts +0 -6
- package/button/OscdFilledButton.spec.js +0 -75
- package/button/OscdFilledButton.spec.js.map +0 -1
- package/button/OscdOutlinedButton.d.ts +0 -42
- package/button/OscdOutlinedButton.js +0 -34
- package/button/OscdOutlinedButton.js.map +0 -1
- package/button/OscdTextButton.d.ts +0 -40
- package/button/OscdTextButton.js +0 -32
- package/button/OscdTextButton.js.map +0 -1
- package/button/oscd-filled-button.d.ts +0 -2
- package/button/oscd-filled-button.js +0 -4
- package/button/oscd-filled-button.js.map +0 -1
- package/button/oscd-outlined-button.d.ts +0 -7
- package/button/oscd-outlined-button.js +0 -9
- package/button/oscd-outlined-button.js.map +0 -1
- package/button/oscd-text-button.d.ts +0 -7
- package/button/oscd-text-button.js +0 -9
- package/button/oscd-text-button.js.map +0 -1
- package/dialog/OscdDialog.d.ts +0 -47
- package/dialog/OscdDialog.js +0 -49
- package/dialog/OscdDialog.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/dialog/oscd-dialog.d.ts +0 -2
- package/dialog/oscd-dialog.js +0 -4
- package/dialog/oscd-dialog.js.map +0 -1
- package/divider/OscdDivider.d.ts +0 -30
- package/divider/OscdDivider.js +0 -21
- package/divider/OscdDivider.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/divider/oscd-divider.d.ts +0 -2
- package/divider/oscd-divider.js +0 -4
- package/divider/oscd-divider.js.map +0 -1
- package/elevation/OscdElevation.d.ts +0 -28
- package/elevation/OscdElevation.js +0 -19
- package/elevation/OscdElevation.js.map +0 -1
- package/elevation/oscd-elevation.d.ts +0 -7
- package/elevation/oscd-elevation.js +0 -9
- package/elevation/oscd-elevation.js.map +0 -1
- package/field/OscdFilledField.d.ts +0 -24
- package/field/OscdFilledField.js +0 -16
- package/field/OscdFilledField.js.map +0 -1
- package/field/OscdOutlinedField.d.ts +0 -24
- package/field/OscdOutlinedField.js +0 -16
- package/field/OscdOutlinedField.js.map +0 -1
- package/field/oscd-filled-field.d.ts +0 -2
- package/field/oscd-filled-field.js +0 -4
- package/field/oscd-filled-field.js.map +0 -1
- package/field/oscd-outlined-field.d.ts +0 -2
- package/field/oscd-outlined-field.js +0 -4
- package/field/oscd-outlined-field.js.map +0 -1
- package/icon/OscdIcon.d.ts +0 -25
- package/icon/OscdIcon.js +0 -16
- package/icon/OscdIcon.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/icon/oscd-icon.d.ts +0 -2
- package/icon/oscd-icon.js +0 -4
- package/icon/oscd-icon.js.map +0 -1
- package/iconbutton/OscdFilledIconButton.d.ts +0 -44
- package/iconbutton/OscdFilledIconButton.js +0 -37
- package/iconbutton/OscdFilledIconButton.js.map +0 -1
- package/iconbutton/OscdFilledTonalIconButton.d.ts +0 -44
- package/iconbutton/OscdFilledTonalIconButton.js +0 -37
- package/iconbutton/OscdFilledTonalIconButton.js.map +0 -1
- package/iconbutton/OscdIconButton.d.ts +0 -43
- package/iconbutton/OscdIconButton.js +0 -36
- package/iconbutton/OscdIconButton.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.d.ts +0 -43
- package/iconbutton/OutlinedIconButton.js +0 -36
- package/iconbutton/OutlinedIconButton.js.map +0 -1
- package/iconbutton/oscd-filled-icon-button.d.ts +0 -2
- package/iconbutton/oscd-filled-icon-button.js +0 -4
- package/iconbutton/oscd-filled-icon-button.js.map +0 -1
- package/iconbutton/oscd-filled-tonal-icon-button.d.ts +0 -2
- package/iconbutton/oscd-filled-tonal-icon-button.js +0 -4
- package/iconbutton/oscd-filled-tonal-icon-button.js.map +0 -1
- package/iconbutton/oscd-icon-button.d.ts +0 -2
- package/iconbutton/oscd-icon-button.js +0 -4
- package/iconbutton/oscd-icon-button.js.map +0 -1
- package/iconbutton/oscd-outlined-icon-button.d.ts +0 -2
- package/iconbutton/oscd-outlined-icon-button.js +0 -4
- package/iconbutton/oscd-outlined-icon-button.js.map +0 -1
- package/list/OscdList.d.ts +0 -39
- package/list/OscdList.js +0 -44
- package/list/OscdList.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/list/OscdListItem.d.ts +0 -59
- package/list/OscdListItem.js +0 -80
- package/list/OscdListItem.js.map +0 -1
- package/list/oscd-list-item.d.ts +0 -2
- package/list/oscd-list-item.js +0 -4
- package/list/oscd-list-item.js.map +0 -1
- package/list/oscd-list.d.ts +0 -2
- package/list/oscd-list.js +0 -4
- package/list/oscd-list.js.map +0 -1
- package/menu/OscdMenu.d.ts +0 -73
- package/menu/OscdMenu.js +0 -62
- package/menu/OscdMenu.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.d.ts +0 -37
- package/menu/OscdMenuItem.js +0 -26
- package/menu/OscdMenuItem.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/menu/oscd-menu-item.d.ts +0 -2
- package/menu/oscd-menu-item.js +0 -4
- package/menu/oscd-menu-item.js.map +0 -1
- package/menu/oscd-menu.d.ts +0 -1
- package/menu/oscd-menu.js +0 -4
- package/menu/oscd-menu.js.map +0 -1
- package/navigation-drawer/OscdNavigationDrawer.d.ts +0 -15
- package/navigation-drawer/OscdNavigationDrawer.js +0 -37
- package/navigation-drawer/OscdNavigationDrawer.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.d.ts +0 -15
- package/navigation-drawer/OscdNavigationDrawerHeader.js +0 -61
- package/navigation-drawer/OscdNavigationDrawerHeader.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/navigation-drawer/oscd-navigation-drawer-header.d.ts +0 -2
- package/navigation-drawer/oscd-navigation-drawer-header.js +0 -4
- package/navigation-drawer/oscd-navigation-drawer-header.js.map +0 -1
- package/navigation-drawer/oscd-navigation-drawer.d.ts +0 -7
- package/navigation-drawer/oscd-navigation-drawer.js +0 -4
- package/navigation-drawer/oscd-navigation-drawer.js.map +0 -1
- package/select/OscdFilledSelect.d.ts +0 -47
- package/select/OscdFilledSelect.js +0 -39
- package/select/OscdFilledSelect.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.d.ts +0 -47
- package/select/OscdOutlinedSelect.js +0 -39
- package/select/OscdOutlinedSelect.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/select/OscdSelectOption.d.ts +0 -51
- package/select/OscdSelectOption.js +0 -41
- package/select/OscdSelectOption.js.map +0 -1
- package/select/oscd-filled-select.d.ts +0 -2
- package/select/oscd-filled-select.js +0 -4
- package/select/oscd-filled-select.js.map +0 -1
- package/select/oscd-outlined-select.d.ts +0 -2
- package/select/oscd-outlined-select.js +0 -4
- package/select/oscd-outlined-select.js.map +0 -1
- package/select/oscd-select-option.d.ts +0 -2
- package/select/oscd-select-option.js +0 -4
- package/select/oscd-select-option.js.map +0 -1
- package/tabs/OscdPrimaryTab.d.ts +0 -26
- package/tabs/OscdPrimaryTab.js +0 -18
- package/tabs/OscdPrimaryTab.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.d.ts +0 -26
- package/tabs/OscdSecondaryTab.js +0 -18
- package/tabs/OscdSecondaryTab.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.d.ts +0 -26
- package/tabs/OscdTabs.js +0 -17
- package/tabs/OscdTabs.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/tabs/oscd-primary-tab.d.ts +0 -2
- package/tabs/oscd-primary-tab.js +0 -4
- package/tabs/oscd-primary-tab.js.map +0 -1
- package/tabs/oscd-secondary-tab.d.ts +0 -2
- package/tabs/oscd-secondary-tab.js +0 -4
- package/tabs/oscd-secondary-tab.js.map +0 -1
- package/tabs/oscd-tabs.d.ts +0 -2
- package/tabs/oscd-tabs.js +0 -4
- package/tabs/oscd-tabs.js.map +0 -1
- package/textfield/OscdFilledTextField.d.ts +0 -31
- package/textfield/OscdFilledTextField.js +0 -30
- package/textfield/OscdFilledTextField.js.map +0 -1
- package/textfield/OscdOutlinedTextField.d.ts +0 -27
- package/textfield/OscdOutlinedTextField.js +0 -24
- package/textfield/OscdOutlinedTextField.js.map +0 -1
- package/textfield/oscd-filled-text-field.d.ts +0 -2
- package/textfield/oscd-filled-text-field.js +0 -4
- package/textfield/oscd-filled-text-field.js.map +0 -1
- package/textfield/oscd-outlined-text-field.d.ts +0 -2
- package/textfield/oscd-outlined-text-field.js +0 -4
- package/textfield/oscd-outlined-text-field.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/utils/storybook/getStorybookHelpers.d.ts +0 -4
- package/utils/storybook/getStorybookHelpers.js +0 -53
- package/utils/storybook/getStorybookHelpers.js.map +0 -1
- package/utils/storybook/scopedWcDecorator.d.ts +0 -2
- package/utils/storybook/scopedWcDecorator.js +0 -27
- package/utils/storybook/scopedWcDecorator.js.map +0 -1
- package/utils/storybook/themingDecorator.d.ts +0 -17
- package/utils/storybook/themingDecorator.js +0 -100
- package/utils/storybook/themingDecorator.js.map +0 -1
|
@@ -1,44 +0,0 @@
|
|
|
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 { IconButton } from "@material/web/iconbutton/internal/icon-button.js";
|
|
13
|
-
declare global {
|
|
14
|
-
interface HTMLElementTagNameMap {
|
|
15
|
-
"oscd-filled-tonal-icon-button": OscdFilledTonalIconButton;
|
|
16
|
-
}
|
|
17
|
-
}
|
|
18
|
-
/**
|
|
19
|
-
* @summary Icon buttons help people take supplementary actions with a single
|
|
20
|
-
* tap.
|
|
21
|
-
*
|
|
22
|
-
* @description
|
|
23
|
-
* __Emphasis:__ Low emphasis – For optional or supplementary actions with the
|
|
24
|
-
* least amount of prominence.
|
|
25
|
-
*
|
|
26
|
-
* __Rationale:__ The most compact and unobtrusive type of button, icon buttons
|
|
27
|
-
* are used for optional supplementary actions such as "Bookmark" or "Star."
|
|
28
|
-
*
|
|
29
|
-
* __Example usages:__
|
|
30
|
-
* - Add to Favorites
|
|
31
|
-
* - Print
|
|
32
|
-
*
|
|
33
|
-
* @final
|
|
34
|
-
* @suppress {visibility}
|
|
35
|
-
*/
|
|
36
|
-
export declare class OscdFilledTonalIconButton extends IconButton {
|
|
37
|
-
static styles: CSSResultOrNative[];
|
|
38
|
-
protected getRenderClasses(): {
|
|
39
|
-
"filled-tonal": boolean;
|
|
40
|
-
"toggle-filled-tonal": boolean;
|
|
41
|
-
'flip-icon': boolean;
|
|
42
|
-
selected: boolean;
|
|
43
|
-
};
|
|
44
|
-
}
|
|
@@ -1,37 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @license
|
|
3
|
-
* Copyright 2022 Google LLC
|
|
4
|
-
* SPDX-License-Identifier: Apache-2.0
|
|
5
|
-
*/
|
|
6
|
-
import { styles } from "@material/web/iconbutton/internal/filled-tonal-styles.js";
|
|
7
|
-
import { IconButton } from "@material/web/iconbutton/internal/icon-button.js";
|
|
8
|
-
import { styles as sharedStyles } from "@material/web/iconbutton/internal/shared-styles.js";
|
|
9
|
-
/**
|
|
10
|
-
* @summary Icon buttons help people take supplementary actions with a single
|
|
11
|
-
* tap.
|
|
12
|
-
*
|
|
13
|
-
* @description
|
|
14
|
-
* __Emphasis:__ Low emphasis – For optional or supplementary actions with the
|
|
15
|
-
* least amount of prominence.
|
|
16
|
-
*
|
|
17
|
-
* __Rationale:__ The most compact and unobtrusive type of button, icon buttons
|
|
18
|
-
* are used for optional supplementary actions such as "Bookmark" or "Star."
|
|
19
|
-
*
|
|
20
|
-
* __Example usages:__
|
|
21
|
-
* - Add to Favorites
|
|
22
|
-
* - Print
|
|
23
|
-
*
|
|
24
|
-
* @final
|
|
25
|
-
* @suppress {visibility}
|
|
26
|
-
*/
|
|
27
|
-
export class OscdFilledTonalIconButton extends IconButton {
|
|
28
|
-
static styles = [sharedStyles, styles];
|
|
29
|
-
getRenderClasses() {
|
|
30
|
-
return {
|
|
31
|
-
...super.getRenderClasses(),
|
|
32
|
-
"filled-tonal": true,
|
|
33
|
-
"toggle-filled-tonal": this.toggle,
|
|
34
|
-
};
|
|
35
|
-
}
|
|
36
|
-
}
|
|
37
|
-
//# sourceMappingURL=OscdFilledTonalIconButton.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"OscdFilledTonalIconButton.js","sourceRoot":"","sources":["OscdFilledTonalIconButton.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAQH,OAAO,EAAE,MAAM,EAAE,MAAM,0DAA0D,CAAC;AAClF,OAAO,EAAE,UAAU,EAAE,MAAM,kDAAkD,CAAC;AAC9E,OAAO,EAAE,MAAM,IAAI,YAAY,EAAE,MAAM,oDAAoD,CAAC;AAQ5F;;;;;;;;;;;;;;;;;GAiBG;AACH,MAAM,OAAO,yBAA0B,SAAQ,UAAU;IACvD,MAAM,CAAU,MAAM,GAAwB,CAAC,YAAY,EAAE,MAAM,CAAC,CAAC;IAElD,gBAAgB;QACjC,OAAO;YACL,GAAG,KAAK,CAAC,gBAAgB,EAAE;YAC3B,cAAc,EAAE,IAAI;YACpB,qBAAqB,EAAE,IAAI,CAAC,MAAM;SACnC,CAAC;IACJ,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 { styles } from \"@material/web/iconbutton/internal/filled-tonal-styles.js\";\nimport { IconButton } from \"@material/web/iconbutton/internal/icon-button.js\";\nimport { styles as sharedStyles } from \"@material/web/iconbutton/internal/shared-styles.js\";\n\ndeclare global {\n interface HTMLElementTagNameMap {\n \"oscd-filled-tonal-icon-button\": OscdFilledTonalIconButton;\n }\n}\n\n/**\n * @summary Icon buttons help people take supplementary actions with a single\n * tap.\n *\n * @description\n * __Emphasis:__ Low emphasis – For optional or supplementary actions with the\n * least amount of prominence.\n *\n * __Rationale:__ The most compact and unobtrusive type of button, icon buttons\n * are used for optional supplementary actions such as \"Bookmark\" or \"Star.\"\n *\n * __Example usages:__\n * - Add to Favorites\n * - Print\n *\n * @final\n * @suppress {visibility}\n */\nexport class OscdFilledTonalIconButton extends IconButton {\n static override styles: CSSResultOrNative[] = [sharedStyles, styles];\n\n protected override getRenderClasses() {\n return {\n ...super.getRenderClasses(),\n \"filled-tonal\": true,\n \"toggle-filled-tonal\": this.toggle,\n };\n }\n}\n"]}
|
|
@@ -1,43 +0,0 @@
|
|
|
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 { IconButton } from "@material/web/iconbutton/internal/icon-button.js";
|
|
13
|
-
declare global {
|
|
14
|
-
interface HTMLElementTagNameMap {
|
|
15
|
-
"oscd-icon-button": OscdIconButton;
|
|
16
|
-
}
|
|
17
|
-
}
|
|
18
|
-
/**
|
|
19
|
-
* @summary Icon buttons help people take supplementary actions with a single
|
|
20
|
-
* tap.
|
|
21
|
-
*
|
|
22
|
-
* @description
|
|
23
|
-
* __Emphasis:__ Low emphasis – For optional or supplementary actions with the
|
|
24
|
-
* least amount of prominence.
|
|
25
|
-
*
|
|
26
|
-
* __Rationale:__ The most compact and unobtrusive type of button, icon buttons
|
|
27
|
-
* are used for optional supplementary actions such as "Bookmark" or "Star."
|
|
28
|
-
*
|
|
29
|
-
* __Example usages:__
|
|
30
|
-
* - Add to Favorites
|
|
31
|
-
* - Print
|
|
32
|
-
*
|
|
33
|
-
* @final
|
|
34
|
-
* @suppress {visibility}
|
|
35
|
-
*/
|
|
36
|
-
export declare class OscdIconButton extends IconButton {
|
|
37
|
-
static styles: CSSResultOrNative[];
|
|
38
|
-
protected getRenderClasses(): {
|
|
39
|
-
standard: boolean;
|
|
40
|
-
'flip-icon': boolean;
|
|
41
|
-
selected: boolean;
|
|
42
|
-
};
|
|
43
|
-
}
|
|
@@ -1,36 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @license
|
|
3
|
-
* Copyright 2021 Google LLC
|
|
4
|
-
* SPDX-License-Identifier: Apache-2.0
|
|
5
|
-
*/
|
|
6
|
-
import { IconButton } from "@material/web/iconbutton/internal/icon-button.js";
|
|
7
|
-
import { styles as sharedStyles } from "@material/web/iconbutton/internal/shared-styles.js";
|
|
8
|
-
import { styles } from "@material/web/iconbutton/internal/standard-styles.js";
|
|
9
|
-
/**
|
|
10
|
-
* @summary Icon buttons help people take supplementary actions with a single
|
|
11
|
-
* tap.
|
|
12
|
-
*
|
|
13
|
-
* @description
|
|
14
|
-
* __Emphasis:__ Low emphasis – For optional or supplementary actions with the
|
|
15
|
-
* least amount of prominence.
|
|
16
|
-
*
|
|
17
|
-
* __Rationale:__ The most compact and unobtrusive type of button, icon buttons
|
|
18
|
-
* are used for optional supplementary actions such as "Bookmark" or "Star."
|
|
19
|
-
*
|
|
20
|
-
* __Example usages:__
|
|
21
|
-
* - Add to Favorites
|
|
22
|
-
* - Print
|
|
23
|
-
*
|
|
24
|
-
* @final
|
|
25
|
-
* @suppress {visibility}
|
|
26
|
-
*/
|
|
27
|
-
export class OscdIconButton extends IconButton {
|
|
28
|
-
static styles = [sharedStyles, styles];
|
|
29
|
-
getRenderClasses() {
|
|
30
|
-
return {
|
|
31
|
-
...super.getRenderClasses(),
|
|
32
|
-
standard: true,
|
|
33
|
-
};
|
|
34
|
-
}
|
|
35
|
-
}
|
|
36
|
-
//# sourceMappingURL=OscdIconButton.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"OscdIconButton.js","sourceRoot":"","sources":["OscdIconButton.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAQH,OAAO,EAAE,UAAU,EAAE,MAAM,kDAAkD,CAAC;AAC9E,OAAO,EAAE,MAAM,IAAI,YAAY,EAAE,MAAM,oDAAoD,CAAC;AAC5F,OAAO,EAAE,MAAM,EAAE,MAAM,sDAAsD,CAAC;AAQ9E;;;;;;;;;;;;;;;;;GAiBG;AACH,MAAM,OAAO,cAAe,SAAQ,UAAU;IAC5C,MAAM,CAAU,MAAM,GAAwB,CAAC,YAAY,EAAE,MAAM,CAAC,CAAC;IAElD,gBAAgB;QACjC,OAAO;YACL,GAAG,KAAK,CAAC,gBAAgB,EAAE;YAC3B,QAAQ,EAAE,IAAI;SACf,CAAC;IACJ,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 { IconButton } from \"@material/web/iconbutton/internal/icon-button.js\";\nimport { styles as sharedStyles } from \"@material/web/iconbutton/internal/shared-styles.js\";\nimport { styles } from \"@material/web/iconbutton/internal/standard-styles.js\";\n\ndeclare global {\n interface HTMLElementTagNameMap {\n \"oscd-icon-button\": OscdIconButton;\n }\n}\n\n/**\n * @summary Icon buttons help people take supplementary actions with a single\n * tap.\n *\n * @description\n * __Emphasis:__ Low emphasis – For optional or supplementary actions with the\n * least amount of prominence.\n *\n * __Rationale:__ The most compact and unobtrusive type of button, icon buttons\n * are used for optional supplementary actions such as \"Bookmark\" or \"Star.\"\n *\n * __Example usages:__\n * - Add to Favorites\n * - Print\n *\n * @final\n * @suppress {visibility}\n */\nexport class OscdIconButton extends IconButton {\n static override styles: CSSResultOrNative[] = [sharedStyles, styles];\n\n protected override getRenderClasses() {\n return {\n ...super.getRenderClasses(),\n standard: true,\n };\n }\n}\n"]}
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import type { Meta, StoryObj } from "@storybook/web-components";
|
|
2
|
-
declare const meta: Meta;
|
|
3
|
-
export default meta;
|
|
4
|
-
type Story = StoryObj;
|
|
5
|
-
export declare const IconButton: Story;
|
|
6
|
-
export declare const FilledIconButton: Story;
|
|
7
|
-
export declare const OutlinedIconButton: Story;
|
|
@@ -1,101 +0,0 @@
|
|
|
1
|
-
import { OscdIconButton } from "iconbutton/OscdIconButton";
|
|
2
|
-
import { OscdIcon } from "icon/OscdIcon";
|
|
3
|
-
import { scopedWcDecorator } from "utils/storybook/scopedWcDecorator.js";
|
|
4
|
-
import { html as staticHtml, unsafeStatic } from "lit/static-html.js";
|
|
5
|
-
import { OscdFilledIconButton } from "./OscdFilledIconButton";
|
|
6
|
-
import { OscdOutlinedIconButton } from "./OutlinedIconButton";
|
|
7
|
-
const meta = {
|
|
8
|
-
title: "Open SCD/Icon Buttons",
|
|
9
|
-
component: "oscd-icon-button",
|
|
10
|
-
tags: ["autodocs"],
|
|
11
|
-
decorators: [scopedWcDecorator],
|
|
12
|
-
parameters: {
|
|
13
|
-
layout: "centered",
|
|
14
|
-
scopedElements: {
|
|
15
|
-
"oscd-icon-button": OscdIconButton,
|
|
16
|
-
"oscd-filled-icon-button": OscdFilledIconButton,
|
|
17
|
-
"oscd-outlined-icon-button": OscdOutlinedIconButton,
|
|
18
|
-
"oscd-icon": OscdIcon,
|
|
19
|
-
},
|
|
20
|
-
},
|
|
21
|
-
render: ({ icon, disabled, selected, toggle, selectedIcon }, { globals }) => {
|
|
22
|
-
const { component } = globals;
|
|
23
|
-
return staticHtml `<${unsafeStatic(component)}
|
|
24
|
-
?disabled=${disabled}
|
|
25
|
-
?selected=${selected}
|
|
26
|
-
?toggle=${toggle}
|
|
27
|
-
@click=${() => console.log("Clicked!")}>
|
|
28
|
-
<oscd-icon>${icon}</oscd-icon>
|
|
29
|
-
<oscd-icon slot="selected">${selectedIcon}</oscd-icon>
|
|
30
|
-
</${unsafeStatic(component)}>`;
|
|
31
|
-
},
|
|
32
|
-
argTypes: {
|
|
33
|
-
icon: {
|
|
34
|
-
control: { type: "text" },
|
|
35
|
-
description: "Icon name",
|
|
36
|
-
table: {
|
|
37
|
-
category: "Web Component Properties",
|
|
38
|
-
defaultValue: { summary: "menu" },
|
|
39
|
-
},
|
|
40
|
-
},
|
|
41
|
-
selectedIcon: {
|
|
42
|
-
control: { type: "text" },
|
|
43
|
-
description: "Icon name",
|
|
44
|
-
table: {
|
|
45
|
-
category: "Web Component Properties",
|
|
46
|
-
defaultValue: { summary: "menu" },
|
|
47
|
-
},
|
|
48
|
-
},
|
|
49
|
-
disabled: {
|
|
50
|
-
control: { type: "boolean" },
|
|
51
|
-
description: "Disabled",
|
|
52
|
-
table: {
|
|
53
|
-
category: "Web Component Properties",
|
|
54
|
-
defaultValue: { summary: "false" },
|
|
55
|
-
},
|
|
56
|
-
},
|
|
57
|
-
selected: {
|
|
58
|
-
control: { type: "boolean" },
|
|
59
|
-
description: "Selected",
|
|
60
|
-
table: {
|
|
61
|
-
category: "Web Component Properties",
|
|
62
|
-
defaultValue: { summary: "false" },
|
|
63
|
-
},
|
|
64
|
-
},
|
|
65
|
-
toggle: {
|
|
66
|
-
control: { type: "boolean" },
|
|
67
|
-
description: "Toggle",
|
|
68
|
-
table: {
|
|
69
|
-
category: "Web Component Properties",
|
|
70
|
-
defaultValue: { summary: "false" },
|
|
71
|
-
},
|
|
72
|
-
},
|
|
73
|
-
},
|
|
74
|
-
};
|
|
75
|
-
export default meta;
|
|
76
|
-
const args = {
|
|
77
|
-
icon: "light_mode",
|
|
78
|
-
selectedIcon: "dark_mode",
|
|
79
|
-
disabled: false,
|
|
80
|
-
selected: false,
|
|
81
|
-
toggle: false,
|
|
82
|
-
};
|
|
83
|
-
export const IconButton = {
|
|
84
|
-
args,
|
|
85
|
-
globals: {
|
|
86
|
-
component: "oscd-icon-button",
|
|
87
|
-
},
|
|
88
|
-
};
|
|
89
|
-
export const FilledIconButton = {
|
|
90
|
-
args,
|
|
91
|
-
globals: {
|
|
92
|
-
component: "oscd-filled-icon-button",
|
|
93
|
-
},
|
|
94
|
-
};
|
|
95
|
-
export const OutlinedIconButton = {
|
|
96
|
-
args,
|
|
97
|
-
globals: {
|
|
98
|
-
component: "oscd-outlined-icon-button",
|
|
99
|
-
},
|
|
100
|
-
};
|
|
101
|
-
//# sourceMappingURL=OscdIconButton.stories.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"OscdIconButton.stories.js","sourceRoot":"","sources":["OscdIconButton.stories.ts"],"names":[],"mappings":"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","sourcesContent":["import type { Meta, StoryObj } from \"@storybook/web-components\";\n\nimport { OscdIconButton } from \"iconbutton/OscdIconButton\";\nimport { OscdIcon } from \"icon/OscdIcon\";\nimport { scopedWcDecorator } from \"utils/storybook/scopedWcDecorator.js\";\nimport { html as staticHtml, unsafeStatic } from \"lit/static-html.js\";\nimport { OscdFilledIconButton } from \"./OscdFilledIconButton\";\nimport { OscdOutlinedIconButton } from \"./OutlinedIconButton\";\n\nconst meta: Meta = {\n title: \"Open SCD/Icon Buttons\",\n component: \"oscd-icon-button\",\n tags: [\"autodocs\"],\n decorators: [scopedWcDecorator],\n parameters: {\n layout: \"centered\",\n scopedElements: {\n \"oscd-icon-button\": OscdIconButton,\n \"oscd-filled-icon-button\": OscdFilledIconButton,\n \"oscd-outlined-icon-button\": OscdOutlinedIconButton,\n \"oscd-icon\": OscdIcon,\n },\n },\n render: ({ icon, disabled, selected, toggle, selectedIcon }, { globals }) => {\n const { component } = globals;\n return staticHtml`<${unsafeStatic(component)} \n ?disabled=${disabled}\n ?selected=${selected}\n ?toggle=${toggle}\n @click=${() => console.log(\"Clicked!\")}>\n <oscd-icon>${icon}</oscd-icon>\n <oscd-icon slot=\"selected\">${selectedIcon}</oscd-icon>\n </${unsafeStatic(component)}>`;\n },\n\n argTypes: {\n icon: {\n control: { type: \"text\" },\n description: \"Icon name\",\n table: {\n category: \"Web Component Properties\",\n defaultValue: { summary: \"menu\" },\n },\n },\n selectedIcon: {\n control: { type: \"text\" },\n description: \"Icon name\",\n table: {\n category: \"Web Component Properties\",\n defaultValue: { summary: \"menu\" },\n },\n },\n disabled: {\n control: { type: \"boolean\" },\n description: \"Disabled\",\n table: {\n category: \"Web Component Properties\",\n defaultValue: { summary: \"false\" },\n },\n },\n selected: {\n control: { type: \"boolean\" },\n description: \"Selected\",\n table: {\n category: \"Web Component Properties\",\n defaultValue: { summary: \"false\" },\n },\n },\n toggle: {\n control: { type: \"boolean\" },\n description: \"Toggle\",\n table: {\n category: \"Web Component Properties\",\n defaultValue: { summary: \"false\" },\n },\n },\n },\n};\n\nexport default meta;\ntype Story = StoryObj;\n\nconst args = {\n icon: \"light_mode\",\n selectedIcon: \"dark_mode\",\n disabled: false,\n selected: false,\n toggle: false,\n};\n\nexport const IconButton: Story = {\n args,\n globals: {\n component: \"oscd-icon-button\",\n },\n};\n\nexport const FilledIconButton: Story = {\n args,\n globals: {\n component: \"oscd-filled-icon-button\",\n },\n};\n\nexport const OutlinedIconButton: Story = {\n args,\n globals: {\n component: \"oscd-outlined-icon-button\",\n },\n};\n"]}
|
|
@@ -1,43 +0,0 @@
|
|
|
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 { IconButton } from "@material/web/iconbutton/internal/icon-button.js";
|
|
13
|
-
declare global {
|
|
14
|
-
interface HTMLElementTagNameMap {
|
|
15
|
-
"oscd-outlined-icon-button": OscdOutlinedIconButton;
|
|
16
|
-
}
|
|
17
|
-
}
|
|
18
|
-
/**
|
|
19
|
-
* @summary Icon buttons help people take supplementary actions with a single
|
|
20
|
-
* tap.
|
|
21
|
-
*
|
|
22
|
-
* @description
|
|
23
|
-
* __Emphasis:__ Low emphasis – For optional or supplementary actions with the
|
|
24
|
-
* least amount of prominence.
|
|
25
|
-
*
|
|
26
|
-
* __Rationale:__ The most compact and unobtrusive type of button, icon buttons
|
|
27
|
-
* are used for optional supplementary actions such as "Bookmark" or "Star."
|
|
28
|
-
*
|
|
29
|
-
* __Example usages:__
|
|
30
|
-
* - Add to Favorites
|
|
31
|
-
* - Print
|
|
32
|
-
*
|
|
33
|
-
* @final
|
|
34
|
-
* @suppress {visibility}
|
|
35
|
-
*/
|
|
36
|
-
export declare class OscdOutlinedIconButton extends IconButton {
|
|
37
|
-
static styles: CSSResultOrNative[];
|
|
38
|
-
protected getRenderClasses(): {
|
|
39
|
-
outlined: boolean;
|
|
40
|
-
'flip-icon': boolean;
|
|
41
|
-
selected: boolean;
|
|
42
|
-
};
|
|
43
|
-
}
|
|
@@ -1,36 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @license
|
|
3
|
-
* Copyright 2022 Google LLC
|
|
4
|
-
* SPDX-License-Identifier: Apache-2.0
|
|
5
|
-
*/
|
|
6
|
-
import { IconButton } from "@material/web/iconbutton/internal/icon-button.js";
|
|
7
|
-
import { styles } from "@material/web/iconbutton/internal/outlined-styles.js";
|
|
8
|
-
import { styles as sharedStyles } from "@material/web/iconbutton/internal/shared-styles.js";
|
|
9
|
-
/**
|
|
10
|
-
* @summary Icon buttons help people take supplementary actions with a single
|
|
11
|
-
* tap.
|
|
12
|
-
*
|
|
13
|
-
* @description
|
|
14
|
-
* __Emphasis:__ Low emphasis – For optional or supplementary actions with the
|
|
15
|
-
* least amount of prominence.
|
|
16
|
-
*
|
|
17
|
-
* __Rationale:__ The most compact and unobtrusive type of button, icon buttons
|
|
18
|
-
* are used for optional supplementary actions such as "Bookmark" or "Star."
|
|
19
|
-
*
|
|
20
|
-
* __Example usages:__
|
|
21
|
-
* - Add to Favorites
|
|
22
|
-
* - Print
|
|
23
|
-
*
|
|
24
|
-
* @final
|
|
25
|
-
* @suppress {visibility}
|
|
26
|
-
*/
|
|
27
|
-
export class OscdOutlinedIconButton extends IconButton {
|
|
28
|
-
static styles = [sharedStyles, styles];
|
|
29
|
-
getRenderClasses() {
|
|
30
|
-
return {
|
|
31
|
-
...super.getRenderClasses(),
|
|
32
|
-
outlined: true,
|
|
33
|
-
};
|
|
34
|
-
}
|
|
35
|
-
}
|
|
36
|
-
//# sourceMappingURL=OutlinedIconButton.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"OutlinedIconButton.js","sourceRoot":"","sources":["OutlinedIconButton.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAQH,OAAO,EAAE,UAAU,EAAE,MAAM,kDAAkD,CAAC;AAC9E,OAAO,EAAE,MAAM,EAAE,MAAM,sDAAsD,CAAC;AAC9E,OAAO,EAAE,MAAM,IAAI,YAAY,EAAE,MAAM,oDAAoD,CAAC;AAQ5F;;;;;;;;;;;;;;;;;GAiBG;AACH,MAAM,OAAO,sBAAuB,SAAQ,UAAU;IACpD,MAAM,CAAU,MAAM,GAAwB,CAAC,YAAY,EAAE,MAAM,CAAC,CAAC;IAElD,gBAAgB;QACjC,OAAO;YACL,GAAG,KAAK,CAAC,gBAAgB,EAAE;YAC3B,QAAQ,EAAE,IAAI;SACf,CAAC;IACJ,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 { IconButton } from \"@material/web/iconbutton/internal/icon-button.js\";\nimport { styles } from \"@material/web/iconbutton/internal/outlined-styles.js\";\nimport { styles as sharedStyles } from \"@material/web/iconbutton/internal/shared-styles.js\";\n\ndeclare global {\n interface HTMLElementTagNameMap {\n \"oscd-outlined-icon-button\": OscdOutlinedIconButton;\n }\n}\n\n/**\n * @summary Icon buttons help people take supplementary actions with a single\n * tap.\n *\n * @description\n * __Emphasis:__ Low emphasis – For optional or supplementary actions with the\n * least amount of prominence.\n *\n * __Rationale:__ The most compact and unobtrusive type of button, icon buttons\n * are used for optional supplementary actions such as \"Bookmark\" or \"Star.\"\n *\n * __Example usages:__\n * - Add to Favorites\n * - Print\n *\n * @final\n * @suppress {visibility}\n */\nexport class OscdOutlinedIconButton extends IconButton {\n static override styles: CSSResultOrNative[] = [sharedStyles, styles];\n\n protected override getRenderClasses() {\n return {\n ...super.getRenderClasses(),\n outlined: true,\n };\n }\n}\n"]}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"oscd-filled-icon-button.js","sourceRoot":"","sources":["oscd-filled-icon-button.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,oBAAoB,EAAE,MAAM,wBAAwB,CAAC;AAE9D,cAAc,CAAC,MAAM,CAAC,yBAAyB,EAAE,oBAAoB,CAAC,CAAC;AACvE,OAAO,EAAE,oBAAoB,EAAE,CAAC","sourcesContent":["import { OscdFilledIconButton } from \"./OscdFilledIconButton\";\n\ncustomElements.define(\"oscd-filled-icon-button\", OscdFilledIconButton);\nexport { OscdFilledIconButton };\n"]}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"oscd-filled-tonal-icon-button.js","sourceRoot":"","sources":["oscd-filled-tonal-icon-button.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,yBAAyB,EAAE,MAAM,6BAA6B,CAAC;AAExE,cAAc,CAAC,MAAM,CACnB,+BAA+B,EAC/B,yBAAyB,CAC1B,CAAC;AACF,OAAO,EAAE,yBAAyB,EAAE,CAAC","sourcesContent":["import { OscdFilledTonalIconButton } from \"./OscdFilledTonalIconButton\";\n\ncustomElements.define(\n \"oscd-filled-tonal-icon-button\",\n OscdFilledTonalIconButton\n);\nexport { OscdFilledTonalIconButton };\n"]}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"oscd-icon-button.js","sourceRoot":"","sources":["oscd-icon-button.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 { OscdIconButton } from \"./OscdIconButton\";\n\ncustomElements.define(\"oscd-icon-button\", OscdIconButton);\nexport { OscdIconButton };\n"]}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"oscd-outlined-icon-button.js","sourceRoot":"","sources":["oscd-outlined-icon-button.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,sBAAsB,EAAE,MAAM,sBAAsB,CAAC;AAE9D,cAAc,CAAC,MAAM,CAAC,2BAA2B,EAAE,sBAAsB,CAAC,CAAC;AAC3E,OAAO,EAAE,sBAAsB,EAAE,CAAC","sourcesContent":["import { OscdOutlinedIconButton } from \"./OutlinedIconButton\";\n\ncustomElements.define(\"oscd-outlined-icon-button\", OscdOutlinedIconButton);\nexport { OscdOutlinedIconButton };\n"]}
|
package/list/OscdList.d.ts
DELETED
|
@@ -1,39 +0,0 @@
|
|
|
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
|
-
declare global {
|
|
14
|
-
interface HTMLElementTagNameMap {
|
|
15
|
-
"oscd-list": OscdList;
|
|
16
|
-
}
|
|
17
|
-
}
|
|
18
|
-
/**
|
|
19
|
-
* @summary Lists are continuous, vertical indexes of text or images.
|
|
20
|
-
*
|
|
21
|
-
* @description
|
|
22
|
-
* Lists consist of one or more list items, and can contain actions represented
|
|
23
|
-
* by icons and text. List items come in three sizes: one-line, two-line, and
|
|
24
|
-
* three-line.
|
|
25
|
-
*
|
|
26
|
-
* __Takeaways:__
|
|
27
|
-
*
|
|
28
|
-
* - Lists should be sorted in logical ways that make content easy to scan, such
|
|
29
|
-
* as alphabetical, numerical, chronological, or by user preference.
|
|
30
|
-
* - Lists present content in a way that makes it easy to identify a specific
|
|
31
|
-
* item in a collection and act on it.
|
|
32
|
-
* - Lists should present icons, text, and actions in a consistent format.
|
|
33
|
-
*
|
|
34
|
-
* @final
|
|
35
|
-
* @suppress {visibility}
|
|
36
|
-
*/
|
|
37
|
-
export declare class OscdList extends List {
|
|
38
|
-
static styles: CSSResultOrNative[];
|
|
39
|
-
}
|
package/list/OscdList.js
DELETED
|
@@ -1,44 +0,0 @@
|
|
|
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
|
-
* @summary Lists are continuous, vertical indexes of text or images.
|
|
24
|
-
*
|
|
25
|
-
* @description
|
|
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 styles = [styles, overrideStyles];
|
|
43
|
-
}
|
|
44
|
-
//# sourceMappingURL=OscdList.js.map
|
package/list/OscdList.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
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;AAQpE,MAAM,cAAc,GAAG,GAAG,CAAA;;;;;;;CAOzB,CAAC;AAEF;;;;;;;;;;;;;;;;;;GAkBG;AACH,MAAM,OAAO,QAAS,SAAQ,IAAI;IAChC,MAAM,CAAU,MAAM,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\ndeclare global {\n interface HTMLElementTagNameMap {\n \"oscd-list\": OscdList;\n }\n}\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 * @summary Lists are continuous, vertical indexes of text or images.\n *\n * @description\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"]}
|
package/list/OscdList.stories.js
DELETED
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
import { html } from "lit";
|
|
2
|
-
import { OscdList } from "list/OscdList";
|
|
3
|
-
import { OscdListItem } from "list/OscdListItem";
|
|
4
|
-
import { scopedWcDecorator } from "utils/storybook/scopedWcDecorator.js";
|
|
5
|
-
const meta = {
|
|
6
|
-
title: "Open SCD/Lists",
|
|
7
|
-
component: "oscd-list",
|
|
8
|
-
// tags: ["autodocs"],
|
|
9
|
-
decorators: [scopedWcDecorator],
|
|
10
|
-
parameters: {
|
|
11
|
-
layout: "centered",
|
|
12
|
-
scopedElements: {
|
|
13
|
-
"oscd-list": OscdList,
|
|
14
|
-
"oscd-list-item": OscdListItem,
|
|
15
|
-
},
|
|
16
|
-
},
|
|
17
|
-
render: () => html `
|
|
18
|
-
<oscd-list>
|
|
19
|
-
<oscd-list-item>Item 1</oscd-list-item>
|
|
20
|
-
<oscd-list-item>Item 2</oscd-list-item>
|
|
21
|
-
<oscd-list-item>Item 3</oscd-list-item>
|
|
22
|
-
</oscd-list>
|
|
23
|
-
`,
|
|
24
|
-
argTypes: {},
|
|
25
|
-
};
|
|
26
|
-
export default meta;
|
|
27
|
-
export const Default = {
|
|
28
|
-
args: {},
|
|
29
|
-
};
|
|
30
|
-
//# sourceMappingURL=OscdList.stories.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"OscdList.stories.js","sourceRoot":"","sources":["OscdList.stories.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,KAAK,CAAC;AAG3B,OAAO,EAAE,QAAQ,EAAE,MAAM,eAAe,CAAC;AACzC,OAAO,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAC;AACjD,OAAO,EAAE,iBAAiB,EAAE,MAAM,sCAAsC,CAAC;AAEzE,MAAM,IAAI,GAAS;IACjB,KAAK,EAAE,gBAAgB;IACvB,SAAS,EAAE,WAAW;IACtB,sBAAsB;IACtB,UAAU,EAAE,CAAC,iBAAiB,CAAC;IAC/B,UAAU,EAAE;QACV,MAAM,EAAE,UAAU;QAClB,cAAc,EAAE;YACd,WAAW,EAAE,QAAQ;YACrB,gBAAgB,EAAE,YAAY;SAC/B;KACF;IACD,MAAM,EAAE,GAAG,EAAE,CAAC,IAAI,CAAA;;;;;;GAMjB;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 { OscdList } from \"list/OscdList\";\nimport { OscdListItem } from \"list/OscdListItem\";\nimport { scopedWcDecorator } from \"utils/storybook/scopedWcDecorator.js\";\n\nconst meta: Meta = {\n title: \"Open SCD/Lists\",\n component: \"oscd-list\",\n // tags: [\"autodocs\"],\n decorators: [scopedWcDecorator],\n parameters: {\n layout: \"centered\",\n scopedElements: {\n \"oscd-list\": OscdList,\n \"oscd-list-item\": OscdListItem,\n },\n },\n render: () => html`\n <oscd-list>\n <oscd-list-item>Item 1</oscd-list-item>\n <oscd-list-item>Item 2</oscd-list-item>\n <oscd-list-item>Item 3</oscd-list-item>\n </oscd-list>\n `,\n argTypes: {},\n};\n\nexport default meta;\ntype Story = StoryObj;\n\nexport const Default: Story = {\n args: {},\n};\n"]}
|
package/list/OscdListItem.d.ts
DELETED
|
@@ -1,59 +0,0 @@
|
|
|
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
|
-
declare global {
|
|
15
|
-
interface HTMLElementTagNameMap {
|
|
16
|
-
"oscd-list-item": OscdListItem;
|
|
17
|
-
}
|
|
18
|
-
}
|
|
19
|
-
/**
|
|
20
|
-
* @summary
|
|
21
|
-
* Lists are continuous, vertical indexes of text or images. Items are placed
|
|
22
|
-
* inside the list.
|
|
23
|
-
*
|
|
24
|
-
* @description
|
|
25
|
-
* Lists consist of one or more list items, and can contain actions represented
|
|
26
|
-
* by icons and text. List items come in three sizes: one-line, two-line, and
|
|
27
|
-
* three-line.
|
|
28
|
-
*
|
|
29
|
-
* __Takeaways:__
|
|
30
|
-
*
|
|
31
|
-
* - Lists should be sorted in logical ways that make content easy to scan, such
|
|
32
|
-
* as alphabetical, numerical, chronological, or by user preference.
|
|
33
|
-
* - Lists present content in a way that makes it easy to identify a specific
|
|
34
|
-
* item in a collection and act on it.
|
|
35
|
-
* - Lists should present icons, text, and actions in a consistent format.
|
|
36
|
-
*
|
|
37
|
-
* Acceptable slot child variants are:
|
|
38
|
-
*
|
|
39
|
-
* - `img[slot=end]`
|
|
40
|
-
* - `img[slot=start]`
|
|
41
|
-
*
|
|
42
|
-
* @example
|
|
43
|
-
* ```html
|
|
44
|
-
* <oscd-list-item
|
|
45
|
-
* headline="User Name"
|
|
46
|
-
* supportingText="user@name.com">
|
|
47
|
-
* <oscd-icon slot="start">account_circle</oscd-icon>
|
|
48
|
-
* <oscd-icon slot="end">check</oscd-icon>
|
|
49
|
-
* </oscd-list-item>
|
|
50
|
-
* ```
|
|
51
|
-
*
|
|
52
|
-
* @example
|
|
53
|
-
*
|
|
54
|
-
* @final
|
|
55
|
-
* @suppress {visibility}
|
|
56
|
-
*/
|
|
57
|
-
export declare class OscdListItem extends ListItem {
|
|
58
|
-
static styles: CSSResultOrNative[];
|
|
59
|
-
}
|