@fewangsit/wangsvue-fats 1.0.0-alpha.37 → 1.0.0-alpha.39

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 (58) hide show
  1. package/components/animation/Animation.vue.d.ts +8 -0
  2. package/components/badgegroup/BadgeGroup.vue.d.ts +2 -0
  3. package/components/basetree/BaseTree.vue.d.ts +2 -1
  4. package/components/button/Button.vue.d.ts +3 -2
  5. package/components/buttonbulkaction/ButtonBulkAction.vue.d.ts +1 -0
  6. package/components/buttonradio/ButtonRadio.vue.d.ts +1 -0
  7. package/components/buttonscan/ButtonScan.vue.d.ts +2 -1
  8. package/components/buttonselecttree/ButtonSelectTree.vue.d.ts +2 -1
  9. package/components/buttonsplit/ButtonSplit.vue.d.ts +7 -5
  10. package/components/buttontoggle/ButtonToggle.vue.d.ts +1 -0
  11. package/components/calendar/Calendar.vue.d.ts +32 -4
  12. package/components/card/Card.vue.d.ts +1 -0
  13. package/components/checkbox/Checkbox.vue.d.ts +1 -0
  14. package/components/datatable/DataTable.vue.d.ts +4 -2
  15. package/components/dialog/Dialog.vue.d.ts +1 -0
  16. package/components/dialogconfirm/DialogConfirm.vue.d.ts +1 -0
  17. package/components/dialogform/DialogForm.vue.d.ts +1 -0
  18. package/components/dialogselecttree/DialogSelectTree.vue.d.ts +3 -2
  19. package/components/dialogselectuser/DialogSelectUser.vue.d.ts +102 -0
  20. package/components/dialogselectuser/options/columns.d.ts +3 -0
  21. package/components/dropdown/Dropdown.vue.d.ts +4 -2
  22. package/components/editor/Editor.vue.d.ts +1 -0
  23. package/components/fileupload/FileUpload.vue.d.ts +1 -0
  24. package/components/filtercontainer/FilterContainer.vue.d.ts +5 -3
  25. package/components/form/Form.vue.d.ts +2 -1
  26. package/components/icon/Icon.vue.d.ts +2 -0
  27. package/components/image/Image.vue.d.ts +1 -0
  28. package/components/index.d.ts +1 -0
  29. package/components/inputemail/InputEmail.vue.d.ts +1 -0
  30. package/components/inputnumber/InputNumber.vue.d.ts +1 -0
  31. package/components/inputpassword/InputPassword.vue.d.ts +1 -0
  32. package/components/inputrangenumber/InputRangeNumber.vue.d.ts +1 -0
  33. package/components/inputtext/InputText.vue.d.ts +2 -1
  34. package/components/inputurl/InputURL.vue.d.ts +3 -1
  35. package/components/languagedropdown/LanguageDropdown.vue.d.ts +1 -0
  36. package/components/litedropdown/LiteDropdown.vue.d.ts +3 -1
  37. package/components/menu/Menu.vue.d.ts +2 -1
  38. package/components/multiselect/MultiSelect.vue.d.ts +1 -0
  39. package/components/overlaypanel/OverlayPanel.vue.d.ts +1 -0
  40. package/components/tabmenu/TabMenu.vue.d.ts +2 -1
  41. package/components/textarea/Textarea.vue.d.ts +2 -1
  42. package/components/timeline/Timeline.vue.d.ts +1 -1
  43. package/components/toast/Toast.vue.d.ts +2 -1
  44. package/components/toggleswitch/ToggleSwitch.vue.d.ts +1 -0
  45. package/components/transactionroles/TransactionRoles.vue.d.ts +58 -0
  46. package/components/tree/Tree.vue.d.ts +4 -2
  47. package/components/username/UserName.vue.d.ts +5 -0
  48. package/components/userwithicon/UserWithIcon.vue.d.ts +1 -0
  49. package/event-bus/index.d.ts +1 -1
  50. package/package.json +1 -1
  51. package/plugins/WangsVue.d.ts +33 -33
  52. package/plugins/formValidation.d.ts +3 -3
  53. package/plugins/i18n.d.ts +1 -1
  54. package/stats.html +4949 -0
  55. package/style.css +1 -1
  56. package/utils/index.d.ts +1 -3
  57. package/wangsvue-fats.es.js +47423 -119473
  58. package/wangsvue-fats.system.js +71 -236
