@fewangsit/wangsvue-fats 1.0.0-alpha.34 → 1.0.0-alpha.36

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 (130) hide show
  1. package/components/animation/Animation.vue.d.ts +6 -6
  2. package/components/approverinfo/ApproverInfo.vue.d.ts +36 -36
  3. package/components/assetinfo/AssetInfo.vue.d.ts +21 -18
  4. package/components/badge/Badge.vue.d.ts +46 -46
  5. package/components/badgegroup/BadgeGroup.vue.d.ts +38 -38
  6. package/components/basecomponent/index.d.ts +15 -15
  7. package/components/basetree/BaseTree.vue.d.ts +458 -458
  8. package/components/basetree/TreeNode.vue.d.ts +25 -25
  9. package/components/breadcrumb/Breadcrumb.vue.d.ts +7 -7
  10. package/components/button/Button.vue.d.ts +142 -147
  11. package/components/buttonImportExcel/ButtonImportExcel.vue.d.ts +35 -0
  12. package/components/buttonbulkaction/ButtonBulkAction.vue.d.ts +73 -73
  13. package/components/buttoncopy/ButtonCopy.vue.d.ts +7 -7
  14. package/components/buttondownload/ButtonDownload.vue.d.ts +26 -26
  15. package/components/buttonfilter/ButtonFilter.vue.d.ts +4 -4
  16. package/components/buttonradio/ButtonRadio.vue.d.ts +189 -189
  17. package/components/buttonscan/ButtonScan.vue.d.ts +154 -154
  18. package/components/buttonsearch/ButtonSearch.vue.d.ts +13 -13
  19. package/components/buttonselecttree/ButtonSelectTree.vue.d.ts +164 -164
  20. package/components/buttonsplit/ButtonSplit.vue.d.ts +350 -0
  21. package/components/buttonsync/ButtonSync.vue.d.ts +10 -10
  22. package/components/buttontoggle/ButtonToggle.vue.d.ts +4 -4
  23. package/components/buttonviewlog/ButtonViewLog.vue.d.ts +6 -6
  24. package/components/calendar/Calendar.vue.d.ts +469 -469
  25. package/components/card/Card.vue.d.ts +82 -82
  26. package/components/checkbox/Checkbox.vue.d.ts +245 -245
  27. package/components/customcolumn/CustomColumn.vue.d.ts +21 -21
  28. package/components/datatable/DataTable.vue.d.ts +595 -595
  29. package/components/dialog/Dialog.vue.d.ts +367 -367
  30. package/components/dialogconfirm/DialogConfirm.vue.d.ts +117 -117
  31. package/components/dialogform/DialogForm.vue.d.ts +288 -288
  32. package/components/dialogselecttree/DialogSelectTree.vue.d.ts +98 -98
  33. package/components/dropdown/Dropdown.vue.d.ts +226 -226
  34. package/components/editor/Editor.vue.d.ts +156 -156
  35. package/components/fieldwrapper/FieldWrapper.vue.d.ts +48 -48
  36. package/components/fileupload/FileUpload.vue.d.ts +132 -132
  37. package/components/filtercontainer/FilterContainer.vue.d.ts +116 -113
  38. package/components/form/Form.vue.d.ts +258 -258
  39. package/components/icon/Icon.vue.d.ts +235 -237
  40. package/components/image/Image.vue.d.ts +306 -306
  41. package/components/imagecompressor/ImageCompressor.vue.d.ts +186 -186
  42. package/components/index.d.ts +57 -58
  43. package/components/inputbadge/InputBadge.vue.d.ts +90 -90
  44. package/components/inputcurrency/InputCurrency.vue.d.ts +126 -126
  45. package/components/inputcurrency/helpers/currency.helper.d.ts +3 -3
  46. package/components/inputnumber/InputNumber.vue.d.ts +245 -245
  47. package/components/inputpassword/InputPassword.vue.d.ts +19 -19
  48. package/components/inputphonenumber/InputPhoneNumber.vue.d.ts +68 -68
  49. package/components/inputrangenumber/InputRangeNumber.vue.d.ts +88 -88
  50. package/components/inputsearch/InputSearch.vue.d.ts +14 -11
  51. package/components/inputtext/InputText.vue.d.ts +281 -281
  52. package/components/inputurl/InputURL.vue.d.ts +9 -6
  53. package/components/invisiblefield/InvisibleField.vue.d.ts +18 -18
  54. package/components/languagedropdown/LanguageDropdown.vue.d.ts +32 -0
  55. package/components/litedropdown/LiteDropdown.vue.d.ts +64 -64
  56. package/components/loading/Loading.vue.d.ts +5 -5
  57. package/components/loading/store/loading.store.d.ts +3 -3
  58. package/components/menu/Menu.vue.d.ts +282 -282
  59. package/components/menuitem/index.d.ts +84 -84
  60. package/components/multiselect/MultiSelect.vue.d.ts +161 -161
  61. package/components/overlaypanel/OverlayPanel.vue.d.ts +207 -207
  62. package/components/passthrough/index.d.ts +8 -8
  63. package/components/tabmenu/TabMenu.vue.d.ts +185 -185
  64. package/components/textarea/Textarea.vue.d.ts +131 -131
  65. package/components/timeline/Timeline.vue.d.ts +60 -60
  66. package/components/toast/Toast.vue.d.ts +265 -265
  67. package/components/toggleswitch/ToggleSwitch.vue.d.ts +211 -211
  68. package/components/tree/Tree.vue.d.ts +116 -116
  69. package/components/tree/helpers/filterNodeKeys.helper.d.ts +4 -4
  70. package/components/tree/helpers/flattenTreeNodeChildren.helper.d.ts +1 -1
  71. package/components/treesearchinput/TreeSearchInput.vue.d.ts +16 -0
  72. package/components/ts-helpers.d.ts +41 -43
  73. package/components/username/UserName.vue.d.ts +71 -71
  74. package/components/userwithicon/UserWithIcon.vue.d.ts +8 -8
  75. package/directives/focus.d.ts +1 -1
  76. package/event-bus/index.d.ts +51 -51
  77. package/event-bus/mitt.d.ts +21 -24
  78. package/package.json +8 -4
  79. package/plugins/WangsVue.d.ts +226 -226
  80. package/plugins/formValidation.d.ts +11 -11
  81. package/plugins/i18n-extension.d.ts +1 -1
  82. package/plugins/i18n.d.ts +80 -80
  83. package/style.css +1 -1
  84. package/utils/date.util.d.ts +53 -53
  85. package/utils/index.d.ts +2 -28
  86. package/utils/listenSidebarChanges.util.d.ts +9 -9
  87. package/utils/object.util.d.ts +8 -8
  88. package/utils/role.util.d.ts +43 -44
  89. package/utils/toast.util.d.ts +78 -78
  90. package/wangsvue-fats.es.js +117520 -117825
  91. package/wangsvue-fats.system.js +234 -234
  92. package/components/buttonscan/helpers/getErrorCode.helper.d.ts +0 -3
  93. package/components/buttonscan/helpers/index.d.ts +0 -1
  94. package/components/buttonscan/workers/scanner.worker.d.ts +0 -1
  95. package/components/calendar/BaseCalendar.vue.d.ts +0 -127
  96. package/components/customcolumn/ColumnList.vue.d.ts +0 -47
  97. package/components/customcolumn/helpers/setVisibilityColumn.helper.d.ts +0 -16
  98. package/components/datatable/MultiRow.vue.d.ts +0 -36
  99. package/components/datatable/helpers/adjustMenuPosition.helper.d.ts +0 -1
  100. package/components/datatable/helpers/filter.helper.d.ts +0 -38
  101. package/components/datatable/helpers/index.d.ts +0 -6
  102. package/components/datatable/helpers/readConfig.helper.d.ts +0 -5
  103. package/components/datatable/store/dataTable.store.d.ts +0 -25
  104. package/components/editor/CodeSnippetAdapter.vue.d.ts +0 -152
  105. package/components/editor/EditorButton.vue.d.ts +0 -35
  106. package/components/editor/MentionList.vue.d.ts +0 -49
  107. package/components/editor/MentionSection.vue.d.ts +0 -152
  108. package/components/editor/codeSnippetExtension.d.ts +0 -3
  109. package/components/editor/mentionSectionExtension.d.ts +0 -3
  110. package/components/editor/suggestion.d.ts +0 -2
  111. package/components/filtercontainer/helpers/applyFilter.helper.d.ts +0 -14
  112. package/components/filtercontainer/helpers/formatDateTimeRange.helper.d.ts +0 -7
  113. package/components/filtercontainer/helpers/getOption.helper.d.ts +0 -12
  114. package/components/imagecompressor/BackgroundImageCropper.vue.d.ts +0 -59
  115. package/components/imagecompressor/ImageInputInfo.vue.d.ts +0 -55
  116. package/components/inputphonenumber/helpers/getUserLocation.helper.d.ts +0 -8
  117. package/components/menu/helpers/filterMenu.helper.d.ts +0 -15
  118. package/components/menu/helpers/index.d.ts +0 -1
  119. package/components/menuitem/MenuItem.vue +0 -70
  120. package/components/menuitem/MenuItem.vue.d.ts +0 -39
  121. package/components/timeline/TimelineContentByType.vue.d.ts +0 -64
  122. package/components/transactionroles/TransactionRoles.vue.d.ts +0 -58
  123. package/components/tree/helpers/index.d.ts +0 -3
  124. package/utils/addAttachment.util.d.ts +0 -59
  125. package/utils/exportToExcel.util.d.ts +0 -20
  126. package/utils/filterOptions.util.d.ts +0 -5
  127. package/utils/genPlaceholder.util.d.ts +0 -13
  128. package/utils/getAttachmentIcon.util.d.ts +0 -8
  129. package/utils/mergePropsWithDefaults.util.d.ts +0 -23
  130. package/utils/textFormatter.util.d.ts +0 -29
