@warp-ds/elements 2.8.2-next.3 → 2.8.2-next.5

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 +1 @@
1
- /*eslint-disable*/ export const messages = JSON.parse("{\"radio-group.validation.required\":[\"Vælg en mulighed.\"],\"radio-group.label.optional\":[\"Valgfri\"]}");
1
+ /*eslint-disable*/ export const messages = JSON.parse("{\"radio-group.label.optional\":[\"Valgfri\"],\"radio-group.validation.required\":[\"Vælg en mulighed.\"]}");
@@ -1 +1 @@
1
- /*eslint-disable*/ export const messages = JSON.parse("{\"radio-group.validation.required\":[\"Please select an option.\"],\"radio-group.label.optional\":[\"Optional\"]}");
1
+ /*eslint-disable*/ export const messages = JSON.parse("{\"radio-group.label.optional\":[\"Optional\"],\"radio-group.validation.required\":[\"Please select an option.\"]}");
@@ -1 +1 @@
1
- /*eslint-disable*/ export const messages = JSON.parse("{\"radio-group.validation.required\":[\"Valitse vaihtoehto.\"],\"radio-group.label.optional\":[\"Valinnainen\"]}");
1
+ /*eslint-disable*/ export const messages = JSON.parse("{\"radio-group.label.optional\":[\"Valinnainen\"],\"radio-group.validation.required\":[\"Valitse vaihtoehto.\"]}");
@@ -1 +1 @@
1
- /*eslint-disable*/ export const messages = JSON.parse("{\"radio-group.validation.required\":[\"Velg et alternativ.\"],\"radio-group.label.optional\":[\"Valgfri\"]}");
1
+ /*eslint-disable*/ export const messages = JSON.parse("{\"radio-group.label.optional\":[\"Valgfri\"],\"radio-group.validation.required\":[\"Velg et alternativ.\"]}");
@@ -1 +1 @@
1
- /*eslint-disable*/ export const messages = JSON.parse("{\"radio-group.validation.required\":[\"Välj ett alternativ.\"],\"radio-group.label.optional\":[\"Valfritt\"]}");
1
+ /*eslint-disable*/ export const messages = JSON.parse("{\"radio-group.label.optional\":[\"Valfritt\"],\"radio-group.validation.required\":[\"Välj ett alternativ.\"]}");
@@ -2621,7 +2621,7 @@ Please compile your catalog first.
2621
2621
  <div part="control" class="control"></div>
2622
2622
  <slot part="label" class="label"></slot>
2623
2623
  </div>
