@magic-xpa/angular 4.1000.0-dev4100.98 → 4.1000.0

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 (65) hide show
  1. package/esm2020/index.mjs +2 -1
  2. package/esm2020/src/magic.core.module.mjs +16 -13
  3. package/esm2020/src/services/accessor.magic.service.mjs +28 -3
  4. package/esm2020/src/services/magic-color.service.mjs +4 -4
  5. package/esm2020/src/services/subform.magic.service.mjs +1 -1
  6. package/esm2020/src/services/table.magic.service.mjs +5 -2
  7. package/esm2020/src/services/task.magics.service.mjs +14 -4
  8. package/esm2020/src/ui/components/base-magic-alert.component.mjs +3 -7
  9. package/esm2020/src/ui/components/base-magic-confirm.component.mjs +3 -7
  10. package/esm2020/src/ui/components/magic-alert.component.mjs +3 -35
  11. package/esm2020/src/ui/components/magic-confirmation-box.component.mjs +3 -39
  12. package/esm2020/src/ui/directives/NonMagicControlDirective.mjs +6 -6
  13. package/esm2020/src/ui/directives/magic/combobox.magic.directive.mjs +11 -1
  14. package/esm2020/src/ui/directives/magic/nocontrol.magic.directive.mjs +3 -3
  15. package/esm2020/src/ui/directives/magic.directive.mjs +11 -11
  16. package/esm2020/src/ui/directives/mgformat.magic.directive.mjs +168 -3
  17. package/esm2020/src/ui/magic-modal/base-magic-overlay-container.mjs +1 -1
  18. package/esm2020/src/ui/magic-modal/magic-overlay-container-wrapper.mjs +4 -18
  19. package/esm2020/src/ui/magic-modal/magic-overlay-container.mjs +4 -4
  20. package/esm2020/src/ui/magic-root.component.mjs +4 -38
  21. package/esm2020/src/ui/mgerror.magic.component.mjs +9 -9
  22. package/esm2020/src/ui/pipes/time24.magic.pipe.mjs +34 -0
  23. package/esm2020/src/ui/router-container.magic.component.mjs +4 -4
  24. package/esm2020/src/ui/subform.magic.component.mjs +4 -4
  25. package/esm2020/src/ui/task-base.magic.component.mjs +8 -2
  26. package/fesm2015/magic-xpa-angular.mjs +323 -197
  27. package/fesm2015/magic-xpa-angular.mjs.map +1 -1
  28. package/fesm2020/magic-xpa-angular.mjs +321 -197
  29. package/fesm2020/magic-xpa-angular.mjs.map +1 -1
  30. package/index.d.ts +1 -0
  31. package/package.json +11 -8
  32. package/src/magic.core.module.d.ts +8 -6
  33. package/src/services/accessor.magic.service.d.ts +3 -0
  34. package/src/services/table.magic.service.d.ts +2 -0
  35. package/src/services/task.magics.service.d.ts +1 -0
  36. package/src/ui/components/base-magic-alert.component.d.ts +1 -1
  37. package/src/ui/components/base-magic-confirm.component.d.ts +1 -1
  38. package/src/ui/components/magic-alert.component.d.ts +1 -1
  39. package/src/ui/components/magic-confirmation-box.component.d.ts +1 -1
  40. package/src/ui/directives/NonMagicControlDirective.d.ts +1 -1
  41. package/src/ui/directives/magic/checkbox-noformcontrol.magic.directive.d.ts +1 -1
  42. package/src/ui/directives/magic/checkbox.magic.directive.d.ts +1 -1
  43. package/src/ui/directives/magic/combobox.magic.directive.d.ts +2 -1
  44. package/src/ui/directives/magic/form-controls/control-value-accessors/checkbox.cva.directive.d.ts +1 -1
  45. package/src/ui/directives/magic/form-controls/control-value-accessors/date.cva.directive.d.ts +1 -1
  46. package/src/ui/directives/magic/form-controls/control-value-accessors/default.cva.directive.d.ts +1 -1
  47. package/src/ui/directives/magic/input.noformcontrol.magic.directive.d.ts +1 -1
  48. package/src/ui/directives/magic/nocontrol.magic.directive.d.ts +1 -1
  49. package/src/ui/directives/magic/row.magic.directive.d.ts +1 -1
  50. package/src/ui/directives/magic-focus.directive.d.ts +1 -1
  51. package/src/ui/directives/magic.directive.d.ts +2 -2
  52. package/src/ui/directives/magicViewContainerRef.directive.d.ts +1 -1
  53. package/src/ui/directives/mgformat.magic.directive.d.ts +5 -2
  54. package/src/ui/directives/range-validator.magic.directive.d.ts +1 -1
  55. package/src/ui/magic-modal/magic-overlay-container-wrapper.d.ts +1 -1
  56. package/src/ui/magic-modal/magic-overlay-container.d.ts +1 -1
  57. package/src/ui/magic-root.component.d.ts +1 -1
  58. package/src/ui/mgerror.magic.component.d.ts +1 -1
  59. package/src/ui/pipes/date.magic.pipe.d.ts +1 -1
  60. package/src/ui/pipes/time.magic.pipe.d.ts +1 -1
  61. package/src/ui/pipes/time24.magic.pipe.d.ts +10 -0
  62. package/src/ui/router-container.magic.component.d.ts +1 -1
  63. package/src/ui/subform.magic.component.d.ts +1 -1
  64. package/src/ui/task-base.magic.component.d.ts +2 -1
  65. package/magic-xpa-angular.d.ts +0 -2
