@luzmo/analytics-components-kit 1.0.1-alpha.51 → 1.0.1-alpha.53
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/components/display-settings/display-settings.d.ts +2 -0
- package/components/display-settings/index.cjs +1 -1
- package/components/display-settings/index.js +1 -1
- package/components/display-settings-datetime/display-settings-datetime.d.ts +1 -1
- package/components/display-settings-datetime/index.cjs +43 -56
- package/components/display-settings-datetime/index.js +81 -95
- package/components/display-settings-numeric/index.cjs +17 -17
- package/components/display-settings-numeric/index.js +80 -80
- package/components/draggable-data-item-level/index.cjs +1 -1
- package/components/draggable-data-item-level/index.js +3 -3
- package/components/droppable-slot/droppable-slot.d.ts +2 -0
- package/components/droppable-slot/index.cjs +4 -4
- package/components/droppable-slot/index.js +68 -62
- package/components/edit-item/index.cjs +2 -2
- package/components/edit-item/index.js +4 -4
- package/components/edit-option/index.cjs +1 -1
- package/components/edit-option/index.js +1 -1
- package/components/{en-GB-BtLbN8o_.js → en-GB-UzDYaNfY.js} +1 -1
- package/components/{en-GB-Dd11ROdW.cjs → en-GB-cN3S24Cg.cjs} +1 -1
- package/components/{formatter-CQDms6fU.js → formatter-CqU9_98M.js} +1 -0
- package/components/{formatter-DiJYkB6b.cjs → formatter-Lo9PMcxy.cjs} +1 -1
- package/components/{heat-map-options.config-DQya-lag.js → heat-map-options.config-BnLWe8jS.js} +16 -14
- package/components/heat-map-options.config-DVH-Bb5-.cjs +20 -0
- package/components/{index-CSfR7FMV.cjs → index-BYO1LMBt.cjs} +1 -1
- package/components/{index-BPVXrhaX.js → index-CShrqT1H.js} +3 -3
- package/components/index-D05oY5ND.cjs +178 -0
- package/components/{index-Ct7UvUif.js → index-DV63kOPg.js} +315 -274
- package/components/index.cjs +1 -1
- package/components/index.js +3 -3
- package/components/{marker-map-options.config-CYoq89Oz.js → marker-map-options.config-DPJ955tt.js} +1 -1
- package/components/{marker-map-options.config-_XFv5XWK.cjs → marker-map-options.config-_FYZzRwA.cjs} +1 -1
- package/components/slot-contents-picker/index.cjs +1 -1
- package/components/slot-contents-picker/index.js +1 -1
- package/components/slot-menu/index.cjs +8 -8
- package/components/slot-menu/index.js +120 -101
- package/components/slot-menu/slot-menu.d.ts +4 -0
- package/components/slot-menu-list/index.cjs +1 -1
- package/components/slot-menu-list/index.js +14 -12
- package/components/slot-menu-list/slot-menu-list.d.ts +1 -0
- package/components/{symbol-map-options.config-Bj-UuL9m.js → symbol-map-options.config-DdDA4aa7.js} +1 -1
- package/components/{symbol-map-options.config-sdPlHspI.cjs → symbol-map-options.config-m-lwLTtu.cjs} +1 -1
- package/components/utils.cjs +1 -1
- package/components/utils.js +1 -1
- package/custom-elements.json +16 -1
- package/package.json +1 -1
- package/components/heat-map-options.config-BQ-Afrbi.cjs +0 -20
- package/components/index-DAoFunRy.cjs +0 -174
@@ -17,7 +17,7 @@
|
|
17
17
|
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
18
18
|
* SOFTWARE.
|
19
19
|
* */
|
20
|
-
import { r as oe, x as
|
20
|
+
import { r as re, E as oe, x as b, n as z } from "./property-DCzt3DR1.js";
|
21
21
|
import { h as ne } from "./task-Bh_X-xIU.js";
|
22
22
|
import "./index-CskV_bXp.js";
|
23
23
|
import "./index-CsDgk_sj.js";
|
@@ -26,15 +26,16 @@ import "./index-CbuHBIDB.js";
|
|
26
26
|
import "./index-C3N6qTxJ.js";
|
27
27
|
import "./index-DE3d0E0P.js";
|
28
28
|
import "./index-BmshD32H.js";
|
29
|
-
import { r as
|
30
|
-
import { e as
|
31
|
-
import { a8 as V, af as
|
32
|
-
import {
|
33
|
-
import {
|
34
|
-
|
29
|
+
import { r as ae } from "./state-nDsQPund.js";
|
30
|
+
import { e as le } from "./query-Ddbd72Um.js";
|
31
|
+
import { a8 as V, af as ue, a7 as ce } from "./luzmo-icons-CVeTZ59u.js";
|
32
|
+
import { f as de } from "./formatter-CqU9_98M.js";
|
33
|
+
import { L as pe } from "./focusable-BbymtxWI.js";
|
34
|
+
import { S as he, E as me } from "./sized-mixin-BGzkX2g1.js";
|
35
|
+
var ge = Object.defineProperty, ve = (e, t, s) => t in e ? ge(e, t, { enumerable: !0, configurable: !0, writable: !0, value: s }) : e[t] = s, L = (e, t, s) => (ve(e, typeof t != "symbol" ? t + "" : t, s), s), fe = (e, t, s) => {
|
35
36
|
if (!t.has(e))
|
36
37
|
throw TypeError("Cannot " + s);
|
37
|
-
},
|
38
|
+
}, D = (e, t) => {
|
38
39
|
if (Object(t) !== t)
|
39
40
|
throw TypeError('Cannot use the "in" operator on this value');
|
40
41
|
return e.has(t);
|
@@ -42,7 +43,7 @@ var he = Object.defineProperty, me = (e, t, s) => t in e ? he(e, t, { enumerable
|
|
42
43
|
if (t.has(e))
|
43
44
|
throw TypeError("Cannot add the same private member more than once");
|
44
45
|
t instanceof WeakSet ? t.add(e) : t.set(e, s);
|
45
|
-
}, B = (e, t, s) => (
|
46
|
+
}, B = (e, t, s) => (fe(e, t, "access private method"), s);
|
46
47
|
/**
|
47
48
|
* @license
|
48
49
|
* Copyright Google LLC All Rights Reserved.
|
@@ -50,7 +51,7 @@ var he = Object.defineProperty, me = (e, t, s) => t in e ? he(e, t, { enumerable
|
|
50
51
|
* Use of this source code is governed by an MIT-style license that can be
|
51
52
|
* found in the LICENSE file at https://angular.io/license
|
52
53
|
*/
|
53
|
-
function
|
54
|
+
function G(e, t) {
|
54
55
|
return Object.is(e, t);
|
55
56
|
}
|
56
57
|
/**
|
@@ -60,17 +61,17 @@ function H(e, t) {
|
|
60
61
|
* Use of this source code is governed by an MIT-style license that can be
|
61
62
|
* found in the LICENSE file at https://angular.io/license
|
62
63
|
*/
|
63
|
-
let
|
64
|
+
let c = null, $ = !1, E = 1;
|
64
65
|
const I = /* @__PURE__ */ Symbol("SIGNAL");
|
65
66
|
function S(e) {
|
66
|
-
const t =
|
67
|
-
return
|
67
|
+
const t = c;
|
68
|
+
return c = e, t;
|
68
69
|
}
|
69
|
-
function
|
70
|
-
return
|
70
|
+
function ye() {
|
71
|
+
return c;
|
71
72
|
}
|
72
|
-
function
|
73
|
-
return
|
73
|
+
function be() {
|
74
|
+
return $;
|
74
75
|
}
|
75
76
|
const A = {
|
76
77
|
version: 0,
|
@@ -93,55 +94,55 @@ const A = {
|
|
93
94
|
}
|
94
95
|
};
|
95
96
|
function O(e) {
|
96
|
-
if (
|
97
|
+
if ($)
|
97
98
|
throw new Error(
|
98
99
|
typeof ngDevMode < "u" && ngDevMode ? "Assertion error: signal read during notification phase" : ""
|
99
100
|
);
|
100
|
-
if (
|
101
|
+
if (c === null)
|
101
102
|
return;
|
102
|
-
|
103
|
-
const t =
|
104
|
-
if (
|
105
|
-
const s =
|
106
|
-
k(s,
|
103
|
+
c.consumerOnSignalRead(e);
|
104
|
+
const t = c.nextProducerIndex++;
|
105
|
+
if (x(c), t < c.producerNode.length && c.producerNode[t] !== e && R(c)) {
|
106
|
+
const s = c.producerNode[t];
|
107
|
+
k(s, c.producerIndexOfThis[t]);
|
107
108
|
}
|
108
|
-
|
109
|
+
c.producerNode[t] !== e && (c.producerNode[t] = e, c.producerIndexOfThis[t] = R(c) ? K(e, c, t) : 0), c.producerLastReadVersion[t] = e.version;
|
109
110
|
}
|
110
|
-
function
|
111
|
+
function ze() {
|
111
112
|
E++;
|
112
113
|
}
|
113
|
-
function
|
114
|
+
function H(e) {
|
114
115
|
if (!(!e.dirty && e.lastCleanEpoch === E)) {
|
115
|
-
if (!e.producerMustRecompute(e) && !
|
116
|
+
if (!e.producerMustRecompute(e) && !xe(e)) {
|
116
117
|
e.dirty = !1, e.lastCleanEpoch = E;
|
117
118
|
return;
|
118
119
|
}
|
119
120
|
e.producerRecomputeValue(e), e.dirty = !1, e.lastCleanEpoch = E;
|
120
121
|
}
|
121
122
|
}
|
122
|
-
function
|
123
|
+
function J(e) {
|
123
124
|
if (e.liveConsumerNode === void 0)
|
124
125
|
return;
|
125
|
-
const t =
|
126
|
-
|
126
|
+
const t = $;
|
127
|
+
$ = !0;
|
127
128
|
try {
|
128
129
|
for (const s of e.liveConsumerNode)
|
129
|
-
s.dirty ||
|
130
|
+
s.dirty || we(s);
|
130
131
|
} finally {
|
131
|
-
|
132
|
+
$ = t;
|
132
133
|
}
|
133
134
|
}
|
134
|
-
function
|
135
|
-
return (
|
135
|
+
function Ce() {
|
136
|
+
return (c == null ? void 0 : c.consumerAllowSignalWrites) !== !1;
|
136
137
|
}
|
137
|
-
function
|
138
|
+
function we(e) {
|
138
139
|
var t;
|
139
|
-
e.dirty = !0,
|
140
|
+
e.dirty = !0, J(e), (t = e.consumerMarkedDirty) == null || t.call(e.wrapper ?? e);
|
140
141
|
}
|
141
|
-
function
|
142
|
+
function _e(e) {
|
142
143
|
return e && (e.nextProducerIndex = 0), S(e);
|
143
144
|
}
|
144
|
-
function
|
145
|
+
function Se(e, t) {
|
145
146
|
if (S(t), !(!e || e.producerNode === void 0 || e.producerIndexOfThis === void 0 || e.producerLastReadVersion === void 0)) {
|
146
147
|
if (R(e))
|
147
148
|
for (let s = e.nextProducerIndex; s < e.producerNode.length; s++)
|
@@ -150,49 +151,49 @@ function Ce(e, t) {
|
|
150
151
|
e.producerNode.pop(), e.producerLastReadVersion.pop(), e.producerIndexOfThis.pop();
|
151
152
|
}
|
152
153
|
}
|
153
|
-
function
|
154
|
-
|
154
|
+
function xe(e) {
|
155
|
+
x(e);
|
155
156
|
for (let t = 0; t < e.producerNode.length; t++) {
|
156
|
-
const s = e.producerNode[t],
|
157
|
-
if (
|
157
|
+
const s = e.producerNode[t], r = e.producerLastReadVersion[t];
|
158
|
+
if (r !== s.version || (H(s), r !== s.version))
|
158
159
|
return !0;
|
159
160
|
}
|
160
161
|
return !1;
|
161
162
|
}
|
162
|
-
function
|
163
|
-
var
|
164
|
-
if (
|
165
|
-
(
|
166
|
-
for (let
|
167
|
-
e.producerIndexOfThis[
|
163
|
+
function K(e, t, s) {
|
164
|
+
var r;
|
165
|
+
if (M(e), x(e), e.liveConsumerNode.length === 0) {
|
166
|
+
(r = e.watched) == null || r.call(e.wrapper);
|
167
|
+
for (let i = 0; i < e.producerNode.length; i++)
|
168
|
+
e.producerIndexOfThis[i] = K(e.producerNode[i], e, i);
|
168
169
|
}
|
169
170
|
return e.liveConsumerIndexOfThis.push(s), e.liveConsumerNode.push(t) - 1;
|
170
171
|
}
|
171
172
|
function k(e, t) {
|
172
173
|
var s;
|
173
|
-
if (
|
174
|
+
if (M(e), x(e), typeof ngDevMode < "u" && ngDevMode && t >= e.liveConsumerNode.length)
|
174
175
|
throw new Error(
|
175
176
|
`Assertion error: active consumer index ${t} is out of bounds of ${e.liveConsumerNode.length} consumers)`
|
176
177
|
);
|
177
178
|
if (e.liveConsumerNode.length === 1) {
|
178
179
|
(s = e.unwatched) == null || s.call(e.wrapper);
|
179
|
-
for (let
|
180
|
-
k(e.producerNode[
|
180
|
+
for (let i = 0; i < e.producerNode.length; i++)
|
181
|
+
k(e.producerNode[i], e.producerIndexOfThis[i]);
|
181
182
|
}
|
182
|
-
const
|
183
|
-
if (e.liveConsumerNode[t] = e.liveConsumerNode[
|
184
|
-
const
|
185
|
-
|
183
|
+
const r = e.liveConsumerNode.length - 1;
|
184
|
+
if (e.liveConsumerNode[t] = e.liveConsumerNode[r], e.liveConsumerIndexOfThis[t] = e.liveConsumerIndexOfThis[r], e.liveConsumerNode.length--, e.liveConsumerIndexOfThis.length--, t < e.liveConsumerNode.length) {
|
185
|
+
const i = e.liveConsumerIndexOfThis[t], n = e.liveConsumerNode[t];
|
186
|
+
x(n), n.producerIndexOfThis[i] = t;
|
186
187
|
}
|
187
188
|
}
|
188
189
|
function R(e) {
|
189
190
|
var t;
|
190
191
|
return e.consumerIsAlwaysLive || (((t = e == null ? void 0 : e.liveConsumerNode) == null ? void 0 : t.length) ?? 0) > 0;
|
191
192
|
}
|
192
|
-
function
|
193
|
+
function x(e) {
|
193
194
|
e.producerNode ?? (e.producerNode = []), e.producerIndexOfThis ?? (e.producerIndexOfThis = []), e.producerLastReadVersion ?? (e.producerLastReadVersion = []);
|
194
195
|
}
|
195
|
-
function
|
196
|
+
function M(e) {
|
196
197
|
e.liveConsumerNode ?? (e.liveConsumerNode = []), e.liveConsumerIndexOfThis ?? (e.liveConsumerIndexOfThis = []);
|
197
198
|
}
|
198
199
|
/**
|
@@ -202,45 +203,45 @@ function U(e) {
|
|
202
203
|
* Use of this source code is governed by an MIT-style license that can be
|
203
204
|
* found in the LICENSE file at https://angular.io/license
|
204
205
|
*/
|
205
|
-
function
|
206
|
-
if (
|
206
|
+
function Q(e) {
|
207
|
+
if (H(e), O(e), e.value === q)
|
207
208
|
throw e.error;
|
208
209
|
return e.value;
|
209
210
|
}
|
210
|
-
function
|
211
|
-
const t = Object.create(
|
211
|
+
function $e(e) {
|
212
|
+
const t = Object.create(Te);
|
212
213
|
t.computation = e;
|
213
|
-
const s = () =>
|
214
|
+
const s = () => Q(t);
|
214
215
|
return s[I] = t, s;
|
215
216
|
}
|
216
|
-
const
|
217
|
+
const P = /* @__PURE__ */ Symbol("UNSET"), W = /* @__PURE__ */ Symbol("COMPUTING"), q = /* @__PURE__ */ Symbol("ERRORED"), Te = {
|
217
218
|
...A,
|
218
|
-
value:
|
219
|
+
value: P,
|
219
220
|
dirty: !0,
|
220
221
|
error: null,
|
221
|
-
equal:
|
222
|
+
equal: G,
|
222
223
|
producerMustRecompute(e) {
|
223
|
-
return e.value ===
|
224
|
+
return e.value === P || e.value === W;
|
224
225
|
},
|
225
226
|
producerRecomputeValue(e) {
|
226
|
-
if (e.value ===
|
227
|
+
if (e.value === W)
|
227
228
|
throw new Error("Detected cycle in computations.");
|
228
229
|
const t = e.value;
|
229
|
-
e.value =
|
230
|
-
const s =
|
231
|
-
let
|
230
|
+
e.value = W;
|
231
|
+
const s = _e(e);
|
232
|
+
let r, i = !1;
|
232
233
|
try {
|
233
|
-
|
234
|
-
} catch (
|
235
|
-
|
234
|
+
r = e.computation.call(e.wrapper), i = t !== P && t !== q && e.equal.call(e.wrapper, t, r);
|
235
|
+
} catch (n) {
|
236
|
+
r = q, e.error = n;
|
236
237
|
} finally {
|
237
|
-
|
238
|
+
Se(e, s);
|
238
239
|
}
|
239
|
-
if (
|
240
|
+
if (i) {
|
240
241
|
e.value = t;
|
241
242
|
return;
|
242
243
|
}
|
243
|
-
e.value =
|
244
|
+
e.value = r, e.version++;
|
244
245
|
}
|
245
246
|
};
|
246
247
|
/**
|
@@ -250,12 +251,12 @@ const W = /* @__PURE__ */ Symbol("UNSET"), D = /* @__PURE__ */ Symbol("COMPUTING
|
|
250
251
|
* Use of this source code is governed by an MIT-style license that can be
|
251
252
|
* found in the LICENSE file at https://angular.io/license
|
252
253
|
*/
|
253
|
-
function
|
254
|
+
function Ne() {
|
254
255
|
throw new Error();
|
255
256
|
}
|
256
|
-
let
|
257
|
-
function
|
258
|
-
|
257
|
+
let Ee = Ne;
|
258
|
+
function Ie() {
|
259
|
+
Ee();
|
259
260
|
}
|
260
261
|
/**
|
261
262
|
* @license
|
@@ -264,25 +265,25 @@ function Ne() {
|
|
264
265
|
* Use of this source code is governed by an MIT-style license that can be
|
265
266
|
* found in the LICENSE file at https://angular.io/license
|
266
267
|
*/
|
267
|
-
function
|
268
|
-
const t = Object.create(
|
268
|
+
function Oe(e) {
|
269
|
+
const t = Object.create(De);
|
269
270
|
t.value = e;
|
270
271
|
const s = () => (O(t), t.value);
|
271
272
|
return s[I] = t, s;
|
272
273
|
}
|
273
|
-
function
|
274
|
+
function ke() {
|
274
275
|
return O(this), this.value;
|
275
276
|
}
|
276
|
-
function
|
277
|
-
|
277
|
+
function Le(e, t) {
|
278
|
+
Ce() || Ie(), e.equal.call(e.wrapper, e.value, t) || (e.value = t, Pe(e));
|
278
279
|
}
|
279
|
-
const
|
280
|
+
const De = {
|
280
281
|
...A,
|
281
|
-
equal:
|
282
|
+
equal: G,
|
282
283
|
value: void 0
|
283
284
|
};
|
284
|
-
function
|
285
|
-
e.version++,
|
285
|
+
function Pe(e) {
|
286
|
+
e.version++, ze(), J(e);
|
286
287
|
}
|
287
288
|
/**
|
288
289
|
* @license
|
@@ -301,128 +302,128 @@ function Le(e) {
|
|
301
302
|
* limitations under the License.
|
302
303
|
*/
|
303
304
|
const d = Symbol("node");
|
304
|
-
var
|
305
|
+
var C;
|
305
306
|
((e) => {
|
306
|
-
var t, s,
|
307
|
-
class
|
308
|
-
constructor(
|
307
|
+
var t, s, r, i;
|
308
|
+
class n {
|
309
|
+
constructor(y, h = {}) {
|
309
310
|
N(this, s), L(this, t);
|
310
|
-
const p =
|
311
|
+
const p = Oe(y)[I];
|
311
312
|
if (this[d] = p, p.wrapper = this, h) {
|
312
|
-
const
|
313
|
-
|
313
|
+
const w = h.equals;
|
314
|
+
w && (p.equal = w), p.watched = h[e.subtle.watched], p.unwatched = h[e.subtle.unwatched];
|
314
315
|
}
|
315
316
|
}
|
316
317
|
get() {
|
317
318
|
if (!(0, e.isState)(this))
|
318
319
|
throw new TypeError("Wrong receiver type for Signal.State.prototype.get");
|
319
|
-
return
|
320
|
+
return ke.call(this[d]);
|
320
321
|
}
|
321
|
-
set(
|
322
|
+
set(y) {
|
322
323
|
if (!(0, e.isState)(this))
|
323
324
|
throw new TypeError("Wrong receiver type for Signal.State.prototype.set");
|
324
|
-
if (
|
325
|
+
if (be())
|
325
326
|
throw new Error("Writes to signals not permitted during Watcher callback");
|
326
327
|
const h = this[d];
|
327
|
-
|
328
|
+
Le(h, y);
|
328
329
|
}
|
329
330
|
}
|
330
|
-
t = d, s = /* @__PURE__ */ new WeakSet(), e.isState = (
|
331
|
-
class
|
331
|
+
t = d, s = /* @__PURE__ */ new WeakSet(), e.isState = (u) => typeof u == "object" && D(s, u), e.State = n;
|
332
|
+
class m {
|
332
333
|
// Create a Signal which evaluates to the value returned by the callback.
|
333
334
|
// Callback is called with this signal as the parameter.
|
334
|
-
constructor(
|
335
|
-
N(this,
|
336
|
-
const p =
|
335
|
+
constructor(y, h) {
|
336
|
+
N(this, i), L(this, r);
|
337
|
+
const p = $e(y)[I];
|
337
338
|
if (p.consumerAllowSignalWrites = !0, this[d] = p, p.wrapper = this, h) {
|
338
|
-
const
|
339
|
-
|
339
|
+
const w = h.equals;
|
340
|
+
w && (p.equal = w), p.watched = h[e.subtle.watched], p.unwatched = h[e.subtle.unwatched];
|
340
341
|
}
|
341
342
|
}
|
342
343
|
get() {
|
343
344
|
if (!(0, e.isComputed)(this))
|
344
345
|
throw new TypeError("Wrong receiver type for Signal.Computed.prototype.get");
|
345
|
-
return
|
346
|
+
return Q(this[d]);
|
346
347
|
}
|
347
348
|
}
|
348
|
-
|
349
|
-
var
|
350
|
-
function
|
351
|
-
let
|
349
|
+
r = d, i = /* @__PURE__ */ new WeakSet(), e.isComputed = (u) => typeof u == "object" && D(i, u), e.Computed = m, ((u) => {
|
350
|
+
var y, h, _, p;
|
351
|
+
function w(l) {
|
352
|
+
let a, o = null;
|
352
353
|
try {
|
353
|
-
|
354
|
+
o = S(null), a = l();
|
354
355
|
} finally {
|
355
|
-
S(
|
356
|
+
S(o);
|
356
357
|
}
|
357
|
-
return
|
358
|
+
return a;
|
358
359
|
}
|
359
|
-
|
360
|
-
function
|
361
|
-
var
|
362
|
-
if (!(0, e.isComputed)(
|
360
|
+
u.untrack = w;
|
361
|
+
function X(l) {
|
362
|
+
var a;
|
363
|
+
if (!(0, e.isComputed)(l) && !(0, e.isWatcher)(l))
|
363
364
|
throw new TypeError("Called introspectSources without a Computed or Watcher argument");
|
364
|
-
return ((
|
365
|
+
return ((a = l[d].producerNode) == null ? void 0 : a.map((o) => o.wrapper)) ?? [];
|
365
366
|
}
|
366
|
-
|
367
|
-
function
|
368
|
-
var
|
369
|
-
if (!(0, e.isComputed)(
|
367
|
+
u.introspectSources = X;
|
368
|
+
function Y(l) {
|
369
|
+
var a;
|
370
|
+
if (!(0, e.isComputed)(l) && !(0, e.isState)(l))
|
370
371
|
throw new TypeError("Called introspectSinks without a Signal argument");
|
371
|
-
return ((
|
372
|
+
return ((a = l[d].liveConsumerNode) == null ? void 0 : a.map((o) => o.wrapper)) ?? [];
|
372
373
|
}
|
373
|
-
|
374
|
-
function
|
375
|
-
if (!(0, e.isComputed)(
|
374
|
+
u.introspectSinks = Y;
|
375
|
+
function Z(l) {
|
376
|
+
if (!(0, e.isComputed)(l) && !(0, e.isState)(l))
|
376
377
|
throw new TypeError("Called hasSinks without a Signal argument");
|
377
|
-
const
|
378
|
-
return
|
378
|
+
const a = l[d].liveConsumerNode;
|
379
|
+
return a ? a.length > 0 : !1;
|
379
380
|
}
|
380
|
-
|
381
|
-
function
|
382
|
-
if (!(0, e.isComputed)(
|
381
|
+
u.hasSinks = Z;
|
382
|
+
function ee(l) {
|
383
|
+
if (!(0, e.isComputed)(l) && !(0, e.isWatcher)(l))
|
383
384
|
throw new TypeError("Called hasSources without a Computed or Watcher argument");
|
384
|
-
const
|
385
|
-
return
|
385
|
+
const a = l[d].producerNode;
|
386
|
+
return a ? a.length > 0 : !1;
|
386
387
|
}
|
387
|
-
|
388
|
-
class
|
388
|
+
u.hasSources = ee;
|
389
|
+
class te {
|
389
390
|
// When a (recursive) source of Watcher is written to, call this callback,
|
390
391
|
// if it hasn't already been called since the last `watch` call.
|
391
392
|
// No signals may be read or written during the notify.
|
392
|
-
constructor(
|
393
|
-
N(this, h), N(this, _), L(this,
|
394
|
-
let
|
395
|
-
|
393
|
+
constructor(a) {
|
394
|
+
N(this, h), N(this, _), L(this, y);
|
395
|
+
let o = Object.create(A);
|
396
|
+
o.wrapper = this, o.consumerMarkedDirty = a, o.consumerIsAlwaysLive = !0, o.consumerAllowSignalWrites = !1, o.producerNode = [], this[d] = o;
|
396
397
|
}
|
397
398
|
// Add these signals to the Watcher's set, and set the watcher to run its
|
398
399
|
// notify callback next time any signal in the set (or one of its dependencies) changes.
|
399
400
|
// Can be called with no arguments just to reset the "notified" state, so that
|
400
401
|
// the notify callback will be invoked again.
|
401
|
-
watch(...
|
402
|
+
watch(...a) {
|
402
403
|
if (!(0, e.isWatcher)(this))
|
403
404
|
throw new TypeError("Called unwatch without Watcher receiver");
|
404
|
-
B(this, _, p).call(this,
|
405
|
-
const
|
406
|
-
|
407
|
-
const
|
408
|
-
for (const T of
|
405
|
+
B(this, _, p).call(this, a);
|
406
|
+
const o = this[d];
|
407
|
+
o.dirty = !1;
|
408
|
+
const v = S(o);
|
409
|
+
for (const T of a)
|
409
410
|
O(T[d]);
|
410
|
-
S(
|
411
|
+
S(v);
|
411
412
|
}
|
412
413
|
// Remove these signals from the watched set (e.g., for an effect which is disposed)
|
413
|
-
unwatch(...
|
414
|
+
unwatch(...a) {
|
414
415
|
if (!(0, e.isWatcher)(this))
|
415
416
|
throw new TypeError("Called unwatch without Watcher receiver");
|
416
|
-
B(this, _, p).call(this,
|
417
|
-
const
|
418
|
-
|
419
|
-
for (let
|
420
|
-
if (
|
421
|
-
k(
|
422
|
-
const T =
|
423
|
-
if (
|
424
|
-
const ie =
|
425
|
-
U
|
417
|
+
B(this, _, p).call(this, a);
|
418
|
+
const o = this[d];
|
419
|
+
x(o);
|
420
|
+
for (let v = o.producerNode.length - 1; v >= 0; v--)
|
421
|
+
if (a.includes(o.producerNode[v].wrapper)) {
|
422
|
+
k(o.producerNode[v], o.producerIndexOfThis[v]);
|
423
|
+
const T = o.producerNode.length - 1;
|
424
|
+
if (o.producerNode[v] = o.producerNode[T], o.producerIndexOfThis[v] = o.producerIndexOfThis[T], o.producerNode.length--, o.producerIndexOfThis.length--, o.nextProducerIndex--, v < o.producerNode.length) {
|
425
|
+
const ie = o.producerIndexOfThis[v], U = o.producerNode[v];
|
426
|
+
M(U), U.liveConsumerIndexOfThis[ie] = v;
|
426
427
|
}
|
427
428
|
}
|
428
429
|
}
|
@@ -431,44 +432,44 @@ var y;
|
|
431
432
|
getPending() {
|
432
433
|
if (!(0, e.isWatcher)(this))
|
433
434
|
throw new TypeError("Called getPending without Watcher receiver");
|
434
|
-
return this[d].producerNode.filter((
|
435
|
+
return this[d].producerNode.filter((o) => o.dirty).map((o) => o.wrapper);
|
435
436
|
}
|
436
437
|
}
|
437
|
-
|
438
|
-
for (const
|
439
|
-
if (!(0, e.isComputed)(
|
438
|
+
y = d, h = /* @__PURE__ */ new WeakSet(), _ = /* @__PURE__ */ new WeakSet(), p = function(l) {
|
439
|
+
for (const a of l)
|
440
|
+
if (!(0, e.isComputed)(a) && !(0, e.isState)(a))
|
440
441
|
throw new TypeError("Called watch/unwatch without a Computed or State argument");
|
441
|
-
}, e.isWatcher = (
|
442
|
-
function
|
443
|
-
var
|
444
|
-
return (
|
442
|
+
}, e.isWatcher = (l) => D(h, l), u.Watcher = te;
|
443
|
+
function se() {
|
444
|
+
var l;
|
445
|
+
return (l = ye()) == null ? void 0 : l.wrapper;
|
445
446
|
}
|
446
|
-
|
447
|
+
u.currentComputed = se, u.watched = Symbol("watched"), u.unwatched = Symbol("unwatched");
|
447
448
|
})(e.subtle || (e.subtle = {}));
|
448
|
-
})(
|
449
|
+
})(C || (C = {}));
|
449
450
|
/**
|
450
451
|
* @license
|
451
452
|
* Copyright 2023 Google LLC
|
452
453
|
* SPDX-License-Identifier: BSD-3-Clause
|
453
454
|
*/
|
454
|
-
const
|
455
|
+
const We = Symbol("SignalWatcherBrand"), Re = new FinalizationRegistry(({ watcher: e, signal: t }) => {
|
455
456
|
e.unwatch(t);
|
456
457
|
}), F = /* @__PURE__ */ new WeakMap();
|
457
|
-
function
|
458
|
-
return e[
|
458
|
+
function qe(e) {
|
459
|
+
return e[We] === !0 ? (console.warn("SignalWatcher should not be applied to the same class more than once."), e) : class extends e {
|
459
460
|
constructor() {
|
460
|
-
super(...arguments), this._$St = new
|
461
|
+
super(...arguments), this._$St = new C.State(0), this._$Si = !1, this._$So = !0, this._$Sh = /* @__PURE__ */ new Set();
|
461
462
|
}
|
462
463
|
_$Sl() {
|
463
464
|
if (this._$Su !== void 0) return;
|
464
|
-
this._$Sv = new
|
465
|
+
this._$Sv = new C.Computed(() => {
|
465
466
|
this._$St.get(), super.performUpdate();
|
466
467
|
});
|
467
|
-
const t = this._$Su = new
|
468
|
+
const t = this._$Su = new C.subtle.Watcher(function() {
|
468
469
|
const s = F.get(this);
|
469
470
|
s !== void 0 && (s._$Si === !1 && s.requestUpdate(), this.watch());
|
470
471
|
});
|
471
|
-
F.set(t, this),
|
472
|
+
F.set(t, this), Re.register(this, { watcher: t, signal: this._$Sv }), t.watch(this._$Sv);
|
472
473
|
}
|
473
474
|
_$Sp() {
|
474
475
|
this._$Su !== void 0 && (this._$Su.unwatch(this._$Sv), this._$Sv = void 0, this._$Su = void 0);
|
@@ -483,8 +484,8 @@ function De(e) {
|
|
483
484
|
this.isUpdatePending = !1, this._$Sh.clear();
|
484
485
|
}
|
485
486
|
}
|
486
|
-
requestUpdate(t, s,
|
487
|
-
this._$So = !0, super.requestUpdate(t, s,
|
487
|
+
requestUpdate(t, s, r) {
|
488
|
+
this._$So = !0, super.requestUpdate(t, s, r);
|
488
489
|
}
|
489
490
|
connectedCallback() {
|
490
491
|
super.connectedCallback(), this.requestUpdate();
|
@@ -509,17 +510,17 @@ function De(e) {
|
|
509
510
|
* Copyright 2023 Google LLC
|
510
511
|
* SPDX-License-Identifier: BSD-3-Clause
|
511
512
|
*/
|
512
|
-
|
513
|
-
|
514
|
-
const
|
513
|
+
C.State;
|
514
|
+
C.Computed;
|
515
|
+
const ot = (e, t) => new C.State(e, t), nt = (e, t) => new C.Computed(e, t);
|
515
516
|
/**
|
516
517
|
* @license
|
517
518
|
* Copyright 2021 Google LLC
|
518
519
|
* SPDX-License-Identifier: BSD-3-Clause
|
519
520
|
*/
|
520
|
-
let
|
521
|
-
constructor(t, s,
|
522
|
-
super("context-request", { bubbles: !0, composed: !0 }), this.context = t, this.contextTarget = s, this.callback =
|
521
|
+
let Ae = class extends Event {
|
522
|
+
constructor(t, s, r, i) {
|
523
|
+
super("context-request", { bubbles: !0, composed: !0 }), this.context = t, this.contextTarget = s, this.callback = r, this.subscribe = i ?? !1;
|
523
524
|
}
|
524
525
|
};
|
525
526
|
/**
|
@@ -533,13 +534,13 @@ let Re = class extends Event {
|
|
533
534
|
* SPDX-License-Identifier: BSD-3-Clause
|
534
535
|
*/
|
535
536
|
class j {
|
536
|
-
constructor(t, s,
|
537
|
-
if (this.subscribe = !1, this.provided = !1, this.value = void 0, this.t = (
|
538
|
-
this.unsubscribe && (this.unsubscribe !==
|
537
|
+
constructor(t, s, r, i) {
|
538
|
+
if (this.subscribe = !1, this.provided = !1, this.value = void 0, this.t = (n, m) => {
|
539
|
+
this.unsubscribe && (this.unsubscribe !== m && (this.provided = !1, this.unsubscribe()), this.subscribe || this.unsubscribe()), this.value = n, this.host.requestUpdate(), this.provided && !this.subscribe || (this.provided = !0, this.callback && this.callback(n, m)), this.unsubscribe = m;
|
539
540
|
}, this.host = t, s.context !== void 0) {
|
540
|
-
const
|
541
|
-
this.context =
|
542
|
-
} else this.context = s, this.callback =
|
541
|
+
const n = s;
|
542
|
+
this.context = n.context, this.callback = n.callback, this.subscribe = n.subscribe ?? !1;
|
543
|
+
} else this.context = s, this.callback = r, this.subscribe = i ?? !1;
|
543
544
|
this.host.addController(this);
|
544
545
|
}
|
545
546
|
hostConnected() {
|
@@ -549,7 +550,7 @@ class j {
|
|
549
550
|
this.unsubscribe && (this.unsubscribe(), this.unsubscribe = void 0);
|
550
551
|
}
|
551
552
|
dispatchRequest() {
|
552
|
-
this.host.dispatchEvent(new
|
553
|
+
this.host.dispatchEvent(new Ae(this.context, this.host, this.t, this.subscribe));
|
553
554
|
}
|
554
555
|
}
|
555
556
|
/**
|
@@ -557,37 +558,52 @@ class j {
|
|
557
558
|
* Copyright 2022 Google LLC
|
558
559
|
* SPDX-License-Identifier: BSD-3-Clause
|
559
560
|
*/
|
560
|
-
function
|
561
|
-
return (s,
|
562
|
-
typeof
|
563
|
-
new j(this, { context: e, callback: (
|
564
|
-
s.set.call(this,
|
561
|
+
function Me({ context: e, subscribe: t }) {
|
562
|
+
return (s, r) => {
|
563
|
+
typeof r == "object" ? r.addInitializer(function() {
|
564
|
+
new j(this, { context: e, callback: (i) => {
|
565
|
+
s.set.call(this, i);
|
565
566
|
}, subscribe: t });
|
566
|
-
}) : s.constructor.addInitializer((
|
567
|
-
new j(
|
568
|
-
r
|
567
|
+
}) : s.constructor.addInitializer((i) => {
|
568
|
+
new j(i, { context: e, callback: (n) => {
|
569
|
+
i[r] = n;
|
569
570
|
}, subscribe: t });
|
570
571
|
});
|
571
572
|
};
|
572
573
|
}
|
573
|
-
const
|
574
|
-
var
|
575
|
-
for (var
|
576
|
-
(
|
577
|
-
return
|
574
|
+
const Ue = Symbol("slot-store-context"), Ve = ":host{font-family:var(--luzmo-display-settings-font-family, var(--luzmo-font-family));font-size:var(--luzmo-display-settings-font-size, var(--display-settings-font-size));color:var(--luzmo-display-settings-font-color, var(--luzmo-font-color))}.settings-container{display:flex;flex-direction:column;gap:var(--luzmo-spacing-2)}.settings-row{display:flex;justify-content:flex-start;align-items:center;gap:var(--luzmo-display-settings-gap, var(--display-settings-gap))}luzmo-divider{margin:var(--luzmo-display-settings-ids-container-vertical-margin, var(--display-settings-ids-container-vertical-margin)) 0}.setting{display:flex;align-items:center}.label-action-container{display:flex;align-items:center;justify-content:space-between;gap:var(--luzmo-display-settings-info-to-remove-icon-gap, var(--display-settings-info-to-remove-icon-gap))}.id-button,.remove-button{outline:none;cursor:pointer;border:none;background:none;font-size:var(--luzmo-display-settings-font-size, var(--display-settings-font-size));color:var(--luzmo-display-settings-font-color, var(--luzmo-font-color))}.remove-button{display:block;width:var(--luzmo-display-settings-remove-button-size, var(--display-settings-remove-button-size));height:var(--luzmo-display-settings-remove-button-size, var(--display-settings-remove-button-size));border-radius:var(--luzmo-display-settings-remove-button-border-radius, 50%)}.remove-button:hover{background-color:var(--luzmo-display-settings-remove-button-background-color-hover, var(--luzmo-background-color-hover))}.remove-button:active,.remove-button:focus{background-color:var(--luzmo-display-settings-remove-button-background-color-down, var(--luzmo-background-color-down))}.remove-button:focus-visible{box-shadow:0 0 0 var(--luzmo-display-settings-remove-button-indicator-thickness, var(--display-settings-remove-button-indicator-thickness)) var(--highcontrast-remove-button-indicator-color, var(--luzmo-display-settings-remove-button-indicator-color, var(--display-settings-remove-button-indicator-color)))}.ids-container{display:flex;flex-direction:column;gap:var(--luzmo-display-settings-gap, var(--display-settings-gap));border-radius:50%}.id-label{text-transform:var(--luzmo-display-settings-id-label-text-transform, var(--display-settings-id-label-text-transform));font-size:var(--luzmo-display-settings-id-label-font-size, var(--display-settings-id-label-font-size));color:var(--luzmo-display-settings-id-label-color, var(--display-settings-id-label-color))}.example-container{line-height:var(--luzmo-display-settings-example-height, var(--display-settings-example-height));font-size:var(--luzmo-display-settings-example-font-size, var(--display-settings-example-font-size));color:var(--luzmo-display-settings-example-color, var(--display-settings-example-color))}.example-container .example-label{font-weight:var(--luzmo-display-settings-example-label-font-weight, var(--display-settings-example-label-font-weight));color:var(--luzmo-display-settings-example-label-color, var(--display-settings-example-label-color))}.example-container .example-language{text-transform:uppercase;color:var(--luzmo-display-settings-example-language-color, var(--display-settings-example-language-color))}.example{font-style:italic;white-space:nowrap}:host{--display-settings-font-family: var(--luzmo-font-family);--display-settings-id-label-text-transform: uppercase;--display-settings-id-label-color: var(--luzmo-secondary);--display-settings-remove-button-indicator-color: var(--luzmo-primary);--display-settings-remove-button-indicator-thickness: var( --luzmo-border-width )}:host{--display-settings-font-size: var(--luzmo-font-size);--display-settings-id-label-font-size: var(--luzmo-font-size-s);--display-settings-gap: var(--luzmo-spacing-3);--display-settings-ids-container-vertical-margin: var(--luzmo-spacing-4);--display-settings-info-to-remove-icon-gap: var(--luzmo-spacing-5);--display-settings-remove-button-size: var(--luzmo-component-height)}:host([size=s]){--display-settings-id-label-font-size: var(--luzmo-font-size-s);--display-settings-font-size: var(--luzmo-font-size-s);--display-settings-gap: var(--luzmo-spacing-3);--display-settings-ids-container-vertical-margin: var(--luzmo-spacing-3);--display-settings-info-to-remove-icon-gap: var(--luzmo-spacing-4);--display-settings-remove-button-size: var(--luzmo-component-height-s)}:host([size=l]){--display-settings-id-label-font-size: var(--luzmo-font-size);--display-settings-font-size: var(--luzmo-font-size-l);--display-settings-gap: var(--luzmo-spacing-4);--display-settings-ids-container-vertical-margin: var(--luzmo-spacing-5);--display-settings-info-to-remove-icon-gap: calc( var(--luzmo-spacing-5) + var(--luzmo-spacing-1) );--display-settings-remove-button-size: var(--luzmo-component-height-l)}:host([size=xl]){--display-settings-id-label-font-size: var(--luzmo-font-size-l);--display-settings-font-size: var(--luzmo-font-size-xl);--display-settings-gap: var(--luzmo-spacing-5);--display-settings-ids-container-vertical-margin: calc( var(--luzmo-spacing-5) + var(--luzmo-spacing-1) );--display-settings-info-to-remove-icon-gap: calc( var(--luzmo-spacing-5) + var(--luzmo-spacing-2) );--display-settings-remove-button-size: var(--luzmo-component-height-xl)}:host{--display-settings-example-font-size: var(--luzmo-font-size);--display-settings-example-color: var(--luzmo-font-color);--display-settings-example-label-font-weight: bold;--display-settings-example-label-color: var(--luzmo-primary);--display-settings-example-language-color: var(--luzmo-primary)}:host{--display-settings-example-height: var(--luzmo-component-height)}:host([size=s]){--display-settings-example-height: var(--luzmo-component-height-s);--display-settings-example-font-size: var(--luzmo-font-size-s)}:host([size=l]){--display-settings-example-height: var(--luzmo-component-height-l);--display-settings-example-font-size: var(--luzmo-font-size)}:host([size=xl]){--display-settings-example-height: var(--luzmo-component-height-xl);--display-settings-example-font-size: var(--luzmo-font-size-l)}";
|
575
|
+
var Be = Object.defineProperty, f = (e, t, s, r) => {
|
576
|
+
for (var i = void 0, n = e.length - 1, m; n >= 0; n--)
|
577
|
+
(m = e[n]) && (i = m(t, s, i) || i);
|
578
|
+
return i && Be(t, s, i), i;
|
578
579
|
};
|
579
|
-
class
|
580
|
-
|
581
|
-
validSizes: Object.values(
|
580
|
+
class g extends qe(
|
581
|
+
he(pe, {
|
582
|
+
validSizes: Object.values(me)
|
582
583
|
})
|
583
584
|
) {
|
584
585
|
constructor() {
|
585
586
|
super(...arguments), this._loadDisplaySettings = new ne(this, {
|
586
|
-
task: async ([
|
587
|
-
|
588
|
-
|
587
|
+
task: async ([
|
588
|
+
t,
|
589
|
+
s,
|
590
|
+
r,
|
591
|
+
i
|
592
|
+
]) => {
|
593
|
+
var m, u, y;
|
594
|
+
const n = [];
|
595
|
+
this.grandTotals && n.push("grandTotals"), r && n.push("periodOverPeriod"), (t === "numeric" || t === "mixed" && ((m = this._currentSlotContent) == null ? void 0 : m.type) === "numeric") && n.push("numeric"), t !== "numeric" && ((u = this._currentSlotContent) == null ? void 0 : u.type) === "datetime" && n.push("datetime"), !["numeric", "mixed"].includes(t ?? "") && ((y = this._currentSlotContent) == null ? void 0 : y.type) === "numeric" && !i && n.push("binning"), r && !this._settingsTypeLoaded.periodOverPeriod && (await import("./display-settings-period-over-period/index.js"), this._settingsTypeLoaded.periodOverPeriod = !0), n.length > 0 && !s && (n.includes("numeric") && !this._settingsTypeLoaded.numeric ? (await import("./display-settings-numeric/index.js"), this._settingsTypeLoaded.numeric = !0) : n.includes("datetime") && !this._settingsTypeLoaded.datetime ? (await import("./display-settings-datetime/index.js"), this._settingsTypeLoaded.datetime = !0) : n.includes("binning") && !this._settingsTypeLoaded.binning ? (await import("./display-settings-binning/index.js"), this._settingsTypeLoaded.binning = !0) : n.includes("grandTotals") && !this._settingsTypeLoaded.grandTotals && (await import("./display-settings-grand-totals/index.js"), this._settingsTypeLoaded.grandTotals = !0));
|
589
596
|
},
|
590
|
-
args: () =>
|
597
|
+
args: () => {
|
598
|
+
var t;
|
599
|
+
return [
|
600
|
+
this.slotType,
|
601
|
+
this.hideDisplaySettings,
|
602
|
+
(t = this._store) == null ? void 0 : t.periodOverPeriodEnabled.get(),
|
603
|
+
this.binningDisabled,
|
604
|
+
this.slotContent
|
605
|
+
];
|
606
|
+
}
|
591
607
|
}), this.language = "en", this.contentLanguage = "en", this.slotType = "numeric", this.slotContent = {}, this._showIds = !1, this.measureColumns = [], this._settingsTypeLoaded = {
|
592
608
|
binning: !1,
|
593
609
|
datetime: !1,
|
@@ -598,12 +614,12 @@ class m extends De(
|
|
598
614
|
}, this._currentSlotContent = {};
|
599
615
|
}
|
600
616
|
static get styles() {
|
601
|
-
return [
|
617
|
+
return [re(Ve)];
|
602
618
|
}
|
603
619
|
willUpdate() {
|
604
|
-
var
|
605
|
-
const t = (
|
606
|
-
this.periodOverPeriod
|
620
|
+
var r;
|
621
|
+
const t = (r = this._store) == null ? void 0 : r.activeSlotContents.get(), s = this._store.periodOverPeriodEnabled.get();
|
622
|
+
s !== this.periodOverPeriod && (this.periodOverPeriod = s), t && t !== this._currentSlotContent && (this._currentSlotContent = structuredClone(t));
|
607
623
|
}
|
608
624
|
_onSlotContentChange(t) {
|
609
625
|
t.stopPropagation(), t.preventDefault(), this._currentSlotContent = structuredClone(t.detail.slotContent), this._sendEvent(), this.requestUpdate();
|
@@ -638,8 +654,28 @@ class m extends De(
|
|
638
654
|
_toggleIds() {
|
639
655
|
this._showIds = !this._showIds;
|
640
656
|
}
|
657
|
+
_renderExampleRow() {
|
658
|
+
var m;
|
659
|
+
const t = this.slotType === "numeric" || this.slotType === "mixed" && this._currentSlotContent.type === "numeric", s = this.slotType !== "datetime" && this._currentSlotContent.type === "datetime";
|
660
|
+
if (!(t || s))
|
661
|
+
return oe;
|
662
|
+
const r = !this._currentSlotContent.datetimeDisplayMode || this._currentSlotContent.datetimeDisplayMode === "default", i = t ? 1234.56 : r ? /* @__PURE__ */ new Date() : 1, n = de(
|
663
|
+
{
|
664
|
+
...this._currentSlotContent,
|
665
|
+
type: t ? "numeric" : "datetime"
|
666
|
+
},
|
667
|
+
{
|
668
|
+
locale: this.contentLanguage,
|
669
|
+
level: (m = this._currentSlotContent) == null ? void 0 : m.level
|
670
|
+
}
|
671
|
+
)(i);
|
672
|
+
return b`<div class="settings-row example-container">
|
673
|
+
<span class="example-label">Example:</span>
|
674
|
+
<span class="example">${n}</span>
|
675
|
+
</div>`;
|
676
|
+
}
|
641
677
|
_renderDisplaySettings() {
|
642
|
-
return
|
678
|
+
return b`<div class="settings-container">
|
643
679
|
<div class="settings-row">
|
644
680
|
<div class="setting">
|
645
681
|
<div class="label-container">
|
@@ -656,16 +692,16 @@ class m extends De(
|
|
656
692
|
</div>
|
657
693
|
<div class="label-action-container">
|
658
694
|
<button class="id-button" @click=${this._toggleIds}>
|
659
|
-
${V(
|
695
|
+
${V(ue)}
|
660
696
|
<luzmo-tooltip self-managed placement="top" size=${this.size}>
|
661
697
|
Show dataset and column id's
|
662
698
|
</luzmo-tooltip>
|
663
699
|
</button>
|
664
|
-
${this.showRemoveButton ?
|
700
|
+
${this.showRemoveButton ? b`<button
|
665
701
|
class="remove-button"
|
666
702
|
@click=${this._removeEvent}
|
667
703
|
>
|
668
|
-
${V(
|
704
|
+
${V(ce)}
|
669
705
|
<luzmo-tooltip
|
670
706
|
self-managed
|
671
707
|
placement="top"
|
@@ -677,40 +713,41 @@ class m extends De(
|
|
677
713
|
</div>
|
678
714
|
</div>
|
679
715
|
</div>
|
680
|
-
${this.grandTotals ?
|
716
|
+
${this.grandTotals ? b`<luzmo-display-settings-grand-totals
|
681
717
|
.language=${this.language}
|
682
718
|
.slotContent=${this._currentSlotContent}
|
683
719
|
.size=${this.size}
|
684
720
|
@slot-content-changed=${this._onSlotContentChange}
|
685
721
|
></luzmo-display-settings-grand-totals>` : ""}
|
686
|
-
${this.slotType === "numeric" || this.slotType === "mixed" && this.
|
722
|
+
${this.slotType === "numeric" || this.slotType === "mixed" && this._currentSlotContent.type === "numeric" ? b`<luzmo-display-settings-numeric
|
687
723
|
.language=${this.language}
|
688
724
|
.slotContent=${this._currentSlotContent}
|
689
725
|
.size=${this.size}
|
690
726
|
.measureColumns=${this.measureColumns}
|
691
727
|
@slot-content-changed=${this._onSlotContentChange}
|
692
728
|
></luzmo-display-settings-numeric>` : ""}
|
693
|
-
${this.slotType !== "numeric" && this.
|
729
|
+
${this.slotType !== "numeric" && this._currentSlotContent.type === "datetime" ? b`<luzmo-display-settings-datetime
|
694
730
|
.language=${this.language}
|
695
731
|
.contentLanguage=${this.contentLanguage}
|
696
732
|
.slotContent=${this._currentSlotContent}
|
697
733
|
.size=${this.size}
|
698
734
|
@slot-content-changed=${this._onSlotContentChange}
|
699
735
|
></luzmo-display-settings-datetime>` : ""}
|
700
|
-
${!["numeric", "mixed"].includes(this.slotType ?? "") && this.
|
736
|
+
${!["numeric", "mixed"].includes(this.slotType ?? "") && this._currentSlotContent.type === "numeric" && !this.binningDisabled ? b`<luzmo-display-settings-binning
|
701
737
|
.language=${this.language}
|
702
738
|
.slotContent=${this._currentSlotContent}
|
703
739
|
.size=${this.size}
|
704
740
|
@slot-content-changed=${this._onSlotContentChange}
|
705
741
|
></luzmo-display-settings-binning>` : ""}
|
706
|
-
${this.periodOverPeriod ?
|
742
|
+
${this.periodOverPeriod ? b`<luzmo-display-settings-period-over-period
|
707
743
|
.language=${this.language}
|
708
744
|
.slotContent=${this._currentSlotContent}
|
709
745
|
.size=${this.size}
|
710
746
|
@slot-content-changed=${this._onSlotContentChange}
|
711
747
|
></luzmo-display-settings-period-over-period>` : ""}
|
748
|
+
${this._renderExampleRow()}
|
712
749
|
</div>
|
713
|
-
${this._showIds ?
|
750
|
+
${this._showIds ? b` <luzmo-divider></luzmo-divider>
|
714
751
|
<div class="ids-container">
|
715
752
|
<div>
|
716
753
|
<span class="id-label">Column: </span>
|
@@ -727,7 +764,7 @@ class m extends De(
|
|
727
764
|
}
|
728
765
|
render() {
|
729
766
|
return this._loadDisplaySettings.render({
|
730
|
-
pending: () =>
|
767
|
+
pending: () => b`<luzmo-progress-circle
|
731
768
|
indeterminate
|
732
769
|
.size=${this.size}
|
733
770
|
></luzmo-progress-circle>`,
|
@@ -735,53 +772,57 @@ class m extends De(
|
|
735
772
|
error: () => this._renderDisplaySettings()
|
736
773
|
});
|
737
774
|
}
|
775
|
+
disconnectedCallback() {
|
776
|
+
var t, s, r;
|
777
|
+
(t = super.disconnectedCallback) == null || t.call(this), (r = (s = this._loadDisplaySettings).abort) == null || r.call(s);
|
778
|
+
}
|
738
779
|
}
|
739
|
-
|
740
|
-
|
741
|
-
],
|
742
|
-
|
743
|
-
|
744
|
-
],
|
745
|
-
|
746
|
-
|
747
|
-
],
|
748
|
-
|
749
|
-
|
750
|
-
],
|
751
|
-
|
752
|
-
|
753
|
-
],
|
754
|
-
|
755
|
-
|
756
|
-
],
|
757
|
-
|
758
|
-
|
759
|
-
],
|
760
|
-
|
761
|
-
|
762
|
-
],
|
763
|
-
|
764
|
-
|
765
|
-
],
|
766
|
-
|
767
|
-
|
768
|
-
],
|
769
|
-
|
770
|
-
|
771
|
-
],
|
772
|
-
|
773
|
-
|
774
|
-
],
|
775
|
-
|
776
|
-
|
777
|
-
],
|
778
|
-
customElements.get("luzmo-display-settings") || customElements.define("luzmo-display-settings",
|
780
|
+
f([
|
781
|
+
z({ type: String })
|
782
|
+
], g.prototype, "language");
|
783
|
+
f([
|
784
|
+
z({ type: String, attribute: "content-language" })
|
785
|
+
], g.prototype, "contentLanguage");
|
786
|
+
f([
|
787
|
+
z({ type: Boolean, attribute: "hide-display-settings" })
|
788
|
+
], g.prototype, "hideDisplaySettings");
|
789
|
+
f([
|
790
|
+
z({ type: Boolean, attribute: "binning-disabled" })
|
791
|
+
], g.prototype, "binningDisabled");
|
792
|
+
f([
|
793
|
+
z({ type: Boolean, attribute: "grand-totals" })
|
794
|
+
], g.prototype, "grandTotals");
|
795
|
+
f([
|
796
|
+
z({ type: Boolean })
|
797
|
+
], g.prototype, "periodOverPeriod");
|
798
|
+
f([
|
799
|
+
z({ type: Boolean, attribute: "show-remove-button" })
|
800
|
+
], g.prototype, "showRemoveButton");
|
801
|
+
f([
|
802
|
+
z({ type: String, attribute: "slot-type" })
|
803
|
+
], g.prototype, "slotType");
|
804
|
+
f([
|
805
|
+
z()
|
806
|
+
], g.prototype, "slotContent");
|
807
|
+
f([
|
808
|
+
ae()
|
809
|
+
], g.prototype, "_showIds");
|
810
|
+
f([
|
811
|
+
z({ type: Array, reflect: !1 })
|
812
|
+
], g.prototype, "measureColumns");
|
813
|
+
f([
|
814
|
+
le("luzmo-multi-language-field")
|
815
|
+
], g.prototype, "_multiLanguageFieldElement");
|
816
|
+
f([
|
817
|
+
Me({ context: Ue, subscribe: !0 })
|
818
|
+
], g.prototype, "_store");
|
819
|
+
customElements.get("luzmo-display-settings") || customElements.define("luzmo-display-settings", g);
|
779
820
|
export {
|
780
|
-
|
781
|
-
|
782
|
-
|
783
|
-
|
784
|
-
|
785
|
-
|
786
|
-
|
821
|
+
g as L,
|
822
|
+
Ae as a,
|
823
|
+
Me as c,
|
824
|
+
qe as e,
|
825
|
+
nt as i,
|
826
|
+
ot as r,
|
827
|
+
Ue as s
|
787
828
|
};
|