blixify-ui-web 0.2.89 → 0.2.91
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 +30 -10
- package/lib/components/data/dataTemplate/index.js.map +1 -1
- package/lib/components/data/dataTemplate/model.d.ts +4 -1
- package/lib/components/data/dataTemplate/model.d.ts.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/input/address/index.d.ts +4 -0
- package/lib/components/input/address/index.d.ts.map +1 -1
- package/lib/components/input/address/index.js +83 -7
- package/lib/components/input/address/index.js.map +1 -1
- package/lib/components/input/select/index.d.ts.map +1 -1
- package/lib/components/input/select/index.js +2 -2
- package/lib/components/input/select/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":"AAsBA,OAAO,KAQN,MAAM,OAAO,CAAC;AAyDf,OAAO,EACL,iBAAiB,EAKlB,MAAM,kBAAkB,CAAC;AAO1B,eAAO,MAAM,YAAY,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/data/dataTemplate/index.tsx"],"names":[],"mappings":"AAsBA,OAAO,KAQN,MAAM,OAAO,CAAC;AAyDf,OAAO,EACL,iBAAiB,EAKlB,MAAM,kBAAkB,CAAC;AAO1B,eAAO,MAAM,YAAY,mFAuwKvB,CAAC"}
|
|
@@ -3064,23 +3064,23 @@ exports.DataTemplate = (0, react_1.forwardRef)(function (props, ref) {
|
|
|
3064
3064
|
var isTitle = true;
|
|
3065
3065
|
var _loop_3 = function (eachKey, eachValue) {
|
|
3066
3066
|
if (eachListObject.objectData) {
|
|
3067
|
-
var
|
|
3067
|
+
var model_2 = eachListObject.objectData.find(function (eachAttribute) {
|
|
3068
3068
|
return eachAttribute.id === eachKey;
|
|
3069
3069
|
});
|
|
3070
|
-
switch (
|
|
3070
|
+
switch (model_2 === null || model_2 === void 0 ? void 0 : model_2.type) {
|
|
3071
3071
|
case "string":
|
|
3072
3072
|
case "contact":
|
|
3073
3073
|
case "email":
|
|
3074
3074
|
isTitle
|
|
3075
3075
|
? (eachNewList["title"] =
|
|
3076
3076
|
typeof eachValue === "string" ? eachValue : "")
|
|
3077
|
-
: (eachNewList[eachKey] =
|
|
3077
|
+
: (eachNewList[eachKey] = model_2.name + " : " + eachValue);
|
|
3078
3078
|
isTitle = false;
|
|
3079
3079
|
break;
|
|
3080
3080
|
case "image":
|
|
3081
3081
|
var url = void 0;
|
|
3082
3082
|
if (typeof eachValue === "string") {
|
|
3083
|
-
url = (0, blobModule_1.renderImageUrlFromPath)(devSettings.imageEndpoint,
|
|
3083
|
+
url = (0, blobModule_1.renderImageUrlFromPath)(devSettings.imageEndpoint, model_2.imageCollectionName + "%2F" + props.id, eachListObject.id + "%2F" + eachObject.id, model_2.imageFileName, eachValue, devSettings.bucketName);
|
|
3084
3084
|
}
|
|
3085
3085
|
else if (eachValue instanceof File) {
|
|
3086
3086
|
url = URL.createObjectURL(eachValue);
|
|
@@ -3088,11 +3088,11 @@ exports.DataTemplate = (0, react_1.forwardRef)(function (props, ref) {
|
|
|
3088
3088
|
eachNewList[eachKey] = (react_1.default.createElement("img", { src: url, alt: "", className: "object-contain w-10 h-10" }));
|
|
3089
3089
|
break;
|
|
3090
3090
|
case "reference":
|
|
3091
|
-
if (referencesOptions[eachListObject.id + "." +
|
|
3092
|
-
var selectedReferences = referencesOptions[eachListObject.id + "." +
|
|
3091
|
+
if (referencesOptions[eachListObject.id + "." + model_2.id]) {
|
|
3092
|
+
var selectedReferences = referencesOptions[eachListObject.id + "." + model_2.id].find(function (eachOption) { return eachOption.key === eachValue; });
|
|
3093
3093
|
eachNewList[eachKey] =
|
|
3094
|
-
(
|
|
3095
|
-
? (
|
|
3094
|
+
(model_2 === null || model_2 === void 0 ? void 0 : model_2.name) === "id"
|
|
3095
|
+
? (model_2 === null || model_2 === void 0 ? void 0 : model_2.name) +
|
|
3096
3096
|
" : " +
|
|
3097
3097
|
(eachValue ? (_a = selectedReferences === null || selectedReferences === void 0 ? void 0 : selectedReferences.label) !== null && _a !== void 0 ? _a : " - " : " ")
|
|
3098
3098
|
: eachValue
|
|
@@ -3100,12 +3100,32 @@ exports.DataTemplate = (0, react_1.forwardRef)(function (props, ref) {
|
|
|
3100
3100
|
: " ";
|
|
3101
3101
|
}
|
|
3102
3102
|
break;
|
|
3103
|
+
case "listReference":
|
|
3104
|
+
var refLabelList_1 = [];
|
|
3105
|
+
if (referencesOptions[eachListObject.id + "." + model_2.id]) {
|
|
3106
|
+
if (eachValue && Array.isArray(eachValue)) {
|
|
3107
|
+
eachValue.map(function (eachRefValue) {
|
|
3108
|
+
var _a;
|
|
3109
|
+
var selectedReferences = referencesOptions[eachListObject.id + "." + model_2.id].find(function (eachOption) { return eachOption.key === eachRefValue; });
|
|
3110
|
+
refLabelList_1.push((_a = selectedReferences === null || selectedReferences === void 0 ? void 0 : selectedReferences.label) !== null && _a !== void 0 ? _a : "-");
|
|
3111
|
+
return null;
|
|
3112
|
+
});
|
|
3113
|
+
}
|
|
3114
|
+
}
|
|
3115
|
+
var refLabels = refLabelList_1.length > 0 ? refLabelList_1.join(",") : "-";
|
|
3116
|
+
eachNewList[eachKey] =
|
|
3117
|
+
(model_2 === null || model_2 === void 0 ? void 0 : model_2.name) === "id"
|
|
3118
|
+
? (model_2 === null || model_2 === void 0 ? void 0 : model_2.name) + " : " + (eachValue ? refLabels : "")
|
|
3119
|
+
: eachValue
|
|
3120
|
+
? refLabels
|
|
3121
|
+
: " ";
|
|
3122
|
+
break;
|
|
3103
3123
|
case "date":
|
|
3104
3124
|
var timeStamp = isFirebase && (eachValue === null || eachValue === void 0 ? void 0 : eachValue["_seconds"])
|
|
3105
3125
|
? (eachValue === null || eachValue === void 0 ? void 0 : eachValue["_seconds"]) * 1000
|
|
3106
3126
|
: eachValue;
|
|
3107
3127
|
eachNewList[eachKey] =
|
|
3108
|
-
(
|
|
3128
|
+
(model_2 === null || model_2 === void 0 ? void 0 : model_2.name) +
|
|
3109
3129
|
" : " +
|
|
3110
3130
|
(0, moment_1.default)(timeStamp).format("DD/MM/YYYY h:mm a");
|
|
3111
3131
|
break;
|
|
@@ -3116,7 +3136,7 @@ exports.DataTemplate = (0, react_1.forwardRef)(function (props, ref) {
|
|
|
3116
3136
|
if (eachKey === "id" && typeof eachValue === "string")
|
|
3117
3137
|
eachNewList[eachKey] = eachValue;
|
|
3118
3138
|
else
|
|
3119
|
-
eachNewList[eachKey] = (
|
|
3139
|
+
eachNewList[eachKey] = (model_2 === null || model_2 === void 0 ? void 0 : model_2.name) + " : " + eachValue;
|
|
3120
3140
|
break;
|
|
3121
3141
|
}
|
|
3122
3142
|
}
|