@@ -26,9 +26,7 @@ MagicConfirmationBoxComponent.ɵcmp = i0.ɵɵdefineComponent({ type: MagicConfir
26
26
  } }, 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;border-radius:5px;padding:10px 32px;margin:26px 5px 0;cursor:pointer}button.cancel[_ngcontent-%COMP%]{background-color:#c1c1c1}"] });
27
27
  (function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(MagicConfirmationBoxComponent, [{
28
28
  type: Component,
29
- args: [{
30
- selector: 'sample-magic-confirmation-box',
31
- template: `<div>
29
+ args: [{ selector: 'sample-magic-confirmation-box', template: `<div>
32
30
  <div class="mg-message-background">
33
31
  <h2> {{title}}</h2>
34
32
  {{message}}
@@ -38,40 +36,6 @@ MagicConfirmationBoxComponent.ɵcmp = i0.ɵɵdefineComponent({ type: MagicConfir
38
36
  <button (click)="OnClose(true)">OK</button>
39
37
  <button class="cancel" (click)="OnClose(false)">Cancel</button>
40
38
  </div>
41
- </div>`,
42
- styles: [`
43
- .mg-message-background {
44
- background-color: #F5F5F5;
45
- text-align: center;
46
- width: 40%;
47
- font-family: 'Open Sans', 'Helvetica Neue', Helvetica, Arial, sans-serif;
48
- padding: 17px;
49
- border-radius: 5px;
50
- text-align: center;
51
- margin-top: 10% ;
52
- margin-left: auto;
53
- margin-right: auto;
54
- border: 1px solid gray;
55
- }
56
-
57
- button {
58
- background-color: #8CD4F5;
59
- color: white;
60
- border: none;
61
- box-shadow: none;
62
- font-size: 17px;
63
- font-weight: 500;
64
- -webkit-border-radius: 4px;
65
- border-radius: 5px;
66
- padding: 10px 32px;
67
- margin: 26px 5px 0 5px;
68
- cursor: pointer;
69
- }
70
-
71
- button.cancel {
72
- background-color: #C1C1C1;
73
- }
74
- `]
75
- }]
39
+ </div>`, styles: [".mg-message-background{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{background-color:#8cd4f5;color:#fff;border:none;box-shadow:none;font-size:17px;font-weight:500;border-radius:5px;padding:10px 32px;margin:26px 5px 0;cursor:pointer}button.cancel{background-color:#c1c1c1}\n"] }]
76
40
  }], null, null); })();
77
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibWFnaWMtY29uZmlybWF0aW9uLWJveC5jb21wb25lbnQuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi8uLi8uLi9wcm9qZWN0cy9hbmd1bGFyL3NyYy91aS9jb21wb25lbnRzL21hZ2ljLWNvbmZpcm1hdGlvbi1ib3guY29tcG9uZW50LnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLE9BQU8sRUFBRSxTQUFTLEVBQUUsTUFBTSxlQUFlLENBQUM7QUFDMUMsT0FBTyxFQUFFLHlCQUF5QixFQUFFLE1BQU0sZ0NBQWdDLENBQUM7O0FBb0QzRSxNQUFNLE9BQU8sNkJBQThCLFNBQVEseUJBQXlCOzsyUkFBL0QsNkJBQTZCLFNBQTdCLDZCQUE2QjtrRUFBN0IsNkJBQTZCO1FBN0M3Qi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FkZGluZzogMTdweDtcbiAgYm9yZGVyLXJhZGl1czogNXB4O1xuICB0ZXh0LWFsaWduOiBjZW50ZXI7XG4gIG1hcmdpbi10b3A6IDEwJSA7XG4gIG1hcmdpbi1sZWZ0OiBhdXRvO1xuICBtYXJnaW4tcmlnaHQ6IGF1dG87XG4gIGJvcmRlcjogMXB4IHNvbGlkICBncmF5O1xuICB9XG5cbiAgYnV0dG9uIHtcbiAgYmFja2dyb3VuZC1jb2xvcjogIzhDRDRGNTtcbiAgY29sb3I6IHdoaXRlO1xuICBib3JkZXI6IG5vbmU7XG4gIGJveC1zaGFkb3c6IG5vbmU7XG4gIGZvbnQtc2l6ZTogMTdweDtcbiAgZm9udC13ZWlnaHQ6IDUwMDtcbiAgLXdlYmtpdC1ib3JkZXItcmFkaXVzOiA0cHg7XG4gIGJvcmRlci1yYWRpdXM6IDVweDtcbiAgcGFkZGluZzogMTBweCAzMnB4O1xuICBtYXJnaW46IDI2cHggNXB4IDAgNXB4O1xuICBjdXJzb3I6IHBvaW50ZXI7XG4gIH1cbiAgICBcbiAgICBidXR0b24uY2FuY2VsIHtcbiAgICAgIGJhY2tncm91bmQtY29sb3I6ICNDMUMxQzE7XG4gICAgfVxuICBgXVxufSlcbmV4cG9ydCBjbGFzcyBNYWdpY0NvbmZpcm1hdGlvbkJveENvbXBvbmVudCBleHRlbmRzIEJhc2VNYWdpY0NvbmZpcm1Db21wb25lbnQge1xuXG59XG4iXX0=
@@ -4,6 +4,11 @@ import { TaskMagicService } from '../../services/task.magics.service';
4
4
  import * as i0 from "@angular/core";
5
5
  import * as i1 from "../../services/task.magics.service";
6
6
  export class NonMagicControlDirective {
7
+ set magic(val) {
8
+ this.id = val;
9
+ this.selector = 'NonMagicControl';
10
+ }
11
+ ;
7
12
  constructor(_task, element, renderer, vcRef) {
8
13
  this._task = _task;
9
14
  this.element = element;
@@ -13,11 +18,6 @@ export class NonMagicControlDirective {
13
18
  this.eventsOnlyVal = false;
14
19
  this.htmlElement = this.element.nativeElement;
15
20
  }
16
- set magic(val) {
17
- this.id = val;
18
- this.selector = 'NonMagicControl';
19
- }
20
- ;
21
21
  get task() {
22
22
  return this._task;
23
23
  }
@@ -46,4 +46,4 @@ NonMagicControlDirective.ɵdir = i0.ɵɵdefineDirective({ type: NonMagicControlD
46
46
  type: Input,
47
47
  args: ['NonMagicControl']
48
48
  }] }); })();
