blixify-ui-web 0.2.20 → 0.2.22
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/lib/components/data/dataTemplate/dataStateModel.d.ts +1 -1
- package/lib/components/data/dataTemplate/dataStateModel.d.ts.map +1 -1
- package/lib/components/data/dataTemplate/index.d.ts.map +1 -1
- package/lib/components/data/dataTemplate/index.js +86 -86
- package/lib/components/data/dataTemplate/index.js.map +1 -1
- package/lib/components/data/dataTemplate/spaceModel.d.ts +2 -1
- package/lib/components/data/dataTemplate/spaceModel.d.ts.map +1 -1
- package/lib/components/data/dataWrapper/index.d.ts +1 -1
- package/lib/components/data/dataWrapper/index.d.ts.map +1 -1
- package/lib/components/data/dataWrapper/index.js +6 -6
- package/lib/components/data/dataWrapper/index.js.map +1 -1
- package/lib/components/data/stories.d.ts.map +1 -1
- package/lib/components/data/stories.js +1 -0
- package/lib/components/data/stories.js.map +1 -1
- package/lib/components/display/feeds/index.d.ts.map +1 -1
- package/lib/components/display/feeds/index.js +6 -1
- package/lib/components/display/feeds/index.js.map +1 -1
- package/lib/components/display/tag/index.d.ts +4 -0
- package/lib/components/display/tag/index.d.ts.map +1 -1
- package/lib/components/display/tag/index.js +25 -4
- package/lib/components/display/tag/index.js.map +1 -1
- package/lib/components/input/select/index.d.ts +1 -1
- package/lib/components/input/select/index.d.ts.map +1 -1
- package/lib/components/input/select/index.js +38 -22
- package/lib/components/input/select/index.js.map +1 -1
- package/lib/components/navigation/breadcrumb/index.d.ts +1 -1
- package/lib/components/navigation/breadcrumb/index.d.ts.map +1 -1
- package/package.json +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"dataStateModel.d.ts","sourceRoot":"","sources":["../../../../src/components/data/dataTemplate/dataStateModel.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,OAAO,CAAC;AACrC,OAAO,EAAE,WAAW,EAAE,MAAM,qBAAqB,CAAC;A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C9C;AAED,MAAM,WAAW,IAAI;IACnB,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB,YAAY,CAAC,EAAE,OAAO,CAAC;IACvB,SAAS,CAAC,EAAE,OAAO,CAAC;CACrB;AAED,MAAM,WAAW,iBAAkB,SAAQ,SAAS;IAClD,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,KAAK,EAAE,MAAM,GAAG,YAAY,CAAC;IAC7B,WAAW,EAAE,MAAM,GAAG,YAAY,CAAC;IACnC,IAAI,EAAE,MAAM,GAAG,QAAQ,GAAG,MAAM,GAAG,MAAM,CAAC;IAC1C,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ,YAAY,EAAE,MAAM,CAAC;IACrB,KAAK,EAAE,aAAa,EAAE,CAAC;IACvB,gBAAgB,EAAE,MAAM,CAAC;IACzB,
|
|
1
|
+
{"version":3,"file":"dataStateModel.d.ts","sourceRoot":"","sources":["../../../../src/components/data/dataTemplate/dataStateModel.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,OAAO,CAAC;AACrC,OAAO,EAAE,WAAW,EAAE,MAAM,qBAAqB,CAAC;AAClD,OAAO,EAAE,MAAM,EAAE,MAAM,oBAAoB,CAAC;AAC5C,OAAO,EAAE,SAAS,EAAE,MAAM,sBAAsB,CAAC;AACjD,OAAO,EAAE,IAAI,EAAE,MAAM,cAAc,CAAC;AACpC,OAAO,EACL,YAAY,EACZ,aAAa,EACb,WAAW,EACX,cAAc,EACf,MAAM,SAAS,CAAC;AACjB,OAAO,EAAE,eAAe,EAAE,YAAY,EAAE,KAAK,EAAE,MAAM,cAAc,CAAC;AAEpE,MAAM,WAAW,QAAQ;IACvB,IAAI,CAAC,EAAE,IAAI,CAAC;IACZ,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,YAAY,CAAC,EAAE,YAAY,EAAE,CAAC;IAC9B,eAAe,CAAC,EAAE,eAAe,EAAE,CA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":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/data/dataTemplate/index.tsx"],"names":[],"mappings":"AAqBA,OAAO,KAON,MAAM,OAAO,CAAC;AAqDf,OAAO,EACL,iBAAiB,EAKlB,MAAM,kBAAkB,CAAC;AAQ1B,eAAO,MAAM,YAAY,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/data/dataTemplate/index.tsx"],"names":[],"mappings":"AAqBA,OAAO,KAON,MAAM,OAAO,CAAC;AAqDf,OAAO,EACL,iBAAiB,EAKlB,MAAM,kBAAkB,CAAC;AAQ1B,eAAO,MAAM,YAAY,mFA4/IvB,CAAC"}
|
|
@@ -2630,40 +2630,31 @@ exports.DataTemplate = (0, react_1.forwardRef)(function (props, ref) {
|
|
|
2630
2630
|
return elementList;
|
|
2631
2631
|
};
|
|
2632
2632
|
var renderDetailListData = function (model) {
|
|
2633
|
-
var _a, _b, _c, _d;
|
|
2634
2633
|
var detailList = [];
|
|
2635
|
-
|
|
2636
|
-
var
|
|
2637
|
-
|
|
2638
|
-
|
|
2639
|
-
|
|
2640
|
-
|
|
2641
|
-
|
|
2642
|
-
|
|
2643
|
-
|
|
2644
|
-
|
|
2645
|
-
|
|
2646
|
-
|
|
2647
|
-
|
|
2648
|
-
|
|
2649
|
-
|
|
2650
|
-
|
|
2651
|
-
|
|
2652
|
-
|
|
2653
|
-
|
|
2654
|
-
|
|
2655
|
-
currentValue = bareReadDescFunc === null || bareReadDescFunc === void 0 ? void 0 : bareReadDescFunc((_c = filterModel === null || filterModel === void 0 ? void 0 : filterModel.id) !== null && _c !== void 0 ? _c : "", eachValue);
|
|
2656
|
-
detailList.push({
|
|
2657
|
-
title: (_d = filterModel === null || filterModel === void 0 ? void 0 : filterModel.name) !== null && _d !== void 0 ? _d : "",
|
|
2658
|
-
text: currentValue,
|
|
2659
|
-
});
|
|
2634
|
+
model.map(function (eachAttribute) {
|
|
2635
|
+
var _a, _b, _c, _d, _e;
|
|
2636
|
+
var selectedDataKey = Object.keys(selectedData).find(function (eachKey) { return eachKey === eachAttribute.id; });
|
|
2637
|
+
if (selectedDataKey) {
|
|
2638
|
+
var showIdCondition = showId
|
|
2639
|
+
? true
|
|
2640
|
+
: selectedDataKey !== "id" && selectedDataKey !== "_id";
|
|
2641
|
+
if (showIdCondition &&
|
|
2642
|
+
selectedDataKey !== "baseUpdatedAt" &&
|
|
2643
|
+
selectedDataKey !== "baseDraft") {
|
|
2644
|
+
if (!eachAttribute.hideRead) {
|
|
2645
|
+
var currentValue = (_a = selectedData[selectedDataKey]) !== null && _a !== void 0 ? _a : "-";
|
|
2646
|
+
var bareReadDescFunc = (_b = props.bareSettings) === null || _b === void 0 ? void 0 : _b.bareReadDescription;
|
|
2647
|
+
if (bareReadDescFunc === null || bareReadDescFunc === void 0 ? void 0 : bareReadDescFunc((_c = eachAttribute === null || eachAttribute === void 0 ? void 0 : eachAttribute.id) !== null && _c !== void 0 ? _c : "", selectedData[selectedDataKey]))
|
|
2648
|
+
currentValue = bareReadDescFunc === null || bareReadDescFunc === void 0 ? void 0 : bareReadDescFunc((_d = eachAttribute === null || eachAttribute === void 0 ? void 0 : eachAttribute.id) !== null && _d !== void 0 ? _d : "", selectedData[selectedDataKey]);
|
|
2649
|
+
detailList.push({
|
|
2650
|
+
title: (_e = eachAttribute === null || eachAttribute === void 0 ? void 0 : eachAttribute.name) !== null && _e !== void 0 ? _e : "",
|
|
2651
|
+
text: currentValue,
|
|
2652
|
+
});
|
|
2653
|
+
}
|
|
2660
2654
|
}
|
|
2661
2655
|
}
|
|
2662
|
-
|
|
2663
|
-
|
|
2664
|
-
var _f = _e[_i], eachKey = _f[0], eachValue = _f[1];
|
|
2665
|
-
_loop_2(eachKey, eachValue);
|
|
2666
|
-
}
|
|
2656
|
+
return null;
|
|
2657
|
+
});
|
|
2667
2658
|
return detailList;
|
|
2668
2659
|
};
|
|
2669
2660
|
var renderListObject = function (type) {
|
|
@@ -2691,7 +2682,7 @@ exports.DataTemplate = (0, react_1.forwardRef)(function (props, ref) {
|
|
|
2691
2682
|
title: "",
|
|
2692
2683
|
};
|
|
2693
2684
|
var isTitle = true;
|
|
2694
|
-
var
|
|
2685
|
+
var _loop_2 = function (eachKey, eachValue) {
|
|
2695
2686
|
if (eachListObject.objectData) {
|
|
2696
2687
|
var model = eachListObject.objectData.find(function (eachAttribute) {
|
|
2697
2688
|
return eachAttribute.id === eachKey;
|
|
@@ -2754,7 +2745,7 @@ exports.DataTemplate = (0, react_1.forwardRef)(function (props, ref) {
|
|
|
2754
2745
|
};
|
|
2755
2746
|
for (var _i = 0, _c = Object.entries(eachObject); _i < _c.length; _i++) {
|
|
2756
2747
|
var _d = _c[_i], eachKey = _d[0], eachValue = _d[1];
|
|
2757
|
-
|
|
2748
|
+
_loop_2(eachKey, eachValue);
|
|
2758
2749
|
}
|
|
2759
2750
|
if (!checkIdExists_1) {
|
|
2760
2751
|
delete eachNewList["id"];
|
|
@@ -2835,6 +2826,13 @@ exports.DataTemplate = (0, react_1.forwardRef)(function (props, ref) {
|
|
|
2835
2826
|
}
|
|
2836
2827
|
return null;
|
|
2837
2828
|
};
|
|
2829
|
+
var renderBreadcrumb = function (pages) {
|
|
2830
|
+
if (props.breadcrumbType !== "hidden") {
|
|
2831
|
+
return (react_1.default.createElement(react_1.default.Fragment, null, props.breadcrumbType === "button" ? (react_1.default.createElement(textButton_1.TextButton, { text: "< Back", className: "sm:mb-5", onClick: handleBreadcrumbNavigate })) : (react_1.default.createElement(breadcrumb_1.Breadcrumb, { pages: pages, linkType: props.linkType, custom: props.custom, className: "sm:mb-5", onClick: handleBreadcrumbNavigate }))));
|
|
2832
|
+
}
|
|
2833
|
+
else
|
|
2834
|
+
return react_1.default.createElement(react_1.default.Fragment, null);
|
|
2835
|
+
};
|
|
2838
2836
|
var renderContent = function () {
|
|
2839
2837
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t, _u, _v, _w;
|
|
2840
2838
|
var viewType = (_b = (_a = props.organise) === null || _a === void 0 ? void 0 : _a.viewId) !== null && _b !== void 0 ? _b : "general";
|
|
@@ -2918,7 +2916,7 @@ exports.DataTemplate = (0, react_1.forwardRef)(function (props, ref) {
|
|
|
2918
2916
|
id: props.id,
|
|
2919
2917
|
}, offline: (_h = props.bareSettings) === null || _h === void 0 ? void 0 : _h.bareOffline, onChangeData: handleRetrieveSelectedData, onError: handleGetItemError }),
|
|
2920
2918
|
!loading && (react_1.default.createElement(react_1.default.Fragment, null,
|
|
2921
|
-
|
|
2919
|
+
renderBreadcrumb(pages),
|
|
2922
2920
|
react_1.default.createElement("div", null,
|
|
2923
2921
|
react_1.default.createElement("div", { className: "flex flex-col justify-between sm:py-2 sm:items-center sm:flex-row" },
|
|
2924
2922
|
react_1.default.createElement("div", { className: "flex flex-col" },
|
|
@@ -2971,7 +2969,7 @@ exports.DataTemplate = (0, react_1.forwardRef)(function (props, ref) {
|
|
|
2971
2969
|
type: "get",
|
|
2972
2970
|
id: props.id,
|
|
2973
2971
|
}, offline: (_p = props.bareSettings) === null || _p === void 0 ? void 0 : _p.bareOffline, onChangeData: handleRetrieveSelectedData, onError: handleGetItemError })),
|
|
2974
|
-
|
|
2972
|
+
renderBreadcrumb(pages),
|
|
2975
2973
|
react_1.default.createElement("div", { className: "flex flex-col py-2 sm:items-center sm:flex-row" },
|
|
2976
2974
|
react_1.default.createElement("div", { className: "flex flex-col w-full" },
|
|
2977
2975
|
react_1.default.createElement("p", { className: "text-xl font-medium" }, props.title),
|
|
@@ -3170,7 +3168,7 @@ exports.DataTemplate = (0, react_1.forwardRef)(function (props, ref) {
|
|
|
3170
3168
|
return gridData;
|
|
3171
3169
|
};
|
|
3172
3170
|
var renderTabContent = function (tabs, dataType, viewType) {
|
|
3173
|
-
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o
|
|
3171
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o;
|
|
3174
3172
|
var selectedTabData = tabs.find(function (eachTab) {
|
|
3175
3173
|
if (eachTab.id === viewType) {
|
|
3176
3174
|
return eachTab;
|
|
@@ -3366,53 +3364,51 @@ exports.DataTemplate = (0, react_1.forwardRef)(function (props, ref) {
|
|
|
3366
3364
|
}
|
|
3367
3365
|
else if (selectedTabData.viewType === "feeds") {
|
|
3368
3366
|
var contentList_1 = [];
|
|
3369
|
-
var
|
|
3370
|
-
|
|
3371
|
-
|
|
3372
|
-
|
|
3373
|
-
|
|
3374
|
-
|
|
3375
|
-
|
|
3376
|
-
|
|
3377
|
-
|
|
3378
|
-
|
|
3379
|
-
|
|
3380
|
-
|
|
3381
|
-
|
|
3382
|
-
|
|
3383
|
-
|
|
3384
|
-
|
|
3385
|
-
|
|
3386
|
-
|
|
3387
|
-
|
|
3367
|
+
var feedsSettings_1 = selectedTabData.feedsSettings;
|
|
3368
|
+
var customFeedsData = (_l = feedsSettings_1 === null || feedsSettings_1 === void 0 ? void 0 : feedsSettings_1.customFeedsData) === null || _l === void 0 ? void 0 : _l.call(feedsSettings_1, tableData, spaceTableData);
|
|
3369
|
+
if (customFeedsData && customFeedsData.length > 0) {
|
|
3370
|
+
customFeedsData.map(function (eachData) {
|
|
3371
|
+
var _a, _b, _c, _d;
|
|
3372
|
+
var content = {
|
|
3373
|
+
content: (_a = eachData.title) !== null && _a !== void 0 ? _a : "",
|
|
3374
|
+
addContent: (_b = eachData.content) !== null && _b !== void 0 ? _b : "",
|
|
3375
|
+
step: (react_1.default.createElement("div", { className: "flex flex-col" },
|
|
3376
|
+
eachData.desc && react_1.default.createElement("div", null, eachData.desc),
|
|
3377
|
+
renderFeedsActionBtn(eachData.id, eachData.desc))),
|
|
3378
|
+
iconClass: (_c = eachData.iconClass) !== null && _c !== void 0 ? _c : "",
|
|
3379
|
+
iconType: (_d = eachData.icon) !== null && _d !== void 0 ? _d : (react_1.default.createElement(solid_1.CheckIcon, { className: "h-5 w-5 text-white" })),
|
|
3380
|
+
};
|
|
3381
|
+
contentList_1.push(content);
|
|
3382
|
+
return null;
|
|
3383
|
+
});
|
|
3384
|
+
}
|
|
3385
|
+
else {
|
|
3386
|
+
var selectedIcon_1 = undefined;
|
|
3387
|
+
var IconFound = HeroIcons[(feedsSettings_1 === null || feedsSettings_1 === void 0 ? void 0 : feedsSettings_1.icon) || ""];
|
|
3388
|
+
if (IconFound) {
|
|
3389
|
+
selectedIcon_1 = react_1.default.createElement(IconFound, { className: "h-5 w-5 text-white" });
|
|
3388
3390
|
}
|
|
3389
|
-
|
|
3390
|
-
var
|
|
3391
|
-
|
|
3392
|
-
if (IconFound) {
|
|
3393
|
-
selectedIcon_1 = react_1.default.createElement(IconFound, { className: "h-5 w-5 text-white" });
|
|
3394
|
-
}
|
|
3395
|
-
spaceTableData.map(function (eachData) {
|
|
3396
|
-
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
|
|
3391
|
+
spaceTableData.map(function (eachData) {
|
|
3392
|
+
var _a, _b;
|
|
3393
|
+
if (feedsSettings_1 && feedsSettings_1.title && feedsSettings_1.desc) {
|
|
3397
3394
|
var content = {
|
|
3398
|
-
content: (
|
|
3399
|
-
addContent: (react_1.default.createElement("p", { className: "mt-2 text-sm text-gray-500" }, (
|
|
3395
|
+
content: (_a = eachData[feedsSettings_1.title || ""]) !== null && _a !== void 0 ? _a : "",
|
|
3396
|
+
addContent: (react_1.default.createElement("p", { className: "mt-2 text-sm text-gray-500" }, (_b = eachData[feedsSettings_1.content || ""]) !== null && _b !== void 0 ? _b : "")),
|
|
3400
3397
|
step: (react_1.default.createElement("div", { className: "flex flex-col" },
|
|
3401
|
-
eachData[
|
|
3402
|
-
((
|
|
3403
|
-
|
|
3404
|
-
iconClass: ((_k = feedsTab_1.feedsSettings) === null || _k === void 0 ? void 0 : _k.iconClass) || "bg-primary-500",
|
|
3398
|
+
eachData[feedsSettings_1.desc || ""] && (react_1.default.createElement("div", null, eachData[feedsSettings_1.desc || ""])),
|
|
3399
|
+
renderFeedsActionBtn(eachData.id, eachData[(feedsSettings_1 === null || feedsSettings_1 === void 0 ? void 0 : feedsSettings_1.desc) || ""]))),
|
|
3400
|
+
iconClass: feedsSettings_1.iconClass || "bg-primary-500",
|
|
3405
3401
|
iconType: selectedIcon_1 ? (selectedIcon_1) : (react_1.default.createElement(solid_1.CheckIcon, { className: "h-5 w-5 text-white" })),
|
|
3406
3402
|
};
|
|
3407
3403
|
contentList_1.push(content);
|
|
3408
|
-
|
|
3409
|
-
|
|
3410
|
-
}
|
|
3404
|
+
}
|
|
3405
|
+
return null;
|
|
3406
|
+
});
|
|
3411
3407
|
}
|
|
3412
|
-
return (react_1.default.createElement("div", { className: "mt-4" }, tableLoading ? (react_1.default.createElement(loading_1.Loading, null)) : (react_1.default.createElement("div", { className: "p-4 bg-white rounded-
|
|
3413
|
-
react_1.default.createElement(feeds_1.Feeds, { bold: true, content: contentList_1, darkMode: (
|
|
3408
|
+
return (react_1.default.createElement("div", { className: "mt-4" }, tableLoading ? (react_1.default.createElement(loading_1.Loading, null)) : (react_1.default.createElement("div", { className: "p-4 bg-white rounded-lg" },
|
|
3409
|
+
react_1.default.createElement(feeds_1.Feeds, { bold: true, content: contentList_1, darkMode: (_m = props.organise) === null || _m === void 0 ? void 0 : _m.darkMode }),
|
|
3414
3410
|
react_1.default.createElement("div", { className: "my-10" }),
|
|
3415
|
-
react_1.default.createElement(pagination_1.Pagination, { data: tableData, size: size, limit: limit, cursor: cursor, pageIndex: pageIndex, paginationType: devSettings.server === "mongoServer" ? "page" : "cursor", handleUpdatePageIndex: handlePagination, darkMode: (
|
|
3411
|
+
contentList_1.length > 0 && (react_1.default.createElement(pagination_1.Pagination, { data: tableData, size: size, limit: limit, cursor: cursor, pageIndex: pageIndex, paginationType: devSettings.server === "mongoServer" ? "page" : "cursor", handleUpdatePageIndex: handlePagination, darkMode: (_o = props.organise) === null || _o === void 0 ? void 0 : _o.darkMode }))))));
|
|
3416
3412
|
}
|
|
3417
3413
|
else if (selectedTabData.renderComp) {
|
|
3418
3414
|
return react_1.default.createElement(react_1.default.Fragment, null, selectedTabData.renderComp());
|
|
@@ -3732,17 +3728,21 @@ exports.DataTemplate = (0, react_1.forwardRef)(function (props, ref) {
|
|
|
3732
3728
|
else
|
|
3733
3729
|
return "";
|
|
3734
3730
|
};
|
|
3735
|
-
var
|
|
3736
|
-
var _a, _b;
|
|
3737
|
-
|
|
3738
|
-
|
|
3739
|
-
|
|
3740
|
-
|
|
3741
|
-
|
|
3742
|
-
|
|
3743
|
-
|
|
3744
|
-
|
|
3745
|
-
|
|
3731
|
+
var renderFeedsActionBtn = function (id, description) {
|
|
3732
|
+
var _a, _b, _c, _d;
|
|
3733
|
+
if (((_a = props.edit) === null || _a === void 0 ? void 0 : _a.allEditable) || ((_b = props.edit) === null || _b === void 0 ? void 0 : _b.deleteBtn)) {
|
|
3734
|
+
return (react_1.default.createElement("div", { className: "w-full flex justify-end gap-4 ".concat(description && "mt-2") },
|
|
3735
|
+
((_c = props.edit) === null || _c === void 0 ? void 0 : _c.allEditable) && (react_1.default.createElement(outline_1.PencilSquareIcon, { className: "h-5 w-5 text-primary-500 hover:cursor-pointer", onClick: function () {
|
|
3736
|
+
var _a, _b;
|
|
3737
|
+
(_b = (_a = props.organise) === null || _a === void 0 ? void 0 : _a.handleNavigate) === null || _b === void 0 ? void 0 : _b.call(_a, "update", id);
|
|
3738
|
+
} })),
|
|
3739
|
+
((_d = props.edit) === null || _d === void 0 ? void 0 : _d.deleteBtn) && (react_1.default.createElement(outline_1.TrashIcon, { className: "h-5 w-5 text-red-500 hover:cursor-pointer", onClick: function () {
|
|
3740
|
+
setDeleteModal(true);
|
|
3741
|
+
setDeleteFeedId(id);
|
|
3742
|
+
} }))));
|
|
3743
|
+
}
|
|
3744
|
+
else
|
|
3745
|
+
return react_1.default.createElement(react_1.default.Fragment, null);
|
|
3746
3746
|
};
|
|
3747
3747
|
return (react_1.default.createElement(react_1.default.Fragment, null,
|
|
3748
3748
|
renderNotification("root"),
|