tsv2-library 1.0.61-alpha.12 → 1.0.61-alpha.120

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.
Files changed (100) hide show
  1. package/dist/loading-0-1a7cddc8.js +4 -0
  2. package/dist/loading-1-892eee7c.js +4 -0
  3. package/dist/loading-2-bf39c889.js +4 -0
  4. package/dist/loading-3-f1ea4b15.js +4 -0
  5. package/dist/node_modules/@googlemaps/js-api-loader/src/deprecated.d.ts +7 -0
  6. package/dist/node_modules/@googlemaps/js-api-loader/src/index.d.ts +52 -0
  7. package/dist/node_modules/@googlemaps/js-api-loader/src/messages.d.ts +9 -0
  8. package/dist/src/build-entry.d.ts +4 -2830
  9. package/dist/src/components/v2/AssetInfo/AssetInfo.vue.d.ts +4 -4
  10. package/dist/src/components/v2/ButtonScan/ButtonScan.vue.d.ts +6 -0
  11. package/dist/src/components/v2/ButtonSelectTree/ButtonSelectTree.vue.d.ts +7 -1
  12. package/dist/src/components/v2/CustomColumn/CustomColumn.vue.d.ts +3 -0
  13. package/dist/src/components/v2/CustomColumn/DialogColumnSetup.vue.d.ts +4 -0
  14. package/dist/src/components/v2/DataTable/DataTable.vue.d.ts +15 -0
  15. package/dist/src/components/v2/DialogAssetNameDetail/DialogAssetNameDetail.vue.d.ts +3 -1
  16. package/dist/src/components/v2/DialogCoordinate/AssetList.vue.d.ts +4 -0
  17. package/dist/src/components/v2/DialogCoordinate/AssetListFilter.vue.d.ts +4 -0
  18. package/dist/src/components/v2/DialogCoordinate/DialogCoordinate.vue.d.ts +99 -0
  19. package/dist/src/components/v2/DialogCoordinate/FullscreenToggle.vue.d.ts +4 -0
  20. package/dist/src/components/v2/DialogCoordinate/MapSearch.vue.d.ts +15 -0
  21. package/dist/src/components/v2/DialogCoordinate/Marker.vue.d.ts +13 -0
  22. package/dist/src/components/v2/DialogCoordinate/PopupDetail.vue.d.ts +13 -0
  23. package/dist/src/components/v2/DialogCoordinate/services/googleMapsService.d.ts +10 -0
  24. package/dist/src/components/v2/DialogCoordinate/services/openStreetMapService.d.ts +59 -0
  25. package/dist/src/components/v2/DialogForm/DialogForm.vue.d.ts +6 -0
  26. package/dist/src/components/v2/DialogReportDamage/DialogReportDamage.vue.d.ts +8 -0
  27. package/dist/src/components/v2/DialogReportMissing/DialogReportMissing.vue.d.ts +8 -0
  28. package/dist/src/components/v2/DialogSelectAsset/DialogSelectAsset.vue.d.ts +13 -9
  29. package/dist/src/components/v2/DialogSelectTree/DialogSelectTree.vue.d.ts +9 -1
  30. package/dist/src/components/v2/DisposalReport/DisposalReportTable.vue.d.ts +16 -0
  31. package/dist/src/components/v2/FileUpload/FileUpload.vue.d.ts +4 -0
  32. package/dist/src/components/v2/Form/Form.vue.d.ts +2 -0
  33. package/dist/src/components/v2/HardwareSync/HardwareSync.vue.d.ts +2 -2
  34. package/dist/src/components/v2/Icon/Icon.vue.d.ts +7 -0
  35. package/dist/src/components/v2/ImageCompressor/BackgroundImageCropper.vue.d.ts +1 -1
  36. package/dist/src/components/v2/InputCoordinate/InputCoordinate.vue.d.ts +64 -0
  37. package/dist/src/components/v2/InputCurrency/InputCurrency.vue.d.ts +5 -0
  38. package/dist/src/components/v2/InputCurrencyReference/InputCurrencyReference.vue.d.ts +30 -0
  39. package/dist/src/components/v2/InputText/InputText.vue.d.ts +6 -0
  40. package/dist/src/components/v2/LazyLoadTrigger/LazyLoadTrigger.vue.d.ts +4 -0
  41. package/dist/src/components/v2/TransactionRoles/TransactionRoles.vue.d.ts +1 -0
  42. package/dist/src/components/v2/Tree/Tree.vue.d.ts +4 -0
  43. package/dist/src/components/v2/index.d.ts +4 -1
  44. package/dist/src/dto/assets.dto.d.ts +17 -0
  45. package/dist/src/dto/missing.dto.d.ts +1 -0
  46. package/dist/src/dto/tagTransaction.dto.d.ts +9 -0
  47. package/dist/src/presets/multiselect/index.js +1 -0
  48. package/dist/src/presets/paginator/index.js +1 -1
  49. package/dist/src/presets/toast/index.js +1 -1
  50. package/dist/src/services/assets.service.d.ts +7 -2
  51. package/dist/src/services/deviceIOT.service.d.ts +1 -0
  52. package/dist/src/services/tagTransaction.service.d.ts +1 -1
  53. package/dist/src/services/tree.service.d.ts +1 -0
  54. package/dist/src/types/assets.type.d.ts +32 -11
  55. package/dist/src/utils/changelog.util.d.ts +69 -0
  56. package/dist/src/utils/createVueControl.d.ts +8 -0
  57. package/dist/src/utils/customMarker.util.d.ts +64 -0
  58. package/dist/src/utils/debounce.util.d.ts +1 -0
  59. package/dist/src/utils/exportToExcel.util.d.ts +1 -0
  60. package/dist/src/utils/getImageURL.util.d.ts +11 -2
  61. package/dist/src/utils/googleMapLoader.util.d.ts +1 -0
  62. package/dist/src/utils/index.d.ts +8 -4
  63. package/dist/src/utils/json.util.d.ts +17 -0
  64. package/dist/src/utils/request.util.d.ts +17 -0
  65. package/dist/src/utils/role.util.d.ts +19 -1
  66. package/dist/src/utils/textFormater.util.d.ts +3 -0
  67. package/dist/style.css +1 -1
  68. package/dist/tsv2-library.es.js +66363 -67807
  69. package/dist/tsv2-library.umd.js +47 -609
  70. package/package.json +6 -1
  71. package/src/components/v2/ButtonScan/ButtonScan.vue.d.ts +6 -0
  72. package/src/components/v2/ButtonSelectTree/ButtonSelectTree.vue.d.ts +7 -1
  73. package/src/components/v2/CustomColumn/CustomColumn.vue.d.ts +3 -0
  74. package/src/components/v2/DataTable/DataTable.vue.d.ts +15 -0
  75. package/src/components/v2/DialogAssetNameDetail/DialogAssetNameDetail.vue.d.ts +3 -1
  76. package/src/components/v2/DialogCoordinate/DialogCoordinate.vue.d.ts +99 -0
  77. package/src/components/v2/DialogForm/DialogForm.vue.d.ts +6 -0
  78. package/src/components/v2/DialogSelectAsset/DialogSelectAsset.vue.d.ts +13 -9
  79. package/src/components/v2/DialogSelectTree/DialogSelectTree.vue.d.ts +9 -1
  80. package/src/components/v2/FileUpload/FileUpload.vue.d.ts +4 -0
  81. package/src/components/v2/Form/Form.vue.d.ts +2 -0
  82. package/src/components/v2/Icon/Icon.vue.d.ts +7 -0
  83. package/src/components/v2/InputCoordinate/InputCoordinate.vue.d.ts +64 -0
  84. package/src/components/v2/InputCurrency/InputCurrency.vue.d.ts +5 -0
  85. package/src/components/v2/InputCurrencyReference/InputCurrencyReference.vue.d.ts +30 -0
  86. package/src/components/v2/InputText/InputText.vue.d.ts +6 -0
  87. package/src/components/v2/TransactionRoles/TransactionRoles.vue.d.ts +1 -0
  88. package/src/components/v2/Tree/Tree.vue.d.ts +4 -0
  89. package/src/presets/multiselect/index.js +1 -0
  90. package/src/presets/paginator/index.js +1 -1
  91. package/src/presets/toast/index.js +1 -1
  92. package/src/services/assets.service.ts +49 -1
  93. package/src/services/deviceIOT.service.ts +8 -0
  94. package/src/services/tagTransaction.service.ts +2 -2
  95. package/src/services/tracking.service.ts +1 -1
  96. package/src/services/tree.service.ts +1 -0
  97. package/dist/loading-0-7762a473.js +0 -4
  98. package/dist/loading-1-55418796.js +0 -4
  99. package/dist/loading-2-b6abf641.js +0 -4
  100. 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: true;
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: true;
18
+ type: __PropType<string | undefined>;
19
+ required: false;
20
20
  };
