@3squared/forge-ui-3 0.1.0 → 0.1.2
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.
- package/dist/index.d.ts +26 -0
- package/dist/src/Bootstrap_PT.d.ts +3 -0
- package/dist/src/components/ForgeActionButton.vue.d.ts +34 -0
- package/dist/src/components/ForgeAlert.vue.d.ts +42 -0
- package/dist/src/components/ForgeCheckbox.vue.d.ts +46 -0
- package/dist/src/components/ForgeChips.vue.d.ts +43 -0
- package/dist/src/components/ForgeDatepicker.vue.d.ts +68 -0
- package/dist/src/components/ForgeForm.vue.d.ts +65 -0
- package/dist/src/components/ForgeFormField.vue.d.ts +41 -0
- package/dist/src/components/ForgeInlineEditor.vue.d.ts +83 -0
- package/dist/src/components/ForgeLoader.vue.d.ts +29 -0
- package/dist/src/components/ForgeModal.vue.d.ts +69 -0
- package/dist/src/components/ForgeMultiSelect.vue.d.ts +64 -0
- package/dist/src/components/ForgeMultiSelectPreview.vue.d.ts +58 -0
- package/dist/src/components/ForgeNavbar.vue.d.ts +43 -0
- package/dist/src/components/ForgePageHeader.vue.d.ts +21 -0
- package/dist/src/components/ForgeProgressBar.vue.d.ts +46 -0
- package/dist/src/components/ForgeRemainingCharacters.vue.d.ts +29 -0
- package/dist/src/components/ForgeStatWidget.vue.d.ts +40 -0
- package/dist/src/components/ForgeStepper.vue.d.ts +46 -0
- package/dist/src/components/ForgeTile.vue.d.ts +44 -0
- package/dist/src/components/file-uploader/ForgeFileUploader.vue.d.ts +85 -0
- package/dist/src/components/file-uploader/components/DragDropArea.vue.d.ts +44 -0
- package/dist/src/components/file-uploader/components/FileInfo.vue.d.ts +78 -0
- package/dist/src/components/file-uploader/components/MaxFileSize.vue.d.ts +14 -0
- package/dist/src/components/file-uploader/components/UploadButton.vue.d.ts +45 -0
- package/dist/src/components/file-uploader/components/UploadStatus.vue.d.ts +18 -0
- package/dist/src/components/file-uploader/utilities/utilities.d.ts +7 -0
- package/dist/src/components/table/ForgeFilterHeader.vue.d.ts +15 -0
- package/dist/src/components/table/ForgePaginationHeader.vue.d.ts +37 -0
- package/dist/src/components/table/ForgeTable.vue.d.ts +57 -0
- package/dist/src/components/table/table-helpers.d.ts +1 -0
- package/dist/src/helpers/index.d.ts +4 -0
- package/dist/src/types/forge-types.d.ts +37 -0
- package/package.json +9 -7
- package/src/types/forge-types.ts +42 -0
package/dist/index.d.ts
ADDED
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import Bootstrap_PT from "./src/Bootstrap_PT";
|
|
2
|
+
import '@/styles/main.scss';
|
|
3
|
+
import ForgeAlert from './src/components/ForgeAlert.vue';
|
|
4
|
+
import ForgeActionButton from "./src/components/ForgeActionButton.vue";
|
|
5
|
+
import ForgeCheckbox from './src/components/ForgeCheckbox.vue';
|
|
6
|
+
import ForgeLoader from './src/components/ForgeLoader.vue';
|
|
7
|
+
import ForgeModal from "./src/components/ForgeModal.vue";
|
|
8
|
+
import ForgeInlineEditor from "./src/components/ForgeInlineEditor.vue";
|
|
9
|
+
import ForgeNavbar from "./src/components/ForgeNavbar.vue";
|
|
10
|
+
import ForgeMultiSelect from "./src/components/ForgeMultiSelect.vue";
|
|
11
|
+
import ForgeMultiSelectPreview from './src/components/ForgeMultiSelectPreview.vue';
|
|
12
|
+
import ForgePageHeader from "./src/components/ForgePageHeader.vue";
|
|
13
|
+
import ForgeDatepicker from "./src/components/ForgeDatepicker.vue";
|
|
14
|
+
import ForgeRemainingCharacters from "./src/components/ForgeRemainingCharacters.vue";
|
|
15
|
+
import ForgeForm from "./src/components/ForgeForm.vue";
|
|
16
|
+
import ForgeFormField from "./src/components/ForgeFormField.vue";
|
|
17
|
+
import ForgeChips from "./src/components/ForgeChips.vue";
|
|
18
|
+
import ForgeProgressBar from "./src/components/ForgeProgressBar.vue";
|
|
19
|
+
import ForgeStatWidget from "./src/components/ForgeStatWidget.vue";
|
|
20
|
+
import ForgeStepper from "./src/components/ForgeStepper.vue";
|
|
21
|
+
import ForgeTile from "./src/components/ForgeTile.vue";
|
|
22
|
+
import ForgeTable from "./src/components/table/ForgeTable.vue";
|
|
23
|
+
import ForgeFilterHeader from "./src/components/table/ForgeFilterHeader.vue";
|
|
24
|
+
import ForgeFileUploader from "./src/components/file-uploader/ForgeFileUploader.vue";
|
|
25
|
+
export { Bootstrap_PT, ForgeActionButton, ForgeAlert, ForgeCheckbox, ForgeChips, ForgeDatepicker, ForgeForm, ForgeFormField, ForgeInlineEditor, ForgeLoader, ForgeModal, ForgeMultiSelect, ForgeMultiSelectPreview, ForgeNavbar, ForgePageHeader, ForgeRemainingCharacters, ForgeProgressBar, ForgeStatWidget, ForgeStepper, ForgeTile, ForgeTable, ForgeFilterHeader, ForgeFileUploader };
|
|
26
|
+
export * from './src/types/forge-types.ts';
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import { ButtonProps } from "primevue/button";
|
|
2
|
+
export interface ForgeActionButtonProps extends /* @vue-ignore */ ButtonProps {
|
|
3
|
+
action: Function;
|
|
4
|
+
errorAction: Function;
|
|
5
|
+
errorParams?: Array<any>;
|
|
6
|
+
params?: Array<any>;
|
|
7
|
+
}
|
|
8
|
+
declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<ForgeActionButtonProps>, {
|
|
9
|
+
errorMessage: string;
|
|
10
|
+
params: ArrayConstructor;
|
|
11
|
+
}>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<ForgeActionButtonProps>, {
|
|
12
|
+
errorMessage: string;
|
|
13
|
+
params: ArrayConstructor;
|
|
14
|
+
}>>>, {
|
|
15
|
+
params: any[];
|
|
16
|
+
}, {}>;
|
|
17
|
+
export default _default;
|
|
18
|
+
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
19
|
+
type __VLS_TypePropsToRuntimeProps<T> = {
|
|
20
|
+
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
21
|
+
type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
|
|
22
|
+
} : {
|
|
23
|
+
type: import('vue').PropType<T[K]>;
|
|
24
|
+
required: true;
|
|
25
|
+
};
|
|
26
|
+
};
|
|
27
|
+
type __VLS_WithDefaults<P, D> = {
|
|
28
|
+
[K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
|
|
29
|
+
default: D[K];
|
|
30
|
+
}> : P[K];
|
|
31
|
+
};
|
|
32
|
+
type __VLS_Prettify<T> = {
|
|
33
|
+
[K in keyof T]: T[K];
|
|
34
|
+
} & {};
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
import { MessageProps } from "primevue/message";
|
|
2
|
+
declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<MessageProps>, {
|
|
3
|
+
life: undefined;
|
|
4
|
+
closable: boolean;
|
|
5
|
+
sticky: boolean;
|
|
6
|
+
severity: string;
|
|
7
|
+
}>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<MessageProps>, {
|
|
8
|
+
life: undefined;
|
|
9
|
+
closable: boolean;
|
|
10
|
+
sticky: boolean;
|
|
11
|
+
severity: string;
|
|
12
|
+
}>>>, {
|
|
13
|
+
severity: string;
|
|
14
|
+
closable: boolean;
|
|
15
|
+
sticky: boolean;
|
|
16
|
+
life: number;
|
|
17
|
+
}, {}>, {
|
|
18
|
+
default?(_: {}): any;
|
|
19
|
+
}>;
|
|
20
|
+
export default _default;
|
|
21
|
+
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
22
|
+
type __VLS_TypePropsToRuntimeProps<T> = {
|
|
23
|
+
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
24
|
+
type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
|
|
25
|
+
} : {
|
|
26
|
+
type: import('vue').PropType<T[K]>;
|
|
27
|
+
required: true;
|
|
28
|
+
};
|
|
29
|
+
};
|
|
30
|
+
type __VLS_WithDefaults<P, D> = {
|
|
31
|
+
[K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
|
|
32
|
+
default: D[K];
|
|
33
|
+
}> : P[K];
|
|
34
|
+
};
|
|
35
|
+
type __VLS_Prettify<T> = {
|
|
36
|
+
[K in keyof T]: T[K];
|
|
37
|
+
} & {};
|
|
38
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
39
|
+
new (): {
|
|
40
|
+
$slots: S;
|
|
41
|
+
};
|
|
42
|
+
};
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
import { CheckboxProps } from "primevue/checkbox";
|
|
2
|
+
import { TypedSchema } from "vee-validate";
|
|
3
|
+
type CheckProps = Omit<CheckboxProps, "aria-label" | "aria-labelledby">;
|
|
4
|
+
export interface ForgeCheckProps extends CheckProps {
|
|
5
|
+
label: string;
|
|
6
|
+
rules?: TypedSchema;
|
|
7
|
+
}
|
|
8
|
+
declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<ForgeCheckProps>, {
|
|
9
|
+
binary: boolean;
|
|
10
|
+
label: string;
|
|
11
|
+
}>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
12
|
+
"update:modelValue": (...args: any[]) => void;
|
|
13
|
+
}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<ForgeCheckProps>, {
|
|
14
|
+
binary: boolean;
|
|
15
|
+
label: string;
|
|
16
|
+
}>>> & {
|
|
17
|
+
"onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
|
|
18
|
+
}, {
|
|
19
|
+
label: string;
|
|
20
|
+
binary: boolean;
|
|
21
|
+
}, {}>, {
|
|
22
|
+
default?(_: {}): any;
|
|
23
|
+
}>;
|
|
24
|
+
export default _default;
|
|
25
|
+
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
26
|
+
type __VLS_TypePropsToRuntimeProps<T> = {
|
|
27
|
+
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
28
|
+
type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
|
|
29
|
+
} : {
|
|
30
|
+
type: import('vue').PropType<T[K]>;
|
|
31
|
+
required: true;
|
|
32
|
+
};
|
|
33
|
+
};
|
|
34
|
+
type __VLS_WithDefaults<P, D> = {
|
|
35
|
+
[K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
|
|
36
|
+
default: D[K];
|
|
37
|
+
}> : P[K];
|
|
38
|
+
};
|
|
39
|
+
type __VLS_Prettify<T> = {
|
|
40
|
+
[K in keyof T]: T[K];
|
|
41
|
+
} & {};
|
|
42
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
43
|
+
new (): {
|
|
44
|
+
$slots: S;
|
|
45
|
+
};
|
|
46
|
+
};
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
import { ChipsProps } from "primevue/chips";
|
|
2
|
+
import { Severity } from "../types/forge-types";
|
|
3
|
+
import { TypedSchema } from "vee-validate";
|
|
4
|
+
export interface ForgeChipsProps extends /* vue-ignore */ Omit<ChipsProps, "aria-label" | "aria-labelledby"> {
|
|
5
|
+
chipSeverity?: Severity;
|
|
6
|
+
pill?: boolean;
|
|
7
|
+
name?: string;
|
|
8
|
+
rules?: TypedSchema;
|
|
9
|
+
}
|
|
10
|
+
declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<ForgeChipsProps>, {
|
|
11
|
+
name: string;
|
|
12
|
+
chipSeverity: string;
|
|
13
|
+
separator: string;
|
|
14
|
+
pill: boolean;
|
|
15
|
+
}>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<ForgeChipsProps>, {
|
|
16
|
+
name: string;
|
|
17
|
+
chipSeverity: string;
|
|
18
|
+
separator: string;
|
|
19
|
+
pill: boolean;
|
|
20
|
+
}>>>, {
|
|
21
|
+
name: string;
|
|
22
|
+
separator: any;
|
|
23
|
+
chipSeverity: "secondary" | "info" | "success" | "warning" | "danger" | "primary";
|
|
24
|
+
pill: boolean;
|
|
25
|
+
}, {}>;
|
|
26
|
+
export default _default;
|
|
27
|
+
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
28
|
+
type __VLS_TypePropsToRuntimeProps<T> = {
|
|
29
|
+
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
30
|
+
type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
|
|
31
|
+
} : {
|
|
32
|
+
type: import('vue').PropType<T[K]>;
|
|
33
|
+
required: true;
|
|
34
|
+
};
|
|
35
|
+
};
|
|
36
|
+
type __VLS_WithDefaults<P, D> = {
|
|
37
|
+
[K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
|
|
38
|
+
default: D[K];
|
|
39
|
+
}> : P[K];
|
|
40
|
+
};
|
|
41
|
+
type __VLS_Prettify<T> = {
|
|
42
|
+
[K in keyof T]: T[K];
|
|
43
|
+
} & {};
|
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
import { CalendarProps } from "primevue/calendar";
|
|
2
|
+
import { Severity } from "../types/forge-types";
|
|
3
|
+
export interface ForgeDatePickerProps extends /* vue-ignore */ Omit<CalendarProps, "aria-label" | "aria-labelledby"> {
|
|
4
|
+
severity?: Severity;
|
|
5
|
+
}
|
|
6
|
+
declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<ForgeDatePickerProps>, {
|
|
7
|
+
severity: string;
|
|
8
|
+
selectionMode: string;
|
|
9
|
+
dateFormat: string;
|
|
10
|
+
showOtherMonths: boolean;
|
|
11
|
+
showIcon: boolean;
|
|
12
|
+
numberOfMonths: number;
|
|
13
|
+
showButtonBar: boolean;
|
|
14
|
+
view: string;
|
|
15
|
+
autoZIndex: boolean;
|
|
16
|
+
baseZIndex: number;
|
|
17
|
+
appendTo: string;
|
|
18
|
+
}>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<ForgeDatePickerProps>, {
|
|
19
|
+
severity: string;
|
|
20
|
+
selectionMode: string;
|
|
21
|
+
dateFormat: string;
|
|
22
|
+
showOtherMonths: boolean;
|
|
23
|
+
showIcon: boolean;
|
|
24
|
+
numberOfMonths: number;
|
|
25
|
+
showButtonBar: boolean;
|
|
26
|
+
view: string;
|
|
27
|
+
autoZIndex: boolean;
|
|
28
|
+
baseZIndex: number;
|
|
29
|
+
appendTo: string;
|
|
30
|
+
}>>>, {
|
|
31
|
+
severity: "secondary" | "info" | "success" | "warning" | "danger" | "primary";
|
|
32
|
+
view: "date" | "month" | "year";
|
|
33
|
+
selectionMode: "single" | "multiple" | "range";
|
|
34
|
+
dateFormat: string;
|
|
35
|
+
showOtherMonths: boolean;
|
|
36
|
+
showIcon: boolean;
|
|
37
|
+
numberOfMonths: number;
|
|
38
|
+
autoZIndex: boolean;
|
|
39
|
+
baseZIndex: number;
|
|
40
|
+
showButtonBar: boolean;
|
|
41
|
+
appendTo: string | HTMLElement;
|
|
42
|
+
}, {}>, {
|
|
43
|
+
before?(_: {}): any;
|
|
44
|
+
after?(_: {}): any;
|
|
45
|
+
}>;
|
|
46
|
+
export default _default;
|
|
47
|
+
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
48
|
+
type __VLS_TypePropsToRuntimeProps<T> = {
|
|
49
|
+
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
50
|
+
type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
|
|
51
|
+
} : {
|
|
52
|
+
type: import('vue').PropType<T[K]>;
|
|
53
|
+
required: true;
|
|
54
|
+
};
|
|
55
|
+
};
|
|
56
|
+
type __VLS_WithDefaults<P, D> = {
|
|
57
|
+
[K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
|
|
58
|
+
default: D[K];
|
|
59
|
+
}> : P[K];
|
|
60
|
+
};
|
|
61
|
+
type __VLS_Prettify<T> = {
|
|
62
|
+
[K in keyof T]: T[K];
|
|
63
|
+
} & {};
|
|
64
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
65
|
+
new (): {
|
|
66
|
+
$slots: S;
|
|
67
|
+
};
|
|
68
|
+
};
|
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
export interface ForgeFormProps {
|
|
2
|
+
onSubmit: Function;
|
|
3
|
+
title?: string;
|
|
4
|
+
hideTitle?: boolean;
|
|
5
|
+
titleClass?: string;
|
|
6
|
+
submitText?: string;
|
|
7
|
+
cancelText?: string;
|
|
8
|
+
hideCancel?: boolean;
|
|
9
|
+
}
|
|
10
|
+
declare function submit(): Promise<void>;
|
|
11
|
+
declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<ForgeFormProps>, {
|
|
12
|
+
title: string;
|
|
13
|
+
hideTitle: boolean;
|
|
14
|
+
titleClass: string;
|
|
15
|
+
submitText: string;
|
|
16
|
+
cancelText: string;
|
|
17
|
+
hideCancel: boolean;
|
|
18
|
+
}>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<ForgeFormProps>, {
|
|
19
|
+
title: string;
|
|
20
|
+
hideTitle: boolean;
|
|
21
|
+
titleClass: string;
|
|
22
|
+
submitText: string;
|
|
23
|
+
cancelText: string;
|
|
24
|
+
hideCancel: boolean;
|
|
25
|
+
}>>>, {
|
|
26
|
+
title: string;
|
|
27
|
+
hideTitle: boolean;
|
|
28
|
+
titleClass: string;
|
|
29
|
+
submitText: string;
|
|
30
|
+
cancelText: string;
|
|
31
|
+
hideCancel: boolean;
|
|
32
|
+
}, {}>, {
|
|
33
|
+
title?(_: {}): any;
|
|
34
|
+
error?(_: {
|
|
35
|
+
error: string;
|
|
36
|
+
}): any;
|
|
37
|
+
default?(_: {}): any;
|
|
38
|
+
cancel?(_: {}): any;
|
|
39
|
+
submit?(_: {
|
|
40
|
+
submit: typeof submit;
|
|
41
|
+
}): any;
|
|
42
|
+
}>;
|
|
43
|
+
export default _default;
|
|
44
|
+
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
45
|
+
type __VLS_TypePropsToRuntimeProps<T> = {
|
|
46
|
+
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
47
|
+
type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
|
|
48
|
+
} : {
|
|
49
|
+
type: import('vue').PropType<T[K]>;
|
|
50
|
+
required: true;
|
|
51
|
+
};
|
|
52
|
+
};
|
|
53
|
+
type __VLS_WithDefaults<P, D> = {
|
|
54
|
+
[K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
|
|
55
|
+
default: D[K];
|
|
56
|
+
}> : P[K];
|
|
57
|
+
};
|
|
58
|
+
type __VLS_Prettify<T> = {
|
|
59
|
+
[K in keyof T]: T[K];
|
|
60
|
+
} & {};
|
|
61
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
62
|
+
new (): {
|
|
63
|
+
$slots: S;
|
|
64
|
+
};
|
|
65
|
+
};
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
import { TypedSchema } from 'vee-validate';
|
|
2
|
+
import { ForgeFormFieldTypes } from "../types/forge-types";
|
|
3
|
+
export interface ForgeFormFieldProps {
|
|
4
|
+
name: string;
|
|
5
|
+
label: string;
|
|
6
|
+
type?: ForgeFormFieldTypes;
|
|
7
|
+
rules?: TypedSchema;
|
|
8
|
+
mask?: string;
|
|
9
|
+
placeholder?: string;
|
|
10
|
+
}
|
|
11
|
+
declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<ForgeFormFieldProps>, {
|
|
12
|
+
mask: string;
|
|
13
|
+
placeholder: string;
|
|
14
|
+
type: string;
|
|
15
|
+
}>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<ForgeFormFieldProps>, {
|
|
16
|
+
mask: string;
|
|
17
|
+
placeholder: string;
|
|
18
|
+
type: string;
|
|
19
|
+
}>>>, {
|
|
20
|
+
type: ForgeFormFieldTypes;
|
|
21
|
+
placeholder: string;
|
|
22
|
+
mask: string;
|
|
23
|
+
}, {}>;
|
|
24
|
+
export default _default;
|
|
25
|
+
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
26
|
+
type __VLS_TypePropsToRuntimeProps<T> = {
|
|
27
|
+
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
28
|
+
type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
|
|
29
|
+
} : {
|
|
30
|
+
type: import('vue').PropType<T[K]>;
|
|
31
|
+
required: true;
|
|
32
|
+
};
|
|
33
|
+
};
|
|
34
|
+
type __VLS_WithDefaults<P, D> = {
|
|
35
|
+
[K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
|
|
36
|
+
default: D[K];
|
|
37
|
+
}> : P[K];
|
|
38
|
+
};
|
|
39
|
+
type __VLS_Prettify<T> = {
|
|
40
|
+
[K in keyof T]: T[K];
|
|
41
|
+
} & {};
|
|
@@ -0,0 +1,83 @@
|
|
|
1
|
+
import { TypedSchema } from "vee-validate";
|
|
2
|
+
export interface ForgeInlineEditorProps {
|
|
3
|
+
name?: string;
|
|
4
|
+
rules?: TypedSchema;
|
|
5
|
+
completeAction?: Function;
|
|
6
|
+
errorAction?: Function;
|
|
7
|
+
params?: Array<any>;
|
|
8
|
+
errorParams?: Array<any>;
|
|
9
|
+
readonly?: boolean;
|
|
10
|
+
}
|
|
11
|
+
declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
|
|
12
|
+
modelValue: import("vue").PropType<any>;
|
|
13
|
+
errorAction: {
|
|
14
|
+
type: import("vue").PropType<Function>;
|
|
15
|
+
};
|
|
16
|
+
errorParams: {
|
|
17
|
+
type: import("vue").PropType<any[]>;
|
|
18
|
+
};
|
|
19
|
+
params: {
|
|
20
|
+
type: import("vue").PropType<any[]>;
|
|
21
|
+
default: ArrayConstructor;
|
|
22
|
+
};
|
|
23
|
+
name: {
|
|
24
|
+
type: import("vue").PropType<string>;
|
|
25
|
+
default: string;
|
|
26
|
+
};
|
|
27
|
+
readonly: {
|
|
28
|
+
type: import("vue").PropType<boolean>;
|
|
29
|
+
default: boolean;
|
|
30
|
+
};
|
|
31
|
+
rules: {
|
|
32
|
+
type: import("vue").PropType<TypedSchema<any, any>>;
|
|
33
|
+
};
|
|
34
|
+
completeAction: {
|
|
35
|
+
type: import("vue").PropType<Function>;
|
|
36
|
+
};
|
|
37
|
+
}, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
38
|
+
modelValue: import("vue").PropType<any>;
|
|
39
|
+
errorAction: {
|
|
40
|
+
type: import("vue").PropType<Function>;
|
|
41
|
+
};
|
|
42
|
+
errorParams: {
|
|
43
|
+
type: import("vue").PropType<any[]>;
|
|
44
|
+
};
|
|
45
|
+
params: {
|
|
46
|
+
type: import("vue").PropType<any[]>;
|
|
47
|
+
default: ArrayConstructor;
|
|
48
|
+
};
|
|
49
|
+
name: {
|
|
50
|
+
type: import("vue").PropType<string>;
|
|
51
|
+
default: string;
|
|
52
|
+
};
|
|
53
|
+
readonly: {
|
|
54
|
+
type: import("vue").PropType<boolean>;
|
|
55
|
+
default: boolean;
|
|
56
|
+
};
|
|
57
|
+
rules: {
|
|
58
|
+
type: import("vue").PropType<TypedSchema<any, any>>;
|
|
59
|
+
};
|
|
60
|
+
completeAction: {
|
|
61
|
+
type: import("vue").PropType<Function>;
|
|
62
|
+
};
|
|
63
|
+
}>>, {
|
|
64
|
+
params: any[];
|
|
65
|
+
name: string;
|
|
66
|
+
readonly: boolean;
|
|
67
|
+
}, {}>, {
|
|
68
|
+
editor?(_: {
|
|
69
|
+
class: {
|
|
70
|
+
'is-invalid': boolean;
|
|
71
|
+
};
|
|
72
|
+
editFinished: () => Promise<false | undefined>;
|
|
73
|
+
cancel: () => void;
|
|
74
|
+
val: any;
|
|
75
|
+
}): any;
|
|
76
|
+
default?(_: {}): any;
|
|
77
|
+
}>;
|
|
78
|
+
export default _default;
|
|
79
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
80
|
+
new (): {
|
|
81
|
+
$slots: S;
|
|
82
|
+
};
|
|
83
|
+
};
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import { Severity } from "../types/forge-types";
|
|
2
|
+
export interface ForgeLoaderProps {
|
|
3
|
+
severity?: Severity;
|
|
4
|
+
}
|
|
5
|
+
declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<ForgeLoaderProps>, {
|
|
6
|
+
severity: string;
|
|
7
|
+
}>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<ForgeLoaderProps>, {
|
|
8
|
+
severity: string;
|
|
9
|
+
}>>>, {
|
|
10
|
+
severity: "secondary" | "info" | "success" | "warning" | "danger" | "primary";
|
|
11
|
+
}, {}>;
|
|
12
|
+
export default _default;
|
|
13
|
+
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
14
|
+
type __VLS_TypePropsToRuntimeProps<T> = {
|
|
15
|
+
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
16
|
+
type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
|
|
17
|
+
} : {
|
|
18
|
+
type: import('vue').PropType<T[K]>;
|
|
19
|
+
required: true;
|
|
20
|
+
};
|
|
21
|
+
};
|
|
22
|
+
type __VLS_WithDefaults<P, D> = {
|
|
23
|
+
[K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
|
|
24
|
+
default: D[K];
|
|
25
|
+
}> : P[K];
|
|
26
|
+
};
|
|
27
|
+
type __VLS_Prettify<T> = {
|
|
28
|
+
[K in keyof T]: T[K];
|
|
29
|
+
} & {};
|
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
import { DialogProps } from "primevue/dialog";
|
|
2
|
+
export interface ForgeModalProps extends DialogProps {
|
|
3
|
+
cancelText?: string;
|
|
4
|
+
submitText?: string;
|
|
5
|
+
showFooter?: boolean;
|
|
6
|
+
onConfirm?: Function | null;
|
|
7
|
+
}
|
|
8
|
+
declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<ForgeModalProps>, {
|
|
9
|
+
modal: boolean;
|
|
10
|
+
closable: boolean;
|
|
11
|
+
showHeader: boolean;
|
|
12
|
+
header: string;
|
|
13
|
+
cancelText: string;
|
|
14
|
+
cancelClass: string;
|
|
15
|
+
submitText: string;
|
|
16
|
+
submitClass: string;
|
|
17
|
+
showFooter: boolean;
|
|
18
|
+
onConfirm: null;
|
|
19
|
+
}>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
20
|
+
"update:visible": (...args: any[]) => void;
|
|
21
|
+
}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<ForgeModalProps>, {
|
|
22
|
+
modal: boolean;
|
|
23
|
+
closable: boolean;
|
|
24
|
+
showHeader: boolean;
|
|
25
|
+
header: string;
|
|
26
|
+
cancelText: string;
|
|
27
|
+
cancelClass: string;
|
|
28
|
+
submitText: string;
|
|
29
|
+
submitClass: string;
|
|
30
|
+
showFooter: boolean;
|
|
31
|
+
onConfirm: null;
|
|
32
|
+
}>>> & {
|
|
33
|
+
"onUpdate:visible"?: ((...args: any[]) => any) | undefined;
|
|
34
|
+
}, {
|
|
35
|
+
closable: boolean;
|
|
36
|
+
header: string;
|
|
37
|
+
submitText: string;
|
|
38
|
+
cancelText: string;
|
|
39
|
+
showFooter: boolean;
|
|
40
|
+
onConfirm: Function | null;
|
|
41
|
+
modal: boolean;
|
|
42
|
+
showHeader: boolean;
|
|
43
|
+
}, {}>, {
|
|
44
|
+
default?(_: {}): any;
|
|
45
|
+
loader?(_: {}): any;
|
|
46
|
+
}>;
|
|
47
|
+
export default _default;
|
|
48
|
+
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
49
|
+
type __VLS_TypePropsToRuntimeProps<T> = {
|
|
50
|
+
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
51
|
+
type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
|
|
52
|
+
} : {
|
|
53
|
+
type: import('vue').PropType<T[K]>;
|
|
54
|
+
required: true;
|
|
55
|
+
};
|
|
56
|
+
};
|
|
57
|
+
type __VLS_WithDefaults<P, D> = {
|
|
58
|
+
[K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
|
|
59
|
+
default: D[K];
|
|
60
|
+
}> : P[K];
|
|
61
|
+
};
|
|
62
|
+
type __VLS_Prettify<T> = {
|
|
63
|
+
[K in keyof T]: T[K];
|
|
64
|
+
} & {};
|
|
65
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
66
|
+
new (): {
|
|
67
|
+
$slots: S;
|
|
68
|
+
};
|
|
69
|
+
};
|
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
import { Severity } from "../types/forge-types";
|
|
2
|
+
import { TypedSchema } from "vee-validate";
|
|
3
|
+
export interface ForgeMultiSelectProps {
|
|
4
|
+
severity?: Severity;
|
|
5
|
+
showSelectAll?: boolean;
|
|
6
|
+
showClearSelection?: boolean;
|
|
7
|
+
expandLeft?: boolean;
|
|
8
|
+
selectValue?: string;
|
|
9
|
+
rules?: TypedSchema;
|
|
10
|
+
name?: string;
|
|
11
|
+
}
|
|
12
|
+
declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<ForgeMultiSelectProps>, {
|
|
13
|
+
severity: string;
|
|
14
|
+
expandLeft: boolean;
|
|
15
|
+
showClearSelection: boolean;
|
|
16
|
+
showSelectAll: boolean;
|
|
17
|
+
closeOnSelect: boolean;
|
|
18
|
+
selectValue: string;
|
|
19
|
+
name: string;
|
|
20
|
+
}>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
21
|
+
"update:modelValue": (...args: any[]) => void;
|
|
22
|
+
}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<ForgeMultiSelectProps>, {
|
|
23
|
+
severity: string;
|
|
24
|
+
expandLeft: boolean;
|
|
25
|
+
showClearSelection: boolean;
|
|
26
|
+
showSelectAll: boolean;
|
|
27
|
+
closeOnSelect: boolean;
|
|
28
|
+
selectValue: string;
|
|
29
|
+
name: string;
|
|
30
|
+
}>>> & {
|
|
31
|
+
"onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
|
|
32
|
+
}, {
|
|
33
|
+
severity: "secondary" | "info" | "success" | "warning" | "danger" | "primary";
|
|
34
|
+
name: string;
|
|
35
|
+
showSelectAll: boolean;
|
|
36
|
+
showClearSelection: boolean;
|
|
37
|
+
expandLeft: boolean;
|
|
38
|
+
selectValue: string;
|
|
39
|
+
}, {}>, Partial<Record<NonNullable<string | number>, (_: {
|
|
40
|
+
slot: string | number;
|
|
41
|
+
}) => any>>>;
|
|
42
|
+
export default _default;
|
|
43
|
+
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
44
|
+
type __VLS_TypePropsToRuntimeProps<T> = {
|
|
45
|
+
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
46
|
+
type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
|
|
47
|
+
} : {
|
|
48
|
+
type: import('vue').PropType<T[K]>;
|
|
49
|
+
required: true;
|
|
50
|
+
};
|
|
51
|
+
};
|
|
52
|
+
type __VLS_WithDefaults<P, D> = {
|
|
53
|
+
[K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
|
|
54
|
+
default: D[K];
|
|
55
|
+
}> : P[K];
|
|
56
|
+
};
|
|
57
|
+
type __VLS_Prettify<T> = {
|
|
58
|
+
[K in keyof T]: T[K];
|
|
59
|
+
} & {};
|
|
60
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
61
|
+
new (): {
|
|
62
|
+
$slots: S;
|
|
63
|
+
};
|
|
64
|
+
};
|