@@ -1,152 +0,0 @@
1
- declare const _default: import('vue').DefineComponent<
2
- {
3
- editor: {
4
- type: import('vue').PropType<
5
- import('@tiptap/vue-3').NodeViewProps['editor']
6
- >;
7
- required: true;
8
- };
9
- node: {
10
- type: import('vue').PropType<
11
- import('@tiptap/vue-3').NodeViewProps['node']
12
- >;
13
- required: true;
14
- };
15
- decorations: {
16
- type: import('vue').PropType<
17
- import('@tiptap/vue-3').NodeViewProps['decorations']
18
- >;
19
- required: true;
20
- };
21
- selected: {
22
- type: import('vue').PropType<
23
- import('@tiptap/vue-3').NodeViewProps['selected']
24
- >;
25
- required: true;
26
- };
27
- extension: {
28
- type: import('vue').PropType<
29
- import('@tiptap/vue-3').NodeViewProps['extension']
30
- >;
31
- required: true;
32
- };
33
- getPos: {
34
- type: import('vue').PropType<
35
- import('@tiptap/vue-3').NodeViewProps['getPos']
36
- >;
37
- required: true;
38
- };
39
- updateAttributes: {
40
- type: import('vue').PropType<
41
- import('@tiptap/vue-3').NodeViewProps['updateAttributes']
42
- >;
43
- required: true;
44
- };
45
- deleteNode: {
46
- type: import('vue').PropType<
47
- import('@tiptap/vue-3').NodeViewProps['deleteNode']
48
- >;
49
- required: true;
50
- };
51
- view: {
52
- type: import('vue').PropType<
53
- import('@tiptap/vue-3').NodeViewProps['view']
54
- >;
55
- required: true;
56
- };
57
- innerDecorations: {
58
- type: import('vue').PropType<
59
- import('@tiptap/vue-3').NodeViewProps['innerDecorations']
60
- >;
61
- required: true;
62
- };
63
- HTMLAttributes: {
64
- type: import('vue').PropType<
65
- import('@tiptap/vue-3').NodeViewProps['HTMLAttributes']
66
- >;
67
- required: true;
68
- };
69
- },
70
- {},
71
- unknown,
72
- {},
73
- {},
74
- import('vue').ComponentOptionsMixin,
75
- import('vue').ComponentOptionsMixin,
76
- {},
77
- string,
78
- import('vue').PublicProps,
79
- Readonly<
80
- import('vue').ExtractPropTypes<{
81
- editor: {
82
- type: import('vue').PropType<
83
- import('@tiptap/vue-3').NodeViewProps['editor']
84
- >;
85
- required: true;
86
- };
87
- node: {
88
- type: import('vue').PropType<
89
- import('@tiptap/vue-3').NodeViewProps['node']
90
- >;
91
- required: true;
92
- };
93
- decorations: {
94
- type: import('vue').PropType<
95
- import('@tiptap/vue-3').NodeViewProps['decorations']
96
- >;
97
- required: true;
98
- };
99
- selected: {
100
- type: import('vue').PropType<
101
- import('@tiptap/vue-3').NodeViewProps['selected']
102
- >;
103
- required: true;
104
- };
105
- extension: {
106
- type: import('vue').PropType<
107
- import('@tiptap/vue-3').NodeViewProps['extension']
108
- >;
109
- required: true;
110
- };
111
- getPos: {
112
- type: import('vue').PropType<
113
- import('@tiptap/vue-3').NodeViewProps['getPos']
114
- >;
115
- required: true;
116
- };
117
- updateAttributes: {
118
- type: import('vue').PropType<
119
- import('@tiptap/vue-3').NodeViewProps['updateAttributes']
120
- >;
121
- required: true;
122
- };
123
- deleteNode: {
124
- type: import('vue').PropType<
125
- import('@tiptap/vue-3').NodeViewProps['deleteNode']
126
- >;
127
- required: true;
128
- };
129
- view: {
130
- type: import('vue').PropType<
131
- import('@tiptap/vue-3').NodeViewProps['view']
132
- >;
133
- required: true;
134
- };
135
- innerDecorations: {
136
- type: import('vue').PropType<
137
- import('@tiptap/vue-3').NodeViewProps['innerDecorations']
138
- >;
139
- required: true;
140
- };
141
- HTMLAttributes: {
142
- type: import('vue').PropType<
143
- import('@tiptap/vue-3').NodeViewProps['HTMLAttributes']
144
- >;
145
- required: true;
146
- };
147
- }>
148
- >,
149
- {},
150
- {}
151
- >;
152
- export default _default;
@@ -1,3 +0,0 @@
1
- import { Node } from '@tiptap/core';
2
- declare const _default: Node<any, any>;
3
- export default _default;
@@ -1,3 +0,0 @@
1
- import { Node } from '@tiptap/core';
2
- declare const _default: Node<any, any>;
3
- export default _default;
@@ -1,2 +0,0 @@
1
- declare const suggestion: () => any;
2
- export default suggestion;
@@ -1,14 +0,0 @@
1
- import { GenericObject } from 'vee-validate';
2
- import { FilterField } from '../FilterContainer.vue.d';
3
- declare const applyFilter: (
4
- values: GenericObject,
5
- tableName: string,
6
- emit?: (...args: any[]) => any,
7
- ) => void;
8
- export declare const applyStaticFilter: (
9
- values: GenericObject,
10
- tableName: string,
11
- fields: FilterField[],
12
- emit?: (...args: any[]) => any,
13
- ) => void;
14
- export default applyFilter;
@@ -1,7 +0,0 @@
1
- /**
2
- * Format the time in range selection when not show time.
3
- * It will adjust the end range time to 23.59.59 and the start to 00.00.00
4
- *
5
- * @returns {number[]} - The formatted date time range in millis. [start, end]
6
- */
7
- export declare const formatDateTimeRange: (e: number[]) => number[];
@@ -1,12 +0,0 @@
1
- import {
2
- FilterOptions,
3
- LoadingFilters,
4
- MultiSelectFilterField,
5
- } from '../FilterContainer.vue.d';
6
- declare const getOptions: (
7
- fn: MultiSelectFilterField['fetchOptionFn'],
8
- field: string,
9
- filterOption: FilterOptions,
10
- loading: LoadingFilters,
11
- ) => Promise<void>;
12
- export default getOptions;
@@ -1,59 +0,0 @@
1
- declare function __VLS_template(): {
2
- default?(_: {}): any;
3
- };
4
- declare const __VLS_component: import('vue').DefineComponent<
5
- __VLS_TypePropsToOption<{
6
- touchMove?: unknown;
7
- mouseMove?: unknown;
8
- touchResize?: unknown;
9
- wheelResize?: unknown;
10
- }>,
11
- {},
12
- unknown,
13
- {},
14
- {},
15
- import('vue').ComponentOptionsMixin,
16
- import('vue').ComponentOptionsMixin,
17
- {
18
- move: (e: any) => void;
19
- resize: (e: any) => void;
20
- },
21
- string,
22
- import('vue').PublicProps,
23
- Readonly<
24
- import('vue').ExtractPropTypes<
25
- __VLS_TypePropsToOption<{
26
- touchMove?: unknown;
27
- mouseMove?: unknown;
28
- touchResize?: unknown;
29
- wheelResize?: unknown;
30
- }>
31
- >
32
- > & {
33
- onResize?: (e: any) => any;
34
- onMove?: (e: any) => any;
35
- },
36
- {},
37
- {}
38
- >;
39
- declare const _default: __VLS_WithTemplateSlots<
40
- typeof __VLS_component,
41
- ReturnType<typeof __VLS_template>
42
- >;
43
- export default _default;
44
- type __VLS_WithTemplateSlots<T, S> = T & {
45
- new (): {
46
- $slots: S;
47
- };
48
- };
49
- type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
50
- type __VLS_TypePropsToOption<T> = {
51
- [K in keyof T]-?: {} extends Pick<T, K>
52
- ? {
53
- type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
54
- }
55
- : {
56
- type: import('vue').PropType<T[K]>;
57
- required: true;
58
- };
59
- };
@@ -1,55 +0,0 @@
1
- declare function __VLS_template(): {
2
- default?(_: {}): any;
3
- };
4
- declare const __VLS_component: import('vue').DefineComponent<
5
- __VLS_TypePropsToOption<{
6
- customRequirements?: string[];
7
- showInfo: boolean;
8
- showAddButton?: boolean;
9
- }>,
10
- {},
11
- unknown,
12
- {},
13
- {},
14
- import('vue').ComponentOptionsMixin,
15
- import('vue').ComponentOptionsMixin,
16
- {
17
- addPhoto: () => void;
18
- },
19
- string,
20
- import('vue').PublicProps,
21
- Readonly<
22
- import('vue').ExtractPropTypes<
23
- __VLS_TypePropsToOption<{
24
- customRequirements?: string[];
25
- showInfo: boolean;
26
- showAddButton?: boolean;
27
- }>
28
- >
29
- > & {
30
- onAddPhoto?: () => any;
31
- },
32
- {},
33
- {}
34
- >;
35
- declare const _default: __VLS_WithTemplateSlots<
36
- typeof __VLS_component,
37
- ReturnType<typeof __VLS_template>
38
- >;
39
- export default _default;
40
- type __VLS_WithTemplateSlots<T, S> = T & {
41
- new (): {
42
- $slots: S;
43
- };
44
- };
45
- type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
46
- type __VLS_TypePropsToOption<T> = {
47
- [K in keyof T]-?: {} extends Pick<T, K>
48
- ? {
49
- type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
50
- }
51
- : {
52
- type: import('vue').PropType<T[K]>;
53
- required: true;
54
- };
55
- };
@@ -1,8 +0,0 @@
1
- interface LocationData {
2
- timezone: string;
3
- region: string;
4
- city: string;
5
- country: string;
6
- }
7
- export default function getUserLocation(): LocationData;
8
- export {};
@@ -1,15 +0,0 @@
1
- import { MenuItem } from '../../menuitem';
2
- /**
3
- * Filters the menu items to return only the visible ones.
4
- * If no visible menu items are found, it returns a menu with a label 'No Option Available'.
5
- *
6
- * @param menuItems - The array of menu items to filter.
7
- * @param noOptionLabel - The label of menu to be shown when no available option. The value is from locale configuration each project.
8
- *
9
- * @returns - The array of visible menu items or an array with a single menu item with label 'No Option Available'.
10
- */
11
- declare const filterVisibleMenu: (
12
- menuItems: MenuItem[],
13
- noOptionLabel?: string,
14
- ) => MenuItem[];
15
- export default filterVisibleMenu;
@@ -1 +0,0 @@
1
- export { default as filterVisibleMenu } from './filterMenu.helper';
@@ -1,70 +0,0 @@
1
- <script setup lang="ts">
2
- import { WangsIcons } from 'lib/components/icon/Icon.vue.d';
3
- import { MenuRouterBindProps } from '../menu/Menu.vue.d';
4
- import { MenuItem } from '.';
5
- import Icon from '../icon/Icon.vue';
6
-
7
- const props = defineProps<{
8
- item: MenuItem;
9
- routerProps: MenuRouterBindProps;
10
- }>();
11
- </script>
12
-
13
- <template>
14
- <router-link
15
- v-slot="{ href, navigate }"
16
- v-if="props.item.route"
17
- :to="props.item.route"
18
- custom
19
- >
20
- <a :href="href" v-bind="routerProps?.action" @click="navigate">
21
- <Icon
22
- v-if="props.item.icon"
23
- v-bind="routerProps?.icon"
24
- :icon="props.item.icon"
25
- />
26
- <span v-bind="routerProps?.label">{{ props.item.label }}</span>
27
- </a>
28
- </router-link>
29
-
30
- <a
31
- v-else-if="props.item.url"
32
- :href="props.item.url"
33
- :target="props.item.target"
34
- v-bind="routerProps?.action"
35
- @click.stop
36
- >
37
- <Icon
38
- v-if="props.item.icon"
39
- v-bind="routerProps?.icon"
40
- :icon="props.item.icon as WangsIcons"
41
- />
42
- <span v-bind="routerProps?.label">{{ props.item.label }}</span>
43
- </a>
44
-
45
- <a
46
- v-else
47
- v-bind="routerProps?.action"
48
- aria-hidden="true"
49
- data-pc-section="action"
50
- tabindex="-1"
51
- >
52
- <Icon
53
- v-if="props.item.icon"
54
- :icon="props.item.icon as WangsIcons"
55
- :severity="props.item.danger ? 'danger' : undefined"
56
- v-bind="routerProps?.icon"
57
- />
58
-
59
- <span
60
- v-bind="
61
- $preset.menu?.label({
62
- props: { danger: props.item.danger },
63
- })
64
- "
65
- data-pc-section="label"
66
- >
67
- {{ props.item.label }}
68
- </span>
69
- </a>
70
- </template>
@@ -1,39 +0,0 @@
1
- import { MenuRouterBindProps } from '../menu/Menu.vue.d';
2
- import { MenuItem } from '.';
3
- declare const _default: import('vue').DefineComponent<
4
- __VLS_TypePropsToOption<{
5
- item: MenuItem;
6
- routerProps: MenuRouterBindProps;
7
- }>,
8
- {},
9
- unknown,
10
- {},
11
- {},
12
- import('vue').ComponentOptionsMixin,
13
- import('vue').ComponentOptionsMixin,
14
- {},
15
- string,
16
- import('vue').PublicProps,
17
- Readonly<
18
- import('vue').ExtractPropTypes<
19
- __VLS_TypePropsToOption<{
20
- item: MenuItem;
21
- routerProps: MenuRouterBindProps;
22
- }>
23
- >
24
- >,
25
- {},
26
- {}
27
- >;
28
- export default _default;
29
- type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
30
- type __VLS_TypePropsToOption<T> = {
31
- [K in keyof T]-?: {} extends Pick<T, K>
32
- ? {
33
- type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
34
- }
35
- : {
36
- type: import('vue').PropType<T[K]>;
37
- required: true;
38
- };
39
- };
@@ -1,64 +0,0 @@
1
- import {
2
- AttachmentFile,
3
- AttachmentLink,
4
- DetailBullet,
5
- DetailJSONContent,
6
- DetailText,
7
- DetailUserText,
8
- LinkTaskIframeEmbed,
9
- LinkTaskURL,
10
- DetailBadge,
11
- } from './Timeline.vue.d';
12
- declare const _default: import('vue').DefineComponent<
13
- __VLS_TypePropsToOption<{
14
- detail:
15
- | AttachmentFile
16
- | LinkTaskIframeEmbed
17
- | LinkTaskURL
18
- | AttachmentLink
19
- | DetailText
20
- | DetailUserText
21
- | DetailBullet
22
- | DetailJSONContent
23
- | DetailBadge;
24
- }>,
25
- {},
26
- unknown,
27
- {},
28
- {},
29
- import('vue').ComponentOptionsMixin,
30
- import('vue').ComponentOptionsMixin,
31
- {},
32
- string,
33
- import('vue').PublicProps,
34
- Readonly<
35
- import('vue').ExtractPropTypes<
36
- __VLS_TypePropsToOption<{
37
- detail:
38
- | AttachmentFile
39
- | LinkTaskIframeEmbed
40
- | LinkTaskURL
41
- | AttachmentLink
42
- | DetailText
43
- | DetailUserText
44
- | DetailBullet
45
- | DetailJSONContent
46
- | DetailBadge;
47
- }>
48
- >
49
- >,
50
- {},
51
- {}
52
- >;
53
- export default _default;
54
- type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
55
- type __VLS_TypePropsToOption<T> = {
56
- [K in keyof T]-?: {} extends Pick<T, K>
57
- ? {
58
- type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
59
- }
60
- : {
61
- type: import('vue').PropType<T[K]>;
62
- required: true;
63
- };
64
- };
@@ -1,58 +0,0 @@
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,3 +0,0 @@
1
- import { default as flattenTreeNodeChildren } from './flattenTreeNodeChildren.helper';
2
- import { filterNodeKeys, parseNodeKeys } from './filterNodeKeys.helper';
3
- export { filterNodeKeys, parseNodeKeys, flattenTreeNodeChildren };
@@ -1,59 +0,0 @@
1
- export type FileType =
2
- | 'link'
3
- | 'image'
4
- | 'txt'
5
- | 'doc'
6
- | 'xls'
7
- | 'pdf'
8
- | 'csv'
9
- | 'html'
10
- | 'json'
11
- | 'mp4'
12
- | 'mkv'
13
- | 'compressed'
14
- | 'unknown';
15
- export type FormattedFile = {
16
- name: string;
17
- type: string;
18
- size: number;
19
- webkitRelativePath: string;
20
- fileType: FileType;
21
- file: File;
22
- imgPreviewURL?: string;
23
- uploadProgress?: number;
24
- controller?: AbortController;
25
- isCanceled?: boolean;
26
- };
27
- /**
28
- * Maps a mime type to a custom file type.
29
- *
30
- * @param {string} mimeType
31
- * @returns {CustomFileType}
32
- */
33
- export declare const getFileType: (mimeType: string) => FileType;
34
- /**
35
- * Formats a file into a FormattedFile object.
36
- *
37
- * @param file The file to be formatted.
38
- * @returns A FormattedFile object.
39
- */
40
- export declare const formatFile: (file: File) => FormattedFile;
41
- /**
42
- * Checks if a file is under the maximum size limit.
43
- *
44
- * @param file The file to be checked.
45
- * @param customFileSize The maximum size limit in megabytes. @default 1
46
- * @returns True if the file is under the maximum size limit, false otherwise.
47
- */
48
- export declare const validateFileSize: (
49
- file: File,
50
- customFileSize?: number,
51
- ) => boolean;
52
- /**
53
- * Checks if a file has a valid type.
54
- * Make sure user doesn't upload a folder.
55
- *
56
- * @param file The file to be checked.
57
- * @returns True if the file has a valid type, false otherwise.
58
- */
59
- export declare const validateFileType: (file: File) => boolean;
@@ -1,20 +0,0 @@
1
- export interface ITable {
2
- headers: string[];
3
- data: Record<string, unknown>[];
4
- tableName: string;
5
- tableTitle?: string;
6
- }
7
- interface IExcelOptions {
8
- tables: ITable[];
9
- fileName: string;
10
- additionalTexts?: (string | string[])[];
11
- }
12
- /**
13
- * Function to export excel, previously this only handle for 1 table in 1 file
14
- * Now this function has been refactored to be able to format multiple tables in 1 file without altered its original functionality
15
- * However, the way to called this function is changing a little bit (look for component DataTable and find usage of util `exportToExcel`)
16
- *
17
- * @param options - param that contain tables and filename for excel
18
- */
19
- declare const exportToExcel: (options: IExcelOptions) => Promise<void>;
20
- export default exportToExcel;
@@ -1,5 +0,0 @@
1
- import { Option } from '../components/dropdown/Dropdown.vue.d';
2
- declare const filterOptions: (
3
- options?: Option[] | string[],
4
- ) => Option[] | string[];
5
- export default filterOptions;
@@ -1,13 +0,0 @@
1
- export declare const genRandomPlaceholderBg: () => string;
2
- export declare const genPlaceholder: (
3
- text: string,
4
- size: 30 | 125,
5
- bgColor?: string,
6
- fontOptions?: {
7
- font?: string;
8
- fontWeight?: string;
9
- fontSize?: number;
10
- fontColor?: string;
11
- },
12
- ) => HTMLCanvasElement;
13
- export default genPlaceholder;