@warp-ds/elements 2.4.0-next.1 → 2.4.0-next.3
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/dist/custom-elements.json +30 -30
- package/dist/index.d.ts +6 -10
- package/dist/packages/combobox/combobox.react.stories.d.ts +1 -1
- package/dist/packages/combobox/combobox.test.d.ts +2 -0
- package/dist/packages/combobox/combobox.test.js +21 -0
- package/dist/packages/combobox/index.d.ts +2 -4
- package/dist/packages/combobox/index.js +9 -8
- package/dist/packages/combobox/index.js.map +2 -2
- package/dist/packages/slider/slider.js +18 -51
- package/dist/packages/slider/slider.js.map +2 -2
- package/dist/packages/slider/slider.stories.js +8 -8
- package/dist/packages/slider/styles/w-slider.styles.js +13 -46
- package/dist/packages/textfield/index.d.ts +1 -0
- package/dist/packages/textfield/index.js +18 -17
- package/dist/packages/textfield/index.js.map +2 -2
- package/dist/packages/textfield/textfield.react.stories.d.ts +1 -1
- package/dist/packages/textfield/textfield.test.js +9 -0
- package/dist/web-types.json +16 -21
- package/package.json +1 -1
|
@@ -2383,6 +2383,15 @@
|
|
|
2383
2383
|
"attribute": "step",
|
|
2384
2384
|
"reflects": true
|
|
2385
2385
|
},
|
|
2386
|
+
{
|
|
2387
|
+
"kind": "field",
|
|
2388
|
+
"name": "autocomplete",
|
|
2389
|
+
"type": {
|
|
2390
|
+
"text": "string | undefined"
|
|
2391
|
+
},
|
|
2392
|
+
"attribute": "autocomplete",
|
|
2393
|
+
"reflects": true
|
|
2394
|
+
},
|
|
2386
2395
|
{
|
|
2387
2396
|
"kind": "field",
|
|
2388
2397
|
"name": "formatter",
|
|
@@ -2577,6 +2586,13 @@
|
|
|
2577
2586
|
"text": "number"
|
|
2578
2587
|
},
|
|
2579
2588
|
"fieldName": "step"
|
|
2589
|
+
},
|
|
2590
|
+
{
|
|
2591
|
+
"name": "autocomplete",
|
|
2592
|
+
"type": {
|
|
2593
|
+
"text": "string | undefined"
|
|
2594
|
+
},
|
|
2595
|
+
"fieldName": "autocomplete"
|
|
2580
2596
|
}
|
|
2581
2597
|
],
|
|
2582
2598
|
"mixins": [
|
|
@@ -3799,32 +3815,23 @@
|
|
|
3799
3815
|
},
|
|
3800
3816
|
{
|
|
3801
3817
|
"kind": "field",
|
|
3802
|
-
"name": "
|
|
3803
|
-
"type": {
|
|
3804
|
-
"text": "string | undefined"
|
|
3805
|
-
},
|
|
3806
|
-
"description": "Additional container styling",
|
|
3807
|
-
"attribute": "class-name",
|
|
3808
|
-
"reflects": true
|
|
3809
|
-
},
|
|
3810
|
-
{
|
|
3811
|
-
"kind": "field",
|
|
3812
|
-
"name": "listClassName",
|
|
3818
|
+
"name": "name",
|
|
3813
3819
|
"type": {
|
|
3814
3820
|
"text": "string | undefined"
|
|
3815
3821
|
},
|
|
3816
|
-
"description": "
|
|
3817
|
-
"attribute": "
|
|
3822
|
+
"description": "Name attribute for form submission",
|
|
3823
|
+
"attribute": "name",
|
|
3818
3824
|
"reflects": true
|
|
3819
3825
|
},
|
|
3820
3826
|
{
|
|
3821
3827
|
"kind": "field",
|
|
3822
|
-
"name": "
|
|
3828
|
+
"name": "autocomplete",
|
|
3823
3829
|
"type": {
|
|
3824
3830
|
"text": "string | undefined"
|
|
3825
3831
|
},
|
|
3826
|
-
"
|
|
3827
|
-
"
|
|
3832
|
+
"default": "'off'",
|
|
3833
|
+
"description": "Autocomplete attribute for the input field",
|
|
3834
|
+
"attribute": "autocomplete",
|
|
3828
3835
|
"reflects": true
|
|
3829
3836
|
},
|
|
3830
3837
|
{
|
|
@@ -4178,28 +4185,21 @@
|
|
|
4178
4185
|
"fieldName": "optional"
|
|
4179
4186
|
},
|
|
4180
4187
|
{
|
|
4181
|
-
"name": "
|
|
4182
|
-
"type": {
|
|
4183
|
-
"text": "string | undefined"
|
|
4184
|
-
},
|
|
4185
|
-
"description": "Additional container styling",
|
|
4186
|
-
"fieldName": "containerClassName"
|
|
4187
|
-
},
|
|
4188
|
-
{
|
|
4189
|
-
"name": "list-class-name",
|
|
4188
|
+
"name": "name",
|
|
4190
4189
|
"type": {
|
|
4191
4190
|
"text": "string | undefined"
|
|
4192
4191
|
},
|
|
4193
|
-
"description": "
|
|
4194
|
-
"fieldName": "
|
|
4192
|
+
"description": "Name attribute for form submission",
|
|
4193
|
+
"fieldName": "name"
|
|
4195
4194
|
},
|
|
4196
4195
|
{
|
|
4197
|
-
"name": "
|
|
4196
|
+
"name": "autocomplete",
|
|
4198
4197
|
"type": {
|
|
4199
4198
|
"text": "string | undefined"
|
|
4200
4199
|
},
|
|
4201
|
-
"
|
|
4202
|
-
"
|
|
4200
|
+
"default": "'off'",
|
|
4201
|
+
"description": "Autocomplete attribute for the input field",
|
|
4202
|
+
"fieldName": "autocomplete"
|
|
4203
4203
|
}
|
|
4204
4204
|
],
|
|
4205
4205
|
"mixins": [
|
package/dist/index.d.ts
CHANGED
|
@@ -456,6 +456,8 @@ export type WarpTextFieldProps = {
|
|
|
456
456
|
"name"?: WarpTextField['name'];
|
|
457
457
|
/** */
|
|
458
458
|
"step"?: WarpTextField['step'];
|
|
459
|
+
/** */
|
|
460
|
+
"autocomplete"?: WarpTextField['autocomplete'];
|
|
459
461
|
/** Function to format value when the input field.
|
|
460
462
|
|
|
461
463
|
Only active when the input field does not have focus,
|
|
@@ -624,16 +626,10 @@ export type WarpComboboxProps = {
|
|
|
624
626
|
"required"?: WarpCombobox['required'];
|
|
625
627
|
/** Whether to show optional text */
|
|
626
628
|
"optional"?: WarpCombobox['optional'];
|
|
627
|
-
/** Additional container styling */
|
|
628
|
-
"class-name"?: WarpCombobox['containerClassName'];
|
|
629
|
-
/** Additional container styling */
|
|
630
|
-
"containerClassName"?: WarpCombobox['containerClassName'];
|
|
631
|
-
/** Additional list styling */
|
|
632
|
-
"list-class-name"?: WarpCombobox['listClassName'];
|
|
633
|
-
/** Additional list styling */
|
|
634
|
-
"listClassName"?: WarpCombobox['listClassName'];
|
|
635
629
|
/** Name attribute for form submission */
|
|
636
630
|
"name"?: WarpCombobox['name'];
|
|
631
|
+
/** Autocomplete attribute for the input field */
|
|
632
|
+
"autocomplete"?: WarpCombobox['autocomplete'];
|
|
637
633
|
|
|
638
634
|
|
|
639
635
|
}
|
|
@@ -1309,6 +1305,7 @@ export type WarpTextareaProps = {
|
|
|
1309
1305
|
* - `value`: undefined
|
|
1310
1306
|
* - `name`: undefined
|
|
1311
1307
|
* - `step`: undefined
|
|
1308
|
+
* - `autocomplete`: undefined
|
|
1312
1309
|
* - `formatter`: Function to format value when the input field.
|
|
1313
1310
|
*
|
|
1314
1311
|
* Only active when the input field does not have focus,
|
|
@@ -1512,9 +1509,8 @@ export type WarpTextareaProps = {
|
|
|
1512
1509
|
* - `disabled`: Whether the element is disabled
|
|
1513
1510
|
* - `required`: Whether the element is required
|
|
1514
1511
|
* - `optional`: Whether to show optional text
|
|
1515
|
-
* - `class-name`/`containerClassName`: Additional container styling
|
|
1516
|
-
* - `list-class-name`/`listClassName`: Additional list styling
|
|
1517
1512
|
* - `name`: Name attribute for form submission
|
|
1513
|
+
* - `autocomplete`: Autocomplete attribute for the input field
|
|
1518
1514
|
*
|
|
1519
1515
|
* ## Methods
|
|
1520
1516
|
*
|
|
@@ -9,7 +9,7 @@ declare const _default: {
|
|
|
9
9
|
onChange: string;
|
|
10
10
|
onchange: string;
|
|
11
11
|
}>;
|
|
12
|
-
render(args: Omit<React.HTMLAttributes<import(".").WarpCombobox>, "label" | "onchange" | "onselect" | "onChange" | "onSelect" | "render" | "renderOptions" | "connectedCallback" | "disconnectedCallback" | "renderRoot" | "isUpdatePending" | "hasUpdated" | "addController" | "removeController" | "attributeChangedCallback" | "requestUpdate" | "updateComplete" | "form" | "disabled" | "name" | "value" | "updated" | "firstUpdated" | "resetFormControl" | "validationTarget" | "internals" | "showError" | "validationMessage" | "validity" | "validationComplete" | "checkValidity" | "formResetCallback" | "valueChangedCallback" | "validityCallback" | "validationMessageCallback" | "setValue" | "shouldFormValueUpdate" | "invalid" | "helpText" | "optional" | "placeholder" | "required" | "options" | "openOnFocus" | "selectOnBlur" | "matchTextSegments" | "disableStaticFiltering"
|
|
12
|
+
render(args: Omit<React.HTMLAttributes<import(".").WarpCombobox>, "label" | "onchange" | "onselect" | "onChange" | "onSelect" | "render" | "renderOptions" | "connectedCallback" | "disconnectedCallback" | "renderRoot" | "isUpdatePending" | "hasUpdated" | "addController" | "removeController" | "attributeChangedCallback" | "requestUpdate" | "updateComplete" | "form" | "disabled" | "name" | "value" | "updated" | "firstUpdated" | "resetFormControl" | "validationTarget" | "internals" | "showError" | "validationMessage" | "validity" | "validationComplete" | "checkValidity" | "formResetCallback" | "valueChangedCallback" | "validityCallback" | "validationMessageCallback" | "setValue" | "shouldFormValueUpdate" | "invalid" | "helpText" | "optional" | "placeholder" | "required" | "autocomplete" | "options" | "openOnFocus" | "selectOnBlur" | "matchTextSegments" | "disableStaticFiltering"> & {
|
|
13
13
|
onSelect?: (e: Event) => void;
|
|
14
14
|
onselect?: (e: Event) => void;
|
|
15
15
|
onChange?: (e: Event) => void;
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { html } from 'lit';
|
|
2
|
+
import { expect, test } from 'vitest';
|
|
3
|
+
import { render } from 'vitest-browser-lit';
|
|
4
|
+
import '../textfield/index.js';
|
|
5
|
+
import './index.js';
|
|
6
|
+
test('renders with autocomplete="off" when attribute not provided', async () => {
|
|
7
|
+
const component = html `<w-combobox data-testid="combobox"></w-combobox>`;
|
|
8
|
+
const page = render(component);
|
|
9
|
+
const locator = page.getByTestId('combobox');
|
|
10
|
+
await expect.element(locator).toBeVisible();
|
|
11
|
+
const el = (await locator.element());
|
|
12
|
+
expect(el.getAttribute('autocomplete')).toBe('off');
|
|
13
|
+
});
|
|
14
|
+
test('renders with autocomplete attribute when provided', async () => {
|
|
15
|
+
const component = html `<w-combobox data-testid="combobox" autocomplete="on"></w-combobox>`;
|
|
16
|
+
const page = render(component);
|
|
17
|
+
const locator = page.getByTestId('combobox');
|
|
18
|
+
await expect.element(locator).toBeVisible();
|
|
19
|
+
const el = (await locator.element());
|
|
20
|
+
expect(el.getAttribute('autocomplete')).toBe('on');
|
|
21
|
+
});
|
|
@@ -38,12 +38,10 @@ export declare class WarpCombobox extends WarpCombobox_base {
|
|
|
38
38
|
required: boolean;
|
|
39
39
|
/** Whether to show optional text */
|
|
40
40
|
optional: boolean;
|
|
41
|
-
/** Additional container styling */
|
|
42
|
-
containerClassName?: string;
|
|
43
|
-
/** Additional list styling */
|
|
44
|
-
listClassName?: string;
|
|
45
41
|
/** Name attribute for form submission */
|
|
46
42
|
name?: string;
|
|
43
|
+
/** Autocomplete attribute for the input field */
|
|
44
|
+
autocomplete?: string;
|
|
47
45
|
/** @internal Options list open boolean */
|
|
48
46
|
private _isOpen;
|
|
49
47
|
/** @internal The option the user has navigated to with their keyboard */
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
var Ve=Object.create;var W=Object.defineProperty;var ne=Object.getOwnPropertyDescriptor;var
|
|
2
|
-
`],["r","\r"],["t"," "],["v","\v"],["0","\0"]]);function Ze(o){return He.get(o)||o}var Ke=/\\(?:(\\)|x([\s\S]{0,2})|u(\{[^}]*\}?)|u([\s\S]{4})\\u([^{][\s\S]{0,3})|u([\s\S]{0,4})|([0-3]?[0-7]{1,2})|([\s\S])|$)/g;function ge(o,r=!1){return o.replace(Ke,function(e,t,a,i,s,n,c,v,_){if(t!==void 0)return"\\";if(a!==void 0)return Ye(a);if(i!==void 0)return qe(i);if(s!==void 0)return be(s,n);if(c!==void 0)return be(c);if(v==="0")return"\0";if(v!==void 0)return Xe(v,!r);if(_!==void 0)return Ze(_);throw new SyntaxError(
|
|
1
|
+
var Ve=Object.create;var W=Object.defineProperty;var ne=Object.getOwnPropertyDescriptor;var Pe=Object.getOwnPropertyNames;var Re=Object.getPrototypeOf,Ne=Object.prototype.hasOwnProperty;var se=o=>{throw TypeError(o)};var le=(o,r)=>()=>(r||o((r={exports:{}}).exports,r),r.exports);var De=(o,r,e,t)=>{if(r&&typeof r=="object"||typeof r=="function")for(let a of Pe(r))!Ne.call(o,a)&&a!==e&&W(o,a,{get:()=>r[a],enumerable:!(t=ne(r,a))||t.enumerable});return o};var je=(o,r,e)=>(e=o!=null?Ve(Re(o)):{},De(r||!o||!o.__esModule?W(e,"default",{value:o,enumerable:!0}):e,o));var p=(o,r,e,t)=>{for(var a=t>1?void 0:t?ne(r,e):r,i=o.length-1,s;i>=0;i--)(s=o[i])&&(a=(t?s(r,e,a):s(a))||a);return t&&a&&W(r,e,a),a};var ce=(o,r,e)=>r.has(o)||se("Cannot "+e);var de=(o,r,e)=>(ce(o,r,"read from private field"),e?e.call(o):r.get(o)),ue=(o,r,e)=>r.has(o)?se("Cannot add the same private member more than once"):r instanceof WeakSet?r.add(o):r.set(o,e),he=(o,r,e,t)=>(ce(o,r,"write to private field"),t?t.call(o,e):r.set(o,e),e);var pe=le(I=>{"use strict";Object.defineProperty(I,"__esModule",{value:!0});I.errorMessages=I.ErrorType=void 0;var V;(function(o){o.MalformedUnicode="MALFORMED_UNICODE",o.MalformedHexadecimal="MALFORMED_HEXADECIMAL",o.CodePointLimit="CODE_POINT_LIMIT",o.OctalDeprecation="OCTAL_DEPRECATION",o.EndOfString="END_OF_STRING"})(V=I.ErrorType||(I.ErrorType={}));I.errorMessages=new Map([[V.MalformedUnicode,"malformed Unicode character escape sequence"],[V.MalformedHexadecimal,"malformed hexadecimal character escape sequence"],[V.CodePointLimit,"Unicode codepoint must not be greater than 0x10FFFF in escape sequence"],[V.OctalDeprecation,'"0"-prefixed octal literals and octal escape sequences are deprecated; for octal literals use the "0o" prefix instead'],[V.EndOfString,"malformed escape sequence at end of string"]])});var ve=le(C=>{"use strict";Object.defineProperty(C,"__esModule",{value:!0});C.unraw=C.errorMessages=C.ErrorType=void 0;var f=pe();Object.defineProperty(C,"ErrorType",{enumerable:!0,get:function(){return f.ErrorType}});Object.defineProperty(C,"errorMessages",{enumerable:!0,get:function(){return f.errorMessages}});function Ue(o){return!o.match(/[^a-f0-9]/i)?parseInt(o,16):NaN}function q(o,r,e){let t=Ue(o);if(Number.isNaN(t)||e!==void 0&&e!==o.length)throw new SyntaxError(f.errorMessages.get(r));return t}function Ye(o){let r=q(o,f.ErrorType.MalformedHexadecimal,2);return String.fromCharCode(r)}function be(o,r){let e=q(o,f.ErrorType.MalformedUnicode,4);if(r!==void 0){let t=q(r,f.ErrorType.MalformedUnicode,4);return String.fromCharCode(e,t)}return String.fromCharCode(e)}function Be(o){return o.charAt(0)==="{"&&o.charAt(o.length-1)==="}"}function qe(o){if(!Be(o))throw new SyntaxError(f.errorMessages.get(f.ErrorType.MalformedUnicode));let r=o.slice(1,-1),e=q(r,f.ErrorType.MalformedUnicode);try{return String.fromCodePoint(e)}catch(t){throw t instanceof RangeError?new SyntaxError(f.errorMessages.get(f.ErrorType.CodePointLimit)):t}}function Xe(o,r=!1){if(r)throw new SyntaxError(f.errorMessages.get(f.ErrorType.OctalDeprecation));let e=parseInt(o,8);return String.fromCharCode(e)}var He=new Map([["b","\b"],["f","\f"],["n",`
|
|
2
|
+
`],["r","\r"],["t"," "],["v","\v"],["0","\0"]]);function Ze(o){return He.get(o)||o}var Ke=/\\(?:(\\)|x([\s\S]{0,2})|u(\{[^}]*\}?)|u([\s\S]{4})\\u([^{][\s\S]{0,3})|u([\s\S]{0,4})|([0-3]?[0-7]{1,2})|([\s\S])|$)/g;function ge(o,r=!1){return o.replace(Ke,function(e,t,a,i,s,n,c,v,_){if(t!==void 0)return"\\";if(a!==void 0)return Ye(a);if(i!==void 0)return qe(i);if(s!==void 0)return be(s,n);if(c!==void 0)return be(c);if(v==="0")return"\0";if(v!==void 0)return Xe(v,!r);if(_!==void 0)return Ze(_);throw new SyntaxError(f.errorMessages.get(f.ErrorType.EndOfString))})}C.unraw=ge;C.default=ge});var Y=function(){for(var o=[],r=arguments.length;r--;)o[r]=arguments[r];return o.reduce(function(e,t){return e.concat(typeof t=="string"?t:Array.isArray(t)?Y.apply(void 0,t):typeof t=="object"&&t?Object.keys(t).map(function(a){return t[a]?a:""}):"")},[]).join(" ")};var we=je(ve(),1);var F=o=>typeof o=="string",Ge=o=>typeof o=="function",me=new Map,xe="en";function te(o){return[...Array.isArray(o)?o:[o],xe]}function oe(o,r,e){let t=te(o);e||(e="default");let a;if(typeof e=="string")switch(a={day:"numeric",month:"short",year:"numeric"},e){case"full":a.weekday="long";case"long":a.month="long";break;case"short":a.month="numeric";break}else a=e;return X(()=>H("date",t,e),()=>new Intl.DateTimeFormat(t,a)).format(F(r)?new Date(r):r)}function Je(o,r,e){let t;if(e||(e="default"),typeof e=="string")switch(t={second:"numeric",minute:"numeric",hour:"numeric"},e){case"full":case"long":t.timeZoneName="short";break;case"short":delete t.second}else t=e;return oe(o,r,t)}function Q(o,r,e){let t=te(o);return X(()=>H("number",t,e),()=>new Intl.NumberFormat(t,e)).format(r)}function fe(o,r,e,{offset:t=0,...a}){var n,c;let i=te(o),s=r?X(()=>H("plural-ordinal",i),()=>new Intl.PluralRules(i,{type:"ordinal"})):X(()=>H("plural-cardinal",i),()=>new Intl.PluralRules(i,{type:"cardinal"}));return(c=(n=a[e])!=null?n:a[s.select(e-t)])!=null?c:a.other}function X(o,r){let e=o(),t=me.get(e);return t||(t=r(),me.set(e,t)),t}function H(o,r,e){let t=r.join("-");return`${o}-${t}-${JSON.stringify(e)}`}var ke=/\\u[a-fA-F0-9]{4}|\\x[a-fA-F0-9]{2}/,ye="%__lingui_octothorpe__%",We=(o,r,e={})=>{let t=r||o,a=s=>typeof s=="object"?s:e[s],i=(s,n)=>{let c=Object.keys(e).length?a("number"):void 0,v=Q(t,s,c);return n.replace(new RegExp(ye,"g"),v)};return{plural:(s,n)=>{let{offset:c=0}=n,v=fe(t,!1,s,n);return i(s-c,v)},selectordinal:(s,n)=>{let{offset:c=0}=n,v=fe(t,!0,s,n);return i(s-c,v)},select:Qe,number:(s,n)=>Q(t,s,a(n)||{style:n}),date:(s,n)=>oe(t,s,a(n)||n),time:(s,n)=>Je(t,s,a(n)||n)}},Qe=(o,r)=>{var e;return(e=r[o])!=null?e:r.other};function er(o,r,e){return(t={},a)=>{let i=We(r,e,a),s=(c,v=!1)=>Array.isArray(c)?c.reduce((_,M)=>{if(M==="#"&&v)return _+ye;if(F(M))return _+M;let[$,k,z]=M,E={};k==="plural"||k==="selectordinal"||k==="select"?Object.entries(z).forEach(([A,R])=>{E[A]=s(R,k==="plural"||k==="selectordinal")}):E=z;let x;if(k){let A=i[k];x=A(t[$],E)}else x=t[$];return x==null?_:_+x},""):c,n=s(o);return F(n)&&ke.test(n)?(0,we.unraw)(n):F(n)?n:n?String(n):""}}var rr=Object.defineProperty,tr=(o,r,e)=>r in o?rr(o,r,{enumerable:!0,configurable:!0,writable:!0,value:e}):o[r]=e,or=(o,r,e)=>(tr(o,typeof r!="symbol"?r+"":r,e),e),ee=class{constructor(){or(this,"_events",{})}on(r,e){var a;var t;return(a=(t=this._events)[r])!=null||(t[r]=[]),this._events[r].push(e),()=>this.removeListener(r,e)}removeListener(r,e){let t=this._getListeners(r);if(!t)return;let a=t.indexOf(e);~a&&t.splice(a,1)}emit(r,...e){let t=this._getListeners(r);t&&t.map(a=>a.apply(this,e))}_getListeners(r){let e=this._events[r];return Array.isArray(e)?e:!1}},ar=Object.defineProperty,ir=(o,r,e)=>r in o?ar(o,r,{enumerable:!0,configurable:!0,writable:!0,value:e}):o[r]=e,T=(o,r,e)=>(ir(o,typeof r!="symbol"?r+"":r,e),e),re=class extends ee{constructor(r){var e;super(),T(this,"_locale",""),T(this,"_locales"),T(this,"_localeData",{}),T(this,"_messages",{}),T(this,"_missing"),T(this,"_messageCompiler"),T(this,"t",this._.bind(this)),r.missing!=null&&(this._missing=r.missing),r.messages!=null&&this.load(r.messages),r.localeData!=null&&this.loadLocaleData(r.localeData),(typeof r.locale=="string"||r.locales)&&this.activate((e=r.locale)!=null?e:xe,r.locales)}get locale(){return this._locale}get locales(){return this._locales}get messages(){var r;return(r=this._messages[this._locale])!=null?r:{}}get localeData(){var r;return(r=this._localeData[this._locale])!=null?r:{}}_loadLocaleData(r,e){let t=this._localeData[r];t?Object.assign(t,e):this._localeData[r]=e}setMessagesCompiler(r){return this._messageCompiler=r,this}loadLocaleData(r,e){typeof r=="string"?this._loadLocaleData(r,e):Object.keys(r).forEach(t=>this._loadLocaleData(t,r[t])),this.emit("change")}_load(r,e){let t=this._messages[r];t?Object.assign(t,e):this._messages[r]=e}load(r,e){typeof r=="string"&&typeof e=="object"?this._load(r,e):Object.entries(r).forEach(([t,a])=>this._load(t,a)),this.emit("change")}loadAndActivate({locale:r,locales:e,messages:t}){this._locale=r,this._locales=e||void 0,this._messages[this._locale]=t,this.emit("change")}activate(r,e){this._locale=r,this._locales=e,this.emit("change")}_(r,e,t){if(!this.locale)throw new Error("Lingui: Attempted to call a translation function without setting a locale.\nMake sure to call `i18n.activate(locale)` before using Lingui functions.\nThis issue may also occur due to a race condition in your initialization logic.");let a=t==null?void 0:t.message;r||(r=""),F(r)||(e=r.values||e,a=r.message,r=r.id);let i=this.messages[r],s=i===void 0,n=this._missing;if(n&&s)return Ge(n)?n(this._locale,r):n;s&&this.emit("missing",{id:r,locale:this._locale});let c=i||a||r;return F(c)&&(this._messageCompiler?c=this._messageCompiler(c):console.warn(`Uncompiled message detected! Message:
|
|
3
3
|
|
|
4
4
|
> ${c}
|
|
5
5
|
|
|
@@ -7,7 +7,7 @@ That means you use raw catalog or your catalog doesn't have a translation for th
|
|
|
7
7
|
ICU features such as interpolation and plurals will not work properly for that message.
|
|
8
8
|
|
|
9
9
|
Please compile your catalog first.
|
|
10
|
-
`)),F(c)&&ke.test(c)?JSON.parse(`"${c}"`):F(c)?c:er(c,this._locale,this._locales)(e,t==null?void 0:t.formats)}date(r,e){return oe(this._locales||this._locale,r,e)}number(r,e){return Q(this._locales||this._locale,r,e)}};function nr(o={}){return new re(o)}var
|
|
10
|
+
`)),F(c)&&ke.test(c)?JSON.parse(`"${c}"`):F(c)?c:er(c,this._locale,this._locales)(e,t==null?void 0:t.formats)}date(r,e){return oe(this._locales||this._locale,r,e)}number(r,e){return Q(this._locales||this._locale,r,e)}};function nr(o={}){return new re(o)}var P=nr();var u=function(o,r,e,t){if(e==="a"&&!t)throw new TypeError("Private accessor was defined without a getter");if(typeof r=="function"?o!==r||!t:!r.has(o))throw new TypeError("Cannot read private member from an object whose class did not declare it");return e==="m"?t:e==="a"?t.call(o):t?t.value:r.get(o)},g=function(o,r,e,t,a){if(t==="m")throw new TypeError("Private method is not writable");if(t==="a"&&!a)throw new TypeError("Private accessor was defined without a setter");if(typeof r=="function"?o!==r||!a:!r.has(o))throw new TypeError("Cannot write private member to an object whose class did not declare it");return t==="a"?a.call(o,e):a?a.value=e:r.set(o,e),e};function _e(o){var r,e,t,a,i,s,n,c,v,_,M,$,k,z,E,x,A,R,K;class Le extends o{constructor(...l){var d,b,m;super(...l),r.add(this),this.internals=this.attachInternals(),e.set(this,!1),t.set(this,!1),a.set(this,!1),i.set(this,void 0),s.set(this,void 0),n.set(this,!0),v.set(this,""),_.set(this,()=>{g(this,a,!0,"f"),g(this,e,!0,"f"),u(this,r,"m",x).call(this)}),M.set(this,()=>{g(this,e,!1,"f"),u(this,r,"m",A).call(this,this.shouldFormValueUpdate()?u(this,v,"f"):""),!this.validity.valid&&u(this,a,"f")&&g(this,t,!0,"f");let O=u(this,r,"m",x).call(this);this.validationMessageCallback&&this.validationMessageCallback(O?this.internals.validationMessage:"")}),$.set(this,()=>{var O;u(this,n,"f")&&this.validationTarget&&(this.internals.setValidity(this.validity,this.validationMessage,this.validationTarget),g(this,n,!1,"f")),g(this,a,!0,"f"),g(this,t,!0,"f"),u(this,r,"m",x).call(this),(O=this===null||this===void 0?void 0:this.validationMessageCallback)===null||O===void 0||O.call(this,this.showError?this.internals.validationMessage:"")}),k.set(this,void 0),z.set(this,!1),E.set(this,Promise.resolve()),(d=this.addEventListener)===null||d===void 0||d.call(this,"focus",u(this,_,"f")),(b=this.addEventListener)===null||b===void 0||b.call(this,"blur",u(this,M,"f")),(m=this.addEventListener)===null||m===void 0||m.call(this,"invalid",u(this,$,"f")),this.setValue(null)}static get formAssociated(){return!0}static get validators(){return this.formControlValidators||[]}static get observedAttributes(){let l=this.validators.map(m=>m.attribute).flat(),d=super.observedAttributes||[];return[...new Set([...d,...l])]}static getValidator(l){return this.validators.find(d=>d.attribute===l)||null}static getValidators(l){return this.validators.filter(d=>{var b;if(d.attribute===l||!((b=d.attribute)===null||b===void 0)&&b.includes(l))return!0})}get form(){return this.internals.form}get showError(){return u(this,r,"m",x).call(this)}checkValidity(){return this.internals.checkValidity()}get validity(){return this.internals.validity}get validationMessage(){return this.internals.validationMessage}attributeChangedCallback(l,d,b){var m;(m=super.attributeChangedCallback)===null||m===void 0||m.call(this,l,d,b);let D=this.constructor.getValidators(l);D!=null&&D.length&&this.validationTarget&&this.setValue(u(this,v,"f"))}setValue(l){var d;g(this,t,!1,"f"),(d=this.validationMessageCallback)===null||d===void 0||d.call(this,""),g(this,v,l,"f");let m=this.shouldFormValueUpdate()?l:null;this.internals.setFormValue(m),u(this,r,"m",A).call(this,m),this.valueChangedCallback&&this.valueChangedCallback(m),u(this,r,"m",x).call(this)}shouldFormValueUpdate(){return!0}get validationComplete(){return new Promise(l=>l(u(this,E,"f")))}formResetCallback(){var l,d;g(this,a,!1,"f"),g(this,t,!1,"f"),u(this,r,"m",x).call(this),(l=this.resetFormControl)===null||l===void 0||l.call(this),(d=this.validationMessageCallback)===null||d===void 0||d.call(this,u(this,r,"m",x).call(this)?this.validationMessage:"")}}return e=new WeakMap,t=new WeakMap,a=new WeakMap,i=new WeakMap,s=new WeakMap,n=new WeakMap,v=new WeakMap,_=new WeakMap,M=new WeakMap,$=new WeakMap,k=new WeakMap,z=new WeakMap,E=new WeakMap,r=new WeakSet,c=function(){let l=this.getRootNode(),d=`${this.localName}[name="${this.getAttribute("name")}"]`;return l.querySelectorAll(d)},x=function(){if(this.hasAttribute("disabled"))return!1;let l=u(this,t,"f")||u(this,a,"f")&&!this.validity.valid&&!u(this,e,"f");return l&&this.internals.states?this.internals.states.add("--show-error"):this.internals.states&&this.internals.states.delete("--show-error"),l},A=function(l){let d=this.constructor,b={},m=d.validators,O=[],D=m.some(y=>y.isValid instanceof Promise);u(this,z,"f")||(g(this,E,new Promise(y=>{g(this,k,y,"f")}),"f"),g(this,z,!0,"f")),u(this,i,"f")&&(u(this,i,"f").abort(),g(this,s,u(this,i,"f"),"f"));let j=new AbortController;g(this,i,j,"f");let U,ie=!1;m.length&&(m.forEach(y=>{let G=y.key||"customError",L=y.isValid(this,l,j.signal);L instanceof Promise?(O.push(L),L.then(J=>{J!=null&&(b[G]=!J,U=u(this,r,"m",K).call(this,y,l),u(this,r,"m",R).call(this,b,U))})):(b[G]=!L,this.validity[G]!==!L&&(ie=!0),!L&&!U&&(U=u(this,r,"m",K).call(this,y,l)))}),Promise.allSettled(O).then(()=>{var y;j!=null&&j.signal.aborted||(g(this,z,!1,"f"),(y=u(this,k,"f"))===null||y===void 0||y.call(this))}),(ie||!D)&&u(this,r,"m",R).call(this,b,U))},R=function(l,d){if(this.validationTarget)this.internals.setValidity(l,d,this.validationTarget),g(this,n,!1,"f");else{if(this.internals.setValidity(l,d),this.internals.validity.valid)return;g(this,n,!0,"f")}},K=function(l,d){if(this.validityCallback){let b=this.validityCallback(l.key||"customError");if(b)return b}return l.message instanceof Function?l.message(this,d):l.message},Le}import{html as ae,LitElement as ur}from"lit";import{property as w,state as Z}from"lit/decorators.js";import{repeat as hr}from"lit/directives/repeat.js";var sr=["en","nb","fi","da","sv"],Ce="en",Oe=o=>sr.find(r=>o===r||o.toLowerCase().includes(r))||Ce;function lr(){if(typeof window=="undefined"){let o=process.env.NMP_LANGUAGE||Intl.DateTimeFormat().resolvedOptions().locale;return Oe(o)}try{let o=document.documentElement.lang;return Oe(o)}catch(o){return console.warn("could not detect locale, falling back to source locale",o),Ce}}var cr=(o,r,e,t,a,i)=>o==="nb"?e:o==="fi"?t:o==="da"?a:o==="sv"?i:r,Me=(o,r,e,t,a)=>{let i=lr(),s=cr(i,o,r,e,t,a);P.load(i,s),P.activate(i)};import{css as ze}from"lit";var Ee=ze`
|
|
11
11
|
*,
|
|
12
12
|
:before,
|
|
13
13
|
:after {
|
|
@@ -2446,10 +2446,10 @@ Please compile your catalog first.
|
|
|
2446
2446
|
display: none
|
|
2447
2447
|
}
|
|
2448
2448
|
}
|
|
2449
|
-
`;var Fe=JSON.parse('{"combobox.aria.pluralResults":[["numResults","plural",{"one":["#"," resultat"],"other":["#"," resultater"]}]],"combobox.aria.noResults":["Ingen resultater"]}');var Se=JSON.parse('{"combobox.aria.pluralResults":[["numResults","plural",{"one":["#"," result"],"other":["#"," results"]}]],"combobox.aria.noResults":["No results"]}');var Ae=JSON.parse('{"combobox.aria.pluralResults":[["numResults","plural",{"one":["#"," tulos"],"other":["#"," tulosta"]}]],"combobox.aria.noResults":["Ei tuloksia"]}');var Ie=JSON.parse('{"combobox.aria.pluralResults":[["numResults","plural",{"one":["#"," resultat"],"other":["#"," resultater"]}]],"combobox.aria.noResults":["Ingen resultater"]}');var Te=JSON.parse('{"combobox.aria.pluralResults":[["numResults","plural",{"one":["#"," resultat"],"other":["#"," resultat"]}]],"combobox.aria.noResults":["Inga resultat"]}');import{css as dr}from"lit";var
|
|
2450
|
-
.z-0{z-index:0;}.z-20{z-index:20;}`;var S={wrapper:"relative z-0",base:"absolute z-20 left-0 right-0 s-bg pb-4 rounded-8 overflow-hidden shadow-m",listbox:"m-0 p-0 select-none list-none",option:"block cursor-pointer p-8",optionUnselected:"hover:s-bg-hover",optionSelected:"s-bg-selected hover:s-bg-selected-hover",textMatch:"font-bold",a11y:"sr-only"},B,h=class extends _e(ur){constructor(){super();this.options=[];this.value="";this.openOnFocus=!1;this.selectOnBlur=!0;this.matchTextSegments=!1;this.disableStaticFiltering=!1;this.invalid=!1;this.disabled=!1;this.required=!1;this.optional=!1;this._isOpen=!1;this._navigationOption=null;this._currentOptions=[];this._optionIdCounter=0;ue(this,B,null);Me(Se,Ie,Ae,Fe,Te)}firstUpdated(e){he(this,B,this.value)}updated(e){e.has("value")&&this.setValue(this.value)}resetFormControl(){this.value=de(this,B)}get _listboxId(){return`${this._id}-listbox`}get _id(){return"combobox"}get _helpId(){return this.helpText?`${this._id}__hint`:void 0}get _navigationValueOrInputValue(){var e;return((e=this._navigationOption)==null?void 0:e.value)||this.value}_createOptionsWithIdAndMatch(e,t){return e.map((a,i)=>({...a,id:`${this._id}-option-${this._optionIdCounter+i}`,key:a.key||a.value,currentInputValue:t}))}_getAriaText(e,t){if(!e||!t)return"";let a=e.filter(n=>n.value.toLowerCase().includes(t.toLowerCase())),i=
|
|
2449
|
+
`;var Fe=JSON.parse('{"combobox.aria.pluralResults":[["numResults","plural",{"one":["#"," resultat"],"other":["#"," resultater"]}]],"combobox.aria.noResults":["Ingen resultater"]}');var Se=JSON.parse('{"combobox.aria.pluralResults":[["numResults","plural",{"one":["#"," result"],"other":["#"," results"]}]],"combobox.aria.noResults":["No results"]}');var Ae=JSON.parse('{"combobox.aria.pluralResults":[["numResults","plural",{"one":["#"," tulos"],"other":["#"," tulosta"]}]],"combobox.aria.noResults":["Ei tuloksia"]}');var Ie=JSON.parse('{"combobox.aria.pluralResults":[["numResults","plural",{"one":["#"," resultat"],"other":["#"," resultater"]}]],"combobox.aria.noResults":["Ingen resultater"]}');var Te=JSON.parse('{"combobox.aria.pluralResults":[["numResults","plural",{"one":["#"," resultat"],"other":["#"," resultat"]}]],"combobox.aria.noResults":["Inga resultat"]}');import{css as dr}from"lit";var $e=dr`*,:before,:after{--w-rotate:0;--w-rotate-x:0;--w-rotate-y:0;--w-rotate-z:0;--w-scale-x:1;--w-scale-y:1;--w-scale-z:1;--w-skew-x:0;--w-skew-y:0;--w-translate-x:0;--w-translate-y:0;--w-translate-z:0}.rounded-8{border-radius:8px}.block{display:block}.overflow-hidden{overflow:hidden}.list-none{list-style-type:none}.left-0{left:0}.right-0{right:0}.absolute{position:absolute}.relative{position:relative}.static{position:static}.s-bg{background-color:var(--w-s-color-background)}.s-bg-selected{background-color:var(--w-s-color-background-selected)}.hover\\:s-bg-hover:hover{background-color:var(--w-s-color-background-hover)}.hover\\:s-bg-selected-hover:hover{background-color:var(--w-s-color-background-selected-hover)}.shadow-m{box-shadow:var(--w-shadow-m)}.m-0{margin:0}.p-0{padding:0}.p-8{padding:.8rem}.pb-4{padding-bottom:.4rem}.cursor-pointer{cursor:pointer}.font-bold{font-weight:700}.sr-only{clip:rect(0,0,0,0);white-space:nowrap;border-width:0;width:1px;height:1px;margin:-1px;padding:0;position:absolute;overflow:hidden}.select-none{-webkit-user-select:none;user-select:none};
|
|
2450
|
+
.z-0{z-index:0;}.z-20{z-index:20;}`;var S={wrapper:"relative z-0",base:"absolute z-20 left-0 right-0 s-bg pb-4 rounded-8 overflow-hidden shadow-m",listbox:"m-0 p-0 select-none list-none",option:"block cursor-pointer p-8",optionUnselected:"hover:s-bg-hover",optionSelected:"s-bg-selected hover:s-bg-selected-hover",textMatch:"font-bold",a11y:"sr-only"},B,h=class extends _e(ur){constructor(){super();this.options=[];this.value="";this.openOnFocus=!1;this.selectOnBlur=!0;this.matchTextSegments=!1;this.disableStaticFiltering=!1;this.invalid=!1;this.disabled=!1;this.required=!1;this.optional=!1;this.autocomplete="off";this._isOpen=!1;this._navigationOption=null;this._currentOptions=[];this._optionIdCounter=0;ue(this,B,null);Me(Se,Ie,Ae,Fe,Te)}firstUpdated(e){he(this,B,this.value)}updated(e){e.has("value")&&this.setValue(this.value)}resetFormControl(){this.value=de(this,B)}get _listboxId(){return`${this._id}-listbox`}get _id(){return"combobox"}get _helpId(){return this.helpText?`${this._id}__hint`:void 0}get _navigationValueOrInputValue(){var e;return((e=this._navigationOption)==null?void 0:e.value)||this.value}_createOptionsWithIdAndMatch(e,t){return e.map((a,i)=>({...a,id:`${this._id}-option-${this._optionIdCounter+i}`,key:a.key||a.value,currentInputValue:t}))}_getAriaText(e,t){if(!e||!t)return"";let a=e.filter(n=>n.value.toLowerCase().includes(t.toLowerCase())),i=P._({id:"combobox.aria.pluralResults",message:"{numResults, plural, one {# result} other {# results}}",comment:"Aria text for combobox when one or more results",values:{numResults:a.length}}),s=P._({id:"combobox.aria.noResults",message:"No results",comment:"Aria text for combobox when no results"});return a.length?i:s}_getOptionClasses(e){var t;return Y(S.option,((t=this._navigationOption)==null?void 0:t.id)===(e==null?void 0:e.id)?S.optionSelected:S.optionUnselected)}_handleKeyDown(e){let t=["ArrowDown","ArrowUp","PageUp","PageDown","Home","End"].includes(e.key),a=["ArrowDown","ArrowLeft","ArrowUp","ArrowRight"];if(t&&!this._isOpen){this._isOpen=!0;return}if(t&&this._isOpen){this._findAndSetActiveOption(e);return}if(!(e.altKey||e.ctrlKey||e.metaKey||e.shiftKey))switch(e.key){case"Enter":this._navigationOption&&(e.preventDefault(),this._handleSelect(this._navigationOption),requestAnimationFrame(()=>{var n,c;let i=(n=this.shadowRoot)==null?void 0:n.querySelector("w-textfield"),s=(c=i==null?void 0:i.shadowRoot)==null?void 0:c.querySelector("input");s&&(s.value=this.value)})),this._isOpen=!1;break;case"Tab":case"Delete":this._isOpen=!1;break;case"Escape":this._isOpen?this._isOpen=!1:this._handleChange(""),this._navigationOption=null;break;case"Backspace":this._handleChange(this._navigationValueOrInputValue),this._navigationOption=null,this._isOpen=!0;break;default:if(a.includes(e.key))break;this._isOpen=!0,this._navigationOption?(this._handleChange(this._navigationOption.value),this._navigationOption=null):this._handleChange(this.value);break}}_findAndSetActiveOption(e){e.preventDefault();let t=this._currentOptions.findIndex(s=>{var n;return s.id===((n=this._navigationOption)==null?void 0:n.id)}),a=t+1,i=t-1;switch(e.key){case"ArrowDown":this._navigationOption=a>this._currentOptions.length-1?null:this._currentOptions[a];break;case"ArrowUp":this._navigationOption=i===-2?this._currentOptions[this._currentOptions.length-1]:i<0?null:this._currentOptions[i];break;case"PageUp":this._navigationOption=t-10<0?this._currentOptions[0]:this._currentOptions[t-10];break;case"PageDown":this._navigationOption=t+10>this._currentOptions.length-1?this._currentOptions[this._currentOptions.length-1]:this._currentOptions[t+10];break;case"Home":this._navigationOption=this._currentOptions[0];break;case"End":this._navigationOption=this._currentOptions[this._currentOptions.length-1];break}}_handleSelect(e){this.value=e.value,this.setValue(this.value);let t=new CustomEvent("select",{detail:{value:e.value},bubbles:!0,composed:!0});this.dispatchEvent(t),this._isOpen=!1,this._navigationOption=null,this.disableStaticFiltering&&(this._currentOptions=[])}_handleChange(e){if(e===void 0)return;this.value=e;let t=new CustomEvent("change",{detail:{value:e},bubbles:!0,composed:!0});this.dispatchEvent(t)}_handleFocus(){if(!this.openOnFocus)return;let e=new CustomEvent("focus",{bubbles:!0,composed:!0});this.dispatchEvent(e),this._isOpen=!0}_handleBlur(e){var i,s;let t=e.relatedTarget;if(t&&((i=this.shadowRoot)!=null&&i.contains(t)))return;if(this._isOpen=!1,this.selectOnBlur&&(this._navigationOption||!this._navigationOption&&this._currentOptions.findIndex(n=>n.value===this.value)!==-1)){let n=((s=this._navigationOption)==null?void 0:s.value)||this.value;this.value=n;let c=new CustomEvent("select",{detail:{value:n},bubbles:!0,composed:!0});this.dispatchEvent(c)}this._navigationOption=null;let a=new CustomEvent("blur",{detail:{value:this._navigationValueOrInputValue},bubbles:!0,composed:!0});this.dispatchEvent(a)}_handleOptionClick(e,t){this._handleSelect(t),requestAnimationFrame(()=>{var s,n;let a=(s=this.shadowRoot)==null?void 0:s.querySelector("w-textfield"),i=(n=a==null?void 0:a.shadowRoot)==null?void 0:n.querySelector("input");i&&(i.value=t.value)})}_handleContainerBlur(e){(!e.currentTarget||!e.currentTarget.contains(e.relatedTarget))&&(this._isOpen=!1)}_renderTextMatch(e,t){if(!this.matchTextSegments)return e;let a=e.toLowerCase().indexOf(t.currentInputValue.toLowerCase());if(a!==-1){let i=a+t.currentInputValue.length;return ae`${e.substring(0,a)}<span class="${S.textMatch}">${e.substring(a,i)}</span
|
|
2451
2451
|
>${e.substring(i)}`}return e}willUpdate(e){(e.has("options")||e.has("value")||e.has("disableStaticFiltering"))&&(this._optionIdCounter+=this.options.length,this._currentOptions=this._createOptionsWithIdAndMatch(this.options,this.value).filter(t=>this.disableStaticFiltering?!0:t.value.toLowerCase().includes(this.value.toLowerCase()))),this.disableStaticFiltering&&this._currentOptions.length&&this._currentOptions.length===1&&!this._currentOptions.some(t=>t.value===this.value)&&!this._isOpen&&(this._isOpen=!0)}render(){var e;return ae`
|
|
2452
|
-
<div class=${Y(S.wrapper
|
|
2452
|
+
<div class=${Y(S.wrapper)} @blur=${this._handleContainerBlur}>
|
|
2453
2453
|
<w-textfield
|
|
2454
2454
|
class="w-combobox-textfield"
|
|
2455
2455
|
.value=${this._navigationValueOrInputValue}
|
|
@@ -2461,6 +2461,7 @@ Please compile your catalog first.
|
|
|
2461
2461
|
.required=${this.required}
|
|
2462
2462
|
.optional=${this.optional}
|
|
2463
2463
|
.name=${this.name}
|
|
2464
|
+
.autocomplete="${this.autocomplete}"
|
|
2464
2465
|
role="combobox"
|
|
2465
2466
|
aria-autocomplete="list"
|
|
2466
2467
|
aria-expanded=${this._isOpen&&this._currentOptions.length!==0}
|
|
@@ -2473,7 +2474,7 @@ Please compile your catalog first.
|
|
|
2473
2474
|
|
|
2474
2475
|
<span class="${S.a11y}" role="status"> ${this._getAriaText(this._currentOptions,this.value)} </span>
|
|
2475
2476
|
|
|
2476
|
-
<div ?hidden=${!this._isOpen||!this._currentOptions.length} class=${Y(S.base
|
|
2477
|
+
<div ?hidden=${!this._isOpen||!this._currentOptions.length} class=${Y(S.base)}>
|
|
2477
2478
|
<ul id=${this._listboxId} role="listbox" class="${S.listbox}">
|
|
2478
2479
|
${hr(this._currentOptions,t=>t.key,t=>{var i;let a=t.label||t.value;return ae`
|
|
2479
2480
|
<li
|
|
@@ -2489,5 +2490,5 @@ Please compile your catalog first.
|
|
|
2489
2490
|
</ul>
|
|
2490
2491
|
</div>
|
|
2491
2492
|
</div>
|
|
2492
|
-
`}};B=new WeakMap,h.styles=[Ee
|
|
2493
|
+
`}};B=new WeakMap,h.styles=[Ee,$e],p([w({type:Array})],h.prototype,"options",2),p([w({type:String,reflect:!0})],h.prototype,"label",2),p([w({type:String,reflect:!0})],h.prototype,"placeholder",2),p([w({type:String,reflect:!0})],h.prototype,"value",2),p([w({type:Boolean,attribute:"open-on-focus"})],h.prototype,"openOnFocus",2),p([w({type:Boolean,attribute:"select-on-blur"})],h.prototype,"selectOnBlur",2),p([w({type:Boolean,attribute:"match-text-segments"})],h.prototype,"matchTextSegments",2),p([w({type:Boolean,attribute:"disable-static-filtering"})],h.prototype,"disableStaticFiltering",2),p([w({type:Boolean,reflect:!0})],h.prototype,"invalid",2),p([w({type:String,attribute:"help-text",reflect:!0})],h.prototype,"helpText",2),p([w({type:Boolean,reflect:!0})],h.prototype,"disabled",2),p([w({type:Boolean,reflect:!0})],h.prototype,"required",2),p([w({type:Boolean,reflect:!0})],h.prototype,"optional",2),p([w({type:String,reflect:!0})],h.prototype,"name",2),p([w({type:String,reflect:!0})],h.prototype,"autocomplete",2),p([Z()],h.prototype,"_isOpen",2),p([Z()],h.prototype,"_navigationOption",2),p([Z()],h.prototype,"_currentOptions",2),p([Z()],h.prototype,"_optionIdCounter",2);customElements.get("w-combobox")||customElements.define("w-combobox",h);export{h as WarpCombobox};
|
|
2493
2494
|
//# sourceMappingURL=index.js.map
|