solid-ui 5.0.2-3 → 5.0.2-4
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/chunks/{DialogProvider-dagk2fHm.js → DialogProvider-CdesAsw-.js} +5 -6
- package/dist/chunks/{DialogProvider-dagk2fHm.js.map → DialogProvider-CdesAsw-.js.map} +1 -1
- package/dist/chunks/{ResourceActionsMenu-o-8kWx8z.js → ResourceActionsMenu-Bllpr4M5.js} +15 -16
- package/dist/chunks/{ResourceActionsMenu-o-8kWx8z.js.map → ResourceActionsMenu-Bllpr4M5.js.map} +1 -1
- package/dist/chunks/{access-control-modal-CWH98HX3.js → access-control-modal-CwmY_Dod.js} +74 -75
- package/dist/chunks/{access-control-modal-CWH98HX3.js.map → access-control-modal-CwmY_Dod.js.map} +1 -1
- package/dist/chunks/{account-Cocvv0H3.js → account-CoHPKKDu.js} +20 -21
- package/dist/chunks/{account-Cocvv0H3.js.map → account-CoHPKKDu.js.map} +1 -1
- package/dist/chunks/{auth-Df5uYksz.js → auth-CocCqS1p.js} +18 -19
- package/dist/chunks/{auth-Df5uYksz.js.map → auth-CocCqS1p.js.map} +1 -1
- package/dist/chunks/{avatar-DeotTinS.js → avatar-sNdKdWVO.js} +10 -11
- package/dist/chunks/{avatar-DeotTinS.js.map → avatar-sNdKdWVO.js.map} +1 -1
- package/dist/chunks/{button-Dy1aFjqG.js → button-D6qO2idW.js} +10 -11
- package/dist/chunks/{button-Dy1aFjqG.js.map → button-D6qO2idW.js.map} +1 -1
- package/dist/chunks/{chunk.UEBQI7VV-9M5gO7Ew.js → chunk.UEBQI7VV-lcP-fpUk.js} +12 -9
- package/dist/chunks/chunk.UEBQI7VV-lcP-fpUk.js.map +1 -0
- package/dist/chunks/{combobox-BL0-8wef.js → combobox-fSTp9qoT.js} +17 -18
- package/dist/chunks/{combobox-BL0-8wef.js.map → combobox-fSTp9qoT.js.map} +1 -1
- package/dist/chunks/{combobox-option-DjlmXt1O.js → combobox-option-DOtGuKel.js} +7 -8
- package/dist/chunks/{combobox-option-DjlmXt1O.js.map → combobox-option-DOtGuKel.js.map} +1 -1
- package/dist/chunks/{components-LxiwG5ae.js → components-C8c2Ucm5.js} +201 -190
- package/dist/chunks/components-C8c2Ucm5.js.map +1 -0
- package/dist/chunks/{context-By_u12WA.js → context-BDrfQ9bN.js} +2 -2
- package/dist/chunks/{context-By_u12WA.js.map → context-BDrfQ9bN.js.map} +1 -1
- package/dist/chunks/{dialog-CrmftB9c.js → dialog-CgYK767T.js} +15 -16
- package/dist/chunks/{dialog-CrmftB9c.js.map → dialog-CgYK767T.js.map} +1 -1
- package/dist/chunks/{dialog-content-Cw3xqJ45.js → dialog-content-DjwRH1ci.js} +5 -6
- package/dist/chunks/{dialog-content-Cw3xqJ45.js.map → dialog-content-DjwRH1ci.js.map} +1 -1
- package/dist/chunks/{dialog-footer-sFQf-2zD.js → dialog-footer-GQWi8lfB.js} +5 -6
- package/dist/chunks/{dialog-footer-sFQf-2zD.js.map → dialog-footer-GQWi8lfB.js.map} +1 -1
- package/dist/chunks/{dialog-header-xIWIqfZK.js → dialog-header-c3qOMQfb.js} +5 -6
- package/dist/chunks/{dialog-header-xIWIqfZK.js.map → dialog-header-c3qOMQfb.js.map} +1 -1
- package/dist/chunks/{dialogs-B3tHtjMf.js → dialogs-BmtLjMzg.js} +2 -2
- package/dist/chunks/{dialogs-B3tHtjMf.js.map → dialogs-BmtLjMzg.js.map} +1 -1
- package/dist/chunks/{dialogs-root-Lh2u-3Cs.js → dialogs-root-BNF3_SA8.js} +8 -9
- package/dist/chunks/{dialogs-root-Lh2u-3Cs.js.map → dialogs-root-BNF3_SA8.js.map} +1 -1
- package/dist/chunks/{error-state-DnsXVj1z.js → error-state-BD4_Wrkz.js} +10 -11
- package/dist/chunks/{error-state-DnsXVj1z.js.map → error-state-BD4_Wrkz.js.map} +1 -1
- package/dist/chunks/{file-explorer-header-B6-Q0i6V.js → file-explorer-header-D0TebSYR.js} +33 -34
- package/dist/chunks/file-explorer-header-D0TebSYR.js.map +1 -0
- package/dist/chunks/{file-explorer-provider-B3gUBkHg.js → file-explorer-provider-DpjC7uds.js} +8 -9
- package/dist/chunks/{file-explorer-provider-B3gUBkHg.js.map → file-explorer-provider-DpjC7uds.js.map} +1 -1
- package/dist/chunks/{guard-C39y81In.js → guard-BOicu9dt.js} +10 -11
- package/dist/chunks/{guard-C39y81In.js.map → guard-BOicu9dt.js.map} +1 -1
- package/dist/chunks/{input-Bi6ZBZQw.js → input-Bz3l514j.js} +11 -12
- package/dist/chunks/{input-Bi6ZBZQw.js.map → input-Bz3l514j.js.map} +1 -1
- package/dist/chunks/{login-button-fo0P8vym.js → login-button-clTw_9tX.js} +9 -10
- package/dist/chunks/{login-button-fo0P8vym.js.map → login-button-clTw_9tX.js.map} +1 -1
- package/dist/chunks/{logout-button-CF2YFgID.js → logout-button-CP-Pz70O.js} +9 -10
- package/dist/chunks/{logout-button-CF2YFgID.js.map → logout-button-CP-Pz70O.js.map} +1 -1
- package/dist/chunks/{menu-RumUciM-.js → menu-D0k2fkiE.js} +47 -49
- package/dist/chunks/{menu-RumUciM-.js.map → menu-D0k2fkiE.js.map} +1 -1
- package/dist/chunks/{menu-item-CVAZyipz.js → menu-item-nfPpH4dN.js} +10 -11
- package/dist/chunks/{menu-item-CVAZyipz.js.map → menu-item-nfPpH4dN.js.map} +1 -1
- package/dist/chunks/{photo-capture-CAfo7y6-.js → photo-capture-hJaJm4TM.js} +20 -21
- package/dist/chunks/photo-capture-hJaJm4TM.js.map +1 -0
- package/dist/chunks/{photo-capture-modal-DWmDE_Ws.js → photo-capture-modal-BsHv6wmh.js} +28 -29
- package/dist/chunks/{photo-capture-modal-DWmDE_Ws.js.map → photo-capture-modal-BsHv6wmh.js.map} +1 -1
- package/dist/chunks/{provide-B5NeVMM_.js → provide-z9U64q4m.js} +2 -2
- package/dist/chunks/{provide-B5NeVMM_.js.map → provide-z9U64q4m.js.map} +1 -1
- package/dist/chunks/{provider-BbT2duMy.js → provider-Cuv3Kp6G.js} +10 -11
- package/dist/chunks/{provider-BbT2duMy.js.map → provider-Cuv3Kp6G.js.map} +1 -1
- package/dist/chunks/{rdf-form-CH9bDx98.js → rdf-form-DVmTw3RG.js} +23 -24
- package/dist/chunks/{rdf-form-CH9bDx98.js.map → rdf-form-DVmTw3RG.js.map} +1 -1
- package/dist/chunks/{rdf-input-C_V0pIS5.js → rdf-input-CRYLK-27.js} +15 -16
- package/dist/chunks/{rdf-input-C_V0pIS5.js.map → rdf-input-CRYLK-27.js.map} +1 -1
- package/dist/chunks/{select-y1Z6fwmh.js → select-ClPkDkGl.js} +9 -10
- package/dist/chunks/{select-y1Z6fwmh.js.map → select-ClPkDkGl.js.map} +1 -1
- package/dist/chunks/{select-option-U4ALXL20.js → select-option-DQan7rcB.js} +7 -8
- package/dist/chunks/{select-option-U4ALXL20.js.map → select-option-DQan7rcB.js.map} +1 -1
- package/dist/chunks/{signup-button-DicFpAjD.js → signup-button-CexdMWj6.js} +9 -10
- package/dist/chunks/{signup-button-DicFpAjD.js.map → signup-button-CexdMWj6.js.map} +1 -1
- package/dist/chunks/{solid-emblem-CeCXTpve.js → solid-emblem-DwLdkGuO.js} +7 -8
- package/dist/chunks/{solid-emblem-CeCXTpve.js.map → solid-emblem-DwLdkGuO.js.map} +1 -1
- package/dist/chunks/{src-Bhtor0ZC.js → src-DQgHAH3d.js} +2934 -2926
- package/dist/chunks/src-DQgHAH3d.js.map +1 -0
- package/dist/components/access-control-modal/AccessControlAddAccess.esm.js.map +1 -1
- package/dist/components/access-control-modal/AccessControlErrors.esm.js.map +1 -1
- package/dist/components/access-control-modal/AccessControlGeneralAccess.esm.js.map +1 -1
- package/dist/components/access-control-modal/AccessControlModal.esm.js.map +1 -1
- package/dist/components/access-control-modal/AccessControlSharedAccess.esm.js.map +1 -1
- package/dist/components/access-control-modal.js +1 -1
- package/dist/components/account/Account.esm.js.map +1 -1
- package/dist/components/account.js +1 -1
- package/dist/components/avatar.js +1 -1
- package/dist/components/button/Button.esm.js.map +1 -1
- package/dist/components/button.js +1 -1
- package/dist/components/combobox/Combobox.esm.js.map +1 -1
- package/dist/components/combobox-option/ComboboxOption.esm.js.map +1 -1
- package/dist/components/combobox-option.js +1 -1
- package/dist/components/combobox.js +1 -1
- package/dist/components/dialog/Dialog.esm.js.map +1 -1
- 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.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/DialogsRoot.esm.js.map +1 -1
- package/dist/components/dialogs-root.js +1 -1
- package/dist/components/error-state/ErrorState.esm.js.map +1 -1
- package/dist/components/error-state.js +1 -1
- package/dist/components/file-explorer-header/FileExplorerHeader.cjs.js +2 -2
- package/dist/components/file-explorer-header/FileExplorerHeader.cjs.js.map +1 -1
- package/dist/components/file-explorer-header/FileExplorerHeader.d.ts.map +1 -1
- package/dist/components/file-explorer-header/FileExplorerHeader.esm.js +20 -19
- package/dist/components/file-explorer-header/FileExplorerHeader.esm.js.map +1 -1
- package/dist/components/file-explorer-header/FileExplorerHeaderControls.cjs.js +6 -6
- package/dist/components/file-explorer-header/FileExplorerHeaderControls.cjs.js.map +1 -1
- package/dist/components/file-explorer-header/FileExplorerHeaderControls.d.ts.map +1 -1
- package/dist/components/file-explorer-header/FileExplorerHeaderControls.esm.js +24 -23
- package/dist/components/file-explorer-header/FileExplorerHeaderControls.esm.js.map +1 -1
- package/dist/components/file-explorer-header/FileExplorerHeaderSummary.cjs.js +7 -7
- package/dist/components/file-explorer-header/FileExplorerHeaderSummary.cjs.js.map +1 -1
- package/dist/components/file-explorer-header/FileExplorerHeaderSummary.d.ts.map +1 -1
- package/dist/components/file-explorer-header/FileExplorerHeaderSummary.esm.js +25 -24
- package/dist/components/file-explorer-header/FileExplorerHeaderSummary.esm.js.map +1 -1
- package/dist/components/file-explorer-header.js +1 -1
- package/dist/components/file-explorer-provider/FileExplorerProvider.cjs.js +1 -1
- package/dist/components/file-explorer-provider/FileExplorerProvider.cjs.js.map +1 -1
- package/dist/components/file-explorer-provider/FileExplorerProvider.d.ts +1 -1
- package/dist/components/file-explorer-provider/FileExplorerProvider.d.ts.map +1 -1
- package/dist/components/file-explorer-provider/FileExplorerProvider.esm.js +8 -7
- package/dist/components/file-explorer-provider/FileExplorerProvider.esm.js.map +1 -1
- package/dist/components/file-explorer-provider.js +1 -1
- package/dist/components/guard.js +1 -1
- 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/LoginModal.esm.js.map +1 -1
- package/dist/components/login-modal.js +1 -1
- package/dist/components/logout-button.js +1 -1
- package/dist/components/menu/Menu.esm.js.map +1 -1
- package/dist/components/menu-item/MenuItem.esm.js.map +1 -1
- package/dist/components/menu-item.js +1 -1
- package/dist/components/menu.js +1 -1
- package/dist/components/photo-capture/PhotoCapture.esm.js.map +1 -1
- package/dist/components/photo-capture-modal/PhotoCaptureModal.esm.js.map +1 -1
- package/dist/components/photo-capture-modal.js +1 -1
- package/dist/components/photo-capture.js +1 -1
- package/dist/components/provider/Provider.esm.js.map +1 -1
- package/dist/components/provider.js +1 -1
- package/dist/components/rdf-form/RDFForm.esm.js.map +1 -1
- package/dist/components/rdf-form.js +1 -1
- package/dist/components/rdf-input/RDFInput.esm.js.map +1 -1
- package/dist/components/rdf-input.js +1 -1
- package/dist/components/resource-actions-menu/ResourceActionsMenu.cjs.js +8 -8
- package/dist/components/resource-actions-menu/ResourceActionsMenu.cjs.js.map +1 -1
- package/dist/components/resource-actions-menu/ResourceActionsMenu.d.ts.map +1 -1
- package/dist/components/resource-actions-menu/ResourceActionsMenu.esm.js +18 -17
- package/dist/components/resource-actions-menu/ResourceActionsMenu.esm.js.map +1 -1
- package/dist/components/resource-actions-menu.js +1 -1
- package/dist/components/select/Select.esm.js.map +1 -1
- package/dist/components/select-option/SelectOption.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 +30 -30
- package/dist/index.cjs.js +1 -1
- package/dist/index.esm.js +5 -5
- package/dist/index.esm.js.map +1 -1
- package/dist/index.js +8 -9
- package/dist/lib/file-explorer/index.cjs.js +1 -1
- package/dist/lib/file-explorer/index.esm.js +3 -3
- package/dist/lib/file-explorer/relevant-panes.cjs.js +1 -1
- package/dist/lib/file-explorer/relevant-panes.cjs.js.map +1 -1
- package/dist/lib/file-explorer/relevant-panes.d.ts +7 -0
- package/dist/lib/file-explorer/relevant-panes.d.ts.map +1 -1
- package/dist/lib/file-explorer/relevant-panes.esm.js +14 -5
- package/dist/lib/file-explorer/relevant-panes.esm.js.map +1 -1
- package/dist/loader.js +8 -9
- package/dist/solid-ui.js +28 -28
- package/dist/solid-ui.min.js +28 -28
- package/dist/solid-ui.min.js.map +1 -1
- package/package.json +1 -1
- package/dist/chunks/chunk.UEBQI7VV-9M5gO7Ew.js.map +0 -1
- package/dist/chunks/components-LxiwG5ae.js.map +0 -1
- package/dist/chunks/custom-element-BW8Ua4c7.js +0 -9
- package/dist/chunks/custom-element-BW8Ua4c7.js.map +0 -1
- package/dist/chunks/decorators-V-B013l9.js +0 -12
- package/dist/chunks/decorators-V-B013l9.js.map +0 -1
- package/dist/chunks/file-explorer-header-B6-Q0i6V.js.map +0 -1
- package/dist/chunks/photo-capture-CAfo7y6-.js.map +0 -1
- package/dist/chunks/src-Bhtor0ZC.js.map +0 -1
|
@@ -1,8 +1,7 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { t as i } from "./decorators-V-B013l9.js";
|
|
1
|
+
import { g as e, i as t, p as n, t as r, u as i } from "./components-C8c2Ucm5.js";
|
|
3
2
|
import { t as a } from "./query-DjAOg-tk.js";
|
|
4
3
|
// src/components/input/Input.styles.css
|
|
5
|
-
var o =
|
|
4
|
+
var o = n`:host{--solid-ui-input-border-color:var(--solid-ui-color-gray-400);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;& ::slotted([slot=left-icon]){width:var(--solid-ui-font-size-md);height:var(--solid-ui-font-size-md);pointer-events:none;color:var(--solid-ui-color-gray-500);stroke-width:.2px;position:absolute;top:50%;left:10px;transform:translateY(-50%)}& input{border:1px solid var(--solid-ui-input-border-color);width:100%;color:var(--solid-ui-color-gray-700);font-size:inherit;background:#fff;border-radius:5px;padding:10px}& input:read-only{cursor:not-allowed;border:none;padding:0}}}:host([data-has-left-icon]) .input-wrapper input{padding-left:32px}`, s, c, l, u, d, f, p, m, h, g, _, v, y, b, x, S, C, w, T, E, D, O;
|
|
6
5
|
function k(e, t, n) {
|
|
7
6
|
A(e, t), t.set(e, n);
|
|
8
7
|
}
|
|
@@ -174,21 +173,21 @@ function z(e) {
|
|
|
174
173
|
function B(e) {
|
|
175
174
|
return e;
|
|
176
175
|
}
|
|
177
|
-
g = [
|
|
176
|
+
g = [e("solid-ui-input")];
|
|
178
177
|
var V;
|
|
179
|
-
new (D = (l = /*#__PURE__*/ new WeakMap(), u = /*#__PURE__*/ new WeakMap(), d = /*#__PURE__*/ new WeakMap(), f = /*#__PURE__*/ new WeakMap(), p = /*#__PURE__*/ new WeakMap(), O = (_ =
|
|
178
|
+
new (D = (l = /*#__PURE__*/ new WeakMap(), u = /*#__PURE__*/ new WeakMap(), d = /*#__PURE__*/ new WeakMap(), f = /*#__PURE__*/ new WeakMap(), p = /*#__PURE__*/ new WeakMap(), O = (_ = t({
|
|
180
179
|
type: String,
|
|
181
180
|
reflect: !0
|
|
182
|
-
}), y =
|
|
181
|
+
}), y = t({
|
|
183
182
|
type: String,
|
|
184
183
|
reflect: !0
|
|
185
|
-
}), x =
|
|
184
|
+
}), x = t({
|
|
186
185
|
type: Boolean,
|
|
187
186
|
reflect: !0
|
|
188
|
-
}), C =
|
|
187
|
+
}), C = t({
|
|
189
188
|
type: Boolean,
|
|
190
189
|
reflect: !0
|
|
191
|
-
}), T = a("input"), "type"), c = class extends
|
|
190
|
+
}), T = a("input"), "type"), c = class extends r {
|
|
192
191
|
constructor(...e) {
|
|
193
192
|
super(...e), k(this, l, (m(this), v(this, "text"))), k(this, u, b(this, "")), k(this, d, S(this, !1)), k(this, f, w(this, !1)), k(this, p, E(this, null));
|
|
194
193
|
}
|
|
@@ -223,7 +222,7 @@ new (D = (l = /*#__PURE__*/ new WeakMap(), u = /*#__PURE__*/ new WeakMap(), d =
|
|
|
223
222
|
j(p, this, e);
|
|
224
223
|
}
|
|
225
224
|
render() {
|
|
226
|
-
return
|
|
225
|
+
return i`
|
|
227
226
|
${this.controlTrait.renderLabel()}
|
|
228
227
|
|
|
229
228
|
<div class="input-wrapper">
|
|
@@ -275,7 +274,7 @@ new (D = (l = /*#__PURE__*/ new WeakMap(), u = /*#__PURE__*/ new WeakMap(), d =
|
|
|
275
274
|
1,
|
|
276
275
|
"controlElement"
|
|
277
276
|
]
|
|
278
|
-
], g, 0, void 0,
|
|
277
|
+
], g, 0, void 0, r), c), s = class extends B {
|
|
279
278
|
constructor() {
|
|
280
279
|
super(V), P(this, "styles", o), h();
|
|
281
280
|
}
|
|
@@ -284,4 +283,4 @@ new (D = (l = /*#__PURE__*/ new WeakMap(), u = /*#__PURE__*/ new WeakMap(), d =
|
|
|
284
283
|
var H = V;
|
|
285
284
|
export { V as n, H as t };
|
|
286
285
|
|
|
287
|
-
//# sourceMappingURL=input-
|
|
286
|
+
//# sourceMappingURL=input-Bz3l514j.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"input-
|
|
1
|
+
{"version":3,"file":"input-Bz3l514j.js","names":["customElement","FormControlComponent","html","property","query","styles","_classDecs","_Input","_Input2","_A","WeakMap","_B","_C","_D","_E","_ref","_typeDecs","type","String","reflect","_placeholderDecs","_requiredDecs","Boolean","_readonlyDecs","_controlElementDecs","_Input3","Input","constructor","args","_classPrivateFieldInitSpec","_initProto","_init_type","_init_placeholder","_init_required","_init_readonly","_init_controlElement","_classPrivateFieldGet","v","_classPrivateFieldSet","placeholder","required","readonly","controlElement","render","controlTrait","renderLabel","onLeftIconSlotChange","controlId","name","value","onInput","onKeyDown","e","slot","target","toggleAttribute","assignedElements","length","key","preventDefault","onSubmit","c","_initClass","_applyDecs","_Class","_identity","_defineProperty","default","property","query","styles","Input","Input","customElement","n","i","FormControlComponent","b","e","Input_styles_default","_Class","_Input3","_A","_B","_C","_D","_E","_initProto","_initClass","_classDecs","_typeDecs","_init_type","_placeholderDecs","_init_placeholder","_requiredDecs","_init_required","_readonlyDecs","_init_readonly","_controlElementDecs","_init_controlElement","_Input2","_ref","_classPrivateFieldInitSpec","a","_checkPrivateRedeclaration","_classPrivateFieldSet","s","_assertClassBrand","r","_classPrivateFieldGet","_defineProperty","_toPropertyKey","t","_applyDecs","o","c","applyDec","m","h","y","v","g","u","w","S","A","d","p","_setFunctionName","P","j","D","I","F","l","f","N","_checkInRHS","_toPrimitive","_identity","_Input","args","slot","input_default"],"sources":["../../src/components/input/Input.styles.css","../../src/components/input/Input.ts","../../src/components/input/index.ts"],"sourcesContent":[":host {\n --solid-ui-input-border-color: var(--solid-ui-color-gray-400);\n\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 ::slotted([slot=\"left-icon\"]) {\n position: absolute;\n top: 50%;\n left: 10px;\n transform: translateY(-50%);\n width: var(--solid-ui-font-size-md);\n height: var(--solid-ui-font-size-md);\n pointer-events: none;\n color: var(--solid-ui-color-gray-500);\n stroke-width: 0.2px;\n }\n\n input {\n border: 1px solid var(--solid-ui-input-border-color);\n border-radius: 5px;\n padding: 10px;\n width: 100%;\n background: white;\n color: var(--solid-ui-color-gray-700);\n font-size: inherit;\n }\n\n input:read-only {\n border: none;\n padding: 0;\n cursor: not-allowed;\n }\n }\n}\n\n:host([data-has-left-icon]) .input-wrapper input {\n padding-left: 32px;\n}\n","import { customElement, FormControlComponent } from '@/lib/components'\nimport { html } from 'lit'\nimport { property, query } from 'lit/decorators.js'\n\nimport styles from './Input.styles.css'\n\n@customElement('solid-ui-input')\nexport default class Input extends FormControlComponent {\n static styles = styles\n\n @property({ type: String, reflect: true })\n accessor type = 'text';\n\n @property({ type: String, reflect: true })\n accessor placeholder = '';\n\n @property({ type: Boolean, reflect: true })\n accessor required = false;\n\n @property({ type: Boolean, reflect: true })\n accessor readonly = false;\n\n @query('input')\n protected accessor controlElement: HTMLInputElement | null = null;\n\n protected render () {\n return html`\n ${this.controlTrait.renderLabel()}\n\n <div class=\"input-wrapper\">\n <slot @slotchange=${this.onLeftIconSlotChange} name=\"left-icon\"></slot>\n <input\n id=${this.controlTrait.controlId}\n type=${this.type}\n name=${this.name}\n placeholder=${this.placeholder}\n ?required=${this.required}\n .value=${this.value}\n ?readonly=${this.readonly}\n @input=${() => this.controlTrait.onInput()}\n @keydown=${this.onKeyDown}\n />\n </div>\n `\n }\n\n private onLeftIconSlotChange (e: Event) {\n const slot = e.target as HTMLSlotElement\n\n this.toggleAttribute('data-has-left-icon', slot.assignedElements().length > 0)\n }\n\n private onKeyDown (e: KeyboardEvent) {\n if (e.key === 'Enter') {\n e.preventDefault()\n\n this.controlTrait.onSubmit()\n }\n }\n}\n","import Input from './Input'\n\nexport { Input }\nexport default Input\n"],"mappings":"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"}
|
|
@@ -1,7 +1,6 @@
|
|
|
1
|
-
import { a as e, o as t } from "./auth-
|
|
2
|
-
import {
|
|
3
|
-
import
|
|
4
|
-
import "./button-Dy1aFjqG.js";
|
|
1
|
+
import { a as e, o as t } from "./auth-CocCqS1p.js";
|
|
2
|
+
import { b as n, g as r, o as i, u as a } from "./components-C8c2Ucm5.js";
|
|
3
|
+
import "./button-D6qO2idW.js";
|
|
5
4
|
// src/components/login-button/LoginButton.ts
|
|
6
5
|
var o, s, c, l, u, d, f;
|
|
7
6
|
function p(e, t, n) {
|
|
@@ -164,12 +163,12 @@ function S(e) {
|
|
|
164
163
|
if (Object(e) !== e) throw TypeError("right-hand side of 'in' should be an object, got " + (e === null ? "null" : typeof e));
|
|
165
164
|
return e;
|
|
166
165
|
}
|
|
167
|
-
l = [
|
|
166
|
+
l = [r("solid-ui-login-button")];
|
|
168
167
|
var C, w = /*#__PURE__*/ new WeakMap();
|
|
169
|
-
f = (u =
|
|
168
|
+
f = (u = n({
|
|
170
169
|
context: t,
|
|
171
170
|
subscribe: !0
|
|
172
|
-
}), "auth"), o = class extends
|
|
171
|
+
}), "auth"), o = class extends i {
|
|
173
172
|
constructor(...t) {
|
|
174
173
|
super(...t), p(this, w, (s(this), d(this, e)));
|
|
175
174
|
}
|
|
@@ -180,7 +179,7 @@ f = (u = i({
|
|
|
180
179
|
h(w, this, e);
|
|
181
180
|
}
|
|
182
181
|
render() {
|
|
183
|
-
return
|
|
182
|
+
return a`
|
|
184
183
|
<slot name="trigger" @click=${this.onClick}>
|
|
185
184
|
<solid-ui-button>
|
|
186
185
|
<slot>
|
|
@@ -200,9 +199,9 @@ f = (u = i({
|
|
|
200
199
|
u,
|
|
201
200
|
1,
|
|
202
201
|
"auth"
|
|
203
|
-
]], l, 0, void 0,
|
|
202
|
+
]], l, 0, void 0, i), c();
|
|
204
203
|
// src/components/login-button/index.ts
|
|
205
204
|
var T = C;
|
|
206
205
|
export { C as n, T as t };
|
|
207
206
|
|
|
208
|
-
//# sourceMappingURL=login-button-
|
|
207
|
+
//# sourceMappingURL=login-button-clTw_9tX.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"login-button-
|
|
1
|
+
{"version":3,"file":"login-button-clTw_9tX.js","names":["customElement","WebComponent","consume","html","authContext","DEFAULT_AUTH_CONTEXT","_classDecs","_LoginButton","_A","WeakMap","_ref","_authDecs","context","subscribe","LoginButton","constructor","args","_classPrivateFieldInitSpec","_initProto","_init_auth","_classPrivateFieldGet","auth","v","_classPrivateFieldSet","render","onClick","click","login","e","preventDefault","_LoginButton2","c","_initClass","_applyDecs","default","consume","LoginButton","LoginButton","DEFAULT_AUTH_CONTEXT","authContext","c","customElement","WebComponent","b","_LoginButton2","_initProto","_initClass","_classDecs","_authDecs","_init_auth","_ref","_classPrivateFieldInitSpec","a","_checkPrivateRedeclaration","_classPrivateFieldSet","s","_assertClassBrand","r","_classPrivateFieldGet","_applyDecs","i","n","o","applyDec","m","h","y","v","g","u","w","A","d","p","_setFunctionName","P","j","D","E","I","O","k","F","l","f","N","_checkInRHS","_toPropertyKey","_toPrimitive","t","e","_LoginButton","_A","args","login_button_default"],"sources":["../../src/components/login-button/LoginButton.ts","../../src/components/login-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-login-button')\nexport default class LoginButton 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 Log In\n </slot>\n </solid-ui-button>\n </slot>\n `\n }\n\n click () {\n this.auth.login()\n }\n\n private onClick (e: MouseEvent) {\n e.preventDefault()\n\n this.click()\n }\n}\n","import LoginButton from './LoginButton'\n\nexport { LoginButton }\nexport default LoginButton\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAK4BM,IAAA,CAE3BN,EAAc,uBAAuB,CAAC;AAAA,IAAAO,GAAAC,kBAAA,IAAAC,QAAA;AAAAC,KAAAC,IAEpCT,EAAQ;CAAEU,SAASR;CAAaS,WAAW;AAAK,CAAC,GAAC,SAwBpDiB,IAAAhB,cAzBwCb,EAAa;CAAAc,YAAA,GAAAC,GAAA;EAAAC,AAAA,MAAA,GAAAD,CAAA,GAAAC,EAAA,MAAAT,IAAAU,EAAA,IAAA,GAAAC,EAAA,MAEfd,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,MAAM;CAClB;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,GAzBwCL,CAAY,GAAA+B,EAAA;;ACLrD,IAAA8D,IAAe1D"}
|
|
@@ -1,7 +1,6 @@
|
|
|
1
|
-
import { a as e, o as t } from "./auth-
|
|
2
|
-
import {
|
|
3
|
-
import
|
|
4
|
-
import "./button-Dy1aFjqG.js";
|
|
1
|
+
import { a as e, o as t } from "./auth-CocCqS1p.js";
|
|
2
|
+
import { b as n, g as r, o as i, u as a } from "./components-C8c2Ucm5.js";
|
|
3
|
+
import "./button-D6qO2idW.js";
|
|
5
4
|
// src/components/logout-button/LogoutButton.ts
|
|
6
5
|
var o, s, c, l, u, d, f;
|
|
7
6
|
function p(e, t, n) {
|
|
@@ -164,12 +163,12 @@ function S(e) {
|
|
|
164
163
|
if (Object(e) !== e) throw TypeError("right-hand side of 'in' should be an object, got " + (e === null ? "null" : typeof e));
|
|
165
164
|
return e;
|
|
166
165
|
}
|
|
167
|
-
l = [
|
|
166
|
+
l = [r("solid-ui-logout-button")];
|
|
168
167
|
var C, w = /*#__PURE__*/ new WeakMap();
|
|
169
|
-
f = (u =
|
|
168
|
+
f = (u = n({
|
|
170
169
|
context: t,
|
|
171
170
|
subscribe: !0
|
|
172
|
-
}), "auth"), o = class extends
|
|
171
|
+
}), "auth"), o = class extends i {
|
|
173
172
|
constructor(...t) {
|
|
174
173
|
super(...t), p(this, w, (s(this), d(this, e)));
|
|
175
174
|
}
|
|
@@ -180,7 +179,7 @@ f = (u = i({
|
|
|
180
179
|
h(w, this, e);
|
|
181
180
|
}
|
|
182
181
|
render() {
|
|
183
|
-
return
|
|
182
|
+
return a`
|
|
184
183
|
<slot name="trigger" @click=${this.onClick}>
|
|
185
184
|
<solid-ui-button>
|
|
186
185
|
<slot>
|
|
@@ -200,9 +199,9 @@ f = (u = i({
|
|
|
200
199
|
u,
|
|
201
200
|
1,
|
|
202
201
|
"auth"
|
|
203
|
-
]], l, 0, void 0,
|
|
202
|
+
]], l, 0, void 0, i), c();
|
|
204
203
|
// src/components/logout-button/index.ts
|
|
205
204
|
var T = C;
|
|
206
205
|
export { C as n, T as t };
|
|
207
206
|
|
|
208
|
-
//# sourceMappingURL=logout-button-
|
|
207
|
+
//# sourceMappingURL=logout-button-CP-Pz70O.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"logout-button-
|
|
1
|
+
{"version":3,"file":"logout-button-CP-Pz70O.js","names":["customElement","WebComponent","consume","html","authContext","DEFAULT_AUTH_CONTEXT","_classDecs","_LogoutButton","_A","WeakMap","_ref","_authDecs","context","subscribe","LogoutButton","constructor","args","_classPrivateFieldInitSpec","_initProto","_init_auth","_classPrivateFieldGet","auth","v","_classPrivateFieldSet","render","onClick","click","logout","e","preventDefault","_LogoutButton2","c","_initClass","_applyDecs","default","consume","LogoutButton","LogoutButton","DEFAULT_AUTH_CONTEXT","authContext","c","customElement","WebComponent","b","_LogoutButton2","_initProto","_initClass","_classDecs","_authDecs","_init_auth","_ref","_classPrivateFieldInitSpec","a","_checkPrivateRedeclaration","_classPrivateFieldSet","s","_assertClassBrand","r","_classPrivateFieldGet","_applyDecs","i","n","o","applyDec","m","h","y","v","g","u","w","A","d","p","_setFunctionName","P","j","D","E","I","O","k","F","l","f","N","_checkInRHS","_toPropertyKey","_toPrimitive","t","e","_LogoutButton","_A","args","logout_button_default"],"sources":["../../src/components/logout-button/LogoutButton.ts","../../src/components/logout-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-logout-button')\nexport default class LogoutButton 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 Log Out\n </slot>\n </solid-ui-button>\n </slot>\n `\n }\n\n click () {\n this.auth.logout()\n }\n\n private onClick (e: MouseEvent) {\n e.preventDefault()\n\n this.click()\n }\n}\n","import LogoutButton from './LogoutButton'\n\nexport { LogoutButton }\nexport default LogoutButton\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,IAAA8D,IAAe1D"}
|
|
@@ -1,8 +1,6 @@
|
|
|
1
|
-
import { c as e, d as t,
|
|
2
|
-
import {
|
|
3
|
-
import { t as
|
|
4
|
-
import { t as l } from "./query-DjAOg-tk.js";
|
|
5
|
-
import { a as u, c as d, i as f, n as p, o as m, r as h, s as g, t as _ } from "./chunk.UEBQI7VV-9M5gO7Ew.js";
|
|
1
|
+
import { c as e, d as t, g as n, i as r, o as i, p as a, r as o, u as s } from "./components-C8c2Ucm5.js";
|
|
2
|
+
import { a as c, c as l, i as u, l as d, n as f, o as p, r as m, s as h, t as g } from "./chunk.UEBQI7VV-lcP-fpUk.js";
|
|
3
|
+
import { t as _ } from "./query-DjAOg-tk.js";
|
|
6
4
|
// node_modules/@awesome.me/webawesome/dist/chunks/chunk.2LXKNNNE.js
|
|
7
5
|
var v = class extends Event {
|
|
8
6
|
constructor(e) {
|
|
@@ -18,7 +16,7 @@ function* y(e = document.activeElement) {
|
|
|
18
16
|
e != null && (yield e, "shadowRoot" in e && e.shadowRoot && e.shadowRoot.mode !== "closed" && (yield* y(e.shadowRoot.activeElement)));
|
|
19
17
|
}
|
|
20
18
|
// node_modules/@awesome.me/webawesome/dist/chunks/chunk.Z6IK7DP4.js
|
|
21
|
-
var b =
|
|
19
|
+
var b = a`
|
|
22
20
|
:host {
|
|
23
21
|
--show-duration: var(--wa-transition-fast);
|
|
24
22
|
--hide-duration: var(--wa-transition-fast);
|
|
@@ -177,7 +175,7 @@ function ne(e, t) {
|
|
|
177
175
|
t in ee && !te.has(`${e}:${t}`) && (te.add(`${e}:${t}`), console.warn(`[${e}] size="${t}" is deprecated. Use size="${ee[t]}" instead. The long-form value will be removed in the next major version.`));
|
|
178
176
|
}
|
|
179
177
|
// node_modules/@awesome.me/webawesome/dist/chunks/chunk.G5ZZIGWB.js
|
|
180
|
-
var re =
|
|
178
|
+
var re = a`
|
|
181
179
|
:host([size='xs']) {
|
|
182
180
|
font-size: var(--wa-font-size-xs);
|
|
183
181
|
}
|
|
@@ -241,9 +239,9 @@ function N(e, t) {
|
|
|
241
239
|
};
|
|
242
240
|
}
|
|
243
241
|
// node_modules/@awesome.me/webawesome/dist/chunks/chunk.GU5IUSXK.js
|
|
244
|
-
var ie = /* @__PURE__ */ new Set(), P = class extends
|
|
242
|
+
var ie = /* @__PURE__ */ new Set(), P = class extends h {
|
|
245
243
|
constructor() {
|
|
246
|
-
super(...arguments), this.submenuCleanups = /* @__PURE__ */ new Map(), this.localize = new
|
|
244
|
+
super(...arguments), this.submenuCleanups = /* @__PURE__ */ new Map(), this.localize = new p(this), this.userTypedQuery = "", this.openSubmenuStack = [], this.open = !1, this.size = "m", this.placement = "bottom-start", this.distance = 0, this.skidding = 0, this.handleDocumentKeyDown = async (e) => {
|
|
247
245
|
let t = this.localize.dir() === "rtl";
|
|
248
246
|
if (e.key === "Escape" && this.open && O(this)) {
|
|
249
247
|
let t = this.getTrigger();
|
|
@@ -380,7 +378,7 @@ var ie = /* @__PURE__ */ new Set(), P = class extends g {
|
|
|
380
378
|
setupSubmenuPosition(e) {
|
|
381
379
|
if (!e.submenuElement) return;
|
|
382
380
|
this.cleanupSubmenuPosition(e);
|
|
383
|
-
let t =
|
|
381
|
+
let t = g(e, e.submenuElement, () => {
|
|
384
382
|
this.positionSubmenu(e), this.updateSafeTriangleCoordinates(e);
|
|
385
383
|
});
|
|
386
384
|
this.submenuCleanups.set(e, t);
|
|
@@ -411,15 +409,15 @@ var ie = /* @__PURE__ */ new Set(), P = class extends g {
|
|
|
411
409
|
positionSubmenu(e) {
|
|
412
410
|
if (!e.submenuElement) return;
|
|
413
411
|
let t = this.localize.dir() === "rtl" ? "left-start" : "right-start";
|
|
414
|
-
|
|
412
|
+
f(e, e.submenuElement, {
|
|
415
413
|
placement: t,
|
|
416
414
|
middleware: [
|
|
417
|
-
|
|
415
|
+
u({
|
|
418
416
|
mainAxis: 0,
|
|
419
417
|
crossAxis: -5
|
|
420
418
|
}),
|
|
421
|
-
|
|
422
|
-
|
|
419
|
+
m({ fallbackStrategy: "bestFit" }),
|
|
420
|
+
c({
|
|
423
421
|
padding: 8,
|
|
424
422
|
crossAxis: !0
|
|
425
423
|
})
|
|
@@ -454,7 +452,7 @@ var ie = /* @__PURE__ */ new Set(), P = class extends g {
|
|
|
454
452
|
}
|
|
455
453
|
render() {
|
|
456
454
|
let e = this.didSSR && !this.hasUpdated ? this.open : this.popup?.active;
|
|
457
|
-
return
|
|
455
|
+
return s`
|
|
458
456
|
<wa-popup
|
|
459
457
|
placement=${this.placement}
|
|
460
458
|
distance=${this.distance}
|
|
@@ -488,12 +486,12 @@ var ie = /* @__PURE__ */ new Set(), P = class extends g {
|
|
|
488
486
|
`;
|
|
489
487
|
}
|
|
490
488
|
};
|
|
491
|
-
P.css = [re, b],
|
|
489
|
+
P.css = [re, b], l([_("slot:not([name])")], P.prototype, "defaultSlot", 2), l([_("#menu")], P.prototype, "menu", 2), l([_("wa-popup")], P.prototype, "popup", 2), l([r({
|
|
492
490
|
type: Boolean,
|
|
493
491
|
reflect: !0
|
|
494
|
-
})], P.prototype, "open", 2),
|
|
492
|
+
})], P.prototype, "open", 2), l([r({ reflect: !0 })], P.prototype, "size", 2), l([N("size")], P.prototype, "handleSizeChange", 1), l([r({ reflect: !0 })], P.prototype, "placement", 2), l([r({ type: Number })], P.prototype, "distance", 2), l([r({ type: Number })], P.prototype, "skidding", 2), P = l([d("wa-dropdown")], P);
|
|
495
493
|
// node_modules/@awesome.me/webawesome/dist/chunks/chunk.YCTNB6J5.js
|
|
496
|
-
var ae =
|
|
494
|
+
var ae = a`
|
|
497
495
|
:host {
|
|
498
496
|
display: flex;
|
|
499
497
|
position: relative;
|
|
@@ -761,7 +759,7 @@ var ae = i`
|
|
|
761
759
|
let e = this.host.shadowRoot;
|
|
762
760
|
e && "removeEventListener" in e && e.removeEventListener("slotchange", this.handleSlotChange);
|
|
763
761
|
}
|
|
764
|
-
}, F = (t) => t ?? e, I = class extends
|
|
762
|
+
}, F = (t) => t ?? e, I = class extends h {
|
|
765
763
|
constructor() {
|
|
766
764
|
super(...arguments), this.hasSlotController = new oe(this, "[default]", "start", "end"), this.active = !1, this.variant = "default", this.size = "m", this.checkboxAdjacent = !1, this.submenuAdjacent = !1, this.type = "normal", this.checked = !1, this.disabled = !1, this.submenuOpen = !1, this.hasSubmenu = !1, this.handleSlotChange = () => {
|
|
767
765
|
this.hasSubmenu = this.hasSlotController.test("submenu"), this.updateHasSubmenuState(), this.hasSubmenu ? (this.setAttribute("aria-haspopup", "menu"), this.setAttribute("aria-expanded", this.submenuOpen ? "true" : "false")) : (this.removeAttribute("aria-haspopup"), this.removeAttribute("aria-expanded"));
|
|
@@ -833,8 +831,8 @@ var ae = i`
|
|
|
833
831
|
return [...this.children].filter((e) => e.localName === "wa-dropdown-item" && e.getAttribute("slot") === "submenu" && !e.hasAttribute("disabled"));
|
|
834
832
|
}
|
|
835
833
|
render() {
|
|
836
|
-
return
|
|
837
|
-
${this.href ?
|
|
834
|
+
return s`
|
|
835
|
+
${this.href ? s`
|
|
838
836
|
<a
|
|
839
837
|
id="link"
|
|
840
838
|
href=${this.href}
|
|
@@ -845,7 +843,7 @@ var ae = i`
|
|
|
845
843
|
aria-hidden="true"
|
|
846
844
|
></a>
|
|
847
845
|
` : ""}
|
|
848
|
-
${this.type === "checkbox" ?
|
|
846
|
+
${this.type === "checkbox" ? s`
|
|
849
847
|
<wa-icon
|
|
850
848
|
id="check"
|
|
851
849
|
part="checkmark"
|
|
@@ -867,7 +865,7 @@ var ae = i`
|
|
|
867
865
|
<slot name="details"></slot>
|
|
868
866
|
</span>
|
|
869
867
|
|
|
870
|
-
${this.hasSubmenu ?
|
|
868
|
+
${this.hasSubmenu ? s`
|
|
871
869
|
<wa-icon
|
|
872
870
|
id="submenu-indicator"
|
|
873
871
|
part="submenu-icon"
|
|
@@ -876,7 +874,7 @@ var ae = i`
|
|
|
876
874
|
name="chevron-right"
|
|
877
875
|
></wa-icon>
|
|
878
876
|
` : ""}
|
|
879
|
-
${this.hasSubmenu ?
|
|
877
|
+
${this.hasSubmenu ? s`
|
|
880
878
|
<div
|
|
881
879
|
id="submenu"
|
|
882
880
|
part="submenu"
|
|
@@ -892,21 +890,21 @@ var ae = i`
|
|
|
892
890
|
`;
|
|
893
891
|
}
|
|
894
892
|
};
|
|
895
|
-
I.css = ae,
|
|
893
|
+
I.css = ae, l([_("#submenu")], I.prototype, "submenuElement", 2), l([_("#link")], I.prototype, "linkElement", 2), l([r({ type: Boolean })], I.prototype, "active", 2), l([r({ reflect: !0 })], I.prototype, "variant", 2), l([r({ reflect: !0 })], I.prototype, "size", 2), l([N("size")], I.prototype, "handleSizeChange", 1), l([r({
|
|
896
894
|
attribute: "checkbox-adjacent",
|
|
897
895
|
type: Boolean,
|
|
898
896
|
reflect: !0
|
|
899
|
-
})], I.prototype, "checkboxAdjacent", 2),
|
|
897
|
+
})], I.prototype, "checkboxAdjacent", 2), l([r({
|
|
900
898
|
attribute: "submenu-adjacent",
|
|
901
899
|
type: Boolean,
|
|
902
900
|
reflect: !0
|
|
903
|
-
})], I.prototype, "submenuAdjacent", 2),
|
|
901
|
+
})], I.prototype, "submenuAdjacent", 2), l([r()], I.prototype, "value", 2), l([r({ reflect: !0 })], I.prototype, "type", 2), l([r({ type: Boolean })], I.prototype, "checked", 2), l([r({
|
|
904
902
|
type: Boolean,
|
|
905
903
|
reflect: !0
|
|
906
|
-
})], I.prototype, "disabled", 2),
|
|
904
|
+
})], I.prototype, "disabled", 2), l([r({
|
|
907
905
|
type: Boolean,
|
|
908
906
|
reflect: !0
|
|
909
|
-
})], I.prototype, "submenuOpen", 2),
|
|
907
|
+
})], I.prototype, "submenuOpen", 2), l([r({ reflect: !0 })], I.prototype, "href", 2), l([r()], I.prototype, "target", 2), l([r()], I.prototype, "rel", 2), l([r()], I.prototype, "download", 2), l([o()], I.prototype, "hasSubmenu", 2), I = l([d("wa-dropdown-item")], I);
|
|
910
908
|
// node_modules/@awesome.me/webawesome/dist/chunks/chunk.YDQCS2HK.js
|
|
911
909
|
var se = class extends Event {
|
|
912
910
|
constructor() {
|
|
@@ -924,7 +922,7 @@ var se = class extends Event {
|
|
|
924
922
|
composed: !0
|
|
925
923
|
});
|
|
926
924
|
}
|
|
927
|
-
}, le =
|
|
925
|
+
}, le = a`
|
|
928
926
|
:host {
|
|
929
927
|
--primary-color: currentColor;
|
|
930
928
|
--primary-opacity: 1;
|
|
@@ -1908,12 +1906,12 @@ function Te() {
|
|
|
1908
1906
|
return be;
|
|
1909
1907
|
}
|
|
1910
1908
|
// node_modules/lit-html/directive-helpers.js
|
|
1911
|
-
var { I: Ee } = t, De = (e, t) => t === void 0 ? e?._$litType$ !== void 0 : e?._$litType$ === t, B = Symbol(), V = Symbol(), Oe, H = /* @__PURE__ */ new Map(), U = class extends
|
|
1909
|
+
var { I: Ee } = t, De = (e, t) => t === void 0 ? e?._$litType$ !== void 0 : e?._$litType$ === t, B = Symbol(), V = Symbol(), Oe, H = /* @__PURE__ */ new Map(), U = class extends h {
|
|
1912
1910
|
constructor() {
|
|
1913
1911
|
super(...arguments), this.svg = null, this.autoWidth = !1, this.swapOpacity = !1, this.label = "", this.library = "default", this.rotate = 0, this.resolveIcon = async (e, t) => {
|
|
1914
1912
|
let n;
|
|
1915
1913
|
if (t?.spriteSheet) {
|
|
1916
|
-
this.hasUpdated || await this.updateComplete, this.svg =
|
|
1914
|
+
this.hasUpdated || await this.updateComplete, this.svg = s`<svg part="svg">
|
|
1917
1915
|
<use part="use" href="${e}"></use>
|
|
1918
1916
|
</svg>`, await this.updateComplete;
|
|
1919
1917
|
let n = this.shadowRoot.querySelector("[part='svg']");
|
|
@@ -1999,27 +1997,27 @@ var { I: Ee } = t, De = (e, t) => t === void 0 ? e?._$litType$ !== void 0 : e?._
|
|
|
1999
1997
|
n && t?.mutator?.(n, this);
|
|
2000
1998
|
}
|
|
2001
1999
|
render() {
|
|
2002
|
-
return this.hasUpdated ? this.svg :
|
|
2000
|
+
return this.hasUpdated ? this.svg : s`<svg part="svg" width="16" height="16" viewBox="0 0 16 16"></svg>`;
|
|
2003
2001
|
}
|
|
2004
2002
|
};
|
|
2005
|
-
U.css = le,
|
|
2003
|
+
U.css = le, l([o()], U.prototype, "svg", 2), l([r({ reflect: !0 })], U.prototype, "name", 2), l([r({ reflect: !0 })], U.prototype, "family", 2), l([r({ reflect: !0 })], U.prototype, "variant", 2), l([r({ reflect: !0 })], U.prototype, "canvas", 2), l([r({
|
|
2006
2004
|
attribute: "auto-width",
|
|
2007
2005
|
type: Boolean,
|
|
2008
2006
|
reflect: !0
|
|
2009
|
-
})], U.prototype, "autoWidth", 2),
|
|
2007
|
+
})], U.prototype, "autoWidth", 2), l([r({
|
|
2010
2008
|
attribute: "swap-opacity",
|
|
2011
2009
|
type: Boolean,
|
|
2012
2010
|
reflect: !0
|
|
2013
|
-
})], U.prototype, "swapOpacity", 2),
|
|
2011
|
+
})], U.prototype, "swapOpacity", 2), l([r()], U.prototype, "src", 2), l([r()], U.prototype, "label", 2), l([r({ reflect: !0 })], U.prototype, "library", 2), l([r({
|
|
2014
2012
|
type: Number,
|
|
2015
2013
|
reflect: !0
|
|
2016
|
-
})], U.prototype, "rotate", 2),
|
|
2014
|
+
})], U.prototype, "rotate", 2), l([r({
|
|
2017
2015
|
type: String,
|
|
2018
2016
|
reflect: !0
|
|
2019
|
-
})], U.prototype, "flip", 2),
|
|
2017
|
+
})], U.prototype, "flip", 2), l([r({
|
|
2020
2018
|
type: String,
|
|
2021
2019
|
reflect: !0
|
|
2022
|
-
})], U.prototype, "animation", 2),
|
|
2020
|
+
})], U.prototype, "animation", 2), l([N("label")], U.prototype, "handleLabelChange", 1), l([N([
|
|
2023
2021
|
"family",
|
|
2024
2022
|
"name",
|
|
2025
2023
|
"library",
|
|
@@ -2028,9 +2026,9 @@ U.css = le, d([a()], U.prototype, "svg", 2), d([n({ reflect: !0 })], U.prototype
|
|
|
2028
2026
|
"autoWidth",
|
|
2029
2027
|
"canvas",
|
|
2030
2028
|
"swapOpacity"
|
|
2031
|
-
], { waitUntilFirstUpdate: !0 })], U.prototype, "setIcon", 1), U =
|
|
2029
|
+
], { waitUntilFirstUpdate: !0 })], U.prototype, "setIcon", 1), U = l([d("wa-icon")], U);
|
|
2032
2030
|
// src/components/menu/Menu.styles.css
|
|
2033
|
-
var ke =
|
|
2031
|
+
var ke = a`wa-dropdown::part(menu){gap:2px;min-width:300px;box-shadow:0 4px 16px #00000059}wa-dropdown-item{border-radius:5px;padding:0;&:hover{background-color:var(--solid-ui-color-primary-hover)}}`, Ae, W, G, K, q, J, je, Me, Ne, Pe, Fe, Ie, Le, Re, ze, Be, Ve, He, Ue;
|
|
2034
2032
|
function Y(e, t, n) {
|
|
2035
2033
|
We(e, t), t.set(e, n);
|
|
2036
2034
|
}
|
|
@@ -2202,15 +2200,15 @@ function Xe(e) {
|
|
|
2202
2200
|
function Ze(e) {
|
|
2203
2201
|
return e;
|
|
2204
2202
|
}
|
|
2205
|
-
Ne = [
|
|
2203
|
+
Ne = [n("solid-ui-menu")];
|
|
2206
2204
|
var $;
|
|
2207
|
-
new (He = (G = /*#__PURE__*/ new WeakMap(), K = /*#__PURE__*/ new WeakMap(), q = /*#__PURE__*/ new WeakMap(), J = /*#__PURE__*/ new WeakMap(), Ue = (Pe =
|
|
2205
|
+
new (He = (G = /*#__PURE__*/ new WeakMap(), K = /*#__PURE__*/ new WeakMap(), q = /*#__PURE__*/ new WeakMap(), J = /*#__PURE__*/ new WeakMap(), Ue = (Pe = r({
|
|
2208
2206
|
type: String,
|
|
2209
2207
|
reflect: !0
|
|
2210
|
-
}), Ie =
|
|
2208
|
+
}), Ie = r({
|
|
2211
2209
|
type: Number,
|
|
2212
2210
|
reflect: !0
|
|
2213
|
-
}), Re =
|
|
2211
|
+
}), Re = _("wa-dropdown"), Be = o(), "placement"), W = class extends i {
|
|
2214
2212
|
constructor(...e) {
|
|
2215
2213
|
super(...e), Y(this, G, (je(this), Fe(this, "bottom-start"))), Y(this, K, Le(this, 5)), Y(this, q, ze(this, null)), Y(this, J, Ve(this, [])), Q(this, "observer", new MutationObserver(() => this.syncItems()));
|
|
2216
2214
|
}
|
|
@@ -2245,7 +2243,7 @@ new (He = (G = /*#__PURE__*/ new WeakMap(), K = /*#__PURE__*/ new WeakMap(), q =
|
|
|
2245
2243
|
super.disconnectedCallback(), this.observer.disconnect();
|
|
2246
2244
|
}
|
|
2247
2245
|
render() {
|
|
2248
|
-
return
|
|
2246
|
+
return s`
|
|
2249
2247
|
<wa-dropdown
|
|
2250
2248
|
placement=${this.placement}
|
|
2251
2249
|
distance=${this.distance}
|
|
@@ -2253,7 +2251,7 @@ new (He = (G = /*#__PURE__*/ new WeakMap(), K = /*#__PURE__*/ new WeakMap(), q =
|
|
|
2253
2251
|
>
|
|
2254
2252
|
<slot name="trigger" slot="trigger"></slot>
|
|
2255
2253
|
|
|
2256
|
-
${this.items.map((e) =>
|
|
2254
|
+
${this.items.map((e) => s`<wa-dropdown-item @click=${this.onItemClick}>
|
|
2257
2255
|
<slot name=${e.slot}></slot>
|
|
2258
2256
|
</wa-dropdown-item>`)}
|
|
2259
2257
|
</wa-dropdown>
|
|
@@ -2307,7 +2305,7 @@ new (He = (G = /*#__PURE__*/ new WeakMap(), K = /*#__PURE__*/ new WeakMap(), q =
|
|
|
2307
2305
|
1,
|
|
2308
2306
|
"items"
|
|
2309
2307
|
]
|
|
2310
|
-
], Ne, 0, void 0,
|
|
2308
|
+
], Ne, 0, void 0, i), W), Ae = class extends Ze {
|
|
2311
2309
|
constructor() {
|
|
2312
2310
|
super($), Q(this, "styles", ke), Me();
|
|
2313
2311
|
}
|
|
@@ -2316,4 +2314,4 @@ new (He = (G = /*#__PURE__*/ new WeakMap(), K = /*#__PURE__*/ new WeakMap(), q =
|
|
|
2316
2314
|
var Qe = $;
|
|
2317
2315
|
export { $ as n, Qe as t };
|
|
2318
2316
|
|
|
2319
|
-
//# sourceMappingURL=menu-
|
|
2317
|
+
//# sourceMappingURL=menu-D0k2fkiE.js.map
|