geonetwork-ui 2.4.0-dev.58b3c2e5 → 2.4.0-dev.5cc37149
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/atomic-operations.mjs +2 -1
- package/esm2022/libs/api/metadata-converter/src/lib/gn4/types/metadata.model.mjs +1 -1
- package/esm2022/libs/feature/record/src/lib/data-view-permalink/data-view-permalink.component.mjs +42 -23
- package/esm2022/libs/feature/record/src/lib/data-view-share/data-view-share.component.mjs +13 -5
- package/esm2022/libs/feature/record/src/lib/data-view-web-component/data-view-web-component.component.mjs +49 -15
- package/fesm2022/geonetwork-ui.mjs +97 -35
- package/fesm2022/geonetwork-ui.mjs.map +1 -1
- package/libs/api/metadata-converter/src/lib/gn4/atomic-operations.d.ts.map +1 -1
- package/libs/api/metadata-converter/src/lib/gn4/types/metadata.model.d.ts +1 -0
- package/libs/api/metadata-converter/src/lib/gn4/types/metadata.model.d.ts.map +1 -1
- package/libs/feature/record/src/lib/data-view-permalink/data-view-permalink.component.d.ts +4 -1
- package/libs/feature/record/src/lib/data-view-permalink/data-view-permalink.component.d.ts.map +1 -1
- package/libs/feature/record/src/lib/data-view-share/data-view-share.component.d.ts +4 -1
- package/libs/feature/record/src/lib/data-view-share/data-view-share.component.d.ts.map +1 -1
- package/libs/feature/record/src/lib/data-view-web-component/data-view-web-component.component.d.ts +4 -1
- package/libs/feature/record/src/lib/data-view-web-component/data-view-web-component.component.d.ts.map +1 -1
- package/package.json +1 -1
- package/src/libs/api/metadata-converter/src/lib/gn4/atomic-operations.ts +1 -0
- package/src/libs/api/metadata-converter/src/lib/gn4/types/metadata.model.ts +1 -0
- package/src/libs/feature/record/src/lib/data-view-permalink/data-view-permalink.component.ts +36 -19
- package/src/libs/feature/record/src/lib/data-view-share/data-view-share.component.html +6 -2
- package/src/libs/feature/record/src/lib/data-view-share/data-view-share.component.ts +11 -0
- package/src/libs/feature/record/src/lib/data-view-web-component/data-view-web-component.component.ts +59 -12
|
@@ -2176,6 +2176,7 @@ const mapKeywords = (thesauri, language) => {
|
|
|
2176
2176
|
keywords.push({
|
|
2177
2177
|
label: selectTranslatedValue(keyword, language),
|
|
2178
2178
|
type: getKeywordTypeFromKeywordTypeCode(rawThesaurus.theme),
|
|
2179
|
+
...(keyword.link && { key: keyword.link }),
|
|
2179
2180
|
...(thesaurus && { thesaurus }),
|
|
2180
2181
|
});
|
|
2181
2182
|
}
|
|
@@ -33967,37 +33968,54 @@ const GN_UI_VERSION = new InjectionToken('gnUiVersion');
|
|
|
33967
33968
|
|
|
33968
33969
|
const WEB_COMPONENT_EMBEDDER_URL = new InjectionToken('webComponentEmbedderUrl');
|
|
33969
33970
|
class DataViewPermalinkComponent {
|
|
33971
|
+
set viewType(value) {
|
|
33972
|
+
this.viewType$.next(value);
|
|
33973
|
+
}
|
|
33970
33974
|
constructor(config, wcEmbedderBaseUrl, version, facade) {
|
|
33971
33975
|
this.config = config;
|
|
33972
33976
|
this.wcEmbedderBaseUrl = wcEmbedderBaseUrl;
|
|
33973
33977
|
this.version = version;
|
|
33974
33978
|
this.facade = facade;
|
|
33979
|
+
this.viewType$ = new BehaviorSubject('map');
|
|
33975
33980
|
this.permalinkUrl$ = combineLatest([
|
|
33981
|
+
this.viewType$,
|
|
33976
33982
|
this.facade.chartConfig$,
|
|
33977
33983
|
this.facade.metadata$,
|
|
33978
|
-
]).pipe(map$2(([config, metadata]) => {
|
|
33979
|
-
|
|
33980
|
-
|
|
33981
|
-
|
|
33982
|
-
|
|
33983
|
-
|
|
33984
|
-
|
|
33985
|
-
|
|
33986
|
-
|
|
33987
|
-
|
|
33988
|
-
|
|
33989
|
-
|
|
33990
|
-
|
|
33991
|
-
|
|
33992
|
-
|
|
33993
|
-
url.searchParams.append('a', `chart-type=${chartType}`);
|
|
33994
|
-
return url.toString();
|
|
33984
|
+
]).pipe(map$2(([viewType, config, metadata]) => {
|
|
33985
|
+
const url = new URL(`${this.wcEmbedderBaseUrl}`, window.location.origin);
|
|
33986
|
+
url.searchParams.set('v', `${this.version}`);
|
|
33987
|
+
if (viewType === 'chart') {
|
|
33988
|
+
if (config) {
|
|
33989
|
+
const { aggregation, xProperty, yProperty, chartType } = config;
|
|
33990
|
+
url.searchParams.append('e', `gn-dataset-view-chart`);
|
|
33991
|
+
url.searchParams.append('a', `aggregation=${aggregation}`);
|
|
33992
|
+
url.searchParams.append('a', `x-property=${xProperty}`);
|
|
33993
|
+
url.searchParams.append('a', `y-property=${yProperty}`);
|
|
33994
|
+
url.searchParams.append('a', `chart-type=${chartType}`);
|
|
33995
|
+
}
|
|
33996
|
+
else {
|
|
33997
|
+
return '';
|
|
33998
|
+
}
|
|
33995
33999
|
}
|
|
33996
|
-
|
|
34000
|
+
else if (viewType === 'table') {
|
|
34001
|
+
// table
|
|
34002
|
+
url.searchParams.append('e', `gn-dataset-view-table`);
|
|
34003
|
+
}
|
|
34004
|
+
else {
|
|
34005
|
+
// map
|
|
34006
|
+
url.searchParams.append('e', `gn-dataset-view-map`);
|
|
34007
|
+
}
|
|
34008
|
+
url.searchParams.append('a', `api-url=${this.config.basePath}`);
|
|
34009
|
+
url.searchParams.append('a', `dataset-id=${metadata.uniqueIdentifier}`);
|
|
34010
|
+
url.searchParams.append('a', `primary-color=#0f4395`);
|
|
34011
|
+
url.searchParams.append('a', `secondary-color=#8bc832`);
|
|
34012
|
+
url.searchParams.append('a', `main-color=#555`);
|
|
34013
|
+
url.searchParams.append('a', `background-color=#fdfbff`);
|
|
34014
|
+
return url.toString();
|
|
33997
34015
|
}));
|
|
33998
34016
|
}
|
|
33999
34017
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: DataViewPermalinkComponent, deps: [{ token: Configuration }, { token: WEB_COMPONENT_EMBEDDER_URL, optional: true }, { token: GN_UI_VERSION }, { token: MdViewFacade }], target: i0.ɵɵFactoryTarget.Component }); }
|
|
34000
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.12", type: DataViewPermalinkComponent, selector: "gn-ui-data-view-permalink", ngImport: i0, template: "<gn-ui-copy-text-button\n *ngIf=\"wcEmbedderBaseUrl\"\n [text]=\"permalinkUrl$ | async\"\n [tooltipText]=\"'tooltip.url.copy' | translate\"\n></gn-ui-copy-text-button>\n", styles: [""], dependencies: [{ kind: "directive", type: i1$3.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "component", type: CopyTextButtonComponent, selector: "gn-ui-copy-text-button", inputs: ["text", "tooltipText", "displayText", "rows"] }, { kind: "pipe", type: i1$3.AsyncPipe, name: "async" }, { kind: "pipe", type: i1$1.TranslatePipe, name: "translate" }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
34018
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.12", type: DataViewPermalinkComponent, selector: "gn-ui-data-view-permalink", inputs: { viewType: "viewType" }, ngImport: i0, template: "<gn-ui-copy-text-button\n *ngIf=\"wcEmbedderBaseUrl\"\n [text]=\"permalinkUrl$ | async\"\n [tooltipText]=\"'tooltip.url.copy' | translate\"\n></gn-ui-copy-text-button>\n", styles: [""], dependencies: [{ kind: "directive", type: i1$3.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "component", type: CopyTextButtonComponent, selector: "gn-ui-copy-text-button", inputs: ["text", "tooltipText", "displayText", "rows"] }, { kind: "pipe", type: i1$3.AsyncPipe, name: "async" }, { kind: "pipe", type: i1$1.TranslatePipe, name: "translate" }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
34001
34019
|
}
|
|
34002
34020
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: DataViewPermalinkComponent, decorators: [{
|
|
34003
34021
|
type: Component,
|
|
@@ -34013,37 +34031,71 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImpo
|
|
|
34013
34031
|
}] }, { type: undefined, decorators: [{
|
|
34014
34032
|
type: Inject,
|
|
34015
34033
|
args: [GN_UI_VERSION]
|
|
34016
|
-
}] }, { type: MdViewFacade }]; }
|
|
34034
|
+
}] }, { type: MdViewFacade }]; }, propDecorators: { viewType: [{
|
|
34035
|
+
type: Input
|
|
34036
|
+
}] } });
|
|
34017
34037
|
|
|
34018
34038
|
class DataViewWebComponentComponent {
|
|
34039
|
+
set viewType(value) {
|
|
34040
|
+
this.viewType$.next(value);
|
|
34041
|
+
}
|
|
34019
34042
|
constructor(config, version, facade) {
|
|
34020
34043
|
this.config = config;
|
|
34021
34044
|
this.version = version;
|
|
34022
34045
|
this.facade = facade;
|
|
34023
|
-
this.
|
|
34024
|
-
|
|
34025
|
-
|
|
34046
|
+
this.viewType$ = new BehaviorSubject('map');
|
|
34047
|
+
this.webComponentHtml$ = combineLatest(this.viewType$, this.facade.chartConfig$, this.facade.metadata$).pipe(map$2(([viewType, config, metadata]) => {
|
|
34048
|
+
if (viewType === 'chart') {
|
|
34049
|
+
if (config) {
|
|
34050
|
+
const { aggregation, xProperty, yProperty, chartType } = config;
|
|
34051
|
+
return `<script src="https://cdn.jsdelivr.net/gh/geonetwork/geonetwork-ui@wc-dist-${this.version}/gn-wc.js"></script>
|
|
34052
|
+
<gn-dataset-view-chart
|
|
34053
|
+
api-url="${new URL(this.config.basePath, window.location.origin).toString()}"
|
|
34054
|
+
dataset-id="${metadata.uniqueIdentifier}"
|
|
34055
|
+
aggregation="${aggregation}"
|
|
34056
|
+
x-property="${xProperty}"
|
|
34057
|
+
y-property="${yProperty}"
|
|
34058
|
+
chart-type="${chartType}"
|
|
34059
|
+
primary-color="#0f4395"
|
|
34060
|
+
secondary-color="#8bc832"
|
|
34061
|
+
main-color="#555"
|
|
34062
|
+
background-color="#fdfbff"
|
|
34063
|
+
main-font="'Inter', sans-serif"
|
|
34064
|
+
title-font="'DM Serif Display', serif"
|
|
34065
|
+
></gn-dataset-view-chart>`;
|
|
34066
|
+
}
|
|
34067
|
+
return '';
|
|
34068
|
+
}
|
|
34069
|
+
else if (viewType === 'table') {
|
|
34070
|
+
return `<script src="https://cdn.jsdelivr.net/gh/geonetwork/geonetwork-ui@wc-dist-${this.version}/gn-wc.js"></script>
|
|
34071
|
+
<gn-dataset-view-table
|
|
34072
|
+
api-url="${new URL(this.config.basePath, window.location.origin).toString()}"
|
|
34073
|
+
dataset-id="${metadata.uniqueIdentifier}"
|
|
34074
|
+
primary-color="#0f4395"
|
|
34075
|
+
secondary-color="#8bc832"
|
|
34076
|
+
main-color="#555"
|
|
34077
|
+
background-color="#fdfbff"
|
|
34078
|
+
main-font="'Inter', sans-serif"
|
|
34079
|
+
title-font="'DM Serif Display', serif"
|
|
34080
|
+
></gn-dataset-view-table>`;
|
|
34081
|
+
}
|
|
34082
|
+
else {
|
|
34026
34083
|
return `<script src="https://cdn.jsdelivr.net/gh/geonetwork/geonetwork-ui@wc-dist-${this.version}/gn-wc.js"></script>
|
|
34027
|
-
<gn-dataset-view-
|
|
34084
|
+
<gn-dataset-view-map
|
|
34028
34085
|
api-url="${new URL(this.config.basePath, window.location.origin).toString()}"
|
|
34029
34086
|
dataset-id="${metadata.uniqueIdentifier}"
|
|
34030
|
-
aggregation="${aggregation}"
|
|
34031
|
-
x-property="${xProperty}"
|
|
34032
|
-
y-property="${yProperty}"
|
|
34033
|
-
chart-type="${chartType}"
|
|
34034
34087
|
primary-color="#0f4395"
|
|
34035
34088
|
secondary-color="#8bc832"
|
|
34036
34089
|
main-color="#555"
|
|
34037
34090
|
background-color="#fdfbff"
|
|
34038
34091
|
main-font="'Inter', sans-serif"
|
|
34039
34092
|
title-font="'DM Serif Display', serif"
|
|
34040
|
-
></gn-dataset-view-
|
|
34093
|
+
></gn-dataset-view-map>`;
|
|
34041
34094
|
}
|
|
34042
|
-
return '';
|
|
34043
34095
|
}));
|
|
34044
34096
|
}
|
|
34045
34097
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: DataViewWebComponentComponent, deps: [{ token: Configuration }, { token: GN_UI_VERSION }, { token: MdViewFacade }], target: i0.ɵɵFactoryTarget.Component }); }
|
|
34046
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.12", type: DataViewWebComponentComponent, selector: "gn-ui-data-view-web-component", ngImport: i0, template: "<gn-ui-copy-text-button\n [text]=\"webComponentHtml$ | async\"\n [rows]=\"3\"\n [tooltipText]=\"'tooltip.html.copy' | translate\"\n></gn-ui-copy-text-button>\n", styles: [""], dependencies: [{ kind: "component", type: CopyTextButtonComponent, selector: "gn-ui-copy-text-button", inputs: ["text", "tooltipText", "displayText", "rows"] }, { kind: "pipe", type: i1$3.AsyncPipe, name: "async" }, { kind: "pipe", type: i1$1.TranslatePipe, name: "translate" }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
34098
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.12", type: DataViewWebComponentComponent, selector: "gn-ui-data-view-web-component", inputs: { viewType: "viewType" }, ngImport: i0, template: "<gn-ui-copy-text-button\n [text]=\"webComponentHtml$ | async\"\n [rows]=\"3\"\n [tooltipText]=\"'tooltip.html.copy' | translate\"\n></gn-ui-copy-text-button>\n", styles: [""], dependencies: [{ kind: "component", type: CopyTextButtonComponent, selector: "gn-ui-copy-text-button", inputs: ["text", "tooltipText", "displayText", "rows"] }, { kind: "pipe", type: i1$3.AsyncPipe, name: "async" }, { kind: "pipe", type: i1$1.TranslatePipe, name: "translate" }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
34047
34099
|
}
|
|
34048
34100
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: DataViewWebComponentComponent, decorators: [{
|
|
34049
34101
|
type: Component,
|
|
@@ -34054,24 +34106,34 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImpo
|
|
|
34054
34106
|
}] }, { type: undefined, decorators: [{
|
|
34055
34107
|
type: Inject,
|
|
34056
34108
|
args: [GN_UI_VERSION]
|
|
34057
|
-
}] }, { type: MdViewFacade }]; }
|
|
34109
|
+
}] }, { type: MdViewFacade }]; }, propDecorators: { viewType: [{
|
|
34110
|
+
type: Input
|
|
34111
|
+
}] } });
|
|
34058
34112
|
|
|
34059
34113
|
class DataViewShareComponent {
|
|
34114
|
+
set viewType(value) {
|
|
34115
|
+
this._viewType = value;
|
|
34116
|
+
}
|
|
34117
|
+
get viewType() {
|
|
34118
|
+
return this._viewType;
|
|
34119
|
+
}
|
|
34060
34120
|
constructor(wcEmbedderBaseUrl) {
|
|
34061
34121
|
this.wcEmbedderBaseUrl = wcEmbedderBaseUrl;
|
|
34062
34122
|
}
|
|
34063
34123
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: DataViewShareComponent, deps: [{ token: WEB_COMPONENT_EMBEDDER_URL, optional: true }], target: i0.ɵɵFactoryTarget.Component }); }
|
|
34064
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.12", type: DataViewShareComponent, selector: "gn-ui-data-view-share", ngImport: i0, template: "<div class=\"container-lg px-5 my-1 lg:mx-auto\">\n <mat-tab-group\n [selectedIndex]=\"0\"\n animationDuration=\"0ms\"\n mat-stretch-tabs=\"false\"\n mat-align-tabs=\"start\"\n [disableRipple]=\"!wcEmbedderBaseUrl\"\n >\n <mat-tab *ngIf=\"wcEmbedderBaseUrl\">\n <ng-template mat-tab-label>\n <span class=\"tab-header-label-gray\" translate>share.tab.permalink</span>\n </ng-template>\n <gn-ui-data-view-permalink></gn-ui-data-view-permalink>\n </mat-tab>\n <mat-tab>\n <ng-template mat-tab-label>\n <span\n [class]=\"\n wcEmbedderBaseUrl\n ? 'tab-header-label-gray'\n : 'single-tab-header-label-gray'\n \"\n translate\n >share.tab.webComponent</span\n >\n </ng-template>\n <gn-ui-data-view-web-component></gn-ui-data-view-web-component>\n </mat-tab>\n </mat-tab-group>\n</div>\n", styles: ["::ng-deep .mat-mdc-tab.mdc-tab.mdc-tab--active .tab-header-label-gray{opacity:100%;font-weight:700}.tab-header-label-gray{@apply text-sm text-gray-700 opacity-75 hover:text-gray-900;}.single-tab-header-label-gray{@apply text-sm text-gray-900;}\n"], dependencies: [{ kind: "directive", type: i1$3.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i2$5.MatTabLabel, selector: "[mat-tab-label], [matTabLabel]" }, { kind: "component", type: i2$5.MatTab, selector: "mat-tab", inputs: ["disabled"], exportAs: ["matTab"] }, { kind: "component", type: i2$5.MatTabGroup, selector: "mat-tab-group", inputs: ["color", "disableRipple", "fitInkBarToContent", "mat-stretch-tabs"], exportAs: ["matTabGroup"] }, { kind: "directive", type: i1$1.TranslateDirective, selector: "[translate],[ngx-translate]", inputs: ["translate", "translateParams"] }, { kind: "component", type: DataViewPermalinkComponent, selector: "gn-ui-data-view-permalink" }, { kind: "component", type: DataViewWebComponentComponent, selector: "gn-ui-data-view-web-component" }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
34124
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.12", type: DataViewShareComponent, selector: "gn-ui-data-view-share", inputs: { viewType: "viewType" }, ngImport: i0, template: "<div class=\"container-lg px-5 my-1 lg:mx-auto\">\n <mat-tab-group\n [selectedIndex]=\"0\"\n animationDuration=\"0ms\"\n mat-stretch-tabs=\"false\"\n mat-align-tabs=\"start\"\n [disableRipple]=\"!wcEmbedderBaseUrl\"\n >\n <mat-tab *ngIf=\"wcEmbedderBaseUrl\">\n <ng-template mat-tab-label>\n <span class=\"tab-header-label-gray\" translate>share.tab.permalink</span>\n </ng-template>\n <gn-ui-data-view-permalink\n [viewType]=\"viewType\"\n ></gn-ui-data-view-permalink>\n </mat-tab>\n <mat-tab>\n <ng-template mat-tab-label>\n <span\n [class]=\"\n wcEmbedderBaseUrl\n ? 'tab-header-label-gray'\n : 'single-tab-header-label-gray'\n \"\n translate\n >share.tab.webComponent</span\n >\n </ng-template>\n <gn-ui-data-view-web-component\n [viewType]=\"viewType\"\n ></gn-ui-data-view-web-component>\n </mat-tab>\n </mat-tab-group>\n</div>\n", styles: ["::ng-deep .mat-mdc-tab.mdc-tab.mdc-tab--active .tab-header-label-gray{opacity:100%;font-weight:700}.tab-header-label-gray{@apply text-sm text-gray-700 opacity-75 hover:text-gray-900;}.single-tab-header-label-gray{@apply text-sm text-gray-900;}\n"], dependencies: [{ kind: "directive", type: i1$3.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i2$5.MatTabLabel, selector: "[mat-tab-label], [matTabLabel]" }, { kind: "component", type: i2$5.MatTab, selector: "mat-tab", inputs: ["disabled"], exportAs: ["matTab"] }, { kind: "component", type: i2$5.MatTabGroup, selector: "mat-tab-group", inputs: ["color", "disableRipple", "fitInkBarToContent", "mat-stretch-tabs"], exportAs: ["matTabGroup"] }, { kind: "directive", type: i1$1.TranslateDirective, selector: "[translate],[ngx-translate]", inputs: ["translate", "translateParams"] }, { kind: "component", type: DataViewPermalinkComponent, selector: "gn-ui-data-view-permalink", inputs: ["viewType"] }, { kind: "component", type: DataViewWebComponentComponent, selector: "gn-ui-data-view-web-component", inputs: ["viewType"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
34065
34125
|
}
|
|
34066
34126
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: DataViewShareComponent, decorators: [{
|
|
34067
34127
|
type: Component,
|
|
34068
|
-
args: [{ selector: 'gn-ui-data-view-share', changeDetection: ChangeDetectionStrategy.OnPush, template: "<div class=\"container-lg px-5 my-1 lg:mx-auto\">\n <mat-tab-group\n [selectedIndex]=\"0\"\n animationDuration=\"0ms\"\n mat-stretch-tabs=\"false\"\n mat-align-tabs=\"start\"\n [disableRipple]=\"!wcEmbedderBaseUrl\"\n >\n <mat-tab *ngIf=\"wcEmbedderBaseUrl\">\n <ng-template mat-tab-label>\n <span class=\"tab-header-label-gray\" translate>share.tab.permalink</span>\n </ng-template>\n <gn-ui-data-view-permalink></gn-ui-data-view-permalink>\n </mat-tab>\n <mat-tab>\n <ng-template mat-tab-label>\n <span\n [class]=\"\n wcEmbedderBaseUrl\n ? 'tab-header-label-gray'\n : 'single-tab-header-label-gray'\n \"\n translate\n >share.tab.webComponent</span\n >\n </ng-template>\n <gn-ui-data-view-web-component></gn-ui-data-view-web-component>\n </mat-tab>\n </mat-tab-group>\n</div>\n", styles: ["::ng-deep .mat-mdc-tab.mdc-tab.mdc-tab--active .tab-header-label-gray{opacity:100%;font-weight:700}.tab-header-label-gray{@apply text-sm text-gray-700 opacity-75 hover:text-gray-900;}.single-tab-header-label-gray{@apply text-sm text-gray-900;}\n"] }]
|
|
34128
|
+
args: [{ selector: 'gn-ui-data-view-share', changeDetection: ChangeDetectionStrategy.OnPush, template: "<div class=\"container-lg px-5 my-1 lg:mx-auto\">\n <mat-tab-group\n [selectedIndex]=\"0\"\n animationDuration=\"0ms\"\n mat-stretch-tabs=\"false\"\n mat-align-tabs=\"start\"\n [disableRipple]=\"!wcEmbedderBaseUrl\"\n >\n <mat-tab *ngIf=\"wcEmbedderBaseUrl\">\n <ng-template mat-tab-label>\n <span class=\"tab-header-label-gray\" translate>share.tab.permalink</span>\n </ng-template>\n <gn-ui-data-view-permalink\n [viewType]=\"viewType\"\n ></gn-ui-data-view-permalink>\n </mat-tab>\n <mat-tab>\n <ng-template mat-tab-label>\n <span\n [class]=\"\n wcEmbedderBaseUrl\n ? 'tab-header-label-gray'\n : 'single-tab-header-label-gray'\n \"\n translate\n >share.tab.webComponent</span\n >\n </ng-template>\n <gn-ui-data-view-web-component\n [viewType]=\"viewType\"\n ></gn-ui-data-view-web-component>\n </mat-tab>\n </mat-tab-group>\n</div>\n", styles: ["::ng-deep .mat-mdc-tab.mdc-tab.mdc-tab--active .tab-header-label-gray{opacity:100%;font-weight:700}.tab-header-label-gray{@apply text-sm text-gray-700 opacity-75 hover:text-gray-900;}.single-tab-header-label-gray{@apply text-sm text-gray-900;}\n"] }]
|
|
34069
34129
|
}], ctorParameters: function () { return [{ type: undefined, decorators: [{
|
|
34070
34130
|
type: Optional
|
|
34071
34131
|
}, {
|
|
34072
34132
|
type: Inject,
|
|
34073
34133
|
args: [WEB_COMPONENT_EMBEDDER_URL]
|
|
34074
|
-
}] }]; }
|
|
34134
|
+
}] }]; }, propDecorators: { viewType: [{
|
|
34135
|
+
type: Input
|
|
34136
|
+
}] } });
|
|
34075
34137
|
|
|
34076
34138
|
class FeatureRecordModule {
|
|
34077
34139
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: FeatureRecordModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
|