@salesql/sql_components_vue3 3.32.0 → 3.34.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.
Files changed (51) hide show
  1. package/dist/composables/usePickerOrganizer.d.ts +15 -0
  2. package/dist/constants/events.d.ts +10 -0
  3. package/dist/constants/pickers.d.ts +13 -0
  4. package/dist/index.cjs +1 -1
  5. package/dist/index.cjs.map +1 -1
  6. package/dist/index.d.ts +21 -7
  7. package/dist/index.es.js +5288 -4376
  8. package/dist/index.es.js.map +1 -1
  9. package/dist/sql_components_vue3.css +1 -1
  10. package/dist/ui/DsAccountMenu/DsAccountMenu.types.d.ts +22 -12
  11. package/dist/ui/DsAccountMenu/DsAccountMenu.vue.d.ts +16 -3
  12. package/dist/ui/DsActionMenu/DsActionMenu.types.d.ts +8 -0
  13. package/dist/ui/DsColumnList/DsColumnList.types.d.ts +26 -0
  14. package/dist/ui/DsColumnList/DsColumnList.vue.d.ts +66 -0
  15. package/dist/ui/DsColumnList/index.d.ts +2 -0
  16. package/dist/ui/DsConfirmDialog/DsConfirmDialog.types.d.ts +24 -0
  17. package/dist/ui/DsConfirmDialog/DsConfirmDialog.vue.d.ts +91 -0
  18. package/dist/ui/DsConfirmDialog/index.d.ts +2 -0
  19. package/dist/ui/DsContactCard/DsContactCard.types.d.ts +30 -0
  20. package/dist/ui/DsContactCard/DsContactCard.vue.d.ts +103 -0
  21. package/dist/ui/DsContactCard/index.d.ts +2 -0
  22. package/dist/ui/DsCreditsChip/DsCreditsChip.types.d.ts +23 -0
  23. package/dist/ui/DsCreditsChip/DsCreditsChip.vue.d.ts +56 -0
  24. package/dist/ui/DsCreditsChip/index.d.ts +2 -0
  25. package/dist/ui/DsCreditsNotice/DsCreditsNotice.types.d.ts +15 -0
  26. package/dist/ui/DsCreditsNotice/DsCreditsNotice.vue.d.ts +46 -0
  27. package/dist/ui/DsCreditsNotice/index.d.ts +2 -0
  28. package/dist/ui/DsCreditsPopover/DsCreditsPopover.types.d.ts +46 -0
  29. package/dist/ui/DsCreditsPopover/DsCreditsPopover.vue.d.ts +108 -0
  30. package/dist/ui/DsCreditsPopover/index.d.ts +2 -0
  31. package/dist/ui/DsCreditsSummary/DsCreditsSummary.types.d.ts +42 -0
  32. package/dist/ui/DsCreditsSummary/DsCreditsSummary.vue.d.ts +51 -0
  33. package/dist/ui/DsCreditsSummary/creditsLevel.d.ts +13 -0
  34. package/dist/ui/DsCreditsSummary/index.d.ts +3 -0
  35. package/dist/ui/DsEmptyState/DsEmptyState.types.d.ts +11 -0
  36. package/dist/ui/DsEmptyState/DsEmptyState.vue.d.ts +29 -0
  37. package/dist/ui/DsItemSelectorButton/DsItemSelectorButton.types.d.ts +6 -0
  38. package/dist/ui/DsItemSelectorButton/DsItemSelectorButton.vue.d.ts +9 -0
  39. package/dist/ui/DsModal/DsModal.types.d.ts +8 -0
  40. package/dist/ui/DsModal/DsModal.vue.d.ts +25 -0
  41. package/dist/ui/DsModal/modalStack.d.ts +9 -0
  42. package/dist/ui/DsPopover/DsPopover.types.d.ts +8 -0
  43. package/dist/ui/DsPopover/DsPopover.vue.d.ts +18 -0
  44. package/dist/ui/DsSavedButton/DsSavedButton.types.d.ts +8 -2
  45. package/dist/ui/DsSavedButton/DsSavedButton.vue.d.ts +33 -4
  46. package/dist/ui/DsTagPicker/DsTagPicker.types.d.ts +6 -1
  47. package/dist/ui/DsTagPicker/DsTagPicker.vue.d.ts +12 -2
  48. package/llms-full.txt +421 -67
  49. package/llms.txt +7 -0
  50. package/package.json +1 -1
  51. package/src/icons/manifest.json +3 -0
