@3squared/forge-ui-3 2.10.1 → 2.12.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.
@@ -1,5 +1,10 @@
1
1
  import { DialogProps } from 'primevue/dialog';
2
2
  import { Size } from '../types/forge-types.ts';
3
+ export interface ForgeModalError {
4
+ hasError: boolean;
5
+ header: string;
6
+ message: string[];
7
+ }
3
8
  export interface ForgeModalProps extends DialogProps {
4
9
  cancelText?: string;
5
10
  submitText?: string;
@@ -11,10 +16,12 @@ export interface ForgeModalProps extends DialogProps {
11
16
  cancelClass?: string;
12
17
  submitClass?: string;
13
18
  resetErrorOnClose?: boolean;
19
+ maxHeight?: string | null;
14
20
  }
15
21
  type __VLS_Props = ForgeModalProps;
16
22
  type __VLS_PublicProps = {
17
23
  'visible': boolean;
24
+ 'error'?: ForgeModalError;
18
25
  } & __VLS_Props;
19
26
  declare function __VLS_template(): {
20
27
  attrs: Partial<{}>;
@@ -27,8 +34,10 @@ declare const __VLS_component: import('vue').DefineComponent<__VLS_PublicProps,
27
34
  resetError: () => void;
28
35
  }, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
29
36
  "update:visible": (value: boolean) => any;
37
+ "update:error": (value: ForgeModalError) => any;
30
38
  }, string, import('vue').PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
31
39
  "onUpdate:visible"?: ((value: boolean) => any) | undefined;
40
+ "onUpdate:error"?: ((value: ForgeModalError) => any) | undefined;
32
41
  }>, {
33
42
  size: "md" | "sm" | "lg" | "xl";
34
43
  header: string;
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "@3squared/forge-ui-3",
3
3
  "repository": "https://github.com/3Squared/ForgeUI-3",
4
4
  "description": "ForgeUI 3 is Vue 3 UI Library which combines a variety of popular packages to create a consistent UI for your application.",
5
- "version": "2.10.1",
5
+ "version": "2.12.0",
6
6
  "type": "module",
7
7
  "license": "MIT",
8
8
  "contributors": [
@@ -46,22 +46,22 @@
46
46
  "yup": "^1.6.1"
47
47
  },
48
48
  "devDependencies": {
49
- "@cypress/code-coverage": "3.13.11",
50
- "@primevue/auto-import-resolver": "4.2.5",
49
+ "@cypress/code-coverage": "3.13.12",
50
+ "@primevue/auto-import-resolver": "4.3.1",
51
51
  "@vitejs/plugin-vue": "5.2.1",
52
- "@vitest/coverage-v8": "3.0.6",
53
- "@vitest/ui": "3.0.6",
52
+ "@vitest/coverage-v8": "3.0.7",
53
+ "@vitest/ui": "3.0.7",
54
54
  "cypress": "14.0.3",
55
55
  "cypress-real-events": "1.14.0",
56
56
  "rollup-plugin-visualizer": "5.14.0",
57
- "sass": "1.85.0",
57
+ "sass": "1.85.1",
58
58
  "typescript": "5.7.3",
59
59
  "unplugin-vue-components": "28.4.0",
60
- "vite": "6.1.1",
60
+ "vite": "6.2.0",
61
61
  "vite-bundle-visualizer": "1.2.1",
62
62
  "vite-plugin-dts": "4.5.0",
63
63
  "vite-plugin-istanbul": "7.0.0",
64
- "vitest": "3.0.6",
64
+ "vitest": "3.0.7",
65
65
  "vue-drawing-canvas": "1.0.14"
66
66
  },
67
67
  "optionalDependencies": {
@@ -52,4 +52,81 @@
52
52
  white-space: nowrap;
53
53
  overflow: hidden;
54
54
  text-overflow: ellipsis;
55
+ }
56
+
57
+ $font-weights: (
58
+ 'fw-100': 100,
59
+ 'fw-200': 200,
60
+ 'fw-300': 300,
61
+ 'fw-400': 400,
62
+ 'fw-500': 500,
63
+ 'fw-600': 600,
64
+ 'fw-700': 700,
65
+ 'fw-800': 800,
66
+ 'fw-900': 900
67
+ );
68
+
69
+ $sizes: (
70
+ 5: 5%,
71
+ 10: 10%,
72
+ 20: 20%,
73
+ 25: 25%,
74
+ 30: 30%,
75
+ 40: 40%,
76
+ 50: 50%,
77
+ 60: 60%,
78
+ 75: 75%,
79
+ 80: 80%,
80
+ 90: 90%,
81
+ 100: 100%,
82
+ auto: auto
83
+ );
84
+
85
+ @each $size, $value in $sizes {
86
+ .w-#{$size} {
87
+ width: $value;
88
+ }
89
+ }
90
+
91
+ @each $color, $value in $grays {
92
+ .bg-grey-#{$color} {
93
+ background-color: $value !important;
94
+ }
95
+ }
96
+
97
+ @each $font-weight, $value in $font-weights {
98
+ .fw-#{$value} {
99
+ font-weight: $value;
100
+ }
101
+ }
102
+
103
+ $max-pixels: (
104
+ 50px: 50px,
105
+ 100px: 100px,
106
+ 150px: 150px,
107
+ 200px: 200px,
108
+ 250px: 250px,
109
+ 300px: 300px,
110
+ 350px: 350px,
111
+ 400px: 400px,
112
+ 450px: 450px,
113
+ 500px: 500px,
114
+ 600px: 600px,
115
+ 700px: 700px,
116
+ 800px: 800px,
117
+ 900px: 900px,
118
+ 1000px: 1000px
119
+ );
120
+
121
+
122
+ @each $key, $value in $max-pixels {
123
+ .mh-#{$key} {
124
+ max-height: $value !important;
125
+ }
126
+ }
127
+
128
+ @each $key, $value in $max-pixels {
129
+ .mw-#{$key} {
130
+ max-width: $value !important;
131
+ }
55
132
  }
@@ -62,54 +62,6 @@ $dark-colors: (
62
62
  'danger-dark': $danger-dark
63
63
  );
64
64
 
65
- $font-weights: (
66
- 'fw-100': 100,
67
- 'fw-200': 200,
68
- 'fw-300': 300,
69
- 'fw-400': 400,
70
- 'fw-500': 500,
71
- 'fw-600': 600,
72
- 'fw-700': 700,
73
- 'fw-800': 800,
74
- 'fw-900': 900
75
- );
76
-
77
- $sizes: (
78
- 5: 5%,
79
- 10: 10%,
80
- 20: 20%,
81
- 25: 25%,
82
- 30: 30%,
83
- 40: 40%,
84
- 50: 50%,
85
- 60: 60%,
86
- 75: 75%,
87
- 80: 80%,
88
- 90: 90%,
89
- 100: 100%,
90
- auto: auto
91
- );
92
-
93
- @each $size, $value in $sizes {
94
- .w-#{$size} {
95
- width: $value;
96
- }
97
- }
98
-
99
- @each $color, $value in $grays {
100
- .bg-grey-#{$color} {
101
- background-color: $value !important;
102
- }
103
- }
104
-
105
- @each $font-weight, $value in $font-weights {
106
- .fw-#{$value} {
107
- font-weight: $value;
108
- }
109
- }
110
-
111
-
112
-
113
65
  $theme-colors: map-merge-multiple($theme-colors, $base-colors, $subtle-colors, $dark-colors);
114
66
 
115
67
  $brand-text-emphasis: shade-color($brand, 60%) !default;