@inceptionbg/iui 1.0.163 → 1.0.165

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/index.d.ts CHANGED
@@ -130,6 +130,11 @@ interface ITable {
130
130
  inputFocusRef?: RefObject<any>;
131
131
  keepEditOnSubmit?: boolean;
132
132
  };
133
+ templates?: {
134
+ identifier: string;
135
+ data: IReportTemplateData;
136
+ onClearFilters: () => void;
137
+ };
133
138
  }
134
139
  interface ITableColumn {
135
140
  id: string;
@@ -203,6 +208,10 @@ interface ITableSort {
203
208
  asc: string;
204
209
  desc: string;
205
210
  }
211
+ interface ITableColumnsData {
212
+ columns: ITableColumn[];
213
+ setColumns: (columns: ITableColumn[]) => void;
214
+ }
206
215
  interface ITableSelectedActions {
207
216
  label: string;
208
217
  onClick: (selected: Set<string>) => void;
@@ -262,6 +271,32 @@ interface ITableEditRow {
262
271
  defaultDataValue?: any;
263
272
  inputFocusRef?: RefObject<any>;
264
273
  }
274
+ interface IReportTemplate {
275
+ uuid: string;
276
+ name: string;
277
+ identifier: string;
278
+ filterValues?: IReportTemplateFilterValue[];
279
+ columns: string[];
280
+ organization?: ISimpleObject;
281
+ subsystem?: string;
282
+ sorts?: string[];
283
+ isPrivate?: boolean;
284
+ isDefault?: boolean;
285
+ order?: number;
286
+ createdAt?: string;
287
+ createdBy?: ISimpleObject;
288
+ }
289
+ interface IReportTemplateFilterValue {
290
+ filter: string;
291
+ value: string;
292
+ name?: string;
293
+ type: 'STRING' | 'ARRAY' | 'OBJECT' | 'BOOLEAN';
294
+ }
295
+ interface IReportTemplateData {
296
+ searchData: IAnyObject;
297
+ visibleColumns?: string[];
298
+ sorts?: string[];
299
+ }
265
300
 
266
301
  interface ITreeItem {
267
302
  uuid: string;
@@ -640,7 +675,7 @@ interface Props$9 {
640
675
  className?: string;
641
676
  children?: ReactNode;
642
677
  }
643
- declare const MenuItem: FC<Props$9>;
678
+ declare const MenuItem: react.ForwardRefExoticComponent<Props$9 & react.RefAttributes<HTMLDivElement>>;
644
679
 
645
680
  interface Props$8 {
646
681
  item: any;
@@ -819,13 +854,20 @@ declare const convertBooleanObjectToArray: (obj: {
819
854
  declare const convertArrayToBooleanObject: (arr?: string[]) => {
820
855
  [x: string]: boolean;
821
856
  };
822
- declare const getActiveFilterNumber: (obj: IAnyObject) => number;
823
- declare const getPrintColumns: (tableCols: ITableColumn[]) => string[];
824
- declare const getVisibleColumnsIds: (tableCols: ITableColumn[], isPrint?: boolean) => string[];
825
857
  declare const deepCopy: (el: any[] | object) => any;
826
858
  declare const areStringArraysEqual: (arr1: string[], arr2: string[]) => boolean;
827
859
  declare const compareArrayItemsIndex: (array: any[] | readonly any[], item1: any, comparison: 'greaterThen' | 'greaterThenOrEqualTo' | 'lessThen' | 'lessThenOrEqualTo', item2: any) => boolean;
828
860
 
861
+ declare const getActiveFilterNumber: (obj: IAnyObject) => number;
862
+ declare const getVisibleColumnsIds: (tableCols: ITableColumn[], isPrint?: boolean) => string[];
863
+ declare const getPrintColumns: (tableCols: ITableColumn[]) => string[];
864
+ declare const setTemplateData: ({ template, columnsData, setFilters, setSort, }: {
865
+ template: IReportTemplate;
866
+ columnsData?: ITableColumnsData | undefined;
867
+ setFilters?: ((filters: IAnyObject) => void) | undefined;
868
+ setSort?: ((sort: string) => void) | undefined;
869
+ }) => void;
870
+
829
871
  declare const rootDir: HTMLElement;
830
872
 
831
873
  declare const maxChar: (str?: string, maxLength?: number) => string;
@@ -904,6 +946,17 @@ declare const i18nCommonLatin: {
904
946
  SaveXlsx: string;
905
947
  SelectedColumns: string;
906
948
  Sort: string;
949
+ Templates: string;
950
+ SelectTemplate: string;
951
+ TemplateList: string;
952
+ PrivateTemplate: string;
953
+ DefaultTemplate: string;
954
+ RemoveFiltersAndLook: string;
955
+ CreateTemplateLong: string;
956
+ CreateDefaultTemplate: string;
957
+ CreateTemplate: string;
958
+ DeleteTemplateDesc: string;
959
+ DeleteTemplateTitle: string;
907
960
  CharMin: string;
908
961
  CharRange: string;
909
962
  CharNumber: string;
@@ -957,6 +1010,7 @@ declare const i18nCommonLatin: {
957
1010
  AddressBook: string;
958
1011
  Contacts: string;
959
1012
  EmailAddress: string;
1013
+ ShowOnInvoice: string;
960
1014
  Bank: string;
961
1015
  BankAccount: string;
962
1016
  BankAccounts: string;
@@ -1291,17 +1345,10 @@ declare const i18nCommonCyrilic: {
1291
1345
  HouseNumber: string;
1292
1346
  PhoneNumber: string;
1293
1347
  Website: string;
1294
- AddLegalEntity: string;
1295
- AddPartner: string;
1296
1348
  AddressBook: string;
1297
1349
  Contacts: string;
1298
- DeleteContactPersonConfirmation: string;
1299
- DeleteContactPersonTitle: string;
1300
- DeletePartnerNoteConfirmation: string;
1301
- DeletePartnerNoteTitle: string;
1302
1350
  EmailAddress: string;
1303
- FetchFromNbs: string;
1304
- GetDataFromNbs: string;
1351
+ ShowOnInvoice: string;
1305
1352
  Bank: string;
1306
1353
  BankAccount: string;
1307
1354
  BankAccounts: string;
@@ -1524,4 +1571,9 @@ declare const i18nCommonCyrilic: {
1524
1571
 
1525
1572
  declare const useHideZendesk: () => void;
1526
1573
 
1527
- export { Accordions, Alert, Button, Checkbox, Collapse, ConditionalWrapper, CurrencyInput, Dashboard, DashboardWidget, DateInput, DeleteItemDialog, Dialog, DotBadge, FilterItem, FormWrapper, FullScreenLoader, IAnyObject, IBooleanObject, IError, IFormWrapper, IPagination, ISelectData, IServerSidePagination, ISimpleObject, ISimpleObjectWithCode, IStringObject, ITab, ITable, ITableColumn, ITableDataItem, ITableEditRow, ITableFilter, ITableFilterData, ITableFilterItem, ITableSort, ITreeItem, IValueLabel, IconButton, ItemActionsMenu, ItemEditOptionsButtons, LargeTextInput, LazyLoader, Loader, Menu, MenuItem, NotificationBadge, NumberInput, PageWrapper, PasswordInput, PillBadge, Radio, RadioLarge, SearchInput, Select, SelectAsyncPaginate, SelectCreatable, SetTableFilter, Table, TableEditRow, TableFooter, Tabs, TextInput, Tooltip, Tree, areStringArraysEqual, calculateFilesSize, checkIfExpired, compareArrayItemsIndex, convertArrayToBooleanObject, convertBooleanObjectToArray, dataURLtoFile, dateAddDays, deepCopy, deleteEmptyProps, deleteEmptyPropsIncludingArray, deleteProps, deletePropsThatEndsWith, downloadDocumentFile, formatCurrency, formatCurrencyNoDecimals, formatDate, formatDateAndTime, formatDateYMD, formatDecimalNumber, formatTime, formatYearMonth, getActiveFilterNumber, getActiveOrgUuid, getBase64FromFile, getBase64FromUrl, getCurrentDateFormatted, getCurrentDateFormattedYMD, getDaysLeft, getDefaultOrgUuid, getExtensionFromFilename, getFileFromUrl, getInputHelperText, getInputMinMaxPattern, getPrintColumns, getVisibleColumnsIds, i18nCommonCyrilic, i18nCommonLatin, inputPattern, lsGet, lsRemove, lsSet, maxChar, parseUrlSearch, rootDir, rotateBase64Image, setActiveOrgUuid, setDefaultOrgUuid, sizeInBytesPretty, splitBase64File, toastError, toastSuccess, useHideZendesk };
1574
+ declare const useDefaultTemplate: (identifier?: string) => {
1575
+ defaultTemplate: IReportTemplate | null;
1576
+ isLoadingDefaultTemplate: boolean;
1577
+ };
1578
+
1579
+ export { Accordions, Alert, Button, Checkbox, Collapse, ConditionalWrapper, CurrencyInput, Dashboard, DashboardWidget, DateInput, DeleteItemDialog, Dialog, DotBadge, FilterItem, FormWrapper, FullScreenLoader, IAnyObject, IBooleanObject, IError, IFormWrapper, IPagination, ISelectData, IServerSidePagination, ISimpleObject, ISimpleObjectWithCode, IStringObject, ITab, ITable, ITableColumn, ITableDataItem, ITableEditRow, ITableFilter, ITableFilterData, ITableFilterItem, ITableSort, ITreeItem, IValueLabel, IconButton, ItemActionsMenu, ItemEditOptionsButtons, LargeTextInput, LazyLoader, Loader, Menu, MenuItem, NotificationBadge, NumberInput, PageWrapper, PasswordInput, PillBadge, Radio, RadioLarge, SearchInput, Select, SelectAsyncPaginate, SelectCreatable, SetTableFilter, Table, TableEditRow, TableFooter, Tabs, TextInput, Tooltip, Tree, areStringArraysEqual, calculateFilesSize, checkIfExpired, compareArrayItemsIndex, convertArrayToBooleanObject, convertBooleanObjectToArray, dataURLtoFile, dateAddDays, deepCopy, deleteEmptyProps, deleteEmptyPropsIncludingArray, deleteProps, deletePropsThatEndsWith, downloadDocumentFile, formatCurrency, formatCurrencyNoDecimals, formatDate, formatDateAndTime, formatDateYMD, formatDecimalNumber, formatTime, formatYearMonth, getActiveFilterNumber, getActiveOrgUuid, getBase64FromFile, getBase64FromUrl, getCurrentDateFormatted, getCurrentDateFormattedYMD, getDaysLeft, getDefaultOrgUuid, getExtensionFromFilename, getFileFromUrl, getInputHelperText, getInputMinMaxPattern, getPrintColumns, getVisibleColumnsIds, i18nCommonCyrilic, i18nCommonLatin, inputPattern, lsGet, lsRemove, lsSet, maxChar, parseUrlSearch, rootDir, rotateBase64Image, setActiveOrgUuid, setDefaultOrgUuid, setTemplateData, sizeInBytesPretty, splitBase64File, toastError, toastSuccess, useDefaultTemplate, useHideZendesk };