@ngx-stoui/core 19.0.2 → 20.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,7 +1,5 @@
1
1
  import * as i0 from '@angular/core';
2
- import { EventEmitter, HostListener, Output, Input, Directive, ContentChildren, inject, ElementRef, HostBinding, NgModule, Pipe } from '@angular/core';
3
- import '@angular/forms';
4
- import '@angular/material/datepicker';
2
+ import { input, output, HostListener, Directive, ContentChildren, inject, ElementRef, HostBinding, Input, NgModule, Pipe } from '@angular/core';
5
3
  import { MatInput } from '@angular/material/input';
6
4
  import { Subject, fromEvent } from 'rxjs';
7
5
  import { takeUntil, switchMap, take } from 'rxjs/operators';
@@ -154,23 +152,28 @@ var Key;
154
152
  */
155
153
  class QuickKeysDirective {
156
154
  constructor() {
155
+ this.quickKeys = input(...(ngDevMode ? [undefined, { debugName: "quickKeys" }] : []));
156
+ /**
157
+ * Optional formGroup input, when used in combination with a reactive form
158
+ */
159
+ this.formGroup = input(...(ngDevMode ? [undefined, { debugName: "formGroup" }] : []));
157
160
  /**
158
161
  * Emits when ctrl + enter is clicked in combination
159
162
  * <form (quickSubmit)="save()">
160
163
  */
161
- this.quickSubmit = new EventEmitter();
164
+ this.quickSubmit = output();
162
165
  /**
163
166
  * Emits when escape is clicked
164
167
  * <form (quickCancel)="cancel()">
165
168
  */
166
- this.quickCancel = new EventEmitter();
169
+ this.quickCancel = output();
167
170
  }
168
171
  /**
169
172
  * Listens on the host element for any keyup events
170
173
  * @param e
171
174
  */
172
175
  onKeyUp(e) {
173
- if (this.formGroup) {
176
+ if (this.formGroup()) {
174
177
  this.handleFormKeys(e);
175
178
  }
176
179
  this.handleGenericKeydown(e);
@@ -183,9 +186,11 @@ class QuickKeysDirective {
183
186
  handleGenericKeydown(e) {
184
187
  // Shortcuts that are useful outside of forms
185
188
  if (e.keyCode === Key.Escape) {
189
+ // TODO: The 'emit' function requires a mandatory void argument
186
190
  this.quickCancel.emit();
187
191
  }
188
- if (!this.formGroup && e.keyCode === Key.Enter && e.ctrlKey) {
192
+ if (!this.formGroup() && e.keyCode === Key.Enter && e.ctrlKey) {
193
+ // TODO: The 'emit' function requires a mandatory void argument
189
194
  this.quickSubmit.emit();
190
195
  }
191
196
  }
@@ -194,31 +199,24 @@ class QuickKeysDirective {
194
199
  * @param e
195
200
  */
196
201
  handleFormKeys(e) {
197
- if (this.formGroup.pristine) {
202
+ if (this.formGroup()?.pristine) {
198
203
  return;
199
204
  }
200
205
  if (e.keyCode === Key.Enter && e.ctrlKey) {
206
+ // TODO: The 'emit' function requires a mandatory void argument
201
207
  this.quickSubmit.emit();
202
208
  }
203
209
  }
204
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.0.7", ngImport: i0, type: QuickKeysDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
205
- static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "19.0.7", type: QuickKeysDirective, isStandalone: true, selector: "[stoQuickKeys]", inputs: { quickKeys: "quickKeys", formGroup: "formGroup" }, outputs: { quickSubmit: "quickSubmit", quickCancel: "quickCancel" }, host: { listeners: { "keyup": "onKeyUp($event)" } }, ngImport: i0 }); }
210
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.2.1", ngImport: i0, type: QuickKeysDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
211
+ static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "20.2.1", type: QuickKeysDirective, isStandalone: true, selector: "[stoQuickKeys]", inputs: { quickKeys: { classPropertyName: "quickKeys", publicName: "quickKeys", isSignal: true, isRequired: false, transformFunction: null }, formGroup: { classPropertyName: "formGroup", publicName: "formGroup", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { quickSubmit: "quickSubmit", quickCancel: "quickCancel" }, host: { listeners: { "keyup": "onKeyUp($event)" } }, ngImport: i0 }); }
206
212
  }
207
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.7", ngImport: i0, type: QuickKeysDirective, decorators: [{
213
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.2.1", ngImport: i0, type: QuickKeysDirective, decorators: [{
208
214
  type: Directive,
209
215
  args: [{
210
216
  selector: '[stoQuickKeys]',
211
- standalone: true
217
+ standalone: true,
212
218
  }]
213
- }], propDecorators: { quickKeys: [{
214
- type: Input
215
- }], formGroup: [{
216
- type: Input
217
- }], quickSubmit: [{
218
- type: Output
219
- }], quickCancel: [{
220
- type: Output
221
- }], onKeyUp: [{
219
+ }], propDecorators: { onKeyUp: [{
222
220
  type: HostListener,
223
221
  args: ['keyup', ['$event']]
224
222
  }] } });
