@magic-xpa/angular 4.1300.0-dev4130.282 → 4.1300.0-dev4130.284

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,6 +1,6 @@
1
1
  import { isNullOrUndefined, NString, List, isUndefined, StringBuilder, RefParam } from '@magic-xpa/mscorelib';
2
2
  import * as i0 from '@angular/core';
3
- import { Injectable, inject, Injector, createNgModule, ViewContainerRef, ChangeDetectionStrategy, Component, Directive, EventEmitter, HostListener, Output, Input, ViewChild, input, output, ElementRef, viewChild, ChangeDetectorRef, InjectionToken, DestroyRef, Renderer2, Pipe, effect, forwardRef, NgModule } from '@angular/core';
3
+ import { Injectable, inject, Injector, createNgModule, ViewContainerRef, ChangeDetectionStrategy, Component, Directive, EventEmitter, HostListener, Output, Input, ViewChild, ElementRef, input, output, viewChild, ChangeDetectorRef, InjectionToken, DestroyRef, Renderer2, Pipe, effect, forwardRef, NgModule } from '@angular/core';
4
4
  import * as i1 from '@angular/common';
5
5
  import { DatePipe, CommonModule, formatDate } from '@angular/common';
6
6
  import { ActivatedRoute, Router, NavigationEnd, RouterModule } from '@angular/router';
@@ -1577,18 +1577,16 @@ class BaseMagicConfirmComponent {
1577
1577
  /**
1578
1578
  * title of the component
1579
1579
  */
1580
- title = input(/* @ts-ignore */
1581
- ...(ngDevMode ? [undefined, { debugName: "title" }] : /* istanbul ignore next */ []));
1580
+ title;
1582
1581
  /**
1583
1582
  * message of the component
1584
1583
  */
1585
- message = input(/* @ts-ignore */
1586
- ...(ngDevMode ? [undefined, { debugName: "message" }] : /* istanbul ignore next */ []));
1584
+ message;
1587
1585
  /**
1588
1586
  * onClose Event - to be raised when the component is closed
1589
1587
  * should pass true when OK is pressed and false when cancel is pressed
1590
1588
  */
1591
- onClose = output();
1589
+ onClose = new EventEmitter();
1592
1590
  /**
1593
1591
  * raises close Event
1594
1592
  * @param result true when OK is pressed and false when cancel is pressed
@@ -1598,12 +1596,18 @@ class BaseMagicConfirmComponent {
1598
1596
  this.onClose.emit(result);
1599
1597
  }
1600
1598
  /** @nocollapse */ static ɵfac = function BaseMagicConfirmComponent_Factory(__ngFactoryType__) { return new (__ngFactoryType__ || BaseMagicConfirmComponent)(); };
1601
- /** @nocollapse */ static ɵcmp = /** @pureOrBreakMyCode */ i0.ɵɵdefineComponent({ type: BaseMagicConfirmComponent, selectors: [["mg-base-confirm"]], inputs: { title: [1, "title"], message: [1, "message"] }, outputs: { onClose: "onClose" }, standalone: false, decls: 0, vars: 0, template: function BaseMagicConfirmComponent_Template(rf, ctx) { }, encapsulation: 2, changeDetection: 1 });
1599
+ /** @nocollapse */ static ɵcmp = /** @pureOrBreakMyCode */ i0.ɵɵdefineComponent({ type: BaseMagicConfirmComponent, selectors: [["mg-base-confirm"]], inputs: { title: "title", message: "message" }, outputs: { onClose: "onClose" }, standalone: false, decls: 0, vars: 0, template: function BaseMagicConfirmComponent_Template(rf, ctx) { }, encapsulation: 2, changeDetection: 1 });
1602
1600
  }
