tsv2-library 0.1.14 → 0.1.16

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.
@@ -1,6 +1,7 @@
1
1
  import type { App } from 'vue';
2
2
  import LibConfig from '../node_modules/primevue/config';
3
3
  import TSToastService from '../node_modules/primevue/toastservice';
4
+ import { FilterMatchMode } from '../node_modules/primevue/api';
4
5
  import { API as TreeAPI } from './services/tree.service';
5
6
  import { handleTokenExpiration, exportToExcel, formatDate, formatDateReadable, formatUserName, formatVowelSoundLabel, getImageURL, isObjectEmpty, useToast, listenSidebarChanges, unListenSidebarChanges, getCurrency, formatCurrency } from './utils';
6
7
  import { flattenTreeNodeChildren, parseNodeKeys, filterNodeKeys } from './components/v2/Tree/helpers';
@@ -13,4 +14,4 @@ declare const _default: {
13
14
  install: (app: App) => void;
14
15
  };
15
16
  export default _default;
16
- export { LibConfig, TSToastService, VueHtmlToPaper, Tooltip, Focus, TSAssetInfo, TSBadge, TSBadgeGroup, TSBreadcrumb, TSButton, TSButtonBulkAction, TSButtonDownload, TSButtonFilter, TSButtonLogHistory, TSButtonRadio, TSButtonViewLog, TSButtonScan, TSButtonSearch, TSButtonSearchByScan, TSButtonSelectTree, TSButtonSelectUser, TSButtonSync, TSButtonToggle, TSCalendar, TSCard, TSCarousel, TSCheckbox, TSDataTable, TSDialog, TSDialogAssetNameDetail, TSDialogConfirm, TSDialogForm, TSDialogLinkedAsset, TSDialogPrintQR, TSDialogReportDamage, TSDialogReportMissing, TSDialogReportTag, TSDialogSelectTree, TSDialogSelectUser, TSDropdown, TSFilterContainer, TSFileUpload, TSForm, TSIcon, TSImage, TSImageCompressor, TSInlineMessage, TSInputBadge, TSInputCurrency, TSInputEmail, TSInputNumber, TSInputOTP, TSInputPassword, TSInputPhoneNumber, TSInputRangeNumber, TSInputText, TSInputSearch, TSInputURL, TSLoading, TSMenu, TSMultiSelect, TSOverlayPanel, TSPaginator, TSSteps, TSTabMenu, TSTagType, TSTextarea, TSToast, TSTransactionRoles, TSTree, TSTreeSearchInput, TSValidatorMessage, handleTokenExpiration, exportToExcel, formatDate, formatDateReadable, formatUserName, formatVowelSoundLabel, getImageURL, isObjectEmpty, useToast, listenSidebarChanges, unListenSidebarChanges, getCurrency, formatCurrency, flattenTreeNodeChildren, parseNodeKeys, filterNodeKeys, TreeAPI, useLoadingStore, };
17
+ export { LibConfig, TSToastService, VueHtmlToPaper, Tooltip, Focus, TSAssetInfo, TSBadge, TSBadgeGroup, TSBreadcrumb, TSButton, TSButtonBulkAction, TSButtonDownload, TSButtonFilter, TSButtonLogHistory, TSButtonRadio, TSButtonViewLog, TSButtonScan, TSButtonSearch, TSButtonSearchByScan, TSButtonSelectTree, TSButtonSelectUser, TSButtonSync, TSButtonToggle, TSCalendar, TSCard, TSCarousel, TSCheckbox, TSDataTable, TSDialog, TSDialogAssetNameDetail, TSDialogConfirm, TSDialogForm, TSDialogLinkedAsset, TSDialogPrintQR, TSDialogReportDamage, TSDialogReportMissing, TSDialogReportTag, TSDialogSelectTree, TSDialogSelectUser, TSDropdown, TSFilterContainer, TSFileUpload, TSForm, TSIcon, TSImage, TSImageCompressor, TSInlineMessage, TSInputBadge, TSInputCurrency, TSInputEmail, TSInputNumber, TSInputOTP, TSInputPassword, TSInputPhoneNumber, TSInputRangeNumber, TSInputText, TSInputSearch, TSInputURL, TSLoading, TSMenu, TSMultiSelect, TSOverlayPanel, TSPaginator, TSSteps, TSTabMenu, TSTagType, TSTextarea, TSToast, TSTransactionRoles, TSTree, TSTreeSearchInput, TSValidatorMessage, handleTokenExpiration, exportToExcel, formatDate, formatDateReadable, formatUserName, formatVowelSoundLabel, getImageURL, isObjectEmpty, useToast, listenSidebarChanges, unListenSidebarChanges, getCurrency, formatCurrency, flattenTreeNodeChildren, parseNodeKeys, filterNodeKeys, TreeAPI, FilterMatchMode, useLoadingStore, };
@@ -1,21 +1,29 @@
1
- export type TransactionRoles = {
1
+ export type TransactionRoles = Addon & {
2
2
  borrowAssign: boolean;
3
- audit: boolean;
4
- repairTicketing: boolean;
3
+ transfer: boolean;
5
4
  disposal: boolean;
5
+ };
6
+
7
+ export type Addon = {
8
+ repairTicketing: boolean;
6
9
  maintenance: boolean;
7
10
  tracking: boolean;
8
- transfer: boolean;
11
+ audit: boolean;
9
12
  };
10
13
 
11
14
  export type RoleData = {
12
15
  [key: string]: unknown;
13
- transactionRoles: TransactionRoles;
16
+ transactionRoles?: TransactionRoles;
17
+ addOn?: Addon;
14
18
  };
15
19
 
16
20
  export interface TransactionRolesProps {
17
21
  asset?: RoleData;
18
- user?: RoleData;
22
+ user?: Omit<RoleData, Addon>;
23
+ /**
24
+ * @default transaction
25
+ */
26
+ type?: 'transaction' | 'addon';
19
27
  }
20
28
 
21
29
  /**