@inceptionbg/iui 2.0.12 → 2.0.13

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
@@ -13,7 +13,7 @@ import * as react_jsx_runtime from 'react/jsx-runtime';
13
13
 
14
14
  type IButtonColor = 'primary' | 'neutral' | 'danger';
15
15
  type IButtonVariant = 'solid' | 'outlined' | 'simple';
16
- interface IButtonProps {
16
+ interface IButtonProps$1 {
17
17
  label: string;
18
18
  icon?: IconDefinition;
19
19
  iconEnd?: IconDefinition;
@@ -28,7 +28,7 @@ interface IButtonProps {
28
28
  buttonProps?: ButtonHTMLAttributes<HTMLButtonElement>;
29
29
  ref?: Ref<HTMLButtonElement>;
30
30
  }
31
- declare const Button: FC<IButtonProps>;
31
+ declare const Button: FC<IButtonProps$1>;
32
32
 
33
33
  interface IFormWrapper {
34
34
  isLoading: boolean;
@@ -118,6 +118,13 @@ interface ITable<T = unknown> {
118
118
  };
119
119
  filterData?: ITableFilterData;
120
120
  sortData?: ITableSortData;
121
+ templateData?: {
122
+ identifier: string;
123
+ setSearch?: (search: string) => void;
124
+ items: IReportTemplate[];
125
+ isLoading?: boolean;
126
+ allowPublicCreate?: boolean;
127
+ };
121
128
  printData?: IPrintData<T>;
122
129
  sumRows?: ITableDataItem[];
123
130
  editable?: ITableEdit;
@@ -141,14 +148,6 @@ interface ITable<T = unknown> {
141
148
  className?: string;
142
149
  rowHeight?: 'xs' | 's' | 'm';
143
150
  maxHeight?: string;
144
- templates?: {
145
- identifier: string;
146
- setSearch?: (search: string) => void;
147
- items: {
148
- uuid: string;
149
- name: string;
150
- }[];
151
- };
152
151
  }
153
152
  interface ITableColumn {
154
153
  id: string;
@@ -596,6 +595,23 @@ interface IIconButtonProps {
596
595
  }
597
596
  declare const IconButton: FC<IIconButtonProps>;
598
597
 
598
+ type ISplitAction = Pick<IMenuItem, 'label' | 'onClick'> & Partial<Pick<IMenuItem, 'icon' | 'active' | 'disabled' | 'hidden'>>;
599
+ interface IButtonProps {
600
+ label: string;
601
+ icon?: IconDefinition;
602
+ onClick?: MouseEventHandler<HTMLButtonElement>;
603
+ splitActions?: ISplitAction[];
604
+ menuPlacement?: IMenuPlacement;
605
+ variant?: 'solid' | 'outlined';
606
+ size?: 'xs' | 's' | 'm' | 'l';
607
+ disabled?: boolean;
608
+ type?: ButtonHTMLAttributes<HTMLButtonElement>['type'];
609
+ className?: string;
610
+ buttonProps?: ButtonHTMLAttributes<HTMLButtonElement>;
611
+ ref?: Ref<HTMLButtonElement>;
612
+ }
613
+ declare const SplitButton: FC<IButtonProps>;
614
+
599
615
  declare const Dashboard: FC<{
600
616
  children: ReactNode;
601
617
  }>;
@@ -629,6 +645,7 @@ interface IDialogFooterActions {
629
645
  color?: IButtonColor;
630
646
  isKeyboardDisabled?: boolean;
631
647
  type?: ButtonHTMLAttributes<HTMLButtonElement>['type'];
648
+ splitActions?: ISplitAction[];
632
649
  };
633
650
  cancelButton?: {
634
651
  label?: string;
@@ -873,7 +890,7 @@ interface IListItem {
873
890
  }
874
891
 
875
892
  interface Props$a {
876
- items: IListItem[];
893
+ items?: IListItem[];
877
894
  }
878
895
  declare const List: FC<Props$a>;
879
896
 
@@ -980,6 +997,7 @@ interface Props$2 {
980
997
  };
981
998
  isLoading?: boolean;
982
999
  onFormSubmit?: () => void;
1000
+ onContentClick?: () => void;
983
1001
  onCloseCallback?: () => void;
984
1002
  footer?: IDialogFooterActions;
985
1003
  size?: 'vw25' | 'vw50' | 'vw75' | 'vw100' | 'w500' | 'w600';
@@ -1251,6 +1269,12 @@ declare const i18nIUILatin: {
1251
1269
  Templates: string;
1252
1270
  ApplyTemplate: string;
1253
1271
  ResetTemplate: string;
1272
+ DeleteTemplate: string;
1273
+ CreateTemplateLong: string;
1274
+ CreateDefaultTemplate: string;
1275
+ CreateTemplate: string;
1276
+ TemplateName: string;
1277
+ PublicTemplate: string;
1254
1278
  FastLinks: string;
1255
1279
  CharMin: string;
1256
1280
  CharRange: string;
@@ -1448,5 +1472,5 @@ declare const useIsMenuOpen: () => {
1448
1472
 
1449
1473
  declare const usePopupControl: () => IPopupControl;
1450
1474
 
1451
- export { Accordions, Alert, Button, Checkbox, Collapse, ConditionalWrapper, CurrencyInput, Dashboard, DashboardWidget, DateInput, Dialog, DotBadge, FastLinksWidget, FormWrapper, FullScreenLoader, IconButton, LazyLoader, List, Loader, Menu, MenuItem, NotificationBadge, NumberInput, PageLayout, PasswordInput, PillBadge, ProgressBar, Pullover, Radio, RadioLarge, Router, SearchInput, Select, SelectAsyncPaginate, SelectCreatable, Table, Tabs, TextAreaInput, TextInput, TimeInput, Tooltip, Tree, areStringArraysEqual, calculateFilesSize, checkIfExpired, compareArrayItemsIndex, convertArrayToBooleanObject, convertBooleanObjectToArray, convertReportTemplateFilterToSearch, convertSearchToReportTemplateFilter, dataURLtoFile, dateAddDays, deepCopy, deleteEmptyProps, deleteEmptyPropsIncludingArray, deleteProps, deletePropsThatEndsWith, downloadDocumentFile, downloadFile, formatCurrency, formatCurrencyNoDecimals, formatDate, formatDateAndTime, formatDateYMD, formatDecimalNumber, formatTime, formatYearMonth, getActiveFilterNumber, getActiveOrgUuid, getBase64FromFile, getBase64FromUrl, getCurrentDateFormatted, getCurrentDateFormattedYMD, getDaysLeft, getDefaultOrgUuid, getExtensionFromFilename, getFileFromUrl, getInputHelperText, getInputMinMaxPattern, getPrintColumns, getVisibleColumnsIds, i18nIUICyrilic, i18nIUILatin, i18nIUIMe, inputPattern, intersectArrays, lsGet, lsRemove, lsSet, maxChar, parseUrlSearch, rootDir, rotateBase64Image, setActiveOrgUuid, setDefaultOrgUuid, setTemplateData, sizeInBytesPretty, splitBase64File, tableCustomLimit1000, toastError, toastSuccess, useDefaultTemplate, useHideZendesk, useIsMenuOpen, useOnEsc, usePopupControl, useTableEdit, useTableFilterFields, useTablePagination, useTablePrint, useTableSearch, useTableSelect, useTableSort };
1475
+ export { Accordions, Alert, Button, Checkbox, Collapse, ConditionalWrapper, CurrencyInput, Dashboard, DashboardWidget, DateInput, Dialog, DotBadge, FastLinksWidget, FormWrapper, FullScreenLoader, IconButton, LazyLoader, List, Loader, Menu, MenuItem, NotificationBadge, NumberInput, PageLayout, PasswordInput, PillBadge, ProgressBar, Pullover, Radio, RadioLarge, Router, SearchInput, Select, SelectAsyncPaginate, SelectCreatable, SplitButton, Table, Tabs, TextAreaInput, TextInput, TimeInput, Tooltip, Tree, areStringArraysEqual, calculateFilesSize, checkIfExpired, compareArrayItemsIndex, convertArrayToBooleanObject, convertBooleanObjectToArray, convertReportTemplateFilterToSearch, convertSearchToReportTemplateFilter, dataURLtoFile, dateAddDays, deepCopy, deleteEmptyProps, deleteEmptyPropsIncludingArray, deleteProps, deletePropsThatEndsWith, downloadDocumentFile, downloadFile, formatCurrency, formatCurrencyNoDecimals, formatDate, formatDateAndTime, formatDateYMD, formatDecimalNumber, formatTime, formatYearMonth, getActiveFilterNumber, getActiveOrgUuid, getBase64FromFile, getBase64FromUrl, getCurrentDateFormatted, getCurrentDateFormattedYMD, getDaysLeft, getDefaultOrgUuid, getExtensionFromFilename, getFileFromUrl, getInputHelperText, getInputMinMaxPattern, getPrintColumns, getVisibleColumnsIds, i18nIUICyrilic, i18nIUILatin, i18nIUIMe, inputPattern, intersectArrays, lsGet, lsRemove, lsSet, maxChar, parseUrlSearch, rootDir, rotateBase64Image, setActiveOrgUuid, setDefaultOrgUuid, setTemplateData, sizeInBytesPretty, splitBase64File, tableCustomLimit1000, toastError, toastSuccess, useDefaultTemplate, useHideZendesk, useIsMenuOpen, useOnEsc, usePopupControl, useTableEdit, useTableFilterFields, useTablePagination, useTablePrint, useTableSearch, useTableSelect, useTableSort };
1452
1476
  export type { DeepPartial, IAlertProps, IAnyObject, IBooleanObject, IError, IFormWrapper, IGetPrintData, IHeaderAction, IHeaderUserMenuProps, IKeyboardAction, IMenuItem, IMenuPlacement, IPagination, IPaginationControl, IPopupControl, IRoute, ISelectData, ISidebarItem, ISimpleObject, ISimpleObjectWithCode, IStringObject, ITab, ITable, ITableColumn, ITableDataItem, ITableDataItemCells, ITableEdit, ITableFilter, ITableFilterData, ITableFilterItem, ITableSort, ITreeItem, IValueLabel, PopupControlRef };