@vgip/meta-ui 1.7.2 → 1.7.4
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/lib/common/metaIcons.pipe.mjs +3 -3
- package/esm2022/lib/common/metaModel.pipe.mjs +3 -5
- package/esm2022/lib/common/metaNormalizer.mjs +8 -3
- package/esm2022/lib/common/utils/colorThemes.mjs +1 -3
- package/esm2022/lib/common/utils/indexedDbStore/index.mjs +3 -3
- package/esm2022/lib/common/utils/templateBuilder.mjs +3 -3
- package/esm2022/lib/fieldAbstract.mjs +7 -3
- package/esm2022/lib/fieldComposite/index.mjs +19 -2
- package/esm2022/lib/fieldDatetime/index.mjs +6 -4
- package/esm2022/lib/fieldInput/index.mjs +3 -3
- package/esm2022/lib/fieldList/index.mjs +3 -3
- package/esm2022/lib/fieldRadio/index.mjs +3 -3
- package/esm2022/lib/fieldReference/index.mjs +12 -8
- package/esm2022/lib/fieldRichtext/index.mjs +3 -3
- package/esm2022/lib/fieldSelect/index.mjs +11 -6
- package/esm2022/lib/fieldText/index.mjs +3 -3
- package/esm2022/lib/fieldUnknown/index.mjs +3 -3
- package/esm2022/lib/layout/index.mjs +26 -20
- package/esm2022/lib/metaField/index.mjs +3 -3
- package/esm2022/lib/refDialog/index.mjs +14 -6
- package/esm2022/lib/resource/index.mjs +9 -5
- package/esm2022/lib/services/metaMsg/index.mjs +2 -2
- package/esm2022/lib/services/metaReference/index.mjs +2 -2
- package/esm2022/lib/services/metaResource/index.mjs +4 -4
- package/esm2022/lib/services/metaResource/metaHttpClient.mjs +2 -2
- package/esm2022/lib/services/resourceDrafts/index.mjs +9 -8
- package/fesm2022/{vgip-meta-ui-fieldAbstract-ce47588e.mjs → vgip-meta-ui-fieldAbstract-9955be39.mjs} +7 -5
- package/fesm2022/vgip-meta-ui-fieldAbstract-9955be39.mjs.map +1 -0
- package/fesm2022/{vgip-meta-ui-index-78d7b9be.mjs → vgip-meta-ui-index-0349968f.mjs} +8 -6
- package/fesm2022/vgip-meta-ui-index-0349968f.mjs.map +1 -0
- package/fesm2022/{vgip-meta-ui-index-617c4bac.mjs → vgip-meta-ui-index-24fe289e.mjs} +58 -35
- package/fesm2022/vgip-meta-ui-index-24fe289e.mjs.map +1 -0
- package/fesm2022/{vgip-meta-ui-index-eba0dd05.mjs → vgip-meta-ui-index-44af92c9.mjs} +6 -6
- package/fesm2022/vgip-meta-ui-index-44af92c9.mjs.map +1 -0
- package/fesm2022/vgip-meta-ui-index-5871a6f2.mjs +95 -0
- package/fesm2022/vgip-meta-ui-index-5871a6f2.mjs.map +1 -0
- package/fesm2022/vgip-meta-ui-index-5891b8e7.mjs +24 -0
- package/fesm2022/vgip-meta-ui-index-5891b8e7.mjs.map +1 -0
- package/fesm2022/{vgip-meta-ui-index-cb0d4f82.mjs → vgip-meta-ui-index-5d13f5e6.mjs} +2 -2
- package/fesm2022/{vgip-meta-ui-index-cb0d4f82.mjs.map → vgip-meta-ui-index-5d13f5e6.mjs.map} +1 -1
- package/fesm2022/vgip-meta-ui-index-9c99e9b0.mjs +74 -0
- package/fesm2022/vgip-meta-ui-index-9c99e9b0.mjs.map +1 -0
- package/fesm2022/{vgip-meta-ui-index-5509b1d2.mjs → vgip-meta-ui-index-9e4137fe.mjs} +6 -6
- package/fesm2022/vgip-meta-ui-index-9e4137fe.mjs.map +1 -0
- package/fesm2022/{vgip-meta-ui-index-f0fa2cbd.mjs → vgip-meta-ui-index-9fd8e1b0.mjs} +21 -4
- package/fesm2022/vgip-meta-ui-index-9fd8e1b0.mjs.map +1 -0
- package/fesm2022/vgip-meta-ui-index-a3a43cf7.mjs +862 -0
- package/fesm2022/vgip-meta-ui-index-a3a43cf7.mjs.map +1 -0
- package/fesm2022/vgip-meta-ui-index-b0a76073.mjs +97 -0
- package/fesm2022/vgip-meta-ui-index-b0a76073.mjs.map +1 -0
- package/fesm2022/{vgip-meta-ui-index-cfb67422.mjs → vgip-meta-ui-index-bc945c3c.mjs} +16 -11
- package/fesm2022/vgip-meta-ui-index-bc945c3c.mjs.map +1 -0
- package/fesm2022/{vgip-meta-ui-index-eef5fc0f.mjs → vgip-meta-ui-index-c39ea0ec.mjs} +3 -3
- package/fesm2022/{vgip-meta-ui-index-eef5fc0f.mjs.map → vgip-meta-ui-index-c39ea0ec.mjs.map} +1 -1
- package/fesm2022/{vgip-meta-ui-index-f5e42e1d.mjs → vgip-meta-ui-index-c5756fbe.mjs} +16 -16
- package/fesm2022/vgip-meta-ui-index-c5756fbe.mjs.map +1 -0
- package/fesm2022/{vgip-meta-ui-index-1467556e.mjs → vgip-meta-ui-index-ea5c2466.mjs} +3 -3
- package/fesm2022/vgip-meta-ui-index-ea5c2466.mjs.map +1 -0
- package/fesm2022/{vgip-meta-ui-metaModel.pipe-3487ede2.mjs → vgip-meta-ui-metaModel.pipe-6b803e66.mjs} +3 -5
- package/fesm2022/vgip-meta-ui-metaModel.pipe-6b803e66.mjs.map +1 -0
- package/fesm2022/vgip-meta-ui.mjs +31 -30
- package/fesm2022/vgip-meta-ui.mjs.map +1 -1
- package/lib/common/metaIcons.pipe.d.ts +1 -1
- package/lib/common/metaModel.pipe.d.ts +1 -2
- package/lib/common/utils/indexedDbStore/index.d.ts +2 -2
- package/lib/fieldAbstract.d.ts +0 -4
- package/lib/fieldComposite/index.d.ts +6 -3
- package/lib/fieldReference/index.d.ts +1 -1
- package/lib/fieldSelect/index.d.ts +1 -1
- package/lib/layout/index.d.ts +4 -4
- package/lib/refDialog/index.d.ts +3 -3
- package/lib/resource/index.d.ts +1 -1
- package/package.json +2 -2
- package/fesm2022/vgip-meta-ui-fieldAbstract-ce47588e.mjs.map +0 -1
- package/fesm2022/vgip-meta-ui-index-1467556e.mjs.map +0 -1
- package/fesm2022/vgip-meta-ui-index-5509b1d2.mjs.map +0 -1
- package/fesm2022/vgip-meta-ui-index-5d664781.mjs +0 -858
- package/fesm2022/vgip-meta-ui-index-5d664781.mjs.map +0 -1
- package/fesm2022/vgip-meta-ui-index-617c4bac.mjs.map +0 -1
- package/fesm2022/vgip-meta-ui-index-6dcb4942.mjs +0 -24
- package/fesm2022/vgip-meta-ui-index-6dcb4942.mjs.map +0 -1
- package/fesm2022/vgip-meta-ui-index-78d7b9be.mjs.map +0 -1
- package/fesm2022/vgip-meta-ui-index-85109066.mjs +0 -97
- package/fesm2022/vgip-meta-ui-index-85109066.mjs.map +0 -1
- package/fesm2022/vgip-meta-ui-index-86211382.mjs +0 -74
- package/fesm2022/vgip-meta-ui-index-86211382.mjs.map +0 -1
- package/fesm2022/vgip-meta-ui-index-adb42356.mjs +0 -95
- package/fesm2022/vgip-meta-ui-index-adb42356.mjs.map +0 -1
- package/fesm2022/vgip-meta-ui-index-cfb67422.mjs.map +0 -1
- package/fesm2022/vgip-meta-ui-index-eba0dd05.mjs.map +0 -1
- package/fesm2022/vgip-meta-ui-index-f0fa2cbd.mjs.map +0 -1
- package/fesm2022/vgip-meta-ui-index-f5e42e1d.mjs.map +0 -1
- package/fesm2022/vgip-meta-ui-metaModel.pipe-3487ede2.mjs.map +0 -1
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import * as i0 from '@angular/core';
|
|
2
2
|
import { Injectable, Component, Input, Directive, EventEmitter, Output, ViewChild } from '@angular/core';
|
|
3
|
-
import { a as metaDark, m as metaLight } from './vgip-meta-ui-fieldAbstract-
|
|
3
|
+
import { a as metaDark, m as metaLight } from './vgip-meta-ui-fieldAbstract-9955be39.mjs';
|
|
4
4
|
import * as i1$2 from '@angular/common';
|
|
5
|
-
import { M as MetaContextService, t as templateBuilder } from './vgip-meta-ui-index-
|
|
5
|
+
import { M as MetaContextService, t as templateBuilder } from './vgip-meta-ui-index-ea5c2466.mjs';
|
|
6
6
|
import * as i1 from '@angular/common/http';
|
|
7
7
|
import { HttpParams, HttpHeaders } from '@angular/common/http';
|
|
8
8
|
import * as i2 from '@angular/forms';
|
|
9
9
|
import { Observable, Subject } from 'rxjs';
|
|
10
10
|
import { debounceTime, distinctUntilChanged } from 'rxjs/operators';
|
|
11
11
|
import * as i1$1 from '@angular/router';
|
|
12
|
-
import { M as MetaField } from './vgip-meta-ui-index-
|
|
12
|
+
import { M as MetaField } from './vgip-meta-ui-index-c5756fbe.mjs';
|
|
13
13
|
|
|
14
14
|
const numberFieldNormalizer = (field) => {
|
|
15
15
|
const f = {
|
|
@@ -548,7 +548,7 @@ const metaNormalizer = (meta, integration, resourceType) => {
|
|
|
548
548
|
case 'SALESFORCE': {
|
|
549
549
|
if (resourceType === 'Task' && f.name === 'WhatId') {
|
|
550
550
|
f.disabled = {
|
|
551
|
-
'WhoId.type': 'Lead'
|
|
551
|
+
'WhoId.type': 'Lead'
|
|
552
552
|
};
|
|
553
553
|
}
|
|
554
554
|
if (['Description', 'ParentId'].indexOf(f.name) !== -1) {
|
|
@@ -742,7 +742,12 @@ const metaNormalizer = (meta, integration, resourceType) => {
|
|
|
742
742
|
name: 'status',
|
|
743
743
|
type: 'hidden'
|
|
744
744
|
});
|
|
745
|
-
|
|
745
|
+
}
|
|
746
|
+
else if (integrationCode === 'ZOHO' && resourceType === 'Tasks') {
|
|
747
|
+
metaV3.layout.sections[0].fields.push({
|
|
748
|
+
name: 'module',
|
|
749
|
+
type: 'hidden'
|
|
750
|
+
});
|
|
746
751
|
}
|
|
747
752
|
return sortObj(metaV3);
|
|
748
753
|
};
|
|
@@ -791,7 +796,7 @@ class MetaHttpClient {
|
|
|
791
796
|
});
|
|
792
797
|
const options = {
|
|
793
798
|
headers: new HttpHeaders({
|
|
794
|
-
Accept: 'application/json'
|
|
799
|
+
Accept: 'application/json'
|
|
795
800
|
}),
|
|
796
801
|
params
|
|
797
802
|
};
|
|
@@ -829,7 +834,7 @@ class MetaResourceService {
|
|
|
829
834
|
this.httpClient = httpClient;
|
|
830
835
|
}
|
|
831
836
|
setConfig(config) {
|
|
832
|
-
this.baseIntegrationUrl = INTEGRATION_URL_TEMPLATE.replace(/\${\s*([\w
|
|
837
|
+
this.baseIntegrationUrl = INTEGRATION_URL_TEMPLATE.replace(/\${\s*([\w.]+)\s*}/g, (m, value) => {
|
|
833
838
|
for (const storage of Object.keys(STORAGE_PARAMS_REGEXES)) {
|
|
834
839
|
const match = value.match(STORAGE_PARAMS_REGEXES[storage]);
|
|
835
840
|
if (match) {
|
|
@@ -838,7 +843,7 @@ class MetaResourceService {
|
|
|
838
843
|
}
|
|
839
844
|
return config[value];
|
|
840
845
|
});
|
|
841
|
-
this.baseResourceUrl = RESOURCE_URL_TEMPLATE.replace(/\${\s*([\w
|
|
846
|
+
this.baseResourceUrl = RESOURCE_URL_TEMPLATE.replace(/\${\s*([\w.]+)\s*}/g, (m, value) => {
|
|
842
847
|
for (const storage of Object.keys(STORAGE_PARAMS_REGEXES)) {
|
|
843
848
|
const match = value.match(STORAGE_PARAMS_REGEXES[storage]);
|
|
844
849
|
if (match) {
|
|
@@ -860,7 +865,7 @@ class MetaResourceService {
|
|
|
860
865
|
return config[value];
|
|
861
866
|
}
|
|
862
867
|
});
|
|
863
|
-
this.newResourceUrl = NEW_RESOURCE_URL_TEMPLATE.replace(/\${\s*([\w
|
|
868
|
+
this.newResourceUrl = NEW_RESOURCE_URL_TEMPLATE.replace(/\${\s*([\w.]+)\s*}/g, (m, value) => {
|
|
864
869
|
for (const storage of Object.keys(STORAGE_PARAMS_REGEXES)) {
|
|
865
870
|
const match = value.match(STORAGE_PARAMS_REGEXES[storage]);
|
|
866
871
|
if (match) {
|
|
@@ -978,7 +983,7 @@ class MetaMsgService {
|
|
|
978
983
|
let state; // message unique identifier
|
|
979
984
|
do {
|
|
980
985
|
state = new Date().getTime();
|
|
981
|
-
} while (
|
|
986
|
+
} while (this.msgCallbacks[state]);
|
|
982
987
|
this.msgCallbacks[state] = callback; // register message callback
|
|
983
988
|
msg.$state = state;
|
|
984
989
|
providerWorker.postMessage(msg);
|
|
@@ -1054,7 +1059,7 @@ class MetaReferenceService {
|
|
|
1054
1059
|
constructor(router) {
|
|
1055
1060
|
this.router = router;
|
|
1056
1061
|
this.dialogs = [];
|
|
1057
|
-
this.router.events.subscribe((
|
|
1062
|
+
this.router.events.subscribe(() => {
|
|
1058
1063
|
if (this.dialogs.length) {
|
|
1059
1064
|
for (let d = (this.dialogs.length - 1); d >= 0; d--) {
|
|
1060
1065
|
this.dialogs[d].onComplete();
|
|
@@ -1131,7 +1136,6 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.11", ngImpo
|
|
|
1131
1136
|
|
|
1132
1137
|
class MetaLayout {
|
|
1133
1138
|
constructor(viewContainerRef, ref, el, metaResource, referenceService) {
|
|
1134
|
-
// console.log('MetaLayout', this.meta);
|
|
1135
1139
|
this.viewContainerRef = viewContainerRef;
|
|
1136
1140
|
this.ref = ref;
|
|
1137
1141
|
this.el = el;
|
|
@@ -1141,31 +1145,36 @@ class MetaLayout {
|
|
|
1141
1145
|
this.showAll = false;
|
|
1142
1146
|
this.fieldsVisibilityChanged = new Subject();
|
|
1143
1147
|
this.childResourceCardLabel = resourceCardLabel;
|
|
1148
|
+
// console.log('MetaLayout', this.meta);
|
|
1144
1149
|
}
|
|
1145
1150
|
get isPersistedResource() {
|
|
1146
1151
|
// eslint-disable-next-line no-underscore-dangle
|
|
1147
|
-
return this.resource &&
|
|
1152
|
+
return (this.resource &&
|
|
1153
|
+
this.resource._vgis &&
|
|
1154
|
+
(this.resource._vgis.externalId || this.resource._vgis.id));
|
|
1148
1155
|
}
|
|
1149
1156
|
ngOnInit() {
|
|
1150
1157
|
this.integrationCode = this.meta.integrationCode || this.integration;
|
|
1151
1158
|
this.resourceType = this.meta.resourceType || this.type;
|
|
1152
|
-
this.parentForm = this.el.nativeElement.closest(
|
|
1159
|
+
this.parentForm = this.el.nativeElement.closest("form");
|
|
1153
1160
|
this.configureOptionalSections();
|
|
1154
|
-
this.fieldsVisibilityChanged
|
|
1161
|
+
this.fieldsVisibilityChanged
|
|
1162
|
+
.pipe(debounceTime(100), distinctUntilChanged())
|
|
1163
|
+
.subscribe(() => {
|
|
1155
1164
|
this.countOptionalFields();
|
|
1156
1165
|
});
|
|
1157
1166
|
setTimeout(() => {
|
|
1158
1167
|
this.countOptionalFields();
|
|
1159
1168
|
}, 0);
|
|
1160
1169
|
if (this.parentForm) {
|
|
1161
|
-
this.parentForm.addEventListener(
|
|
1170
|
+
this.parentForm.addEventListener("change", () => {
|
|
1162
1171
|
setTimeout(() => {
|
|
1163
1172
|
this.fieldsVisibilityChanged.next(JSON.stringify(this.resource));
|
|
1164
1173
|
this.countOptionalFields();
|
|
1165
1174
|
}, 0);
|
|
1166
1175
|
});
|
|
1167
1176
|
}
|
|
1168
|
-
if (this.theme !==
|
|
1177
|
+
if (this.theme !== "inherit") {
|
|
1169
1178
|
this.applyTheme();
|
|
1170
1179
|
}
|
|
1171
1180
|
}
|
|
@@ -1196,7 +1205,7 @@ class MetaLayout {
|
|
|
1196
1205
|
}
|
|
1197
1206
|
};
|
|
1198
1207
|
for (const s of this.meta.sections) {
|
|
1199
|
-
const notOptionalAny = s.fields?.find(f => !f.$optional);
|
|
1208
|
+
const notOptionalAny = s.fields?.find((f) => !f.$optional);
|
|
1200
1209
|
s.$optional = !notOptionalAny;
|
|
1201
1210
|
if (!s.visible) {
|
|
1202
1211
|
countSectionFields(s);
|
|
@@ -1207,11 +1216,11 @@ class MetaLayout {
|
|
|
1207
1216
|
configureOptionalSections() {
|
|
1208
1217
|
if (this.meta && this.meta.sections) {
|
|
1209
1218
|
for (const s of this.meta.sections) {
|
|
1210
|
-
Object.defineProperty(s,
|
|
1219
|
+
Object.defineProperty(s, "$optional", {
|
|
1211
1220
|
value: true,
|
|
1212
1221
|
writable: true,
|
|
1213
1222
|
configurable: true,
|
|
1214
|
-
enumerable: false
|
|
1223
|
+
enumerable: false,
|
|
1215
1224
|
});
|
|
1216
1225
|
}
|
|
1217
1226
|
}
|
|
@@ -1224,11 +1233,13 @@ class MetaLayout {
|
|
|
1224
1233
|
this.ngAfterContentChecked();
|
|
1225
1234
|
}
|
|
1226
1235
|
async openChild(childResource, childModel) {
|
|
1227
|
-
const metaRefDialog = await Promise.resolve().then(function () { return index; }).then(m => m.MetaRefDialog);
|
|
1236
|
+
const metaRefDialog = await Promise.resolve().then(function () { return index; }).then((m) => m.MetaRefDialog);
|
|
1228
1237
|
childResource.reference.parent = this.resource._vgis; // eslint-disable-line no-underscore-dangle
|
|
1229
1238
|
const refDialogComponent = this.viewContainerRef.createComponent(metaRefDialog);
|
|
1230
|
-
this.referenceService
|
|
1231
|
-
|
|
1239
|
+
this.referenceService
|
|
1240
|
+
.openDialog(refDialogComponent, this.metaResource, this.integrationCode, childResource.reference, childModel, childModel && childResource.reference.editable === false // is preview mode
|
|
1241
|
+
)
|
|
1242
|
+
.subscribe((result) => {
|
|
1232
1243
|
if (result && result.raw) {
|
|
1233
1244
|
if (!this.resource[childResource.name]) {
|
|
1234
1245
|
this.resource[childResource.name] = [];
|
|
@@ -1243,7 +1254,7 @@ class MetaLayout {
|
|
|
1243
1254
|
});
|
|
1244
1255
|
}
|
|
1245
1256
|
applyTheme() {
|
|
1246
|
-
const metaTheme = this.theme ===
|
|
1257
|
+
const metaTheme = this.theme === "dark" ? metaDark : metaLight;
|
|
1247
1258
|
for (const key of Object.keys(metaTheme.properties)) {
|
|
1248
1259
|
this.el.nativeElement.style.setProperty(key, metaTheme.properties[key]);
|
|
1249
1260
|
}
|
|
@@ -1253,7 +1264,7 @@ class MetaLayout {
|
|
|
1253
1264
|
}
|
|
1254
1265
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.11", ngImport: i0, type: MetaLayout, decorators: [{
|
|
1255
1266
|
type: Component,
|
|
1256
|
-
args: [{ selector:
|
|
1267
|
+
args: [{ selector: "vgip-meta-layout", template: "<div *ngFor='let section of meta.sections' class='Vlt-section' [ngClass]=\"{ shown: showAll || section.visible || (!meta.oneTimeOptional && !section.$optional) || (meta.oneTimeOptional && !optionalFieldsCount) }\">\n\t<h5 *ngIf='section.label' class=\"Vlt-section__title\">{{section.label}}</h5>\n\t<div style='overflow: visible;' [ngClass]=\"{ 'for-preview': preview }\">\n\t\t<small *ngIf='section.description' class=\"Vlt-form__element__hint\">{{section.description}}</small>\n\t\t<div>\n\t\t\t<ng-container *ngFor='let field of section.fields'>\n\t\t\t\t<vgip-meta-field *ngIf='!field.$hidden && (showAll || section.visible || !field.$optional)' [meta]='field' [parent]='resource' [integrationCode]='integrationCode' [resourceType]='resourceType' [preview]='preview' [ngClass]=\"{ shown: !field.$invisible && (showAll || true) }\" theme='inherit' [attr.data-theme]='theme'></vgip-meta-field>\n\t\t\t</ng-container>\n\t\t</div>\n\t</div>\n</div>\n<div *ngIf='isPersistedResource && meta.children && preview'>\n\t<div *ngFor='let child of meta.children'>\n\t\t<h5 class='Vlt-children__title'>\n\t\t\t<svg class=\"Vlt-icon\"><use xlink:href=\"volta/volta-icons.svg#Vlt-icon-stack\" /></svg> \n\t\t\t{{child.label}} <span class='Vlt-grey'>({{(resource[child.name] || []).length}})</span>\n\t\t</h5>\n\t\t<div *ngFor=\"let c of resource[child.name]\" style='position: relative;'>\n\n\t\t\t<div class=\"Vlt-card Vlt-bg-white\">\n\t\t\t\t<div class=\"Vlt-card__content Vlt-btn-on-hover\">\n\t\t\t\t\t<h5>{{childResourceCardLabel(c)}}</h5>\n\t\t\t\t\t<div style='font-size: 12px; line-height: 16px;'>\n\t\t\t\t\t\tCreated: <span class='Vlt-black'>{{c._vgis.createdDate | date:'mediumDate'}}</span>\n\t\t\t\t\t\tEdited: <span class='Vlt-black'>{{c._vgis.modifiedDate | date:'medium'}}</span>\n\t\t\t\t\t</div>\n\t\t\t\t\t<div class=\"Vlt-badge Vlt-badge--app Vlt-badge--purple Vlt-badge--small\">{{c._vgis.resourceType}}</div>\n\t\t\t\t\t<div class=\"Vlt-btn-group Vlt-btn-group--hover\">\n\t\t\t\t\t\t<a *ngIf='c._vgis.externalLink' attr.href='{{c._vgis.externalLink}}' target='_blank' rel='noopener' rel='noopener' class=\"Vlt-btn Vlt-btn--tertiary Vlt-btn--icon\" aria-label='Open external'><svg style='margin-left: 0; margin-right: 0;'><use xlink:href=\"volta/volta-icons.svg#Vlt-icon-open\"/></svg></a>\n\t\t\t\t\t\t<button type='button' (click)='openChild(child, c)' class=\"Vlt-btn Vlt-btn--tertiary Vlt-btn--icon\"><svg style='margin-left: 0; margin-right: 0;'><use attr.xlink:href=\"volta/volta-icons.svg#Vlt-icon-{{ child.reference.editable ? 'edit' : 'eye-negative' }}\"/></svg></button>\n\t\t\t\t\t</div>\n\t\t\t\t</div>\n\t\t\t</div>\n\t\t</div>\n\t\t<button style='width: 100%; margin-top: 0; max-width: 100%;' type='button' (click)='openChild(child)' class=\"Vlt-btn Vlt-btn--small Vlt-btn--secondary\" [disabled]='child.creatable === false'>\n\t\t\t<svg><use xlink:href=\"volta/volta-icons.svg#Vlt-icon-plus\"/></svg>{{child.reference.label}}\n\t\t</button>\n\t</div>\n</div>\n<div *ngIf='!(meta.oneTimeOptional && showAll)' [ngClass]='{ centered: !meta.oneTimeOptional }'>\n\t<button *ngIf='!preview && optionalFieldsCount' type='button' (click)='toggleOptionalFields()' class=\"Vlt-btn Vlt-btn--small Vlt-btn--link more-button\" style='margin: 0; margin-bottom: 10px;'>\n\t\t<svg><use attr.xlink:href=\"volta/volta-icons.svg#Vlt-icon-chevron-{{ showAll ? 'up' : 'down' }}\"/></svg>\n\t\t{{ showAll ? 'Hide' : 'Show' }} Optional Fields ({{optionalFieldsCount}})\n\t</button>\n</div>\n", styles: ["vgip-meta-field{display:none}vgip-meta-field.shown{display:initial}.Vlt-section__title{line-height:14px;padding:16px 16px 14px 3px;margin:-9px -1px 8px;background-color:var(--vgip-meta-resource-bg-color);color:var(--vgip-meta-resource-color);position:sticky;top:-9px;z-index:3;border-bottom:1px solid var(--vgip-meta-separator-color)}.Vlt-section{margin:0;padding-bottom:8px;display:none}.Vlt-section.shown{display:block}.Vlt-btn.vlt-add-child:hover{transform:scale(1.02)}.for-preview{margin-top:-6px}.Vlt-card{margin-bottom:16px;padding:16px}.Vlt-card .Vlt-btn-group.Vlt-btn-group--hover{right:-8px}button.more-button:focus{font-weight:700}.centered{text-align:center}.Vlt-btn--link{color:var(--vgip-meta-link-color)}.Vlt-btn--link:hover{color:var(--vgip-meta-link-hover-color)}.Vlt-btn--link svg{fill:var(--vgip-meta-link-color)}\n"] }]
|
|
1257
1268
|
}], ctorParameters: function () { return [{ type: i0.ViewContainerRef }, { type: i0.ChangeDetectorRef }, { type: i0.ElementRef }, { type: MetaResourceService }, { type: MetaReferenceService }]; }, propDecorators: { meta: [{
|
|
1258
1269
|
type: Input
|
|
1259
1270
|
}], resource: [{
|
|
@@ -1386,7 +1397,7 @@ class MetaResource {
|
|
|
1386
1397
|
setEditMode() {
|
|
1387
1398
|
this.edit = true;
|
|
1388
1399
|
}
|
|
1389
|
-
loadMetadata(layoutId, refresh = false) {
|
|
1400
|
+
loadMetadata(layoutId, refresh = false, ev) {
|
|
1390
1401
|
const layoutStoreKey = `vgis.layout_${this.metaContext.vgipUserId}_${this.integrationCode}_${this.resource.resourceType}`;
|
|
1391
1402
|
if (!layoutId) {
|
|
1392
1403
|
layoutId = localStorage.getItem(layoutStoreKey);
|
|
@@ -1422,6 +1433,11 @@ class MetaResource {
|
|
|
1422
1433
|
this.forceUiUpdate();
|
|
1423
1434
|
}
|
|
1424
1435
|
});
|
|
1436
|
+
if (ev) {
|
|
1437
|
+
ev.preventDefault();
|
|
1438
|
+
ev.stopPropagation();
|
|
1439
|
+
return false;
|
|
1440
|
+
}
|
|
1425
1441
|
}
|
|
1426
1442
|
changeLayout() {
|
|
1427
1443
|
localStorage.setItem(`vgis.layout_${this.metaContext.vgipUserId}_${this.integrationCode}_${this.resource.resourceType}`, this.currentLayoutId);
|
|
@@ -1606,7 +1622,6 @@ class MetaResource {
|
|
|
1606
1622
|
catch (err) {
|
|
1607
1623
|
console.log('....', err);
|
|
1608
1624
|
}
|
|
1609
|
-
;
|
|
1610
1625
|
}
|
|
1611
1626
|
else if (errorResult.status === 422) {
|
|
1612
1627
|
this.showParsedError(resourceForm, errorResult.error);
|
|
@@ -1758,11 +1773,11 @@ class MetaResource {
|
|
|
1758
1773
|
this.el.nativeElement.dispatchEvent(e);
|
|
1759
1774
|
}
|
|
1760
1775
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.11", ngImport: i0, type: MetaResource, deps: [{ token: i0.ChangeDetectorRef }, { token: i0.ElementRef }, { token: MetaResourceService }, { token: MetaContextService }, { token: MetaMsgService }], target: i0.ɵɵFactoryTarget.Component }); }
|
|
1761
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.11", type: MetaResource, selector: "vgip-meta-resource", inputs: { resource: "resource", model: "model", metaResourceServiceDelegated: "metaResourceServiceDelegated", theme: "theme", editMode: "editMode" }, outputs: { done: "done" }, viewQueries: [{ propertyName: "resourceForm", first: true, predicate: ["resourceForm"], descendants: true }], usesOnChanges: true, ngImport: i0, template: "<div *ngIf='generalError' class=\"Vlt-callout Vlt-callout--critical\" style='overflow: auto; margin: 20px;'>\n\t<i></i>\n\t<div class=\"Vlt-callout__content\">\n\t\t<p>{{generalError}}</p>\n\t</div>\n</div>\n<div *ngIf='!meta' class=\"Vlt-progress\">\n\t<div class=\"Vlt-progress__bar\" [ngClass]=\"{ loading: metaLoading }\" role=\"progressbar\" aria-valuemin=\"0\" aria-valuetext=\"Loading Metadata\" aria-valuemax=\"100\"></div>\n</div>\n<form [vgipMetaFormAutofocus]='!resource || !resource.externalId' *ngIf='meta && !generalError' #resourceForm=\"ngForm\" [name]='resource.resourceType' (ngSubmit)='submit(resourceForm)' novalidate>\n\t<div class='form-content' style='overflow: hidden;'>\n\t\t<div [ngClass]=\"{ 'Vlt-callout--dismissed': !formErrors }\" class=\"Vlt-callout Vlt-callout--banner Vlt-callout--critical\">\n\t\t\t<i></i>\n\t\t\t<div class=\"Vlt-callout__content\" style=\"margin-top: auto;\">\n\t\t\t\t<p>There is a problem with one or more fields</p>\n\t\t\t\t<small style='font-weight: 600; font-size: 1.0em;' *ngIf='formErrors'>{{ formErrors.message || formErrors }}</small>\n\t\t\t</div>\n\t\t\t<button type='button' class=\"Vlt-callout__dismiss\" (click)='clearFormErrors()' aria-label=\"Dismiss\"></button>\n\t\t</div>\n\t\t<div class=\"Vlt-card__content\" style='min-height: 40px;'>\n\t\t\t<vgip-meta-layout *ngIf='edit' [meta]='meta.layout' [resource]='model' [preview]='false' [integration]='meta.integration' [type]='resource.resourceType' theme='inherit'></vgip-meta-layout>\n\t\t\t<vgip-meta-layout *ngIf='!edit' [meta]='meta.layout' [resource]='model' [preview]='true' [integration]='meta.integration' [type]='resource.resourceType' theme='inherit'></vgip-meta-layout>\n\t\t</div>\n\t</div>\n\t<div class=\"Vlt-card__footer\">\n\t\t<button class=\"Vlt-btn Vlt-btn--secondary Vlt-btn--app Vlt-btn--outline\" type='button' aria-label='Cancel' (click)='close()'>\n\t\t\t{{ edit ? 'Cancel' : 'Close' }}\n\t\t</button>\n\t\t<button *ngIf='edit' class=\"Vlt-btn Vlt-btn--app\" [ngClass]=\"{ 'Vlt-btn--primary': isPersistent, 'Vlt-btn--secondary': !isPersistent }\" type='submit'>\n\t\t\t{{ (resource && resource.externalId) ? 'Update' : 'Create' }}\n\t\t</button>\n\t\t<button (click)='setEditMode()' *ngIf='!edit && isEditable' [disabled]='!isEditable' class=\"Vlt-btn Vlt-btn--app Vlt-btn--primary\" type='button' aria-label='Edit'>\n\t\t\tEdit\n\t\t</button>\n\t\t<div style='margin-right: 8px; flex: 1;'>\n\t\t\t<div *ngIf='meta.availableLayouts && meta.availableLayouts.length' class=\"Vlt-form__element Vlt-form__element--big\" style='padding: 0; margin: -8px -18px -8px 0;'>\n\t\t\t\t<div class=\"Vlt-select\">\n\t\t\t\t\t<label style='all: inherit;'>\n\t\t\t\t\t\t<select style='border: 0; margin-top: 3px; background: transparent;' (change)='changeLayout()' [(ngModel)]='currentLayoutId' [ngModelOptions]='{ standalone: true }' [disabled]='isPersistent'>\n\t\t\t\t\t\t\t<option selected disabled>Select layout</option>\n\t\t\t\t\t\t\t<option *ngFor='let layout of meta.availableLayouts' [ngValue]='layout.id'>{{layout.name}}</option>\n\t\t\t\t\t\t</select>\n\t\t\t\t\t\t<label>Layout</label
|
|
1776
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.11", type: MetaResource, selector: "vgip-meta-resource", inputs: { resource: "resource", model: "model", metaResourceServiceDelegated: "metaResourceServiceDelegated", theme: "theme", editMode: "editMode" }, outputs: { done: "done" }, viewQueries: [{ propertyName: "resourceForm", first: true, predicate: ["resourceForm"], descendants: true }], usesOnChanges: true, ngImport: i0, template: "<div *ngIf='generalError' class=\"Vlt-callout Vlt-callout--critical\" style='overflow: auto; margin: 20px;'>\n\t<i></i>\n\t<div class=\"Vlt-callout__content\">\n\t\t<p>{{generalError}}</p>\n\t</div>\n</div>\n<div *ngIf='!meta' class=\"Vlt-progress\">\n\t<div class=\"Vlt-progress__bar\" [ngClass]=\"{ loading: metaLoading }\" role=\"progressbar\" aria-valuemin=\"0\" aria-valuetext=\"Loading Metadata\" aria-valuemax=\"100\"></div>\n</div>\n<form [vgipMetaFormAutofocus]='!resource || !resource.externalId' *ngIf='meta && !generalError' #resourceForm=\"ngForm\" [name]='resource.resourceType' (ngSubmit)='submit(resourceForm)' novalidate>\n\t<div class='form-content' style='overflow: hidden;'>\n\t\t<div [ngClass]=\"{ 'Vlt-callout--dismissed': !formErrors }\" class=\"Vlt-callout Vlt-callout--banner Vlt-callout--critical\">\n\t\t\t<i></i>\n\t\t\t<div class=\"Vlt-callout__content\" style=\"margin-top: auto;\">\n\t\t\t\t<p>There is a problem with one or more fields</p>\n\t\t\t\t<small style='font-weight: 600; font-size: 1.0em;' *ngIf='formErrors'>{{ formErrors.message || formErrors }}</small>\n\t\t\t</div>\n\t\t\t<button type='button' class=\"Vlt-callout__dismiss\" (click)='clearFormErrors()' aria-label=\"Dismiss\"></button>\n\t\t</div>\n\t\t<div class=\"Vlt-card__content\" style='min-height: 40px;'>\n\t\t\t<vgip-meta-layout *ngIf='edit' [meta]='meta.layout' [resource]='model' [preview]='false' [integration]='meta.integration' [type]='resource.resourceType' theme='inherit'></vgip-meta-layout>\n\t\t\t<vgip-meta-layout *ngIf='!edit' [meta]='meta.layout' [resource]='model' [preview]='true' [integration]='meta.integration' [type]='resource.resourceType' theme='inherit'></vgip-meta-layout>\n\t\t</div>\n\t</div>\n\t<div class=\"Vlt-card__footer\">\n\t\t<button class=\"Vlt-btn Vlt-btn--secondary Vlt-btn--app Vlt-btn--outline\" type='button' aria-label='Cancel' (click)='close()'>\n\t\t\t{{ edit ? 'Cancel' : 'Close' }}\n\t\t</button>\n\t\t<button *ngIf='edit' class=\"Vlt-btn Vlt-btn--app\" [ngClass]=\"{ 'Vlt-btn--primary': isPersistent, 'Vlt-btn--secondary': !isPersistent }\" type='submit'>\n\t\t\t{{ (resource && resource.externalId) ? 'Update' : 'Create' }}\n\t\t</button>\n\t\t<button (click)='setEditMode()' *ngIf='!edit && isEditable' [disabled]='!isEditable' class=\"Vlt-btn Vlt-btn--app Vlt-btn--primary\" type='button' aria-label='Edit'>\n\t\t\tEdit\n\t\t</button>\n\t\t<div style='margin-right: 8px; flex: 1;'>\n\t\t\t<div *ngIf='meta.availableLayouts && meta.availableLayouts.length' class=\"Vlt-form__element Vlt-form__element--big\" style='padding: 0; margin: -8px -18px -8px 0;'>\n\t\t\t\t<div class=\"Vlt-select\">\n\t\t\t\t\t<label style='all: inherit;'>\n\t\t\t\t\t\t<select style='border: 0; margin-top: 3px; background: transparent;' (change)='changeLayout()' [(ngModel)]='currentLayoutId' [ngModelOptions]='{ standalone: true }' [disabled]='isPersistent'>\n\t\t\t\t\t\t\t<option selected disabled>Select layout</option>\n\t\t\t\t\t\t\t<option *ngFor='let layout of meta.availableLayouts' [ngValue]='layout.id'>{{layout.name}}</option>\n\t\t\t\t\t\t</select>\n\t\t\t\t\t\t<label>Layout</label> <!-- eslint-disable-line @angular-eslint/template/label-has-associated-control -->\n\t\t\t\t\t</label>\n\t\t\t\t</div>\n\t\t\t</div>\n\t\t</div>\n\t\t<div class=\"Vlt-dropdown resource-menu\" [ngClass]=\"{ 'Vlt-dropdown--expanded': resourceMenuVisible }\" style='margin-left: 2px;'>\n\t\t\t<div class=\"Vlt-dropdown__panel\" style='bottom: 40px; right: -4px; top: initial;'>\n\t\t\t\t<div class=\"Vlt-dropdown__panel__content\">\n\t\t\t\t\t<a href='#' class=\"Vlt-dropdown__link\" (click)='loadMetadata(currentLayoutId, true, $event)'>\n\t\t\t\t\t\t<div>\n\t\t\t\t\t\t\t<svg class='Vlt-icon Vlt-icon--smaller'><use xlink:href=\"volta/volta-icons.svg#Vlt-icon-refresh\"/></svg> Refresh metadata\n\t\t\t\t\t\t</div>\n\t\t\t\t\t</a>\n\t\t\t\t</div>\n\t\t\t</div>\n\t\t\t<div class=\"Vlt-dropdown__trigger\">\n\t\t\t\t<button type='button' (click)='openResourceMenu()' class=\"Vlt-btn Vlt-btn--link\" aria-label='Resource menu'>\n\t\t\t\t\t<svg class='Vlt-icon Vlt-icon--small' style='margin: 0;'><use xlink:href=\"volta/volta-icons.svg#Vlt-icon-more-v-negative\"/></svg>\n\t\t\t\t</button>\n\t\t\t</div>\n\t\t</div>\n\t</div>\n</form>\n<div class='busy-mask' [ngClass]=\"{ active: busy }\">\n\t<div style='height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center;'>\n\t\t<div class=\"Vlt-spinner\"></div>\n\t</div>\n</div>\n", styles: [":host{flex:1;display:flex;flex-direction:column;min-height:0;color:var(--vgip-meta-resource-color)}.Vlt-callout--banner{justify-content:initial;text-align:initial;overflow-y:auto}.Vlt-callout--banner.Vlt-callout--dismissed{padding:0}.Vlt-callout--banner:not(.Vlt-callout--dismissed){min-height:78px}.Vlt-spinner:before,.Vlt-spinner:after{border:6px solid #616266;border-color:#616266 transparent transparent}.Vlt-card__content{padding:8px 8px 8px 16px;display:flex;flex-direction:column;min-height:0;flex:1;overflow-y:scroll;overflow-x:hidden;background-color:var(--vgip-meta-resource-bg-color)}@media (hover: none){.Vlt-card__content{padding-right:16px}}.Vlt-card__content::-webkit-scrollbar{width:8px}.Vlt-card__content::-webkit-scrollbar-thumb{background-color:var(--vgip-meta-scrollbar-color);border:2px solid transparent;border-radius:6px;background-clip:content-box}.Vlt-card__footer{background:var(--vgip-meta-resource-bar-color);border-top:1px solid var(--vgip-meta-separator-color);display:flex;flex-direction:row;margin:16px -24px -24px;padding:8px 8px 8px 16px;box-shadow:0 0 4px #00000040;z-index:1}.Vlt-card__footer .Vlt-select select{color:var(--vgip-meta-input-color)}.Vlt-card__footer .Vlt-select select:disabled{background:initial;cursor:not-allowed}.Vlt-card__footer .Vlt-select:after{background-image:var(--vgip-meta-dropdown-icon)}.Vlt-card__footer .resource-menu .Vlt-icon:not(:hover){fill:var(--vgip-meta-input-label-color)}.Vlt-card__footer button.Vlt-btn--secondary{border:none;box-shadow:inset 0 0 0 1px var(--vgip-meta-button-border-color)}.Vlt-card__footer button.Vlt-btn--secondary:not([type=submit]){color:var(--vgip-meta-input-color)}.Vlt-card__footer button.Vlt-btn--secondary:hover{box-shadow:inset 0 0 0 1px var(--vgip-meta-input-accent-color)}.Vlt-card__footer button.Vlt-btn--secondary:hover[type=submit]{background-color:var(--vgip-meta-submit-hover-bg-color)}.Vlt-progress{margin:0;position:sticky}.Vlt-progress .Vlt-progress__bar{width:0;transition:width 5s}.Vlt-progress .Vlt-progress__bar.loading{width:100%}form{border-radius:6px;padding:24px;display:flex;flex-direction:column;min-height:0;flex:1}form .form-content{margin:-24px -24px -16px;padding-bottom:0;flex:1;display:flex;flex-direction:column}.busy-mask{position:absolute;inset:0;background:rgba(0,0,0,.32);opacity:1;z-index:898;display:none;border-bottom-left-radius:6px;border-bottom-right-radius:6px;margin:1px;cursor:progress}.busy-mask.active{display:block}\n"], dependencies: [{ kind: "directive", type: i1$2.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: i1$2.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i1$2.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i2.ɵNgNoValidate, selector: "form:not([ngNoForm]):not([ngNativeValidate])" }, { kind: "directive", type: i2.NgSelectOption, selector: "option", inputs: ["ngValue", "value"] }, { kind: "directive", type: i2.ɵNgSelectMultipleOption, selector: "option", inputs: ["ngValue", "value"] }, { kind: "directive", type: i2.SelectControlValueAccessor, selector: "select:not([multiple])[formControlName],select:not([multiple])[formControl],select:not([multiple])[ngModel]", inputs: ["compareWith"] }, { kind: "directive", type: i2.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i2.NgControlStatusGroup, selector: "[formGroupName],[formArrayName],[ngModelGroup],[formGroup],form:not([ngNoForm]),[ngForm]" }, { kind: "directive", type: i2.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { kind: "directive", type: i2.NgForm, selector: "form:not([ngNoForm]):not([formGroup]),ng-form,[ngForm]", inputs: ["ngFormOptions"], outputs: ["ngSubmit"], exportAs: ["ngForm"] }, { kind: "component", type: MetaLayout, selector: "vgip-meta-layout", inputs: ["meta", "resource", "integration", "type", "preview", "theme"] }, { kind: "directive", type: MetaAutofocusDirective, selector: "[vgipMetaFormAutofocus]", inputs: ["vgipMetaFormAutofocus"] }] }); }
|
|
1762
1777
|
}
|
|
1763
1778
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.11", ngImport: i0, type: MetaResource, decorators: [{
|
|
1764
1779
|
type: Component,
|
|
1765
|
-
args: [{ selector: 'vgip-meta-resource', template: "<div *ngIf='generalError' class=\"Vlt-callout Vlt-callout--critical\" style='overflow: auto; margin: 20px;'>\n\t<i></i>\n\t<div class=\"Vlt-callout__content\">\n\t\t<p>{{generalError}}</p>\n\t</div>\n</div>\n<div *ngIf='!meta' class=\"Vlt-progress\">\n\t<div class=\"Vlt-progress__bar\" [ngClass]=\"{ loading: metaLoading }\" role=\"progressbar\" aria-valuemin=\"0\" aria-valuetext=\"Loading Metadata\" aria-valuemax=\"100\"></div>\n</div>\n<form [vgipMetaFormAutofocus]='!resource || !resource.externalId' *ngIf='meta && !generalError' #resourceForm=\"ngForm\" [name]='resource.resourceType' (ngSubmit)='submit(resourceForm)' novalidate>\n\t<div class='form-content' style='overflow: hidden;'>\n\t\t<div [ngClass]=\"{ 'Vlt-callout--dismissed': !formErrors }\" class=\"Vlt-callout Vlt-callout--banner Vlt-callout--critical\">\n\t\t\t<i></i>\n\t\t\t<div class=\"Vlt-callout__content\" style=\"margin-top: auto;\">\n\t\t\t\t<p>There is a problem with one or more fields</p>\n\t\t\t\t<small style='font-weight: 600; font-size: 1.0em;' *ngIf='formErrors'>{{ formErrors.message || formErrors }}</small>\n\t\t\t</div>\n\t\t\t<button type='button' class=\"Vlt-callout__dismiss\" (click)='clearFormErrors()' aria-label=\"Dismiss\"></button>\n\t\t</div>\n\t\t<div class=\"Vlt-card__content\" style='min-height: 40px;'>\n\t\t\t<vgip-meta-layout *ngIf='edit' [meta]='meta.layout' [resource]='model' [preview]='false' [integration]='meta.integration' [type]='resource.resourceType' theme='inherit'></vgip-meta-layout>\n\t\t\t<vgip-meta-layout *ngIf='!edit' [meta]='meta.layout' [resource]='model' [preview]='true' [integration]='meta.integration' [type]='resource.resourceType' theme='inherit'></vgip-meta-layout>\n\t\t</div>\n\t</div>\n\t<div class=\"Vlt-card__footer\">\n\t\t<button class=\"Vlt-btn Vlt-btn--secondary Vlt-btn--app Vlt-btn--outline\" type='button' aria-label='Cancel' (click)='close()'>\n\t\t\t{{ edit ? 'Cancel' : 'Close' }}\n\t\t</button>\n\t\t<button *ngIf='edit' class=\"Vlt-btn Vlt-btn--app\" [ngClass]=\"{ 'Vlt-btn--primary': isPersistent, 'Vlt-btn--secondary': !isPersistent }\" type='submit'>\n\t\t\t{{ (resource && resource.externalId) ? 'Update' : 'Create' }}\n\t\t</button>\n\t\t<button (click)='setEditMode()' *ngIf='!edit && isEditable' [disabled]='!isEditable' class=\"Vlt-btn Vlt-btn--app Vlt-btn--primary\" type='button' aria-label='Edit'>\n\t\t\tEdit\n\t\t</button>\n\t\t<div style='margin-right: 8px; flex: 1;'>\n\t\t\t<div *ngIf='meta.availableLayouts && meta.availableLayouts.length' class=\"Vlt-form__element Vlt-form__element--big\" style='padding: 0; margin: -8px -18px -8px 0;'>\n\t\t\t\t<div class=\"Vlt-select\">\n\t\t\t\t\t<label style='all: inherit;'>\n\t\t\t\t\t\t<select style='border: 0; margin-top: 3px; background: transparent;' (change)='changeLayout()' [(ngModel)]='currentLayoutId' [ngModelOptions]='{ standalone: true }' [disabled]='isPersistent'>\n\t\t\t\t\t\t\t<option selected disabled>Select layout</option>\n\t\t\t\t\t\t\t<option *ngFor='let layout of meta.availableLayouts' [ngValue]='layout.id'>{{layout.name}}</option>\n\t\t\t\t\t\t</select>\n\t\t\t\t\t\t<label>Layout</label
|
|
1780
|
+
args: [{ selector: 'vgip-meta-resource', template: "<div *ngIf='generalError' class=\"Vlt-callout Vlt-callout--critical\" style='overflow: auto; margin: 20px;'>\n\t<i></i>\n\t<div class=\"Vlt-callout__content\">\n\t\t<p>{{generalError}}</p>\n\t</div>\n</div>\n<div *ngIf='!meta' class=\"Vlt-progress\">\n\t<div class=\"Vlt-progress__bar\" [ngClass]=\"{ loading: metaLoading }\" role=\"progressbar\" aria-valuemin=\"0\" aria-valuetext=\"Loading Metadata\" aria-valuemax=\"100\"></div>\n</div>\n<form [vgipMetaFormAutofocus]='!resource || !resource.externalId' *ngIf='meta && !generalError' #resourceForm=\"ngForm\" [name]='resource.resourceType' (ngSubmit)='submit(resourceForm)' novalidate>\n\t<div class='form-content' style='overflow: hidden;'>\n\t\t<div [ngClass]=\"{ 'Vlt-callout--dismissed': !formErrors }\" class=\"Vlt-callout Vlt-callout--banner Vlt-callout--critical\">\n\t\t\t<i></i>\n\t\t\t<div class=\"Vlt-callout__content\" style=\"margin-top: auto;\">\n\t\t\t\t<p>There is a problem with one or more fields</p>\n\t\t\t\t<small style='font-weight: 600; font-size: 1.0em;' *ngIf='formErrors'>{{ formErrors.message || formErrors }}</small>\n\t\t\t</div>\n\t\t\t<button type='button' class=\"Vlt-callout__dismiss\" (click)='clearFormErrors()' aria-label=\"Dismiss\"></button>\n\t\t</div>\n\t\t<div class=\"Vlt-card__content\" style='min-height: 40px;'>\n\t\t\t<vgip-meta-layout *ngIf='edit' [meta]='meta.layout' [resource]='model' [preview]='false' [integration]='meta.integration' [type]='resource.resourceType' theme='inherit'></vgip-meta-layout>\n\t\t\t<vgip-meta-layout *ngIf='!edit' [meta]='meta.layout' [resource]='model' [preview]='true' [integration]='meta.integration' [type]='resource.resourceType' theme='inherit'></vgip-meta-layout>\n\t\t</div>\n\t</div>\n\t<div class=\"Vlt-card__footer\">\n\t\t<button class=\"Vlt-btn Vlt-btn--secondary Vlt-btn--app Vlt-btn--outline\" type='button' aria-label='Cancel' (click)='close()'>\n\t\t\t{{ edit ? 'Cancel' : 'Close' }}\n\t\t</button>\n\t\t<button *ngIf='edit' class=\"Vlt-btn Vlt-btn--app\" [ngClass]=\"{ 'Vlt-btn--primary': isPersistent, 'Vlt-btn--secondary': !isPersistent }\" type='submit'>\n\t\t\t{{ (resource && resource.externalId) ? 'Update' : 'Create' }}\n\t\t</button>\n\t\t<button (click)='setEditMode()' *ngIf='!edit && isEditable' [disabled]='!isEditable' class=\"Vlt-btn Vlt-btn--app Vlt-btn--primary\" type='button' aria-label='Edit'>\n\t\t\tEdit\n\t\t</button>\n\t\t<div style='margin-right: 8px; flex: 1;'>\n\t\t\t<div *ngIf='meta.availableLayouts && meta.availableLayouts.length' class=\"Vlt-form__element Vlt-form__element--big\" style='padding: 0; margin: -8px -18px -8px 0;'>\n\t\t\t\t<div class=\"Vlt-select\">\n\t\t\t\t\t<label style='all: inherit;'>\n\t\t\t\t\t\t<select style='border: 0; margin-top: 3px; background: transparent;' (change)='changeLayout()' [(ngModel)]='currentLayoutId' [ngModelOptions]='{ standalone: true }' [disabled]='isPersistent'>\n\t\t\t\t\t\t\t<option selected disabled>Select layout</option>\n\t\t\t\t\t\t\t<option *ngFor='let layout of meta.availableLayouts' [ngValue]='layout.id'>{{layout.name}}</option>\n\t\t\t\t\t\t</select>\n\t\t\t\t\t\t<label>Layout</label> <!-- eslint-disable-line @angular-eslint/template/label-has-associated-control -->\n\t\t\t\t\t</label>\n\t\t\t\t</div>\n\t\t\t</div>\n\t\t</div>\n\t\t<div class=\"Vlt-dropdown resource-menu\" [ngClass]=\"{ 'Vlt-dropdown--expanded': resourceMenuVisible }\" style='margin-left: 2px;'>\n\t\t\t<div class=\"Vlt-dropdown__panel\" style='bottom: 40px; right: -4px; top: initial;'>\n\t\t\t\t<div class=\"Vlt-dropdown__panel__content\">\n\t\t\t\t\t<a href='#' class=\"Vlt-dropdown__link\" (click)='loadMetadata(currentLayoutId, true, $event)'>\n\t\t\t\t\t\t<div>\n\t\t\t\t\t\t\t<svg class='Vlt-icon Vlt-icon--smaller'><use xlink:href=\"volta/volta-icons.svg#Vlt-icon-refresh\"/></svg> Refresh metadata\n\t\t\t\t\t\t</div>\n\t\t\t\t\t</a>\n\t\t\t\t</div>\n\t\t\t</div>\n\t\t\t<div class=\"Vlt-dropdown__trigger\">\n\t\t\t\t<button type='button' (click)='openResourceMenu()' class=\"Vlt-btn Vlt-btn--link\" aria-label='Resource menu'>\n\t\t\t\t\t<svg class='Vlt-icon Vlt-icon--small' style='margin: 0;'><use xlink:href=\"volta/volta-icons.svg#Vlt-icon-more-v-negative\"/></svg>\n\t\t\t\t</button>\n\t\t\t</div>\n\t\t</div>\n\t</div>\n</form>\n<div class='busy-mask' [ngClass]=\"{ active: busy }\">\n\t<div style='height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center;'>\n\t\t<div class=\"Vlt-spinner\"></div>\n\t</div>\n</div>\n", styles: [":host{flex:1;display:flex;flex-direction:column;min-height:0;color:var(--vgip-meta-resource-color)}.Vlt-callout--banner{justify-content:initial;text-align:initial;overflow-y:auto}.Vlt-callout--banner.Vlt-callout--dismissed{padding:0}.Vlt-callout--banner:not(.Vlt-callout--dismissed){min-height:78px}.Vlt-spinner:before,.Vlt-spinner:after{border:6px solid #616266;border-color:#616266 transparent transparent}.Vlt-card__content{padding:8px 8px 8px 16px;display:flex;flex-direction:column;min-height:0;flex:1;overflow-y:scroll;overflow-x:hidden;background-color:var(--vgip-meta-resource-bg-color)}@media (hover: none){.Vlt-card__content{padding-right:16px}}.Vlt-card__content::-webkit-scrollbar{width:8px}.Vlt-card__content::-webkit-scrollbar-thumb{background-color:var(--vgip-meta-scrollbar-color);border:2px solid transparent;border-radius:6px;background-clip:content-box}.Vlt-card__footer{background:var(--vgip-meta-resource-bar-color);border-top:1px solid var(--vgip-meta-separator-color);display:flex;flex-direction:row;margin:16px -24px -24px;padding:8px 8px 8px 16px;box-shadow:0 0 4px #00000040;z-index:1}.Vlt-card__footer .Vlt-select select{color:var(--vgip-meta-input-color)}.Vlt-card__footer .Vlt-select select:disabled{background:initial;cursor:not-allowed}.Vlt-card__footer .Vlt-select:after{background-image:var(--vgip-meta-dropdown-icon)}.Vlt-card__footer .resource-menu .Vlt-icon:not(:hover){fill:var(--vgip-meta-input-label-color)}.Vlt-card__footer button.Vlt-btn--secondary{border:none;box-shadow:inset 0 0 0 1px var(--vgip-meta-button-border-color)}.Vlt-card__footer button.Vlt-btn--secondary:not([type=submit]){color:var(--vgip-meta-input-color)}.Vlt-card__footer button.Vlt-btn--secondary:hover{box-shadow:inset 0 0 0 1px var(--vgip-meta-input-accent-color)}.Vlt-card__footer button.Vlt-btn--secondary:hover[type=submit]{background-color:var(--vgip-meta-submit-hover-bg-color)}.Vlt-progress{margin:0;position:sticky}.Vlt-progress .Vlt-progress__bar{width:0;transition:width 5s}.Vlt-progress .Vlt-progress__bar.loading{width:100%}form{border-radius:6px;padding:24px;display:flex;flex-direction:column;min-height:0;flex:1}form .form-content{margin:-24px -24px -16px;padding-bottom:0;flex:1;display:flex;flex-direction:column}.busy-mask{position:absolute;inset:0;background:rgba(0,0,0,.32);opacity:1;z-index:898;display:none;border-bottom-left-radius:6px;border-bottom-right-radius:6px;margin:1px;cursor:progress}.busy-mask.active{display:block}\n"] }]
|
|
1766
1781
|
}], ctorParameters: function () { return [{ type: i0.ChangeDetectorRef }, { type: i0.ElementRef }, { type: MetaResourceService }, { type: MetaContextService }, { type: MetaMsgService }]; }, propDecorators: { resource: [{
|
|
1767
1782
|
type: Input
|
|
1768
1783
|
}], model: [{
|
|
@@ -1786,7 +1801,7 @@ class MetaRefDialog {
|
|
|
1786
1801
|
this.resources = {};
|
|
1787
1802
|
this.models = {};
|
|
1788
1803
|
this.services = {};
|
|
1789
|
-
this.keepOrder = (a
|
|
1804
|
+
this.keepOrder = (a) => a;
|
|
1790
1805
|
this.keyEventListener = (event) => {
|
|
1791
1806
|
if (event && event.key === 'Escape') {
|
|
1792
1807
|
document.removeEventListener('keydown', this.keyEventListener);
|
|
@@ -1877,16 +1892,24 @@ class MetaRefDialog {
|
|
|
1877
1892
|
this.modal.classList.remove('Vlt-modal_visible');
|
|
1878
1893
|
this.modal.classList.add('Vlt-modal--out');
|
|
1879
1894
|
}
|
|
1880
|
-
dismiss() {
|
|
1895
|
+
dismiss(ev) {
|
|
1881
1896
|
this.close();
|
|
1882
1897
|
this.onComplete(null);
|
|
1898
|
+
if (ev) {
|
|
1899
|
+
ev.preventDefault();
|
|
1900
|
+
ev.stopPropagation();
|
|
1901
|
+
return false;
|
|
1902
|
+
}
|
|
1883
1903
|
}
|
|
1884
1904
|
onResourceDone(result) {
|
|
1885
1905
|
this.close();
|
|
1886
1906
|
this.onComplete(result);
|
|
1887
1907
|
}
|
|
1888
|
-
selectResource(resource) {
|
|
1908
|
+
selectResource(ev, resource) {
|
|
1889
1909
|
this.currentResource = resource;
|
|
1910
|
+
ev.preventDefault();
|
|
1911
|
+
ev.stopPropagation();
|
|
1912
|
+
return false;
|
|
1890
1913
|
}
|
|
1891
1914
|
applyTheme() {
|
|
1892
1915
|
const metaTheme = this.theme === 'dark' ? metaDark : metaLight;
|
|
@@ -1895,11 +1918,11 @@ class MetaRefDialog {
|
|
|
1895
1918
|
}
|
|
1896
1919
|
}
|
|
1897
1920
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.11", ngImport: i0, type: MetaRefDialog, deps: [{ token: i0.ElementRef }], target: i0.ɵɵFactoryTarget.Component }); }
|
|
1898
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.11", type: MetaRefDialog, selector: "ng-component", ngImport: i0, template: "<div class='Vlt-modal Vlt-modal--large'>\n <div class=\"Vlt-modal__panel\">\n <div class=\"Vlt-tabs\">\n <div class='Vlt-tabs__header--background'>\n <div class=\"Vlt-tabs__header Vlt-tabs__header--shadow\">\n <svg class=\"Vlt-icon\" [ngStyle]=\"{fill: integrationIcon === 'Brand-icon-vonage' ? 'var(--vgip-meta-input-color)' : ''}\"><use attr.xlink:href=\"volta/volta-brand-icons.svg#{{integrationIcon}}\" /></svg>\n <
|
|
1921
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.11", type: MetaRefDialog, selector: "ng-component", ngImport: i0, template: "<div class='Vlt-modal Vlt-modal--large'>\n <div class=\"Vlt-modal__panel\">\n <div class=\"Vlt-tabs\">\n <div class='Vlt-tabs__header--background'>\n <div class=\"Vlt-tabs__header Vlt-tabs__header--shadow\">\n <svg class=\"Vlt-icon\" [ngStyle]=\"{fill: integrationIcon === 'Brand-icon-vonage' ? 'var(--vgip-meta-input-color)' : ''}\"><use attr.xlink:href=\"volta/volta-brand-icons.svg#{{integrationIcon}}\" /></svg>\n <a href='#' *ngFor='let r of resources | keyvalue: keepOrder' (click)='selectResource($event, r.key)' class=\"Vlt-tabs__link\" [ngClass]=\"{ 'Vlt-tabs__link_active': currentResource === r.key}\">\n {{r.key}}\n </a>\n <a href='#' class=\"Vlt-modal__dismiss\" (click)=\"dismiss($event)\">\n <svg class=\"Vlt-icon\"><use xlink:href=\"volta/volta-icons.svg#Vlt-icon-cross\" /></svg>\n </a>\n </div>\n </div>\n <div class=\"Vlt-tabs__content\" style='min-height: 90px;'>\n <ng-container *ngFor='let r of resources | keyvalue: keepOrder'>\n <div *ngIf='currentResource === r.key' class=\"Vlt-tabs__panel Vlt-tabs__panel_active\">\n <vgip-meta-resource [resource]='r.value' [model]='models[r.key]' [metaResourceServiceDelegated]='metaResource' (done)='onResourceDone($event)' theme='inherit' [attr.data-theme]='theme'></vgip-meta-resource>\n </div>\n </ng-container>\n </div>\n </div>\n </div>\n</div>\n", styles: [".Vlt-modal_visible{background:var(--vgip-meta-overlay-background)}.Vlt-modal__panel{padding:0;background:var(--vgip-meta-resource-bg-color);overflow:hidden}@media only screen and (max-width: 575px){.Vlt-modal__panel{height:100%;width:100%;max-height:none;border-bottom-left-radius:0;border-bottom-right-radius:0;margin:10px 6px 0}.Vlt-modal__panel ::ng-deep .busy-mask{min-height:calc(100vh - 58px)}}.Vlt-modal__panel .Vlt-tabs__header--background{border-top-left-radius:5px;border-top-right-radius:5px}.Vlt-modal__panel .Vlt-tabs__header{background:var(--vgip-meta-resource-bar-color);padding-left:52px;padding-right:45px;border-bottom:0;flex-wrap:wrap;min-height:52px;max-height:52px;align-items:center}.Vlt-modal__panel .Vlt-tabs__header>.Vlt-icon{position:absolute;left:14px}.Vlt-modal__panel .Vlt-tabs__header h5{margin-bottom:0;font-weight:initial}.Vlt-modal__panel .Vlt-tabs__header .Vlt-tabs__link{padding-top:4px;padding-bottom:2px;color:var(--vgip-meta-input-label-color);text-transform:capitalize}.Vlt-modal__panel .Vlt-tabs__header .Vlt-tabs__link_active{color:var(--vgip-meta-input-accent-color)}.Vlt-modal__panel .Vlt-tabs__header .Vlt-tabs__link_active:after{background:var(--vgip-meta-input-accent-color)}.Vlt-modal__panel .Vlt-tabs__header .Vlt-modal__dismiss{background-image:none;width:18px;height:18px;opacity:initial}.Vlt-modal__panel .Vlt-tabs__header .Vlt-modal__dismiss svg{width:16px;height:16px;fill:var(--vgip-meta-input-label-color)}.Vlt-modal__panel .Vlt-tabs__header .Vlt-modal__dismiss:hover svg{fill:var(--vgip-meta-input-accent-color)}.Vlt-modal__panel .Vlt-tabs__header::-webkit-scrollbar{width:8px}.Vlt-modal__panel .Vlt-tabs__header::-webkit-scrollbar-thumb{background-color:var(--vgip-meta-scrollbar-color);border:2px solid transparent;border-radius:6px;background-clip:content-box}.Vlt-modal__panel .Vlt-tabs__content{margin-top:0}.Vlt-modal__panel .Vlt-tabs__content .Vlt-tabs__link{font-size:1.8rem}.Vlt-modal__panel .Vlt-callout--banner{justify-content:initial;text-align:initial;overflow-y:auto}.Vlt-modal__panel .Vlt-callout--banner.Vlt-callout--dismissed{padding:0}.Vlt-modal__panel .Vlt-callout--banner:not(.Vlt-callout--dismissed){min-height:78px}.Vlt-modal__panel .Vlt-modal__cancel{z-index:899}.Vlt-modal__panel .Vlt-modal__dismiss{right:16px;top:14px}.Vlt-modal__panel .Vlt-card__footer button{margin-top:0;margin-bottom:0}.Vlt-modal__panel .Vlt-select select:disabled{background:initial;cursor:not-allowed}.Vlt-modal__panel ::ng-deep .form-content{min-height:0;max-height:calc(95vh - 172px)}@media only screen and (max-width: 575px){.Vlt-modal__panel ::ng-deep .form-content{min-height:calc(100vh - 113px)}}.resource-menu button{margin:0 -10px}.resource-menu button:not(:hover) .Vlt-icon{color:#616266;fill:#616266}.busy-mask{position:absolute;inset:0;background:rgba(0,0,0,.32);opacity:1;z-index:898;display:none;border-bottom-left-radius:6px;border-bottom-right-radius:6px;margin:1px;cursor:progress}.busy-mask.active{display:block}\n"], dependencies: [{ kind: "directive", type: i1$2.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: i1$2.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i1$2.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i1$2.NgStyle, selector: "[ngStyle]", inputs: ["ngStyle"] }, { kind: "component", type: MetaResource, selector: "vgip-meta-resource", inputs: ["resource", "model", "metaResourceServiceDelegated", "theme", "editMode"], outputs: ["done"] }, { kind: "pipe", type: i1$2.KeyValuePipe, name: "keyvalue" }] }); }
|
|
1899
1922
|
}
|
|
1900
1923
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.11", ngImport: i0, type: MetaRefDialog, decorators: [{
|
|
1901
1924
|
type: Component,
|
|
1902
|
-
args: [{ template: "<div class='Vlt-modal Vlt-modal--large'>\n <div class=\"Vlt-modal__panel\">\n <div class=\"Vlt-tabs\">\n <div class='Vlt-tabs__header--background'>\n <div class=\"Vlt-tabs__header Vlt-tabs__header--shadow\">\n <svg class=\"Vlt-icon\" [ngStyle]=\"{fill: integrationIcon === 'Brand-icon-vonage' ? 'var(--vgip-meta-input-color)' : ''}\"><use attr.xlink:href=\"volta/volta-brand-icons.svg#{{integrationIcon}}\" /></svg>\n <
|
|
1925
|
+
args: [{ template: "<div class='Vlt-modal Vlt-modal--large'>\n <div class=\"Vlt-modal__panel\">\n <div class=\"Vlt-tabs\">\n <div class='Vlt-tabs__header--background'>\n <div class=\"Vlt-tabs__header Vlt-tabs__header--shadow\">\n <svg class=\"Vlt-icon\" [ngStyle]=\"{fill: integrationIcon === 'Brand-icon-vonage' ? 'var(--vgip-meta-input-color)' : ''}\"><use attr.xlink:href=\"volta/volta-brand-icons.svg#{{integrationIcon}}\" /></svg>\n <a href='#' *ngFor='let r of resources | keyvalue: keepOrder' (click)='selectResource($event, r.key)' class=\"Vlt-tabs__link\" [ngClass]=\"{ 'Vlt-tabs__link_active': currentResource === r.key}\">\n {{r.key}}\n </a>\n <a href='#' class=\"Vlt-modal__dismiss\" (click)=\"dismiss($event)\">\n <svg class=\"Vlt-icon\"><use xlink:href=\"volta/volta-icons.svg#Vlt-icon-cross\" /></svg>\n </a>\n </div>\n </div>\n <div class=\"Vlt-tabs__content\" style='min-height: 90px;'>\n <ng-container *ngFor='let r of resources | keyvalue: keepOrder'>\n <div *ngIf='currentResource === r.key' class=\"Vlt-tabs__panel Vlt-tabs__panel_active\">\n <vgip-meta-resource [resource]='r.value' [model]='models[r.key]' [metaResourceServiceDelegated]='metaResource' (done)='onResourceDone($event)' theme='inherit' [attr.data-theme]='theme'></vgip-meta-resource>\n </div>\n </ng-container>\n </div>\n </div>\n </div>\n</div>\n", styles: [".Vlt-modal_visible{background:var(--vgip-meta-overlay-background)}.Vlt-modal__panel{padding:0;background:var(--vgip-meta-resource-bg-color);overflow:hidden}@media only screen and (max-width: 575px){.Vlt-modal__panel{height:100%;width:100%;max-height:none;border-bottom-left-radius:0;border-bottom-right-radius:0;margin:10px 6px 0}.Vlt-modal__panel ::ng-deep .busy-mask{min-height:calc(100vh - 58px)}}.Vlt-modal__panel .Vlt-tabs__header--background{border-top-left-radius:5px;border-top-right-radius:5px}.Vlt-modal__panel .Vlt-tabs__header{background:var(--vgip-meta-resource-bar-color);padding-left:52px;padding-right:45px;border-bottom:0;flex-wrap:wrap;min-height:52px;max-height:52px;align-items:center}.Vlt-modal__panel .Vlt-tabs__header>.Vlt-icon{position:absolute;left:14px}.Vlt-modal__panel .Vlt-tabs__header h5{margin-bottom:0;font-weight:initial}.Vlt-modal__panel .Vlt-tabs__header .Vlt-tabs__link{padding-top:4px;padding-bottom:2px;color:var(--vgip-meta-input-label-color);text-transform:capitalize}.Vlt-modal__panel .Vlt-tabs__header .Vlt-tabs__link_active{color:var(--vgip-meta-input-accent-color)}.Vlt-modal__panel .Vlt-tabs__header .Vlt-tabs__link_active:after{background:var(--vgip-meta-input-accent-color)}.Vlt-modal__panel .Vlt-tabs__header .Vlt-modal__dismiss{background-image:none;width:18px;height:18px;opacity:initial}.Vlt-modal__panel .Vlt-tabs__header .Vlt-modal__dismiss svg{width:16px;height:16px;fill:var(--vgip-meta-input-label-color)}.Vlt-modal__panel .Vlt-tabs__header .Vlt-modal__dismiss:hover svg{fill:var(--vgip-meta-input-accent-color)}.Vlt-modal__panel .Vlt-tabs__header::-webkit-scrollbar{width:8px}.Vlt-modal__panel .Vlt-tabs__header::-webkit-scrollbar-thumb{background-color:var(--vgip-meta-scrollbar-color);border:2px solid transparent;border-radius:6px;background-clip:content-box}.Vlt-modal__panel .Vlt-tabs__content{margin-top:0}.Vlt-modal__panel .Vlt-tabs__content .Vlt-tabs__link{font-size:1.8rem}.Vlt-modal__panel .Vlt-callout--banner{justify-content:initial;text-align:initial;overflow-y:auto}.Vlt-modal__panel .Vlt-callout--banner.Vlt-callout--dismissed{padding:0}.Vlt-modal__panel .Vlt-callout--banner:not(.Vlt-callout--dismissed){min-height:78px}.Vlt-modal__panel .Vlt-modal__cancel{z-index:899}.Vlt-modal__panel .Vlt-modal__dismiss{right:16px;top:14px}.Vlt-modal__panel .Vlt-card__footer button{margin-top:0;margin-bottom:0}.Vlt-modal__panel .Vlt-select select:disabled{background:initial;cursor:not-allowed}.Vlt-modal__panel ::ng-deep .form-content{min-height:0;max-height:calc(95vh - 172px)}@media only screen and (max-width: 575px){.Vlt-modal__panel ::ng-deep .form-content{min-height:calc(100vh - 113px)}}.resource-menu button{margin:0 -10px}.resource-menu button:not(:hover) .Vlt-icon{color:#616266;fill:#616266}.busy-mask{position:absolute;inset:0;background:rgba(0,0,0,.32);opacity:1;z-index:898;display:none;border-bottom-left-radius:6px;border-bottom-right-radius:6px;margin:1px;cursor:progress}.busy-mask.active{display:block}\n"] }]
|
|
1903
1926
|
}], ctorParameters: function () { return [{ type: i0.ElementRef }]; } });
|
|
1904
1927
|
|
|
1905
1928
|
var index = /*#__PURE__*/Object.freeze({
|
|
@@ -1908,4 +1931,4 @@ var index = /*#__PURE__*/Object.freeze({
|
|
|
1908
1931
|
});
|
|
1909
1932
|
|
|
1910
1933
|
export { MetaRefDialog as M, MetaResourceService as a, MetaReferenceService as b, MetaLayout as c, MetaResource as d, MetaAutofocusDirective as e, MetaMsgService as f, MetaHttpClient as g, metaNormalizer as m };
|
|
1911
|
-
//# sourceMappingURL=vgip-meta-ui-index-
|
|
1934
|
+
//# sourceMappingURL=vgip-meta-ui-index-24fe289e.mjs.map
|