tsv2-library 1.0.61-alpha.21 → 1.0.61-alpha.211

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 (159) hide show
  1. package/dist/loading-table-fa-8b779ca8.js +4 -0
  2. package/dist/no-data-fa-7f1ccd18.js +4 -0
  3. package/dist/node_modules/@googlemaps/js-api-loader/src/deprecated.d.ts +7 -0
  4. package/dist/node_modules/@googlemaps/js-api-loader/src/index.d.ts +52 -0
  5. package/dist/node_modules/@googlemaps/js-api-loader/src/messages.d.ts +9 -0
  6. package/dist/src/build-entry.d.ts +8 -3
  7. package/dist/src/components/v2/Animation/Animation.vue.d.ts +40 -0
  8. package/dist/src/components/v2/AssetInfo/AssetInfo.vue.d.ts +4 -4
  9. package/dist/src/components/v2/AssetTable/AssetFilters.vue.d.ts +72 -0
  10. package/dist/src/components/v2/AssetTable/UrlFormat.vue.d.ts +21 -0
  11. package/dist/src/components/v2/AssetTable/columns/assetColumns.d.ts +7 -0
  12. package/dist/src/components/v2/AssetTable/helpers/assetFilters.d.ts +7 -0
  13. package/dist/src/components/v2/AssetTable/store/assetTable.store.d.ts +13 -0
  14. package/dist/src/components/v2/AssetTable/store/index.d.ts +1 -0
  15. package/dist/src/components/v2/ButtonScan/ButtonScan.vue.d.ts +6 -0
  16. package/dist/src/components/v2/ButtonSelectTree/ButtonSelectTree.vue.d.ts +7 -1
  17. package/dist/src/components/v2/Calendar/Calendar.vue.d.ts +17 -0
  18. package/dist/src/components/v2/Calendar/CustomCalendar.vue.d.ts +4 -0
  19. package/dist/src/components/v2/CustomColumn/ColumnList.vue.d.ts +4 -0
  20. package/dist/src/components/v2/CustomColumn/CustomColumn.vue.d.ts +23 -1
  21. package/dist/src/components/v2/CustomColumn/DialogColumnSetup.vue.d.ts +4 -0
  22. package/dist/src/components/v2/DataTable/DataTable.vue.d.ts +44 -6
  23. package/dist/src/components/v2/DatePicker/DatePicker.vue.d.ts +23 -0
  24. package/dist/src/components/v2/DayPicker/DayPicker.vue.d.ts +23 -0
  25. package/dist/src/components/v2/Dialog/Dialog.vue.d.ts +1 -0
  26. package/dist/src/components/v2/DialogAssetNameDetail/DialogAssetNameDetail.vue.d.ts +3 -1
  27. package/dist/src/components/v2/DialogConfirm/DialogConfirm.vue.d.ts +5 -0
  28. package/dist/src/components/v2/DialogCoordinate/AssetList.vue.d.ts +4 -0
  29. package/dist/src/components/v2/DialogCoordinate/AssetListFilter.vue.d.ts +4 -0
  30. package/dist/src/components/v2/DialogCoordinate/CoordinateHeader.vue.d.ts +4 -0
  31. package/dist/src/components/v2/DialogCoordinate/DialogCoordinate.vue.d.ts +100 -0
  32. package/dist/src/components/v2/DialogCoordinate/FullscreenToggle.vue.d.ts +4 -0
  33. package/dist/src/components/v2/DialogCoordinate/MapSearch.vue.d.ts +15 -0
  34. package/dist/src/components/v2/DialogCoordinate/Marker.vue.d.ts +13 -0
  35. package/dist/src/components/v2/DialogCoordinate/PopupDetail.vue.d.ts +13 -0
  36. package/dist/src/components/v2/DialogCoordinate/services/googleMapsService.d.ts +10 -0
  37. package/dist/src/components/v2/DialogCoordinate/services/openStreetMapService.d.ts +59 -0
  38. package/dist/src/components/v2/DialogDataLocked/DialogDataLocked.vue.d.ts +6 -0
  39. package/dist/src/components/v2/DialogForm/DialogForm.vue.d.ts +11 -0
  40. package/dist/src/components/v2/DialogReportDamage/DialogReportDamage.vue.d.ts +8 -0
  41. package/dist/src/components/v2/DialogReportMissing/DialogReportMissing.vue.d.ts +8 -0
  42. package/dist/src/components/v2/DialogSelectAsset/DialogSelectAsset.vue.d.ts +13 -9
  43. package/dist/src/components/v2/DialogSelectAssetName/DialogSelectAssetName.vue.d.ts +75 -0
  44. package/dist/src/components/v2/DialogSelectTree/DialogSelectTree.vue.d.ts +9 -1
  45. package/dist/src/components/v2/DisposalReport/DisposalReportTable.vue.d.ts +25 -1
  46. package/dist/src/components/v2/Dropdown/Dropdown.vue.d.ts +1 -0
  47. package/dist/src/components/v2/FailedLoad/FailedLoad.vue.d.ts +26 -0
  48. package/dist/src/components/v2/FileUpload/FileUpload.vue.d.ts +4 -0
  49. package/dist/src/components/v2/Form/Form.vue.d.ts +2 -0
  50. package/dist/src/components/v2/Icon/Icon.vue.d.ts +14 -0
  51. package/dist/src/components/v2/Image/Image.vue.d.ts +5 -0
  52. package/dist/src/components/v2/ImageCompressor/ImageCompressor.vue.d.ts +1 -1
  53. package/dist/src/components/v2/InputCoordinate/InputCoordinate.vue.d.ts +70 -0
  54. package/dist/src/components/v2/InputCurrency/InputCurrency.vue.d.ts +5 -0
  55. package/dist/src/components/v2/InputCurrencyReference/InputCurrencyReference.vue.d.ts +30 -0
  56. package/dist/src/components/v2/InputPhoneNumber/InputPhoneNumber.vue.d.ts +1 -0
  57. package/dist/src/components/v2/InputRangeNumber/InputRangeNumber.vue.d.ts +2 -2
  58. package/dist/src/components/v2/InputText/InputText.vue.d.ts +6 -0
  59. package/dist/src/components/v2/InputURL/InputURL.vue.d.ts +1 -0
  60. package/dist/src/components/v2/LazyLoadTrigger/LazyLoadTrigger.vue.d.ts +4 -0
  61. package/dist/src/components/v2/MultiSelect/MultiSelect.vue.d.ts +4 -0
  62. package/dist/src/components/v2/Textarea/Textarea.vue.d.ts +1 -0
  63. package/dist/src/components/v2/TransactionRoles/TransactionRoles.vue.d.ts +2 -0
  64. package/dist/src/components/v2/index.d.ts +9 -1
  65. package/dist/src/dto/assets.dto.d.ts +17 -0
  66. package/dist/src/dto/customField.dto.d.ts +9 -0
  67. package/dist/src/dto/missing.dto.d.ts +1 -0
  68. package/dist/src/dto/tagTransaction.dto.d.ts +9 -0
  69. package/dist/src/event-bus/index.d.ts +15 -0
  70. package/dist/src/event-bus/mitt.d.ts +26 -0
  71. package/dist/src/presets/datatable/index.js +1 -1
  72. package/dist/src/presets/datepicker/index.js +13 -1
  73. package/dist/src/presets/daypicker/index.js +14 -2
  74. package/dist/src/services/assetName.service.d.ts +8 -7
  75. package/dist/src/services/assets.service.d.ts +16 -11
  76. package/dist/src/services/column.service.d.ts +13 -0
  77. package/dist/src/services/damage.service.d.ts +1 -1
  78. package/dist/src/services/dataLock.service.d.ts +7 -0
  79. package/dist/src/services/deviceIOT.service.d.ts +1 -0
  80. package/dist/src/services/globalSettings.service.d.ts +6 -0
  81. package/dist/src/services/missing.service.d.ts +1 -1
  82. package/dist/src/services/scanLog.service.d.ts +1 -1
  83. package/dist/src/services/settingsAttribute.service.d.ts +10 -0
  84. package/dist/src/services/tagQr.service.d.ts +1 -1
  85. package/dist/src/services/tagTransaction.service.d.ts +1 -1
  86. package/dist/src/services/tracking.service.d.ts +2 -2
  87. package/dist/src/services/transferTransaction.service.d.ts +1 -1
  88. package/dist/src/services/tree.service.d.ts +1 -0
  89. package/dist/src/types/assets.type.d.ts +85 -9
  90. package/dist/src/types/filterField.type.d.ts +35 -0
  91. package/dist/src/types/globalSettings.type.d.ts +9 -0
  92. package/dist/src/types/settingsAttribute.type.d.ts +14 -0
  93. package/dist/src/utils/changelog.util.d.ts +69 -0
  94. package/dist/src/utils/createVueControl.d.ts +8 -0
  95. package/dist/src/utils/customMarker.util.d.ts +64 -0
  96. package/dist/src/utils/debounce.util.d.ts +1 -0
  97. package/dist/src/utils/exportToExcel.util.d.ts +1 -0
  98. package/dist/src/utils/getImageURL.util.d.ts +3 -3
  99. package/dist/src/utils/getVisibleColumns.util.d.ts +2 -0
  100. package/dist/src/utils/googleMapLoader.util.d.ts +1 -0
  101. package/dist/src/utils/index.d.ts +9 -4
  102. package/dist/src/utils/json.util.d.ts +17 -0
  103. package/dist/src/utils/request.util.d.ts +17 -0
  104. package/dist/src/utils/role.util.d.ts +21 -3
  105. package/dist/src/utils/textFormater.util.d.ts +4 -0
  106. package/dist/src/utils/toast.util.d.ts +1 -1
  107. package/dist/style.css +1 -1
  108. package/dist/tsv2-library.es.js +59557 -53595
  109. package/dist/tsv2-library.umd.js +12 -12
  110. package/package.json +6 -2
  111. package/src/components/v2/Animation/Animation.vue.d.ts +40 -0
  112. package/src/components/v2/AssetTable/AssetFilters.vue.d.ts +72 -0
  113. package/src/components/v2/ButtonScan/ButtonScan.vue.d.ts +6 -0
  114. package/src/components/v2/ButtonSelectTree/ButtonSelectTree.vue.d.ts +7 -1
  115. package/src/components/v2/Calendar/Calendar.vue.d.ts +17 -0
  116. package/src/components/v2/CustomColumn/CustomColumn.vue.d.ts +23 -1
  117. package/src/components/v2/DataTable/DataTable.vue.d.ts +44 -6
  118. package/src/components/v2/DatePicker/DatePicker.vue.d.ts +23 -0
  119. package/src/components/v2/DayPicker/DayPicker.vue.d.ts +23 -0
  120. package/src/components/v2/Dialog/Dialog.vue.d.ts +1 -0
  121. package/src/components/v2/DialogAssetNameDetail/DialogAssetNameDetail.vue.d.ts +3 -1
  122. package/src/components/v2/DialogConfirm/DialogConfirm.vue.d.ts +5 -0
  123. package/src/components/v2/DialogCoordinate/DialogCoordinate.vue.d.ts +100 -0
  124. package/src/components/v2/DialogForm/DialogForm.vue.d.ts +11 -0
  125. package/src/components/v2/DialogSelectAsset/DialogSelectAsset.vue.d.ts +13 -9
  126. package/src/components/v2/DialogSelectAssetName/DialogSelectAssetName.vue.d.ts +75 -0
  127. package/src/components/v2/DialogSelectTree/DialogSelectTree.vue.d.ts +9 -1
  128. package/src/components/v2/Dropdown/Dropdown.vue.d.ts +1 -0
  129. package/src/components/v2/FailedLoad/FailedLoad.vue.d.ts +26 -0
  130. package/src/components/v2/FileUpload/FileUpload.vue.d.ts +4 -0
  131. package/src/components/v2/Form/Form.vue.d.ts +2 -0
  132. package/src/components/v2/Icon/Icon.vue.d.ts +14 -0
  133. package/src/components/v2/Image/Image.vue.d.ts +5 -0
  134. package/src/components/v2/ImageCompressor/ImageCompressor.vue.d.ts +1 -1
  135. package/src/components/v2/InputCoordinate/InputCoordinate.vue.d.ts +70 -0
  136. package/src/components/v2/InputCurrency/InputCurrency.vue.d.ts +5 -0
  137. package/src/components/v2/InputCurrencyReference/InputCurrencyReference.vue.d.ts +30 -0
  138. package/src/components/v2/InputPhoneNumber/InputPhoneNumber.vue.d.ts +1 -0
  139. package/src/components/v2/InputRangeNumber/InputRangeNumber.vue.d.ts +2 -2
  140. package/src/components/v2/InputText/InputText.vue.d.ts +6 -0
  141. package/src/components/v2/InputURL/InputURL.vue.d.ts +1 -0
  142. package/src/components/v2/MultiSelect/MultiSelect.vue.d.ts +4 -0
  143. package/src/components/v2/Textarea/Textarea.vue.d.ts +1 -0
  144. package/src/components/v2/TransactionRoles/TransactionRoles.vue.d.ts +2 -0
  145. package/src/presets/datatable/index.js +1 -1
  146. package/src/presets/datepicker/index.js +13 -1
  147. package/src/presets/daypicker/index.js +14 -2
  148. package/src/services/assetDamage.service.ts +1 -1
  149. package/src/services/assetName.service.ts +10 -0
  150. package/src/services/assets.service.ts +49 -1
  151. package/src/services/column.service.ts +42 -0
  152. package/src/services/dataLock.service.ts +33 -0
  153. package/src/services/deviceIOT.service.ts +8 -0
  154. package/src/services/globalSettings.service.ts +33 -0
  155. package/src/services/settingsAttribute.service.ts +54 -0
  156. package/src/services/tagTransaction.service.ts +2 -2
  157. package/src/services/tracking.service.ts +1 -1
  158. package/src/services/tree.service.ts +1 -0
  159. package/dist/src/components/v2/DataTable/store/dataTable.store.d.ts +0 -22
