@vgip/meta-ui 2.0.0 → 2.1.1
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/fesm2022/vgip-meta-ui.mjs +5614 -78
- package/fesm2022/vgip-meta-ui.mjs.map +1 -1
- package/index.d.ts +709 -5
- package/package.json +5 -8
- package/vendor/volta3/README.md +1 -0
- package/vendor/volta3/fonts/Spezia-Regular.eot +0 -0
- package/vendor/volta3/fonts/Spezia-Regular.ttf +0 -0
- package/vendor/volta3/fonts/Spezia-Regular.woff +0 -0
- package/vendor/volta3/fonts/Spezia-Regular.woff2 +0 -0
- package/vendor/volta3/fonts/Spezia-SemiBold.eot +0 -0
- package/vendor/volta3/fonts/Spezia-SemiBold.ttf +0 -0
- package/vendor/volta3/fonts/Spezia-SemiBold.woff +0 -0
- package/vendor/volta3/fonts/Spezia-SemiBold.woff2 +0 -0
- package/vendor/volta3/fonts/Spezia-SemiMonoSemiBold.eot +0 -0
- package/vendor/volta3/fonts/Spezia-SemiMonoSemiBold.ttf +0 -0
- package/vendor/volta3/fonts/Spezia-SemiMonoSemiBold.woff +0 -0
- package/vendor/volta3/fonts/Spezia-SemiMonoSemiBold.woff2 +0 -0
- package/vendor/volta3/fonts/Spezia-WideMedium.eot +0 -0
- package/vendor/volta3/fonts/Spezia-WideMedium.ttf +0 -0
- package/vendor/volta3/fonts/Spezia-WideMedium.woff +0 -0
- package/vendor/volta3/fonts/Spezia-WideMedium.woff2 +0 -0
- package/vendor/volta3/scss/components/_accordions.scss +165 -0
- package/vendor/volta3/scss/components/_badge.scss +329 -0
- package/vendor/volta3/scss/components/_blockquote.scss +35 -0
- package/vendor/volta3/scss/components/_boxes.scss +113 -0
- package/vendor/volta3/scss/components/_buttons.scss +794 -0
- package/vendor/volta3/scss/components/_callouts.scss +427 -0
- package/vendor/volta3/scss/components/_card.scss +421 -0
- package/vendor/volta3/scss/components/_color-classes.scss +186 -0
- package/vendor/volta3/scss/components/_dialpad.scss +224 -0
- package/vendor/volta3/scss/components/_dropdowns.scss +495 -0
- package/vendor/volta3/scss/components/_empties.scss +77 -0
- package/vendor/volta3/scss/components/_flash-messages.scss +39 -0
- package/vendor/volta3/scss/components/_form-elements.scss +879 -0
- package/vendor/volta3/scss/components/_lists.scss +427 -0
- package/vendor/volta3/scss/components/_modals.scss +227 -0
- package/vendor/volta3/scss/components/_popups.scss +173 -0
- package/vendor/volta3/scss/components/_progress.scss +28 -0
- package/vendor/volta3/scss/components/_spinner.scss +105 -0
- package/vendor/volta3/scss/components/_steps.scss +242 -0
- package/vendor/volta3/scss/components/_switch.scss +353 -0
- package/vendor/volta3/scss/components/_tables.scss +739 -0
- package/vendor/volta3/scss/components/_tabs.scss +296 -0
- package/vendor/volta3/scss/components/_text-separator.scss +61 -0
- package/vendor/volta3/scss/components/_tooltips.scss +152 -0
- package/vendor/volta3/scss/components/side-navigation/_side-nav--aqua.scss +179 -0
- package/vendor/volta3/scss/components/side-navigation/_side-nav--collapsible.scss +381 -0
- package/vendor/volta3/scss/components/side-navigation/_side-nav--dark.scss +196 -0
- package/vendor/volta3/scss/components/side-navigation/_side-nav--light.scss +174 -0
- package/vendor/volta3/scss/components/side-navigation/_side-nav--structure.scss +631 -0
- package/vendor/volta3/scss/components/side-navigation/_side-nav--tabs.scss +88 -0
- package/vendor/volta3/scss/flatpickr/_flatpickr-volta.scss +407 -0
- package/vendor/volta3/scss/flatpickr/_flatpickr.css +785 -0
- package/vendor/volta3/scss/layout/_article.scss +119 -0
- package/vendor/volta3/scss/layout/_utils.scss +174 -0
- package/vendor/volta3/scss/lib/_grid.scss +374 -0
- package/vendor/volta3/scss/lib/_mediaqueries.scss +52 -0
- package/vendor/volta3/scss/lib/_reset.scss +110 -0
- package/vendor/volta3/scss/lib/_type.scss +345 -0
- package/vendor/volta3/scss/lib/_utils.scss +26 -0
- package/vendor/volta3/scss/lib/_variables.scss +115 -0
- package/vendor/volta3/scss/prism/_prism-volta.scss +390 -0
- package/vendor/volta3/scss/prism/_prism.css +326 -0
- package/vendor/volta3/scss/templates/volta-error-page.scss +57 -0
- package/vendor/volta3/scss/templates/volta-templates.scss +114 -0
- package/vendor/volta3/scss/volta-flatpickr.scss +10 -0
- package/vendor/volta3/scss/volta-prism.scss +7 -0
- package/vendor/volta3/scss/volta.scss +39 -0
- package/vendor/volta3/symbol/volta-brand-icons.svg +1 -0
- package/vendor/volta3/symbol/volta-flag-icons.svg +1 -0
- package/vendor/volta3/symbol/volta-icons.svg +1 -0
- package/esm2022/lib/common/fieldNormalizer/boolean.mjs +0 -12
- package/esm2022/lib/common/fieldNormalizer/datetime.mjs +0 -9
- package/esm2022/lib/common/fieldNormalizer/index.mjs +0 -183
- package/esm2022/lib/common/fieldNormalizer/number.mjs +0 -14
- package/esm2022/lib/common/fieldNormalizer/options.mjs +0 -50
- package/esm2022/lib/common/fieldNormalizer/radio.mjs +0 -30
- package/esm2022/lib/common/fieldNormalizer/reference.mjs +0 -36
- package/esm2022/lib/common/fieldNormalizer/richtext.mjs +0 -15
- package/esm2022/lib/common/fieldNormalizer/string.mjs +0 -24
- package/esm2022/lib/common/fieldNormalizer/text.mjs +0 -18
- package/esm2022/lib/common/fieldNormalizer/uniqueNameFilter.mjs +0 -23
- package/esm2022/lib/common/metaAutofocus.directive.mjs +0 -35
- package/esm2022/lib/common/metaIcons.pipe.mjs +0 -29
- package/esm2022/lib/common/metaModel.pipe.mjs +0 -23
- package/esm2022/lib/common/metaNormalizer.mjs +0 -375
- package/esm2022/lib/common/metaStripHtml.pipe.mjs +0 -22
- package/esm2022/lib/common/utils/colorThemes.mjs +0 -77
- package/esm2022/lib/common/utils/indexedDbStore/index.mjs +0 -228
- package/esm2022/lib/common/utils/relativeTimeBuilder.mjs +0 -49
- package/esm2022/lib/common/utils/resourceCardLabel.mjs +0 -24
- package/esm2022/lib/common/utils/smartProp.mjs +0 -31
- package/esm2022/lib/common/utils/templateBuilder.mjs +0 -103
- package/esm2022/lib/fieldAbstract.mjs +0 -291
- package/esm2022/lib/fieldBoolean/index.mjs +0 -53
- package/esm2022/lib/fieldComposite/index.mjs +0 -82
- package/esm2022/lib/fieldDatetime/index.mjs +0 -365
- package/esm2022/lib/fieldHidden/index.mjs +0 -18
- package/esm2022/lib/fieldInput/index.mjs +0 -475
- package/esm2022/lib/fieldList/index.mjs +0 -74
- package/esm2022/lib/fieldRadio/index.mjs +0 -88
- package/esm2022/lib/fieldReference/index.mjs +0 -836
- package/esm2022/lib/fieldRichtext/index.mjs +0 -93
- package/esm2022/lib/fieldSelect/index.mjs +0 -569
- package/esm2022/lib/fieldText/index.mjs +0 -83
- package/esm2022/lib/fieldUnknown/index.mjs +0 -19
- package/esm2022/lib/index.mjs +0 -163
- package/esm2022/lib/layout/index.mjs +0 -214
- package/esm2022/lib/metaField/index.mjs +0 -151
- package/esm2022/lib/refDialog/index.mjs +0 -135
- package/esm2022/lib/resource/index.mjs +0 -525
- package/esm2022/lib/resourceCard/index.mjs +0 -40
- package/esm2022/lib/services/metaContext/index.mjs +0 -52
- package/esm2022/lib/services/metaMsg/index.mjs +0 -84
- package/esm2022/lib/services/metaReference/index.mjs +0 -94
- package/esm2022/lib/services/metaResource/index.mjs +0 -141
- package/esm2022/lib/services/metaResource/metaHttpClient.mjs +0 -64
- package/esm2022/lib/services/metaTracker/index.mjs +0 -31
- package/esm2022/lib/services/resourceDrafts/index.mjs +0 -69
- package/esm2022/public-api.mjs +0 -5
- package/esm2022/vgip-meta-ui.mjs +0 -5
- package/fesm2022/vgip-meta-ui-fieldAbstract-baeaf24d.mjs +0 -399
- package/fesm2022/vgip-meta-ui-fieldAbstract-baeaf24d.mjs.map +0 -1
- package/fesm2022/vgip-meta-ui-index-0184d5ec.mjs +0 -478
- package/fesm2022/vgip-meta-ui-index-0184d5ec.mjs.map +0 -1
- package/fesm2022/vgip-meta-ui-index-1ddfcce0.mjs +0 -86
- package/fesm2022/vgip-meta-ui-index-1ddfcce0.mjs.map +0 -1
- package/fesm2022/vgip-meta-ui-index-37358620.mjs +0 -158
- package/fesm2022/vgip-meta-ui-index-37358620.mjs.map +0 -1
- package/fesm2022/vgip-meta-ui-index-4e9c383f.mjs +0 -95
- package/fesm2022/vgip-meta-ui-index-4e9c383f.mjs.map +0 -1
- package/fesm2022/vgip-meta-ui-index-4fa919c0.mjs +0 -79
- package/fesm2022/vgip-meta-ui-index-4fa919c0.mjs.map +0 -1
- package/fesm2022/vgip-meta-ui-index-5f68724c.mjs +0 -576
- package/fesm2022/vgip-meta-ui-index-5f68724c.mjs.map +0 -1
- package/fesm2022/vgip-meta-ui-index-6d502a71.mjs +0 -869
- package/fesm2022/vgip-meta-ui-index-6d502a71.mjs.map +0 -1
- package/fesm2022/vgip-meta-ui-index-7741951a.mjs +0 -23
- package/fesm2022/vgip-meta-ui-index-7741951a.mjs.map +0 -1
- package/fesm2022/vgip-meta-ui-index-80ab405f.mjs +0 -93
- package/fesm2022/vgip-meta-ui-index-80ab405f.mjs.map +0 -1
- package/fesm2022/vgip-meta-ui-index-926ae006.mjs +0 -58
- package/fesm2022/vgip-meta-ui-index-926ae006.mjs.map +0 -1
- package/fesm2022/vgip-meta-ui-index-b979685f.mjs +0 -87
- package/fesm2022/vgip-meta-ui-index-b979685f.mjs.map +0 -1
- package/fesm2022/vgip-meta-ui-index-c943b7c0.mjs +0 -24
- package/fesm2022/vgip-meta-ui-index-c943b7c0.mjs.map +0 -1
- package/fesm2022/vgip-meta-ui-index-ce185ca2.mjs +0 -2062
- package/fesm2022/vgip-meta-ui-index-ce185ca2.mjs.map +0 -1
- package/fesm2022/vgip-meta-ui-index-f8b00f06.mjs +0 -370
- package/fesm2022/vgip-meta-ui-index-f8b00f06.mjs.map +0 -1
- package/fesm2022/vgip-meta-ui-index-fb7f54f5.mjs +0 -154
- package/fesm2022/vgip-meta-ui-index-fb7f54f5.mjs.map +0 -1
- package/fesm2022/vgip-meta-ui-metaModel.pipe-6b803e66.mjs +0 -26
- package/fesm2022/vgip-meta-ui-metaModel.pipe-6b803e66.mjs.map +0 -1
- package/fesm2022/vgip-meta-ui-relativeTimeBuilder-31791ce4.mjs +0 -51
- package/fesm2022/vgip-meta-ui-relativeTimeBuilder-31791ce4.mjs.map +0 -1
- package/lib/common/fieldNormalizer/boolean.d.ts +0 -1
- package/lib/common/fieldNormalizer/datetime.d.ts +0 -1
- package/lib/common/fieldNormalizer/index.d.ts +0 -1
- package/lib/common/fieldNormalizer/number.d.ts +0 -1
- package/lib/common/fieldNormalizer/options.d.ts +0 -1
- package/lib/common/fieldNormalizer/radio.d.ts +0 -1
- package/lib/common/fieldNormalizer/reference.d.ts +0 -1
- package/lib/common/fieldNormalizer/richtext.d.ts +0 -1
- package/lib/common/fieldNormalizer/string.d.ts +0 -1
- package/lib/common/fieldNormalizer/text.d.ts +0 -1
- package/lib/common/fieldNormalizer/uniqueNameFilter.d.ts +0 -1
- package/lib/common/metaAutofocus.directive.d.ts +0 -10
- package/lib/common/metaIcons.pipe.d.ts +0 -10
- package/lib/common/metaModel.pipe.d.ts +0 -7
- package/lib/common/metaNormalizer.d.ts +0 -1
- package/lib/common/metaStripHtml.pipe.d.ts +0 -7
- package/lib/common/utils/colorThemes.d.ts +0 -8
- package/lib/common/utils/indexedDbStore/index.d.ts +0 -25
- package/lib/common/utils/relativeTimeBuilder.d.ts +0 -1
- package/lib/common/utils/resourceCardLabel.d.ts +0 -1
- package/lib/common/utils/smartProp.d.ts +0 -2
- package/lib/common/utils/templateBuilder.d.ts +0 -1
- package/lib/fieldAbstract.d.ts +0 -61
- package/lib/fieldBoolean/index.d.ts +0 -10
- package/lib/fieldComposite/index.d.ts +0 -14
- package/lib/fieldDatetime/index.d.ts +0 -26
- package/lib/fieldHidden/index.d.ts +0 -6
- package/lib/fieldInput/index.d.ts +0 -35
- package/lib/fieldList/index.d.ts +0 -15
- package/lib/fieldRadio/index.d.ts +0 -14
- package/lib/fieldReference/index.d.ts +0 -73
- package/lib/fieldRichtext/index.d.ts +0 -27
- package/lib/fieldSelect/index.d.ts +0 -49
- package/lib/fieldText/index.d.ts +0 -15
- package/lib/fieldUnknown/index.d.ts +0 -6
- package/lib/index.d.ts +0 -65
- package/lib/layout/index.d.ts +0 -47
- package/lib/metaField/index.d.ts +0 -29
- package/lib/refDialog/index.d.ts +0 -33
- package/lib/resource/index.d.ts +0 -68
- package/lib/resourceCard/index.d.ts +0 -17
- package/lib/services/metaContext/index.d.ts +0 -32
- package/lib/services/metaMsg/index.d.ts +0 -14
- package/lib/services/metaReference/index.d.ts +0 -11
- package/lib/services/metaResource/index.d.ts +0 -31
- package/lib/services/metaResource/metaHttpClient.d.ts +0 -15
- package/lib/services/metaTracker/index.d.ts +0 -19
- package/lib/services/resourceDrafts/index.d.ts +0 -26
- package/public-api.d.ts +0 -1
|
@@ -1,154 +0,0 @@
|
|
|
1
|
-
import * as i0 from '@angular/core';
|
|
2
|
-
import { Directive, EventEmitter, Component, Input, Output, ViewChild } from '@angular/core';
|
|
3
|
-
import { F as FieldAbstract } from './vgip-meta-ui-fieldAbstract-baeaf24d.mjs';
|
|
4
|
-
|
|
5
|
-
const FMAP = async (fType) => {
|
|
6
|
-
switch (fType) {
|
|
7
|
-
case '':
|
|
8
|
-
case null:
|
|
9
|
-
case undefined:
|
|
10
|
-
case 'number':
|
|
11
|
-
// case 'datetime':
|
|
12
|
-
// case 'time':
|
|
13
|
-
// case 'date':
|
|
14
|
-
case 'string': { // eslint-disable-line no-fallthrough
|
|
15
|
-
// return FieldInput;
|
|
16
|
-
return import('./vgip-meta-ui-index-0184d5ec.mjs').then(m => m.FieldInput);
|
|
17
|
-
}
|
|
18
|
-
case 'textarea':
|
|
19
|
-
case 'text': {
|
|
20
|
-
// return FieldText
|
|
21
|
-
return import('./vgip-meta-ui-index-1ddfcce0.mjs').then(m => m.FieldText);
|
|
22
|
-
}
|
|
23
|
-
case 'select':
|
|
24
|
-
case 'options': {
|
|
25
|
-
// return FieldSelect
|
|
26
|
-
return import('./vgip-meta-ui-index-5f68724c.mjs').then(m => m.FieldSelect);
|
|
27
|
-
}
|
|
28
|
-
case 'reference': {
|
|
29
|
-
// return FieldReference;
|
|
30
|
-
return import('./vgip-meta-ui-index-6d502a71.mjs').then(function (n) { return n.i; }).then(m => m.FieldReference);
|
|
31
|
-
}
|
|
32
|
-
case 'composite': {
|
|
33
|
-
// return FieldComposite;
|
|
34
|
-
return import('./vgip-meta-ui-index-b979685f.mjs').then(m => m.FieldComposite);
|
|
35
|
-
}
|
|
36
|
-
case 'boolean': {
|
|
37
|
-
// return FieldBoolean;
|
|
38
|
-
return import('./vgip-meta-ui-index-926ae006.mjs').then(m => m.FieldBoolean);
|
|
39
|
-
}
|
|
40
|
-
case 'radio': {
|
|
41
|
-
// return FieldRadio;
|
|
42
|
-
return import('./vgip-meta-ui-index-80ab405f.mjs').then(m => m.FieldRadio);
|
|
43
|
-
}
|
|
44
|
-
case 'list': {
|
|
45
|
-
// return FieldList;
|
|
46
|
-
return import('./vgip-meta-ui-index-4fa919c0.mjs').then(m => m.FieldList);
|
|
47
|
-
}
|
|
48
|
-
case 'richtext': {
|
|
49
|
-
// return FieldRichtext;
|
|
50
|
-
return import('./vgip-meta-ui-index-4e9c383f.mjs').then(m => m.FieldRichtext);
|
|
51
|
-
}
|
|
52
|
-
case 'datetime':
|
|
53
|
-
case 'time':
|
|
54
|
-
case 'date': {
|
|
55
|
-
// return FieldDatetime;
|
|
56
|
-
return import('./vgip-meta-ui-index-f8b00f06.mjs').then(m => m.FieldDatetime);
|
|
57
|
-
}
|
|
58
|
-
case 'hidden': {
|
|
59
|
-
return import('./vgip-meta-ui-index-7741951a.mjs').then(m => m.FieldHidden);
|
|
60
|
-
}
|
|
61
|
-
default: {
|
|
62
|
-
// return FieldUnknown;
|
|
63
|
-
return import('./vgip-meta-ui-index-c943b7c0.mjs').then(m => m.FieldUnknown);
|
|
64
|
-
}
|
|
65
|
-
}
|
|
66
|
-
};
|
|
67
|
-
class MetaFieldContentDirective {
|
|
68
|
-
constructor(viewContainerRef) {
|
|
69
|
-
this.viewContainerRef = viewContainerRef;
|
|
70
|
-
}
|
|
71
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.11", ngImport: i0, type: MetaFieldContentDirective, deps: [{ token: i0.ViewContainerRef }], target: i0.ɵɵFactoryTarget.Directive }); }
|
|
72
|
-
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.2.11", type: MetaFieldContentDirective, selector: "[metaFieldContent]", ngImport: i0 }); }
|
|
73
|
-
}
|
|
74
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.11", ngImport: i0, type: MetaFieldContentDirective, decorators: [{
|
|
75
|
-
type: Directive,
|
|
76
|
-
args: [{
|
|
77
|
-
selector: '[metaFieldContent]'
|
|
78
|
-
}]
|
|
79
|
-
}], ctorParameters: function () { return [{ type: i0.ViewContainerRef }]; } });
|
|
80
|
-
class MetaField extends FieldAbstract {
|
|
81
|
-
constructor(el) {
|
|
82
|
-
super();
|
|
83
|
-
this.el = el;
|
|
84
|
-
// eslint-disable-next-line
|
|
85
|
-
this.onChange = new EventEmitter();
|
|
86
|
-
// eslint-disable-next-line
|
|
87
|
-
this.onLeave = new EventEmitter();
|
|
88
|
-
}
|
|
89
|
-
async ngOnInit() {
|
|
90
|
-
const component = await FMAP(this.meta.type);
|
|
91
|
-
this.fieldContent.viewContainerRef.clear();
|
|
92
|
-
const componentRef = this.fieldContent.viewContainerRef.createComponent(component);
|
|
93
|
-
const field = componentRef.instance;
|
|
94
|
-
if (component.setup) {
|
|
95
|
-
// console.log('setup', {a: this.el.nativeElement.parentNode.parentNode})
|
|
96
|
-
component.setup(field, this.parent, this.meta);
|
|
97
|
-
}
|
|
98
|
-
field.meta = this.meta;
|
|
99
|
-
field.parent = this.parent;
|
|
100
|
-
field.integrationCode = (this.integrationCode || '').toLowerCase();
|
|
101
|
-
field.resourceType = (this.resourceType || '');
|
|
102
|
-
field.index = this.index;
|
|
103
|
-
field.scope = this.scope;
|
|
104
|
-
field.elementRef = this.el;
|
|
105
|
-
field.onChange = this.onChange;
|
|
106
|
-
field.onLeave = this.onLeave;
|
|
107
|
-
field.preview = this.preview;
|
|
108
|
-
field.theme = this.theme;
|
|
109
|
-
field.overlayContainer = this.overlayContainer;
|
|
110
|
-
field.delegate = this.delegate;
|
|
111
|
-
Object.defineProperty(field.meta, 'unset', {
|
|
112
|
-
value: false,
|
|
113
|
-
writable: true,
|
|
114
|
-
configurable: true,
|
|
115
|
-
enumerable: false
|
|
116
|
-
});
|
|
117
|
-
}
|
|
118
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.11", ngImport: i0, type: MetaField, deps: [{ token: i0.ElementRef }], target: i0.ɵɵFactoryTarget.Component }); }
|
|
119
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.11", type: MetaField, selector: "vgip-meta-field", inputs: { meta: "meta", parent: "parent", integrationCode: "integrationCode", resourceType: "resourceType", index: "index", scope: "scope", preview: "preview", theme: "theme", overlayContainer: "overlayContainer", delegate: "delegate" }, outputs: { onChange: "onChange", onLeave: "onLeave" }, viewQueries: [{ propertyName: "fieldContent", first: true, predicate: MetaFieldContentDirective, descendants: true, static: true }], usesInheritance: true, ngImport: i0, template: '<ng-template metaFieldContent>Loading</ng-template>', isInline: true, styles: [":host ::ng-deep label.wrapper{padding:0;pointer-events:initial;position:initial;top:initial;transition:none}@media only screen and (max-width: 575px){:host ::ng-deep .hidden-mobile{display:none}}@media only screen and (min-width: 576px){:host ::ng-deep .hidden-desktop{display:none}}:host ::ng-deep .Vlt-form__element>.Vlt-label,:host ::ng-deep .Vlt-form__element>label>.Vlt-label{margin-top:-6px}:host ::ng-deep .Vlt-form__element .Vlt-form__element__hint{color:var(--vgip-meta-input-hint-color)}:host ::ng-deep .Vlt-form__element .Vlt-input input,:host ::ng-deep .Vlt-form__element .Vlt-select select,:host ::ng-deep .Vlt-form__element .Vlt-textarea textarea{color:var(--vgip-meta-input-color)}@media (hover: none){:host ::ng-deep .Vlt-form__element .Vlt-input input,:host ::ng-deep .Vlt-form__element .Vlt-select select,:host ::ng-deep .Vlt-form__element .Vlt-textarea textarea{font-size:16px}}:host ::ng-deep .Vlt-form__element .Vlt-input input::placeholder,:host ::ng-deep .Vlt-form__element .Vlt-select select::placeholder,:host ::ng-deep .Vlt-form__element .Vlt-textarea textarea::placeholder{color:var(--vgip-meta-input-placeholder-color)}:host ::ng-deep .Vlt-form__element label{color:var(--vgip-meta-input-label-color)}:host ::ng-deep .Vlt-form__element:not(.Vlt-form__element--error) .Vlt-form-error-style,:host ::ng-deep .Vlt-form__element:not(.Vlt-form__element--error) .Vlt-input input,:host ::ng-deep .Vlt-form__element:not(.Vlt-form__element--error) .Vlt-input input.ng-untouched:invalid,:host ::ng-deep .Vlt-form__element:not(.Vlt-form__element--error) .Vlt-select select.ng-untouched:invalid,:host ::ng-deep .Vlt-form__element:not(.Vlt-form__element--error) .Vlt-textarea textarea,:host ::ng-deep .Vlt-form__element:not(.Vlt-form__element--error) .Vlt-textarea textarea.ng-untouched:invalid,:host ::ng-deep .Vlt-form__element:not(.Vlt-form__element--error) .Vlt-custom-select__input:invalid,:host ::ng-deep .Vlt-form__element:not(.Vlt-form__element--error) .Vlt-radio input.ng-untouched:invalid+.Vlt-radio__icon,:host ::ng-deep .Vlt-form__element:not(.Vlt-form__element--error) .Vlt-radio input.ng-untouched:invalid+.Vlt-checkbox__icon,:host ::ng-deep .Vlt-form__element:not(.Vlt-form__element--error) .Vlt-checkbox input.ng-untouched:invalid+.Vlt-radio__icon,:host ::ng-deep .Vlt-form__element:not(.Vlt-form__element--error) .Vlt-checkbox input.ng-untouched:invalid+.Vlt-checkbox__icon{background:var(--vgip-meta-input-bg-color);border-color:var(--vgip-meta-input-border-color)}:host ::ng-deep .Vlt-form__element:not(.Vlt-form__element--error) .Vlt-form-error-style:disabled,:host ::ng-deep .Vlt-form__element:not(.Vlt-form__element--error) .Vlt-input input:disabled,:host ::ng-deep .Vlt-form__element:not(.Vlt-form__element--error) .Vlt-input input.ng-untouched:invalid:disabled,:host ::ng-deep .Vlt-form__element:not(.Vlt-form__element--error) .Vlt-select select.ng-untouched:invalid:disabled,:host ::ng-deep .Vlt-form__element:not(.Vlt-form__element--error) .Vlt-textarea textarea:disabled,:host ::ng-deep .Vlt-form__element:not(.Vlt-form__element--error) .Vlt-textarea textarea.ng-untouched:invalid:disabled,:host ::ng-deep .Vlt-form__element:not(.Vlt-form__element--error) .Vlt-custom-select__input:invalid:disabled,:host ::ng-deep .Vlt-form__element:not(.Vlt-form__element--error) .Vlt-radio input.ng-untouched:invalid+.Vlt-radio__icon:disabled,:host ::ng-deep .Vlt-form__element:not(.Vlt-form__element--error) .Vlt-radio input.ng-untouched:invalid+.Vlt-checkbox__icon:disabled,:host ::ng-deep .Vlt-form__element:not(.Vlt-form__element--error) .Vlt-checkbox input.ng-untouched:invalid+.Vlt-radio__icon:disabled,:host ::ng-deep .Vlt-form__element:not(.Vlt-form__element--error) .Vlt-checkbox input.ng-untouched:invalid+.Vlt-checkbox__icon:disabled{background:var(--vgip-meta-input-disabled-bg-color);border-color:var(--vgip-meta-input-disabled-border-color)}:host ::ng-deep .Vlt-form__element:not(.Vlt-form__element--error) .Vlt-form-error-style:hover,:host ::ng-deep .Vlt-form__element:not(.Vlt-form__element--error) .Vlt-form-error-style:focus,:host ::ng-deep .Vlt-form__element:not(.Vlt-form__element--error) .Vlt-form-error-style .active,:host ::ng-deep .Vlt-form__element:not(.Vlt-form__element--error) .Vlt-input input:hover,:host ::ng-deep .Vlt-form__element:not(.Vlt-form__element--error) .Vlt-input input:focus,:host ::ng-deep .Vlt-form__element:not(.Vlt-form__element--error) .Vlt-input input .active,:host ::ng-deep .Vlt-form__element:not(.Vlt-form__element--error) .Vlt-input input.ng-untouched:invalid:hover,:host ::ng-deep .Vlt-form__element:not(.Vlt-form__element--error) .Vlt-input input.ng-untouched:invalid:focus,:host ::ng-deep .Vlt-form__element:not(.Vlt-form__element--error) .Vlt-input input.ng-untouched:invalid .active,:host ::ng-deep .Vlt-form__element:not(.Vlt-form__element--error) .Vlt-select select.ng-untouched:invalid:hover,:host ::ng-deep .Vlt-form__element:not(.Vlt-form__element--error) .Vlt-select select.ng-untouched:invalid:focus,:host ::ng-deep .Vlt-form__element:not(.Vlt-form__element--error) .Vlt-select select.ng-untouched:invalid .active,:host ::ng-deep .Vlt-form__element:not(.Vlt-form__element--error) .Vlt-textarea textarea:hover,:host ::ng-deep .Vlt-form__element:not(.Vlt-form__element--error) .Vlt-textarea textarea:focus,:host ::ng-deep .Vlt-form__element:not(.Vlt-form__element--error) .Vlt-textarea textarea .active,:host ::ng-deep .Vlt-form__element:not(.Vlt-form__element--error) .Vlt-textarea textarea.ng-untouched:invalid:hover,:host ::ng-deep .Vlt-form__element:not(.Vlt-form__element--error) .Vlt-textarea textarea.ng-untouched:invalid:focus,:host ::ng-deep .Vlt-form__element:not(.Vlt-form__element--error) .Vlt-textarea textarea.ng-untouched:invalid .active,:host ::ng-deep .Vlt-form__element:not(.Vlt-form__element--error) .Vlt-custom-select__input:invalid:hover,:host ::ng-deep .Vlt-form__element:not(.Vlt-form__element--error) .Vlt-custom-select__input:invalid:focus,:host ::ng-deep .Vlt-form__element:not(.Vlt-form__element--error) .Vlt-custom-select__input:invalid .active,:host ::ng-deep .Vlt-form__element:not(.Vlt-form__element--error) .Vlt-radio input.ng-untouched:invalid+.Vlt-radio__icon:hover,:host ::ng-deep .Vlt-form__element:not(.Vlt-form__element--error) .Vlt-radio input.ng-untouched:invalid+.Vlt-radio__icon:focus,:host ::ng-deep .Vlt-form__element:not(.Vlt-form__element--error) .Vlt-radio input.ng-untouched:invalid+.Vlt-radio__icon .active,:host ::ng-deep .Vlt-form__element:not(.Vlt-form__element--error) .Vlt-radio input.ng-untouched:invalid+.Vlt-checkbox__icon:hover,:host ::ng-deep .Vlt-form__element:not(.Vlt-form__element--error) .Vlt-radio input.ng-untouched:invalid+.Vlt-checkbox__icon:focus,:host ::ng-deep .Vlt-form__element:not(.Vlt-form__element--error) .Vlt-radio input.ng-untouched:invalid+.Vlt-checkbox__icon .active,:host ::ng-deep .Vlt-form__element:not(.Vlt-form__element--error) .Vlt-checkbox input.ng-untouched:invalid+.Vlt-radio__icon:hover,:host ::ng-deep .Vlt-form__element:not(.Vlt-form__element--error) .Vlt-checkbox input.ng-untouched:invalid+.Vlt-radio__icon:focus,:host ::ng-deep .Vlt-form__element:not(.Vlt-form__element--error) .Vlt-checkbox input.ng-untouched:invalid+.Vlt-radio__icon .active,:host ::ng-deep .Vlt-form__element:not(.Vlt-form__element--error) .Vlt-checkbox input.ng-untouched:invalid+.Vlt-checkbox__icon:hover,:host ::ng-deep .Vlt-form__element:not(.Vlt-form__element--error) .Vlt-checkbox input.ng-untouched:invalid+.Vlt-checkbox__icon:focus,:host ::ng-deep .Vlt-form__element:not(.Vlt-form__element--error) .Vlt-checkbox input.ng-untouched:invalid+.Vlt-checkbox__icon .active{border-color:var(--vgip-meta-input-active-border-color)}:host ::ng-deep .Vlt-form__element.Vlt-form__element--error .Vlt-input input:focus,:host ::ng-deep .Vlt-form__element.Vlt-form__element--error .Vlt-select select:focus,:host ::ng-deep .Vlt-form__element.Vlt-form__element--error .Vlt-textarea textarea:focus,:host ::ng-deep .Vlt-form__element.Vlt-form__element--error .Vlt-custom-select__input:focus{border-color:#f25a6b}:host ::ng-deep .Vlt-dropdown__link{padding:12px}:host ::ng-deep .Vlt-dropdown__link svg{margin-left:0}:host ::ng-deep .Vlt-dropdown__link small{line-height:inherit}:host ::ng-deep .Vlt-dropdown__link.Vlt-dropdown__link--selected:after{width:20px;top:14px;background:var(--vgip-meta-dropdown-check-icon) no-repeat right center;background-size:contain}:host ::ng-deep .Vlt-dropdown__block{padding:2px 16px}:host ::ng-deep .meta-field-reference .Vlt-dropdown__link.has-type.Vlt-dropdown__link--selected:after{position:initial}:host ::ng-deep .Vlt-dropdown__panel__content{background:var(--vgip-meta-dropdown-bg-color);box-shadow:var(--vgip-meta-dropdown-shadow)}:host ::ng-deep .Vlt-dropdown__panel__content .Vlt-dropdown__link,:host ::ng-deep .Vlt-dropdown__panel__content .Vlt-dropdown__block{color:var(--vgip-meta-input-color)}:host ::ng-deep .Vlt-dropdown__panel__content .Vlt-dropdown__scroll::-webkit-scrollbar{width:8px}:host ::ng-deep .Vlt-dropdown__panel__content .Vlt-dropdown__scroll::-webkit-scrollbar-thumb{background-color:var(--vgip-meta-scrollbar-color);border:2px solid transparent;border-radius:6px;background-clip:content-box}:host ::ng-deep .Vlt-dropdown__panel__content.suggestions{background:var(--vgip-meta-suggestions-bg-color)}:host ::ng-deep .Vlt-dropdown__panel{z-index:999}:host ::ng-deep .Vlt-dropdown__panel__content--scroll-area{padding:0}:host ::ng-deep .Vlt-composite__append--icon{bottom:0;height:initial}:host ::ng-deep .search-progress{display:block;position:relative;width:100%;height:3px;margin-top:-3px;padding-top:0!important;margin-bottom:0!important}:host ::ng-deep .search-progress .container{display:block;position:relative;overflow:hidden;width:100%;height:3px;transform:translate(0) scale(1)}:host ::ng-deep .search-progress .container .bar{position:absolute;left:0;top:0;bottom:0;width:100%;height:3px;border-radius:50%;transition:all .3s linear;animation:query .9s infinite cubic-bezier(.3,.6,.6,1)}@keyframes query{0%{opacity:1;transform:translate(35%) scaleX(.3)}to{opacity:0;transform:translate(-50%) scaleX(0)}}::ng-deep vgip-meta-field.shown vgip-meta-field{display:initial}::ng-deep vgip-meta-field .vgip-meta-field-preview{display:flex;flex-direction:row;padding-bottom:5px;padding-top:5px;margin-left:10px;border-bottom:1px solid #e7ebee}::ng-deep vgip-meta-field .vgip-meta-field-preview .vgip-meta-field-label{flex:1 1 100%;max-width:20%;max-height:100%;box-sizing:border-box;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;margin-right:2px}::ng-deep vgip-meta-field .vgip-meta-field-preview .vgip-meta-field-value{min-width:0;width:0;box-sizing:border-box;flex:1;font-weight:700}\n"], dependencies: [{ kind: "directive", type: MetaFieldContentDirective, selector: "[metaFieldContent]" }] }); }
|
|
120
|
-
}
|
|
121
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.11", ngImport: i0, type: MetaField, decorators: [{
|
|
122
|
-
type: Component,
|
|
123
|
-
args: [{ selector: 'vgip-meta-field', template: '<ng-template metaFieldContent>Loading</ng-template>', styles: [":host ::ng-deep label.wrapper{padding:0;pointer-events:initial;position:initial;top:initial;transition:none}@media only screen and (max-width: 575px){:host ::ng-deep .hidden-mobile{display:none}}@media only screen and (min-width: 576px){:host ::ng-deep .hidden-desktop{display:none}}:host ::ng-deep .Vlt-form__element>.Vlt-label,:host ::ng-deep .Vlt-form__element>label>.Vlt-label{margin-top:-6px}:host ::ng-deep .Vlt-form__element .Vlt-form__element__hint{color:var(--vgip-meta-input-hint-color)}:host ::ng-deep .Vlt-form__element .Vlt-input input,:host ::ng-deep .Vlt-form__element .Vlt-select select,:host ::ng-deep .Vlt-form__element .Vlt-textarea textarea{color:var(--vgip-meta-input-color)}@media (hover: none){:host ::ng-deep .Vlt-form__element .Vlt-input input,:host ::ng-deep .Vlt-form__element .Vlt-select select,:host ::ng-deep .Vlt-form__element .Vlt-textarea textarea{font-size:16px}}:host ::ng-deep .Vlt-form__element .Vlt-input input::placeholder,:host ::ng-deep .Vlt-form__element .Vlt-select select::placeholder,:host ::ng-deep .Vlt-form__element .Vlt-textarea textarea::placeholder{color:var(--vgip-meta-input-placeholder-color)}:host ::ng-deep .Vlt-form__element label{color:var(--vgip-meta-input-label-color)}:host ::ng-deep .Vlt-form__element:not(.Vlt-form__element--error) .Vlt-form-error-style,:host ::ng-deep .Vlt-form__element:not(.Vlt-form__element--error) .Vlt-input input,:host ::ng-deep .Vlt-form__element:not(.Vlt-form__element--error) .Vlt-input input.ng-untouched:invalid,:host ::ng-deep .Vlt-form__element:not(.Vlt-form__element--error) .Vlt-select select.ng-untouched:invalid,:host ::ng-deep .Vlt-form__element:not(.Vlt-form__element--error) .Vlt-textarea textarea,:host ::ng-deep .Vlt-form__element:not(.Vlt-form__element--error) .Vlt-textarea textarea.ng-untouched:invalid,:host ::ng-deep .Vlt-form__element:not(.Vlt-form__element--error) .Vlt-custom-select__input:invalid,:host ::ng-deep .Vlt-form__element:not(.Vlt-form__element--error) .Vlt-radio input.ng-untouched:invalid+.Vlt-radio__icon,:host ::ng-deep .Vlt-form__element:not(.Vlt-form__element--error) .Vlt-radio input.ng-untouched:invalid+.Vlt-checkbox__icon,:host ::ng-deep .Vlt-form__element:not(.Vlt-form__element--error) .Vlt-checkbox input.ng-untouched:invalid+.Vlt-radio__icon,:host ::ng-deep .Vlt-form__element:not(.Vlt-form__element--error) .Vlt-checkbox input.ng-untouched:invalid+.Vlt-checkbox__icon{background:var(--vgip-meta-input-bg-color);border-color:var(--vgip-meta-input-border-color)}:host ::ng-deep .Vlt-form__element:not(.Vlt-form__element--error) .Vlt-form-error-style:disabled,:host ::ng-deep .Vlt-form__element:not(.Vlt-form__element--error) .Vlt-input input:disabled,:host ::ng-deep .Vlt-form__element:not(.Vlt-form__element--error) .Vlt-input input.ng-untouched:invalid:disabled,:host ::ng-deep .Vlt-form__element:not(.Vlt-form__element--error) .Vlt-select select.ng-untouched:invalid:disabled,:host ::ng-deep .Vlt-form__element:not(.Vlt-form__element--error) .Vlt-textarea textarea:disabled,:host ::ng-deep .Vlt-form__element:not(.Vlt-form__element--error) .Vlt-textarea textarea.ng-untouched:invalid:disabled,:host ::ng-deep .Vlt-form__element:not(.Vlt-form__element--error) .Vlt-custom-select__input:invalid:disabled,:host ::ng-deep .Vlt-form__element:not(.Vlt-form__element--error) .Vlt-radio input.ng-untouched:invalid+.Vlt-radio__icon:disabled,:host ::ng-deep .Vlt-form__element:not(.Vlt-form__element--error) .Vlt-radio input.ng-untouched:invalid+.Vlt-checkbox__icon:disabled,:host ::ng-deep .Vlt-form__element:not(.Vlt-form__element--error) .Vlt-checkbox input.ng-untouched:invalid+.Vlt-radio__icon:disabled,:host ::ng-deep .Vlt-form__element:not(.Vlt-form__element--error) .Vlt-checkbox input.ng-untouched:invalid+.Vlt-checkbox__icon:disabled{background:var(--vgip-meta-input-disabled-bg-color);border-color:var(--vgip-meta-input-disabled-border-color)}:host ::ng-deep .Vlt-form__element:not(.Vlt-form__element--error) .Vlt-form-error-style:hover,:host ::ng-deep .Vlt-form__element:not(.Vlt-form__element--error) .Vlt-form-error-style:focus,:host ::ng-deep .Vlt-form__element:not(.Vlt-form__element--error) .Vlt-form-error-style .active,:host ::ng-deep .Vlt-form__element:not(.Vlt-form__element--error) .Vlt-input input:hover,:host ::ng-deep .Vlt-form__element:not(.Vlt-form__element--error) .Vlt-input input:focus,:host ::ng-deep .Vlt-form__element:not(.Vlt-form__element--error) .Vlt-input input .active,:host ::ng-deep .Vlt-form__element:not(.Vlt-form__element--error) .Vlt-input input.ng-untouched:invalid:hover,:host ::ng-deep .Vlt-form__element:not(.Vlt-form__element--error) .Vlt-input input.ng-untouched:invalid:focus,:host ::ng-deep .Vlt-form__element:not(.Vlt-form__element--error) .Vlt-input input.ng-untouched:invalid .active,:host ::ng-deep .Vlt-form__element:not(.Vlt-form__element--error) .Vlt-select select.ng-untouched:invalid:hover,:host ::ng-deep .Vlt-form__element:not(.Vlt-form__element--error) .Vlt-select select.ng-untouched:invalid:focus,:host ::ng-deep .Vlt-form__element:not(.Vlt-form__element--error) .Vlt-select select.ng-untouched:invalid .active,:host ::ng-deep .Vlt-form__element:not(.Vlt-form__element--error) .Vlt-textarea textarea:hover,:host ::ng-deep .Vlt-form__element:not(.Vlt-form__element--error) .Vlt-textarea textarea:focus,:host ::ng-deep .Vlt-form__element:not(.Vlt-form__element--error) .Vlt-textarea textarea .active,:host ::ng-deep .Vlt-form__element:not(.Vlt-form__element--error) .Vlt-textarea textarea.ng-untouched:invalid:hover,:host ::ng-deep .Vlt-form__element:not(.Vlt-form__element--error) .Vlt-textarea textarea.ng-untouched:invalid:focus,:host ::ng-deep .Vlt-form__element:not(.Vlt-form__element--error) .Vlt-textarea textarea.ng-untouched:invalid .active,:host ::ng-deep .Vlt-form__element:not(.Vlt-form__element--error) .Vlt-custom-select__input:invalid:hover,:host ::ng-deep .Vlt-form__element:not(.Vlt-form__element--error) .Vlt-custom-select__input:invalid:focus,:host ::ng-deep .Vlt-form__element:not(.Vlt-form__element--error) .Vlt-custom-select__input:invalid .active,:host ::ng-deep .Vlt-form__element:not(.Vlt-form__element--error) .Vlt-radio input.ng-untouched:invalid+.Vlt-radio__icon:hover,:host ::ng-deep .Vlt-form__element:not(.Vlt-form__element--error) .Vlt-radio input.ng-untouched:invalid+.Vlt-radio__icon:focus,:host ::ng-deep .Vlt-form__element:not(.Vlt-form__element--error) .Vlt-radio input.ng-untouched:invalid+.Vlt-radio__icon .active,:host ::ng-deep .Vlt-form__element:not(.Vlt-form__element--error) .Vlt-radio input.ng-untouched:invalid+.Vlt-checkbox__icon:hover,:host ::ng-deep .Vlt-form__element:not(.Vlt-form__element--error) .Vlt-radio input.ng-untouched:invalid+.Vlt-checkbox__icon:focus,:host ::ng-deep .Vlt-form__element:not(.Vlt-form__element--error) .Vlt-radio input.ng-untouched:invalid+.Vlt-checkbox__icon .active,:host ::ng-deep .Vlt-form__element:not(.Vlt-form__element--error) .Vlt-checkbox input.ng-untouched:invalid+.Vlt-radio__icon:hover,:host ::ng-deep .Vlt-form__element:not(.Vlt-form__element--error) .Vlt-checkbox input.ng-untouched:invalid+.Vlt-radio__icon:focus,:host ::ng-deep .Vlt-form__element:not(.Vlt-form__element--error) .Vlt-checkbox input.ng-untouched:invalid+.Vlt-radio__icon .active,:host ::ng-deep .Vlt-form__element:not(.Vlt-form__element--error) .Vlt-checkbox input.ng-untouched:invalid+.Vlt-checkbox__icon:hover,:host ::ng-deep .Vlt-form__element:not(.Vlt-form__element--error) .Vlt-checkbox input.ng-untouched:invalid+.Vlt-checkbox__icon:focus,:host ::ng-deep .Vlt-form__element:not(.Vlt-form__element--error) .Vlt-checkbox input.ng-untouched:invalid+.Vlt-checkbox__icon .active{border-color:var(--vgip-meta-input-active-border-color)}:host ::ng-deep .Vlt-form__element.Vlt-form__element--error .Vlt-input input:focus,:host ::ng-deep .Vlt-form__element.Vlt-form__element--error .Vlt-select select:focus,:host ::ng-deep .Vlt-form__element.Vlt-form__element--error .Vlt-textarea textarea:focus,:host ::ng-deep .Vlt-form__element.Vlt-form__element--error .Vlt-custom-select__input:focus{border-color:#f25a6b}:host ::ng-deep .Vlt-dropdown__link{padding:12px}:host ::ng-deep .Vlt-dropdown__link svg{margin-left:0}:host ::ng-deep .Vlt-dropdown__link small{line-height:inherit}:host ::ng-deep .Vlt-dropdown__link.Vlt-dropdown__link--selected:after{width:20px;top:14px;background:var(--vgip-meta-dropdown-check-icon) no-repeat right center;background-size:contain}:host ::ng-deep .Vlt-dropdown__block{padding:2px 16px}:host ::ng-deep .meta-field-reference .Vlt-dropdown__link.has-type.Vlt-dropdown__link--selected:after{position:initial}:host ::ng-deep .Vlt-dropdown__panel__content{background:var(--vgip-meta-dropdown-bg-color);box-shadow:var(--vgip-meta-dropdown-shadow)}:host ::ng-deep .Vlt-dropdown__panel__content .Vlt-dropdown__link,:host ::ng-deep .Vlt-dropdown__panel__content .Vlt-dropdown__block{color:var(--vgip-meta-input-color)}:host ::ng-deep .Vlt-dropdown__panel__content .Vlt-dropdown__scroll::-webkit-scrollbar{width:8px}:host ::ng-deep .Vlt-dropdown__panel__content .Vlt-dropdown__scroll::-webkit-scrollbar-thumb{background-color:var(--vgip-meta-scrollbar-color);border:2px solid transparent;border-radius:6px;background-clip:content-box}:host ::ng-deep .Vlt-dropdown__panel__content.suggestions{background:var(--vgip-meta-suggestions-bg-color)}:host ::ng-deep .Vlt-dropdown__panel{z-index:999}:host ::ng-deep .Vlt-dropdown__panel__content--scroll-area{padding:0}:host ::ng-deep .Vlt-composite__append--icon{bottom:0;height:initial}:host ::ng-deep .search-progress{display:block;position:relative;width:100%;height:3px;margin-top:-3px;padding-top:0!important;margin-bottom:0!important}:host ::ng-deep .search-progress .container{display:block;position:relative;overflow:hidden;width:100%;height:3px;transform:translate(0) scale(1)}:host ::ng-deep .search-progress .container .bar{position:absolute;left:0;top:0;bottom:0;width:100%;height:3px;border-radius:50%;transition:all .3s linear;animation:query .9s infinite cubic-bezier(.3,.6,.6,1)}@keyframes query{0%{opacity:1;transform:translate(35%) scaleX(.3)}to{opacity:0;transform:translate(-50%) scaleX(0)}}::ng-deep vgip-meta-field.shown vgip-meta-field{display:initial}::ng-deep vgip-meta-field .vgip-meta-field-preview{display:flex;flex-direction:row;padding-bottom:5px;padding-top:5px;margin-left:10px;border-bottom:1px solid #e7ebee}::ng-deep vgip-meta-field .vgip-meta-field-preview .vgip-meta-field-label{flex:1 1 100%;max-width:20%;max-height:100%;box-sizing:border-box;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;margin-right:2px}::ng-deep vgip-meta-field .vgip-meta-field-preview .vgip-meta-field-value{min-width:0;width:0;box-sizing:border-box;flex:1;font-weight:700}\n"] }]
|
|
124
|
-
}], ctorParameters: function () { return [{ type: i0.ElementRef }]; }, propDecorators: { meta: [{
|
|
125
|
-
type: Input
|
|
126
|
-
}], parent: [{
|
|
127
|
-
type: Input
|
|
128
|
-
}], integrationCode: [{
|
|
129
|
-
type: Input
|
|
130
|
-
}], resourceType: [{
|
|
131
|
-
type: Input
|
|
132
|
-
}], index: [{
|
|
133
|
-
type: Input
|
|
134
|
-
}], scope: [{
|
|
135
|
-
type: Input
|
|
136
|
-
}], preview: [{
|
|
137
|
-
type: Input
|
|
138
|
-
}], theme: [{
|
|
139
|
-
type: Input
|
|
140
|
-
}], overlayContainer: [{
|
|
141
|
-
type: Input
|
|
142
|
-
}], delegate: [{
|
|
143
|
-
type: Input
|
|
144
|
-
}], onChange: [{
|
|
145
|
-
type: Output
|
|
146
|
-
}], onLeave: [{
|
|
147
|
-
type: Output
|
|
148
|
-
}], fieldContent: [{
|
|
149
|
-
type: ViewChild,
|
|
150
|
-
args: [MetaFieldContentDirective, { static: true }]
|
|
151
|
-
}] } });
|
|
152
|
-
|
|
153
|
-
export { MetaField as M, MetaFieldContentDirective as a };
|
|
154
|
-
//# sourceMappingURL=vgip-meta-ui-index-fb7f54f5.mjs.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"vgip-meta-ui-index-fb7f54f5.mjs","sources":["../../../projects/meta-ui/src/lib/metaField/index.ts"],"sourcesContent":["import { Component, Directive, ElementRef, EventEmitter, Input, OnInit, Output, ViewChild, ViewContainerRef } from '@angular/core';\nimport { FieldAbstract } from '../fieldAbstract';\n\nconst FMAP = async (fType) => {\n switch (fType) {\n case '':\n case null:\n case undefined:\n case 'number':\n // case 'datetime':\n // case 'time':\n // case 'date':\n case 'string': { // eslint-disable-line no-fallthrough\n // return FieldInput;\n return import('../fieldInput').then(m => m.FieldInput);\n }\n case 'textarea':\n case 'text': {\n // return FieldText\n return import('../fieldText').then(m => m.FieldText);\n }\n case 'select':\n case 'options': {\n // return FieldSelect\n return import('../fieldSelect').then(m => m.FieldSelect);\n }\n case 'reference': {\n // return FieldReference;\n return import('../fieldReference').then(m => m.FieldReference);\n }\n case 'composite': {\n // return FieldComposite;\n return import('../fieldComposite').then(m => m.FieldComposite);\n }\n case 'boolean': {\n // return FieldBoolean;\n return import('../fieldBoolean').then(m => m.FieldBoolean);\n }\n case 'radio': {\n // return FieldRadio;\n return import('../fieldRadio').then(m => m.FieldRadio);\n }\n case 'list': {\n // return FieldList;\n return import('../fieldList').then(m => m.FieldList);\n }\n case 'richtext': {\n // return FieldRichtext;\n return import('../fieldRichtext').then(m => m.FieldRichtext);\n }\n case 'datetime':\n case 'time':\n case 'date': {\n // return FieldDatetime;\n return import('../fieldDatetime').then(m => m.FieldDatetime);\n }\n case 'hidden': {\n return import('../fieldHidden').then(m => m.FieldHidden);\n }\n default: {\n // return FieldUnknown;\n return import('../fieldUnknown').then(m => m.FieldUnknown);\n }\n }\n};\n\n@Directive({\n selector: '[metaFieldContent]'\n})\nexport class MetaFieldContentDirective {\n constructor(public viewContainerRef: ViewContainerRef) { }\n}\n\n@Component({\n selector: 'vgip-meta-field',\n template: '<ng-template metaFieldContent>Loading</ng-template>',\n styleUrls: ['../field.scss']\n})\nexport class MetaField extends FieldAbstract implements OnInit {\n @Input() meta: any;\n @Input() parent: any;\n @Input() integrationCode: any;\n @Input() resourceType: any;\n @Input() index: number;\n @Input() scope: string;\n @Input() preview: boolean;\n @Input() theme: string;\n @Input() overlayContainer: HTMLElement;\n @Input() delegate: any;\n\n // eslint-disable-next-line\n @Output() onChange = new EventEmitter();\n // eslint-disable-next-line\n @Output() onLeave = new EventEmitter();\n\n @ViewChild(MetaFieldContentDirective, { static: true }) fieldContent: MetaFieldContentDirective;\n\n constructor(private el: ElementRef) {\n super();\n }\n\n async ngOnInit() {\n const component = await FMAP(this.meta.type);\n this.fieldContent.viewContainerRef.clear();\n const componentRef = this.fieldContent.viewContainerRef.createComponent(component);\n const field: FieldAbstract = componentRef.instance;\n if (component.setup) {\n // console.log('setup', {a: this.el.nativeElement.parentNode.parentNode})\n component.setup(field, this.parent, this.meta);\n }\n field.meta = this.meta;\n field.parent = this.parent;\n field.integrationCode = (this.integrationCode || '').toLowerCase();\n field.resourceType = (this.resourceType || '');\n field.index = this.index;\n field.scope = this.scope;\n field.elementRef = this.el;\n field.onChange = this.onChange;\n field.onLeave = this.onLeave;\n field.preview = this.preview;\n field.theme = this.theme;\n field.overlayContainer = this.overlayContainer;\n field.delegate = this.delegate;\n Object.defineProperty(field.meta, 'unset', {\n value: false,\n writable: true,\n configurable: true,\n enumerable: false\n });\n }\n}\n"],"names":[],"mappings":";;;;AAGA,MAAM,IAAI,GAAG,OAAO,KAAK,KAAI;AAC3B,IAAA,QAAQ,KAAK;AACX,QAAA,KAAK,EAAE,CAAC;AACR,QAAA,KAAK,IAAI,CAAC;AACV,QAAA,KAAK,SAAS,CAAC;AACf,QAAA,KAAK,QAAQ,CAAC;;;;AAId,QAAA,KAAK,Q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,EAAA,eAAA,EAAA,IAAA,EAAA,QAAA,EAAA,EAAA,EAAA,QAAA,EAAA,qDAAqD,0hVANpD,yBAAyB,EAAA,QAAA,EAAA,oBAAA,EAAA,CAAA,EAAA,CAAA,CAAA,EAAA;;4FASzB,SAAS,EAAA,UAAA,EAAA,CAAA;kBALrB,SAAS;AACE,YAAA,IAAA,EAAA,CAAA,EAAA,QAAA,EAAA,iBAAiB,YACjB,qDAAqD,EAAA,MAAA,EAAA,CAAA,k9UAAA,CAAA,EAAA,CAAA;iGAItD,IAAI,EAAA,CAAA;sBAAZ,KAAK;gBACG,MAAM,EAAA,CAAA;sBAAd,KAAK;gBACG,eAAe,EAAA,CAAA;sBAAvB,KAAK;gBACG,YAAY,EAAA,CAAA;sBAApB,KAAK;gBACG,KAAK,EAAA,CAAA;sBAAb,KAAK;gBACG,KAAK,EAAA,CAAA;sBAAb,KAAK;gBACG,OAAO,EAAA,CAAA;sBAAf,KAAK;gBACG,KAAK,EAAA,CAAA;sBAAb,KAAK;gBACG,gBAAgB,EAAA,CAAA;sBAAxB,KAAK;gBACG,QAAQ,EAAA,CAAA;sBAAhB,KAAK;gBAGI,QAAQ,EAAA,CAAA;sBAAjB,MAAM;gBAEG,OAAO,EAAA,CAAA;sBAAhB,MAAM;gBAEiD,YAAY,EAAA,CAAA;sBAAnE,SAAS;AAAC,gBAAA,IAAA,EAAA,CAAA,yBAAyB,EAAE,EAAE,MAAM,EAAE,IAAI,EAAE,CAAA;;;;;"}
|
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
import * as i0 from '@angular/core';
|
|
2
|
-
import { Pipe } from '@angular/core';
|
|
3
|
-
|
|
4
|
-
/*
|
|
5
|
-
* @Author: Alexander.Vangelov@vonage.com
|
|
6
|
-
* @Date: 2019-09-19 17:35:19
|
|
7
|
-
* @Last Modified by: Alexander.Vangelov@vonage.com
|
|
8
|
-
* @Last Modified time: 2019-11-05 13:46:26
|
|
9
|
-
*/
|
|
10
|
-
class MetaModelPipe {
|
|
11
|
-
transform(value) {
|
|
12
|
-
return value;
|
|
13
|
-
}
|
|
14
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.11", ngImport: i0, type: MetaModelPipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe }); }
|
|
15
|
-
static { this.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "16.2.11", ngImport: i0, type: MetaModelPipe, name: "metaModel" }); }
|
|
16
|
-
}
|
|
17
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.11", ngImport: i0, type: MetaModelPipe, decorators: [{
|
|
18
|
-
type: Pipe,
|
|
19
|
-
args: [{
|
|
20
|
-
name: 'metaModel',
|
|
21
|
-
pure: true
|
|
22
|
-
}]
|
|
23
|
-
}] });
|
|
24
|
-
|
|
25
|
-
export { MetaModelPipe as M };
|
|
26
|
-
//# sourceMappingURL=vgip-meta-ui-metaModel.pipe-6b803e66.mjs.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"vgip-meta-ui-metaModel.pipe-6b803e66.mjs","sources":["../../../projects/meta-ui/src/lib/common/metaModel.pipe.ts"],"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: 2019-11-05 13:46:26\n */\n\nimport { Pipe, PipeTransform } from '@angular/core';\n\n@Pipe({\n name: 'metaModel',\n pure: true\n})\nexport class MetaModelPipe implements PipeTransform {\n transform(value: any): any {\n return value;\n }\n}\n"],"names":[],"mappings":";;;AAAA;;;;;AAKG;MAQU,aAAa,CAAA;AACxB,IAAA,SAAS,CAAC,KAAU,EAAA;AAClB,QAAA,OAAO,KAAK,CAAC;KACd;+GAHU,aAAa,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,IAAA,EAAA,CAAA,CAAA,EAAA;6GAAb,aAAa,EAAA,IAAA,EAAA,WAAA,EAAA,CAAA,CAAA,EAAA;;4FAAb,aAAa,EAAA,UAAA,EAAA,CAAA;kBAJzB,IAAI;AAAC,YAAA,IAAA,EAAA,CAAA;AACJ,oBAAA,IAAI,EAAE,WAAW;AACjB,oBAAA,IAAI,EAAE,IAAI;AACX,iBAAA,CAAA;;;;;"}
|
|
@@ -1,51 +0,0 @@
|
|
|
1
|
-
/*
|
|
2
|
-
* @Author: Alexander.Vangelov@vonage.com
|
|
3
|
-
* @Date: 2019-09-19 17:35:19
|
|
4
|
-
* @Last Modified by: Alexander.Vangelov@vonage.com
|
|
5
|
-
* @Last Modified time: 2020-02-18 15:41:17
|
|
6
|
-
*/
|
|
7
|
-
const wordToMilliseconds = {
|
|
8
|
-
now: 0,
|
|
9
|
-
seconds: 1000,
|
|
10
|
-
minutes: 1000 * 60,
|
|
11
|
-
hours: 1000 * 60 * 60,
|
|
12
|
-
days: 1000 * 60 * 60 * 24
|
|
13
|
-
};
|
|
14
|
-
const protoTime = (text) => {
|
|
15
|
-
const protoMatch = (text || '').match(/^(-?)((\d+).)?(\S+)$/);
|
|
16
|
-
if (protoMatch) {
|
|
17
|
-
const negative = protoMatch[1] === '-';
|
|
18
|
-
const units = parseInt(protoMatch[3], 10) * (wordToMilliseconds[protoMatch[4]] || 0);
|
|
19
|
-
if (negative) {
|
|
20
|
-
return -units;
|
|
21
|
-
}
|
|
22
|
-
else {
|
|
23
|
-
return units;
|
|
24
|
-
}
|
|
25
|
-
}
|
|
26
|
-
};
|
|
27
|
-
const relativeTimeBuilder = (type, value, step = 0, base) => {
|
|
28
|
-
let timestamp = base || new Date().getTime();
|
|
29
|
-
const offset = protoTime(value);
|
|
30
|
-
if (offset) {
|
|
31
|
-
timestamp = timestamp + offset;
|
|
32
|
-
}
|
|
33
|
-
if (step) {
|
|
34
|
-
if (type === 'date') { // step is days
|
|
35
|
-
const mod = timestamp % (step * 1000 * 60 * 60 * 24);
|
|
36
|
-
if (mod) {
|
|
37
|
-
timestamp = timestamp - mod + (step * 1000 * 60 * 60 * 24);
|
|
38
|
-
}
|
|
39
|
-
}
|
|
40
|
-
else { // step is seconds
|
|
41
|
-
const mod = timestamp % (step * 1000);
|
|
42
|
-
if (mod) {
|
|
43
|
-
timestamp = timestamp - mod + (step * 1000);
|
|
44
|
-
}
|
|
45
|
-
}
|
|
46
|
-
}
|
|
47
|
-
return timestamp;
|
|
48
|
-
};
|
|
49
|
-
|
|
50
|
-
export { relativeTimeBuilder as r };
|
|
51
|
-
//# sourceMappingURL=vgip-meta-ui-relativeTimeBuilder-31791ce4.mjs.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"vgip-meta-ui-relativeTimeBuilder-31791ce4.mjs","sources":["../../../projects/meta-ui/src/lib/common/utils/relativeTimeBuilder.ts"],"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-02-18 15:41:17\n */\n\nconst wordToMilliseconds = {\n now: 0,\n seconds: 1000,\n minutes: 1000 * 60,\n hours: 1000 * 60 * 60,\n days: 1000 * 60 * 60 * 24\n};\n\nconst protoTime = (text) => { // protocol is: 30.minutes, -4.hours, 3.days, etc...\n const protoMatch = (text || '').match(/^(-?)((\\d+).)?(\\S+)$/);\n if (protoMatch) {\n const negative = protoMatch[1] === '-';\n const units = parseInt(protoMatch[3], 10) * (wordToMilliseconds[protoMatch[4]] || 0);\n if (negative) {\n return -units;\n } else {\n return units;\n }\n }\n};\n\nexport const relativeTimeBuilder = (type: 'date' | 'datetime' | 'datetime-local' | 'time', value: string, step = 0, base?: number) => {\n let timestamp = base || new Date().getTime();\n const offset = protoTime(value);\n if (offset) {\n timestamp = timestamp + offset;\n }\n if (step) {\n if (type === 'date') { // step is days\n const mod = timestamp % (step * 1000 * 60 * 60 * 24);\n if (mod) {\n timestamp = timestamp - mod + (step * 1000 * 60 * 60 * 24);\n }\n } else { // step is seconds\n const mod = timestamp % (step * 1000);\n if (mod) {\n timestamp = timestamp - mod + (step * 1000);\n }\n }\n }\n return timestamp;\n};\n"],"names":[],"mappings":"AAAA;;;;;AAKG;AAEH,MAAM,kBAAkB,GAAG;AACzB,IAAA,GAAG,EAAE,CAAC;AACN,IAAA,OAAO,EAAE,IAAI;IACb,OAAO,EAAE,IAAI,GAAG,EAAE;AAClB,IAAA,KAAK,EAAE,IAAI,GAAG,EAAE,GAAG,EAAE;AACrB,IAAA,IAAI,EAAE,IAAI,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE;CAC1B,CAAC;AAEF,MAAM,SAAS,GAAG,CAAC,IAAI,KAAI;AACzB,IAAA,MAAM,UAAU,GAAG,CAAC,IAAI,IAAI,EAAE,EAAE,KAAK,CAAC,sBAAsB,CAAC,CAAC;AAC9D,IAAA,IAAI,UAAU,EAAE;QACd,MAAM,QAAQ,GAAG,UAAU,CAAC,CAAC,CAAC,KAAK,GAAG,CAAC;QACvC,MAAM,KAAK,GAAG,QAAQ,CAAC,UAAU,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,IAAI,kBAAkB,CAAC,UAAU,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC;AACrF,QAAA,IAAI,QAAQ,EAAE;YACZ,OAAO,CAAC,KAAK,CAAC;AACf,SAAA;AAAM,aAAA;AACL,YAAA,OAAO,KAAK,CAAC;AACd,SAAA;AACF,KAAA;AACH,CAAC,CAAC;AAEK,MAAM,mBAAmB,GAAG,CAAC,IAAqD,EAAE,KAAa,EAAE,IAAI,GAAG,CAAC,EAAE,IAAa,KAAI;IACnI,IAAI,SAAS,GAAG,IAAI,IAAI,IAAI,IAAI,EAAE,CAAC,OAAO,EAAE,CAAC;AAC7C,IAAA,MAAM,MAAM,GAAG,SAAS,CAAC,KAAK,CAAC,CAAC;AAChC,IAAA,IAAI,MAAM,EAAE;AACV,QAAA,SAAS,GAAG,SAAS,GAAG,MAAM,CAAC;AAChC,KAAA;AACD,IAAA,IAAI,IAAI,EAAE;AACR,QAAA,IAAI,IAAI,KAAK,MAAM,EAAE;AACnB,YAAA,MAAM,GAAG,GAAG,SAAS,IAAI,IAAI,GAAG,IAAI,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,CAAC,CAAC;AACrD,YAAA,IAAI,GAAG,EAAE;AACP,gBAAA,SAAS,GAAG,SAAS,GAAG,GAAG,IAAI,IAAI,GAAG,IAAI,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,CAAC,CAAC;AAC5D,aAAA;AACF,SAAA;AAAM,aAAA;YACL,MAAM,GAAG,GAAG,SAAS,IAAI,IAAI,GAAG,IAAI,CAAC,CAAC;AACtC,YAAA,IAAI,GAAG,EAAE;gBACP,SAAS,GAAG,SAAS,GAAG,GAAG,IAAI,IAAI,GAAG,IAAI,CAAC,CAAC;AAC7C,aAAA;AACF,SAAA;AACF,KAAA;AACD,IAAA,OAAO,SAAS,CAAC;AACnB;;;;"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare const booleanFieldNormalizer: (field: any) => any;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare const datetimeFieldNormalizer: (field: any) => any;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare const fieldNormalizer: (field: any, uniqFieldNames: Array<string>) => any;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare const numberFieldNormalizer: (field: any) => any;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare const optionsFieldNormalizer: (field: any) => any;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare const radioFieldNormalizer: (field: any) => any;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare const referenceFieldNormalizer: (field: any) => any;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare const richtextFieldNormalizer: (field: any) => any;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare const stringFieldNormalizer: (field: any) => any;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare const textFieldNormalizer: (field: any) => any;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare const uniqueNameFilter: (fields: Array<any>, uniqFieldNames: Array<string>, allowDuplicates?: boolean) => any[];
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import { ElementRef, AfterContentInit } from '@angular/core';
|
|
2
|
-
import * as i0 from "@angular/core";
|
|
3
|
-
export declare class MetaAutofocusDirective implements AfterContentInit {
|
|
4
|
-
private elementRef;
|
|
5
|
-
vgipMetaFormAutofocus: boolean;
|
|
6
|
-
constructor(elementRef: ElementRef);
|
|
7
|
-
ngAfterContentInit(): void;
|
|
8
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<MetaAutofocusDirective, never>;
|
|
9
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<MetaAutofocusDirective, "[vgipMetaFormAutofocus]", never, { "vgipMetaFormAutofocus": { "alias": "vgipMetaFormAutofocus"; "required": false; }; }, {}, never, never, false, never>;
|
|
10
|
-
}
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import { PipeTransform } from '@angular/core';
|
|
2
|
-
import { DomSanitizer } from '@angular/platform-browser';
|
|
3
|
-
import * as i0 from "@angular/core";
|
|
4
|
-
export declare class MetaIconsPipe implements PipeTransform {
|
|
5
|
-
protected sanitizer: DomSanitizer;
|
|
6
|
-
constructor(sanitizer: DomSanitizer);
|
|
7
|
-
transform(value: any): any;
|
|
8
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<MetaIconsPipe, never>;
|
|
9
|
-
static ɵpipe: i0.ɵɵPipeDeclaration<MetaIconsPipe, "metaIcons", false>;
|
|
10
|
-
}
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import { PipeTransform } from '@angular/core';
|
|
2
|
-
import * as i0 from "@angular/core";
|
|
3
|
-
export declare class MetaModelPipe implements PipeTransform {
|
|
4
|
-
transform(value: any): any;
|
|
5
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<MetaModelPipe, never>;
|
|
6
|
-
static ɵpipe: i0.ɵɵPipeDeclaration<MetaModelPipe, "metaModel", false>;
|
|
7
|
-
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare const metaNormalizer: (meta: any, integration: any, resourceType: any) => any;
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import { PipeTransform } from '@angular/core';
|
|
2
|
-
import * as i0 from "@angular/core";
|
|
3
|
-
export declare class MetaStripHtmlPipe implements PipeTransform {
|
|
4
|
-
transform(value: string): any;
|
|
5
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<MetaStripHtmlPipe, never>;
|
|
6
|
-
static ɵpipe: i0.ɵɵPipeDeclaration<MetaStripHtmlPipe, "metaStripHtml", false>;
|
|
7
|
-
}
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
export interface IStoreRecord {
|
|
2
|
-
id?: string | number;
|
|
3
|
-
}
|
|
4
|
-
export interface IStore {
|
|
5
|
-
initCollection(collectionName: string, callback?: (err: any, result?: any) => void): any;
|
|
6
|
-
findById(collectionName: any, id: number | string, callback?: (err: any, result?: any) => void): any;
|
|
7
|
-
save(collectionName: string, record: any, callback?: (err: any, result?: any) => void): any;
|
|
8
|
-
find(collectionName: string, conditions: any, options: any, callback: (err: any, result?: any) => void): any;
|
|
9
|
-
findOne(collectionName: string, conditions: any, options: any, callback?: (err: any, result?: any) => void): any;
|
|
10
|
-
}
|
|
11
|
-
export declare class IndexedDbStore implements IStore {
|
|
12
|
-
indxDb: IDBFactory;
|
|
13
|
-
db: IDBDatabase;
|
|
14
|
-
dbName: string;
|
|
15
|
-
constructor(dbName?: string);
|
|
16
|
-
_getDb(callback: (err: any, result?: any) => void): void;
|
|
17
|
-
initCollection(collectionName: string, callback: (err: any, result?: any) => void): void;
|
|
18
|
-
reset(callback: (err: any, result?: any) => void): void;
|
|
19
|
-
findById(collectionName: string, id: number | string, callback: (err: any, result?: any) => void): any;
|
|
20
|
-
destroyById(collectionName: string, id: number | string, callback: (err: any, result?: any) => void): any;
|
|
21
|
-
findOne(collectionName: string, conditions: any, options: any, callback?: (err: any, result?: any) => void): any;
|
|
22
|
-
find(collectionName: string, conditions: any, options: any, callback?: (err: any, result?: any) => void): Array<IStoreRecord> | any;
|
|
23
|
-
save(collectionName: string, model: any, callback?: (err: any, result?: any) => void): void;
|
|
24
|
-
private createDraftStore;
|
|
25
|
-
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare const relativeTimeBuilder: (type: 'date' | 'datetime' | 'datetime-local' | 'time', value: string, step?: number, base?: number) => number;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare const resourceCardLabel: (r: any) => any;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare const templateBuilder: (metaContext: any, pattern: any) => any;
|
package/lib/fieldAbstract.d.ts
DELETED
|
@@ -1,61 +0,0 @@
|
|
|
1
|
-
import { ElementRef, AfterViewInit, EventEmitter } from '@angular/core';
|
|
2
|
-
import * as i0 from "@angular/core";
|
|
3
|
-
export declare abstract class FieldAbstract implements AfterViewInit {
|
|
4
|
-
model: any;
|
|
5
|
-
meta: any;
|
|
6
|
-
index: number;
|
|
7
|
-
scope: string;
|
|
8
|
-
parent: any;
|
|
9
|
-
integrationCode: string;
|
|
10
|
-
integrationIcon: string;
|
|
11
|
-
resourceType: string;
|
|
12
|
-
elementRef: ElementRef;
|
|
13
|
-
modelInput: HTMLInputElement;
|
|
14
|
-
modelControl: HTMLInputElement;
|
|
15
|
-
mainInput: HTMLInputElement;
|
|
16
|
-
keyListenerActive: boolean;
|
|
17
|
-
onChange: EventEmitter<any>;
|
|
18
|
-
onLeave: EventEmitter<any>;
|
|
19
|
-
validationAttributes: any[];
|
|
20
|
-
preview: boolean;
|
|
21
|
-
prevModel: any;
|
|
22
|
-
changeEvent: MouseEvent;
|
|
23
|
-
metaResourceService: any;
|
|
24
|
-
logicalDisabled: boolean;
|
|
25
|
-
theme: string;
|
|
26
|
-
flags: any;
|
|
27
|
-
overlayContainer: HTMLElement;
|
|
28
|
-
lastAutoValue: any;
|
|
29
|
-
delegate: any;
|
|
30
|
-
get parentChangeSubject(): any;
|
|
31
|
-
get isPersistedParent(): any;
|
|
32
|
-
get validations(): any;
|
|
33
|
-
get name(): string;
|
|
34
|
-
get default(): any;
|
|
35
|
-
get disabled(): any;
|
|
36
|
-
get readonly(): boolean;
|
|
37
|
-
get sendToServer(): boolean;
|
|
38
|
-
get uiInput(): HTMLInputElement;
|
|
39
|
-
get isOptional(): boolean;
|
|
40
|
-
static setup(instance: any, parent: any, meta: any): void;
|
|
41
|
-
ngAfterViewInit(): void;
|
|
42
|
-
focus(): void;
|
|
43
|
-
modelToValue(m: any, valueType: any): any;
|
|
44
|
-
onSubjectChange(model: any): void;
|
|
45
|
-
onModelChange(model: any): void;
|
|
46
|
-
clear(): void;
|
|
47
|
-
private applyValidations;
|
|
48
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<FieldAbstract, never>;
|
|
49
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<FieldAbstract, never, never, {}, {}, never, never, false, never>;
|
|
50
|
-
}
|
|
51
|
-
export declare class MetaElem {
|
|
52
|
-
csselem: string;
|
|
53
|
-
meta: any;
|
|
54
|
-
}
|
|
55
|
-
export declare abstract class MetaElemDisableadble implements MetaElem {
|
|
56
|
-
cssmodifier: string;
|
|
57
|
-
abstract meta: any;
|
|
58
|
-
abstract csselem: string;
|
|
59
|
-
abstract elementRef: ElementRef;
|
|
60
|
-
disable(): void;
|
|
61
|
-
}
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import { OnInit } from '@angular/core';
|
|
2
|
-
import { FieldAbstract } from '../fieldAbstract';
|
|
3
|
-
import * as i0 from "@angular/core";
|
|
4
|
-
export declare class FieldBoolean extends FieldAbstract implements OnInit {
|
|
5
|
-
value: boolean;
|
|
6
|
-
ngOnInit(): void;
|
|
7
|
-
onOptionChange(): void;
|
|
8
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<FieldBoolean, never>;
|
|
9
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<FieldBoolean, "ng-component", never, {}, {}, never, never, false, never>;
|
|
10
|
-
}
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import { OnInit, DoCheck } from '@angular/core';
|
|
2
|
-
import { FieldAbstract } from '../fieldAbstract';
|
|
3
|
-
import * as i0 from "@angular/core";
|
|
4
|
-
export declare class FieldComposite extends FieldAbstract implements OnInit, DoCheck {
|
|
5
|
-
value: any;
|
|
6
|
-
private invisible;
|
|
7
|
-
get isRow(): boolean;
|
|
8
|
-
get fields(): any;
|
|
9
|
-
ngOnInit(): void;
|
|
10
|
-
ngDoCheck(): void;
|
|
11
|
-
onValueChange(): void;
|
|
12
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<FieldComposite, never>;
|
|
13
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<FieldComposite, "ng-component", never, {}, {}, never, never, false, never>;
|
|
14
|
-
}
|
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
import { OnInit } from '@angular/core';
|
|
2
|
-
import { FieldAbstract } from '../fieldAbstract';
|
|
3
|
-
import * as i0 from "@angular/core";
|
|
4
|
-
export declare class FieldDatetime extends FieldAbstract implements OnInit {
|
|
5
|
-
input: any;
|
|
6
|
-
dropdown: any;
|
|
7
|
-
activeSuggestionIndex: number;
|
|
8
|
-
value: any;
|
|
9
|
-
type: string;
|
|
10
|
-
placeholder: string;
|
|
11
|
-
get suggestions(): any;
|
|
12
|
-
ngOnInit(): void;
|
|
13
|
-
onActivated(ev: any): void;
|
|
14
|
-
clear(ev?: any): boolean;
|
|
15
|
-
onBlur(ev: any): void;
|
|
16
|
-
onSuggestionSelect(ev: any, suggestion: any): void;
|
|
17
|
-
dismissDropdown(event?: any): void;
|
|
18
|
-
private ensureDropdownIsVisible;
|
|
19
|
-
private showDropdown;
|
|
20
|
-
private clickout;
|
|
21
|
-
private keydown;
|
|
22
|
-
private autoSetValue;
|
|
23
|
-
private setupLogicalValidation;
|
|
24
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<FieldDatetime, never>;
|
|
25
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<FieldDatetime, "ng-component", never, {}, {}, never, never, false, never>;
|
|
26
|
-
}
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
import { FieldAbstract } from '../fieldAbstract';
|
|
2
|
-
import * as i0 from "@angular/core";
|
|
3
|
-
export declare class FieldHidden extends FieldAbstract {
|
|
4
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<FieldHidden, never>;
|
|
5
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<FieldHidden, "ng-component", never, {}, {}, never, never, false, never>;
|
|
6
|
-
}
|
|
@@ -1,35 +0,0 @@
|
|
|
1
|
-
import { OnInit } from '@angular/core';
|
|
2
|
-
import { FieldAbstract } from '../fieldAbstract';
|
|
3
|
-
import { MetaContextService } from '../services/metaContext';
|
|
4
|
-
import * as i0 from "@angular/core";
|
|
5
|
-
export declare class FieldInput extends FieldAbstract implements OnInit {
|
|
6
|
-
private metaContext;
|
|
7
|
-
input: any;
|
|
8
|
-
dropdown: any;
|
|
9
|
-
activeSuggestionIndex: number;
|
|
10
|
-
value: any;
|
|
11
|
-
multiple: boolean;
|
|
12
|
-
addText: any;
|
|
13
|
-
showClear: boolean;
|
|
14
|
-
asyncSuggestions: Array<any>;
|
|
15
|
-
isPhoneNumber: boolean;
|
|
16
|
-
logicalSubtype: string;
|
|
17
|
-
constructor(metaContext: MetaContextService);
|
|
18
|
-
get suggestions(): any;
|
|
19
|
-
ngOnInit(): void;
|
|
20
|
-
onActivated(ev: any): void;
|
|
21
|
-
clear(ev?: any): boolean;
|
|
22
|
-
onBlur(ev: any): void;
|
|
23
|
-
onAdd(ev: any): void;
|
|
24
|
-
remove(ev: any, item: any): void;
|
|
25
|
-
onSuggestionSelect(ev: any, suggestion: any): void;
|
|
26
|
-
textToSpeech(): void;
|
|
27
|
-
dismissDropdown(event?: any): void;
|
|
28
|
-
click2dial(ev: any): boolean;
|
|
29
|
-
private ensureDropdownIsVisible;
|
|
30
|
-
private showDropdown;
|
|
31
|
-
private clickout;
|
|
32
|
-
private keydown;
|
|
33
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<FieldInput, never>;
|
|
34
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<FieldInput, "ng-component", never, {}, {}, never, never, false, never>;
|
|
35
|
-
}
|
package/lib/fieldList/index.d.ts
DELETED
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import { OnInit } from '@angular/core';
|
|
2
|
-
import { FieldAbstract } from '../fieldAbstract';
|
|
3
|
-
import * as i0 from "@angular/core";
|
|
4
|
-
export declare class FieldList extends FieldAbstract implements OnInit {
|
|
5
|
-
items: Array<any>;
|
|
6
|
-
value: any;
|
|
7
|
-
get list(): any;
|
|
8
|
-
get cloneList(): any;
|
|
9
|
-
ngOnInit(): void;
|
|
10
|
-
add(): void;
|
|
11
|
-
remove(itemIndex: any): void;
|
|
12
|
-
onChildChange(): void;
|
|
13
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<FieldList, never>;
|
|
14
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<FieldList, "ng-component", never, {}, {}, never, never, false, never>;
|
|
15
|
-
}
|