@maropost-ui/liquidsky-ui 0.1.73 → 0.1.74

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 (34) hide show
  1. package/dist/composables/index.d.ts +1 -0
  2. package/dist/composables/useMpTestId.d.ts +17 -0
  3. package/dist/directives/MpTest.d.ts +23 -0
  4. package/dist/directives/index.d.ts +2 -0
  5. package/dist/directives/mpTestConfig.d.ts +56 -0
  6. package/dist/index.css +1 -1
  7. package/dist/index.d.ts +2 -0
  8. package/dist/index.js +16335 -16021
  9. package/dist/types/AlertModalProps.d.ts +2 -1
  10. package/dist/types/AppClipboardProps.d.ts +2 -1
  11. package/dist/types/AppConfirmationDialogProps.d.ts +2 -1
  12. package/dist/types/AppDataTableProps.d.ts +2 -1
  13. package/dist/types/AppDialogWrapperProps.d.ts +2 -1
  14. package/dist/types/AppDrawerWrapperProps.d.ts +2 -1
  15. package/dist/types/AppDropdownProps.d.ts +2 -1
  16. package/dist/types/AppMultiCellValueProps.d.ts +2 -1
  17. package/dist/types/AppSnackbarProps.d.ts +2 -1
  18. package/dist/types/AppStepperProps.d.ts +2 -1
  19. package/dist/types/AppTableActionMenuProps.d.ts +2 -1
  20. package/dist/types/AppsDropdownProps.d.ts +2 -1
  21. package/dist/types/MpTestIdProps.d.ts +6 -0
  22. package/dist/types/NotificationIconProps.d.ts +2 -1
  23. package/dist/types/SearchBarProps.d.ts +2 -1
  24. package/dist/types/SlVueTreeNextProps.d.ts +2 -1
  25. package/dist/types/TheNavigationProps.d.ts +2 -1
  26. package/dist/types/TheNotificationDrawerProps.d.ts +2 -1
  27. package/dist/types/TheOnboardingScreenChecklistsProps.d.ts +2 -1
  28. package/dist/types/TheTimezoneProps.d.ts +2 -1
  29. package/dist/types/TheUserDropdownProps.d.ts +2 -1
  30. package/dist/types/UnifiedNavigationProps.d.ts +2 -1
  31. package/dist/types/index.d.ts +1 -0
  32. package/dist/types/router.d.ts +2 -1
  33. package/dist/vuetify.d.ts +2 -0
  34. package/package.json +1 -1
@@ -1,3 +1,4 @@
1
+ import type { MpTestIdProps } from './MpTestIdProps';
1
2
  export type AlertModalPosition = 'center' | 'bottom-right' | 'bottom-left' | 'top-right' | 'top-left';
