@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.
Files changed (36) hide show
  1. package/components/assetinfo/AssetInfo.vue.d.ts +5 -0
  2. package/components/buttondownload/ButtonDownload.vue.d.ts +31 -0
  3. package/components/carousel/Carousel.vue.d.ts +28 -0
  4. package/components/datatable/DataTable.vue.d.ts +2 -0
  5. package/components/datepicker/DatePicker.vue.d.ts +52 -0
  6. package/components/daypicker/DayPicker.vue.d.ts +52 -0
  7. package/components/dialogconfirm/DialogConfirm.vue.d.ts +1 -1
  8. package/components/dialogtransferlog/DialogTransferLog.vue.d.ts +16 -0
  9. package/components/dropdown/Dropdown.vue.d.ts +5 -0
  10. package/components/fieldwrapper/FieldWrapper.vue.d.ts +7 -0
  11. package/components/filtercontainer/FilterContainer.vue.d.ts +96 -65
  12. package/components/form/Form.vue.d.ts +2 -0
  13. package/components/icon/Icon.vue.d.ts +1 -0
  14. package/components/imagecompressor/ImageCompressor.vue.d.ts +8 -0
  15. package/components/index.d.ts +10 -0
  16. package/components/inputotp/InputOtp.vue.d.ts +3 -0
  17. package/components/steps/Steps.vue.d.ts +20 -0
  18. package/components/tabmenu/TabMenu.vue.d.ts +2 -2
  19. package/components/ts-helpers.d.ts +8 -0
  20. package/components/username/UserName.vue.d.ts +7 -2
  21. package/components/validatormessage/ValidatorMessage.vue.d.ts +12 -0
  22. package/event-bus/index.d.ts +5 -2
  23. package/package.json +15 -8
  24. package/plugins/WangsVue.d.ts +10 -0
  25. package/plugins/formValidation.d.ts +1 -0
  26. package/stats.html +1 -1
  27. package/style.css +1 -1
  28. package/utils/exportToExcel.util.d.ts +27 -0
  29. package/utils/getStatusSeverity.util.d.ts +33 -0
  30. package/utils/index.d.ts +4 -2
  31. package/utils/isBasic.util.d.ts +1 -0
  32. package/utils/role.util.d.ts +2 -0
  33. package/utils/xlsx.util.d.ts +19 -0
  34. package/wangsvue-fats.js +18731 -17662
  35. package/wangsvue-fats.system.js +72 -71
  36. package/utils/getSeverityByAssetStatus.util.d.ts +0 -3
@@ -4,7 +4,7 @@ import { ToastParams } from '../utils/toast.util';
4
4
  export type TableEvent = {
5
5
  tableName?: string;
6
6
  };
7
- export type Events<CustomEvents = Record<string, any>> = CustomEvents & {
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
- declare const eventBus: Emitter<Events<Record<string, any>>>;
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-alpha.98",
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
- ".": "./wangsvue-fats.js",
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
  }
@@ -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>(