@3squared/forge-ui-3 0.6.1 → 0.7.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.
@@ -1,42 +1,59 @@
1
- import { TypedSchema } from 'vee-validate';
2
1
  import { ForgeFormFieldTypes } from '../types/forge-types';
3
2
 
4
3
  export interface ForgeFormFieldProps {
5
4
  name: string;
6
5
  label: string;
7
6
  type?: ForgeFormFieldTypes;
8
- rules?: TypedSchema;
9
7
  mask?: string;
10
8
  placeholder?: string;
11
9
  }
12
- declare const _default: import('vue').DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<ForgeFormFieldProps>, {
13
- mask: string;
14
- placeholder: string;
15
- type: string;
16
- }>, {}, unknown, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<ForgeFormFieldProps>, {
17
- mask: string;
18
- placeholder: string;
19
- type: string;
20
- }>>>, {
10
+ declare const _default: import('vue').DefineComponent<{
11
+ modelValue: import('vue').PropType<any>;
12
+ label: {
13
+ type: import('vue').PropType<string>;
14
+ required: true;
15
+ };
16
+ name: {
17
+ type: import('vue').PropType<string>;
18
+ required: true;
19
+ };
20
+ type: {
21
+ type: import('vue').PropType<ForgeFormFieldTypes>;
22
+ default: string;
23
+ };
24
+ placeholder: {
25
+ type: import('vue').PropType<string>;
26
+ default: string;
27
+ };
28
+ mask: {
29
+ type: import('vue').PropType<string>;
30
+ default: string;
31
+ };
32
+ }, {}, unknown, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
33
+ modelValue: import('vue').PropType<any>;
34
+ label: {
35
+ type: import('vue').PropType<string>;
36
+ required: true;
37
+ };
38
+ name: {
39
+ type: import('vue').PropType<string>;
40
+ required: true;
41
+ };
42
+ type: {
43
+ type: import('vue').PropType<ForgeFormFieldTypes>;
44
+ default: string;
45
+ };
46
+ placeholder: {
47
+ type: import('vue').PropType<string>;
48
+ default: string;
49
+ };
50
+ mask: {
51
+ type: import('vue').PropType<string>;
52
+ default: string;
53
+ };
54
+ }>>, {
21
55
  type: ForgeFormFieldTypes;
22
56
  placeholder: string;
23
57
  mask: string;
24
58
  }, {}>;
25
59
  export default _default;
26
- type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
27
- type __VLS_TypePropsToRuntimeProps<T> = {
28
- [K in keyof T]-?: {} extends Pick<T, K> ? {
29
- type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
30
- } : {
31
- type: import('vue').PropType<T[K]>;
32
- required: true;
33
- };
34
- };
35
- type __VLS_WithDefaults<P, D> = {
36
- [K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
37
- default: D[K];
38
- }> : P[K];
39
- };
40
- type __VLS_Prettify<T> = {
41
- [K in keyof T]: T[K];
42
- } & {};
@@ -1,8 +1,5 @@
1
- import { TypedSchema } from 'vee-validate';
2
-
3
1
  export interface ForgeInlineEditorProps {
4
2
  name?: string;
5
- rules?: TypedSchema;
6
3
  completeAction?: Function;
7
4
  errorAction?: Function;
8
5
  params?: Array<any>;
@@ -16,7 +13,7 @@ declare function __VLS_template(): {
16
13
  };
17
14
  editFinished: () => Promise<false | undefined>;
18
15
  cancel: () => void;
19
- val: any;
16
+ val: unknown;
20
17
  }): any;
21
18
  default?(_: {}): any;
22
19
  };
@@ -40,9 +37,6 @@ declare const __VLS_component: import('vue').DefineComponent<{
40
37
  type: import('vue').PropType<boolean>;
41
38
  default: boolean;
42
39
  };
43
- rules: {
44
- type: import('vue').PropType<TypedSchema<any, any>>;
45
- };
46
40
  completeAction: {
47
41
  type: import('vue').PropType<Function>;
48
42
  };
@@ -66,9 +60,6 @@ declare const __VLS_component: import('vue').DefineComponent<{
66
60
  type: import('vue').PropType<boolean>;
67
61
  default: boolean;
68
62
  };
