@scalar/components 0.14.27 → 0.14.28
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/components/ScalarButton/ScalarButton.vue.d.ts +9 -12
- package/dist/components/ScalarButton/ScalarButton.vue.d.ts.map +1 -1
- package/dist/components/ScalarButton/variants.d.ts +2 -2
- package/dist/components/ScalarCard/ScalarCard.vue.d.ts +3 -3
- package/dist/components/ScalarCard/ScalarCard.vue.d.ts.map +1 -1
- package/dist/components/ScalarCard/ScalarCardFooter.vue.d.ts +3 -3
- package/dist/components/ScalarCard/ScalarCardFooter.vue.d.ts.map +1 -1
- package/dist/components/ScalarCard/ScalarCardHeader.vue.d.ts +5 -4
- package/dist/components/ScalarCard/ScalarCardHeader.vue.d.ts.map +1 -1
- package/dist/components/ScalarCard/ScalarCardSection.vue.d.ts +3 -3
- package/dist/components/ScalarCard/ScalarCardSection.vue.d.ts.map +1 -1
- package/dist/components/ScalarCard/useCardHeading.d.ts.map +1 -1
- package/dist/components/ScalarCheckbox/ScalarCheckbox.vue.d.ts +6 -11
- package/dist/components/ScalarCheckbox/ScalarCheckbox.vue.d.ts.map +1 -1
- package/dist/components/ScalarCodeBlock/ScalarCodeBlock.vue.d.ts +1 -1
- package/dist/components/ScalarCodeBlock/ScalarCodeBlock.vue.d.ts.map +1 -1
- package/dist/components/ScalarCodeBlock/ScalarCodeBlockCopy.vue.d.ts +1 -1
- package/dist/components/ScalarCodeBlock/ScalarCodeBlockCopy.vue.d.ts.map +1 -1
- package/dist/components/ScalarColorModeToggle/ScalarColorModeToggle.vue.d.ts.map +1 -1
- package/dist/components/ScalarColorModeToggle/ScalarColorModeToggleButton.vue.d.ts +4 -2
- package/dist/components/ScalarColorModeToggle/ScalarColorModeToggleButton.vue.d.ts.map +1 -1
- package/dist/components/ScalarColorModeToggle/ScalarColorModeToggleIcon.vue.d.ts.map +1 -1
- package/dist/components/ScalarCombobox/ScalarCombobox.vue.d.ts +9 -10
- package/dist/components/ScalarCombobox/ScalarCombobox.vue.d.ts.map +1 -1
- package/dist/components/ScalarCombobox/ScalarCombobox.vue.js +31 -37
- package/dist/components/ScalarCombobox/ScalarComboboxMultiselect.vue.d.ts +10 -11
- package/dist/components/ScalarCombobox/ScalarComboboxMultiselect.vue.d.ts.map +1 -1
- package/dist/components/ScalarCombobox/ScalarComboboxMultiselect.vue.js +36 -40
- package/dist/components/ScalarCombobox/ScalarComboboxOption.vue.d.ts +9 -14
- package/dist/components/ScalarCombobox/ScalarComboboxOption.vue.d.ts.map +1 -1
- package/dist/components/ScalarCombobox/ScalarComboboxOptionGroup.vue.d.ts +8 -12
- package/dist/components/ScalarCombobox/ScalarComboboxOptionGroup.vue.d.ts.map +1 -1
- package/dist/components/ScalarCombobox/ScalarComboboxOptions.vue.d.ts +8 -9
- package/dist/components/ScalarCombobox/ScalarComboboxOptions.vue.d.ts.map +1 -1
- package/dist/components/ScalarCombobox/ScalarComboboxOptions.vue.js +193 -5
- package/dist/components/ScalarCombobox/ScalarComboboxOptions.vue2.js +2 -166
- package/dist/components/ScalarCombobox/ScalarComboboxPopover.vue.d.ts +3 -56
- package/dist/components/ScalarCombobox/ScalarComboboxPopover.vue.d.ts.map +1 -1
- package/dist/components/ScalarCombobox/types.d.ts +9 -4
- package/dist/components/ScalarCombobox/types.d.ts.map +1 -1
- package/dist/components/ScalarContextMenu/ScalarContextMenu.vue.d.ts +7 -11
- package/dist/components/ScalarContextMenu/ScalarContextMenu.vue.d.ts.map +1 -1
- package/dist/components/ScalarDropdown/ScalarDropdown.vue.d.ts +2 -13
- package/dist/components/ScalarDropdown/ScalarDropdown.vue.d.ts.map +1 -1
- package/dist/components/ScalarDropdown/ScalarDropdown.vue.js +9 -9
- package/dist/components/ScalarDropdown/ScalarDropdownButton.vue.d.ts +3 -3
- package/dist/components/ScalarDropdown/ScalarDropdownButton.vue.d.ts.map +1 -1
- package/dist/components/ScalarDropdown/ScalarDropdownButton.vue.js +2 -2
- package/dist/components/ScalarDropdown/ScalarDropdownButton.vue2.js +2 -2
- package/dist/components/ScalarDropdown/ScalarDropdownDivider.vue.d.ts.map +1 -1
- package/dist/components/ScalarDropdown/ScalarDropdownItem.vue.d.ts +3 -3
- package/dist/components/ScalarDropdown/ScalarDropdownItem.vue.d.ts.map +1 -1
- package/dist/components/ScalarDropdown/ScalarDropdownItem.vue.js +1 -1
- package/dist/components/ScalarDropdown/ScalarDropdownMenu.vue.d.ts +3 -8
- package/dist/components/ScalarDropdown/ScalarDropdownMenu.vue.d.ts.map +1 -1
- package/dist/components/ScalarErrorBoundary/ScalarErrorBoundary.vue.d.ts +5 -10
- package/dist/components/ScalarErrorBoundary/ScalarErrorBoundary.vue.d.ts.map +1 -1
- package/dist/components/ScalarFileUpload/ScalarFileUpload.vue.d.ts +17 -25
- package/dist/components/ScalarFileUpload/ScalarFileUpload.vue.d.ts.map +1 -1
- package/dist/components/ScalarFileUpload/ScalarFileUploadDropTarget.vue.d.ts +3 -3
- package/dist/components/ScalarFileUpload/ScalarFileUploadDropTarget.vue.d.ts.map +1 -1
- package/dist/components/ScalarFileUpload/ScalarFileUploadError.vue.d.ts +3 -3
- package/dist/components/ScalarFileUpload/ScalarFileUploadError.vue.d.ts.map +1 -1
- package/dist/components/ScalarFileUpload/ScalarFileUploadFileList.vue.d.ts +4 -2
- package/dist/components/ScalarFileUpload/ScalarFileUploadFileList.vue.d.ts.map +1 -1
- package/dist/components/ScalarFileUpload/ScalarFileUploadInput.vue.d.ts +3 -3
- package/dist/components/ScalarFileUpload/ScalarFileUploadInput.vue.d.ts.map +1 -1
- package/dist/components/ScalarFileUpload/ScalarFileUploadInputCompact.vue.d.ts +3 -3
- package/dist/components/ScalarFileUpload/ScalarFileUploadInputCompact.vue.d.ts.map +1 -1
- package/dist/components/ScalarFileUpload/ScalarFileUploadLoading.vue.d.ts.map +1 -1
- package/dist/components/ScalarFloating/ScalarFloating.vue.d.ts +14 -35
- package/dist/components/ScalarFloating/ScalarFloating.vue.d.ts.map +1 -1
- package/dist/components/ScalarFloating/ScalarFloating.vue.js +3 -3
- package/dist/components/ScalarFloating/ScalarFloatingBackdrop.vue.d.ts +3 -3
- package/dist/components/ScalarFloating/ScalarFloatingBackdrop.vue.d.ts.map +1 -1
- package/dist/components/ScalarFloating/types.d.ts +2 -0
- package/dist/components/ScalarFloating/types.d.ts.map +1 -1
- package/dist/components/ScalarForm/ScalarForm.vue.d.ts +3 -3
- package/dist/components/ScalarForm/ScalarForm.vue.d.ts.map +1 -1
- package/dist/components/ScalarForm/ScalarFormError.vue.d.ts +5 -10
- package/dist/components/ScalarForm/ScalarFormError.vue.d.ts.map +1 -1
- package/dist/components/ScalarForm/ScalarFormField.vue.d.ts +7 -5
- package/dist/components/ScalarForm/ScalarFormField.vue.d.ts.map +1 -1
- package/dist/components/ScalarForm/ScalarFormSection.vue.d.ts.map +1 -1
- package/dist/components/ScalarHeader/ScalarHeader.vue.d.ts +2 -9
- package/dist/components/ScalarHeader/ScalarHeader.vue.d.ts.map +1 -1
- package/dist/components/ScalarHeader/ScalarHeaderButton.vue.d.ts +3 -6
- package/dist/components/ScalarHeader/ScalarHeaderButton.vue.d.ts.map +1 -1
- package/dist/components/ScalarHotkey/ScalarHotkey.vue.d.ts.map +1 -1
- package/dist/components/ScalarIcon/IconList.vue.d.ts.map +1 -1
- package/dist/components/ScalarIcon/ScalarIcon.vue.d.ts.map +1 -1
- package/dist/components/ScalarIcon/ScalarIconLegacyAdapter.vue.d.ts.map +1 -1
- package/dist/components/ScalarIcon/utils/index.d.ts.map +1 -1
- package/dist/components/ScalarIcon/variants.d.ts +2 -2
- package/dist/components/ScalarIconButton/ScalarIconButton.vue.d.ts +1 -3
- package/dist/components/ScalarIconButton/ScalarIconButton.vue.d.ts.map +1 -1
- package/dist/components/ScalarIconButton/variants.d.ts +2 -2
- package/dist/components/ScalarListbox/ScalarListbox.vue.d.ts +8 -20
- package/dist/components/ScalarListbox/ScalarListbox.vue.d.ts.map +1 -1
- package/dist/components/ScalarListbox/ScalarListbox.vue.js +29 -24
- package/dist/components/ScalarListbox/ScalarListboxCheckbox.vue.d.ts +1 -1
- package/dist/components/ScalarListbox/ScalarListboxCheckbox.vue.d.ts.map +1 -1
- package/dist/components/ScalarListbox/ScalarListboxItem.vue.d.ts.map +1 -1
- package/dist/components/ScalarLoading/ScalarLoading.vue.d.ts.map +1 -1
- package/dist/components/ScalarMarkdown/ScalarMarkdown.vue.d.ts +1 -3
- package/dist/components/ScalarMarkdown/ScalarMarkdown.vue.d.ts.map +1 -1
- package/dist/components/ScalarMarkdown/ScalarMarkdownSummary.vue.d.ts +11 -45
- package/dist/components/ScalarMarkdown/ScalarMarkdownSummary.vue.d.ts.map +1 -1
- package/dist/components/ScalarMarkdown/samples/document.d.ts +1 -1
- package/dist/components/ScalarMenu/ScalarMenu.vue.d.ts +12 -27
- package/dist/components/ScalarMenu/ScalarMenu.vue.d.ts.map +1 -1
- package/dist/components/ScalarMenu/ScalarMenuButton.vue.d.ts +3 -9
- package/dist/components/ScalarMenu/ScalarMenuButton.vue.d.ts.map +1 -1
- package/dist/components/ScalarMenu/ScalarMenuLink.vue.d.ts +5 -10
- package/dist/components/ScalarMenu/ScalarMenuLink.vue.d.ts.map +1 -1
- package/dist/components/ScalarMenu/ScalarMenuProduct.vue.d.ts +5 -10
- package/dist/components/ScalarMenu/ScalarMenuProduct.vue.d.ts.map +1 -1
- package/dist/components/ScalarMenu/ScalarMenuProducts.vue.d.ts.map +1 -1
- package/dist/components/ScalarMenu/ScalarMenuResources.vue.d.ts.map +1 -1
- package/dist/components/ScalarMenu/ScalarMenuSection.vue.d.ts +5 -10
- package/dist/components/ScalarMenu/ScalarMenuSection.vue.d.ts.map +1 -1
- package/dist/components/ScalarMenu/ScalarMenuTeamPicker.vue.d.ts.map +1 -1
- package/dist/components/ScalarMenu/ScalarMenuTeamProfile.vue.d.ts.map +1 -1
- package/dist/components/ScalarModal/ScalarModal.vue.d.ts +5 -4
- package/dist/components/ScalarModal/ScalarModal.vue.d.ts.map +1 -1
- package/dist/components/ScalarPopover/ScalarPopover.vue.d.ts +3 -9
- package/dist/components/ScalarPopover/ScalarPopover.vue.d.ts.map +1 -1
- package/dist/components/ScalarSearchInput/ScalarSearchInput.vue.d.ts +6 -6
- package/dist/components/ScalarSearchInput/ScalarSearchInput.vue.d.ts.map +1 -1
- package/dist/components/ScalarSearchResults/ScalarSearchResultItem.vue.d.ts +11 -13
- package/dist/components/ScalarSearchResults/ScalarSearchResultItem.vue.d.ts.map +1 -1
- package/dist/components/ScalarSearchResults/ScalarSearchResultList.vue.d.ts +7 -11
- package/dist/components/ScalarSearchResults/ScalarSearchResultList.vue.d.ts.map +1 -1
- package/dist/components/ScalarSidebar/ScalarSidebar.vue.d.ts +3 -3
- package/dist/components/ScalarSidebar/ScalarSidebar.vue.d.ts.map +1 -1
- package/dist/components/ScalarSidebar/ScalarSidebarButton.vue.d.ts +2 -2
- package/dist/components/ScalarSidebar/ScalarSidebarButton.vue.d.ts.map +1 -1
- package/dist/components/ScalarSidebar/ScalarSidebarFooter.vue.d.ts +2 -9
- package/dist/components/ScalarSidebar/ScalarSidebarFooter.vue.d.ts.map +1 -1
- package/dist/components/ScalarSidebar/ScalarSidebarGroup.vue.d.ts +6 -20
- package/dist/components/ScalarSidebar/ScalarSidebarGroup.vue.d.ts.map +1 -1
- package/dist/components/ScalarSidebar/ScalarSidebarGroupToggle.vue.d.ts +3 -12
- package/dist/components/ScalarSidebar/ScalarSidebarGroupToggle.vue.d.ts.map +1 -1
- package/dist/components/ScalarSidebar/ScalarSidebarIndent.vue.d.ts.map +1 -1
- package/dist/components/ScalarSidebar/ScalarSidebarItem.vue.d.ts +2 -2
- package/dist/components/ScalarSidebar/ScalarSidebarItem.vue.d.ts.map +1 -1
- package/dist/components/ScalarSidebar/ScalarSidebarItems.vue.d.ts +3 -3
- package/dist/components/ScalarSidebar/ScalarSidebarItems.vue.d.ts.map +1 -1
- package/dist/components/ScalarSidebar/ScalarSidebarNestedItems.vue.d.ts +6 -23
- package/dist/components/ScalarSidebar/ScalarSidebarNestedItems.vue.d.ts.map +1 -1
- package/dist/components/ScalarSidebar/ScalarSidebarPlayground.vue.d.ts +14 -17
- package/dist/components/ScalarSidebar/ScalarSidebarPlayground.vue.d.ts.map +1 -1
- package/dist/components/ScalarSidebar/ScalarSidebarSearchButton.vue.d.ts +7 -11
- package/dist/components/ScalarSidebar/ScalarSidebarSearchButton.vue.d.ts.map +1 -1
- package/dist/components/ScalarSidebar/ScalarSidebarSearchInput.vue.d.ts +4 -4
- package/dist/components/ScalarSidebar/ScalarSidebarSearchInput.vue.d.ts.map +1 -1
- package/dist/components/ScalarSidebar/ScalarSidebarSection.vue.d.ts +2 -7
- package/dist/components/ScalarSidebar/ScalarSidebarSection.vue.d.ts.map +1 -1
- package/dist/components/ScalarSidebar/ScalarSidebarSpacer.vue.d.ts.map +1 -1
- package/dist/components/ScalarSidebar/useSidebarGroups.d.ts.map +1 -1
- package/dist/components/ScalarSidebar/useSidebarNestedItems.d.ts +3 -1
- package/dist/components/ScalarSidebar/useSidebarNestedItems.d.ts.map +1 -1
- package/dist/components/ScalarTeleport/ScalarTeleport.vue.d.ts +3 -6
- package/dist/components/ScalarTeleport/ScalarTeleport.vue.d.ts.map +1 -1
- package/dist/components/ScalarTeleport/ScalarTeleportRoot.vue.d.ts +3 -6
- package/dist/components/ScalarTeleport/ScalarTeleportRoot.vue.d.ts.map +1 -1
- package/dist/components/ScalarTeleport/useTeleport.d.ts.map +1 -1
- package/dist/components/ScalarTextArea/ScalarTextArea.vue.d.ts +2 -2
- package/dist/components/ScalarTextArea/ScalarTextArea.vue.d.ts.map +1 -1
- package/dist/components/ScalarTextInput/ScalarTextInput.vue.d.ts +11 -8
- package/dist/components/ScalarTextInput/ScalarTextInput.vue.d.ts.map +1 -1
- package/dist/components/ScalarToggle/ScalarToggle.vue.d.ts +1 -1
- package/dist/components/ScalarToggle/ScalarToggle.vue.d.ts.map +1 -1
- package/dist/components/ScalarTooltip/ScalarHotkeyTooltip.vue.d.ts +4 -4
- package/dist/components/ScalarTooltip/ScalarHotkeyTooltip.vue.d.ts.map +1 -1
- package/dist/components/ScalarTooltip/ScalarTooltip.vue.d.ts +3 -3
- package/dist/components/ScalarTooltip/ScalarTooltip.vue.d.ts.map +1 -1
- package/dist/components/ScalarTooltip/constants.d.ts.map +1 -1
- package/dist/components/ScalarVirtualText/ScalarVirtualText.vue.d.ts +1 -1
- package/dist/components/ScalarVirtualText/ScalarVirtualText.vue.d.ts.map +1 -1
- package/dist/docs/useBindCx/MockComponent.d.ts +2 -2
- package/dist/style.css +1 -1
- package/package.json +8 -8
- package/dist/components/ScalarCombobox/ScalarComboboxOptions.vue3.js +0 -4
|
@@ -2,22 +2,17 @@ type __VLS_Props = {
|
|
|
2
2
|
active?: boolean;
|
|
3
3
|
selected?: boolean;
|
|
4
4
|
};
|
|
5
|
-
declare
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
}): any;
|
|
12
|
-
};
|
|
13
|
-
refs: {};
|
|
14
|
-
rootEl: HTMLLIElement;
|
|
5
|
+
declare var __VLS_1: {
|
|
6
|
+
active: boolean;
|
|
7
|
+
selected: boolean;
|
|
8
|
+
};
|
|
9
|
+
type __VLS_Slots = {} & {
|
|
10
|
+
default?: (props: typeof __VLS_1) => any;
|
|
15
11
|
};
|
|
16
|
-
|
|
17
|
-
declare const
|
|
18
|
-
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
12
|
+
declare const __VLS_component: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
13
|
+
declare const _default: __VLS_WithSlots<typeof __VLS_component, __VLS_Slots>;
|
|
19
14
|
export default _default;
|
|
20
|
-
type
|
|
15
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
21
16
|
new (): {
|
|
22
17
|
$slots: S;
|
|
23
18
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ScalarComboboxOption.vue.d.ts","sourceRoot":"","sources":["../../../src/components/ScalarCombobox/ScalarComboboxOption.vue"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"ScalarComboboxOption.vue.d.ts","sourceRoot":"","sources":["../../../src/components/ScalarCombobox/ScalarComboboxOption.vue"],"names":[],"mappings":"AAwCA,KAAK,WAAW,GAAG;IACjB,MAAM,CAAC,EAAE,OAAO,CAAA;IAChB,QAAQ,CAAC,EAAE,OAAO,CAAA;CACnB,CAAC;AAuCF,QAAA,IAAI,OAAO;;;CAAW,CAAE;AACxB,KAAK,WAAW,GAAG,EAAE,GACnB;IAAE,OAAO,CAAC,EAAE,CAAC,KAAK,EAAE,OAAO,OAAO,KAAK,GAAG,CAAA;CAAE,CAAC;AAqB/C,QAAA,MAAM,eAAe,kSAMnB,CAAC;wBACkB,eAAe,CAAC,OAAO,eAAe,EAAE,WAAW,CAAC;AAAzE,wBAA0E;AAQ1E,KAAK,eAAe,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IAChC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KAEV,CAAA;CACD,CAAC"}
|
|
@@ -2,20 +2,16 @@ type __VLS_Props = {
|
|
|
2
2
|
id?: string;
|
|
3
3
|
hidden?: boolean;
|
|
4
4
|
};
|
|
5
|
-
declare
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
};
|
|
11
|
-
refs: {};
|
|
12
|
-
rootEl: HTMLDivElement;
|
|
5
|
+
declare var __VLS_1: {}, __VLS_3: {};
|
|
6
|
+
type __VLS_Slots = {} & {
|
|
7
|
+
label?: (props: typeof __VLS_1) => any;
|
|
8
|
+
} & {
|
|
9
|
+
default?: (props: typeof __VLS_3) => any;
|
|
13
10
|
};
|
|
14
|
-
|
|
15
|
-
declare const
|
|
16
|
-
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
11
|
+
declare const __VLS_component: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
12
|
+
declare const _default: __VLS_WithSlots<typeof __VLS_component, __VLS_Slots>;
|
|
17
13
|
export default _default;
|
|
18
|
-
type
|
|
14
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
19
15
|
new (): {
|
|
20
16
|
$slots: S;
|
|
21
17
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ScalarComboboxOptionGroup.vue.d.ts","sourceRoot":"","sources":["../../../src/components/ScalarCombobox/ScalarComboboxOptionGroup.vue"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"ScalarComboboxOptionGroup.vue.d.ts","sourceRoot":"","sources":["../../../src/components/ScalarCombobox/ScalarComboboxOptionGroup.vue"],"names":[],"mappings":"AA2BA,KAAK,WAAW,GAAG;IACjB,EAAE,CAAC,EAAE,MAAM,CAAA;IACX,MAAM,CAAC,EAAE,OAAO,CAAA;CACjB,CAAC;AAkCF,QAAA,IAAI,OAAO,IAAU,EAAE,OAAO,IAAW,CAAE;AAC3C,KAAK,WAAW,GAAG,EAAE,GACnB;IAAE,KAAK,CAAC,EAAE,CAAC,KAAK,EAAE,OAAO,OAAO,KAAK,GAAG,CAAA;CAAE,GAC1C;IAAE,OAAO,CAAC,EAAE,CAAC,KAAK,EAAE,OAAO,OAAO,KAAK,GAAG,CAAA;CAAE,CAAC;AAmB/C,QAAA,MAAM,eAAe,kSAMnB,CAAC;wBACkB,eAAe,CAAC,OAAO,eAAe,EAAE,WAAW,CAAC;AAAzE,wBAA0E;AAQ1E,KAAK,eAAe,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IAChC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KAEV,CAAA;CACD,CAAC"}
|
|
@@ -1,21 +1,20 @@
|
|
|
1
1
|
import { type ComboboxSlots, type Option, type OptionGroup, type OptionsOrGroups } from './types.js';
|
|
2
2
|
declare const _default: <O extends Option = Option, G extends OptionGroup<O> = OptionGroup<O>>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: __VLS_PrettifyLocal<Pick<NonNullable<Awaited<typeof __VLS_setup>>, "attrs" | "emit" | "slots">>, __VLS_expose?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
|
|
3
3
|
props: __VLS_PrettifyLocal<Pick<Partial<{}> & Omit<{
|
|
4
|
+
readonly onAdd?: (() => any) | undefined;
|
|
4
5
|
readonly "onUpdate:modelValue"?: ((value: O[]) => any) | undefined;
|
|
5
|
-
} & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, never>, "onUpdate:modelValue"
|
|
6
|
-
modelValue?: O[];
|
|
7
|
-
} & {
|
|
6
|
+
} & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, never>, "onUpdate:modelValue" | "onAdd"> & ({
|
|
8
7
|
options: OptionsOrGroups<O, G>;
|
|
9
8
|
placeholder?: string;
|
|
10
9
|
multiselect?: boolean;
|
|
11
|
-
}
|
|
10
|
+
} & {
|
|
11
|
+
modelValue?: O[];
|
|
12
|
+
}) & Partial<{}>> & import("vue").PublicProps;
|
|
12
13
|
expose(exposed: import("vue").ShallowUnwrapRef<{}>): void;
|
|
13
14
|
attrs: any;
|
|
14
|
-
slots:
|
|
15
|
-
emit: (evt: "update:modelValue", value: O[]) => void;
|
|
16
|
-
}>) => import("vue").VNode
|
|
17
|
-
[key: string]: any;
|
|
18
|
-
}> & {
|
|
15
|
+
slots: Omit<ComboboxSlots<O, G>, "default">;
|
|
16
|
+
emit: ((evt: "add") => void) & ((evt: "update:modelValue", value: O[]) => void);
|
|
17
|
+
}>) => import("vue").VNode & {
|
|
19
18
|
__ctx?: Awaited<typeof __VLS_setup>;
|
|
20
19
|
};
|
|
21
20
|
export default _default;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ScalarComboboxOptions.vue.d.ts","sourceRoot":"","sources":["../../../src/components/ScalarCombobox/ScalarComboboxOptions.vue"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"ScalarComboboxOptions.vue.d.ts","sourceRoot":"","sources":["../../../src/components/ScalarCombobox/ScalarComboboxOptions.vue"],"names":[],"mappings":"AAkRA,OAAO,EAEL,KAAK,aAAa,EAClB,KAAK,MAAM,EACX,KAAK,WAAW,EAChB,KAAK,eAAe,EAErB,MAAM,SAAS,CAAA;yBAEC,CAAC,SAAS,MAAM,GAAG,MAAM,EAAE,CAAC,SAAS,WAAW,CAAC,CAAC,CAAC,GAAG,WAAW,CAAC,CAAC,CAAC,EACpF,aAAa,WAAW,CAAC,OAAO,CAAC,OAAO,WAAW,CAAC,CAAC,CAAC,OAAO,CAAC,EAC9D,YAAY,mBAAmB,CAAC,IAAI,CAAC,WAAW,CAAC,OAAO,CAAC,OAAO,WAAW,CAAC,CAAC,EAAE,OAAO,GAAG,MAAM,GAAG,OAAO,CAAC,CAAC,EAC3G,eAAe,WAAW,CAAC,OAAO,CAAC,OAAO,WAAW,CAAC,CAAC,CAAC,QAAQ,CAAC,EACjE;WA+bO,mBAAmB,CAAC;;;;iBA7bjB,eAAe,CAAC,CAAC,EAAE,CAAC,CAAC;sBAChB,MAAM;sBACN,OAAO;;qBAuKV,CAAC,EAAE;SAoRiD,OAAO,IAAsB,CAAC,4BAA2B;oBACzG,OAAO,KAAK,EAAE,gBAAgB,CAAC,EAAE,CAAC,GAAG,IAAI;WAClD,GAAG;;UAEJ,yEAAoC;EAEvC,KACQ,OAAO,KAAK,EAAE,KAAK,GAAG;IAAE,KAAK,CAAC,EAAE,OAAO,CAAC,OAAO,WAAW,CAAC,CAAA;CAAE;AA1czE,wBA0c4E;AAC5E,KAAK,mBAAmB,CAAC,CAAC,IAAI;KAAG,CAAC,IAAI,MAAM,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;CAAG,GAAG,EAAE,CAAC"}
|
|
@@ -1,7 +1,195 @@
|
|
|
1
|
-
import
|
|
2
|
-
import "
|
|
3
|
-
import
|
|
4
|
-
|
|
1
|
+
import { defineComponent as Z, mergeModels as G, useModel as _, useSlots as ee, useId as K, computed as x, ref as h, onMounted as q, watch as te, createElementBlock as m, openBlock as a, Fragment as f, createElementVNode as g, withDirectives as F, createVNode as V, unref as C, withKeys as S, withModifiers as w, vModelText as le, createBlock as B, createCommentVNode as P, renderList as U, withCtx as M, renderSlot as N, toDisplayString as j, createTextVNode as oe, vShow as ne } from "vue";
|
|
2
|
+
import { ScalarIconMagnifyingGlass as ie, ScalarIconPlus as ae } from "@scalar/icons";
|
|
3
|
+
import H from "./ScalarComboboxOption.vue.js";
|
|
4
|
+
import se from "./ScalarComboboxOptionGroup.vue.js";
|
|
5
|
+
import { isGroups as J } from "./types.js";
|
|
6
|
+
import de from "../ScalarListbox/ScalarListboxCheckbox.vue.js";
|
|
7
|
+
const ue = { class: "relative flex" }, re = ["aria-activedescendant", "placeholder"], ve = ["aria-multiselectable"], ce = { class: "inline-block min-w-0 flex-1 truncate text-c-1" }, we = /* @__PURE__ */ Z({
|
|
8
|
+
inheritAttrs: !1,
|
|
9
|
+
__name: "ScalarComboboxOptions",
|
|
10
|
+
props: /* @__PURE__ */ G({
|
|
11
|
+
options: {},
|
|
12
|
+
placeholder: {},
|
|
13
|
+
multiselect: { type: Boolean }
|
|
14
|
+
}, {
|
|
15
|
+
modelValue: { default: [] },
|
|
16
|
+
modelModifiers: {}
|
|
17
|
+
}),
|
|
18
|
+
emits: /* @__PURE__ */ G(["add"], ["update:modelValue"]),
|
|
19
|
+
setup(A, { emit: Q }) {
|
|
20
|
+
var D;
|
|
21
|
+
const s = A, i = _(A, "modelValue"), R = Q, I = ee(), k = `scalar-combobox-items-${K()}`, p = { id: `${K()}-add`, label: "Add a new option" };
|
|
22
|
+
function b(t) {
|
|
23
|
+
return `${k}-${t.id}`;
|
|
24
|
+
}
|
|
25
|
+
const v = x(
|
|
26
|
+
() => J(s.options) ? s.options.flatMap((t) => t.options) : s.options
|
|
27
|
+
), W = x(
|
|
28
|
+
() => J(s.options) ? s.options : (
|
|
29
|
+
/*
|
|
30
|
+
We know G is an unextended OptionGroup<O> here because of the
|
|
31
|
+
structure of the component props so we can cast it to G
|
|
32
|
+
*/
|
|
33
|
+
[{ label: "", options: s.options }]
|
|
34
|
+
)
|
|
35
|
+
// G is OptionGroup<O>
|
|
36
|
+
), d = h(""), o = h(((D = i.value) == null ? void 0 : D[0]) ?? v.value[0]);
|
|
37
|
+
q(async () => {
|
|
38
|
+
var e;
|
|
39
|
+
d.value = "", o.value = ((e = i.value) == null ? void 0 : e[0]) ?? v.value[0], i.value[0] && setTimeout(() => {
|
|
40
|
+
var l;
|
|
41
|
+
const c = i.value[0];
|
|
42
|
+
c && ((l = document == null ? void 0 : document.getElementById(b(c))) == null || l.scrollIntoView({ block: "nearest" }));
|
|
43
|
+
}, 10);
|
|
44
|
+
}), te(
|
|
45
|
+
() => d.value,
|
|
46
|
+
() => o.value = E.value[0]
|
|
47
|
+
);
|
|
48
|
+
const y = x(
|
|
49
|
+
() => d.value === "" ? v.value : v.value.filter((t) => t.label.toLowerCase().includes(d.value.toLowerCase()))
|
|
50
|
+
), E = x(
|
|
51
|
+
() => I.add ? [...y.value, p] : y.value
|
|
52
|
+
);
|
|
53
|
+
function T(t) {
|
|
54
|
+
if (t) {
|
|
55
|
+
if (t.id === p.id) {
|
|
56
|
+
O();
|
|
57
|
+
return;
|
|
58
|
+
}
|
|
59
|
+
s.multiselect ? i.value.some((e) => e.id === t.id) ? i.value = i.value.filter((e) => e.id !== t.id) : i.value = [
|
|
60
|
+
...i.value,
|
|
61
|
+
v.value.find((e) => e.id === t.id)
|
|
62
|
+
] : i.value = [v.value.find((e) => e.id === t.id)];
|
|
63
|
+
}
|
|
64
|
+
}
|
|
65
|
+
function L(t) {
|
|
66
|
+
var $;
|
|
67
|
+
const e = E.value, l = e.findIndex((n) => {
|
|
68
|
+
var u;
|
|
69
|
+
return n.id === ((u = o.value) == null ? void 0 : u.id);
|
|
70
|
+
}) + t;
|
|
71
|
+
l < 0 || l > e.length - 1 || (o.value = e[l], o.value && (($ = document == null ? void 0 : document.getElementById(b(o.value))) == null || $.scrollIntoView({
|
|
72
|
+
behavior: "smooth",
|
|
73
|
+
block: "nearest"
|
|
74
|
+
})));
|
|
75
|
+
}
|
|
76
|
+
function O() {
|
|
77
|
+
R("add"), d.value = "";
|
|
78
|
+
}
|
|
79
|
+
const z = h(null);
|
|
80
|
+
return q(() => setTimeout(() => {
|
|
81
|
+
var t;
|
|
82
|
+
return (t = z.value) == null ? void 0 : t.focus();
|
|
83
|
+
}, 0)), (t, e) => {
|
|
84
|
+
var c;
|
|
85
|
+
return a(), m(f, null, [
|
|
86
|
+
g("div", ue, [
|
|
87
|
+
V(C(ie), { class: "pointer-events-none absolute left-2.5 top-1/2 -translate-y-1/2 text-c-3 size-4" }),
|
|
88
|
+
F(g("input", {
|
|
89
|
+
"onUpdate:modelValue": e[0] || (e[0] = (l) => d.value = l),
|
|
90
|
+
ref_key: "input",
|
|
91
|
+
ref: z,
|
|
92
|
+
"aria-activedescendant": o.value ? b(o.value) : void 0,
|
|
93
|
+
"aria-autocomplete": "list",
|
|
94
|
+
"aria-controls": k,
|
|
95
|
+
class: "min-w-0 flex-1 rounded border-0 py-2.5 pl-8 pr-3 leading-none text-c-1 -outline-offset-1",
|
|
96
|
+
"data-1p-ignore": "",
|
|
97
|
+
placeholder: t.placeholder,
|
|
98
|
+
role: "combobox",
|
|
99
|
+
tabindex: "0",
|
|
100
|
+
type: "text",
|
|
101
|
+
onKeydown: [
|
|
102
|
+
e[1] || (e[1] = S(w((l) => L(1), ["prevent"]), ["down"])),
|
|
103
|
+
e[2] || (e[2] = S(w((l) => o.value && T(o.value), ["prevent"]), ["enter"])),
|
|
104
|
+
e[3] || (e[3] = S(w((l) => L(-1), ["prevent"]), ["up"]))
|
|
105
|
+
]
|
|
106
|
+
}, null, 40, re), [
|
|
107
|
+
[le, d.value]
|
|
108
|
+
])
|
|
109
|
+
]),
|
|
110
|
+
F(g("ul", {
|
|
111
|
+
id: k,
|
|
112
|
+
"aria-multiselectable": t.multiselect,
|
|
113
|
+
class: "border-t p-0.75 custom-scroll overscroll-contain flex-1 min-h-0",
|
|
114
|
+
role: "listbox",
|
|
115
|
+
tabindex: "-1"
|
|
116
|
+
}, [
|
|
117
|
+
(a(!0), m(f, null, U(W.value, (l, $) => (a(), B(se, {
|
|
118
|
+
id: `${k}-group-${$}`,
|
|
119
|
+
key: $,
|
|
120
|
+
hidden: (
|
|
121
|
+
// Only show the group label if there are some results
|
|
122
|
+
!l.options.some((n) => y.value.some((u) => u.id === n.id)) || // And it has a label
|
|
123
|
+
!l.label
|
|
124
|
+
)
|
|
125
|
+
}, {
|
|
126
|
+
label: M(() => [
|
|
127
|
+
t.$slots.group ? N(t.$slots, "group", {
|
|
128
|
+
key: 0,
|
|
129
|
+
group: l
|
|
130
|
+
}) : (a(), m(f, { key: 1 }, [
|
|
131
|
+
oe(j(l.label), 1)
|
|
132
|
+
], 64))
|
|
133
|
+
]),
|
|
134
|
+
default: M(() => [
|
|
135
|
+
(a(!0), m(f, null, U(y.value, (n) => {
|
|
136
|
+
var u;
|
|
137
|
+
return a(), m(f, {
|
|
138
|
+
key: n.id
|
|
139
|
+
}, [
|
|
140
|
+
l.options.some((r) => r.id === n.id) ? (a(), B(H, {
|
|
141
|
+
key: 0,
|
|
142
|
+
id: b(n),
|
|
143
|
+
active: ((u = o.value) == null ? void 0 : u.id) === n.id,
|
|
144
|
+
selected: i.value.some((r) => r.id === n.id),
|
|
145
|
+
onClick: (r) => T(n),
|
|
146
|
+
onMousedown: e[4] || (e[4] = w(() => {
|
|
147
|
+
}, ["prevent"])),
|
|
148
|
+
onMouseenter: (r) => o.value = n
|
|
149
|
+
}, {
|
|
150
|
+
default: M(({ active: r, selected: X }) => [
|
|
151
|
+
t.$slots.option ? N(t.$slots, "option", {
|
|
152
|
+
key: 0,
|
|
153
|
+
option: n,
|
|
154
|
+
active: r,
|
|
155
|
+
selected: X
|
|
156
|
+
}) : (a(), m(f, { key: 1 }, [
|
|
157
|
+
V(C(de), {
|
|
158
|
+
selected: i.value.some((Y) => Y.id === n.id),
|
|
159
|
+
multiselect: t.multiselect
|
|
160
|
+
}, null, 8, ["selected", "multiselect"]),
|
|
161
|
+
g("span", ce, j(n.label), 1)
|
|
162
|
+
], 64))
|
|
163
|
+
]),
|
|
164
|
+
_: 2
|
|
165
|
+
}, 1032, ["id", "active", "selected", "onClick", "onMouseenter"])) : P("", !0)
|
|
166
|
+
], 64);
|
|
167
|
+
}), 128))
|
|
168
|
+
]),
|
|
169
|
+
_: 2
|
|
170
|
+
}, 1032, ["id", "hidden"]))), 128)),
|
|
171
|
+
I.add ? (a(), B(H, {
|
|
172
|
+
key: 0,
|
|
173
|
+
id: b(p),
|
|
174
|
+
active: ((c = o.value) == null ? void 0 : c.id) === p.id,
|
|
175
|
+
onClick: O,
|
|
176
|
+
onMousedown: e[5] || (e[5] = w(() => {
|
|
177
|
+
}, ["prevent"])),
|
|
178
|
+
onMouseenter: e[6] || (e[6] = (l) => o.value = p)
|
|
179
|
+
}, {
|
|
180
|
+
default: M(({ active: l }) => [
|
|
181
|
+
V(C(ae), { class: "size-4 p-px" }),
|
|
182
|
+
N(t.$slots, "add", { active: l })
|
|
183
|
+
]),
|
|
184
|
+
_: 3
|
|
185
|
+
}, 8, ["id", "active"])) : P("", !0)
|
|
186
|
+
], 8, ve), [
|
|
187
|
+
[ne, y.value.length || I.add]
|
|
188
|
+
])
|
|
189
|
+
], 64);
|
|
190
|
+
};
|
|
191
|
+
}
|
|
192
|
+
});
|
|
5
193
|
export {
|
|
6
|
-
|
|
194
|
+
we as default
|
|
7
195
|
};
|
|
@@ -1,168 +1,4 @@
|
|
|
1
|
-
import
|
|
2
|
-
import { ScalarIconMagnifyingGlass as X } from "@scalar/icons";
|
|
3
|
-
import Y from "./ScalarComboboxOption.vue.js";
|
|
4
|
-
import Z from "./ScalarComboboxOptionGroup.vue.js";
|
|
5
|
-
import { isGroups as K } from "./types.js";
|
|
6
|
-
import _ from "../ScalarListbox/ScalarListboxCheckbox.vue.js";
|
|
7
|
-
const ee = { class: "relative flex" }, te = ["aria-activedescendant", "placeholder"], le = ["aria-multiselectable"], oe = { class: "inline-block min-w-0 flex-1 truncate text-c-1" }, de = /* @__PURE__ */ F({
|
|
8
|
-
inheritAttrs: !1,
|
|
9
|
-
__name: "ScalarComboboxOptions",
|
|
10
|
-
props: /* @__PURE__ */ U({
|
|
11
|
-
options: {},
|
|
12
|
-
placeholder: {},
|
|
13
|
-
multiselect: { type: Boolean }
|
|
14
|
-
}, {
|
|
15
|
-
modelValue: { default: [] },
|
|
16
|
-
modelModifiers: {}
|
|
17
|
-
}),
|
|
18
|
-
emits: ["update:modelValue"],
|
|
19
|
-
setup(M) {
|
|
20
|
-
var S;
|
|
21
|
-
const u = M, i = j(M, "modelValue"), b = `scalar-combobox-items-${H()}`;
|
|
22
|
-
function $(e) {
|
|
23
|
-
return `${b}-${e.id}`;
|
|
24
|
-
}
|
|
25
|
-
const d = g(
|
|
26
|
-
() => K(u.options) ? u.options.flatMap((e) => e.options) : u.options
|
|
27
|
-
), O = g(
|
|
28
|
-
() => K(u.options) ? u.options : (
|
|
29
|
-
/*
|
|
30
|
-
We know G is an unextended OptionGroup<O> here because of the
|
|
31
|
-
structure of the component props so we can cast it to G
|
|
32
|
-
*/
|
|
33
|
-
[{ label: "", options: u.options }]
|
|
34
|
-
)
|
|
35
|
-
// G is OptionGroup<O>
|
|
36
|
-
), v = h(""), s = h(((S = i.value) == null ? void 0 : S[0]) ?? d.value[0]);
|
|
37
|
-
E(async () => {
|
|
38
|
-
var t;
|
|
39
|
-
v.value = "", s.value = ((t = i.value) == null ? void 0 : t[0]) ?? d.value[0], i.value[0] && setTimeout(() => {
|
|
40
|
-
var a;
|
|
41
|
-
const o = i.value[0];
|
|
42
|
-
o && ((a = document == null ? void 0 : document.getElementById($(o))) == null || a.scrollIntoView({ block: "nearest" }));
|
|
43
|
-
}, 10);
|
|
44
|
-
}), J(
|
|
45
|
-
() => v.value,
|
|
46
|
-
() => s.value = p.value[0]
|
|
47
|
-
);
|
|
48
|
-
const p = g(
|
|
49
|
-
() => v.value === "" ? d.value : d.value.filter((e) => e.label.toLowerCase().includes(v.value.toLowerCase()))
|
|
50
|
-
);
|
|
51
|
-
function V(e) {
|
|
52
|
-
e && (u.multiselect ? i.value.some((t) => t.id === e.id) ? i.value = i.value.filter((t) => t.id !== e.id) : i.value = [
|
|
53
|
-
...i.value,
|
|
54
|
-
d.value.find((t) => t.id === e.id)
|
|
55
|
-
] : i.value = [d.value.find((t) => t.id === e.id)]);
|
|
56
|
-
}
|
|
57
|
-
function C(e) {
|
|
58
|
-
var l;
|
|
59
|
-
const t = p.value, a = t.findIndex((c) => {
|
|
60
|
-
var n;
|
|
61
|
-
return c.id === ((n = s.value) == null ? void 0 : n.id);
|
|
62
|
-
}) + e;
|
|
63
|
-
a < 0 || a > t.length - 1 || (s.value = t[a], s.value && ((l = document == null ? void 0 : document.getElementById($(s.value))) == null || l.scrollIntoView({
|
|
64
|
-
behavior: "smooth",
|
|
65
|
-
block: "nearest"
|
|
66
|
-
})));
|
|
67
|
-
}
|
|
68
|
-
const B = h(null);
|
|
69
|
-
return E(() => setTimeout(() => {
|
|
70
|
-
var e;
|
|
71
|
-
return (e = B.value) == null ? void 0 : e.focus();
|
|
72
|
-
}, 0)), (e, t) => (r(), m(f, null, [
|
|
73
|
-
y("div", ee, [
|
|
74
|
-
T(L(X), { class: "pointer-events-none absolute left-2.5 search-icon text-c-3 size-4" }),
|
|
75
|
-
N(y("input", {
|
|
76
|
-
"onUpdate:modelValue": t[0] || (t[0] = (o) => v.value = o),
|
|
77
|
-
ref_key: "input",
|
|
78
|
-
ref: B,
|
|
79
|
-
"aria-activedescendant": s.value ? $(s.value) : void 0,
|
|
80
|
-
"aria-autocomplete": "list",
|
|
81
|
-
"aria-controls": b,
|
|
82
|
-
class: "min-w-0 flex-1 rounded border-0 py-2.5 pl-8 pr-3 leading-none text-c-1 -outline-offset-1",
|
|
83
|
-
"data-1p-ignore": "",
|
|
84
|
-
placeholder: e.placeholder,
|
|
85
|
-
role: "combobox",
|
|
86
|
-
tabindex: "0",
|
|
87
|
-
type: "text",
|
|
88
|
-
onKeydown: [
|
|
89
|
-
t[1] || (t[1] = x(k((o) => C(1), ["prevent"]), ["down"])),
|
|
90
|
-
t[2] || (t[2] = x(k((o) => s.value && V(s.value), ["prevent"]), ["enter"])),
|
|
91
|
-
t[3] || (t[3] = x(k((o) => C(-1), ["prevent"]), ["up"]))
|
|
92
|
-
]
|
|
93
|
-
}, null, 40, te), [
|
|
94
|
-
[P, v.value]
|
|
95
|
-
])
|
|
96
|
-
]),
|
|
97
|
-
N(y("ul", {
|
|
98
|
-
id: b,
|
|
99
|
-
"aria-multiselectable": e.multiselect,
|
|
100
|
-
class: "border-t p-0.75 custom-scroll overscroll-contain flex-1 min-h-0",
|
|
101
|
-
role: "listbox",
|
|
102
|
-
tabindex: "-1"
|
|
103
|
-
}, [
|
|
104
|
-
w(e.$slots, "before", {}, void 0, !0),
|
|
105
|
-
(r(!0), m(f, null, A(O.value, (o, a) => (r(), D(Z, {
|
|
106
|
-
id: `${b}-group-${a}`,
|
|
107
|
-
key: a,
|
|
108
|
-
hidden: (
|
|
109
|
-
// Only show the group label if there are some results
|
|
110
|
-
!o.options.some((l) => p.value.some((c) => c.id === l.id)) || // And it has a label
|
|
111
|
-
!o.label
|
|
112
|
-
)
|
|
113
|
-
}, {
|
|
114
|
-
label: I(() => [
|
|
115
|
-
e.$slots.group ? w(e.$slots, "group", {
|
|
116
|
-
key: 0,
|
|
117
|
-
group: o
|
|
118
|
-
}, void 0, !0) : (r(), m(f, { key: 1 }, [
|
|
119
|
-
R(G(o.label), 1)
|
|
120
|
-
], 64))
|
|
121
|
-
]),
|
|
122
|
-
default: I(() => [
|
|
123
|
-
(r(!0), m(f, null, A(p.value, (l) => {
|
|
124
|
-
var c;
|
|
125
|
-
return r(), m(f, {
|
|
126
|
-
key: l.id
|
|
127
|
-
}, [
|
|
128
|
-
o.options.some((n) => n.id === l.id) ? (r(), D(Y, {
|
|
129
|
-
key: 0,
|
|
130
|
-
id: $(l),
|
|
131
|
-
active: ((c = s.value) == null ? void 0 : c.id) === l.id,
|
|
132
|
-
selected: i.value.some((n) => n.id === l.id),
|
|
133
|
-
onClick: (n) => V(l),
|
|
134
|
-
onMousedown: t[4] || (t[4] = k(() => {
|
|
135
|
-
}, ["prevent"])),
|
|
136
|
-
onMouseenter: (n) => s.value = l
|
|
137
|
-
}, {
|
|
138
|
-
default: I(({ active: n, selected: q }) => [
|
|
139
|
-
e.$slots.option ? w(e.$slots, "option", {
|
|
140
|
-
key: 0,
|
|
141
|
-
option: l,
|
|
142
|
-
active: n,
|
|
143
|
-
selected: q
|
|
144
|
-
}, void 0, !0) : (r(), m(f, { key: 1 }, [
|
|
145
|
-
T(L(_), {
|
|
146
|
-
selected: i.value.some((z) => z.id === l.id),
|
|
147
|
-
multiselect: e.multiselect
|
|
148
|
-
}, null, 8, ["selected", "multiselect"]),
|
|
149
|
-
y("span", oe, G(l.label), 1)
|
|
150
|
-
], 64))
|
|
151
|
-
]),
|
|
152
|
-
_: 2
|
|
153
|
-
}, 1032, ["id", "active", "selected", "onClick", "onMouseenter"])) : Q("", !0)
|
|
154
|
-
], 64);
|
|
155
|
-
}), 128))
|
|
156
|
-
]),
|
|
157
|
-
_: 2
|
|
158
|
-
}, 1032, ["id", "hidden"]))), 128)),
|
|
159
|
-
w(e.$slots, "after", {}, void 0, !0)
|
|
160
|
-
], 8, le), [
|
|
161
|
-
[W, p.value.length || e.$slots.before || e.$slots.after]
|
|
162
|
-
])
|
|
163
|
-
], 64));
|
|
164
|
-
}
|
|
165
|
-
});
|
|
1
|
+
import f from "./ScalarComboboxOptions.vue.js";
|
|
166
2
|
export {
|
|
167
|
-
|
|
3
|
+
f as default
|
|
168
4
|
};
|
|
@@ -1,59 +1,6 @@
|
|
|
1
1
|
import { type ScalarFloatingOptions } from '../ScalarFloating';
|
|
2
2
|
import type { ScalarPopoverSlots } from '../ScalarPopover';
|
|
3
|
-
|
|
4
|
-
attrs: Partial<{}>;
|
|
5
|
-
slots: Readonly<ScalarPopoverSlots> & ScalarPopoverSlots;
|
|
6
|
-
refs: {
|
|
7
|
-
popoverButtonRef: import("vue").CreateComponentPublicInstanceWithMixins<Readonly<import("vue").ExtractPropTypes<{
|
|
8
|
-
as: {
|
|
9
|
-
type: (ObjectConstructor | StringConstructor)[];
|
|
10
|
-
default: string;
|
|
11
|
-
};
|
|
12
|
-
disabled: {
|
|
13
|
-
type: BooleanConstructor[];
|
|
14
|
-
default: boolean;
|
|
15
|
-
};
|
|
16
|
-
id: {
|
|
17
|
-
type: StringConstructor;
|
|
18
|
-
default: null;
|
|
19
|
-
};
|
|
20
|
-
}>>, () => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
21
|
-
[key: string]: any;
|
|
22
|
-
}>, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, Record<string, any>, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, {
|
|
23
|
-
id: string;
|
|
24
|
-
as: string | Record<string, any>;
|
|
25
|
-
disabled: boolean;
|
|
26
|
-
}, true, {}, {}, import("vue").GlobalComponents, import("vue").GlobalDirectives, string, {}, any, import("vue").ComponentProvideOptions, {
|
|
27
|
-
P: {};
|
|
28
|
-
B: {};
|
|
29
|
-
D: {};
|
|
30
|
-
C: {};
|
|
31
|
-
M: {};
|
|
32
|
-
Defaults: {};
|
|
33
|
-
}, Readonly<import("vue").ExtractPropTypes<{
|
|
34
|
-
as: {
|
|
35
|
-
type: (ObjectConstructor | StringConstructor)[];
|
|
36
|
-
default: string;
|
|
37
|
-
};
|
|
38
|
-
disabled: {
|
|
39
|
-
type: BooleanConstructor[];
|
|
40
|
-
default: boolean;
|
|
41
|
-
};
|
|
42
|
-
id: {
|
|
43
|
-
type: StringConstructor;
|
|
44
|
-
default: null;
|
|
45
|
-
};
|
|
46
|
-
}>>, () => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
47
|
-
[key: string]: any;
|
|
48
|
-
}>, {}, {}, {}, {
|
|
49
|
-
id: string;
|
|
50
|
-
as: string | Record<string, any>;
|
|
51
|
-
disabled: boolean;
|
|
52
|
-
}> | null;
|
|
53
|
-
};
|
|
54
|
-
rootEl: any;
|
|
55
|
-
};
|
|
56
|
-
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
3
|
+
type __VLS_Slots = ScalarPopoverSlots;
|
|
57
4
|
declare const __VLS_component: import("vue").DefineComponent<ScalarFloatingOptions, {
|
|
58
5
|
popoverButtonRef: import("vue").Ref<import("vue").DefineComponent<{
|
|
59
6
|
as: {
|
|
@@ -121,9 +68,9 @@ declare const __VLS_component: import("vue").DefineComponent<ScalarFloatingOptio
|
|
|
121
68
|
disabled: boolean;
|
|
122
69
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any> | null>;
|
|
123
70
|
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<ScalarFloatingOptions> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
124
|
-
declare const _default:
|
|
71
|
+
declare const _default: __VLS_WithSlots<typeof __VLS_component, __VLS_Slots>;
|
|
125
72
|
export default _default;
|
|
126
|
-
type
|
|
73
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
127
74
|
new (): {
|
|
128
75
|
$slots: S;
|
|
129
76
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ScalarComboboxPopover.vue.d.ts","sourceRoot":"","sources":["../../../src/components/ScalarCombobox/ScalarComboboxPopover.vue"],"names":[],"mappings":"AAqEA,OAAO,EAGL,KAAK,qBAAqB,EAC3B,MAAM,mBAAmB,CAAA;AAC1B,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,kBAAkB,CAAA;
|
|
1
|
+
{"version":3,"file":"ScalarComboboxPopover.vue.d.ts","sourceRoot":"","sources":["../../../src/components/ScalarCombobox/ScalarComboboxPopover.vue"],"names":[],"mappings":"AAqEA,OAAO,EAGL,KAAK,qBAAqB,EAC3B,MAAM,mBAAmB,CAAA;AAC1B,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,kBAAkB,CAAA;AAK1D,KAAK,WAAW,GAAG,kBAAkB,CAAC;AAoJtC,QAAA,MAAM,eAAe;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;8PAOnB,CAAC;wBACkB,eAAe,CAAC,OAAO,eAAe,EAAE,WAAW,CAAC;AAAzE,wBAA0E;AAQ1E,KAAK,eAAe,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IAChC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KAEV,CAAA;CACD,CAAC"}
|
|
@@ -11,6 +11,11 @@ export type OptionsOrGroups<O extends Option = Option, G extends OptionGroup<O>
|
|
|
11
11
|
export declare function isGroup(option: Option | OptionGroup | undefined): option is OptionGroup;
|
|
12
12
|
/** Type guard to check if an array of options is an array of groups */
|
|
13
13
|
export declare function isGroups(options: Option[] | OptionGroup[]): options is OptionGroup[];
|
|
14
|
+
/** Available events emitted by the combobox */
|
|
15
|
+
export type ComboboxEmits = {
|
|
16
|
+
/** Emitted when the "Add a new option" button is clicked */
|
|
17
|
+
add: [];
|
|
18
|
+
};
|
|
14
19
|
/** Available slots for the combobox */
|
|
15
20
|
export type ComboboxSlots<O extends Option = Option, G extends OptionGroup<O> = OptionGroup<O>> = {
|
|
16
21
|
/** The reference element / trigger for the combobox */
|
|
@@ -27,9 +32,9 @@ export type ComboboxSlots<O extends Option = Option, G extends OptionGroup<O> =
|
|
|
27
32
|
group?(props: {
|
|
28
33
|
group: G;
|
|
29
34
|
}): unknown;
|
|
30
|
-
/**
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
35
|
+
/** Creates an "Add a new option" button after the options list*/
|
|
36
|
+
add?(props: {
|
|
37
|
+
active: boolean;
|
|
38
|
+
}): unknown;
|
|
34
39
|
};
|
|
35
40
|
//# sourceMappingURL=types.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/components/ScalarCombobox/types.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,MAAM,GAAG;IACnB,EAAE,EAAE,MAAM,CAAA;IACV,KAAK,EAAE,MAAM,CAAA;CACd,CAAA;AAED,MAAM,MAAM,WAAW,CAAC,CAAC,SAAS,MAAM,GAAG,MAAM,IAAI;IACnD,KAAK,EAAE,MAAM,CAAA;IACb,OAAO,EAAE,CAAC,EAAE,CAAA;CACb,CAAA;AAED,MAAM,MAAM,eAAe,CAAC,CAAC,SAAS,MAAM,GAAG,MAAM,EAAE,CAAC,SAAS,WAAW,CAAC,CAAC,CAAC,GAAG,WAAW,CAAC,CAAC,CAAC,IAAI,CAAC,EAAE,GAAG,CAAC,EAAE,CAAA;AAE7G,kDAAkD;AAClD,wBAAgB,OAAO,CAAC,MAAM,EAAE,MAAM,GAAG,WAAW,GAAG,SAAS,GAAG,MAAM,IAAI,WAAW,CAEvF;AAED,uEAAuE;AACvE,wBAAgB,QAAQ,CAAC,OAAO,EAAE,MAAM,EAAE,GAAG,WAAW,EAAE,GAAG,OAAO,IAAI,WAAW,EAAE,CAKpF;AAED,uCAAuC;AACvC,MAAM,MAAM,aAAa,CAAC,CAAC,SAAS,MAAM,GAAG,MAAM,EAAE,CAAC,SAAS,WAAW,CAAC,CAAC,CAAC,GAAG,WAAW,CAAC,CAAC,CAAC,IAAI;IAChG,uDAAuD;IACvD,OAAO,CAAC,KAAK,EAAE;QAAE,IAAI,EAAE,OAAO,CAAA;KAAE,GAAG,OAAO,CAAA;IAC1C,8CAA8C;IAC9C,MAAM,CAAC,CAAC,KAAK,EAAE;QAAE,MAAM,EAAE,CAAC,CAAC;QAAC,MAAM,EAAE,OAAO,CAAC;QAAC,QAAQ,EAAE,OAAO,CAAA;KAAE,GAAG,OAAO,CAAA;IAC1E,6CAA6C;IAC7C,KAAK,CAAC,CAAC,KAAK,EAAE;QAAE,KAAK,EAAE,CAAC,CAAA;KAAE,GAAG,OAAO,CAAA;IACpC,
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/components/ScalarCombobox/types.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,MAAM,GAAG;IACnB,EAAE,EAAE,MAAM,CAAA;IACV,KAAK,EAAE,MAAM,CAAA;CACd,CAAA;AAED,MAAM,MAAM,WAAW,CAAC,CAAC,SAAS,MAAM,GAAG,MAAM,IAAI;IACnD,KAAK,EAAE,MAAM,CAAA;IACb,OAAO,EAAE,CAAC,EAAE,CAAA;CACb,CAAA;AAED,MAAM,MAAM,eAAe,CAAC,CAAC,SAAS,MAAM,GAAG,MAAM,EAAE,CAAC,SAAS,WAAW,CAAC,CAAC,CAAC,GAAG,WAAW,CAAC,CAAC,CAAC,IAAI,CAAC,EAAE,GAAG,CAAC,EAAE,CAAA;AAE7G,kDAAkD;AAClD,wBAAgB,OAAO,CAAC,MAAM,EAAE,MAAM,GAAG,WAAW,GAAG,SAAS,GAAG,MAAM,IAAI,WAAW,CAEvF;AAED,uEAAuE;AACvE,wBAAgB,QAAQ,CAAC,OAAO,EAAE,MAAM,EAAE,GAAG,WAAW,EAAE,GAAG,OAAO,IAAI,WAAW,EAAE,CAKpF;AAED,+CAA+C;AAC/C,MAAM,MAAM,aAAa,GAAG;IAC1B,4DAA4D;IAC5D,GAAG,EAAE,EAAE,CAAA;CACR,CAAA;AAED,uCAAuC;AACvC,MAAM,MAAM,aAAa,CAAC,CAAC,SAAS,MAAM,GAAG,MAAM,EAAE,CAAC,SAAS,WAAW,CAAC,CAAC,CAAC,GAAG,WAAW,CAAC,CAAC,CAAC,IAAI;IAChG,uDAAuD;IACvD,OAAO,CAAC,KAAK,EAAE;QAAE,IAAI,EAAE,OAAO,CAAA;KAAE,GAAG,OAAO,CAAA;IAC1C,8CAA8C;IAC9C,MAAM,CAAC,CAAC,KAAK,EAAE;QAAE,MAAM,EAAE,CAAC,CAAC;QAAC,MAAM,EAAE,OAAO,CAAC;QAAC,QAAQ,EAAE,OAAO,CAAA;KAAE,GAAG,OAAO,CAAA;IAC1E,6CAA6C;IAC7C,KAAK,CAAC,CAAC,KAAK,EAAE;QAAE,KAAK,EAAE,CAAC,CAAA;KAAE,GAAG,OAAO,CAAA;IACpC,iEAAiE;IACjE,GAAG,CAAC,CAAC,KAAK,EAAE;QAAE,MAAM,EAAE,OAAO,CAAA;KAAE,GAAG,OAAO,CAAA;CAC1C,CAAA"}
|
|
@@ -5,24 +5,20 @@ type __VLS_Props = {
|
|
|
5
5
|
disabled?: boolean;
|
|
6
6
|
triggerClass?: string;
|
|
7
7
|
};
|
|
8
|
-
declare
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
};
|
|
14
|
-
refs: {};
|
|
15
|
-
rootEl: any;
|
|
8
|
+
declare var __VLS_10: {}, __VLS_24: {};
|
|
9
|
+
type __VLS_Slots = {} & {
|
|
10
|
+
trigger?: (props: typeof __VLS_10) => any;
|
|
11
|
+
} & {
|
|
12
|
+
content?: (props: typeof __VLS_24) => any;
|
|
16
13
|
};
|
|
17
|
-
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
18
14
|
declare const __VLS_component: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {
|
|
19
15
|
disabled: boolean;
|
|
20
16
|
align: "start" | "center" | "end";
|
|
21
17
|
side: "top" | "right" | "bottom" | "left";
|
|
22
18
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
23
|
-
declare const _default:
|
|
19
|
+
declare const _default: __VLS_WithSlots<typeof __VLS_component, __VLS_Slots>;
|
|
24
20
|
export default _default;
|
|
25
|
-
type
|
|
21
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
26
22
|
new (): {
|
|
27
23
|
$slots: S;
|
|
28
24
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ScalarContextMenu.vue.d.ts","sourceRoot":"","sources":["../../../src/components/ScalarContextMenu/ScalarContextMenu.vue"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"ScalarContextMenu.vue.d.ts","sourceRoot":"","sources":["../../../src/components/ScalarContextMenu/ScalarContextMenu.vue"],"names":[],"mappings":"AAsDA,KAAK,WAAW,GAAG;IACf,KAAK,CAAC,EAAE,OAAO,GAAG,QAAQ,GAAG,KAAK,CAAA;IAClC,IAAI,CAAC,EAAE,KAAK,GAAG,OAAO,GAAG,QAAQ,GAAG,MAAM,CAAA;IAC1C,UAAU,CAAC,EAAE,MAAM,CAAA;IACnB,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,YAAY,CAAC,EAAE,MAAM,CAAA;CACtB,CAAC;AAoFJ,QAAA,IAAI,QAAQ,IAAU,EAAE,QAAQ,IAAY,CAAE;AAC9C,KAAK,WAAW,GAAG,EAAE,GACnB;IAAE,OAAO,CAAC,EAAE,CAAC,KAAK,EAAE,OAAO,QAAQ,KAAK,GAAG,CAAA;CAAE,GAC7C;IAAE,OAAO,CAAC,EAAE,CAAC,KAAK,EAAE,OAAO,QAAQ,KAAK,GAAG,CAAA;CAAE,CAAC;AAyBhD,QAAA,MAAM,eAAe;cAlHN,OAAO;WAHV,OAAO,GAAG,QAAQ,GAAG,KAAK;UAC3B,KAAK,GAAG,OAAO,GAAG,QAAQ,GAAG,MAAM;6EA2H5C,CAAC;wBACkB,eAAe,CAAC,OAAO,eAAe,EAAE,WAAW,CAAC;AAAzE,wBAA0E;AAa1E,KAAK,eAAe,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IAChC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KAEV,CAAA;CACD,CAAC"}
|