@cranberry-money/shared-constants 8.7.0 → 8.8.1

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.
@@ -0,0 +1,35 @@
1
+ /**
2
+ * Chart configuration constants
3
+ */
4
+ export declare const CHART_CONFIG: {
5
+ /**
6
+ * SVG dimensions for allocation charts
7
+ */
8
+ readonly ALLOCATION_CHART: {
9
+ readonly RADIUS: 45;
10
+ readonly CIRCUMFERENCE: number;
11
+ readonly STROKE_WIDTH: 10;
12
+ readonly CENTER_X: 50;
13
+ readonly CENTER_Y: 50;
14
+ readonly VIEWBOX: "0 0 100 100";
15
+ };
16
+ /**
17
+ * Chart.js default configurations
18
+ */
19
+ readonly DEFAULT_CHART_OPTIONS: {
20
+ readonly RESPONSIVE: true;
21
+ readonly MAINTAIN_ASPECT_RATIO: false;
22
+ readonly ANIMATION_DURATION: 750;
23
+ };
24
+ /**
25
+ * Performance chart settings
26
+ */
27
+ readonly PERFORMANCE_CHART: {
28
+ readonly LINE_TENSION: 0.4;
29
+ readonly POINT_RADIUS: 0;
30
+ readonly POINT_HOVER_RADIUS: 6;
31
+ readonly BORDER_WIDTH: 2;
32
+ };
33
+ };
34
+ export type ChartConfig = typeof CHART_CONFIG;
35
+ //# sourceMappingURL=chart-config.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"chart-config.d.ts","sourceRoot":"","sources":["../../src/ui/chart-config.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,eAAO,MAAM,YAAY;IACvB;;OAEG;;;;;;;;;IAUH;;OAEG;;;;;;IAOH;;OAEG;;;;;;;CAOK,CAAC;AAEX,MAAM,MAAM,WAAW,GAAG,OAAO,YAAY,CAAC"}
@@ -0,0 +1,33 @@
1
+ /**
2
+ * Chart configuration constants
3
+ */
4
+ export const CHART_CONFIG = {
5
+ /**
6
+ * SVG dimensions for allocation charts
7
+ */
8
+ ALLOCATION_CHART: {
9
+ RADIUS: 45,
10
+ CIRCUMFERENCE: 2 * Math.PI * 45,
11
+ STROKE_WIDTH: 10,
12
+ CENTER_X: 50,
13
+ CENTER_Y: 50,
14
+ VIEWBOX: '0 0 100 100',
15
+ },
16
+ /**
17
+ * Chart.js default configurations
18
+ */
19
+ DEFAULT_CHART_OPTIONS: {
20
+ RESPONSIVE: true,
21
+ MAINTAIN_ASPECT_RATIO: false,
22
+ ANIMATION_DURATION: 750,
23
+ },
24
+ /**
25
+ * Performance chart settings
26
+ */
27
+ PERFORMANCE_CHART: {
28
+ LINE_TENSION: 0.4,
29
+ POINT_RADIUS: 0,
30
+ POINT_HOVER_RADIUS: 6,
31
+ BORDER_WIDTH: 2,
32
+ },
33
+ };
@@ -9,4 +9,5 @@ export * from './timing';
9
9
  export * from './cache';
10
10
  export * from './zIndex';
11
11
  export * from './navigation';
12
+ export * from './chart-config';
12
13
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/ui/index.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,cAAc,UAAU,CAAC;AACzB,cAAc,WAAW,CAAC;AAC1B,cAAc,UAAU,CAAC;AACzB,cAAc,yBAAyB,CAAC;AACxC,cAAc,UAAU,CAAC;AACzB,cAAc,SAAS,CAAC;AACxB,cAAc,UAAU,CAAC;AACzB,cAAc,cAAc,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/ui/index.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,cAAc,UAAU,CAAC;AACzB,cAAc,WAAW,CAAC;AAC1B,cAAc,UAAU,CAAC;AACzB,cAAc,yBAAyB,CAAC;AACxC,cAAc,UAAU,CAAC;AACzB,cAAc,SAAS,CAAC;AACxB,cAAc,UAAU,CAAC;AACzB,cAAc,cAAc,CAAC;AAC7B,cAAc,gBAAgB,CAAC"}
package/dist/ui/index.js CHANGED
@@ -9,3 +9,4 @@ export * from './timing';
9
9
  export * from './cache';
10
10
  export * from './zIndex';
11
11
  export * from './navigation';
12
+ export * from './chart-config';
@@ -35,6 +35,14 @@ export declare const DISPLAY_LIMITS: {
35
35
  readonly MAX_NOTES_LENGTH: 1000;
36
36
  readonly MAX_FILE_SIZE_MB: 10;
37
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;
38
46
  };
39
47
  export declare const ALLOCATION_DEFAULTS: {
40
48
  readonly DEFAULT_PERCENTAGE: 10;
@@ -1 +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;;;;;;CAMjB,CAAC;AAIX,eAAO,MAAM,mBAAmB;;;;CAItB,CAAC"}
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"}
@@ -46,6 +46,17 @@ export const DISPLAY_LIMITS = {
46
46
  MAX_NOTES_LENGTH: COMMON_THRESHOLDS.MAX_NOTES_LENGTH,
47
47
  MAX_FILE_SIZE_MB: COMMON_THRESHOLDS.MAX_FILE_SIZE_MB,
48
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,
49
60
  };
50
61
  // Asset allocation defaults
51
62
  // Now references consolidated defaults
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cranberry-money/shared-constants",
3
- "version": "8.7.0",
3
+ "version": "8.8.1",
4
4
  "description": "Shared constants for MyPortfolio platform",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",