@vgip/meta-ui 1.7.0 → 1.7.3

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 (185) hide show
  1. package/{esm2020 → esm2022}/lib/common/metaAutofocus.directive.mjs +4 -4
  2. package/esm2022/lib/common/metaIcons.pipe.mjs +29 -0
  3. package/esm2022/lib/common/metaModel.pipe.mjs +23 -0
  4. package/esm2022/lib/common/metaNormalizer.mjs +341 -0
  5. package/{esm2020 → esm2022}/lib/common/metaStripHtml.pipe.mjs +4 -4
  6. package/esm2022/lib/common/utils/colorThemes.mjs +77 -0
  7. package/esm2022/lib/common/utils/indexedDbStore/index.mjs +218 -0
  8. package/{esm2020 → esm2022}/lib/common/utils/templateBuilder.mjs +3 -3
  9. package/esm2022/lib/fieldAbstract.mjs +291 -0
  10. package/{esm2020 → esm2022}/lib/fieldBoolean/index.mjs +4 -4
  11. package/{esm2020 → esm2022}/lib/fieldComposite/index.mjs +4 -4
  12. package/esm2022/lib/fieldDatetime/index.mjs +365 -0
  13. package/{esm2020 → esm2022}/lib/fieldHidden/index.mjs +4 -4
  14. package/{esm2020 → esm2022}/lib/fieldInput/index.mjs +5 -5
  15. package/esm2022/lib/fieldList/index.mjs +69 -0
  16. package/{esm2020 → esm2022}/lib/fieldRadio/index.mjs +5 -5
  17. package/esm2022/lib/fieldReference/index.mjs +829 -0
  18. package/esm2022/lib/fieldRichtext/index.mjs +95 -0
  19. package/esm2022/lib/fieldSelect/index.mjs +495 -0
  20. package/{esm2020 → esm2022}/lib/fieldText/index.mjs +5 -5
  21. package/esm2022/lib/fieldUnknown/index.mjs +19 -0
  22. package/esm2022/lib/index.mjs +163 -0
  23. package/esm2022/lib/layout/index.mjs +155 -0
  24. package/{esm2020 → esm2022}/lib/metaField/index.mjs +7 -7
  25. package/esm2022/lib/refDialog/index.mjs +135 -0
  26. package/esm2022/lib/resource/index.mjs +495 -0
  27. package/{esm2020 → esm2022}/lib/resourceCard/index.mjs +4 -4
  28. package/{esm2020 → esm2022}/lib/services/metaContext/index.mjs +4 -4
  29. package/esm2022/lib/services/metaMsg/index.mjs +84 -0
  30. package/esm2022/lib/services/metaReference/index.mjs +89 -0
  31. package/{esm2020 → esm2022}/lib/services/metaResource/index.mjs +7 -7
  32. package/{esm2020 → esm2022}/lib/services/metaResource/metaHttpClient.mjs +5 -5
  33. package/{esm2020 → esm2022}/lib/services/metaTracker/index.mjs +4 -4
  34. package/esm2022/lib/services/resourceDrafts/index.mjs +69 -0
  35. package/{fesm2020/vgip-meta-ui-fieldAbstract-f7d80db6.mjs → fesm2022/vgip-meta-ui-fieldAbstract-9955be39.mjs} +10 -8
  36. package/fesm2022/vgip-meta-ui-fieldAbstract-9955be39.mjs.map +1 -0
  37. package/{fesm2020/vgip-meta-ui-index-301b28cd.mjs → fesm2022/vgip-meta-ui-index-39011b04.mjs} +20 -20
  38. package/{fesm2020/vgip-meta-ui-index-301b28cd.mjs.map → fesm2022/vgip-meta-ui-index-39011b04.mjs.map} +1 -1
  39. package/{fesm2020/vgip-meta-ui-index-4fcefde0.mjs → fesm2022/vgip-meta-ui-index-3bc3d41b.mjs} +88 -56
  40. package/fesm2022/vgip-meta-ui-index-3bc3d41b.mjs.map +1 -0
  41. package/fesm2022/vgip-meta-ui-index-3fda8c0e.mjs +74 -0
  42. package/fesm2022/vgip-meta-ui-index-3fda8c0e.mjs.map +1 -0
  43. package/fesm2022/vgip-meta-ui-index-5871a6f2.mjs +95 -0
  44. package/fesm2022/vgip-meta-ui-index-5871a6f2.mjs.map +1 -0
  45. package/fesm2022/vgip-meta-ui-index-5891b8e7.mjs +24 -0
  46. package/fesm2022/vgip-meta-ui-index-5891b8e7.mjs.map +1 -0
  47. package/{fesm2020/vgip-meta-ui-index-87041aad.mjs → fesm2022/vgip-meta-ui-index-5d13f5e6.mjs} +5 -5
  48. package/{fesm2015/vgip-meta-ui-index-87041aad.mjs.map → fesm2022/vgip-meta-ui-index-5d13f5e6.mjs.map} +1 -1
  49. package/fesm2022/vgip-meta-ui-index-9e4137fe.mjs +68 -0
  50. package/fesm2022/vgip-meta-ui-index-9e4137fe.mjs.map +1 -0
  51. package/fesm2022/vgip-meta-ui-index-a2a973a6.mjs +862 -0
  52. package/fesm2022/vgip-meta-ui-index-a2a973a6.mjs.map +1 -0
  53. package/{fesm2015/vgip-meta-ui-index-81aa79dc.mjs → fesm2022/vgip-meta-ui-index-af4eda3c.mjs} +8 -8
  54. package/fesm2022/vgip-meta-ui-index-af4eda3c.mjs.map +1 -0
  55. package/fesm2022/vgip-meta-ui-index-b0a76073.mjs +97 -0
  56. package/fesm2022/vgip-meta-ui-index-b0a76073.mjs.map +1 -0
  57. package/fesm2022/vgip-meta-ui-index-b48e32ce.mjs +502 -0
  58. package/fesm2022/vgip-meta-ui-index-b48e32ce.mjs.map +1 -0
  59. package/{fesm2020/vgip-meta-ui-index-2b20afc8.mjs → fesm2022/vgip-meta-ui-index-b6fcc07d.mjs} +10 -8
  60. package/fesm2022/vgip-meta-ui-index-b6fcc07d.mjs.map +1 -0
  61. package/{fesm2015/vgip-meta-ui-index-bf5b6c0f.mjs → fesm2022/vgip-meta-ui-index-c39ea0ec.mjs} +6 -6
  62. package/{fesm2020/vgip-meta-ui-index-bf5b6c0f.mjs.map → fesm2022/vgip-meta-ui-index-c39ea0ec.mjs.map} +1 -1
  63. package/{fesm2020/vgip-meta-ui-index-6e77c362.mjs → fesm2022/vgip-meta-ui-index-ea5c2466.mjs} +6 -6
  64. package/fesm2022/vgip-meta-ui-index-ea5c2466.mjs.map +1 -0
  65. package/{fesm2020/vgip-meta-ui-index-b92a559b.mjs → fesm2022/vgip-meta-ui-index-fef499eb.mjs} +6 -6
  66. package/{fesm2020/vgip-meta-ui-index-b92a559b.mjs.map → fesm2022/vgip-meta-ui-index-fef499eb.mjs.map} +1 -1
  67. package/fesm2022/vgip-meta-ui-metaModel.pipe-6b803e66.mjs +26 -0
  68. package/fesm2022/vgip-meta-ui-metaModel.pipe-6b803e66.mjs.map +1 -0
  69. package/{fesm2015 → fesm2022}/vgip-meta-ui.mjs +108 -103
  70. package/fesm2022/vgip-meta-ui.mjs.map +1 -0
  71. package/lib/common/metaAutofocus.directive.d.ts +1 -1
  72. package/lib/common/metaIcons.pipe.d.ts +1 -1
  73. package/lib/common/metaModel.pipe.d.ts +1 -2
  74. package/lib/common/utils/indexedDbStore/index.d.ts +2 -2
  75. package/lib/fieldAbstract.d.ts +0 -4
  76. package/lib/fieldBoolean/index.d.ts +1 -1
  77. package/lib/fieldComposite/index.d.ts +1 -1
  78. package/lib/fieldRadio/index.d.ts +1 -1
  79. package/lib/fieldReference/index.d.ts +1 -1
  80. package/lib/fieldRichtext/index.d.ts +6 -8
  81. package/lib/fieldSelect/index.d.ts +1 -1
  82. package/lib/fieldText/index.d.ts +1 -1
  83. package/lib/layout/index.d.ts +5 -5
  84. package/lib/metaField/index.d.ts +1 -1
  85. package/lib/refDialog/index.d.ts +3 -3
  86. package/lib/resource/index.d.ts +2 -2
  87. package/lib/resourceCard/index.d.ts +1 -1
  88. package/package.json +8 -14
  89. package/esm2020/lib/common/metaIcons.pipe.mjs +0 -29
  90. package/esm2020/lib/common/metaModel.pipe.mjs +0 -25
  91. package/esm2020/lib/common/metaNormalizer.mjs +0 -327
  92. package/esm2020/lib/common/utils/colorThemes.mjs +0 -79
  93. package/esm2020/lib/common/utils/indexedDbStore/index.mjs +0 -218
  94. package/esm2020/lib/fieldAbstract.mjs +0 -287
  95. package/esm2020/lib/fieldDatetime/index.mjs +0 -363
  96. package/esm2020/lib/fieldList/index.mjs +0 -69
  97. package/esm2020/lib/fieldReference/index.mjs +0 -825
  98. package/esm2020/lib/fieldRichtext/index.mjs +0 -85
  99. package/esm2020/lib/fieldSelect/index.mjs +0 -490
  100. package/esm2020/lib/fieldUnknown/index.mjs +0 -19
  101. package/esm2020/lib/index.mjs +0 -158
  102. package/esm2020/lib/layout/index.mjs +0 -149
  103. package/esm2020/lib/refDialog/index.mjs +0 -127
  104. package/esm2020/lib/resource/index.mjs +0 -491
  105. package/esm2020/lib/services/metaMsg/index.mjs +0 -84
  106. package/esm2020/lib/services/metaReference/index.mjs +0 -89
  107. package/esm2020/lib/services/resourceDrafts/index.mjs +0 -68
  108. package/fesm2015/vgip-meta-ui-fieldAbstract-f7d80db6.mjs +0 -397
  109. package/fesm2015/vgip-meta-ui-fieldAbstract-f7d80db6.mjs.map +0 -1
  110. package/fesm2015/vgip-meta-ui-index-1d2b4c69.mjs +0 -68
  111. package/fesm2015/vgip-meta-ui-index-1d2b4c69.mjs.map +0 -1
  112. package/fesm2015/vgip-meta-ui-index-2737c81e.mjs +0 -1900
  113. package/fesm2015/vgip-meta-ui-index-2737c81e.mjs.map +0 -1
  114. package/fesm2015/vgip-meta-ui-index-2b20afc8.mjs +0 -368
  115. package/fesm2015/vgip-meta-ui-index-2b20afc8.mjs.map +0 -1
  116. package/fesm2015/vgip-meta-ui-index-3eefa50a.mjs +0 -75
  117. package/fesm2015/vgip-meta-ui-index-3eefa50a.mjs.map +0 -1
  118. package/fesm2015/vgip-meta-ui-index-476b6cb7.mjs +0 -24
  119. package/fesm2015/vgip-meta-ui-index-476b6cb7.mjs.map +0 -1
  120. package/fesm2015/vgip-meta-ui-index-4b8d731c.mjs +0 -151
  121. package/fesm2015/vgip-meta-ui-index-4b8d731c.mjs.map +0 -1
  122. package/fesm2015/vgip-meta-ui-index-4ecdd48a.mjs +0 -72
  123. package/fesm2015/vgip-meta-ui-index-4ecdd48a.mjs.map +0 -1
  124. package/fesm2015/vgip-meta-ui-index-62be0e3e.mjs +0 -858
  125. package/fesm2015/vgip-meta-ui-index-62be0e3e.mjs.map +0 -1
  126. package/fesm2015/vgip-meta-ui-index-640f8e62.mjs +0 -95
  127. package/fesm2015/vgip-meta-ui-index-640f8e62.mjs.map +0 -1
  128. package/fesm2015/vgip-meta-ui-index-695384af.mjs +0 -88
  129. package/fesm2015/vgip-meta-ui-index-695384af.mjs.map +0 -1
  130. package/fesm2015/vgip-meta-ui-index-6e77c362.mjs +0 -130
  131. package/fesm2015/vgip-meta-ui-index-6e77c362.mjs.map +0 -1
  132. package/fesm2015/vgip-meta-ui-index-81aa79dc.mjs.map +0 -1
  133. package/fesm2015/vgip-meta-ui-index-87041aad.mjs +0 -23
  134. package/fesm2015/vgip-meta-ui-index-a76ba482.mjs +0 -498
  135. package/fesm2015/vgip-meta-ui-index-a76ba482.mjs.map +0 -1
  136. package/fesm2015/vgip-meta-ui-index-bf5b6c0f.mjs.map +0 -1
  137. package/fesm2015/vgip-meta-ui-metaModel.pipe-4b068359.mjs +0 -28
  138. package/fesm2015/vgip-meta-ui-metaModel.pipe-4b068359.mjs.map +0 -1
  139. package/fesm2015/vgip-meta-ui.mjs.map +0 -1
  140. package/fesm2020/vgip-meta-ui-fieldAbstract-f7d80db6.mjs.map +0 -1
  141. package/fesm2020/vgip-meta-ui-index-1d2b4c69.mjs +0 -68
  142. package/fesm2020/vgip-meta-ui-index-1d2b4c69.mjs.map +0 -1
  143. package/fesm2020/vgip-meta-ui-index-2b20afc8.mjs.map +0 -1
  144. package/fesm2020/vgip-meta-ui-index-476b6cb7.mjs +0 -24
  145. package/fesm2020/vgip-meta-ui-index-476b6cb7.mjs.map +0 -1
  146. package/fesm2020/vgip-meta-ui-index-4c4a4daf.mjs +0 -858
  147. package/fesm2020/vgip-meta-ui-index-4c4a4daf.mjs.map +0 -1
  148. package/fesm2020/vgip-meta-ui-index-4fcefde0.mjs.map +0 -1
  149. package/fesm2020/vgip-meta-ui-index-640f8e62.mjs +0 -95
  150. package/fesm2020/vgip-meta-ui-index-640f8e62.mjs.map +0 -1
  151. package/fesm2020/vgip-meta-ui-index-695384af.mjs +0 -88
  152. package/fesm2020/vgip-meta-ui-index-695384af.mjs.map +0 -1
  153. package/fesm2020/vgip-meta-ui-index-6e77c362.mjs.map +0 -1
  154. package/fesm2020/vgip-meta-ui-index-81aa79dc.mjs +0 -460
  155. package/fesm2020/vgip-meta-ui-index-81aa79dc.mjs.map +0 -1
  156. package/fesm2020/vgip-meta-ui-index-87041aad.mjs.map +0 -1
  157. package/fesm2020/vgip-meta-ui-index-aee28354.mjs +0 -497
  158. package/fesm2020/vgip-meta-ui-index-aee28354.mjs.map +0 -1
  159. package/fesm2020/vgip-meta-ui-index-bf5b6c0f.mjs +0 -61
  160. package/fesm2020/vgip-meta-ui-index-f7370960.mjs +0 -74
  161. package/fesm2020/vgip-meta-ui-index-f7370960.mjs.map +0 -1
  162. package/fesm2020/vgip-meta-ui-metaModel.pipe-4b068359.mjs +0 -28
  163. package/fesm2020/vgip-meta-ui-metaModel.pipe-4b068359.mjs.map +0 -1
  164. package/fesm2020/vgip-meta-ui-relativeTimeBuilder-31791ce4.mjs +0 -51
  165. package/fesm2020/vgip-meta-ui-relativeTimeBuilder-31791ce4.mjs.map +0 -1
  166. package/fesm2020/vgip-meta-ui.mjs +0 -524
  167. package/fesm2020/vgip-meta-ui.mjs.map +0 -1
  168. /package/{esm2020 → esm2022}/lib/common/fieldNormalizer/boolean.mjs +0 -0
  169. /package/{esm2020 → esm2022}/lib/common/fieldNormalizer/datetime.mjs +0 -0
  170. /package/{esm2020 → esm2022}/lib/common/fieldNormalizer/index.mjs +0 -0
  171. /package/{esm2020 → esm2022}/lib/common/fieldNormalizer/number.mjs +0 -0
  172. /package/{esm2020 → esm2022}/lib/common/fieldNormalizer/options.mjs +0 -0
  173. /package/{esm2020 → esm2022}/lib/common/fieldNormalizer/radio.mjs +0 -0
  174. /package/{esm2020 → esm2022}/lib/common/fieldNormalizer/reference.mjs +0 -0
  175. /package/{esm2020 → esm2022}/lib/common/fieldNormalizer/richtext.mjs +0 -0
  176. /package/{esm2020 → esm2022}/lib/common/fieldNormalizer/string.mjs +0 -0
  177. /package/{esm2020 → esm2022}/lib/common/fieldNormalizer/text.mjs +0 -0
  178. /package/{esm2020 → esm2022}/lib/common/fieldNormalizer/uniqueNameFilter.mjs +0 -0
  179. /package/{esm2020 → esm2022}/lib/common/utils/relativeTimeBuilder.mjs +0 -0
  180. /package/{esm2020 → esm2022}/lib/common/utils/resourceCardLabel.mjs +0 -0
  181. /package/{esm2020 → esm2022}/lib/common/utils/smartProp.mjs +0 -0
  182. /package/{esm2020 → esm2022}/public-api.mjs +0 -0
  183. /package/{esm2020 → esm2022}/vgip-meta-ui.mjs +0 -0
  184. /package/{fesm2015 → fesm2022}/vgip-meta-ui-relativeTimeBuilder-31791ce4.mjs +0 -0
  185. /package/{fesm2015 → fesm2022}/vgip-meta-ui-relativeTimeBuilder-31791ce4.mjs.map +0 -0