49
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiTm9uTWFnaWNDb250cm9sRGlyZWN0aXZlLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vLi4vLi4vcHJvamVjdHMvYW5ndWxhci9zcmMvdWkvZGlyZWN0aXZlcy9Ob25NYWdpY0NvbnRyb2xEaXJlY3RpdmUudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsT0FBTyxFQUFDLFNBQVMsRUFBRSxVQUFVLEVBQUUsS0FBSyxFQUFVLFNBQVMsRUFBRSxnQkFBZ0IsRUFBQyxNQUFNLGVBQWUsQ0FBQztBQUNoRyxPQUFPLEVBQUMsY0FBYyxFQUFDLE1BQU0sbUJBQW1CLENBQUM7QUFFakQsT0FBTyxFQUFDLGdCQUFnQixFQUFDLE1BQU0sb0NBQW9DLENBQUM7OztBQVVwRSxNQUFNLE9BQU8sd0JBQXdCO0lBMkNuQyxZQUFzQixLQUF1QixFQUN2QixPQUFtQixFQUNuQixRQUFtQixFQUNuQixLQUF1QjtRQUh2QixVQUFLLEdBQUwsS0FBSyxDQUFrQjtRQUN2QixZQUFPLEdBQVAsT0FBTyxDQUFZO1FBQ25CLGFBQVEsR0FBUixRQUFRLENBQVc7UUFDbkIsVUFBSyxHQUFMLEtBQUssQ0FBa0I7UUE1QnJDLGtCQUFhLEdBQW1DLEVBQUUsQ0FBQztRQWVwRCxrQkFBYSxHQUFHLEtBQUssQ0FBQztRQWUzQixJQUFJLENBQUMsV0FBVyxHQUFHLEl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vdGVjdGVkIHJlZ0V2ZW50cygpIHtcclxuXHJcbiAgICAvLyBIYW5kbGUgZXZlbnRzIGZvciB3aGljaCBldmVudCBoYW5kbGVyIG1heSBiZSByZW1vdmVkIGFuZCByZXN0b3JlZFxyXG4gICAgdGhpcy5ldmVudEhhbmRsZXJzWydmb2N1c2luJ10gPSB0aGlzLk9uRm9jdXMuYmluZCh0aGlzKTtcclxuICAgIE9iamVjdC5rZXlzKHRoaXMuZXZlbnRIYW5kbGVycykuZm9yRWFjaCgoa2V5KSA9PiB7XHJcbiAgICAgICB0aGlzLnJlbmRlcmVyLmxpc3Rlbih0aGlzLmh0bWxFbGVtZW50LCBrZXksIHRoaXMuZXZlbnRIYW5kbGVyc1trZXldKTtcclxuICAgIH0pO1xyXG5cclxuICB9XHJcblxyXG4gIC8qKlxyXG4gICAqIEhhbmRsZSBmb2N1cyBldmVudFxyXG4gICAqL1xyXG4gIHByaXZhdGUgT25Gb2N1cygpIHtcclxuICAgIHRoaXMudGFzay5pbnNlcnRFdmVudChnZXRHdWlFdmVudE9iaignZm9jdXNPbk5vbk1hZ2ljQ29udHJvbCcsICcnLCAtMSkpO1xyXG4gICAgZXZlbnQuY2FuY2VsQnViYmxlID0gdHJ1ZTtcclxuICB9XHJcblxyXG4gIC8qKlxyXG4gICAqIEluaXRpYWxpemUgdGhpcyBvYmplY3RcclxuICAgKi9cclxuICBuZ09uSW5pdCgpOiB2b2lkIHtcclxuICAgIHRoaXMucmVnRXZlbnRzKCk7XHJcbiAgfVxyXG59XHJcbiJdfQ==
@@ -1,14 +1,24 @@
1
1
  import { Directive, HostListener } from '@angular/core';
