@vokril/ui-solid 0.38.0 → 0.40.0
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/CHANGELOG.md +31 -0
- package/dist/Alert-BgbPhgp8.js +89 -0
- package/dist/Alert-Dx2e4_YF.cjs +1 -0
- package/dist/{AttributeGrid-BNQaSpfE.cjs → AttributeGrid-Blocxn7A.cjs} +1 -1
- package/dist/{AttributeGrid-tjVwSI4h.js → AttributeGrid-CsKRlPZZ.js} +4 -4
- package/dist/{Button-DDkZzT-k.js → Button-CetJ24ea.js} +1 -1
- package/dist/{Button-D5Ihf90u.cjs → Button-D61wuA9o.cjs} +1 -1
- package/dist/{CommandPalette-CGfXynfl.js → CommandPalette-1XfwrR2D.js} +49 -50
- package/dist/CommandPalette-DgoP-6h9.cjs +2 -0
- package/dist/{CopyButton-gHxA-WL_.js → CopyButton-CLrr2zFh.js} +1 -1
- package/dist/{CopyButton-Hb6c_Oq1.cjs → CopyButton-CuSlegAn.cjs} +1 -1
- package/dist/{DateRangePicker-EEcp-IbM.cjs → DateRangePicker-CZddrCVN.cjs} +1 -1
- package/dist/{DateRangePicker-B36NSGMS.js → DateRangePicker-DL1j6ww5.js} +5 -5
- package/dist/{GuidedTour-DicNwdq3.cjs → GuidedTour-BxmPJE-B.cjs} +1 -1
- package/dist/{GuidedTour-bcaKpXPX.js → GuidedTour-DzmN3Cfq.js} +4 -4
- package/dist/{HostPortal-DsVQEH2q.js → HostPortal-BLXmZOjO.js} +1 -1
- package/dist/{HostPortal-C1xTPZYj.cjs → HostPortal-C9GwdgPS.cjs} +1 -1
- package/dist/{IconPicker-7sF4n6vD.js → IconPicker-BuQkoRRB.js} +5 -5
- package/dist/{IconPicker-D60txter.cjs → IconPicker-xydEBrKw.cjs} +1 -1
- package/dist/{Input-agpwYeJd.js → Input-BDjgWn-u.js} +1 -1
- package/dist/{Input-DTm6v0fK.cjs → Input-C43Tmb2p.cjs} +1 -1
- package/dist/Modal-DospFxAr.js +771 -0
- package/dist/Modal-Dq7OTcoz.cjs +1 -0
- package/dist/{PageSkeleton-XNfK8xoY.js → PageSkeleton-BepNM2BF.js} +5 -5
- package/dist/{PageSkeleton-jljSUpu1.cjs → PageSkeleton-BuXZpnIO.cjs} +1 -1
- package/dist/{SearchableSelect-CXPSoFqf.cjs → SearchableSelect-CAUrUaqw.cjs} +1 -1
- package/dist/{SearchableSelect-DFdGGNR6.js → SearchableSelect-CW1lGmGW.js} +3 -3
- package/dist/{StatusBarNotificationBell-MXX_K48w.cjs → StatusBarNotificationBell-BIg-eu1Y.cjs} +17 -17
- package/dist/{StatusBarNotificationBell-CnmMzXzD.js → StatusBarNotificationBell-DvKKK9jh.js} +90 -89
- package/dist/{Stepper-BLKD4ub3.cjs → Stepper-A3Z6h1Zw.cjs} +1 -1
- package/dist/{Stepper-D0rrrtAN.js → Stepper-C-tnKle4.js} +1 -1
- package/dist/{Textarea-Ds3bMrq9.cjs → Textarea-B4v7GN1X.cjs} +1 -1
- package/dist/{Textarea-CKJDNOaL.js → Textarea-D8Gqx3oX.js} +1 -1
- package/dist/{TimeSeriesChart-B9cqfs1M.cjs → TimeSeriesChart-XcXmKly6.cjs} +1 -1
- package/dist/{TimeSeriesChart-DBARL8HG.js → TimeSeriesChart-sVMXG6eX.js} +1 -1
- package/dist/ToggleButton-CrVTb5ZP.js +2230 -0
- package/dist/ToggleButton-sXKMeceC.cjs +1 -0
- package/dist/_internal/platform/settings/registry/fieldSpec.d.cts +20 -0
- package/dist/_internal/platform/settings/registry/fieldSpec.d.ts +20 -0
- package/dist/charts/index.cjs +1 -1
- package/dist/charts/index.js +1 -1
- package/dist/createDialogShellFocus-CLuQ1s0l.cjs +1 -0
- package/dist/createDialogShellFocus-GXYQh0Oh.js +108 -0
- package/dist/createResizableSidebar-BGseZrMh.js +1175 -0
- package/dist/createResizableSidebar-Beu5DVYW.cjs +1 -0
- package/dist/{de-CSWSMGCG.js → de-C-oEMFi3.js} +69 -57
- package/dist/de-CMM2gThP.cjs +1 -0
- package/dist/{server/defineSettings-Di1sG81q.js → defineSettings-CDbllpYi.js} +97 -97
- package/dist/defineSettings-D2AaV355.cjs +1 -0
- package/dist/desktop/index.cjs +1 -1
- package/dist/desktop/index.js +3 -3
- package/dist/feedback/Alert.d.cts +2 -0
- package/dist/feedback/Alert.d.ts +2 -0
- package/dist/feedback/index.cjs +1 -1
- package/dist/feedback/index.js +21 -22
- package/dist/forms/NumberInput.d.cts +6 -0
- package/dist/forms/NumberInput.d.ts +6 -0
- package/dist/forms/RadioGroup.d.cts +5 -0
- package/dist/forms/RadioGroup.d.ts +5 -0
- package/dist/forms/Slider.d.cts +11 -0
- package/dist/forms/Slider.d.ts +11 -0
- package/dist/forms/index.cjs +1 -1
- package/dist/forms/index.js +32 -31
- package/dist/grid/index.cjs +1 -1
- package/dist/grid/index.js +1 -1
- package/dist/{server/headerIconOverrides-Dh2PaOcO.js → headerIconOverrides-C91HoTIu.js} +1 -1
- package/dist/{headerIconOverrides-Bn1QuODq.cjs → headerIconOverrides-DldzXQvu.cjs} +1 -1
- package/dist/host/index.cjs +1 -1
- package/dist/host/index.js +1 -1
- package/dist/i18n/index.cjs +1 -1
- package/dist/i18n/index.js +1 -1
- package/dist/i18n/messageKeys.d.cts +1 -1
- package/dist/i18n/messageKeys.d.ts +1 -1
- package/dist/{i18n-BJiKwNyr.js → i18n-DlGM3NSR.js} +2 -2
- package/dist/{server/i18n-DrmazJQC.cjs → i18n-OBn_hNf7.cjs} +1 -1
- package/dist/index.cjs +1 -1
- package/dist/index.js +386 -382
- package/dist/layout/SettingsCard.d.cts +61 -4
- package/dist/layout/SettingsCard.d.ts +61 -4
- package/dist/layout/SettingsPageHeader.d.cts +26 -0
- package/dist/layout/SettingsPageHeader.d.ts +26 -0
- package/dist/layout/SettingsSaveBar.d.cts +42 -0
- package/dist/layout/SettingsSaveBar.d.ts +42 -0
- package/dist/layout/index.cjs +1 -1
- package/dist/layout/index.d.cts +2 -0
- package/dist/layout/index.d.ts +2 -0
- package/dist/layout/index.js +19 -16
- package/dist/mainRealmDom-DPOYak2f.js +241 -0
- package/dist/mainRealmDom-DR-EKDyJ.cjs +1 -0
- package/dist/navigation/index.cjs +1 -1
- package/dist/navigation/index.js +1 -1
- package/dist/notifications/index.cjs +1 -1
- package/dist/notifications/index.js +2 -2
- package/dist/overlay/index.cjs +1 -1
- package/dist/overlay/index.js +81 -81
- package/dist/{rowSource-BWm-kZHe.cjs → rowSource-0lKPyvgm.cjs} +1 -1
- package/dist/{rowSource-DEulMv5F.js → rowSource-CmzboECA.js} +1 -1
- package/dist/server/Alert-B1B24V83.cjs +1 -0
- package/dist/server/Alert-C-bpozmP.js +75 -0
- package/dist/server/{AttributeGrid-fT5-b9ZJ.cjs → AttributeGrid-B7AIcZul.cjs} +1 -1
- package/dist/server/{AttributeGrid-BmS2U5Gz.js → AttributeGrid-BQf2iHQe.js} +4 -4
- package/dist/server/{Button-XL9Os1pR.js → Button-BHfCFxcX.js} +1 -1
- package/dist/server/{Button-lNnNp0um.cjs → Button-a1cMbvpn.cjs} +1 -1
- package/dist/server/CommandPalette-BMwxv_Yy.cjs +1 -0
- package/dist/server/{CommandPalette-CgTnmrYx.js → CommandPalette-DorJXXoB.js} +59 -60
- package/dist/server/{CopyButton-BpbGM72h.cjs → CopyButton-Bcbw6N6c.cjs} +1 -1
- package/dist/server/{CopyButton-BdU_8aZB.js → CopyButton-Dr5AlcV5.js} +1 -1
- package/dist/server/{DateRangePicker-ClJHlO9g.cjs → DateRangePicker-Cwkbvs3n.cjs} +1 -1
- package/dist/server/{DateRangePicker-DGXmbyCR.js → DateRangePicker-NI3zLIP6.js} +5 -5
- package/dist/server/{GuidedTour-CCkg6Paz.js → GuidedTour-DhVy485y.js} +4 -4
- package/dist/server/{GuidedTour-PETCExHX.cjs → GuidedTour-JPHl9qAv.cjs} +1 -1
- package/dist/server/{HostPortal-BNGZ8nw4.cjs → HostPortal-B245bak4.cjs} +1 -1
- package/dist/server/{HostPortal-CdhnKAWT.js → HostPortal-DdVallGi.js} +1 -1
- package/dist/server/IconPicker-Xb9VX3Lk.cjs +1 -0
- package/dist/server/IconPicker-bUaMtcMV.js +177 -0
- package/dist/server/{Input-DFAn8kou.js → Input-D128drd7.js} +1 -1
- package/dist/server/{Input-DOTXKwhw.cjs → Input-K_0iETD8.cjs} +1 -1
- package/dist/server/Modal-CL3mMf3_.js +666 -0
- package/dist/server/Modal-J5LcYq9z.cjs +1 -0
- package/dist/server/{PageSkeleton--ssP7Di9.cjs → PageSkeleton-BvTmjdKh.cjs} +1 -1
- package/dist/server/{PageSkeleton-DRPIcDHU.js → PageSkeleton-DJpDtuFe.js} +5 -5
- package/dist/server/{SearchableSelect-DsHkuiTW.cjs → SearchableSelect-CjdMwMHi.cjs} +1 -1
- package/dist/server/{SearchableSelect-y0Fr7cPS.js → SearchableSelect-Dr15WXR0.js} +3 -3
- package/dist/server/{StatusBarNotificationBell-BrHZ2r3X.cjs → StatusBarNotificationBell-CyNRKMtb.cjs} +16 -16
- package/dist/server/{StatusBarNotificationBell-CY16bTyI.js → StatusBarNotificationBell-DzrBLG0C.js} +93 -92
- package/dist/server/{Stepper-BOVzsqcG.cjs → Stepper-BnoVFCBM.cjs} +1 -1
- package/dist/server/{Stepper-DC34G5fk.js → Stepper-CGjnk38v.js} +1 -1
- package/dist/server/{Textarea-CL2wYpW7.js → Textarea-d2Sgpcfv.js} +1 -1
- package/dist/server/{Textarea-D43xOjAJ.cjs → Textarea-vI7EVzh7.cjs} +1 -1
- package/dist/server/{TimeSeriesChart-CP-2M3R7.js → TimeSeriesChart-DryJINM5.js} +1 -1
- package/dist/server/{TimeSeriesChart-CL1GjjV5.cjs → TimeSeriesChart-GRcqWnYh.cjs} +1 -1
- package/dist/server/ToggleButton-BTKq5h-y.js +1409 -0
- package/dist/server/ToggleButton-J-cKrSwa.cjs +1 -0
- package/dist/server/VpRefresh-CtYYafTv.cjs +1 -0
- package/dist/server/{VpRefresh-Dlqsm9Va.js → VpRefresh-D5QKuisA.js} +21 -7
- package/dist/server/{VpUpload-_n-qdj9q.js → VpUpload-CSRCHUzX.js} +13 -27
- package/dist/server/VpUpload-D6fJ79Sq.cjs +1 -0
- package/dist/server/charts/index.cjs +1 -1
- package/dist/server/charts/index.js +1 -1
- package/dist/server/createDialogShellFocus-BzUAkxa_.js +130 -0
- package/dist/server/createDialogShellFocus-DrYaDg7X.cjs +1 -0
- package/dist/server/createResizableSidebar-Bukt4w81.cjs +1 -0
- package/dist/server/createResizableSidebar-ClRpRZLh.js +866 -0
- package/dist/server/{de-CSWSMGCG.js → de-C-oEMFi3.js} +69 -57
- package/dist/server/de-CMM2gThP.cjs +1 -0
- package/dist/{defineSettings-Di1sG81q.js → server/defineSettings-CDbllpYi.js} +97 -97
- package/dist/server/defineSettings-D2AaV355.cjs +1 -0
- package/dist/server/desktop/index.cjs +1 -1
- package/dist/server/desktop/index.js +3 -3
- package/dist/server/feedback/index.cjs +1 -1
- package/dist/server/feedback/index.js +21 -22
- package/dist/server/forms/index.cjs +1 -1
- package/dist/server/forms/index.js +32 -31
- package/dist/server/grid/index.cjs +1 -1
- package/dist/server/grid/index.js +1 -1
- package/dist/{headerIconOverrides-Dh2PaOcO.js → server/headerIconOverrides-C91HoTIu.js} +1 -1
- package/dist/server/{headerIconOverrides-Bn1QuODq.cjs → headerIconOverrides-DldzXQvu.cjs} +1 -1
- package/dist/server/host/index.cjs +1 -1
- package/dist/server/host/index.js +1 -1
- package/dist/server/i18n/index.cjs +1 -1
- package/dist/server/i18n/index.js +1 -1
- package/dist/server/{i18n-BJiKwNyr.js → i18n-DlGM3NSR.js} +2 -2
- package/dist/{i18n-DrmazJQC.cjs → server/i18n-OBn_hNf7.cjs} +1 -1
- package/dist/server/{index-vTHpJ130.js → index-BglF6V2r.js} +3878 -3890
- package/dist/server/index-CxpRbGi3.cjs +1 -0
- package/dist/server/index.cjs +1 -1
- package/dist/server/index.js +370 -366
- package/dist/server/layout/index.cjs +1 -1
- package/dist/server/layout/index.js +19 -16
- package/dist/server/mainRealmDom-Cq0tErb0.cjs +1 -0
- package/dist/server/mainRealmDom-D514acmj.js +208 -0
- package/dist/server/navigation/index.cjs +1 -1
- package/dist/server/navigation/index.js +1 -1
- package/dist/server/notifications/index.cjs +1 -1
- package/dist/server/notifications/index.js +2 -2
- package/dist/server/overlay/index.cjs +1 -1
- package/dist/server/overlay/index.js +88 -88
- package/dist/server/{rowSource-WElLH5Tb.js → rowSource-CeIqwlhj.js} +1 -1
- package/dist/server/{rowSource-BOt_vVGY.cjs → rowSource-slZQZSsP.cjs} +1 -1
- package/dist/server/settings/index.cjs +1 -1
- package/dist/server/settings/index.js +3 -3
- package/dist/server/tr-CVBPLA-r.cjs +1 -0
- package/dist/{tr-BL1soeyr.js → server/tr-Dk9_qrmk.js} +68 -56
- package/dist/server/tree/index.cjs +1 -1
- package/dist/server/tree/index.js +1 -1
- package/dist/{useSettingsSubscription-DLEk4k4j.js → server/useSettingsSubscription-CRRJdYJ-.js} +1 -1
- package/dist/{useSettingsSubscription-DKjCwmRd.cjs → server/useSettingsSubscription-DGo_GObq.cjs} +1 -1
- package/dist/settings/index.cjs +1 -1
- package/dist/settings/index.js +3 -3
- package/dist/solid/_internal/platform/settings/registry/defineSettings.js +6 -0
- package/dist/solid/feedback/Alert.jsx +8 -0
- package/dist/solid/feedback/Alert.module.css.js +1 -0
- package/dist/solid/forms/NumberInput.jsx +15 -7
- package/dist/solid/forms/RadioGroup.jsx +6 -1
- package/dist/solid/forms/RadioGroup.module.css.js +2 -0
- package/dist/solid/forms/Slider.jsx +19 -2
- package/dist/solid/forms/Slider.module.css.js +3 -1
- package/dist/solid/i18n/locales/de.json +10 -1
- package/dist/solid/i18n/locales/tr.json +10 -1
- package/dist/solid/layout/SettingsCard.jsx +76 -5
- package/dist/solid/layout/SettingsCard.module.css.js +14 -1
- package/dist/solid/layout/SettingsPageHeader.jsx +34 -0
- package/dist/solid/layout/SettingsSaveBar.jsx +34 -0
- package/dist/solid/layout/SettingsSaveBar.module.css.js +9 -0
- package/dist/solid/layout/SettingsSubpageHeader.module.css.js +3 -0
- package/dist/solid/layout/index.js +2 -0
- package/dist/style.css +1 -1
- package/dist/tr-CVBPLA-r.cjs +1 -0
- package/dist/{server/tr-BL1soeyr.js → tr-Dk9_qrmk.js} +68 -56
- package/dist/tree/index.cjs +1 -1
- package/dist/tree/index.js +1 -1
- package/dist/ui.css +1 -1
- package/dist/{server/useSettingsSubscription-DLEk4k4j.js → useSettingsSubscription-CRRJdYJ-.js} +1 -1
- package/dist/{server/useSettingsSubscription-DKjCwmRd.cjs → useSettingsSubscription-DGo_GObq.cjs} +1 -1
- package/package.json +1 -1
- package/dist/Alert-DCIet3Ol.cjs +0 -1
- package/dist/Alert-DyBaU25r.js +0 -59
- package/dist/CommandPalette-CdiIycaW.cjs +0 -2
- package/dist/Kbd-BDZklpw9.cjs +0 -1
- package/dist/Kbd-DF6Tvp8V.js +0 -191
- package/dist/Modal-C1vp7z7l.cjs +0 -1
- package/dist/Modal-aKptl9ig.js +0 -599
- package/dist/ToggleButton-BZFJnMrm.cjs +0 -1
- package/dist/ToggleButton-CY_LrcKr.js +0 -2186
- package/dist/createDialogShellFocus-C2FKc2rv.cjs +0 -1
- package/dist/createDialogShellFocus-CgjiySLA.js +0 -282
- package/dist/createResizableSidebar-BqW3Ozgd.cjs +0 -1
- package/dist/createResizableSidebar-CKbN032u.js +0 -853
- package/dist/de-BQbrl0SL.cjs +0 -1
- package/dist/defineSettings-D0CSMcyy.cjs +0 -1
- package/dist/mainRealmDom-BcPuVvcy.cjs +0 -1
- package/dist/mainRealmDom-DydRT2Us.js +0 -54
- package/dist/server/Alert-DWGobTUk.js +0 -45
- package/dist/server/Alert-DulmzLv9.cjs +0 -1
- package/dist/server/CommandPalette-C0MbWZHM.cjs +0 -1
- package/dist/server/IconPicker-B5lUuCxR.js +0 -162
- package/dist/server/IconPicker-BfRZtScr.cjs +0 -1
- package/dist/server/Kbd-BPlUnyiy.cjs +0 -1
- package/dist/server/Kbd-BTbz_c_e.js +0 -170
- package/dist/server/Modal-BI3FtG-d.cjs +0 -1
- package/dist/server/Modal-Cbmikig8.js +0 -426
- package/dist/server/ToggleButton-CgiblDAs.js +0 -1375
- package/dist/server/ToggleButton-i_dhigBM.cjs +0 -1
- package/dist/server/VpRefresh-CEyHVNo-.cjs +0 -1
- package/dist/server/VpUpload-Bzy0ViGU.cjs +0 -1
- package/dist/server/createDialogShellFocus-BXCNQyU9.js +0 -370
- package/dist/server/createDialogShellFocus-CKsZl9Uz.cjs +0 -1
- package/dist/server/createResizableSidebar-B8zMo4jJ.js +0 -599
- package/dist/server/createResizableSidebar-DXFKY01F.cjs +0 -1
- package/dist/server/de-BQbrl0SL.cjs +0 -1
- package/dist/server/defineSettings-D0CSMcyy.cjs +0 -1
- package/dist/server/index-CME-IDQX.cjs +0 -1
- package/dist/server/mainRealmDom-BuGEeM_r.cjs +0 -1
- package/dist/server/mainRealmDom-CzckS_ss.js +0 -42
- package/dist/server/tr-sOAsJS3P.cjs +0 -1
- package/dist/tr-sOAsJS3P.cjs +0 -1
package/CHANGELOG.md
CHANGED
|
@@ -5,6 +5,37 @@ All notable changes to `@vokril/ui-solid` are listed here. Versions follow
|
|
|
5
5
|
contain breaking changes. From 0.1.1 on, entries are written by Changesets
|
|
6
6
|
(`npm run release:version`) above the previous release.
|
|
7
7
|
|
|
8
|
+
## 0.40.0
|
|
9
|
+
|
|
10
|
+
### Minor Changes
|
|
11
|
+
|
|
12
|
+
- b54bf1d: The pieces a "new item" form needs from the settings rows, the save bar and the alert.
|
|
13
|
+
|
|
14
|
+
- **`SettingsRow`** — `required` draws a red mark after the label and hands `aria-required` to the control through the row's field context; `error` draws a message under the row in the error colour (read politely), describes the control by it (`aria-describedby`), marks it `aria-invalid` and gives the row an error tone. `footer` is unchanged.
|
|
15
|
+
- **`SettingsSaveBar`** — `alwaysVisible` keeps the bar on screen with nothing changed and Revert and Save enabled; `note` adds a warning-coloured line after the message; `primaryAction` replaces the Save button (a `SplitButton`). The defaults are unchanged.
|
|
16
|
+
- **`Alert`** — `onDismiss` draws a × button labelled "Dismiss" at the end. New dictionary key: `Dismiss`.
|
|
17
|
+
|
|
18
|
+
## 0.39.0
|
|
19
|
+
|
|
20
|
+
### Minor Changes
|
|
21
|
+
|
|
22
|
+
- 0058309: Settings pages that keep a draft, settings that depend on another one, and the controls those pages need.
|
|
23
|
+
|
|
24
|
+
- **`SettingsPageHeader`** — the top of a settings page: an optional group name above the title, badges after it (where the values are stored), a description, a short note ("Changes apply at once.") and actions on the right. It shares `SettingsSubpageHeader`'s stylesheet, so a page and its subpages start at the same place.
|
|
25
|
+
- **`SettingsSaveBar`** — the bar at the bottom of a page whose changes are kept as a draft: "N unsaved changes", Revert and Save, a saving state and an error line. It sticks to the bottom of the scrolling page and is hidden while nothing is pending.
|
|
26
|
+
- **`SettingsDependentRows`** — rows that only apply while another setting allows them, right under that setting's row. They share the muted ground (`--ui-color-surface-muted`) with the rows an Advanced row reveals, aligned with the other rows, and appear and disappear with their parent. The short reveal plays only when the area opens, not when the page first draws it, and honours reduced motion.
|
|
27
|
+
- **`SettingsRow`**:
|
|
28
|
+
- `pending` draws a bar on the row's leading edge; with `onRevert` a button after the label puts the saved value back.
|
|
29
|
+
- **Breaking:** `modified` is now a "Customized" text badge instead of a dot (`modifiedLabel` still replaces the text). With `onReset` the badge is a button that resets to the default, and `defaultLabel` names the default in its tooltip.
|
|
30
|
+
- `help` adds a help button with the longer text in a tooltip. The text stays in the DOM, visually hidden, and describes the control, so a settings search finds it.
|
|
31
|
+
- `stack` puts the control under the text across the row (picture cards, lists). It is a one-column grid, so a wide control is measured at its real width.
|
|
32
|
+
- **`SettingsAdvancedRow`**: the revealed rows are no longer indented. They sit on the same muted ground as dependent rows.
|
|
33
|
+
- **`Slider`**: `unit`, `showValue` and `formatValue` show the value with its unit after the track and read it out (`aria-valuetext`, e.g. "13 px", "80%"). Inside a `SettingsRow` or `FormField` the slider is now named by the row's label (it had no accessible name there), and `ariaLabelledBy` is honoured. `formatSliderValue` is exported.
|
|
34
|
+
- **`NumberInput`**: `displayScale` edits a stored value in a shown unit (bytes as MB): the field shows `value / displayScale` and reports what is typed times `displayScale`.
|
|
35
|
+
- **`RadioGroup`** `variant="card"`: an option's `preview` draws a small decorative picture above its label.
|
|
36
|
+
- **Settings schema**: a field's `section` (the card it sits in), `advanced` (behind the card's Advanced row) and `dependsOn` (the field it depends on) are carried into `uiSchema`, so a schema-driven form can lay a page out from the descriptor.
|
|
37
|
+
- New dictionary keys: "Customized", "Reset to default", "Default: {value}", "Revert to saved", "Revert", "Saving…", "Unsaved changes" and the unsaved-changes count.
|
|
38
|
+
|
|
8
39
|
## 0.38.0
|
|
9
40
|
|
|
10
41
|
### Minor Changes
|
|
@@ -0,0 +1,89 @@
|
|
|
1
|
+
import { insert as i, createComponent as r, effect as l, className as s, setAttribute as f, template as d } from "solid-js/web";
|
|
2
|
+
import { Show as v } from "solid-js";
|
|
3
|
+
import { VpClose as h } from "@vokril/icons";
|
|
4
|
+
import { B as k } from "./Button-CetJ24ea.js";
|
|
5
|
+
import { t as x } from "./i18n-DlGM3NSR.js";
|
|
6
|
+
const C = "vk_alert_vmoDU", D = "vk_toneInfo_QV0x-", S = "vk_toneSuccess_tvYKa", y = "vk_toneWarning_qgbD1", A = "vk_toneDanger_0NmW5", I = "vk_box_KZK1Z", w = "vk_bare_3cIeV", V = "vk_icon_ByVKM", W = "vk_body_f2hrp", B = "vk_title_-a0fr", K = "vk_dismiss_g8ptE", N = "vk_content_bCCOz", n = {
|
|
7
|
+
alert: C,
|
|
8
|
+
toneInfo: D,
|
|
9
|
+
toneSuccess: S,
|
|
10
|
+
toneWarning: y,
|
|
11
|
+
toneDanger: A,
|
|
12
|
+
box: I,
|
|
13
|
+
bare: w,
|
|
14
|
+
icon: V,
|
|
15
|
+
body: W,
|
|
16
|
+
title: B,
|
|
17
|
+
dismiss: K,
|
|
18
|
+
content: N
|
|
19
|
+
};
|
|
20
|
+
var $ = /* @__PURE__ */ d("<span aria-hidden=true>"), O = /* @__PURE__ */ d("<div>"), z = /* @__PURE__ */ d("<div><div><div>");
|
|
21
|
+
const E = {
|
|
22
|
+
info: n.toneInfo,
|
|
23
|
+
success: n.toneSuccess,
|
|
24
|
+
warning: n.toneWarning,
|
|
25
|
+
danger: n.toneDanger
|
|
26
|
+
}, L = {
|
|
27
|
+
box: n.box,
|
|
28
|
+
bare: n.bare
|
|
29
|
+
};
|
|
30
|
+
function Q(e) {
|
|
31
|
+
const b = () => [n.alert, E[e.tone ?? "info"], L[e.variant ?? "box"], e.class].filter((o) => !!o).join(" ");
|
|
32
|
+
return (() => {
|
|
33
|
+
var o = z(), a = o.firstChild, c = a.firstChild;
|
|
34
|
+
return i(o, r(v, {
|
|
35
|
+
get when() {
|
|
36
|
+
return e.icon !== void 0;
|
|
37
|
+
},
|
|
38
|
+
get children() {
|
|
39
|
+
var t = $();
|
|
40
|
+
return i(t, () => e.icon), l(() => s(t, n.icon)), t;
|
|
41
|
+
}
|
|
42
|
+
}), a), i(a, r(v, {
|
|
43
|
+
get when() {
|
|
44
|
+
return e.title !== void 0;
|
|
45
|
+
},
|
|
46
|
+
get children() {
|
|
47
|
+
var t = O();
|
|
48
|
+
return i(t, () => e.title), l(() => s(t, n.title)), t;
|
|
49
|
+
}
|
|
50
|
+
}), c), i(c, () => e.children), i(o, r(v, {
|
|
51
|
+
get when() {
|
|
52
|
+
return e.onDismiss !== void 0;
|
|
53
|
+
},
|
|
54
|
+
get children() {
|
|
55
|
+
return r(k, {
|
|
56
|
+
variant: "ghost",
|
|
57
|
+
size: "xs",
|
|
58
|
+
iconOnly: !0,
|
|
59
|
+
get class() {
|
|
60
|
+
return n.dismiss;
|
|
61
|
+
},
|
|
62
|
+
get "aria-label"() {
|
|
63
|
+
return x("Dismiss");
|
|
64
|
+
},
|
|
65
|
+
onClick: () => {
|
|
66
|
+
var t;
|
|
67
|
+
return (t = e.onDismiss) == null ? void 0 : t.call(e);
|
|
68
|
+
},
|
|
69
|
+
get children() {
|
|
70
|
+
return r(h, {
|
|
71
|
+
"aria-hidden": "true"
|
|
72
|
+
});
|
|
73
|
+
}
|
|
74
|
+
});
|
|
75
|
+
}
|
|
76
|
+
}), null), l((t) => {
|
|
77
|
+
var _ = b(), u = e.urgency === "polite" ? "status" : "alert", m = n.body, g = n.content;
|
|
78
|
+
return _ !== t.e && s(o, t.e = _), u !== t.t && f(o, "role", t.t = u), m !== t.a && s(a, t.a = m), g !== t.o && s(c, t.o = g), t;
|
|
79
|
+
}, {
|
|
80
|
+
e: void 0,
|
|
81
|
+
t: void 0,
|
|
82
|
+
a: void 0,
|
|
83
|
+
o: void 0
|
|
84
|
+
}), o;
|
|
85
|
+
})();
|
|
86
|
+
}
|
|
87
|
+
export {
|
|
88
|
+
Q as A
|
|
89
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";const e=require("solid-js/web"),c=require("solid-js"),_=require("@vokril/icons"),m=require("./Button-D61wuA9o.cjs"),g=require("./i18n-OBn_hNf7.cjs"),b="vk_alert_vmoDU",f="vk_toneInfo_QV0x-",h="vk_toneSuccess_tvYKa",k="vk_toneWarning_qgbD1",C="vk_toneDanger_0NmW5",S="vk_box_KZK1Z",D="vk_bare_3cIeV",w="vk_icon_ByVKM",x="vk_body_f2hrp",y="vk_title_-a0fr",N="vk_dismiss_g8ptE",A="vk_content_bCCOz",o={alert:b,toneInfo:f,toneSuccess:h,toneWarning:k,toneDanger:C,box:S,bare:D,icon:w,body:x,title:y,dismiss:N,content:A};var q=e.template("<span aria-hidden=true>"),I=e.template("<div>"),V=e.template("<div><div><div>");const W={info:o.toneInfo,success:o.toneSuccess,warning:o.toneWarning,danger:o.toneDanger},B={box:o.box,bare:o.bare};function K(n){const d=()=>[o.alert,W[n.tone??"info"],B[n.variant??"box"],n.class].filter(i=>!!i).join(" ");return(()=>{var i=V(),r=i.firstChild,s=r.firstChild;return e.insert(i,e.createComponent(c.Show,{get when(){return n.icon!==void 0},get children(){var t=q();return e.insert(t,()=>n.icon),e.effect(()=>e.className(t,o.icon)),t}}),r),e.insert(r,e.createComponent(c.Show,{get when(){return n.title!==void 0},get children(){var t=I();return e.insert(t,()=>n.title),e.effect(()=>e.className(t,o.title)),t}}),s),e.insert(s,()=>n.children),e.insert(i,e.createComponent(c.Show,{get when(){return n.onDismiss!==void 0},get children(){return e.createComponent(m.Button,{variant:"ghost",size:"xs",iconOnly:!0,get class(){return o.dismiss},get"aria-label"(){return g.t("Dismiss")},onClick:()=>{var t;return(t=n.onDismiss)==null?void 0:t.call(n)},get children(){return e.createComponent(_.VpClose,{"aria-hidden":"true"})}})}}),null),e.effect(t=>{var a=d(),l=n.urgency==="polite"?"status":"alert",v=o.body,u=o.content;return a!==t.e&&e.className(i,t.e=a),l!==t.t&&e.setAttribute(i,"role",t.t=l),v!==t.a&&e.className(r,t.a=v),u!==t.o&&e.className(s,t.o=u),t},{e:void 0,t:void 0,a:void 0,o:void 0}),i})()}exports.Alert=K;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";const t=require("solid-js/web"),v=require("solid-js"),$=require("./SearchableSelect-
|
|
1
|
+
"use strict";const t=require("solid-js/web"),v=require("solid-js"),$=require("./SearchableSelect-CAUrUaqw.cjs"),T=require("./Button-D61wuA9o.cjs"),c=require("./i18n-OBn_hNf7.cjs"),m=require("./Input-C43Tmb2p.cjs"),p=require("@vokril/icons"),z=require("./iconScale.module-CzmKG1rf.cjs"),y=require("./keys-GMxY2wcl.cjs"),L=require("./bugIndicatingError-D2X5Hfgg.cjs");function P(e,a){return e<=0?a:String(e)}const O="vk_paginationRow_hg8fj",N="vk_paginationMeta_rPi8N",M="vk_paginationActions_gD2Fz",A="vk_paginationLabel_9x9Ah",q="vk_paginationSelect_h5BcT",H="vk_paginationPage_CYJRF",_={paginationRow:O,paginationMeta:N,paginationActions:M,paginationLabel:A,paginationSelect:q,paginationPage:H};var x=t.template("<div><span></span><div><label></label><span> / ");function F(e){const a=v.createMemo(()=>e.page),r=v.createMemo(()=>e.totalPages),n=()=>a()(),i=()=>r()(),u=v.createMemo(()=>{const g=c.t("Unlimited");return e.pageSizeOptions.map(s=>({value:String(s),label:P(s,g)}))});return(()=>{var g=x(),s=g.firstChild,B=s.nextSibling,S=B.firstChild,d=S.nextSibling,R=d.firstChild;return t.insert(s,()=>c.t("Showing {shown} of {total} items",{shown:e.shownCount(),total:e.totalCount()})),t.insert(S,()=>c.t("Page size"),null),t.insert(S,t.createComponent($.SearchableSelect,{size:"sm",get class(){return _.paginationSelect},get value(){return String(e.pageSize())},get options(){return u()},onChange:l=>{e.onPageSizeChange(Number(l))},searchable:!1,get ariaLabel(){return c.t("Page size")}}),null),t.insert(B,t.createComponent(T.Button,{size:"sm",variant:"secondary",get disabled(){return n()<=1},onClick:()=>e.onPageChange(Math.max(1,n()-1)),get children(){return c.t("Previous")}}),d),t.insert(d,n,R),t.insert(d,i,null),t.insert(B,t.createComponent(T.Button,{size:"sm",variant:"secondary",get disabled(){return n()>=i()},onClick:()=>e.onPageChange(Math.min(i(),n()+1)),get children(){return c.t("Next")}}),null),t.effect(l=>{var C=_.paginationRow,f=_.paginationMeta,I=_.paginationActions,V=_.paginationLabel,w=_.paginationPage;return C!==l.e&&t.className(g,l.e=C),f!==l.t&&t.className(s,l.t=f),I!==l.a&&t.className(B,l.a=I),V!==l.o&&t.className(S,l.o=V),w!==l.i&&t.className(d,l.i=w),l},{e:void 0,t:void 0,a:void 0,o:void 0,i:void 0}),g})()}const E="vk_toolbar_LSRmU",J="vk_toolbarHorizontal_qHM-8",X="vk_toolbarViewClip_Q893H",K="vk_toolbarScrollRoot_aYbLg",U="vk_toolbarScrollViewport_qBzjd",j="vk_toolbarScrollTrack_Tp8TN",D="vk_segmentedCapsule_k9EBy",G="vk_toolbarBtn_CcyXF",Q="vk_toolbarBtnActive_UgTBV",Y="vk_toolbarBtnIconOnly_BlE-b",Z="vk_toolbarHorizontalBottom_qLzhJ",W="vk_toolbarVertical_EjHi2",tt="vk_toolbarVerticalRight_DBgEa",et="vk_toolbarScrollRootVertical_VGLRy",ot="vk_toolbarScrollViewportVertical_RLF5g",rt="vk_toolbarScrollTrackVertical_c1rBF",at="vk_toolbarSettingsBtn_XXfMz",nt="vk_toolbarIcon_0FvlL",lt="vk_toolbarSpacer_N3TbQ",ct="vk_sortBadgePill_nVrIk",it="vk_sortBadgeBtn_Is9PS",st="vk_sortBadgeIcon_kw8oa",bt="vk_sortBadgeLabel_l-p33",gt="vk_sortBadgeClearBtn_ioOaP",ut="vk_sortBadgeClearIcon_0e6Kd",vt="vk_filterInputContainer_kegUv",_t="vk_filterSearchIcon_gI0m2",dt="vk_filterInput_bX9xM",Bt="vk_filterClearBtn_WerJL",St="vk_filterClearIcon_7fuAJ",o={toolbar:E,toolbarHorizontal:J,toolbarViewClip:X,toolbarScrollRoot:K,toolbarScrollViewport:U,toolbarScrollTrack:j,segmentedCapsule:D,toolbarBtn:G,toolbarBtnActive:Q,toolbarBtnIconOnly:Y,toolbarHorizontalBottom:Z,toolbarVertical:W,toolbarVerticalRight:tt,toolbarScrollRootVertical:et,toolbarScrollViewportVertical:ot,toolbarScrollTrackVertical:rt,toolbarSettingsBtn:at,toolbarIcon:nt,toolbarSpacer:lt,sortBadgePill:ct,sortBadgeBtn:it,sortBadgeIcon:st,sortBadgeLabel:bt,sortBadgeClearBtn:gt,sortBadgeClearIcon:ut,filterInputContainer:vt,filterSearchIcon:_t,filterInput:dt,filterClearBtn:Bt,filterClearIcon:St},kt="vk_searchRow_2pwXX",ht="vk_searchInput_PbDtG",mt="vk_clearBtn_upa-E",k={searchRow:kt,searchInput:ht,clearBtn:mt};var pt=t.template("<div>");function Ct(e){return t.createComponent(m.PressableSurface,{type:"button",get class(){return`${o.toolbarSettingsBtn} ${e.active?o.toolbarBtnActive:""}`},get onClick(){return e.onToggle},get"aria-pressed"(){return e.active},get"aria-label"(){return c.t("Search")},get title(){return c.t("Search")},get children(){return t.createComponent(p.VpSearch,{get class(){return o.toolbarIcon},"aria-hidden":"true"})}})}function ft(e){let a;return v.onMount(()=>a==null?void 0:a.focus()),(()=>{var r=pt();return t.insert(r,t.createComponent(m.Input,t.mergeProps({ref(n){var i=a;typeof i=="function"?i(n):a=n},get class(){return k.searchInput},type:"search",size:"sm",get value(){return e.value},onInput:n=>e.onInput(n.currentTarget.value),onKeyDown:n=>{y.isKey(n,"Escape")&&e.onClose()},get placeholder(){return e.placeholder??c.t("Search…")}},()=>e.disabled!==void 0?{disabled:e.disabled}:{})),null),t.insert(r,t.createComponent(v.Show,{get when(){return e.value.length>0},get children(){return t.createComponent(m.PressableSurface,{type:"button",get class(){return k.clearBtn},onClick:()=>e.onInput(""),get"aria-label"(){return c.t("Clear search")},get title(){return c.t("Clear search")},get children(){return t.createComponent(p.VpClose,{get class(){return z.iconScale.iconSm},"aria-hidden":"true"})}})}}),null),t.effect(()=>t.className(r,k.searchRow)),r})()}const It=Object.freeze({toolbar:o.toolbar,toolbarHorizontal:o.toolbarHorizontal,toolbarHorizontalBottom:o.toolbarHorizontalBottom,toolbarVertical:o.toolbarVertical,toolbarVerticalRight:o.toolbarVerticalRight,toolbarViewClip:o.toolbarViewClip,toolbarScrollRoot:o.toolbarScrollRoot,toolbarScrollViewport:o.toolbarScrollViewport,toolbarScrollTrack:o.toolbarScrollTrack,toolbarScrollRootVertical:o.toolbarScrollRootVertical,toolbarScrollViewportVertical:o.toolbarScrollViewportVertical,toolbarScrollTrackVertical:o.toolbarScrollTrackVertical,segmentedCapsule:o.segmentedCapsule,toolbarBtn:o.toolbarBtn,toolbarBtnActive:o.toolbarBtnActive,toolbarBtnIconOnly:o.toolbarBtnIconOnly,toolbarIcon:o.toolbarIcon,toolbarSpacer:o.toolbarSpacer,toolbarSettingsBtn:o.toolbarSettingsBtn,sortBadgePill:o.sortBadgePill,sortBadgeBtn:o.sortBadgeBtn,sortBadgeIcon:o.sortBadgeIcon,sortBadgeLabel:o.sortBadgeLabel,sortBadgeClearBtn:o.sortBadgeClearBtn,sortBadgeClearIcon:o.sortBadgeClearIcon,filterInputContainer:o.filterInputContainer,filterSearchIcon:o.filterSearchIcon,filterInput:o.filterInput,filterClearBtn:o.filterClearBtn,filterClearIcon:o.filterClearIcon});function Vt(e,a){const r=`${a}: `;throw new L.BugIndicatingError(`${r}Non-exhaustive switch: unexpected value ${JSON.stringify(e)}`)}const wt="vk_grid_uK6pm",Tt="vk_card_33OV3",zt="vk_item_UeZrE",Pt="vk_label_a-LFz",Rt="vk_value_9ZQBt",$t="vk_valueMono_knknq",yt="vk_boolOn_5zd-H",Lt="vk_boolOff_-6I4K",Ot="vk_stacked_2T--a",b={grid:wt,card:Tt,item:zt,label:Pt,value:Rt,valueMono:$t,boolOn:yt,boolOff:Lt,stacked:Ot};var h=t.template("<span>"),Nt=t.template("<div>"),Mt=t.template("<div><span>");function At(e,a){switch(e.kind){case"text":return(()=>{var r=h();return t.insert(r,()=>e.value(a)),t.effect(()=>t.className(r,b.value)),r})();case"mono":return(()=>{var r=h();return t.insert(r,()=>e.value(a)),t.effect(()=>t.className(r,b.valueMono)),r})();case"bool":return(()=>{var r=h();return t.insert(r,(()=>{var n=t.memo(()=>!!e.on(a));return()=>n()?t.createComponent(p.VpCheck,{get class(){return z.iconScale.iconSm},"aria-hidden":"true"}):"—"})()),t.effect(()=>t.className(r,`${b.value} ${e.on(a)?b.boolOn:b.boolOff}`)),r})();case"custom":return e.render(a);default:return Vt(e,"AttributeField.kind")}}function qt(e){return t.createComponent(v.Show,{get when(){return e.row()!=null},get children(){var a=Nt();return t.insert(a,t.createComponent(v.For,{get each(){return e.fields},children:r=>(()=>{var n=Mt(),i=n.firstChild;return t.insert(i,()=>r.label),t.insert(n,()=>At(r,e.row()),null),t.effect(u=>{var g=b.item,s=b.label;return g!==u.e&&t.className(n,u.e=g),s!==u.t&&t.className(i,u.t=s),u},{e:void 0,t:void 0}),n})()})),t.effect(()=>t.className(a,`${b.grid} ${b[e.variant]??""}`)),a}})}exports.AttributeGrid=qt;exports.Pagination=F;exports.ToolbarSearchRow=ft;exports.ToolbarSearchToggle=Ct;exports.pageSizeOptionLabel=P;exports.resultTabToolbarClasses=It;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { insert as l, createComponent as c, effect as d, className as i, template as k, mergeProps as O, memo as A } from "solid-js/web";
|
|
2
2
|
import { createMemo as f, onMount as M, Show as T, For as H } from "solid-js";
|
|
3
|
-
import { S as x } from "./SearchableSelect-
|
|
4
|
-
import { B as R } from "./Button-
|
|
5
|
-
import { t as s } from "./i18n-
|
|
6
|
-
import { I as F, P as $ } from "./Input-
|
|
3
|
+
import { S as x } from "./SearchableSelect-CW1lGmGW.js";
|
|
4
|
+
import { B as R } from "./Button-CetJ24ea.js";
|
|
5
|
+
import { t as s } from "./i18n-DlGM3NSR.js";
|
|
6
|
+
import { I as F, P as $ } from "./Input-BDjgWn-u.js";
|
|
7
7
|
import { VpClose as N, VpSearch as E, VpCheck as X } from "@vokril/icons";
|
|
8
8
|
import { i as y } from "./iconScale.module-C3O0bxfp.js";
|
|
9
9
|
import { i as J } from "./keys-B2nlkpqc.js";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { effect as m, className as d, setAttribute as A, template as S, use as ai, spread as li, mergeProps as si, memo as f, insert as l, createComponent as p } from "solid-js/web";
|
|
2
2
|
import { splitProps as di, createUniqueId as ci, createSignal as j, createEffect as w, onCleanup as q, createMemo as X, Show as y } from "solid-js";
|
|
3
|
-
import { t as vi } from "./i18n-
|
|
3
|
+
import { t as vi } from "./i18n-DlGM3NSR.js";
|
|
4
4
|
import { t as B, r as ui, h as fi } from "./nativeTitleHold-A9jUISgQ.js";
|
|
5
5
|
const gi = "vk_spinner_s8rMh", pi = "vk_xs_UVj9O", mi = "vk_sm_G7bj9", _i = "vk_lg_SEaSa", O = {
|
|
6
6
|
spinner: gi,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";const t=require("solid-js/web"),a=require("solid-js"),K=require("./i18n-
|
|
1
|
+
"use strict";const t=require("solid-js/web"),a=require("solid-js"),K=require("./i18n-OBn_hNf7.cjs"),h=require("./nativeTitleHold-B7Ou-W9b.cjs"),Q="vk_spinner_s8rMh",R="vk_xs_UVj9O",Y="vk_sm_G7bj9",ee="vk_lg_SEaSa",z={spinner:Q,xs:R,sm:Y,lg:ee};var te=t.template("<span data-motion-exempt=true>");const ne={xs:z.xs,sm:z.sm,md:"",lg:z.lg};function w(c){return(()=>{var e=te();return t.effect(l=>{var r=`${z.spinner} ${ne[c.size??"md"]} ${c.class??""}`,b=c.decorative?void 0:"status",s=c.decorative?void 0:c.label??K.t("Loading…"),k=c.decorative?"true":void 0;return r!==l.e&&t.className(e,l.e=r),b!==l.t&&t.setAttribute(e,"role",l.t=b),s!==l.a&&t.setAttribute(e,"aria-label",l.a=s),k!==l.o&&t.setAttribute(e,"aria-hidden",l.o=k),l},{e:void 0,t:void 0,a:void 0,o:void 0}),e})()}const ie="vk_root_Zndmu",oe="vk_size2xs_kbyEZ",re="vk_sizeXs_IUmg-",ae="vk_sizeSm_s-iaT",le="vk_sizeMd_bAI9d",se="vk_sizeLg_zhdkf",ce="vk_variantPrimary_KTVgG",de="vk_variantTonal_tkJNt",ve="vk_variantSecondary_MA7xu",ue="vk_variantDanger_L30Uq",fe="vk_variantDangerSolid_htqc7",me="vk_variantPrimarySolid_14Uwi",pe="vk_variantLink_3AapU",ge="vk_variantGhost_x0-j-",_e="vk_variantOutline_xGu8I",he="vk_active_QisSI",ye="vk_iconOnly_bhObv",be="vk_pill_-qH8n",ke="vk_fullWidth_kr6EK",Se="vk_icon_h1rmS",Le="vk_label_6-wKp",ze="vk_responsiveLabel_4Ma2i",Te="vk_loading_EWpLB",xe="vk_iconHidden_Mlyq3",Ce="vk_spinnerWrap_F8L1B",De="vk_inlineSpinner_uuJuB",Oe="vk_loadingLabelGroup_HO7pg",we="vk_labelText_v7v-A",Ie="vk_animatedDots_CPxN9",o={root:ie,size2xs:oe,sizeXs:re,sizeSm:ae,sizeMd:le,sizeLg:se,variantPrimary:ce,variantTonal:de,variantSecondary:ve,variantDanger:ue,variantDangerSolid:fe,variantPrimarySolid:me,variantLink:pe,variantGhost:ge,variantOutline:_e,active:he,iconOnly:ye,pill:be,fullWidth:ke,icon:Se,label:Le,responsiveLabel:ze,loading:Te,iconHidden:xe,spinnerWrap:Ce,inlineSpinner:De,loadingLabelGroup:Oe,labelText:we,animatedDots:Ie};var y=t.template("<span aria-hidden=true>"),Ne=t.template("<span>"),Pe=t.template("<button>"),$e=t.template("<span><span></span><span aria-hidden=true data-testid=button-animated-dots data-animated-dots=true>");const Ae={primary:o.variantPrimary,primarySolid:o.variantPrimarySolid,tonal:o.variantTonal,secondary:o.variantSecondary,danger:o.variantDanger,dangerSolid:o.variantDangerSolid,ghost:o.variantGhost,outline:o.variantOutline,link:o.variantLink},We={"2xs":o.size2xs,xs:o.sizeXs,sm:o.sizeSm,md:o.sizeMd,lg:o.sizeLg};function Ee(c){let e=c;for(;typeof e=="function";)try{e=e()}catch{break}return typeof e=="string"?e.replace(/(?:\s*\.{2,}|\s*…)\s*$/,""):Array.isArray(e)&&e.every(l=>typeof l=="string")?e.join("").replace(/(?:\s*\.{2,}|\s*…)\s*$/,""):e}function Be(c){const[e,l]=a.splitProps(c,["variant","size","iconOnly","active","pill","fullWidth","responsiveLabel","loading","loadingDelay","minLoadingDuration","loadingLabel","type","leadingIcon","trailingIcon","class","children","disabled","tooltip","tooltipShortcut","tooltipPlacement","title","aria-label","aria-description","ref","onPointerEnter","onPointerLeave","onFocusIn","onFocusOut","onClick"]);let r;const b=a.createUniqueId(),[s,k]=a.createSignal(!1);let T=!1,d,v,x=0,g;const I=()=>{r&&r.offsetWidth>0&&g===void 0&&(g=r.style.minWidth,r.style.minWidth=`${r.offsetWidth}px`)},S=()=>{r&&g!==void 0&&(r.style.minWidth=g,g=void 0)},L=i=>{i&&I(),T=i,k(i)};a.createEffect(()=>{const i=!!e.loading,n=typeof e.loadingDelay=="number"&&!Number.isNaN(e.loadingDelay)?e.loadingDelay:180,f=typeof e.minLoadingDuration=="number"&&!Number.isNaN(e.minLoadingDuration)?e.minLoadingDuration:350;if(i){if(I(),v!==void 0&&(clearTimeout(v),v=void 0),T)return;n<=0?(x=Date.now(),L(!0)):d===void 0&&(d=setTimeout(()=>{d=void 0,x=Date.now(),L(!0)},n))}else if(d!==void 0&&(clearTimeout(d),d=void 0),T){const u=Date.now()-x,p=f-u;p>0?v===void 0&&(v=setTimeout(()=>{v=void 0,L(!1),S()},p)):(L(!1),S())}else S()});let _;a.createEffect(()=>{e.loading||(_=e.children)}),a.onCleanup(()=>{d!==void 0&&(clearTimeout(d),d=void 0),v!==void 0&&(clearTimeout(v),v=void 0),S()});const C=()=>!!e.loading||s(),N=()=>{if(e.loadingLabel!==void 0)return typeof e.loadingLabel=="function"?e.loadingLabel():e.loadingLabel},G=()=>{const i=N();return i!==void 0?i:e.children!==void 0&&e.children!==""&&e.children!==null&&e.children!==!1?e.children:_!==void 0?_:e.children},M=()=>e.size==="2xs"||e.size==="xs"?"xs":"sm",q=()=>e.size==="2xs"||e.size==="xs"?"xs":e.size==="sm"?"sm":"md",F=()=>e.tooltip!==void 0?typeof e.tooltip=="function"?e.tooltip():e.tooltip:e.title,D=a.createMemo(()=>({content:F(),shortcut:e.tooltipShortcut,placement:e.tooltipPlacement})),H=a.createMemo(()=>!!e.disabled||C()),[P,U]=a.createSignal("");a.createEffect(()=>{var i;e.children,e.iconOnly,U(((i=r==null?void 0:r.textContent)==null?void 0:i.trim())??"")});const $=()=>!e.iconOnly&&P()!=="",V=()=>{const i=N();if(s()&&i)return i;if(e["aria-label"]!==void 0)return e["aria-label"];if(!$())return D().content},j=()=>{if(e["aria-description"]!==void 0)return e["aria-description"];if(e["aria-label"]!==void 0||!$())return;const i=D().content;return i&&i!==P()?i:void 0},A=()=>{const{content:i,shortcut:n,placement:f}=D();!i||!r||(h.holdNativeTitle(r),h.tooltipCoordinator.showTooltip({id:b,target:r,content:i,shortcut:n,placement:f}))},O=()=>{r&&(h.releaseNativeTitle(r),h.tooltipCoordinator.hideTooltip(r))},X=()=>{r&&h.tooltipCoordinator.hideTooltip(r)};a.onCleanup(()=>{O()});const Z=()=>{const i=e.variant??"secondary",n=e.size??(i==="link"?void 0:"md");return[o.root,Ae[i],n===void 0?void 0:We[n],e.iconOnly?o.iconOnly:void 0,e.active?o.active:void 0,e.pill?o.pill:void 0,e.fullWidth?o.fullWidth:void 0,e.responsiveLabel?o.responsiveLabel:void 0,s()?o.loading:void 0,e.class].filter(u=>!!u).join(" ")};return(()=>{var i=Pe();return t.use(n=>{r=n,typeof e.ref=="function"&&e.ref(n)},i),t.spread(i,t.mergeProps(l,{get type(){return e.type??"button"},get class(){return Z()},get disabled(){return e.disabled},get"aria-disabled"(){return C()&&!e.disabled?"true":void 0},get"aria-busy"(){return C()?"true":"false"},get"aria-label"(){return V()},get"aria-description"(){return j()},get title(){return t.memo(()=>e.tooltip!==void 0)()?void 0:e.title},onPointerEnter:n=>{A(),typeof e.onPointerEnter=="function"&&e.onPointerEnter(n)},onPointerLeave:n=>{O(),typeof e.onPointerLeave=="function"&&e.onPointerLeave(n)},onFocusIn:n=>{A(),typeof e.onFocusIn=="function"&&e.onFocusIn(n)},onFocusOut:n=>{O(),typeof e.onFocusOut=="function"&&e.onFocusOut(n)},onClick:n=>{if(H()){n.preventDefault();return}if(X(),typeof e.onClick=="function")e.onClick(n);else if(Array.isArray(e.onClick)){const[f,u]=e.onClick;f(u,n)}}}),!1,!0),t.insert(i,t.createComponent(a.Show,{get when(){return t.memo(()=>e.leadingIcon!==void 0)()&&!s()},get children(){var n=y();return t.insert(n,()=>e.leadingIcon),t.effect(()=>t.className(n,o.icon)),n}}),null),t.insert(i,t.createComponent(a.Show,{get when(){return t.memo(()=>!e.iconOnly)()&&s()},get children(){var n=y();return t.insert(n,t.createComponent(w,{get size(){return M()},decorative:!0})),t.effect(()=>t.className(n,o.inlineSpinner)),n}}),null),t.insert(i,t.createComponent(a.Show,{get when(){return t.memo(()=>!!(e.children!==void 0||s()&&e.loadingLabel!==void 0))()&&!e.iconOnly},get children(){var n=Ne();return t.insert(n,(()=>{var f=t.memo(()=>!!s());return()=>f()?(()=>{var u=$e(),p=u.firstChild,J=p.nextSibling;return t.insert(p,()=>Ee(G())),t.effect(m=>{var W=o.loadingLabelGroup,E=o.labelText,B=o.animatedDots;return W!==m.e&&t.className(u,m.e=W),E!==m.t&&t.className(p,m.t=E),B!==m.a&&t.className(J,m.a=B),m},{e:void 0,t:void 0,a:void 0}),u})():t.memo(()=>!!(e.loading&&_!==void 0))()?_:e.children})()),t.effect(()=>t.className(n,o.label)),n}}),null),t.insert(i,t.createComponent(a.Show,{get when(){return t.memo(()=>!!e.iconOnly)()&&e.children!==void 0},get children(){var n=y();return t.insert(n,()=>e.children),t.effect(()=>t.className(n,`${o.icon} ${s()?o.iconHidden:""}`)),n}}),null),t.insert(i,t.createComponent(a.Show,{get when(){return t.memo(()=>e.trailingIcon!==void 0)()&&!s()},get children(){var n=y();return t.insert(n,()=>e.trailingIcon),t.effect(()=>t.className(n,o.icon)),n}}),null),t.insert(i,t.createComponent(a.Show,{get when(){return t.memo(()=>!!e.iconOnly)()&&s()},get children(){var n=y();return t.insert(n,t.createComponent(w,{get size(){return q()},decorative:!0})),t.effect(()=>t.className(n,o.spinnerWrap)),n}}),null),i})()}exports.Button=Be;exports.Spinner=w;
|
|
@@ -1,19 +1,19 @@
|
|
|
1
1
|
import { insert as s, createComponent as o, effect as M, className as u, memo as ge, template as O, delegateEvents as Te, use as Le, setAttribute as U, Portal as ht, mergeProps as It, setStyleProperty as Ee, spread as In, addEventListener as je, style as Mn } from "solid-js/web";
|
|
2
2
|
import { createSignal as Z, createMemo as Y, onCleanup as fe, Show as A, createEffect as ke, on as gt, createUniqueId as me, For as xe, createComputed as Dn, onMount as Rt, splitProps as An, createRenderEffect as pn } from "solid-js";
|
|
3
|
-
import { K as Zt } from "./
|
|
4
|
-
import { O as et, I as Mt, P as Ke, F as En } from "./Input-
|
|
5
|
-
import { B as we } from "./Button-
|
|
6
|
-
import { C as en,
|
|
7
|
-
import { T as Pn } from "./Textarea-
|
|
8
|
-
import { A as Rn } from "./Alert-
|
|
3
|
+
import { K as Zt, E as Ve } from "./mainRealmDom-DPOYak2f.js";
|
|
4
|
+
import { O as et, I as Mt, P as Ke, F as En } from "./Input-BDjgWn-u.js";
|
|
5
|
+
import { B as we } from "./Button-CetJ24ea.js";
|
|
6
|
+
import { C as en, c as Tn } from "./createDialogShellFocus-GXYQh0Oh.js";
|
|
7
|
+
import { T as Pn } from "./Textarea-D8Gqx3oX.js";
|
|
8
|
+
import { A as Rn } from "./Alert-BgbPhgp8.js";
|
|
9
9
|
import { B as On } from "./Badge-BguTObKo.js";
|
|
10
|
-
import { A as tn, r as Ze, t as Ye } from "./Modal-
|
|
10
|
+
import { A as tn, r as Ze, t as Ye, s as bt } from "./Modal-DospFxAr.js";
|
|
11
11
|
import { O as We } from "./OverlayScrollArea-CrrPFLq9.js";
|
|
12
12
|
import { a as Dt, g as ut } from "./window-CUK6x8Pj.js";
|
|
13
13
|
import { r as tt } from "./ownerAnimationFrame-DzFcMSmn.js";
|
|
14
|
-
import { t as C, l as Bn } from "./i18n-
|
|
14
|
+
import { t as C, l as Bn } from "./i18n-DlGM3NSR.js";
|
|
15
15
|
import { i as Ie } from "./keys-B2nlkpqc.js";
|
|
16
|
-
import { b as ae, P as Ue } from "./GuidedTour-
|
|
16
|
+
import { b as ae, P as Ue } from "./GuidedTour-DzmN3Cfq.js";
|
|
17
17
|
import { h as Wn, t as mt, r as zn, c as Hn } from "./nativeTitleHold-A9jUISgQ.js";
|
|
18
18
|
import { VpCheck as nn, VpChevronRight as Nn, VpClose as At, VpChevronDown as rn, VpMinus as Fn, VpArrowsMinimize as Vn, VpArrowsMaximize as qn, VpExternalLink as Kn, VpKeyboard as jn } from "@vokril/icons";
|
|
19
19
|
import { u as Yn, D as Un } from "./DesktopContextMenuContext-DJ3PnqAv.js";
|
|
@@ -24,7 +24,6 @@ import { n as Gn, m as Qn } from "./prefersReducedMotion-qcGrKv14.js";
|
|
|
24
24
|
import { P as Jn } from "./Popover-DkqGvMNy.js";
|
|
25
25
|
import { s as Zn, r as Bt } from "./dialogFocusRestore-BhxVTSiP.js";
|
|
26
26
|
import { c as Wt } from "./errorHandler-BvPGW-Nm.js";
|
|
27
|
-
import { E as Ve } from "./mainRealmDom-DydRT2Us.js";
|
|
28
27
|
import { c as er } from "./tablistKeyboard-AxJcXuc5.js";
|
|
29
28
|
import { u as on } from "./kitHost-BMMWpU4w.js";
|
|
30
29
|
const tr = "vk_wrapper_u7cKP", nr = "vk_tooltip_ANskC", rr = "vk_placementTop_Q5EkL", or = "vk_placementBottom_VVLuu", ir = "vk_placementLeft_uKF0H", ar = "vk_placementRight_ObusA", qe = {
|
|
@@ -36,7 +35,7 @@ const tr = "vk_wrapper_u7cKP", nr = "vk_tooltip_ANskC", rr = "vk_placementTop_Q5
|
|
|
36
35
|
placementRight: ar
|
|
37
36
|
};
|
|
38
37
|
var lr = /* @__PURE__ */ O("<div role=tooltip><span>"), cr = /* @__PURE__ */ O("<div>");
|
|
39
|
-
const
|
|
38
|
+
const Nc = (e) => {
|
|
40
39
|
const [n, i] = Z(!1);
|
|
41
40
|
let a;
|
|
42
41
|
const c = () => e.placement ?? "top", l = Y(() => e.delayMs ?? 400), d = Y(() => !!e.disabled), g = () => {
|
|
@@ -158,7 +157,7 @@ const dr = "vk_overlay_7-umT", ur = "vk_dialog_3YL-7", mr = "vk_header_asYMs", v
|
|
|
158
157
|
};
|
|
159
158
|
var zt = /* @__PURE__ */ O("<div>"), Ht = /* @__PURE__ */ O("<ul>"), ln = /* @__PURE__ */ O("<div tabindex=-1><div role=alertdialog aria-modal=true tabindex=-1><div><h3></h3></div><div><p></p></div><div>"), Nt = /* @__PURE__ */ O("<li>"), cn = /* @__PURE__ */ O("<p>"), Ir = /* @__PURE__ */ O("<pre><code>"), Mr = /* @__PURE__ */ O("<div tabindex=-1><div role=dialog aria-modal=true tabindex=-1><div><h3></h3></div><div></div><div>");
|
|
160
159
|
const Ge = (e) => ((e == null ? void 0 : e()) ?? Dt().window).document;
|
|
161
|
-
function
|
|
160
|
+
function Fc(e) {
|
|
162
161
|
const n = Y(() => e.variant ?? "default"), i = Y(() => !!e.sticky), a = Y(() => !!e.acknowledge && !i()), c = Y(() => i() || n() === "danger" && !a()), l = Y(() => e.cancelLabel ?? C("Cancel")), d = Y(() => e.confirmLabel ?? (a() ? C("Close") : C("Confirm"))), g = Y(() => e.checkbox), h = Y(() => e.details ?? []), b = Y(() => e.warnings ?? []), v = me(), m = me(), L = me(), f = me(), D = () => [e.place ? m : null, L, b().length > 0 ? f : null].filter((W) => W !== null).join(" "), [_, $] = Z(0);
|
|
163
162
|
ke(() => {
|
|
164
163
|
var de;
|
|
@@ -405,7 +404,7 @@ function Vc(e) {
|
|
|
405
404
|
}
|
|
406
405
|
});
|
|
407
406
|
}
|
|
408
|
-
function
|
|
407
|
+
function Vc(e) {
|
|
409
408
|
const n = me(), i = me(), a = nt({
|
|
410
409
|
open: () => e.open(),
|
|
411
410
|
ownerDocument: () => Ge(e.host)
|
|
@@ -484,7 +483,7 @@ function qc(e) {
|
|
|
484
483
|
}
|
|
485
484
|
});
|
|
486
485
|
}
|
|
487
|
-
function
|
|
486
|
+
function qc(e) {
|
|
488
487
|
const n = Y(() => !!e.multiline), i = me(), [a, c] = Z(e.defaultValue ?? "");
|
|
489
488
|
ke(gt(() => e.open(), (f) => {
|
|
490
489
|
f && c(e.defaultValue ?? "");
|
|
@@ -618,7 +617,7 @@ function Kc(e) {
|
|
|
618
617
|
});
|
|
619
618
|
}
|
|
620
619
|
Te(["mousedown", "click", "keydown"]);
|
|
621
|
-
const
|
|
620
|
+
const Kc = Object.freeze({
|
|
622
621
|
root: ae.root,
|
|
623
622
|
header: ae.header,
|
|
624
623
|
headerMain: ae.headerMain,
|
|
@@ -1355,13 +1354,13 @@ function un(e) {
|
|
|
1355
1354
|
} : {}
|
|
1356
1355
|
};
|
|
1357
1356
|
}
|
|
1358
|
-
function
|
|
1357
|
+
function jc(e, n) {
|
|
1359
1358
|
e.preventDefault(), e.stopPropagation(), pt.open(e.clientX, e.clientY, n.map(un), e);
|
|
1360
1359
|
}
|
|
1361
|
-
function
|
|
1360
|
+
function Yc() {
|
|
1362
1361
|
pt.close();
|
|
1363
1362
|
}
|
|
1364
|
-
function
|
|
1363
|
+
function Uc() {
|
|
1365
1364
|
return o(Un.Provider, {
|
|
1366
1365
|
value: pt,
|
|
1367
1366
|
get children() {
|
|
@@ -1538,7 +1537,7 @@ function Bo(e) {
|
|
|
1538
1537
|
}
|
|
1539
1538
|
});
|
|
1540
1539
|
}
|
|
1541
|
-
const
|
|
1540
|
+
const Xc = {
|
|
1542
1541
|
Root: po,
|
|
1543
1542
|
Header: Eo,
|
|
1544
1543
|
Body: To,
|
|
@@ -1564,7 +1563,7 @@ const Gc = {
|
|
|
1564
1563
|
footer: Jo
|
|
1565
1564
|
};
|
|
1566
1565
|
var Zo = /* @__PURE__ */ O("<div aria-hidden=true>"), ei = /* @__PURE__ */ O("<h3>"), Vt = /* @__PURE__ */ O("<div>"), ti = /* @__PURE__ */ O("<footer>"), ni = /* @__PURE__ */ O("<div role=dialog tabindex=-1><header><button type=button></button></header><div>");
|
|
1567
|
-
function
|
|
1566
|
+
function Gc(e) {
|
|
1568
1567
|
let n = null;
|
|
1569
1568
|
const i = rt(), a = () => e.container !== void 0, c = Y((_) => {
|
|
1570
1569
|
var $;
|
|
@@ -1888,19 +1887,19 @@ function Ni(e) {
|
|
|
1888
1887
|
return M(() => u(n, Me(X.separator, e.class))), n;
|
|
1889
1888
|
})();
|
|
1890
1889
|
}
|
|
1891
|
-
function
|
|
1890
|
+
function Qc(e) {
|
|
1892
1891
|
return (() => {
|
|
1893
1892
|
var n = Et();
|
|
1894
1893
|
return s(n, () => e.children), M(() => u(n, Me(X.empty, e.class))), n;
|
|
1895
1894
|
})();
|
|
1896
1895
|
}
|
|
1897
|
-
function
|
|
1896
|
+
function Jc(e) {
|
|
1898
1897
|
return (() => {
|
|
1899
1898
|
var n = Et();
|
|
1900
1899
|
return s(n, () => e.children), M(() => u(n, Me(X.search, e.class))), n;
|
|
1901
1900
|
})();
|
|
1902
1901
|
}
|
|
1903
|
-
function
|
|
1902
|
+
function Zc(e) {
|
|
1904
1903
|
const n = Y(() => e.open), i = Y(() => !!e.disabled), a = me(), c = me(), [l, d] = Z(e.defaultOpen ?? !1), g = () => n() ?? l(), h = () => e.icon !== void 0 || e.reserveIcon === !0, b = () => {
|
|
1905
1904
|
var m;
|
|
1906
1905
|
if (i()) return;
|
|
@@ -1996,7 +1995,7 @@ function Ki(e) {
|
|
|
1996
1995
|
})) : gn(l) ? (c(), i = l.label) : a.push(l);
|
|
1997
1996
|
return c(), n;
|
|
1998
1997
|
}
|
|
1999
|
-
function
|
|
1998
|
+
function es(e) {
|
|
2000
1999
|
const n = Y(() => e.open), i = Y(() => !!e.disabled), [a, c] = Z(!1);
|
|
2001
2000
|
let l = null;
|
|
2002
2001
|
const d = () => n() ?? a(), g = (_) => {
|
|
@@ -2143,7 +2142,7 @@ const ji = "vk_surface_3ZOnl", Yi = "vk_item_neWq-", Ui = "vk_check_dO3aK", Xi =
|
|
|
2143
2142
|
itemIcon: na,
|
|
2144
2143
|
viewport: ra,
|
|
2145
2144
|
empty: oa
|
|
2146
|
-
},
|
|
2145
|
+
}, ts = Object.freeze({
|
|
2147
2146
|
surface: $e.surface,
|
|
2148
2147
|
viewport: $e.viewport,
|
|
2149
2148
|
item: $e.item,
|
|
@@ -2159,7 +2158,7 @@ const ji = "vk_surface_3ZOnl", Yi = "vk_item_neWq-", Ui = "vk_check_dO3aK", Xi =
|
|
|
2159
2158
|
empty: $e.empty
|
|
2160
2159
|
});
|
|
2161
2160
|
var ia = /* @__PURE__ */ O("<span aria-hidden=true style=display:none>"), aa = /* @__PURE__ */ O("<div><span>"), la = /* @__PURE__ */ O("<div role=tooltip>"), ca = /* @__PURE__ */ O("<span>");
|
|
2162
|
-
function
|
|
2161
|
+
function ns() {
|
|
2163
2162
|
let e, n;
|
|
2164
2163
|
const [i, a] = Z({
|
|
2165
2164
|
top: -9999,
|
|
@@ -2389,7 +2388,7 @@ const da = "vk_overlay_Fd-y-", ua = "vk_dialog_Yf7zX", ma = "vk_header_CYXMR", v
|
|
|
2389
2388
|
function bn(e) {
|
|
2390
2389
|
return !fn[e].reversible;
|
|
2391
2390
|
}
|
|
2392
|
-
function
|
|
2391
|
+
function rs(e) {
|
|
2393
2392
|
return bn(e) ? "typed" : "confirm";
|
|
2394
2393
|
}
|
|
2395
2394
|
function Ba(e) {
|
|
@@ -2643,7 +2642,7 @@ function Za(e) {
|
|
|
2643
2642
|
}
|
|
2644
2643
|
var jt = /* @__PURE__ */ O("<p>"), el = /* @__PURE__ */ O("<div tabindex=-1 role=presentation><div role=alertdialog aria-modal=true tabindex=-1><div><span aria-hidden=true>!</span><h3></h3></div><div>");
|
|
2645
2644
|
const St = (e) => bn(e.consequence), tl = 5;
|
|
2646
|
-
function
|
|
2645
|
+
function os(e) {
|
|
2647
2646
|
const n = me(), i = me(), [a, c] = Z(null), [l, d] = Z("name"), [g, h] = Z(""), [b, v] = Z({}), [m, L] = Z(0);
|
|
2648
2647
|
let f = null, D = null, _ = !1;
|
|
2649
2648
|
const $ = () => {
|
|
@@ -2929,7 +2928,7 @@ const nl = "vk_window_cNPxa", rl = "vk_maximized_nbnO1", ol = "vk_minimized_7iRr
|
|
|
2929
2928
|
resizeGrip: hl
|
|
2930
2929
|
};
|
|
2931
2930
|
var gl = /* @__PURE__ */ O("<span>"), fl = /* @__PURE__ */ O("<button type=button>"), bl = /* @__PURE__ */ O("<div aria-hidden=true>"), _l = /* @__PURE__ */ O("<div role=dialog tabindex=-1><div><div><span></span></div><div><button type=button></button><button type=button></button><button type=button>");
|
|
2932
|
-
function
|
|
2931
|
+
function is(e) {
|
|
2933
2932
|
var W, K, se, de;
|
|
2934
2933
|
const [n, i] = Z(((W = e.initialPosition) == null ? void 0 : W.x) ?? 24), [a, c] = Z(((K = e.initialPosition) == null ? void 0 : K.y) ?? 24), [l, d] = Z(((se = e.initialSize) == null ? void 0 : se.width) ?? 360), [g, h] = Z(((de = e.initialSize) == null ? void 0 : de.height) ?? 220), [b, v] = Z(!1), [m, L] = Z(!1), [f, D] = Z(!1), _ = Y(() => e.minWidth ?? 240), $ = Y(() => e.minHeight ?? 140);
|
|
2935
2934
|
let B = 0, j = 0, z = 0, w = 0;
|
|
@@ -3495,7 +3494,7 @@ const Oe = "__palette_back__";
|
|
|
3495
3494
|
function mc(e) {
|
|
3496
3495
|
return e.kind === "command" && e.rawCommand ? kl(e.rawCommand) : [e.title, e.description, e.detail].filter((n) => !!n).join(", ");
|
|
3497
3496
|
}
|
|
3498
|
-
function
|
|
3497
|
+
function as(e) {
|
|
3499
3498
|
const n = Y(() => e.host), i = () => n()(), a = on(), c = ft(() => e.open, "command-palette", {
|
|
3500
3499
|
type: "modal",
|
|
3501
3500
|
document: () => i().document
|
|
@@ -4079,52 +4078,52 @@ Te(["mousedown", "keydown"]);
|
|
|
4079
4078
|
export {
|
|
4080
4079
|
rt as A,
|
|
4081
4080
|
Ba as B,
|
|
4082
|
-
|
|
4081
|
+
as as C,
|
|
4083
4082
|
oo as D,
|
|
4084
4083
|
Wr as E,
|
|
4085
|
-
|
|
4084
|
+
is as F,
|
|
4086
4085
|
sn as G,
|
|
4087
4086
|
pr as H,
|
|
4088
|
-
|
|
4087
|
+
qc as I,
|
|
4089
4088
|
bn as J,
|
|
4090
4089
|
Er as K,
|
|
4091
|
-
|
|
4092
|
-
|
|
4090
|
+
ts as L,
|
|
4091
|
+
Zc as M,
|
|
4093
4092
|
Qa as N,
|
|
4094
4093
|
qt as O,
|
|
4095
|
-
|
|
4094
|
+
Xc as P,
|
|
4096
4095
|
vt as Q,
|
|
4097
|
-
|
|
4096
|
+
jc as R,
|
|
4098
4097
|
Ct as S,
|
|
4099
|
-
|
|
4100
|
-
|
|
4098
|
+
Nc as T,
|
|
4099
|
+
Kc as U,
|
|
4101
4100
|
sa as V,
|
|
4102
4101
|
Tr as W,
|
|
4103
4102
|
Dr as X,
|
|
4104
|
-
|
|
4103
|
+
Fc as a,
|
|
4105
4104
|
Kt as b,
|
|
4106
|
-
|
|
4107
|
-
|
|
4108
|
-
|
|
4109
|
-
|
|
4105
|
+
Uc as c,
|
|
4106
|
+
Gc as d,
|
|
4107
|
+
es as e,
|
|
4108
|
+
Qc as f,
|
|
4110
4109
|
Hi as g,
|
|
4111
4110
|
Wi as h,
|
|
4112
|
-
|
|
4111
|
+
Jc as i,
|
|
4113
4112
|
zi as j,
|
|
4114
4113
|
Ni as k,
|
|
4115
4114
|
Or as l,
|
|
4116
4115
|
Pr as m,
|
|
4117
4116
|
Rr as n,
|
|
4118
4117
|
kt as o,
|
|
4119
|
-
|
|
4118
|
+
Vc as p,
|
|
4120
4119
|
Ja as q,
|
|
4121
4120
|
Za as r,
|
|
4122
4121
|
Ga as s,
|
|
4123
|
-
|
|
4124
|
-
|
|
4122
|
+
ns as t,
|
|
4123
|
+
Yc as u,
|
|
4125
4124
|
zr as v,
|
|
4126
|
-
|
|
4127
|
-
|
|
4125
|
+
rs as w,
|
|
4126
|
+
os as x,
|
|
4128
4127
|
ao as y,
|
|
4129
4128
|
nt as z
|
|
4130
4129
|
};
|