geonetwork-ui 2.3.0-dev.e07c5606 → 2.3.0-dev.f54cc11e

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 (50) hide show
  1. package/esm2022/libs/feature/editor/src/lib/components/record-form/form-field/form-field-resource-updated/form-field-resource-updated.component.mjs +15 -0
  2. package/esm2022/libs/feature/editor/src/lib/components/record-form/form-field/form-field.component.mjs +9 -4
  3. package/esm2022/libs/feature/editor/src/lib/fields.config.mjs +8 -1
  4. package/esm2022/libs/ui/inputs/src/index.mjs +15 -15
  5. package/esm2022/libs/ui/inputs/src/lib/date-picker/date-picker.component.mjs +22 -0
  6. package/esm2022/libs/ui/inputs/src/lib/date-range-picker/date-range-picker.component.mjs +7 -5
  7. package/esm2022/libs/ui/inputs/src/lib/ui-inputs.module.mjs +7 -6
  8. package/esm2022/translations/de.json +1 -0
  9. package/esm2022/translations/en.json +1 -0
  10. package/esm2022/translations/es.json +1 -0
  11. package/esm2022/translations/fr.json +1 -0
  12. package/esm2022/translations/it.json +1 -0
  13. package/esm2022/translations/nl.json +1 -0
  14. package/esm2022/translations/pt.json +1 -0
  15. package/fesm2022/geonetwork-ui.mjs +746 -701
  16. package/fesm2022/geonetwork-ui.mjs.map +1 -1
  17. package/libs/feature/editor/src/lib/components/record-form/form-field/form-field-resource-updated/form-field-resource-updated.component.d.ts +8 -0
  18. package/libs/feature/editor/src/lib/components/record-form/form-field/form-field-resource-updated/form-field-resource-updated.component.d.ts.map +1 -0
  19. package/libs/feature/editor/src/lib/components/record-form/form-field/form-field.component.d.ts +1 -0
  20. package/libs/feature/editor/src/lib/components/record-form/form-field/form-field.component.d.ts.map +1 -1
  21. package/libs/feature/editor/src/lib/fields.config.d.ts.map +1 -1
  22. package/libs/ui/inputs/src/index.d.ts +14 -14
  23. package/libs/ui/inputs/src/index.d.ts.map +1 -1
  24. package/libs/ui/inputs/src/lib/date-picker/date-picker.component.d.ts +9 -0
  25. package/libs/ui/inputs/src/lib/date-picker/date-picker.component.d.ts.map +1 -0
  26. package/libs/ui/inputs/src/lib/date-range-picker/date-range-picker.component.d.ts +1 -1
  27. package/libs/ui/inputs/src/lib/date-range-picker/date-range-picker.component.d.ts.map +1 -1
  28. package/libs/ui/inputs/src/lib/ui-inputs.module.d.ts +23 -23
  29. package/package.json +1 -1
  30. package/src/libs/common/fixtures/src/lib/records.fixtures.ts +2 -2
  31. package/src/libs/feature/editor/src/lib/components/record-form/form-field/form-field-resource-updated/form-field-resource-updated.component.css +0 -0
  32. package/src/libs/feature/editor/src/lib/components/record-form/form-field/form-field-resource-updated/form-field-resource-updated.component.html +4 -0
  33. package/src/libs/feature/editor/src/lib/components/record-form/form-field/form-field-resource-updated/form-field-resource-updated.component.ts +15 -0
  34. package/src/libs/feature/editor/src/lib/components/record-form/form-field/form-field.component.html +5 -0
  35. package/src/libs/feature/editor/src/lib/components/record-form/form-field/form-field.component.ts +6 -1
  36. package/src/libs/feature/editor/src/lib/fields.config.ts +7 -0
  37. package/src/libs/ui/inputs/src/index.ts +14 -14
  38. package/src/libs/ui/inputs/src/lib/date-picker/date-picker.component.css +3 -0
  39. package/src/libs/ui/inputs/src/lib/date-picker/date-picker.component.html +11 -0
  40. package/src/libs/ui/inputs/src/lib/date-picker/date-picker.component.ts +16 -0
  41. package/src/libs/ui/inputs/src/lib/date-range-picker/date-range-picker.component.ts +8 -1
  42. package/src/libs/ui/inputs/src/lib/ui-inputs.module.ts +1 -1
  43. package/translations/de.json +1 -0
  44. package/translations/en.json +1 -0
  45. package/translations/es.json +1 -0
  46. package/translations/fr.json +1 -0
  47. package/translations/it.json +1 -0
  48. package/translations/nl.json +1 -0
  49. package/translations/pt.json +1 -0
  50. package/translations/sk.json +1 -0