@@ -6,28 +6,27 @@ import { FormsModule, ReactiveFormsModule } from '@angular/forms';
6
6
  import { HttpClientModule } from '@angular/common/http';
7
7
  import * as i4 from 'ngx-quill';
8
8
  import { QuillModule } from 'ngx-quill';
9
- import { M as MetaRefDialog, a as MetaResourceService, b as MetaReferenceService, c as MetaLayout, d as MetaResource, e as MetaAutofocusDirective } from './vgip-meta-ui-index-2737c81e.mjs';
10
- export { g as MetaHttpClient, f as MetaMsgService, m as metaNormalizer } from './vgip-meta-ui-index-2737c81e.mjs';
11
- import { FieldUnknown } from './vgip-meta-ui-index-476b6cb7.mjs';
12
- import { FieldInput } from './vgip-meta-ui-index-81aa79dc.mjs';
13
- import { FieldText } from './vgip-meta-ui-index-1d2b4c69.mjs';
14
- import { FieldSelect } from './vgip-meta-ui-index-a76ba482.mjs';
15
- import { F as FieldReference } from './vgip-meta-ui-index-62be0e3e.mjs';
16
- export { M as MetaTrackerService } from './vgip-meta-ui-index-62be0e3e.mjs';
17
- import { FieldComposite } from './vgip-meta-ui-index-4ecdd48a.mjs';
18
- import { FieldBoolean } from './vgip-meta-ui-index-bf5b6c0f.mjs';
19
- import { FieldRadio } from './vgip-meta-ui-index-640f8e62.mjs';
20
- import { FieldList } from './vgip-meta-ui-index-3eefa50a.mjs';
21
- import { FieldRichtext } from './vgip-meta-ui-index-695384af.mjs';
22
- import { FieldDatetime } from './vgip-meta-ui-index-2b20afc8.mjs';
23
- import { FieldHidden } from './vgip-meta-ui-index-87041aad.mjs';
9
+ import { M as MetaRefDialog, a as MetaResourceService, b as MetaReferenceService, c as MetaLayout, d as MetaResource, e as MetaAutofocusDirective } from './vgip-meta-ui-index-3bc3d41b.mjs';
10
+ export { g as MetaHttpClient, f as MetaMsgService, m as metaNormalizer } from './vgip-meta-ui-index-3bc3d41b.mjs';
11
+ import { FieldUnknown } from './vgip-meta-ui-index-5891b8e7.mjs';
12
+ import { FieldInput } from './vgip-meta-ui-index-af4eda3c.mjs';
13
+ import { FieldText } from './vgip-meta-ui-index-9e4137fe.mjs';
14
+ import { FieldSelect } from './vgip-meta-ui-index-b48e32ce.mjs';
15
+ import { F as FieldReference } from './vgip-meta-ui-index-a2a973a6.mjs';
16
+ export { M as MetaTrackerService } from './vgip-meta-ui-index-a2a973a6.mjs';
17
+ import { FieldComposite } from './vgip-meta-ui-index-fef499eb.mjs';
18
+ import { FieldBoolean } from './vgip-meta-ui-index-c39ea0ec.mjs';
19
+ import { FieldRadio } from './vgip-meta-ui-index-5871a6f2.mjs';
20
+ import { FieldList } from './vgip-meta-ui-index-3fda8c0e.mjs';
21
+ import { FieldRichtext } from './vgip-meta-ui-index-b0a76073.mjs';
22
+ import { FieldDatetime } from './vgip-meta-ui-index-b6fcc07d.mjs';
23
+ import { FieldHidden } from './vgip-meta-ui-index-5d13f5e6.mjs';
24
24
  import * as i1$1 from '@angular/platform-browser';
