blixify-ui-web 0.4.269 → 0.4.271
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/index.d.ts.map +1 -1
- package/lib/components/data/dataTemplate/index.js +40 -12
- package/lib/components/data/dataTemplate/index.js.map +1 -1
- package/lib/components/data/dataTemplate/model.d.ts +2 -0
- package/lib/components/data/dataTemplate/model.d.ts.map +1 -1
- package/lib/components/data/testSchema.d.ts +5 -0
- package/lib/components/data/testSchema.d.ts.map +1 -1
- package/lib/components/data/testSchema.js +274 -1
- package/lib/components/data/testSchema.js.map +1 -1
- package/lib/components/data/updateModule.d.ts.map +1 -1
- package/lib/components/data/updateModule.js +1 -1
- package/lib/components/data/updateModule.js.map +1 -1
- package/lib/components/data/utils.d.ts.map +1 -1
- package/lib/components/data/utils.js +1 -0
- package/lib/components/data/utils.js.map +1 -1
- package/lib/components/display/flexTable/index.d.ts +2 -0
- package/lib/components/display/flexTable/index.d.ts.map +1 -1
- package/lib/components/display/flexTable/index.js +7 -6
- package/lib/components/display/flexTable/index.js.map +1 -1
- package/lib/components/input/select/index.d.ts +1 -0
- package/lib/components/input/select/index.d.ts.map +1 -1
- package/lib/components/input/select/index.js +5 -2
- package/lib/components/input/select/index.js.map +1 -1
- package/lib/components/input/uploadInput/index.d.ts +1 -0
- package/lib/components/input/uploadInput/index.d.ts.map +1 -1
- package/lib/components/input/uploadInput/index.js +13 -5
- package/lib/components/input/uploadInput/index.js.map +1 -1
- package/package.json +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/data/dataTemplate/index.tsx"],"names":[],"mappings":"AAkCA,OAAO,KASN,MAAM,OAAO,CAAC;AAyEf,OAAO,EACL,iBAAiB,EAKlB,MAAM,kBAAkB,CAAC;AAoB1B,eAAO,MAAM,YAAY,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/data/dataTemplate/index.tsx"],"names":[],"mappings":"AAkCA,OAAO,KASN,MAAM,OAAO,CAAC;AAyEf,OAAO,EACL,iBAAiB,EAKlB,MAAM,kBAAkB,CAAC;AAoB1B,eAAO,MAAM,YAAY,mFAu8RvB,CAAC"}
|
|
@@ -4951,12 +4951,26 @@ exports.DataTemplate = (0, react_1.forwardRef)(function (props, ref) {
|
|
|
4951
4951
|
var currentTabIndex_1 = (uniqueTabIds || []).findIndex(function (tabId) { return tabId === (activeTab || ""); });
|
|
4952
4952
|
return (react_1.default.createElement("div", { className: "flex flex-row h-fit w-full mt-5 sm:justify-end sm:mt-0" },
|
|
4953
4953
|
bareActionComponent ? (bareActionComponent) : (react_1.default.createElement(react_1.default.Fragment, null,
|
|
4954
|
-
hasTabAlign && (uniqueTabIds || []).length > 1 && (react_1.default.createElement(iconButton_1.IconButton, { icon: react_1.default.createElement(HeroIcons.ChevronLeftIcon, { className: "w-5 h-5 text-primary-500" }), onClick: function () {
|
|
4955
|
-
|
|
4956
|
-
|
|
4957
|
-
|
|
4958
|
-
|
|
4959
|
-
|
|
4954
|
+
hasTabAlign && (uniqueTabIds || []).length > 1 && (react_1.default.createElement(iconButton_1.IconButton, { icon: react_1.default.createElement(HeroIcons.ChevronLeftIcon, { className: "w-5 h-5 text-primary-500" }), onClick: function () { return __awaiter(void 0, void 0, void 0, function () {
|
|
4955
|
+
var previousTabId;
|
|
4956
|
+
var _a;
|
|
4957
|
+
return __generator(this, function (_b) {
|
|
4958
|
+
switch (_b.label) {
|
|
4959
|
+
case 0:
|
|
4960
|
+
if (!(currentTabIndex_1 > 0)) return [3 /*break*/, 3];
|
|
4961
|
+
if (!((_a = props.bareSettings) === null || _a === void 0 ? void 0 : _a.bareSaveOnTabChange)) return [3 /*break*/, 2];
|
|
4962
|
+
return [4 /*yield*/, handleFormSaveDraft()];
|
|
4963
|
+
case 1:
|
|
4964
|
+
_b.sent();
|
|
4965
|
+
_b.label = 2;
|
|
4966
|
+
case 2:
|
|
4967
|
+
previousTabId = (uniqueTabIds || [])[currentTabIndex_1 - 1];
|
|
4968
|
+
handleUpdateTabId(previousTabId);
|
|
4969
|
+
_b.label = 3;
|
|
4970
|
+
case 3: return [2 /*return*/];
|
|
4971
|
+
}
|
|
4972
|
+
});
|
|
4973
|
+
}); }, disabled: currentTabIndex_1 <= 0, className: "mr-3", background: "bg-gray-100 hover:bg-gray-200 text-gray-600 hover:text-gray-800" })),
|
|
4960
4974
|
((_h = props.edit) === null || _h === void 0 ? void 0 : _h.enableUpdateDraft) && (react_1.default.createElement(button_1.Button, { text: "Save", type: "light", className: "w-xs mr-3", onClick: function () { return __awaiter(void 0, void 0, void 0, function () {
|
|
4961
4975
|
return __generator(this, function (_a) {
|
|
4962
4976
|
switch (_a.label) {
|
|
@@ -4977,12 +4991,26 @@ exports.DataTemplate = (0, react_1.forwardRef)(function (props, ref) {
|
|
|
4977
4991
|
}
|
|
4978
4992
|
});
|
|
4979
4993
|
}); } }),
|
|
4980
|
-
hasTabAlign && (uniqueTabIds || []).length > 1 && (react_1.default.createElement(iconButton_1.IconButton, { icon: react_1.default.createElement(HeroIcons.ChevronRightIcon, { className: "w-5 h-5 text-primary-500" }), onClick: function () {
|
|
4981
|
-
|
|
4982
|
-
|
|
4983
|
-
|
|
4984
|
-
|
|
4985
|
-
|
|
4994
|
+
hasTabAlign && (uniqueTabIds || []).length > 1 && (react_1.default.createElement(iconButton_1.IconButton, { icon: react_1.default.createElement(HeroIcons.ChevronRightIcon, { className: "w-5 h-5 text-primary-500" }), onClick: function () { return __awaiter(void 0, void 0, void 0, function () {
|
|
4995
|
+
var nextTabId;
|
|
4996
|
+
var _a;
|
|
4997
|
+
return __generator(this, function (_b) {
|
|
4998
|
+
switch (_b.label) {
|
|
4999
|
+
case 0:
|
|
5000
|
+
if (!(currentTabIndex_1 < (uniqueTabIds || []).length - 1)) return [3 /*break*/, 3];
|
|
5001
|
+
if (!((_a = props.bareSettings) === null || _a === void 0 ? void 0 : _a.bareSaveOnTabChange)) return [3 /*break*/, 2];
|
|
5002
|
+
return [4 /*yield*/, handleFormSaveDraft()];
|
|
5003
|
+
case 1:
|
|
5004
|
+
_b.sent();
|
|
5005
|
+
_b.label = 2;
|
|
5006
|
+
case 2:
|
|
5007
|
+
nextTabId = (uniqueTabIds || [])[currentTabIndex_1 + 1];
|
|
5008
|
+
handleUpdateTabId(nextTabId);
|
|
5009
|
+
_b.label = 3;
|
|
5010
|
+
case 3: return [2 /*return*/];
|
|
5011
|
+
}
|
|
5012
|
+
});
|
|
5013
|
+
}); }, disabled: currentTabIndex_1 >= (uniqueTabIds || []).length - 1, className: "ml-2", background: "bg-gray-100 hover:bg-gray-200 text-gray-600 hover:text-gray-800" })))),
|
|
4986
5014
|
((_j = props.edit) === null || _j === void 0 ? void 0 : _j.deleteBtn) && isEditor && props.id !== "new" && (react_1.default.createElement(button_1.Button, { text: "Delete", type: "danger", className: "w-xs ml-3", onClick: function () {
|
|
4987
5015
|
setDeleteModal(true);
|
|
4988
5016
|
} }))));
|