@masterteam/components 0.0.326 → 0.0.327
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/assets/common.css +1 -1
- package/assets/i18n/ar.json +2 -1
- package/assets/i18n/en.json +2 -1
- package/fesm2022/masterteam-components-business-fields.mjs +6 -1
- package/fesm2022/masterteam-components-business-fields.mjs.map +1 -1
- package/fesm2022/masterteam-components-formula.mjs +4 -1
- package/fesm2022/masterteam-components-formula.mjs.map +1 -1
- package/fesm2022/masterteam-components-select-field.mjs +16 -2
- package/fesm2022/masterteam-components-select-field.mjs.map +1 -1
- package/fesm2022/masterteam-components-sidebar.mjs +2 -2
- package/fesm2022/masterteam-components-sidebar.mjs.map +1 -1
- package/package.json +1 -1
- package/types/masterteam-components-entities.d.ts +2 -2
- package/types/masterteam-components-select-field.d.ts +6 -0
package/assets/i18n/ar.json
CHANGED
|
@@ -120,7 +120,8 @@
|
|
|
120
120
|
"edit": "تعديل",
|
|
121
121
|
"delete": "حذف",
|
|
122
122
|
"readingNotAllowed": "القراءة غير مسموح بها لهذا الحقل.",
|
|
123
|
-
"accessDenied": "لا تملك صلاحية الوصول إلى هذه العناصر.",
|
|
123
|
+
"accessDenied": "لا تملك صلاحية الوصول إلى هذه العناصر.",
|
|
124
|
+
"availableAfterSave": "تظهر السجلات المرتبطة هنا بعد حفظ السجل.",
|
|
124
125
|
"missingConfiguration": "لم يتم إعداد هذا الحقل بالكامل.",
|
|
125
126
|
"noRelatedItems": "لا توجد عناصر مرتبطة.",
|
|
126
127
|
"noLocalRows": "لا توجد عناصر بعد.",
|
package/assets/i18n/en.json
CHANGED
|
@@ -120,7 +120,8 @@
|
|
|
120
120
|
"edit": "Edit",
|
|
121
121
|
"delete": "Delete",
|
|
122
122
|
"readingNotAllowed": "Reading is not allowed for this field.",
|
|
123
|
-
"accessDenied": "You do not have access to these records.",
|
|
123
|
+
"accessDenied": "You do not have access to these records.",
|
|
124
|
+
"availableAfterSave": "Linked records appear here once the record is saved.",
|
|
124
125
|
"missingConfiguration": "This field is not fully configured.",
|
|
125
126
|
"noRelatedItems": "No related items.",
|
|
126
127
|
"noLocalRows": "No items yet.",
|
|
@@ -2423,7 +2423,12 @@ class EntityListField {
|
|
|
2423
2423
|
}
|
|
2424
2424
|
switch (this.metadataFailure()) {
|
|
2425
2425
|
case 'forbidden':
|
|
2426
|
-
|
|
2426
|
+
// A form with no record behind it yet — a new level record, or the
|
|
2427
|
+
// form builder's preview — has no list to show either way. Say when
|
|
2428
|
+
// it will have one instead of reporting an access problem.
|
|
2429
|
+
return this.runtimeContext()?.sourceId == null
|
|
2430
|
+
? 'components.entityListField.availableAfterSave'
|
|
2431
|
+
: 'components.entityListField.accessDenied';
|
|
2427
2432
|
case 'unavailable':
|
|
2428
2433
|
return 'components.entityListField.missingConfiguration';
|
|
2429
2434
|
case 'failed':
|