@cakemail-org/ui-components-v2 2.0.74 → 2.0.76
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/components/dropMenu/MenuOption.d.ts +1 -1
- package/dist/cjs/components/dropMenu/types.d.ts +1 -0
- package/dist/cjs/factories/forms/index.d.ts +2 -2
- package/dist/cjs/index.js +3 -3
- package/dist/cjs/services/forms/index.d.ts +1 -1
- package/dist/esm/components/dropMenu/MenuOption.d.ts +1 -1
- package/dist/esm/components/dropMenu/types.d.ts +1 -0
- package/dist/esm/factories/forms/index.d.ts +2 -2
- package/dist/esm/index.js +3 -3
- package/dist/esm/services/forms/index.d.ts +1 -1
- package/package.json +1 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import React from "react";
|
|
2
2
|
import { TDropMenuItem } from "./types";
|
|
3
|
-
export declare function MenuOption({ preContent, text, postContent, desc, onClick, onMouseDown, divider, value, disabled, isAction, isMultiSelect, selected, isTitle, ...parentProps }: TDropMenuItem): React.JSX.Element;
|
|
3
|
+
export declare function MenuOption({ preContent, text, postContent, desc, onClick, onMouseDown, divider, value, disabled, isAction, isMultiSelect, selected, isTitle, className, ...parentProps }: TDropMenuItem): React.JSX.Element;
|
|
4
4
|
export default MenuOption;
|
|
@@ -20,6 +20,7 @@ export type TDropMenuItem = {
|
|
|
20
20
|
isMultiSelect?: boolean;
|
|
21
21
|
selected?: boolean;
|
|
22
22
|
isTitle?: boolean;
|
|
23
|
+
className?: string;
|
|
23
24
|
};
|
|
24
25
|
export type TDropMenuItemClick = (event: MouseEventHandler<HTMLLIElement> | undefined) => void;
|
|
25
26
|
export type TDropMenuItemMouseDown = (event: MouseEventHandler<HTMLLIElement> | undefined) => void;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { EnhancedFormModel, FormModel, SummaryEnhancedFormModel, TEnhancedFormModel
|
|
1
|
+
import { EnhancedFormModel, FormModel, SummaryEnhancedFormModel, TEnhancedFormModel } from "../../models";
|
|
2
2
|
import { TGenericListParams, TGenericListReturn } from "../../types/services";
|
|
3
3
|
export declare class FormsFactory {
|
|
4
4
|
static get({ id }: {
|
|
@@ -6,7 +6,7 @@ export declare class FormsFactory {
|
|
|
6
6
|
}): Promise<FormModel | EnhancedFormModel>;
|
|
7
7
|
static list({ ...options }: TGenericListParams): Promise<TGenericListReturn<FormModel | SummaryEnhancedFormModel>>;
|
|
8
8
|
static create({ form }: {
|
|
9
|
-
form: Partial<
|
|
9
|
+
form: Partial<TEnhancedFormModel>;
|
|
10
10
|
}): Promise<EnhancedFormModel | FormModel>;
|
|
11
11
|
}
|
|
12
12
|
export * from "./types";
|
package/dist/cjs/index.js
CHANGED
|
@@ -7958,8 +7958,8 @@ function Checkbox(_a) {
|
|
|
7958
7958
|
}
|
|
7959
7959
|
|
|
7960
7960
|
function MenuOption(_a) {
|
|
7961
|
-
var preContent = _a.preContent, text = _a.text, postContent = _a.postContent, desc = _a.desc, onClick = _a.onClick, onMouseDown = _a.onMouseDown, divider = _a.divider, value = _a.value, disabled = _a.disabled, isAction = _a.isAction, isMultiSelect = _a.isMultiSelect, selected = _a.selected, isTitle = _a.isTitle, parentProps = __rest(_a, ["preContent", "text", "postContent", "desc", "onClick", "onMouseDown", "divider", "value", "disabled", "isAction", "isMultiSelect", "selected", "isTitle"]);
|
|
7962
|
-
var menuItemClasses = classNames("menuOption-component-v2", {
|
|
7961
|
+
var preContent = _a.preContent, text = _a.text, postContent = _a.postContent, desc = _a.desc, onClick = _a.onClick, onMouseDown = _a.onMouseDown, divider = _a.divider, value = _a.value, disabled = _a.disabled, isAction = _a.isAction, isMultiSelect = _a.isMultiSelect, selected = _a.selected, isTitle = _a.isTitle, className = _a.className, parentProps = __rest(_a, ["preContent", "text", "postContent", "desc", "onClick", "onMouseDown", "divider", "value", "disabled", "isAction", "isMultiSelect", "selected", "isTitle", "className"]);
|
|
7962
|
+
var menuItemClasses = classNames("menuOption-component-v2", className, {
|
|
7963
7963
|
"showPreContent": !!preContent,
|
|
7964
7964
|
"showDivider": divider,
|
|
7965
7965
|
"disabled": disabled,
|
|
@@ -9757,7 +9757,7 @@ function createForm(_a) {
|
|
|
9757
9757
|
return callApi({
|
|
9758
9758
|
url: uiKitConfig.GATEWAY_PROXY + "/forms",
|
|
9759
9759
|
fetchOptions: {
|
|
9760
|
-
body: form,
|
|
9760
|
+
body: __assign(__assign({}, form), { type: "enhanced" }),
|
|
9761
9761
|
method: exports.EMethods.post
|
|
9762
9762
|
}
|
|
9763
9763
|
});
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { EnhancedFormModel, FormModel } from "../../models";
|
|
2
2
|
import { TGenericListParams } from "../../types";
|
|
3
3
|
export declare function createForm({ form }: {
|
|
4
|
-
form: Partial<
|
|
4
|
+
form: Partial<EnhancedFormModel>;
|
|
5
5
|
}): Promise<any>;
|
|
6
6
|
export declare function listForms({ useImpersonationTree, ...options }: TGenericListParams): Promise<any>;
|
|
7
7
|
export declare function patchForm({ id, data }: {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import React from "react";
|
|
2
2
|
import { TDropMenuItem } from "./types";
|
|
3
|
-
export declare function MenuOption({ preContent, text, postContent, desc, onClick, onMouseDown, divider, value, disabled, isAction, isMultiSelect, selected, isTitle, ...parentProps }: TDropMenuItem): React.JSX.Element;
|
|
3
|
+
export declare function MenuOption({ preContent, text, postContent, desc, onClick, onMouseDown, divider, value, disabled, isAction, isMultiSelect, selected, isTitle, className, ...parentProps }: TDropMenuItem): React.JSX.Element;
|
|
4
4
|
export default MenuOption;
|
|
@@ -20,6 +20,7 @@ export type TDropMenuItem = {
|
|
|
20
20
|
isMultiSelect?: boolean;
|
|
21
21
|
selected?: boolean;
|
|
22
22
|
isTitle?: boolean;
|
|
23
|
+
className?: string;
|
|
23
24
|
};
|
|
24
25
|
export type TDropMenuItemClick = (event: MouseEventHandler<HTMLLIElement> | undefined) => void;
|
|
25
26
|
export type TDropMenuItemMouseDown = (event: MouseEventHandler<HTMLLIElement> | undefined) => void;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { EnhancedFormModel, FormModel, SummaryEnhancedFormModel, TEnhancedFormModel
|
|
1
|
+
import { EnhancedFormModel, FormModel, SummaryEnhancedFormModel, TEnhancedFormModel } from "../../models";
|
|
2
2
|
import { TGenericListParams, TGenericListReturn } from "../../types/services";
|
|
3
3
|
export declare class FormsFactory {
|
|
4
4
|
static get({ id }: {
|
|
@@ -6,7 +6,7 @@ export declare class FormsFactory {
|
|
|
6
6
|
}): Promise<FormModel | EnhancedFormModel>;
|
|
7
7
|
static list({ ...options }: TGenericListParams): Promise<TGenericListReturn<FormModel | SummaryEnhancedFormModel>>;
|
|
8
8
|
static create({ form }: {
|
|
9
|
-
form: Partial<
|
|
9
|
+
form: Partial<TEnhancedFormModel>;
|
|
10
10
|
}): Promise<EnhancedFormModel | FormModel>;
|
|
11
11
|
}
|
|
12
12
|
export * from "./types";
|
package/dist/esm/index.js
CHANGED
|
@@ -7938,8 +7938,8 @@ function Checkbox(_a) {
|
|
|
7938
7938
|
}
|
|
7939
7939
|
|
|
7940
7940
|
function MenuOption(_a) {
|
|
7941
|
-
var preContent = _a.preContent, text = _a.text, postContent = _a.postContent, desc = _a.desc, onClick = _a.onClick, onMouseDown = _a.onMouseDown, divider = _a.divider, value = _a.value, disabled = _a.disabled, isAction = _a.isAction, isMultiSelect = _a.isMultiSelect, selected = _a.selected, isTitle = _a.isTitle, parentProps = __rest(_a, ["preContent", "text", "postContent", "desc", "onClick", "onMouseDown", "divider", "value", "disabled", "isAction", "isMultiSelect", "selected", "isTitle"]);
|
|
7942
|
-
var menuItemClasses = classNames("menuOption-component-v2", {
|
|
7941
|
+
var preContent = _a.preContent, text = _a.text, postContent = _a.postContent, desc = _a.desc, onClick = _a.onClick, onMouseDown = _a.onMouseDown, divider = _a.divider, value = _a.value, disabled = _a.disabled, isAction = _a.isAction, isMultiSelect = _a.isMultiSelect, selected = _a.selected, isTitle = _a.isTitle, className = _a.className, parentProps = __rest(_a, ["preContent", "text", "postContent", "desc", "onClick", "onMouseDown", "divider", "value", "disabled", "isAction", "isMultiSelect", "selected", "isTitle", "className"]);
|
|
7942
|
+
var menuItemClasses = classNames("menuOption-component-v2", className, {
|
|
7943
7943
|
"showPreContent": !!preContent,
|
|
7944
7944
|
"showDivider": divider,
|
|
7945
7945
|
"disabled": disabled,
|
|
@@ -9737,7 +9737,7 @@ function createForm(_a) {
|
|
|
9737
9737
|
return callApi({
|
|
9738
9738
|
url: uiKitConfig.GATEWAY_PROXY + "/forms",
|
|
9739
9739
|
fetchOptions: {
|
|
9740
|
-
body: form,
|
|
9740
|
+
body: __assign(__assign({}, form), { type: "enhanced" }),
|
|
9741
9741
|
method: EMethods.post
|
|
9742
9742
|
}
|
|
9743
9743
|
});
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { EnhancedFormModel, FormModel } from "../../models";
|
|
2
2
|
import { TGenericListParams } from "../../types";
|
|
3
3
|
export declare function createForm({ form }: {
|
|
4
|
-
form: Partial<
|
|
4
|
+
form: Partial<EnhancedFormModel>;
|
|
5
5
|
}): Promise<any>;
|
|
6
6
|
export declare function listForms({ useImpersonationTree, ...options }: TGenericListParams): Promise<any>;
|
|
7
7
|
export declare function patchForm({ id, data }: {
|