@pallasoft/ps-mobile-components 1.6.0 → 1.8.0

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 (121) hide show
  1. package/dist/components/ps-accessibility-gate/index.d.ts +2 -0
  2. package/dist/components/ps-accessibility-gate/index.js +2 -0
  3. package/dist/components/ps-accessibility-gate/ps-accessibility-gate-props.d.ts +5 -0
  4. package/dist/components/ps-accessibility-gate/ps-accessibility-gate-props.js +1 -0
  5. package/dist/components/ps-accessibility-gate/ps-accessibility-gate.d.ts +2 -0
  6. package/dist/components/ps-accessibility-gate/ps-accessibility-gate.js +4 -0
  7. package/dist/components/ps-app-lock-screen/ps-app-lock-screen.js +1 -1
  8. package/dist/components/ps-cartesian-chart/ps-cartesian-chart.d.ts +1 -1
  9. package/dist/components/ps-cartesian-chart/ps-cartesian-chart.js +25 -17
  10. package/dist/components/ps-chart-empty-state/ps-chart-empty-state.js +5 -1
  11. package/dist/components/ps-chart-frame/ps-chart-frame.js +10 -1
  12. package/dist/components/ps-chart-legend/ps-chart-legend.js +11 -2
  13. package/dist/components/ps-chart-readout/ps-chart-readout-props.d.ts +1 -0
  14. package/dist/components/ps-chart-readout/ps-chart-readout.d.ts +1 -1
  15. package/dist/components/ps-chart-readout/ps-chart-readout.js +8 -2
  16. package/dist/components/ps-chart-skeleton/ps-chart-skeleton.d.ts +1 -1
  17. package/dist/components/ps-chart-skeleton/ps-chart-skeleton.js +5 -1
  18. package/dist/components/ps-donut-chart/ps-donut-chart.js +23 -5
  19. package/dist/components/ps-kpi-card/ps-kpi-card.js +4 -1
  20. package/dist/components/ps-list/ps-list-select-row.js +8 -4
  21. package/dist/components/ps-menu-popup/ps-menu-popup-divider.js +8 -2
  22. package/dist/components/ps-menu-popup/ps-menu-popup-row.js +21 -9
  23. package/dist/components/ps-menu-popup/ps-menu-popup.js +28 -17
  24. package/dist/components/ps-privacy-cover/ps-privacy-cover-props.d.ts +1 -0
  25. package/dist/components/ps-privacy-cover/ps-privacy-cover.d.ts +1 -1
  26. package/dist/components/ps-privacy-cover/ps-privacy-cover.js +12 -3
  27. package/dist/components/ps-sortable-grid/ps-sortable-grid.js +8 -4
  28. package/dist/components/ps-sortable-grid/ps-sortable-item-props.d.ts +1 -0
  29. package/dist/components/ps-sortable-grid/ps-sortable-item.d.ts +1 -1
  30. package/dist/components/ps-sortable-grid/ps-sortable-item.js +3 -2
  31. package/dist/components/ps-sparkline/ps-sparkline.d.ts +1 -1
  32. package/dist/components/ps-sparkline/ps-sparkline.js +3 -1
  33. package/dist/components/ps-waterfall-chart/ps-waterfall-chart.d.ts +1 -1
  34. package/dist/components/ps-waterfall-chart/ps-waterfall-chart.js +15 -9
  35. package/dist/constants/ps-accessibility-config.d.ts +5 -0
  36. package/dist/constants/ps-accessibility-config.js +5 -0
  37. package/dist/constants/ps-chart-config.d.ts +26 -1
  38. package/dist/constants/ps-chart-config.js +26 -1
  39. package/dist/constants/ps-material-menu-config.d.ts +12 -0
  40. package/dist/constants/ps-material-menu-config.js +12 -0
  41. package/dist/constants/ps-scan-format.d.ts +4 -0
  42. package/dist/constants/ps-scan-format.js +5 -0
  43. package/dist/constants/ps-scan-output-config.d.ts +17 -0
  44. package/dist/constants/ps-scan-output-config.js +23 -0
  45. package/dist/constants/ps-screen-capture-config.d.ts +4 -0
  46. package/dist/constants/ps-screen-capture-config.js +4 -0
  47. package/dist/contexts/ps-widget-fill-context.d.ts +1 -0
  48. package/dist/contexts/ps-widget-fill-context.js +2 -0
  49. package/dist/hooks/use-ps-document-scanner.js +3 -2
  50. package/dist/hooks/use-ps-menu-popup-reveal.d.ts +3 -0
  51. package/dist/hooks/use-ps-menu-popup-reveal.js +28 -0
  52. package/dist/hooks/use-ps-screen-capture-prevention.d.ts +2 -0
  53. package/dist/hooks/use-ps-screen-capture-prevention.js +12 -0
  54. package/dist/hooks/use-ps-widget-fill.d.ts +1 -0
  55. package/dist/hooks/use-ps-widget-fill.js +3 -0
  56. package/dist/index.d.ts +6 -0
  57. package/dist/index.js +6 -0
  58. package/dist/interfaces/ps-capture-options.d.ts +2 -0
  59. package/dist/interfaces/ps-chart-bar-group.d.ts +4 -0
  60. package/dist/interfaces/ps-chart-bar-group.js +1 -0
  61. package/dist/interfaces/ps-chart-x-labels.d.ts +4 -0
  62. package/dist/interfaces/ps-chart-x-labels.js +1 -0
  63. package/dist/interfaces/ps-document-scanner-options.d.ts +2 -0
  64. package/dist/interfaces/ps-donut-chart-layout.d.ts +4 -0
  65. package/dist/interfaces/ps-donut-chart-layout.js +1 -0
  66. package/dist/interfaces/ps-image-manipulator-native.d.ts +19 -0
  67. package/dist/interfaces/ps-image-manipulator-native.js +1 -0
  68. package/dist/interfaces/ps-menu-popup-container-style.d.ts +8 -0
  69. package/dist/interfaces/ps-menu-popup-container-style.js +1 -0
  70. package/dist/interfaces/ps-menu-popup-divider-style.d.ts +4 -0
  71. package/dist/interfaces/ps-menu-popup-divider-style.js +1 -0
  72. package/dist/interfaces/ps-menu-popup-layout.d.ts +1 -0
  73. package/dist/interfaces/ps-menu-popup-row-style.d.ts +6 -0
  74. package/dist/interfaces/ps-menu-popup-row-style.js +1 -0
  75. package/dist/interfaces/ps-menu-popup-size.d.ts +4 -0
  76. package/dist/interfaces/ps-menu-popup-size.js +1 -0
  77. package/dist/interfaces/ps-page-size.d.ts +4 -0
  78. package/dist/interfaces/ps-page-size.js +1 -0
  79. package/dist/interfaces/ps-pdf-page.d.ts +5 -0
  80. package/dist/interfaces/ps-pdf-page.js +1 -0
  81. package/dist/interfaces/ps-scan-format-labels.d.ts +7 -0
  82. package/dist/interfaces/ps-scan-format-labels.js +1 -0
  83. package/dist/interfaces/ps-screen-capture-native.d.ts +4 -0
  84. package/dist/interfaces/ps-screen-capture-native.js +1 -0
  85. package/dist/interfaces/use-ps-screen-capture-prevention-options.d.ts +3 -0
  86. package/dist/interfaces/use-ps-screen-capture-prevention-options.js +1 -0
  87. package/dist/services/ps-capture-picker-service.js +1 -0
  88. package/dist/services/ps-chart-axis-service.d.ts +5 -0
  89. package/dist/services/ps-chart-axis-service.js +32 -0
  90. package/dist/services/ps-chart-bar-service.d.ts +2 -0
  91. package/dist/services/ps-chart-bar-service.js +11 -4
  92. package/dist/services/ps-chart-donut-service.d.ts +3 -0
  93. package/dist/services/ps-chart-donut-service.js +11 -0
  94. package/dist/services/ps-chart-readout-service.d.ts +3 -0
  95. package/dist/services/ps-chart-readout-service.js +25 -0
  96. package/dist/services/ps-chart-scale-service.d.ts +1 -1
  97. package/dist/services/ps-chart-scale-service.js +2 -2
  98. package/dist/services/ps-chart-text-service.d.ts +6 -0
  99. package/dist/services/ps-chart-text-service.js +23 -0
  100. package/dist/services/ps-document-scanner-service.d.ts +2 -0
  101. package/dist/services/ps-document-scanner-service.js +21 -4
  102. package/dist/services/ps-jpeg-size-service.d.ts +4 -0
  103. package/dist/services/ps-jpeg-size-service.js +32 -0
  104. package/dist/services/ps-menu-popup-service.js +1 -0
  105. package/dist/services/ps-menu-popup-style-service.d.ts +13 -0
  106. package/dist/services/ps-menu-popup-style-service.js +55 -0
  107. package/dist/services/ps-scan-format-prompt-service.d.ts +6 -0
  108. package/dist/services/ps-scan-format-prompt-service.js +21 -0
  109. package/dist/services/ps-scan-image-converter-service.d.ts +5 -0
  110. package/dist/services/ps-scan-image-converter-service.js +22 -0
  111. package/dist/services/ps-scan-output-service.d.ts +10 -0
  112. package/dist/services/ps-scan-output-service.js +55 -0
  113. package/dist/services/ps-scan-pdf-service.d.ts +4 -0
  114. package/dist/services/ps-scan-pdf-service.js +6 -0
  115. package/dist/services/ps-screen-capture-service.d.ts +6 -0
  116. package/dist/services/ps-screen-capture-service.js +35 -0
  117. package/dist/services/ps-sortable-grid-service.d.ts +2 -0
  118. package/dist/services/ps-sortable-grid-service.js +10 -3
  119. package/dist/services/ps-waterfall-service.js +2 -3
  120. package/jest-setup.js +1 -1
  121. package/package.json +10 -2
