@openremote/or-mwc-components 1.11.0-snapshot.20251031091914 → 1.11.0-snapshot.20251031111902

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@openremote/or-mwc-components",
3
- "version": "1.11.0-snapshot.20251031091914",
3
+ "version": "1.11.0-snapshot.20251031111902",
4
4
  "description": "Material Design Components packaged as web components (The official components are hardcoded to use Material Design font which has limited icons)",
5
5
  "customElements": "custom-elements.json",
6
6
  "main": "dist/umd/index.bundle.js",
@@ -23,6 +23,7 @@
23
23
  "prepack": "npx tsc -b"
24
24
  },
25
25
  "author": "OpenRemote",
26
+ "repository": "https://github.com/openremote/openremote",
26
27
  "license": "AGPL-3.0-or-later",
27
28
  "dependencies": {
28
29
  "@material/base": "^9.0.0",
@@ -50,10 +51,10 @@
50
51
  "@material/tab-indicator": "^9.0.0",
51
52
  "@material/tab-scroller": "^9.0.0",
52
53
  "@material/textfield": "^9.0.0",
53
- "@openremote/core": "1.11.0-snapshot.20251031091914",
54
- "@openremote/model": "1.11.0-snapshot.20251031091914",
55
- "@openremote/or-icon": "1.11.0-snapshot.20251031091914",
56
- "@openremote/or-translate": "1.11.0-snapshot.20251031091914",
54
+ "@openremote/core": "1.11.0-snapshot.20251031111902",
55
+ "@openremote/model": "1.11.0-snapshot.20251031111902",
56
+ "@openremote/or-icon": "1.11.0-snapshot.20251031111902",
57
+ "@openremote/or-translate": "1.11.0-snapshot.20251031111902",
57
58
  "lit": "^3.3.1",
58
59
  "moment": "^2.29.4"
59
60
  },
