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