25
- import { M as MetaModelPipe } from './vgip-meta-ui-metaModel.pipe-4b068359.mjs';
26
- import { M as MetaContextService } from './vgip-meta-ui-index-6e77c362.mjs';
25
+ import { M as MetaModelPipe } from './vgip-meta-ui-metaModel.pipe-6b803e66.mjs';
26
+ import { M as MetaContextService } from './vgip-meta-ui-index-ea5c2466.mjs';
27
27
  export { r as relativeTimeBuilder } from './vgip-meta-ui-relativeTimeBuilder-31791ce4.mjs';
28
- import { M as MetaField, a as MetaFieldContentDirective } from './vgip-meta-ui-index-4b8d731c.mjs';
29
- export { a as metaDark, m as metaLight } from './vgip-meta-ui-fieldAbstract-f7d80db6.mjs';
30
- import 'tslib';
28
+ import { M as MetaField, a as MetaFieldContentDirective } from './vgip-meta-ui-index-39011b04.mjs';
29
+ export { a as metaDark, m as metaLight } from './vgip-meta-ui-fieldAbstract-9955be39.mjs';
31
30
  import 'rxjs';
32
31
  import 'rxjs/operators';
33
32
  import '@angular/router';
@@ -54,10 +53,10 @@ class MetaResourceCard {
54
53
  // }
55
54
  });
56
55
  }
56
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.11", ngImport: i0, type: MetaResourceCard, deps: [{ token: MetaResourceService }, { token: MetaReferenceService }, { token: i0.ViewContainerRef }], target: i0.ɵɵFactoryTarget.Component }); }
57
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.11", type: MetaResourceCard, selector: "vgip-meta-resource-card", inputs: { resource: "resource", model: "model" }, ngImport: i0, template: "<div class=\"Vlt-card Vlt-bg-white\">\n\t<div class=\"Vlt-card__content Vlt-btn-on-hover\">\n\t\t<h5>{{model.Subject || model.subject || model.summary || model.title || model.CaseNumber || model.comment || model.body || model.name || model.topic || '...' }}</h5>\n\t\t<div style='font-size: 12px; line-height: 16px;'>\n\t\t\tCreated: <span class='Vlt-black'>{{model._vgis.createdDate | date:'mediumDate'}}</span>\n\t\t\tEdited: <span class='Vlt-black'>{{model._vgis.modifiedDate | date:'medium'}}</span>\n\t\t</div>\n\t\t<div class=\"Vlt-badge Vlt-badge--app Vlt-badge--purple Vlt-badge--small\">{{model._vgis.resourceType}}</div>\n\t\t<div class=\"Vlt-btn-group Vlt-btn-group--hover\">\n\t\t\t<a *ngIf='model._vgis.externalLink' attr.href='{{model._vgis.externalLink}}' target='_blank' rel='noopener' class=\"Vlt-btn Vlt-btn--tertiary Vlt-btn--icon\" aria-label='Open external'><svg style='margin-left: 0; margin-right: 0;'><use xlink:href=\"volta/volta-icons.svg#Vlt-icon-open\"/></svg></a>\n\t\t\t<button type='button' (click)='open(resource, model)' class=\"Vlt-btn Vlt-btn--tertiary Vlt-btn--icon\" aria-label='Edit'><svg style='margin-left: 0; margin-right: 0;'><use xlink:href=\"volta/volta-icons.svg#Vlt-icon-edit\"/></svg></button>\n\t\t</div>\n\t</div>\n</div>\n", styles: [".Vlt-card{margin-bottom:8px;padding:16px}.Vlt-card .Vlt-btn-group.Vlt-btn-group--hover{right:-8px}\n"], dependencies: [{ kind: "directive", type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "pipe", type: i1.DatePipe, name: "date" }] }); }
57
58
  }
58
- MetaResourceCard.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.8", ngImport: i0, type: MetaResourceCard, deps: [{ token: MetaResourceService }, { token: MetaReferenceService }, { token: i0.ViewContainerRef }], target: i0.ɵɵFactoryTarget.Component });
59
- MetaResourceCard.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.8", type: MetaResourceCard, selector: "vgip-meta-resource-card", inputs: { resource: "resource", model: "model" }, ngImport: i0, template: "<div class=\"Vlt-card Vlt-bg-white\">\n\t<div class=\"Vlt-card__content Vlt-btn-on-hover\">\n\t\t<h5>{{model.Subject || model.subject || model.summary || model.title || model.CaseNumber || model.comment || model.body || model.name || model.topic || '...' }}</h5>\n\t\t<div style='font-size: 12px; line-height: 16px;'>\n\t\t\tCreated: <span class='Vlt-black'>{{model._vgis.createdDate | date:'mediumDate'}}</span>\n\t\t\tEdited: <span class='Vlt-black'>{{model._vgis.modifiedDate | date:'medium'}}</span>\n\t\t</div>\n\t\t<div class=\"Vlt-badge Vlt-badge--app Vlt-badge--purple Vlt-badge--small\">{{model._vgis.resourceType}}</div>\n\t\t<div class=\"Vlt-btn-group Vlt-btn-group--hover\">\n\t\t\t<a *ngIf='model._vgis.externalLink' attr.href='{{model._vgis.externalLink}}' target='_blank' rel='noopener' class=\"Vlt-btn Vlt-btn--tertiary Vlt-btn--icon\" aria-label='Open external'><svg style='margin-left: 0; margin-right: 0;'><use xlink:href=\"volta/volta-icons.svg#Vlt-icon-open\"/></svg></a>\n\t\t\t<button type='button' (click)='open(resource, model)' class=\"Vlt-btn Vlt-btn--tertiary Vlt-btn--icon\" aria-label='Edit'><svg style='margin-left: 0; margin-right: 0;'><use xlink:href=\"volta/volta-icons.svg#Vlt-icon-edit\"/></svg></button>\n\t\t</div>\n\t</div>\n</div>\n", styles: [".Vlt-card{margin-bottom:8px;padding:16px}.Vlt-card .Vlt-btn-group.Vlt-btn-group--hover{right:-8px}\n"], dependencies: [{ kind: "directive", type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "pipe", type: i1.DatePipe, name: "date" }] });
60
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.8", ngImport: i0, type: MetaResourceCard, decorators: [{
59
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.11", ngImport: i0, type: MetaResourceCard, decorators: [{
61
60
  type: Component,