@@ -1,4 +1,3 @@
1
- import { PsChartConfig } from '../constants/ps-chart-config';
2
1
  import { PsChartBarService } from './ps-chart-bar-service';
3
2
  import { PsChartScaleService } from './ps-chart-scale-service';
4
3
  export class PsWaterfallService {
@@ -20,7 +19,7 @@ export class PsWaterfallService {
20
19
  }
21
20
  static rects(steps, colors, domain, plot) {
22
21
  const slot = PsChartBarService.slot(steps.length, plot);
23
- const width = slot * (1 - PsChartConfig.barGapRatio);
22
+ const { offset, width } = PsChartBarService.group(slot, 1);
24
23
  return steps.map((step, row) => {
25
24
  const from = PsChartScaleService.y(step.start, domain, plot);
26
25
  const to = PsChartScaleService.y(step.end, domain, plot);
@@ -30,7 +29,7 @@ export class PsWaterfallService {
30
29
  id: `${row}:${step.label}`,
31
30
  isNegative: step.end < step.start,
32
31
  width,
33
- x: plot.left + row * slot + (slot * PsChartConfig.barGapRatio) / 2,
32
+ x: plot.left + row * slot + offset,
34
33
  y: Math.min(from, to),
35
34
  };
36
35
  });
package/jest-setup.js CHANGED
@@ -11,7 +11,7 @@ jest.mock('react-native-reanimated', () => {
11
11
  isSharedValue,
12
12
  FadeIn: builder,
13
13
  FadeInDown: builder,
14
- Easing: { linear: 'linear' },
14
+ Easing: { bezier: () => 'bezier', linear: 'linear' },
15
15
  cancelAnimation: () => undefined,
16
16
  interpolate: (value, input, output) => output[0],
17
17
  withRepeat: (value) => value,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pallasoft/ps-mobile-components",
3
- "version": "1.6.0",
3
+ "version": "1.8.0",
4
4
  "private": false,
5
5
  "description": "Native iOS (SwiftUI) and Android (Jetpack Compose) Ps components for Pallasoft mobile apps",
6
6
  "main": "./dist/index.js",
@@ -36,7 +36,7 @@
36
36
  "dependencies": {
37
37
  "@pallasoft/ps-design-system": "^1.19.0",
38
38
  "@pallasoft/ps-icons": "^1.12.0",
39
- "@pallasoft/ps-utilities": "^2.27.0"
39
+ "@pallasoft/ps-utilities": "^2.28.0"
40
40
  },
41
41
  "peerDependencies": {
42
42
  "@expo/ui": "~58.0.0",
@@ -47,11 +47,13 @@
47
47
  "expo-document-picker": "~58.0.0",
48
48
  "expo-file-system": "~58.0.0",
49
49
  "expo-haptics": "~58.0.7",
50
+ "expo-image-manipulator": "~58.0.0",
50
51
  "expo-image-picker": "~58.0.0",
51
52
  "expo-linear-gradient": "~58.0.3",
52
53
  "expo-local-authentication": "~58.0.0",
53
54
  "expo-quick-actions": "^6.0.2",
54
55
  "expo-router": "~58.0.0",
56
+ "expo-screen-capture": "~58.0.0",
55
57
  "react": "^19.3.0",
56
58
  "react-native": "~0.88.0",
57
59
  "react-native-document-scanner-plugin": "^2.0.4",
@@ -74,6 +76,9 @@
74
76
  "expo-file-system": {
75
77
  "optional": true
76
78
  },
79
+ "expo-image-manipulator": {
80
+ "optional": true
81
+ },
77
82
  "expo-image-picker": {
78
83
  "optional": true
79
84
  },
@@ -86,6 +91,9 @@
86
91
  "expo-router": {
87
92
  "optional": true
88
93
  },
94
+ "expo-screen-capture": {
95
+ "optional": true
96
+ },
89
97
  "react-native-document-scanner-plugin": {
90
98
  "optional": true
91
99
  },