tsv2-library 1.0.61-beta.7 → 1.0.61-beta.71
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/dist/no-data-fa-7f1ccd18.js +4 -0
- package/dist/src/build-entry.d.ts +7 -3
- package/dist/src/components/v2/Animation/Animation.vue.d.ts +2 -1
- package/dist/src/components/v2/AssetTable/AssetFilters.vue.d.ts +74 -0
- package/dist/src/components/v2/AssetTable/UrlFormat.vue.d.ts +21 -0
- package/dist/src/components/v2/AssetTable/columns/assetColumns.d.ts +7 -0
- package/dist/src/components/v2/AssetTable/helpers/assetFilters.d.ts +7 -0
- package/dist/src/components/v2/AssetTable/helpers/formatAssetData.d.ts +3 -0
- package/dist/src/components/v2/AssetTable/helpers/index.d.ts +2 -0
- package/dist/src/components/v2/AssetTable/store/assetTable.store.d.ts +16 -0
- package/dist/src/components/v2/AssetTable/store/index.d.ts +1 -0
- package/dist/src/components/v2/Calendar/Calendar.vue.d.ts +31 -0
- package/dist/src/components/v2/Calendar/CustomCalendar.vue.d.ts +12 -0
- package/dist/src/components/v2/CustomColumn/ColumnList.vue.d.ts +4 -0
- package/dist/src/components/v2/CustomColumn/CustomColumn.vue.d.ts +5 -2
- package/dist/src/components/v2/DataTable/DataTable.vue.d.ts +16 -3
- package/dist/src/components/v2/DatePicker/DatePicker.vue.d.ts +23 -0
- package/dist/src/components/v2/DayOfYearPicker/DayOfYearPicker.vue.d.ts +97 -0
- package/dist/src/components/v2/DayPicker/DayPicker.vue.d.ts +23 -0
- package/dist/src/components/v2/DialogDataLocked/DialogDataLocked.vue.d.ts +6 -0
- package/dist/src/components/v2/DialogForm/DialogForm.vue.d.ts +5 -0
- package/dist/src/components/v2/DialogSelectAsset/DialogSelectAsset.vue.d.ts +1 -1
- package/dist/src/components/v2/DialogSelectAssetName/DialogSelectAssetName.vue.d.ts +75 -0
- package/dist/src/components/v2/DisposalReport/DisposalReportTable.vue.d.ts +9 -1
- package/dist/src/components/v2/Dropdown/Dropdown.vue.d.ts +1 -0
- package/dist/src/components/v2/Icon/Icon.vue.d.ts +1 -0
- package/dist/src/components/v2/Image/Image.vue.d.ts +5 -0
- package/dist/src/components/v2/InputNumber/InputNumber.vue.d.ts +6 -0
- package/dist/src/components/v2/InputRangeNumber/InputRangeNumber.vue.d.ts +2 -2
- package/dist/src/components/v2/InputText/InputText.vue.d.ts +16 -1
- package/dist/src/components/v2/MultiSelect/MultiSelect.vue.d.ts +4 -0
- package/dist/src/components/v2/Textarea/Textarea.vue.d.ts +5 -0
- package/dist/src/components/v2/TransactionRoles/TransactionRoles.vue.d.ts +1 -0
- package/dist/src/components/v2/index.d.ts +5 -1
- package/dist/src/dto/customField.dto.d.ts +9 -0
- package/dist/src/event-bus/index.d.ts +10 -3
- package/dist/src/presets/datepicker/index.js +13 -1
- package/dist/src/presets/dayofyearpicker/index.js +73 -0
- package/dist/src/presets/daypicker/index.js +14 -2
- package/dist/src/services/assetName.service.d.ts +8 -7
- package/dist/src/services/assets.service.d.ts +13 -13
- package/dist/src/services/damage.service.d.ts +1 -1
- package/dist/src/services/dataLock.service.d.ts +7 -0
- package/dist/src/services/globalSettings.service.d.ts +6 -0
- package/dist/src/services/missing.service.d.ts +1 -1
- package/dist/src/services/scanLog.service.d.ts +1 -1
- package/dist/src/services/settingsAttribute.service.d.ts +10 -0
- package/dist/src/services/tagQr.service.d.ts +1 -1
- package/dist/src/services/tagTransaction.service.d.ts +1 -1
- package/dist/src/services/tracking.service.d.ts +2 -2
- package/dist/src/services/transferTransaction.service.d.ts +1 -1
- package/dist/src/types/assets.type.d.ts +64 -1
- package/dist/src/types/filterField.type.d.ts +35 -0
- package/dist/src/types/globalSettings.type.d.ts +9 -0
- package/dist/src/types/settingsAttribute.type.d.ts +14 -0
- package/dist/src/utils/getVisibleColumns.util.d.ts +2 -0
- package/dist/src/utils/index.d.ts +2 -1
- package/dist/src/utils/role.util.d.ts +1 -1
- package/dist/style.css +1 -1
- package/dist/tsv2-library.es.js +34463 -31979
- package/dist/tsv2-library.umd.js +7 -7
- package/package.json +2 -2
- package/src/components/v2/Animation/Animation.vue.d.ts +2 -1
- package/src/components/v2/AssetTable/AssetFilters.vue.d.ts +74 -0
- package/src/components/v2/Calendar/Calendar.vue.d.ts +31 -0
- package/src/components/v2/CustomColumn/CustomColumn.vue.d.ts +5 -2
- package/src/components/v2/DataTable/DataTable.vue.d.ts +16 -3
- package/src/components/v2/DatePicker/DatePicker.vue.d.ts +23 -0
- package/src/components/v2/DayOfYearPicker/DayOfYearPicker.vue.d.ts +97 -0
- package/src/components/v2/DayPicker/DayPicker.vue.d.ts +23 -0
- package/src/components/v2/DialogForm/DialogForm.vue.d.ts +5 -0
- package/src/components/v2/DialogSelectAsset/DialogSelectAsset.vue.d.ts +1 -1
- package/src/components/v2/DialogSelectAssetName/DialogSelectAssetName.vue.d.ts +75 -0
- package/src/components/v2/Dropdown/Dropdown.vue.d.ts +1 -0
- package/src/components/v2/Icon/Icon.vue.d.ts +1 -0
- package/src/components/v2/Image/Image.vue.d.ts +5 -0
- package/src/components/v2/InputNumber/InputNumber.vue.d.ts +6 -0
- package/src/components/v2/InputRangeNumber/InputRangeNumber.vue.d.ts +2 -2
- package/src/components/v2/InputText/InputText.vue.d.ts +16 -1
- package/src/components/v2/MultiSelect/MultiSelect.vue.d.ts +4 -0
- package/src/components/v2/Textarea/Textarea.vue.d.ts +5 -0
- package/src/components/v2/TransactionRoles/TransactionRoles.vue.d.ts +1 -0
- package/src/module.d.ts +3 -0
- package/src/presets/datepicker/index.js +13 -1
- package/src/presets/dayofyearpicker/index.js +73 -0
- package/src/presets/daypicker/index.js +14 -2
- package/src/services/assetDamage.service.ts +1 -1
- package/src/services/assetName.service.ts +10 -0
- package/src/services/dataLock.service.ts +33 -0
- package/src/services/globalSettings.service.ts +33 -0
- package/src/services/settingsAttribute.service.ts +54 -0
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
const noDataFa = "data:application/octet-stream;base64,UEsDBB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dvACfMMXJk/m8KdbJGzCMUMn/gRrlw8M1Om6Ya5tlCpG6rlj82Ua/598z9QSwECFAAUAAAACACVEHNbCBrtsIEAAAC1AAAADQAAAAAAAAAAAAAAAAAAAAAAbWFuaWZlc3QuanNvblBLAQIUABQAAAAIAJUQc1tH1Q0B8Q4AAARVAAA0AAAAAAAAAAAAAAAAAKwAAABhbmltYXRpb25zL2QxYTNjZGYxLTdmNDEtNGZiYS05MDRiLWY5NjgwOTVjNjI2OC5qc29uUEsFBgAAAAACAAIAnQAAAO8PAAAAAA==";
|
|
2
|
+
export {
|
|
3
|
+
noDataFa as default
|
|
4
|
+
};
|
|
@@ -4,6 +4,7 @@ import TSToastService from '../node_modules/primevue/toastservice';
|
|
|
4
4
|
import AssetsServices from './services/assets.service';
|
|
5
5
|
import AssetNameService from './services/assetName.service';
|
|
6
6
|
import AssetBrandService from './services/assetBrand.service';
|
|
7
|
+
import DataLockService from './services/dataLock.service';
|
|
7
8
|
import DisposalServices, { API as DisposalAPI } from './services/disposal.service';
|
|
8
9
|
import { FilterMatchMode } from '../node_modules/primevue/api';
|
|
9
10
|
import { API as TreeAPI } from './services/tree.service';
|
|
@@ -19,17 +20,20 @@ interface TSFormContext<T> {
|
|
|
19
20
|
declare const useForm: <T>() => TSFormContext<T>;
|
|
20
21
|
declare const useField: <T>(path: MaybeRefOrGetter<string>, rules?: MaybeRef<RuleExpression<T>>, opts?: Partial<FieldOptions<T>> | undefined) => FieldContext<T>;
|
|
21
22
|
import Presets from './presets';
|
|
22
|
-
import { handleTokenExpiration, exportToExcel, formatGoDate, formatDate, getUserLocale, formatDateReadable, formatUserName, formatVowelSoundLabel, getImageURL, downloadFile, isObjectEmpty, useToast, listenSidebarChanges, unListenSidebarChanges, getCurrency, formatCurrency, getHostName, getBaseURL, useI18n, getNestedProperyValue, getSeverityByAssetStatus, clearStorage, forceLogout, reLogin, isValidJSONString, buildBodyParams, formatLogResponseData, googleMapLoader, getTransactionRole, getSystemRole, hasSystemRole, hasTransactionRole, checkRouteAccess, hasApprovalRole, hasManagerRole, hasAnyManagerRole, hasMonitoringReportRole, hasAnyMonitoringReportRole, hasStaffRole, hasAccessToAssetDetail } from './utils';
|
|
23
|
+
import { handleTokenExpiration, exportToExcel, formatGoDate, formatDate, getUserLocale, formatDateReadable, formatUserName, formatVowelSoundLabel, getImageURL, downloadFile, isObjectEmpty, useToast, listenSidebarChanges, unListenSidebarChanges, getCurrency, formatCurrency, getHostName, getBaseURL, useI18n, getNestedProperyValue, getSeverityByAssetStatus, clearStorage, forceLogout, reLogin, isValidJSONString, buildBodyParams, formatLogResponseData, googleMapLoader, getVisibleColumns, getTransactionRole, getSystemRole, hasSystemRole, hasTransactionRole, checkRouteAccess, hasApprovalRole, hasManagerRole, hasAnyManagerRole, hasMonitoringReportRole, hasAnyMonitoringReportRole, hasStaffRole, hasAccessToAssetDetail } from './utils';
|
|
23
24
|
import { default as eventBus, extendEventBus } from './event-bus';
|
|
24
25
|
import { flattenTreeNodeChildren, parseNodeKeys, filterNodeKeys } from './components/v2/Tree/helpers';
|
|
25
26
|
import useLoadingStore from './components/v2/Loading/store/loading.store';
|
|
27
|
+
import { useAssetTableStore } from './components/v2/AssetTable/store';
|
|
26
28
|
import Tooltip from '../node_modules/primevue/tooltip';
|
|
27
29
|
import Focus from './directives/v-focus';
|
|
28
30
|
import VueHtmlToPaper from './plugins/VueHtmlToPaper';
|
|
29
|
-
import {
|
|
31
|
+
import { ASSET_COL_FIELDS, assetValueColumns, assetValueColumnsWithDefault, customFieldColumns, defaultAssetColumns } from './components/v2/AssetTable/columns/assetColumns';
|
|
32
|
+
import { parseAssetStaticFilter, formatAssetValue } from './components/v2/AssetTable/helpers';
|
|
33
|
+
import { DialogDamageLog, DialogMissingLog, DialogTransferLog, TSAnimation, TSAssetInfo, TSApproverInfo, TSBadge, TSBadgeGroup, TSBreadcrumb, TSButton, TSButtonAddByScan, TSButtonBulkAction, TSButtonCopy, TSButtonDownload, TSButtonFilter, TSButtonLogHistory, TSButtonRadio, TSButtonViewLog, TSButtonScan, TSButtonSearchByScan, TSButtonSearch, TSButtonSync, TSButtonSelectTree, TSButtonSelectUser, TSButtonToggle, TSCalendar, TSCard, TSCarousel, TSCheckbox, TSCustomColumn, TSDataTable, TSDatePicker, TSDayPicker, TSDayOfYearPicker, TSDialog, TSDialogApprovalList, TSDialogAssetNameDetail, TSDialogConfirm, TSDialogCoordinate, TSDialogDataLocked, TSDialogForm, TSDialogLinkedAsset, TSDialogPrintQR, TSDialogReportDamage, TSDialogReportMissing, TSDialogReportTag, TSDialogSelectAssetName, TSDialogSelectTree, TSDialogSelectAsset, TSDialogSelectUser, TSDisposalReport, TSDropdown, TSFailedLoad, TSFilterContainer, TSAssetFilters, TSFileUpload, TSForm, TSIcon, TSImage, TSImageCompressor, TSInlineMessage, TSInputBadge, TSInputCurrency, TSInputCurrencyReference, TSInputCoordinate, TSInputEmail, TSInputNumber, TSInputOTP, TSInputPassword, TSInputPhoneNumber, TSInputRangeNumber, TSInputSearch, TSInputText, TSInputURL, TSLoading, TSMenu, TSMultiSelect, TSOverlayPanel, TSPaginator, TSProgressBar, TSSteps, TSTabMenu, TSTagType, TSTextarea, TSTimeline, TSToast, TSTransactionRoles, TSTree, TSTreeSearchInput, TSUserWithIcon, TSValidatorMessage } from './components/v2';
|
|
30
34
|
declare const TSi18n: import("vue-i18n").I18n<{}, {}, {}, string, false>;
|
|
31
35
|
declare const _default: {
|
|
32
36
|
install: (app: App) => void;
|
|
33
37
|
};
|
|
34
38
|
export default _default;
|
|
35
|
-
export { LibConfig, TSToastService, TSi18n, VueHtmlToPaper, Tooltip, Focus, DialogDamageLog, DialogMissingLog, DialogTransferLog, TSAnimation, TSAssetInfo, TSApproverInfo, TSBadge, TSBadgeGroup, TSBreadcrumb, TSButton, TSButtonAddByScan, TSButtonBulkAction, TSButtonCopy, TSButtonDownload, TSButtonFilter, TSButtonLogHistory, TSButtonRadio, TSButtonViewLog, TSButtonScan, TSButtonSearch, TSButtonSearchByScan, TSButtonSelectTree, TSButtonSelectUser, TSButtonSync, TSButtonToggle, TSCalendar, TSCard, TSCarousel, TSCheckbox, TSCustomColumn, TSDatePicker, TSDataTable, TSDayPicker, TSDialog, TSDialogApprovalList, TSDialogAssetNameDetail, TSDialogConfirm, TSDialogCoordinate, TSDialogForm, TSDialogLinkedAsset, TSDialogPrintQR, TSDialogReportDamage, TSDialogReportMissing, TSDialogReportTag, TSDialogSelectTree, TSDialogSelectAsset, TSDialogSelectUser, TSDisposalReport, TSDropdown, TSFailedLoad, TSFilterContainer, TSFileUpload, TSForm, TSIcon, TSImage, TSImageCompressor, TSInlineMessage, TSInputBadge, TSInputCurrency, TSInputCurrencyReference, TSInputCoordinate, TSInputEmail, TSInputNumber, TSInputOTP, TSInputPassword, TSInputPhoneNumber, TSInputRangeNumber, TSInputText, TSInputSearch, TSInputURL, TSLoading, TSMenu, TSMultiSelect, TSOverlayPanel, TSPaginator, TSProgressBar, TSSteps, TSTabMenu, TSTagType, TSTextarea, TSTimeline, TSToast, TSTransactionRoles, TSTree, TSTreeSearchInput, TSUserWithIcon, TSValidatorMessage, handleTokenExpiration, exportToExcel, formatGoDate, formatDate, getUserLocale, formatDateReadable, formatUserName, formatVowelSoundLabel, getImageURL, downloadFile, isObjectEmpty, useToast, listenSidebarChanges, unListenSidebarChanges, getCurrency, formatCurrency, getHostName, getBaseURL, useI18n, useForm, useField, getNestedProperyValue, getSeverityByAssetStatus, clearStorage, forceLogout, reLogin, isValidJSONString, buildBodyParams, formatLogResponseData, googleMapLoader, getTransactionRole, getSystemRole, hasSystemRole, hasTransactionRole, checkRouteAccess, hasApprovalRole, hasManagerRole, hasAnyManagerRole, hasMonitoringReportRole, hasAnyMonitoringReportRole, hasStaffRole, hasAccessToAssetDetail, flattenTreeNodeChildren, parseNodeKeys, filterNodeKeys, TreeAPI, RoutineAPI, DisposalAPI, RoutineServices, AssetsServices, AssetNameService, AssetBrandService, DisposalServices, FilterMatchMode, useLoadingStore, eventBus, extendEventBus, Presets, };
|
|
39
|
+
export { LibConfig, TSToastService, TSi18n, VueHtmlToPaper, Tooltip, Focus, DialogDamageLog, DialogMissingLog, DialogTransferLog, TSAnimation, TSAssetInfo, TSApproverInfo, TSBadge, TSBadgeGroup, TSBreadcrumb, TSButton, TSButtonAddByScan, TSButtonBulkAction, TSButtonCopy, TSButtonDownload, TSButtonFilter, TSButtonLogHistory, TSButtonRadio, TSButtonViewLog, TSButtonScan, TSButtonSearch, TSButtonSearchByScan, TSButtonSelectTree, TSButtonSelectUser, TSButtonSync, TSButtonToggle, TSCalendar, TSCard, TSCarousel, TSCheckbox, TSCustomColumn, TSDatePicker, TSDataTable, TSDayPicker, TSDayOfYearPicker, TSDialog, TSDialogApprovalList, TSDialogAssetNameDetail, TSDialogConfirm, TSDialogCoordinate, TSDialogDataLocked, TSDialogForm, TSDialogLinkedAsset, TSDialogPrintQR, TSDialogReportDamage, TSDialogReportMissing, TSDialogReportTag, TSDialogSelectAssetName, TSDialogSelectTree, TSDialogSelectAsset, TSDialogSelectUser, TSDisposalReport, TSDropdown, TSFailedLoad, TSFilterContainer, TSAssetFilters, TSFileUpload, TSForm, TSIcon, TSImage, TSImageCompressor, TSInlineMessage, TSInputBadge, TSInputCurrency, TSInputCurrencyReference, TSInputCoordinate, TSInputEmail, TSInputNumber, TSInputOTP, TSInputPassword, TSInputPhoneNumber, TSInputRangeNumber, TSInputText, TSInputSearch, TSInputURL, TSLoading, TSMenu, TSMultiSelect, TSOverlayPanel, TSPaginator, TSProgressBar, TSSteps, TSTabMenu, TSTagType, TSTextarea, TSTimeline, TSToast, TSTransactionRoles, TSTree, TSTreeSearchInput, TSUserWithIcon, TSValidatorMessage, handleTokenExpiration, exportToExcel, formatGoDate, formatDate, getUserLocale, formatAssetValue, formatDateReadable, formatUserName, formatVowelSoundLabel, getImageURL, downloadFile, isObjectEmpty, useToast, listenSidebarChanges, unListenSidebarChanges, getCurrency, formatCurrency, getHostName, getBaseURL, useI18n, useForm, useField, getNestedProperyValue, getSeverityByAssetStatus, clearStorage, forceLogout, reLogin, isValidJSONString, buildBodyParams, formatLogResponseData, googleMapLoader, getVisibleColumns, getTransactionRole, getSystemRole, hasSystemRole, hasTransactionRole, checkRouteAccess, hasApprovalRole, hasManagerRole, hasAnyManagerRole, hasMonitoringReportRole, hasAnyMonitoringReportRole, hasStaffRole, hasAccessToAssetDetail, flattenTreeNodeChildren, parseNodeKeys, filterNodeKeys, TreeAPI, RoutineAPI, DisposalAPI, RoutineServices, AssetsServices, AssetNameService, AssetBrandService, DataLockService, DisposalServices, FilterMatchMode, useLoadingStore, useAssetTableStore, eventBus, extendEventBus, Presets, ASSET_COL_FIELDS, assetValueColumns, assetValueColumnsWithDefault, customFieldColumns, defaultAssetColumns, parseAssetStaticFilter, };
|
|
@@ -7,7 +7,7 @@ export interface AnimationDefaultConfig {
|
|
|
7
7
|
}
|
|
8
8
|
|
|
9
9
|
export interface AnimationProps {
|
|
10
|
-
animation: 'loading-table-fa';
|
|
10
|
+
animation: 'loading-table-fa' | 'no-data-fa';
|
|
11
11
|
/**
|
|
12
12
|
* @default true
|
|
13
13
|
*/
|
|
@@ -21,6 +21,7 @@ export interface AnimationProps {
|
|
|
21
21
|
* Reference: https://developers.lottiefiles.com/docs/dotlottie-player/dotlottie-web/api/config/
|
|
22
22
|
*/
|
|
23
23
|
customConfig?: Partial<Config>;
|
|
24
|
+
canvasStyle?: string;
|
|
24
25
|
}
|
|
25
26
|
|
|
26
27
|
/**
|
|
@@ -0,0 +1,74 @@
|
|
|
1
|
+
import { DefineComponent } from 'vue';
|
|
2
|
+
import { FilterField } from '../../../types/filterField.type';
|
|
3
|
+
import { QueryParams } from '../DataTable/DataTable.vue.d';
|
|
4
|
+
|
|
5
|
+
export type AssetFilterFields =
|
|
6
|
+
| 'name'
|
|
7
|
+
| 'assetValue'
|
|
8
|
+
| 'category'
|
|
9
|
+
| 'brand'
|
|
10
|
+
| 'model'
|
|
11
|
+
| 'tagType'
|
|
12
|
+
| 'group'
|
|
13
|
+
| 'maintenanceAuditStatus'
|
|
14
|
+
| 'isTransactionable'
|
|
15
|
+
| 'measurement'
|
|
16
|
+
| 'lastScannedAt'
|
|
17
|
+
| 'warrantyStatus'
|
|
18
|
+
| 'customField';
|
|
19
|
+
|
|
20
|
+
export interface AssetFilterQuery extends QueryParams {
|
|
21
|
+
name?: string[];
|
|
22
|
+
brand?: string[];
|
|
23
|
+
model?: string[];
|
|
24
|
+
tagType?: string[];
|
|
25
|
+
maintenanceAuditStatus?: string[];
|
|
26
|
+
isTransactionable?: boolean[];
|
|
27
|
+
audit?: string[];
|
|
28
|
+
maintenance?: string[];
|
|
29
|
+
measurement?: string[];
|
|
30
|
+
warrantyStatus?: string[];
|
|
31
|
+
category?: string[];
|
|
32
|
+
group?: string[];
|
|
33
|
+
lastScannedAt?: number[];
|
|
34
|
+
linkedAssetCount?: number[];
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
export interface AssetFilterProps {
|
|
38
|
+
/**
|
|
39
|
+
* The filter object.
|
|
40
|
+
*/
|
|
41
|
+
filter: AssetFilterQuery;
|
|
42
|
+
/*
|
|
43
|
+
* The columns set as visible by the user. Used to determine which filters to show.
|
|
44
|
+
*/
|
|
45
|
+
visibleColumns: Record<string, boolean> | undefined;
|
|
46
|
+
/*
|
|
47
|
+
* The name of the table attached to the filter.
|
|
48
|
+
*/
|
|
49
|
+
tableName: string;
|
|
50
|
+
fetchOptions: FilterField<QueryParams>['fetchOptionFn'];
|
|
51
|
+
/*
|
|
52
|
+
* The list of filter fields to show.
|
|
53
|
+
*/
|
|
54
|
+
showFields?: AssetFilterFields[];
|
|
55
|
+
/*
|
|
56
|
+
* The list of filter fields to hide. This has a higher priority than `showFields`.
|
|
57
|
+
*/
|
|
58
|
+
hideFields?: AssetFilterFields[];
|
|
59
|
+
/**
|
|
60
|
+
* To determine the tag type options
|
|
61
|
+
*/
|
|
62
|
+
tagType?: 'RFID' | 'QR' | 'RFID & QR';
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
export type AssetFilterEmits = {
|
|
66
|
+
/*
|
|
67
|
+
* Used to update the filter container's key.
|
|
68
|
+
*/
|
|
69
|
+
updateFields: [];
|
|
70
|
+
};
|
|
71
|
+
|
|
72
|
+
declare const AssetFilters: DefineComponent<AssetFilterProps, AssetFilterEmits>;
|
|
73
|
+
|
|
74
|
+
export default AssetFilters;
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import type { PropType as __PropType } from 'vue';
|
|
2
|
+
declare const _sfc_main: import("vue").DefineComponent<{
|
|
3
|
+
dataType: {
|
|
4
|
+
type: __PropType<"URL" | "Document">;
|
|
5
|
+
required: true;
|
|
6
|
+
};
|
|
7
|
+
rawValue: {
|
|
8
|
+
type: __PropType<string>;
|
|
9
|
+
required: true;
|
|
10
|
+
};
|
|
11
|
+
}, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
12
|
+
dataType: {
|
|
13
|
+
type: __PropType<"URL" | "Document">;
|
|
14
|
+
required: true;
|
|
15
|
+
};
|
|
16
|
+
rawValue: {
|
|
17
|
+
type: __PropType<string>;
|
|
18
|
+
required: true;
|
|
19
|
+
};
|
|
20
|
+
}>>, {}, {}>;
|
|
21
|
+
export default _sfc_main;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { TableColumn } from '../../DataTable/DataTable.vue.d';
|
|
2
|
+
export declare const ASSET_COL_FIELDS: readonly ["assetImage", "name.nameWithSequence", "aliasName", "assetId", "group.name", "category.name", "brand.name", "model.name", "tagType", "measurement.name", "maintenanceStatus", "auditStatus", "transactions", "coordinates", "address", "warrantyStatus", "lastScannedAt", "linkedAssetCount"];
|
|
3
|
+
export type AssetColField = (typeof ASSET_COL_FIELDS)[number];
|
|
4
|
+
export declare const assetValueColumns: import("vue").Ref<TableColumn[], TableColumn[]>, assetValueColumnsWithDefault: import("vue").Ref<TableColumn[], TableColumn[]>, customFieldColumns: import("vue").Ref<TableColumn[], TableColumn[]>;
|
|
5
|
+
export declare const defaultAssetColumns: import("vue").ComputedRef<Record<"transactions" | "tagType" | "assetImage" | "name.nameWithSequence" | "aliasName" | "assetId" | "group.name" | "category.name" | "brand.name" | "model.name" | "measurement.name" | "maintenanceStatus" | "auditStatus" | "coordinates" | "address" | "warrantyStatus" | "lastScannedAt" | "linkedAssetCount", TableColumn & {
|
|
6
|
+
field: AssetColField;
|
|
7
|
+
}>>;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { AssetFilterFields, AssetFilterQuery } from '../AssetFilters.vue.d';
|
|
2
|
+
export declare const COLUMN_FILTER_STATIC_MAP: Partial<Record<AssetFilterFields, string>>;
|
|
3
|
+
export type StaticAssetFilters = Record<string, {
|
|
4
|
+
value?: unknown;
|
|
5
|
+
matchMode: string;
|
|
6
|
+
}>;
|
|
7
|
+
export declare const parseAssetStaticFilter: (filter: AssetFilterQuery) => StaticAssetFilters;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { TableColumn } from '../../../../components/v2/DataTable/DataTable.vue.d';
|
|
2
|
+
import { FilterField } from '../../../../types/filterField.type';
|
|
3
|
+
import { CustomField, DepreciationCategory } from '../../../../types/settingsAttribute.type';
|
|
4
|
+
import { Ref } from 'vue';
|
|
5
|
+
export interface AssetTableStore {
|
|
6
|
+
customFieldColumns: Ref<TableColumn[]>;
|
|
7
|
+
assetValueColumns: Ref<TableColumn[]>;
|
|
8
|
+
assetValueColumnsWithDefault: Ref<TableColumn[]>;
|
|
9
|
+
customFieldFilterFields: Ref<Omit<FilterField, 'fetchOptionFn'>[] | undefined>;
|
|
10
|
+
assetValueFilterFields: Ref<Omit<FilterField, 'fetchOptionFn'>[] | undefined>;
|
|
11
|
+
customFields: Ref<CustomField[] | undefined>;
|
|
12
|
+
depreciationCategories: Ref<DepreciationCategory[] | undefined>;
|
|
13
|
+
getFields: () => void;
|
|
14
|
+
}
|
|
15
|
+
declare const useAssetTableStore: () => AssetTableStore;
|
|
16
|
+
export default useAssetTableStore;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default as useAssetTableStore } from './assetTable.store';
|
|
@@ -22,6 +22,12 @@ export interface TSCalendarProps {
|
|
|
22
22
|
* Whether single date or date range model value.
|
|
23
23
|
*/
|
|
24
24
|
mode?: 'range' | 'single';
|
|
25
|
+
/**
|
|
26
|
+
* In range selection mode, if the same date is chosen twice,
|
|
27
|
+
* set whether it should be shown as separate dates ("date 1" - "date 1") or not ("date 1").
|
|
28
|
+
* @default true
|
|
29
|
+
*/
|
|
30
|
+
separateSameDate?: boolean;
|
|
25
31
|
/**
|
|
26
32
|
* Set the end date to 23.59.59
|
|
27
33
|
*
|
|
@@ -71,6 +77,31 @@ export interface TSCalendarProps {
|
|
|
71
77
|
* By default each field has preserved with its validator message, you don't need to worrying about the message.
|
|
72
78
|
*/
|
|
73
79
|
validatorMessage?: string;
|
|
80
|
+
/**
|
|
81
|
+
* Validate value while the overlay is shown. This function is run on clicking the overlay's Apply button.
|
|
82
|
+
*
|
|
83
|
+
* @returns {boolean} - Return true if the value is valid.
|
|
84
|
+
*/
|
|
85
|
+
overlayValidatorFunction?: (
|
|
86
|
+
value?: number | number[],
|
|
87
|
+
) => Promise<boolean> | boolean;
|
|
88
|
+
/**
|
|
89
|
+
* Set the custom validator message to show on the overlay.
|
|
90
|
+
* Used alongside overlayValidatorFunction.
|
|
91
|
+
*/
|
|
92
|
+
overlayValidatorMessage?: string;
|
|
93
|
+
/**
|
|
94
|
+
* Condition to show the date picker message.
|
|
95
|
+
*
|
|
96
|
+
* @returns {boolean} - Return true if the value is valid.
|
|
97
|
+
*/
|
|
98
|
+
datePickerMessageFunction?: (
|
|
99
|
+
value?: number | number[],
|
|
100
|
+
) => Promise<boolean> | boolean;
|
|
101
|
+
/**
|
|
102
|
+
* Set a message to be shown below the date picker.
|
|
103
|
+
*/
|
|
104
|
+
datePickerMessage?: string;
|
|
74
105
|
/**
|
|
75
106
|
* Set custom validation message for certain condition
|
|
76
107
|
*/
|
|
@@ -7,6 +7,18 @@ declare const _sfc_main: {
|
|
|
7
7
|
extends: import("vue").DefineComponent<{}, {}, any>;
|
|
8
8
|
inheritAttrs: boolean;
|
|
9
9
|
props: {
|
|
10
|
+
datePickerMessage: {
|
|
11
|
+
type: StringConstructor;
|
|
12
|
+
default: undefined;
|
|
13
|
+
};
|
|
14
|
+
showOverlayValidatorMessage: {
|
|
15
|
+
type: BooleanConstructor;
|
|
16
|
+
default: boolean;
|
|
17
|
+
};
|
|
18
|
+
separateSameDate: {
|
|
19
|
+
type: BooleanConstructor;
|
|
20
|
+
default: undefined;
|
|
21
|
+
};
|
|
10
22
|
today: null;
|
|
11
23
|
};
|
|
12
24
|
emits: string[];
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
declare const _sfc_main: import("vue").DefineComponent<any, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, any, string, import("vue").PublicProps, Readonly<any>, {} | {
|
|
2
|
+
[x: string]: any;
|
|
3
|
+
}, {}>;
|
|
4
|
+
export default _sfc_main;
|
|
@@ -1,10 +1,12 @@
|
|
|
1
1
|
import { TableColumn } from '../DataTable/DataTable.vue.d';
|
|
2
2
|
import { ClassComponent } from '../ts-helpers';
|
|
3
3
|
|
|
4
|
+
export type DragableColumn = TableColumn & { order?: number };
|
|
5
|
+
|
|
4
6
|
export interface DataTableColumnConfig {
|
|
5
7
|
field: string;
|
|
6
8
|
pinned: boolean;
|
|
7
|
-
width
|
|
9
|
+
width?: number | string;
|
|
8
10
|
visible: boolean;
|
|
9
11
|
}
|
|
10
12
|
|
|
@@ -19,6 +21,7 @@ export interface CustomColumnProps {
|
|
|
19
21
|
tableName?: string;
|
|
20
22
|
tableData?: Data[];
|
|
21
23
|
defaultColumns: TableColumn[];
|
|
24
|
+
defaultReorderColumns?: TableColumn[];
|
|
22
25
|
visibleColumns: TableColumn[];
|
|
23
26
|
/**
|
|
24
27
|
* The maximum column count allowed
|
|
@@ -35,7 +38,7 @@ declare class CustomColumn extends ClassComponent<
|
|
|
35
38
|
/**
|
|
36
39
|
* Method to show custom column menu.
|
|
37
40
|
*/
|
|
38
|
-
toggleMenu: () => void;
|
|
41
|
+
toggleMenu: (event?: Event) => void;
|
|
39
42
|
/**
|
|
40
43
|
* Resets the column visibility to default
|
|
41
44
|
*/
|
|
@@ -5,9 +5,7 @@ import { ClassComponent } from '../ts-helpers';
|
|
|
5
5
|
|
|
6
6
|
type Data = Record<string, any>;
|
|
7
7
|
|
|
8
|
-
export type QueryParams =
|
|
9
|
-
[key: string]: unknown;
|
|
10
|
-
};
|
|
8
|
+
export type QueryParams = Partial<Record<string, unknown>>;
|
|
11
9
|
|
|
12
10
|
export type FetchResponse<T = Data> = {
|
|
13
11
|
data: T[];
|
|
@@ -304,6 +302,11 @@ export interface DataTableSelectAllChangeEvent {
|
|
|
304
302
|
}
|
|
305
303
|
|
|
306
304
|
export interface TSDataTableProps {
|
|
305
|
+
/**
|
|
306
|
+
* Index of the first row to be displayed.
|
|
307
|
+
* @defaultValue 0
|
|
308
|
+
*/
|
|
309
|
+
first?: number;
|
|
307
310
|
/**
|
|
308
311
|
* Optional property to set a unique name for the table. This name will be used as part of the unique table ID.
|
|
309
312
|
*
|
|
@@ -555,6 +558,16 @@ export type TSDataTableEmits = {
|
|
|
555
558
|
* This will update the `selectedData` value whenever a row is selected or deselected.
|
|
556
559
|
*/
|
|
557
560
|
'update:selectedData': [datas: Data[]];
|
|
561
|
+
/**
|
|
562
|
+
* Emitted when the rows changes.
|
|
563
|
+
* @param {number} value - New value.
|
|
564
|
+
*/
|
|
565
|
+
'update:rows': [value: number];
|
|
566
|
+
/**
|
|
567
|
+
* Emitted when the first changes.
|
|
568
|
+
* @param {number} value - New value.
|
|
569
|
+
*/
|
|
570
|
+
'update:first': [value: number];
|
|
558
571
|
};
|
|
559
572
|
|
|
560
573
|
declare class DataTable extends ClassComponent<
|
|
@@ -38,6 +38,27 @@ export interface TSDatePickerProps {
|
|
|
38
38
|
* By default each field has preserved with its validator message, you don't need to worrying about the message.
|
|
39
39
|
*/
|
|
40
40
|
errorMessage?: { empty: string };
|
|
41
|
+
/**
|
|
42
|
+
* Whether multiple date or date range model value.
|
|
43
|
+
*
|
|
44
|
+
* @default 'range'
|
|
45
|
+
*/
|
|
46
|
+
selectionMode?: 'range' | 'multiple';
|
|
47
|
+
/**
|
|
48
|
+
* Validate value while the overlay is shown. This function is run on clicking the dates in the overlay.
|
|
49
|
+
*
|
|
50
|
+
* @returns {boolean} - Return true if the value is valid.
|
|
51
|
+
*/
|
|
52
|
+
overlayValidatorFunction?: (value?: number[]) => Promise<boolean> | boolean;
|
|
53
|
+
/**
|
|
54
|
+
* Set the custom validator message to show on the overlay.
|
|
55
|
+
* Used alongside overlayValidatorFunction.
|
|
56
|
+
*/
|
|
57
|
+
overlayValidatorMessage?: string;
|
|
58
|
+
/**
|
|
59
|
+
* Set a message to be shown on top of the overlay.
|
|
60
|
+
*/
|
|
61
|
+
overlayMessage?: string;
|
|
41
62
|
}
|
|
42
63
|
|
|
43
64
|
/**
|
|
@@ -45,6 +66,8 @@ export interface TSDatePickerProps {
|
|
|
45
66
|
*/
|
|
46
67
|
export type TSDatePickerEmits = {
|
|
47
68
|
'update:modelValue': [days?: number[]];
|
|
69
|
+
// Emits when overlay is hidden
|
|
70
|
+
'hide': [];
|
|
48
71
|
};
|
|
49
72
|
|
|
50
73
|
/**
|
|
@@ -0,0 +1,97 @@
|
|
|
1
|
+
import { DefineComponent } from 'vue';
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* TSDayOfYearPicker component props
|
|
5
|
+
*/
|
|
6
|
+
export interface TSDayOfYearPickerProps {
|
|
7
|
+
/**
|
|
8
|
+
* TSDayOfYearPicker modelValue is array of timestamps
|
|
9
|
+
*/
|
|
10
|
+
modelValue?: number[];
|
|
11
|
+
/**
|
|
12
|
+
* TSDayOfYearPicker initialValue is array of timestamps
|
|
13
|
+
*/
|
|
14
|
+
initialValue?: number[];
|
|
15
|
+
/**
|
|
16
|
+
* Array of timestamps representing dates that cannot be selected
|
|
17
|
+
* @default []
|
|
18
|
+
*/
|
|
19
|
+
disabledDates?: number[];
|
|
20
|
+
/**
|
|
21
|
+
* Display label on top of Date Input.
|
|
22
|
+
*/
|
|
23
|
+
label?: string;
|
|
24
|
+
/**
|
|
25
|
+
* Enable Validator using vee-validate. Combine with TSForm that handle form validation.
|
|
26
|
+
*/
|
|
27
|
+
useValidator?: boolean;
|
|
28
|
+
/**
|
|
29
|
+
* When used as field in From Validation using TSForm,
|
|
30
|
+
* specify the unique field name, match with your needs for API request.
|
|
31
|
+
*/
|
|
32
|
+
fieldName?: string;
|
|
33
|
+
/**
|
|
34
|
+
* Whether this field should be filled or not.
|
|
35
|
+
*/
|
|
36
|
+
mandatory?: boolean;
|
|
37
|
+
/**
|
|
38
|
+
* Sets the invalid state.
|
|
39
|
+
*/
|
|
40
|
+
invalid?: boolean;
|
|
41
|
+
/**
|
|
42
|
+
* Set the custom validator message.
|
|
43
|
+
* By default each field has preserved with its validator message, you don't need to worrying about the message.
|
|
44
|
+
*/
|
|
45
|
+
errorMessage?: { empty: string };
|
|
46
|
+
/**
|
|
47
|
+
* Year to display (defaults to 2024 due to leap year requirement)
|
|
48
|
+
*/
|
|
49
|
+
year?: number;
|
|
50
|
+
/**
|
|
51
|
+
* Validate value while the overlay is shown. This function is run on clicking the dates in the overlay.
|
|
52
|
+
*
|
|
53
|
+
* @returns {boolean} - Return true if the value is valid.
|
|
54
|
+
*/
|
|
55
|
+
overlayValidatorFunction?: (value?: number[]) => Promise<boolean> | boolean;
|
|
56
|
+
/**
|
|
57
|
+
* Set the custom validator message to show on the overlay.
|
|
58
|
+
* Used alongside overlayValidatorFunction.
|
|
59
|
+
*/
|
|
60
|
+
overlayValidatorMessage?: string;
|
|
61
|
+
/**
|
|
62
|
+
* Set a message to be shown on top of the overlay.
|
|
63
|
+
*/
|
|
64
|
+
overlayMessage?: string;
|
|
65
|
+
/**
|
|
66
|
+
* In range selection mode, if the same date is chosen twice,
|
|
67
|
+
* set whether it should be shown as separate dates ("date 1" - "date 1") or not ("date 1").
|
|
68
|
+
* @default true
|
|
69
|
+
*/
|
|
70
|
+
separateSameDate?: boolean;
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
/**
|
|
74
|
+
* TSDayOfYearPicker component emits
|
|
75
|
+
*/
|
|
76
|
+
export type TSDayOfYearPickerEmits = {
|
|
77
|
+
'update:modelValue': [days?: number[]];
|
|
78
|
+
// Emits when overlay is hidden
|
|
79
|
+
'hide': [];
|
|
80
|
+
};
|
|
81
|
+
|
|
82
|
+
/**
|
|
83
|
+
* **TSVue - TSDayOfYearPicker**
|
|
84
|
+
*
|
|
85
|
+
* _Handle input day with form validation._
|
|
86
|
+
*
|
|
87
|
+
* --- ---
|
|
88
|
+
* 
|
|
89
|
+
*
|
|
90
|
+
* @group form
|
|
91
|
+
*/
|
|
92
|
+
declare const TSDayOfYearPicker: DefineComponent<
|
|
93
|
+
TSDayOfYearPickerProps,
|
|
94
|
+
TSDayOfYearPickerEmits
|
|
95
|
+
>;
|
|
96
|
+
|
|
97
|
+
export default TSDayOfYearPicker;
|
|
@@ -38,6 +38,27 @@ export interface TSDayPickerProps {
|
|
|
38
38
|
* By default each field has preserved with its validator message, you don't need to worrying about the message.
|
|
39
39
|
*/
|
|
40
40
|
errorMessage?: { empty: string };
|
|
41
|
+
/**
|
|
42
|
+
* Whether multiple date or date range model value.
|
|
43
|
+
*
|
|
44
|
+
* @default 'range'
|
|
45
|
+
*/
|
|
46
|
+
selectionMode?: 'range' | 'multiple';
|
|
47
|
+
/**
|
|
48
|
+
* Validate value while the overlay is shown. This function is run on clicking the days in the overlay.
|
|
49
|
+
*
|
|
50
|
+
* @returns {boolean} - Return true if the value is valid.
|
|
51
|
+
*/
|
|
52
|
+
overlayValidatorFunction?: (value?: number[]) => Promise<boolean> | boolean;
|
|
53
|
+
/**
|
|
54
|
+
* Set the custom validator message to show on the overlay.
|
|
55
|
+
* Used alongside overlayValidatorFunction.
|
|
56
|
+
*/
|
|
57
|
+
overlayValidatorMessage?: string;
|
|
58
|
+
/**
|
|
59
|
+
* Set a message to be shown on top of the overlay.
|
|
60
|
+
*/
|
|
61
|
+
overlayMessage?: string;
|
|
41
62
|
}
|
|
42
63
|
|
|
43
64
|
/**
|
|
@@ -45,6 +66,8 @@ export interface TSDayPickerProps {
|
|
|
45
66
|
*/
|
|
46
67
|
export type TSDayPickerEmits = {
|
|
47
68
|
'update:modelValue': [days?: number[]];
|
|
69
|
+
// Emits when overlay is hidden
|
|
70
|
+
'hide': [];
|
|
48
71
|
};
|
|
49
72
|
|
|
50
73
|
/**
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
declare const _sfc_main: import("vue").DefineComponent<any, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "update:visible"[], "update:visible", import("vue").PublicProps, Readonly<any> & {
|
|
2
|
+
"onUpdate:visible"?: ((...args: any[]) => any) | undefined;
|
|
3
|
+
}, {} | {
|
|
4
|
+
[x: string]: any;
|
|
5
|
+
}, {}>;
|
|
6
|
+
export default _sfc_main;
|
|
@@ -128,6 +128,11 @@ export interface DialogFormProps extends FormProps {
|
|
|
128
128
|
* @defaultValue true
|
|
129
129
|
*/
|
|
130
130
|
autoZIndex?: boolean | undefined;
|
|
131
|
+
/**
|
|
132
|
+
* Base zIndex value to use in layering.
|
|
133
|
+
* @defaultValue 0
|
|
134
|
+
*/
|
|
135
|
+
baseZIndex?: number | undefined;
|
|
131
136
|
}
|
|
132
137
|
|
|
133
138
|
export interface ConfirmSlots {
|
|
@@ -0,0 +1,75 @@
|
|
|
1
|
+
import { DefineComponent } from 'vue';
|
|
2
|
+
|
|
3
|
+
export type DialogSelectAssetNameFilter = {
|
|
4
|
+
category?: string[];
|
|
5
|
+
};
|
|
6
|
+
|
|
7
|
+
export type DialogSelectAssetNameFilterQueryParams = Partial<
|
|
8
|
+
Record<keyof DialogSelectAssetNameFilter, string>
|
|
9
|
+
>;
|
|
10
|
+
|
|
11
|
+
export type FetchResponse = {
|
|
12
|
+
data: Data[];
|
|
13
|
+
totalRecords: number;
|
|
14
|
+
};
|
|
15
|
+
|
|
16
|
+
export interface AssetName {
|
|
17
|
+
_id: string;
|
|
18
|
+
name: string;
|
|
19
|
+
code: string;
|
|
20
|
+
aliasCode: string;
|
|
21
|
+
category: Category;
|
|
22
|
+
addOn: AddOn;
|
|
23
|
+
tagType: string;
|
|
24
|
+
brands: Category[];
|
|
25
|
+
models: Model[];
|
|
26
|
+
measurement: string;
|
|
27
|
+
totalAssets: number;
|
|
28
|
+
hasPairedAsset: boolean;
|
|
29
|
+
brandsLength: number;
|
|
30
|
+
modelsLength: number;
|
|
31
|
+
depreciationGroupsLength: number;
|
|
32
|
+
accountCode?: string;
|
|
33
|
+
updatedAt: string;
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
export type AssetNamePayload = Pick<AssetName, '_id' | 'name'>;
|
|
37
|
+
|
|
38
|
+
interface Model {
|
|
39
|
+
_id: string;
|
|
40
|
+
name: string;
|
|
41
|
+
brand: string;
|
|
42
|
+
category: string;
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
interface AddOn {
|
|
46
|
+
maintenance: boolean;
|
|
47
|
+
repairTicketing: boolean;
|
|
48
|
+
tracking: boolean;
|
|
49
|
+
assetControl: boolean;
|
|
50
|
+
audit: boolean;
|
|
51
|
+
map: boolean;
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
interface Category {
|
|
55
|
+
_id: string;
|
|
56
|
+
name: string;
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
export interface DialogSelectAssetNameProps {
|
|
60
|
+
visible?: boolean;
|
|
61
|
+
selectedAssetNames?: AssetNamePayload[];
|
|
62
|
+
// This prop is used only for CustomField
|
|
63
|
+
customFieldType?: 'General Information' | 'Purchase' | 'Accounting';
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
export type DialogSelectAssetNameEmit = {
|
|
67
|
+
select: [payload: AssetNamePayload[]];
|
|
68
|
+
};
|
|
69
|
+
|
|
70
|
+
declare const DialogSelectAssetName: DefineComponent<
|
|
71
|
+
DialogSelectAssetNameProps,
|
|
72
|
+
DialogSelectAssetNameEmit
|
|
73
|
+
>;
|
|
74
|
+
|
|
75
|
+
export default DialogSelectAssetName;
|