@ac-design/design-system 0.0.0-stage → 1.0.1
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/README.md +160 -2
- package/dist/lib/compat.css +4441 -0
- package/dist/lib/components/AcAccordion.js +5 -0
- package/dist/lib/components/AcAccordion.vue.d.ts +35 -0
- package/dist/lib/components/AcAccordion.vue_vue_type_script_setup_true_lang.js +61 -0
- package/dist/lib/components/AcAccordionItem.js +5 -0
- package/dist/lib/components/AcAccordionItem.vue.d.ts +49 -0
- package/dist/lib/components/AcAccordionItem.vue_vue_type_script_setup_true_lang.js +81 -0
- package/dist/lib/components/AcAlert.js +5 -0
- package/dist/lib/components/AcAlert.vue.d.ts +52 -0
- package/dist/lib/components/AcAlert.vue_vue_type_script_setup_true_lang.js +121 -0
- package/dist/lib/components/AcAppSwitcher.js +5 -0
- package/dist/lib/components/AcAppSwitcher.vue.d.ts +83 -0
- package/dist/lib/components/AcAppSwitcher.vue_vue_type_script_setup_true_lang.js +303 -0
- package/dist/lib/components/AcAvatar.js +5 -0
- package/dist/lib/components/AcAvatar.vue.d.ts +27 -0
- package/dist/lib/components/AcAvatar.vue_vue_type_script_setup_true_lang.js +116 -0
- package/dist/lib/components/AcBadge.js +5 -0
- package/dist/lib/components/AcBadge.vue.d.ts +32 -0
- package/dist/lib/components/AcBadge.vue_vue_type_script_setup_true_lang.js +88 -0
- package/dist/lib/components/AcBanner.js +5 -0
- package/dist/lib/components/AcBanner.vue.d.ts +57 -0
- package/dist/lib/components/AcBanner.vue_vue_type_script_setup_true_lang.js +114 -0
- package/dist/lib/components/AcBreadcrumb.js +5 -0
- package/dist/lib/components/AcBreadcrumb.vue.d.ts +25 -0
- package/dist/lib/components/AcBreadcrumb.vue_vue_type_script_setup_true_lang.js +88 -0
- package/dist/lib/components/AcButton.js +5 -0
- package/dist/lib/components/AcButton.vue.d.ts +49 -0
- package/dist/lib/components/AcButton.vue_vue_type_script_setup_true_lang.js +103 -0
- package/dist/lib/components/AcButtons.js +5 -0
- package/dist/lib/components/AcButtons.vue.d.ts +31 -0
- package/dist/lib/components/AcButtons.vue_vue_type_script_setup_true_lang.js +44 -0
- package/dist/lib/components/AcCard.js +5 -0
- package/dist/lib/components/AcCard.vue.d.ts +27 -0
- package/dist/lib/components/AcCard.vue_vue_type_script_setup_true_lang.js +28 -0
- package/dist/lib/components/AcCellValue.js +5 -0
- package/dist/lib/components/AcCellValue.vue.d.ts +139 -0
- package/dist/lib/components/AcCellValue.vue_vue_type_script_setup_true_lang.js +386 -0
- package/dist/lib/components/AcCheckBox.js +5 -0
- package/dist/lib/components/AcCheckBox.vue.d.ts +31 -0
- package/dist/lib/components/AcCheckBox.vue_vue_type_script_setup_true_lang.js +49 -0
- package/dist/lib/components/AcCheckRadio.js +5 -0
- package/dist/lib/components/AcCheckRadio.vue.d.ts +35 -0
- package/dist/lib/components/AcCheckRadio.vue_vue_type_script_setup_true_lang.js +56 -0
- package/dist/lib/components/AcClusterSwitcher.js +5 -0
- package/dist/lib/components/AcClusterSwitcher.vue.d.ts +95 -0
- package/dist/lib/components/AcClusterSwitcher.vue_vue_type_script_setup_true_lang.js +416 -0
- package/dist/lib/components/AcCodeEditor.js +5 -0
- package/dist/lib/components/AcCodeEditor.vue.d.ts +88 -0
- package/dist/lib/components/AcCodeEditor.vue_vue_type_script_setup_true_lang.js +381 -0
- package/dist/lib/components/AcContentHeader.js +5 -0
- package/dist/lib/components/AcContentHeader.vue.d.ts +29 -0
- package/dist/lib/components/AcContentHeader.vue_vue_type_script_setup_true_lang.js +31 -0
- package/dist/lib/components/AcContentLayout.js +5 -0
- package/dist/lib/components/AcContentLayout.vue.d.ts +21 -0
- package/dist/lib/components/AcContentLayout.vue_vue_type_script_setup_true_lang.js +18 -0
- package/dist/lib/components/AcContentTable.js +5 -0
- package/dist/lib/components/AcContentTable.vue.d.ts +54 -0
- package/dist/lib/components/AcContentTable.vue_vue_type_script_setup_true_lang.js +67 -0
- package/dist/lib/components/AcDatePicker.js +5 -0
- package/dist/lib/components/AcDatePicker.vue.d.ts +88 -0
- package/dist/lib/components/AcDatePicker.vue_vue_type_script_setup_true_lang.js +794 -0
- package/dist/lib/components/AcDeleteModal.js +5 -0
- package/dist/lib/components/AcDeleteModal.vue.d.ts +51 -0
- package/dist/lib/components/AcDeleteModal.vue_vue_type_script_setup_true_lang.js +110 -0
- package/dist/lib/components/AcDivider.js +5 -0
- package/dist/lib/components/AcDivider.vue.d.ts +25 -0
- package/dist/lib/components/AcDivider.vue_vue_type_script_setup_true_lang.js +39 -0
- package/dist/lib/components/AcDropdown.js +5 -0
- package/dist/lib/components/AcDropdown.vue.d.ts +45 -0
- package/dist/lib/components/AcDropdown.vue_vue_type_script_setup_true_lang.js +152 -0
- package/dist/lib/components/AcDropdownDivider.js +5 -0
- package/dist/lib/components/AcDropdownDivider.vue.d.ts +9 -0
- package/dist/lib/components/AcDropdownDivider.vue_vue_type_script_setup_true_lang.js +20 -0
- package/dist/lib/components/AcDropdownItem.js +5 -0
- package/dist/lib/components/AcDropdownItem.vue.d.ts +50 -0
- package/dist/lib/components/AcDropdownItem.vue_vue_type_script_setup_true_lang.js +86 -0
- package/dist/lib/components/AcEmptyState.js +5 -0
- package/dist/lib/components/AcEmptyState.vue.d.ts +42 -0
- package/dist/lib/components/AcEmptyState.vue_vue_type_script_setup_true_lang.js +81 -0
- package/dist/lib/components/AcFeatureCard.js +5 -0
- package/dist/lib/components/AcFeatureCard.vue.d.ts +84 -0
- package/dist/lib/components/AcFeatureCard.vue_vue_type_script_setup_true_lang.js +218 -0
- package/dist/lib/components/AcFileEditor.js +5 -0
- package/dist/lib/components/AcFileEditor.vue.d.ts +95 -0
- package/dist/lib/components/AcFileEditor.vue_vue_type_script_setup_true_lang.js +556 -0
- package/dist/lib/components/AcFileUpload.js +5 -0
- package/dist/lib/components/AcFileUpload.vue.d.ts +67 -0
- package/dist/lib/components/AcFileUpload.vue_vue_type_script_setup_true_lang.js +274 -0
- package/dist/lib/components/AcFontScale.js +5 -0
- package/dist/lib/components/AcFontScale.vue.d.ts +17 -0
- package/dist/lib/components/AcFontScale.vue_vue_type_script_setup_true_lang.js +65 -0
- package/dist/lib/components/AcForm.js +5 -0
- package/dist/lib/components/AcForm.vue.d.ts +31 -0
- package/dist/lib/components/AcForm.vue_vue_type_script_setup_true_lang.js +38 -0
- package/dist/lib/components/AcFormArray.js +5 -0
- package/dist/lib/components/AcFormArray.vue.d.ts +124 -0
- package/dist/lib/components/AcFormArray.vue_vue_type_script_setup_true_lang.js +485 -0
- package/dist/lib/components/AcFormFooter.js +5 -0
- package/dist/lib/components/AcFormFooter.vue.d.ts +48 -0
- package/dist/lib/components/AcFormFooter.vue_vue_type_script_setup_true_lang.js +86 -0
- package/dist/lib/components/AcFormSection.js +5 -0
- package/dist/lib/components/AcFormSection.vue.d.ts +32 -0
- package/dist/lib/components/AcFormSection.vue_vue_type_script_setup_true_lang.js +38 -0
- package/dist/lib/components/AcHeader.js +5 -0
- package/dist/lib/components/AcHeader.vue.d.ts +46 -0
- package/dist/lib/components/AcHeader.vue_vue_type_script_setup_true_lang.js +60 -0
- package/dist/lib/components/AcHeaderItem.js +5 -0
- package/dist/lib/components/AcHeaderItem.vue.d.ts +13 -0
- package/dist/lib/components/AcHeaderItem.vue_vue_type_script_setup_true_lang.js +14 -0
- package/dist/lib/components/AcHeaderItems.js +5 -0
- package/dist/lib/components/AcHeaderItems.vue.d.ts +13 -0
- package/dist/lib/components/AcHeaderItems.vue_vue_type_script_setup_true_lang.js +14 -0
- package/dist/lib/components/AcInfoTable.js +5 -0
- package/dist/lib/components/AcInfoTable.vue.d.ts +59 -0
- package/dist/lib/components/AcInfoTable.vue_vue_type_script_setup_true_lang.js +127 -0
- package/dist/lib/components/AcInput.js +5 -0
- package/dist/lib/components/AcInput.vue.d.ts +68 -0
- package/dist/lib/components/AcInput.vue_vue_type_script_setup_true_lang.js +143 -0
- package/dist/lib/components/AcKbd.js +5 -0
- package/dist/lib/components/AcKbd.vue.d.ts +25 -0
- package/dist/lib/components/AcKbd.vue_vue_type_script_setup_true_lang.js +134 -0
- package/dist/lib/components/AcLogo.js +5 -0
- package/dist/lib/components/AcLogo.vue.d.ts +18 -0
- package/dist/lib/components/AcLogo.vue_vue_type_script_setup_true_lang.js +67 -0
- package/dist/lib/components/AcModal.js +5 -0
- package/dist/lib/components/AcModal.vue.d.ts +54 -0
- package/dist/lib/components/AcModal.vue_vue_type_script_setup_true_lang.js +125 -0
- package/dist/lib/components/AcNavbar.js +5 -0
- package/dist/lib/components/AcNavbar.vue.d.ts +41 -0
- package/dist/lib/components/AcNavbar.vue_vue_type_script_setup_true_lang.js +60 -0
- package/dist/lib/components/AcNavbarItem.js +5 -0
- package/dist/lib/components/AcNavbarItem.vue.d.ts +44 -0
- package/dist/lib/components/AcNavbarItem.vue_vue_type_script_setup_true_lang.js +65 -0
- package/dist/lib/components/AcNotificationMenu.js +5 -0
- package/dist/lib/components/AcNotificationMenu.vue.d.ts +90 -0
- package/dist/lib/components/AcNotificationMenu.vue_vue_type_script_setup_true_lang.js +345 -0
- package/dist/lib/components/AcPage.js +5 -0
- package/dist/lib/components/AcPage.vue.d.ts +25 -0
- package/dist/lib/components/AcPage.vue_vue_type_script_setup_true_lang.js +36 -0
- package/dist/lib/components/AcPagination.js +5 -0
- package/dist/lib/components/AcPagination.vue.d.ts +51 -0
- package/dist/lib/components/AcPagination.vue_vue_type_script_setup_true_lang.js +160 -0
- package/dist/lib/components/AcPreloader.js +5 -0
- package/dist/lib/components/AcPreloader.vue.d.ts +28 -0
- package/dist/lib/components/AcPreloader.vue_vue_type_script_setup_true_lang.js +39 -0
- package/dist/lib/components/AcProgress.js +5 -0
- package/dist/lib/components/AcProgress.vue.d.ts +31 -0
- package/dist/lib/components/AcProgress.vue_vue_type_script_setup_true_lang.js +76 -0
- package/dist/lib/components/AcResourceCard.js +5 -0
- package/dist/lib/components/AcResourceCard.vue.d.ts +106 -0
- package/dist/lib/components/AcResourceCard.vue_vue_type_script_setup_true_lang.js +203 -0
- package/dist/lib/components/AcSearchBar.js +5 -0
- package/dist/lib/components/AcSearchBar.vue.d.ts +41 -0
- package/dist/lib/components/AcSearchBar.vue_vue_type_script_setup_true_lang.js +76 -0
- package/dist/lib/components/AcSectionContent.js +5 -0
- package/dist/lib/components/AcSectionContent.vue.d.ts +55 -0
- package/dist/lib/components/AcSectionContent.vue_vue_type_script_setup_true_lang.js +74 -0
- package/dist/lib/components/AcSegmentedControl.js +5 -0
- package/dist/lib/components/AcSegmentedControl.vue.d.ts +46 -0
- package/dist/lib/components/AcSegmentedControl.vue_vue_type_script_setup_true_lang.js +104 -0
- package/dist/lib/components/AcSelect.js +5 -0
- package/dist/lib/components/AcSelect.vue.d.ts +78 -0
- package/dist/lib/components/AcSelect.vue_vue_type_script_setup_true_lang.js +441 -0
- package/dist/lib/components/AcSidePanel.js +5 -0
- package/dist/lib/components/AcSidePanel.vue.d.ts +57 -0
- package/dist/lib/components/AcSidePanel.vue_vue_type_script_setup_true_lang.js +128 -0
- package/dist/lib/components/AcSideTabs.js +5 -0
- package/dist/lib/components/AcSideTabs.vue.d.ts +93 -0
- package/dist/lib/components/AcSideTabs.vue_vue_type_script_setup_true_lang.js +373 -0
- package/dist/lib/components/AcSidebar.js +5 -0
- package/dist/lib/components/AcSidebar.vue.d.ts +63 -0
- package/dist/lib/components/AcSidebar.vue_vue_type_script_setup_true_lang.js +221 -0
- package/dist/lib/components/AcSidebarItem.js +5 -0
- package/dist/lib/components/AcSidebarItem.vue.d.ts +55 -0
- package/dist/lib/components/AcSidebarItem.vue_vue_type_script_setup_true_lang.js +155 -0
- package/dist/lib/components/AcSidebarSection.js +5 -0
- package/dist/lib/components/AcSidebarSection.vue.d.ts +32 -0
- package/dist/lib/components/AcSidebarSection.vue_vue_type_script_setup_true_lang.js +48 -0
- package/dist/lib/components/AcSkeleton.js +5 -0
- package/dist/lib/components/AcSkeleton.vue.d.ts +27 -0
- package/dist/lib/components/AcSkeleton.vue_vue_type_script_setup_true_lang.js +142 -0
- package/dist/lib/components/AcSlider.js +5 -0
- package/dist/lib/components/AcSlider.vue.d.ts +72 -0
- package/dist/lib/components/AcSlider.vue_vue_type_script_setup_true_lang.js +327 -0
- package/dist/lib/components/AcSpinner.js +5 -0
- package/dist/lib/components/AcSpinner.vue.d.ts +12 -0
- package/dist/lib/components/AcSpinner.vue_vue_type_script_setup_true_lang.js +45 -0
- package/dist/lib/components/AcStatCard.js +5 -0
- package/dist/lib/components/AcStatCard.vue.d.ts +84 -0
- package/dist/lib/components/AcStatCard.vue_vue_type_script_setup_true_lang.js +225 -0
- package/dist/lib/components/AcStatusBar.js +5 -0
- package/dist/lib/components/AcStatusBar.vue.d.ts +66 -0
- package/dist/lib/components/AcStatusBar.vue_vue_type_script_setup_true_lang.js +145 -0
- package/dist/lib/components/AcSteps.js +5 -0
- package/dist/lib/components/AcSteps.vue.d.ts +28 -0
- package/dist/lib/components/AcSteps.vue_vue_type_script_setup_true_lang.js +91 -0
- package/dist/lib/components/AcSwitch.js +5 -0
- package/dist/lib/components/AcSwitch.vue.d.ts +44 -0
- package/dist/lib/components/AcSwitch.vue_vue_type_script_setup_true_lang.js +67 -0
- package/dist/lib/components/AcTable.js +5 -0
- package/dist/lib/components/AcTable.vue.d.ts +98 -0
- package/dist/lib/components/AcTable.vue_vue_type_script_setup_true_lang.js +272 -0
- package/dist/lib/components/AcTabs.js +5 -0
- package/dist/lib/components/AcTabs.vue.d.ts +40 -0
- package/dist/lib/components/AcTabs.vue_vue_type_script_setup_true_lang.js +72 -0
- package/dist/lib/components/AcTag.js +5 -0
- package/dist/lib/components/AcTag.vue.d.ts +41 -0
- package/dist/lib/components/AcTag.vue_vue_type_script_setup_true_lang.js +99 -0
- package/dist/lib/components/AcTextarea.js +5 -0
- package/dist/lib/components/AcTextarea.vue.d.ts +53 -0
- package/dist/lib/components/AcTextarea.vue_vue_type_script_setup_true_lang.js +120 -0
- package/dist/lib/components/AcThemeMode.js +5 -0
- package/dist/lib/components/AcThemeMode.vue.d.ts +17 -0
- package/dist/lib/components/AcThemeMode.vue_vue_type_script_setup_true_lang.js +60 -0
- package/dist/lib/components/AcToaster.js +5 -0
- package/dist/lib/components/AcToaster.vue.d.ts +15 -0
- package/dist/lib/components/AcToaster.vue_vue_type_script_setup_true_lang.js +166 -0
- package/dist/lib/components/AcTooltip.js +5 -0
- package/dist/lib/components/AcTooltip.vue.d.ts +30 -0
- package/dist/lib/components/AcTooltip.vue_vue_type_script_setup_true_lang.js +117 -0
- package/dist/lib/components/AcUsageCard.js +5 -0
- package/dist/lib/components/AcUsageCard.vue.d.ts +85 -0
- package/dist/lib/components/AcUsageCard.vue_vue_type_script_setup_true_lang.js +230 -0
- package/dist/lib/components/AcUserMenu.js +5 -0
- package/dist/lib/components/AcUserMenu.vue.d.ts +77 -0
- package/dist/lib/components/AcUserMenu.vue_vue_type_script_setup_true_lang.js +258 -0
- package/dist/lib/components/index.d.ts +76 -0
- package/dist/lib/components/types.d.ts +16 -0
- package/dist/lib/composables/copyText.d.ts +6 -0
- package/dist/lib/composables/copyText.js +16 -0
- package/dist/lib/composables/useBrandColor.d.ts +53 -0
- package/dist/lib/composables/useBrandColor.js +148 -0
- package/dist/lib/composables/useColorMode.d.ts +12 -0
- package/dist/lib/composables/useColorMode.js +40 -0
- package/dist/lib/composables/useFontScale.d.ts +16 -0
- package/dist/lib/composables/useFontScale.js +43 -0
- package/dist/lib/composables/useToast.d.ts +68 -0
- package/dist/lib/composables/useToast.js +36 -0
- package/dist/lib/editor/index.d.ts +4 -0
- package/dist/lib/editor/index.js +3 -0
- package/dist/lib/editor/theme.d.ts +3 -0
- package/dist/lib/editor/theme.js +309 -0
- package/dist/lib/editor/validate.d.ts +19 -0
- package/dist/lib/editor/validate.js +127 -0
- package/dist/lib/index.d.ts +29 -0
- package/dist/lib/index.js +78 -0
- package/dist/lib/theme.css +556 -0
- package/package.json +82 -4
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
export interface Props {
|
|
2
|
+
/** Lets several items be open at once. `v-model` becomes an array of values. */
|
|
3
|
+
multiple?: boolean;
|
|
4
|
+
/** `bordered` one card with dividers, `separated` a card per item, `flush` dividers only, for use inside a card or form. */
|
|
5
|
+
variant?: "bordered" | "separated" | "flush";
|
|
6
|
+
/** Heading level of each item's title, so the outline fits the page. */
|
|
7
|
+
headingLevel?: 2 | 3 | 4 | 5 | 6;
|
|
8
|
+
}
|
|
9
|
+
type __VLS_Props = Props;
|
|
10
|
+
type __VLS_Slots = {
|
|
11
|
+
/** AcAccordionItem children. */
|
|
12
|
+
default?: () => unknown;
|
|
13
|
+
};
|
|
14
|
+
type __VLS_ModelProps = {
|
|
15
|
+
/** The open item's `value` (or an array of values with `multiple`). `null` when all are closed. */
|
|
16
|
+
modelValue?: string | string[] | null;
|
|
17
|
+
};
|
|
18
|
+
type __VLS_PublicProps = __VLS_Props & __VLS_ModelProps;
|
|
19
|
+
declare const __VLS_base: import("vue").DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
20
|
+
"update:modelValue": (value: string | string[] | null) => any;
|
|
21
|
+
}, string, import("vue").PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
|
|
22
|
+
"onUpdate:modelValue"?: ((value: string | string[] | null) => any) | undefined;
|
|
23
|
+
}>, {
|
|
24
|
+
multiple: boolean;
|
|
25
|
+
variant: "bordered" | "separated" | "flush";
|
|
26
|
+
headingLevel: 2 | 3 | 4 | 5 | 6;
|
|
27
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
28
|
+
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
29
|
+
declare const _default: typeof __VLS_export;
|
|
30
|
+
export default _default;
|
|
31
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
32
|
+
new (): {
|
|
33
|
+
$slots: S;
|
|
34
|
+
};
|
|
35
|
+
};
|
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
import { computed as e, createElementBlock as t, defineComponent as n, mergeModels as r, normalizeClass as i, openBlock as a, provide as o, ref as s, renderSlot as c, useModel as l } from "vue";
|
|
2
|
+
//#region src/lib/components/AcAccordion.vue?vue&type=script&setup=true&lang.ts
|
|
3
|
+
var u = /*@__PURE__*/ n({
|
|
4
|
+
__name: "AcAccordion",
|
|
5
|
+
props: /*@__PURE__*/ r({
|
|
6
|
+
multiple: {
|
|
7
|
+
type: Boolean,
|
|
8
|
+
default: !1
|
|
9
|
+
},
|
|
10
|
+
variant: { default: "bordered" },
|
|
11
|
+
headingLevel: { default: 3 }
|
|
12
|
+
}, {
|
|
13
|
+
modelValue: { default: null },
|
|
14
|
+
modelModifiers: {}
|
|
15
|
+
}),
|
|
16
|
+
emits: ["update:modelValue"],
|
|
17
|
+
setup(n) {
|
|
18
|
+
let r = n, u = l(n, "modelValue"), d = s(null), f = e(() => {
|
|
19
|
+
let e = u.value;
|
|
20
|
+
return e == null || e === "" ? [] : Array.isArray(e) ? e : [e];
|
|
21
|
+
});
|
|
22
|
+
function p(e) {
|
|
23
|
+
return f.value.includes(e);
|
|
24
|
+
}
|
|
25
|
+
function m(e) {
|
|
26
|
+
let t = p(e);
|
|
27
|
+
r.multiple ? u.value = t ? f.value.filter((t) => t !== e) : [...f.value, e] : u.value = t ? null : e;
|
|
28
|
+
}
|
|
29
|
+
function h(e) {
|
|
30
|
+
if (![
|
|
31
|
+
"ArrowDown",
|
|
32
|
+
"ArrowUp",
|
|
33
|
+
"Home",
|
|
34
|
+
"End"
|
|
35
|
+
].includes(e.key)) return;
|
|
36
|
+
let t = e.target;
|
|
37
|
+
if (!t.matches("[data-accordion-trigger]")) return;
|
|
38
|
+
let n = [...d.value?.querySelectorAll("[data-accordion-trigger]") ?? []].filter((e) => e.closest("[data-testid='ac-accordion']") === d.value && !e.disabled), r = n.indexOf(t);
|
|
39
|
+
r < 0 || (e.preventDefault(), n[e.key === "Home" ? 0 : e.key === "End" ? n.length - 1 : (r + (e.key === "ArrowDown" ? 1 : -1) + n.length) % n.length]?.focus());
|
|
40
|
+
}
|
|
41
|
+
return o("ac-accordion", {
|
|
42
|
+
isOpen: p,
|
|
43
|
+
toggle: m,
|
|
44
|
+
variant: e(() => r.variant),
|
|
45
|
+
headingLevel: e(() => r.headingLevel)
|
|
46
|
+
}), (e, r) => (a(), t("div", {
|
|
47
|
+
ref_key: "root",
|
|
48
|
+
ref: d,
|
|
49
|
+
class: i(["w-full", {
|
|
50
|
+
"divide-y divide-border-light overflow-hidden rounded-10 border border-border bg-surface shadow-xs": n.variant === "bordered",
|
|
51
|
+
"flex flex-col gap-3": n.variant === "separated",
|
|
52
|
+
"divide-y divide-border-light border-y border-border-light": n.variant === "flush"
|
|
53
|
+
}]),
|
|
54
|
+
"data-ac-ds": "",
|
|
55
|
+
"data-testid": "ac-accordion",
|
|
56
|
+
onKeydown: h
|
|
57
|
+
}, [c(e.$slots, "default")], 34));
|
|
58
|
+
}
|
|
59
|
+
});
|
|
60
|
+
//#endregion
|
|
61
|
+
export { u as default };
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
export interface Props {
|
|
2
|
+
/** Identifies the item in the parent AcAccordion's `v-model`. Generated when left out. */
|
|
3
|
+
value?: string;
|
|
4
|
+
/** Header text. The `title` slot overrides it. */
|
|
5
|
+
title?: string;
|
|
6
|
+
/** A muted line under the title, e.g. a summary of the settings inside ("3 replicas · 10 GiB"). */
|
|
7
|
+
description?: string;
|
|
8
|
+
/** The item can't be opened or closed. */
|
|
9
|
+
disabled?: boolean;
|
|
10
|
+
/** Heading level of the title. Defaults to the parent AcAccordion's, or 3. */
|
|
11
|
+
headingLevel?: 2 | 3 | 4 | 5 | 6;
|
|
12
|
+
}
|
|
13
|
+
type __VLS_Props = Props;
|
|
14
|
+
type __VLS_Slots = {
|
|
15
|
+
/** The panel content, shown when open. */
|
|
16
|
+
default?: () => unknown;
|
|
17
|
+
/** Replaces the `title` text. Keep it to text and inline badges; it sits inside the header button. */
|
|
18
|
+
title?: () => unknown;
|
|
19
|
+
/** Replaces the `description` text. */
|
|
20
|
+
description?: () => unknown;
|
|
21
|
+
/** A 16px icon before the title. */
|
|
22
|
+
icon?: () => unknown;
|
|
23
|
+
};
|
|
24
|
+
type __VLS_ModelProps = {
|
|
25
|
+
/** Whether the item is open. Use `v-model:open` for a single item outside an AcAccordion. */
|
|
26
|
+
"open"?: boolean;
|
|
27
|
+
};
|
|
28
|
+
type __VLS_PublicProps = __VLS_Props & __VLS_ModelProps;
|
|
29
|
+
declare const __VLS_base: import("vue").DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
30
|
+
toggle: (open: boolean) => any;
|
|
31
|
+
"update:open": (value: boolean) => any;
|
|
32
|
+
}, string, import("vue").PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
|
|
33
|
+
onToggle?: ((open: boolean) => any) | undefined;
|
|
34
|
+
"onUpdate:open"?: ((value: boolean) => any) | undefined;
|
|
35
|
+
}>, {
|
|
36
|
+
headingLevel: 2 | 3 | 4 | 5 | 6;
|
|
37
|
+
title: string;
|
|
38
|
+
value: string;
|
|
39
|
+
description: string;
|
|
40
|
+
disabled: boolean;
|
|
41
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
42
|
+
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
43
|
+
declare const _default: typeof __VLS_export;
|
|
44
|
+
export default _default;
|
|
45
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
46
|
+
new (): {
|
|
47
|
+
$slots: S;
|
|
48
|
+
};
|
|
49
|
+
};
|
|
@@ -0,0 +1,81 @@
|
|
|
1
|
+
import { computed as e, createBlock as t, createCommentVNode as n, createElementBlock as r, createElementVNode as i, createTextVNode as a, createVNode as o, defineComponent as s, inject as c, mergeModels as l, normalizeClass as u, openBlock as d, renderSlot as f, resolveDynamicComponent as p, toDisplayString as m, unref as h, useId as g, useModel as _, watch as v, withCtx as y } from "vue";
|
|
2
|
+
import { ChevronDown as b } from "@lucide/vue";
|
|
3
|
+
//#region src/lib/components/AcAccordionItem.vue?vue&type=script&setup=true&lang.ts
|
|
4
|
+
var x = [
|
|
5
|
+
"id",
|
|
6
|
+
"aria-expanded",
|
|
7
|
+
"aria-controls",
|
|
8
|
+
"disabled"
|
|
9
|
+
], S = {
|
|
10
|
+
key: 0,
|
|
11
|
+
class: "inline-flex shrink-0 text-muted [&_svg]:size-4",
|
|
12
|
+
"aria-hidden": "true"
|
|
13
|
+
}, C = { class: "min-w-0 flex-1" }, w = { class: "block text-lg leading-6 font-medium text-heading" }, T = {
|
|
14
|
+
key: 0,
|
|
15
|
+
class: "mt-0.5 block text-xs text-muted"
|
|
16
|
+
}, E = [
|
|
17
|
+
"id",
|
|
18
|
+
"aria-labelledby",
|
|
19
|
+
"inert"
|
|
20
|
+
], D = /*@__PURE__*/ s({
|
|
21
|
+
__name: "AcAccordionItem",
|
|
22
|
+
props: /*@__PURE__*/ l({
|
|
23
|
+
value: { default: void 0 },
|
|
24
|
+
title: { default: "" },
|
|
25
|
+
description: { default: "" },
|
|
26
|
+
disabled: {
|
|
27
|
+
type: Boolean,
|
|
28
|
+
default: !1
|
|
29
|
+
},
|
|
30
|
+
headingLevel: { default: void 0 }
|
|
31
|
+
}, {
|
|
32
|
+
open: {
|
|
33
|
+
type: Boolean,
|
|
34
|
+
default: !1
|
|
35
|
+
},
|
|
36
|
+
openModifiers: {}
|
|
37
|
+
}),
|
|
38
|
+
emits: /*@__PURE__*/ l(["toggle"], ["update:open"]),
|
|
39
|
+
setup(s, { emit: l }) {
|
|
40
|
+
let D = s, O = _(s, "open"), k = l, A = c("ac-accordion", null), j = g(), M = e(() => D.value ?? j), N = e(() => A ? A.isOpen(M.value) : O.value), P = e(() => D.headingLevel ?? A?.headingLevel.value ?? 3), F = e(() => A?.variant.value ?? "separated");
|
|
41
|
+
function I() {
|
|
42
|
+
if (D.disabled) return;
|
|
43
|
+
let e = !N.value;
|
|
44
|
+
A ? A.toggle(M.value) : O.value = e, k("toggle", e);
|
|
45
|
+
}
|
|
46
|
+
return v(N, (e) => {
|
|
47
|
+
A && (O.value = e);
|
|
48
|
+
}), (e, c) => (d(), r("div", {
|
|
49
|
+
class: u(F.value === "separated" && "overflow-hidden rounded-10 border border-border bg-surface shadow-xs"),
|
|
50
|
+
"data-ac-ds": "",
|
|
51
|
+
"data-testid": "ac-accordion-item"
|
|
52
|
+
}, [(d(), t(p(`h${P.value}`), { class: "m-0 text-base leading-5 font-normal tracking-normal" }, {
|
|
53
|
+
default: y(() => [i("button", {
|
|
54
|
+
id: `${h(j)}-trigger`,
|
|
55
|
+
type: "button",
|
|
56
|
+
"data-accordion-trigger": "",
|
|
57
|
+
"aria-expanded": N.value,
|
|
58
|
+
"aria-controls": `${h(j)}-panel`,
|
|
59
|
+
disabled: s.disabled,
|
|
60
|
+
class: u(["flex w-full cursor-pointer items-center gap-3 py-3 text-left transition-colors duration-150 focus-visible:outline-none focus-visible:ring-[3px] focus-visible:ring-ring focus-visible:ring-inset disabled:cursor-not-allowed disabled:opacity-50", [F.value === "flush" ? "px-1" : "px-4", !s.disabled && "hover:bg-surface-muted"]]),
|
|
61
|
+
onClick: I
|
|
62
|
+
}, [
|
|
63
|
+
e.$slots.icon ? (d(), r("span", S, [f(e.$slots, "icon")])) : n("", !0),
|
|
64
|
+
i("span", C, [i("span", w, [f(e.$slots, "title", {}, () => [a(m(s.title), 1)])]), s.description || e.$slots.description ? (d(), r("span", T, [f(e.$slots, "description", {}, () => [a(m(s.description), 1)])])) : n("", !0)]),
|
|
65
|
+
o(h(b), {
|
|
66
|
+
class: u(["size-4 shrink-0 text-muted transition-transform duration-200 ease-out-soft motion-reduce:transition-none", N.value && "rotate-180 text-heading"]),
|
|
67
|
+
"aria-hidden": "true"
|
|
68
|
+
}, null, 8, ["class"])
|
|
69
|
+
], 10, x)]),
|
|
70
|
+
_: 3
|
|
71
|
+
})), i("div", { class: u(["grid transition-[grid-template-rows] duration-200 ease-out-soft motion-reduce:transition-none", N.value ? "grid-rows-[1fr]" : "grid-rows-[0fr]"]) }, [i("div", {
|
|
72
|
+
id: `${h(j)}-panel`,
|
|
73
|
+
role: "region",
|
|
74
|
+
"aria-labelledby": `${h(j)}-trigger`,
|
|
75
|
+
inert: !N.value || void 0,
|
|
76
|
+
class: "min-h-0 overflow-hidden"
|
|
77
|
+
}, [i("div", { class: u(["pt-1 pb-4 text-base text-body", F.value === "flush" ? "px-1" : "px-4"]) }, [f(e.$slots, "default")], 2)], 8, E)], 2)], 2));
|
|
78
|
+
}
|
|
79
|
+
});
|
|
80
|
+
//#endregion
|
|
81
|
+
export { D as default };
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
import type { Component } from "vue";
|
|
2
|
+
import type { Tone } from "./types";
|
|
3
|
+
export interface Props {
|
|
4
|
+
/** Status colour of the border, tint and icon. */
|
|
5
|
+
color?: Tone | "neutral";
|
|
6
|
+
/** Optional bold first line above the message. */
|
|
7
|
+
title?: string;
|
|
8
|
+
/** Shows a close button that emits `close`. */
|
|
9
|
+
dismissible?: boolean;
|
|
10
|
+
/** Hides the status icon, for dense inline messages. */
|
|
11
|
+
hideIcon?: boolean;
|
|
12
|
+
/** A Lucide icon component to replace the colour's default icon. */
|
|
13
|
+
icon?: Component;
|
|
14
|
+
/** Text of a small button on the right that emits `action`, such as "Retry" or "Upgrade". */
|
|
15
|
+
actionLabel?: string;
|
|
16
|
+
/** A Lucide icon component shown in the action button, before `action-label`. */
|
|
17
|
+
actionIcon?: Component;
|
|
18
|
+
/** Shows a spinner in the action button and blocks clicks while the action runs. */
|
|
19
|
+
actionLoading?: boolean;
|
|
20
|
+
}
|
|
21
|
+
type __VLS_Slots = {
|
|
22
|
+
/** The message. Links inside are underlined in the alert's colour. */
|
|
23
|
+
default?: () => unknown;
|
|
24
|
+
/** Replaces the status icon, e.g. with a custom SVG. */
|
|
25
|
+
icon?: () => unknown;
|
|
26
|
+
/** Buttons on the right of the message (wrapping below it on narrow screens). Use `AcButton size="small"`. Replaces `action-label`. */
|
|
27
|
+
actions?: () => unknown;
|
|
28
|
+
};
|
|
29
|
+
declare const __VLS_base: import("vue").DefineComponent<Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
30
|
+
close: () => any;
|
|
31
|
+
action: (event: MouseEvent) => any;
|
|
32
|
+
}, string, import("vue").PublicProps, Readonly<Props> & Readonly<{
|
|
33
|
+
onClose?: (() => any) | undefined;
|
|
34
|
+
onAction?: ((event: MouseEvent) => any) | undefined;
|
|
35
|
+
}>, {
|
|
36
|
+
title: string;
|
|
37
|
+
icon: Component;
|
|
38
|
+
color: Tone | "neutral";
|
|
39
|
+
dismissible: boolean;
|
|
40
|
+
hideIcon: boolean;
|
|
41
|
+
actionLabel: string;
|
|
42
|
+
actionIcon: Component;
|
|
43
|
+
actionLoading: boolean;
|
|
44
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
45
|
+
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
46
|
+
declare const _default: typeof __VLS_export;
|
|
47
|
+
export default _default;
|
|
48
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
49
|
+
new (): {
|
|
50
|
+
$slots: S;
|
|
51
|
+
};
|
|
52
|
+
};
|
|
@@ -0,0 +1,121 @@
|
|
|
1
|
+
import e from "./AcButton.js";
|
|
2
|
+
import { computed as t, createBlock as n, createCommentVNode as r, createElementBlock as i, createElementVNode as a, createSlots as o, createVNode as s, defineComponent as c, normalizeClass as l, openBlock as u, renderSlot as d, resolveDynamicComponent as f, toDisplayString as p, unref as m, withCtx as h } from "vue";
|
|
3
|
+
import { CircleAlert as g, CircleCheck as _, Info as v, TriangleAlert as y, X as b } from "@lucide/vue";
|
|
4
|
+
//#region src/lib/components/AcAlert.vue?vue&type=script&setup=true&lang.ts
|
|
5
|
+
var x = ["role"], S = { class: "flex min-w-0 flex-1 flex-wrap items-center gap-x-4 gap-y-2" }, C = { class: "min-w-0 flex-[1_1_256px]" }, w = {
|
|
6
|
+
key: 0,
|
|
7
|
+
class: "-my-1 flex shrink-0 flex-wrap items-center gap-2"
|
|
8
|
+
}, T = /*@__PURE__*/ c({
|
|
9
|
+
__name: "AcAlert",
|
|
10
|
+
props: {
|
|
11
|
+
color: { default: "info" },
|
|
12
|
+
title: { default: "" },
|
|
13
|
+
dismissible: {
|
|
14
|
+
type: Boolean,
|
|
15
|
+
default: !1
|
|
16
|
+
},
|
|
17
|
+
hideIcon: {
|
|
18
|
+
type: Boolean,
|
|
19
|
+
default: !1
|
|
20
|
+
},
|
|
21
|
+
icon: { default: void 0 },
|
|
22
|
+
actionLabel: { default: "" },
|
|
23
|
+
actionIcon: { default: void 0 },
|
|
24
|
+
actionLoading: {
|
|
25
|
+
type: Boolean,
|
|
26
|
+
default: !1
|
|
27
|
+
}
|
|
28
|
+
},
|
|
29
|
+
emits: ["close", "action"],
|
|
30
|
+
setup(c, { emit: T }) {
|
|
31
|
+
let E = c, D = T, O = {
|
|
32
|
+
primary: {
|
|
33
|
+
box: "border-primary-90 bg-primary-97",
|
|
34
|
+
title: "text-primary-10",
|
|
35
|
+
body: "text-primary-20",
|
|
36
|
+
icon: "text-primary",
|
|
37
|
+
glyph: v
|
|
38
|
+
},
|
|
39
|
+
info: {
|
|
40
|
+
box: "border-blue-90 bg-blue-97",
|
|
41
|
+
title: "text-blue-10",
|
|
42
|
+
body: "text-blue-20",
|
|
43
|
+
icon: "text-blue-50",
|
|
44
|
+
glyph: v
|
|
45
|
+
},
|
|
46
|
+
success: {
|
|
47
|
+
box: "border-green-90 bg-green-97",
|
|
48
|
+
title: "text-green-10",
|
|
49
|
+
body: "text-green-20",
|
|
50
|
+
icon: "text-green-40",
|
|
51
|
+
glyph: _
|
|
52
|
+
},
|
|
53
|
+
warning: {
|
|
54
|
+
box: "border-yellow-80 bg-yellow-97",
|
|
55
|
+
title: "text-yellow-10",
|
|
56
|
+
body: "text-yellow-20",
|
|
57
|
+
icon: "text-yellow-50",
|
|
58
|
+
glyph: y
|
|
59
|
+
},
|
|
60
|
+
danger: {
|
|
61
|
+
box: "border-red-90 bg-red-97",
|
|
62
|
+
title: "text-red-10",
|
|
63
|
+
body: "text-red-20",
|
|
64
|
+
icon: "text-red-40",
|
|
65
|
+
glyph: g
|
|
66
|
+
},
|
|
67
|
+
neutral: {
|
|
68
|
+
box: "border-border bg-surface-muted",
|
|
69
|
+
title: "text-heading",
|
|
70
|
+
body: "text-body",
|
|
71
|
+
icon: "text-muted",
|
|
72
|
+
glyph: v
|
|
73
|
+
}
|
|
74
|
+
}, k = t(() => O[E.color]), A = t(() => E.icon ?? k.value.glyph), j = t(() => E.color === "neutral" ? "white" : E.color);
|
|
75
|
+
return (t, g) => (u(), i("div", {
|
|
76
|
+
class: l(["flex items-start gap-3 rounded-10 border px-4 py-3 text-base [&_a]:font-medium [&_a]:underline [&_a]:decoration-current/40 [&_a]:underline-offset-2 [&_a:hover]:decoration-current", [k.value.box, k.value.body]]),
|
|
77
|
+
role: c.color === "danger" || c.color === "warning" ? "alert" : "status",
|
|
78
|
+
"data-ac-ds": "",
|
|
79
|
+
"data-testid": "ac-alert"
|
|
80
|
+
}, [
|
|
81
|
+
c.hideIcon ? r("", !0) : (u(), i("span", {
|
|
82
|
+
key: 0,
|
|
83
|
+
class: l(["mt-0.5 inline-flex shrink-0 [&_svg]:size-4", k.value.icon]),
|
|
84
|
+
"aria-hidden": "true"
|
|
85
|
+
}, [d(t.$slots, "icon", {}, () => [(u(), n(f(A.value)))])], 2)),
|
|
86
|
+
a("div", S, [a("div", C, [c.title ? (u(), i("p", {
|
|
87
|
+
key: 0,
|
|
88
|
+
class: l(["font-semibold", k.value.title])
|
|
89
|
+
}, p(c.title), 3)) : r("", !0), a("div", { class: l(c.title && "mt-0.5") }, [d(t.$slots, "default")], 2)]), t.$slots.actions || c.actionLabel ? (u(), i("div", w, [d(t.$slots, "actions", {}, () => [s(e, {
|
|
90
|
+
title: c.actionLabel,
|
|
91
|
+
color: j.value,
|
|
92
|
+
variant: "outlined",
|
|
93
|
+
size: "small",
|
|
94
|
+
loading: c.actionLoading,
|
|
95
|
+
"data-ac-ds": "",
|
|
96
|
+
"data-testid": "ac-alert-action",
|
|
97
|
+
onClick: g[0] ||= (e) => D("action", e)
|
|
98
|
+
}, o({ _: 2 }, [c.actionIcon ? {
|
|
99
|
+
name: "icon",
|
|
100
|
+
fn: h(() => [(u(), n(f(c.actionIcon)))]),
|
|
101
|
+
key: "0"
|
|
102
|
+
} : void 0]), 1032, [
|
|
103
|
+
"title",
|
|
104
|
+
"color",
|
|
105
|
+
"loading"
|
|
106
|
+
])])])) : r("", !0)]),
|
|
107
|
+
c.dismissible ? (u(), i("button", {
|
|
108
|
+
key: 1,
|
|
109
|
+
type: "button",
|
|
110
|
+
class: "-my-0.5 -mr-1.5 inline-flex size-6 shrink-0 cursor-pointer items-center justify-center rounded-6 opacity-70 transition hover:bg-current/8 hover:opacity-100 focus-visible:outline-none focus-visible:ring-[3px] focus-visible:ring-ring",
|
|
111
|
+
"aria-label": "Dismiss",
|
|
112
|
+
onClick: g[1] ||= (e) => D("close")
|
|
113
|
+
}, [s(m(b), {
|
|
114
|
+
class: "size-3.5",
|
|
115
|
+
"aria-hidden": "true"
|
|
116
|
+
})])) : r("", !0)
|
|
117
|
+
], 10, x));
|
|
118
|
+
}
|
|
119
|
+
});
|
|
120
|
+
//#endregion
|
|
121
|
+
export { T as default };
|
|
@@ -0,0 +1,83 @@
|
|
|
1
|
+
import type { Component } from "vue";
|
|
2
|
+
export interface AppSwitcherApp {
|
|
3
|
+
/** Key of the app. Also the URL path: `db` opens `${baseUrl}/db/`. */
|
|
4
|
+
name: string;
|
|
5
|
+
/** Product name on the tile. */
|
|
6
|
+
title: string;
|
|
7
|
+
/** One line about the app. Old `sub_title`. */
|
|
8
|
+
subtitle?: string;
|
|
9
|
+
/** Full URL. Without it the URL is built from `baseUrl`, `name` and `port`. */
|
|
10
|
+
url?: string;
|
|
11
|
+
/** Dev-server port, used when `baseUrl` is `localhost` or `bb.test`. */
|
|
12
|
+
port?: string;
|
|
13
|
+
/** A Lucide icon component for the tile. */
|
|
14
|
+
icon?: Component;
|
|
15
|
+
/** Image URL for the tile, e.g. a product logo PNG. Wins over `icon`. Old `icon_url`. */
|
|
16
|
+
iconUrl?: string;
|
|
17
|
+
/** Tint of the icon tile. */
|
|
18
|
+
color?: "primary" | "blue" | "green" | "yellow" | "purple" | "red" | "slate";
|
|
19
|
+
}
|
|
20
|
+
export interface Props {
|
|
21
|
+
/** The app this is rendered in. It's marked as current (or hidden with `hideCurrent`). `id` is accepted as `platform`. */
|
|
22
|
+
currentApp?: "console" | "db" | "platform" | "id" | "billing" | "selfhost" | "learn" | "grafana" | "observe" | (string & {});
|
|
23
|
+
/** Origin the app URLs are built on, e.g. `https://appscode.com`. `localhost` and `bb.test` use each app's dev port. Any other origin counts as self-hosted. */
|
|
24
|
+
baseUrl?: string;
|
|
25
|
+
/** Organization to open Grafana in; written to the `gorg` cookie when Grafana is clicked. */
|
|
26
|
+
activeOrganization?: string;
|
|
27
|
+
/** Cookie domain for `gorg`, e.g. `.appscode.com`. */
|
|
28
|
+
rootDomain?: string;
|
|
29
|
+
/** Type of the active organization. Type `3` (client org) has no Console; type `6` keeps Billing on an offline installer. */
|
|
30
|
+
activeOrgType?: number;
|
|
31
|
+
/** Air-gapped offline installer: on a self-hosted origin, Billing stays in the list for org type `6`. */
|
|
32
|
+
isOfflineInstaller?: boolean;
|
|
33
|
+
/** Replaces the built-in AppsCode list. Entries without `url` get one built from `baseUrl`; the self-host and org-type rules aren't applied. */
|
|
34
|
+
apps?: AppSwitcherApp[];
|
|
35
|
+
/** Leaves the current app out of the grid, as the old component did. */
|
|
36
|
+
hideCurrent?: boolean;
|
|
37
|
+
/** Accessible name of the grid button, and the panel heading. */
|
|
38
|
+
label?: string;
|
|
39
|
+
/** Which edge of the button the panel lines up with. `end` suits the right side of the navbar. */
|
|
40
|
+
align?: "start" | "end";
|
|
41
|
+
}
|
|
42
|
+
type __VLS_Props = Props;
|
|
43
|
+
type __VLS_Slots = {
|
|
44
|
+
/** Content under the grid, e.g. a link to all products. */
|
|
45
|
+
footer?: (props: {
|
|
46
|
+
close: () => void;
|
|
47
|
+
}) => unknown;
|
|
48
|
+
};
|
|
49
|
+
type __VLS_ModelProps = {
|
|
50
|
+
/** Whether the panel is open. Bind with `v-model:open`. */
|
|
51
|
+
"open"?: boolean;
|
|
52
|
+
};
|
|
53
|
+
type __VLS_PublicProps = __VLS_Props & __VLS_ModelProps;
|
|
54
|
+
declare const __VLS_base: import("vue").DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
55
|
+
select: (app: AppSwitcherApp & {
|
|
56
|
+
url: string;
|
|
57
|
+
}) => any;
|
|
58
|
+
"update:open": (value: boolean) => any;
|
|
59
|
+
}, string, import("vue").PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
|
|
60
|
+
onSelect?: ((app: AppSwitcherApp & {
|
|
61
|
+
url: string;
|
|
62
|
+
}) => any) | undefined;
|
|
63
|
+
"onUpdate:open"?: ((value: boolean) => any) | undefined;
|
|
64
|
+
}>, {
|
|
65
|
+
label: string;
|
|
66
|
+
currentApp: "console" | "db" | "platform" | "id" | "billing" | "selfhost" | "learn" | "grafana" | "observe" | (string & {});
|
|
67
|
+
baseUrl: string;
|
|
68
|
+
activeOrganization: string;
|
|
69
|
+
rootDomain: string;
|
|
70
|
+
activeOrgType: number;
|
|
71
|
+
isOfflineInstaller: boolean;
|
|
72
|
+
apps: AppSwitcherApp[];
|
|
73
|
+
hideCurrent: boolean;
|
|
74
|
+
align: "start" | "end";
|
|
75
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
76
|
+
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
77
|
+
declare const _default: typeof __VLS_export;
|
|
78
|
+
export default _default;
|
|
79
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
80
|
+
new (): {
|
|
81
|
+
$slots: S;
|
|
82
|
+
};
|
|
83
|
+
};
|