@@ -231,33 +229,33 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.7", ngImpor
231
229
  */
232
230
  class DateFormFieldClickDirective {
233
231
  constructor() {
232
+ this.stoDateFormFieldClick = input.required(...(ngDevMode ? [{ debugName: "stoDateFormFieldClick" }] : []));
234
233
  this.destroy$ = new Subject();
235
234
  }
236
235
  clickEvent() {
237
- this.stoDateFormFieldClick.open();
236
+ this.stoDateFormFieldClick().open();
238
237
  }
239
238
  ngOnInit() {
240
- this.stoDateFormFieldClick.closedStream
241
- .pipe(takeUntil(this.destroy$)).subscribe(() => this.inputs.first.focus());
239
+ this.stoDateFormFieldClick()
240
+ .closedStream.pipe(takeUntil(this.destroy$))
241
+ .subscribe(() => this.inputs.first.focus());
242
242
  }
243
243
  ngOnDestroy() {
244
244
  this.destroy$.next(true);
245
245
  this.destroy$.complete();
246
246
  }
247
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.0.7", ngImport: i0, type: DateFormFieldClickDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
248
- static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "19.0.7", type: DateFormFieldClickDirective, isStandalone: true, selector: "[stoDateFormFieldClick]", inputs: { stoDateFormFieldClick: "stoDateFormFieldClick" }, host: { listeners: { "click": "clickEvent()" } }, queries: [{ propertyName: "inputs", predicate: MatInput }], ngImport: i0 }); }
247
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.2.1", ngImport: i0, type: DateFormFieldClickDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
248
+ static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "20.2.1", type: DateFormFieldClickDirective, isStandalone: true, selector: "[stoDateFormFieldClick]", inputs: { stoDateFormFieldClick: { classPropertyName: "stoDateFormFieldClick", publicName: "stoDateFormFieldClick", isSignal: true, isRequired: true, transformFunction: null } }, host: { listeners: { "click": "clickEvent()" } }, queries: [{ propertyName: "inputs", predicate: MatInput }], ngImport: i0 }); }
249
249
  }
250
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.7", ngImport: i0, type: DateFormFieldClickDirective, decorators: [{
250
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.2.1", ngImport: i0, type: DateFormFieldClickDirective, decorators: [{
251
251
  type: Directive,
252
252
  args: [{
253
253
  selector: '[stoDateFormFieldClick]',
254
- standalone: true
254
+ standalone: true,
255
255
  }]