62
61
  args: [{ selector: 'vgip-meta-resource-card', template: "<div class=\"Vlt-card Vlt-bg-white\">\n\t<div class=\"Vlt-card__content Vlt-btn-on-hover\">\n\t\t<h5>{{model.Subject || model.subject || model.summary || model.title || model.CaseNumber || model.comment || model.body || model.name || model.topic || '...' }}</h5>\n\t\t<div style='font-size: 12px; line-height: 16px;'>\n\t\t\tCreated: <span class='Vlt-black'>{{model._vgis.createdDate | date:'mediumDate'}}</span>\n\t\t\tEdited: <span class='Vlt-black'>{{model._vgis.modifiedDate | date:'medium'}}</span>\n\t\t</div>\n\t\t<div class=\"Vlt-badge Vlt-badge--app Vlt-badge--purple Vlt-badge--small\">{{model._vgis.resourceType}}</div>\n\t\t<div class=\"Vlt-btn-group Vlt-btn-group--hover\">\n\t\t\t<a *ngIf='model._vgis.externalLink' attr.href='{{model._vgis.externalLink}}' target='_blank' rel='noopener' class=\"Vlt-btn Vlt-btn--tertiary Vlt-btn--icon\" aria-label='Open external'><svg style='margin-left: 0; margin-right: 0;'><use xlink:href=\"volta/volta-icons.svg#Vlt-icon-open\"/></svg></a>\n\t\t\t<button type='button' (click)='open(resource, model)' class=\"Vlt-btn Vlt-btn--tertiary Vlt-btn--icon\" aria-label='Edit'><svg style='margin-left: 0; margin-right: 0;'><use xlink:href=\"volta/volta-icons.svg#Vlt-icon-edit\"/></svg></button>\n\t\t</div>\n\t</div>\n</div>\n", styles: [".Vlt-card{margin-bottom:8px;padding:16px}.Vlt-card .Vlt-btn-group.Vlt-btn-group--hover{right:-8px}\n"] }]
63
62
  }], ctorParameters: function () { return [{ type: MetaResourceService }, { type: MetaReferenceService }, { type: i0.ViewContainerRef }]; }, propDecorators: { resource: [{
@@ -76,16 +75,16 @@ class MetaIconsPipe {
76
75
  constructor(sanitizer) {
77
76
  this.sanitizer = sanitizer;
78
77
  }
79
- transform(value, ...args) {
78
+ transform(value) {
80
79
  if (typeof (value) === 'string') {
81
- value = value.replace(/\${\s*icon:([\w\-]+)\s*}/g, (match, val) => `<svg class='Vlt-icon'><use xlink:href="volta/volta-icons.svg#${val}"/></svg>`);
80
+ value = value.replace(/\${\s*icon:([\w-]+)\s*}/g, (match, val) => `<svg class='Vlt-icon'><use xlink:href="volta/volta-icons.svg#${val}"/></svg>`);
82
81
  return value; //this.sanitizer.bypassSecurityTrustHtml(value);
83
82
  }
84
83
  }
84
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.11", ngImport: i0, type: MetaIconsPipe, deps: [{ token: i1$1.DomSanitizer }], target: i0.ɵɵFactoryTarget.Pipe }); }
85
+ static { this.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "16.2.11", ngImport: i0, type: MetaIconsPipe, name: "metaIcons" }); }
85
86
  }
86
- MetaIconsPipe.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.8", ngImport: i0, type: MetaIconsPipe, deps: [{ token: i1$1.DomSanitizer }], target: i0.ɵɵFactoryTarget.Pipe });
87
- MetaIconsPipe.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "15.2.8", ngImport: i0, type: MetaIconsPipe, name: "metaIcons" });
88
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.8", ngImport: i0, type: MetaIconsPipe, decorators: [{
87
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.11", ngImport: i0, type: MetaIconsPipe, decorators: [{
89
88
  type: Pipe,
90
89
  args: [{
91
90
  name: 'metaIcons'
@@ -102,10 +101,10 @@ class MetaStripHtmlPipe {
102
101
  transform(value) {
103
102
  return value.replace(/<[^>]*>/g, '');
104
103
  }
104
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.11", ngImport: i0, type: MetaStripHtmlPipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe }); }
105
+ static { this.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "16.2.11", ngImport: i0, type: MetaStripHtmlPipe, name: "metaStripHtml" }); }
105
106
  }
106
- MetaStripHtmlPipe.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.8", ngImport: i0, type: MetaStripHtmlPipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe });
107
- MetaStripHtmlPipe.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "15.2.8", ngImport: i0, type: MetaStripHtmlPipe, name: "metaStripHtml" });
108
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.8", ngImport: i0, type: MetaStripHtmlPipe, decorators: [{
107
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.11", ngImport: i0, type: MetaStripHtmlPipe, decorators: [{
109
108
  type: Pipe,
110
109
  args: [{
111
110
  name: 'metaStripHtml'
@@ -148,7 +147,7 @@ class IndexedDbStore {
148
147
  }
149
148
  };
150
149
  }
