@masterteam/properties 0.0.56 → 0.0.58
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/i18n/ar.json
CHANGED
|
@@ -23,7 +23,9 @@
|
|
|
23
23
|
"typeUser": "مستخدم",
|
|
24
24
|
"typeNumber": "رقم",
|
|
25
25
|
"typeCurrency": "عملة",
|
|
26
|
-
"typeLookup": "قائمة"
|
|
26
|
+
"typeLookup": "قائمة",
|
|
27
|
+
"yes": "نعم",
|
|
28
|
+
"no": "لا"
|
|
27
29
|
},
|
|
28
30
|
"form": {
|
|
29
31
|
"cancelButton": "إلغاء",
|
|
@@ -92,20 +94,18 @@
|
|
|
92
94
|
"statusCreateButton": "إنشاء حالة",
|
|
93
95
|
"statusUpdateButton": "تحديث الحالة",
|
|
94
96
|
"statusColumnDisplay": "العرض",
|
|
95
|
-
"statusColumnKey": "المفتاح",
|
|
96
|
-
"statusColumnType": "النوع",
|
|
97
|
-
"statusColumnColor": "اللون",
|
|
98
|
-
"
|
|
99
|
-
"statusEnglishDisplay": "العرض بالإنجليزية",
|
|
97
|
+
"statusColumnKey": "المفتاح",
|
|
98
|
+
"statusColumnType": "النوع",
|
|
99
|
+
"statusColumnColor": "اللون",
|
|
100
|
+
"statusEnglishDisplay": "العرض بالإنجليزية",
|
|
100
101
|
"statusArabicDisplay": "العرض بالعربية",
|
|
101
102
|
"statusEnglishDescription": "الوصف بالإنجليزية",
|
|
102
103
|
"statusArabicDescription": "الوصف بالعربية",
|
|
103
104
|
"statusType": "نوع الحالة",
|
|
104
|
-
"statusTypePerformance": "أداء",
|
|
105
|
-
"statusTypeNonePerformance": "بدون أداء",
|
|
106
|
-
"statusColor": "اللون",
|
|
107
|
-
"
|
|
108
|
-
"statusFormula": "المعادلة"
|
|
105
|
+
"statusTypePerformance": "أداء",
|
|
106
|
+
"statusTypeNonePerformance": "بدون أداء",
|
|
107
|
+
"statusColor": "اللون",
|
|
108
|
+
"statusFormula": "المعادلة"
|
|
109
109
|
}
|
|
110
110
|
}
|
|
111
|
-
}
|
|
111
|
+
}
|
package/assets/i18n/en.json
CHANGED
|
@@ -23,7 +23,9 @@
|
|
|
23
23
|
"typeUser": "User",
|
|
24
24
|
"typeNumber": "Number",
|
|
25
25
|
"typeCurrency": "Currency",
|
|
26
|
-
"typeLookup": "Lookup"
|
|
26
|
+
"typeLookup": "Lookup",
|
|
27
|
+
"yes": "Yes",
|
|
28
|
+
"no": "No"
|
|
27
29
|
},
|
|
28
30
|
"form": {
|
|
29
31
|
"createNewProperty": "Create New Property",
|
|
@@ -92,20 +94,18 @@
|
|
|
92
94
|
"statusCreateButton": "Create Status",
|
|
93
95
|
"statusUpdateButton": "Update Status",
|
|
94
96
|
"statusColumnDisplay": "Display",
|
|
95
|
-
"statusColumnKey": "Key",
|
|
96
|
-
"statusColumnType": "Type",
|
|
97
|
-
"statusColumnColor": "Color",
|
|
98
|
-
"
|
|
99
|
-
"statusEnglishDisplay": "English Display",
|
|
97
|
+
"statusColumnKey": "Key",
|
|
98
|
+
"statusColumnType": "Type",
|
|
99
|
+
"statusColumnColor": "Color",
|
|
100
|
+
"statusEnglishDisplay": "English Display",
|
|
100
101
|
"statusArabicDisplay": "Arabic Display",
|
|
101
102
|
"statusEnglishDescription": "English Description",
|
|
102
103
|
"statusArabicDescription": "Arabic Description",
|
|
103
104
|
"statusType": "Status Type",
|
|
104
|
-
"statusTypePerformance": "Performance",
|
|
105
|
-
"statusTypeNonePerformance": "Non-Performance",
|
|
106
|
-
"statusColor": "Color",
|
|
107
|
-
"
|
|
108
|
-
"statusFormula": "Formula"
|
|
105
|
+
"statusTypePerformance": "Performance",
|
|
106
|
+
"statusTypeNonePerformance": "Non-Performance",
|
|
107
|
+
"statusColor": "Color",
|
|
108
|
+
"statusFormula": "Formula"
|
|
109
109
|
}
|
|
110
110
|
}
|
|
111
|
-
}
|
|
111
|
+
}
|
|
@@ -6,7 +6,7 @@ import { Router, ActivatedRoute } from '@angular/router';
|
|
|
6
6
|
import { HttpClient, HttpContextToken } from '@angular/common/http';
|
|
7
7
|
import { Action, Selector, State, Store, select } from '@ngxs/store';
|
|
8
8
|
import { of, finalize, startWith, map, distinctUntilChanged, EMPTY, Subscription } from 'rxjs';
|
|
9
|
-
import { CrudStateBase, handleApiRequest, ValidatorConfig, PickListFieldConfig, ColorPickerFieldConfig
|
|
9
|
+
import { CrudStateBase, handleApiRequest, ValidatorConfig, PickListFieldConfig, ColorPickerFieldConfig } from '@masterteam/components';
|
|
10
10
|
import { Breadcrumb } from '@masterteam/components/breadcrumb';
|
|
11
11
|
import { Card } from '@masterteam/components/card';
|
|
12
12
|
import { Avatar } from '@masterteam/components/avatar';
|
|
@@ -1136,8 +1136,14 @@ class PropertiesList {
|
|
|
1136
1136
|
type: 'select',
|
|
1137
1137
|
label: this.transloco.translate('properties.list.columnCalculated'),
|
|
1138
1138
|
options: [
|
|
1139
|
-
{
|
|
1140
|
-
|
|
1139
|
+
{
|
|
1140
|
+
label: this.transloco.translate('properties.list.yes'),
|
|
1141
|
+
value: true,
|
|
1142
|
+
},
|
|
1143
|
+
{
|
|
1144
|
+
label: this.transloco.translate('properties.list.no'),
|
|
1145
|
+
value: false,
|
|
1146
|
+
},
|
|
1141
1147
|
],
|
|
1142
1148
|
},
|
|
1143
1149
|
},
|
|
@@ -1924,7 +1930,7 @@ class StatusItemForm {
|
|
|
1924
1930
|
{
|
|
1925
1931
|
key: 'type',
|
|
1926
1932
|
type: 'select',
|
|
1927
|
-
colSpan:
|
|
1933
|
+
colSpan: 6,
|
|
1928
1934
|
label: this.transloco.translate('properties.form.statusType'),
|
|
1929
1935
|
optionLabel: 'label',
|
|
1930
1936
|
optionValue: 'value',
|
|
@@ -1941,14 +1947,9 @@ class StatusItemForm {
|
|
|
1941
1947
|
},
|
|
1942
1948
|
new ColorPickerFieldConfig({
|
|
1943
1949
|
key: 'color',
|
|
1944
|
-
colSpan:
|
|
1950
|
+
colSpan: 6,
|
|
1945
1951
|
label: this.transloco.translate('properties.form.statusColor'),
|
|
1946
1952
|
}),
|
|
1947
|
-
new IconFieldConfig({
|
|
1948
|
-
key: 'icon',
|
|
1949
|
-
colSpan: 4,
|
|
1950
|
-
label: this.transloco.translate('properties.form.statusIcon'),
|
|
1951
|
-
}),
|
|
1952
1953
|
],
|
|
1953
1954
|
},
|
|
1954
1955
|
],
|
|
@@ -1964,7 +1965,6 @@ class StatusItemForm {
|
|
|
1964
1965
|
},
|
|
1965
1966
|
type: 'Performance',
|
|
1966
1967
|
color: '#64748b',
|
|
1967
|
-
icon: '',
|
|
1968
1968
|
}, { nonNullable: true });
|
|
1969
1969
|
formulaControl = new FormControl(null);
|
|
1970
1970
|
statusType = toSignal(this.statusFormControl.valueChanges.pipe(startWith(this.statusFormControl.value), map((value) => value?.type ?? 'Performance')), {
|
|
@@ -1995,7 +1995,6 @@ class StatusItemForm {
|
|
|
1995
1995
|
},
|
|
1996
1996
|
type: 'Performance',
|
|
1997
1997
|
color: '#64748b',
|
|
1998
|
-
icon: '',
|
|
1999
1998
|
}, {
|
|
2000
1999
|
emitEvent: false,
|
|
2001
2000
|
});
|
|
@@ -2015,7 +2014,6 @@ class StatusItemForm {
|
|
|
2015
2014
|
},
|
|
2016
2015
|
type: status.type ?? 'Performance',
|
|
2017
2016
|
color: status.color ?? '#64748b',
|
|
2018
|
-
icon: status.icon ?? '',
|
|
2019
2017
|
}, { emitEvent: false });
|
|
2020
2018
|
this.formulaControl.patchValue(status.formula, {
|
|
2021
2019
|
emitEvent: false,
|
|
@@ -2037,7 +2035,6 @@ class StatusItemForm {
|
|
|
2037
2035
|
display: value.display,
|
|
2038
2036
|
description: value.description,
|
|
2039
2037
|
color: value.color,
|
|
2040
|
-
icon: value.icon,
|
|
2041
2038
|
formula: this.showFormula() ? this.formulaControl.value : null,
|
|
2042
2039
|
};
|
|
2043
2040
|
const request$ = this.editMode() && this.statusData()
|
|
@@ -2100,10 +2097,6 @@ class StatusConfiguration {
|
|
|
2100
2097
|
key: 'color',
|
|
2101
2098
|
label: this.transloco.translate('properties.form.statusColumnColor'),
|
|
2102
2099
|
},
|
|
2103
|
-
{
|
|
2104
|
-
key: 'icon',
|
|
2105
|
-
label: this.transloco.translate('properties.form.statusColumnIcon'),
|
|
2106
|
-
},
|
|
2107
2100
|
], ...(ngDevMode ? [{ debugName: "tableColumns" }] : /* istanbul ignore next */ []));
|
|
2108
2101
|
tableActions = computed(() => {
|
|
2109
2102
|
if (!this.canManageStatuses()) {
|