2
2
  import { MagicDirective } from '../magic.directive';
3
+ import { HtmlProperties } from "@magic-xpa/gui";
4
+ import { filter } from "rxjs/operators";
3
5
  import * as i0 from "@angular/core";
4
6
  import * as i1 from "../magic.directive";
5
7
  export class ComboboxMagicDirective {
6
8
  constructor(magicDirective) {
7
9
  this.magicDirective = magicDirective;
10
+ this.magicDirective.task.refreshDom.pipe(filter(c => this.magicDirective.IsSameElement(c))).subscribe(value => {
11
+ let command = value;
12
+ if (command.Operation === HtmlProperties.ItemsList)
13
+ this.onComboboxItemsListChanged();
14
+ });
8
15
  }
9
16
  onChange($event) {
10
17
  this.magicDirective.task.onComboboxSelectionChanged($event, this.magicDirective.id, +this.magicDirective.rowId);
11
18
  }
19
+ onComboboxItemsListChanged() {
20
+ this.magicDirective.task.refreshView();
21
+ }
12
22
  }
13
23
  ComboboxMagicDirective.ɵfac = function ComboboxMagicDirective_Factory(t) { return new (t || ComboboxMagicDirective)(i0.ɵɵdirectiveInject(i1.MagicDirective)); };
14
24
  ComboboxMagicDirective.ɵdir = i0.ɵɵdefineDirective({ type: ComboboxMagicDirective, selectors: [["select", "magic", "", 3, "multiple", ""]], hostBindings: function ComboboxMagicDirective_HostBindings(rf, ctx) { if (rf & 1) {
@@ -23,4 +33,4 @@ ComboboxMagicDirective.ɵdir = i0.ɵɵdefineDirective({ type: ComboboxMagicDirec
23
33
  type: HostListener,
24
34
  args: ['change', ['$event']]
25
35
  }] }); })();