151
- initCollection(collectionName, items = [], callback) {
150
+ initCollection(collectionName, callback) {
152
151
  const self = this;
153
152
  this._getDb((err) => {
154
153
  if (err && callback) {
@@ -299,7 +298,7 @@ class IndexedDbStore {
299
298
  }
300
299
  const updateRequest = storeW.put(existing);
301
300
  updateRequest.onerror = () => callback(updateRequest.error);
302
- updateRequest.onsuccess = (ev) => {
301
+ updateRequest.onsuccess = () => {
303
302
  if (typeof (callback) === 'function') {
304
303
  callback(null, existing);
305
304
  }
@@ -336,7 +335,7 @@ class IndexedDbStore {
336
335
  * @Last Modified by: Alexander.Vangelov@vonage.com
337
336
  * @Last Modified time: 2020-02-13 06:17:24
338
337
  */
339
- const COLELCTION = 'Draft';
338
+ const COLLECTION = 'Draft';
340
339
  class ResourceDraftsService {
341
340
  constructor(context) {
342
341
  this.context = context;
@@ -344,7 +343,7 @@ class ResourceDraftsService {
344
343
  }
345
344
  init(cb) {
346
345
  if (!this.db) {
347
- this.store.initCollection(COLELCTION, null, (err, db) => {
346
+ this.store.initCollection(COLLECTION, (err, db) => {
348
347
  this.db = db;
349
348
  cb(err, this.db);
350
349
  });
@@ -355,10 +354,11 @@ class ResourceDraftsService {
355
354
  }
356
355
  list(integrationCode, resourceType, cb) {
357
356
  console.log('list drafts', this.context.uid, integrationCode, resourceType);
357
+ cb([]);
358
358
  }
359
359
  save(integrationCode, resourceType, draft, cb) {
360
360
  const now = new Date().getTime();
361
- this.store.save(COLELCTION, {
361
+ this.store.save(COLLECTION, {
362
362
  context: this.context.uid || '',
363
363
  integration: integrationCode || '',
364
364
  resource: resourceType || '',
@@ -367,27 +367,27 @@ class ResourceDraftsService {
367
367
  }, cb);
368
368
  }
369
369
  findOne(integrationCode, resourceType, cb) {
370
- this.store.findOne(COLELCTION, {
370
+ this.store.findOne(COLLECTION, {
371
371
  context: this.context.uid || '',
372
372
  integration: integrationCode || '',
373
373
  resource: resourceType || ''
374
374
  }, null, cb);
375
375
  }
376
376
  find(params, cb) {
377
- this.store.find(COLELCTION, params, null, cb);
377
+ this.store.find(COLLECTION, params, null, cb);
378
378
  }
379
379
  findById(draftId, cb) {
380
- this.store.findById(COLELCTION, draftId, cb);
380
+ this.store.findById(COLLECTION, draftId, cb);
381
381
  }
382
382
  destroyDraft(draft, cb) {
383
383
  if (draft && draft.id) {
384
- this.store.destroyById(COLELCTION, draft.id, cb);
384
+ this.store.destroyById(COLLECTION, draft.id, cb);
385
385
  }
386
386
  }
387
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.11", ngImport: i0, type: ResourceDraftsService, deps: [{ token: MetaContextService }], target: i0.ɵɵFactoryTarget.Injectable }); }
388
+ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.2.11", ngImport: i0, type: ResourceDraftsService, providedIn: 'root' }); }
387
389
  }
388
- ResourceDraftsService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.8", ngImport: i0, type: ResourceDraftsService, deps: [{ token: MetaContextService }], target: i0.ɵɵFactoryTarget.Injectable });
389
- ResourceDraftsService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.8", ngImport: i0, type: ResourceDraftsService, providedIn: 'root' });
390
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.8", ngImport: i0, type: ResourceDraftsService, decorators: [{
390
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.11", ngImport: i0, type: ResourceDraftsService, decorators: [{
391
391
  type: Injectable,
392
392
  args: [{
393
393
  providedIn: 'root'
@@ -407,56 +407,59 @@ class MetaModule {
407
407
  providers: customProviders
408
408
  };
409
409
  }
410
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.11", ngImport: i0, type: MetaModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
411
+ static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "16.2.11", ngImport: i0, type: MetaModule, declarations: [MetaIconsPipe,
412
+ MetaModelPipe,
413
+ MetaStripHtmlPipe,
414
+ MetaField,
415
+ MetaRefDialog,
416
+ MetaFieldContentDirective,
417
+ MetaLayout,
418
+ MetaResource,
419
+ MetaResourceCard,
420
+ FieldUnknown,
421
+ FieldInput,
422
+ FieldText,
423
+ FieldSelect,
424
+ FieldReference,
425
+ FieldComposite,
426
+ FieldBoolean,
427
+ FieldRadio,
428
+ FieldList,
429
+ FieldRichtext,
430
+ FieldDatetime,
431
+ FieldHidden,
432
+ MetaAutofocusDirective], imports: [CommonModule,
433
+ FormsModule,
434
+ ReactiveFormsModule,
435
+ HttpClientModule, i4.QuillModule], exports: [MetaIconsPipe,
436
+ MetaModelPipe,
437
+ MetaStripHtmlPipe,
438
+ MetaField,
439
+ MetaLayout,
440
+ MetaResource,
441
+ MetaResourceCard,
442
+ MetaAutofocusDirective] }); }
443
+ static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "16.2.11", ngImport: i0, type: MetaModule, imports: [CommonModule,
444
+ FormsModule,
445
+ ReactiveFormsModule,
446
+ HttpClientModule,
447
+ QuillModule.forRoot()
448
+ // QuillModule.forRoot({
449
+ // modules: {
450
+ // syntax: false,
451
+ // toolbar: [
452
+ // ['bold', 'italic', 'underline'],
453
+ // [{ list: 'bullet' }],
454
+ // [{ header: [1, 2, 3, 4, 5, 6, false] }],
455
+ // [{ font: [] }],
456
+ // [{ align: [] }]
457
+ // ]
458
+ // }
459
+ // })
460
+ ] }); }
410
461
  }
411
- MetaModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.8", ngImport: i0, type: MetaModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
412
- MetaModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "15.2.8", ngImport: i0, type: MetaModule, declarations: [MetaIconsPipe,
413
- MetaModelPipe,
414
- MetaStripHtmlPipe,
415
- MetaField,
416
- MetaRefDialog,
417
- MetaFieldContentDirective,
418
- MetaLayout,
419
- MetaResource,
420
- MetaResourceCard,
421
- FieldUnknown,
422
- FieldInput,
423
- FieldText,
424
- FieldSelect,
425
- FieldReference,
426
- FieldComposite,
427
- FieldBoolean,
428
- FieldRadio,
429
- FieldList,
430
- FieldRichtext,
431
- FieldDatetime,
432
- FieldHidden,
433
- MetaAutofocusDirective], imports: [CommonModule,
434
- FormsModule,
435
- ReactiveFormsModule,
436
- HttpClientModule, i4.QuillModule], exports: [MetaIconsPipe,
437
- MetaModelPipe,
438
- MetaStripHtmlPipe,
439
- MetaField,
440
- MetaLayout,
441
- MetaResource,
442
- MetaResourceCard,
443
- MetaAutofocusDirective] });
444
- MetaModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "15.2.8", ngImport: i0, type: MetaModule, imports: [CommonModule,
445
- FormsModule,
446
- ReactiveFormsModule,
447
- HttpClientModule,
448
- QuillModule.forRoot({
449
- modules: {
450
- toolbar: [
451
- ['bold', 'italic', 'underline'],
452
- [{ list: 'bullet' }],
453
- [{ header: [1, 2, 3, 4, 5, 6, false] }],
454
- [{ font: [] }],
455
- [{ align: [] }]
456
- ]
457
- }
458
- })] });
459
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.8", ngImport: i0, type: MetaModule, decorators: [{
462
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.11", ngImport: i0, type: MetaModule, decorators: [{
460
463
  type: NgModule,
461
464
  args: [{
462
465
  declarations: [
@@ -498,17 +501,19 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.8", ngImpor
498
501
  FormsModule,
499
502
  ReactiveFormsModule,
500
503
  HttpClientModule,
501
- QuillModule.forRoot({
502
- modules: {
503
- toolbar: [
504
- ['bold', 'italic', 'underline'],
505
- [{ list: 'bullet' }],
506
- [{ header: [1, 2, 3, 4, 5, 6, false] }],
507
- [{ font: [] }],
508
- [{ align: [] }]
509
- ]
510
- }
511
- })
504
+ QuillModule.forRoot()
505
+ // QuillModule.forRoot({
506
+ // modules: {
507
+ // syntax: false,
508
+ // toolbar: [
509
+ // ['bold', 'italic', 'underline'],
510
+ // [{ list: 'bullet' }],
511
+ // [{ header: [1, 2, 3, 4, 5, 6, false] }],
512
+ // [{ font: [] }],
513
+ // [{ align: [] }]
514
+ // ]
515
+ // }
516
+ // })
512
517
  ]
513
518
  }]
514
519
  }] });
@@ -0,0 +1 @@
1
+ {"version":3,"file":"vgip-meta-ui.mjs","sources":["../../../projects/meta-ui/src/lib/resourceCard/index.ts","../../../projects/meta-ui/src/lib/resourceCard/view.html","../../../projects/meta-ui/src/lib/common/metaIcons.pipe.ts","../../../projects/meta-ui/src/lib/common/metaStripHtml.pipe.ts","../../../projects/meta-ui/src/lib/common/utils/indexedDbStore/index.ts","../../../projects/meta-ui/src/lib/services/resourceDrafts/index.ts","../../../projects/meta-ui/src/lib/index.ts","../../../projects/meta-ui/src/public-api.ts","../../../projects/meta-ui/src/vgip-meta-ui.ts"],"sourcesContent":["import { Component, Input, OnInit, ViewContainerRef } from '@angular/core';\nimport { MetaResourceService } from '../services/metaResource';\nimport { MetaReferenceService } from '../services/metaReference';\nimport { MetaRefDialog } from '../refDialog';\n\n@Component({\n selector: 'vgip-meta-resource-card',\n templateUrl: './view.html',\n styleUrls: ['./style.scss']\n})\nexport class MetaResourceCard implements OnInit {\n @Input() resource: any;\n @Input() model: any;\n\n integrationCode: string;\n\n constructor(\n private metaResource: MetaResourceService,\n private referenceService: MetaReferenceService,\n private viewContainerRef: ViewContainerRef\n ) { }\n\n ngOnInit() {\n this.integrationCode = (this.resource.integration || this.resource.integrationCode || '').toLowerCase();\n }\n\n open(reference, model?) {\n const refDialogComponent = this.viewContainerRef.createComponent(MetaRefDialog);\n this.referenceService.openDialog(\n refDialogComponent, this.metaResource, this.integrationCode, reference, model,\n model && (reference.editable === false) // is preview mode\n ).subscribe((result: any) => {\n console.log('dialog result', result);\n // if (result && result.raw) {\n // if (!this.parent[reference.type]) {\n // this.parent[reference.type] = [];\n // }\n // this.parent[reference.type].push(result.raw);\n // }\n });\n }\n\n}\n","<div class=\"Vlt-card Vlt-bg-white\">\n\t<div class=\"Vlt-card__content Vlt-btn-on-hover\">\n\t\t<h5>{{model.Subject || model.subject || model.summary || model.title || model.CaseNumber || model.comment || model.body || model.name || model.topic || '...' }}</h5>\n\t\t<div style='font-size: 12px; line-height: 16px;'>\n\t\t\tCreated: <span class='Vlt-black'>{{model._vgis.createdDate | date:'mediumDate'}}</span>\n\t\t\tEdited: <span class='Vlt-black'>{{model._vgis.modifiedDate | date:'medium'}}</span>\n\t\t</div>\n\t\t<div class=\"Vlt-badge Vlt-badge--app Vlt-badge--purple Vlt-badge--small\">{{model._vgis.resourceType}}</div>\n\t\t<div class=\"Vlt-btn-group Vlt-btn-group--hover\">\n\t\t\t<a *ngIf='model._vgis.externalLink' attr.href='{{model._vgis.externalLink}}' target='_blank' rel='noopener' class=\"Vlt-btn Vlt-btn--tertiary Vlt-btn--icon\" aria-label='Open external'><svg style='margin-left: 0; margin-right: 0;'><use xlink:href=\"volta/volta-icons.svg#Vlt-icon-open\"/></svg></a>\n\t\t\t<button type='button' (click)='open(resource, model)' class=\"Vlt-btn Vlt-btn--tertiary Vlt-btn--icon\" aria-label='Edit'><svg style='margin-left: 0; margin-right: 0;'><use xlink:href=\"volta/volta-icons.svg#Vlt-icon-edit\"/></svg></button>\n\t\t</div>\n\t</div>\n</div>\n","/*\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:18\n */\n\nimport { Pipe, PipeTransform } from '@angular/core';\nimport { DomSanitizer } from '@angular/platform-browser';\n\n@Pipe({\n name: 'metaIcons'\n})\nexport class MetaIconsPipe implements PipeTransform {\n\n constructor(protected sanitizer: DomSanitizer) { }\n\n transform(value: any): any {\n if (typeof(value) === 'string') {\n value = value.replace(\n /\\${\\s*icon:([\\w-]+)\\s*}/g,\n (match, val) => `<svg class='Vlt-icon'><use xlink:href=\"volta/volta-icons.svg#${val}\"/></svg>`\n );\n return value; //this.sanitizer.bypassSecurityTrustHtml(value);\n }\n }\n\n}\n","/*\n* @Author: Alexander.Vangelov@vonage.com\n* @Date: 2020-04-14 12:15:36\n * @Last Modified by: Alexander.Vangelov@vonage.com\n * @Last Modified time: 2020-04-14 12:21:57\n*/\n\nimport { Pipe, PipeTransform } from '@angular/core';\n\n@Pipe({\n name: 'metaStripHtml'\n})\nexport class MetaStripHtmlPipe implements PipeTransform {\n transform(value: string): any {\n return value.replace(/<[^>]*>/g, '');\n }\n}\n","/*\n * @Author: Alexander.Vangelov@vonage.com\n * @Date: 2020-02-10 18:47:45\n * @Last Modified by: Alexander.Vangelov@vonage.com\n * @Last Modified time: 2020-02-28 13:29:23\n */\n\nexport interface IStoreRecord {\n id?: string | number;\n}\n\nexport interface IStore {\n initCollection(collectionName: string, callback?: (err, result?) => void): any;\n findById(collectionName, id: number | string, callback?: (err, result?) => void): any;\n save(collectionName: string, record: any, callback?: (err, result?) => void): any;\n find(collectionName: string, conditions: any, options: any, callback: (err, result?) => void);\n findOne(collectionName: string, conditions: any, options: any, callback?: (err, result?) => void);\n}\n\nexport class IndexedDbStore implements IStore {\n indxDb: IDBFactory;\n db: IDBDatabase;\n dbName: string;\n\n constructor(dbName: string = 'vgip') {\n this.dbName = dbName;\n this.indxDb = window.indexedDB || (window as any).mozIndexedDB || (window as any).webkitIndexedDB || (window as any).msIndexedDB;\n }\n\n _getDb(callback: (err, result?) => void) {\n const self = this;\n if (this.db) {\n return callback(null, this.db);\n }\n const req = this.indxDb.open(this.dbName);\n req.onupgradeneeded = (ev: any) => {\n self.db = ev.target.result;\n const objectStore = self.db.createObjectStore('Draft', { keyPath: 'id', autoIncrement: true });\n objectStore.createIndex('contextIndex', 'context', { unique: false });\n objectStore.createIndex('contextintegrationIndex', ['context', 'integration'], { unique: false });\n objectStore.createIndex('contextintegrationresourceIndex', ['context', 'integration', 'resource'], { unique: true });\n };\n if (callback) {\n req.onsuccess = (ev: any) => {\n self.db = ev.target.result;\n callback(null, self.db);\n };\n }\n req.onerror = (ev: any) => {\n if (callback) {\n callback(ev.error);\n }\n };\n }\n\n initCollection(collectionName: string, callback: (err, result?) => void) {\n const self = this;\n this._getDb((err) => { // eslint-disable-line no-underscore-dangle\n if (err && callback) {\n return callback(err);\n }\n if (callback) {\n callback(null, self.db);\n }\n });\n }\n\n reset(callback: (err, result?) => void) {\n this._getDb((err) => { // eslint-disable-line no-underscore-dangle\n if (err) {\n return callback(err);\n }\n this.db.close();\n this.indxDb.deleteDatabase(this.dbName);\n delete this.db;\n this._getDb(callback); // eslint-disable-line no-underscore-dangle\n });\n }\n\n findById(collectionName: string, id: number | string, callback: (err, result?) => void): any {\n const tx = this.db.transaction([collectionName]);\n const store = tx.objectStore(collectionName);\n const request = store.get(parseInt(`${id}`, 10));\n if (callback) {\n request.onerror = () => {\n callback(request.error);\n };\n }\n request.onsuccess = () => {\n if (!request.result) {\n callback({ message: 'Not Found' });\n } else if (callback) {\n callback(null, request.result);\n }\n };\n }\n\n destroyById(collectionName: string, id: number | string, callback: (err, result?) => void): any {\n const tx = this.db.transaction([collectionName], 'readwrite');\n const store = tx.objectStore(collectionName);\n const request = store.delete(parseInt(`${id}`, 10));\n if (callback) {\n request.onerror = () => {\n callback(request.error);\n };\n }\n request.onsuccess = () => {\n if (callback) {\n callback(null, request.result);\n }\n };\n }\n\n findOne(collectionName: string, conditions: any, options: any, callback?: (err, result?) => void): any {\n const tx = this.db.transaction([collectionName]);\n const store = tx.objectStore(collectionName);\n const conditionsKeys = Object.keys(conditions);\n let idx: IDBIndex;\n let req: IDBRequest;\n if (conditionsKeys.length > 1) {\n const vals = [];\n conditionsKeys.forEach((key) => vals.push(conditions[key]));\n idx = store.index(`${conditionsKeys.join('')}Index`);\n req = idx.get(vals);\n } else {\n idx = store.index(`${conditionsKeys[0]}Index`);\n req = idx.get(conditions[conditionsKeys[0]]);\n }\n if (callback) {\n req.onerror = () => {\n callback(req.error);\n };\n }\n req.onsuccess = (ev: any) => {\n if (!ev.target.result) {\n callback({ message: 'Not Found' });\n } else if (callback) {\n callback(null, ev.target.result);\n }\n };\n }\n\n find(collectionName: string, conditions: any, options: any, callback?: (err, result?) => void): Array<IStoreRecord> | any {\n const tx = this.db.transaction([collectionName]);\n const store = tx.objectStore(collectionName);\n const conditionsKeys = Object.keys(conditions);\n let idx: IDBIndex;\n let req: IDBRequest;\n if (conditionsKeys.length > 1) {\n const vals = [];\n conditionsKeys.forEach((key) => vals.push(conditions[key]));\n idx = store.index(`${conditionsKeys.join('')}Index`);\n req = idx.openCursor(vals);\n } else {\n idx = store.index(`${conditionsKeys[0]}Index`);\n req = idx.openCursor(conditions[conditionsKeys[0]]);\n }\n req.onerror = () => {\n if (callback) {\n callback(req.error);\n }\n };\n const items = [];\n req.onsuccess = (ev: any) => {\n const cursor = ev.target.result;\n if (cursor) {\n items.push(cursor.value);\n cursor.continue();\n } else if (callback) {\n callback(null, items);\n }\n };\n }\n\n save(collectionName: string, model: any, callback?: (err, result?) => void) {\n const record = model; // model.toJson(true, false);\n const createNew = () => {\n const txN = this.db.transaction([collectionName], 'readwrite');\n const request = txN.objectStore(collectionName).add(record);\n if (callback) {\n request.onerror = () => callback(request.error);\n }\n request.onsuccess = () => {\n record.id = request.result;\n if (callback) {\n callback(null, record);\n }\n };\n };\n\n const updateOldById = (id) => {\n const txO = this.db.transaction([collectionName], 'readwrite');\n const storeW = txO.objectStore(collectionName);\n const getRequest = storeW.get(id);\n if (callback) {\n getRequest.onerror = () => callback(getRequest.error);\n }\n getRequest.onsuccess = () => {\n const existing = getRequest.result;\n if (!existing) {\n callback({ message: 'Not Found' });\n } else {\n for (const p of Object.keys(record)) {\n existing[p] = record[p];\n }\n const updateRequest = storeW.put(existing);\n updateRequest.onerror = () => callback(updateRequest.error);\n updateRequest.onsuccess = () => {\n if (typeof (callback) === 'function') {\n callback(null, existing);\n }\n };\n }\n };\n };\n\n if (record.id) {\n updateOldById(record.id);\n } else if (record.integration && record.resource) {\n this.findOne(collectionName, {\n context: record.context || '',\n integration: record.integration || '',\n resource: record.resource || ''\n }, null, (err, existing) => {\n if (!existing) {\n createNew();\n } else {\n updateOldById(existing.id);\n }\n });\n } else {\n createNew();\n }\n }\n}\n","/*\n * @Author: Alexander.Vangelov@vonage.com\n * @Date: 2020-02-10 17:35:19\n * @Last Modified by: Alexander.Vangelov@vonage.com\n * @Last Modified time: 2020-02-13 06:17:24\n */\n\nimport { Injectable } from '@angular/core';\n\nimport { IndexedDbStore } from '../../common/utils/indexedDbStore';\nimport { MetaContextService } from '../metaContext';\n\nconst COLLECTION = 'Draft';\n\nexport interface IDraft {\n id: string | number;\n integrationCode: string;\n resourceType: string;\n contextUid: string;\n timestamp: number;\n data?: string;\n}\n@Injectable({\n providedIn: 'root'\n})\nexport class ResourceDraftsService {\n store: IndexedDbStore;\n db: any;\n constructor(private context: MetaContextService) {\n this.store = new IndexedDbStore('vgip');\n }\n\n init(cb?: (err, db?) => void) {\n if (!this.db) {\n this.store.initCollection(COLLECTION, (err, db) => {\n this.db = db;\n cb(err, this.db);\n });\n } else {\n cb(null, this.db);\n }\n }\n\n list(integrationCode, resourceType, cb: (err, drafts?: Array<IDraft>) => void) {\n console.log('list drafts', this.context.uid, integrationCode, resourceType);\n cb([]);\n }\n\n save(integrationCode, resourceType, draft, cb?: (err, draft?: IDraft) => void) {\n const now = new Date().getTime();\n this.store.save(COLLECTION, {\n context: this.context.uid || '',\n integration: integrationCode || '',\n resource: resourceType || '',\n timestamp: now,\n data: draft\n }, cb);\n }\n\n findOne(integrationCode, resourceType, cb: (err, drafts?: IDraft) => void) {\n this.store.findOne(COLLECTION, {\n context: this.context.uid || '',\n integration: integrationCode || '',\n resource: resourceType || ''\n }, null, cb);\n }\n\n find(params, cb: (err, drafts?: Array<IDraft>) => void) {\n this.store.find(COLLECTION, params, null, cb);\n }\n\n findById(draftId, cb?: (err, drafts?: IDraft) => void) {\n this.store.findById(COLLECTION, draftId, cb);\n }\n\n destroyDraft(draft, cb?: (err, drafts?: IDraft) => void) {\n if (draft && draft.id) {\n this.store.destroyById(COLLECTION, draft.id, cb);\n }\n }\n}\n","/*\n * @Author: Alexander.Vangelov@vonage.com\n * @Date: 2019-09-19 17:34:34\n * @Last Modified by: Alexander.Vangelov@vonage.com\n * @Last Modified time: 2021-02-09 16:57:29\n */\n\nimport { NgModule, ModuleWithProviders } from '@angular/core';\nimport { CommonModule } from '@angular/common';\nimport { FormsModule, ReactiveFormsModule } from '@angular/forms';\nimport { HttpClientModule } from '@angular/common/http';\n\nimport { QuillModule } from 'ngx-quill';\n\nimport { MetaRefDialog } from './refDialog';\n\nimport { MetaLayout } from './layout';\n\nimport { MetaResource } from './resource';\n\nimport { MetaResourceCard } from './resourceCard';\n\nimport { FieldUnknown } from './fieldUnknown';\nimport { FieldInput } from './fieldInput';\nimport { FieldText } from './fieldText';\n\nimport { FieldSelect } from './fieldSelect';\n\nimport { FieldReference } from './fieldReference';\n\nimport { FieldComposite } from './fieldComposite';\n\nimport { FieldBoolean } from './fieldBoolean';\nimport { FieldRadio } from './fieldRadio';\n\nimport { FieldList } from './fieldList';\n\nimport { FieldRichtext } from './fieldRichtext';\nimport { FieldDatetime } from './fieldDatetime';\n\nimport { FieldHidden } from './fieldHidden';\n\nimport { MetaIconsPipe } from './common/metaIcons.pipe';\nimport { MetaModelPipe } from './common/metaModel.pipe';\nimport { MetaStripHtmlPipe } from './common/metaStripHtml.pipe';\nimport { MetaAutofocusDirective } from './common/metaAutofocus.directive';\nimport { MetaContextService } from './services/metaContext';\nimport { MetaTrackerService } from './services/metaTracker';\nimport { ResourceDraftsService } from './services/resourceDrafts';\nimport { MetaMsgService } from './services/metaMsg';\nimport { MetaReferenceService } from './services/metaReference';\nimport { MetaResourceService } from './services/metaResource';\nimport { MetaHttpClient } from './services/metaResource/metaHttpClient';\nimport { relativeTimeBuilder } from './common/utils/relativeTimeBuilder';\nimport { MetaField, MetaFieldContentDirective } from './metaField';\n\nexport * from './common/utils/colorThemes';\nexport * from './common/metaNormalizer';\n\n@NgModule({\n declarations: [\n MetaIconsPipe,\n MetaModelPipe,\n MetaStripHtmlPipe,\n MetaField,\n MetaRefDialog,\n MetaFieldContentDirective,\n MetaLayout,\n MetaResource,\n MetaResourceCard,\n FieldUnknown,\n FieldInput,\n FieldText,\n FieldSelect,\n FieldReference,\n FieldComposite,\n FieldBoolean,\n FieldRadio,\n FieldList,\n FieldRichtext,\n FieldDatetime,\n FieldHidden,\n MetaAutofocusDirective\n ],\n exports: [\n MetaIconsPipe,\n MetaModelPipe,\n MetaStripHtmlPipe,\n MetaField,\n MetaLayout,\n MetaResource,\n MetaResourceCard,\n MetaAutofocusDirective\n ],\n imports: [\n CommonModule,\n FormsModule,\n ReactiveFormsModule,\n HttpClientModule,\n QuillModule.forRoot()\n // QuillModule.forRoot({\n // modules: {\n // syntax: false,\n // toolbar: [\n // ['bold', 'italic', 'underline'],\n // [{ list: 'bullet' }],\n // [{ header: [1, 2, 3, 4, 5, 6, false] }],\n // [{ font: [] }],\n // [{ align: [] }]\n // ]\n // }\n // })\n ]\n})\nexport class MetaModule {\n static withProviders(customProviders: any): ModuleWithProviders<MetaModule> {\n return {\n ngModule: MetaModule,\n providers: customProviders\n };\n }\n}\n\nexport {\n MetaField, MetaFieldContentDirective, MetaRefDialog, MetaResourceCard,\n MetaIconsPipe, MetaModelPipe, MetaStripHtmlPipe, MetaAutofocusDirective,\n FieldUnknown, FieldInput, FieldText, FieldSelect, MetaLayout, MetaResource,\n FieldBoolean, FieldRadio, FieldList, FieldComposite, FieldReference, FieldHidden,\n FieldRichtext, FieldDatetime, MetaContextService, MetaTrackerService, ResourceDraftsService,\n MetaMsgService, MetaReferenceService, MetaResourceService, MetaHttpClient,\n relativeTimeBuilder\n};\n","/*\n * Public API Surface of meta-ui\n */\n\nexport * from './lib';\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":["i1.MetaResourceService","i2.MetaReferenceService","i3","i1","i1.MetaContextService"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;MAUa,gBAAgB,CAAA;AAMzB,IAAA,WAAA,CACY,YAAiC,EACjC,gBAAsC,EACtC,gBAAkC,EAAA;QAFlC,IAAY,CAAA,YAAA,GAAZ,YAAY,CAAqB;QACjC,IAAgB,CAAA,gBAAA,GAAhB,gBAAgB,CAAsB;QACtC,IAAgB,CAAA,gBAAA,GAAhB,gBAAgB,CAAkB;KACzC;IAEL,QAAQ,GAAA;QACJ,IAAI,CAAC,eAAe,GAAG,CAAC,IAAI,CAAC,QAAQ,CAAC,WAAW,IAAI,IAAI,CAAC,QAAQ,CAAC,eAAe,IAAI,EAAE,EAAE,WAAW,EAAE,CAAC;KAC3G;IAED,IAAI,CAAC,SAAS,EAAE,KAAM,EAAA;QAClB,MAAM,kBAAkB,GAAG,IAAI,CAAC,gBAAgB,CAAC,eAAe,CAAC,aAAa,CAAC,CAAC;AAChF,QAAA,IAAI,CAAC,gBAAgB,CAAC,UAAU,CAC9B,kBAAkB,EAAE,IAAI,CAAC,YAAY,EAAE,IAAI,CAAC,eAAe,EAAE,SAAS,EAAE,KAAK,EAC3E,KAAK,KAAK,SAAS,CAAC,QAAQ,KAAK,KAAK,CAAC;AAC1C,SAAA,CAAC,SAAS,CAAC,CAAC,MAAW,KAAI;AACxB,YAAA,OAAO,CAAC,GAAG,CAAC,eAAe,EAAE,MAAM,CAAC,CAAC;;;;;;;AAOzC,SAAC,CAAC,CAAC;KACN;+GA9BQ,gBAAgB,EAAA,IAAA,EAAA,CAAA,EAAA,KAAA,EAAAA,mBAAA,EAAA,EAAA,EAAA,KAAA,EAAAC,oBAAA,EAAA,EAAA,EAAA,KAAA,EAAA,EAAA,CAAA,gBA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gB;wBAChB,sBAAsB;AACvB,qBAAA;AACD,oBAAA,OAAO,EAAE;wBACP,YAAY;wBACZ,WAAW;wBACX,mBAAmB;wBACnB,gBAAgB;wBAChB,WAAW,CAAC,OAAO,EAAE;;;;;;;;;;;;;AAatB,qBAAA;AACF,iBAAA,CAAA;;;ACjHD;;AAEG;;ACFH;;AAEG;;;;"}
@@ -6,5 +6,5 @@ export declare class MetaAutofocusDirective implements AfterContentInit {
6
6
  constructor(elementRef: ElementRef);
7
7
  ngAfterContentInit(): void;
8
8
  static ɵfac: i0.ɵɵFactoryDeclaration<MetaAutofocusDirective, never>;
9
- static ɵdir: i0.ɵɵDirectiveDeclaration<MetaAutofocusDirective, "[vgipMetaFormAutofocus]", never, { "vgipMetaFormAutofocus": "vgipMetaFormAutofocus"; }, {}, never, never, false, never>;
9
+ static ɵdir: i0.ɵɵDirectiveDeclaration<MetaAutofocusDirective, "[vgipMetaFormAutofocus]", never, { "vgipMetaFormAutofocus": { "alias": "vgipMetaFormAutofocus"; "required": false; }; }, {}, never, never, false, never>;
10
10
  }
@@ -4,7 +4,7 @@ import * as i0 from "@angular/core";
4
4
  export declare class MetaIconsPipe implements PipeTransform {
5
5
  protected sanitizer: DomSanitizer;
6
6
  constructor(sanitizer: DomSanitizer);
7
- transform(value: any, ...args: any[]): any;
7
+ transform(value: any): any;
8
8
  static ɵfac: i0.ɵɵFactoryDeclaration<MetaIconsPipe, never>;
9
9
  static ɵpipe: i0.ɵɵPipeDeclaration<MetaIconsPipe, "metaIcons", false>;
10
10
  }
@@ -1,8 +1,7 @@
1
1
  import { PipeTransform } from '@angular/core';
2
2
  import * as i0 from "@angular/core";
3
3
  export declare class MetaModelPipe implements PipeTransform {
4
- constructor();
5
- transform(value: any, args?: any): any;
4
+ transform(value: any): any;
6
5
  static ɵfac: i0.ɵɵFactoryDeclaration<MetaModelPipe, never>;
7
6
  static ɵpipe: i0.ɵɵPipeDeclaration<MetaModelPipe, "metaModel", false>;
8
7
  }
@@ -2,7 +2,7 @@ export interface IStoreRecord {
2
2
  id?: string | number;
3
3
  }
4
4
  export interface IStore {
5
- initCollection(collectionName: string, items?: Array<IStoreRecord>, callback?: (err: any, result?: any) => void): any;
5
+ initCollection(collectionName: string, callback?: (err: any, result?: any) => void): any;
6
6
  findById(collectionName: any, id: number | string, callback?: (err: any, result?: any) => void): any;
7
7
  save(collectionName: string, record: any, callback?: (err: any, result?: any) => void): any;
8
8
  find(collectionName: string, conditions: any, options: any, callback: (err: any, result?: any) => void): any;
@@ -14,7 +14,7 @@ export declare class IndexedDbStore implements IStore {
14
14
  dbName: string;
15
15
  constructor(dbName?: string);
16
16
  _getDb(callback: (err: any, result?: any) => void): void;
17
- initCollection(collectionName: string, items: Array<IStoreRecord>, callback: (err: any, result?: any) => void): void;
17
+ initCollection(collectionName: string, callback: (err: any, result?: any) => void): void;
18
18
  reset(callback: (err: any, result?: any) => void): void;
19
19
  findById(collectionName: string, id: number | string, callback: (err: any, result?: any) => void): any;
20
20
  destroyById(collectionName: string, id: number | string, callback: (err: any, result?: any) => void): any;
@@ -1,9 +1,5 @@
1
1
  import { ElementRef, AfterViewInit, EventEmitter } from '@angular/core';
2
2
  import * as i0 from "@angular/core";
3
- export interface IMetaField<T extends FieldAbstract> {
4
- meta: any;
5
- model: any;
6
- }
7
3
  export declare abstract class FieldAbstract implements AfterViewInit {
8
4
  model: any;
9
5
  meta: any;
@@ -7,5 +7,5 @@ export declare class FieldBoolean extends FieldAbstract implements OnInit {
7
7
  ngOnInit(): void;
8
8
  onOptionChange(): void;
9
9
  static ɵfac: i0.ɵɵFactoryDeclaration<FieldBoolean, never>;
10
- static ɵcmp: i0.ɵɵComponentDeclaration<FieldBoolean, "ng-component", never, { "meta": "meta"; }, {}, never, never, false, never>;
10
+ static ɵcmp: i0.ɵɵComponentDeclaration<FieldBoolean, "ng-component", never, { "meta": { "alias": "meta"; "required": false; }; }, {}, never, never, false, never>;
11
11
  }
@@ -8,5 +8,5 @@ export declare class FieldComposite extends FieldAbstract implements OnInit {
8
8
  get fields(): any;
9
9
  ngOnInit(): void;
10
10
  static ɵfac: i0.ɵɵFactoryDeclaration<FieldComposite, never>;
11
- static ɵcmp: i0.ɵɵComponentDeclaration<FieldComposite, "ng-component", never, { "meta": "meta"; }, {}, never, never, false, never>;
11
+ static ɵcmp: i0.ɵɵComponentDeclaration<FieldComposite, "ng-component", never, { "meta": { "alias": "meta"; "required": false; }; }, {}, never, never, false, never>;
12
12
  }
@@ -11,5 +11,5 @@ export declare class FieldRadio extends FieldAbstract implements OnInit {
11
11
  onBlur(ev: any): void;
12
12
  private keydown;
13
13
  static ɵfac: i0.ɵɵFactoryDeclaration<FieldRadio, never>;
14
- static ɵcmp: i0.ɵɵComponentDeclaration<FieldRadio, "ng-component", never, { "meta": "meta"; }, {}, never, never, false, never>;
14
+ static ɵcmp: i0.ɵɵComponentDeclaration<FieldRadio, "ng-component", never, { "meta": { "alias": "meta"; "required": false; }; }, {}, never, never, false, never>;
15
15
  }
@@ -52,7 +52,7 @@ export declare class FieldReference extends FieldAbstract implements OnInit {
52
52
  search(): void;
53
53
  onActivated(ev: any): void;
54
54
  onBlur(ev: any): void;
55
- removeSelection(): void;
55
+ removeSelection(ev?: any): void;
56
56
  onSuggestionSelect(ev: any, suggestion: any): void;
57
57
  showDropdown(): void;
58
58
  dismissDropdown(event?: any): void;
@@ -2,8 +2,11 @@ import { OnInit } from '@angular/core';
2
2
  import { FieldAbstract } from '../fieldAbstract';
3
3
  import { MetaContextService } from '../services/metaContext';
4
4
  import * as i0 from "@angular/core";
5
- export declare const quillConfig: {
6
- modules: {
5
+ export declare class FieldRichtext extends FieldAbstract implements OnInit {
6
+ private metaContext;
7
+ meta: any;
8
+ active: boolean;
9
+ quillConfigModules: {
7
10
  syntax: boolean;
8
11
  toolbar: (string[] | {
9
12
  list: string;
@@ -15,16 +18,11 @@ export declare const quillConfig: {
15
18
  align: any[];
16
19
  }[])[];
17
20
  };
18
- };
19
- export declare class FieldRichtext extends FieldAbstract implements OnInit {
20
- private metaContext;
21
- meta: any;
22
- active: boolean;
23
21
  constructor(metaContext: MetaContextService);
24
22
  static setup(instance: any, parent: any, meta: any): void;
25
23
  ngOnInit(): void;
26
24
  onModelChangeLocal(value: any): void;
27
25
  textToSpeech(): void;
28
26
  static ɵfac: i0.ɵɵFactoryDeclaration<FieldRichtext, never>;
29
- static ɵcmp: i0.ɵɵComponentDeclaration<FieldRichtext, "ng-component", never, { "meta": "meta"; }, {}, never, never, false, never>;
27
+ static ɵcmp: i0.ɵɵComponentDeclaration<FieldRichtext, "ng-component", never, { "meta": { "alias": "meta"; "required": false; }; }, {}, never, never, false, never>;
30
28
  }
@@ -36,7 +36,7 @@ export declare class FieldSelect extends FieldAbstract implements OnInit {
36
36
  showDropdown(): void;
37
37
  dismissDropdown(event?: any): void;
38
38
  onSearchChange(): void;
39
- clearSearchField(): void;
39
+ clearSearchField(ev?: any): boolean;
40
40
  private ensureDropdownIsVisible;
41
41
  private ensureDropdownOptionIsVisible;
42
42
  private filterOptions;
@@ -11,5 +11,5 @@ export declare class FieldText extends FieldAbstract implements OnInit {
11
11
  onModelChangeLocal(value: any): void;
12
12
  textToSpeech(): void;
13
13
  static ɵfac: i0.ɵɵFactoryDeclaration<FieldText, never>;
14
- static ɵcmp: i0.ɵɵComponentDeclaration<FieldText, "ng-component", never, { "meta": "meta"; }, {}, never, never, false, never>;
14
+ static ɵcmp: i0.ɵɵComponentDeclaration<FieldText, "ng-component", never, { "meta": { "alias": "meta"; "required": false; }; }, {}, never, never, false, never>;
15
15
  }
@@ -1,7 +1,7 @@
1
- import { AfterContentChecked, ChangeDetectorRef, ElementRef, OnChanges, OnInit, ViewContainerRef } from '@angular/core';
2
- import { Subject } from 'rxjs';
3
- import { MetaResourceService } from '../services/metaResource';
4
- import { MetaReferenceService } from '../services/metaReference';
1
+ import { AfterContentChecked, ChangeDetectorRef, ElementRef, OnChanges, OnInit, ViewContainerRef } from "@angular/core";
2
+ import { Subject } from "rxjs";
3
+ import { MetaResourceService } from "../services/metaResource";
4
+ import { MetaReferenceService } from "../services/metaReference";
5
5
  import * as i0 from "@angular/core";
6
6
  export declare class MetaLayout implements OnInit, AfterContentChecked, OnChanges {
7
7
  private viewContainerRef;
@@ -34,5 +34,5 @@ export declare class MetaLayout implements OnInit, AfterContentChecked, OnChange
34
34
  openChild(childResource: any, childModel?: any): Promise<void>;
35
35
  private applyTheme;
36
36
  static ɵfac: i0.ɵɵFactoryDeclaration<MetaLayout, never>;
37
- static ɵcmp: i0.ɵɵComponentDeclaration<MetaLayout, "vgip-meta-layout", never, { "meta": "meta"; "resource": "resource"; "integration": "integration"; "type": "type"; "preview": "preview"; "theme": "theme"; }, {}, never, never, false, never>;
37
+ static ɵcmp: i0.ɵɵComponentDeclaration<MetaLayout, "vgip-meta-layout", never, { "meta": { "alias": "meta"; "required": false; }; "resource": { "alias": "resource"; "required": false; }; "integration": { "alias": "integration"; "required": false; }; "type": { "alias": "type"; "required": false; }; "preview": { "alias": "preview"; "required": false; }; "theme": { "alias": "theme"; "required": false; }; }, {}, never, never, false, never>;
38
38
  }
@@ -23,5 +23,5 @@ export declare class MetaField extends FieldAbstract implements OnInit {
23
23
  constructor(el: ElementRef);
24
24
  ngOnInit(): Promise<void>;
25
25
  static ɵfac: i0.ɵɵFactoryDeclaration<MetaField, never>;
26
- static ɵcmp: i0.ɵɵComponentDeclaration<MetaField, "vgip-meta-field", never, { "meta": "meta"; "parent": "parent"; "integrationCode": "integrationCode"; "resourceType": "resourceType"; "index": "index"; "scope": "scope"; "preview": "preview"; "theme": "theme"; }, { "onChange": "onChange"; "onLeave": "onLeave"; }, never, never, false, never>;
26
+ static ɵcmp: i0.ɵɵComponentDeclaration<MetaField, "vgip-meta-field", never, { "meta": { "alias": "meta"; "required": false; }; "parent": { "alias": "parent"; "required": false; }; "integrationCode": { "alias": "integrationCode"; "required": false; }; "resourceType": { "alias": "resourceType"; "required": false; }; "index": { "alias": "index"; "required": false; }; "scope": { "alias": "scope"; "required": false; }; "preview": { "alias": "preview"; "required": false; }; "theme": { "alias": "theme"; "required": false; }; }, { "onChange": "onChange"; "onLeave": "onLeave"; }, never, never, false, never>;
27
27
  }
@@ -22,10 +22,10 @@ export declare class MetaRefDialog implements OnInit {
22
22
  get isPersistent(): any;
23
23
  ngOnInit(): void;
24
24
  close(): void;
25
- dismiss(): void;
25
+ dismiss(ev?: any): boolean;
26
26
  onResourceDone(result: any): void;
27
- selectResource(resource: any): void;
28
- keepOrder: (a: any, b: any) => any;
27
+ selectResource(ev: any, resource: any): boolean;
28
+ keepOrder: (a: any) => any;
29
29
  private keyEventListener;
30
30
  private applyTheme;
31
31
  static ɵfac: i0.ɵɵFactoryDeclaration<MetaRefDialog, never>;