@3squared/forge-ui-3 0.16.0 → 1.0.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,8 +1,8 @@
1
- import { ForgeFileStatus } from '../../types/forge-types';
1
+ import { ForgeFileStatus, ForgeFileType } from '../../types/forge-types';
2
2
  import { TypedSchema } from 'vee-validate';
3
3
 
4
4
  export interface ForgeFileUploaderProps {
5
- acceptedFileTypes: string[];
5
+ acceptedFileTypes: ForgeFileType[];
6
6
  maxFileSize: number;
7
7
  getFileUrlAction: (fileName: string) => Promise<[string, string]>;
8
8
  showDragDropArea?: boolean;
@@ -14,7 +14,7 @@ export interface ForgeFileUploaderProps {
14
14
  declare const _default: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
15
15
  modelValue: import('vue').PropType<ForgeFileStatus[]>;
16
16
  acceptedFileTypes: {
17
- type: import('vue').PropType<string[]>;
17
+ type: import('vue').PropType<ForgeFileType[]>;
18
18
  required: true;
19
19
  };
20
20
  maxFileSize: {
@@ -47,7 +47,7 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
47
47
  }>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
48
48
  modelValue: import('vue').PropType<ForgeFileStatus[]>;
49
49
  acceptedFileTypes: {
50
- type: import('vue').PropType<string[]>;
50
+ type: import('vue').PropType<ForgeFileType[]>;
51
51
  required: true;
52
52
  };
53
53
  maxFileSize: {
@@ -1,4 +1,4 @@
1
- import { ForgeFileStatus } from '../../../types/forge-types';
1
+ import { ForgeFileStatus, ForgeFileType } from '../../../types/forge-types';
2
2
 
3
3
  declare function __VLS_template(): {
4
4
  default?(_: {}): any;
@@ -17,7 +17,7 @@ declare const __VLS_component: import('vue').DefineComponent<import('vue').Extra
17
17
  required: true;
18
18
  };
19
19
  acceptedFileTypes: {
20
- type: import('vue').PropType<string[]>;
20
+ type: import('vue').PropType<ForgeFileType[]>;
21
21
  required: true;
22
22
  };
23
23
  }>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
@@ -34,7 +34,7 @@ declare const __VLS_component: import('vue').DefineComponent<import('vue').Extra
34
34
  required: true;
35
35
  };
36
36
  acceptedFileTypes: {
37
- type: import('vue').PropType<string[]>;
37
+ type: import('vue').PropType<ForgeFileType[]>;
38
38
  required: true;
39
39
  };
40
40
  }>> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
@@ -1,4 +1,4 @@
1
- import { ForgeFileStatus } from '../../../types/forge-types';
1
+ import { ForgeFileStatus, ForgeFileType } from '../../../types/forge-types';
2
2
 
3
3
  declare function __VLS_template(): {
4
4
  message?(_: {}): any;
@@ -10,7 +10,7 @@ declare const __VLS_component: import('vue').DefineComponent<import('vue').Extra
10
10
  type: import('vue').PropType<ForgeFileStatus[]>;
11
11
  };
12
12
  acceptedFileTypes: {
13
- type: import('vue').PropType<string[]>;
13
+ type: import('vue').PropType<ForgeFileType[]>;
14
14
  required: true;
15
15
  };
16
16
  maxFileInput: {
@@ -27,7 +27,7 @@ declare const __VLS_component: import('vue').DefineComponent<import('vue').Extra
27
27
  type: import('vue').PropType<ForgeFileStatus[]>;
28
28
  };
29
29
  acceptedFileTypes: {
30
- type: import('vue').PropType<string[]>;
30
+ type: import('vue').PropType<ForgeFileType[]>;
31
31
  required: true;
32
32
  };
33
33
  maxFileInput: {
@@ -14,11 +14,11 @@ declare const _default: {
14
14
  };
15
15
  };
16
16
  }) => {
17
- class: {
17
+ class: (string | {
18
18
  'cursor-move': boolean;
19
19
  'position-sticky': true;
20
20
  'overflow-hidden position-relative bg-clip-padding': boolean;
21
- }[];
21
+ })[];
22
22
  };
23
23
  roweditorinitbutton: string;
