@antelopejs/dms 0.25.5 → 0.25.6-next.1105.g9b73018

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 (66) hide show
  1. package/E2E.md +1 -1
  2. package/README.md +1 -1
  3. package/dist/implementations/dms-builder/engine/dms-database.js.map +1 -1
  4. package/dist/implementations/dms-builder/engine/driver-probe.d.ts +1 -1
  5. package/dist/mcp/tool.d.ts +1 -1
  6. package/frontend-vue/.prettierignore +1 -0
  7. package/frontend-vue/build/backend-boundary.ts +80 -80
  8. package/frontend-vue/layers/dms-auth/server/backend-answers.ts +12 -9
  9. package/frontend-vue/layers/dms-auth/server/oauth.ts +6 -6
  10. package/frontend-vue/layers/dms-core/app/build/utils/permission-preview.ts +1 -2
  11. package/frontend-vue/layers/dms-core/app/composables/period/types.ts +1 -4
  12. package/frontend-vue/layers/dms-core/app/composables/useApiErrorPresenter.ts +1 -3
  13. package/frontend-vue/layers/dms-core/app/composables/useFormValidation.ts +1 -2
  14. package/frontend-vue/layers/dms-core/app/types/composed-text.ts +1 -4
  15. package/frontend-vue/layers/dms-core/app/types/confirm-dialog.ts +1 -2
  16. package/frontend-vue/layers/dms-core/app/types/data-type.ts +1 -2
  17. package/frontend-vue/layers/dms-core/app/types/json.ts +1 -3
  18. package/frontend-vue/layers/dms-core/app/types/module-store.ts +3 -17
  19. package/frontend-vue/layers/dms-layout/app/build/components/layout/PageHeaderActionBar.vue +3 -2
  20. package/frontend-vue/layers/dms-layout/app/build/components/layout/PreviewPageHeader.vue +11 -8
  21. package/frontend-vue/layers/dms-layout/app/build/components/layout/StageCard.vue +1 -5
  22. package/frontend-vue/layers/dms-layout/app/build/components/notification/NotificationPopover.vue +3 -1
  23. package/frontend-vue/layers/dms-layout/app/build/components/pages/settings/notification/NotificationInboxItem.vue +3 -3
  24. package/frontend-vue/layers/dms-layout/app/build/components/pages/settings/roles/role-permissions.ts +1 -1
  25. package/frontend-vue/layers/dms-layout/app/build/composables/settings/security/useSecurityOverview.ts +1 -3
  26. package/frontend-vue/layers/dms-layout/app/build/utils/module-store-install.ts +1 -3
  27. package/frontend-vue/layers/dms-layout/app/composables/notification/useNotifications.ts +1 -5
  28. package/frontend-vue/layers/dms-ui/app/build/components/block-preview/MockupOverviewSlot.vue +4 -2
  29. package/frontend-vue/layers/dms-ui/app/build/components/blocks/BlockActions.vue +4 -2
  30. package/frontend-vue/layers/dms-ui/app/build/composables/block-preview/useMockupRealData.ts +1 -4
  31. package/frontend-vue/layers/dms-ui/app/build/composables/block-preview/useMockupSectionEditing.ts +1 -2
  32. package/frontend-vue/layers/dms-ui/app/build/composables/block-preview/useMockupSpec.ts +1 -2
  33. package/frontend-vue/layers/dms-ui/app/build/composables/blocks/useRefreshTriggers.ts +1 -2
  34. package/frontend-vue/layers/dms-ui/app/build/composables/form/formComponentErrors.ts +1 -3
  35. package/frontend-vue/layers/dms-ui/app/build/composables/form/formComponentRealtime.ts +4 -5
  36. package/frontend-vue/layers/dms-ui/app/build/composables/form/formComponentValidation.ts +4 -5
  37. package/frontend-vue/layers/dms-ui/app/build/composables/form/formValidation.ts +1 -2
  38. package/frontend-vue/layers/dms-ui/app/build/composables/period/periodQuery.ts +1 -2
  39. package/frontend-vue/layers/dms-ui/app/build/composables/table-view/tableViewDisplayContext.ts +35 -37
  40. package/frontend-vue/layers/dms-ui/app/build/composables/table-view/useTableLiveHold.ts +1 -4
  41. package/frontend-vue/layers/dms-ui/app/build/composables/table-view/utils/recordLink.ts +1 -4
  42. package/frontend-vue/layers/dms-ui/app/build/mockups/MockupCard.vue +1 -3
  43. package/frontend-vue/layers/dms-ui/app/build/utils/mockupFrame.ts +1 -1
  44. package/frontend-vue/layers/dms-ui/app/build/utils/mockupShortcuts.ts +1 -5
  45. package/frontend-vue/layers/dms-ui/app/components/blocks/BannerBlock.vue +3 -4
  46. package/frontend-vue/layers/dms-ui/app/components/blocks/KeyValueListBlock.vue +4 -2
  47. package/frontend-vue/layers/dms-ui/app/components/blocks/StatGroupBlock.vue +4 -2
  48. package/frontend-vue/layers/dms-ui/app/components/code-snippet/CodeSnippet.vue +2 -3
  49. package/frontend-vue/layers/dms-ui/app/components/form/FormBlock.vue +5 -1
  50. package/frontend-vue/layers/dms-ui/app/components/form/components/DatePicker.vue +4 -2
  51. package/frontend-vue/layers/dms-ui/app/components/form/components/InputCalendar.vue +4 -2
  52. package/frontend-vue/layers/dms-ui/app/components/form/components/InputCode.vue +1 -2
  53. package/frontend-vue/layers/dms-ui/app/components/key-value-list/KeyValueList.vue +1 -6
  54. package/frontend-vue/layers/dms-ui/app/composables/confirm/types.ts +5 -4
  55. package/frontend-vue/layers/dms-ui/app/composables/containers/types.ts +5 -8
  56. package/frontend-vue/layers/dms-ui/app/composables/table-view/types/action-target.ts +4 -2
  57. package/frontend-vue/layers/dms-ui/app/composables/table-view/types/config.ts +5 -10
  58. package/frontend-vue/layers/dms-ui/app/types/modal.ts +1 -9
  59. package/frontend-vue/layers/dms-ui/app/types/quick-actions.ts +1 -2
  60. package/frontend-vue/layers/dms-ui/app/utils/mockupAssistant.ts +1 -4
  61. package/frontend-vue/layers/dms-ui/app/utils/semanticTint.ts +1 -6
  62. package/frontend-vue/package.json +5 -5
  63. package/frontend-vue/scripts/check-api-error-presentation.mjs +3 -3
  64. package/frontend-vue/scripts/check-page-invariants.mjs +6 -9
  65. package/frontend-vue/scripts/dms-components-script.mjs +7 -7
  66. package/package.json +7 -8
