tsv2-library 1.0.61-alpha.13 → 1.0.61-alpha.131
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 +5 -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/CustomColumn/CustomColumn.vue.d.ts +10 -0
- package/dist/src/components/v2/CustomColumn/DialogColumnSetup.vue.d.ts +4 -0
- package/dist/src/components/v2/DataTable/DataTable.vue.d.ts +15 -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 +99 -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/Marker.vue.d.ts +13 -0
- package/dist/src/components/v2/DialogCoordinate/PopupDetail.vue.d.ts +13 -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/DialogForm/DialogForm.vue.d.ts +6 -0
- package/dist/src/components/v2/DialogReportDamage/DialogReportDamage.vue.d.ts +8 -0
- package/dist/src/components/v2/DialogReportMissing/DialogReportMissing.vue.d.ts +8 -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 +11 -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/TransactionRoles/TransactionRoles.vue.d.ts +1 -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 +17 -0
- package/dist/src/dto/missing.dto.d.ts +1 -0
- package/dist/src/dto/tagTransaction.dto.d.ts +9 -0
- package/dist/src/event-bus/index.d.ts +8 -0
- package/dist/src/event-bus/mitt.d.ts +26 -0
- package/dist/src/presets/multiselect/index.js +1 -0
- package/dist/src/presets/paginator/index.js +1 -1
- package/dist/src/services/assets.service.d.ts +7 -2
- package/dist/src/services/column.service.d.ts +13 -0
- 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 +32 -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 +64 -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 +8 -4
- 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/src/utils/textFormater.util.d.ts +3 -0
- package/dist/style.css +1 -1
- package/dist/tsv2-library.es.js +66435 -67823
- 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/CustomColumn/CustomColumn.vue.d.ts +10 -0
- package/src/components/v2/DataTable/DataTable.vue.d.ts +15 -0
- package/src/components/v2/DialogAssetNameDetail/DialogAssetNameDetail.vue.d.ts +3 -1
- package/src/components/v2/DialogCoordinate/DialogCoordinate.vue.d.ts +99 -0
- package/src/components/v2/DialogForm/DialogForm.vue.d.ts +6 -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 +11 -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/TransactionRoles/TransactionRoles.vue.d.ts +1 -0
- package/src/components/v2/Tree/Tree.vue.d.ts +4 -0
- package/src/presets/multiselect/index.js +1 -0
- package/src/presets/paginator/index.js +1 -1
- package/src/services/assets.service.ts +49 -1
- package/src/services/column.service.ts +42 -0
- 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
- package/dist/src/components/v2/DataTable/store/dataTable.store.d.ts +0 -22
|
@@ -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 {
|
|
@@ -1,7 +1,17 @@
|
|
|
1
1
|
import { ClassComponent } from '../ts-helpers';
|
|
2
2
|
|
|
3
|
+
export interface DataTableColumnConfig {
|
|
4
|
+
field: string;
|
|
5
|
+
pinned: boolean;
|
|
6
|
+
width: number | string;
|
|
7
|
+
visible: boolean;
|
|
8
|
+
}
|
|
9
|
+
|
|
3
10
|
export interface CustomColumnProps {
|
|
4
11
|
tableId: string;
|
|
12
|
+
tableKey: string;
|
|
13
|
+
tableName: string;
|
|
14
|
+
tableData: Data[] | undefined;
|
|
5
15
|
defaultColumns: TableColumn[];
|
|
6
16
|
visibleColumns: TableColumn[];
|
|
7
17
|
/**
|
|
@@ -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;
|
|
@@ -149,8 +149,14 @@ export type TableColumn = {
|
|
|
149
149
|
reorderable?: boolean;
|
|
150
150
|
/**
|
|
151
151
|
* Make the column cannot reordered by disabled dragability.
|
|
152
|
+
* Unlike `reorderable`, the column will still appear in the column visibility
|
|
153
|
+
* overlay if this is set to false.
|
|
152
154
|
*/
|
|
153
155
|
dragable?: boolean;
|
|
156
|
+
/**
|
|
157
|
+
* Whether the column is pinned to the left of the table.
|
|
158
|
+
*/
|
|
159
|
+
pinned?: boolean;
|
|
154
160
|
fixed?: boolean;
|
|
155
161
|
visible?: boolean;
|
|
156
162
|
/**
|
|
@@ -463,6 +469,15 @@ export interface TSDataTableProps {
|
|
|
463
469
|
* Total disabled rows in table (used for synchronizing with bulk action button)
|
|
464
470
|
*/
|
|
465
471
|
totalDisabledRows?: number;
|
|
472
|
+
/**
|
|
473
|
+
* A function that takes the row data as a parameter and returns a string to apply a particular class for the row.
|
|
474
|
+
* The return value is added to the row's :classes array (see Vue.js class bindings).
|
|
475
|
+
*/
|
|
476
|
+
rowClass?: (data: any) => string | object | undefined;
|
|
477
|
+
/**
|
|
478
|
+
* An array of arrays to display in the exported excel file before the main data.
|
|
479
|
+
*/
|
|
480
|
+
preContentData?: (string | number)[][];
|
|
466
481
|
}
|
|
467
482
|
|
|
468
483
|
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,99 @@
|
|
|
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 interface CoordinateValue extends LatLngValue {
|
|
43
|
+
address?: string;
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
export type InputMapMode = 'click' | 'drag' | 'center';
|
|
47
|
+
|
|
48
|
+
export type MarkerConfig =
|
|
49
|
+
| {
|
|
50
|
+
kind: 'pin';
|
|
51
|
+
pinOptions?: google.maps.marker.PinElementOptions;
|
|
52
|
+
title?: string;
|
|
53
|
+
}
|
|
54
|
+
| {
|
|
55
|
+
kind: 'img';
|
|
56
|
+
src: string;
|
|
57
|
+
title?: string;
|
|
58
|
+
}
|
|
59
|
+
| {
|
|
60
|
+
kind: 'svgString';
|
|
61
|
+
svg: string;
|
|
62
|
+
title?: string;
|
|
63
|
+
}
|
|
64
|
+
| {
|
|
65
|
+
kind: 'customElement';
|
|
66
|
+
createElement: () => HTMLElement;
|
|
67
|
+
title?: string;
|
|
68
|
+
};
|
|
69
|
+
|
|
70
|
+
export interface MapControl {
|
|
71
|
+
position?: google.maps.ControlPosition;
|
|
72
|
+
index?: number;
|
|
73
|
+
createElement: (ctx: { map: google.maps.Map }) => HTMLElement;
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
export interface MapFocusConfig {
|
|
77
|
+
name: string;
|
|
78
|
+
featureType: google.maps.FeatureType;
|
|
79
|
+
featureStyleOptions: google.maps.FeatureStyleOptions;
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
export interface DialogCoordinateProps {
|
|
83
|
+
value?: LatLngValue & { _id?: string };
|
|
84
|
+
center?: [number, number];
|
|
85
|
+
zoom?: number;
|
|
86
|
+
mode?: InputMapMode;
|
|
87
|
+
colorScheme?: 'LIGHT' | 'DARK';
|
|
88
|
+
mapOptions?: google.maps.MapOptions;
|
|
89
|
+
customMarkers?: CustomMarker[];
|
|
90
|
+
inputMarkerConfig?: MarkerConfig;
|
|
91
|
+
type: 'input' | 'detail';
|
|
92
|
+
}
|
|
93
|
+
|
|
94
|
+
export interface CustomMarker {
|
|
95
|
+
lat: number;
|
|
96
|
+
lng: number;
|
|
97
|
+
title?: string;
|
|
98
|
+
desc?: string;
|
|
99
|
+
}
|
|
@@ -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,13 @@
|
|
|
1
|
+
import type { PropType as __PropType } from 'vue';
|
|
2
|
+
declare const _sfc_main: import("vue").DefineComponent<{
|
|
3
|
+
type: {
|
|
4
|
+
type: __PropType<"detail" | "input">;
|
|
5
|
+
required: true;
|
|
6
|
+
};
|
|
7
|
+
}, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
8
|
+
type: {
|
|
9
|
+
type: __PropType<"detail" | "input">;
|
|
10
|
+
required: true;
|
|
11
|
+
};
|
|
12
|
+
}>>, {}, {}>;
|
|
13
|
+
export default _sfc_main;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import type { PropType as __PropType } from 'vue';
|
|
2
|
+
declare const _sfc_main: import("vue").DefineComponent<{
|
|
3
|
+
assetId: {
|
|
4
|
+
type: __PropType<string>;
|
|
5
|
+
required: true;
|
|
6
|
+
};
|
|
7
|
+
}, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
8
|
+
assetId: {
|
|
9
|
+
type: __PropType<string>;
|
|
10
|
+
required: true;
|
|
11
|
+
};
|
|
12
|
+
}>>, {}, {}>;
|
|
13
|
+
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;
|
|
@@ -122,6 +122,12 @@ export interface DialogFormProps extends FormProps {
|
|
|
122
122
|
* The severity will determine the dialog icons and color scheme.
|
|
123
123
|
*/
|
|
124
124
|
severity?: 'success' | 'danger' | 'primary';
|
|
125
|
+
maskClass?: string | string[];
|
|
126
|
+
/**
|
|
127
|
+
* Whether to automatically manage layering.
|
|
128
|
+
* @defaultValue true
|
|
129
|
+
*/
|
|
130
|
+
autoZIndex?: boolean | undefined;
|
|
125
131
|
}
|
|
126
132
|
|
|
127
133
|
export interface ConfirmSlots {
|
|
@@ -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;
|
|
@@ -21,6 +21,10 @@ declare const _sfc_main: import("vue").DefineComponent<{
|
|
|
21
21
|
type: __PropType<boolean | undefined>;
|
|
22
22
|
required: false;
|
|
23
23
|
};
|
|
24
|
+
isFromUser: {
|
|
25
|
+
type: __PropType<boolean | undefined>;
|
|
26
|
+
required: false;
|
|
27
|
+
};
|
|
24
28
|
successMessage: {
|
|
25
29
|
type: __PropType<string | undefined>;
|
|
26
30
|
required: false;
|
|
@@ -59,6 +63,10 @@ declare const _sfc_main: import("vue").DefineComponent<{
|
|
|
59
63
|
type: __PropType<boolean | undefined>;
|
|
60
64
|
required: false;
|
|
61
65
|
};
|
|
66
|
+
isFromUser: {
|
|
67
|
+
type: __PropType<boolean | undefined>;
|
|
68
|
+
required: false;
|
|
69
|
+
};
|
|
62
70
|
successMessage: {
|
|
63
71
|
type: __PropType<string | undefined>;
|
|
64
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: {
|
|
@@ -20,10 +20,12 @@ export type TSVueIcons =
|
|
|
20
20
|
| 'arrow-left-right'
|
|
21
21
|
| 'arrow-right'
|
|
22
22
|
| 'arrow-right-fill'
|
|
23
|
+
| 'asset'
|
|
23
24
|
| 'asset-view'
|
|
24
25
|
| 'asset-name-view'
|
|
25
26
|
| 'assignment'
|
|
26
27
|
| 'audit'
|
|
28
|
+
| 'award-fill'
|
|
27
29
|
| 'bell'
|
|
28
30
|
| 'bell-alert'
|
|
29
31
|
| 'borrow'
|
|
@@ -68,6 +70,8 @@ export type TSVueIcons =
|
|
|
68
70
|
| 'file-shield-2-line'
|
|
69
71
|
| 'filter-fill'
|
|
70
72
|
| 'filter-line'
|
|
73
|
+
| 'fullscreen-line'
|
|
74
|
+
| 'fullscreen-exit-line'
|
|
71
75
|
| 'folder-line'
|
|
72
76
|
| 'gate'
|
|
73
77
|
| 'group'
|
|
@@ -77,8 +81,11 @@ export type TSVueIcons =
|
|
|
77
81
|
| 'image-add'
|
|
78
82
|
| 'indeterminate-circle-fill'
|
|
79
83
|
| 'info'
|
|
84
|
+
| 'layout-grid-line'
|
|
80
85
|
| 'link-unlink-m'
|
|
81
86
|
| 'list-settings-line'
|
|
87
|
+
| 'list-check'
|
|
88
|
+
| 'list-check-2'
|
|
82
89
|
| 'loader-4'
|
|
83
90
|
| 'logout-box-r-line'
|
|
84
91
|
| 'mail-open-line'
|
|
@@ -86,6 +93,7 @@ export type TSVueIcons =
|
|
|
86
93
|
| 'map-2-line'
|
|
87
94
|
| 'map-pin-line'
|
|
88
95
|
| 'menu-line'
|
|
96
|
+
| 'menu-fold'
|
|
89
97
|
| 'menu-unfold'
|
|
90
98
|
| 'more'
|
|
91
99
|
| 'move-to'
|
|
@@ -97,6 +105,8 @@ export type TSVueIcons =
|
|
|
97
105
|
| 'phone-line'
|
|
98
106
|
| 'printer'
|
|
99
107
|
| 'price-tag-3-line'
|
|
108
|
+
| 'pushpin-2-line'
|
|
109
|
+
| 'pushpin-fill'
|
|
100
110
|
| 'qr'
|
|
101
111
|
| 'qr-scan-line'
|
|
102
112
|
| 'recycle-bin'
|
|
@@ -125,6 +135,7 @@ export type TSVueIcons =
|
|
|
125
135
|
| 'user'
|
|
126
136
|
| 'user-add-line'
|
|
127
137
|
| 'user-follow-line'
|
|
138
|
+
| 'user-unfollow-line'
|
|
128
139
|
| 'user-search'
|
|
129
140
|
| 'user-settings'
|
|
130
141
|
| 'verification';
|
|
@@ -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;
|