2624
- `}};U=new WeakMap,D=new WeakMap,R=new WeakMap,_.styles=[ee,Se,Ie],_.shadowRootOptions={...Fe.shadowRootOptions,delegatesFocus:!0},f([A({reflect:!0})],_.prototype,"name",2),f([A({reflect:!0})],_.prototype,"value",2),f([A({type:Boolean,reflect:!0})],_.prototype,"checked",2),f([A({type:Boolean,reflect:!0})],_.prototype,"disabled",2),f([A({type:Boolean,reflect:!0})],_.prototype,"required",2),f([A({type:Boolean,reflect:!0})],_.prototype,"invalid",2),f([A({attribute:!1})],_.prototype,"_groupTabIndex",2),f([A({attribute:!1})],_.prototype,"_standaloneTabIndex",2);customElements.get("w-radio")||customElements.define("w-radio",_);var kr=["en","nb","fi","da","sv"],ue="en",re=o=>kr.find(r=>o===r||o.toLowerCase().includes(r))||ue;function Le(){if(typeof window=="undefined"){let o=process.env.NMP_LANGUAGE||Intl.DateTimeFormat().resolvedOptions().locale;return re(o)}try{let o=Re(document);if(o)return re(o);let r=Er();if(r)return re(r);let e=Re(De());return e?re(e):ue}catch(o){return console.warn("could not detect locale, falling back to source locale",o),ue}}var Oe=(o,r,e,t,a)=>{y.load("en",o),y.load("nb",r),y.load("fi",e),y.load("da",t),y.load("sv",a);let i=Le();y.activate(i),Ne(),_r()},yr="warp-i18n-change";function Ne(){typeof window!="undefined"&&window.dispatchEvent(new Event(yr))}var Ae=!1;function _r(){if(Ae||typeof window=="undefined"||!(document!=null&&document.documentElement))return;Ae=!0;let o=()=>{let a=Le();y.locale!==a&&(y.activate(a),Ne())},r=new MutationObserver(a=>{for(let i of a)if(i.type==="attributes"&&i.attributeName==="lang"){o();break}});r.observe(document.documentElement,{attributes:!0,attributeFilter:["lang"]});let e=De();e&&e.documentElement&&e!==document&&r.observe(e.documentElement,{attributes:!0,attributeFilter:["lang"]});let t=Cr();t&&r.observe(t,{attributes:!0,attributeFilter:["lang"]})}function De(){var o,r;try{return(r=(o=window.parent)==null?void 0:o.document)!=null?r:null}catch(e){return null}}function Re(o){var r,e;try{return(e=(r=o==null?void 0:o.documentElement)==null?void 0:r.lang)!=null?e:""}catch(t){return""}}function Cr(){var o;try{return(o=window.frameElement)!=null?o:null}catch(r){return null}}function Er(){var o,r,e;try{return(e=(r=(o=window.frameElement)==null?void 0:o.getAttribute)==null?void 0:r.call(o,"lang"))!=null?e:""}catch(t){return""}}var qe=JSON.parse('{"radio-group.validation.required":["V\xE6lg en mulighed."],"radio-group.label.optional":["Valgfri"]}');var Pe=JSON.parse('{"radio-group.validation.required":["Please select an option."],"radio-group.label.optional":["Optional"]}');var He=JSON.parse('{"radio-group.validation.required":["Valitse vaihtoehto."],"radio-group.label.optional":["Valinnainen"]}');var je=JSON.parse('{"radio-group.validation.required":["Velg et alternativ."],"radio-group.label.optional":["Valgfri"]}');var Ue=JSON.parse('{"radio-group.validation.required":["V\xE4lj ett alternativ."],"radio-group.label.optional":["Valfritt"]}');import{css as Mr}from"lit";var $e=Mr`
2624
+ `}};U=new WeakMap,D=new WeakMap,R=new WeakMap,_.styles=[ee,Se,Ie],_.shadowRootOptions={...Fe.shadowRootOptions,delegatesFocus:!0},f([A({reflect:!0})],_.prototype,"name",2),f([A({reflect:!0})],_.prototype,"value",2),f([A({type:Boolean,reflect:!0})],_.prototype,"checked",2),f([A({type:Boolean,reflect:!0})],_.prototype,"disabled",2),f([A({type:Boolean,reflect:!0})],_.prototype,"required",2),f([A({type:Boolean,reflect:!0})],_.prototype,"invalid",2),f([A({attribute:!1})],_.prototype,"_groupTabIndex",2),f([A({attribute:!1})],_.prototype,"_standaloneTabIndex",2);customElements.get("w-radio")||customElements.define("w-radio",_);var kr=["en","nb","fi","da","sv"],ue="en",re=o=>kr.find(r=>o===r||o.toLowerCase().includes(r))||ue;function Le(){if(typeof window=="undefined"){let o=process.env.NMP_LANGUAGE||Intl.DateTimeFormat().resolvedOptions().locale;return re(o)}try{let o=Re(document);if(o)return re(o);let r=Er();if(r)return re(r);let e=Re(De());return e?re(e):ue}catch(o){return console.warn("could not detect locale, falling back to source locale",o),ue}}var Oe=(o,r,e,t,a)=>{y.load("en",o),y.load("nb",r),y.load("fi",e),y.load("da",t),y.load("sv",a);let i=Le();y.activate(i),Ne(),_r()},yr="warp-i18n-change";function Ne(){typeof window!="undefined"&&window.dispatchEvent(new Event(yr))}var Ae=!1;function _r(){if(Ae||typeof window=="undefined"||!(document!=null&&document.documentElement))return;Ae=!0;let o=()=>{let a=Le();y.locale!==a&&(y.activate(a),Ne())},r=new MutationObserver(a=>{for(let i of a)if(i.type==="attributes"&&i.attributeName==="lang"){o();break}});r.observe(document.documentElement,{attributes:!0,attributeFilter:["lang"]});let e=De();e&&e.documentElement&&e!==document&&r.observe(e.documentElement,{attributes:!0,attributeFilter:["lang"]});let t=Cr();t&&r.observe(t,{attributes:!0,attributeFilter:["lang"]})}function De(){var o,r;try{return(r=(o=window.parent)==null?void 0:o.document)!=null?r:null}catch(e){return null}}function Re(o){var r,e;try{return(e=(r=o==null?void 0:o.documentElement)==null?void 0:r.lang)!=null?e:""}catch(t){return""}}function Cr(){var o;try{return(o=window.frameElement)!=null?o:null}catch(r){return null}}function Er(){var o,r,e;try{return(e=(r=(o=window.frameElement)==null?void 0:o.getAttribute)==null?void 0:r.call(o,"lang"))!=null?e:""}catch(t){return""}}var qe=JSON.parse('{"radio-group.label.optional":["Valgfri"],"radio-group.validation.required":["V\xE6lg en mulighed."]}');var Pe=JSON.parse('{"radio-group.label.optional":["Optional"],"radio-group.validation.required":["Please select an option."]}');var He=JSON.parse('{"radio-group.label.optional":["Valinnainen"],"radio-group.validation.required":["Valitse vaihtoehto."]}');var je=JSON.parse('{"radio-group.label.optional":["Valgfri"],"radio-group.validation.required":["Velg et alternativ."]}');var Ue=JSON.parse('{"radio-group.label.optional":["Valfritt"],"radio-group.validation.required":["V\xE4lj ett alternativ."]}');import{css as Mr}from"lit";var $e=Mr`
2625
2625
  :host {
2626
2626
  display: block;
2627
2627