@cakemail-org/ui-components-v2 2.2.36 → 2.2.38
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
CHANGED
|
@@ -8971,7 +8971,7 @@ function DataTable(_a) {
|
|
|
8971
8971
|
var _o = React.useState((initState === null || initState === void 0 ? void 0 : initState.selected) || []), cSelected = _o[0], setSelected = _o[1];
|
|
8972
8972
|
var _p = React.useState((initState === null || initState === void 0 ? void 0 : initState.page) || 0), cPage = _p[0], setPage = _p[1];
|
|
8973
8973
|
var _q = React.useState((initState === null || initState === void 0 ? void 0 : initState.rowsPerPage) || 50), cRowsPerPage = _q[0], setRowsPerPage = _q[1];
|
|
8974
|
-
var isControlled = areAllPropertiesEmpty(controlledState);
|
|
8974
|
+
var isControlled = !areAllPropertiesEmpty(controlledState);
|
|
8975
8975
|
var order = cOrder;
|
|
8976
8976
|
var orderBy = cOrderBy;
|
|
8977
8977
|
var selected = cSelected;
|
|
@@ -18509,7 +18509,7 @@ var ListModel = /** @class */ (function () {
|
|
|
18509
18509
|
});
|
|
18510
18510
|
});
|
|
18511
18511
|
};
|
|
18512
|
-
ListModel.prototype.
|
|
18512
|
+
ListModel.prototype.addTagsToContacts = function (_a) {
|
|
18513
18513
|
return __awaiter(this, arguments, void 0, function (_b) {
|
|
18514
18514
|
var _this = this;
|
|
18515
18515
|
var tags = _b.tags, contactIds = _b.contactIds, json = _b.json;
|
|
@@ -18522,7 +18522,7 @@ var ListModel = /** @class */ (function () {
|
|
|
18522
18522
|
});
|
|
18523
18523
|
});
|
|
18524
18524
|
};
|
|
18525
|
-
ListModel.prototype.
|
|
18525
|
+
ListModel.prototype.removeTagsFromContacts = function (_a) {
|
|
18526
18526
|
return __awaiter(this, arguments, void 0, function (_b) {
|
|
18527
18527
|
var _this = this;
|
|
18528
18528
|
var tags = _b.tags, contactIds = _b.contactIds, json = _b.json;
|
|
@@ -25,12 +25,12 @@ export declare class ListModel {
|
|
|
25
25
|
getAttributes(options?: TGenericListParams): Promise<TGenericListReturn<TListCustomAttribute>>;
|
|
26
26
|
getInterests(options?: TGenericListParams): Promise<TGenericListReturn<TListInterest>>;
|
|
27
27
|
getReport(): Promise<TListReport>;
|
|
28
|
-
|
|
28
|
+
addTagsToContacts({ tags, contactIds, json }: {
|
|
29
29
|
tags: string[];
|
|
30
30
|
contactIds?: number[];
|
|
31
31
|
json?: boolean;
|
|
32
32
|
}): Promise<TActionApiResource>;
|
|
33
|
-
|
|
33
|
+
removeTagsFromContacts({ tags, contactIds, json }: {
|
|
34
34
|
tags: string[];
|
|
35
35
|
contactIds?: number[];
|
|
36
36
|
json?: boolean;
|
package/dist/esm/index.js
CHANGED
|
@@ -8951,7 +8951,7 @@ function DataTable(_a) {
|
|
|
8951
8951
|
var _o = useState((initState === null || initState === void 0 ? void 0 : initState.selected) || []), cSelected = _o[0], setSelected = _o[1];
|
|
8952
8952
|
var _p = useState((initState === null || initState === void 0 ? void 0 : initState.page) || 0), cPage = _p[0], setPage = _p[1];
|
|
8953
8953
|
var _q = useState((initState === null || initState === void 0 ? void 0 : initState.rowsPerPage) || 50), cRowsPerPage = _q[0], setRowsPerPage = _q[1];
|
|
8954
|
-
var isControlled = areAllPropertiesEmpty(controlledState);
|
|
8954
|
+
var isControlled = !areAllPropertiesEmpty(controlledState);
|
|
8955
8955
|
var order = cOrder;
|
|
8956
8956
|
var orderBy = cOrderBy;
|
|
8957
8957
|
var selected = cSelected;
|
|
@@ -18489,7 +18489,7 @@ var ListModel = /** @class */ (function () {
|
|
|
18489
18489
|
});
|
|
18490
18490
|
});
|
|
18491
18491
|
};
|
|
18492
|
-
ListModel.prototype.
|
|
18492
|
+
ListModel.prototype.addTagsToContacts = function (_a) {
|
|
18493
18493
|
return __awaiter(this, arguments, void 0, function (_b) {
|
|
18494
18494
|
var _this = this;
|
|
18495
18495
|
var tags = _b.tags, contactIds = _b.contactIds, json = _b.json;
|
|
@@ -18502,7 +18502,7 @@ var ListModel = /** @class */ (function () {
|
|
|
18502
18502
|
});
|
|
18503
18503
|
});
|
|
18504
18504
|
};
|
|
18505
|
-
ListModel.prototype.
|
|
18505
|
+
ListModel.prototype.removeTagsFromContacts = function (_a) {
|
|
18506
18506
|
return __awaiter(this, arguments, void 0, function (_b) {
|
|
18507
18507
|
var _this = this;
|
|
18508
18508
|
var tags = _b.tags, contactIds = _b.contactIds, json = _b.json;
|
|
@@ -25,12 +25,12 @@ export declare class ListModel {
|
|
|
25
25
|
getAttributes(options?: TGenericListParams): Promise<TGenericListReturn<TListCustomAttribute>>;
|
|
26
26
|
getInterests(options?: TGenericListParams): Promise<TGenericListReturn<TListInterest>>;
|
|
27
27
|
getReport(): Promise<TListReport>;
|
|
28
|
-
|
|
28
|
+
addTagsToContacts({ tags, contactIds, json }: {
|
|
29
29
|
tags: string[];
|
|
30
30
|
contactIds?: number[];
|
|
31
31
|
json?: boolean;
|
|
32
32
|
}): Promise<TActionApiResource>;
|
|
33
|
-
|
|
33
|
+
removeTagsFromContacts({ tags, contactIds, json }: {
|
|
34
34
|
tags: string[];
|
|
35
35
|
contactIds?: number[];
|
|
36
36
|
json?: boolean;
|