@vgip/meta-ui 1.7.0 → 1.7.2

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.
Files changed (145) hide show
  1. package/{esm2020 → esm2022}/lib/common/metaAutofocus.directive.mjs +4 -4
  2. package/{esm2020 → esm2022}/lib/common/metaIcons.pipe.mjs +4 -4
  3. package/{esm2020 → esm2022}/lib/common/metaModel.pipe.mjs +4 -4
  4. package/{esm2020 → esm2022}/lib/common/metaNormalizer.mjs +16 -1
  5. package/{esm2020 → esm2022}/lib/common/metaStripHtml.pipe.mjs +4 -4
  6. package/{esm2020 → esm2022}/lib/fieldAbstract.mjs +4 -4
  7. package/{esm2020 → esm2022}/lib/fieldBoolean/index.mjs +4 -4
  8. package/{esm2020 → esm2022}/lib/fieldComposite/index.mjs +4 -4
  9. package/{esm2020 → esm2022}/lib/fieldDatetime/index.mjs +4 -4
  10. package/{esm2020 → esm2022}/lib/fieldHidden/index.mjs +4 -4
  11. package/{esm2020 → esm2022}/lib/fieldInput/index.mjs +4 -4
  12. package/{esm2020 → esm2022}/lib/fieldList/index.mjs +4 -4
  13. package/{esm2020 → esm2022}/lib/fieldRadio/index.mjs +4 -4
  14. package/esm2022/lib/fieldReference/index.mjs +825 -0
  15. package/esm2022/lib/fieldRichtext/index.mjs +95 -0
  16. package/{esm2020 → esm2022}/lib/fieldSelect/index.mjs +4 -4
  17. package/{esm2020 → esm2022}/lib/fieldText/index.mjs +4 -4
  18. package/{esm2020 → esm2022}/lib/fieldUnknown/index.mjs +4 -4
  19. package/esm2022/lib/index.mjs +163 -0
  20. package/{esm2020 → esm2022}/lib/layout/index.mjs +4 -4
  21. package/{esm2020 → esm2022}/lib/metaField/index.mjs +7 -7
  22. package/{esm2020 → esm2022}/lib/refDialog/index.mjs +4 -4
  23. package/{esm2020 → esm2022}/lib/resource/index.mjs +4 -4
  24. package/{esm2020 → esm2022}/lib/resourceCard/index.mjs +4 -4
  25. package/{esm2020 → esm2022}/lib/services/metaContext/index.mjs +4 -4
  26. package/{esm2020 → esm2022}/lib/services/metaMsg/index.mjs +4 -4
  27. package/{esm2020 → esm2022}/lib/services/metaReference/index.mjs +4 -4
  28. package/{esm2020 → esm2022}/lib/services/metaResource/index.mjs +4 -4
  29. package/{esm2020 → esm2022}/lib/services/metaResource/metaHttpClient.mjs +4 -4
  30. package/{esm2020 → esm2022}/lib/services/metaTracker/index.mjs +4 -4
  31. package/{esm2020 → esm2022}/lib/services/resourceDrafts/index.mjs +4 -4
  32. package/{fesm2020/vgip-meta-ui-fieldAbstract-f7d80db6.mjs → fesm2022/vgip-meta-ui-fieldAbstract-ce47588e.mjs} +4 -4
  33. package/{fesm2020/vgip-meta-ui-fieldAbstract-f7d80db6.mjs.map → fesm2022/vgip-meta-ui-fieldAbstract-ce47588e.mjs.map} +1 -1
  34. package/{fesm2020/vgip-meta-ui-index-6e77c362.mjs → fesm2022/vgip-meta-ui-index-1467556e.mjs} +4 -4
  35. package/{fesm2020/vgip-meta-ui-index-6e77c362.mjs.map → fesm2022/vgip-meta-ui-index-1467556e.mjs.map} +1 -1
  36. package/{fesm2015/vgip-meta-ui-index-1d2b4c69.mjs → fesm2022/vgip-meta-ui-index-5509b1d2.mjs} +7 -7
  37. package/{fesm2020/vgip-meta-ui-index-1d2b4c69.mjs.map → fesm2022/vgip-meta-ui-index-5509b1d2.mjs.map} +1 -1
  38. package/{fesm2015/vgip-meta-ui-index-62be0e3e.mjs → fesm2022/vgip-meta-ui-index-5d664781.mjs} +13 -13
  39. package/fesm2022/vgip-meta-ui-index-5d664781.mjs.map +1 -0
  40. package/{fesm2020/vgip-meta-ui-index-4fcefde0.mjs → fesm2022/vgip-meta-ui-index-617c4bac.mjs} +43 -28
  41. package/fesm2022/vgip-meta-ui-index-617c4bac.mjs.map +1 -0
  42. package/fesm2022/vgip-meta-ui-index-6dcb4942.mjs +24 -0
  43. package/{fesm2015/vgip-meta-ui-index-476b6cb7.mjs.map → fesm2022/vgip-meta-ui-index-6dcb4942.mjs.map} +1 -1
  44. package/{fesm2015/vgip-meta-ui-index-2b20afc8.mjs → fesm2022/vgip-meta-ui-index-78d7b9be.mjs} +6 -6
  45. package/{fesm2020/vgip-meta-ui-index-2b20afc8.mjs.map → fesm2022/vgip-meta-ui-index-78d7b9be.mjs.map} +1 -1
  46. package/fesm2022/vgip-meta-ui-index-85109066.mjs +97 -0
  47. package/fesm2022/vgip-meta-ui-index-85109066.mjs.map +1 -0
  48. package/{fesm2020/vgip-meta-ui-index-f7370960.mjs → fesm2022/vgip-meta-ui-index-86211382.mjs} +7 -7
  49. package/{fesm2020/vgip-meta-ui-index-f7370960.mjs.map → fesm2022/vgip-meta-ui-index-86211382.mjs.map} +1 -1
  50. package/{fesm2015/vgip-meta-ui-index-640f8e62.mjs → fesm2022/vgip-meta-ui-index-adb42356.mjs} +6 -6
  51. package/{fesm2020/vgip-meta-ui-index-640f8e62.mjs.map → fesm2022/vgip-meta-ui-index-adb42356.mjs.map} +1 -1
  52. package/{fesm2020/vgip-meta-ui-index-87041aad.mjs → fesm2022/vgip-meta-ui-index-cb0d4f82.mjs} +5 -5
  53. package/{fesm2015/vgip-meta-ui-index-87041aad.mjs.map → fesm2022/vgip-meta-ui-index-cb0d4f82.mjs.map} +1 -1
  54. package/{fesm2015/vgip-meta-ui-index-a76ba482.mjs → fesm2022/vgip-meta-ui-index-cfb67422.mjs} +9 -10
  55. package/{fesm2020/vgip-meta-ui-index-aee28354.mjs.map → fesm2022/vgip-meta-ui-index-cfb67422.mjs.map} +1 -1
  56. package/{fesm2020/vgip-meta-ui-index-81aa79dc.mjs → fesm2022/vgip-meta-ui-index-eba0dd05.mjs} +7 -7
  57. package/{fesm2020/vgip-meta-ui-index-81aa79dc.mjs.map → fesm2022/vgip-meta-ui-index-eba0dd05.mjs.map} +1 -1
  58. package/{fesm2015/vgip-meta-ui-index-bf5b6c0f.mjs → fesm2022/vgip-meta-ui-index-eef5fc0f.mjs} +6 -6
  59. package/{fesm2020/vgip-meta-ui-index-bf5b6c0f.mjs.map → fesm2022/vgip-meta-ui-index-eef5fc0f.mjs.map} +1 -1
  60. package/{fesm2020/vgip-meta-ui-index-b92a559b.mjs → fesm2022/vgip-meta-ui-index-f0fa2cbd.mjs} +6 -6
  61. package/{fesm2020/vgip-meta-ui-index-b92a559b.mjs.map → fesm2022/vgip-meta-ui-index-f0fa2cbd.mjs.map} +1 -1
  62. package/{fesm2020/vgip-meta-ui-index-301b28cd.mjs → fesm2022/vgip-meta-ui-index-f5e42e1d.mjs} +20 -20
  63. package/{fesm2020/vgip-meta-ui-index-301b28cd.mjs.map → fesm2022/vgip-meta-ui-index-f5e42e1d.mjs.map} +1 -1
  64. package/{fesm2015/vgip-meta-ui-metaModel.pipe-4b068359.mjs → fesm2022/vgip-meta-ui-metaModel.pipe-3487ede2.mjs} +4 -4
  65. package/{fesm2015/vgip-meta-ui-metaModel.pipe-4b068359.mjs.map → fesm2022/vgip-meta-ui-metaModel.pipe-3487ede2.mjs.map} +1 -1
  66. package/{fesm2020 → fesm2022}/vgip-meta-ui.mjs +96 -91
  67. package/{fesm2015 → fesm2022}/vgip-meta-ui.mjs.map +1 -1
  68. package/lib/common/metaAutofocus.directive.d.ts +1 -1
  69. package/lib/fieldBoolean/index.d.ts +1 -1
  70. package/lib/fieldComposite/index.d.ts +1 -1
  71. package/lib/fieldRadio/index.d.ts +1 -1
  72. package/lib/fieldRichtext/index.d.ts +6 -8
  73. package/lib/fieldText/index.d.ts +1 -1
  74. package/lib/layout/index.d.ts +1 -1
  75. package/lib/metaField/index.d.ts +1 -1
  76. package/lib/resource/index.d.ts +1 -1
  77. package/lib/resourceCard/index.d.ts +1 -1
  78. package/package.json +8 -14
  79. package/esm2020/lib/fieldReference/index.mjs +0 -825
  80. package/esm2020/lib/fieldRichtext/index.mjs +0 -85
  81. package/esm2020/lib/index.mjs +0 -158
  82. package/fesm2015/vgip-meta-ui-fieldAbstract-f7d80db6.mjs +0 -397
  83. package/fesm2015/vgip-meta-ui-fieldAbstract-f7d80db6.mjs.map +0 -1
  84. package/fesm2015/vgip-meta-ui-index-1d2b4c69.mjs.map +0 -1
  85. package/fesm2015/vgip-meta-ui-index-2737c81e.mjs +0 -1900
  86. package/fesm2015/vgip-meta-ui-index-2737c81e.mjs.map +0 -1
  87. package/fesm2015/vgip-meta-ui-index-2b20afc8.mjs.map +0 -1
  88. package/fesm2015/vgip-meta-ui-index-3eefa50a.mjs +0 -75
  89. package/fesm2015/vgip-meta-ui-index-3eefa50a.mjs.map +0 -1
  90. package/fesm2015/vgip-meta-ui-index-476b6cb7.mjs +0 -24
  91. package/fesm2015/vgip-meta-ui-index-4b8d731c.mjs +0 -151
  92. package/fesm2015/vgip-meta-ui-index-4b8d731c.mjs.map +0 -1
  93. package/fesm2015/vgip-meta-ui-index-4ecdd48a.mjs +0 -72
  94. package/fesm2015/vgip-meta-ui-index-4ecdd48a.mjs.map +0 -1
  95. package/fesm2015/vgip-meta-ui-index-62be0e3e.mjs.map +0 -1
  96. package/fesm2015/vgip-meta-ui-index-640f8e62.mjs.map +0 -1
  97. package/fesm2015/vgip-meta-ui-index-695384af.mjs +0 -88
  98. package/fesm2015/vgip-meta-ui-index-695384af.mjs.map +0 -1
  99. package/fesm2015/vgip-meta-ui-index-6e77c362.mjs +0 -130
  100. package/fesm2015/vgip-meta-ui-index-6e77c362.mjs.map +0 -1
  101. package/fesm2015/vgip-meta-ui-index-81aa79dc.mjs +0 -460
  102. package/fesm2015/vgip-meta-ui-index-81aa79dc.mjs.map +0 -1
  103. package/fesm2015/vgip-meta-ui-index-87041aad.mjs +0 -23
  104. package/fesm2015/vgip-meta-ui-index-a76ba482.mjs.map +0 -1
  105. package/fesm2015/vgip-meta-ui-index-bf5b6c0f.mjs.map +0 -1
  106. package/fesm2015/vgip-meta-ui.mjs +0 -525
  107. package/fesm2020/vgip-meta-ui-index-1d2b4c69.mjs +0 -68
  108. package/fesm2020/vgip-meta-ui-index-2b20afc8.mjs +0 -368
  109. package/fesm2020/vgip-meta-ui-index-476b6cb7.mjs +0 -24
  110. package/fesm2020/vgip-meta-ui-index-476b6cb7.mjs.map +0 -1
  111. package/fesm2020/vgip-meta-ui-index-4c4a4daf.mjs +0 -858
  112. package/fesm2020/vgip-meta-ui-index-4c4a4daf.mjs.map +0 -1
  113. package/fesm2020/vgip-meta-ui-index-4fcefde0.mjs.map +0 -1
  114. package/fesm2020/vgip-meta-ui-index-640f8e62.mjs +0 -95
  115. package/fesm2020/vgip-meta-ui-index-695384af.mjs +0 -88
  116. package/fesm2020/vgip-meta-ui-index-695384af.mjs.map +0 -1
  117. package/fesm2020/vgip-meta-ui-index-87041aad.mjs.map +0 -1
  118. package/fesm2020/vgip-meta-ui-index-aee28354.mjs +0 -497
  119. package/fesm2020/vgip-meta-ui-index-bf5b6c0f.mjs +0 -61
  120. package/fesm2020/vgip-meta-ui-metaModel.pipe-4b068359.mjs +0 -28
  121. package/fesm2020/vgip-meta-ui-metaModel.pipe-4b068359.mjs.map +0 -1
  122. package/fesm2020/vgip-meta-ui-relativeTimeBuilder-31791ce4.mjs +0 -51
  123. package/fesm2020/vgip-meta-ui-relativeTimeBuilder-31791ce4.mjs.map +0 -1
  124. package/fesm2020/vgip-meta-ui.mjs.map +0 -1
  125. /package/{esm2020 → esm2022}/lib/common/fieldNormalizer/boolean.mjs +0 -0
  126. /package/{esm2020 → esm2022}/lib/common/fieldNormalizer/datetime.mjs +0 -0
  127. /package/{esm2020 → esm2022}/lib/common/fieldNormalizer/index.mjs +0 -0
  128. /package/{esm2020 → esm2022}/lib/common/fieldNormalizer/number.mjs +0 -0
  129. /package/{esm2020 → esm2022}/lib/common/fieldNormalizer/options.mjs +0 -0
  130. /package/{esm2020 → esm2022}/lib/common/fieldNormalizer/radio.mjs +0 -0
  131. /package/{esm2020 → esm2022}/lib/common/fieldNormalizer/reference.mjs +0 -0
  132. /package/{esm2020 → esm2022}/lib/common/fieldNormalizer/richtext.mjs +0 -0
  133. /package/{esm2020 → esm2022}/lib/common/fieldNormalizer/string.mjs +0 -0
  134. /package/{esm2020 → esm2022}/lib/common/fieldNormalizer/text.mjs +0 -0
  135. /package/{esm2020 → esm2022}/lib/common/fieldNormalizer/uniqueNameFilter.mjs +0 -0
  136. /package/{esm2020 → esm2022}/lib/common/utils/colorThemes.mjs +0 -0
  137. /package/{esm2020 → esm2022}/lib/common/utils/indexedDbStore/index.mjs +0 -0
  138. /package/{esm2020 → esm2022}/lib/common/utils/relativeTimeBuilder.mjs +0 -0
  139. /package/{esm2020 → esm2022}/lib/common/utils/resourceCardLabel.mjs +0 -0
  140. /package/{esm2020 → esm2022}/lib/common/utils/smartProp.mjs +0 -0
  141. /package/{esm2020 → esm2022}/lib/common/utils/templateBuilder.mjs +0 -0
  142. /package/{esm2020 → esm2022}/public-api.mjs +0 -0
  143. /package/{esm2020 → esm2022}/vgip-meta-ui.mjs +0 -0
  144. /package/{fesm2015 → fesm2022}/vgip-meta-ui-relativeTimeBuilder-31791ce4.mjs +0 -0
  145. /package/{fesm2015 → fesm2022}/vgip-meta-ui-relativeTimeBuilder-31791ce4.mjs.map +0 -0
