@skdx/vue-blocks 0.34.0 → 0.35.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/dist/chat-composer/ChatComposer.vue.cjs +1 -0
- package/dist/chat-composer/ChatComposer.vue.d.cts +104 -0
- package/dist/chat-composer/ChatComposer.vue.d.ts +104 -0
- package/dist/chat-composer/ChatComposer.vue.js +1 -0
- package/dist/chat-composer/ChatComposer.vue_vue_type_script_setup_true_lang.cjs +1 -0
- package/dist/chat-composer/ChatComposer.vue_vue_type_script_setup_true_lang.js +1 -0
- package/dist/chat-composer/index.cjs +1 -0
- package/dist/chat-composer/index.d.cts +2 -0
- package/dist/chat-composer/index.d.ts +2 -0
- package/dist/chat-composer/index.js +1 -0
- package/dist/chat-composer/types.d.cts +7 -0
- package/dist/chat-composer/types.d.ts +7 -0
- package/dist/chat-message/ChatMessage.vue.cjs +1 -0
- package/dist/chat-message/ChatMessage.vue.d.cts +73 -0
- package/dist/chat-message/ChatMessage.vue.d.ts +73 -0
- package/dist/chat-message/ChatMessage.vue.js +1 -0
- package/dist/chat-message/ChatMessage.vue_vue_type_script_setup_true_lang.cjs +1 -0
- package/dist/chat-message/ChatMessage.vue_vue_type_script_setup_true_lang.js +1 -0
- package/dist/chat-message/index.cjs +1 -0
- package/dist/chat-message/index.d.cts +1 -0
- package/dist/chat-message/index.d.ts +1 -0
- package/dist/chat-message/index.js +1 -0
- package/dist/chat-message/types.d.cts +0 -0
- package/dist/chat-message/types.d.ts +0 -0
- package/dist/comment/Comment.vue.cjs +1 -0
- package/dist/comment/Comment.vue.d.cts +65 -0
- package/dist/comment/Comment.vue.d.ts +65 -0
- package/dist/comment/Comment.vue.js +1 -0
- package/dist/comment/Comment.vue_vue_type_script_setup_true_lang.cjs +1 -0
- package/dist/comment/Comment.vue_vue_type_script_setup_true_lang.js +1 -0
- package/dist/comment/index.cjs +1 -0
- package/dist/comment/index.d.cts +1 -0
- package/dist/comment/index.d.ts +1 -0
- package/dist/comment/index.js +1 -0
- package/dist/comment/types.d.cts +0 -0
- package/dist/comment/types.d.ts +0 -0
- package/dist/comment-thread/CommentThread.vue.cjs +1 -0
- package/dist/comment-thread/CommentThread.vue.d.cts +65 -0
- package/dist/comment-thread/CommentThread.vue.d.ts +65 -0
- package/dist/comment-thread/CommentThread.vue.js +1 -0
- package/dist/comment-thread/CommentThread.vue_vue_type_script_setup_true_lang.cjs +1 -0
- package/dist/comment-thread/CommentThread.vue_vue_type_script_setup_true_lang.js +1 -0
- package/dist/comment-thread/index.cjs +1 -0
- package/dist/comment-thread/index.d.cts +1 -0
- package/dist/comment-thread/index.d.ts +1 -0
- package/dist/comment-thread/index.js +1 -0
- package/dist/comment-thread/types.d.cts +0 -0
- package/dist/comment-thread/types.d.ts +0 -0
- package/dist/confirm-dialog/ConfirmDialog.vue.cjs +1 -0
- package/dist/confirm-dialog/ConfirmDialog.vue.d.cts +114 -0
- package/dist/confirm-dialog/ConfirmDialog.vue.d.ts +114 -0
- package/dist/confirm-dialog/ConfirmDialog.vue.js +1 -0
- package/dist/confirm-dialog/ConfirmDialog.vue_vue_type_script_setup_true_lang.cjs +1 -0
- package/dist/confirm-dialog/ConfirmDialog.vue_vue_type_script_setup_true_lang.js +1 -0
- package/dist/confirm-dialog/index.cjs +1 -0
- package/dist/confirm-dialog/index.d.cts +2 -0
- package/dist/confirm-dialog/index.d.ts +2 -0
- package/dist/confirm-dialog/index.js +1 -0
- package/dist/confirm-dialog/types.d.cts +2 -0
- package/dist/confirm-dialog/types.d.ts +2 -0
- package/dist/conversation-list/ConversationList.vue.cjs +1 -0
- package/dist/conversation-list/ConversationList.vue.d.cts +86 -0
- package/dist/conversation-list/ConversationList.vue.d.ts +86 -0
- package/dist/conversation-list/ConversationList.vue.js +1 -0
- package/dist/conversation-list/ConversationList.vue_vue_type_script_setup_true_lang.cjs +1 -0
- package/dist/conversation-list/ConversationList.vue_vue_type_script_setup_true_lang.js +1 -0
- package/dist/conversation-list/index.cjs +1 -0
- package/dist/conversation-list/index.d.cts +2 -0
- package/dist/conversation-list/index.d.ts +2 -0
- package/dist/conversation-list/index.js +1 -0
- package/dist/conversation-list/types.d.cts +38 -0
- package/dist/conversation-list/types.d.ts +38 -0
- package/dist/empty-state/EmptyState.vue.cjs +1 -0
- package/dist/empty-state/EmptyState.vue.d.cts +57 -0
- package/dist/empty-state/EmptyState.vue.d.ts +57 -0
- package/dist/empty-state/EmptyState.vue.js +1 -0
- package/dist/empty-state/EmptyState.vue_vue_type_script_setup_true_lang.cjs +1 -0
- package/dist/empty-state/EmptyState.vue_vue_type_script_setup_true_lang.js +1 -0
- package/dist/empty-state/index.cjs +1 -0
- package/dist/empty-state/index.d.cts +2 -0
- package/dist/empty-state/index.d.ts +2 -0
- package/dist/empty-state/index.js +1 -0
- package/dist/empty-state/types.d.cts +6 -0
- package/dist/empty-state/types.d.ts +6 -0
- package/dist/filter-bar/FilterBar.vue.cjs +1 -0
- package/dist/filter-bar/FilterBar.vue.d.cts +97 -0
- package/dist/filter-bar/FilterBar.vue.d.ts +97 -0
- package/dist/filter-bar/FilterBar.vue.js +1 -0
- package/dist/filter-bar/FilterBar.vue_vue_type_script_setup_true_lang.cjs +1 -0
- package/dist/filter-bar/FilterBar.vue_vue_type_script_setup_true_lang.js +1 -0
- package/dist/filter-bar/index.cjs +1 -0
- package/dist/filter-bar/index.d.cts +2 -0
- package/dist/filter-bar/index.d.ts +2 -0
- package/dist/filter-bar/index.js +1 -0
- package/dist/filter-bar/types.d.cts +7 -0
- package/dist/filter-bar/types.d.ts +7 -0
- package/dist/forgot-password-page/ForgotPasswordPage.vue.cjs +1 -0
- package/dist/forgot-password-page/ForgotPasswordPage.vue.d.cts +76 -0
- package/dist/forgot-password-page/ForgotPasswordPage.vue.d.ts +76 -0
- package/dist/forgot-password-page/ForgotPasswordPage.vue.js +1 -0
- package/dist/forgot-password-page/ForgotPasswordPage.vue_vue_type_script_setup_true_lang.cjs +1 -0
- package/dist/forgot-password-page/ForgotPasswordPage.vue_vue_type_script_setup_true_lang.js +1 -0
- package/dist/forgot-password-page/index.cjs +1 -0
- package/dist/forgot-password-page/index.d.cts +2 -0
- package/dist/forgot-password-page/index.d.ts +2 -0
- package/dist/forgot-password-page/index.js +1 -0
- package/dist/forgot-password-page/types.d.cts +5 -0
- package/dist/forgot-password-page/types.d.ts +5 -0
- package/dist/form-section/FormSection.vue.cjs +1 -0
- package/dist/form-section/FormSection.vue.d.cts +49 -0
- package/dist/form-section/FormSection.vue.d.ts +49 -0
- package/dist/form-section/FormSection.vue.js +1 -0
- package/dist/form-section/FormSection.vue_vue_type_script_setup_true_lang.cjs +1 -0
- package/dist/form-section/FormSection.vue_vue_type_script_setup_true_lang.js +1 -0
- package/dist/form-section/index.cjs +1 -0
- package/dist/form-section/index.d.cts +2 -0
- package/dist/form-section/index.d.ts +2 -0
- package/dist/form-section/index.js +1 -0
- package/dist/form-section/types.d.cts +2 -0
- package/dist/form-section/types.d.ts +2 -0
- package/dist/index.cjs +1 -1
- package/dist/index.d.cts +19 -0
- package/dist/index.d.ts +19 -0
- package/dist/index.js +1 -1
- package/dist/notification-center/NotificationCenter.vue.cjs +1 -0
- package/dist/notification-center/NotificationCenter.vue.d.cts +111 -0
- package/dist/notification-center/NotificationCenter.vue.d.ts +111 -0
- package/dist/notification-center/NotificationCenter.vue.js +1 -0
- package/dist/notification-center/NotificationCenter.vue_vue_type_script_setup_true_lang.cjs +1 -0
- package/dist/notification-center/NotificationCenter.vue_vue_type_script_setup_true_lang.js +1 -0
- package/dist/notification-center/index.cjs +1 -0
- package/dist/notification-center/index.d.cts +2 -0
- package/dist/notification-center/index.d.ts +2 -0
- package/dist/notification-center/index.js +1 -0
- package/dist/notification-center/types.d.cts +23 -0
- package/dist/notification-center/types.d.ts +23 -0
- package/dist/onboarding-checklist/OnboardingChecklist.vue.cjs +1 -0
- package/dist/onboarding-checklist/OnboardingChecklist.vue.d.cts +59 -0
- package/dist/onboarding-checklist/OnboardingChecklist.vue.d.ts +59 -0
- package/dist/onboarding-checklist/OnboardingChecklist.vue.js +1 -0
- package/dist/onboarding-checklist/OnboardingChecklist.vue_vue_type_script_setup_true_lang.cjs +1 -0
- package/dist/onboarding-checklist/OnboardingChecklist.vue_vue_type_script_setup_true_lang.js +1 -0
- package/dist/onboarding-checklist/index.cjs +1 -0
- package/dist/onboarding-checklist/index.d.cts +3 -0
- package/dist/onboarding-checklist/index.d.ts +3 -0
- package/dist/onboarding-checklist/index.js +1 -0
- package/dist/onboarding-checklist/types.cjs +1 -0
- package/dist/onboarding-checklist/types.d.cts +31 -0
- package/dist/onboarding-checklist/types.d.ts +31 -0
- package/dist/onboarding-checklist/types.js +1 -0
- package/dist/reset-password-page/ResetPasswordPage.vue.cjs +1 -0
- package/dist/reset-password-page/ResetPasswordPage.vue.d.cts +85 -0
- package/dist/reset-password-page/ResetPasswordPage.vue.d.ts +85 -0
- package/dist/reset-password-page/ResetPasswordPage.vue.js +1 -0
- package/dist/reset-password-page/ResetPasswordPage.vue_vue_type_script_setup_true_lang.cjs +1 -0
- package/dist/reset-password-page/ResetPasswordPage.vue_vue_type_script_setup_true_lang.js +1 -0
- package/dist/reset-password-page/index.cjs +1 -0
- package/dist/reset-password-page/index.d.cts +2 -0
- package/dist/reset-password-page/index.d.ts +2 -0
- package/dist/reset-password-page/index.js +1 -0
- package/dist/reset-password-page/types.d.cts +5 -0
- package/dist/reset-password-page/types.d.ts +5 -0
- package/dist/sign-up-page/SignUpPage.vue.cjs +1 -0
- package/dist/sign-up-page/SignUpPage.vue.d.cts +105 -0
- package/dist/sign-up-page/SignUpPage.vue.d.ts +105 -0
- package/dist/sign-up-page/SignUpPage.vue.js +1 -0
- package/dist/sign-up-page/SignUpPage.vue_vue_type_script_setup_true_lang.cjs +1 -0
- package/dist/sign-up-page/SignUpPage.vue_vue_type_script_setup_true_lang.js +1 -0
- package/dist/sign-up-page/index.cjs +1 -0
- package/dist/sign-up-page/index.d.cts +2 -0
- package/dist/sign-up-page/index.d.ts +2 -0
- package/dist/sign-up-page/index.js +1 -0
- package/dist/sign-up-page/types.d.cts +25 -0
- package/dist/sign-up-page/types.d.ts +25 -0
- package/dist/stat-card/StatCard.vue.cjs +1 -0
- package/dist/stat-card/StatCard.vue.d.cts +80 -0
- package/dist/stat-card/StatCard.vue.d.ts +80 -0
- package/dist/stat-card/StatCard.vue.js +1 -0
- package/dist/stat-card/StatCard.vue_vue_type_script_setup_true_lang.cjs +1 -0
- package/dist/stat-card/StatCard.vue_vue_type_script_setup_true_lang.js +1 -0
- package/dist/stat-card/index.cjs +1 -0
- package/dist/stat-card/index.d.cts +2 -0
- package/dist/stat-card/index.d.ts +2 -0
- package/dist/stat-card/index.js +1 -0
- package/dist/stat-card/types.d.cts +4 -0
- package/dist/stat-card/types.d.ts +4 -0
- package/dist/usage-card/UsageCard.vue.cjs +1 -0
- package/dist/usage-card/UsageCard.vue.d.cts +66 -0
- package/dist/usage-card/UsageCard.vue.d.ts +66 -0
- package/dist/usage-card/UsageCard.vue.js +1 -0
- package/dist/usage-card/UsageCard.vue_vue_type_script_setup_true_lang.cjs +1 -0
- package/dist/usage-card/UsageCard.vue_vue_type_script_setup_true_lang.js +1 -0
- package/dist/usage-card/index.cjs +1 -0
- package/dist/usage-card/index.d.cts +2 -0
- package/dist/usage-card/index.d.ts +2 -0
- package/dist/usage-card/index.js +1 -0
- package/dist/usage-card/types.d.cts +2 -0
- package/dist/usage-card/types.d.ts +2 -0
- package/dist/usage-card/usage.cjs +1 -0
- package/dist/usage-card/usage.d.cts +18 -0
- package/dist/usage-card/usage.d.ts +18 -0
- package/dist/usage-card/usage.js +1 -0
- package/dist/user-menu/UserMenu.vue.cjs +1 -0
- package/dist/user-menu/UserMenu.vue.d.cts +97 -0
- package/dist/user-menu/UserMenu.vue.d.ts +97 -0
- package/dist/user-menu/UserMenu.vue.js +1 -0
- package/dist/user-menu/UserMenu.vue_vue_type_script_setup_true_lang.cjs +1 -0
- package/dist/user-menu/UserMenu.vue_vue_type_script_setup_true_lang.js +1 -0
- package/dist/user-menu/index.cjs +1 -0
- package/dist/user-menu/index.d.cts +2 -0
- package/dist/user-menu/index.d.ts +2 -0
- package/dist/user-menu/index.js +1 -0
- package/dist/user-menu/types.d.cts +2 -0
- package/dist/user-menu/types.d.ts +2 -0
- package/dist/verification-page/VerificationPage.vue.cjs +1 -0
- package/dist/verification-page/VerificationPage.vue.d.cts +112 -0
- package/dist/verification-page/VerificationPage.vue.d.ts +112 -0
- package/dist/verification-page/VerificationPage.vue.js +1 -0
- package/dist/verification-page/VerificationPage.vue_vue_type_script_setup_true_lang.cjs +1 -0
- package/dist/verification-page/VerificationPage.vue_vue_type_script_setup_true_lang.js +1 -0
- package/dist/verification-page/index.cjs +1 -0
- package/dist/verification-page/index.d.cts +2 -0
- package/dist/verification-page/index.d.ts +2 -0
- package/dist/verification-page/index.js +1 -0
- package/dist/verification-page/types.d.cts +5 -0
- package/dist/verification-page/types.d.ts +5 -0
- package/dist/workspace-switcher/WorkspaceSwitcher.vue.cjs +1 -0
- package/dist/workspace-switcher/WorkspaceSwitcher.vue.d.cts +135 -0
- package/dist/workspace-switcher/WorkspaceSwitcher.vue.d.ts +135 -0
- package/dist/workspace-switcher/WorkspaceSwitcher.vue.js +1 -0
- package/dist/workspace-switcher/WorkspaceSwitcher.vue_vue_type_script_setup_true_lang.cjs +1 -0
- package/dist/workspace-switcher/WorkspaceSwitcher.vue_vue_type_script_setup_true_lang.js +1 -0
- package/dist/workspace-switcher/index.cjs +1 -0
- package/dist/workspace-switcher/index.d.cts +2 -0
- package/dist/workspace-switcher/index.d.ts +2 -0
- package/dist/workspace-switcher/index.js +1 -0
- package/dist/workspace-switcher/types.d.cts +22 -0
- package/dist/workspace-switcher/types.d.ts +22 -0
- package/package.json +193 -3
|
@@ -0,0 +1,135 @@
|
|
|
1
|
+
import type { WorkspaceSwitcherItem } from './types.cjs';
|
|
2
|
+
/**
|
|
3
|
+
* Switches the active context — workspace, organisation, team, account or project — from a searchable, groupable list in a popover, with loading, empty and footer regions.
|
|
4
|
+
*
|
|
5
|
+
* @example
|
|
6
|
+
* ```vue
|
|
7
|
+
* <SkdxWorkspaceSwitcher
|
|
8
|
+
* label="Switch workspace"
|
|
9
|
+
* default-value="acme"
|
|
10
|
+
* :items="[{ id: 'acme', label: 'Acme', description: 'Pro', group: 'Organisations' }]"
|
|
11
|
+
* @value-change="(id) => switchTo(id)"
|
|
12
|
+
* >
|
|
13
|
+
* <template #actions><SkdxButton>Create workspace</SkdxButton></template>
|
|
14
|
+
* </SkdxWorkspaceSwitcher>
|
|
15
|
+
* ```
|
|
16
|
+
*/
|
|
17
|
+
type __VLS_Props = {
|
|
18
|
+
/** Every context the user may switch to, rendered in the order given. */
|
|
19
|
+
items: readonly WorkspaceSwitcherItem[];
|
|
20
|
+
/**
|
|
21
|
+
* Id of the active context, for controlled usage. Pair with `v-model:value` or `@value-change`.
|
|
22
|
+
* @default undefined — uncontrolled, seeded from `defaultValue`.
|
|
23
|
+
*/
|
|
24
|
+
value?: string | undefined;
|
|
25
|
+
/**
|
|
26
|
+
* Id of the context active on first render, for uncontrolled usage.
|
|
27
|
+
* @default '' — the trigger shows the placeholder until something is picked.
|
|
28
|
+
*/
|
|
29
|
+
defaultValue?: string;
|
|
30
|
+
/**
|
|
31
|
+
* Trigger text shown while no item in the list is the active one.
|
|
32
|
+
* @default 'Select'
|
|
33
|
+
*/
|
|
34
|
+
placeholder?: string;
|
|
35
|
+
/**
|
|
36
|
+
* Accessible name for the trigger and the list, when the visible text is not enough.
|
|
37
|
+
* @default undefined — the trigger is named by its own visible text.
|
|
38
|
+
*/
|
|
39
|
+
label?: string | undefined;
|
|
40
|
+
/**
|
|
41
|
+
* Accessible name of the search field inside the open panel.
|
|
42
|
+
* @default 'Search'
|
|
43
|
+
*/
|
|
44
|
+
searchLabel?: string;
|
|
45
|
+
/**
|
|
46
|
+
* Placeholder text shown inside the panel's empty search field.
|
|
47
|
+
* @default undefined — the search field renders no placeholder.
|
|
48
|
+
*/
|
|
49
|
+
searchPlaceholder?: string | undefined;
|
|
50
|
+
/**
|
|
51
|
+
* Message shown in place of the list when the search matches nothing.
|
|
52
|
+
* @default 'No results'
|
|
53
|
+
*/
|
|
54
|
+
emptyMessage?: string;
|
|
55
|
+
/**
|
|
56
|
+
* Message announced beside the list while results are still in flight.
|
|
57
|
+
* @default 'Loading'
|
|
58
|
+
*/
|
|
59
|
+
loadingMessage?: string;
|
|
60
|
+
/**
|
|
61
|
+
* Marks the results as in flight, showing the loading message instead of the empty one.
|
|
62
|
+
* @default false
|
|
63
|
+
*/
|
|
64
|
+
loading?: boolean;
|
|
65
|
+
/**
|
|
66
|
+
* Visually hidden text appended to the active item, naming it for screen readers.
|
|
67
|
+
* @default 'Current'
|
|
68
|
+
*/
|
|
69
|
+
selectedLabel?: string;
|
|
70
|
+
/**
|
|
71
|
+
* Whether the panel is open, for controlled usage. Pair with `v-model:open` or `@open-change`.
|
|
72
|
+
* @default undefined — uncontrolled, seeded from `defaultOpen`.
|
|
73
|
+
*/
|
|
74
|
+
open?: boolean | undefined;
|
|
75
|
+
/**
|
|
76
|
+
* Whether the panel is open on first render, for uncontrolled usage.
|
|
77
|
+
* @default false
|
|
78
|
+
*/
|
|
79
|
+
defaultOpen?: boolean;
|
|
80
|
+
};
|
|
81
|
+
type __VLS_Slots = {
|
|
82
|
+
/** Content that replaces the derived trigger button entirely. */
|
|
83
|
+
trigger?(): unknown;
|
|
84
|
+
/** Decorative glyph — an avatar or a logo — for the item it decorates and for the trigger. */
|
|
85
|
+
leading?(props: {
|
|
86
|
+
item: WorkspaceSwitcherItem;
|
|
87
|
+
}): unknown;
|
|
88
|
+
/** Controls placed in the panel's footer, such as create and manage buttons. */
|
|
89
|
+
actions?(): unknown;
|
|
90
|
+
};
|
|
91
|
+
declare const __VLS_component: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
92
|
+
"update:open": (open: boolean) => any;
|
|
93
|
+
"open-change": (open: boolean) => any;
|
|
94
|
+
"open-change-complete": (open: boolean) => any;
|
|
95
|
+
"escape-key-down": (event: Event) => any;
|
|
96
|
+
"pointer-down-outside": (event: Event) => any;
|
|
97
|
+
"focus-outside": (event: Event) => any;
|
|
98
|
+
"interact-outside": (event: Event) => any;
|
|
99
|
+
"open-auto-focus": (event: Event) => any;
|
|
100
|
+
"close-auto-focus": (event: Event) => any;
|
|
101
|
+
"update:value": (value: string) => any;
|
|
102
|
+
"value-change": (value: string) => any;
|
|
103
|
+
}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
104
|
+
"onUpdate:open"?: (open: boolean) => any;
|
|
105
|
+
"onOpen-change"?: (open: boolean) => any;
|
|
106
|
+
"onOpen-change-complete"?: (open: boolean) => any;
|
|
107
|
+
"onEscape-key-down"?: (event: Event) => any;
|
|
108
|
+
"onPointer-down-outside"?: (event: Event) => any;
|
|
109
|
+
"onFocus-outside"?: (event: Event) => any;
|
|
110
|
+
"onInteract-outside"?: (event: Event) => any;
|
|
111
|
+
"onOpen-auto-focus"?: (event: Event) => any;
|
|
112
|
+
"onClose-auto-focus"?: (event: Event) => any;
|
|
113
|
+
"onUpdate:value"?: (value: string) => any;
|
|
114
|
+
"onValue-change"?: (value: string) => any;
|
|
115
|
+
}>, {
|
|
116
|
+
label: string | undefined;
|
|
117
|
+
placeholder: string;
|
|
118
|
+
loading: boolean;
|
|
119
|
+
open: boolean | undefined;
|
|
120
|
+
defaultOpen: boolean;
|
|
121
|
+
value: string | undefined;
|
|
122
|
+
defaultValue: string;
|
|
123
|
+
searchLabel: string;
|
|
124
|
+
searchPlaceholder: string | undefined;
|
|
125
|
+
emptyMessage: string;
|
|
126
|
+
loadingMessage: string;
|
|
127
|
+
selectedLabel: string;
|
|
128
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
129
|
+
declare const _default: __VLS_WithSlots<typeof __VLS_component, __VLS_Slots>;
|
|
130
|
+
export default _default;
|
|
131
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
132
|
+
new (): {
|
|
133
|
+
$slots: S;
|
|
134
|
+
};
|
|
135
|
+
};
|
|
@@ -0,0 +1,135 @@
|
|
|
1
|
+
import type { WorkspaceSwitcherItem } from './types.js';
|
|
2
|
+
/**
|
|
3
|
+
* Switches the active context — workspace, organisation, team, account or project — from a searchable, groupable list in a popover, with loading, empty and footer regions.
|
|
4
|
+
*
|
|
5
|
+
* @example
|
|
6
|
+
* ```vue
|
|
7
|
+
* <SkdxWorkspaceSwitcher
|
|
8
|
+
* label="Switch workspace"
|
|
9
|
+
* default-value="acme"
|
|
10
|
+
* :items="[{ id: 'acme', label: 'Acme', description: 'Pro', group: 'Organisations' }]"
|
|
11
|
+
* @value-change="(id) => switchTo(id)"
|
|
12
|
+
* >
|
|
13
|
+
* <template #actions><SkdxButton>Create workspace</SkdxButton></template>
|
|
14
|
+
* </SkdxWorkspaceSwitcher>
|
|
15
|
+
* ```
|
|
16
|
+
*/
|
|
17
|
+
type __VLS_Props = {
|
|
18
|
+
/** Every context the user may switch to, rendered in the order given. */
|
|
19
|
+
items: readonly WorkspaceSwitcherItem[];
|
|
20
|
+
/**
|
|
21
|
+
* Id of the active context, for controlled usage. Pair with `v-model:value` or `@value-change`.
|
|
22
|
+
* @default undefined — uncontrolled, seeded from `defaultValue`.
|
|
23
|
+
*/
|
|
24
|
+
value?: string | undefined;
|
|
25
|
+
/**
|
|
26
|
+
* Id of the context active on first render, for uncontrolled usage.
|
|
27
|
+
* @default '' — the trigger shows the placeholder until something is picked.
|
|
28
|
+
*/
|
|
29
|
+
defaultValue?: string;
|
|
30
|
+
/**
|
|
31
|
+
* Trigger text shown while no item in the list is the active one.
|
|
32
|
+
* @default 'Select'
|
|
33
|
+
*/
|
|
34
|
+
placeholder?: string;
|
|
35
|
+
/**
|
|
36
|
+
* Accessible name for the trigger and the list, when the visible text is not enough.
|
|
37
|
+
* @default undefined — the trigger is named by its own visible text.
|
|
38
|
+
*/
|
|
39
|
+
label?: string | undefined;
|
|
40
|
+
/**
|
|
41
|
+
* Accessible name of the search field inside the open panel.
|
|
42
|
+
* @default 'Search'
|
|
43
|
+
*/
|
|
44
|
+
searchLabel?: string;
|
|
45
|
+
/**
|
|
46
|
+
* Placeholder text shown inside the panel's empty search field.
|
|
47
|
+
* @default undefined — the search field renders no placeholder.
|
|
48
|
+
*/
|
|
49
|
+
searchPlaceholder?: string | undefined;
|
|
50
|
+
/**
|
|
51
|
+
* Message shown in place of the list when the search matches nothing.
|
|
52
|
+
* @default 'No results'
|
|
53
|
+
*/
|
|
54
|
+
emptyMessage?: string;
|
|
55
|
+
/**
|
|
56
|
+
* Message announced beside the list while results are still in flight.
|
|
57
|
+
* @default 'Loading'
|
|
58
|
+
*/
|
|
59
|
+
loadingMessage?: string;
|
|
60
|
+
/**
|
|
61
|
+
* Marks the results as in flight, showing the loading message instead of the empty one.
|
|
62
|
+
* @default false
|
|
63
|
+
*/
|
|
64
|
+
loading?: boolean;
|
|
65
|
+
/**
|
|
66
|
+
* Visually hidden text appended to the active item, naming it for screen readers.
|
|
67
|
+
* @default 'Current'
|
|
68
|
+
*/
|
|
69
|
+
selectedLabel?: string;
|
|
70
|
+
/**
|
|
71
|
+
* Whether the panel is open, for controlled usage. Pair with `v-model:open` or `@open-change`.
|
|
72
|
+
* @default undefined — uncontrolled, seeded from `defaultOpen`.
|
|
73
|
+
*/
|
|
74
|
+
open?: boolean | undefined;
|
|
75
|
+
/**
|
|
76
|
+
* Whether the panel is open on first render, for uncontrolled usage.
|
|
77
|
+
* @default false
|
|
78
|
+
*/
|
|
79
|
+
defaultOpen?: boolean;
|
|
80
|
+
};
|
|
81
|
+
type __VLS_Slots = {
|
|
82
|
+
/** Content that replaces the derived trigger button entirely. */
|
|
83
|
+
trigger?(): unknown;
|
|
84
|
+
/** Decorative glyph — an avatar or a logo — for the item it decorates and for the trigger. */
|
|
85
|
+
leading?(props: {
|
|
86
|
+
item: WorkspaceSwitcherItem;
|
|
87
|
+
}): unknown;
|
|
88
|
+
/** Controls placed in the panel's footer, such as create and manage buttons. */
|
|
89
|
+
actions?(): unknown;
|
|
90
|
+
};
|
|
91
|
+
declare const __VLS_component: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
92
|
+
"update:open": (open: boolean) => any;
|
|
93
|
+
"open-change": (open: boolean) => any;
|
|
94
|
+
"open-change-complete": (open: boolean) => any;
|
|
95
|
+
"escape-key-down": (event: Event) => any;
|
|
96
|
+
"pointer-down-outside": (event: Event) => any;
|
|
97
|
+
"focus-outside": (event: Event) => any;
|
|
98
|
+
"interact-outside": (event: Event) => any;
|
|
99
|
+
"open-auto-focus": (event: Event) => any;
|
|
100
|
+
"close-auto-focus": (event: Event) => any;
|
|
101
|
+
"update:value": (value: string) => any;
|
|
102
|
+
"value-change": (value: string) => any;
|
|
103
|
+
}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
104
|
+
"onUpdate:open"?: (open: boolean) => any;
|
|
105
|
+
"onOpen-change"?: (open: boolean) => any;
|
|
106
|
+
"onOpen-change-complete"?: (open: boolean) => any;
|
|
107
|
+
"onEscape-key-down"?: (event: Event) => any;
|
|
108
|
+
"onPointer-down-outside"?: (event: Event) => any;
|
|
109
|
+
"onFocus-outside"?: (event: Event) => any;
|
|
110
|
+
"onInteract-outside"?: (event: Event) => any;
|
|
111
|
+
"onOpen-auto-focus"?: (event: Event) => any;
|
|
112
|
+
"onClose-auto-focus"?: (event: Event) => any;
|
|
113
|
+
"onUpdate:value"?: (value: string) => any;
|
|
114
|
+
"onValue-change"?: (value: string) => any;
|
|
115
|
+
}>, {
|
|
116
|
+
label: string | undefined;
|
|
117
|
+
placeholder: string;
|
|
118
|
+
loading: boolean;
|
|
119
|
+
open: boolean | undefined;
|
|
120
|
+
defaultOpen: boolean;
|
|
121
|
+
value: string | undefined;
|
|
122
|
+
defaultValue: string;
|
|
123
|
+
searchLabel: string;
|
|
124
|
+
searchPlaceholder: string | undefined;
|
|
125
|
+
emptyMessage: string;
|
|
126
|
+
loadingMessage: string;
|
|
127
|
+
selectedLabel: string;
|
|
128
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
129
|
+
declare const _default: __VLS_WithSlots<typeof __VLS_component, __VLS_Slots>;
|
|
130
|
+
export default _default;
|
|
131
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
132
|
+
new (): {
|
|
133
|
+
$slots: S;
|
|
134
|
+
};
|
|
135
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import e from"./WorkspaceSwitcher.vue_vue_type_script_setup_true_lang.js";var r=e;export{r as default};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
const n=require("../internal/part.cjs");let e=require("vue"),E=require("@skdx/vue"),i=require("@skdx/vue/primitives/command"),k=require("@skdx/vue/primitives/popover");var O=(0,e.defineComponent)({inheritAttrs:!1,__name:"WorkspaceSwitcher",props:{items:{},value:{default:void 0},defaultValue:{default:""},placeholder:{default:"Select"},label:{default:void 0},searchLabel:{default:"Search"},searchPlaceholder:{default:void 0},emptyMessage:{default:"No results"},loadingMessage:{default:"Loading"},loading:{type:Boolean,default:!1},selectedLabel:{default:"Current"},open:{type:Boolean,default:void 0},defaultOpen:{type:Boolean,default:!1}},emits:["update:value","value-change","update:open","open-change","open-change-complete","escape-key-down","pointer-down-outside","focus-outside","interact-outside","open-auto-focus","close-auto-focus"],setup(l,{emit:C}){const u=l,s=C;function x(t,r){const o=r.toLowerCase(),a=new Map([[void 0,[]]]);for(const d of t){const p=a.get(d.group);p?p.push(d):a.set(d.group,[d])}const h=d=>o===""||d.id.toLowerCase().includes(o)||d.label.toLowerCase().includes(o)||(d.description?.toLowerCase().includes(o)??!1),P=[];for(const[d,p]of a)p.some(h)&&P.push({heading:d,items:p});return P}const y=(0,e.useAttrs)(),f=(0,e.ref)(""),g=(0,e.ref)(u.defaultValue),v=(0,e.ref)(u.defaultOpen),m=(0,e.computed)(()=>u.value??g.value),S=(0,e.computed)(()=>u.open??v.value),c=(0,e.computed)(()=>u.items.find(t=>t.id===m.value)),b=(0,e.computed)(()=>x(u.items,f.value)),B=(0,e.computed)(()=>(0,e.mergeProps)({"aria-label":u.label},y,{...n.skdxPart("workspace-switcher","root")}));function w(t){t||(f.value=""),u.open===void 0&&(v.value=t),s("update:open",t),s("open-change",t)}function V(t){u.value===void 0&&(g.value=t),s("update:value",t),s("value-change",t),w(!1)}function N(t){return t.description?[t.label,t.description]:[t.label]}function L(t){return t.heading===void 0?{}:{heading:t.heading}}return(t,r)=>((0,e.openBlock)(),(0,e.createBlock)((0,e.unref)(k.SkdxPopoverRoot),{open:S.value,modal:"none",onOpenChange:w,onOpenChangeComplete:r[7]||(r[7]=o=>s("open-change-complete",o))},{default:(0,e.withCtx)(()=>[(0,e.createVNode)((0,e.unref)(k.SkdxPopoverTrigger),(0,e.normalizeProps)((0,e.guardReactiveProps)(B.value)),{default:(0,e.withCtx)(()=>[(0,e.renderSlot)(t.$slots,"trigger",{},()=>[t.$slots.leading&&c.value?((0,e.openBlock)(),(0,e.createElementBlock)("span",(0,e.mergeProps)({key:0,"aria-hidden":"true"},(0,e.unref)(n.skdxPart)("workspace-switcher","leading")),[(0,e.renderSlot)(t.$slots,"leading",{item:c.value})],16)):(0,e.createCommentVNode)("",!0),(0,e.createElementVNode)("span",(0,e.normalizeProps)((0,e.guardReactiveProps)((0,e.unref)(n.skdxPart)("workspace-switcher","current"))),(0,e.toDisplayString)(c.value?.label??l.placeholder),17),c.value?.description?((0,e.openBlock)(),(0,e.createElementBlock)("span",(0,e.normalizeProps)((0,e.mergeProps)({key:1},(0,e.unref)(n.skdxPart)("workspace-switcher","description"))),(0,e.toDisplayString)(c.value.description),17)):(0,e.createCommentVNode)("",!0)])]),_:3},16),(0,e.createVNode)((0,e.unref)(k.SkdxPopoverPortal),null,{default:(0,e.withCtx)(()=>[(0,e.createVNode)((0,e.unref)(k.SkdxPopoverContent),(0,e.mergeProps)((0,e.unref)(n.skdxPart)("workspace-switcher","content"),{align:"start","aria-label":l.label??l.placeholder,onEscapeKeyDown:r[1]||(r[1]=o=>s("escape-key-down",o)),onPointerDownOutside:r[2]||(r[2]=o=>s("pointer-down-outside",o)),onFocusOutside:r[3]||(r[3]=o=>s("focus-outside",o)),onInteractOutside:r[4]||(r[4]=o=>s("interact-outside",o)),onOpenAutoFocus:r[5]||(r[5]=o=>s("open-auto-focus",o)),onCloseAutoFocus:r[6]||(r[6]=o=>s("close-auto-focus",o))}),{default:(0,e.withCtx)(()=>[(0,e.createVNode)((0,e.unref)(i.SkdxCommand),{loading:l.loading??!1,search:f.value,onSearchChange:r[0]||(r[0]=o=>f.value=o)},{default:(0,e.withCtx)(()=>[(0,e.createVNode)((0,e.unref)(i.SkdxCommandInput),(0,e.mergeProps)((0,e.unref)(n.skdxPart)("workspace-switcher","search"),{"aria-label":l.searchLabel,placeholder:l.searchPlaceholder}),null,16,["aria-label","placeholder"]),(0,e.createVNode)((0,e.unref)(i.SkdxCommandList),(0,e.mergeProps)((0,e.unref)(n.skdxPart)("workspace-switcher","list"),{"aria-label":l.label??l.placeholder}),{default:(0,e.withCtx)(()=>[((0,e.openBlock)(!0),(0,e.createElementBlock)(e.Fragment,null,(0,e.renderList)(b.value,o=>((0,e.openBlock)(),(0,e.createBlock)((0,e.unref)(i.SkdxCommandGroup),(0,e.mergeProps)({key:o.heading??""},{ref_for:!0},{...(0,e.unref)(n.skdxPart)("workspace-switcher","group"),...L(o)}),{default:(0,e.withCtx)(()=>[((0,e.openBlock)(!0),(0,e.createElementBlock)(e.Fragment,null,(0,e.renderList)(o.items,a=>((0,e.openBlock)(),(0,e.createBlock)((0,e.unref)(i.SkdxCommandItem),(0,e.mergeProps)({key:a.id},{ref_for:!0},(0,e.unref)(n.skdxPart)("workspace-switcher","item"),{value:a.id,keywords:N(a),disabled:a.disabled,"data-selected":a.id===m.value?"":void 0,onSelect:h=>V(a.id)}),{default:(0,e.withCtx)(()=>[t.$slots.leading?((0,e.openBlock)(),(0,e.createElementBlock)("span",(0,e.mergeProps)({key:0,"aria-hidden":"true"},{ref_for:!0},(0,e.unref)(n.skdxPart)("workspace-switcher","item-leading")),[(0,e.renderSlot)(t.$slots,"leading",{item:a})],16)):(0,e.createCommentVNode)("",!0),(0,e.createElementVNode)("span",(0,e.mergeProps)({ref_for:!0},(0,e.unref)(n.skdxPart)("workspace-switcher","item-label")),(0,e.toDisplayString)(a.label),17),a.description?((0,e.openBlock)(),(0,e.createElementBlock)("span",(0,e.mergeProps)({key:1,ref_for:!0},(0,e.unref)(n.skdxPart)("workspace-switcher","item-description")),(0,e.toDisplayString)(a.description),17)):(0,e.createCommentVNode)("",!0),a.id===m.value?((0,e.openBlock)(),(0,e.createBlock)((0,e.unref)(E.SkdxVisuallyHidden),{key:2},{default:(0,e.withCtx)(()=>[(0,e.createTextVNode)((0,e.toDisplayString)(l.selectedLabel),1)]),_:1})):(0,e.createCommentVNode)("",!0)]),_:2},1040,["value","keywords","disabled","data-selected","onSelect"]))),128))]),_:2},1040))),128))]),_:3},16,["aria-label"]),(0,e.createVNode)((0,e.unref)(i.SkdxCommandLoading),(0,e.normalizeProps)((0,e.guardReactiveProps)((0,e.unref)(n.skdxPart)("workspace-switcher","loading"))),{default:(0,e.withCtx)(()=>[(0,e.createTextVNode)((0,e.toDisplayString)(l.loadingMessage),1)]),_:1},16),(0,e.createVNode)((0,e.unref)(i.SkdxCommandEmpty),(0,e.normalizeProps)((0,e.guardReactiveProps)((0,e.unref)(n.skdxPart)("workspace-switcher","empty"))),{default:(0,e.withCtx)(()=>[(0,e.createTextVNode)((0,e.toDisplayString)(l.emptyMessage),1)]),_:1},16)]),_:3},8,["loading","search"]),t.$slots.actions?((0,e.openBlock)(),(0,e.createElementBlock)("div",(0,e.normalizeProps)((0,e.mergeProps)({key:0},(0,e.unref)(n.skdxPart)("workspace-switcher","footer"))),[(0,e.renderSlot)(t.$slots,"actions")],16)):(0,e.createCommentVNode)("",!0)]),_:3},16,["aria-label"])]),_:3})]),_:3},8,["open"]))}});exports.default=O;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{skdxPart as e}from"../internal/part.js";import{Fragment as a,computed as o,createBlock as t,createCommentVNode as s,createElementBlock as l,createElementVNode as r,createTextVNode as d,createVNode as n,defineComponent as i,guardReactiveProps as u,mergeProps as c,normalizeProps as p,openBlock as f,ref as m,renderList as h,renderSlot as v,toDisplayString as k,unref as g,useAttrs as w,withCtx as b}from"vue";import{SkdxVisuallyHidden as y}from"@skdx/vue";import{SkdxCommand as C,SkdxCommandEmpty as S,SkdxCommandGroup as x,SkdxCommandInput as _,SkdxCommandItem as L,SkdxCommandList as P,SkdxCommandLoading as O}from"@skdx/vue/primitives/command";import{SkdxPopoverContent as V,SkdxPopoverPortal as $,SkdxPopoverRoot as B,SkdxPopoverTrigger as M}from"@skdx/vue/primitives/popover";var N=/* @__PURE__ */i({inheritAttrs:!1,__name:"WorkspaceSwitcher",props:{items:{},value:{default:void 0},defaultValue:{default:""},placeholder:{default:"Select"},label:{default:void 0},searchLabel:{default:"Search"},searchPlaceholder:{default:void 0},emptyMessage:{default:"No results"},loadingMessage:{default:"Loading"},loading:{type:Boolean,default:!1},selectedLabel:{default:"Current"},open:{type:Boolean,default:void 0},defaultOpen:{type:Boolean,default:!1}},emits:["update:value","value-change","update:open","open-change","open-change-complete","escape-key-down","pointer-down-outside","focus-outside","interact-outside","open-auto-focus","close-auto-focus"],setup(i,{emit:N}){const A=i,E=N,F=w(),D=m(""),I=m(A.defaultValue),R=m(A.defaultOpen),T=o(()=>A.value??I.value),j=o(()=>A.open??R.value),z=o(()=>A.items.find(e=>e.id===T.value)),G=o(()=>function(e,a){const o=a.toLowerCase(),t=/* @__PURE__ */new Map([[void 0,[]]]);for(const a of e){const e=t.get(a.group);e?e.push(a):t.set(a.group,[a])}const s=e=>""===o||e.id.toLowerCase().includes(o)||e.label.toLowerCase().includes(o)||(e.description?.toLowerCase().includes(o)??!1),l=[];for(const[e,a]of t)a.some(s)&&l.push({heading:e,items:a});return l}(A.items,D.value)),H=o(()=>c({"aria-label":A.label},F,{...e("workspace-switcher","root")}));function K(e){e||(D.value=""),void 0===A.open&&(R.value=e),E("update:open",e),E("open-change",e)}function W(e){return e.description?[e.label,e.description]:[e.label]}function q(e){return void 0===e.heading?{}:{heading:e.heading}}return(o,m)=>(f(),t(g(B),{open:j.value,modal:"none",onOpenChange:K,onOpenChangeComplete:m[7]||(m[7]=e=>E("open-change-complete",e))},{default:b(()=>[n(g(M),p(u(H.value)),{default:b(()=>[v(o.$slots,"trigger",{},()=>[o.$slots.leading&&z.value?(f(),l("span",c({key:0,"aria-hidden":"true"},g(e)("workspace-switcher","leading")),[v(o.$slots,"leading",{item:z.value})],16)):s("",!0),r("span",p(u(g(e)("workspace-switcher","current"))),k(z.value?.label??i.placeholder),17),z.value?.description?(f(),l("span",p(c({key:1},g(e)("workspace-switcher","description"))),k(z.value.description),17)):s("",!0)])]),_:3},16),n(g($),null,{default:b(()=>[n(g(V),c(g(e)("workspace-switcher","content"),{align:"start","aria-label":i.label??i.placeholder,onEscapeKeyDown:m[1]||(m[1]=e=>E("escape-key-down",e)),onPointerDownOutside:m[2]||(m[2]=e=>E("pointer-down-outside",e)),onFocusOutside:m[3]||(m[3]=e=>E("focus-outside",e)),onInteractOutside:m[4]||(m[4]=e=>E("interact-outside",e)),onOpenAutoFocus:m[5]||(m[5]=e=>E("open-auto-focus",e)),onCloseAutoFocus:m[6]||(m[6]=e=>E("close-auto-focus",e))}),{default:b(()=>[n(g(C),{loading:i.loading??!1,search:D.value,onSearchChange:m[0]||(m[0]=e=>D.value=e)},{default:b(()=>[n(g(_),c(g(e)("workspace-switcher","search"),{"aria-label":i.searchLabel,placeholder:i.searchPlaceholder}),null,16,["aria-label","placeholder"]),n(g(P),c(g(e)("workspace-switcher","list"),{"aria-label":i.label??i.placeholder}),{default:b(()=>[(f(!0),l(a,null,h(G.value,n=>(f(),t(g(x),c({key:n.heading??""},{ref_for:!0},{...g(e)("workspace-switcher","group"),...q(n)}),{default:b(()=>[(f(!0),l(a,null,h(n.items,a=>(f(),t(g(L),c({key:a.id},{ref_for:!0},g(e)("workspace-switcher","item"),{value:a.id,keywords:W(a),disabled:a.disabled,"data-selected":a.id===T.value?"":void 0,onSelect:e=>function(e){void 0===A.value&&(I.value=e),E("update:value",e),E("value-change",e),K(!1)}(a.id)}),{default:b(()=>[o.$slots.leading?(f(),l("span",c({key:0,"aria-hidden":"true"},{ref_for:!0},g(e)("workspace-switcher","item-leading")),[v(o.$slots,"leading",{item:a})],16)):s("",!0),r("span",c({ref_for:!0},g(e)("workspace-switcher","item-label")),k(a.label),17),a.description?(f(),l("span",c({key:1,ref_for:!0},g(e)("workspace-switcher","item-description")),k(a.description),17)):s("",!0),a.id===T.value?(f(),t(g(y),{key:2},{default:b(()=>[d(k(i.selectedLabel),1)]),_:1})):s("",!0)]),_:2},1040,["value","keywords","disabled","data-selected","onSelect"]))),128))]),_:2},1040))),128))]),_:3},16,["aria-label"]),n(g(O),p(u(g(e)("workspace-switcher","loading"))),{default:b(()=>[d(k(i.loadingMessage),1)]),_:1},16),n(g(S),p(u(g(e)("workspace-switcher","empty"))),{default:b(()=>[d(k(i.emptyMessage),1)]),_:1},16)]),_:3},8,["loading","search"]),o.$slots.actions?(f(),l("div",p(c({key:0},g(e)("workspace-switcher","footer"))),[v(o.$slots,"actions")],16)):s("",!0)]),_:3},16,["aria-label"])]),_:3})]),_:3},8,["open"]))}});export{N as default};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./WorkspaceSwitcher.vue.cjs");exports.SkdxWorkspaceSwitcher=e.default;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import r from"./WorkspaceSwitcher.vue.js";export{r as SkdxWorkspaceSwitcher};
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
/** One switchable context in the list — a workspace, organisation, team, account or project. */
|
|
2
|
+
export interface WorkspaceSwitcherItem {
|
|
3
|
+
/** Stable identifier reported to the change handler and matched against the current value. */
|
|
4
|
+
id: string;
|
|
5
|
+
/** Human-readable name rendered as the item's first line and in the closed trigger. */
|
|
6
|
+
label: string;
|
|
7
|
+
/**
|
|
8
|
+
* Secondary line rendered under the label, such as a plan name or member count.
|
|
9
|
+
* @default undefined — the item renders its label alone.
|
|
10
|
+
*/
|
|
11
|
+
description?: string | undefined;
|
|
12
|
+
/**
|
|
13
|
+
* Heading of the group this item is listed under, gathering items that share it.
|
|
14
|
+
* @default undefined — the item sits in the leading ungrouped block.
|
|
15
|
+
*/
|
|
16
|
+
group?: string | undefined;
|
|
17
|
+
/**
|
|
18
|
+
* Lists the item but withholds selection, keyboard traversal and pointer highlighting.
|
|
19
|
+
* @default false
|
|
20
|
+
*/
|
|
21
|
+
disabled?: boolean | undefined;
|
|
22
|
+
}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
/** One switchable context in the list — a workspace, organisation, team, account or project. */
|
|
2
|
+
export interface WorkspaceSwitcherItem {
|
|
3
|
+
/** Stable identifier reported to the change handler and matched against the current value. */
|
|
4
|
+
id: string;
|
|
5
|
+
/** Human-readable name rendered as the item's first line and in the closed trigger. */
|
|
6
|
+
label: string;
|
|
7
|
+
/**
|
|
8
|
+
* Secondary line rendered under the label, such as a plan name or member count.
|
|
9
|
+
* @default undefined — the item renders its label alone.
|
|
10
|
+
*/
|
|
11
|
+
description?: string | undefined;
|
|
12
|
+
/**
|
|
13
|
+
* Heading of the group this item is listed under, gathering items that share it.
|
|
14
|
+
* @default undefined — the item sits in the leading ungrouped block.
|
|
15
|
+
*/
|
|
16
|
+
group?: string | undefined;
|
|
17
|
+
/**
|
|
18
|
+
* Lists the item but withholds selection, keyboard traversal and pointer highlighting.
|
|
19
|
+
* @default false
|
|
20
|
+
*/
|
|
21
|
+
disabled?: boolean | undefined;
|
|
22
|
+
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@skdx/vue-blocks",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.35.0",
|
|
4
4
|
"description": "Vue blocks for the SkandaDX design system — page-level compositions of @skdx/vue styled by @skdx/skins",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"publishConfig": {
|
|
@@ -33,6 +33,66 @@
|
|
|
33
33
|
"default": "./dist/index.cjs"
|
|
34
34
|
}
|
|
35
35
|
},
|
|
36
|
+
"./chat-composer": {
|
|
37
|
+
"import": {
|
|
38
|
+
"types": "./dist/chat-composer/index.d.ts",
|
|
39
|
+
"default": "./dist/chat-composer/index.js"
|
|
40
|
+
},
|
|
41
|
+
"require": {
|
|
42
|
+
"types": "./dist/chat-composer/index.d.cts",
|
|
43
|
+
"default": "./dist/chat-composer/index.cjs"
|
|
44
|
+
}
|
|
45
|
+
},
|
|
46
|
+
"./chat-message": {
|
|
47
|
+
"import": {
|
|
48
|
+
"types": "./dist/chat-message/index.d.ts",
|
|
49
|
+
"default": "./dist/chat-message/index.js"
|
|
50
|
+
},
|
|
51
|
+
"require": {
|
|
52
|
+
"types": "./dist/chat-message/index.d.cts",
|
|
53
|
+
"default": "./dist/chat-message/index.cjs"
|
|
54
|
+
}
|
|
55
|
+
},
|
|
56
|
+
"./comment": {
|
|
57
|
+
"import": {
|
|
58
|
+
"types": "./dist/comment/index.d.ts",
|
|
59
|
+
"default": "./dist/comment/index.js"
|
|
60
|
+
},
|
|
61
|
+
"require": {
|
|
62
|
+
"types": "./dist/comment/index.d.cts",
|
|
63
|
+
"default": "./dist/comment/index.cjs"
|
|
64
|
+
}
|
|
65
|
+
},
|
|
66
|
+
"./comment-thread": {
|
|
67
|
+
"import": {
|
|
68
|
+
"types": "./dist/comment-thread/index.d.ts",
|
|
69
|
+
"default": "./dist/comment-thread/index.js"
|
|
70
|
+
},
|
|
71
|
+
"require": {
|
|
72
|
+
"types": "./dist/comment-thread/index.d.cts",
|
|
73
|
+
"default": "./dist/comment-thread/index.cjs"
|
|
74
|
+
}
|
|
75
|
+
},
|
|
76
|
+
"./confirm-dialog": {
|
|
77
|
+
"import": {
|
|
78
|
+
"types": "./dist/confirm-dialog/index.d.ts",
|
|
79
|
+
"default": "./dist/confirm-dialog/index.js"
|
|
80
|
+
},
|
|
81
|
+
"require": {
|
|
82
|
+
"types": "./dist/confirm-dialog/index.d.cts",
|
|
83
|
+
"default": "./dist/confirm-dialog/index.cjs"
|
|
84
|
+
}
|
|
85
|
+
},
|
|
86
|
+
"./conversation-list": {
|
|
87
|
+
"import": {
|
|
88
|
+
"types": "./dist/conversation-list/index.d.ts",
|
|
89
|
+
"default": "./dist/conversation-list/index.js"
|
|
90
|
+
},
|
|
91
|
+
"require": {
|
|
92
|
+
"types": "./dist/conversation-list/index.d.cts",
|
|
93
|
+
"default": "./dist/conversation-list/index.cjs"
|
|
94
|
+
}
|
|
95
|
+
},
|
|
36
96
|
"./dashboard-layout": {
|
|
37
97
|
"import": {
|
|
38
98
|
"types": "./dist/dashboard-layout/index.d.ts",
|
|
@@ -43,6 +103,66 @@
|
|
|
43
103
|
"default": "./dist/dashboard-layout/index.cjs"
|
|
44
104
|
}
|
|
45
105
|
},
|
|
106
|
+
"./empty-state": {
|
|
107
|
+
"import": {
|
|
108
|
+
"types": "./dist/empty-state/index.d.ts",
|
|
109
|
+
"default": "./dist/empty-state/index.js"
|
|
110
|
+
},
|
|
111
|
+
"require": {
|
|
112
|
+
"types": "./dist/empty-state/index.d.cts",
|
|
113
|
+
"default": "./dist/empty-state/index.cjs"
|
|
114
|
+
}
|
|
115
|
+
},
|
|
116
|
+
"./filter-bar": {
|
|
117
|
+
"import": {
|
|
118
|
+
"types": "./dist/filter-bar/index.d.ts",
|
|
119
|
+
"default": "./dist/filter-bar/index.js"
|
|
120
|
+
},
|
|
121
|
+
"require": {
|
|
122
|
+
"types": "./dist/filter-bar/index.d.cts",
|
|
123
|
+
"default": "./dist/filter-bar/index.cjs"
|
|
124
|
+
}
|
|
125
|
+
},
|
|
126
|
+
"./forgot-password-page": {
|
|
127
|
+
"import": {
|
|
128
|
+
"types": "./dist/forgot-password-page/index.d.ts",
|
|
129
|
+
"default": "./dist/forgot-password-page/index.js"
|
|
130
|
+
},
|
|
131
|
+
"require": {
|
|
132
|
+
"types": "./dist/forgot-password-page/index.d.cts",
|
|
133
|
+
"default": "./dist/forgot-password-page/index.cjs"
|
|
134
|
+
}
|
|
135
|
+
},
|
|
136
|
+
"./form-section": {
|
|
137
|
+
"import": {
|
|
138
|
+
"types": "./dist/form-section/index.d.ts",
|
|
139
|
+
"default": "./dist/form-section/index.js"
|
|
140
|
+
},
|
|
141
|
+
"require": {
|
|
142
|
+
"types": "./dist/form-section/index.d.cts",
|
|
143
|
+
"default": "./dist/form-section/index.cjs"
|
|
144
|
+
}
|
|
145
|
+
},
|
|
146
|
+
"./notification-center": {
|
|
147
|
+
"import": {
|
|
148
|
+
"types": "./dist/notification-center/index.d.ts",
|
|
149
|
+
"default": "./dist/notification-center/index.js"
|
|
150
|
+
},
|
|
151
|
+
"require": {
|
|
152
|
+
"types": "./dist/notification-center/index.d.cts",
|
|
153
|
+
"default": "./dist/notification-center/index.cjs"
|
|
154
|
+
}
|
|
155
|
+
},
|
|
156
|
+
"./onboarding-checklist": {
|
|
157
|
+
"import": {
|
|
158
|
+
"types": "./dist/onboarding-checklist/index.d.ts",
|
|
159
|
+
"default": "./dist/onboarding-checklist/index.js"
|
|
160
|
+
},
|
|
161
|
+
"require": {
|
|
162
|
+
"types": "./dist/onboarding-checklist/index.d.cts",
|
|
163
|
+
"default": "./dist/onboarding-checklist/index.cjs"
|
|
164
|
+
}
|
|
165
|
+
},
|
|
46
166
|
"./page-container": {
|
|
47
167
|
"import": {
|
|
48
168
|
"types": "./dist/page-container/index.d.ts",
|
|
@@ -53,6 +173,16 @@
|
|
|
53
173
|
"default": "./dist/page-container/index.cjs"
|
|
54
174
|
}
|
|
55
175
|
},
|
|
176
|
+
"./reset-password-page": {
|
|
177
|
+
"import": {
|
|
178
|
+
"types": "./dist/reset-password-page/index.d.ts",
|
|
179
|
+
"default": "./dist/reset-password-page/index.js"
|
|
180
|
+
},
|
|
181
|
+
"require": {
|
|
182
|
+
"types": "./dist/reset-password-page/index.d.cts",
|
|
183
|
+
"default": "./dist/reset-password-page/index.cjs"
|
|
184
|
+
}
|
|
185
|
+
},
|
|
56
186
|
"./sign-in-page": {
|
|
57
187
|
"import": {
|
|
58
188
|
"types": "./dist/sign-in-page/index.d.ts",
|
|
@@ -63,6 +193,66 @@
|
|
|
63
193
|
"default": "./dist/sign-in-page/index.cjs"
|
|
64
194
|
}
|
|
65
195
|
},
|
|
196
|
+
"./sign-up-page": {
|
|
197
|
+
"import": {
|
|
198
|
+
"types": "./dist/sign-up-page/index.d.ts",
|
|
199
|
+
"default": "./dist/sign-up-page/index.js"
|
|
200
|
+
},
|
|
201
|
+
"require": {
|
|
202
|
+
"types": "./dist/sign-up-page/index.d.cts",
|
|
203
|
+
"default": "./dist/sign-up-page/index.cjs"
|
|
204
|
+
}
|
|
205
|
+
},
|
|
206
|
+
"./stat-card": {
|
|
207
|
+
"import": {
|
|
208
|
+
"types": "./dist/stat-card/index.d.ts",
|
|
209
|
+
"default": "./dist/stat-card/index.js"
|
|
210
|
+
},
|
|
211
|
+
"require": {
|
|
212
|
+
"types": "./dist/stat-card/index.d.cts",
|
|
213
|
+
"default": "./dist/stat-card/index.cjs"
|
|
214
|
+
}
|
|
215
|
+
},
|
|
216
|
+
"./usage-card": {
|
|
217
|
+
"import": {
|
|
218
|
+
"types": "./dist/usage-card/index.d.ts",
|
|
219
|
+
"default": "./dist/usage-card/index.js"
|
|
220
|
+
},
|
|
221
|
+
"require": {
|
|
222
|
+
"types": "./dist/usage-card/index.d.cts",
|
|
223
|
+
"default": "./dist/usage-card/index.cjs"
|
|
224
|
+
}
|
|
225
|
+
},
|
|
226
|
+
"./user-menu": {
|
|
227
|
+
"import": {
|
|
228
|
+
"types": "./dist/user-menu/index.d.ts",
|
|
229
|
+
"default": "./dist/user-menu/index.js"
|
|
230
|
+
},
|
|
231
|
+
"require": {
|
|
232
|
+
"types": "./dist/user-menu/index.d.cts",
|
|
233
|
+
"default": "./dist/user-menu/index.cjs"
|
|
234
|
+
}
|
|
235
|
+
},
|
|
236
|
+
"./verification-page": {
|
|
237
|
+
"import": {
|
|
238
|
+
"types": "./dist/verification-page/index.d.ts",
|
|
239
|
+
"default": "./dist/verification-page/index.js"
|
|
240
|
+
},
|
|
241
|
+
"require": {
|
|
242
|
+
"types": "./dist/verification-page/index.d.cts",
|
|
243
|
+
"default": "./dist/verification-page/index.cjs"
|
|
244
|
+
}
|
|
245
|
+
},
|
|
246
|
+
"./workspace-switcher": {
|
|
247
|
+
"import": {
|
|
248
|
+
"types": "./dist/workspace-switcher/index.d.ts",
|
|
249
|
+
"default": "./dist/workspace-switcher/index.js"
|
|
250
|
+
},
|
|
251
|
+
"require": {
|
|
252
|
+
"types": "./dist/workspace-switcher/index.d.cts",
|
|
253
|
+
"default": "./dist/workspace-switcher/index.cjs"
|
|
254
|
+
}
|
|
255
|
+
},
|
|
66
256
|
"./package.json": "./package.json"
|
|
67
257
|
},
|
|
68
258
|
"files": [
|
|
@@ -74,7 +264,7 @@
|
|
|
74
264
|
"sideEffects": false,
|
|
75
265
|
"peerDependencies": {
|
|
76
266
|
"vue": "^3.5.0",
|
|
77
|
-
"@skdx/vue": "^0.
|
|
267
|
+
"@skdx/vue": "^0.35.0"
|
|
78
268
|
},
|
|
79
269
|
"devDependencies": {
|
|
80
270
|
"@vitejs/plugin-vue": "^5.0.0",
|
|
@@ -86,7 +276,7 @@
|
|
|
86
276
|
"vitest": "^4.1.10",
|
|
87
277
|
"vue": "^3.5.39",
|
|
88
278
|
"vue-tsc": "^2.0.0",
|
|
89
|
-
"@skdx/vue": "0.
|
|
279
|
+
"@skdx/vue": "0.35.0"
|
|
90
280
|
},
|
|
91
281
|
"scripts": {
|
|
92
282
|
"lint": "eslint . --cache --cache-location node_modules/.cache/eslint/",
|