@luzmo/analytics-components-kit 1.0.1-alpha.51 → 1.0.1-alpha.52
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 +1 -0
- package/components/display-settings/index.cjs +1 -1
- package/components/display-settings/index.js +1 -1
- 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/{index-DAoFunRy.cjs → index-3X8Iuo7y.cjs} +11 -11
- package/components/{index-Ct7UvUif.js → index-fmbD10nN.js} +123 -109
- package/components/index.cjs +1 -1
- package/components/index.js +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 +3 -3
- package/components/slot-menu/index.js +37 -30
- 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 +19 -16
- package/components/slot-menu-list/slot-menu-list.d.ts +1 -0
- package/custom-elements.json +10 -1
- package/package.json +1 -1
@@ -17,25 +17,25 @@
|
|
17
17
|
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
18
18
|
* SOFTWARE.
|
19
19
|
* */
|
20
|
-
"use strict";const c=require("./property-Cu4Q1hS4.cjs"),
|
20
|
+
"use strict";const c=require("./property-Cu4Q1hS4.cjs"),le=require("./task-CwmAXlv0.cjs");require("./index-DtohCwyO.cjs");require("./index-j8UKjHqY.cjs");require("./index-DSQyBS9Z.cjs");require("./index-Tx5oQjbt.cjs");require("./index-BKwbYw6x.cjs");require("./index-cHKqEi5-.cjs");require("./index-CYeQkVeJ.cjs");const ue=require("./state-fyl3IYMu.cjs"),ce=require("./query-D5qWDopr.cjs"),T=require("./luzmo-icons-DonyjSXg.cjs"),de=require("./focusable-DAGGGYyz.cjs"),V=require("./sized-mixin-j_7aJM4b.cjs");var pe=Object.defineProperty,he=(e,t,s)=>t in e?pe(e,t,{enumerable:!0,configurable:!0,writable:!0,value:s}):e[t]=s,q=(e,t,s)=>(he(e,typeof t!="symbol"?t+"":t,s),s),me=(e,t,s)=>{if(!t.has(e))throw TypeError("Cannot "+s)},P=(e,t)=>{if(Object(t)!==t)throw TypeError('Cannot use the "in" operator on this value');return e.has(t)},N=(e,t,s)=>{if(t.has(e))throw TypeError("Cannot add the same private member more than once");t instanceof WeakSet?t.add(e):t.set(e,s)},B=(e,t,s)=>(me(e,t,"access private method"),s);/**
|
21
21
|
* @license
|
22
22
|
* Copyright Google LLC All Rights Reserved.
|
23
23
|
*
|
24
24
|
* Use of this source code is governed by an MIT-style license that can be
|
25
25
|
* found in the LICENSE file at https://angular.io/license
|
26
|
-
*/function
|
26
|
+
*/function G(e,t){return Object.is(e,t)}/**
|
27
27
|
* @license
|
28
28
|
* Copyright Google LLC All Rights Reserved.
|
29
29
|
*
|
30
30
|
* Use of this source code is governed by an MIT-style license that can be
|
31
31
|
* found in the LICENSE file at https://angular.io/license
|
32
|
-
*/let u=null,x=!1,E=1;const I=Symbol("SIGNAL");function _(e){const t=u;return u=e,t}function ge(){return u}function ve(){return x}const A={version:0,lastCleanEpoch:0,dirty:!1,producerNode:void 0,producerLastReadVersion:void 0,producerIndexOfThis:void 0,nextProducerIndex:0,liveConsumerNode:void 0,liveConsumerIndexOfThis:void 0,consumerAllowSignalWrites:!1,consumerIsAlwaysLive:!1,producerMustRecompute:()=>!1,producerRecomputeValue:()=>{},consumerMarkedDirty:()=>{},consumerOnSignalRead:()=>{}};function O(e){if(x)throw new Error(typeof ngDevMode<"u"&&ngDevMode?"Assertion error: signal read during notification phase":"");if(u===null)return;u.consumerOnSignalRead(e);const t=u.nextProducerIndex++;if(S(u),t<u.producerNode.length&&u.producerNode[t]!==e&&D(u)){const s=u.producerNode[t];k(s,u.producerIndexOfThis[t])}u.producerNode[t]!==e&&(u.producerNode[t]=e,u.producerIndexOfThis[t]=D(u)?
|
32
|
+
*/let u=null,x=!1,E=1;const I=Symbol("SIGNAL");function _(e){const t=u;return u=e,t}function ge(){return u}function ve(){return x}const A={version:0,lastCleanEpoch:0,dirty:!1,producerNode:void 0,producerLastReadVersion:void 0,producerIndexOfThis:void 0,nextProducerIndex:0,liveConsumerNode:void 0,liveConsumerIndexOfThis:void 0,consumerAllowSignalWrites:!1,consumerIsAlwaysLive:!1,producerMustRecompute:()=>!1,producerRecomputeValue:()=>{},consumerMarkedDirty:()=>{},consumerOnSignalRead:()=>{}};function O(e){if(x)throw new Error(typeof ngDevMode<"u"&&ngDevMode?"Assertion error: signal read during notification phase":"");if(u===null)return;u.consumerOnSignalRead(e);const t=u.nextProducerIndex++;if(S(u),t<u.producerNode.length&&u.producerNode[t]!==e&&D(u)){const s=u.producerNode[t];k(s,u.producerIndexOfThis[t])}u.producerNode[t]!==e&&(u.producerNode[t]=e,u.producerIndexOfThis[t]=D(u)?K(e,u,t):0),u.producerLastReadVersion[t]=e.version}function fe(){E++}function H(e){if(!(!e.dirty&&e.lastCleanEpoch===E)){if(!e.producerMustRecompute(e)&&!we(e)){e.dirty=!1,e.lastCleanEpoch=E;return}e.producerRecomputeValue(e),e.dirty=!1,e.lastCleanEpoch=E}}function J(e){if(e.liveConsumerNode===void 0)return;const t=x;x=!0;try{for(const s of e.liveConsumerNode)s.dirty||be(s)}finally{x=t}}function ye(){return(u==null?void 0:u.consumerAllowSignalWrites)!==!1}function be(e){var t;e.dirty=!0,J(e),(t=e.consumerMarkedDirty)==null||t.call(e.wrapper??e)}function ze(e){return e&&(e.nextProducerIndex=0),_(e)}function Ce(e,t){if(_(t),!(!e||e.producerNode===void 0||e.producerIndexOfThis===void 0||e.producerLastReadVersion===void 0)){if(D(e))for(let s=e.nextProducerIndex;s<e.producerNode.length;s++)k(e.producerNode[s],e.producerIndexOfThis[s]);for(;e.producerNode.length>e.nextProducerIndex;)e.producerNode.pop(),e.producerLastReadVersion.pop(),e.producerIndexOfThis.pop()}}function we(e){S(e);for(let t=0;t<e.producerNode.length;t++){const s=e.producerNode[t],o=e.producerLastReadVersion[t];if(o!==s.version||(H(s),o!==s.version))return!0}return!1}function K(e,t,s){var o;if(U(e),S(e),e.liveConsumerNode.length===0){(o=e.watched)==null||o.call(e.wrapper);for(let r=0;r<e.producerNode.length;r++)e.producerIndexOfThis[r]=K(e.producerNode[r],e,r)}return e.liveConsumerIndexOfThis.push(s),e.liveConsumerNode.push(t)-1}function k(e,t){var s;if(U(e),S(e),typeof ngDevMode<"u"&&ngDevMode&&t>=e.liveConsumerNode.length)throw new Error(`Assertion error: active consumer index ${t} is out of bounds of ${e.liveConsumerNode.length} consumers)`);if(e.liveConsumerNode.length===1){(s=e.unwatched)==null||s.call(e.wrapper);for(let r=0;r<e.producerNode.length;r++)k(e.producerNode[r],e.producerIndexOfThis[r])}const o=e.liveConsumerNode.length-1;if(e.liveConsumerNode[t]=e.liveConsumerNode[o],e.liveConsumerIndexOfThis[t]=e.liveConsumerIndexOfThis[o],e.liveConsumerNode.length--,e.liveConsumerIndexOfThis.length--,t<e.liveConsumerNode.length){const r=e.liveConsumerIndexOfThis[t],n=e.liveConsumerNode[t];S(n),n.producerIndexOfThis[r]=t}}function D(e){var t;return e.consumerIsAlwaysLive||(((t=e==null?void 0:e.liveConsumerNode)==null?void 0:t.length)??0)>0}function S(e){e.producerNode??(e.producerNode=[]),e.producerIndexOfThis??(e.producerIndexOfThis=[]),e.producerLastReadVersion??(e.producerLastReadVersion=[])}function U(e){e.liveConsumerNode??(e.liveConsumerNode=[]),e.liveConsumerIndexOfThis??(e.liveConsumerIndexOfThis=[])}/**
|
33
33
|
* @license
|
34
34
|
* Copyright Google LLC All Rights Reserved.
|
35
35
|
*
|
36
36
|
* Use of this source code is governed by an MIT-style license that can be
|
37
37
|
* found in the LICENSE file at https://angular.io/license
|
38
|
-
*/function
|
38
|
+
*/function Q(e){if(H(e),O(e),e.value===R)throw e.error;return e.value}function _e(e){const t=Object.create(Se);t.computation=e;const s=()=>Q(t);return s[I]=t,s}const L=Symbol("UNSET"),W=Symbol("COMPUTING"),R=Symbol("ERRORED"),Se={...A,value:L,dirty:!0,error:null,equal:G,producerMustRecompute(e){return e.value===L||e.value===W},producerRecomputeValue(e){if(e.value===W)throw new Error("Detected cycle in computations.");const t=e.value;e.value=W;const s=ze(e);let o,r=!1;try{o=e.computation.call(e.wrapper),r=t!==L&&t!==R&&e.equal.call(e.wrapper,t,o)}catch(n){o=R,e.error=n}finally{Ce(e,s)}if(r){e.value=t;return}e.value=o,e.version++}};/**
|
39
39
|
* @license
|
40
40
|
* Copyright Google LLC All Rights Reserved.
|
41
41
|
*
|
@@ -47,7 +47,7 @@
|
|
47
47
|
*
|
48
48
|
* Use of this source code is governed by an MIT-style license that can be
|
49
49
|
* found in the LICENSE file at https://angular.io/license
|
50
|
-
*/function Ne(e){const t=Object.create(Oe);t.value=e;const s=()=>(O(t),t.value);return s[I]=t,s}function Ee(){return O(this),this.value}function Ie(e,t){ye()||Te(),e.equal.call(e.wrapper,e.value,t)||(e.value=t,ke(e))}const Oe={...A,equal:
|
50
|
+
*/function Ne(e){const t=Object.create(Oe);t.value=e;const s=()=>(O(t),t.value);return s[I]=t,s}function Ee(){return O(this),this.value}function Ie(e,t){ye()||Te(),e.equal.call(e.wrapper,e.value,t)||(e.value=t,ke(e))}const Oe={...A,equal:G,value:void 0};function ke(e){e.version++,fe(),J(e)}/**
|
51
51
|
* @license
|
52
52
|
* Copyright 2024 Bloomberg Finance L.P.
|
53
53
|
*
|
@@ -62,11 +62,11 @@
|
|
62
62
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
63
63
|
* See the License for the specific language governing permissions and
|
64
64
|
* limitations under the License.
|
65
|
-
*/const p=Symbol("node");var y;(e=>{var t,s,o,r;class
|
65
|
+
*/const p=Symbol("node");var y;(e=>{var t,s,o,r;class n{constructor(z,m={}){N(this,s),q(this,t);const h=Ne(z)[I];if(this[p]=h,h.wrapper=this,m){const C=m.equals;C&&(h.equal=C),h.watched=m[e.subtle.watched],h.unwatched=m[e.subtle.unwatched]}}get(){if(!(0,e.isState)(this))throw new TypeError("Wrong receiver type for Signal.State.prototype.get");return Ee.call(this[p])}set(z){if(!(0,e.isState)(this))throw new TypeError("Wrong receiver type for Signal.State.prototype.set");if(ve())throw new Error("Writes to signals not permitted during Watcher callback");const m=this[p];Ie(m,z)}}t=p,s=new WeakSet,e.isState=d=>typeof d=="object"&&P(s,d),e.State=n;class b{constructor(z,m){N(this,r),q(this,o);const h=_e(z)[I];if(h.consumerAllowSignalWrites=!0,this[p]=h,h.wrapper=this,m){const C=m.equals;C&&(h.equal=C),h.watched=m[e.subtle.watched],h.unwatched=m[e.subtle.unwatched]}}get(){if(!(0,e.isComputed)(this))throw new TypeError("Wrong receiver type for Signal.Computed.prototype.get");return Q(this[p])}}o=p,r=new WeakSet,e.isComputed=d=>typeof d=="object"&&P(r,d),e.Computed=b,(d=>{var z,m,w,h;function C(l){let a,i=null;try{i=_(null),a=l()}finally{_(i)}return a}d.untrack=C;function te(l){var a;if(!(0,e.isComputed)(l)&&!(0,e.isWatcher)(l))throw new TypeError("Called introspectSources without a Computed or Watcher argument");return((a=l[p].producerNode)==null?void 0:a.map(i=>i.wrapper))??[]}d.introspectSources=te;function se(l){var a;if(!(0,e.isComputed)(l)&&!(0,e.isState)(l))throw new TypeError("Called introspectSinks without a Signal argument");return((a=l[p].liveConsumerNode)==null?void 0:a.map(i=>i.wrapper))??[]}d.introspectSinks=se;function re(l){if(!(0,e.isComputed)(l)&&!(0,e.isState)(l))throw new TypeError("Called hasSinks without a Signal argument");const a=l[p].liveConsumerNode;return a?a.length>0:!1}d.hasSinks=re;function ie(l){if(!(0,e.isComputed)(l)&&!(0,e.isWatcher)(l))throw new TypeError("Called hasSources without a Computed or Watcher argument");const a=l[p].producerNode;return a?a.length>0:!1}d.hasSources=ie;class oe{constructor(a){N(this,m),N(this,w),q(this,z);let i=Object.create(A);i.wrapper=this,i.consumerMarkedDirty=a,i.consumerIsAlwaysLive=!0,i.consumerAllowSignalWrites=!1,i.producerNode=[],this[p]=i}watch(...a){if(!(0,e.isWatcher)(this))throw new TypeError("Called unwatch without Watcher receiver");B(this,w,h).call(this,a);const i=this[p];i.dirty=!1;const v=_(i);for(const $ of a)O($[p]);_(v)}unwatch(...a){if(!(0,e.isWatcher)(this))throw new TypeError("Called unwatch without Watcher receiver");B(this,w,h).call(this,a);const i=this[p];S(i);for(let v=i.producerNode.length-1;v>=0;v--)if(a.includes(i.producerNode[v].wrapper)){k(i.producerNode[v],i.producerIndexOfThis[v]);const $=i.producerNode.length-1;if(i.producerNode[v]=i.producerNode[$],i.producerIndexOfThis[v]=i.producerIndexOfThis[$],i.producerNode.length--,i.producerIndexOfThis.length--,i.nextProducerIndex--,v<i.producerNode.length){const ae=i.producerIndexOfThis[v],M=i.producerNode[v];U(M),M.liveConsumerIndexOfThis[ae]=v}}}getPending(){if(!(0,e.isWatcher)(this))throw new TypeError("Called getPending without Watcher receiver");return this[p].producerNode.filter(i=>i.dirty).map(i=>i.wrapper)}}z=p,m=new WeakSet,w=new WeakSet,h=function(l){for(const a of l)if(!(0,e.isComputed)(a)&&!(0,e.isState)(a))throw new TypeError("Called watch/unwatch without a Computed or State argument")},e.isWatcher=l=>P(m,l),d.Watcher=oe;function ne(){var l;return(l=ge())==null?void 0:l.wrapper}d.currentComputed=ne,d.watched=Symbol("watched"),d.unwatched=Symbol("unwatched")})(e.subtle||(e.subtle={}))})(y||(y={}));/**
|
66
66
|
* @license
|
67
67
|
* Copyright 2023 Google LLC
|
68
68
|
* SPDX-License-Identifier: BSD-3-Clause
|
69
|
-
*/const qe=Symbol("SignalWatcherBrand"),Pe=new FinalizationRegistry(({watcher:e,signal:t})=>{e.unwatch(t)}),F=new WeakMap;function
|
69
|
+
*/const qe=Symbol("SignalWatcherBrand"),Pe=new FinalizationRegistry(({watcher:e,signal:t})=>{e.unwatch(t)}),F=new WeakMap;function X(e){return e[qe]===!0?(console.warn("SignalWatcher should not be applied to the same class more than once."),e):class extends e{constructor(){super(...arguments),this._$St=new y.State(0),this._$Si=!1,this._$So=!0,this._$Sh=new Set}_$Sl(){if(this._$Su!==void 0)return;this._$Sv=new y.Computed(()=>{this._$St.get(),super.performUpdate()});const t=this._$Su=new y.subtle.Watcher(function(){const s=F.get(this);s!==void 0&&(s._$Si===!1&&s.requestUpdate(),this.watch())});F.set(t,this),Pe.register(this,{watcher:t,signal:this._$Sv}),t.watch(this._$Sv)}_$Sp(){this._$Su!==void 0&&(this._$Su.unwatch(this._$Sv),this._$Sv=void 0,this._$Su=void 0)}performUpdate(){this.isUpdatePending&&(this._$Sl(),this._$Si=!0,this._$St.set(this._$St.get()+1),this._$Si=!1,this._$Sv.get())}update(t){try{this._$So?(this._$So=!1,super.update(t)):this._$Sh.forEach(s=>s.commit())}finally{this.isUpdatePending=!1,this._$Sh.clear()}}requestUpdate(t,s,o){this._$So=!0,super.requestUpdate(t,s,o)}connectedCallback(){super.connectedCallback(),this.requestUpdate()}disconnectedCallback(){super.disconnectedCallback(),queueMicrotask(()=>{this.isConnected===!1&&this._$Sp()})}_(t){this._$Sh.add(t);const s=this._$So;this.requestUpdate(),this._$So=s}m(t){this._$Sh.delete(t)}}}/**
|
70
70
|
* @license
|
71
71
|
* Copyright 2023 Google LLC
|
72
72
|
* SPDX-License-Identifier: BSD-3-Clause
|
@@ -74,7 +74,7 @@
|
|
74
74
|
* @license
|
75
75
|
* Copyright 2021 Google LLC
|
76
76
|
* SPDX-License-Identifier: BSD-3-Clause
|
77
|
-
*/let
|
77
|
+
*/let Y=class extends Event{constructor(t,s,o,r){super("context-request",{bubbles:!0,composed:!0}),this.context=t,this.contextTarget=s,this.callback=o,this.subscribe=r??!1}};/**
|
78
78
|
* @license
|
79
79
|
* Copyright 2021 Google LLC
|
80
80
|
* SPDX-License-Identifier: BSD-3-Clause
|
@@ -82,11 +82,11 @@
|
|
82
82
|
* @license
|
83
83
|
* Copyright 2021 Google LLC
|
84
84
|
* SPDX-License-Identifier: BSD-3-Clause
|
85
|
-
*/class j{constructor(t,s,o,r){if(this.subscribe=!1,this.provided=!1,this.value=void 0,this.t=(
|
85
|
+
*/class j{constructor(t,s,o,r){if(this.subscribe=!1,this.provided=!1,this.value=void 0,this.t=(n,b)=>{this.unsubscribe&&(this.unsubscribe!==b&&(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,b)),this.unsubscribe=b},this.host=t,s.context!==void 0){const n=s;this.context=n.context,this.callback=n.callback,this.subscribe=n.subscribe??!1}else this.context=s,this.callback=o,this.subscribe=r??!1;this.host.addController(this)}hostConnected(){this.dispatchRequest()}hostDisconnected(){this.unsubscribe&&(this.unsubscribe(),this.unsubscribe=void 0)}dispatchRequest(){this.host.dispatchEvent(new Y(this.context,this.host,this.t,this.subscribe))}}/**
|
86
86
|
* @license
|
87
87
|
* Copyright 2022 Google LLC
|
88
88
|
* SPDX-License-Identifier: BSD-3-Clause
|
89
|
-
*/function
|
89
|
+
*/function Z({context:e,subscribe:t}){return(s,o)=>{typeof o=="object"?o.addInitializer(function(){new j(this,{context:e,callback:r=>{s.set.call(this,r)},subscribe:t})}):s.constructor.addInitializer(r=>{new j(r,{context:e,callback:n=>{r[o]=n},subscribe:t})})}}const ee=Symbol("slot-store-context"),De=":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))}: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)}";var Re=Object.defineProperty,f=(e,t,s,o)=>{for(var r=void 0,n=e.length-1,b;n>=0;n--)(b=e[n])&&(r=b(t,s,r)||r);return r&&Re(t,s,r),r};class g extends X(V.SizedMixin(de.LuzmoElement,{validSizes:Object.values(V.ElementSizes)})){constructor(){super(...arguments),this._loadDisplaySettings=new le.h(this,{task:async([t,s,o,r])=>{const n=[];this.grandTotals&&n.push("grandTotals"),r&&n.push("periodOverPeriod"),(s==="numeric"||s==="mixed"&&(t==null?void 0:t.type)==="numeric")&&n.push("numeric"),s!=="numeric"&&(t==null?void 0:t.type)==="datetime"&&n.push("datetime"),!["numeric","mixed"].includes(s??"")&&(t==null?void 0:t.type)==="numeric"&&!this.binningDisabled&&n.push("binning"),n.length>0&&!o&&(n.includes("numeric")&&!this._settingsTypeLoaded.numeric?(await Promise.resolve().then(()=>require("./display-settings-numeric/index.cjs")),this._settingsTypeLoaded.numeric=!0,n.includes("periodOverPeriod")&&!this._settingsTypeLoaded.periodOverPeriod&&(await Promise.resolve().then(()=>require("./display-settings-period-over-period/index.cjs")),this._settingsTypeLoaded.periodOverPeriod=!0)):n.includes("datetime")&&!this._settingsTypeLoaded.datetime?(await Promise.resolve().then(()=>require("./display-settings-datetime/index.cjs")),this._settingsTypeLoaded.datetime=!0):n.includes("binning")&&!this._settingsTypeLoaded.binning?(await Promise.resolve().then(()=>require("./display-settings-binning/index.cjs")),this._settingsTypeLoaded.binning=!0):n.includes("grandTotals")&&!this._settingsTypeLoaded.grandTotals&&(await Promise.resolve().then(()=>require("./display-settings-grand-totals/index.cjs")),this._settingsTypeLoaded.grandTotals=!0))},args:()=>[this.slotContent,this.slotType,this.hideDisplaySettings,this.periodOverPeriod]}),this.language="en",this.contentLanguage="en",this.slotType="numeric",this.slotContent={},this._showIds=!1,this.measureColumns=[],this._settingsTypeLoaded={binning:!1,datetime:!1,numeric:!1,grandTotals:!1,periodOverPeriod:!1,hierarchy:!0},this._currentSlotContent={}}static get styles(){return[c.r(De)]}willUpdate(){var s,o;const t=(s=this._store)==null?void 0:s.activeSlotContents.get();this.periodOverPeriod=(o=this._store)==null?void 0:o.periodOverPeriodEnabled.get(),t&&t!==this._currentSlotContent&&(this._currentSlotContent=structuredClone(t))}_onSlotContentChange(t){t.stopPropagation(),t.preventDefault(),this._currentSlotContent=structuredClone(t.detail.slotContent),this._sendEvent(),this.requestUpdate()}_onLabelChange(){this._currentSlotContent=structuredClone(this._currentSlotContent),this._currentSlotContent.label=this._multiLanguageFieldElement.value||{},this._sendEvent(),this.requestUpdate()}_sendEvent(){this.dispatchEvent(new CustomEvent("slot-content-changed",{bubbles:!0,composed:!0,cancelable:!0,detail:{slotContent:{...this._currentSlotContent}}})),this._store&&this._store.updateContent({...this._currentSlotContent})}_removeEvent(){this.dispatchEvent(new CustomEvent("remove-slot-content",{bubbles:!0,composed:!0,cancelable:!0,detail:{slotContent:this._currentSlotContent}}))}_toggleIds(){this._showIds=!this._showIds}_renderDisplaySettings(){return c.x`<div class="settings-container">
|
90
90
|
<div class="settings-row">
|
91
91
|
<div class="setting">
|
92
92
|
<div class="label-container">
|
@@ -171,4 +171,4 @@
|
|
171
171
|
</div>`:""}`}render(){return this._loadDisplaySettings.render({pending:()=>c.x`<luzmo-progress-circle
|
172
172
|
indeterminate
|
173
173
|
.size=${this.size}
|
174
|
-
></luzmo-progress-circle>`,complete:()=>this._renderDisplaySettings(),error:()=>this._renderDisplaySettings()})}}f([c.n({type:String})],g.prototype,"language");f([c.n({type:String,attribute:"content-language"})],g.prototype,"contentLanguage");f([c.n({type:Boolean,attribute:"hide-display-settings"})],g.prototype,"hideDisplaySettings");f([c.n({type:Boolean,attribute:"binning-disabled"})],g.prototype,"binningDisabled");f([c.n({type:Boolean,attribute:"grand-totals"})],g.prototype,"grandTotals");f([
|
174
|
+
></luzmo-progress-circle>`,complete:()=>this._renderDisplaySettings(),error:()=>this._renderDisplaySettings()})}disconnectedCallback(){var t,s,o;(t=super.disconnectedCallback)==null||t.call(this),(o=(s=this._loadDisplaySettings).abort)==null||o.call(s)}}f([c.n({type:String})],g.prototype,"language");f([c.n({type:String,attribute:"content-language"})],g.prototype,"contentLanguage");f([c.n({type:Boolean,attribute:"hide-display-settings"})],g.prototype,"hideDisplaySettings");f([c.n({type:Boolean,attribute:"binning-disabled"})],g.prototype,"binningDisabled");f([c.n({type:Boolean,attribute:"grand-totals"})],g.prototype,"grandTotals");f([c.n({type:Boolean})],g.prototype,"periodOverPeriod");f([c.n({type:Boolean,attribute:"show-remove-button"})],g.prototype,"showRemoveButton");f([c.n({type:String,attribute:"slot-type"})],g.prototype,"slotType");f([c.n()],g.prototype,"slotContent");f([ue.r()],g.prototype,"_showIds");f([c.n({type:Array,reflect:!1})],g.prototype,"measureColumns");f([ce.e("luzmo-multi-language-field")],g.prototype,"_multiLanguageFieldElement");f([Z({context:ee,subscribe:!0})],g.prototype,"_store");customElements.get("luzmo-display-settings")||customElements.define("luzmo-display-settings",g);exports.LuzmoDisplaySettings=g;exports.c=Z;exports.e=X;exports.i=We;exports.r=Le;exports.s=Y;exports.slotContext=ee;
|