tsv2-library 1.0.61-alpha.99 → 1.0.64

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 (28) hide show
  1. package/dist/node_modules/@googlemaps/js-api-loader/src/deprecated.d.ts +7 -0
  2. package/dist/node_modules/@googlemaps/js-api-loader/src/index.d.ts +52 -0
  3. package/dist/node_modules/@googlemaps/js-api-loader/src/messages.d.ts +9 -0
  4. package/dist/src/build-entry.d.ts +2 -2
  5. package/dist/src/components/v2/DataTable/DataTable.vue.d.ts +8 -0
  6. package/dist/src/components/v2/DialogCoordinate/DialogCoordinate.vue.d.ts +76 -0
  7. package/dist/src/components/v2/DialogCoordinate/FullscreenToggle.vue.d.ts +4 -0
  8. package/dist/src/components/v2/DialogCoordinate/MapSearch.vue.d.ts +13 -0
  9. package/dist/src/components/v2/DialogCoordinate/services/googleMapsService.d.ts +10 -0
  10. package/dist/src/components/v2/DialogCoordinate/services/openStreetMapService.d.ts +59 -0
  11. package/dist/src/components/v2/DisposalReport/DisposalReportTable.vue.d.ts +8 -0
  12. package/dist/src/components/v2/Icon/Icon.vue.d.ts +4 -0
  13. package/dist/src/components/v2/InputCoordinate/InputCoordinate.vue.d.ts +64 -0
  14. package/dist/src/components/v2/InputText/InputText.vue.d.ts +6 -0
  15. package/dist/src/components/v2/index.d.ts +2 -1
  16. package/dist/src/utils/changelog.util.d.ts +69 -0
  17. package/dist/src/utils/createVueControl.d.ts +8 -0
  18. package/dist/src/utils/exportToExcel.util.d.ts +1 -0
  19. package/dist/src/utils/index.d.ts +2 -1
  20. package/dist/style.css +1 -1
  21. package/dist/tsv2-library.es.js +182 -57
  22. package/dist/tsv2-library.umd.js +7 -7
  23. package/package.json +3 -1
  24. package/src/components/v2/DataTable/DataTable.vue.d.ts +8 -0
  25. package/src/components/v2/DialogCoordinate/DialogCoordinate.vue.d.ts +76 -0
  26. package/src/components/v2/Icon/Icon.vue.d.ts +4 -0
  27. package/src/components/v2/InputCoordinate/InputCoordinate.vue.d.ts +64 -0
  28. package/src/components/v2/InputText/InputText.vue.d.ts +6 -0
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "tsv2-library",
3
3
  "author": "fixedassetv2-fe",
4
- "version": "1.0.61-alpha.99",
4
+ "version": "1.0.64",
5
5
  "license": "ISC",
6
6
  "homepage": "https://github.com/fixedassetv2-fe/tsv2-library#readme",
7
7
  "repository": {
@@ -38,6 +38,8 @@
38
38
  "cy:test-all": "npm run tailwind && start-server-and-test dev cy:run-e2e && npm run cy:run-ct"
39
39
  },
40
40
  "dependencies": {
41
+ "@googlemaps/js-api-loader": "^2.0.2",
42
+ "@types/google.maps": "^3.58.1",
41
43
  "@types/lodash": "^4.17.7",
42
44
  "@vueuse/core": "^10.7.2",
43
45
  "axios": "^1.3.4",
@@ -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
  /**
@@ -468,6 +472,10 @@ export interface TSDataTableProps {
468
472
  * The return value is added to the row's :classes array (see Vue.js class bindings).
469
473
  */
470
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)[][];
471
479
  }
472
480
 
473
481
  export type TSDataTableEmits = {
@@ -0,0 +1,76 @@
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
+ }
@@ -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'
@@ -97,6 +99,8 @@ export type TSVueIcons =
97
99
  | 'phone-line'
98
100
  | 'printer'
99
101
  | 'price-tag-3-line'
102
+ | 'pushpin-2-line'
103
+ | 'pushpin-fill'
100
104
  | 'qr'
101
105
  | 'qr-scan-line'
102
106
  | 'recycle-bin'
@@ -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
+ * ![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;
@@ -106,6 +106,12 @@ export interface InputTextProps {
106
106
  * @default true
107
107
  */
108
108
  allowSpecialCharacters?: boolean;
109
+ /**
110
+ * Wether the input should be trimmed or not.
111
+ *
112
+ * @default true
113
+ */
114
+ trimInput?: boolean;
109
115
  }
110
116
 
111
117
  /**