@xiriframework/xiri-ng 0.2.44 → 0.2.45

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xiriframework/xiri-ng",
3
- "version": "0.2.44",
3
+ "version": "0.2.45",
4
4
  "description": "Angular UI component library for the Xiri Framework",
5
5
  "license": "Apache-2.0",
6
6
  "repository": {
@@ -20,17 +20,15 @@
20
20
  "tslib": "^2.8.1"
21
21
  },
22
22
  "peerDependencies": {
23
- "@angular/animations": "^21.2",
24
- "@angular/compiler": "^21.2",
25
- "@angular/platform-browser": "^21.2",
26
- "@angular/platform-browser-dynamic": "^21.2",
27
- "@angular/router": "^21.2",
28
- "@angular/common": "^21.2",
29
- "@angular/core": "^21.2",
30
- "@angular/material": "^21.2",
31
- "@angular/cdk": "^21.2",
32
- "@angular/forms": "^21.2",
33
- "@angular/material-date-fns-adapter": "^21.2",
23
+ "@angular/compiler": "^22.0",
24
+ "@angular/platform-browser": "^22.0",
25
+ "@angular/router": "^22.0",
26
+ "@angular/common": "^22.0",
27
+ "@angular/core": "^22.0",
28
+ "@angular/material": "^22.0",
29
+ "@angular/cdk": "^22.0",
30
+ "@angular/forms": "^22.0",
31
+ "@angular/material-date-fns-adapter": "^22.0",
34
32
  "date-fns": "^4.3",
35
33
  "@date-fns/tz": "^1.5",
36
34
  "material-symbols": ">=0.44",
@@ -219,10 +219,12 @@ Array = **UND**-Verknüpfung:
219
219
 
220
220
  ```typescript
221
221
  export interface XiriFormFieldSelectOption {
222
- id: number;
222
+ id: number | string;
223
223
  name: string;
224
224
  disabled?: boolean;
225
225
  color?: XiriColor;
226
+ isGroup?: boolean; // markiert einen Gruppen-/Elternknoten (treeselect)
227
+ children?: XiriFormFieldSelectOption[]; // verschachtelte Optionen → Hierarchie für treeselect
226
228
  }
227
229
  ```
228
230
 
@@ -237,6 +239,19 @@ Inline (statisch):
237
239
  ]}
238
240
  ```
239
241
 
242
+ Hierarchisch (`treeselect` — Optionen über `children` verschachteln; auswählbar sind die Blattknoten, `isGroup` markiert Elternknoten):
243
+
244
+ ```typescript
245
+ { id: 'region', type: 'treeselect', name: 'Region',
246
+ list: [
247
+ { id: 'eu', name: 'Europa', isGroup: true, children: [
248
+ { id: 'at', name: 'Österreich' },
249
+ { id: 'de', name: 'Deutschland' },
250
+ ]},
251
+ { id: 'us', name: 'USA' },
252
+ ]}
253
+ ```
254
+
240
255
  Per Backend (`model` oder `select` mit `url`):
241
256
 
242
257
  ```typescript