@@ -0,0 +1,75 @@
1
+ /*
2
+ * Copyright 2025, OpenRemote Inc.
3
+ *
4
+ * See the CONTRIBUTORS.txt file in the distribution for a
5
+ * full listing of individual contributors.
6
+ *
7
+ * This program is free software: you can redistribute it and/or modify
8
+ * it under the terms of the GNU Affero General Public License as
9
+ * published by the Free Software Foundation, either version 3 of the
10
+ * License, or (at your option) any later version.
11
+ *
12
+ * This program is distributed in the hope that it will be useful,
13
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
14
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15
+ * GNU Affero General Public License for more details.
16
+ *
17
+ * You should have received a copy of the GNU Affero General Public License
18
+ * along with this program. If not, see <http://www.gnu.org/licenses/>.
19
+ */
20
+ import {setCustomElementsManifest, type Meta, type StoryObj } from "@storybook/web-components";
21
+ import {getStorybookHelpers} from "@wc-toolkit/storybook-helpers";
22
+ import customElements from "../../custom-elements.json" with { type: "json" };
23
+ import packageJson from "../../package.json" with { type: "json" };
24
+ import {InputType} from "../../src/or-mwc-input";
25
+ import "../../src/or-mwc-input";
26
+
27
+ const tagName = "or-mwc-input";
28
+ type Story = StoryObj;
29
+ setCustomElementsManifest(customElements);
30
+
31
+ const { events, args, argTypes, template } = getStorybookHelpers(tagName);
32
+
33
+ const meta: Meta = {
34
+ title: "Playground/or-mwc-input/button",
35
+ component: tagName,
36
+ args: args,
37
+ argTypes: argTypes,
38
+ render: storyArgs => template(storyArgs),
39
+ excludeStories: /^[a-z].*/,
40
+ parameters: {
41
+ actions: {
42
+ handles: events
43
+ },
44
+ docs: {
45
+ subtitle: `<${tagName} type="button">`,
46
+ description: "Buttons represent actions that are available to the user."
47
+ }
48
+ }
49
+ };
50
+
51
+ export const Primary: Story = {
52
+ args: {
53
+ type: InputType.BUTTON,
54
+ label: "Button"
55
+ }
56
+ };
57
+
58
+ export const OutlinedExample: Story = {
59
+ name: "Outlined Button Example",
60
+ parameters: {
61
+ title: "Outlined button",
62
+ summary: "You can outline the button using the `outlined` HTML attribute."
63
+ },
64
+ args: {
65
+ type: InputType.BUTTON,
66
+ outlined: true,
67
+ label: "Button"
68
+ }
69
+ };
70
+
71
+ export const examples: Story[] = [OutlinedExample];
72
+
73
+ export {customElements, packageJson};
74
+
75
+ export default meta;
@@ -0,0 +1,60 @@
1
+ /*
2
+ * Copyright 2025, OpenRemote Inc.
3
+ *
4
+ * See the CONTRIBUTORS.txt file in the distribution for a
5
+ * full listing of individual contributors.
6
+ *
7
+ * This program is free software: you can redistribute it and/or modify
8
+ * it under the terms of the GNU Affero General Public License as
9
+ * published by the Free Software Foundation, either version 3 of the
10
+ * License, or (at your option) any later version.
11
+ *
12
+ * This program is distributed in the hope that it will be useful,
13
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
14
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15
+ * GNU Affero General Public License for more details.
16
+ *
17
+ * You should have received a copy of the GNU Affero General Public License
18
+ * along with this program. If not, see <http://www.gnu.org/licenses/>.
19
+ */
20
+ import {setCustomElementsManifest, type Meta, type StoryObj } from "@storybook/web-components";
21
+ import {getStorybookHelpers} from "@wc-toolkit/storybook-helpers";
22
+ import customElements from "../../custom-elements.json" with { type: "json" };
23
+ import packageJson from "../../package.json" with { type: "json" };
24
+ import {InputType} from "../../src/or-mwc-input";
25
+ import "../../src/or-mwc-input";
26
+
27
+ const tagName = "or-mwc-input";
28
+ type Story = StoryObj;
29
+ setCustomElementsManifest(customElements);
30
+
31
+ const { events, args, argTypes, template } = getStorybookHelpers(tagName);
32
+
33
+ const meta: Meta = {
34
+ title: "Playground/or-mwc-input/checkbox",
35
+ component: tagName,
36
+ args: args,
37
+ argTypes: argTypes,
38
+ render: storyArgs => template(storyArgs),
39
+ excludeStories: /^[a-z].*/,
40
+ parameters: {
41
+ actions: {
42
+ handles: events
43
+ },
44
+ docs: {
45
+ subtitle: `<${tagName} type="checkbox">`,
46
+ description: "Checkboxes allow the user to toggle an option on or off."
47
+ }
48
+ }
49
+ };
50
+
51
+ export const Primary: Story = {
52
+ args: {
53
+ type: InputType.CHECKBOX,
54
+ label: "Checkbox"
55
+ }
56
+ };
57
+
58
+ export {customElements, packageJson};
59
+
60
+ export default meta;
@@ -0,0 +1,60 @@
1
+ /*
2
+ * Copyright 2025, OpenRemote Inc.
3
+ *
4
+ * See the CONTRIBUTORS.txt file in the distribution for a
5
+ * full listing of individual contributors.
6
+ *
7
+ * This program is free software: you can redistribute it and/or modify
8
+ * it under the terms of the GNU Affero General Public License as
9
+ * published by the Free Software Foundation, either version 3 of the
10
+ * License, or (at your option) any later version.
11
+ *
12
+ * This program is distributed in the hope that it will be useful,
13
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
14
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15
+ * GNU Affero General Public License for more details.
16
+ *
17
+ * You should have received a copy of the GNU Affero General Public License
18
+ * along with this program. If not, see <http://www.gnu.org/licenses/>.
19
+ */
20
+ import {setCustomElementsManifest, type Meta, type StoryObj } from "@storybook/web-components";
21
+ import {getStorybookHelpers} from "@wc-toolkit/storybook-helpers";
22
+ import customElements from "../../custom-elements.json" with { type: "json" };
23
+ import packageJson from "../../package.json" with { type: "json" };
24
+ import {InputType} from "../../src/or-mwc-input";
25
+ import "../../src/or-mwc-input";
26
+
27
+ const tagName = "or-mwc-input";
28
+ type Story = StoryObj;
29
+ setCustomElementsManifest(customElements);
30
+
31
+ const { events, args, argTypes, template } = getStorybookHelpers(tagName);
32
+
33
+ const meta: Meta = {
34
+ title: "Playground/or-mwc-input/color",
35
+ component: tagName,
36
+ args: args,
37
+ argTypes: argTypes,
38
+ render: storyArgs => template(storyArgs),
39
+ excludeStories: /^[a-z].*/,
40
+ parameters: {
41
+ actions: {
42
+ handles: events
43
+ },
44
+ docs: {
45
+ subtitle: `<${tagName} type="color">`,
46
+ description: "Color pickers allow the user to select a color."
47
+ }
48
+ }
49
+ };
50
+
51
+ export const Primary: Story = {
52
+ args: {
53
+ type: InputType.COLOUR,
54
+ label: "Colour picker"
55
+ }
56
+ };
57
+
58
+ export {customElements, packageJson};
59
+
60
+ export default meta;
@@ -0,0 +1,86 @@
1
+ /*
2
+ * Copyright 2025, OpenRemote Inc.
3
+ *
4
+ * See the CONTRIBUTORS.txt file in the distribution for a
5
+ * full listing of individual contributors.
6
+ *
7
+ * This program is free software: you can redistribute it and/or modify
8
+ * it under the terms of the GNU Affero General Public License as
9
+ * published by the Free Software Foundation, either version 3 of the
10
+ * License, or (at your option) any later version.
11
+ *
12
+ * This program is distributed in the hope that it will be useful,
13
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
14
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15
+ * GNU Affero General Public License for more details.
16
+ *
17
+ * You should have received a copy of the GNU Affero General Public License
18
+ * along with this program. If not, see <http://www.gnu.org/licenses/>.
19
+ */
20
+ import {setCustomElementsManifest, type Meta, type StoryObj } from "@storybook/web-components";
21
+ import {getStorybookHelpers} from "@wc-toolkit/storybook-helpers";
22
+ import customElements from "../../custom-elements.json" with { type: "json" };
23
+ import packageJson from "../../package.json" with { type: "json" };
24
+ import {InputType} from "../../src/or-mwc-input";
25
+ import "../../src/or-mwc-input";
26
+
27
+ const tagName = "or-mwc-input";
28
+ type Story = StoryObj;
29
+ setCustomElementsManifest(customElements);
30
+
31
+ const { events, args, argTypes, template } = getStorybookHelpers(tagName);
32
+
33
+ const meta: Meta = {
34
+ title: "Playground/or-mwc-input/date",
35
+ component: tagName,
36
+ args: args,
37
+ argTypes: argTypes,
38
+ render: storyArgs => template(storyArgs),
39
+ excludeStories: /^[a-z].*/,
40
+ parameters: {
41
+ actions: {
42
+ handles: events
43
+ },
44
+ docs: {
45
+ subtitle: `<${tagName} type="date | time | datetime">`,
46
+ description: "Date pickers allow the user to select a date."
47
+ }
48
+ }
49
+ };
50
+
51
+ export const Primary: Story = {
52
+ args: {
53
+ type: InputType.DATE,
54
+ label: "Date picker"
55
+ }
56
+ };
57
+
58
+ export const TimeExample: Story = {
59
+ name: "Time Example",
60
+ parameters: {
61
+ title: "Select a time",
62
+ summary: "Instead of selecting a date, you could require the user to select a time."
63
+ },
64
+ args: {
65
+ type: InputType.TIME,
66
+ label: "Time picker"
67
+ }
68
+ };
69
+
70
+ export const DateTimeExample: Story = {
71
+ name: "Date time Example",
72
+ parameters: {
73
+ title: "Select a date and time",
74
+ summary: "If you require users to set both a date and time, you can combine them in a 'date time picker'."
75
+ },
76
+ args: {
77
+ type: InputType.DATETIME,
78
+ label: "Date time picker"
79
+ }
80
+ };
81
+
82
+ export const examples: Story[] = [TimeExample, DateTimeExample];
83
+
84
+ export {customElements, packageJson};
85
+
86
+ export default meta;
@@ -0,0 +1,87 @@
1
+ /*
2
+ * Copyright 2025, OpenRemote Inc.
3
+ *
4
+ * See the CONTRIBUTORS.txt file in the distribution for a
5
+ * full listing of individual contributors.
6
+ *
7
+ * This program is free software: you can redistribute it and/or modify
8
+ * it under the terms of the GNU Affero General Public License as
9
+ * published by the Free Software Foundation, either version 3 of the
10
+ * License, or (at your option) any later version.
11
+ *
12
+ * This program is distributed in the hope that it will be useful,
13
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
14
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15
+ * GNU Affero General Public License for more details.
16
+ *
17
+ * You should have received a copy of the GNU Affero General Public License
18
+ * along with this program. If not, see <http://www.gnu.org/licenses/>.
19
+ */
20
+ import {setCustomElementsManifest, type Meta, type StoryObj } from "@storybook/web-components";
21
+ import {getStorybookHelpers} from "@wc-toolkit/storybook-helpers";
22
+ import customElements from "../../custom-elements.json" with { type: "json" };
23
+ import packageJson from "../../package.json" with { type: "json" };
24
+ import {InputType} from "../../src/or-mwc-input";
25
+ import "../../src/or-mwc-input";
26
+
27
+ const tagName = "or-mwc-input";
28
+ type Story = StoryObj;
29
+ setCustomElementsManifest(customElements);
30
+
31
+ const { events, args, argTypes, template } = getStorybookHelpers(tagName);
32
+
33
+ const meta: Meta = {
34
+ title: "Playground/or-mwc-input/input",
35
+ component: tagName,
36
+ args: args,
37
+ argTypes: argTypes,
38
+ render: storyArgs => template(storyArgs),
39
+ excludeStories: /^[a-z].*/,
40
+ parameters: {
41
+ actions: {
42
+ handles: events
43
+ },
44
+ docs: {
45
+ subtitle: `<${tagName} type="text | number | password">`,
46
+ description: "Inputs collect data from the user."
47
+ }
48
+ }
49
+ };
50
+
51
+ export const Primary: Story = {
52
+ args: {
53
+ type: InputType.TEXT,
54
+ label: "Enter text"
55
+ }
56
+ };
57
+
58
+ export const NumberExample: Story = {
59
+ name: "Number Example",
60
+ parameters: {
61
+ title: "Only allow number input",
62
+ summary: "Require users to select a number, instead of writing a piece of text."
63
+ },
64
+ args: {
65
+ type: InputType.NUMBER,
66
+ label: "Pick a number"
67
+ }
68
+ };
69
+
70
+ export const PasswordExample: Story = {
71
+ name: "Password Example",
72
+ parameters: {
73
+ title: "Using password visibility",
74
+ summary: "If the input needs to be secret, you can use `type='password'` to make the text masked."
75
+ },
76
+ args: {
77
+ type: InputType.PASSWORD,
78
+ label: "Write down your secret",
79
+ value: "password"
80
+ }
81
+ };
82
+
83
+ export const examples: Story[] = [NumberExample, PasswordExample];
84
+
85
+ export {customElements, packageJson};
86
+
87
+ export default meta;
@@ -0,0 +1,66 @@
1
+ /*
2
+ * Copyright 2025, OpenRemote Inc.
3
+ *
4
+ * See the CONTRIBUTORS.txt file in the distribution for a
5
+ * full listing of individual contributors.
6
+ *
7
+ * This program is free software: you can redistribute it and/or modify
8
+ * it under the terms of the GNU Affero General Public License as
9
+ * published by the Free Software Foundation, either version 3 of the
10
+ * License, or (at your option) any later version.
11
+ *
12
+ * This program is distributed in the hope that it will be useful,
13
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
14
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15
+ * GNU Affero General Public License for more details.
16
+ *
17
+ * You should have received a copy of the GNU Affero General Public License
18
+ * along with this program. If not, see <http://www.gnu.org/licenses/>.
19
+ */
20
+ import {setCustomElementsManifest, type Meta, type StoryObj } from "@storybook/web-components";
21
+ import {getStorybookHelpers} from "@wc-toolkit/storybook-helpers";
22
+ import customElements from "../../custom-elements.json" with { type: "json" };
23
+ import packageJson from "../../package.json" with { type: "json" };
24
+ import {InputType} from "../../src/or-mwc-input";
25
+ import "../../src/or-mwc-input";
26
+
27
+ const tagName = "or-mwc-input";
28
+ type Story = StoryObj;
29
+ setCustomElementsManifest(customElements);
30
+
31
+ const { events, args, argTypes, template } = getStorybookHelpers(tagName);
32
+
33
+ const meta: Meta = {
34
+ title: "Playground/or-mwc-input/select",
35
+ component: tagName,
36
+ args: args,
37
+ argTypes: argTypes,
38
+ render: storyArgs => template(storyArgs),
39
+ excludeStories: /^[a-z].*/,
40
+ parameters: {
41
+ actions: {
42
+ handles: events
43
+ },
44
+ docs: {
45
+ subtitle: `<${tagName} type="select">`,
46
+ description: "Selects allow you to choose items from a menu of predefined options.",
47
+ story: {
48
+ height: "240px"
49
+ }
50
+ }
51
+ }
52
+ };
53
+
54
+ export const Primary: Story = {
55
+ args: {
56
+ type: InputType.SELECT,
57
+ label: "Select amount",
58
+ placeHolder: "Select amount",
59
+ options: JSON.stringify(["One", "Two", "Three"]),
60
+ fullWidth: true
61
+ }
62
+ };
63
+
64
+ export {customElements, packageJson};
65
+
66
+ export default meta;
@@ -0,0 +1,69 @@
1
+ /*
2
+ * Copyright 2025, OpenRemote Inc.
3
+ *
4
+ * See the CONTRIBUTORS.txt file in the distribution for a
5
+ * full listing of individual contributors.
6
+ *
7
+ * This program is free software: you can redistribute it and/or modify
8
+ * it under the terms of the GNU Affero General Public License as
9
+ * published by the Free Software Foundation, either version 3 of the
10
+ * License, or (at your option) any later version.
11
+ *
12
+ * This program is distributed in the hope that it will be useful,
13
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
14
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15
+ * GNU Affero General Public License for more details.
16
+ *
17
+ * You should have received a copy of the GNU Affero General Public License
18
+ * along with this program. If not, see <http://www.gnu.org/licenses/>.
19
+ */
20
+ import {setCustomElementsManifest, type Meta, type StoryObj } from "@storybook/web-components";
21
+ import {getStorybookHelpers} from "@wc-toolkit/storybook-helpers";
22
+ import customElements from "../custom-elements.json" with { type: "json" };
23
+ import packageJson from "../package.json" with { type: "json" };
24
+ import "../src/or-mwc-table";
25
+
26
+ const tagName = "or-mwc-table";
27
+ type Story = StoryObj;
28
+ setCustomElementsManifest(customElements);
29
+
30
+ const { events, args, argTypes, template } = getStorybookHelpers(tagName);
31
+
32
+ const meta: Meta = {
33
+ title: "Playground/or-mwc-table",
34
+ component: tagName,
35
+ args: args,
36
+ argTypes: argTypes,
37
+ render: storyArgs => template(storyArgs),
38
+ excludeStories: /^[a-z].*/,
39
+ parameters: {
40
+ actions: {
41
+ handles: events
42
+ },
43
+ docs: {
44
+ subtitle: `<${tagName}>`,
45
+ description: "Used for organizing data rows and columns."
46
+ }
47
+ }
48
+ };
49
+
50
+ export const Primary: Story = {
51
+ args: {
52
+ columns: JSON.stringify([{title: "Column 1"}, {title: "Column 2"}, {title: "Column 3"}]),
53
+ rows: JSON.stringify([
54
+ {content: ["Row 1, Column 1", "Row 1, Column 2", "Row 1, Column 3"]},
55
+ {content: ["Row 2, Column 1", "Row 2, Column 2", "Row 2, Column 3"]}
56
+ ])
57
+ },
58
+ parameters: {
59
+ docs: {
60
+ story: {
61
+ height: "240px"
62
+ }
63
+ }
64
+ }
65
+ };
66
+
67
+ export {customElements, packageJson};
68
+
69
+ export default meta;