geonetwork-ui 2.3.0-dev.3efe236f → 2.3.0-dev.549700bf

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 (185) hide show
  1. package/esm2022/libs/api/metadata-converter/src/lib/iso19139/read-parts.mjs +2 -2
  2. package/esm2022/libs/api/metadata-converter/src/lib/iso19139/write-parts.mjs +2 -2
  3. package/esm2022/libs/api/repository/src/lib/gn4/platform/gn4-platform.service.mjs +9 -7
  4. package/esm2022/libs/feature/dataviz/src/lib/chart-view/chart-view.component.mjs +1 -1
  5. package/esm2022/libs/feature/dataviz/src/lib/service/data.service.mjs +35 -2
  6. package/esm2022/libs/feature/editor/src/lib/components/record-form/form-field/form-field-license/form-field-license.component.mjs +64 -0
  7. package/esm2022/libs/feature/editor/src/lib/components/record-form/form-field/form-field-resource-updated/form-field-resource-updated.component.mjs +15 -0
  8. package/esm2022/libs/feature/editor/src/lib/components/record-form/form-field/form-field-update-frequency/form-field-update-frequency.component.mjs +104 -0
  9. package/esm2022/libs/feature/editor/src/lib/components/record-form/form-field/form-field.component.mjs +25 -6
  10. package/esm2022/libs/feature/editor/src/lib/components/wizard-field/wizard-field.component.mjs +1 -1
  11. package/esm2022/libs/feature/editor/src/lib/fields.config.mjs +23 -1
  12. package/esm2022/libs/feature/map/src/lib/add-layer-from-ogc-api/add-layer-from-ogc-api.component.mjs +73 -20
  13. package/esm2022/libs/feature/map/src/lib/add-layer-from-wfs/add-layer-from-wfs.component.mjs +1 -1
  14. package/esm2022/libs/feature/map/src/lib/add-layer-from-wms/add-layer-from-wms.component.mjs +1 -1
  15. package/esm2022/libs/feature/map/src/lib/map-context/map-context.model.mjs +1 -1
  16. package/esm2022/libs/feature/map/src/lib/map-context/map-context.service.mjs +29 -8
  17. package/esm2022/libs/feature/record/src/lib/data-view/data-view.component.mjs +1 -1
  18. package/esm2022/libs/feature/record/src/lib/map-view/map-view.component.mjs +4 -3
  19. package/esm2022/libs/feature/record/src/lib/state/mdview.facade.mjs +1 -1
  20. package/esm2022/libs/feature/record/src/lib/state/mdview.reducer.mjs +1 -3
  21. package/esm2022/libs/feature/search/src/index.mjs +2 -1
  22. package/esm2022/libs/feature/search/src/lib/results-layout/results-layout.component.mjs +1 -1
  23. package/esm2022/libs/feature/search/src/lib/sort-by/sort-by.component.mjs +1 -1
  24. package/esm2022/libs/feature/search/src/lib/utils/service/fields.service.mjs +1 -1
  25. package/esm2022/libs/ui/catalog/src/lib/language-switcher/language-switcher.component.mjs +1 -1
  26. package/esm2022/libs/ui/catalog/src/lib/organisations-filter/organisations-filter.component.mjs +1 -1
  27. package/esm2022/libs/ui/elements/src/lib/api-card/api-card.component.mjs +3 -2
  28. package/esm2022/libs/ui/elements/src/lib/downloads-list/downloads-list.component.mjs +2 -2
  29. package/esm2022/libs/ui/elements/src/lib/link-card/link-card.component.mjs +16 -3
  30. package/esm2022/libs/ui/elements/src/lib/record-api-form/record-api-form.component.mjs +99 -36
  31. package/esm2022/libs/ui/elements/src/lib/ui-elements.module.mjs +1 -6
  32. package/esm2022/libs/ui/elements/src/lib/user-feedback-item/user-feedback-item.component.mjs +3 -5
  33. package/esm2022/libs/ui/inputs/src/index.mjs +16 -15
  34. package/esm2022/libs/ui/inputs/src/lib/check-toggle/check-toggle.component.mjs +4 -3
  35. package/esm2022/libs/ui/inputs/src/lib/date-picker/date-picker.component.mjs +22 -0
  36. package/esm2022/libs/ui/inputs/src/lib/date-range-picker/date-range-picker.component.mjs +7 -5
  37. package/esm2022/libs/ui/inputs/src/lib/dropdown-selector/dropdown-selector.component.mjs +19 -8
  38. package/esm2022/libs/ui/inputs/src/lib/previous-next-buttons/previous-next-buttons.component.mjs +29 -0
  39. package/esm2022/libs/ui/inputs/src/lib/text-input/text-input.component.mjs +5 -3
  40. package/esm2022/libs/ui/inputs/src/lib/ui-inputs.module.mjs +14 -11
  41. package/esm2022/libs/ui/layout/src/index.mjs +2 -1
  42. package/esm2022/libs/ui/layout/src/lib/block-list/block-list.component.mjs +76 -0
  43. package/esm2022/libs/ui/layout/src/lib/carousel/carousel.component.mjs +42 -18
  44. package/esm2022/libs/ui/layout/src/lib/ui-layout.module.mjs +3 -8
  45. package/esm2022/libs/util/shared/src/lib/links/link-classifier.service.mjs +2 -2
  46. package/esm2022/libs/util/shared/src/lib/links/link-utils.mjs +22 -1
  47. package/esm2022/translations/de.json +22 -14
  48. package/esm2022/translations/en.json +22 -14
  49. package/esm2022/translations/es.json +22 -14
  50. package/esm2022/translations/fr.json +22 -14
  51. package/esm2022/translations/it.json +22 -14
  52. package/esm2022/translations/nl.json +22 -14
  53. package/esm2022/translations/pt.json +22 -14
  54. package/fesm2022/geonetwork-ui.mjs +1505 -908
  55. package/fesm2022/geonetwork-ui.mjs.map +1 -1
  56. package/libs/api/metadata-converter/src/lib/iso19139/write-parts.d.ts.map +1 -1
  57. package/libs/api/repository/src/lib/gn4/platform/gn4-platform.service.d.ts.map +1 -1
  58. package/libs/feature/dataviz/src/lib/service/data.service.d.ts +3 -1
  59. package/libs/feature/dataviz/src/lib/service/data.service.d.ts.map +1 -1
  60. package/libs/feature/editor/src/lib/components/record-form/form-field/form-field-license/form-field-license.component.d.ts +39 -0
  61. package/libs/feature/editor/src/lib/components/record-form/form-field/form-field-license/form-field-license.component.d.ts.map +1 -0
  62. package/libs/feature/editor/src/lib/components/record-form/form-field/form-field-resource-updated/form-field-resource-updated.component.d.ts +8 -0
  63. 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
  64. package/libs/feature/editor/src/lib/components/record-form/form-field/form-field-update-frequency/form-field-update-frequency.component.d.ts +21 -0
  65. package/libs/feature/editor/src/lib/components/record-form/form-field/form-field-update-frequency/form-field-update-frequency.component.d.ts.map +1 -0
  66. package/libs/feature/editor/src/lib/components/record-form/form-field/form-field.component.d.ts +4 -0
  67. package/libs/feature/editor/src/lib/components/record-form/form-field/form-field.component.d.ts.map +1 -1
  68. package/libs/feature/editor/src/lib/fields.config.d.ts.map +1 -1
  69. package/libs/feature/map/src/lib/add-layer-from-ogc-api/add-layer-from-ogc-api.component.d.ts +10 -5
  70. package/libs/feature/map/src/lib/add-layer-from-ogc-api/add-layer-from-ogc-api.component.d.ts.map +1 -1
  71. package/libs/feature/map/src/lib/map-context/map-context.model.d.ts +1 -0
  72. package/libs/feature/map/src/lib/map-context/map-context.model.d.ts.map +1 -1
  73. package/libs/feature/map/src/lib/map-context/map-context.service.d.ts.map +1 -1
  74. package/libs/feature/record/src/lib/map-view/map-view.component.d.ts.map +1 -1
  75. package/libs/feature/record/src/lib/state/mdview.facade.d.ts.map +1 -1
  76. package/libs/feature/record/src/lib/state/mdview.reducer.d.ts.map +1 -1
  77. package/libs/feature/search/src/index.d.ts +1 -0
  78. package/libs/feature/search/src/index.d.ts.map +1 -1
  79. package/libs/feature/search/src/lib/utils/service/fields.service.d.ts +3 -3
  80. package/libs/feature/search/src/lib/utils/service/fields.service.d.ts.map +1 -1
  81. package/libs/ui/elements/src/lib/api-card/api-card.component.d.ts.map +1 -1
  82. package/libs/ui/elements/src/lib/downloads-list/downloads-list.component.d.ts +1 -1
  83. package/libs/ui/elements/src/lib/link-card/link-card.component.d.ts +3 -1
  84. package/libs/ui/elements/src/lib/link-card/link-card.component.d.ts.map +1 -1
  85. package/libs/ui/elements/src/lib/record-api-form/record-api-form.component.d.ts +24 -4
  86. package/libs/ui/elements/src/lib/record-api-form/record-api-form.component.d.ts.map +1 -1
  87. package/libs/ui/elements/src/lib/ui-elements.module.d.ts +29 -30
  88. package/libs/ui/elements/src/lib/ui-elements.module.d.ts.map +1 -1
  89. package/libs/ui/elements/src/lib/user-feedback-item/user-feedback-item.component.d.ts +1 -2
  90. package/libs/ui/elements/src/lib/user-feedback-item/user-feedback-item.component.d.ts.map +1 -1
  91. package/libs/ui/inputs/src/index.d.ts +15 -14
  92. package/libs/ui/inputs/src/index.d.ts.map +1 -1
  93. package/libs/ui/inputs/src/lib/check-toggle/check-toggle.component.d.ts +1 -1
  94. package/libs/ui/inputs/src/lib/check-toggle/check-toggle.component.d.ts.map +1 -1
  95. package/libs/ui/inputs/src/lib/date-picker/date-picker.component.d.ts +9 -0
  96. package/libs/ui/inputs/src/lib/date-picker/date-picker.component.d.ts.map +1 -0
  97. package/libs/ui/inputs/src/lib/date-range-picker/date-range-picker.component.d.ts +1 -1
  98. package/libs/ui/inputs/src/lib/date-range-picker/date-range-picker.component.d.ts.map +1 -1
  99. package/libs/ui/inputs/src/lib/dropdown-selector/dropdown-selector.component.d.ts +2 -1
  100. package/libs/ui/inputs/src/lib/dropdown-selector/dropdown-selector.component.d.ts.map +1 -1
  101. package/libs/ui/inputs/src/lib/previous-next-buttons/previous-next-buttons.component.d.ts +12 -0
  102. package/libs/ui/inputs/src/lib/previous-next-buttons/previous-next-buttons.component.d.ts.map +1 -0
  103. package/libs/ui/inputs/src/lib/text-input/text-input.component.d.ts +2 -1
  104. package/libs/ui/inputs/src/lib/text-input/text-input.component.d.ts.map +1 -1
  105. package/libs/ui/inputs/src/lib/ui-inputs.module.d.ts +35 -35
  106. package/libs/ui/layout/src/index.d.ts +1 -0
  107. package/libs/ui/layout/src/index.d.ts.map +1 -1
  108. package/libs/ui/layout/src/lib/block-list/block-list.component.d.ts +25 -0
  109. package/libs/ui/layout/src/lib/block-list/block-list.component.d.ts.map +1 -0
  110. package/libs/ui/layout/src/lib/carousel/carousel.component.d.ts +13 -6
  111. package/libs/ui/layout/src/lib/carousel/carousel.component.d.ts.map +1 -1
  112. package/libs/ui/layout/src/lib/ui-layout.module.d.ts +4 -5
  113. package/libs/ui/layout/src/lib/ui-layout.module.d.ts.map +1 -1
  114. package/libs/util/shared/src/lib/links/link-utils.d.ts +18 -0
  115. package/libs/util/shared/src/lib/links/link-utils.d.ts.map +1 -1
  116. package/package.json +2 -2
  117. package/src/libs/api/metadata-converter/src/lib/iso19139/read-parts.ts +1 -1
  118. package/src/libs/api/metadata-converter/src/lib/iso19139/write-parts.ts +1 -4
  119. package/src/libs/api/repository/src/lib/gn4/platform/gn4-platform.service.ts +16 -10
  120. package/src/libs/common/fixtures/src/lib/link.fixtures.ts +8 -0
  121. package/src/libs/common/fixtures/src/lib/records.fixtures.ts +2 -2
  122. package/src/libs/feature/dataviz/src/lib/service/data.service.ts +51 -1
  123. package/src/libs/feature/editor/src/lib/components/record-form/form-field/form-field-license/form-field-license.component.css +0 -0
  124. package/src/libs/feature/editor/src/lib/components/record-form/form-field/form-field-license/form-field-license.component.html +8 -0
  125. package/src/libs/feature/editor/src/lib/components/record-form/form-field/form-field-license/form-field-license.component.ts +64 -0
  126. package/src/libs/feature/editor/src/lib/components/record-form/form-field/form-field-resource-updated/form-field-resource-updated.component.css +0 -0
  127. package/src/libs/feature/editor/src/lib/components/record-form/form-field/form-field-resource-updated/form-field-resource-updated.component.html +4 -0
  128. package/src/libs/feature/editor/src/lib/components/record-form/form-field/form-field-resource-updated/form-field-resource-updated.component.ts +15 -0
  129. package/src/libs/feature/editor/src/lib/components/record-form/form-field/form-field-update-frequency/form-field-update-frequency.component.css +0 -0
  130. package/src/libs/feature/editor/src/lib/components/record-form/form-field/form-field-update-frequency/form-field-update-frequency.component.html +14 -0
  131. package/src/libs/feature/editor/src/lib/components/record-form/form-field/form-field-update-frequency/form-field-update-frequency.component.ts +143 -0
  132. package/src/libs/feature/editor/src/lib/components/record-form/form-field/form-field.component.html +38 -33
  133. package/src/libs/feature/editor/src/lib/components/record-form/form-field/form-field.component.ts +21 -0
  134. package/src/libs/feature/editor/src/lib/fields.config.ts +22 -0
  135. package/src/libs/feature/map/src/lib/add-layer-from-ogc-api/add-layer-from-ogc-api.component.css +7 -0
  136. package/src/libs/feature/map/src/lib/add-layer-from-ogc-api/add-layer-from-ogc-api.component.html +32 -18
  137. package/src/libs/feature/map/src/lib/add-layer-from-ogc-api/add-layer-from-ogc-api.component.ts +72 -17
  138. package/src/libs/feature/map/src/lib/map-context/map-context.model.ts +1 -0
  139. package/src/libs/feature/map/src/lib/map-context/map-context.service.ts +26 -8
  140. package/src/libs/feature/record/src/lib/map-view/map-view.component.ts +2 -1
  141. package/src/libs/feature/record/src/lib/state/mdview.facade.ts +0 -1
  142. package/src/libs/feature/record/src/lib/state/mdview.reducer.ts +0 -2
  143. package/src/libs/feature/search/src/index.ts +1 -0
  144. package/src/libs/feature/search/src/lib/utils/service/fields.service.ts +2 -2
  145. package/src/libs/ui/elements/src/lib/api-card/api-card.component.ts +2 -1
  146. package/src/libs/ui/elements/src/lib/downloads-list/downloads-list.component.ts +1 -1
  147. package/src/libs/ui/elements/src/lib/link-card/link-card.component.html +38 -20
  148. package/src/libs/ui/elements/src/lib/link-card/link-card.component.ts +12 -0
  149. package/src/libs/ui/elements/src/lib/record-api-form/record-api-form.component.html +26 -10
  150. package/src/libs/ui/elements/src/lib/record-api-form/record-api-form.component.ts +126 -30
  151. package/src/libs/ui/elements/src/lib/ui-elements.module.ts +0 -2
  152. package/src/libs/ui/elements/src/lib/user-feedback-item/user-feedback-item.component.html +1 -1
  153. package/src/libs/ui/elements/src/lib/user-feedback-item/user-feedback-item.component.ts +0 -1
  154. package/src/libs/ui/inputs/src/index.ts +15 -14
  155. package/src/libs/ui/inputs/src/lib/check-toggle/check-toggle.component.ts +3 -0
  156. package/src/libs/ui/inputs/src/lib/date-picker/date-picker.component.css +3 -0
  157. package/src/libs/ui/inputs/src/lib/date-picker/date-picker.component.html +11 -0
  158. package/src/libs/ui/inputs/src/lib/date-picker/date-picker.component.ts +16 -0
  159. package/src/libs/ui/inputs/src/lib/date-range-picker/date-range-picker.component.ts +8 -1
  160. package/src/libs/ui/inputs/src/lib/dropdown-selector/dropdown-selector.component.html +1 -0
  161. package/src/libs/ui/inputs/src/lib/dropdown-selector/dropdown-selector.component.ts +14 -0
  162. package/src/libs/ui/inputs/src/lib/previous-next-buttons/previous-next-buttons.component.css +6 -0
  163. package/src/libs/ui/inputs/src/lib/previous-next-buttons/previous-next-buttons.component.html +26 -0
  164. package/src/libs/ui/inputs/src/lib/previous-next-buttons/previous-next-buttons.component.ts +32 -0
  165. package/src/libs/ui/inputs/src/lib/text-input/text-input.component.html +1 -0
  166. package/src/libs/ui/inputs/src/lib/text-input/text-input.component.ts +1 -0
  167. package/src/libs/ui/inputs/src/lib/ui-inputs.module.ts +3 -3
  168. package/src/libs/ui/layout/src/index.ts +1 -0
  169. package/src/libs/ui/layout/src/lib/block-list/block-list.component.css +23 -0
  170. package/src/libs/ui/layout/src/lib/block-list/block-list.component.html +20 -0
  171. package/src/libs/ui/layout/src/lib/block-list/block-list.component.ts +84 -0
  172. package/src/libs/ui/layout/src/lib/carousel/carousel.component.css +8 -4
  173. package/src/libs/ui/layout/src/lib/carousel/carousel.component.html +4 -4
  174. package/src/libs/ui/layout/src/lib/carousel/carousel.component.ts +45 -15
  175. package/src/libs/ui/layout/src/lib/ui-layout.module.ts +0 -2
  176. package/src/libs/util/shared/src/lib/links/link-classifier.service.ts +1 -1
  177. package/src/libs/util/shared/src/lib/links/link-utils.ts +21 -0
  178. package/translations/de.json +22 -14
  179. package/translations/en.json +22 -14
  180. package/translations/es.json +22 -14
  181. package/translations/fr.json +22 -14
  182. package/translations/it.json +22 -14
  183. package/translations/nl.json +22 -14
  184. package/translations/pt.json +22 -14
  185. package/translations/sk.json +22 -14
