@fewangsit/wangsvue-fats 1.0.0-alpha.98 → 1.0.0-rc.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.
- package/components/assetinfo/AssetInfo.vue.d.ts +5 -0
- package/components/buttondownload/ButtonDownload.vue.d.ts +31 -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/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 +10 -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 +2 -2
- 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 +10 -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 +18731 -17662
- package/wangsvue-fats.system.js +72 -71
- package/utils/getSeverityByAssetStatus.util.d.ts +0 -3
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.1",
|
|
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
|
@@ -1,10 +1,16 @@
|
|
|
1
1
|
import { Plugin } from 'vue';
|
|
2
|
+
import { InputOtpRawPreset } from '@wangs-ui/core/dist/types/components/inputotp/inputotp.type';
|
|
3
|
+
import { TabMenuRawPreset } from '@wangs-ui/core/dist/types/components/tabmenu/tabmenu.type';
|
|
2
4
|
import { AnimationDefaultConfig } from '../components/animation/Animation.vue.d';
|
|
3
5
|
import { BadgeComponentConfigs } from '../components/badge/Badge.vue.d';
|
|
4
6
|
import {
|
|
5
7
|
ButtonBulkActionLocaleConfig,
|
|
6
8
|
ButtonBulkActionProps,
|
|
7
9
|
} from '../components/buttonbulkaction/ButtonBulkAction.vue.d';
|
|
10
|
+
import {
|
|
11
|
+
ButtonDownloadLocaleConfig,
|
|
12
|
+
ButtonDownloadProps,
|
|
13
|
+
} from '../components/buttondownload/ButtonDownload.vue.d';
|
|
8
14
|
import { ButtonSearchLocaleConfig } from '../components/buttonsearch/ButtonSearch.vue.d';
|
|
9
15
|
import {
|
|
10
16
|
CalendarLocaleConfig,
|
|
@@ -68,6 +74,7 @@ export interface ComponentDefaultPropsConfig {
|
|
|
68
74
|
UserName?: UserNameComponentConfigs;
|
|
69
75
|
Dropdown?: DropdownProps;
|
|
70
76
|
TagType?: Partial<TagTypeProps>;
|
|
77
|
+
ButtonDownload?: Partial<ButtonDownloadProps>;
|
|
71
78
|
}
|
|
72
79
|
interface ComponentLocaleConfig {
|
|
73
80
|
FieldWrapper?: FieldWrapperLocaleConfig;
|
|
@@ -90,6 +97,7 @@ interface ComponentLocaleConfig {
|
|
|
90
97
|
UserName?: UserNameLocaleConfig;
|
|
91
98
|
DataTable?: DataTableLocaleConfig;
|
|
92
99
|
ImageCompressor?: ImageCompressorLocaleConfig;
|
|
100
|
+
ButtonDownload?: ButtonDownloadLocaleConfig;
|
|
93
101
|
}
|
|
94
102
|
export interface LocaleConfig {
|
|
95
103
|
global: Partial<typeof DEFAULT_GLOBAL_LOCALE_CONFIG>;
|
|
@@ -100,6 +108,8 @@ export interface ComponentPresetOptions {
|
|
|
100
108
|
overlaypanel: OverlayPanelPassThroughOptions;
|
|
101
109
|
loading: LoadingPresetOptions;
|
|
102
110
|
username: UserNamePresetOptions;
|
|
111
|
+
inputotp: InputOtpRawPreset;
|
|
112
|
+
tabmenu: TabMenuRawPreset;
|
|
103
113
|
[key: string]: any;
|
|
104
114
|
}
|
|
105
115
|
export type WangsVueComponentConfig<
|
|
@@ -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>(
|