geonetwork-ui 2.6.0-dev.9d3ad45e2 → 2.6.0-dev.a0bd52a21
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/gn4/gn4.field.mapper.mjs +39 -4
- package/esm2022/libs/api/metadata-converter/src/lib/gn4/types/metadata.model.mjs +1 -1
- package/esm2022/libs/api/metadata-converter/src/lib/iso19115-3/read-parts.mjs +8 -4
- package/esm2022/libs/api/metadata-converter/src/lib/iso19115-3/write-parts.mjs +5 -2
- package/esm2022/libs/api/metadata-converter/src/lib/iso19139/read-parts.mjs +3 -3
- package/esm2022/libs/api/metadata-converter/src/lib/iso19139/write-parts.mjs +2 -2
- package/esm2022/libs/api/repository/src/lib/gn4/elasticsearch/constant.mjs +2 -1
- package/esm2022/libs/api/repository/src/lib/gn4/elasticsearch/elasticsearch.service.mjs +3 -3
- package/esm2022/libs/api/repository/src/lib/gn4/gn4-repository.mjs +75 -15
- package/esm2022/libs/api/repository/src/lib/gn4/platform/gn4-platform.service.mjs +7 -1
- package/esm2022/libs/api/repository/src/lib/gn4/settings/gn4-settings.service.mjs +2 -1
- package/esm2022/libs/common/domain/src/lib/model/record/metadata.model.mjs +1 -1
- package/esm2022/libs/common/domain/src/lib/repository/records-repository.interface.mjs +1 -1
- package/esm2022/libs/feature/editor/src/lib/components/multilingual-panel/multilingual-panel.component.mjs +266 -11
- package/esm2022/libs/feature/map/src/lib/add-layer-from-catalog/add-layer-from-catalog.component.mjs +1 -1
- package/esm2022/libs/feature/record/src/lib/state/mdview.actions.mjs +3 -1
- package/esm2022/libs/feature/record/src/lib/state/mdview.effects.mjs +7 -1
- package/esm2022/libs/feature/record/src/lib/state/mdview.facade.mjs +3 -1
- package/esm2022/libs/feature/record/src/lib/state/mdview.reducer.mjs +7 -1
- package/esm2022/libs/feature/record/src/lib/state/mdview.selectors.mjs +3 -1
- package/esm2022/libs/feature/search/src/lib/constants.mjs +3 -2
- package/esm2022/libs/feature/search/src/lib/fuzzy-search/fuzzy-search.component.mjs +5 -3
- package/esm2022/libs/feature/search/src/lib/results-table/results-table-container.component.mjs +13 -10
- package/esm2022/libs/ui/elements/src/lib/internal-link-card/internal-link-card.component.mjs +19 -34
- package/esm2022/libs/ui/elements/src/lib/internal-link-card-contact/internal-link-card-contact.component.mjs +59 -0
- package/esm2022/libs/ui/elements/src/lib/metadata-quality/metadata-quality.component.mjs +35 -10
- package/esm2022/libs/ui/elements/src/lib/metadata-quality-item/metadata-quality-item.component.mjs +5 -1
- package/esm2022/libs/ui/elements/src/lib/record-feature-catalog/feature-catalog-list/feature-catalog-list.component.mjs +50 -29
- package/esm2022/libs/ui/elements/src/lib/ui-elements.module.mjs +7 -3
- package/esm2022/libs/ui/inputs/src/lib/autocomplete/autocomplete.component.mjs +3 -3
- package/esm2022/libs/ui/layout/src/index.mjs +2 -1
- package/esm2022/libs/ui/layout/src/lib/cell-popin/cell-popin.component.mjs +110 -0
- package/esm2022/libs/ui/layout/src/lib/interactive-table/interactive-table.component.mjs +20 -10
- package/esm2022/libs/ui/layout/src/lib/truncated-text/truncated-text.component.mjs +15 -49
- package/esm2022/libs/ui/layout/src/lib/ui-layout.module.mjs +2 -2
- package/esm2022/libs/ui/search/src/index.mjs +2 -1
- package/esm2022/libs/ui/search/src/lib/results-table/action-menu/action-menu.component.mjs +21 -12
- package/esm2022/libs/ui/search/src/lib/results-table/results-table.component.mjs +39 -18
- package/esm2022/libs/ui/search/src/lib/ui-search.module.mjs +10 -4
- package/esm2022/libs/util/i18n/src/lib/i18n.constants.mjs +42 -1
- package/esm2022/libs/util/i18n/src/lib/language-codes.mjs +24 -2
- package/esm2022/translations/de.json +41 -6
- package/esm2022/translations/en.json +41 -6
- package/esm2022/translations/es.json +40 -5
- package/esm2022/translations/fr.json +41 -6
- package/esm2022/translations/it.json +40 -5
- package/esm2022/translations/nl.json +40 -5
- package/esm2022/translations/pt.json +40 -5
- package/fesm2022/geonetwork-ui.mjs +1591 -719
- package/fesm2022/geonetwork-ui.mjs.map +1 -1
- package/libs/api/metadata-converter/src/lib/gn4/gn4.field.mapper.d.ts.map +1 -1
- package/libs/api/metadata-converter/src/lib/gn4/types/metadata.model.d.ts +0 -1
- package/libs/api/metadata-converter/src/lib/gn4/types/metadata.model.d.ts.map +1 -1
- package/libs/api/metadata-converter/src/lib/iso19115-3/read-parts.d.ts +1 -0
- package/libs/api/metadata-converter/src/lib/iso19115-3/read-parts.d.ts.map +1 -1
- package/libs/api/metadata-converter/src/lib/iso19115-3/write-parts.d.ts.map +1 -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.map +1 -1
- package/libs/api/repository/src/lib/gn4/elasticsearch/constant.d.ts.map +1 -1
- package/libs/api/repository/src/lib/gn4/elasticsearch/elasticsearch.service.d.ts +1 -1
- package/libs/api/repository/src/lib/gn4/elasticsearch/elasticsearch.service.d.ts.map +1 -1
- package/libs/api/repository/src/lib/gn4/gn4-repository.d.ts +13 -2
- package/libs/api/repository/src/lib/gn4/gn4-repository.d.ts.map +1 -1
- package/libs/api/repository/src/lib/gn4/platform/gn4-platform.service.d.ts +2 -0
- package/libs/api/repository/src/lib/gn4/platform/gn4-platform.service.d.ts.map +1 -1
- package/libs/api/repository/src/lib/gn4/settings/gn4-settings.service.d.ts +1 -0
- package/libs/api/repository/src/lib/gn4/settings/gn4-settings.service.d.ts.map +1 -1
- package/libs/common/domain/src/lib/model/record/metadata.model.d.ts +20 -17
- package/libs/common/domain/src/lib/model/record/metadata.model.d.ts.map +1 -1
- package/libs/common/domain/src/lib/repository/records-repository.interface.d.ts +6 -0
- package/libs/common/domain/src/lib/repository/records-repository.interface.d.ts.map +1 -1
- package/libs/feature/editor/src/lib/components/multilingual-panel/multilingual-panel.component.d.ts +48 -3
- package/libs/feature/editor/src/lib/components/multilingual-panel/multilingual-panel.component.d.ts.map +1 -1
- package/libs/feature/record/src/lib/state/mdview.actions.d.ts +10 -0
- 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 +6 -0
- 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 +2 -0
- 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 +2 -0
- 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 +2 -0
- package/libs/feature/record/src/lib/state/mdview.selectors.d.ts.map +1 -1
- package/libs/feature/search/src/lib/constants.d.ts.map +1 -1
- package/libs/feature/search/src/lib/fuzzy-search/fuzzy-search.component.d.ts +2 -1
- package/libs/feature/search/src/lib/fuzzy-search/fuzzy-search.component.d.ts.map +1 -1
- package/libs/feature/search/src/lib/results-table/results-table-container.component.d.ts +6 -5
- package/libs/feature/search/src/lib/results-table/results-table-container.component.d.ts.map +1 -1
- package/libs/ui/elements/src/lib/internal-link-card/internal-link-card.component.d.ts +3 -6
- package/libs/ui/elements/src/lib/internal-link-card/internal-link-card.component.d.ts.map +1 -1
- package/libs/ui/elements/src/lib/internal-link-card-contact/internal-link-card-contact.component.d.ts +14 -0
- package/libs/ui/elements/src/lib/internal-link-card-contact/internal-link-card-contact.component.d.ts.map +1 -0
- package/libs/ui/elements/src/lib/metadata-quality/metadata-quality.component.d.ts +3 -0
- package/libs/ui/elements/src/lib/metadata-quality/metadata-quality.component.d.ts.map +1 -1
- package/libs/ui/elements/src/lib/metadata-quality-item/metadata-quality-item.component.d.ts.map +1 -1
- package/libs/ui/elements/src/lib/record-feature-catalog/feature-catalog-list/feature-catalog-list.component.d.ts +20 -9
- package/libs/ui/elements/src/lib/record-feature-catalog/feature-catalog-list/feature-catalog-list.component.d.ts.map +1 -1
- package/libs/ui/elements/src/lib/ui-elements.module.d.ts +2 -1
- package/libs/ui/elements/src/lib/ui-elements.module.d.ts.map +1 -1
- 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/cell-popin/cell-popin.component.d.ts +28 -0
- package/libs/ui/layout/src/lib/cell-popin/cell-popin.component.d.ts.map +1 -0
- package/libs/ui/layout/src/lib/interactive-table/interactive-table.component.d.ts +4 -2
- package/libs/ui/layout/src/lib/interactive-table/interactive-table.component.d.ts.map +1 -1
- package/libs/ui/layout/src/lib/truncated-text/truncated-text.component.d.ts +5 -10
- package/libs/ui/layout/src/lib/truncated-text/truncated-text.component.d.ts.map +1 -1
- package/libs/ui/search/src/index.d.ts +1 -0
- package/libs/ui/search/src/index.d.ts.map +1 -1
- package/libs/ui/search/src/lib/results-table/action-menu/action-menu.component.d.ts +4 -3
- package/libs/ui/search/src/lib/results-table/action-menu/action-menu.component.d.ts.map +1 -1
- package/libs/ui/search/src/lib/results-table/results-table.component.d.ts +10 -4
- package/libs/ui/search/src/lib/results-table/results-table.component.d.ts.map +1 -1
- package/libs/ui/search/src/lib/ui-search.module.d.ts +2 -1
- package/libs/ui/search/src/lib/ui-search.module.d.ts.map +1 -1
- package/libs/util/i18n/src/lib/i18n.constants.d.ts +1 -0
- package/libs/util/i18n/src/lib/i18n.constants.d.ts.map +1 -1
- package/libs/util/i18n/src/lib/language-codes.d.ts +23 -1
- package/libs/util/i18n/src/lib/language-codes.d.ts.map +1 -1
- package/package.json +1 -1
- package/src/libs/api/metadata-converter/src/lib/fixtures/geocat-ch.records.ts +1 -1
- package/src/libs/api/metadata-converter/src/lib/gn4/gn4.field.mapper.ts +61 -4
- package/src/libs/api/metadata-converter/src/lib/gn4/types/metadata.model.ts +0 -1
- package/src/libs/api/metadata-converter/src/lib/iso19115-3/read-parts.ts +13 -3
- package/src/libs/api/metadata-converter/src/lib/iso19115-3/write-parts.ts +5 -1
- package/src/libs/api/metadata-converter/src/lib/iso19139/read-parts.ts +6 -3
- package/src/libs/api/metadata-converter/src/lib/iso19139/write-parts.ts +4 -1
- package/src/libs/api/repository/src/lib/gn4/elasticsearch/constant.ts +1 -0
- package/src/libs/api/repository/src/lib/gn4/elasticsearch/elasticsearch.service.ts +2 -2
- package/src/libs/api/repository/src/lib/gn4/gn4-repository.ts +111 -15
- package/src/libs/api/repository/src/lib/gn4/platform/gn4-platform.service.ts +11 -0
- package/src/libs/api/repository/src/lib/gn4/settings/gn4-settings.service.ts +3 -0
- package/src/libs/common/domain/src/lib/model/record/metadata.model.ts +20 -14
- package/src/libs/common/domain/src/lib/repository/records-repository.interface.ts +6 -0
- package/src/libs/common/fixtures/src/lib/records.fixtures.ts +63 -0
- package/src/libs/feature/editor/src/lib/components/multilingual-panel/multilingual-panel.component.html +117 -11
- package/src/libs/feature/editor/src/lib/components/multilingual-panel/multilingual-panel.component.ts +316 -6
- package/src/libs/feature/record/src/lib/state/mdview.actions.ts +10 -0
- package/src/libs/feature/record/src/lib/state/mdview.effects.ts +22 -0
- package/src/libs/feature/record/src/lib/state/mdview.facade.ts +4 -0
- package/src/libs/feature/record/src/lib/state/mdview.reducer.ts +12 -0
- package/src/libs/feature/record/src/lib/state/mdview.selectors.ts +9 -0
- package/src/libs/feature/search/src/lib/constants.ts +2 -1
- package/src/libs/feature/search/src/lib/fuzzy-search/fuzzy-search.component.html +1 -1
- package/src/libs/feature/search/src/lib/fuzzy-search/fuzzy-search.component.ts +1 -0
- package/src/libs/feature/search/src/lib/results-table/results-table-container.component.html +1 -0
- package/src/libs/feature/search/src/lib/results-table/results-table-container.component.ts +13 -3
- package/src/libs/ui/elements/src/lib/internal-link-card/internal-link-card.component.html +7 -75
- package/src/libs/ui/elements/src/lib/internal-link-card/internal-link-card.component.ts +20 -51
- package/src/libs/ui/elements/src/lib/internal-link-card-contact/internal-link-card-contact.component.html +69 -0
- package/src/libs/ui/elements/src/lib/internal-link-card-contact/internal-link-card-contact.component.ts +61 -0
- package/src/libs/ui/elements/src/lib/metadata-quality/metadata-quality.component.ts +48 -9
- package/src/libs/ui/elements/src/lib/metadata-quality-item/metadata-quality-item.component.ts +4 -0
- package/src/libs/ui/elements/src/lib/record-feature-catalog/feature-catalog-list/feature-catalog-list.component.html +96 -37
- package/src/libs/ui/elements/src/lib/record-feature-catalog/feature-catalog-list/feature-catalog-list.component.ts +60 -29
- package/src/libs/ui/elements/src/lib/ui-elements.module.ts +2 -0
- package/src/libs/ui/inputs/src/lib/autocomplete/autocomplete.component.html +1 -1
- package/src/libs/ui/layout/src/index.ts +1 -0
- package/src/libs/ui/layout/src/lib/cell-popin/cell-popin.component.html +40 -0
- package/src/libs/ui/layout/src/lib/cell-popin/cell-popin.component.ts +141 -0
- package/src/libs/ui/layout/src/lib/interactive-table/interactive-table.component.html +3 -2
- package/src/libs/ui/layout/src/lib/interactive-table/interactive-table.component.ts +13 -6
- package/src/libs/ui/layout/src/lib/truncated-text/truncated-text.component.html +25 -42
- package/src/libs/ui/layout/src/lib/truncated-text/truncated-text.component.ts +10 -49
- package/src/libs/ui/layout/src/lib/ui-layout.module.ts +1 -1
- package/src/libs/ui/search/src/index.ts +1 -0
- package/src/libs/ui/search/src/lib/results-table/action-menu/action-menu.component.html +16 -6
- package/src/libs/ui/search/src/lib/results-table/action-menu/action-menu.component.ts +15 -11
- package/src/libs/ui/search/src/lib/results-table/results-table.component.css +4 -0
- package/src/libs/ui/search/src/lib/results-table/results-table.component.html +31 -27
- package/src/libs/ui/search/src/lib/results-table/results-table.component.ts +33 -15
- package/src/libs/ui/search/src/lib/ui-search.module.ts +3 -0
- package/src/libs/util/i18n/src/lib/i18n.constants.ts +42 -0
- package/src/libs/util/i18n/src/lib/language-codes.ts +23 -1
- package/tailwind.base.css +1 -1
- package/translations/de.json +41 -6
- package/translations/en.json +41 -6
- package/translations/es.json +40 -5
- package/translations/fr.json +41 -6
- package/translations/it.json +40 -5
- package/translations/nl.json +40 -5
- package/translations/pt.json +40 -5
- package/translations/sk.json +40 -5
|
@@ -1,52 +1,83 @@
|
|
|
1
|
-
import { Component, Input,
|
|
1
|
+
import { Component, ElementRef, Input, ViewChild } from '@angular/core'
|
|
2
2
|
import { CommonModule } from '@angular/common'
|
|
3
3
|
import { TranslateModule } from '@ngx-translate/core'
|
|
4
|
-
import {
|
|
4
|
+
import { marker } from '@biesbjerg/ngx-translate-extract-marker'
|
|
5
5
|
import {
|
|
6
|
+
DatasetFeatureAttribute,
|
|
7
|
+
DatasetFeatureCatalog,
|
|
8
|
+
} from '../../../../../../../libs/common/domain/src/lib/model/record'
|
|
9
|
+
import { ButtonComponent } from '../../../../../../../libs/ui/inputs/src'
|
|
10
|
+
import {
|
|
11
|
+
CellPopinComponent,
|
|
6
12
|
ExpandablePanelComponent,
|
|
7
13
|
TruncatedTextComponent,
|
|
8
14
|
} from '../../../../../../../libs/ui/layout/src'
|
|
15
|
+
import { CdkScrollable, ScrollingModule } from '@angular/cdk/scrolling'
|
|
16
|
+
import { provideIcons, NgIconComponent } from '@ng-icons/core'
|
|
17
|
+
import { iconoirList } from '@ng-icons/iconoir'
|
|
18
|
+
|
|
19
|
+
marker('feature.catalog.attribute.type')
|
|
20
|
+
marker('feature.catalog.attribute.name')
|
|
21
|
+
marker('feature.catalog.attribute.code')
|
|
22
|
+
marker('feature.catalog.attribute.definition')
|
|
23
|
+
marker('feature.catalog.attribute.values')
|
|
24
|
+
|
|
25
|
+
interface ColumnDefinition {
|
|
26
|
+
key: string
|
|
27
|
+
width: string
|
|
28
|
+
class?: string
|
|
29
|
+
}
|
|
9
30
|
|
|
10
31
|
@Component({
|
|
11
32
|
selector: 'gn-ui-feature-catalog-list',
|
|
12
33
|
templateUrl: './feature-catalog-list.component.html',
|
|
34
|
+
styleUrls: [],
|
|
13
35
|
standalone: true,
|
|
14
36
|
imports: [
|
|
37
|
+
ButtonComponent,
|
|
38
|
+
CellPopinComponent,
|
|
15
39
|
CommonModule,
|
|
16
40
|
TranslateModule,
|
|
17
41
|
ExpandablePanelComponent,
|
|
18
42
|
TruncatedTextComponent,
|
|
43
|
+
NgIconComponent,
|
|
44
|
+
ScrollingModule,
|
|
19
45
|
],
|
|
46
|
+
providers: [provideIcons({ iconoirList })],
|
|
20
47
|
})
|
|
21
|
-
export class FeatureCatalogListComponent
|
|
22
|
-
@Input() filteredFeatureCatalog
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
{
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
},
|
|
35
|
-
{
|
|
36
|
-
key: 'code',
|
|
37
|
-
label: 'feature.catalog.attribute.code',
|
|
38
|
-
width: '24%',
|
|
39
|
-
},
|
|
40
|
-
{
|
|
41
|
-
key: 'title',
|
|
42
|
-
label: 'feature.catalog.attribute.description',
|
|
43
|
-
width: '25%',
|
|
44
|
-
},
|
|
48
|
+
export class FeatureCatalogListComponent {
|
|
49
|
+
@Input() filteredFeatureCatalog!: DatasetFeatureCatalog
|
|
50
|
+
|
|
51
|
+
@ViewChild('scrollContainer') scrollContainer!: ElementRef
|
|
52
|
+
@ViewChild(CdkScrollable, { static: true }) scrollable!: CdkScrollable
|
|
53
|
+
@ViewChild('expanel', { read: ExpandablePanelComponent, static: true })
|
|
54
|
+
panelComponent: ExpandablePanelComponent
|
|
55
|
+
|
|
56
|
+
readonly COLUMNS_DEFAULT: ColumnDefinition[] = [
|
|
57
|
+
{ key: 'type', width: '17%' },
|
|
58
|
+
{ key: 'name', width: '32%' },
|
|
59
|
+
{ key: 'code', width: '17%' },
|
|
60
|
+
{ key: 'definition', width: 'minmax(0px, 1fr)' },
|
|
45
61
|
]
|
|
46
62
|
|
|
47
|
-
|
|
63
|
+
readonly COLUMN_VALUES: ColumnDefinition = {
|
|
64
|
+
key: 'values',
|
|
65
|
+
width: '73px',
|
|
66
|
+
class: 'text-center',
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
getColumnsDefinition(attrs: DatasetFeatureAttribute[]): ColumnDefinition[] {
|
|
70
|
+
const hasValues = attrs.some((a) => a.values?.length > 0)
|
|
71
|
+
return [...this.COLUMNS_DEFAULT, ...(hasValues ? [this.COLUMN_VALUES] : [])]
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
getGridTemplateColumns(attributes: DatasetFeatureAttribute[]) {
|
|
75
|
+
return this.getColumnsDefinition(attributes)
|
|
76
|
+
.map((col) => col.width)
|
|
77
|
+
.join(' ')
|
|
78
|
+
}
|
|
48
79
|
|
|
49
|
-
|
|
50
|
-
|
|
80
|
+
trackByColumn(_i: number, col: { key: string }) {
|
|
81
|
+
return col.key
|
|
51
82
|
}
|
|
52
83
|
}
|
|
@@ -24,6 +24,7 @@ import { UserPreviewComponent } from './user-preview/user-preview.component'
|
|
|
24
24
|
import { ApplicationBannerComponent } from './application-banner/application-banner.component'
|
|
25
25
|
import { InternalLinkCardComponent } from './internal-link-card/internal-link-card.component'
|
|
26
26
|
import { ServiceCapabilitiesComponent } from './service-capabilities/service-capabilities.component'
|
|
27
|
+
import { ScrollingModule } from '@angular/cdk/scrolling'
|
|
27
28
|
@NgModule({
|
|
28
29
|
imports: [
|
|
29
30
|
CommonModule,
|
|
@@ -49,6 +50,7 @@ import { ServiceCapabilitiesComponent } from './service-capabilities/service-cap
|
|
|
49
50
|
ServiceCapabilitiesComponent,
|
|
50
51
|
KindBadgeComponent,
|
|
51
52
|
GeoDataBadgeComponent,
|
|
53
|
+
ScrollingModule,
|
|
52
54
|
],
|
|
53
55
|
providers: [
|
|
54
56
|
provideNgIconsConfig({
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
export * from './lib/anchor-link/anchor-link.directive'
|
|
2
2
|
export * from './lib/carousel/carousel.component'
|
|
3
|
+
export * from './lib/cell-popin/cell-popin.component'
|
|
3
4
|
export * from './lib/expandable-panel-button/expandable-panel-button.component'
|
|
4
5
|
export * from './lib/expandable-panel/expandable-panel.component'
|
|
5
6
|
export * from './lib/form-field-wrapper/form-field-wrapper.component'
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
<div
|
|
2
|
+
class="h-full flex items-center justify-center"
|
|
3
|
+
cdkOverlayOrigin
|
|
4
|
+
#anchorRef
|
|
5
|
+
#trigger="cdkOverlayOrigin"
|
|
6
|
+
[class]="extraClass"
|
|
7
|
+
data-cy="cell-popin"
|
|
8
|
+
>
|
|
9
|
+
<ng-content select="[cellContent]"></ng-content>
|
|
10
|
+
<ng-template
|
|
11
|
+
*ngIf="activePopin"
|
|
12
|
+
cdkConnectedOverlay
|
|
13
|
+
[cdkConnectedOverlayPush]="false"
|
|
14
|
+
[cdkConnectedOverlayOrigin]="trigger"
|
|
15
|
+
[cdkConnectedOverlayOpen]="isOpen"
|
|
16
|
+
[cdkConnectedOverlayPositions]="overlayPositions"
|
|
17
|
+
[cdkConnectedOverlayWidth]="'auto'"
|
|
18
|
+
[cdkConnectedOverlayFlexibleDimensions]="true"
|
|
19
|
+
[cdkConnectedOverlayGrowAfterOpen]="true"
|
|
20
|
+
(detach)="closeOverlay()"
|
|
21
|
+
>
|
|
22
|
+
<div
|
|
23
|
+
*ngIf="activePopin && isVisible"
|
|
24
|
+
class="bg-white shadow-lg border border-gray-300 relative"
|
|
25
|
+
data-cy="cell-popin-content"
|
|
26
|
+
>
|
|
27
|
+
<ng-content select="[popinContent]"></ng-content>
|
|
28
|
+
<gn-ui-button
|
|
29
|
+
data-cy="cell-popin-close"
|
|
30
|
+
[style.--gn-ui-button-background]="'bg-transparent'"
|
|
31
|
+
class="absolute top-2 right-2"
|
|
32
|
+
type="light"
|
|
33
|
+
(buttonClick)="closeOverlay()"
|
|
34
|
+
extraClass="w-10 h-8 px-1"
|
|
35
|
+
>
|
|
36
|
+
<ng-icon name="iconoirReduce" size="24"></ng-icon>
|
|
37
|
+
</gn-ui-button>
|
|
38
|
+
</div>
|
|
39
|
+
</ng-template>
|
|
40
|
+
</div>
|
|
@@ -0,0 +1,141 @@
|
|
|
1
|
+
import {
|
|
2
|
+
AfterViewInit,
|
|
3
|
+
Component,
|
|
4
|
+
Input,
|
|
5
|
+
OnDestroy,
|
|
6
|
+
ElementRef,
|
|
7
|
+
TemplateRef,
|
|
8
|
+
ViewChild,
|
|
9
|
+
Injector,
|
|
10
|
+
ChangeDetectorRef,
|
|
11
|
+
} from '@angular/core'
|
|
12
|
+
import { CommonModule } from '@angular/common'
|
|
13
|
+
import { provideIcons, NgIconComponent } from '@ng-icons/core'
|
|
14
|
+
import { iconoirReduce } from '@ng-icons/iconoir'
|
|
15
|
+
import { MatButtonModule } from '@angular/material/button'
|
|
16
|
+
import {
|
|
17
|
+
OverlayModule,
|
|
18
|
+
ConnectedPosition,
|
|
19
|
+
ScrollDispatcher,
|
|
20
|
+
CdkScrollable,
|
|
21
|
+
CdkConnectedOverlay,
|
|
22
|
+
OverlayContainer,
|
|
23
|
+
} from '@angular/cdk/overlay'
|
|
24
|
+
import { ButtonComponent } from '../../../../../../libs/ui/inputs/src'
|
|
25
|
+
@Component({
|
|
26
|
+
selector: 'gn-ui-cell-popin',
|
|
27
|
+
standalone: true,
|
|
28
|
+
imports: [
|
|
29
|
+
CommonModule,
|
|
30
|
+
MatButtonModule,
|
|
31
|
+
OverlayModule,
|
|
32
|
+
ButtonComponent,
|
|
33
|
+
NgIconComponent,
|
|
34
|
+
],
|
|
35
|
+
providers: [provideIcons({ iconoirReduce })],
|
|
36
|
+
templateUrl: './cell-popin.component.html',
|
|
37
|
+
styleUrls: [],
|
|
38
|
+
})
|
|
39
|
+
export class CellPopinComponent implements AfterViewInit, OnDestroy {
|
|
40
|
+
@Input() extraClass = ''
|
|
41
|
+
@Input() cdkScrollContainer!: CdkScrollable
|
|
42
|
+
@Input() scrollContainer!: ElementRef
|
|
43
|
+
|
|
44
|
+
@ViewChild('anchorRef') anchorRef!: ElementRef
|
|
45
|
+
|
|
46
|
+
protected isOpen = false
|
|
47
|
+
protected isVisible = true
|
|
48
|
+
protected overlayPositions: ConnectedPosition[] = [
|
|
49
|
+
{
|
|
50
|
+
originX: 'end',
|
|
51
|
+
originY: 'top',
|
|
52
|
+
overlayX: 'end',
|
|
53
|
+
overlayY: 'top',
|
|
54
|
+
},
|
|
55
|
+
{
|
|
56
|
+
originX: 'start',
|
|
57
|
+
originY: 'top',
|
|
58
|
+
overlayX: 'start',
|
|
59
|
+
overlayY: 'top',
|
|
60
|
+
},
|
|
61
|
+
]
|
|
62
|
+
|
|
63
|
+
private firstCheck = true
|
|
64
|
+
private intersectionObserver: IntersectionObserver
|
|
65
|
+
|
|
66
|
+
private _activePopin = true
|
|
67
|
+
|
|
68
|
+
@Input()
|
|
69
|
+
set activePopin(active: boolean | undefined) {
|
|
70
|
+
this._activePopin = !!active
|
|
71
|
+
this.updateIntersectionObserver()
|
|
72
|
+
}
|
|
73
|
+
get activePopin(): boolean {
|
|
74
|
+
return this._activePopin
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
constructor(
|
|
78
|
+
private scrollDispatcher: ScrollDispatcher,
|
|
79
|
+
private cdr: ChangeDetectorRef
|
|
80
|
+
) {}
|
|
81
|
+
|
|
82
|
+
ngAfterViewInit() {
|
|
83
|
+
if (!this.activePopin) {
|
|
84
|
+
return
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
if (this.cdkScrollContainer) {
|
|
88
|
+
this.scrollDispatcher.register(this.cdkScrollContainer)
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
this.updateIntersectionObserver()
|
|
92
|
+
}
|
|
93
|
+
|
|
94
|
+
ngOnDestroy() {
|
|
95
|
+
this.intersectionObserver?.disconnect()
|
|
96
|
+
this.scrollDispatcher.deregister(this.cdkScrollContainer)
|
|
97
|
+
}
|
|
98
|
+
|
|
99
|
+
updateIntersectionObserver() {
|
|
100
|
+
if (!this.scrollContainer || !this.anchorRef) {
|
|
101
|
+
return
|
|
102
|
+
}
|
|
103
|
+
|
|
104
|
+
if (this.intersectionObserver) {
|
|
105
|
+
this.intersectionObserver?.disconnect()
|
|
106
|
+
}
|
|
107
|
+
|
|
108
|
+
this.intersectionObserver = new IntersectionObserver(
|
|
109
|
+
([entry]) => {
|
|
110
|
+
const visible = entry.intersectionRatio >= 1
|
|
111
|
+
|
|
112
|
+
// Ignore first visibility if first time opening it
|
|
113
|
+
if (this.firstCheck && !visible) {
|
|
114
|
+
this.firstCheck = false
|
|
115
|
+
return
|
|
116
|
+
}
|
|
117
|
+
|
|
118
|
+
this.firstCheck = false
|
|
119
|
+
|
|
120
|
+
if (this.isVisible !== visible) {
|
|
121
|
+
this.isVisible = visible
|
|
122
|
+
this.cdr.detectChanges()
|
|
123
|
+
}
|
|
124
|
+
},
|
|
125
|
+
{
|
|
126
|
+
root: this.scrollContainer.nativeElement,
|
|
127
|
+
threshold: 1.0,
|
|
128
|
+
}
|
|
129
|
+
)
|
|
130
|
+
|
|
131
|
+
this.intersectionObserver.observe(this.anchorRef.nativeElement)
|
|
132
|
+
}
|
|
133
|
+
|
|
134
|
+
openOverlay() {
|
|
135
|
+
this.isOpen = true
|
|
136
|
+
}
|
|
137
|
+
|
|
138
|
+
closeOverlay() {
|
|
139
|
+
this.isOpen = false
|
|
140
|
+
}
|
|
141
|
+
}
|
|
@@ -31,6 +31,7 @@
|
|
|
31
31
|
*ngFor="let item of items"
|
|
32
32
|
(click)="handleRowClick(item)"
|
|
33
33
|
data-cy="table-row"
|
|
34
|
+
[attr.data-cy-title]="item.title"
|
|
34
35
|
[title]="getItemTitle(item) | translate"
|
|
35
36
|
>
|
|
36
37
|
<div
|
|
@@ -48,9 +49,9 @@
|
|
|
48
49
|
class="table-row-cell px-3 py-1.5 flex items-center bg-white transition-colors duration-75 truncate border-b border-gray-200"
|
|
49
50
|
[ngClass]="{
|
|
50
51
|
'text-purple-light cursor-default':
|
|
51
|
-
(
|
|
52
|
+
(canEditItem(item) | async) === false,
|
|
52
53
|
'group-hover:text-main group-hover:bg-gray-50':
|
|
53
|
-
(item
|
|
54
|
+
canEditItem(item) | async,
|
|
54
55
|
}"
|
|
55
56
|
>
|
|
56
57
|
<ng-container
|
|
@@ -14,9 +14,11 @@ import { iconoirNavArrowDown, iconoirNavArrowUp } from '@ng-icons/iconoir'
|
|
|
14
14
|
import { TranslateModule } from '@ngx-translate/core'
|
|
15
15
|
import { marker } from '@biesbjerg/ngx-translate-extract-marker'
|
|
16
16
|
import { CatalogRecord } from '../../../../../../libs/common/domain/src/lib/model/record'
|
|
17
|
+
import { Observable, of } from 'rxjs'
|
|
17
18
|
|
|
18
|
-
marker('editor.record.lock.
|
|
19
|
-
marker('editor.record.lock.
|
|
19
|
+
marker('editor.record.lock.resourceType')
|
|
20
|
+
marker('editor.record.lock.harvested')
|
|
21
|
+
marker('editor.record.lock.owner')
|
|
20
22
|
@Component({
|
|
21
23
|
selector: 'gn-ui-interactive-table',
|
|
22
24
|
templateUrl: './interactive-table.component.html',
|
|
@@ -31,6 +33,7 @@ export class InteractiveTableComponent {
|
|
|
31
33
|
columns: QueryList<InteractiveTableColumnComponent>
|
|
32
34
|
|
|
33
35
|
@Input() items: unknown[] = []
|
|
36
|
+
@Input() canEditItem: (item: unknown) => Observable<boolean> = () => of(true)
|
|
34
37
|
@Input() isDraftPage = false
|
|
35
38
|
@Output() itemClick = new EventEmitter<unknown>()
|
|
36
39
|
|
|
@@ -49,10 +52,14 @@ export class InteractiveTableComponent {
|
|
|
49
52
|
}
|
|
50
53
|
|
|
51
54
|
getItemTitle(item: CatalogRecord) {
|
|
52
|
-
if (!
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
55
|
+
if (!this.isDraftPage) {
|
|
56
|
+
if (item.kind !== 'dataset') {
|
|
57
|
+
return 'editor.record.lock.resourceType'
|
|
58
|
+
} else if (item.extras?.isHarvested) {
|
|
59
|
+
return 'editor.record.lock.harvested'
|
|
60
|
+
} else if (!item.extras?.edit) {
|
|
61
|
+
return 'editor.record.lock.owner'
|
|
62
|
+
}
|
|
56
63
|
}
|
|
57
64
|
return ''
|
|
58
65
|
}
|
|
@@ -1,44 +1,27 @@
|
|
|
1
|
-
<
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
[
|
|
5
|
-
|
|
1
|
+
<gn-ui-cell-popin
|
|
2
|
+
#popinRef
|
|
3
|
+
[activePopin]="isTextTruncated"
|
|
4
|
+
[scrollContainer]="scrollContainer"
|
|
5
|
+
[cdkScrollContainer]="cdkScrollContainer"
|
|
6
6
|
>
|
|
7
|
-
<
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
*ngIf="isTextTruncated"
|
|
12
|
-
type="outline"
|
|
13
|
-
extraClass="w-10 h-8 border rounded-lg"
|
|
14
|
-
(buttonClick)="toggleOverlay()"
|
|
7
|
+
<div
|
|
8
|
+
cellContent
|
|
9
|
+
class="flex items-center justify-between w-full gap-2"
|
|
10
|
+
[class]="extraClass"
|
|
15
11
|
>
|
|
16
|
-
<
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
<p class="m-2">{{ text }}</p>
|
|
33
|
-
</div>
|
|
34
|
-
<gn-ui-button
|
|
35
|
-
class="m-2 flex-shrink-0"
|
|
36
|
-
type="light"
|
|
37
|
-
(buttonClick)="close()"
|
|
38
|
-
extraClass="w-10 h-8 px-1 bg-white"
|
|
39
|
-
>
|
|
40
|
-
<ng-icon name="iconoirReduce" size="24"> </ng-icon>
|
|
41
|
-
</gn-ui-button>
|
|
42
|
-
</div>
|
|
43
|
-
</ng-template>
|
|
44
|
-
</div>
|
|
12
|
+
<span #textElement class="truncate py-3 px-2">
|
|
13
|
+
{{ text }}
|
|
14
|
+
</span>
|
|
15
|
+
<gn-ui-button
|
|
16
|
+
*ngIf="isTextTruncated"
|
|
17
|
+
type="outline"
|
|
18
|
+
extraClass="w-10 h-8 border rounded-lg mr-2"
|
|
19
|
+
(buttonClick)="popinRef.openOverlay()"
|
|
20
|
+
>
|
|
21
|
+
<ng-icon name="iconoirExpand" size="24"> </ng-icon>
|
|
22
|
+
</gn-ui-button>
|
|
23
|
+
</div>
|
|
24
|
+
<div popinContent class="sm:w-64 xs:w-32 py-4 pl-6 pr-9">
|
|
25
|
+
<p>{{ text }}</p>
|
|
26
|
+
</div>
|
|
27
|
+
</gn-ui-cell-popin>
|
|
@@ -10,16 +10,17 @@ import {
|
|
|
10
10
|
} from '@angular/core'
|
|
11
11
|
import { CommonModule } from '@angular/common'
|
|
12
12
|
import { provideIcons, NgIconComponent } from '@ng-icons/core'
|
|
13
|
-
import { iconoirExpand
|
|
13
|
+
import { iconoirExpand } from '@ng-icons/iconoir'
|
|
14
14
|
import { TranslateModule } from '@ngx-translate/core'
|
|
15
15
|
import { MatButtonModule } from '@angular/material/button'
|
|
16
16
|
import {
|
|
17
|
+
CdkScrollable,
|
|
17
18
|
OverlayModule,
|
|
18
19
|
ViewportRuler,
|
|
19
20
|
ConnectedPosition,
|
|
20
21
|
} from '@angular/cdk/overlay'
|
|
21
22
|
import { ButtonComponent } from '../../../../../../libs/ui/inputs/src'
|
|
22
|
-
import {
|
|
23
|
+
import { CellPopinComponent } from '../cell-popin/cell-popin.component'
|
|
23
24
|
|
|
24
25
|
@Component({
|
|
25
26
|
selector: 'gn-ui-truncated-text',
|
|
@@ -30,33 +31,29 @@ import { Subscription } from 'rxjs'
|
|
|
30
31
|
MatButtonModule,
|
|
31
32
|
OverlayModule,
|
|
32
33
|
ButtonComponent,
|
|
34
|
+
CellPopinComponent,
|
|
33
35
|
NgIconComponent,
|
|
34
36
|
],
|
|
35
|
-
providers: [provideIcons({ iconoirExpand
|
|
37
|
+
providers: [provideIcons({ iconoirExpand })],
|
|
36
38
|
templateUrl: './truncated-text.component.html',
|
|
37
39
|
styles: [],
|
|
38
40
|
})
|
|
39
41
|
export class TruncatedTextComponent implements AfterViewInit, OnDestroy {
|
|
40
42
|
@Input() text = ''
|
|
41
43
|
@Input() extraClass = ''
|
|
44
|
+
@Input() scrollContainer!: ElementRef
|
|
45
|
+
@Input() cdkScrollContainer!: CdkScrollable
|
|
42
46
|
|
|
43
47
|
@ViewChild('textElement') textElement: ElementRef<HTMLElement>
|
|
48
|
+
|
|
44
49
|
isTextTruncated = false
|
|
45
|
-
|
|
46
|
-
overlayPosition: ConnectedPosition = {
|
|
47
|
-
originX: 'end',
|
|
48
|
-
originY: 'top',
|
|
49
|
-
overlayX: 'end',
|
|
50
|
-
overlayY: 'top',
|
|
51
|
-
}
|
|
50
|
+
|
|
52
51
|
private readonly resizeObserver: ResizeObserver
|
|
53
52
|
private readonly mutationObserver: MutationObserver
|
|
54
|
-
private readonly viewportSubscription: Subscription
|
|
55
53
|
|
|
56
54
|
constructor(
|
|
57
55
|
private readonly cd: ChangeDetectorRef,
|
|
58
|
-
private readonly ngZone: NgZone
|
|
59
|
-
private readonly viewportRuler: ViewportRuler
|
|
56
|
+
private readonly ngZone: NgZone
|
|
60
57
|
) {
|
|
61
58
|
this.resizeObserver = new ResizeObserver(() => {
|
|
62
59
|
this.ngZone.run(() => this.checkTextTruncation())
|
|
@@ -65,15 +62,8 @@ export class TruncatedTextComponent implements AfterViewInit, OnDestroy {
|
|
|
65
62
|
this.mutationObserver = new MutationObserver(() => {
|
|
66
63
|
this.ngZone.run(() => {
|
|
67
64
|
this.checkTextTruncation()
|
|
68
|
-
this.close()
|
|
69
65
|
})
|
|
70
66
|
})
|
|
71
|
-
|
|
72
|
-
this.viewportSubscription = this.viewportRuler.change().subscribe(() => {
|
|
73
|
-
if (this.isOpen) {
|
|
74
|
-
this.updateOverlayPosition()
|
|
75
|
-
}
|
|
76
|
-
})
|
|
77
67
|
}
|
|
78
68
|
|
|
79
69
|
ngAfterViewInit() {
|
|
@@ -90,35 +80,6 @@ export class TruncatedTextComponent implements AfterViewInit, OnDestroy {
|
|
|
90
80
|
ngOnDestroy() {
|
|
91
81
|
this.resizeObserver?.disconnect()
|
|
92
82
|
this.mutationObserver?.disconnect()
|
|
93
|
-
this.viewportSubscription?.unsubscribe()
|
|
94
|
-
this.close()
|
|
95
|
-
}
|
|
96
|
-
|
|
97
|
-
toggleOverlay() {
|
|
98
|
-
this.isOpen = !this.isOpen
|
|
99
|
-
if (this.isOpen) {
|
|
100
|
-
this.updateOverlayPosition()
|
|
101
|
-
}
|
|
102
|
-
}
|
|
103
|
-
|
|
104
|
-
private updateOverlayPosition() {
|
|
105
|
-
const element = this.textElement.nativeElement
|
|
106
|
-
const rect = element.getBoundingClientRect()
|
|
107
|
-
const viewportWidth = this.viewportRuler.getViewportSize().width
|
|
108
|
-
const isMobile = viewportWidth < 640
|
|
109
|
-
const overlayWidth = isMobile ? 190 : 320
|
|
110
|
-
const isNearLeftEdge = rect.left < overlayWidth
|
|
111
|
-
|
|
112
|
-
this.overlayPosition = {
|
|
113
|
-
originX: isNearLeftEdge ? 'start' : 'end',
|
|
114
|
-
originY: 'top',
|
|
115
|
-
overlayX: isNearLeftEdge ? 'start' : 'end',
|
|
116
|
-
overlayY: 'top',
|
|
117
|
-
}
|
|
118
|
-
}
|
|
119
|
-
|
|
120
|
-
close() {
|
|
121
|
-
this.isOpen = false
|
|
122
83
|
}
|
|
123
84
|
|
|
124
85
|
private checkTextTruncation() {
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { NgModule } from '@angular/core'
|
|
2
2
|
import { CommonModule } from '@angular/common'
|
|
3
3
|
import { TranslateModule } from '@ngx-translate/core'
|
|
4
|
+
import { NgIconComponent } from '@ng-icons/core'
|
|
4
5
|
import { StickyHeaderComponent } from './sticky-header/sticky-header.component'
|
|
5
6
|
import { AnchorLinkDirective } from './anchor-link/anchor-link.directive'
|
|
6
|
-
import { NgIconComponent, provideNgIconsConfig } from '@ng-icons/core'
|
|
7
7
|
|
|
8
8
|
@NgModule({
|
|
9
9
|
imports: [CommonModule, TranslateModule.forChild(), NgIconComponent],
|
|
@@ -19,3 +19,4 @@ export * from './lib/results-list-item/results-list-item.component'
|
|
|
19
19
|
export * from './lib/results-hits-search-kind/results-hits-search-kind.component'
|
|
20
20
|
export * from './lib/results-hits-number/results-hits-number.component'
|
|
21
21
|
export * from './lib/results-table/results-table.component'
|
|
22
|
+
export * from './lib/results-table/action-menu/action-menu.component'
|
|
@@ -6,17 +6,27 @@
|
|
|
6
6
|
>
|
|
7
7
|
<ul class="flex flex-col gap-2 w-full">
|
|
8
8
|
<gn-ui-button
|
|
9
|
-
*ngIf="
|
|
9
|
+
*ngIf="page === 'main'"
|
|
10
10
|
type="light"
|
|
11
11
|
extraClass="flex flex-row items-center gap-2 w-full justify-start"
|
|
12
12
|
(buttonClick)="duplicate.emit()"
|
|
13
13
|
[disabled]="!canDuplicate"
|
|
14
14
|
data-test="record-menu-duplicate-button"
|
|
15
15
|
>
|
|
16
|
-
<span *ngIf="
|
|
17
|
-
<span *ngIf="!canDuplicate" translate
|
|
16
|
+
<span *ngIf="isDuplicating; else notDuplicating" translate
|
|
18
17
|
>record.action.duplicating</span
|
|
19
|
-
|
|
18
|
+
>
|
|
19
|
+
<ng-template #notDuplicating>
|
|
20
|
+
<span translate>record.action.duplicate</span>
|
|
21
|
+
</ng-template>
|
|
22
|
+
</gn-ui-button>
|
|
23
|
+
<gn-ui-button
|
|
24
|
+
*ngIf="page === 'record'"
|
|
25
|
+
type="light"
|
|
26
|
+
extraClass="flex flex-row items-center gap-2 w-full justify-start"
|
|
27
|
+
(buttonClick)="switch.emit()"
|
|
28
|
+
data-test="record-menu-switch-button"
|
|
29
|
+
><span translate>record.action.switchLang</span></gn-ui-button
|
|
20
30
|
>
|
|
21
31
|
<gn-ui-button
|
|
22
32
|
type="light"
|
|
@@ -24,8 +34,8 @@
|
|
|
24
34
|
(buttonClick)="displayDeleteMenu()"
|
|
25
35
|
[disabled]="!canDelete"
|
|
26
36
|
data-test="record-menu-delete-button"
|
|
27
|
-
><span *ngIf="
|
|
28
|
-
<span *ngIf="
|
|
37
|
+
><span *ngIf="page !== 'draft'" translate>record.action.delete</span>
|
|
38
|
+
<span *ngIf="page === 'draft'" translate
|
|
29
39
|
>record.action.rollback</span
|
|
30
40
|
></gn-ui-button
|
|
31
41
|
>
|