256
256
  }], propDecorators: { inputs: [{
257
257
  type: ContentChildren,
258
258
  args: [MatInput]
259
- }], stoDateFormFieldClick: [{
260
- type: Input
261
259
  }], clickEvent: [{
262
260
  type: HostListener,
263
261
  args: ['click']
@@ -280,10 +278,10 @@ class StoSelectTextOnFocusDirective {
280
278
  this._el.select();
281
279
  }
282
280
  }
283
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.0.7", ngImport: i0, type: StoSelectTextOnFocusDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
284
- static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "19.0.7", type: StoSelectTextOnFocusDirective, isStandalone: true, selector: "[stoSelectTextOnFocus]", host: { listeners: { "focus": "onFocus()", "dblclick": "onFocus()" } }, ngImport: i0 }); }
281
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.2.1", ngImport: i0, type: StoSelectTextOnFocusDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
282
+ static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "20.2.1", type: StoSelectTextOnFocusDirective, isStandalone: true, selector: "[stoSelectTextOnFocus]", host: { listeners: { "focus": "onFocus()", "dblclick": "onFocus()" } }, ngImport: i0 }); }
285
283
  }
286
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.7", ngImport: i0, type: StoSelectTextOnFocusDirective, decorators: [{
284
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.2.1", ngImport: i0, type: StoSelectTextOnFocusDirective, decorators: [{
287
285
  type: Directive,
288
286
  args: [{
289
287
  selector: '[stoSelectTextOnFocus]',
@@ -312,10 +310,10 @@ class StoGridSpacerDirective {
312
310
  constructor() {
313
311
  this.useClass = true;
314
312
  }
315
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.0.7", ngImport: i0, type: StoGridSpacerDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
316
- static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "19.0.7", type: StoGridSpacerDirective, isStandalone: true, selector: "[stoGridSpacer]", host: { properties: { "class.sto-f-grid__col": "this.useClass", "class.sto-f-grid__col--spacer": "this.useClass" } }, ngImport: i0 }); }
313
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.2.1", ngImport: i0, type: StoGridSpacerDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
314
+ static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "20.2.1", type: StoGridSpacerDirective, isStandalone: true, selector: "[stoGridSpacer]", host: { properties: { "class.sto-f-grid__col": "this.useClass", "class.sto-f-grid__col--spacer": "this.useClass" } }, ngImport: i0 }); }
317
315
  }
318
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.7", ngImport: i0, type: StoGridSpacerDirective, decorators: [{
316
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.2.1", ngImport: i0, type: StoGridSpacerDirective, decorators: [{
319
317
  type: Directive,
320
318
  args: [{
321
319
  selector: '[stoGridSpacer]',
@@ -332,10 +330,10 @@ class StoGridColumnDirective {
332
330
  constructor() {
333
331
  this.useClass = true;
334
332
  }
335
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.0.7", ngImport: i0, type: StoGridColumnDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
336
- static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "19.0.7", type: StoGridColumnDirective, isStandalone: true, selector: "[stoGridColumn]", inputs: { stoGridColumnDouble: "stoGridColumnDouble" }, host: { properties: { "class.sto-f-grid__col": "this.useClass", "class.sto-f-grid__col--2": "this.stoGridColumnDouble" } }, ngImport: i0 }); }
333
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.2.1", ngImport: i0, type: StoGridColumnDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
334
+ static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "20.2.1", type: StoGridColumnDirective, isStandalone: true, selector: "[stoGridColumn]", inputs: { stoGridColumnDouble: "stoGridColumnDouble" }, host: { properties: { "class.sto-f-grid__col": "this.useClass", "class.sto-f-grid__col--2": "this.stoGridColumnDouble" } }, ngImport: i0 }); }
337
335
  }
338
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.7", ngImport: i0, type: StoGridColumnDirective, decorators: [{
336
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.2.1", ngImport: i0, type: StoGridColumnDirective, decorators: [{
339
337
  type: Directive,
