@ngageoint/mage.web-core-lib 6.6.1 → 6.6.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 (98) hide show
  1. package/angular-cli/builders/fesm-amd.js +64 -36
  2. package/angular-cli/builders/fesm-amd.js.map +1 -1
  3. package/angular-cli/schematics/plugin-library/index.js.map +1 -1
  4. package/common/xhr-img.component.d.ts +1 -1
  5. package/{esm2020 → esm2022}/common/mage-common.module.mjs +5 -5
  6. package/esm2022/common/xhr-img.component.mjs +105 -0
  7. package/esm2022/feed/feed.service.mjs +105 -0
  8. package/{esm2020 → esm2022}/mage-core-lib.module.mjs +5 -5
  9. package/esm2022/paging/paging.cdk-data-source.adapter.mjs +52 -0
  10. package/esm2022/paging/paging.model.mjs +25 -0
  11. package/esm2022/static-icon/static-icon-form-field/static-icon-form-field.component.mjs +146 -0
  12. package/esm2022/static-icon/static-icon-img/static-icon-img.component.mjs +36 -0
  13. package/{esm2020 → esm2022}/static-icon/static-icon-select/static-icon-select.component.mjs +16 -15
  14. package/esm2022/static-icon/static-icon.model.mjs +10 -0
  15. package/esm2022/static-icon/static-icon.module.mjs +54 -0
  16. package/esm2022/static-icon/static-icon.service.mjs +82 -0
  17. package/esm2022/user/user-read.service.mjs +34 -0
  18. package/esm2022/user/user-select/user-select.component.mjs +159 -0
  19. package/esm2022/user/user.module.mjs +64 -0
  20. package/feed/feed.model.d.ts +3 -3
  21. package/feed/feed.model.d.ts.map +1 -1
  22. package/{fesm2020 → fesm2022}/ngageoint-mage.web-core-lib-common.mjs +21 -20
  23. package/{fesm2020 → fesm2022}/ngageoint-mage.web-core-lib-common.mjs.map +1 -1
  24. package/{fesm2020 → fesm2022}/ngageoint-mage.web-core-lib-feed.mjs +4 -4
  25. package/{fesm2015 → fesm2022}/ngageoint-mage.web-core-lib-feed.mjs.map +1 -1
  26. package/{fesm2020 → fesm2022}/ngageoint-mage.web-core-lib-paging.mjs.map +1 -1
  27. package/{fesm2020 → fesm2022}/ngageoint-mage.web-core-lib-static-icon.mjs +61 -58
  28. package/fesm2022/ngageoint-mage.web-core-lib-static-icon.mjs.map +1 -0
  29. package/{fesm2020 → fesm2022}/ngageoint-mage.web-core-lib-user.mjs +45 -45
  30. package/fesm2022/ngageoint-mage.web-core-lib-user.mjs.map +1 -0
  31. package/{fesm2020 → fesm2022}/ngageoint-mage.web-core-lib.mjs +4 -4
  32. package/{fesm2015 → fesm2022}/ngageoint-mage.web-core-lib.mjs.map +1 -1
  33. package/package.json +26 -46
  34. package/static-icon/static-icon-form-field/static-icon-form-field.component.d.ts +1 -1
  35. package/static-icon/static-icon-img/static-icon-img.component.d.ts +1 -1
  36. package/static-icon/static-icon-select/static-icon-select.component.d.ts +1 -1
  37. package/static-icon/static-icon.model.d.ts +1 -1
  38. package/static-icon/static-icon.model.d.ts.map +1 -1
  39. package/user/user-read.service.d.ts +1 -1
  40. package/user/user-read.service.d.ts.map +1 -1
  41. package/user/user-select/user-select.component.d.ts +1 -1
  42. package/angular-cli/README.md +0 -30
  43. package/esm2020/common/xhr-img.component.mjs +0 -104
  44. package/esm2020/feed/feed.service.mjs +0 -105
  45. package/esm2020/paging/paging.cdk-data-source.adapter.mjs +0 -52
  46. package/esm2020/paging/paging.model.mjs +0 -25
  47. package/esm2020/static-icon/static-icon-form-field/static-icon-form-field.component.mjs +0 -145
  48. package/esm2020/static-icon/static-icon-img/static-icon-img.component.mjs +0 -35
  49. package/esm2020/static-icon/static-icon.model.mjs +0 -10
  50. package/esm2020/static-icon/static-icon.module.mjs +0 -54
  51. package/esm2020/static-icon/static-icon.service.mjs +0 -82
  52. package/esm2020/user/user-read.service.mjs +0 -34
  53. package/esm2020/user/user-select/user-select.component.mjs +0 -159
  54. package/esm2020/user/user.module.mjs +0 -64
  55. package/fesm2015/ngageoint-mage.web-core-lib-common.mjs +0 -142
  56. package/fesm2015/ngageoint-mage.web-core-lib-common.mjs.map +0 -1
  57. package/fesm2015/ngageoint-mage.web-core-lib-feed.mjs +0 -114
  58. package/fesm2015/ngageoint-mage.web-core-lib-paging.mjs.map +0 -1
  59. package/fesm2015/ngageoint-mage.web-core-lib-static-icon.mjs +0 -392
  60. package/fesm2015/ngageoint-mage.web-core-lib-static-icon.mjs.map +0 -1
  61. package/fesm2015/ngageoint-mage.web-core-lib-user.mjs +0 -273
  62. package/fesm2015/ngageoint-mage.web-core-lib-user.mjs.map +0 -1
  63. package/fesm2015/ngageoint-mage.web-core-lib.mjs +0 -32
  64. package/fesm2020/ngageoint-mage.web-core-lib-event.mjs +0 -10
  65. package/fesm2020/ngageoint-mage.web-core-lib-event.mjs.map +0 -1
  66. package/fesm2020/ngageoint-mage.web-core-lib-feed.mjs.map +0 -1
  67. package/fesm2020/ngageoint-mage.web-core-lib-paging.mjs +0 -83
  68. package/fesm2020/ngageoint-mage.web-core-lib-plugin.mjs +0 -4
  69. package/fesm2020/ngageoint-mage.web-core-lib-plugin.mjs.map +0 -1
  70. package/fesm2020/ngageoint-mage.web-core-lib-static-icon.mjs.map +0 -1
  71. package/fesm2020/ngageoint-mage.web-core-lib-user.mjs.map +0 -1
  72. package/fesm2020/ngageoint-mage.web-core-lib.mjs.map +0 -1
  73. /package/{esm2020 → esm2022}/common/ngageoint-mage.web-core-lib-common.mjs +0 -0
  74. /package/{esm2020 → esm2022}/common/public-api.mjs +0 -0
  75. /package/{esm2020 → esm2022}/event/event-read.service.mjs +0 -0
  76. /package/{esm2020 → esm2022}/event/event.model.mjs +0 -0
  77. /package/{esm2020 → esm2022}/event/ngageoint-mage.web-core-lib-event.mjs +0 -0
  78. /package/{esm2020 → esm2022}/event/public-api.mjs +0 -0
  79. /package/{esm2020 → esm2022}/feed/feed.model.mjs +0 -0
  80. /package/{esm2020 → esm2022}/feed/ngageoint-mage.web-core-lib-feed.mjs +0 -0
  81. /package/{esm2020 → esm2022}/feed/public-api.mjs +0 -0
  82. /package/{esm2020 → esm2022}/ngageoint-mage.web-core-lib.mjs +0 -0
  83. /package/{esm2020 → esm2022}/paging/ngageoint-mage.web-core-lib-paging.mjs +0 -0
  84. /package/{esm2020 → esm2022}/paging/public-api.mjs +0 -0
  85. /package/{esm2020 → esm2022}/plugin/ngageoint-mage.web-core-lib-plugin.mjs +0 -0
  86. /package/{esm2020 → esm2022}/plugin/plugin.model.mjs +0 -0
  87. /package/{esm2020 → esm2022}/plugin/public-api.mjs +0 -0
  88. /package/{esm2020 → esm2022}/public-api.mjs +0 -0
  89. /package/{esm2020 → esm2022}/static-icon/ngageoint-mage.web-core-lib-static-icon.mjs +0 -0
  90. /package/{esm2020 → esm2022}/static-icon/public-api.mjs +0 -0
  91. /package/{esm2020 → esm2022}/user/ngageoint-mage.web-core-lib-user.mjs +0 -0
  92. /package/{esm2020 → esm2022}/user/public-api.mjs +0 -0
  93. /package/{esm2020 → esm2022}/user/user.model.mjs +0 -0
  94. /package/{fesm2015 → fesm2022}/ngageoint-mage.web-core-lib-event.mjs +0 -0
  95. /package/{fesm2015 → fesm2022}/ngageoint-mage.web-core-lib-event.mjs.map +0 -0
  96. /package/{fesm2015 → fesm2022}/ngageoint-mage.web-core-lib-paging.mjs +0 -0
  97. /package/{fesm2015 → fesm2022}/ngageoint-mage.web-core-lib-plugin.mjs +0 -0
  98. /package/{fesm2015 → fesm2022}/ngageoint-mage.web-core-lib-plugin.mjs.map +0 -0
@@ -92,15 +92,15 @@ class StaticIconService {
92
92
  uploadIcon() {
93
93
  throw new Error('unimplemented');
94
94
  }
95
+ static { this.ɵfac = function StaticIconService_Factory(t) { return new (t || StaticIconService)(i0.ɵɵinject(i1.HttpClient)); }; }
96
+ static { this.ɵprov = /*@__PURE__*/ i0.ɵɵdefineInjectable({ token: StaticIconService, factory: StaticIconService.ɵfac, providedIn: 'root' }); }
95
97
  }
96
- StaticIconService.ɵfac = function StaticIconService_Factory(t) { return new (t || StaticIconService)(i0.ɵɵinject(i1.HttpClient)); };
97
- StaticIconService.ɵprov = /*@__PURE__*/ i0.ɵɵdefineInjectable({ token: StaticIconService, factory: StaticIconService.ɵfac, providedIn: 'root' });
98
- (function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(StaticIconService, [{
98
+ (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(StaticIconService, [{
99
99
  type: Injectable,
100
100
  args: [{
101
101
  providedIn: 'root'
102
102
  }]
103
- }], function () { return [{ type: i1.HttpClient }]; }, null); })();
103
+ }], () => [{ type: i1.HttpClient }], null); })();
104
104
 