1603
1601
  (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(BaseMagicConfirmComponent, [{
1604
1602
  type: Component,
1605
1603
  args: [{ selector: 'mg-base-confirm', template: '', changeDetection: ChangeDetectionStrategy.Eager, standalone: false }]
1606
- }], null, { title: [{ type: i0.Input, args: [{ isSignal: true, alias: "title", required: false }] }], message: [{ type: i0.Input, args: [{ isSignal: true, alias: "message", required: false }] }], onClose: [{ type: i0.Output, args: ["onClose"] }] }); })();
1604
+ }], null, { title: [{
1605
+ type: Input
1606
+ }], message: [{
1607
+ type: Input
1608
+ }], onClose: [{
1609
+ type: Output
1610
+ }] }); })();
1607
1611
  (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(BaseMagicConfirmComponent, { className: "BaseMagicConfirmComponent", filePath: "src/ui/components/base-magic-confirm.component.ts", lineNumber: 14 }); })();
1608
1612
 
1609
1613
  /**
@@ -1613,18 +1617,16 @@ class BaseMagicAlertComponent {
1613
1617
  /**
1614
1618
  * title of the component
1615
1619
  */
1616
- title = input(/* @ts-ignore */
1617
- ...(ngDevMode ? [undefined, { debugName: "title" }] : /* istanbul ignore next */ []));
1620
+ title;
1618
1621
  /**
1619
1622
  * message of the component
1620
1623
  */
1621
- message = input(/* @ts-ignore */
1622
- ...(ngDevMode ? [undefined, { debugName: "message" }] : /* istanbul ignore next */ []));
1624
+ message;
1623
1625
  /**
1624
1626
  * onClose Event - to be raised when the component is closed
1625
1627
 
1626
1628
  */
1627
- onClose = output();
1629
+ onClose = new EventEmitter();
1628
1630
  /**
1629
1631
  * close magic alert
1630
1632
  */
@@ -1632,12 +1634,18 @@ class BaseMagicAlertComponent {
1632
1634
  this.onClose.emit();
1633
1635
  }
1634
1636
  /** @nocollapse */ static ɵfac = function BaseMagicAlertComponent_Factory(__ngFactoryType__) { return new (__ngFactoryType__ || BaseMagicAlertComponent)(); };
1635
- /** @nocollapse */ static ɵcmp = /** @pureOrBreakMyCode */ i0.ɵɵdefineComponent({ type: BaseMagicAlertComponent, selectors: [["mg-base-alert"]], inputs: { title: [1, "title"], message: [1, "message"] }, outputs: { onClose: "onClose" }, standalone: false, decls: 0, vars: 0, template: function BaseMagicAlertComponent_Template(rf, ctx) { }, encapsulation: 2, changeDetection: 1 });
1637
+ /** @nocollapse */ static ɵcmp = /** @pureOrBreakMyCode */ i0.ɵɵdefineComponent({ type: BaseMagicAlertComponent, selectors: [["mg-base-alert"]], inputs: { title: "title", message: "message" }, outputs: { onClose: "onClose" }, standalone: false, decls: 0, vars: 0, template: function BaseMagicAlertComponent_Template(rf, ctx) { }, encapsulation: 2, changeDetection: 1 });
1636
1638
  }
1637
1639
  (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(BaseMagicAlertComponent, [{
1638
1640
  type: Component,
1639
1641
  args: [{ selector: 'mg-base-alert', template: '', changeDetection: ChangeDetectionStrategy.Eager, standalone: false }]
1640
- }], null, { title: [{ type: i0.Input, args: [{ isSignal: true, alias: "title", required: false }] }], message: [{ type: i0.Input, args: [{ isSignal: true, alias: "message", required: false }] }], onClose: [{ type: i0.Output, args: ["onClose"] }] }); })();
1642
+ }], null, { title: [{
1643
+ type: Input
1644
+ }], message: [{
1645
+ type: Input
1646
+ }], onClose: [{
1647
+ type: Output
1648
+ }] }); })();
1641
1649
  (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(BaseMagicAlertComponent, { className: "BaseMagicAlertComponent", filePath: "src/ui/components/base-magic-alert.component.ts", lineNumber: 16 }); })();
