@masterteam/properties 0.0.49 → 0.0.50
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.
|
@@ -1140,7 +1140,7 @@ class PropertiesList {
|
|
|
1140
1140
|
color: 'danger',
|
|
1141
1141
|
variant: 'outlined',
|
|
1142
1142
|
action: (row) => this.deleteRow(row),
|
|
1143
|
-
hidden: (row) => !!row.isSystem,
|
|
1143
|
+
hidden: (row) => !!row.isSystem || row.id < 0,
|
|
1144
1144
|
confirmation: {
|
|
1145
1145
|
type: 'popup',
|
|
1146
1146
|
confirmationType: 'delete',
|
|
@@ -1152,6 +1152,7 @@ class PropertiesList {
|
|
|
1152
1152
|
tooltip: this.transloco.translate('properties.list.editAction'),
|
|
1153
1153
|
color: 'primary',
|
|
1154
1154
|
action: (row) => this.editRow(row),
|
|
1155
|
+
hidden: (row) => row.id < 0,
|
|
1155
1156
|
},
|
|
1156
1157
|
], ...(ngDevMode ? [{ debugName: "rowActions" }] : /* istanbul ignore next */ []));
|
|
1157
1158
|
loading = this.facade.isLoadingAll;
|
|
@@ -2378,10 +2379,6 @@ const ATTACHMENT_ACCEPT = [
|
|
|
2378
2379
|
key: '.gzip',
|
|
2379
2380
|
name: 'gzip',
|
|
2380
2381
|
},
|
|
2381
|
-
{
|
|
2382
|
-
key: '.gzip',
|
|
2383
|
-
name: 'gzip',
|
|
2384
|
-
},
|
|
2385
2382
|
];
|
|
2386
2383
|
class AttachmentConfiguration {
|
|
2387
2384
|
transloco = inject(TranslocoService);
|
|
@@ -2432,6 +2429,9 @@ class PropertyForm {
|
|
|
2432
2429
|
router = inject(Router);
|
|
2433
2430
|
route = inject(ActivatedRoute);
|
|
2434
2431
|
transloco = inject(TranslocoService);
|
|
2432
|
+
activeLang = toSignal(this.transloco.langChanges$, {
|
|
2433
|
+
initialValue: this.transloco.getActiveLang(),
|
|
2434
|
+
});
|
|
2435
2435
|
propertyId = input('', ...(ngDevMode ? [{ debugName: "propertyId" }] : /* istanbul ignore next */ []));
|
|
2436
2436
|
propertyTypes = this.facade.propertyTypes;
|
|
2437
2437
|
legacyReplacedViewTypes = [
|
|
@@ -2521,7 +2521,7 @@ class PropertyForm {
|
|
|
2521
2521
|
key: 'viewType',
|
|
2522
2522
|
type: 'select',
|
|
2523
2523
|
placeholder: this.transloco.translate('properties.form.selectPropertyType'),
|
|
2524
|
-
optionLabel:
|
|
2524
|
+
optionLabel: `label.${this.activeLang() === 'ar' ? 'ar' : 'en'}`,
|
|
2525
2525
|
optionValue: 'viewType',
|
|
2526
2526
|
cssClass: 'w-1/2',
|
|
2527
2527
|
options: this.availablePropertyTypes(),
|