@maropost-ui/liquidsky-ui 0.0.8

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 (109) hide show
  1. package/README.md +182 -0
  2. package/dist/AppDialogWrapper-CNldRmy-.js +5 -0
  3. package/dist/AppDialogWrapper-CNldRmy-.js.map +1 -0
  4. package/dist/AppMultiCellValue-H5eP9IvV.js +5 -0
  5. package/dist/AppMultiCellValue-H5eP9IvV.js.map +1 -0
  6. package/dist/AppPriceDisplay-BbxtY7SY.js +5 -0
  7. package/dist/AppPriceDisplay-BbxtY7SY.js.map +1 -0
  8. package/dist/AppTooltip-nmMkVWSP.js +5 -0
  9. package/dist/AppTooltip-nmMkVWSP.js.map +1 -0
  10. package/dist/components/AppDropdown/index.d.ts +11 -0
  11. package/dist/components/AppDropdown/index.d.ts.map +1 -0
  12. package/dist/components/AppDropdown/useDropdownData.d.ts +22 -0
  13. package/dist/components/AppDropdown/useDropdownData.d.ts.map +1 -0
  14. package/dist/components/AppDropdown/useDropdownSearch.d.ts +16 -0
  15. package/dist/components/AppDropdown/useDropdownSearch.d.ts.map +1 -0
  16. package/dist/components/AppDropdown/useDropdownSelection.d.ts +17 -0
  17. package/dist/components/AppDropdown/useDropdownSelection.d.ts.map +1 -0
  18. package/dist/components/TheUnifiedNavigation/index.d.ts +6 -0
  19. package/dist/components/TheUnifiedNavigation/index.d.ts.map +1 -0
  20. package/dist/components/index.d.ts +36 -0
  21. package/dist/components/index.d.ts.map +1 -0
  22. package/dist/composables/index.d.ts +11 -0
  23. package/dist/composables/index.d.ts.map +1 -0
  24. package/dist/composables/toRefs.d.ts +18 -0
  25. package/dist/composables/toRefs.d.ts.map +1 -0
  26. package/dist/composables/useBackNavigation.d.ts +33 -0
  27. package/dist/composables/useBackNavigation.d.ts.map +1 -0
  28. package/dist/composables/useClipboard.d.ts +48 -0
  29. package/dist/composables/useClipboard.d.ts.map +1 -0
  30. package/dist/composables/useDebounce.d.ts +38 -0
  31. package/dist/composables/useDebounce.d.ts.map +1 -0
  32. package/dist/composables/useEmoji.d.ts +26 -0
  33. package/dist/composables/useEmoji.d.ts.map +1 -0
  34. package/dist/composables/useQueryFilters.d.ts +52 -0
  35. package/dist/composables/useQueryFilters.d.ts.map +1 -0
  36. package/dist/composables/useRefHistory.d.ts +56 -0
  37. package/dist/composables/useRefHistory.d.ts.map +1 -0
  38. package/dist/composables/useSearch.d.ts +65 -0
  39. package/dist/composables/useSearch.d.ts.map +1 -0
  40. package/dist/composables/useUnitConversion.d.ts +8 -0
  41. package/dist/composables/useUnitConversion.d.ts.map +1 -0
  42. package/dist/composables/useValidation.d.ts +54 -0
  43. package/dist/composables/useValidation.d.ts.map +1 -0
  44. package/dist/directives/Clipboard.d.ts +29 -0
  45. package/dist/directives/Clipboard.d.ts.map +1 -0
  46. package/dist/directives/TooltipOverflowCheck.d.ts +12 -0
  47. package/dist/directives/TooltipOverflowCheck.d.ts.map +1 -0
  48. package/dist/directives/index.d.ts +3 -0
  49. package/dist/directives/index.d.ts.map +1 -0
  50. package/dist/index.css +5 -0
  51. package/dist/index.d.ts +20 -0
  52. package/dist/index.d.ts.map +1 -0
  53. package/dist/index.js +31887 -0
  54. package/dist/index.js.map +1 -0
  55. package/dist/types/AlertModalProps.d.ts +26 -0
  56. package/dist/types/AlertModalProps.d.ts.map +1 -0
  57. package/dist/types/AppClipboardProps.d.ts +12 -0
  58. package/dist/types/AppClipboardProps.d.ts.map +1 -0
  59. package/dist/types/AppConfirmationDialogProps.d.ts +21 -0
  60. package/dist/types/AppConfirmationDialogProps.d.ts.map +1 -0
  61. package/dist/types/AppDataTableProps.d.ts +152 -0
  62. package/dist/types/AppDataTableProps.d.ts.map +1 -0
  63. package/dist/types/AppDialogWrapperProps.d.ts +11 -0
  64. package/dist/types/AppDialogWrapperProps.d.ts.map +1 -0
  65. package/dist/types/AppDrawerWrapperProps.d.ts +12 -0
  66. package/dist/types/AppDrawerWrapperProps.d.ts.map +1 -0
  67. package/dist/types/AppDropdownProps.d.ts +62 -0
  68. package/dist/types/AppDropdownProps.d.ts.map +1 -0
  69. package/dist/types/AppMultiCellValueProps.d.ts +5 -0
  70. package/dist/types/AppMultiCellValueProps.d.ts.map +1 -0
  71. package/dist/types/AppSnackbarProps.d.ts +8 -0
  72. package/dist/types/AppSnackbarProps.d.ts.map +1 -0
  73. package/dist/types/AppTableActionMenuProps.d.ts +30 -0
  74. package/dist/types/AppTableActionMenuProps.d.ts.map +1 -0
  75. package/dist/types/AppsDropdownProps.d.ts +54 -0
  76. package/dist/types/AppsDropdownProps.d.ts.map +1 -0
  77. package/dist/types/NotificationIconProps.d.ts +31 -0
  78. package/dist/types/NotificationIconProps.d.ts.map +1 -0
  79. package/dist/types/SearchBarProps.d.ts +20 -0
  80. package/dist/types/SearchBarProps.d.ts.map +1 -0
  81. package/dist/types/SecondaryNavBarProps.d.ts +14 -0
  82. package/dist/types/SecondaryNavBarProps.d.ts.map +1 -0
  83. package/dist/types/TheNavigationProps.d.ts +52 -0
  84. package/dist/types/TheNavigationProps.d.ts.map +1 -0
  85. package/dist/types/TheNotificationDrawerProps.d.ts +41 -0
  86. package/dist/types/TheNotificationDrawerProps.d.ts.map +1 -0
  87. package/dist/types/TheOnboardingScreenChecklistsProps.d.ts +39 -0
  88. package/dist/types/TheOnboardingScreenChecklistsProps.d.ts.map +1 -0
  89. package/dist/types/TheTimezoneProps.d.ts +19 -0
  90. package/dist/types/TheTimezoneProps.d.ts.map +1 -0
  91. package/dist/types/TheUserDropdownProps.d.ts +9 -0
  92. package/dist/types/TheUserDropdownProps.d.ts.map +1 -0
  93. package/dist/types/UnifiedNavigationProps.d.ts +28 -0
  94. package/dist/types/UnifiedNavigationProps.d.ts.map +1 -0
  95. package/dist/types/index.d.ts +6 -0
  96. package/dist/types/index.d.ts.map +1 -0
  97. package/dist/types/router.d.ts +36 -0
  98. package/dist/types/router.d.ts.map +1 -0
  99. package/dist/types/unitTypes.d.ts +19 -0
  100. package/dist/types/unitTypes.d.ts.map +1 -0
  101. package/dist/utils/capitalizeWords.d.ts +13 -0
  102. package/dist/utils/capitalizeWords.d.ts.map +1 -0
  103. package/dist/utils/commonFunctions.d.ts +39 -0
  104. package/dist/utils/commonFunctions.d.ts.map +1 -0
  105. package/dist/utils/numberUtils.d.ts +44 -0
  106. package/dist/utils/numberUtils.d.ts.map +1 -0
  107. package/dist/vuetify.d.ts +191 -0
  108. package/dist/vuetify.d.ts.map +1 -0
  109. package/package.json +70 -0
