@cranberry-money/shared-constants 8.9.0 → 8.9.2

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 (214) hide show
  1. package/dist/api/auth.d.ts +21 -0
  2. package/dist/api/auth.d.ts.map +1 -0
  3. package/dist/api/auth.js +24 -0
  4. package/dist/api/auth.js.map +1 -0
  5. package/dist/api/config.d.ts +36 -0
  6. package/dist/api/config.d.ts.map +1 -0
  7. package/dist/api/config.js +45 -0
  8. package/dist/api/config.js.map +1 -0
  9. package/dist/api/endpoints.d.ts +157 -0
  10. package/dist/api/endpoints.d.ts.map +1 -0
  11. package/dist/api/endpoints.js +185 -0
  12. package/dist/api/endpoints.js.map +1 -0
  13. package/dist/api/http.d.ts +57 -0
  14. package/dist/api/http.d.ts.map +1 -0
  15. package/dist/api/http.js +63 -0
  16. package/dist/api/http.js.map +1 -0
  17. package/dist/api/index.d.ts +9 -0
  18. package/dist/api/index.d.ts.map +1 -0
  19. package/dist/api/index.js +9 -0
  20. package/dist/api/index.js.map +1 -0
  21. package/dist/api/services.d.ts +9 -0
  22. package/dist/api/services.d.ts.map +1 -0
  23. package/dist/api/services.js +9 -0
  24. package/dist/api/services.js.map +1 -0
  25. package/dist/business/accounts.d.ts +38 -0
  26. package/dist/business/accounts.d.ts.map +1 -0
  27. package/dist/business/accounts.js +54 -0
  28. package/dist/business/accounts.js.map +1 -0
  29. package/dist/business/bank-accounts.d.ts +71 -0
  30. package/dist/business/bank-accounts.d.ts.map +1 -0
  31. package/dist/business/bank-accounts.js +70 -0
  32. package/dist/business/bank-accounts.js.map +1 -0
  33. package/dist/business/banking.d.ts +44 -0
  34. package/dist/business/banking.d.ts.map +1 -0
  35. package/dist/business/banking.js +70 -0
  36. package/dist/business/banking.js.map +1 -0
  37. package/dist/business/cache.d.ts +9 -0
  38. package/dist/business/cache.d.ts.map +1 -0
  39. package/dist/business/cache.js +9 -0
  40. package/dist/business/cache.js.map +1 -0
  41. package/dist/business/countries.d.ts +11 -0
  42. package/dist/business/countries.d.ts.map +1 -0
  43. package/dist/business/countries.js +12 -0
  44. package/dist/business/countries.js.map +1 -0
  45. package/dist/business/documents.d.ts +48 -0
  46. package/dist/business/documents.d.ts.map +1 -0
  47. package/dist/business/documents.js +76 -0
  48. package/dist/business/documents.js.map +1 -0
  49. package/dist/business/holdings.d.ts +34 -0
  50. package/dist/business/holdings.d.ts.map +1 -0
  51. package/dist/business/holdings.js +35 -0
  52. package/dist/business/holdings.js.map +1 -0
  53. package/dist/business/index.d.ts +16 -0
  54. package/dist/business/index.d.ts.map +1 -0
  55. package/dist/business/index.js +28 -0
  56. package/dist/business/index.js.map +1 -0
  57. package/dist/business/industries.d.ts +9 -0
  58. package/dist/business/industries.d.ts.map +1 -0
  59. package/dist/business/industries.js +10 -0
  60. package/dist/business/industries.js.map +1 -0
  61. package/dist/business/investments.d.ts +87 -0
  62. package/dist/business/investments.d.ts.map +1 -0
  63. package/dist/business/investments.js +94 -0
  64. package/dist/business/investments.js.map +1 -0
  65. package/dist/business/status/banks.d.ts +29 -0
  66. package/dist/business/status/banks.d.ts.map +1 -0
  67. package/dist/business/status/banks.js +36 -0
  68. package/dist/business/status/banks.js.map +1 -0
  69. package/dist/business/status/cash-accounts.d.ts +56 -0
  70. package/dist/business/status/cash-accounts.d.ts.map +1 -0
  71. package/dist/business/status/cash-accounts.js +63 -0
  72. package/dist/business/status/cash-accounts.js.map +1 -0
  73. package/dist/business/status/documents.d.ts +25 -0
  74. package/dist/business/status/documents.d.ts.map +1 -0
  75. package/dist/business/status/documents.js +35 -0
  76. package/dist/business/status/documents.js.map +1 -0
  77. package/dist/business/status/index.d.ts +11 -0
  78. package/dist/business/status/index.d.ts.map +1 -0
  79. package/dist/business/status/index.js +11 -0
  80. package/dist/business/status/index.js.map +1 -0
  81. package/dist/business/status/instruments.d.ts +42 -0
  82. package/dist/business/status/instruments.d.ts.map +1 -0
  83. package/dist/business/status/instruments.js +56 -0
  84. package/dist/business/status/instruments.js.map +1 -0
  85. package/dist/business/status/portfolios.d.ts +18 -0
  86. package/dist/business/status/portfolios.d.ts.map +1 -0
  87. package/dist/business/status/portfolios.js +22 -0
  88. package/dist/business/status/portfolios.js.map +1 -0
  89. package/dist/business/status/trades.d.ts +89 -0
  90. package/dist/business/status/trades.d.ts.map +1 -0
  91. package/dist/business/status/trades.js +131 -0
  92. package/dist/business/status/trades.js.map +1 -0
  93. package/dist/business/status/withdrawals.d.ts +104 -0
  94. package/dist/business/status/withdrawals.d.ts.map +1 -0
  95. package/dist/business/status/withdrawals.js +154 -0
  96. package/dist/business/status/withdrawals.js.map +1 -0
  97. package/dist/business/trading.d.ts +52 -0
  98. package/dist/business/trading.d.ts.map +1 -0
  99. package/dist/business/trading.js +69 -0
  100. package/dist/business/trading.js.map +1 -0
  101. package/dist/common/index.d.ts +2 -0
  102. package/dist/common/index.d.ts.map +1 -0
  103. package/dist/common/index.js +2 -0
  104. package/dist/common/index.js.map +1 -0
  105. package/dist/common/statuses.d.ts +18 -0
  106. package/dist/common/statuses.d.ts.map +1 -0
  107. package/dist/common/statuses.js +18 -0
  108. package/dist/common/statuses.js.map +1 -0
  109. package/dist/config/defaults.d.ts +68 -0
  110. package/dist/config/defaults.d.ts.map +1 -0
  111. package/dist/config/defaults.js +67 -0
  112. package/dist/config/defaults.js.map +1 -0
  113. package/dist/config/index.d.ts +8 -0
  114. package/dist/config/index.d.ts.map +1 -0
  115. package/dist/config/index.js +8 -0
  116. package/dist/config/index.js.map +1 -0
  117. package/dist/config/pagination.d.ts +28 -0
  118. package/dist/config/pagination.d.ts.map +1 -0
  119. package/dist/config/pagination.js +41 -0
  120. package/dist/config/pagination.js.map +1 -0
  121. package/dist/config/thresholds.d.ts +65 -0
  122. package/dist/config/thresholds.d.ts.map +1 -0
  123. package/dist/config/thresholds.js +83 -0
  124. package/dist/config/thresholds.js.map +1 -0
  125. package/dist/financial/currency.d.ts +38 -0
  126. package/dist/financial/currency.d.ts.map +1 -0
  127. package/dist/financial/currency.js +76 -0
  128. package/dist/financial/currency.js.map +1 -0
  129. package/dist/financial/formatting.d.ts +52 -0
  130. package/dist/financial/formatting.d.ts.map +1 -0
  131. package/dist/financial/formatting.js +50 -0
  132. package/dist/financial/formatting.js.map +1 -0
  133. package/dist/financial/index.d.ts +7 -0
  134. package/dist/financial/index.d.ts.map +1 -0
  135. package/dist/financial/index.js +7 -0
  136. package/dist/financial/index.js.map +1 -0
  137. package/dist/financial/instruments.d.ts +51 -0
  138. package/dist/financial/instruments.d.ts.map +1 -0
  139. package/dist/financial/instruments.js +69 -0
  140. package/dist/financial/instruments.js.map +1 -0
  141. package/dist/index.d.ts +15 -0
  142. package/dist/index.d.ts.map +1 -0
  143. package/dist/index.js +23 -0
  144. package/dist/index.js.map +1 -0
  145. package/dist/ui/cache.d.ts +47 -0
  146. package/dist/ui/cache.d.ts.map +1 -0
  147. package/dist/ui/cache.js +46 -0
  148. package/dist/ui/cache.js.map +1 -0
  149. package/dist/ui/chart-config.d.ts +35 -0
  150. package/dist/ui/chart-config.d.ts.map +1 -0
  151. package/dist/ui/chart-config.js +34 -0
  152. package/dist/ui/chart-config.js.map +1 -0
  153. package/dist/ui/colors.d.ts +53 -0
  154. package/dist/ui/colors.d.ts.map +1 -0
  155. package/dist/ui/colors.js +95 -0
  156. package/dist/ui/colors.js.map +1 -0
  157. package/dist/ui/display.d.ts +69 -0
  158. package/dist/ui/display.d.ts.map +1 -0
  159. package/dist/ui/display.js +81 -0
  160. package/dist/ui/display.js.map +1 -0
  161. package/dist/ui/index.d.ts +13 -0
  162. package/dist/ui/index.d.ts.map +1 -0
  163. package/dist/ui/index.js +13 -0
  164. package/dist/ui/index.js.map +1 -0
  165. package/dist/ui/labels/index.d.ts +20 -0
  166. package/dist/ui/labels/index.d.ts.map +1 -0
  167. package/dist/ui/labels/index.js +24 -0
  168. package/dist/ui/labels/index.js.map +1 -0
  169. package/dist/ui/navigation.d.ts +45 -0
  170. package/dist/ui/navigation.d.ts.map +1 -0
  171. package/dist/ui/navigation.js +48 -0
  172. package/dist/ui/navigation.js.map +1 -0
  173. package/dist/ui/status-colors-unified.d.ts +91 -0
  174. package/dist/ui/status-colors-unified.d.ts.map +1 -0
  175. package/dist/ui/status-colors-unified.js +107 -0
  176. package/dist/ui/status-colors-unified.js.map +1 -0
  177. package/dist/ui/timing.d.ts +26 -0
  178. package/dist/ui/timing.d.ts.map +1 -0
  179. package/dist/ui/timing.js +25 -0
  180. package/dist/ui/timing.js.map +1 -0
  181. package/dist/ui/zIndex.d.ts +80 -0
  182. package/dist/ui/zIndex.d.ts.map +1 -0
  183. package/dist/ui/zIndex.js +78 -0
  184. package/dist/ui/zIndex.js.map +1 -0
  185. package/dist/utilities/common.d.ts +29 -0
  186. package/dist/utilities/common.d.ts.map +1 -0
  187. package/dist/utilities/common.js +29 -0
  188. package/dist/utilities/common.js.map +1 -0
  189. package/dist/utilities/defaults.d.ts +52 -0
  190. package/dist/utilities/defaults.d.ts.map +1 -0
  191. package/dist/utilities/defaults.js +69 -0
  192. package/dist/utilities/defaults.js.map +1 -0
  193. package/dist/utilities/index.d.ts +9 -0
  194. package/dist/utilities/index.d.ts.map +1 -0
  195. package/dist/utilities/index.js +9 -0
  196. package/dist/utilities/index.js.map +1 -0
  197. package/dist/utilities/sorting.d.ts +45 -0
  198. package/dist/utilities/sorting.d.ts.map +1 -0
  199. package/dist/utilities/sorting.js +52 -0
  200. package/dist/utilities/sorting.js.map +1 -0
  201. package/dist/utilities/time.d.ts +53 -0
  202. package/dist/utilities/time.d.ts.map +1 -0
  203. package/dist/utilities/time.js +66 -0
  204. package/dist/utilities/time.js.map +1 -0
  205. package/dist/utilities/validation.d.ts +57 -0
  206. package/dist/utilities/validation.d.ts.map +1 -0
  207. package/dist/utilities/validation.js +66 -0
  208. package/dist/utilities/validation.js.map +1 -0
  209. package/dist/validation/index.d.ts +27 -0
  210. package/dist/validation/index.d.ts.map +1 -0
  211. package/dist/validation/index.js +27 -0
  212. package/dist/validation/index.js.map +1 -0
  213. package/package.json +17 -15
  214. package/README.md +0 -146
