@natec/mef-dev-ui-kit 15.0.0 → 16.0.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 (132) hide show
  1. package/esm2022/lib/markup-kit/card/card/card.component.mjs +116 -0
  2. package/esm2022/lib/markup-kit/card/card-long/card-long.component.mjs +169 -0
  3. package/esm2022/lib/markup-kit/card/card-simple/card-simple.component.mjs +50 -0
  4. package/{esm2020 → esm2022}/lib/markup-kit/card/card.module.mjs +11 -11
  5. package/esm2022/lib/markup-kit/collapse/collapse/collapse.component.mjs +149 -0
  6. package/esm2022/lib/markup-kit/collapse/collapse-set/collapse-set.component.mjs +102 -0
  7. package/{esm2020 → esm2022}/lib/markup-kit/collapse/collapse.module.mjs +5 -5
  8. package/esm2022/lib/markup-kit/modals/fill/fill.component.mjs +117 -0
  9. package/{esm2020 → esm2022}/lib/markup-kit/modals/markup-kit.module.mjs +15 -15
  10. package/esm2022/lib/markup-kit/modals/right-filter/right-filter.component.mjs +44 -0
  11. package/esm2022/lib/markup-kit/modals/slide-right/slide-right.component.mjs +113 -0
  12. package/esm2022/lib/markup-kit/modals/slide-up/slide-up.component.mjs +113 -0
  13. package/esm2022/lib/markup-kit/page-layouts/central-page/central-page.component.mjs +51 -0
  14. package/esm2022/lib/markup-kit/page-layouts/central-page-row/central-page-row.component.mjs +27 -0
  15. package/esm2022/lib/markup-kit/page-layouts/manage-page/manage-page.component.mjs +73 -0
  16. package/{esm2020 → esm2022}/lib/markup-kit/page-layouts/page-layouts.module.mjs +13 -13
  17. package/esm2022/lib/markup-kit/page-layouts/profile/profile.component.mjs +137 -0
  18. package/esm2022/lib/markup-kit/page-layouts/table-page/table-page.component.mjs +42 -0
  19. package/esm2022/lib/markup-kit/utils/filtered-field/filtered-field-container/filtered-field-container.component.mjs +72 -0
  20. package/esm2022/lib/markup-kit/utils/filtered-field/filtered-field-item/filtered-field-item.component.mjs +71 -0
  21. package/{esm2020 → esm2022}/lib/markup-kit/utils/filtered-field/filtered-field.module.mjs +7 -7
  22. package/esm2022/lib/markup-kit/utils/filtered-field/filtered-field.service.mjs +43 -0
  23. package/esm2022/lib/markup-kit/utils/filtered-field/filtred-item.model.mjs +13 -0
  24. package/esm2022/lib/markup-kit/utils/help-block/help-block.component.mjs +72 -0
  25. package/{esm2020 → esm2022}/lib/markup-kit/utils/help-block/hepl-block.module.mjs +7 -7
  26. package/esm2022/lib/pg-components/card/card.components.mjs +439 -0
  27. package/{esm2020 → esm2022}/lib/pg-components/card/card.module.mjs +5 -5
  28. package/esm2022/lib/pg-components/progress/progress.component.mjs +80 -0
  29. package/esm2022/lib/pg-components/progress/progress.config.mjs +12 -0
  30. package/{esm2020 → esm2022}/lib/pg-components/progress/progress.module.mjs +5 -5
  31. package/esm2022/lib/pg-components/select/option.component.mjs +93 -0
  32. package/{esm2020 → esm2022}/lib/pg-components/select/option.pipe.mjs +4 -4
  33. package/esm2022/lib/pg-components/select/select.component.mjs +782 -0
  34. package/{esm2020 → esm2022}/lib/pg-components/select/select.module.mjs +5 -5
  35. package/esm2022/lib/pg-components/spec-flow-test/spec-flow-test/spec-flow-test.component.mjs +36 -0
  36. package/{esm2020 → esm2022}/lib/pg-components/spec-flow-test/spec-flow-test.module.mjs +5 -5
  37. package/esm2022/lib/pg-components/switch/switch.component.mjs +293 -0
  38. package/{esm2020 → esm2022}/lib/pg-components/switch/switch.module.mjs +5 -5
  39. package/esm2022/lib/pg-components/tabs/tab-body.component.mjs +21 -0
  40. package/esm2022/lib/pg-components/tabs/tab-label.directive.mjs +45 -0
  41. package/esm2022/lib/pg-components/tabs/tab.component.mjs +102 -0
  42. package/esm2022/lib/pg-components/tabs/tabs-ink-bar.directive.mjs +81 -0
  43. package/esm2022/lib/pg-components/tabs/tabs-nav.component.mjs +298 -0
  44. package/{esm2020 → esm2022}/lib/pg-components/tabs/tabs.module.mjs +5 -5
  45. package/esm2022/lib/pg-components/tabs/tabset.component.mjs +257 -0
  46. package/fesm2022/natec-mef-dev-ui-kit.mjs +4340 -0
  47. package/fesm2022/natec-mef-dev-ui-kit.mjs.map +1 -0
  48. package/lib/markup-kit/card/card/card.component.d.ts +69 -35
  49. package/lib/markup-kit/card/card-long/card-long.component.d.ts +114 -4
  50. package/lib/markup-kit/card/card-simple/card-simple.component.d.ts +24 -1
  51. package/lib/markup-kit/collapse/collapse/collapse.component.d.ts +52 -2
  52. package/lib/markup-kit/collapse/collapse-set/collapse-set.component.d.ts +51 -1
  53. package/lib/markup-kit/modals/fill/fill.component.d.ts +59 -35
  54. package/lib/markup-kit/modals/right-filter/right-filter.component.d.ts +14 -1
  55. package/lib/markup-kit/modals/slide-right/slide-right.component.d.ts +53 -1
  56. package/lib/markup-kit/modals/slide-up/slide-up.component.d.ts +56 -4
  57. package/lib/markup-kit/page-layouts/central-page/central-page.component.d.ts +23 -1
  58. package/lib/markup-kit/page-layouts/central-page-row/central-page-row.component.d.ts +14 -1
  59. package/lib/markup-kit/page-layouts/manage-page/manage-page.component.d.ts +47 -4
  60. package/lib/markup-kit/page-layouts/profile/profile.component.d.ts +78 -2
  61. package/lib/markup-kit/page-layouts/table-page/table-page.component.d.ts +23 -4
  62. package/lib/markup-kit/utils/filtered-field/filtered-field-container/filtered-field-container.component.d.ts +28 -4
  63. package/lib/markup-kit/utils/filtered-field/filtered-field-item/filtered-field-item.component.d.ts +43 -1
  64. package/lib/markup-kit/utils/filtered-field/filtered-field.service.d.ts +14 -0
  65. package/lib/markup-kit/utils/help-block/help-block.component.d.ts +26 -4
  66. package/lib/pg-components/card/card.components.d.ts +182 -1
  67. package/lib/pg-components/progress/progress.component.d.ts +36 -1
  68. package/lib/pg-components/select/option.component.d.ts +31 -1
  69. package/lib/pg-components/select/select.component.d.ts +1 -1
  70. package/lib/pg-components/spec-flow-test/spec-flow-test/spec-flow-test.component.d.ts +1 -1
  71. package/lib/pg-components/switch/switch.component.d.ts +151 -2
  72. package/lib/pg-components/tabs/tab-body.component.d.ts +7 -1
  73. package/lib/pg-components/tabs/tab-label.directive.d.ts +1 -1
  74. package/lib/pg-components/tabs/tab.component.d.ts +46 -1
  75. package/lib/pg-components/tabs/tabs-ink-bar.directive.d.ts +2 -2
  76. package/lib/pg-components/tabs/tabs-nav.component.d.ts +3 -3
  77. package/lib/pg-components/tabs/tabset.component.d.ts +70 -4
  78. package/package.json +9 -15
  79. package/esm2020/lib/markup-kit/card/card/card.component.mjs +0 -40
  80. package/esm2020/lib/markup-kit/card/card-long/card-long.component.mjs +0 -50
  81. package/esm2020/lib/markup-kit/card/card-simple/card-simple.component.mjs +0 -27
  82. package/esm2020/lib/markup-kit/collapse/collapse/collapse.component.mjs +0 -95
  83. package/esm2020/lib/markup-kit/collapse/collapse-set/collapse-set.component.mjs +0 -54
  84. package/esm2020/lib/markup-kit/modals/fill/fill.component.mjs +0 -91
  85. package/esm2020/lib/markup-kit/modals/right-filter/right-filter.component.mjs +0 -28
  86. package/esm2020/lib/markup-kit/modals/slide-right/slide-right.component.mjs +0 -59
  87. package/esm2020/lib/markup-kit/modals/slide-up/slide-up.component.mjs +0 -59
  88. package/esm2020/lib/markup-kit/page-layouts/central-page/central-page.component.mjs +0 -29
  89. package/esm2020/lib/markup-kit/page-layouts/central-page-row/central-page-row.component.mjs +0 -14
  90. package/esm2020/lib/markup-kit/page-layouts/manage-page/manage-page.component.mjs +0 -29
  91. package/esm2020/lib/markup-kit/page-layouts/profile/profile.component.mjs +0 -53
  92. package/esm2020/lib/markup-kit/page-layouts/table-page/table-page.component.mjs +0 -22
  93. package/esm2020/lib/markup-kit/utils/filtered-field/filtered-field-container/filtered-field-container.component.mjs +0 -47
  94. package/esm2020/lib/markup-kit/utils/filtered-field/filtered-field-item/filtered-field-item.component.mjs +0 -29
  95. package/esm2020/lib/markup-kit/utils/filtered-field/filtered-field.service.mjs +0 -30
  96. package/esm2020/lib/markup-kit/utils/filtered-field/filtred-item.model.mjs +0 -9
  97. package/esm2020/lib/markup-kit/utils/help-block/help-block.component.mjs +0 -51
  98. package/esm2020/lib/pg-components/card/card.components.mjs +0 -252
  99. package/esm2020/lib/pg-components/progress/progress.component.mjs +0 -39
  100. package/esm2020/lib/pg-components/progress/progress.config.mjs +0 -14
  101. package/esm2020/lib/pg-components/select/option.component.mjs +0 -59
  102. package/esm2020/lib/pg-components/select/select.component.mjs +0 -766
  103. package/esm2020/lib/pg-components/spec-flow-test/spec-flow-test/spec-flow-test.component.mjs +0 -24
  104. package/esm2020/lib/pg-components/switch/switch.component.mjs +0 -114
  105. package/esm2020/lib/pg-components/tabs/tab-body.component.mjs +0 -14
  106. package/esm2020/lib/pg-components/tabs/tab-label.directive.mjs +0 -44
  107. package/esm2020/lib/pg-components/tabs/tab.component.mjs +0 -53
  108. package/esm2020/lib/pg-components/tabs/tabs-ink-bar.directive.mjs +0 -78
  109. package/esm2020/lib/pg-components/tabs/tabs-nav.component.mjs +0 -287
  110. package/esm2020/lib/pg-components/tabs/tabset.component.mjs +0 -179
  111. package/fesm2015/natec-mef-dev-ui-kit.mjs +0 -2973
  112. package/fesm2015/natec-mef-dev-ui-kit.mjs.map +0 -1
  113. package/fesm2020/natec-mef-dev-ui-kit.mjs +0 -2966
  114. package/fesm2020/natec-mef-dev-ui-kit.mjs.map +0 -1
  115. /package/{esm2020 → esm2022}/lib/markup-kit/card/card-long/cart-type-colors.enum.mjs +0 -0
  116. /package/{esm2020 → esm2022}/lib/markup-kit/card/index.mjs +0 -0
  117. /package/{esm2020 → esm2022}/lib/markup-kit/collapse/index.mjs +0 -0
  118. /package/{esm2020 → esm2022}/lib/markup-kit/modals/index.mjs +0 -0
  119. /package/{esm2020 → esm2022}/lib/markup-kit/modals/modal-size.enum.mjs +0 -0
  120. /package/{esm2020 → esm2022}/lib/markup-kit/page-layouts/index.mjs +0 -0
  121. /package/{esm2020 → esm2022}/lib/markup-kit/utils/filtered-field/index.mjs +0 -0
  122. /package/{esm2020 → esm2022}/lib/markup-kit/utils/help-block/index.mjs +0 -0
  123. /package/{esm2020 → esm2022}/lib/pg-components/card/index.mjs +0 -0
  124. /package/{esm2020 → esm2022}/lib/pg-components/progress/index.mjs +0 -0
  125. /package/{esm2020 → esm2022}/lib/pg-components/select/index.mjs +0 -0
  126. /package/{esm2020 → esm2022}/lib/pg-components/spec-flow-test/index.mjs +0 -0
  127. /package/{esm2020 → esm2022}/lib/pg-components/switch/index.mjs +0 -0
  128. /package/{esm2020 → esm2022}/lib/pg-components/tabs/index.mjs +0 -0
  129. /package/{esm2020 → esm2022}/lib/pg-components/util/convert.mjs +0 -0
  130. /package/{esm2020 → esm2022}/lib/pg-components/util/request-animation.mjs +0 -0
  131. /package/{esm2020 → esm2022}/natec-mef-dev-ui-kit.mjs +0 -0
  132. /package/{esm2020 → esm2022}/public-api.mjs +0 -0