@@ -0,0 +1,8 @@
1
+ import { FormControl } from '@angular/forms';
2
+ import * as i0 from "@angular/core";
3
+ export declare class FormFieldResourceUpdatedComponent {
4
+ control: FormControl;
5
+ static ɵfac: i0.ɵɵFactoryDeclaration<FormFieldResourceUpdatedComponent, never>;
6
+ static ɵcmp: i0.ɵɵComponentDeclaration<FormFieldResourceUpdatedComponent, "gn-ui-form-field-resource-updated", never, { "control": { "alias": "control"; "required": false; }; }, {}, never, never, true, never>;
7
+ }
8
+ //# sourceMappingURL=form-field-resource-updated.component.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"form-field-resource-updated.component.d.ts","sourceRoot":"","sources":["../../../../../../../../../src/libs/feature/editor/src/lib/components/record-form/form-field/form-field-resource-updated/form-field-resource-updated.component.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAA;;AAG5C,qBAQa,iCAAiC;IACnC,OAAO,EAAG,WAAW,CAAA;yCADnB,iCAAiC;2CAAjC,iCAAiC;CAE7C"}
@@ -25,6 +25,7 @@ export declare class FormFieldComponent {
25
25
  get isTitle(): boolean;
26
26
  get isAbstract(): boolean;
27
27
  get isLicenses(): boolean;
28
+ get isResourceUpdated(): boolean;
28
29
  get withoutWrapper(): boolean;
29
30
  static ɵfac: i0.ɵɵFactoryDeclaration<FormFieldComponent, never>;
30
31
  static ɵcmp: i0.ɵɵComponentDeclaration<FormFieldComponent, "gn-ui-form-field", never, { "model": { "alias": "model"; "required": false; }; "config": { "alias": "config"; "required": false; }; "value": { "alias": "value"; "required": false; }; }, { "valueChange": "valueChange"; }, never, never, true, never>;
@@ -1 +1 @@
1
- {"version":3,"file":"form-field.component.d.ts","sourceRoot":"","sources":["../../../../../../../../src/libs/feature/editor/src/lib/components/record-form/form-field/form-field.component.ts"],"names":[],"mappings":"AACA,OAAO,EAGL,UAAU,EAIX,MAAM,eAAe,CAAA;AACtB,OAAO,EAAE,WAAW,EAAuB,MAAM,gBAAgB,CAAA;AAMjE,OAAO,EAAE,UAAU,EAAE,MAAM,MAAM,CAAA;AASjC,OAAO,EAAE,eAAe,EAAE,MAAM,oBAAoB,CAAA;;AAEpD,qBAwBa,kBAAkB;IACpB,KAAK,EAAE,MAAM,CAAA;IACb,MAAM,EAAE,eAAe,CAAA;IAChC,IAAa,KAAK,CAAC,CAAC,EAAE,OAAO,EAI5B;IACS,WAAW,EAAE,UAAU,CAAC,OAAO,CAAC,CAAA;IAEjB,UAAU,EAAE,UAAU,CAAA;IAE/C,WAAW,mBAAoB;;IAM/B,eAAe;IAIf,IAAI,UAAU,2DAQb;IAED,IAAI,aAAa,YAShB;IACD,IAAI,WAAW,YAEd;IACD,IAAI,oBAAoB,YAEvB;IACD,IAAI,qBAAqB,YAExB;IACD,IAAI,YAAY,YAEf;IACD,IAAI,aAAa,YAEhB;IAED,IAAI,SAAS,YAEZ;IACD,IAAI,aAAa,YAEhB;IACD,IAAI,cAAc,YAEjB;IAED,IAAI,OAAO,YAEV;IACD,IAAI,UAAU,YAEb;IACD,IAAI,UAAU,YAEb;IAED,IAAI,cAAc,YAEjB;yCAhFU,kBAAkB;2CAAlB,kBAAkB;CAiF9B"}
1
+ {"version":3,"file":"form-field.component.d.ts","sourceRoot":"","sources":["../../../../../../../../src/libs/feature/editor/src/lib/components/record-form/form-field/form-field.component.ts"],"names":[],"mappings":"AACA,OAAO,EAGL,UAAU,EAIX,MAAM,eAAe,CAAA;AACtB,OAAO,EAAE,WAAW,EAAuB,MAAM,gBAAgB,CAAA;AAMjE,OAAO,EAAE,UAAU,EAAE,MAAM,MAAM,CAAA;AAUjC,OAAO,EAAE,eAAe,EAAE,MAAM,oBAAoB,CAAA;;AAEpD,qBAyBa,kBAAkB;IACpB,KAAK,EAAE,MAAM,CAAA;IACb,MAAM,EAAE,eAAe,CAAA;IAChC,IAAa,KAAK,CAAC,CAAC,EAAE,OAAO,EAI5B;IACS,WAAW,EAAE,UAAU,CAAC,OAAO,CAAC,CAAA;IAEjB,UAAU,EAAE,UAAU,CAAA;IAE/C,WAAW,mBAAoB;;IAM/B,eAAe;IAIf,IAAI,UAAU,2DAQb;IAED,IAAI,aAAa,YAShB;IACD,IAAI,WAAW,YAEd;IACD,IAAI,oBAAoB,YAEvB;IACD,IAAI,qBAAqB,YAExB;IACD,IAAI,YAAY,YAEf;IACD,IAAI,aAAa,YAEhB;IAED,IAAI,SAAS,YAEZ;IACD,IAAI,aAAa,YAEhB;IACD,IAAI,cAAc,YAEjB;IAED,IAAI,OAAO,YAEV;IACD,IAAI,UAAU,YAEb;IACD,IAAI,UAAU,YAEb;IACD,IAAI,iBAAiB,YAEpB;IAED,IAAI,cAAc,YAEjB;yCAnFU,kBAAkB;2CAAlB,kBAAkB;CAoF9B"}
@@ -1 +1 @@
1
- {"version":3,"file":"fields.config.d.ts","sourceRoot":"","sources":["../../../../../src/libs/feature/editor/src/lib/fields.config.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,kBAAkB,EAAE,MAAM,uBAAuB,CAAA;AAE1D,eAAO,MAAM,cAAc,EAAE,kBAuC5B,CAAA"}
1
+ {"version":3,"file":"fields.config.d.ts","sourceRoot":"","sources":["../../../../../src/libs/feature/editor/src/lib/fields.config.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,kBAAkB,EAAE,MAAM,uBAAuB,CAAA;AAE1D,eAAO,MAAM,cAAc,EAAE,kBA8C5B,CAAA"}
@@ -1,22 +1,22 @@
1
- export * from './lib/dropdown-selector/dropdown-selector.component';
2
- export * from './lib/dropdown-selector/dropdown-selector.model';
3
- export * from './lib/dropdown-multiselect/dropdown-multiselect.component';
4
- export * from './lib/dropdown-multiselect/dropdown-multiselect.model';
5
- export * from './lib/text-input/text-input.component';
6
- export * from './lib/chips-input/chips-input.component';
7
- export * from './lib/text-area/text-area.component';
8
1
  export * from './lib/autocomplete/autocomplete.component';
9
- export * from './lib/star-toggle/star-toggle.component';
10
2
  export * from './lib/button/button.component';
11
- export * from './lib/viewport-intersector/viewport-intersector.component';
12
3
  export * from './lib/check-toggle/check-toggle.component';
13
- export * from './lib/ui-inputs.module';
4
+ export * from './lib/checkbox/checkbox.component';
5
+ export * from './lib/chips-input/chips-input.component';
14
6
  export * from './lib/copy-text-button/copy-text-button.component';
7
+ export * from './lib/date-picker/date-picker.component';
8
+ export * from './lib/date-range-picker/date-range-picker.component';
15
9
  export * from './lib/drag-and-drop-file-input/drag-and-drop-file-input.component';
10
+ export * from './lib/dropdown-multiselect/dropdown-multiselect.component';
11
+ export * from './lib/dropdown-multiselect/dropdown-multiselect.model';
12
+ export * from './lib/dropdown-selector/dropdown-selector.component';
13
+ export * from './lib/dropdown-selector/dropdown-selector.model';
14
+ export * from './lib/editable-label/editable-label.directive';
16
15
  export * from './lib/navigation-button/navigation-button.component';
17
- export * from './lib/viewport-intersector/viewport-intersector.component';
18
- export * from './lib/checkbox/checkbox.component';
19
16
  export * from './lib/search-input/search-input.component';
20
- export * from './lib/date-range-picker/date-range-picker.component';
21
- export * from './lib/editable-label/editable-label.directive';
17
+ export * from './lib/star-toggle/star-toggle.component';
18
+ export * from './lib/text-area/text-area.component';
19
+ export * from './lib/text-input/text-input.component';
20
+ export * from './lib/ui-inputs.module';
21
+ export * from './lib/viewport-intersector/viewport-intersector.component';
22
22
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/libs/ui/inputs/src/index.ts"],"names":[],"mappings":"AAAA,cAAc,qDAAqD,CAAA;AACnE,cAAc,iDAAiD,CAAA;AAC/D,cAAc,2DAA2D,CAAA;AACzE,cAAc,uDAAuD,CAAA;AACrE,cAAc,uCAAuC,CAAA;AACrD,cAAc,yCAAyC,CAAA;AACvD,cAAc,qCAAqC,CAAA;AACnD,cAAc,2CAA2C,CAAA;AACzD,cAAc,yCAAyC,CAAA;AACvD,cAAc,+BAA+B,CAAA;AAC7C,cAAc,2DAA2D,CAAA;AACzE,cAAc,2CAA2C,CAAA;AACzD,cAAc,wBAAwB,CAAA;AACtC,cAAc,mDAAmD,CAAA;AACjE,cAAc,mEAAmE,CAAA;AACjF,cAAc,qDAAqD,CAAA;AACnE,cAAc,2DAA2D,CAAA;AACzE,cAAc,mCAAmC,CAAA;AACjD,cAAc,2CAA2C,CAAA;AACzD,cAAc,qDAAqD,CAAA;AACnE,cAAc,+CAA+C,CAAA"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/libs/ui/inputs/src/index.ts"],"names":[],"mappings":"AAAA,cAAc,2CAA2C,CAAA;AACzD,cAAc,+BAA+B,CAAA;AAC7C,cAAc,2CAA2C,CAAA;AACzD,cAAc,mCAAmC,CAAA;AACjD,cAAc,yCAAyC,CAAA;AACvD,cAAc,mDAAmD,CAAA;AACjE,cAAc,yCAAyC,CAAA;AACvD,cAAc,qDAAqD,CAAA;AACnE,cAAc,mEAAmE,CAAA;AACjF,cAAc,2DAA2D,CAAA;AACzE,cAAc,uDAAuD,CAAA;AACrE,cAAc,qDAAqD,CAAA;AACnE,cAAc,iDAAiD,CAAA;AAC/D,cAAc,+CAA+C,CAAA;AAC7D,cAAc,qDAAqD,CAAA;AACnE,cAAc,2CAA2C,CAAA;AACzD,cAAc,yCAAyC,CAAA;AACvD,cAAc,qCAAqC,CAAA;AACnD,cAAc,uCAAuC,CAAA;AACrD,cAAc,wBAAwB,CAAA;AACtC,cAAc,2DAA2D,CAAA"}
@@ -0,0 +1,9 @@
1
+ import { EventEmitter } from '@angular/core';
2
+ import * as i0 from "@angular/core";
3
+ export declare class DatePickerComponent {
4
+ date: Date;
5
+ dateChange: EventEmitter<Date>;
6
+ static ɵfac: i0.ɵɵFactoryDeclaration<DatePickerComponent, never>;
7
+ static ɵcmp: i0.ɵɵComponentDeclaration<DatePickerComponent, "gn-ui-date-picker", never, { "date": { "alias": "date"; "required": false; }; }, { "dateChange": "dateChange"; }, never, never, true, never>;
8
+ }
9
+ //# sourceMappingURL=date-picker.component.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"date-picker.component.d.ts","sourceRoot":"","sources":["../../../../../../src/libs/ui/inputs/src/lib/date-picker/date-picker.component.ts"],"names":[],"mappings":"AAAA,OAAO,EAAa,YAAY,EAAiB,MAAM,eAAe,CAAA;;AAKtE,qBAOa,mBAAmB;IACrB,IAAI,EAAE,IAAI,CAAA;IACT,UAAU,qBAA2B;yCAFpC,mBAAmB;2CAAnB,mBAAmB;CAG/B"}
@@ -6,6 +6,6 @@ export declare class DateRangePickerComponent {
6
6
  startDateSelected(event: MatDatepickerInputEvent<Date>): void;
7
7
  endDateSelected(event: MatDatepickerInputEvent<Date>): void;
8
8
  static ɵfac: i0.ɵɵFactoryDeclaration<DateRangePickerComponent, never>;
9
- static ɵcmp: i0.ɵɵComponentDeclaration<DateRangePickerComponent, "gn-ui-date-range-picker", never, {}, {}, never, never, false, never>;
9
+ static ɵcmp: i0.ɵɵComponentDeclaration<DateRangePickerComponent, "gn-ui-date-range-picker", never, {}, {}, never, never, true, never>;
10
10
  }
11
11
  //# sourceMappingURL=date-range-picker.component.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"date-range-picker.component.d.ts","sourceRoot":"","sources":["../../../../../../src/libs/ui/inputs/src/lib/date-range-picker/date-range-picker.component.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,uBAAuB,EAAE,MAAM,8BAA8B,CAAA;;AAEtE,qBAKa,wBAAwB;IACnC,SAAS,EAAE,IAAI,CAAA;IACf,OAAO,EAAE,IAAI,CAAA;IAEb,iBAAiB,CAAC,KAAK,EAAE,uBAAuB,CAAC,IAAI,CAAC;IAItD,eAAe,CAAC,KAAK,EAAE,uBAAuB,CAAC,IAAI,CAAC;yCARzC,wBAAwB;2CAAxB,wBAAwB;CAWpC"}
1
+ {"version":3,"file":"date-range-picker.component.d.ts","sourceRoot":"","sources":["../../../../../../src/libs/ui/inputs/src/lib/date-range-picker/date-range-picker.component.ts"],"names":[],"mappings":"AAEA,OAAO,EACL,uBAAuB,EAExB,MAAM,8BAA8B,CAAA;;AAGrC,qBAOa,wBAAwB;IACnC,SAAS,EAAE,IAAI,CAAA;IACf,OAAO,EAAE,IAAI,CAAA;IAEb,iBAAiB,CAAC,KAAK,EAAE,uBAAuB,CAAC,IAAI,CAAC;IAItD,eAAe,CAAC,KAAK,EAAE,uBAAuB,CAAC,IAAI,CAAC;yCARzC,wBAAwB;2CAAxB,wBAAwB;CAWpC"}
@@ -11,31 +11,31 @@ import * as i9 from "./check-toggle/check-toggle.component";
11
11
  import * as i10 from "./copy-text-button/copy-text-button.component";
12
12
  import * as i11 from "./checkbox/checkbox.component";
13
13
  import * as i12 from "./search-input/search-input.component";
14
- import * as i13 from "./date-range-picker/date-range-picker.component";
15
- import * as i14 from "@angular/common";
16
- import * as i15 from "@ngx-translate/core";
17
- import * as i16 from "ngx-dropzone";
18
- import * as i17 from "@angular/forms";
19
- import * as i18 from "ngx-chips";
20
- import * as i19 from "../../../../util/shared/src/lib/util-shared.module";
21
- import * as i20 from "@angular/material/autocomplete";
22
- import * as i21 from "@angular/material/icon";
23
- import * as i22 from "../../../widgets/src/lib/ui-widgets.module";
24
- import * as i23 from "@angular/cdk/overlay";
25
- import * as i24 from "@angular/material/checkbox";
26
- import * as i25 from "@angular/material/tooltip";
27
- import * as i26 from "@angular/material/form-field";
28
- import * as i27 from "@angular/material/input";
29
- import * as i28 from "@angular/material/datepicker";
30
- import * as i29 from "@angular/material/core";
31
- import * as i30 from "./editable-label/editable-label.directive";
32
- import * as i31 from "./text-area/text-area.component";
33
- import * as i32 from "./button/button.component";
34
- import * as i33 from "./image-input/image-input.component";
35
- import * as i34 from "./dropdown-selector/dropdown-selector.component";
14
+ import * as i13 from "@angular/common";
15
+ import * as i14 from "@ngx-translate/core";
16
+ import * as i15 from "ngx-dropzone";
17
+ import * as i16 from "@angular/forms";
18
+ import * as i17 from "ngx-chips";
19
+ import * as i18 from "../../../../util/shared/src/lib/util-shared.module";
20
+ import * as i19 from "@angular/material/autocomplete";
21
+ import * as i20 from "@angular/material/icon";
22
+ import * as i21 from "../../../widgets/src/lib/ui-widgets.module";
23
+ import * as i22 from "@angular/cdk/overlay";
24
+ import * as i23 from "@angular/material/checkbox";
25
+ import * as i24 from "@angular/material/tooltip";
26
+ import * as i25 from "@angular/material/form-field";
27
+ import * as i26 from "@angular/material/input";
28
+ import * as i27 from "@angular/material/datepicker";
29
+ import * as i28 from "@angular/material/core";
30
+ import * as i29 from "./editable-label/editable-label.directive";
31
+ import * as i30 from "./text-area/text-area.component";
32
+ import * as i31 from "./button/button.component";
33
+ import * as i32 from "./image-input/image-input.component";
34
+ import * as i33 from "./dropdown-selector/dropdown-selector.component";
35
+ import * as i34 from "./date-range-picker/date-range-picker.component";
36
36
  export declare class UiInputsModule {
37
37
  static ɵfac: i0.ɵɵFactoryDeclaration<UiInputsModule, never>;
38
- static ɵmod: i0.ɵɵNgModuleDeclaration<UiInputsModule, [typeof i1.AutocompleteComponent, typeof i2.TextInputComponent, typeof i3.DragAndDropFileInputComponent, typeof i4.ChipsInputComponent, typeof i5.NavigationButtonComponent, typeof i6.StarToggleComponent, typeof i7.DropdownMultiselectComponent, typeof i8.ViewportIntersectorComponent, typeof i9.CheckToggleComponent, typeof i10.CopyTextButtonComponent, typeof i11.CheckboxComponent, typeof i12.SearchInputComponent, typeof i13.DateRangePickerComponent], [typeof i14.CommonModule, typeof i15.TranslateModule, typeof i16.NgxDropzoneModule, typeof i17.FormsModule, typeof i17.ReactiveFormsModule, typeof i18.TagInputModule, typeof i19.UtilSharedModule, typeof i20.MatAutocompleteModule, typeof i21.MatIconModule, typeof i22.UiWidgetsModule, typeof i23.OverlayModule, typeof i24.MatCheckboxModule, typeof i25.MatTooltipModule, typeof i26.MatFormFieldModule, typeof i27.MatInputModule, typeof i28.MatDatepickerModule, typeof i29.MatNativeDateModule, typeof i30.EditableLabelDirective, typeof i31.TextAreaComponent, typeof i32.ButtonComponent, typeof i33.ImageInputComponent, typeof i34.DropdownSelectorComponent], [typeof i34.DropdownSelectorComponent, typeof i1.AutocompleteComponent, typeof i32.ButtonComponent, typeof i2.TextInputComponent, typeof i3.DragAndDropFileInputComponent, typeof i31.TextAreaComponent, typeof i4.ChipsInputComponent, typeof i5.NavigationButtonComponent, typeof i6.StarToggleComponent, typeof i7.DropdownMultiselectComponent, typeof i8.ViewportIntersectorComponent, typeof i9.CheckToggleComponent, typeof i10.CopyTextButtonComponent, typeof i11.CheckboxComponent, typeof i12.SearchInputComponent, typeof i13.DateRangePickerComponent, typeof i30.EditableLabelDirective, typeof i33.ImageInputComponent]>;
38
+ static ɵmod: i0.ɵɵNgModuleDeclaration<UiInputsModule, [typeof i1.AutocompleteComponent, typeof i2.TextInputComponent, typeof i3.DragAndDropFileInputComponent, typeof i4.ChipsInputComponent, typeof i5.NavigationButtonComponent, typeof i6.StarToggleComponent, typeof i7.DropdownMultiselectComponent, typeof i8.ViewportIntersectorComponent, typeof i9.CheckToggleComponent, typeof i10.CopyTextButtonComponent, typeof i11.CheckboxComponent, typeof i12.SearchInputComponent], [typeof i13.CommonModule, typeof i14.TranslateModule, typeof i15.NgxDropzoneModule, typeof i16.FormsModule, typeof i16.ReactiveFormsModule, typeof i17.TagInputModule, typeof i18.UtilSharedModule, typeof i19.MatAutocompleteModule, typeof i20.MatIconModule, typeof i21.UiWidgetsModule, typeof i22.OverlayModule, typeof i23.MatCheckboxModule, typeof i24.MatTooltipModule, typeof i25.MatFormFieldModule, typeof i26.MatInputModule, typeof i27.MatDatepickerModule, typeof i28.MatNativeDateModule, typeof i29.EditableLabelDirective, typeof i30.TextAreaComponent, typeof i31.ButtonComponent, typeof i32.ImageInputComponent, typeof i33.DropdownSelectorComponent, typeof i34.DateRangePickerComponent], [typeof i33.DropdownSelectorComponent, typeof i1.AutocompleteComponent, typeof i31.ButtonComponent, typeof i2.TextInputComponent, typeof i3.DragAndDropFileInputComponent, typeof i30.TextAreaComponent, typeof i4.ChipsInputComponent, typeof i5.NavigationButtonComponent, typeof i6.StarToggleComponent, typeof i7.DropdownMultiselectComponent, typeof i8.ViewportIntersectorComponent, typeof i9.CheckToggleComponent, typeof i10.CopyTextButtonComponent, typeof i11.CheckboxComponent, typeof i12.SearchInputComponent, typeof i34.DateRangePickerComponent, typeof i29.EditableLabelDirective, typeof i32.ImageInputComponent]>;
39
39
  static ɵinj: i0.ɵɵInjectorDeclaration<UiInputsModule>;
40
40
  }
41
41
  //# sourceMappingURL=ui-inputs.module.d.ts.map
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "geonetwork-ui",
3
- "version": "2.3.0-dev.e07c5606",
3
+ "version": "2.3.0-dev.f54cc11e",
4
4
  "engines": {
5
5
  "node": ">=14.17.0"
6
6
  },
@@ -49,8 +49,8 @@ export const DATASET_RECORDS: DatasetRecord[] = deepFreeze([
49
49
  status: 'ongoing',
50
50
  recordCreated: new Date('2022-02-01T15:12:00'),
51
51
  recordUpdated: new Date('2022-02-01T15:12:00'),
52
- datasetCreated: new Date('2022-09-01T14:18:19'),
53
- datasetUpdated: new Date('2022-12-04T15:12:00'),
52
+ resourceCreated: new Date('2022-09-01T14:18:19'),
53
+ resourceUpdated: new Date('2022-12-04T15:12:00'),
54
54
  title: 'A very interesting dataset (un jeu de données très intéressant)',
55
55
  abstract: `# Introduction
56
56
  This dataset has been established for testing purposes.
@@ -0,0 +1,4 @@
1
+ <gn-ui-date-picker
2
+ [date]="control.value"
3
+ (dateChange)="control.setValue($event)"
4
+ ></gn-ui-date-picker>
@@ -0,0 +1,15 @@
1
+ import { ChangeDetectionStrategy, Component, Input } from '@angular/core'
2
+ import { FormControl } from '@angular/forms'
3
+ import { DatePickerComponent } from '../../../../../../../../../libs/ui/inputs/src'
4
+
5
+ @Component({
6
+ selector: 'gn-ui-form-field-resource-updated',
7
+ templateUrl: './form-field-resource-updated.component.html',
8
+ styleUrls: ['./form-field-resource-updated.component.css'],
9
+ changeDetection: ChangeDetectionStrategy.OnPush,
10
+ standalone: true,
11
+ imports: [DatePickerComponent],
12
+ })
13
+ export class FormFieldResourceUpdatedComponent {
14
+ @Input() control!: FormControl
15
+ }
@@ -51,6 +51,11 @@
51
51
  [label]="config.labelKey | translate"
52
52
  ></gn-ui-form-field-license>
53
53
  </ng-container>
54
+ <ng-container *ngIf="isResourceUpdated">
55
+ <gn-ui-form-field-resource-updated
56
+ [control]="formControl"
57
+ ></gn-ui-form-field-resource-updated>
58
+ </ng-container>
54
59
  <ng-container *ngIf="isSimpleField">
55
60
  <gn-ui-form-field-simple
56
61
  [type]="simpleType"
@@ -18,6 +18,7 @@ import { FormFieldArrayComponent } from './form-field-array/form-field-array.com
18
18
  import { FormFieldFileComponent } from './form-field-file/form-field-file.component'
19
19
  import { FormFieldLicenseComponent } from './form-field-license/form-field-license.component'
20
20
  import { FormFieldObjectComponent } from './form-field-object/form-field-object.component'
21
+ import { FormFieldResourceUpdatedComponent } from './form-field-resource-updated/form-field-resource-updated.component'
21
22
  import { FormFieldRichComponent } from './form-field-rich/form-field-rich.component'
22
23
  import { FormFieldSimpleComponent } from './form-field-simple/form-field-simple.component'
23
24
  import { FormFieldSpatialExtentComponent } from './form-field-spatial-extent/form-field-spatial-extent.component'
@@ -37,6 +38,8 @@ import { FormFieldConfig } from './form-field.model'
37
38
  MatIconModule,
38
39
  MatTooltipModule,
39
40
  FormFieldWrapperComponent,
41
+ FormFieldLicenseComponent,
42
+ FormFieldResourceUpdatedComponent,
40
43
  FormFieldSimpleComponent,
41
44
  FormFieldRichComponent,
42
45
  FormFieldObjectComponent,
@@ -44,7 +47,6 @@ import { FormFieldConfig } from './form-field.model'
44
47
  FormFieldTemporalExtentComponent,
45
48
  FormFieldFileComponent,
46
49
  FormFieldArrayComponent,
47
- FormFieldLicenseComponent,
48
50
  TranslateModule,
49
51
  ],
50
52
  })
@@ -125,6 +127,9 @@ export class FormFieldComponent {
125
127
  get isLicenses() {
126
128
  return this.model === 'licenses'
127
129
  }
130
+ get isResourceUpdated() {
131
+ return this.model === 'resourceUpdated'
132
+ }
128
133
 
129
134
  get withoutWrapper() {
130
135
  return this.model === 'title' || this.model === 'abstract'
@@ -40,4 +40,11 @@ export const DEFAULT_FIELDS: EditorFieldsConfig = [
40
40
  type: 'list',
41
41
  },
42
42
  },
43
+ {
44
+ model: 'resourceUpdated',
45
+ formFieldConfig: {
46
+ labelKey: marker('editor.record.form.resourceUpdated'),
47
+ type: 'date',
48
+ },
49
+ },
43
50
  ]
@@ -1,21 +1,21 @@
1
- export * from './lib/dropdown-selector/dropdown-selector.component'
2
- export * from './lib/dropdown-selector/dropdown-selector.model'
3
- export * from './lib/dropdown-multiselect/dropdown-multiselect.component'
4
- export * from './lib/dropdown-multiselect/dropdown-multiselect.model'
5
- export * from './lib/text-input/text-input.component'
6
- export * from './lib/chips-input/chips-input.component'
7
- export * from './lib/text-area/text-area.component'
8
1
  export * from './lib/autocomplete/autocomplete.component'
9
- export * from './lib/star-toggle/star-toggle.component'
10
2
  export * from './lib/button/button.component'
11
- export * from './lib/viewport-intersector/viewport-intersector.component'
12
3
  export * from './lib/check-toggle/check-toggle.component'
13
- export * from './lib/ui-inputs.module'
4
+ export * from './lib/checkbox/checkbox.component'
5
+ export * from './lib/chips-input/chips-input.component'
14
6
  export * from './lib/copy-text-button/copy-text-button.component'
7
+ export * from './lib/date-picker/date-picker.component'
8
+ export * from './lib/date-range-picker/date-range-picker.component'
15
9
  export * from './lib/drag-and-drop-file-input/drag-and-drop-file-input.component'
10
+ export * from './lib/dropdown-multiselect/dropdown-multiselect.component'
11
+ export * from './lib/dropdown-multiselect/dropdown-multiselect.model'
12
+ export * from './lib/dropdown-selector/dropdown-selector.component'
13
+ export * from './lib/dropdown-selector/dropdown-selector.model'
14
+ export * from './lib/editable-label/editable-label.directive'
16
15
  export * from './lib/navigation-button/navigation-button.component'
17
- export * from './lib/viewport-intersector/viewport-intersector.component'
18
- export * from './lib/checkbox/checkbox.component'
19
16
  export * from './lib/search-input/search-input.component'
20
- export * from './lib/date-range-picker/date-range-picker.component'
21
- export * from './lib/editable-label/editable-label.directive'
17
+ export * from './lib/star-toggle/star-toggle.component'
18
+ export * from './lib/text-area/text-area.component'
19
+ export * from './lib/text-input/text-input.component'
20
+ export * from './lib/ui-inputs.module'
21
+ export * from './lib/viewport-intersector/viewport-intersector.component'
@@ -0,0 +1,3 @@
1
+ mat-datepicker-toggle {
2
+ @apply text-primary;
3
+ }
@@ -0,0 +1,11 @@
1
+ <div
2
+ class="flex items-center justify-between pl-3 rounded-lg border border-gray-300 bg-white"
3
+ >
4
+ <input
5
+ [matDatepicker]="picker"
6
+ [value]="date"
7
+ (dateChange)="dateChange.emit($event.value)"
8
+ />
9
+ <mat-datepicker-toggle matIconSuffix [for]="picker"></mat-datepicker-toggle>
10
+ </div>
11
+ <mat-datepicker #picker></mat-datepicker>
@@ -0,0 +1,16 @@
1
+ import { Component, EventEmitter, Input, Output } from '@angular/core'
2
+ import { MatNativeDateModule } from '@angular/material/core'
3
+ import { MatDatepickerModule } from '@angular/material/datepicker'
4
+ import { MatIconModule } from '@angular/material/icon'
5
+
6
+ @Component({
7
+ selector: 'gn-ui-date-picker',
8
+ templateUrl: './date-picker.component.html',
9
+ styleUrls: ['./date-picker.component.css'],
10
+ standalone: true,
11
+ imports: [MatIconModule, MatNativeDateModule, MatDatepickerModule],
12
+ })
13
+ export class DatePickerComponent {
14
+ @Input() date: Date
15
+ @Output() dateChange = new EventEmitter<Date>()
16
+ }
@@ -1,10 +1,17 @@
1
1
  import { Component } from '@angular/core'
2
- import { MatDatepickerInputEvent } from '@angular/material/datepicker'
2
+ import { MatNativeDateModule } from '@angular/material/core'
3
+ import {
4
+ MatDatepickerInputEvent,
5
+ MatDatepickerModule,
6
+ } from '@angular/material/datepicker'
7
+ import { MatIconModule } from '@angular/material/icon'
3
8
 
4
9
  @Component({
5
10
  selector: 'gn-ui-date-range-picker',
6
11
  templateUrl: './date-range-picker.component.html',
7
12
  styleUrls: ['./date-range-picker.component.css'],
13
+ standalone: true,
14
+ imports: [MatIconModule, MatNativeDateModule, MatDatepickerModule],
8
15
  })
9
16
  export class DateRangePickerComponent {
10
17
  startDate: Date
@@ -48,7 +48,6 @@ import { ImageInputComponent } from './image-input/image-input.component'
48
48
  CopyTextButtonComponent,
49
49
  CheckboxComponent,
50
50
  SearchInputComponent,
51
- DateRangePickerComponent,
52
51
  ],
53
52
  imports: [
54
53
  CommonModule,
@@ -73,6 +72,7 @@ import { ImageInputComponent } from './image-input/image-input.component'
73
72
  ButtonComponent,
74
73
  ImageInputComponent,
75
74
  DropdownSelectorComponent,
75
+ DateRangePickerComponent,
76
76
  ],
77
77
  exports: [
78
78
  DropdownSelectorComponent,
@@ -155,6 +155,7 @@
155
155
  "editor.record.form.license.odc-by": "",
156
156
  "editor.record.form.license.pddl": "",
157
157
  "editor.record.form.license.unknown": "Unbekannt oder nicht vorhanden",
158
+ "editor.record.form.resourceUpdated": "",
158
159
  "editor.record.loadError.body": "",
159
160
  "editor.record.loadError.closeMessage": "",
160
161
  "editor.record.loadError.title": "",
@@ -155,6 +155,7 @@
155
155
  "editor.record.form.license.odc-by": "Open Data Commons ODC-By",
156
156
  "editor.record.form.license.pddl": "Open Data Commons PDDL",
157
157
  "editor.record.form.license.unknown": "Unknown or absent",
158
+ "editor.record.form.resourceUpdated": "Last update date",
158
159
  "editor.record.loadError.body": "The record could not be loaded:",
159
160
  "editor.record.loadError.closeMessage": "Understood",
160
161
  "editor.record.loadError.title": "Error loading record",
@@ -155,6 +155,7 @@
155
155
  "editor.record.form.license.odc-by": "",
156
156
  "editor.record.form.license.pddl": "",
157
157
  "editor.record.form.license.unknown": "",
158
+ "editor.record.form.resourceUpdated": "",
158
159
  "editor.record.loadError.body": "",
159
160
  "editor.record.loadError.closeMessage": "",
160
161
  "editor.record.loadError.title": "",
@@ -155,6 +155,7 @@
155
155
  "editor.record.form.license.odc-by": "",
156
156
  "editor.record.form.license.pddl": "",
157
157
  "editor.record.form.license.unknown": "Non-reconnue ou absente",
158
+ "editor.record.form.resourceUpdated": "Date de dernière révision",
158
159
  "editor.record.loadError.body": "",
159
160
  "editor.record.loadError.closeMessage": "",
160
161
  "editor.record.loadError.title": "",
@@ -155,6 +155,7 @@
155
155
  "editor.record.form.license.odc-by": "",
156
156
  "editor.record.form.license.pddl": "",
157
157
  "editor.record.form.license.unknown": "Non riconosciuta o assente",
158
+ "editor.record.form.resourceUpdated": "",
158
159
  "editor.record.loadError.body": "",
159
160
  "editor.record.loadError.closeMessage": "",
160
161
  "editor.record.loadError.title": "",
@@ -155,6 +155,7 @@
155
155
  "editor.record.form.license.odc-by": "",
156
156
  "editor.record.form.license.pddl": "",
157
157
  "editor.record.form.license.unknown": "",
158
+ "editor.record.form.resourceUpdated": "",
158
159
  "editor.record.loadError.body": "",
159
160
  "editor.record.loadError.closeMessage": "",
160
161
  "editor.record.loadError.title": "",
@@ -155,6 +155,7 @@
155
155
  "editor.record.form.license.odc-by": "",
156
156
  "editor.record.form.license.pddl": "",
157
157
  "editor.record.form.license.unknown": "",
158
+ "editor.record.form.resourceUpdated": "",
158
159
  "editor.record.loadError.body": "",
159
160
  "editor.record.loadError.closeMessage": "",
160
161
  "editor.record.loadError.title": "",
@@ -155,6 +155,7 @@
155
155
  "editor.record.form.license.odc-by": "",
156
156
  "editor.record.form.license.pddl": "",
157
157
  "editor.record.form.license.unknown": "Neznáme alebo chýbajúce",
158
+ "editor.record.form.resourceUpdated": "",
158
159
  "editor.record.loadError.body": "",
159
160
  "editor.record.loadError.closeMessage": "",
160
161
  "editor.record.loadError.title": "",