solid-ui 3.1.3-10 → 3.1.3-11
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/_virtual/~icons/svg-spinners/3-dots-fade.cjs.js +2 -0
- package/dist/_virtual/~icons/svg-spinners/3-dots-fade.cjs.js.map +1 -0
- package/dist/_virtual/~icons/svg-spinners/3-dots-fade.esm.js +11 -0
- package/dist/_virtual/~icons/svg-spinners/3-dots-fade.esm.js.map +1 -0
- package/dist/chunks/{DialogProvider-CrvbR_fd.js → DialogProvider-ge2aA77F.js} +3 -3
- package/dist/chunks/DialogProvider-ge2aA77F.js.map +1 -0
- package/dist/chunks/{account-Ma2Ipfjx.js → account-CdqIoTsl.js} +11 -11
- package/dist/chunks/{account-Ma2Ipfjx.js.map → account-CdqIoTsl.js.map} +1 -1
- package/dist/chunks/{auth-BI22fz6P.js → auth-D8B5yczR.js} +9 -9
- package/dist/chunks/{auth-BI22fz6P.js.map → auth-D8B5yczR.js.map} +1 -1
- package/dist/chunks/{avatar-DN7FzC2N.js → avatar-DNGFKkhm.js} +4 -4
- package/dist/chunks/{avatar-DN7FzC2N.js.map → avatar-DNGFKkhm.js.map} +1 -1
- package/dist/chunks/{button-DHahwxqn.js → button-oanBb_ha.js} +2 -2
- package/dist/chunks/{button-DHahwxqn.js.map → button-oanBb_ha.js.map} +1 -1
- package/dist/chunks/combobox-Dav1bNHS.js +734 -0
- package/dist/chunks/combobox-Dav1bNHS.js.map +1 -0
- package/dist/chunks/{combobox-option-DB6KGb7o.js → combobox-option-DxJvAZ_Q.js} +2 -2
- package/dist/chunks/{combobox-option-DB6KGb7o.js.map → combobox-option-DxJvAZ_Q.js.map} +1 -1
- package/dist/chunks/{components-DH1slGZY.js → components-PQfnwrHI.js} +10 -10
- package/dist/chunks/components-PQfnwrHI.js.map +1 -0
- package/dist/chunks/{context-CA1Kq0FW.js → context-B_xwK-Y_.js} +2 -2
- package/dist/chunks/{context-CA1Kq0FW.js.map → context-B_xwK-Y_.js.map} +1 -1
- package/dist/chunks/{dialog-YaqTwAtR.js → dialog-Ujvm11_B.js} +5 -5
- package/dist/chunks/{dialog-YaqTwAtR.js.map → dialog-Ujvm11_B.js.map} +1 -1
- package/dist/chunks/{dialog-content-B3I3H7hj.js → dialog-content-CEITrC59.js} +2 -2
- package/dist/chunks/{dialog-content-B3I3H7hj.js.map → dialog-content-CEITrC59.js.map} +1 -1
- package/dist/chunks/{dialog-footer-BjcYeVhg.js → dialog-footer-DVLEK5bU.js} +2 -2
- package/dist/chunks/{dialog-footer-BjcYeVhg.js.map → dialog-footer-DVLEK5bU.js.map} +1 -1
- package/dist/chunks/{dialog-header-BynEzovK.js → dialog-header-kEWl21oD.js} +2 -2
- package/dist/chunks/{dialog-header-BynEzovK.js.map → dialog-header-kEWl21oD.js.map} +1 -1
- package/dist/chunks/{dialogs-root-B61LtZks.js → dialogs-root-dPGfuzSZ.js} +3 -3
- package/dist/chunks/{dialogs-root-B61LtZks.js.map → dialogs-root-dPGfuzSZ.js.map} +1 -1
- package/dist/chunks/{guard-YhbCPY-V.js → guard-DZGvf4tS.js} +4 -4
- package/dist/chunks/{guard-YhbCPY-V.js.map → guard-DZGvf4tS.js.map} +1 -1
- package/dist/chunks/{input-CVKu3XRI.js → input-BjCX2bFe.js} +8 -8
- package/dist/chunks/input-BjCX2bFe.js.map +1 -0
- package/dist/chunks/{login-button-76PlEs2Y.js → login-button-Ta3tkpn4.js} +5 -5
- package/dist/chunks/{login-button-76PlEs2Y.js.map → login-button-Ta3tkpn4.js.map} +1 -1
- package/dist/chunks/{logout-button-Dt3Utgj0.js → logout-button-Db6VmUmJ.js} +5 -5
- package/dist/chunks/{logout-button-Dt3Utgj0.js.map → logout-button-Db6VmUmJ.js.map} +1 -1
- package/dist/chunks/{menu-6ayNsxFG.js → menu-CQEXqNO6.js} +2 -2
- package/dist/chunks/{menu-6ayNsxFG.js.map → menu-CQEXqNO6.js.map} +1 -1
- package/dist/chunks/{menu-item-Ckl9f1rG.js → menu-item-BHJ4xljI.js} +2 -2
- package/dist/chunks/{menu-item-Ckl9f1rG.js.map → menu-item-BHJ4xljI.js.map} +1 -1
- package/dist/chunks/{provider-BfO67dzy.js → provider-CoVkCkMs.js} +5 -5
- package/dist/chunks/provider-CoVkCkMs.js.map +1 -0
- package/dist/chunks/{select-DHFgELMJ.js → select-OM-SgY4K.js} +101 -66
- package/dist/chunks/select-OM-SgY4K.js.map +1 -0
- package/dist/chunks/{select-option-Duk4S4Sc.js → select-option-pVhYlXrt.js} +2 -2
- package/dist/chunks/{select-option-Duk4S4Sc.js.map → select-option-pVhYlXrt.js.map} +1 -1
- package/dist/chunks/{signup-button-B10K6b8A.js → signup-button-wO4uoqUi.js} +5 -5
- package/dist/chunks/{signup-button-B10K6b8A.js.map → signup-button-wO4uoqUi.js.map} +1 -1
- package/dist/chunks/{solid-emblem-DgBJk5Th.js → solid-emblem-D2clBuKZ.js} +2 -2
- package/dist/chunks/{solid-emblem-DgBJk5Th.js.map → solid-emblem-D2clBuKZ.js.map} +1 -1
- package/dist/chunks/{src-CdZhCYdF.js → src-B9CXYA44.js} +3 -3
- package/dist/chunks/{src-CdZhCYdF.js.map → src-B9CXYA44.js.map} +1 -1
- package/dist/components/account.js +1 -1
- package/dist/components/avatar.js +1 -1
- package/dist/components/button.js +1 -1
- package/dist/components/combobox/Combobox.cjs.js +21 -21
- package/dist/components/combobox/Combobox.cjs.js.map +1 -1
- package/dist/components/combobox/Combobox.d.ts +30 -3
- package/dist/components/combobox/Combobox.d.ts.map +1 -1
- package/dist/components/combobox/Combobox.esm.js +268 -107
- package/dist/components/combobox/Combobox.esm.js.map +1 -1
- package/dist/components/combobox/Combobox.stories.d.ts +54 -0
- package/dist/components/combobox/Combobox.stories.d.ts.map +1 -1
- package/dist/components/combobox/Combobox.styles.cjs.js +1 -1
- package/dist/components/combobox/Combobox.styles.cjs.js.map +1 -1
- package/dist/components/combobox/Combobox.styles.esm.js +1 -1
- package/dist/components/combobox/Combobox.styles.esm.js.map +1 -1
- package/dist/components/combobox/index.cjs.js +1 -1
- package/dist/components/combobox/index.cjs.js.map +1 -1
- package/dist/components/combobox/index.d.ts +1 -0
- package/dist/components/combobox/index.d.ts.map +1 -1
- package/dist/components/combobox/index.esm.js +3 -3
- package/dist/components/combobox/index.esm.js.map +1 -1
- package/dist/components/combobox-option.js +1 -1
- package/dist/components/combobox.js +2 -2
- package/dist/components/dialog-content.js +1 -1
- package/dist/components/dialog-footer.js +1 -1
- package/dist/components/dialog-header.js +1 -1
- package/dist/components/dialog-provider/DialogProvider.cjs.js.map +1 -1
- package/dist/components/dialog-provider/DialogProvider.d.ts +2 -1
- package/dist/components/dialog-provider/DialogProvider.d.ts.map +1 -1
- package/dist/components/dialog-provider/DialogProvider.esm.js.map +1 -1
- package/dist/components/dialog-provider.js +1 -1
- package/dist/components/dialog.js +1 -1
- package/dist/components/dialogs-root.js +1 -1
- package/dist/components/guard.js +1 -1
- package/dist/components/input/Input.cjs.js +5 -5
- package/dist/components/input/Input.cjs.js.map +1 -1
- package/dist/components/input/Input.d.ts +1 -1
- package/dist/components/input/Input.d.ts.map +1 -1
- package/dist/components/input/Input.esm.js +7 -7
- package/dist/components/input/Input.esm.js.map +1 -1
- package/dist/components/input.js +1 -1
- package/dist/components/login-button.js +1 -1
- package/dist/components/login-modal.js +1 -1
- package/dist/components/logout-button.js +1 -1
- package/dist/components/menu-item.js +1 -1
- package/dist/components/menu.js +1 -1
- package/dist/components/provider/Provider.cjs.js.map +1 -1
- package/dist/components/provider/Provider.d.ts +2 -1
- package/dist/components/provider/Provider.d.ts.map +1 -1
- package/dist/components/provider/Provider.esm.js.map +1 -1
- package/dist/components/provider.js +1 -1
- package/dist/components/select/Select.cjs.js +7 -6
- package/dist/components/select/Select.cjs.js.map +1 -1
- package/dist/components/select/Select.d.ts +12 -2
- package/dist/components/select/Select.d.ts.map +1 -1
- package/dist/components/select/Select.esm.js +96 -65
- package/dist/components/select/Select.esm.js.map +1 -1
- package/dist/components/select/index.cjs.js.map +1 -1
- package/dist/components/select/index.d.ts +1 -0
- package/dist/components/select/index.d.ts.map +1 -1
- package/dist/components/select/index.esm.js.map +1 -1
- package/dist/components/select-option.js +1 -1
- package/dist/components/select.js +1 -1
- package/dist/components/signup-button.js +1 -1
- package/dist/components/solid-emblem.js +1 -1
- package/dist/components.js +22 -22
- package/dist/index.cjs.js +1 -1
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.esm.js +2 -2
- package/dist/index.js +6 -6
- package/dist/lib/components/index.cjs.js +1 -1
- package/dist/lib/components/index.esm.js +2 -2
- package/dist/lib/components/traits/FormControlTrait.cjs.js +2 -0
- package/dist/lib/components/traits/FormControlTrait.cjs.js.map +1 -0
- package/dist/lib/components/traits/{InputTrait.d.ts → FormControlTrait.d.ts} +10 -11
- package/dist/lib/components/traits/FormControlTrait.d.ts.map +1 -0
- package/dist/lib/components/traits/FormControlTrait.esm.js +45 -0
- package/dist/lib/components/traits/FormControlTrait.esm.js.map +1 -0
- package/dist/lib/components/traits/index.cjs.js +1 -1
- package/dist/lib/components/traits/index.d.ts +2 -2
- package/dist/lib/components/traits/index.d.ts.map +1 -1
- package/dist/lib/components/traits/index.esm.js +2 -2
- package/dist/lib/components/web-component/WebComponent.cjs.js.map +1 -1
- package/dist/lib/components/web-component/WebComponent.d.ts +2 -2
- package/dist/lib/components/web-component/WebComponent.d.ts.map +1 -1
- package/dist/lib/components/web-component/WebComponent.esm.js.map +1 -1
- package/dist/lib/timing.cjs.js +2 -0
- package/dist/lib/timing.cjs.js.map +1 -0
- package/dist/lib/timing.d.ts +6 -0
- package/dist/lib/timing.d.ts.map +1 -0
- package/dist/lib/timing.esm.js +13 -0
- package/dist/lib/timing.esm.js.map +1 -0
- package/dist/lib/values.cjs.js +2 -0
- package/dist/lib/values.cjs.js.map +1 -0
- package/dist/lib/values.d.ts +2 -0
- package/dist/lib/values.d.ts.map +1 -0
- package/dist/lib/values.esm.js +8 -0
- package/dist/lib/values.esm.js.map +1 -0
- package/dist/loader.js +6 -6
- package/dist/solid-ui.js +91 -90
- package/dist/solid-ui.min.js +91 -90
- package/dist/solid-ui.min.js.map +1 -1
- package/dist/storybook/components/StorybookProvider.d.ts +2 -1
- package/dist/storybook/components/StorybookProvider.d.ts.map +1 -1
- package/package.json +2 -1
- package/dist/chunks/DialogProvider-CrvbR_fd.js.map +0 -1
- package/dist/chunks/combobox-BWOPh9dj.js +0 -474
- package/dist/chunks/combobox-BWOPh9dj.js.map +0 -1
- package/dist/chunks/components-DH1slGZY.js.map +0 -1
- package/dist/chunks/input-CVKu3XRI.js.map +0 -1
- package/dist/chunks/provider-BfO67dzy.js.map +0 -1
- package/dist/chunks/select-DHFgELMJ.js.map +0 -1
- package/dist/lib/components/traits/InputTrait.cjs.js +0 -2
- package/dist/lib/components/traits/InputTrait.cjs.js.map +0 -1
- package/dist/lib/components/traits/InputTrait.d.ts.map +0 -1
- package/dist/lib/components/traits/InputTrait.esm.js +0 -45
- package/dist/lib/components/traits/InputTrait.esm.js.map +0 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { n as e, r as t } from "./components-
|
|
1
|
+
import { n as e, r as t } from "./components-PQfnwrHI.js";
|
|
2
2
|
import { c as n, i as r } from "./lit-C4H1jI4q.js";
|
|
3
3
|
import { n as i } from "./decorators-BqWyWiL9.js";
|
|
4
4
|
import { t as a } from "./query-BYu9q8lA.js";
|
|
@@ -233,4 +233,4 @@ var N = M;
|
|
|
233
233
|
//#endregion
|
|
234
234
|
export { M as n, N as t };
|
|
235
235
|
|
|
236
|
-
//# sourceMappingURL=menu-item-
|
|
236
|
+
//# sourceMappingURL=menu-item-BHJ4xljI.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"menu-item-
|
|
1
|
+
{"version":3,"file":"menu-item-BHJ4xljI.js","names":["customElement","WebComponent","property","query","html","styles","_classDecs","_MenuItem","_MenuItem2","_A","WeakMap","_B","_ref","_hrefDecs","type","String","reflect","_anchorDecs","_MenuItem3","MenuItem","constructor","args","_classPrivateFieldInitSpec","_initProto","_init_href","_init_anchor","_classPrivateFieldGet","href","v","_classPrivateFieldSet","anchor","render","click","e","c","_initClass","_applyDecs","_Class","_identity","_defineProperty","default","MenuItem"],"sources":["../../src/components/menu-item/MenuItem.styles.css","../../src/components/menu-item/MenuItem.ts","../../src/components/menu-item/index.ts"],"sourcesContent":[":host {\n & > a,\n & > div {\n width: 100%;\n display: flex;\n position: relative;\n justify-content: flex-start;\n align-items: center;\n gap: 5px;\n padding: 10px;\n border-radius: 5px;\n color: var(--solid-ui-color-gray-600);\n font-weight: 500;\n font-size: var(--solid-ui-font-size-md);\n }\n\n &:hover {\n background-color: var(--solid-ui-color-slate-200);\n }\n\n ::slotted([slot=\"left-icon\"]), ::slotted([slot=\"right-icon\"]) {\n width: var(--solid-ui-font-size-xl);\n height: var(--solid-ui-font-size-xl);\n }\n\n a::after {\n content: '';\n position: absolute;\n top: 0;\n left: 0;\n width: 100%;\n height: 100%;\n }\n}\n","import { customElement, WebComponent } from '@/lib/components'\nimport { property, query } from 'lit/decorators.js'\nimport { html } from 'lit'\n\nimport styles from './MenuItem.styles.css'\n\n@customElement('solid-ui-menu-item')\nexport default class MenuItem extends WebComponent {\n static styles = styles\n\n @property({ type: String, reflect: true })\n accessor href: string | undefined\n\n @query('a')\n private accessor anchor: HTMLAnchorElement | null = null\n\n render () {\n if (this.href) {\n return html`\n <a href=\"${this.href}\" target=\"_blank\" rel=\"noopener noreferrer\">\n <slot name=\"left-icon\"></slot>\n <slot></slot>\n <slot name=\"right-icon\"></slot>\n </a>\n `\n }\n\n return html`\n <div>\n <slot name=\"left-icon\"></slot>\n <slot></slot>\n <slot name=\"right-icon\"></slot>\n </div>\n `\n }\n\n click () {\n this.anchor?.click()\n }\n}\n","import MenuItem from './MenuItem'\n\nexport { MenuItem }\nexport default MenuItem\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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AC,EAAA;CAAAlB,cAAA;EAAA,MAAAb,CAAA,GAAAgC,EAAA,MAAA,UAChClC,CAAM,GAAA8B,EAAA;CAAA;AAAA,GAAAI,EAAAF,GAAA7B,GAAA,KAAA,CAAA,GAAA6B,GAAA;;;ACLxB,IAAA,IAAeI"}
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { c as e, n as t } from "./auth-
|
|
2
|
-
import { n } from "./DialogProvider-
|
|
3
|
-
import { n as r, r as i } from "./components-
|
|
1
|
+
import { c as e, n as t } from "./auth-D8B5yczR.js";
|
|
2
|
+
import { n } from "./DialogProvider-ge2aA77F.js";
|
|
3
|
+
import { n as r, r as i } from "./components-PQfnwrHI.js";
|
|
4
4
|
import { i as a } from "./lit-C4H1jI4q.js";
|
|
5
5
|
import { n as o } from "./decorators-BqWyWiL9.js";
|
|
6
|
-
import "./dialogs-root-
|
|
6
|
+
import "./dialogs-root-dPGfuzSZ.js";
|
|
7
7
|
//#region src/components/provider/Provider.ts
|
|
8
8
|
var s, c, l, u, d, f, p, m, h;
|
|
9
9
|
function g(e, t, n) {
|
|
@@ -211,4 +211,4 @@ var k = E;
|
|
|
211
211
|
//#endregion
|
|
212
212
|
export { E as n, k as t };
|
|
213
213
|
|
|
214
|
-
//# sourceMappingURL=provider-
|
|
214
|
+
//# sourceMappingURL=provider-CoVkCkMs.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"provider-CoVkCkMs.js","names":["customElement","WebComponent","provide","html","property","authContext","SolidAuth","DEFAULT_SIGNUP_URL","_classDecs","_Provider","_A","WeakMap","_B","_ref","_signupUrlDecs","type","String","reflect","_authDecs","context","Provider","constructor","args","_classPrivateFieldInitSpec","_initProto","_init_signupUrl","_init_auth","_classPrivateFieldGet","signupUrl","v","_classPrivateFieldSet","auth","willUpdate","changedProperties","has","render","_Provider2","e","c","_initClass","_applyDecs","default","Provider"],"sources":["../../src/components/provider/Provider.ts","../../src/components/provider/index.ts"],"sourcesContent":["import { customElement, WebComponent } from '@/lib/components'\nimport { provide } from '@lit/context'\nimport { html, type PropertyValues } from 'lit'\nimport { property } from 'lit/decorators.js'\nimport { authContext } from '@/lib/auth'\nimport { SolidAuth, DEFAULT_SIGNUP_URL } from '@/lib/auth'\n\nimport '@/components/dialogs-root'\n\n@customElement('solid-ui-provider')\nexport default class Provider extends WebComponent {\n @property({ type: String, reflect: true })\n accessor signupUrl: string | undefined\n\n @provide({ context: authContext })\n private accessor auth = new SolidAuth()\n\n protected willUpdate (changedProperties: PropertyValues<this>) {\n super.willUpdate(changedProperties)\n\n if (changedProperties.has('signupUrl')) {\n this.auth.signupUrl = this.signupUrl ?? DEFAULT_SIGNUP_URL\n }\n }\n\n protected render () {\n return html`\n <slot></slot>\n <solid-ui-dialogs-root></solid-ui-dialogs-root>\n `\n }\n}\n","import Provider from './Provider'\n\nexport { Provider }\nexport default Provider\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAOkCQ,IAAA,CAEjCR,EAAc,mBAAmB,CAAC;AAAA,IAAAS,GAAAC,kBAAA,IAAAC,QAAA,GAAAC,kBAAA,IAAAD,QAAA;AAAAE,KAAAC,IAEhCV,EAAS;CAAEW,MAAMC;CAAQC,SAAS;AAAK,CAAC,GAACC,IAGzChB,EAAQ,EAAEiB,SAASd,EAAY,CAAC,GAAC,cAiBnC+B,IAAAhB,cArBqCnB,EAAa;CAAAoB,YAAA,GAAAC,GAAA;EAAAC,AAAA,MAAA,GAAAD,CAAA,GAAAC,EAAA,MAAAb,IAAAc,EAAA,IAAA,GAAAC,EAAA,IAAA,EAAA,GAAAF,EAAA,MAAAX,GAAAc,EAAA,MAKzB,IAAIpB,EAAU,CAAC,CAAA;CAAA;CAAA,KAAAO,KAAA;EAAA,OAAAc,EAAAjB,GAAA,IAAA;CAAA;CAAA,IAH9BkB,UAASC,GAAA;EAAAC,EAAApB,GAAA,MAAAmB,CAAA;CAAA;CAAA,IAGDE,OAAI;EAAA,OAAAJ,EAAAf,GAAA,IAAA;CAAA;CAAA,IAAJmB,KAAIF,GAAA;EAAAC,EAAAlB,GAAA,MAAAiB,CAAA;CAAA;CAEXG,WAAYC,GAAyC;EAG7D,AAFA,MAAMD,WAAWC,CAAiB,GAE9BA,EAAkBC,IAAI,WAAW,MACnC,KAAKH,KAAKH,YAAY,KAAKA,aAAAA;CAE/B;CAEUO,SAAU;EAClB,OAAOhC,CAAI;;;;CAIb;AACF,GAAC,CAAAkC,GAAA,CAAAZ,GAAAC,GAAAF,IAAAc,GAAA,CAAA7B,GAAA8B,MAAAC,EAAAJ,GAAA,CAAA;CAAAtB;CAAA;CAAA;AAAA,GAAA;CAAAI;CAAA;CAAA;AAAA,CAAA,GAAAV,GAAA,GAAA,KAAA,GArBqCP,CAAY,GAAAsC,EAAA;;;ACPlD,IAAA,IAAeG"}
|
|
@@ -1,35 +1,40 @@
|
|
|
1
|
-
import { n as e, r as t, t as n } from "./components-
|
|
2
|
-
import { c as r, i } from "./lit-C4H1jI4q.js";
|
|
3
|
-
import { n as
|
|
4
|
-
import { t as
|
|
1
|
+
import { n as e, r as t, t as n } from "./components-PQfnwrHI.js";
|
|
2
|
+
import { c as r, i, n as a } from "./lit-C4H1jI4q.js";
|
|
3
|
+
import { n as o, t as s } from "./decorators-BqWyWiL9.js";
|
|
4
|
+
import { t as c } from "./query-BYu9q8lA.js";
|
|
5
5
|
import "./chevron-down-ujxRg3MD.js";
|
|
6
|
+
//#region src/lib/values.ts
|
|
7
|
+
function l(e) {
|
|
8
|
+
return e == null || e === "";
|
|
9
|
+
}
|
|
10
|
+
//#endregion
|
|
6
11
|
//#region src/components/select/Select.styles.css
|
|
7
|
-
var
|
|
8
|
-
function
|
|
9
|
-
|
|
12
|
+
var u = r`:host{flex-direction:column;align-items:flex-start;gap:5px;display:inline-flex;& label{color:var(--solid-ui-color-gray-600);font-size:var(--solid-ui-font-size-sm);font-weight:400}& .input-wrapper{width:100%;position:relative;& select{appearance:none;border:1px solid var(--solid-ui-color-gray-400);width:100%;color:var(--solid-ui-color-gray-700);font-size:inherit;cursor:pointer;background:#fff;border-radius:5px;padding:10px 40px 10px 10px}& icon-lucide-chevron-down{color:var(--solid-ui-color-gray-500);width:var(--solid-ui-font-size-lg);height:var(--solid-ui-font-size-lg);pointer-events:none;position:absolute;top:50%;right:15px;transform:translateY(-50%)}}}`, d, f, p, m, h, g, _, v, y, b, x, S, C, w, T, E, D, O, k, A, j, M, N, P, F, I;
|
|
13
|
+
function L(e, t, n) {
|
|
14
|
+
R(e, t), t.set(e, n);
|
|
10
15
|
}
|
|
11
|
-
function
|
|
16
|
+
function R(e, t) {
|
|
12
17
|
if (t.has(e)) throw TypeError("Cannot initialize the same private elements twice on an object");
|
|
13
18
|
}
|
|
14
|
-
function
|
|
15
|
-
return e.set(
|
|
19
|
+
function z(e, t, n) {
|
|
20
|
+
return e.set(V(e, t), n), n;
|
|
16
21
|
}
|
|
17
|
-
function
|
|
18
|
-
return e.get(
|
|
22
|
+
function B(e, t) {
|
|
23
|
+
return e.get(V(e, t));
|
|
19
24
|
}
|
|
20
|
-
function
|
|
25
|
+
function V(e, t, n) {
|
|
21
26
|
if (typeof e == "function" ? e === t : e.has(t)) return arguments.length < 3 ? t : n;
|
|
22
27
|
throw TypeError("Private element is not present on this object");
|
|
23
28
|
}
|
|
24
|
-
function
|
|
25
|
-
return (t =
|
|
29
|
+
function H(e, t, n) {
|
|
30
|
+
return (t = W(t)) in e ? Object.defineProperty(e, t, {
|
|
26
31
|
value: n,
|
|
27
32
|
enumerable: !0,
|
|
28
33
|
configurable: !0,
|
|
29
34
|
writable: !0
|
|
30
35
|
}) : e[t] = n, e;
|
|
31
36
|
}
|
|
32
|
-
function
|
|
37
|
+
function U(e, t, n, r, i, a) {
|
|
33
38
|
function o(e, t, n) {
|
|
34
39
|
return function(r, i) {
|
|
35
40
|
return n && n(r), e[t].call(r, i);
|
|
@@ -52,13 +57,13 @@ function I(e, t, n, r, i, a) {
|
|
|
52
57
|
n || Array.isArray(_) || (_ = [_]);
|
|
53
58
|
var b = {}, x = [], S = i === 3 ? "get" : i === 4 || p ? "set" : "value";
|
|
54
59
|
d ? (f || p ? b = {
|
|
55
|
-
get:
|
|
60
|
+
get: K(function() {
|
|
56
61
|
return v(this);
|
|
57
62
|
}, r, "get"),
|
|
58
63
|
set: function(e) {
|
|
59
64
|
t[4](this, e);
|
|
60
65
|
}
|
|
61
|
-
} : b[S] = v, f ||
|
|
66
|
+
} : b[S] = v, f || K(b[S], r, i === 2 ? "" : S)) : f || (b = Object.getOwnPropertyDescriptor(e, r));
|
|
62
67
|
}
|
|
63
68
|
for (var C = e, w = _.length - 1; w >= 0; w -= n ? 2 : 1) {
|
|
64
69
|
var T = _[w], E = n ? _[w - 1] : void 0, D = {}, O = {
|
|
@@ -118,7 +123,7 @@ function I(e, t, n, r, i, a) {
|
|
|
118
123
|
if (arguments.length >= 6) var d = a[Symbol.metadata || Symbol.for("Symbol.metadata")];
|
|
119
124
|
var f = Object.create(d ?? null), p = function(e, t, n, r) {
|
|
120
125
|
var i, a, o = [], c = function(t) {
|
|
121
|
-
return
|
|
126
|
+
return q(t) === e;
|
|
122
127
|
}, u = /* @__PURE__ */ new Map();
|
|
123
128
|
function d(e) {
|
|
124
129
|
e && o.push(s.bind(null, e));
|
|
@@ -132,7 +137,7 @@ function I(e, t, n, r, i, a) {
|
|
|
132
137
|
if (!0 === x || x === 3 && m !== 4 || x === 4 && m !== 3) throw Error("Attempted to decorate a public method/accessor that has the same name as a previously decorated public method/accessor. This is not currently supported by the decorators plugin. Property name was: " + h);
|
|
133
138
|
u.set(b, !(m > 2) || m);
|
|
134
139
|
}
|
|
135
|
-
l(v ? e : e.prototype, p, _, g ? "#" + h :
|
|
140
|
+
l(v ? e : e.prototype, p, _, g ? "#" + h : W(h), m, r, v ? a ||= [] : i ||= [], o, v, g, y, m === 1, v && g ? c : n);
|
|
136
141
|
}
|
|
137
142
|
}
|
|
138
143
|
return d(i), d(a), o;
|
|
@@ -145,11 +150,11 @@ function I(e, t, n, r, i, a) {
|
|
|
145
150
|
}
|
|
146
151
|
};
|
|
147
152
|
}
|
|
148
|
-
function
|
|
149
|
-
var t =
|
|
153
|
+
function W(e) {
|
|
154
|
+
var t = G(e, "string");
|
|
150
155
|
return typeof t == "symbol" ? t : t + "";
|
|
151
156
|
}
|
|
152
|
-
function
|
|
157
|
+
function G(e, t) {
|
|
153
158
|
if (typeof e != "object" || !e) return e;
|
|
154
159
|
var n = e[Symbol.toPrimitive];
|
|
155
160
|
if (n !== void 0) {
|
|
@@ -159,7 +164,7 @@ function R(e, t) {
|
|
|
159
164
|
}
|
|
160
165
|
return (t === "string" ? String : Number)(e);
|
|
161
166
|
}
|
|
162
|
-
function
|
|
167
|
+
function K(e, t, n) {
|
|
163
168
|
typeof t == "symbol" && (t = (t = t.description) ? "[" + t + "]" : "");
|
|
164
169
|
try {
|
|
165
170
|
Object.defineProperty(e, "name", {
|
|
@@ -169,73 +174,92 @@ function z(e, t, n) {
|
|
|
169
174
|
} catch {}
|
|
170
175
|
return e;
|
|
171
176
|
}
|
|
172
|
-
function
|
|
177
|
+
function q(e) {
|
|
173
178
|
if (Object(e) !== e) throw TypeError("right-hand side of 'in' should be an object, got " + (e === null ? "null" : typeof e));
|
|
174
179
|
return e;
|
|
175
180
|
}
|
|
176
|
-
function
|
|
181
|
+
function J(e) {
|
|
177
182
|
return e;
|
|
178
183
|
}
|
|
179
|
-
|
|
180
|
-
var
|
|
181
|
-
new (
|
|
184
|
+
x = [t("solid-ui-select")];
|
|
185
|
+
var Y;
|
|
186
|
+
new (F = (p = /*#__PURE__*/ new WeakMap(), m = /*#__PURE__*/ new WeakMap(), h = /*#__PURE__*/ new WeakMap(), g = /*#__PURE__*/ new WeakMap(), _ = /*#__PURE__*/ new WeakMap(), v = /*#__PURE__*/ new WeakMap(), I = (S = o({
|
|
182
187
|
type: String,
|
|
183
188
|
reflect: !0
|
|
184
|
-
}),
|
|
189
|
+
}), w = o({
|
|
185
190
|
type: String,
|
|
186
191
|
reflect: !0
|
|
187
|
-
}),
|
|
192
|
+
}), E = o({ type: String }), O = o({
|
|
188
193
|
type: Boolean,
|
|
189
194
|
reflect: !0
|
|
190
|
-
}),
|
|
191
|
-
get [
|
|
192
|
-
return
|
|
195
|
+
}), A = o({ type: Array }), j = c("select"), N = s(), "label"), f = class extends e {
|
|
196
|
+
get [I]() {
|
|
197
|
+
return B(p, this);
|
|
193
198
|
}
|
|
194
199
|
set label(e) {
|
|
195
|
-
|
|
200
|
+
z(p, this, e);
|
|
196
201
|
}
|
|
197
202
|
get name() {
|
|
198
|
-
return
|
|
203
|
+
return B(m, this);
|
|
199
204
|
}
|
|
200
205
|
set name(e) {
|
|
201
|
-
|
|
206
|
+
z(m, this, e);
|
|
202
207
|
}
|
|
203
208
|
get value() {
|
|
204
|
-
return
|
|
209
|
+
return B(h, this);
|
|
205
210
|
}
|
|
206
211
|
set value(e) {
|
|
207
|
-
|
|
212
|
+
z(h, this, e);
|
|
208
213
|
}
|
|
209
214
|
get required() {
|
|
210
|
-
return
|
|
215
|
+
return B(g, this);
|
|
211
216
|
}
|
|
212
217
|
set required(e) {
|
|
213
|
-
|
|
218
|
+
z(g, this, e);
|
|
219
|
+
}
|
|
220
|
+
set options(e) {
|
|
221
|
+
this._options = e;
|
|
222
|
+
}
|
|
223
|
+
get options() {
|
|
224
|
+
if (this._options) return this._options;
|
|
225
|
+
let e = this.querySelectorAll("solid-ui-select-option");
|
|
226
|
+
return Array.from(e).map((e) => ({
|
|
227
|
+
value: e.value,
|
|
228
|
+
label: e.textContent
|
|
229
|
+
}));
|
|
214
230
|
}
|
|
215
231
|
get inputElement() {
|
|
216
|
-
return
|
|
232
|
+
return B(_, this);
|
|
217
233
|
}
|
|
218
234
|
set inputElement(e) {
|
|
219
|
-
|
|
235
|
+
z(_, this, e);
|
|
236
|
+
}
|
|
237
|
+
get _options() {
|
|
238
|
+
return B(v, this);
|
|
239
|
+
}
|
|
240
|
+
set _options(e) {
|
|
241
|
+
z(v, this, e);
|
|
220
242
|
}
|
|
221
243
|
constructor() {
|
|
222
|
-
super(),
|
|
223
|
-
|
|
244
|
+
super(), L(this, p, (y(this), C(this, ""))), L(this, m, T(this, "")), L(this, h, D(this, "")), L(this, g, k(this, !1)), L(this, _, M(this, null)), L(this, v, P(this, null)), H(this, "controlTrait", void 0), this.controlTrait = this.addTrait(new n(this, {
|
|
245
|
+
getControlElement: () => this.inputElement,
|
|
224
246
|
getInternals: () => this.getInternals()
|
|
225
247
|
}));
|
|
226
248
|
}
|
|
227
249
|
render() {
|
|
250
|
+
let e = this.options.some((e) => l(e.value)) ? a : i`<option disabled value="" ?selected=${!this.value}>Select an option</option>`;
|
|
228
251
|
return i`
|
|
229
|
-
${this.
|
|
252
|
+
${this.controlTrait.renderLabel()}
|
|
230
253
|
|
|
231
254
|
<div class="input-wrapper">
|
|
232
255
|
<select
|
|
233
|
-
id="${this.
|
|
256
|
+
id="${this.controlTrait.controlId}"
|
|
234
257
|
name=${this.name}
|
|
235
258
|
?required=${this.required}
|
|
236
|
-
@change=${
|
|
259
|
+
@change=${this.onChange}
|
|
237
260
|
>
|
|
238
|
-
${
|
|
261
|
+
${e}
|
|
262
|
+
${this.options.map((e) => i`<option
|
|
239
263
|
.value=${e.value}
|
|
240
264
|
?selected=${e.value === this.value}
|
|
241
265
|
>
|
|
@@ -246,48 +270,59 @@ new (O = (u = /*#__PURE__*/ new WeakMap(), d = /*#__PURE__*/ new WeakMap(), f =
|
|
|
246
270
|
</div>
|
|
247
271
|
`;
|
|
248
272
|
}
|
|
249
|
-
|
|
250
|
-
let e = this.
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
273
|
+
onChange() {
|
|
274
|
+
let e = this.inputElement?.value, t = this.options.find((t) => t.value === e);
|
|
275
|
+
this.controlTrait.setValue(e), this.dispatchEvent(new CustomEvent("change", {
|
|
276
|
+
bubbles: !0,
|
|
277
|
+
composed: !0,
|
|
278
|
+
detail: { option: t }
|
|
254
279
|
}));
|
|
255
280
|
}
|
|
256
|
-
}, {e: [
|
|
281
|
+
}, {e: [C, T, D, k, M, P, y], c: [Y, b]} = U(f, [
|
|
257
282
|
[
|
|
258
|
-
|
|
283
|
+
S,
|
|
259
284
|
1,
|
|
260
285
|
"label"
|
|
261
286
|
],
|
|
262
287
|
[
|
|
263
|
-
|
|
288
|
+
w,
|
|
264
289
|
1,
|
|
265
290
|
"name"
|
|
266
291
|
],
|
|
267
292
|
[
|
|
268
|
-
|
|
293
|
+
E,
|
|
269
294
|
1,
|
|
270
295
|
"value"
|
|
271
296
|
],
|
|
272
297
|
[
|
|
273
|
-
|
|
298
|
+
O,
|
|
274
299
|
1,
|
|
275
300
|
"required"
|
|
276
301
|
],
|
|
277
302
|
[
|
|
278
|
-
|
|
303
|
+
A,
|
|
304
|
+
4,
|
|
305
|
+
"options"
|
|
306
|
+
],
|
|
307
|
+
[
|
|
308
|
+
j,
|
|
279
309
|
1,
|
|
280
310
|
"inputElement"
|
|
311
|
+
],
|
|
312
|
+
[
|
|
313
|
+
N,
|
|
314
|
+
1,
|
|
315
|
+
"_options"
|
|
281
316
|
]
|
|
282
|
-
],
|
|
317
|
+
], x, 0, void 0, e), f), d = class extends J {
|
|
283
318
|
constructor() {
|
|
284
|
-
super(
|
|
319
|
+
super(Y), H(this, "styles", u), H(this, "formAssociated", !0), b();
|
|
285
320
|
}
|
|
286
|
-
},
|
|
321
|
+
}, H(d, F, void 0), d)();
|
|
287
322
|
//#endregion
|
|
288
323
|
//#region src/components/select/index.ts
|
|
289
|
-
var
|
|
324
|
+
var X = Y;
|
|
290
325
|
//#endregion
|
|
291
|
-
export {
|
|
326
|
+
export { Y as n, X as t };
|
|
292
327
|
|
|
293
|
-
//# sourceMappingURL=select-
|
|
328
|
+
//# sourceMappingURL=select-OM-SgY4K.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"select-OM-SgY4K.js","names":["isEmptyValue","value","undefined","customElement","WebComponent","html","nothing","property","query","state","isEmptyValue","FormControlTrait","styles","_classDecs","_Select","_Select2","_A","WeakMap","_B","_C","_D","_E","_F","_ref","_labelDecs","type","String","reflect","_nameDecs","_valueDecs","_requiredDecs","Boolean","_optionsDecs","Array","_inputElementDecs","_optionsDecs2","_Select3","Select","_classPrivateFieldGet","label","v","_classPrivateFieldSet","name","value","required","options","_options","querySelectorAll","from","map","option","textContent","inputElement","constructor","_classPrivateFieldInitSpec","_initProto","_init_label","_init_name","_init_value","_init_required","_init_inputElement","_init__options","_defineProperty","controlTrait","addTrait","getControlElement","getInternals","render","defaultOption","some","renderLabel","controlId","onChange","find","setValue","dispatchEvent","CustomEvent","bubbles","composed","detail","e","c","_initClass","_applyDecs","_Class","_identity","default","Select"],"sources":["../../src/lib/values.ts","../../src/components/select/Select.styles.css","../../src/components/select/Select.ts","../../src/components/select/index.ts"],"sourcesContent":["export function isEmptyValue (value: unknown): boolean {\n return value === null || value === undefined || value === ''\n}\n",":host {\n display: inline-flex;\n flex-direction: column;\n align-items: flex-start;\n gap: 5px;\n\n label {\n color: var(--solid-ui-color-gray-600);\n font-size: var(--solid-ui-font-size-sm);\n font-weight: 400;\n }\n\n .input-wrapper {\n position: relative;\n width: 100%;\n\n select {\n appearance: none;\n border: 1px solid var(--solid-ui-color-gray-400);\n border-radius: 5px;\n padding: 10px;\n padding-right: 40px;\n width: 100%;\n background: white;\n color: var(--solid-ui-color-gray-700);\n font-size: inherit;\n cursor: pointer;\n }\n\n icon-lucide-chevron-down {\n position: absolute;\n right: 15px;\n top: 50%;\n transform: translateY(-50%);\n color: var(--solid-ui-color-gray-500);\n width: var(--solid-ui-font-size-lg);\n height: var(--solid-ui-font-size-lg);\n pointer-events: none;\n }\n }\n}\n","import { customElement, WebComponent } from '@/lib/components'\nimport { html, nothing } from 'lit'\nimport { property, query, state } from 'lit/decorators.js'\nimport { isEmptyValue } from '@/lib/values'\nimport FormControlTrait from '@/lib/components/traits/FormControlTrait'\nimport type SelectOption from '@/components/select-option/SelectOption'\n\nimport '~icons/lucide/chevron-down'\n\nimport styles from './Select.styles.css'\n\nexport type SelectOptionData = {\n value: unknown;\n label: string;\n}\n\nexport type SelectChangeEvent = CustomEvent<{ option: SelectOptionData }>\n\n@customElement('solid-ui-select')\nexport default class Select extends WebComponent {\n static styles = styles\n static formAssociated = true\n\n @property({ type: String, reflect: true })\n accessor label = '';\n\n @property({ type: String, reflect: true })\n accessor name = '';\n\n @property({ type: String })\n accessor value = '';\n\n @property({ type: Boolean, reflect: true })\n accessor required = false;\n\n @property({ type: Array })\n set options (value: SelectOptionData[] | null) {\n this._options = value\n }\n\n get options (): SelectOptionData[] {\n if (this._options) {\n return this._options\n }\n\n const options = this.querySelectorAll<SelectOption>(\n 'solid-ui-select-option'\n )\n\n return Array.from(options).map((option) => ({\n value: option.value,\n label: option.textContent,\n }))\n }\n\n @query('select')\n accessor inputElement: HTMLSelectElement | null = null;\n\n @state()\n private accessor _options: SelectOptionData[] | null = null\n\n private controlTrait: FormControlTrait\n\n constructor () {\n super()\n\n this.controlTrait = this.addTrait(new FormControlTrait(this, {\n getControlElement: () => this.inputElement,\n getInternals: () => this.getInternals(),\n }))\n }\n\n protected render () {\n const defaultOption = this.options.some(option => isEmptyValue(option.value))\n ? nothing\n : html`<option disabled value=\"\" ?selected=${!this.value}>Select an option</option>`\n\n return html`\n ${this.controlTrait.renderLabel()}\n\n <div class=\"input-wrapper\">\n <select\n id=\"${this.controlTrait.controlId}\"\n name=${this.name}\n ?required=${this.required}\n @change=${this.onChange}\n >\n ${defaultOption}\n ${this.options.map(\n (option) =>\n html`<option\n .value=${option.value}\n ?selected=${option.value === this.value}\n >\n ${option.label}\n </option>`\n )}\n </select>\n <icon-lucide-chevron-down></icon-lucide-chevron-down>\n </div>\n `\n }\n\n private onChange () {\n const value = this.inputElement?.value\n const option = this.options.find((option) => option.value === value)\n\n this.controlTrait.setValue(value)\n this.dispatchEvent(new CustomEvent('change', { bubbles: true, composed: true, detail: { option } }))\n }\n}\n","import Select from './Select'\n\nexport * from './Select'\nexport { Select }\nexport default Select\n"],"mappings":";;;;;;AAAA,SAAgBA,EAAcC,GAAyB;CACrD,OAAOA,KAAU,QAA+BA,MAAU;AAC5D;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AEOwCY,IAAA,CASvCV,EAAc,iBAAiB,CAAC;AAAA,IAAAW;AAAA,KAAAC,KAAAC,kBAAA,IAAAC,QAAA,GAAAC,kBAAA,IAAAD,QAAA,GAAAE,kBAAA,IAAAF,QAAA,GAAAG,kBAAA,IAAAH,QAAA,GAAAI,kBAAA,IAAAJ,QAAA,GAAAK,kBAAA,IAAAL,QAAA,GAAAM,KAAAC,IAK9BjB,EAAS;CAAEkB,MAAMC;CAAQC,SAAS;AAAK,CAAC,GAACC,IAGzCrB,EAAS;CAAEkB,MAAMC;CAAQC,SAAS;AAAK,CAAC,GAACE,IAGzCtB,EAAS,EAAEkB,MAAMC,OAAO,CAAC,GAACI,IAG1BvB,EAAS;CAAEkB,MAAMM;CAASJ,SAAS;AAAK,CAAC,GAACK,IAG1CzB,EAAS,EAAEkB,MAAMQ,MAAM,CAAC,GAACC,IAoBzB1B,EAAM,QAAQ,GAAC2B,IAGf1B,EAAM,GAAC,UAAA2B,IAxCV,cACoChC,EAAa;CAAA,KAAAmB,KAAA;EAAA,OAAAe,EAAAtB,GAAA,IAAA;CAAA;CAAA,IAKtCuB,MAAKC,GAAA;EAAAC,EAAAzB,GAAA,MAAAw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AAA;CAAA;CAAA;EAAAE;EAAA;EAAA;CAAA;CAAA;EAAAE;EAAA;EAAA;CAAA;CAAA;EAAAC;EAAA;EAAA;CAAA;AAAA,GAAAtB,GAAA,GAAA,KAAA,GA3FmCT,CAAY,GAAAgC,IAAAgD,IAAA,cAAAC,EAAA;CAAAhC,cAAA;EAAA,MAAAvC,CAAA,GAAAgD,EAAA,MAAA,UAC9BlD,CAAM,GAAAkD,EAAA,MAAA,kBACE,EAAI,GAAAoB,EAAA;CAAA;AAAA,GAAApB,EAAAsB,GAAArE,GAAA,KAAA,CAAA,GAAAqE,GAAA;;;ACjB9B,IAAA,IAAeG"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { n as e, r as t } from "./components-
|
|
1
|
+
import { n as e, r as t } from "./components-PQfnwrHI.js";
|
|
2
2
|
import { i as n, n as r } from "./lit-C4H1jI4q.js";
|
|
3
3
|
import { n as i } from "./decorators-BqWyWiL9.js";
|
|
4
4
|
//#region src/components/select-option/SelectOption.ts
|
|
@@ -192,4 +192,4 @@ var w = S;
|
|
|
192
192
|
//#endregion
|
|
193
193
|
export { S as n, w as t };
|
|
194
194
|
|
|
195
|
-
//# sourceMappingURL=select-option-
|
|
195
|
+
//# sourceMappingURL=select-option-pVhYlXrt.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"select-option-
|
|
1
|
+
{"version":3,"file":"select-option-pVhYlXrt.js","names":["customElement","WebComponent","html","nothing","property","_classDecs","_SelectOption","_A","WeakMap","_ref","_valueDecs","type","String","reflect","SelectOption","constructor","args","_classPrivateFieldInitSpec","_initProto","_init_value","_classPrivateFieldGet","value","v","_classPrivateFieldSet","render","_SelectOption2","e","c","_initClass","_applyDecs","default","SelectOption"],"sources":["../../src/components/select-option/SelectOption.ts","../../src/components/select-option/index.ts"],"sourcesContent":["import { customElement, WebComponent } from '@/lib/components'\nimport { html, nothing } from 'lit'\nimport { property } from 'lit/decorators.js'\n\n@customElement('solid-ui-select-option')\nexport default class SelectOption extends WebComponent {\n @property({ type: String, reflect: true })\n accessor value = ''\n\n protected render () {\n return html`${nothing}`\n }\n}\n","import SelectOption from './SelectOption'\n\nexport { SelectOption }\nexport default SelectOption\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAE4CK,IAAA,CAE3CL,EAAc,wBAAwB,CAAC;AAAA,IAAAM,GAAAC,kBAAA,IAAAC,QAAA;AAAAC,KAAAC,IAErCN,EAAS;CAAEO,MAAMC;CAAQC,SAAS;AAAK,CAAC,GAAC,UAM3CY,IAAAX,cAPyCb,EAAa;CAAAc,YAAA,GAAAC,GAAA;EAAAC,AAAA,MAAA,GAAAD,CAAA,GAAAC,EAAA,MAAAV,IAAAW,EAAA,IAAA,GAAAC,EAAA,MAEpC,EAAE,EAAA;CAAA;CAAA,KAAAV,KAAA;EAAA,OAAAW,EAAAb,GAAA,IAAA;CAAA;CAAA,IAAVc,MAAKC,GAAA;EAAAC,EAAAhB,GAAA,MAAAe,CAAA;CAAA;CAEJE,SAAU;EAClB,OAAOtB,CAAI,GAAGC;CAChB;AACF,GAAC,CAAAuB,GAAA,CAAAP,GAAAD,IAAAS,GAAA,CAAArB,GAAAsB,MAAAC,EAAAJ,GAAA,CAAA;CAAAf;CAAA;CAAA;AAAA,CAAA,GAAAL,GAAA,GAAA,KAAA,GAPyCJ,CAAY,GAAA2B,EAAA;;;ACFtD,IAAA,IAAeG"}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { c as e, s as t } from "./auth-
|
|
2
|
-
import { i as n } from "./dialog-
|
|
3
|
-
import { n as r, r as i } from "./components-
|
|
1
|
+
import { c as e, s as t } from "./auth-D8B5yczR.js";
|
|
2
|
+
import { i as n } from "./dialog-Ujvm11_B.js";
|
|
3
|
+
import { n as r, r as i } from "./components-PQfnwrHI.js";
|
|
4
4
|
import { i as a } from "./lit-C4H1jI4q.js";
|
|
5
|
-
import "./button-
|
|
5
|
+
import "./button-oanBb_ha.js";
|
|
6
6
|
//#region src/components/signup-button/SignupButton.ts
|
|
7
7
|
var o, s, c, l, u, d, f;
|
|
8
8
|
function p(e, t, n) {
|
|
@@ -208,4 +208,4 @@ var T = C;
|
|
|
208
208
|
//#endregion
|
|
209
209
|
export { C as n, T as t };
|
|
210
210
|
|
|
211
|
-
//# sourceMappingURL=signup-button-
|
|
211
|
+
//# sourceMappingURL=signup-button-wO4uoqUi.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"signup-button-
|
|
1
|
+
{"version":3,"file":"signup-button-wO4uoqUi.js","names":["customElement","WebComponent","consume","html","authContext","DEFAULT_AUTH_CONTEXT","_classDecs","_SignupButton","_A","WeakMap","_ref","_authDecs","context","subscribe","SignupButton","constructor","args","_classPrivateFieldInitSpec","_initProto","_init_auth","_classPrivateFieldGet","auth","v","_classPrivateFieldSet","render","onClick","click","signup","e","preventDefault","_SignupButton2","c","_initClass","_applyDecs","default","SignupButton"],"sources":["../../src/components/signup-button/SignupButton.ts","../../src/components/signup-button/index.ts"],"sourcesContent":["import { customElement, WebComponent } from '@/lib/components'\nimport { consume } from '@lit/context'\nimport { html } from 'lit'\nimport { authContext, AuthContext, DEFAULT_AUTH_CONTEXT } from '@/lib/auth'\n\nimport '@/components/button'\n\n@customElement('solid-ui-signup-button')\nexport default class SignupButton extends WebComponent {\n @consume({ context: authContext, subscribe: true })\n private accessor auth: AuthContext = DEFAULT_AUTH_CONTEXT\n\n protected render () {\n return html`\n <slot name=\"trigger\" @click=${this.onClick}>\n <solid-ui-button>\n <slot>\n Sign Up\n </slot>\n </solid-ui-button>\n </slot>\n `\n }\n\n click () {\n this.auth.signup()\n }\n\n private onClick (e: MouseEvent) {\n e.preventDefault()\n\n this.click()\n }\n}\n","import SignupButton from './SignupButton'\n\nexport { SignupButton }\nexport default SignupButton\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAK4BM,IAAA,CAE3BN,EAAc,wBAAwB,CAAC;AAAA,IAAAO,GAAAC,kBAAA,IAAAC,QAAA;AAAAC,KAAAC,IAErCT,EAAQ;CAAEU,SAASR;CAAaS,WAAW;AAAK,CAAC,GAAC,SAwBpDiB,IAAAhB,cAzByCb,EAAa;CAAAc,YAAA,GAAAC,GAAA;EAAAC,AAAA,MAAA,GAAAD,CAAA,GAAAC,EAAA,MAAAT,IAAAU,EAAA,IAAA,GAAAC,EAAA,MAEhBd,CAAoB,EAAA;CAAA;CAAA,KAAAK,KAAA;EAAA,OAAAU,EAAAZ,GAAA,IAAA;CAAA;CAAA,IAAxCa,KAAIC,GAAA;EAAAC,EAAAf,GAAA,MAAAc,CAAA;CAAA;CAEXE,SAAU;EAClB,OAAOrB,CAAI;oCACqB,KAAKsB,QAAO;;;;;;;;CAQ9C;CAEAC,QAAS;EACP,KAAKL,KAAKM,OAAO;CACnB;CAEQF,QAASG,GAAe;EAG9B,AAFAA,EAAEC,eAAe,GAEjB,KAAKH,MAAM;CACb;AACF,GAAC,CAAAE,GAAA,CAAAT,GAAAD,IAAAa,GAAA,CAAAxB,GAAAyB,MAAAC,EAAAH,GAAA,CAAA;CAAAnB;CAAA;CAAA;AAAA,CAAA,GAAAL,GAAA,GAAA,KAAA,GAzByCL,CAAY,GAAA+B,EAAA;;;ACLtD,IAAA,IAAeG"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { n as e, r as t } from "./components-
|
|
1
|
+
import { n as e, r as t } from "./components-PQfnwrHI.js";
|
|
2
2
|
import { c as n, i as r } from "./lit-C4H1jI4q.js";
|
|
3
3
|
//#region ~icons/app/solid-emblem
|
|
4
4
|
var i = class extends HTMLElement {
|
|
@@ -182,4 +182,4 @@ var y = v;
|
|
|
182
182
|
//#endregion
|
|
183
183
|
export { v as n, y as t };
|
|
184
184
|
|
|
185
|
-
//# sourceMappingURL=solid-emblem-
|
|
185
|
+
//# sourceMappingURL=solid-emblem-D2clBuKZ.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"solid-emblem-
|
|
1
|
+
{"version":3,"file":"solid-emblem-D2clBuKZ.js","names":["customElement","WebComponent","html","styles","_classDecs","_SolidEmblem","_SolidEmblem2","_SolidEmblem3","SolidEmblem","render","_initClass","_applyDecs","c","_Class","_identity","constructor","_defineProperty","default","SolidEmblem"],"sources":["../../src/components/solid-emblem/SolidEmblem.styles.css","../../src/components/solid-emblem/SolidEmblem.ts","../../src/components/solid-emblem/index.ts"],"sourcesContent":[":host {\n display: inline-flex;\n}\n","import { customElement, WebComponent } from '@/lib/components'\nimport { html } from 'lit'\n\nimport '~icons/app/solid-emblem'\n\nimport styles from './SolidEmblem.styles.css'\n\n@customElement('solid-ui-solid-emblem')\nexport default class SolidEmblem extends WebComponent {\n static styles = styles\n\n protected render () {\n return html`<icon-app-solid-emblem></icon-app-solid-emblem>`\n }\n}\n","import SolidEmblem from './SolidEmblem'\n\nexport { SolidEmblem }\nexport default SolidEmblem\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;ACK6CI,IAAA,CAE5CJ,EAAc,uBAAuB,CAAC;AAAA,IAAAK;AAAA,KAAAC,KAAAC,IAAvC,cACyCN,EAAa;CAG1CQ,SAAU;EAClB,OAAOP,CAAI;CACb;AACF,GAAC,CAAAG,GAAAK,KAAAC,EAAAJ,GAAA,CAAA,GAAAH,GAAA,GAAA,KAAA,GANwCH,CAAY,CAAA,CAAAW,GAAAL,IAAAM,IAAA,cAAAC,EAAA;CAAAC,cAAA;EAAA,MAAAV,CAAA,GAAAW,EAAA,MAAA,UACnCb,CAAM,GAAAO,EAAA;CAAA;AAAA,GAAAM,EAAAH,GAAAP,GAAA,KAAA,CAAA,GAAAO,GAAA;;;ACNxB,IAAA,IAAeK"}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { a as e, i as t, n, r, t as i } from "./rolldown-runtime-B1bRi_D7.js";
|
|
2
2
|
import { A as a, C as o, D as s, E as c, F as l, I as u, L as d, M as f, N as p, O as m, P as h, R as g, S as _, T as v, _ as y, a as b, b as x, c as S, d as C, f as w, g as T, h as E, i as D, j as O, k, l as ee, m as A, n as te, o as ne, p as j, r as re, s as ie, t as ae, u as oe, v as se, w as ce, x as le, y as ue, z as de } from "./solid-logic.esm-BrMdCG2_.js";
|
|
3
3
|
import { i as fe, n as pe, r as me, t as he } from "./headerFooterHelpers-CPd5d20q.js";
|
|
4
|
-
import "./auth-
|
|
5
|
-
import "./components-
|
|
4
|
+
import "./auth-D8B5yczR.js";
|
|
5
|
+
import "./components-PQfnwrHI.js";
|
|
6
6
|
//#region src/lib/log.ts
|
|
7
7
|
var ge = /* @__PURE__ */ r({
|
|
8
8
|
LogLevel: () => we,
|
|
@@ -16000,4 +16000,4 @@ var wu = /* @__PURE__ */ r({}), Tu = typeof window < "u" ? window.document : nul
|
|
|
16000
16000
|
//#endregion
|
|
16001
16001
|
export { ge as C, Ke as S, qi as _, Ql as a, U as b, zl as c, eo as d, Qa as f, Ba as g, za as h, cu as i, tl as l, Ua as m, wu as n, Zl as o, Ka as p, xu as r, Bl as s, Tu as t, Yc as u, Wi as v, V as x, Ar as y };
|
|
16002
16002
|
|
|
16003
|
-
//# sourceMappingURL=src-
|
|
16003
|
+
//# sourceMappingURL=src-B9CXYA44.js.map
|