24
24
  rowtoggler: {
@@ -80,6 +80,7 @@ declare const _default: {
80
80
  class: string[];
81
81
  };
82
82
  headerContent: string;
83
+ headerTitle: string;
83
84
  sort: string;
84
85
  rowCheckbox: (options: any) => {
85
86
  class: (string | {
@@ -13,6 +13,10 @@ export type ForgeColumnDataType = 'text' | 'numeric' | 'date' | 'select' | 'mult
13
13
  export type ForgeColumn = ColumnProps & {
14
14
  dataType?: ForgeColumnDataType;
15
15
  };
16
+ export interface ForgeFileType {
17
+ fileType: string;
18
+ label?: string;
19
+ }
16
20
  export interface ForgeFileStatus {
17
21
  file: File;
18
22
  status: FileUploadStatus;
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.16.0",
5
+ "version": "1.0.0",
6
6
  "type": "module",
7
7
  "license": "MIT",
8
8
  "contributors": [
@@ -41,30 +41,35 @@
41
41
  "yup": "^1.4.0"
42
42
  },
43
43
  "devDependencies": {
44
- "@cypress/code-coverage": "3.13.1",
45
- "@vitejs/plugin-vue": "5.1.3",
44
+ "@cypress/code-coverage": "3.13.4",
45
+ "@vitejs/plugin-vue": "5.1.4",
46
46
  "@vitest/coverage-v8": "1.6.0",
47
47
  "@vitest/ui": "1.6.0",
48
- "cypress": "13.14.2",
48
+ "cypress": "13.15.0",
49
49
  "cypress-real-events": "1.13.0",
50
- "sass": "1.78.0",
50
+ "sass": "1.79.4",
51
51
  "typescript": "5.6.2",
52
52
  "unplugin-vue-components": "0.27.4",
53
53
  "rollup-plugin-visualizer": "5.12.0",
54
- "vite": "5.4.6",
54
+ "vite": "5.4.8",
55
55
  "vite-bundle-visualizer": "1.2.1",
56
56
  "vite-plugin-istanbul": "6.0.2",
57
57
  "vitest": "1.6.0",
58
58
  "vite-plugin-dts": "3.9.1"
59
59
  },
60
60
  "optionalDependencies": {
61
- "@rollup/rollup-linux-x64-gnu": "4.21.3"
61
+ "@rollup/rollup-linux-x64-gnu": "4.24.0"
62
62
  },
63
63
  "nyc": {
64
64
  "all": true,
65
65
  "report-dir": "coverage/cypress",
66
- "include": "*",
67
- "exclude": "**/*.cy.ts",
66
+ "include": [
67
+ "**/*.vue"
68
+ ],
69
+ "exclude": [
70
+ "tests/**",
71
+ "src/styles/**"
72
+ ],
68
73
  "extension": [
69
74
  ".js",
70
75
  ".cjs",
@@ -6,6 +6,11 @@
6
6
  max-width: 948px;
7
7
  }
8
8
 
9
+ .datepicker-invalid {
10
+ @extend .is-invalid;
11
+ background-image: unset !important;
12
+ }
13
+
9
14
  .p-datepicker-trigger {
10
15
  display: none !important;
11
16
  }
@@ -26,6 +26,10 @@
26
26
  }
27
27
  }
28
28
 
29
+ .accepted-file-types-container {
30
+ max-width: 200px
31
+ }
32
+
29
33
  .mask {
30
34
  background-color: rgba(0, 0, 0, .9)
31
35
  }
@@ -39,6 +39,7 @@
39
39
  background: white;
40
40
  border: $input-border-width solid $input-border-color;
41
41
  width: 100%;
42
+ z-index: $zindex-dropdown;
42
43
  left: 0;
43
44
  top: 100%;
44
45
 
@@ -30,6 +30,11 @@ table.table-lg {
30
30
  z-index: 2;
31
31
  }
32
32
 
33
+ .table-sort-icon {
34
+ margin-top: 6px;
35
+ padding-left: 8px;
36
+ }
37
+
33
38
  .bg-clip-padding {
34
39
  background-clip: padding-box;
35
40
  }
@@ -47,6 +52,10 @@ table.table-lg {
47
52
  @extend .form-check-input;
48
53
  }
49
54
 
55
+ .page-size {
56
+ min-width: 70px;
57
+ }
58
+
50
59
  .pagination .page-link.active {
51
60
  z-index: 0;
52
61
  }
@@ -14,6 +14,15 @@
14
14
  @extend .form-control, :disabled;
15
15
  }
16
16
 
17
+ .invalid-feedback {
18
+ @extend .invalid-feedback;
19
+ display: block;
20
+ }
21
+
22
+ .z-index-dropdown {
23
+ z-index: $zindex-dropdown
24
+ }
25
+
17
26
  .text-invalid {
18
27
  color: $form-invalid-color
19
28
  }
@@ -23,9 +32,18 @@
23
32
  }
24
33
 
25
34
  .filter-placeholder {
35
+ white-space: nowrap;
36
+ overflow: hidden;
26
37
  color: $input-placeholder-color
27
38
  }
28
39
 
40
+ .filter-trigger {
41
+ position: absolute;
42
+ right: 0;
43
+ margin-right: 8px;
44
+ background-color: white;
45
+ }
46
+
29
47
  .rotate-180 {
30
48
  transform: rotate(180deg)
31
49
  }
@@ -14,6 +14,11 @@ export type ForgeMultiSelectOrientation = "row" | "column"
14
14
  export type ForgeColumnDataType = 'text' | 'numeric' | 'date' | 'select' | 'multiselect' | undefined
15
15
  export type ForgeColumn = ColumnProps & { dataType?: ForgeColumnDataType }
16
16
 
17
+ export interface ForgeFileType {
18
+ fileType: string,
19
+ label?: string
20
+ }
21
+
17
22
  export interface ForgeFileStatus {
18
23
  file: File;
19
24
  status: FileUploadStatus;