@natec/mef-dev-ui-kit 0.0.66 → 0.0.67

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