69
- rules: {
70
- type: import('vue').PropType<TypedSchema<any, any>>;
71
- };
72
63
  completeAction: {
73
64
  type: import('vue').PropType<Function>;
74
65
  };
@@ -5,6 +5,8 @@ export interface ForgeModalProps extends DialogProps {
5
5
  submitText?: string;
6
6
  showFooter?: boolean;
7
7
  onConfirm?: Function | null;
8
+ submitButtonType?: 'button' | 'reset' | 'submit';
9
+ cancelButtonType?: 'button' | 'reset' | 'submit';
8
10
  }
9
11
  declare function __VLS_template(): Partial<Record<NonNullable<keyof DialogSlots>, (_: any) => any>> & {
10
12
  loader?(_: {}): any;
@@ -68,6 +70,14 @@ declare const __VLS_component: import('vue').DefineComponent<{
68
70
  type: import('vue').PropType<Function | null>;
69
71
  default: null;
70
72
  };
73
+ submitButtonType: {
74
+ type: import('vue').PropType<"submit" | "reset" | "button">;
75
+ default: string;
76
+ };
77
+ cancelButtonType: {
78
+ type: import('vue').PropType<"submit" | "reset" | "button">;
79
+ default: string;
80
+ };
71
81
  modal: {
72
82
  type: import('vue').PropType<boolean>;
73
83
  default: boolean;
@@ -180,6 +190,14 @@ declare const __VLS_component: import('vue').DefineComponent<{
180
190
  type: import('vue').PropType<Function | null>;
181
191
  default: null;
182
192
  };
193
+ submitButtonType: {
194
+ type: import('vue').PropType<"submit" | "reset" | "button">;
195
+ default: string;
196
+ };
197
+ cancelButtonType: {
198
+ type: import('vue').PropType<"submit" | "reset" | "button">;
199
+ default: string;
200
+ };
183
201
  modal: {
184
202
  type: import('vue').PropType<boolean>;
185
203
  default: boolean;
@@ -240,6 +258,8 @@ declare const __VLS_component: import('vue').DefineComponent<{
240
258
  cancelText: string;
241
259
  showFooter: boolean;
242
260
  onConfirm: Function | null;
261
+ submitButtonType: "button" | "reset" | "submit";
262
+ cancelButtonType: "button" | "reset" | "submit";
243
263
  modal: boolean;
244
264
  showHeader: boolean;
245
265
  }, {}>;
@@ -1,5 +1,4 @@
1
1
  import { Severity } from '../types/forge-types';
2
- import { TypedSchema } from 'vee-validate';
3
2
 
4
3
  export interface ForgeMultiSelectProps {
5
4
  severity?: Severity;
@@ -7,7 +6,6 @@ export interface ForgeMultiSelectProps {
7
6
  showClearSelection?: boolean;
8
7
  expandLeft?: boolean;
9
8
  selectValue?: string;
10
- rules?: TypedSchema;
11
9
  name?: string;
12
10
  }
13
11
  declare function __VLS_template(): Partial<Record<NonNullable<string | number>, (_: {
@@ -1,5 +1,5 @@
1
1
  export interface ForgeFilterHeaderProps {
2
- dataType: string | undefined;
2
+ dataType: 'numeric' | 'date' | 'multiselect' | 'select' | undefined;
3
3
  dropdownOptions?: any[];
4
4
  }
5
5
  declare const _default: import('vue').DefineComponent<__VLS_TypePropsToRuntimeProps<ForgeFilterHeaderProps>, {}, unknown, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<__VLS_TypePropsToRuntimeProps<ForgeFilterHeaderProps>>>, {}, {}>;
@@ -4,7 +4,6 @@ import { Severity } from '../../types/forge-types';
4
4
  export interface ForgeTableProps extends DataTableProps {
5
5
  value: any[];
6
6
  legacyPaginationFooter?: boolean;
7
- total?: number;
8
7
  showClearButton?: boolean;
9
8
  showExporterButton?: boolean;
10
9
  stickyHeader?: boolean;
@@ -22,7 +21,10 @@ declare const __VLS_component: import('vue').DefineComponent<__VLS_WithDefaults<
22
21
  showExporterButton: boolean;
23
22
  stickyHeader: boolean;
24
23
  }>, {}, unknown, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
24
+ page: (...args: any[]) => void;
25
+ sort: (...args: any[]) => void;
25
26
  "update:filters": (...args: any[]) => void;
27
+ "update:tableContext": (...args: any[]) => void;
26
28
  }, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<ForgeTableProps>, {
27
29
  legacyPaginationFooter: boolean;
28
30
  paginator: boolean;
@@ -31,7 +33,10 @@ declare const __VLS_component: import('vue').DefineComponent<__VLS_WithDefaults<
31
33
  showExporterButton: boolean;
32
34
  stickyHeader: boolean;
33
35
  }>>> & {
36
+ onPage?: ((...args: any[]) => any) | undefined;
37
+ onSort?: ((...args: any[]) => any) | undefined;
34
38
  "onUpdate:filters"?: ((...args: any[]) => any) | undefined;
39
+ "onUpdate:tableContext"?: ((...args: any[]) => any) | undefined;
35
40
  }, {
36
41
  legacyPaginationFooter: boolean;
37
42
  showClearButton: boolean;
@@ -64,6 +64,7 @@ declare const _default: {
64
64
  class: string[];
65
65
  };
66
66
  columnfilter: string;
67
+ filterinput: string;
67
68
  filterRowItem: (options: ColumnPassThroughMethodOptions) => {
68
69
  class: (string | {
69
70
  active: any;
@@ -0,0 +1,23 @@
1
+ import { MultiSelectPassThroughMethodOptions } from 'primevue/multiselect';
2
+
3
+ declare const _default: {
4
+ multiselect: {
5
+ root: ({ props }: MultiSelectPassThroughMethodOptions) => {
6
+ class: (string | {
7
+ disabled: boolean | undefined;
8
+ })[];
9
+ };
10
+ panel: string;
11
+ list: string;
12
+ item: string;
13
+ header: string;
14
+ filterContainer: string;
15
+ filterIcon: string;
16
+ filterInput: string;
17
+ closeButton: string;
18
+ hiddenInput: string;
19
+ emptymessage: string;
20
+ trigger: string;
21
+ };
22
+ };
23
+ export default _default;
@@ -1,6 +1,7 @@
1
1
  import { ColumnProps } from 'primevue/column';
2
- import { FilterMatchModeOptions, FilterOperatorOptions } from 'primevue/api';
2
+ import { FilterMatchModeOptions } from 'primevue/api';
3
3
  import { FileUploadStatus } from '../components/file-uploader/utilities/utilities';
4
+ import { DataTableFilterMeta } from 'primevue/datatable';
4
5
 
5
6
  export type Severity = 'primary' | 'secondary' | 'success' | 'warning' | 'danger' | 'info' | 'brand' | undefined;
6
7
  export type Size = 'sm' | 'md' | 'lg' | undefined;
@@ -12,12 +13,6 @@ export type ForgeColumnDataType = 'text' | 'numeric' | 'date' | 'select' | 'mult
12
13
  export type ForgeColumn = ColumnProps & {
13
14
  dataType?: ForgeColumnDataType;
14
15
  };
15
- export type ForgeTableFilter = {
16
- value?: any;
17
- matchMode?: FilterMatchModeOptions;
18
- operator?: FilterOperatorOptions;
19
- constraints?: Array<ForgeTableFilterConstraint>;
20
- };
21
16
  export interface ForgeFileStatus {
22
17
  file: File;
23
18
  status: FileUploadStatus;
@@ -36,3 +31,11 @@ export interface SelectListOption<T> {
36
31
  value: T;
37
32
  text: string;
38
33
  }
34
+ export interface ForgeTableContext {
35
+ total: number;
36
+ page: number;
37
+ perPage: number;
38
+ sortField: string;
39
+ sortDirection: 'Asc' | 'Desc' | 'None';
40
+ filters: DataTableFilterMeta | undefined;
41
+ }
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": "0.6.1",
5
+ "version": "0.7.1",
6
6
  "type": "module",
7
7
  "license": "MIT",
8
8
  "contributors": [
@@ -32,27 +32,26 @@
32
32
  "@azure/storage-blob": "^12.17.0",
33
33
  "@iconify/vue": "^4.1.1",
34
34
  "@popperjs/core": "^2.11.8",
35
- "@vee-validate/zod": "^4.11.8",
36
35
  "@vueuse/components": "^10.6.1",
37
36
  "bootstrap": "5.3.3",
38
- "primevue": "^3.48.1",
37
+ "primevue": "^3.53.0",
39
38
  "vee-validate": "^4.11.8",
40
39
  "vue": "^3.4.14",
41
40
  "vue-multiselect": "^3.0.0-beta.3",
42
- "zod": "^3.22.4"
41
+ "yup": "^1.4.0"
43
42
  },
44
43
  "devDependencies": {
45
- "@cypress/code-coverage": "3.12.41",
44
+ "@cypress/code-coverage": "3.12.42",
46
45
  "@vitejs/plugin-vue": "5.0.5",
47
46
  "@vitest/coverage-v8": "1.6.0",
48
47
  "@vitest/ui": "1.6.0",
49
- "cypress": "13.13.0",
48
+ "cypress": "13.13.1",
50
49
  "cypress-real-events": "1.13.0",
51
50
  "sass": "1.77.8",
52
51
  "typescript": "5.5.3",
53
- "unplugin-vue-components": "0.27.2",
52
+ "unplugin-vue-components": "0.27.3",
54
53
  "rollup-plugin-visualizer": "5.12.0",
55
- "vite": "5.3.3",
54
+ "vite": "5.3.4",
56
55
  "vite-bundle-visualizer": "1.2.1",
57
56
  "vite-plugin-istanbul": "6.0.2",
58
57
  "vitest": "1.6.0",
@@ -282,4 +282,8 @@
282
282
  .filter-header-multiselect__check-icon {
283
283
  top: 1px;
284
284
  left: 1px;
285
+ }
286
+
287
+ [data-pc-section="box"] {
288
+ display: none
285
289
  }
@@ -1,3 +1,7 @@
1
+ table {
2
+ table-layout: fixed;
3
+ }
4
+
1
5
  table.table-lg {
2
6
  // stylelint-disable-next-line selector-max-universal
3
7
  > :not(caption) > * > * {
@@ -1,6 +1,7 @@
1
1
  import { ColumnProps } from "primevue/column";
2
- import { FilterMatchModeOptions, FilterOperatorOptions } from "primevue/api";
2
+ import { FilterMatchModeOptions } from "primevue/api";
3
3
  import { FileUploadStatus } from "../components/file-uploader/utilities/utilities";
4
+ import { DataTableFilterMeta } from "primevue/datatable";
4
5
 
5
6
  export type Severity = 'primary' | 'secondary' | 'success' | 'warning' | 'danger' | 'info' | 'brand' | undefined
6
7
  export type Size = 'sm' | 'md' | 'lg' | undefined
@@ -12,12 +13,6 @@ export type ForgeNavbarPosition = "fixed-top" | "fixed-bottom" | "sticky-top"
12
13
  export type ForgeMultiSelectOrientation = "row" | "column"
13
14
  export type ForgeColumnDataType = 'text' | 'numeric' | 'date' | 'select' | 'multiselect' | undefined
14
15
  export type ForgeColumn = ColumnProps & { dataType?: ForgeColumnDataType }
15
- export type ForgeTableFilter = {
16
- value?: any,
17
- matchMode?: FilterMatchModeOptions,
18
- operator?: FilterOperatorOptions,
19
- constraints?: Array<ForgeTableFilterConstraint>
20
- }
21
16
 
22
17
  export interface ForgeFileStatus {
23
18
  file: File;
@@ -40,3 +35,12 @@ export interface SelectListOption<T> {
40
35
  value: T;
41
36
  text: string;
42
37
  }
38
+
39
+ export interface ForgeTableContext {
40
+ total: number,
41
+ page: number,
42
+ perPage: number,
43
+ sortField: string,
44
+ sortDirection: 'Asc' | 'Desc' | 'None',
45
+ filters: DataTableFilterMeta | undefined
46
+ }