340
338
  args: [{
341
339
  selector: '[stoGridColumn]',
@@ -353,9 +351,16 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.7", ngImpor
353
351
  class StoGridDirective {
354
352
  constructor() {
355
353
  this.elRef = inject(ElementRef);
354
+ // TODO: Skipped for migration because:
355
+ // This input is used in combination with `@HostBinding` and migrating would
356
+ // break.
356
357
  this.maxWidth = 1000;
358
+ // TODO: Skipped for migration because:
359
+ // This input is used in combination with `@HostBinding` and migrating would
360
+ // break.
357
361
  this.minWidth = 250;
358
362
  this.baseClass = true;
363
+ this.breakpoints = input(...(ngDevMode ? [undefined, { debugName: "breakpoints" }] : []));
359
364
  }
360
365
  ngAfterViewInit() {
361
366
  const el = this.elRef.nativeElement;
@@ -363,7 +368,7 @@ class StoGridDirective {
363
368
  for (const entry of entries) {
364
369
  const cr = entry.contentRect;
365
370
  const { width } = cr;
366
- const breakpoints = this.breakpoints || { 2: 400, 4: 800 };
371
+ const breakpoints = this.breakpoints() || { 2: 400, 4: 800 };
367
372
  const gridType = getClass(width, breakpoints[2], breakpoints[4]);
368
373
  if (!el.classList.contains(gridType)) {
369
374
  el.classList.remove(...ALL_GRIDS);
@@ -378,10 +383,10 @@ class StoGridDirective {
378
383
  this.observer.disconnect();
379
384
  }
380
385
  }
381
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.0.7", ngImport: i0, type: StoGridDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
382
- static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "19.0.7", type: StoGridDirective, isStandalone: true, selector: "[stoGrid]", inputs: { maxWidth: "maxWidth", minWidth: "minWidth", breakpoints: "breakpoints" }, host: { properties: { "style.max-width.px": "this.maxWidth", "style.min-width.px": "this.minWidth", "class.sto-f-grid": "this.baseClass" } }, queries: [{ propertyName: "columns", predicate: StoGridColumnDirective, read: ElementRef }], exportAs: ["stoGrid"], ngImport: i0 }); }
386
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.2.1", ngImport: i0, type: StoGridDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
387
+ static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "20.2.1", type: StoGridDirective, isStandalone: true, selector: "[stoGrid]", inputs: { maxWidth: { classPropertyName: "maxWidth", publicName: "maxWidth", isSignal: false, isRequired: false, transformFunction: null }, minWidth: { classPropertyName: "minWidth", publicName: "minWidth", isSignal: false, isRequired: false, transformFunction: null }, breakpoints: { classPropertyName: "breakpoints", publicName: "breakpoints", isSignal: true, isRequired: false, transformFunction: null } }, host: { properties: { "style.max-width.px": "this.maxWidth", "style.min-width.px": "this.minWidth", "class.sto-f-grid": "this.baseClass" } }, queries: [{ propertyName: "columns", predicate: StoGridColumnDirective, read: ElementRef }], exportAs: ["stoGrid"], ngImport: i0 }); }
383
388
  }
384
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.7", ngImport: i0, type: StoGridDirective, decorators: [{
389
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.2.1", ngImport: i0, type: StoGridDirective, decorators: [{
385
390
  type: Directive,
386
391
  args: [{
387
392
  selector: '[stoGrid]',
@@ -404,8 +409,6 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.7", ngImpor
404
409
  }], columns: [{
405
410
  type: ContentChildren,
406
411
  args: [StoGridColumnDirective, { read: ElementRef }]
407
- }], breakpoints: [{
408
- type: Input
409
412
  }] } });
410
413
 
411
414
  class MenuOverlayDirective {
@@ -432,10 +435,10 @@ class MenuOverlayDirective {
432
435
  element.style.height = '1px';
433
436
  element.style.width = '1px';
434
437
  }
435
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.0.7", ngImport: i0, type: MenuOverlayDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
436
- static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "19.0.7", type: MenuOverlayDirective, isStandalone: true, selector: "[stoMenuOverlay]", host: { properties: { "style.left.px": "this.left", "style.top.px": "this.top" } }, exportAs: ["stoMenuOverlay"], ngImport: i0 }); }
438
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.2.1", ngImport: i0, type: MenuOverlayDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
439
+ static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "20.2.1", type: MenuOverlayDirective, isStandalone: true, selector: "[stoMenuOverlay]", host: { properties: { "style.left.px": "this.left", "style.top.px": "this.top" } }, exportAs: ["stoMenuOverlay"], ngImport: i0 }); }
437
440
  }
