scb-wc-test 0.1.9 → 0.1.10

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.
@@ -1,5 +1,5 @@
1
1
  const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["../../vendor/vendor-material.js","../../vendor/vendor.js"])))=>i.map(i=>d[i]);
2
- import{_ as h}from"../../vendor/preload-helper.js";import{b as p,n as a,i as _,x as n,t as u}from"../../vendor/vendor.js";(function(){try{var e=typeof globalThis<"u"?globalThis:window;if(!e.__scb_ce_guard_installed__){e.__scb_ce_guard_installed__=!0;var o=customElements.define.bind(customElements);customElements.define=function(r,l,s){try{customElements.get(r)||o(r,l,s)}catch(c){var d=String(c||"");if(d.indexOf("already been used")===-1&&d.indexOf("NotSupportedError")===-1)throw c}}}}catch{}})();var m=Object.defineProperty,f=Object.getOwnPropertyDescriptor,i=(e,o,r,l)=>{for(var s=l>1?void 0:l?f(o,r):o,d=e.length-1,c;d>=0;d--)(c=e[d])&&(s=(l?c(o,r,s):c(s))||s);return l&&s&&m(o,r,s),s};let t=class extends _{constructor(){super(...arguments),this.variant="assist",this.label="",this.icon="",this.disabled=!1,this.elevated=!1,this.removable=!1,this.selected=!1,this.__loadedVariants=new Set,this.__chipSetLoaded=!1,this.__iconLoaded=!1}updated(e){super.updated(e),e.has("disabled")&&this.toggleAttribute("aria-disabled",this.disabled),(e.has("variant")||e.has("icon"))&&this.__ensureDepsLoaded()}firstUpdated(){this.__ensureDepsLoaded()}async __ensureDepsLoaded(){if(!this.__loadedVariants.has(this.variant)){switch(this.variant){case"assist":await h(()=>import("../../vendor/vendor-material.js").then(e=>e.k),__vite__mapDeps([0,1]),import.meta.url);break;case"filter":await h(()=>import("../../vendor/vendor-material.js").then(e=>e.m),__vite__mapDeps([0,1]),import.meta.url);break}this.__loadedVariants.add(this.variant)}!this._insideChipSet&&!this.__chipSetLoaded&&(await h(()=>import("../../vendor/vendor-material.js").then(e=>e.n),__vite__mapDeps([0,1]),import.meta.url),this.__chipSetLoaded=!0),this.icon&&!this.__iconLoaded&&(await h(()=>import("../../vendor/vendor-material.js").then(e=>e.i),__vite__mapDeps([0,1]),import.meta.url),this.__iconLoaded=!0)}get _insideChipSet(){return!!this.closest("md-chip-set")}render(){const e=this._renderChip();return this._insideChipSet?e:n`<md-chip-set>${e}</md-chip-set>`}_renderChip(){const e=this.icon?n`<md-icon slot="icon">${this.icon}</md-icon>`:null;switch(this.variant){case"assist":return n`
2
+ import{_ as h}from"../../vendor/preload-helper.js";import{b as p,n as a,i as _,x as n,t as u}from"../../vendor/vendor.js";(function(){try{var e=typeof globalThis<"u"?globalThis:window;if(!e.__scb_ce_guard_installed__){e.__scb_ce_guard_installed__=!0;var o=customElements.define.bind(customElements);customElements.define=function(r,l,s){try{customElements.get(r)||o(r,l,s)}catch(c){var d=String(c||"");if(d.indexOf("already been used")===-1&&d.indexOf("NotSupportedError")===-1)throw c}}}}catch{}})();var m=Object.defineProperty,f=Object.getOwnPropertyDescriptor,i=(e,o,r,l)=>{for(var s=l>1?void 0:l?f(o,r):o,d=e.length-1,c;d>=0;d--)(c=e[d])&&(s=(l?c(o,r,s):c(s))||s);return l&&s&&m(o,r,s),s};let t=class extends _{constructor(){super(...arguments),this.variant="assist",this.label="",this.icon="",this.disabled=!1,this.elevated=!1,this.removable=!1,this.selected=!1,this.__loadedVariants=new Set,this.__chipSetLoaded=!1,this.__iconLoaded=!1}updated(e){super.updated(e),(e.has("variant")||e.has("icon"))&&this.__ensureDepsLoaded()}firstUpdated(){this.__ensureDepsLoaded()}async __ensureDepsLoaded(){if(!this.__loadedVariants.has(this.variant)){switch(this.variant){case"assist":await h(()=>import("../../vendor/vendor-material.js").then(e=>e.k),__vite__mapDeps([0,1]),import.meta.url);break;case"filter":await h(()=>import("../../vendor/vendor-material.js").then(e=>e.m),__vite__mapDeps([0,1]),import.meta.url);break}this.__loadedVariants.add(this.variant)}!this._insideChipSet&&!this.__chipSetLoaded&&(await h(()=>import("../../vendor/vendor-material.js").then(e=>e.n),__vite__mapDeps([0,1]),import.meta.url),this.__chipSetLoaded=!0),this.icon&&!this.__iconLoaded&&(await h(()=>import("../../vendor/vendor-material.js").then(e=>e.i),__vite__mapDeps([0,1]),import.meta.url),this.__iconLoaded=!0)}get _insideChipSet(){return!!this.closest("md-chip-set")}render(){const e=this._renderChip();return this._insideChipSet?e:n`<md-chip-set>${e}</md-chip-set>`}_renderChip(){const e=this.icon?n`<md-icon slot="icon">${this.icon}</md-icon>`:null;switch(this.variant){case"assist":return n`
3
3
  <md-assist-chip
4
4
  label=${this.label}
5
5
  ?disabled=${this.disabled}
@@ -14,7 +14,7 @@ import{_ as h}from"../../vendor/preload-helper.js";import{b as p,n as a,i as _,x
14
14
  ?disabled=${this.disabled}
15
15
  ?removable=${this.removable}
16
16
  ?selected=${this.selected}
17
- aria-pressed="${this.selected}"
17
+
18
18
  @remove=${this._onRemove}
19
19
  @update-focus=${this._forward}
20
20
  @click=${()=>this._toggleSelected()}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "scb-wc-test",
3
- "version": "0.1.9",
3
+ "version": "0.1.10",
4
4
  "type": "module",
5
5
  "main": "index.js",
6
6
  "module": "index.js",
@@ -273,5 +273,5 @@
273
273
  },
274
274
  "./mvc/*": "./mvc/*"
275
275
  },
276
- "buildHash": "4F2594586297576DCA4E4D99CA61A78244F9D47DFBD3AB670DCCCE5C85D4D55C"
276
+ "buildHash": "600BD59D478BABAE95ADC5D059B04C875AD59E8C06BAB4C41FDD821A58729E9B"
277
277
  }
@@ -1,17 +1,17 @@
1
- import { css as n, LitElement as p, html as r } from "lit";
1
+ import { css as p, LitElement as h, html as r } from "lit";
2
2
  import { property as a, customElement as m } from "lit/decorators.js";
3
3
  var u = Object.defineProperty, _ = Object.getOwnPropertyDescriptor, s = (e, o, d, l) => {
4
- for (var i = l > 1 ? void 0 : l ? _(o, d) : o, c = e.length - 1, h; c >= 0; c--)
5
- (h = e[c]) && (i = (l ? h(o, d, i) : h(i)) || i);
4
+ for (var i = l > 1 ? void 0 : l ? _(o, d) : o, c = e.length - 1, n; c >= 0; c--)
5
+ (n = e[c]) && (i = (l ? n(o, d, i) : n(i)) || i);
6
6
  return l && i && u(o, d, i), i;
7
7
  };
8
- let t = class extends p {
8
+ let t = class extends h {
9
9
  constructor() {
10
10
  super(...arguments), this.variant = "assist", this.label = "", this.icon = "", this.disabled = !1, this.elevated = !1, this.removable = !1, this.selected = !1, this.__loadedVariants = /* @__PURE__ */ new Set(), this.__chipSetLoaded = !1, this.__iconLoaded = !1;
11
11
  }
12
12
  // aria-disabled på host
13
13
  updated(e) {
14
- super.updated(e), e.has("disabled") && this.toggleAttribute("aria-disabled", this.disabled), (e.has("variant") || e.has("icon")) && this.__ensureDepsLoaded();
14
+ super.updated(e), (e.has("variant") || e.has("icon")) && this.__ensureDepsLoaded();
15
15
  }
16
16
  // Kör dynamisk import första gången komponenten finns i DOM
17
17
  firstUpdated() {
@@ -60,7 +60,7 @@ let t = class extends p {
60
60
  ?disabled=${this.disabled}
61
61
  ?removable=${this.removable}
62
62
  ?selected=${this.selected}
63
- aria-pressed="${this.selected}"
63
+
64
64
  @remove=${this._onRemove}
65
65
  @update-focus=${this._forward}
66
66
  @click=${() => this._toggleSelected()}
@@ -98,7 +98,7 @@ let t = class extends p {
98
98
  );
99
99
  }
100
100
  };
101
- t.styles = n`
101
+ t.styles = p`
102
102
  :host {
103
103
  display: inline-block;
104
104
  }
@@ -3130,7 +3130,7 @@ var ScbWcTest=function(s){"use strict";var fs;function d(o,e,t,r){var i=argument
3130
3130
  .lbl { color: var(--md-sys-color-on-surface); }
3131
3131
  .supporting-text { color: var(--md-sys-color-on-surface-variant); }
3132
3132
  }
3133
- `,ft([l({type:Boolean,reflect:!0})],s.ScbCheckbox.prototype,"disabled",2),ft([l({type:Boolean,reflect:!0})],s.ScbCheckbox.prototype,"indeterminate",2),ft([l({type:Boolean,reflect:!0})],s.ScbCheckbox.prototype,"checked",2),ft([l({type:String})],s.ScbCheckbox.prototype,"label",2),ft([l({type:String,attribute:"supporting-text"})],s.ScbCheckbox.prototype,"supportingText",2),s.ScbCheckbox=ft([b("scb-checkbox")],s.ScbCheckbox);const Ya=Object.freeze(Object.defineProperty({__proto__:null,get ScbCheckbox(){return s.ScbCheckbox}},Symbol.toStringTag,{value:"Module"}));var Zc=Object.defineProperty,Jc=Object.getOwnPropertyDescriptor,Pe=(o,e,t,r)=>{for(var i=r>1?void 0:r?Jc(e,t):e,a=o.length-1,n;a>=0;a--)(n=o[a])&&(i=(r?n(e,t,i):n(i))||i);return r&&i&&Zc(e,t,i),i};s.ScbChip=class extends g{constructor(){super(...arguments),this.variant="assist",this.label="",this.icon="",this.disabled=!1,this.elevated=!1,this.removable=!1,this.selected=!1,this.__loadedVariants=new Set,this.__chipSetLoaded=!1,this.__iconLoaded=!1}updated(e){super.updated(e),e.has("disabled")&&this.toggleAttribute("aria-disabled",this.disabled),(e.has("variant")||e.has("icon"))&&this.__ensureDepsLoaded()}firstUpdated(){this.__ensureDepsLoaded()}async __ensureDepsLoaded(){if(!this.__loadedVariants.has(this.variant)){switch(this.variant){case"assist":await Promise.resolve().then(()=>wn);break;case"filter":await Promise.resolve().then(()=>En);break}this.__loadedVariants.add(this.variant)}!this._insideChipSet&&!this.__chipSetLoaded&&(await Promise.resolve().then(()=>$n),this.__chipSetLoaded=!0),this.icon&&!this.__iconLoaded&&(await Promise.resolve().then(()=>X),this.__iconLoaded=!0)}get _insideChipSet(){return!!this.closest("md-chip-set")}render(){const e=this._renderChip();return this._insideChipSet?e:c`<md-chip-set>${e}</md-chip-set>`}_renderChip(){const e=this.icon?c`<md-icon slot="icon">${this.icon}</md-icon>`:null;switch(this.variant){case"assist":return c`
3133
+ `,ft([l({type:Boolean,reflect:!0})],s.ScbCheckbox.prototype,"disabled",2),ft([l({type:Boolean,reflect:!0})],s.ScbCheckbox.prototype,"indeterminate",2),ft([l({type:Boolean,reflect:!0})],s.ScbCheckbox.prototype,"checked",2),ft([l({type:String})],s.ScbCheckbox.prototype,"label",2),ft([l({type:String,attribute:"supporting-text"})],s.ScbCheckbox.prototype,"supportingText",2),s.ScbCheckbox=ft([b("scb-checkbox")],s.ScbCheckbox);const Ya=Object.freeze(Object.defineProperty({__proto__:null,get ScbCheckbox(){return s.ScbCheckbox}},Symbol.toStringTag,{value:"Module"}));var Zc=Object.defineProperty,Jc=Object.getOwnPropertyDescriptor,Pe=(o,e,t,r)=>{for(var i=r>1?void 0:r?Jc(e,t):e,a=o.length-1,n;a>=0;a--)(n=o[a])&&(i=(r?n(e,t,i):n(i))||i);return r&&i&&Zc(e,t,i),i};s.ScbChip=class extends g{constructor(){super(...arguments),this.variant="assist",this.label="",this.icon="",this.disabled=!1,this.elevated=!1,this.removable=!1,this.selected=!1,this.__loadedVariants=new Set,this.__chipSetLoaded=!1,this.__iconLoaded=!1}updated(e){super.updated(e),(e.has("variant")||e.has("icon"))&&this.__ensureDepsLoaded()}firstUpdated(){this.__ensureDepsLoaded()}async __ensureDepsLoaded(){if(!this.__loadedVariants.has(this.variant)){switch(this.variant){case"assist":await Promise.resolve().then(()=>wn);break;case"filter":await Promise.resolve().then(()=>En);break}this.__loadedVariants.add(this.variant)}!this._insideChipSet&&!this.__chipSetLoaded&&(await Promise.resolve().then(()=>$n),this.__chipSetLoaded=!0),this.icon&&!this.__iconLoaded&&(await Promise.resolve().then(()=>X),this.__iconLoaded=!0)}get _insideChipSet(){return!!this.closest("md-chip-set")}render(){const e=this._renderChip();return this._insideChipSet?e:c`<md-chip-set>${e}</md-chip-set>`}_renderChip(){const e=this.icon?c`<md-icon slot="icon">${this.icon}</md-icon>`:null;switch(this.variant){case"assist":return c`
3134
3134
  <md-assist-chip
3135
3135
  label=${this.label}
3136
3136
  ?disabled=${this.disabled}
@@ -3145,7 +3145,7 @@ var ScbWcTest=function(s){"use strict";var fs;function d(o,e,t,r){var i=argument
3145
3145
  ?disabled=${this.disabled}
3146
3146
  ?removable=${this.removable}
3147
3147
  ?selected=${this.selected}
3148
- aria-pressed="${this.selected}"
3148
+
3149
3149
  @remove=${this._onRemove}
3150
3150
  @update-focus=${this._forward}
3151
3151
  @click=${()=>this._toggleSelected()}