@fewangsit/wangsvue-fats 1.0.0-alpha.99 → 1.0.0-rc.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/components/assetinfo/AssetInfo.vue.d.ts +5 -0
- package/components/buttondownload/ButtonDownload.vue.d.ts +31 -0
- package/components/buttonselecttree/ButtonSelectTree.vue.d.ts +9 -0
- package/components/carousel/Carousel.vue.d.ts +28 -0
- package/components/datatable/DataTable.vue.d.ts +2 -0
- package/components/datepicker/DatePicker.vue.d.ts +52 -0
- package/components/daypicker/DayPicker.vue.d.ts +52 -0
- package/components/dialogconfirm/DialogConfirm.vue.d.ts +1 -1
- package/components/dialogselecttree/DialogSelectTree.vue.d.ts +11 -1
- package/components/dialogtransferlog/DialogTransferLog.vue.d.ts +16 -0
- package/components/dropdown/Dropdown.vue.d.ts +5 -0
- package/components/fieldwrapper/FieldWrapper.vue.d.ts +7 -0
- package/components/filtercontainer/FilterContainer.vue.d.ts +96 -65
- package/components/form/Form.vue.d.ts +2 -0
- package/components/icon/Icon.vue.d.ts +1 -0
- package/components/imagecompressor/ImageCompressor.vue.d.ts +8 -0
- package/components/index.d.ts +9 -0
- package/components/inputotp/InputOtp.vue.d.ts +3 -0
- package/components/steps/Steps.vue.d.ts +20 -0
- package/components/tabmenu/TabMenu.vue.d.ts +1 -1
- package/components/ts-helpers.d.ts +8 -0
- package/components/username/UserName.vue.d.ts +7 -2
- package/components/validatormessage/ValidatorMessage.vue.d.ts +12 -0
- package/event-bus/index.d.ts +5 -2
- package/package.json +15 -8
- package/plugins/WangsVue.d.ts +6 -0
- package/plugins/formValidation.d.ts +1 -0
- package/stats.html +1 -1
- package/style.css +1 -1
- package/utils/exportToExcel.util.d.ts +27 -0
- package/utils/getStatusSeverity.util.d.ts +33 -0
- package/utils/index.d.ts +4 -2
- package/utils/isBasic.util.d.ts +1 -0
- package/utils/role.util.d.ts +2 -0
- package/utils/xlsx.util.d.ts +19 -0
- package/wangsvue-fats.js +21722 -20951
- package/wangsvue-fats.system.js +72 -71
- package/utils/getSeverityByAssetStatus.util.d.ts +0 -3
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { DefineComponent } from 'vue';
|
|
2
|
+
|
|
3
|
+
export interface ValidatorMessageProps {
|
|
4
|
+
/**
|
|
5
|
+
* Shows validator message if message exist.
|
|
6
|
+
*/
|
|
7
|
+
message?: string;
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
declare const ValidatorMessage: DefineComponent<ValidatorMessageProps>;
|
|
11
|
+
|
|
12
|
+
export default ValidatorMessage;
|
package/event-bus/index.d.ts
CHANGED
|
@@ -4,7 +4,7 @@ import { ToastParams } from '../utils/toast.util';
|
|
|
4
4
|
export type TableEvent = {
|
|
5
5
|
tableName?: string;
|
|
6
6
|
};
|
|
7
|
-
|
|
7
|
+
type PredefinedEvents = {
|
|
8
8
|
'data-table:apply-filter': TableEvent & {
|
|
9
9
|
filter: QueryParams;
|
|
10
10
|
};
|
|
@@ -58,6 +58,9 @@ export type Events<CustomEvents = Record<string, any>> = CustomEvents & {
|
|
|
58
58
|
overlayId: number;
|
|
59
59
|
};
|
|
60
60
|
};
|
|
61
|
-
|
|
61
|
+
export type Events<CustomEvents = undefined> = CustomEvents extends undefined
|
|
62
|
+
? PredefinedEvents
|
|
63
|
+
: CustomEvents & PredefinedEvents;
|
|
64
|
+
declare const eventBus: Emitter<PredefinedEvents>;
|
|
62
65
|
export declare const extendEventBus: <T>() => Emitter<Events<T>>;
|
|
63
66
|
export default eventBus;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@fewangsit/wangsvue-fats",
|
|
3
|
-
"version": "1.0.0-
|
|
3
|
+
"version": "1.0.0-rc.2",
|
|
4
4
|
"author": "Wangsit FE Developer",
|
|
5
5
|
"description": "Fixed Asset Tagsamurai VueJS Component Library",
|
|
6
6
|
"type": "module",
|
|
@@ -8,13 +8,20 @@
|
|
|
8
8
|
"types": "./main.d.ts",
|
|
9
9
|
"repository": "https://github.com/fewangsit/wangsvue",
|
|
10
10
|
"exports": {
|
|
11
|
-
".":
|
|
11
|
+
".": {
|
|
12
|
+
"types": "./main.d.ts",
|
|
13
|
+
"import": "./wangsvue-fats.js"
|
|
14
|
+
},
|
|
12
15
|
"./style.css": "./style.css",
|
|
13
|
-
"./config": "./config",
|
|
14
|
-
"./plugins": "./plugins",
|
|
15
|
-
"./directives": "./directives",
|
|
16
|
-
"./components": "./components",
|
|
17
|
-
"./event-bus": "./event-bus",
|
|
18
|
-
"./utils": "./utils"
|
|
16
|
+
"./config/*": "./config/*",
|
|
17
|
+
"./plugins/*": "./plugins/*",
|
|
18
|
+
"./directives/*": "./directives/*",
|
|
19
|
+
"./components/*": "./components/*",
|
|
20
|
+
"./event-bus/*": "./event-bus/*",
|
|
21
|
+
"./utils/*": "./utils/*"
|
|
22
|
+
},
|
|
23
|
+
"dependencies": {
|
|
24
|
+
"@wangs-ui/core": "latest",
|
|
25
|
+
"@wangs-ui/vue": "latest"
|
|
19
26
|
}
|
|
20
27
|
}
|
package/plugins/WangsVue.d.ts
CHANGED
|
@@ -7,6 +7,10 @@ import {
|
|
|
7
7
|
ButtonBulkActionLocaleConfig,
|
|
8
8
|
ButtonBulkActionProps,
|
|
9
9
|
} from '../components/buttonbulkaction/ButtonBulkAction.vue.d';
|
|
10
|
+
import {
|
|
11
|
+
ButtonDownloadLocaleConfig,
|
|
12
|
+
ButtonDownloadProps,
|
|
13
|
+
} from '../components/buttondownload/ButtonDownload.vue.d';
|
|
10
14
|
import { ButtonSearchLocaleConfig } from '../components/buttonsearch/ButtonSearch.vue.d';
|
|
11
15
|
import {
|
|
12
16
|
CalendarLocaleConfig,
|
|
@@ -70,6 +74,7 @@ export interface ComponentDefaultPropsConfig {
|
|
|
70
74
|
UserName?: UserNameComponentConfigs;
|
|
71
75
|
Dropdown?: DropdownProps;
|
|
72
76
|
TagType?: Partial<TagTypeProps>;
|
|
77
|
+
ButtonDownload?: Partial<ButtonDownloadProps>;
|
|
73
78
|
}
|
|
74
79
|
interface ComponentLocaleConfig {
|
|
75
80
|
FieldWrapper?: FieldWrapperLocaleConfig;
|
|
@@ -92,6 +97,7 @@ interface ComponentLocaleConfig {
|
|
|
92
97
|
UserName?: UserNameLocaleConfig;
|
|
93
98
|
DataTable?: DataTableLocaleConfig;
|
|
94
99
|
ImageCompressor?: ImageCompressorLocaleConfig;
|
|
100
|
+
ButtonDownload?: ButtonDownloadLocaleConfig;
|
|
95
101
|
}
|
|
96
102
|
export interface LocaleConfig {
|
|
97
103
|
global: Partial<typeof DEFAULT_GLOBAL_LOCALE_CONFIG>;
|
|
@@ -10,6 +10,7 @@ export interface FormContext<T> {
|
|
|
10
10
|
handleSubmit: VeeFormContext['handleSubmit'];
|
|
11
11
|
setValues: VeeFormContext['setValues'];
|
|
12
12
|
setFieldValue: VeeFormContext['setFieldValue'];
|
|
13
|
+
errors: VeeFormContext['errors'];
|
|
13
14
|
}
|
|
14
15
|
export declare const useForm: <T>() => FormContext<T>;
|
|
15
16
|
export declare const useField: <T>(
|