21
21
  fields: {
22
22
  type: __PropType<Field[] | undefined>;
@@ -23,6 +23,12 @@ export type Device = {
23
23
  name: string;
24
24
  };
25
25
 
26
+ export type BaseRegisteredDevice = {
27
+ _id: string;
28
+ serialNumber: string;
29
+ name: string;
30
+ };
31
+
26
32
  export type RegisteredDevice = {
27
33
  _id: string;
28
34
  imageSmall: string;
@@ -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 {
@@ -2,6 +2,9 @@ import { ClassComponent } from '../ts-helpers';
2
2
 
3
3
  export interface CustomColumnProps {
4
4
  tableId: string;
5
+ tableKey: string;
6
+ tableName: string;
7
+ tableData: Data[] | undefined;
5
8
  defaultColumns: TableColumn[];
6
9
  visibleColumns: TableColumn[];
7
10
  /**
@@ -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
- assetImageSmall?: null | 'string';
119
- assetImageMedium?: null | 'string';
120
- assetImageBig?: null | 'string';
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
- Record<string, unknown>,
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<"QR" | "RFID" | undefined>;
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<"QR" | "RFID" | undefined>;
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 { CoordinateValue } from '../DialogCoordinate/DialogCoordinate.vue.d';
4
+
5
+ /**
6
+ * InputCoordinate component props
7
+ */
8
+ export interface InputCoordinateProps {
9
+ modelValue?: Nullable<CoordinateValue>;
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<CoordinateValue>];
47
+ };
48
+
49
+ /**
50
+ * **TSVue - InputCoordinate**
51
+ *
52
+ * _Handle coordinate input with latitude and longitude fields._
53
+ *
54
+ * --- ---
55
+ * ![TSVue](https://ik.imagekit.io/kurniadev/TS-HEAD-BLACK.png)
56
+ *
57
+ * @group form
58
+ */
59
+ declare const InputCoordinate: DefineComponent<
60
+ InputCoordinateProps,
61
+ InputCoordinateEmits
62
+ >;
63
+
64
+ export default InputCoordinate;
@@ -90,6 +90,11 @@ export interface InputCurrencyProps {
90
90
  */
91
91
  fieldInfo?: string;
92
92
  inputnNumberId?: string;
93
+ /**
94
+ * Wether the currency dropdown should be selectable or not.
95
+ * @defaultValue false
96
+ */
97
+ selectable?: boolean;
93
98
  }
94
99
 
95
100
  /**