@@ -0,0 +1,4 @@
1
+ const loadingTableFa = "data:application/octet-stream;base64,UEsDBBQAAAAIAGghblre6w2+fgAAALUAAAANAAAAbWFuaWZlc3QuanNvbo2NMQ7CMAxF7+KZFJymiHTqBTgBYjDEgqA0QYlBQlXvjidmtv+k9/QXeHNtsWQYAWEDN85cSUpVnkKRVEQib3/LPNqE3a6z6tJL7v+JOc4ketJgPC0Qgzbsnb/YgY2jKxrXD2g8Um9wbwOjswoHTZ+JPscSWItc6kwJ1vP6BVBLAwQUAAAACABoIW5aWWWigx8DAABSGAAANAAAAGFuaW1hdGlvbnMvZTk0OWIyNWUtNGFjMS00MzUxLTkxYTMtMTYyZGUxNDI5MWE4Lmpzb27tWF1vmzAU/SvIzzSyz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AA0AAAAAAAAAAAAAAAAAAAAAAG1hbmlmZXN0Lmpzb25QSwECFAAUAAAACABoIW5aWWWigx8DAABSGAAANAAAAAAAAAAAAAAAAACpAAAAYW5pbWF0aW9ucy9lOTQ5YjI1ZS00YWMxLTQzNTEtOTFhMy0xNjJkZTE0MjkxYTguanNvblBLBQYAAAAAAgACAJ0AAAAaBAAAAAA=";
2
+ export {
3
+ loadingTableFa as default
4
+ };
@@ -0,0 +1,4 @@
1
+ const noDataFa = "data:application/octet-stream;base64,UEsDBBQAAAAIAJUQc1sIGu2wgQAAALUAAAANAAAAbWFuaWZlc3QuanNvbo2NQQ7CIBBF7zJrqaUilq56AU9gXEwLKIaCgdHENL27s3Lt7v/kvbwV3q7UkBMMIGEHN5dcQcqF/2gzxUwU3P63xKOOsumalll80f0/MIUFiSMVhssKwbJjJR5m66U4eSWF8hMK06pJeKP71hxn3eme1WfEzzlbx0bKZcEI23X7AlBLAwQUAAAACACVEHNbR9UNAfEOAAAEVQAANAAAAGFuaW1hdGlvbnMvZDFhM2NkZjEtN2Y0MS00ZmJhLTkwNGItZjk2ODA5NWM2MjY4Lmpzb27tXFtvG8cZ/SvCvna52ftFT70mKJAARZP2xQgKRqZixqQokLTb1NB/7znnm9mdpUhZqi1pjShAvNq5fDM7M+e7Dz9EV+voPPrTZn292S3/u9xcLc6KKI5ev34dnadx9CY6z3M8/x2dF00eR+vFfh6df4h+Rqffrzb7/XJxuVwtdl/tN5vV2+V+9svuLE2KIsmjmzhazX9dbHfR+asP0f5X0dNo86vleq6xfoehdtvoPMNjrwab6+i8wnOJJ8fHNC7nq91imNJPIMGa+e67+e5tXz3fqPgthvsQaY74hwUYPsu7OEvzpIrTH0H6PxgQs/MtfaMii/V/6hvVbISqoFWKIsxs1K/rQDjLyp54jkb4qLCbG5Xdd+PJsQhTD0owAdc8u0Hl4hKDgDK2IK9a25K0wgiLy79iRaIL7N2/Uizk8gqv2Q2avkdxldRJxuJLTCVH+4OVne92i73tjTaFBEbkDj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7zHtcGKCZ7xwAyD3mzQYAUvY/stQVV6ikfRgZUEEZiFQWKsd1GVwtAgmoVvY7YRmjDPiNQb1BPIJ9wqEZ5DejPfuHNBkQ5C+GkG8xtq4fTOC9Kg7BWyCYOMZoFPsDBf48CrnhOHYidyGuaNinFKZ+ut8tAhX+yCI9/kXwEycFbpOkDE3QOBJvVQnsNMxdehl/4qiFFMAtWHB3+3kWBkWor3UuXwAJq4xKQI2VhSgSCqx0ElGjQewnxEpEv6E1MtLjrnTxE0XTrkBi1IIKJdvACfMMXJk/m8KdbJGzCMUMn/gRrlw8M1Om6Ya5tlCpG6rlj82Ua/598z9QSwECFAAUAAAACACVEHNbCBrtsIEAAAC1AAAADQAAAAAAAAAAAAAAAAAAAAAAbWFuaWZlc3QuanNvblBLAQIUABQAAAAIAJUQc1tH1Q0B8Q4AAARVAAA0AAAAAAAAAAAAAAAAAKwAAABhbmltYXRpb25zL2QxYTNjZGYxLTdmNDEtNGZiYS05MDRiLWY5NjgwOTVjNjI2OC5qc29uUEsFBgAAAAACAAIAnQAAAO8PAAAAAA==";
2
+ export {
3
+ noDataFa as default
4
+ };
@@ -0,0 +1,7 @@
1
+ /**
2
+ * @deprecated Use the new functional API: `setOptions()` and `importLibrary()`.
3
+ * See the migration guide for more details: MIGRATION.md
4
+ */
5
+ export declare class Loader {
6
+ constructor(...args: any[]);
7
+ }
@@ -0,0 +1,52 @@
1
+ export type APIOptions = {
2
+ key?: string;
3
+ v?: string;
4
+ language?: string;
5
+ region?: string;
6
+ libraries?: string[];
7
+ authReferrerPolicy?: string;
8
+ mapIds?: string[];
9
+ channel?: string;
10
+ solutionChannel?: string;
11
+ };
12
+ interface APILibraryMap {
13
+ core: google.maps.CoreLibrary;
14
+ drawing: google.maps.DrawingLibrary;
15
+ elevation: google.maps.ElevationLibrary;
16
+ geocoding: google.maps.GeocodingLibrary;
17
+ geometry: google.maps.GeometryLibrary;
18
+ journeySharing: google.maps.JourneySharingLibrary;
19
+ maps: google.maps.MapsLibrary;
20
+ maps3d: google.maps.Maps3DLibrary;
21
+ marker: google.maps.MarkerLibrary;
22
+ places: google.maps.PlacesLibrary;
23
+ routes: google.maps.RoutesLibrary;
24
+ streetView: google.maps.StreetViewLibrary;
25
+ visualization: google.maps.VisualizationLibrary;
26
+ }
27
+ type APILibraryName = keyof APILibraryMap;
28
+ /**
29
+ * Sets the options for the Maps JavaScript API.
30
+ *
31
+ * Has to be called before any library is loaded.
32
+ *
33
+ * See https://developers.google.com/maps/documentation/javascript/load-maps-js-api#required_parameters
34
+ * for the full documentation of available options.
35
+ *
36
+ * @param options The options to set.
37
+ */
38
+ export declare function setOptions(options: APIOptions): void;
39
+ /**
40
+ * Imports the specified library from the Maps JavaScript API.
41
+ *
42
+ * The first call to this function will start actually loading the Maps
43
+ * JavaScript API.
44
+ *
45
+ * @param libraryName The name of the library to load.
46
+ * @returns A promise that resolves with the loaded library. In case of an
47
+ * error (due to poor network conditions, browser extensions, etc.), the
48
+ * returned promise is rejected with an error.
49
+ */
50
+ export declare function importLibrary<TLibraryName extends APILibraryName>(libraryName: TLibraryName): Promise<APILibraryMap[TLibraryName]>;
51
+ export declare function importLibrary(...parameters: Parameters<typeof google.maps.importLibrary>): ReturnType<typeof google.maps.importLibrary>;
52
+ export * from "./deprecated.js";
@@ -0,0 +1,9 @@
1
+ import { APIOptions } from "./index.js";
2
+ export declare const MSG_DEPRECATED_LOADER: string;
3
+ export declare const MSG_REPEATED_SET_OPTIONS: (options: APIOptions) => string;
4
+ export declare const MSG_IMPORT_LIBRARY_EXISTS: (options: APIOptions) => string;
5
+ export declare const MSG_SET_OPTIONS_NOT_CALLED: string;
6
+ export declare const MSG_SCRIPT_ELEMENT_EXISTS: string;
7
+ export declare const logError: (message: string) => void;
8
+ export declare const logDevWarning: (message: string) => void;
9
+ export declare const logDevNotice: (message: string) => void;
@@ -4,6 +4,7 @@ import TSToastService from '../node_modules/primevue/toastservice';
4
4
  import AssetsServices from './services/assets.service';
