geonetwork-ui 2.3.0-dev.139106e0 → 2.3.0-dev.22f4da74
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/esm2022/libs/api/repository/src/lib/gn4/auth/avatar.service.interface.mjs +1 -1
- package/esm2022/libs/api/repository/src/lib/gn4/auth/gravatar.service.mjs +12 -1
- package/esm2022/libs/api/repository/src/lib/gn4/platform/gn4-platform.mapper.mjs +36 -3
- package/esm2022/libs/api/repository/src/lib/gn4/platform/gn4-platform.service.mjs +19 -7
- package/esm2022/libs/common/domain/src/lib/model/record/index.mjs +2 -1
- package/esm2022/libs/common/domain/src/lib/model/record/user-feedbacks.model.mjs +2 -0
- package/esm2022/libs/common/domain/src/lib/model/user/index.mjs +2 -0
- package/esm2022/libs/common/domain/src/lib/platform.service.interface.mjs +1 -1
- package/esm2022/libs/feature/dataviz/src/lib/service/data.service.mjs +35 -2
- package/esm2022/libs/feature/editor/src/lib/components/record-form/form-field/form-field-license/form-field-license.component.mjs +64 -0
- package/esm2022/libs/feature/editor/src/lib/components/record-form/form-field/form-field-resource-updated/form-field-resource-updated.component.mjs +15 -0
- package/esm2022/libs/feature/editor/src/lib/components/record-form/form-field/form-field.component.mjs +20 -6
- package/esm2022/libs/feature/editor/src/lib/components/wizard-field/wizard-field.component.mjs +1 -1
- package/esm2022/libs/feature/editor/src/lib/fields.config.mjs +16 -1
- package/esm2022/libs/feature/map/src/lib/add-layer-from-ogc-api/add-layer-from-ogc-api.component.mjs +73 -20
- package/esm2022/libs/feature/map/src/lib/add-layer-from-wfs/add-layer-from-wfs.component.mjs +1 -1
- package/esm2022/libs/feature/map/src/lib/add-layer-from-wms/add-layer-from-wms.component.mjs +1 -1
- package/esm2022/libs/feature/map/src/lib/map-context/map-context.model.mjs +1 -1
- package/esm2022/libs/feature/map/src/lib/map-context/map-context.service.mjs +29 -8
- package/esm2022/libs/feature/record/src/lib/feature-record.module.mjs +4 -4
- package/esm2022/libs/feature/record/src/lib/map-view/map-view.component.mjs +3 -2
- package/esm2022/libs/feature/record/src/lib/state/mdview.actions.mjs +22 -4
- package/esm2022/libs/feature/record/src/lib/state/mdview.effects.mjs +37 -10
- package/esm2022/libs/feature/record/src/lib/state/mdview.facade.mjs +22 -7
- package/esm2022/libs/feature/record/src/lib/state/mdview.reducer.mjs +52 -17
- package/esm2022/libs/feature/record/src/lib/state/mdview.selectors.mjs +18 -3
- package/esm2022/libs/feature/router/src/lib/default/state/router.effects.mjs +2 -2
- package/esm2022/libs/ui/elements/src/lib/api-card/api-card.component.mjs +3 -2
- package/esm2022/libs/ui/elements/src/lib/downloads-list/downloads-list.component.mjs +2 -2
- package/esm2022/libs/ui/elements/src/lib/link-card/link-card.component.mjs +16 -3
- package/esm2022/libs/ui/elements/src/lib/markdown-editor/markdown-editor.component.mjs +2 -2
- package/esm2022/libs/ui/elements/src/lib/record-api-form/record-api-form.component.mjs +77 -15
- package/esm2022/libs/ui/elements/src/lib/ui-elements.module.mjs +10 -7
- package/esm2022/libs/ui/elements/src/lib/user-feedback-item/time-since.pipe.mjs +59 -0
- package/esm2022/libs/ui/elements/src/lib/user-feedback-item/user-feedback-item.component.mjs +62 -0
- package/esm2022/libs/ui/inputs/src/index.mjs +16 -15
- package/esm2022/libs/ui/inputs/src/lib/date-picker/date-picker.component.mjs +22 -0
- package/esm2022/libs/ui/inputs/src/lib/date-range-picker/date-range-picker.component.mjs +7 -5
- package/esm2022/libs/ui/inputs/src/lib/dropdown-selector/dropdown-selector.component.mjs +17 -8
- package/esm2022/libs/ui/inputs/src/lib/previous-next-buttons/previous-next-buttons.component.mjs +29 -0
- package/esm2022/libs/ui/inputs/src/lib/text-area/text-area.component.mjs +27 -4
- package/esm2022/libs/ui/inputs/src/lib/text-input/text-input.component.mjs +21 -3
- package/esm2022/libs/ui/inputs/src/lib/ui-inputs.module.mjs +11 -9
- package/esm2022/libs/ui/layout/src/index.mjs +2 -1
- package/esm2022/libs/ui/layout/src/lib/block-list/block-list.component.mjs +76 -0
- package/esm2022/libs/ui/layout/src/lib/carousel/carousel.component.mjs +42 -18
- package/esm2022/libs/ui/layout/src/lib/ui-layout.module.mjs +3 -8
- package/esm2022/libs/util/shared/src/lib/links/link-classifier.service.mjs +2 -2
- package/esm2022/libs/util/shared/src/lib/links/link-utils.mjs +22 -1
- package/esm2022/translations/de.json +21 -0
- package/esm2022/translations/en.json +21 -0
- package/esm2022/translations/es.json +21 -0
- package/esm2022/translations/fr.json +21 -0
- package/esm2022/translations/it.json +21 -0
- package/esm2022/translations/nl.json +21 -0
- package/esm2022/translations/pt.json +21 -0
- package/fesm2022/geonetwork-ui.mjs +1705 -808
- package/fesm2022/geonetwork-ui.mjs.map +1 -1
- package/libs/api/repository/src/lib/gn4/auth/avatar.service.interface.d.ts +1 -0
- package/libs/api/repository/src/lib/gn4/auth/avatar.service.interface.d.ts.map +1 -1
- package/libs/api/repository/src/lib/gn4/auth/gravatar.service.d.ts +1 -0
- package/libs/api/repository/src/lib/gn4/auth/gravatar.service.d.ts.map +1 -1
- package/libs/api/repository/src/lib/gn4/platform/gn4-platform.mapper.d.ts +6 -2
- package/libs/api/repository/src/lib/gn4/platform/gn4-platform.mapper.d.ts.map +1 -1
- package/libs/api/repository/src/lib/gn4/platform/gn4-platform.service.d.ts +9 -6
- package/libs/api/repository/src/lib/gn4/platform/gn4-platform.service.d.ts.map +1 -1
- package/libs/common/domain/src/lib/model/record/index.d.ts +1 -0
- package/libs/common/domain/src/lib/model/record/index.d.ts.map +1 -1
- package/libs/common/domain/src/lib/model/record/user-feedbacks.model.d.ts +15 -0
- package/libs/common/domain/src/lib/model/record/user-feedbacks.model.d.ts.map +1 -0
- package/libs/common/domain/src/lib/model/user/index.d.ts +2 -0
- package/libs/common/domain/src/lib/model/user/index.d.ts.map +1 -0
- package/libs/common/domain/src/lib/platform.service.interface.d.ts +3 -0
- package/libs/common/domain/src/lib/platform.service.interface.d.ts.map +1 -1
- package/libs/feature/dataviz/src/lib/service/data.service.d.ts +3 -1
- package/libs/feature/dataviz/src/lib/service/data.service.d.ts.map +1 -1
- package/libs/feature/editor/src/lib/components/record-form/form-field/form-field-license/form-field-license.component.d.ts +39 -0
- package/libs/feature/editor/src/lib/components/record-form/form-field/form-field-license/form-field-license.component.d.ts.map +1 -0
- package/libs/feature/editor/src/lib/components/record-form/form-field/form-field-resource-updated/form-field-resource-updated.component.d.ts +8 -0
- 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
- package/libs/feature/editor/src/lib/components/record-form/form-field/form-field.component.d.ts +4 -1
- package/libs/feature/editor/src/lib/components/record-form/form-field/form-field.component.d.ts.map +1 -1
- package/libs/feature/editor/src/lib/fields.config.d.ts.map +1 -1
- package/libs/feature/map/src/lib/add-layer-from-ogc-api/add-layer-from-ogc-api.component.d.ts +10 -5
- package/libs/feature/map/src/lib/add-layer-from-ogc-api/add-layer-from-ogc-api.component.d.ts.map +1 -1
- package/libs/feature/map/src/lib/map-context/map-context.model.d.ts +1 -0
- package/libs/feature/map/src/lib/map-context/map-context.model.d.ts.map +1 -1
- package/libs/feature/map/src/lib/map-context/map-context.service.d.ts.map +1 -1
- package/libs/feature/record/src/lib/feature-record.module.d.ts.map +1 -1
- package/libs/feature/record/src/lib/map-view/map-view.component.d.ts.map +1 -1
- package/libs/feature/record/src/lib/state/mdview.actions.d.ts +40 -6
- package/libs/feature/record/src/lib/state/mdview.actions.d.ts.map +1 -1
- package/libs/feature/record/src/lib/state/mdview.effects.d.ts +24 -4
- package/libs/feature/record/src/lib/state/mdview.effects.d.ts.map +1 -1
- package/libs/feature/record/src/lib/state/mdview.facade.d.ts +14 -4
- package/libs/feature/record/src/lib/state/mdview.facade.d.ts.map +1 -1
- package/libs/feature/record/src/lib/state/mdview.reducer.d.ts +8 -5
- package/libs/feature/record/src/lib/state/mdview.reducer.d.ts.map +1 -1
- package/libs/feature/record/src/lib/state/mdview.selectors.d.ts +12 -9
- package/libs/feature/record/src/lib/state/mdview.selectors.d.ts.map +1 -1
- package/libs/ui/elements/src/lib/api-card/api-card.component.d.ts.map +1 -1
- package/libs/ui/elements/src/lib/downloads-list/downloads-list.component.d.ts +1 -1
- package/libs/ui/elements/src/lib/link-card/link-card.component.d.ts +3 -1
- package/libs/ui/elements/src/lib/link-card/link-card.component.d.ts.map +1 -1
- package/libs/ui/elements/src/lib/record-api-form/record-api-form.component.d.ts +12 -3
- package/libs/ui/elements/src/lib/record-api-form/record-api-form.component.d.ts.map +1 -1
- package/libs/ui/elements/src/lib/ui-elements.module.d.ts +16 -15
- package/libs/ui/elements/src/lib/ui-elements.module.d.ts.map +1 -1
- package/libs/ui/elements/src/lib/user-feedback-item/time-since.pipe.d.ts +11 -0
- package/libs/ui/elements/src/lib/user-feedback-item/time-since.pipe.d.ts.map +1 -0
- package/libs/ui/elements/src/lib/user-feedback-item/user-feedback-item.component.d.ts +22 -0
- package/libs/ui/elements/src/lib/user-feedback-item/user-feedback-item.component.d.ts.map +1 -0
- package/libs/ui/inputs/src/index.d.ts +15 -14
- package/libs/ui/inputs/src/index.d.ts.map +1 -1
- package/libs/ui/inputs/src/lib/date-picker/date-picker.component.d.ts +9 -0
- package/libs/ui/inputs/src/lib/date-picker/date-picker.component.d.ts.map +1 -0
- package/libs/ui/inputs/src/lib/date-range-picker/date-range-picker.component.d.ts +1 -1
- package/libs/ui/inputs/src/lib/date-range-picker/date-range-picker.component.d.ts.map +1 -1
- package/libs/ui/inputs/src/lib/dropdown-selector/dropdown-selector.component.d.ts +1 -1
- package/libs/ui/inputs/src/lib/dropdown-selector/dropdown-selector.component.d.ts.map +1 -1
- package/libs/ui/inputs/src/lib/previous-next-buttons/previous-next-buttons.component.d.ts +12 -0
- package/libs/ui/inputs/src/lib/previous-next-buttons/previous-next-buttons.component.d.ts.map +1 -0
- package/libs/ui/inputs/src/lib/text-area/text-area.component.d.ts +7 -1
- package/libs/ui/inputs/src/lib/text-area/text-area.component.d.ts.map +1 -1
- package/libs/ui/inputs/src/lib/text-input/text-input.component.d.ts +5 -1
- package/libs/ui/inputs/src/lib/text-input/text-input.component.d.ts.map +1 -1
- package/libs/ui/inputs/src/lib/ui-inputs.module.d.ts +35 -35
- package/libs/ui/layout/src/index.d.ts +1 -0
- package/libs/ui/layout/src/index.d.ts.map +1 -1
- package/libs/ui/layout/src/lib/block-list/block-list.component.d.ts +25 -0
- package/libs/ui/layout/src/lib/block-list/block-list.component.d.ts.map +1 -0
- package/libs/ui/layout/src/lib/carousel/carousel.component.d.ts +13 -6
- package/libs/ui/layout/src/lib/carousel/carousel.component.d.ts.map +1 -1
- package/libs/ui/layout/src/lib/ui-layout.module.d.ts +4 -5
- package/libs/ui/layout/src/lib/ui-layout.module.d.ts.map +1 -1
- package/libs/util/shared/src/lib/links/link-utils.d.ts +18 -0
- package/libs/util/shared/src/lib/links/link-utils.d.ts.map +1 -1
- package/package.json +1 -1
- package/src/libs/api/repository/src/lib/gn4/auth/avatar.service.interface.ts +1 -0
- package/src/libs/api/repository/src/lib/gn4/auth/gravatar.service.ts +12 -1
- package/src/libs/api/repository/src/lib/gn4/platform/gn4-platform.mapper.ts +51 -1
- package/src/libs/api/repository/src/lib/gn4/platform/gn4-platform.service.ts +34 -7
- package/src/libs/common/domain/src/lib/model/record/index.ts +1 -0
- package/src/libs/common/domain/src/lib/model/record/user-feedbacks.model.ts +15 -0
- package/src/libs/common/domain/src/lib/platform.service.interface.ts +3 -0
- package/src/libs/common/fixtures/src/index.ts +8 -6
- package/src/libs/common/fixtures/src/lib/link.fixtures.ts +8 -0
- package/src/libs/common/fixtures/src/lib/records.fixtures.ts +3 -3
- package/src/libs/common/fixtures/src/lib/user-feedbacks.fixtures.ts +83 -0
- package/src/libs/feature/dataviz/src/lib/service/data.service.ts +51 -1
- package/src/libs/feature/editor/src/lib/components/record-form/form-field/form-field-license/form-field-license.component.css +0 -0
- package/src/libs/feature/editor/src/lib/components/record-form/form-field/form-field-license/form-field-license.component.html +8 -0
- package/src/libs/feature/editor/src/lib/components/record-form/form-field/form-field-license/form-field-license.component.ts +64 -0
- package/src/libs/feature/editor/src/lib/components/record-form/form-field/form-field-resource-updated/form-field-resource-updated.component.css +0 -0
- package/src/libs/feature/editor/src/lib/components/record-form/form-field/form-field-resource-updated/form-field-resource-updated.component.html +4 -0
- package/src/libs/feature/editor/src/lib/components/record-form/form-field/form-field-resource-updated/form-field-resource-updated.component.ts +15 -0
- package/src/libs/feature/editor/src/lib/components/record-form/form-field/form-field.component.html +33 -33
- package/src/libs/feature/editor/src/lib/components/record-form/form-field/form-field.component.ts +16 -0
- package/src/libs/feature/editor/src/lib/fields.config.ts +15 -0
- package/src/libs/feature/map/src/lib/add-layer-from-ogc-api/add-layer-from-ogc-api.component.css +7 -0
- package/src/libs/feature/map/src/lib/add-layer-from-ogc-api/add-layer-from-ogc-api.component.html +32 -18
- package/src/libs/feature/map/src/lib/add-layer-from-ogc-api/add-layer-from-ogc-api.component.ts +72 -17
- package/src/libs/feature/map/src/lib/map-context/map-context.model.ts +1 -0
- package/src/libs/feature/map/src/lib/map-context/map-context.service.ts +26 -8
- package/src/libs/feature/record/src/lib/feature-record.module.ts +5 -2
- package/src/libs/feature/record/src/lib/map-view/map-view.component.ts +2 -1
- package/src/libs/feature/record/src/lib/state/mdview.actions.ts +51 -6
- package/src/libs/feature/record/src/lib/state/mdview.effects.ts +82 -7
- package/src/libs/feature/record/src/lib/state/mdview.facade.ts +48 -8
- package/src/libs/feature/record/src/lib/state/mdview.reducer.ts +81 -24
- package/src/libs/feature/record/src/lib/state/mdview.selectors.ts +40 -10
- package/src/libs/feature/router/src/lib/default/state/router.effects.ts +2 -2
- package/src/libs/ui/elements/src/lib/api-card/api-card.component.ts +2 -1
- package/src/libs/ui/elements/src/lib/downloads-list/downloads-list.component.ts +1 -1
- package/src/libs/ui/elements/src/lib/link-card/link-card.component.html +38 -20
- package/src/libs/ui/elements/src/lib/link-card/link-card.component.ts +12 -0
- package/src/libs/ui/elements/src/lib/record-api-form/record-api-form.component.html +26 -10
- package/src/libs/ui/elements/src/lib/record-api-form/record-api-form.component.ts +87 -8
- package/src/libs/ui/elements/src/lib/ui-elements.module.ts +5 -2
- package/src/libs/ui/elements/src/lib/user-feedback-item/time-since.pipe.ts +54 -0
- package/src/libs/ui/elements/src/lib/user-feedback-item/user-feedback-item.component.css +0 -0
- package/src/libs/ui/elements/src/lib/user-feedback-item/user-feedback-item.component.html +75 -0
- package/src/libs/ui/elements/src/lib/user-feedback-item/user-feedback-item.component.ts +63 -0
- package/src/libs/ui/inputs/src/index.ts +15 -14
- package/src/libs/ui/inputs/src/lib/date-picker/date-picker.component.css +3 -0
- package/src/libs/ui/inputs/src/lib/date-picker/date-picker.component.html +11 -0
- package/src/libs/ui/inputs/src/lib/date-picker/date-picker.component.ts +16 -0
- package/src/libs/ui/inputs/src/lib/date-range-picker/date-range-picker.component.ts +8 -1
- package/src/libs/ui/inputs/src/lib/dropdown-selector/dropdown-selector.component.ts +13 -0
- package/src/libs/ui/inputs/src/lib/previous-next-buttons/previous-next-buttons.component.css +6 -0
- package/src/libs/ui/inputs/src/lib/previous-next-buttons/previous-next-buttons.component.html +26 -0
- package/src/libs/ui/inputs/src/lib/previous-next-buttons/previous-next-buttons.component.ts +32 -0
- package/src/libs/ui/inputs/src/lib/text-area/text-area.component.html +2 -1
- package/src/libs/ui/inputs/src/lib/text-area/text-area.component.ts +29 -0
- package/src/libs/ui/inputs/src/lib/text-input/text-input.component.html +2 -1
- package/src/libs/ui/inputs/src/lib/text-input/text-input.component.ts +17 -1
- package/src/libs/ui/inputs/src/lib/ui-inputs.module.ts +2 -2
- package/src/libs/ui/layout/src/index.ts +1 -0
- package/src/libs/ui/layout/src/lib/block-list/block-list.component.css +23 -0
- package/src/libs/ui/layout/src/lib/block-list/block-list.component.html +20 -0
- package/src/libs/ui/layout/src/lib/block-list/block-list.component.ts +84 -0
- package/src/libs/ui/layout/src/lib/carousel/carousel.component.css +7 -4
- package/src/libs/ui/layout/src/lib/carousel/carousel.component.html +4 -4
- package/src/libs/ui/layout/src/lib/carousel/carousel.component.ts +45 -15
- package/src/libs/ui/layout/src/lib/ui-layout.module.ts +0 -2
- package/src/libs/util/shared/src/lib/links/link-classifier.service.ts +1 -1
- package/src/libs/util/shared/src/lib/links/link-utils.ts +21 -0
- package/translations/de.json +21 -0
- package/translations/en.json +21 -0
- package/translations/es.json +21 -0
- package/translations/fr.json +21 -0
- package/translations/it.json +21 -0
- package/translations/nl.json +21 -0
- package/translations/pt.json +21 -0
- package/translations/sk.json +21 -0
|
@@ -31,6 +31,8 @@ import { MaxLinesComponent } from './max-lines/max-lines.component'
|
|
|
31
31
|
import { RecordApiFormComponent } from './record-api-form/record-api-form.component'
|
|
32
32
|
import { MarkdownParserComponent } from './markdown-parser/markdown-parser.component'
|
|
33
33
|
import { ImageOverlayPreviewComponent } from './image-overlay-preview/image-overlay-preview.component'
|
|
34
|
+
import { UserFeedbackItemComponent } from './user-feedback-item/user-feedback-item.component'
|
|
35
|
+
import { TimeSincePipe } from './user-feedback-item/time-since.pipe'
|
|
34
36
|
|
|
35
37
|
@NgModule({
|
|
36
38
|
imports: [
|
|
@@ -47,6 +49,7 @@ import { ImageOverlayPreviewComponent } from './image-overlay-preview/image-over
|
|
|
47
49
|
NgOptimizedImage,
|
|
48
50
|
MarkdownParserComponent,
|
|
49
51
|
ThumbnailComponent,
|
|
52
|
+
TimeSincePipe,
|
|
50
53
|
],
|
|
51
54
|
declarations: [
|
|
52
55
|
MetadataInfoComponent,
|
|
@@ -54,7 +57,6 @@ import { ImageOverlayPreviewComponent } from './image-overlay-preview/image-over
|
|
|
54
57
|
DownloadItemComponent,
|
|
55
58
|
DownloadsListComponent,
|
|
56
59
|
ApiCardComponent,
|
|
57
|
-
LinkCardComponent,
|
|
58
60
|
RelatedRecordCardComponent,
|
|
59
61
|
MetadataContactComponent,
|
|
60
62
|
MetadataCatalogComponent,
|
|
@@ -68,6 +70,7 @@ import { ImageOverlayPreviewComponent } from './image-overlay-preview/image-over
|
|
|
68
70
|
PaginationButtonsComponent,
|
|
69
71
|
MaxLinesComponent,
|
|
70
72
|
RecordApiFormComponent,
|
|
73
|
+
UserFeedbackItemComponent,
|
|
71
74
|
ImageOverlayPreviewComponent,
|
|
72
75
|
],
|
|
73
76
|
exports: [
|
|
@@ -76,7 +79,6 @@ import { ImageOverlayPreviewComponent } from './image-overlay-preview/image-over
|
|
|
76
79
|
DownloadItemComponent,
|
|
77
80
|
DownloadsListComponent,
|
|
78
81
|
ApiCardComponent,
|
|
79
|
-
LinkCardComponent,
|
|
80
82
|
RelatedRecordCardComponent,
|
|
81
83
|
MetadataContactComponent,
|
|
82
84
|
MetadataCatalogComponent,
|
|
@@ -91,6 +93,7 @@ import { ImageOverlayPreviewComponent } from './image-overlay-preview/image-over
|
|
|
91
93
|
MaxLinesComponent,
|
|
92
94
|
RecordApiFormComponent,
|
|
93
95
|
MarkdownParserComponent,
|
|
96
|
+
UserFeedbackItemComponent,
|
|
94
97
|
ImageOverlayPreviewComponent,
|
|
95
98
|
],
|
|
96
99
|
})
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
import { Pipe, PipeTransform } from '@angular/core'
|
|
2
|
+
import { TranslateService } from '@ngx-translate/core'
|
|
3
|
+
import { formatDistance } from 'date-fns'
|
|
4
|
+
import { de, enUS, es, fr, it, nl, pt, sk } from 'date-fns/locale'
|
|
5
|
+
|
|
6
|
+
@Pipe({
|
|
7
|
+
name: 'timeSince',
|
|
8
|
+
standalone: true,
|
|
9
|
+
})
|
|
10
|
+
export class TimeSincePipe implements PipeTransform {
|
|
11
|
+
constructor(private translate: TranslateService) {}
|
|
12
|
+
|
|
13
|
+
transform(value: Date): string {
|
|
14
|
+
if (isNaN(value.getTime())) {
|
|
15
|
+
throw new Error('Invalid Date')
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
const maintenant = new Date()
|
|
19
|
+
let locale: Locale
|
|
20
|
+
|
|
21
|
+
switch (this.translate.currentLang) {
|
|
22
|
+
case 'fr':
|
|
23
|
+
locale = fr
|
|
24
|
+
break
|
|
25
|
+
case 'de':
|
|
26
|
+
locale = de
|
|
27
|
+
break
|
|
28
|
+
case 'es':
|
|
29
|
+
locale = es
|
|
30
|
+
break
|
|
31
|
+
case 'it':
|
|
32
|
+
locale = it
|
|
33
|
+
break
|
|
34
|
+
case 'nl':
|
|
35
|
+
locale = nl
|
|
36
|
+
break
|
|
37
|
+
case 'pt':
|
|
38
|
+
locale = pt
|
|
39
|
+
break
|
|
40
|
+
case 'sk':
|
|
41
|
+
locale = sk
|
|
42
|
+
break
|
|
43
|
+
case 'en':
|
|
44
|
+
default:
|
|
45
|
+
locale = enUS
|
|
46
|
+
break
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
return formatDistance(value, maintenant, {
|
|
50
|
+
addSuffix: true,
|
|
51
|
+
locale: locale,
|
|
52
|
+
})
|
|
53
|
+
}
|
|
54
|
+
}
|
|
File without changes
|
|
@@ -0,0 +1,75 @@
|
|
|
1
|
+
<div
|
|
2
|
+
*ngIf="userFeedbackParent.published"
|
|
3
|
+
class="flex flex-col bg-white rounded w-full"
|
|
4
|
+
[ngClass]="[isAnAnswer ? 'ps-4 ' : 'p-4']"
|
|
5
|
+
>
|
|
6
|
+
<div class="flex flex-row">
|
|
7
|
+
<div class="avatar">
|
|
8
|
+
<img
|
|
9
|
+
class="rounded-full"
|
|
10
|
+
[src]="userFeedbackParent.avatarUrl"
|
|
11
|
+
alt="avatar"
|
|
12
|
+
/>
|
|
13
|
+
</div>
|
|
14
|
+
<div class="p-4 flex flex-col">
|
|
15
|
+
<span>{{ userFeedbackParent.authorName }}</span>
|
|
16
|
+
<span> {{ userFeedbackParent.date | timeSince }}</span>
|
|
17
|
+
</div>
|
|
18
|
+
</div>
|
|
19
|
+
<div data-cy="commentText" class="mt-4 whitespace-pre-line">
|
|
20
|
+
{{ userFeedbackParent.comment }}
|
|
21
|
+
</div>
|
|
22
|
+
<div
|
|
23
|
+
class="w-full"
|
|
24
|
+
*ngFor="let userFeedBacksAnswer of userFeedBacksAnswers; let last = last"
|
|
25
|
+
>
|
|
26
|
+
<hr class="-mx-4 my-6" />
|
|
27
|
+
<gn-ui-user-feedback-item
|
|
28
|
+
[userFeedbackParent]="userFeedBacksAnswer"
|
|
29
|
+
[isLastComment]="last"
|
|
30
|
+
></gn-ui-user-feedback-item>
|
|
31
|
+
</div>
|
|
32
|
+
|
|
33
|
+
<div *ngIf="isActiveUserEditor" class="mt-2 flex flex-col">
|
|
34
|
+
<hr class="-mx-4 my-4" />
|
|
35
|
+
<div
|
|
36
|
+
id="new-comment-buttons"
|
|
37
|
+
class="flex flex-row gap-2 items-center justify-end"
|
|
38
|
+
>
|
|
39
|
+
<gn-ui-text-area
|
|
40
|
+
[disabled]="isAddUserFeedbackLoading"
|
|
41
|
+
[(value)]="newAnswer"
|
|
42
|
+
(valueChange)="onNewAnswerValueChange()"
|
|
43
|
+
(keyup.control.enter)="publishNewAnswer()"
|
|
44
|
+
[placeholder]="
|
|
45
|
+
'record.metadata.userFeedbacks.newAnswer.placeholder' | translate
|
|
46
|
+
"
|
|
47
|
+
class="grow"
|
|
48
|
+
extraClass="bg-transparent border-0 placeholder-primary-darker text-primary-darker h-9"
|
|
49
|
+
></gn-ui-text-area>
|
|
50
|
+
<div *ngIf="!isAnswerEmpty" class="flex flex-row justify-end">
|
|
51
|
+
<gn-ui-button
|
|
52
|
+
[disabled]="isAddUserFeedbackLoading"
|
|
53
|
+
[type]="'outline'"
|
|
54
|
+
(buttonClick)="publishNewAnswer()"
|
|
55
|
+
[title]="
|
|
56
|
+
'record.metadata.userFeedbacks.newAnswer.buttonTitle' | translate
|
|
57
|
+
"
|
|
58
|
+
extraClass="!p-[0.5em] text-primary-darker border-primary-darker h-9"
|
|
59
|
+
>
|
|
60
|
+
<mat-icon
|
|
61
|
+
class="material-symbols-outlined"
|
|
62
|
+
*ngIf="!isAddUserFeedbackLoading"
|
|
63
|
+
>
|
|
64
|
+
send
|
|
65
|
+
</mat-icon>
|
|
66
|
+
<ng-container *ngIf="isAddUserFeedbackLoading">
|
|
67
|
+
<div class="flex justify-center w-full">
|
|
68
|
+
<gn-ui-spinning-loader></gn-ui-spinning-loader>
|
|
69
|
+
</div>
|
|
70
|
+
</ng-container>
|
|
71
|
+
</gn-ui-button>
|
|
72
|
+
</div>
|
|
73
|
+
</div>
|
|
74
|
+
</div>
|
|
75
|
+
</div>
|
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
import {
|
|
2
|
+
ChangeDetectionStrategy,
|
|
3
|
+
Component,
|
|
4
|
+
EventEmitter,
|
|
5
|
+
Input,
|
|
6
|
+
OnInit,
|
|
7
|
+
Output,
|
|
8
|
+
} from '@angular/core'
|
|
9
|
+
import {
|
|
10
|
+
UserFeedback,
|
|
11
|
+
UserFeedbackViewModel,
|
|
12
|
+
} from '../../../../../../libs/common/domain/src/lib/model/record'
|
|
13
|
+
import { UserModel } from '../../../../../../libs/common/domain/src/lib/model/user'
|
|
14
|
+
|
|
15
|
+
@Component({
|
|
16
|
+
selector: 'gn-ui-user-feedback-item',
|
|
17
|
+
templateUrl: './user-feedback-item.component.html',
|
|
18
|
+
styleUrls: ['./user-feedback-item.component.css'],
|
|
19
|
+
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
20
|
+
})
|
|
21
|
+
export class UserFeedbackItemComponent implements OnInit {
|
|
22
|
+
@Input() userFeedbackParent: UserFeedbackViewModel
|
|
23
|
+
@Input() userFeedBacksAnswers: UserFeedbackViewModel[]
|
|
24
|
+
@Input() isActiveUserEditor: boolean
|
|
25
|
+
@Input() activeUser: UserModel
|
|
26
|
+
@Input() isLastComment: boolean
|
|
27
|
+
@Input() isAddUserFeedbackLoading: boolean
|
|
28
|
+
|
|
29
|
+
@Output() newUserFeedbackAnswer = new EventEmitter<UserFeedback>()
|
|
30
|
+
|
|
31
|
+
isAnAnswer = false
|
|
32
|
+
newAnswer = ''
|
|
33
|
+
isAnswerEmpty = true
|
|
34
|
+
|
|
35
|
+
ngOnInit(): void {
|
|
36
|
+
this.isAnAnswer = !!this.userFeedbackParent.parentUuid
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
onNewAnswerValueChange() {
|
|
40
|
+
this.isAnswerEmpty = this.newAnswer.length === 0
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
publishNewAnswer() {
|
|
44
|
+
if (this.newAnswer.trim() === '') return
|
|
45
|
+
|
|
46
|
+
const newAnswer: UserFeedback = {
|
|
47
|
+
...this.userFeedbackParent,
|
|
48
|
+
uuid: undefined,
|
|
49
|
+
published: true,
|
|
50
|
+
comment: this.newAnswer,
|
|
51
|
+
parentUuid: this.userFeedbackParent.uuid,
|
|
52
|
+
authorUserId: this.activeUser?.id,
|
|
53
|
+
authorEmail: this.activeUser?.email,
|
|
54
|
+
date: new Date(),
|
|
55
|
+
authorName: `${this.activeUser?.name} ${this.activeUser?.surname}`,
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
this.newUserFeedbackAnswer.emit(newAnswer)
|
|
59
|
+
|
|
60
|
+
this.newAnswer = ''
|
|
61
|
+
this.onNewAnswerValueChange()
|
|
62
|
+
}
|
|
63
|
+
}
|
|
@@ -1,21 +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/
|
|
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/
|
|
21
|
-
export * from './lib/
|
|
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
|
+
export * from './lib/previous-next-buttons/previous-next-buttons.component'
|
|
@@ -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 {
|
|
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
|
|
@@ -2,6 +2,7 @@ import {
|
|
|
2
2
|
CdkConnectedOverlay,
|
|
3
3
|
CdkOverlayOrigin,
|
|
4
4
|
ConnectedPosition,
|
|
5
|
+
OverlayModule,
|
|
5
6
|
} from '@angular/cdk/overlay'
|
|
6
7
|
import {
|
|
7
8
|
ChangeDetectionStrategy,
|
|
@@ -17,6 +18,10 @@ import {
|
|
|
17
18
|
} from '@angular/core'
|
|
18
19
|
import { firstValueFrom } from 'rxjs'
|
|
19
20
|
import { DropdownChoice } from './dropdown-selector.model'
|
|
21
|
+
import { CommonModule } from '@angular/common'
|
|
22
|
+
import { TranslateModule } from '@ngx-translate/core'
|
|
23
|
+
import { MatIconModule } from '@angular/material/icon'
|
|
24
|
+
import { ButtonComponent } from '../button/button.component'
|
|
20
25
|
|
|
21
26
|
const DEFAULT_ROW_NUMBERS = 6
|
|
22
27
|
|
|
@@ -25,6 +30,14 @@ const DEFAULT_ROW_NUMBERS = 6
|
|
|
25
30
|
templateUrl: './dropdown-selector.component.html',
|
|
26
31
|
styleUrls: ['./dropdown-selector.component.css'],
|
|
27
32
|
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
33
|
+
standalone: true,
|
|
34
|
+
imports: [
|
|
35
|
+
CommonModule,
|
|
36
|
+
ButtonComponent,
|
|
37
|
+
OverlayModule,
|
|
38
|
+
MatIconModule,
|
|
39
|
+
TranslateModule,
|
|
40
|
+
],
|
|
28
41
|
})
|
|
29
42
|
export class DropdownSelectorComponent implements OnInit {
|
|
30
43
|
@Input() title: string
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
<div class="flex flex-row gap-x-4 items-center">
|
|
2
|
+
<gn-ui-button
|
|
3
|
+
data-test="previousButton"
|
|
4
|
+
[type]="isFirst ? 'default' : 'outline'"
|
|
5
|
+
[disabled]="isFirst"
|
|
6
|
+
(buttonClick)="previousButtonClicked()"
|
|
7
|
+
>
|
|
8
|
+
<mat-icon
|
|
9
|
+
class="material-symbols-outlined text-[14px] text-center pt-[5px]"
|
|
10
|
+
>
|
|
11
|
+
arrow_back
|
|
12
|
+
</mat-icon>
|
|
13
|
+
</gn-ui-button>
|
|
14
|
+
<gn-ui-button
|
|
15
|
+
data-test="nextButton"
|
|
16
|
+
[type]="isLast ? 'default' : 'outline'"
|
|
17
|
+
[disabled]="isLast"
|
|
18
|
+
(buttonClick)="nextButtonClicked()"
|
|
19
|
+
>
|
|
20
|
+
<mat-icon
|
|
21
|
+
class="material-symbols-outlined text-[14px] text-center pt-[5px]"
|
|
22
|
+
>
|
|
23
|
+
arrow_forward
|
|
24
|
+
</mat-icon>
|
|
25
|
+
</gn-ui-button>
|
|
26
|
+
</div>
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import {
|
|
2
|
+
ChangeDetectionStrategy,
|
|
3
|
+
Component,
|
|
4
|
+
EventEmitter,
|
|
5
|
+
Input,
|
|
6
|
+
Output,
|
|
7
|
+
} from '@angular/core'
|
|
8
|
+
import { ButtonComponent } from '../button/button.component'
|
|
9
|
+
import { MatIconModule } from '@angular/material/icon'
|
|
10
|
+
|
|
11
|
+
@Component({
|
|
12
|
+
selector: 'gn-ui-previous-next-buttons',
|
|
13
|
+
templateUrl: './previous-next-buttons.component.html',
|
|
14
|
+
styleUrls: ['./previous-next-buttons.component.css'],
|
|
15
|
+
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
16
|
+
standalone: true,
|
|
17
|
+
imports: [ButtonComponent, MatIconModule],
|
|
18
|
+
})
|
|
19
|
+
export class PreviousNextButtonsComponent {
|
|
20
|
+
@Input() isFirst: boolean
|
|
21
|
+
@Input() isLast: boolean
|
|
22
|
+
|
|
23
|
+
@Output() directionButtonClicked: EventEmitter<string> = new EventEmitter()
|
|
24
|
+
|
|
25
|
+
previousButtonClicked() {
|
|
26
|
+
this.directionButtonClicked.next('previous')
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
nextButtonClicked() {
|
|
30
|
+
this.directionButtonClicked.next('next')
|
|
31
|
+
}
|
|
32
|
+
}
|
|
@@ -2,11 +2,12 @@
|
|
|
2
2
|
<textarea
|
|
3
3
|
#input
|
|
4
4
|
name="textArea"
|
|
5
|
+
[disabled]="disabled"
|
|
5
6
|
[placeholder]="placeholder"
|
|
6
7
|
[value]="value"
|
|
7
8
|
(change)="handleChange($event)"
|
|
8
9
|
(input)="handleChange($event)"
|
|
9
|
-
class="
|
|
10
|
+
[class]="classList"
|
|
10
11
|
[attr.required]="required || null"
|
|
11
12
|
></textarea>
|
|
12
13
|
</div>
|
|
@@ -15,7 +15,12 @@ import { distinctUntilChanged } from 'rxjs/operators'
|
|
|
15
15
|
standalone: true,
|
|
16
16
|
})
|
|
17
17
|
export class TextAreaComponent implements AfterViewInit {
|
|
18
|
+
private readonly baseClasses: string
|
|
19
|
+
private readonly disabledClasses: string
|
|
20
|
+
|
|
18
21
|
@Input() value = ''
|
|
22
|
+
@Input() disabled = false
|
|
23
|
+
@Input() extraClass = ''
|
|
19
24
|
@Input() placeholder: string
|
|
20
25
|
@Input() required = false
|
|
21
26
|
|
|
@@ -24,6 +29,30 @@ export class TextAreaComponent implements AfterViewInit {
|
|
|
24
29
|
|
|
25
30
|
@ViewChild('input') input
|
|
26
31
|
|
|
32
|
+
constructor() {
|
|
33
|
+
this.baseClasses = [
|
|
34
|
+
'w-full',
|
|
35
|
+
'pt-2',
|
|
36
|
+
'pl-2',
|
|
37
|
+
'resize-none',
|
|
38
|
+
'border',
|
|
39
|
+
'border-gray-800',
|
|
40
|
+
'rounded italic',
|
|
41
|
+
'leading-tight',
|
|
42
|
+
'focus:outline-none',
|
|
43
|
+
'focus:bg-background',
|
|
44
|
+
'focus:border-primary',
|
|
45
|
+
].join(' ')
|
|
46
|
+
|
|
47
|
+
this.disabledClasses = ['cursor-not-allowed'].join(' ')
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
get classList() {
|
|
51
|
+
return `${this.baseClasses} ${this.extraClass} ${
|
|
52
|
+
this.disabled ? this.disabledClasses : ''
|
|
53
|
+
}`
|
|
54
|
+
}
|
|
55
|
+
|
|
27
56
|
ngAfterViewInit() {
|
|
28
57
|
this.checkRequired(this.input.nativeElement.value)
|
|
29
58
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
<input
|
|
2
2
|
#input
|
|
3
|
-
class="
|
|
3
|
+
[class]="classList"
|
|
4
4
|
type="text"
|
|
5
5
|
[value]="value"
|
|
6
6
|
(change)="handleChange($event)"
|
|
@@ -8,4 +8,5 @@
|
|
|
8
8
|
[placeholder]="hint"
|
|
9
9
|
[attr.aria-label]="hint"
|
|
10
10
|
[attr.required]="required || null"
|
|
11
|
+
[disabled]="disabled"
|
|
11
12
|
/>
|
|
@@ -14,14 +14,30 @@ import { Subject } from 'rxjs'
|
|
|
14
14
|
styleUrls: ['./text-input.component.css'],
|
|
15
15
|
})
|
|
16
16
|
export class TextInputComponent implements AfterViewInit {
|
|
17
|
+
private readonly baseClass = [
|
|
18
|
+
'appearance-none',
|
|
19
|
+
'border border-gray-300',
|
|
20
|
+
'rounded w-full',
|
|
21
|
+
'p-2',
|
|
22
|
+
'text-gray-700',
|
|
23
|
+
'leading-tight',
|
|
24
|
+
'focus:outline-none',
|
|
25
|
+
'focus:border-primary',
|
|
26
|
+
].join(' ')
|
|
27
|
+
|
|
17
28
|
@Input() value = ''
|
|
29
|
+
@Input() extraClass = ''
|
|
18
30
|
@Input() hint: string
|
|
19
31
|
@Input() required = false
|
|
32
|
+
@Input() disabled: boolean
|
|
20
33
|
rawChange = new Subject<string>()
|
|
21
34
|
@Output() valueChange = this.rawChange.pipe(distinctUntilChanged())
|
|
22
|
-
|
|
23
35
|
@ViewChild('input') input
|
|
24
36
|
|
|
37
|
+
get classList() {
|
|
38
|
+
return `${this.baseClass} ${this.extraClass}`
|
|
39
|
+
}
|
|
40
|
+
|
|
25
41
|
ngAfterViewInit() {
|
|
26
42
|
this.checkRequired(this.input.nativeElement.value)
|
|
27
43
|
}
|
|
@@ -36,7 +36,6 @@ import { ImageInputComponent } from './image-input/image-input.component'
|
|
|
36
36
|
|
|
37
37
|
@NgModule({
|
|
38
38
|
declarations: [
|
|
39
|
-
DropdownSelectorComponent,
|
|
40
39
|
AutocompleteComponent,
|
|
41
40
|
TextInputComponent,
|
|
42
41
|
DragAndDropFileInputComponent,
|
|
@@ -49,7 +48,6 @@ import { ImageInputComponent } from './image-input/image-input.component'
|
|
|
49
48
|
CopyTextButtonComponent,
|
|
50
49
|
CheckboxComponent,
|
|
51
50
|
SearchInputComponent,
|
|
52
|
-
DateRangePickerComponent,
|
|
53
51
|
],
|
|
54
52
|
imports: [
|
|
55
53
|
CommonModule,
|
|
@@ -73,6 +71,8 @@ import { ImageInputComponent } from './image-input/image-input.component'
|
|
|
73
71
|
TextAreaComponent,
|
|
74
72
|
ButtonComponent,
|
|
75
73
|
ImageInputComponent,
|
|
74
|
+
DropdownSelectorComponent,
|
|
75
|
+
DateRangePickerComponent,
|
|
76
76
|
],
|
|
77
77
|
exports: [
|
|
78
78
|
DropdownSelectorComponent,
|
|
@@ -6,4 +6,5 @@ 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'
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
:host .block-list-container ::ng-deep > * {
|
|
2
|
+
flex-shrink: 0;
|
|
3
|
+
}
|
|
4
|
+
|
|
5
|
+
:host {
|
|
6
|
+
position: relative;
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
.list-page-dot {
|
|
10
|
+
width: 6px;
|
|
11
|
+
height: 6px;
|
|
12
|
+
border-radius: 6px;
|
|
13
|
+
position: relative;
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
.list-page-dot:after {
|
|
17
|
+
content: '';
|
|
18
|
+
position: absolute;
|
|
19
|
+
left: -7px;
|
|
20
|
+
top: -7px;
|
|
21
|
+
width: 20px;
|
|
22
|
+
height: 20px;
|
|
23
|
+
}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
<div
|
|
2
|
+
class="block-list-container flex flex-col"
|
|
3
|
+
#blockContainer
|
|
4
|
+
[ngClass]="containerClass"
|
|
5
|
+
[ngStyle]="{ minHeight: minHeight + 'px' }"
|
|
6
|
+
>
|
|
7
|
+
<ng-content></ng-content>
|
|
8
|
+
</div>
|
|
9
|
+
<div
|
|
10
|
+
*ngIf="pagesCount > 1"
|
|
11
|
+
class="absolute flex flex-row justify-center gap-[14px] p-1"
|
|
12
|
+
[ngClass]="paginationContainerClass"
|
|
13
|
+
>
|
|
14
|
+
<button
|
|
15
|
+
*ngFor="let page of pages"
|
|
16
|
+
class="list-page-dot"
|
|
17
|
+
(click)="goToPage(page)"
|
|
18
|
+
[ngClass]="currentPage === page ? 'bg-primary' : 'bg-gray-400'"
|
|
19
|
+
></button>
|
|
20
|
+
</div>
|