@luminix/mui-cms 0.2.5 → 0.2.7
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/bundle/mui-cms.bundle.iife.js +11 -11
- package/dist/mui-cms.js +1 -1
- package/package.json +1 -1
- package/types/dist.d.ts +1 -0
- package/types/types/Dialog.d.ts +2 -2
- package/types/types/Reducers.d.ts +4 -1
package/dist/mui-cms.js
CHANGED
|
@@ -4640,7 +4640,7 @@ class ui {
|
|
|
4640
4640
|
}
|
|
4641
4641
|
}
|
|
4642
4642
|
const di = ({ item: e }) => {
|
|
4643
|
-
const t = qt(), [n] = G(), r = n.get("tab") ?? "all", o = m.useMemo(() => T("cms").getInstanceActions(e.
|
|
4643
|
+
const t = qt(), [n] = G(), r = n.get("tab") ?? "all", o = m.useMemo(() => T("cms").getInstanceActions(T("model").make(e.getType()), r), [e, r]), [s, a] = m.useState(null), l = !!s, d = (u) => {
|
|
4644
4644
|
a(u.currentTarget);
|
|
4645
4645
|
}, c = () => {
|
|
4646
4646
|
a(null);
|
package/package.json
CHANGED
package/types/dist.d.ts
CHANGED
|
@@ -27,3 +27,4 @@ import { default as Cms } from './facades/Cms';
|
|
|
27
27
|
import { default as Icon } from './facades/Icon';
|
|
28
28
|
import { default as Filter } from './facades/Filter';
|
|
29
29
|
export { CmsServiceProvider, i18NextServiceProvider, LuminixCms, Link, Cms, Filter, Icon, useActionEvent, useBackButton, useCurrentModel, useDialog, useDisplaceNotifications, useHandleError, useHasSearch, useIsDesktopMode, useLayoutConfig, useMenu, useNotify, usePageTitle, useSearch, useSelection, useSetPageTitle, useTable, DialogProvider, LayoutProvider, ModelProvider, NotificationProvider, TableProvider, };
|
|
30
|
+
export type { RouteObject, } from './types/Reducers';
|
package/types/types/Dialog.d.ts
CHANGED
|
@@ -7,7 +7,7 @@ export type DialogMessage = {
|
|
|
7
7
|
confirmText?: string;
|
|
8
8
|
cancelText?: string;
|
|
9
9
|
defaultValue?: string;
|
|
10
|
-
dialogProps?: DialogProps
|
|
11
|
-
textFieldProps?: TextFieldProps
|
|
10
|
+
dialogProps?: Partial<DialogProps>;
|
|
11
|
+
textFieldProps?: Partial<TextFieldProps>;
|
|
12
12
|
};
|
|
13
13
|
export type DialogFunction = (message: string | DialogMessage) => Promise<boolean | string>;
|
|
@@ -1,4 +1,7 @@
|
|
|
1
1
|
import { ModelType as Model } from '@luminix/core';
|
|
2
|
-
import { RouteObject } from 'react-router-dom';
|
|
2
|
+
import { RouteObject as BaseRouteObject } from 'react-router-dom';
|
|
3
3
|
export type ComponentMapReducer = (components: Record<string, React.FunctionComponent>) => Record<string, React.FunctionComponent>;
|
|
4
|
+
export type RouteObject = BaseRouteObject & {
|
|
5
|
+
name?: string;
|
|
6
|
+
};
|
|
4
7
|
export type CmsRoutesReducer = (routes: RouteObject[], components: Record<string, React.FunctionComponent<any>>, models: Record<string, typeof Model>) => RouteObject[];
|