1642
1650
 
1643
1651
  /**
@@ -1799,17 +1807,17 @@ class MagicAlertComponent extends BaseMagicAlertComponent {
1799
1807
  i0.ɵɵelementEnd()()();
1800
1808
  } if (rf & 2) {
1801
1809
  i0.ɵɵadvance(3);
1802
- i0.ɵɵtextInterpolate1(" ", ctx.title());
1810
+ i0.ɵɵtextInterpolate1(" ", ctx.title);
1803
1811
  i0.ɵɵadvance(2);
1804
- i0.ɵɵtextInterpolate1("", ctx.message(), " ");
1812
+ i0.ɵɵtextInterpolate1("", ctx.message, " ");
1805
1813
  } }, styles: [".mg-message-background[_ngcontent-%COMP%]{background-color:#f5f5f5;width:40%;font-family:Open Sans,Helvetica Neue,Helvetica,Arial,sans-serif;padding:17px;border-radius:5px;text-align:center;margin-top:10%;margin-left:auto;margin-right:auto;border:1px solid gray}button[_ngcontent-%COMP%]{background-color:#8cd4f5;color:#fff;border:none;box-shadow:none;font-size:17px;font-weight:500;-webkit-border-radius:4px;border-radius:5px;padding:10px 32px;margin:26px 5px 0;cursor:pointer}"] });
1806
1814
  }
1807
1815
  (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(MagicAlertComponent, [{
1808
1816
  type: Component,
1809
1817
  args: [{ selector: 'sample-magic-alert-component', template: `<div>
1810
1818
  <div class="mg-message-background">
1811
- <h2> {{title()}}</h2>
1812
- <p>{{message()}} </p>
1819
+ <h2> {{title}}</h2>
1820
+ <p>{{message}} </p>
1813
1821
 
1814
1822
  <button (click)="OnClose()">OK</button>
1815
1823
  </div>
@@ -1838,17 +1846,17 @@ class MagicConfirmationBoxComponent extends BaseMagicConfirmComponent {
1838
1846
  i0.ɵɵelementEnd()()();
1839
1847
  } if (rf & 2) {
1840
1848
  i0.ɵɵadvance(3);
1841
- i0.ɵɵtextInterpolate1(" ", ctx.title());
1849
+ i0.ɵɵtextInterpolate1(" ", ctx.title);
1842
1850
  i0.ɵɵadvance();
1843
- i0.ɵɵtextInterpolate1(" ", ctx.message(), " ");
1851
+ i0.ɵɵtextInterpolate1(" ", ctx.message, " ");
1844
1852
  } }, styles: [".mg-message-background[_ngcontent-%COMP%]{background-color:#f5f5f5;width:40%;font-family:Open Sans,Helvetica Neue,Helvetica,Arial,sans-serif;padding:17px;border-radius:5px;text-align:center;margin-top:10%;margin-left:auto;margin-right:auto;border:1px solid gray}button[_ngcontent-%COMP%]{background-color:#8cd4f5;color:#fff;border:none;box-shadow:none;font-size:17px;font-weight:500;-webkit-border-radius:4px;border-radius:5px;padding:10px 32px;margin:26px 5px 0;cursor:pointer}button.cancel[_ngcontent-%COMP%]{background-color:#c1c1c1}"] });
1845
1853
  }
1846
1854
  (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(MagicConfirmationBoxComponent, [{
1847
1855
  type: Component,
1848
1856
  args: [{ selector: 'sample-magic-confirmation-box', template: `<div>
1849
1857
  <div class="mg-message-background">
1850
- <h2> {{title()}}</h2>
1851
- {{message()}}
1858
+ <h2> {{title}}</h2>
1859
+ {{message}}
1852
1860
  <br>
1853
1861
  <br>
1854
1862