geonetwork-ui 2.3.0-dev.e07c5606 → 2.3.0-dev.e43863db
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/metadata-converter/src/lib/iso19115-3/iso19115-3.converter.mjs +2 -2
- package/esm2022/libs/api/metadata-converter/src/lib/iso19139/iso19139.converter.mjs +9 -7
- package/esm2022/libs/api/metadata-converter/src/lib/iso19139/read-parts.mjs +23 -8
- package/esm2022/libs/api/metadata-converter/src/lib/iso19139/write-parts.mjs +15 -4
- package/esm2022/libs/api/repository/src/lib/gn4/platform/gn4-platform.service.mjs +9 -7
- package/esm2022/libs/common/domain/src/lib/model/record/metadata.model.mjs +1 -1
- package/esm2022/libs/feature/dataviz/src/lib/chart-view/chart-view.component.mjs +1 -1
- package/esm2022/libs/feature/dataviz/src/lib/service/data.service.mjs +47 -2
- package/esm2022/libs/feature/editor/src/lib/components/record-form/form-field/form-field-license/form-field-license.component.mjs +1 -1
- package/esm2022/libs/feature/editor/src/lib/components/record-form/form-field/form-field-resource-updated/form-field-resource-updated.component.mjs +15 -0
- package/esm2022/libs/feature/editor/src/lib/components/record-form/form-field/form-field-update-frequency/form-field-update-frequency.component.mjs +104 -0
- package/esm2022/libs/feature/editor/src/lib/components/record-form/form-field/form-field.component.mjs +14 -4
- 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 +15 -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 +58 -17
- package/esm2022/libs/feature/map/src/lib/utils/map-utils.service.mjs +7 -3
- package/esm2022/libs/feature/record/src/lib/data-view/data-view.component.mjs +1 -1
- package/esm2022/libs/feature/record/src/lib/map-view/map-view.component.mjs +17 -9
- package/esm2022/libs/feature/record/src/lib/state/mdview.facade.mjs +34 -5
- package/esm2022/libs/feature/record/src/lib/state/mdview.reducer.mjs +1 -3
- package/esm2022/libs/feature/search/src/index.mjs +2 -1
- package/esm2022/libs/feature/search/src/lib/results-layout/results-layout.component.mjs +1 -1
- package/esm2022/libs/feature/search/src/lib/results-list/results-list.container.component.mjs +4 -4
- package/esm2022/libs/feature/search/src/lib/sort-by/sort-by.component.mjs +1 -1
- package/esm2022/libs/feature/search/src/lib/utils/service/fields.service.mjs +1 -1
- package/esm2022/libs/ui/catalog/src/lib/language-switcher/language-switcher.component.mjs +1 -1
- package/esm2022/libs/ui/catalog/src/lib/organisations-filter/organisations-filter.component.mjs +1 -1
- package/esm2022/libs/ui/elements/src/index.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/error/error.component.mjs +30 -0
- package/esm2022/libs/ui/elements/src/lib/link-card/link-card.component.mjs +16 -3
- package/esm2022/libs/ui/elements/src/lib/record-api-form/record-api-form.component.mjs +98 -36
- package/esm2022/libs/ui/elements/src/lib/ui-elements.module.mjs +6 -11
- package/esm2022/libs/ui/elements/src/lib/user-feedback-item/user-feedback-item.component.mjs +3 -5
- package/esm2022/libs/ui/inputs/src/index.mjs +16 -15
- package/esm2022/libs/ui/inputs/src/lib/check-toggle/check-toggle.component.mjs +4 -3
- 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 +5 -3
- 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-input/text-input.component.mjs +5 -3
- package/esm2022/libs/ui/inputs/src/lib/ui-inputs.module.mjs +10 -8
- 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/app-config/src/lib/app-config.mjs +3 -1
- package/esm2022/libs/util/app-config/src/lib/fixtures.mjs +2 -1
- package/esm2022/libs/util/app-config/src/lib/model.mjs +1 -1
- 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 +13 -14
- package/esm2022/translations/en.json +13 -14
- package/esm2022/translations/es.json +13 -14
- package/esm2022/translations/fr.json +13 -14
- package/esm2022/translations/it.json +13 -14
- package/esm2022/translations/nl.json +13 -14
- package/esm2022/translations/pt.json +13 -14
- package/fesm2022/geonetwork-ui.mjs +1742 -1190
- package/fesm2022/geonetwork-ui.mjs.map +1 -1
- package/libs/api/metadata-converter/src/lib/iso19115-3/iso19115-3.converter.d.ts +2 -2
- package/libs/api/metadata-converter/src/lib/iso19115-3/iso19115-3.converter.d.ts.map +1 -1
- package/libs/api/metadata-converter/src/lib/iso19139/iso19139.converter.d.ts +1 -1
- package/libs/api/metadata-converter/src/lib/iso19139/iso19139.converter.d.ts.map +1 -1
- package/libs/api/metadata-converter/src/lib/iso19139/read-parts.d.ts +4 -1
- package/libs/api/metadata-converter/src/lib/iso19139/read-parts.d.ts.map +1 -1
- package/libs/api/metadata-converter/src/lib/iso19139/write-parts.d.ts +2 -1
- package/libs/api/metadata-converter/src/lib/iso19139/write-parts.d.ts.map +1 -1
- package/libs/api/repository/src/lib/gn4/platform/gn4-platform.service.d.ts.map +1 -1
- package/libs/common/domain/src/lib/model/record/metadata.model.d.ts +3 -3
- package/libs/common/domain/src/lib/model/record/metadata.model.d.ts.map +1 -1
- package/libs/feature/dataviz/src/lib/service/data.service.d.ts +4 -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-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-update-frequency/form-field-update-frequency.component.d.ts +21 -0
- 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
- package/libs/feature/editor/src/lib/components/record-form/form-field/form-field.component.d.ts +2 -0
- 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 +7 -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 +1 -1
- package/libs/feature/map/src/lib/map-context/map-context.service.d.ts.map +1 -1
- package/libs/feature/map/src/lib/utils/map-utils.service.d.ts.map +1 -1
- package/libs/feature/record/src/lib/map-view/map-view.component.d.ts +2 -2
- package/libs/feature/record/src/lib/map-view/map-view.component.d.ts.map +1 -1
- package/libs/feature/record/src/lib/state/mdview.facade.d.ts +5 -2
- 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.map +1 -1
- package/libs/feature/search/src/index.d.ts +1 -0
- package/libs/feature/search/src/index.d.ts.map +1 -1
- package/libs/feature/search/src/lib/utils/service/fields.service.d.ts +3 -3
- package/libs/feature/search/src/lib/utils/service/fields.service.d.ts.map +1 -1
- package/libs/ui/elements/src/index.d.ts +1 -1
- package/libs/ui/elements/src/index.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/error/error.component.d.ts +16 -0
- package/libs/ui/elements/src/lib/error/error.component.d.ts.map +1 -0
- 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 +24 -4
- 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 +29 -30
- package/libs/ui/elements/src/lib/ui-elements.module.d.ts.map +1 -1
- package/libs/ui/elements/src/lib/user-feedback-item/user-feedback-item.component.d.ts +1 -2
- package/libs/ui/elements/src/lib/user-feedback-item/user-feedback-item.component.d.ts.map +1 -1
- 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/check-toggle/check-toggle.component.d.ts +1 -1
- package/libs/ui/inputs/src/lib/check-toggle/check-toggle.component.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 +2 -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-input/text-input.component.d.ts +2 -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 +27 -27
- 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/app-config/src/lib/app-config.d.ts.map +1 -1
- package/libs/util/app-config/src/lib/fixtures.d.ts.map +1 -1
- package/libs/util/app-config/src/lib/model.d.ts +1 -0
- package/libs/util/app-config/src/lib/model.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 +2 -2
- package/src/libs/api/metadata-converter/src/lib/fixtures/generic.records.ts +9 -1
- package/src/libs/api/metadata-converter/src/lib/iso19115-3/iso19115-3.converter.ts +3 -3
- package/src/libs/api/metadata-converter/src/lib/iso19139/iso19139.converter.ts +35 -31
- package/src/libs/api/metadata-converter/src/lib/iso19139/read-parts.ts +68 -16
- package/src/libs/api/metadata-converter/src/lib/iso19139/write-parts.ts +72 -17
- package/src/libs/api/repository/src/lib/gn4/platform/gn4-platform.service.ts +16 -10
- package/src/libs/common/domain/src/lib/model/record/metadata.model.ts +3 -3
- package/src/libs/common/fixtures/src/lib/link.fixtures.ts +8 -0
- package/src/libs/common/fixtures/src/lib/records.fixtures.ts +10 -2
- package/src/libs/feature/dataviz/src/lib/service/data.service.ts +65 -1
- 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-update-frequency/form-field-update-frequency.component.css +0 -0
- package/src/libs/feature/editor/src/lib/components/record-form/form-field/form-field-update-frequency/form-field-update-frequency.component.html +14 -0
- package/src/libs/feature/editor/src/lib/components/record-form/form-field/form-field-update-frequency/form-field-update-frequency.component.ts +143 -0
- package/src/libs/feature/editor/src/lib/components/record-form/form-field/form-field.component.html +10 -0
- package/src/libs/feature/editor/src/lib/components/record-form/form-field/form-field.component.ts +11 -1
- package/src/libs/feature/editor/src/lib/fields.config.ts +14 -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 +7 -0
- package/src/libs/feature/map/src/lib/map-context/map-context.service.ts +57 -17
- package/src/libs/feature/map/src/lib/utils/map-utils.service.ts +6 -2
- package/src/libs/feature/record/src/lib/map-view/map-view.component.ts +17 -9
- package/src/libs/feature/record/src/lib/state/mdview.facade.ts +40 -4
- package/src/libs/feature/record/src/lib/state/mdview.reducer.ts +0 -2
- package/src/libs/feature/search/src/index.ts +1 -0
- package/src/libs/feature/search/src/lib/results-list/results-list.container.component.html +4 -4
- package/src/libs/feature/search/src/lib/utils/service/fields.service.ts +2 -2
- package/src/libs/ui/elements/src/index.ts +1 -1
- 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/{search-results-error/search-results-error.component.html → error/error.component.html} +18 -3
- package/src/libs/ui/elements/src/lib/{search-results-error/search-results-error.component.ts → error/error.component.ts} +5 -4
- 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 +125 -30
- package/src/libs/ui/elements/src/lib/ui-elements.module.ts +3 -6
- package/src/libs/ui/elements/src/lib/user-feedback-item/user-feedback-item.component.html +1 -1
- package/src/libs/ui/elements/src/lib/user-feedback-item/user-feedback-item.component.ts +0 -1
- package/src/libs/ui/inputs/src/index.ts +15 -14
- package/src/libs/ui/inputs/src/lib/check-toggle/check-toggle.component.ts +3 -0
- 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.html +1 -0
- package/src/libs/ui/inputs/src/lib/dropdown-selector/dropdown-selector.component.ts +1 -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-input/text-input.component.html +1 -0
- package/src/libs/ui/inputs/src/lib/text-input/text-input.component.ts +1 -0
- 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 +8 -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/app-config/src/lib/app-config.ts +2 -0
- package/src/libs/util/app-config/src/lib/fixtures.ts +1 -0
- package/src/libs/util/app-config/src/lib/model.ts +1 -0
- 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 +13 -14
- package/translations/en.json +13 -14
- package/translations/es.json +13 -14
- package/translations/fr.json +13 -14
- package/translations/it.json +13 -14
- package/translations/nl.json +13 -14
- package/translations/pt.json +13 -14
- package/translations/sk.json +13 -14
- package/esm2022/libs/ui/elements/src/lib/search-results-error/search-results-error.component.mjs +0 -29
- package/libs/ui/elements/src/lib/search-results-error/search-results-error.component.d.ts +0 -15
- package/libs/ui/elements/src/lib/search-results-error/search-results-error.component.d.ts.map +0 -1
- /package/src/libs/ui/elements/src/lib/{search-results-error/search-results-error.component.css → error/error.component.css} +0 -0
|
@@ -12,13 +12,12 @@ import { ApiCardComponent } from './api-card/api-card.component'
|
|
|
12
12
|
import { UiWidgetsModule } from '../../../../../libs/ui/widgets/src'
|
|
13
13
|
import { UiLayoutModule } from '../../../../../libs/ui/layout/src'
|
|
14
14
|
import { TranslateModule } from '@ngx-translate/core'
|
|
15
|
-
import { LinkCardComponent } from './link-card/link-card.component'
|
|
16
15
|
import { RelatedRecordCardComponent } from './related-record-card/related-record-card.component'
|
|
17
16
|
import { MetadataContactComponent } from './metadata-contact/metadata-contact.component'
|
|
18
17
|
import { MetadataCatalogComponent } from './metadata-catalog/metadata-catalog.component'
|
|
19
18
|
import { MetadataQualityComponent } from './metadata-quality/metadata-quality.component'
|
|
20
19
|
import { MetadataQualityItemComponent } from './metadata-quality-item/metadata-quality-item.component'
|
|
21
|
-
import {
|
|
20
|
+
import { ErrorComponent } from './error/error.component'
|
|
22
21
|
import { PaginationComponent } from './pagination/pagination.component'
|
|
23
22
|
import { ThumbnailComponent } from './thumbnail/thumbnail.component'
|
|
24
23
|
import { UiInputsModule } from '../../../../../libs/ui/inputs/src'
|
|
@@ -57,13 +56,12 @@ import { TimeSincePipe } from './user-feedback-item/time-since.pipe'
|
|
|
57
56
|
DownloadItemComponent,
|
|
58
57
|
DownloadsListComponent,
|
|
59
58
|
ApiCardComponent,
|
|
60
|
-
LinkCardComponent,
|
|
61
59
|
RelatedRecordCardComponent,
|
|
62
60
|
MetadataContactComponent,
|
|
63
61
|
MetadataCatalogComponent,
|
|
64
62
|
MetadataQualityComponent,
|
|
65
63
|
MetadataQualityItemComponent,
|
|
66
|
-
|
|
64
|
+
ErrorComponent,
|
|
67
65
|
PaginationComponent,
|
|
68
66
|
AvatarComponent,
|
|
69
67
|
UserPreviewComponent,
|
|
@@ -80,13 +78,12 @@ import { TimeSincePipe } from './user-feedback-item/time-since.pipe'
|
|
|
80
78
|
DownloadItemComponent,
|
|
81
79
|
DownloadsListComponent,
|
|
82
80
|
ApiCardComponent,
|
|
83
|
-
LinkCardComponent,
|
|
84
81
|
RelatedRecordCardComponent,
|
|
85
82
|
MetadataContactComponent,
|
|
86
83
|
MetadataCatalogComponent,
|
|
87
84
|
MetadataQualityComponent,
|
|
88
85
|
MetadataQualityItemComponent,
|
|
89
|
-
|
|
86
|
+
ErrorComponent,
|
|
90
87
|
PaginationComponent,
|
|
91
88
|
ThumbnailComponent,
|
|
92
89
|
AvatarComponent,
|
|
@@ -21,7 +21,6 @@ import { UserModel } from '../../../../../../libs/common/domain/src/lib/model/us
|
|
|
21
21
|
export class UserFeedbackItemComponent implements OnInit {
|
|
22
22
|
@Input() userFeedbackParent: UserFeedbackViewModel
|
|
23
23
|
@Input() userFeedBacksAnswers: UserFeedbackViewModel[]
|
|
24
|
-
@Input() isActiveUserEditor: boolean
|
|
25
24
|
@Input() activeUser: UserModel
|
|
26
25
|
@Input() isLastComment: boolean
|
|
27
26
|
@Input() isAddUserFeedbackLoading: boolean
|
|
@@ -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'
|
|
@@ -5,12 +5,15 @@ import {
|
|
|
5
5
|
Input,
|
|
6
6
|
Output,
|
|
7
7
|
} from '@angular/core'
|
|
8
|
+
import { FormsModule } from '@angular/forms'
|
|
8
9
|
|
|
9
10
|
@Component({
|
|
10
11
|
selector: 'gn-ui-check-toggle',
|
|
11
12
|
templateUrl: './check-toggle.component.html',
|
|
12
13
|
styleUrls: ['./check-toggle.component.css'],
|
|
13
14
|
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
15
|
+
standalone: true,
|
|
16
|
+
imports: [FormsModule],
|
|
14
17
|
})
|
|
15
18
|
export class CheckToggleComponent {
|
|
16
19
|
@Input() title: string
|
|
@@ -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
|
|
@@ -48,6 +48,7 @@ export class DropdownSelectorComponent implements OnInit {
|
|
|
48
48
|
@Input() maxRows: number
|
|
49
49
|
@Input() extraBtnClass = ''
|
|
50
50
|
@Input() minWidth = ''
|
|
51
|
+
@Input() disabled: boolean
|
|
51
52
|
@Output() selectValue = new EventEmitter<DropdownChoice['value']>()
|
|
52
53
|
@ViewChild('overlayOrigin') overlayOrigin: CdkOverlayOrigin
|
|
53
54
|
@ViewChild(CdkConnectedOverlay) overlay: CdkConnectedOverlay
|
|
@@ -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
|
+
}
|
|
@@ -29,6 +29,7 @@ export class TextInputComponent implements AfterViewInit {
|
|
|
29
29
|
@Input() extraClass = ''
|
|
30
30
|
@Input() hint: string
|
|
31
31
|
@Input() required = false
|
|
32
|
+
@Input() disabled: boolean
|
|
32
33
|
rawChange = new Subject<string>()
|
|
33
34
|
@Output() valueChange = this.rawChange.pipe(distinctUntilChanged())
|
|
34
35
|
@ViewChild('input') input
|
|
@@ -44,11 +44,9 @@ import { ImageInputComponent } from './image-input/image-input.component'
|
|
|
44
44
|
StarToggleComponent,
|
|
45
45
|
DropdownMultiselectComponent,
|
|
46
46
|
ViewportIntersectorComponent,
|
|
47
|
-
CheckToggleComponent,
|
|
48
47
|
CopyTextButtonComponent,
|
|
49
48
|
CheckboxComponent,
|
|
50
49
|
SearchInputComponent,
|
|
51
|
-
DateRangePickerComponent,
|
|
52
50
|
],
|
|
53
51
|
imports: [
|
|
54
52
|
CommonModule,
|
|
@@ -73,6 +71,8 @@ import { ImageInputComponent } from './image-input/image-input.component'
|
|
|
73
71
|
ButtonComponent,
|
|
74
72
|
ImageInputComponent,
|
|
75
73
|
DropdownSelectorComponent,
|
|
74
|
+
DateRangePickerComponent,
|
|
75
|
+
CheckToggleComponent,
|
|
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>
|
|
@@ -0,0 +1,84 @@
|
|
|
1
|
+
import {
|
|
2
|
+
AfterViewInit,
|
|
3
|
+
ChangeDetectionStrategy,
|
|
4
|
+
ChangeDetectorRef,
|
|
5
|
+
Component,
|
|
6
|
+
ContentChildren,
|
|
7
|
+
ElementRef,
|
|
8
|
+
Input,
|
|
9
|
+
QueryList,
|
|
10
|
+
ViewChild,
|
|
11
|
+
} from '@angular/core'
|
|
12
|
+
import { CommonModule } from '@angular/common'
|
|
13
|
+
|
|
14
|
+
@Component({
|
|
15
|
+
selector: 'gn-ui-block-list',
|
|
16
|
+
templateUrl: './block-list.component.html',
|
|
17
|
+
styleUrls: ['./block-list.component.css'],
|
|
18
|
+
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
19
|
+
standalone: true,
|
|
20
|
+
imports: [CommonModule],
|
|
21
|
+
})
|
|
22
|
+
export class BlockListComponent implements AfterViewInit {
|
|
23
|
+
@Input() pageSize = 5
|
|
24
|
+
@Input() containerClass = ''
|
|
25
|
+
@Input() paginationContainerClass = 'w-full bottom-0 top-auto'
|
|
26
|
+
@ContentChildren('block', { read: ElementRef }) blocks: QueryList<
|
|
27
|
+
ElementRef<HTMLElement>
|
|
28
|
+
>
|
|
29
|
+
@ViewChild('blockContainer') blockContainer: ElementRef<HTMLElement>
|
|
30
|
+
|
|
31
|
+
protected minHeight = 0
|
|
32
|
+
|
|
33
|
+
protected currentPage = 0
|
|
34
|
+
protected get pages() {
|
|
35
|
+
return new Array(this.pagesCount).fill(0).map((_, i) => i)
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
get isFirstPage() {
|
|
39
|
+
return this.currentPage === 0
|
|
40
|
+
}
|
|
41
|
+
get isLastPage() {
|
|
42
|
+
return this.currentPage === this.pagesCount - 1
|
|
43
|
+
}
|
|
44
|
+
get pagesCount() {
|
|
45
|
+
return this.blocks ? Math.ceil(this.blocks.length / this.pageSize) : 1
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
constructor(private changeDetector: ChangeDetectorRef) {}
|
|
49
|
+
|
|
50
|
+
ngAfterViewInit() {
|
|
51
|
+
this.blocks.changes.subscribe(this.refreshBlocksVisibility)
|
|
52
|
+
this.refreshBlocksVisibility()
|
|
53
|
+
|
|
54
|
+
// we store the first height as the min-height of the list container
|
|
55
|
+
this.minHeight = this.blockContainer.nativeElement.clientHeight
|
|
56
|
+
this.changeDetector.detectChanges()
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
protected refreshBlocksVisibility = () => {
|
|
60
|
+
this.blocks.forEach((block, index) => {
|
|
61
|
+
block.nativeElement.style.display =
|
|
62
|
+
index >= this.currentPage * this.pageSize &&
|
|
63
|
+
index < (this.currentPage + 1) * this.pageSize
|
|
64
|
+
? null
|
|
65
|
+
: 'none'
|
|
66
|
+
})
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
public goToPage(index: number) {
|
|
70
|
+
this.currentPage = Math.max(Math.min(index, this.pagesCount - 1), 0)
|
|
71
|
+
this.changeDetector.detectChanges()
|
|
72
|
+
this.refreshBlocksVisibility()
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
public previousPage() {
|
|
76
|
+
if (this.isFirstPage) return
|
|
77
|
+
this.goToPage(this.currentPage - 1)
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
public nextPage() {
|
|
81
|
+
if (this.isLastPage) return
|
|
82
|
+
this.goToPage(this.currentPage + 1)
|
|
83
|
+
}
|
|
84
|
+
}
|
|
@@ -1,20 +1,24 @@
|
|
|
1
1
|
:host .carousel-container ::ng-deep > * {
|
|
2
2
|
flex-shrink: 0;
|
|
3
3
|
}
|
|
4
|
+
|
|
4
5
|
:host {
|
|
5
6
|
position: relative;
|
|
7
|
+
display: block;
|
|
6
8
|
}
|
|
9
|
+
|
|
7
10
|
.carousel-step-dot {
|
|
8
11
|
width: 6px;
|
|
9
12
|
height: 6px;
|
|
10
13
|
border-radius: 6px;
|
|
11
14
|
position: relative;
|
|
12
15
|
}
|
|
16
|
+
|
|
13
17
|
.carousel-step-dot:after {
|
|
14
18
|
content: '';
|
|
15
19
|
position: absolute;
|
|
16
|
-
left: -
|
|
17
|
-
top: -
|
|
18
|
-
width:
|
|
19
|
-
height:
|
|
20
|
+
left: -7px;
|
|
21
|
+
top: -7px;
|
|
22
|
+
width: 20px;
|
|
23
|
+
height: 20px;
|
|
20
24
|
}
|
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
<div #carouselOverflowContainer class="
|
|
2
|
-
<div class="carousel-container flex
|
|
1
|
+
<div #carouselOverflowContainer class="w-full">
|
|
2
|
+
<div class="carousel-container flex" [ngClass]="containerClass">
|
|
3
3
|
<ng-content></ng-content>
|
|
4
4
|
</div>
|
|
5
5
|
</div>
|
|
6
6
|
<div
|
|
7
7
|
*ngIf="steps.length > 1"
|
|
8
|
-
class="absolute
|
|
8
|
+
class="absolute flex flex-row justify-center gap-[14px] p-1"
|
|
9
9
|
[ngClass]="stepsContainerClass"
|
|
10
10
|
>
|
|
11
11
|
<button
|
|
12
12
|
*ngFor="let step of steps; let i = index"
|
|
13
13
|
class="carousel-step-dot"
|
|
14
14
|
(click)="scrollToStep(i)"
|
|
15
|
-
[ngClass]="
|
|
15
|
+
[ngClass]="currentStep === i ? 'bg-primary' : 'bg-gray-400'"
|
|
16
16
|
></button>
|
|
17
17
|
</div>
|
|
@@ -4,25 +4,49 @@ import {
|
|
|
4
4
|
ChangeDetectorRef,
|
|
5
5
|
Component,
|
|
6
6
|
ElementRef,
|
|
7
|
+
EventEmitter,
|
|
7
8
|
Input,
|
|
9
|
+
Output,
|
|
8
10
|
ViewChild,
|
|
9
11
|
} from '@angular/core'
|
|
10
12
|
import EmblaCarousel, { EmblaCarouselType } from 'embla-carousel'
|
|
13
|
+
import { CommonModule } from '@angular/common'
|
|
11
14
|
|
|
12
15
|
@Component({
|
|
13
16
|
selector: 'gn-ui-carousel',
|
|
14
17
|
templateUrl: './carousel.component.html',
|
|
15
18
|
styleUrls: ['./carousel.component.css'],
|
|
16
19
|
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
20
|
+
standalone: true,
|
|
21
|
+
imports: [CommonModule],
|
|
17
22
|
})
|
|
18
23
|
export class CarouselComponent implements AfterViewInit {
|
|
24
|
+
@ViewChild('carouselOverflowContainer') carouselOverflowContainer: ElementRef
|
|
25
|
+
|
|
19
26
|
@Input() containerClass = ''
|
|
20
|
-
@Input() stepsContainerClass = ''
|
|
21
|
-
@
|
|
22
|
-
|
|
23
|
-
steps: number[] = []
|
|
24
|
-
|
|
25
|
-
|
|
27
|
+
@Input() stepsContainerClass = 'w-full bottom-0 top-auto'
|
|
28
|
+
@Output() currentStepChange = new EventEmitter<number>()
|
|
29
|
+
|
|
30
|
+
protected steps: number[] = []
|
|
31
|
+
protected emblaApi: EmblaCarouselType
|
|
32
|
+
protected currentStep = 0
|
|
33
|
+
|
|
34
|
+
protected refreshSteps = () => {
|
|
35
|
+
this.steps = this.emblaApi.scrollSnapList()
|
|
36
|
+
this.currentStep = this.emblaApi.selectedScrollSnap()
|
|
37
|
+
this.currentStepChange.emit(this.currentStep)
|
|
38
|
+
this.changeDetector.detectChanges()
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
get isFirstStep() {
|
|
42
|
+
return this.currentStep === 0
|
|
43
|
+
}
|
|
44
|
+
get isLastStep() {
|
|
45
|
+
return this.currentStep === this.steps.length - 1
|
|
46
|
+
}
|
|
47
|
+
get stepsCount() {
|
|
48
|
+
return this.steps.length
|
|
49
|
+
}
|
|
26
50
|
|
|
27
51
|
constructor(private changeDetector: ChangeDetectorRef) {}
|
|
28
52
|
|
|
@@ -33,18 +57,24 @@ export class CarouselComponent implements AfterViewInit {
|
|
|
33
57
|
duration: 15,
|
|
34
58
|
}
|
|
35
59
|
)
|
|
36
|
-
|
|
37
|
-
this.steps = this.emblaApi.scrollSnapList()
|
|
38
|
-
this.selectedStep = this.emblaApi.selectedScrollSnap()
|
|
39
|
-
this.changeDetector.detectChanges()
|
|
40
|
-
}
|
|
60
|
+
|
|
41
61
|
this.emblaApi
|
|
42
|
-
.on('init', refreshSteps)
|
|
43
|
-
.on('reInit', refreshSteps)
|
|
44
|
-
.on('select', refreshSteps)
|
|
62
|
+
.on('init', this.refreshSteps)
|
|
63
|
+
.on('reInit', this.refreshSteps)
|
|
64
|
+
.on('select', this.refreshSteps)
|
|
45
65
|
}
|
|
46
66
|
|
|
47
|
-
scrollToStep(stepIndex: number) {
|
|
67
|
+
public scrollToStep(stepIndex: number) {
|
|
48
68
|
this.emblaApi.scrollTo(stepIndex)
|
|
49
69
|
}
|
|
70
|
+
|
|
71
|
+
public slideToPrevious() {
|
|
72
|
+
if (this.isFirstStep) return
|
|
73
|
+
this.emblaApi.scrollPrev()
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
public slideToNext() {
|
|
77
|
+
if (this.isLastStep) return
|
|
78
|
+
this.emblaApi.scrollNext()
|
|
79
|
+
}
|
|
50
80
|
}
|
|
@@ -15,14 +15,12 @@ import { CarouselComponent } from './carousel/carousel.component'
|
|
|
15
15
|
StickyHeaderComponent,
|
|
16
16
|
AnchorLinkDirective,
|
|
17
17
|
ExpandablePanelButtonComponent,
|
|
18
|
-
CarouselComponent,
|
|
19
18
|
],
|
|
20
19
|
exports: [
|
|
21
20
|
ExpandablePanelComponent,
|
|
22
21
|
StickyHeaderComponent,
|
|
23
22
|
AnchorLinkDirective,
|
|
24
23
|
ExpandablePanelButtonComponent,
|
|
25
|
-
CarouselComponent,
|
|
26
24
|
],
|
|
27
25
|
})
|
|
28
26
|
export class UiLayoutModule {}
|
|
@@ -144,6 +144,7 @@ export function loadAppConfig() {
|
|
|
144
144
|
[],
|
|
145
145
|
[
|
|
146
146
|
'max_zoom',
|
|
147
|
+
'do_not_tile_wms',
|
|
147
148
|
'max_extent',
|
|
148
149
|
'baselayer',
|
|
149
150
|
'do_not_use_default_basemap',
|
|
@@ -158,6 +159,7 @@ export function loadAppConfig() {
|
|
|
158
159
|
? null
|
|
159
160
|
: ({
|
|
160
161
|
MAX_ZOOM: parsedMapSection.max_zoom,
|
|
162
|
+
DO_NOT_TILE_WMS: parsedMapSection.do_not_tile_wms,
|
|
161
163
|
MAX_EXTENT: parsedMapSection.max_extent,
|
|
162
164
|
EXTERNAL_VIEWER_URL_TEMPLATE:
|
|
163
165
|
parsedMapSection.external_viewer_url_template,
|
|
@@ -81,6 +81,7 @@ export const MAP_CONFIG_FIXTURE: MapConfig = {
|
|
|
81
81
|
MAX_ZOOM: 10,
|
|
82
82
|
MAX_EXTENT: [-418263.418776, 5251529.591305, 961272.067714, 6706890.609855],
|
|
83
83
|
DO_NOT_USE_DEFAULT_BASEMAP: false,
|
|
84
|
+
DO_NOT_TILE_WMS: false,
|
|
84
85
|
EXTERNAL_VIEWER_URL_TEMPLATE:
|
|
85
86
|
'https://example.com/myviewer/#/?actions=[{"type":"CATALOG:ADD_LAYERS_FROM_CATALOGS","layers":["${layer_name}"],"sources":[{"url":"${service_url}","type":"${service_type}"}]}]',
|
|
86
87
|
EXTERNAL_VIEWER_OPEN_NEW_TAB: true,
|
|
@@ -20,6 +20,7 @@ export interface LayerConfig {
|
|
|
20
20
|
|
|
21
21
|
export interface MapConfig {
|
|
22
22
|
MAX_ZOOM?: number
|
|
23
|
+
DO_NOT_TILE_WMS: boolean
|
|
23
24
|
MAX_EXTENT?: [number, number, number, number] // Expressed as [minx, miny, maxx, maxy]
|
|
24
25
|
EXTERNAL_VIEWER_URL_TEMPLATE?: string
|
|
25
26
|
EXTERNAL_VIEWER_OPEN_NEW_TAB?: boolean
|