@synopackageland/ui 0.4.2 → 0.5.3

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.
Files changed (143) hide show
  1. package/README.md +21 -0
  2. package/dist/components/advanced-panel/AdvancePanelColumns.vue.d.ts +19 -0
  3. package/dist/components/advanced-panel/AdvancePanelForm.vue.d.ts +21 -0
  4. package/dist/components/advanced-panel/AdvancePanelGrid.vue.d.ts +44 -0
  5. package/dist/components/advanced-panel/types.d.ts +50 -0
  6. package/dist/components/app/app-action-bar/AppActionBar.vue.d.ts +13 -3
  7. package/dist/components/app/app-layout/AppLayout.vue.d.ts +1 -1
  8. package/dist/components/app/app-sidebar/AppSidebar.vue.d.ts +12 -13
  9. package/dist/components/app/app-sidebar/AppSidebarItems.vue.d.ts +17 -0
  10. package/dist/components/app/app-sidebar/types.d.ts +16 -0
  11. package/dist/components/app/section-tabs/SectionTabs.vue.d.ts +11 -1
  12. package/dist/components/composite/about-dialog/AboutDialog.vue.d.ts +78 -0
  13. package/dist/components/composite/about-dialog/types.d.ts +6 -0
  14. package/dist/components/composite/callout/Callout.vue.d.ts +12 -2
  15. package/dist/components/composite/config-provider/ConfigProvider.vue.d.ts +19 -0
  16. package/dist/components/composite/copy-cut-field/CopyCutField.vue.d.ts +44 -0
  17. package/dist/components/composite/data-grid/DataGrid.vue.d.ts +150 -25
  18. package/dist/components/composite/data-grid/labels.d.ts +15 -1
  19. package/dist/components/composite/data-view/DataView.vue.d.ts +54 -0
  20. package/dist/components/composite/footbar/Footbar.vue.d.ts +13 -0
  21. package/dist/components/composite/footbar/FootbarButtons.vue.d.ts +13 -0
  22. package/dist/components/composite/footbar/types.d.ts +32 -0
  23. package/dist/components/composite/form/Form.vue.d.ts +49 -0
  24. package/dist/components/composite/form/FormItem.vue.d.ts +132 -0
  25. package/dist/components/composite/form/context.d.ts +61 -0
  26. package/dist/components/composite/form/rules.d.ts +17 -0
  27. package/dist/components/composite/form/types.d.ts +50 -0
  28. package/dist/components/composite/message-box/MessageBox.vue.d.ts +34 -0
  29. package/dist/components/composite/message-box/MessageBoxProvider.vue.d.ts +13 -0
  30. package/dist/components/composite/message-box/controller.d.ts +20 -0
  31. package/dist/components/composite/message-box/types.d.ts +97 -0
  32. package/dist/components/composite/overflow-list/OverflowList.vue.d.ts +40 -0
  33. package/dist/components/composite/overflow-list/OverflowListItem.vue.d.ts +18 -0
  34. package/dist/components/composite/overflow-toolbar/OverflowToolbar.vue.d.ts +46 -0
  35. package/dist/components/composite/overflow-toolbar/overflow.d.ts +25 -0
  36. package/dist/components/composite/overflow-toolbar/types.d.ts +27 -0
  37. package/dist/components/composite/settings-section/SettingsSection.vue.d.ts +18 -3
  38. package/dist/components/composite/tree-view/TreeView.vue.d.ts +64 -12
  39. package/dist/components/composite/tree-view/treeUtils.d.ts +15 -0
  40. package/dist/components/composite/tree-view/types.d.ts +38 -0
  41. package/dist/components/composite/virtual-list/VirtualList.vue.d.ts +44 -0
  42. package/dist/components/composite/wizard/Wizard.vue.d.ts +68 -0
  43. package/dist/components/composite/wizard/WizardStep.vue.d.ts +20 -0
  44. package/dist/components/composite/wizard/types.d.ts +32 -0
  45. package/dist/components/composite/wizard/wizardContext.d.ts +17 -0
  46. package/dist/components/containers/card/Card.vue.d.ts +42 -0
  47. package/dist/components/containers/expandable-item/ExpandableItem.vue.d.ts +79 -0
  48. package/dist/components/containers/fieldset/Fieldset.vue.d.ts +58 -0
  49. package/dist/components/containers/highlight-box/HighlightBox.vue.d.ts +23 -0
  50. package/dist/components/containers/panel/Panel.vue.d.ts +59 -0
  51. package/dist/components/feedback/info-mask/InfoMask.vue.d.ts +22 -0
  52. package/dist/components/feedback/info-tip/InfoTip.vue.d.ts +53 -0
  53. package/dist/components/feedback/notification/Notification.vue.d.ts +50 -0
  54. package/dist/components/feedback/notification/NotificationProvider.vue.d.ts +36 -0
  55. package/dist/components/feedback/notification/notification.d.ts +45 -0
  56. package/dist/components/feedback/validation-popup/ValidationPopup.vue.d.ts +41 -0
  57. package/dist/components/primitives/affix/Affix.vue.d.ts +40 -0
  58. package/dist/components/primitives/affix/affixPosition.d.ts +35 -0
  59. package/dist/components/primitives/breadcrumb/Breadcrumb.vue.d.ts +38 -0
  60. package/dist/components/primitives/breadcrumb/BreadcrumbCrumb.vue.d.ts +13 -0
  61. package/dist/components/primitives/breadcrumb/collapse.d.ts +25 -0
  62. package/dist/components/primitives/breadcrumb/types.d.ts +14 -0
  63. package/dist/components/primitives/color-picker/ColorPicker.vue.d.ts +70 -0
  64. package/dist/components/primitives/color-picker/palette.d.ts +2 -0
  65. package/dist/components/primitives/combobox/Combobox.vue.d.ts +33 -0
  66. package/dist/components/primitives/date-picker/DatePicker.vue.d.ts +39 -1
  67. package/dist/components/primitives/date-picker/dateTime.d.ts +44 -0
  68. package/dist/components/primitives/dialog/Dialog.vue.d.ts +6 -3
  69. package/dist/components/primitives/dropdown-menu/DropdownMenu.vue.d.ts +18 -13
  70. package/dist/components/primitives/dropdown-menu/DropdownMenuItems.vue.d.ts +20 -0
  71. package/dist/components/primitives/dropdown-menu/types.d.ts +38 -0
  72. package/dist/components/primitives/ghost/Ghost.vue.d.ts +30 -0
  73. package/dist/components/primitives/icon/Icon.vue.d.ts +40 -0
  74. package/dist/components/primitives/icon/icon.d.ts +19 -0
  75. package/dist/components/primitives/icon/iconRegistry.d.ts +9 -0
  76. package/dist/components/primitives/icon/useIconButton.d.ts +30 -0
  77. package/dist/components/primitives/input/Input.vue.d.ts +6 -0
  78. package/dist/components/primitives/input/Textarea.vue.d.ts +6 -0
  79. package/dist/components/primitives/input-steppers/InputSteppers.vue.d.ts +60 -0
  80. package/dist/components/primitives/layout/Col.vue.d.ts +24 -0
  81. package/dist/components/primitives/layout/Grid.vue.d.ts +35 -0
  82. package/dist/components/primitives/layout/Row.vue.d.ts +23 -0
  83. package/dist/components/primitives/layout/breakpoints.d.ts +24 -0
  84. package/dist/components/primitives/layout/context.d.ts +22 -0
  85. package/dist/components/primitives/layout/gap.d.ts +12 -0
  86. package/dist/components/primitives/multiple-select/MultipleSelect.vue.d.ts +32 -0
  87. package/dist/components/primitives/pagination/Pagination.vue.d.ts +111 -0
  88. package/dist/components/primitives/pagination/labels.d.ts +18 -0
  89. package/dist/components/primitives/pagination/model.d.ts +13 -0
  90. package/dist/components/primitives/progress/Progress.vue.d.ts +2 -0
  91. package/dist/components/primitives/rich-text/RichText.vue.d.ts +57 -0
  92. package/dist/components/primitives/rich-text/parseRichText.d.ts +31 -0
  93. package/dist/components/primitives/schedule-table/ScheduleTable.vue.d.ts +65 -0
  94. package/dist/components/primitives/schedule-table/schedule.d.ts +55 -0
  95. package/dist/components/primitives/scrollbar/Scrollbar.vue.d.ts +110 -0
  96. package/dist/components/primitives/scrollbar/types.d.ts +10 -0
  97. package/dist/components/primitives/segment-control/SegmentControl.vue.d.ts +32 -0
  98. package/dist/components/primitives/segment-control/SegmentItem.vue.d.ts +32 -0
  99. package/dist/components/primitives/segment-control/context.d.ts +19 -0
  100. package/dist/components/primitives/select/Select.vue.d.ts +15 -1
  101. package/dist/components/primitives/select/internal/ComboboxField.vue.d.ts +46 -0
  102. package/dist/components/primitives/select/internal/SelectTag.vue.d.ts +15 -0
  103. package/dist/components/primitives/select/internal/options.d.ts +17 -0
  104. package/dist/components/primitives/select/internal/types.d.ts +43 -0
  105. package/dist/components/primitives/select/internal/useSelectSearch.d.ts +20 -0
  106. package/dist/components/primitives/sheet/Sheet.vue.d.ts +3 -3
  107. package/dist/components/primitives/skeleton/Skeleton.vue.d.ts +1 -1
  108. package/dist/components/primitives/slider/Slider.vue.d.ts +56 -0
  109. package/dist/components/primitives/space/Space.vue.d.ts +27 -0
  110. package/dist/components/primitives/space/space.d.ts +10 -0
  111. package/dist/components/primitives/superbox-select/SuperboxSelect.vue.d.ts +33 -0
  112. package/dist/components/primitives/tag/Tag.vue.d.ts +59 -0
  113. package/dist/components/primitives/toggle-button/ToggleButton.vue.d.ts +43 -0
  114. package/dist/components/primitives/toggle-button/ToggleButtonGroup.vue.d.ts +38 -0
  115. package/dist/components/primitives/toggle-button/toggleButton.d.ts +9 -0
  116. package/dist/components/primitives/tooltip/Tooltip.vue.d.ts +3 -0
  117. package/dist/components/primitives/typography/TypoA.vue.d.ts +13 -0
  118. package/dist/components/primitives/typography/TypoBlockquote.vue.d.ts +13 -0
  119. package/dist/components/primitives/typography/TypoCode.vue.d.ts +13 -0
  120. package/dist/components/primitives/typography/TypoDivider.vue.d.ts +3 -0
  121. package/dist/components/primitives/typography/TypoHeader.vue.d.ts +32 -0
  122. package/dist/components/primitives/typography/TypoHr.vue.d.ts +3 -0
  123. package/dist/components/primitives/typography/TypoLi.vue.d.ts +13 -0
  124. package/dist/components/primitives/typography/TypoList.vue.d.ts +13 -0
  125. package/dist/components/primitives/typography/TypoP.vue.d.ts +13 -0
  126. package/dist/components/primitives/typography/TypoTable.vue.d.ts +13 -0
  127. package/dist/components/primitives/typography/TypoText.vue.d.ts +26 -0
  128. package/dist/components/primitives/typography/TypoTip.vue.d.ts +21 -0
  129. package/dist/components/primitives/typography/typography.d.ts +12 -0
  130. package/dist/composables/configCascade.d.ts +42 -0
  131. package/dist/composables/tabIndicator.d.ts +18 -0
  132. package/dist/index.d.ts +122 -2
  133. package/dist/index.js +22765 -10938
  134. package/dist/lib/controllable.d.ts +19 -0
  135. package/dist/lib/numberField.d.ts +24 -0
  136. package/dist/lib/overflow.d.ts +13 -0
  137. package/dist/reka-runtime.json +5 -3
  138. package/dist/theme.css +1 -1
  139. package/dist/themes/dsm7-embedded-theme.css +1 -1
  140. package/dist/themes/dsm7-embedded.css +1 -1
  141. package/dist/themes/dsm7.css +1 -1
  142. package/docs/app-local-modal.md +9 -1
  143. package/package.json +1 -1