@@ -1,2973 +0,0 @@
1
- import * as i0 from '@angular/core';
2
- import { Component, ViewEncapsulation, Input, EventEmitter, Host, ContentChild, HostBinding, Output, NgModule, Injectable, ViewChild, Pipe, forwardRef, HostListener, Directive, Optional, ContentChildren, TemplateRef } from '@angular/core';
3
- import { trigger, state, style, transition, animate } from '@angular/animations';
4
- import * as i1 from '@angular/common';
5
- import { CommonModule } from '@angular/common';
6
- import { Subject, of, fromEvent, merge } from 'rxjs';
7
- import * as i1$1 from '@angular/router';
8
- import * as i3 from '@angular/cdk/overlay';
9
- import { CdkConnectedOverlay, OverlayModule } from '@angular/cdk/overlay';
10
- import * as i2 from '@angular/forms';
11
- import { NG_VALUE_ACCESSOR, FormsModule } from '@angular/forms';
12
- import { TAB, DOWN_ARROW, ENTER } from '@angular/cdk/keycodes';
13
- import * as i1$2 from 'ngx-bootstrap/modal';
14
- import { ModalModule } from 'ngx-bootstrap/modal';
15
- import { auditTime, startWith, map } from 'rxjs/operators';
16
- import * as i1$3 from '@angular/cdk/bidi';
17
-
18
- class CollapseSetComponent {
19
- constructor() {
20
- this._accordion = false;
21
- this._horizontal = true;
22
- this._expandAny = true;
23
- this.panels = [];
24
- }
25
- set expandAny(value) {
26
- this._accordion = value;
27
- }
28
- get expandAny() {
29
- return this._accordion;
30
- }
31
- set Accordion(value) {
32
- this._accordion = value;
33
- }
34
- get Accordion() {
35
- return this._accordion;
36
- }
37
- set Horizontal(value) {
38
- this._horizontal = value;
39
- }
40
- get Horizontal() {
41
- return this._horizontal;
42
- }
43
- pgClick(collapse) {
44
- if (this.Accordion && !this.expandAny) {
45
- this.panels.map((item, index) => {
46
- const curIndex = this.panels.indexOf(collapse);
47
- if (index !== curIndex) {
48
- item.Active = false;
49
- }
50
- });
51
- }
52
- }
53
- addTab(collapse) {
54
- this.panels.push(collapse);
55
- }
56
- }
57
- CollapseSetComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: CollapseSetComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
58
- CollapseSetComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.9", type: CollapseSetComponent, selector: "mefdev-collapse-set", inputs: { expandAny: "expandAny", Accordion: "Accordion", Horizontal: "Horizontal" }, ngImport: i0, template: "<div class=\"card-group\" [class.horizontal]=\"Horizontal\">\r\n <ng-content></ng-content>\r\n</div>", styles: [""], encapsulation: i0.ViewEncapsulation.None });
59
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: CollapseSetComponent, decorators: [{
60
- type: Component,
61
- args: [{ selector: 'mefdev-collapse-set', encapsulation: ViewEncapsulation.None, template: "<div class=\"card-group\" [class.horizontal]=\"Horizontal\">\r\n <ng-content></ng-content>\r\n</div>" }]
62
- }], propDecorators: { expandAny: [{
63
- type: Input
64
- }], Accordion: [{
65
- type: Input
66
- }], Horizontal: [{
67
- type: Input
68
- }] } });
69
-
70
- /**
71
- * Example of usage:
72
- * <example-url>https://mef.dev/ui_kit_demo/view/collapse/collapse</example-url>
73
- */
74
- class CollapseComponent {
75
- constructor(_collapseSet, _elementRef) {
76
- this._collapseSet = _collapseSet;
77
- this._elementRef = _elementRef;
78
- this._disabled = false;
79
- this._active = false;
80
- this.stateChange = new EventEmitter();
81
- this._el = this._elementRef.nativeElement;
82
- this._collapseSet.addTab(this);
83
- }
84
- set Disabled(value) {
85
- this._disabled = value;
86
- }
87
- get Disabled() {
88
- return this._disabled;
89
- }
90
- set Active(value) {
91
- const active = value;
92
- if (this._active === active) {
93
- return;
94
- }
95
- if (!this.Disabled) {
96
- this._active = active;
97
- }
98
- }
99
- get Active() {
100
- return this._active;
101
- }
102
- clickHeader($event) {
103
- this.Active = !this.Active;
104
- this.stateChange.next(this.Active);
105
- /** trigger host collapseSet click event */
106
- this._collapseSet.pgClick(this);
107
- }
108
- }
109
- CollapseComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: CollapseComponent, deps: [{ token: CollapseSetComponent, host: true }, { token: i0.ElementRef }], target: i0.ɵɵFactoryTarget.Component });
110
- CollapseComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.9", type: CollapseComponent, selector: "mefdev-collapse", inputs: { Disabled: "Disabled", Active: "Active" }, outputs: { stateChange: "stateChange" }, host: { properties: { "class.card": "true", "class.card-default": "true", "class.m-b-0": "true", "class.disabled": "this.Disabled" } }, queries: [{ propertyName: "CardTitle", first: true, predicate: ["CardTitle"], descendants: true }], ngImport: i0, template: "<div class=\"row mt-2 card-title\" [attr.aria-expanded]=\"_active\" (click)=\"clickHeader($event)\" role=\"tab\"\r\nhref=\"javascript:;\" [ngClass]=\"{'collapsed':!_active}\">\r\n <div class=\"col\">\r\n <ng-template [ngTemplateOutlet]=\"CardTitle\"></ng-template>\r\n </div>\r\n <div class=\"col\">\r\n <i class=\"fa fa-angle-down float-end \" aria-hidden=\"true\" *ngIf=\"!_active\"></i>\r\n <i class=\"fa fa-angle-up float-end \" aria-hidden=\"true\" *ngIf=\"_active\"></i>\r\n </div>\r\n</div>\r\n\r\n<div class=\"collapse\" [ngClass]=\"{'show':true,'active':_active,'inactive':!_active}\" [@collapseState]=\"_active?'active':'inactive'\">\r\n <div *ngIf=\"_active\" \r\n class=\"card-body\">\r\n <ng-content></ng-content>\r\n </div>\r\n</div>", styles: [".color-Dark-Gray-1{color:#373737!important}.color-Dark-Gray-2{color:#4d4d4d!important}.color-Red{color:#cf0106!important}.color-Green{color:#28b446!important}.color-Light-Gray-1{color:#929292!important}.color-Light-Gray-2{color:#eaeaea!important}.color-Light-Gray-3{color:#f3f3f3!important}.color-White{color:#fff!important}.color-Link{color:#0185cf!important}.b-color-Dark-Gray-1{background-color:#373737!important}.b-color-Dark-Gray-2{background-color:#4d4d4d!important}.b-color-Red{background-color:#cf0106!important}.b-color-Green{background-color:#28b446!important}.b-color-Light-Gray-1{background-color:#929292!important}.b-color-Light-Gray-2{background-color:#eaeaea!important}.b-color-Light-Gray-3{background-color:#f3f3f3!important}.b-color-White{background-color:#fff!important}.b-color-Link{background-color:#0185cf!important}.h1,h1{font-family:montserrat-bold;font-size:24px;line-height:29px;font-weight:700;text-transform:uppercase;color:#000}.h2,h2{font-family:montserrat-bold;font-size:24px;line-height:29px;font-weight:700;color:#000}.h3,.card-title,h3{font-family:montserrat-regular;font-size:14px;line-height:20px;font-weight:400;text-transform:uppercase;color:#000}.h4,h4{font-family:montserrat-light;font-weight:300;font-size:13px;line-height:20px;text-transform:uppercase;color:#000}.h5,h5{font-family:montserrat-semibold;font-weight:600;font-size:13px;line-height:20px;color:#000}.h6,h6{font-family:montserrat-medium;font-weight:500;font-size:12px;line-height:20px;text-transform:capitalize;color:#000}.body-1,body-1{font-family:Lato-Bold;font-size:18px;line-height:20px;font-weight:700;color:#000}.body-2,body-2{font-family:Lato-Regular;font-size:16px;line-height:28px;font-weight:400;color:#000}.body-3,body-3{font-family:Lato-Bold;font-size:14px;line-height:22px;font-weight:700;color:#000}.body-4,body-4{font-family:Lato-Regular;font-size:14px;line-height:22px;font-weight:400;color:#000}.body-5,body-5{font-family:Lato-Bold;font-weight:600;font-size:13px;line-height:18px;color:#000}.body-6,body-6{font-family:Lato-Regular;font-size:13px;line-height:16px;font-weight:400;color:#000}.card-title{background-color:#f3f3f3;padding:17px;margin:0;color:#000}.collapse{background-color:#f3f3f3}\n"], dependencies: [{ kind: "directive", type: i1.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i1.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }], animations: [
111
- trigger('collapseState', [
112
- state('inactive', style({
113
- opacity: '0',
114
- height: 0
115
- })),
116
- state('active', style({
117
- opacity: '1',
118
- height: '*'
119
- })),
120
- transition('inactive => active', animate('125ms ease-in')),
121
- transition('active => inactive', animate('125ms ease-out'))
122
- ])
123
- ] });
124
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: CollapseComponent, decorators: [{
125
- type: Component,
126
- args: [{ selector: 'mefdev-collapse', animations: [
127
- trigger('collapseState', [
128
- state('inactive', style({
129
- opacity: '0',
130
- height: 0
131
- })),
132
- state('active', style({
133
- opacity: '1',
134
- height: '*'
135
- })),
136
- transition('inactive => active', animate('125ms ease-in')),
137
- transition('active => inactive', animate('125ms ease-out'))
138
- ])
139
- ], host: {
140
- '[class.card]': 'true',
141
- '[class.card-default]': 'true',
142
- '[class.m-b-0]': 'true'
143
- }, template: "<div class=\"row mt-2 card-title\" [attr.aria-expanded]=\"_active\" (click)=\"clickHeader($event)\" role=\"tab\"\r\nhref=\"javascript:;\" [ngClass]=\"{'collapsed':!_active}\">\r\n <div class=\"col\">\r\n <ng-template [ngTemplateOutlet]=\"CardTitle\"></ng-template>\r\n </div>\r\n <div class=\"col\">\r\n <i class=\"fa fa-angle-down float-end \" aria-hidden=\"true\" *ngIf=\"!_active\"></i>\r\n <i class=\"fa fa-angle-up float-end \" aria-hidden=\"true\" *ngIf=\"_active\"></i>\r\n </div>\r\n</div>\r\n\r\n<div class=\"collapse\" [ngClass]=\"{'show':true,'active':_active,'inactive':!_active}\" [@collapseState]=\"_active?'active':'inactive'\">\r\n <div *ngIf=\"_active\" \r\n class=\"card-body\">\r\n <ng-content></ng-content>\r\n </div>\r\n</div>", styles: [".color-Dark-Gray-1{color:#373737!important}.color-Dark-Gray-2{color:#4d4d4d!important}.color-Red{color:#cf0106!important}.color-Green{color:#28b446!important}.color-Light-Gray-1{color:#929292!important}.color-Light-Gray-2{color:#eaeaea!important}.color-Light-Gray-3{color:#f3f3f3!important}.color-White{color:#fff!important}.color-Link{color:#0185cf!important}.b-color-Dark-Gray-1{background-color:#373737!important}.b-color-Dark-Gray-2{background-color:#4d4d4d!important}.b-color-Red{background-color:#cf0106!important}.b-color-Green{background-color:#28b446!important}.b-color-Light-Gray-1{background-color:#929292!important}.b-color-Light-Gray-2{background-color:#eaeaea!important}.b-color-Light-Gray-3{background-color:#f3f3f3!important}.b-color-White{background-color:#fff!important}.b-color-Link{background-color:#0185cf!important}.h1,h1{font-family:montserrat-bold;font-size:24px;line-height:29px;font-weight:700;text-transform:uppercase;color:#000}.h2,h2{font-family:montserrat-bold;font-size:24px;line-height:29px;font-weight:700;color:#000}.h3,.card-title,h3{font-family:montserrat-regular;font-size:14px;line-height:20px;font-weight:400;text-transform:uppercase;color:#000}.h4,h4{font-family:montserrat-light;font-weight:300;font-size:13px;line-height:20px;text-transform:uppercase;color:#000}.h5,h5{font-family:montserrat-semibold;font-weight:600;font-size:13px;line-height:20px;color:#000}.h6,h6{font-family:montserrat-medium;font-weight:500;font-size:12px;line-height:20px;text-transform:capitalize;color:#000}.body-1,body-1{font-family:Lato-Bold;font-size:18px;line-height:20px;font-weight:700;color:#000}.body-2,body-2{font-family:Lato-Regular;font-size:16px;line-height:28px;font-weight:400;color:#000}.body-3,body-3{font-family:Lato-Bold;font-size:14px;line-height:22px;font-weight:700;color:#000}.body-4,body-4{font-family:Lato-Regular;font-size:14px;line-height:22px;font-weight:400;color:#000}.body-5,body-5{font-family:Lato-Bold;font-weight:600;font-size:13px;line-height:18px;color:#000}.body-6,body-6{font-family:Lato-Regular;font-size:13px;line-height:16px;font-weight:400;color:#000}.card-title{background-color:#f3f3f3;padding:17px;margin:0;color:#000}.collapse{background-color:#f3f3f3}\n"] }]
144
- }], ctorParameters: function () {
145
- return [{ type: CollapseSetComponent, decorators: [{
146
- type: Host
147
- }] }, { type: i0.ElementRef }];
148
- }, propDecorators: { CardTitle: [{
149
- type: ContentChild,
150
- args: ["CardTitle"]
151
- }], Disabled: [{
152
- type: Input
153
- }, {
154
- type: HostBinding,
155
- args: ['class.disabled']
156
- }], Active: [{
157
- type: Input
158
- }], stateChange: [{
159
- type: Output
160
- }] } });
161
-
162
- const mefDevCollapseModuleComponents = [CollapseSetComponent, CollapseComponent];
163
- class MefDevCollapseModule {
164
- static forRoot() {
165
- return {
166
- ngModule: MefDevCollapseModule
167
- };
168
- }
169
- }
170
- MefDevCollapseModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: MefDevCollapseModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
171
- MefDevCollapseModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "15.2.9", ngImport: i0, type: MefDevCollapseModule, declarations: [CollapseSetComponent, CollapseComponent], imports: [CommonModule], exports: [CollapseSetComponent, CollapseComponent] });
172
- MefDevCollapseModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: MefDevCollapseModule, imports: [CommonModule] });
173
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: MefDevCollapseModule, decorators: [{
174
- type: NgModule,
175
- args: [{
176
- declarations: mefDevCollapseModuleComponents,
177
- exports: mefDevCollapseModuleComponents,
178
- imports: [CommonModule]
179
- }]
180
- }] });
181
-
182
- class FilteredFieldService {
183
- constructor() {
184
- this.newFilterItem = new Subject();
185
- this.openFilter = new Subject();
186
- }
187
- getOpenFilter() {
188
- return this.openFilter;
189
- }
190
- sendOpenFilter(item) {
191
- this.openFilter.next(item);
192
- }
193
- getNewFilterItem() {
194
- return this.newFilterItem;
195
- }
196
- sendNewFilterItem(item) {
197
- this.newFilterItem.next(item);
198
- }
199
- }
200
- FilteredFieldService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: FilteredFieldService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
201
- FilteredFieldService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: FilteredFieldService, providedIn: 'root' });
202
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: FilteredFieldService, decorators: [{
203
- type: Injectable,
204
- args: [{
205
- providedIn: 'root'
206
- }]
207
- }], ctorParameters: function () { return []; } });
208
-
209
- class FilteredFieldItemComponent {
210
- constructor() {
211
- this.discard = new EventEmitter();
212
- this.openFilter = new EventEmitter();
213
- }
214
- ngOnInit() {
215
- }
216
- onOpenFilter() {
217
- this.openFilter.next({});
218
- }
219
- onDiscard() {
220
- this.discard.next(this.item);
221
- }
222
- }
223
- FilteredFieldItemComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: FilteredFieldItemComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
224
- FilteredFieldItemComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.9", type: FilteredFieldItemComponent, selector: "mefdev-filtered-field-item", inputs: { item: "item" }, outputs: { discard: "discard", openFilter: "openFilter" }, ngImport: i0, template: "<div class=\"item\">\r\n <i class=\"fa fa-times\" (click)=\"onDiscard()\" style=\"margin-right: 3px; cursor: pointer;\"></i> \r\n <span (click)=\"onOpenFilter()\">{{item.newValue}}</span>\r\n</div>\r\n", styles: [".color-Dark-Gray-1{color:#373737!important}.color-Dark-Gray-2{color:#4d4d4d!important}.color-Red{color:#cf0106!important}.color-Green{color:#28b446!important}.color-Light-Gray-1{color:#929292!important}.color-Light-Gray-2{color:#eaeaea!important}.color-Light-Gray-3{color:#f3f3f3!important}.color-White{color:#fff!important}.color-Link{color:#0185cf!important}.b-color-Dark-Gray-1{background-color:#373737!important}.b-color-Dark-Gray-2{background-color:#4d4d4d!important}.b-color-Red{background-color:#cf0106!important}.b-color-Green{background-color:#28b446!important}.b-color-Light-Gray-1{background-color:#929292!important}.b-color-Light-Gray-2{background-color:#eaeaea!important}.b-color-Light-Gray-3{background-color:#f3f3f3!important}.b-color-White{background-color:#fff!important}.b-color-Link{background-color:#0185cf!important}.item{background-color:#4d4d4d;color:#fff;border-radius:5px;margin-right:7px;padding:3px 7px}\n"] });
225
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: FilteredFieldItemComponent, decorators: [{
226
- type: Component,
227
- args: [{ selector: 'mefdev-filtered-field-item', template: "<div class=\"item\">\r\n <i class=\"fa fa-times\" (click)=\"onDiscard()\" style=\"margin-right: 3px; cursor: pointer;\"></i> \r\n <span (click)=\"onOpenFilter()\">{{item.newValue}}</span>\r\n</div>\r\n", styles: [".color-Dark-Gray-1{color:#373737!important}.color-Dark-Gray-2{color:#4d4d4d!important}.color-Red{color:#cf0106!important}.color-Green{color:#28b446!important}.color-Light-Gray-1{color:#929292!important}.color-Light-Gray-2{color:#eaeaea!important}.color-Light-Gray-3{color:#f3f3f3!important}.color-White{color:#fff!important}.color-Link{color:#0185cf!important}.b-color-Dark-Gray-1{background-color:#373737!important}.b-color-Dark-Gray-2{background-color:#4d4d4d!important}.b-color-Red{background-color:#cf0106!important}.b-color-Green{background-color:#28b446!important}.b-color-Light-Gray-1{background-color:#929292!important}.b-color-Light-Gray-2{background-color:#eaeaea!important}.b-color-Light-Gray-3{background-color:#f3f3f3!important}.b-color-White{background-color:#fff!important}.b-color-Link{background-color:#0185cf!important}.item{background-color:#4d4d4d;color:#fff;border-radius:5px;margin-right:7px;padding:3px 7px}\n"] }]
228
- }], ctorParameters: function () { return []; }, propDecorators: { item: [{
229
- type: Input
230
- }], discard: [{
231
- type: Output
232
- }], openFilter: [{
233
- type: Output
234
- }] } });
235
-
236
- /**
237
- * Example of usage:
238
- * <example-url>https://mef.dev/ui_kit_demo/view/utils/filtered-field</example-url>
239
- */
240
- class FilteredFieldContainerComponent {
241
- constructor(service) {
242
- this.service = service;
243
- this.items = [];
244
- }
245
- onOpenFilter(item) {
246
- this.service.sendOpenFilter(item);
247
- }
248
- onDiscard(item) {
249
- item.discard(item.standartValue);
250
- this.items.splice(this.items.findIndex(x => x.id == item.id), 1);
251
- }
252
- ngOnInit() {
253
- this.service.getNewFilterItem().subscribe(item => {
254
- let i = this.items.findIndex(x => x.id == item.id);
255
- if (i != -1 && item.newValue == item.standartValue) {
256
- this.items[i] = item;
257
- this.items.splice(i, 1);
258
- return;
259
- }
260
- if (i == -1 && (item.newValue == item.standartValue || item.newValue == '')) {
261
- return;
262
- }
263
- if (i != -1) {
264
- this.items[i] = item;
265
- return;
266
- }
267
- this.items.push(item);
268
- });
269
- }
270
- }
271
- FilteredFieldContainerComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: FilteredFieldContainerComponent, deps: [{ token: FilteredFieldService }], target: i0.ɵɵFactoryTarget.Component });
272
- FilteredFieldContainerComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.9", type: FilteredFieldContainerComponent, selector: "mefdev-filtered-field-container", ngImport: i0, template: "<div class=\"item-container\">\r\n <mefdev-filtered-field-item *ngFor=\"let item of items\" [item]=\"item\" (discard)=\"onDiscard(item)\" (openFilter)=\"onOpenFilter(item)\"></mefdev-filtered-field-item>\r\n</div>\r\n", styles: [".item-container{display:flex;cursor:context-menu}\n"], dependencies: [{ kind: "directive", type: i1.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "component", type: FilteredFieldItemComponent, selector: "mefdev-filtered-field-item", inputs: ["item"], outputs: ["discard", "openFilter"] }] });
273
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: FilteredFieldContainerComponent, decorators: [{
274
- type: Component,
275
- args: [{ selector: 'mefdev-filtered-field-container', template: "<div class=\"item-container\">\r\n <mefdev-filtered-field-item *ngFor=\"let item of items\" [item]=\"item\" (discard)=\"onDiscard(item)\" (openFilter)=\"onOpenFilter(item)\"></mefdev-filtered-field-item>\r\n</div>\r\n", styles: [".item-container{display:flex;cursor:context-menu}\n"] }]
276
- }], ctorParameters: function () { return [{ type: FilteredFieldService }]; } });
277
-
278
- class MefDevFilteredFieldModule {
279
- }
280
- MefDevFilteredFieldModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: MefDevFilteredFieldModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
281
- MefDevFilteredFieldModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "15.2.9", ngImport: i0, type: MefDevFilteredFieldModule, declarations: [FilteredFieldContainerComponent,
282
- FilteredFieldItemComponent], imports: [CommonModule], exports: [FilteredFieldItemComponent,
283
- FilteredFieldContainerComponent] });
284
- MefDevFilteredFieldModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: MefDevFilteredFieldModule, imports: [CommonModule] });
285
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: MefDevFilteredFieldModule, decorators: [{
286
- type: NgModule,
287
- args: [{
288
- declarations: [
289
- FilteredFieldContainerComponent,
290
- FilteredFieldItemComponent,
291
- ],
292
- exports: [
293
- FilteredFieldItemComponent,
294
- FilteredFieldContainerComponent
295
- ],
296
- imports: [
297
- CommonModule
298
- ]
299
- }]
300
- }] });
301
-
302
- class FiltredItemModel {
303
- constructor(id, newValue, standartValue, discard) {
304
- this.id = id;
305
- this.newValue = newValue;
306
- this.standartValue = standartValue;
307
- this.discard = discard;
308
- }
309
- }
310
-
311
- /**
312
- * Example of usage:
313
- * <example-url>https://mef.dev/ui_kit_demo/view/utils/help-block</example-url>
314
- */
315
- class HelpBlockComponent {
316
- constructor() {
317
- this.isVisible = true;
318
- this.expanded = false;
319
- this.title = "Help";
320
- }
321
- ngOnInit() {
322
- }
323
- }
324
- HelpBlockComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: HelpBlockComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
325
- HelpBlockComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.9", type: HelpBlockComponent, selector: "mefdev-help-block", inputs: { title: "title" }, ngImport: i0, template: "<div class=\"card-simple\" *ngIf=\"isVisible\">\r\n <div class=\"row m-1 body-1\" (click)=\"expanded = !expanded\" style=\"cursor: pointer;\">\r\n <div class=\"col-10\" style=\"color: white;\">\r\n {{ title }}\r\n </div>\r\n <div class=\"col-2\">\r\n <i class=\"fa fa-window-close\" aria-hidden=\"true\" style=\"float: right; margin-left: 20px;\" (click)=\"isVisible = !isVisible;\"></i>\r\n \r\n <i class=\"fa fa-angle-down \" *ngIf=\"!expanded\" aria-hidden=\"true\" style=\"float: right;\"></i>\r\n <i class=\"fa fa-angle-up\" *ngIf=\"expanded\" aria-hidden=\"true\" style=\"float: right;\"></i> \r\n </div>\r\n </div>\r\n\r\n <div class=\"card-body row\" [@smothExpand]=\"expanded ? 'open' : 'close'\">\r\n <div class=\"col-12\">\r\n <ng-content></ng-content>\r\n </div>\r\n </div>\r\n</div>", styles: [".color-Dark-Gray-1{color:#373737!important}.color-Dark-Gray-2{color:#4d4d4d!important}.color-Red{color:#cf0106!important}.color-Green{color:#28b446!important}.color-Light-Gray-1{color:#929292!important}.color-Light-Gray-2{color:#eaeaea!important}.color-Light-Gray-3{color:#f3f3f3!important}.color-White{color:#fff!important}.color-Link{color:#0185cf!important}.b-color-Dark-Gray-1{background-color:#373737!important}.b-color-Dark-Gray-2{background-color:#4d4d4d!important}.b-color-Red{background-color:#cf0106!important}.b-color-Green{background-color:#28b446!important}.b-color-Light-Gray-1{background-color:#929292!important}.b-color-Light-Gray-2{background-color:#eaeaea!important}.b-color-Light-Gray-3{background-color:#f3f3f3!important}.b-color-White{background-color:#fff!important}.b-color-Link{background-color:#0185cf!important}.card-simple{opacity:.7;background-color:#28b446;padding:2px;border-radius:5px;margin-top:.3em;margin-bottom:.5em}.card-body{opacity:1;margin-left:2px;margin-right:2px;margin-bottom:2px;border-radius:5px;padding-top:15px;padding-bottom:15px;background-color:#f3f3f3;color:#000}\n"], dependencies: [{ kind: "directive", type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }], animations: [
326
- trigger('smothExpand', [
327
- state('close', style({
328
- height: '0',
329
- margin: '0',
330
- padding: '0',
331
- opacity: '0',
332
- visibility: 'hidden',
333
- })),
334
- state('open', style({})),
335
- transition('close<=>open', animate(200))
336
- ])
337
- ] });
338
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: HelpBlockComponent, decorators: [{
339
- type: Component,
340
- args: [{ selector: 'mefdev-help-block', animations: [
341
- trigger('smothExpand', [
342
- state('close', style({
343
- height: '0',
344
- margin: '0',
345
- padding: '0',
346
- opacity: '0',
347
- visibility: 'hidden',
348
- })),
349
- state('open', style({})),
350
- transition('close<=>open', animate(200))
351
- ])
352
- ], template: "<div class=\"card-simple\" *ngIf=\"isVisible\">\r\n <div class=\"row m-1 body-1\" (click)=\"expanded = !expanded\" style=\"cursor: pointer;\">\r\n <div class=\"col-10\" style=\"color: white;\">\r\n {{ title }}\r\n </div>\r\n <div class=\"col-2\">\r\n <i class=\"fa fa-window-close\" aria-hidden=\"true\" style=\"float: right; margin-left: 20px;\" (click)=\"isVisible = !isVisible;\"></i>\r\n \r\n <i class=\"fa fa-angle-down \" *ngIf=\"!expanded\" aria-hidden=\"true\" style=\"float: right;\"></i>\r\n <i class=\"fa fa-angle-up\" *ngIf=\"expanded\" aria-hidden=\"true\" style=\"float: right;\"></i> \r\n </div>\r\n </div>\r\n\r\n <div class=\"card-body row\" [@smothExpand]=\"expanded ? 'open' : 'close'\">\r\n <div class=\"col-12\">\r\n <ng-content></ng-content>\r\n </div>\r\n </div>\r\n</div>", styles: [".color-Dark-Gray-1{color:#373737!important}.color-Dark-Gray-2{color:#4d4d4d!important}.color-Red{color:#cf0106!important}.color-Green{color:#28b446!important}.color-Light-Gray-1{color:#929292!important}.color-Light-Gray-2{color:#eaeaea!important}.color-Light-Gray-3{color:#f3f3f3!important}.color-White{color:#fff!important}.color-Link{color:#0185cf!important}.b-color-Dark-Gray-1{background-color:#373737!important}.b-color-Dark-Gray-2{background-color:#4d4d4d!important}.b-color-Red{background-color:#cf0106!important}.b-color-Green{background-color:#28b446!important}.b-color-Light-Gray-1{background-color:#929292!important}.b-color-Light-Gray-2{background-color:#eaeaea!important}.b-color-Light-Gray-3{background-color:#f3f3f3!important}.b-color-White{background-color:#fff!important}.b-color-Link{background-color:#0185cf!important}.card-simple{opacity:.7;background-color:#28b446;padding:2px;border-radius:5px;margin-top:.3em;margin-bottom:.5em}.card-body{opacity:1;margin-left:2px;margin-right:2px;margin-bottom:2px;border-radius:5px;padding-top:15px;padding-bottom:15px;background-color:#f3f3f3;color:#000}\n"] }]
353
- }], ctorParameters: function () { return []; }, propDecorators: { title: [{
354
- type: Input,
355
- args: ['title']
356
- }] } });
357
-
358
- class MefDevHelpBlockModule {
359
- }
360
- MefDevHelpBlockModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: MefDevHelpBlockModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
361
- MefDevHelpBlockModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "15.2.9", ngImport: i0, type: MefDevHelpBlockModule, declarations: [HelpBlockComponent], imports: [CommonModule,
362
- MefDevCollapseModule], exports: [HelpBlockComponent] });
363
- MefDevHelpBlockModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: MefDevHelpBlockModule, imports: [CommonModule,
364
- MefDevCollapseModule] });
365
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: MefDevHelpBlockModule, decorators: [{
366
- type: NgModule,
367
- args: [{
368
- declarations: [HelpBlockComponent],
369
- exports: [HelpBlockComponent],
370
- imports: [
371
- CommonModule,
372
- MefDevCollapseModule
373
- ]
374
- }]
375
- }] });
376
-
377
- class MefDevProgressComponent {
378
- constructor() { }
379
- set value(value) {
380
- if (this.type == "circle") {
381
- this._value = (value / 100) * 360;
382
- if (this.value >= 50) {
383
- this._value2 = true;
384
- }
385
- }
386
- else
387
- this._value = value;
388
- }
389
- get value() {
390
- return this._value;
391
- }
392
- get value2() {
393
- return this._value2;
394
- }
395
- }
396
- MefDevProgressComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: MefDevProgressComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
397
- MefDevProgressComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.9", type: MefDevProgressComponent, selector: "mefdev-progress", inputs: { type: "type", color: "color", thick: "thick", indeterminate: "indeterminate", value: "value" }, ngImport: i0, template: "<div *ngIf=\"type === 'bar'; else circleBlock\">\r\n <div *ngIf=\"indeterminate; else determineBarBlock\">\r\n <div class=\"progress\" [class.progress-small]=\"!thick\">\r\n <div class=\"progress-bar-{{ color }}\" [class.progress-bar-indeterminate]=\"indeterminate\"></div>\r\n </div>\r\n </div>\r\n <ng-template #determineBarBlock>\r\n <div class=\"progress\" [class.progress-small]=\"!thick\">\r\n <div class=\"progress-bar progress-bar-{{ color }}\" [ngStyle]=\"{ width: value + '%' }\"></div>\r\n </div>\r\n </ng-template>\r\n</div>\r\n<ng-template #circleBlock>\r\n <div class=\"progress-circle-{{ color }}\" [class.progress-circle-indeterminate]=\"indeterminate\"\r\n [class.progress-circle]=\"!indeterminate\" [class.progress-circle-thick]=\"thick\">\r\n <div *ngIf=\"indeterminate; else determineBlock\"></div>\r\n <ng-template #determineBlock>\r\n <div class=\"pie\" [ngStyle]=\"_value2 && { clip: 'rect(auto, auto, auto, auto)' }\">\r\n <div class=\"left-side half-circle\" [ngStyle]=\"_value2 && { transform: 'rotate(' + value + 'deg)' }\"></div>\r\n <div class=\"right-side half-circle\" [ngStyle]=\"{\r\n transform:\r\n _value2 === true ? 'rotate(180deg)' : 'rotate(' + value + 'deg)'\r\n }\"></div>\r\n </div>\r\n <div class=\"shadow\"></div>\r\n </ng-template>\r\n </div>\r\n</ng-template>", dependencies: [{ kind: "directive", type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i1.NgStyle, selector: "[ngStyle]", inputs: ["ngStyle"] }] });
398
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: MefDevProgressComponent, decorators: [{
399
- type: Component,
400
- args: [{ selector: "mefdev-progress", template: "<div *ngIf=\"type === 'bar'; else circleBlock\">\r\n <div *ngIf=\"indeterminate; else determineBarBlock\">\r\n <div class=\"progress\" [class.progress-small]=\"!thick\">\r\n <div class=\"progress-bar-{{ color }}\" [class.progress-bar-indeterminate]=\"indeterminate\"></div>\r\n </div>\r\n </div>\r\n <ng-template #determineBarBlock>\r\n <div class=\"progress\" [class.progress-small]=\"!thick\">\r\n <div class=\"progress-bar progress-bar-{{ color }}\" [ngStyle]=\"{ width: value + '%' }\"></div>\r\n </div>\r\n </ng-template>\r\n</div>\r\n<ng-template #circleBlock>\r\n <div class=\"progress-circle-{{ color }}\" [class.progress-circle-indeterminate]=\"indeterminate\"\r\n [class.progress-circle]=\"!indeterminate\" [class.progress-circle-thick]=\"thick\">\r\n <div *ngIf=\"indeterminate; else determineBlock\"></div>\r\n <ng-template #determineBlock>\r\n <div class=\"pie\" [ngStyle]=\"_value2 && { clip: 'rect(auto, auto, auto, auto)' }\">\r\n <div class=\"left-side half-circle\" [ngStyle]=\"_value2 && { transform: 'rotate(' + value + 'deg)' }\"></div>\r\n <div class=\"right-side half-circle\" [ngStyle]=\"{\r\n transform:\r\n _value2 === true ? 'rotate(180deg)' : 'rotate(' + value + 'deg)'\r\n }\"></div>\r\n </div>\r\n <div class=\"shadow\"></div>\r\n </ng-template>\r\n </div>\r\n</ng-template>" }]
401
- }], ctorParameters: function () { return []; }, propDecorators: { type: [{
402
- type: Input
403
- }], color: [{
404
- type: Input
405
- }], thick: [{
406
- type: Input
407
- }], indeterminate: [{
408
- type: Input
409
- }], value: [{
410
- type: Input
411
- }] } });
412
-
413
- class pgCard {
414
- constructor() {
415
- this._isCollapsed = false;
416
- this._isMaximixed = false;
417
- this._isLoading = false;
418
- this._minimalHeader = false;
419
- this._message = "";
420
- this._messageType = "danger";
421
- this._messageVisible = false;
422
- this._progressType = "circle";
423
- this._progressColor = "";
424
- this._showTools = true;
425
- this._close_card = false;
426
- this._refresh = false;
427
- this._refreshColor = "light";
428
- this._close = true;
429
- this._toggle = true;
430
- this._maximize = true;
431
- this._timeout = 0;
432
- this._titleText = "";
433
- this._card_border_style = "";
434
- this._type = "default";
435
- this._extraHeaderClass = "";
436
- this._extraBodyClass = "";
437
- this._additionalClasses = "";
438
- this.onRefresh = new EventEmitter();
439
- }
440
- set Title(value) {
441
- this._titleText = value;
442
- }
443
- get Title() {
444
- return this._titleText;
445
- }
446
- set Type(value) {
447
- this._type = value;
448
- }
449
- set MinimalHeader(value) {
450
- this._minimalHeader = value;
451
- }
452
- set ProgressType(value) {
453
- this._progressType = value;
454
- }
455
- set ProgressColor(value) {
456
- this._progressColor = value;
457
- }
458
- set Refresh(value) {
459
- this._refresh = value;
460
- }
461
- set RefreshColor(value) {
462
- this._refreshColor = value;
463
- }
464
- set Maximize(value) {
465
- this._maximize = value;
466
- }
467
- set Close(value) {
468
- this._close = value;
469
- }
470
- set Toggle(value) {
471
- this._toggle = value;
472
- }
473
- set HeaderClass(value) {
474
- this._extraHeaderClass = value;
475
- }
476
- set BodyClass(value) {
477
- this._extraBodyClass = value;
478
- }
479
- set AdditionalClasses(value) {
480
- this._additionalClasses = value;
481
- }
482
- set Controls(value) {
483
- this._showTools = value;
484
- }
485
- set ShowMessage(value) {
486
- this._messageVisible = value;
487
- }
488
- set Message(value) {
489
- this._message = value;
490
- }
491
- set Loading(value) {
492
- this._isLoading = value;
493
- }
494
- set TimeOut(value) {
495
- this._timeout = value;
496
- }
497
- set CardBorderStyle(value) {
498
- this._card_border_style = value;
499
- }
500
- toggle() {
501
- this._isCollapsed = this._isCollapsed === true ? false : true;
502
- }
503
- maximize() {
504
- var _a;
505
- let nativeElement = this._hostContent.nativeElement;
506
- if (this._isMaximixed) {
507
- this._isMaximixed = false;
508
- nativeElement.style.left = null;
509
- nativeElement.style.top = null;
510
- }
511
- else {
512
- this._isMaximixed = true;
513
- let pagecontainer = (_a = document.querySelector(".content")) !== null && _a !== void 0 ? _a : new Element();
514
- console.log(pagecontainer);
515
- let rect = pagecontainer.getBoundingClientRect();
516
- let elementRect = nativeElement.getBoundingClientRect();
517
- let style = window.getComputedStyle(pagecontainer);
518
- nativeElement.style.left =
519
- parseFloat(style["marginLeft"]) +
520
- parseFloat(style["paddingLeft"]) +
521
- rect.left +
522
- "px";
523
- nativeElement.style.top =
524
- parseFloat(style["padding-top"]) + rect.top + "px";
525
- }
526
- }
527
- alertDismiss() {
528
- this._messageVisible = false;
529
- }
530
- refresh() {
531
- if (!this._isLoading) {
532
- this._isLoading = true;
533
- this.onRefresh.emit();
534
- }
535
- if (this._timeout > 0) {
536
- setTimeout(() => {
537
- this._isLoading = false;
538
- }, this._timeout);
539
- }
540
- }
541
- close() {
542
- this._close_card = true;
543
- }
544
- }
545
- pgCard.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: pgCard, deps: [], target: i0.ɵɵFactoryTarget.Component });
546
- pgCard.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.9", type: pgCard, selector: "pgcard", inputs: { Title: "Title", Type: "Type", MinimalHeader: "MinimalHeader", ProgressType: "ProgressType", ProgressColor: "ProgressColor", Refresh: "Refresh", RefreshColor: "RefreshColor", Maximize: "Maximize", Close: "Close", Toggle: "Toggle", HeaderClass: "HeaderClass", BodyClass: "BodyClass", AdditionalClasses: "AdditionalClasses", Controls: "Controls", ShowMessage: "ShowMessage", Message: "Message", Loading: "Loading", TimeOut: "TimeOut", CardBorderStyle: "CardBorderStyle" }, outputs: { onRefresh: "onRefresh" }, queries: [{ propertyName: "CardTitle", first: true, predicate: ["CardTitle"], descendants: true }, { propertyName: "CardExtraControls", first: true, predicate: ["CardExtraControls"], descendants: true }], viewQueries: [{ propertyName: "_hostContent", first: true, predicate: ["hostContent"], descendants: true }, { propertyName: "minimalCircleLoading", first: true, predicate: ["minimalCircleLoading"], descendants: true }, { propertyName: "minimalCircleLoadingTrigger", first: true, predicate: ["minimalCircleLoadingTrigger"], descendants: true }], ngImport: i0, template: "<div class=\"card card-{{ _type }} {{ _additionalClasses }}\" *ngIf=\"!_close_card\" [class.card-collapsed]=\"_isCollapsed\"\r\n [class.card-maximized]=\"_isMaximixed\" #hostContent class=\"col-sm-12 col-md-6 col-lg-4\"\r\n [ngStyle]=\"{'border': _card_border_style}\">\r\n <div class=\"card-header {{ _extraHeaderClass }}\">\r\n <div class=\"card-title\">\r\n <ng-template [ngTemplateOutlet]=\"CardTitle\"></ng-template>\r\n </div>\r\n <div class=\"card-controls\" *ngIf=\"_showTools == true\">\r\n <ng-template [ngTemplateOutlet]=\"CardExtraControls\"></ng-template>\r\n <ul *ngIf=\"_minimalHeader == false; else minimalBlock\">\r\n <li *ngIf=\"_toggle == true\">\r\n <a href=\"javascript:void(0);\" data-toggle class=\"card-collapse\" (click)=\"toggle()\"><i\r\n class=\"pg pg-arrow_maximize\" [class.pg-arrow_minimize]=\"_isCollapsed\"></i></a>\r\n </li>\r\n <li *ngIf=\"_refresh == true\">\r\n <a href=\"javascript:void(0);\" data-toggle class=\"card-refresh\" (click)=\"refresh()\"><i\r\n class=\"card-icon card-icon-refresh\"></i></a>\r\n </li>\r\n <li *ngIf=\"_maximize == true\">\r\n <a href=\"javascript:void(0);\" data-toggle class=\"card-maximize\" (click)=\"maximize()\"><i\r\n class=\"card-icon card-icon-maximize\"></i></a>\r\n </li>\r\n <li *ngIf=\"_close == true\">\r\n <a href=\"javascript:void(0);\" data-toggle class=\"card-close\" (click)=\"close()\"><i\r\n class=\"card-icon card-icon-close\"></i></a>\r\n </li>\r\n </ul>\r\n <!-- <ng-template #minimalBlock>\r\n <ul>\r\n <li>\r\n <a href=\"javascript:void(0);\" (click)=\"refresh()\" class=\"card-refresh minimal\"\r\n [class.refreshing]=\"_isLoading\">\r\n <i #minimalCircleLoadingTrigger class=\"card-icon card-icon-refresh-lg-{{\r\n _refreshColor == 'light' ? 'white' : 'master'\r\n }}\" [class.fade]=\"_isLoading\"></i>\r\n <i #minimalCircleLoading class=\"card-icon-refresh-lg-white-animated\"\r\n style=\"position: absolute;top:0;left:0\" [class.active]=\"_isLoading\"\r\n [class.hide]=\"_isLoading != true\"></i>\r\n </a>\r\n </li>\r\n </ul>\r\n </ng-template> -->\r\n </div>\r\n </div>\r\n <div class=\"card-body {{ _extraBodyClass }}\" [@collapseState]=\"_isCollapsed == true ? 'inactive' : 'active'\">\r\n <ng-content></ng-content>\r\n </div>\r\n <div *ngIf=\"_messageVisible == true\" class=\"pgn-wrapper\" data-position=\"top\">\r\n <div class=\"pgn pgn-bar push-on-sidebar-open\">\r\n <div class=\"alert alert-danger\">\r\n <span>{{ _message }}</span><button class=\"close\" (click)=\"alertDismiss()\" type=\"button\">\r\n <span aria-hidden=\"true\">\u00D7</span><span class=\"sr-only\">{{ 'Close' }}</span>\r\n </button>\r\n </div>\r\n </div>\r\n </div>\r\n <div *ngIf=\"_messageVisible == true\" class=\"card-progress\" [style.backgroundColor]=\"\r\n _minimalHeader ? 'rgba(0,0,0, 0.6)' : 'rgba(255, 255, 255, 0.8)'\r\n \" style=\" display: block;\"></div>\r\n <div [@fadeAnimation]=\"_isLoading\" class=\"card-progress\" [style.backgroundColor]=\"\r\n _minimalHeader ? 'rgba(0,0,0, 0.6)' : 'rgba(255, 255, 255, 0.8)'\r\n \" style=\"display: block;pointer-events: none\">\r\n <mefdev-progress *ngIf=\"_minimalHeader == false\" type=\"{{ _progressType }}\" color=\"{{ _progressColor }}\"\r\n indeterminate=\"true\" class=\"\"></mefdev-progress>\r\n </div>\r\n</div>", dependencies: [{ kind: "directive", type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i1.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "directive", type: i1.NgStyle, selector: "[ngStyle]", inputs: ["ngStyle"] }, { kind: "component", type: MefDevProgressComponent, selector: "mefdev-progress", inputs: ["type", "color", "thick", "indeterminate", "value"] }], animations: [
547
- trigger("collapseState", [
548
- state("inactive", style({
549
- opacity: "0",
550
- height: 0,
551
- paddingBottom: "0"
552
- })),
553
- state("active", style({
554
- opacity: "1",
555
- height: "*",
556
- paddingBottom: "*"
557
- })),
558
- transition("inactive => active", animate("125ms ease-in")),
559
- transition("active => inactive", animate("125ms ease-out"))
560
- ]),
561
- trigger("fadeAnimation", [
562
- state("false", style({
563
- opacity: "0",
564
- visibility: "hidden"
565
- })),
566
- state("true", style({
567
- opacity: "1",
568
- visibility: "visible"
569
- })),
570
- transition("false => true", animate("500ms ease-in")),
571
- transition("true => false", animate("500ms ease-out"))
572
- ])
573
- ], encapsulation: i0.ViewEncapsulation.None });
574
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: pgCard, decorators: [{
575
- type: Component,
576
- args: [{ selector: "pgcard", encapsulation: ViewEncapsulation.None, animations: [
577
- trigger("collapseState", [
578
- state("inactive", style({
579
- opacity: "0",
580
- height: 0,
581
- paddingBottom: "0"
582
- })),
583
- state("active", style({
584
- opacity: "1",
585
- height: "*",
586
- paddingBottom: "*"
587
- })),
588
- transition("inactive => active", animate("125ms ease-in")),
589
- transition("active => inactive", animate("125ms ease-out"))
590
- ]),
591
- trigger("fadeAnimation", [
592
- state("false", style({
593
- opacity: "0",
594
- visibility: "hidden"
595
- })),
596
- state("true", style({
597
- opacity: "1",
598
- visibility: "visible"
599
- })),
600
- transition("false => true", animate("500ms ease-in")),
601
- transition("true => false", animate("500ms ease-out"))
602
- ])
603
- ], template: "<div class=\"card card-{{ _type }} {{ _additionalClasses }}\" *ngIf=\"!_close_card\" [class.card-collapsed]=\"_isCollapsed\"\r\n [class.card-maximized]=\"_isMaximixed\" #hostContent class=\"col-sm-12 col-md-6 col-lg-4\"\r\n [ngStyle]=\"{'border': _card_border_style}\">\r\n <div class=\"card-header {{ _extraHeaderClass }}\">\r\n <div class=\"card-title\">\r\n <ng-template [ngTemplateOutlet]=\"CardTitle\"></ng-template>\r\n </div>\r\n <div class=\"card-controls\" *ngIf=\"_showTools == true\">\r\n <ng-template [ngTemplateOutlet]=\"CardExtraControls\"></ng-template>\r\n <ul *ngIf=\"_minimalHeader == false; else minimalBlock\">\r\n <li *ngIf=\"_toggle == true\">\r\n <a href=\"javascript:void(0);\" data-toggle class=\"card-collapse\" (click)=\"toggle()\"><i\r\n class=\"pg pg-arrow_maximize\" [class.pg-arrow_minimize]=\"_isCollapsed\"></i></a>\r\n </li>\r\n <li *ngIf=\"_refresh == true\">\r\n <a href=\"javascript:void(0);\" data-toggle class=\"card-refresh\" (click)=\"refresh()\"><i\r\n class=\"card-icon card-icon-refresh\"></i></a>\r\n </li>\r\n <li *ngIf=\"_maximize == true\">\r\n <a href=\"javascript:void(0);\" data-toggle class=\"card-maximize\" (click)=\"maximize()\"><i\r\n class=\"card-icon card-icon-maximize\"></i></a>\r\n </li>\r\n <li *ngIf=\"_close == true\">\r\n <a href=\"javascript:void(0);\" data-toggle class=\"card-close\" (click)=\"close()\"><i\r\n class=\"card-icon card-icon-close\"></i></a>\r\n </li>\r\n </ul>\r\n <!-- <ng-template #minimalBlock>\r\n <ul>\r\n <li>\r\n <a href=\"javascript:void(0);\" (click)=\"refresh()\" class=\"card-refresh minimal\"\r\n [class.refreshing]=\"_isLoading\">\r\n <i #minimalCircleLoadingTrigger class=\"card-icon card-icon-refresh-lg-{{\r\n _refreshColor == 'light' ? 'white' : 'master'\r\n }}\" [class.fade]=\"_isLoading\"></i>\r\n <i #minimalCircleLoading class=\"card-icon-refresh-lg-white-animated\"\r\n style=\"position: absolute;top:0;left:0\" [class.active]=\"_isLoading\"\r\n [class.hide]=\"_isLoading != true\"></i>\r\n </a>\r\n </li>\r\n </ul>\r\n </ng-template> -->\r\n </div>\r\n </div>\r\n <div class=\"card-body {{ _extraBodyClass }}\" [@collapseState]=\"_isCollapsed == true ? 'inactive' : 'active'\">\r\n <ng-content></ng-content>\r\n </div>\r\n <div *ngIf=\"_messageVisible == true\" class=\"pgn-wrapper\" data-position=\"top\">\r\n <div class=\"pgn pgn-bar push-on-sidebar-open\">\r\n <div class=\"alert alert-danger\">\r\n <span>{{ _message }}</span><button class=\"close\" (click)=\"alertDismiss()\" type=\"button\">\r\n <span aria-hidden=\"true\">\u00D7</span><span class=\"sr-only\">{{ 'Close' }}</span>\r\n </button>\r\n </div>\r\n </div>\r\n </div>\r\n <div *ngIf=\"_messageVisible == true\" class=\"card-progress\" [style.backgroundColor]=\"\r\n _minimalHeader ? 'rgba(0,0,0, 0.6)' : 'rgba(255, 255, 255, 0.8)'\r\n \" style=\" display: block;\"></div>\r\n <div [@fadeAnimation]=\"_isLoading\" class=\"card-progress\" [style.backgroundColor]=\"\r\n _minimalHeader ? 'rgba(0,0,0, 0.6)' : 'rgba(255, 255, 255, 0.8)'\r\n \" style=\"display: block;pointer-events: none\">\r\n <mefdev-progress *ngIf=\"_minimalHeader == false\" type=\"{{ _progressType }}\" color=\"{{ _progressColor }}\"\r\n indeterminate=\"true\" class=\"\"></mefdev-progress>\r\n </div>\r\n</div>" }]
604
- }], propDecorators: { _hostContent: [{
605
- type: ViewChild,
606
- args: ["hostContent"]
607
- }], minimalCircleLoading: [{
608
- type: ViewChild,
609
- args: ["minimalCircleLoading"]
610
- }], minimalCircleLoadingTrigger: [{
611
- type: ViewChild,
612
- args: ["minimalCircleLoadingTrigger"]
613
- }], CardTitle: [{
614
- type: ContentChild,
615
- args: ["CardTitle"]
616
- }], CardExtraControls: [{
617
- type: ContentChild,
618
- args: ["CardExtraControls"]
619
- }], Title: [{
620
- type: Input
621
- }], Type: [{
622
- type: Input
623
- }], MinimalHeader: [{
624
- type: Input
625
- }], ProgressType: [{
626
- type: Input
627
- }], ProgressColor: [{
628
- type: Input
629
- }], Refresh: [{
630
- type: Input
631
- }], RefreshColor: [{
632
- type: Input
633
- }], Maximize: [{
634
- type: Input
635
- }], Close: [{
636
- type: Input
637
- }], Toggle: [{
638
- type: Input
639
- }], HeaderClass: [{
640
- type: Input
641
- }], BodyClass: [{
642
- type: Input
643
- }], AdditionalClasses: [{
644
- type: Input
645
- }], Controls: [{
646
- type: Input
647
- }], ShowMessage: [{
648
- type: Input
649
- }], Message: [{
650
- type: Input
651
- }], Loading: [{
652
- type: Input
653
- }], TimeOut: [{
654
- type: Input
655
- }], CardBorderStyle: [{
656
- type: Input
657
- }], onRefresh: [{
658
- type: Output
659
- }] } });
660
-
661
- /**
662
- * Example of usage:
663
- * <example-url>https://mef.dev/ui_kit_demo/view/card</example-url>
664
- */
665
- class CardComponent {
666
- constructor(router) {
667
- this.router = router;
668
- }
669
- ngOnInit() {
670
- }
671
- imgClick() {
672
- this.router.navigate(['/', this.imgUrl.toString()]);
673
- }
674
- }
675
- CardComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: CardComponent, deps: [{ token: i1$1.Router }], target: i0.ɵɵFactoryTarget.Component });
676
- CardComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.9", type: CardComponent, selector: "mefdev-card", inputs: { card_type: "card_type", img: "img", imgUrl: "imgUrl", description: "description" }, queries: [{ propertyName: "card_title", first: true, predicate: ["card_title"], descendants: true }, { propertyName: "card_footer", first: true, predicate: ["card_footer"], descendants: true }], ngImport: i0, template: "\r\n <pgcard\r\n MinimalHeader=\"true\"\r\n TimeOut=\"2500\"\r\n [Refresh]=\"false\"\r\n [Close]=\"false\">\r\n\r\n <ng-template #CardTitle>\r\n <ng-template class=\"card-title body-1\" [ngTemplateOutlet]=\"card_title\"></ng-template>\r\n </ng-template>\r\n\r\n <div class=\"plugin-type\">\r\n {{ card_type }}\r\n </div>\r\n\r\n <div class=\"row\">\r\n <div class=\"col-12\">\r\n <div class=\"m-l-2 card-description\">\r\n <div *ngIf=\"!description || description == ''\" class=\"card-no-description\"> {{'No plugin description'}}</div>\r\n <p>\r\n {{description}}\r\n </p>\r\n </div>\r\n </div>\r\n <div class=\"col-12 mt-3 text-center card-img\"\r\n [ngStyle]=\"{'background-color': img ? 'transparent' : '#fff'}\">\r\n <div *ngIf=\"!img || img == ''\" >\r\n <img src=\"assets/images/md_icon.png\"\r\n style=\"max-width: 110px; max-height: 110px;\"/>\r\n </div>\r\n <div *ngIf=\"img\" >\r\n <img src=\"{{img}}\" alt=\"\" class=\"image-responsive-height img-middle\"\r\n style=\"max-width: 260px; max-height: 150px;\"\r\n onclick=\"imgClick()\"\r\n />\r\n </div>\r\n\r\n </div>\r\n </div>\r\n <div class=\"row mb-3 mt-3\">\r\n <div class=\"col-12\">\r\n <ng-template [ngTemplateOutlet]=\"card_footer\"></ng-template>\r\n </div>\r\n </div>\r\n </pgcard>\r\n", styles: [".color-Dark-Gray-1{color:#373737!important}.color-Dark-Gray-2{color:#4d4d4d!important}.color-Red{color:#cf0106!important}.color-Green{color:#28b446!important}.color-Light-Gray-1{color:#929292!important}.color-Light-Gray-2{color:#eaeaea!important}.color-Light-Gray-3{color:#f3f3f3!important}.color-White{color:#fff!important}.color-Link{color:#0185cf!important}.b-color-Dark-Gray-1{background-color:#373737!important}.b-color-Dark-Gray-2{background-color:#4d4d4d!important}.b-color-Red{background-color:#cf0106!important}.b-color-Green{background-color:#28b446!important}.b-color-Light-Gray-1{background-color:#929292!important}.b-color-Light-Gray-2{background-color:#eaeaea!important}.b-color-Light-Gray-3{background-color:#f3f3f3!important}.b-color-White{background-color:#fff!important}.b-color-Link{background-color:#0185cf!important}.h1,h1{font-family:montserrat-bold;font-size:24px;line-height:29px;font-weight:700;text-transform:uppercase;color:#000}.h2,h2{font-family:montserrat-bold;font-size:24px;line-height:29px;font-weight:700;color:#000}.h3,h3{font-family:montserrat-regular;font-size:14px;line-height:20px;font-weight:400;text-transform:uppercase;color:#000}.h4,h4{font-family:montserrat-light;font-weight:300;font-size:13px;line-height:20px;text-transform:uppercase;color:#000}.h5,h5{font-family:montserrat-semibold;font-weight:600;font-size:13px;line-height:20px;color:#000}.h6,.plugin-type,h6{font-family:montserrat-medium;font-weight:500;font-size:12px;line-height:20px;text-transform:capitalize;color:#000}.body-1,.card-title span,body-1{font-family:Lato-Bold;font-size:18px;line-height:20px;font-weight:700;color:#000}.body-2,body-2{font-family:Lato-Regular;font-size:16px;line-height:28px;font-weight:400;color:#000}.body-3,body-3{font-family:Lato-Bold;font-size:14px;line-height:22px;font-weight:700;color:#000}.body-4,body-4{font-family:Lato-Regular;font-size:14px;line-height:22px;font-weight:400;color:#000}.body-5,.card-description,.card-no-description,body-5{font-family:Lato-Bold;font-weight:600;font-size:13px;line-height:18px;color:#000}.body-6,body-6{font-family:Lato-Regular;font-size:13px;line-height:16px;font-weight:400;color:#000}.card-default{background-color:#eaeaea;border-radius:5px}.card-header{height:72px}.card-title{width:70%}.plugin-type{right:20px;top:25px;position:absolute;background-color:#cf0106;border-radius:5px 0 0 5px;margin-right:-20px;height:28px;padding:5px 15px;color:#fff}.card-description{height:40px;overflow-y:clip;color:#4d4d4d}.card-no-description{overflow-y:clip;height:60px;color:#929292}.card-img{padding:0;height:130px;display:flex;align-items:center;justify-content:center;width:-webkit-fill-available;margin-right:calc(var(--bs-gutter-x) * .5);margin-left:calc(var(--bs-gutter-x) * .5)}\n"], dependencies: [{ kind: "directive", type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i1.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "directive", type: i1.NgStyle, selector: "[ngStyle]", inputs: ["ngStyle"] }, { kind: "component", type: pgCard, selector: "pgcard", inputs: ["Title", "Type", "MinimalHeader", "ProgressType", "ProgressColor", "Refresh", "RefreshColor", "Maximize", "Close", "Toggle", "HeaderClass", "BodyClass", "AdditionalClasses", "Controls", "ShowMessage", "Message", "Loading", "TimeOut", "CardBorderStyle"], outputs: ["onRefresh"] }] });
677
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: CardComponent, decorators: [{
678
- type: Component,
679
- args: [{ selector: 'mefdev-card', template: "\r\n <pgcard\r\n MinimalHeader=\"true\"\r\n TimeOut=\"2500\"\r\n [Refresh]=\"false\"\r\n [Close]=\"false\">\r\n\r\n <ng-template #CardTitle>\r\n <ng-template class=\"card-title body-1\" [ngTemplateOutlet]=\"card_title\"></ng-template>\r\n </ng-template>\r\n\r\n <div class=\"plugin-type\">\r\n {{ card_type }}\r\n </div>\r\n\r\n <div class=\"row\">\r\n <div class=\"col-12\">\r\n <div class=\"m-l-2 card-description\">\r\n <div *ngIf=\"!description || description == ''\" class=\"card-no-description\"> {{'No plugin description'}}</div>\r\n <p>\r\n {{description}}\r\n </p>\r\n </div>\r\n </div>\r\n <div class=\"col-12 mt-3 text-center card-img\"\r\n [ngStyle]=\"{'background-color': img ? 'transparent' : '#fff'}\">\r\n <div *ngIf=\"!img || img == ''\" >\r\n <img src=\"assets/images/md_icon.png\"\r\n style=\"max-width: 110px; max-height: 110px;\"/>\r\n </div>\r\n <div *ngIf=\"img\" >\r\n <img src=\"{{img}}\" alt=\"\" class=\"image-responsive-height img-middle\"\r\n style=\"max-width: 260px; max-height: 150px;\"\r\n onclick=\"imgClick()\"\r\n />\r\n </div>\r\n\r\n </div>\r\n </div>\r\n <div class=\"row mb-3 mt-3\">\r\n <div class=\"col-12\">\r\n <ng-template [ngTemplateOutlet]=\"card_footer\"></ng-template>\r\n </div>\r\n </div>\r\n </pgcard>\r\n", styles: [".color-Dark-Gray-1{color:#373737!important}.color-Dark-Gray-2{color:#4d4d4d!important}.color-Red{color:#cf0106!important}.color-Green{color:#28b446!important}.color-Light-Gray-1{color:#929292!important}.color-Light-Gray-2{color:#eaeaea!important}.color-Light-Gray-3{color:#f3f3f3!important}.color-White{color:#fff!important}.color-Link{color:#0185cf!important}.b-color-Dark-Gray-1{background-color:#373737!important}.b-color-Dark-Gray-2{background-color:#4d4d4d!important}.b-color-Red{background-color:#cf0106!important}.b-color-Green{background-color:#28b446!important}.b-color-Light-Gray-1{background-color:#929292!important}.b-color-Light-Gray-2{background-color:#eaeaea!important}.b-color-Light-Gray-3{background-color:#f3f3f3!important}.b-color-White{background-color:#fff!important}.b-color-Link{background-color:#0185cf!important}.h1,h1{font-family:montserrat-bold;font-size:24px;line-height:29px;font-weight:700;text-transform:uppercase;color:#000}.h2,h2{font-family:montserrat-bold;font-size:24px;line-height:29px;font-weight:700;color:#000}.h3,h3{font-family:montserrat-regular;font-size:14px;line-height:20px;font-weight:400;text-transform:uppercase;color:#000}.h4,h4{font-family:montserrat-light;font-weight:300;font-size:13px;line-height:20px;text-transform:uppercase;color:#000}.h5,h5{font-family:montserrat-semibold;font-weight:600;font-size:13px;line-height:20px;color:#000}.h6,.plugin-type,h6{font-family:montserrat-medium;font-weight:500;font-size:12px;line-height:20px;text-transform:capitalize;color:#000}.body-1,.card-title span,body-1{font-family:Lato-Bold;font-size:18px;line-height:20px;font-weight:700;color:#000}.body-2,body-2{font-family:Lato-Regular;font-size:16px;line-height:28px;font-weight:400;color:#000}.body-3,body-3{font-family:Lato-Bold;font-size:14px;line-height:22px;font-weight:700;color:#000}.body-4,body-4{font-family:Lato-Regular;font-size:14px;line-height:22px;font-weight:400;color:#000}.body-5,.card-description,.card-no-description,body-5{font-family:Lato-Bold;font-weight:600;font-size:13px;line-height:18px;color:#000}.body-6,body-6{font-family:Lato-Regular;font-size:13px;line-height:16px;font-weight:400;color:#000}.card-default{background-color:#eaeaea;border-radius:5px}.card-header{height:72px}.card-title{width:70%}.plugin-type{right:20px;top:25px;position:absolute;background-color:#cf0106;border-radius:5px 0 0 5px;margin-right:-20px;height:28px;padding:5px 15px;color:#fff}.card-description{height:40px;overflow-y:clip;color:#4d4d4d}.card-no-description{overflow-y:clip;height:60px;color:#929292}.card-img{padding:0;height:130px;display:flex;align-items:center;justify-content:center;width:-webkit-fill-available;margin-right:calc(var(--bs-gutter-x) * .5);margin-left:calc(var(--bs-gutter-x) * .5)}\n"] }]
680
- }], ctorParameters: function () { return [{ type: i1$1.Router }]; }, propDecorators: { card_title: [{
681
- type: ContentChild,
682
- args: ["card_title"]
683
- }], card_footer: [{
684
- type: ContentChild,
685
- args: ["card_footer"]
686
- }], card_type: [{
687
- type: Input
688
- }], img: [{
689
- type: Input
690
- }], imgUrl: [{
691
- type: Input
692
- }], description: [{
693
- type: Input
694
- }] } });
695
-
696
- var CartTypeColors;
697
- (function (CartTypeColors) {
698
- CartTypeColors["UNSET"] = "UNSET";
699
- CartTypeColors["RED"] = "RED";
700
- CartTypeColors["GREEN"] = "GREEN";
701
- })(CartTypeColors || (CartTypeColors = {}));
702
-
703
- /**
704
- * Example of usage:
705
- * <example-url>https://mef.dev/ui_kit_demo/view/card/card-long</example-url>
706
- */
707
- class CardLongComponent {
708
- constructor(router) {
709
- this.router = router;
710
- this.type_color = CartTypeColors.UNSET;
711
- }
712
- ngOnInit() {
713
- }
714
- imgClick() {
715
- this.router.navigate(['/', this.imgUrl.toString()]);
716
- }
717
- }
718
- CardLongComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: CardLongComponent, deps: [{ token: i1$1.Router }], target: i0.ɵɵFactoryTarget.Component });
719
- CardLongComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.9", type: CardLongComponent, selector: "medev-card-long", inputs: { type_text: "type_text", type_color: "type_color", img: "img", imgUrl: "imgUrl", description: "description" }, queries: [{ propertyName: "title", first: true, predicate: ["title"], descendants: true }, { propertyName: "params", first: true, predicate: ["params"], descendants: true }, { propertyName: "second_col", first: true, predicate: ["second_col"], descendants: true }, { propertyName: "third_col", first: true, predicate: ["third_col"], descendants: true }], ngImport: i0, template: "\r\n <pgcard \r\n MinimalHeader=\"true\" \r\n TimeOut=\"2500\" \r\n [Refresh]=\"false\" \r\n [Close]=\"false\"\r\n >\r\n \r\n <ng-template #CardTitle>\r\n <ng-template class=\"card-title\" [ngTemplateOutlet]=\"title\"></ng-template>\r\n </ng-template>\r\n\r\n <ng-template #CardExtraControls>\r\n <div class=\"plugin-type\" \r\n [ngClass] = \"{\r\n 'b-color-Light-Gray-1': type_color === 'UNSET',\r\n 'b-color-Red': type_color === 'RED',\r\n 'b-color-Green': type_color === 'GREEN'}\">\r\n {{type_text}}\r\n </div>\r\n </ng-template>\r\n\r\n <div class=\"row h-100 m-b-10\">\r\n <div class=\"col-lg-3 col-12 card-col\">\r\n <div class=\"row\">\r\n <div class=\"col-12 card-img m-b-10\">\r\n <div *ngIf=\"!img || img == ''\" >\r\n <img src=\"assets/images/md_icon.png\"\r\n style=\"max-width: 110px; max-height: 110px;\"/>\r\n </div>\r\n <div *ngIf=\"img\">\r\n <img src=\"{{img}}\" alt=\"\" class=\"image-responsive-height img-middle\"\r\n height=\"110px\" \r\n style=\"max-width: 110px; max-height: 110px;\"\r\n onclick=\"imgClick()\"\r\n />\r\n </div> \r\n </div>\r\n <div class=\"col-12 m-t-2 body-6 text-dark params-block\">\r\n <ng-template [ngTemplateOutlet]=\"params\"></ng-template> \r\n </div>\r\n </div>\r\n </div>\r\n\r\n <div class=\"col-lg-5 col-12 card-col\">\r\n <ng-template [ngTemplateOutlet]=\"second_col\"></ng-template> \r\n </div>\r\n \r\n <div class=\"col-lg-4 col-12 card-col mt-lg-0 mt-5\">\r\n <ng-template [ngTemplateOutlet]=\"third_col\"></ng-template> \r\n </div> \r\n\r\n </div>\r\n </pgcard>", styles: [".color-Dark-Gray-1{color:#373737!important}.color-Dark-Gray-2{color:#4d4d4d!important}.color-Red{color:#cf0106!important}.color-Green{color:#28b446!important}.color-Light-Gray-1{color:#929292!important}.color-Light-Gray-2{color:#eaeaea!important}.color-Light-Gray-3{color:#f3f3f3!important}.color-White{color:#fff!important}.color-Link{color:#0185cf!important}.b-color-Dark-Gray-1{background-color:#373737!important}.b-color-Dark-Gray-2{background-color:#4d4d4d!important}.b-color-Red{background-color:#cf0106!important}.b-color-Green{background-color:#28b446!important}.b-color-Light-Gray-1{background-color:#929292!important}.b-color-Light-Gray-2{background-color:#eaeaea!important}.b-color-Light-Gray-3{background-color:#f3f3f3!important}.b-color-White{background-color:#fff!important}.b-color-Link{background-color:#0185cf!important}.h1,h1{font-family:montserrat-bold;font-size:24px;line-height:29px;font-weight:700;text-transform:uppercase;color:#000}.h2,h2{font-family:montserrat-bold;font-size:24px;line-height:29px;font-weight:700;color:#000}.h3,:host::ng-deep .card-title span,h3{font-family:montserrat-regular;font-size:14px;line-height:20px;font-weight:400;text-transform:uppercase;color:#000}.h4,h4{font-family:montserrat-light;font-weight:300;font-size:13px;line-height:20px;text-transform:uppercase;color:#000}.h5,h5{font-family:montserrat-semibold;font-weight:600;font-size:13px;line-height:20px;color:#000}.h6,:host::ng-deep .plugin-type,h6{font-family:montserrat-medium;font-weight:500;font-size:12px;line-height:20px;text-transform:capitalize;color:#000}.body-1,body-1{font-family:Lato-Bold;font-size:18px;line-height:20px;font-weight:700;color:#000}.body-2,body-2{font-family:Lato-Regular;font-size:16px;line-height:28px;font-weight:400;color:#000}.body-3,body-3{font-family:Lato-Bold;font-size:14px;line-height:22px;font-weight:700;color:#000}.body-4,body-4{font-family:Lato-Regular;font-size:14px;line-height:22px;font-weight:400;color:#000}.body-5,:host::ng-deep .card-description,:host::ng-deep .card-no-description,body-5{font-family:Lato-Bold;font-weight:600;font-size:13px;line-height:18px;color:#000}.body-6,body-6{font-family:Lato-Regular;font-size:13px;line-height:16px;font-weight:400;color:#000}:host::ng-deep .params-block .row{margin-top:.75em}:host::ng-deep .params-block .row:last-child{margin-bottom:.75em}:host::ng-deep .card-col{min-height:220px}:host::ng-deep .header-link{opacity:1}:host::ng-deep .card-default{background-color:#f3f3f3;border-radius:5px}:host::ng-deep .card-title{width:80%;color:#000}:host::ng-deep .plugin-type{border-radius:5px 0 0 5px;margin-right:-20px;height:28px;padding:5px 15px;color:#fff}:host::ng-deep .card-description{height:40px;overflow-y:clip;color:#4d4d4d}:host::ng-deep .card-no-description{overflow-y:clip;height:60px;color:#929292}:host::ng-deep .card-img{padding:0;height:130px;background-color:#fff;display:flex;align-items:center;justify-content:center;width:-webkit-fill-available;margin-right:calc(var(--bs-gutter-x) * .5);margin-left:calc(var(--bs-gutter-x) * .5)}\n"], dependencies: [{ kind: "directive", type: i1.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i1.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "component", type: pgCard, selector: "pgcard", inputs: ["Title", "Type", "MinimalHeader", "ProgressType", "ProgressColor", "Refresh", "RefreshColor", "Maximize", "Close", "Toggle", "HeaderClass", "BodyClass", "AdditionalClasses", "Controls", "ShowMessage", "Message", "Loading", "TimeOut", "CardBorderStyle"], outputs: ["onRefresh"] }] });
720
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: CardLongComponent, decorators: [{
721
- type: Component,
722
- args: [{ selector: 'medev-card-long', template: "\r\n <pgcard \r\n MinimalHeader=\"true\" \r\n TimeOut=\"2500\" \r\n [Refresh]=\"false\" \r\n [Close]=\"false\"\r\n >\r\n \r\n <ng-template #CardTitle>\r\n <ng-template class=\"card-title\" [ngTemplateOutlet]=\"title\"></ng-template>\r\n </ng-template>\r\n\r\n <ng-template #CardExtraControls>\r\n <div class=\"plugin-type\" \r\n [ngClass] = \"{\r\n 'b-color-Light-Gray-1': type_color === 'UNSET',\r\n 'b-color-Red': type_color === 'RED',\r\n 'b-color-Green': type_color === 'GREEN'}\">\r\n {{type_text}}\r\n </div>\r\n </ng-template>\r\n\r\n <div class=\"row h-100 m-b-10\">\r\n <div class=\"col-lg-3 col-12 card-col\">\r\n <div class=\"row\">\r\n <div class=\"col-12 card-img m-b-10\">\r\n <div *ngIf=\"!img || img == ''\" >\r\n <img src=\"assets/images/md_icon.png\"\r\n style=\"max-width: 110px; max-height: 110px;\"/>\r\n </div>\r\n <div *ngIf=\"img\">\r\n <img src=\"{{img}}\" alt=\"\" class=\"image-responsive-height img-middle\"\r\n height=\"110px\" \r\n style=\"max-width: 110px; max-height: 110px;\"\r\n onclick=\"imgClick()\"\r\n />\r\n </div> \r\n </div>\r\n <div class=\"col-12 m-t-2 body-6 text-dark params-block\">\r\n <ng-template [ngTemplateOutlet]=\"params\"></ng-template> \r\n </div>\r\n </div>\r\n </div>\r\n\r\n <div class=\"col-lg-5 col-12 card-col\">\r\n <ng-template [ngTemplateOutlet]=\"second_col\"></ng-template> \r\n </div>\r\n \r\n <div class=\"col-lg-4 col-12 card-col mt-lg-0 mt-5\">\r\n <ng-template [ngTemplateOutlet]=\"third_col\"></ng-template> \r\n </div> \r\n\r\n </div>\r\n </pgcard>", styles: [".color-Dark-Gray-1{color:#373737!important}.color-Dark-Gray-2{color:#4d4d4d!important}.color-Red{color:#cf0106!important}.color-Green{color:#28b446!important}.color-Light-Gray-1{color:#929292!important}.color-Light-Gray-2{color:#eaeaea!important}.color-Light-Gray-3{color:#f3f3f3!important}.color-White{color:#fff!important}.color-Link{color:#0185cf!important}.b-color-Dark-Gray-1{background-color:#373737!important}.b-color-Dark-Gray-2{background-color:#4d4d4d!important}.b-color-Red{background-color:#cf0106!important}.b-color-Green{background-color:#28b446!important}.b-color-Light-Gray-1{background-color:#929292!important}.b-color-Light-Gray-2{background-color:#eaeaea!important}.b-color-Light-Gray-3{background-color:#f3f3f3!important}.b-color-White{background-color:#fff!important}.b-color-Link{background-color:#0185cf!important}.h1,h1{font-family:montserrat-bold;font-size:24px;line-height:29px;font-weight:700;text-transform:uppercase;color:#000}.h2,h2{font-family:montserrat-bold;font-size:24px;line-height:29px;font-weight:700;color:#000}.h3,:host::ng-deep .card-title span,h3{font-family:montserrat-regular;font-size:14px;line-height:20px;font-weight:400;text-transform:uppercase;color:#000}.h4,h4{font-family:montserrat-light;font-weight:300;font-size:13px;line-height:20px;text-transform:uppercase;color:#000}.h5,h5{font-family:montserrat-semibold;font-weight:600;font-size:13px;line-height:20px;color:#000}.h6,:host::ng-deep .plugin-type,h6{font-family:montserrat-medium;font-weight:500;font-size:12px;line-height:20px;text-transform:capitalize;color:#000}.body-1,body-1{font-family:Lato-Bold;font-size:18px;line-height:20px;font-weight:700;color:#000}.body-2,body-2{font-family:Lato-Regular;font-size:16px;line-height:28px;font-weight:400;color:#000}.body-3,body-3{font-family:Lato-Bold;font-size:14px;line-height:22px;font-weight:700;color:#000}.body-4,body-4{font-family:Lato-Regular;font-size:14px;line-height:22px;font-weight:400;color:#000}.body-5,:host::ng-deep .card-description,:host::ng-deep .card-no-description,body-5{font-family:Lato-Bold;font-weight:600;font-size:13px;line-height:18px;color:#000}.body-6,body-6{font-family:Lato-Regular;font-size:13px;line-height:16px;font-weight:400;color:#000}:host::ng-deep .params-block .row{margin-top:.75em}:host::ng-deep .params-block .row:last-child{margin-bottom:.75em}:host::ng-deep .card-col{min-height:220px}:host::ng-deep .header-link{opacity:1}:host::ng-deep .card-default{background-color:#f3f3f3;border-radius:5px}:host::ng-deep .card-title{width:80%;color:#000}:host::ng-deep .plugin-type{border-radius:5px 0 0 5px;margin-right:-20px;height:28px;padding:5px 15px;color:#fff}:host::ng-deep .card-description{height:40px;overflow-y:clip;color:#4d4d4d}:host::ng-deep .card-no-description{overflow-y:clip;height:60px;color:#929292}:host::ng-deep .card-img{padding:0;height:130px;background-color:#fff;display:flex;align-items:center;justify-content:center;width:-webkit-fill-available;margin-right:calc(var(--bs-gutter-x) * .5);margin-left:calc(var(--bs-gutter-x) * .5)}\n"] }]
723
- }], ctorParameters: function () { return [{ type: i1$1.Router }]; }, propDecorators: { title: [{
724
- type: ContentChild,
725
- args: ["title"]
726
- }], params: [{
727
- type: ContentChild,
728
- args: ["params"]
729
- }], second_col: [{
730
- type: ContentChild,
731
- args: ["second_col"]
732
- }], third_col: [{
733
- type: ContentChild,
734
- args: ["third_col"]
735
- }], type_text: [{
736
- type: Input
737
- }], type_color: [{
738
- type: Input
739
- }], img: [{
740
- type: Input
741
- }], imgUrl: [{
742
- type: Input
743
- }], description: [{
744
- type: Input
745
- }] } });
746
-
747
- /**
748
- * Example of usage:
749
- * <example-url>https://mef.dev/ui_kit_demo/view/card/card-simple</example-url>
750
- */
751
- class CardSimpleComponent {
752
- constructor() {
753
- this.isDisabled = false;
754
- }
755
- ngOnInit() {
756
- }
757
- }
758
- CardSimpleComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: CardSimpleComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
759
- CardSimpleComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.9", type: CardSimpleComponent, selector: "medev-card-simple", inputs: { isDisabled: ["disabled", "isDisabled"] }, queries: [{ propertyName: "card_title", first: true, predicate: ["card_title"], descendants: true }], ngImport: i0, template: "<div class=\"card-simple\" [ngClass]=\"{ 'unused-block':isDisabled }\">\r\n <div class=\"row m-2 body-1\" *ngIf=\"card_title\">\r\n <div class=\"col-12\">\r\n <ng-template [ngTemplateOutlet]=\"card_title\"></ng-template>\r\n </div>\r\n </div>\r\n <div class=\"row m-2\">\r\n <div class=\"col-12\">\r\n <ng-content></ng-content>\r\n </div>\r\n </div>\r\n</div>\r\n", styles: [".color-Dark-Gray-1{color:#373737!important}.color-Dark-Gray-2{color:#4d4d4d!important}.color-Red{color:#cf0106!important}.color-Green{color:#28b446!important}.color-Light-Gray-1{color:#929292!important}.color-Light-Gray-2{color:#eaeaea!important}.color-Light-Gray-3{color:#f3f3f3!important}.color-White{color:#fff!important}.color-Link{color:#0185cf!important}.b-color-Dark-Gray-1{background-color:#373737!important}.b-color-Dark-Gray-2{background-color:#4d4d4d!important}.b-color-Red{background-color:#cf0106!important}.b-color-Green{background-color:#28b446!important}.b-color-Light-Gray-1{background-color:#929292!important}.b-color-Light-Gray-2{background-color:#eaeaea!important}.b-color-Light-Gray-3{background-color:#f3f3f3!important}.b-color-White{background-color:#fff!important}.b-color-Link{background-color:#0185cf!important}.card-simple{background-color:#f3f3f3;padding:.5em;border-radius:5px}.unused-block{opacity:.6;pointer-events:none}\n"], dependencies: [{ kind: "directive", type: i1.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i1.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }] });
760
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: CardSimpleComponent, decorators: [{
761
- type: Component,
762
- args: [{ selector: 'medev-card-simple', template: "<div class=\"card-simple\" [ngClass]=\"{ 'unused-block':isDisabled }\">\r\n <div class=\"row m-2 body-1\" *ngIf=\"card_title\">\r\n <div class=\"col-12\">\r\n <ng-template [ngTemplateOutlet]=\"card_title\"></ng-template>\r\n </div>\r\n </div>\r\n <div class=\"row m-2\">\r\n <div class=\"col-12\">\r\n <ng-content></ng-content>\r\n </div>\r\n </div>\r\n</div>\r\n", styles: [".color-Dark-Gray-1{color:#373737!important}.color-Dark-Gray-2{color:#4d4d4d!important}.color-Red{color:#cf0106!important}.color-Green{color:#28b446!important}.color-Light-Gray-1{color:#929292!important}.color-Light-Gray-2{color:#eaeaea!important}.color-Light-Gray-3{color:#f3f3f3!important}.color-White{color:#fff!important}.color-Link{color:#0185cf!important}.b-color-Dark-Gray-1{background-color:#373737!important}.b-color-Dark-Gray-2{background-color:#4d4d4d!important}.b-color-Red{background-color:#cf0106!important}.b-color-Green{background-color:#28b446!important}.b-color-Light-Gray-1{background-color:#929292!important}.b-color-Light-Gray-2{background-color:#eaeaea!important}.b-color-Light-Gray-3{background-color:#f3f3f3!important}.b-color-White{background-color:#fff!important}.b-color-Link{background-color:#0185cf!important}.card-simple{background-color:#f3f3f3;padding:.5em;border-radius:5px}.unused-block{opacity:.6;pointer-events:none}\n"] }]
763
- }], ctorParameters: function () { return []; }, propDecorators: { isDisabled: [{
764
- type: Input,
765
- args: ["disabled"]
766
- }], card_title: [{
767
- type: ContentChild,
768
- args: ["card_title"]
769
- }] } });
770
-
771
- function toBoolean(value) {
772
- return value === '' || (value && value !== 'false');
773
- }
774
-
775
- /* tslint:disable:no-any */
776
- class OptionPipe {
777
- // TODO: enable type checking for this method
778
- transform(options, value) {
779
- if (value.searchText) {
780
- let _options = options.filter(option => option.Label &&
781
- option.Label.toLowerCase().indexOf(value.searchText.toLowerCase()) !==
782
- -1);
783
- if (value.tags) {
784
- _options = options.filter(option => option.Label &&
785
- option.Label.toLowerCase() === value.searchText.toLowerCase());
786
- }
787
- if (_options.length) {
788
- return _options;
789
- }
790
- else {
791
- return [
792
- {
793
- Value: value.value,
794
- _value: value.value,
795
- Disabled: value.disabled,
796
- _disabled: value.disabled,
797
- Label: value.notFoundContent,
798
- _label: value.notFoundContent
799
- }
800
- ];
801
- }
802
- }
803
- else {
804
- return options;
805
- }
806
- }
807
- }
808
- OptionPipe.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: OptionPipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe });
809
- OptionPipe.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "15.2.9", ngImport: i0, type: OptionPipe, name: "OptionPipe" });
810
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: OptionPipe, decorators: [{
811
- type: Pipe,
812
- args: [{ name: "OptionPipe" }]
813
- }] });
814
-
815
- /**
816
- * complex but work well
817
- * TODO: rebuild latter
818
- */
819
- /**
820
- * Example of usage:
821
- * <example-url>https://mef.dev/ui_kit_demo/view/select</example-url>
822
- */
823
- class MefDevSelectComponent {
824
- constructor(_elementRef, _renderer, cDRef) {
825
- this._elementRef = _elementRef;
826
- this._renderer = _renderer;
827
- this.cDRef = cDRef;
828
- this._allowClear = false;
829
- this._disabled = false;
830
- this._isTags = false;
831
- this._isMultiple = false;
832
- this._keepUnListOptions = false;
833
- this._showSearch = false;
834
- this._isOpen = false;
835
- this._prefixCls = "pg-select";
836
- this._classList = [];
837
- this._dropDownPrefixCls = `${this._prefixCls}-dropdown`;
838
- this._selectionPrefixCls = `${this._prefixCls}-selection`;
839
- this._placeholder = "placeholder";
840
- this._notFoundContent = "No Content";
841
- this._searchText = "";
842
- this._triggerWidth = 0;
843
- this._selectedOptions = new Set();
844
- this._options = [];
845
- this._cacheOptions = [];
846
- this._filterOptions = [];
847
- this._tagsOptions = [];
848
- this._isMultiInit = false;
849
- this._dropDownPosition = "bottom";
850
- this._composing = false;
851
- // ngModel Access
852
- this.onChange = () => null;
853
- this.onTouched = () => null;
854
- this.SearchChange = new EventEmitter();
855
- this.change = new EventEmitter();
856
- this.OpenChange = new EventEmitter();
857
- this.ScrollToBottom = new EventEmitter();
858
- this.Filter = true;
859
- this.MaxMultiple = Infinity;
860
- this.FirstDefault = false;
861
- /** new -option insert or new tags insert */
862
- // @ts-ignore
863
- this.addOption = option => {
864
- this._options.push(option);
865
- if (!this._isTags) {
866
- if (option.Value) {
867
- this.updateSelectedOption(this._value);
868
- }
869
- else {
870
- this.forceUpdateSelectedOption(this._value);
871
- }
872
- }
873
- };
874
- /** cancel select multiple option */ // @ts-ignore
875
- this.unSelectMultipleOption = (option, $event, emitChange = true) => {
876
- this._operatingMultipleOption = option;
877
- this._selectedOptions.delete(option);
878
- if (emitChange) {
879
- this.emitMultipleOptions();
880
- }
881
- // 对Tag进行特殊处理
882
- if (this._isTags &&
883
- this._options.indexOf(option) !== -1 &&
884
- this._tagsOptions.indexOf(option) !== -1) {
885
- this.removeOption(option);
886
- this._tagsOptions.splice(this._tagsOptions.indexOf(option), 1);
887
- }
888
- if ($event) {
889
- $event.preventDefault();
890
- $event.stopPropagation();
891
- }
892
- };
893
- this._el = this._elementRef.nativeElement;
894
- }
895
- set AllowClear(value) {
896
- this._allowClear = toBoolean(value);
897
- }
898
- get AllowClear() {
899
- return this._allowClear;
900
- }
901
- set KeepUnListOptions(value) {
902
- this._keepUnListOptions = toBoolean(value);
903
- }
904
- get KeepUnListOptions() {
905
- return this._keepUnListOptions;
906
- }
907
- set Mode(value) {
908
- this._mode = value;
909
- if (this._mode === "multiple") {
910
- this.Multiple = true;
911
- }
912
- else if (this._mode === "tags") {
913
- this.Tags = true;
914
- }
915
- else if (this._mode === "combobox") {
916
- this.ShowSearch = true;
917
- }
918
- }
919
- set Multiple(value) {
920
- this._isMultiple = toBoolean(value);
921
- if (this._isMultiple) {
922
- this.ShowSearch = true;
923
- }
924
- }
925
- get Multiple() {
926
- return this._isMultiple;
927
- }
928
- set PlaceHolder(value) {
929
- this._placeholder = value;
930
- }
931
- get PlaceHolder() {
932
- return this._placeholder;
933
- }
934
- set NotFoundContent(value) {
935
- this._notFoundContent = value;
936
- }
937
- get NotFoundContent() {
938
- return this._notFoundContent;
939
- }
940
- set Size(value) {
941
- // @ts-ignore
942
- this._size = { large: "lg", small: "sm" }[value];
943
- this.setClassMap();
944
- }
945
- get Size() {
946
- return this._size;
947
- }
948
- set ShowSearch(value) {
949
- this._showSearch = toBoolean(value);
950
- }
951
- get ShowSearch() {
952
- return this._showSearch;
953
- }
954
- set Tags(value) {
955
- const isTags = toBoolean(value);
956
- this._isTags = isTags;
957
- this.Multiple = isTags;
958
- }
959
- get Tags() {
960
- return this._isTags;
961
- }
962
- set Disabled(value) {
963
- this._disabled = toBoolean(value);
964
- this.closeDropDown();
965
- this.setClassMap();
966
- }
967
- get Disabled() {
968
- return this._disabled;
969
- }
970
- set Open(value) {
971
- const isOpen = toBoolean(value);
972
- if (this._isOpen === isOpen) {
973
- return;
974
- }
975
- if (isOpen) {
976
- this.scrollToActive();
977
- this._setTriggerWidth();
978
- }
979
- this._isOpen = isOpen;
980
- this.OpenChange.emit(this._isOpen);
981
- this.setClassMap();
982
- if (this._isOpen) {
983
- setTimeout(() => {
984
- this.checkDropDownScroll();
985
- });
986
- }
987
- }
988
- get Open() {
989
- return this._isOpen;
990
- }
991
- /** -option remove or tags remove */
992
- removeOption(option) {
993
- this._options.splice(this._options.indexOf(option), 1);
994
- if (!this._isTags) {
995
- this.forceUpdateSelectedOption(this._value);
996
- }
997
- }
998
- /** dropdown position changed */
999
- onPositionChange(position) {
1000
- this._dropDownPosition = position.connectionPair.originY;
1001
- }
1002
- compositionStart() {
1003
- this._composing = true;
1004
- }
1005
- compositionEnd() {
1006
- this._composing = false;
1007
- }
1008
- /** clear single selected option */
1009
- clearSelect($event) {
1010
- if ($event) {
1011
- $event.preventDefault();
1012
- $event.stopPropagation();
1013
- } // @ts-ignore
1014
- this._selectedOption = null; // @ts-ignore
1015
- this.Value = null; // @ts-ignore
1016
- this.onChange(null);
1017
- }
1018
- /** click dropdown option by user */
1019
- clickOption(option, $event) {
1020
- if (!option) {
1021
- return;
1022
- }
1023
- this.chooseOption(option, true, $event);
1024
- this.clearSearchText();
1025
- if (!this._isMultiple) {
1026
- this.Open = false;
1027
- }
1028
- }
1029
- /** choose option */
1030
- chooseOption(option, isUserClick = false, $event) {
1031
- if ($event) {
1032
- $event.preventDefault();
1033
- $event.stopPropagation();
1034
- }
1035
- this._activeFilterOption = option;
1036
- if (option && !option.Disabled) {
1037
- if (!this.Multiple) {
1038
- this._selectedOption = option;
1039
- this._value = option.Value;
1040
- if (isUserClick) {
1041
- this.change.next(this._value);
1042
- this.onChange(option.Value);
1043
- }
1044
- }
1045
- else {
1046
- if (isUserClick) {
1047
- this.isInSet(this._selectedOptions, option)
1048
- ? this.unSelectMultipleOption(option)
1049
- : this.selectMultipleOption(option);
1050
- }
1051
- }
1052
- }
1053
- }
1054
- updateWidth(element, text) {
1055
- if (text) {
1056
- /** wait for scroll width change */ // @ts-ignore
1057
- setTimeout(_ => {
1058
- this._renderer.setStyle(element, "width", `${element.scrollWidth}px`);
1059
- });
1060
- }
1061
- else {
1062
- this._renderer.removeStyle(element, "width");
1063
- }
1064
- }
1065
- /** determine if option in set */
1066
- isInSet(set, option) {
1067
- return Array.from(set).find((data) => data.Value === option.Value);
1068
- }
1069
- /** select multiple option */
1070
- selectMultipleOption(option, $event) {
1071
- /** if tags do push to tag option */
1072
- if (this._isTags &&
1073
- this._options.indexOf(option) === -1 &&
1074
- this._tagsOptions.indexOf(option) === -1) {
1075
- this.addOption(option);
1076
- this._tagsOptions.push(option);
1077
- }
1078
- this._operatingMultipleOption = option;
1079
- if (this._selectedOptions.size < this.MaxMultiple) {
1080
- this._selectedOptions.add(option);
1081
- }
1082
- this.emitMultipleOptions();
1083
- if ($event) {
1084
- $event.preventDefault();
1085
- $event.stopPropagation();
1086
- }
1087
- }
1088
- /** emit multiple options */
1089
- emitMultipleOptions() {
1090
- if (this._isMultiInit) {
1091
- return;
1092
- }
1093
- const arrayOptions = Array.from(this._selectedOptions);
1094
- this._value = arrayOptions.map(item => item.Value);
1095
- this.onChange(this._value);
1096
- }
1097
- /** update selected option when add remove option etc */
1098
- updateSelectedOption(currentModelValue, triggerByNgModel = false) {
1099
- if (currentModelValue == null) {
1100
- return;
1101
- }
1102
- if (this.Multiple) {
1103
- const selectedOptions = this._options.filter(item => {
1104
- return item != null && currentModelValue.indexOf(item.Value) !== -1;
1105
- });
1106
- if ((this.KeepUnListOptions || this.Tags) && !triggerByNgModel) {
1107
- const _selectedOptions = Array.from(this._selectedOptions);
1108
- selectedOptions.forEach(option => {
1109
- const _exist = _selectedOptions.some(item => item._value == option._value);
1110
- if (!_exist) {
1111
- this._selectedOptions.add(option);
1112
- }
1113
- });
1114
- }
1115
- else {
1116
- this._selectedOptions = new Set();
1117
- selectedOptions.forEach(option => {
1118
- this._selectedOptions.add(option);
1119
- });
1120
- }
1121
- }
1122
- else {
1123
- const selectedOption = this._options.filter(item => {
1124
- return item != null && item.Value == currentModelValue;
1125
- });
1126
- this.chooseOption(selectedOption[0]);
1127
- }
1128
- }
1129
- forceUpdateSelectedOption(value) {
1130
- /** trigger dirty check */ // @ts-ignore
1131
- setTimeout(_ => {
1132
- this.updateSelectedOption(value);
1133
- });
1134
- }
1135
- get Value() {
1136
- return this._value;
1137
- }
1138
- set Value(value) {
1139
- this._updateValue(value);
1140
- }
1141
- clearAllSelectedOption(emitChange = true) {
1142
- this._selectedOptions.forEach(item => {
1143
- this.unSelectMultipleOption(item, null, emitChange);
1144
- });
1145
- }
1146
- handleKeyEnterEvent(event) {
1147
- /** when composing end */
1148
- if (!this._composing && this._isOpen) {
1149
- event.preventDefault();
1150
- event.stopPropagation();
1151
- this.updateFilterOption(false);
1152
- this.clickOption(this._activeFilterOption);
1153
- }
1154
- }
1155
- handleKeyBackspaceEvent(event) {
1156
- if (!this._searchText && !this._composing && this._isMultiple) {
1157
- event.preventDefault();
1158
- const lastOption = Array.from(this._selectedOptions).pop();
1159
- this.unSelectMultipleOption(lastOption);
1160
- }
1161
- }
1162
- handleKeyDownEvent($event) {
1163
- if (this._isOpen) {
1164
- $event.preventDefault();
1165
- $event.stopPropagation();
1166
- this._activeFilterOption = this.nextOption(this._activeFilterOption, this._filterOptions.filter(w => !w.Disabled));
1167
- this.scrollToActive();
1168
- }
1169
- }
1170
- handleKeyUpEvent($event) {
1171
- if (this._isOpen) {
1172
- $event.preventDefault();
1173
- $event.stopPropagation();
1174
- this._activeFilterOption = this.preOption(this._activeFilterOption, this._filterOptions.filter(w => !w.Disabled));
1175
- this.scrollToActive();
1176
- }
1177
- }
1178
- preOption(option, options) {
1179
- return options[options.indexOf(option) - 1] || options[options.length - 1];
1180
- }
1181
- nextOption(option, options) {
1182
- return options[options.indexOf(option) + 1] || options[0];
1183
- }
1184
- clearSearchText() {
1185
- this._searchText = "";
1186
- this.updateFilterOption();
1187
- }
1188
- updateFilterOption(updateActiveFilter = true) {
1189
- if (this.Filter) {
1190
- this._filterOptions = new OptionPipe().transform(this._options, {
1191
- searchText: this._searchText,
1192
- tags: this._isTags,
1193
- notFoundContent: this._isTags
1194
- ? this._searchText
1195
- : this._notFoundContent,
1196
- disabled: !this._isTags,
1197
- value: this._isTags ? this._searchText : "disabled"
1198
- });
1199
- }
1200
- else {
1201
- this._filterOptions = this._options;
1202
- }
1203
- /** TODO: cause pre & next key selection not work */
1204
- if (updateActiveFilter && !this._selectedOption) {
1205
- this._activeFilterOption = this._filterOptions[0];
1206
- }
1207
- }
1208
- onSearchChange(searchValue) {
1209
- this.SearchChange.emit(searchValue);
1210
- }
1211
- onClick(e) {
1212
- e.preventDefault();
1213
- if (!this._disabled) {
1214
- this.Open = !this.Open;
1215
- if (this.ShowSearch) {
1216
- /** wait for search display */ // @ts-ignore
1217
- setTimeout(_ => {
1218
- this.searchInputElementRef.nativeElement.focus();
1219
- });
1220
- }
1221
- }
1222
- }
1223
- onKeyDown(e) {
1224
- const keyCode = e.keyCode;
1225
- if (keyCode === TAB && this.Open) {
1226
- this.Open = false;
1227
- return;
1228
- }
1229
- if ((keyCode !== DOWN_ARROW && keyCode !== ENTER) || this.Open) {
1230
- return;
1231
- }
1232
- e.preventDefault();
1233
- if (!this._disabled) {
1234
- this.Open = true;
1235
- if (this.ShowSearch) {
1236
- /** wait for search display */ // @ts-ignore
1237
- setTimeout(_ => {
1238
- this.searchInputElementRef.nativeElement.focus();
1239
- });
1240
- }
1241
- }
1242
- }
1243
- closeDropDown() {
1244
- if (!this.Open) {
1245
- return;
1246
- }
1247
- this.onTouched();
1248
- if (this.Multiple) {
1249
- this._renderer.removeStyle(this.searchInputElementRef.nativeElement, "width");
1250
- }
1251
- this.clearSearchText();
1252
- this.Open = false;
1253
- }
1254
- setClassMap() {
1255
- this._classList.forEach(_className => {
1256
- this._renderer.removeClass(this._el, _className);
1257
- }); // @ts-ignore
1258
- this._classList = [
1259
- this._prefixCls,
1260
- this._mode === "combobox" && `${this._prefixCls}-combobox`,
1261
- !this._disabled && `${this._prefixCls}-enabled`,
1262
- this._disabled && `${this._prefixCls}-disabled`,
1263
- this._isOpen && `${this._prefixCls}-open`,
1264
- this._showSearch && `${this._prefixCls}-show-search`,
1265
- this._size && `${this._prefixCls}-${this._size}`
1266
- ].filter(item => {
1267
- return !!item;
1268
- });
1269
- this._classList.forEach(_className => {
1270
- this._renderer.addClass(this._el, _className);
1271
- });
1272
- this._selectionClassMap = {
1273
- [this._selectionPrefixCls]: true,
1274
- [`${this._selectionPrefixCls}--single`]: !this.Multiple,
1275
- [`${this._selectionPrefixCls}--multiple`]: this.Multiple
1276
- };
1277
- }
1278
- setDropDownClassMap() {
1279
- this._dropDownClassMap = {
1280
- [this._dropDownPrefixCls]: true,
1281
- ["component-select"]: this._mode === "combobox",
1282
- [`${this._dropDownPrefixCls}--single`]: !this.Multiple,
1283
- [`${this._dropDownPrefixCls}--multiple`]: this.Multiple,
1284
- [`${this._dropDownPrefixCls}-placement-bottomLeft`]: this._dropDownPosition === "bottom",
1285
- [`${this._dropDownPrefixCls}-placement-topLeft`]: this._dropDownPosition === "top"
1286
- };
1287
- }
1288
- scrollToActive() {
1289
- /** wait for dropdown display */ // @ts-ignore
1290
- setTimeout(_ => {
1291
- if (this._activeFilterOption && this._activeFilterOption.Value) {
1292
- const index = this._filterOptions.findIndex(option => option.Value === this._activeFilterOption.Value);
1293
- try {
1294
- const scrollPane = this.dropdownUl.nativeElement.children[index];
1295
- // TODO: scrollIntoViewIfNeeded is not a standard API, why doing so?
1296
- /* tslint:disable-next-line:no-any */
1297
- scrollPane.scrollIntoViewIfNeeded(false);
1298
- }
1299
- catch (e) { }
1300
- }
1301
- });
1302
- }
1303
- flushComponentState() {
1304
- this.updateFilterOption();
1305
- if (!this.Multiple) {
1306
- this.updateSelectedOption(this._value);
1307
- }
1308
- else {
1309
- if (this._value) {
1310
- this.updateSelectedOption(this._value);
1311
- }
1312
- }
1313
- }
1314
- _setTriggerWidth() {
1315
- this._triggerWidth = this._getTriggerRect().width;
1316
- /** should remove after after https://github.com/angular/material2/pull/8765 merged **/
1317
- if (this._cdkOverlay && this._cdkOverlay.overlayRef) {
1318
- this._cdkOverlay.overlayRef.updateSize({
1319
- width: this._triggerWidth
1320
- });
1321
- }
1322
- }
1323
- _getTriggerRect() {
1324
- return this.trigger.nativeElement.getBoundingClientRect();
1325
- }
1326
- writeValue(value) {
1327
- this._updateValue(value, false);
1328
- }
1329
- registerOnChange(fn) {
1330
- this.onChange = fn;
1331
- }
1332
- registerOnTouched(fn) {
1333
- this.onTouched = fn;
1334
- }
1335
- setDisabledState(isDisabled) {
1336
- this.Disabled = isDisabled;
1337
- }
1338
- dropDownScroll(ul) {
1339
- if (ul && ul.scrollHeight - ul.scrollTop === ul.clientHeight) {
1340
- this.ScrollToBottom.emit(true);
1341
- }
1342
- }
1343
- checkDropDownScroll() {
1344
- if (this.dropdownUl &&
1345
- this.dropdownUl.nativeElement.scrollHeight ===
1346
- this.dropdownUl.nativeElement.clientHeight) {
1347
- this.ScrollToBottom.emit(true);
1348
- }
1349
- }
1350
- ngAfterContentInit() {
1351
- if (this._value != null) {
1352
- this.flushComponentState();
1353
- }
1354
- }
1355
- ngOnInit() {
1356
- this.updateFilterOption();
1357
- this.setClassMap();
1358
- this.setDropDownClassMap();
1359
- }
1360
- ngAfterContentChecked() {
1361
- if (this._cacheOptions !== this._options) {
1362
- /** update filter option after every content check cycle */
1363
- this.updateFilterOption();
1364
- this._cacheOptions = this._options;
1365
- }
1366
- else {
1367
- this.updateFilterOption(false);
1368
- }
1369
- if (this.FirstDefault) {
1370
- if (!this._value && this._options) {
1371
- if (this._options[0] !== undefined && this._options[0].Value) {
1372
- this.chooseOption(this._options[0], false);
1373
- setTimeout(() => {
1374
- this.onChange(this._options[0].Value);
1375
- });
1376
- }
1377
- }
1378
- }
1379
- }
1380
- _updateValue(value, emitChange = true) {
1381
- if (this._value === value) {
1382
- return;
1383
- }
1384
- if (value == null && this.Multiple) {
1385
- this._value = [];
1386
- }
1387
- else {
1388
- this._value = value;
1389
- }
1390
- if (!this.Multiple) {
1391
- if (value == null) { // @ts-ignore
1392
- this._selectedOption = null;
1393
- }
1394
- else {
1395
- this.updateSelectedOption(value);
1396
- }
1397
- }
1398
- else {
1399
- if (value) {
1400
- if (value.length === 0) {
1401
- this.clearAllSelectedOption(emitChange);
1402
- }
1403
- else {
1404
- this.updateSelectedOption(value, true);
1405
- }
1406
- }
1407
- else if (value == null) {
1408
- this.clearAllSelectedOption(emitChange);
1409
- }
1410
- }
1411
- }
1412
- }
1413
- MefDevSelectComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: MefDevSelectComponent, deps: [{ token: i0.ElementRef }, { token: i0.Renderer2 }, { token: i0.ChangeDetectorRef }], target: i0.ɵɵFactoryTarget.Component });
1414
- MefDevSelectComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.9", type: MefDevSelectComponent, selector: "mefdev-select", inputs: { Filter: "Filter", MaxMultiple: "MaxMultiple", FirstDefault: "FirstDefault", AllowClear: "AllowClear", KeepUnListOptions: "KeepUnListOptions", Mode: "Mode", Multiple: "Multiple", PlaceHolder: "PlaceHolder", NotFoundContent: "NotFoundContent", Size: "Size", ShowSearch: "ShowSearch", Tags: "Tags", Disabled: "Disabled", Open: "Open" }, outputs: { SearchChange: "SearchChange", change: "change", OpenChange: "OpenChange", ScrollToBottom: "ScrollToBottom" }, host: { listeners: { "click": "onClick($event)", "keydown": "onKeyDown($event)" } }, providers: [
1415
- {
1416
- provide: NG_VALUE_ACCESSOR,
1417
- useExisting: forwardRef(() => MefDevSelectComponent),
1418
- multi: true
1419
- }
1420
- ], viewQueries: [{ propertyName: "searchInputElementRef", first: true, predicate: ["searchInput"], descendants: true }, { propertyName: "trigger", first: true, predicate: ["trigger"], descendants: true }, { propertyName: "dropdownUl", first: true, predicate: ["dropdownUl"], descendants: true }, { propertyName: "_cdkOverlay", first: true, predicate: CdkConnectedOverlay, descendants: true }], ngImport: i0, template: "<div tabindex=\"0\" #trigger cdkOverlayOrigin #origin=\"cdkOverlayOrigin\" [ngClass]=\"_selectionClassMap\"\r\n (keydown.Enter)=\"handleKeyEnterEvent($event)\" (keydown.Backspace)=\"handleKeyBackspaceEvent($event)\"\r\n (keydown.ArrowUp)=\"handleKeyUpEvent($event)\" (keydown.ArrowDown)=\"handleKeyDownEvent($event)\">\r\n <div class=\"pg-select-selection__rendered\" *ngIf=\"!ShowSearch\">\r\n <div class=\"pg-select-selection__placeholder\">\r\n <ng-template [ngIf]=\"!_selectedOption\">\r\n {{ PlaceHolder }}\r\n </ng-template>\r\n </div>\r\n <div class=\"pg-select-selection-selected-value\">\r\n {{ _selectedOption?.Label }}\r\n </div>\r\n </div>\r\n <div class=\"pg-select-selection__rendered\" *ngIf=\"ShowSearch\">\r\n <div [hidden]=\"_searchText||(!Open&&_selectedOption)||_selectedOptions.size\"\r\n class=\"pg-select-selection__placeholder\">\r\n <ng-template [ngIf]=\"(!_composing)&&_selectedOption\">\r\n {{ _selectedOption.Label }}\r\n </ng-template>\r\n <ng-template [ngIf]=\"(!_composing)&&(!_selectedOption)\">\r\n {{ PlaceHolder }}\r\n </ng-template>\r\n </div>\r\n <ul *ngIf=\"Multiple\">\r\n <li *ngFor=\"let option of _selectedOptions\" [@tagAnimation] [attr.title]=\"option?.Label || option?.Value\"\r\n class=\"pg-select-selection__choice\" style=\"-webkit-user-select: none;\">\r\n <span class=\"pg-select-selection__choice__remove\" (click)=\"unSelectMultipleOption(option,$event)\"></span>\r\n <div class=\"pg-select-selection__choice__content\">{{ option?.Label }}</div>\r\n </li>\r\n <li class=\"pg-select-search pg-select-search--inline\">\r\n <div class=\"pg-select-search__field__wrap\">\r\n <input class=\"pg-select-search__field\" (compositionstart)=\"compositionStart()\"\r\n (compositionend)=\"compositionEnd();updateWidth(searchInput,_searchText);\" [(ngModel)]=\"_searchText\"\r\n (ngModelChange)=\"updateFilterOption();onSearchChange($event);\"\r\n (keydown)=\"updateWidth(searchInput,_searchText)\" (input)=\"updateWidth(searchInput,_searchText)\"\r\n (blur)=\"onTouched()\" #searchInput>\r\n <span class=\"pg-select-search__field__mirror\"></span></div>\r\n </li>\r\n </ul>\r\n <div *ngIf=\"!Multiple\" class=\"pg-select-selection-selected-value\" [hidden]=\"!(_selectedOption?.Label)||Open\">\r\n {{ _selectedOption?.Label }}\r\n </div>\r\n <div *ngIf=\"!Multiple\" [hidden]=\"!Open\" class=\"pg-select-search pg-select-search--inline\">\r\n <div class=\"pg-select-search__field__wrap\">\r\n <input class=\"pg-select-search__field\" (blur)=\"onTouched()\" (compositionstart)=\"compositionStart()\"\r\n (compositionend)=\"compositionEnd()\" [(ngModel)]=\"_searchText\"\r\n (ngModelChange)=\"updateFilterOption();onSearchChange($event);\" #searchInput>\r\n <span class=\"pg-select-search__field__mirror\"></span>\r\n </div>\r\n </div>\r\n </div>\r\n <span (click)=\"onTouched();clearSelect($event)\" class=\"pg-select-selection__clear\" style=\"-webkit-user-select: none;\"\r\n *ngIf=\"_selectedOption?.Label&&AllowClear&&!Multiple\">\r\n </span>\r\n <span class=\"pg-select-arrow\"><b></b></span>\r\n</div>\r\n<ng-template cdkConnectedOverlay cdkConnectedOverlayHasBackdrop [cdkConnectedOverlayOrigin]=\"origin\"\r\n (backdropClick)=\"closeDropDown()\" (detach)=\"closeDropDown();\" (positionChange)=\"onPositionChange($event)\"\r\n [cdkConnectedOverlayWidth]=\"_triggerWidth\" [cdkConnectedOverlayOpen]=\"_isOpen\">\r\n <div [ngClass]=\"_dropDownClassMap\" [@dropDownAnimation]=\"_dropDownPosition\">\r\n <div style=\"overflow: auto;\">\r\n <ul class=\"pg-select-dropdown-menu pg-select-dropdown-menu-vertical pg-select-dropdown-menu-root\" #dropdownUl\r\n (scroll)=\"dropDownScroll(dropdownUl)\">\r\n <li *ngFor=\"let option of _filterOptions\" [class.pg-select-dropdown-menu-item-disabled]=\"option.Disabled\"\r\n [class.pg-select-dropdown-menu-item-active]=\"option.Value == _activeFilterOption?.Value\"\r\n [class.pg-select-dropdown-menu-item-selected]=\"(option.Value==(_selectedOption?.Value))||(isInSet(_selectedOptions,option))\"\r\n class=\"pg-select-dropdown-menu-item\" (click)=\"clickOption(option,$event)\">\r\n <ng-template *ngIf=\"option.OptionTemplate\" [ngTemplateOutlet]=\"option.OptionTemplate\">\r\n </ng-template>\r\n <ng-template [ngIf]=\"!option.OptionTemplate\">\r\n {{ option.Label }}\r\n </ng-template>\r\n </li>\r\n </ul>\r\n </div>\r\n </div>\r\n</ng-template>", dependencies: [{ kind: "directive", type: i1.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: i1.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i1.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "directive", type: i2.DefaultValueAccessor, selector: "input:not([type=checkbox])[formControlName],textarea[formControlName],input:not([type=checkbox])[formControl],textarea[formControl],input:not([type=checkbox])[ngModel],textarea[ngModel],[ngDefaultControl]" }, { kind: "directive", type: i2.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i2.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { kind: "directive", type: i3.CdkConnectedOverlay, selector: "[cdk-connected-overlay], [connected-overlay], [cdkConnectedOverlay]", inputs: ["cdkConnectedOverlayOrigin", "cdkConnectedOverlayPositions", "cdkConnectedOverlayPositionStrategy", "cdkConnectedOverlayOffsetX", "cdkConnectedOverlayOffsetY", "cdkConnectedOverlayWidth", "cdkConnectedOverlayHeight", "cdkConnectedOverlayMinWidth", "cdkConnectedOverlayMinHeight", "cdkConnectedOverlayBackdropClass", "cdkConnectedOverlayPanelClass", "cdkConnectedOverlayViewportMargin", "cdkConnectedOverlayScrollStrategy", "cdkConnectedOverlayOpen", "cdkConnectedOverlayDisableClose", "cdkConnectedOverlayTransformOriginOn", "cdkConnectedOverlayHasBackdrop", "cdkConnectedOverlayLockPosition", "cdkConnectedOverlayFlexibleDimensions", "cdkConnectedOverlayGrowAfterOpen", "cdkConnectedOverlayPush"], outputs: ["backdropClick", "positionChange", "attach", "detach", "overlayKeydown", "overlayOutsideClick"], exportAs: ["cdkConnectedOverlay"] }, { kind: "directive", type: i3.CdkOverlayOrigin, selector: "[cdk-overlay-origin], [overlay-origin], [cdkOverlayOrigin]", exportAs: ["cdkOverlayOrigin"] }], animations: [trigger('dropDownAnimation', [
1421
- state('bottom', style({
1422
- opacity: 1,
1423
- transform: 'scaleY(1)',
1424
- transformOrigin: '0% 0%'
1425
- })),
1426
- transition('void => bottom', [
1427
- style({
1428
- opacity: 0,
1429
- transform: 'scaleY(0)',
1430
- transformOrigin: '0% 0%'
1431
- }),
1432
- animate('150ms cubic-bezier(0.25, 0.8, 0.25, 1)')
1433
- ]),
1434
- state('top', style({
1435
- opacity: 1,
1436
- transform: 'scaleY(1)',
1437
- transformOrigin: '0% 100%'
1438
- })),
1439
- transition('void => top', [
1440
- style({
1441
- opacity: 0,
1442
- transform: 'scaleY(0)',
1443
- transformOrigin: '0% 100%'
1444
- }),
1445
- animate('150ms cubic-bezier(0.25, 0.8, 0.25, 1)')
1446
- ]),
1447
- transition('* => void', [
1448
- animate('250ms 100ms linear', style({ opacity: 0 }))
1449
- ])
1450
- ]),
1451
- trigger('tagAnimation', [
1452
- state('*', style({ opacity: 1, transform: 'scale(1)' })),
1453
- transition('void => *', [
1454
- style({ opacity: 0, transform: 'scale(0)' }),
1455
- animate('150ms linear')
1456
- ]),
1457
- state('void', style({ opacity: 0, transform: 'scale(0)' })),
1458
- transition('* => void', [
1459
- style({ opacity: 1, transform: 'scale(1)' }),
1460
- animate('150ms linear')
1461
- ])
1462
- ])], encapsulation: i0.ViewEncapsulation.None });
1463
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: MefDevSelectComponent, decorators: [{
1464
- type: Component,
1465
- args: [{ selector: "mefdev-select", encapsulation: ViewEncapsulation.None, providers: [
1466
- {
1467
- provide: NG_VALUE_ACCESSOR,
1468
- useExisting: forwardRef(() => MefDevSelectComponent),
1469
- multi: true
1470
- }
1471
- ], animations: [trigger('dropDownAnimation', [
1472
- state('bottom', style({
1473
- opacity: 1,
1474
- transform: 'scaleY(1)',
1475
- transformOrigin: '0% 0%'
1476
- })),
1477
- transition('void => bottom', [
1478
- style({
1479
- opacity: 0,
1480
- transform: 'scaleY(0)',
1481
- transformOrigin: '0% 0%'
1482
- }),
1483
- animate('150ms cubic-bezier(0.25, 0.8, 0.25, 1)')
1484
- ]),
1485
- state('top', style({
1486
- opacity: 1,
1487
- transform: 'scaleY(1)',
1488
- transformOrigin: '0% 100%'
1489
- })),
1490
- transition('void => top', [
1491
- style({
1492
- opacity: 0,
1493
- transform: 'scaleY(0)',
1494
- transformOrigin: '0% 100%'
1495
- }),
1496
- animate('150ms cubic-bezier(0.25, 0.8, 0.25, 1)')
1497
- ]),
1498
- transition('* => void', [
1499
- animate('250ms 100ms linear', style({ opacity: 0 }))
1500
- ])
1501
- ]),
1502
- trigger('tagAnimation', [
1503
- state('*', style({ opacity: 1, transform: 'scale(1)' })),
1504
- transition('void => *', [
1505
- style({ opacity: 0, transform: 'scale(0)' }),
1506
- animate('150ms linear')
1507
- ]),
1508
- state('void', style({ opacity: 0, transform: 'scale(0)' })),
1509
- transition('* => void', [
1510
- style({ opacity: 1, transform: 'scale(1)' }),
1511
- animate('150ms linear')
1512
- ])
1513
- ])], template: "<div tabindex=\"0\" #trigger cdkOverlayOrigin #origin=\"cdkOverlayOrigin\" [ngClass]=\"_selectionClassMap\"\r\n (keydown.Enter)=\"handleKeyEnterEvent($event)\" (keydown.Backspace)=\"handleKeyBackspaceEvent($event)\"\r\n (keydown.ArrowUp)=\"handleKeyUpEvent($event)\" (keydown.ArrowDown)=\"handleKeyDownEvent($event)\">\r\n <div class=\"pg-select-selection__rendered\" *ngIf=\"!ShowSearch\">\r\n <div class=\"pg-select-selection__placeholder\">\r\n <ng-template [ngIf]=\"!_selectedOption\">\r\n {{ PlaceHolder }}\r\n </ng-template>\r\n </div>\r\n <div class=\"pg-select-selection-selected-value\">\r\n {{ _selectedOption?.Label }}\r\n </div>\r\n </div>\r\n <div class=\"pg-select-selection__rendered\" *ngIf=\"ShowSearch\">\r\n <div [hidden]=\"_searchText||(!Open&&_selectedOption)||_selectedOptions.size\"\r\n class=\"pg-select-selection__placeholder\">\r\n <ng-template [ngIf]=\"(!_composing)&&_selectedOption\">\r\n {{ _selectedOption.Label }}\r\n </ng-template>\r\n <ng-template [ngIf]=\"(!_composing)&&(!_selectedOption)\">\r\n {{ PlaceHolder }}\r\n </ng-template>\r\n </div>\r\n <ul *ngIf=\"Multiple\">\r\n <li *ngFor=\"let option of _selectedOptions\" [@tagAnimation] [attr.title]=\"option?.Label || option?.Value\"\r\n class=\"pg-select-selection__choice\" style=\"-webkit-user-select: none;\">\r\n <span class=\"pg-select-selection__choice__remove\" (click)=\"unSelectMultipleOption(option,$event)\"></span>\r\n <div class=\"pg-select-selection__choice__content\">{{ option?.Label }}</div>\r\n </li>\r\n <li class=\"pg-select-search pg-select-search--inline\">\r\n <div class=\"pg-select-search__field__wrap\">\r\n <input class=\"pg-select-search__field\" (compositionstart)=\"compositionStart()\"\r\n (compositionend)=\"compositionEnd();updateWidth(searchInput,_searchText);\" [(ngModel)]=\"_searchText\"\r\n (ngModelChange)=\"updateFilterOption();onSearchChange($event);\"\r\n (keydown)=\"updateWidth(searchInput,_searchText)\" (input)=\"updateWidth(searchInput,_searchText)\"\r\n (blur)=\"onTouched()\" #searchInput>\r\n <span class=\"pg-select-search__field__mirror\"></span></div>\r\n </li>\r\n </ul>\r\n <div *ngIf=\"!Multiple\" class=\"pg-select-selection-selected-value\" [hidden]=\"!(_selectedOption?.Label)||Open\">\r\n {{ _selectedOption?.Label }}\r\n </div>\r\n <div *ngIf=\"!Multiple\" [hidden]=\"!Open\" class=\"pg-select-search pg-select-search--inline\">\r\n <div class=\"pg-select-search__field__wrap\">\r\n <input class=\"pg-select-search__field\" (blur)=\"onTouched()\" (compositionstart)=\"compositionStart()\"\r\n (compositionend)=\"compositionEnd()\" [(ngModel)]=\"_searchText\"\r\n (ngModelChange)=\"updateFilterOption();onSearchChange($event);\" #searchInput>\r\n <span class=\"pg-select-search__field__mirror\"></span>\r\n </div>\r\n </div>\r\n </div>\r\n <span (click)=\"onTouched();clearSelect($event)\" class=\"pg-select-selection__clear\" style=\"-webkit-user-select: none;\"\r\n *ngIf=\"_selectedOption?.Label&&AllowClear&&!Multiple\">\r\n </span>\r\n <span class=\"pg-select-arrow\"><b></b></span>\r\n</div>\r\n<ng-template cdkConnectedOverlay cdkConnectedOverlayHasBackdrop [cdkConnectedOverlayOrigin]=\"origin\"\r\n (backdropClick)=\"closeDropDown()\" (detach)=\"closeDropDown();\" (positionChange)=\"onPositionChange($event)\"\r\n [cdkConnectedOverlayWidth]=\"_triggerWidth\" [cdkConnectedOverlayOpen]=\"_isOpen\">\r\n <div [ngClass]=\"_dropDownClassMap\" [@dropDownAnimation]=\"_dropDownPosition\">\r\n <div style=\"overflow: auto;\">\r\n <ul class=\"pg-select-dropdown-menu pg-select-dropdown-menu-vertical pg-select-dropdown-menu-root\" #dropdownUl\r\n (scroll)=\"dropDownScroll(dropdownUl)\">\r\n <li *ngFor=\"let option of _filterOptions\" [class.pg-select-dropdown-menu-item-disabled]=\"option.Disabled\"\r\n [class.pg-select-dropdown-menu-item-active]=\"option.Value == _activeFilterOption?.Value\"\r\n [class.pg-select-dropdown-menu-item-selected]=\"(option.Value==(_selectedOption?.Value))||(isInSet(_selectedOptions,option))\"\r\n class=\"pg-select-dropdown-menu-item\" (click)=\"clickOption(option,$event)\">\r\n <ng-template *ngIf=\"option.OptionTemplate\" [ngTemplateOutlet]=\"option.OptionTemplate\">\r\n </ng-template>\r\n <ng-template [ngIf]=\"!option.OptionTemplate\">\r\n {{ option.Label }}\r\n </ng-template>\r\n </li>\r\n </ul>\r\n </div>\r\n </div>\r\n</ng-template>" }]
1514
- }], ctorParameters: function () { return [{ type: i0.ElementRef }, { type: i0.Renderer2 }, { type: i0.ChangeDetectorRef }]; }, propDecorators: { searchInputElementRef: [{
1515
- type: ViewChild,
1516
- args: ["searchInput"]
1517
- }], trigger: [{
1518
- type: ViewChild,
1519
- args: ["trigger"]
1520
- }], dropdownUl: [{
1521
- type: ViewChild,
1522
- args: ["dropdownUl"]
1523
- }], SearchChange: [{
1524
- type: Output
1525
- }], change: [{
1526
- type: Output
1527
- }], OpenChange: [{
1528
- type: Output
1529
- }], ScrollToBottom: [{
1530
- type: Output
1531
- }], Filter: [{
1532
- type: Input
1533
- }], MaxMultiple: [{
1534
- type: Input
1535
- }], FirstDefault: [{
1536
- type: Input
1537
- }], _cdkOverlay: [{
1538
- type: ViewChild,
1539
- args: [CdkConnectedOverlay]
1540
- }], AllowClear: [{
1541
- type: Input
1542
- }], KeepUnListOptions: [{
1543
- type: Input
1544
- }], Mode: [{
1545
- type: Input
1546
- }], Multiple: [{
1547
- type: Input
1548
- }], PlaceHolder: [{
1549
- type: Input
1550
- }], NotFoundContent: [{
1551
- type: Input
1552
- }], Size: [{
1553
- type: Input
1554
- }], ShowSearch: [{
1555
- type: Input
1556
- }], Tags: [{
1557
- type: Input
1558
- }], Disabled: [{
1559
- type: Input
1560
- }], Open: [{
1561
- type: Input
1562
- }], onClick: [{
1563
- type: HostListener,
1564
- args: ["click", ["$event"]]
1565
- }], onKeyDown: [{
1566
- type: HostListener,
1567
- args: ["keydown", ["$event"]]
1568
- }] } });
1569
-
1570
- /**
1571
- * @skipTemplateDoc true
1572
- */
1573
- class MefDevOptionComponent {
1574
- constructor(_Select) {
1575
- this._Select = _Select;
1576
- this._disabled = false;
1577
- }
1578
- set Value(value) {
1579
- if (this._value === value) {
1580
- return;
1581
- }
1582
- this._value = value;
1583
- }
1584
- get Value() {
1585
- return this._value;
1586
- }
1587
- set Label(value) {
1588
- if (this._label === value) {
1589
- return;
1590
- }
1591
- this._label = value;
1592
- }
1593
- get Label() {
1594
- return this._label;
1595
- }
1596
- set Disabled(value) {
1597
- this._disabled = toBoolean(value);
1598
- }
1599
- get Disabled() {
1600
- return this._disabled;
1601
- }
1602
- ngOnInit() {
1603
- this._Select.addOption(this);
1604
- }
1605
- ngOnDestroy() {
1606
- this._Select.removeOption(this);
1607
- }
1608
- }
1609
- MefDevOptionComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: MefDevOptionComponent, deps: [{ token: MefDevSelectComponent }], target: i0.ɵɵFactoryTarget.Component });
1610
- MefDevOptionComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.9", type: MefDevOptionComponent, selector: "mefdev-option", inputs: { Value: "Value", Label: "Label", Disabled: "Disabled" }, queries: [{ propertyName: "OptionTemplate", first: true, predicate: ["OptionTemplate"], descendants: true }], ngImport: i0, template: "<ng-content></ng-content>", encapsulation: i0.ViewEncapsulation.None });
1611
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: MefDevOptionComponent, decorators: [{
1612
- type: Component,
1613
- args: [{ selector: "mefdev-option", encapsulation: ViewEncapsulation.None, template: "<ng-content></ng-content>" }]
1614
- }], ctorParameters: function () { return [{ type: MefDevSelectComponent }]; }, propDecorators: { OptionTemplate: [{
1615
- type: ContentChild,
1616
- args: ["OptionTemplate"]
1617
- }], Value: [{
1618
- type: Input
1619
- }], Label: [{
1620
- type: Input
1621
- }], Disabled: [{
1622
- type: Input
1623
- }] } });
1624
-
1625
- class MefDevSelectModule {
1626
- }
1627
- MefDevSelectModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: MefDevSelectModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
1628
- MefDevSelectModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "15.2.9", ngImport: i0, type: MefDevSelectModule, declarations: [OptionPipe, MefDevOptionComponent, MefDevSelectComponent], imports: [CommonModule, FormsModule, OverlayModule], exports: [OptionPipe, MefDevOptionComponent, MefDevSelectComponent] });
1629
- MefDevSelectModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: MefDevSelectModule, imports: [CommonModule, FormsModule, OverlayModule] });
1630
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: MefDevSelectModule, decorators: [{
1631
- type: NgModule,
1632
- args: [{
1633
- imports: [CommonModule, FormsModule, OverlayModule],
1634
- declarations: [OptionPipe, MefDevOptionComponent, MefDevSelectComponent],
1635
- exports: [OptionPipe, MefDevOptionComponent, MefDevSelectComponent]
1636
- }]
1637
- }] });
1638
-
1639
- class ProgressConfig {
1640
- constructor() {
1641
- this.color = "primary";
1642
- this.thickness = 1;
1643
- }
1644
- }
1645
- ProgressConfig.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: ProgressConfig, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
1646
- ProgressConfig.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: ProgressConfig });
1647
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: ProgressConfig, decorators: [{
1648
- type: Injectable
1649
- }] });
1650
-
1651
- class MefDevProgressModule {
1652
- static forRoot() {
1653
- return { ngModule: MefDevProgressModule, providers: [ProgressConfig] };
1654
- }
1655
- }
1656
- MefDevProgressModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: MefDevProgressModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
1657
- MefDevProgressModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "15.2.9", ngImport: i0, type: MefDevProgressModule, declarations: [MefDevProgressComponent], imports: [CommonModule], exports: [MefDevProgressComponent] });
1658
- MefDevProgressModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: MefDevProgressModule, imports: [CommonModule] });
1659
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: MefDevProgressModule, decorators: [{
1660
- type: NgModule,
1661
- args: [{
1662
- imports: [CommonModule],
1663
- declarations: [MefDevProgressComponent],
1664
- exports: [MefDevProgressComponent]
1665
- }]
1666
- }] });
1667
-
1668
- class pgCardModule {
1669
- static forRoot() {
1670
- return {
1671
- ngModule: pgCardModule
1672
- };
1673
- }
1674
- }
1675
- pgCardModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: pgCardModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
1676
- pgCardModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "15.2.9", ngImport: i0, type: pgCardModule, declarations: [pgCard], imports: [CommonModule, MefDevProgressModule], exports: [pgCard] });
1677
- pgCardModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: pgCardModule, imports: [CommonModule, MefDevProgressModule] });
1678
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: pgCardModule, decorators: [{
1679
- type: NgModule,
1680
- args: [{
1681
- declarations: [pgCard],
1682
- exports: [pgCard],
1683
- imports: [CommonModule, MefDevProgressModule]
1684
- }]
1685
- }] });
1686
-
1687
- const mefDevCardComponents = [CardComponent, CardLongComponent, CardSimpleComponent];
1688
- class MefDevCardModule {
1689
- }
1690
- MefDevCardModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: MefDevCardModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
1691
- MefDevCardModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "15.2.9", ngImport: i0, type: MefDevCardModule, declarations: [CardComponent, CardLongComponent, CardSimpleComponent], imports: [CommonModule,
1692
- MefDevCollapseModule,
1693
- MefDevSelectModule,
1694
- pgCardModule], exports: [CardComponent, CardLongComponent, CardSimpleComponent] });
1695
- MefDevCardModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: MefDevCardModule, imports: [CommonModule,
1696
- MefDevCollapseModule,
1697
- MefDevSelectModule,
1698
- pgCardModule] });
1699
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: MefDevCardModule, decorators: [{
1700
- type: NgModule,
1701
- args: [{
1702
- declarations: mefDevCardComponents,
1703
- exports: mefDevCardComponents,
1704
- imports: [
1705
- CommonModule,
1706
- MefDevCollapseModule,
1707
- MefDevSelectModule,
1708
- pgCardModule,
1709
- ]
1710
- }]
1711
- }] });
1712
-
1713
- /**
1714
- * Example of usage:
1715
- * <example-url>https://mef.dev/ui_kit_demo/view/modals/fill</example-url>
1716
- */
1717
- class FillComponent {
1718
- constructor() {
1719
- this.isClouse = new EventEmitter();
1720
- }
1721
- set show(val) {
1722
- if (!this.fadInModal) {
1723
- return;
1724
- }
1725
- if (val) {
1726
- this.showModal();
1727
- }
1728
- else {
1729
- this.hideModal();
1730
- }
1731
- }
1732
- ;
1733
- ngOnInit() {
1734
- }
1735
- modalIsCloused() {
1736
- this.isClouse.emit(true);
1737
- }
1738
- /**
1739
- * Summary. (use period)
1740
- *
1741
- * Description. (use period)
1742
- *
1743
- * @since x.x.x
1744
- * @deprecated x.x.x Use new_function_name() instead.
1745
- * @access private
1746
- *
1747
- * @class
1748
- * @augments parent
1749
- * @mixes mixin
1750
- *
1751
- * @alias realName
1752
- * @memberof namespace
1753
- *
1754
- * @see Function/class relied on
1755
- * @link URL
1756
- * @global
1757
- *
1758
- * @fires eventName
1759
- * @fires className#eventName
1760
- * @listens event:eventName
1761
- * @listens className~event:eventName
1762
- *
1763
- * @param {type} var Description.
1764
- * @param {type} [var] Description of optional variable.
1765
- * @param {type} [var=default] Description of optional variable with default variable.
1766
- * @param {Object} objectVar Description.
1767
- * @param {type} objectVar.key Description of a key in the objectVar parameter.
1768
- *
1769
- * @yield {type} Yielded value description.
1770
- *
1771
- * @return {type} Return value description.
1772
- */
1773
- showModal() {
1774
- var _a;
1775
- (_a = this.fadInModal) === null || _a === void 0 ? void 0 : _a.show();
1776
- }
1777
- hideModal() {
1778
- var _a;
1779
- (_a = this.fadInModal) === null || _a === void 0 ? void 0 : _a.hide();
1780
- }
1781
- }
1782
- FillComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: FillComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
1783
- FillComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.9", type: FillComponent, selector: "mefdev-fill-modal", inputs: { show: "show" }, outputs: { isClouse: "isClouse" }, queries: [{ propertyName: "modal_header", first: true, predicate: ["modal_header"], descendants: true }, { propertyName: "modal_footer", first: true, predicate: ["modal_footer"], descendants: true }], viewQueries: [{ propertyName: "fadInModal", first: true, predicate: ["fadInModal"], descendants: true }], ngImport: i0, template: " <div bsModal #fadInModal=\"bs-modal\" class=\"modal fade fill-in\" tabindex=\"-1\" role=\"dialog\" aria-hidden=\"true\" (onHide)=\"modalIsCloused()\">\r\n <button type=\"button\" class=\"close\" (click)=\"fadInModal.hide()\" aria-hidden=\"true\">\r\n <i class=\"pg pg-close\"></i>\r\n </button>\r\n <div class=\"modal-dialog \">\r\n <div class=\"modal-content\">\r\n <div class=\"modal-header\">\r\n <ng-template [ngTemplateOutlet]=\"modal_header\"></ng-template>\r\n </div> \r\n <div class=\"modal-body\">\r\n <ng-content></ng-content>\r\n </div> \r\n <div class=\"modal-footer\">\r\n <ng-template [ngTemplateOutlet]=\"modal_footer\"></ng-template>\r\n </div>\r\n </div>\r\n </div>\r\n </div>", styles: [""], dependencies: [{ kind: "directive", type: i1$2.ModalDirective, selector: "[bsModal]", inputs: ["config", "closeInterceptor"], outputs: ["onShow", "onShown", "onHide", "onHidden"], exportAs: ["bs-modal"] }, { kind: "directive", type: i1.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }] });
1784
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: FillComponent, decorators: [{
1785
- type: Component,
1786
- args: [{ selector: 'mefdev-fill-modal', template: " <div bsModal #fadInModal=\"bs-modal\" class=\"modal fade fill-in\" tabindex=\"-1\" role=\"dialog\" aria-hidden=\"true\" (onHide)=\"modalIsCloused()\">\r\n <button type=\"button\" class=\"close\" (click)=\"fadInModal.hide()\" aria-hidden=\"true\">\r\n <i class=\"pg pg-close\"></i>\r\n </button>\r\n <div class=\"modal-dialog \">\r\n <div class=\"modal-content\">\r\n <div class=\"modal-header\">\r\n <ng-template [ngTemplateOutlet]=\"modal_header\"></ng-template>\r\n </div> \r\n <div class=\"modal-body\">\r\n <ng-content></ng-content>\r\n </div> \r\n <div class=\"modal-footer\">\r\n <ng-template [ngTemplateOutlet]=\"modal_footer\"></ng-template>\r\n </div>\r\n </div>\r\n </div>\r\n </div>" }]
1787
- }], ctorParameters: function () { return []; }, propDecorators: { modal_header: [{
1788
- type: ContentChild,
1789
- args: ["modal_header"]
1790
- }], modal_footer: [{
1791
- type: ContentChild,
1792
- args: ["modal_footer"]
1793
- }], fadInModal: [{
1794
- type: ViewChild,
1795
- args: ['fadInModal', { static: false }]
1796
- }], show: [{
1797
- type: Input
1798
- }], isClouse: [{
1799
- type: Output
1800
- }] } });
1801
-
1802
- /**
1803
- * Example of usage:
1804
- * <example-url>https://mef.dev/ui_kit_demo/view/modals/slide-up</example-url>
1805
- */
1806
- class SlideUpComponent {
1807
- constructor() {
1808
- this.size = "md" /* ModalSize.md */;
1809
- this.isClouse = new EventEmitter();
1810
- }
1811
- set show(val) {
1812
- if (!this.mdSlideUp) {
1813
- return;
1814
- }
1815
- if (val) {
1816
- this.showModal();
1817
- }
1818
- else {
1819
- this.hideModal();
1820
- }
1821
- }
1822
- ;
1823
- ngOnInit() {
1824
- }
1825
- modalIsCloused() {
1826
- this.isClouse.emit(true);
1827
- }
1828
- showModal() {
1829
- this.mdSlideUp.show();
1830
- }
1831
- hideModal() {
1832
- this.mdSlideUp.hide();
1833
- }
1834
- }
1835
- SlideUpComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: SlideUpComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
1836
- SlideUpComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.9", type: SlideUpComponent, selector: "mefdev-slide-up-modal", inputs: { size: "size", show: "show" }, outputs: { isClouse: "isClouse" }, queries: [{ propertyName: "modal_header", first: true, predicate: ["modal_header"], descendants: true }, { propertyName: "modal_footer", first: true, predicate: ["modal_footer"], descendants: true }], viewQueries: [{ propertyName: "mdSlideUp", first: true, predicate: ["mdSlideUp"], descendants: true }], ngImport: i0, template: "<div bsModal #mdSlideUp=\"bs-modal\" class=\"modal fade slide-up disable-scroll\" tabindex=\"-1\" role=\"dialog\" aria-hidden=\"false\" (onHide)=\"modalIsCloused()\">\r\n <div class=\"modal-dialog modal-{{size}}\">\r\n <div class=\"modal-content-wrapper\">\r\n <div class=\"modal-content\">\r\n <div class=\"modal-header clearfix text-left\">\r\n <ng-template [ngTemplateOutlet]=\"modal_header\"></ng-template>\r\n </div>\r\n <div class=\"modal-body\">\r\n <ng-content></ng-content>\r\n </div>\r\n <div class=\"modal-footer\">\r\n <ng-template [ngTemplateOutlet]=\"modal_footer\"></ng-template>\r\n </div>\r\n </div>\r\n </div>\r\n</div>", styles: [""], dependencies: [{ kind: "directive", type: i1$2.ModalDirective, selector: "[bsModal]", inputs: ["config", "closeInterceptor"], outputs: ["onShow", "onShown", "onHide", "onHidden"], exportAs: ["bs-modal"] }, { kind: "directive", type: i1.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }] });
1837
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: SlideUpComponent, decorators: [{
1838
- type: Component,
1839
- args: [{ selector: 'mefdev-slide-up-modal', template: "<div bsModal #mdSlideUp=\"bs-modal\" class=\"modal fade slide-up disable-scroll\" tabindex=\"-1\" role=\"dialog\" aria-hidden=\"false\" (onHide)=\"modalIsCloused()\">\r\n <div class=\"modal-dialog modal-{{size}}\">\r\n <div class=\"modal-content-wrapper\">\r\n <div class=\"modal-content\">\r\n <div class=\"modal-header clearfix text-left\">\r\n <ng-template [ngTemplateOutlet]=\"modal_header\"></ng-template>\r\n </div>\r\n <div class=\"modal-body\">\r\n <ng-content></ng-content>\r\n </div>\r\n <div class=\"modal-footer\">\r\n <ng-template [ngTemplateOutlet]=\"modal_footer\"></ng-template>\r\n </div>\r\n </div>\r\n </div>\r\n</div>" }]
1840
- }], ctorParameters: function () { return []; }, propDecorators: { modal_header: [{
1841
- type: ContentChild,
1842
- args: ["modal_header"]
1843
- }], modal_footer: [{
1844
- type: ContentChild,
1845
- args: ["modal_footer"]
1846
- }], mdSlideUp: [{
1847
- type: ViewChild,
1848
- args: ['mdSlideUp', { static: false }]
1849
- }], size: [{
1850
- type: Input
1851
- }], show: [{
1852
- type: Input
1853
- }], isClouse: [{
1854
- type: Output
1855
- }] } });
1856
-
1857
- /**
1858
- * Example of usage:
1859
- * <example-url>https://mef.dev/ui_kit_demo/view/modals/slide-right</example-url>
1860
- */
1861
- class SlideRightComponent {
1862
- constructor() {
1863
- this.size = "md" /* ModalSize.md */;
1864
- this.isClouse = new EventEmitter();
1865
- }
1866
- set show(val) {
1867
- if (!this.slideRight) {
1868
- return;
1869
- }
1870
- if (val) {
1871
- this.showModal();
1872
- }
1873
- else {
1874
- this.hideModal();
1875
- }
1876
- }
1877
- ;
1878
- ngOnInit() {
1879
- }
1880
- modalIsCloused() {
1881
- this.isClouse.emit(true);
1882
- }
1883
- showModal() {
1884
- this.slideRight.show();
1885
- }
1886
- hideModal() {
1887
- this.slideRight.hide();
1888
- }
1889
- }
1890
- SlideRightComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: SlideRightComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
1891
- SlideRightComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.9", type: SlideRightComponent, selector: "mefdev-slide-right-modal", inputs: { size: "size", show: "show" }, outputs: { isClouse: "isClouse" }, queries: [{ propertyName: "modal_header", first: true, predicate: ["modal_header"], descendants: true }, { propertyName: "modal_footer", first: true, predicate: ["modal_footer"], descendants: true }], viewQueries: [{ propertyName: "slideRight", first: true, predicate: ["slideRight"], descendants: true }], ngImport: i0, template: "<div bsModal #slideRight=\"bs-modal\" class=\"modal fade slide-right\" tabindex=\"-1\" role=\"dialog\" aria-hidden=\"true\" (onHide)=\"modalIsCloused()\">\r\n <div class=\"modal-dialog modal-{{size}}\">\r\n <div class=\"modal-content-wrapper\">\r\n <div class=\"modal-content\">\r\n <div class=\"modal-header clearfix text-left\">\r\n <ng-template [ngTemplateOutlet]=\"modal_header\"></ng-template>\r\n </div>\r\n <div class=\"modal-body\">\r\n <ng-content></ng-content>\r\n </div>\r\n <div class=\"modal-footer\">\r\n <ng-template [ngTemplateOutlet]=\"modal_footer\"></ng-template>\r\n </div>\r\n </div>\r\n </div>\r\n</div>", styles: [""], dependencies: [{ kind: "directive", type: i1$2.ModalDirective, selector: "[bsModal]", inputs: ["config", "closeInterceptor"], outputs: ["onShow", "onShown", "onHide", "onHidden"], exportAs: ["bs-modal"] }, { kind: "directive", type: i1.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }] });
1892
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: SlideRightComponent, decorators: [{
1893
- type: Component,
1894
- args: [{ selector: 'mefdev-slide-right-modal', template: "<div bsModal #slideRight=\"bs-modal\" class=\"modal fade slide-right\" tabindex=\"-1\" role=\"dialog\" aria-hidden=\"true\" (onHide)=\"modalIsCloused()\">\r\n <div class=\"modal-dialog modal-{{size}}\">\r\n <div class=\"modal-content-wrapper\">\r\n <div class=\"modal-content\">\r\n <div class=\"modal-header clearfix text-left\">\r\n <ng-template [ngTemplateOutlet]=\"modal_header\"></ng-template>\r\n </div>\r\n <div class=\"modal-body\">\r\n <ng-content></ng-content>\r\n </div>\r\n <div class=\"modal-footer\">\r\n <ng-template [ngTemplateOutlet]=\"modal_footer\"></ng-template>\r\n </div>\r\n </div>\r\n </div>\r\n</div>" }]
1895
- }], ctorParameters: function () { return []; }, propDecorators: { modal_header: [{
1896
- type: ContentChild,
1897
- args: ["modal_header"]
1898
- }], modal_footer: [{
1899
- type: ContentChild,
1900
- args: ["modal_footer"]
1901
- }], slideRight: [{
1902
- type: ViewChild,
1903
- args: ['slideRight', { static: false }]
1904
- }], size: [{
1905
- type: Input
1906
- }], show: [{
1907
- type: Input
1908
- }], isClouse: [{
1909
- type: Output
1910
- }] } });
1911
-
1912
- class RightFilterComponent {
1913
- constructor(filteredFieldService) {
1914
- this.filteredFieldService = filteredFieldService;
1915
- this.isOpen = false;
1916
- }
1917
- ngOnInit() {
1918
- this.filteredFieldService.getOpenFilter().subscribe(() => {
1919
- this.isOpen = true;
1920
- });
1921
- }
1922
- openModal() {
1923
- this.isOpen = !this.isOpen;
1924
- }
1925
- modalIsCloused() {
1926
- this.isOpen = false;
1927
- }
1928
- }
1929
- RightFilterComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: RightFilterComponent, deps: [{ token: FilteredFieldService }], target: i0.ɵɵFactoryTarget.Component });
1930
- RightFilterComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.9", type: RightFilterComponent, selector: "mefdev-right-filter", ngImport: i0, template: "<div class=\"filter-btn\">\r\n <button class=\"btn btn-secondary text-danger\" (click)=\"openModal()\"><i class=\"fa fa-filter\" aria-hidden=\"true\"></i></button>\r\n</div>\r\n\r\n<mefdev-slide-right-modal [show]=\"isOpen\" (isClouse)=\"modalIsCloused()\">\r\n <ng-content></ng-content>\r\n</mefdev-slide-right-modal>", styles: [".filter-btn{position:fixed;top:60px;z-index:450;right:25px}\n"], dependencies: [{ kind: "component", type: SlideRightComponent, selector: "mefdev-slide-right-modal", inputs: ["size", "show"], outputs: ["isClouse"] }] });
1931
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: RightFilterComponent, decorators: [{
1932
- type: Component,
1933
- args: [{ selector: 'mefdev-right-filter', template: "<div class=\"filter-btn\">\r\n <button class=\"btn btn-secondary text-danger\" (click)=\"openModal()\"><i class=\"fa fa-filter\" aria-hidden=\"true\"></i></button>\r\n</div>\r\n\r\n<mefdev-slide-right-modal [show]=\"isOpen\" (isClouse)=\"modalIsCloused()\">\r\n <ng-content></ng-content>\r\n</mefdev-slide-right-modal>", styles: [".filter-btn{position:fixed;top:60px;z-index:450;right:25px}\n"] }]
1934
- }], ctorParameters: function () { return [{ type: FilteredFieldService }]; } });
1935
-
1936
- let mefDevModalModuleComponents = [
1937
- FillComponent,
1938
- SlideUpComponent,
1939
- SlideRightComponent,
1940
- RightFilterComponent
1941
- ];
1942
- class MefDevModalModule {
1943
- }
1944
- MefDevModalModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: MefDevModalModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
1945
- MefDevModalModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "15.2.9", ngImport: i0, type: MefDevModalModule, declarations: [FillComponent,
1946
- SlideUpComponent,
1947
- SlideRightComponent,
1948
- RightFilterComponent], imports: [ModalModule,
1949
- CommonModule,
1950
- MefDevSelectModule], exports: [FillComponent,
1951
- SlideUpComponent,
1952
- SlideRightComponent,
1953
- RightFilterComponent] });
1954
- MefDevModalModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: MefDevModalModule, imports: [ModalModule,
1955
- CommonModule,
1956
- MefDevSelectModule] });
1957
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: MefDevModalModule, decorators: [{
1958
- type: NgModule,
1959
- args: [{
1960
- imports: [
1961
- ModalModule,
1962
- CommonModule,
1963
- MefDevSelectModule
1964
- ],
1965
- exports: mefDevModalModuleComponents,
1966
- declarations: mefDevModalModuleComponents
1967
- }]
1968
- }] });
1969
-
1970
- /**
1971
- * Example of usage:
1972
- * <example-url>https://mef.dev/ui_kit_demo/view/page-layouts/profile</example-url>
1973
- */
1974
- class ProfileComponent {
1975
- constructor() {
1976
- this.img = '';
1977
- this.circleImg = false;
1978
- }
1979
- ngOnInit() {
1980
- }
1981
- get sizeStyle() {
1982
- // return { 'width.px': this.width, 'height.px': this.height };
1983
- if (!this.circleImg) {
1984
- return {};
1985
- }
1986
- return {
1987
- 'border-top-left-radius': `50%`,
1988
- 'border-top-right-radius': `50%`,
1989
- 'border-bottom-right-radius': `50%`,
1990
- 'border-bottom-left-radius': `50%`,
1991
- };
1992
- }
1993
- }
1994
- ProfileComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: ProfileComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
1995
- ProfileComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.9", type: ProfileComponent, selector: "mefdev-profile", inputs: { name: "name", img: "img", shortDescription: "shortDescription", header: "header", circleImg: "circleImg" }, queries: [{ propertyName: "first_colum", first: true, predicate: ["first_colum"], descendants: true }, { propertyName: "second_colum", first: true, predicate: ["second_colum"], descendants: true }, { propertyName: "footer", first: true, predicate: ["footer"], descendants: true }], ngImport: i0, template: "<div class=\"row profile-page\">\r\n <div class=\"col-12 h3 mt-3\">\r\n {{header}}\r\n </div>\r\n <div class=\"col-xl-3 col-lg-3 col-md-4 col-sm-12\">\r\n <div *ngIf=\"!img || img == ''\" >\r\n <img src=\"assets/images/md_icon.png\" height=\"124\" width=\"220\" />\r\n </div>\r\n <div *ngIf=\"img\" >\r\n <img src=\"{{img}}\" alt=\"\" class=\"custom-img\" [ngStyle]=\"sizeStyle\"\r\n />\r\n </div>\r\n </div>\r\n\r\n <div class=\"col-xl-3 col-lg-4 col-md-5 col-sm-12 mt-4 mt-md-0\" >\r\n <div class=\"row profile-name\">\r\n <div class=\"col\">\r\n {{name}}\r\n </div>\r\n </div>\r\n <div class=\"row\">\r\n <div class=\"col profile-description\">\r\n {{shortDescription}}\r\n </div>\r\n </div>\r\n </div>\r\n\r\n <div class=\"col-xl-3 col-lg-4 col-md-5 col-sm-12 body-6 mt-4 mt-md-0\">\r\n <ng-template [ngTemplateOutlet]=\"first_colum\"></ng-template>\r\n </div>\r\n\r\n <div class=\"col-xl-3 col-lg-4 col-md-5 col-sm-12 body-6 mt-4 mt-md-0\" >\r\n <ng-template [ngTemplateOutlet]=\"second_colum\"></ng-template>\r\n </div>\r\n\r\n</div>\r\n<div style=\"position: relative;\">\r\n <div class=\"row profile-page-tabs\">\r\n <ng-template [ngTemplateOutlet]=\"footer\">\r\n </ng-template>\r\n </div>\r\n</div>\r\n", styles: [".color-Dark-Gray-1{color:#373737!important}.color-Dark-Gray-2{color:#4d4d4d!important}.color-Red{color:#cf0106!important}.color-Green{color:#28b446!important}.color-Light-Gray-1{color:#929292!important}.color-Light-Gray-2{color:#eaeaea!important}.color-Light-Gray-3{color:#f3f3f3!important}.color-White{color:#fff!important}.color-Link{color:#0185cf!important}.b-color-Dark-Gray-1{background-color:#373737!important}.b-color-Dark-Gray-2{background-color:#4d4d4d!important}.b-color-Red{background-color:#cf0106!important}.b-color-Green{background-color:#28b446!important}.b-color-Light-Gray-1{background-color:#929292!important}.b-color-Light-Gray-2{background-color:#eaeaea!important}.b-color-Light-Gray-3{background-color:#f3f3f3!important}.b-color-White{background-color:#fff!important}.b-color-Link{background-color:#0185cf!important}.h1,h1{font-family:montserrat-bold;font-size:24px;line-height:29px;font-weight:700;text-transform:uppercase;color:#000}.h2,h2{font-family:montserrat-bold;font-size:24px;line-height:29px;font-weight:700;color:#000}.h3,h3{font-family:montserrat-regular;font-size:14px;line-height:20px;font-weight:400;text-transform:uppercase;color:#000}.h4,h4{font-family:montserrat-light;font-weight:300;font-size:13px;line-height:20px;text-transform:uppercase;color:#000}.h5,h5{font-family:montserrat-semibold;font-weight:600;font-size:13px;line-height:20px;color:#000}.h6,h6{font-family:montserrat-medium;font-weight:500;font-size:12px;line-height:20px;text-transform:capitalize;color:#000}.body-1,:host::ng-deep .profile-name,body-1{font-family:Lato-Bold;font-size:18px;line-height:20px;font-weight:700;color:#000}.body-2,body-2{font-family:Lato-Regular;font-size:16px;line-height:28px;font-weight:400;color:#000}.body-3,body-3{font-family:Lato-Bold;font-size:14px;line-height:22px;font-weight:700;color:#000}.body-4,body-4{font-family:Lato-Regular;font-size:14px;line-height:22px;font-weight:400;color:#000}.body-5,body-5{font-family:Lato-Bold;font-weight:600;font-size:13px;line-height:18px;color:#000}.body-6,:host::ng-deep .profile-description,body-6{font-family:Lato-Regular;font-size:13px;line-height:16px;font-weight:400;color:#000}:host::ng-deep .profile-page{background-color:#f3f3f3;padding-left:10px;color:#000}:host::ng-deep .profile-description{height:7em;word-break:break-all;overflow-y:clip;margin-right:40px}:host::ng-deep .profile-name{height:2em;overflow-y:clip}:host::ng-deep .tab-content-wrapper{background-color:#fff}:host::ng-deep .profile-data-item{display:flex;margin:10px}:host::ng-deep .profile-data-item-value{font-weight:700;margin-left:.25em}:host::ng-deep .profile-page-tabs{background-image:linear-gradient(to bottom,#F3F3F3 53px,transparent 0%,transparent 100%);background-image:-webkit-linear-gradient(to bottom,#F3F3F3 53px,transparent 0%,transparent 100%);padding-top:25px}@media (max-width: 720px){:host::ng-deep .profile-page-tabs{background-image:linear-gradient(to bottom,#F3F3F3 63px,transparent 0%,transparent 100%);background-image:-webkit-linear-gradient(to bottom,#F3F3F3 63px,transparent 0%,transparent 100%);padding-top:35px}}:host::ng-deep .custom-img{max-width:224px;max-height:128px;margin-right:calc(var(--bs-gutter-x) * .5);margin-left:calc(var(--bs-gutter-x) * .5)}:host::ng-deep .card-img{padding:0;display:flex;align-items:center;justify-content:center;margin-right:calc(var(--bs-gutter-x) * .5);margin-left:calc(var(--bs-gutter-x) * .5);width:224px;height:128px}\n"], dependencies: [{ kind: "directive", type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i1.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "directive", type: i1.NgStyle, selector: "[ngStyle]", inputs: ["ngStyle"] }] });
1996
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: ProfileComponent, decorators: [{
1997
- type: Component,
1998
- args: [{ selector: 'mefdev-profile', template: "<div class=\"row profile-page\">\r\n <div class=\"col-12 h3 mt-3\">\r\n {{header}}\r\n </div>\r\n <div class=\"col-xl-3 col-lg-3 col-md-4 col-sm-12\">\r\n <div *ngIf=\"!img || img == ''\" >\r\n <img src=\"assets/images/md_icon.png\" height=\"124\" width=\"220\" />\r\n </div>\r\n <div *ngIf=\"img\" >\r\n <img src=\"{{img}}\" alt=\"\" class=\"custom-img\" [ngStyle]=\"sizeStyle\"\r\n />\r\n </div>\r\n </div>\r\n\r\n <div class=\"col-xl-3 col-lg-4 col-md-5 col-sm-12 mt-4 mt-md-0\" >\r\n <div class=\"row profile-name\">\r\n <div class=\"col\">\r\n {{name}}\r\n </div>\r\n </div>\r\n <div class=\"row\">\r\n <div class=\"col profile-description\">\r\n {{shortDescription}}\r\n </div>\r\n </div>\r\n </div>\r\n\r\n <div class=\"col-xl-3 col-lg-4 col-md-5 col-sm-12 body-6 mt-4 mt-md-0\">\r\n <ng-template [ngTemplateOutlet]=\"first_colum\"></ng-template>\r\n </div>\r\n\r\n <div class=\"col-xl-3 col-lg-4 col-md-5 col-sm-12 body-6 mt-4 mt-md-0\" >\r\n <ng-template [ngTemplateOutlet]=\"second_colum\"></ng-template>\r\n </div>\r\n\r\n</div>\r\n<div style=\"position: relative;\">\r\n <div class=\"row profile-page-tabs\">\r\n <ng-template [ngTemplateOutlet]=\"footer\">\r\n </ng-template>\r\n </div>\r\n</div>\r\n", styles: [".color-Dark-Gray-1{color:#373737!important}.color-Dark-Gray-2{color:#4d4d4d!important}.color-Red{color:#cf0106!important}.color-Green{color:#28b446!important}.color-Light-Gray-1{color:#929292!important}.color-Light-Gray-2{color:#eaeaea!important}.color-Light-Gray-3{color:#f3f3f3!important}.color-White{color:#fff!important}.color-Link{color:#0185cf!important}.b-color-Dark-Gray-1{background-color:#373737!important}.b-color-Dark-Gray-2{background-color:#4d4d4d!important}.b-color-Red{background-color:#cf0106!important}.b-color-Green{background-color:#28b446!important}.b-color-Light-Gray-1{background-color:#929292!important}.b-color-Light-Gray-2{background-color:#eaeaea!important}.b-color-Light-Gray-3{background-color:#f3f3f3!important}.b-color-White{background-color:#fff!important}.b-color-Link{background-color:#0185cf!important}.h1,h1{font-family:montserrat-bold;font-size:24px;line-height:29px;font-weight:700;text-transform:uppercase;color:#000}.h2,h2{font-family:montserrat-bold;font-size:24px;line-height:29px;font-weight:700;color:#000}.h3,h3{font-family:montserrat-regular;font-size:14px;line-height:20px;font-weight:400;text-transform:uppercase;color:#000}.h4,h4{font-family:montserrat-light;font-weight:300;font-size:13px;line-height:20px;text-transform:uppercase;color:#000}.h5,h5{font-family:montserrat-semibold;font-weight:600;font-size:13px;line-height:20px;color:#000}.h6,h6{font-family:montserrat-medium;font-weight:500;font-size:12px;line-height:20px;text-transform:capitalize;color:#000}.body-1,:host::ng-deep .profile-name,body-1{font-family:Lato-Bold;font-size:18px;line-height:20px;font-weight:700;color:#000}.body-2,body-2{font-family:Lato-Regular;font-size:16px;line-height:28px;font-weight:400;color:#000}.body-3,body-3{font-family:Lato-Bold;font-size:14px;line-height:22px;font-weight:700;color:#000}.body-4,body-4{font-family:Lato-Regular;font-size:14px;line-height:22px;font-weight:400;color:#000}.body-5,body-5{font-family:Lato-Bold;font-weight:600;font-size:13px;line-height:18px;color:#000}.body-6,:host::ng-deep .profile-description,body-6{font-family:Lato-Regular;font-size:13px;line-height:16px;font-weight:400;color:#000}:host::ng-deep .profile-page{background-color:#f3f3f3;padding-left:10px;color:#000}:host::ng-deep .profile-description{height:7em;word-break:break-all;overflow-y:clip;margin-right:40px}:host::ng-deep .profile-name{height:2em;overflow-y:clip}:host::ng-deep .tab-content-wrapper{background-color:#fff}:host::ng-deep .profile-data-item{display:flex;margin:10px}:host::ng-deep .profile-data-item-value{font-weight:700;margin-left:.25em}:host::ng-deep .profile-page-tabs{background-image:linear-gradient(to bottom,#F3F3F3 53px,transparent 0%,transparent 100%);background-image:-webkit-linear-gradient(to bottom,#F3F3F3 53px,transparent 0%,transparent 100%);padding-top:25px}@media (max-width: 720px){:host::ng-deep .profile-page-tabs{background-image:linear-gradient(to bottom,#F3F3F3 63px,transparent 0%,transparent 100%);background-image:-webkit-linear-gradient(to bottom,#F3F3F3 63px,transparent 0%,transparent 100%);padding-top:35px}}:host::ng-deep .custom-img{max-width:224px;max-height:128px;margin-right:calc(var(--bs-gutter-x) * .5);margin-left:calc(var(--bs-gutter-x) * .5)}:host::ng-deep .card-img{padding:0;display:flex;align-items:center;justify-content:center;margin-right:calc(var(--bs-gutter-x) * .5);margin-left:calc(var(--bs-gutter-x) * .5);width:224px;height:128px}\n"] }]
1999
- }], ctorParameters: function () { return []; }, propDecorators: { first_colum: [{
2000
- type: ContentChild,
2001
- args: ["first_colum"]
2002
- }], second_colum: [{
2003
- type: ContentChild,
2004
- args: ["second_colum"]
2005
- }], footer: [{
2006
- type: ContentChild,
2007
- args: ["footer"]
2008
- }], name: [{
2009
- type: Input
2010
- }], img: [{
2011
- type: Input
2012
- }], shortDescription: [{
2013
- type: Input
2014
- }], header: [{
2015
- type: Input
2016
- }], circleImg: [{
2017
- type: Input
2018
- }] } });
2019
-
2020
- /**
2021
- * Example of usage:
2022
- * <example-url>https://mef.dev/ui_kit_demo/view/page-layouts/central-page</example-url>
2023
- */
2024
- class CentralPageComponent {
2025
- constructor() {
2026
- this.width = '100%';
2027
- }
2028
- ngOnDestroy() {
2029
- document.getElementById('dataMainContent').style.height = '';
2030
- }
2031
- ngOnInit() {
2032
- }
2033
- ngAfterViewChecked() {
2034
- document.getElementById('dataMainContent').style.height = '100%';
2035
- }
2036
- }
2037
- CentralPageComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: CentralPageComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
2038
- CentralPageComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.9", type: CentralPageComponent, selector: "mefdev-central-page", inputs: { width: "width" }, ngImport: i0, template: "<div class=\"row align-items-center\" style=\"height: 100%;\" [ngStyle]=\"{'width': width}\">\r\n <div class=\"col\">\r\n <ng-content></ng-content>\r\n </div>\r\n</div>\r\n ", styles: [""], dependencies: [{ kind: "directive", type: i1.NgStyle, selector: "[ngStyle]", inputs: ["ngStyle"] }] });
2039
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: CentralPageComponent, decorators: [{
2040
- type: Component,
2041
- args: [{ selector: 'mefdev-central-page', template: "<div class=\"row align-items-center\" style=\"height: 100%;\" [ngStyle]=\"{'width': width}\">\r\n <div class=\"col\">\r\n <ng-content></ng-content>\r\n </div>\r\n</div>\r\n " }]
2042
- }], ctorParameters: function () { return []; }, propDecorators: { width: [{
2043
- type: Input
2044
- }] } });
2045
-
2046
- class CentralPageRowComponent {
2047
- constructor() { }
2048
- ngOnInit() {
2049
- }
2050
- }
2051
- CentralPageRowComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: CentralPageRowComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
2052
- CentralPageRowComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.9", type: CentralPageRowComponent, selector: "mefdev-central-page-row", ngImport: i0, template: "<div class=\"row justify-content-center\">\r\n <ng-content></ng-content>\r\n</div>", styles: [""] });
2053
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: CentralPageRowComponent, decorators: [{
2054
- type: Component,
2055
- args: [{ selector: 'mefdev-central-page-row', template: "<div class=\"row justify-content-center\">\r\n <ng-content></ng-content>\r\n</div>" }]
2056
- }], ctorParameters: function () { return []; } });
2057
-
2058
- /**
2059
- * Example of usage:
2060
- * <example-url>https://mef.dev/ui_kit_demo/view/page-layouts/table-page</example-url>
2061
- */
2062
- class TablePageComponent {
2063
- constructor() { }
2064
- ngOnInit() {
2065
- }
2066
- }
2067
- TablePageComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: TablePageComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
2068
- TablePageComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.9", type: TablePageComponent, selector: "mefdev-table-page", queries: [{ propertyName: "filter_colum", first: true, predicate: ["filter_colum"], descendants: true }], ngImport: i0, template: "<div class=\"row\">\r\n <div class=\"col-12 filter-colum\">\r\n <ng-template [ngTemplateOutlet]=\"filter_colum\"></ng-template> \r\n </div>\r\n</div>\r\n\r\n<div class=\"table-responsive\" >\r\n <ng-content></ng-content>\r\n</div>\r\n", styles: [""], dependencies: [{ kind: "directive", type: i1.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }] });
2069
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: TablePageComponent, decorators: [{
2070
- type: Component,
2071
- args: [{ selector: 'mefdev-table-page', template: "<div class=\"row\">\r\n <div class=\"col-12 filter-colum\">\r\n <ng-template [ngTemplateOutlet]=\"filter_colum\"></ng-template> \r\n </div>\r\n</div>\r\n\r\n<div class=\"table-responsive\" >\r\n <ng-content></ng-content>\r\n</div>\r\n" }]
2072
- }], ctorParameters: function () { return []; }, propDecorators: { filter_colum: [{
2073
- type: ContentChild,
2074
- args: ["filter_colum"]
2075
- }] } });
2076
-
2077
- /**
2078
- * Example of usage:
2079
- * <example-url>https://mef.dev/ui_kit_demo/view/page-layouts/menage-page</example-url>
2080
- */
2081
- class ManagePageComponent {
2082
- constructor() {
2083
- this.startTabInd = 0;
2084
- }
2085
- ngOnInit() {
2086
- }
2087
- }
2088
- ManagePageComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: ManagePageComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
2089
- ManagePageComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.9", type: ManagePageComponent, selector: "mefdev-manage-page", inputs: { startTabInd: "startTabInd" }, queries: [{ propertyName: "card_title", first: true, predicate: ["card_title"], descendants: true }, { propertyName: "tabs_block", first: true, predicate: ["tabs_block"], descendants: true }], ngImport: i0, template: "<div class=\"card-tabs\">\r\n <div class=\"row body-1 card-header\" *ngIf=\"card_title\">\r\n <div class=\"m-2\">\r\n <ng-template [ngTemplateOutlet]=\"card_title\"></ng-template>\r\n </div>\r\n </div>\r\n <div class=\"row profile-page-tabs\">\r\n <ng-content></ng-content>\r\n </div>\r\n</div>\r\n", styles: [".color-Dark-Gray-1{color:#373737!important}.color-Dark-Gray-2{color:#4d4d4d!important}.color-Red{color:#cf0106!important}.color-Green{color:#28b446!important}.color-Light-Gray-1{color:#929292!important}.color-Light-Gray-2{color:#eaeaea!important}.color-Light-Gray-3{color:#f3f3f3!important}.color-White{color:#fff!important}.color-Link{color:#0185cf!important}.b-color-Dark-Gray-1{background-color:#373737!important}.b-color-Dark-Gray-2{background-color:#4d4d4d!important}.b-color-Red{background-color:#cf0106!important}.b-color-Green{background-color:#28b446!important}.b-color-Light-Gray-1{background-color:#929292!important}.b-color-Light-Gray-2{background-color:#eaeaea!important}.b-color-Light-Gray-3{background-color:#f3f3f3!important}.b-color-White{background-color:#fff!important}.b-color-Link{background-color:#0185cf!important}.card-tabs .card-header{background-color:#f3f3f3;padding:.5em;border:0}.profile-page-tabs{background-image:linear-gradient(to bottom,#F3F3F3 28px,transparent 0%,transparent 100%);background-image:-webkit-linear-gradient(to bottom,#F3F3F3 28px,transparent 0%,transparent 100%)}\n"], dependencies: [{ kind: "directive", type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i1.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }] });
2090
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: ManagePageComponent, decorators: [{
2091
- type: Component,
2092
- args: [{ selector: 'mefdev-manage-page', template: "<div class=\"card-tabs\">\r\n <div class=\"row body-1 card-header\" *ngIf=\"card_title\">\r\n <div class=\"m-2\">\r\n <ng-template [ngTemplateOutlet]=\"card_title\"></ng-template>\r\n </div>\r\n </div>\r\n <div class=\"row profile-page-tabs\">\r\n <ng-content></ng-content>\r\n </div>\r\n</div>\r\n", styles: [".color-Dark-Gray-1{color:#373737!important}.color-Dark-Gray-2{color:#4d4d4d!important}.color-Red{color:#cf0106!important}.color-Green{color:#28b446!important}.color-Light-Gray-1{color:#929292!important}.color-Light-Gray-2{color:#eaeaea!important}.color-Light-Gray-3{color:#f3f3f3!important}.color-White{color:#fff!important}.color-Link{color:#0185cf!important}.b-color-Dark-Gray-1{background-color:#373737!important}.b-color-Dark-Gray-2{background-color:#4d4d4d!important}.b-color-Red{background-color:#cf0106!important}.b-color-Green{background-color:#28b446!important}.b-color-Light-Gray-1{background-color:#929292!important}.b-color-Light-Gray-2{background-color:#eaeaea!important}.b-color-Light-Gray-3{background-color:#f3f3f3!important}.b-color-White{background-color:#fff!important}.b-color-Link{background-color:#0185cf!important}.card-tabs .card-header{background-color:#f3f3f3;padding:.5em;border:0}.profile-page-tabs{background-image:linear-gradient(to bottom,#F3F3F3 28px,transparent 0%,transparent 100%);background-image:-webkit-linear-gradient(to bottom,#F3F3F3 28px,transparent 0%,transparent 100%)}\n"] }]
2093
- }], ctorParameters: function () { return []; }, propDecorators: { card_title: [{
2094
- type: ContentChild,
2095
- args: ["card_title"]
2096
- }], tabs_block: [{
2097
- type: ContentChild,
2098
- args: ["tabs_block"]
2099
- }], startTabInd: [{
2100
- type: Input
2101
- }] } });
2102
-
2103
- let mefDevPageLayoutsModuleComponents = [
2104
- ProfileComponent,
2105
- CentralPageComponent,
2106
- CentralPageRowComponent,
2107
- TablePageComponent,
2108
- ManagePageComponent
2109
- ];
2110
- class MefDevPageLayoutsModule {
2111
- }
2112
- MefDevPageLayoutsModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: MefDevPageLayoutsModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
2113
- MefDevPageLayoutsModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "15.2.9", ngImport: i0, type: MefDevPageLayoutsModule, declarations: [ProfileComponent,
2114
- CentralPageComponent,
2115
- CentralPageRowComponent,
2116
- TablePageComponent,
2117
- ManagePageComponent], imports: [CommonModule], exports: [ProfileComponent,
2118
- CentralPageComponent,
2119
- CentralPageRowComponent,
2120
- TablePageComponent,
2121
- ManagePageComponent] });
2122
- MefDevPageLayoutsModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: MefDevPageLayoutsModule, imports: [CommonModule] });
2123
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: MefDevPageLayoutsModule, decorators: [{
2124
- type: NgModule,
2125
- args: [{
2126
- declarations: mefDevPageLayoutsModuleComponents,
2127
- exports: mefDevPageLayoutsModuleComponents,
2128
- imports: [
2129
- CommonModule,
2130
- // pgTabsModule,
2131
- ],
2132
- }]
2133
- }] });
2134
-
2135
- class MefDevSpecFlowTestComponent {
2136
- constructor() { }
2137
- ngOnInit() {
2138
- }
2139
- setError(error) {
2140
- this.ResponseTimestamp = Date.now();
2141
- this.ResponseError = 1;
2142
- this.ReportError = error;
2143
- }
2144
- setSuccess() {
2145
- this.ResponseTimestamp = Date.now();
2146
- this.ResponseError = 0;
2147
- this.ReportError = undefined;
2148
- }
2149
- }
2150
- MefDevSpecFlowTestComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: MefDevSpecFlowTestComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
2151
- MefDevSpecFlowTestComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.9", type: MefDevSpecFlowTestComponent, selector: "mefdev-spec-flow-test", ngImport: i0, template: "<!-- Block for test -->\r\n<div style=\"display: none;\">\r\n <input id=\"ResponseTimestamp\" type=\"hidden\" value=\"{{ResponseTimestamp}}\" />\r\n <input id=\"ResponseError\" type=\"hidden\" value=\"{{ResponseError}}\" />\r\n <input id=\"ReportError\" type=\"hidden\" value=\"{{ReportError}}\" />\r\n</div>", styles: [""] });
2152
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: MefDevSpecFlowTestComponent, decorators: [{
2153
- type: Component,
2154
- args: [{ selector: 'mefdev-spec-flow-test', template: "<!-- Block for test -->\r\n<div style=\"display: none;\">\r\n <input id=\"ResponseTimestamp\" type=\"hidden\" value=\"{{ResponseTimestamp}}\" />\r\n <input id=\"ResponseError\" type=\"hidden\" value=\"{{ResponseError}}\" />\r\n <input id=\"ReportError\" type=\"hidden\" value=\"{{ReportError}}\" />\r\n</div>" }]
2155
- }], ctorParameters: function () { return []; } });
2156
-
2157
- class MefDevSpecFlowTestModule {
2158
- static forRoot() {
2159
- return {
2160
- ngModule: MefDevSpecFlowTestModule
2161
- };
2162
- }
2163
- }
2164
- MefDevSpecFlowTestModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: MefDevSpecFlowTestModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
2165
- MefDevSpecFlowTestModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "15.2.9", ngImport: i0, type: MefDevSpecFlowTestModule, declarations: [MefDevSpecFlowTestComponent], imports: [CommonModule], exports: [MefDevSpecFlowTestComponent] });
2166
- MefDevSpecFlowTestModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: MefDevSpecFlowTestModule, imports: [CommonModule] });
2167
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: MefDevSpecFlowTestModule, decorators: [{
2168
- type: NgModule,
2169
- args: [{
2170
- declarations: [MefDevSpecFlowTestComponent],
2171
- exports: [MefDevSpecFlowTestComponent],
2172
- imports: [
2173
- CommonModule
2174
- ]
2175
- }]
2176
- }] });
2177
-
2178
- /**
2179
- * @component
2180
- * @skipTemplateDoc: true
2181
- * Example of usage:
2182
- * <example-url>https://mef.dev/ui_kit_demo/view/switch</example-url>
2183
- */
2184
- class MefDevSwitchComponent {
2185
- constructor() {
2186
- this._disabled = false;
2187
- this._prefixCls = "toggle-switch";
2188
- this._color = "primary";
2189
- this._innerPrefixCls = `${this._prefixCls}-inner `;
2190
- this._checked = false;
2191
- // ngModel Access
2192
- this.onChange = () => null;
2193
- this.onTouched = () => null;
2194
- }
2195
- set Value(value) {
2196
- this.updateValue(value);
2197
- }
2198
- set Size(value) {
2199
- this._size = value;
2200
- this.setClassMap();
2201
- }
2202
- set Color(value) {
2203
- this._color = value;
2204
- this.setClassMap();
2205
- }
2206
- get Size() {
2207
- return this._size;
2208
- }
2209
- set Disabled(value) {
2210
- this._disabled = toBoolean(value);
2211
- this.setClassMap();
2212
- }
2213
- get Disabled() {
2214
- return this._disabled;
2215
- }
2216
- onClick(e) {
2217
- e.preventDefault();
2218
- if (!this._disabled) {
2219
- this.updateValue(!this._checked);
2220
- this.onChange(this._checked);
2221
- }
2222
- }
2223
- updateValue(value) {
2224
- if (this._checked === value) {
2225
- return;
2226
- }
2227
- this._checked = value;
2228
- this.setClassMap();
2229
- }
2230
- setClassMap() {
2231
- this._classMap = {
2232
- [this._prefixCls]: true,
2233
- [`${this._prefixCls}-checked`]: this._checked,
2234
- [`${this._prefixCls}-disabled`]: this._disabled,
2235
- [`${this._prefixCls}-small`]: this._size === "small",
2236
- [this._color]: this._color
2237
- };
2238
- }
2239
- writeValue(value) {
2240
- this.updateValue(value);
2241
- }
2242
- registerOnChange(fn) {
2243
- this.onChange = fn;
2244
- }
2245
- registerOnTouched(fn) {
2246
- this.onTouched = fn;
2247
- }
2248
- setDisabledState(isDisabled) {
2249
- this.Disabled = isDisabled;
2250
- }
2251
- ngOnInit() {
2252
- this.setClassMap();
2253
- }
2254
- }
2255
- MefDevSwitchComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: MefDevSwitchComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
2256
- MefDevSwitchComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.9", type: MefDevSwitchComponent, selector: "mefdev-switch", inputs: { Value: "Value", Size: "Size", Color: "Color", Disabled: "Disabled" }, outputs: { onChange: "onChange" }, host: { listeners: { "click": "onClick($event)" } }, providers: [
2257
- {
2258
- provide: NG_VALUE_ACCESSOR,
2259
- useExisting: forwardRef(() => MefDevSwitchComponent),
2260
- multi: true
2261
- }
2262
- ], ngImport: i0, template: "<span [ngClass]=\"_classMap\" tabindex=\"0\">\r\n <span [ngClass]=\"_innerPrefixCls\">\r\n <ng-template [ngIf]=\"_checked\">\r\n <ng-content select=\"[checked]\"></ng-content>\r\n </ng-template>\r\n <ng-template [ngIf]=\"!_checked\">\r\n <ng-content select=\"[unchecked]\"></ng-content>\r\n </ng-template>\r\n </span>\r\n</span>", dependencies: [{ kind: "directive", type: i1.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }], encapsulation: i0.ViewEncapsulation.None });
2263
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: MefDevSwitchComponent, decorators: [{
2264
- type: Component,
2265
- args: [{ selector: "mefdev-switch", encapsulation: ViewEncapsulation.None, providers: [
2266
- {
2267
- provide: NG_VALUE_ACCESSOR,
2268
- useExisting: forwardRef(() => MefDevSwitchComponent),
2269
- multi: true
2270
- }
2271
- ], template: "<span [ngClass]=\"_classMap\" tabindex=\"0\">\r\n <span [ngClass]=\"_innerPrefixCls\">\r\n <ng-template [ngIf]=\"_checked\">\r\n <ng-content select=\"[checked]\"></ng-content>\r\n </ng-template>\r\n <ng-template [ngIf]=\"!_checked\">\r\n <ng-content select=\"[unchecked]\"></ng-content>\r\n </ng-template>\r\n </span>\r\n</span>" }]
2272
- }], propDecorators: { onChange: [{
2273
- type: Output
2274
- }], Value: [{
2275
- type: Input
2276
- }], Size: [{
2277
- type: Input
2278
- }], Color: [{
2279
- type: Input
2280
- }], Disabled: [{
2281
- type: Input
2282
- }], onClick: [{
2283
- type: HostListener,
2284
- args: ["click", ["$event"]]
2285
- }] } });
2286
-
2287
- class MefDevSwitchModule {
2288
- }
2289
- MefDevSwitchModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: MefDevSwitchModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
2290
- MefDevSwitchModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "15.2.9", ngImport: i0, type: MefDevSwitchModule, declarations: [MefDevSwitchComponent], imports: [CommonModule], exports: [MefDevSwitchComponent] });
2291
- MefDevSwitchModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: MefDevSwitchModule, imports: [CommonModule] });
2292
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: MefDevSwitchModule, decorators: [{
2293
- type: NgModule,
2294
- args: [{
2295
- exports: [MefDevSwitchComponent],
2296
- declarations: [MefDevSwitchComponent],
2297
- imports: [CommonModule]
2298
- }]
2299
- }] });
2300
-
2301
- class MefDevTabBodyComponent {
2302
- }
2303
- MefDevTabBodyComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: MefDevTabBodyComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
2304
- MefDevTabBodyComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.9", type: MefDevTabBodyComponent, selector: "mefdev-tab-body", inputs: { content: "content" }, ngImport: i0, template: "<ng-template [ngTemplateOutlet]=\"content\"></ng-template>", dependencies: [{ kind: "directive", type: i1.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }], encapsulation: i0.ViewEncapsulation.None });
2305
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: MefDevTabBodyComponent, decorators: [{
2306
- type: Component,
2307
- args: [{ selector: 'mefdev-tab-body', encapsulation: ViewEncapsulation.None, template: "<ng-template [ngTemplateOutlet]=\"content\"></ng-template>" }]
2308
- }], propDecorators: { content: [{
2309
- type: Input
2310
- }] } });
2311
-
2312
- class MefDevTabLabelDirective {
2313
- constructor(elementRef) {
2314
- this.elementRef = elementRef;
2315
- this._disabled = false;
2316
- }
2317
- set disabled(value) {
2318
- this._disabled = toBoolean(value);
2319
- }
2320
- get disabled() {
2321
- return this._disabled;
2322
- }
2323
- getOffsetLeft() {
2324
- return this.elementRef.nativeElement.offsetLeft;
2325
- }
2326
- getOffsetWidth() {
2327
- return this.elementRef.nativeElement.offsetWidth;
2328
- }
2329
- getOffsetTop() {
2330
- return this.elementRef.nativeElement.offsetTop;
2331
- }
2332
- getOffsetHeight() {
2333
- return this.elementRef.nativeElement.offsetHeight;
2334
- }
2335
- }
2336
- MefDevTabLabelDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: MefDevTabLabelDirective, deps: [{ token: i0.ElementRef }], target: i0.ɵɵFactoryTarget.Directive });
2337
- MefDevTabLabelDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "15.2.9", type: MefDevTabLabelDirective, selector: "[pg-tab-label]", inputs: { disabled: "disabled" }, host: { properties: { "class.nav-item": "true", "class.nav-item-disabled": "this.disabled" } }, ngImport: i0 });
2338
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: MefDevTabLabelDirective, decorators: [{
2339
- type: Directive,
2340
- args: [{
2341
- selector: '[pg-tab-label]',
2342
- host: {
2343
- '[class.nav-item]': 'true'
2344
- }
2345
- }]
2346
- }], ctorParameters: function () { return [{ type: i0.ElementRef }]; }, propDecorators: { disabled: [{
2347
- type: Input
2348
- }, {
2349
- type: HostBinding,
2350
- args: ['class.nav-item-disabled']
2351
- }] } });
2352
-
2353
- const availablePrefixs = ['moz', 'ms', 'webkit'];
2354
- function requestAnimationFramePolyfill() {
2355
- let lastTime = 0;
2356
- return function (callback) {
2357
- const currTime = new Date().getTime();
2358
- const timeToCall = Math.max(0, 16 - (currTime - lastTime));
2359
- const id = window.setTimeout(() => { callback(currTime + timeToCall); }, timeToCall);
2360
- lastTime = currTime + timeToCall;
2361
- return id;
2362
- };
2363
- }
2364
- function getRequestAnimationFrame() {
2365
- if (typeof window === 'undefined') {
2366
- //@ts-ignore
2367
- return () => null;
2368
- }
2369
- if (window.requestAnimationFrame) {
2370
- return window.requestAnimationFrame.bind(window);
2371
- }
2372
- const prefix = availablePrefixs.filter(key => `${key}RequestAnimationFrame` in window)[0];
2373
- return prefix
2374
- ? window[`${prefix}RequestAnimationFrame`]
2375
- : requestAnimationFramePolyfill();
2376
- }
2377
- const reqAnimFrame = getRequestAnimationFrame();
2378
-
2379
- class MefDevTabsInkBarDirective {
2380
- constructor(_renderer, _elementRef, _ngZone) {
2381
- this._renderer = _renderer;
2382
- this._elementRef = _elementRef;
2383
- this._ngZone = _ngZone;
2384
- this._animated = false;
2385
- this.PositionMode = 'horizontal';
2386
- }
2387
- set Animated(value) {
2388
- this._animated = toBoolean(value);
2389
- }
2390
- get Animated() {
2391
- return this._animated;
2392
- }
2393
- alignToElement(element) {
2394
- this.show();
2395
- this._ngZone.runOutsideAngular(() => {
2396
- reqAnimFrame(() => {
2397
- /** when horizontal remove height style and add transfrom left **/
2398
- if (this.PositionMode === 'horizontal') {
2399
- this._renderer.removeStyle(this._elementRef.nativeElement, 'height');
2400
- this._renderer.setStyle(this._elementRef.nativeElement, 'transform', `translate3d(${this._getLeftPosition(element)}, 0px, 0px)`);
2401
- this._renderer.setStyle(this._elementRef.nativeElement, 'width', this._getElementWidth(element));
2402
- }
2403
- else {
2404
- /** when vertical remove width style and add transfrom top **/
2405
- this._renderer.removeStyle(this._elementRef.nativeElement, 'width');
2406
- this._renderer.setStyle(this._elementRef.nativeElement, 'transform', `translate3d(0px, ${this._getTopPosition(element)}, 0px)`);
2407
- this._renderer.setStyle(this._elementRef.nativeElement, 'height', this._getElementHeight(element));
2408
- }
2409
- });
2410
- });
2411
- }
2412
- show() {
2413
- this._renderer.setStyle(this._elementRef.nativeElement, 'visibility', 'visible');
2414
- }
2415
- setDisplay(value) {
2416
- this._renderer.setStyle(this._elementRef.nativeElement, 'display', value);
2417
- }
2418
- hide() {
2419
- this._renderer.setStyle(this._elementRef.nativeElement, 'visibility', 'hidden');
2420
- }
2421
- _getLeftPosition(element) {
2422
- return element ? element.offsetLeft + 'px' : '0';
2423
- }
2424
- _getElementWidth(element) {
2425
- return element ? element.offsetWidth + 'px' : '0';
2426
- }
2427
- _getTopPosition(element) {
2428
- return element ? element.offsetTop + 'px' : '0';
2429
- }
2430
- _getElementHeight(element) {
2431
- return element ? element.offsetHeight + 'px' : '0';
2432
- }
2433
- }
2434
- MefDevTabsInkBarDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: MefDevTabsInkBarDirective, deps: [{ token: i0.Renderer2 }, { token: i0.ElementRef }, { token: i0.NgZone }], target: i0.ɵɵFactoryTarget.Directive });
2435
- MefDevTabsInkBarDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "15.2.9", type: MefDevTabsInkBarDirective, selector: "[pg-tabs-ink-bar]", inputs: { Animated: "Animated", PositionMode: "PositionMode" }, host: { properties: { "class.nav-item": "true", "class.nav-item-animated": "this.Animated" } }, ngImport: i0 });
2436
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: MefDevTabsInkBarDirective, decorators: [{
2437
- type: Directive,
2438
- args: [{
2439
- selector: '[pg-tabs-ink-bar]',
2440
- host: {
2441
- '[class.nav-item]': 'true'
2442
- }
2443
- }]
2444
- }], ctorParameters: function () { return [{ type: i0.Renderer2 }, { type: i0.ElementRef }, { type: i0.NgZone }]; }, propDecorators: { Animated: [{
2445
- type: Input
2446
- }, {
2447
- type: HostBinding,
2448
- args: ['class.nav-item-animated']
2449
- }], PositionMode: [{
2450
- type: Input
2451
- }] } });
2452
-
2453
- const EXAGGERATED_OVERSCROLL = 64;
2454
- class MefDevTabsNavComponent {
2455
- constructor(_elementRef, _ngZone, _renderer, _dir) {
2456
- this._elementRef = _elementRef;
2457
- this._ngZone = _ngZone;
2458
- this._renderer = _renderer;
2459
- this._dir = _dir;
2460
- this._animated = true;
2461
- this._hideBar = false;
2462
- this._showPagination = true;
2463
- this._showPaginationControls = false;
2464
- this._disableScrollAfter = true;
2465
- this._disableScrollBefore = true;
2466
- this._scrollDistance = 0;
2467
- this._selectedIndexChanged = false;
2468
- this._realignInkBar = null;
2469
- this._selectedIndex = 0;
2470
- this._tabPositionMode = 'horizontal';
2471
- this._tabPosition = 'top';
2472
- this.Size = 'default';
2473
- this._type = 'line';
2474
- }
2475
- set Animated(value) {
2476
- this._animated = toBoolean(value);
2477
- }
2478
- get Animated() {
2479
- return this._animated;
2480
- }
2481
- set Position(value) {
2482
- this._tabPosition = value;
2483
- }
2484
- get Position() {
2485
- return this._tabPosition;
2486
- }
2487
- set HideBar(value) {
2488
- this._hideBar = toBoolean(value);
2489
- }
2490
- get HideBar() {
2491
- return this._hideBar;
2492
- }
2493
- set Type(value) {
2494
- this._type = value;
2495
- }
2496
- get Type() {
2497
- return this._type;
2498
- }
2499
- set ShowPagination(value) {
2500
- this._showPagination = toBoolean(value);
2501
- }
2502
- get ShowPagination() {
2503
- return this._showPagination;
2504
- }
2505
- set PositionMode(value) {
2506
- this._tabPositionMode = value;
2507
- this._alignInkBarToSelectedTab();
2508
- if (this.ShowPagination) {
2509
- this._updatePagination();
2510
- }
2511
- }
2512
- get PositionMode() {
2513
- return this._tabPositionMode;
2514
- }
2515
- set selectedIndex(value) {
2516
- this._selectedIndexChanged = this._selectedIndex !== value;
2517
- this._selectedIndex = value;
2518
- }
2519
- get selectedIndex() {
2520
- return this._selectedIndex;
2521
- }
2522
- _onContentChanges() {
2523
- if (this.ShowPagination) {
2524
- this._updatePagination();
2525
- }
2526
- this._alignInkBarToSelectedTab();
2527
- }
2528
- _scrollHeader(scrollDir) {
2529
- // Move the scroll distance one-third the length of the tab list's viewport.
2530
- this.scrollDistance += ((scrollDir === 'before' ? -1 : 1) * this.viewWidthHeightPix) / 3;
2531
- }
2532
- ngAfterContentChecked() {
2533
- if (this._tabLabelCount !== this._labelWrappers.length) {
2534
- if (this.ShowPagination) {
2535
- this._updatePagination();
2536
- }
2537
- this._tabLabelCount = this._labelWrappers.length;
2538
- }
2539
- if (this._selectedIndexChanged) {
2540
- this._scrollToLabel(this._selectedIndex);
2541
- if (this.ShowPagination) {
2542
- this._checkScrollingControls();
2543
- }
2544
- this._alignInkBarToSelectedTab();
2545
- this._selectedIndexChanged = false;
2546
- }
2547
- if (this._scrollDistanceChanged) {
2548
- if (this.ShowPagination) {
2549
- this._updateTabScrollPosition();
2550
- }
2551
- this._scrollDistanceChanged = false;
2552
- }
2553
- }
2554
- ngAfterContentInit() {
2555
- this._realignInkBar = this._ngZone.runOutsideAngular(() => {
2556
- const dirChange = this._dir ? this._dir.change : of(null);
2557
- const resize = typeof window !== 'undefined' ? fromEvent(window, 'resize').pipe(auditTime(10)) : of(null);
2558
- //@ts-ignore
2559
- return merge(dirChange, resize)
2560
- .pipe(startWith(null))
2561
- .subscribe(() => {
2562
- if (this.ShowPagination) {
2563
- this._updatePagination();
2564
- }
2565
- this._alignInkBarToSelectedTab();
2566
- });
2567
- });
2568
- }
2569
- _updateTabScrollPosition() {
2570
- const scrollDistance = this.scrollDistance;
2571
- if (this.PositionMode === 'horizontal') {
2572
- const translateX = this._getLayoutDirection() === 'ltr' ? -scrollDistance : scrollDistance;
2573
- this._renderer.setStyle(this._tabList.nativeElement, 'transform', `translate3d(${translateX}px, 0, 0)`);
2574
- }
2575
- else {
2576
- this._renderer.setStyle(this._tabList.nativeElement, 'transform', `translate3d(0,${-scrollDistance}px, 0)`);
2577
- }
2578
- }
2579
- _updatePagination() {
2580
- this._checkPaginationEnabled();
2581
- this._checkScrollingControls();
2582
- this._updateTabScrollPosition();
2583
- }
2584
- _checkPaginationEnabled() {
2585
- this._showPaginationControls = this.tabListScrollWidthHeightPix > this.elementRefOffSetWidthHeight;
2586
- if (!this._showPaginationControls) {
2587
- this.scrollDistance = 0;
2588
- }
2589
- }
2590
- _scrollToLabel(labelIndex) {
2591
- const selectedLabel = this._labelWrappers ? this._labelWrappers.toArray()[labelIndex] : null;
2592
- if (!selectedLabel) {
2593
- return;
2594
- }
2595
- // The view length is the visible width of the tab labels.
2596
- let labelBeforePos;
2597
- let labelAfterPos;
2598
- if (this.PositionMode === 'horizontal') {
2599
- if (this._getLayoutDirection() === 'ltr') {
2600
- labelBeforePos = selectedLabel.getOffsetLeft();
2601
- labelAfterPos = labelBeforePos + selectedLabel.getOffsetWidth();
2602
- }
2603
- else {
2604
- labelAfterPos = this._tabList.nativeElement.offsetWidth - selectedLabel.getOffsetLeft();
2605
- labelBeforePos = labelAfterPos - selectedLabel.getOffsetWidth();
2606
- }
2607
- }
2608
- else {
2609
- labelBeforePos = selectedLabel.getOffsetTop();
2610
- labelAfterPos = labelBeforePos + selectedLabel.getOffsetHeight();
2611
- }
2612
- const beforeVisiblePos = this.scrollDistance;
2613
- const afterVisiblePos = this.scrollDistance + this.viewWidthHeightPix;
2614
- if (labelBeforePos < beforeVisiblePos) {
2615
- // Scroll header to move label to the before direction
2616
- this.scrollDistance -= beforeVisiblePos - labelBeforePos + EXAGGERATED_OVERSCROLL;
2617
- }
2618
- else if (labelAfterPos > afterVisiblePos) {
2619
- // Scroll header to move label to the after direction
2620
- this.scrollDistance += labelAfterPos - afterVisiblePos + EXAGGERATED_OVERSCROLL;
2621
- }
2622
- }
2623
- _checkScrollingControls() {
2624
- // Check if the pagination arrows should be activated.
2625
- this._disableScrollBefore = this.scrollDistance === 0;
2626
- this._disableScrollAfter = this.scrollDistance === this._getMaxScrollDistance();
2627
- }
2628
- /**
2629
- * Determines what is the maximum length in pixels that can be set for the scroll distance. This
2630
- * is equal to the difference in width between the tab list container and tab header container.
2631
- *
2632
- * This is an expensive call that forces a layout reflow to compute box and scroll metrics and
2633
- * should be called sparingly.
2634
- */
2635
- _getMaxScrollDistance() {
2636
- return this.tabListScrollWidthHeightPix - this.viewWidthHeightPix || 0;
2637
- }
2638
- /** Sets the distance in pixels that the tab header should be transformed in the X-axis. */
2639
- set scrollDistance(v) {
2640
- this._scrollDistance = Math.max(0, Math.min(this._getMaxScrollDistance(), v));
2641
- // Mark that the scroll distance has changed so that after the view is checked, the CSS
2642
- // transformation can move the header.
2643
- this._scrollDistanceChanged = true;
2644
- this._checkScrollingControls();
2645
- }
2646
- get scrollDistance() {
2647
- return this._scrollDistance;
2648
- }
2649
- get viewWidthHeightPix() {
2650
- let PAGINATION_PIX = 0;
2651
- if (this._showPaginationControls) {
2652
- PAGINATION_PIX = 64;
2653
- }
2654
- if (this.PositionMode === 'horizontal') {
2655
- return this._tabListContainer.nativeElement.offsetWidth - PAGINATION_PIX;
2656
- }
2657
- else {
2658
- return this._tabListContainer.nativeElement.offsetHeight - PAGINATION_PIX;
2659
- }
2660
- }
2661
- get tabListScrollWidthHeightPix() {
2662
- if (this.PositionMode === 'horizontal') {
2663
- return this._tabList.nativeElement.scrollWidth;
2664
- }
2665
- else {
2666
- return this._tabList.nativeElement.scrollHeight;
2667
- }
2668
- }
2669
- get elementRefOffSetWidthHeight() {
2670
- if (this.PositionMode === 'horizontal') {
2671
- return this._elementRef.nativeElement.offsetWidth;
2672
- }
2673
- else {
2674
- return this._elementRef.nativeElement.offsetHeight;
2675
- }
2676
- }
2677
- _getLayoutDirection() {
2678
- return this._dir && this._dir.value === 'rtl' ? 'rtl' : 'ltr';
2679
- }
2680
- _alignInkBarToSelectedTab() {
2681
- if (this.Type !== 'fillup') {
2682
- const selectedLabelWrapper = this._labelWrappers && this._labelWrappers.length
2683
- ? this._labelWrappers.toArray()[this.selectedIndex].elementRef.nativeElement
2684
- : null;
2685
- if (this._inkBar) {
2686
- this._inkBar.alignToElement(selectedLabelWrapper);
2687
- }
2688
- }
2689
- }
2690
- }
2691
- MefDevTabsNavComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: MefDevTabsNavComponent, deps: [{ token: i0.ElementRef }, { token: i0.NgZone }, { token: i0.Renderer2 }, { token: i1$3.Directionality, optional: true }], target: i0.ɵɵFactoryTarget.Component });
2692
- MefDevTabsNavComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.9", type: MefDevTabsNavComponent, selector: "mefdev-tabs-nav", inputs: { Size: "Size", Animated: "Animated", Position: "Position", HideBar: "HideBar", Type: "Type", ShowPagination: "ShowPagination", PositionMode: "PositionMode", selectedIndex: "selectedIndex" }, queries: [{ propertyName: "_tabBarExtraContent", first: true, predicate: ["tabBarExtraContent"], descendants: true, static: true }, { propertyName: "_labelWrappers", predicate: MefDevTabLabelDirective }], viewQueries: [{ propertyName: "_inkBar", first: true, predicate: MefDevTabsInkBarDirective, descendants: true, static: true }, { propertyName: "_tabListContainer", first: true, predicate: ["tabListContainer"], descendants: true, static: true }, { propertyName: "_tabList", first: true, predicate: ["tabList"], descendants: true, static: true }], ngImport: i0, template: "<div class=\"nav-tabs-wrapper\" [class.scrolling]=\"_showPaginationControls\" #tabListContainer>\r\n <div class=\"nav-wrap\">\r\n <ul\r\n class=\"nav nav-tabs nav-tabs-{{ _type }} nav-tabs-{{ _tabPosition }}\"\r\n [class.tabs-nav-animated]=\"Animated\"\r\n #tabList\r\n (cdkObserveContent)=\"_onContentChanges()\"\r\n >\r\n <div\r\n class=\"active-bar\"\r\n pg-tabs-ink-bar\r\n [hidden]=\"HideBar\"\r\n [Animated]=\"Animated\"\r\n [PositionMode]=\"PositionMode\"\r\n style=\"display: block;\"\r\n ></div>\r\n <ng-content></ng-content>\r\n </ul>\r\n </div>\r\n </div>", dependencies: [{ kind: "directive", type: MefDevTabsInkBarDirective, selector: "[pg-tabs-ink-bar]", inputs: ["Animated", "PositionMode"] }], encapsulation: i0.ViewEncapsulation.None });
2693
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: MefDevTabsNavComponent, decorators: [{
2694
- type: Component,
2695
- args: [{ selector: 'mefdev-tabs-nav', encapsulation: ViewEncapsulation.None, template: "<div class=\"nav-tabs-wrapper\" [class.scrolling]=\"_showPaginationControls\" #tabListContainer>\r\n <div class=\"nav-wrap\">\r\n <ul\r\n class=\"nav nav-tabs nav-tabs-{{ _type }} nav-tabs-{{ _tabPosition }}\"\r\n [class.tabs-nav-animated]=\"Animated\"\r\n #tabList\r\n (cdkObserveContent)=\"_onContentChanges()\"\r\n >\r\n <div\r\n class=\"active-bar\"\r\n pg-tabs-ink-bar\r\n [hidden]=\"HideBar\"\r\n [Animated]=\"Animated\"\r\n [PositionMode]=\"PositionMode\"\r\n style=\"display: block;\"\r\n ></div>\r\n <ng-content></ng-content>\r\n </ul>\r\n </div>\r\n </div>" }]
2696
- }], ctorParameters: function () {
2697
- return [{ type: i0.ElementRef }, { type: i0.NgZone }, { type: i0.Renderer2 }, { type: i1$3.Directionality, decorators: [{
2698
- type: Optional
2699
- }] }];
2700
- }, propDecorators: { Size: [{
2701
- type: Input
2702
- }], Animated: [{
2703
- type: Input
2704
- }], Position: [{
2705
- type: Input
2706
- }], HideBar: [{
2707
- type: Input
2708
- }], Type: [{
2709
- type: Input
2710
- }], _tabBarExtraContent: [{
2711
- type: ContentChild,
2712
- args: ['tabBarExtraContent', { static: true }]
2713
- }], _labelWrappers: [{
2714
- type: ContentChildren,
2715
- args: [MefDevTabLabelDirective]
2716
- }], _inkBar: [{
2717
- type: ViewChild,
2718
- args: [MefDevTabsInkBarDirective, { static: true }]
2719
- }], _tabListContainer: [{
2720
- type: ViewChild,
2721
- args: ['tabListContainer', { static: true }]
2722
- }], _tabList: [{
2723
- type: ViewChild,
2724
- args: ['tabList', { static: true }]
2725
- }], ShowPagination: [{
2726
- type: Input
2727
- }], PositionMode: [{
2728
- type: Input
2729
- }], selectedIndex: [{
2730
- type: Input
2731
- }] } });
2732
-
2733
- /** code from https://github.com/angular/material2 */
2734
- class TabChangeEvent {
2735
- }
2736
- /**
2737
- * Example of usage:
2738
- * <example-url>https://mef.dev/ui_kit_demo/view/tabset</example-url>
2739
- */
2740
- class MefDevTabSetComponent {
2741
- constructor(_renderer) {
2742
- this._renderer = _renderer;
2743
- this._prefixCls = 'nav-tabs';
2744
- this._tabPosition = 'top';
2745
- this._tabPositionMode = 'horizontal';
2746
- this._indexToSelect = 0;
2747
- this._selectedIndex = null;
2748
- this._isViewInit = false;
2749
- this._tabs = [];
2750
- this._tabAnimation = '';
2751
- this._extra_tab_class = '';
2752
- this._extra_tabcontent_class = '';
2753
- this.Animated = true;
2754
- this.ShowPagination = true;
2755
- this.Hide = false;
2756
- this.SelectChange = new EventEmitter(true);
2757
- this.Size = 'default';
2758
- this._type = 'line';
2759
- this.tabs = [];
2760
- }
2761
- set SelectedIndex(value) {
2762
- this._indexToSelect = value;
2763
- }
2764
- get SelectedIndex() {
2765
- return this._selectedIndex;
2766
- }
2767
- get SelectedIndexChange() {
2768
- //@ts-ignore
2769
- return this.SelectChange.pipe(map((event) => event.index));
2770
- }
2771
- set TabPosition(value) {
2772
- this._tabPosition = value;
2773
- if (this._tabPosition === 'top' || this._tabPosition === 'bottom') {
2774
- this._tabPositionMode = 'horizontal';
2775
- }
2776
- else {
2777
- this._tabPositionMode = 'vertical';
2778
- }
2779
- }
2780
- get TabPosition() {
2781
- return this._tabPosition;
2782
- }
2783
- set extraTabClass(value) {
2784
- this._extra_tab_class = value;
2785
- }
2786
- set extraTabContentClass(value) {
2787
- this._extra_tabcontent_class = value;
2788
- }
2789
- set Type(value) {
2790
- if (this._type === value) {
2791
- return;
2792
- }
2793
- this._type = value;
2794
- this._setClassMap();
2795
- }
2796
- set tabAnimation(value) {
2797
- this._tabAnimation = value;
2798
- }
2799
- get Type() {
2800
- return this._type;
2801
- }
2802
- _setPosition(value) { }
2803
- _setClassMap() { }
2804
- clickLabel(index) {
2805
- if (this._tabs[index].Disabled) {
2806
- }
2807
- else {
2808
- this.SelectedIndex = index;
2809
- this._tabs[index].pgClick.emit();
2810
- }
2811
- }
2812
- ngOnInit() {
2813
- this._setClassMap();
2814
- }
2815
- ngAfterContentChecked() {
2816
- // Clamp the next selected index to the bounds of 0 and the tabs length. Note the `|| 0`, which
2817
- // ensures that values like NaN can't get through and which would otherwise throw the
2818
- // component into an infinite loop (since Math.max(NaN, 0) === NaN).
2819
- const indexToSelect = (this._indexToSelect = Math.min(this._tabs.length - 1, Math.max(this._indexToSelect || 0, 0)));
2820
- // If there is a change in selected index, emit a change event. Should not trigger if
2821
- // the selected index has not yet been initialized.
2822
- if (this._selectedIndex !== indexToSelect && this._selectedIndex != null) {
2823
- this.SelectChange.emit(this._createChangeEvent(indexToSelect));
2824
- }
2825
- // Setup the position for each tab and optionally setup an origin on the next selected tab.
2826
- this._tabs.forEach((tab, index) => {
2827
- tab.position = index - indexToSelect;
2828
- // If there is already a selected tab, then set up an origin for the next selected tab
2829
- // if it doesn't have one already.
2830
- if (this._selectedIndex != null && tab.position === 0 && !tab.origin) {
2831
- tab.origin = indexToSelect - this._selectedIndex;
2832
- }
2833
- });
2834
- this._selectedIndex = indexToSelect;
2835
- }
2836
- ngAfterViewInit() {
2837
- this._isViewInit = true;
2838
- }
2839
- _createChangeEvent(index) {
2840
- const event = new TabChangeEvent();
2841
- event.index = index;
2842
- if (this._tabs && this._tabs.length) {
2843
- event.tab = this._tabs[index];
2844
- this._tabs.forEach((item, i) => {
2845
- if (i !== index) {
2846
- item.pgDeselect.emit();
2847
- }
2848
- });
2849
- event.tab.pgSelect.emit();
2850
- }
2851
- return event;
2852
- }
2853
- get inkBarAnimated() {
2854
- return this.Animated === true || this.Animated.inkBar === true;
2855
- }
2856
- get tabPaneAnimated() {
2857
- return this.Animated === true || this.Animated.tabPane === true;
2858
- }
2859
- }
2860
- MefDevTabSetComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: MefDevTabSetComponent, deps: [{ token: i0.Renderer2 }], target: i0.ɵɵFactoryTarget.Component });
2861
- MefDevTabSetComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.9", type: MefDevTabSetComponent, selector: "mefdev-tabset", inputs: { TabBarExtraTemplate: "TabBarExtraTemplate", Animated: "Animated", ShowPagination: "ShowPagination", Hide: "Hide", SelectedIndex: "SelectedIndex", Size: "Size", TabPosition: "TabPosition", extraTabClass: "extraTabClass", extraTabContentClass: "extraTabContentClass", Type: "Type", tabAnimation: "tabAnimation" }, outputs: { SelectedIndexChange: "SelectedIndexChange", SelectChange: "SelectChange" }, queries: [{ propertyName: "TabBarExtraContent", first: true, predicate: ["TabBarExtraContent"], descendants: true, static: true }], viewQueries: [{ propertyName: "_tabNav", first: true, predicate: ["tabNav"], descendants: true, static: true }, { propertyName: "_tabContent", first: true, predicate: ["tabContent"], descendants: true, static: true }, { propertyName: "_hostContent", first: true, predicate: ["hostContent"], descendants: true, static: true }], ngImport: i0, template: "<div class=\"tab-wrapper tab-{{ _tabPositionMode }} {{ _tabPosition }} {{ _type }} {{ _extra_tab_class }}\" #hostContent>\r\n <mefdev-tabs-nav\r\n #tabNav\r\n [Size]=\"Size\"\r\n [Type]=\"Type\"\r\n [ShowPagination]=\"ShowPagination\"\r\n [PositionMode]=\"_tabPositionMode\"\r\n [Position]=\"_tabPosition\"\r\n [Animated]=\"inkBarAnimated\"\r\n [HideBar]=\"Hide\"\r\n [selectedIndex]=\"SelectedIndex\"\r\n >\r\n <ng-template #tabBarExtraContent>\r\n <ng-template [ngTemplateOutlet]=\"TabBarExtraTemplate || TabBarExtraContent\"></ng-template>\r\n </ng-template>\r\n <li pg-tab-label [disabled]=\"tab.disabled\" (click)=\"clickLabel(i)\" *ngFor=\"let tab of _tabs; let i = index\">\r\n <a href=\"javascript:void(0);\" class=\"\" [class.active]=\"SelectedIndex == i && !Hide\">\r\n <ng-template [ngTemplateOutlet]=\"tab._tabHeading\"></ng-template>\r\n </a>\r\n </mefdev-tabs-nav>\r\n <div class=\"tab-content-wrapper {{ _extra_tabcontent_class }}\">\r\n <div\r\n class=\"tab-content {{ _tabAnimation }}\"\r\n #tabContent\r\n [class.animated]=\"tabPaneAnimated\"\r\n [class.not-animated]=\"!tabPaneAnimated\"\r\n [style.margin-left.%]=\"tabPaneAnimated && -(SelectedIndex ?? -1) * 100\"\r\n >\r\n <mefdev-tab-body\r\n class=\"tab-pane\"\r\n [class.active]=\"SelectedIndex == i && !Hide\"\r\n [class.inactive]=\"SelectedIndex != i || Hide\"\r\n [content]=\"tab.content\"\r\n *ngFor=\"let tab of _tabs; let i = index\"\r\n >\r\n </mefdev-tab-body>\r\n </div>\r\n </div>\r\n </div>", dependencies: [{ kind: "directive", type: i1.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i1.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "component", type: MefDevTabsNavComponent, selector: "mefdev-tabs-nav", inputs: ["Size", "Animated", "Position", "HideBar", "Type", "ShowPagination", "PositionMode", "selectedIndex"] }, { kind: "directive", type: MefDevTabLabelDirective, selector: "[pg-tab-label]", inputs: ["disabled"] }, { kind: "component", type: MefDevTabBodyComponent, selector: "mefdev-tab-body", inputs: ["content"] }], encapsulation: i0.ViewEncapsulation.None });
2862
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: MefDevTabSetComponent, decorators: [{
2863
- type: Component,
2864
- args: [{ selector: 'mefdev-tabset', encapsulation: ViewEncapsulation.None, template: "<div class=\"tab-wrapper tab-{{ _tabPositionMode }} {{ _tabPosition }} {{ _type }} {{ _extra_tab_class }}\" #hostContent>\r\n <mefdev-tabs-nav\r\n #tabNav\r\n [Size]=\"Size\"\r\n [Type]=\"Type\"\r\n [ShowPagination]=\"ShowPagination\"\r\n [PositionMode]=\"_tabPositionMode\"\r\n [Position]=\"_tabPosition\"\r\n [Animated]=\"inkBarAnimated\"\r\n [HideBar]=\"Hide\"\r\n [selectedIndex]=\"SelectedIndex\"\r\n >\r\n <ng-template #tabBarExtraContent>\r\n <ng-template [ngTemplateOutlet]=\"TabBarExtraTemplate || TabBarExtraContent\"></ng-template>\r\n </ng-template>\r\n <li pg-tab-label [disabled]=\"tab.disabled\" (click)=\"clickLabel(i)\" *ngFor=\"let tab of _tabs; let i = index\">\r\n <a href=\"javascript:void(0);\" class=\"\" [class.active]=\"SelectedIndex == i && !Hide\">\r\n <ng-template [ngTemplateOutlet]=\"tab._tabHeading\"></ng-template>\r\n </a>\r\n </mefdev-tabs-nav>\r\n <div class=\"tab-content-wrapper {{ _extra_tabcontent_class }}\">\r\n <div\r\n class=\"tab-content {{ _tabAnimation }}\"\r\n #tabContent\r\n [class.animated]=\"tabPaneAnimated\"\r\n [class.not-animated]=\"!tabPaneAnimated\"\r\n [style.margin-left.%]=\"tabPaneAnimated && -(SelectedIndex ?? -1) * 100\"\r\n >\r\n <mefdev-tab-body\r\n class=\"tab-pane\"\r\n [class.active]=\"SelectedIndex == i && !Hide\"\r\n [class.inactive]=\"SelectedIndex != i || Hide\"\r\n [content]=\"tab.content\"\r\n *ngFor=\"let tab of _tabs; let i = index\"\r\n >\r\n </mefdev-tab-body>\r\n </div>\r\n </div>\r\n </div>" }]
2865
- }], ctorParameters: function () { return [{ type: i0.Renderer2 }]; }, propDecorators: { TabBarExtraTemplate: [{
2866
- type: Input
2867
- }], TabBarExtraContent: [{
2868
- type: ContentChild,
2869
- args: ['TabBarExtraContent', { static: true }]
2870
- }], _tabNav: [{
2871
- type: ViewChild,
2872
- args: ['tabNav', { static: true }]
2873
- }], _tabContent: [{
2874
- type: ViewChild,
2875
- args: ['tabContent', { static: true }]
2876
- }], _hostContent: [{
2877
- type: ViewChild,
2878
- args: ['hostContent', { static: true }]
2879
- }], Animated: [{
2880
- type: Input
2881
- }], ShowPagination: [{
2882
- type: Input
2883
- }], Hide: [{
2884
- type: Input
2885
- }], SelectedIndex: [{
2886
- type: Input
2887
- }], SelectedIndexChange: [{
2888
- type: Output
2889
- }], SelectChange: [{
2890
- type: Output
2891
- }], Size: [{
2892
- type: Input
2893
- }], TabPosition: [{
2894
- type: Input
2895
- }], extraTabClass: [{
2896
- type: Input
2897
- }], extraTabContentClass: [{
2898
- type: Input
2899
- }], Type: [{
2900
- type: Input
2901
- }], tabAnimation: [{
2902
- type: Input
2903
- }] } });
2904
-
2905
- class MefDevTabComponent {
2906
- constructor(MefDevTabSetComponent) {
2907
- this.MefDevTabSetComponent = MefDevTabSetComponent;
2908
- this.disabled = false;
2909
- this.position = null;
2910
- this.origin = null;
2911
- this.pgSelect = new EventEmitter();
2912
- this.pgClick = new EventEmitter();
2913
- this.pgDeselect = new EventEmitter();
2914
- }
2915
- set Disabled(value) {
2916
- this.disabled = toBoolean(value);
2917
- }
2918
- get Disabled() {
2919
- return this.disabled;
2920
- }
2921
- get content() {
2922
- return this._content;
2923
- }
2924
- ngOnInit() {
2925
- this.MefDevTabSetComponent._tabs.push(this);
2926
- }
2927
- ngOnDestroy() {
2928
- this.MefDevTabSetComponent._tabs.splice(this.MefDevTabSetComponent._tabs.indexOf(this), 1);
2929
- }
2930
- }
2931
- MefDevTabComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: MefDevTabComponent, deps: [{ token: MefDevTabSetComponent }], target: i0.ɵɵFactoryTarget.Component });
2932
- MefDevTabComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.9", type: MefDevTabComponent, selector: "mefdev-tab", inputs: { Disabled: "Disabled" }, outputs: { pgSelect: "pgSelect", pgClick: "pgClick", pgDeselect: "pgDeselect" }, host: { properties: { "class.ant-tabs-tabpane": "true" } }, queries: [{ propertyName: "_tabHeading", first: true, predicate: ["TabHeading"], descendants: true, static: true }], viewQueries: [{ propertyName: "_content", first: true, predicate: TemplateRef, descendants: true, static: true }], ngImport: i0, template: "<ng-template>\r\n <ng-content></ng-content>\r\n </ng-template>" });
2933
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: MefDevTabComponent, decorators: [{
2934
- type: Component,
2935
- args: [{ selector: 'mefdev-tab', host: {
2936
- '[class.ant-tabs-tabpane]': 'true'
2937
- }, template: "<ng-template>\r\n <ng-content></ng-content>\r\n </ng-template>" }]
2938
- }], ctorParameters: function () { return [{ type: MefDevTabSetComponent }]; }, propDecorators: { Disabled: [{
2939
- type: Input
2940
- }], pgSelect: [{
2941
- type: Output
2942
- }], pgClick: [{
2943
- type: Output
2944
- }], pgDeselect: [{
2945
- type: Output
2946
- }], _tabHeading: [{
2947
- type: ContentChild,
2948
- args: ['TabHeading', { static: true }]
2949
- }], _content: [{
2950
- type: ViewChild,
2951
- args: [TemplateRef, { static: true }]
2952
- }] } });
2953
-
2954
- class MefDevTabsModule {
2955
- }
2956
- MefDevTabsModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: MefDevTabsModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
2957
- MefDevTabsModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "15.2.9", ngImport: i0, type: MefDevTabsModule, declarations: [MefDevTabComponent, MefDevTabSetComponent, MefDevTabsNavComponent, MefDevTabLabelDirective, MefDevTabsInkBarDirective, MefDevTabBodyComponent], imports: [CommonModule], exports: [MefDevTabComponent, MefDevTabSetComponent, MefDevTabsNavComponent, MefDevTabLabelDirective, MefDevTabsInkBarDirective, MefDevTabBodyComponent] });
2958
- MefDevTabsModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: MefDevTabsModule, imports: [CommonModule] });
2959
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: MefDevTabsModule, decorators: [{
2960
- type: NgModule,
2961
- args: [{
2962
- declarations: [MefDevTabComponent, MefDevTabSetComponent, MefDevTabsNavComponent, MefDevTabLabelDirective, MefDevTabsInkBarDirective, MefDevTabBodyComponent],
2963
- exports: [MefDevTabComponent, MefDevTabSetComponent, MefDevTabsNavComponent, MefDevTabLabelDirective, MefDevTabsInkBarDirective, MefDevTabBodyComponent],
2964
- imports: [CommonModule]
2965
- }]
2966
- }] });
2967
-
2968
- /**
2969
- * Generated bundle index. Do not edit.
2970
- */
2971
-
2972
- export { CardComponent, CardLongComponent, CardSimpleComponent, CartTypeColors, CentralPageComponent, CentralPageRowComponent, CollapseComponent, CollapseSetComponent, FillComponent, FilteredFieldContainerComponent, FilteredFieldItemComponent, FilteredFieldService, FiltredItemModel, HelpBlockComponent, ManagePageComponent, MefDevCardModule, MefDevCollapseModule, MefDevFilteredFieldModule, MefDevHelpBlockModule, MefDevModalModule, MefDevOptionComponent, MefDevPageLayoutsModule, MefDevProgressComponent, MefDevProgressModule, MefDevSelectComponent, MefDevSelectModule, MefDevSpecFlowTestComponent, MefDevSpecFlowTestModule, MefDevSwitchComponent, MefDevSwitchModule, MefDevTabBodyComponent, MefDevTabComponent, MefDevTabLabelDirective, MefDevTabSetComponent, MefDevTabsInkBarDirective, MefDevTabsModule, MefDevTabsNavComponent, OptionPipe, ProfileComponent, ProgressConfig, RightFilterComponent, SlideRightComponent, SlideUpComponent, TabChangeEvent, TablePageComponent, mefDevCardComponents, mefDevCollapseModuleComponents, pgCard, pgCardModule };
2973
- //# sourceMappingURL=natec-mef-dev-ui-kit.mjs.map