26
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiY29tYm9ib3gubWFnaWMuZGlyZWN0aXZlLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vLi4vLi4vLi4vcHJvamVjdHMvYW5ndWxhci9zcmMvdWkvZGlyZWN0aXZlcy9tYWdpYy9jb21ib2JveC5tYWdpYy5kaXJlY3RpdmUudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsT0FBTyxFQUFFLFNBQVMsRUFBRSxZQUFZLEVBQUUsTUFBTSxlQUFlLENBQUM7QUFDeEQsT0FBTyxFQUFFLGNBQWMsRUFBRSxNQUFNLG9CQUFvQixDQUFDOzs7QUFVcEQsTUFBTSxPQUFPLHNCQUFzQjtJQUVqQyxZQUFzQixjQUE4QjtRQUE5QixtQkFBYyxHQUF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YXRpb24gPT09IEh0bWxQcm9wZXJ0aWVzLkl0ZW1zTGlzdClcclxuICAgICAgICB0aGlzLm9uQ29tYm9ib3hJdGVtc0xpc3RDaGFuZ2VkKCk7XHJcbiAgICB9KTtcclxuICB9XHJcblxyXG4gIC8qKlxyXG4gICAqIEhhbmRsZXMgdGhlIENvbWJvYm94ICdjaGFuZ2UnIGV2ZW50IC0gcGFzcyBpdCB0byB0aGUgTWFnaWMgZW5naW5lXHJcbiAgICovXHJcbiAgQEhvc3RMaXN0ZW5lcignY2hhbmdlJywgWyckZXZlbnQnXSlcclxuICBvbkNoYW5nZSgkZXZlbnQpIHtcclxuICAgIHRoaXMubWFnaWNEaXJlY3RpdmUudGFzay5vbkNvbWJvYm94U2VsZWN0aW9uQ2hhbmdlZCgkZXZlbnQsIHRoaXMubWFnaWNEaXJlY3RpdmUuaWQsICt0aGlzLm1hZ2ljRGlyZWN0aXZlLnJvd0lkKTtcclxuICB9XHJcblxyXG4gIC8qKlxyXG4gICAqIFRvIHJlZnJlc2ggQ29tYm9ib3ggc2VsZWN0aW9uIGFzIHBlciBzZWxlY3RlZCBwcm9wZXJ0eS5cclxuICAgKi9cclxuICBvbkNvbWJvYm94SXRlbXNMaXN0Q2hhbmdlZCgpOiB2b2lkIHtcclxuICAgIHRoaXMubWFnaWNEaXJlY3RpdmUudGFzay5yZWZyZXNoVmlldygpO1xyXG4gIH1cclxufVxyXG5cclxuXHJcbiJdfQ==
@@ -10,11 +10,11 @@ import * as i0 from "@angular/core";
10
10
  import * as i1 from "../../../services/task.magics.service";
11
11
  import * as i2 from "./row.magic.directive";
12
12
  export class NoControlMagicDirective extends MagicDirective {
13
+ set magic(val) { this.id = val; this.selector = 'magicnc'; }
14
+ ;
13
15
  constructor(_task, element, renderer, vcRef, magicRow) {
14
16
  super(_task, element, renderer, vcRef, magicRow);
15
17
  }
16
- set magic(val) { this.id = val; this.selector = 'magicnc'; }
17
- ;
18
18
  regEvents() {
19
19
  super.regEvents();
20
20
  if (this.htmlElement instanceof HTMLSelectElement) {
@@ -188,4 +188,4 @@ NoControlMagicDirective.ɵdir = i0.ɵɵdefineDirective({ type: NoControlMagicDir
188
188
  type: Input,
189
189
  args: ['magicnc']
190
190
  }] }); })();