105
105
  class StaticIconFormFieldComponent {
106
106
  constructor(iconService, httpClient, sanitizer) {
@@ -161,29 +161,29 @@ class StaticIconFormFieldComponent {
161
161
  }
162
162
  });
163
163
  }
164
+ static { this.ɵfac = function StaticIconFormFieldComponent_Factory(t) { return new (t || StaticIconFormFieldComponent)(i0.ɵɵdirectiveInject(StaticIconService), i0.ɵɵdirectiveInject(i1.HttpClient), i0.ɵɵdirectiveInject(i3.DomSanitizer)); }; }
165
+ static { this.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: StaticIconFormFieldComponent, selectors: [["mage-static-icon-form-field"]], features: [i0.ɵɵProvidersFeature([
166
+ {
167
+ provide: NG_VALUE_ACCESSOR,
168
+ multi: true,
169
+ useExisting: StaticIconFormFieldComponent
170
+ },
171
+ {
172
+ provide: NG_VALIDATORS,
173
+ multi: true,
174
+ useExisting: StaticIconFormFieldComponent
175
+ },
176
+ ]), i0.ɵɵNgOnChangesFeature], decls: 4, vars: 2, consts: [[3, "formGroup"], [1, "icon-image", 3, "src"], ["type", "hidden", "formControlName", "iconRefType"], ["type", "hidden", "formControlName", "iconRefToken"]], template: function StaticIconFormFieldComponent_Template(rf, ctx) { if (rf & 1) {
177
+ i0.ɵɵelementStart(0, "div", 0);
178
+ i0.ɵɵelement(1, "mage-xhr-img", 1)(2, "input", 2)(3, "input", 3);
179
+ i0.ɵɵelementEnd();
180
+ } if (rf & 2) {
181
+ i0.ɵɵproperty("formGroup", ctx.form);
182
+ i0.ɵɵadvance();
183
+ i0.ɵɵproperty("src", ctx.icon == null ? null : ctx.icon.contentPath);
184
+ } }, dependencies: [i4.DefaultValueAccessor, i4.NgControlStatus, i4.NgControlStatusGroup, i4.FormGroupDirective, i4.FormControlName, i5.XhrImgComponent], styles: [".icon-image[_ngcontent-%COMP%]{display:block;height:3em;width:3em}"] }); }
164
185
  }
165
- StaticIconFormFieldComponent.ɵfac = function StaticIconFormFieldComponent_Factory(t) { return new (t || StaticIconFormFieldComponent)(i0.ɵɵdirectiveInject(StaticIconService), i0.ɵɵdirectiveInject(i1.HttpClient), i0.ɵɵdirectiveInject(i3.DomSanitizer)); };
166
- StaticIconFormFieldComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: StaticIconFormFieldComponent, selectors: [["mage-static-icon-form-field"]], features: [i0.ɵɵProvidersFeature([
167
- {
168
- provide: NG_VALUE_ACCESSOR,
169
- multi: true,
170
- useExisting: StaticIconFormFieldComponent
171
- },
172
- {
173
- provide: NG_VALIDATORS,
174
- multi: true,
175
- useExisting: StaticIconFormFieldComponent
176
- },
177
- ]), i0.ɵɵNgOnChangesFeature], decls: 4, vars: 2, consts: [[3, "formGroup"], [1, "icon-image", 3, "src"], ["type", "hidden", "formControlName", "iconRefType"], ["type", "hidden", "formControlName", "iconRefToken"]], template: function StaticIconFormFieldComponent_Template(rf, ctx) { if (rf & 1) {
178
- i0.ɵɵelementStart(0, "div", 0);
179
- i0.ɵɵelement(1, "mage-xhr-img", 1)(2, "input", 2)(3, "input", 3);
180
- i0.ɵɵelementEnd();
181
- } if (rf & 2) {
182
- i0.ɵɵproperty("formGroup", ctx.form);
183
- i0.ɵɵadvance(1);
184
- i0.ɵɵproperty("src", ctx.icon == null ? null : ctx.icon.contentPath);
185
- } }, dependencies: [i4.DefaultValueAccessor, i4.NgControlStatus, i4.NgControlStatusGroup, i4.FormGroupDirective, i4.FormControlName, i5.XhrImgComponent], styles: [".icon-image[_ngcontent-%COMP%]{display:block;height:3em;width:3em}"] });
186
- (function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(StaticIconFormFieldComponent, [{
186
+ (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(StaticIconFormFieldComponent, [{
187
187
  type: Component,
188
188
  args: [{ selector: 'mage-static-icon-form-field', providers: [
189
189
  {
@@ -197,7 +197,8 @@ StaticIconFormFieldComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type
197
197
  useExisting: StaticIconFormFieldComponent
198
198
  },
199
199
  ], template: "<div [formGroup]=\"form\">\n <mage-xhr-img class=\"icon-image\" [src]=\"icon?.contentPath\"></mage-xhr-img>\n <input type=\"hidden\" formControlName=\"iconRefType\"/>\n <input type=\"hidden\" formControlName=\"iconRefToken\"/>\n</div>", styles: [".icon-image{display:block;height:3em;width:3em}\n"] }]
200
- }], function () { return [{ type: StaticIconService }, { type: i1.HttpClient }, { type: i3.DomSanitizer }]; }, null); })();
200
+ }], () => [{ type: StaticIconService }, { type: i1.HttpClient }, { type: i3.DomSanitizer }], null); })();
201
+ (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(StaticIconFormFieldComponent, { className: "StaticIconFormFieldComponent", filePath: "static-icon-form-field/static-icon-form-field.component.ts", lineNumber: 26 }); })();
201
202
  var IconRefType;
202
203
  (function (IconRefType) {
203
204
  IconRefType["Registered"] = "id";
@@ -253,22 +254,23 @@ class StaticIconImgComponent {
253
254
  }
254
255
  }
255
256
  }
257
+ static { this.ɵfac = function StaticIconImgComponent_Factory(t) { return new (t || StaticIconImgComponent)(); }; }
258
+ static { this.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: StaticIconImgComponent, selectors: [["mage-static-icon-img"]], inputs: { iconRef: "iconRef" }, features: [i0.ɵɵNgOnChangesFeature], decls: 1, vars: 1, consts: [[3, "src"]], template: function StaticIconImgComponent_Template(rf, ctx) { if (rf & 1) {
259
+ i0.ɵɵelement(0, "mage-xhr-img", 0);
260
+ } if (rf & 2) {
261
+ i0.ɵɵproperty("src", ctx.iconPath);
262
+ } }, dependencies: [i5.XhrImgComponent], encapsulation: 2 }); }
256
263
  }
