@openremote/or-mwc-components 1.8.0-snapshot.20250725120002 → 1.8.0-snapshot.20250728102340
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 +32 -32
- package/build.gradle +19 -19
- package/custom-elements.json +4 -4
- package/lib/or-mwc-dialog.js +76 -329
- package/lib/or-mwc-drawer.js +10 -114
- package/lib/or-mwc-input.js +439 -1760
- package/lib/or-mwc-list.js +71 -283
- package/lib/or-mwc-menu.js +45 -237
- package/lib/or-mwc-snackbar.js +17 -141
- package/lib/or-mwc-table.js +245 -685
- package/lib/or-mwc-tabs.js +53 -173
- package/lib/style.js +121 -125
- package/package.json +5 -5
- package/rspack.config.js +7 -7
- package/src/or-mwc-dialog.ts +374 -374
- package/src/or-mwc-drawer.ts +100 -100
- package/src/or-mwc-input.ts +1876 -1876
- package/src/or-mwc-list.ts +335 -335
- package/src/or-mwc-menu.ts +279 -279
- package/src/or-mwc-snackbar.ts +157 -157
- package/src/or-mwc-table.ts +712 -712
- package/src/or-mwc-tabs.ts +175 -175
- package/src/style.ts +125 -125
- package/tsconfig.json +15 -15
- package/tsconfig.tsbuildinfo +1 -1
package/lib/or-mwc-tabs.js
CHANGED
|
@@ -1,177 +1,57 @@
|
|
|
1
|
-
var __decorate
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
5
|
-
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
6
|
-
};
|
|
7
|
-
import { MDCTabBar } from "@material/tab-bar";
|
|
8
|
-
import { css, html, LitElement, unsafeCSS } from "lit";
|
|
9
|
-
import { customElement, property, state } from "lit/decorators.js";
|
|
10
|
-
import { DefaultColor4, DefaultColor8 } from "@openremote/core";
|
|
11
|
-
import { unsafeHTML } from 'lit/directives/unsafe-html.js';
|
|
12
|
-
// Material Styling import
|
|
13
|
-
const tabStyle = require("@material/tab/dist/mdc.tab.css");
|
|
14
|
-
const tabBarStyle = require("@material/tab-bar/dist/mdc.tab-bar.css");
|
|
15
|
-
const tabIndicatorStyle = require("@material/tab-indicator/dist/mdc.tab-indicator.css");
|
|
16
|
-
const tabScrollerStyle = require("@material/tab-scroller/dist/mdc.tab-scroller.css");
|
|
17
|
-
//language=css
|
|
18
|
-
const tabStyling = css `
|
|
19
|
-
.mdc-tab {
|
|
20
|
-
background: var(--or-app-color4, ${unsafeCSS(DefaultColor4)});
|
|
21
|
-
}
|
|
22
|
-
.mdc-tab .mdc-tab__text-label {
|
|
23
|
-
color: var(--or-app-color8, ${unsafeCSS(DefaultColor8)});
|
|
24
|
-
}
|
|
25
|
-
.mdc-tab .mdc-tab__icon {
|
|
26
|
-
color: var(--or-app-color8, ${unsafeCSS(DefaultColor8)})
|
|
27
|
-
}
|
|
28
|
-
.mdc-tab-indicator .mdc-tab-indicator__content--underline {
|
|
29
|
-
border-color: var(--or-app-color8, ${unsafeCSS(DefaultColor8)})
|
|
30
|
-
}
|
|
31
|
-
.mdc-tab__ripple::before, .mdc-tab__ripple::after {
|
|
32
|
-
background-color: var(--ripplecolor, ${unsafeCSS(DefaultColor8)});
|
|
33
|
-
}
|
|
34
|
-
.mdc-tab-vertical {
|
|
35
|
-
height: 72px !important; /* 72px is original Material spec */
|
|
36
|
-
}
|
|
37
|
-
.mdc-tab-vertical__content {
|
|
38
|
-
flex-direction: column;
|
|
39
|
-
gap: 6px; /* 6px is original Material spec */
|
|
40
|
-
}
|
|
41
|
-
.mdc-tab-vertical__text-label {
|
|
42
|
-
padding-left: 0 !important;
|
|
43
|
-
}
|
|
44
|
-
`;
|
|
45
|
-
/* ----------------- */
|
|
46
|
-
let OrMwcTabs = class OrMwcTabs extends LitElement {
|
|
47
|
-
static get styles() {
|
|
48
|
-
return [unsafeCSS(tabStyle), unsafeCSS(tabBarStyle), unsafeCSS(tabIndicatorStyle), unsafeCSS(tabScrollerStyle), tabStyling];
|
|
1
|
+
var __decorate=this&&this.__decorate||function(t,e,r,a){var o,l=arguments.length,i=l<3?e:null===a?a=Object.getOwnPropertyDescriptor(e,r):a;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)i=Reflect.decorate(t,e,r,a);else for(var c=t.length-1;c>=0;c--)(o=t[c])&&(i=(l<3?o(i):l>3?o(e,r,i):o(e,r))||i);return l>3&&i&&Object.defineProperty(e,r,i),i};import{MDCTabBar as t}from"@material/tab-bar";import{css as e,html as r,LitElement as a,unsafeCSS as o}from"lit";import{customElement as l,property as i,state as c}from"lit/decorators.js";import{DefaultColor4 as s,DefaultColor8 as n}from"@openremote/core";import{unsafeHTML as d}from"lit/directives/unsafe-html.js";let tabStyle=require("@material/tab/dist/mdc.tab.css"),tabBarStyle=require("@material/tab-bar/dist/mdc.tab-bar.css"),tabIndicatorStyle=require("@material/tab-indicator/dist/mdc.tab-indicator.css"),tabScrollerStyle=require("@material/tab-scroller/dist/mdc.tab-scroller.css"),tabStyling=e`
|
|
2
|
+
.mdc-tab {
|
|
3
|
+
background: var(--or-app-color4, ${o(s)});
|
|
49
4
|
}
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
// default values
|
|
53
|
-
if (this.index == null) {
|
|
54
|
-
this.index = 0;
|
|
55
|
-
}
|
|
56
|
-
if (this.items == null) {
|
|
57
|
-
this.items = [];
|
|
58
|
-
}
|
|
59
|
-
if (this.iconPosition == null) {
|
|
60
|
-
this.iconPosition = "left";
|
|
61
|
-
}
|
|
62
|
-
if (this.noScroll == null) {
|
|
63
|
-
this.noScroll = false;
|
|
64
|
-
}
|
|
65
|
-
this.updateComplete.then(() => {
|
|
66
|
-
var _a, _b;
|
|
67
|
-
const tabBarElement = (_a = this.shadowRoot) === null || _a === void 0 ? void 0 : _a.querySelector('.mdc-tab-bar');
|
|
68
|
-
if (tabBarElement != null) {
|
|
69
|
-
this.mdcTabBar = new MDCTabBar(tabBarElement); // init of material component
|
|
70
|
-
this.mdcTabBar.listen("MDCTabBar:activated", (event) => {
|
|
71
|
-
this.index = event.detail.index;
|
|
72
|
-
});
|
|
73
|
-
}
|
|
74
|
-
if (tabBarElement != null) {
|
|
75
|
-
// Adding classes for Icon top position or not.
|
|
76
|
-
if (this.iconPosition === "top") {
|
|
77
|
-
if (((_b = this.items) === null || _b === void 0 ? void 0 : _b.find((item) => { return (item.name != null && item.icon != null); })) != undefined) {
|
|
78
|
-
tabBarElement.querySelectorAll('.mdc-tab').forEach((value) => { value.classList.add('mdc-tab-vertical'); });
|
|
79
|
-
tabBarElement.querySelectorAll('.mdc-tab__content').forEach((value) => { value.classList.add('mdc-tab-vertical__content'); });
|
|
80
|
-
tabBarElement.querySelectorAll('.mdc-tab__text-label').forEach((value) => { value.classList.add('mdc-tab-vertical__text-label'); });
|
|
81
|
-
}
|
|
82
|
-
}
|
|
83
|
-
// Apply colors if set differently
|
|
84
|
-
if (this.bgColor != null) {
|
|
85
|
-
tabBarElement.querySelectorAll('.mdc-tab').forEach((value) => {
|
|
86
|
-
value.style.background = this.bgColor;
|
|
87
|
-
});
|
|
88
|
-
}
|
|
89
|
-
if (this.color != null) {
|
|
90
|
-
tabBarElement.querySelectorAll('.mdc-tab__text-label').forEach((value) => { value.style.color = this.color; });
|
|
91
|
-
tabBarElement.querySelectorAll('.mdc-tab__icon').forEach((value) => { value.style.color = this.color; });
|
|
92
|
-
tabBarElement.querySelectorAll('.mdc-tab-indicator__content--underline').forEach((value) => { value.style.borderColor = this.color; });
|
|
93
|
-
tabBarElement.querySelectorAll('.mdc-tab__ripple').forEach((value) => { value.style.setProperty('--ripplecolor', this.color); });
|
|
94
|
-
}
|
|
95
|
-
}
|
|
96
|
-
});
|
|
5
|
+
.mdc-tab .mdc-tab__text-label {
|
|
6
|
+
color: var(--or-app-color8, ${o(n)});
|
|
97
7
|
}
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
if (changedProperties.has('index') || changedProperties.has('mdcTabBar')) {
|
|
101
|
-
if (this.mdcTabBar != null && this.index != null) {
|
|
102
|
-
this.mdcTabBar.activateTab(this.index);
|
|
103
|
-
this.dispatchEvent(new CustomEvent("activated", { detail: { index: this.index } }));
|
|
104
|
-
}
|
|
105
|
-
}
|
|
8
|
+
.mdc-tab .mdc-tab__icon {
|
|
9
|
+
color: var(--or-app-color8, ${o(n)})
|
|
106
10
|
}
|
|
107
|
-
|
|
108
|
-
var
|
|
109
|
-
let selectedItem;
|
|
110
|
-
if (this.items != null && this.index != null) {
|
|
111
|
-
selectedItem = this.items[this.index];
|
|
112
|
-
}
|
|
113
|
-
return html `
|
|
114
|
-
${typeof (this.styles) === "string" ? html `<style>${this.styles}</style>` : this.styles || ``}
|
|
115
|
-
<div>
|
|
116
|
-
<div class="mdc-tab-bar" role="tablist" id="tab-bar">
|
|
117
|
-
<div class="mdc-tab-scroller">
|
|
118
|
-
<div class="mdc-tab-scroller__scroll-area" style="overflow-x: ${this.noScroll ? 'hidden' : undefined}">
|
|
119
|
-
<div class="mdc-tab-scroller__scroll-content">
|
|
120
|
-
${(_a = this.items) === null || _a === void 0 ? void 0 : _a.map((menuItem => {
|
|
121
|
-
var _a;
|
|
122
|
-
return html `
|
|
123
|
-
<button class="mdc-tab" role="tab" aria-selected="false" tabindex="${(_a = this.items) === null || _a === void 0 ? void 0 : _a.indexOf(menuItem)}">
|
|
124
|
-
<span class="mdc-tab__content">
|
|
125
|
-
${menuItem.icon != null ? html `<or-icon icon="${menuItem.icon}" class="mdc-tab__icon"></or-icon>` : null}
|
|
126
|
-
${menuItem.name != null ? html `<span class="mdc-tab__text-label">${menuItem.name}</span>` : null}
|
|
127
|
-
</span>
|
|
128
|
-
<span class="mdc-tab-indicator">
|
|
129
|
-
<span class="mdc-tab-indicator__content mdc-tab-indicator__content--underline"></span>
|
|
130
|
-
</span>
|
|
131
|
-
<span class="mdc-tab__ripple"></span>
|
|
132
|
-
</button>
|
|
133
|
-
`;
|
|
134
|
-
}))}
|
|
135
|
-
</div>
|
|
136
|
-
</div>
|
|
137
|
-
</div>
|
|
138
|
-
</div>
|
|
139
|
-
<div>
|
|
140
|
-
<div>
|
|
141
|
-
<!-- Content of menu Item. Using either unsafeHTML or HTML depending on input type -->
|
|
142
|
-
${(selectedItem != null && selectedItem.content != null) ? (typeof selectedItem.content == "string" ? unsafeHTML(selectedItem.content) : html `${selectedItem.content}`) : undefined}
|
|
143
|
-
</div>
|
|
144
|
-
</div>
|
|
145
|
-
</div>
|
|
146
|
-
`;
|
|
11
|
+
.mdc-tab-indicator .mdc-tab-indicator__content--underline {
|
|
12
|
+
border-color: var(--or-app-color8, ${o(n)})
|
|
147
13
|
}
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
14
|
+
.mdc-tab__ripple::before, .mdc-tab__ripple::after {
|
|
15
|
+
background-color: var(--ripplecolor, ${o(n)});
|
|
16
|
+
}
|
|
17
|
+
.mdc-tab-vertical {
|
|
18
|
+
height: 72px !important; /* 72px is original Material spec */
|
|
19
|
+
}
|
|
20
|
+
.mdc-tab-vertical__content {
|
|
21
|
+
flex-direction: column;
|
|
22
|
+
gap: 6px; /* 6px is original Material spec */
|
|
23
|
+
}
|
|
24
|
+
.mdc-tab-vertical__text-label {
|
|
25
|
+
padding-left: 0 !important;
|
|
26
|
+
}
|
|
27
|
+
`,OrMwcTabs=class extends a{static get styles(){return[o(tabStyle),o(tabBarStyle),o(tabIndicatorStyle),o(tabScrollerStyle),tabStyling]}constructor(){super(),null==this.index&&(this.index=0),null==this.items&&(this.items=[]),null==this.iconPosition&&(this.iconPosition="left"),null==this.noScroll&&(this.noScroll=!1),this.updateComplete.then(()=>{var e,r;let a=null==(e=this.shadowRoot)?void 0:e.querySelector(".mdc-tab-bar");null!=a&&(this.mdcTabBar=new t(a),this.mdcTabBar.listen("MDCTabBar:activated",t=>{this.index=t.detail.index})),null!=a&&("top"===this.iconPosition&&(null==(r=this.items)?void 0:r.find(t=>null!=t.name&&null!=t.icon))!=void 0&&(a.querySelectorAll(".mdc-tab").forEach(t=>{t.classList.add("mdc-tab-vertical")}),a.querySelectorAll(".mdc-tab__content").forEach(t=>{t.classList.add("mdc-tab-vertical__content")}),a.querySelectorAll(".mdc-tab__text-label").forEach(t=>{t.classList.add("mdc-tab-vertical__text-label")})),null!=this.bgColor&&a.querySelectorAll(".mdc-tab").forEach(t=>{t.style.background=this.bgColor}),null!=this.color&&(a.querySelectorAll(".mdc-tab__text-label").forEach(t=>{t.style.color=this.color}),a.querySelectorAll(".mdc-tab__icon").forEach(t=>{t.style.color=this.color}),a.querySelectorAll(".mdc-tab-indicator__content--underline").forEach(t=>{t.style.borderColor=this.color}),a.querySelectorAll(".mdc-tab__ripple").forEach(t=>{t.style.setProperty("--ripplecolor",this.color)})))})}updated(t){(t.has("index")||t.has("mdcTabBar"))&&null!=this.mdcTabBar&&null!=this.index&&(this.mdcTabBar.activateTab(this.index),this.dispatchEvent(new CustomEvent("activated",{detail:{index:this.index}})))}render(){var t;let e;return null!=this.items&&null!=this.index&&(e=this.items[this.index]),r`
|
|
28
|
+
${"string"==typeof this.styles?r`<style>${this.styles}</style>`:this.styles||""}
|
|
29
|
+
<div>
|
|
30
|
+
<div class="mdc-tab-bar" role="tablist" id="tab-bar">
|
|
31
|
+
<div class="mdc-tab-scroller">
|
|
32
|
+
<div class="mdc-tab-scroller__scroll-area" style="overflow-x: ${this.noScroll?"hidden":void 0}">
|
|
33
|
+
<div class="mdc-tab-scroller__scroll-content">
|
|
34
|
+
${null==(t=this.items)?void 0:t.map(t=>{var e;return r`
|
|
35
|
+
<button class="mdc-tab" role="tab" aria-selected="false" tabindex="${null==(e=this.items)?void 0:e.indexOf(t)}">
|
|
36
|
+
<span class="mdc-tab__content">
|
|
37
|
+
${null!=t.icon?r`<or-icon icon="${t.icon}" class="mdc-tab__icon"></or-icon>`:null}
|
|
38
|
+
${null!=t.name?r`<span class="mdc-tab__text-label">${t.name}</span>`:null}
|
|
39
|
+
</span>
|
|
40
|
+
<span class="mdc-tab-indicator">
|
|
41
|
+
<span class="mdc-tab-indicator__content mdc-tab-indicator__content--underline"></span>
|
|
42
|
+
</span>
|
|
43
|
+
<span class="mdc-tab__ripple"></span>
|
|
44
|
+
</button>
|
|
45
|
+
`})}
|
|
46
|
+
</div>
|
|
47
|
+
</div>
|
|
48
|
+
</div>
|
|
49
|
+
</div>
|
|
50
|
+
<div>
|
|
51
|
+
<div>
|
|
52
|
+
<!-- Content of menu Item. Using either unsafeHTML or HTML depending on input type -->
|
|
53
|
+
${null!=e&&null!=e.content?"string"==typeof e.content?d(e.content):r`${e.content}`:void 0}
|
|
54
|
+
</div>
|
|
55
|
+
</div>
|
|
56
|
+
</div>
|
|
57
|
+
`}};__decorate([i({type:Number})],OrMwcTabs.prototype,"index",void 0),__decorate([i({type:Array})],OrMwcTabs.prototype,"items",void 0),__decorate([i({type:String})],OrMwcTabs.prototype,"iconPosition",void 0),__decorate([i({type:Boolean})],OrMwcTabs.prototype,"noScroll",void 0),__decorate([i({type:String})],OrMwcTabs.prototype,"bgColor",void 0),__decorate([i({type:String})],OrMwcTabs.prototype,"color",void 0),__decorate([i()],OrMwcTabs.prototype,"styles",void 0),__decorate([c()],OrMwcTabs.prototype,"mdcTabBar",void 0),OrMwcTabs=__decorate([l("or-mwc-tabs")],OrMwcTabs);export{OrMwcTabs};
|
package/lib/style.js
CHANGED
|
@@ -1,125 +1,121 @@
|
|
|
1
|
-
import
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
transform: rotate(
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
}
|
|
76
|
-
|
|
77
|
-
transform: rotate(
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
}
|
|
83
|
-
|
|
84
|
-
transform: rotate(
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
}
|
|
90
|
-
|
|
91
|
-
transform: rotate(
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
}
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
}
|
|
106
|
-
29.
|
|
107
|
-
border-left-color:
|
|
108
|
-
}
|
|
109
|
-
|
|
110
|
-
border-
|
|
111
|
-
}
|
|
112
|
-
64.
|
|
113
|
-
border-bottom-color:
|
|
114
|
-
}
|
|
115
|
-
|
|
116
|
-
border-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
}
|
|
123
|
-
}
|
|
124
|
-
`;
|
|
125
|
-
//# sourceMappingURL=style.js.map
|
|
1
|
+
import{css as r,unsafeCSS as e}from"lit";import{DefaultColor4 as a}from"@openremote/core";export const progressCircular=r`
|
|
2
|
+
|
|
3
|
+
/* https://codepen.io/finnhvman/pen/bmNdNr */
|
|
4
|
+
.pure-material-progress-circular {
|
|
5
|
+
-webkit-appearance: none;
|
|
6
|
+
-moz-appearance: none;
|
|
7
|
+
appearance: none;
|
|
8
|
+
box-sizing: border-box;
|
|
9
|
+
border: none;
|
|
10
|
+
border-radius: 50%;
|
|
11
|
+
padding: 0.25em;
|
|
12
|
+
width: 3em;
|
|
13
|
+
height: 3em;
|
|
14
|
+
color: var(--or-app-color4, ${e(a)});
|
|
15
|
+
background-color: transparent;
|
|
16
|
+
font-size: 16px;
|
|
17
|
+
overflow: hidden;
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
.pure-material-progress-circular::-webkit-progress-bar {
|
|
21
|
+
background-color: transparent;
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
/* Indeterminate */
|
|
25
|
+
.pure-material-progress-circular:indeterminate {
|
|
26
|
+
-webkit-mask-image: linear-gradient(transparent 50%, black 50%), linear-gradient(to right, transparent 50%, black 50%);
|
|
27
|
+
mask-image: linear-gradient(transparent 50%, black 50%), linear-gradient(to right, transparent 50%, black 50%);
|
|
28
|
+
animation: pure-material-progress-circular 6s infinite cubic-bezier(0.3, 0.6, 1, 1);
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
:-ms-lang(x), .pure-material-progress-circular:indeterminate {
|
|
32
|
+
animation: none;
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
.pure-material-progress-circular:indeterminate::before,
|
|
36
|
+
.pure-material-progress-circular:indeterminate::-webkit-progress-value {
|
|
37
|
+
content: "";
|
|
38
|
+
display: block;
|
|
39
|
+
box-sizing: border-box;
|
|
40
|
+
margin-bottom: 0.25em;
|
|
41
|
+
border: solid 0.25em transparent;
|
|
42
|
+
border-top-color: currentColor;
|
|
43
|
+
border-radius: 50%;
|
|
44
|
+
width: 100% !important;
|
|
45
|
+
height: 100%;
|
|
46
|
+
background-color: transparent;
|
|
47
|
+
animation: pure-material-progress-circular-pseudo 0.75s infinite linear alternate;
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
.pure-material-progress-circular:indeterminate::-moz-progress-bar {
|
|
51
|
+
box-sizing: border-box;
|
|
52
|
+
border: solid 0.25em transparent;
|
|
53
|
+
border-top-color: currentColor;
|
|
54
|
+
border-radius: 50%;
|
|
55
|
+
width: 100%;
|
|
56
|
+
height: 100%;
|
|
57
|
+
background-color: transparent;
|
|
58
|
+
animation: pure-material-progress-circular-pseudo 0.75s infinite linear alternate;
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
.pure-material-progress-circular:indeterminate::-ms-fill {
|
|
62
|
+
animation-name: -ms-ring;
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
@keyframes pure-material-progress-circular {
|
|
66
|
+
0% {
|
|
67
|
+
transform: rotate(0deg);
|
|
68
|
+
}
|
|
69
|
+
12.5% {
|
|
70
|
+
transform: rotate(180deg);
|
|
71
|
+
animation-timing-function: linear;
|
|
72
|
+
}
|
|
73
|
+
25% {
|
|
74
|
+
transform: rotate(630deg);
|
|
75
|
+
}
|
|
76
|
+
37.5% {
|
|
77
|
+
transform: rotate(810deg);
|
|
78
|
+
animation-timing-function: linear;
|
|
79
|
+
}
|
|
80
|
+
50% {
|
|
81
|
+
transform: rotate(1260deg);
|
|
82
|
+
}
|
|
83
|
+
62.5% {
|
|
84
|
+
transform: rotate(1440deg);
|
|
85
|
+
animation-timing-function: linear;
|
|
86
|
+
}
|
|
87
|
+
75% {
|
|
88
|
+
transform: rotate(1890deg);
|
|
89
|
+
}
|
|
90
|
+
87.5% {
|
|
91
|
+
transform: rotate(2070deg);
|
|
92
|
+
animation-timing-function: linear;
|
|
93
|
+
}
|
|
94
|
+
100% {
|
|
95
|
+
transform: rotate(2520deg);
|
|
96
|
+
}
|
|
97
|
+
}
|
|
98
|
+
|
|
99
|
+
@keyframes pure-material-progress-circular-pseudo {
|
|
100
|
+
0% {
|
|
101
|
+
transform: rotate(-30deg);
|
|
102
|
+
}
|
|
103
|
+
29.4% {
|
|
104
|
+
border-left-color: transparent;
|
|
105
|
+
}
|
|
106
|
+
29.41% {
|
|
107
|
+
border-left-color: currentColor;
|
|
108
|
+
}
|
|
109
|
+
64.7% {
|
|
110
|
+
border-bottom-color: transparent;
|
|
111
|
+
}
|
|
112
|
+
64.71% {
|
|
113
|
+
border-bottom-color: currentColor;
|
|
114
|
+
}
|
|
115
|
+
100% {
|
|
116
|
+
border-left-color: currentColor;
|
|
117
|
+
border-bottom-color: currentColor;
|
|
118
|
+
transform: rotate(225deg);
|
|
119
|
+
}
|
|
120
|
+
}
|
|
121
|
+
`;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@openremote/or-mwc-components",
|
|
3
|
-
"version": "1.8.0-snapshot.
|
|
3
|
+
"version": "1.8.0-snapshot.20250728102340",
|
|
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",
|
|
@@ -44,13 +44,13 @@
|
|
|
44
44
|
"@material/switch": "^9.0.0",
|
|
45
45
|
"@material/tab-bar": "^9.0.0",
|
|
46
46
|
"@material/textfield": "^9.0.0",
|
|
47
|
-
"@openremote/core": "1.8.0-snapshot.
|
|
48
|
-
"@openremote/or-icon": "1.8.0-snapshot.
|
|
49
|
-
"@openremote/or-translate": "1.8.0-snapshot.
|
|
47
|
+
"@openremote/core": "1.8.0-snapshot.20250728102340",
|
|
48
|
+
"@openremote/or-icon": "1.8.0-snapshot.20250728102340",
|
|
49
|
+
"@openremote/or-translate": "1.8.0-snapshot.20250728102340",
|
|
50
50
|
"lit": "^2.0.2"
|
|
51
51
|
},
|
|
52
52
|
"devDependencies": {
|
|
53
|
-
"@openremote/util": "1.8.0-snapshot.
|
|
53
|
+
"@openremote/util": "1.8.0-snapshot.20250728102340"
|
|
54
54
|
},
|
|
55
55
|
"publishConfig": {
|
|
56
56
|
"access": "public"
|
package/rspack.config.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
const util = require("@openremote/util");
|
|
2
|
-
|
|
3
|
-
bundles = {
|
|
4
|
-
"index.bundle": undefined
|
|
5
|
-
};
|
|
6
|
-
|
|
7
|
-
module.exports = util.generateExports(__dirname);
|
|
1
|
+
const util = require("@openremote/util");
|
|
2
|
+
|
|
3
|
+
bundles = {
|
|
4
|
+
"index.bundle": undefined
|
|
5
|
+
};
|
|
6
|
+
|
|
7
|
+
module.exports = util.generateExports(__dirname);
|