diff --git a/pr/pr-180/cosmoz-autocomplete.stories-CpayrQf7.js b/pr/pr-180/cosmoz-autocomplete.stories-B-XW1aYu.js similarity index 97% rename from pr/pr-180/cosmoz-autocomplete.stories-CpayrQf7.js rename to pr/pr-180/cosmoz-autocomplete.stories-B-XW1aYu.js index 88699a5..41f7584 100644 --- a/pr/pr-180/cosmoz-autocomplete.stories-CpayrQf7.js +++ b/pr/pr-180/cosmoz-autocomplete.stories-B-XW1aYu.js @@ -1,4 +1,4 @@ -import { w, f as f$1, j, T, m as m$1, i as i$3, x, p, v, r as r$1, h as h$2 } from './lit-element-DB2L7MOw.js'; +import { w, f as f$1, j, T, m as m$1, x, i as i$3, p, v, r as r$1, h as h$2 } from './lit-element-DB2L7MOw.js'; /** * @license @@ -651,31 +651,13 @@ const { component, createContext } = pion({ render: j }); * SPDX-License-Identifier: BSD-3-Clause */const l=e(class extends i$2{constructor(r){if(super(r),r.type!==t.PROPERTY&&r.type!==t.ATTRIBUTE&&r.type!==t.BOOLEAN_ATTRIBUTE)throw Error("The `live` directive is not allowed on child or event bindings");if(!f$1(r))throw Error("`live` bindings can only contain a single expression")}render(r){return r}update(i,[t$1]){if(t$1===w||t$1===T)return t$1;const o=i.element,l=i.name;if(i.type===t.PROPERTY){if(t$1===o[l])return w}else if(i.type===t.BOOLEAN_ATTRIBUTE){if(!!t$1===o.hasAttribute(l))return w}else if(i.type===t.ATTRIBUTE&&o.getAttribute(l)===t$1+"")return w;return m$1(i),t$1}}); -/** - * @license - * Copyright 2021 Google LLC - * SPDX-License-Identifier: BSD-3-Clause - */ -class s{constructor(t){this.Y=t;}disconnect(){this.Y=void 0;}reconnect(t){this.Y=t;}deref(){return this.Y}}class i{constructor(){this.Z=void 0,this.q=void 0;}get(){return this.Z}pause(){this.Z??=new Promise((t=>this.q=t));}resume(){this.q?.(),this.Z=this.q=void 0;}} - -/** - * @license - * Copyright 2017 Google LLC - * SPDX-License-Identifier: BSD-3-Clause - */const n$2=t=>!i$3(t)&&"function"==typeof t.then,h=1073741823;let c$1 = class c extends f{constructor(){super(...arguments),this._$Cwt=h,this._$Cbt=[],this._$CK=new s(this),this._$CX=new i;}render(...s){return s.find((t=>!n$2(t)))??w}update(s,i){const e=this._$Cbt;let r=e.length;this._$Cbt=i;const o=this._$CK,c=this._$CX;this.isConnected||this.disconnected();for(let t=0;tthis._$Cwt);t++){const s=i[t];if(!n$2(s))return this._$Cwt=t,s;t{for(;c.get();)await c.get();const i=o.deref();if(void 0!==i){const e=i._$Cbt.indexOf(s);e>-1&&eo??T; const useImperativeApi = hook(class extends Hook { values; @@ -695,13 +677,11 @@ const useImperativeApi = hook(class extends Hook { } }); -const o$1=new WeakMap,n=e(class extends f{render(i){return T}update(i,[s]){const e=s!==this.Y;return e&&void 0!==this.Y&&this.rt(void 0),(e||this.lt!==this.ct)&&(this.Y=s,this.ht=i.options?.host,this.rt(this.ct=i.element)),T}rt(t){if("function"==typeof this.Y){const i=this.ht??globalThis;let s=o$1.get(i);void 0===s&&(s=new WeakMap,o$1.set(i,s)),void 0!==s.get(this.Y)&&this.Y.call(this.ht,void 0),s.set(this.Y,t),void 0!==t&&this.Y.call(this.ht,t);}else this.Y.value=t;}get lt(){return "function"==typeof this.Y?o$1.get(this.ht??globalThis)?.get(this.Y):this.Y?.value}disconnected(){this.lt===this.ct&&this.rt(void 0);}reconnected(){this.rt(this.ct);}}); - -/** - * @license - * Copyright 2018 Google LLC - * SPDX-License-Identifier: BSD-3-Clause - */const o=o=>o??T; +const useHost = hook(class extends Hook { + update() { + return this.state.host; + } +}); const UPPER = /([A-Z])/gu; /* Emulate polymer notify props */ @@ -760,6 +740,13 @@ const useAllowedPattern = (allowedPattern) => useMemo(() => { }; }, [allowedPattern]); +/** + * @license + * Copyright 2021 Google LLC + * SPDX-License-Identifier: BSD-3-Clause + */ +function n$1(n,r,t){return n?r(n):t?.(n)} + const tagged = (strings, ...values) => strings.flatMap((s, i) => [s, values[i] || '']).join(''); const sheet = (...styles) => { @@ -1057,7 +1044,7 @@ const Input = (host) => { }, []); return render(x ` { useAutoHeight(host); return render(x `