5
5
  import AssetNameService from './services/assetName.service';
6
6
  import AssetBrandService from './services/assetBrand.service';
7
+ import DataLockService from './services/dataLock.service';
7
8
  import DisposalServices, { API as DisposalAPI } from './services/disposal.service';
8
9
  import { FilterMatchMode } from '../node_modules/primevue/api';
9
10
  import { API as TreeAPI } from './services/tree.service';
@@ -19,16 +20,20 @@ interface TSFormContext<T> {
19
20
  declare const useForm: <T>() => TSFormContext<T>;
20
21
  declare const useField: <T>(path: MaybeRefOrGetter<string>, rules?: MaybeRef<RuleExpression<T>>, opts?: Partial<FieldOptions<T>> | undefined) => FieldContext<T>;
21
22
  import Presets from './presets';
22
- import { handleTokenExpiration, exportToExcel, formatGoDate, formatDate, getUserLocale, formatDateReadable, formatUserName, formatVowelSoundLabel, getImageURL, isObjectEmpty, useToast, listenSidebarChanges, unListenSidebarChanges, getCurrency, formatCurrency, getHostName, getBaseURL, useI18n, getNestedProperyValue, getSeverityByAssetStatus, clearStorage, forceLogout, reLogin, getTransactionRole, getSystemRole, hasSystemRole, hasTransactionRole, checkRouteAccess, hasApprovalRole, hasManagerRole, hasAnyManagerRole, hasMonitoringReportRole, hasAnyMonitoringReportRole, hasStaffRole } from './utils';
23
+ import { handleTokenExpiration, exportToExcel, formatGoDate, formatDate, getUserLocale, formatAssetValue, formatDateReadable, formatUserName, formatVowelSoundLabel, getImageURL, downloadFile, isObjectEmpty, useToast, listenSidebarChanges, unListenSidebarChanges, getCurrency, formatCurrency, getHostName, getBaseURL, useI18n, getNestedProperyValue, getSeverityByAssetStatus, clearStorage, forceLogout, reLogin, isValidJSONString, buildBodyParams, formatLogResponseData, googleMapLoader, getVisibleColumns, getTransactionRole, getSystemRole, hasSystemRole, hasTransactionRole, checkRouteAccess, hasApprovalRole, hasManagerRole, hasAnyManagerRole, hasMonitoringReportRole, hasAnyMonitoringReportRole, hasStaffRole, hasAccessToAssetDetail } from './utils';
24
+ import { default as eventBus, extendEventBus } from './event-bus';
23
25
  import { flattenTreeNodeChildren, parseNodeKeys, filterNodeKeys } from './components/v2/Tree/helpers';
24
26
  import useLoadingStore from './components/v2/Loading/store/loading.store';
27
+ import { useAssetTableStore } from './components/v2/AssetTable/store';
25
28
  import Tooltip from '../node_modules/primevue/tooltip';
26
29
  import Focus from './directives/v-focus';
27
30
  import VueHtmlToPaper from './plugins/VueHtmlToPaper';
28
- import { DialogDamageLog, DialogMissingLog, DialogTransferLog, TSAssetInfo, TSApproverInfo, TSBadge, TSBadgeGroup, TSBreadcrumb, TSButton, TSButtonAddByScan, TSButtonBulkAction, TSButtonCopy, TSButtonDownload, TSButtonFilter, TSButtonLogHistory, TSButtonRadio, TSButtonViewLog, TSButtonScan, TSButtonSearchByScan, TSButtonSearch, TSButtonSync, TSButtonSelectTree, TSButtonSelectUser, TSButtonToggle, TSCalendar, TSCard, TSCarousel, TSCheckbox, TSCustomColumn, TSDataTable, TSDatePicker, TSDayPicker, TSDialog, TSDialogApprovalList, TSDialogAssetNameDetail, TSDialogConfirm, TSDialogForm, TSDialogLinkedAsset, TSDialogPrintQR, TSDialogReportDamage, TSDialogReportMissing, TSDialogReportTag, TSDialogSelectTree, TSDialogSelectAsset, TSDialogSelectUser, TSDisposalReport, TSDropdown, TSFilterContainer, TSFileUpload, TSForm, TSIcon, TSImage, TSImageCompressor, TSInlineMessage, TSInputBadge, TSInputCurrency, TSInputEmail, TSInputNumber, TSInputOTP, TSInputPassword, TSInputPhoneNumber, TSInputRangeNumber, TSInputSearch, TSInputText, TSInputURL, TSLoading, TSMenu, TSMultiSelect, TSOverlayPanel, TSPaginator, TSProgressBar, TSSteps, TSTabMenu, TSTagType, TSTextarea, TSTimeline, TSToast, TSTransactionRoles, TSTree, TSTreeSearchInput, TSUserWithIcon, TSValidatorMessage } from './components/v2';
31
+ import { ASSET_COL_FIELDS, assetValueColumns, assetValueColumnsWithDefault, customFieldColumns, defaultAssetColumns } from './components/v2/AssetTable/columns/assetColumns';
32
+ import { parseAssetStaticFilter } from './components/v2/AssetTable/helpers/assetFilters';
33
+ import { DialogDamageLog, DialogMissingLog, DialogTransferLog, TSAnimation, TSAssetInfo, TSApproverInfo, TSBadge, TSBadgeGroup, TSBreadcrumb, TSButton, TSButtonAddByScan, TSButtonBulkAction, TSButtonCopy, TSButtonDownload, TSButtonFilter, TSButtonLogHistory, TSButtonRadio, TSButtonViewLog, TSButtonScan, TSButtonSearchByScan, TSButtonSearch, TSButtonSync, TSButtonSelectTree, TSButtonSelectUser, TSButtonToggle, TSCalendar, TSCard, TSCarousel, TSCheckbox, TSCustomColumn, TSDataTable, TSDatePicker, TSDayPicker, TSDialog, TSDialogApprovalList, TSDialogAssetNameDetail, TSDialogConfirm, TSDialogCoordinate, TSDialogDataLocked, TSDialogForm, TSDialogLinkedAsset, TSDialogPrintQR, TSDialogReportDamage, TSDialogReportMissing, TSDialogReportTag, TSDialogSelectAssetName, TSDialogSelectTree, TSDialogSelectAsset, TSDialogSelectUser, TSDisposalReport, TSDropdown, TSFailedLoad, TSFilterContainer, TSAssetFilters, TSFileUpload, TSForm, TSIcon, TSImage, TSImageCompressor, TSInlineMessage, TSInputBadge, TSInputCurrency, TSInputCurrencyReference, TSInputCoordinate, TSInputEmail, TSInputNumber, TSInputOTP, TSInputPassword, TSInputPhoneNumber, TSInputRangeNumber, TSInputSearch, TSInputText, TSInputURL, TSLoading, TSMenu, TSMultiSelect, TSOverlayPanel, TSPaginator, TSProgressBar, TSSteps, TSTabMenu, TSTagType, TSTextarea, TSTimeline, TSToast, TSTransactionRoles, TSTree, TSTreeSearchInput, TSUserWithIcon, TSValidatorMessage } from './components/v2';
29
34
  declare const TSi18n: import("vue-i18n").I18n<{}, {}, {}, string, false>;
30
35
  declare const _default: {
31
36
  install: (app: App) => void;
32
37
  };
33
38
  export default _default;
34
- export { LibConfig, TSToastService, TSi18n, VueHtmlToPaper, Tooltip, Focus, DialogDamageLog, DialogMissingLog, DialogTransferLog, TSAssetInfo, TSApproverInfo, TSBadge, TSBadgeGroup, TSBreadcrumb, TSButton, TSButtonAddByScan, TSButtonBulkAction, TSButtonCopy, TSButtonDownload, TSButtonFilter, TSButtonLogHistory, TSButtonRadio, TSButtonViewLog, TSButtonScan, TSButtonSearch, TSButtonSearchByScan, TSButtonSelectTree, TSButtonSelectUser, TSButtonSync, TSButtonToggle, TSCalendar, TSCard, TSCarousel, TSCheckbox, TSCustomColumn, TSDatePicker, TSDataTable, TSDayPicker, TSDialog, TSDialogApprovalList, TSDialogAssetNameDetail, TSDialogConfirm, TSDialogForm, TSDialogLinkedAsset, TSDialogPrintQR, TSDialogReportDamage, TSDialogReportMissing, TSDialogReportTag, TSDialogSelectTree, TSDialogSelectAsset, TSDialogSelectUser, TSDisposalReport, TSDropdown, TSFilterContainer, TSFileUpload, TSForm, TSIcon, TSImage, TSImageCompressor, TSInlineMessage, TSInputBadge, TSInputCurrency, TSInputEmail, TSInputNumber, TSInputOTP, TSInputPassword, TSInputPhoneNumber, TSInputRangeNumber, TSInputText, TSInputSearch, TSInputURL, TSLoading, TSMenu, TSMultiSelect, TSOverlayPanel, TSPaginator, TSProgressBar, TSSteps, TSTabMenu, TSTagType, TSTextarea, TSTimeline, TSToast, TSTransactionRoles, TSTree, TSTreeSearchInput, TSUserWithIcon, TSValidatorMessage, handleTokenExpiration, exportToExcel, formatGoDate, formatDate, getUserLocale, formatDateReadable, formatUserName, formatVowelSoundLabel, getImageURL, isObjectEmpty, useToast, listenSidebarChanges, unListenSidebarChanges, getCurrency, formatCurrency, getHostName, getBaseURL, useI18n, useForm, useField, getNestedProperyValue, getSeverityByAssetStatus, clearStorage, forceLogout, reLogin, getTransactionRole, getSystemRole, hasSystemRole, hasTransactionRole, checkRouteAccess, hasApprovalRole, hasManagerRole, hasAnyManagerRole, hasMonitoringReportRole, hasAnyMonitoringReportRole, hasStaffRole, flattenTreeNodeChildren, parseNodeKeys, filterNodeKeys, TreeAPI, RoutineAPI, DisposalAPI, RoutineServices, AssetsServices, AssetNameService, AssetBrandService, DisposalServices, FilterMatchMode, useLoadingStore, Presets, };
39
+ export { LibConfig, TSToastService, TSi18n, VueHtmlToPaper, Tooltip, Focus, DialogDamageLog, DialogMissingLog, DialogTransferLog, TSAnimation, TSAssetInfo, TSApproverInfo, TSBadge, TSBadgeGroup, TSBreadcrumb, TSButton, TSButtonAddByScan, TSButtonBulkAction, TSButtonCopy, TSButtonDownload, TSButtonFilter, TSButtonLogHistory, TSButtonRadio, TSButtonViewLog, TSButtonScan, TSButtonSearch, TSButtonSearchByScan, TSButtonSelectTree, TSButtonSelectUser, TSButtonSync, TSButtonToggle, TSCalendar, TSCard, TSCarousel, TSCheckbox, TSCustomColumn, TSDatePicker, TSDataTable, TSDayPicker, TSDialog, TSDialogApprovalList, TSDialogAssetNameDetail, TSDialogConfirm, TSDialogCoordinate, TSDialogDataLocked, TSDialogForm, TSDialogLinkedAsset, TSDialogPrintQR, TSDialogReportDamage, TSDialogReportMissing, TSDialogReportTag, TSDialogSelectAssetName, TSDialogSelectTree, TSDialogSelectAsset, TSDialogSelectUser, TSDisposalReport, TSDropdown, TSFailedLoad, TSFilterContainer, TSAssetFilters, TSFileUpload, TSForm, TSIcon, TSImage, TSImageCompressor, TSInlineMessage, TSInputBadge, TSInputCurrency, TSInputCurrencyReference, TSInputCoordinate, TSInputEmail, TSInputNumber, TSInputOTP, TSInputPassword, TSInputPhoneNumber, TSInputRangeNumber, TSInputText, TSInputSearch, TSInputURL, TSLoading, TSMenu, TSMultiSelect, TSOverlayPanel, TSPaginator, TSProgressBar, TSSteps, TSTabMenu, TSTagType, TSTextarea, TSTimeline, TSToast, TSTransactionRoles, TSTree, TSTreeSearchInput, TSUserWithIcon, TSValidatorMessage, handleTokenExpiration, exportToExcel, formatGoDate, formatDate, getUserLocale, formatAssetValue, formatDateReadable, formatUserName, formatVowelSoundLabel, getImageURL, downloadFile, isObjectEmpty, useToast, listenSidebarChanges, unListenSidebarChanges, getCurrency, formatCurrency, getHostName, getBaseURL, useI18n, useForm, useField, getNestedProperyValue, getSeverityByAssetStatus, clearStorage, forceLogout, reLogin, isValidJSONString, buildBodyParams, formatLogResponseData, googleMapLoader, getVisibleColumns, getTransactionRole, getSystemRole, hasSystemRole, hasTransactionRole, checkRouteAccess, hasApprovalRole, hasManagerRole, hasAnyManagerRole, hasMonitoringReportRole, hasAnyMonitoringReportRole, hasStaffRole, hasAccessToAssetDetail, flattenTreeNodeChildren, parseNodeKeys, filterNodeKeys, TreeAPI, RoutineAPI, DisposalAPI, RoutineServices, AssetsServices, AssetNameService, AssetBrandService, DataLockService, DisposalServices, FilterMatchMode, useLoadingStore, useAssetTableStore, eventBus, extendEventBus, Presets, ASSET_COL_FIELDS, assetValueColumns, assetValueColumnsWithDefault, customFieldColumns, defaultAssetColumns, parseAssetStaticFilter, };
@@ -0,0 +1,40 @@
1
+ import type { Config } from '@lottiefiles/dotlottie-web';
2
+
3
+ import { ClassComponent } from '../ts-helpers';
4
+
5
+ export interface AnimationDefaultConfig {
6
+ libPath: 'supplyasset' | 'workspace' | 'admin';
7
+ }
8
+
9
+ export interface AnimationProps {
10
+ animation: 'loading-table-fa' | 'no-data-fa';
11
+ /**
12
+ * @default true
13
+ */
14
+ autoplay?: boolean;
15
+ /**
16
+ * @default true
17
+ */
18
+ loop?: boolean;
19
+ /**
20
+ * Custom configurations for the animation
21
+ * Reference: https://developers.lottiefiles.com/docs/dotlottie-player/dotlottie-web/api/config/
22
+ */
23
+ customConfig?: Partial<Config>;
24
+ canvasStyle?: string;
25
+ }
26
+
27
+ /**
28
+ * **Animation**
29
+ *
30
+ * _Animation is a lottie animation wrapper._
31
+ *
32
+ * @group Component
33
+ */
34
+ declare class Animation extends ClassComponent<
35
+ AnimationProps,
36
+ unknown,
37
+ unknown
38
+ > {}
39
+
40
+ export default Animation;
@@ -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>;
@@ -0,0 +1,72 @@
1
+ import { DefineComponent } from 'vue';
2
+ import { FilterField } from '../../../types/filterField.type';
3
+ import { QueryParams } from '../DataTable/DataTable.vue.d';
4
+
5
+ export type AssetFilterFields =
6
+ | 'name'
7
+ | 'assetValue'
8
+ | 'category'
9
+ | 'brand'
10
+ | 'model'
11
+ | 'tagType'
12
+ | 'group'
13
+ | 'maintenanceAuditStatus'
14
+ | 'isTransactionable'
15
+ | 'audit'
16
+ | 'maintenance'
17
+ | 'measurement'
18
+ | 'lastScannedAt'
19
+ | 'warrantyStatus'
20
+ | 'customField';
21
+
22
+ export interface AssetFilterQuery extends QueryParams {
23
+ name?: string[];
24
+ brand?: string[];
25
+ model?: string[];
26
+ tagType?: string[];
27
+ maintenanceAuditStatus?: string[];
28
+ isTransactionable?: boolean[];
29
+ audit?: string[];
30
+ maintenance?: string[];
31
+ measurement?: string[];
32
+ warrantyStatus?: string[];
33
+ category?: string[];
34
+ group?: string[];
35
+ lastScannedAt?: number[];
36
+ linkedAssetCount?: number[];
37
+ }
38
+
39
+ export interface AssetFilterProps {
40
+ /**
41
+ * The filter object.
42
+ */
43
+ filter: AssetFilterQuery;
44
+ /*
45
+ * The columns set as visible by the user. Used to determine which filters to show.
46
+ */
47
+ visibleColumns: Record<string, boolean> | undefined;
48
+ /*
49
+ * The name of the table attached to the filter.
50
+ */
51
+ tableName: string;
52
+ fetchOptions: FilterField<QueryParams>['fetchOptionFn'];
53
+ /*
54
+ * The list of filter fields to show.
55
+ */
56
+ showFields?: AssetFilterFields[];
57
+ /*
58
+ * The list of filter fields to hide. This has a higher priority than `showFields`.
59
+ */
60
+ hideFields?: AssetFilterFields[];
61
+ }
62
+
63
+ export type AssetFilterEmits = {
64
+ /*
65
+ * Used to update the filter container's key.
66
+ */
67
+ updateFields: [];
68
+ };
69
+
70
+ declare const AssetFilters: DefineComponent<AssetFilterProps, AssetFilterEmits>;
71
+
72
+ export default AssetFilters;
@@ -0,0 +1,21 @@
1
+ import type { PropType as __PropType } from 'vue';
2
+ declare const _sfc_main: import("vue").DefineComponent<{
3
+ dataType: {
4
+ type: __PropType<"URL" | "Document">;
5
+ required: true;
6
+ };
7
+ rawValue: {
8
+ type: __PropType<string>;
9
+ required: true;
10
+ };
11
+ }, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
12
+ dataType: {
13
+ type: __PropType<"URL" | "Document">;
14
+ required: true;
15
+ };
16
+ rawValue: {
17
+ type: __PropType<string>;
18
+ required: true;
19
+ };
20
+ }>>, {}, {}>;
21
+ export default _sfc_main;
@@ -0,0 +1,7 @@
1
+ import { TableColumn } from '../../DataTable/DataTable.vue.d';
2
+ export declare const ASSET_COL_FIELDS: readonly ["assetImage", "name.nameWithSequence", "aliasName", "assetId", "group.name", "category.name", "brand.name", "model.name", "tagType", "measurement.name", "maintenanceStatus", "auditStatus", "transactions", "coordinates", "address", "warrantyStatus", "lastScannedAt", "linkedAssetCount"];
3
+ export type AssetColField = (typeof ASSET_COL_FIELDS)[number];
4
+ export declare const assetValueColumns: import("vue").Ref<TableColumn[], TableColumn[]>, assetValueColumnsWithDefault: import("vue").Ref<TableColumn[], TableColumn[]>, customFieldColumns: import("vue").Ref<TableColumn[], TableColumn[]>;
5
+ export declare const defaultAssetColumns: import("vue").ComputedRef<Record<"transactions" | "tagType" | "assetImage" | "name.nameWithSequence" | "aliasName" | "assetId" | "group.name" | "category.name" | "brand.name" | "model.name" | "measurement.name" | "maintenanceStatus" | "auditStatus" | "coordinates" | "address" | "warrantyStatus" | "lastScannedAt" | "linkedAssetCount", TableColumn & {
6
+ field: AssetColField;
7
+ }>>;
@@ -0,0 +1,7 @@
1
+ import { AssetFilterFields, AssetFilterQuery } from '../AssetFilters.vue.d';
2
+ export declare const COLUMN_FILTER_STATIC_MAP: Partial<Record<AssetFilterFields, string>>;
3
+ export type StaticAssetFilters = Record<string, {
4
+ value?: string[];
5
+ matchMode: string;
6
+ }>;
7
+ export declare const parseAssetStaticFilter: (filter: AssetFilterQuery) => StaticAssetFilters;
@@ -0,0 +1,13 @@
1
+ import { TableColumn } from '../../../../components/v2/DataTable/DataTable.vue.d';
2
+ import { FilterField } from '../../../../types/filterField.type';
3
+ import { Ref } from 'vue';
4
+ export interface AssetTableStore {
5
+ customFieldColumns: Ref<TableColumn[]>;
6
+ assetValueColumns: Ref<TableColumn[]>;
7
+ assetValueColumnsWithDefault: Ref<TableColumn[]>;
8
+ customFieldFilterFields: Ref<Omit<FilterField, 'fetchOptionFn'>[] | undefined>;
9
+ assetValueFilterFields: Ref<Omit<FilterField, 'fetchOptionFn'>[] | undefined>;
10
+ getFields: () => void;
11
+ }
12
+ declare const useAssetTableStore: () => AssetTableStore;
13
+ export default useAssetTableStore;
@@ -0,0 +1 @@
1
+ export { default as useAssetTableStore } from './assetTable.store';
@@ -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 {
@@ -71,6 +71,23 @@ export interface TSCalendarProps {
71
71
  * By default each field has preserved with its validator message, you don't need to worrying about the message.
72
72
  */
73
73
  validatorMessage?: string;
74
+ /**
75
+ * Validate value while the overlay is shown. This function is run on clicking the overlay's Apply button.
76
+ *
77
+ * @returns {boolean} - Return true if the value is valid.
78
+ */
79
+ overlayValidatorFunction?: (
80
+ value?: number | number[],
81
+ ) => Promise<boolean> | boolean;
82
+ /**
83
+ * Set the custom validator message to show on the overlay.
84
+ * Used alongside overlayValidatorFunction.
85
+ */
86
+ overlayValidatorMessage?: string;
87
+ /**
88
+ * Set a message to be shown below the date picker.
89
+ */
90
+ datePickerMessage?: string;
74
91
  /**
75
92
  * Set custom validation message for certain condition
76
93
  */
@@ -7,6 +7,10 @@ declare const _sfc_main: {
7
7
  extends: import("vue").DefineComponent<{}, {}, any>;
8
8
  inheritAttrs: boolean;
9
9
  props: {
10
+ datePickerMessage: {
11
+ type: StringConstructor;
12
+ default: undefined;
13
+ };
10
14
  today: null;
11
15
  };
12
16
  emits: string[];
@@ -0,0 +1,4 @@
1
+ declare const _sfc_main: import("vue").DefineComponent<any, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, any, string, import("vue").PublicProps, Readonly<any>, {} | {
2
+ [x: string]: any;
3
+ }, {}>;
4
+ export default _sfc_main;
@@ -1,8 +1,27 @@
1
+ import { TableColumn } from '../DataTable/DataTable.vue.d';
1
2
  import { ClassComponent } from '../ts-helpers';
2
3
 
4
+ export type DragableColumn = TableColumn & { order?: number };
5
+
6
+ export interface DataTableColumnConfig {
7
+ field: string;
8
+ pinned: boolean;
9
+ width?: number | string;
10
+ visible: boolean;
11
+ }
12
+
13
+ export type CustomColumnEmits = {
14
+ 'update:visibleColumns': [columns: TableColumn[]];
15
+ 'update:reorderColumns': [columns: TableColumn[]];
16
+ };
17
+
3
18
  export interface CustomColumnProps {
4
19
  tableId: string;
20
+ tableKey?: string;
21
+ tableName?: string;
22
+ tableData?: Data[];
5
23
  defaultColumns: TableColumn[];
24
+ defaultReorderColumns?: TableColumn[];
6
25
  visibleColumns: TableColumn[];
7
26
  /**
8
27
  * The maximum column count allowed
@@ -12,7 +31,10 @@ export interface CustomColumnProps {
12
31
  type?: 'menu' | 'flat';
13
32
  }
14
33
 
15
- declare class CustomColumn extends ClassComponent<CustomColumnProps> {
34
+ declare class CustomColumn extends ClassComponent<
35
+ CustomColumnProps,
36
+ CustomColumnEmits
37
+ > {
16
38
  /**
17
39
  * Method to show custom column menu.
18
40
  */
@@ -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;
@@ -5,15 +5,23 @@ import { ClassComponent } from '../ts-helpers';
5
5
 
6
6
  type Data = Record<string, any>;
7
7
 
8
- export type QueryParams = {
9
- [key: string]: unknown;
10
- };
8
+ export type QueryParams = Partial<Record<string, unknown>>;
11
9
 
12
- export type FetchResponse = {
13
- data: Data[];
10
+ export type FetchResponse<T = Data> = {
11
+ data: T[];
14
12
  totalRecords: number;
15
13
  };
16
14
 
15
+ export type TableFetchResponse<T = Data> = {
16
+ message: string;
17
+ data: FetchResponse<T>;
18
+ };
19
+
20
+ export type ShortFetchResponse<T = Data> = {
21
+ message: string;
22
+ data: T;
23
+ };
24
+
17
25
  export type TableCellComponent = {
18
26
  component: string | Component;
19
27
  props?: object;
@@ -149,12 +157,18 @@ export type TableColumn = {
149
157
  reorderable?: boolean;
150
158
  /**
151
159
  * Make the column cannot reordered by disabled dragability.
160
+ * Unlike `reorderable`, the column will still appear in the column visibility
161
+ * overlay if this is set to false.
152
162
  */
153
163
  dragable?: boolean;
164
+ /**
165
+ * Whether the column is pinned to the left of the table.
166
+ */
167
+ pinned?: boolean;
154
168
  fixed?: boolean;
155
169
  visible?: boolean;
156
170
  /**
157
- * Wether the column is checked by default, only for Custom Report Table
171
+ * Whether the column is checked by default
158
172
  * @default true
159
173
  */
160
174
  checkedByDefault?: boolean;
@@ -288,6 +302,11 @@ export interface DataTableSelectAllChangeEvent {
288
302
  }
289
303
 
290
304
  export interface TSDataTableProps {
305
+ /**
306
+ * Index of the first row to be displayed.
307
+ * @defaultValue 0
308
+ */
309
+ first?: number;
291
310
  /**
292
311
  * Optional property to set a unique name for the table. This name will be used as part of the unique table ID.
293
312
  *
@@ -463,6 +482,15 @@ export interface TSDataTableProps {
463
482
  * Total disabled rows in table (used for synchronizing with bulk action button)
464
483
  */
465
484
  totalDisabledRows?: number;
485
+ /**
486
+ * A function that takes the row data as a parameter and returns a string to apply a particular class for the row.
487
+ * The return value is added to the row's :classes array (see Vue.js class bindings).
488
+ */
489
+ rowClass?: (data: any) => string | object | undefined;
490
+ /**
491
+ * An array of arrays to display in the exported excel file before the main data.
492
+ */
493
+ preContentData?: (string | number)[][];
466
494
  }
467
495
 
468
496
  export type TSDataTableEmits = {
@@ -530,6 +558,16 @@ export type TSDataTableEmits = {
530
558
  * This will update the `selectedData` value whenever a row is selected or deselected.
531
559
  */
532
560
  'update:selectedData': [datas: Data[]];
561
+ /**
562
+ * Emitted when the rows changes.
563
+ * @param {number} value - New value.
564
+ */
565
+ 'update:rows': [value: number];
566
+ /**
567
+ * Emitted when the first changes.
568
+ * @param {number} value - New value.
569
+ */
570
+ 'update:first': [value: number];
533
571
  };
534
572
 
535
573
  declare class DataTable extends ClassComponent<
@@ -38,6 +38,27 @@ export interface TSDatePickerProps {
38
38
  * By default each field has preserved with its validator message, you don't need to worrying about the message.
39
39
  */
40
40
  errorMessage?: { empty: string };
41
+ /**
42
+ * Whether multiple date or date range model value.
43
+ *
44
+ * @default 'range'
45
+ */
46
+ selectionMode?: 'range' | 'multiple';
47
+ /**
48
+ * Validate value while the overlay is shown. This function is run on clicking the dates in the overlay.
49
+ *
50
+ * @returns {boolean} - Return true if the value is valid.
51
+ */
52
+ overlayValidatorFunction?: (value?: number[]) => Promise<boolean> | boolean;
53
+ /**
54
+ * Set the custom validator message to show on the overlay.
55
+ * Used alongside overlayValidatorFunction.
56
+ */
57
+ overlayValidatorMessage?: string;
58
+ /**
59
+ * Set a message to be shown on top of the overlay.
60
+ */
61
+ overlayMessage?: string;
41
62
  }
42
63
 
43
64
  /**
@@ -45,6 +66,8 @@ export interface TSDatePickerProps {
45
66
  */
46
67
  export type TSDatePickerEmits = {
47
68
  'update:modelValue': [days?: number[]];
69
+ // Emits when overlay is hidden
70
+ 'hide': [];
48
71
  };
49
72
 
50
73
  /**
@@ -38,6 +38,27 @@ export interface TSDayPickerProps {
38
38
  * By default each field has preserved with its validator message, you don't need to worrying about the message.
39
39
  */
40
40
  errorMessage?: { empty: string };
41
+ /**
42
+ * Whether multiple date or date range model value.
43
+ *
44
+ * @default 'range'
45
+ */
46
+ selectionMode?: 'range' | 'multiple';
47
+ /**
48
+ * Validate value while the overlay is shown. This function is run on clicking the days in the overlay.
49
+ *
50
+ * @returns {boolean} - Return true if the value is valid.
51
+ */
52
+ overlayValidatorFunction?: (value?: number[]) => Promise<boolean> | boolean;
53
+ /**
54
+ * Set the custom validator message to show on the overlay.
55
+ * Used alongside overlayValidatorFunction.
56
+ */
57
+ overlayValidatorMessage?: string;
58
+ /**
59
+ * Set a message to be shown on top of the overlay.
60
+ */
61
+ overlayMessage?: string;
41
62
  }
42
63
 
43
64
  /**
@@ -45,6 +66,8 @@ export interface TSDayPickerProps {
45
66
  */
46
67
  export type TSDayPickerEmits = {
47
68
  'update:modelValue': [days?: number[]];
69
+ // Emits when overlay is hidden
70
+ 'hide': [];
48
71
  };
49
72
 
50
73
  /**
@@ -232,6 +232,7 @@ export interface DialogProps {
232
232
  * @defaultValue true
233
233
  */
234
234
  autoZIndex?: boolean | undefined;
235
+ maskClass?: string | string[];
235
236
  /**
236
237
  * Position of the dialog.
237
238
  * @defaultValue center