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