@vgip/meta-ui 1.7.5 → 1.7.6
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/fieldAbstract.mjs +1 -1
- package/esm2022/lib/fieldBoolean/index.mjs +4 -6
- package/esm2022/lib/fieldComposite/index.mjs +4 -8
- package/esm2022/lib/fieldList/index.mjs +2 -2
- package/esm2022/lib/fieldRadio/index.mjs +4 -6
- package/esm2022/lib/fieldReference/index.mjs +15 -13
- package/esm2022/lib/fieldRichtext/index.mjs +4 -6
- package/esm2022/lib/fieldSelect/index.mjs +19 -4
- package/esm2022/lib/fieldText/index.mjs +25 -16
- package/esm2022/lib/layout/index.mjs +5 -4
- package/esm2022/lib/metaField/index.mjs +5 -2
- package/esm2022/lib/refDialog/index.mjs +1 -1
- package/esm2022/lib/resource/index.mjs +20 -4
- package/esm2022/lib/services/metaReference/index.mjs +8 -3
- package/esm2022/lib/services/metaResource/index.mjs +4 -4
- package/fesm2022/vgip-meta-ui-fieldAbstract-9955be39.mjs.map +1 -1
- package/fesm2022/vgip-meta-ui-index-1799a060.mjs +864 -0
- package/fesm2022/vgip-meta-ui-index-1799a060.mjs.map +1 -0
- package/fesm2022/{vgip-meta-ui-index-9fd8e1b0.mjs → vgip-meta-ui-index-45a741f4.mjs} +5 -9
- package/fesm2022/vgip-meta-ui-index-45a741f4.mjs.map +1 -0
- package/fesm2022/{vgip-meta-ui-index-24fe289e.mjs → vgip-meta-ui-index-46c7f4e4.mjs} +36 -16
- package/fesm2022/vgip-meta-ui-index-46c7f4e4.mjs.map +1 -0
- package/fesm2022/{vgip-meta-ui-index-bc945c3c.mjs → vgip-meta-ui-index-6f647ae9.mjs} +21 -6
- package/fesm2022/vgip-meta-ui-index-6f647ae9.mjs.map +1 -0
- package/fesm2022/{vgip-meta-ui-index-c39ea0ec.mjs → vgip-meta-ui-index-8b2ba164.mjs} +4 -6
- package/fesm2022/vgip-meta-ui-index-8b2ba164.mjs.map +1 -0
- package/fesm2022/{vgip-meta-ui-index-c5756fbe.mjs → vgip-meta-ui-index-aa21fd6a.mjs} +13 -10
- package/fesm2022/vgip-meta-ui-index-aa21fd6a.mjs.map +1 -0
- package/fesm2022/{vgip-meta-ui-index-b0a76073.mjs → vgip-meta-ui-index-b3099377.mjs} +4 -6
- package/fesm2022/vgip-meta-ui-index-b3099377.mjs.map +1 -0
- package/fesm2022/vgip-meta-ui-index-ea3cad77.mjs +77 -0
- package/fesm2022/vgip-meta-ui-index-ea3cad77.mjs.map +1 -0
- package/fesm2022/{vgip-meta-ui-index-9c99e9b0.mjs → vgip-meta-ui-index-ebaddb9b.mjs} +3 -3
- package/fesm2022/{vgip-meta-ui-index-9c99e9b0.mjs.map → vgip-meta-ui-index-ebaddb9b.mjs.map} +1 -1
- package/fesm2022/{vgip-meta-ui-index-5871a6f2.mjs → vgip-meta-ui-index-ee4a5a52.mjs} +4 -6
- package/fesm2022/vgip-meta-ui-index-ee4a5a52.mjs.map +1 -0
- package/fesm2022/vgip-meta-ui.mjs +12 -12
- package/lib/fieldAbstract.d.ts +1 -0
- package/lib/fieldBoolean/index.d.ts +1 -2
- package/lib/fieldComposite/index.d.ts +1 -3
- package/lib/fieldRadio/index.d.ts +1 -2
- package/lib/fieldRichtext/index.d.ts +1 -2
- package/lib/fieldSelect/index.d.ts +0 -1
- package/lib/fieldText/index.d.ts +2 -2
- package/lib/layout/index.d.ts +1 -0
- package/lib/metaField/index.d.ts +2 -1
- package/lib/resource/index.d.ts +5 -1
- package/lib/services/metaReference/index.d.ts +1 -1
- package/package.json +1 -1
- package/fesm2022/vgip-meta-ui-index-24fe289e.mjs.map +0 -1
- package/fesm2022/vgip-meta-ui-index-5871a6f2.mjs.map +0 -1
- package/fesm2022/vgip-meta-ui-index-9e4137fe.mjs +0 -68
- package/fesm2022/vgip-meta-ui-index-9e4137fe.mjs.map +0 -1
- package/fesm2022/vgip-meta-ui-index-9fd8e1b0.mjs.map +0 -1
- package/fesm2022/vgip-meta-ui-index-a3a43cf7.mjs +0 -862
- package/fesm2022/vgip-meta-ui-index-a3a43cf7.mjs.map +0 -1
- package/fesm2022/vgip-meta-ui-index-b0a76073.mjs.map +0 -1
- package/fesm2022/vgip-meta-ui-index-bc945c3c.mjs.map +0 -1
- package/fesm2022/vgip-meta-ui-index-c39ea0ec.mjs.map +0 -1
- package/fesm2022/vgip-meta-ui-index-c5756fbe.mjs.map +0 -1
package/fesm2022/{vgip-meta-ui-index-9c99e9b0.mjs.map → vgip-meta-ui-index-ebaddb9b.mjs.map}
RENAMED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"vgip-meta-ui-index-
|
|
1
|
+
{"version":3,"file":"vgip-meta-ui-index-ebaddb9b.mjs","sources":["../../../projects/meta-ui/src/lib/fieldList/index.ts","../../../projects/meta-ui/src/lib/fieldList/view.html"],"sourcesContent":["import { Component, OnInit } from '@angular/core';\nimport { FieldAbstract } from '../fieldAbstract';\nimport { ControlContainer, NgForm } from '@angular/forms';\n\n@Component({\n templateUrl: './view.html',\n styleUrls: ['./style.scss'],\n viewProviders: [{ provide: ControlContainer, useExisting: NgForm }]\n})\nexport class FieldList extends FieldAbstract implements OnInit {\n items: Array<any> = [];\n value: any;\n\n get list() {\n return this.meta.list || this.meta.reference;\n }\n\n get cloneList() {\n return JSON.parse(JSON.stringify(this.list));\n }\n\n ngOnInit() {\n this.scope += `${this.meta.name}_`;\n const origValue = this.parent[this.meta.name];\n Object.defineProperty(this.parent, this.meta.name, {\n set: (value) => {\n this.model = [];\n if (value && value.length) {\n for (const i of value) {\n if (this.model.indexOf(i) === -1) {\n this.model.push(i);\n }\n }\n }\n this.value = this.model;\n this.meta.$optional = this.isOptional;\n },\n get: () => this.value,\n enumerable: true,\n configurable: true\n });\n if (origValue) {\n this.parent[this.meta.name] = origValue;\n }\n if (!this.model && this.validations.min) {\n for (let i = 0; i < this.validations.min; i++) {\n this.add();\n }\n }\n }\n\n add() {\n if (!this.model) {\n this.model = [];\n }\n if (!this.validations.max || (this.validations.max > this.model.length)) {\n this.model.push({});\n this.value = this.model;\n }\n }\n\n remove(itemIndex) {\n this.model.splice(itemIndex, 1);\n this.value = this.model;\n }\n}\n","<div *ngIf='true' class=\"Vlt-form__element\" [ngClass]=\"{ 'Vlt-form__element--error': (f | metaModel)._parent.submitted && f.invalid }\">\n <label class=\"Vlt-label\">{{meta.label || meta.name}} ({{(model || []).length}})<span *ngIf='validations.required' class='Vlt-red'>*</span></label> <!-- eslint-disable-line @angular-eslint/template/label-has-associated-control -->\n <small style='margin-bottom: 4px;' *ngIf='meta.hint' class=\"Vlt-form__element__hint\">{{meta.hint}}</small>\n <input class='model' type='hidden' [required]='validations.required' [(ngModel)]='model' #f='ngModel' [name]='name' />\n <ng-container *ngIf='model'>\n <div *ngFor='let item of model; let i = index;' style='display: flex; border-bottom: 1px solid var(--vgip-meta-separator-color);'>\n <vgip-meta-field style='flex: 1;' [index]='i' [scope]='scope' [meta]='cloneList' [parent]='item' [integrationCode]='integrationCode' [resourceType]='meta.resourceType || resourceType' theme='inherit' [preview]='preview'></vgip-meta-field>\n <vgip-meta-field *ngIf='meta.selectable' [meta]=\"{ name: meta.selectable.name, label: ' ', type: 'radio', options: [ { id: meta.selectable.value, label: meta.selectable.label } ] }\" [parent]='item' [integrationCode]='integrationCode' theme='inherit' style='margin-left: 12px; margin-top: 12px; margin-right: -12px;'></vgip-meta-field>\n <div *ngIf='!preview' style='padding-left: 12px; margin-top: 3px;'>\n <button type='button' (click)='remove(i)' class=\"Vlt-btn Vlt-btn--link item-remove-button\" [disabled]='model.length === (validations.min || 0)' aria-label='Remove'>\n <svg><use xlink:href=\"volta/volta-icons.svg#Vlt-icon-bin\"/></svg>\n </button>\n </div>\n </div>\n </ng-container>\n <button *ngIf='!preview && (!validations.max || !model || model.length < validations.max)' style='width: 100%;' type='button' (click)='add()' class=\"Vlt-btn Vlt-btn--small Vlt-btn--tertiary Vlt-btn--app Vlt-btn--no-focus item-add-button\" [disabled]='validations.max && model && model.length === validations.max'>\n <svg><use xlink:href=\"volta/volta-icons.svg#Vlt-icon-plus\"/></svg>{{list.label}}\n </button>\n <small *ngIf='(f | metaModel)._parent.submitted && f.invalid' class=\"Vlt-form__element__error\">\n <span *ngIf=\"f.errors.required\">Required</span>\n <span *ngIf=\"f.errors.maxlength\">Length can not exceed {{validations.maxlength}} characters</span>\n <span *ngIf=\"f.errors.custom\">{{f.errors.custom}} </span>\n </small>\n <small *ngIf='meta.helpText' class=\"Vlt-form__element__hint\">{{meta.helpText}}</small>\n</div>\n"],"names":["i3.MetaField","i4.MetaModelPipe"],"mappings":";;;;;;;;;;;AASM,MAAO,SAAU,SAAQ,aAAa,CAAA;AAL5C,IAAA,WAAA,GAAA;;QAME,IAAK,CAAA,KAAA,GAAe,EAAE,CAAC;AAuDxB,KAAA;AApDC,IAAA,IAAI,IAAI,GAAA;QACN,OAAO,IAAI,CAAC,IAAI,CAAC,IAAI,IAAI,IAAI,CAAC,IAAI,CAAC,SAAS,CAAC;KAC9C;AAED,IAAA,IAAI,SAAS,GAAA;AACX,QAAA,OAAO,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,SAAS,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,CAAC;KAC9C;IAED,QAAQ,GAAA;QACN,IAAI,CAAC,KAAK,IAAI,CAAG,EAAA,IAAI,CAAC,IAAI,CAAC,IAAI,CAAA,CAAA,CAAG,CAAC;AACnC,QAAA,MAAM,SAAS,GAAG,IAAI,CAAC,MAAM,CAAC,IAAI,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;AAC9C,QAAA,MAAM,CAAC,cAAc,CAAC,IAAI,CAAC,MAAM,EAAE,IAAI,CAAC,IAAI,CAAC,IAAI,EAAE;AACjD,YAAA,GAAG,EAAE,CAAC,KAAK,KAAI;AACb,gBAAA,IAAI,CAAC,KAAK,GAAG,EAAE,CAAC;AAChB,gBAAA,IAAI,KAAK,IAAI,KAAK,CAAC,MAAM,EAAE;AACzB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 from '@angular/forms';
|
|
4
4
|
import { ControlContainer, NgForm } from '@angular/forms';
|
|
5
5
|
import { F as FieldAbstract } from './vgip-meta-ui-fieldAbstract-9955be39.mjs';
|
|
@@ -82,14 +82,12 @@ class FieldRadio extends FieldAbstract {
|
|
|
82
82
|
}
|
|
83
83
|
}
|
|
84
84
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.11", ngImport: i0, type: FieldRadio, deps: null, target: i0.ɵɵFactoryTarget.Component }); }
|
|
85
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.11", type: FieldRadio, selector: "ng-component",
|
|
85
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.11", type: FieldRadio, selector: "ng-component", usesInheritance: true, ngImport: i0, template: "<div class='vgip-meta-field-preview' *ngIf='preview && model'>\n <div class='vgip-meta-field-label' [title]='meta.label || meta.name'>{{meta.label || meta.name}}</div>\n <div class='vgip-meta-field-value __gu'>\n {{ model.label || model }}\n </div>\n</div>\n<div *ngIf='!preview' class=\"Vlt-form__element\" [ngClass]=\"{ 'Vlt-form__element--error': f && f.invalid && ((f | metaModel)._parent.submitted || (f | metaModel ).touched) }\">\n\t<label class=\"Vlt-label\">{{meta.label || meta.name}}<span *ngIf='validations.required' class='Vlt-red'>*</span></label> <!-- eslint-disable-line @angular-eslint/template/label-has-associated-control -->\n\t<input class='model' type='hidden' [required]='validations.required' [(ngModel)]='model' #f='ngModel' [name]='name' />\n\t<fieldset *ngFor='let option of options' class=\"Vlt-radio Vlt-radio--inline\">\n\t\t<label style='cursor: pointer;'>\n\t\t\t<span class=\"Vlt-radio__button\">\n <input class='main' (change)='onOptionChange(option)' type=\"radio\" [checked]='option === model' [value]='option' [name]='name' (focus)='onActivated($event)' (blur)='onBlur($event)'/>\n <span class=\"Vlt-radio__icon\"></span>\n </span>\n\t\t\t<span style='white-space: nowrap;'>{{option.label || option}}</span>\n\t\t</label>\n\t</fieldset>\n\t<small *ngIf='f && f.invalid && ((f | metaModel)._parent.submitted || (f | metaModel ).touched)' class=\"Vlt-form__element__error\">\n\t\t<span *ngIf=\"f.errors.required\">Required. </span>\n\t\t<span *ngIf=\"f.errors.custom\">{{f.errors.custom}} </span>\n\t</small>\n\t<small *ngIf='meta.hint' class=\"Vlt-form__element__hint\">{{meta.hint}}</small>\n</div>\n", styles: [".Vlt-form__element{padding-bottom:4px}.Vlt-form__element__hint,.Vlt-form__element__error{margin-top:4px}.Vlt-radio--inline{margin-bottom:4px}.Vlt-radio .Vlt-radio__icon{border-color:var(--vgip-meta-input-border-color)}.Vlt-radio:hover .Vlt-radio__icon{border-color:var(--vgip-meta-input-active-border-color)}.Vlt-radio input:checked~.Vlt-radio__icon{border-color:var(--vgip-meta-input-active-border-color)}.Vlt-radio input:checked~.Vlt-radio__icon:after{background:var(--vgip-meta-input-active-border-color)}.Vlt-radio input:focus+.Vlt-radio__icon,.Vlt-radio input:active+.Vlt-radio__icon{background:var(--vgip-meta-input-bg-color)}\n"], dependencies: [{ kind: "directive", type: i1.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: i1.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i2.DefaultValueAccessor, selector: "input:not([type=checkbox])[formControlName],textarea[formControlName],input:not([type=checkbox])[formControl],textarea[formControl],input:not([type=checkbox])[ngModel],textarea[ngModel],[ngDefaultControl]" }, { kind: "directive", type: i2.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i2.RequiredValidator, selector: ":not([type=checkbox])[required][formControlName],:not([type=checkbox])[required][formControl],:not([type=checkbox])[required][ngModel]", inputs: ["required"] }, { kind: "directive", type: i2.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { kind: "pipe", type: MetaModelPipe, name: "metaModel" }], viewProviders: [{ provide: ControlContainer, useExisting: NgForm }] }); }
|
|
86
86
|
}
|
|
87
87
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.11", ngImport: i0, type: FieldRadio, decorators: [{
|
|
88
88
|
type: Component,
|
|
89
89
|
args: [{ viewProviders: [{ provide: ControlContainer, useExisting: NgForm }], template: "<div class='vgip-meta-field-preview' *ngIf='preview && model'>\n <div class='vgip-meta-field-label' [title]='meta.label || meta.name'>{{meta.label || meta.name}}</div>\n <div class='vgip-meta-field-value __gu'>\n {{ model.label || model }}\n </div>\n</div>\n<div *ngIf='!preview' class=\"Vlt-form__element\" [ngClass]=\"{ 'Vlt-form__element--error': f && f.invalid && ((f | metaModel)._parent.submitted || (f | metaModel ).touched) }\">\n\t<label class=\"Vlt-label\">{{meta.label || meta.name}}<span *ngIf='validations.required' class='Vlt-red'>*</span></label> <!-- eslint-disable-line @angular-eslint/template/label-has-associated-control -->\n\t<input class='model' type='hidden' [required]='validations.required' [(ngModel)]='model' #f='ngModel' [name]='name' />\n\t<fieldset *ngFor='let option of options' class=\"Vlt-radio Vlt-radio--inline\">\n\t\t<label style='cursor: pointer;'>\n\t\t\t<span class=\"Vlt-radio__button\">\n <input class='main' (change)='onOptionChange(option)' type=\"radio\" [checked]='option === model' [value]='option' [name]='name' (focus)='onActivated($event)' (blur)='onBlur($event)'/>\n <span class=\"Vlt-radio__icon\"></span>\n </span>\n\t\t\t<span style='white-space: nowrap;'>{{option.label || option}}</span>\n\t\t</label>\n\t</fieldset>\n\t<small *ngIf='f && f.invalid && ((f | metaModel)._parent.submitted || (f | metaModel ).touched)' class=\"Vlt-form__element__error\">\n\t\t<span *ngIf=\"f.errors.required\">Required. </span>\n\t\t<span *ngIf=\"f.errors.custom\">{{f.errors.custom}} </span>\n\t</small>\n\t<small *ngIf='meta.hint' class=\"Vlt-form__element__hint\">{{meta.hint}}</small>\n</div>\n", styles: [".Vlt-form__element{padding-bottom:4px}.Vlt-form__element__hint,.Vlt-form__element__error{margin-top:4px}.Vlt-radio--inline{margin-bottom:4px}.Vlt-radio .Vlt-radio__icon{border-color:var(--vgip-meta-input-border-color)}.Vlt-radio:hover .Vlt-radio__icon{border-color:var(--vgip-meta-input-active-border-color)}.Vlt-radio input:checked~.Vlt-radio__icon{border-color:var(--vgip-meta-input-active-border-color)}.Vlt-radio input:checked~.Vlt-radio__icon:after{background:var(--vgip-meta-input-active-border-color)}.Vlt-radio input:focus+.Vlt-radio__icon,.Vlt-radio input:active+.Vlt-radio__icon{background:var(--vgip-meta-input-bg-color)}\n"] }]
|
|
90
|
-
}]
|
|
91
|
-
type: Input
|
|
92
|
-
}] } });
|
|
90
|
+
}] });
|
|
93
91
|
|
|
94
92
|
export { FieldRadio };
|
|
95
|
-
//# sourceMappingURL=vgip-meta-ui-index-
|
|
93
|
+
//# sourceMappingURL=vgip-meta-ui-index-ee4a5a52.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"vgip-meta-ui-index-ee4a5a52.mjs","sources":["../../../projects/meta-ui/src/lib/fieldRadio/index.ts","../../../projects/meta-ui/src/lib/fieldRadio/view.html"],"sourcesContent":["/*\n * @Author: Alexander.Vangelov@vonage.com\n * @Date: 2019-09-19 17:35:19\n * @Last Modified by: Alexander.Vangelov@vonage.com\n * @Last Modified time: 2020-03-26 12:56:38\n */\n\nimport { Component, OnInit } from '@angular/core';\nimport { ControlContainer, NgForm } from '@angular/forms';\n\nimport { FieldAbstract } from '../fieldAbstract';\n\n@Component({\n templateUrl: './view.html',\n styleUrls: ['./style.scss'],\n viewProviders: [{ provide: ControlContainer, useExisting: NgForm }]\n})\n\nexport class FieldRadio extends FieldAbstract implements OnInit {\n // @Input() meta: any;\n value: any;\n\n get options() {\n return this.meta.options || this.meta.picklist;\n }\n\n ngOnInit() {\n this.validationAttributes = ['required'];\n const origValue = this.parent[this.meta.name];\n Object.defineProperty(this.parent, this.meta.name, {\n set: (value) => {\n if (value) {\n for (const o of this.options) {\n if ((value.id || value) === (o.id || o.value || o.name || o)) {\n this.model = o;\n this.value = this.modelToValue(o, this.meta.valueType);\n break;\n }\n }\n } else {\n delete this.model;\n delete this.value;\n }\n this.meta.$optional = this.isOptional;\n },\n get: () => this.value,\n enumerable: this.sendToServer,\n configurable: true\n });\n\n if (origValue) {\n this.parent[this.meta.name] = origValue;\n }\n\n if (this.default && !this.model) {\n setTimeout(() => {\n this.parent[this.meta.name] = this.meta.valueType === 'object' ? this.default : (this.default.id || this.default);\n setTimeout(() => {\n this.onModelChange(this.model);\n }, 0);\n }, 0);\n }\n }\n\n onOptionChange(model) {\n this.model = model;\n this.onModelChange(this.model);\n }\n\n onActivated(ev) {\n if (!this.keyListenerActive) {\n ev.srcElement.addEventListener('keydown', this.keydown);\n }\n }\n\n onBlur(ev) {\n if (this.keyListenerActive) {\n ev.srcElement.removeEventListener('keydown', this.keydown);\n }\n }\n\n private keydown = (event) => {\n switch (event.key) {\n case 'Backspace': {\n event.preventDefault();\n event.stopPropagation();\n this.clear();\n break;\n }\n }\n };\n}\n","<div class='vgip-meta-field-preview' *ngIf='preview && model'>\n <div class='vgip-meta-field-label' [title]='meta.label || meta.name'>{{meta.label || meta.name}}</div>\n <div class='vgip-meta-field-value __gu'>\n {{ model.label || model }}\n </div>\n</div>\n<div *ngIf='!preview' class=\"Vlt-form__element\" [ngClass]=\"{ 'Vlt-form__element--error': f && f.invalid && ((f | metaModel)._parent.submitted || (f | metaModel ).touched) }\">\n\t<label class=\"Vlt-label\">{{meta.label || meta.name}}<span *ngIf='validations.required' class='Vlt-red'>*</span></label> <!-- eslint-disable-line @angular-eslint/template/label-has-associated-control -->\n\t<input class='model' type='hidden' [required]='validations.required' [(ngModel)]='model' #f='ngModel' [name]='name' />\n\t<fieldset *ngFor='let option of options' class=\"Vlt-radio Vlt-radio--inline\">\n\t\t<label style='cursor: pointer;'>\n\t\t\t<span class=\"Vlt-radio__button\">\n <input class='main' (change)='onOptionChange(option)' type=\"radio\" [checked]='option === model' [value]='option' [name]='name' (focus)='onActivated($event)' (blur)='onBlur($event)'/>\n <span class=\"Vlt-radio__icon\"></span>\n </span>\n\t\t\t<span style='white-space: nowrap;'>{{option.label || option}}</span>\n\t\t</label>\n\t</fieldset>\n\t<small *ngIf='f && f.invalid && ((f | metaModel)._parent.submitted || (f | metaModel ).touched)' class=\"Vlt-form__element__error\">\n\t\t<span *ngIf=\"f.errors.required\">Required. </span>\n\t\t<span *ngIf=\"f.errors.custom\">{{f.errors.custom}} </span>\n\t</small>\n\t<small *ngIf='meta.hint' class=\"Vlt-form__element__hint\">{{meta.hint}}</small>\n</div>\n"],"names":["i3.MetaModelPipe"],"mappings":";;;;;;;;;;AAAA;;;;;AAKG;AAaG,MAAO,UAAW,SAAQ,aAAa,CAAA;AAN7C,IAAA,WAAA,GAAA;;AAqEU,QAAA,IAAA,CAAA,OAAO,GAAG,CAAC,KAAK,KAAI;YAC1B,QAAQ,KAAK,CAAC,GAAG;gBACf,KAAK,WAAW,EAAE;oBAChB,KAAK,CAAC,cAAc,EAAE,CAAC;oBACvB,KAAK,CAAC,eAAe,EAAE,CAAC;oBACxB,IAAI,CAAC,KAAK,EAAE,CAAC;oBACb,MAAM;AACP,iBAAA;AACF,aAAA;AACH,SAAC,CAAC;AACH,KAAA;AArEC,IAAA,IAAI,OAAO,GAAA;QACT,OAAO,IAAI,CAAC,IAAI,CAAC,OAAO,IAAI,IAAI,CAAC,IAAI,CAAC,QAAQ,CAAC;KAChD;IAED,QAAQ,GAAA;AACN,QAAA,IAAI,CAAC,oBAAoB,GAAG,CAAC,UAAU,CAAC,CAAC;AACzC,QAAA,MAAM,SAAS,GAAG,IAAI,CAAC,MAAM,CAAC,IAAI,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;AAC9C,QAAA,MAAM,CAAC,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oCAGO,CAAC,EAAE,OAAO,EAAE,gBAAgB,EAAE,WAAW,EAAE,MAAM,EAAE,CAAC,EAAA,QAAA,EAAA,0oDAAA,EAAA,MAAA,EAAA,CAAA,4nBAAA,CAAA,EAAA,CAAA;;;;;"}
|
|
@@ -6,26 +6,26 @@ import { FormsModule, ReactiveFormsModule } from '@angular/forms';
|
|
|
6
6
|
import { HttpClientModule } from '@angular/common/http';
|
|
7
7
|
import * as i4 from 'ngx-quill';
|
|
8
8
|
import { QuillModule } from 'ngx-quill';
|
|
9
|
-
import { M as MetaRefDialog, a as MetaResourceService, b as MetaReferenceService, c as MetaLayout, d as MetaResource, e as MetaAutofocusDirective } from './vgip-meta-ui-index-
|
|
10
|
-
export { g as MetaHttpClient, f as MetaMsgService, m as metaNormalizer } from './vgip-meta-ui-index-
|
|
9
|
+
import { M as MetaRefDialog, a as MetaResourceService, b as MetaReferenceService, c as MetaLayout, d as MetaResource, e as MetaAutofocusDirective } from './vgip-meta-ui-index-46c7f4e4.mjs';
|
|
10
|
+
export { g as MetaHttpClient, f as MetaMsgService, m as metaNormalizer } from './vgip-meta-ui-index-46c7f4e4.mjs';
|
|
11
11
|
import { FieldUnknown } from './vgip-meta-ui-index-5891b8e7.mjs';
|
|
12
12
|
import { FieldInput } from './vgip-meta-ui-index-44af92c9.mjs';
|
|
13
|
-
import { FieldText } from './vgip-meta-ui-index-
|
|
14
|
-
import { FieldSelect } from './vgip-meta-ui-index-
|
|
15
|
-
import { F as FieldReference } from './vgip-meta-ui-index-
|
|
16
|
-
export { M as MetaTrackerService } from './vgip-meta-ui-index-
|
|
17
|
-
import { FieldComposite } from './vgip-meta-ui-index-
|
|
18
|
-
import { FieldBoolean } from './vgip-meta-ui-index-
|
|
19
|
-
import { FieldRadio } from './vgip-meta-ui-index-
|
|
20
|
-
import { FieldList } from './vgip-meta-ui-index-
|
|
21
|
-
import { FieldRichtext } from './vgip-meta-ui-index-
|
|
13
|
+
import { FieldText } from './vgip-meta-ui-index-ea3cad77.mjs';
|
|
14
|
+
import { FieldSelect } from './vgip-meta-ui-index-6f647ae9.mjs';
|
|
15
|
+
import { F as FieldReference } from './vgip-meta-ui-index-1799a060.mjs';
|
|
16
|
+
export { M as MetaTrackerService } from './vgip-meta-ui-index-1799a060.mjs';
|
|
17
|
+
import { FieldComposite } from './vgip-meta-ui-index-45a741f4.mjs';
|
|
18
|
+
import { FieldBoolean } from './vgip-meta-ui-index-8b2ba164.mjs';
|
|
19
|
+
import { FieldRadio } from './vgip-meta-ui-index-ee4a5a52.mjs';
|
|
20
|
+
import { FieldList } from './vgip-meta-ui-index-ebaddb9b.mjs';
|
|
21
|
+
import { FieldRichtext } from './vgip-meta-ui-index-b3099377.mjs';
|
|
22
22
|
import { FieldDatetime } from './vgip-meta-ui-index-0349968f.mjs';
|
|
23
23
|
import { FieldHidden } from './vgip-meta-ui-index-5d13f5e6.mjs';
|
|
24
24
|
import * as i1$1 from '@angular/platform-browser';
|
|
25
25
|
import { M as MetaModelPipe } from './vgip-meta-ui-metaModel.pipe-6b803e66.mjs';
|
|
26
26
|
import { M as MetaContextService } from './vgip-meta-ui-index-ea5c2466.mjs';
|
|
27
27
|
export { r as relativeTimeBuilder } from './vgip-meta-ui-relativeTimeBuilder-31791ce4.mjs';
|
|
28
|
-
import { M as MetaField, a as MetaFieldContentDirective } from './vgip-meta-ui-index-
|
|
28
|
+
import { M as MetaField, a as MetaFieldContentDirective } from './vgip-meta-ui-index-aa21fd6a.mjs';
|
|
29
29
|
export { a as metaDark, m as metaLight } from './vgip-meta-ui-fieldAbstract-9955be39.mjs';
|
|
30
30
|
import 'rxjs';
|
|
31
31
|
import 'rxjs/operators';
|
package/lib/fieldAbstract.d.ts
CHANGED
|
@@ -2,10 +2,9 @@ import { OnInit } from '@angular/core';
|
|
|
2
2
|
import { FieldAbstract } from '../fieldAbstract';
|
|
3
3
|
import * as i0 from "@angular/core";
|
|
4
4
|
export declare class FieldBoolean extends FieldAbstract implements OnInit {
|
|
5
|
-
meta: any;
|
|
6
5
|
value: boolean;
|
|
7
6
|
ngOnInit(): void;
|
|
8
7
|
onOptionChange(): void;
|
|
9
8
|
static ɵfac: i0.ɵɵFactoryDeclaration<FieldBoolean, never>;
|
|
10
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<FieldBoolean, "ng-component", never, {
|
|
9
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<FieldBoolean, "ng-component", never, {}, {}, never, never, false, never>;
|
|
11
10
|
}
|
|
@@ -2,8 +2,6 @@ import { OnInit, DoCheck } from '@angular/core';
|
|
|
2
2
|
import { FieldAbstract } from '../fieldAbstract';
|
|
3
3
|
import * as i0 from "@angular/core";
|
|
4
4
|
export declare class FieldComposite extends FieldAbstract implements OnInit, DoCheck {
|
|
5
|
-
meta: any;
|
|
6
|
-
parent: any;
|
|
7
5
|
value: any;
|
|
8
6
|
private invisible;
|
|
9
7
|
get isRow(): boolean;
|
|
@@ -11,5 +9,5 @@ export declare class FieldComposite extends FieldAbstract implements OnInit, DoC
|
|
|
11
9
|
ngOnInit(): void;
|
|
12
10
|
ngDoCheck(): void;
|
|
13
11
|
static ɵfac: i0.ɵɵFactoryDeclaration<FieldComposite, never>;
|
|
14
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<FieldComposite, "ng-component", never, {
|
|
12
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<FieldComposite, "ng-component", never, {}, {}, never, never, false, never>;
|
|
15
13
|
}
|
|
@@ -2,7 +2,6 @@ import { OnInit } from '@angular/core';
|
|
|
2
2
|
import { FieldAbstract } from '../fieldAbstract';
|
|
3
3
|
import * as i0 from "@angular/core";
|
|
4
4
|
export declare class FieldRadio extends FieldAbstract implements OnInit {
|
|
5
|
-
meta: any;
|
|
6
5
|
value: any;
|
|
7
6
|
get options(): any;
|
|
8
7
|
ngOnInit(): void;
|
|
@@ -11,5 +10,5 @@ export declare class FieldRadio extends FieldAbstract implements OnInit {
|
|
|
11
10
|
onBlur(ev: any): void;
|
|
12
11
|
private keydown;
|
|
13
12
|
static ɵfac: i0.ɵɵFactoryDeclaration<FieldRadio, never>;
|
|
14
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<FieldRadio, "ng-component", never, {
|
|
13
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<FieldRadio, "ng-component", never, {}, {}, never, never, false, never>;
|
|
15
14
|
}
|
|
@@ -4,7 +4,6 @@ import { MetaContextService } from '../services/metaContext';
|
|
|
4
4
|
import * as i0 from "@angular/core";
|
|
5
5
|
export declare class FieldRichtext extends FieldAbstract implements OnInit {
|
|
6
6
|
private metaContext;
|
|
7
|
-
meta: any;
|
|
8
7
|
active: boolean;
|
|
9
8
|
quillConfigModules: {
|
|
10
9
|
syntax: boolean;
|
|
@@ -24,5 +23,5 @@ export declare class FieldRichtext extends FieldAbstract implements OnInit {
|
|
|
24
23
|
onModelChangeLocal(value: any): void;
|
|
25
24
|
textToSpeech(): void;
|
|
26
25
|
static ɵfac: i0.ɵɵFactoryDeclaration<FieldRichtext, never>;
|
|
27
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<FieldRichtext, "ng-component", never, {
|
|
26
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<FieldRichtext, "ng-component", never, {}, {}, never, never, false, never>;
|
|
28
27
|
}
|
|
@@ -25,7 +25,6 @@ export declare class FieldSelect extends FieldAbstract implements OnInit {
|
|
|
25
25
|
get groupedOptions(): any;
|
|
26
26
|
get resourceService(): any;
|
|
27
27
|
get optionsBackup(): any;
|
|
28
|
-
static setup(instance: any, parent: any, meta: any): void;
|
|
29
28
|
ngOnInit(): void;
|
|
30
29
|
onActivated(ev: any): void;
|
|
31
30
|
detectSearchBlock(element: any): any;
|
package/lib/fieldText/index.d.ts
CHANGED
|
@@ -4,12 +4,12 @@ import { MetaContextService } from '../services/metaContext';
|
|
|
4
4
|
import * as i0 from "@angular/core";
|
|
5
5
|
export declare class FieldText extends FieldAbstract implements OnInit {
|
|
6
6
|
private metaContext;
|
|
7
|
-
|
|
7
|
+
value: string;
|
|
8
8
|
constructor(metaContext: MetaContextService);
|
|
9
9
|
static setup(instance: any, parent: any, meta: any): void;
|
|
10
10
|
ngOnInit(): void;
|
|
11
11
|
onModelChangeLocal(value: any): void;
|
|
12
12
|
textToSpeech(): void;
|
|
13
13
|
static ɵfac: i0.ɵɵFactoryDeclaration<FieldText, never>;
|
|
14
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<FieldText, "ng-component", never, {
|
|
14
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<FieldText, "ng-component", never, {}, {}, never, never, false, never>;
|
|
15
15
|
}
|
package/lib/layout/index.d.ts
CHANGED
|
@@ -23,6 +23,7 @@ export declare class MetaLayout implements OnInit, AfterContentChecked, OnChange
|
|
|
23
23
|
integrationCode: string;
|
|
24
24
|
resourceType: string;
|
|
25
25
|
childResourceCardLabel: (r: any) => any;
|
|
26
|
+
overlayContainer: HTMLElement;
|
|
26
27
|
constructor(viewContainerRef: ViewContainerRef, ref: ChangeDetectorRef, el: ElementRef, metaResource: MetaResourceService, referenceService: MetaReferenceService);
|
|
27
28
|
get isPersistedResource(): any;
|
|
28
29
|
ngOnInit(): void;
|
package/lib/metaField/index.d.ts
CHANGED
|
@@ -17,11 +17,12 @@ export declare class MetaField extends FieldAbstract implements OnInit {
|
|
|
17
17
|
scope: string;
|
|
18
18
|
preview: boolean;
|
|
19
19
|
theme: string;
|
|
20
|
+
overlayContainer: HTMLElement;
|
|
20
21
|
onChange: EventEmitter<any>;
|
|
21
22
|
onLeave: EventEmitter<any>;
|
|
22
23
|
fieldContent: MetaFieldContentDirective;
|
|
23
24
|
constructor(el: ElementRef);
|
|
24
25
|
ngOnInit(): Promise<void>;
|
|
25
26
|
static ɵfac: i0.ɵɵFactoryDeclaration<MetaField, never>;
|
|
26
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<MetaField, "vgip-meta-field", never, { "meta": { "alias": "meta"; "required": false; }; "parent": { "alias": "parent"; "required": false; }; "integrationCode": { "alias": "integrationCode"; "required": false; }; "resourceType": { "alias": "resourceType"; "required": false; }; "index": { "alias": "index"; "required": false; }; "scope": { "alias": "scope"; "required": false; }; "preview": { "alias": "preview"; "required": false; }; "theme": { "alias": "theme"; "required": false; }; }, { "onChange": "onChange"; "onLeave": "onLeave"; }, never, never, false, never>;
|
|
27
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<MetaField, "vgip-meta-field", never, { "meta": { "alias": "meta"; "required": false; }; "parent": { "alias": "parent"; "required": false; }; "integrationCode": { "alias": "integrationCode"; "required": false; }; "resourceType": { "alias": "resourceType"; "required": false; }; "index": { "alias": "index"; "required": false; }; "scope": { "alias": "scope"; "required": false; }; "preview": { "alias": "preview"; "required": false; }; "theme": { "alias": "theme"; "required": false; }; "overlayContainer": { "alias": "overlayContainer"; "required": false; }; }, { "onChange": "onChange"; "onLeave": "onLeave"; }, never, never, false, never>;
|
|
27
28
|
}
|
package/lib/resource/index.d.ts
CHANGED
|
@@ -3,6 +3,7 @@ import { NgForm } from '@angular/forms';
|
|
|
3
3
|
import { MetaResourceService } from '../services/metaResource';
|
|
4
4
|
import { MetaContextService } from '../services/metaContext';
|
|
5
5
|
import { MetaMsgService } from '../services/metaMsg';
|
|
6
|
+
import { Subject } from 'rxjs';
|
|
6
7
|
import * as i0 from "@angular/core";
|
|
7
8
|
export declare class MetaResource implements OnInit, OnChanges {
|
|
8
9
|
private ref;
|
|
@@ -16,6 +17,7 @@ export declare class MetaResource implements OnInit, OnChanges {
|
|
|
16
17
|
theme: string;
|
|
17
18
|
editMode: boolean;
|
|
18
19
|
done: EventEmitter<any>;
|
|
20
|
+
resourceChange: EventEmitter<any>;
|
|
19
21
|
resourceForm: NgForm;
|
|
20
22
|
integrationCode: string;
|
|
21
23
|
resourceType: string;
|
|
@@ -32,6 +34,7 @@ export declare class MetaResource implements OnInit, OnChanges {
|
|
|
32
34
|
contactsSuggestionsDone: boolean;
|
|
33
35
|
isEditable: boolean;
|
|
34
36
|
isPersistent: boolean;
|
|
37
|
+
resourceChanged: Subject<string>;
|
|
35
38
|
constructor(ref: ChangeDetectorRef, el: ElementRef, metaResourceService: MetaResourceService, metaContext: MetaContextService, metaMsgService: MetaMsgService);
|
|
36
39
|
get niceFields(): any;
|
|
37
40
|
get fieldNames(): string[];
|
|
@@ -48,6 +51,7 @@ export declare class MetaResource implements OnInit, OnChanges {
|
|
|
48
51
|
showParsedError(resourceForm: any, parsedError: any): void;
|
|
49
52
|
submit(resourceForm: any): void;
|
|
50
53
|
clearFormErrors(): void;
|
|
54
|
+
onFormChange(): void;
|
|
51
55
|
private onMenuClickout;
|
|
52
56
|
private suggestFieldProperty;
|
|
53
57
|
private execTransformer;
|
|
@@ -57,5 +61,5 @@ export declare class MetaResource implements OnInit, OnChanges {
|
|
|
57
61
|
private applyTheme;
|
|
58
62
|
private forceUiUpdate;
|
|
59
63
|
static ɵfac: i0.ɵɵFactoryDeclaration<MetaResource, never>;
|
|
60
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<MetaResource, "vgip-meta-resource", never, { "resource": { "alias": "resource"; "required": false; }; "model": { "alias": "model"; "required": false; }; "metaResourceServiceDelegated": { "alias": "metaResourceServiceDelegated"; "required": false; }; "theme": { "alias": "theme"; "required": false; }; "editMode": { "alias": "editMode"; "required": false; }; }, { "done": "done"; }, never, never, false, never>;
|
|
64
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<MetaResource, "vgip-meta-resource", never, { "resource": { "alias": "resource"; "required": false; }; "model": { "alias": "model"; "required": false; }; "metaResourceServiceDelegated": { "alias": "metaResourceServiceDelegated"; "required": false; }; "theme": { "alias": "theme"; "required": false; }; "editMode": { "alias": "editMode"; "required": false; }; }, { "done": "done"; "resourceChange": "resourceChange"; }, never, never, false, never>;
|
|
61
65
|
}
|
|
@@ -5,7 +5,7 @@ export declare class MetaReferenceService {
|
|
|
5
5
|
private router;
|
|
6
6
|
dialogs: Array<any>;
|
|
7
7
|
constructor(router: Router);
|
|
8
|
-
openDialog(componentRef: any, metaResource: any, integrationCode: any, reference: any, resource: any, preview?: boolean, preferResourceType?: any, theme?: string): Observable<unknown>;
|
|
8
|
+
openDialog(componentRef: any, metaResource: any, integrationCode: any, reference: any, resource: any, preview?: boolean, preferResourceType?: any, theme?: string, overlayContainer?: HTMLElement): Observable<unknown>;
|
|
9
9
|
static ɵfac: i0.ɵɵFactoryDeclaration<MetaReferenceService, never>;
|
|
10
10
|
static ɵprov: i0.ɵɵInjectableDeclaration<MetaReferenceService>;
|
|
11
11
|
}
|