@fewangsit/wangsvue-fats 1.0.0-alpha.12 → 1.0.0-alpha.121
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 +9 -1
- package/components/assetinfo/AssetInfo.vue.d.ts +44 -0
- package/components/badgegroup/BadgeGroup.vue.d.ts +3 -1
- package/components/basetree/BaseTree.vue.d.ts +6 -1
- package/components/button/Button.vue.d.ts +7 -3
- package/components/buttonaddbyscan/ButtonAddByScan.vue.d.ts +40 -0
- package/components/buttonbulkaction/ButtonBulkAction.vue.d.ts +1 -0
- package/components/buttonradio/ButtonRadio.vue.d.ts +1 -0
- package/components/buttonscan/ButtonScan.vue.d.ts +202 -0
- package/components/buttonsearchbyscan/ButtonSearchByScan.vue.d.ts +46 -0
- package/components/buttonselecttree/ButtonSelectTree.vue.d.ts +2 -1
- package/components/buttonsplit/ButtonSplit.vue.d.ts +352 -34
- package/components/buttonsync/ButtonSync.vue.d.ts +22 -0
- package/components/buttontoggle/ButtonToggle.vue.d.ts +1 -0
- package/components/buttonviewlog/ButtonViewLog.vue.d.ts +17 -0
- package/components/calendar/Calendar.vue.d.ts +32 -4
- package/components/card/Card.vue.d.ts +1 -0
- package/components/carousel/Carousel.vue.d.ts +28 -0
- package/components/checkbox/Checkbox.vue.d.ts +1 -0
- package/components/datatable/DataTable.vue.d.ts +12 -4
- package/components/dialog/Dialog.vue.d.ts +4 -3
- package/components/dialogassetnamedetail/DialogAssetNameDetail.vue.d.ts +46 -0
- package/components/dialogassetnamedetail/options/columns.d.ts +2 -0
- package/components/dialogassetnamedetail/options/filter.d.ts +2 -0
- package/components/dialogconfirm/DialogConfirm.vue.d.ts +1 -0
- package/components/dialogform/DialogForm.vue.d.ts +3 -2
- package/components/dialoglinkedasset/DialogLinkedAsset.vue.d.ts +106 -0
- package/components/dialogprintqr/DialogPrintQR.vue.d.ts +18 -0
- package/components/dialogreportdamage/DialogReportDamage.vue.d.ts +34 -0
- package/components/dialogreportmissing/DialogReportMissing.vue.d.ts +33 -0
- package/components/dialogreporttag/DialogReportTag.vue.d.ts +31 -0
- package/components/dialogselecttree/DialogSelectTree.vue.d.ts +3 -2
- package/components/dialogselectuser/DialogSelectUser.vue.d.ts +102 -0
- package/components/dialogselectuser/options/columns.d.ts +3 -0
- package/components/dialogtransferlog/DialogTransferLog.vue.d.ts +16 -0
- package/components/dropdown/Dropdown.vue.d.ts +28 -4
- package/components/editor/Editor.vue.d.ts +1 -0
- package/components/fieldwrapper/FieldWrapper.vue.d.ts +19 -2
- package/components/fileupload/FileUpload.vue.d.ts +1 -0
- package/components/filtercontainer/FilterContainer.vue.d.ts +42 -12
- package/components/form/Form.vue.d.ts +2 -1
- package/components/icon/Icon.vue.d.ts +4 -0
- package/components/image/Image.vue.d.ts +8 -0
- package/components/imagecompressor/ImageCompressor.vue.d.ts +6 -0
- package/components/index.d.ts +33 -19
- 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/inputsearch/InputSearch.vue.d.ts +6 -2
- package/components/inputtext/InputText.vue.d.ts +2 -1
- package/components/inputurl/InputURL.vue.d.ts +4 -2
- package/components/invisiblefield/InvisibleField.vue.d.ts +32 -36
- package/components/languagedropdown/LanguageDropdown.vue.d.ts +5 -19
- package/components/litedropdown/LiteDropdown.vue.d.ts +5 -3
- package/components/loading/store/loading.store.d.ts +3 -3
- package/components/menu/Menu.vue.d.ts +2 -1
- package/components/multiselect/MultiSelect.vue.d.ts +7 -4
- package/components/overlaypanel/OverlayPanel.vue.d.ts +1 -0
- package/components/paginator/Paginator.vue.d.ts +285 -0
- package/components/tabmenu/TabMenu.vue.d.ts +6 -190
- package/components/tagtype/TagType.vue.d.ts +26 -0
- package/components/textarea/Textarea.vue.d.ts +2 -1
- package/components/timeline/Timeline.vue.d.ts +21 -2
- package/components/toast/Toast.vue.d.ts +2 -1
- package/components/toggleswitch/ToggleSwitch.vue.d.ts +1 -0
- package/components/transactionroles/TransactionRoles.vue.d.ts +58 -0
- package/components/tree/Tree.vue.d.ts +6 -3
- package/components/tree/helpers/filterNodeKeys.helper.d.ts +8 -2
- package/components/tree/helpers/flattenTreeNodeChildren.helper.d.ts +3 -1
- package/components/username/UserName.vue.d.ts +6 -1
- package/components/userwithicon/UserWithIcon.vue.d.ts +21 -0
- 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 +55 -52
- package/event-bus/mitt.d.ts +29 -14
- package/main.d.ts +34 -2
- package/package.json +14 -6
- package/plugins/VueHtmlToPaper.d.ts +11 -0
- package/plugins/WangsVue.d.ts +272 -98
- package/plugins/formValidation.d.ts +15 -6
- package/plugins/i18n-extension.d.ts +1 -1
- package/plugins/i18n.d.ts +90 -67
- package/stats.html +4949 -0
- package/style.css +1 -1
- package/utils/date.util.d.ts +64 -31
- package/utils/formatTagCode.util.d.ts +1 -0
- package/utils/getStatusSeverity.util.d.ts +23 -0
- package/utils/index.d.ts +7 -21
- package/utils/isBasic.util.d.ts +1 -0
- package/utils/listenSidebarChanges.util.d.ts +14 -9
- package/utils/object.util.d.ts +14 -3
- package/utils/role.util.d.ts +63 -26
- package/utils/toast.util.d.ts +78 -78
- package/wangsvue-fats.js +57715 -0
- package/wangsvue-fats.system.js +204 -267
- package/assets/json/currencies.json.d.ts +0 -1068
- package/assets/lottie/admin/loading-page.lottie +0 -0
- package/assets/lottie/admin/loading-table.lottie +0 -0
- package/assets/lottie/admin/no-data.lottie +0 -0
- package/assets/lottie/supplyasset/loading-page.lottie +0 -0
- package/assets/lottie/supplyasset/loading-table.lottie +0 -0
- package/assets/lottie/supplyasset/no-data.lottie +0 -0
- package/assets/lottie/workspace/loading-page.lottie +0 -0
- package/assets/lottie/workspace/loading-plane.lottie +0 -0
- package/assets/lottie/workspace/loading-table.lottie +0 -0
- package/assets/lottie/workspace/no-data.lottie +0 -0
- package/build-entry.d.ts +0 -14
- package/components/buttonsplit/ButtonSplit.d.ts +0 -350
- package/components/calendar/BaseCalendar.vue.d.ts +0 -86
- 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/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 -30
- 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/components/validatormessage/ValidatorMessage.vue.d.ts +0 -12
- package/types/options.type.d.ts +0 -16
- package/utils/addAttachment.util.d.ts +0 -43
- package/utils/exportToExcel.util.d.ts +0 -20
- 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/utils/textFormatter.util.d.ts +0 -17
- package/wangsvue-fats.es.js +0 -132454
package/components/index.d.ts
CHANGED
|
@@ -1,64 +1,78 @@
|
|
|
1
|
-
export * from '.././components';
|
|
2
|
-
export { default as Animation } from './animation/Animation.vue';
|
|
3
1
|
export { default as ApproverInfo } from './approverinfo/ApproverInfo.vue';
|
|
4
2
|
export { default as Badge } from './badge/Badge.vue';
|
|
5
3
|
export { default as BadgeGroup } from './badgegroup/BadgeGroup.vue';
|
|
6
|
-
export { default as BaseTree } from '
|
|
4
|
+
export { default as BaseTree } from './basetree/BaseTree.vue';
|
|
7
5
|
export { default as Breadcrumb } from './breadcrumb/Breadcrumb.vue';
|
|
8
6
|
export { default as Button } from './button/Button.vue';
|
|
9
7
|
export { default as ButtonBulkAction } from './buttonbulkaction/ButtonBulkAction.vue';
|
|
10
8
|
export { default as ButtonCopy } from './buttoncopy/ButtonCopy.vue';
|
|
11
9
|
export { default as ButtonDownload } from './buttondownload/ButtonDownload.vue';
|
|
12
10
|
export { default as ButtonFilter } from './buttonfilter/ButtonFilter.vue';
|
|
13
|
-
export { default as ButtonImportExcel } from './buttonImportExcel/ButtonImportExcel.vue';
|
|
14
11
|
export { default as ButtonRadio } from './buttonradio/ButtonRadio.vue';
|
|
12
|
+
export { default as ButtonScan } from './buttonscan/ButtonScan.vue';
|
|
13
|
+
export { default as ButtonSearchByScan } from './buttonsearchbyscan/ButtonSearchByScan.vue';
|
|
15
14
|
export { default as ButtonSearch } from './buttonsearch/ButtonSearch.vue';
|
|
16
|
-
export { default as ButtonSelectTree } from '
|
|
17
|
-
export { default as
|
|
15
|
+
export { default as ButtonSelectTree } from './buttonselecttree/ButtonSelectTree.vue';
|
|
16
|
+
export { default as ButtonSync } from './buttonsync/ButtonSync.vue';
|
|
18
17
|
export { default as ButtonToggle } from './buttontoggle/ButtonToggle.vue';
|
|
19
|
-
export { default as Calendar } from '
|
|
18
|
+
export { default as Calendar } from './calendar/Calendar.vue';
|
|
20
19
|
export { default as Card } from './card/Card.vue';
|
|
20
|
+
export { default as Carousel } from './carousel/Carousel.vue';
|
|
21
21
|
export { default as Checkbox } from './checkbox/Checkbox.vue';
|
|
22
|
-
export { default as CodeSnippet } from './codesnippet/CodeSnippet.vue';
|
|
23
22
|
export { default as DataTable } from './datatable/DataTable.vue';
|
|
24
23
|
export { default as Dialog } from './dialog/Dialog.vue';
|
|
25
24
|
export { default as DialogConfirm } from './dialogconfirm/DialogConfirm.vue';
|
|
26
25
|
export { default as DialogForm } from './dialogform/DialogForm.vue';
|
|
27
|
-
export { default as DialogSelectTree } from '
|
|
26
|
+
export { default as DialogSelectTree } from './dialogselecttree/DialogSelectTree.vue';
|
|
28
27
|
export { default as Dropdown } from './dropdown/Dropdown.vue';
|
|
29
|
-
export { default as Editor } from './editor/Editor.vue';
|
|
30
28
|
export { default as FileUpload } from './fileupload/FileUpload.vue';
|
|
31
|
-
export { default as FilterContainer } from './filtercontainer/FilterContainer.vue';
|
|
32
29
|
export { default as Form } from './form/Form.vue';
|
|
33
30
|
export { default as Icon } from './icon/Icon.vue';
|
|
34
31
|
export { default as Image } from './image/Image.vue';
|
|
35
32
|
export { default as ImageCompressor } from './imagecompressor/ImageCompressor.vue';
|
|
36
|
-
export { default as InlineMessage } from '
|
|
33
|
+
export { default as InlineMessage } from './inlinemessage/InlineMessage.vue';
|
|
37
34
|
export { default as InputBadge } from './inputbadge/InputBadge.vue';
|
|
38
35
|
export { default as InputCurrency } from './inputcurrency/InputCurrency.vue';
|
|
39
36
|
export { default as InputEmail } from './inputemail/InputEmail.vue';
|
|
40
37
|
export { default as InputNumber } from './inputnumber/InputNumber.vue';
|
|
38
|
+
export { default as InputOtp } from './inputotp/InputOtp.vue';
|
|
41
39
|
export { default as InputPassword } from './inputpassword/InputPassword.vue';
|
|
42
40
|
export { default as InputPhoneNumber } from './inputphonenumber/InputPhoneNumber.vue';
|
|
43
41
|
export { default as InputRangeNumber } from './inputrangenumber/InputRangeNumber.vue';
|
|
44
|
-
export { default as InputSearch } from './inputsearch/InputSearch.vue';
|
|
45
42
|
export { default as InputText } from './inputtext/InputText.vue';
|
|
46
43
|
export { default as InputURL } from './inputurl/InputURL.vue';
|
|
47
44
|
export { default as InvisibleField } from './invisiblefield/InvisibleField.vue';
|
|
48
|
-
export { default as LanguageDropdown } from './languagedropdown/LanguageDropdown.vue';
|
|
49
45
|
export { default as LiteDropdown } from './litedropdown/LiteDropdown.vue';
|
|
46
|
+
export { default as LanguageSwitcher } from './languageswitcher/LanguageSwitcher.vue';
|
|
50
47
|
export { default as Loading } from './loading/Loading.vue';
|
|
51
48
|
export { default as Menu } from './menu/Menu.vue';
|
|
52
49
|
export { default as MultiSelect } from './multiselect/MultiSelect.vue';
|
|
53
50
|
export { default as OverlayPanel } from './overlaypanel/OverlayPanel.vue';
|
|
54
|
-
export { default as
|
|
55
|
-
export { default as QuickFilter } from './quickfilter/QuickFilter.vue';
|
|
51
|
+
export { default as Paginator } from './paginator/Paginator.vue';
|
|
56
52
|
export { default as TabMenu } from './tabmenu/TabMenu.vue';
|
|
53
|
+
export { default as TagType } from './tagtype/TagType.vue';
|
|
57
54
|
export { default as Textarea } from './textarea/Textarea.vue';
|
|
58
55
|
export { default as Timeline } from './timeline/Timeline.vue';
|
|
59
56
|
export { default as Toast } from './toast/Toast.vue';
|
|
60
57
|
export { default as ToggleSwitch } from './toggleswitch/ToggleSwitch.vue';
|
|
61
|
-
export { default as
|
|
62
|
-
export { default as Tree } from '.././components/tree/Tree.vue';
|
|
63
|
-
export { default as UserGroup } from './usergroup/UserGroup.vue';
|
|
58
|
+
export { default as Tree } from './tree/Tree.vue';
|
|
64
59
|
export { default as UserName } from './username/UserName.vue';
|
|
60
|
+
|
|
61
|
+
export { default as AssetInfo } from './assetinfo/AssetInfo.vue';
|
|
62
|
+
export { default as ButtonAddByScan } from './buttonaddbyscan/ButtonAddByScan.vue';
|
|
63
|
+
export { default as ButtonSelectUser } from './buttonselectuser/ButtonSelectUser.vue';
|
|
64
|
+
export { default as ButtonViewLog } from './buttonviewlog/ButtonViewLog.vue';
|
|
65
|
+
export { default as DialogLinkedAsset } from './dialoglinkedasset/DialogLinkedAsset.vue';
|
|
66
|
+
export { default as DialogSelectUser } from './dialogselectuser/DialogSelectUser.vue';
|
|
67
|
+
export { default as UserWithIcon } from './userwithicon/UserWithIcon.vue';
|
|
68
|
+
export { default as FilterContainer } from './filtercontainer/FilterContainer.vue';
|
|
69
|
+
export { default as InputSearch } from './inputsearch/InputSearch.vue';
|
|
70
|
+
export { default as TransactionRoles } from './transactionroles/TransactionRoles.vue';
|
|
71
|
+
export { default as DialogPrintQR } from './dialogprintqr/DialogPrintQR.vue';
|
|
72
|
+
export { default as DialogAssetNameDetail } from './dialogassetnamedetail/DialogAssetNameDetail.vue';
|
|
73
|
+
export { default as DialogReportTag } from './dialogreporttag/DialogReportTag.vue';
|
|
74
|
+
export { default as DialogReportDamage } from './dialogreportdamage/DialogReportDamage.vue';
|
|
75
|
+
export { default as DialogReportMissing } from './dialogreportmissing/DialogReportMissing.vue';
|
|
76
|
+
export { default as DialogTransferLog } from './dialogtransferlog/DialogTransferLog.vue';
|
|
77
|
+
export { default as DialogDamageLog } from './dialogdamagelog/DialogDamageLog.vue';
|
|
78
|
+
export { default as DisposalReport } from './disposalreport/DisposalReport.vue';
|
|
@@ -1,4 +1,8 @@
|
|
|
1
1
|
import { CurrencyFormat } from '../InputCurrency.vue.d';
|
|
2
2
|
declare const getCurrency: (code?: string) => CurrencyFormat;
|
|
3
|
-
declare const formatCurrency: (
|
|
3
|
+
declare const formatCurrency: (
|
|
4
|
+
value?: number | string | null,
|
|
5
|
+
currency?: string,
|
|
6
|
+
prefix?: boolean,
|
|
7
|
+
) => string;
|
|
4
8
|
export { getCurrency, formatCurrency };
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { DefineComponent, Slot } from 'vue';
|
|
2
|
+
|
|
2
3
|
import { CustomValidation } from '../form/Form.vue.d';
|
|
3
4
|
|
|
4
5
|
export type InputNumberEvent = number | string | undefined;
|
|
@@ -261,6 +262,11 @@ export type InputNumberEmits = {
|
|
|
261
262
|
export interface InputNumberSlots {
|
|
262
263
|
'addon-left': Slot;
|
|
263
264
|
'addon-right': Slot;
|
|
265
|
+
/**
|
|
266
|
+
* Slot for content in the right side of field label
|
|
267
|
+
*/
|
|
268
|
+
'field-label-addon': Slot;
|
|
269
|
+
'validatormessage': Slot;
|
|
264
270
|
}
|
|
265
271
|
|
|
266
272
|
/**
|
|
@@ -1,5 +1,7 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
1
|
+
import {
|
|
2
|
+
ClassComponent,
|
|
3
|
+
GlobalComponentConstructor,
|
|
4
|
+
} from '../../components/ts-helpers';
|
|
3
5
|
|
|
4
6
|
export type InputSearchEmits = {
|
|
5
7
|
/**
|
|
@@ -30,3 +32,5 @@ declare module '@vue/runtime-core' {
|
|
|
30
32
|
InputSearch: GlobalComponentConstructor<InputSearch>;
|
|
31
33
|
}
|
|
32
34
|
}
|
|
35
|
+
|
|
36
|
+
export default InputSearch;
|
|
@@ -8,9 +8,10 @@
|
|
|
8
8
|
*
|
|
9
9
|
*/
|
|
10
10
|
import { InputHTMLAttributes, Slot } from 'vue';
|
|
11
|
+
|
|
11
12
|
import { ComponentHooks } from '../basecomponent';
|
|
12
|
-
import { ClassComponent, Nullable } from '../ts-helpers';
|
|
13
13
|
import { CustomValidation } from '../form/Form.vue.d';
|
|
14
|
+
import { ClassComponent, Nullable } from '../ts-helpers';
|
|
14
15
|
export declare type InputTextPassThroughOptionType<T = any> =
|
|
15
16
|
| InputTextPassThroughAttributes
|
|
16
17
|
| ((
|
|
@@ -1,9 +1,11 @@
|
|
|
1
1
|
import { Slot } from 'vue';
|
|
2
|
-
|
|
2
|
+
|
|
3
3
|
import {
|
|
4
4
|
InputTextEmits,
|
|
5
5
|
InputTextProps,
|
|
6
|
-
} from '
|
|
6
|
+
} from '../../components/inputtext/InputText.vue.d';
|
|
7
|
+
|
|
8
|
+
import { ClassComponent } from '../ts-helpers';
|
|
7
9
|
|
|
8
10
|
/**
|
|
9
11
|
* InputURL component props
|
|
@@ -1,36 +1,32 @@
|
|
|
1
|
-
import { Nullable } from '../ts-helpers';
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
}
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
}
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
type: import('vue').PropType<T[K]>;
|
|
34
|
-
required: true;
|
|
35
|
-
};
|
|
36
|
-
};
|
|
1
|
+
import { ClassComponent, Nullable } from '../ts-helpers';
|
|
2
|
+
|
|
3
|
+
export type FieldValue =
|
|
4
|
+
| Nullable<string>
|
|
5
|
+
| Nullable<number>
|
|
6
|
+
| string
|
|
7
|
+
| string[]
|
|
8
|
+
| number
|
|
9
|
+
| number[]
|
|
10
|
+
| boolean
|
|
11
|
+
| undefined
|
|
12
|
+
| null
|
|
13
|
+
| object;
|
|
14
|
+
|
|
15
|
+
export interface InvisibleFieldProps {
|
|
16
|
+
value?: FieldValue;
|
|
17
|
+
fieldName?: string;
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
declare class InvisibleField extends ClassComponent<
|
|
21
|
+
InvisibleFieldProps,
|
|
22
|
+
unknown,
|
|
23
|
+
unknown
|
|
24
|
+
> {}
|
|
25
|
+
|
|
26
|
+
declare module 'vue' {
|
|
27
|
+
export interface GlobalComponents {
|
|
28
|
+
InvisibleField: typeof InvisibleField;
|
|
29
|
+
}
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
export default InvisibleField;
|
|
@@ -1,23 +1,9 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
/**
|
|
6
|
-
* ISO 639-1 language code (e.g., "en" for English, "fr" for French).
|
|
7
|
-
*/
|
|
8
|
-
isoCode?: string;
|
|
9
|
-
|
|
10
|
-
/**
|
|
11
|
-
* The name of the language in English (e.g., "English", "Français").
|
|
12
|
-
*/
|
|
13
|
-
name: string;
|
|
1
|
+
import {
|
|
2
|
+
DropdownEmits,
|
|
3
|
+
DropdownProps,
|
|
4
|
+
} from '../../components/dropdown/Dropdown.vue.d';
|
|
14
5
|
|
|
15
|
-
|
|
16
|
-
* The URL of the country's flag image.
|
|
17
|
-
* Flags are sourced from https://flagcdn.com and are typically in SVG format for high-quality resolution.
|
|
18
|
-
*/
|
|
19
|
-
flag?: string;
|
|
20
|
-
}
|
|
6
|
+
import { ClassComponent, GlobalComponentConstructor } from '../ts-helpers';
|
|
21
7
|
|
|
22
8
|
export type LanguageDropdownProps = DropdownProps & {};
|
|
23
9
|
export type LanguageDropdownEmits = DropdownEmits & {};
|
|
@@ -1,13 +1,15 @@
|
|
|
1
|
-
import { DropdownOption, OptionValue } from 'lib/types/options.type';
|
|
2
|
-
import { ClassComponent, GlobalComponentConstructor } from '../ts-helpers';
|
|
3
1
|
import { DropdownChangeEvent } from 'primevue/dropdown';
|
|
4
2
|
|
|
3
|
+
import { Option, OptionValue } from '../../components/dropdown/Dropdown.vue.d';
|
|
4
|
+
|
|
5
|
+
import { ClassComponent, GlobalComponentConstructor } from '../ts-helpers';
|
|
6
|
+
|
|
5
7
|
/**
|
|
6
8
|
* Lite dropdown component props
|
|
7
9
|
*/
|
|
8
10
|
export interface LiteDropdownProps {
|
|
9
11
|
modelValue: OptionValue | undefined;
|
|
10
|
-
options:
|
|
12
|
+
options: Option[] | undefined;
|
|
11
13
|
/**
|
|
12
14
|
* Specify the property name of option to be used as label.
|
|
13
15
|
*
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { Ref } from 'vue';
|
|
2
2
|
export interface LoadingStore {
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
3
|
+
loading: Ref<boolean>;
|
|
4
|
+
message: Ref<string | undefined>;
|
|
5
|
+
setLoading: (state: boolean, message?: string) => void;
|
|
6
6
|
}
|
|
7
7
|
declare const useLoadingStore: () => LoadingStore;
|
|
8
8
|
export default useLoadingStore;
|
|
@@ -10,9 +10,10 @@
|
|
|
10
10
|
*
|
|
11
11
|
*/
|
|
12
12
|
import { TransitionProps, VNode } from 'vue';
|
|
13
|
+
|
|
13
14
|
import { ComponentHooks } from '../basecomponent';
|
|
14
|
-
import { PassThroughOptions } from '../passthrough';
|
|
15
15
|
import { MenuItem } from '../menuitem';
|
|
16
|
+
import { PassThroughOptions } from '../passthrough';
|
|
16
17
|
import {
|
|
17
18
|
ClassComponent,
|
|
18
19
|
GlobalComponentConstructor,
|
|
@@ -1,9 +1,12 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import {
|
|
2
|
+
DropdownLocaleConfig,
|
|
3
|
+
Option,
|
|
4
|
+
OptionValue,
|
|
5
|
+
} from '../../components/dropdown/Dropdown.vue.d';
|
|
6
|
+
|
|
2
7
|
import { CustomValidation } from '../form/Form.vue.d';
|
|
3
8
|
import { ClassComponent, GlobalComponentConstructor } from '../ts-helpers';
|
|
4
9
|
|
|
5
|
-
import { MultiSelectOption, OptionValue } from 'lib/types/options.type';
|
|
6
|
-
|
|
7
10
|
export type MultiSelectLocaleConfig = DropdownLocaleConfig & {};
|
|
8
11
|
|
|
9
12
|
/**
|
|
@@ -25,7 +28,7 @@ export interface MultiSelectProps {
|
|
|
25
28
|
/**
|
|
26
29
|
* List of options to display.
|
|
27
30
|
*/
|
|
28
|
-
options?:
|
|
31
|
+
options?: Option[] | string[];
|
|
29
32
|
|
|
30
33
|
/**
|
|
31
34
|
* Specify the property name of option to be used as label.
|
|
@@ -0,0 +1,285 @@
|
|
|
1
|
+
/**
|
|
2
|
+
*
|
|
3
|
+
* Paginator is a generic component to display content in paged format.
|
|
4
|
+
*
|
|
5
|
+
* [Live Demo](https://TSVue v2.org/paginator)
|
|
6
|
+
*
|
|
7
|
+
* @module paginator
|
|
8
|
+
*
|
|
9
|
+
*/
|
|
10
|
+
import { VNode } from 'vue';
|
|
11
|
+
|
|
12
|
+
import { PassThroughOptions } from '../passthrough';
|
|
13
|
+
import {
|
|
14
|
+
ClassComponent,
|
|
15
|
+
GlobalComponentConstructor,
|
|
16
|
+
PassThrough,
|
|
17
|
+
} from '../ts-helpers';
|
|
18
|
+
|
|
19
|
+
import {
|
|
20
|
+
PaginatorPassThroughAttributes,
|
|
21
|
+
PaginatorPassThroughOptions,
|
|
22
|
+
} from 'primevue/paginator';
|
|
23
|
+
|
|
24
|
+
export declare type PaginatorPassThroughOptionType<T = any> =
|
|
25
|
+
| PaginatorPassThroughAttributes
|
|
26
|
+
| ((
|
|
27
|
+
options: PaginatorPassThroughMethodOptions<T>,
|
|
28
|
+
) => PaginatorPassThroughAttributes | string)
|
|
29
|
+
| string
|
|
30
|
+
| null
|
|
31
|
+
| undefined;
|
|
32
|
+
|
|
33
|
+
/**
|
|
34
|
+
* Custom passthrough(pt) option method.
|
|
35
|
+
*/
|
|
36
|
+
export interface PaginatorPassThroughMethodOptions<T> {
|
|
37
|
+
/**
|
|
38
|
+
* Defines instance.
|
|
39
|
+
*/
|
|
40
|
+
instance: any;
|
|
41
|
+
/**
|
|
42
|
+
* Defines valid properties.
|
|
43
|
+
*/
|
|
44
|
+
props: PaginatorProps;
|
|
45
|
+
/**
|
|
46
|
+
* Defines current inline state.
|
|
47
|
+
*/
|
|
48
|
+
state: PaginatorState;
|
|
49
|
+
/**
|
|
50
|
+
* Defines parent instance.
|
|
51
|
+
*/
|
|
52
|
+
parent: T;
|
|
53
|
+
/**
|
|
54
|
+
* Defines current options.
|
|
55
|
+
*/
|
|
56
|
+
context: PaginatorContext;
|
|
57
|
+
/**
|
|
58
|
+
* Defines passthrough(pt) options in global config.
|
|
59
|
+
*/
|
|
60
|
+
global: object | undefined;
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
/**
|
|
64
|
+
* Custom shared passthrough(pt) option method.
|
|
65
|
+
*/
|
|
66
|
+
export interface PaginatorSharedPassThroughMethodOptions {
|
|
67
|
+
/**
|
|
68
|
+
* Defines valid properties.
|
|
69
|
+
*/
|
|
70
|
+
props: PaginatorProps;
|
|
71
|
+
/**
|
|
72
|
+
* Defines current inline state.
|
|
73
|
+
*/
|
|
74
|
+
state: PaginatorState;
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
/**
|
|
78
|
+
* Defines current inline state in Paginator component.
|
|
79
|
+
*/
|
|
80
|
+
export interface PaginatorState {
|
|
81
|
+
/**
|
|
82
|
+
* Current index of first record as a number.
|
|
83
|
+
*/
|
|
84
|
+
d_first: number;
|
|
85
|
+
/**
|
|
86
|
+
* Current number of rows to display in new page as a number.
|
|
87
|
+
*/
|
|
88
|
+
d_rows: number;
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
/**
|
|
92
|
+
* Defines current options in Paginator component.
|
|
93
|
+
*/
|
|
94
|
+
export interface PaginatorContext {
|
|
95
|
+
/**
|
|
96
|
+
* Current active state as a boolean.
|
|
97
|
+
* @defaultValue false
|
|
98
|
+
*/
|
|
99
|
+
active: boolean;
|
|
100
|
+
/**
|
|
101
|
+
* Current disabled state of the button as a boolean.
|
|
102
|
+
* @defaultValue false
|
|
103
|
+
*/
|
|
104
|
+
disabled: boolean;
|
|
105
|
+
}
|
|
106
|
+
|
|
107
|
+
/**
|
|
108
|
+
* Paginator page state metadata.
|
|
109
|
+
*/
|
|
110
|
+
export interface PageState {
|
|
111
|
+
/**
|
|
112
|
+
* Index of first record
|
|
113
|
+
*/
|
|
114
|
+
first: number;
|
|
115
|
+
/**
|
|
116
|
+
* Number of rows to display in new page
|
|
117
|
+
*/
|
|
118
|
+
rows: number;
|
|
119
|
+
/**
|
|
120
|
+
* New page number
|
|
121
|
+
*/
|
|
122
|
+
page: number;
|
|
123
|
+
/**
|
|
124
|
+
* Total number of pages
|
|
125
|
+
*/
|
|
126
|
+
pageCount?: number;
|
|
127
|
+
}
|
|
128
|
+
|
|
129
|
+
/**
|
|
130
|
+
* Defines valid properties in Paginator component.
|
|
131
|
+
*/
|
|
132
|
+
export interface PaginatorProps {
|
|
133
|
+
/**
|
|
134
|
+
* Number of total records.
|
|
135
|
+
* @defaultValue 0
|
|
136
|
+
*/
|
|
137
|
+
totalRecords?: number | undefined;
|
|
138
|
+
/**
|
|
139
|
+
* Data count to display per page.
|
|
140
|
+
* @defaultValue 0
|
|
141
|
+
*/
|
|
142
|
+
rows?: number | undefined;
|
|
143
|
+
/**
|
|
144
|
+
* Zero-relative number of the first row to be displayed.
|
|
145
|
+
* @defaultValue 0
|
|
146
|
+
*/
|
|
147
|
+
first?: number | undefined;
|
|
148
|
+
/**
|
|
149
|
+
* Number of page links to display.
|
|
150
|
+
* @defaultValue 5
|
|
151
|
+
*/
|
|
152
|
+
pageLinkSize?: number | undefined;
|
|
153
|
+
/**
|
|
154
|
+
* Array of integer values to display inside rows per page dropdown.
|
|
155
|
+
*/
|
|
156
|
+
rowsPerPageOptions?: number[] | undefined;
|
|
157
|
+
/**
|
|
158
|
+
* Template of the paginator, can either be a string or an object with key-value pairs to define templates per breakpoint. Available templates are the following;
|
|
159
|
+
*
|
|
160
|
+
* - FirstPageLink
|
|
161
|
+
* - PrevPageLink
|
|
162
|
+
* - PageLinks
|
|
163
|
+
* - NextPageLink
|
|
164
|
+
* - LastPageLink
|
|
165
|
+
* - RowsPerPageDropdown
|
|
166
|
+
* - JumpToPageDropdown
|
|
167
|
+
* - JumpToPageInput
|
|
168
|
+
* - CurrentPageReport
|
|
169
|
+
*/
|
|
170
|
+
template?: any | string;
|
|
171
|
+
/**
|
|
172
|
+
* Template of the current page report element. It displays information about the pagination state. Available placeholders are the following;
|
|
173
|
+
*
|
|
174
|
+
* - {currentPage}
|
|
175
|
+
* - {totalPages}
|
|
176
|
+
* - {rows}
|
|
177
|
+
* - {first}
|
|
178
|
+
* - {last}
|
|
179
|
+
* - {totalRecords}
|
|
180
|
+
*
|
|
181
|
+
* @defaultValue '({currentPage} of {totalPages})'
|
|
182
|
+
*/
|
|
183
|
+
currentPageReportTemplate?: string | undefined;
|
|
184
|
+
/**
|
|
185
|
+
* Whether to show the paginator even there is only one page.
|
|
186
|
+
* @defaultValue true
|
|
187
|
+
*/
|
|
188
|
+
alwaysShow?: boolean | undefined;
|
|
189
|
+
/**
|
|
190
|
+
* Used to pass attributes to DOM elements inside the component.
|
|
191
|
+
* @type {PaginatorPassThroughOptions}
|
|
192
|
+
*/
|
|
193
|
+
pt?: PassThrough<PaginatorPassThroughOptions>;
|
|
194
|
+
/**
|
|
195
|
+
* Used to configure passthrough(pt) options of the component.
|
|
196
|
+
* @type {PassThroughOptions}
|
|
197
|
+
*/
|
|
198
|
+
ptOptions?: PassThroughOptions;
|
|
199
|
+
}
|
|
200
|
+
|
|
201
|
+
/**
|
|
202
|
+
* Defines valid slots in Paginator component.
|
|
203
|
+
*/
|
|
204
|
+
export interface PaginatorSlots {
|
|
205
|
+
/**
|
|
206
|
+
* Custom start template.
|
|
207
|
+
* @param {Object} scope - start slot's params.
|
|
208
|
+
*/
|
|
209
|
+
start(scope: {
|
|
210
|
+
/**
|
|
211
|
+
* Current state
|
|
212
|
+
* @see PageState
|
|
213
|
+
*/
|
|
214
|
+
state: PageState;
|
|
215
|
+
}): VNode[];
|
|
216
|
+
/**
|
|
217
|
+
* Custom end template.
|
|
218
|
+
* @param {Object} scope - end slot's params.
|
|
219
|
+
*/
|
|
220
|
+
end(scope: {
|
|
221
|
+
/**
|
|
222
|
+
* Current state
|
|
223
|
+
* @see PageState
|
|
224
|
+
*/
|
|
225
|
+
state: PageState;
|
|
226
|
+
}): VNode[];
|
|
227
|
+
/**
|
|
228
|
+
* Custom first page link icon template.
|
|
229
|
+
*/
|
|
230
|
+
firstpagelinkicon(): VNode[];
|
|
231
|
+
/**
|
|
232
|
+
* Custom previous page link icon template.
|
|
233
|
+
*/
|
|
234
|
+
prevpagelinkicon(): VNode[];
|
|
235
|
+
/**
|
|
236
|
+
* Custom finextrst page link icon template.
|
|
237
|
+
*/
|
|
238
|
+
nextpagelinkicon(): VNode[];
|
|
239
|
+
/**
|
|
240
|
+
* Custom last page link icon template.
|
|
241
|
+
*/
|
|
242
|
+
lastpagelinkicon(): VNode[];
|
|
243
|
+
/**
|
|
244
|
+
* Custom rowsperpagedropdownicon template.
|
|
245
|
+
* @param {Object} scope - rowsperpagedropdownicon's params.
|
|
246
|
+
*/
|
|
247
|
+
rowsperpagedropdownicon(scope: {
|
|
248
|
+
/**
|
|
249
|
+
* Style class of the rowsperpagedropdown icon.
|
|
250
|
+
*/
|
|
251
|
+
class: string;
|
|
252
|
+
}): VNode[];
|
|
253
|
+
/**
|
|
254
|
+
* Custom jumptopagedropdownicon template.
|
|
255
|
+
* @param {Object} scope - jumptopagedropdownicon's params.
|
|
256
|
+
*/
|
|
257
|
+
jumptopagedropdownicon(scope: {
|
|
258
|
+
/**
|
|
259
|
+
* Style class of the jumptopagedropdown icon.
|
|
260
|
+
*/
|
|
261
|
+
class: string;
|
|
262
|
+
}): VNode[];
|
|
263
|
+
}
|
|
264
|
+
|
|
265
|
+
/**
|
|
266
|
+
* Defines valid emits in Paginator component.
|
|
267
|
+
*/
|
|
268
|
+
export type PaginatorEmits = {
|
|
269
|
+
'page': [event: PageState];
|
|
270
|
+
'update:rows': [];
|
|
271
|
+
};
|
|
272
|
+
|
|
273
|
+
declare class Paginator extends ClassComponent<
|
|
274
|
+
PaginatorProps,
|
|
275
|
+
PaginatorSlots,
|
|
276
|
+
PaginatorEmits
|
|
277
|
+
> {}
|
|
278
|
+
|
|
279
|
+
declare module '@vue/runtime-core' {
|
|
280
|
+
interface GlobalComponents {
|
|
281
|
+
Paginator: GlobalComponentConstructor<Paginator>;
|
|
282
|
+
}
|
|
283
|
+
}
|
|
284
|
+
|
|
285
|
+
export default Paginator;
|