@@ -0,0 +1,39 @@
1
+ export interface DeepLink {
2
+ label: string;
3
+ disabled?: boolean;
4
+ routeName?: string;
5
+ params?: Record<string, any>;
6
+ query?: Record<string, any>;
7
+ href?: string;
8
+ }
9
+ export interface ChecklistItem {
10
+ key: string;
11
+ title: string;
12
+ subtitle: string;
13
+ setupGuideLink?: string;
14
+ deepLinks: DeepLink[];
15
+ }
16
+ export interface ChecklistSection {
17
+ title: string;
18
+ value: string;
19
+ items: ChecklistItem[];
20
+ }
21
+ export interface StatusUpdatedChecklistSection {
22
+ title: string;
23
+ value: string;
24
+ items: StatusUpdatedChecklistItem[];
25
+ }
26
+ export interface StatusUpdatedChecklistItem {
27
+ key: string;
28
+ title: string;
29
+ subtitle: string;
30
+ setupGuideLink?: string;
31
+ deepLinks: DeepLink[];
32
+ status: "not_started" | "in_progress" | "completed";
33
+ }
34
+ export interface Props {
35
+ checklists: ChecklistSection[];
36
+ checkListsStatus: Record<string, "not_started" | "in_progress" | "completed">;
37
+ uniqueKey: string;
38
+ }
39
+ //# sourceMappingURL=TheOnboardingScreenChecklistsProps.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"TheOnboardingScreenChecklistsProps.d.ts","sourceRoot":"","sources":["../../src/types/TheOnboardingScreenChecklistsProps.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,QAAQ;IACvB,KAAK,EAAE,MAAM,CAAC;IACd,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,MAAM,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC;IAC7B,KAAK,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC;IAC5B,IAAI,CAAC,EAAE,MAAM,CAAC;CACf;AAED,MAAM,WAAW,aAAa;IAC5B,GAAG,EAAE,MAAM,CAAC;IACZ,KAAK,EAAE,MAAM,CAAC;IACd,QAAQ,EAAE,MAAM,CAAC;IACjB,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,SAAS,EAAE,QAAQ,EAAE,CAAC;CACvB;AAED,MAAM,WAAW,gBAAgB;IAC/B,KAAK,EAAE,MAAM,CAAC;IACd,KAAK,EAAE,MAAM,CAAC;IACd,KAAK,EAAE,aAAa,EAAE,CAAC;CACxB;AAED,MAAM,WAAW,6BAA6B;IAC5C,KAAK,EAAE,MAAM,CAAC;IACd,KAAK,EAAE,MAAM,CAAC;IACd,KAAK,EAAE,0BAA0B,EAAE,CAAC;CACrC;AAED,MAAM,WAAW,0BAA0B;IACzC,GAAG,EAAE,MAAM,CAAC;IACZ,KAAK,EAAE,MAAM,CAAC;IACd,QAAQ,EAAE,MAAM,CAAC;IACjB,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,SAAS,EAAE,QAAQ,EAAE,CAAC;IACtB,MAAM,EAAE,aAAa,GAAG,aAAa,GAAG,WAAW,CAAC;CACrD;AAGD,MAAM,WAAW,KAAK;IACpB,UAAU,EAAE,gBAAgB,EAAE,CAAC;IAC/B,gBAAgB,EAAE,MAAM,CAAC,MAAM,EAAE,aAAa,GAAG,aAAa,GAAG,WAAW,CAAC,CAAC;IAC9E,SAAS,EAAE,MAAM,CAAC;CACnB"}
@@ -0,0 +1,19 @@
1
+ export interface TheTimezoneProps {
2
+ /** URL route to preferences page where timezone can be changed */
3
+ routeToPreferences: string;
4
+ /**
5
+ * Timezone identifier (IANA timezone name)
6
+ * @default "UTC"
7
+ * @example "America/New_York", "Europe/London", "Asia/Tokyo"
8
+ */
9
+ timezone?: string;
10
+ }
11
+ export interface TimezoneData {
12
+ /** Human readable timezone name with UTC offset */
13
+ name: string;
14
+ /** IANA timezone identifier */
15
+ value: string;
16
+ /** Timezone abbreviation (e.g. EST, PST, GMT) */
17
+ abbr: string;
18
+ }
19
+ //# sourceMappingURL=TheTimezoneProps.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"TheTimezoneProps.d.ts","sourceRoot":"","sources":["../../src/types/TheTimezoneProps.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,gBAAgB;IAC/B,kEAAkE;IAClE,kBAAkB,EAAE,MAAM,CAAC;IAC3B;;;;OAIG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAC;CACnB;AAED,MAAM,WAAW,YAAY;IAC3B,mDAAmD;IACnD,IAAI,EAAE,MAAM,CAAC;IACb,+BAA+B;IAC/B,KAAK,EAAE,MAAM,CAAC;IACd,iDAAiD;IACjD,IAAI,EAAE,MAAM,CAAC;CACd"}
@@ -0,0 +1,9 @@
1
+ export interface TheUserDropdownProps {
2
+ /** Items to display in the dropdown */
3
+ items: any[];
4
+ /** Username to display in the dropdown */
5
+ username: string;
6
+ /** Logout handler */
7
+ onLogout?: () => void;
8
+ }
9
+ //# sourceMappingURL=TheUserDropdownProps.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"TheUserDropdownProps.d.ts","sourceRoot":"","sources":["../../src/types/TheUserDropdownProps.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,oBAAoB;IACnC,uCAAuC;IACvC,KAAK,EAAE,GAAG,EAAE,CAAC;IACb,0CAA0C;IAC1C,QAAQ,EAAE,MAAM,CAAC;IACjB,qBAAqB;IACrB,QAAQ,CAAC,EAAE,MAAM,IAAI,CAAC;CACvB"}
@@ -0,0 +1,28 @@
1
+ import type { RouteLocationRaw } from "vue-router";
2
+ export interface UnifiedNavigationProps {
3
+ collapsed?: boolean;
4
+ navBlocks: [UnifiedNavigationItem[]];
5
+ accountId: string;
6
+ menuItems?: [UnifiedNavigationItem[]];
7
+ enableStoreMenu?: boolean;
8
+ }
9
+ export type UnifiedNavigationItem = {
10
+ id?: string;
11
+ title: string;
12
+ icon?: string;
13
+ to?: RouteLocationRaw;
14
+ scope?: string;
15
+ pathname?: string;
16
+ hasFeatureIcon?: {
17
+ customFeatureIcon: string;
18
+ featureIconColor?: string;
19
+ };
20
+ disabled?: boolean;
21
+ onClick?: (item: UnifiedNavigationItem) => void;
22
+ isNew?: boolean;
23
+ isPremium?: boolean;
24
+ featureFlag?: boolean;
25
+ submenu?: UnifiedNavigationItem[];
26
+ exclude?: string;
27
+ };
28
+ //# sourceMappingURL=UnifiedNavigationProps.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"UnifiedNavigationProps.d.ts","sourceRoot":"","sources":["../../src/types/UnifiedNavigationProps.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,YAAY,CAAA;AAElD,MAAM,WAAW,sBAAsB;IACnC,SAAS,CAAC,EAAE,OAAO,CAAA;IACnB,SAAS,EAAE,CAAC,qBAAqB,EAAE,CAAC,CAAC;IACrC,SAAS,EAAE,MAAM,CAAA;IACjB,SAAS,CAAC,EAAE,CAAC,qBAAqB,EAAE,CAAC,CAAA;IACrC,eAAe,CAAC,EAAE,OAAO,CAAA;CAC1B;AAED,MAAM,MAAM,qBAAqB,GAAG;IAClC,EAAE,CAAC,EAAE,MAAM,CAAA;IACX,KAAK,EAAE,MAAM,CAAA;IACb,IAAI,CAAC,EAAE,MAAM,CAAA;IACb,EAAE,CAAC,EAAE,gBAAgB,CAAA;IACrB,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,QAAQ,CAAC,EAAE,MAAM,CAAA;IACjB,cAAc,CAAC,EAAE;QACf,iBAAiB,EAAE,MAAM,CAAA;QACzB,gBAAgB,CAAC,EAAE,MAAM,CAAA;KAC1B,CAAA;IACD,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,OAAO,CAAC,EAAE,CAAC,IAAI,EAAE,qBAAqB,KAAK,IAAI,CAAA;IAC/C,KAAK,CAAC,EAAE,OAAO,CAAA;IACf,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,WAAW,CAAC,EAAG,OAAO,CAAA;IACtB,OAAO,CAAC,EAAE,qBAAqB,EAAE,CAAC;IAClC,OAAO,CAAC,EAAG,MAAM,CAAA;CAClB,CAAA"}
@@ -0,0 +1,6 @@
1
+ export * from "./router";
2
+ export * from './TheNotificationDrawerProps';
3
+ export * from './TheTimezoneProps';
4
+ export * from './AlertModalProps';
5
+ export * from './unitTypes';
6
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/types/index.ts"],"names":[],"mappings":"AAAA,cAAc,UAAU,CAAC;AACzB,cAAc,8BAA8B,CAAC;AAC7C,cAAc,oBAAoB,CAAC;AACnC,cAAc,mBAAmB,CAAC;AAClC,cAAc,aAAa,CAAC"}
@@ -0,0 +1,36 @@
1
+ /**
2
+ * Custom route meta type definitions
3
+ */
4
+ export interface SearchMeta {
5
+ show?: boolean;
6
+ placeholder?: string;
7
+ }
8
+ export interface BreadcrumbItem {
9
+ title: string;
10
+ to?: string | {
11
+ name?: string;
12
+ path?: string;
13
+ params?: Record<string, any>;
14
+ query?: Record<string, any>;
15
+ };
16
+ disabled?: boolean;
17
+ exact?: boolean;
18
+ href?: string;
19
+ }
20
+ export interface AppBreadcrumbProps {
21
+ breadcrumbClass?: string;
22
+ /** Any vuetify breadcrumbs props will be passed to v-breadcrumbs via v-bind */
23
+ breadcrumbProps?: any;
24
+ breadcrumbItemClass?: string;
25
+ breadcrumbs?: BreadcrumbItem[];
26
+ }
27
+ export interface CustomRouteMeta {
28
+ search?: SearchMeta;
29
+ breadcrumbs?: BreadcrumbItem[];
30
+ [key: string]: any;
31
+ }
32
+ declare module 'vue-router' {
33
+ interface RouteMeta extends CustomRouteMeta {
34
+ }
35
+ }
36
+ //# sourceMappingURL=router.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"router.d.ts","sourceRoot":"","sources":["../../src/types/router.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,MAAM,WAAW,UAAU;IACzB,IAAI,CAAC,EAAE,OAAO,CAAA;IACd,WAAW,CAAC,EAAE,MAAM,CAAA;CACrB;AAED,MAAM,WAAW,cAAc;IAC7B,KAAK,EAAE,MAAM,CAAA;IACb,EAAE,CAAC,EAAE,MAAM,GAAG;QAAE,IAAI,CAAC,EAAE,MAAM,CAAC;QAAC,IAAI,CAAC,EAAE,MAAM,CAAC;QAAC,MAAM,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC;QAAC,KAAK,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAA;KAAE,CAAA;IACzG,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,KAAK,CAAC,EAAE,OAAO,CAAA;IACf,IAAI,CAAC,EAAE,MAAM,CAAA;CACd;AACD,MAAM,WAAW,kBAAkB;IACjC,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,+EAA+E;IAC/E,eAAe,CAAC,EAAE,GAAG,CAAC;IACtB,mBAAmB,CAAC,EAAE,MAAM,CAAC;IAC7B,WAAW,CAAC,EAAE,cAAc,EAAE,CAAA;CAC/B;AAED,MAAM,WAAW,eAAe;IAC9B,MAAM,CAAC,EAAE,UAAU,CAAA;IACnB,WAAW,CAAC,EAAE,cAAc,EAAE,CAAA;IAC9B,CAAC,GAAG,EAAE,MAAM,GAAG,GAAG,CAAA;CACnB;AAGD,OAAO,QAAQ,YAAY,CAAC;IAC1B,UAAU,SAAU,SAAQ,eAAe;KAAG;CAC/C"}
@@ -0,0 +1,19 @@
1
+ export type UnitType = 'weight' | 'dimension';
2
+ export type WeightUnit = 'kg' | 'g' | 'mg' | 'lb' | 'oz' | 'ton';
3
+ export type DimensionUnit = 'm' | 'cm' | 'mm' | 'km' | 'in' | 'ft' | 'yd';
4
+ export type Unit = WeightUnit | DimensionUnit;
5
+ export type NumberType = 'default' | 'currency' | 'percent' | 'dimension' | 'weight';
6
+ export interface BaseUnit {
7
+ dimension: DimensionUnit;
8
+ weight: WeightUnit;
9
+ }
10
+ export type DefaultUnitFunction = (type: NumberType) => Unit | undefined;
11
+ export interface ConversionTable {
12
+ weight: {
13
+ units: Record<WeightUnit, number>;
14
+ };
15
+ dimension: {
16
+ units: Record<DimensionUnit, number>;
17
+ };
18
+ }
19
+ //# sourceMappingURL=unitTypes.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"unitTypes.d.ts","sourceRoot":"","sources":["../../src/types/unitTypes.ts"],"names":[],"mappings":"AACA,MAAM,MAAM,QAAQ,GAAG,QAAQ,GAAG,WAAW,CAAA;AAE7C,MAAM,MAAM,UAAU,GAAG,IAAI,GAAG,GAAG,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,GAAG,KAAK,CAAA;AAChE,MAAM,MAAM,aAAa,GAAG,GAAG,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,CAAA;AACzE,MAAM,MAAM,IAAI,GAAG,UAAU,GAAG,aAAa,CAAA;AAG7C,MAAM,MAAM,UAAU,GAAG,SAAS,GAAG,UAAU,GAAG,SAAS,GAAG,WAAW,GAAG,QAAQ,CAAA;AAGpF,MAAM,WAAW,QAAQ;IACvB,SAAS,EAAE,aAAa,CAAA;IACxB,MAAM,EAAE,UAAU,CAAA;CACnB;AAGD,MAAM,MAAM,mBAAmB,GAAG,CAAC,IAAI,EAAE,UAAU,KAAK,IAAI,GAAG,SAAS,CAAA;AAGxE,MAAM,WAAW,eAAe;IAC9B,MAAM,EAAE;QACN,KAAK,EAAE,MAAM,CAAC,UAAU,EAAE,MAAM,CAAC,CAAA;KAClC,CAAA;IACD,SAAS,EAAE;QACT,KAAK,EAAE,MAAM,CAAC,aAAa,EAAE,MAAM,CAAC,CAAA;KACrC,CAAA;CACF"}
@@ -0,0 +1,13 @@
1
+ /**
2
+ * Returns a new string with the first letter of each word capitalized.
3
+ * Words are defined as sequences of characters separated by whitespace or non-word characters.
4
+ *
5
+ * @param input - The string to capitalize.
6
+ * @returns The input string with each word's first letter capitalized.
7
+ *
8
+ * @example
9
+ * capitalizeWords("hello world"); // "Hello World"
10
+ * capitalizeWords("foo-bar baz"); // "Foo-Bar Baz"
11
+ */
12
+ export default function capitalizeWords(input: string): string;
13
+ //# sourceMappingURL=capitalizeWords.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"capitalizeWords.d.ts","sourceRoot":"","sources":["../../src/utils/capitalizeWords.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;GAUG;AACH,MAAM,CAAC,OAAO,UAAU,eAAe,CAAC,KAAK,EAAE,MAAM,GAAG,MAAM,CAG7D"}
@@ -0,0 +1,39 @@
1
+ /**
2
+ * @file commonFunctions.ts
3
+ * @description Generic utility functions for AppDataTable
4
+ */
5
+ /**
6
+ * Flattens a nested object into a single level object
7
+ * @param obj - The object to flatten
8
+ * @param prefix - Optional prefix for keys
9
+ * @returns Flattened object
10
+ */
11
+ export declare function flattenObject(obj: any, prefix?: string): Record<string, any>;
12
+ /**
13
+ * Checks if a value is empty (null, undefined, empty string, empty array, empty object)
14
+ * @param value - The value to check
15
+ * @returns True if the value is empty
16
+ */
17
+ export declare function isEmpty(value: any): boolean;
18
+ /**
19
+ * Deep clone an object
20
+ * @param obj - The object to clone
21
+ * @returns Cloned object
22
+ */
23
+ export declare function cloneDeep<T>(obj: T): T;
24
+ /**
25
+ * Deep equality check between two objects
26
+ * @param a - First object
27
+ * @param b - Second object
28
+ * @returns True if objects are deeply equal
29
+ */
30
+ export declare function isEqual(a: any, b: any): boolean;
31
+ /**
32
+ * Get nested property value from object using dot notation
33
+ * @param obj - The object to get value from
34
+ * @param path - The path to the property (e.g., 'user.profile.name')
35
+ * @param defaultValue - Default value if property doesn't exist
36
+ * @returns The property value or default value
37
+ */
38
+ export declare function get(obj: any, path: string, defaultValue?: any): any;
39
+ //# sourceMappingURL=commonFunctions.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"commonFunctions.d.ts","sourceRoot":"","sources":["../../src/utils/commonFunctions.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH;;;;;GAKG;AACH,wBAAgB,aAAa,CAAC,GAAG,EAAE,GAAG,EAAE,MAAM,SAAK,GAAG,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAgBxE;AAED;;;;GAIG;AACH,wBAAgB,OAAO,CAAC,KAAK,EAAE,GAAG,GAAG,OAAO,CAM3C;AAED;;;;GAIG;AACH,wBAAgB,SAAS,CAAC,CAAC,EAAE,GAAG,EAAE,CAAC,GAAG,CAAC,CActC;AAED;;;;;GAKG;AACH,wBAAgB,OAAO,CAAC,CAAC,EAAE,GAAG,EAAE,CAAC,EAAE,GAAG,GAAG,OAAO,CA8B/C;AAED;;;;;;GAMG;AACH,wBAAgB,GAAG,CAAC,GAAG,EAAE,GAAG,EAAE,IAAI,EAAE,MAAM,EAAE,YAAY,CAAC,EAAE,GAAG,GAAG,GAAG,CAYnE"}
@@ -0,0 +1,44 @@
1
+ /**
2
+ * Formats a number according to the specified options.
3
+ *
4
+ * @param {number} value - The number to format.
5
+ * @param {Object} [options={}] - Optional settings for formatting.
6
+ * @param {number} [options.minimumFractionDigits=0] - The minimum number of fraction digits to use.
7
+ * @param {number} [options.maximumFractionDigits=2] - The maximum number of fraction digits to use.
8
+ * @returns {string} - The formatted number as a string.
9
+ */
10
+ export declare function formatNumber(value: number, options?: {
11
+ minimumFractionDigits?: number;
12
+ maximumFractionDigits?: number;
13
+ }): string;
14
+ /**
15
+ * Format a number as currency
16
+ * @param value - The number to format
17
+ * @param currency - The currency code (default: 'USD')
18
+ * @param locale - The locale to use for formatting (default: 'en-US')
19
+ * @returns Formatted currency string
20
+ */
21
+ export declare function formatCurrency(value: number | string | null | undefined, currency?: string, locale?: string): string;
22
+ /**
23
+ * Format a number as percentage
24
+ * @param value - The number to format (should be between 0 and 1 for decimal percentages)
25
+ * @param locale - The locale to use for formatting (default: 'en-US')
26
+ * @param isDecimal - Whether the value is already in decimal format (default: false)
27
+ * @returns Formatted percentage string
28
+ */
29
+ export declare function formatPercentage(value: number | string | null | undefined, locale?: string, isDecimal?: boolean): string;
30
+ /**
31
+ * Parse a number from a string, handling various formats
32
+ * @param value - The string to parse
33
+ * @param defaultValue - Default value if parsing fails
34
+ * @returns Parsed number or default value
35
+ */
36
+ export declare function parseNumber(value: string | number | null | undefined, defaultValue?: number): number;
37
+ /**
38
+ * Round a number to specified decimal places
39
+ * @param value - The number to round
40
+ * @param decimals - Number of decimal places (default: 2)
41
+ * @returns Rounded number
42
+ */
43
+ export declare function roundNumber(value: number | string, decimals?: number): number;
44
+ //# sourceMappingURL=numberUtils.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"numberUtils.d.ts","sourceRoot":"","sources":["../../src/utils/numberUtils.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AACH,wBAAgB,YAAY,CAC1B,KAAK,EAAE,MAAM,EACb,OAAO,GAAE;IAAE,qBAAqB,CAAC,EAAE,MAAM,CAAC;IAAC,qBAAqB,CAAC,EAAE,MAAM,CAAA;CAAO,UAQjF;AACD;;;;;;GAMG;AACH,wBAAgB,cAAc,CAC5B,KAAK,EAAE,MAAM,GAAG,MAAM,GAAG,IAAI,GAAG,SAAS,EACzC,QAAQ,GAAE,MAAc,EACxB,MAAM,GAAE,MAAgB,GACvB,MAAM,CAsBR;AAED;;;;;;GAMG;AACH,wBAAgB,gBAAgB,CAC9B,KAAK,EAAE,MAAM,GAAG,MAAM,GAAG,IAAI,GAAG,SAAS,EACzC,MAAM,GAAE,MAAgB,EACxB,SAAS,GAAE,OAAe,GACzB,MAAM,CAuBR;AAED;;;;;GAKG;AACH,wBAAgB,WAAW,CACzB,KAAK,EAAE,MAAM,GAAG,MAAM,GAAG,IAAI,GAAG,SAAS,EACzC,YAAY,GAAE,MAAU,GACvB,MAAM,CAaR;AAED;;;;;GAKG;AACH,wBAAgB,WAAW,CAAC,KAAK,EAAE,MAAM,GAAG,MAAM,EAAE,QAAQ,GAAE,MAAU,GAAG,MAAM,CAQhF"}
@@ -0,0 +1,191 @@
1
+ import '@mdi/font/css/materialdesignicons.css';
2
+ export declare const colors: {
3
+ grey: string;
4
+ black: string;
5
+ lightGrey: string;
6
+ background: string;
7
+ };
8
+ export declare const themes: {
9
+ maropost: {
10
+ dark: boolean;
11
+ colors: {
12
+ grey: string;
13
+ 'light-grey': string;
14
+ background: string;
15
+ black: string;
16
+ error: string;
17
+ primary: string;
18
+ mpBlue: string;
19
+ mpPink: string;
20
+ };
21
+ };
22
+ };
23
+ export declare const defaults: {
24
+ VTextField: {
25
+ variant: string;
26
+ color: string;
27
+ density: string;
28
+ };
29
+ VTextarea: {
30
+ variant: string;
31
+ color: string;
32
+ density: string;
33
+ rows: number;
34
+ autoGrow: boolean;
35
+ };
36
+ VNumberInput: {
37
+ variant: string;
38
+ color: string;
39
+ density: string;
40
+ controlVariant: string;
41
+ max: number;
42
+ };
43
+ VMaskInput: {
44
+ variant: string;
45
+ color: string;
46
+ density: string;
47
+ };
48
+ VBtn: {
49
+ variant: string;
50
+ class: string;
51
+ };
52
+ VRadio: {
53
+ color: string;
54
+ density: string;
55
+ };
56
+ VRadioGroup: {
57
+ color: string;
58
+ density: string;
59
+ };
60
+ VCheckbox: {
61
+ color: string;
62
+ density: string;
63
+ };
64
+ VSelect: {
65
+ variant: string;
66
+ color: string;
67
+ density: string;
68
+ };
69
+ VAutocomplete: {
70
+ variant: string;
71
+ color: string;
72
+ density: string;
73
+ };
74
+ VDataTableServer: {
75
+ itemsPerPageText: string;
76
+ itemsPerPageOptions: number[];
77
+ color: string;
78
+ };
79
+ VDataTable: {
80
+ itemsPerPageText: string;
81
+ itemsPerPageOptions: number[];
82
+ color: string;
83
+ };
84
+ VSwitch: {
85
+ color: string;
86
+ density: string;
87
+ };
88
+ VCombobox: {
89
+ variant: string;
90
+ color: string;
91
+ density: string;
92
+ };
93
+ VTooltip: {
94
+ maxWidth: number;
95
+ };
96
+ VStatusChip: {
97
+ size: string;
98
+ class: string;
99
+ variant: string;
100
+ };
101
+ VDateInput: {
102
+ density: string;
103
+ variant: string;
104
+ color: string;
105
+ };
106
+ };
107
+ export declare function createLiquidSkyVuetify(options?: any): {
108
+ install: (app: import("vue").App<any>) => void;
109
+ unmount: () => void;
110
+ defaults: import("vue").Ref<import("vuetify").DefaultsInstance, import("vuetify").DefaultsInstance>;
111
+ display: import("vuetify").DisplayInstance;
112
+ theme: import("vuetify").ThemeInstance & {
113
+ install: (app: import("vue").App<any>) => void;
114
+ };
115
+ icons: {
116
+ defaultSet: string;
117
+ aliases: Partial<import("vuetify").IconAliases>;
118
+ sets: Record<string, import("vuetify").IconSet>;
119
+ };
120
+ locale: {
121
+ name: string;
122
+ decimalSeparator: import("vue").ShallowRef<string>;
123
+ messages: import("vue").Ref<import("vuetify").LocaleMessages, import("vuetify").LocaleMessages>;
124
+ current: import("vue").Ref<string, string>;
125
+ fallback: import("vue").Ref<string, string>;
126
+ t: (key: string, ...params: unknown[]) => string;
127
+ n: (value: number) => string;
128
+ provide: (props: import("vuetify").LocaleOptions) => import("vuetify").LocaleInstance;
129
+ isRtl: import("vue").Ref<boolean, boolean>;
130
+ rtl: import("vue").Ref<Record<string, boolean>, Record<string, boolean>>;
131
+ rtlClasses: import("vue").Ref<string, string>;
132
+ };
133
+ date: {
134
+ options: {
135
+ adapter: (new (options: {
136
+ locale: any;
137
+ formats?: any;
138
+ }) => import("vuetify").DateInstance) | import("vuetify").DateInstance;
139
+ formats?: Record<string, any>;
140
+ locale: Record<string, any>;
141
+ };
142
+ instance: {
143
+ date: (value?: any) => unknown;
144
+ format: (date: unknown, formatString: string) => string;
145
+ toJsDate: (value: unknown) => Date;
146
+ parseISO: (date: string) => unknown;
147
+ toISO: (date: unknown) => string;
148
+ startOfDay: (date: unknown) => unknown;
149
+ endOfDay: (date: unknown) => unknown;
150
+ startOfWeek: (date: unknown, firstDayOfWeek?: string | number | undefined) => unknown;
151
+ endOfWeek: (date: unknown) => unknown;
152
+ startOfMonth: (date: unknown) => unknown;
153
+ endOfMonth: (date: unknown) => unknown;
154
+ startOfYear: (date: unknown) => unknown;
155
+ endOfYear: (date: unknown) => unknown;
156
+ isAfter: (date: unknown, comparing: unknown) => boolean;
157
+ isAfterDay: (date: unknown, comparing: unknown) => boolean;
158
+ isSameDay: (date: unknown, comparing: unknown) => boolean;
159
+ isSameMonth: (date: unknown, comparing: unknown) => boolean;
160
+ isSameYear: (date: unknown, comparing: unknown) => boolean;
161
+ isBefore: (date: unknown, comparing: unknown) => boolean;
162
+ isEqual: (date: unknown, comparing: unknown) => boolean;
163
+ isValid: (date: any) => boolean;
164
+ isWithinRange: (date: unknown, range: [unknown, unknown]) => boolean;
165
+ addMinutes: (date: unknown, amount: number) => unknown;
166
+ addHours: (date: unknown, amount: number) => unknown;
167
+ addDays: (date: unknown, amount: number) => unknown;
168
+ addWeeks: (date: unknown, amount: number) => unknown;
169
+ addMonths: (date: unknown, amount: number) => unknown;
170
+ getYear: (date: unknown) => number;
171
+ setYear: (date: unknown, year: number) => unknown;
172
+ getDiff: (date: unknown, comparing: unknown, unit?: string | undefined) => number;
173
+ getWeekArray: (date: unknown, firstDayOfWeek?: string | number | undefined) => unknown[][];
174
+ getWeekdays: (firstDayOfWeek?: string | number | undefined, weekdayFormat?: "long" | "narrow" | "short" | undefined) => string[];
175
+ getWeek: (date: unknown, firstDayOfWeek?: string | number | undefined, firstDayOfYear?: string | number | undefined) => number;
176
+ getMonth: (date: unknown) => number;
177
+ setMonth: (date: unknown, month: number) => unknown;
178
+ getDate: (date: unknown) => number;
179
+ setDate: (date: unknown, day: number) => unknown;
180
+ getNextMonth: (date: unknown) => unknown;
181
+ getPreviousMonth: (date: unknown) => unknown;
182
+ getHours: (date: unknown) => number;
183
+ setHours: (date: unknown, hours: number) => unknown;
184
+ getMinutes: (date: unknown) => number;
185
+ setMinutes: (date: unknown, minutes: number) => unknown;
186
+ locale?: any;
187
+ };
188
+ };
189
+ goTo: import("vuetify").GoToInstance;
190
+ };
191
+ //# sourceMappingURL=vuetify.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"vuetify.d.ts","sourceRoot":"","sources":["../src/vuetify.ts"],"names":[],"mappings":"AAMA,OAAO,uCAAuC,CAAA;AAE9C,eAAO,MAAM,MAAM;;;;;CAKlB,CAAA;AAED,eAAO,MAAM,MAAM;;;;;;;;;;;;;;CAclB,CAAA;AACD,eAAO,MAAM,QAAQ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAmFpB,CAAA;AAGD,wBAAgB,sBAAsB,CAAC,OAAO,GAAE,GAAQ;;;;;;;;;;;;;;;;;;;yBAiCii1G,GAAI;;;;;;;;;;;uBAAjp0G,CAAC;;;;;;wBAAmh1G,CAAC;;;;;;;uDAAoY,CAAC;;;;;;;;;;;;;;;;;;;;;;6DAAu5C,CAAC;wDAAyF,CAAC;wCAAuF,CAAC,4CAA4C,CAAC;mDAA2G,CAAC,6CAA6C,CAAC;;;;;;;;;;;kBAAsnB,CAAC;;;;EAF7u7G"}
package/package.json ADDED
@@ -0,0 +1,70 @@
1
+ {
2
+ "name": "@maropost-ui/liquidsky-ui",
3
+ "version": "0.0.8",
4
+ "description": "Shared UI components, composables, and utils for Vue + Vuetify",
5
+ "main": "./dist/index.mjs",
6
+ "types": "./dist/index.d.ts",
7
+ "type": "module",
8
+ "private": false,
9
+ "files": [
10
+ "dist"
11
+ ],
12
+ "publishConfig": {
13
+ "access": "public"
14
+ },
15
+ "exports": {
16
+ ".": {
17
+ "import": "./dist/index.js",
18
+ "types": "./dist/index.d.ts"
19
+ },
20
+ "./styles": "./dist/index.css",
21
+ "./dist/index.css": "./dist/index.css",
22
+ "./style.css": "./dist/index.css",
23
+ "./css": "./dist/index.css"
24
+ },
25
+ "scripts": {
26
+ "build": "vue-tsc --noEmit --project tsconfig.build.json && vite build && tsc --project tsconfig.build.json",
27
+ "build:watch": "vite build --watch",
28
+ "types:watch": "tsc --emitDeclarationOnly --watch",
29
+ "typecheck:watch": "vue-tsc --noEmit --watch",
30
+ "dev": "npm run typecheck:watch & npm run types:watch & npm run build:watch & wait",
31
+ "prepublishOnly": "npm run clean && npm run build",
32
+ "docs:generate": "npm run clean && node scripts/generate-docs.js",
33
+ "stories:generate": "node scripts/generate-stories.js",
34
+ "clean": "rm -rf src/stories/directives && rm -rf src/stories/composables && rm -rf src/stories/utils && npm run stories:clean",
35
+ "stories:clean": "find src/components -name '*.stories.ts' -delete",
36
+ "storybook": "storybook dev -p 6006",
37
+ "storybook:build": "storybook build",
38
+ "docs:generate:vuetify": "node scripts/generate-vuetify-story.cjs"
39
+ },
40
+ "peerDependencies": {
41
+ "date-fns-tz": "^3.2.0",
42
+ "lz-string": "^1.5.0",
43
+ "vue": "^3.5.11",
44
+ "vue-router": "^4.4.5",
45
+ "vuetify": "^3.7.13"
46
+ },
47
+ "devDependencies": {
48
+ "@mdi/font": "^7.4.47",
49
+ "@storybook/addon-a11y": "^9.1.2",
50
+ "@storybook/addon-controls": "^9.0.8",
51
+ "@storybook/addon-docs": "^9.1.5",
52
+ "@storybook/vue3-vite": "^9.1.2",
53
+ "@types/node": "^24.1.0",
54
+ "@vitejs/plugin-vue": "^6.0.1",
55
+ "@vue/eslint-config-typescript": "^14.6.0",
56
+ "date-fns": "^4.1.0",
57
+ "eslint-plugin-vue": "^10.4.0",
58
+ "handlebars": "^4.7.8",
59
+ "lz-string": "^1.5.0",
60
+ "sass-embedded": "^1.96.0",
61
+ "storybook": "^9.1.2",
62
+ "typescript": "^5.4.5",
63
+ "vite": "^7.0.6",
64
+ "vue-component-meta": "^3.0.7",
65
+ "vue-docgen-api": "^4.79.2",
66
+ "vue-router": "^4.5.1",
67
+ "vue-tsc": "^3.0.5",
68
+ "vuetify": "^3.9.5"
69
+ }
70
+ }