@omicronenergy/oscd-ui 0.0.5 → 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/app-bar/OscdAppBar.d.ts +47 -0
- package/app-bar/OscdAppBar.js +150 -0
- package/app-bar/OscdAppBar.js.map +1 -0
- package/app-bar/oscd-app-bar.d.ts +12 -0
- package/app-bar/oscd-app-bar.js +9 -0
- package/app-bar/oscd-app-bar.js.map +1 -0
- package/button/OscdFilledButton.d.ts +38 -0
- package/button/OscdFilledButton.js +45 -0
- package/button/OscdFilledButton.js.map +1 -0
- package/button/OscdFilledButton.spec.d.ts +6 -0
- package/button/OscdFilledButton.spec.js +79 -0
- package/button/OscdFilledButton.spec.js.map +1 -0
- package/button/OscdOutlinedButton.d.ts +40 -0
- package/button/OscdOutlinedButton.js +37 -0
- package/button/OscdOutlinedButton.js.map +1 -0
- package/button/OscdTextButton.d.ts +38 -0
- package/button/OscdTextButton.js +35 -0
- package/button/OscdTextButton.js.map +1 -0
- package/button/oscd-filled-button.d.ts +7 -0
- package/button/oscd-filled-button.js +4 -0
- package/button/oscd-filled-button.js.map +1 -0
- package/button/oscd-outlined-button.d.ts +12 -0
- package/button/oscd-outlined-button.js +9 -0
- package/button/oscd-outlined-button.js.map +1 -0
- package/button/oscd-text-button.d.ts +12 -0
- package/button/oscd-text-button.js +9 -0
- package/button/oscd-text-button.js.map +1 -0
- package/dialog/OscdDialog.d.ts +42 -0
- package/dialog/OscdDialog.js +49 -0
- package/dialog/OscdDialog.js.map +1 -0
- package/dialog/oscd-dialog.d.ts +7 -0
- package/dialog/oscd-dialog.js +4 -0
- package/dialog/oscd-dialog.js.map +1 -0
- package/divider/OscdDivider.d.ts +26 -0
- package/divider/OscdDivider.js +22 -0
- package/divider/OscdDivider.js.map +1 -0
- package/divider/oscd-divider.d.ts +7 -0
- package/divider/oscd-divider.js +4 -0
- package/divider/oscd-divider.js.map +1 -0
- package/elevation/OscdElevation.d.ts +24 -0
- package/elevation/OscdElevation.js +20 -0
- package/elevation/OscdElevation.js.map +1 -0
- package/elevation/oscd-elevation.d.ts +12 -0
- package/elevation/oscd-elevation.js +9 -0
- package/elevation/oscd-elevation.js.map +1 -0
- package/field/OscdFilledField.d.ts +21 -0
- package/field/OscdFilledField.js +18 -0
- package/field/OscdFilledField.js.map +1 -0
- package/field/OscdOutlinedField.d.ts +23 -0
- package/field/OscdOutlinedField.js +20 -0
- package/field/OscdOutlinedField.js.map +1 -0
- package/field/oscd-filled-field.d.ts +7 -0
- package/field/oscd-filled-field.js +4 -0
- package/field/oscd-filled-field.js.map +1 -0
- package/field/oscd-outlined-field.d.ts +7 -0
- package/field/oscd-outlined-field.js +4 -0
- package/field/oscd-outlined-field.js.map +1 -0
- package/icon/OscdIcon.d.ts +24 -0
- package/icon/OscdIcon.js +20 -0
- package/icon/OscdIcon.js.map +1 -0
- package/icon/oscd-icon.d.ts +7 -0
- package/icon/oscd-icon.js +4 -0
- package/icon/oscd-icon.js.map +1 -0
- package/iconbutton/OscdFilledIconButton.d.ts +39 -0
- package/iconbutton/OscdFilledIconButton.js +37 -0
- package/iconbutton/OscdFilledIconButton.js.map +1 -0
- package/iconbutton/OscdFilledTonalIconButton.d.ts +39 -0
- package/iconbutton/OscdFilledTonalIconButton.js +37 -0
- package/iconbutton/OscdFilledTonalIconButton.js.map +1 -0
- package/iconbutton/OscdIconButton.d.ts +38 -0
- package/iconbutton/OscdIconButton.js +36 -0
- package/iconbutton/OscdIconButton.js.map +1 -0
- package/iconbutton/OscdOutlinedIconButton.d.ts +38 -0
- package/iconbutton/OscdOutlinedIconButton.js +36 -0
- package/iconbutton/OscdOutlinedIconButton.js.map +1 -0
- package/iconbutton/oscd-filled-icon-button.d.ts +7 -0
- package/iconbutton/oscd-filled-icon-button.js +4 -0
- package/iconbutton/oscd-filled-icon-button.js.map +1 -0
- package/iconbutton/oscd-filled-tonal-icon-button.d.ts +7 -0
- package/iconbutton/oscd-filled-tonal-icon-button.js +4 -0
- package/iconbutton/oscd-filled-tonal-icon-button.js.map +1 -0
- package/iconbutton/oscd-icon-button.d.ts +7 -0
- package/iconbutton/oscd-icon-button.js +4 -0
- package/iconbutton/oscd-icon-button.js.map +1 -0
- package/iconbutton/oscd-outlined-icon-button.d.ts +7 -0
- package/iconbutton/oscd-outlined-icon-button.js +4 -0
- package/iconbutton/oscd-outlined-icon-button.js.map +1 -0
- package/list/OscdList.d.ts +34 -0
- package/list/OscdList.js +44 -0
- package/list/OscdList.js.map +1 -0
- package/list/OscdListItem.d.ts +52 -0
- package/list/OscdListItem.js +78 -0
- package/list/OscdListItem.js.map +1 -0
- package/list/oscd-list-item.d.ts +7 -0
- package/list/oscd-list-item.js +4 -0
- package/list/oscd-list-item.js.map +1 -0
- package/list/oscd-list.d.ts +7 -0
- package/list/oscd-list.js +4 -0
- package/list/oscd-list.js.map +1 -0
- package/menu/OscdMenu.d.ts +68 -0
- package/menu/OscdMenu.js +62 -0
- package/menu/OscdMenu.js.map +1 -0
- package/menu/OscdMenuItem.d.ts +32 -0
- package/menu/OscdMenuItem.js +26 -0
- package/menu/OscdMenuItem.js.map +1 -0
- package/menu/oscd-menu-item.d.ts +7 -0
- package/menu/oscd-menu-item.js +4 -0
- package/menu/oscd-menu-item.js.map +1 -0
- package/menu/oscd-menu.d.ts +7 -0
- package/menu/oscd-menu.js +4 -0
- package/menu/oscd-menu.js.map +1 -0
- package/navigation-drawer/OscdNavigationDrawer.d.ts +21 -0
- package/navigation-drawer/OscdNavigationDrawer.js +43 -0
- package/navigation-drawer/OscdNavigationDrawer.js.map +1 -0
- package/navigation-drawer/OscdNavigationDrawerHeader.d.ts +15 -0
- package/navigation-drawer/OscdNavigationDrawerHeader.js +66 -0
- package/navigation-drawer/OscdNavigationDrawerHeader.js.map +1 -0
- package/navigation-drawer/oscd-navigation-drawer-header.d.ts +7 -0
- package/navigation-drawer/oscd-navigation-drawer-header.js +4 -0
- package/navigation-drawer/oscd-navigation-drawer-header.js.map +1 -0
- package/navigation-drawer/oscd-navigation-drawer.d.ts +7 -0
- package/navigation-drawer/oscd-navigation-drawer.js +4 -0
- package/navigation-drawer/oscd-navigation-drawer.js.map +1 -0
- package/package.json +13 -7
- package/select/OscdFilledSelect.d.ts +42 -0
- package/select/OscdFilledSelect.js +39 -0
- package/select/OscdFilledSelect.js.map +1 -0
- package/select/OscdOutlinedSelect.d.ts +42 -0
- package/select/OscdOutlinedSelect.js +39 -0
- package/select/OscdOutlinedSelect.js.map +1 -0
- package/select/OscdSelectOption.d.ts +46 -0
- package/select/OscdSelectOption.js +41 -0
- package/select/OscdSelectOption.js.map +1 -0
- package/select/oscd-filled-select.d.ts +7 -0
- package/select/oscd-filled-select.js +4 -0
- package/select/oscd-filled-select.js.map +1 -0
- package/select/oscd-outlined-select.d.ts +7 -0
- package/select/oscd-outlined-select.js +4 -0
- package/select/oscd-outlined-select.js.map +1 -0
- package/select/oscd-select-option.d.ts +7 -0
- package/select/oscd-select-option.js +4 -0
- package/select/oscd-select-option.js.map +1 -0
- package/tabs/OscdPrimaryTab.d.ts +22 -0
- package/tabs/OscdPrimaryTab.js +19 -0
- package/tabs/OscdPrimaryTab.js.map +1 -0
- package/tabs/OscdSecondaryTab.d.ts +22 -0
- package/tabs/OscdSecondaryTab.js +19 -0
- package/tabs/OscdSecondaryTab.js.map +1 -0
- package/tabs/OscdTabs.d.ts +22 -0
- package/tabs/OscdTabs.js +18 -0
- package/tabs/OscdTabs.js.map +1 -0
- package/tabs/oscd-primary-tab.d.ts +7 -0
- package/tabs/oscd-primary-tab.js +4 -0
- package/tabs/oscd-primary-tab.js.map +1 -0
- package/tabs/oscd-secondary-tab.d.ts +7 -0
- package/tabs/oscd-secondary-tab.js +4 -0
- package/tabs/oscd-secondary-tab.js.map +1 -0
- package/tabs/oscd-tabs.d.ts +7 -0
- package/tabs/oscd-tabs.js +4 -0
- package/tabs/oscd-tabs.js.map +1 -0
- package/textfield/OscdFilledTextField.d.ts +30 -0
- package/textfield/OscdFilledTextField.js +30 -0
- package/textfield/OscdFilledTextField.js.map +1 -0
- package/textfield/OscdOutlinedTextField.d.ts +28 -0
- package/textfield/OscdOutlinedTextField.js +28 -0
- package/textfield/OscdOutlinedTextField.js.map +1 -0
- package/textfield/oscd-filled-text-field.d.ts +7 -0
- package/textfield/oscd-filled-text-field.js +4 -0
- package/textfield/oscd-filled-text-field.js.map +1 -0
- package/textfield/oscd-outlined-text-field.d.ts +7 -0
- package/textfield/oscd-outlined-text-field.js +4 -0
- package/textfield/oscd-outlined-text-field.js.map +1 -0
- package/utils/storybook/getStorybookHelpers.d.ts +4 -0
- package/utils/storybook/getStorybookHelpers.js +53 -0
- package/utils/storybook/getStorybookHelpers.js.map +1 -0
- package/utils/storybook/scopedWcDecorator.d.ts +2 -0
- package/utils/storybook/scopedWcDecorator.js +37 -0
- package/utils/storybook/scopedWcDecorator.js.map +1 -0
- package/utils/storybook/themingDecorator.d.ts +6 -0
- package/utils/storybook/themingDecorator.js +100 -0
- package/utils/storybook/themingDecorator.js.map +1 -0
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
* Copyright 2025 OMICRON Electronics GmbH
|
|
4
|
+
* SPDX-License-Identifier: Apache-2.0
|
|
5
|
+
*/
|
|
6
|
+
import { OscdTextButton } from './OscdTextButton.js';
|
|
7
|
+
customElements.define('oscd-text-button', OscdTextButton);
|
|
8
|
+
export { OscdTextButton };
|
|
9
|
+
//# sourceMappingURL=oscd-text-button.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"oscd-text-button.js","sourceRoot":"","sources":["oscd-text-button.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AACH,OAAO,EAAE,cAAc,EAAE,MAAM,qBAAqB,CAAC;AAQrD,cAAc,CAAC,MAAM,CAAC,kBAAkB,EAAE,cAAc,CAAC,CAAC;AAC1D,OAAO,EAAE,cAAc,EAAE,CAAC","sourcesContent":["/**\n * @license\n * Copyright 2025 OMICRON Electronics GmbH\n * SPDX-License-Identifier: Apache-2.0\n */\nimport { OscdTextButton } from './OscdTextButton.js';\n\ndeclare global {\n interface HTMLElementTagNameMap {\n 'oscd-text-button': OscdTextButton;\n }\n}\n\ncustomElements.define('oscd-text-button', OscdTextButton);\nexport { OscdTextButton };\n"]}
|
|
@@ -0,0 +1,42 @@
|
|
|
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 { Dialog } from '@material/web/dialog/internal/dialog.js';
|
|
13
|
+
/**
|
|
14
|
+
* @tag oscd-dialog
|
|
15
|
+
* @summary Dialogs can require an action, communicate information, or help
|
|
16
|
+
* users accomplish a task. There are two types of dialogs: basic and
|
|
17
|
+
* full-screen.
|
|
18
|
+
*
|
|
19
|
+
* A dialog is a modal window that appears in front of app content to provide
|
|
20
|
+
* critical information or ask for a decision. Dialogs disable all app
|
|
21
|
+
* functionality when they appear, and remain on screen until confirmed,
|
|
22
|
+
* dismissed, or a required action has been taken.
|
|
23
|
+
*
|
|
24
|
+
* Dialogs are purposefully interruptive, so they should be used sparingly.
|
|
25
|
+
* A less disruptive alternative is to use a menu, which provides options
|
|
26
|
+
* without interrupting a user’s experience.
|
|
27
|
+
*
|
|
28
|
+
* On mobile devices only, complex dialogs should be displayed fullscreen.
|
|
29
|
+
*
|
|
30
|
+
* __Example usages:__
|
|
31
|
+
* - Common use cases for basic dialogs include alerts, quick selection, and
|
|
32
|
+
* confirmation.
|
|
33
|
+
* - More complex dialogs may contain actions that require a series of tasks
|
|
34
|
+
* to complete. One example is creating a calendar entry with the event title,
|
|
35
|
+
* date, location, and time.
|
|
36
|
+
*
|
|
37
|
+
* @final
|
|
38
|
+
* @suppress {visibility}
|
|
39
|
+
*/
|
|
40
|
+
export declare class OscdDialog extends Dialog {
|
|
41
|
+
static styles: CSSResultOrNative[];
|
|
42
|
+
}
|
|
@@ -0,0 +1,49 @@
|
|
|
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 { Dialog } from '@material/web/dialog/internal/dialog.js';
|
|
13
|
+
import { styles } from '@material/web/dialog/internal/dialog-styles.js';
|
|
14
|
+
const styleOverrides = css `
|
|
15
|
+
.scrim {
|
|
16
|
+
z-index: 6;
|
|
17
|
+
}
|
|
18
|
+
`;
|
|
19
|
+
/**
|
|
20
|
+
* @tag oscd-dialog
|
|
21
|
+
* @summary Dialogs can require an action, communicate information, or help
|
|
22
|
+
* users accomplish a task. There are two types of dialogs: basic and
|
|
23
|
+
* full-screen.
|
|
24
|
+
*
|
|
25
|
+
* A dialog is a modal window that appears in front of app content to provide
|
|
26
|
+
* critical information or ask for a decision. Dialogs disable all app
|
|
27
|
+
* functionality when they appear, and remain on screen until confirmed,
|
|
28
|
+
* dismissed, or a required action has been taken.
|
|
29
|
+
*
|
|
30
|
+
* Dialogs are purposefully interruptive, so they should be used sparingly.
|
|
31
|
+
* A less disruptive alternative is to use a menu, which provides options
|
|
32
|
+
* without interrupting a user’s experience.
|
|
33
|
+
*
|
|
34
|
+
* On mobile devices only, complex dialogs should be displayed fullscreen.
|
|
35
|
+
*
|
|
36
|
+
* __Example usages:__
|
|
37
|
+
* - Common use cases for basic dialogs include alerts, quick selection, and
|
|
38
|
+
* confirmation.
|
|
39
|
+
* - More complex dialogs may contain actions that require a series of tasks
|
|
40
|
+
* to complete. One example is creating a calendar entry with the event title,
|
|
41
|
+
* date, location, and time.
|
|
42
|
+
*
|
|
43
|
+
* @final
|
|
44
|
+
* @suppress {visibility}
|
|
45
|
+
*/
|
|
46
|
+
export class OscdDialog extends Dialog {
|
|
47
|
+
static styles = [styles, styleOverrides];
|
|
48
|
+
}
|
|
49
|
+
//# sourceMappingURL=OscdDialog.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"OscdDialog.js","sourceRoot":"","sources":["OscdDialog.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH;;;;GAIG;AAEH,OAAO,EAAE,GAAG,EAAqB,MAAM,KAAK,CAAC;AAC7C,OAAO,EAAE,MAAM,EAAE,MAAM,yCAAyC,CAAC;AACjE,OAAO,EAAE,MAAM,EAAE,MAAM,gDAAgD,CAAC;AAExE,MAAM,cAAc,GAAG,GAAG,CAAA;;;;CAIzB,CAAC;AAEF;;;;;;;;;;;;;;;;;;;;;;;;;;GA0BG;AACH,MAAM,OAAO,UAAW,SAAQ,MAAM;IACpC,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 */\n\nimport { css, CSSResultOrNative } from 'lit';\nimport { Dialog } from '@material/web/dialog/internal/dialog.js';\nimport { styles } from '@material/web/dialog/internal/dialog-styles.js';\n\nconst styleOverrides = css`\n .scrim {\n z-index: 6;\n }\n`;\n\n/**\n * @tag oscd-dialog\n * @summary Dialogs can require an action, communicate information, or help\n * users accomplish a task. There are two types of dialogs: basic and\n * full-screen.\n *\n * A dialog is a modal window that appears in front of app content to provide\n * critical information or ask for a decision. Dialogs disable all app\n * functionality when they appear, and remain on screen until confirmed,\n * dismissed, or a required action has been taken.\n *\n * Dialogs are purposefully interruptive, so they should be used sparingly.\n * A less disruptive alternative is to use a menu, which provides options\n * without interrupting a user’s experience.\n *\n * On mobile devices only, complex dialogs should be displayed fullscreen.\n *\n * __Example usages:__\n * - Common use cases for basic dialogs include alerts, quick selection, and\n * confirmation.\n * - More complex dialogs may contain actions that require a series of tasks\n * to complete. One example is creating a calendar entry with the event title,\n * date, location, and time.\n *\n * @final\n * @suppress {visibility}\n */\nexport class OscdDialog extends Dialog {\n static override styles: CSSResultOrNative[] = [styles, styleOverrides];\n}\n"]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"oscd-dialog.js","sourceRoot":"","sources":["oscd-dialog.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAC;AAQ7C,cAAc,CAAC,MAAM,CAAC,aAAa,EAAE,UAAU,CAAC,CAAC;AACjD,OAAO,EAAE,UAAU,EAAE,CAAC","sourcesContent":["import { OscdDialog } from './OscdDialog.js';\n\ndeclare global {\n interface HTMLElementTagNameMap {\n 'oscd-dialog': OscdDialog;\n }\n}\n\ncustomElements.define('oscd-dialog', OscdDialog);\nexport { OscdDialog };\n"]}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
* Copyright 2023 Google LLC
|
|
4
|
+
* SPDX-License-Identifier: Apache-2.0
|
|
5
|
+
*/
|
|
6
|
+
/**
|
|
7
|
+
* @license
|
|
8
|
+
* Copyright 2025 OMICRON Electronics GmbH
|
|
9
|
+
* SPDX-License-Identifier: Apache-2.0
|
|
10
|
+
*/
|
|
11
|
+
import { CSSResultOrNative } from 'lit';
|
|
12
|
+
import { Divider } from '@material/web/divider/internal/divider.js';
|
|
13
|
+
/**
|
|
14
|
+
* @tag oscd-divider
|
|
15
|
+
* @summary A divider is a thin line that groups content in lists and
|
|
16
|
+
* containers.
|
|
17
|
+
*
|
|
18
|
+
* Dividers can reinforce tapability, such as when used to separate
|
|
19
|
+
* list items or define tappable regions in an accordion.
|
|
20
|
+
*
|
|
21
|
+
* @final
|
|
22
|
+
* @suppress {visibility}
|
|
23
|
+
*/
|
|
24
|
+
export declare class OscdDivider extends Divider {
|
|
25
|
+
static styles: CSSResultOrNative[];
|
|
26
|
+
}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
* Copyright 2023 Google LLC
|
|
4
|
+
* SPDX-License-Identifier: Apache-2.0
|
|
5
|
+
*/
|
|
6
|
+
import { Divider } from '@material/web/divider/internal/divider.js';
|
|
7
|
+
import { styles } from '@material/web/divider/internal/divider-styles.js';
|
|
8
|
+
/**
|
|
9
|
+
* @tag oscd-divider
|
|
10
|
+
* @summary A divider is a thin line that groups content in lists and
|
|
11
|
+
* containers.
|
|
12
|
+
*
|
|
13
|
+
* Dividers can reinforce tapability, such as when used to separate
|
|
14
|
+
* list items or define tappable regions in an accordion.
|
|
15
|
+
*
|
|
16
|
+
* @final
|
|
17
|
+
* @suppress {visibility}
|
|
18
|
+
*/
|
|
19
|
+
export class OscdDivider extends Divider {
|
|
20
|
+
static styles = [styles];
|
|
21
|
+
}
|
|
22
|
+
//# sourceMappingURL=OscdDivider.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"OscdDivider.js","sourceRoot":"","sources":["OscdDivider.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AASH,OAAO,EAAE,OAAO,EAAE,MAAM,2CAA2C,CAAC;AACpE,OAAO,EAAE,MAAM,EAAE,MAAM,kDAAkD,CAAC;AAE1E;;;;;;;;;;GAUG;AACH,MAAM,OAAO,WAAY,SAAQ,OAAO;IACtC,MAAM,CAAU,MAAM,GAAwB,CAAC,MAAM,CAAC,CAAC","sourcesContent":["/**\n * @license\n * Copyright 2023 Google LLC\n * SPDX-License-Identifier: Apache-2.0\n */\n\n/**\n * @license\n * Copyright 2025 OMICRON Electronics GmbH\n * SPDX-License-Identifier: Apache-2.0\n */\nimport { CSSResultOrNative } from 'lit';\n\nimport { Divider } from '@material/web/divider/internal/divider.js';\nimport { styles } from '@material/web/divider/internal/divider-styles.js';\n\n/**\n * @tag oscd-divider\n * @summary A divider is a thin line that groups content in lists and\n * containers.\n *\n * Dividers can reinforce tapability, such as when used to separate\n * list items or define tappable regions in an accordion.\n *\n * @final\n * @suppress {visibility}\n */\nexport class OscdDivider extends Divider {\n static override styles: CSSResultOrNative[] = [styles];\n}\n"]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"oscd-divider.js","sourceRoot":"","sources":["oscd-divider.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,kBAAkB,CAAC;AAQ/C,cAAc,CAAC,MAAM,CAAC,cAAc,EAAE,WAAW,CAAC,CAAC;AACnD,OAAO,EAAE,WAAW,EAAE,CAAC","sourcesContent":["import { OscdDivider } from './OscdDivider.js';\n\ndeclare global {\n interface HTMLElementTagNameMap {\n 'oscd-divider': OscdDivider;\n }\n}\n\ncustomElements.define('oscd-divider', OscdDivider);\nexport { OscdDivider };\n"]}
|
|
@@ -0,0 +1,24 @@
|
|
|
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 { Elevation } from '@material/web/elevation/internal/elevation.js';
|
|
13
|
+
/**
|
|
14
|
+
* @tag oscd-elevation
|
|
15
|
+
* @summary The `<oscd-elevation>` custom element with default styles.
|
|
16
|
+
*
|
|
17
|
+
* Elevation is the relative distance between two surfaces along the z-axis.
|
|
18
|
+
*
|
|
19
|
+
* @final
|
|
20
|
+
* @suppress {visibility}
|
|
21
|
+
*/
|
|
22
|
+
export declare class OscdElevation extends Elevation {
|
|
23
|
+
static styles: CSSResultOrNative[];
|
|
24
|
+
}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
* Copyright 2022 Google LLC
|
|
4
|
+
* SPDX-License-Identifier: Apache-2.0
|
|
5
|
+
*/
|
|
6
|
+
import { Elevation } from '@material/web/elevation/internal/elevation.js';
|
|
7
|
+
import { styles } from '@material/web/elevation/internal/elevation-styles.js';
|
|
8
|
+
/**
|
|
9
|
+
* @tag oscd-elevation
|
|
10
|
+
* @summary The `<oscd-elevation>` custom element with default styles.
|
|
11
|
+
*
|
|
12
|
+
* Elevation is the relative distance between two surfaces along the z-axis.
|
|
13
|
+
*
|
|
14
|
+
* @final
|
|
15
|
+
* @suppress {visibility}
|
|
16
|
+
*/
|
|
17
|
+
export class OscdElevation extends Elevation {
|
|
18
|
+
static styles = [styles];
|
|
19
|
+
}
|
|
20
|
+
//# sourceMappingURL=OscdElevation.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"OscdElevation.js","sourceRoot":"","sources":["OscdElevation.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AASH,OAAO,EAAE,SAAS,EAAE,MAAM,+CAA+C,CAAC;AAC1E,OAAO,EAAE,MAAM,EAAE,MAAM,sDAAsD,CAAC;AAE9E;;;;;;;;GAQG;AACH,MAAM,OAAO,aAAc,SAAQ,SAAS;IAC1C,MAAM,CAAU,MAAM,GAAwB,CAAC,MAAM,CAAC,CAAC","sourcesContent":["/**\n * @license\n * Copyright 2022 Google LLC\n * SPDX-License-Identifier: Apache-2.0\n */\n\n/**\n * @license\n * Copyright 2025 OMICRON Electronics GmbH\n * SPDX-License-Identifier: Apache-2.0\n */\nimport { CSSResultOrNative } from 'lit';\n\nimport { Elevation } from '@material/web/elevation/internal/elevation.js';\nimport { styles } from '@material/web/elevation/internal/elevation-styles.js';\n\n/**\n * @tag oscd-elevation\n * @summary The `<oscd-elevation>` custom element with default styles.\n *\n * Elevation is the relative distance between two surfaces along the z-axis.\n *\n * @final\n * @suppress {visibility}\n */\nexport class OscdElevation extends Elevation {\n static override styles: CSSResultOrNative[] = [styles];\n}\n"]}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
* Copyright 2025 OMICRON Electronics GmbH
|
|
4
|
+
* SPDX-License-Identifier: Apache-2.0
|
|
5
|
+
*/
|
|
6
|
+
import { OscdElevation } from './OscdElevation.js';
|
|
7
|
+
declare global {
|
|
8
|
+
interface HTMLElementTagNameMap {
|
|
9
|
+
'oscd-elevation': OscdElevation;
|
|
10
|
+
}
|
|
11
|
+
}
|
|
12
|
+
export { OscdElevation };
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
* Copyright 2025 OMICRON Electronics GmbH
|
|
4
|
+
* SPDX-License-Identifier: Apache-2.0
|
|
5
|
+
*/
|
|
6
|
+
import { OscdElevation } from './OscdElevation.js';
|
|
7
|
+
customElements.define('oscd-elevation', OscdElevation);
|
|
8
|
+
export { OscdElevation };
|
|
9
|
+
//# sourceMappingURL=oscd-elevation.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"oscd-elevation.js","sourceRoot":"","sources":["oscd-elevation.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AACH,OAAO,EAAE,aAAa,EAAE,MAAM,oBAAoB,CAAC;AAQnD,cAAc,CAAC,MAAM,CAAC,gBAAgB,EAAE,aAAa,CAAC,CAAC;AACvD,OAAO,EAAE,aAAa,EAAE,CAAC","sourcesContent":["/**\n * @license\n * Copyright 2025 OMICRON Electronics GmbH\n * SPDX-License-Identifier: Apache-2.0\n */\nimport { OscdElevation } from './OscdElevation.js';\n\ndeclare global {\n interface HTMLElementTagNameMap {\n 'oscd-elevation': OscdElevation;\n }\n}\n\ncustomElements.define('oscd-elevation', OscdElevation);\nexport { OscdElevation };\n"]}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
* Copyright 2021 Google LLC
|
|
4
|
+
* SPDX-License-Identifier: Apache-2.0
|
|
5
|
+
*/
|
|
6
|
+
/**
|
|
7
|
+
* @license
|
|
8
|
+
* Copyright 2025 OMICRON Electronics GmbH
|
|
9
|
+
* SPDX-License-Identifier: Apache-2.0
|
|
10
|
+
*/
|
|
11
|
+
import { CSSResultOrNative } from 'lit';
|
|
12
|
+
import { FilledField } from '@material/web/field/internal/filled-field.js';
|
|
13
|
+
/**
|
|
14
|
+
* @tag oscd-filled-field
|
|
15
|
+
* @summary A Material Design filled field component.
|
|
16
|
+
* @final
|
|
17
|
+
* @suppress {visibility}
|
|
18
|
+
*/
|
|
19
|
+
export declare class OscdFilledField extends FilledField {
|
|
20
|
+
static styles: CSSResultOrNative[];
|
|
21
|
+
}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
* Copyright 2021 Google LLC
|
|
4
|
+
* SPDX-License-Identifier: Apache-2.0
|
|
5
|
+
*/
|
|
6
|
+
import { FilledField } from '@material/web/field/internal/filled-field.js';
|
|
7
|
+
import { styles as filledStyles } from '@material/web/field/internal/filled-styles.js';
|
|
8
|
+
import { styles as sharedStyles } from '@material/web/field/internal/shared-styles.js';
|
|
9
|
+
/**
|
|
10
|
+
* @tag oscd-filled-field
|
|
11
|
+
* @summary A Material Design filled field component.
|
|
12
|
+
* @final
|
|
13
|
+
* @suppress {visibility}
|
|
14
|
+
*/
|
|
15
|
+
export class OscdFilledField extends FilledField {
|
|
16
|
+
static styles = [sharedStyles, filledStyles];
|
|
17
|
+
}
|
|
18
|
+
//# sourceMappingURL=OscdFilledField.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"OscdFilledField.js","sourceRoot":"","sources":["OscdFilledField.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAQH,OAAO,EAAE,WAAW,EAAE,MAAM,8CAA8C,CAAC;AAC3E,OAAO,EAAE,MAAM,IAAI,YAAY,EAAE,MAAM,+CAA+C,CAAC;AACvF,OAAO,EAAE,MAAM,IAAI,YAAY,EAAE,MAAM,+CAA+C,CAAC;AAEvF;;;;;GAKG;AACH,MAAM,OAAO,eAAgB,SAAQ,WAAW;IAC9C,MAAM,CAAU,MAAM,GAAwB,CAAC,YAAY,EAAE,YAAY,CAAC,CAAC","sourcesContent":["/**\n * @license\n * Copyright 2021 Google LLC\n * SPDX-License-Identifier: Apache-2.0\n */\n\n/**\n * @license\n * Copyright 2025 OMICRON Electronics GmbH\n * SPDX-License-Identifier: Apache-2.0\n */\nimport { CSSResultOrNative } from 'lit';\nimport { FilledField } from '@material/web/field/internal/filled-field.js';\nimport { styles as filledStyles } from '@material/web/field/internal/filled-styles.js';\nimport { styles as sharedStyles } from '@material/web/field/internal/shared-styles.js';\n\n/**\n * @tag oscd-filled-field\n * @summary A Material Design filled field component.\n * @final\n * @suppress {visibility}\n */\nexport class OscdFilledField extends FilledField {\n static override styles: CSSResultOrNative[] = [sharedStyles, filledStyles];\n}\n"]}
|
|
@@ -0,0 +1,23 @@
|
|
|
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 { OutlinedField } from '@material/web/field/internal/outlined-field.js';
|
|
13
|
+
/**
|
|
14
|
+
* @tag oscd-outlined-field
|
|
15
|
+
* @summary A Material Design outlined field component.
|
|
16
|
+
* This component is a wrapper around the `OutlinedField` from Material Web Components,
|
|
17
|
+
* providing a scoped element that uses the `OscdOutlinedField` as its field.
|
|
18
|
+
* @final
|
|
19
|
+
* @suppress {visibility}
|
|
20
|
+
*/
|
|
21
|
+
export declare class OscdOutlinedField extends OutlinedField {
|
|
22
|
+
static styles: CSSResultOrNative[];
|
|
23
|
+
}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
* Copyright 2021 Google LLC
|
|
4
|
+
* SPDX-License-Identifier: Apache-2.0
|
|
5
|
+
*/
|
|
6
|
+
import { OutlinedField } from '@material/web/field/internal/outlined-field.js';
|
|
7
|
+
import { styles as outlinedStyles } from '@material/web/field/internal/outlined-styles.js';
|
|
8
|
+
import { styles as sharedStyles } from '@material/web/field/internal/shared-styles.js';
|
|
9
|
+
/**
|
|
10
|
+
* @tag oscd-outlined-field
|
|
11
|
+
* @summary A Material Design outlined field component.
|
|
12
|
+
* This component is a wrapper around the `OutlinedField` from Material Web Components,
|
|
13
|
+
* providing a scoped element that uses the `OscdOutlinedField` as its field.
|
|
14
|
+
* @final
|
|
15
|
+
* @suppress {visibility}
|
|
16
|
+
*/
|
|
17
|
+
export class OscdOutlinedField extends OutlinedField {
|
|
18
|
+
static styles = [sharedStyles, outlinedStyles];
|
|
19
|
+
}
|
|
20
|
+
//# sourceMappingURL=OscdOutlinedField.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"OscdOutlinedField.js","sourceRoot":"","sources":["OscdOutlinedField.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAQH,OAAO,EAAE,aAAa,EAAE,MAAM,gDAAgD,CAAC;AAC/E,OAAO,EAAE,MAAM,IAAI,cAAc,EAAE,MAAM,iDAAiD,CAAC;AAC3F,OAAO,EAAE,MAAM,IAAI,YAAY,EAAE,MAAM,+CAA+C,CAAC;AAEvF;;;;;;;GAOG;AACH,MAAM,OAAO,iBAAkB,SAAQ,aAAa;IAClD,MAAM,CAAU,MAAM,GAAwB,CAAC,YAAY,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 { CSSResultOrNative } from 'lit';\nimport { OutlinedField } from '@material/web/field/internal/outlined-field.js';\nimport { styles as outlinedStyles } from '@material/web/field/internal/outlined-styles.js';\nimport { styles as sharedStyles } from '@material/web/field/internal/shared-styles.js';\n\n/**\n * @tag oscd-outlined-field\n * @summary A Material Design outlined field component.\n * This component is a wrapper around the `OutlinedField` from Material Web Components,\n * providing a scoped element that uses the `OscdOutlinedField` as its field.\n * @final\n * @suppress {visibility}\n */\nexport class OscdOutlinedField extends OutlinedField {\n static override styles: CSSResultOrNative[] = [sharedStyles, outlinedStyles];\n}\n"]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"oscd-filled-field.js","sourceRoot":"","sources":["oscd-filled-field.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,sBAAsB,CAAC;AAQvD,cAAc,CAAC,MAAM,CAAC,mBAAmB,EAAE,eAAe,CAAC,CAAC;AAC5D,OAAO,EAAE,eAAe,EAAE,CAAC","sourcesContent":["import { OscdFilledField } from './OscdFilledField.js';\n\ndeclare global {\n interface HTMLElementTagNameMap {\n 'oscd-filled-field': OscdFilledField;\n }\n}\n\ncustomElements.define('oscd-filled-field', OscdFilledField);\nexport { OscdFilledField };\n"]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"oscd-outlined-field.js","sourceRoot":"","sources":["oscd-outlined-field.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAE,MAAM,wBAAwB,CAAC;AAQ3D,cAAc,CAAC,MAAM,CAAC,qBAAqB,EAAE,iBAAiB,CAAC,CAAC;AAChE,OAAO,EAAE,iBAAiB,EAAE,CAAC","sourcesContent":["import { OscdOutlinedField } from './OscdOutlinedField.js';\n\ndeclare global {\n interface HTMLElementTagNameMap {\n 'oscd-outlined-field': OscdOutlinedField;\n }\n}\n\ncustomElements.define('oscd-outlined-field', OscdOutlinedField);\nexport { OscdOutlinedField };\n"]}
|
|
@@ -0,0 +1,24 @@
|
|
|
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 { Icon } from '@material/web/icon/internal/icon.js';
|
|
13
|
+
/**
|
|
14
|
+
* @tag oscd-icon
|
|
15
|
+
* @summary An icon is a graphical representation of an object, action, or concept.
|
|
16
|
+
* Icons can be used to represent actions, such as "add" or "delete", or to
|
|
17
|
+
* represent objects, such as "folder" or "file".
|
|
18
|
+
* @final
|
|
19
|
+
* @suppress {visibility}
|
|
20
|
+
*/
|
|
21
|
+
export declare class OscdIcon extends Icon {
|
|
22
|
+
/** @nocollapse */
|
|
23
|
+
static styles: CSSResultOrNative[];
|
|
24
|
+
}
|
package/icon/OscdIcon.js
ADDED
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
* Copyright 2021 Google LLC
|
|
4
|
+
* SPDX-License-Identifier: Apache-2.0
|
|
5
|
+
*/
|
|
6
|
+
import { Icon } from '@material/web/icon/internal/icon.js';
|
|
7
|
+
import { styles } from '@material/web/icon/internal/icon-styles.js';
|
|
8
|
+
/**
|
|
9
|
+
* @tag oscd-icon
|
|
10
|
+
* @summary An icon is a graphical representation of an object, action, or concept.
|
|
11
|
+
* Icons can be used to represent actions, such as "add" or "delete", or to
|
|
12
|
+
* represent objects, such as "folder" or "file".
|
|
13
|
+
* @final
|
|
14
|
+
* @suppress {visibility}
|
|
15
|
+
*/
|
|
16
|
+
export class OscdIcon extends Icon {
|
|
17
|
+
/** @nocollapse */
|
|
18
|
+
static styles = [styles];
|
|
19
|
+
}
|
|
20
|
+
//# sourceMappingURL=OscdIcon.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"OscdIcon.js","sourceRoot":"","sources":["OscdIcon.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAQH,OAAO,EAAE,IAAI,EAAE,MAAM,qCAAqC,CAAC;AAC3D,OAAO,EAAE,MAAM,EAAE,MAAM,4CAA4C,CAAC;AAEpE;;;;;;;GAOG;AACH,MAAM,OAAO,QAAS,SAAQ,IAAI;IAChC,kBAAkB;IAClB,MAAM,CAAU,MAAM,GAAwB,CAAC,MAAM,CAAC,CAAC","sourcesContent":["/**\n * @license\n * Copyright 2021 Google LLC\n * SPDX-License-Identifier: Apache-2.0\n */\n\n/**\n * @license\n * Copyright 2025 OMICRON Electronics GmbH\n * SPDX-License-Identifier: Apache-2.0\n */\nimport { CSSResultOrNative } from 'lit';\nimport { Icon } from '@material/web/icon/internal/icon.js';\nimport { styles } from '@material/web/icon/internal/icon-styles.js';\n\n/**\n * @tag oscd-icon\n * @summary An icon is a graphical representation of an object, action, or concept.\n * Icons can be used to represent actions, such as \"add\" or \"delete\", or to\n * represent objects, such as \"folder\" or \"file\".\n * @final\n * @suppress {visibility}\n */\nexport class OscdIcon extends Icon {\n /** @nocollapse */\n static override styles: CSSResultOrNative[] = [styles];\n}\n"]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"oscd-icon.js","sourceRoot":"","sources":["oscd-icon.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 { OscdIcon } from './OscdIcon.js';\n\ndeclare global {\n interface HTMLElementTagNameMap {\n 'oscd-icon': OscdIcon;\n }\n}\n\ncustomElements.define('oscd-icon', OscdIcon);\nexport { OscdIcon };\n"]}
|
|
@@ -0,0 +1,39 @@
|
|
|
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
|
+
/**
|
|
14
|
+
* @tag oscd-filled-icon-button
|
|
15
|
+
* @summary Icon buttons help people take supplementary actions with a single
|
|
16
|
+
* tap.
|
|
17
|
+
*
|
|
18
|
+
* __Emphasis:__ Low emphasis – For optional or supplementary actions with the
|
|
19
|
+
* least amount of prominence.
|
|
20
|
+
*
|
|
21
|
+
* __Rationale:__ The most compact and unobtrusive type of button, icon buttons
|
|
22
|
+
* are used for optional supplementary actions such as "Bookmark" or "Star."
|
|
23
|
+
*
|
|
24
|
+
* __Example usages:__
|
|
25
|
+
* - Add to Favorites
|
|
26
|
+
* - Print
|
|
27
|
+
*
|
|
28
|
+
* @final
|
|
29
|
+
* @suppress {visibility}
|
|
30
|
+
*/
|
|
31
|
+
export declare class OscdFilledIconButton extends IconButton {
|
|
32
|
+
static styles: CSSResultOrNative[];
|
|
33
|
+
protected getRenderClasses(): {
|
|
34
|
+
filled: boolean;
|
|
35
|
+
'toggle-filled': boolean;
|
|
36
|
+
'flip-icon': boolean;
|
|
37
|
+
selected: boolean;
|
|
38
|
+
};
|
|
39
|
+
}
|
|
@@ -0,0 +1,37 @@
|
|
|
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-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
|
+
* @tag oscd-filled-icon-button
|
|
11
|
+
* @summary Icon buttons help people take supplementary actions with a single
|
|
12
|
+
* tap.
|
|
13
|
+
*
|
|
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 OscdFilledIconButton extends IconButton {
|
|
28
|
+
static styles = [sharedStyles, styles];
|
|
29
|
+
getRenderClasses() {
|
|
30
|
+
return {
|
|
31
|
+
...super.getRenderClasses(),
|
|
32
|
+
filled: true,
|
|
33
|
+
'toggle-filled': this.toggle,
|
|
34
|
+
};
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
//# sourceMappingURL=OscdFilledIconButton.js.map
|
|
@@ -0,0 +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;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"]}
|
|
@@ -0,0 +1,39 @@
|
|
|
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
|
+
/**
|
|
14
|
+
* @tag oscd-filled-tonal-icon-button
|
|
15
|
+
* @summary Icon buttons help people take supplementary actions with a single
|
|
16
|
+
* tap.
|
|
17
|
+
*
|
|
18
|
+
* __Emphasis:__ Low emphasis – For optional or supplementary actions with the
|
|
19
|
+
* least amount of prominence.
|
|
20
|
+
*
|
|
21
|
+
* __Rationale:__ The most compact and unobtrusive type of button, icon buttons
|
|
22
|
+
* are used for optional supplementary actions such as "Bookmark" or "Star."
|
|
23
|
+
*
|
|
24
|
+
* __Example usages:__
|
|
25
|
+
* - Add to Favorites
|
|
26
|
+
* - Print
|
|
27
|
+
*
|
|
28
|
+
* @final
|
|
29
|
+
* @suppress {visibility}
|
|
30
|
+
*/
|
|
31
|
+
export declare class OscdFilledTonalIconButton extends IconButton {
|
|
32
|
+
static styles: CSSResultOrNative[];
|
|
33
|
+
protected getRenderClasses(): {
|
|
34
|
+
'filled-tonal': boolean;
|
|
35
|
+
'toggle-filled-tonal': boolean;
|
|
36
|
+
'flip-icon': boolean;
|
|
37
|
+
selected: boolean;
|
|
38
|
+
};
|
|
39
|
+
}
|