@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 +36 -12
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/dist/iui.css +1 -1
- package/package.json +1 -1
- package/rollup.config.js +1 -5
- package/src/components/Button/Button.tsx +1 -1
- package/src/components/Button/SplitButton.tsx +91 -0
- package/src/components/Dialog/components/DialogFooter.tsx +5 -1
- package/src/components/List/List.tsx +2 -2
- package/src/components/Pullover/Pullover.tsx +10 -2
- package/src/components/Table/Table.tsx +1 -1
- package/src/components/Table/components/sort/TableSort.tsx +19 -1
- package/src/components/Table/components/templates/TableTemplates.tsx +60 -43
- package/src/components/Table/components/templates/components/CreateTemplateDialog.tsx +41 -0
- package/src/index.ts +2 -0
- package/src/styles/App.scss +1 -0
- package/src/styles/common/maps/_buttonMaps.scss +42 -0
- package/src/styles/components/_button.scss +11 -50
- package/src/styles/components/_buttonSplit.scss +90 -0
- package/src/styles/components/_list.scss +1 -0
- package/src/styles/components/_table.scss +6 -6
- package/src/styles/variables/_variables.scss +1 -0
- package/src/types/ITable.ts +10 -23
- package/src/utils/i18n/i18nIUICyrilic.ts +1 -1
- package/src/utils/i18n/i18nIUILatin.ts +7 -5
- package/src/utils/i18n/i18nIUIMe.ts +1 -1
- package/tsconfig.json +2 -0
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
|
|
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 };
|