@@ -0,0 +1,58 @@
1
+ import { DefineComponent } from 'vue';
2
+
3
+ export type TransactionRoles = Addon & {
4
+ borrowing: boolean;
5
+ assignment: boolean;
6
+ transfer: boolean;
7
+ disposal: boolean;
8
+ };
9
+
10
+ export type Addon = {
11
+ repairTicketing: boolean;
12
+ maintenance: boolean;
13
+ tracking: boolean;
14
+ audit: boolean;
15
+ assetControl: boolean;
16
+ };
17
+
18
+ type LicenseStatus = 'Managed' | 'Unmanaged' | null;
19
+
20
+ export type LicenseStatuses = {
21
+ fixedAsset: LicenseStatus;
22
+ repairTicketing: LicenseStatus;
23
+ maintenance: LicenseStatus;
24
+ tracking: LicenseStatus;
25
+ audit: LicenseStatus;
26
+ assetControl: LicenseStatus;
27
+ };
28
+
29
+ export type RoleData = {
30
+ [key: string]: unknown;
31
+ transactionRoles?: TransactionRoles;
32
+ addOn?: Addon;
33
+ transactions?: TransactionRoles; // For Policy Assets
34
+ licenseStatuses?: LicenseStatuses;
35
+ };
36
+
37
+ export interface TransactionRolesProps {
38
+ asset?: RoleData;
39
+ user?: Omit<RoleData, 'addon'>;
40
+ /**
41
+ * @default transaction
42
+ */
43
+ type?: 'transaction' | 'addon' | 'transaction-policy';
44
+ }
45
+
46
+ /**
47
+ * **TSVue V2 - TransactionRoles**
48
+ *
49
+ * _TransactionRoles is a component to show list of transaction role._
50
+ *
51
+ * --- ---
52
+ * ![TSVue](https://ik.imagekit.io/kurniadev/TS-HEAD-BLACK.png)
53
+ *
54
+ * @group buttons
55
+ */
56
+ declare const TransactionRoles: DefineComponent<TransactionRolesProps>;
57
+
58
+ export default TransactionRoles;
@@ -1,9 +1,11 @@
1
- import { Slot } from 'vue';
2
- import { ClassComponent, GlobalComponentConstructor } from '../ts-helpers';
3
1
  import { TreeSelectionKeys } from 'primevue/tree';
2
+ import { Slot } from 'vue';
3
+
4
4
  import { MenuItem } from '../../components/menuitem';
5
+
5
6
  import { BaseTreeProps, TreeNode } from '../basetree/BaseTree.vue.d';
6
7
  import { QueryParams, ShortFetchResponse } from '../datatable/DataTable.vue.d';
8
+ import { ClassComponent, GlobalComponentConstructor } from '../ts-helpers';
7
9
 