438
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.7", ngImport: i0, type: MenuOverlayDirective, decorators: [{
441
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.2.1", ngImport: i0, type: MenuOverlayDirective, decorators: [{
439
442
  type: Directive,
440
443
  args: [{
441
444
  selector: '[stoMenuOverlay]',
@@ -451,40 +454,39 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.7", ngImpor
451
454
  }] } });
452
455
 
453
456
  class ContextMenuDirective {
457
+ constructor() {
458
+ this.menuTrigger = input.required(...(ngDevMode ? [{ debugName: "menuTrigger" }] : []));
459
+ this.overlayDirective = input.required(...(ngDevMode ? [{ debugName: "overlayDirective" }] : []));
460
+ this.menuContext = input(...(ngDevMode ? [undefined, { debugName: "menuContext" }] : []));
461
+ }
454
462
  contextMenu(event) {
455
463
  event.preventDefault();
456
- if (this.menuTrigger.menuOpen) {
457
- this.menuTrigger.closeMenu();
464
+ if (this.menuTrigger().menuOpen) {
465
+ this.menuTrigger().closeMenu();
458
466
  }
459
- this.overlayDirective.updatePosition(event);
467
+ this.overlayDirective().updatePosition(event);
460
468
  setTimeout(() => {
461
- this.menuTrigger.menuData = this.menuContext;
462
- this.menuTrigger.openMenu();
469
+ this.menuTrigger().menuData = this.menuContext();
470
+ this.menuTrigger().openMenu();
463
471
  }, 150);
464
472
  }
465
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.0.7", ngImport: i0, type: ContextMenuDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
466
- static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "19.0.7", type: ContextMenuDirective, isStandalone: true, selector: "[stoContextMenu]", inputs: { menuTrigger: "menuTrigger", overlayDirective: "overlayDirective", menuContext: "menuContext" }, host: { listeners: { "contextmenu": "contextMenu($event)" } }, ngImport: i0 }); }
473
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.2.1", ngImport: i0, type: ContextMenuDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
474
+ static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "20.2.1", type: ContextMenuDirective, isStandalone: true, selector: "[stoContextMenu]", inputs: { menuTrigger: { classPropertyName: "menuTrigger", publicName: "menuTrigger", isSignal: true, isRequired: true, transformFunction: null }, overlayDirective: { classPropertyName: "overlayDirective", publicName: "overlayDirective", isSignal: true, isRequired: true, transformFunction: null }, menuContext: { classPropertyName: "menuContext", publicName: "menuContext", isSignal: true, isRequired: false, transformFunction: null } }, host: { listeners: { "contextmenu": "contextMenu($event)" } }, ngImport: i0 }); }
467
475
  }
468
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.7", ngImport: i0, type: ContextMenuDirective, decorators: [{
476
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.2.1", ngImport: i0, type: ContextMenuDirective, decorators: [{
469
477
  type: Directive,
470
478
  args: [{
471
479
  selector: '[stoContextMenu]',
472
- standalone: true
480
+ standalone: true,
473
481
  }]
474
- }], propDecorators: { menuTrigger: [{
475
- type: Input
476
- }], overlayDirective: [{
477
- type: Input
478
- }], menuContext: [{
479
- type: Input
480
- }], contextMenu: [{
482
+ }], propDecorators: { contextMenu: [{
481
483
  type: HostListener,
482
484
  args: ['contextmenu', ['$event']]
483
485
  }] } });
484
486
 
485
487
  class StoDirectivesModule {
486
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.0.7", ngImport: i0, type: StoDirectivesModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
487
- static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "19.0.7", ngImport: i0, type: StoDirectivesModule, imports: [QuickKeysDirective,
488
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.2.1", ngImport: i0, type: StoDirectivesModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
489
+ static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "20.2.1", ngImport: i0, type: StoDirectivesModule, imports: [QuickKeysDirective,
488
490
  DateFormFieldClickDirective,
489
491
  StoSelectTextOnFocusDirective,
490
492
  StoGridDirective,
@@ -499,9 +501,9 @@ class StoDirectivesModule {
499
501
  StoGridSpacerDirective,
500
502
  MenuOverlayDirective,
501
503
  ContextMenuDirective] }); }