191
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibm9jb250cm9sLm1hZ2ljLmRpcmVjdGl2ZS5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uLy4uLy4uLy4uL3Byb2plY3RzL2FuZ3VsYXIvc3JjL3VpL2RpcmVjdGl2ZXMvbWFnaWMvbm9jb250cm9sLm1hZ2ljLmRpcmVjdGl2ZS50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxPQUFPLEVBQUMsU0FBUyxFQUFFLFVBQVUsRUFBRSxLQUFLLEVBQUUsU0FBUyxFQUFFLGdCQUFnQixFQUFFLFFBQVEsRUFBQyxNQUFNLGVBQWUsQ0FBQztBQUNsRyxPQUFPLEVBQUMsV0FBVyxFQUFhLE1BQU0sZ0JBQWdCLENBQUM7QUFDdkQsT0FBTyxFQUFZLGNBQWMsRUFBQyxNQUFNLG1CQUFtQixDQUFDO0FBRTVELE9BQU8sRUFBQyxjQUFjLEVBQUMsTUFBTyxnQkFBZ0IsQ0FBQztBQUMvQyxPQUFPLEVBQUMsY0FBYyxFQUFDLE1BQU0sb0JBQW9CLENBQUM7QUFDbEQsT0FBTyxFQUFDLGdCQUFnQixFQUFDLE1BQU0sdUNBQXVDLENBQUM7QUFDdkUsT0FBTyxFQUFDLGdCQUFnQixFQUFDLE1BQU0sb0NBQW9DLENBQUM7QUFDcEUsT0FBTyxFQUFDLGlCQUFpQixFQUFDLE1BQU0sdUJBQXVCLENBQUM7Ozs7QUFTeEQsTUFBTSxPQUFPLHVCQUF3QixTQUFRLGNBQWM7SUFJekQsWUFDRSxLQUEwQixFQUMxQixPQUFvQixFQUNwQixRQU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aW5nXHJcbiAgICAgICAgICAgICAgICBjaGlsZC5jbGFzc0xpc3QuYWRkKCd0YWJfYnV0dG9uX2FjdGl2ZScpO1xyXG4gICAgICAgICAgICAgIH1cclxuICAgICAgICAgICAgICBlbHNlIHtcclxuICAgICAgICAgICAgICAgIGNoaWxkLmNsYXNzTGlzdC5yZW1vdmUoJ3RhYl9idXR0b25fYWN0aXZlJyk7XHJcbiAgICAgICAgICAgICAgfVxyXG4gICAgICAgICAgICB9IGVsc2Uge1xyXG4gICAgICAgICAgICAgIC8vIG5vdCBhIGJ1dG9uIC0gaGlkZSB1bnNlbGVjdGVkIHRhYnBhZ2VzXHJcbiAgICAgICAgICAgICAgbGV0IHN0eWxlID0gKGxheWVyID09IGNvbW1hbmQub2JqMSkgPyAnZGlzcGxheTogaW5saW5lJyA6ICdkaXNwbGF5OiBub25lJztcclxuICAgICAgICAgICAgICBjaGlsZC5zZXRBdHRyaWJ1dGUoJ3N0eWxlJywgIHN0eWxlKTtcclxuICAgICAgICAgICAgfVxyXG4gICAgICAgICAgfVxyXG4gICAgICAgIH1cclxuICAgICAgICBicmVhaztcclxuXHJcbiAgICAgIGNhc2UgSHRtbFByb3BlcnRpZXMuUGxhY2VIb2xkZXI6XHJcbiAgICAgICAgdGhpcy5odG1sRWxlbWVudC5zZXRBdHRyaWJ1dGUoXCJwbGFjZWhvbGRlclwiLCBjb21tYW5kLm9iajEpO1xyXG4gICAgICAgIGJyZWFrO1xyXG5cclxuICAgICAgY2FzZSBIdG1sUHJvcGVydGllcy5Ub29sdGlwOlxyXG4gICAgICAgIHRoaXMuaHRtbEVsZW1lbnQuc2V0QXR0cmlidXRlKFwidGl0bGVcIiwgY29tbWFuZC5vYmoxKTtcclxuICAgICAgICBicmVhaztcclxuXHJcbiAgICAgIGNhc2UgSHRtbFByb3BlcnRpZXMuUGFzc3dvcmQ6XHJcbiAgICAgICAgaWYgKGNvbW1hbmQub2JqMSA9PT0gZmFsc2UpXHJcbiAgICAgICAgICB0aGl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QgYnV0dG9uIHN0eWxlXHJcbiAgICAgICAgICAgICAgaWYgKCBsYXllciA9PSBjb21tYW5kLm9iajEpIHsgLy8gY29tcGFyZSBpbnQgdG8gc3RyaW5nXHJcbiAgICAgICAgICAgICAgICBjaGlsZC5jbGFzc0xpc3QuYWRkKCd0YWJfYnV0dG9uX2FjdGl2ZScpO1xyXG4gICAgICAgICAgICAgIH1cclxuICAgICAgICAgICAgICBlbHNlIHtcclxuICAgICAgICAgICAgICAgIGNoaWxkLmNsYXNzTGlzdC5yZW1vdmUoJ3RhYl9idXR0b25fYWN0aXZlJyk7XHJcbiAgICAgICAgICAgICAgfVxyXG4gICAgICAgICAgICB9IGVsc2Uge1xyXG4gICAgICAgICAgICAgIC8vIG5vdCBhIGJ1dG9uIC0gaGlkZSB1bnNlbGVjdGVkIHRhYnBhZ2VzXHJcbiAgICAgICAgICAgICAgbGV0IHN0eWxlID0gKGxheWVyID09IGNvbW1hbmQub2JqMSkgPyAnZGlzcGxheTogaW5saW5lJyA6ICdkaXNwbGF5OiBub25lJztcclxuICAgICAgICAgICAgICBjaGlsZC5zZXRBdHRyaWJ1dGUoJ3N0eWxlJywgIHN0eWxlKTtcclxuICAgICAgICAgICAgfVxyXG4gICAgICAgICAgfVxyXG4gICAgICAgIH1cclxuICAgICAgICBicmVhaztcclxuXHJcbiAgICAgIGNhc2UgSHRtbFByb3BlcnRpZXMuUGxhY2VIb2xkZXI6XHJcbiAgICAgICAgdGhpcy5odG1sRWxlbWVudC5zZXRBdHRyaWJ1dGUoXCJwbGFjZWhvbGRlclwiLCBjb21tYW5kLm9iajEpO1xyXG4gICAgICAgIGJyZWFrO1xyXG5cclxuICAgICAgY2FzZSBIdG1sUHJvcGVydGllcy5Ub29sdGlwOlxyXG4gICAgICAgIHRoaXMuaHRtbEVsZW1lbnQuc2V0QXR0cmlidXRlKFwidGl0bGVcIiwgY29tbWFuZC5vYmoxKTtcclxuICAgICAgICBicmVhaztcclxuXHJcbiAgICAgIGNhc2UgSHRtbFByb3BlcnRpZXMuUGFzc3dvcmQ6XHJcbiAgICAgICAgaWYgKGNvbW1hbmQub2JqMSA9PT0gZmFsc2UpXHJcbiAgICAgICAgICB0aGlzLmh0bWxFbGVtZW50LnNldEF0dHJpYnV0ZShcInR5cGVcIiwgXCJ0ZXh0XCIpO1xyXG4gICAgICAgIGVsc2VcclxuICAgICAgICAgIHRoaXMuaHRtbEVsZW1lbnQuc2V0QXR0cmlidXRlKFwidHlwZVwiLCBcInBhc3N3b3JkXCIpO1xyXG4gICAgICAgIGJyZWFrO1xyXG4gICAgfVxyXG4gIH1cclxufVxyXG4iXX0=
@@ -12,6 +12,16 @@ import * as i0 from "@angular/core";
12
12
  import * as i1 from "../../services/task.magics.service";
