@masterteam/properties 0.0.57 → 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
|
@@ -94,20 +94,18 @@
|
|
|
94
94
|
"statusCreateButton": "إنشاء حالة",
|
|
95
95
|
"statusUpdateButton": "تحديث الحالة",
|
|
96
96
|
"statusColumnDisplay": "العرض",
|
|
97
|
-
"statusColumnKey": "المفتاح",
|
|
98
|
-
"statusColumnType": "النوع",
|
|
99
|
-
"statusColumnColor": "اللون",
|
|
100
|
-
"
|
|
101
|
-
"statusEnglishDisplay": "العرض بالإنجليزية",
|
|
97
|
+
"statusColumnKey": "المفتاح",
|
|
98
|
+
"statusColumnType": "النوع",
|
|
99
|
+
"statusColumnColor": "اللون",
|
|
100
|
+
"statusEnglishDisplay": "العرض بالإنجليزية",
|
|
102
101
|
"statusArabicDisplay": "العرض بالعربية",
|
|
103
102
|
"statusEnglishDescription": "الوصف بالإنجليزية",
|
|
104
103
|
"statusArabicDescription": "الوصف بالعربية",
|
|
105
104
|
"statusType": "نوع الحالة",
|
|
106
|
-
"statusTypePerformance": "أداء",
|
|
107
|
-
"statusTypeNonePerformance": "بدون أداء",
|
|
108
|
-
"statusColor": "اللون",
|
|
109
|
-
"
|
|
110
|
-
"statusFormula": "المعادلة"
|
|
105
|
+
"statusTypePerformance": "أداء",
|
|
106
|
+
"statusTypeNonePerformance": "بدون أداء",
|
|
107
|
+
"statusColor": "اللون",
|
|
108
|
+
"statusFormula": "المعادلة"
|
|
111
109
|
}
|
|
112
110
|
}
|
|
113
|
-
}
|
|
111
|
+
}
|
package/assets/i18n/en.json
CHANGED
|
@@ -94,20 +94,18 @@
|
|
|
94
94
|
"statusCreateButton": "Create Status",
|
|
95
95
|
"statusUpdateButton": "Update Status",
|
|
96
96
|
"statusColumnDisplay": "Display",
|
|
97
|
-
"statusColumnKey": "Key",
|
|
98
|
-
"statusColumnType": "Type",
|
|
99
|
-
"statusColumnColor": "Color",
|
|
100
|
-
"
|
|
101
|
-
"statusEnglishDisplay": "English Display",
|
|
97
|
+
"statusColumnKey": "Key",
|
|
98
|
+
"statusColumnType": "Type",
|
|
99
|
+
"statusColumnColor": "Color",
|
|
100
|
+
"statusEnglishDisplay": "English Display",
|
|
102
101
|
"statusArabicDisplay": "Arabic Display",
|
|
103
102
|
"statusEnglishDescription": "English Description",
|
|
104
103
|
"statusArabicDescription": "Arabic Description",
|
|
105
104
|
"statusType": "Status Type",
|
|
106
|
-
"statusTypePerformance": "Performance",
|
|
107
|
-
"statusTypeNonePerformance": "Non-Performance",
|
|
108
|
-
"statusColor": "Color",
|
|
109
|
-
"
|
|
110
|
-
"statusFormula": "Formula"
|
|
105
|
+
"statusTypePerformance": "Performance",
|
|
106
|
+
"statusTypeNonePerformance": "Non-Performance",
|
|
107
|
+
"statusColor": "Color",
|
|
108
|
+
"statusFormula": "Formula"
|
|
111
109
|
}
|
|
112
110
|
}
|
|
113
|
-
}
|
|
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';
|
|
@@ -1930,7 +1930,7 @@ class StatusItemForm {
|
|
|
1930
1930
|
{
|
|
1931
1931
|
key: 'type',
|
|
1932
1932
|
type: 'select',
|
|
1933
|
-
colSpan:
|
|
1933
|
+
colSpan: 6,
|
|
1934
1934
|
label: this.transloco.translate('properties.form.statusType'),
|
|
1935
1935
|
optionLabel: 'label',
|
|
1936
1936
|
optionValue: 'value',
|
|
@@ -1947,14 +1947,9 @@ class StatusItemForm {
|
|
|
1947
1947
|
},
|
|
1948
1948
|
new ColorPickerFieldConfig({
|
|
1949
1949
|
key: 'color',
|
|
1950
|
-
colSpan:
|
|
1950
|
+
colSpan: 6,
|
|
1951
1951
|
label: this.transloco.translate('properties.form.statusColor'),
|
|
1952
1952
|
}),
|
|
1953
|
-
new IconFieldConfig({
|
|
1954
|
-
key: 'icon',
|
|
1955
|
-
colSpan: 4,
|
|
1956
|
-
label: this.transloco.translate('properties.form.statusIcon'),
|
|
1957
|
-
}),
|
|
1958
1953
|
],
|
|
1959
1954
|
},
|
|
1960
1955
|
],
|
|
@@ -1970,7 +1965,6 @@ class StatusItemForm {
|
|
|
1970
1965
|
},
|
|
1971
1966
|
type: 'Performance',
|
|
1972
1967
|
color: '#64748b',
|
|
1973
|
-
icon: '',
|
|
1974
1968
|
}, { nonNullable: true });
|
|
1975
1969
|
formulaControl = new FormControl(null);
|
|
1976
1970
|
statusType = toSignal(this.statusFormControl.valueChanges.pipe(startWith(this.statusFormControl.value), map((value) => value?.type ?? 'Performance')), {
|
|
@@ -2001,7 +1995,6 @@ class StatusItemForm {
|
|
|
2001
1995
|
},
|
|
2002
1996
|
type: 'Performance',
|
|
2003
1997
|
color: '#64748b',
|
|
2004
|
-
icon: '',
|
|
2005
1998
|
}, {
|
|
2006
1999
|
emitEvent: false,
|
|
2007
2000
|
});
|
|
@@ -2021,7 +2014,6 @@ class StatusItemForm {
|
|
|
2021
2014
|
},
|
|
2022
2015
|
type: status.type ?? 'Performance',
|
|
2023
2016
|
color: status.color ?? '#64748b',
|
|
2024
|
-
icon: status.icon ?? '',
|
|
2025
2017
|
}, { emitEvent: false });
|
|
2026
2018
|
this.formulaControl.patchValue(status.formula, {
|
|
2027
2019
|
emitEvent: false,
|
|
@@ -2043,7 +2035,6 @@ class StatusItemForm {
|
|
|
2043
2035
|
display: value.display,
|
|
2044
2036
|
description: value.description,
|
|
2045
2037
|
color: value.color,
|
|
2046
|
-
icon: value.icon,
|
|
2047
2038
|
formula: this.showFormula() ? this.formulaControl.value : null,
|
|
2048
2039
|
};
|
|
2049
2040
|
const request$ = this.editMode() && this.statusData()
|
|
@@ -2106,10 +2097,6 @@ class StatusConfiguration {
|
|
|
2106
2097
|
key: 'color',
|
|
2107
2098
|
label: this.transloco.translate('properties.form.statusColumnColor'),
|
|
2108
2099
|
},
|
|
2109
|
-
{
|
|
2110
|
-
key: 'icon',
|
|
2111
|
-
label: this.transloco.translate('properties.form.statusColumnIcon'),
|
|
2112
|
-
},
|
|
2113
2100
|
], ...(ngDevMode ? [{ debugName: "tableColumns" }] : /* istanbul ignore next */ []));
|
|
2114
2101
|
tableActions = computed(() => {
|
|
2115
2102
|
if (!this.canManageStatuses()) {
|