@@ -0,0 +1,91 @@
1
+ /**
2
+ * Unified status color mappings
3
+ * Consolidates duplicate color assignments for consistent UI styling
4
+ */
5
+ /**
6
+ * Unified mapping of status states to Tailwind CSS color classes
7
+ * Groups similar states that should have the same visual treatment
8
+ */
9
+ export declare const UNIFIED_STATUS_COLORS: {
10
+ readonly pending: "text-warning-600";
11
+ readonly awaiting: "text-warning-600";
12
+ readonly pending_review: "text-warning-600";
13
+ readonly on_hold: "text-warning-600";
14
+ readonly processing: "text-primary-600";
15
+ readonly in_progress: "text-primary-600";
16
+ readonly active: "text-primary-600";
17
+ readonly completed: "text-success-700";
18
+ readonly approved: "text-success-600";
19
+ readonly executed: "text-success-600";
20
+ readonly settled: "text-success-600";
21
+ readonly success: "text-success-600";
22
+ readonly failed: "text-error-700";
23
+ readonly rejected: "text-error-600";
24
+ readonly error: "text-error-600";
25
+ readonly cancelled: "text-content-subtle";
26
+ readonly expired: "text-content-subtle";
27
+ readonly inactive: "text-content-subtle";
28
+ readonly closed: "text-content-subtle";
29
+ readonly default: "text-content-subtle";
30
+ };
31
+ export type StatusColorKey = keyof typeof UNIFIED_STATUS_COLORS;
32
+ export type StatusColorValue = (typeof UNIFIED_STATUS_COLORS)[StatusColorKey];
33
+ /**
34
+ * Get color class for a status
35
+ * @param status - The status key (lowercase)
36
+ * @returns The Tailwind CSS color class
37
+ */
38
+ export declare const getStatusColor: (status: string) => string;
39
+ /**
40
+ * Background color variants for status states
41
+ * Uses lighter shades for backgrounds
42
+ */
43
+ export declare const UNIFIED_STATUS_BG_COLORS: {
44
+ readonly pending: "bg-warning-50";
45
+ readonly awaiting: "bg-warning-50";
46
+ readonly pending_review: "bg-warning-50";
47
+ readonly on_hold: "bg-warning-50";
48
+ readonly processing: "bg-primary-50";
49
+ readonly in_progress: "bg-primary-50";
50
+ readonly active: "bg-primary-50";
51
+ readonly completed: "bg-success-50";
52
+ readonly approved: "bg-success-50";
53
+ readonly executed: "bg-success-50";
54
+ readonly settled: "bg-success-50";
55
+ readonly success: "bg-success-50";
56
+ readonly failed: "bg-error-50";
57
+ readonly rejected: "bg-error-50";
58
+ readonly error: "bg-error-50";
59
+ readonly cancelled: "bg-gray-50";
60
+ readonly expired: "bg-gray-50";
61
+ readonly inactive: "bg-gray-50";
62
+ readonly closed: "bg-gray-50";
63
+ readonly default: "bg-gray-50";
64
+ };
65
+ /**
66
+ * Badge color combinations (background + text)
67
+ * For use in status badges and pills
68
+ */
69
+ export declare const UNIFIED_STATUS_BADGE_COLORS: {
70
+ readonly pending: "bg-warning-100 text-warning-700";
71
+ readonly awaiting: "bg-warning-100 text-warning-700";
72
+ readonly pending_review: "bg-warning-100 text-warning-700";
73
+ readonly on_hold: "bg-warning-100 text-warning-700";
74
+ readonly processing: "bg-primary-100 text-primary-700";
75
+ readonly in_progress: "bg-primary-100 text-primary-700";
76
+ readonly active: "bg-primary-100 text-primary-700";
77
+ readonly completed: "bg-success-100 text-success-700";
78
+ readonly approved: "bg-success-100 text-success-700";
79
+ readonly executed: "bg-success-100 text-success-700";
80
+ readonly settled: "bg-success-100 text-success-700";
81
+ readonly success: "bg-success-100 text-success-700";
82
+ readonly failed: "bg-error-100 text-error-700";
83
+ readonly rejected: "bg-error-100 text-error-700";
84
+ readonly error: "bg-error-100 text-error-700";
85
+ readonly cancelled: "bg-gray-100 text-gray-700";
86
+ readonly expired: "bg-gray-100 text-gray-700";
87
+ readonly inactive: "bg-gray-100 text-gray-700";
88
+ readonly closed: "bg-gray-100 text-gray-700";
89
+ readonly default: "bg-gray-100 text-gray-700";
90
+ };
91
+ //# sourceMappingURL=status-colors-unified.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"status-colors-unified.d.ts","sourceRoot":"","sources":["../../src/ui/status-colors-unified.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH;;;GAGG;AACH,eAAO,MAAM,qBAAqB;;;;;;;;;;;;;;;;;;;;;CA8BxB,CAAC;AAEX,MAAM,MAAM,cAAc,GAAG,MAAM,OAAO,qBAAqB,CAAC;AAChE,MAAM,MAAM,gBAAgB,GAAG,CAAC,OAAO,qBAAqB,CAAC,CAAC,cAAc,CAAC,CAAC;AAE9E;;;;GAIG;AACH,eAAO,MAAM,cAAc,GAAI,QAAQ,MAAM,KAAG,MAG/C,CAAC;AAEF;;;GAGG;AACH,eAAO,MAAM,wBAAwB;;;;;;;;;;;;;;;;;;;;;CA8B3B,CAAC;AAEX;;;GAGG;AACH,eAAO,MAAM,2BAA2B;;;;;;;;;;;;;;;;;;;;;CA8B9B,CAAC"}
@@ -0,0 +1,107 @@
1
+ /**
2
+ * Unified status color mappings
3
+ * Consolidates duplicate color assignments for consistent UI styling
4
+ */
5
+ /**
6
+ * Unified mapping of status states to Tailwind CSS color classes
7
+ * Groups similar states that should have the same visual treatment
8
+ */
9
+ export const UNIFIED_STATUS_COLORS = {
10
+ // Pending/Waiting states - Warning color (amber/yellow)
11
+ pending: 'text-warning-600',
12
+ awaiting: 'text-warning-600',
13
+ pending_review: 'text-warning-600',
14
+ on_hold: 'text-warning-600',
15
+ // Processing/Active states - Primary color (blue)
16
+ processing: 'text-primary-600',
17
+ in_progress: 'text-primary-600',
18
+ active: 'text-primary-600',
19
+ // Success states - Success color (green)
20
+ completed: 'text-success-700',
21
+ approved: 'text-success-600',
22
+ executed: 'text-success-600',
23
+ settled: 'text-success-600',
24
+ success: 'text-success-600',
25
+ // Error states - Error color (red)
26
+ failed: 'text-error-700',
27
+ rejected: 'text-error-600',
28
+ error: 'text-error-600',
29
+ // Neutral/Cancelled states - Subtle color (gray)
30
+ cancelled: 'text-content-subtle',
31
+ expired: 'text-content-subtle',
32
+ inactive: 'text-content-subtle',
33
+ closed: 'text-content-subtle',
34
+ default: 'text-content-subtle',
35
+ };
36
+ /**
37
+ * Get color class for a status
38
+ * @param status - The status key (lowercase)
39
+ * @returns The Tailwind CSS color class
40
+ */
41
+ export const getStatusColor = (status) => {
42
+ const normalizedStatus = status.toLowerCase().replace(/_/g, '_');
43
+ return UNIFIED_STATUS_COLORS[normalizedStatus] || UNIFIED_STATUS_COLORS.default;
44
+ };
45
+ /**
46
+ * Background color variants for status states
47
+ * Uses lighter shades for backgrounds
48
+ */
49
+ export const UNIFIED_STATUS_BG_COLORS = {
50
+ // Pending/Waiting states
51
+ pending: 'bg-warning-50',
52
+ awaiting: 'bg-warning-50',
53
+ pending_review: 'bg-warning-50',
54
+ on_hold: 'bg-warning-50',
55
+ // Processing/Active states
56
+ processing: 'bg-primary-50',
57
+ in_progress: 'bg-primary-50',
58
+ active: 'bg-primary-50',
59
+ // Success states
60
+ completed: 'bg-success-50',
61
+ approved: 'bg-success-50',
62
+ executed: 'bg-success-50',
63
+ settled: 'bg-success-50',
64
+ success: 'bg-success-50',
65
+ // Error states
66
+ failed: 'bg-error-50',
67
+ rejected: 'bg-error-50',
68
+ error: 'bg-error-50',
69
+ // Neutral/Cancelled states
70
+ cancelled: 'bg-gray-50',
71
+ expired: 'bg-gray-50',
72
+ inactive: 'bg-gray-50',
73
+ closed: 'bg-gray-50',
74
+ default: 'bg-gray-50',
75
+ };
76
+ /**
77
+ * Badge color combinations (background + text)
78
+ * For use in status badges and pills
79
+ */
80
+ export const UNIFIED_STATUS_BADGE_COLORS = {
81
+ // Pending/Waiting states
82
+ pending: 'bg-warning-100 text-warning-700',
83
+ awaiting: 'bg-warning-100 text-warning-700',
84
+ pending_review: 'bg-warning-100 text-warning-700',
85
+ on_hold: 'bg-warning-100 text-warning-700',
86
+ // Processing/Active states
87
+ processing: 'bg-primary-100 text-primary-700',
88
+ in_progress: 'bg-primary-100 text-primary-700',
89
+ active: 'bg-primary-100 text-primary-700',
90
+ // Success states
91
+ completed: 'bg-success-100 text-success-700',
92
+ approved: 'bg-success-100 text-success-700',
93
+ executed: 'bg-success-100 text-success-700',
94
+ settled: 'bg-success-100 text-success-700',
95
+ success: 'bg-success-100 text-success-700',
96
+ // Error states
97
+ failed: 'bg-error-100 text-error-700',
98
+ rejected: 'bg-error-100 text-error-700',
99
+ error: 'bg-error-100 text-error-700',
100
+ // Neutral/Cancelled states
101
+ cancelled: 'bg-gray-100 text-gray-700',
102
+ expired: 'bg-gray-100 text-gray-700',
103
+ inactive: 'bg-gray-100 text-gray-700',
104
+ closed: 'bg-gray-100 text-gray-700',
105
+ default: 'bg-gray-100 text-gray-700',
106
+ };
107
+ //# sourceMappingURL=status-colors-unified.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"status-colors-unified.js","sourceRoot":"","sources":["../../src/ui/status-colors-unified.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH;;;GAGG;AACH,MAAM,CAAC,MAAM,qBAAqB,GAAG;IACnC,wDAAwD;IACxD,OAAO,EAAE,kBAAkB;IAC3B,QAAQ,EAAE,kBAAkB;IAC5B,cAAc,EAAE,kBAAkB;IAClC,OAAO,EAAE,kBAAkB;IAE3B,kDAAkD;IAClD,UAAU,EAAE,kBAAkB;IAC9B,WAAW,EAAE,kBAAkB;IAC/B,MAAM,EAAE,kBAAkB;IAE1B,yCAAyC;IACzC,SAAS,EAAE,kBAAkB;IAC7B,QAAQ,EAAE,kBAAkB;IAC5B,QAAQ,EAAE,kBAAkB;IAC5B,OAAO,EAAE,kBAAkB;IAC3B,OAAO,EAAE,kBAAkB;IAE3B,mCAAmC;IACnC,MAAM,EAAE,gBAAgB;IACxB,QAAQ,EAAE,gBAAgB;IAC1B,KAAK,EAAE,gBAAgB;IAEvB,iDAAiD;IACjD,SAAS,EAAE,qBAAqB;IAChC,OAAO,EAAE,qBAAqB;IAC9B,QAAQ,EAAE,qBAAqB;IAC/B,MAAM,EAAE,qBAAqB;IAC7B,OAAO,EAAE,qBAAqB;CACtB,CAAC;AAKX;;;;GAIG;AACH,MAAM,CAAC,MAAM,cAAc,GAAG,CAAC,MAAc,EAAU,EAAE;IACvD,MAAM,gBAAgB,GAAG,MAAM,CAAC,WAAW,EAAE,CAAC,OAAO,CAAC,IAAI,EAAE,GAAG,CAAC,CAAC;IACjE,OAAO,qBAAqB,CAAC,gBAAkC,CAAC,IAAI,qBAAqB,CAAC,OAAO,CAAC;AACpG,CAAC,CAAC;AAEF;;;GAGG;AACH,MAAM,CAAC,MAAM,wBAAwB,GAAG;IACtC,yBAAyB;IACzB,OAAO,EAAE,eAAe;IACxB,QAAQ,EAAE,eAAe;IACzB,cAAc,EAAE,eAAe;IAC/B,OAAO,EAAE,eAAe;IAExB,2BAA2B;IAC3B,UAAU,EAAE,eAAe;IAC3B,WAAW,EAAE,eAAe;IAC5B,MAAM,EAAE,eAAe;IAEvB,iBAAiB;IACjB,SAAS,EAAE,eAAe;IAC1B,QAAQ,EAAE,eAAe;IACzB,QAAQ,EAAE,eAAe;IACzB,OAAO,EAAE,eAAe;IACxB,OAAO,EAAE,eAAe;IAExB,eAAe;IACf,MAAM,EAAE,aAAa;IACrB,QAAQ,EAAE,aAAa;IACvB,KAAK,EAAE,aAAa;IAEpB,2BAA2B;IAC3B,SAAS,EAAE,YAAY;IACvB,OAAO,EAAE,YAAY;IACrB,QAAQ,EAAE,YAAY;IACtB,MAAM,EAAE,YAAY;IACpB,OAAO,EAAE,YAAY;CACb,CAAC;AAEX;;;GAGG;AACH,MAAM,CAAC,MAAM,2BAA2B,GAAG;IACzC,yBAAyB;IACzB,OAAO,EAAE,iCAAiC;IAC1C,QAAQ,EAAE,iCAAiC;IAC3C,cAAc,EAAE,iCAAiC;IACjD,OAAO,EAAE,iCAAiC;IAE1C,2BAA2B;IAC3B,UAAU,EAAE,iCAAiC;IAC7C,WAAW,EAAE,iCAAiC;IAC9C,MAAM,EAAE,iCAAiC;IAEzC,iBAAiB;IACjB,SAAS,EAAE,iCAAiC;IAC5C,QAAQ,EAAE,iCAAiC;IAC3C,QAAQ,EAAE,iCAAiC;IAC3C,OAAO,EAAE,iCAAiC;IAC1C,OAAO,EAAE,iCAAiC;IAE1C,eAAe;IACf,MAAM,EAAE,6BAA6B;IACrC,QAAQ,EAAE,6BAA6B;IACvC,KAAK,EAAE,6BAA6B;IAEpC,2BAA2B;IAC3B,SAAS,EAAE,2BAA2B;IACtC,OAAO,EAAE,2BAA2B;IACpC,QAAQ,EAAE,2BAA2B;IACrC,MAAM,EAAE,2BAA2B;IACnC,OAAO,EAAE,2BAA2B;CAC5B,CAAC"}
@@ -0,0 +1,26 @@
1
+ /**
2
+ * UI timing constants for animations, transitions, and delays
3
+ */
4
+ export declare const UI_TIMING: {
5
+ /**
6
+ * Tooltip delay in milliseconds
7
+ */
8
+ readonly TOOLTIP_DELAY: 300;
9
+ /**
10
+ * Animation durations
11
+ */
12
+ readonly ANIMATION_FAST: 150;
13
+ readonly ANIMATION_NORMAL: 200;
14
+ readonly ANIMATION_SLOW: 300;
15
+ /**
16
+ * Transition durations
17
+ */
18
+ readonly TRANSITION_FAST: 150;
19
+ readonly TRANSITION_NORMAL: 200;
20
+ /**
21
+ * Debounce delay for user input
22
+ */
23
+ readonly DEBOUNCE_DELAY: 300;
24
+ };
25
+ export type UITiming = typeof UI_TIMING;
26
+ //# sourceMappingURL=timing.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"timing.d.ts","sourceRoot":"","sources":["../../src/ui/timing.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,eAAO,MAAM,SAAS;IACpB;;OAEG;;IAGH;;OAEG;;;;IAKH;;OAEG;;;IAIH;;OAEG;;CAEK,CAAC;AAEX,MAAM,MAAM,QAAQ,GAAG,OAAO,SAAS,CAAC"}
@@ -0,0 +1,25 @@
1
+ /**
2
+ * UI timing constants for animations, transitions, and delays
3
+ */
4
+ export const UI_TIMING = {
5
+ /**
6
+ * Tooltip delay in milliseconds
7
+ */
8
+ TOOLTIP_DELAY: 300,
9
+ /**
10
+ * Animation durations
11
+ */
12
+ ANIMATION_FAST: 150,
13
+ ANIMATION_NORMAL: 200,
14
+ ANIMATION_SLOW: 300,
15
+ /**
16
+ * Transition durations
17
+ */
18
+ TRANSITION_FAST: 150,
19
+ TRANSITION_NORMAL: 200,
20
+ /**
21
+ * Debounce delay for user input
22
+ */
23
+ DEBOUNCE_DELAY: 300,
24
+ };
25
+ //# sourceMappingURL=timing.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"timing.js","sourceRoot":"","sources":["../../src/ui/timing.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,MAAM,CAAC,MAAM,SAAS,GAAG;IACvB;;OAEG;IACH,aAAa,EAAE,GAAG;IAElB;;OAEG;IACH,cAAc,EAAE,GAAG;IACnB,gBAAgB,EAAE,GAAG;IACrB,cAAc,EAAE,GAAG;IAEnB;;OAEG;IACH,eAAe,EAAE,GAAG;IACpB,iBAAiB,EAAE,GAAG;IAEtB;;OAEG;IACH,cAAc,EAAE,GAAG;CACX,CAAC"}
@@ -0,0 +1,80 @@
1
+ /**
2
+ * Z-index system for consistent layering across the application
3
+ */
4
+ /**
5
+ * Base z-index values for different UI layers
6
+ */
7
+ export declare const Z_INDEX: {
8
+ /**
9
+ * Base level - normal document flow
10
+ */
11
+ readonly BASE: 0;
12
+ /**
13
+ * Dropdowns, select menus
14
+ */
15
+ readonly DROPDOWN: 10;
16
+ /**
17
+ * Sticky headers, toolbars
18
+ */
19
+ readonly STICKY: 20;
20
+ /**
21
+ * Fixed elements like floating buttons
22
+ */
23
+ readonly FIXED: 30;
24
+ /**
25
+ * Modal backdrops/overlays
26
+ */
27
+ readonly MODAL_BACKDROP: 40;
28
+ /**
29
+ * Modal content
30
+ */
31
+ readonly MODAL: 50;
32
+ /**
33
+ * Popovers, floating UI elements
34
+ */
35
+ readonly POPOVER: 60;
36
+ /**
37
+ * Tooltips - should appear above most content
38
+ */
39
+ readonly TOOLTIP: 70;
40
+ /**
41
+ * Notifications, toasts
42
+ */
43
+ readonly NOTIFICATION: 80;
44
+ /**
45
+ * Maximum z-index for critical overlays
46
+ */
47
+ readonly MAX: 9999;
48
+ };
49
+ /**
50
+ * Semantic z-index aliases for specific components
51
+ */
52
+ export declare const Z_INDEX_SEMANTIC: {
53
+ /**
54
+ * Table sticky headers
55
+ */
56
+ readonly TABLE_HEADER: 10;
57
+ /**
58
+ * Navigation overlay/mobile menu
59
+ */
60
+ readonly NAVIGATION_OVERLAY: 50;
61
+ /**
62
+ * Dialog components
63
+ */
64
+ readonly DIALOG: 50;
65
+ /**
66
+ * Menu trigger buttons
67
+ */
68
+ readonly MENU_BUTTON: 20;
69
+ /**
70
+ * Menu panels/dropdowns
71
+ */
72
+ readonly MENU_PANEL: 30;
73
+ /**
74
+ * General backdrop/overlay
75
+ */
76
+ readonly BACKDROP: 10;
77
+ };
78
+ export type ZIndex = typeof Z_INDEX;
79
+ export type ZIndexSemantic = typeof Z_INDEX_SEMANTIC;
80
+ //# sourceMappingURL=zIndex.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"zIndex.d.ts","sourceRoot":"","sources":["../../src/ui/zIndex.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH;;GAEG;AACH,eAAO,MAAM,OAAO;IAClB;;OAEG;;IAGH;;OAEG;;IAGH;;OAEG;;IAGH;;OAEG;;IAGH;;OAEG;;IAGH;;OAEG;;IAGH;;OAEG;;IAGH;;OAEG;;IAGH;;OAEG;;IAGH;;OAEG;;CAEK,CAAC;AAEX;;GAEG;AACH,eAAO,MAAM,gBAAgB;IAC3B;;OAEG;;IAGH;;OAEG;;IAGH;;OAEG;;IAGH;;OAEG;;IAGH;;OAEG;;IAGH;;OAEG;;CAEK,CAAC;AAEX,MAAM,MAAM,MAAM,GAAG,OAAO,OAAO,CAAC;AACpC,MAAM,MAAM,cAAc,GAAG,OAAO,gBAAgB,CAAC"}
@@ -0,0 +1,78 @@
1
+ /**
2
+ * Z-index system for consistent layering across the application
3
+ */
4
+ /**
5
+ * Base z-index values for different UI layers
6
+ */
7
+ export const Z_INDEX = {
8
+ /**
9
+ * Base level - normal document flow
10
+ */
11
+ BASE: 0,
12
+ /**
13
+ * Dropdowns, select menus
14
+ */
15
+ DROPDOWN: 10,
16
+ /**
17
+ * Sticky headers, toolbars
18
+ */
19
+ STICKY: 20,
20
+ /**
21
+ * Fixed elements like floating buttons
22
+ */
23
+ FIXED: 30,
24
+ /**
25
+ * Modal backdrops/overlays
26
+ */
27
+ MODAL_BACKDROP: 40,
28
+ /**
29
+ * Modal content
30
+ */
31
+ MODAL: 50,
32
+ /**
33
+ * Popovers, floating UI elements
34
+ */
35
+ POPOVER: 60,
36
+ /**
37
+ * Tooltips - should appear above most content
38
+ */
39
+ TOOLTIP: 70,
40
+ /**
41
+ * Notifications, toasts
42
+ */
43
+ NOTIFICATION: 80,
44
+ /**
45
+ * Maximum z-index for critical overlays
46
+ */
47
+ MAX: 9999,
48
+ };
49
+ /**
50
+ * Semantic z-index aliases for specific components
51
+ */
52
+ export const Z_INDEX_SEMANTIC = {
53
+ /**
54
+ * Table sticky headers
55
+ */
56
+ TABLE_HEADER: Z_INDEX.DROPDOWN,
57
+ /**
58
+ * Navigation overlay/mobile menu
59
+ */
60
+ NAVIGATION_OVERLAY: Z_INDEX.MODAL,
61
+ /**
62
+ * Dialog components
63
+ */
64
+ DIALOG: Z_INDEX.MODAL,
65
+ /**
66
+ * Menu trigger buttons
67
+ */
68
+ MENU_BUTTON: Z_INDEX.STICKY,
69
+ /**
70
+ * Menu panels/dropdowns
71
+ */
72
+ MENU_PANEL: Z_INDEX.FIXED,
73
+ /**
74
+ * General backdrop/overlay
75
+ */
76
+ BACKDROP: Z_INDEX.DROPDOWN,
77
+ };
78
+ //# sourceMappingURL=zIndex.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"zIndex.js","sourceRoot":"","sources":["../../src/ui/zIndex.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH;;GAEG;AACH,MAAM,CAAC,MAAM,OAAO,GAAG;IACrB;;OAEG;IACH,IAAI,EAAE,CAAC;IAEP;;OAEG;IACH,QAAQ,EAAE,EAAE;IAEZ;;OAEG;IACH,MAAM,EAAE,EAAE;IAEV;;OAEG;IACH,KAAK,EAAE,EAAE;IAET;;OAEG;IACH,cAAc,EAAE,EAAE;IAElB;;OAEG;IACH,KAAK,EAAE,EAAE;IAET;;OAEG;IACH,OAAO,EAAE,EAAE;IAEX;;OAEG;IACH,OAAO,EAAE,EAAE;IAEX;;OAEG;IACH,YAAY,EAAE,EAAE;IAEhB;;OAEG;IACH,GAAG,EAAE,IAAI;CACD,CAAC;AAEX;;GAEG;AACH,MAAM,CAAC,MAAM,gBAAgB,GAAG;IAC9B;;OAEG;IACH,YAAY,EAAE,OAAO,CAAC,QAAQ;IAE9B;;OAEG;IACH,kBAAkB,EAAE,OAAO,CAAC,KAAK;IAEjC;;OAEG;IACH,MAAM,EAAE,OAAO,CAAC,KAAK;IAErB;;OAEG;IACH,WAAW,EAAE,OAAO,CAAC,MAAM;IAE3B;;OAEG;IACH,UAAU,EAAE,OAAO,CAAC,KAAK;IAEzB;;OAEG;IACH,QAAQ,EAAE,OAAO,CAAC,QAAQ;CAClB,CAAC"}
@@ -0,0 +1,29 @@
1
+ /**
2
+ * Common shared constants
3
+ * These match the constants from Blueberry's src/constants/common.ts
4
+ */
5
+ export declare const DECIMAL_PLACES: 2;
6
+ export declare const DEFAULT_NUMERIC_ZERO: 0;
7
+ export declare const DEFAULT_EMPTY_STRING: "";
8
+ export declare const QUANTITY_FORMAT_THRESHOLD_MILLION: 1000000;
9
+ export declare const QUANTITY_FORMAT_THRESHOLD_THOUSAND: 1000;
10
+ export declare const ERROR_TYPE_BUSINESS_LOGIC = "business_logic";
11
+ export declare const ERROR_TYPE_PERMISSION = "permission";
12
+ export declare const ERROR_TYPE_SERVER = "server";
13
+ export declare const LOCALE_AUSTRALIA: "en-AU";
14
+ export declare const NUMBER_FORMAT_OPTIONS_CURRENCY: {
15
+ readonly style: "currency";
16
+ readonly minimumFractionDigits: 2;
17
+ readonly maximumFractionDigits: 2;
18
+ };
19
+ export declare const NUMBER_FORMAT_OPTIONS_CURRENCY_SIGNED: {
20
+ readonly style: "currency";
21
+ readonly minimumFractionDigits: 2;
22
+ readonly maximumFractionDigits: 2;
23
+ readonly signDisplay: "always";
24
+ };
25
+ export declare const QUERY_PARAM_ORDER_BY = "order_by";
26
+ export declare const ORDER_BY_CREATED_AT = "created_at";
27
+ export declare const DEFAULT_UNKNOWN_VALUE: "Unknown";
28
+ export declare const DEFAULT_ERROR_MESSAGE: "An error occurred";
29
+ //# sourceMappingURL=common.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"common.d.ts","sourceRoot":"","sources":["../../src/utilities/common.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAKH,eAAO,MAAM,cAAc,GAAqC,CAAC;AAGjE,eAAO,MAAM,oBAAoB,GAAuB,CAAC;AACzD,eAAO,MAAM,oBAAoB,IAAwB,CAAC;AAG1D,eAAO,MAAM,iCAAiC,SAA4B,CAAC;AAC3E,eAAO,MAAM,kCAAkC,MAA6B,CAAC;AAG7E,eAAO,MAAM,yBAAyB,mBAAmB,CAAC;AAC1D,eAAO,MAAM,qBAAqB,eAAe,CAAC;AAClD,eAAO,MAAM,iBAAiB,WAAW,CAAC;AAG1C,eAAO,MAAM,gBAAgB,SAAwB,CAAC;AAGtD,eAAO,MAAM,8BAA8B;;;;CAAkC,CAAC;AAE9E,eAAO,MAAM,qCAAqC;;;;;CAAyC,CAAC;AAG5F,eAAO,MAAM,oBAAoB,aAAa,CAAC;AAC/C,eAAO,MAAM,mBAAmB,eAAe,CAAC;AAGhD,eAAO,MAAM,qBAAqB,WAA0B,CAAC;AAC7D,eAAO,MAAM,qBAAqB,qBAAgC,CAAC"}
@@ -0,0 +1,29 @@
1
+ /**
2
+ * Common shared constants
3
+ * These match the constants from Blueberry's src/constants/common.ts
4
+ */
5
+ import { COMMON_THRESHOLDS, DEFAULT_STRINGS, DEFAULT_NUMBERS, LOCALE_CONFIG, DEFAULT_FORMAT_OPTIONS } from '../config';
6
+ // Number formatting
7
+ export const DECIMAL_PLACES = COMMON_THRESHOLDS.DEFAULT_DECIMALS;
8
+ // Default numeric values
9
+ export const DEFAULT_NUMERIC_ZERO = DEFAULT_NUMBERS.ZERO;
10
+ export const DEFAULT_EMPTY_STRING = DEFAULT_STRINGS.EMPTY;
11
+ // Quantity formatting thresholds
12
+ export const QUANTITY_FORMAT_THRESHOLD_MILLION = COMMON_THRESHOLDS.MILLION;
13
+ export const QUANTITY_FORMAT_THRESHOLD_THOUSAND = COMMON_THRESHOLDS.THOUSAND;
14
+ // Error types
15
+ export const ERROR_TYPE_BUSINESS_LOGIC = 'business_logic';
16
+ export const ERROR_TYPE_PERMISSION = 'permission';
17
+ export const ERROR_TYPE_SERVER = 'server';
18
+ // Locale and formatting constants
19
+ export const LOCALE_AUSTRALIA = LOCALE_CONFIG.DEFAULT;
20
+ // Number formatting options
21
+ export const NUMBER_FORMAT_OPTIONS_CURRENCY = DEFAULT_FORMAT_OPTIONS.CURRENCY;
22
+ export const NUMBER_FORMAT_OPTIONS_CURRENCY_SIGNED = DEFAULT_FORMAT_OPTIONS.CURRENCY_SIGNED;
23
+ // Query parameter constants
24
+ export const QUERY_PARAM_ORDER_BY = 'order_by';
25
+ export const ORDER_BY_CREATED_AT = 'created_at';
26
+ // Default strings for auth
27
+ export const DEFAULT_UNKNOWN_VALUE = DEFAULT_STRINGS.UNKNOWN;
28
+ export const DEFAULT_ERROR_MESSAGE = DEFAULT_STRINGS.ERROR_MESSAGE;
29
+ //# sourceMappingURL=common.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"common.js","sourceRoot":"","sources":["../../src/utilities/common.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,EAAE,iBAAiB,EAAE,eAAe,EAAE,eAAe,EAAE,aAAa,EAAE,sBAAsB,EAAE,MAAM,WAAW,CAAC;AAEvH,oBAAoB;AACpB,MAAM,CAAC,MAAM,cAAc,GAAG,iBAAiB,CAAC,gBAAgB,CAAC;AAEjE,yBAAyB;AACzB,MAAM,CAAC,MAAM,oBAAoB,GAAG,eAAe,CAAC,IAAI,CAAC;AACzD,MAAM,CAAC,MAAM,oBAAoB,GAAG,eAAe,CAAC,KAAK,CAAC;AAE1D,iCAAiC;AACjC,MAAM,CAAC,MAAM,iCAAiC,GAAG,iBAAiB,CAAC,OAAO,CAAC;AAC3E,MAAM,CAAC,MAAM,kCAAkC,GAAG,iBAAiB,CAAC,QAAQ,CAAC;AAE7E,cAAc;AACd,MAAM,CAAC,MAAM,yBAAyB,GAAG,gBAAgB,CAAC;AAC1D,MAAM,CAAC,MAAM,qBAAqB,GAAG,YAAY,CAAC;AAClD,MAAM,CAAC,MAAM,iBAAiB,GAAG,QAAQ,CAAC;AAE1C,kCAAkC;AAClC,MAAM,CAAC,MAAM,gBAAgB,GAAG,aAAa,CAAC,OAAO,CAAC;AAEtD,4BAA4B;AAC5B,MAAM,CAAC,MAAM,8BAA8B,GAAG,sBAAsB,CAAC,QAAQ,CAAC;AAE9E,MAAM,CAAC,MAAM,qCAAqC,GAAG,sBAAsB,CAAC,eAAe,CAAC;AAE5F,4BAA4B;AAC5B,MAAM,CAAC,MAAM,oBAAoB,GAAG,UAAU,CAAC;AAC/C,MAAM,CAAC,MAAM,mBAAmB,GAAG,YAAY,CAAC;AAEhD,2BAA2B;AAC3B,MAAM,CAAC,MAAM,qBAAqB,GAAG,eAAe,CAAC,OAAO,CAAC;AAC7D,MAAM,CAAC,MAAM,qBAAqB,GAAG,eAAe,CAAC,aAAa,CAAC"}
@@ -0,0 +1,52 @@
1
+ /**
2
+ * Default values and common constants
3
+ */
4
+ export declare const DEFAULT_VALUES: {
5
+ readonly ZERO: "0";
6
+ readonly EMPTY_STRING: "";
7
+ readonly UNKNOWN: "UNKNOWN";
8
+ readonly NOT_APPLICABLE: "N/A";
9
+ readonly NULL_UUID: "00000000-0000-0000-0000-000000000000";
10
+ };
11
+ export declare const NUMERIC_DEFAULTS: {
12
+ readonly MIN_AMOUNT: 0;
13
+ readonly MAX_AMOUNT: 999999999.99;
14
+ readonly DEFAULT_PRECISION: 2;
15
+ readonly PERCENTAGE_PRECISION: 2;
16
+ readonly QUANTITY_PRECISION: 6;
17
+ };
18
+ export declare const PAGINATION_DEFAULTS: {
19
+ readonly PAGE: 1;
20
+ readonly PAGE_SIZE: 20;
21
+ readonly MIN_PAGE_SIZE: 1;
22
+ readonly MAX_PAGE_SIZE: 100;
23
+ readonly PAGE_SIZE_OPTIONS: readonly [10, 20, 50, 100];
24
+ };
25
+ export declare const THRESHOLDS: {
26
+ readonly MIN_PORTFOLIO_VALUE: 1000;
27
+ readonly MIN_TRADE_AMOUNT: 10;
28
+ readonly MIN_WITHDRAWAL_AMOUNT: 100;
29
+ readonly MAX_PORTFOLIOS_PER_USER: 10;
30
+ readonly MAX_TRADES_PER_DAY: 100;
31
+ };
32
+ export declare const DISPLAY_LIMITS: {
33
+ readonly MAX_NAME_LENGTH: 100;
34
+ readonly MAX_DESCRIPTION_LENGTH: 500;
35
+ readonly MAX_NOTES_LENGTH: 1000;
36
+ readonly MAX_FILE_SIZE_MB: 10;
37
+ readonly MAX_FILE_NAME_LENGTH: 255;
38
+ readonly DASHBOARD_RECENT_TRADES: 5;
39
+ readonly DASHBOARD_TARGET_TRADES: 5;
40
+ readonly DASHBOARD_TRANSACTIONS: 5;
41
+ readonly DASHBOARD_WITHDRAWALS: 5;
42
+ readonly DEFAULT_PAGE_SIZE: 20;
43
+ readonly PAGE_SIZE_OPTIONS: readonly [10, 20, 50, 100];
44
+ readonly AUTOCOMPLETE_MAX_RESULTS: 10;
45
+ readonly RECENT_SEARCHES_MAX: 5;
46
+ };
47
+ export declare const ALLOCATION_DEFAULTS: {
48
+ readonly DEFAULT_PERCENTAGE: 10;
49
+ readonly PERCENTAGE_PRECISION: 0.01;
50
+ readonly TARGET_TOTAL: 100;
51
+ };
52
+ //# sourceMappingURL=defaults.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"defaults.d.ts","sourceRoot":"","sources":["../../src/utilities/defaults.ts"],"names":[],"mappings":"AAAA;;GAEG;AAYH,eAAO,MAAM,cAAc;;;;;;CAMjB,CAAC;AAIX,eAAO,MAAM,gBAAgB;;;;;;CAMnB,CAAC;AAIX,eAAO,MAAM,mBAAmB;;;;;;CAMtB,CAAC;AAIX,eAAO,MAAM,UAAU;;;;;;CAMb,CAAC;AAIX,eAAO,MAAM,cAAc;;;;;;;;;;;;;;CAiBjB,CAAC;AAIX,eAAO,MAAM,mBAAmB;;;;CAItB,CAAC"}
@@ -0,0 +1,69 @@
1
+ /**
2
+ * Default values and common constants
3
+ */
4
+ import { DEFAULT_STRINGS, DEFAULT_NUMBERS, PAGINATION_CONFIG, COMMON_THRESHOLDS, CONFIG_ALLOCATION_DEFAULTS, } from '../config';
5
+ // Default values
6
+ // Now references consolidated defaults
7
+ export const DEFAULT_VALUES = {
8
+ ZERO: DEFAULT_STRINGS.ZERO,
9
+ EMPTY_STRING: DEFAULT_STRINGS.EMPTY,
10
+ UNKNOWN: 'UNKNOWN', // Different from DEFAULT_STRINGS.UNKNOWN ('Unknown')
11
+ NOT_APPLICABLE: DEFAULT_STRINGS.NOT_APPLICABLE,
12
+ NULL_UUID: DEFAULT_STRINGS.NULL_UUID,
13
+ };
14
+ // Numeric defaults
15
+ // Now references consolidated thresholds
16
+ export const NUMERIC_DEFAULTS = {
17
+ MIN_AMOUNT: DEFAULT_NUMBERS.ZERO,
18
+ MAX_AMOUNT: 999999999.99, // Keep specific value
19
+ DEFAULT_PRECISION: DEFAULT_NUMBERS.PRECISION,
20
+ PERCENTAGE_PRECISION: DEFAULT_NUMBERS.PERCENTAGE_PRECISION,
21
+ QUANTITY_PRECISION: DEFAULT_NUMBERS.QUANTITY_PRECISION,
22
+ };
23
+ // Pagination defaults
24
+ // @deprecated Use PAGINATION_CONFIG from config/pagination instead
25
+ export const PAGINATION_DEFAULTS = {
26
+ PAGE: PAGINATION_CONFIG.DEFAULT_PAGE,
27
+ PAGE_SIZE: PAGINATION_CONFIG.DEFAULT_PAGE_SIZE,
28
+ MIN_PAGE_SIZE: PAGINATION_CONFIG.MIN_PAGE_SIZE,
29
+ MAX_PAGE_SIZE: PAGINATION_CONFIG.MAX_PAGE_SIZE,
30
+ PAGE_SIZE_OPTIONS: PAGINATION_CONFIG.PAGE_SIZE_OPTIONS,
31
+ };
32
+ // Common thresholds
33
+ // Now references consolidated thresholds
34
+ export const THRESHOLDS = {
35
+ MIN_PORTFOLIO_VALUE: COMMON_THRESHOLDS.MIN_PORTFOLIO_VALUE,
36
+ MIN_TRADE_AMOUNT: COMMON_THRESHOLDS.MIN_TRADE_AMOUNT,
37
+ MIN_WITHDRAWAL_AMOUNT: COMMON_THRESHOLDS.MIN_WITHDRAWAL_AMOUNT,
38
+ MAX_PORTFOLIOS_PER_USER: COMMON_THRESHOLDS.MAX_PORTFOLIOS_PER_USER,
39
+ MAX_TRADES_PER_DAY: COMMON_THRESHOLDS.MAX_TRADES_PER_DAY,
40
+ };
41
+ // Display limits
42
+ // Now references consolidated thresholds
43
+ export const DISPLAY_LIMITS = {
44
+ MAX_NAME_LENGTH: COMMON_THRESHOLDS.MAX_NAME_LENGTH,
45
+ MAX_DESCRIPTION_LENGTH: COMMON_THRESHOLDS.MAX_DESCRIPTION_LENGTH,
46
+ MAX_NOTES_LENGTH: COMMON_THRESHOLDS.MAX_NOTES_LENGTH,
47
+ MAX_FILE_SIZE_MB: COMMON_THRESHOLDS.MAX_FILE_SIZE_MB,
48
+ MAX_FILE_NAME_LENGTH: COMMON_THRESHOLDS.MAX_FILE_NAME_LENGTH,
49
+ // Dashboard display limits
50
+ DASHBOARD_RECENT_TRADES: 5,
51
+ DASHBOARD_TARGET_TRADES: 5,
52
+ DASHBOARD_TRANSACTIONS: 5,
53
+ DASHBOARD_WITHDRAWALS: 5,
54
+ // Table pagination
55
+ DEFAULT_PAGE_SIZE: 20,
56
+ PAGE_SIZE_OPTIONS: [10, 20, 50, 100],
57
+ // Search limits
58
+ AUTOCOMPLETE_MAX_RESULTS: 10,
59
+ RECENT_SEARCHES_MAX: 5,
60
+ };
61
+ // Asset allocation defaults
62
+ // Now references consolidated defaults
63
+ export const ALLOCATION_DEFAULTS = {
64
+ DEFAULT_PERCENTAGE: CONFIG_ALLOCATION_DEFAULTS.DEFAULT_PERCENTAGE,
65
+ PERCENTAGE_PRECISION: CONFIG_ALLOCATION_DEFAULTS.PERCENTAGE_PRECISION,
66
+ TARGET_TOTAL: CONFIG_ALLOCATION_DEFAULTS.TARGET_TOTAL,
67
+ };
68
+ // Note: DEFAULT_UNKNOWN_VALUE and DEFAULT_ERROR_MESSAGE are already exported from common.ts
69
+ //# sourceMappingURL=defaults.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"defaults.js","sourceRoot":"","sources":["../../src/utilities/defaults.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,EACL,eAAe,EACf,eAAe,EACf,iBAAiB,EACjB,iBAAiB,EACjB,0BAA0B,GAC3B,MAAM,WAAW,CAAC;AAEnB,iBAAiB;AACjB,uCAAuC;AACvC,MAAM,CAAC,MAAM,cAAc,GAAG;IAC5B,IAAI,EAAE,eAAe,CAAC,IAAI;IAC1B,YAAY,EAAE,eAAe,CAAC,KAAK;IACnC,OAAO,EAAE,SAAS,EAAE,qDAAqD;IACzE,cAAc,EAAE,eAAe,CAAC,cAAc;IAC9C,SAAS,EAAE,eAAe,CAAC,SAAS;CAC5B,CAAC;AAEX,mBAAmB;AACnB,yCAAyC;AACzC,MAAM,CAAC,MAAM,gBAAgB,GAAG;IAC9B,UAAU,EAAE,eAAe,CAAC,IAAI;IAChC,UAAU,EAAE,YAAY,EAAE,sBAAsB;IAChD,iBAAiB,EAAE,eAAe,CAAC,SAAS;IAC5C,oBAAoB,EAAE,eAAe,CAAC,oBAAoB;IAC1D,kBAAkB,EAAE,eAAe,CAAC,kBAAkB;CAC9C,CAAC;AAEX,sBAAsB;AACtB,mEAAmE;AACnE,MAAM,CAAC,MAAM,mBAAmB,GAAG;IACjC,IAAI,EAAE,iBAAiB,CAAC,YAAY;IACpC,SAAS,EAAE,iBAAiB,CAAC,iBAAiB;IAC9C,aAAa,EAAE,iBAAiB,CAAC,aAAa;IAC9C,aAAa,EAAE,iBAAiB,CAAC,aAAa;IAC9C,iBAAiB,EAAE,iBAAiB,CAAC,iBAAiB;CAC9C,CAAC;AAEX,oBAAoB;AACpB,yCAAyC;AACzC,MAAM,CAAC,MAAM,UAAU,GAAG;IACxB,mBAAmB,EAAE,iBAAiB,CAAC,mBAAmB;IAC1D,gBAAgB,EAAE,iBAAiB,CAAC,gBAAgB;IACpD,qBAAqB,EAAE,iBAAiB,CAAC,qBAAqB;IAC9D,uBAAuB,EAAE,iBAAiB,CAAC,uBAAuB;IAClE,kBAAkB,EAAE,iBAAiB,CAAC,kBAAkB;CAChD,CAAC;AAEX,iBAAiB;AACjB,yCAAyC;AACzC,MAAM,CAAC,MAAM,cAAc,GAAG;IAC5B,eAAe,EAAE,iBAAiB,CAAC,eAAe;IAClD,sBAAsB,EAAE,iBAAiB,CAAC,sBAAsB;IAChE,gBAAgB,EAAE,iBAAiB,CAAC,gBAAgB;IACpD,gBAAgB,EAAE,iBAAiB,CAAC,gBAAgB;IACpD,oBAAoB,EAAE,iBAAiB,CAAC,oBAAoB;IAC5D,2BAA2B;IAC3B,uBAAuB,EAAE,CAAC;IAC1B,uBAAuB,EAAE,CAAC;IAC1B,sBAAsB,EAAE,CAAC;IACzB,qBAAqB,EAAE,CAAC;IACxB,mBAAmB;IACnB,iBAAiB,EAAE,EAAE;IACrB,iBAAiB,EAAE,CAAC,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,GAAG,CAAU;IAC7C,gBAAgB;IAChB,wBAAwB,EAAE,EAAE;IAC5B,mBAAmB,EAAE,CAAC;CACd,CAAC;AAEX,4BAA4B;AAC5B,uCAAuC;AACvC,MAAM,CAAC,MAAM,mBAAmB,GAAG;IACjC,kBAAkB,EAAE,0BAA0B,CAAC,kBAAkB;IACjE,oBAAoB,EAAE,0BAA0B,CAAC,oBAAoB;IACrE,YAAY,EAAE,0BAA0B,CAAC,YAAY;CAC7C,CAAC;AAEX,4FAA4F"}
@@ -0,0 +1,9 @@
1
+ /**
2
+ * Utility constants
3
+ */
4
+ export * from './time';
5
+ export * from './defaults';
6
+ export * from './sorting';
7
+ export * from './validation';
8
+ export * from './common';
9
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/utilities/index.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,cAAc,QAAQ,CAAC;AACvB,cAAc,YAAY,CAAC;AAC3B,cAAc,WAAW,CAAC;AAC1B,cAAc,cAAc,CAAC;AAC7B,cAAc,UAAU,CAAC"}
@@ -0,0 +1,9 @@
1
+ /**
2
+ * Utility constants
3
+ */
4
+ export * from './time';
5
+ export * from './defaults';
6
+ export * from './sorting';
7
+ export * from './validation';
8
+ export * from './common';
9
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/utilities/index.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,cAAc,QAAQ,CAAC;AACvB,cAAc,YAAY,CAAC;AAC3B,cAAc,WAAW,CAAC;AAC1B,cAAc,cAAc,CAAC;AAC7B,cAAc,UAAU,CAAC"}