tsv2-library 1.0.61-alpha.11 → 1.0.61-alpha.111
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/loading-0-1a7cddc8.js +4 -0
- package/dist/loading-1-892eee7c.js +4 -0
- package/dist/loading-2-bf39c889.js +4 -0
- package/dist/loading-3-f1ea4b15.js +4 -0
- package/dist/node_modules/@googlemaps/js-api-loader/src/deprecated.d.ts +7 -0
- package/dist/node_modules/@googlemaps/js-api-loader/src/index.d.ts +52 -0
- package/dist/node_modules/@googlemaps/js-api-loader/src/messages.d.ts +9 -0
- package/dist/src/build-entry.d.ts +4 -2830
- package/dist/src/components/v2/AssetInfo/AssetInfo.vue.d.ts +4 -4
- package/dist/src/components/v2/ButtonScan/ButtonScan.vue.d.ts +6 -0
- package/dist/src/components/v2/ButtonSelectTree/ButtonSelectTree.vue.d.ts +7 -1
- package/dist/src/components/v2/DataTable/DataTable.vue.d.ts +13 -0
- package/dist/src/components/v2/DialogAssetNameDetail/DialogAssetNameDetail.vue.d.ts +3 -1
- package/dist/src/components/v2/DialogCoordinate/AssetList.vue.d.ts +4 -0
- package/dist/src/components/v2/DialogCoordinate/AssetListFilter.vue.d.ts +4 -0
- package/dist/src/components/v2/DialogCoordinate/DialogCoordinate.vue.d.ts +95 -0
- package/dist/src/components/v2/DialogCoordinate/FullscreenToggle.vue.d.ts +4 -0
- package/dist/src/components/v2/DialogCoordinate/MapSearch.vue.d.ts +15 -0
- package/dist/src/components/v2/DialogCoordinate/services/googleMapsService.d.ts +10 -0
- package/dist/src/components/v2/DialogCoordinate/services/openStreetMapService.d.ts +59 -0
- package/dist/src/components/v2/DialogReportDamage/DialogReportDamage.vue.d.ts +8 -0
- package/dist/src/components/v2/DialogReportMissing/DialogReportMissing.vue.d.ts +17 -0
- package/dist/src/components/v2/DialogSelectAsset/DialogSelectAsset.vue.d.ts +13 -9
- package/dist/src/components/v2/DialogSelectTree/DialogSelectTree.vue.d.ts +9 -1
- package/dist/src/components/v2/DisposalReport/DisposalReportTable.vue.d.ts +16 -0
- package/dist/src/components/v2/FileUpload/FileUpload.vue.d.ts +4 -0
- package/dist/src/components/v2/Form/Form.vue.d.ts +2 -0
- package/dist/src/components/v2/HardwareSync/HardwareSync.vue.d.ts +2 -2
- package/dist/src/components/v2/Icon/Icon.vue.d.ts +7 -0
- package/dist/src/components/v2/ImageCompressor/BackgroundImageCropper.vue.d.ts +1 -1
- package/dist/src/components/v2/InputCoordinate/InputCoordinate.vue.d.ts +64 -0
- package/dist/src/components/v2/InputCurrency/InputCurrency.vue.d.ts +5 -0
- package/dist/src/components/v2/InputCurrencyReference/InputCurrencyReference.vue.d.ts +30 -0
- package/dist/src/components/v2/InputText/InputText.vue.d.ts +6 -0
- package/dist/src/components/v2/LazyLoadTrigger/LazyLoadTrigger.vue.d.ts +4 -0
- package/dist/src/components/v2/Tree/Tree.vue.d.ts +4 -0
- package/dist/src/components/v2/index.d.ts +4 -1
- package/dist/src/dto/assets.dto.d.ts +16 -0
- package/dist/src/dto/missing.dto.d.ts +3 -0
- package/dist/src/dto/tagTransaction.dto.d.ts +9 -0
- package/dist/src/presets/multiselect/index.js +1 -0
- package/dist/src/presets/toast/index.js +1 -1
- package/dist/src/services/assets.service.d.ts +7 -2
- package/dist/src/services/deviceIOT.service.d.ts +1 -0
- package/dist/src/services/tagTransaction.service.d.ts +1 -1
- package/dist/src/services/tree.service.d.ts +1 -0
- package/dist/src/types/assets.type.d.ts +31 -11
- package/dist/src/utils/changelog.util.d.ts +69 -0
- package/dist/src/utils/createVueControl.d.ts +8 -0
- package/dist/src/utils/customMarker.util.d.ts +45 -0
- package/dist/src/utils/debounce.util.d.ts +1 -0
- package/dist/src/utils/exportToExcel.util.d.ts +1 -0
- package/dist/src/utils/getImageURL.util.d.ts +11 -2
- package/dist/src/utils/googleMapLoader.util.d.ts +1 -0
- package/dist/src/utils/index.d.ts +7 -3
- package/dist/src/utils/json.util.d.ts +17 -0
- package/dist/src/utils/request.util.d.ts +17 -0
- package/dist/src/utils/role.util.d.ts +19 -1
- package/dist/style.css +1 -1
- package/dist/tsv2-library.es.js +65334 -67097
- package/dist/tsv2-library.umd.js +47 -609
- package/package.json +6 -1
- package/src/components/v2/ButtonScan/ButtonScan.vue.d.ts +6 -0
- package/src/components/v2/ButtonSelectTree/ButtonSelectTree.vue.d.ts +7 -1
- package/src/components/v2/DataTable/DataTable.vue.d.ts +13 -0
- package/src/components/v2/DialogAssetNameDetail/DialogAssetNameDetail.vue.d.ts +3 -1
- package/src/components/v2/DialogCoordinate/DialogCoordinate.vue.d.ts +95 -0
- package/src/components/v2/DialogSelectAsset/DialogSelectAsset.vue.d.ts +13 -9
- package/src/components/v2/DialogSelectTree/DialogSelectTree.vue.d.ts +9 -1
- package/src/components/v2/FileUpload/FileUpload.vue.d.ts +4 -0
- package/src/components/v2/Form/Form.vue.d.ts +2 -0
- package/src/components/v2/Icon/Icon.vue.d.ts +7 -0
- package/src/components/v2/InputCoordinate/InputCoordinate.vue.d.ts +64 -0
- package/src/components/v2/InputCurrency/InputCurrency.vue.d.ts +5 -0
- package/src/components/v2/InputCurrencyReference/InputCurrencyReference.vue.d.ts +30 -0
- package/src/components/v2/InputText/InputText.vue.d.ts +6 -0
- package/src/components/v2/Tree/Tree.vue.d.ts +4 -0
- package/src/presets/multiselect/index.js +1 -0
- package/src/presets/toast/index.js +1 -1
- package/src/services/assets.service.ts +49 -1
- package/src/services/deviceIOT.service.ts +8 -0
- package/src/services/tagTransaction.service.ts +2 -2
- package/src/services/tracking.service.ts +1 -1
- package/src/services/tree.service.ts +1 -0
- package/dist/loading-0-7762a473.js +0 -4
- package/dist/loading-1-55418796.js +0 -4
- package/dist/loading-2-b6abf641.js +0 -4
- package/dist/loading-3-705786b6.js +0 -4
|
@@ -2,8 +2,8 @@ import type { PropType as __PropType } from 'vue';
|
|
|
2
2
|
type Field = 'brand' | 'model' | 'group' | 'status';
|
|
3
3
|
declare const _sfc_main: import("vue").DefineComponent<{
|
|
4
4
|
id: {
|
|
5
|
-
type: __PropType<string>;
|
|
6
|
-
required:
|
|
5
|
+
type: __PropType<string | undefined>;
|
|
6
|
+
required: false;
|
|
7
7
|
};
|
|
8
8
|
fields: {
|
|
9
9
|
type: __PropType<Field[] | undefined>;
|
|
@@ -15,8 +15,8 @@ declare const _sfc_main: import("vue").DefineComponent<{
|
|
|
15
15
|
};
|
|
16
16
|
}, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
17
17
|
id: {
|
|
18
|
-
type: __PropType<string>;
|
|
19
|
-
required:
|
|
18
|
+
type: __PropType<string | undefined>;
|
|
19
|
+
required: false;
|
|
20
20
|
};
|
|
21
21
|
fields: {
|
|
22
22
|
type: __PropType<Field[] | undefined>;
|
|
@@ -150,6 +150,10 @@ export interface ButtonSelectTreeProps {
|
|
|
150
150
|
* @default false
|
|
151
151
|
*/
|
|
152
152
|
fetchTreeOnButtonRender?: boolean;
|
|
153
|
+
/**
|
|
154
|
+
* Disable level 2 (All > Level 1 > Level 2)
|
|
155
|
+
*/
|
|
156
|
+
disableSubChildren?: boolean;
|
|
153
157
|
}
|
|
154
158
|
|
|
155
159
|
export type ButtonSelectTreeEmits = {
|
|
@@ -171,7 +175,9 @@ export type ButtonSelectTreeEmits = {
|
|
|
171
175
|
*
|
|
172
176
|
* @group Component
|
|
173
177
|
*/
|
|
174
|
-
declare class ButtonSelectTree extends ClassComponent<ButtonSelectTreeProps> {
|
|
178
|
+
declare class ButtonSelectTree extends ClassComponent<ButtonSelectTreeProps> {
|
|
179
|
+
dialogTreeKey: Ref<number>;
|
|
180
|
+
}
|
|
175
181
|
|
|
176
182
|
declare module '@vue/runtime-core' {
|
|
177
183
|
interface GlobalComponents {
|
|
@@ -151,6 +151,10 @@ export type TableColumn = {
|
|
|
151
151
|
* Make the column cannot reordered by disabled dragability.
|
|
152
152
|
*/
|
|
153
153
|
dragable?: boolean;
|
|
154
|
+
/**
|
|
155
|
+
* Whether the column is pinned to the left of the table.
|
|
156
|
+
*/
|
|
157
|
+
pinned?: boolean;
|
|
154
158
|
fixed?: boolean;
|
|
155
159
|
visible?: boolean;
|
|
156
160
|
/**
|
|
@@ -463,6 +467,15 @@ export interface TSDataTableProps {
|
|
|
463
467
|
* Total disabled rows in table (used for synchronizing with bulk action button)
|
|
464
468
|
*/
|
|
465
469
|
totalDisabledRows?: number;
|
|
470
|
+
/**
|
|
471
|
+
* A function that takes the row data as a parameter and returns a string to apply a particular class for the row.
|
|
472
|
+
* The return value is added to the row's :classes array (see Vue.js class bindings).
|
|
473
|
+
*/
|
|
474
|
+
rowClass?: (data: any) => string | object | undefined;
|
|
475
|
+
/**
|
|
476
|
+
* An array of arrays to display in the exported excel file before the main data.
|
|
477
|
+
*/
|
|
478
|
+
preContentData?: (string | number)[][];
|
|
466
479
|
}
|
|
467
480
|
|
|
468
481
|
export type TSDataTableEmits = {
|
|
@@ -12,10 +12,12 @@ export interface DialogAssetNameDetailProps {
|
|
|
12
12
|
header?: string;
|
|
13
13
|
|
|
14
14
|
/**
|
|
15
|
-
* The ID of the asset.
|
|
15
|
+
* The ID of the asset name.
|
|
16
16
|
*/
|
|
17
17
|
id: string;
|
|
18
18
|
|
|
19
|
+
currentTagType?: 'RFID' | 'QR' | 'RFID & QR' | 'Non TAG';
|
|
20
|
+
|
|
19
21
|
/**
|
|
20
22
|
* The query params for fetching assets.
|
|
21
23
|
*/
|
|
@@ -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;
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
declare const _sfc_main: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "apply"[], "apply", import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{}>> & {
|
|
2
|
+
onApply?: ((...args: any[]) => any) | undefined;
|
|
3
|
+
}, {}, {}>;
|
|
4
|
+
export default _sfc_main;
|
|
@@ -0,0 +1,95 @@
|
|
|
1
|
+
export type MapEngine = 'leaflet' | 'maplibre' | 'openlayers' | 'google';
|
|
2
|
+
|
|
3
|
+
export interface RasterSource {
|
|
4
|
+
type: 'raster';
|
|
5
|
+
urlTemplate: string;
|
|
6
|
+
attribution?: string;
|
|
7
|
+
maxZoom?: number;
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
export interface MapLibreStyleSource {
|
|
11
|
+
type: 'maplibre-style';
|
|
12
|
+
styleUrl: string;
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
export interface OpenLayersOsmSource {
|
|
16
|
+
type: 'openlayers-osm';
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
export interface GoogleMapsSource {
|
|
20
|
+
type: 'google';
|
|
21
|
+
mapId?: string;
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
export type BaseMapSource =
|
|
25
|
+
| RasterSource
|
|
26
|
+
| MapLibreStyleSource
|
|
27
|
+
| OpenLayersOsmSource
|
|
28
|
+
| GoogleMapsSource;
|
|
29
|
+
|
|
30
|
+
export interface BaseMapMarker {
|
|
31
|
+
id?: string | number;
|
|
32
|
+
lat: number;
|
|
33
|
+
lng: number;
|
|
34
|
+
popup?: string;
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
export interface LatLngValue {
|
|
38
|
+
lat: number | null;
|
|
39
|
+
lng: number | null;
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
export type InputMapMode = 'click' | 'drag' | 'center';
|
|
43
|
+
|
|
44
|
+
export type MarkerConfig =
|
|
45
|
+
| {
|
|
46
|
+
kind: 'pin';
|
|
47
|
+
pinOptions?: google.maps.marker.PinElementOptions;
|
|
48
|
+
title?: string;
|
|
49
|
+
}
|
|
50
|
+
| {
|
|
51
|
+
kind: 'img';
|
|
52
|
+
src: string;
|
|
53
|
+
title?: string;
|
|
54
|
+
}
|
|
55
|
+
| {
|
|
56
|
+
kind: 'svgString';
|
|
57
|
+
svg: string;
|
|
58
|
+
title?: string;
|
|
59
|
+
}
|
|
60
|
+
| {
|
|
61
|
+
kind: 'customElement';
|
|
62
|
+
createElement: () => HTMLElement;
|
|
63
|
+
title?: string;
|
|
64
|
+
};
|
|
65
|
+
|
|
66
|
+
export interface MapControl {
|
|
67
|
+
position?: google.maps.ControlPosition;
|
|
68
|
+
index?: number;
|
|
69
|
+
createElement: (ctx: { map: google.maps.Map }) => HTMLElement;
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
export interface MapFocusConfig {
|
|
73
|
+
name: string;
|
|
74
|
+
featureType: google.maps.FeatureType;
|
|
75
|
+
featureStyleOptions: google.maps.FeatureStyleOptions;
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
export interface DialogCoordinateProps {
|
|
79
|
+
value?: LatLngValue;
|
|
80
|
+
center?: [number, number];
|
|
81
|
+
zoom?: number;
|
|
82
|
+
mode?: InputMapMode;
|
|
83
|
+
colorScheme?: 'LIGHT' | 'DARK';
|
|
84
|
+
mapOptions?: google.maps.MapOptions;
|
|
85
|
+
customMarkers?: CustomMarker[];
|
|
86
|
+
inputMarkerConfig?: MarkerConfig;
|
|
87
|
+
type: 'input' | 'detail';
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
export interface CustomMarker {
|
|
91
|
+
lat: number;
|
|
92
|
+
lng: number;
|
|
93
|
+
title?: string;
|
|
94
|
+
desc?: string;
|
|
95
|
+
}
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
declare const _sfc_main: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "toggleFullscreen"[], "toggleFullscreen", import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{}>> & {
|
|
2
|
+
onToggleFullscreen?: ((...args: any[]) => any) | undefined;
|
|
3
|
+
}, {}, {}>;
|
|
4
|
+
export default _sfc_main;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import type { PropType as __PropType } from 'vue';
|
|
2
|
+
declare const _sfc_main: import("vue").DefineComponent<{
|
|
3
|
+
map: {
|
|
4
|
+
type: __PropType<google.maps.Map>;
|
|
5
|
+
required: true;
|
|
6
|
+
};
|
|
7
|
+
}, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "searched"[], "searched", import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
8
|
+
map: {
|
|
9
|
+
type: __PropType<google.maps.Map>;
|
|
10
|
+
required: true;
|
|
11
|
+
};
|
|
12
|
+
}>> & {
|
|
13
|
+
onSearched?: ((...args: any[]) => any) | undefined;
|
|
14
|
+
}, {}, {}>;
|
|
15
|
+
export default _sfc_main;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
export { type ReverseGeocodeResult } from './openStreetMapService';
|
|
2
|
+
export { formatAddress } from './openStreetMapService';
|
|
3
|
+
/**
|
|
4
|
+
* Reverse geocodes coordinates to get full address using Google Maps Geocoding API
|
|
5
|
+
* @param lat - Latitude coordinate
|
|
6
|
+
* @param lon - Longitude coordinate
|
|
7
|
+
* @returns Promise with the reverse geocoding result or null if failed
|
|
8
|
+
*/
|
|
9
|
+
export declare const reverseGeocode: (lat: number, lon: number) => Promise<import('./openStreetMapService').ReverseGeocodeResult | null>;
|
|
10
|
+
export declare const ensureGoogleMapsPlaces: () => Promise<void>;
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
export interface NominatimResponse {
|
|
2
|
+
place_id: number;
|
|
3
|
+
licence: string;
|
|
4
|
+
osm_type: string;
|
|
5
|
+
osm_id: number;
|
|
6
|
+
lat: string;
|
|
7
|
+
lon: string;
|
|
8
|
+
class: string;
|
|
9
|
+
type: string;
|
|
10
|
+
place_rank: number;
|
|
11
|
+
importance: number;
|
|
12
|
+
addresstype: string;
|
|
13
|
+
name?: string;
|
|
14
|
+
display_name: string;
|
|
15
|
+
address?: {
|
|
16
|
+
house_number?: string;
|
|
17
|
+
road?: string;
|
|
18
|
+
suburb?: string;
|
|
19
|
+
city?: string;
|
|
20
|
+
town?: string;
|
|
21
|
+
village?: string;
|
|
22
|
+
county?: string;
|
|
23
|
+
state?: string;
|
|
24
|
+
postcode?: string;
|
|
25
|
+
country?: string;
|
|
26
|
+
country_code?: string;
|
|
27
|
+
[key: string]: string | undefined;
|
|
28
|
+
};
|
|
29
|
+
boundingbox: string[];
|
|
30
|
+
}
|
|
31
|
+
export interface ReverseGeocodeResult {
|
|
32
|
+
displayName: string;
|
|
33
|
+
address?: {
|
|
34
|
+
house_number?: string;
|
|
35
|
+
road?: string;
|
|
36
|
+
suburb?: string;
|
|
37
|
+
city?: string;
|
|
38
|
+
town?: string;
|
|
39
|
+
village?: string;
|
|
40
|
+
county?: string;
|
|
41
|
+
state?: string;
|
|
42
|
+
postcode?: string;
|
|
43
|
+
country?: string;
|
|
44
|
+
country_code?: string;
|
|
45
|
+
};
|
|
46
|
+
}
|
|
47
|
+
/**
|
|
48
|
+
* Reverse geocodes coordinates to get full address using OpenStreetMap Nominatim API
|
|
49
|
+
* @param lat - Latitude coordinate
|
|
50
|
+
* @param lon - Longitude coordinate
|
|
51
|
+
* @returns Promise with the reverse geocoding result or null if failed
|
|
52
|
+
*/
|
|
53
|
+
export declare const reverseGeocode: (lat: number, lon: number) => Promise<ReverseGeocodeResult | null>;
|
|
54
|
+
/**
|
|
55
|
+
* Formats the address object into a readable string
|
|
56
|
+
* @param address - Address object from the API response
|
|
57
|
+
* @returns Formatted address string
|
|
58
|
+
*/
|
|
59
|
+
export declare const formatAddress: (address: NonNullable<ReverseGeocodeResult['address']>) => string;
|
|
@@ -17,6 +17,10 @@ declare const _sfc_main: import("vue").DefineComponent<{
|
|
|
17
17
|
type: __PropType<boolean | undefined>;
|
|
18
18
|
required: false;
|
|
19
19
|
};
|
|
20
|
+
isFromUser: {
|
|
21
|
+
type: __PropType<boolean | undefined>;
|
|
22
|
+
required: false;
|
|
23
|
+
};
|
|
20
24
|
successMessage: {
|
|
21
25
|
type: __PropType<string | undefined>;
|
|
22
26
|
required: false;
|
|
@@ -48,6 +52,10 @@ declare const _sfc_main: import("vue").DefineComponent<{
|
|
|
48
52
|
type: __PropType<boolean | undefined>;
|
|
49
53
|
required: false;
|
|
50
54
|
};
|
|
55
|
+
isFromUser: {
|
|
56
|
+
type: __PropType<boolean | undefined>;
|
|
57
|
+
required: false;
|
|
58
|
+
};
|
|
51
59
|
successMessage: {
|
|
52
60
|
type: __PropType<string | undefined>;
|
|
53
61
|
required: false;
|
|
@@ -1,9 +1,14 @@
|
|
|
1
1
|
import type { PropType as __PropType } from 'vue';
|
|
2
|
+
import { ReportSourceType } from '../../../dto/missing.dto';
|
|
2
3
|
declare const _sfc_main: import("vue").DefineComponent<{
|
|
3
4
|
id: {
|
|
4
5
|
type: __PropType<string>;
|
|
5
6
|
required: true;
|
|
6
7
|
};
|
|
8
|
+
reportSource: {
|
|
9
|
+
type: __PropType<ReportSourceType>;
|
|
10
|
+
required: true;
|
|
11
|
+
};
|
|
7
12
|
trackingId: {
|
|
8
13
|
type: __PropType<string | undefined>;
|
|
9
14
|
required: false;
|
|
@@ -16,6 +21,10 @@ declare const _sfc_main: import("vue").DefineComponent<{
|
|
|
16
21
|
type: __PropType<boolean | undefined>;
|
|
17
22
|
required: false;
|
|
18
23
|
};
|
|
24
|
+
isFromUser: {
|
|
25
|
+
type: __PropType<boolean | undefined>;
|
|
26
|
+
required: false;
|
|
27
|
+
};
|
|
19
28
|
successMessage: {
|
|
20
29
|
type: __PropType<string | undefined>;
|
|
21
30
|
required: false;
|
|
@@ -38,6 +47,10 @@ declare const _sfc_main: import("vue").DefineComponent<{
|
|
|
38
47
|
type: __PropType<string>;
|
|
39
48
|
required: true;
|
|
40
49
|
};
|
|
50
|
+
reportSource: {
|
|
51
|
+
type: __PropType<ReportSourceType>;
|
|
52
|
+
required: true;
|
|
53
|
+
};
|
|
41
54
|
trackingId: {
|
|
42
55
|
type: __PropType<string | undefined>;
|
|
43
56
|
required: false;
|
|
@@ -50,6 +63,10 @@ declare const _sfc_main: import("vue").DefineComponent<{
|
|
|
50
63
|
type: __PropType<boolean | undefined>;
|
|
51
64
|
required: false;
|
|
52
65
|
};
|
|
66
|
+
isFromUser: {
|
|
67
|
+
type: __PropType<boolean | undefined>;
|
|
68
|
+
required: false;
|
|
69
|
+
};
|
|
53
70
|
successMessage: {
|
|
54
71
|
type: __PropType<string | undefined>;
|
|
55
72
|
required: false;
|
|
@@ -115,15 +115,9 @@ export interface Asset {
|
|
|
115
115
|
auditStatus?: string | null;
|
|
116
116
|
rfid?: boolean;
|
|
117
117
|
qr?: boolean;
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
imageSmall?: null | 'string';
|
|
122
|
-
imageMedium?: null | 'string';
|
|
123
|
-
imageBig?: null | 'string';
|
|
124
|
-
firstImageSmall?: string;
|
|
125
|
-
firstImageMedium?: string;
|
|
126
|
-
firstImageBig?: string;
|
|
118
|
+
assetImage?: 'string';
|
|
119
|
+
image?: 'string';
|
|
120
|
+
firstImage?: string;
|
|
127
121
|
}
|
|
128
122
|
|
|
129
123
|
export type QueryParams = {
|
|
@@ -171,6 +165,16 @@ export interface DialogSelectAssetProps {
|
|
|
171
165
|
* The list of asset name key to be excluded in fetch list
|
|
172
166
|
*/
|
|
173
167
|
excludedKey?: string[];
|
|
168
|
+
/**
|
|
169
|
+
*
|
|
170
|
+
* The list of asset name _id to be excluded in fetch list
|
|
171
|
+
*/
|
|
172
|
+
excludeId?: string[];
|
|
173
|
+
/**
|
|
174
|
+
*
|
|
175
|
+
* The list of group _id of asset names to be excluded in fetch list
|
|
176
|
+
*/
|
|
177
|
+
excludeInitialGroup?: string[];
|
|
174
178
|
/**
|
|
175
179
|
* The header of the dialog.
|
|
176
180
|
*
|
|
@@ -62,6 +62,10 @@ export interface SelectTreeDialogProps {
|
|
|
62
62
|
* Render hidden dialog to trigger fetch tree
|
|
63
63
|
*/
|
|
64
64
|
hidden?: boolean;
|
|
65
|
+
/**
|
|
66
|
+
* Disable level 2 (All > Level 1 > Level 2)
|
|
67
|
+
*/
|
|
68
|
+
disableSubChildren?: boolean;
|
|
65
69
|
}
|
|
66
70
|
|
|
67
71
|
type TreeSelectPayload = {
|
|
@@ -76,6 +80,10 @@ export type SelectTreeDialogEmits = {
|
|
|
76
80
|
'hide': [];
|
|
77
81
|
};
|
|
78
82
|
|
|
83
|
+
export interface SelectTreeDialogSlots {
|
|
84
|
+
description: VNode[];
|
|
85
|
+
}
|
|
86
|
+
|
|
79
87
|
/**
|
|
80
88
|
* **TSVue v2 - SelectTreeDialog**
|
|
81
89
|
*
|
|
@@ -86,7 +94,7 @@ export type SelectTreeDialogEmits = {
|
|
|
86
94
|
*/
|
|
87
95
|
declare class SelectTreeDialog extends ClassComponent<
|
|
88
96
|
SelectTreeDialogProps,
|
|
89
|
-
|
|
97
|
+
SelectTreeDialogSlots,
|
|
90
98
|
SelectTreeDialogEmits
|
|
91
99
|
> {}
|
|
92
100
|
|
|
@@ -143,6 +143,14 @@ declare const _sfc_main: import("vue").DefineComponent<{
|
|
|
143
143
|
type: NumberConstructor;
|
|
144
144
|
required: false;
|
|
145
145
|
};
|
|
146
|
+
rowClass: {
|
|
147
|
+
type: FunctionConstructor;
|
|
148
|
+
required: false;
|
|
149
|
+
};
|
|
150
|
+
preContentData: {
|
|
151
|
+
type: ArrayConstructor;
|
|
152
|
+
required: false;
|
|
153
|
+
};
|
|
146
154
|
router: {
|
|
147
155
|
type: ObjectConstructor;
|
|
148
156
|
required: true;
|
|
@@ -296,6 +304,14 @@ declare const _sfc_main: import("vue").DefineComponent<{
|
|
|
296
304
|
type: NumberConstructor;
|
|
297
305
|
required: false;
|
|
298
306
|
};
|
|
307
|
+
rowClass: {
|
|
308
|
+
type: FunctionConstructor;
|
|
309
|
+
required: false;
|
|
310
|
+
};
|
|
311
|
+
preContentData: {
|
|
312
|
+
type: ArrayConstructor;
|
|
313
|
+
required: false;
|
|
314
|
+
};
|
|
299
315
|
router: {
|
|
300
316
|
type: ObjectConstructor;
|
|
301
317
|
required: true;
|
|
@@ -106,6 +106,10 @@ export type FileUploadProps = {
|
|
|
106
106
|
* Wether show validator message on invalid file input
|
|
107
107
|
*/
|
|
108
108
|
showValidatorMessage?: boolean;
|
|
109
|
+
/**
|
|
110
|
+
* Wether show validator message on invalid file input
|
|
111
|
+
*/
|
|
112
|
+
validatorMessage?: boolean;
|
|
109
113
|
};
|
|
110
114
|
|
|
111
115
|
export type FileUploadEmits = {
|
|
@@ -105,6 +105,8 @@ export type FormEmits = {
|
|
|
105
105
|
* @group components
|
|
106
106
|
*/
|
|
107
107
|
declare class Form extends ClassComponent<FormProps, FormSlots, FormEmits> {
|
|
108
|
+
values: GenericObject;
|
|
109
|
+
errors: ComputedRef<Partial<Record<string, string | undefined>>>;
|
|
108
110
|
/**
|
|
109
111
|
* Wether to keep the dialog remains visible or not after submit.
|
|
110
112
|
*/
|
|
@@ -10,7 +10,7 @@ declare const _sfc_main: import("vue").DefineComponent<{
|
|
|
10
10
|
required: false;
|
|
11
11
|
};
|
|
12
12
|
searchBy: {
|
|
13
|
-
type: __PropType<"
|
|
13
|
+
type: __PropType<"RFID" | "QR" | undefined>;
|
|
14
14
|
required: false;
|
|
15
15
|
};
|
|
16
16
|
bulk: {
|
|
@@ -35,7 +35,7 @@ declare const _sfc_main: import("vue").DefineComponent<{
|
|
|
35
35
|
required: false;
|
|
36
36
|
};
|
|
37
37
|
searchBy: {
|
|
38
|
-
type: __PropType<"
|
|
38
|
+
type: __PropType<"RFID" | "QR" | undefined>;
|
|
39
39
|
required: false;
|
|
40
40
|
};
|
|
41
41
|
bulk: {
|
|
@@ -68,6 +68,8 @@ export type TSVueIcons =
|
|
|
68
68
|
| 'file-shield-2-line'
|
|
69
69
|
| 'filter-fill'
|
|
70
70
|
| 'filter-line'
|
|
71
|
+
| 'fullscreen-line'
|
|
72
|
+
| 'fullscreen-exit-line'
|
|
71
73
|
| 'folder-line'
|
|
72
74
|
| 'gate'
|
|
73
75
|
| 'group'
|
|
@@ -77,8 +79,11 @@ export type TSVueIcons =
|
|
|
77
79
|
| 'image-add'
|
|
78
80
|
| 'indeterminate-circle-fill'
|
|
79
81
|
| 'info'
|
|
82
|
+
| 'layout-grid-line'
|
|
80
83
|
| 'link-unlink-m'
|
|
81
84
|
| 'list-settings-line'
|
|
85
|
+
| 'list-check'
|
|
86
|
+
| 'list-check-2'
|
|
82
87
|
| 'loader-4'
|
|
83
88
|
| 'logout-box-r-line'
|
|
84
89
|
| 'mail-open-line'
|
|
@@ -97,6 +102,8 @@ export type TSVueIcons =
|
|
|
97
102
|
| 'phone-line'
|
|
98
103
|
| 'printer'
|
|
99
104
|
| 'price-tag-3-line'
|
|
105
|
+
| 'pushpin-2-line'
|
|
106
|
+
| 'pushpin-fill'
|
|
100
107
|
| 'qr'
|
|
101
108
|
| 'qr-scan-line'
|
|
102
109
|
| 'recycle-bin'
|
|
@@ -34,7 +34,7 @@ declare const _sfc_main: import("vue").DefineComponent<{
|
|
|
34
34
|
required: false;
|
|
35
35
|
};
|
|
36
36
|
}>> & {
|
|
37
|
-
onMove?: ((...args: any[]) => any) | undefined;
|
|
38
37
|
onResize?: ((...args: any[]) => any) | undefined;
|
|
38
|
+
onMove?: ((...args: any[]) => any) | undefined;
|
|
39
39
|
}, {}, {}>;
|
|
40
40
|
export default _sfc_main;
|
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
import { DefineComponent } from 'vue';
|
|
2
|
+
import { Nullable } from '../ts-helpers';
|
|
3
|
+
import { LatLngValue } from '../DialogCoordinate/DialogCoordinate.vue';
|
|
4
|
+
|
|
5
|
+
/**
|
|
6
|
+
* InputCoordinate component props
|
|
7
|
+
*/
|
|
8
|
+
export interface InputCoordinateProps {
|
|
9
|
+
modelValue?: Nullable<LatLngValue>;
|
|
10
|
+
/**
|
|
11
|
+
* Disabled state for both input fields.
|
|
12
|
+
*/
|
|
13
|
+
disabled?: boolean;
|
|
14
|
+
/**
|
|
15
|
+
* Wether the input should be validated with vee-validator or not.
|
|
16
|
+
* If you use this component within form input, you need to set this props as true.
|
|
17
|
+
*/
|
|
18
|
+
useValidator?: boolean;
|
|
19
|
+
/**
|
|
20
|
+
* This prop is required if you use this component in a form input.
|
|
21
|
+
* Specify the unique field name, match with your needs for API request.
|
|
22
|
+
*
|
|
23
|
+
* @default 'coordinate'
|
|
24
|
+
*/
|
|
25
|
+
fieldName?: string;
|
|
26
|
+
label?: string;
|
|
27
|
+
/**
|
|
28
|
+
* Wether this input field is required or not.
|
|
29
|
+
*/
|
|
30
|
+
mandatory?: boolean;
|
|
31
|
+
/**
|
|
32
|
+
* Invalid input state.
|
|
33
|
+
*/
|
|
34
|
+
invalid?: boolean;
|
|
35
|
+
/**
|
|
36
|
+
* Set custom validator message.
|
|
37
|
+
* It is rarely use, this component has handled the validator message.
|
|
38
|
+
*/
|
|
39
|
+
validatorMessage?: string;
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
/**
|
|
43
|
+
* InputCoordinate component emits
|
|
44
|
+
*/
|
|
45
|
+
export type InputCoordinateEmits = {
|
|
46
|
+
'update:modelValue': [payload?: Nullable<LatLngValue>];
|
|
47
|
+
};
|
|
48
|
+
|
|
49
|
+
/**
|
|
50
|
+
* **TSVue - InputCoordinate**
|
|
51
|
+
*
|
|
52
|
+
* _Handle coordinate input with latitude and longitude fields._
|
|
53
|
+
*
|
|
54
|
+
* --- ---
|
|
55
|
+
* 
|
|
56
|
+
*
|
|
57
|
+
* @group form
|
|
58
|
+
*/
|
|
59
|
+
declare const InputCoordinate: DefineComponent<
|
|
60
|
+
InputCoordinateProps,
|
|
61
|
+
InputCoordinateEmits
|
|
62
|
+
>;
|
|
63
|
+
|
|
64
|
+
export default InputCoordinate;
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import { DefineComponent } from 'vue';
|
|
2
|
+
import {
|
|
3
|
+
InputCurrencyEmits,
|
|
4
|
+
InputCurrencyProps,
|
|
5
|
+
} from '../InputCurrency/InputCurrency.vue.d';
|
|
6
|
+
|
|
7
|
+
export interface CurrencyValue {
|
|
8
|
+
currency: string; // Currency ISO Code
|
|
9
|
+
value?: number;
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
/**
|
|
13
|
+
* InputCurrencyReference component props
|
|
14
|
+
*/
|
|
15
|
+
export interface InputCurrencyReferenceProps extends InputCurrencyProps {
|
|
16
|
+
inputWrapperClass?: string;
|
|
17
|
+
inputClass?: string;
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
/**
|
|
21
|
+
* InputCurrencyReference component emits
|
|
22
|
+
*/
|
|
23
|
+
export type InputCurrencyReferenceEmits = InputCurrencyEmits;
|
|
24
|
+
|
|
25
|
+
declare const InputCurrencyReference: DefineComponent<
|
|
26
|
+
InputCurrencyReferenceProps,
|
|
27
|
+
InputCurrencyReferenceEmits
|
|
28
|
+
>;
|
|
29
|
+
|
|
30
|
+
export default InputCurrencyReference;
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
declare const _sfc_main: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "visible"[], "visible", import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{}>> & {
|
|
2
|
+
onVisible?: ((...args: any[]) => any) | undefined;
|
|
3
|
+
}, {}, {}>;
|
|
4
|
+
export default _sfc_main;
|