@acvl/frontend-components 0.0.59 → 0.0.61
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/cjs/index.js +1 -1
- package/dist/cjs/index.js.map +1 -1
- package/dist/cjs/types/src/components/v1/forms/utils.d.ts +1 -0
- package/dist/cjs/types/src/components/v2/layout/pages/DetailPage/index.d.ts +1 -0
- package/dist/cjs/types/src/components/v2/lib/hooks/index.d.ts +1 -0
- package/dist/cjs/types/src/components/v2/lib/hooks/useHasPermission_v2.d.ts +1 -0
- package/dist/cjs/types/src/components/v2/lib/hooks/useMutationHandler.d.ts +1 -1
- package/dist/esm/index.js +1 -1
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/types/src/components/v1/forms/utils.d.ts +1 -0
- package/dist/esm/types/src/components/v2/layout/pages/DetailPage/index.d.ts +1 -0
- package/dist/esm/types/src/components/v2/lib/hooks/index.d.ts +1 -0
- package/dist/esm/types/src/components/v2/lib/hooks/useHasPermission_v2.d.ts +1 -0
- package/dist/esm/types/src/components/v2/lib/hooks/useMutationHandler.d.ts +1 -1
- package/dist/index.d.ts +6 -2
- package/package.json +1 -1
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const useHasPermission_v2: (path?: string) => boolean;
|
|
@@ -8,7 +8,7 @@ interface MutationHandlerOptions {
|
|
|
8
8
|
onSuccess: () => void;
|
|
9
9
|
onValidationError?: () => void;
|
|
10
10
|
successTitle?: string;
|
|
11
|
-
successMessage?: string;
|
|
11
|
+
successMessage?: string | ((response: any) => string);
|
|
12
12
|
onInvalidParams?: (error: any) => boolean;
|
|
13
13
|
}
|
|
14
14
|
declare const useMutationHandler: ({ mutationFn, form, onSuccess, onValidationError, successMessage, onInvalidParams, }: MutationHandlerOptions) => {
|
package/dist/index.d.ts
CHANGED
|
@@ -177,6 +177,7 @@ interface MyDataGridProps extends DataGridProps {
|
|
|
177
177
|
interface JSONParserProps {
|
|
178
178
|
[key: string]: {
|
|
179
179
|
ignore?: boolean;
|
|
180
|
+
keep?: boolean;
|
|
180
181
|
format?: string;
|
|
181
182
|
extra_validation?: (value: any) => boolean;
|
|
182
183
|
alter_key?: (key: string) => string;
|
|
@@ -1185,6 +1186,7 @@ interface DetailPageV2Props {
|
|
|
1185
1186
|
mutation: any;
|
|
1186
1187
|
args?: any;
|
|
1187
1188
|
disable?: boolean;
|
|
1189
|
+
successMessage?: string | ((response: any) => string);
|
|
1188
1190
|
postAction?: {
|
|
1189
1191
|
after: "create" | "edit" | "both";
|
|
1190
1192
|
type: string;
|
|
@@ -1349,7 +1351,7 @@ interface MutationHandlerOptions {
|
|
|
1349
1351
|
onSuccess: () => void;
|
|
1350
1352
|
onValidationError?: () => void;
|
|
1351
1353
|
successTitle?: string;
|
|
1352
|
-
successMessage?: string;
|
|
1354
|
+
successMessage?: string | ((response: any) => string);
|
|
1353
1355
|
onInvalidParams?: (error: any) => boolean;
|
|
1354
1356
|
}
|
|
1355
1357
|
declare const useMutationHandler: ({ mutationFn, form, onSuccess, onValidationError, successMessage, onInvalidParams, }: MutationHandlerOptions) => {
|
|
@@ -1362,5 +1364,7 @@ declare const useMutationHandler: ({ mutationFn, form, onSuccess, onValidationEr
|
|
|
1362
1364
|
}) => void;
|
|
1363
1365
|
};
|
|
1364
1366
|
|
|
1365
|
-
|
|
1367
|
+
declare const useHasPermission_v2: (path?: string) => boolean;
|
|
1368
|
+
|
|
1369
|
+
export { APIContext, APIProvider, ActiveCell, ActiveIcon, Base, ButtonWithDrawer, CSVUpload, ContentLayout, ControlledAddressAutocomplete, ControlledAmountWithCurrency, ControlledDate$1 as ControlledDate, ControlledDate as ControlledDate_v2, ControlledDropdown, ControlledFileField$1 as ControlledFileField, ControlledFileField as ControlledFileField_v2, FileUploadBox as ControlledFileUploadBox, ControlledNumber, ControlledPhoneNumber, ControlledSelect$1 as ControlledSelect, ControlledSelect as ControlledSelect_v2, ControlledSlider as ControlledSimpleSlider, ControlledSlider$1 as ControlledSlider, ControlledSwitch, ControlledText, ControlledTimePicker, ControlledToggleButtons, CoverPage, CreateButtonBase, CreateButtonWithMenuOptions, CrudDropdown, CustomNoRows, DeleteButton, DeleteConfirmationDialog, DetailPage$1 as DetailPage, DetailPage as DetailPage_v2, EditButton, ExportCSV, ExtraButtons, HistorialDrawer, ListPage, Loadable, LoadingComponent, Logo, MainDrawer, MainLayout, MenuItemWithLoading, ModuleCard, MoreOptions, MyGridEditSingleSelect, NavigationContext, NavigationProvider, NormalOrIcon, NotAllowed, NotFound, ObjectProgressStack, SaveCancelButton, StatusBadge, StyledMenu, Tabs, Transitions, UncontrolledText, changeTitle, closeProgressSnack, deleteColumn, editColumn, filterQuery, formParser, _default as headerReducer, manualCacheRefresh, mergeSettings, openProgressSnack, query, renderEditCellWithErrorTooltip, setErrors, _default$1 as snackProgressReducer, tags, theme, updateProgressSnackData, useAPI, useHasPermission, useHasPermission_v2, useKeyboardShortcut, useMutationHandler, useNavigation, valueLabel };
|
|
1366
1370
|
export type { APIcontextProps, AddressValue, ComoOpcionesProps, ControlledInput, CustomToolbarProps, DeleteGridColumnsProps, DetachedPage, DetailRenderProps, EditGridColumnsProps, EditReadOnlyFields, FieldFilter, FieldProps$1 as FieldProps, FieldValidationProps, GridArgs, GridColDefPropsOverrides, JSONFormProps, JSONParserProps, KeyboardShortcut, MainLayoutPageHeaderProps, MainLayoutProps, MainLayoutSidebarFooterProps, MyDataGridProps, MyGridFilterModel, MyTab, MyTabProps, PageType, ProgressStatusProps };
|
package/package.json
CHANGED