@fewangsit/wangsvue-fats 1.0.0-rc.2 → 1.0.1-alpha.0
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/badge/Badge.vue.d.ts +1 -1
- package/components/basetree/BaseTree.vue.d.ts +1 -1
- package/components/button/Button.vue.d.ts +1 -1
- package/components/buttonImportExcel/ButtonImportExcel.vue.d.ts +1 -1
- package/components/buttonradio/ButtonRadio.vue.d.ts +1 -1
- package/components/buttonselecttree/ButtonSelectTree.vue.d.ts +1 -1
- package/components/buttonsplit/ButtonSplit.vue.d.ts +7 -6
- package/components/buttonsync/ButtonSync.vue.d.ts +1 -1
- package/components/calendar/Calendar.vue.d.ts +1 -1
- package/components/card/Card.vue.d.ts +1 -1
- package/components/checkbox/Checkbox.vue.d.ts +1 -1
- package/components/customcolumn/CustomColumn.vue.d.ts +1 -1
- package/components/dialog/Dialog.vue.d.ts +1 -1
- package/components/dialogconfirm/DialogConfirm.vue.d.ts +1 -1
- package/components/dialogform/DialogForm.vue.d.ts +1 -1
- package/components/dialogselecttree/DialogSelectTree.vue.d.ts +1 -1
- package/components/dropdown/Dropdown.vue.d.ts +6 -1
- package/components/editor/Editor.vue.d.ts +1 -1
- package/components/fileupload/FileUpload.vue.d.ts +1 -1
- package/components/form/Form.vue.d.ts +1 -1
- package/components/icon/Icon.vue.d.ts +1 -1
- package/components/image/Image.vue.d.ts +1 -1
- package/components/imagecompressor/ImageCompressor.vue.d.ts +1 -1
- package/components/inlinemessage/InlineMessage.vue.d.ts +1 -1
- package/components/inputbadge/InputBadge.vue.d.ts +1 -1
- package/components/inputcurrency/InputCurrency.vue.d.ts +1 -1
- package/components/inputsearch/InputSearch.vue.d.ts +1 -1
- package/components/inputtext/InputText.vue.d.ts +1 -1
- package/components/inputurl/InputURL.vue.d.ts +1 -1
- package/components/invisiblefield/InvisibleField.vue.d.ts +1 -1
- package/components/languagedropdown/LanguageDropdown.vue.d.ts +1 -1
- package/components/languageswitcher/LanguageSwitcher.vue.d.ts +1 -1
- package/components/litedropdown/LiteDropdown.vue.d.ts +3 -3
- package/components/menu/Menu.vue.d.ts +1 -1
- package/components/multiselect/MultiSelect.vue.d.ts +1 -1
- package/components/overlaypanel/OverlayPanel.vue.d.ts +1 -1
- package/components/tabmenu/TabMenu.vue.d.ts +1 -1
- package/components/tagtype/TagType.vue.d.ts +1 -1
- package/components/timeline/Timeline.vue.d.ts +1 -1
- package/components/toast/Toast.vue.d.ts +1 -1
- package/components/toggleswitch/ToggleSwitch.vue.d.ts +1 -1
- package/components/tree/Tree.vue.d.ts +5 -2
- package/components/username/UserName.vue.d.ts +1 -1
- package/components/userwithicon/UserWithIcon.vue.d.ts +1 -1
- package/package.json +1 -1
- package/stats.html +1 -1
- package/style.css +1 -1
- package/utils/index.d.ts +1 -0
- package/utils/textFormatter.util.d.ts +29 -0
- package/wangsvue-fats.css +1 -0
- package/wangsvue-fats.js +11055 -10379
- package/wangsvue-fats.system.js +71 -71
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { TableColumn } from '../datatable/DataTable.vue.d';
|
|
2
2
|
import { DialogFormProps } from '../dialogform/DialogForm.vue.d';
|
|
3
|
-
import { ClassComponent } from '../ts-helpers';
|
|
3
|
+
import { ClassComponent } from '../ts-helpers.d';
|
|
4
4
|
|
|
5
5
|
export interface ButtonImportExcelProps {
|
|
6
6
|
tableName: string;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { StyleValue } from 'vue';
|
|
2
2
|
|
|
3
3
|
import { ComponentHooks } from '../basecomponent';
|
|
4
|
-
import { ClassComponent, GlobalComponentConstructor } from '../ts-helpers';
|
|
4
|
+
import { ClassComponent, GlobalComponentConstructor } from '../ts-helpers.d';
|
|
5
5
|
|
|
6
6
|
export declare type ButtonRadioPassThroughOptionType =
|
|
7
7
|
| ButtonRadioPassThroughAttributes
|
|
@@ -2,7 +2,7 @@ import { Slot } from 'vue';
|
|
|
2
2
|
|
|
3
3
|
import { TreeNode } from '../basetree/BaseTree.vue.d';
|
|
4
4
|
import { QueryParams, ShortFetchResponse } from '../datatable/DataTable.vue.d';
|
|
5
|
-
import { ClassComponent, GlobalComponentConstructor } from '../ts-helpers';
|
|
5
|
+
import { ClassComponent, GlobalComponentConstructor } from '../ts-helpers.d';
|
|
6
6
|
|
|
7
7
|
export type KeysModelValue = number[] | undefined;
|
|
8
8
|
export type NodeModelValue =
|
|
@@ -7,11 +7,6 @@
|
|
|
7
7
|
* @module splitbutton
|
|
8
8
|
*
|
|
9
9
|
*/
|
|
10
|
-
import { ButtonPassThroughOptions } from 'primevue/button';
|
|
11
|
-
import {
|
|
12
|
-
TieredMenuPassThroughOptions,
|
|
13
|
-
TieredMenuRouterBindProps,
|
|
14
|
-
} from 'primevue/tieredmenu';
|
|
15
10
|
import { ButtonHTMLAttributes, VNode } from 'vue';
|
|
16
11
|
|
|
17
12
|
import { ComponentHooks } from '../basecomponent';
|
|
@@ -22,7 +17,13 @@ import {
|
|
|
22
17
|
GlobalComponentConstructor,
|
|
23
18
|
HintedString,
|
|
24
19
|
PassThrough,
|
|
25
|
-
} from '../ts-helpers';
|
|
20
|
+
} from '../ts-helpers.d';
|
|
21
|
+
|
|
22
|
+
import { ButtonPassThroughOptions } from 'primevue/button';
|
|
23
|
+
import {
|
|
24
|
+
TieredMenuPassThroughOptions,
|
|
25
|
+
TieredMenuRouterBindProps,
|
|
26
|
+
} from 'primevue/tieredmenu';
|
|
26
27
|
|
|
27
28
|
import { WangsIcons } from '../icon/Icon.vue';
|
|
28
29
|
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { Slot, TransitionProps } from 'vue';
|
|
2
2
|
|
|
3
3
|
import { CustomValidation } from '../form/Form.vue.d';
|
|
4
|
-
import { ClassComponent } from '../ts-helpers';
|
|
4
|
+
import { ClassComponent } from '../ts-helpers.d';
|
|
5
5
|
|
|
6
6
|
export interface CalendarLocaleConfig {
|
|
7
7
|
defaultPlaceholder: string;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { Slot } from 'vue';
|
|
2
2
|
|
|
3
3
|
import { WangsIcons } from '../icon/Icon.vue.d';
|
|
4
|
-
import { ClassComponent, GlobalComponentConstructor } from '../ts-helpers';
|
|
4
|
+
import { ClassComponent, GlobalComponentConstructor } from '../ts-helpers.d';
|
|
5
5
|
|
|
6
6
|
type ConfirmDialogSeverity = 'success' | 'danger' | 'primary';
|
|
7
7
|
|
|
@@ -3,7 +3,7 @@ import { Slot } from 'vue';
|
|
|
3
3
|
|
|
4
4
|
import FormInstance, { FormPayload, FormProps } from '../form/Form.vue.d';
|
|
5
5
|
import { WangsIcons } from '../icon/Icon.vue.d';
|
|
6
|
-
import { ClassComponent, GlobalComponentConstructor } from '../ts-helpers';
|
|
6
|
+
import { ClassComponent, GlobalComponentConstructor } from '../ts-helpers.d';
|
|
7
7
|
|
|
8
8
|
export type DialogFormValue =
|
|
9
9
|
| string
|
|
@@ -3,7 +3,7 @@ import { Slot } from 'vue';
|
|
|
3
3
|
import { TreeNode } from '../basetree/BaseTree.vue.d';
|
|
4
4
|
import { QueryParams, ShortFetchResponse } from '../datatable/DataTable.vue.d';
|
|
5
5
|
import TreeInstance, { TreeProps } from '../tree/Tree.vue.d';
|
|
6
|
-
import { ClassComponent, GlobalComponentConstructor } from '../ts-helpers';
|
|
6
|
+
import { ClassComponent, GlobalComponentConstructor } from '../ts-helpers.d';
|
|
7
7
|
|
|
8
8
|
import { TreeSelectionKeys } from 'primevue/tree';
|
|
9
9
|
|
|
@@ -4,7 +4,7 @@ import { BadgeProps } from '../../components/badge/Badge.vue.d';
|
|
|
4
4
|
import { WangsIcons } from '../../components/icon/Icon.vue.d';
|
|
5
5
|
|
|
6
6
|
import { CustomValidation } from '../form/Form.vue.d';
|
|
7
|
-
import { ClassComponent, GlobalComponentConstructor } from '../ts-helpers';
|
|
7
|
+
import { ClassComponent, GlobalComponentConstructor } from '../ts-helpers.d';
|
|
8
8
|
|
|
9
9
|
export type OptionValue = string | number | boolean | Record<string, any>;
|
|
10
10
|
|
|
@@ -98,6 +98,11 @@ export interface DropdownProps {
|
|
|
98
98
|
*/
|
|
99
99
|
allowNullOption?: boolean;
|
|
100
100
|
|
|
101
|
+
/**
|
|
102
|
+
* If the same option is selected again, the option is unselected.
|
|
103
|
+
*/
|
|
104
|
+
unselectOnReselect?: boolean;
|
|
105
|
+
|
|
101
106
|
/**
|
|
102
107
|
* Specify the property name of option to be used as label.
|
|
103
108
|
*
|
|
@@ -4,7 +4,7 @@ import {
|
|
|
4
4
|
} from 'primevue/fileupload';
|
|
5
5
|
|
|
6
6
|
import { CustomValidation } from '../form/Form.vue.d';
|
|
7
|
-
import { ClassComponent, GlobalComponentConstructor } from '../ts-helpers';
|
|
7
|
+
import { ClassComponent, GlobalComponentConstructor } from '../ts-helpers.d';
|
|
8
8
|
|
|
9
9
|
export type InputErrorCodes = 'FILE_SIZE_TOO_LARGE';
|
|
10
10
|
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { CustomValidation } from '../form/Form.vue.d';
|
|
2
|
-
import { ClassComponent, GlobalComponentConstructor } from '../ts-helpers';
|
|
2
|
+
import { ClassComponent, GlobalComponentConstructor } from '../ts-helpers.d';
|
|
3
3
|
|
|
4
4
|
export interface ImageCompressorLocaleConfig {
|
|
5
5
|
cropDialogHeader: string;
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
*
|
|
7
7
|
*/
|
|
8
8
|
import { ComponentHooks } from '../basecomponent';
|
|
9
|
-
import { ClassComponent, GlobalComponentConstructor } from '../ts-helpers';
|
|
9
|
+
import { ClassComponent, GlobalComponentConstructor } from '../ts-helpers.d';
|
|
10
10
|
|
|
11
11
|
export declare type InlineMessagePassThroughOptionType =
|
|
12
12
|
| InlineMessagePassThroughAttributes
|
|
@@ -11,7 +11,7 @@ import { InputHTMLAttributes, Slot } from 'vue';
|
|
|
11
11
|
|
|
12
12
|
import { ComponentHooks } from '../basecomponent';
|
|
13
13
|
import { CustomValidation } from '../form/Form.vue.d';
|
|
14
|
-
import { ClassComponent, Nullable } from '../ts-helpers';
|
|
14
|
+
import { ClassComponent, Nullable } from '../ts-helpers.d';
|
|
15
15
|
export declare type InputTextPassThroughOptionType<T = any> =
|
|
16
16
|
| InputTextPassThroughAttributes
|
|
17
17
|
| ((
|
|
@@ -3,7 +3,7 @@ import {
|
|
|
3
3
|
DropdownProps,
|
|
4
4
|
} from '../../components/dropdown/Dropdown.vue.d';
|
|
5
5
|
|
|
6
|
-
import { ClassComponent, GlobalComponentConstructor } from '../ts-helpers';
|
|
6
|
+
import { ClassComponent, GlobalComponentConstructor } from '../ts-helpers.d';
|
|
7
7
|
|
|
8
8
|
export type LanguageDropdownProps = DropdownProps & {};
|
|
9
9
|
export type LanguageDropdownEmits = DropdownEmits & {};
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { DropdownChangeEvent } from 'primevue/dropdown';
|
|
2
|
-
|
|
3
1
|
import { Option, OptionValue } from '../../components/dropdown/Dropdown.vue.d';
|
|
4
2
|
|
|
5
|
-
import { ClassComponent, GlobalComponentConstructor } from '../ts-helpers';
|
|
3
|
+
import { ClassComponent, GlobalComponentConstructor } from '../ts-helpers.d';
|
|
4
|
+
|
|
5
|
+
import { DropdownChangeEvent } from 'primevue/dropdown';
|
|
6
6
|
|
|
7
7
|
/**
|
|
8
8
|
* Lite dropdown component props
|
|
@@ -5,7 +5,7 @@ import {
|
|
|
5
5
|
} from '../../components/dropdown/Dropdown.vue.d';
|
|
6
6
|
|
|
7
7
|
import { CustomValidation } from '../form/Form.vue.d';
|
|
8
|
-
import { ClassComponent, GlobalComponentConstructor } from '../ts-helpers';
|
|
8
|
+
import { ClassComponent, GlobalComponentConstructor } from '../ts-helpers.d';
|
|
9
9
|
|
|
10
10
|
export type MultiSelectLocaleConfig = DropdownLocaleConfig & {};
|
|
11
11
|
|
|
@@ -11,7 +11,7 @@
|
|
|
11
11
|
import { TabMenuProps as WangsUITabMenuProps } from '@wangs-ui/core';
|
|
12
12
|
import { MenuItem } from '@wangs-ui/core/dist/types/components/menuitem/menuitem.type';
|
|
13
13
|
|
|
14
|
-
import { ClassComponent } from '../ts-helpers';
|
|
14
|
+
import { ClassComponent } from '../ts-helpers.d';
|
|
15
15
|
|
|
16
16
|
/**
|
|
17
17
|
* Custom change event.
|
|
@@ -2,7 +2,7 @@ import { VNode } from 'vue';
|
|
|
2
2
|
|
|
3
3
|
import { BadgeProps } from '../badge/Badge.vue.d';
|
|
4
4
|
import { JSONContent } from '../editor/Editor.vue.d';
|
|
5
|
-
import { ClassComponent } from '../ts-helpers';
|
|
5
|
+
import { ClassComponent } from '../ts-helpers.d';
|
|
6
6
|
|
|
7
7
|
export interface AttachmentFile {
|
|
8
8
|
type: 'image' | 'xls' | 'doc' | 'pdf' | 'csv' | 'video' | 'data';
|
|
@@ -1,10 +1,9 @@
|
|
|
1
1
|
import { Slot } from 'vue';
|
|
2
|
-
|
|
3
2
|
import { MenuItem } from '../../components/menuitem';
|
|
4
3
|
|
|
5
4
|
import { BaseTreeProps, TreeNode } from '../basetree/BaseTree.vue.d';
|
|
6
5
|
import { QueryParams, ShortFetchResponse } from '../datatable/DataTable.vue.d';
|
|
7
|
-
import { ClassComponent, GlobalComponentConstructor } from '../ts-helpers';
|
|
6
|
+
import { ClassComponent, GlobalComponentConstructor } from '../ts-helpers.d';
|
|
8
7
|
|
|
9
8
|
import { TreeSelectionKeys } from 'primevue/tree';
|
|
10
9
|
|
|
@@ -18,6 +17,10 @@ export interface TreeProps extends BaseTreeProps {
|
|
|
18
17
|
type: 'group' | 'category',
|
|
19
18
|
params?: QueryParams,
|
|
20
19
|
) => Promise<ShortFetchResponse<TreeNode> | undefined>;
|
|
20
|
+
|
|
21
|
+
/**
|
|
22
|
+
* For query: roleType, transactionAttribute, systemRole is already stringified in components default props, but for the rest of query params need to be stringified outside
|
|
23
|
+
*/
|
|
21
24
|
params?: QueryParams;
|
|
22
25
|
selectedKeys?: TreeSelectionKeys | number[] | undefined;
|
|
23
26
|
selectedTreeNodes?: TreeNode[] | undefined;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { UserDetail } from '@tagsamurai/fats-api-services/src/types/user.type';
|
|
2
2
|
|
|
3
|
-
import { ClassComponent } from '../../components/ts-helpers';
|
|
3
|
+
import { ClassComponent } from '../../components/ts-helpers.d';
|
|
4
4
|
|
|
5
5
|
export interface UserWithIconProps {
|
|
6
6
|
user: Partial<UserDetail> & { fullName: string };
|