@luzmo/analytics-components-kit 1.0.1-alpha.52 → 1.0.1-alpha.54
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/{de-Cxe7xkT4.cjs → de-BimXztr7.cjs} +1 -1
- package/components/{de-ZPzjN2kc.js → de-Ca_gJecj.js} +0 -1
- package/components/display-settings/display-settings.d.ts +1 -0
- package/components/display-settings/index.cjs +1 -1
- package/components/display-settings/index.js +1 -1
- package/components/display-settings-binning/index.cjs +1 -1
- package/components/display-settings-binning/index.js +2 -2
- 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-grand-totals/index.cjs +1 -1
- package/components/display-settings-grand-totals/index.js +2 -2
- package/components/display-settings-numeric/index.cjs +19 -19
- package/components/display-settings-numeric/index.js +84 -84
- package/components/display-settings-period-over-period/index.cjs +1 -1
- package/components/display-settings-period-over-period/index.js +2 -2
- package/components/draggable-data-item/index.cjs +1 -1
- package/components/draggable-data-item/index.js +3 -3
- package/components/draggable-data-item-level/index.cjs +1 -1
- package/components/draggable-data-item-level/index.js +1 -1
- package/components/droppable-slot/index.cjs +2 -2
- package/components/droppable-slot/index.js +4 -4
- package/components/edit-item/index.cjs +2 -2
- package/components/edit-item/index.js +6 -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/{es-C0JGlz18.js → es-BHAnPxmj.js} +0 -1
- package/components/{es-4dEouIgb.cjs → es-CDzU1gsd.cjs} +1 -1
- package/components/filter-data-item-picker/index.cjs +1 -1
- package/components/filter-data-item-picker/index.js +2 -2
- package/components/filter-expression-picker/index.cjs +1 -1
- package/components/filter-expression-picker/index.js +1 -1
- package/components/filter-item/index.cjs +1 -1
- package/components/filter-item/index.js +3 -3
- package/components/filter-value-picker/index.cjs +1 -1
- package/components/filter-value-picker/index.js +1 -1
- package/components/filter-value-picker-datetime/index.cjs +1 -1
- package/components/filter-value-picker-datetime/index.js +2 -2
- package/components/filter-value-picker-hierarchy/index.cjs +1 -1
- package/components/filter-value-picker-hierarchy/index.js +2 -2
- package/components/filter-value-picker-numeric/index.cjs +1 -1
- package/components/filter-value-picker-numeric/index.js +2 -2
- package/components/{formatter-CQDms6fU.js → formatter-CqU9_98M.js} +1 -0
- package/components/{formatter-DiJYkB6b.cjs → formatter-Lo9PMcxy.cjs} +1 -1
- package/components/{fr-B_-_f-VN.js → fr-CKHxPDre.js} +0 -1
- package/components/{fr-Dwulhlbi.cjs → fr-s3wNsLiB.cjs} +1 -1
- package/components/grid/index.cjs +1 -1
- package/components/grid/index.js +2 -2
- 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-BF9-Mgs_.cjs +249 -0
- package/components/{index-5Z9GD60H.js → index-CZ0HI7ep.js} +2 -2
- package/components/index-D05oY5ND.cjs +178 -0
- package/components/{index-Df-_TbOD.cjs → index-D4JNE3zI.cjs} +1 -1
- package/components/{index-fmbD10nN.js → index-DV63kOPg.js} +269 -242
- package/components/{index-BPVXrhaX.js → index-KFE-WtKZ.js} +5 -3
- package/components/index.cjs +1 -1
- package/components/index.js +4 -4
- package/components/item-context-configs.cjs +225 -0
- package/components/item-context-configs.js +1013 -0
- package/components/item-options-configs.cjs +20 -0
- package/components/item-options-configs.js +109 -0
- package/components/{localized-decorator-DIXYZ3RL.cjs → localized-decorator-CIHsaT2_.cjs} +1 -1
- package/components/{localized-decorator-Bl5gcI6n.js → localized-decorator-Di4TdvRQ.js} +1 -1
- 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/{nl-gdQCG4WV.js → nl-CMVty5rf.js} +0 -1
- package/components/{nl-DxdBIXDd.cjs → nl-DHgf0PUG.cjs} +1 -1
- package/components/{periods.const-7sXlqgEo.cjs → periods.const-CTd6Hskz.cjs} +1 -1
- package/components/{periods.const-B7FKokcH.js → periods.const-D77iT3rK.js} +1 -1
- package/components/{set-locale-DCPlazsZ.cjs → set-locale-CSL8WaxL.cjs} +1 -1
- package/components/{set-locale-GI34z_M7.js → set-locale-CW9yA503.js} +1 -1
- package/components/slot-contents-picker/index.cjs +1 -1
- package/components/slot-contents-picker/index.js +3 -3
- package/components/slot-menu/index.cjs +8 -8
- package/components/slot-menu/index.js +88 -76
- package/components/slot-menu-list/index.cjs +1 -1
- package/components/slot-menu-list/index.js +9 -10
- 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/components/venn-diagram-options.config-CGUMA930.js +23 -0
- package/components/venn-diagram-options.config-mPXMR1CE.cjs +20 -0
- package/custom-elements.json +6 -0
- package/item-definitions/area-chart/area-chart-context.config.d.ts +20 -0
- package/item-definitions/bar-chart/bar-chart-context.config.d.ts +20 -0
- package/item-definitions/box-plot/box-plot-context.config.d.ts +17 -0
- package/item-definitions/bubble-chart/bubble-chart-context.config.d.ts +20 -0
- package/item-definitions/bullet-chart/bullet-chart-context.config.d.ts +20 -0
- package/item-definitions/choropleth-map/choropleth-map-context.config.d.ts +20 -0
- package/item-definitions/circle-pack-chart/circle-pack-chart-context.config.d.ts +17 -0
- package/item-definitions/circular-gauge/circular-gauge-context.config.d.ts +17 -0
- package/item-definitions/circular-gauge/circular-gauge-options.config.d.ts +1 -1
- package/item-definitions/column-chart/column-chart-context.config.d.ts +20 -0
- package/item-definitions/combination-chart/combination-chart-context.config.d.ts +17 -0
- package/item-definitions/conditional-number/conditional-number-context.config.d.ts +17 -0
- package/item-definitions/context-helpers.d.ts +2 -0
- package/item-definitions/date-filter/date-filter-context.config.d.ts +14 -0
- package/item-definitions/donut-chart/donut-chart-context.config.d.ts +17 -0
- package/item-definitions/dropdown-filter/dropdown-filter-context.config.d.ts +14 -0
- package/item-definitions/evolution-number/evolution-number-context.config.d.ts +17 -0
- package/item-definitions/funnel-chart/funnel-chart-context.config.d.ts +17 -0
- package/item-definitions/heat-map/heat-map-context.config.d.ts +17 -0
- package/item-definitions/heat-table/heat-table-context.config.d.ts +20 -0
- package/item-definitions/hexbin-map/hexbin-map-context.config.d.ts +17 -0
- package/item-definitions/image/image-context.config.d.ts +10 -0
- package/item-definitions/item-context.config.d.ts +44 -0
- package/item-definitions/item-options.config.d.ts +44 -0
- package/item-definitions/line-chart/line-chart-context.config.d.ts +20 -0
- package/item-definitions/marker-map/marker-map-context.config.d.ts +17 -0
- package/item-definitions/ohlc-chart/ohlc-chart-context.config.d.ts +26 -0
- package/item-definitions/parallel-coordinates-plot/parallel-coordinates-plot-context.config.d.ts +17 -0
- package/item-definitions/pivot-table/pivot-table-context.config.d.ts +20 -0
- package/item-definitions/pyramid-chart/pyramid-chart-context.config.d.ts +20 -0
- package/item-definitions/radar-chart/radar-chart-context.config.d.ts +20 -0
- package/item-definitions/regular-table/regular-table-context.config.d.ts +14 -0
- package/item-definitions/route-map/route-map-context.config.d.ts +23 -0
- package/item-definitions/sankey-diagram/sankey-diagram-context.config.d.ts +19 -0
- package/item-definitions/scatter-plot/scatter-plot-context.config.d.ts +26 -0
- package/item-definitions/search-filter/search-filter-context.config.d.ts +14 -0
- package/item-definitions/slicer-filter/slicer-filter-context.config.d.ts +17 -0
- package/item-definitions/slider-filter/slider-filter-context.config.d.ts +14 -0
- package/item-definitions/spacer/spacer-context.config.d.ts +10 -0
- package/item-definitions/speedometer-chart/speedometer-chart-context.config.d.ts +17 -0
- package/item-definitions/spike-map/spike-map-context.config.d.ts +20 -0
- package/item-definitions/strip-plot/strip-plot-context.config.d.ts +17 -0
- package/item-definitions/sunburst-chart/sunburst-chart-context.config.d.ts +17 -0
- package/item-definitions/symbol-map/symbol-map-context.config.d.ts +20 -0
- package/item-definitions/text/text-context.config.d.ts +10 -0
- package/item-definitions/treemap-chart/treemap-chart-context.config.d.ts +20 -0
- package/item-definitions/venn-diagram/venn-diagram-context.config.d.ts +20 -0
- package/item-definitions/venn-diagram/venn-diagram-options.config.d.ts +2 -0
- package/item-definitions/video/video-context.config.d.ts +10 -0
- package/item-definitions/wordcloud-chart/wordcloud-chart-context.config.d.ts +20 -0
- package/package.json +11 -1
- package/components/heat-map-options.config-BQ-Afrbi.cjs +0 -20
- package/components/index-3X8Iuo7y.cjs +0 -174
- package/components/index-CSfR7FMV.cjs +0 -249
@@ -17,8 +17,8 @@
|
|
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
|
21
|
-
import { h as
|
20
|
+
import { r as re, E as oe, x as b, n as z } from "./property-DCzt3DR1.js";
|
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";
|
24
24
|
import "./index-BC1LV3vH.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.
|
@@ -60,17 +61,17 @@ function G(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,26 +94,26 @@ 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
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
|
}
|
@@ -122,26 +123,26 @@ function H(e) {
|
|
122
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
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
163
|
function K(e, t, s) {
|
163
|
-
var
|
164
|
-
if (
|
165
|
-
(
|
166
|
-
for (let
|
167
|
-
e.producerIndexOfThis[
|
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
|
/**
|
@@ -207,40 +208,40 @@ function Q(e) {
|
|
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
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
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
|
+
r = e.computation.call(e.wrapper), i = t !== P && t !== q && e.equal.call(e.wrapper, t, r);
|
234
235
|
} catch (n) {
|
235
|
-
|
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
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,42 +302,42 @@ 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
|
+
var t, s, r, i;
|
307
308
|
class n {
|
308
|
-
constructor(
|
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() {
|
@@ -345,54 +346,54 @@ var b;
|
|
345
346
|
return Q(this[d]);
|
346
347
|
}
|
347
348
|
}
|
348
|
-
|
349
|
-
var
|
350
|
-
function
|
351
|
-
let a,
|
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
358
|
return a;
|
358
359
|
}
|
359
|
-
|
360
|
+
u.untrack = w;
|
360
361
|
function X(l) {
|
361
362
|
var a;
|
362
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 ((a = l[d].producerNode) == null ? void 0 : a.map((
|
365
|
+
return ((a = l[d].producerNode) == null ? void 0 : a.map((o) => o.wrapper)) ?? [];
|
365
366
|
}
|
366
|
-
|
367
|
+
u.introspectSources = X;
|
367
368
|
function Y(l) {
|
368
369
|
var a;
|
369
370
|
if (!(0, e.isComputed)(l) && !(0, e.isState)(l))
|
370
371
|
throw new TypeError("Called introspectSinks without a Signal argument");
|
371
|
-
return ((a = l[d].liveConsumerNode) == null ? void 0 : a.map((
|
372
|
+
return ((a = l[d].liveConsumerNode) == null ? void 0 : a.map((o) => o.wrapper)) ?? [];
|
372
373
|
}
|
373
|
-
|
374
|
+
u.introspectSinks = Y;
|
374
375
|
function Z(l) {
|
375
376
|
if (!(0, e.isComputed)(l) && !(0, e.isState)(l))
|
376
377
|
throw new TypeError("Called hasSinks without a Signal argument");
|
377
378
|
const a = l[d].liveConsumerNode;
|
378
379
|
return a ? a.length > 0 : !1;
|
379
380
|
}
|
380
|
-
|
381
|
+
u.hasSinks = Z;
|
381
382
|
function ee(l) {
|
382
383
|
if (!(0, e.isComputed)(l) && !(0, e.isWatcher)(l))
|
383
384
|
throw new TypeError("Called hasSources without a Computed or Watcher argument");
|
384
385
|
const a = l[d].producerNode;
|
385
386
|
return a ? a.length > 0 : !1;
|
386
387
|
}
|
387
|
-
|
388
|
+
u.hasSources = ee;
|
388
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
393
|
constructor(a) {
|
393
|
-
N(this, h), N(this, _), L(this,
|
394
|
-
let
|
395
|
-
|
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.
|
@@ -402,27 +403,27 @@ var b;
|
|
402
403
|
if (!(0, e.isWatcher)(this))
|
403
404
|
throw new TypeError("Called unwatch without Watcher receiver");
|
404
405
|
B(this, _, p).call(this, a);
|
405
|
-
const
|
406
|
-
|
407
|
-
const
|
406
|
+
const o = this[d];
|
407
|
+
o.dirty = !1;
|
408
|
+
const v = S(o);
|
408
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
414
|
unwatch(...a) {
|
414
415
|
if (!(0, e.isWatcher)(this))
|
415
416
|
throw new TypeError("Called unwatch without Watcher receiver");
|
416
417
|
B(this, _, p).call(this, a);
|
417
|
-
const
|
418
|
-
|
419
|
-
for (let
|
420
|
-
if (a.includes(
|
421
|
-
k(
|
422
|
-
const T =
|
423
|
-
if (
|
424
|
-
const
|
425
|
-
U
|
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 b;
|
|
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
|
+
y = d, h = /* @__PURE__ */ new WeakSet(), _ = /* @__PURE__ */ new WeakSet(), p = function(l) {
|
438
439
|
for (const a of l)
|
439
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 = (l) =>
|
442
|
+
}, e.isWatcher = (l) => D(h, l), u.Watcher = te;
|
442
443
|
function se() {
|
443
444
|
var l;
|
444
|
-
return (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 = (n,
|
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
541
|
const n = s;
|
541
542
|
this.context = n.context, this.callback = n.callback, this.subscribe = n.subscribe ?? !1;
|
542
|
-
} else this.context = s, this.callback =
|
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,47 +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
|
-
super(...arguments), this._loadDisplaySettings = new
|
586
|
+
super(...arguments), this._loadDisplaySettings = new ne(this, {
|
586
587
|
task: async ([
|
587
588
|
t,
|
588
589
|
s,
|
589
|
-
|
590
|
-
|
590
|
+
r,
|
591
|
+
i
|
591
592
|
]) => {
|
593
|
+
var m, u, y;
|
592
594
|
const n = [];
|
593
|
-
this.grandTotals && n.push("grandTotals"), r && n.push("periodOverPeriod"), (
|
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));
|
594
596
|
},
|
595
|
-
args: () =>
|
596
|
-
|
597
|
-
|
598
|
-
|
599
|
-
|
600
|
-
|
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
|
+
}
|
601
607
|
}), this.language = "en", this.contentLanguage = "en", this.slotType = "numeric", this.slotContent = {}, this._showIds = !1, this.measureColumns = [], this._settingsTypeLoaded = {
|
602
608
|
binning: !1,
|
603
609
|
datetime: !1,
|
@@ -608,12 +614,12 @@ class m extends De(
|
|
608
614
|
}, this._currentSlotContent = {};
|
609
615
|
}
|
610
616
|
static get styles() {
|
611
|
-
return [
|
617
|
+
return [re(Ve)];
|
612
618
|
}
|
613
619
|
willUpdate() {
|
614
|
-
var
|
615
|
-
const t = (
|
616
|
-
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));
|
617
623
|
}
|
618
624
|
_onSlotContentChange(t) {
|
619
625
|
t.stopPropagation(), t.preventDefault(), this._currentSlotContent = structuredClone(t.detail.slotContent), this._sendEvent(), this.requestUpdate();
|
@@ -648,8 +654,28 @@ class m extends De(
|
|
648
654
|
_toggleIds() {
|
649
655
|
this._showIds = !this._showIds;
|
650
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
|
+
}
|
651
677
|
_renderDisplaySettings() {
|
652
|
-
return
|
678
|
+
return b`<div class="settings-container">
|
653
679
|
<div class="settings-row">
|
654
680
|
<div class="setting">
|
655
681
|
<div class="label-container">
|
@@ -666,16 +692,16 @@ class m extends De(
|
|
666
692
|
</div>
|
667
693
|
<div class="label-action-container">
|
668
694
|
<button class="id-button" @click=${this._toggleIds}>
|
669
|
-
${V(
|
695
|
+
${V(ue)}
|
670
696
|
<luzmo-tooltip self-managed placement="top" size=${this.size}>
|
671
697
|
Show dataset and column id's
|
672
698
|
</luzmo-tooltip>
|
673
699
|
</button>
|
674
|
-
${this.showRemoveButton ?
|
700
|
+
${this.showRemoveButton ? b`<button
|
675
701
|
class="remove-button"
|
676
702
|
@click=${this._removeEvent}
|
677
703
|
>
|
678
|
-
${V(
|
704
|
+
${V(ce)}
|
679
705
|
<luzmo-tooltip
|
680
706
|
self-managed
|
681
707
|
placement="top"
|
@@ -687,40 +713,41 @@ class m extends De(
|
|
687
713
|
</div>
|
688
714
|
</div>
|
689
715
|
</div>
|
690
|
-
${this.grandTotals ?
|
716
|
+
${this.grandTotals ? b`<luzmo-display-settings-grand-totals
|
691
717
|
.language=${this.language}
|
692
718
|
.slotContent=${this._currentSlotContent}
|
693
719
|
.size=${this.size}
|
694
720
|
@slot-content-changed=${this._onSlotContentChange}
|
695
721
|
></luzmo-display-settings-grand-totals>` : ""}
|
696
|
-
${this.slotType === "numeric" || this.slotType === "mixed" && this.
|
722
|
+
${this.slotType === "numeric" || this.slotType === "mixed" && this._currentSlotContent.type === "numeric" ? b`<luzmo-display-settings-numeric
|
697
723
|
.language=${this.language}
|
698
724
|
.slotContent=${this._currentSlotContent}
|
699
725
|
.size=${this.size}
|
700
726
|
.measureColumns=${this.measureColumns}
|
701
727
|
@slot-content-changed=${this._onSlotContentChange}
|
702
728
|
></luzmo-display-settings-numeric>` : ""}
|
703
|
-
${this.slotType !== "numeric" && this.
|
729
|
+
${this.slotType !== "numeric" && this._currentSlotContent.type === "datetime" ? b`<luzmo-display-settings-datetime
|
704
730
|
.language=${this.language}
|
705
731
|
.contentLanguage=${this.contentLanguage}
|
706
732
|
.slotContent=${this._currentSlotContent}
|
707
733
|
.size=${this.size}
|
708
734
|
@slot-content-changed=${this._onSlotContentChange}
|
709
735
|
></luzmo-display-settings-datetime>` : ""}
|
710
|
-
${!["numeric", "mixed"].includes(this.slotType ?? "") && this.
|
736
|
+
${!["numeric", "mixed"].includes(this.slotType ?? "") && this._currentSlotContent.type === "numeric" && !this.binningDisabled ? b`<luzmo-display-settings-binning
|
711
737
|
.language=${this.language}
|
712
738
|
.slotContent=${this._currentSlotContent}
|
713
739
|
.size=${this.size}
|
714
740
|
@slot-content-changed=${this._onSlotContentChange}
|
715
741
|
></luzmo-display-settings-binning>` : ""}
|
716
|
-
${this.periodOverPeriod ?
|
742
|
+
${this.periodOverPeriod ? b`<luzmo-display-settings-period-over-period
|
717
743
|
.language=${this.language}
|
718
744
|
.slotContent=${this._currentSlotContent}
|
719
745
|
.size=${this.size}
|
720
746
|
@slot-content-changed=${this._onSlotContentChange}
|
721
747
|
></luzmo-display-settings-period-over-period>` : ""}
|
748
|
+
${this._renderExampleRow()}
|
722
749
|
</div>
|
723
|
-
${this._showIds ?
|
750
|
+
${this._showIds ? b` <luzmo-divider></luzmo-divider>
|
724
751
|
<div class="ids-container">
|
725
752
|
<div>
|
726
753
|
<span class="id-label">Column: </span>
|
@@ -737,7 +764,7 @@ class m extends De(
|
|
737
764
|
}
|
738
765
|
render() {
|
739
766
|
return this._loadDisplaySettings.render({
|
740
|
-
pending: () =>
|
767
|
+
pending: () => b`<luzmo-progress-circle
|
741
768
|
indeterminate
|
742
769
|
.size=${this.size}
|
743
770
|
></luzmo-progress-circle>`,
|
@@ -746,56 +773,56 @@ class m extends De(
|
|
746
773
|
});
|
747
774
|
}
|
748
775
|
disconnectedCallback() {
|
749
|
-
var t, s,
|
750
|
-
(t = super.disconnectedCallback) == null || t.call(this), (
|
776
|
+
var t, s, r;
|
777
|
+
(t = super.disconnectedCallback) == null || t.call(this), (r = (s = this._loadDisplaySettings).abort) == null || r.call(s);
|
751
778
|
}
|
752
779
|
}
|
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
|
-
|
779
|
-
],
|
780
|
-
|
781
|
-
|
782
|
-
],
|
783
|
-
|
784
|
-
|
785
|
-
],
|
786
|
-
|
787
|
-
|
788
|
-
],
|
789
|
-
|
790
|
-
|
791
|
-
],
|
792
|
-
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);
|
793
820
|
export {
|
794
|
-
|
795
|
-
|
796
|
-
|
797
|
-
|
798
|
-
|
799
|
-
|
800
|
-
|
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
|
801
828
|
};
|