13
13
  import * as i2 from "./magic/row.magic.directive";
14
14
  export class MagicDirective {
15
+ set magic(val) {
16
+ this.id = val;
17
+ this.selector = "magic";
18
+ }
19
+ ;
20
+ set eventsOnly(val) {
21
+ console.log("eventsOnly");
22
+ this.eventsOnlyVal = true;
23
+ }
24
+ ;
15
25
  constructor(_task, element, renderer, vcRef, magicRow) {
16
26
  this._task = _task;
17
27
  this.element = element;
@@ -24,16 +34,6 @@ export class MagicDirective {
24
34
  if (!(typeof magicRow === "undefined" || magicRow === null))
25
35
  this.rowId = magicRow.rowId;
26
36
  }
27
- set magic(val) {
28
- this.id = val;
29
- this.selector = "magic";
30
- }
31
- ;
32
- set eventsOnly(val) {
33
- console.log("eventsOnly");
34
- this.eventsOnlyVal = true;
35
- }
36
- ;
37
37
  get task() {
38
38
  return this._task;
39
39
  }
@@ -207,4 +207,4 @@ MagicDirective.ɵdir = i0.ɵɵdefineDirective({ type: MagicDirective, selectors:
207
207
  }], rowId: [{
208
208
  type: Input
209
209
  }] }); })();
210
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibWFnaWMuZGlyZWN0aXZlLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4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