8
10
  export interface TreeProps extends BaseTreeProps {
9
11
  /**
@@ -37,6 +37,11 @@ export interface UserNameComponentConfigs {
37
37
  */
38
38
  type?: 'icon' | 'picture';
39
39
 
40
+ /**
41
+ * Whether to show the user's name. If false, only the user's icon will be shown.
42
+ * @default true
43
+ */
44
+ showUserName?: boolean;
40
45
  /**
41
46
  * Specify the field of user to be used as display name
42
47
  *
@@ -1,4 +1,5 @@
1
1
  import { UserDetail } from '@tagsamurai/fats-api-services/src/types/user.type';
2
+
2
3
  import { ClassComponent } from '../../components/ts-helpers';
3
4
 
4
5
  export interface UserWithIconProps {
@@ -1,6 +1,6 @@
1
+ import { Emitter } from './mitt';
1
2
  import { Data, QueryParams } from '../components/datatable/DataTable.vue.d';
2
3
  import { ToastParams } from '../utils/toast.util';
3
- import { Emitter } from './mitt';
4
4
  export type TableEvent = {
5
5
  tableName?: string;
6
6
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fewangsit/wangsvue-fats",
3
- "version": "1.0.0-alpha.37",
3
+ "version": "1.0.0-alpha.39",
4
4
  "author": "Wangsit FE Developer",
5
5
  "description": "Fixed Asset Tagsamurai VueJS Component Library",
6
6
  "type": "module",
@@ -1,54 +1,54 @@
1
1
  import { Plugin } from 'vue';
2
+ import { AnimationDefaultConfig } from '../components/animation/Animation.vue.d';
3
+ import { BadgeComponentConfigs } from '../components/badge/Badge.vue.d';
2
4
  import {
3
- FieldWrapperLocaleConfig,
4
- FieldWrapperProps,
5
- } from '../components/fieldwrapper/FieldWrapper.vue.d';
5
+ ButtonBulkActionLocaleConfig,
6
+ ButtonBulkActionProps,
7
+ } from '../components/buttonbulkaction/ButtonBulkAction.vue.d';
8
+ import { ButtonSearchLocaleConfig } from '../components/buttonsearch/ButtonSearch.vue.d';
6
9
  import {
7
- InputTextLocaleConfig,
8
- InputTextProps,
9
- } from '../components/inputtext/InputText.vue.d';
10
- import { TreeProps } from '../components/tree/Tree.vue.d';
11
- import { DialogConfirmLocaleConfig } from '../components/dialogconfirm/DialogConfirm.vue.d';
10
+ CalendarLocaleConfig,
11
+ CalendarPresetOptions,
12
+ } from '../components/calendar/Calendar.vue.d';
12
13
  import { CustomColumnLocaleConfig } from '../components/customcolumn/CustomColumn.vue.d';
13
- import { ButtonSearchLocaleConfig } from '../components/buttonsearch/ButtonSearch.vue.d';
14
- import { FilterContainerLocaleConfig } from '../components/filtercontainer/FilterContainer.vue.d';
15
- import { MultiSelectLocaleConfig } from '../components/multiselect/MultiSelect.vue.d';
14
+ import {
15
+ DataTableLocaleConfig,
16
+ DataTableProps,
17
+ } from '../components/datatable/DataTable.vue.d';
18
+ import { DialogConfirmLocaleConfig } from '../components/dialogconfirm/DialogConfirm.vue.d';
19
+ import { DialogFormLocaleConfig } from '../components/dialogform/DialogForm.vue.d';
16
20
  import {
17
21
  DropdownLocaleConfig,
18
22
  DropdownProps,
19
23
  } from '../components/dropdown/Dropdown.vue.d';
24
+ import {
25
+ FieldWrapperLocaleConfig,
26
+ FieldWrapperProps,
27
+ } from '../components/fieldwrapper/FieldWrapper.vue.d';
28
+ import { FilterContainerLocaleConfig } from '../components/filtercontainer/FilterContainer.vue.d';
29
+ import { ImageProps } from '../components/image/Image.vue.d';
30
+ import { ImageCompressorLocaleConfig } from '../components/imagecompressor/ImageCompressor.vue.d';
20
31
  import { InputCurrencyLocaleConfig } from '../components/inputcurrency/InputCurrency.vue.d';
21
- import { TextareaLocaleConfig } from '../components/textarea/Textarea.vue.d';
22
- import { InputrangeNumberLocaleConfig } from '../components/inputrangenumber/InputRangeNumber.vue.d';
23
- import { DialogFormLocaleConfig } from '../components/dialogform/DialogForm.vue.d';
24
- import { InputPhoneNumberLocaleConfig } from '../components/inputphonenumber/InputPhoneNumber.vue.d';
32
+ import { InputEmailProps } from '../components/inputemail/InputEmail.vue.d';
25
33
  import { InputNumberLocaleConfig } from '../components/inputnumber/InputNumber.vue.d';
34
+ import { InputPhoneNumberLocaleConfig } from '../components/inputphonenumber/InputPhoneNumber.vue.d';
35
+ import { InputrangeNumberLocaleConfig } from '../components/inputrangenumber/InputRangeNumber.vue.d';
26
36
  import {
27
- CalendarLocaleConfig,
28
- CalendarPresetOptions,
29
- } from '../components/calendar/Calendar.vue.d';
30
- import { OverlayPanelPassThroughOptions } from '../components/overlaypanel/OverlayPanel.vue.d';
37
+ InputTextLocaleConfig,
38
+ InputTextProps,
39
+ } from '../components/inputtext/InputText.vue.d';
31
40
  import { InputURLProps } from '../components/inputurl/InputURL.vue.d';
32
- import { InputEmailProps } from '../components/inputemail/InputEmail.vue.d';
33
- import { ImageProps } from '../components/image/Image.vue.d';
34
- import { MenuLocaleConfig } from '../components/menu/Menu.vue.d';
35
- import {
36
- ButtonBulkActionLocaleConfig,
37
- ButtonBulkActionProps,
38
- } from '../components/buttonbulkaction/ButtonBulkAction.vue.d';
39
- import { AnimationDefaultConfig } from '../components/animation/Animation.vue.d';
40
41
  import { LoadingPresetOptions } from '../components/loading/Loading.vue.d';
41
- import {
42
- DataTableLocaleConfig,
43
- DataTableProps,
44
- } from '../components/datatable/DataTable.vue.d';
45
- import { BadgeComponentConfigs } from '../components/badge/Badge.vue.d';
42
+ import { MenuLocaleConfig } from '../components/menu/Menu.vue.d';
43
+ import { MultiSelectLocaleConfig } from '../components/multiselect/MultiSelect.vue.d';
44
+ import { OverlayPanelPassThroughOptions } from '../components/overlaypanel/OverlayPanel.vue.d';
45
+ import { TextareaLocaleConfig } from '../components/textarea/Textarea.vue.d';
46
+ import { TreeProps } from '../components/tree/Tree.vue.d';
46
47
  import {
47
48
  UserNameComponentConfigs,
48
49
  UserNameLocaleConfig,
49
50
  UserNamePresetOptions,
50
51
  } from '../components/username/UserName.vue.d';
51
- import { ImageCompressorLocaleConfig } from '../components/imagecompressor/ImageCompressor.vue.d';
52
52
  import { type UseToastConfig } from '../utils/toast.util';
53
53
  /**
54
54
  * A Record of component names with theirs props interface
@@ -1,10 +1,10 @@
1
- import { MaybeRef, MaybeRefOrGetter } from 'vue';
2
1
  import {
3
- FormContext as VeeFormContext,
4
2
  FieldContext,
5
- RuleExpression,
6
3
  FieldOptions,
4
+ FormContext as VeeFormContext,
5
+ RuleExpression,
7
6
  } from 'vee-validate';
7
+ import { MaybeRef, MaybeRefOrGetter } from 'vue';
8
8
  export interface FormContext<T> {
9
9
  values: T;
10
10
  handleSubmit: VeeFormContext['handleSubmit'];
package/plugins/i18n.d.ts CHANGED
@@ -1,5 +1,5 @@
1
- import { App, Ref } from 'vue';
2
1
  import { AxiosResponse } from 'axios';
2
+ import { App, Ref } from 'vue';
3
3
  export type Locale = string;
4
4
  export interface LanguageOption {
5
5
  /**