@openremote/or-mwc-components 1.8.0-snapshot.20250725074716 → 1.8.0-snapshot.20250725120001
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 +329 -76
- package/lib/or-mwc-drawer.js +114 -10
- package/lib/or-mwc-input.js +1760 -439
- package/lib/or-mwc-list.js +283 -71
- package/lib/or-mwc-menu.js +237 -45
- package/lib/or-mwc-snackbar.js +141 -17
- package/lib/or-mwc-table.js +685 -245
- package/lib/or-mwc-tabs.js +173 -53
- package/lib/style.js +125 -121
- 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-menu.js
CHANGED
|
@@ -1,45 +1,237 @@
|
|
|
1
|
-
var __decorate=this&&this.__decorate
|
|
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
|
-
|
|
1
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
2
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
3
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
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 { css, html, LitElement, unsafeCSS } from "lit";
|
|
8
|
+
import { customElement, property, query } from "lit/decorators.js";
|
|
9
|
+
import { classMap } from 'lit/directives/class-map.js';
|
|
10
|
+
import { MDCMenu } from "@material/menu";
|
|
11
|
+
import { DefaultColor4, DefaultColor8 } from "@openremote/core";
|
|
12
|
+
// @ts-ignore
|
|
13
|
+
import listStyle from "@material/list/dist/mdc.list.css";
|
|
14
|
+
// @ts-ignore
|
|
15
|
+
import menuSurfaceStyle from "@material/menu-surface/dist/mdc.menu-surface.css";
|
|
16
|
+
import { getItemTemplate, getListTemplate, ListType } from "./or-mwc-list";
|
|
17
|
+
import { ref } from 'lit/directives/ref.js';
|
|
18
|
+
// @ts-ignore
|
|
19
|
+
const menuStyle = require("@material/menu/dist/mdc.menu.css");
|
|
20
|
+
export class OrMwcMenuChangedEvent extends CustomEvent {
|
|
21
|
+
constructor(values) {
|
|
22
|
+
super(OrMwcMenuChangedEvent.NAME, {
|
|
23
|
+
detail: values,
|
|
24
|
+
bubbles: true,
|
|
25
|
+
composed: true
|
|
26
|
+
});
|
|
27
|
+
}
|
|
28
|
+
}
|
|
29
|
+
OrMwcMenuChangedEvent.NAME = "or-mwc-menu-changed";
|
|
30
|
+
export class OrMwcMenuClosedEvent extends CustomEvent {
|
|
31
|
+
constructor() {
|
|
32
|
+
super(OrMwcMenuClosedEvent.NAME, {
|
|
33
|
+
bubbles: true,
|
|
34
|
+
composed: true
|
|
35
|
+
});
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
OrMwcMenuClosedEvent.NAME = "or-mwc-menu-closed";
|
|
39
|
+
export function positionMenuAtElement(menu, hostElement) {
|
|
40
|
+
if (!hostElement) {
|
|
41
|
+
hostElement = document.body;
|
|
42
|
+
}
|
|
43
|
+
const rect = hostElement.getBoundingClientRect();
|
|
44
|
+
// Applying a style that is calculated from the runtime coordinates of
|
|
45
|
+
// the host element.
|
|
46
|
+
Object.assign(menu.style, {
|
|
47
|
+
position: 'fixed',
|
|
48
|
+
top: `${rect.bottom}px`,
|
|
49
|
+
left: `${rect.left}px`,
|
|
50
|
+
zIndex: '1000',
|
|
51
|
+
display: 'block'
|
|
52
|
+
});
|
|
53
|
+
return menu;
|
|
54
|
+
}
|
|
55
|
+
export function getContentWithMenuTemplate(content, menuItems, selectedValues, valueChangedCallback, closedCallback, multiSelect = false, translateValues = true, midHeight = false, fullWidth = false, menuId = "menu", fixedToHost = false) {
|
|
56
|
+
let menuRef = null; // Reference to the menu
|
|
57
|
+
const openMenu = (evt) => {
|
|
58
|
+
if (!menuItems) {
|
|
59
|
+
return;
|
|
60
|
+
}
|
|
61
|
+
if (fixedToHost && menuRef) {
|
|
62
|
+
const hostElement = evt.currentTarget;
|
|
63
|
+
// Using run time coordinates to assign a fixed position to the menu
|
|
64
|
+
positionMenuAtElement(menuRef, hostElement);
|
|
65
|
+
}
|
|
66
|
+
evt.currentTarget.parentElement.lastElementChild.open();
|
|
67
|
+
};
|
|
68
|
+
return html `
|
|
69
|
+
<span>
|
|
70
|
+
<span @click="${openMenu}">${content}</span>
|
|
71
|
+
${menuItems ? html `<or-mwc-menu ?multiselect="${multiSelect}" @or-mwc-menu-closed="${() => { if (closedCallback) {
|
|
72
|
+
closedCallback();
|
|
73
|
+
} }}" @or-mwc-menu-changed="${(evt) => { if (valueChangedCallback) {
|
|
74
|
+
valueChangedCallback(evt.detail);
|
|
75
|
+
} }}" .translateValues="${translateValues}" .values="${selectedValues}" .menuItems="${menuItems}" .midHeight="${midHeight}" .fullWidth="${fullWidth}" id="${menuId}" ${ref(el => (menuRef = el))}></or-mwc-menu>` : ``}
|
|
76
|
+
</span>
|
|
77
|
+
`;
|
|
78
|
+
}
|
|
79
|
+
// language=CSS
|
|
80
|
+
const style = css `
|
|
81
|
+
:host {
|
|
82
|
+
white-space: nowrap;
|
|
83
|
+
--internal-or-mwc-input-color: var(--or-mwc-input-color, var(--or-app-color4, ${unsafeCSS(DefaultColor4)}));
|
|
84
|
+
--internal-or-mwc-input-text-color: var(--or-mwc-input-text-color, var(--or-app-color8, ${unsafeCSS(DefaultColor8)}));
|
|
85
|
+
|
|
86
|
+
--mdc-theme-primary: var(--internal-or-mwc-input-color);
|
|
87
|
+
--mdc-theme-on-primary: var(--internal-or-mwc-input-text-color);
|
|
88
|
+
--mdc-theme-secondary: var(--internal-or-mwc-input-color);
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
.mdc-list-item__graphic {
|
|
92
|
+
margin-right: 16px;
|
|
93
|
+
}
|
|
94
|
+
|
|
95
|
+
a {
|
|
96
|
+
text-decoration: none;
|
|
97
|
+
color: rgba(0, 0, 0, 0.87);
|
|
98
|
+
}
|
|
99
|
+
|
|
100
|
+
.mdc-menu-surface-mid-height {
|
|
101
|
+
max-height: calc(45vh - 32px) !important;
|
|
102
|
+
}
|
|
103
|
+
.mdc-menu-surface-full-width {
|
|
104
|
+
width: 100%;
|
|
105
|
+
}
|
|
106
|
+
`;
|
|
107
|
+
let OrMwcMenu = class OrMwcMenu extends LitElement {
|
|
108
|
+
static get styles() {
|
|
109
|
+
return [
|
|
110
|
+
css `${unsafeCSS(listStyle)}`,
|
|
111
|
+
css `${unsafeCSS(menuStyle)}`,
|
|
112
|
+
css `${unsafeCSS(menuSurfaceStyle)}`,
|
|
113
|
+
style
|
|
114
|
+
];
|
|
115
|
+
}
|
|
116
|
+
open() {
|
|
117
|
+
this._mdcComponent.open = true;
|
|
118
|
+
}
|
|
119
|
+
disconnectedCallback() {
|
|
120
|
+
super.disconnectedCallback();
|
|
121
|
+
if (this._mdcComponent) {
|
|
122
|
+
this._mdcComponent.destroy();
|
|
123
|
+
this._mdcComponent = undefined;
|
|
124
|
+
}
|
|
125
|
+
}
|
|
126
|
+
render() {
|
|
127
|
+
if (!this.menuItems || this.menuItems.length === 0) {
|
|
128
|
+
return html ``;
|
|
129
|
+
}
|
|
130
|
+
const content = this.getItemsTemplate(this.menuItems, this.translateValues);
|
|
131
|
+
const isTwoLine = this.menuItems && this.menuItems.some((item) => item && !Array.isArray(item) && !!item.secondaryText);
|
|
132
|
+
const classes = {
|
|
133
|
+
'mdc-menu-surface-mid-height': (this.midHeight ? 1 : 0),
|
|
134
|
+
'mdc-menu-surface-full-width': (this.fullWidth ? 1 : 0)
|
|
135
|
+
};
|
|
136
|
+
return html `
|
|
137
|
+
<div id="wrapper" class="mdc-menu-surface--anchor">
|
|
138
|
+
<div class="mdc-menu mdc-menu-surface ${classMap(classes)}" id="menu" @MDCMenuSurface:closed="${this._onMenuClosed}">
|
|
139
|
+
${getListTemplate(ListType.MULTI_TICK, content, isTwoLine, "menu")}
|
|
140
|
+
</div>
|
|
141
|
+
</div>
|
|
142
|
+
`;
|
|
143
|
+
}
|
|
144
|
+
getItemsTemplate(items, translate) {
|
|
145
|
+
const type = this.multiSelect ? ListType.MULTI_TICK : ListType.PLAIN;
|
|
146
|
+
return html `
|
|
147
|
+
${items.map((item, index) => {
|
|
148
|
+
if (Array.isArray(item)) {
|
|
149
|
+
return html `
|
|
150
|
+
<li>
|
|
151
|
+
<ul class="mdc-menu__selection-group">
|
|
152
|
+
${this.getItemsTemplate(item, translate)}
|
|
153
|
+
</ul>
|
|
154
|
+
</li>
|
|
155
|
+
`;
|
|
156
|
+
}
|
|
157
|
+
return getItemTemplate(item, index, (Array.isArray(this.values) ? this.values : this.values ? [this.values] : []), type, translate, (e, item) => this._itemClicked(e, item));
|
|
158
|
+
})}`;
|
|
159
|
+
}
|
|
160
|
+
firstUpdated(_changedProperties) {
|
|
161
|
+
super.firstUpdated(_changedProperties);
|
|
162
|
+
if (this._mdcElem) {
|
|
163
|
+
this._mdcComponent = new MDCMenu(this._mdcElem);
|
|
164
|
+
// This overrides the standard mdc menu body click capture handler as it doesn't work with webcomponents
|
|
165
|
+
this._mdcComponent.menuSurface_.foundation.handleBodyClick = function (evt) {
|
|
166
|
+
const el = evt.composedPath()[0]; // Use composed path not evt target to work with webcomponents
|
|
167
|
+
if (this.adapter.isElementInContainer(el)) {
|
|
168
|
+
return;
|
|
169
|
+
}
|
|
170
|
+
this.close();
|
|
171
|
+
};
|
|
172
|
+
this._mdcComponent.quickOpen = true;
|
|
173
|
+
}
|
|
174
|
+
}
|
|
175
|
+
updated(_changedProperties) {
|
|
176
|
+
if (_changedProperties.has("visible")) {
|
|
177
|
+
this._mdcComponent.open = this.visible || false;
|
|
178
|
+
}
|
|
179
|
+
}
|
|
180
|
+
_onMenuClosed() {
|
|
181
|
+
this.dispatchEvent(new OrMwcMenuClosedEvent());
|
|
182
|
+
}
|
|
183
|
+
_itemClicked(e, item) {
|
|
184
|
+
e.stopPropagation();
|
|
185
|
+
const value = item.value;
|
|
186
|
+
if (!this.multiSelect) {
|
|
187
|
+
this.values = value;
|
|
188
|
+
this._mdcComponent.open = false;
|
|
189
|
+
}
|
|
190
|
+
else {
|
|
191
|
+
if (!Array.isArray(this.values)) {
|
|
192
|
+
this.values = this.values ? [this.values] : [];
|
|
193
|
+
}
|
|
194
|
+
const index = this.values.findIndex((v) => v === value);
|
|
195
|
+
if (index >= 0) {
|
|
196
|
+
this.values.splice(index, 1);
|
|
197
|
+
}
|
|
198
|
+
else {
|
|
199
|
+
this.values.push(value);
|
|
200
|
+
}
|
|
201
|
+
this.requestUpdate();
|
|
202
|
+
}
|
|
203
|
+
this.dispatchEvent(new OrMwcMenuChangedEvent(this.values));
|
|
204
|
+
}
|
|
205
|
+
};
|
|
206
|
+
__decorate([
|
|
207
|
+
property({ type: Array })
|
|
208
|
+
], OrMwcMenu.prototype, "menuItems", void 0);
|
|
209
|
+
__decorate([
|
|
210
|
+
property({ type: Array })
|
|
211
|
+
], OrMwcMenu.prototype, "values", void 0);
|
|
212
|
+
__decorate([
|
|
213
|
+
property({ type: Boolean, attribute: true })
|
|
214
|
+
], OrMwcMenu.prototype, "multiSelect", void 0);
|
|
215
|
+
__decorate([
|
|
216
|
+
property({ type: Boolean, attribute: true })
|
|
217
|
+
], OrMwcMenu.prototype, "visible", void 0);
|
|
218
|
+
__decorate([
|
|
219
|
+
property({ type: Boolean, attribute: true })
|
|
220
|
+
], OrMwcMenu.prototype, "translateValues", void 0);
|
|
221
|
+
__decorate([
|
|
222
|
+
property({ type: Boolean, attribute: false })
|
|
223
|
+
], OrMwcMenu.prototype, "midHeight", void 0);
|
|
224
|
+
__decorate([
|
|
225
|
+
property({ type: Boolean, attribute: false })
|
|
226
|
+
], OrMwcMenu.prototype, "fullWidth", void 0);
|
|
227
|
+
__decorate([
|
|
228
|
+
query("#wrapper")
|
|
229
|
+
], OrMwcMenu.prototype, "_wrapperElem", void 0);
|
|
230
|
+
__decorate([
|
|
231
|
+
query("#menu")
|
|
232
|
+
], OrMwcMenu.prototype, "_mdcElem", void 0);
|
|
233
|
+
OrMwcMenu = __decorate([
|
|
234
|
+
customElement("or-mwc-menu")
|
|
235
|
+
], OrMwcMenu);
|
|
236
|
+
export { OrMwcMenu };
|
|
237
|
+
//# sourceMappingURL=or-mwc-menu.js.map
|
package/lib/or-mwc-snackbar.js
CHANGED
|
@@ -1,17 +1,141 @@
|
|
|
1
|
-
var __decorate=this&&this.__decorate
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
1
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
2
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
3
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
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 { css, html, LitElement, unsafeCSS } from "lit";
|
|
8
|
+
import { customElement, property, query } from "lit/decorators.js";
|
|
9
|
+
import { MDCSnackbar } from "@material/snackbar";
|
|
10
|
+
const drawerStyle = require("@material/snackbar/dist/mdc.snackbar.css");
|
|
11
|
+
export class OrMwcSnackbarChangedEvent extends CustomEvent {
|
|
12
|
+
constructor(value) {
|
|
13
|
+
super(OrMwcSnackbarChangedEvent.NAME, {
|
|
14
|
+
detail: value,
|
|
15
|
+
bubbles: true,
|
|
16
|
+
composed: true
|
|
17
|
+
});
|
|
18
|
+
}
|
|
19
|
+
}
|
|
20
|
+
OrMwcSnackbarChangedEvent.NAME = "or-mwc-snackbar-changed";
|
|
21
|
+
export function showSnackbar(hostElement, text, buttonText, buttonAction) {
|
|
22
|
+
if (!hostElement) {
|
|
23
|
+
hostElement = OrMwcSnackbar.DialogHostElement || document.body;
|
|
24
|
+
}
|
|
25
|
+
const snackbar = new OrMwcSnackbar();
|
|
26
|
+
snackbar.text = text;
|
|
27
|
+
snackbar.buttonText = buttonText;
|
|
28
|
+
snackbar.buttonAction = buttonAction;
|
|
29
|
+
snackbar.isOpen = true;
|
|
30
|
+
snackbar.addEventListener(OrMwcSnackbarChangedEvent.NAME, (ev) => {
|
|
31
|
+
ev.stopPropagation();
|
|
32
|
+
if (!ev.detail.opened) {
|
|
33
|
+
window.setTimeout(() => {
|
|
34
|
+
if (snackbar.parentElement) {
|
|
35
|
+
snackbar.parentElement.removeChild(snackbar);
|
|
36
|
+
}
|
|
37
|
+
}, 0);
|
|
38
|
+
}
|
|
39
|
+
});
|
|
40
|
+
hostElement.append(snackbar);
|
|
41
|
+
return snackbar;
|
|
42
|
+
}
|
|
43
|
+
let OrMwcSnackbar = class OrMwcSnackbar extends LitElement {
|
|
44
|
+
constructor() {
|
|
45
|
+
super(...arguments);
|
|
46
|
+
this._open = false;
|
|
47
|
+
}
|
|
48
|
+
static get styles() {
|
|
49
|
+
return [
|
|
50
|
+
css `${unsafeCSS(drawerStyle)}`,
|
|
51
|
+
css `
|
|
52
|
+
`
|
|
53
|
+
];
|
|
54
|
+
}
|
|
55
|
+
get isOpen() {
|
|
56
|
+
return this._mdcComponent ? this._mdcComponent.isOpen : false;
|
|
57
|
+
}
|
|
58
|
+
set isOpen(isOpen) {
|
|
59
|
+
this._open = true;
|
|
60
|
+
}
|
|
61
|
+
open() {
|
|
62
|
+
if (this._mdcElem && !this._mdcComponent) {
|
|
63
|
+
this._mdcComponent = new MDCSnackbar(this._mdcElem);
|
|
64
|
+
this._mdcComponent.timeoutMs = this.timeout || 4000;
|
|
65
|
+
}
|
|
66
|
+
if (this._mdcComponent) {
|
|
67
|
+
this._mdcComponent.open();
|
|
68
|
+
}
|
|
69
|
+
}
|
|
70
|
+
close(action) {
|
|
71
|
+
if (this._mdcComponent) {
|
|
72
|
+
this._mdcComponent.close(action);
|
|
73
|
+
}
|
|
74
|
+
}
|
|
75
|
+
disconnectedCallback() {
|
|
76
|
+
super.disconnectedCallback();
|
|
77
|
+
if (this._mdcComponent) {
|
|
78
|
+
this._mdcComponent.destroy();
|
|
79
|
+
this._mdcComponent = undefined;
|
|
80
|
+
}
|
|
81
|
+
}
|
|
82
|
+
render() {
|
|
83
|
+
return html `
|
|
84
|
+
<div id="mdc-snackbar" class="mdc-snackbar" @MDCSnackbar:opened="${() => this.onOpen()}"
|
|
85
|
+
@MDCSnackbar:closed="${(ev) => this.onClose(ev.detail.reason)}">
|
|
86
|
+
<div class="mdc-snackbar__surface" role="status" aria-relevant="additions">
|
|
87
|
+
<div class="mdc-snackbar__label" aria-atomic="false">
|
|
88
|
+
<or-translate value="${this.text}"></or-translate>
|
|
89
|
+
</div>
|
|
90
|
+
${!this.buttonText ? html `` : html `
|
|
91
|
+
<div class="mdc-snackbar__actions" aria-atomic="true">
|
|
92
|
+
<or-mwc-input type="button" class="mdc-button mdc-snackbar__action" label="${this.buttonText}">
|
|
93
|
+
</or-mwc-input>
|
|
94
|
+
</div>
|
|
95
|
+
`}
|
|
96
|
+
</div>
|
|
97
|
+
</div>
|
|
98
|
+
`;
|
|
99
|
+
}
|
|
100
|
+
updated(_changedProperties) {
|
|
101
|
+
super.updated(_changedProperties);
|
|
102
|
+
if (_changedProperties.has("_open") && this._open) {
|
|
103
|
+
this.open();
|
|
104
|
+
}
|
|
105
|
+
}
|
|
106
|
+
onClose(reason) {
|
|
107
|
+
if (this.buttonAction) {
|
|
108
|
+
this.buttonAction();
|
|
109
|
+
}
|
|
110
|
+
this.dispatchChangedEvent({ opened: false, closeReason: reason });
|
|
111
|
+
}
|
|
112
|
+
onOpen() {
|
|
113
|
+
this.dispatchChangedEvent({ opened: true });
|
|
114
|
+
}
|
|
115
|
+
dispatchChangedEvent(detail) {
|
|
116
|
+
this.dispatchEvent(new OrMwcSnackbarChangedEvent(detail));
|
|
117
|
+
}
|
|
118
|
+
};
|
|
119
|
+
__decorate([
|
|
120
|
+
property({ type: String, attribute: false })
|
|
121
|
+
], OrMwcSnackbar.prototype, "text", void 0);
|
|
122
|
+
__decorate([
|
|
123
|
+
property({ type: String })
|
|
124
|
+
], OrMwcSnackbar.prototype, "buttonText", void 0);
|
|
125
|
+
__decorate([
|
|
126
|
+
property({ type: Object, attribute: false })
|
|
127
|
+
], OrMwcSnackbar.prototype, "buttonAction", void 0);
|
|
128
|
+
__decorate([
|
|
129
|
+
property({ type: Number })
|
|
130
|
+
], OrMwcSnackbar.prototype, "timeout", void 0);
|
|
131
|
+
__decorate([
|
|
132
|
+
property({ type: Boolean })
|
|
133
|
+
], OrMwcSnackbar.prototype, "_open", void 0);
|
|
134
|
+
__decorate([
|
|
135
|
+
query("#mdc-snackbar")
|
|
136
|
+
], OrMwcSnackbar.prototype, "_mdcElem", void 0);
|
|
137
|
+
OrMwcSnackbar = __decorate([
|
|
138
|
+
customElement("or-mwc-snackbar")
|
|
139
|
+
], OrMwcSnackbar);
|
|
140
|
+
export { OrMwcSnackbar };
|
|
141
|
+
//# sourceMappingURL=or-mwc-snackbar.js.map
|