502
- static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "19.0.7", ngImport: i0, type: StoDirectivesModule }); }
504
+ static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "20.2.1", ngImport: i0, type: StoDirectivesModule }); }
503
505
  }
504
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.7", ngImport: i0, type: StoDirectivesModule, decorators: [{
506
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.2.1", ngImport: i0, type: StoDirectivesModule, decorators: [{
505
507
  type: NgModule,
506
508
  args: [{
507
509
  imports: [
@@ -593,10 +595,10 @@ class NumberFormatPipe {
593
595
  }
594
596
  return returnValue.toFixed(precision);
595
597
  }
596
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.0.7", ngImport: i0, type: NumberFormatPipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe }); }
597
- static { this.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "19.0.7", ngImport: i0, type: NumberFormatPipe, isStandalone: true, name: "numberFormat" }); }
598
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.2.1", ngImport: i0, type: NumberFormatPipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe }); }
599
+ static { this.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "20.2.1", ngImport: i0, type: NumberFormatPipe, isStandalone: true, name: "numberFormat" }); }
598
600
  }
599
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.7", ngImport: i0, type: NumberFormatPipe, decorators: [{
601
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.2.1", ngImport: i0, type: NumberFormatPipe, decorators: [{
600
602
  type: Pipe,
601
603
  args: [{
602
604
  name: 'numberFormat',
@@ -627,10 +629,10 @@ class CurrencyFormatPipe {
627
629
  const intl = new Intl.NumberFormat('en-US', { maximumFractionDigits }).format(value);
628
630
  return intl.replace(/,/g, ' ').replace('.', ',') + ` ${unit}`;
629
631
  }
630
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.0.7", ngImport: i0, type: CurrencyFormatPipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe }); }
631
- static { this.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "19.0.7", ngImport: i0, type: CurrencyFormatPipe, isStandalone: true, name: "currencyFormat" }); }
632
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.2.1", ngImport: i0, type: CurrencyFormatPipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe }); }
633
+ static { this.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "20.2.1", ngImport: i0, type: CurrencyFormatPipe, isStandalone: true, name: "currencyFormat" }); }
632
634
  }
633
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.7", ngImport: i0, type: CurrencyFormatPipe, decorators: [{
635
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.2.1", ngImport: i0, type: CurrencyFormatPipe, decorators: [{
634
636
  type: Pipe,
635
637
  args: [{
636
638
  name: 'currencyFormat',
@@ -653,10 +655,10 @@ class KeysPipe {
653
655
  }
654
656
  return [];
655
657
  }
656
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.0.7", ngImport: i0, type: KeysPipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe }); }
657
- static { this.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "19.0.7", ngImport: i0, type: KeysPipe, isStandalone: true, name: "keys" }); }
658
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.2.1", ngImport: i0, type: KeysPipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe }); }
659
+ static { this.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "20.2.1", ngImport: i0, type: KeysPipe, isStandalone: true, name: "keys" }); }
658
660
  }
659
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.7", ngImport: i0, type: KeysPipe, decorators: [{
661
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.2.1", ngImport: i0, type: KeysPipe, decorators: [{
660
662
  type: Pipe,
661
663
  args: [{
662
664
  name: 'keys',
@@ -704,10 +706,10 @@ class DateFormatPipe {
704
706
  return format(value, 'MMM d, yyyy');
705
707
  }
706
708
  }
707
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.0.7", ngImport: i0, type: DateFormatPipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe }); }
708
- static { this.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "19.0.7", ngImport: i0, type: DateFormatPipe, isStandalone: true, name: "formatDate" }); }
709
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.2.1", ngImport: i0, type: DateFormatPipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe }); }
710
+ static { this.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "20.2.1", ngImport: i0, type: DateFormatPipe, isStandalone: true, name: "formatDate" }); }
709
711
  }
710
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.7", ngImport: i0, type: DateFormatPipe, decorators: [{
712
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.2.1", ngImport: i0, type: DateFormatPipe, decorators: [{
711
713
  type: Pipe,
