@yuuvis/client-framework 3.18.0 → 3.20.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.
Files changed (27) hide show
  1. package/fesm2022/yuuvis-client-framework-forms.mjs +4 -2
  2. package/fesm2022/yuuvis-client-framework-forms.mjs.map +1 -1
  3. package/fesm2022/yuuvis-client-framework-object-details.mjs +2 -1
  4. package/fesm2022/yuuvis-client-framework-object-details.mjs.map +1 -1
  5. package/fesm2022/yuuvis-client-framework-object-flavor.mjs +2 -1
  6. package/fesm2022/yuuvis-client-framework-object-flavor.mjs.map +1 -1
  7. package/fesm2022/yuuvis-client-framework-object-form.mjs +3 -1
  8. package/fesm2022/yuuvis-client-framework-object-form.mjs.map +1 -1
  9. package/fesm2022/yuuvis-client-framework-object-preview.mjs +25 -13
  10. package/fesm2022/yuuvis-client-framework-object-preview.mjs.map +1 -1
  11. package/fesm2022/yuuvis-client-framework-object-relationship.mjs +9 -3
  12. package/fesm2022/yuuvis-client-framework-object-relationship.mjs.map +1 -1
  13. package/fesm2022/yuuvis-client-framework-object-summary.mjs +4 -1
  14. package/fesm2022/yuuvis-client-framework-object-summary.mjs.map +1 -1
  15. package/fesm2022/yuuvis-client-framework-renderer.mjs +100 -16
  16. package/fesm2022/yuuvis-client-framework-renderer.mjs.map +1 -1
  17. package/fesm2022/yuuvis-client-framework-smart-search.mjs +433 -69
  18. package/fesm2022/yuuvis-client-framework-smart-search.mjs.map +1 -1
  19. package/fesm2022/yuuvis-client-framework-tile-list.mjs +2 -2
  20. package/fesm2022/yuuvis-client-framework-tile-list.mjs.map +1 -1
  21. package/package.json +5 -5
  22. package/smart-search/README.md +57 -7
  23. package/types/yuuvis-client-framework-object-form.d.ts +6 -0
  24. package/types/yuuvis-client-framework-object-preview.d.ts +14 -1
  25. package/types/yuuvis-client-framework-renderer.d.ts +40 -6
  26. package/types/yuuvis-client-framework-smart-search.d.ts +171 -22
  27. package/types/yuuvis-client-framework-tile-list.d.ts +5 -0
@@ -6,7 +6,7 @@ import { FormControl, Validators, ReactiveFormsModule, FormBuilder, NG_VALUE_ACC
6
6
  import { MatFormFieldControl, MatFormFieldModule } from '@angular/material/form-field';
7
7
  import * as i1 from '@angular/material/select';
8
8
  import { MatSelectModule } from '@angular/material/select';
9
- import { SystemService, TranslateService, Classification, TranslatePipe, Situation, Operator, OperatorLabel, Utils, CatalogService, LocaleNumberPipe, FileSizePipe, IdmService, UserService, AppCacheService, FREE_TEXT_OPTION, USER_ID_REGEX, STORAGE_ROLES_KEY, SearchUtils, LocaleDatePipe, SearchService, DmsService, ObjectConfigService, DmsObject, BaseObjectTypeField, ClassificationPrefix } from '@yuuvis/client-core';
9
+ import { SystemService, TranslateService, Classification, TranslatePipe, Situation, Utils, Operator, OperatorLabel, CatalogService, LocaleNumberPipe, FileSizePipe, IdmService, UserService, AppCacheService, FREE_TEXT_OPTION, USER_ID_REGEX, STORAGE_ROLES_KEY, SearchUtils, LocaleDatePipe, SearchService, DmsService, ObjectConfigService, DmsObject, BaseObjectTypeField, ClassificationPrefix } from '@yuuvis/client-core';
10
10
  import { AbstractMatFormField, injectNgControl, FormTranslateService, DialogComponent, ScrollButtonsComponent } from '@yuuvis/client-framework/common';
11
11
  import * as i1$3 from '@angular/common';
12
12
  import { NgClass, CommonModule } from '@angular/common';
@@ -566,7 +566,9 @@ class DatetimeComponent extends AbstractMatFormField {
566
566
  }
567
567
  writeValue(value) {
568
568
  if (typeof value === 'string') {
569
- value = new Date(value);
569
+ // a bare 'yyyy-MM-dd' is a calendar day: parsing it as UTC midnight would show (and then
570
+ // re-propagate) the previous day for users west of Greenwich
571
+ value = Utils.parseDateValue(value);
570
572
  this.#propagate(value);
571
573
  }
572
574
  else if (value && !this.withTime()) {