@omicronenergy/oscd-ui 0.0.4 → 0.0.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +100 -0
- package/app-bar/OscdAppBar.d.ts +13 -11
- package/app-bar/OscdAppBar.js +16 -8
- package/app-bar/OscdAppBar.js.map +1 -1
- package/app-bar/oscd-app-bar.d.ts +6 -6
- package/app-bar/oscd-app-bar.js +2 -7
- package/app-bar/oscd-app-bar.js.map +1 -1
- package/button/OscdFilledButton.d.ts +6 -8
- package/button/OscdFilledButton.js +8 -5
- package/button/OscdFilledButton.js.map +1 -1
- package/button/OscdFilledButton.spec.js +22 -18
- package/button/OscdFilledButton.spec.js.map +1 -1
- package/button/OscdOutlinedButton.d.ts +4 -6
- package/button/OscdOutlinedButton.js +4 -1
- package/button/OscdOutlinedButton.js.map +1 -1
- package/button/OscdTextButton.d.ts +6 -8
- package/button/OscdTextButton.js +7 -4
- package/button/OscdTextButton.js.map +1 -1
- package/button/oscd-filled-button.d.ts +6 -1
- package/button/oscd-filled-button.js +2 -2
- package/button/oscd-filled-button.js.map +1 -1
- package/button/oscd-outlined-button.d.ts +6 -1
- package/button/oscd-outlined-button.js +2 -2
- package/button/oscd-outlined-button.js.map +1 -1
- package/button/oscd-text-button.d.ts +6 -1
- package/button/oscd-text-button.js +2 -2
- package/button/oscd-text-button.js.map +1 -1
- package/dialog/OscdDialog.d.ts +3 -8
- package/dialog/OscdDialog.js +4 -4
- package/dialog/OscdDialog.js.map +1 -1
- package/dialog/oscd-dialog.d.ts +6 -1
- package/dialog/oscd-dialog.js +2 -2
- package/dialog/oscd-dialog.js.map +1 -1
- package/divider/OscdDivider.d.ts +4 -8
- package/divider/OscdDivider.js +4 -3
- package/divider/OscdDivider.js.map +1 -1
- package/divider/oscd-divider.d.ts +6 -1
- package/divider/oscd-divider.js +2 -2
- package/divider/oscd-divider.js.map +1 -1
- package/elevation/OscdElevation.d.ts +2 -6
- package/elevation/OscdElevation.js +2 -1
- package/elevation/OscdElevation.js.map +1 -1
- package/elevation/oscd-elevation.d.ts +6 -1
- package/elevation/oscd-elevation.js +2 -2
- package/elevation/oscd-elevation.js.map +1 -1
- package/field/OscdFilledField.d.ts +4 -7
- package/field/OscdFilledField.js +5 -3
- package/field/OscdFilledField.js.map +1 -1
- package/field/OscdOutlinedField.d.ts +6 -7
- package/field/OscdOutlinedField.js +7 -3
- package/field/OscdOutlinedField.js.map +1 -1
- package/field/oscd-filled-field.d.ts +6 -1
- package/field/oscd-filled-field.js +2 -2
- package/field/oscd-filled-field.js.map +1 -1
- package/field/oscd-outlined-field.d.ts +6 -1
- package/field/oscd-outlined-field.js +2 -2
- package/field/oscd-outlined-field.js.map +1 -1
- package/icon/OscdIcon.d.ts +6 -7
- package/icon/OscdIcon.js +6 -2
- package/icon/OscdIcon.js.map +1 -1
- package/icon/oscd-icon.d.ts +6 -1
- package/icon/oscd-icon.js +2 -2
- package/icon/oscd-icon.js.map +1 -1
- package/iconbutton/OscdFilledIconButton.d.ts +4 -9
- package/iconbutton/OscdFilledIconButton.js +5 -5
- package/iconbutton/OscdFilledIconButton.js.map +1 -1
- package/iconbutton/OscdFilledTonalIconButton.d.ts +5 -10
- package/iconbutton/OscdFilledTonalIconButton.js +6 -6
- package/iconbutton/OscdFilledTonalIconButton.js.map +1 -1
- package/iconbutton/OscdIconButton.d.ts +3 -8
- package/iconbutton/OscdIconButton.js +4 -4
- package/iconbutton/OscdIconButton.js.map +1 -1
- package/iconbutton/{OutlinedIconButton.d.ts → OscdOutlinedIconButton.d.ts} +3 -8
- package/iconbutton/{OutlinedIconButton.js → OscdOutlinedIconButton.js} +5 -5
- package/iconbutton/OscdOutlinedIconButton.js.map +1 -0
- package/iconbutton/oscd-filled-icon-button.d.ts +6 -1
- package/iconbutton/oscd-filled-icon-button.js +2 -2
- package/iconbutton/oscd-filled-icon-button.js.map +1 -1
- package/iconbutton/oscd-filled-tonal-icon-button.d.ts +6 -1
- package/iconbutton/oscd-filled-tonal-icon-button.js +2 -2
- package/iconbutton/oscd-filled-tonal-icon-button.js.map +1 -1
- package/iconbutton/oscd-icon-button.d.ts +6 -1
- package/iconbutton/oscd-icon-button.js +2 -2
- package/iconbutton/oscd-icon-button.js.map +1 -1
- package/iconbutton/oscd-outlined-icon-button.d.ts +6 -1
- package/iconbutton/oscd-outlined-icon-button.js +2 -2
- package/iconbutton/oscd-outlined-icon-button.js.map +1 -1
- package/list/OscdList.d.ts +3 -8
- package/list/OscdList.js +4 -4
- package/list/OscdList.js.map +1 -1
- package/list/OscdListItem.d.ts +4 -11
- package/list/OscdListItem.js +6 -8
- package/list/OscdListItem.js.map +1 -1
- package/list/oscd-list-item.d.ts +6 -1
- package/list/oscd-list-item.js +2 -2
- package/list/oscd-list-item.js.map +1 -1
- package/list/oscd-list.d.ts +6 -1
- package/list/oscd-list.js +2 -2
- package/list/oscd-list.js.map +1 -1
- package/menu/OscdMenu.d.ts +7 -12
- package/menu/OscdMenu.js +5 -5
- package/menu/OscdMenu.js.map +1 -1
- package/menu/OscdMenuItem.d.ts +5 -10
- package/menu/OscdMenuItem.js +3 -3
- package/menu/OscdMenuItem.js.map +1 -1
- package/menu/oscd-menu-item.d.ts +6 -1
- package/menu/oscd-menu-item.js +2 -2
- package/menu/oscd-menu-item.js.map +1 -1
- package/menu/oscd-menu.d.ts +7 -1
- package/menu/oscd-menu.js +3 -3
- package/menu/oscd-menu.js.map +1 -1
- package/navigation-drawer/OscdNavigationDrawer.d.ts +8 -2
- package/navigation-drawer/OscdNavigationDrawer.js +10 -4
- package/navigation-drawer/OscdNavigationDrawer.js.map +1 -1
- package/navigation-drawer/OscdNavigationDrawerHeader.d.ts +7 -7
- package/navigation-drawer/OscdNavigationDrawerHeader.js +8 -3
- package/navigation-drawer/OscdNavigationDrawerHeader.js.map +1 -1
- package/navigation-drawer/oscd-navigation-drawer-header.d.ts +6 -1
- package/navigation-drawer/oscd-navigation-drawer-header.js +2 -2
- package/navigation-drawer/oscd-navigation-drawer-header.js.map +1 -1
- package/navigation-drawer/oscd-navigation-drawer.d.ts +2 -2
- package/navigation-drawer/oscd-navigation-drawer.js +2 -2
- package/navigation-drawer/oscd-navigation-drawer.js.map +1 -1
- package/package.json +169 -15
- package/select/OscdFilledSelect.d.ts +3 -8
- package/select/OscdFilledSelect.js +4 -4
- package/select/OscdFilledSelect.js.map +1 -1
- package/select/OscdOutlinedSelect.d.ts +3 -8
- package/select/OscdOutlinedSelect.js +4 -4
- package/select/OscdOutlinedSelect.js.map +1 -1
- package/select/OscdSelectOption.d.ts +4 -9
- package/select/OscdSelectOption.js +3 -3
- package/select/OscdSelectOption.js.map +1 -1
- package/select/oscd-filled-select.d.ts +6 -1
- package/select/oscd-filled-select.js +2 -2
- package/select/oscd-filled-select.js.map +1 -1
- package/select/oscd-outlined-select.d.ts +6 -1
- package/select/oscd-outlined-select.js +2 -2
- package/select/oscd-outlined-select.js.map +1 -1
- package/select/oscd-select-option.d.ts +6 -1
- package/select/oscd-select-option.js +2 -2
- package/select/oscd-select-option.js.map +1 -1
- package/tabs/OscdPrimaryTab.d.ts +3 -7
- package/tabs/OscdPrimaryTab.js +4 -3
- package/tabs/OscdPrimaryTab.js.map +1 -1
- package/tabs/OscdSecondaryTab.d.ts +3 -7
- package/tabs/OscdSecondaryTab.js +4 -3
- package/tabs/OscdSecondaryTab.js.map +1 -1
- package/tabs/OscdTabs.d.ts +3 -7
- package/tabs/OscdTabs.js +3 -2
- package/tabs/OscdTabs.js.map +1 -1
- package/tabs/oscd-primary-tab.d.ts +6 -1
- package/tabs/oscd-primary-tab.js +2 -2
- package/tabs/oscd-primary-tab.js.map +1 -1
- package/tabs/oscd-secondary-tab.d.ts +6 -1
- package/tabs/oscd-secondary-tab.js +2 -2
- package/tabs/oscd-secondary-tab.js.map +1 -1
- package/tabs/oscd-tabs.d.ts +6 -1
- package/tabs/oscd-tabs.js +2 -2
- package/tabs/oscd-tabs.js.map +1 -1
- package/textfield/OscdFilledTextField.d.ts +10 -11
- package/textfield/OscdFilledTextField.js +12 -12
- package/textfield/OscdFilledTextField.js.map +1 -1
- package/textfield/OscdOutlinedTextField.d.ts +11 -10
- package/textfield/OscdOutlinedTextField.js +15 -11
- package/textfield/OscdOutlinedTextField.js.map +1 -1
- package/textfield/oscd-filled-text-field.d.ts +6 -1
- package/textfield/oscd-filled-text-field.js +2 -2
- package/textfield/oscd-filled-text-field.js.map +1 -1
- package/textfield/oscd-outlined-text-field.d.ts +6 -1
- package/textfield/oscd-outlined-text-field.js +2 -2
- package/textfield/oscd-outlined-text-field.js.map +1 -1
- package/utils/storybook/getStorybookHelpers.d.ts +2 -2
- package/utils/storybook/getStorybookHelpers.js +9 -9
- package/utils/storybook/getStorybookHelpers.js.map +1 -1
- package/utils/storybook/scopedWcDecorator.d.ts +1 -1
- package/utils/storybook/scopedWcDecorator.js +17 -7
- package/utils/storybook/scopedWcDecorator.js.map +1 -1
- package/utils/storybook/themingDecorator.d.ts +4 -15
- package/utils/storybook/themingDecorator.js +62 -62
- package/utils/storybook/themingDecorator.js.map +1 -1
- package/app-bar/OscdAppBar.stories.d.ts +0 -10
- package/app-bar/OscdAppBar.stories.js +0 -85
- package/app-bar/OscdAppBar.stories.js.map +0 -1
- package/button/OscdButton.stories.d.ts +0 -7
- package/button/OscdButton.stories.js +0 -60
- package/button/OscdButton.stories.js.map +0 -1
- package/dialog/OscdDialog.stories.d.ts +0 -5
- package/dialog/OscdDialog.stories.js +0 -50
- package/dialog/OscdDialog.stories.js.map +0 -1
- package/divider/OscdDivider.stories.d.ts +0 -5
- package/divider/OscdDivider.stories.js +0 -28
- package/divider/OscdDivider.stories.js.map +0 -1
- package/icon/OscdIcon.stories.d.ts +0 -5
- package/icon/OscdIcon.stories.js +0 -54
- package/icon/OscdIcon.stories.js.map +0 -1
- package/iconbutton/OscdIconButton.stories.d.ts +0 -7
- package/iconbutton/OscdIconButton.stories.js +0 -101
- package/iconbutton/OscdIconButton.stories.js.map +0 -1
- package/iconbutton/OutlinedIconButton.js.map +0 -1
- package/list/OscdList.stories.d.ts +0 -5
- package/list/OscdList.stories.js +0 -30
- package/list/OscdList.stories.js.map +0 -1
- package/menu/OscdMenu.stories.d.ts +0 -6
- package/menu/OscdMenu.stories.js +0 -55
- package/menu/OscdMenu.stories.js.map +0 -1
- package/menu/OscdMenuItem.stories.d.ts +0 -5
- package/menu/OscdMenuItem.stories.js +0 -37
- package/menu/OscdMenuItem.stories.js.map +0 -1
- package/navigation-drawer/OscdNavigationDrawer.stories.d.ts +0 -5
- package/navigation-drawer/OscdNavigationDrawer.stories.js +0 -97
- package/navigation-drawer/OscdNavigationDrawer.stories.js.map +0 -1
- package/navigation-drawer/OscdNavigationDrawerHeader.stories.d.ts +0 -5
- package/navigation-drawer/OscdNavigationDrawerHeader.stories.js +0 -35
- package/navigation-drawer/OscdNavigationDrawerHeader.stories.js.map +0 -1
- package/select/OscdFilledSelect.stories.d.ts +0 -5
- package/select/OscdFilledSelect.stories.js +0 -29
- package/select/OscdFilledSelect.stories.js.map +0 -1
- package/select/OscdOutlinedSelect.stories.d.ts +0 -5
- package/select/OscdOutlinedSelect.stories.js +0 -29
- package/select/OscdOutlinedSelect.stories.js.map +0 -1
- package/tabs/OscdPrimaryTab.stories.d.ts +0 -5
- package/tabs/OscdPrimaryTab.stories.js +0 -33
- package/tabs/OscdPrimaryTab.stories.js.map +0 -1
- package/tabs/OscdSecondaryTab.stories.d.ts +0 -5
- package/tabs/OscdSecondaryTab.stories.js +0 -33
- package/tabs/OscdSecondaryTab.stories.js.map +0 -1
- package/tabs/OscdTabs.stories.d.ts +0 -5
- package/tabs/OscdTabs.stories.js +0 -29
- package/tabs/OscdTabs.stories.js.map +0 -1
- package/theming/AllComponents.stories.d.ts +0 -5
- package/theming/AllComponents.stories.js +0 -309
- package/theming/AllComponents.stories.js.map +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"OscdFilledIconButton.js","sourceRoot":"","sources":["OscdFilledIconButton.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAQH,OAAO,EAAE,MAAM,EAAE,MAAM,oDAAoD,CAAC;AAC5E,OAAO,EAAE,UAAU,EAAE,MAAM,kDAAkD,CAAC;AAC9E,OAAO,EAAE,MAAM,IAAI,YAAY,EAAE,MAAM,oDAAoD,CAAC;
|
|
1
|
+
{"version":3,"file":"OscdFilledIconButton.js","sourceRoot":"","sources":["OscdFilledIconButton.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAQH,OAAO,EAAE,MAAM,EAAE,MAAM,oDAAoD,CAAC;AAC5E,OAAO,EAAE,UAAU,EAAE,MAAM,kDAAkD,CAAC;AAC9E,OAAO,EAAE,MAAM,IAAI,YAAY,EAAE,MAAM,oDAAoD,CAAC;AAE5F;;;;;;;;;;;;;;;;;GAiBG;AACH,MAAM,OAAO,oBAAqB,SAAQ,UAAU;IAClD,MAAM,CAAU,MAAM,GAAwB,CAAC,YAAY,EAAE,MAAM,CAAC,CAAC;IAElD,gBAAgB;QACjC,OAAO;YACL,GAAG,KAAK,CAAC,gBAAgB,EAAE;YAC3B,MAAM,EAAE,IAAI;YACZ,eAAe,EAAE,IAAI,CAAC,MAAM;SAC7B,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-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\n/**\n * @tag oscd-filled-icon-button\n * @summary Icon buttons help people take supplementary actions with a single\n * tap.\n *\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 OscdFilledIconButton extends IconButton {\n static override styles: CSSResultOrNative[] = [sharedStyles, styles];\n\n protected override getRenderClasses() {\n return {\n ...super.getRenderClasses(),\n filled: true,\n 'toggle-filled': this.toggle,\n };\n }\n}\n"]}
|
|
@@ -8,18 +8,13 @@
|
|
|
8
8
|
* Copyright 2025 OMICRON Electronics GmbH
|
|
9
9
|
* SPDX-License-Identifier: Apache-2.0
|
|
10
10
|
*/
|
|
11
|
-
import { CSSResultOrNative } from
|
|
12
|
-
import { IconButton } from
|
|
13
|
-
declare global {
|
|
14
|
-
interface HTMLElementTagNameMap {
|
|
15
|
-
"oscd-filled-tonal-icon-button": OscdFilledTonalIconButton;
|
|
16
|
-
}
|
|
17
|
-
}
|
|
11
|
+
import { CSSResultOrNative } from 'lit';
|
|
12
|
+
import { IconButton } from '@material/web/iconbutton/internal/icon-button.js';
|
|
18
13
|
/**
|
|
14
|
+
* @tag oscd-filled-tonal-icon-button
|
|
19
15
|
* @summary Icon buttons help people take supplementary actions with a single
|
|
20
16
|
* tap.
|
|
21
17
|
*
|
|
22
|
-
* @description
|
|
23
18
|
* __Emphasis:__ Low emphasis – For optional or supplementary actions with the
|
|
24
19
|
* least amount of prominence.
|
|
25
20
|
*
|
|
@@ -36,8 +31,8 @@ declare global {
|
|
|
36
31
|
export declare class OscdFilledTonalIconButton extends IconButton {
|
|
37
32
|
static styles: CSSResultOrNative[];
|
|
38
33
|
protected getRenderClasses(): {
|
|
39
|
-
|
|
40
|
-
|
|
34
|
+
'filled-tonal': boolean;
|
|
35
|
+
'toggle-filled-tonal': boolean;
|
|
41
36
|
'flip-icon': boolean;
|
|
42
37
|
selected: boolean;
|
|
43
38
|
};
|
|
@@ -3,14 +3,14 @@
|
|
|
3
3
|
* Copyright 2022 Google LLC
|
|
4
4
|
* SPDX-License-Identifier: Apache-2.0
|
|
5
5
|
*/
|
|
6
|
-
import { styles } from
|
|
7
|
-
import { IconButton } from
|
|
8
|
-
import { styles as sharedStyles } from
|
|
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
9
|
/**
|
|
10
|
+
* @tag oscd-filled-tonal-icon-button
|
|
10
11
|
* @summary Icon buttons help people take supplementary actions with a single
|
|
11
12
|
* tap.
|
|
12
13
|
*
|
|
13
|
-
* @description
|
|
14
14
|
* __Emphasis:__ Low emphasis – For optional or supplementary actions with the
|
|
15
15
|
* least amount of prominence.
|
|
16
16
|
*
|
|
@@ -29,8 +29,8 @@ export class OscdFilledTonalIconButton extends IconButton {
|
|
|
29
29
|
getRenderClasses() {
|
|
30
30
|
return {
|
|
31
31
|
...super.getRenderClasses(),
|
|
32
|
-
|
|
33
|
-
|
|
32
|
+
'filled-tonal': true,
|
|
33
|
+
'toggle-filled-tonal': this.toggle,
|
|
34
34
|
};
|
|
35
35
|
}
|
|
36
36
|
}
|
|
@@ -1 +1 @@
|
|
|
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;
|
|
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;AAE5F;;;;;;;;;;;;;;;;;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\n/**\n * @tag oscd-filled-tonal-icon-button\n * @summary Icon buttons help people take supplementary actions with a single\n * tap.\n *\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"]}
|
|
@@ -8,18 +8,13 @@
|
|
|
8
8
|
* Copyright 2025 OMICRON Electronics GmbH
|
|
9
9
|
* SPDX-License-Identifier: Apache-2.0
|
|
10
10
|
*/
|
|
11
|
-
import { CSSResultOrNative } from
|
|
12
|
-
import { IconButton } from
|
|
13
|
-
declare global {
|
|
14
|
-
interface HTMLElementTagNameMap {
|
|
15
|
-
"oscd-icon-button": OscdIconButton;
|
|
16
|
-
}
|
|
17
|
-
}
|
|
11
|
+
import { CSSResultOrNative } from 'lit';
|
|
12
|
+
import { IconButton } from '@material/web/iconbutton/internal/icon-button.js';
|
|
18
13
|
/**
|
|
14
|
+
* @tag oscd-icon-button
|
|
19
15
|
* @summary Icon buttons help people take supplementary actions with a single
|
|
20
16
|
* tap.
|
|
21
17
|
*
|
|
22
|
-
* @description
|
|
23
18
|
* __Emphasis:__ Low emphasis – For optional or supplementary actions with the
|
|
24
19
|
* least amount of prominence.
|
|
25
20
|
*
|
|
@@ -3,14 +3,14 @@
|
|
|
3
3
|
* Copyright 2021 Google LLC
|
|
4
4
|
* SPDX-License-Identifier: Apache-2.0
|
|
5
5
|
*/
|
|
6
|
-
import { IconButton } from
|
|
7
|
-
import { styles as sharedStyles } from
|
|
8
|
-
import { styles } from
|
|
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
9
|
/**
|
|
10
|
+
* @tag oscd-icon-button
|
|
10
11
|
* @summary Icon buttons help people take supplementary actions with a single
|
|
11
12
|
* tap.
|
|
12
13
|
*
|
|
13
|
-
* @description
|
|
14
14
|
* __Emphasis:__ Low emphasis – For optional or supplementary actions with the
|
|
15
15
|
* least amount of prominence.
|
|
16
16
|
*
|
|
@@ -1 +1 @@
|
|
|
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;
|
|
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;AAE9E;;;;;;;;;;;;;;;;;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\n/**\n * @tag oscd-icon-button\n * @summary Icon buttons help people take supplementary actions with a single\n * tap.\n *\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"]}
|
|
@@ -8,18 +8,13 @@
|
|
|
8
8
|
* Copyright 2025 OMICRON Electronics GmbH
|
|
9
9
|
* SPDX-License-Identifier: Apache-2.0
|
|
10
10
|
*/
|
|
11
|
-
import { CSSResultOrNative } from
|
|
12
|
-
import { IconButton } from
|
|
13
|
-
declare global {
|
|
14
|
-
interface HTMLElementTagNameMap {
|
|
15
|
-
"oscd-outlined-icon-button": OscdOutlinedIconButton;
|
|
16
|
-
}
|
|
17
|
-
}
|
|
11
|
+
import { CSSResultOrNative } from 'lit';
|
|
12
|
+
import { IconButton } from '@material/web/iconbutton/internal/icon-button.js';
|
|
18
13
|
/**
|
|
14
|
+
* @tag oscd-outlined-icon-button
|
|
19
15
|
* @summary Icon buttons help people take supplementary actions with a single
|
|
20
16
|
* tap.
|
|
21
17
|
*
|
|
22
|
-
* @description
|
|
23
18
|
* __Emphasis:__ Low emphasis – For optional or supplementary actions with the
|
|
24
19
|
* least amount of prominence.
|
|
25
20
|
*
|
|
@@ -3,14 +3,14 @@
|
|
|
3
3
|
* Copyright 2022 Google LLC
|
|
4
4
|
* SPDX-License-Identifier: Apache-2.0
|
|
5
5
|
*/
|
|
6
|
-
import { IconButton } from
|
|
7
|
-
import { styles } from
|
|
8
|
-
import { styles as sharedStyles } from
|
|
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
9
|
/**
|
|
10
|
+
* @tag oscd-outlined-icon-button
|
|
10
11
|
* @summary Icon buttons help people take supplementary actions with a single
|
|
11
12
|
* tap.
|
|
12
13
|
*
|
|
13
|
-
* @description
|
|
14
14
|
* __Emphasis:__ Low emphasis – For optional or supplementary actions with the
|
|
15
15
|
* least amount of prominence.
|
|
16
16
|
*
|
|
@@ -33,4 +33,4 @@ export class OscdOutlinedIconButton extends IconButton {
|
|
|
33
33
|
};
|
|
34
34
|
}
|
|
35
35
|
}
|
|
36
|
-
//# sourceMappingURL=
|
|
36
|
+
//# sourceMappingURL=OscdOutlinedIconButton.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"OscdOutlinedIconButton.js","sourceRoot":"","sources":["OscdOutlinedIconButton.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;AAE5F;;;;;;;;;;;;;;;;;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\n/**\n * @tag oscd-outlined-icon-button\n * @summary Icon buttons help people take supplementary actions with a single\n * tap.\n *\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,2 +1,7 @@
|
|
|
1
|
-
import { OscdFilledIconButton } from
|
|
1
|
+
import { OscdFilledIconButton } from './OscdFilledIconButton.js';
|
|
2
|
+
declare global {
|
|
3
|
+
interface HTMLElementTagNameMap {
|
|
4
|
+
'oscd-filled-icon-button': OscdFilledIconButton;
|
|
5
|
+
}
|
|
6
|
+
}
|
|
2
7
|
export { OscdFilledIconButton };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { OscdFilledIconButton } from
|
|
2
|
-
customElements.define(
|
|
1
|
+
import { OscdFilledIconButton } from './OscdFilledIconButton.js';
|
|
2
|
+
customElements.define('oscd-filled-icon-button', OscdFilledIconButton);
|
|
3
3
|
export { OscdFilledIconButton };
|
|
4
4
|
//# sourceMappingURL=oscd-filled-icon-button.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"oscd-filled-icon-button.js","sourceRoot":"","sources":["oscd-filled-icon-button.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,oBAAoB,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"oscd-filled-icon-button.js","sourceRoot":"","sources":["oscd-filled-icon-button.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,oBAAoB,EAAE,MAAM,2BAA2B,CAAC;AAQjE,cAAc,CAAC,MAAM,CAAC,yBAAyB,EAAE,oBAAoB,CAAC,CAAC;AACvE,OAAO,EAAE,oBAAoB,EAAE,CAAC","sourcesContent":["import { OscdFilledIconButton } from './OscdFilledIconButton.js';\n\ndeclare global {\n interface HTMLElementTagNameMap {\n 'oscd-filled-icon-button': OscdFilledIconButton;\n }\n}\n\ncustomElements.define('oscd-filled-icon-button', OscdFilledIconButton);\nexport { OscdFilledIconButton };\n"]}
|
|
@@ -1,2 +1,7 @@
|
|
|
1
|
-
import { OscdFilledTonalIconButton } from
|
|
1
|
+
import { OscdFilledTonalIconButton } from './OscdFilledTonalIconButton.js';
|
|
2
|
+
declare global {
|
|
3
|
+
interface HTMLElementTagNameMap {
|
|
4
|
+
'oscd-filled-tonal-icon-button': OscdFilledTonalIconButton;
|
|
5
|
+
}
|
|
6
|
+
}
|
|
2
7
|
export { OscdFilledTonalIconButton };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { OscdFilledTonalIconButton } from
|
|
2
|
-
customElements.define(
|
|
1
|
+
import { OscdFilledTonalIconButton } from './OscdFilledTonalIconButton.js';
|
|
2
|
+
customElements.define('oscd-filled-tonal-icon-button', OscdFilledTonalIconButton);
|
|
3
3
|
export { OscdFilledTonalIconButton };
|
|
4
4
|
//# sourceMappingURL=oscd-filled-tonal-icon-button.js.map
|
|
@@ -1 +1 @@
|
|
|
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,
|
|
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,gCAAgC,CAAC;AAQ3E,cAAc,CAAC,MAAM,CACnB,+BAA+B,EAC/B,yBAAyB,CAC1B,CAAC;AACF,OAAO,EAAE,yBAAyB,EAAE,CAAC","sourcesContent":["import { OscdFilledTonalIconButton } from './OscdFilledTonalIconButton.js';\n\ndeclare global {\n interface HTMLElementTagNameMap {\n 'oscd-filled-tonal-icon-button': OscdFilledTonalIconButton;\n }\n}\n\ncustomElements.define(\n 'oscd-filled-tonal-icon-button',\n OscdFilledTonalIconButton,\n);\nexport { OscdFilledTonalIconButton };\n"]}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { OscdIconButton } from
|
|
2
|
-
customElements.define(
|
|
1
|
+
import { OscdIconButton } from './OscdIconButton.js';
|
|
2
|
+
customElements.define('oscd-icon-button', OscdIconButton);
|
|
3
3
|
export { OscdIconButton };
|
|
4
4
|
//# sourceMappingURL=oscd-icon-button.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"oscd-icon-button.js","sourceRoot":"","sources":["oscd-icon-button.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"oscd-icon-button.js","sourceRoot":"","sources":["oscd-icon-button.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,qBAAqB,CAAC;AAQrD,cAAc,CAAC,MAAM,CAAC,kBAAkB,EAAE,cAAc,CAAC,CAAC;AAC1D,OAAO,EAAE,cAAc,EAAE,CAAC","sourcesContent":["import { OscdIconButton } from './OscdIconButton.js';\n\ndeclare global {\n interface HTMLElementTagNameMap {\n 'oscd-icon-button': OscdIconButton;\n }\n}\n\ncustomElements.define('oscd-icon-button', OscdIconButton);\nexport { OscdIconButton };\n"]}
|
|
@@ -1,2 +1,7 @@
|
|
|
1
|
-
import { OscdOutlinedIconButton } from
|
|
1
|
+
import { OscdOutlinedIconButton } from './OscdOutlinedIconButton.js';
|
|
2
|
+
declare global {
|
|
3
|
+
interface HTMLElementTagNameMap {
|
|
4
|
+
'oscd-outlined-icon-button': OscdOutlinedIconButton;
|
|
5
|
+
}
|
|
6
|
+
}
|
|
2
7
|
export { OscdOutlinedIconButton };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { OscdOutlinedIconButton } from
|
|
2
|
-
customElements.define(
|
|
1
|
+
import { OscdOutlinedIconButton } from './OscdOutlinedIconButton.js';
|
|
2
|
+
customElements.define('oscd-outlined-icon-button', OscdOutlinedIconButton);
|
|
3
3
|
export { OscdOutlinedIconButton };
|
|
4
4
|
//# sourceMappingURL=oscd-outlined-icon-button.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"oscd-outlined-icon-button.js","sourceRoot":"","sources":["oscd-outlined-icon-button.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,sBAAsB,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"oscd-outlined-icon-button.js","sourceRoot":"","sources":["oscd-outlined-icon-button.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,sBAAsB,EAAE,MAAM,6BAA6B,CAAC;AAQrE,cAAc,CAAC,MAAM,CAAC,2BAA2B,EAAE,sBAAsB,CAAC,CAAC;AAC3E,OAAO,EAAE,sBAAsB,EAAE,CAAC","sourcesContent":["import { OscdOutlinedIconButton } from './OscdOutlinedIconButton.js';\n\ndeclare global {\n interface HTMLElementTagNameMap {\n 'oscd-outlined-icon-button': OscdOutlinedIconButton;\n }\n}\n\ncustomElements.define('oscd-outlined-icon-button', OscdOutlinedIconButton);\nexport { OscdOutlinedIconButton };\n"]}
|
package/list/OscdList.d.ts
CHANGED
|
@@ -8,17 +8,12 @@
|
|
|
8
8
|
* Copyright 2025 OMICRON Electronics GmbH
|
|
9
9
|
* SPDX-License-Identifier: Apache-2.0
|
|
10
10
|
*/
|
|
11
|
-
import { CSSResultOrNative } from
|
|
12
|
-
import { List } from
|
|
13
|
-
declare global {
|
|
14
|
-
interface HTMLElementTagNameMap {
|
|
15
|
-
"oscd-list": OscdList;
|
|
16
|
-
}
|
|
17
|
-
}
|
|
11
|
+
import { CSSResultOrNative } from 'lit';
|
|
12
|
+
import { List } from '@material/web/list/internal/list.js';
|
|
18
13
|
/**
|
|
14
|
+
* @tag oscd-list
|
|
19
15
|
* @summary Lists are continuous, vertical indexes of text or images.
|
|
20
16
|
*
|
|
21
|
-
* @description
|
|
22
17
|
* Lists consist of one or more list items, and can contain actions represented
|
|
23
18
|
* by icons and text. List items come in three sizes: one-line, two-line, and
|
|
24
19
|
* three-line.
|
package/list/OscdList.js
CHANGED
|
@@ -8,9 +8,9 @@
|
|
|
8
8
|
* Copyright 2025 OMICRON Electronics GmbH
|
|
9
9
|
* SPDX-License-Identifier: Apache-2.0
|
|
10
10
|
*/
|
|
11
|
-
import { css } from
|
|
12
|
-
import { List } from
|
|
13
|
-
import { styles } from
|
|
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
14
|
const overrideStyles = css `
|
|
15
15
|
:host {
|
|
16
16
|
--md-list-container-color: var(
|
|
@@ -20,9 +20,9 @@ const overrideStyles = css `
|
|
|
20
20
|
}
|
|
21
21
|
`;
|
|
22
22
|
/**
|
|
23
|
+
* @tag oscd-list
|
|
23
24
|
* @summary Lists are continuous, vertical indexes of text or images.
|
|
24
25
|
*
|
|
25
|
-
* @description
|
|
26
26
|
* Lists consist of one or more list items, and can contain actions represented
|
|
27
27
|
* by icons and text. List items come in three sizes: one-line, two-line, and
|
|
28
28
|
* three-line.
|
package/list/OscdList.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"OscdList.js","sourceRoot":"","sources":["OscdList.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH;;;;GAIG;AACH,OAAO,EAAE,GAAG,EAAqB,MAAM,KAAK,CAAC;AAC7C,OAAO,EAAE,IAAI,EAAE,MAAM,qCAAqC,CAAC;AAC3D,OAAO,EAAE,MAAM,EAAE,MAAM,4CAA4C,CAAC;
|
|
1
|
+
{"version":3,"file":"OscdList.js","sourceRoot":"","sources":["OscdList.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH;;;;GAIG;AACH,OAAO,EAAE,GAAG,EAAqB,MAAM,KAAK,CAAC;AAC7C,OAAO,EAAE,IAAI,EAAE,MAAM,qCAAqC,CAAC;AAC3D,OAAO,EAAE,MAAM,EAAE,MAAM,4CAA4C,CAAC;AAEpE,MAAM,cAAc,GAAG,GAAG,CAAA;;;;;;;CAOzB,CAAC;AAEF;;;;;;;;;;;;;;;;;;GAkBG;AACH,MAAM,OAAO,QAAS,SAAQ,IAAI;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\nconst overrideStyles = css`\n :host {\n --md-list-container-color: var(\n --oscd-list-container-color,\n var(--md-sys-color-surface-container, #fef7ff)\n );\n }\n`;\n\n/**\n * @tag oscd-list\n * @summary Lists are continuous, vertical indexes of text or images.\n *\n * Lists consist of one or more list items, and can contain actions represented\n * by icons and text. List items come in three sizes: one-line, two-line, and\n * three-line.\n *\n * __Takeaways:__\n *\n * - Lists should be sorted in logical ways that make content easy to scan, such\n * as alphabetical, numerical, chronological, or by user preference.\n * - Lists present content in a way that makes it easy to identify a specific\n * item in a collection and act on it.\n * - Lists should present icons, text, and actions in a consistent format.\n *\n * @final\n * @suppress {visibility}\n */\nexport class OscdList extends List {\n static override styles: CSSResultOrNative[] = [styles, overrideStyles];\n}\n"]}
|
package/list/OscdListItem.d.ts
CHANGED
|
@@ -8,20 +8,15 @@
|
|
|
8
8
|
* Copyright 2025 OMICRON Electronics GmbH
|
|
9
9
|
* SPDX-License-Identifier: Apache-2.0
|
|
10
10
|
*/
|
|
11
|
-
import { CSSResultOrNative } from
|
|
12
|
-
import { ListItemEl as ListItem } from
|
|
13
|
-
export { type ListItemType } from
|
|
14
|
-
declare global {
|
|
15
|
-
interface HTMLElementTagNameMap {
|
|
16
|
-
"oscd-list-item": OscdListItem;
|
|
17
|
-
}
|
|
18
|
-
}
|
|
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';
|
|
19
14
|
/**
|
|
15
|
+
* @tag oscd-list-item
|
|
20
16
|
* @summary
|
|
21
17
|
* Lists are continuous, vertical indexes of text or images. Items are placed
|
|
22
18
|
* inside the list.
|
|
23
19
|
*
|
|
24
|
-
* @description
|
|
25
20
|
* Lists consist of one or more list items, and can contain actions represented
|
|
26
21
|
* by icons and text. List items come in three sizes: one-line, two-line, and
|
|
27
22
|
* three-line.
|
|
@@ -49,8 +44,6 @@ declare global {
|
|
|
49
44
|
* </oscd-list-item>
|
|
50
45
|
* ```
|
|
51
46
|
*
|
|
52
|
-
* @example
|
|
53
|
-
*
|
|
54
47
|
* @final
|
|
55
48
|
* @suppress {visibility}
|
|
56
49
|
*/
|
package/list/OscdListItem.js
CHANGED
|
@@ -8,9 +8,9 @@
|
|
|
8
8
|
* Copyright 2025 OMICRON Electronics GmbH
|
|
9
9
|
* SPDX-License-Identifier: Apache-2.0
|
|
10
10
|
*/
|
|
11
|
-
import { css } from
|
|
12
|
-
import { ListItemEl as ListItem } from
|
|
13
|
-
import { styles } from
|
|
11
|
+
import { css } from 'lit';
|
|
12
|
+
import { ListItemEl as ListItem } from '@material/web/list/internal/listitem/list-item.js';
|
|
13
|
+
import { styles } from '@material/web/list/internal/listitem/list-item-styles.js';
|
|
14
14
|
const styleOverrides = css `
|
|
15
15
|
:host([activated]) {
|
|
16
16
|
--md-list-item-label-text-color: var(
|
|
@@ -23,13 +23,13 @@ const styleOverrides = css `
|
|
|
23
23
|
var(--md-sys-color-surface-bright, #eaddff)
|
|
24
24
|
);
|
|
25
25
|
}
|
|
26
|
-
[slot=
|
|
26
|
+
[slot='start'] {
|
|
27
27
|
color: var(
|
|
28
28
|
--md-list-item-leading-icon-color,
|
|
29
29
|
var(--md-sys-color-on-surface, #49454f)
|
|
30
30
|
);
|
|
31
31
|
}
|
|
32
|
-
[slot=
|
|
32
|
+
[slot='end'] {
|
|
33
33
|
color: var(
|
|
34
34
|
--md-list-item-trailing-icon-color,
|
|
35
35
|
var(--md-sys-color-on-surface, #49454f)
|
|
@@ -37,11 +37,11 @@ const styleOverrides = css `
|
|
|
37
37
|
}
|
|
38
38
|
`;
|
|
39
39
|
/**
|
|
40
|
+
* @tag oscd-list-item
|
|
40
41
|
* @summary
|
|
41
42
|
* Lists are continuous, vertical indexes of text or images. Items are placed
|
|
42
43
|
* inside the list.
|
|
43
44
|
*
|
|
44
|
-
* @description
|
|
45
45
|
* Lists consist of one or more list items, and can contain actions represented
|
|
46
46
|
* by icons and text. List items come in three sizes: one-line, two-line, and
|
|
47
47
|
* three-line.
|
|
@@ -69,8 +69,6 @@ const styleOverrides = css `
|
|
|
69
69
|
* </oscd-list-item>
|
|
70
70
|
* ```
|
|
71
71
|
*
|
|
72
|
-
* @example
|
|
73
|
-
*
|
|
74
72
|
* @final
|
|
75
73
|
* @suppress {visibility}
|
|
76
74
|
*/
|
package/list/OscdListItem.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"OscdListItem.js","sourceRoot":"","sources":["OscdListItem.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH;;;;GAIG;AACH,OAAO,EAAE,GAAG,EAAqB,MAAM,KAAK,CAAC;AAC7C,OAAO,EAAE,UAAU,IAAI,QAAQ,EAAE,MAAM,mDAAmD,CAAC;AAC3F,OAAO,EAAE,MAAM,EAAE,MAAM,0DAA0D,CAAC;
|
|
1
|
+
{"version":3,"file":"OscdListItem.js","sourceRoot":"","sources":["OscdListItem.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH;;;;GAIG;AACH,OAAO,EAAE,GAAG,EAAqB,MAAM,KAAK,CAAC;AAC7C,OAAO,EAAE,UAAU,IAAI,QAAQ,EAAE,MAAM,mDAAmD,CAAC;AAC3F,OAAO,EAAE,MAAM,EAAE,MAAM,0DAA0D,CAAC;AAIlF,MAAM,cAAc,GAAG,GAAG,CAAA;;;;;;;;;;;;;;;;;;;;;;;;CAwBzB,CAAC;AAEF;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAmCG;AACH,MAAM,OAAO,YAAa,SAAQ,QAAQ;IACxC,MAAM,CAAU,MAAM,GAAwB,CAAC,MAAM,EAAE,cAAc,CAAC,CAAC","sourcesContent":["/**\n * @license\n * Copyright 2022 Google LLC\n * SPDX-License-Identifier: Apache-2.0\n */\n\n/**\n * @license\n * Copyright 2025 OMICRON Electronics GmbH\n * SPDX-License-Identifier: Apache-2.0\n */\nimport { css, CSSResultOrNative } from 'lit';\nimport { ListItemEl as ListItem } from '@material/web/list/internal/listitem/list-item.js';\nimport { styles } from '@material/web/list/internal/listitem/list-item-styles.js';\n\nexport { type ListItemType } from '@material/web/list/internal/listitem/list-item.js';\n\nconst styleOverrides = css`\n :host([activated]) {\n --md-list-item-label-text-color: var(\n --oscd-list-item-activated-color,\n var(--md-sys-color-primary, #6750a4)\n );\n\n background-color: var(\n --oscd-list-item-activated-background-color,\n var(--md-sys-color-surface-bright, #eaddff)\n );\n }\n [slot='start'] {\n color: var(\n --md-list-item-leading-icon-color,\n var(--md-sys-color-on-surface, #49454f)\n );\n }\n [slot='end'] {\n color: var(\n --md-list-item-trailing-icon-color,\n var(--md-sys-color-on-surface, #49454f)\n );\n }\n`;\n\n/**\n * @tag oscd-list-item\n * @summary\n * Lists are continuous, vertical indexes of text or images. Items are placed\n * inside the list.\n *\n * Lists consist of one or more list items, and can contain actions represented\n * by icons and text. List items come in three sizes: one-line, two-line, and\n * three-line.\n *\n * __Takeaways:__\n *\n * - Lists should be sorted in logical ways that make content easy to scan, such\n * as alphabetical, numerical, chronological, or by user preference.\n * - Lists present content in a way that makes it easy to identify a specific\n * item in a collection and act on it.\n * - Lists should present icons, text, and actions in a consistent format.\n *\n * Acceptable slot child variants are:\n *\n * - `img[slot=end]`\n * - `img[slot=start]`\n *\n * @example\n * ```html\n * <oscd-list-item\n * headline=\"User Name\"\n * supportingText=\"user@name.com\">\n * <oscd-icon slot=\"start\">account_circle</oscd-icon>\n * <oscd-icon slot=\"end\">check</oscd-icon>\n * </oscd-list-item>\n * ```\n *\n * @final\n * @suppress {visibility}\n */\nexport class OscdListItem extends ListItem {\n static override styles: CSSResultOrNative[] = [styles, styleOverrides];\n}\n"]}
|
package/list/oscd-list-item.d.ts
CHANGED
package/list/oscd-list-item.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { OscdListItem } from
|
|
2
|
-
customElements.define(
|
|
1
|
+
import { OscdListItem } from './OscdListItem.js';
|
|
2
|
+
customElements.define('oscd-list-item', OscdListItem);
|
|
3
3
|
export { OscdListItem };
|
|
4
4
|
//# sourceMappingURL=oscd-list-item.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"oscd-list-item.js","sourceRoot":"","sources":["oscd-list-item.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"oscd-list-item.js","sourceRoot":"","sources":["oscd-list-item.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAC;AAQjD,cAAc,CAAC,MAAM,CAAC,gBAAgB,EAAE,YAAY,CAAC,CAAC;AACtD,OAAO,EAAE,YAAY,EAAE,CAAC","sourcesContent":["import { OscdListItem } from './OscdListItem.js';\n\ndeclare global {\n interface HTMLElementTagNameMap {\n 'oscd-list-item': OscdListItem;\n }\n}\n\ncustomElements.define('oscd-list-item', OscdListItem);\nexport { OscdListItem };\n"]}
|
package/list/oscd-list.d.ts
CHANGED
package/list/oscd-list.js
CHANGED
package/list/oscd-list.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"oscd-list.js","sourceRoot":"","sources":["oscd-list.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"oscd-list.js","sourceRoot":"","sources":["oscd-list.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,eAAe,CAAC;AAQzC,cAAc,CAAC,MAAM,CAAC,WAAW,EAAE,QAAQ,CAAC,CAAC;AAC7C,OAAO,EAAE,QAAQ,EAAE,CAAC","sourcesContent":["import { OscdList } from './OscdList.js';\n\ndeclare global {\n interface HTMLElementTagNameMap {\n 'oscd-list': OscdList;\n }\n}\n\ncustomElements.define('oscd-list', OscdList);\nexport { OscdList };\n"]}
|
package/menu/OscdMenu.d.ts
CHANGED
|
@@ -8,21 +8,16 @@
|
|
|
8
8
|
* Copyright 2025 OMICRON Electronics GmbH
|
|
9
9
|
* SPDX-License-Identifier: Apache-2.0
|
|
10
10
|
*/
|
|
11
|
-
import { CSSResultOrNative } from
|
|
12
|
-
import { Menu } from
|
|
13
|
-
export { type ListItem } from
|
|
14
|
-
export { type MenuItem } from
|
|
15
|
-
export { CloseReason, FocusState, type CloseMenuEvent, type Menu, } from
|
|
16
|
-
export { Corner } from
|
|
17
|
-
declare global {
|
|
18
|
-
interface HTMLElementTagNameMap {
|
|
19
|
-
"oscd-menu": OscdMenu;
|
|
20
|
-
}
|
|
21
|
-
}
|
|
11
|
+
import { CSSResultOrNative } from 'lit';
|
|
12
|
+
import { Menu } from '@material/web/menu/internal/menu.js';
|
|
13
|
+
export { type ListItem } from '@material/web/list/internal/list-navigation-helpers.js';
|
|
14
|
+
export { type MenuItem } from '@material/web/menu/internal/controllers/menuItemController.js';
|
|
15
|
+
export { CloseReason, FocusState, type CloseMenuEvent, type Menu, } from '@material/web/menu/internal/controllers/shared.js';
|
|
16
|
+
export { Corner } from '@material/web/menu/internal/menu.js';
|
|
22
17
|
/**
|
|
18
|
+
* @tag oscd-menu
|
|
23
19
|
* @summary Menus display a list of choices on a temporary surface.
|
|
24
20
|
*
|
|
25
|
-
* @description
|
|
26
21
|
* Menus appear when users interact with a button, action, or other control.
|
|
27
22
|
*
|
|
28
23
|
* They can be opened from a variety of elements, most commonly icon buttons,
|
package/menu/OscdMenu.js
CHANGED
|
@@ -3,14 +3,14 @@
|
|
|
3
3
|
* Copyright 2022 Google LLC
|
|
4
4
|
* SPDX-License-Identifier: Apache-2.0
|
|
5
5
|
*/
|
|
6
|
-
import { Menu } from
|
|
7
|
-
import { styles } from
|
|
8
|
-
export { CloseReason, FocusState, } from
|
|
9
|
-
export { Corner } from
|
|
6
|
+
import { Menu } from '@material/web/menu/internal/menu.js';
|
|
7
|
+
import { styles } from '@material/web/menu/internal/menu-styles.js';
|
|
8
|
+
export { CloseReason, FocusState, } from '@material/web/menu/internal/controllers/shared.js';
|
|
9
|
+
export { Corner } from '@material/web/menu/internal/menu.js';
|
|
10
10
|
/**
|
|
11
|
+
* @tag oscd-menu
|
|
11
12
|
* @summary Menus display a list of choices on a temporary surface.
|
|
12
13
|
*
|
|
13
|
-
* @description
|
|
14
14
|
* Menus appear when users interact with a button, action, or other control.
|
|
15
15
|
*
|
|
16
16
|
* They can be opened from a variety of elements, most commonly icon buttons,
|
package/menu/OscdMenu.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"OscdMenu.js","sourceRoot":"","sources":["OscdMenu.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAQH,OAAO,EAAE,IAAI,EAAE,MAAM,qCAAqC,CAAC;AAC3D,OAAO,EAAE,MAAM,EAAE,MAAM,4CAA4C,CAAC;AAIpE,OAAO,EACL,WAAW,EACX,UAAU,GAGX,MAAM,mDAAmD,CAAC;AAC3D,OAAO,EAAE,MAAM,EAAE,MAAM,qCAAqC,CAAC;
|
|
1
|
+
{"version":3,"file":"OscdMenu.js","sourceRoot":"","sources":["OscdMenu.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAQH,OAAO,EAAE,IAAI,EAAE,MAAM,qCAAqC,CAAC;AAC3D,OAAO,EAAE,MAAM,EAAE,MAAM,4CAA4C,CAAC;AAIpE,OAAO,EACL,WAAW,EACX,UAAU,GAGX,MAAM,mDAAmD,CAAC;AAC3D,OAAO,EAAE,MAAM,EAAE,MAAM,qCAAqC,CAAC;AAE7D;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAgDG;AACH,MAAM,OAAO,QAAS,SAAQ,IAAI;IAChC,MAAM,CAAU,MAAM,GAAwB,CAAC,MAAM,CAAC,CAAC","sourcesContent":["/**\n * @license\n * Copyright 2022 Google LLC\n * SPDX-License-Identifier: Apache-2.0\n */\n\n/**\n * @license\n * Copyright 2025 OMICRON Electronics GmbH\n * SPDX-License-Identifier: Apache-2.0\n */\nimport { CSSResultOrNative } from 'lit';\nimport { Menu } from '@material/web/menu/internal/menu.js';\nimport { styles } from '@material/web/menu/internal/menu-styles.js';\n\nexport { type ListItem } from '@material/web/list/internal/list-navigation-helpers.js';\nexport { type MenuItem } from '@material/web/menu/internal/controllers/menuItemController.js';\nexport {\n CloseReason,\n FocusState,\n type CloseMenuEvent,\n type Menu,\n} from '@material/web/menu/internal/controllers/shared.js';\nexport { Corner } from '@material/web/menu/internal/menu.js';\n\n/**\n * @tag oscd-menu\n * @summary Menus display a list of choices on a temporary surface.\n *\n * Menus appear when users interact with a button, action, or other control.\n *\n * They can be opened from a variety of elements, most commonly icon buttons,\n * buttons, and text fields.\n *\n * oscd-menu listens for the `close-menu` and `deselect-items` events.\n *\n * - `close-menu` closes the menu when dispatched from a child element.\n * - `deselect-items` deselects all of its immediate menu-item children.\n *\n * @example\n * ```html\n * <div style=\"position:relative;\">\n * <button\n * id=\"anchor\"\n * @click=${() => this.menuRef.value.show()}>\n * Click to open menu\n * </button>\n * <!--\n * `has-overflow` is required when using a submenu which overflows the\n * menu's contents.\n *\n * Additionally, `anchor` ingests an idref which do not pass through shadow\n * roots. You can also set `.anchorElement` to an element reference if\n * necessary.\n * -->\n * <oscd-menu anchor=\"anchor\" has-overflow ${ref(menuRef)}>\n * <oscd-menu-item headline=\"This is a headline\"></oscd-menu-item>\n * <oscd-sub-menu>\n * <oscd-menu-item\n * slot=\"item\"\n * headline=\"this is a submenu item\">\n * </oscd-menu-item>\n * <oscd-menu slot=\"menu\">\n * <oscd-menu-item headline=\"This is an item inside a submenu\">\n * </oscd-menu-item>\n * </oscd-menu>\n * </oscd-sub-menu>\n * </oscd-menu>\n * </div>\n * ```\n *\n * @final\n * @suppress {visibility}\n */\nexport class OscdMenu extends Menu {\n static override styles: CSSResultOrNative[] = [styles];\n}\n"]}
|
package/menu/OscdMenuItem.d.ts
CHANGED
|
@@ -8,19 +8,14 @@
|
|
|
8
8
|
* Copyright 2025 OMICRON Electronics GmbH
|
|
9
9
|
* SPDX-License-Identifier: Apache-2.0
|
|
10
10
|
*/
|
|
11
|
-
import { CSSResultOrNative } from
|
|
12
|
-
import { MenuItemEl } from
|
|
13
|
-
export { type MenuItem } from
|
|
14
|
-
export { type CloseMenuEvent } from
|
|
15
|
-
declare global {
|
|
16
|
-
interface HTMLElementTagNameMap {
|
|
17
|
-
"oscd-menu-item": OscdMenuItem;
|
|
18
|
-
}
|
|
19
|
-
}
|
|
11
|
+
import { CSSResultOrNative } from 'lit';
|
|
12
|
+
import { MenuItemEl } from '@material/web/menu/internal/menuitem/menu-item.js';
|
|
13
|
+
export { type MenuItem } from '@material/web/menu/internal/controllers/menuItemController.js';
|
|
14
|
+
export { type CloseMenuEvent } from '@material/web/menu/internal/controllers/shared.js';
|
|
20
15
|
/**
|
|
16
|
+
* @tag oscd-menu-item
|
|
21
17
|
* @summary Menus display a list of choices on a temporary surface.
|
|
22
18
|
*
|
|
23
|
-
* @description
|
|
24
19
|
* Menu items are the selectable choices within the menu. Menu items must
|
|
25
20
|
* implement the `MenuItem` interface and also have the `Oscdmenu-item`
|
|
26
21
|
* attribute. Additionally menu items are list items so they must also have the
|