@@ -1,8 +1,16 @@
1
+ import type { DsCredits } from '../../ui/DsCreditsSummary';
1
2
  export declare const DS_MAILBOX_PROVIDERS: {
2
3
  readonly GOOGLE: "google";
3
4
  readonly MICROSOFT: "microsoft";
4
5
  };
5
6
  export type DsMailboxProvider = (typeof DS_MAILBOX_PROVIDERS)[keyof typeof DS_MAILBOX_PROVIDERS];
7
+ /** Whether the mailboxes read worked: `error` / `retrying` show «Retry» instead of the list. */
8
+ export declare const DS_ACCOUNT_MENU_MAILBOXES_STATES: {
9
+ readonly READY: "ready";
10
+ readonly ERROR: "error";
11
+ readonly RETRYING: "retrying";
12
+ };
13
+ export type DsAccountMenuMailboxesState = (typeof DS_ACCOUNT_MENU_MAILBOXES_STATES)[keyof typeof DS_ACCOUNT_MENU_MAILBOXES_STATES];
6
14
  export interface DsAccountMenuUser {
7
15
  name: string;
8
16
  email: string;
@@ -11,16 +19,8 @@ export interface DsAccountMenuUser {
11
19
  /** Plan chip («Premium», «Free»). Empty = no chip. */
12
20
  plan?: string;
13
21
  }
14
- export interface DsAccountMenuCredits {
15
- /** Used this period. Only read with a `total`. Omitted = `total - available` (not below 0), else 0. */
16
- used?: number | null;
17
- /** The period's allowance. `null`, `0` or omitted = unknown: no bar and no «X of Y used». */
18
- total?: number | null;
19
- /** «N available». Omitted = `total - used` (not below 0). Given, it wins, even above `total`. */
20
- available?: number | null;
21
- /** Reset date, already formatted by the app («Dec 1»). Empty = no reset text. */
22
- resetsOn?: string;
23
- }
22
+ /** The credits block's data: the shared `DsCredits` of DsCreditsSummary. */
23
+ export type DsAccountMenuCredits = DsCredits;
24
24
  export interface DsAccountMenuMailbox {
25
25
  /** Stable key. */
26
26
  id: string | number;
@@ -34,7 +34,7 @@ export interface DsAccountMenuProgress {
34
34
  done: number;
35
35
  total: number;
36
36
  }
37
- /** Every string of the menu. Pass a partial: it overrides only its keys. */
37
+ /** Every string of the menu. Pass a partial: it overrides only its keys. Newer keys are optional. */
38
38
  export interface DsAccountMenuCopy {
39
39
  /** The trigger's and the menu's accessible name. */
40
40
  menu: string;
@@ -57,6 +57,11 @@ export interface DsAccountMenuCopy {
57
57
  /** The «Reconnect» pill's accessible name. */
58
58
  reconnectLabel: (email: string) => string;
59
59
  reconnectTooltip: string;
60
+ /** The Mailboxes group's message when the list could not be read. */
61
+ mailboxesError?: string;
62
+ retry?: string;
63
+ /** Announced to screen readers when a retry fails again. */
64
+ mailboxesRetryFailed?: string;
60
65
  getStarted: string;
61
66
  getStartedProgress: (done: number, total: number) => string;
62
67
  bulkSave: string;
@@ -68,7 +73,7 @@ export interface DsAccountMenuCopy {
68
73
  whatsNewUnread: (unread: number) => string;
69
74
  logout: string;
70
75
  }
71
- export declare const DS_ACCOUNT_MENU_COPY: DsAccountMenuCopy;
76
+ export declare const DS_ACCOUNT_MENU_COPY: Required<DsAccountMenuCopy>;
72
77
  export interface DsAccountMenuProps {
73
78
  /** Visibility. Omit it and the menu manages itself; bind `v-model:open` to control it. */
74
79
  open?: boolean;
@@ -80,6 +85,11 @@ export interface DsAccountMenuProps {
80
85
  * `[]` = «Mailboxes» + «Connect a mailbox».
81
86
  */
82
87
  mailboxes?: DsAccountMenuMailbox[] | null;
88
+ /**
89
+ * `error` / `retrying`: the list could not be read. The group shows the message and «Retry»
90
+ * (busy while `retrying`) and ignores `mailboxes`. Default `ready`.
91
+ */
92
+ mailboxesState?: DsAccountMenuMailboxesState;
83
93
  /** «Get started · n of total», while the onboarding checklist is hidden. `null` = no row. */
84
94
  getStarted?: DsAccountMenuProgress | null;
85
95
  showBulkSave?: boolean;
@@ -1,5 +1,5 @@
1
1
  import { type PropType } from 'vue';
2
- import { type DsAccountMenuCopy, type DsAccountMenuCredits, type DsAccountMenuMailbox, type DsAccountMenuProgress, type DsAccountMenuUser } from './DsAccountMenu.types';
2
+ import { type DsAccountMenuCopy, type DsAccountMenuCredits, type DsAccountMenuMailbox, type DsAccountMenuMailboxesState, type DsAccountMenuProgress, type DsAccountMenuUser } from './DsAccountMenu.types';
3
3
  declare const _default: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
4
4
  open: {
5
5
  type: BooleanConstructor;
@@ -17,6 +17,11 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
17
17
  type: PropType<DsAccountMenuMailbox[] | null>;
18
18
  default: null;
19
19
  };
20
+ mailboxesState: {
21
+ type: PropType<DsAccountMenuMailboxesState>;
22
+ default: "ready";
23
+ validator: (value: string) => boolean;
24
+ };
20
25
  getStarted: {
21
26
  type: PropType<DsAccountMenuProgress | null>;
22
27
  default: null;
@@ -53,6 +58,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
53
58
  "update:open": (...args: any[]) => void;
54
59
  connect: (...args: any[]) => void;
55
60
  reconnect: (...args: any[]) => void;
61
+ "retry-mailboxes": (...args: any[]) => void;
56
62
  "get-started": (...args: any[]) => void;
57
63
  "bulk-save": (...args: any[]) => void;
58
64
  "linkedin-accounts": (...args: any[]) => void;
@@ -77,6 +83,11 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
77
83
  type: PropType<DsAccountMenuMailbox[] | null>;
78
84
  default: null;
79
85
  };
86
+ mailboxesState: {
87
+ type: PropType<DsAccountMenuMailboxesState>;
88
+ default: "ready";
89
+ validator: (value: string) => boolean;
90
+ };
80
91
  getStarted: {
81
92
  type: PropType<DsAccountMenuProgress | null>;
82
93
  default: null;
@@ -113,6 +124,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
113
124
  "onUpdate:open"?: ((...args: any[]) => any) | undefined;
114
125
  onConnect?: ((...args: any[]) => any) | undefined;
115
126
  onReconnect?: ((...args: any[]) => any) | undefined;
127
+ "onRetry-mailboxes"?: ((...args: any[]) => any) | undefined;
116
128
  "onGet-started"?: ((...args: any[]) => any) | undefined;
117
129
  "onBulk-save"?: ((...args: any[]) => any) | undefined;
118
130
  "onLinkedin-accounts"?: ((...args: any[]) => any) | undefined;
@@ -124,13 +136,14 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
124
136
  copy: Partial<DsAccountMenuCopy>;
125
137
  open: boolean;
126
138
  language: string;
127
- credits: DsAccountMenuCredits | null;
139
+ credits: import("../../ui/DsCreditsSummary").DsCredits | null;
128
140
  mailboxes: DsAccountMenuMailbox[] | null;
129
141
  getStarted: DsAccountMenuProgress | null;
142
+ whatsNewUnread: number;
143
+ mailboxesState: DsAccountMenuMailboxesState;
130
144
  showBulkSave: boolean;
131
145
  showLinkedinAccounts: boolean;
132
146
  showHelp: boolean;
133
147
  showWhatsNew: boolean;
134
- whatsNewUnread: number;
135
148
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
136
149
  export default _default;
@@ -6,6 +6,14 @@ export interface DsActionMenuItem {
6
6
  label: string;
7
7
  disabled?: boolean;
8
8
  danger?: boolean;
9
+ /**
10
+ * Makes the item a choice (`menuitemradio`): `true` draws a check where the icon would be, `false`
11
+ * keeps the space blank so the labels line up. The consumer keeps exactly one `true`. An `icon` is
12
+ * ignored on a choice. Leave it out on plain actions.
13
+ */
14
+ checked?: boolean;
15
+ /** A hairline separator under this item, to split a group of choices from the actions below. */
16
+ separatorAfter?: boolean;
9
17
  }
10
18
  /** Item text weight. `bold` is for menus that sit on a bold surface (a table header). */
11
19
  export declare const DS_ACTION_MENU_WEIGHTS: {
@@ -0,0 +1,26 @@
1
+ export interface DsColumnListItem {
2
+ /** Stable key; the payload of `toggle` and an entry of `reorder`. */
3
+ id: string;
4
+ /** The column's name. App copy. */
5
+ label: string;
6
+ /** The column is shown in the table: its checkbox is checked. */
7
+ visible: boolean;
8
+ /** Cannot be toggled (it does not apply here). It can still be reordered. */
9
+ disabled?: boolean;
10
+ /** Small text at the right end, e.g. why it is disabled. App copy. */
11
+ hint?: string;
12
+ }
13
+ export interface DsColumnListProps {
14
+ /** Every column, in table order, hidden ones included. */
15
+ columns: DsColumnListItem[];
16
+ /** The always-first column («Profile»): a lock and a checked, disabled row above the list. Empty draws none. App copy. */
17
+ lockedLabel?: string;
18
+ /** Hint of the locked row («Always first»). App copy. */
19
+ lockedHint?: string;
20
+ /** Tooltip of the drag handle («Drag to reorder»). App copy. */
21
+ dragLabel?: string;
22
+ /** Accessible name of the list. App copy. */
23
+ ariaLabel?: string;
24
+ /** Spoken description of the keyboard shortcut («Press Alt and an arrow key to move a column»). Empty draws none. App copy. */
25
+ reorderHint?: string;
26
+ }
@@ -0,0 +1,66 @@
1
+ import { type PropType } from 'vue';
2
+ import type { DsColumnListItem } from './DsColumnList.types';
3
+ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
4
+ columns: {
5
+ type: PropType<DsColumnListItem[]>;
6
+ required: true;
7
+ };
8
+ lockedLabel: {
9
+ type: StringConstructor;
10
+ default: string;
11
+ };
12
+ lockedHint: {
13
+ type: StringConstructor;
14
+ default: string;
15
+ };
16
+ dragLabel: {
17
+ type: StringConstructor;
18
+ default: string;
19
+ };
20
+ ariaLabel: {
21
+ type: StringConstructor;
22
+ default: string;
23
+ };
24
+ reorderHint: {
25
+ type: StringConstructor;
26
+ default: string;
27
+ };
28
+ }>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
29
+ toggle: (...args: any[]) => void;
30
+ reorder: (...args: any[]) => void;
31
+ }, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
32
+ columns: {
33
+ type: PropType<DsColumnListItem[]>;
34
+ required: true;
35
+ };
36
+ lockedLabel: {
37
+ type: StringConstructor;
38
+ default: string;
39
+ };
40
+ lockedHint: {
41
+ type: StringConstructor;
42
+ default: string;
43
+ };
44
+ dragLabel: {
45
+ type: StringConstructor;
46
+ default: string;
47
+ };
48
+ ariaLabel: {
49
+ type: StringConstructor;
50
+ default: string;
51
+ };
52
+ reorderHint: {
53
+ type: StringConstructor;
54
+ default: string;
55
+ };
56
+ }>> & Readonly<{
57
+ onToggle?: ((...args: any[]) => any) | undefined;
58
+ onReorder?: ((...args: any[]) => any) | undefined;
59
+ }>, {
60
+ ariaLabel: string;
61
+ lockedLabel: string;
62
+ lockedHint: string;
63
+ dragLabel: string;
64
+ reorderHint: string;
65
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
66
+ export default _default;
@@ -0,0 +1,2 @@
1
+ export { default as DsColumnList } from './DsColumnList.vue';
2
+ export * from './DsColumnList.types';
@@ -0,0 +1,24 @@
1
+ export declare const DS_CONFIRM_DIALOG_CANCEL_REASONS: {
2
+ /** The secondary button. */
3
+ readonly ACTION: "action";
4
+ /** Esc, the X or the backdrop. */
5
+ readonly DISMISS: "dismiss";
6
+ };
7
+ export type DsConfirmDialogCancelReason = (typeof DS_CONFIRM_DIALOG_CANCEL_REASONS)[keyof typeof DS_CONFIRM_DIALOG_CANCEL_REASONS];
8
+ export interface DsConfirmDialogProps {
9
+ open?: boolean;
10
+ /** The header («Confirm contact move»). */
11
+ title: string;
12
+ /** The question. The default slot replaces it for richer content. */
13
+ text?: string;
14
+ /** A secondary line under the text (stale data, a side effect). Empty = none. */
15
+ notice?: string;
16
+ /** The primary action («Move to new folder»); emits `confirm`. */
17
+ confirmLabel: string;
18
+ /** The safe action («Keep in current folder»); emits `cancel` with `action`. Gets the focus on open. */
19
+ cancelLabel: string;
20
+ /** Accessible name of the dialog's X. */
21
+ closeLabel?: string;
22
+ /** The app is acting on the answer: the primary shows its spinner and every path is blocked. */
23
+ loading?: boolean;
24
+ }
@@ -0,0 +1,91 @@
1
+ import { type DsConfirmDialogCancelReason } from './DsConfirmDialog.types';
2
+ declare var __VLS_10: {};
3
+ type __VLS_Slots = {} & {
4
+ default?: (props: typeof __VLS_10) => any;
5
+ };
6
+ declare const __VLS_component: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
7
+ open: {
8
+ type: BooleanConstructor;
9
+ default: boolean;
10
+ };
11
+ title: {
12
+ type: StringConstructor;
13
+ required: true;
14
+ };
15
+ text: {
16
+ type: StringConstructor;
17
+ default: string;
18
+ };
19
+ notice: {
20
+ type: StringConstructor;
21
+ default: string;
22
+ };
23
+ confirmLabel: {
24
+ type: StringConstructor;
25
+ required: true;
26
+ };
27
+ cancelLabel: {
28
+ type: StringConstructor;
29
+ required: true;
30
+ };
31
+ closeLabel: {
32
+ type: StringConstructor;
33
+ default: string;
34
+ };
35
+ loading: {
36
+ type: BooleanConstructor;
37
+ default: boolean;
38
+ };
39
+ }>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
40
+ cancel: (reason: DsConfirmDialogCancelReason) => void;
41
+ confirm: () => void;
42
+ }, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
43
+ open: {
44
+ type: BooleanConstructor;
45
+ default: boolean;
46
+ };
47
+ title: {
48
+ type: StringConstructor;
49
+ required: true;
50
+ };
51
+ text: {
52
+ type: StringConstructor;
53
+ default: string;
54
+ };
55
+ notice: {
56
+ type: StringConstructor;
57
+ default: string;
58
+ };
59
+ confirmLabel: {
60
+ type: StringConstructor;
61
+ required: true;
62
+ };
63
+ cancelLabel: {
64
+ type: StringConstructor;
65
+ required: true;
66
+ };
67
+ closeLabel: {
68
+ type: StringConstructor;
69
+ default: string;
70
+ };
71
+ loading: {
72
+ type: BooleanConstructor;
73
+ default: boolean;
74
+ };
75
+ }>> & Readonly<{
76
+ onCancel?: ((reason: DsConfirmDialogCancelReason) => any) | undefined;
77
+ onConfirm?: (() => any) | undefined;
78
+ }>, {
79
+ text: string;
80
+ open: boolean;
81
+ loading: boolean;
82
+ closeLabel: string;
83
+ notice: string;
84
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
85
+ declare const _default: __VLS_WithSlots<typeof __VLS_component, __VLS_Slots>;
86
+ export default _default;
87
+ type __VLS_WithSlots<T, S> = T & {
88
+ new (): {
89
+ $slots: S;
90
+ };
91
+ };
@@ -0,0 +1,2 @@
1
+ export { default as DsConfirmDialog } from './DsConfirmDialog.vue';
2
+ export * from './DsConfirmDialog.types';
@@ -0,0 +1,30 @@
1
+ export interface DsContactCardRow {
2
+ /** Stable key; handed back by the `row` slot so the app knows which cell to draw. */
3
+ id: string;
4
+ /** The column's name, drawn uppercase. App copy. */
5
+ label: string;
6
+ }
7
+ export interface DsContactCardProps {
8
+ firstName?: string;
9
+ lastName?: string;
10
+ /** Job title, one line with an ellipsis. Empty draws none. */
11
+ jobTitle?: string;
12
+ /** Photo URL. Empty, or failing to load, falls back to DsAvatar's initials. */
13
+ image?: string;
14
+ /** Seeds the colour of the initials fallback (DsAvatar). */
15
+ uid?: string;
16
+ /** Draws a checkbox before the photo. Off by default: selection is opt-in. */
17
+ selectable?: boolean;
18
+ /** v-model:selected — the checkbox, and the accent background of the card. */
19
+ selected?: boolean;
20
+ /** Accessible name of the checkbox (it has no visible label), e.g. «Select Ada Lovelace». App copy. */
21
+ selectLabel?: string;
22
+ /** Accessible name of the open button. Optional: the visible name already names it; when set it must contain it (WCAG 2.5.3). App copy. */
23
+ openLabel?: string;
24
+ /** The labelled rows under the head, in order. None draws no body. */
25
+ rows?: DsContactCardRow[];
26
+ }
27
+ /** Scope of the `row` slot. */
28
+ export interface DsContactCardRowSlotProps {
29
+ row: DsContactCardRow;
30
+ }
@@ -0,0 +1,103 @@
1
+ import { type PropType } from 'vue';
2
+ import type { DsContactCardRow } from './DsContactCard.types';
3
+ declare var __VLS_13: {
4
+ row: DsContactCardRow;
5
+ };
6
+ type __VLS_Slots = {} & {
7
+ row?: (props: typeof __VLS_13) => any;
8
+ };
9
+ declare const __VLS_component: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
10
+ firstName: {
11
+ type: StringConstructor;
12
+ default: string;
13
+ };
14
+ lastName: {
15
+ type: StringConstructor;
16
+ default: string;
17
+ };
18
+ jobTitle: {
19
+ type: StringConstructor;
20
+ default: string;
21
+ };
22
+ image: {
23
+ type: StringConstructor;
24
+ default: string;
25
+ };
26
+ uid: {
27
+ type: StringConstructor;
28
+ default: string;
29
+ };
30
+ selectable: BooleanConstructor;
31
+ selected: BooleanConstructor;
32
+ selectLabel: {
33
+ type: StringConstructor;
34
+ default: string;
35
+ };
36
+ openLabel: {
37
+ type: StringConstructor;
38
+ default: string;
39
+ };
40
+ rows: {
41
+ type: PropType<DsContactCardRow[]>;
42
+ default: () => never[];
43
+ };
44
+ }>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
45
+ open: (...args: any[]) => void;
46
+ "update:selected": (...args: any[]) => void;
47
+ }, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
48
+ firstName: {
49
+ type: StringConstructor;
50
+ default: string;
51
+ };
52
+ lastName: {
53
+ type: StringConstructor;
54
+ default: string;
55
+ };
56
+ jobTitle: {
57
+ type: StringConstructor;
58
+ default: string;
59
+ };
60
+ image: {
61
+ type: StringConstructor;
62
+ default: string;
63
+ };
64
+ uid: {
65
+ type: StringConstructor;
66
+ default: string;
67
+ };
68
+ selectable: BooleanConstructor;
69
+ selected: BooleanConstructor;
70
+ selectLabel: {
71
+ type: StringConstructor;
72
+ default: string;
73
+ };
74
+ openLabel: {
75
+ type: StringConstructor;
76
+ default: string;
77
+ };
78
+ rows: {
79
+ type: PropType<DsContactCardRow[]>;
80
+ default: () => never[];
81
+ };
82
+ }>> & Readonly<{
83
+ onOpen?: ((...args: any[]) => any) | undefined;
84
+ "onUpdate:selected"?: ((...args: any[]) => any) | undefined;
85
+ }>, {
86
+ image: string;
87
+ selected: boolean;
88
+ firstName: string;
89
+ lastName: string;
90
+ uid: string;
91
+ rows: DsContactCardRow[];
92
+ selectable: boolean;
93
+ jobTitle: string;
94
+ openLabel: string;
95
+ selectLabel: string;
96
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
97
+ declare const _default: __VLS_WithSlots<typeof __VLS_component, __VLS_Slots>;
98
+ export default _default;
99
+ type __VLS_WithSlots<T, S> = T & {
100
+ new (): {
101
+ $slots: S;
102
+ };
103
+ };
@@ -0,0 +1,2 @@
1
+ export { default as DsContactCard } from './DsContactCard.vue';
2
+ export * from './DsContactCard.types';
@@ -0,0 +1,23 @@
1
+ import { type DsCreditsLevel } from '../../ui/DsCreditsSummary';
2
+ export interface DsCreditsChipCopy {
3
+ /**
4
+ * The accessible name. `formatted` is the balance as drawn («12,000»). It also says `low`,
5
+ * which the chip otherwise shows only in colour.
6
+ */
7
+ label: (formatted: string, available: number, level: DsCreditsLevel) => string;
8
+ }
9
+ export declare const DS_CREDITS_CHIP_COPY: DsCreditsChipCopy;
10
+ export interface DsCreditsChipProps {
11
+ /** The balance. Drawn `en-US` («12,000»), never below 0. */
12
+ available: number;
13
+ /** `normal`, `low` (amber) or `out` (red). Default `normal`. */
14
+ level?: DsCreditsLevel;
15
+ /**
16
+ * Whether the popover it opens is showing. Left out, the chip is a plain action: no
17
+ * `aria-expanded` or `aria-haspopup`. Passed (even `false`), it is a disclosure for a `dialog`.
18
+ */
19
+ open?: boolean;
20
+ /** Tooltip text («412 credits · resets Dec 1»). Empty = none. Off while open. */
21
+ tooltip?: string;
22
+ copy?: Partial<DsCreditsChipCopy>;
23
+ }
@@ -0,0 +1,56 @@
1
+ import { type PropType } from 'vue';
2
+ import { type DsCreditsLevel } from '../../ui/DsCreditsSummary';
3
+ import { type DsCreditsChipCopy } from './DsCreditsChip.types';
4
+ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
5
+ available: {
6
+ type: NumberConstructor;
7
+ required: true;
8
+ };
9
+ level: {
10
+ type: PropType<DsCreditsLevel>;
11
+ default: "normal";
12
+ };
13
+ open: {
14
+ type: BooleanConstructor;
15
+ default: undefined;
16
+ };
17
+ tooltip: {
18
+ type: StringConstructor;
19
+ default: string;
20
+ };
21
+ copy: {
22
+ type: PropType<Partial<DsCreditsChipCopy>>;
23
+ default: undefined;
24
+ };
25
+ }>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
26
+ click: (...args: any[]) => void;
27
+ }, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
28
+ available: {
29
+ type: NumberConstructor;
30
+ required: true;
31
+ };
32
+ level: {
33
+ type: PropType<DsCreditsLevel>;
34
+ default: "normal";
35
+ };
36
+ open: {
37
+ type: BooleanConstructor;
38
+ default: undefined;
39
+ };
40
+ tooltip: {
41
+ type: StringConstructor;
42
+ default: string;
43
+ };
44
+ copy: {
45
+ type: PropType<Partial<DsCreditsChipCopy>>;
46
+ default: undefined;
47
+ };
48
+ }>> & Readonly<{
49
+ onClick?: ((...args: any[]) => any) | undefined;
50
+ }>, {
51
+ copy: Partial<DsCreditsChipCopy>;
52
+ open: boolean;
53
+ tooltip: string;
54
+ level: DsCreditsLevel;
55
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
56
+ export default _default;
@@ -0,0 +1,2 @@
1
+ export { default as DsCreditsChip } from './DsCreditsChip.vue';
2
+ export * from './DsCreditsChip.types';
@@ -0,0 +1,15 @@
1
+ export declare const DS_CREDITS_NOTICE_TONES: {
2
+ readonly INFO: "info";
3
+ readonly LOW: "low";
4
+ readonly OUT: "out";
5
+ };
6
+ export type DsCreditsNoticeTone = (typeof DS_CREDITS_NOTICE_TONES)[keyof typeof DS_CREDITS_NOTICE_TONES];
7
+ export interface DsCreditsNoticeProps {
8
+ /** Already translated by the app. */
9
+ text: string;
10
+ tone?: DsCreditsNoticeTone;
11
+ /** An inline link right after the text («More info.»). Empty = no link. */
12
+ linkLabel?: string;
13
+ /** Where the link goes, in a new tab. Omitted, the link is a button that emits `click`. */
14
+ href?: string;
15
+ }
@@ -0,0 +1,46 @@
1
+ import type { PropType } from 'vue';
2
+ import { type DsCreditsNoticeTone } from './DsCreditsNotice.types';
3
+ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
4
+ text: {
5
+ type: StringConstructor;
6
+ required: true;
7
+ };
8
+ tone: {
9
+ type: PropType<DsCreditsNoticeTone>;
10
+ default: "info";
11
+ };
12
+ linkLabel: {
13
+ type: StringConstructor;
14
+ default: string;
15
+ };
16
+ href: {
17
+ type: StringConstructor;
18
+ default: string;
19
+ };
20
+ }>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
21
+ click: (...args: any[]) => void;
22
+ }, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
23
+ text: {
24
+ type: StringConstructor;
25
+ required: true;
26
+ };
27
+ tone: {
28
+ type: PropType<DsCreditsNoticeTone>;
29
+ default: "info";
30
+ };
31
+ linkLabel: {
32
+ type: StringConstructor;
33
+ default: string;
34
+ };
35
+ href: {
36
+ type: StringConstructor;
37
+ default: string;
38
+ };
39
+ }>> & Readonly<{
40
+ onClick?: ((...args: any[]) => any) | undefined;
41
+ }>, {
42
+ tone: DsCreditsNoticeTone;
43
+ href: string;
44
+ linkLabel: string;
45
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
46
+ export default _default;
@@ -0,0 +1,2 @@
1
+ export { default as DsCreditsNotice } from './DsCreditsNotice.vue';
2
+ export * from './DsCreditsNotice.types';