712
714
  args: [{
713
715
  name: 'formatDate',
@@ -731,10 +733,10 @@ class GetUnit {
731
733
  }
732
734
  return value;
733
735
  }
734
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.0.7", ngImport: i0, type: GetUnit, deps: [], target: i0.ɵɵFactoryTarget.Pipe }); }
735
- static { this.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "19.0.7", ngImport: i0, type: GetUnit, isStandalone: true, name: "getUnit" }); }
736
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.2.1", ngImport: i0, type: GetUnit, deps: [], target: i0.ɵɵFactoryTarget.Pipe }); }
737
+ static { this.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "20.2.1", ngImport: i0, type: GetUnit, isStandalone: true, name: "getUnit" }); }
736
738
  }
737
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.7", ngImport: i0, type: GetUnit, decorators: [{
739
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.2.1", ngImport: i0, type: GetUnit, decorators: [{
738
740
  type: Pipe,
739
741
  args: [{ name: 'getUnit', standalone: true }]
740
742
  }] });
@@ -748,10 +750,10 @@ class ExcludeUnit {
748
750
  }
749
751
  return value;
750
752
  }
751
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.0.7", ngImport: i0, type: ExcludeUnit, deps: [], target: i0.ɵɵFactoryTarget.Pipe }); }
752
- static { this.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "19.0.7", ngImport: i0, type: ExcludeUnit, isStandalone: true, name: "excludeUnit" }); }
753
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.2.1", ngImport: i0, type: ExcludeUnit, deps: [], target: i0.ɵɵFactoryTarget.Pipe }); }
754
+ static { this.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "20.2.1", ngImport: i0, type: ExcludeUnit, isStandalone: true, name: "excludeUnit" }); }
753
755
  }
754
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.7", ngImport: i0, type: ExcludeUnit, decorators: [{
756
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.2.1", ngImport: i0, type: ExcludeUnit, decorators: [{
755
757
  type: Pipe,
756
758
  args: [{ name: 'excludeUnit', standalone: true }]
757
759
  }] });
@@ -767,17 +769,17 @@ class YesNoPipe {
767
769
  }
768
770
  return valueStr;
769
771
  }
770
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.0.7", ngImport: i0, type: YesNoPipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe }); }
771
- static { this.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "19.0.7", ngImport: i0, type: YesNoPipe, isStandalone: true, name: "yesNo" }); }
772
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.2.1", ngImport: i0, type: YesNoPipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe }); }
773
+ static { this.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "20.2.1", ngImport: i0, type: YesNoPipe, isStandalone: true, name: "yesNo" }); }
772
774
  }
773
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.7", ngImport: i0, type: YesNoPipe, decorators: [{
775
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.2.1", ngImport: i0, type: YesNoPipe, decorators: [{
774
776
  type: Pipe,
775
777
  args: [{ name: 'yesNo', standalone: true }]
776
778
  }] });
777
779
 
778
780
  class StoPipesModule {
779
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.0.7", ngImport: i0, type: StoPipesModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
780
- static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "19.0.7", ngImport: i0, type: StoPipesModule, imports: [DateFormatPipe,
781
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.2.1", ngImport: i0, type: StoPipesModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
782
+ static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "20.2.1", ngImport: i0, type: StoPipesModule, imports: [DateFormatPipe,
781
783
  KeysPipe,
782
784
  NumberFormatPipe,
783
785
  CurrencyFormatPipe,
@@ -790,9 +792,9 @@ class StoPipesModule {
790
792
  GetUnit,
791
793
  ExcludeUnit,
792
794
  YesNoPipe] }); }
793
- static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "19.0.7", ngImport: i0, type: StoPipesModule }); }
795
+ static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "20.2.1", ngImport: i0, type: StoPipesModule }); }
794
796
  }
795
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.7", ngImport: i0, type: StoPipesModule, decorators: [{
797
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.2.1", ngImport: i0, type: StoPipesModule, decorators: [{
796
798
  type: NgModule,
797
799
  args: [{
798
800
  imports: [