257
- StaticIconImgComponent.ɵfac = function StaticIconImgComponent_Factory(t) { return new (t || StaticIconImgComponent)(); };
258
- StaticIconImgComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: StaticIconImgComponent, selectors: [["mage-static-icon-img"]], inputs: { iconRef: "iconRef" }, features: [i0.ɵɵNgOnChangesFeature], decls: 1, vars: 1, consts: [[3, "src"]], template: function StaticIconImgComponent_Template(rf, ctx) { if (rf & 1) {
259
- i0.ɵɵelement(0, "mage-xhr-img", 0);
260
- } if (rf & 2) {
261
- i0.ɵɵproperty("src", ctx.iconPath);
262
- } }, dependencies: [i5.XhrImgComponent], encapsulation: 2 });
263
- (function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(StaticIconImgComponent, [{
264
+ (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(StaticIconImgComponent, [{
264
265
  type: Component,
265
266
  args: [{
266
267
  selector: 'mage-static-icon-img',
267
268
  template: `<mage-xhr-img [src]="iconPath"></mage-xhr-img>`,
268
269
  }]
269
- }], function () { return []; }, { iconRef: [{
270
+ }], () => [], { iconRef: [{
270
271
  type: Input
271
272
  }] }); })();
273
+ (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(StaticIconImgComponent, { className: "StaticIconImgComponent", filePath: "static-icon-img/static-icon-img.component.ts", lineNumber: 8 }); })();
272
274
 
273
275
  function StaticIconSelectComponent_mat_card_2_Template(rf, ctx) { if (rf & 1) {
274
276
  i0.ɵɵelementStart(0, "mat-card", 3)(1, "mat-card-header")(2, "mat-card-title");
@@ -280,7 +282,7 @@ function StaticIconSelectComponent_mat_card_2_Template(rf, ctx) { if (rf & 1) {
280
282
  const icon_r1 = ctx.$implicit;
281
283
  i0.ɵɵadvance(3);
282
284
  i0.ɵɵtextInterpolate(icon_r1.title);
283
- i0.ɵɵadvance(1);
285
+ i0.ɵɵadvance();
284
286
  i0.ɵɵproperty("src", icon_r1.path, i0.ɵɵsanitizeUrl);
285
287
  } }
286
288
  class StaticIconSelectComponent {
@@ -299,34 +301,35 @@ class StaticIconSelectComponent {
299
301
  onBrowseForUploadIcon() {
300
302
  throw new Error('unimplemented');
301
303
  }
304
+ static { this.ɵfac = function StaticIconSelectComponent_Factory(t) { return new (t || StaticIconSelectComponent)(i0.ɵɵdirectiveInject(StaticIconService)); }; }
305
+ static { this.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: StaticIconSelectComponent, selectors: [["static-icon-select"]], decls: 3, vars: 2, consts: [[1, "icon-select"], [3, "itemSize"], ["class", "icon-select-item", 4, "cdkVirtualFor", "cdkVirtualForOf"], [1, "icon-select-item"], ["mat-card-img", "", 3, "src"]], template: function StaticIconSelectComponent_Template(rf, ctx) { if (rf & 1) {
306
+ i0.ɵɵelementStart(0, "div", 0)(1, "cdk-virtual-scroll-viewport", 1);
307
+ i0.ɵɵtemplate(2, StaticIconSelectComponent_mat_card_2_Template, 5, 2, "mat-card", 2);
308
+ i0.ɵɵelementEnd()();
309
+ } if (rf & 2) {
310
+ i0.ɵɵadvance();
311
+ i0.ɵɵproperty("itemSize", 40);
312
+ i0.ɵɵadvance();
313
+ i0.ɵɵproperty("cdkVirtualForOf", ctx.icons);
314
+ } }, dependencies: [i2.MatCard, i2.MatCardHeader, i2.MatCardTitle, i3$1.CdkFixedSizeVirtualScroll, i3$1.CdkVirtualForOf, i3$1.CdkVirtualScrollViewport], styles: ["virtual-scroll[_ngcontent-%COMP%]{display:grid;grid-template-columns:repeat(3,33%);grid-auto-rows:min-content;grid-gap:0;justify-content:center;gap:0}"] }); }
302
315
  }
303
- StaticIconSelectComponent.ɵfac = function StaticIconSelectComponent_Factory(t) { return new (t || StaticIconSelectComponent)(i0.ɵɵdirectiveInject(StaticIconService)); };
304
- StaticIconSelectComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: StaticIconSelectComponent, selectors: [["static-icon-select"]], decls: 3, vars: 2, consts: [[1, "icon-select"], [3, "itemSize"], ["class", "icon-select-item", 4, "cdkVirtualFor", "cdkVirtualForOf"], [1, "icon-select-item"], ["mat-card-img", "", 3, "src"]], template: function StaticIconSelectComponent_Template(rf, ctx) { if (rf & 1) {
305
- i0.ɵɵelementStart(0, "div", 0)(1, "cdk-virtual-scroll-viewport", 1);
306
- i0.ɵɵtemplate(2, StaticIconSelectComponent_mat_card_2_Template, 5, 2, "mat-card", 2);
307
- i0.ɵɵelementEnd()();
308
- } if (rf & 2) {
309
- i0.ɵɵadvance(1);
310
- i0.ɵɵproperty("itemSize", 40);
311
- i0.ɵɵadvance(1);
312
- i0.ɵɵproperty("cdkVirtualForOf", ctx.icons);
313
- } }, dependencies: [i2.MatCard, i2.MatCardHeader, i2.MatCardTitle, i3$1.CdkFixedSizeVirtualScroll, i3$1.CdkVirtualForOf, i3$1.CdkVirtualScrollViewport], styles: ["virtual-scroll[_ngcontent-%COMP%]{display:grid;grid-template-columns:repeat(3,33%);grid-auto-rows:min-content;grid-gap:0;justify-content:center;gap:0}"] });
314
- (function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(StaticIconSelectComponent, [{
316
+ (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(StaticIconSelectComponent, [{
315
317
  type: Component,
316
318
  args: [{ selector: 'static-icon-select', template: "<div class=\"icon-select\">\n <cdk-virtual-scroll-viewport [itemSize]=\"40\">\n <mat-card *cdkVirtualFor=\"let icon of icons\" class=icon-select-item>\n <mat-card-header>\n <mat-card-title>{{icon.title}}</mat-card-title>\n </mat-card-header>\n <img mat-card-img [src]=\"icon.path\" />\n </mat-card>\n </cdk-virtual-scroll-viewport>\n</div>\n<!--\n <button mat-button class=\"add__button\" type=\"button\" color=\"primary\" (click)=\"file.click()\">\n Upload Icon\n </button>\n <input [hidden]=\"true\" type=\"file\" #file multiple (change)=\"onAttachmentFile($event)\">\n-->", styles: ["virtual-scroll{display:grid;grid-template-columns:repeat(3,33%);grid-auto-rows:min-content;grid-gap:0;justify-content:center;gap:0}\n"] }]
317
- }], function () { return [{ type: StaticIconService }]; }, null); })();
319
+ }], () => [{ type: StaticIconService }], null); })();
320
+ (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(StaticIconSelectComponent, { className: "StaticIconSelectComponent", filePath: "static-icon-select/static-icon-select.component.ts", lineNumber: 18 }); })();
318
321
 
319
322
  class StaticIconModule {
323
+ static { this.ɵfac = function StaticIconModule_Factory(t) { return new (t || StaticIconModule)(); }; }
324
+ static { this.ɵmod = /*@__PURE__*/ i0.ɵɵdefineNgModule({ type: StaticIconModule }); }
325
+ static { this.ɵinj = /*@__PURE__*/ i0.ɵɵdefineInjector({ imports: [CommonModule,
326
+ FormsModule,
327
+ ReactiveFormsModule,
328
+ MatCardModule,
329
+ MageCommonModule,
330
+ ScrollingModule] }); }
320
331
  }