2
3
  export interface GenericModalState {
3
4
  title: string;
@@ -19,7 +20,7 @@ export interface GenericModalState {
19
20
  onConfirm?: () => void;
20
21
  onCancel?: () => void;
21
22
  }
22
- export interface AlertModalProps {
23
+ export interface AlertModalProps extends MpTestIdProps {
23
24
  state: GenericModalState;
24
25
  show: boolean;
25
26
  }
@@ -1,4 +1,5 @@
1
- export interface AppClipboardProps {
1
+ import type { MpTestIdProps } from './MpTestIdProps';
2
+ export interface AppClipboardProps extends MpTestIdProps {
2
3
  value: string;
3
4
  disabled?: boolean;
4
5
  copyLabel?: string;
@@ -1,4 +1,5 @@
1
- export interface AppConfirmationDialogProps {
1
+ import type { MpTestIdProps } from './MpTestIdProps';
2
+ export interface AppConfirmationDialogProps extends MpTestIdProps {
2
3
  /** dialog title */
3
4
  title: string;
4
5
  /** dialog subtitle */
@@ -1,3 +1,4 @@
1
+ import type { MpTestIdProps } from './MpTestIdProps';
1
2
  /**
2
3
  * @file types/index.ts
3
4
  * @description Generic types for AppDataTable component
@@ -45,7 +46,7 @@ export interface BulkAction {
45
46
  disabled?: boolean;
46
47
  attrs?: Record<string, any>;
47
48
  }
48
- export interface DataTableProps {
49
+ export interface DataTableProps extends MpTestIdProps {
49
50
  service?: DataTableService | null;
50
51
  gridView?: boolean;
51
52
  disabledRouteParams?: boolean;
@@ -1,4 +1,5 @@
1
- export interface AppDialogWrapperProps {
1
+ import type { MpTestIdProps } from './MpTestIdProps';
2
+ export interface AppDialogWrapperProps extends MpTestIdProps {
2
3
  title?: string;
3
4
  subtitle?: string;
4
5
  isLoading?: boolean;
@@ -1,4 +1,5 @@
1
- export interface AppDrawerWrapperProps {
1
+ import type { MpTestIdProps } from './MpTestIdProps';
2
+ export interface AppDrawerWrapperProps extends MpTestIdProps {
2
3
  title?: string;
3
4
  showDivider?: boolean;
4
5
  width?: number;
@@ -1,3 +1,4 @@
1
+ import type { MpTestIdProps } from './MpTestIdProps';
1
2
  export interface DataFetcherConfig {
2
3
  q?: string;
3
4
  limit: number;
@@ -44,7 +45,7 @@ export interface AppDropdownService<T = any> {
44
45
  };
45
46
  }
46
47
  export type DataFetcher<T = any> = (config: DataFetcherConfig) => Promise<DataFetcherResponse<T>>;
47
- export interface AppDropdownProps<T = any> {
48
+ export interface AppDropdownProps<T = any> extends MpTestIdProps {
48
49
  dataFetcher?: DataFetcher<T>;
49
50
  loadItemById?: number[];
50
51
  service?: AppDropdownService<T>;
@@ -1,4 +1,5 @@
1
- export interface AppMultiCellValueProps {
1
+ import type { MpTestIdProps } from './MpTestIdProps';
2
+ export interface AppMultiCellValueProps extends MpTestIdProps {
2
3
  list: any[];
3
4
  itemKey: string;
4
5
  }
@@ -1,4 +1,5 @@
1
- export interface AppSnackbarProps {
1
+ import type { MpTestIdProps } from './MpTestIdProps';
2
+ export interface AppSnackbarProps extends MpTestIdProps {
2
3
  type?: 'info' | 'success' | 'error' | 'warning';
3
4
  title?: string;
4
5
  message?: string;
@@ -1,4 +1,5 @@
1
1
  import { Component } from "vue";
2
+ import type { MpTestIdProps } from './MpTestIdProps';
2
3
  export type TInternalStepItem = {
3
4
  name: string;
4
5
  order: number;
@@ -20,7 +21,7 @@ export type TStepItem = Pick<TInternalStepItem, "id" | "name" | "order" | "label
20
21
  export type TPropStepperItem = TStepItem & {
21
22
  title?: string;
22
23
  };
23
- export interface AppStepperProps {
24
+ export interface AppStepperProps extends MpTestIdProps {
24
25
  stepperHeaderClass?: string;
25
26
  steps: TPropStepperItem[];
26
27
  setComponentRef?: (el: unknown, refName: string) => void;
@@ -1,3 +1,4 @@
1
+ import type { MpTestIdProps } from './MpTestIdProps';
1
2
  export interface Action {
2
3
  /** icon e.g. "mdi-arrow-up" */
3
4
  icon?: string;
@@ -15,7 +16,7 @@ export interface Action {
15
16
  }) => void;
16
17
  };
17
18
  }
18
- export interface AppTableActionMenuProps {
19
+ export interface AppTableActionMenuProps extends MpTestIdProps {
19
20
  /** actions e.g. [{ title: "Action Item 1", icon: "mdi-arrow-up", on: { click: (item,index) => clickHandler(item,index) } }] */
20
21
  actions: Action[];
21
22
  /** item e.g. { id: 1, name: "Item 1" } */
@@ -1,3 +1,4 @@
1
+ import type { MpTestIdProps } from './MpTestIdProps';
1
2
  export interface MaroPostApp {
2
3
  /** App identifier */
3
4
  id: string;
@@ -20,7 +21,7 @@ export interface MaroPostApp {
20
21
  */
21
22
  [key: string]: any;
22
23
  }
23
- export interface AppsDropdownProps {
24
+ export interface AppsDropdownProps extends MpTestIdProps {
24
25
  /** Account/user identifier */
25
26
  getAccountId: string | number | null;
26
27
  /** Apps configuration */
@@ -0,0 +1,6 @@
1
+ export interface MpTestIdProps {
2
+ /** Full override, e.g. "inventory-table" */
3
+ testId?: string;
4
+ /** Extend default, e.g. "inventory" → "mp-data-table-inventory" */
5
+ testIdSuffix?: string;
6
+ }
@@ -1,4 +1,5 @@
1
- export interface NotificationIconProps {
1
+ import type { MpTestIdProps } from './MpTestIdProps';
2
+ export interface NotificationIconProps extends MpTestIdProps {
2
3
  /** Count/Badge props */
3
4
  count?: number | null;
4
5
  /** Max count to display on the badge */
@@ -1,4 +1,5 @@
1
- export interface SearchBarProps {
1
+ import type { MpTestIdProps } from './MpTestIdProps';
2
+ export interface SearchBarProps extends MpTestIdProps {
2
3
  /** Controls visibility of the search bar. Auto-detects from route meta if not provided */
3
4
  show?: boolean;
4
5
  /** v-model binding for the search input value */
@@ -1,4 +1,5 @@
1
1
  import { ComputedRef, Ref } from 'vue';
2
+ import type { MpTestIdProps } from './MpTestIdProps';
2
3
  export declare enum MultiSelectKey {
3
4
  CTRL = "ctrlKey",
4
5
  META = "metaKey"
@@ -35,7 +36,7 @@ export interface VueData<T> {
35
36
  rootCursorPosition: CursorPosition<T>;
36
37
  rootDraggingNode: TreeNode<T>;
37
38
  }
38
- export interface SlVueTreeProps<T> {
39
+ export interface SlVueTreeProps<T> extends MpTestIdProps {
39
40
  modelValue?: NodeModel<T>[];
40
41
  edgeSize?: number;
41
42
  allowMultiselect?: boolean;
@@ -1,4 +1,5 @@
1
1
  import { type RouteLocationRaw } from 'vue-router';
2
+ import type { MpTestIdProps } from './MpTestIdProps';
2
3
  type Link = {
3
4
  title: string;
4
5
  to?: RouteLocationRaw;
@@ -16,7 +17,7 @@ export type NavigationItem = Link & {
16
17
  icon?: string;
17
18
  submenu?: NavigationLink[];
18
19
  };
19
- export interface TheNavigationProps {
20
+ export interface TheNavigationProps extends MpTestIdProps {
20
21
  rail?: boolean;
21
22
  /** Backwards compatibility alias for v-model */
22
23
  isNavigationRail?: boolean;
@@ -1,3 +1,4 @@
1
+ import type { MpTestIdProps } from './MpTestIdProps';
1
2
  export interface NotificationItem {
2
3
  /** Unique identifier for the notification */
3
4
  id: string | number;
@@ -16,7 +17,7 @@ export interface NotificationItem {
16
17
  /** Progress value from 0 to 100 - required when showProgress is true */
17
18
  progress?: number;
18
19
  }
19
- export interface TheNotificationDrawerProps {
20
+ export interface TheNotificationDrawerProps extends MpTestIdProps {
20
21
  /** Title of the notification drawer */
21
22
  title?: string;
22
23
  /** Array of notification items to display. Each item should have id, message, and optional properties for styling and actions.*/
@@ -1,3 +1,4 @@
1
+ import type { MpTestIdProps } from './MpTestIdProps';
1
2
  export interface DeepLink {
2
3
  label: string;
3
4
  disabled?: boolean;
@@ -31,7 +32,7 @@ export interface StatusUpdatedChecklistItem {
31
32
  deepLinks: DeepLink[];
32
33
  status: "not_started" | "in_progress" | "completed";
33
34
  }
34
- export interface Props {
35
+ export interface Props extends MpTestIdProps {
35
36
  checklists: ChecklistSection[];
36
37
  checkListsStatus: Record<string, "not_started" | "in_progress" | "completed">;
37
38
  uniqueKey: string;
@@ -1,4 +1,5 @@
1
- export interface TheTimezoneProps {
1
+ import type { MpTestIdProps } from './MpTestIdProps';
2
+ export interface TheTimezoneProps extends MpTestIdProps {
2
3
  /** URL route to preferences page where timezone can be changed */
3
4
  routeToPreferences: string;
4
5
  /**
@@ -1,4 +1,5 @@
1
- export interface TheUserDropdownProps {
1
+ import type { MpTestIdProps } from './MpTestIdProps';
2
+ export interface TheUserDropdownProps extends MpTestIdProps {
2
3
  /** Items to display in the dropdown */
3
4
  items: any[];
4
5
  /** Username to display in the dropdown */
@@ -1,5 +1,6 @@
1
1
  import type { RouteLocationRaw } from "vue-router";
2
- export interface UnifiedNavigationProps {
2
+ import type { MpTestIdProps } from "./MpTestIdProps";
3
+ export interface UnifiedNavigationProps extends MpTestIdProps {
3
4
  collapsed?: boolean;
4
5
  navBlocks: [UnifiedNavigationItem[]];
5
6
  accountId: string;
@@ -1,4 +1,5 @@
1
1
  export * from "./router";
2
+ export * from './MpTestIdProps';
2
3
  export * from './TheNotificationDrawerProps';
3
4
  export * from './TheTimezoneProps';
4
5
  export * from './AlertModalProps';
@@ -1,3 +1,4 @@
1
+ import type { MpTestIdProps } from './MpTestIdProps';
1
2
  /**
2
3
  * Custom route meta type definitions
3
4
  */
@@ -17,7 +18,7 @@ export interface BreadcrumbItem {
17
18
  exact?: boolean;
18
19
  href?: string;
19
20
  }
20
- export interface AppBreadcrumbProps {
21
+ export interface AppBreadcrumbProps extends MpTestIdProps {
21
22
  breadcrumbClass?: string;
22
23
  /** Any vuetify breadcrumbs props will be passed to v-breadcrumbs via v-bind */
23
24
  breadcrumbProps?: any;
package/dist/vuetify.d.ts CHANGED
@@ -33,6 +33,8 @@ export declare const themes: {
33
33
  'light-fog-gray': string;
34
34
  'light-silver': string;
35
35
  'creamy-amber': string;
36
+ 'steel-slate': string;
37
+ 'ash-gray': string;
36
38
  };
37
39
  };
38
40
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@maropost-ui/liquidsky-ui",
3
- "version": "0.1.73",
3
+ "version": "0.1.74",
4
4
  "description": "Shared UI components, composables, and utils for Vue + Vuetify",
5
5
  "main": "./dist/index.mjs",
6
6
  "types": "./dist/index.d.ts",