@record-evolution/widget-form 1.0.2
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 +108 -0
- package/dist/src/widget-form.d.ts +44 -0
- package/dist/tsconfig.tsbuildinfo +1 -0
- package/dist/widget-form.js +1355 -0
- package/dist/widget-form.js.map +1 -0
- package/package.json +66 -0
- package/src/default-data.json +74 -0
- package/src/definition-schema.d.ts +90 -0
- package/src/definition-schema.json +150 -0
- package/src/widget-form.ts +439 -0
|
@@ -0,0 +1,1355 @@
|
|
|
1
|
+
/* @license Copyright (c) 2025 Ironflock GmbH. All rights reserved.*/
|
|
2
|
+
import '@material/web/fab/fab.js';
|
|
3
|
+
import '@material/web/icon/icon.js';
|
|
4
|
+
import '@material/web/dialog/dialog.js';
|
|
5
|
+
import '@material/web/button/text-button.js';
|
|
6
|
+
import '@material/web/button/outlined-button.js';
|
|
7
|
+
import '@material/web/button/filled-button.js';
|
|
8
|
+
import '@material/web/textfield/filled-text-field.js';
|
|
9
|
+
import '@material/web/checkbox/checkbox.js';
|
|
10
|
+
import '@material/web/select/filled-select.js';
|
|
11
|
+
import '@material/web/select/select-option.js';
|
|
12
|
+
|
|
13
|
+
/******************************************************************************
|
|
14
|
+
Copyright (c) Microsoft Corporation.
|
|
15
|
+
|
|
16
|
+
Permission to use, copy, modify, and/or distribute this software for any
|
|
17
|
+
purpose with or without fee is hereby granted.
|
|
18
|
+
|
|
19
|
+
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
|
|
20
|
+
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
|
|
21
|
+
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
|
|
22
|
+
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
|
|
23
|
+
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
|
24
|
+
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
25
|
+
PERFORMANCE OF THIS SOFTWARE.
|
|
26
|
+
***************************************************************************** */
|
|
27
|
+
/* global Reflect, Promise, SuppressedError, Symbol, Iterator */
|
|
28
|
+
|
|
29
|
+
function __decorate(decorators, target, key, desc) {
|
|
30
|
+
var c = arguments.length,
|
|
31
|
+
r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc,
|
|
32
|
+
d;
|
|
33
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);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;
|
|
34
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
35
|
+
}
|
|
36
|
+
typeof SuppressedError === "function" ? SuppressedError : function (error, suppressed, message) {
|
|
37
|
+
var e = new Error(message);
|
|
38
|
+
return e.name = "SuppressedError", e.error = error, e.suppressed = suppressed, e;
|
|
39
|
+
};
|
|
40
|
+
|
|
41
|
+
/**
|
|
42
|
+
* @license
|
|
43
|
+
* Copyright 2019 Google LLC
|
|
44
|
+
* SPDX-License-Identifier: BSD-3-Clause
|
|
45
|
+
*/
|
|
46
|
+
const t$4 = globalThis,
|
|
47
|
+
e$5 = t$4.ShadowRoot && (void 0 === t$4.ShadyCSS || t$4.ShadyCSS.nativeShadow) && "adoptedStyleSheets" in Document.prototype && "replace" in CSSStyleSheet.prototype,
|
|
48
|
+
s$3 = Symbol(),
|
|
49
|
+
o$4 = new WeakMap();
|
|
50
|
+
let n$3 = class n {
|
|
51
|
+
constructor(t, e, o) {
|
|
52
|
+
if (this._$cssResult$ = true, o !== s$3) throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");
|
|
53
|
+
this.cssText = t, this.t = e;
|
|
54
|
+
}
|
|
55
|
+
get styleSheet() {
|
|
56
|
+
let t = this.o;
|
|
57
|
+
const s = this.t;
|
|
58
|
+
if (e$5 && void 0 === t) {
|
|
59
|
+
const e = void 0 !== s && 1 === s.length;
|
|
60
|
+
e && (t = o$4.get(s)), void 0 === t && ((this.o = t = new CSSStyleSheet()).replaceSync(this.cssText), e && o$4.set(s, t));
|
|
61
|
+
}
|
|
62
|
+
return t;
|
|
63
|
+
}
|
|
64
|
+
toString() {
|
|
65
|
+
return this.cssText;
|
|
66
|
+
}
|
|
67
|
+
};
|
|
68
|
+
const r$5 = t => new n$3("string" == typeof t ? t : t + "", void 0, s$3),
|
|
69
|
+
i$4 = (t, ...e) => {
|
|
70
|
+
const o = 1 === t.length ? t[0] : e.reduce((e, s, o) => e + (t => {
|
|
71
|
+
if (true === t._$cssResult$) return t.cssText;
|
|
72
|
+
if ("number" == typeof t) return t;
|
|
73
|
+
throw Error("Value passed to 'css' function must be a 'css' function result: " + t + ". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.");
|
|
74
|
+
})(s) + t[o + 1], t[0]);
|
|
75
|
+
return new n$3(o, t, s$3);
|
|
76
|
+
},
|
|
77
|
+
S$1 = (s, o) => {
|
|
78
|
+
if (e$5) s.adoptedStyleSheets = o.map(t => t instanceof CSSStyleSheet ? t : t.styleSheet);else for (const e of o) {
|
|
79
|
+
const o = document.createElement("style"),
|
|
80
|
+
n = t$4.litNonce;
|
|
81
|
+
void 0 !== n && o.setAttribute("nonce", n), o.textContent = e.cssText, s.appendChild(o);
|
|
82
|
+
}
|
|
83
|
+
},
|
|
84
|
+
c$3 = e$5 ? t => t : t => t instanceof CSSStyleSheet ? (t => {
|
|
85
|
+
let e = "";
|
|
86
|
+
for (const s of t.cssRules) e += s.cssText;
|
|
87
|
+
return r$5(e);
|
|
88
|
+
})(t) : t;
|
|
89
|
+
|
|
90
|
+
/**
|
|
91
|
+
* @license
|
|
92
|
+
* Copyright 2017 Google LLC
|
|
93
|
+
* SPDX-License-Identifier: BSD-3-Clause
|
|
94
|
+
*/
|
|
95
|
+
const {
|
|
96
|
+
is: i$3,
|
|
97
|
+
defineProperty: e$4,
|
|
98
|
+
getOwnPropertyDescriptor: h$1,
|
|
99
|
+
getOwnPropertyNames: r$4,
|
|
100
|
+
getOwnPropertySymbols: o$3,
|
|
101
|
+
getPrototypeOf: n$2
|
|
102
|
+
} = Object,
|
|
103
|
+
a$1 = globalThis,
|
|
104
|
+
c$2 = a$1.trustedTypes,
|
|
105
|
+
l$1 = c$2 ? c$2.emptyScript : "",
|
|
106
|
+
p$2 = a$1.reactiveElementPolyfillSupport,
|
|
107
|
+
d$1 = (t, s) => t,
|
|
108
|
+
u$3 = {
|
|
109
|
+
toAttribute(t, s) {
|
|
110
|
+
switch (s) {
|
|
111
|
+
case Boolean:
|
|
112
|
+
t = t ? l$1 : null;
|
|
113
|
+
break;
|
|
114
|
+
case Object:
|
|
115
|
+
case Array:
|
|
116
|
+
t = null == t ? t : JSON.stringify(t);
|
|
117
|
+
}
|
|
118
|
+
return t;
|
|
119
|
+
},
|
|
120
|
+
fromAttribute(t, s) {
|
|
121
|
+
let i = t;
|
|
122
|
+
switch (s) {
|
|
123
|
+
case Boolean:
|
|
124
|
+
i = null !== t;
|
|
125
|
+
break;
|
|
126
|
+
case Number:
|
|
127
|
+
i = null === t ? null : Number(t);
|
|
128
|
+
break;
|
|
129
|
+
case Object:
|
|
130
|
+
case Array:
|
|
131
|
+
try {
|
|
132
|
+
i = JSON.parse(t);
|
|
133
|
+
} catch (t) {
|
|
134
|
+
i = null;
|
|
135
|
+
}
|
|
136
|
+
}
|
|
137
|
+
return i;
|
|
138
|
+
}
|
|
139
|
+
},
|
|
140
|
+
f$1 = (t, s) => !i$3(t, s),
|
|
141
|
+
b = {
|
|
142
|
+
attribute: true,
|
|
143
|
+
type: String,
|
|
144
|
+
converter: u$3,
|
|
145
|
+
reflect: false,
|
|
146
|
+
useDefault: false,
|
|
147
|
+
hasChanged: f$1
|
|
148
|
+
};
|
|
149
|
+
Symbol.metadata ??= Symbol("metadata"), a$1.litPropertyMetadata ??= new WeakMap();
|
|
150
|
+
let y$1 = class y extends HTMLElement {
|
|
151
|
+
static addInitializer(t) {
|
|
152
|
+
this._$Ei(), (this.l ??= []).push(t);
|
|
153
|
+
}
|
|
154
|
+
static get observedAttributes() {
|
|
155
|
+
return this.finalize(), this._$Eh && [...this._$Eh.keys()];
|
|
156
|
+
}
|
|
157
|
+
static createProperty(t, s = b) {
|
|
158
|
+
if (s.state && (s.attribute = false), this._$Ei(), this.prototype.hasOwnProperty(t) && ((s = Object.create(s)).wrapped = true), this.elementProperties.set(t, s), !s.noAccessor) {
|
|
159
|
+
const i = Symbol(),
|
|
160
|
+
h = this.getPropertyDescriptor(t, i, s);
|
|
161
|
+
void 0 !== h && e$4(this.prototype, t, h);
|
|
162
|
+
}
|
|
163
|
+
}
|
|
164
|
+
static getPropertyDescriptor(t, s, i) {
|
|
165
|
+
const {
|
|
166
|
+
get: e,
|
|
167
|
+
set: r
|
|
168
|
+
} = h$1(this.prototype, t) ?? {
|
|
169
|
+
get() {
|
|
170
|
+
return this[s];
|
|
171
|
+
},
|
|
172
|
+
set(t) {
|
|
173
|
+
this[s] = t;
|
|
174
|
+
}
|
|
175
|
+
};
|
|
176
|
+
return {
|
|
177
|
+
get: e,
|
|
178
|
+
set(s) {
|
|
179
|
+
const h = e?.call(this);
|
|
180
|
+
r?.call(this, s), this.requestUpdate(t, h, i);
|
|
181
|
+
},
|
|
182
|
+
configurable: true,
|
|
183
|
+
enumerable: true
|
|
184
|
+
};
|
|
185
|
+
}
|
|
186
|
+
static getPropertyOptions(t) {
|
|
187
|
+
return this.elementProperties.get(t) ?? b;
|
|
188
|
+
}
|
|
189
|
+
static _$Ei() {
|
|
190
|
+
if (this.hasOwnProperty(d$1("elementProperties"))) return;
|
|
191
|
+
const t = n$2(this);
|
|
192
|
+
t.finalize(), void 0 !== t.l && (this.l = [...t.l]), this.elementProperties = new Map(t.elementProperties);
|
|
193
|
+
}
|
|
194
|
+
static finalize() {
|
|
195
|
+
if (this.hasOwnProperty(d$1("finalized"))) return;
|
|
196
|
+
if (this.finalized = true, this._$Ei(), this.hasOwnProperty(d$1("properties"))) {
|
|
197
|
+
const t = this.properties,
|
|
198
|
+
s = [...r$4(t), ...o$3(t)];
|
|
199
|
+
for (const i of s) this.createProperty(i, t[i]);
|
|
200
|
+
}
|
|
201
|
+
const t = this[Symbol.metadata];
|
|
202
|
+
if (null !== t) {
|
|
203
|
+
const s = litPropertyMetadata.get(t);
|
|
204
|
+
if (void 0 !== s) for (const [t, i] of s) this.elementProperties.set(t, i);
|
|
205
|
+
}
|
|
206
|
+
this._$Eh = new Map();
|
|
207
|
+
for (const [t, s] of this.elementProperties) {
|
|
208
|
+
const i = this._$Eu(t, s);
|
|
209
|
+
void 0 !== i && this._$Eh.set(i, t);
|
|
210
|
+
}
|
|
211
|
+
this.elementStyles = this.finalizeStyles(this.styles);
|
|
212
|
+
}
|
|
213
|
+
static finalizeStyles(s) {
|
|
214
|
+
const i = [];
|
|
215
|
+
if (Array.isArray(s)) {
|
|
216
|
+
const e = new Set(s.flat(1 / 0).reverse());
|
|
217
|
+
for (const s of e) i.unshift(c$3(s));
|
|
218
|
+
} else void 0 !== s && i.push(c$3(s));
|
|
219
|
+
return i;
|
|
220
|
+
}
|
|
221
|
+
static _$Eu(t, s) {
|
|
222
|
+
const i = s.attribute;
|
|
223
|
+
return false === i ? void 0 : "string" == typeof i ? i : "string" == typeof t ? t.toLowerCase() : void 0;
|
|
224
|
+
}
|
|
225
|
+
constructor() {
|
|
226
|
+
super(), this._$Ep = void 0, this.isUpdatePending = false, this.hasUpdated = false, this._$Em = null, this._$Ev();
|
|
227
|
+
}
|
|
228
|
+
_$Ev() {
|
|
229
|
+
this._$ES = new Promise(t => this.enableUpdating = t), this._$AL = new Map(), this._$E_(), this.requestUpdate(), this.constructor.l?.forEach(t => t(this));
|
|
230
|
+
}
|
|
231
|
+
addController(t) {
|
|
232
|
+
(this._$EO ??= new Set()).add(t), void 0 !== this.renderRoot && this.isConnected && t.hostConnected?.();
|
|
233
|
+
}
|
|
234
|
+
removeController(t) {
|
|
235
|
+
this._$EO?.delete(t);
|
|
236
|
+
}
|
|
237
|
+
_$E_() {
|
|
238
|
+
const t = new Map(),
|
|
239
|
+
s = this.constructor.elementProperties;
|
|
240
|
+
for (const i of s.keys()) this.hasOwnProperty(i) && (t.set(i, this[i]), delete this[i]);
|
|
241
|
+
t.size > 0 && (this._$Ep = t);
|
|
242
|
+
}
|
|
243
|
+
createRenderRoot() {
|
|
244
|
+
const t = this.shadowRoot ?? this.attachShadow(this.constructor.shadowRootOptions);
|
|
245
|
+
return S$1(t, this.constructor.elementStyles), t;
|
|
246
|
+
}
|
|
247
|
+
connectedCallback() {
|
|
248
|
+
this.renderRoot ??= this.createRenderRoot(), this.enableUpdating(true), this._$EO?.forEach(t => t.hostConnected?.());
|
|
249
|
+
}
|
|
250
|
+
enableUpdating(t) {}
|
|
251
|
+
disconnectedCallback() {
|
|
252
|
+
this._$EO?.forEach(t => t.hostDisconnected?.());
|
|
253
|
+
}
|
|
254
|
+
attributeChangedCallback(t, s, i) {
|
|
255
|
+
this._$AK(t, i);
|
|
256
|
+
}
|
|
257
|
+
_$ET(t, s) {
|
|
258
|
+
const i = this.constructor.elementProperties.get(t),
|
|
259
|
+
e = this.constructor._$Eu(t, i);
|
|
260
|
+
if (void 0 !== e && true === i.reflect) {
|
|
261
|
+
const h = (void 0 !== i.converter?.toAttribute ? i.converter : u$3).toAttribute(s, i.type);
|
|
262
|
+
this._$Em = t, null == h ? this.removeAttribute(e) : this.setAttribute(e, h), this._$Em = null;
|
|
263
|
+
}
|
|
264
|
+
}
|
|
265
|
+
_$AK(t, s) {
|
|
266
|
+
const i = this.constructor,
|
|
267
|
+
e = i._$Eh.get(t);
|
|
268
|
+
if (void 0 !== e && this._$Em !== e) {
|
|
269
|
+
const t = i.getPropertyOptions(e),
|
|
270
|
+
h = "function" == typeof t.converter ? {
|
|
271
|
+
fromAttribute: t.converter
|
|
272
|
+
} : void 0 !== t.converter?.fromAttribute ? t.converter : u$3;
|
|
273
|
+
this._$Em = e, this[e] = h.fromAttribute(s, t.type) ?? this._$Ej?.get(e) ?? null, this._$Em = null;
|
|
274
|
+
}
|
|
275
|
+
}
|
|
276
|
+
requestUpdate(t, s, i) {
|
|
277
|
+
if (void 0 !== t) {
|
|
278
|
+
const e = this.constructor,
|
|
279
|
+
h = this[t];
|
|
280
|
+
if (i ??= e.getPropertyOptions(t), !((i.hasChanged ?? f$1)(h, s) || i.useDefault && i.reflect && h === this._$Ej?.get(t) && !this.hasAttribute(e._$Eu(t, i)))) return;
|
|
281
|
+
this.C(t, s, i);
|
|
282
|
+
}
|
|
283
|
+
false === this.isUpdatePending && (this._$ES = this._$EP());
|
|
284
|
+
}
|
|
285
|
+
C(t, s, {
|
|
286
|
+
useDefault: i,
|
|
287
|
+
reflect: e,
|
|
288
|
+
wrapped: h
|
|
289
|
+
}, r) {
|
|
290
|
+
i && !(this._$Ej ??= new Map()).has(t) && (this._$Ej.set(t, r ?? s ?? this[t]), true !== h || void 0 !== r) || (this._$AL.has(t) || (this.hasUpdated || i || (s = void 0), this._$AL.set(t, s)), true === e && this._$Em !== t && (this._$Eq ??= new Set()).add(t));
|
|
291
|
+
}
|
|
292
|
+
async _$EP() {
|
|
293
|
+
this.isUpdatePending = true;
|
|
294
|
+
try {
|
|
295
|
+
await this._$ES;
|
|
296
|
+
} catch (t) {
|
|
297
|
+
Promise.reject(t);
|
|
298
|
+
}
|
|
299
|
+
const t = this.scheduleUpdate();
|
|
300
|
+
return null != t && (await t), !this.isUpdatePending;
|
|
301
|
+
}
|
|
302
|
+
scheduleUpdate() {
|
|
303
|
+
return this.performUpdate();
|
|
304
|
+
}
|
|
305
|
+
performUpdate() {
|
|
306
|
+
if (!this.isUpdatePending) return;
|
|
307
|
+
if (!this.hasUpdated) {
|
|
308
|
+
if (this.renderRoot ??= this.createRenderRoot(), this._$Ep) {
|
|
309
|
+
for (const [t, s] of this._$Ep) this[t] = s;
|
|
310
|
+
this._$Ep = void 0;
|
|
311
|
+
}
|
|
312
|
+
const t = this.constructor.elementProperties;
|
|
313
|
+
if (t.size > 0) for (const [s, i] of t) {
|
|
314
|
+
const {
|
|
315
|
+
wrapped: t
|
|
316
|
+
} = i,
|
|
317
|
+
e = this[s];
|
|
318
|
+
true !== t || this._$AL.has(s) || void 0 === e || this.C(s, void 0, i, e);
|
|
319
|
+
}
|
|
320
|
+
}
|
|
321
|
+
let t = false;
|
|
322
|
+
const s = this._$AL;
|
|
323
|
+
try {
|
|
324
|
+
t = this.shouldUpdate(s), t ? (this.willUpdate(s), this._$EO?.forEach(t => t.hostUpdate?.()), this.update(s)) : this._$EM();
|
|
325
|
+
} catch (s) {
|
|
326
|
+
throw t = false, this._$EM(), s;
|
|
327
|
+
}
|
|
328
|
+
t && this._$AE(s);
|
|
329
|
+
}
|
|
330
|
+
willUpdate(t) {}
|
|
331
|
+
_$AE(t) {
|
|
332
|
+
this._$EO?.forEach(t => t.hostUpdated?.()), this.hasUpdated || (this.hasUpdated = true, this.firstUpdated(t)), this.updated(t);
|
|
333
|
+
}
|
|
334
|
+
_$EM() {
|
|
335
|
+
this._$AL = new Map(), this.isUpdatePending = false;
|
|
336
|
+
}
|
|
337
|
+
get updateComplete() {
|
|
338
|
+
return this.getUpdateComplete();
|
|
339
|
+
}
|
|
340
|
+
getUpdateComplete() {
|
|
341
|
+
return this._$ES;
|
|
342
|
+
}
|
|
343
|
+
shouldUpdate(t) {
|
|
344
|
+
return true;
|
|
345
|
+
}
|
|
346
|
+
update(t) {
|
|
347
|
+
this._$Eq &&= this._$Eq.forEach(t => this._$ET(t, this[t])), this._$EM();
|
|
348
|
+
}
|
|
349
|
+
updated(t) {}
|
|
350
|
+
firstUpdated(t) {}
|
|
351
|
+
};
|
|
352
|
+
y$1.elementStyles = [], y$1.shadowRootOptions = {
|
|
353
|
+
mode: "open"
|
|
354
|
+
}, y$1[d$1("elementProperties")] = new Map(), y$1[d$1("finalized")] = new Map(), p$2?.({
|
|
355
|
+
ReactiveElement: y$1
|
|
356
|
+
}), (a$1.reactiveElementVersions ??= []).push("2.1.0");
|
|
357
|
+
|
|
358
|
+
/**
|
|
359
|
+
* @license
|
|
360
|
+
* Copyright 2017 Google LLC
|
|
361
|
+
* SPDX-License-Identifier: BSD-3-Clause
|
|
362
|
+
*/
|
|
363
|
+
const t$3 = globalThis,
|
|
364
|
+
i$2 = t$3.trustedTypes,
|
|
365
|
+
s$2 = i$2 ? i$2.createPolicy("lit-html", {
|
|
366
|
+
createHTML: t => t
|
|
367
|
+
}) : void 0,
|
|
368
|
+
e$3 = "$lit$",
|
|
369
|
+
h = `lit$${Math.random().toFixed(9).slice(2)}$`,
|
|
370
|
+
o$2 = "?" + h,
|
|
371
|
+
n$1 = `<${o$2}>`,
|
|
372
|
+
r$3 = document,
|
|
373
|
+
l = () => r$3.createComment(""),
|
|
374
|
+
c$1 = t => null === t || "object" != typeof t && "function" != typeof t,
|
|
375
|
+
a = Array.isArray,
|
|
376
|
+
u$2 = t => a(t) || "function" == typeof t?.[Symbol.iterator],
|
|
377
|
+
d = "[ \t\n\f\r]",
|
|
378
|
+
f = /<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,
|
|
379
|
+
v$1 = /-->/g,
|
|
380
|
+
_ = />/g,
|
|
381
|
+
m$1 = RegExp(`>|${d}(?:([^\\s"'>=/]+)(${d}*=${d}*(?:[^ \t\n\f\r"'\`<>=]|("|')|))|$)`, "g"),
|
|
382
|
+
p$1 = /'/g,
|
|
383
|
+
g = /"/g,
|
|
384
|
+
$ = /^(?:script|style|textarea|title)$/i,
|
|
385
|
+
y = t => (i, ...s) => ({
|
|
386
|
+
_$litType$: t,
|
|
387
|
+
strings: i,
|
|
388
|
+
values: s
|
|
389
|
+
}),
|
|
390
|
+
x = y(1),
|
|
391
|
+
T = Symbol.for("lit-noChange"),
|
|
392
|
+
E = Symbol.for("lit-nothing"),
|
|
393
|
+
A = new WeakMap(),
|
|
394
|
+
C = r$3.createTreeWalker(r$3, 129);
|
|
395
|
+
function P(t, i) {
|
|
396
|
+
if (!a(t) || !t.hasOwnProperty("raw")) throw Error("invalid template strings array");
|
|
397
|
+
return void 0 !== s$2 ? s$2.createHTML(i) : i;
|
|
398
|
+
}
|
|
399
|
+
const V = (t, i) => {
|
|
400
|
+
const s = t.length - 1,
|
|
401
|
+
o = [];
|
|
402
|
+
let r,
|
|
403
|
+
l = 2 === i ? "<svg>" : 3 === i ? "<math>" : "",
|
|
404
|
+
c = f;
|
|
405
|
+
for (let i = 0; i < s; i++) {
|
|
406
|
+
const s = t[i];
|
|
407
|
+
let a,
|
|
408
|
+
u,
|
|
409
|
+
d = -1,
|
|
410
|
+
y = 0;
|
|
411
|
+
for (; y < s.length && (c.lastIndex = y, u = c.exec(s), null !== u);) y = c.lastIndex, c === f ? "!--" === u[1] ? c = v$1 : void 0 !== u[1] ? c = _ : void 0 !== u[2] ? ($.test(u[2]) && (r = RegExp("</" + u[2], "g")), c = m$1) : void 0 !== u[3] && (c = m$1) : c === m$1 ? ">" === u[0] ? (c = r ?? f, d = -1) : void 0 === u[1] ? d = -2 : (d = c.lastIndex - u[2].length, a = u[1], c = void 0 === u[3] ? m$1 : '"' === u[3] ? g : p$1) : c === g || c === p$1 ? c = m$1 : c === v$1 || c === _ ? c = f : (c = m$1, r = void 0);
|
|
412
|
+
const x = c === m$1 && t[i + 1].startsWith("/>") ? " " : "";
|
|
413
|
+
l += c === f ? s + n$1 : d >= 0 ? (o.push(a), s.slice(0, d) + e$3 + s.slice(d) + h + x) : s + h + (-2 === d ? i : x);
|
|
414
|
+
}
|
|
415
|
+
return [P(t, l + (t[s] || "<?>") + (2 === i ? "</svg>" : 3 === i ? "</math>" : "")), o];
|
|
416
|
+
};
|
|
417
|
+
class N {
|
|
418
|
+
constructor({
|
|
419
|
+
strings: t,
|
|
420
|
+
_$litType$: s
|
|
421
|
+
}, n) {
|
|
422
|
+
let r;
|
|
423
|
+
this.parts = [];
|
|
424
|
+
let c = 0,
|
|
425
|
+
a = 0;
|
|
426
|
+
const u = t.length - 1,
|
|
427
|
+
d = this.parts,
|
|
428
|
+
[f, v] = V(t, s);
|
|
429
|
+
if (this.el = N.createElement(f, n), C.currentNode = this.el.content, 2 === s || 3 === s) {
|
|
430
|
+
const t = this.el.content.firstChild;
|
|
431
|
+
t.replaceWith(...t.childNodes);
|
|
432
|
+
}
|
|
433
|
+
for (; null !== (r = C.nextNode()) && d.length < u;) {
|
|
434
|
+
if (1 === r.nodeType) {
|
|
435
|
+
if (r.hasAttributes()) for (const t of r.getAttributeNames()) if (t.endsWith(e$3)) {
|
|
436
|
+
const i = v[a++],
|
|
437
|
+
s = r.getAttribute(t).split(h),
|
|
438
|
+
e = /([.?@])?(.*)/.exec(i);
|
|
439
|
+
d.push({
|
|
440
|
+
type: 1,
|
|
441
|
+
index: c,
|
|
442
|
+
name: e[2],
|
|
443
|
+
strings: s,
|
|
444
|
+
ctor: "." === e[1] ? H : "?" === e[1] ? I : "@" === e[1] ? L : k
|
|
445
|
+
}), r.removeAttribute(t);
|
|
446
|
+
} else t.startsWith(h) && (d.push({
|
|
447
|
+
type: 6,
|
|
448
|
+
index: c
|
|
449
|
+
}), r.removeAttribute(t));
|
|
450
|
+
if ($.test(r.tagName)) {
|
|
451
|
+
const t = r.textContent.split(h),
|
|
452
|
+
s = t.length - 1;
|
|
453
|
+
if (s > 0) {
|
|
454
|
+
r.textContent = i$2 ? i$2.emptyScript : "";
|
|
455
|
+
for (let i = 0; i < s; i++) r.append(t[i], l()), C.nextNode(), d.push({
|
|
456
|
+
type: 2,
|
|
457
|
+
index: ++c
|
|
458
|
+
});
|
|
459
|
+
r.append(t[s], l());
|
|
460
|
+
}
|
|
461
|
+
}
|
|
462
|
+
} else if (8 === r.nodeType) if (r.data === o$2) d.push({
|
|
463
|
+
type: 2,
|
|
464
|
+
index: c
|
|
465
|
+
});else {
|
|
466
|
+
let t = -1;
|
|
467
|
+
for (; -1 !== (t = r.data.indexOf(h, t + 1));) d.push({
|
|
468
|
+
type: 7,
|
|
469
|
+
index: c
|
|
470
|
+
}), t += h.length - 1;
|
|
471
|
+
}
|
|
472
|
+
c++;
|
|
473
|
+
}
|
|
474
|
+
}
|
|
475
|
+
static createElement(t, i) {
|
|
476
|
+
const s = r$3.createElement("template");
|
|
477
|
+
return s.innerHTML = t, s;
|
|
478
|
+
}
|
|
479
|
+
}
|
|
480
|
+
function S(t, i, s = t, e) {
|
|
481
|
+
if (i === T) return i;
|
|
482
|
+
let h = void 0 !== e ? s._$Co?.[e] : s._$Cl;
|
|
483
|
+
const o = c$1(i) ? void 0 : i._$litDirective$;
|
|
484
|
+
return h?.constructor !== o && (h?._$AO?.(false), void 0 === o ? h = void 0 : (h = new o(t), h._$AT(t, s, e)), void 0 !== e ? (s._$Co ??= [])[e] = h : s._$Cl = h), void 0 !== h && (i = S(t, h._$AS(t, i.values), h, e)), i;
|
|
485
|
+
}
|
|
486
|
+
let M$1 = class M {
|
|
487
|
+
constructor(t, i) {
|
|
488
|
+
this._$AV = [], this._$AN = void 0, this._$AD = t, this._$AM = i;
|
|
489
|
+
}
|
|
490
|
+
get parentNode() {
|
|
491
|
+
return this._$AM.parentNode;
|
|
492
|
+
}
|
|
493
|
+
get _$AU() {
|
|
494
|
+
return this._$AM._$AU;
|
|
495
|
+
}
|
|
496
|
+
u(t) {
|
|
497
|
+
const {
|
|
498
|
+
el: {
|
|
499
|
+
content: i
|
|
500
|
+
},
|
|
501
|
+
parts: s
|
|
502
|
+
} = this._$AD,
|
|
503
|
+
e = (t?.creationScope ?? r$3).importNode(i, true);
|
|
504
|
+
C.currentNode = e;
|
|
505
|
+
let h = C.nextNode(),
|
|
506
|
+
o = 0,
|
|
507
|
+
n = 0,
|
|
508
|
+
l = s[0];
|
|
509
|
+
for (; void 0 !== l;) {
|
|
510
|
+
if (o === l.index) {
|
|
511
|
+
let i;
|
|
512
|
+
2 === l.type ? i = new R(h, h.nextSibling, this, t) : 1 === l.type ? i = new l.ctor(h, l.name, l.strings, this, t) : 6 === l.type && (i = new z(h, this, t)), this._$AV.push(i), l = s[++n];
|
|
513
|
+
}
|
|
514
|
+
o !== l?.index && (h = C.nextNode(), o++);
|
|
515
|
+
}
|
|
516
|
+
return C.currentNode = r$3, e;
|
|
517
|
+
}
|
|
518
|
+
p(t) {
|
|
519
|
+
let i = 0;
|
|
520
|
+
for (const s of this._$AV) void 0 !== s && (void 0 !== s.strings ? (s._$AI(t, s, i), i += s.strings.length - 2) : s._$AI(t[i])), i++;
|
|
521
|
+
}
|
|
522
|
+
};
|
|
523
|
+
class R {
|
|
524
|
+
get _$AU() {
|
|
525
|
+
return this._$AM?._$AU ?? this._$Cv;
|
|
526
|
+
}
|
|
527
|
+
constructor(t, i, s, e) {
|
|
528
|
+
this.type = 2, this._$AH = E, this._$AN = void 0, this._$AA = t, this._$AB = i, this._$AM = s, this.options = e, this._$Cv = e?.isConnected ?? true;
|
|
529
|
+
}
|
|
530
|
+
get parentNode() {
|
|
531
|
+
let t = this._$AA.parentNode;
|
|
532
|
+
const i = this._$AM;
|
|
533
|
+
return void 0 !== i && 11 === t?.nodeType && (t = i.parentNode), t;
|
|
534
|
+
}
|
|
535
|
+
get startNode() {
|
|
536
|
+
return this._$AA;
|
|
537
|
+
}
|
|
538
|
+
get endNode() {
|
|
539
|
+
return this._$AB;
|
|
540
|
+
}
|
|
541
|
+
_$AI(t, i = this) {
|
|
542
|
+
t = S(this, t, i), c$1(t) ? t === E || null == t || "" === t ? (this._$AH !== E && this._$AR(), this._$AH = E) : t !== this._$AH && t !== T && this._(t) : void 0 !== t._$litType$ ? this.$(t) : void 0 !== t.nodeType ? this.T(t) : u$2(t) ? this.k(t) : this._(t);
|
|
543
|
+
}
|
|
544
|
+
O(t) {
|
|
545
|
+
return this._$AA.parentNode.insertBefore(t, this._$AB);
|
|
546
|
+
}
|
|
547
|
+
T(t) {
|
|
548
|
+
this._$AH !== t && (this._$AR(), this._$AH = this.O(t));
|
|
549
|
+
}
|
|
550
|
+
_(t) {
|
|
551
|
+
this._$AH !== E && c$1(this._$AH) ? this._$AA.nextSibling.data = t : this.T(r$3.createTextNode(t)), this._$AH = t;
|
|
552
|
+
}
|
|
553
|
+
$(t) {
|
|
554
|
+
const {
|
|
555
|
+
values: i,
|
|
556
|
+
_$litType$: s
|
|
557
|
+
} = t,
|
|
558
|
+
e = "number" == typeof s ? this._$AC(t) : (void 0 === s.el && (s.el = N.createElement(P(s.h, s.h[0]), this.options)), s);
|
|
559
|
+
if (this._$AH?._$AD === e) this._$AH.p(i);else {
|
|
560
|
+
const t = new M$1(e, this),
|
|
561
|
+
s = t.u(this.options);
|
|
562
|
+
t.p(i), this.T(s), this._$AH = t;
|
|
563
|
+
}
|
|
564
|
+
}
|
|
565
|
+
_$AC(t) {
|
|
566
|
+
let i = A.get(t.strings);
|
|
567
|
+
return void 0 === i && A.set(t.strings, i = new N(t)), i;
|
|
568
|
+
}
|
|
569
|
+
k(t) {
|
|
570
|
+
a(this._$AH) || (this._$AH = [], this._$AR());
|
|
571
|
+
const i = this._$AH;
|
|
572
|
+
let s,
|
|
573
|
+
e = 0;
|
|
574
|
+
for (const h of t) e === i.length ? i.push(s = new R(this.O(l()), this.O(l()), this, this.options)) : s = i[e], s._$AI(h), e++;
|
|
575
|
+
e < i.length && (this._$AR(s && s._$AB.nextSibling, e), i.length = e);
|
|
576
|
+
}
|
|
577
|
+
_$AR(t = this._$AA.nextSibling, i) {
|
|
578
|
+
for (this._$AP?.(false, true, i); t && t !== this._$AB;) {
|
|
579
|
+
const i = t.nextSibling;
|
|
580
|
+
t.remove(), t = i;
|
|
581
|
+
}
|
|
582
|
+
}
|
|
583
|
+
setConnected(t) {
|
|
584
|
+
void 0 === this._$AM && (this._$Cv = t, this._$AP?.(t));
|
|
585
|
+
}
|
|
586
|
+
}
|
|
587
|
+
class k {
|
|
588
|
+
get tagName() {
|
|
589
|
+
return this.element.tagName;
|
|
590
|
+
}
|
|
591
|
+
get _$AU() {
|
|
592
|
+
return this._$AM._$AU;
|
|
593
|
+
}
|
|
594
|
+
constructor(t, i, s, e, h) {
|
|
595
|
+
this.type = 1, this._$AH = E, this._$AN = void 0, this.element = t, this.name = i, this._$AM = e, this.options = h, s.length > 2 || "" !== s[0] || "" !== s[1] ? (this._$AH = Array(s.length - 1).fill(new String()), this.strings = s) : this._$AH = E;
|
|
596
|
+
}
|
|
597
|
+
_$AI(t, i = this, s, e) {
|
|
598
|
+
const h = this.strings;
|
|
599
|
+
let o = false;
|
|
600
|
+
if (void 0 === h) t = S(this, t, i, 0), o = !c$1(t) || t !== this._$AH && t !== T, o && (this._$AH = t);else {
|
|
601
|
+
const e = t;
|
|
602
|
+
let n, r;
|
|
603
|
+
for (t = h[0], n = 0; n < h.length - 1; n++) r = S(this, e[s + n], i, n), r === T && (r = this._$AH[n]), o ||= !c$1(r) || r !== this._$AH[n], r === E ? t = E : t !== E && (t += (r ?? "") + h[n + 1]), this._$AH[n] = r;
|
|
604
|
+
}
|
|
605
|
+
o && !e && this.j(t);
|
|
606
|
+
}
|
|
607
|
+
j(t) {
|
|
608
|
+
t === E ? this.element.removeAttribute(this.name) : this.element.setAttribute(this.name, t ?? "");
|
|
609
|
+
}
|
|
610
|
+
}
|
|
611
|
+
class H extends k {
|
|
612
|
+
constructor() {
|
|
613
|
+
super(...arguments), this.type = 3;
|
|
614
|
+
}
|
|
615
|
+
j(t) {
|
|
616
|
+
this.element[this.name] = t === E ? void 0 : t;
|
|
617
|
+
}
|
|
618
|
+
}
|
|
619
|
+
class I extends k {
|
|
620
|
+
constructor() {
|
|
621
|
+
super(...arguments), this.type = 4;
|
|
622
|
+
}
|
|
623
|
+
j(t) {
|
|
624
|
+
this.element.toggleAttribute(this.name, !!t && t !== E);
|
|
625
|
+
}
|
|
626
|
+
}
|
|
627
|
+
class L extends k {
|
|
628
|
+
constructor(t, i, s, e, h) {
|
|
629
|
+
super(t, i, s, e, h), this.type = 5;
|
|
630
|
+
}
|
|
631
|
+
_$AI(t, i = this) {
|
|
632
|
+
if ((t = S(this, t, i, 0) ?? E) === T) return;
|
|
633
|
+
const s = this._$AH,
|
|
634
|
+
e = t === E && s !== E || t.capture !== s.capture || t.once !== s.once || t.passive !== s.passive,
|
|
635
|
+
h = t !== E && (s === E || e);
|
|
636
|
+
e && this.element.removeEventListener(this.name, this, s), h && this.element.addEventListener(this.name, this, t), this._$AH = t;
|
|
637
|
+
}
|
|
638
|
+
handleEvent(t) {
|
|
639
|
+
"function" == typeof this._$AH ? this._$AH.call(this.options?.host ?? this.element, t) : this._$AH.handleEvent(t);
|
|
640
|
+
}
|
|
641
|
+
}
|
|
642
|
+
class z {
|
|
643
|
+
constructor(t, i, s) {
|
|
644
|
+
this.element = t, this.type = 6, this._$AN = void 0, this._$AM = i, this.options = s;
|
|
645
|
+
}
|
|
646
|
+
get _$AU() {
|
|
647
|
+
return this._$AM._$AU;
|
|
648
|
+
}
|
|
649
|
+
_$AI(t) {
|
|
650
|
+
S(this, t);
|
|
651
|
+
}
|
|
652
|
+
}
|
|
653
|
+
const Z = {
|
|
654
|
+
I: R},
|
|
655
|
+
j = t$3.litHtmlPolyfillSupport;
|
|
656
|
+
j?.(N, R), (t$3.litHtmlVersions ??= []).push("3.3.0");
|
|
657
|
+
const B = (t, i, s) => {
|
|
658
|
+
const e = s?.renderBefore ?? i;
|
|
659
|
+
let h = e._$litPart$;
|
|
660
|
+
if (void 0 === h) {
|
|
661
|
+
const t = s?.renderBefore ?? null;
|
|
662
|
+
e._$litPart$ = h = new R(i.insertBefore(l(), t), t, void 0, s ?? {});
|
|
663
|
+
}
|
|
664
|
+
return h._$AI(t), h;
|
|
665
|
+
};
|
|
666
|
+
|
|
667
|
+
/**
|
|
668
|
+
* @license
|
|
669
|
+
* Copyright 2017 Google LLC
|
|
670
|
+
* SPDX-License-Identifier: BSD-3-Clause
|
|
671
|
+
*/
|
|
672
|
+
const s$1 = globalThis;
|
|
673
|
+
let i$1 = class i extends y$1 {
|
|
674
|
+
constructor() {
|
|
675
|
+
super(...arguments), this.renderOptions = {
|
|
676
|
+
host: this
|
|
677
|
+
}, this._$Do = void 0;
|
|
678
|
+
}
|
|
679
|
+
createRenderRoot() {
|
|
680
|
+
const t = super.createRenderRoot();
|
|
681
|
+
return this.renderOptions.renderBefore ??= t.firstChild, t;
|
|
682
|
+
}
|
|
683
|
+
update(t) {
|
|
684
|
+
const r = this.render();
|
|
685
|
+
this.hasUpdated || (this.renderOptions.isConnected = this.isConnected), super.update(t), this._$Do = B(r, this.renderRoot, this.renderOptions);
|
|
686
|
+
}
|
|
687
|
+
connectedCallback() {
|
|
688
|
+
super.connectedCallback(), this._$Do?.setConnected(true);
|
|
689
|
+
}
|
|
690
|
+
disconnectedCallback() {
|
|
691
|
+
super.disconnectedCallback(), this._$Do?.setConnected(false);
|
|
692
|
+
}
|
|
693
|
+
render() {
|
|
694
|
+
return T;
|
|
695
|
+
}
|
|
696
|
+
};
|
|
697
|
+
i$1._$litElement$ = true, i$1["finalized"] = true, s$1.litElementHydrateSupport?.({
|
|
698
|
+
LitElement: i$1
|
|
699
|
+
});
|
|
700
|
+
const o$1 = s$1.litElementPolyfillSupport;
|
|
701
|
+
o$1?.({
|
|
702
|
+
LitElement: i$1
|
|
703
|
+
});
|
|
704
|
+
(s$1.litElementVersions ??= []).push("4.2.0");
|
|
705
|
+
|
|
706
|
+
/**
|
|
707
|
+
* @license
|
|
708
|
+
* Copyright 2017 Google LLC
|
|
709
|
+
* SPDX-License-Identifier: BSD-3-Clause
|
|
710
|
+
*/
|
|
711
|
+
const t$2 = {
|
|
712
|
+
CHILD: 2},
|
|
713
|
+
e$2 = t => (...e) => ({
|
|
714
|
+
_$litDirective$: t,
|
|
715
|
+
values: e
|
|
716
|
+
});
|
|
717
|
+
class i {
|
|
718
|
+
constructor(t) {}
|
|
719
|
+
get _$AU() {
|
|
720
|
+
return this._$AM._$AU;
|
|
721
|
+
}
|
|
722
|
+
_$AT(t, e, i) {
|
|
723
|
+
this._$Ct = t, this._$AM = e, this._$Ci = i;
|
|
724
|
+
}
|
|
725
|
+
_$AS(t, e) {
|
|
726
|
+
return this.update(t, e);
|
|
727
|
+
}
|
|
728
|
+
update(t, e) {
|
|
729
|
+
return this.render(...e);
|
|
730
|
+
}
|
|
731
|
+
}
|
|
732
|
+
|
|
733
|
+
/**
|
|
734
|
+
* @license
|
|
735
|
+
* Copyright 2020 Google LLC
|
|
736
|
+
* SPDX-License-Identifier: BSD-3-Clause
|
|
737
|
+
*/
|
|
738
|
+
const {
|
|
739
|
+
I: t$1
|
|
740
|
+
} = Z,
|
|
741
|
+
s = () => document.createComment(""),
|
|
742
|
+
r$2 = (o, i, n) => {
|
|
743
|
+
const e = o._$AA.parentNode,
|
|
744
|
+
l = void 0 === i ? o._$AB : i._$AA;
|
|
745
|
+
if (void 0 === n) {
|
|
746
|
+
const i = e.insertBefore(s(), l),
|
|
747
|
+
c = e.insertBefore(s(), l);
|
|
748
|
+
n = new t$1(i, c, o, o.options);
|
|
749
|
+
} else {
|
|
750
|
+
const t = n._$AB.nextSibling,
|
|
751
|
+
i = n._$AM,
|
|
752
|
+
c = i !== o;
|
|
753
|
+
if (c) {
|
|
754
|
+
let t;
|
|
755
|
+
n._$AQ?.(o), n._$AM = o, void 0 !== n._$AP && (t = o._$AU) !== i._$AU && n._$AP(t);
|
|
756
|
+
}
|
|
757
|
+
if (t !== l || c) {
|
|
758
|
+
let o = n._$AA;
|
|
759
|
+
for (; o !== t;) {
|
|
760
|
+
const t = o.nextSibling;
|
|
761
|
+
e.insertBefore(o, l), o = t;
|
|
762
|
+
}
|
|
763
|
+
}
|
|
764
|
+
}
|
|
765
|
+
return n;
|
|
766
|
+
},
|
|
767
|
+
v = (o, t, i = o) => (o._$AI(t, i), o),
|
|
768
|
+
u$1 = {},
|
|
769
|
+
m = (o, t = u$1) => o._$AH = t,
|
|
770
|
+
p = o => o._$AH,
|
|
771
|
+
M = o => {
|
|
772
|
+
o._$AP?.(false, true);
|
|
773
|
+
let t = o._$AA;
|
|
774
|
+
const i = o._$AB.nextSibling;
|
|
775
|
+
for (; t !== i;) {
|
|
776
|
+
const o = t.nextSibling;
|
|
777
|
+
t.remove(), t = o;
|
|
778
|
+
}
|
|
779
|
+
};
|
|
780
|
+
|
|
781
|
+
/**
|
|
782
|
+
* @license
|
|
783
|
+
* Copyright 2017 Google LLC
|
|
784
|
+
* SPDX-License-Identifier: BSD-3-Clause
|
|
785
|
+
*/
|
|
786
|
+
const u = (e, s, t) => {
|
|
787
|
+
const r = new Map();
|
|
788
|
+
for (let l = s; l <= t; l++) r.set(e[l], l);
|
|
789
|
+
return r;
|
|
790
|
+
},
|
|
791
|
+
c = e$2(class extends i {
|
|
792
|
+
constructor(e) {
|
|
793
|
+
if (super(e), e.type !== t$2.CHILD) throw Error("repeat() can only be used in text expressions");
|
|
794
|
+
}
|
|
795
|
+
dt(e, s, t) {
|
|
796
|
+
let r;
|
|
797
|
+
void 0 === t ? t = s : void 0 !== s && (r = s);
|
|
798
|
+
const l = [],
|
|
799
|
+
o = [];
|
|
800
|
+
let i = 0;
|
|
801
|
+
for (const s of e) l[i] = r ? r(s, i) : i, o[i] = t(s, i), i++;
|
|
802
|
+
return {
|
|
803
|
+
values: o,
|
|
804
|
+
keys: l
|
|
805
|
+
};
|
|
806
|
+
}
|
|
807
|
+
render(e, s, t) {
|
|
808
|
+
return this.dt(e, s, t).values;
|
|
809
|
+
}
|
|
810
|
+
update(s, [t, r, c]) {
|
|
811
|
+
const d = p(s),
|
|
812
|
+
{
|
|
813
|
+
values: p$1,
|
|
814
|
+
keys: a
|
|
815
|
+
} = this.dt(t, r, c);
|
|
816
|
+
if (!Array.isArray(d)) return this.ut = a, p$1;
|
|
817
|
+
const h = this.ut ??= [],
|
|
818
|
+
v$1 = [];
|
|
819
|
+
let m$1,
|
|
820
|
+
y,
|
|
821
|
+
x = 0,
|
|
822
|
+
j = d.length - 1,
|
|
823
|
+
k = 0,
|
|
824
|
+
w = p$1.length - 1;
|
|
825
|
+
for (; x <= j && k <= w;) if (null === d[x]) x++;else if (null === d[j]) j--;else if (h[x] === a[k]) v$1[k] = v(d[x], p$1[k]), x++, k++;else if (h[j] === a[w]) v$1[w] = v(d[j], p$1[w]), j--, w--;else if (h[x] === a[w]) v$1[w] = v(d[x], p$1[w]), r$2(s, v$1[w + 1], d[x]), x++, w--;else if (h[j] === a[k]) v$1[k] = v(d[j], p$1[k]), r$2(s, d[x], d[j]), j--, k++;else if (void 0 === m$1 && (m$1 = u(a, k, w), y = u(h, x, j)), m$1.has(h[x])) {
|
|
826
|
+
if (m$1.has(h[j])) {
|
|
827
|
+
const e = y.get(a[k]),
|
|
828
|
+
t = void 0 !== e ? d[e] : null;
|
|
829
|
+
if (null === t) {
|
|
830
|
+
const e = r$2(s, d[x]);
|
|
831
|
+
v(e, p$1[k]), v$1[k] = e;
|
|
832
|
+
} else v$1[k] = v(t, p$1[k]), r$2(s, d[x], t), d[e] = null;
|
|
833
|
+
k++;
|
|
834
|
+
} else M(d[j]), j--;
|
|
835
|
+
} else M(d[x]), x++;
|
|
836
|
+
for (; k <= w;) {
|
|
837
|
+
const e = r$2(s, v$1[w + 1]);
|
|
838
|
+
v(e, p$1[k]), v$1[k++] = e;
|
|
839
|
+
}
|
|
840
|
+
for (; x <= j;) {
|
|
841
|
+
const e = d[x++];
|
|
842
|
+
null !== e && M(e);
|
|
843
|
+
}
|
|
844
|
+
return this.ut = a, m(s, v$1), T;
|
|
845
|
+
}
|
|
846
|
+
});
|
|
847
|
+
|
|
848
|
+
/**
|
|
849
|
+
* @license
|
|
850
|
+
* Copyright 2017 Google LLC
|
|
851
|
+
* SPDX-License-Identifier: BSD-3-Clause
|
|
852
|
+
*/
|
|
853
|
+
const t = t => (e, o) => {
|
|
854
|
+
void 0 !== o ? o.addInitializer(() => {
|
|
855
|
+
customElements.define(t, e);
|
|
856
|
+
}) : customElements.define(t, e);
|
|
857
|
+
};
|
|
858
|
+
|
|
859
|
+
/**
|
|
860
|
+
* @license
|
|
861
|
+
* Copyright 2017 Google LLC
|
|
862
|
+
* SPDX-License-Identifier: BSD-3-Clause
|
|
863
|
+
*/
|
|
864
|
+
const o = {
|
|
865
|
+
attribute: true,
|
|
866
|
+
type: String,
|
|
867
|
+
converter: u$3,
|
|
868
|
+
reflect: false,
|
|
869
|
+
hasChanged: f$1
|
|
870
|
+
},
|
|
871
|
+
r$1 = (t = o, e, r) => {
|
|
872
|
+
const {
|
|
873
|
+
kind: n,
|
|
874
|
+
metadata: i
|
|
875
|
+
} = r;
|
|
876
|
+
let s = globalThis.litPropertyMetadata.get(i);
|
|
877
|
+
if (void 0 === s && globalThis.litPropertyMetadata.set(i, s = new Map()), "setter" === n && ((t = Object.create(t)).wrapped = true), s.set(r.name, t), "accessor" === n) {
|
|
878
|
+
const {
|
|
879
|
+
name: o
|
|
880
|
+
} = r;
|
|
881
|
+
return {
|
|
882
|
+
set(r) {
|
|
883
|
+
const n = e.get.call(this);
|
|
884
|
+
e.set.call(this, r), this.requestUpdate(o, n, t);
|
|
885
|
+
},
|
|
886
|
+
init(e) {
|
|
887
|
+
return void 0 !== e && this.C(o, void 0, t, e), e;
|
|
888
|
+
}
|
|
889
|
+
};
|
|
890
|
+
}
|
|
891
|
+
if ("setter" === n) {
|
|
892
|
+
const {
|
|
893
|
+
name: o
|
|
894
|
+
} = r;
|
|
895
|
+
return function (r) {
|
|
896
|
+
const n = this[o];
|
|
897
|
+
e.call(this, r), this.requestUpdate(o, n, t);
|
|
898
|
+
};
|
|
899
|
+
}
|
|
900
|
+
throw Error("Unsupported decorator location: " + n);
|
|
901
|
+
};
|
|
902
|
+
function n(t) {
|
|
903
|
+
return (e, o) => "object" == typeof o ? r$1(t, e, o) : ((t, e, o) => {
|
|
904
|
+
const r = e.hasOwnProperty(o);
|
|
905
|
+
return e.constructor.createProperty(o, t), r ? Object.getOwnPropertyDescriptor(e, o) : void 0;
|
|
906
|
+
})(t, e, o);
|
|
907
|
+
}
|
|
908
|
+
|
|
909
|
+
/**
|
|
910
|
+
* @license
|
|
911
|
+
* Copyright 2017 Google LLC
|
|
912
|
+
* SPDX-License-Identifier: BSD-3-Clause
|
|
913
|
+
*/
|
|
914
|
+
function r(r) {
|
|
915
|
+
return n({
|
|
916
|
+
...r,
|
|
917
|
+
state: true,
|
|
918
|
+
attribute: false
|
|
919
|
+
});
|
|
920
|
+
}
|
|
921
|
+
|
|
922
|
+
/**
|
|
923
|
+
* @license
|
|
924
|
+
* Copyright 2017 Google LLC
|
|
925
|
+
* SPDX-License-Identifier: BSD-3-Clause
|
|
926
|
+
*/
|
|
927
|
+
const e$1 = (e, t, c) => (c.configurable = true, c.enumerable = true, Reflect.decorate && "object" != typeof t && Object.defineProperty(e, t, c), c);
|
|
928
|
+
|
|
929
|
+
/**
|
|
930
|
+
* @license
|
|
931
|
+
* Copyright 2017 Google LLC
|
|
932
|
+
* SPDX-License-Identifier: BSD-3-Clause
|
|
933
|
+
*/
|
|
934
|
+
function e(e, r) {
|
|
935
|
+
return (n, s, i) => {
|
|
936
|
+
const o = t => t.renderRoot?.querySelector(e) ?? null;
|
|
937
|
+
return e$1(n, s, {
|
|
938
|
+
get() {
|
|
939
|
+
return o(this);
|
|
940
|
+
}
|
|
941
|
+
});
|
|
942
|
+
};
|
|
943
|
+
}
|
|
944
|
+
|
|
945
|
+
let WidgetTableEdit = class WidgetTableEdit extends i$1 {
|
|
946
|
+
constructor() {
|
|
947
|
+
super(...arguments);
|
|
948
|
+
this.dialogOpen = false;
|
|
949
|
+
this.version = '1.0.2';
|
|
950
|
+
}
|
|
951
|
+
update(changedProperties) {
|
|
952
|
+
if (changedProperties.has('theme')) {
|
|
953
|
+
this.registerTheme(this.theme);
|
|
954
|
+
}
|
|
955
|
+
super.update(changedProperties);
|
|
956
|
+
}
|
|
957
|
+
firstUpdated(_changedProperties) {
|
|
958
|
+
this.registerTheme(this.theme);
|
|
959
|
+
}
|
|
960
|
+
registerTheme(theme) {
|
|
961
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
|
|
962
|
+
const cssTextColor = getComputedStyle(this).getPropertyValue('--re-text-color').trim();
|
|
963
|
+
const cssBgColor = getComputedStyle(this).getPropertyValue('--re-tile-background-color').trim();
|
|
964
|
+
this.themeBgColor = cssBgColor || ((_b = (_a = this.theme) === null || _a === void 0 ? void 0 : _a.theme_object) === null || _b === void 0 ? void 0 : _b.backgroundColor);
|
|
965
|
+
this.themeTitleColor = cssTextColor || ((_f = (_e = (_d = (_c = this.theme) === null || _c === void 0 ? void 0 : _c.theme_object) === null || _d === void 0 ? void 0 : _d.title) === null || _e === void 0 ? void 0 : _e.textStyle) === null || _f === void 0 ? void 0 : _f.color);
|
|
966
|
+
this.themeSubtitleColor =
|
|
967
|
+
cssTextColor || ((_k = (_j = (_h = (_g = this.theme) === null || _g === void 0 ? void 0 : _g.theme_object) === null || _h === void 0 ? void 0 : _h.title) === null || _j === void 0 ? void 0 : _j.subtextStyle) === null || _k === void 0 ? void 0 : _k.color) || this.themeTitleColor;
|
|
968
|
+
}
|
|
969
|
+
openFormDialog() {
|
|
970
|
+
this.dialogOpen = true;
|
|
971
|
+
}
|
|
972
|
+
handleFormSubmit(event) {
|
|
973
|
+
var _a, _b, _c, _d;
|
|
974
|
+
event.preventDefault();
|
|
975
|
+
const form = event.target;
|
|
976
|
+
const formData = new FormData(form);
|
|
977
|
+
const data = Object.fromEntries(formData.entries());
|
|
978
|
+
for (const field of (_b = (_a = this.inputData) === null || _a === void 0 ? void 0 : _a.formFields) !== null && _b !== void 0 ? _b : []) {
|
|
979
|
+
}
|
|
980
|
+
const submitData = (_d = (_c = this.inputData) === null || _c === void 0 ? void 0 : _c.formFields) === null || _d === void 0 ? void 0 : _d.map((field, i) => {
|
|
981
|
+
var _a, _b, _c, _d;
|
|
982
|
+
return {
|
|
983
|
+
swarm_app_databackend_key: (_a = field.targetColumn) === null || _a === void 0 ? void 0 : _a.swarm_app_databackend_key,
|
|
984
|
+
table_name: (_b = field.targetColumn) === null || _b === void 0 ? void 0 : _b.tablename,
|
|
985
|
+
column_name: (_c = field.targetColumn) === null || _c === void 0 ? void 0 : _c.column,
|
|
986
|
+
value: this.formatValue(data[`column-${i}`] || field.defaultValue || '', (_d = field.type) !== null && _d !== void 0 ? _d : 'textfield')
|
|
987
|
+
};
|
|
988
|
+
});
|
|
989
|
+
this.dispatchEvent(new CustomEvent('action-submit', {
|
|
990
|
+
detail: submitData,
|
|
991
|
+
bubbles: false,
|
|
992
|
+
composed: false
|
|
993
|
+
}));
|
|
994
|
+
form.reset();
|
|
995
|
+
this.dialogOpen = false;
|
|
996
|
+
}
|
|
997
|
+
formatValue(value, type) {
|
|
998
|
+
switch (type) {
|
|
999
|
+
case 'numberfield':
|
|
1000
|
+
return parseFloat(value);
|
|
1001
|
+
case 'checkbox':
|
|
1002
|
+
return value === 'on' ? true : false;
|
|
1003
|
+
default:
|
|
1004
|
+
return value;
|
|
1005
|
+
}
|
|
1006
|
+
}
|
|
1007
|
+
renderTextField(field, i) {
|
|
1008
|
+
var _a, _b, _c, _d, _e;
|
|
1009
|
+
return x `
|
|
1010
|
+
<md-filled-text-field
|
|
1011
|
+
.name="column-${i}"
|
|
1012
|
+
.label="${(_a = field.label) !== null && _a !== void 0 ? _a : ''}"
|
|
1013
|
+
.type="${field.type === 'numberfield' ? 'number' : 'text'}"
|
|
1014
|
+
.placeholder="${(_b = field.defaultValue) !== null && _b !== void 0 ? _b : ''}"
|
|
1015
|
+
.pattern="${(_c = field.validation) !== null && _c !== void 0 ? _c : ''}"
|
|
1016
|
+
supporting-text=${(_d = field.description) !== null && _d !== void 0 ? _d : ''}
|
|
1017
|
+
validation-message="${(_e = field.validationMessage) !== null && _e !== void 0 ? _e : 'Invalid input'}"
|
|
1018
|
+
?required=${field.required && !field.defaultValue}
|
|
1019
|
+
></md-filled-text-field>
|
|
1020
|
+
`;
|
|
1021
|
+
}
|
|
1022
|
+
renderNumberField(field, i) {
|
|
1023
|
+
var _a, _b, _c, _d, _e;
|
|
1024
|
+
return x `
|
|
1025
|
+
<md-filled-text-field
|
|
1026
|
+
.name="column-${i}"
|
|
1027
|
+
.label="${(_a = field.label) !== null && _a !== void 0 ? _a : ''}"
|
|
1028
|
+
style="width: 200px;"
|
|
1029
|
+
type="number"
|
|
1030
|
+
.placeholder="${(_b = field.defaultValue) !== null && _b !== void 0 ? _b : ''}"
|
|
1031
|
+
step="any"
|
|
1032
|
+
min=${(_c = field.min) !== null && _c !== void 0 ? _c : ''}
|
|
1033
|
+
max=${(_d = field.max) !== null && _d !== void 0 ? _d : ''}
|
|
1034
|
+
supporting-text=${(_e = field.description) !== null && _e !== void 0 ? _e : ''}
|
|
1035
|
+
?required=${field.required && !field.defaultValue}
|
|
1036
|
+
></md-filled-text-field>
|
|
1037
|
+
`;
|
|
1038
|
+
}
|
|
1039
|
+
renderCheckbox(field, i) {
|
|
1040
|
+
var _a, _b;
|
|
1041
|
+
return x `
|
|
1042
|
+
<div class="checkbox-container">
|
|
1043
|
+
<md-checkbox
|
|
1044
|
+
name="column-${i}"
|
|
1045
|
+
aria-label=${(_a = field.label) !== null && _a !== void 0 ? _a : ''}
|
|
1046
|
+
?checked=${field.defaultValue === 'true'}
|
|
1047
|
+
supporting-text=${(_b = field.description) !== null && _b !== void 0 ? _b : ''}
|
|
1048
|
+
?required=${field.required && !field.defaultValue}
|
|
1049
|
+
></md-checkbox>
|
|
1050
|
+
<label class="label"> ${field.label} </label>
|
|
1051
|
+
</div>
|
|
1052
|
+
`;
|
|
1053
|
+
}
|
|
1054
|
+
renderTextArea(field, i) {
|
|
1055
|
+
var _a, _b, _c;
|
|
1056
|
+
return x `
|
|
1057
|
+
<md-filled-text-field
|
|
1058
|
+
.name="column-${i}"
|
|
1059
|
+
.label="${(_a = field.label) !== null && _a !== void 0 ? _a : ''}"
|
|
1060
|
+
type="textarea"
|
|
1061
|
+
.placeholder="${(_b = field.defaultValue) !== null && _b !== void 0 ? _b : ''}"
|
|
1062
|
+
rows="3"
|
|
1063
|
+
?required=${field.required && !field.defaultValue}
|
|
1064
|
+
supporting-text=${(_c = field.description) !== null && _c !== void 0 ? _c : ''}
|
|
1065
|
+
></md-filled-text-field>
|
|
1066
|
+
`;
|
|
1067
|
+
}
|
|
1068
|
+
renderDropdown(field, i) {
|
|
1069
|
+
var _a, _b;
|
|
1070
|
+
return x `
|
|
1071
|
+
<label class="label">
|
|
1072
|
+
${field.label}
|
|
1073
|
+
<md-filled-select
|
|
1074
|
+
name="column-${i}"
|
|
1075
|
+
supporting-text=${(_a = field.description) !== null && _a !== void 0 ? _a : ''}
|
|
1076
|
+
?required=${field.required && !field.defaultValue}
|
|
1077
|
+
>
|
|
1078
|
+
${c((_b = field.values) !== null && _b !== void 0 ? _b : [], (val) => val.value, (val) => {
|
|
1079
|
+
var _a;
|
|
1080
|
+
return x `
|
|
1081
|
+
<md-select-option
|
|
1082
|
+
.value="${(_a = val.value) !== null && _a !== void 0 ? _a : ''}"
|
|
1083
|
+
?selected="${val.value === field.defaultValue}"
|
|
1084
|
+
>
|
|
1085
|
+
${val.displayLabel}
|
|
1086
|
+
</md-select-option>
|
|
1087
|
+
`;
|
|
1088
|
+
})}
|
|
1089
|
+
</md-filled-select>
|
|
1090
|
+
</label>
|
|
1091
|
+
`;
|
|
1092
|
+
}
|
|
1093
|
+
renderDateTimeField(field, i) {
|
|
1094
|
+
// return html`
|
|
1095
|
+
// <label id="x" class="label"> ${field.label} </label>
|
|
1096
|
+
// <lit-flatpickr
|
|
1097
|
+
// .name="column-${i}"
|
|
1098
|
+
// .label="${field.label ?? ''}"
|
|
1099
|
+
// allowInput
|
|
1100
|
+
// enableTime
|
|
1101
|
+
// mode="single"
|
|
1102
|
+
// dateFormat="Y-m-d H:i:S"
|
|
1103
|
+
// altFormat="Y-m-d H:i:S"
|
|
1104
|
+
// time_24hr
|
|
1105
|
+
// .defaultDate="${field.defaultValue}"
|
|
1106
|
+
// showMonths="1"
|
|
1107
|
+
// weekNumbers
|
|
1108
|
+
// >
|
|
1109
|
+
// <input />
|
|
1110
|
+
// </lit-flatpickr>
|
|
1111
|
+
// `
|
|
1112
|
+
var _a, _b, _c;
|
|
1113
|
+
return x `
|
|
1114
|
+
<md-filled-text-field
|
|
1115
|
+
.name="column-${i}"
|
|
1116
|
+
style="width: 200px;"
|
|
1117
|
+
.label="${(_a = field.label) !== null && _a !== void 0 ? _a : ''}"
|
|
1118
|
+
type="datetime-local"
|
|
1119
|
+
.value="${(_b = field.defaultValue) !== null && _b !== void 0 ? _b : ''}"
|
|
1120
|
+
supporting-text=${(_c = field.description) !== null && _c !== void 0 ? _c : ''}
|
|
1121
|
+
?required=${field.required && !field.defaultValue}
|
|
1122
|
+
></md-filled-text-field>
|
|
1123
|
+
`;
|
|
1124
|
+
}
|
|
1125
|
+
render() {
|
|
1126
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m;
|
|
1127
|
+
return x `
|
|
1128
|
+
<header>
|
|
1129
|
+
<h3 class="paging" ?active=${(_a = this.inputData) === null || _a === void 0 ? void 0 : _a.title}>${(_b = this.inputData) === null || _b === void 0 ? void 0 : _b.title}</h3>
|
|
1130
|
+
<p class="paging" ?active=${(_c = this.inputData) === null || _c === void 0 ? void 0 : _c.subTitle}>${(_d = this.inputData) === null || _d === void 0 ? void 0 : _d.subTitle}</p>
|
|
1131
|
+
</header>
|
|
1132
|
+
${!((_e = this.inputData) === null || _e === void 0 ? void 0 : _e.formButton)
|
|
1133
|
+
? x `
|
|
1134
|
+
<div class="wrapper">
|
|
1135
|
+
${this.renderForm()}
|
|
1136
|
+
<div class="form-actions">
|
|
1137
|
+
<md-outlined-button form="form" value="cancel" type="button"
|
|
1138
|
+
>Cancel</md-outlined-button
|
|
1139
|
+
>
|
|
1140
|
+
<md-filled-button form="form" value="submit" type="submit" autofocus
|
|
1141
|
+
>Submit</md-filled-button
|
|
1142
|
+
>
|
|
1143
|
+
</div>
|
|
1144
|
+
</div>
|
|
1145
|
+
`
|
|
1146
|
+
: x `
|
|
1147
|
+
<md-fab
|
|
1148
|
+
aria-label="Add"
|
|
1149
|
+
class="edit-fab"
|
|
1150
|
+
style="--md-fab-container-color: ${(_h = (_g = (_f = this.theme) === null || _f === void 0 ? void 0 : _f.theme_object) === null || _g === void 0 ? void 0 : _g.color[0]) !== null && _h !== void 0 ? _h : '#9064f7'}"
|
|
1151
|
+
@click=${this.openFormDialog}
|
|
1152
|
+
>
|
|
1153
|
+
<md-icon slot="icon">add</md-icon>
|
|
1154
|
+
</md-fab>
|
|
1155
|
+
|
|
1156
|
+
<md-dialog
|
|
1157
|
+
aria-label="${(_k = (_j = this.inputData) === null || _j === void 0 ? void 0 : _j.title) !== null && _k !== void 0 ? _k : 'Data Entry'}"
|
|
1158
|
+
class="form"
|
|
1159
|
+
quick
|
|
1160
|
+
?open=${this.dialogOpen}
|
|
1161
|
+
@cancel=${(event) => {
|
|
1162
|
+
event.preventDefault();
|
|
1163
|
+
}}
|
|
1164
|
+
@keydown=${(event) => {
|
|
1165
|
+
if (event.key === 'Escape')
|
|
1166
|
+
event.preventDefault();
|
|
1167
|
+
}}
|
|
1168
|
+
@closed=${() => (this.dialogOpen = false)}
|
|
1169
|
+
>
|
|
1170
|
+
<div slot="headline">${(_m = (_l = this.inputData) === null || _l === void 0 ? void 0 : _l.title) !== null && _m !== void 0 ? _m : 'Data Entry'}</div>
|
|
1171
|
+
${this.renderForm()}
|
|
1172
|
+
<div slot="actions">
|
|
1173
|
+
<md-outlined-button
|
|
1174
|
+
form="form"
|
|
1175
|
+
value="cancel"
|
|
1176
|
+
type="button"
|
|
1177
|
+
@click=${() => { var _a; return (_a = this.dialog) === null || _a === void 0 ? void 0 : _a.close(); }}
|
|
1178
|
+
>Cancel</md-outlined-button
|
|
1179
|
+
>
|
|
1180
|
+
<md-filled-button form="form" value="submit" type="submit" autofocus
|
|
1181
|
+
>Submit</md-filled-button
|
|
1182
|
+
>
|
|
1183
|
+
</div>
|
|
1184
|
+
</md-dialog>
|
|
1185
|
+
`}
|
|
1186
|
+
`;
|
|
1187
|
+
}
|
|
1188
|
+
renderForm() {
|
|
1189
|
+
var _a, _b, _c;
|
|
1190
|
+
return x `
|
|
1191
|
+
<form
|
|
1192
|
+
id="form"
|
|
1193
|
+
slot="content"
|
|
1194
|
+
method="dialog"
|
|
1195
|
+
class="form-content"
|
|
1196
|
+
@submit=${this.handleFormSubmit}
|
|
1197
|
+
>
|
|
1198
|
+
${c((_c = (_b = (_a = this.inputData) === null || _a === void 0 ? void 0 : _a.formFields) === null || _b === void 0 ? void 0 : _b.filter((field) => !field.hiddenField)) !== null && _c !== void 0 ? _c : [], (field, i) => i, (field, i) => {
|
|
1199
|
+
switch (field.type) {
|
|
1200
|
+
case 'textfield':
|
|
1201
|
+
return this.renderTextField(field, i);
|
|
1202
|
+
case 'numberfield':
|
|
1203
|
+
return this.renderNumberField(field, i);
|
|
1204
|
+
case 'datetime':
|
|
1205
|
+
return this.renderDateTimeField(field, i);
|
|
1206
|
+
case 'textarea':
|
|
1207
|
+
return this.renderTextArea(field, i);
|
|
1208
|
+
case 'dropdown':
|
|
1209
|
+
return this.renderDropdown(field, i);
|
|
1210
|
+
case 'checkbox':
|
|
1211
|
+
return this.renderCheckbox(field, i);
|
|
1212
|
+
}
|
|
1213
|
+
})}
|
|
1214
|
+
</form>
|
|
1215
|
+
`;
|
|
1216
|
+
}
|
|
1217
|
+
};
|
|
1218
|
+
WidgetTableEdit.styles = i$4 `
|
|
1219
|
+
:host {
|
|
1220
|
+
display: flex;
|
|
1221
|
+
flex-direction: column;
|
|
1222
|
+
font-family: sans-serif;
|
|
1223
|
+
box-sizing: border-box;
|
|
1224
|
+
position: relative;
|
|
1225
|
+
margin: auto;
|
|
1226
|
+
}
|
|
1227
|
+
|
|
1228
|
+
.edit-fab {
|
|
1229
|
+
--md-fab-icon-color: white;
|
|
1230
|
+
--md-fab-container-color: #007bff;
|
|
1231
|
+
--md-fab-label-text-color: white;
|
|
1232
|
+
position: absolute;
|
|
1233
|
+
bottom: 24px;
|
|
1234
|
+
right: 24px;
|
|
1235
|
+
z-index: 10;
|
|
1236
|
+
}
|
|
1237
|
+
|
|
1238
|
+
.paging:not([active]) {
|
|
1239
|
+
display: none !important;
|
|
1240
|
+
}
|
|
1241
|
+
|
|
1242
|
+
.wrapper {
|
|
1243
|
+
display: flex;
|
|
1244
|
+
flex-direction: column;
|
|
1245
|
+
padding: 16px;
|
|
1246
|
+
box-sizing: border-box;
|
|
1247
|
+
overflow: auto;
|
|
1248
|
+
}
|
|
1249
|
+
|
|
1250
|
+
.form-actions {
|
|
1251
|
+
display: flex;
|
|
1252
|
+
flex-direction: row;
|
|
1253
|
+
justify-content: flex-end;
|
|
1254
|
+
gap: 8px;
|
|
1255
|
+
margin-top: 16px;
|
|
1256
|
+
}
|
|
1257
|
+
|
|
1258
|
+
h3 {
|
|
1259
|
+
margin: 0;
|
|
1260
|
+
overflow: hidden;
|
|
1261
|
+
text-overflow: ellipsis;
|
|
1262
|
+
white-space: nowrap;
|
|
1263
|
+
padding: 16px 0px 0px 16px;
|
|
1264
|
+
box-sizing: border-box;
|
|
1265
|
+
}
|
|
1266
|
+
p {
|
|
1267
|
+
margin: 10px 0 16px 0;
|
|
1268
|
+
font-size: 14px;
|
|
1269
|
+
overflow: hidden;
|
|
1270
|
+
text-overflow: ellipsis;
|
|
1271
|
+
white-space: nowrap;
|
|
1272
|
+
padding-left: 16px;
|
|
1273
|
+
box-sizing: border-box;
|
|
1274
|
+
}
|
|
1275
|
+
|
|
1276
|
+
/* The dialog classes */
|
|
1277
|
+
.form {
|
|
1278
|
+
min-width: 80%;
|
|
1279
|
+
}
|
|
1280
|
+
|
|
1281
|
+
.form [slot='header'] {
|
|
1282
|
+
display: flex;
|
|
1283
|
+
flex-direction: row-reverse;
|
|
1284
|
+
align-items: center;
|
|
1285
|
+
}
|
|
1286
|
+
|
|
1287
|
+
.form .headline {
|
|
1288
|
+
flex: 1;
|
|
1289
|
+
}
|
|
1290
|
+
|
|
1291
|
+
.form-content,
|
|
1292
|
+
.form-row {
|
|
1293
|
+
display: flex;
|
|
1294
|
+
gap: 8px;
|
|
1295
|
+
}
|
|
1296
|
+
|
|
1297
|
+
.form-content {
|
|
1298
|
+
flex-direction: column;
|
|
1299
|
+
gap: 24px;
|
|
1300
|
+
}
|
|
1301
|
+
|
|
1302
|
+
.form-row > * {
|
|
1303
|
+
flex: 1;
|
|
1304
|
+
}
|
|
1305
|
+
|
|
1306
|
+
.checkbox-container {
|
|
1307
|
+
display: flex;
|
|
1308
|
+
align-items: center;
|
|
1309
|
+
gap: 12px;
|
|
1310
|
+
}
|
|
1311
|
+
|
|
1312
|
+
.label {
|
|
1313
|
+
display: flex;
|
|
1314
|
+
flex-direction: column;
|
|
1315
|
+
}
|
|
1316
|
+
|
|
1317
|
+
md-filled-select {
|
|
1318
|
+
flex: 1;
|
|
1319
|
+
}
|
|
1320
|
+
|
|
1321
|
+
md-dialog {
|
|
1322
|
+
overflow: visible;
|
|
1323
|
+
}
|
|
1324
|
+
|
|
1325
|
+
lit-flatpickr {
|
|
1326
|
+
z-index: 1000;
|
|
1327
|
+
}
|
|
1328
|
+
`;
|
|
1329
|
+
__decorate([
|
|
1330
|
+
n({ type: Object })
|
|
1331
|
+
], WidgetTableEdit.prototype, "inputData", void 0);
|
|
1332
|
+
__decorate([
|
|
1333
|
+
n({ type: Object })
|
|
1334
|
+
], WidgetTableEdit.prototype, "theme", void 0);
|
|
1335
|
+
__decorate([
|
|
1336
|
+
r()
|
|
1337
|
+
], WidgetTableEdit.prototype, "themeBgColor", void 0);
|
|
1338
|
+
__decorate([
|
|
1339
|
+
r()
|
|
1340
|
+
], WidgetTableEdit.prototype, "themeTitleColor", void 0);
|
|
1341
|
+
__decorate([
|
|
1342
|
+
r()
|
|
1343
|
+
], WidgetTableEdit.prototype, "themeSubtitleColor", void 0);
|
|
1344
|
+
__decorate([
|
|
1345
|
+
r()
|
|
1346
|
+
], WidgetTableEdit.prototype, "dialogOpen", void 0);
|
|
1347
|
+
__decorate([
|
|
1348
|
+
e('md-dialog')
|
|
1349
|
+
], WidgetTableEdit.prototype, "dialog", void 0);
|
|
1350
|
+
WidgetTableEdit = __decorate([
|
|
1351
|
+
t('widget-form-1.0.2')
|
|
1352
|
+
], WidgetTableEdit);
|
|
1353
|
+
|
|
1354
|
+
export { WidgetTableEdit };
|
|
1355
|
+
//# sourceMappingURL=widget-form.js.map
|