@fewangsit/wangsvue-gsts 1.0.0-alpha.26 → 1.0.0-alpha.27
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/animation/Animation.vue.d.ts +8 -0
- package/components/badge/Badge.vue.d.ts +9 -11
- package/components/badgegroup/BadgeGroup.vue.d.ts +6 -23
- package/components/badgegrouptree/BadgeGroupTree.vue.d.ts +5 -3
- package/components/basetree/BaseTree.vue.d.ts +7 -2
- package/components/button/Button.vue.d.ts +8 -12
- package/components/buttonImportExcel/ButtonImportExcel.vue.d.ts +1 -1
- package/components/buttonbulkaction/ButtonBulkAction.vue.d.ts +1 -0
- package/components/buttondownload/ButtonDownload.vue.d.ts +31 -0
- package/components/buttonradio/ButtonRadio.vue.d.ts +2 -1
- package/components/buttonscan/ButtonScan.vue.d.ts +2 -1
- package/components/buttonsearchbyscan/ButtonSearchByScan.vue.d.ts +46 -0
- package/components/buttonselecttree/ButtonSelectTree.vue.d.ts +11 -1
- package/components/buttonsplit/ButtonSplit.vue.d.ts +10 -7
- package/components/buttonsync/ButtonSync.vue.d.ts +1 -1
- package/components/buttontoggle/ButtonToggle.vue.d.ts +1 -0
- package/components/calendar/Calendar.vue.d.ts +27 -4
- package/components/card/Card.vue.d.ts +2 -1
- package/components/carousel/Carousel.vue.d.ts +28 -0
- package/components/changelog/Changelog.vue.d.ts +7 -3
- package/components/changelogpage/ChangelogPage.vue.d.ts +9 -2
- package/components/checkbox/Checkbox.vue.d.ts +2 -1
- package/components/customcolumn/CustomColumn.vue.d.ts +1 -1
- package/components/datatable/DataTable.vue.d.ts +12 -2
- package/components/dialog/Dialog.vue.d.ts +5 -4
- package/components/dialogconfirm/DialogConfirm.vue.d.ts +8 -8
- package/components/dialogform/DialogForm.vue.d.ts +4 -3
- package/components/dialogselecttree/DialogSelectTree.vue.d.ts +14 -3
- package/components/dropdown/Dropdown.vue.d.ts +21 -2
- package/components/editor/Editor.vue.d.ts +2 -1
- package/components/fieldwrapper/FieldWrapper.vue.d.ts +19 -2
- package/components/fileupload/FileUpload.vue.d.ts +2 -1
- package/components/filtercontainer/FilterContainer.vue.d.ts +103 -67
- package/components/form/Form.vue.d.ts +5 -2
- package/components/icon/Icon.vue.d.ts +4 -1
- package/components/image/Image.vue.d.ts +9 -1
- package/components/imagecompressor/ImageCompressor.vue.d.ts +9 -1
- package/components/index.d.ts +25 -28
- 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/inputcurrency/helpers/currency.helper.d.ts +5 -1
- package/components/inputemail/InputEmail.vue.d.ts +1 -0
- package/components/inputnumber/InputNumber.vue.d.ts +6 -0
- package/components/inputotp/InputOtp.vue.d.ts +3 -0
- package/components/inputpassword/InputPassword.vue.d.ts +1 -0
- package/components/inputrangenumber/InputRangeNumber.vue.d.ts +1 -0
- package/components/inputtext/InputText.vue.d.ts +2 -1
- package/components/inputurl/InputURL.vue.d.ts +3 -1
- package/components/invisiblefield/InvisibleField.vue.d.ts +1 -1
- package/components/languagedropdown/LanguageDropdown.vue.d.ts +2 -1
- package/components/languageswitcher/LanguageSwitcher.vue.d.ts +1 -1
- package/components/litedropdown/LiteDropdown.vue.d.ts +3 -1
- package/components/loading/store/loading.store.d.ts +3 -3
- package/components/menu/Menu.vue.d.ts +3 -2
- package/components/multiselect/MultiSelect.vue.d.ts +2 -1
- package/components/overlaypanel/OverlayPanel.vue.d.ts +2 -1
- package/components/paginator/Paginator.vue.d.ts +285 -0
- package/components/tabmenu/TabMenu.vue.d.ts +7 -191
- package/components/tagtype/TagType.vue.d.ts +6 -1
- package/components/textarea/Textarea.vue.d.ts +2 -1
- package/components/timeline/Timeline.vue.d.ts +22 -3
- package/components/toast/Toast.vue.d.ts +3 -2
- package/components/toggleswitch/ToggleSwitch.vue.d.ts +2 -1
- package/components/tree/Tree.vue.d.ts +8 -2
- package/components/tree/helpers/filterNodeKeys.helper.d.ts +8 -2
- package/components/tree/helpers/flattenTreeNodeChildren.helper.d.ts +3 -1
- package/components/ts-helpers.d.ts +8 -0
- package/components/username/UserName.vue.d.ts +14 -4
- package/config/defaultProps.d.ts +1 -1
- package/config/index.d.ts +1 -1
- package/config/locale.d.ts +1 -1
- package/directives/focus.d.ts +1 -1
- package/event-bus/index.d.ts +59 -53
- package/event-bus/mitt.d.ts +29 -14
- package/main.d.ts +31 -2
- package/package.json +17 -6
- package/plugins/WangsVue.d.ts +276 -214
- package/plugins/formValidation.d.ts +16 -6
- package/plugins/i18n.d.ts +88 -79
- package/stats.html +4949 -0
- package/style.css +3 -1
- package/utils/date.util.d.ts +64 -31
- package/utils/exportToExcel.util.d.ts +23 -16
- package/utils/getStatusSeverity.util.d.ts +10 -3
- package/utils/index.d.ts +15 -20
- package/utils/object.util.d.ts +14 -3
- package/utils/role.util.d.ts +5 -1
- package/utils/textFormatter.util.d.ts +15 -3
- package/utils/toast.util.d.ts +119 -3
- package/utils/xlsx.util.d.ts +19 -0
- package/wangsvue-gsts.js +53547 -0
- package/wangsvue-gsts.system.js +93 -265
- package/assets/json/currencies.json.d.ts +0 -1068
- package/build-entry.d.ts +0 -14
- package/components/buttonscan/helpers/getErrorCode.helper.d.ts +0 -3
- package/components/buttonscan/helpers/index.d.ts +0 -1
- package/components/buttonscan/workers/scanner.worker.d.ts +0 -1
- package/components/calendar/BaseCalendar.vue.d.ts +0 -89
- package/components/changelogpage/ChangelogFilter.vue.d.ts +0 -16
- package/components/codesnippet/CodeSnippet.vue.d.ts +0 -14
- package/components/customcolumn/ColumnList.vue.d.ts +0 -27
- package/components/customcolumn/helpers/setVisibilityColumn.helper.d.ts +0 -12
- package/components/datatable/MultiRow.vue.d.ts +0 -16
- package/components/datatable/helpers/adjustMenuPosition.helper.d.ts +0 -1
- package/components/datatable/helpers/filter.helper.d.ts +0 -28
- package/components/datatable/helpers/index.d.ts +0 -3
- package/components/datatable/helpers/readConfig.helper.d.ts +0 -2
- package/components/datatable/store/dataTable.store.d.ts +0 -22
- package/components/editor/CodeSnippetAdapter.vue.d.ts +0 -92
- package/components/editor/EditorButton.vue.d.ts +0 -15
- package/components/editor/MentionList.vue.d.ts +0 -35
- package/components/editor/MentionSection.vue.d.ts +0 -92
- package/components/editor/codeSnippetExtension.d.ts +0 -3
- package/components/editor/mentionSectionExtension.d.ts +0 -3
- package/components/editor/suggestion.d.ts +0 -2
- package/components/filtercontainer/helpers/applyFilter.helper.d.ts +0 -5
- package/components/filtercontainer/helpers/formatDateTimeRange.helper.d.ts +0 -7
- package/components/filtercontainer/helpers/getOption.helper.d.ts +0 -3
- package/components/gallerypreview/GalleryPreview.vue.d.ts +0 -31
- package/components/hardwaresync/store/device.store.d.ts +0 -36
- package/components/helpers/convertToArrayClass.helper.d.ts +0 -2
- package/components/helpers/index.d.ts +0 -2
- package/components/helpers/label.d.ts +0 -15
- package/components/imagecompressor/BackgroundImageCropper.vue.d.ts +0 -36
- package/components/imagecompressor/ImageInputInfo.vue.d.ts +0 -32
- package/components/inputgroup/InputGroup.vue.d.ts +0 -141
- package/components/inputphonenumber/helpers/getUserLocation.helper.d.ts +0 -8
- package/components/languagedropdown/LanguageDropdownOption.vue.d.ts +0 -18
- package/components/menu/helpers/filterMenu.helper.d.ts +0 -12
- package/components/menu/helpers/index.d.ts +0 -1
- package/components/menuitem/MenuItem.vue.d.ts +0 -19
- package/components/progressbar/ProgressBar.vue.d.ts +0 -72
- package/components/quickfilter/QuickFilter.vue.d.ts +0 -25
- package/components/timeline/TimelineContentByType.vue.d.ts +0 -16
- package/components/tooltipspan/TooltipSpan.vue.d.ts +0 -20
- package/components/tree/helpers/index.d.ts +0 -3
- package/components/usergroup/UserGroup.vue.d.ts +0 -57
- package/utils/addAttachment.util.d.ts +0 -43
- package/utils/filterOptions.util.d.ts +0 -3
- package/utils/genPlaceholder.util.d.ts +0 -8
- package/utils/getAttachmentIcon.util.d.ts +0 -8
- package/utils/mergePropsWithDefaults.util.d.ts +0 -20
- package/wangsvue-gsts.es.js +0 -133833
|
@@ -6,6 +6,14 @@ export interface AnimationDefaultConfig {
|
|
|
6
6
|
|
|
7
7
|
export interface AnimationProps {
|
|
8
8
|
animation: 'no-data' | 'loading-plane' | 'loading-page' | 'loading-table';
|
|
9
|
+
/**
|
|
10
|
+
* @default true
|
|
11
|
+
*/
|
|
12
|
+
autoplay?: boolean;
|
|
13
|
+
/**
|
|
14
|
+
* @default true
|
|
15
|
+
*/
|
|
16
|
+
loop?: boolean;
|
|
9
17
|
}
|
|
10
18
|
|
|
11
19
|
/**
|
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
import { ClassComponent } from '
|
|
2
|
-
|
|
1
|
+
import { ClassComponent } from '../ts-helpers.d';
|
|
3
2
|
|
|
4
3
|
export interface BadgeComponentConfigs {
|
|
5
4
|
/**
|
|
@@ -26,15 +25,7 @@ export interface BadgeProps extends BadgeComponentConfigs {
|
|
|
26
25
|
/**
|
|
27
26
|
* Sets the severity level for styling purposes. This prop might be omitted if getSeverity is provided.
|
|
28
27
|
*/
|
|
29
|
-
severity?:
|
|
30
|
-
| 'success'
|
|
31
|
-
| 'info'
|
|
32
|
-
| 'danger'
|
|
33
|
-
| 'warning'
|
|
34
|
-
| 'dark'
|
|
35
|
-
| 'primary'
|
|
36
|
-
| 'fixed-primary'
|
|
37
|
-
| 'supply-primary';
|
|
28
|
+
severity?: 'success' | 'info' | 'danger' | 'warning' | 'dark' | 'primary';
|
|
38
29
|
/**
|
|
39
30
|
* Specifies the format for text truncation rules based on the usage context.
|
|
40
31
|
*/
|
|
@@ -47,6 +38,13 @@ export interface BadgeProps extends BadgeComponentConfigs {
|
|
|
47
38
|
* Whether to set badge become disabled.
|
|
48
39
|
*/
|
|
49
40
|
disabled?: boolean;
|
|
41
|
+
|
|
42
|
+
/**
|
|
43
|
+
* Set custom tooltip for badge.
|
|
44
|
+
*
|
|
45
|
+
* @default - the full label if the badge text is truncated
|
|
46
|
+
*/
|
|
47
|
+
tooltip?: string;
|
|
50
48
|
}
|
|
51
49
|
|
|
52
50
|
/**
|
|
@@ -1,18 +1,13 @@
|
|
|
1
1
|
import { Slot } from 'vue';
|
|
2
|
-
import { BadgeProps } from '../.././components/badge/Badge.vue.d';
|
|
3
|
-
import { ClassComponent, HintedString } from '../.././components/ts-helpers';
|
|
4
2
|
|
|
3
|
+
import { BadgeProps } from '../../components/badge/Badge.vue.d';
|
|
4
|
+
|
|
5
|
+
import { ClassComponent, HintedString } from '../ts-helpers.d';
|
|
5
6
|
|
|
6
7
|
export type ObjectBadge = {
|
|
7
8
|
text: string;
|
|
8
|
-
severity:
|
|
9
|
-
|
|
10
|
-
| 'danger'
|
|
11
|
-
| 'warning'
|
|
12
|
-
| 'dark'
|
|
13
|
-
| 'primary'
|
|
14
|
-
| 'fixed-primary'
|
|
15
|
-
| 'supply-primary';
|
|
9
|
+
severity: 'success' | 'danger' | 'warning' | 'dark' | 'primary';
|
|
10
|
+
tooltip?: string;
|
|
16
11
|
};
|
|
17
12
|
|
|
18
13
|
export interface BadgeGroupProps
|
|
@@ -27,14 +22,7 @@ export interface BadgeGroupProps
|
|
|
27
22
|
* @default undefined
|
|
28
23
|
*/
|
|
29
24
|
textMoreSeverity?: HintedString<
|
|
30
|
-
| '
|
|
31
|
-
| 'info'
|
|
32
|
-
| 'success'
|
|
33
|
-
| 'warning'
|
|
34
|
-
| 'danger'
|
|
35
|
-
| 'contrast'
|
|
36
|
-
| 'fixed-primary'
|
|
37
|
-
| 'supply-primary'
|
|
25
|
+
'secondary' | 'info' | 'success' | 'warning' | 'danger' | 'contrast'
|
|
38
26
|
>;
|
|
39
27
|
/**
|
|
40
28
|
* The text shown on the more button
|
|
@@ -50,11 +38,6 @@ export interface BadgeGroupProps
|
|
|
50
38
|
* The dialog header shown on more button clicked
|
|
51
39
|
*/
|
|
52
40
|
headerLabel?: string;
|
|
53
|
-
/**
|
|
54
|
-
* Specify if the badge should be emptyable
|
|
55
|
-
* @default false
|
|
56
|
-
*/
|
|
57
|
-
emptyable?: boolean;
|
|
58
41
|
}
|
|
59
42
|
|
|
60
43
|
export interface BadgeGroupSlots {
|
|
@@ -1,6 +1,8 @@
|
|
|
1
|
-
import { BadgeGroupProps } from '
|
|
2
|
-
import {
|
|
3
|
-
|
|
1
|
+
import { BadgeGroupProps } from '../../components/badgegroup/BadgeGroup.vue.d';
|
|
2
|
+
import {
|
|
3
|
+
ClassComponent,
|
|
4
|
+
GlobalComponentConstructor,
|
|
5
|
+
} from '../../components/ts-helpers.d';
|
|
4
6
|
|
|
5
7
|
export interface BadgeGroupTreeItem {
|
|
6
8
|
_id: string;
|
|
@@ -8,15 +8,16 @@
|
|
|
8
8
|
*
|
|
9
9
|
*/
|
|
10
10
|
import { VNode } from 'vue';
|
|
11
|
+
|
|
11
12
|
import { ComponentHooks } from '../basecomponent';
|
|
13
|
+
import { MenuItem } from '../menuitem';
|
|
12
14
|
import { PassThroughOptions } from '../passthrough';
|
|
13
15
|
import {
|
|
14
16
|
ClassComponent,
|
|
15
17
|
GlobalComponentConstructor,
|
|
16
18
|
HintedString,
|
|
17
19
|
PassThrough,
|
|
18
|
-
} from '../ts-helpers';
|
|
19
|
-
import { MenuItem } from '../menuitem';
|
|
20
|
+
} from '../ts-helpers.d';
|
|
20
21
|
|
|
21
22
|
export declare type TreePassThroughOptionType<T = any> =
|
|
22
23
|
| TreePassThroughAttributes
|
|
@@ -350,6 +351,10 @@ export interface BaseTreeProps {
|
|
|
350
351
|
* @defaultValue false
|
|
351
352
|
*/
|
|
352
353
|
loading?: boolean | undefined;
|
|
354
|
+
/**
|
|
355
|
+
* Defines the group tree to showing disposable groups.
|
|
356
|
+
*/
|
|
357
|
+
showDisposableGroups?: boolean;
|
|
353
358
|
/**
|
|
354
359
|
* Icon to display when tree is loading.
|
|
355
360
|
* @deprecated since v3.27.0. Use 'loadingicon' slot.
|
|
@@ -1,9 +1,12 @@
|
|
|
1
|
-
import { ButtonHTMLAttributes, VNode } from 'vue';
|
|
2
1
|
import { TooltipOptions } from 'primevue/tooltip';
|
|
3
|
-
import {
|
|
4
|
-
import { ClassComponent, HintedString } from '../.././components/ts-helpers';
|
|
5
|
-
import { WangsIcons } from '../.././components/icon/Icon.vue.d';
|
|
2
|
+
import { ButtonHTMLAttributes, VNode } from 'vue';
|
|
6
3
|
|
|
4
|
+
import { WangsIcons } from '../icon/Icon.vue.d';
|
|
5
|
+
import {
|
|
6
|
+
ClassComponent,
|
|
7
|
+
GlobalComponentConstructor,
|
|
8
|
+
HintedString,
|
|
9
|
+
} from '../ts-helpers.d';
|
|
7
10
|
|
|
8
11
|
/**
|
|
9
12
|
* Defines valid properties in Button component.
|
|
@@ -56,14 +59,7 @@ export interface ButtonProps extends /* @vue-ignore */ ButtonHTMLAttributes {
|
|
|
56
59
|
*/
|
|
57
60
|
badgeSeverity?:
|
|
58
61
|
| HintedString<
|
|
59
|
-
| '
|
|
60
|
-
| 'info'
|
|
61
|
-
| 'success'
|
|
62
|
-
| 'warning'
|
|
63
|
-
| 'danger'
|
|
64
|
-
| 'contrast'
|
|
65
|
-
| 'fixed-primary'
|
|
66
|
-
| 'supply-primary'
|
|
62
|
+
'secondary' | 'info' | 'success' | 'warning' | 'danger' | 'contrast'
|
|
67
63
|
>
|
|
68
64
|
| null
|
|
69
65
|
| undefined;
|
|
@@ -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,5 +1,23 @@
|
|
|
1
|
+
import { DataTableProps } from '../datatable/DataTable.vue.d';
|
|
1
2
|
import { ClassComponent, GlobalComponentConstructor } from '../ts-helpers.d';
|
|
2
3
|
|
|
4
|
+
export interface ButtonDownloadLocaleConfig {
|
|
5
|
+
/**
|
|
6
|
+
* Message to display on loading ovevrlay while downloading
|
|
7
|
+
*/
|
|
8
|
+
downloadingMessage: string;
|
|
9
|
+
|
|
10
|
+
/**
|
|
11
|
+
* Text when booleanValue is true
|
|
12
|
+
*/
|
|
13
|
+
trueText: string;
|
|
14
|
+
|
|
15
|
+
/**
|
|
16
|
+
* Text when booleanValue is false
|
|
17
|
+
*/
|
|
18
|
+
falseText: string;
|
|
19
|
+
}
|
|
20
|
+
|
|
3
21
|
export interface ButtonDownloadProps {
|
|
4
22
|
fileName: string;
|
|
5
23
|
/**
|
|
@@ -21,6 +39,19 @@ export interface ButtonDownloadProps {
|
|
|
21
39
|
* Texts below table in downloaded excel
|
|
22
40
|
*/
|
|
23
41
|
additionalTextBelowTable?: (string | string[])[];
|
|
42
|
+
/**
|
|
43
|
+
* If this props exist, download data from provided configs instead syncing with data tables
|
|
44
|
+
*/
|
|
45
|
+
dataConfigs?: Pick<
|
|
46
|
+
DataTableProps,
|
|
47
|
+
'columns' | 'fetchFunction' | 'data' | 'tableTitle'
|
|
48
|
+
>[];
|
|
49
|
+
/**
|
|
50
|
+
* Specify the error message download excel when tableConfigs is in use
|
|
51
|
+
*
|
|
52
|
+
* @example 'Error, failed to download {fileName}' - fileName will be replaced
|
|
53
|
+
*/
|
|
54
|
+
excelToastErrorMessage?: string;
|
|
24
55
|
}
|
|
25
56
|
|
|
26
57
|
/**
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { StyleValue } from 'vue';
|
|
2
|
+
|
|
2
3
|
import { ComponentHooks } from '../basecomponent';
|
|
3
|
-
import { ClassComponent, GlobalComponentConstructor } from '../ts-helpers';
|
|
4
|
+
import { ClassComponent, GlobalComponentConstructor } from '../ts-helpers.d';
|
|
4
5
|
|
|
5
6
|
export declare type ButtonRadioPassThroughOptionType =
|
|
6
7
|
| ButtonRadioPassThroughAttributes
|
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
import { ClassComponent, HintedString } from '../../components/ts-helpers.d';
|
|
2
1
|
import { ButtonProps } from '../../components/button/Button.vue.d';
|
|
2
|
+
import { ClassComponent, HintedString } from '../../components/ts-helpers.d';
|
|
3
|
+
|
|
3
4
|
import { WangsIcons } from '../icon/Icon.vue.d';
|
|
4
5
|
|
|
5
6
|
export type ScannerErrorCode =
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
import { DefineComponent } from 'vue';
|
|
2
|
+
|
|
3
|
+
import { ButtonScanProps } from '../buttonscan/ButtonScan.vue.d';
|
|
4
|
+
import { WangsIcons } from '../icon/Icon.vue.d';
|
|
5
|
+
|
|
6
|
+
export type ScanPayload = {
|
|
7
|
+
type: 'RFID' | 'QR';
|
|
8
|
+
code: string;
|
|
9
|
+
device: string; // Serial Number
|
|
10
|
+
};
|
|
11
|
+
|
|
12
|
+
export type ButtonSearchByScanEmits = {
|
|
13
|
+
scan: [payload: ScanPayload];
|
|
14
|
+
};
|
|
15
|
+
|
|
16
|
+
export interface ButtonSearchByScanProps {
|
|
17
|
+
/**
|
|
18
|
+
* The button label.
|
|
19
|
+
*
|
|
20
|
+
* @default 'Search by Scan'
|
|
21
|
+
*/
|
|
22
|
+
label?: string;
|
|
23
|
+
/**
|
|
24
|
+
* The button icon.
|
|
25
|
+
*/
|
|
26
|
+
icon?: WangsIcons;
|
|
27
|
+
/**
|
|
28
|
+
* The datatable tablename which handles the search by scan.
|
|
29
|
+
*
|
|
30
|
+
* @default 'datatable' - default DataTable tablename
|
|
31
|
+
*/
|
|
32
|
+
tableName?: string;
|
|
33
|
+
bulk?: boolean;
|
|
34
|
+
scanValidation?: ButtonScanProps['scanValidation'];
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
export type ButtonSearchByScanExposes = {
|
|
38
|
+
stopScan: (afterScan?: boolean) => void;
|
|
39
|
+
};
|
|
40
|
+
|
|
41
|
+
declare const ButtonSearchByScan: DefineComponent<
|
|
42
|
+
ButtonSearchByScanProps,
|
|
43
|
+
ButtonSearchByScanEmits
|
|
44
|
+
>;
|
|
45
|
+
|
|
46
|
+
export default ButtonSearchByScan;
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
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.d';
|
|
5
6
|
|
|
6
7
|
export type KeysModelValue = number[] | undefined;
|
|
7
8
|
export type NodeModelValue =
|
|
@@ -100,6 +101,15 @@ export interface ButtonSelectTreeProps {
|
|
|
100
101
|
* Disable node 'All' selection
|
|
101
102
|
*/
|
|
102
103
|
disableNodeAll?: boolean;
|
|
104
|
+
|
|
105
|
+
/**
|
|
106
|
+
* A function to determine when the node should be disabled,
|
|
107
|
+
* When true, it will disabled selection on current node and all level childrend
|
|
108
|
+
*
|
|
109
|
+
* @return true to disabled
|
|
110
|
+
*/
|
|
111
|
+
disableNodeWhen?: (node: TreeNode) => boolean;
|
|
112
|
+
|
|
103
113
|
/**
|
|
104
114
|
* Old behavior is preventing select if there is no node selected.
|
|
105
115
|
*
|
|
@@ -8,20 +8,23 @@
|
|
|
8
8
|
*
|
|
9
9
|
*/
|
|
10
10
|
import { ButtonHTMLAttributes, VNode } from 'vue';
|
|
11
|
+
|
|
11
12
|
import { ComponentHooks } from '../basecomponent';
|
|
12
|
-
import { ButtonPassThroughOptions } from 'primevue/button';
|
|
13
13
|
import { MenuItem } from '../menuitem';
|
|
14
14
|
import { PassThroughOptions } from '../passthrough';
|
|
15
|
-
import {
|
|
16
|
-
TieredMenuPassThroughOptions,
|
|
17
|
-
TieredMenuRouterBindProps,
|
|
18
|
-
} from 'primevue/tieredmenu';
|
|
19
15
|
import {
|
|
20
16
|
ClassComponent,
|
|
21
17
|
GlobalComponentConstructor,
|
|
22
|
-
PassThrough,
|
|
23
18
|
HintedString,
|
|
24
|
-
|
|
19
|
+
PassThrough,
|
|
20
|
+
} from '../ts-helpers.d';
|
|
21
|
+
|
|
22
|
+
import { ButtonPassThroughOptions } from 'primevue/button';
|
|
23
|
+
import {
|
|
24
|
+
TieredMenuPassThroughOptions,
|
|
25
|
+
TieredMenuRouterBindProps,
|
|
26
|
+
} from 'primevue/tieredmenu';
|
|
27
|
+
|
|
25
28
|
import { WangsIcons } from '../icon/Icon.vue';
|
|
26
29
|
|
|
27
30
|
export declare type ButtonSplitPassThroughOptionType =
|
|
@@ -1,6 +1,7 @@
|
|
|
1
|
-
import { TransitionProps } from 'vue';
|
|
1
|
+
import { Slot, TransitionProps } from 'vue';
|
|
2
|
+
|
|
2
3
|
import { CustomValidation } from '../form/Form.vue.d';
|
|
3
|
-
import { ClassComponent } from '../ts-helpers';
|
|
4
|
+
import { ClassComponent } from '../ts-helpers.d';
|
|
4
5
|
|
|
5
6
|
export interface CalendarLocaleConfig {
|
|
6
7
|
defaultPlaceholder: string;
|
|
@@ -321,6 +322,11 @@ export interface CalendarProps {
|
|
|
321
322
|
*/
|
|
322
323
|
readonly?: boolean;
|
|
323
324
|
|
|
325
|
+
/**
|
|
326
|
+
* The class name of the overlay element.
|
|
327
|
+
*/
|
|
328
|
+
overlayClass?: string;
|
|
329
|
+
|
|
324
330
|
/**
|
|
325
331
|
* Identifier of the underlying input element.
|
|
326
332
|
*/
|
|
@@ -337,7 +343,7 @@ export interface CalendarProps {
|
|
|
337
343
|
* @default 'single'
|
|
338
344
|
* @deprecated use selectionMode
|
|
339
345
|
*/
|
|
340
|
-
mode?: 'range' | 'single';
|
|
346
|
+
mode?: 'range' | 'single' | 'multiple';
|
|
341
347
|
|
|
342
348
|
/**
|
|
343
349
|
* Whether single date or date range model value.
|
|
@@ -474,6 +480,11 @@ export interface CalendarProps {
|
|
|
474
480
|
*/
|
|
475
481
|
onlyWeekdays?: boolean;
|
|
476
482
|
|
|
483
|
+
/**
|
|
484
|
+
* Exclude certain dates from selection.
|
|
485
|
+
*/
|
|
486
|
+
excludeDates?: Date[];
|
|
487
|
+
|
|
477
488
|
/**
|
|
478
489
|
* The minimum selectable date.
|
|
479
490
|
*/
|
|
@@ -556,6 +567,18 @@ export type CalendarEmits = {
|
|
|
556
567
|
'dateSelect': [date: Date | Date[]];
|
|
557
568
|
};
|
|
558
569
|
|
|
570
|
+
export interface CalendarSlots {
|
|
571
|
+
/**
|
|
572
|
+
* Slot for custom root input element
|
|
573
|
+
*/
|
|
574
|
+
'default': Slot<{ onClick: (event: Event) => void }>;
|
|
575
|
+
|
|
576
|
+
/**
|
|
577
|
+
* Slot for additional content in overlay
|
|
578
|
+
*/
|
|
579
|
+
'addon-overlay': Slot;
|
|
580
|
+
}
|
|
581
|
+
|
|
559
582
|
/**
|
|
560
583
|
* **WangsVue - Calendar**
|
|
561
584
|
*
|
|
@@ -568,7 +591,7 @@ export type CalendarEmits = {
|
|
|
568
591
|
*/
|
|
569
592
|
declare class Calendar extends ClassComponent<
|
|
570
593
|
CalendarProps,
|
|
571
|
-
|
|
594
|
+
CalendarSlots,
|
|
572
595
|
CalendarEmits
|
|
573
596
|
> {}
|
|
574
597
|
|
|
@@ -7,13 +7,14 @@
|
|
|
7
7
|
*
|
|
8
8
|
*/
|
|
9
9
|
import { VNode } from 'vue';
|
|
10
|
+
|
|
10
11
|
import { ComponentHooks } from '../basecomponent';
|
|
11
12
|
import { PassThroughOptions } from '../passthrough';
|
|
12
13
|
import {
|
|
13
14
|
ClassComponent,
|
|
14
15
|
GlobalComponentConstructor,
|
|
15
16
|
PassThrough,
|
|
16
|
-
} from '../ts-helpers';
|
|
17
|
+
} from '../ts-helpers.d';
|
|
17
18
|
|
|
18
19
|
export declare type CardPassThroughOptionType =
|
|
19
20
|
| CardPassThroughAttributes
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { ImageGallery } from '../image/Image.vue.d';
|
|
2
|
+
import { ClassComponent } from '../ts-helpers';
|
|
3
|
+
|
|
4
|
+
export interface CarouselProps {
|
|
5
|
+
/**
|
|
6
|
+
* An array of image object to be displayed.
|
|
7
|
+
*/
|
|
8
|
+
value: ImageGallery[] | undefined;
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
/**
|
|
12
|
+
* **TSVue v2 - Carousel**
|
|
13
|
+
*
|
|
14
|
+
* _Carousel is a component for displaying a collection of images or content in a sliding or rotating fashion.
|
|
15
|
+
* You can navigate through the items using the provided next and previous functions._
|
|
16
|
+
*
|
|
17
|
+
* --- ---
|
|
18
|
+
* 
|
|
19
|
+
*
|
|
20
|
+
* @group components
|
|
21
|
+
*/
|
|
22
|
+
declare class Carousel extends ClassComponent<
|
|
23
|
+
CarouselProps,
|
|
24
|
+
unknown,
|
|
25
|
+
unknown
|
|
26
|
+
> {}
|
|
27
|
+
|
|
28
|
+
export default Carousel;
|
|
@@ -1,8 +1,12 @@
|
|
|
1
|
-
import { ClassComponent, GlobalComponentConstructor, HintedString } from '../.././components/ts-helpers';
|
|
2
|
-
import { TableColumn } from '../.././components/datatable/DataTable.vue.d';
|
|
3
|
-
import { FilterField } from '../.././components/filtercontainer/FilterContainer.vue.d';
|
|
4
1
|
import { ChangelogFilterQuery } from '@tagsamurai/acts-api-services/src/dto/changelog.dto';
|
|
5
2
|
|
|
3
|
+
import { TableColumn } from '../../components/datatable/DataTable.vue.d';
|
|
4
|
+
import { FilterField } from '../../components/filtercontainer/FilterContainer.vue.d';
|
|
5
|
+
import {
|
|
6
|
+
ClassComponent,
|
|
7
|
+
GlobalComponentConstructor,
|
|
8
|
+
HintedString,
|
|
9
|
+
} from '../../components/ts-helpers.d';
|
|
6
10
|
|
|
7
11
|
export type ChangelogTemplateColumn = { index: number; column: TableColumn };
|
|
8
12
|
export type ChangelogTemplateFilter = { index: number; filter: FilterField };
|
|
@@ -1,7 +1,14 @@
|
|
|
1
|
-
import { ClassComponent, GlobalComponentConstructor } from '../.././components/ts-helpers';
|
|
2
|
-
import { ChangelogDefaultField, ChangelogTemplateColumn, ChangelogTemplateFilter } from '../changelog/Changelog.vue.d';
|
|
3
1
|
import { ChangelogFilterQuery } from '@tagsamurai/acts-api-services/src/dto/changelog.dto';
|
|
4
2
|
|
|
3
|
+
import {
|
|
4
|
+
ClassComponent,
|
|
5
|
+
GlobalComponentConstructor,
|
|
6
|
+
} from '../../components/ts-helpers.d';
|
|
7
|
+
import {
|
|
8
|
+
ChangelogDefaultField,
|
|
9
|
+
ChangelogTemplateColumn,
|
|
10
|
+
ChangelogTemplateFilter,
|
|
11
|
+
} from '../changelog/Changelog.vue.d';
|
|
5
12
|
|
|
6
13
|
/**
|
|
7
14
|
* Props for Changelog component
|
|
@@ -6,13 +6,14 @@
|
|
|
6
6
|
*
|
|
7
7
|
*/
|
|
8
8
|
import { VNode } from 'vue';
|
|
9
|
+
|
|
9
10
|
import { ComponentHooks } from '../basecomponent';
|
|
10
11
|
import { PassThroughOptions } from '../passthrough';
|
|
11
12
|
import {
|
|
12
13
|
ClassComponent,
|
|
13
14
|
GlobalComponentConstructor,
|
|
14
15
|
PassThrough,
|
|
15
|
-
} from '../ts-helpers';
|
|
16
|
+
} from '../ts-helpers.d';
|
|
16
17
|
|
|
17
18
|
export declare type CheckboxPassThroughOptionType =
|
|
18
19
|
| CheckboxPassThroughAttributes
|
|
@@ -1,9 +1,12 @@
|
|
|
1
|
+
import { Component } from 'vue';
|
|
2
|
+
|
|
1
3
|
import { DialogConfirmProps } from '../../components/dialogconfirm/DialogConfirm.vue.d';
|
|
2
4
|
import { MenuItem } from '../../components/menuitem';
|
|
3
|
-
import { ClassComponent, HintedString } from '../ts-helpers.d';
|
|
4
|
-
import { Component } from 'vue';
|
|
5
5
|
import { DateOptions } from '../../utils/date.util';
|
|
6
6
|
|
|
7
|
+
import { WangsIconseverities } from '../icon/Icon.vue.d';
|
|
8
|
+
import { ClassComponent, HintedString } from '../ts-helpers.d';
|
|
9
|
+
|
|
7
10
|
export interface DataTableLocaleConfig {
|
|
8
11
|
/**
|
|
9
12
|
* Message to display on loading ovevrlay while downloading
|
|
@@ -153,6 +156,12 @@ export type TableCellComponent = {
|
|
|
153
156
|
events?: any;
|
|
154
157
|
onChange?: (itemData: any) => void;
|
|
155
158
|
disabled?: boolean;
|
|
159
|
+
/**
|
|
160
|
+
* To tell DataTable component whether this component should stop propagation or not
|
|
161
|
+
*
|
|
162
|
+
* @default true - since old logic was automatically stop event click from bodyComponent
|
|
163
|
+
*/
|
|
164
|
+
stop?: boolean;
|
|
156
165
|
};
|
|
157
166
|
|
|
158
167
|
export type TogglePresetConfirmDialogProps = Omit<
|
|
@@ -241,6 +250,7 @@ export interface TableColumn {
|
|
|
241
250
|
field: string;
|
|
242
251
|
fieldType?: 'string' | 'number' | 'boolean' | 'array';
|
|
243
252
|
info?: string;
|
|
253
|
+
infoSeverity?: WangsIconseverities;
|
|
244
254
|
editable?: boolean;
|
|
245
255
|
/**
|
|
246
256
|
* If the column is editable, only allow number inputs.
|
|
@@ -9,13 +9,14 @@
|
|
|
9
9
|
*
|
|
10
10
|
*/
|
|
11
11
|
import { HTMLAttributes, TransitionProps, VNode } from 'vue';
|
|
12
|
+
|
|
12
13
|
import { ComponentHooks } from '../basecomponent';
|
|
13
14
|
import { PassThroughOptions } from '../passthrough';
|
|
14
15
|
import {
|
|
15
16
|
ClassComponent,
|
|
16
17
|
GlobalComponentConstructor,
|
|
17
18
|
PassThrough,
|
|
18
|
-
} from '../ts-helpers';
|
|
19
|
+
} from '../ts-helpers.d';
|
|
19
20
|
|
|
20
21
|
export declare type DialogPassThroughOptionType<T = any> =
|
|
21
22
|
| DialogPassThroughAttributes
|
|
@@ -318,7 +319,7 @@ export interface DialogProps {
|
|
|
318
319
|
/**
|
|
319
320
|
* A string or string array class to append to the root section.
|
|
320
321
|
*/
|
|
321
|
-
class?: string | string[];
|
|
322
|
+
class?: string | string[] | object[];
|
|
322
323
|
/**
|
|
323
324
|
* A string or string array class to append to the dialog header section.
|
|
324
325
|
*/
|
|
@@ -326,11 +327,11 @@ export interface DialogProps {
|
|
|
326
327
|
/**
|
|
327
328
|
* A string or string array class to append to the dialog content section.
|
|
328
329
|
*/
|
|
329
|
-
contentClass?: string | string[];
|
|
330
|
+
contentClass?: string | string[] | object[];
|
|
330
331
|
/**
|
|
331
332
|
* A string or string array class to append to the dialog footer section.
|
|
332
333
|
*/
|
|
333
|
-
footerClass?: string | string[];
|
|
334
|
+
footerClass?: string | string[] | object[];
|
|
334
335
|
}
|
|
335
336
|
|
|
336
337
|
/**
|
|
@@ -1,10 +1,9 @@
|
|
|
1
|
-
import { WangsIcons } from '../.././components/icon/Icon.vue.d';
|
|
2
|
-
import { ClassComponent } from '../.././components/ts-helpers';
|
|
3
|
-
import { GlobalComponentConstructor } from '../.././components/ts-helpers.d';
|
|
4
1
|
import { Slot } from 'vue';
|
|
5
2
|
|
|
3
|
+
import { WangsIcons } from '../icon/Icon.vue.d';
|
|
4
|
+
import { ClassComponent, GlobalComponentConstructor } from '../ts-helpers.d';
|
|
6
5
|
|
|
7
|
-
type ConfirmDialogSeverity = 'success' | 'danger';
|
|
6
|
+
type ConfirmDialogSeverity = 'success' | 'danger' | 'primary';
|
|
8
7
|
|
|
9
8
|
export interface DialogConfirmLocaleConfig {
|
|
10
9
|
actionableCloseButtonLabel?: string;
|
|
@@ -39,10 +38,7 @@ export interface DialogConfirmProps {
|
|
|
39
38
|
*
|
|
40
39
|
* @default undefined - to fallback to props.severity
|
|
41
40
|
*/
|
|
42
|
-
confirmButtonSeverity?:
|
|
43
|
-
| ConfirmDialogSeverity
|
|
44
|
-
| 'fixed-primary'
|
|
45
|
-
| 'supply-primary';
|
|
41
|
+
confirmButtonSeverity?: ConfirmDialogSeverity | 'primary';
|
|
46
42
|
/**
|
|
47
43
|
* The boolean modelValue to show dialog.
|
|
48
44
|
*/
|
|
@@ -69,6 +65,10 @@ export interface DialogConfirmProps {
|
|
|
69
65
|
* The label of the confirm button.
|
|
70
66
|
*/
|
|
71
67
|
confirmLabel?: string;
|
|
68
|
+
/**
|
|
69
|
+
* Props to disable confirm button.
|
|
70
|
+
*/
|
|
71
|
+
disableConfirmButton?: boolean;
|
|
72
72
|
/**
|
|
73
73
|
* Custom header icon. Default is 'error' icon for danger severity, and 'checkbox-circle' for success severity.
|
|
74
74
|
*/
|