@@ -1 +1 @@
1
- {"version":3,"file":"check-toggle.component.d.ts","sourceRoot":"","sources":["../../../../../../src/libs/ui/inputs/src/lib/check-toggle/check-toggle.component.ts"],"names":[],"mappings":"AAAA,OAAO,EAGL,YAAY,EAGb,MAAM,eAAe,CAAA;;AAEtB,qBAMa,oBAAoB;IACtB,KAAK,EAAE,MAAM,CAAA;IACb,KAAK,EAAE,MAAM,CAAA;IACb,KAAK,EAAE,OAAO,CAAA;IACd,KAAK,EAAE,SAAS,GAAG,WAAW,CAAY;IACzC,OAAO,oBAAqB;IAEtC,MAAM,CAAC,KAAK,EAAE,KAAK;yCAPR,oBAAoB;2CAApB,oBAAoB;CAUhC"}
1
+ {"version":3,"file":"check-toggle.component.d.ts","sourceRoot":"","sources":["../../../../../../src/libs/ui/inputs/src/lib/check-toggle/check-toggle.component.ts"],"names":[],"mappings":"AAAA,OAAO,EAGL,YAAY,EAGb,MAAM,eAAe,CAAA;;AAGtB,qBAQa,oBAAoB;IACtB,KAAK,EAAE,MAAM,CAAA;IACb,KAAK,EAAE,MAAM,CAAA;IACb,KAAK,EAAE,OAAO,CAAA;IACd,KAAK,EAAE,SAAS,GAAG,WAAW,CAAY;IACzC,OAAO,oBAAqB;IAEtC,MAAM,CAAC,KAAK,EAAE,KAAK;yCAPR,oBAAoB;2CAApB,oBAAoB;CAUhC"}
@@ -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,6 +11,7 @@ export declare class DropdownSelectorComponent implements OnInit {
11
11
  maxRows: number;
12
12
  extraBtnClass: string;
13
13
  minWidth: string;
14
+ disabled: boolean;
14
15
  selectValue: EventEmitter<unknown>;
15
16
  overlayOrigin: CdkOverlayOrigin;
16
17
  overlay: CdkConnectedOverlay;
@@ -35,6 +36,6 @@ export declare class DropdownSelectorComponent implements OnInit {
35
36
  get focusedIndex(): number | -1;
36
37
  selectIfEnter(event: KeyboardEvent, choice: DropdownChoice): void;
37
38
  static ɵfac: i0.ɵɵFactoryDeclaration<DropdownSelectorComponent, never>;
38
- static ɵcmp: i0.ɵɵComponentDeclaration<DropdownSelectorComponent, "gn-ui-dropdown-selector", never, { "title": { "alias": "title"; "required": false; }; "showTitle": { "alias": "showTitle"; "required": false; }; "ariaName": { "alias": "ariaName"; "required": false; }; "choices": { "alias": "choices"; "required": false; }; "selected": { "alias": "selected"; "required": false; }; "maxRows": { "alias": "maxRows"; "required": false; }; "extraBtnClass": { "alias": "extraBtnClass"; "required": false; }; "minWidth": { "alias": "minWidth"; "required": false; }; }, { "selectValue": "selectValue"; }, never, never, false, never>;
39
+ static ɵcmp: i0.ɵɵComponentDeclaration<DropdownSelectorComponent, "gn-ui-dropdown-selector", never, { "title": { "alias": "title"; "required": false; }; "showTitle": { "alias": "showTitle"; "required": false; }; "ariaName": { "alias": "ariaName"; "required": false; }; "choices": { "alias": "choices"; "required": false; }; "selected": { "alias": "selected"; "required": false; }; "maxRows": { "alias": "maxRows"; "required": false; }; "extraBtnClass": { "alias": "extraBtnClass"; "required": false; }; "minWidth": { "alias": "minWidth"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; }, { "selectValue": "selectValue"; }, never, never, true, never>;
39
40
  }
40
41
  //# sourceMappingURL=dropdown-selector.component.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"dropdown-selector.component.d.ts","sourceRoot":"","sources":["../../../../../../src/libs/ui/inputs/src/lib/dropdown-selector/dropdown-selector.component.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,mBAAmB,EACnB,gBAAgB,EAChB,iBAAiB,EAClB,MAAM,sBAAsB,CAAA;AAC7B,OAAO,EAGL,UAAU,EACV,YAAY,EAEZ,MAAM,EAEN,SAAS,EAGV,MAAM,eAAe,CAAA;AAEtB,OAAO,EAAE,cAAc,EAAE,MAAM,2BAA2B,CAAA;;AAI1D,qBAMa,yBAA0B,YAAW,MAAM;IAC7C,KAAK,EAAE,MAAM,CAAA;IACb,SAAS,UAAO;IAChB,QAAQ,EAAE,MAAM,CAAA;IAChB,OAAO,EAAE,KAAK,CAAC,cAAc,CAAC,CAAA;IAC9B,QAAQ,EAAE,cAAc,CAAC,OAAO,CAAC,CAAA;IACjC,OAAO,EAAE,MAAM,CAAA;IACf,aAAa,SAAK;IAClB,QAAQ,SAAK;IACZ,WAAW,wBAA8C;IACvC,aAAa,EAAE,gBAAgB,CAAA;IAC3B,OAAO,EAAE,mBAAmB,CAAA;IAC5D,WAAW,UAAQ;IACnB,YAAY,SAAS;IACrB,gBAAgB,SAAS;IACzB,gBAAgB,EAAE,iBAAiB,EAAE,CAepC;IAED,YAAY,EAAE,SAAS,CAAC,UAAU,CAAC,CAAA;IAEnC,IAAI,cAAc,IAAI,cAAc,CAKnC;IAED,IAAI,EAAE,WAEL;IAED,cAAc,IAAI,MAAM;IAIxB,QAAQ,IAAI,IAAI;IAOhB,UAAU,CAAC,MAAM,EAAE,cAAc;IAIjC,aAAa,CAAC,MAAM,EAAE,cAAc;IAMpC,WAAW;IAcX,YAAY;IAIZ,cAAc;IAId,aAAa;IAIP,oBAAoB,CAAC,KAAK,EAAE,aAAa;IAuB/C,oBAAoB,CAAC,KAAK,EAAE,aAAa;IAczC,cAAc,CAAC,KAAK,EAAE,MAAM;IAS5B,IAAI,YAAY,IAAI,MAAM,GAAG,CAAC,CAAC,CAM9B;IAED,aAAa,CAAC,KAAK,EAAE,aAAa,EAAE,MAAM,EAAE,cAAc;yCAlJ/C,yBAAyB;2CAAzB,yBAAyB;CAwJrC"}
1
+ {"version":3,"file":"dropdown-selector.component.d.ts","sourceRoot":"","sources":["../../../../../../src/libs/ui/inputs/src/lib/dropdown-selector/dropdown-selector.component.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,mBAAmB,EACnB,gBAAgB,EAChB,iBAAiB,EAElB,MAAM,sBAAsB,CAAA;AAC7B,OAAO,EAGL,UAAU,EACV,YAAY,EAEZ,MAAM,EAEN,SAAS,EAGV,MAAM,eAAe,CAAA;AAEtB,OAAO,EAAE,cAAc,EAAE,MAAM,2BAA2B,CAAA;;AAQ1D,qBAca,yBAA0B,YAAW,MAAM;IAC7C,KAAK,EAAE,MAAM,CAAA;IACb,SAAS,UAAO;IAChB,QAAQ,EAAE,MAAM,CAAA;IAChB,OAAO,EAAE,KAAK,CAAC,cAAc,CAAC,CAAA;IAC9B,QAAQ,EAAE,cAAc,CAAC,OAAO,CAAC,CAAA;IACjC,OAAO,EAAE,MAAM,CAAA;IACf,aAAa,SAAK;IAClB,QAAQ,SAAK;IACb,QAAQ,EAAE,OAAO,CAAA;IAChB,WAAW,wBAA8C;IACvC,aAAa,EAAE,gBAAgB,CAAA;IAC3B,OAAO,EAAE,mBAAmB,CAAA;IAC5D,WAAW,UAAQ;IACnB,YAAY,SAAS;IACrB,gBAAgB,SAAS;IACzB,gBAAgB,EAAE,iBAAiB,EAAE,CAepC;IAED,YAAY,EAAE,SAAS,CAAC,UAAU,CAAC,CAAA;IAEnC,IAAI,cAAc,IAAI,cAAc,CAKnC;IAED,IAAI,EAAE,WAEL;IAED,cAAc,IAAI,MAAM;IAIxB,QAAQ,IAAI,IAAI;IAOhB,UAAU,CAAC,MAAM,EAAE,cAAc;IAIjC,aAAa,CAAC,MAAM,EAAE,cAAc;IAMpC,WAAW;IAcX,YAAY;IAIZ,cAAc;IAId,aAAa;IAIP,oBAAoB,CAAC,KAAK,EAAE,aAAa;IAuB/C,oBAAoB,CAAC,KAAK,EAAE,aAAa;IAczC,cAAc,CAAC,KAAK,EAAE,MAAM;IAS5B,IAAI,YAAY,IAAI,MAAM,GAAG,CAAC,CAAC,CAM9B;IAED,aAAa,CAAC,KAAK,EAAE,aAAa,EAAE,MAAM,EAAE,cAAc;yCAnJ/C,yBAAyB;2CAAzB,yBAAyB;CAyJrC"}
@@ -0,0 +1,12 @@
1
+ import { EventEmitter } from '@angular/core';
2
+ import * as i0 from "@angular/core";
3
+ export declare class PreviousNextButtonsComponent {
4
+ isFirst: boolean;
5
+ isLast: boolean;
6
+ directionButtonClicked: EventEmitter<string>;
7
+ previousButtonClicked(): void;
8
+ nextButtonClicked(): void;
9
+ static ɵfac: i0.ɵɵFactoryDeclaration<PreviousNextButtonsComponent, never>;
10
+ static ɵcmp: i0.ɵɵComponentDeclaration<PreviousNextButtonsComponent, "gn-ui-previous-next-buttons", never, { "isFirst": { "alias": "isFirst"; "required": false; }; "isLast": { "alias": "isLast"; "required": false; }; }, { "directionButtonClicked": "directionButtonClicked"; }, never, never, true, never>;
11
+ }
12
+ //# sourceMappingURL=previous-next-buttons.component.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"previous-next-buttons.component.d.ts","sourceRoot":"","sources":["../../../../../../src/libs/ui/inputs/src/lib/previous-next-buttons/previous-next-buttons.component.ts"],"names":[],"mappings":"AAAA,OAAO,EAGL,YAAY,EAGb,MAAM,eAAe,CAAA;;AAItB,qBAQa,4BAA4B;IAC9B,OAAO,EAAE,OAAO,CAAA;IAChB,MAAM,EAAE,OAAO,CAAA;IAEd,sBAAsB,EAAE,YAAY,CAAC,MAAM,CAAC,CAAqB;IAE3E,qBAAqB;IAIrB,iBAAiB;yCAVN,4BAA4B;2CAA5B,4BAA4B;CAaxC"}
@@ -7,6 +7,7 @@ export declare class TextInputComponent implements AfterViewInit {
7
7
  extraClass: string;
8
8
  hint: string;
9
9
  required: boolean;
10
+ disabled: boolean;
10
11
  rawChange: Subject<string>;
11
12
  valueChange: import("rxjs").Observable<string>;
12
13
  input: any;
@@ -15,6 +16,6 @@ export declare class TextInputComponent implements AfterViewInit {
15
16
  checkRequired(value: any): void;
16
17
  handleChange($event: any): void;
17
18
  static ɵfac: i0.ɵɵFactoryDeclaration<TextInputComponent, never>;
18
- static ɵcmp: i0.ɵɵComponentDeclaration<TextInputComponent, "gn-ui-text-input", never, { "value": { "alias": "value"; "required": false; }; "extraClass": { "alias": "extraClass"; "required": false; }; "hint": { "alias": "hint"; "required": false; }; "required": { "alias": "required"; "required": false; }; }, { "valueChange": "valueChange"; }, never, never, false, never>;
19
+ static ɵcmp: i0.ɵɵComponentDeclaration<TextInputComponent, "gn-ui-text-input", never, { "value": { "alias": "value"; "required": false; }; "extraClass": { "alias": "extraClass"; "required": false; }; "hint": { "alias": "hint"; "required": false; }; "required": { "alias": "required"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; }, { "valueChange": "valueChange"; }, never, never, false, never>;
19
20
  }
20
21
  //# sourceMappingURL=text-input.component.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"text-input.component.d.ts","sourceRoot":"","sources":["../../../../../../src/libs/ui/inputs/src/lib/text-input/text-input.component.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,aAAa,EAKd,MAAM,eAAe,CAAA;AAEtB,OAAO,EAAE,OAAO,EAAE,MAAM,MAAM,CAAA;;AAE9B,qBAKa,kBAAmB,YAAW,aAAa;IACtD,OAAO,CAAC,QAAQ,CAAC,SAAS,CASf;IAEF,KAAK,SAAK;IACV,UAAU,SAAK;IACf,IAAI,EAAE,MAAM,CAAA;IACZ,QAAQ,UAAQ;IACzB,SAAS,kBAAwB;IACvB,WAAW,oCAA8C;IAC/C,KAAK,MAAA;IAEzB,IAAI,SAAS,WAEZ;IAED,eAAe;IAIf,aAAa,CAAC,KAAK,KAAA;IAOnB,YAAY,CAAC,MAAM,KAAA;yCAnCR,kBAAkB;2CAAlB,kBAAkB;CAwC9B"}
1
+ {"version":3,"file":"text-input.component.d.ts","sourceRoot":"","sources":["../../../../../../src/libs/ui/inputs/src/lib/text-input/text-input.component.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,aAAa,EAKd,MAAM,eAAe,CAAA;AAEtB,OAAO,EAAE,OAAO,EAAE,MAAM,MAAM,CAAA;;AAE9B,qBAKa,kBAAmB,YAAW,aAAa;IACtD,OAAO,CAAC,QAAQ,CAAC,SAAS,CASf;IAEF,KAAK,SAAK;IACV,UAAU,SAAK;IACf,IAAI,EAAE,MAAM,CAAA;IACZ,QAAQ,UAAQ;IAChB,QAAQ,EAAE,OAAO,CAAA;IAC1B,SAAS,kBAAwB;IACvB,WAAW,oCAA8C;IAC/C,KAAK,MAAA;IAEzB,IAAI,SAAS,WAEZ;IAED,eAAe;IAIf,aAAa,CAAC,KAAK,KAAA;IAOnB,YAAY,CAAC,MAAM,KAAA;yCApCR,kBAAkB;2CAAlB,kBAAkB;CAyC9B"}
@@ -1,41 +1,41 @@
1
1
  import * as i0 from "@angular/core";
2
- import * as i1 from "./dropdown-selector/dropdown-selector.component";
3
- import * as i2 from "./autocomplete/autocomplete.component";
4
- import * as i3 from "./text-input/text-input.component";
5
- import * as i4 from "./drag-and-drop-file-input/drag-and-drop-file-input.component";
6
- import * as i5 from "./chips-input/chips-input.component";
7
- import * as i6 from "./navigation-button/navigation-button.component";
8
- import * as i7 from "./star-toggle/star-toggle.component";
9
- import * as i8 from "./dropdown-multiselect/dropdown-multiselect.component";
10
- import * as i9 from "./viewport-intersector/viewport-intersector.component";
11
- import * as i10 from "./check-toggle/check-toggle.component";
12
- import * as i11 from "./copy-text-button/copy-text-button.component";
13
- import * as i12 from "./checkbox/checkbox.component";
14
- import * as i13 from "./search-input/search-input.component";
15
- import * as i14 from "./date-range-picker/date-range-picker.component";
16
- import * as i15 from "@angular/common";
17
- import * as i16 from "@ngx-translate/core";
18
- import * as i17 from "ngx-dropzone";
19
- import * as i18 from "@angular/forms";
20
- import * as i19 from "ngx-chips";
21
- import * as i20 from "../../../../util/shared/src/lib/util-shared.module";
22
- import * as i21 from "@angular/material/autocomplete";
23
- import * as i22 from "@angular/material/icon";
24
- import * as i23 from "../../../widgets/src/lib/ui-widgets.module";
25
- import * as i24 from "@angular/cdk/overlay";
26
- import * as i25 from "@angular/material/checkbox";
27
- import * as i26 from "@angular/material/tooltip";
28
- import * as i27 from "@angular/material/form-field";
29
- import * as i28 from "@angular/material/input";
30
- import * as i29 from "@angular/material/datepicker";
31
- import * as i30 from "@angular/material/core";
32
- import * as i31 from "./editable-label/editable-label.directive";
33
- import * as i32 from "./text-area/text-area.component";
34
- import * as i33 from "./button/button.component";
35
- import * as i34 from "./image-input/image-input.component";
2
+ import * as i1 from "./autocomplete/autocomplete.component";
3
+ import * as i2 from "./text-input/text-input.component";
4
+ import * as i3 from "./drag-and-drop-file-input/drag-and-drop-file-input.component";
5
+ import * as i4 from "./chips-input/chips-input.component";
6
+ import * as i5 from "./navigation-button/navigation-button.component";
7
+ import * as i6 from "./star-toggle/star-toggle.component";
8
+ import * as i7 from "./dropdown-multiselect/dropdown-multiselect.component";
9
+ import * as i8 from "./viewport-intersector/viewport-intersector.component";
10
+ import * as i9 from "./copy-text-button/copy-text-button.component";
11
+ import * as i10 from "./checkbox/checkbox.component";
12
+ import * as i11 from "./search-input/search-input.component";
13
+ import * as i12 from "@angular/common";
14
+ import * as i13 from "@ngx-translate/core";
15
+ import * as i14 from "ngx-dropzone";
16
+ import * as i15 from "@angular/forms";
17
+ import * as i16 from "ngx-chips";
18
+ import * as i17 from "../../../../util/shared/src/lib/util-shared.module";
19
+ import * as i18 from "@angular/material/autocomplete";
20
+ import * as i19 from "@angular/material/icon";
21
+ import * as i20 from "../../../widgets/src/lib/ui-widgets.module";
22
+ import * as i21 from "@angular/cdk/overlay";
23
+ import * as i22 from "@angular/material/checkbox";
24
+ import * as i23 from "@angular/material/tooltip";
25
+ import * as i24 from "@angular/material/form-field";
26
+ import * as i25 from "@angular/material/input";
27
+ import * as i26 from "@angular/material/datepicker";
28
+ import * as i27 from "@angular/material/core";
29
+ import * as i28 from "./editable-label/editable-label.directive";
30
+ import * as i29 from "./text-area/text-area.component";
31
+ import * as i30 from "./button/button.component";
32
+ import * as i31 from "./image-input/image-input.component";
33
+ import * as i32 from "./dropdown-selector/dropdown-selector.component";
34
+ import * as i33 from "./date-range-picker/date-range-picker.component";
35
+ import * as i34 from "./check-toggle/check-toggle.component";
36
36
  export declare class UiInputsModule {
37
37
  static ɵfac: i0.ɵɵFactoryDeclaration<UiInputsModule, never>;
38
- static ɵmod: i0.ɵɵNgModuleDeclaration<UiInputsModule, [typeof i1.DropdownSelectorComponent, typeof i2.AutocompleteComponent, typeof i3.TextInputComponent, typeof i4.DragAndDropFileInputComponent, typeof i5.ChipsInputComponent, typeof i6.NavigationButtonComponent, typeof i7.StarToggleComponent, typeof i8.DropdownMultiselectComponent, typeof i9.ViewportIntersectorComponent, typeof i10.CheckToggleComponent, typeof i11.CopyTextButtonComponent, typeof i12.CheckboxComponent, typeof i13.SearchInputComponent, typeof i14.DateRangePickerComponent], [typeof i15.CommonModule, typeof i16.TranslateModule, typeof i17.NgxDropzoneModule, typeof i18.FormsModule, typeof i18.ReactiveFormsModule, typeof i19.TagInputModule, typeof i20.UtilSharedModule, typeof i21.MatAutocompleteModule, typeof i22.MatIconModule, typeof i23.UiWidgetsModule, typeof i24.OverlayModule, typeof i25.MatCheckboxModule, typeof i26.MatTooltipModule, typeof i27.MatFormFieldModule, typeof i28.MatInputModule, typeof i29.MatDatepickerModule, typeof i30.MatNativeDateModule, typeof i31.EditableLabelDirective, typeof i32.TextAreaComponent, typeof i33.ButtonComponent, typeof i34.ImageInputComponent], [typeof i1.DropdownSelectorComponent, typeof i2.AutocompleteComponent, typeof i33.ButtonComponent, typeof i3.TextInputComponent, typeof i4.DragAndDropFileInputComponent, typeof i32.TextAreaComponent, typeof i5.ChipsInputComponent, typeof i6.NavigationButtonComponent, typeof i7.StarToggleComponent, typeof i8.DropdownMultiselectComponent, typeof i9.ViewportIntersectorComponent, typeof i10.CheckToggleComponent, typeof i11.CopyTextButtonComponent, typeof i12.CheckboxComponent, typeof i13.SearchInputComponent, typeof i14.DateRangePickerComponent, typeof i31.EditableLabelDirective, typeof i34.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.CopyTextButtonComponent, typeof i10.CheckboxComponent, typeof i11.SearchInputComponent], [typeof i12.CommonModule, typeof i13.TranslateModule, typeof i14.NgxDropzoneModule, typeof i15.FormsModule, typeof i15.ReactiveFormsModule, typeof i16.TagInputModule, typeof i17.UtilSharedModule, typeof i18.MatAutocompleteModule, typeof i19.MatIconModule, typeof i20.UiWidgetsModule, typeof i21.OverlayModule, typeof i22.MatCheckboxModule, typeof i23.MatTooltipModule, typeof i24.MatFormFieldModule, typeof i25.MatInputModule, typeof i26.MatDatepickerModule, typeof i27.MatNativeDateModule, typeof i28.EditableLabelDirective, typeof i29.TextAreaComponent, typeof i30.ButtonComponent, typeof i31.ImageInputComponent, typeof i32.DropdownSelectorComponent, typeof i33.DateRangePickerComponent, typeof i34.CheckToggleComponent], [typeof i32.DropdownSelectorComponent, typeof i1.AutocompleteComponent, typeof i30.ButtonComponent, typeof i2.TextInputComponent, typeof i3.DragAndDropFileInputComponent, typeof i29.TextAreaComponent, typeof i4.ChipsInputComponent, typeof i5.NavigationButtonComponent, typeof i6.StarToggleComponent, typeof i7.DropdownMultiselectComponent, typeof i8.ViewportIntersectorComponent, typeof i34.CheckToggleComponent, typeof i9.CopyTextButtonComponent, typeof i10.CheckboxComponent, typeof i11.SearchInputComponent, typeof i33.DateRangePickerComponent, typeof i28.EditableLabelDirective, typeof i31.ImageInputComponent]>;
39
39
  static ɵinj: i0.ɵɵInjectorDeclaration<UiInputsModule>;
40
40
  }
41
41
  //# sourceMappingURL=ui-inputs.module.d.ts.map
@@ -6,5 +6,6 @@ export * from './lib/form-field-wrapper/form-field-wrapper.component';
6
6
  export * from './lib/interactive-table/interactive-table-column/interactive-table-column.component';
7
7
  export * from './lib/interactive-table/interactive-table.component';
8
8
  export * from './lib/sticky-header/sticky-header.component';
9
+ export * from './lib/block-list/block-list.component';
9
10
  export * from './lib/ui-layout.module';
10
11
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/libs/ui/layout/src/index.ts"],"names":[],"mappings":"AAAA,cAAc,yCAAyC,CAAA;AACvD,cAAc,mCAAmC,CAAA;AACjD,cAAc,iEAAiE,CAAA;AAC/E,cAAc,mDAAmD,CAAA;AACjE,cAAc,uDAAuD,CAAA;AACrE,cAAc,qFAAqF,CAAA;AACnG,cAAc,qDAAqD,CAAA;AACnE,cAAc,6CAA6C,CAAA;AAC3D,cAAc,wBAAwB,CAAA"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/libs/ui/layout/src/index.ts"],"names":[],"mappings":"AAAA,cAAc,yCAAyC,CAAA;AACvD,cAAc,mCAAmC,CAAA;AACjD,cAAc,iEAAiE,CAAA;AAC/E,cAAc,mDAAmD,CAAA;AACjE,cAAc,uDAAuD,CAAA;AACrE,cAAc,qFAAqF,CAAA;AACnG,cAAc,qDAAqD,CAAA;AACnE,cAAc,6CAA6C,CAAA;AAC3D,cAAc,uCAAuC,CAAA;AACrD,cAAc,wBAAwB,CAAA"}
@@ -0,0 +1,25 @@
1
+ import { AfterViewInit, ChangeDetectorRef, ElementRef, QueryList } from '@angular/core';
2
+ import * as i0 from "@angular/core";
3
+ export declare class BlockListComponent implements AfterViewInit {
4
+ private changeDetector;
5
+ pageSize: number;
6
+ containerClass: string;
7
+ paginationContainerClass: string;
8
+ blocks: QueryList<ElementRef<HTMLElement>>;
9
+ blockContainer: ElementRef<HTMLElement>;
10
+ protected minHeight: number;
11
+ protected currentPage: number;
12
+ protected get pages(): number[];
13
+ get isFirstPage(): boolean;
14
+ get isLastPage(): boolean;
15
+ get pagesCount(): number;
16
+ constructor(changeDetector: ChangeDetectorRef);
17
+ ngAfterViewInit(): void;
18
+ protected refreshBlocksVisibility: () => void;
19
+ goToPage(index: number): void;
20
+ previousPage(): void;
21
+ nextPage(): void;
22
+ static ɵfac: i0.ɵɵFactoryDeclaration<BlockListComponent, never>;
23
+ static ɵcmp: i0.ɵɵComponentDeclaration<BlockListComponent, "gn-ui-block-list", never, { "pageSize": { "alias": "pageSize"; "required": false; }; "containerClass": { "alias": "containerClass"; "required": false; }; "paginationContainerClass": { "alias": "paginationContainerClass"; "required": false; }; }, {}, ["blocks"], ["*"], true, never>;
24
+ }
25
+ //# sourceMappingURL=block-list.component.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"block-list.component.d.ts","sourceRoot":"","sources":["../../../../../../src/libs/ui/layout/src/lib/block-list/block-list.component.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,aAAa,EAEb,iBAAiB,EAGjB,UAAU,EAEV,SAAS,EAEV,MAAM,eAAe,CAAA;;AAGtB,qBAQa,kBAAmB,YAAW,aAAa;IA0B1C,OAAO,CAAC,cAAc;IAzBzB,QAAQ,SAAI;IACZ,cAAc,SAAK;IACnB,wBAAwB,SAA6B;IACd,MAAM,EAAE,SAAS,CAC/D,UAAU,CAAC,WAAW,CAAC,CACxB,CAAA;IAC4B,cAAc,EAAE,UAAU,CAAC,WAAW,CAAC,CAAA;IAEpE,SAAS,CAAC,SAAS,SAAI;IAEvB,SAAS,CAAC,WAAW,SAAI;IACzB,SAAS,KAAK,KAAK,aAElB;IAED,IAAI,WAAW,YAEd;IACD,IAAI,UAAU,YAEb;IACD,IAAI,UAAU,WAEb;gBAEmB,cAAc,EAAE,iBAAiB;IAErD,eAAe;IASf,SAAS,CAAC,uBAAuB,aAQhC;IAEM,QAAQ,CAAC,KAAK,EAAE,MAAM;IAMtB,YAAY;IAKZ,QAAQ;yCA1DJ,kBAAkB;2CAAlB,kBAAkB;CA8D9B"}
@@ -1,18 +1,25 @@
1
- import { AfterViewInit, ChangeDetectorRef, ElementRef } from '@angular/core';
1
+ import { AfterViewInit, ChangeDetectorRef, ElementRef, EventEmitter } from '@angular/core';
2
2
  import { EmblaCarouselType } from 'embla-carousel';
3
3
  import * as i0 from "@angular/core";
4
4
  export declare class CarouselComponent implements AfterViewInit {
5
5
  private changeDetector;
6
+ carouselOverflowContainer: ElementRef;
6
7
  containerClass: string;
7
8
  stepsContainerClass: string;
8
- carouselOverflowContainer: ElementRef;
9
- steps: number[];
10
- selectedStep: number;
11
- emblaApi: EmblaCarouselType;
9
+ currentStepChange: EventEmitter<number>;
10
+ protected steps: number[];
11
+ protected emblaApi: EmblaCarouselType;
12
+ protected currentStep: number;
13
+ protected refreshSteps: () => void;
14
+ get isFirstStep(): boolean;
15
+ get isLastStep(): boolean;
16
+ get stepsCount(): number;
12
17
  constructor(changeDetector: ChangeDetectorRef);
13
18
  ngAfterViewInit(): void;
14
19
  scrollToStep(stepIndex: number): void;
20
+ slideToPrevious(): void;
21
+ slideToNext(): void;
15
22
  static ɵfac: i0.ɵɵFactoryDeclaration<CarouselComponent, never>;
16
- static ɵcmp: i0.ɵɵComponentDeclaration<CarouselComponent, "gn-ui-carousel", never, { "containerClass": { "alias": "containerClass"; "required": false; }; "stepsContainerClass": { "alias": "stepsContainerClass"; "required": false; }; }, {}, never, ["*"], false, never>;
23
+ static ɵcmp: i0.ɵɵComponentDeclaration<CarouselComponent, "gn-ui-carousel", never, { "containerClass": { "alias": "containerClass"; "required": false; }; "stepsContainerClass": { "alias": "stepsContainerClass"; "required": false; }; }, { "currentStepChange": "currentStepChange"; }, never, ["*"], true, never>;
17
24
  }
18
25
  //# sourceMappingURL=carousel.component.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"carousel.component.d.ts","sourceRoot":"","sources":["../../../../../../src/libs/ui/layout/src/lib/carousel/carousel.component.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,aAAa,EAEb,iBAAiB,EAEjB,UAAU,EAGX,MAAM,eAAe,CAAA;AACtB,OAAsB,EAAE,iBAAiB,EAAE,MAAM,gBAAgB,CAAA;;AAEjE,qBAMa,iBAAkB,YAAW,aAAa;IASzC,OAAO,CAAC,cAAc;IARzB,cAAc,SAAK;IACnB,mBAAmB,SAAK;IAEjC,yBAAyB,EAAE,UAAU,CAAA;IACrC,KAAK,EAAE,MAAM,EAAE,CAAK;IACpB,YAAY,SAAK;IACjB,QAAQ,EAAE,iBAAiB,CAAA;gBAEP,cAAc,EAAE,iBAAiB;IAErD,eAAe;IAkBf,YAAY,CAAC,SAAS,EAAE,MAAM;yCA7BnB,iBAAiB;2CAAjB,iBAAiB;CAgC7B"}
1
+ {"version":3,"file":"carousel.component.d.ts","sourceRoot":"","sources":["../../../../../../src/libs/ui/layout/src/lib/carousel/carousel.component.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,aAAa,EAEb,iBAAiB,EAEjB,UAAU,EACV,YAAY,EAIb,MAAM,eAAe,CAAA;AACtB,OAAsB,EAAE,iBAAiB,EAAE,MAAM,gBAAgB,CAAA;;AAGjE,qBAQa,iBAAkB,YAAW,aAAa;IA4BzC,OAAO,CAAC,cAAc;IA3BM,yBAAyB,EAAE,UAAU,CAAA;IAEpE,cAAc,SAAK;IACnB,mBAAmB,SAA6B;IAC/C,iBAAiB,uBAA6B;IAExD,SAAS,CAAC,KAAK,EAAE,MAAM,EAAE,CAAK;IAC9B,SAAS,CAAC,QAAQ,EAAE,iBAAiB,CAAA;IACrC,SAAS,CAAC,WAAW,SAAI;IAEzB,SAAS,CAAC,YAAY,aAKrB;IAED,IAAI,WAAW,YAEd;IACD,IAAI,UAAU,YAEb;IACD,IAAI,UAAU,WAEb;gBAEmB,cAAc,EAAE,iBAAiB;IAErD,eAAe;IAcR,YAAY,CAAC,SAAS,EAAE,MAAM;IAI9B,eAAe;IAKf,WAAW;yCArDP,iBAAiB;2CAAjB,iBAAiB;CAyD7B"}
@@ -3,13 +3,12 @@ import * as i1 from "./expandable-panel/expandable-panel.component";
3
3
  import * as i2 from "./sticky-header/sticky-header.component";
4
4
  import * as i3 from "./anchor-link/anchor-link.directive";
5
5
  import * as i4 from "./expandable-panel-button/expandable-panel-button.component";
6
- import * as i5 from "./carousel/carousel.component";
7
- import * as i6 from "@angular/common";
8
- import * as i7 from "@angular/material/icon";
9
- import * as i8 from "@ngx-translate/core";
6
+ import * as i5 from "@angular/common";
7
+ import * as i6 from "@angular/material/icon";
8
+ import * as i7 from "@ngx-translate/core";
10
9
  export declare class UiLayoutModule {
11
10
  static ɵfac: i0.ɵɵFactoryDeclaration<UiLayoutModule, never>;
12
- static ɵmod: i0.ɵɵNgModuleDeclaration<UiLayoutModule, [typeof i1.ExpandablePanelComponent, typeof i2.StickyHeaderComponent, typeof i3.AnchorLinkDirective, typeof i4.ExpandablePanelButtonComponent, typeof i5.CarouselComponent], [typeof i6.CommonModule, typeof i7.MatIconModule, typeof i8.TranslateModule], [typeof i1.ExpandablePanelComponent, typeof i2.StickyHeaderComponent, typeof i3.AnchorLinkDirective, typeof i4.ExpandablePanelButtonComponent, typeof i5.CarouselComponent]>;
11
+ static ɵmod: i0.ɵɵNgModuleDeclaration<UiLayoutModule, [typeof i1.ExpandablePanelComponent, typeof i2.StickyHeaderComponent, typeof i3.AnchorLinkDirective, typeof i4.ExpandablePanelButtonComponent], [typeof i5.CommonModule, typeof i6.MatIconModule, typeof i7.TranslateModule], [typeof i1.ExpandablePanelComponent, typeof i2.StickyHeaderComponent, typeof i3.AnchorLinkDirective, typeof i4.ExpandablePanelButtonComponent]>;
13
12
  static ɵinj: i0.ɵɵInjectorDeclaration<UiLayoutModule>;
14
13
  }
15
14
  //# sourceMappingURL=ui-layout.module.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"ui-layout.module.d.ts","sourceRoot":"","sources":["../../../../../src/libs/ui/layout/src/lib/ui-layout.module.ts"],"names":[],"mappings":";;;;;;;;;AAUA,qBAiBa,cAAc;yCAAd,cAAc;0CAAd,cAAc;0CAAd,cAAc;CAAG"}
1
+ {"version":3,"file":"ui-layout.module.d.ts","sourceRoot":"","sources":["../../../../../src/libs/ui/layout/src/lib/ui-layout.module.ts"],"names":[],"mappings":";;;;;;;;AAUA,qBAea,cAAc;yCAAd,cAAc;0CAAd,cAAc;0CAAd,cAAc;CAAG"}
@@ -78,6 +78,24 @@ export declare const FORMATS: {
78
78
  readonly color: "#de630b";
79
79
  readonly mimeTypes: readonly ["application/x-dxf", "image/x-dxf"];
80
80
  };
81
+ readonly html: {
82
+ readonly extensions: readonly ["html", "htm"];
83
+ readonly priority: 12;
84
+ readonly color: "#f2bb3a";
85
+ readonly mimeTypes: readonly ["text/html"];
86
+ };
87
+ readonly fgb: {
88
+ readonly extensions: readonly ["fgb", "flatgeobuf"];
89
+ readonly priority: 13;
90
+ readonly color: "#f2bb3a";
91
+ readonly mimeTypes: readonly ["application/flatgeobuf"];
92
+ };
93
+ readonly jsonfg: {
94
+ readonly extensions: readonly ["jsonfg", "jsonfgc"];
95
+ readonly priority: 14;
96
+ readonly color: "#f2bb3a";
97
+ readonly mimeTypes: readonly ["application/vnd.ogc.fg+json", "application/vnd.ogc.fg+json;compatibility=geojson"];
98
+ };
81
99
  };
82
100
  export type FileFormat = keyof typeof FORMATS;
83
101
  export declare function getFormatPriority(linkFormat: FileFormat): number;
@@ -1 +1 @@
1
- {"version":3,"file":"link-utils.d.ts","sourceRoot":"","sources":["../../../../../../src/libs/util/shared/src/lib/links/link-utils.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,mBAAmB,EAAE,MAAM,2DAA2D,CAAA;AAI/F,eAAO,MAAM,OAAO;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA2FV,CAAA;AAEV,MAAM,MAAM,UAAU,GAAG,MAAM,OAAO,OAAO,CAAA;AAE7C,wBAAgB,iBAAiB,CAAC,UAAU,EAAE,UAAU,GAAG,MAAM,CAUhE;AAED,wBAAgB,eAAe,CAAC,IAAI,EAAE,mBAAmB,GAAG,MAAM,CAEjE;AAED,wBAAgB,8BAA8B,CAC5C,aAAa,EAAE,MAAM,GACpB,UAAU,GAAG,IAAI,CAgBnB;AAED,wBAAgB,aAAa,CAAC,IAAI,EAAE,mBAAmB,GAAG,UAAU,CAcnE;AAED,wBAAgB,oBAAoB,CAClC,IAAI,EAAE,mBAAmB,EACzB,KAAK,EAAE,MAAM,GACZ,OAAO,CAQT;AAED,wBAAgB,gBAAgB,CAAC,QAAQ,EAAE,MAAM,GAAG,UAAU,CAO7D;AAED,wBAAgB,eAAe,CAC7B,IAAI,EAAE,mBAAmB,EACzB,MAAM,EAAE,UAAU,GACjB,OAAO,CAMT;AAED,wBAAgB,aAAa,CAAC,UAAU,EAAE,UAAU,GAAG,MAAM,CAQ5D;AAED,wBAAgB,YAAY,CAAC,IAAI,EAAE,mBAAmB,GAAG,MAAM,CA0B9D;AAED,wBAAgB,oBAAoB,CAAC,MAAM,EAAE,UAAU,GAAG,MAAM,GAAG,IAAI,CAEtE"}
1
+ {"version":3,"file":"link-utils.d.ts","sourceRoot":"","sources":["../../../../../../src/libs/util/shared/src/lib/links/link-utils.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,mBAAmB,EAAE,MAAM,2DAA2D,CAAA;AAI/F,eAAO,MAAM,OAAO;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAgHV,CAAA;AAEV,MAAM,MAAM,UAAU,GAAG,MAAM,OAAO,OAAO,CAAA;AAE7C,wBAAgB,iBAAiB,CAAC,UAAU,EAAE,UAAU,GAAG,MAAM,CAUhE;AAED,wBAAgB,eAAe,CAAC,IAAI,EAAE,mBAAmB,GAAG,MAAM,CAEjE;AAED,wBAAgB,8BAA8B,CAC5C,aAAa,EAAE,MAAM,GACpB,UAAU,GAAG,IAAI,CAgBnB;AAED,wBAAgB,aAAa,CAAC,IAAI,EAAE,mBAAmB,GAAG,UAAU,CAcnE;AAED,wBAAgB,oBAAoB,CAClC,IAAI,EAAE,mBAAmB,EACzB,KAAK,EAAE,MAAM,GACZ,OAAO,CAQT;AAED,wBAAgB,gBAAgB,CAAC,QAAQ,EAAE,MAAM,GAAG,UAAU,CAO7D;AAED,wBAAgB,eAAe,CAC7B,IAAI,EAAE,mBAAmB,EACzB,MAAM,EAAE,UAAU,GACjB,OAAO,CAMT;AAED,wBAAgB,aAAa,CAAC,UAAU,EAAE,UAAU,GAAG,MAAM,CAQ5D;AAED,wBAAgB,YAAY,CAAC,IAAI,EAAE,mBAAmB,GAAG,MAAM,CA0B9D;AAED,wBAAgB,oBAAoB,CAAC,MAAM,EAAE,UAAU,GAAG,MAAM,GAAG,IAAI,CAEtE"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "geonetwork-ui",
3
- "version": "2.3.0-dev.3efe236f",
3
+ "version": "2.3.0-dev.549700bf",
4
4
  "engines": {
5
5
  "node": ">=14.17.0"
6
6
  },
@@ -47,7 +47,7 @@
47
47
  },
48
48
  "dependencies": {
49
49
  "@biesbjerg/ngx-translate-extract-marker": "^1.0.0",
50
- "@camptocamp/ogc-client": "^1.1.0-RC.3",
50
+ "@camptocamp/ogc-client": "1.1.1-dev.ddbb5b0",
51
51
  "@geospatial-sdk/geocoding": "^0.0.5-alpha.2",
52
52
  "@ltd/j-toml": "~1.35.2",
53
53
  "@messageformat/core": "^3.0.1",
@@ -434,7 +434,7 @@ export function getUpdateFrequencyFromCustomPeriod(
434
434
  } else if (days <= 7) {
435
435
  return {
436
436
  per: 'week',
437
- updatedTimes: Math.round(7 / days),
437
+ updatedTimes: Math.round(7 / days - 0.0001), // this is to make sure that 'every 2 days' = '3 times per week'
438
438
  }
439
439
  } else if (days) {
440
440
  return {
@@ -24,10 +24,8 @@ import {
24
24
  findChildOrCreate,
25
25
  findChildrenElement,
26
26
  findNestedChildOrCreate,
27
- findNestedElement,
28
27
  findNestedElements,
29
28
  readAttribute,
30
- readText,
31
29
  removeAllChildren,
32
30
  removeChildren,
33
31
  removeChildrenByName,
@@ -36,7 +34,6 @@ import {
36
34
  } from '../xml-utils'
37
35
  import {
38
36
  ChainableFunction,
39
- combine,
40
37
  fallback,
41
38
  filterArray,
42
39
  getAtIndex,
@@ -220,7 +217,7 @@ export function getISODuration(updateFrequency: UpdateFrequencyCustom): string {
220
217
  else duration.hours = Math.round(24 / updateFrequency.updatedTimes)
221
218
  break
222
219
  case 'week':
223
- duration.days = Math.round(7 / updateFrequency.updatedTimes)
220
+ duration.days = Math.round(7 / updateFrequency.updatedTimes - 0.0001) // this is to make sure that '2 times per week' = 'every 3 days'
224
221
  break
225
222
  case 'month':
226
223
  if (updateFrequency.updatedTimes <= 1) duration.months = 1
@@ -162,19 +162,25 @@ export class Gn4PlatformService implements PlatformServiceInterface {
162
162
  }
163
163
 
164
164
  getUserFeedbacks(uuid: string): Observable<UserFeedback[]> {
165
- return this.userfeedbackApiService
166
- .getUserComments(uuid)
167
- .pipe(
168
- map((userFeedbacks) =>
169
- userFeedbacks.map(this.mapper.userFeedbacksFromApi)
170
- )
171
- )
165
+ return this.userfeedbackApiService.getUserComments(uuid).pipe(
166
+ map((userFeedbacks) =>
167
+ userFeedbacks.map(this.mapper.userFeedbacksFromApi)
168
+ ),
169
+ catchError((error) => {
170
+ console.error('Error fetching user feedbacks:', error)
171
+ return of(undefined)
172
+ })
173
+ )
172
174
  }
173
175
 
174
176
  postUserFeedbacks(userFeedback: UserFeedback): Observable<void> {
175
177
  const mappedUserFeedBack = this.mapper.userFeedbacksToApi(userFeedback)
176
- return this.userfeedbackApiService
177
- .newUserFeedback(mappedUserFeedBack)
178
- .pipe(map(() => undefined))
178
+ return this.userfeedbackApiService.newUserFeedback(mappedUserFeedBack).pipe(
179
+ map(() => undefined),
180
+ catchError((error) => {
181
+ console.error('Error posting user feedback:', error)
182
+ return of(undefined)
183
+ })
184
+ )
179
185
  }
180
186
  }
@@ -110,6 +110,14 @@ export const LINK_FIXTURES: Record<string, DatasetDistribution> = deepFreeze({
110
110
  url: new URL('https://my.ogc.server/wfs'),
111
111
  accessServiceProtocol: 'wfs',
112
112
  },
113
+ geodataWfsDownload: {
114
+ name: 'mylayer',
115
+ type: 'download',
116
+ url: new URL(
117
+ 'https://my.ogc.server/wfs?GetFeature&FeatureType=surval_parametre_ligne&format=csv'
118
+ ),
119
+ accessServiceProtocol: 'wfs',
120
+ },
113
121
  geodataWms2: {
114
122
  name: 'myotherlayer',
115
123
  type: 'service',
@@ -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.
@@ -1,6 +1,11 @@
1
1
  import { Injectable } from '@angular/core'
2
2
  import { marker } from '@biesbjerg/ngx-translate-extract-marker'
3
- import { WfsEndpoint, WfsVersion } from '@camptocamp/ogc-client'
3
+ import {
4
+ OgcApiCollectionInfo,
5
+ OgcApiEndpoint,
6
+ WfsEndpoint,
7
+ WfsVersion,
8
+ } from '@camptocamp/ogc-client'
4
9
  import {
5
10
  BaseReader,
6
11
  FetchError,
@@ -27,6 +32,7 @@ marker('wfs.unreachable.http')
27
32
  marker('wfs.unreachable.unknown')
28
33
  marker('wfs.featuretype.notfound')
29
34
  marker('wfs.geojsongml.notsupported')
35
+ marker('ogc.unreachable.unknown')
30
36
  marker('dataset.error.network')
31
37
  marker('dataset.error.http')
32
38
  marker('dataset.error.parse')
@@ -148,6 +154,35 @@ export class DataService {
148
154
  )
149
155
  }
150
156
 
157
+ async getDownloadLinksFromOgcApiFeatures(
158
+ ogcApiLink: DatasetServiceDistribution
159
+ ): Promise<DatasetDistribution[]> {
160
+ const collectionInfo = await this.getDownloadUrlsFromOgcApi(
161
+ ogcApiLink.url.href
162
+ )
163
+ return Object.keys(collectionInfo.bulkDownloadLinks).map((downloadLink) => {
164
+ return {
165
+ ...ogcApiLink,
166
+ type: 'download',
167
+ url: new URL(collectionInfo.bulkDownloadLinks[downloadLink]),
168
+ mimeType: getMimeTypeForFormat(
169
+ getFileFormatFromServiceOutput(downloadLink)
170
+ ),
171
+ }
172
+ })
173
+ }
174
+
175
+ async getDownloadUrlsFromOgcApi(url: string): Promise<OgcApiCollectionInfo> {
176
+ const endpoint = new OgcApiEndpoint(this.proxy.getProxiedUrl(url))
177
+ return await endpoint.featureCollections
178
+ .then((collections) => {
179
+ return endpoint.getCollectionInfo(collections[0])
180
+ })
181
+ .catch((error) => {
182
+ throw new Error(`ogc.unreachable.unknown`)
183
+ })
184
+ }
185
+
151
186
  getDownloadLinksFromEsriRest(
152
187
  esriRestLink: DatasetServiceDistribution
153
188
  ): DatasetDistribution[] {
@@ -205,6 +240,21 @@ export class DataService {
205
240
  'geojson'
206
241
  )
207
242
  return from(openDataset(url, 'geojson')).pipe()
243
+ } else if (
244
+ link.type === 'service' &&
245
+ link.accessServiceProtocol === 'ogcFeatures'
246
+ ) {
247
+ return from(this.getDownloadUrlsFromOgcApi(link.url.href)).pipe(
248
+ switchMap((collectionInfo) => {
249
+ const geojsonUrl = collectionInfo.jsonDownloadLink
250
+ return openDataset(geojsonUrl, 'geojson')
251
+ }),
252
+ tap((url) => {
253
+ if (url === null) {
254
+ throw new Error('wfs.geojsongml.notsupported')
255
+ }
256
+ })
257
+ )
208
258
  }
209
259
  return throwError(() => 'protocol not supported')
210
260
  }
@@ -0,0 +1,8 @@
1
+ <gn-ui-dropdown-selector
2
+ [title]="label"
3
+ [showTitle]="false"
4
+ [choices]="choices"
5
+ [selected]="selected"
6
+ (selectValue)="onSelectValue($event)"
7
+ >
8
+ </gn-ui-dropdown-selector>
@@ -0,0 +1,64 @@
1
+ import { ChangeDetectionStrategy, Component, Input } from '@angular/core'
2
+ import { FormControl } from '@angular/forms'
3
+ import { marker } from '@biesbjerg/ngx-translate-extract-marker'
4
+ import { DropdownSelectorComponent } from '../../../../../../../../../libs/ui/inputs/src'
5
+
6
+ @Component({
7
+ selector: 'gn-ui-form-field-license',
8
+ templateUrl: './form-field-license.component.html',
9
+ styleUrls: ['./form-field-license.component.css'],
10
+ changeDetection: ChangeDetectionStrategy.OnPush,
11
+ standalone: true,
12
+ imports: [DropdownSelectorComponent],
13
+ })
14
+ export class FormFieldLicenseComponent {
15
+ @Input() control!: FormControl
16
+ @Input() label: string
17
+
18
+ get selected() {
19
+ return this.control.value[0]?.text
20
+ }
21
+
22
+ onSelectValue(value: unknown) {
23
+ this.control.setValue([{ text: value }])
24
+ }
25
+
26
+ choices = [
27
+ {
28
+ value: 'cc-by',
29
+ label: marker('editor.record.form.license.cc-by'),
30
+ },
31
+ {
32
+ value: 'cc-by-sa',
33
+ label: marker('editor.record.form.license.cc-by-sa'),
34
+ },
35
+ {
36
+ value: 'cc-zero',
37
+ label: marker('editor.record.form.license.cc-zero'),
38
+ },
39
+ {
40
+ value: 'etalab',
41
+ label: marker('editor.record.form.license.etalab'),
42
+ },
43
+ {
44
+ value: 'etalab-v2',
45
+ label: marker('editor.record.form.license.etalab-v2'),
46
+ },
47
+ {
48
+ value: 'odbl',
49
+ label: marker('editor.record.form.license.odbl'),
50
+ },
51
+ {
52
+ value: 'odc-by',
53
+ label: marker('editor.record.form.license.odc-by'),
54
+ },
55
+ {
56
+ value: 'pddl',
57
+ label: marker('editor.record.form.license.pddl'),
58
+ },
59
+ {
60
+ value: 'unknown',
61
+ label: marker('editor.record.form.license.unknown'),
62
+ },
63
+ ]
64
+ }