@@ -23,8 +23,7 @@ import { type LiveGate, useLiveGate } from "../live/currentPageLive";
23
23
  export function useRefreshTriggers(
24
24
  realtimeTopic: string | string[] | undefined,
25
25
  onRefresh:
26
- | (() => void)
27
- | (() => Parameters<typeof waitForPageBlocksRefresh>[1]),
26
+ (() => void) | (() => Parameters<typeof waitForPageBlocksRefresh>[1]),
28
27
  ): LiveGate {
29
28
  let pageRefresh: Event | undefined;
30
29
  const gate = useLiveGate(() => {
@@ -85,9 +85,7 @@ export function watchFormComponentServerErrors(source: {
85
85
  state: ReturnType<typeof useForm>["state"];
86
86
  serverErrors: Map<string, KeptServerError>;
87
87
  target: () =>
88
- | Pick<UnwrapRef<Form<FormSchema>>, "clear" | "loading">
89
- | null
90
- | undefined;
88
+ Pick<UnwrapRef<Form<FormSchema>>, "clear" | "loading"> | null | undefined;
91
89
  }) {
92
90
  watch(
93
91
  source.state,
@@ -40,11 +40,10 @@ export const isRowEvent = (event: unknown): event is RowEvent =>
40
40
  isRowEventPayload(event.payload) &&
41
41
  (isNullish(event.actorId) || isString(event.actorId));
42
42
 
43
- interface FormRealtimeSource
44
- extends Pick<
45
- ReturnType<typeof useForm>,
46
- "resolvedFetchUrl" | "state" | "fetchData" | "submitSucceeded"
47
- > {
43
+ interface FormRealtimeSource extends Pick<
44
+ ReturnType<typeof useForm>,
45
+ "resolvedFetchUrl" | "state" | "fetchData" | "submitSucceeded"
46
+ > {
48
47
  markFormClean: () => void;
49
48
  }
50
49
 
@@ -15,11 +15,10 @@ import { validateFormState } from "./formValidation";
15
15
  import { FORM_CONTROL_ERRORS_KEY } from "./formControlErrors";
16
16
  import type { KeptServerError } from "./serverFieldErrors";
17
17
 
18
- interface FormValidationSource
19
- extends Pick<
20
- ReturnType<typeof useForm>,
21
- "validationSchema" | "allFields" | "state"
22
- > {
18
+ interface FormValidationSource extends Pick<
19
+ ReturnType<typeof useForm>,
20
+ "validationSchema" | "allFields" | "state"
21
+ > {
23
22
  isFieldRequired: (field: FormField) => boolean;
24
23
  processApiMessage: ReturnType<typeof useTranslation>["processApiMessage"];
25
24
  locale: () => string;
@@ -32,8 +32,7 @@ export interface FormValidationIssue {
32
32
  type StateValue = Parameters<typeof isBlankValue>[0];
33
33
 
34
34
  export type FormValidationResult =
35
- | { value: Record<string, StateValue> }
36
- | { issues: FormValidationIssue[] };
35
+ { value: Record<string, StateValue> } | { issues: FormValidationIssue[] };
37
36
 
38
37
  export interface FormValidationContext {
39
38
  fields: readonly FormValidationField[];
@@ -38,8 +38,7 @@ export interface PeriodComparisonChoice {
38
38
 
39
39
  /** What a selector keeps in the URL and in the user's preferences. */
40
40
  export interface PeriodSelection
41
- extends PeriodRangeChoice,
42
- PeriodComparisonChoice {}
41
+ extends PeriodRangeChoice, PeriodComparisonChoice {}
43
42
 
44
43
  /** The menus a selection has to fit in. */
45
44
  export interface PeriodChoices {
@@ -114,43 +114,41 @@ export function useTableViewDisplayContext<T extends Data>(
114
114
  if (displayTable.value !== table) displayTable.value = table;
115
115
  };
116
116
 
117
- const displayContext = computed(
118
- (): TableViewDisplayContext<T> => ({
119
- items: shownResults.value ?? EMPTY_ITEMS,
120
- columns: props.columns,
121
- loading: isListLoading.value,
122
- firstPageLoading: isFirstPageLoading.value,
123
- selection: { ids: selectedIds.value, ...displaySelection },
124
- pagination: {
125
- pageIndex: paginationState.value.pageIndex,
126
- pageSize: paginationState.value.pageSize,
127
- total: data.value?.total ?? 0,
128
- ...displayPagination,
129
- mode: paginationMode,
130
- hasMore: hasMoreRows.value,
131
- loadMore: loadMoreRows,
132
- },
133
- actions: {
134
- canAdd: isActionEnabled(tableProps.value.rowActions?.add),
135
- canEdit: isActionEnabled(tableProps.value.rowActions?.edit),
136
- canDelete: isActionEnabled(tableProps.value.rowActions?.delete),
137
- canDetails: isActionEnabled(tableProps.value.rowActions?.details),
138
- ...displayRowActions,
139
- },
140
- presenceByRow: presenceByRowFiltered.value,
141
- rowIdKey,
142
- labelKey,
143
- location,
144
- query: baseQuery.value,
145
- componentId,
146
- pageId,
147
- options: optionsForDisplay(activeDisplayId.value),
148
- refresh: refreshByUser,
149
- setShownRows: setSelfManagedRows,
150
- reorder: reorderState.value,
151
- table: displayTable.value,
152
- }),
153
- );
117
+ const displayContext = computed((): TableViewDisplayContext<T> => ({
118
+ items: shownResults.value ?? EMPTY_ITEMS,
119
+ columns: props.columns,
120
+ loading: isListLoading.value,
121
+ firstPageLoading: isFirstPageLoading.value,
122
+ selection: { ids: selectedIds.value, ...displaySelection },
123
+ pagination: {
124
+ pageIndex: paginationState.value.pageIndex,
125
+ pageSize: paginationState.value.pageSize,
126
+ total: data.value?.total ?? 0,
127
+ ...displayPagination,
128
+ mode: paginationMode,
129
+ hasMore: hasMoreRows.value,
130
+ loadMore: loadMoreRows,
131
+ },
132
+ actions: {
133
+ canAdd: isActionEnabled(tableProps.value.rowActions?.add),
134
+ canEdit: isActionEnabled(tableProps.value.rowActions?.edit),
135
+ canDelete: isActionEnabled(tableProps.value.rowActions?.delete),
136
+ canDetails: isActionEnabled(tableProps.value.rowActions?.details),
137
+ ...displayRowActions,
138
+ },
139
+ presenceByRow: presenceByRowFiltered.value,
140
+ rowIdKey,
141
+ labelKey,
142
+ location,
143
+ query: baseQuery.value,
144
+ componentId,
145
+ pageId,
146
+ options: optionsForDisplay(activeDisplayId.value),
147
+ refresh: refreshByUser,
148
+ setShownRows: setSelfManagedRows,
149
+ reorder: reorderState.value,
150
+ table: displayTable.value,
151
+ }));
154
152
 
155
153
  const contextForSlot = (table: Table<T>): TableViewDisplayContext<T> => {
156
154
  captureDisplayTable(table);
@@ -35,10 +35,7 @@ export interface TableLiveHoldSignals {
35
35
 
36
36
  /** Why a table holds its rows by itself, its page staying live. */
37
37
  export type TableLiveHoldReason =
38
- | "rowOpen"
39
- | "searching"
40
- | "sorted"
41
- | "scrolled";
38
+ "rowOpen" | "searching" | "sorted" | "scrolled";
42
39
 
43
40
  /**
44
41
  * A table holds by itself for a reason it names, or because the user has its
@@ -140,10 +140,7 @@ export async function resolveDeepLinkedRow<T>(
140
140
  * (a refusal, the network) without claiming it is gone.
141
141
  */
142
142
  export type DeepLinkOutcome =
143
- | "open"
144
- | "missingPanel"
145
- | "notify"
146
- | "notifyFailed";
143
+ "open" | "missingPanel" | "notify" | "notifyFailed";
147
144
 
148
145
  export function deepLinkOutcome(
149
146
  found: DeepLinkedRow<unknown>,
@@ -52,9 +52,7 @@ const meta = computed(() => {
52
52
  const { pages, source } = props.mockup;
53
53
  const parts = [t("dms.mockup.card_pages", { count: pages }, pages)];
54
54
  if (source) {
55
- parts.push(
56
- t("dms.mockup.card_source", { source: t(SOURCE_KEYS[source]) }),
57
- );
55
+ parts.push(t("dms.mockup.card_source", { source: t(SOURCE_KEYS[source]) }));
58
56
  }
59
57
  return parts.join(META_SEPARATOR);
60
58
  });
@@ -103,7 +103,7 @@ function menuEntryOf(
103
103
  ): string | undefined {
104
104
  const byId = new Map(pages.map((page) => [page.id, page]));
105
105
  const seen = new Set<string>();
106
- for (let at = id; at !== undefined && !seen.has(at); ) {
106
+ for (let at = id; at !== undefined && !seen.has(at);) {
107
107
  const page = byId.get(at);
108
108
  if (!page) return undefined;
109
109
  if (page.menu !== false) return page.id;
@@ -35,11 +35,7 @@ export interface MockupCombo {
35
35
  * reaches the page.
36
36
  */
37
37
  export type MockupView =
38
- | "current"
39
- | "version"
40
- | "overview"
41
- | "overview_version"
42
- | "preview";
38
+ "current" | "version" | "overview" | "overview_version" | "preview";
43
39
 
44
40
  const PAGE_VIEWS: readonly MockupView[] = ["current", "version"];
45
41
  const OVERVIEW_VIEWS: readonly MockupView[] = ["overview", "overview_version"];
@@ -45,8 +45,7 @@ interface ResolvedBanner extends BannerContent {
45
45
  }
46
46
 
47
47
  interface BannerBlockProps
48
- extends Partial<DefaultComponentProps>,
49
- BannerContent {
48
+ extends Partial<DefaultComponentProps>, BannerContent {
50
49
  /** Route answering a `BannerContent`, or `null` / `{}` / 204 to hide. */
51
50
  fetchUrl?: string;
52
51
  fetchUrlMethod?: string;
@@ -137,8 +136,8 @@ const isDismissed = computed(
137
136
  isClosed.value ||
138
137
  Boolean(
139
138
  banner.value.dismissible &&
140
- storageKey.value &&
141
- dismissed.value.includes(storageKey.value),
139
+ storageKey.value &&
140
+ dismissed.value.includes(storageKey.value),
142
141
  ),
143
142
  );
144
143
  const isVisible = computed(
@@ -14,8 +14,10 @@ import type { DefaultComponentProps } from "../../../../dms-core/app/types/compo
14
14
  import type { BlockText } from "../../../../dms-core/app/types/composed-text";
15
15
  import { isComposedText } from "../../../../dms-core/app/utils/composedText";
16
16
 
17
- interface KeyValueListBlockItem
18
- extends Omit<KeyValueItem, "label" | "value" | "detail"> {
17
+ interface KeyValueListBlockItem extends Omit<
18
+ KeyValueItem,
19
+ "label" | "value" | "detail"
20
+ > {
19
21
  label: BlockText;
20
22
  value?: BlockText | number | null;
21
23
  detail?: BlockText;
@@ -13,8 +13,10 @@ import { useComposedText } from "../../../../dms-core/app/composables/translatio
13
13
  import type { DefaultComponentProps } from "../../../../dms-core/app/types/component";
14
14
  import type { BlockText } from "../../../../dms-core/app/types/composed-text";
15
15
 
16
- interface StatGroupBlockItem
17
- extends Omit<StatGroupItem, "eyebrow" | "value" | "detail"> {
16
+ interface StatGroupBlockItem extends Omit<
17
+ StatGroupItem,
18
+ "eyebrow" | "value" | "detail"
19
+ > {
18
20
  eyebrow: BlockText;
19
21
  value: BlockText | number;
20
22
  detail?: BlockText;
@@ -93,9 +93,8 @@ const sizeStyle = computed(() => {
93
93
  async function loadHighlighter(): Promise<void> {
94
94
  const requested = language.value;
95
95
  highlight.value = null;
96
- const { loadCodeHighlighter } = await import(
97
- "../../build/utils/codeHighlight"
98
- );
96
+ const { loadCodeHighlighter } =
97
+ await import("../../build/utils/codeHighlight");
99
98
  const highlighter = await loadCodeHighlighter(requested);
100
99
  if (language.value === requested) highlight.value = highlighter;
101
100
  }
@@ -1,4 +1,6 @@
1
1
  <script setup lang="ts">
2
+ import type { ComponentPublicInstance, UnwrapRef } from "vue";
3
+ import type { Form, FormSchema } from "@nuxt/ui";
2
4
  import { pageLink } from "../../build/composables/page/pageUrlValues";
3
5
  import type { FormProps } from "../../composables/form/types/props";
4
6
  import type { FormField } from "../../composables/form/types/field";
@@ -67,7 +69,9 @@ import DmsFormSections from "../../build/components/form/FormSections.vue";
67
69
  import { isHiddenOnCreate } from "../../build/composables/form/createFormFields";
68
70
 
69
71
  const props = defineProps<FormProps>();
70
- const form = useTemplateRef("form");
72
+ const form = useTemplateRef<
73
+ ComponentPublicInstance & UnwrapRef<Form<FormSchema>>
74
+ >("form");
71
75
 
72
76
  const inFormContainer = inject("dmsFormContainer", false);
73
77
 
@@ -23,8 +23,10 @@ import {
23
23
  FIELD_TRIGGER_UI,
24
24
  } from "../../../build/utils/fieldTrigger";
25
25
 
26
- export interface DatePickerProps<R extends boolean, M extends boolean>
27
- extends Omit<CalendarProps<R, M>, "modelValue"> {
26
+ export interface DatePickerProps<
27
+ R extends boolean,
28
+ M extends boolean,
29
+ > extends Omit<CalendarProps<R, M>, "modelValue"> {
28
30
  /** Id of the trigger, the control a field label points to. */
29
31
  id?: string;
30
32
  /** Earliest day that can be picked (ISO date). */
@@ -18,8 +18,10 @@ import {
18
18
  type ZonedDateTime,
19
19
  } from "@internationalized/date";
20
20
 
21
- export interface DmsCalendarProps<R extends boolean, M extends boolean>
22
- extends CalendarProps<R, M> {
21
+ export interface DmsCalendarProps<
22
+ R extends boolean,
23
+ M extends boolean,
24
+ > extends CalendarProps<R, M> {
23
25
  /** Earliest day that can be picked (ISO date). */
24
26
  minDate?: string;
25
27
  /** Latest day that can be picked (ISO date). */
@@ -178,8 +178,7 @@ onBeforeUnmount(() => {
178
178
  v-if="!isReady"
179
179
  class="text-highlighted min-h-(--dms-code-min-height) overflow-auto px-3 py-2 font-mono text-[12.5px] whitespace-pre-wrap"
180
180
  :class="fill && 'flex-1 contain-size'"
181
- >{{ model }}</pre
182
- >
181
+ >{{ model }}</pre>
183
182
  <!-- Important: CodeMirror's unlayered `.cm-content { min-height: 100% }`
184
183
  outranks a utility, and `min-lines` would never apply. -->
185
184
  <div
@@ -16,12 +16,7 @@ import type { Tone } from "#dms-core/app/types/tone";
16
16
  * identifier or a figure in the mono font.
17
17
  */
18
18
  export type KeyValueType =
19
- | "text"
20
- | "status"
21
- | "money"
22
- | "date"
23
- | "link"
24
- | "mono";
19
+ "text" | "status" | "money" | "date" | "link" | "mono";
25
20
 
26
21
  export interface KeyValueItem {
27
22
  /** Stable key; the position is used without one. */
@@ -28,8 +28,10 @@ export type ConfirmValues = Record<
28
28
  * whose texts are already resolved, plus what only a caller in the browser
29
29
  * can give (render functions, handlers).
30
30
  */
31
- export interface ConfirmOptions
32
- extends Omit<ConfirmDialog, "params" | "icon" | "secondaryAction"> {
31
+ export interface ConfirmOptions extends Omit<
32
+ ConfirmDialog,
33
+ "params" | "icon" | "secondaryAction"
34
+ > {
33
35
  /**
34
36
  * A button next to cancel and confirm that leaves the dialog open (a
35
37
  * download before removing): its `run` is awaited, the button loading,
@@ -107,8 +109,7 @@ export interface ConfirmNotice {
107
109
 
108
110
  /** What a confirmation handler settles with: nothing, `true`, `false` or a {@link ConfirmPartialOutcome}. */
109
111
  export type ConfirmHandlerResult =
110
- | Promise<boolean | ConfirmPartialOutcome | undefined>
111
- | Promise<void>;
112
+ Promise<boolean | ConfirmPartialOutcome | undefined> | Promise<void>;
112
113
 
113
114
  /**
114
115
  * Resolved by `onConfirm` when the action ran only part of the way (a bulk
@@ -10,12 +10,7 @@ export type DrawerDirection = "top" | "bottom" | "left" | "right";
10
10
 
11
11
  /** Tint of the optional header icon well of a container. */
12
12
  export type ContainerColor =
13
- | "primary"
14
- | "neutral"
15
- | "success"
16
- | "info"
17
- | "warning"
18
- | "error";
13
+ "primary" | "neutral" | "success" | "info" | "warning" | "error";
19
14
 
20
15
  /**
21
16
  * Options shared by every themed container opened through a public composable.
@@ -148,8 +143,10 @@ export type ContainerPatch = Partial<
148
143
  export type DrawerPatch = ContainerPatch & Pick<DrawerOptions, "rowHeader">;
149
144
 
150
145
  /** The handle of a drawer opened with {@link useDrawer}. */
151
- export interface DrawerInstance<Result = unknown>
152
- extends Omit<ContainerInstance<Result>, "patch"> {
146
+ export interface DrawerInstance<Result = unknown> extends Omit<
147
+ ContainerInstance<Result>,
148
+ "patch"
149
+ > {
153
150
  /** Updates the open drawer: its texts, its body, its row header. */
154
151
  patch: (options: DrawerPatch) => void;
155
152
  }
@@ -34,8 +34,10 @@ export interface SidePanelTargetOptions {
34
34
  * `DrawerTargetOptions`): the row options of a side panel, for a drawer
35
35
  * opened on a row, and its size.
36
36
  */
37
- export interface DrawerTargetOptions
38
- extends Omit<SidePanelTargetOptions, "title"> {
37
+ export interface DrawerTargetOptions extends Omit<
38
+ SidePanelTargetOptions,
39
+ "title"
40
+ > {
39
41
  /** Width of a `left` / `right` drawer: a modal's at that size; 600px without one. */
40
42
  size?: ModalSize;
41
43
  /**
@@ -76,11 +76,7 @@ export interface TableViewQuickFilter {
76
76
 
77
77
  /** How a quick filter compares the column with the picked value. */
78
78
  export type TableViewQuickFilterMode =
79
- | "is"
80
- | "is_not"
81
- | "include"
82
- | "exclude"
83
- | "array_contains_string";
79
+ "is" | "is_not" | "include" | "exclude" | "array_contains_string";
84
80
 
85
81
  /** A figure of the footer band (backend `footer.summary`). */
86
82
  export interface TableViewFooterSummaryConfig {
@@ -269,11 +265,10 @@ export interface TableViewDisplayConfig {
269
265
  capabilities?: TableViewDisplayCapabilities;
270
266
  }
271
267
 
272
- export interface TableViewConfig<T extends Data>
273
- extends Omit<
274
- TableProps<T>,
275
- "columns" | "displays" | "chrome" | "quickFilters" | "footer" | "reorder"
276
- > {
268
+ export interface TableViewConfig<T extends Data> extends Omit<
269
+ TableProps<T>,
270
+ "columns" | "displays" | "chrome" | "quickFilters" | "footer" | "reorder"
271
+ > {
277
272
  location: string;
278
273
  enableTableExport?: boolean;
279
274
  archiveMode?: boolean;
@@ -2,12 +2,4 @@
2
2
  type FullModalSize = "full";
3
3
 
4
4
  export type ModalSize =
5
- | "sm"
6
- | "md"
7
- | "lg"
8
- | "xl"
9
- | "2xl"
10
- | "3xl"
11
- | "4xl"
12
- | "5xl"
13
- | FullModalSize;
5
+ "sm" | "md" | "lg" | "xl" | "2xl" | "3xl" | "4xl" | "5xl" | FullModalSize;
@@ -20,8 +20,7 @@ export const QUICK_ACTION_BUTTON = "button";
20
20
  export const QUICK_ACTION_BUTTON_KEY = "quickActionButton";
21
21
 
22
22
  export type QuickActionIntent =
23
- | { kind: "add" }
24
- | { kind: "button"; button: string };
23
+ { kind: "add" } | { kind: "button"; button: string };
25
24
 
26
25
  type QuickActionQuery = MenuRouteState["query"];
27
26
  type IntentReader = (query: QuickActionQuery) => QuickActionIntent | undefined;
@@ -21,10 +21,7 @@ export const MOCKUP_ASSISTANT_PROMPT_EVENT = "dms:assistant-prompt";
21
21
  * Mockups page's "New mockup" card.
22
22
  */
23
23
  export type MockupAssistantPromptSource =
24
- | "custom-zone"
25
- | "build"
26
- | "resolve-comments"
27
- | "new-mockup";
24
+ "custom-zone" | "build" | "resolve-comments" | "new-mockup";
28
25
 
29
26
  /** The block of a mockup page a request is about. */
30
27
  export interface MockupAssistantPromptBlock {
@@ -1,10 +1,5 @@
1
1
  export type SemanticColor =
2
- | "success"
3
- | "error"
4
- | "warning"
5
- | "info"
6
- | "primary"
7
- | "neutral";
2
+ "success" | "error" | "warning" | "info" | "primary" | "neutral";
8
3
 
9
4
  export const SOFT_TINT: Record<SemanticColor, string> = {
10
5
  success: "bg-success/10 text-success",
@@ -83,7 +83,7 @@
83
83
  "@antelopejs/tooling-configs": ">=0.10.15 <0.11.0",
84
84
  "@inertiajs/vue3": "^3.7.0",
85
85
  "@nuxt/eslint-config": "^1.17.0",
86
- "@nuxt/ui": "4.10.0",
86
+ "@nuxt/ui": "4.13.1",
87
87
  "@types/jsonwebtoken": "^9.0.10",
88
88
  "@unhead/vue": "^3.0.0",
89
89
  "@vitejs/plugin-vue": "^6",
@@ -91,17 +91,17 @@
91
91
  "globals": "^15.0.0",
92
92
  "jiti": "2.7.0",
93
93
  "jsdom": "^29.1.1",
94
- "prettier": "^3.5.3",
95
- "prettier-plugin-tailwindcss": "^0.6.11",
94
+ "prettier": "^3.10.1",
95
+ "prettier-plugin-tailwindcss": "^0.8.0",
96
96
  "tailwindcss": "^4.0.0",
97
97
  "typescript": "^5.8.2",
98
98
  "vitest": "^4.1.8",
99
99
  "vue": "^3.5.18",
100
100
  "vue-i18n": "^11.1.12",
101
- "vue-tsc": "3.1.1"
101
+ "vue-tsc": "3.3.14"
102
102
  },
103
103
  "peerDependencies": {
104
- "@nuxt/ui": "4.10.0",
104
+ "@nuxt/ui": "4.13.1",
105
105
  "@unhead/vue": "^2.0.0 || ^3.0.0",
106
106
  "tailwindcss": "^4.0.0",
107
107
  "typescript": "^5.8.0",
@@ -196,9 +196,9 @@ function isToast(scope, node) {
196
196
  node = resolveBinding(scope, node);
197
197
  return Boolean(
198
198
  node &&
199
- ((ts.isIdentifier(node) && node.text === "toast") ||
200
- (ts.isCallExpression(node) &&
201
- node.expression.getText(tree) === "useToast")),
199
+ ((ts.isIdentifier(node) && node.text === "toast") ||
200
+ (ts.isCallExpression(node) &&
201
+ node.expression.getText(tree) === "useToast")),
202
202
  );
203
203
  }
204
204
 
@@ -165,12 +165,10 @@ async function checkShortcutTranslations() {
165
165
  },
166
166
  });
167
167
  try {
168
- const { default: registry } = await import(
169
- "../layers/dms-ui/app/config/shortcuts-registry.ts"
170
- );
171
- const searchShortcuts = await import(
172
- "../layers/dms-ui/app/entries/composables/global/searchShortcuts"
173
- );
168
+ const { default: registry } =
169
+ await import("../layers/dms-ui/app/config/shortcuts-registry.ts");
170
+ const searchShortcuts =
171
+ await import("../layers/dms-ui/app/entries/composables/global/searchShortcuts");
174
172
  const { NAV_SEARCH_SHORTCUT, PAGE_SEARCH_HINT_KEYS } = searchShortcuts;
175
173
  /** @type {unknown[]} */
176
174
  const registered = [
@@ -266,9 +264,8 @@ function checkLiveLabels() {
266
264
  }
267
265
 
268
266
  async function checkPeriodLabels() {
269
- const periodShortLabels = await import(
270
- "../layers/dms-ui/app/entries/composables/period/periodShortLabels.ts"
271
- );
267
+ const periodShortLabels =
268
+ await import("../layers/dms-ui/app/entries/composables/period/periodShortLabels.ts");
272
269
  const PRESET_SHORT_LABELS = ShortLabels.parse(
273
270
  periodShortLabels.PRESET_SHORT_LABELS,
274
271
  );
@@ -265,13 +265,13 @@ function unprefixed(call, ts) {
265
265
  const options = call?.arguments?.[2];
266
266
  return Boolean(
267
267
  options &&
268
- ts.isObjectLiteralExpression(options) &&
269
- options.properties.some(
270
- (property) =>
271
- ts.isPropertyAssignment(property) &&
272
- nameOf(property.name, ts) === "prefix" &&
273
- property.initializer.kind === ts.SyntaxKind.FalseKeyword,
274
- ),
268
+ ts.isObjectLiteralExpression(options) &&
269
+ options.properties.some(
270
+ (property) =>
271
+ ts.isPropertyAssignment(property) &&
272
+ nameOf(property.name, ts) === "prefix" &&
273
+ property.initializer.kind === ts.SyntaxKind.FalseKeyword,
274
+ ),
275
275
  );
276
276
  }
277
277