@yuuvis/client-framework 2.13.0 → 2.14.0

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.
@@ -1334,7 +1334,9 @@ class OrganizationSetComponent extends AbstractMatFormField {
1334
1334
  const types = this.types();
1335
1335
  if (c?.length) {
1336
1336
  const classifications = this.#system.getClassifications(c);
1337
- return classifications.has(Classification.STRING_ORGANIZATION_SET) ? classifications.get(Classification.STRING_ORGANIZATION_SET).options : [];
1337
+ return classifications.has(Classification.STRING_ORGANIZATION_SET)
1338
+ ? classifications.get(Classification.STRING_ORGANIZATION_SET).options
1339
+ : [];
1338
1340
  }
1339
1341
  else if (types) {
1340
1342
  return types;
@@ -1354,7 +1356,11 @@ class OrganizationSetComponent extends AbstractMatFormField {
1354
1356
  #dRef;
1355
1357
  #targetTypes;
1356
1358
  writeValue(value) {
1357
- const val = Array.isArray(value) ? value.map((v) => (typeof v === 'string' ? JSON.parse(v) : v)) : value ? [JSON.parse(value)] : [];
1359
+ const val = Array.isArray(value)
1360
+ ? value.map((v) => (typeof v === 'string' ? JSON.parse(v) : v))
1361
+ : value
1362
+ ? [JSON.parse(value)]
1363
+ : [];
1358
1364
  this.innerValue = val;
1359
1365
  this.value = val.map((v) => JSON.stringify(v));
1360
1366
  if (!this.multiselect) {
@@ -1391,8 +1397,6 @@ class OrganizationSetComponent extends AbstractMatFormField {
1391
1397
  }
1392
1398
  autocompleteFn(query) {
1393
1399
  if (query.length >= this.autocompleteMinLength()) {
1394
- console.log(this.#targetTypes());
1395
- console.log(query);
1396
1400
  this.#idmService.queryOrganizationEntity(query, this.#targetTypes()).subscribe({
1397
1401
  next: (entries) => {
1398
1402
  this.autocompleteRes = entries
@@ -1436,7 +1440,15 @@ class OrganizationSetComponent extends AbstractMatFormField {
1436
1440
  }
1437
1441
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.20", ngImport: i0, type: OrganizationSetComponent, decorators: [{
1438
1442
  type: Component,
1439
- args: [{ selector: 'yuv-organization-set', imports: [CommonModule, FormsModule, YuvAutocompleteModule, MatTooltipModule, MatIconModule, ReactiveFormsModule, TranslateModule$1], providers: [{ provide: MatFormFieldControl, useExisting: OrganizationSetComponent }], template: "<yuv-autocomplete\n [busy]=\"busy()\"\n [formControl]=\"acFormControl\"\n #autocomplete\n [placeholder]=\"placeholder\"\n [disabled]=\"readonly()\"\n [autocompleteValues]=\"autocompleteRes\"\n [forceSelection]=\"true\"\n (autocompleteFnc)=\"autocompleteFn($event)\"\n [multiple]=\"true\"\n [maxItems]=\"multiselect() ? -1 : 1\"\n>\n <!-- template for item inside the dropdown -->\n <ng-template #optionTemplate let-item>\n <span class=\"chip\">{{ item.value.title }}</span>\n </ng-template>\n\n <!-- template for chip -->\n <ng-template #chipTemplate let-item>\n <span class=\"chip\">\n {{ item.value.title || '...' }}\n </span>\n </ng-template>\n</yuv-autocomplete>\n\n<mat-icon class=\"ymt-icon--size-s\" [matTooltip]=\"'yuv.form.element.organization-set.classify.icon.title' | translate\">\n {{ multiselect() ? 'group' : 'person' }}\n</mat-icon>\n", styles: [":host{display:flex;align-items:center}:host yuv-autocomplete{flex:1}:host mat-icon{color:var(--ymt-text-color-subtle)}\n"] }]
1443
+ args: [{ selector: 'yuv-organization-set', imports: [
1444
+ CommonModule,
1445
+ FormsModule,
1446
+ YuvAutocompleteModule,
1447
+ MatTooltipModule,
1448
+ MatIconModule,
1449
+ ReactiveFormsModule,
1450
+ TranslateModule$1
1451
+ ], providers: [{ provide: MatFormFieldControl, useExisting: OrganizationSetComponent }], template: "<yuv-autocomplete\n [busy]=\"busy()\"\n [formControl]=\"acFormControl\"\n #autocomplete\n [placeholder]=\"placeholder\"\n [disabled]=\"readonly()\"\n [autocompleteValues]=\"autocompleteRes\"\n [forceSelection]=\"true\"\n (autocompleteFnc)=\"autocompleteFn($event)\"\n [multiple]=\"true\"\n [maxItems]=\"multiselect() ? -1 : 1\"\n>\n <!-- template for item inside the dropdown -->\n <ng-template #optionTemplate let-item>\n <span class=\"chip\">{{ item.value.title }}</span>\n </ng-template>\n\n <!-- template for chip -->\n <ng-template #chipTemplate let-item>\n <span class=\"chip\">\n {{ item.value.title || '...' }}\n </span>\n </ng-template>\n</yuv-autocomplete>\n\n<mat-icon class=\"ymt-icon--size-s\" [matTooltip]=\"'yuv.form.element.organization-set.classify.icon.title' | translate\">\n {{ multiselect() ? 'group' : 'person' }}\n</mat-icon>\n", styles: [":host{display:flex;align-items:center}:host yuv-autocomplete{flex:1}:host mat-icon{color:var(--ymt-text-color-subtle)}\n"] }]
1440
1452
  }] });
1441
1453
 
1442
1454
  class DateRangePickerComponent {