@3squared/forge-ui-3 2.7.0 → 2.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.
@@ -5148,6 +5148,15 @@ const _a = { class: "d-flex justify-content-between" }, Ia = ["accept", "disable
5148
5148
  }, null, 8, ["onLabel", "offLabel", "severity", "onChange", "defaultValue", "disabled", "data-cy"]))), 128))
5149
5149
  ]));
5150
5150
  }
5151
+ }), nl = () => ({
5152
+ type: "component",
5153
+ resolve: (e) => {
5154
+ if (e.startsWith("Forge"))
5155
+ return {
5156
+ from: "@3squared/forge-ui-3",
5157
+ name: e
5158
+ };
5159
+ }
5151
5160
  });
5152
5161
  export {
5153
5162
  Di as Bootstrap_PT,
@@ -5172,6 +5181,7 @@ export {
5172
5181
  il as ForgePanel,
5173
5182
  ia as ForgeProgressBar,
5174
5183
  Hi as ForgeRemainingCharacters,
5184
+ nl as ForgeResolver,
5175
5185
  Ji as ForgeScratchpad,
5176
5186
  ll as ForgeSelectButton,
5177
5187
  Ki as ForgeStatWidget,
package/dist/index.d.ts CHANGED
@@ -1,4 +1,5 @@
1
1
  import { default as Bootstrap_PT } from './src/Bootstrap_PT';
2
+ import { ComponentResolver } from 'unplugin-vue-components/types';
2
3
  import { default as ForgeAlert } from './src/components/ForgeAlert.vue';
3
4
  import { default as ForgeActionButton } from './src/components/ForgeActionButton.vue';
4
5
  import { default as ForgeAutoComplete } from './src/components/ForgeAutoComplete.vue';
@@ -27,6 +28,7 @@ import { default as ForgeColumnCustomiser } from './src/components/table/ForgeCo
27
28
  import { default as ForgePanel } from './src/components/ForgePanel.vue';
28
29
  import { default as ForgeSelectButton } from './src/components/ForgeSelectButton.vue';
29
30
  import { default as ForgeToggleButton } from './src/components/ForgeToggleButton.vue';
30
- export { Bootstrap_PT, ForgeActionButton, ForgeAlert, ForgeAutoComplete, ForgeCheckbox, ForgeChip, ForgeColumnCustomiser, ForgeDatepicker, ForgeForm, ForgeFormField, ForgeInlineEditor, ForgeLink, ForgeLoader, ForgeModal, ForgeMultiSelectPreview, ForgeNavbar, ForgePageHeader, ForgeRemainingCharacters, ForgeProgressBar, ForgeScratchpad, ForgeStatWidget, ForgeStepper, ForgeTile, ForgeTable, ForgeFilterHeader, ForgeFileUploader, ForgePanel, ForgeSelectButton, ForgeToggleButton };
31
+ export { Bootstrap_PT, ForgeActionButton, ForgeAlert, ForgeAutoComplete, ForgeCheckbox, ForgeChip, ForgeColumnCustomiser, ForgeDatepicker, ForgeForm, ForgeFormField, ForgeInlineEditor, ForgeLink, ForgeLoader, ForgeModal, ForgeMultiSelectPreview, ForgeNavbar, ForgePageHeader, ForgeRemainingCharacters, ForgeProgressBar, ForgeScratchpad, ForgeStatWidget, ForgeStepper, ForgeTile, ForgeTable, ForgeFilterHeader, ForgeFileUploader, ForgePanel, ForgeSelectButton, ForgeToggleButton, ForgeConfirmDialog };
31
32
  export * from './src/types/forge-types.ts';
32
33
  export * from './src/helpers/index';
34
+ export declare const ForgeResolver: () => ComponentResolver;
@@ -0,0 +1,31 @@
1
+ import { ForgeFileStatus, ForgeFileType } from '../../../types/forge-types';
2
+ interface DragDropAreaProps {
3
+ maxFileInput: number;
4
+ maxFileSize: number;
5
+ acceptedFileTypes: ForgeFileType[];
6
+ }
7
+ type __VLS_Props = DragDropAreaProps;
8
+ type __VLS_PublicProps = {
9
+ modelValue: ForgeFileStatus[];
10
+ } & __VLS_Props;
11
+ declare function __VLS_template(): {
12
+ attrs: Partial<{}>;
13
+ slots: {
14
+ default?(_: {}): any;
15
+ };
16
+ refs: {};
17
+ rootEl: HTMLDivElement;
18
+ };
19
+ type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
20
+ declare const __VLS_component: import('vue').DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
21
+ "update:modelValue": (value: ForgeFileStatus[]) => any;
22
+ }, string, import('vue').PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
23
+ "onUpdate:modelValue"?: ((value: ForgeFileStatus[]) => any) | undefined;
24
+ }>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLDivElement>;
25
+ declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
26
+ export default _default;
27
+ type __VLS_WithTemplateSlots<T, S> = T & {
28
+ new (): {
29
+ $slots: S;
30
+ };
31
+ };
@@ -0,0 +1,29 @@
1
+ import { FileUploadStatus } from '../utilities/utilities';
2
+ import { TypedSchema } from 'vee-validate';
3
+ import { ForgeFileType } from '../../../types/forge-types';
4
+ interface FileInfoProps {
5
+ editableFileName: boolean;
6
+ acceptedFileTypes: ForgeFileType[];
7
+ maxFileSize: number;
8
+ getFileUrlAction: (fileName: string) => Promise<[string, string]>;
9
+ customFileNameRules?: TypedSchema;
10
+ autoUploadToBlob?: boolean;
11
+ }
12
+ type __VLS_Props = FileInfoProps;
13
+ type __VLS_PublicProps = {
14
+ 'file': File;
15
+ 'blobFileName': string;
16
+ 'uploadStatus': FileUploadStatus;
17
+ } & __VLS_Props;
18
+ declare const _default: import('vue').DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
19
+ deleted: (...args: any[]) => void;
20
+ "update:file": (value: File) => void;
21
+ "update:blobFileName": (value: string) => void;
22
+ "update:uploadStatus": (value: FileUploadStatus) => void;
23
+ }, string, import('vue').PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
24
+ onDeleted?: ((...args: any[]) => any) | undefined;
25
+ "onUpdate:file"?: ((value: File) => any) | undefined;
26
+ "onUpdate:blobFileName"?: ((value: string) => any) | undefined;
27
+ "onUpdate:uploadStatus"?: ((value: FileUploadStatus) => any) | undefined;
28
+ }>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLDivElement>;
29
+ export default _default;
@@ -0,0 +1,5 @@
1
+ interface MaxFileSizeProps {
2
+ maxFileSize: number;
3
+ }
4
+ declare const _default: import('vue').DefineComponent<MaxFileSizeProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<MaxFileSizeProps> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLDivElement>;
5
+ export default _default;
@@ -0,0 +1,44 @@
1
+ import { ForgeFileStatus, ForgeFileType } from '../../../types/forge-types';
2
+ interface FileUploaderButtonProps {
3
+ acceptedFileTypes: ForgeFileType[];
4
+ maxFileInput: number;
5
+ showDragDropArea: boolean;
6
+ }
7
+ type __VLS_Props = FileUploaderButtonProps;
8
+ type __VLS_PublicProps = {
9
+ modelValue: ForgeFileStatus[];
10
+ } & __VLS_Props;
11
+ declare function __VLS_template(): {
12
+ attrs: Partial<{}>;
13
+ slots: {
14
+ message?(_: {}): any;
15
+ 'button-content'?(_: {}): any;
16
+ };
17
+ refs: {
18
+ acceptedFilesOverlay: ({
19
+ $props: import('primevue/popover').PopoverProps & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps;
20
+ $slots: import('primevue/popover').PopoverSlots;
21
+ $emit: ((e: "show") => void) & ((e: "hide") => void);
22
+ } & import('primevue/popover').PopoverMethods) | null;
23
+ };
24
+ rootEl: HTMLDivElement;
25
+ };
26
+ type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
27
+ declare const __VLS_component: import('vue').DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
28
+ "update:modelValue": (value: ForgeFileStatus[]) => any;
29
+ }, string, import('vue').PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
30
+ "onUpdate:modelValue"?: ((value: ForgeFileStatus[]) => any) | undefined;
31
+ }>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {
32
+ acceptedFilesOverlay: ({
33
+ $props: import('primevue/popover').PopoverProps & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps;
34
+ $slots: import('primevue/popover').PopoverSlots;
35
+ $emit: ((e: "show") => void) & ((e: "hide") => void);
36
+ } & import('primevue/popover').PopoverMethods) | null;
37
+ }, HTMLDivElement>;
38
+ declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
39
+ export default _default;
40
+ type __VLS_WithTemplateSlots<T, S> = T & {
41
+ new (): {
42
+ $slots: S;
43
+ };
44
+ };
@@ -0,0 +1,9 @@
1
+ import { FileUploadStatus } from '../utilities/utilities';
2
+ interface UploadStatusProps {
3
+ fileSize: number;
4
+ maxFileSize: number;
5
+ bytesUploaded: number;
6
+ uploadStatus: FileUploadStatus;
7
+ }
8
+ declare const _default: import('vue').DefineComponent<UploadStatusProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<UploadStatusProps> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLDivElement>;
9
+ export default _default;
@@ -0,0 +1,14 @@
1
+ export interface ForgePaginationHeaderProps {
2
+ total: number;
3
+ pageSizes?: Array<number>;
4
+ perPage?: number;
5
+ }
6
+ declare const _default: import('vue').DefineComponent<ForgePaginationHeaderProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
7
+ "update:perPage": (...args: any[]) => void;
8
+ }, string, import('vue').PublicProps, Readonly<ForgePaginationHeaderProps> & Readonly<{
9
+ "onUpdate:perPage"?: ((...args: any[]) => any) | undefined;
10
+ }>, {
11
+ perPage: number;
12
+ pageSizes: Array<number>;
13
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLDivElement>;
14
+ export default _default;
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.7.0",
5
+ "version": "2.8.0",
6
6
  "type": "module",
7
7
  "license": "MIT",
8
8
  "contributors": [
@@ -51,21 +51,21 @@
51
51
  "@vitejs/plugin-vue": "5.2.1",
52
52
  "@vitest/coverage-v8": "3.0.5",
53
53
  "@vitest/ui": "3.0.5",
54
- "cypress": "14.0.2",
54
+ "cypress": "14.0.3",
55
55
  "cypress-real-events": "1.14.0",
56
56
  "rollup-plugin-visualizer": "5.14.0",
57
- "sass": "1.84.0",
57
+ "sass": "1.85.0",
58
58
  "typescript": "5.7.3",
59
- "unplugin-vue-components": "28.0.0",
59
+ "unplugin-vue-components": "28.1.0",
60
60
  "vite": "6.1.0",
61
61
  "vite-bundle-visualizer": "1.2.1",
62
62
  "vite-plugin-dts": "4.5.0",
63
- "vite-plugin-istanbul": "6.0.2",
63
+ "vite-plugin-istanbul": "7.0.0",
64
64
  "vitest": "3.0.5",
65
65
  "vue-drawing-canvas": "1.0.14"
66
66
  },
67
67
  "optionalDependencies": {
68
- "@rollup/rollup-linux-x64-gnu": "4.34.6"
68
+ "@rollup/rollup-linux-x64-gnu": "4.34.8"
69
69
  },
70
70
  "nyc": {
71
71
  "all": true,