321
- StaticIconModule.ɵfac = function StaticIconModule_Factory(t) { return new (t || StaticIconModule)(); };
322
- StaticIconModule.ɵmod = /*@__PURE__*/ i0.ɵɵdefineNgModule({ type: StaticIconModule });
323
- StaticIconModule.ɵinj = /*@__PURE__*/ i0.ɵɵdefineInjector({ imports: [CommonModule,
324
- FormsModule,
325
- ReactiveFormsModule,
326
- MatCardModule,
327
- MageCommonModule,
328
- ScrollingModule] });
329
- (function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(StaticIconModule, [{
332
+ (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(StaticIconModule, [{
330
333
  type: NgModule,
331
334
  args: [{
332
335
  imports: [
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ngageoint-mage.web-core-lib-static-icon.mjs","sources":["../../../projects/core-lib/static-icon/static-icon.model.ts","../../../projects/core-lib/static-icon/static-icon.service.ts","../../../projects/core-lib/static-icon/static-icon-form-field/static-icon-form-field.component.ts","../../../projects/core-lib/static-icon/static-icon-form-field/static-icon-form-field.component.html","../../../projects/core-lib/static-icon/static-icon-img/static-icon-img.component.ts","../../../projects/core-lib/static-icon/static-icon-select/static-icon-select.component.html","../../../projects/core-lib/static-icon/static-icon-select/static-icon-select.component.ts","../../../projects/core-lib/static-icon/static-icon.module.ts","../../../projects/core-lib/static-icon/ngageoint-mage.web-core-lib-static-icon.ts"],"sourcesContent":["\nexport interface StaticIcon {\n id: string\n sourceUrl: string\n contentPath: string\n title?: string\n summary?: string\n fileName?: string\n tags?: string[]\n}\n\nexport interface RegisteredStaticIconReference {\n id: string\n sourceUrl?: never\n}\n\nexport interface SourceUrlStaticIconReference {\n sourceUrl: string\n id?: never\n}\n\nexport const contentPathOfIcon = (icon?: StaticIcon | RegisteredStaticIconReference | string | null | undefined): string | undefined => {\n if (!icon) {\n return\n }\n if (typeof icon !== 'string') {\n icon = icon.id\n }\n return `/api/icons/${icon}/content`\n}\n\nexport type StaticIconReference = RegisteredStaticIconReference | SourceUrlStaticIconReference\n","import { HttpClient, HttpParams } from '@angular/common/http'\nimport { Injectable } from '@angular/core';\nimport { Observable, throwError } from 'rxjs'\nimport { catchError } from 'rxjs/operators'\nimport { PageOf, PagingParameters } from '@ngageoint/mage.web-core-lib/paging'\nimport { StaticIcon, StaticIconReference } from './static-icon.model'\n\n\nexport interface IconFetch extends PagingParameters {\n searchText?: string\n}\n\n@Injectable({\n providedIn: 'root'\n})\nexport class StaticIconService {\n\n constructor(private webClient: HttpClient) { }\n\n fetchIcons(fetch?: IconFetch): Observable<PageOf<StaticIcon>> {\n const now = Date.now()\n const results = new Observable<PageOf<StaticIcon>>(observer => {\n const icons: StaticIcon[] = []\n let remaining = 100\n while (remaining--) {\n const id = now - remaining\n icons.unshift({\n id: String(id),\n title: `Icon ${id}`,\n fileName: `icon-${id}.png`,\n sourceUrl: `https://test.mage/${id}.png`,\n contentPath: `/icons/${id}/content`\n })\n }\n setTimeout(() => {\n observer.next({\n pageSize: 100,\n pageIndex: 0,\n totalCount: 100,\n items: icons\n })\n observer.complete()\n }, 0)\n return {\n unsubscribe() { }\n }\n })\n return results\n }\n\n fetchIconById(id: string): Observable<StaticIcon | null> {\n return this.webClient.get<StaticIcon>(`/api/icons/${id}`).pipe(\n catchError((err, caught) => {\n // TODO: this is probably better practice to insulate app layer from\n // http errors\n // if (err instanceof HttpErrorResponse) {\n // if (err.status === 404) {\n // return null\n // }\n // }\n return throwError(err)\n })\n )\n }\n\n fetchIconBySourceUrl(url: string): Observable<StaticIcon> {\n return this.webClient.get<StaticIcon | null>(`/api/icons`, {\n params: new HttpParams().set('source_url', url)\n })\n }\n\n fetchIconByReference(ref: StaticIconReference): Observable<StaticIcon | null> {\n if (ref.id) {\n return this.fetchIconById(ref.id)\n }\n else if (ref.sourceUrl) {\n return this.fetchIconBySourceUrl(ref.sourceUrl)\n }\n throw new Error('no icon id or source url')\n }\n\n registerIconUrl(url: string): Observable<StaticIcon> {\n throw new Error('unimplemented')\n }\n\n uploadIcon(): void {\n throw new Error('unimplemented')\n }\n}\n","import { HttpClient } from '@angular/common/http'\nimport { Component, OnChanges, OnDestroy, SimpleChanges } from '@angular/core'\nimport { AbstractControl, ControlValueAccessor, UntypedFormControl, UntypedFormGroup, NG_VALIDATORS, NG_VALUE_ACCESSOR, ValidationErrors, Validator, Validators } from '@angular/forms'\nimport { DomSanitizer } from '@angular/platform-browser'\nimport { StaticIcon, StaticIconReference } from '../static-icon.model'\nimport { StaticIconService } from '../static-icon.service'\n\n\n@Component({\n selector: 'mage-static-icon-form-field',\n templateUrl: './static-icon-form-field.component.html',\n styleUrls: ['./static-icon-form-field.component.scss'],\n providers: [\n {\n provide: NG_VALUE_ACCESSOR,\n multi: true,\n useExisting: StaticIconFormFieldComponent\n },\n {\n provide: NG_VALIDATORS,\n multi: true,\n useExisting: StaticIconFormFieldComponent\n },\n ]\n})\nexport class StaticIconFormFieldComponent implements OnChanges, OnDestroy, ControlValueAccessor, Validator {\n\n iconRef: StaticIconReference = null\n\n form: UntypedFormGroup = new UntypedFormGroup({\n iconRefToken: new UntypedFormControl(null),\n iconRefType: new UntypedFormControl(null, Validators.required)\n })\n icon: StaticIcon | null\n\n private onChange: (iconRef: StaticIconReference) => void = (iconRef: StaticIconReference) => {}\n private onValidatorChange: () => void = () => {}\n private onTouched: () => void = () => {}\n\n constructor(private iconService: StaticIconService, private httpClient: HttpClient, private sanitizer: DomSanitizer) {\n this.form.valueChanges.subscribe((x: IconRefFormValue) => {\n this.iconRef = iconRefForFormValue(x)\n this.onChange(this.iconRef)\n })\n }\n\n registerOnValidatorChange?(fn: () => void): void {\n this.onValidatorChange = fn\n }\n\n ngOnChanges(changes: SimpleChanges) { }\n\n ngOnDestroy() { }\n\n onSelectIcon() { }\n\n writeValue(iconRef: StaticIconReference): void {\n this.iconRef = iconRef\n const formValue = formValueForIconRef(iconRef)\n this.form.setValue(formValue, { emitEvent: false })\n this.resolveIconRef()\n }\n\n registerOnChange(fn: (x: StaticIconReference | null) => void): void {\n this.onChange = fn\n }\n\n registerOnTouched(fn: () => void): void {\n this.onTouched = fn\n }\n\n setDisabledState?(isDisabled: boolean): void {\n if (isDisabled) {\n this.form.disable()\n }\n else {\n this.form.enable()\n }\n }\n\n validate(control: AbstractControl): ValidationErrors {\n return this.form.errors\n }\n\n private resolveIconRef() {\n if (!this.iconRef) {\n this.icon = null\n return\n }\n this.iconService.fetchIconByReference(this.iconRef).subscribe(x => {\n this.icon = x\n if (!this.icon) {\n return\n }\n })\n }\n}\n\nenum IconRefType {\n Registered = 'id',\n SourceUrl = 'sourceUrl'\n}\n\ntype IconRefFormValue = {\n iconRefToken: string | null\n iconRefType: IconRefType | null\n}\n\nfunction iconRefForFormValue(x: IconRefFormValue): StaticIconReference | null {\n if (!x.iconRefType) {\n return null\n }\n switch (x.iconRefType) {\n case IconRefType.Registered:\n return { [IconRefType.Registered]: x.iconRefToken }\n case IconRefType.SourceUrl:\n return { [IconRefType.SourceUrl]: x.iconRefToken }\n default:\n throw new Error('invalid icon ref type: ' + x.iconRefToken)\n }\n}\n\nfunction formValueForIconRef(x: StaticIconReference | null): IconRefFormValue {\n if (!x) {\n return {\n iconRefType: null,\n iconRefToken: null\n }\n }\n let iconRefType: IconRefType | null = null\n let iconRefToken: string | null = null\n if (x.hasOwnProperty(IconRefType.Registered)) {\n iconRefType = IconRefType.Registered || null\n iconRefToken = x[IconRefType.Registered] || null\n }\n else if (x.hasOwnProperty(IconRefType.SourceUrl)) {\n iconRefType = IconRefType.SourceUrl || null\n iconRefToken = x[IconRefType.SourceUrl] || null\n }\n return {\n iconRefType,\n iconRefToken\n }\n}\n","<div [formGroup]=\"form\">\n <mage-xhr-img class=\"icon-image\" [src]=\"icon?.contentPath\"></mage-xhr-img>\n <input type=\"hidden\" formControlName=\"iconRefType\"/>\n <input type=\"hidden\" formControlName=\"iconRefToken\"/>\n</div>","import { Component, Input, OnChanges, OnInit, SimpleChanges } from '@angular/core';\nimport { RegisteredStaticIconReference, contentPathOfIcon } from '../static-icon.model'\n\n@Component({\n selector: 'mage-static-icon-img',\n template: `<mage-xhr-img [src]=\"iconPath\"></mage-xhr-img>`,\n})\nexport class StaticIconImgComponent implements OnInit, OnChanges {\n\n @Input()\n iconRef: RegisteredStaticIconReference | string | null\n iconPath: string | null\n\n constructor() { }\n\n ngOnInit(): void {\n }\n\n ngOnChanges(changes: SimpleChanges): void {\n if (changes.iconRef) {\n if (this.iconRef) {\n this.iconPath = contentPathOfIcon(this.iconRef)\n }\n else {\n this.iconPath = null\n }\n }\n }\n}\n","<div class=\"icon-select\">\n <cdk-virtual-scroll-viewport [itemSize]=\"40\">\n <mat-card *cdkVirtualFor=\"let icon of icons\" class=icon-select-item>\n <mat-card-header>\n <mat-card-title>{{icon.title}}</mat-card-title>\n </mat-card-header>\n <img mat-card-img [src]=\"icon.path\" />\n </mat-card>\n </cdk-virtual-scroll-viewport>\n</div>\n<!--\n <button mat-button class=\"add__button\" type=\"button\" color=\"primary\" (click)=\"file.click()\">\n Upload Icon\n </button>\n <input [hidden]=\"true\" type=\"file\" #file multiple (change)=\"onAttachmentFile($event)\">\n-->","import { Component, OnInit } from '@angular/core'\nimport { PagingParameters, PagingDataSource } from '@ngageoint/mage.web-core-lib/paging'\nimport { StaticIcon } from '../static-icon.model'\nimport { StaticIconService } from '../static-icon.service'\n\nexport interface StaticIconSelectItem {\n id: string\n path: string\n title: string\n fileName: string\n}\n\n@Component({\n selector: 'static-icon-select',\n templateUrl: './static-icon-select.component.html',\n styleUrls: ['./static-icon-select.component.scss']\n})\nexport class StaticIconSelectComponent implements OnInit {\n\n icons: StaticIcon[] | null = null\n dataSource: PagingDataSource<StaticIcon>\n\n constructor(\n private iconService: StaticIconService\n ) {\n this.dataSource = new PagingDataSource<StaticIcon>(250, (paging: PagingParameters) => {\n return this.iconService.fetchIcons(paging)\n })\n }\n\n ngOnInit() {\n this.iconService.fetchIcons().subscribe(x => {\n this.icons = x.items\n })\n }\n\n onBrowseForUploadIcon() {\n throw new Error('unimplemented')\n }\n}\n\n","import { ScrollingModule } from '@angular/cdk/scrolling'\nimport { CommonModule } from '@angular/common'\nimport { NgModule } from '@angular/core'\nimport { FormsModule, ReactiveFormsModule } from '@angular/forms'\nimport { MatCardModule as MatCardModule } from '@angular/material/card'\nimport { MageCommonModule } from '@ngageoint/mage.web-core-lib/common'\nimport { StaticIconFormFieldComponent } from './static-icon-form-field/static-icon-form-field.component'\nimport { StaticIconImgComponent } from './static-icon-img/static-icon-img.component'\nimport { StaticIconSelectComponent } from './static-icon-select/static-icon-select.component'\n\n\n@NgModule({\n imports: [\n CommonModule,\n FormsModule,\n ReactiveFormsModule,\n MatCardModule,\n MageCommonModule,\n ScrollingModule\n ],\n declarations: [\n StaticIconFormFieldComponent,\n StaticIconImgComponent,\n StaticIconSelectComponent,\n ],\n exports: [\n StaticIconFormFieldComponent,\n StaticIconImgComponent,\n StaticIconSelectComponent,\n ]\n})\nexport class StaticIconModule {}","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":["i1.StaticIconService","i2"],"mappings":";;;;;;;;;;;;;;;;;;AAqBO,MAAM,iBAAiB,GAAG,CAAC,IAA6E,KAAwB;IACrI,IAAI,CAAC,IAAI,EAAE;QACT;IACF;AACA,IAAA,IAAI,OAAO,IAAI,KAAK,QAAQ,EAAE;AAC5B,QAAA,IAAI,GAAG,IAAI,CAAC,EAAE;IAChB;IACA,OAAO,CAAA,WAAA,EAAc,IAAI,CAAA,QAAA,CAAU;AACrC;;MCda,iBAAiB,CAAA;AAE5B,IAAA,WAAA,CAAoB,SAAqB,EAAA;QAArB,IAAA,CAAA,SAAS,GAAT,SAAS;IAAgB;AAE7C,IAAA,UAAU,CAAC,KAAiB,EAAA;AAC1B,QAAA,MAAM,GAAG,GAAG,IAAI,CAAC,GAAG,EAAE;AACtB,QAAA,MAAM,OAAO,GAAG,IAAI,UAAU,CAAqB,QAAQ,IAAG;YAC5D,MAAM,KAAK,GAAiB,EAAE;YAC9B,IAAI,SAAS,GAAG,GAAG;YACnB,OAAO,SAAS,EAAE,EAAE;AAClB,gBAAA,MAAM,EAAE,GAAG,GAAG,GAAG,SAAS;gBAC1B,KAAK,CAAC,OAAO,CAAC;AACZ,oBAAA,EAAE,EAAE,MAAM,CAAC,EAAE,CAAC;oBACd,KAAK,EAAE,CAAA,KAAA,EAAQ,EAAE,CAAA,CAAE;oBACnB,QAAQ,EAAE,CAAA,KAAA,EAAQ,EAAE,CAAA,IAAA,CAAM;oBAC1B,SAAS,EAAE,CAAA,kBAAA,EAAqB,EAAE,CAAA,IAAA,CAAM;oBACxC,WAAW,EAAE,CAAA,OAAA,EAAU,EAAE,CAAA,QAAA;AAC1B,iBAAA,CAAC;YACJ;YACA,UAAU,CAAC,MAAK;gBACd,QAAQ,CAAC,IAAI,CAAC;AACZ,oBAAA,QAAQ,EAA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B;AACF,aAAA;;AACY,CAAA,YAAA,EAAA,CAAA,OAAA,SAAA,KAAA,WAAA,IAAA,SAAA,KAAA,EAAA,CAAA,kBAAA,CAAA,gBAAgB,mBAVzB,4BAA4B;QAC5B,sBAAsB;AACtB,QAAA,yBAAyB,aAVzB,YAAY;QACZ,WAAW;QACX,mBAAmB;QACnB,aAAa;QACb,gBAAgB;AAChB,QAAA,eAAe,aAQf,4BAA4B;QAC5B,sBAAsB;QACtB,yBAAyB,CAAA,EAAA,CAAA,CAAA,CAAA,CAAA,GAAA;;AC5B7B;;AAEG;;;;"}
@@ -36,15 +36,15 @@ class UserReadService {
36
36
  params: queryParams
37
37
  });
38
38
  }
39
+ static { this.ɵfac = function UserReadService_Factory(t) { return new (t || UserReadService)(i0.ɵɵinject(i1.HttpClient)); }; }
40
+ static { this.ɵprov = /*@__PURE__*/ i0.ɵɵdefineInjectable({ token: UserReadService, factory: UserReadService.ɵfac, providedIn: 'root' }); }
39
41
  }
40
- UserReadService.ɵfac = function UserReadService_Factory(t) { return new (t || UserReadService)(i0.ɵɵinject(i1.HttpClient)); };
41
- UserReadService.ɵprov = /*@__PURE__*/ i0.ɵɵdefineInjectable({ token: UserReadService, factory: UserReadService.ɵfac, providedIn: 'root' });
42
- (function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(UserReadService, [{
42
+ (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(UserReadService, [{
43
43
  type: Injectable,
44
44
  args: [{
45
45
  providedIn: 'root'
46
46
  }]
47
- }], function () { return [{ type: i1.HttpClient }]; }, null); })();
47
+ }], () => [{ type: i1.HttpClient }], null); })();
48
48
  const USER_READ_SERVICE = new InjectionToken('UserReadService');
49
49
 
50
50
  function UserSelectComponent_ng_template_1_Template(rf, ctx) { if (rf & 1) {
@@ -53,7 +53,7 @@ function UserSelectComponent_ng_template_1_Template(rf, ctx) { if (rf & 1) {
53
53
  i0.ɵɵelementEnd();
54
54
  } if (rf & 2) {
55
55
  const ctx_r0 = i0.ɵɵnextContext();
56
- i0.ɵɵadvance(1);
56
+ i0.ɵɵadvance();
57
57
  i0.ɵɵtextInterpolate1("", ctx_r0.totalCount, " matching users");
58
58
  } }
59
59
  function UserSelectComponent_ng_template_2_Template(rf, ctx) { if (rf & 1) {
@@ -76,6 +76,9 @@ function UserSelectComponent_ng_template_2_Template(rf, ctx) { if (rf & 1) {
76
76
  i0.ɵɵtextInterpolate(user_r2.allPhones || "[no phone]");
77
77
  } }
78
78
  class UserSelectComponent {
79
+ get loading() {
80
+ return !!this.currentFetch && !this.currentFetch.closed;
81
+ }
79
82
  constructor(userService) {
80
83
  this.userService = userService;
81
84
  this.baseFindParams = Object.freeze({
@@ -92,9 +95,6 @@ class UserSelectComponent {
92
95
  this.currentSearchTerm = null;
93
96
  this.currentFetch = null;
94
97
  }
95
- get loading() {
96
- return !!this.currentFetch && !this.currentFetch.closed;
97
- }
98
98
  ngOnInit() {
99
99
  this.searchTerm$.pipe(distinctUntilChanged(), debounceTime(this.searchTermDebounceTime))
100
100
  .subscribe(x => {
@@ -161,29 +161,28 @@ class UserSelectComponent {
161
161
  }
162
162
  });
163
163
  }
164
+ static { this.ɵfac = function UserSelectComponent_Factory(t) { return new (t || UserSelectComponent)(i0.ɵɵdirectiveInject(UserReadService)); }; }
165
+ static { this.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: UserSelectComponent, selectors: [["mage-user-select"]], viewQuery: function UserSelectComponent_Query(rf, ctx) { if (rf & 1) {
166
+ i0.ɵɵviewQuery(NgSelectComponent, 7);
167
+ } if (rf & 2) {
168
+ let _t;
169
+ i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.userSelect = _t.first);
170
+ } }, features: [i0.ɵɵProvidersFeature([
171
+ {
172
+ provide: NG_VALUE_ACCESSOR,
173
+ multi: true,
174
+ useExisting: forwardRef(() => UserSelectComponent)
175
+ }
176
+ ]), i0.ɵɵNgOnChangesFeature], decls: 3, vars: 5, consts: [["appendTo", "body", "placeholder", "Choose a user", "bindLabel", "displayName", 3, "open", "scroll", "scrollToEnd", "items", "typeahead", "virtualScroll", "loading", "trackByFn"], ["ng-header-tmp", ""], ["ng-option-tmp", "", 1, "user-option"], [1, "form-text", "text-muted"], [1, "user-option"], [1, "user-option__line", "primary"], [1, "user-option__line", "detail"]], template: function UserSelectComponent_Template(rf, ctx) { if (rf & 1) {
177
+ i0.ɵɵelementStart(0, "ng-select", 0);
178
+ i0.ɵɵlistener("open", function UserSelectComponent_Template_ng_select_open_0_listener() { return ctx.onOpen(); })("scroll", function UserSelectComponent_Template_ng_select_scroll_0_listener($event) { return ctx.onScroll($event); })("scrollToEnd", function UserSelectComponent_Template_ng_select_scrollToEnd_0_listener() { return ctx.onScrollToEnd(); });
179
+ i0.ɵɵtemplate(1, UserSelectComponent_ng_template_1_Template, 2, 1, "ng-template", 1)(2, UserSelectComponent_ng_template_2_Template, 7, 4, "ng-template", 2);
180
+ i0.ɵɵelementEnd();
181
+ } if (rf & 2) {
182
+ i0.ɵɵproperty("items", ctx.users)("typeahead", ctx.searchTerm$)("virtualScroll", true)("loading", ctx.loading)("trackByFn", ctx.trackByUserId);
183
+ } }, dependencies: [i2.NgSelectComponent, i2.NgOptionTemplateDirective, i2.NgHeaderTemplateDirective], styles: [".user-option[_ngcontent-%COMP%]{margin:.85em 0}.user-option[_ngcontent-%COMP%] > .user-option__line[_ngcontent-%COMP%]{margin:0 0 .6em;padding:0;line-height:1em;overflow:hidden;text-overflow:ellipsis}.user-option[_ngcontent-%COMP%] > .user-option__line.primary[_ngcontent-%COMP%]{font-size:1em}.user-option[_ngcontent-%COMP%] > .user-option__line.detail[_ngcontent-%COMP%]{font-size:.85em;opacity:.75}"] }); }
164
184
  }
165
- UserSelectComponent.ɵfac = function UserSelectComponent_Factory(t) { return new (t || UserSelectComponent)(i0.ɵɵdirectiveInject(UserReadService)); };
166
- UserSelectComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: UserSelectComponent, selectors: [["mage-user-select"]], viewQuery: function UserSelectComponent_Query(rf, ctx) { if (rf & 1) {
167
- i0.ɵɵviewQuery(NgSelectComponent, 7);
168
- } if (rf & 2) {
169
- let _t;
170
- i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.userSelect = _t.first);
171
- } }, features: [i0.ɵɵProvidersFeature([
172
- {
173
- provide: NG_VALUE_ACCESSOR,
174
- multi: true,
175
- useExisting: forwardRef(() => UserSelectComponent)
176
- }
177
- ]), i0.ɵɵNgOnChangesFeature], decls: 3, vars: 5, consts: [["appendTo", "body", "placeholder", "Choose a user", "bindLabel", "displayName", 3, "items", "typeahead", "virtualScroll", "loading", "trackByFn", "open", "scroll", "scrollToEnd"], ["ng-header-tmp", ""], ["class", "user-option", "ng-option-tmp", ""], [1, "form-text", "text-muted"], [1, "user-option"], [1, "user-option__line", "primary"], [1, "user-option__line", "detail"]], template: function UserSelectComponent_Template(rf, ctx) { if (rf & 1) {
178
- i0.ɵɵelementStart(0, "ng-select", 0);
179
- i0.ɵɵlistener("open", function UserSelectComponent_Template_ng_select_open_0_listener() { return ctx.onOpen(); })("scroll", function UserSelectComponent_Template_ng_select_scroll_0_listener($event) { return ctx.onScroll($event); })("scrollToEnd", function UserSelectComponent_Template_ng_select_scrollToEnd_0_listener() { return ctx.onScrollToEnd(); });
180
- i0.ɵɵtemplate(1, UserSelectComponent_ng_template_1_Template, 2, 1, "ng-template", 1);
181
- i0.ɵɵtemplate(2, UserSelectComponent_ng_template_2_Template, 7, 4, "ng-template", 2);
182
- i0.ɵɵelementEnd();
183
- } if (rf & 2) {
184
- i0.ɵɵproperty("items", ctx.users)("typeahead", ctx.searchTerm$)("virtualScroll", true)("loading", ctx.loading)("trackByFn", ctx.trackByUserId);
185
- } }, dependencies: [i2.NgSelectComponent, i2.NgOptionTemplateDirective, i2.NgHeaderTemplateDirective], styles: [".user-option[_ngcontent-%COMP%]{margin:.85em 0}.user-option[_ngcontent-%COMP%] > .user-option__line[_ngcontent-%COMP%]{margin:0 0 .6em;padding:0;line-height:1em;overflow:hidden;text-overflow:ellipsis}.user-option[_ngcontent-%COMP%] > .user-option__line.primary[_ngcontent-%COMP%]{font-size:1em}.user-option[_ngcontent-%COMP%] > .user-option__line.detail[_ngcontent-%COMP%]{font-size:.85em;opacity:.75}"] });
186
- (function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(UserSelectComponent, [{
185
+ (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(UserSelectComponent, [{
187
186
  type: Component,
188
187
  args: [{ selector: 'mage-user-select', providers: [
189
188
  {
@@ -192,27 +191,28 @@ UserSelectComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: UserSel
192
191
  useExisting: forwardRef(() => UserSelectComponent)
193
192
  }
194
193
  ], template: "<ng-select [items]=\"users\"\n [typeahead]=\"searchTerm$\"\n [virtualScroll]=\"true\"\n [loading]=\"loading\"\n [trackByFn]=\"trackByUserId\"\n appendTo=\"body\"\n placeholder=\"Choose a user\"\n bindLabel=\"displayName\"\n (open)=\"onOpen()\"\n (scroll)=\"onScroll($event)\"\n (scrollToEnd)=\"onScrollToEnd()\"\n >\n <ng-template ng-header-tmp>\n <small class=\"form-text text-muted\">{{totalCount}} matching users</small>\n </ng-template>\n <ng-template class=\"user-option\" ng-option-tmp let-user=\"item\" let-index=\"index\">\n <div class=\"user-option\">\n <p class=\"user-option__line primary\">{{user.displayName}} ({{user.username}})</p>\n <p class=\"user-option__line detail\">{{user.email || '[no email]'}}</p>\n <p class=\"user-option__line detail\">{{user.allPhones || '[no phone]'}}</p>\n </div>\n </ng-template>\n</ng-select>\n", styles: [".user-option{margin:.85em 0}.user-option>.user-option__line{margin:0 0 .6em;padding:0;line-height:1em;overflow:hidden;text-overflow:ellipsis}.user-option>.user-option__line.primary{font-size:1em}.user-option>.user-option__line.detail{font-size:.85em;opacity:.75}\n"] }]
195
- }], function () { return [{ type: UserReadService }]; }, { userSelect: [{
194
+ }], () => [{ type: UserReadService }], { userSelect: [{
196
195
  type: ViewChild,
197
196
  args: [NgSelectComponent, { static: true }]
198
197
  }] }); })();
198
+ (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(UserSelectComponent, { className: "UserSelectComponent", filePath: "user-select/user-select.component.ts", lineNumber: 25 }); })();
199
199
 
200
200
  class MageUserModule {
201
+ static { this.ɵfac = function MageUserModule_Factory(t) { return new (t || MageUserModule)(); }; }
202
+ static { this.ɵmod = /*@__PURE__*/ i0.ɵɵdefineNgModule({ type: MageUserModule }); }
203
+ static { this.ɵinj = /*@__PURE__*/ i0.ɵɵdefineInjector({ imports: [CommonModule,
204
+ FormsModule,
205
+ ReactiveFormsModule,
206
+ ScrollingModule,
207
+ MatAutocompleteModule,
208
+ MatDialogModule,
209
+ MatFormFieldModule,
210
+ MatInputModule,
211
+ MatListModule,
212
+ MatSelectModule,
213
+ NgSelectModule] }); }
201
214
  }
202
- MageUserModule.ɵfac = function MageUserModule_Factory(t) { return new (t || MageUserModule)(); };
203
- MageUserModule.ɵmod = /*@__PURE__*/ i0.ɵɵdefineNgModule({ type: MageUserModule });
204
- MageUserModule.ɵinj = /*@__PURE__*/ i0.ɵɵdefineInjector({ imports: [CommonModule,
205
- FormsModule,
206
- ReactiveFormsModule,
207
- ScrollingModule,
208
- MatAutocompleteModule,
209
- MatDialogModule,
210
- MatFormFieldModule,
211
- MatInputModule,
212
- MatListModule,
213
- MatSelectModule,
214
- NgSelectModule] });
215
- (function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(MageUserModule, [{
215
+ (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(MageUserModule, [{
216
216
  type: NgModule,
217
217
  args: [{
218
218
  imports: [
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ngageoint-mage.web-core-lib-user.mjs","sources":["../../../projects/core-lib/user/user-read.service.ts","../../../projects/core-lib/user/user-select/user-select.component.html","../../../projects/core-lib/user/user-select/user-select.component.ts","../../../projects/core-lib/user/user.module.ts","../../../projects/core-lib/user/ngageoint-mage.web-core-lib-user.ts"],"sourcesContent":["import { HttpClient } from '@angular/common/http'\nimport { InjectionToken, Injectable } from '@angular/core'\nimport { PageOf, PagingParameters } from '@ngageoint/mage.web-core-lib/paging'\nimport { Observable } from 'rxjs'\nimport { User } from './user.model'\n\nexport const USER_READ_BASE_URL = '/api/next-users'\n\ntype SearchQueryParams = {\n page_size: string,\n page: string,\n term?: string,\n total?: 'true' | 'false'\n}\n\n\n@Injectable({\n providedIn: 'root'\n})\nexport class UserReadService {\n\n constructor(private webClient: HttpClient) { }\n\n search(which: UserSearchParams): Observable<PageOf<UserSearchResult>> {\n const queryParams: SearchQueryParams = {\n page_size: String(which.pageSize),\n page: String(which.pageIndex),\n }\n if (typeof which.term === 'string') {\n queryParams.term = which.term\n }\n if (typeof which.includeTotalCount === 'boolean') {\n queryParams.total = which.includeTotalCount ? 'true' : 'false'\n }\n return this.webClient.get<PageOf<UserSearchResult>>(`${USER_READ_BASE_URL}/search`, {\n params: queryParams\n })\n }\n}\n\nexport interface UserSearchParams extends PagingParameters {\n term?: string | null | undefined\n}\n\nexport type UserSearchResult = Pick<User, 'id' | 'username' | 'displayName' | 'email' | 'active' | 'enabled'> & {\n /**\n * A reduction of all the phone numbers to a single string\n */\n allPhones?: string | null | undefined\n}\n\nexport const USER_READ_SERVICE = new InjectionToken<UserReadService>('UserReadService')","<ng-select [items]=\"users\"\n [typeahead]=\"searchTerm$\"\n [virtualScroll]=\"true\"\n [loading]=\"loading\"\n [trackByFn]=\"trackByUserId\"\n appendTo=\"body\"\n placeholder=\"Choose a user\"\n bindLabel=\"displayName\"\n (open)=\"onOpen()\"\n (scroll)=\"onScroll($event)\"\n (scrollToEnd)=\"onScrollToEnd()\"\n >\n <ng-template ng-header-tmp>\n <small class=\"form-text text-muted\">{{totalCount}} matching users</small>\n </ng-template>\n <ng-template class=\"user-option\" ng-option-tmp let-user=\"item\" let-index=\"index\">\n <div class=\"user-option\">\n <p class=\"user-option__line primary\">{{user.displayName}} ({{user.username}})</p>\n <p class=\"user-option__line detail\">{{user.email || '[no email]'}}</p>\n <p class=\"user-option__line detail\">{{user.allPhones || '[no phone]'}}</p>\n </div>\n </ng-template>\n</ng-select>\n","import { AfterViewInit, Component, Input, OnChanges, SimpleChanges, ViewChild, forwardRef, OnInit } from '@angular/core'\nimport { ControlValueAccessor, FormControl, NG_VALUE_ACCESSOR } from '@angular/forms'\nimport { NgSelectComponent } from '@ng-select/ng-select'\nimport { User } from '../user.model'\nimport { UserReadService, UserSearchParams, UserSearchResult } from '../user-read.service'\nimport { pageForItemIndex, itemRangeOfPage } from '@ngageoint/mage.web-core-lib/paging'\nimport { Subject, BehaviorSubject, SubscriptionLike, Unsubscribable } from 'rxjs'\nimport { debounceTime, distinctUntilChanged } from 'rxjs/operators'\nimport { X } from '@angular/cdk/keycodes'\n\n@Component({\n selector: 'mage-user-select',\n templateUrl: './user-select.component.html',\n styleUrls: [\n './user-select.component.scss'\n ],\n providers: [\n {\n provide: NG_VALUE_ACCESSOR,\n multi: true,\n useExisting: forwardRef(() => UserSelectComponent)\n }\n ]\n})\nexport class UserSelectComponent implements OnInit, OnChanges, AfterViewInit, ControlValueAccessor {\n\n readonly baseFindParams: Readonly<UserSearchParams> = Object.freeze({\n pageSize: 100,\n pageIndex: 0,\n term: null\n })\n readonly nextPageScrollThreshold = 15\n readonly searchTermDebounceTime = 500\n readonly trackByUserId: (x: User) => User['id'] = x => x.id\n get loading(): boolean {\n return !!this.currentFetch && !this.currentFetch.closed\n }\n\n users: UserSearchResult[] = []\n totalCount = 0\n searchTerm$ = new Subject<string | null>()\n currentSearchTerm: string | null = null\n @ViewChild(NgSelectComponent, { static: true })\n userSelect: NgSelectComponent\n\n private currentFetch: SubscriptionLike | null = null\n\n constructor(private userService: UserReadService) { }\n\n ngOnInit() {\n this.searchTerm$.pipe(\n distinctUntilChanged(),\n debounceTime(this.searchTermDebounceTime),\n )\n .subscribe(x => {\n this.currentSearchTerm = x\n this.users = []\n this.totalCount = 0\n if (this.currentFetch) {\n this.currentFetch.unsubscribe()\n this.currentFetch = null\n }\n this.fetchNextPage()\n })\n }\n\n ngOnChanges(changes: SimpleChanges) {\n }\n\n ngAfterViewInit() {\n }\n\n writeValue(x: User | null): void {\n this.userSelect.writeValue(x)\n }\n\n registerOnChange(fn: (...args: any[]) => any): void {\n this.userSelect.registerOnChange(fn)\n }\n\n registerOnTouched(fn: (...args: any[]) => any): void {\n this.userSelect.registerOnTouched(fn)\n }\n\n setDisabledState(isDisabled: boolean): void {\n this.userSelect.setDisabledState(isDisabled)\n }\n\n onOpen() {\n if (this.users.length === 0) {\n this.fetchNextPage()\n }\n }\n\n onScroll({ end }: { start: number, end: number }) {\n if (end < this.users.length - this.nextPageScrollThreshold || this.users.length === this.totalCount) {\n return\n }\n this.fetchNextPage()\n }\n\n onScrollToEnd() {\n\n }\n\n fetchNextPage() {\n if (this.currentFetch) {\n if (this.currentFetch.closed) {\n this.currentFetch = null\n }\n else {\n return\n }\n }\n const nextPage = pageForItemIndex(this.users.length, this.baseFindParams.pageSize)\n const findParams: UserSearchParams = {\n ...this.baseFindParams,\n pageIndex: nextPage\n }\n if (this.currentSearchTerm) {\n findParams.term = this.currentSearchTerm\n }\n this.currentFetch = this.userService.search(findParams).subscribe(page => {\n this.users = this.users.concat(page.items)\n if (typeof page.totalCount === 'number') {\n this.totalCount = page.totalCount\n }\n })\n }\n}","import { ScrollingModule } from '@angular/cdk/scrolling'\nimport { CommonModule } from '@angular/common'\nimport { NgModule } from '@angular/core'\nimport { FormsModule, ReactiveFormsModule } from '@angular/forms'\nimport { MatAutocompleteModule as MatAutocompleteModule } from '@angular/material/autocomplete'\nimport { MatDialogModule as MatDialogModule } from '@angular/material/dialog'\nimport { MatFormFieldModule as MatFormFieldModule } from '@angular/material/form-field'\nimport { MatInputModule as MatInputModule } from '@angular/material/input'\nimport { MatListModule as MatListModule } from '@angular/material/list'\nimport { MatSelectModule as MatSelectModule } from '@angular/material/select'\nimport { UserSelectComponent } from './user-select/user-select.component'\nimport { NgSelectModule } from '@ng-select/ng-select'\n\n@NgModule({\n imports: [\n CommonModule,\n FormsModule,\n ReactiveFormsModule,\n ScrollingModule,\n MatAutocompleteModule,\n MatDialogModule,\n MatFormFieldModule,\n MatInputModule,\n MatListModule,\n MatSelectModule,\n NgSelectModule,\n ],\n declarations: [\n UserSelectComponent\n ],\n exports: [\n UserSelectComponent\n ]\n})\nexport class MageUserModule {\n\n}","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":["i1.UserReadService"],"mappings":";;;;;;;;;;;;;;;;;;AAMO,MAAM,kBAAkB,GAAG;MAarB,eAAe,CAAA;AAE1B,IAAA,WAAA,CAAoB,SAAqB,EAAA;QAArB,IAAA,CAAA,SAAS,GAAT,SAAS;IAAgB;AAE7C,IAAA,MAAM,CAAC,KAAuB,EAAA;AAC5B,QAAA,MAAM,WAAW,GAAsB;AACrC,YAAA,SAAS,EAAE,MAAM,CAAC,KAAK,CAAC,QAAQ,CAAC;AACjC,YAAA,IAAI,EAAE,MAAM,CAAC,KAAK,CAAC,SAAS,CAAC;SAC9B;AACD,QAAA,IAAI,OAAO,KAAK,CAAC,IAAI,KAAK,QAAQ,EAAE;AAClC,YAAA,WAAW,CAAC,IAAI,GAAG,KAAK,CAAC,IAAI;QAC/B;AACA,QAAA,IAAI,OAAO,KAAK,CAAC,iBAAiB,KAAK,SAAS,EAAE;AAChD,YAAA,WAAW,CAAC,KAAK,GAAG,KAAK,CAAC,iBAAiB,GAAG,MAAM,GAAG,OAAO;QAChE;QACA,OAAO,IAAI,CAAC,SAAS,CAAC,GAAG,CAA2B,CAAA,EAAG,kBAAkB,CAAA,OAAA,CAAS,EAAE;AAClF,YAAA,MAAM,EAAE;AACT,SAAA,CAAC;IACJ;gFAlBW,eA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EAAA,CAbnB,YAAY;QACZ,WAAW;QACX,mBAAmB;QACnB,eAAe;QACf,qBAAqB;QACrB,eAAe;QACf,kBAAkB;QAClB,cAAc;QACd,aAAa;QACb,eAAe;AACf,QAAA,cAAc,aAMd,mBAAmB,CAAA,EAAA,CAAA,CAAA,CAAA,CAAA,GAAA;;AC/BvB;;AAEG;;;;"}
@@ -3,11 +3,11 @@ import { NgModule } from '@angular/core';
3
3
  import { CommonModule } from '@angular/common';
4
4
 
5
5
  class MageCoreLibModule {
6
+ static { this.ɵfac = function MageCoreLibModule_Factory(t) { return new (t || MageCoreLibModule)(); }; }
7
+ static { this.ɵmod = /*@__PURE__*/ i0.ɵɵdefineNgModule({ type: MageCoreLibModule }); }
8
+ static { this.ɵinj = /*@__PURE__*/ i0.ɵɵdefineInjector({ imports: [CommonModule] }); }
6
9
  }
7
- MageCoreLibModule.ɵfac = function MageCoreLibModule_Factory(t) { return new (t || MageCoreLibModule)(); };
8
- MageCoreLibModule.ɵmod = /*@__PURE__*/ i0.ɵɵdefineNgModule({ type: MageCoreLibModule });
9
- MageCoreLibModule.ɵinj = /*@__PURE__*/ i0.ɵɵdefineInjector({ imports: [CommonModule] });
10
- (function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(MageCoreLibModule, [{
10
+ (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(MageCoreLibModule, [{
11
11
  type: NgModule,
12
12
  args: [{
13
13
  declarations: [],
@@ -1 +1 @@
1
- {"version":3,"file":"ngageoint-mage.web-core-lib.mjs","sources":["../../../projects/core-lib/src/mage-core-lib.module.ts","../../../projects/core-lib/src/public-api.ts","../../../projects/core-lib/src/ngageoint-mage.web-core-lib.ts"],"sourcesContent":["import { NgModule } from '@angular/core';\nimport { CommonModule } from '@angular/common';\n\n\n\n@NgModule({\n declarations: [],\n imports: [\n CommonModule\n ]\n})\nexport class MageCoreLibModule { }\n","/*\n * Public API Surface of core-lib\n */\n\nexport * from './mage-core-lib.module'\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":[],"mappings":";;;;MAWa,iBAAiB,CAAA;;kFAAjB,iBAAiB,GAAA,CAAA,EAAA,CAAA;mEAAjB,iBAAiB,EAAA,CAAA,CAAA;uEAH1B,YAAY,CAAA,EAAA,CAAA,CAAA;;4EAGH,iBAAiB,EAAA,CAAA;kBAN7B,QAAQ;AAAC,YAAA,IAAA,EAAA,CAAA;AACR,oBAAA,YAAY,EAAE,EAAE;AAChB,oBAAA,OAAO,EAAE;wBACP,YAAY;AACb,qBAAA;iBACF,CAAA;;;AACY,CAAA,YAAA,EAAA,CAAA,OAAA,SAAA,KAAA,WAAA,IAAA,SAAA,KAAA,EAAA,CAAA,kBAAA,CAAA,iBAAiB,cAH1B,YAAY,CAAA,EAAA,CAAA,CAAA,EAAA,GAAA;;ACRhB;;AAEG;;ACFH;;AAEG;;;;"}
1
+ {"version":3,"file":"ngageoint-mage.web-core-lib.mjs","sources":["../../../projects/core-lib/src/mage-core-lib.module.ts","../../../projects/core-lib/src/public-api.ts","../../../projects/core-lib/src/ngageoint-mage.web-core-lib.ts"],"sourcesContent":["import { NgModule } from '@angular/core';\nimport { CommonModule } from '@angular/common';\n\n\n\n@NgModule({\n declarations: [],\n imports: [\n CommonModule\n ]\n})\nexport class MageCoreLibModule { }\n","/*\n * Public API Surface of core-lib\n */\n\nexport * from './mage-core-lib.module'\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":[],"mappings":";;;;MAWa,iBAAiB,CAAA;kFAAjB,iBAAiB,GAAA,CAAA,CAAA,CAAA,CAAA;mEAAjB,iBAAiB,EAAA,CAAA,CAAA;uEAH1B,YAAY,CAAA,EAAA,CAAA,CAAA;;iFAGH,iBAAiB,EAAA,CAAA;cAN7B,QAAQ;AAAC,QAAA,IAAA,EAAA,CAAA;AACR,gBAAA,YAAY,EAAE,EAAE;AAChB,gBAAA,OAAO,EAAE;oBACP;AACD;AACF,aAAA;;AACY,CAAA,YAAA,EAAA,CAAA,OAAA,SAAA,KAAA,WAAA,IAAA,SAAA,KAAA,EAAA,CAAA,kBAAA,CAAA,iBAAiB,cAH1B,YAAY,CAAA,EAAA,CAAA,CAAA,CAAA,CAAA,GAAA;;ACRhB;;AAEG;;ACFH;;AAEG;;;;"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ngageoint/mage.web-core-lib",
3
- "version": "6.6.1",
3
+ "version": "6.6.3",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "https://github.com/ngageoint/mage-server.git"
@@ -17,67 +17,51 @@
17
17
  },
18
18
  ".": {
19
19
  "types": "./index.d.ts",
20
- "esm2020": "./esm2020/ngageoint-mage.web-core-lib.mjs",
21
- "es2020": "./fesm2020/ngageoint-mage.web-core-lib.mjs",
22
- "es2015": "./fesm2015/ngageoint-mage.web-core-lib.mjs",
23
- "node": "./fesm2015/ngageoint-mage.web-core-lib.mjs",
24
- "default": "./fesm2020/ngageoint-mage.web-core-lib.mjs"
20
+ "esm2022": "./esm2022/ngageoint-mage.web-core-lib.mjs",
21
+ "esm": "./esm2022/ngageoint-mage.web-core-lib.mjs",
22
+ "default": "./fesm2022/ngageoint-mage.web-core-lib.mjs"
25
23
  },
26
24
  "./common": {
27
25
  "types": "./common/index.d.ts",
28
- "esm2020": "./esm2020/common/ngageoint-mage.web-core-lib-common.mjs",
29
- "es2020": "./fesm2020/ngageoint-mage.web-core-lib-common.mjs",
30
- "es2015": "./fesm2015/ngageoint-mage.web-core-lib-common.mjs",
31
- "node": "./fesm2015/ngageoint-mage.web-core-lib-common.mjs",
32
- "default": "./fesm2020/ngageoint-mage.web-core-lib-common.mjs"
26
+ "esm2022": "./esm2022/common/ngageoint-mage.web-core-lib-common.mjs",
27
+ "esm": "./esm2022/common/ngageoint-mage.web-core-lib-common.mjs",
28
+ "default": "./fesm2022/ngageoint-mage.web-core-lib-common.mjs"
33
29
  },
34
30
  "./event": {
35
31
  "types": "./event/index.d.ts",
36
- "esm2020": "./esm2020/event/ngageoint-mage.web-core-lib-event.mjs",
37
- "es2020": "./fesm2020/ngageoint-mage.web-core-lib-event.mjs",
38
- "es2015": "./fesm2015/ngageoint-mage.web-core-lib-event.mjs",
39
- "node": "./fesm2015/ngageoint-mage.web-core-lib-event.mjs",
40
- "default": "./fesm2020/ngageoint-mage.web-core-lib-event.mjs"
32
+ "esm2022": "./esm2022/event/ngageoint-mage.web-core-lib-event.mjs",
33
+ "esm": "./esm2022/event/ngageoint-mage.web-core-lib-event.mjs",
34
+ "default": "./fesm2022/ngageoint-mage.web-core-lib-event.mjs"
41
35
  },
42
36
  "./feed": {
43
37
  "types": "./feed/index.d.ts",
44
- "esm2020": "./esm2020/feed/ngageoint-mage.web-core-lib-feed.mjs",
45
- "es2020": "./fesm2020/ngageoint-mage.web-core-lib-feed.mjs",
46
- "es2015": "./fesm2015/ngageoint-mage.web-core-lib-feed.mjs",
47
- "node": "./fesm2015/ngageoint-mage.web-core-lib-feed.mjs",
48
- "default": "./fesm2020/ngageoint-mage.web-core-lib-feed.mjs"
38
+ "esm2022": "./esm2022/feed/ngageoint-mage.web-core-lib-feed.mjs",
39
+ "esm": "./esm2022/feed/ngageoint-mage.web-core-lib-feed.mjs",
40
+ "default": "./fesm2022/ngageoint-mage.web-core-lib-feed.mjs"
49
41
  },
50
42
  "./paging": {
51
43
  "types": "./paging/index.d.ts",
52
- "esm2020": "./esm2020/paging/ngageoint-mage.web-core-lib-paging.mjs",
53
- "es2020": "./fesm2020/ngageoint-mage.web-core-lib-paging.mjs",
54
- "es2015": "./fesm2015/ngageoint-mage.web-core-lib-paging.mjs",
55
- "node": "./fesm2015/ngageoint-mage.web-core-lib-paging.mjs",
56
- "default": "./fesm2020/ngageoint-mage.web-core-lib-paging.mjs"
44
+ "esm2022": "./esm2022/paging/ngageoint-mage.web-core-lib-paging.mjs",
45
+ "esm": "./esm2022/paging/ngageoint-mage.web-core-lib-paging.mjs",
46
+ "default": "./fesm2022/ngageoint-mage.web-core-lib-paging.mjs"
57
47
  },
58
48
  "./plugin": {
59
49
  "types": "./plugin/index.d.ts",
60
- "esm2020": "./esm2020/plugin/ngageoint-mage.web-core-lib-plugin.mjs",
61
- "es2020": "./fesm2020/ngageoint-mage.web-core-lib-plugin.mjs",
62
- "es2015": "./fesm2015/ngageoint-mage.web-core-lib-plugin.mjs",
63
- "node": "./fesm2015/ngageoint-mage.web-core-lib-plugin.mjs",
64
- "default": "./fesm2020/ngageoint-mage.web-core-lib-plugin.mjs"
50
+ "esm2022": "./esm2022/plugin/ngageoint-mage.web-core-lib-plugin.mjs",
51
+ "esm": "./esm2022/plugin/ngageoint-mage.web-core-lib-plugin.mjs",
52
+ "default": "./fesm2022/ngageoint-mage.web-core-lib-plugin.mjs"
65
53
  },
66
54
  "./static-icon": {
67
55
  "types": "./static-icon/index.d.ts",
68
- "esm2020": "./esm2020/static-icon/ngageoint-mage.web-core-lib-static-icon.mjs",
69
- "es2020": "./fesm2020/ngageoint-mage.web-core-lib-static-icon.mjs",
70
- "es2015": "./fesm2015/ngageoint-mage.web-core-lib-static-icon.mjs",
71
- "node": "./fesm2015/ngageoint-mage.web-core-lib-static-icon.mjs",
72
- "default": "./fesm2020/ngageoint-mage.web-core-lib-static-icon.mjs"
56
+ "esm2022": "./esm2022/static-icon/ngageoint-mage.web-core-lib-static-icon.mjs",
57
+ "esm": "./esm2022/static-icon/ngageoint-mage.web-core-lib-static-icon.mjs",
58
+ "default": "./fesm2022/ngageoint-mage.web-core-lib-static-icon.mjs"
73
59
  },
74
60
  "./user": {
75
61
  "types": "./user/index.d.ts",
76
- "esm2020": "./esm2020/user/ngageoint-mage.web-core-lib-user.mjs",
77
- "es2020": "./fesm2020/ngageoint-mage.web-core-lib-user.mjs",
78
- "es2015": "./fesm2015/ngageoint-mage.web-core-lib-user.mjs",
79
- "node": "./fesm2015/ngageoint-mage.web-core-lib-user.mjs",
80
- "default": "./fesm2020/ngageoint-mage.web-core-lib-user.mjs"
62
+ "esm2022": "./esm2022/user/ngageoint-mage.web-core-lib-user.mjs",
63
+ "esm": "./esm2022/user/ngageoint-mage.web-core-lib-user.mjs",
64
+ "default": "./fesm2022/ngageoint-mage.web-core-lib-user.mjs"
81
65
  }
82
66
  },
83
67
  "peerDependencies": {
@@ -103,11 +87,7 @@
103
87
  "rxjs": "7.8.2",
104
88
  "tslib": "2.8.1"
105
89
  },
106
- "module": "fesm2015/ngageoint-mage.web-core-lib.mjs",
107
- "es2020": "fesm2020/ngageoint-mage.web-core-lib.mjs",
108
- "esm2020": "esm2020/ngageoint-mage.web-core-lib.mjs",
109
- "fesm2020": "fesm2020/ngageoint-mage.web-core-lib.mjs",
110
- "fesm2015": "fesm2015/ngageoint-mage.web-core-lib.mjs",
90
+ "module": "fesm2022/ngageoint-mage.web-core-lib.mjs",
111
91
  "typings": "index.d.ts",
112
92
  "sideEffects": false,
113
93
  "scripts": {
@@ -27,6 +27,6 @@ export declare class StaticIconFormFieldComponent implements OnChanges, OnDestro
27
27
  validate(control: AbstractControl): ValidationErrors;
28
28
  private resolveIconRef;
29
29
  static ɵfac: i0.ɵɵFactoryDeclaration<StaticIconFormFieldComponent, never>;
30
- static ɵcmp: i0.ɵɵComponentDeclaration<StaticIconFormFieldComponent, "mage-static-icon-form-field", never, {}, {}, never, never, false>;
30
+ static ɵcmp: i0.ɵɵComponentDeclaration<StaticIconFormFieldComponent, "mage-static-icon-form-field", never, {}, {}, never, never, false, never>;
31
31
  }
32
32
  //# sourceMappingURL=static-icon-form-field.component.d.ts.map
@@ -8,6 +8,6 @@ export declare class StaticIconImgComponent implements OnInit, OnChanges {
8
8
  ngOnInit(): void;
9
9
  ngOnChanges(changes: SimpleChanges): void;
10
10
  static ɵfac: i0.ɵɵFactoryDeclaration<StaticIconImgComponent, never>;
11
- static ɵcmp: i0.ɵɵComponentDeclaration<StaticIconImgComponent, "mage-static-icon-img", never, { "iconRef": "iconRef"; }, {}, never, never, false>;
11
+ static ɵcmp: i0.ɵɵComponentDeclaration<StaticIconImgComponent, "mage-static-icon-img", never, { "iconRef": { "alias": "iconRef"; "required": false; }; }, {}, never, never, false, never>;
12
12
  }
13
13
  //# sourceMappingURL=static-icon-img.component.d.ts.map
@@ -17,6 +17,6 @@ export declare class StaticIconSelectComponent implements OnInit {
17
17
  ngOnInit(): void;
18
18
  onBrowseForUploadIcon(): void;
19
19
  static ɵfac: i0.ɵɵFactoryDeclaration<StaticIconSelectComponent, never>;
20
- static ɵcmp: i0.ɵɵComponentDeclaration<StaticIconSelectComponent, "static-icon-select", never, {}, {}, never, never, false>;
20
+ static ɵcmp: i0.ɵɵComponentDeclaration<StaticIconSelectComponent, "static-icon-select", never, {}, {}, never, never, false, never>;
21
21
  }
22
22
  //# sourceMappingURL=static-icon-select.component.d.ts.map
@@ -16,5 +16,5 @@ export interface SourceUrlStaticIconReference {
16
16
  id?: never;
17
17
  }
18
18
  export declare const contentPathOfIcon: (icon?: StaticIcon | RegisteredStaticIconReference | string | null | undefined) => string | undefined;
19
- export declare type StaticIconReference = RegisteredStaticIconReference | SourceUrlStaticIconReference;
19
+ export type StaticIconReference = RegisteredStaticIconReference | SourceUrlStaticIconReference;
20
20
  //# sourceMappingURL=static-icon.model.d.ts.map