@@ -0,0 +1,68 @@
1
+ import { WizardFooterConfig, WizardStepChange } from './types';
2
+ /**
3
+ * Step-flow controller for multi-step dialogs. It owns step registration,
4
+ * navigation guards, footer state and the finish / cancel outcomes. It creates
5
+ * no window: mount it inside `Dialog` for app-local modality.
6
+ */
7
+ type __VLS_Props = {
8
+ /** Initial / external reset key. Internal navigation keeps working when the caller does not bind it back. */
9
+ activeStepKey?: string;
10
+ footer?: WizardFooterConfig;
11
+ /** Shows the Cancel action in the footer. */
12
+ cancellable?: boolean;
13
+ ariaLabel?: string;
14
+ };
15
+ declare function toNextStep(): Promise<void>;
16
+ declare function toPreviousStep(): Promise<void>;
17
+ declare function finish(): Promise<void>;
18
+ declare function cancel(): void;
19
+ declare var __VLS_1: {}, __VLS_3: {
20
+ nextStep: typeof toNextStep;
21
+ previousStep: typeof toPreviousStep;
22
+ finish: typeof finish;
23
+ cancel: typeof cancel;
24
+ canGoPrevious: boolean;
25
+ isLastStep: boolean;
26
+ busy: boolean;
27
+ };
28
+ type __VLS_Slots = {} & {
29
+ default?: (props: typeof __VLS_1) => any;
30
+ } & {
31
+ footer?: (props: typeof __VLS_3) => any;
32
+ };
33
+ declare const __VLS_base: import('vue').DefineComponent<__VLS_Props, {
34
+ activeStepKey: import('vue').ComputedRef<string>;
35
+ currentStepIndex: import('vue').ComputedRef<number>;
36
+ totalSteps: import('vue').ComputedRef<number>;
37
+ canGoPrevious: import('vue').ComputedRef<boolean>;
38
+ isLastStep: import('vue').ComputedRef<boolean>;
39
+ busy: import('vue').Ref<boolean, boolean>;
40
+ toNextStep: typeof toNextStep;
41
+ toPreviousStep: typeof toPreviousStep;
42
+ finish: typeof finish;
43
+ cancel: typeof cancel;
44
+ }, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
45
+ cancel: () => any;
46
+ "update:activeStepKey": (key: string) => any;
47
+ "next-step": (change: WizardStepChange) => any;
48
+ "previous-step": (change: WizardStepChange) => any;
49
+ finished: () => any;
50
+ }, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{
51
+ onCancel?: (() => any) | undefined;
52
+ "onUpdate:activeStepKey"?: ((key: string) => any) | undefined;
53
+ "onNext-step"?: ((change: WizardStepChange) => any) | undefined;
54
+ "onPrevious-step"?: ((change: WizardStepChange) => any) | undefined;
55
+ onFinished?: (() => any) | undefined;
56
+ }>, {
57
+ footer: WizardFooterConfig;
58
+ ariaLabel: string;
59
+ cancellable: boolean;
60
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
61
+ declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
62
+ declare const _default: typeof __VLS_export;
63
+ export default _default;
64
+ type __VLS_WithSlots<T, S> = T & {
65
+ new (): {
66
+ $slots: S;
67
+ };
68
+ };
@@ -0,0 +1,20 @@
1
+ import { WizardStepProps } from './types';
2
+ declare var __VLS_1: {};
3
+ type __VLS_Slots = {} & {
4
+ default?: (props: typeof __VLS_1) => any;
5
+ };
6
+ declare const __VLS_base: import('vue').DefineComponent<WizardStepProps, {
7
+ active: import('vue').ComputedRef<boolean>;
8
+ }, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<WizardStepProps> & Readonly<{}>, {
9
+ footer: boolean;
10
+ type: import('./types').WizardStepType;
11
+ headline: string;
12
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
13
+ declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
14
+ declare const _default: typeof __VLS_export;
15
+ export default _default;
16
+ type __VLS_WithSlots<T, S> = T & {
17
+ new (): {
18
+ $slots: S;
19
+ };
20
+ };
@@ -0,0 +1,32 @@
1
+ export type WizardStepType = 'normal' | 'welcome';
2
+ /** A guard may return `false` (or resolve `false`) to block the step change. */
3
+ export type MaybePromise<T> = T | Promise<T>;
4
+ export type WizardStepProps = {
5
+ /** Unique key the wizard uses to identify this step. */
6
+ stepKey: string;
7
+ /** `'welcome'` is the entry step and only offers the forward action. */
8
+ type?: WizardStepType;
9
+ headline?: string;
10
+ /** Omitted on the final step: the forward button then becomes Apply. */
11
+ nextStepKey?: string | (() => string);
12
+ /** Omitted falls back to the step registered just before this one. */
13
+ previousStepKey?: string | (() => string);
14
+ /** Async guard run before moving forward. `false` blocks the change. */
15
+ preEnterNextStep?: () => MaybePromise<false | void>;
16
+ /** Async guard run before moving back. `false` blocks the change. */
17
+ preEnterPreviousStep?: () => MaybePromise<false | void>;
18
+ /** Runs when the final Apply action succeeds. */
19
+ finished?: () => MaybePromise<void>;
20
+ /** `false` hides the shared footer while this step is active. */
21
+ footer?: boolean;
22
+ };
23
+ export type WizardFooterConfig = boolean | {
24
+ previousLabel?: string;
25
+ nextLabel?: string;
26
+ applyLabel?: string;
27
+ cancelLabel?: string;
28
+ };
29
+ export type WizardStepChange = {
30
+ from: string;
31
+ to: string;
32
+ };
@@ -0,0 +1,17 @@
1
+ import { ComputedRef, InjectionKey, Ref } from 'vue';
2
+ import { WizardStepProps } from './types';
3
+ /** A mounted `WizardStep` as seen by its `Wizard`. `props` stays reactive. */
4
+ export type WizardStepRegistration = {
5
+ key: string;
6
+ props: WizardStepProps;
7
+ };
8
+ export type WizardContext = {
9
+ activeStepKey: ComputedRef<string | undefined>;
10
+ steps: Ref<WizardStepRegistration[]>;
11
+ busy: Ref<boolean>;
12
+ register: (registration: WizardStepRegistration) => void;
13
+ unregister: (key: string) => void;
14
+ };
15
+ export declare const wizardKey: InjectionKey<WizardContext>;
16
+ /** `WizardStep` uses this; it stays inert when it has no `Wizard` ancestor. */
17
+ export declare function useWizardContext(): WizardContext | null;
@@ -0,0 +1,42 @@
1
+ type __VLS_Props = {
2
+ title?: string;
3
+ layoutType?: 'regular' | 'compact';
4
+ /** `false` hides the whole header row (title and actions together). */
5
+ hasHeader?: boolean;
6
+ /** Renders the disclosure arrow and collapses the body. */
7
+ expandable?: boolean;
8
+ /** Bound with `v-model:expanded`; defaults to expanded when left unbound. */
9
+ expanded?: boolean;
10
+ /** Accessible name for the disclosure arrow when the card has no title. */
11
+ toggleLabel?: string;
12
+ };
13
+ declare var __VLS_8: {}, __VLS_10: {}, __VLS_17: {}, __VLS_19: {}, __VLS_21: {};
14
+ type __VLS_Slots = {} & {
15
+ title?: (props: typeof __VLS_8) => any;
16
+ } & {
17
+ 'header-actions'?: (props: typeof __VLS_10) => any;
18
+ } & {
19
+ body?: (props: typeof __VLS_17) => any;
20
+ } & {
21
+ default?: (props: typeof __VLS_19) => any;
22
+ } & {
23
+ footer?: (props: typeof __VLS_21) => any;
24
+ };
25
+ declare const __VLS_base: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
26
+ "update:expanded": (value: boolean) => any;
27
+ }, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{
28
+ "onUpdate:expanded"?: ((value: boolean) => any) | undefined;
29
+ }>, {
30
+ expandable: boolean;
31
+ expanded: boolean;
32
+ layoutType: "regular" | "compact";
33
+ hasHeader: boolean;
34
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
35
+ declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
36
+ declare const _default: typeof __VLS_export;
37
+ export default _default;
38
+ type __VLS_WithSlots<T, S> = T & {
39
+ new (): {
40
+ $slots: S;
41
+ };
42
+ };
@@ -0,0 +1,79 @@
1
+ import { Component } from 'vue';
2
+ export type ExpandableItemText = string | {
3
+ text: string;
4
+ /** `html` injects `text` verbatim; the caller owns the safety of that string. */
5
+ format?: 'text' | 'html';
6
+ /** `true` shows `text` only while the line is truncated, a string always shows it. */
7
+ tip?: string | boolean;
8
+ };
9
+ export type ExpandableItemDisabled = boolean | {
10
+ allowExpand?: boolean;
11
+ };
12
+ type __VLS_Props = {
13
+ title?: ExpandableItemText;
14
+ summary?: ExpandableItemText;
15
+ /** Main icon; use the `icon` slot for a fully custom node. */
16
+ icon?: Component;
17
+ /** Small status badge rendered on the icon corner. */
18
+ statusIcon?: Component;
19
+ /** Bound with `v-model:expanded`. */
20
+ expanded?: boolean;
21
+ /** Defaults to `true` when the `detail` slot is present. */
22
+ expandable?: boolean;
23
+ /**
24
+ * `true` disables the whole row, `{ allowExpand: true }` greys the row but
25
+ * keeps the disclosure working.
26
+ */
27
+ disabled?: ExpandableItemDisabled;
28
+ selected?: boolean;
29
+ /** Enables native drag emission (`drag-start`, `drag-over`, `drop`, `drag-end`). */
30
+ draggable?: boolean;
31
+ /** Emits `select` when the summary row is clicked. */
32
+ selectable?: boolean;
33
+ };
34
+ declare var __VLS_1: {}, __VLS_8: {}, __VLS_15: {}, __VLS_17: {}, __VLS_19: {}, __VLS_21: {}, __VLS_23: {}, __VLS_25: {};
35
+ type __VLS_Slots = {} & {
36
+ icon?: (props: typeof __VLS_1) => any;
37
+ } & {
38
+ 'icon-status'?: (props: typeof __VLS_8) => any;
39
+ } & {
40
+ title?: (props: typeof __VLS_15) => any;
41
+ } & {
42
+ status?: (props: typeof __VLS_17) => any;
43
+ } & {
44
+ label?: (props: typeof __VLS_19) => any;
45
+ } & {
46
+ block?: (props: typeof __VLS_21) => any;
47
+ } & {
48
+ detail?: (props: typeof __VLS_23) => any;
49
+ } & {
50
+ 'toggle-icon'?: (props: typeof __VLS_25) => any;
51
+ };
52
+ declare const __VLS_base: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
53
+ select: (event: MouseEvent) => any;
54
+ drop: (event: DragEvent) => any;
55
+ "update:expanded": (value: boolean) => any;
56
+ "drag-start": (event: DragEvent) => any;
57
+ "drag-over": (event: DragEvent) => any;
58
+ "drag-end": (event: DragEvent) => any;
59
+ }, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{
60
+ onSelect?: ((event: MouseEvent) => any) | undefined;
61
+ onDrop?: ((event: DragEvent) => any) | undefined;
62
+ "onUpdate:expanded"?: ((value: boolean) => any) | undefined;
63
+ "onDrag-start"?: ((event: DragEvent) => any) | undefined;
64
+ "onDrag-over"?: ((event: DragEvent) => any) | undefined;
65
+ "onDrag-end"?: ((event: DragEvent) => any) | undefined;
66
+ }>, {
67
+ selectable: boolean;
68
+ expandable: boolean;
69
+ draggable: boolean;
70
+ expanded: boolean;
71
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
72
+ declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
73
+ declare const _default: typeof __VLS_export;
74
+ export default _default;
75
+ type __VLS_WithSlots<T, S> = T & {
76
+ new (): {
77
+ $slots: S;
78
+ };
79
+ };
@@ -0,0 +1,58 @@
1
+ export type FieldsetTitle = string | {
2
+ text: string;
3
+ format?: 'text' | 'html';
4
+ };
5
+ export type FieldsetCollapseTrigger = 'click' | 'dblclick' | 'none';
6
+ type __VLS_Props = {
7
+ title?: FieldsetTitle;
8
+ collapsible?: boolean;
9
+ /** Mouse gesture that toggles; Enter/Space always works on the header. */
10
+ collapseTriggerEvent?: FieldsetCollapseTrigger;
11
+ collapseIcon?: 'left' | 'none';
12
+ /** Bound with `v-model:collapsed`; defaults to expanded when left unbound. */
13
+ collapsed?: boolean;
14
+ };
15
+ declare var __VLS_1: {}, __VLS_8: {}, __VLS_10: {}, __VLS_12: {};
16
+ type __VLS_Slots = {} & {
17
+ 'collapse-icon'?: (props: typeof __VLS_1) => any;
18
+ } & {
19
+ title?: (props: typeof __VLS_8) => any;
20
+ } & {
21
+ title?: (props: typeof __VLS_10) => any;
22
+ } & {
23
+ default?: (props: typeof __VLS_12) => any;
24
+ };
25
+ declare const __VLS_base: import('vue').DefineComponent<__VLS_Props, {
26
+ isCollapsed: import('vue').ComputedRef<boolean>;
27
+ }, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
28
+ "update:collapsed": (value: boolean) => any;
29
+ collapsestatechange: (value: boolean) => any;
30
+ beforebodyenter: (element: HTMLElement | null) => any;
31
+ afterbodyenter: (element: HTMLElement | null) => any;
32
+ beforebodyleave: (element: HTMLElement | null) => any;
33
+ afterbodyleave: (element: HTMLElement | null) => any;
34
+ "header-click": () => any;
35
+ "header-dblclick": () => any;
36
+ }, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{
37
+ "onUpdate:collapsed"?: ((value: boolean) => any) | undefined;
38
+ onCollapsestatechange?: ((value: boolean) => any) | undefined;
39
+ onBeforebodyenter?: ((element: HTMLElement | null) => any) | undefined;
40
+ onAfterbodyenter?: ((element: HTMLElement | null) => any) | undefined;
41
+ onBeforebodyleave?: ((element: HTMLElement | null) => any) | undefined;
42
+ onAfterbodyleave?: ((element: HTMLElement | null) => any) | undefined;
43
+ "onHeader-click"?: (() => any) | undefined;
44
+ "onHeader-dblclick"?: (() => any) | undefined;
45
+ }>, {
46
+ collapsible: boolean;
47
+ collapsed: boolean;
48
+ collapseTriggerEvent: FieldsetCollapseTrigger;
49
+ collapseIcon: "left" | "none";
50
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
51
+ declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
52
+ declare const _default: typeof __VLS_export;
53
+ export default _default;
54
+ type __VLS_WithSlots<T, S> = T & {
55
+ new (): {
56
+ $slots: S;
57
+ };
58
+ };
@@ -0,0 +1,23 @@
1
+ type __VLS_Props = {
2
+ color?: 'blue' | 'grey';
3
+ /** Skip the built-in inner padding wrapper so the slot owns its layout. */
4
+ hideInnerCls?: boolean;
5
+ };
6
+ declare var __VLS_1: {}, __VLS_3: {};
7
+ type __VLS_Slots = {} & {
8
+ default?: (props: typeof __VLS_1) => any;
9
+ } & {
10
+ default?: (props: typeof __VLS_3) => any;
11
+ };
12
+ declare const __VLS_base: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {
13
+ color: "blue" | "grey";
14
+ hideInnerCls: boolean;
15
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
16
+ declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
17
+ declare const _default: typeof __VLS_export;
18
+ export default _default;
19
+ type __VLS_WithSlots<T, S> = T & {
20
+ new (): {
21
+ $slots: S;
22
+ };
23
+ };
@@ -0,0 +1,59 @@
1
+ import { FootbarButton } from '../../composite/footbar/types';
2
+ export type PanelFbarConfig = {
3
+ /** Set to `false` to hide the built-in confirm button, or override its fields. */
4
+ confirm?: false | Partial<FootbarButton>;
5
+ /** Set to `false` to hide the built-in cancel button, or override its fields. */
6
+ cancel?: false | Partial<FootbarButton>;
7
+ /** Replace the whole button row instead of tweaking confirm/cancel. */
8
+ buttons?: FootbarButton[];
9
+ };
10
+ export type PanelFbar = boolean | PanelFbarConfig;
11
+ type __VLS_Props = {
12
+ loading?: boolean;
13
+ loadingText?: string;
14
+ /** `true` shows the built-in Confirm/Cancel row, `false` hides the footer. */
15
+ fbar?: PanelFbar;
16
+ confirmText?: string;
17
+ cancelText?: string;
18
+ /** Make the default body slot scroll when its content overflows. */
19
+ scrollable?: boolean;
20
+ };
21
+ declare var __VLS_1: {}, __VLS_3: {}, __VLS_5: {}, __VLS_7: {}, __VLS_9: {}, __VLS_18: {};
22
+ type __VLS_Slots = {} & {
23
+ tbar?: (props: typeof __VLS_1) => any;
24
+ } & {
25
+ 'scroll-body'?: (props: typeof __VLS_3) => any;
26
+ } & {
27
+ body?: (props: typeof __VLS_5) => any;
28
+ } & {
29
+ default?: (props: typeof __VLS_7) => any;
30
+ } & {
31
+ fbar?: (props: typeof __VLS_9) => any;
32
+ } & {
33
+ 'spin-inner'?: (props: typeof __VLS_18) => any;
34
+ };
35
+ declare const __VLS_base: import('vue').DefineComponent<__VLS_Props, {
36
+ getScrollEl: () => HTMLElement | null;
37
+ }, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
38
+ cancel: (button: FootbarButton) => any;
39
+ "click-button": (button: FootbarButton, event: MouseEvent) => any;
40
+ confirm: (button: FootbarButton) => any;
41
+ }, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{
42
+ onCancel?: ((button: FootbarButton) => any) | undefined;
43
+ "onClick-button"?: ((button: FootbarButton, event: MouseEvent) => any) | undefined;
44
+ onConfirm?: ((button: FootbarButton) => any) | undefined;
45
+ }>, {
46
+ loading: boolean;
47
+ fbar: PanelFbar;
48
+ confirmText: string;
49
+ cancelText: string;
50
+ scrollable: boolean;
51
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
52
+ declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
53
+ declare const _default: typeof __VLS_export;
54
+ export default _default;
55
+ type __VLS_WithSlots<T, S> = T & {
56
+ new (): {
57
+ $slots: S;
58
+ };
59
+ };
@@ -0,0 +1,22 @@
1
+ type __VLS_Props = {
2
+ active?: boolean;
3
+ ariaLabel?: string;
4
+ };
5
+ declare var __VLS_1: {}, __VLS_3: {};
6
+ type __VLS_Slots = {} & {
7
+ inner?: (props: typeof __VLS_1) => any;
8
+ } & {
9
+ default?: (props: typeof __VLS_3) => any;
10
+ };
11
+ declare const __VLS_base: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {
12
+ ariaLabel: string;
13
+ active: boolean;
14
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
15
+ declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
16
+ declare const _default: typeof __VLS_export;
17
+ export default _default;
18
+ type __VLS_WithSlots<T, S> = T & {
19
+ new (): {
20
+ $slots: S;
21
+ };
22
+ };
@@ -0,0 +1,53 @@
1
+ type TriggerAction = 'hover' | 'click' | 'adaptive';
2
+ type InfoTipType = 'normal' | 'white';
3
+ type InfoTipSize = 'normal' | 'small';
4
+ type __VLS_Props = {
5
+ content?: string;
6
+ triggerAction?: TriggerAction;
7
+ type?: InfoTipType;
8
+ size?: InfoTipSize;
9
+ showDelay?: number;
10
+ hideDelay?: number;
11
+ disabled?: boolean;
12
+ forceSimple?: boolean;
13
+ hasPadding?: boolean;
14
+ ariaLabel?: string;
15
+ side?: 'top' | 'right' | 'bottom' | 'left';
16
+ /** Optional portal container factory, as in SVC's `tipContainer`. */
17
+ tipContainer?: () => HTMLElement | null | undefined;
18
+ };
19
+ type __VLS_Slots = {
20
+ default?: () => unknown;
21
+ custom?: () => unknown;
22
+ };
23
+ declare function showTooltip(): void;
24
+ declare function hideTooltip(): void;
25
+ declare const __VLS_base: import('vue').DefineComponent<__VLS_Props, {
26
+ showTooltip: typeof showTooltip;
27
+ hideTooltip: typeof hideTooltip;
28
+ }, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
29
+ activate: () => any;
30
+ deactivate: () => any;
31
+ }, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{
32
+ onActivate?: (() => any) | undefined;
33
+ onDeactivate?: (() => any) | undefined;
34
+ }>, {
35
+ size: InfoTipSize;
36
+ type: InfoTipType;
37
+ disabled: boolean;
38
+ ariaLabel: string;
39
+ side: "top" | "right" | "bottom" | "left";
40
+ hasPadding: boolean;
41
+ triggerAction: TriggerAction;
42
+ showDelay: number;
43
+ hideDelay: number;
44
+ forceSimple: boolean;
45
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
46
+ declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
47
+ declare const _default: typeof __VLS_export;
48
+ export default _default;
49
+ type __VLS_WithSlots<T, S> = T & {
50
+ new (): {
51
+ $slots: S;
52
+ };
53
+ };
@@ -0,0 +1,50 @@
1
+ import { NotificationAction, NotificationTone } from './notification';
2
+ type __VLS_Props = {
3
+ id?: string;
4
+ title?: string | false;
5
+ content?: string | false;
6
+ tone?: NotificationTone;
7
+ icon?: NotificationTone | false;
8
+ cancel?: NotificationAction;
9
+ confirm?: NotificationAction;
10
+ duration?: number | false;
11
+ /** Controlled by the provider while a notification animates out. */
12
+ open?: boolean;
13
+ /** External pause, used by the provider while the whole stack is hovered or focused. */
14
+ paused?: boolean;
15
+ closeLabel?: string;
16
+ };
17
+ type __VLS_Slots = {
18
+ icon?: () => unknown;
19
+ title?: () => unknown;
20
+ content?: () => unknown;
21
+ actions?: () => unknown;
22
+ footer?: () => unknown;
23
+ };
24
+ declare const __VLS_base: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
25
+ cancel: () => any;
26
+ close: () => any;
27
+ confirm: () => any;
28
+ }, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{
29
+ onCancel?: (() => any) | undefined;
30
+ onClose?: (() => any) | undefined;
31
+ onConfirm?: (() => any) | undefined;
32
+ }>, {
33
+ title: string | false;
34
+ open: boolean;
35
+ tone: NotificationTone;
36
+ content: string | false;
37
+ closeLabel: string;
38
+ duration: number | false;
39
+ cancel: NotificationAction;
40
+ confirm: NotificationAction;
41
+ paused: boolean;
42
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
43
+ declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
44
+ declare const _default: typeof __VLS_export;
45
+ export default _default;
46
+ type __VLS_WithSlots<T, S> = T & {
47
+ new (): {
48
+ $slots: S;
49
+ };
50
+ };
@@ -0,0 +1,36 @@
1
+ import { NotificationController } from './notification';
2
+ type NotificationAlignment = 'top-right' | 'top-left' | 'bottom-right' | 'bottom-left';
3
+ type __VLS_Props = {
4
+ /** How many notifications show while the stack is collapsed; `false` never stacks. */
5
+ stackSize?: number | false;
6
+ alignment?: NotificationAlignment;
7
+ /** Gap between notifications in the expanded layout, in pixels. */
8
+ gap?: number;
9
+ /** Offset between the cards of a collapsed stack, in pixels. */
10
+ stackGap?: number;
11
+ /** Default auto-close delay in milliseconds for notifications that do not set one. */
12
+ duration?: number;
13
+ landmarkLabel?: string;
14
+ accessHint?: string;
15
+ };
16
+ declare var __VLS_1: {};
17
+ type __VLS_Slots = {} & {
18
+ default?: (props: typeof __VLS_1) => any;
19
+ };
20
+ declare const __VLS_base: import('vue').DefineComponent<__VLS_Props, NotificationController, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {
21
+ duration: number;
22
+ stackSize: number | false;
23
+ alignment: NotificationAlignment;
24
+ gap: number;
25
+ stackGap: number;
26
+ landmarkLabel: string;
27
+ accessHint: string;
28
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
29
+ declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
30
+ declare const _default: typeof __VLS_export;
31
+ export default _default;
32
+ type __VLS_WithSlots<T, S> = T & {
33
+ new (): {
34
+ $slots: S;
35
+ };
36
+ };
@@ -0,0 +1,45 @@
1
+ import { InjectionKey } from 'vue';
2
+ export type NotificationTone = 'info' | 'suggest' | 'error';
3
+ export type NotificationActionConfig = {
4
+ text: string;
5
+ variant?: 'primary' | 'secondary' | 'ghost' | 'danger';
6
+ size?: 'sm' | 'md' | 'lg';
7
+ disabled?: boolean;
8
+ };
9
+ /** `true` shows the default label, `false` hides the button, a string sets the label. */
10
+ export type NotificationAction = string | boolean | NotificationActionConfig;
11
+ export type NotificationOptions = {
12
+ id?: string;
13
+ title?: string | false;
14
+ content?: string | false;
15
+ tone?: NotificationTone;
16
+ /** `false` hides the icon; a tone overrides the colour of `tone`. */
17
+ icon?: NotificationTone | false;
18
+ cancel?: NotificationAction;
19
+ confirm?: NotificationAction;
20
+ /** Milliseconds before auto-close; `false` keeps the notification until it is dismissed. */
21
+ duration?: number | false;
22
+ /** Runs on cancel; unlike the close button it does not dismiss the notification. */
23
+ onCancel?: () => void;
24
+ /** Runs on confirm; unlike the close button it does not dismiss the notification. */
25
+ onConfirm?: () => void;
26
+ onClose?: () => void;
27
+ };
28
+ export type NotificationItem = {
29
+ id: string;
30
+ open: boolean;
31
+ options: NotificationOptions;
32
+ };
33
+ export type NotificationDestroy = () => void;
34
+ export type NotificationController = {
35
+ notify: (options: NotificationOptions | string) => NotificationDestroy;
36
+ info: (options: NotificationOptions | string) => NotificationDestroy;
37
+ suggest: (options: NotificationOptions | string) => NotificationDestroy;
38
+ error: (options: NotificationOptions | string) => NotificationDestroy;
39
+ dismiss: (id: string) => void;
40
+ dismissAll: () => void;
41
+ };
42
+ export declare const notificationControllerKey: InjectionKey<NotificationController>;
43
+ export declare function useNotification(): NotificationController;
44
+ /** SVC naming for the same controller, for code moving over from `useNotifyManager()`. */
45
+ export declare const useNotifyManager: typeof useNotification;
@@ -0,0 +1,41 @@
1
+ type __VLS_Props = {
2
+ content?: string;
3
+ /** `true` turns the popup off completely, including the exposed show/hide methods. */
4
+ disable?: boolean;
5
+ open?: boolean;
6
+ defaultOpen?: boolean;
7
+ side?: 'top' | 'right' | 'bottom' | 'left';
8
+ align?: 'start' | 'center' | 'end';
9
+ offset?: number;
10
+ /** Optional portal container factory, matching the rest of the overlay components. */
11
+ tipContainer?: () => HTMLElement | null | undefined;
12
+ };
13
+ type __VLS_Slots = {
14
+ default?: () => unknown;
15
+ content?: () => unknown;
16
+ };
17
+ declare function showPopup(): void;
18
+ declare function hidePopup(): void;
19
+ declare const __VLS_base: import('vue').DefineComponent<__VLS_Props, {
20
+ showPopup: typeof showPopup;
21
+ hidePopup: typeof hidePopup;
22
+ }, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
23
+ "update:open": (value: boolean) => any;
24
+ }, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{
25
+ "onUpdate:open"?: ((value: boolean) => any) | undefined;
26
+ }>, {
27
+ side: "top" | "right" | "bottom" | "left";
28
+ align: "start" | "center" | "end";
29
+ defaultOpen: boolean;
30
+ open: boolean;
31
+ offset: number;
32
+ disable: boolean;
33
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
34
+ declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
35
+ declare const _default: typeof __VLS_export;
36
+ export default _default;
37
+ type __VLS_WithSlots<T, S> = T & {
38
+ new (): {
39
+ $slots: S;
40
+ };
41
+ };