@@ -1,68 +0,0 @@
1
- import * as i0 from '@angular/core';
2
- import { Component, Input } from '@angular/core';
3
- import * as i2 from '@angular/forms';
4
- import { ControlContainer, NgForm } from '@angular/forms';
5
- import { F as FieldAbstract } from './vgip-meta-ui-fieldAbstract-f7d80db6.mjs';
6
- import { t as templateBuilder, M as MetaContextService } from './vgip-meta-ui-index-6e77c362.mjs';
7
- import * as i1 from '@angular/common';
8
- import { M as MetaModelPipe } from './vgip-meta-ui-metaModel.pipe-4b068359.mjs';
9
- import 'rxjs';
10
- import 'rxjs/operators';
11
-
12
- /*
13
- * @Author: Alexander.Vangelov@vonage.com
14
- * @Date: 2019-09-19 17:35:13
15
- * @Last Modified by: Alexander.Vangelov@vonage.com
16
- * @Last Modified time: 2020-02-26 20:00:33
17
- */
18
- class FieldText extends FieldAbstract {
19
- constructor(metaContext) {
20
- super();
21
- this.metaContext = metaContext;
22
- }
23
- static setup(instance, parent, meta) {
24
- const d = meta.default || meta.defaultValue;
25
- if (d && !parent[meta.name]) {
26
- if (typeof (d) === 'string') {
27
- parent[meta.name] = d;
28
- }
29
- else {
30
- parent[meta.name] = d.id || d.value;
31
- }
32
- }
33
- }
34
- ngOnInit() {
35
- if (typeof (this.parent[this.meta.name]) === 'string') {
36
- this.parent[this.meta.name] = templateBuilder(this.metaContext, this.parent[this.meta.name]);
37
- }
38
- // if (this.default && !this.model) {
39
- // setTimeout(()=>{
40
- // if (typeof(this.default) == 'string') {
41
- // this.parent[this.meta.name] = this.default;
42
- // } else {
43
- // this.parent[this.meta.name] = this.default.id || this.default.value;
44
- // }
45
- // }, 0);
46
- // }
47
- }
48
- onModelChangeLocal(value) {
49
- if (!value && this.prevModel && this.isPersistedParent) {
50
- value = '';
51
- }
52
- this.onModelChange(value);
53
- }
54
- textToSpeech() {
55
- this.focus();
56
- }
57
- }
58
- FieldText.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.8", ngImport: i0, type: FieldText, deps: [{ token: MetaContextService }], target: i0.ɵɵFactoryTarget.Component });
59
- FieldText.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.8", type: FieldText, selector: "ng-component", inputs: { meta: "meta" }, usesInheritance: true, ngImport: i0, template: "<div class='vgip-meta-field-preview' *ngIf='preview && parent[meta.name]'>\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'>{{parent[meta.name]}}</div>\n</div>\n<div *ngIf='!preview' class=\"Vlt-form__element Vlt-form__element--big\" [ngClass]=\"{ 'Vlt-form__element--error': f.invalid && ((f | metaModel)._parent.submitted || (f | metaModel ).touched) }\">\n <label class='wrapper'>\n <div class=\"Vlt-textarea\">\n <textarea class='main model' [required]='validations.required' [maxlength]='validations.maxlength' rows=\"{{ meta.rows || 4 }}\" placeholder=' ' [(ngModel)]='parent[meta.name]' (ngModelChange)=\"onModelChangeLocal($event)\" #f='ngModel' [name]='name'></textarea>\n <!-- <div class=\"Vlt-composite__append Vlt-composite__append--icon\">\n <div class=\"Vlt-composite__icon\" (click)='textToSpeech()'>\n <svg><use xlink:href=\"volta/volta-icons.svg#Vlt-icon-microphone\"/></svg>\n </div>\n </div> -->\n <label class=\"Vlt-label\">{{meta.label || meta.name}}<span *ngIf='validations.required' class='Vlt-red'>*</span></label>\n </div>\n </label>\n <small *ngIf='f.invalid && ((f | metaModel)._parent.submitted || ((f | metaModel ).touched))' 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}}&nbsp;</span>\n </small>\n <small *ngIf='meta.helpText' class=\"Vlt-form__element__hint\">{{meta.helpText}}</small>\n</div>\n", styles: [".Vlt-composite__append--icon{bottom:7px;right:16px;padding:3px;width:initial;height:initial;cursor:pointer}.Vlt-composite__append--icon:hover svg{fill:#2c2d30}.Vlt-form__element--big .Vlt-textarea .Vlt-label{right:18px;background:transparent}.Vlt-form__element--error textarea{border-color:#f25a6b;background:var(--vgip-meta-input-bg-color)}\n"], dependencies: [{ kind: "directive", type: i1.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { 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.MaxLengthValidator, selector: "[maxlength][formControlName],[maxlength][formControl],[maxlength][ngModel]", inputs: ["maxlength"] }, { 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 }] });
60
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.8", ngImport: i0, type: FieldText, decorators: [{
61
- type: Component,
62
- args: [{ viewProviders: [{ provide: ControlContainer, useExisting: NgForm }], template: "<div class='vgip-meta-field-preview' *ngIf='preview && parent[meta.name]'>\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'>{{parent[meta.name]}}</div>\n</div>\n<div *ngIf='!preview' class=\"Vlt-form__element Vlt-form__element--big\" [ngClass]=\"{ 'Vlt-form__element--error': f.invalid && ((f | metaModel)._parent.submitted || (f | metaModel ).touched) }\">\n <label class='wrapper'>\n <div class=\"Vlt-textarea\">\n <textarea class='main model' [required]='validations.required' [maxlength]='validations.maxlength' rows=\"{{ meta.rows || 4 }}\" placeholder=' ' [(ngModel)]='parent[meta.name]' (ngModelChange)=\"onModelChangeLocal($event)\" #f='ngModel' [name]='name'></textarea>\n <!-- <div class=\"Vlt-composite__append Vlt-composite__append--icon\">\n <div class=\"Vlt-composite__icon\" (click)='textToSpeech()'>\n <svg><use xlink:href=\"volta/volta-icons.svg#Vlt-icon-microphone\"/></svg>\n </div>\n </div> -->\n <label class=\"Vlt-label\">{{meta.label || meta.name}}<span *ngIf='validations.required' class='Vlt-red'>*</span></label>\n </div>\n </label>\n <small *ngIf='f.invalid && ((f | metaModel)._parent.submitted || ((f | metaModel ).touched))' 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}}&nbsp;</span>\n </small>\n <small *ngIf='meta.helpText' class=\"Vlt-form__element__hint\">{{meta.helpText}}</small>\n</div>\n", styles: [".Vlt-composite__append--icon{bottom:7px;right:16px;padding:3px;width:initial;height:initial;cursor:pointer}.Vlt-composite__append--icon:hover svg{fill:#2c2d30}.Vlt-form__element--big .Vlt-textarea .Vlt-label{right:18px;background:transparent}.Vlt-form__element--error textarea{border-color:#f25a6b;background:var(--vgip-meta-input-bg-color)}\n"] }]
63
- }], ctorParameters: function () { return [{ type: MetaContextService }]; }, propDecorators: { meta: [{
64
- type: Input
65
- }] } });
66
-
67
- export { FieldText };
68
- //# sourceMappingURL=vgip-meta-ui-index-1d2b4c69.mjs.map
@@ -1,368 +0,0 @@
1
- import * as i0 from '@angular/core';
2
- import { Component } from '@angular/core';
3
- import * as i2 from '@angular/forms';
4
- import { ControlContainer, NgForm } from '@angular/forms';
5
- import { F as FieldAbstract } from './vgip-meta-ui-fieldAbstract-f7d80db6.mjs';
6
- import { r as relativeTimeBuilder } from './vgip-meta-ui-relativeTimeBuilder-31791ce4.mjs';
7
- import * as i1 from '@angular/common';
8
- import { M as MetaModelPipe } from './vgip-meta-ui-metaModel.pipe-4b068359.mjs';
9
- import 'rxjs';
10
- import 'rxjs/operators';
11
-
12
- /*
13
- * @Author: Alexander.Vangelov@vonage.com
14
- * @Date: 2020-04-18 18:05:46
15
- * @Last Modified by: Alexander.Vangelov@vonage.com
16
- * @Last Modified time: 2020-04-18 21:09:16
17
- */
18
- class FieldDatetime extends FieldAbstract {
19
- constructor() {
20
- super(...arguments);
21
- this.placeholder = 'dd/mm/yyyy';
22
- this.clickout = (event) => {
23
- if (event.target.className === 'Vlt-dropdown__link' && this.elementRef.nativeElement.contains(event.target)) {
24
- this.focus();
25
- // this.dismissDropdown();
26
- // this.parent[this.meta.name] = event.target.textContent;
27
- }
28
- else if (event.target !== this.input && event.target.className !== 'Vlt-dropdown__title') {
29
- this.dismissDropdown();
30
- }
31
- else {
32
- this.focus();
33
- }
34
- };
35
- this.keydown = (event) => {
36
- switch (event.key) {
37
- case 'ArrowDown': {
38
- if (['datetime', 'time', 'date', 'datetime-local'].indexOf(this.meta.type || this.meta.subtype) !== -1) {
39
- break;
40
- }
41
- this.showDropdown();
42
- event.preventDefault();
43
- if (typeof (this.activeSuggestionIndex) === 'undefined') {
44
- this.activeSuggestionIndex = 0;
45
- }
46
- else {
47
- this.activeSuggestionIndex++;
48
- if (this.activeSuggestionIndex >= this.suggestions.length) {
49
- this.activeSuggestionIndex = 0;
50
- }
51
- }
52
- break;
53
- }
54
- case 'ArrowUp': {
55
- if (['datetime', 'time', 'date', 'datetime-local'].indexOf(this.meta.type || this.meta.subtype) !== -1) {
56
- break;
57
- }
58
- this.showDropdown();
59
- event.preventDefault();
60
- if (typeof (this.activeSuggestionIndex) === 'undefined') {
61
- this.activeSuggestionIndex = this.suggestions.length - 1;
62
- }
63
- else {
64
- this.activeSuggestionIndex--;
65
- if (this.activeSuggestionIndex < 0) {
66
- this.activeSuggestionIndex = this.suggestions.length - 1;
67
- }
68
- }
69
- break;
70
- }
71
- case 'Space':
72
- case 'Enter': {
73
- if (typeof (this.activeSuggestionIndex) !== 'undefined') {
74
- event.preventDefault();
75
- event.stopPropagation();
76
- this.onSuggestionSelect(event, this.suggestions[this.activeSuggestionIndex]);
77
- delete this.activeSuggestionIndex;
78
- }
79
- break;
80
- }
81
- case 'Escape': {
82
- event.preventDefault();
83
- event.stopPropagation();
84
- this.dismissDropdown();
85
- break;
86
- }
87
- }
88
- };
89
- }
90
- get suggestions() {
91
- return this.meta.suggestions || [];
92
- }
93
- ngOnInit() {
94
- this.validationAttributes = ['required', 'min', 'max', 'step'];
95
- this.type = this.meta.type;
96
- if (this.meta.type === 'datetime') {
97
- this.type = 'datetime-local';
98
- this.placeholder += ' --:-- --';
99
- }
100
- else if (this.meta.type === 'time') {
101
- this.placeholder = '--:-- --';
102
- }
103
- const origValue = this.parent[this.meta.name];
104
- Object.defineProperty(this.parent, this.meta.name, {
105
- set: (value) => {
106
- if (value) {
107
- if (['datetime', 'date', 'datetime-local'].indexOf(this.meta.type || this.meta.subtype) !== -1 && value) {
108
- try {
109
- let date;
110
- if ((typeof (value) === 'number')) {
111
- date = new Date(parseInt(value, 10));
112
- if ('date' === (this.meta.type || this.meta.subtype)) {
113
- date = new Date(date.getTime() + (date.getTimezoneOffset() * 60000));
114
- }
115
- }
116
- else {
117
- if ('date' === (this.meta.type || this.meta.subtype)) {
118
- date = new Date(Date.parse(value));
119
- }
120
- else {
121
- date = new Date(Date.parse(`${value}Z`) + (new Date().getTimezoneOffset() * 60000));
122
- }
123
- }
124
- if (typeof (value) === 'number') {
125
- switch (this.meta.type || this.meta.subtype) {
126
- case 'datetime-local':
127
- case 'datetime': {
128
- this.model = `${date.getFullYear()}-${('00' + (date.getMonth() + 1)).slice(-2)}-${('00' + date.getDate()).slice(-2)}`;
129
- this.model += `T${('00' + date.getHours()).slice(-2)}:${('00' + date.getMinutes()).slice(-2)}`;
130
- break;
131
- }
132
- case 'date': {
133
- this.model = date.toISOString().split('T')[0];
134
- break;
135
- }
136
- }
137
- }
138
- if (this.meta.valueType === 'isostring') {
139
- this.value = date.toISOString();
140
- }
141
- else if (this.meta.valueType === 'string') {
142
- if ((this.meta.type || this.meta.subtype) === 'date') {
143
- this.value = date.toISOString().split('T')[0];
144
- }
145
- else {
146
- this.value = date.toISOString();
147
- }
148
- }
149
- else {
150
- if ((this.meta.type || this.meta.subtype) === 'date') {
151
- date.setFullYear(date.getUTCFullYear());
152
- date.setMonth(date.getUTCMonth());
153
- date.setDate(date.getUTCDate());
154
- date.setMinutes(0);
155
- date.setHours(0);
156
- date.setSeconds(0);
157
- date.setMilliseconds(0);
158
- this.value = new Date(date.getTime() - (date.getTimezoneOffset() * 60000)).getTime();
159
- }
160
- else {
161
- this.value = date.getTime();
162
- }
163
- }
164
- }
165
- catch (e) {
166
- console.error('Date parse error', e.message, `"${value}"`, `(${typeof (value)})`);
167
- }
168
- }
169
- else if ('time' === (this.meta.type || this.meta.subtype)) {
170
- try {
171
- let date;
172
- if (typeof (value) === 'number') {
173
- date = new Date(parseInt(value, 10));
174
- if (value < 86400000) {
175
- date = new Date(date.getTime() + (date.getTimezoneOffset() * 60000));
176
- }
177
- }
178
- else {
179
- date = new Date(Date.parse(new Date().toISOString().replace(/T.*Z/, `T${value}Z`)) + (new Date().getTimezoneOffset() * 60000));
180
- }
181
- this.model = date.toTimeString().split(' ')[0];
182
- if (this.meta.valueType === 'isostring') {
183
- this.value = date.toISOString();
184
- }
185
- else {
186
- date.setFullYear(1970);
187
- date.setMonth(0);
188
- date.setDate(1);
189
- date.setMilliseconds(0);
190
- if (this.meta.valueType === 'string') {
191
- this.value = new Date(date.getTime() - (date.getTimezoneOffset() * 60000)).toISOString().split('T')[1].substring(0, 8);
192
- }
193
- else {
194
- this.value = new Date(date.getTime() - (date.getTimezoneOffset() * 60000)).getTime();
195
- }
196
- }
197
- }
198
- catch (e) {
199
- console.error('Date parse error', e.message, `"${value}"`, `(${typeof (value)})`);
200
- }
201
- }
202
- }
203
- else {
204
- delete this.model;
205
- delete this.value;
206
- }
207
- this.meta.$optional = this.isOptional;
208
- },
209
- get: () => this.value,
210
- enumerable: this.sendToServer,
211
- configurable: true
212
- });
213
- if (typeof (origValue) !== 'undefined') {
214
- this.parent[this.meta.name] = origValue;
215
- }
216
- const d = this.meta.default || this.meta.defaultValue;
217
- if (d && typeof (this.model) === 'undefined') {
218
- const defaultValue = (typeof (d) === 'string') ? d : (d.id || d.value);
219
- if (defaultValue || defaultValue === 0) {
220
- if (/^(date|time)/.test(this.meta.type || this.meta.subtype) && typeof (defaultValue) === 'string') {
221
- this.parent[this.meta.name] = relativeTimeBuilder(this.meta.type || this.meta.subtype, defaultValue, this.validations.step);
222
- }
223
- else {
224
- this.parent[this.meta.name] = defaultValue;
225
- }
226
- }
227
- }
228
- if (typeof (this.meta.auto) === 'object') {
229
- Object.keys(this.meta.auto || {}).filter(n => ['gt', 'lt'].indexOf(n) !== -1).map(v => this.setupLogicalValidation(v));
230
- }
231
- }
232
- onActivated(ev) {
233
- this.input = ev.srcElement;
234
- if (!this.dropdown) {
235
- this.dropdown = ev.srcElement.parentNode.parentNode;
236
- }
237
- this.showDropdown();
238
- }
239
- clear(ev) {
240
- delete this.model;
241
- this.onModelChange(this.model);
242
- if (ev) {
243
- ev.preventDefault();
244
- ev.stopPropagation();
245
- return false;
246
- }
247
- }
248
- onBlur(ev) {
249
- let internalControl = false;
250
- if (ev.relatedTarget) {
251
- if (!this.elementRef.nativeElement.contains(ev.relatedTarget)) {
252
- this.dismissDropdown();
253
- }
254
- else {
255
- internalControl = true;
256
- }
257
- }
258
- if (this.keyListenerActive && !internalControl) {
259
- this.input.removeEventListener('keydown', this.keydown);
260
- setTimeout(() => {
261
- if (!this.keyListenerActive) {
262
- document.removeEventListener('click', this.clickout);
263
- }
264
- }, 400);
265
- delete this.keyListenerActive;
266
- }
267
- }
268
- onSuggestionSelect(ev, suggestion) {
269
- if (!suggestion) {
270
- return;
271
- }
272
- ev.preventDefault();
273
- ev.stopPropagation();
274
- this.focus();
275
- this.dismissDropdown();
276
- this.model = suggestion;
277
- this.onModelChange(suggestion);
278
- }
279
- dismissDropdown(event) {
280
- if (event) {
281
- this.focus();
282
- }
283
- if (this.dropdown) {
284
- this.dropdown.classList.remove('Vlt-dropdown--expanded');
285
- }
286
- }
287
- ensureDropdownIsVisible() {
288
- setTimeout(() => {
289
- const holder = this.dropdown.closest('.Vlt-card__content');
290
- const el = this.elementRef.nativeElement.querySelector('.Vlt-dropdown__panel');
291
- const elRect = el.getBoundingClientRect();
292
- const holderRect = holder.getBoundingClientRect();
293
- if (holderRect.top + holderRect.height < elRect.top + elRect.height) {
294
- el.scrollIntoView({ block: 'end' });
295
- }
296
- }, 400);
297
- }
298
- showDropdown() {
299
- if (this.meta.suggestions && this.meta.suggestions.length) {
300
- this.dropdown.classList.add('Vlt-dropdown--expanded');
301
- this.ensureDropdownIsVisible();
302
- }
303
- if (!this.keyListenerActive) {
304
- this.input.addEventListener('keydown', this.keydown);
305
- setTimeout(() => {
306
- document.addEventListener('click', this.clickout);
307
- }, 200);
308
- this.keyListenerActive = true;
309
- if (this.parent[this.meta.name]) {
310
- for (let suggestionIndex = 0; suggestionIndex < (this.meta.suggestions || []).length; suggestionIndex++) {
311
- if (this.meta.suggestions[suggestionIndex] === this.parent[this.meta.name]) {
312
- this.activeSuggestionIndex = suggestionIndex;
313
- }
314
- }
315
- }
316
- }
317
- }
318
- autoSetValue(againstTimestamp, v, cfg) {
319
- const compareValue = relativeTimeBuilder(this.meta.type, cfg.offset, this.validations.step, againstTimestamp);
320
- if (this.model) {
321
- const currentValue = new Date(this.model).getTime();
322
- let isInvalid;
323
- if (v === 'gt') {
324
- isInvalid = compareValue > currentValue;
325
- }
326
- else if (v === 'lt') {
327
- isInvalid = currentValue > compareValue;
328
- }
329
- if (isInvalid) {
330
- this.parent[this.meta.name] = compareValue;
331
- }
332
- }
333
- else {
334
- this.parent[this.meta.name] = compareValue;
335
- }
336
- }
337
- setupLogicalValidation(v) {
338
- const cfg = this.meta.auto[v];
339
- if (typeof (cfg.against) === 'string') {
340
- let againstValue = this.parent[cfg.against];
341
- try {
342
- let againstTimestamp = Date.parse(`${againstValue}Z`) + (new Date().getTimezoneOffset() * 60000);
343
- if (againstValue) {
344
- this.autoSetValue(againstTimestamp, v, cfg);
345
- }
346
- this.parentChangeSubject.subscribe((value) => {
347
- if (value && value.hasOwnProperty(cfg.against)) {
348
- againstValue = value[cfg.against];
349
- if (againstValue) {
350
- againstTimestamp = Date.parse(`${againstValue}Z`) + (new Date().getTimezoneOffset() * 60000);
351
- this.autoSetValue(againstTimestamp, v, cfg);
352
- }
353
- }
354
- });
355
- }
356
- catch (e) { }
357
- }
358
- }
359
- }
360
- FieldDatetime.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.8", ngImport: i0, type: FieldDatetime, deps: null, target: i0.ɵɵFactoryTarget.Component });
361
- FieldDatetime.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.8", type: FieldDatetime, 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'>{{model}}</div>\n</div>\n<div *ngIf='!preview' class=\"Vlt-form__element Vlt-form__element--big\" [ngClass]=\"{'Vlt-form__element--error': f.invalid && ((f | metaModel)._parent.submitted || (f | metaModel ).touched), 'has-value': f.value, active: keyListenerActive }\">\n <div class=\"Vlt-input\">\n <label class='wrapper'>\n <input class='main model' [pattern]=\"validations.pattern ? validations.pattern.value || validations.pattern : null\" [required]='validations.required' [minlength]='validations.minlength' [maxlength]='validations.maxlength' [min]='validations.min' [max]='validations.max' [step]='validations.step' [disabled]='disabled' [readonly]='readonly' [(ngModel)]='model' (ngModelChange)=\"onModelChange($event)\" #f='ngModel' [name]='name' [type]=\"type\" [placeholder]=\"placeholder\" (click)='onActivated($event)' (focus)='onActivated($event)' (blur)='onBlur($event)'/>\n <label class='Vlt-truncate'>{{meta.label || meta.name}}<span *ngIf='validations.required' class='Vlt-red'>*</span></label>\n </label>\n <div class='Vlt-composite__append right-actions'>\n <div *ngIf='model' class=\"Vlt-composite__append--icon\" (click)='clear()'>\n <div class=\"Vlt-composite__icon\">\n <svg><use xlink:href=\"volta/volta-icons.svg#Vlt-icon-cross\"/></svg>\n </div>\n </div>\n </div>\n </div>\n <small *ngIf='f.invalid && ((f | metaModel)._parent.submitted || ((f | metaModel ).touched && keyListenerActive))' class=\"Vlt-form__element__error\">\n <span *ngIf=\"f.errors.required\">Required.&nbsp;</span>\n <span *ngIf=\"f.errors.min\">Must be later than {{validations.min}}.&nbsp;</span>\n <span *ngIf=\"f.errors.max\">Must be no later than {{validations}}.&nbsp;</span>\n <span *ngIf=\"f.errors.custom\">{{f.errors.custom}}&nbsp;</span>\n </small>\n <small *ngIf='meta.hint' class=\"Vlt-form__element__hint\">{{meta.hint}}</small>\n</div>\n", styles: [".Vlt-form__element--big.Vlt-form__element--error input.main,.Vlt-form__element--big.Vlt-form__element--error .Vlt-composite__append button{background:var(--vgip-meta-input-bg-color);border-color:#f25a6b;box-shadow:none}@-moz-document url-prefix(){.Vlt-composite__append.right-actions{right:10px!important}}.Vlt-composite__append.right-actions{position:absolute;top:5px;right:10px;cursor:pointer}@media screen and (-webkit-min-device-pixel-ratio: 0) and (-webkit-min-device-pixel-ratio: 0),screen and (-webkit-min-device-pixel-ratio: 0) and (min-resolution: .001dpcm){.Vlt-composite__append.right-actions{right:53px}}.Vlt-composite__append.right-actions .Vlt-composite__append--icon{width:36px;outline:none;position:initial;display:inline-block}.Vlt-composite__append.right-actions .Vlt-composite__append--icon svg{height:14px;width:14px}.Vlt-composite__append.right-actions .Vlt-composite__append--icon:hover svg,.Vlt-composite__append.right-actions .Vlt-composite__append--icon:focus svg{fill:#2c2d30}:host-context ::ng-deep input::-webkit-calendar-picker-indicator{height:48px;width:51px;margin-top:-15px;margin-right:-15px;padding:0 2px 0 0;cursor:pointer;color:transparent;background-origin:content-box;background-size:initial;background-repeat:no-repeat;background-position:center;opacity:1;visibility:visible;background-image:var(--vgip-meta-date-icon)}:host-context ::ng-deep input::-webkit-calendar-picker-indicator:hover{background-color:var(--vgip-meta-input-action-hover-bg-color)}:host-context ::ng-deep input[type=time]::-webkit-calendar-picker-indicator{background-image:var(--vgip-meta-time-icon)}:host-context ::ng-deep input[readonly]::-webkit-calendar-picker-indicator{visibility:visible}:host-context ::ng-deep input:enabled:read-write:-webkit-any(:focus,:hover)::-webkit-clear-button{opacity:0;pointer-events:none}:host-context ::ng-deep input:enabled:read-write:-webkit-any(:focus,:hover)::-webkit-inner-spin-button{opacity:0;pointer-events:none}\n"], dependencies: [{ kind: "directive", type: i1.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { 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.MinLengthValidator, selector: "[minlength][formControlName],[minlength][formControl],[minlength][ngModel]", inputs: ["minlength"] }, { kind: "directive", type: i2.MaxLengthValidator, selector: "[maxlength][formControlName],[maxlength][formControl],[maxlength][ngModel]", inputs: ["maxlength"] }, { kind: "directive", type: i2.PatternValidator, selector: "[pattern][formControlName],[pattern][formControl],[pattern][ngModel]", inputs: ["pattern"] }, { 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 }] });
362
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.8", ngImport: i0, type: FieldDatetime, decorators: [{
363
- type: Component,
364
- 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'>{{model}}</div>\n</div>\n<div *ngIf='!preview' class=\"Vlt-form__element Vlt-form__element--big\" [ngClass]=\"{'Vlt-form__element--error': f.invalid && ((f | metaModel)._parent.submitted || (f | metaModel ).touched), 'has-value': f.value, active: keyListenerActive }\">\n <div class=\"Vlt-input\">\n <label class='wrapper'>\n <input class='main model' [pattern]=\"validations.pattern ? validations.pattern.value || validations.pattern : null\" [required]='validations.required' [minlength]='validations.minlength' [maxlength]='validations.maxlength' [min]='validations.min' [max]='validations.max' [step]='validations.step' [disabled]='disabled' [readonly]='readonly' [(ngModel)]='model' (ngModelChange)=\"onModelChange($event)\" #f='ngModel' [name]='name' [type]=\"type\" [placeholder]=\"placeholder\" (click)='onActivated($event)' (focus)='onActivated($event)' (blur)='onBlur($event)'/>\n <label class='Vlt-truncate'>{{meta.label || meta.name}}<span *ngIf='validations.required' class='Vlt-red'>*</span></label>\n </label>\n <div class='Vlt-composite__append right-actions'>\n <div *ngIf='model' class=\"Vlt-composite__append--icon\" (click)='clear()'>\n <div class=\"Vlt-composite__icon\">\n <svg><use xlink:href=\"volta/volta-icons.svg#Vlt-icon-cross\"/></svg>\n </div>\n </div>\n </div>\n </div>\n <small *ngIf='f.invalid && ((f | metaModel)._parent.submitted || ((f | metaModel ).touched && keyListenerActive))' class=\"Vlt-form__element__error\">\n <span *ngIf=\"f.errors.required\">Required.&nbsp;</span>\n <span *ngIf=\"f.errors.min\">Must be later than {{validations.min}}.&nbsp;</span>\n <span *ngIf=\"f.errors.max\">Must be no later than {{validations}}.&nbsp;</span>\n <span *ngIf=\"f.errors.custom\">{{f.errors.custom}}&nbsp;</span>\n </small>\n <small *ngIf='meta.hint' class=\"Vlt-form__element__hint\">{{meta.hint}}</small>\n</div>\n", styles: [".Vlt-form__element--big.Vlt-form__element--error input.main,.Vlt-form__element--big.Vlt-form__element--error .Vlt-composite__append button{background:var(--vgip-meta-input-bg-color);border-color:#f25a6b;box-shadow:none}@-moz-document url-prefix(){.Vlt-composite__append.right-actions{right:10px!important}}.Vlt-composite__append.right-actions{position:absolute;top:5px;right:10px;cursor:pointer}@media screen and (-webkit-min-device-pixel-ratio: 0) and (-webkit-min-device-pixel-ratio: 0),screen and (-webkit-min-device-pixel-ratio: 0) and (min-resolution: .001dpcm){.Vlt-composite__append.right-actions{right:53px}}.Vlt-composite__append.right-actions .Vlt-composite__append--icon{width:36px;outline:none;position:initial;display:inline-block}.Vlt-composite__append.right-actions .Vlt-composite__append--icon svg{height:14px;width:14px}.Vlt-composite__append.right-actions .Vlt-composite__append--icon:hover svg,.Vlt-composite__append.right-actions .Vlt-composite__append--icon:focus svg{fill:#2c2d30}:host-context ::ng-deep input::-webkit-calendar-picker-indicator{height:48px;width:51px;margin-top:-15px;margin-right:-15px;padding:0 2px 0 0;cursor:pointer;color:transparent;background-origin:content-box;background-size:initial;background-repeat:no-repeat;background-position:center;opacity:1;visibility:visible;background-image:var(--vgip-meta-date-icon)}:host-context ::ng-deep input::-webkit-calendar-picker-indicator:hover{background-color:var(--vgip-meta-input-action-hover-bg-color)}:host-context ::ng-deep input[type=time]::-webkit-calendar-picker-indicator{background-image:var(--vgip-meta-time-icon)}:host-context ::ng-deep input[readonly]::-webkit-calendar-picker-indicator{visibility:visible}:host-context ::ng-deep input:enabled:read-write:-webkit-any(:focus,:hover)::-webkit-clear-button{opacity:0;pointer-events:none}:host-context ::ng-deep input:enabled:read-write:-webkit-any(:focus,:hover)::-webkit-inner-spin-button{opacity:0;pointer-events:none}\n"] }]
365
- }] });
366
-
367
- export { FieldDatetime };
368
- //# sourceMappingURL=vgip-meta-ui-index-2b20afc8.mjs.map
@@ -1,24 +0,0 @@
1
- import * as i0 from '@angular/core';
2
- import { Component } from '@angular/core';
3
- import { F as FieldAbstract } from './vgip-meta-ui-fieldAbstract-f7d80db6.mjs';
4
- import * as i1 from '@angular/common';
5
- import 'rxjs';
6
- import 'rxjs/operators';
7
-
8
- /*
9
- * @Author: Alexander.Vangelov@vonage.com
10
- * @Date: 2019-09-19 17:35:19
11
- * @Last Modified by: Alexander.Vangelov@vonage.com
12
- * @Last Modified time: 2019-11-15 13:04:01
13
- */
14
- class FieldUnknown extends FieldAbstract {
15
- }
16
- FieldUnknown.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.8", ngImport: i0, type: FieldUnknown, deps: null, target: i0.ɵɵFactoryTarget.Component });
17
- FieldUnknown.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.8", type: FieldUnknown, selector: "ng-component", usesInheritance: true, ngImport: i0, template: "<div class=\"Vlt-form__element Vlt-form__element--big\">\n <div class=\"Vlt-input\">\n <input class='main model' type=\"text\" placeholder=\"\" value=\"Unknown field type '{{meta.type}}'.\" disabled/>\n <label class=\"Vlt-label Vlt-truncate\" style='padding-right: 20px;'>{{meta.label || meta.name}}</label>\n </div>\n <small *ngIf='meta.hint' class=\"Vlt-form__element__hint\">{{meta.hint}}</small>\n</div>", dependencies: [{ kind: "directive", type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }] });
18
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.8", ngImport: i0, type: FieldUnknown, decorators: [{
19
- type: Component,
20
- args: [{ template: "<div class=\"Vlt-form__element Vlt-form__element--big\">\n <div class=\"Vlt-input\">\n <input class='main model' type=\"text\" placeholder=\"\" value=\"Unknown field type '{{meta.type}}'.\" disabled/>\n <label class=\"Vlt-label Vlt-truncate\" style='padding-right: 20px;'>{{meta.label || meta.name}}</label>\n </div>\n <small *ngIf='meta.hint' class=\"Vlt-form__element__hint\">{{meta.hint}}</small>\n</div>" }]
21
- }] });
22
-
23
- export { FieldUnknown };
24
- //# sourceMappingURL=vgip-meta-ui-index-476b6cb7.mjs.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"vgip-meta-ui-index-476b6cb7.mjs","sources":["../../../projects/meta-ui/src/lib/fieldUnknown/index.ts","../../../projects/meta-ui/src/lib/fieldUnknown/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: 2019-11-15 13:04:01\n */\n\nimport { Component, Input, OnInit } from '@angular/core';\nimport { FieldAbstract } from '../fieldAbstract';\n\n@Component({\n templateUrl: './view.html'\n})\nexport class FieldUnknown extends FieldAbstract {}\n","<div class=\"Vlt-form__element Vlt-form__element--big\">\n <div class=\"Vlt-input\">\n <input class='main model' type=\"text\" placeholder=\"\" value=\"Unknown field type '{{meta.type}}'.\" disabled/>\n <label class=\"Vlt-label Vlt-truncate\" style='padding-right: 20px;'>{{meta.label || meta.name}}</label>\n </div>\n <small *ngIf='meta.hint' class=\"Vlt-form__element__hint\">{{meta.hint}}</small>\n</div>"],"names":[],"mappings":";;;;;;;AAAA;;;;;AAKG;AAQG,MAAO,YAAa,SAAQ,aAAa,CAAA;;yGAAlC,YAAY,EAAA,IAAA,EAAA,IAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA,CAAA;AAAZ,YAAA,CAAA,IAAA,GAAA,EAAA,CAAA,oBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,QAAA,EAAA,IAAA,EAAA,YAAY,2ECbzB,kaAMM,EAAA,YAAA,EAAA,CAAA,EAAA,IAAA,EAAA,WAAA,EAAA,IAAA,EAAA,EAAA,CAAA,IAAA,EAAA,QAAA,EAAA,QAAA,EAAA,MAAA,EAAA,CAAA,MAAA,EAAA,UAAA,EAAA,UAAA,CAAA,EAAA,CAAA,EAAA,CAAA,CAAA;2FDOO,YAAY,EAAA,UAAA,EAAA,CAAA;kBAHxB,SAAS;;;;;;"}