@inspark/inspark-components 1.0.44 → 14.0.1

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 (252) hide show
  1. package/full/components/autocomplete/autocomplete.component.d.ts +12 -1
  2. package/full/components/breadcrumb/breadcrumb.component.d.ts +3 -0
  3. package/full/components/button/button.component.d.ts +5 -1
  4. package/full/components/checkbox/checkbox.component.d.ts +3 -0
  5. package/full/components/communication.service.d.ts +3 -0
  6. package/full/components/component-container/component-container.component.d.ts +3 -0
  7. package/full/components/content-toggle/content-toggle.component.d.ts +3 -0
  8. package/full/components/dropdown/dropdown.component.d.ts +65 -13
  9. package/full/components/empty/empty.component.d.ts +3 -0
  10. package/full/components/file/file.component.d.ts +3 -0
  11. package/full/components/header/header.component.d.ts +3 -0
  12. package/full/components/inline-message/inline-message.component.d.ts +3 -0
  13. package/full/components/input-group/input-group.component.d.ts +3 -0
  14. package/full/components/input-text/input-text.component.d.ts +3 -0
  15. package/full/components/inspark.module.d.ts +47 -0
  16. package/full/components/inspark.shared.d.ts +3 -0
  17. package/full/components/link/link.component.d.ts +5 -1
  18. package/full/components/modal-input-text/modal-input-text.component.d.ts +4 -1
  19. package/full/components/object-tree/object-tree.component.d.ts +3 -0
  20. package/full/components/panel/panel.component.d.ts +3 -0
  21. package/full/components/pie/pie.component.d.ts +3 -0
  22. package/full/components/pie/pie.service.d.ts +3 -0
  23. package/full/components/preloader/preloader.component.d.ts +3 -0
  24. package/full/components/primeng.module.d.ts +5 -0
  25. package/full/components/radiobutton/radiobutton.component.d.ts +3 -0
  26. package/full/components/select-button/select-button.component.d.ts +3 -0
  27. package/full/components/select-list/select-list.component.d.ts +4 -1
  28. package/full/components/status-circle/status-circle.component.d.ts +3 -0
  29. package/full/components/sticky/sticky.component.d.ts +3 -0
  30. package/full/components/svg/svg.component.d.ts +4 -1
  31. package/full/components/switcher/switcher.component.d.ts +3 -0
  32. package/full/components/table/table-click-outside.directive.d.ts +3 -0
  33. package/full/components/table/table-columns-multiselect/table-columns-multiselect.component.d.ts +3 -0
  34. package/full/components/table/table-menu-overlay/table-menu-overlay.component.d.ts +3 -0
  35. package/full/components/table/table.component.d.ts +18 -0
  36. package/full/components/textarea/textarea.component.d.ts +3 -0
  37. package/full/components/toolbar/toolbar.component.d.ts +3 -0
  38. package/full/components/tooltip/tooltip.component.d.ts +3 -0
  39. package/full/components/tree-table/tree-table.component.d.ts +12 -0
  40. package/full/esm2020/components/autocomplete/autocomplete.component.mjs +220 -0
  41. package/full/esm2020/components/breadcrumb/breadcrumb.component.mjs +20 -0
  42. package/full/esm2020/components/button/button.component.mjs +160 -0
  43. package/full/esm2020/components/checkbox/checkbox.component.mjs +89 -0
  44. package/full/esm2020/components/communication.service.mjs +25 -0
  45. package/full/esm2020/components/component-container/component-container.component.mjs +17 -0
  46. package/full/esm2020/components/content-toggle/content-toggle.component.mjs +49 -0
  47. package/full/esm2020/components/dropdown/dropdown.component.mjs +328 -0
  48. package/full/esm2020/components/empty/empty.component.mjs +12 -0
  49. package/full/esm2020/components/file/file.component.mjs +53 -0
  50. package/full/esm2020/components/header/header.component.mjs +23 -0
  51. package/full/esm2020/components/inline-message/inline-message.component.mjs +20 -0
  52. package/full/esm2020/components/input-group/input-group.component.mjs +163 -0
  53. package/full/esm2020/components/input-text/input-text.component.mjs +149 -0
  54. package/full/esm2020/components/inspark.module.mjs +239 -0
  55. package/full/esm2020/components/inspark.shared.mjs +25 -0
  56. package/full/esm2020/components/link/link.component.mjs +131 -0
  57. package/full/esm2020/components/modal-input-text/modal-input-text.component.mjs +88 -0
  58. package/full/esm2020/components/object-tree/object-tree.component.mjs +14 -0
  59. package/full/esm2020/components/panel/panel.component.mjs +11 -0
  60. package/full/esm2020/components/pie/pie.component.mjs +44 -0
  61. package/full/esm2020/components/pie/pie.service.mjs +55 -0
  62. package/full/esm2020/components/preloader/preloader.component.mjs +25 -0
  63. package/full/esm2020/components/primeng.module.mjs +22 -0
  64. package/full/esm2020/components/radiobutton/radiobutton.component.mjs +50 -0
  65. package/full/esm2020/components/select-button/select-button.component.mjs +147 -0
  66. package/full/esm2020/components/select-list/select-list.component.mjs +55 -0
  67. package/full/esm2020/components/status-circle/status-circle.component.mjs +36 -0
  68. package/full/esm2020/components/sticky/sticky.component.mjs +64 -0
  69. package/full/esm2020/components/svg/svg.component.mjs +28 -0
  70. package/full/esm2020/components/switcher/switcher.component.mjs +123 -0
  71. package/full/esm2020/components/table/table-click-outside.directive.mjs +31 -0
  72. package/full/esm2020/components/table/table-columns-multiselect/table-columns-multiselect.component.mjs +32 -0
  73. package/full/esm2020/components/table/table-menu-overlay/table-menu-overlay.component.mjs +26 -0
  74. package/full/esm2020/components/table/table.component.mjs +472 -0
  75. package/full/esm2020/components/textarea/textarea.component.mjs +87 -0
  76. package/full/esm2020/components/toolbar/toolbar.component.mjs +30 -0
  77. package/full/esm2020/components/tooltip/tooltip.component.mjs +14 -0
  78. package/full/esm2020/components/tree-table/tree-table.component.mjs +206 -0
  79. package/full/esm2020/inspark-inspark-components.mjs +5 -0
  80. package/full/esm2020/interface.mjs +2 -0
  81. package/full/esm2020/pipes/pipes.module.mjs +19 -0
  82. package/full/esm2020/pipes/propertyValue.pipe.mjs +25 -0
  83. package/full/esm2020/pipes/safeUrl.pipe.mjs +36 -0
  84. package/full/esm2020/pipes/sort-by.pipe.mjs +28 -0
  85. package/full/esm2020/pipes/time.pipe.mjs +206 -0
  86. package/full/esm2020/public_api.mjs +60 -0
  87. package/full/esm2020/services/inspark-dialog.service.mjs +52 -0
  88. package/full/esm2020/services/inspark-message.service.mjs +71 -0
  89. package/full/esm2020/utils/gettextMarker.function.mjs +5 -0
  90. package/full/esm2020/utils/hybrid/prime-table/row-state.enum.mjs +9 -0
  91. package/full/esm2020/utils/hybrid/prime-table/table-row-data.model.mjs +2 -0
  92. package/full/fesm2015/inspark-inspark-components.mjs +3574 -0
  93. package/full/fesm2015/inspark-inspark-components.mjs.map +1 -0
  94. package/full/fesm2020/inspark-inspark-components.mjs +3577 -0
  95. package/full/fesm2020/inspark-inspark-components.mjs.map +1 -0
  96. package/full/index.css +1265 -3352
  97. package/{interface/inspark-inspark-components.d.ts → full/index.d.ts} +1 -0
  98. package/full/index.js +1 -1
  99. package/full/interface.d.ts +1 -1
  100. package/full/package.json +26 -16
  101. package/full/pipes/pipes.module.d.ts +8 -0
  102. package/full/pipes/propertyValue.pipe.d.ts +3 -0
  103. package/full/pipes/safeUrl.pipe.d.ts +3 -0
  104. package/full/pipes/sort-by.pipe.d.ts +3 -0
  105. package/full/pipes/time.pipe.d.ts +9 -0
  106. package/full/public_api.d.ts +15 -1
  107. package/full/services/inspark-dialog.service.d.ts +4 -2
  108. package/full/services/inspark-message.service.d.ts +3 -0
  109. package/interface/esm2020/inspark-inspark-components.mjs +5 -0
  110. package/interface/esm2020/interface.mjs +2 -0
  111. package/interface/esm2020/public_api.mjs +5 -0
  112. package/interface/fesm2015/inspark-inspark-components.mjs +8 -0
  113. package/interface/fesm2015/inspark-inspark-components.mjs.map +1 -0
  114. package/interface/fesm2020/inspark-inspark-components.mjs +8 -0
  115. package/interface/fesm2020/inspark-inspark-components.mjs.map +1 -0
  116. package/interface/index.d.ts +5 -0
  117. package/interface/interface.d.ts +1 -1
  118. package/interface/package.json +26 -16
  119. package/package.json +1 -1
  120. package/full/bundles/inspark-inspark-components.umd.js +0 -4622
  121. package/full/bundles/inspark-inspark-components.umd.js.map +0 -1
  122. package/full/bundles/inspark-inspark-components.umd.min.js +0 -16
  123. package/full/bundles/inspark-inspark-components.umd.min.js.map +0 -1
  124. package/full/esm2015/components/autocomplete/autocomplete.component.js +0 -310
  125. package/full/esm2015/components/breadcrumb/breadcrumb.component.js +0 -23
  126. package/full/esm2015/components/button/button.component.js +0 -217
  127. package/full/esm2015/components/checkbox/checkbox.component.js +0 -104
  128. package/full/esm2015/components/communication.service.js +0 -24
  129. package/full/esm2015/components/component-container/component-container.component.js +0 -20
  130. package/full/esm2015/components/content-toggle/content-toggle.component.js +0 -66
  131. package/full/esm2015/components/dropdown/dropdown.component.js +0 -353
  132. package/full/esm2015/components/empty/empty.component.js +0 -13
  133. package/full/esm2015/components/file/file.component.js +0 -65
  134. package/full/esm2015/components/header/header.component.js +0 -30
  135. package/full/esm2015/components/inline-message/inline-message.component.js +0 -25
  136. package/full/esm2015/components/input-group/input-group.component.js +0 -197
  137. package/full/esm2015/components/input-text/input-text.component.js +0 -198
  138. package/full/esm2015/components/inspark.module.js +0 -137
  139. package/full/esm2015/components/inspark.shared.js +0 -30
  140. package/full/esm2015/components/link/link.component.js +0 -164
  141. package/full/esm2015/components/modal-input-text/modal-input-text.component.js +0 -94
  142. package/full/esm2015/components/object-tree/object-tree.component.js +0 -18
  143. package/full/esm2015/components/panel/panel.component.js +0 -13
  144. package/full/esm2015/components/pie/pie.component.js +0 -59
  145. package/full/esm2015/components/pie/pie.service.js +0 -54
  146. package/full/esm2015/components/preloader/preloader.component.js +0 -34
  147. package/full/esm2015/components/primeng.module.js +0 -19
  148. package/full/esm2015/components/radiobutton/radiobutton.component.js +0 -75
  149. package/full/esm2015/components/select-button/select-button.component.js +0 -176
  150. package/full/esm2015/components/select-list/select-list.component.js +0 -60
  151. package/full/esm2015/components/status-circle/status-circle.component.js +0 -51
  152. package/full/esm2015/components/sticky/sticky.component.js +0 -82
  153. package/full/esm2015/components/svg/svg.component.js +0 -36
  154. package/full/esm2015/components/switcher/switcher.component.js +0 -148
  155. package/full/esm2015/components/table/table-click-outside.directive.js +0 -38
  156. package/full/esm2015/components/table/table-columns-multiselect/table-columns-multiselect.component.js +0 -37
  157. package/full/esm2015/components/table/table-menu-overlay/table-menu-overlay.component.js +0 -35
  158. package/full/esm2015/components/table/table.component.js +0 -535
  159. package/full/esm2015/components/textarea/textarea.component.js +0 -101
  160. package/full/esm2015/components/toolbar/toolbar.component.js +0 -40
  161. package/full/esm2015/components/tooltip/tooltip.component.js +0 -18
  162. package/full/esm2015/components/tree-table/tree-table.component.js +0 -255
  163. package/full/esm2015/inspark-inspark-components.js +0 -20
  164. package/full/esm2015/interface.js +0 -1
  165. package/full/esm2015/pipes/pipes.module.js +0 -16
  166. package/full/esm2015/pipes/propertyValue.pipe.js +0 -23
  167. package/full/esm2015/pipes/safeUrl.pipe.js +0 -37
  168. package/full/esm2015/pipes/sort-by.pipe.js +0 -26
  169. package/full/esm2015/pipes/time.pipe.js +0 -201
  170. package/full/esm2015/public_api.js +0 -45
  171. package/full/esm2015/services/inspark-dialog.service.js +0 -59
  172. package/full/esm2015/services/inspark-message.service.js +0 -73
  173. package/full/esm2015/utils/gettextMarker.function.js +0 -5
  174. package/full/esm2015/utils/hybrid/prime-table/row-state.enum.js +0 -9
  175. package/full/esm2015/utils/hybrid/prime-table/table-row-data.model.js +0 -1
  176. package/full/esm5/components/autocomplete/autocomplete.component.js +0 -318
  177. package/full/esm5/components/breadcrumb/breadcrumb.component.js +0 -24
  178. package/full/esm5/components/button/button.component.js +0 -224
  179. package/full/esm5/components/checkbox/checkbox.component.js +0 -106
  180. package/full/esm5/components/communication.service.js +0 -25
  181. package/full/esm5/components/component-container/component-container.component.js +0 -21
  182. package/full/esm5/components/content-toggle/content-toggle.component.js +0 -67
  183. package/full/esm5/components/dropdown/dropdown.component.js +0 -357
  184. package/full/esm5/components/empty/empty.component.js +0 -16
  185. package/full/esm5/components/file/file.component.js +0 -66
  186. package/full/esm5/components/header/header.component.js +0 -31
  187. package/full/esm5/components/inline-message/inline-message.component.js +0 -26
  188. package/full/esm5/components/input-group/input-group.component.js +0 -199
  189. package/full/esm5/components/input-text/input-text.component.js +0 -200
  190. package/full/esm5/components/inspark.module.js +0 -140
  191. package/full/esm5/components/inspark.shared.js +0 -31
  192. package/full/esm5/components/link/link.component.js +0 -165
  193. package/full/esm5/components/modal-input-text/modal-input-text.component.js +0 -98
  194. package/full/esm5/components/object-tree/object-tree.component.js +0 -20
  195. package/full/esm5/components/panel/panel.component.js +0 -16
  196. package/full/esm5/components/pie/pie.component.js +0 -60
  197. package/full/esm5/components/pie/pie.service.js +0 -56
  198. package/full/esm5/components/preloader/preloader.component.js +0 -35
  199. package/full/esm5/components/primeng.module.js +0 -22
  200. package/full/esm5/components/radiobutton/radiobutton.component.js +0 -76
  201. package/full/esm5/components/select-button/select-button.component.js +0 -179
  202. package/full/esm5/components/select-list/select-list.component.js +0 -62
  203. package/full/esm5/components/status-circle/status-circle.component.js +0 -52
  204. package/full/esm5/components/sticky/sticky.component.js +0 -84
  205. package/full/esm5/components/svg/svg.component.js +0 -39
  206. package/full/esm5/components/switcher/switcher.component.js +0 -150
  207. package/full/esm5/components/table/table-click-outside.directive.js +0 -39
  208. package/full/esm5/components/table/table-columns-multiselect/table-columns-multiselect.component.js +0 -38
  209. package/full/esm5/components/table/table-menu-overlay/table-menu-overlay.component.js +0 -36
  210. package/full/esm5/components/table/table.component.js +0 -554
  211. package/full/esm5/components/textarea/textarea.component.js +0 -103
  212. package/full/esm5/components/toolbar/toolbar.component.js +0 -41
  213. package/full/esm5/components/tooltip/tooltip.component.js +0 -20
  214. package/full/esm5/components/tree-table/tree-table.component.js +0 -280
  215. package/full/esm5/inspark-inspark-components.js +0 -20
  216. package/full/esm5/interface.js +0 -1
  217. package/full/esm5/pipes/pipes.module.js +0 -19
  218. package/full/esm5/pipes/propertyValue.pipe.js +0 -26
  219. package/full/esm5/pipes/safeUrl.pipe.js +0 -38
  220. package/full/esm5/pipes/sort-by.pipe.js +0 -29
  221. package/full/esm5/pipes/time.pipe.js +0 -212
  222. package/full/esm5/public_api.js +0 -45
  223. package/full/esm5/services/inspark-dialog.service.js +0 -61
  224. package/full/esm5/services/inspark-message.service.js +0 -78
  225. package/full/esm5/utils/gettextMarker.function.js +0 -5
  226. package/full/esm5/utils/hybrid/prime-table/row-state.enum.js +0 -9
  227. package/full/esm5/utils/hybrid/prime-table/table-row-data.model.js +0 -1
  228. package/full/fesm2015/inspark-inspark-components.js +0 -4174
  229. package/full/fesm2015/inspark-inspark-components.js.map +0 -1
  230. package/full/fesm5/inspark-inspark-components.js +0 -4324
  231. package/full/fesm5/inspark-inspark-components.js.map +0 -1
  232. package/full/fonts/primeicons.eot +0 -0
  233. package/full/fonts/primeicons.svg +0 -163
  234. package/full/fonts/primeicons.ttf +0 -0
  235. package/full/fonts/primeicons.woff +0 -0
  236. package/full/inspark-inspark-components.d.ts +0 -19
  237. package/full/inspark-inspark-components.metadata.json +0 -1
  238. package/interface/bundles/inspark-inspark-components.umd.js +0 -11
  239. package/interface/bundles/inspark-inspark-components.umd.js.map +0 -1
  240. package/interface/bundles/inspark-inspark-components.umd.min.js +0 -2
  241. package/interface/bundles/inspark-inspark-components.umd.min.js.map +0 -1
  242. package/interface/esm2015/inspark-inspark-components.js +0 -4
  243. package/interface/esm2015/interface.js +0 -1
  244. package/interface/esm2015/public_api.js +0 -4
  245. package/interface/esm5/inspark-inspark-components.js +0 -4
  246. package/interface/esm5/interface.js +0 -1
  247. package/interface/esm5/public_api.js +0 -4
  248. package/interface/fesm2015/inspark-inspark-components.js +0 -4
  249. package/interface/fesm2015/inspark-inspark-components.js.map +0 -1
  250. package/interface/fesm5/inspark-inspark-components.js +0 -4
  251. package/interface/fesm5/inspark-inspark-components.js.map +0 -1
  252. package/interface/inspark-inspark-components.metadata.json +0 -1
@@ -1,4622 +0,0 @@
1
- (function (global, factory) {
2
- typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('@angular/core'), require('@ngx-translate/core'), require('@angular/platform-browser'), require('primeng/api'), require('@biesbjerg/ngx-translate-extract/dist/utils/utils'), require('primeng/dynamicdialog'), require('primeng/components/dynamicdialog/dynamicdialog-injector'), require('rxjs'), require('@angular/forms'), require('@angular/common'), require('primeng/primeng'), require('@angular/router'), require('@angular/cdk/scrolling'), require('@angular/animations'), require('primeng/table'), require('primeng/dropdown'), require('primeng/multiselect'), require('@ng-bootstrap/ng-bootstrap'), require('primeng/checkbox'), require('primeng/components/utils/objectutils'), require('ng-inline-svg'), require('primeng/menu'), require('primeng/slider')) :
3
- typeof define === 'function' && define.amd ? define('@inspark/inspark-components', ['exports', '@angular/core', '@ngx-translate/core', '@angular/platform-browser', 'primeng/api', '@biesbjerg/ngx-translate-extract/dist/utils/utils', 'primeng/dynamicdialog', 'primeng/components/dynamicdialog/dynamicdialog-injector', 'rxjs', '@angular/forms', '@angular/common', 'primeng/primeng', '@angular/router', '@angular/cdk/scrolling', '@angular/animations', 'primeng/table', 'primeng/dropdown', 'primeng/multiselect', '@ng-bootstrap/ng-bootstrap', 'primeng/checkbox', 'primeng/components/utils/objectutils', 'ng-inline-svg', 'primeng/menu', 'primeng/slider'], factory) :
4
- (global = global || self, factory((global.inspark = global.inspark || {}, global.inspark['inspark-components'] = {}), global.ng.core, global.core$1, global.ng.platformBrowser, global.api, global.utils, global.dynamicdialog, global.dynamicdialogInjector, global.rxjs, global.ng.forms, global.ng.common, global.primeng, global.ng.router, global.ng.cdk.scrolling, global.ng.animations, global.table, global.dropdown, global.multiselect, global.ngBootstrap, global.checkbox, global.objectutils, global.ngInlineSvg, global.menu, global.slider));
5
- }(this, (function (exports, core, core$1, platformBrowser, api, utils, dynamicdialog, dynamicdialogInjector, rxjs, forms, common, primeng, router, scrolling, animations, table, dropdown, multiselect, ngBootstrap, checkbox, objectutils, ngInlineSvg, menu, slider) { 'use strict';
6
-
7
- /*! *****************************************************************************
8
- Copyright (c) Microsoft Corporation.
9
-
10
- Permission to use, copy, modify, and/or distribute this software for any
11
- purpose with or without fee is hereby granted.
12
-
13
- THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
14
- REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
15
- AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
16
- INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
17
- LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
18
- OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
19
- PERFORMANCE OF THIS SOFTWARE.
20
- ***************************************************************************** */
21
- /* global Reflect, Promise */
22
-
23
- var extendStatics = function(d, b) {
24
- extendStatics = Object.setPrototypeOf ||
25
- ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
26
- function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
27
- return extendStatics(d, b);
28
- };
29
-
30
- function __extends(d, b) {
31
- extendStatics(d, b);
32
- function __() { this.constructor = d; }
33
- d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
34
- }
35
-
36
- var __assign = function() {
37
- __assign = Object.assign || function __assign(t) {
38
- for (var s, i = 1, n = arguments.length; i < n; i++) {
39
- s = arguments[i];
40
- for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];
41
- }
42
- return t;
43
- };
44
- return __assign.apply(this, arguments);
45
- };
46
-
47
- function __rest(s, e) {
48
- var t = {};
49
- for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
50
- t[p] = s[p];
51
- if (s != null && typeof Object.getOwnPropertySymbols === "function")
52
- for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
53
- if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
54
- t[p[i]] = s[p[i]];
55
- }
56
- return t;
57
- }
58
-
59
- function __decorate(decorators, target, key, desc) {
60
- var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
61
- if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
62
- else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
63
- return c > 3 && r && Object.defineProperty(target, key, r), r;
64
- }
65
-
66
- function __param(paramIndex, decorator) {
67
- return function (target, key) { decorator(target, key, paramIndex); }
68
- }
69
-
70
- function __metadata(metadataKey, metadataValue) {
71
- if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(metadataKey, metadataValue);
72
- }
73
-
74
- function __awaiter(thisArg, _arguments, P, generator) {
75
- function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
76
- return new (P || (P = Promise))(function (resolve, reject) {
77
- function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
78
- function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
79
- function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
80
- step((generator = generator.apply(thisArg, _arguments || [])).next());
81
- });
82
- }
83
-
84
- function __generator(thisArg, body) {
85
- var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
86
- return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
87
- function verb(n) { return function (v) { return step([n, v]); }; }
88
- function step(op) {
89
- if (f) throw new TypeError("Generator is already executing.");
90
- while (_) try {
91
- if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
92
- if (y = 0, t) op = [op[0] & 2, t.value];
93
- switch (op[0]) {
94
- case 0: case 1: t = op; break;
95
- case 4: _.label++; return { value: op[1], done: false };
96
- case 5: _.label++; y = op[1]; op = [0]; continue;
97
- case 7: op = _.ops.pop(); _.trys.pop(); continue;
98
- default:
99
- if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
100
- if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
101
- if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
102
- if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
103
- if (t[2]) _.ops.pop();
104
- _.trys.pop(); continue;
105
- }
106
- op = body.call(thisArg, _);
107
- } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
108
- if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
109
- }
110
- }
111
-
112
- function __createBinding(o, m, k, k2) {
113
- if (k2 === undefined) k2 = k;
114
- o[k2] = m[k];
115
- }
116
-
117
- function __exportStar(m, exports) {
118
- for (var p in m) if (p !== "default" && !exports.hasOwnProperty(p)) exports[p] = m[p];
119
- }
120
-
121
- function __values(o) {
122
- var s = typeof Symbol === "function" && Symbol.iterator, m = s && o[s], i = 0;
123
- if (m) return m.call(o);
124
- if (o && typeof o.length === "number") return {
125
- next: function () {
126
- if (o && i >= o.length) o = void 0;
127
- return { value: o && o[i++], done: !o };
128
- }
129
- };
130
- throw new TypeError(s ? "Object is not iterable." : "Symbol.iterator is not defined.");
131
- }
132
-
133
- function __read(o, n) {
134
- var m = typeof Symbol === "function" && o[Symbol.iterator];
135
- if (!m) return o;
136
- var i = m.call(o), r, ar = [], e;
137
- try {
138
- while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);
139
- }
140
- catch (error) { e = { error: error }; }
141
- finally {
142
- try {
143
- if (r && !r.done && (m = i["return"])) m.call(i);
144
- }
145
- finally { if (e) throw e.error; }
146
- }
147
- return ar;
148
- }
149
-
150
- function __spread() {
151
- for (var ar = [], i = 0; i < arguments.length; i++)
152
- ar = ar.concat(__read(arguments[i]));
153
- return ar;
154
- }
155
-
156
- function __spreadArrays() {
157
- for (var s = 0, i = 0, il = arguments.length; i < il; i++) s += arguments[i].length;
158
- for (var r = Array(s), k = 0, i = 0; i < il; i++)
159
- for (var a = arguments[i], j = 0, jl = a.length; j < jl; j++, k++)
160
- r[k] = a[j];
161
- return r;
162
- };
163
-
164
- function __await(v) {
165
- return this instanceof __await ? (this.v = v, this) : new __await(v);
166
- }
167
-
168
- function __asyncGenerator(thisArg, _arguments, generator) {
169
- if (!Symbol.asyncIterator) throw new TypeError("Symbol.asyncIterator is not defined.");
170
- var g = generator.apply(thisArg, _arguments || []), i, q = [];
171
- return i = {}, verb("next"), verb("throw"), verb("return"), i[Symbol.asyncIterator] = function () { return this; }, i;
172
- function verb(n) { if (g[n]) i[n] = function (v) { return new Promise(function (a, b) { q.push([n, v, a, b]) > 1 || resume(n, v); }); }; }
173
- function resume(n, v) { try { step(g[n](v)); } catch (e) { settle(q[0][3], e); } }
174
- function step(r) { r.value instanceof __await ? Promise.resolve(r.value.v).then(fulfill, reject) : settle(q[0][2], r); }
175
- function fulfill(value) { resume("next", value); }
176
- function reject(value) { resume("throw", value); }
177
- function settle(f, v) { if (f(v), q.shift(), q.length) resume(q[0][0], q[0][1]); }
178
- }
179
-
180
- function __asyncDelegator(o) {
181
- var i, p;
182
- return i = {}, verb("next"), verb("throw", function (e) { throw e; }), verb("return"), i[Symbol.iterator] = function () { return this; }, i;
183
- function verb(n, f) { i[n] = o[n] ? function (v) { return (p = !p) ? { value: __await(o[n](v)), done: n === "return" } : f ? f(v) : v; } : f; }
184
- }
185
-
186
- function __asyncValues(o) {
187
- if (!Symbol.asyncIterator) throw new TypeError("Symbol.asyncIterator is not defined.");
188
- var m = o[Symbol.asyncIterator], i;
189
- return m ? m.call(o) : (o = typeof __values === "function" ? __values(o) : o[Symbol.iterator](), i = {}, verb("next"), verb("throw"), verb("return"), i[Symbol.asyncIterator] = function () { return this; }, i);
190
- function verb(n) { i[n] = o[n] && function (v) { return new Promise(function (resolve, reject) { v = o[n](v), settle(resolve, reject, v.done, v.value); }); }; }
191
- function settle(resolve, reject, d, v) { Promise.resolve(v).then(function(v) { resolve({ value: v, done: d }); }, reject); }
192
- }
193
-
194
- function __makeTemplateObject(cooked, raw) {
195
- if (Object.defineProperty) { Object.defineProperty(cooked, "raw", { value: raw }); } else { cooked.raw = raw; }
196
- return cooked;
197
- };
198
-
199
- function __importStar(mod) {
200
- if (mod && mod.__esModule) return mod;
201
- var result = {};
202
- if (mod != null) for (var k in mod) if (Object.hasOwnProperty.call(mod, k)) result[k] = mod[k];
203
- result.default = mod;
204
- return result;
205
- }
206
-
207
- function __importDefault(mod) {
208
- return (mod && mod.__esModule) ? mod : { default: mod };
209
- }
210
-
211
- function __classPrivateFieldGet(receiver, privateMap) {
212
- if (!privateMap.has(receiver)) {
213
- throw new TypeError("attempted to get private field on non-instance");
214
- }
215
- return privateMap.get(receiver);
216
- }
217
-
218
- function __classPrivateFieldSet(receiver, privateMap, value) {
219
- if (!privateMap.has(receiver)) {
220
- throw new TypeError("attempted to set private field on non-instance");
221
- }
222
- privateMap.set(receiver, value);
223
- return value;
224
- }
225
-
226
- var PropertyValuePipe = /** @class */ (function () {
227
- function PropertyValuePipe() {
228
- }
229
- PropertyValuePipe.prototype.transform = function (value, name) {
230
- if (Array.isArray(value) || !(value instanceof Object) || !name) {
231
- return value;
232
- }
233
- else if (name.indexOf('.') > -1) {
234
- var splitName = name.split(/\.(.+)/, 2);
235
- return this.transform(value[splitName[0]], splitName[1]);
236
- }
237
- else {
238
- return value[name];
239
- }
240
- };
241
- PropertyValuePipe = __decorate([
242
- core.Pipe({
243
- name: 'propertyValue'
244
- })
245
- ], PropertyValuePipe);
246
- return PropertyValuePipe;
247
- }());
248
-
249
- function isTime(value) {
250
- return /^[0-9]{1,2}\:[0-9]{1,2}$/.test(value.toString());
251
- }
252
- function addLeadZero(num, isNegative) {
253
- if (isNegative === void 0) { isNegative = false; }
254
- return (isNegative ? '-' : '') + ('000' + Math.abs(num)).slice(-2);
255
- }
256
- function parseIntervalToMinutes(interval) {
257
- if (!isTime(interval)) {
258
- return 0;
259
- }
260
- var parts = interval.split(':');
261
- var hours = parseInt(parts[0], 10);
262
- var minutes = parseInt(parts[1], 10);
263
- if (isNaN(hours) || isNaN(minutes)) {
264
- throw new Error(interval + ' не может быть обработан как время HH:MM');
265
- }
266
- return 60 * hours + minutes;
267
- }
268
- function shortWeekdayToNum(dayKey) {
269
- switch (dayKey) {
270
- case 'sun':
271
- return 0;
272
- case 'mon':
273
- return 1;
274
- case 'tue':
275
- return 2;
276
- case 'wed':
277
- return 3;
278
- case 'thu':
279
- return 4;
280
- case 'fri':
281
- return 5;
282
- case 'sat':
283
- return 6;
284
- case 'd1':
285
- return 7;
286
- case 'd2':
287
- return 8;
288
- }
289
- return -1;
290
- }
291
- function formatNumberToTime(num) {
292
- if (isTime(num)) {
293
- return num;
294
- }
295
- var value = parseInt(num, 10);
296
- var isNegative = value < 0 ? true : false;
297
- var absValue = Math.abs(value);
298
- return addLeadZero(Math.floor(absValue / 60), isNegative) + ':' + addLeadZero(absValue % 60);
299
- }
300
- function numToShortWeekday(num) {
301
- var days = [
302
- 'sun',
303
- 'mon',
304
- 'tue',
305
- 'wed',
306
- 'thu',
307
- 'fri',
308
- 'sat',
309
- 'd1',
310
- 'd2'
311
- ];
312
- return days[parseInt(num, 10)] ? days[parseInt(num, 10)] : 'custom';
313
- }
314
- function shortToFullWeekday(day) {
315
- var days = {
316
- 'sun': 'sunday',
317
- 'mon': 'monday',
318
- 'tue': 'tuesday',
319
- 'wed': 'wednesday',
320
- 'thu': 'thursday',
321
- 'fri': 'friday',
322
- 'sat': 'saturday',
323
- 'd1': 'day1',
324
- 'd2': 'day2'
325
- };
326
- return days[day];
327
- }
328
- var ShortToFullWeekdayPipe = /** @class */ (function () {
329
- function ShortToFullWeekdayPipe() {
330
- }
331
- ShortToFullWeekdayPipe.prototype.transform = function (value, args) {
332
- return shortToFullWeekday(value);
333
- };
334
- ShortToFullWeekdayPipe = __decorate([
335
- core.Pipe({
336
- name: 'shortToFullWeekday'
337
- })
338
- ], ShortToFullWeekdayPipe);
339
- return ShortToFullWeekdayPipe;
340
- }());
341
- /**
342
- * Pipe используется для преобразования числа в день недели
343
- * 0-6 - вс-сб, 7,8 - день1, день2
344
- */
345
- var NumToShortWeekdayPipe = /** @class */ (function () {
346
- function NumToShortWeekdayPipe() {
347
- }
348
- NumToShortWeekdayPipe.prototype.transform = function (value, args) {
349
- return numToShortWeekday(value);
350
- };
351
- NumToShortWeekdayPipe = __decorate([
352
- core.Pipe({
353
- name: 'numToShortWeekday'
354
- })
355
- ], NumToShortWeekdayPipe);
356
- return NumToShortWeekdayPipe;
357
- }());
358
- var FormatNumToTime = /** @class */ (function () {
359
- function FormatNumToTime() {
360
- }
361
- FormatNumToTime.prototype.transform = function (value, args) {
362
- if (args) {
363
- var isHour = false;
364
- var isMin = false;
365
- var isSec = false;
366
- if (args.indexOf('HH') !== -1) {
367
- isHour = true;
368
- }
369
- if (args.indexOf('mm') !== -1) {
370
- isMin = true;
371
- }
372
- if (args.indexOf('SS') !== -1) {
373
- isSec = true;
374
- }
375
- var absValue = Math.floor(Math.abs(value / 1000));
376
- var hours = 0;
377
- var hh = '00';
378
- if (isHour) {
379
- hours = Math.floor(absValue / (60 * 60));
380
- hh = String(hours < 10 ? '0' + hours : hours);
381
- }
382
- var Mins = 0;
383
- var MM = '00';
384
- if (isMin) {
385
- Mins = Math.ceil((absValue - hours * 60 * 60) / 60);
386
- MM = String(Mins < 10 ? '0' + Mins : Mins);
387
- }
388
- var sec = 0;
389
- var ss = '00';
390
- if (isSec) {
391
- sec = absValue - hours * 60 * 60 - Mins * 60;
392
- ss = String(sec < 10 ? '0' + sec : sec);
393
- }
394
- if (isHour && isMin && isSec) {
395
- return hh + ':' + MM + ':' + ss;
396
- }
397
- else if (isHour && isMin) {
398
- return hh + ':' + MM;
399
- }
400
- else if (isMin && isSec) {
401
- return MM + ':' + ss;
402
- }
403
- else if (isHour) {
404
- return hh;
405
- }
406
- else if (isMin) {
407
- return MM;
408
- }
409
- else if (isSec) {
410
- return ss;
411
- }
412
- }
413
- return formatNumberToTime(value);
414
- };
415
- FormatNumToTime = __decorate([
416
- core.Pipe({
417
- name: 'formatNumToTime'
418
- })
419
- ], FormatNumToTime);
420
- return FormatNumToTime;
421
- }());
422
- var InDate = /** @class */ (function () {
423
- function InDate(translate) {
424
- this.translate = translate;
425
- }
426
- InDate.prototype.transform = function (value, args) {
427
- var isSec = args ? args.indexOf('ss') !== -1 : false;
428
- var isHour = args ? args.indexOf('hh') !== -1 : true;
429
- var isMin = args ? args.indexOf('MM') !== -1 : true;
430
- var date = new Date(value);
431
- var now = new Date();
432
- var time = (isHour ? "" + ('0' + date.getHours()).slice(-2) : "")
433
- + (isMin ? ":" + ('0' + date.getMinutes()).slice(-2) : "")
434
- + (isSec ? ":" + ('0' + date.getSeconds()).slice(-2) + " " : "");
435
- if (date.getFullYear() === now.getFullYear() && date.getMonth() === now.getMonth() && date.getDate() === now.getDate()) {
436
- return this.translate.instant('today at') + ' ' + time;
437
- }
438
- else {
439
- return ('0' + date.getDate()).slice(-2) + '.' + ('0' + (date.getMonth() + 1)).slice(-2) + '.' + ('0' + date.getFullYear()).slice(-2) + ' ' + time;
440
- }
441
- };
442
- InDate.ctorParameters = function () { return [
443
- { type: core$1.TranslateService }
444
- ]; };
445
- InDate = __decorate([
446
- core.Pipe({
447
- name: 'inDate'
448
- }),
449
- __metadata("design:paramtypes", [core$1.TranslateService])
450
- ], InDate);
451
- return InDate;
452
- }());
453
-
454
- /**
455
- * Sanitize HTML
456
- */
457
- var SafeUrlPipe = /** @class */ (function () {
458
- /**
459
- * Pipe Constructor
460
- *
461
- * @param _sanitizer: DomSanitezer
462
- */
463
- // tslint:disable-next-line
464
- function SafeUrlPipe(_sanitizer) {
465
- this._sanitizer = _sanitizer;
466
- }
467
- /**
468
- * Transform
469
- *
470
- * @param value: string
471
- */
472
- SafeUrlPipe.prototype.transform = function (value) {
473
- return this._sanitizer.bypassSecurityTrustResourceUrl(value);
474
- };
475
- SafeUrlPipe.ctorParameters = function () { return [
476
- { type: platformBrowser.DomSanitizer }
477
- ]; };
478
- SafeUrlPipe = __decorate([
479
- core.Pipe({
480
- name: 'safeUrl'
481
- }),
482
- __metadata("design:paramtypes", [platformBrowser.DomSanitizer])
483
- ], SafeUrlPipe);
484
- return SafeUrlPipe;
485
- }());
486
-
487
- var SortByPipe = /** @class */ (function () {
488
- function SortByPipe() {
489
- }
490
- SortByPipe.prototype.transform = function (arr, options) {
491
- if (arr === undefined) {
492
- return;
493
- }
494
- return arr.sort(function (a, b) {
495
- var cmp = 0;
496
- for (var i = 0; i < options.length; i++) {
497
- var x = a[options[i].sortField];
498
- var y = b[options[i].sortField];
499
- var asc = options[i].isAscending ? -1 : 1;
500
- cmp = (((x === y) ? 0 : (x < y) ? -1 * asc : 1 * asc) + cmp) * 10;
501
- }
502
- return cmp;
503
- });
504
- };
505
- SortByPipe = __decorate([
506
- core.Pipe({
507
- name: 'SortByPipe'
508
- })
509
- ], SortByPipe);
510
- return SortByPipe;
511
- }());
512
-
513
- var PipesModule = /** @class */ (function () {
514
- function PipesModule() {
515
- }
516
- PipesModule = __decorate([
517
- core.NgModule({
518
- exports: [PropertyValuePipe, NumToShortWeekdayPipe, FormatNumToTime, InDate, ShortToFullWeekdayPipe, SafeUrlPipe, SortByPipe],
519
- declarations: [PropertyValuePipe, NumToShortWeekdayPipe, FormatNumToTime, InDate, ShortToFullWeekdayPipe, SafeUrlPipe, SortByPipe]
520
- })
521
- ], PipesModule);
522
- return PipesModule;
523
- }());
524
-
525
- function gettext(a) {
526
- return utils._(a);
527
- }
528
-
529
- var InsparkMessageService = /** @class */ (function () {
530
- function InsparkMessageService(translate, messageService, confirmationService) {
531
- this.translate = translate;
532
- this.messageService = messageService;
533
- this.confirmationService = confirmationService;
534
- }
535
- /**
536
- * @deprecated
537
- * @param options
538
- */
539
- InsparkMessageService.prototype.add = function (options) {
540
- this.messageService.add(options);
541
- };
542
- InsparkMessageService.prototype.confirm = function (message, options) {
543
- var _this = this;
544
- this.translate.get(message).subscribe(function (res) {
545
- _this.confirmationService.confirm(__assign(__assign({}, options), { message: res }));
546
- });
547
- };
548
- InsparkMessageService.prototype.success = function (message) {
549
- var _this = this;
550
- this.translate.get(gettext('Toast_Success_Caption')).subscribe(function (title) {
551
- _this.translate.get(message).subscribe(function (res) {
552
- _this.messageService.add({ severity: 'success', summary: title, detail: res });
553
- });
554
- });
555
- };
556
- InsparkMessageService.prototype.message = function (message) {
557
- var _this = this;
558
- this.translate.get(gettext('Toast_Message_Caption')).subscribe(function (title) {
559
- _this.translate.get(message).subscribe(function (res) {
560
- _this.messageService.add({ severity: 'info', summary: title, detail: res });
561
- });
562
- });
563
- };
564
- /*TODO: костыль перевода, - чтобы избежать переполнения стека изза рекурсии*/
565
- InsparkMessageService.prototype.error = function (message) {
566
- var _this = this;
567
- var title = this.getToastErrorTitleLocalized();
568
- // this.translate.get(gettext('Toast_Error_Caption')).subscribe((title: string) => {
569
- this.translate.get(message).subscribe(function (res) {
570
- _this.messageService.add({ severity: 'error', summary: title, detail: res });
571
- });
572
- // });
573
- };
574
- InsparkMessageService.prototype.getToastErrorTitleLocalized = function () {
575
- var ilocale = localStorage.getItem('ilocale_');
576
- if (ilocale && ilocale.replace(/"/g, '') === 'en-US') {
577
- return 'Error';
578
- }
579
- return 'Ошибка';
580
- /*
581
- if (ilocale && (this.localeService.locale$.getValue() === undefined || this.localeService.locale$.getValue().serverShort !== ilocale.replace(/"/g, ''))) {
582
- this.localeService.setLocale(ilocale.replace(/"/g, ''));
583
- this.translate.use(this.localeService.locale$.getValue().short);
584
- }
585
- */
586
- };
587
- InsparkMessageService.ctorParameters = function () { return [
588
- { type: core$1.TranslateService },
589
- { type: api.MessageService },
590
- { type: api.ConfirmationService }
591
- ]; };
592
- InsparkMessageService = __decorate([
593
- core.Injectable(),
594
- __metadata("design:paramtypes", [core$1.TranslateService,
595
- api.MessageService,
596
- api.ConfirmationService])
597
- ], InsparkMessageService);
598
- return InsparkMessageService;
599
- }());
600
-
601
- var InsparkDialogService = /** @class */ (function () {
602
- function InsparkDialogService(componentFactoryResolver, appRef, injector) {
603
- this.componentFactoryResolver = componentFactoryResolver;
604
- this.appRef = appRef;
605
- this.injector = injector;
606
- }
607
- InsparkDialogService.prototype.open = function (componentType, config) {
608
- var dialogRef = this.appendDialogComponentToBody(config);
609
- console.log('window.scrollY', window.scrollY);
610
- document.body.style.top = "-" + window.scrollY + "px";
611
- document.body.style.position = 'fixed';
612
- dialogRef.onClose.subscribe(function () {
613
- console.log('custom subscrnve');
614
- var scrollY = document.body.style.top;
615
- document.body.style.position = '';
616
- document.body.style.top = '';
617
- window.scrollTo(0, parseInt(scrollY || '0') * -1);
618
- });
619
- this.dialogComponentRef.instance.childComponentType = componentType;
620
- return dialogRef;
621
- };
622
- InsparkDialogService.prototype.appendDialogComponentToBody = function (config) {
623
- var _this = this;
624
- var map = new WeakMap();
625
- map.set(api.DynamicDialogConfig, config);
626
- var dialogRef = new api.DynamicDialogRef();
627
- map.set(api.DynamicDialogRef, dialogRef);
628
- var sub = dialogRef.onClose.subscribe(function () {
629
- _this.removeDialogComponentFromBody();
630
- sub.unsubscribe();
631
- });
632
- var componentFactory = this.componentFactoryResolver.resolveComponentFactory(dynamicdialog.DynamicDialogComponent);
633
- var componentRef = componentFactory.create(new dynamicdialogInjector.DynamicDialogInjector(this.injector, map));
634
- this.appRef.attachView(componentRef.hostView);
635
- var domElem = componentRef.hostView.rootNodes[0];
636
- document.body.appendChild(domElem);
637
- this.dialogComponentRef = componentRef;
638
- return dialogRef;
639
- };
640
- InsparkDialogService.prototype.removeDialogComponentFromBody = function () {
641
- this.appRef.detachView(this.dialogComponentRef.hostView);
642
- this.dialogComponentRef.destroy();
643
- };
644
- InsparkDialogService.ctorParameters = function () { return [
645
- { type: core.ComponentFactoryResolver },
646
- { type: core.ApplicationRef },
647
- { type: core.Injector }
648
- ]; };
649
- InsparkDialogService = __decorate([
650
- core.Injectable(),
651
- __metadata("design:paramtypes", [core.ComponentFactoryResolver, core.ApplicationRef, core.Injector])
652
- ], InsparkDialogService);
653
- return InsparkDialogService;
654
- }());
655
-
656
- var CommunicationService = /** @class */ (function () {
657
- function CommunicationService() {
658
- this.messageSource = {};
659
- this.message$ = {};
660
- }
661
- CommunicationService.prototype.create = function (id) {
662
- if (!this.messageSource[id]) {
663
- this.messageSource[id] = new rxjs.Subject();
664
- this.message$[id] = this.messageSource[id].asObservable();
665
- }
666
- };
667
- CommunicationService.prototype.next = function (widgetId, value) {
668
- this.create(widgetId);
669
- this.messageSource[widgetId].next(value);
670
- };
671
- CommunicationService = __decorate([
672
- core.Injectable()
673
- ], CommunicationService);
674
- return CommunicationService;
675
- }());
676
-
677
- var ButtonComponent = /** @class */ (function (_super) {
678
- __extends(ButtonComponent, _super);
679
- function ButtonComponent(cdr) {
680
- var _this = _super.call(this) || this;
681
- _this.cdr = cdr;
682
- _this.size = 'normal';
683
- _this.color = 'normal';
684
- _this.type = 'button';
685
- _this.name = '';
686
- _this.testId = '';
687
- _this.label = '';
688
- _this.icon = '';
689
- _this.className = '';
690
- _this.notify = null;
691
- _this.svg = '';
692
- _this.width = 'auto';
693
- _this.link = '';
694
- _this.isLoading = false;
695
- _this.shadow = false;
696
- _this.isIconOnly = false;
697
- /**
698
- * external - ссылка на внешний источник
699
- * internal - ссылка внутри приложения
700
- * auto - определяется автоматически исходя из link
701
- */
702
- _this.linkType = 'auto';
703
- /**
704
- * self - открывается в этом же окне
705
- * blank - открывается в новом окне
706
- * auto - определяется автоматически исходя из linkType
707
- */
708
- _this.linkTarget = 'auto';
709
- // Отображает кнопку нажатой
710
- _this.pressed = false;
711
- _this.disabled = false;
712
- _this.iconPos = 'left';
713
- _this.selectedItem = null;
714
- _this.menuPlacement = 'bottom-left';
715
- _this.menuItems = [];
716
- _this.focus = new core.EventEmitter();
717
- _this.blur = new core.EventEmitter();
718
- _this.click = new core.EventEmitter();
719
- _this._target = '_self';
720
- _this._linkType = 'auto';
721
- _this.isMaterialIcon = false;
722
- return _this;
723
- }
724
- Object.defineProperty(ButtonComponent.prototype, "pointerEvents", {
725
- get: function () {
726
- return this.disabled ? 'none' : 'auto';
727
- },
728
- enumerable: true,
729
- configurable: true
730
- });
731
- ButtonComponent.prototype.ngOnInit = function () {
732
- this.updateData();
733
- };
734
- ButtonComponent.prototype.ngOnChanges = function (changes) {
735
- this.updateData();
736
- };
737
- ButtonComponent.prototype.updateData = function () {
738
- this._linkType = this.linkType;
739
- if (this._linkType === 'auto') {
740
- if ((this.link.indexOf('://') !== -1 || this.link.indexOf('//') === 0)) {
741
- this._linkType = 'external';
742
- }
743
- else {
744
- this._linkType = 'internal';
745
- }
746
- }
747
- if (this.linkTarget === 'auto') {
748
- if (this._linkType === 'external') {
749
- this._target = '_blank';
750
- }
751
- else {
752
- this._target = '_self';
753
- }
754
- }
755
- else {
756
- this._target = this.linkTarget === 'self' ? '_self' : 'blank';
757
- }
758
- if (this.icon && this.icon.indexOf('fa-') === -1) {
759
- this.isMaterialIcon = true;
760
- }
761
- else {
762
- this.isMaterialIcon = false;
763
- }
764
- };
765
- ButtonComponent.prototype._onClick = function ($event) {
766
- this.cdr.detectChanges();
767
- };
768
- ButtonComponent.ctorParameters = function () { return [
769
- { type: core.ChangeDetectorRef }
770
- ]; };
771
- __decorate([
772
- core.Input(),
773
- __metadata("design:type", String)
774
- ], ButtonComponent.prototype, "size", void 0);
775
- __decorate([
776
- core.Input(),
777
- __metadata("design:type", String)
778
- ], ButtonComponent.prototype, "color", void 0);
779
- __decorate([
780
- core.Input(),
781
- __metadata("design:type", String)
782
- ], ButtonComponent.prototype, "type", void 0);
783
- __decorate([
784
- core.Input(),
785
- __metadata("design:type", Object)
786
- ], ButtonComponent.prototype, "name", void 0);
787
- __decorate([
788
- core.Input(),
789
- __metadata("design:type", Object)
790
- ], ButtonComponent.prototype, "testId", void 0);
791
- __decorate([
792
- core.Input(),
793
- __metadata("design:type", Object)
794
- ], ButtonComponent.prototype, "label", void 0);
795
- __decorate([
796
- core.Input(),
797
- __metadata("design:type", Object)
798
- ], ButtonComponent.prototype, "icon", void 0);
799
- __decorate([
800
- core.Input(),
801
- __metadata("design:type", Object)
802
- ], ButtonComponent.prototype, "className", void 0);
803
- __decorate([
804
- core.Input(),
805
- __metadata("design:type", String)
806
- ], ButtonComponent.prototype, "notify", void 0);
807
- __decorate([
808
- core.Input(),
809
- __metadata("design:type", Object)
810
- ], ButtonComponent.prototype, "svg", void 0);
811
- __decorate([
812
- core.Input(),
813
- __metadata("design:type", Object)
814
- ], ButtonComponent.prototype, "width", void 0);
815
- __decorate([
816
- core.Input(),
817
- __metadata("design:type", Object)
818
- ], ButtonComponent.prototype, "link", void 0);
819
- __decorate([
820
- core.Input(),
821
- __metadata("design:type", Object)
822
- ], ButtonComponent.prototype, "isLoading", void 0);
823
- __decorate([
824
- core.Input(),
825
- __metadata("design:type", Object)
826
- ], ButtonComponent.prototype, "shadow", void 0);
827
- __decorate([
828
- core.Input(),
829
- __metadata("design:type", Object)
830
- ], ButtonComponent.prototype, "isIconOnly", void 0);
831
- __decorate([
832
- core.Input(),
833
- __metadata("design:type", String)
834
- ], ButtonComponent.prototype, "linkType", void 0);
835
- __decorate([
836
- core.Input(),
837
- __metadata("design:type", String)
838
- ], ButtonComponent.prototype, "linkTarget", void 0);
839
- __decorate([
840
- core.Input(),
841
- __metadata("design:type", Object)
842
- ], ButtonComponent.prototype, "pressed", void 0);
843
- __decorate([
844
- core.Input(),
845
- __metadata("design:type", Object)
846
- ], ButtonComponent.prototype, "disabled", void 0);
847
- __decorate([
848
- core.Input(),
849
- __metadata("design:type", String)
850
- ], ButtonComponent.prototype, "iconPos", void 0);
851
- __decorate([
852
- core.Input(),
853
- __metadata("design:type", Object)
854
- ], ButtonComponent.prototype, "selectedItem", void 0);
855
- __decorate([
856
- core.Input(),
857
- __metadata("design:type", Object)
858
- ], ButtonComponent.prototype, "menuPlacement", void 0);
859
- __decorate([
860
- core.Input(),
861
- __metadata("design:type", Array)
862
- ], ButtonComponent.prototype, "menuItems", void 0);
863
- __decorate([
864
- core.ViewChild(primeng.Menu, { static: false }),
865
- __metadata("design:type", primeng.Menu)
866
- ], ButtonComponent.prototype, "_menu", void 0);
867
- __decorate([
868
- core.HostBinding('style.pointer-events'),
869
- __metadata("design:type", String),
870
- __metadata("design:paramtypes", [])
871
- ], ButtonComponent.prototype, "pointerEvents", null);
872
- __decorate([
873
- core.Output(),
874
- __metadata("design:type", core.EventEmitter)
875
- ], ButtonComponent.prototype, "focus", void 0);
876
- __decorate([
877
- core.Output(),
878
- __metadata("design:type", core.EventEmitter)
879
- ], ButtonComponent.prototype, "blur", void 0);
880
- __decorate([
881
- core.Output(),
882
- __metadata("design:type", core.EventEmitter)
883
- ], ButtonComponent.prototype, "click", void 0);
884
- ButtonComponent = __decorate([
885
- core.Component({
886
- selector: 'in-button',
887
- template: "<a (blur)=\"blur.emit($event)\"\n (click)=\"_onClick($event)\"\n (focus)=\"focus.emit($event)\"\n *ngIf=\"link && _linkType ==='external'\"\n [attr.type]=\"type\"\n [class]=\"className + ' ' + testId + ' field_' + name\"\n [href]=\"link\"\n [ngClass]=\"{'ui-button ui-widget ui-state-default ui-corner-all':true,\n 'ui-button-icon-only': ((icon || svg) && !label),\n 'ui-button-text-icon-left': ((icon || svg) && label && iconPos === 'left'),\n 'ui-button-text-icon-right': ((icon || svg) && label && iconPos === 'right'),\n 'ui-button-text-only': (!(icon || svg) && label),\n 'ui-button-text-empty': (!(icon || svg) && !label),\n 'ui-button-svg': svg,\n 'ui-button-material': isMaterialIcon,\n 'ui-state-disabled': disabled,\n 'ui-button-tiny': size === 'tiny',\n 'ui-button-small': size === 'small',\n 'ui-button-large': size === 'large',\n 'ui-button-primary': color === 'primary',\n 'ui-button-secondary': color === 'secondary',\n 'ui-button-danger': color === 'danger',\n 'ui-button-transparency': color === 'transparent',\n 'ui-button-pressed' : pressed}\"\n [ngStyle]=\"{width:width}\"\n [style]=\"style\"\n [target]=\"_target\" class=\"button-container\">\n <ng-container *ngTemplateOutlet=\"content;\"></ng-container>\n</a>\n<a (blur)=\"blur.emit($event)\"\n (click)=\"_onClick($event)\"\n (focus)=\"focus.emit($event)\"\n *ngIf=\"link && _linkType ==='internal'\"\n [attr.type]=\"type\"\n [class]=\"className + ' ' + testId + ' field_' + name\"\n [ngClass]=\"{'ui-button ui-widget ui-state-default ui-corner-all':true,\n 'ui-button-icon-only': ((icon || svg) && !label),\n 'ui-button-text-icon-left': ((icon || svg) && label && iconPos === 'left'),\n 'ui-button-text-icon-right': ((icon || svg) && label && iconPos === 'right'),\n 'ui-button-text-only': (!(icon || svg) && label),\n 'ui-button-text-empty': (!(icon || svg) && !label),\n 'ui-button-svg': svg,\n 'ui-button-material': isMaterialIcon,\n 'ui-state-disabled': disabled,\n 'ui-button-tiny': size === 'tiny',\n 'ui-button-small': size === 'small',\n 'ui-button-large': size === 'large',\n 'ui-button-primary': color === 'primary',\n 'ui-button-secondary': color === 'secondary',\n 'ui-button-danger': color === 'danger',\n 'ui-button-transparency': color === 'transparent',\n 'ui-button-pressed' : pressed}\"\n [ngStyle]=\"{width:width}\"\n [routerLink]=\"link\"\n [style]=\"style\"\n [target]=\"_target\" class=\"button-container\">\n <ng-container *ngTemplateOutlet=\"content;\"></ng-container>\n</a>\n<span #dropdown=\"ngbDropdown\" *ngIf=\"!link && menuItems.length\" [ngStyle]=\"{width:width}\" class=\"button-container\" container=\"body\"\n ngbDropdown>\n <button\n (blur)=\"blur.emit($event)\"\n (click)=\"_onClick($event)\"\n (focus)=\"focus.emit($event)\"\n [attr.type]=\"type\"\n [class]=\"className + ' ' + testId + ' field_' + name\"\n [disabled]=\"disabled\"\n [ngClass]=\" {'ui-button ui-widget ui-state-default ui-corner-all':true,\n 'ui-button-icon-only': ((icon || svg) && !label),\n 'ui-button-text-icon-left': ((icon || svg) && label && iconPos === 'left'),\n 'ui-button-text-icon-right': ((icon || svg) && label && iconPos === 'right'),\n 'ui-button-text-only': (!(icon || svg) && label),\n 'ui-button-text-empty': (!(icon || svg) && !label),\n 'ui-button-svg': svg,\n 'ui-button-material': isMaterialIcon,\n 'ui-state-disabled': disabled,\n 'ui-button-tiny': size === 'tiny',\n 'ui-button-small': size === 'small',\n 'ui-button-large': size === 'large',\n 'ui-button-primary': color === 'primary',\n 'ui-button-secondary': color === 'secondary',\n 'ui-button-danger': color === 'danger',\n 'ui-button-transparency': color === 'transparent',\n 'ui-button-shadowed': shadow === true,\n 'ui-button-pressed' : pressed}\"\n [style]=\"style\" ngbDropdownToggle>\n <ng-container *ngTemplateOutlet=\"content;\"></ng-container>\n </button>\n <div *ngIf=\"menuItems.length\" aria-labelledby=\"menu\"\n class=\"in-dropdown-menu\"\n ngbDropdownMenu>\n <div *ngFor=\"let item of menuItems\" class=\"in-dropdown-menu-item\" role=\"menuitem\">\n <in-button (click)=\"dropdown.close(); item.command();\"\n [color]=\"selectedItem && selectedItem == item.id?'primary':'transparent'\"\n [icon]=\"item.icon\"\n [label]=\"item.label\"\n [svg]=\"item.svg\"\n size=\"large\"\n width=\"100%\"></in-button>\n </div>\n </div>\n\n <div *ngIf=\"notify\" [ngClass]=\"notify\" class=\"notify\"></div>\n</span>\n<span *ngIf=\"!link && !menuItems.length\" [ngStyle]=\"{width:width}\" class=\"button-container\">\n <button\n (blur)=\"blur.emit($event)\"\n (click)=\"_onClick($event)\"\n (focus)=\"focus.emit($event)\"\n [attr.type]=\"type\"\n [class]=\"className + ' ' + testId + ' field_' + name\"\n [disabled]=\"disabled\"\n [ngClass]=\" {'ui-button ui-widget ui-state-default ui-corner-all':true,\n 'ui-button-icon-only': ((icon || svg) && !label) || isIconOnly,\n 'ui-button-text-icon-left': ((icon || svg) && label && iconPos === 'left'),\n 'ui-button-text-icon-right': ((icon || svg) && label && iconPos === 'right'),\n 'ui-button-text-only': (!(icon || svg) && label),\n 'ui-button-text-empty': (!(icon || svg) && !label),\n 'ui-button-svg': svg,\n 'ui-button-material': isMaterialIcon,\n 'ui-state-disabled': disabled,\n 'ui-button-tiny': size === 'tiny',\n 'ui-button-small': size === 'small',\n 'ui-button-large': size === 'large',\n 'ui-button-primary': color === 'primary',\n 'ui-button-secondary': color === 'secondary',\n 'ui-button-danger': color === 'danger',\n 'ui-button-transparency': color === 'transparent',\n 'ui-button-shadowed': shadow === true,\n 'ui-button-pressed' : pressed}\" [style]=\"style\">\n <ng-container *ngTemplateOutlet=\"content;\"></ng-container>\n </button>\n <div *ngIf=\"notify\" [ngClass]=\"notify\" class=\"notify\"></div>\n</span>\n\n<ng-template #content>\n <span *ngIf=\"!isMaterialIcon && icon && !isLoading\" [class]=\"icon\"\n [ngClass]=\"{'ui-clickable': true,\n 'ui-button-icon-left': (iconPos === 'left'),\n 'ui-button-icon-right': (iconPos === 'right')}\"></span>\n <span *ngIf=\"isMaterialIcon && icon && !isLoading\" [ngClass]=\"{'ui-clickable': true,\n 'ui-button-icon-left': (iconPos === 'left'),\n 'ui-button-icon-right': (iconPos === 'right')}\"\n ><i class=\"material-icons\">{{icon}}</i></span>\n <in-preloader *ngIf=\"isLoading\" size=\"small\"></in-preloader>\n <span class=\"ui-button-text ui-clickable\">{{label}}</span>\n <span *ngIf=\"svg && !isLoading\" [ngClass]=\"{'ui-clickable': true,\n 'ui-button-icon-left': (iconPos === 'left'),\n 'ui-button-icon-right': (iconPos === 'right')}\">\n <in-svg *ngIf=\"size === 'normal'\" [src]=\"svg\" height=\"20px\" width=\"20px\"></in-svg>\n <in-svg *ngIf=\"size === 'large'\" [src]=\"svg\" height=\"20px\" width=\"20px\"></in-svg>\n <in-svg *ngIf=\"size === 'small'\" [src]=\"svg\" height=\"20px\" width=\"20px\"></in-svg>\n <in-svg *ngIf=\"size === 'tiny'\" [src]=\"svg\" height=\"10px\" width=\"10px\"></in-svg>\n </span>\n</ng-template>\n",
888
- encapsulation: core.ViewEncapsulation.Emulated,
889
- changeDetection: core.ChangeDetectionStrategy.OnPush,
890
- styles: ["@charset \"UTF-8\";.container{display:inline-block}.button-container{position:relative;display:inline-block}button{outline:0;width:100%}.ui-button-icon-only .ui-button-icon-left{margin-top:-9px}.ui-button-text{vertical-align:middle}.notify{width:8px;height:8px;border-radius:100%;position:absolute;right:8px;top:8px}.notify.warning{background:var(--colorWarning)}.notify.success{background:var(--colorSuccess)}.notify.error{background:var(--colorError)}.notify.critical{background:var(--colorCritical)}.ui-button{margin-right:0;height:36px;display:inline-flex;align-items:center;justify-content:center}.ui-button.ui-button-pressed{background-color:var(--colorBgLevel4)}.ui-button.ui-button-large{height:48px}.ui-button.ui-button-large .ui-button-icon-left{font-size:18px;margin-top:-8px}.ui-button.ui-button-large .ui-button-text{padding:0 1em 0 48px;margin-top:6px}.ui-button-text-icon-left .ui-button-text{padding:0 1em 0 2.4em}.ui-button-icon-only{font-size:18px;display:inline-flex;align-items:center;justify-content:center}.ui-button-icon-only.ui-button-large{width:48px;height:48px}.ui-button-icon-only .svg,.ui-button-icon-only.ui-button-large .svg{display:inline-block;line-height:0}.ui-button-transparency{background:0 0;color:currentColor}.ui-button-transparency:hover{color:currentColor}.ui-button-shadowed{box-shadow:0 2px 6px 0 rgba(0,0,0,.2)}.ui-button.ui-button-svg.ui-button-small .ui-button-icon-left{margin-top:-4px}.ui-button.ui-button-svg.ui-button-small.ui-button-icon-only .ui-button-icon-left{margin-top:-2px}.ui-button.ui-button-svg .ui-button-icon-left{left:6px;transform:translateY(-50%);margin-top:-4px}.ui-button.ui-button-svg.ui-button-icon-only .ui-button-icon-left{left:50%;width:auto;transform:translate(-50%,-50%);margin-left:0;margin-top:0}.ui-button.ui-button-svg.ui-button-large.ui-button-icon-only .ui-button-icon-left{margin-top:0}.ui-button-material.ui-button-icon-only .material-icons{font-size:20px}.ui-button-material.ui-button-icon-only .ui-button-icon-left{margin-top:-10px;margin-left:-12px}.ui-button-material .material-icons{font-size:16px}.ui-button-material .ui-button-icon-left{margin-top:-8px;margin-left:-2px}.ui-button-material.ui-button-small .ui-button-icon-left{margin-top:-7px}.ui-button-material.ui-button-small .material-icons{font-size:14px}.ui-button-material.ui-button-small.ui-button-icon-only .ui-button-icon-left{margin-top:-12px;margin-left:-10px}.ui-button-material.ui-button-small.ui-button-icon-only .ui-button-icon-left .material-icons{font-size:18px}.ui-button-material.ui-button-large .material-icons{font-size:24px}.ui-button-material.ui-button-large .ui-button-icon-left{margin-top:-11px}.ui-button-material.ui-button-large.ui-button-icon-only .ui-button-icon-left{margin-top:-11px;margin-left:-13px}:host .ui-menu .ui-menuitem-link{font-size:16px}.dropdown-menu{display:none;background:var(--colorBgLevel3);padding:4px}.dropdown-menu li{padding:4px;font-size:14px}.dropdown-menu.show{display:block}.in-dropdown-menu{background:var(--colorBgLevel2);padding:0;position:absolute;display:none;margin-left:0;box-shadow:0 0 3px 1px rgba(0,0,0,.2)}.in-dropdown-menu.show{display:block}.in-dropdown-menu .in-dropdown-menu-item{list-style-type:none;min-width:250px;display:flex;align-items:center;justify-content:flex-start;min-height:48px}.in-dropdown-menu .in-dropdown-menu-item in-button,.in-dropdown-menu .in-dropdown-menu-item in-button ::ng-deep button{width:100%;border-radius:0}.in-dropdown-menu .in-dropdown-menu-item in-button .ui-button,.in-dropdown-menu .in-dropdown-menu-item in-button ::ng-deep button .ui-button{justify-content:flex-start}.in-dropdown-menu .in-dropdown-menu-item .switcher{flex:1;display:flex;justify-content:flex-end;padding-right:4px}.in-dropdown-menu .in-dropdown-menu-item+.in-dropdown-menu-item{border-top:1px solid var(--colorBgLevel4)}"]
891
- }),
892
- __metadata("design:paramtypes", [core.ChangeDetectorRef])
893
- ], ButtonComponent);
894
- return ButtonComponent;
895
- }(primeng.Button));
896
-
897
- var InputTextComponent = /** @class */ (function () {
898
- function InputTextComponent() {
899
- this.name = null;
900
- this.autocomplete = true;
901
- this.label = null;
902
- this.required = false;
903
- this.error = null;
904
- this.size = 100000;
905
- this.maxlength = 100000;
906
- this.width = '';
907
- this.display = true;
908
- this.large = true;
909
- this.small = false;
910
- this.widget = false;
911
- this.forms = false;
912
- this.placeholder = '';
913
- this.id = null;
914
- this.testId = null;
915
- this.opacity = true;
916
- this.shadow = false;
917
- this.right = false;
918
- this.type = 'text';
919
- this.focus = new core.EventEmitter();
920
- this.blur = new core.EventEmitter();
921
- this.onClick = new core.EventEmitter();
922
- this.propagateChange = function (_) {
923
- };
924
- }
925
- InputTextComponent_1 = InputTextComponent;
926
- /**
927
- * Write form value to the DOM element (model => view)
928
- */
929
- InputTextComponent.prototype.writeValue = function (value) {
930
- this.value = value;
931
- };
932
- /**
933
- * Write form disabled state to the DOM element (model => view)
934
- */
935
- InputTextComponent.prototype.setDisabledState = function (isDisabled) {
936
- this.disabled = isDisabled;
937
- };
938
- /**
939
- * Update form when DOM element value changes (view => model)
940
- */
941
- InputTextComponent.prototype.registerOnChange = function (fn) {
942
- // Store the provided function as an internal method.
943
- this.propagateChange = fn;
944
- };
945
- /**
946
- * Update form when DOM element is blurred (view => model)
947
- */
948
- InputTextComponent.prototype.registerOnTouched = function (fn) {
949
- // Store the provided function as an internal method.
950
- this.onTouched = fn;
951
- };
952
- InputTextComponent.prototype.clear = function () {
953
- this.value = '';
954
- this.propagateChange('');
955
- this.onClick.emit('');
956
- };
957
- InputTextComponent.prototype.onChange = function (_) {
958
- if (this.type === 'number') {
959
- this.propagateChange(+this.value);
960
- }
961
- else {
962
- this.propagateChange(this.value);
963
- }
964
- };
965
- InputTextComponent.prototype.onTouched = function () {
966
- };
967
- var InputTextComponent_1;
968
- __decorate([
969
- core.Input(),
970
- __metadata("design:type", Object)
971
- ], InputTextComponent.prototype, "name", void 0);
972
- __decorate([
973
- core.Input(),
974
- __metadata("design:type", Object)
975
- ], InputTextComponent.prototype, "autocomplete", void 0);
976
- __decorate([
977
- core.Input(),
978
- __metadata("design:type", Object)
979
- ], InputTextComponent.prototype, "label", void 0);
980
- __decorate([
981
- core.Input(),
982
- __metadata("design:type", Object)
983
- ], InputTextComponent.prototype, "required", void 0);
984
- __decorate([
985
- core.Input(),
986
- __metadata("design:type", Object)
987
- ], InputTextComponent.prototype, "error", void 0);
988
- __decorate([
989
- core.Input(),
990
- __metadata("design:type", Object)
991
- ], InputTextComponent.prototype, "size", void 0);
992
- __decorate([
993
- core.Input(),
994
- __metadata("design:type", Object)
995
- ], InputTextComponent.prototype, "maxlength", void 0);
996
- __decorate([
997
- core.Input(),
998
- __metadata("design:type", Object)
999
- ], InputTextComponent.prototype, "width", void 0);
1000
- __decorate([
1001
- core.Input(),
1002
- __metadata("design:type", Object)
1003
- ], InputTextComponent.prototype, "display", void 0);
1004
- __decorate([
1005
- core.Input(),
1006
- __metadata("design:type", Object)
1007
- ], InputTextComponent.prototype, "large", void 0);
1008
- __decorate([
1009
- core.Input(),
1010
- __metadata("design:type", Object)
1011
- ], InputTextComponent.prototype, "small", void 0);
1012
- __decorate([
1013
- core.Input(),
1014
- __metadata("design:type", Object)
1015
- ], InputTextComponent.prototype, "widget", void 0);
1016
- __decorate([
1017
- core.Input(),
1018
- __metadata("design:type", Object)
1019
- ], InputTextComponent.prototype, "forms", void 0);
1020
- __decorate([
1021
- core.Input(),
1022
- __metadata("design:type", Object)
1023
- ], InputTextComponent.prototype, "placeholder", void 0);
1024
- __decorate([
1025
- core.Input(),
1026
- __metadata("design:type", Object)
1027
- ], InputTextComponent.prototype, "id", void 0);
1028
- __decorate([
1029
- core.Input(),
1030
- __metadata("design:type", Object)
1031
- ], InputTextComponent.prototype, "testId", void 0);
1032
- __decorate([
1033
- core.Input(),
1034
- __metadata("design:type", Boolean)
1035
- ], InputTextComponent.prototype, "disabled", void 0);
1036
- __decorate([
1037
- core.Input(),
1038
- __metadata("design:type", Object)
1039
- ], InputTextComponent.prototype, "opacity", void 0);
1040
- __decorate([
1041
- core.Input(),
1042
- __metadata("design:type", Object)
1043
- ], InputTextComponent.prototype, "shadow", void 0);
1044
- __decorate([
1045
- core.Input(),
1046
- __metadata("design:type", Object)
1047
- ], InputTextComponent.prototype, "right", void 0);
1048
- __decorate([
1049
- core.Input(),
1050
- __metadata("design:type", Object)
1051
- ], InputTextComponent.prototype, "type", void 0);
1052
- __decorate([
1053
- core.Input(),
1054
- __metadata("design:type", Number)
1055
- ], InputTextComponent.prototype, "step", void 0);
1056
- __decorate([
1057
- core.Input(),
1058
- __metadata("design:type", Number)
1059
- ], InputTextComponent.prototype, "min", void 0);
1060
- __decorate([
1061
- core.Input(),
1062
- __metadata("design:type", Number)
1063
- ], InputTextComponent.prototype, "max", void 0);
1064
- __decorate([
1065
- core.Output(),
1066
- __metadata("design:type", core.EventEmitter)
1067
- ], InputTextComponent.prototype, "focus", void 0);
1068
- __decorate([
1069
- core.Output(),
1070
- __metadata("design:type", core.EventEmitter)
1071
- ], InputTextComponent.prototype, "blur", void 0);
1072
- __decorate([
1073
- core.Output(),
1074
- __metadata("design:type", core.EventEmitter)
1075
- ], InputTextComponent.prototype, "onClick", void 0);
1076
- InputTextComponent = InputTextComponent_1 = __decorate([
1077
- core.Component({
1078
- selector: 'in-input-text',
1079
- template: "<label [ngStyle]=\"{width: width}\" class=\"label type_varchars\">\n <span *ngIf=\"label\" class=\"c-label__content\">\n {{label}}\n <span *ngIf=\"required\" class=\"c-label__req\">*</span>\n <span *ngIf=\"error\" class=\"c-label__sub_is-error\">{{error}}</span>\n <span\n *ngIf=\"maxlength && value && value.length && value.length >= maxlength\"\n class=\"constraints-message__warning u-text_uppercase\">\n {{'maxlength: ' | translate}} {{maxlength}}</span>\n </span>\n <div class=\"input-wrapper u-margin-right-tiny\" [ngClass]=\"{'u-margin-right-tiny': right}\">\n <input (blur)=\"this.blur.emit($event)\"\n (change)=\"onChange($event)\"\n (focus)=\"this.focus.emit($event)\"\n (input)=\"onChange($event)\"\n [(ngModel)]=\"value\"\n [autocomplete]=\"autocomplete? 'on':'off'\"\n [disabled]=\"disabled\"\n [id]=\"id\"\n [maxlength]=\"maxlength\"\n [name]=\"name\"\n [ngClass]=\"{'c-input_opaque' : opacity === false,\n 'c-input_shadowed' : shadow,\n 'c-input_large' : large,\n 'c-input_small' : small,\n 'c-input_margin_padding': widget,\n 'c-input_padding_right': forms}\"\n [ngModelOptions]=\"{standalone: true}\"\n [placeholder]=\"placeholder\"\n [required]=\"required\"\n [size]=\"size\"\n [min]=\"min\"\n [max]=\"max\"\n [step]=\"step\"\n class=\"search-box c-input field_{{id}}\"\n [type]=\"type\">\n <button (click)=\"clear()\"\n class=\"button-reset empty\"\n [ngClass]=\"{empty: display}\"\n type=\"submit\"\n [attr.title]=\"'Reset' | translate\">\n <i class=\"fa fa-close\"></i>\n </button>\n </div>\n</label>\n",
1080
- providers: [
1081
- {
1082
- provide: forms.NG_VALUE_ACCESSOR,
1083
- useExisting: core.forwardRef(function () { return InputTextComponent_1; }),
1084
- multi: true,
1085
- }
1086
- ],
1087
- styles: ["@charset \"UTF-8\";.label{display:inline-block;margin-bottom:0}.c-input{height:36px;width:100%}.c-input_opaque{background:var(--colorBgLevel3)}.c-input_shadowed{box-shadow:0 2px 6px 0 rgba(0,0,0,.2)}.constraints-message__warning{color:red}.button-reset{display:flex;align-items:center;position:absolute;right:6px;top:5px;padding:6px;font-size:15px;border:none;outline:0;cursor:pointer;color:var(--colorTextMuted);background-color:transparent}.button-reset:hover{color:var(--ids-theme-btn-default-color,#fff)}.empty{display:none}.input-wrapper{position:relative;display:flex;align-items:baseline}.c-input:not(:valid)~.button-reset{display:none}.c-input_margin_padding{margin-left:56px;padding-right:10px;max-width:1200px}.c-input_padding_right{padding-right:28px}"]
1088
- })
1089
- ], InputTextComponent);
1090
- return InputTextComponent;
1091
- }());
1092
-
1093
- var TextareaComponent = /** @class */ (function () {
1094
- function TextareaComponent() {
1095
- this.name = null;
1096
- this.label = null;
1097
- this.required = false;
1098
- this.error = null;
1099
- this.placeholder = '';
1100
- this.id = null;
1101
- this.minHeight = 30;
1102
- this.maxlength = 100000;
1103
- this.propagateChange = function (_) {
1104
- };
1105
- }
1106
- TextareaComponent_1 = TextareaComponent;
1107
- /**
1108
- * Write form value to the DOM element (model => view)
1109
- */
1110
- TextareaComponent.prototype.writeValue = function (value) {
1111
- this.value = value;
1112
- };
1113
- /**
1114
- * Write form disabled state to the DOM element (model => view)
1115
- */
1116
- TextareaComponent.prototype.setDisabledState = function (isDisabled) {
1117
- this.disabled = isDisabled;
1118
- };
1119
- /**
1120
- * Update form when DOM element value changes (view => model)
1121
- */
1122
- TextareaComponent.prototype.registerOnChange = function (fn) {
1123
- // Store the provided function as an internal method.
1124
- this.propagateChange = fn;
1125
- };
1126
- /**
1127
- * Update form when DOM element is blurred (view => model)
1128
- */
1129
- TextareaComponent.prototype.registerOnTouched = function (fn) {
1130
- // Store the provided function as an internal method.
1131
- this.onTouched = fn;
1132
- };
1133
- TextareaComponent.prototype.onChange = function (_) {
1134
- this.propagateChange(this.value);
1135
- };
1136
- TextareaComponent.prototype.onTouched = function () {
1137
- };
1138
- var TextareaComponent_1;
1139
- __decorate([
1140
- core.Input(),
1141
- __metadata("design:type", Object)
1142
- ], TextareaComponent.prototype, "name", void 0);
1143
- __decorate([
1144
- core.Input(),
1145
- __metadata("design:type", Object)
1146
- ], TextareaComponent.prototype, "label", void 0);
1147
- __decorate([
1148
- core.Input(),
1149
- __metadata("design:type", Object)
1150
- ], TextareaComponent.prototype, "required", void 0);
1151
- __decorate([
1152
- core.Input(),
1153
- __metadata("design:type", Object)
1154
- ], TextareaComponent.prototype, "error", void 0);
1155
- __decorate([
1156
- core.Input(),
1157
- __metadata("design:type", Object)
1158
- ], TextareaComponent.prototype, "placeholder", void 0);
1159
- __decorate([
1160
- core.Input(),
1161
- __metadata("design:type", Object)
1162
- ], TextareaComponent.prototype, "id", void 0);
1163
- __decorate([
1164
- core.Input(),
1165
- __metadata("design:type", Boolean)
1166
- ], TextareaComponent.prototype, "disabled", void 0);
1167
- __decorate([
1168
- core.Input(),
1169
- __metadata("design:type", Object)
1170
- ], TextareaComponent.prototype, "minHeight", void 0);
1171
- __decorate([
1172
- core.Input(),
1173
- __metadata("design:type", Object)
1174
- ], TextareaComponent.prototype, "maxlength", void 0);
1175
- TextareaComponent = TextareaComponent_1 = __decorate([
1176
- core.Component({
1177
- selector: 'in-textarea',
1178
- template: "<label class=\"c-label\">\n <span *ngIf=\"label\" class=\"c-label__content\">\n {{label}}\n <span *ngIf=\"required\" class=\"c-label__req\">*</span>\n<span *ngIf=\"error\" class=\"c-label__sub_is-error\">{{error}}</span>\n </span>\n <textarea (change)=\"onChange($event)\"\n (input)=\"onChange($event)\"\n [(ngModel)]=\"value\"\n [disabled]=\"disabled\"\n [id]=\"id\"\n [name]=\"name\"\n [ngStyle]=\"{ 'min-height': minHeight+'px' }\"\n [placeholder]=\"placeholder\"\n [required]=\"required\"\n class=\"c-textarea field_{{id}}\"\n type=\"text\"\n ></textarea>\n</label>\n",
1179
- providers: [
1180
- {
1181
- provide: forms.NG_VALUE_ACCESSOR,
1182
- useExisting: core.forwardRef(function () { return TextareaComponent_1; }),
1183
- multi: true,
1184
- }
1185
- ],
1186
- styles: [""]
1187
- })
1188
- ], TextareaComponent);
1189
- return TextareaComponent;
1190
- }());
1191
-
1192
- var PanelComponent = /** @class */ (function () {
1193
- function PanelComponent() {
1194
- }
1195
- PanelComponent = __decorate([
1196
- core.Component({
1197
- selector: 'in-panel',
1198
- template: "<div class=\"c-panel inspark-panel\">\n <ng-content></ng-content>\n</div>\n",
1199
- styles: [".inspark-panel{padding:8px}"]
1200
- })
1201
- ], PanelComponent);
1202
- return PanelComponent;
1203
- }());
1204
-
1205
- var ComponentContainerComponent = /** @class */ (function () {
1206
- function ComponentContainerComponent() {
1207
- this.align = 'left';
1208
- }
1209
- __decorate([
1210
- core.Input(),
1211
- __metadata("design:type", String)
1212
- ], ComponentContainerComponent.prototype, "align", void 0);
1213
- ComponentContainerComponent = __decorate([
1214
- core.Component({
1215
- selector: 'in-component-container',
1216
- template: "<div [ngClass]=\"align\" class=\"inspark-component-container\">\n <ng-content></ng-content>\n</div>\n",
1217
- styles: ["@charset \"UTF-8\";.inspark-component-container{display:flex}@media screen and (min-width:480px){.inspark-component-container{padding-bottom:0}}:host ::ng-deep in-button{margin-right:8px}:host ::ng-deep in-button:last-child{margin-right:0}:host ::ng-deep in-link{margin-right:8px}:host ::ng-deep in-link:last-child{margin-right:0}.right{justify-content:flex-end}"]
1218
- })
1219
- ], ComponentContainerComponent);
1220
- return ComponentContainerComponent;
1221
- }());
1222
-
1223
- var CheckboxComponent = /** @class */ (function () {
1224
- function CheckboxComponent(element, cdRef, router) {
1225
- this.element = element;
1226
- this.cdRef = cdRef;
1227
- this.router = router;
1228
- this.name = null;
1229
- this.label = null;
1230
- this.required = false;
1231
- this.error = null;
1232
- this.placeholder = '';
1233
- this.id = null;
1234
- this.propagateChange = function (_) {
1235
- };
1236
- }
1237
- CheckboxComponent_1 = CheckboxComponent;
1238
- /**
1239
- * Write form value to the DOM element (model => view)
1240
- */
1241
- CheckboxComponent.prototype.writeValue = function (value) {
1242
- this.value = value;
1243
- if (!this.cdRef['destroyed']) {
1244
- this.cdRef.detectChanges();
1245
- }
1246
- };
1247
- /**
1248
- * Write form disabled state to the DOM element (model => view)
1249
- */
1250
- CheckboxComponent.prototype.setDisabledState = function (isDisabled) {
1251
- this.disabled = isDisabled;
1252
- };
1253
- /**
1254
- * Update form when DOM element value changes (view => model)
1255
- */
1256
- CheckboxComponent.prototype.registerOnChange = function (fn) {
1257
- // Store the provided function as an internal method.
1258
- this.propagateChange = fn;
1259
- };
1260
- /**
1261
- * Update form when DOM element is blurred (view => model)
1262
- */
1263
- CheckboxComponent.prototype.registerOnTouched = function (fn) {
1264
- // Store the provided function as an internal method.
1265
- this.onTouched = fn;
1266
- };
1267
- CheckboxComponent.prototype.onChange = function (_) {
1268
- this.propagateChange(this.value);
1269
- };
1270
- CheckboxComponent.prototype.onTouched = function () {
1271
- };
1272
- var CheckboxComponent_1;
1273
- CheckboxComponent.ctorParameters = function () { return [
1274
- { type: core.ElementRef },
1275
- { type: core.ChangeDetectorRef },
1276
- { type: router.Router }
1277
- ]; };
1278
- __decorate([
1279
- core.Input(),
1280
- __metadata("design:type", Object)
1281
- ], CheckboxComponent.prototype, "name", void 0);
1282
- __decorate([
1283
- core.Input(),
1284
- __metadata("design:type", Object)
1285
- ], CheckboxComponent.prototype, "label", void 0);
1286
- __decorate([
1287
- core.Input(),
1288
- __metadata("design:type", Object)
1289
- ], CheckboxComponent.prototype, "required", void 0);
1290
- __decorate([
1291
- core.Input(),
1292
- __metadata("design:type", Object)
1293
- ], CheckboxComponent.prototype, "error", void 0);
1294
- __decorate([
1295
- core.Input(),
1296
- __metadata("design:type", Object)
1297
- ], CheckboxComponent.prototype, "placeholder", void 0);
1298
- __decorate([
1299
- core.Input(),
1300
- __metadata("design:type", Object)
1301
- ], CheckboxComponent.prototype, "id", void 0);
1302
- __decorate([
1303
- core.Input(),
1304
- __metadata("design:type", Boolean)
1305
- ], CheckboxComponent.prototype, "disabled", void 0);
1306
- CheckboxComponent = CheckboxComponent_1 = __decorate([
1307
- core.Component({
1308
- selector: 'in-checkbox',
1309
- template: "<label class=\"c-checkbox\">\n <input (change)=\"onChange($event)\" (input)=\"onChange($event)\"\n (ngModelChange)=\"onChange(value)\"\n [(ngModel)]=\"value\"\n [disabled]=\"disabled\"\n class=\"c-checkbox__input field_{{id}}\"\n name=\"element_name\"\n type=\"checkbox\"/>\n <i class=\"c-checkbox__icon\"></i>\n <span *ngIf=\"label\" class=\"label\">{{ label }}</span>\n <span class=\"label\"><ng-content></ng-content></span>\n</label>\n",
1310
- providers: [
1311
- {
1312
- provide: forms.NG_VALUE_ACCESSOR,
1313
- useExisting: core.forwardRef(function () { return CheckboxComponent_1; }),
1314
- multi: true,
1315
- }
1316
- ],
1317
- styles: [":host{width:100%}.c-checkbox{margin:0;display:flex;min-width:100%;align-items:center;padding:8px}.c-checkbox .c-checkbox__input+.c-checkbox__icon{padding-left:20px;top:0}.c-checkbox .label{display:flex;align-items:center}.c-checkbox .label:not(:empty){display:inline-flex;padding-left:8px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}"]
1318
- }),
1319
- __metadata("design:paramtypes", [core.ElementRef, core.ChangeDetectorRef, router.Router])
1320
- ], CheckboxComponent);
1321
- return CheckboxComponent;
1322
- }());
1323
-
1324
- var PrimengComponentsModule = /** @class */ (function () {
1325
- function PrimengComponentsModule() {
1326
- }
1327
- PrimengComponentsModule = __decorate([
1328
- core.NgModule({
1329
- imports: [
1330
- primeng.DropdownModule,
1331
- ],
1332
- declarations: [],
1333
- exports: [
1334
- primeng.DropdownModule
1335
- ],
1336
- entryComponents: []
1337
- })
1338
- ], PrimengComponentsModule);
1339
- return PrimengComponentsModule;
1340
- }());
1341
-
1342
- var DropdownItem = /** @class */ (function () {
1343
- function DropdownItem() {
1344
- this.onClick = new core.EventEmitter();
1345
- }
1346
- DropdownItem.prototype.onOptionClick = function (event) {
1347
- this.onClick.emit({
1348
- originalEvent: event,
1349
- option: this.option
1350
- });
1351
- };
1352
- __decorate([
1353
- core.Input(),
1354
- __metadata("design:type", Object)
1355
- ], DropdownItem.prototype, "option", void 0);
1356
- __decorate([
1357
- core.Input(),
1358
- __metadata("design:type", Boolean)
1359
- ], DropdownItem.prototype, "selected", void 0);
1360
- __decorate([
1361
- core.Input(),
1362
- __metadata("design:type", Boolean)
1363
- ], DropdownItem.prototype, "disabled", void 0);
1364
- __decorate([
1365
- core.Input(),
1366
- __metadata("design:type", Boolean)
1367
- ], DropdownItem.prototype, "visible", void 0);
1368
- __decorate([
1369
- core.Input(),
1370
- __metadata("design:type", Number)
1371
- ], DropdownItem.prototype, "itemSize", void 0);
1372
- __decorate([
1373
- core.Input(),
1374
- __metadata("design:type", core.TemplateRef)
1375
- ], DropdownItem.prototype, "template", void 0);
1376
- __decorate([
1377
- core.Output(),
1378
- __metadata("design:type", core.EventEmitter)
1379
- ], DropdownItem.prototype, "onClick", void 0);
1380
- DropdownItem = __decorate([
1381
- core.Component({
1382
- selector: 'p-dropdownItem',
1383
- template: "\n <li (click)=\"onOptionClick($event)\" role=\"option\"\n [attr.aria-label]=\"option.label\"\n [attr.title]=\"option.label\"\n [ngStyle]=\"{'height': itemSize + 'px'}\"\n [ngClass]=\"{'ui-dropdown-item ui-corner-all':true,\n 'ui-state-highlight': selected,\n 'ui-state-disabled':(option.disabled),\n 'ui-dropdown-item-empty': !option.label||option.label.length === 0}\">\n <span *ngIf=\"!template\">{{option.label || 'empty'}}</span>\n <ng-container *ngTemplateOutlet=\"template; context: {$implicit: option}\"></ng-container>\n </li>\n "
1384
- })
1385
- ], DropdownItem);
1386
- return DropdownItem;
1387
- }());
1388
- var DropdownComponent = /** @class */ (function (_super) {
1389
- __extends(DropdownComponent, _super);
1390
- function DropdownComponent() {
1391
- var _this = _super !== null && _super.apply(this, arguments) || this;
1392
- _this.scrollHeight = '200px';
1393
- _this.filterBy = 'label';
1394
- _this.resetFilterOnHide = false;
1395
- _this.dropdownIcon = 'pi pi-chevron-down';
1396
- _this.autoDisplayFirst = true;
1397
- _this.emptyFilterMessage = 'No results found';
1398
- _this.autoZIndex = true;
1399
- _this.baseZIndex = 0;
1400
- _this.showTransitionOptions = '0ms';
1401
- _this.hideTransitionOptions = '0ms';
1402
- _this.filterMatchMode = 'contains';
1403
- _this.tooltip = '';
1404
- _this.error = null;
1405
- _this.tooltipPosition = 'right';
1406
- _this.tooltipPositionStyle = 'absolute';
1407
- _this.onChange = new core.EventEmitter();
1408
- _this.onFocus = new core.EventEmitter();
1409
- _this.onBlur = new core.EventEmitter();
1410
- _this.onClick = new core.EventEmitter();
1411
- _this.onShow = new core.EventEmitter();
1412
- _this.onHide = new core.EventEmitter();
1413
- _this._label = '';
1414
- return _this;
1415
- }
1416
- DropdownComponent_1 = DropdownComponent;
1417
- Object.defineProperty(DropdownComponent.prototype, "label", {
1418
- get: function () {
1419
- return this._label;
1420
- },
1421
- set: function (val) {
1422
- this._label = val;
1423
- },
1424
- enumerable: true,
1425
- configurable: true
1426
- });
1427
- Object.defineProperty(DropdownComponent.prototype, "labelText", {
1428
- get: function () {
1429
- return (this.selectedOption ? this.selectedOption.label : null);
1430
- },
1431
- enumerable: true,
1432
- configurable: true
1433
- });
1434
- var DropdownComponent_1;
1435
- __decorate([
1436
- core.Input(),
1437
- __metadata("design:type", Object)
1438
- ], DropdownComponent.prototype, "scrollHeight", void 0);
1439
- __decorate([
1440
- core.Input(),
1441
- __metadata("design:type", Boolean)
1442
- ], DropdownComponent.prototype, "filter", void 0);
1443
- __decorate([
1444
- core.Input(),
1445
- __metadata("design:type", String)
1446
- ], DropdownComponent.prototype, "name", void 0);
1447
- __decorate([
1448
- core.Input(),
1449
- __metadata("design:type", Number)
1450
- ], DropdownComponent.prototype, "defaultValue", void 0);
1451
- __decorate([
1452
- core.Input(),
1453
- __metadata("design:type", Object)
1454
- ], DropdownComponent.prototype, "style", void 0);
1455
- __decorate([
1456
- core.Input(),
1457
- __metadata("design:type", Object)
1458
- ], DropdownComponent.prototype, "panelStyle", void 0);
1459
- __decorate([
1460
- core.Input(),
1461
- __metadata("design:type", String)
1462
- ], DropdownComponent.prototype, "styleClass", void 0);
1463
- __decorate([
1464
- core.Input(),
1465
- __metadata("design:type", String)
1466
- ], DropdownComponent.prototype, "panelStyleClass", void 0);
1467
- __decorate([
1468
- core.Input(),
1469
- __metadata("design:type", Boolean)
1470
- ], DropdownComponent.prototype, "readonly", void 0);
1471
- __decorate([
1472
- core.Input(),
1473
- __metadata("design:type", Boolean)
1474
- ], DropdownComponent.prototype, "required", void 0);
1475
- __decorate([
1476
- core.Input(),
1477
- __metadata("design:type", Boolean)
1478
- ], DropdownComponent.prototype, "editable", void 0);
1479
- __decorate([
1480
- core.Input(),
1481
- __metadata("design:type", Object)
1482
- ], DropdownComponent.prototype, "appendTo", void 0);
1483
- __decorate([
1484
- core.Input(),
1485
- __metadata("design:type", Number)
1486
- ], DropdownComponent.prototype, "tabindex", void 0);
1487
- __decorate([
1488
- core.Input(),
1489
- __metadata("design:type", String)
1490
- ], DropdownComponent.prototype, "placeholder", void 0);
1491
- __decorate([
1492
- core.Input(),
1493
- __metadata("design:type", String)
1494
- ], DropdownComponent.prototype, "filterPlaceholder", void 0);
1495
- __decorate([
1496
- core.Input(),
1497
- __metadata("design:type", String)
1498
- ], DropdownComponent.prototype, "inputId", void 0);
1499
- __decorate([
1500
- core.Input(),
1501
- __metadata("design:type", String)
1502
- ], DropdownComponent.prototype, "selectId", void 0);
1503
- __decorate([
1504
- core.Input(),
1505
- __metadata("design:type", String)
1506
- ], DropdownComponent.prototype, "dataKey", void 0);
1507
- __decorate([
1508
- core.Input(),
1509
- __metadata("design:type", Object)
1510
- ], DropdownComponent.prototype, "filterBy", void 0);
1511
- __decorate([
1512
- core.Input(),
1513
- __metadata("design:type", Boolean)
1514
- ], DropdownComponent.prototype, "autofocus", void 0);
1515
- __decorate([
1516
- core.Input(),
1517
- __metadata("design:type", Object)
1518
- ], DropdownComponent.prototype, "resetFilterOnHide", void 0);
1519
- __decorate([
1520
- core.Input(),
1521
- __metadata("design:type", Object)
1522
- ], DropdownComponent.prototype, "dropdownIcon", void 0);
1523
- __decorate([
1524
- core.Input(),
1525
- __metadata("design:type", String)
1526
- ], DropdownComponent.prototype, "optionLabel", void 0);
1527
- __decorate([
1528
- core.Input(),
1529
- __metadata("design:type", Object)
1530
- ], DropdownComponent.prototype, "autoDisplayFirst", void 0);
1531
- __decorate([
1532
- core.Input(),
1533
- __metadata("design:type", Boolean)
1534
- ], DropdownComponent.prototype, "group", void 0);
1535
- __decorate([
1536
- core.Input(),
1537
- __metadata("design:type", Boolean)
1538
- ], DropdownComponent.prototype, "showClear", void 0);
1539
- __decorate([
1540
- core.Input(),
1541
- __metadata("design:type", Object)
1542
- ], DropdownComponent.prototype, "emptyFilterMessage", void 0);
1543
- __decorate([
1544
- core.Input(),
1545
- __metadata("design:type", Boolean)
1546
- ], DropdownComponent.prototype, "virtualScroll", void 0);
1547
- __decorate([
1548
- core.Input(),
1549
- __metadata("design:type", Number)
1550
- ], DropdownComponent.prototype, "itemSize", void 0);
1551
- __decorate([
1552
- core.Input(),
1553
- __metadata("design:type", Object)
1554
- ], DropdownComponent.prototype, "autoZIndex", void 0);
1555
- __decorate([
1556
- core.Input(),
1557
- __metadata("design:type", Object)
1558
- ], DropdownComponent.prototype, "baseZIndex", void 0);
1559
- __decorate([
1560
- core.Input(),
1561
- __metadata("design:type", Object)
1562
- ], DropdownComponent.prototype, "showTransitionOptions", void 0);
1563
- __decorate([
1564
- core.Input(),
1565
- __metadata("design:type", Object)
1566
- ], DropdownComponent.prototype, "hideTransitionOptions", void 0);
1567
- __decorate([
1568
- core.Input(),
1569
- __metadata("design:type", String)
1570
- ], DropdownComponent.prototype, "ariaFilterLabel", void 0);
1571
- __decorate([
1572
- core.Input(),
1573
- __metadata("design:type", Object)
1574
- ], DropdownComponent.prototype, "filterMatchMode", void 0);
1575
- __decorate([
1576
- core.Input(),
1577
- __metadata("design:type", Number)
1578
- ], DropdownComponent.prototype, "maxlength", void 0);
1579
- __decorate([
1580
- core.Input(),
1581
- __metadata("design:type", Object)
1582
- ], DropdownComponent.prototype, "tooltip", void 0);
1583
- __decorate([
1584
- core.Input(),
1585
- __metadata("design:type", Array)
1586
- ], DropdownComponent.prototype, "options", void 0);
1587
- __decorate([
1588
- core.Input(),
1589
- __metadata("design:type", Object)
1590
- ], DropdownComponent.prototype, "error", void 0);
1591
- __decorate([
1592
- core.Input(),
1593
- __metadata("design:type", Object)
1594
- ], DropdownComponent.prototype, "tooltipPosition", void 0);
1595
- __decorate([
1596
- core.Input(),
1597
- __metadata("design:type", Object)
1598
- ], DropdownComponent.prototype, "tooltipPositionStyle", void 0);
1599
- __decorate([
1600
- core.Input(),
1601
- __metadata("design:type", String)
1602
- ], DropdownComponent.prototype, "tooltipStyleClass", void 0);
1603
- __decorate([
1604
- core.Output(),
1605
- __metadata("design:type", core.EventEmitter)
1606
- ], DropdownComponent.prototype, "onChange", void 0);
1607
- __decorate([
1608
- core.Output(),
1609
- __metadata("design:type", core.EventEmitter)
1610
- ], DropdownComponent.prototype, "onFocus", void 0);
1611
- __decorate([
1612
- core.Output(),
1613
- __metadata("design:type", core.EventEmitter)
1614
- ], DropdownComponent.prototype, "onBlur", void 0);
1615
- __decorate([
1616
- core.Output(),
1617
- __metadata("design:type", core.EventEmitter)
1618
- ], DropdownComponent.prototype, "onClick", void 0);
1619
- __decorate([
1620
- core.Output(),
1621
- __metadata("design:type", core.EventEmitter)
1622
- ], DropdownComponent.prototype, "onShow", void 0);
1623
- __decorate([
1624
- core.Output(),
1625
- __metadata("design:type", core.EventEmitter)
1626
- ], DropdownComponent.prototype, "onHide", void 0);
1627
- __decorate([
1628
- core.Input(),
1629
- __metadata("design:type", String),
1630
- __metadata("design:paramtypes", [Object])
1631
- ], DropdownComponent.prototype, "label", null);
1632
- DropdownComponent = DropdownComponent_1 = __decorate([
1633
- core.Component({
1634
- selector: 'in-dropdown',
1635
- template: "<span *ngIf=\"label\" class=\"c-label__content\">\n {{label}}\n <span *ngIf=\"required\" class=\"c-label__req\">*</span>\n<span *ngIf=\"error\" class=\"c-label__sub_is-error\">{{error}}</span>\n </span>\n<div #container (click)=\"onMouseclick($event)\"\n [class]=\"styleClass\" [ngClass]=\"{'ui-dropdown ui-widget ui-state-default ui-corner-all ui-helper-clearfix':true,\n 'ui-state-disabled':disabled, 'ui-dropdown-open':overlayVisible, 'ui-state-focus':focused, 'ui-dropdown-clearable': showClear && !disabled}\" [ngStyle]=\"style\">\n <div class=\"ui-helper-hidden-accessible\">\n <input #in (blur)=\"onInputBlur($event)\" (focus)=\"onInputFocus($event)\" (keydown)=\"onKeydown($event, true)\"\n [attr.aria-label]=\"selectedOption ? selectedOption.label : ' '\" [attr.autofocus]=\"autofocus\" [attr.id]=\"inputId\"\n [attr.tabindex]=\"tabindex\" [disabled]=\"disabled\" aria-haspopup=\"listbox\"\n readonly type=\"text\">\n </div>\n <div class=\"ui-helper-hidden-accessible ui-dropdown-hidden-select\">\n <select [attr.name]=\"name\" [attr.required]=\"required\" aria-hidden=\"true\" tabindex=\"-1\">\n <option *ngIf=\"placeholder\" value=\"\">{{placeholder}}</option>\n <option *ngIf=\"selectedOption\" [selected]=\"true\"\n [value]=\"selectedOption.value\">{{selectedOption.label}}</option>\n </select>\n </div>\n <div [pTooltip]=\"tooltip\" [positionStyle]=\"tooltipPositionStyle\" [tooltipPosition]=\"tooltipPosition\"\n [tooltipStyleClass]=\"tooltipStyleClass\" class=\"ui-dropdown-label-container\">\n <label\n *ngIf=\"!editable && (labelText != null)\"\n [attr.title]=\"labelText ? (labelText | translate) : null\"\n [ngClass]=\"{'ui-dropdown-label ui-inputtext ui-corner-all':true,'ui-dropdown-label-empty':(labelText == null || labelText.length === 0)}\">\n <ng-container *ngIf=\"!selectedItemTemplate\">{{labelText || 'empty'}}</ng-container>\n <ng-container *ngTemplateOutlet=\"selectedItemTemplate; context: {$implicit: selectedOption}\"></ng-container>\n </label>\n <label\n *ngIf=\"!editable && (labelText == null)\"\n [ngClass]=\"{'ui-dropdown-label ui-inputtext ui-corner-all ui-placeholder':true,'ui-dropdown-label-empty': (placeholder == null || placeholder.length === 0)}\">{{placeholder || 'empty'}}</label>\n <input #editableInput (blur)=\"onInputBlur($event)\" (click)=\"onEditableInputClick($event)\"\n (focus)=\"onEditableInputFocus($event)\"\n (input)=\"onEditableInputChange($event)\" *ngIf=\"editable\" [attr.aria-label]=\"selectedOption ? selectedOption.label : ' '\"\n [attr.maxlength]=\"maxlength\"\n [attr.placeholder]=\"placeholder\" [disabled]=\"disabled\"\n class=\"ui-dropdown-label ui-inputtext ui-corner-all\" type=\"text\">\n <i (click)=\"clear($event)\" *ngIf=\"value != null && showClear && !disabled\"\n class=\"ui-dropdown-clear-icon pi pi-times\"></i>\n </div>\n <div class=\"ui-dropdown-trigger ui-state-default ui-corner-right\">\n <span [ngClass]=\"dropdownIcon\" class=\"ui-dropdown-trigger-icon ui-clickable\"></span>\n </div>\n <div (@overlayAnimation.start)=\"onOverlayAnimationStart($event)\" *ngIf=\"overlayVisible\"\n [@overlayAnimation]=\"{value: 'visible', params: {showTransitionParams: showTransitionOptions, hideTransitionParams: hideTransitionOptions}}\"\n [class]=\"panelStyleClass\"\n [ngClass]=\"'ui-dropdown-panel ui-widget ui-widget-content ui-corner-all ui-shadow'\"\n [ngStyle]=\"panelStyle\"\n [attr.virtual-scroll]=\"virtualScroll ? 'true' : null\">\n <div (click)=\"$event.stopPropagation()\" *ngIf=\"filter\" class=\"ui-dropdown-filter-container\">\n <input #filter (input)=\"onFilter($event)\" (keydown)=\"onKeydown($event, false)\" (keydown.enter)=\"$event.preventDefault()\"\n [attr.aria-label]=\"ariaFilterLabel\"\n [attr.placeholder]=\"filterPlaceholder\"\n [value]=\"filterValue||''\" autocomplete=\"off\"\n class=\"ui-dropdown-filter ui-inputtext ui-widget ui-state-default ui-corner-all\" type=\"text\">\n <span class=\"ui-dropdown-filter-icon pi pi-search\"></span>\n </div>\n <div [style.max-height]=\"virtualScroll ? 'auto' : (scrollHeight||'auto')\" class=\"ui-dropdown-items-wrapper\">\n <ul class=\"ui-dropdown-items ui-dropdown-list ui-widget-content ui-widget ui-corner-all ui-helper-reset\"\n role=\"listbox\">\n <ng-container *ngIf=\"group\">\n <ng-template [ngForOf]=\"optionsToDisplay\" let-optgroup ngFor>\n <li class=\"ui-dropdown-item-group\">\n <span *ngIf=\"!groupTemplate\">{{optgroup.label || ''}}</span>\n <ng-container\n *ngTemplateOutlet=\"groupTemplate; context: {$implicit: optgroup}\"></ng-container>\n </li>\n <ng-container\n *ngTemplateOutlet=\"itemslist; context: {$implicit: optgroup.items, selectedOption: selectedOption}\"></ng-container>\n </ng-template>\n </ng-container>\n <ng-container *ngIf=\"!group\">\n <ng-container\n *ngTemplateOutlet=\"itemslist; context: {$implicit: optionsToDisplay, selectedOption: selectedOption}\"></ng-container>\n </ng-container>\n <ng-template #itemslist let-options let-selectedOption=\"selectedOption\">\n <ng-container *ngIf=\"!virtualScroll; else virtualScrollList\">\n <ng-template [ngForOf]=\"options\" let-i=\"index\" let-option ngFor>\n <p-dropdownItem (onClick)=\"onItemClick($event)\" [option]=\"option\"\n [selected]=\"selectedOption == option\"\n [template]=\"itemTemplate\"></p-dropdownItem>\n </ng-template>\n </ng-container>\n <ng-template #virtualScrollList>\n <cdk-virtual-scroll-viewport #viewport\n (scrolledIndexChange)=\"scrollToSelectedVirtualScrollElement()\" *ngIf=\"virtualScroll && optionsToDisplay && optionsToDisplay.length\"\n [itemSize]=\"itemSize\"\n [ngStyle]=\"{'height': scrollHeight}\">\n <ng-container\n *cdkVirtualFor=\"let option of options; let i = index; let c = count; let f = first; let l = last; let e = even; let o = odd\">\n <p-dropdownItem (onClick)=\"onItemClick($event)\" [option]=\"option\"\n [attr.title]=\"option.label\"\n [selected]=\"selectedOption == option\"\n [template]=\"itemTemplate\"></p-dropdownItem>\n </ng-container>\n </cdk-virtual-scroll-viewport>\n </ng-template>\n </ng-template>\n <li *ngIf=\"filter && optionsToDisplay && optionsToDisplay.length === 0\"\n class=\"ui-dropdown-empty-message\">{{emptyFilterMessage}}</li>\n </ul>\n </div>\n </div>\n</div>\n",
1636
- animations: [
1637
- animations.trigger('overlayAnimation', [
1638
- animations.state('void', animations.style({
1639
- transform: 'translateY(5%)',
1640
- opacity: 0
1641
- })),
1642
- animations.state('visible', animations.style({
1643
- transform: 'translateY(0)',
1644
- opacity: 1
1645
- })),
1646
- animations.transition('void => visible', animations.animate('{{showTransitionParams}}')),
1647
- animations.transition('visible => void', animations.animate('{{hideTransitionParams}}'))
1648
- ])
1649
- ],
1650
- providers: [{
1651
- provide: forms.NG_VALUE_ACCESSOR,
1652
- useExisting: core.forwardRef(function () { return DropdownComponent_1; }),
1653
- multi: true
1654
- }],
1655
- styles: [""]
1656
- })
1657
- ], DropdownComponent);
1658
- return DropdownComponent;
1659
- }(primeng.Dropdown));
1660
- var DropdownComponentModule = /** @class */ (function () {
1661
- function DropdownComponentModule() {
1662
- }
1663
- DropdownComponentModule = __decorate([
1664
- core.NgModule({
1665
- declarations: [
1666
- DropdownComponent,
1667
- DropdownItem,
1668
- ],
1669
- imports: [
1670
- primeng.TooltipModule,
1671
- scrolling.ScrollingModule,
1672
- common.CommonModule,
1673
- PrimengComponentsModule,
1674
- core$1.TranslateModule,
1675
- ],
1676
- exports: [
1677
- DropdownComponent,
1678
- ],
1679
- entryComponents: [
1680
- DropdownComponent,
1681
- ]
1682
- })
1683
- ], DropdownComponentModule);
1684
- return DropdownComponentModule;
1685
- }());
1686
-
1687
- var InsparkTemplate = /** @class */ (function () {
1688
- function InsparkTemplate(template) {
1689
- this.template = template;
1690
- }
1691
- InsparkTemplate.prototype.getType = function () {
1692
- return this.name;
1693
- };
1694
- InsparkTemplate.ctorParameters = function () { return [
1695
- { type: core.TemplateRef }
1696
- ]; };
1697
- __decorate([
1698
- core.Input(),
1699
- __metadata("design:type", String)
1700
- ], InsparkTemplate.prototype, "type", void 0);
1701
- __decorate([
1702
- core.Input('inTemplate'),
1703
- __metadata("design:type", String)
1704
- ], InsparkTemplate.prototype, "name", void 0);
1705
- InsparkTemplate = __decorate([
1706
- core.Directive({
1707
- selector: '[inTemplate]',
1708
- host: {}
1709
- }),
1710
- __metadata("design:paramtypes", [core.TemplateRef])
1711
- ], InsparkTemplate);
1712
- return InsparkTemplate;
1713
- }());
1714
-
1715
- var TableColumnsMultiselectComponent = /** @class */ (function () {
1716
- function TableColumnsMultiselectComponent() {
1717
- this.isExpanded = false;
1718
- /**
1719
- * true - все активные чекбоксы становятся неактивными
1720
- * false - не влияет на чекбоксы
1721
- */
1722
- this.disableActiveCheckboxes = false;
1723
- this.columnsChange = new core.EventEmitter();
1724
- }
1725
- TableColumnsMultiselectComponent.prototype.ngOnInit = function () {
1726
- };
1727
- __decorate([
1728
- core.Input(),
1729
- __metadata("design:type", Array)
1730
- ], TableColumnsMultiselectComponent.prototype, "columns", void 0);
1731
- __decorate([
1732
- core.Input(),
1733
- __metadata("design:type", Object)
1734
- ], TableColumnsMultiselectComponent.prototype, "disableActiveCheckboxes", void 0);
1735
- __decorate([
1736
- core.Output(),
1737
- __metadata("design:type", Object)
1738
- ], TableColumnsMultiselectComponent.prototype, "columnsChange", void 0);
1739
- TableColumnsMultiselectComponent = __decorate([
1740
- core.Component({
1741
- selector: 'in-table-columns-multiselect',
1742
- template: "<in-table-menu-overlay [isExpanded]=\"isExpanded\">\n <ng-container ngProjectAs=\"host\">\n <button class=\"c-btn c-btn_border-free c-btn_small\">\n <i [title]=\"('column switch' | translate)\" class=\"fa fa-cog\"></i><i class=\"c-caret\"></i>\n </button>\n\n </ng-container>\n <ng-container ngProjectAs=\"body\">\n <ul class=\"o-list\">\n <li *ngFor=\"let column of columns\" class=\"c-dropdown-menu__listitem\" role=\"menuitem\">\n <div class=\"c-dropdown-menu__content\">\n <label class=\"c-checkbox c-checkbox_switch c-checkbox_compact\">\n <input (ngModelChange)=\"columnsChange.emit({event: $event, column: column})\"\n [disabled]=\"(!column.isHidden && disableActiveCheckboxes) || column.isRequired\"\n [ngModel]=\"!column.isHidden \"\n class=\"c-checkbox__input\"\n type=\"checkbox\">\n <i class=\"c-checkbox__icon\"></i>\n <span class=\"c-checkbox__label dropdown-label\">{{column.label | translate}}</span>\n </label>\n </div>\n </li>\n </ul>\n\n </ng-container>\n</in-table-menu-overlay>\n",
1743
- styles: [".dropdown-label{color:var(--text-color)}"]
1744
- }),
1745
- __metadata("design:paramtypes", [])
1746
- ], TableColumnsMultiselectComponent);
1747
- return TableColumnsMultiselectComponent;
1748
- }());
1749
-
1750
- var TableMenuOverlayComponent = /** @class */ (function () {
1751
- function TableMenuOverlayComponent(element) {
1752
- this.element = element;
1753
- this.isExpanded = false;
1754
- }
1755
- TableMenuOverlayComponent.prototype.isClickedOutsideOverlay = function (event) {
1756
- if (!this.element.nativeElement.contains(event.target)) {
1757
- this.isExpanded = false;
1758
- }
1759
- };
1760
- TableMenuOverlayComponent.ctorParameters = function () { return [
1761
- { type: core.ElementRef }
1762
- ]; };
1763
- __decorate([
1764
- core.Input(),
1765
- __metadata("design:type", Object)
1766
- ], TableMenuOverlayComponent.prototype, "isExpanded", void 0);
1767
- __decorate([
1768
- core.Input(),
1769
- __metadata("design:type", String)
1770
- ], TableMenuOverlayComponent.prototype, "positionClass", void 0);
1771
- TableMenuOverlayComponent = __decorate([
1772
- core.Component({
1773
- selector: 'in-table-menu-overlay',
1774
- template: "<div class=\"c-overlay is-dropdown_open\">\n <div (click)=\"isExpanded = !isExpanded;\"\n class=\"c-overlay__toggle\">\n <ng-content select=\"host\"></ng-content>\n </div>\n <ng-container *ngIf=\"isExpanded\">\n <div (clickedOutside)=\"isClickedOutsideOverlay($event)\" class=\"c-overlay__body\"\n inClickOutside>\n <!--{{positionClass}}-->\n <ng-content select=\"body\"></ng-content>\n </div>\n </ng-container>\n</div>\n",
1775
- changeDetection: core.ChangeDetectionStrategy.OnPush,
1776
- styles: ["@charset \"UTF-8\";.c-overlay{position:relative;display:inline-block}.c-overlay__toggle{display:inline-block}.c-overlay__body{text-align:left;position:absolute;top:100%;padding:6px 12px;z-index:1050;box-shadow:0 10px 20px rgba(0,0,0,.19),0 6px 6px rgba(0,0,0,.23);max-height:500px;overflow:auto}:host-context(.theme-dark) .c-overlay__body{background-color:#53555c;background-color:var(--ids-theme-color-gray-35,#53555c)}", "@charset \"UTF-8\";:host-context(.theme-contrast) .c-overlay__body{background-color:#ebebeb;background-color:var(--ids-theme-color-gray-5,#ebebeb)}", "@charset \"UTF-8\";:host-context(.theme-light) .c-overlay__body{background-color:#ebebeb;background-color:var(--ids-theme-color-gray-5,#ebebeb)}", "@charset \"UTF-8\";:host-context(.theme-green) .c-overlay__body{background-color:#ebebeb;background-color:var(--ids-theme-color-gray-5,#ebebeb)}", "@charset \"UTF-8\";:host-context(.theme-blue) .c-overlay__body{background-color:#202127;background-color:var(--colorBgLevel1,#202127)}"]
1777
- }),
1778
- __metadata("design:paramtypes", [core.ElementRef])
1779
- ], TableMenuOverlayComponent);
1780
- return TableMenuOverlayComponent;
1781
- }());
1782
-
1783
- var TableClickOutsideDirective = /** @class */ (function () {
1784
- function TableClickOutsideDirective(element) {
1785
- this.element = element;
1786
- this.clickedOutside = new core.EventEmitter();
1787
- }
1788
- TableClickOutsideDirective.prototype.click = function (event) {
1789
- if (!this.element.nativeElement.contains(event.target)) {
1790
- // console.log('clicked outside');
1791
- this.clickedOutside.emit(event);
1792
- }
1793
- else {
1794
- // console.log('clicked inside');
1795
- }
1796
- };
1797
- TableClickOutsideDirective.ctorParameters = function () { return [
1798
- { type: core.ElementRef }
1799
- ]; };
1800
- __decorate([
1801
- core.Output(),
1802
- __metadata("design:type", Object)
1803
- ], TableClickOutsideDirective.prototype, "clickedOutside", void 0);
1804
- __decorate([
1805
- core.HostListener('document:click', ['$event']),
1806
- __metadata("design:type", Function),
1807
- __metadata("design:paramtypes", [Object]),
1808
- __metadata("design:returntype", void 0)
1809
- ], TableClickOutsideDirective.prototype, "click", null);
1810
- TableClickOutsideDirective = __decorate([
1811
- core.Directive({
1812
- selector: '[inClickOutside]'
1813
- }),
1814
- __metadata("design:paramtypes", [core.ElementRef])
1815
- ], TableClickOutsideDirective);
1816
- return TableClickOutsideDirective;
1817
- }());
1818
-
1819
- // NEW Factory Function
1820
- function tableFactory(wrapper) {
1821
- return wrapper.dt;
1822
- }
1823
- var TableComponent = /** @class */ (function () {
1824
- function TableComponent() {
1825
- this.columns = [];
1826
- this.filteredColumns = [];
1827
- this.globalFilteredColumns = [];
1828
- this.primaryColumns = [];
1829
- this.values = [];
1830
- this.checkboxSelection = true;
1831
- this.showHeader = true;
1832
- this.isMobileView = false;
1833
- this.resizableColumns = true;
1834
- this.isTextSearch = true;
1835
- this.isSortIcon = true;
1836
- this.activeChange = new core.EventEmitter();
1837
- this.selectionChange = new core.EventEmitter();
1838
- this.addAction = new core.EventEmitter();
1839
- this.csvAction = new core.EventEmitter();
1840
- this.saveAction = new core.EventEmitter();
1841
- this.removeAction = new core.EventEmitter();
1842
- this.unlinkAction = new core.EventEmitter();
1843
- this.linkAction = new core.EventEmitter();
1844
- this.groupEditAction = new core.EventEmitter();
1845
- this.paramsEditAction = new core.EventEmitter();
1846
- this.sortFunction = new core.EventEmitter();
1847
- this.filterFunction = new core.EventEmitter();
1848
- this.groupMode = 0;
1849
- this.groupInfo = {};
1850
- this.groupIndex = {};
1851
- this._selection = null;
1852
- }
1853
- TableComponent_1 = TableComponent;
1854
- Object.defineProperty(TableComponent.prototype, "selection", {
1855
- set: function (val) {
1856
- this._selection = val;
1857
- },
1858
- enumerable: true,
1859
- configurable: true
1860
- });
1861
- Object.defineProperty(TableComponent.prototype, "selectionValue", {
1862
- get: function () {
1863
- return this._selection;
1864
- },
1865
- set: function (val) {
1866
- this._selection = val;
1867
- this.selectionChange.emit(val);
1868
- },
1869
- enumerable: true,
1870
- configurable: true
1871
- });
1872
- TableComponent.prototype.isRowActive = function (row) {
1873
- return this.active && this.active.id === row.id;
1874
- };
1875
- TableComponent.prototype.ngOnInit = function () {
1876
- this.updateData();
1877
- };
1878
- TableComponent.prototype.ngAfterViewInit = function () {
1879
- var _this = this;
1880
- Object.entries(this.dt.filters).forEach(function (_a) {
1881
- var _b = __read(_a, 2), key = _b[0], value = _b[1];
1882
- _this.dt.filter('', "" + key, 'contains');
1883
- });
1884
- this.dt.filterGlobal(this.searchText, 'contains');
1885
- };
1886
- TableComponent.prototype.ngOnChanges = function (changes) {
1887
- this.resetColumnWidth();
1888
- this.visibleColumns();
1889
- };
1890
- TableComponent.prototype.updateData = function () {
1891
- this.primaryColumns = this.columns.filter(function (column) { return !column.isSecondary; });
1892
- this.globalFilteredColumns = this.columns.filter(function (column) { return column.isFiltering !== false; }).map(function (val) { return val.field; });
1893
- };
1894
- TableComponent.prototype.ngAfterContentInit = function () {
1895
- var _this = this;
1896
- this.visibleColumns();
1897
- this.restoreSearchText();
1898
- this.templates.forEach(function (item) {
1899
- switch (item.getType()) {
1900
- case 'caption':
1901
- _this.captionTemplate = item.template;
1902
- break;
1903
- case 'header':
1904
- _this.headerTemplate = item.template;
1905
- break;
1906
- case 'body':
1907
- _this.bodyTemplate = item.template;
1908
- break;
1909
- case 'value':
1910
- _this.valueTemplate = item.template;
1911
- break;
1912
- case 'loadingbody':
1913
- _this.loadingBodyTemplate = item.template;
1914
- break;
1915
- case 'footer':
1916
- _this.footerTemplate = item.template;
1917
- break;
1918
- case 'summary':
1919
- _this.summaryTemplate = item.template;
1920
- break;
1921
- case 'colgroup':
1922
- _this.colGroupTemplate = item.template;
1923
- break;
1924
- case 'rowexpansion':
1925
- _this.expandedRowTemplate = item.template;
1926
- break;
1927
- case 'frozenrows':
1928
- _this.frozenRowsTemplate = item.template;
1929
- break;
1930
- case 'frozenheader':
1931
- _this.frozenHeaderTemplate = item.template;
1932
- break;
1933
- case 'frozenbody':
1934
- _this.frozenBodyTemplate = item.template;
1935
- break;
1936
- case 'frozenfooter':
1937
- _this.frozenFooterTemplate = item.template;
1938
- break;
1939
- case 'frozencolgroup':
1940
- _this.frozenColGroupTemplate = item.template;
1941
- break;
1942
- case 'emptymessage':
1943
- _this.emptyMessageTemplate = item.template;
1944
- break;
1945
- case 'paginatorleft':
1946
- _this.paginatorLeftTemplate = item.template;
1947
- break;
1948
- case 'paginatorright':
1949
- _this.paginatorRightTemplate = item.template;
1950
- break;
1951
- }
1952
- });
1953
- };
1954
- TableComponent.prototype.visibleColumns = function () {
1955
- this.restoreHiddenColumns();
1956
- this.filteredColumns = this.columns.filter(function (column) { return !column.isHidden; });
1957
- return this.filteredColumns;
1958
- };
1959
- TableComponent.prototype.columnsChange = function (data) {
1960
- data.column.isHidden = !data.event;
1961
- this.resetColumnWidth();
1962
- this.saveHiddenColumns();
1963
- this.visibleColumns();
1964
- };
1965
- TableComponent.prototype.showTooltip = function (event) {
1966
- var target = event.target;
1967
- if (target.title === undefined || !target.textContent) {
1968
- return;
1969
- }
1970
- target.title = target.scrollWidth > target.clientWidth ? target.textContent : '';
1971
- };
1972
- TableComponent.prototype.colFilter = function (field) {
1973
- var found = this.toolbar.filter.cols.filter(function (item) { return item.field === field; });
1974
- return found.length === 1 ? found[0] : '';
1975
- };
1976
- TableComponent.prototype.onFilterToolbar = function (event) {
1977
- if (this.toolbar && this.toolbar.filter) {
1978
- this.toolbar.filter.active = !this.toolbar.filter.active;
1979
- }
1980
- };
1981
- TableComponent.prototype.onFilter = function (event) {
1982
- this.filterFunction.emit(event.filteredValue);
1983
- };
1984
- TableComponent.prototype.stateSave = function (state) {
1985
- };
1986
- TableComponent.prototype.saveToLocalStorage = function (state, key) {
1987
- if (key) {
1988
- window.localStorage.setItem(key, JSON.stringify(state));
1989
- }
1990
- };
1991
- TableComponent.prototype.isHiddenFieldsChanged = function () {
1992
- var hiddenFieldsSaved = this.getHiddenHiddenFieldsFromStorage();
1993
- var hiddenFieldsColumns = (this.columns || []).filter(function (_col) { return _col.isHidden; }).map(function (_col) { return _col.field; });
1994
- if (hiddenFieldsSaved.length === hiddenFieldsColumns.length) {
1995
- var diff = hiddenFieldsSaved.filter(function (field) { return !hiddenFieldsColumns.includes(field); });
1996
- diff.length !== 0;
1997
- }
1998
- return true;
1999
- };
2000
- TableComponent.prototype.saveHiddenColumns = function () {
2001
- if (this.stateKey) {
2002
- if (!this.isHiddenFieldsChanged()) {
2003
- return;
2004
- }
2005
- var hiddenFields = (this.columns || []).filter(function (_col) { return _col.isHidden; }).map(function (_col) { return _col.field; }).join(',');
2006
- this.saveToLocalStorage(hiddenFields, this.stateKey + 'HiddenFields');
2007
- window.localStorage.removeItem(this.stateKey);
2008
- if (this.searchText) {
2009
- window.localStorage.setItem(this.stateKey, JSON.stringify({
2010
- filters: { global: { value: this.searchText, matchMode: 'contains' } }
2011
- }));
2012
- }
2013
- if (this.dt) {
2014
- this.dt.restoreState();
2015
- }
2016
- }
2017
- };
2018
- TableComponent.prototype.countVisibleColumns = function () {
2019
- return (this.columns || []).filter(function (_col) { return !_col.isHidden; }).length;
2020
- };
2021
- TableComponent.prototype.restoreSearchText = function () {
2022
- var state = window.localStorage.getItem(this.stateKey);
2023
- if (state) {
2024
- var parsedState = JSON.parse(state);
2025
- this.searchText = (parsedState.filters || { global: { value: '' } }).global ? (parsedState.filters || { global: { value: '' } }).global.value : '';
2026
- this.sortField = parsedState.sortField || this.sortField;
2027
- }
2028
- else {
2029
- this.resetColumnWidth();
2030
- }
2031
- };
2032
- TableComponent.prototype.resetColumnWidthIfToWide = function () {
2033
- var visibleColumns = this.columns.filter(function (_column) { return !_column.isHidden; });
2034
- var totalWidthInPercent = visibleColumns.reduce(function (s, column) {
2035
- var percent = column.width.indexOf('%') > 0 ? parseInt(column.width, 10) : 0;
2036
- return s + percent;
2037
- }, 0);
2038
- if (totalWidthInPercent > 100) {
2039
- console.error("\u041C\u0430\u0441\u0438\u043C\u0430\u043B\u044C\u043D\u0430\u044F \u0441\u0443\u043C\u043C\u0430\u0440\u043D\u0430\u044F \u0448\u0438\u0440\u0438\u043D\u0430 \u0441\u0442\u043E\u043B\u0431\u0446\u043E\u0432 \u0442\u0430\u0431\u043B\u0438\u0446\u044B 100%, \u0442\u0435\u043A\u0443\u0449\u0430\u044F \u0441\u0443\u043C\u043C\u0430\u0440\u043D\u0430\u044F \u0448\u0438\u0440\u0438\u043D\u0430 " + totalWidthInPercent + "%."
2040
- + ("\u0412\u044B\u043F\u043E\u043B\u043D\u044F\u0435\u0442\u0441\u044F \u043F\u0440\u0438\u043D\u0443\u0434\u0438\u0442\u0435\u043B\u044C\u043D\u044B\u0439 \u043F\u0435\u0440\u0435\u0440\u0430\u0441\u0447\u0435\u0442 \u0448\u0438\u0440\u0438\u043D\u044B \u0434\u043B\u044F \u0442\u0430\u0431\u043B\u0438\u0446\u044B " + this.stateKey));
2041
- this.resetColumnWidth();
2042
- }
2043
- if (totalWidthInPercent < 100 && this.columns.length > 0) {
2044
- // расширяем первый столбец, чтобы не тянулся столбец с чекбоксом
2045
- var percent = this.columns[0].width.indexOf('%') > 0 ? parseInt(this.columns[0].width, 10) : 0;
2046
- this.columns[0].width = 100 - totalWidthInPercent + percent + '%';
2047
- }
2048
- };
2049
- TableComponent.prototype.resetColumnWidth = function () {
2050
- var cvc = this.countVisibleColumns();
2051
- var percent = Math.floor(100 / cvc);
2052
- var firstColumnPercent = percent;
2053
- if (cvc > 10) {
2054
- percent = Math.floor(90 / (cvc - 1));
2055
- firstColumnPercent = Math.floor(100 - (percent * (cvc - 1)));
2056
- }
2057
- this.columns.forEach(function (column, index) { return column.width = index === 0 ? firstColumnPercent + '%' : percent + "%"; });
2058
- };
2059
- TableComponent.prototype.getHiddenHiddenFieldsFromStorage = function () {
2060
- if (this.stateKey) {
2061
- var hiddenFields = window.localStorage.getItem(this.stateKey + 'HiddenFields');
2062
- if (hiddenFields) {
2063
- return JSON.parse(hiddenFields).split(',');
2064
- }
2065
- }
2066
- return [];
2067
- };
2068
- TableComponent.prototype.restoreHiddenColumns = function () {
2069
- if (this.stateKey && window.localStorage.getItem(this.stateKey + 'HiddenFields')) {
2070
- var hiddenFieldsArray_1 = this.getHiddenHiddenFieldsFromStorage();
2071
- this.columns.forEach(function (_col) { return _col.isHidden = hiddenFieldsArray_1.includes(_col.field) || _col.col_invisible; });
2072
- }
2073
- };
2074
- TableComponent.prototype.calcWidth = function (idx, label, width) {
2075
- return width && idx >= 0 ? width : 'auto';
2076
- };
2077
- TableComponent.prototype.onSort = function () {
2078
- var _this = this;
2079
- if (this.isGrouped) {
2080
- Object.entries(this.groupInfo).forEach(function (_a) {
2081
- var _b = __read(_a, 2), key = _b[0], value = _b[1];
2082
- var cacheFlag = (_this.groupInfo[key] || {}).isExpanded;
2083
- _this.groupInfo[key] = { isExpanded: cacheFlag === undefined ? true : cacheFlag };
2084
- });
2085
- this.sortByGroup();
2086
- if (this.dt && this.dt.filteredValue) {
2087
- this.sortByGroup(this.dt.filteredValue, this.dt._sortOrder);
2088
- }
2089
- else if (this.dt && this.dt._value && this.dt._sortOrder) {
2090
- this.sortByGroup(this.dt._value, this.dt._sortOrder);
2091
- }
2092
- }
2093
- };
2094
- TableComponent.prototype.isShowGroup = function (key, rowIndex) {
2095
- if (rowIndex === 0) {
2096
- this.groupIndex = {};
2097
- }
2098
- if (!this.groupInfo[key]) {
2099
- this.groupInfo[key] = { isExpanded: this.isGroupedExpanded !== undefined ? this.isGroupedExpanded : true };
2100
- }
2101
- if (!this.groupIndex[key]) {
2102
- this.groupIndex[key] = { rowIndex: rowIndex };
2103
- }
2104
- return this.groupIndex[key].rowIndex === rowIndex;
2105
- };
2106
- TableComponent.prototype.toggleGroup = function (rowIndex, key) {
2107
- this.groupInfo[key].isExpanded = !this.groupInfo[key].isExpanded;
2108
- };
2109
- TableComponent.prototype.clear = function () {
2110
- this.dt.filterGlobal('', 'contains');
2111
- };
2112
- TableComponent.prototype.localSearch = function (dt, searchText) {
2113
- dt.filterGlobal(searchText, 'contains');
2114
- };
2115
- TableComponent.prototype.sortByGroup = function (values, sortOrder) {
2116
- var g = this.groupMode;
2117
- if (values) {
2118
- return values.sort(function (row1, row2) {
2119
- if (typeof (row1.groupOrder[g]) === 'number') {
2120
- return sortOrder * (row1.groupOrder[g] - row2.groupOrder[g]);
2121
- }
2122
- else {
2123
- return sortOrder * row1.groupOrder[g].localeCompare(row2.groupOrder[g], undefined, { numeric: true, sensitivity: 'base' });
2124
- }
2125
- });
2126
- }
2127
- this.values.sort(function (row1, row2) {
2128
- if (typeof (row1.groupOrder[g]) === 'number') {
2129
- return row1.groupOrder[g] - row2.groupOrder[g];
2130
- }
2131
- else {
2132
- return row1.groupOrder[g].localeCompare(row2.groupOrder[g], undefined, { numeric: true, sensitivity: 'base' });
2133
- }
2134
- });
2135
- };
2136
- TableComponent.prototype.countGroup = function (groupKey, g) {
2137
- return this.values.filter(function (_value) { return _value.groupKey[g] === groupKey; }).length;
2138
- };
2139
- TableComponent.prototype.toggleNodes = function (isExpanded) {
2140
- var _this = this;
2141
- var g = this.groupMode;
2142
- this.values.forEach(function (v) {
2143
- if (_this.groupInfo[v.groupKey[g]]) {
2144
- _this.groupInfo[v.groupKey[g]].isExpanded = isExpanded;
2145
- }
2146
- });
2147
- };
2148
- TableComponent.prototype.toggleMode = function (item) {
2149
- this.groupMode = item;
2150
- this.groupInfo = {};
2151
- for (var i = 0; i < this.values.length; i++) {
2152
- this.isShowGroup(this.values[i].groupKey[this.groupMode], i);
2153
- }
2154
- if (this.searchText) {
2155
- this.dt.filterGlobal(this.searchText, 'contains');
2156
- }
2157
- this.sortByGroup();
2158
- };
2159
- var TableComponent_1;
2160
- __decorate([
2161
- core.Input(),
2162
- __metadata("design:type", Array)
2163
- ], TableComponent.prototype, "columns", void 0);
2164
- __decorate([
2165
- core.Input(),
2166
- __metadata("design:type", Object)
2167
- ], TableComponent.prototype, "values", void 0);
2168
- __decorate([
2169
- core.Input(),
2170
- __metadata("design:type", String)
2171
- ], TableComponent.prototype, "scrollHeight", void 0);
2172
- __decorate([
2173
- core.Input(),
2174
- __metadata("design:type", Boolean)
2175
- ], TableComponent.prototype, "scrollable", void 0);
2176
- __decorate([
2177
- core.Input(),
2178
- __metadata("design:type", String)
2179
- ], TableComponent.prototype, "selectionMode", void 0);
2180
- __decorate([
2181
- core.Input(),
2182
- __metadata("design:type", String)
2183
- ], TableComponent.prototype, "label", void 0);
2184
- __decorate([
2185
- core.Input(),
2186
- __metadata("design:type", String)
2187
- ], TableComponent.prototype, "error", void 0);
2188
- __decorate([
2189
- core.Input(),
2190
- __metadata("design:type", String)
2191
- ], TableComponent.prototype, "class", void 0);
2192
- __decorate([
2193
- core.Input(),
2194
- __metadata("design:type", Boolean)
2195
- ], TableComponent.prototype, "required", void 0);
2196
- __decorate([
2197
- core.Input(),
2198
- __metadata("design:type", Object)
2199
- ], TableComponent.prototype, "style", void 0);
2200
- __decorate([
2201
- core.Input(),
2202
- __metadata("design:type", Object)
2203
- ], TableComponent.prototype, "toolbar", void 0);
2204
- __decorate([
2205
- core.Input(),
2206
- __metadata("design:type", Object)
2207
- ], TableComponent.prototype, "checkboxSelection", void 0);
2208
- __decorate([
2209
- core.Input(),
2210
- __metadata("design:type", Object)
2211
- ], TableComponent.prototype, "active", void 0);
2212
- __decorate([
2213
- core.Input(),
2214
- __metadata("design:type", Object)
2215
- ], TableComponent.prototype, "sortField", void 0);
2216
- __decorate([
2217
- core.Input(),
2218
- __metadata("design:type", Object)
2219
- ], TableComponent.prototype, "isAscending", void 0);
2220
- __decorate([
2221
- core.Input(),
2222
- __metadata("design:type", Object)
2223
- ], TableComponent.prototype, "dataKey", void 0);
2224
- __decorate([
2225
- core.Input(),
2226
- __metadata("design:type", Object)
2227
- ], TableComponent.prototype, "stateKey", void 0);
2228
- __decorate([
2229
- core.Input(),
2230
- __metadata("design:type", Boolean)
2231
- ], TableComponent.prototype, "isGrouped", void 0);
2232
- __decorate([
2233
- core.Input(),
2234
- __metadata("design:type", Boolean)
2235
- ], TableComponent.prototype, "customSort", void 0);
2236
- __decorate([
2237
- core.Input(),
2238
- __metadata("design:type", Boolean)
2239
- ], TableComponent.prototype, "isGroupedExpanded", void 0);
2240
- __decorate([
2241
- core.Input(),
2242
- __metadata("design:type", Boolean)
2243
- ], TableComponent.prototype, "showHeader", void 0);
2244
- __decorate([
2245
- core.Input(),
2246
- __metadata("design:type", Boolean)
2247
- ], TableComponent.prototype, "isMobileView", void 0);
2248
- __decorate([
2249
- core.Input(),
2250
- __metadata("design:type", Boolean)
2251
- ], TableComponent.prototype, "resizableColumns", void 0);
2252
- __decorate([
2253
- core.Input(),
2254
- __metadata("design:type", Boolean)
2255
- ], TableComponent.prototype, "isTextSearch", void 0);
2256
- __decorate([
2257
- core.Input(),
2258
- __metadata("design:type", Boolean)
2259
- ], TableComponent.prototype, "isSortIcon", void 0);
2260
- __decorate([
2261
- core.Output(),
2262
- __metadata("design:type", Object)
2263
- ], TableComponent.prototype, "activeChange", void 0);
2264
- __decorate([
2265
- core.ContentChildren(InsparkTemplate),
2266
- __metadata("design:type", core.QueryList)
2267
- ], TableComponent.prototype, "templates", void 0);
2268
- __decorate([
2269
- core.Output(),
2270
- __metadata("design:type", core.EventEmitter)
2271
- ], TableComponent.prototype, "selectionChange", void 0);
2272
- __decorate([
2273
- core.Output(),
2274
- __metadata("design:type", core.EventEmitter)
2275
- ], TableComponent.prototype, "addAction", void 0);
2276
- __decorate([
2277
- core.Output(),
2278
- __metadata("design:type", core.EventEmitter)
2279
- ], TableComponent.prototype, "csvAction", void 0);
2280
- __decorate([
2281
- core.Output(),
2282
- __metadata("design:type", core.EventEmitter)
2283
- ], TableComponent.prototype, "saveAction", void 0);
2284
- __decorate([
2285
- core.Output(),
2286
- __metadata("design:type", core.EventEmitter)
2287
- ], TableComponent.prototype, "removeAction", void 0);
2288
- __decorate([
2289
- core.Output(),
2290
- __metadata("design:type", core.EventEmitter)
2291
- ], TableComponent.prototype, "unlinkAction", void 0);
2292
- __decorate([
2293
- core.Output(),
2294
- __metadata("design:type", core.EventEmitter)
2295
- ], TableComponent.prototype, "linkAction", void 0);
2296
- __decorate([
2297
- core.Output(),
2298
- __metadata("design:type", core.EventEmitter)
2299
- ], TableComponent.prototype, "groupEditAction", void 0);
2300
- __decorate([
2301
- core.Output(),
2302
- __metadata("design:type", core.EventEmitter)
2303
- ], TableComponent.prototype, "paramsEditAction", void 0);
2304
- __decorate([
2305
- core.Output(),
2306
- __metadata("design:type", core.EventEmitter)
2307
- ], TableComponent.prototype, "sortFunction", void 0);
2308
- __decorate([
2309
- core.Output(),
2310
- __metadata("design:type", core.EventEmitter)
2311
- ], TableComponent.prototype, "filterFunction", void 0);
2312
- __decorate([
2313
- core.ViewChild('dt', { static: false }),
2314
- __metadata("design:type", Object)
2315
- ], TableComponent.prototype, "dt", void 0);
2316
- __decorate([
2317
- core.Input(),
2318
- __metadata("design:type", Object),
2319
- __metadata("design:paramtypes", [Object])
2320
- ], TableComponent.prototype, "selection", null);
2321
- TableComponent = TableComponent_1 = __decorate([
2322
- core.Component({
2323
- selector: 'in-table',
2324
- template: "<span *ngIf=\"label\" class=\"c-label\">\n {{label}}\n <span *ngIf=\"required\" class=\"c-label__req\">*</span>\n <span *ngIf=\"error\" class=\"c-label__sub_is-error\">{{error}}</span>\n</span>\n<p-table #dt\n (onFilter) = onFilter($event)\n (onSort)=\"onSort()\"\n (onStateRestore)=\"restoreSearchText()\"\n (onStateSave)=\"stateSave($event)\"\n (sortFunction)=\"sortFunction? sortFunction.emit($event): null\"\n [(selection)]=\"selectionValue\"\n [class]=\"class\"\n [columns]=\"filteredColumns\"\n [customSort]=\"customSort\"\n [dataKey]=\"dataKey || 'id'\"\n [globalFilterFields]=\"globalFilteredColumns\"\n [resizableColumns]=\"resizableColumns\"\n [scrollHeight]=\"scrollHeight\"\n [scrollable]=\"scrollable\"\n [selectionMode]=\"selectionMode\"\n [sortField]=\"sortField || 'id'\"\n [sortOrder]=\"isAscending ? 1 : -1\"\n [stateKey]=\"stateKey\"\n [stateStorage]=\"'local'\"\n [style]=\"style\"\n [value]=\"values\"\n columnResizeMode=\"expand\"\n\n>\n\n <ng-template *ngIf=\"colGroupTemplate\" let-columns pTemplate=\"body\">\n <ng-container\n *ngTemplateOutlet=\"colGroupTemplate; context: {$implicit: { columns: columns}}\"></ng-container>\n </ng-template>\n\n <ng-template *ngIf=\"!colGroupTemplate\" let-columns pTemplate=\"colgroup\">\n <colgroup *ngIf=\"!isMobileView\">\n <col *ngIf=\"checkboxSelection\" style=\"width: 44px;\">\n <col *ngFor=\"let col of filteredColumns; let idx = index\" [style.width]=\"calcWidth(idx, col.field, col.width)\">\n </colgroup>\n </ng-template>\n\n <ng-template let-columns pTemplate=\"header\">\n <ng-container *ngIf=\"showHeader\">\n <tr>\n <th *ngIf=\"checkboxSelection\" class=\"u-position-relative u-text_center\" pResizableColumn style=\"width: 44px;\">\n <p-tableHeaderCheckbox></p-tableHeaderCheckbox>\n </th>\n <th *ngFor=\"let col of filteredColumns\" [pSortableColumn]=\"col.field\" class=\"u-position-relative\"\n pResizableColumn>\n <div class=\"ui-table-thead-title\"\n title=\"{{col.label | translate}}\">\n {{col.label | translate}}\n </div>\n <p-sortIcon *ngIf=\"isSortIcon\" [field]=\"col.field\"\n class=\"u-position-absolute u-position-absolute-right c-sorticon\"\n style=\"display: flex; width: 18px; top: 0; height: 100%;\"></p-sortIcon>\n </th>\n </tr>\n <tr *ngIf=\"toolbar && toolbar.filter && toolbar.filter.active\">\n <th *ngIf=\"checkboxSelection\" class=\"u-position-relative u-text_center\" pResizableColumn\n style=\"width: 44px;\"></th>\n <th *ngFor=\"let col of columns\" [ngSwitch]=\"col.field\">\n <input\n (input)=\"dt.filter($event.target.value, col.field, 'contains')\"\n *ngSwitchCase=\"colFilter(col.field).type === 'text' ? col.field : ''\"\n autofocus=\"\"\n class=\"c-input c-input_small ng-pristine ng-valid ng-scope ng-empty ng-touched\"\n pInputText\n type=\"text\">\n\n <p-dropdown (onChange)=\"dt.filter($event.value, col.field, 'equals')\"\n *ngSwitchCase=\"colFilter(col.field).type === 'dropdown' ? col.field : ''\"\n [options]=\"colFilter(col.field).options\"\n [style]=\"{ width: '100%', overflow: 'visible' }\"\n appendTo=\"body\"></p-dropdown>\n\n <p-multiSelect (onChange)=\"dt.filter($event.value, col.field, 'in')\"\n *ngSwitchCase=\"colFilter(col.field).type === 'multiselect' ? col.field : ''\"\n [options]=\"colFilter(col.field).options\"\n [style]=\"{ width: '100%', overflow: 'visible' }\" appendTo=\"body\"\n defaultLabel=\"{{'All' | translate}}\"></p-multiSelect>\n <input\n (input)=\"dt.filter($event.target.value, col.field + '2filter', 'contains')\"\n *ngSwitchCase=\"colFilter(col.field).type === 'datetext' ? col.field : ''\"\n autofocus=\"\"\n class=\"c-input c-input_small ng-pristine ng-valid ng-scope ng-empty ng-touched\"\n pInputText\n type=\"text\">\n </th>\n </tr>\n </ng-container>\n </ng-template>\n\n <ng-template *ngIf=\"bodyTemplate\" let-columns=\"columns\" let-rowData let-rowIndex=\"rowIndex\" pTemplate=\"body\">\n <ng-container\n *ngTemplateOutlet=\"bodyTemplate; context: {$implicit: { rowIndex: rowIndex, rowData: rowData, columns: columns}}\"></ng-container>\n </ng-template>\n\n <ng-template *ngIf=\"!bodyTemplate\" let-columns=\"columns\" let-index=\"rowIndex\" let-rowData pTemplate=\"body\">\n <tr\n (click)=\"toggleGroup(index, rowData.groupKey[groupMode])\"\n *ngIf=\"isGrouped && isShowGroup(rowData.groupKey[groupMode], index)\"\n class=\"row_hover_highlight\">\n <td [colSpan]=\"countVisibleColumns() + 1\">\n <span>\n <i\n [ngClass]=\"groupInfo[rowData.groupKey[groupMode]].isExpanded ? 'fa fa-fw fa-angle-down' : 'fa fa-fw fa-angle-right'\"></i>\n <span>{{rowData.groupKey[groupMode] | translate }} ({{countGroup(rowData.groupKey[groupMode], groupMode)}}\n )</span>\n </span>\n </td>\n </tr>\n <tr *ngIf=\"!isGrouped || groupInfo[(rowData.groupKey[groupMode])].isExpanded\"\n [ngClass]=\"{row_active: isRowActive(rowData)}\"\n [pSelectableRow]=\"rowData\"\n class=\"row\">\n <td *ngIf=\"checkboxSelection\" [ngClass]=\"{\n 'row_status_success': rowData.sdirparamstatecolor === 'success',\n 'row_status_error': rowData.sdirparamstatecolor === 'error',\n 'row_status_warning': rowData.sdirparamstatecolor === 'warning',\n 'row_status_critical': rowData.sdirparamstatecolor === 'critical',\n 'row_status_falsevalue': rowData.sdirparamstatecolor === 'falsevalue'\n }\" class=\"u-text_center\"\n style=\"width: 44px\"\n >\n <p-tableCheckbox [value]=\"rowData\"></p-tableCheckbox>\n </td>\n <td (click)=\"activeChange.emit(rowData)\"\n *ngFor=\"let col of filteredColumns\"\n class=\"u-overflow-visible\">\n <div (mouseover)=\"showTooltip($event)\" *ngIf=\"!valueTemplate\" class=\"ui-table-tbody-content\" title>\n {{col.translatable ? (rowData | propertyValue: col.field | translate) : (rowData | propertyValue: col.field)}}\n </div>\n <ng-container\n *ngTemplateOutlet=\"valueTemplate; context: {$implicit: { data: rowData, col: col}}\"></ng-container>\n </td>\n </tr>\n </ng-template>\n\n <ng-template *ngIf=\"toolbar\" pTemplate=\"caption\">\n\n <div class=\"o-grid o-grid_no-gutter\">\n <div class=\"c-tree-table__toolbar-content u-display-inline-flex\">\n <div *ngIf=\"isTextSearch\" class=\"c-form c-form_inline u-display-inline-block\">\n <form class=\"c-label\">\n <div class=\"input-wrapper u-margin-right-tiny\">\n <input #searchTextInput\n (input)=\"localSearch(dt, searchText)\"\n [(ngModel)]=\"searchText\"\n [ngModelOptions]=\"{standalone: true}\"\n autofocus=\"\"\n class=\"search-box c-input c-input_small ng-pristine ng-valid ng-scope ng-empty ng-touched\"\n pInputText\n placeholder=\"{{('SHARED.SEARCH' | translate) + ':'}}\"\n required\n style=\"padding-right: 28px\"\n tabindex=\"1\"\n type=\"search\"\n >\n <button (click)=\"clear()\" class=\"button-reset\" type=\"reset\"\n [attr.title]=\"'Reset' | translate\">\n <i class=\"fa fa-close\"></i>\n </button>\n </div>\n </form>\n </div>\n <div class=\"c-btn c-btn_border-free c-btn_small\">\n <in-table-columns-multiselect (columnsChange)=\"columnsChange($event)\"\n [columns]=\"primaryColumns\"\n [disableActiveCheckboxes]=\"countVisibleColumns() === 1\"></in-table-columns-multiselect>\n </div>\n\n <button (click)=\"onFilterToolbar($event)\" *ngIf=\"toolbar.filter\"\n class=\"c-btn c-btn_border-free c-btn_small\"\n >\n <i class=\"fa fa-filter\" title=\"{{'Service filter' | translate}}\"></i>\n </button>\n\n <button (click)=\"addAction.emit($event)\" *ngIf=\"toolbar.add\" [disabled]=\"toolbar.add.disabled\"\n class=\"c-btn c-btn_border-free c-btn_small\"\n >\n <i class=\"fa fa-plus\" title=\"{{'Add' | translate}}\"></i>\n </button>\n\n <button (click)=\"linkAction.emit($event)\" *ngIf=\"toolbar.link\" [disabled]=\"toolbar.link.disabled\"\n class=\"c-btn c-btn_border-free c-btn_small\"\n >\n <i class=\"fa fa-link\" title=\"{{'Link' | translate}}\"></i>\n </button>\n <button (click)=\"csvAction.emit($event)\" *ngIf=\"toolbar.csv\" [disabled]=\"toolbar.csv.disabled\"\n class=\"c-btn c-btn_border-free c-btn_small\"\n >\n <i class=\"fa fa-file-csv\" title=\"{{'LOGS.SAVE_TO_SCV' | translate}}\"></i>\n </button>\n <button (click)=\"saveAction.emit($event)\" *ngIf=\"toolbar.save\"\n [disabled]=\"toolbar.save.disabled\"\n class=\"c-btn c-btn_primary c-btn_small\"\n title=\"{{'Save' | translate}}\"\n >\n {{'Save' | translate}}\n </button>\n <button (click)=\"groupEditAction.emit($event)\" *ngIf=\"toolbar.groupEdit && toolbar.groupEdit.active\"\n [disabled]=\"toolbar.groupEdit.disabled\"\n class=\"c-btn c-btn_border-free c-btn_small\">\n <i class=\"fa fa-pencil-square-o\" title=\"{{'groupEdit' | translate}}\"></i>\n </button>\n <ng-content select=\"[buttons]\"></ng-content>\n <button (click)=\"paramsEditAction.emit($event)\" *ngIf=\"toolbar.paramsEdit && toolbar.paramsEdit.active\"\n [disabled]=\"toolbar.paramsEdit.disabled\"\n class=\"c-btn c-btn_border-free c-btn_small\">\n <i class=\"fa fa-share-square-o\" title=\"{{'paramsEdit' | translate}}\"></i>\n </button>\n\n\n <button (click)=\"removeAction.emit($event)\" *ngIf=\"toolbar.remove && toolbar.remove.active\"\n [disabled]=\"toolbar.remove.disabled\"\n class=\"c-btn c-btn_border-free c-btn_small\">\n <i class=\"fa fa-trash\" title=\"{{'Delete' | translate}}\"></i>\n </button>\n <button (click)=\"unlinkAction.emit($event)\" *ngIf=\"toolbar.unlink\" [disabled]=\"toolbar.unlink.disabled\"\n class=\"c-btn c-btn_border-free c-btn_small\">\n <i class=\"fa fa-unlink\" title=\"{{'Detach tag from selected items' | translate}}\"></i>\n </button>\n <button (click)=\"toggleNodes(true)\"\n *ngIf=\"toolbar.expandAll\"\n class=\"c-btn c-btn_small c-btn_svg-24 c-icon c-icon_svg c-icon_svg-24 c-btn_border-free\"\n title=\"{{'Expand all' | translate}}\">\n <svg fill=\"currentColor\" height=\"24\" viewBox=\"0 0 24 24\" width=\"24\" xmlns=\"http://www.w3.org/2000/svg\">\n <path d=\"M20 2H4v2h16V2zM4 20v2h16v-2H4zM12 5l5 6H7l5-6zM17 13l-5 6-5-6h10z\"/>\n </svg>\n </button>\n <button (click)=\"toggleNodes(false)\"\n *ngIf=\"toolbar.expandAll\"\n class=\"c-btn c-btn_small c-btn_svg-24 c-icon c-icon_svg c-icon_svg-24 c-btn_border-free\"\n title=\"{{'Collapse all' | translate}}\">\n <svg fill=\"currentColor\" height=\"24\" viewBox=\"0 0 24 24\" width=\"24\" xmlns=\"http://www.w3.org/2000/svg\">\n <path clip-rule=\"evenodd\" d=\"M17 3l-5 6-5-6h10zM4 13v-2h16v2H4zm8 2l5 6H7l5-6z\" fill-rule=\"evenodd\"/>\n </svg>\n </button>\n\n <div *ngIf=\"toolbar.groupSort\"\n class=\"c-btn-group\"\n container=\"body\"\n ngbDropdown>\n\n <button class=\"c-btn c-btn_border-free c-btn_small\"\n id=\"dropdownGroupType\"\n ngbDropdownToggle\n title=\"{{'Change the way parameters are grouped' | translate}}\">\n <i aria-hidden=\"true\" class=\"fa fa-object-group\"></i>\n <i aria-hidden=\"true\" class=\"c-caret\"></i>\n </button>\n\n <ul aria-labelledby=\"dropdownGroupType\"\n class=\"c-dropdown-menu c-dropdown-menu_right ng-star-inserted\"\n ngbDropdownMenu\n role=\"menu\">\n <li *ngFor=\"let item of toolbar.groupSort.label\"\n [ngClass]=\"{'is-dropdown-menu__listitem_active': item.value === groupMode}\"\n class=\"c-dropdown-menu__listitem is-dropdown-menu__listitem_active\"\n ngbDropdownItem\n role=\"menuitem\">\n <a (click)=\"toggleMode(item.value)\" class=\"c-dropdown-menu__content\">\n {{item.label}}\n </a>\n </li>\n </ul>\n </div>\n </div>\n </div>\n </ng-template>\n</p-table>\n",
2325
- entryComponents: [],
2326
- providers: [
2327
- api.DomHandler,
2328
- objectutils.ObjectUtils,
2329
- table.TableService,
2330
- {
2331
- provide: table.Table,
2332
- useFactory: tableFactory,
2333
- deps: [TableComponent_1],
2334
- },
2335
- ],
2336
- styles: ["@charset \"UTF-8\";.u-overflow-visible{overflow:visible!important}.row_status_success{padding-left:9px!important;border-left:4px solid var(--ids-theme-status-success,#31ac51)}.row_status_error{padding-left:9px!important;border-left:4px solid var(--ids-theme-status-error,#f95c5d)}.row_status_warning{padding-left:9px!important;border-left:4px solid var(--ids-theme-status-warning,#ee9946)}.row_status_critical{padding-left:9px!important;border-left:4px solid var(--ids-theme-status-critical,#f95c5d)}.row_status_falsevalue{padding-left:9px!important;border-left:4px solid var(--ids-theme-status-falsevalue,#85b3cb)}.row_status_disabled{padding-left:9px!important;border-left:4px solid var(--ids-theme-status-disabled)}.row_status_none{padding-left:9px!important;border-left:4px solid transparent}.button-reset{display:flex;align-items:center;position:absolute;right:6px;top:5px;padding:6px;font-size:15px;border:none;outline:0;cursor:pointer;color:var(--colorTextMuted);background-color:transparent}.button-reset:hover{color:var(--ids-theme-btn-default-color,#fff)}.input-wrapper{position:relative;display:flex;align-items:baseline}.c-input:not(:valid)~.button-reset{display:none}"]
2337
- })
2338
- ], TableComponent);
2339
- return TableComponent;
2340
- }());
2341
- var TableComponentModule = /** @class */ (function () {
2342
- function TableComponentModule() {
2343
- }
2344
- TableComponentModule = __decorate([
2345
- core.NgModule({
2346
- imports: [common.CommonModule, table.TableModule, PipesModule, core$1.TranslateModule, forms.FormsModule, dropdown.DropdownModule, multiselect.MultiSelectModule, ngBootstrap.NgbDropdownModule, checkbox.CheckboxModule],
2347
- exports: [TableComponent, TableColumnsMultiselectComponent],
2348
- declarations: [TableComponent, TableColumnsMultiselectComponent, TableMenuOverlayComponent, TableClickOutsideDirective]
2349
- })
2350
- ], TableComponentModule);
2351
- return TableComponentModule;
2352
- }());
2353
-
2354
- var EmptyComponent = /** @class */ (function () {
2355
- function EmptyComponent() {
2356
- }
2357
- EmptyComponent = __decorate([
2358
- core.Component({
2359
- selector: 'in-empty',
2360
- template: "<div class=\"status-text\">\n {{'no_records' | translate}}\n</div>\n",
2361
- styles: [".status-text{font-size:16px;opacity:.8}"]
2362
- })
2363
- ], EmptyComponent);
2364
- return EmptyComponent;
2365
- }());
2366
-
2367
- var PreloaderComponent = /** @class */ (function () {
2368
- function PreloaderComponent() {
2369
- this.inline = false;
2370
- this.overlay = false;
2371
- this.size = 'normal';
2372
- }
2373
- PreloaderComponent.prototype.ngOnInit = function () {
2374
- };
2375
- __decorate([
2376
- core.Input(),
2377
- __metadata("design:type", Object)
2378
- ], PreloaderComponent.prototype, "inline", void 0);
2379
- __decorate([
2380
- core.Input(),
2381
- __metadata("design:type", Object)
2382
- ], PreloaderComponent.prototype, "overlay", void 0);
2383
- __decorate([
2384
- core.Input(),
2385
- __metadata("design:type", String)
2386
- ], PreloaderComponent.prototype, "size", void 0);
2387
- PreloaderComponent = __decorate([
2388
- core.Component({
2389
- selector: 'in-preloader',
2390
- template: "<div [ngClass]=\"{float:!inline, small: size==='small'}\" class=\"preloader-container\">\n <div class=\"lds-spinner\">\n <div></div>\n <div></div>\n <div></div>\n <div></div>\n <div></div>\n <div></div>\n <div></div>\n <div></div>\n <div></div>\n <div></div>\n <div></div>\n <div></div>\n </div>\n</div>\n<div *ngIf=\"overlay\" class=\"overlay\"></div>\n",
2391
- encapsulation: core.ViewEncapsulation.Emulated,
2392
- styles: ["@charset \"UTF-8\";.preloader-container{display:inline-flex;width:100%;height:64px;position:relative;align-items:center;justify-content:center;z-index:101}.preloader-container.float{position:absolute;height:auto;width:auto;top:50%;left:50%;transform:translate(-50%,-50%)}.preloader-container.small{width:32px;height:32px}.preloader-container.small .lds-spinner{color:var(--ids-theme-btn-primary-background);width:32px;height:32px}.lds-spinner{color:var(--ids-theme-btn-primary-background);width:64px;height:64px}.lds-spinner div{transform-origin:32px 32px;-webkit-animation:1.2s linear infinite lds-spinner;animation:1.2s linear infinite lds-spinner}.small .lds-spinner div{transform-origin:16px 16px}.lds-spinner div:after{content:\" \";display:block;position:absolute;top:3px;left:29px;width:5px;height:14px;border-radius:20%;background:var(--ids-theme-btn-primary-background,#78f4ff)}.small .lds-spinner div:after{width:3px;height:6px;left:15px}.lds-spinner div:nth-child(1){transform:rotate(0);-webkit-animation-delay:-1.1s;animation-delay:-1.1s}.lds-spinner div:nth-child(2){transform:rotate(30deg);-webkit-animation-delay:-1s;animation-delay:-1s}.lds-spinner div:nth-child(3){transform:rotate(60deg);-webkit-animation-delay:-.9s;animation-delay:-.9s}.lds-spinner div:nth-child(4){transform:rotate(90deg);-webkit-animation-delay:-.8s;animation-delay:-.8s}.lds-spinner div:nth-child(5){transform:rotate(120deg);-webkit-animation-delay:-.7s;animation-delay:-.7s}.lds-spinner div:nth-child(6){transform:rotate(150deg);-webkit-animation-delay:-.6s;animation-delay:-.6s}.lds-spinner div:nth-child(7){transform:rotate(180deg);-webkit-animation-delay:-.5s;animation-delay:-.5s}.lds-spinner div:nth-child(8){transform:rotate(210deg);-webkit-animation-delay:-.4s;animation-delay:-.4s}.lds-spinner div:nth-child(9){transform:rotate(240deg);-webkit-animation-delay:-.3s;animation-delay:-.3s}.lds-spinner div:nth-child(10){transform:rotate(270deg);-webkit-animation-delay:-.2s;animation-delay:-.2s}.lds-spinner div:nth-child(11){transform:rotate(300deg);-webkit-animation-delay:-.1s;animation-delay:-.1s}.lds-spinner div:nth-child(12){transform:rotate(330deg);-webkit-animation-delay:0s;animation-delay:0s}@-webkit-keyframes lds-spinner{0%{opacity:1}100%{opacity:0}}@keyframes lds-spinner{0%{opacity:1}100%{opacity:0}}.overlay{position:fixed;left:0;top:0;width:100%;height:100%;background:rgba(0,0,0,.7);z-index:100}"]
2393
- }),
2394
- __metadata("design:paramtypes", [])
2395
- ], PreloaderComponent);
2396
- return PreloaderComponent;
2397
- }());
2398
-
2399
- var InsparkStickyComponent = /** @class */ (function () {
2400
- function InsparkStickyComponent(cdr) {
2401
- var _this = this;
2402
- this.cdr = cdr;
2403
- this.top = 100;
2404
- this.isInline = false;
2405
- this.isFloated = true;
2406
- this.zIndex = 10;
2407
- this.class = '';
2408
- this.isSticky = false;
2409
- this.height = 0;
2410
- this.width = 0;
2411
- this.left = 0;
2412
- this.right = 0;
2413
- this.resize = function () {
2414
- var rect = _this.stickyRef.nativeElement.getBoundingClientRect();
2415
- _this.width = rect.width;
2416
- _this.left = rect.x;
2417
- _this.cdr.detectChanges();
2418
- };
2419
- this.scroll = function () {
2420
- var rect = _this.stickyRef.nativeElement.getBoundingClientRect();
2421
- var isSticky = rect.top < _this.top;
2422
- if (isSticky !== _this.isSticky) {
2423
- _this.height = rect.height;
2424
- _this.isSticky = rect.top < _this.top;
2425
- _this.left = rect.x;
2426
- _this.width = rect.width;
2427
- _this.right = rect.right;
2428
- _this.cdr.detectChanges();
2429
- }
2430
- };
2431
- }
2432
- InsparkStickyComponent.prototype.ngOnInit = function () {
2433
- document.addEventListener('scroll', this.scroll);
2434
- window.addEventListener('resize', this.resize);
2435
- };
2436
- InsparkStickyComponent.prototype.ngOnDestroy = function () {
2437
- document.removeEventListener('scroll', this.scroll);
2438
- window.removeEventListener('resize', this.resize);
2439
- };
2440
- InsparkStickyComponent.ctorParameters = function () { return [
2441
- { type: core.ChangeDetectorRef }
2442
- ]; };
2443
- __decorate([
2444
- core.ViewChild('sticky', { static: false }),
2445
- __metadata("design:type", core.ElementRef)
2446
- ], InsparkStickyComponent.prototype, "stickyRef", void 0);
2447
- __decorate([
2448
- core.Input(),
2449
- __metadata("design:type", Object)
2450
- ], InsparkStickyComponent.prototype, "top", void 0);
2451
- __decorate([
2452
- core.Input(),
2453
- __metadata("design:type", Object)
2454
- ], InsparkStickyComponent.prototype, "isInline", void 0);
2455
- __decorate([
2456
- core.Input(),
2457
- __metadata("design:type", Object)
2458
- ], InsparkStickyComponent.prototype, "isFloated", void 0);
2459
- __decorate([
2460
- core.Input(),
2461
- __metadata("design:type", Object)
2462
- ], InsparkStickyComponent.prototype, "zIndex", void 0);
2463
- __decorate([
2464
- core.Input(),
2465
- __metadata("design:type", Object)
2466
- ], InsparkStickyComponent.prototype, "class", void 0);
2467
- InsparkStickyComponent = __decorate([
2468
- core.Component({
2469
- selector: 'in-sticky',
2470
- template: "<div #sticky [ngClass]=\"{inline:isInline}\" [ngStyle]=\"{height: this.height?this.height+'px':'auto'}\"\n class=\"sticky-container\">\n <div [ngClass]=\"{sticky: isSticky, floated: isFloated && isSticky}\"\n [ngStyle]=\"{zIndex:this.zIndex, top: (this.top) + 'px', left: this.left+ 'px', width: this.width?this.width+'px':'auto'}\">\n <div [ngClass]=\"class\">\n <ng-content></ng-content>\n </div>\n </div>\n</div>\n",
2471
- encapsulation: core.ViewEncapsulation.Emulated,
2472
- changeDetection: core.ChangeDetectionStrategy.OnPush,
2473
- styles: [".sticky{position:fixed;display:inline-block}.floated{box-shadow:0 0 4px 2px rgba(0,0,0,.3)}.inline{display:inline-block}"]
2474
- }),
2475
- __metadata("design:paramtypes", [core.ChangeDetectorRef])
2476
- ], InsparkStickyComponent);
2477
- return InsparkStickyComponent;
2478
- }());
2479
-
2480
- var InsparkHeaderComponent = /** @class */ (function () {
2481
- function InsparkHeaderComponent() {
2482
- this.level = 1;
2483
- this.label = '';
2484
- }
2485
- InsparkHeaderComponent.prototype.ngOnInit = function () {
2486
- this.level = Math.max(Math.min(this.level, 6), 1);
2487
- };
2488
- __decorate([
2489
- core.Input(),
2490
- __metadata("design:type", Object)
2491
- ], InsparkHeaderComponent.prototype, "level", void 0);
2492
- __decorate([
2493
- core.Input(),
2494
- __metadata("design:type", Object)
2495
- ], InsparkHeaderComponent.prototype, "label", void 0);
2496
- InsparkHeaderComponent = __decorate([
2497
- core.Component({
2498
- selector: 'in-header',
2499
- template: "<div [ngClass]=\"{h1: level === 1, h2: level === 2, h3: level === 3, h4: level === 4, h5: level === 5, h6:level === 6}\"\n class=\"header u-margin-bottom-tiny u-margin-top-small\">\n <div *ngIf=\"level === 1\" [title]=\"label\" class=\"u-h1 header__wrapper\">\n {{label}}\n </div>\n <div *ngIf=\"level === 2\" [title]=\"label\" class=\"u-h2 header__wrapper\">\n {{label}}\n </div>\n <div *ngIf=\"level === 3\" [title]=\"label\" class=\"u-h3 header__wrapper\">\n {{label}}\n </div>\n <div *ngIf=\"level === 4\" [title]=\"label\" class=\"u-h4 header__wrapper\">\n {{label}}\n </div>\n <div *ngIf=\"level === 5\" [title]=\"label\" class=\"u-h5 header__wrapper\">\n {{label}}\n </div>\n <div *ngIf=\"level === 6\" [title]=\"label\" class=\"u-h6 header__wrapper\">\n {{label}}\n </div>\n <div class=\"buttons\">\n <ng-content></ng-content>\n </div>\n</div>\n",
2500
- encapsulation: core.ViewEncapsulation.Emulated,
2501
- styles: [".header{display:flex;align-items:center}.header h1,.header h2,.header h3,.header h5,.header h6{display:inline-block;margin:0;color:var(--colorText)}.header h1{font-size:24px}.header .buttons{margin-left:8px;display:flex;align-items:center}.header__wrapper{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}"]
2502
- }),
2503
- __metadata("design:paramtypes", [])
2504
- ], InsparkHeaderComponent);
2505
- return InsparkHeaderComponent;
2506
- }());
2507
-
2508
- var ToolbarComponent = /** @class */ (function () {
2509
- function ToolbarComponent(element, cdRef, router) {
2510
- this.element = element;
2511
- this.cdRef = cdRef;
2512
- this.router = router;
2513
- this.display = false;
2514
- }
2515
- ToolbarComponent.prototype.ngOnInit = function () {
2516
- };
2517
- ToolbarComponent.prototype.clickedOutsideOverlay = function (event) {
2518
- if (!this.element.nativeElement.contains(event.target)) {
2519
- this.display = false;
2520
- this.cdRef.detectChanges();
2521
- }
2522
- };
2523
- ToolbarComponent.ctorParameters = function () { return [
2524
- { type: core.ElementRef },
2525
- { type: core.ChangeDetectorRef },
2526
- { type: router.Router }
2527
- ]; };
2528
- __decorate([
2529
- core.Input(),
2530
- __metadata("design:type", String)
2531
- ], ToolbarComponent.prototype, "title", void 0);
2532
- ToolbarComponent = __decorate([
2533
- core.Component({
2534
- selector: 'in-toolbar',
2535
- template: "<div class=\"toolbar-wrapper\">\n <in-sticky top=\"60\">\n\n <div class=\"c-panel toolbar-container\">\n <div class=\"c-toolbar\">\n <div class=\"c-toolbar__side-left\">\n <div class=\"c-toolbar__title\">{{title}}</div>\n </div>\n <div class=\"c-toolbar__side-center\">\n\n </div>\n <div class=\"c-toolbar__side-right\">\n <ng-content></ng-content>\n </div>\n\n </div>\n </div>\n </in-sticky>\n</div>\n",
2536
- changeDetection: core.ChangeDetectionStrategy.OnPush,
2537
- entryComponents: [],
2538
- styles: [".toolbar-wrapper{padding-bottom:4px}.toolbar-container{padding:8px;position:relative}:host{position:-webkit-sticky;position:sticky;z-index:2}.c-toolbar{display:inline-flex;width:100%}.c-toolbar__side-left{flex:1;text-align:left}.c-toolbar__title{display:inline-flex;vertical-align:middle;font-size:22px}.c-toolbar__side-right{display:flex;text-align:right}.add-widget{position:fixed;right:16px;bottom:16px}.widget-container{position:absolute;left:0;top:40px;right:0;bottom:0;overflow:auto}.widget-block{position:absolute;left:5px;top:5px;right:5px;bottom:5px}.sidebar{background:var(--main-background);position:absolute;left:0;top:35px;bottom:0;height:100vh;z-index:100;width:300px;box-shadow:0 0 3px 8px rgba(0,0,0,.1);overflow:auto}.right-side{display:flex;align-items:center;justify-content:flex-end;flex:1}.right-side>*{margin-left:5px}.left-side{white-space:nowrap;display:flex;align-items:center;justify-content:flex-start}.left-side>*{margin-right:5px}.controls-panel{height:41px;border-radius:2px;padding:4px 0;margin:0 5px 5px;display:flex}.dashboard-list{position:relative}.title{font-size:22px}"]
2539
- }),
2540
- __metadata("design:paramtypes", [core.ElementRef, core.ChangeDetectorRef, router.Router])
2541
- ], ToolbarComponent);
2542
- return ToolbarComponent;
2543
- }());
2544
-
2545
- var BreadcrumbComponent = /** @class */ (function () {
2546
- function BreadcrumbComponent() {
2547
- }
2548
- BreadcrumbComponent.prototype.ngOnInit = function () {
2549
- };
2550
- __decorate([
2551
- core.Input(),
2552
- __metadata("design:type", Array)
2553
- ], BreadcrumbComponent.prototype, "items", void 0);
2554
- BreadcrumbComponent = __decorate([
2555
- core.Component({
2556
- selector: 'in-breadcrumb',
2557
- template: "<div>\n <ul class=\"c-crumb\">\n <li class=\"c-crumb__item\">\n <a [routerLink]=\"['/main/page/home']\" translate=\"\">{{'Home' | translate }}</a>\n </li>\n <li *ngFor=\"let item of items; last as isLast\" class=\"c-crumb__item\">\n <a *ngIf=\"item.url && !isLast; else noUrl\" [routerLink]=\"item.url\" translate=\"\">{{item.label}}</a>\n <ng-template #noUrl>\n <span translate=\"\">{{item.label}}</span>\n </ng-template>\n </li>\n </ul>\n</div>\n",
2558
- changeDetection: core.ChangeDetectionStrategy.OnPush,
2559
- styles: [""]
2560
- }),
2561
- __metadata("design:paramtypes", [])
2562
- ], BreadcrumbComponent);
2563
- return BreadcrumbComponent;
2564
- }());
2565
-
2566
- var FileComponent = /** @class */ (function () {
2567
- function FileComponent() {
2568
- this.name = null;
2569
- this.label = null;
2570
- this.accept = null;
2571
- this.required = false;
2572
- this.error = null;
2573
- this.onChange = new core.EventEmitter();
2574
- this.file = null;
2575
- }
2576
- FileComponent.prototype.onClear = function () {
2577
- this.file = null;
2578
- this.onChange.emit(this.file);
2579
- this.el.nativeElement.value = '';
2580
- };
2581
- FileComponent.prototype.onClickChoose = function () {
2582
- this.el.nativeElement.click();
2583
- };
2584
- FileComponent.prototype.onChangeFile = function (e) {
2585
- e.preventDefault();
2586
- if (e.srcElement.files[0]) {
2587
- this.file = e.srcElement.files[0];
2588
- this.onChange.emit(this.file);
2589
- }
2590
- };
2591
- __decorate([
2592
- core.Input(),
2593
- __metadata("design:type", Object)
2594
- ], FileComponent.prototype, "name", void 0);
2595
- __decorate([
2596
- core.Input(),
2597
- __metadata("design:type", Object)
2598
- ], FileComponent.prototype, "label", void 0);
2599
- __decorate([
2600
- core.Input(),
2601
- __metadata("design:type", String)
2602
- ], FileComponent.prototype, "accept", void 0);
2603
- __decorate([
2604
- core.Input(),
2605
- __metadata("design:type", Object)
2606
- ], FileComponent.prototype, "required", void 0);
2607
- __decorate([
2608
- core.Input(),
2609
- __metadata("design:type", Object)
2610
- ], FileComponent.prototype, "error", void 0);
2611
- __decorate([
2612
- core.Output(),
2613
- __metadata("design:type", core.EventEmitter)
2614
- ], FileComponent.prototype, "onChange", void 0);
2615
- __decorate([
2616
- core.ViewChild('fileInput', { static: false }),
2617
- __metadata("design:type", core.ElementRef)
2618
- ], FileComponent.prototype, "el", void 0);
2619
- FileComponent = __decorate([
2620
- core.Component({
2621
- selector: 'in-file',
2622
- template: "<span *ngIf=\"label\" class=\"c-label__content\">\n {{label}}\n <span *ngIf=\"required\" class=\"c-label__req\">*</span>\n<span *ngIf=\"error\" class=\"c-label__sub_is-error\">{{error}}</span>\n </span>\n<in-button (click)=\"onClickChoose()\" *ngIf=\"file\" [label]=\"file.name\"></in-button>\n<in-button (click)=\"onClear()\" *ngIf=\"file\" label=\"X\"></in-button>\n<in-button (click)=\"onClickChoose()\" *ngIf=\"!file\" [label]=\"'Select file' | translate\"></in-button>\n\n<div class=\"hide\"><input #fileInput (change)=\"onChangeFile($event)\" [accept]=\"accept\" type=\"file\"/></div>\n",
2623
- styles: [".hide{display:none}"]
2624
- })
2625
- ], FileComponent);
2626
- return FileComponent;
2627
- }());
2628
-
2629
- var SelectButtonComponent = /** @class */ (function () {
2630
- function SelectButtonComponent(cdRef) {
2631
- this.cdRef = cdRef;
2632
- this.name = '';
2633
- this.testId = '';
2634
- this.label = '';
2635
- this.icon = '';
2636
- this.error = '';
2637
- this.iconPos = 'left';
2638
- this.options = [];
2639
- this.required = false;
2640
- this.multiple = false;
2641
- this.focus = new core.EventEmitter();
2642
- this.blur = new core.EventEmitter();
2643
- this.click = new core.EventEmitter();
2644
- this.change = new core.EventEmitter();
2645
- this.selected = [];
2646
- this.propagateChange = function (_) {
2647
- };
2648
- }
2649
- SelectButtonComponent_1 = SelectButtonComponent;
2650
- SelectButtonComponent.prototype.ngOnInit = function () {
2651
- };
2652
- SelectButtonComponent.prototype.ngOnChanges = function () {
2653
- if (this.initial) {
2654
- this.selected = this.initial;
2655
- }
2656
- else {
2657
- this.selected = [];
2658
- }
2659
- };
2660
- SelectButtonComponent.prototype.clickButton = function (option) {
2661
- var _this = this;
2662
- if (option.readonly) {
2663
- return false;
2664
- }
2665
- if (this.multiple) {
2666
- if (this.selected.indexOf(option.value) !== -1) {
2667
- this.selected = this.selected.filter(function (item) { return item !== option.value; });
2668
- }
2669
- else {
2670
- this.selected.push(option.value);
2671
- }
2672
- this.value = this.options.filter(function (item) { return _this.selected.indexOf(item.value) !== -1; }).map(function (val) { return val.value; });
2673
- }
2674
- else {
2675
- this.selected = [option.value];
2676
- this.value = option.value;
2677
- }
2678
- this.cdRef.detectChanges();
2679
- this.onChange();
2680
- };
2681
- /**
2682
- * Write form value to the DOM element (model => view)
2683
- */
2684
- SelectButtonComponent.prototype.writeValue = function (value) {
2685
- this.value = value;
2686
- if (value !== null && value !== undefined) {
2687
- if (Array.isArray(value)) {
2688
- this.selected = value.map(function (val) { return val; });
2689
- }
2690
- else {
2691
- this.selected = [value];
2692
- }
2693
- }
2694
- this.cdRef.detectChanges();
2695
- };
2696
- /**
2697
- * Write form disabled state to the DOM element (model => view)
2698
- */
2699
- SelectButtonComponent.prototype.setDisabledState = function (isDisabled) {
2700
- this.disabled = isDisabled;
2701
- };
2702
- /**
2703
- * Update form when DOM element value changes (view => model)
2704
- */
2705
- SelectButtonComponent.prototype.registerOnChange = function (fn) {
2706
- // Store the provided function as an internal method.
2707
- this.propagateChange = fn;
2708
- };
2709
- /**
2710
- * Update form when DOM element is blurred (view => model)
2711
- */
2712
- SelectButtonComponent.prototype.registerOnTouched = function (fn) {
2713
- // Store the provided function as an internal method.
2714
- this.onTouched = fn;
2715
- };
2716
- SelectButtonComponent.prototype.onChange = function () {
2717
- this.propagateChange(this.value);
2718
- this.change.emit(this.value);
2719
- };
2720
- SelectButtonComponent.prototype.onTouched = function () {
2721
- };
2722
- var SelectButtonComponent_1;
2723
- SelectButtonComponent.ctorParameters = function () { return [
2724
- { type: core.ChangeDetectorRef }
2725
- ]; };
2726
- __decorate([
2727
- core.Input(),
2728
- __metadata("design:type", Object)
2729
- ], SelectButtonComponent.prototype, "name", void 0);
2730
- __decorate([
2731
- core.Input(),
2732
- __metadata("design:type", Object)
2733
- ], SelectButtonComponent.prototype, "testId", void 0);
2734
- __decorate([
2735
- core.Input(),
2736
- __metadata("design:type", Object)
2737
- ], SelectButtonComponent.prototype, "label", void 0);
2738
- __decorate([
2739
- core.Input(),
2740
- __metadata("design:type", Object)
2741
- ], SelectButtonComponent.prototype, "icon", void 0);
2742
- __decorate([
2743
- core.Input(),
2744
- __metadata("design:type", Object)
2745
- ], SelectButtonComponent.prototype, "error", void 0);
2746
- __decorate([
2747
- core.Input(),
2748
- __metadata("design:type", String)
2749
- ], SelectButtonComponent.prototype, "iconPos", void 0);
2750
- __decorate([
2751
- core.Input(),
2752
- __metadata("design:type", Array)
2753
- ], SelectButtonComponent.prototype, "options", void 0);
2754
- __decorate([
2755
- core.Input(),
2756
- __metadata("design:type", Boolean)
2757
- ], SelectButtonComponent.prototype, "disabled", void 0);
2758
- __decorate([
2759
- core.Input(),
2760
- __metadata("design:type", Object)
2761
- ], SelectButtonComponent.prototype, "required", void 0);
2762
- __decorate([
2763
- core.Input(),
2764
- __metadata("design:type", Object)
2765
- ], SelectButtonComponent.prototype, "multiple", void 0);
2766
- __decorate([
2767
- core.Input(),
2768
- __metadata("design:type", Array)
2769
- ], SelectButtonComponent.prototype, "initial", void 0);
2770
- __decorate([
2771
- core.Output(),
2772
- __metadata("design:type", core.EventEmitter)
2773
- ], SelectButtonComponent.prototype, "focus", void 0);
2774
- __decorate([
2775
- core.Output(),
2776
- __metadata("design:type", core.EventEmitter)
2777
- ], SelectButtonComponent.prototype, "blur", void 0);
2778
- __decorate([
2779
- core.Output(),
2780
- __metadata("design:type", core.EventEmitter)
2781
- ], SelectButtonComponent.prototype, "click", void 0);
2782
- __decorate([
2783
- core.Output(),
2784
- __metadata("design:type", core.EventEmitter)
2785
- ], SelectButtonComponent.prototype, "change", void 0);
2786
- SelectButtonComponent = SelectButtonComponent_1 = __decorate([
2787
- core.Component({
2788
- selector: 'in-select-button',
2789
- template: "<span *ngIf=\"label\" class=\"c-label__content\">\n {{label}}\n <span *ngIf=\"required\" class=\"c-label__req\">*</span>\n <span *ngIf=\"error\" class=\"c-label__sub_is-error\">{{error}}</span>\n </span>\n<div class=\"container\">\n <in-button class=\"button-none\"></in-button>\n <in-button (click)=\"clickButton(option)\"\n *ngFor=\"let option of options\"\n [color]=\"selected.indexOf(option.value) === -1 ? 'normal': 'primary' \"\n [icon]=\"option.icon\"\n [label]=\"option.label | translate\"\n [testId]=\"'filter-buttons-' + option.value\"\n [title]=\"option.title ? (option.title | translate) : ''\"\n [name] = option.label\n [disabled]=\"option.readonly\"\n >\n </in-button>\n</div>\n",
2790
- providers: [
2791
- {
2792
- provide: forms.NG_VALUE_ACCESSOR,
2793
- useExisting: core.forwardRef(function () { return SelectButtonComponent_1; }),
2794
- multi: true,
2795
- }
2796
- ],
2797
- styles: [".container{white-space:nowrap}in-button ::ng-deep button{outline:0}in-button:first-child ::ng-deep button{border-bottom-right-radius:0;border-top-right-radius:0;border-right:1px solid #000}in-button:not(:first-child):not(:last-child) ::ng-deep button{border-radius:0;border-right:1px solid #000}in-button:last-child ::ng-deep button{border-bottom-left-radius:0;border-top-left-radius:0}.button-none{display:none}"]
2798
- }),
2799
- __metadata("design:paramtypes", [core.ChangeDetectorRef])
2800
- ], SelectButtonComponent);
2801
- return SelectButtonComponent;
2802
- }());
2803
-
2804
- var StatusCircleComponent = /** @class */ (function () {
2805
- function StatusCircleComponent() {
2806
- this.label = '';
2807
- this.title = '';
2808
- this.icon = '';
2809
- this.showLabel = true;
2810
- this.mode = 'success';
2811
- this.size = 'normal';
2812
- this.content = '';
2813
- }
2814
- __decorate([
2815
- core.Input(),
2816
- __metadata("design:type", Object)
2817
- ], StatusCircleComponent.prototype, "label", void 0);
2818
- __decorate([
2819
- core.Input(),
2820
- __metadata("design:type", Object)
2821
- ], StatusCircleComponent.prototype, "title", void 0);
2822
- __decorate([
2823
- core.Input(),
2824
- __metadata("design:type", Object)
2825
- ], StatusCircleComponent.prototype, "icon", void 0);
2826
- __decorate([
2827
- core.Input(),
2828
- __metadata("design:type", Object)
2829
- ], StatusCircleComponent.prototype, "showLabel", void 0);
2830
- __decorate([
2831
- core.Input(),
2832
- __metadata("design:type", String)
2833
- ], StatusCircleComponent.prototype, "mode", void 0);
2834
- __decorate([
2835
- core.Input(),
2836
- __metadata("design:type", String)
2837
- ], StatusCircleComponent.prototype, "size", void 0);
2838
- __decorate([
2839
- core.Input(),
2840
- __metadata("design:type", Object)
2841
- ], StatusCircleComponent.prototype, "content", void 0);
2842
- StatusCircleComponent = __decorate([
2843
- core.Component({
2844
- selector: 'in-status-circle',
2845
- template: "<div [ngClass]=\"{'icon': icon ,'has-content': content!==''}\"\n class=\"circle-container {{size}}\"\n title=\"{{title ? title : label}}\">\n <span class=\"circle {{mode}}\">\n <in-svg *ngIf=\"icon\" [src]=\"icon\"></in-svg>\n <span *ngIf=\"content!==''\" class=\"content\">{{content}}</span>\n </span>\n <span *ngIf=\"showLabel && label\" class=\"label\">{{label}}</span>\n</div>\n",
2846
- encapsulation: core.ViewEncapsulation.Emulated,
2847
- styles: ["@charset \"UTF-8\";:host{display:inline-block;line-height:0}.circle-container{font-size:14px;display:inline-block}.circle-container.small{font-size:12px}.circle-container.small .circle{width:8px;height:8px}.circle-container.normal .circle{width:12px;height:12px}.circle-container.big .circle{min-width:20px;min-height:20px}.circle-container.mini{margin-top:-2px;position:relative;padding:0;top:-3px}.circle-container.mini .circle{width:4px;height:4px}.circle{display:inline-flex;align-items:center;justify-content:center;color:var(--colorTextOnStatus);border-radius:20px;position:relative}.circle in-svg{position:absolute;left:50%;top:50%;height:18px;width:18px;transform:translate(-50%,-50%)}.falsevalue{background:var(--colorFalseValue)}.success{background:var(--colorSuccess)}.warning{background:var(--colorWarning)}.error{background:var(--colorError)}.none{background:var(--colorNoControl)}.critical{background:var(--colorCritical)}.primary{background:var(--ids-theme-primary,#78f4ff)}.inverse{background:var(--colorIcon,#78f4ff);color:var(--colorTextInverse)}.black{background:#000}.label{margin-left:6px}.content{display:inline-block;line-height:100%;padding:0 5px}"]
2848
- })
2849
- ], StatusCircleComponent);
2850
- return StatusCircleComponent;
2851
- }());
2852
-
2853
- var SvgComponent = /** @class */ (function (_super) {
2854
- __extends(SvgComponent, _super);
2855
- function SvgComponent() {
2856
- var _this = _super !== null && _super.apply(this, arguments) || this;
2857
- _this.size = 'normal';
2858
- _this.width = '100%';
2859
- _this.height = '100%';
2860
- return _this;
2861
- }
2862
- __decorate([
2863
- core.Input(),
2864
- __metadata("design:type", String)
2865
- ], SvgComponent.prototype, "size", void 0);
2866
- __decorate([
2867
- core.Input(),
2868
- __metadata("design:type", Object)
2869
- ], SvgComponent.prototype, "width", void 0);
2870
- __decorate([
2871
- core.Input(),
2872
- __metadata("design:type", Object)
2873
- ], SvgComponent.prototype, "height", void 0);
2874
- __decorate([
2875
- core.Input(),
2876
- __metadata("design:type", String)
2877
- ], SvgComponent.prototype, "src", void 0);
2878
- SvgComponent = __decorate([
2879
- core.Component({
2880
- selector: 'in-svg',
2881
- template: "<span [inlineSVG]=\"src\"\n [ngClass]=\"{svg: true, 'c-icon_svg-small': size === 'small', 'c-icon_svg-large': size === 'large'}\" [ngStyle]=\"{width: width, height: height}\"></span>\n\n",
2882
- styles: [".svg{display:inline-flex;align-items:center;justify-content:center}.c-icon_svg-small{width:16px;height:16px}:host{display:inline-block}"]
2883
- })
2884
- ], SvgComponent);
2885
- return SvgComponent;
2886
- }(primeng.Button));
2887
-
2888
- var SwitcherComponent = /** @class */ (function () {
2889
- function SwitcherComponent(element, cdRef, router) {
2890
- this.element = element;
2891
- this.cdRef = cdRef;
2892
- this.router = router;
2893
- this.name = null;
2894
- this.label = null;
2895
- this.error = null;
2896
- this.iconOff = '';
2897
- this.iconOn = '';
2898
- this.labelOff = 'Off';
2899
- this.labelOn = 'On';
2900
- this.faIconOn = '';
2901
- this.faIconOff = '';
2902
- this.id = null;
2903
- this.change = new core.EventEmitter();
2904
- this._isBoolean = false;
2905
- this.propagateChange = function (_) {
2906
- };
2907
- }
2908
- SwitcherComponent_1 = SwitcherComponent;
2909
- SwitcherComponent.prototype.ngOnInit = function () {
2910
- this._isBoolean = typeof this.value === 'boolean';
2911
- this.value = typeof this.value === 'string' ? JSON.parse(this.value) : !!this.value;
2912
- };
2913
- SwitcherComponent.prototype.ngOnChanges = function (changes) {
2914
- };
2915
- /**
2916
- * Write form value to the DOM element (model => view)
2917
- */
2918
- SwitcherComponent.prototype.writeValue = function (value) {
2919
- this._isBoolean = typeof value === 'boolean';
2920
- this.value = value;
2921
- this.cdRef.detectChanges();
2922
- };
2923
- /**
2924
- * Write form disabled state to the DOM element (model => view)
2925
- */
2926
- SwitcherComponent.prototype.setDisabledState = function (isDisabled) {
2927
- this.disabled = isDisabled;
2928
- };
2929
- /**
2930
- * Update form when DOM element value changes (view => model)
2931
- */
2932
- SwitcherComponent.prototype.registerOnChange = function (fn) {
2933
- // Store the provided function as an internal method.
2934
- this.propagateChange = fn;
2935
- };
2936
- /**
2937
- * Update form when DOM element is blurred (view => model)
2938
- */
2939
- SwitcherComponent.prototype.registerOnTouched = function (fn) {
2940
- // Store the provided function as an internal method.
2941
- this.onTouched = fn;
2942
- };
2943
- SwitcherComponent.prototype.onChange = function (e) {
2944
- e.stopPropagation();
2945
- e.preventDefault();
2946
- if (this._isBoolean) {
2947
- this.propagateChange(this.value);
2948
- this.change.emit(this.value);
2949
- }
2950
- else {
2951
- this.propagateChange(this.value ? 1 : 0);
2952
- this.change.emit(this.value ? 1 : 0);
2953
- }
2954
- };
2955
- SwitcherComponent.prototype.onTouched = function () {
2956
- };
2957
- var SwitcherComponent_1;
2958
- SwitcherComponent.ctorParameters = function () { return [
2959
- { type: core.ElementRef },
2960
- { type: core.ChangeDetectorRef },
2961
- { type: router.Router }
2962
- ]; };
2963
- __decorate([
2964
- core.Input(),
2965
- __metadata("design:type", Object)
2966
- ], SwitcherComponent.prototype, "name", void 0);
2967
- __decorate([
2968
- core.Input(),
2969
- __metadata("design:type", Object)
2970
- ], SwitcherComponent.prototype, "label", void 0);
2971
- __decorate([
2972
- core.Input(),
2973
- __metadata("design:type", Object)
2974
- ], SwitcherComponent.prototype, "error", void 0);
2975
- __decorate([
2976
- core.Input(),
2977
- __metadata("design:type", Object)
2978
- ], SwitcherComponent.prototype, "iconOff", void 0);
2979
- __decorate([
2980
- core.Input(),
2981
- __metadata("design:type", Object)
2982
- ], SwitcherComponent.prototype, "iconOn", void 0);
2983
- __decorate([
2984
- core.Input(),
2985
- __metadata("design:type", Object)
2986
- ], SwitcherComponent.prototype, "labelOff", void 0);
2987
- __decorate([
2988
- core.Input(),
2989
- __metadata("design:type", Object)
2990
- ], SwitcherComponent.prototype, "labelOn", void 0);
2991
- __decorate([
2992
- core.Input(),
2993
- __metadata("design:type", Object)
2994
- ], SwitcherComponent.prototype, "faIconOn", void 0);
2995
- __decorate([
2996
- core.Input(),
2997
- __metadata("design:type", Object)
2998
- ], SwitcherComponent.prototype, "faIconOff", void 0);
2999
- __decorate([
3000
- core.Input(),
3001
- __metadata("design:type", Object)
3002
- ], SwitcherComponent.prototype, "id", void 0);
3003
- __decorate([
3004
- core.Input(),
3005
- __metadata("design:type", Boolean)
3006
- ], SwitcherComponent.prototype, "disabled", void 0);
3007
- __decorate([
3008
- core.Input(),
3009
- __metadata("design:type", Boolean)
3010
- ], SwitcherComponent.prototype, "waiting", void 0);
3011
- __decorate([
3012
- core.Output(),
3013
- __metadata("design:type", core.EventEmitter)
3014
- ], SwitcherComponent.prototype, "change", void 0);
3015
- SwitcherComponent = SwitcherComponent_1 = __decorate([
3016
- core.Component({
3017
- selector: 'in-switcher',
3018
- template: "<label class=\"c-checkbox c-checkbox_switch container\">\n <span *ngIf=\"label\" class=\"label\">{{label}}</span>\n <span class=\"switcher-container\">\n <span class=\"c-checkbox__label u-vertical-align-middle u-text_center\">\n <span *ngIf=\"!iconOff\">{{labelOff | translate}}</span>\n <span *ngIf=\"faIconOff\"><i class=\"fa\" [ngClass]=\"faIconOff\"></i></span>\n <in-svg *ngIf=\"iconOff\" [src]=\"iconOff\" height=\"48px\" size=\"large\" width=\"48px\"></in-svg>\n </span>\n <input *ngIf=\"!waiting\" (change)=\"onChange($event)\"\n [(ngModel)]=\"value\"\n [checked]=\"value\" [disabled]=\"disabled\"\n class=\"c-checkbox__input\"\n name=\"element_name\"\n type=\"checkbox\"/>\n <i *ngIf=\"!waiting\" class=\"c-checkbox__icon u-margin-left-tiny u-vertical-align-baseline\"></i>\n <span *ngIf = \"waiting\" class=\"c-spinner \" style = \"display: inline-block; width:50px; text-align: center\"><i class=\"fa fa-circle-o-notch fa-spin \"></i></span>\n <span class=\"c-spinner c-checkbox__label u-vertical-align-middle u-text_center\">\n <span *ngIf=\"!iconOn\">{{labelOn | translate}}</span>\n <span *ngIf=\"faIconOn\"><i class=\"fa\" [ngClass]=\"faIconOn\"></i></span>\n <in-svg *ngIf=\"iconOn\" [src]=\"iconOn\" height=\"48px\" size=\"large\" width=\"48px\"></in-svg>\n </span>\n </span>\n</label>\n",
3019
- providers: [
3020
- {
3021
- provide: forms.NG_VALUE_ACCESSOR,
3022
- useExisting: core.forwardRef(function () { return SwitcherComponent_1; }),
3023
- multi: true,
3024
- }
3025
- ],
3026
- styles: [".container{display:inline-flex;align-items:center;justify-content:center;flex-direction:column}.c-checkbox_switch .c-checkbox__icon{height:30px}.c-checkbox{margin-right:0}.label{font-size:11px;font-weight:700;display:block;text-align:center;text-transform:uppercase;margin-bottom:2px}.switcher-container{display:flex;align-items:center;justify-content:center}"]
3027
- }),
3028
- __metadata("design:paramtypes", [core.ElementRef, core.ChangeDetectorRef, router.Router])
3029
- ], SwitcherComponent);
3030
- return SwitcherComponent;
3031
- }());
3032
-
3033
- var InlineMessageComponent = /** @class */ (function () {
3034
- function InlineMessageComponent() {
3035
- this.message = '';
3036
- this.align = 'center';
3037
- }
3038
- __decorate([
3039
- core.Input(),
3040
- __metadata("design:type", Object)
3041
- ], InlineMessageComponent.prototype, "message", void 0);
3042
- __decorate([
3043
- core.Input(),
3044
- __metadata("design:type", String)
3045
- ], InlineMessageComponent.prototype, "align", void 0);
3046
- InlineMessageComponent = __decorate([
3047
- core.Component({
3048
- selector: 'in-inline-message',
3049
- template: "<div [ngClass]=\"align\" class=\"message\">\n {{message}}\n <ng-content></ng-content>\n</div>\n",
3050
- styles: [".message{padding:12px 0;text-align:center;color:#aaa}.message.left{text-align:left}.message.right{text-align:right}"]
3051
- })
3052
- ], InlineMessageComponent);
3053
- return InlineMessageComponent;
3054
- }());
3055
-
3056
- var LinkComponent = /** @class */ (function () {
3057
- function LinkComponent() {
3058
- this.color = 'normal';
3059
- this.name = '';
3060
- this.testId = '';
3061
- this.label = '';
3062
- this.icon = '';
3063
- this.className = '';
3064
- this.svg = '';
3065
- this.link = '';
3066
- /**
3067
- * external - ссылка на внешний источник
3068
- * internal - ссылка внутри приложения
3069
- * auto - определяется автоматически исходя из link
3070
- */
3071
- this.linkType = 'auto';
3072
- /**
3073
- * self - открывается в этом же окне
3074
- * blank - открывается в новом окне
3075
- * auto - определяется автоматически исходя из linkType
3076
- */
3077
- this.linkTarget = 'auto';
3078
- // Отображает кнопку нажатой
3079
- this.pressed = false;
3080
- this.disabled = false;
3081
- this.iconPos = 'left';
3082
- this.menuItems = [];
3083
- this.focus = new core.EventEmitter();
3084
- this.blur = new core.EventEmitter();
3085
- this.click = new core.EventEmitter();
3086
- this.style = {};
3087
- this._target = '_self';
3088
- this._linkType = 'auto';
3089
- this.isMaterialIcon = false;
3090
- }
3091
- LinkComponent.prototype.ngOnInit = function () {
3092
- this.updateData();
3093
- };
3094
- LinkComponent.prototype.ngOnChanges = function (changes) {
3095
- this.updateData();
3096
- };
3097
- LinkComponent.prototype.updateData = function () {
3098
- this._linkType = this.linkType;
3099
- if (this._linkType === 'auto') {
3100
- if ((this.link.indexOf('://') !== -1 || this.link.indexOf('//') === 0)) {
3101
- this._linkType = 'external';
3102
- }
3103
- else {
3104
- this._linkType = 'internal';
3105
- }
3106
- }
3107
- if (this.linkTarget === 'auto') {
3108
- if (this._linkType === 'external') {
3109
- this._target = '_blank';
3110
- }
3111
- else {
3112
- this._target = '_self';
3113
- }
3114
- }
3115
- else {
3116
- this._target = this.linkTarget === 'self' ? '_self' : 'blank';
3117
- }
3118
- if (this.icon && this.icon.indexOf('fa-') === -1) {
3119
- this.isMaterialIcon = true;
3120
- }
3121
- else {
3122
- this.isMaterialIcon = false;
3123
- }
3124
- };
3125
- LinkComponent.prototype._onClick = function ($event) {
3126
- // if (!this.link) {
3127
- // $event.stopPropagation();
3128
- // $event.preventDefault();
3129
- // this.click.emit($event);
3130
- // }
3131
- if (this.menuItems.length) {
3132
- this._menu.toggle($event);
3133
- }
3134
- };
3135
- __decorate([
3136
- core.Input(),
3137
- __metadata("design:type", String)
3138
- ], LinkComponent.prototype, "color", void 0);
3139
- __decorate([
3140
- core.Input(),
3141
- __metadata("design:type", Object)
3142
- ], LinkComponent.prototype, "name", void 0);
3143
- __decorate([
3144
- core.Input(),
3145
- __metadata("design:type", Object)
3146
- ], LinkComponent.prototype, "testId", void 0);
3147
- __decorate([
3148
- core.Input(),
3149
- __metadata("design:type", Object)
3150
- ], LinkComponent.prototype, "label", void 0);
3151
- __decorate([
3152
- core.Input(),
3153
- __metadata("design:type", Object)
3154
- ], LinkComponent.prototype, "icon", void 0);
3155
- __decorate([
3156
- core.Input(),
3157
- __metadata("design:type", Object)
3158
- ], LinkComponent.prototype, "className", void 0);
3159
- __decorate([
3160
- core.Input(),
3161
- __metadata("design:type", Object)
3162
- ], LinkComponent.prototype, "svg", void 0);
3163
- __decorate([
3164
- core.Input(),
3165
- __metadata("design:type", Object)
3166
- ], LinkComponent.prototype, "link", void 0);
3167
- __decorate([
3168
- core.Input(),
3169
- __metadata("design:type", String)
3170
- ], LinkComponent.prototype, "linkType", void 0);
3171
- __decorate([
3172
- core.Input(),
3173
- __metadata("design:type", String)
3174
- ], LinkComponent.prototype, "linkTarget", void 0);
3175
- __decorate([
3176
- core.Input(),
3177
- __metadata("design:type", Object)
3178
- ], LinkComponent.prototype, "pressed", void 0);
3179
- __decorate([
3180
- core.Input(),
3181
- __metadata("design:type", Object)
3182
- ], LinkComponent.prototype, "disabled", void 0);
3183
- __decorate([
3184
- core.Input(),
3185
- __metadata("design:type", String)
3186
- ], LinkComponent.prototype, "iconPos", void 0);
3187
- __decorate([
3188
- core.Input(),
3189
- __metadata("design:type", Array)
3190
- ], LinkComponent.prototype, "menuItems", void 0);
3191
- __decorate([
3192
- core.ViewChild(primeng.Menu, { static: false }),
3193
- __metadata("design:type", primeng.Menu)
3194
- ], LinkComponent.prototype, "_menu", void 0);
3195
- __decorate([
3196
- core.Output(),
3197
- __metadata("design:type", core.EventEmitter)
3198
- ], LinkComponent.prototype, "focus", void 0);
3199
- __decorate([
3200
- core.Output(),
3201
- __metadata("design:type", core.EventEmitter)
3202
- ], LinkComponent.prototype, "blur", void 0);
3203
- __decorate([
3204
- core.Output(),
3205
- __metadata("design:type", core.EventEmitter)
3206
- ], LinkComponent.prototype, "click", void 0);
3207
- LinkComponent = __decorate([
3208
- core.Component({
3209
- selector: 'in-link',
3210
- template: "<a (blur)=\"blur.emit($event)\"\n (focus)=\"focus.emit($event)\"\n *ngIf=\"link &&_linkType ==='external'\"\n [class]=\"className\"\n [href]=\"link\"\n [ngClass]=\"{'ui-link ui-state-default ui-corner-all ui-link-transparency':true,\n 'ui-link-text-icon-left': ((icon || svg) && label && iconPos === 'left'),\n 'ui-link-text-icon-right': ((icon || svg) && label && iconPos === 'right'),\n 'ui-link-text-only': (!(icon || svg) && label),\n 'ui-link-text-empty': (!(icon || svg) && !label),\n 'ui-link-svg': svg,\n 'ui-link-material': isMaterialIcon,\n 'ui-state-disabled': disabled,\n 'ui-link-primary': color === 'primary',\n 'ui-link-secondary': color === 'secondary',\n 'ui-link-danger': color === 'danger'}\"\n [style]=\"style\" [target]=\"_target\">\n <ng-container *ngTemplateOutlet=\"content;\"></ng-container>\n</a>\n<a (blur)=\"blur.emit($event)\"\n (focus)=\"focus.emit($event)\"\n *ngIf=\"link && _linkType ==='internal'\"\n [class]=\"className\"\n [ngClass]=\"{'ui-link ui-state-default ui-corner-all ui-link-transparency':true,\n 'ui-link-text-icon-left': ((icon || svg) && label && iconPos === 'left'),\n 'ui-link-text-icon-right': ((icon || svg) && label && iconPos === 'right'),\n 'ui-link-text-only': (!(icon || svg) && label),\n 'ui-link-text-empty': (!(icon || svg) && !label),\n 'ui-link-svg': svg,\n 'ui-link-material': isMaterialIcon,\n 'ui-state-disabled': disabled,\n 'ui-link-primary': color === 'primary',\n 'ui-link-secondary': color === 'secondary',\n 'ui-link-danger': color === 'danger'}\"\n [routerLink]=\"link\"\n [style]=\"style\" [target]=\"_target\">\n <ng-container *ngTemplateOutlet=\"content;\"></ng-container>\n</a>\n<span (blur)=\"blur.emit($event)\"\n (click)=\"_onClick($event)\"\n (focus)=\"focus.emit($event)\"\n *ngIf=\"!link\"\n [class]=\"className\"\n [ngClass]=\"{'ui-link ui-state-default ui-corner-all ui-link-transparency':true,\n 'ui-link-text-icon-left': ((icon || svg) && label && iconPos === 'left'),\n 'ui-link-text-icon-right': ((icon || svg) && label && iconPos === 'right'),\n 'ui-link-text-only': (!(icon || svg) && label),\n 'ui-link-text-empty': (!(icon || svg) && !label),\n 'ui-link-svg': svg,\n 'ui-link-material': isMaterialIcon,\n 'ui-state-disabled': disabled,\n 'ui-link-primary': color === 'primary',\n 'ui-link-secondary': color === 'secondary',\n 'ui-link-danger': color === 'danger'}\" [style]=\"style\">\n <ng-container *ngTemplateOutlet=\"content;\"></ng-container>\n</span>\n<p-menu *ngIf=\"menuItems.length\" [model]=\"menuItems\" [popup]=\"true\" appendTo=\"body\" styleClass=\"button-menu\"></p-menu>\n\n<ng-template #content>\n <span *ngIf=\"!isMaterialIcon && icon\" [class]=\"icon\"\n [ngClass]=\"{'ui-clickable': true,\n 'ui-link-icon-left': (iconPos === 'left'),\n 'ui-link-icon-right': (iconPos === 'right')}\"></span>\n <span *ngIf=\"isMaterialIcon && icon\" [ngClass]=\"{'ui-clickable': true,\n 'ui-link-icon-left': (iconPos === 'left'),\n 'ui-link-icon-right': (iconPos === 'right')}\"\n ><i class=\"material-icons\">{{icon}}</i></span>\n <span *ngIf=\"svg\" [ngClass]=\"{'ui-clickable': true,\n 'ui-link-icon-left': (iconPos === 'left'),\n 'ui-link-icon-right': (iconPos === 'right')}\">\n <in-svg [src]=\"svg\" height=\"20px\" width=\"20px\"></in-svg>\n </span>\n <span class=\"ui-link-text ui-clickable\">{{label}}</span>\n\n</ng-template>\n",
3211
- styles: [".ui-link{text-decoration:none;color:var(--colorLink);cursor:pointer;margin-right:0;display:inline-flex;align-items:center;justify-content:center}.ui-link.ui-link-secondary{color:var(--colorTextSecondary)}.ui-link:hover{color:var(--colorLink)}.ui-link:hover .ui-link-text{text-decoration:underline;color:var(--colorLink)}button{outline:0}.ui-link-icon-only .ui-link-icon-left{margin-top:-9px}.ui-link-text{vertical-align:middle}.ui-link-text-icon-left .ui-link-text{padding-left:.6em}.ui-link-icon-only{font-size:18px;display:inline-flex;align-items:center;justify-content:center}.ui-link-icon-only .svg{display:inline-block;line-height:0}.ui-link-transparency{background:0 0}.ui-link.ui-link-svg .ui-clickable{height:20px}.ui-link.ui-link-svg .ui-link-icon-left{left:6px;margin-top:-2px}.ui-link.ui-link-svg.ui-link-icon-only .ui-link-icon-left{left:50%;width:auto;transform:translate(-50%,-50%);margin-left:0;margin-top:0}.ui-link-material .material-icons{font-size:16px}:host .ui-menu .ui-menuitem-link{font-size:16px}"]
3212
- })
3213
- ], LinkComponent);
3214
- return LinkComponent;
3215
- }());
3216
-
3217
- var TooltipComponent = /** @class */ (function () {
3218
- function TooltipComponent() {
3219
- }
3220
- TooltipComponent.prototype.ngOnInit = function () {
3221
- };
3222
- TooltipComponent = __decorate([
3223
- core.Component({
3224
- selector: 'in-tooltip',
3225
- template: "<div class=\"c-tooltip c-tooltip_left\">\n <ng-content></ng-content>\n <div class=\"c-tooltip__content\" style=\"width: 12em;\" >\n <ng-content select=\"tooltip_content\"></ng-content>\n </div>\n</div>\n\n",
3226
- changeDetection: core.ChangeDetectionStrategy.OnPush,
3227
- styles: [".c-tooltip{display:inline-block;position:relative;text-align:left;overflow:visible}.c-tooltip:hover .c-tooltip__content{visibility:visible;opacity:1}.c-tooltip_left>.c-tooltip__content{left:auto;right:100%;top:50%;bottom:auto;margin-right:12px;border-top-right-radius:0}.c-tooltip_left>.c-tooltip__content:before{border-top-color:var(--colorBgLevel2,#282a31);border-left-color:var(--colorBgLevel2,#282a31)}.c-tooltip__content{position:absolute;width:auto;margin:0 0 12px;padding:9px 12px;font-size:13px;font-weight:400;letter-spacing:normal;border-radius:3px;line-height:1.64286;visibility:hidden;opacity:0;transition:opacity .3s linear;z-index:1070;background:var(--colorBgLevel2,#282a31);color:var(--ids-theme-text-color,#fff);white-space:normal;text-transform:none}"]
3228
- }),
3229
- __metadata("design:paramtypes", [])
3230
- ], TooltipComponent);
3231
- return TooltipComponent;
3232
- }());
3233
-
3234
- var TreeTableComponent = /** @class */ (function () {
3235
- function TreeTableComponent() {
3236
- this.columns = [];
3237
- this.values = [];
3238
- this.checkboxSelection = true;
3239
- this.activeChange = new core.EventEmitter();
3240
- this.selectionChange = new core.EventEmitter();
3241
- this.addAction = new core.EventEmitter();
3242
- this.csvAction = new core.EventEmitter();
3243
- this.saveAction = new core.EventEmitter();
3244
- this.collapseAction = new core.EventEmitter();
3245
- this.removeAction = new core.EventEmitter();
3246
- this.unlinkAction = new core.EventEmitter();
3247
- this.groupEditAction = new core.EventEmitter();
3248
- this.groupAddAction = new core.EventEmitter();
3249
- this.rowIndex = 0;
3250
- this.isCollapse = true;
3251
- this._selection = null;
3252
- }
3253
- Object.defineProperty(TreeTableComponent.prototype, "selection", {
3254
- set: function (val) {
3255
- this._selection = val;
3256
- },
3257
- enumerable: true,
3258
- configurable: true
3259
- });
3260
- Object.defineProperty(TreeTableComponent.prototype, "selectionValue", {
3261
- get: function () {
3262
- return this._selection;
3263
- },
3264
- set: function (val) {
3265
- this._selection = val;
3266
- this.selectionChange.emit(val);
3267
- },
3268
- enumerable: true,
3269
- configurable: true
3270
- });
3271
- TreeTableComponent.prototype.isRowActive = function (row) {
3272
- return this.active && this.active.id === row.id;
3273
- };
3274
- TreeTableComponent.prototype.visibleColumns = function () {
3275
- return this.columns.filter(function (column) { return !column.isHidden; });
3276
- };
3277
- TreeTableComponent.prototype.columnsChange = function (data) {
3278
- data.column.isHidden = !data.event;
3279
- };
3280
- TreeTableComponent.prototype.ngAfterContentInit = function () {
3281
- var _this = this;
3282
- this.templates.forEach(function (item) {
3283
- switch (item.getType()) {
3284
- case 'caption':
3285
- _this.captionTemplate = item.template;
3286
- break;
3287
- case 'header':
3288
- _this.headerTemplate = item.template;
3289
- break;
3290
- case 'body':
3291
- _this.bodyTemplate = item.template;
3292
- break;
3293
- case 'value':
3294
- _this.valueTemplate = item.template;
3295
- break;
3296
- case 'loadingbody':
3297
- _this.loadingBodyTemplate = item.template;
3298
- break;
3299
- case 'footer':
3300
- _this.footerTemplate = item.template;
3301
- break;
3302
- case 'summary':
3303
- _this.summaryTemplate = item.template;
3304
- break;
3305
- case 'colgroup':
3306
- _this.colGroupTemplate = item.template;
3307
- break;
3308
- case 'rowexpansion':
3309
- _this.expandedRowTemplate = item.template;
3310
- break;
3311
- case 'frozenrows':
3312
- _this.frozenRowsTemplate = item.template;
3313
- break;
3314
- case 'frozenheader':
3315
- _this.frozenHeaderTemplate = item.template;
3316
- break;
3317
- case 'frozenbody':
3318
- _this.frozenBodyTemplate = item.template;
3319
- break;
3320
- case 'frozenfooter':
3321
- _this.frozenFooterTemplate = item.template;
3322
- break;
3323
- case 'frozencolgroup':
3324
- _this.frozenColGroupTemplate = item.template;
3325
- break;
3326
- case 'emptymessage':
3327
- _this.emptyMessageTemplate = item.template;
3328
- break;
3329
- case 'paginatorleft':
3330
- _this.paginatorLeftTemplate = item.template;
3331
- break;
3332
- case 'paginatorright':
3333
- _this.paginatorRightTemplate = item.template;
3334
- break;
3335
- }
3336
- });
3337
- };
3338
- TreeTableComponent.prototype.collapse = function (event, dt) {
3339
- var _this = this;
3340
- this.values.forEach(function (node) {
3341
- _this.toggleCollapse(node, _this.isCollapse);
3342
- });
3343
- this.isCollapse = !this.isCollapse;
3344
- dt.filterGlobal(this.searchText, 'contains');
3345
- };
3346
- TreeTableComponent.prototype.toggleCollapse = function (node, isCollapsed) {
3347
- var e_1, _a;
3348
- if (node.children) {
3349
- node.expanded = isCollapsed;
3350
- try {
3351
- for (var _b = __values(node.children), _c = _b.next(); !_c.done; _c = _b.next()) {
3352
- var cn = _c.value;
3353
- if (cn) {
3354
- this.toggleCollapse(cn, isCollapsed);
3355
- }
3356
- }
3357
- }
3358
- catch (e_1_1) { e_1 = { error: e_1_1 }; }
3359
- finally {
3360
- try {
3361
- if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
3362
- }
3363
- finally { if (e_1) throw e_1.error; }
3364
- }
3365
- }
3366
- };
3367
- __decorate([
3368
- core.Input(),
3369
- __metadata("design:type", Array)
3370
- ], TreeTableComponent.prototype, "columns", void 0);
3371
- __decorate([
3372
- core.Input(),
3373
- __metadata("design:type", Object)
3374
- ], TreeTableComponent.prototype, "values", void 0);
3375
- __decorate([
3376
- core.Input(),
3377
- __metadata("design:type", String)
3378
- ], TreeTableComponent.prototype, "scrollHeight", void 0);
3379
- __decorate([
3380
- core.Input(),
3381
- __metadata("design:type", Boolean)
3382
- ], TreeTableComponent.prototype, "scrollable", void 0);
3383
- __decorate([
3384
- core.Input(),
3385
- __metadata("design:type", String)
3386
- ], TreeTableComponent.prototype, "selectionMode", void 0);
3387
- __decorate([
3388
- core.Input(),
3389
- __metadata("design:type", String)
3390
- ], TreeTableComponent.prototype, "label", void 0);
3391
- __decorate([
3392
- core.Input(),
3393
- __metadata("design:type", String)
3394
- ], TreeTableComponent.prototype, "error", void 0);
3395
- __decorate([
3396
- core.Input(),
3397
- __metadata("design:type", String)
3398
- ], TreeTableComponent.prototype, "class", void 0);
3399
- __decorate([
3400
- core.Input(),
3401
- __metadata("design:type", Boolean)
3402
- ], TreeTableComponent.prototype, "required", void 0);
3403
- __decorate([
3404
- core.Input(),
3405
- __metadata("design:type", Object)
3406
- ], TreeTableComponent.prototype, "style", void 0);
3407
- __decorate([
3408
- core.Input(),
3409
- __metadata("design:type", Object)
3410
- ], TreeTableComponent.prototype, "toolbar", void 0);
3411
- __decorate([
3412
- core.Input(),
3413
- __metadata("design:type", Object)
3414
- ], TreeTableComponent.prototype, "checkboxSelection", void 0);
3415
- __decorate([
3416
- core.Input(),
3417
- __metadata("design:type", Object)
3418
- ], TreeTableComponent.prototype, "active", void 0);
3419
- __decorate([
3420
- core.Input(),
3421
- __metadata("design:type", Object)
3422
- ], TreeTableComponent.prototype, "sortField", void 0);
3423
- __decorate([
3424
- core.Input(),
3425
- __metadata("design:type", Object)
3426
- ], TreeTableComponent.prototype, "isAscending", void 0);
3427
- __decorate([
3428
- core.Input(),
3429
- __metadata("design:type", Object)
3430
- ], TreeTableComponent.prototype, "dataKey", void 0);
3431
- __decorate([
3432
- core.Output(),
3433
- __metadata("design:type", Object)
3434
- ], TreeTableComponent.prototype, "activeChange", void 0);
3435
- __decorate([
3436
- core.ContentChildren(InsparkTemplate),
3437
- __metadata("design:type", core.QueryList)
3438
- ], TreeTableComponent.prototype, "templates", void 0);
3439
- __decorate([
3440
- core.Output(),
3441
- __metadata("design:type", core.EventEmitter)
3442
- ], TreeTableComponent.prototype, "selectionChange", void 0);
3443
- __decorate([
3444
- core.Output(),
3445
- __metadata("design:type", core.EventEmitter)
3446
- ], TreeTableComponent.prototype, "addAction", void 0);
3447
- __decorate([
3448
- core.Output(),
3449
- __metadata("design:type", core.EventEmitter)
3450
- ], TreeTableComponent.prototype, "csvAction", void 0);
3451
- __decorate([
3452
- core.Output(),
3453
- __metadata("design:type", core.EventEmitter)
3454
- ], TreeTableComponent.prototype, "saveAction", void 0);
3455
- __decorate([
3456
- core.Output(),
3457
- __metadata("design:type", core.EventEmitter)
3458
- ], TreeTableComponent.prototype, "collapseAction", void 0);
3459
- __decorate([
3460
- core.Output(),
3461
- __metadata("design:type", core.EventEmitter)
3462
- ], TreeTableComponent.prototype, "removeAction", void 0);
3463
- __decorate([
3464
- core.Output(),
3465
- __metadata("design:type", core.EventEmitter)
3466
- ], TreeTableComponent.prototype, "unlinkAction", void 0);
3467
- __decorate([
3468
- core.Output(),
3469
- __metadata("design:type", core.EventEmitter)
3470
- ], TreeTableComponent.prototype, "groupEditAction", void 0);
3471
- __decorate([
3472
- core.Output(),
3473
- __metadata("design:type", core.EventEmitter)
3474
- ], TreeTableComponent.prototype, "groupAddAction", void 0);
3475
- __decorate([
3476
- core.Input(),
3477
- __metadata("design:type", Object),
3478
- __metadata("design:paramtypes", [Object])
3479
- ], TreeTableComponent.prototype, "selection", null);
3480
- TreeTableComponent = __decorate([
3481
- core.Component({
3482
- selector: 'in-tree-table',
3483
- template: "<p-treeTable #dt\n [(selection)]=\"selectionValue\"\n [class]=\"class\"\n [columns]=\"visibleColumns()\"\n [resizableColumns]=\"true\"\n [scrollHeight]=\"scrollHeight\"\n [scrollable]=\"scrollable\"\n [selectionMode]=\"selectionMode\"\n [sortField]=\"sortField || 'id'\"\n [sortOrder]=\"isAscending ? 1 : -1\"\n [style]=\"style\"\n [value]=\"values\"\n columnResizeMode=\"expand\"\n>\n <ng-template let-columns pTemplate=\"colgroup\">\n <colgroup>\n <col *ngIf=\"checkboxSelection\" style=\"width:44px;\">\n <col *ngFor=\"let col of visibleColumns()\" [style.width]=\"col.width ? col.width : '10px'\">\n </colgroup>\n </ng-template>\n <ng-template let-columns pTemplate=\"header\">\n <tr>\n <th *ngIf=\"checkboxSelection\">\n <p-treeTableHeaderCheckbox></p-treeTableHeaderCheckbox>\n </th>\n <th *ngFor=\"let col of columns; let i = index\" [ttSortableColumn]=\"col.field\" class=\"u-position-relative\"\n ttResizableColumn>\n <div class=\"ui-treetable-thead-title\" title=\"{{col.label | translate}}\">\n {{col.label | translate}}\n </div>\n <p-treeTableSortIcon [field]=\"col.field\" class=\"ui-sortable-column-buttons\"></p-treeTableSortIcon>\n </th>\n </tr>\n </ng-template>\n\n <ng-template let-columns=\"columns\" let-rowData=\"rowData\" let-rowNode pTemplate=\"body\">\n <tr [ngClass]=\"{row_active: isRowActive(rowData)}\" [ttSelectableRow]=\"rowNode\" class=\"row\">\n <td *ngIf=\"checkboxSelection\">\n <p-treeTableCheckbox [value]=\"rowNode\"></p-treeTableCheckbox>\n </td>\n <td (click)=\"activeChange.emit(rowData)\" *ngFor=\"let col of columns; let i = index\"\n class=\"_u-overflow-visible\">\n <div class=\"\" style=\"display: flex; flex-wrap: nowrap;\">\n <ng-template [ngIf]=\"i == 0\">\n <p-treeTableToggler [rowNode]=\"rowNode\" style=\"align-self: center;\"></p-treeTableToggler>\n </ng-template>\n <div [ngClass]=\"{ 'ui-treetable-tbody-content_has-toggler ': i == 0 }\"\n class=\"ui-treetable-tbody-content cell-content_hover\"\n style=\"flex-grow: 1;\"\n title=\"{{rowData | propertyValue: col.field}}\">\n <ng-container *ngIf=\"!valueTemplate\">\n <i *ngIf=\"rowData.icon && i == 0\" [ngClass]=\"rowData.icon\" class=\"u-margin-right-tiny\"></i>\n {{rowData | propertyValue: col.field}}\n </ng-container>\n\n <ng-container\n *ngTemplateOutlet=\"valueTemplate; context: {$implicit: { data: rowData, col: col}}\"></ng-container>\n </div>\n </div>\n </td>\n </tr>\n </ng-template>\n\n <ng-template *ngIf=\"toolbar\" pTemplate=\"caption\">\n\n <div class=\"o-grid o-grid_no-gutter\">\n <div class=\"c-tree-table__toolbar-content u-display-inline-flex\">\n <div class=\"c-form c-form_inline u-display-inline-block\">\n <form class=\"c-label\">\n <div class=\"input-wrapper u-margin-right-tiny\">\n <input #searchTextInput\n (input)=\"dt.filterGlobal($event.target.value, 'contains')\"\n [(ngModel)]=\"searchText\"\n [ngModelOptions]=\"{standalone: true}\"\n autofocus=\"\"\n class=\"search-box c-input c-input_small ng-pristine ng-valid ng-scope ng-empty ng-touched\"\n pInputText\n placeholder=\"{{('SHARED.SEARCH' | translate) + ':'}}\"\n required\n style=\"padding-right: 28px\"\n tabindex=\"1\"\n type=\"search\"\n >\n <button (click)=\"dt.filterGlobal($event.target.value, 'contains')\" class=\"button-reset\" type=\"reset\"\n [attr.title]=\"'Reset' | translate\">\n <i class=\"fa fa-close\"></i>\n </button>\n </div>\n </form>\n </div>\n <div class=\"c-btn c-btn_border-free c-btn_small\">\n <in-table-columns-multiselect (columnsChange)=\"columnsChange($event)\"\n [columns]=\"columns\"></in-table-columns-multiselect>\n </div>\n\n <button (click)=\"addAction.emit($event)\" *ngIf=\"toolbar.add\" [disabled]=\"toolbar.add.disabled\"\n class=\"c-btn c-btn_border-free c-btn_small\"\n >\n <i class=\"fa fa-plus\" [title]=\"toolbar.add.title || '\u0414\u043E\u0431\u0430\u0432\u0438\u0442\u044C'\"></i>\n </button>\n\n <button (click)=\"groupAddAction.emit($event)\" *ngIf=\"toolbar.groupAdd\" [disabled]=\"toolbar.groupAdd.disabled\"\n class=\"c-btn c-btn_border-free c-btn_small\"\n >\n <i class=\"fa fa-folder\" [title]=\"toolbar.groupAdd.title || '\u0414\u043E\u0431\u0430\u0432\u0438\u0442\u044C \u0433\u0440\u0443\u043F\u043F\u0443'\"></i>\n </button>\n\n\n <button (click)=\"saveAction.emit($event)\" *ngIf=\"toolbar.save\"\n [disabled]=\"toolbar.save.disabled\"\n class=\"c-btn c-btn_primary c-btn_small\"\n title=\"{{'Save' | translate}}\"\n >\n {{'Save' | translate}}\n </button>\n <button (click)=\"groupEditAction.emit($event)\" *ngIf=\"toolbar.groupEdit && toolbar.groupEdit.active\"\n [disabled]=\"toolbar.groupEdit.disabled\"\n class=\"c-btn c-btn_border-free c-btn_small\">\n <i class=\"fa fa-pencil-square-o\" title=\"{{'groupEdit' | translate}}\"></i>\n </button>\n <button (click)=\"removeAction.emit($event)\" *ngIf=\"toolbar.remove && toolbar.remove.active\"\n [disabled]=\"toolbar.remove.disabled\"\n class=\"c-btn c-btn_border-free c-btn_small\">\n <i class=\"fa fa-trash\" [title]=\"toolbar.remove?.title || '\u0423\u0434\u0430\u043B\u0438\u0442\u044C'\"></i>\n </button>\n <button (click)=\"unlinkAction.emit($event)\" *ngIf=\"toolbar.unlink\" [disabled]=\"toolbar.unlink.disabled\"\n class=\"c-btn c-btn_border-free c-btn_small\">\n <i class=\"fa fa-unlink\" title=\"{{'Detach tag from selected items' | translate}}\"></i>\n </button>\n <button (click)=\"csvAction.emit($event)\" *ngIf=\"toolbar.csv\" [disabled]=\"toolbar.csv.disabled\"\n class=\"c-btn c-btn_border-free c-btn_small\"\n >\n <i class=\"fas fa-file-csv\" title=\"\u0421\u043E\u0445\u0440\u0430\u043D\u0438\u0442\u044C \u043A\u0430\u043A CSV\"></i>\n </button>\n <button *ngIf=\"toolbar.collapse\"\n class=\"c-btn c-btn_small c-btn_svg-24 c-icon c-icon_svg c-icon_svg-24 c-btn_border-free\"\n (click)=\"collapse($event, dt)\"\n title=\"{{(isCollapse ? 'Expand all' : 'Collapse all') | translate}}\">\n <svg *ngIf=\"isCollapse\" xmlns=\"http://www.w3.org/2000/svg\" width=\"24\" height=\"24\" fill=\"currentColor\" viewBox=\"0 0 24 24\">\n <path d=\"M20 2H4v2h16V2zM4 20v2h16v-2H4zM12 5l5 6H7l5-6zM17 13l-5 6-5-6h10z\"/>\n </svg>\n <svg *ngIf=\"!isCollapse\" xmlns=\"http://www.w3.org/2000/svg\" width=\"24\" height=\"24\" fill=\"currentColor\" viewBox=\"0 0 24 24\">\n <path fill-rule=\"evenodd\" d=\"M17 3l-5 6-5-6h10zM4 13v-2h16v2H4zm8 2l5 6H7l5-6z\" clip-rule=\"evenodd\"/>\n </svg>\n </button>\n </div>\n </div>\n </ng-template>\n</p-treeTable>\n",
3484
- entryComponents: [],
3485
- styles: ["@charset \"UTF-8\";.ui-sortable-column{cursor:pointer;position:relative}.ui-sortable-column-buttons{position:absolute;top:0;right:0;width:18px;height:100%;display:inline-flex;align-items:center;z-index:10000}.ui-sortable-column-buttons>a{position:absolute;top:50%;right:0;left:0;transform:translateY(-50%)}.u-overflow-visible{overflow:visible!important}.button-reset{display:flex;align-items:center;position:absolute;right:6px;top:5px;padding:6px;font-size:15px;border:none;outline:0;cursor:pointer;color:var(--colorTextMuted);background-color:transparent}.button-reset:hover{color:var(--colorIcon)}.input-wrapper{position:relative;display:flex;align-items:baseline}.c-input:not(:valid)~.button-reset{display:none}"]
3486
- })
3487
- ], TreeTableComponent);
3488
- return TreeTableComponent;
3489
- }());
3490
- var TreeTableComponentModule = /** @class */ (function () {
3491
- function TreeTableComponentModule() {
3492
- }
3493
- TreeTableComponentModule = __decorate([
3494
- core.NgModule({
3495
- imports: [common.CommonModule, primeng.TreeTableModule, PipesModule, core$1.TranslateModule, forms.FormsModule, TableComponentModule],
3496
- exports: [TreeTableComponent],
3497
- declarations: [TreeTableComponent]
3498
- })
3499
- ], TreeTableComponentModule);
3500
- return TreeTableComponentModule;
3501
- }());
3502
-
3503
- var RadiobuttonComponent = /** @class */ (function () {
3504
- function RadiobuttonComponent() {
3505
- this.name = null;
3506
- this.label = null;
3507
- this.required = false;
3508
- this.error = null;
3509
- this.placeholder = '';
3510
- this.id = null;
3511
- this.change = new core.EventEmitter();
3512
- }
3513
- RadiobuttonComponent.prototype.onChangeEvent = function (value) {
3514
- this.change.next({ name: this.name, value: value });
3515
- };
3516
- __decorate([
3517
- core.Input(),
3518
- __metadata("design:type", Object)
3519
- ], RadiobuttonComponent.prototype, "name", void 0);
3520
- __decorate([
3521
- core.Input(),
3522
- __metadata("design:type", Object)
3523
- ], RadiobuttonComponent.prototype, "label", void 0);
3524
- __decorate([
3525
- core.Input(),
3526
- __metadata("design:type", Object)
3527
- ], RadiobuttonComponent.prototype, "required", void 0);
3528
- __decorate([
3529
- core.Input(),
3530
- __metadata("design:type", Object)
3531
- ], RadiobuttonComponent.prototype, "error", void 0);
3532
- __decorate([
3533
- core.Input(),
3534
- __metadata("design:type", Object)
3535
- ], RadiobuttonComponent.prototype, "placeholder", void 0);
3536
- __decorate([
3537
- core.Input(),
3538
- __metadata("design:type", Object)
3539
- ], RadiobuttonComponent.prototype, "id", void 0);
3540
- __decorate([
3541
- core.Input(),
3542
- __metadata("design:type", Boolean)
3543
- ], RadiobuttonComponent.prototype, "disabled", void 0);
3544
- __decorate([
3545
- core.Input(),
3546
- __metadata("design:type", Object)
3547
- ], RadiobuttonComponent.prototype, "value", void 0);
3548
- __decorate([
3549
- core.Input(),
3550
- __metadata("design:type", Object)
3551
- ], RadiobuttonComponent.prototype, "values", void 0);
3552
- __decorate([
3553
- core.Input(),
3554
- __metadata("design:type", Object)
3555
- ], RadiobuttonComponent.prototype, "keyLabel", void 0);
3556
- __decorate([
3557
- core.Input(),
3558
- __metadata("design:type", Object)
3559
- ], RadiobuttonComponent.prototype, "item", void 0);
3560
- __decorate([
3561
- core.Output(),
3562
- __metadata("design:type", Object)
3563
- ], RadiobuttonComponent.prototype, "change", void 0);
3564
- RadiobuttonComponent = __decorate([
3565
- core.Component({
3566
- selector: 'in-radiobutton',
3567
- template: "<ng-container *ngFor=\"let element of values\">\n <p-radioButton\n class=\"u-margin-left-tiny u-vertical-align-middle field_{{name}}\"\n (onClick)=\"onChangeEvent(element)\"\n [id]=\"element[keyLabel]\"\n [(ngModel)]=\"item\"\n [name]=\"name\"\n [value]=\"element.id\"\n [disabled]=\"disabled\"\n [label]=\"element[keyLabel]\">\n </p-radioButton>\n</ng-container>\n",
3568
- changeDetection: core.ChangeDetectionStrategy.OnPush,
3569
- styles: [""]
3570
- }),
3571
- __metadata("design:paramtypes", [])
3572
- ], RadiobuttonComponent);
3573
- return RadiobuttonComponent;
3574
- }());
3575
-
3576
- var SelectListComponent = /** @class */ (function () {
3577
- function SelectListComponent(ref, config, messageService, router) {
3578
- this.ref = ref;
3579
- this.config = config;
3580
- this.messageService = messageService;
3581
- this.router = router;
3582
- this.options = null;
3583
- this.isShowSpinner = false;
3584
- }
3585
- SelectListComponent.prototype.ngOnInit = function () {
3586
- this.options = this.config.data.command.options.map(function (item) {
3587
- return { value: item, checked: false };
3588
- });
3589
- this.selected = Array(this.options.length).fill(false);
3590
- };
3591
- SelectListComponent.prototype.closeModal = function (val) {
3592
- if (val === void 0) { val = null; }
3593
- this.ref.close(val);
3594
- };
3595
- SelectListComponent.prototype.applySelection = function () {
3596
- if (!this.selected) {
3597
- this.messageService.message(gettext('Select object'));
3598
- return;
3599
- }
3600
- else {
3601
- this.closeModal({ selected: this.options.filter(function (o) { return o.checked; }) });
3602
- }
3603
- };
3604
- SelectListComponent.prototype.select = function (i) {
3605
- this.options[i].checked = !this.options[i].checked;
3606
- };
3607
- SelectListComponent.prototype.highlight = function (value, text) {
3608
- var regex = new RegExp('(' + text + ')', 'gi');
3609
- return value.replace(regex, '<span class="u-text-highlight">$1</span>');
3610
- };
3611
- SelectListComponent.ctorParameters = function () { return [
3612
- { type: api.DynamicDialogRef },
3613
- { type: api.DynamicDialogConfig },
3614
- { type: InsparkMessageService },
3615
- { type: router.Router }
3616
- ]; };
3617
- SelectListComponent = __decorate([
3618
- core.Component({
3619
- selector: 'app-select-list',
3620
- template: "<div class=\"c-panel__heading-title h4\">\n {{'Select objects for which to execute the command' | translate}}\n</div>\n<span *ngIf=\"isShowSpinner\"><ng-container *ngTemplateOutlet=\"spinner\"></ng-container></span>\n<div class=\"container\">\n <div class=\"c-form-group type_treeblock\">\n <div style=\"overflow: hidden; width: 100%; white-space: nowrap; display: inline-flex;\" *ngFor=\"let item of options; let i = index\">\n <span class=\"c-label c-label__content\" style=\"width: 100px; min-height: 30px;\">{{item.value}}</span>\n <input class=\"c-checkbox__input\" type=\"checkbox\" [checked]=\"options[i].checked\" >\n <i class=\"ui-chkbox-box c-checkbox__icon\" (click)=\"select(i)\"></i>\n </div>\n\n </div>\n <div class=\"buttons\">\n <in-component-container>\n <in-button id=\"close\" (click)=\"closeModal()\"\n label=\"{{'Cancel' | translate}}\"></in-button>\n <in-button id=\"edit\" (click)=\"applySelection()\" type=\"submit\"\n label=\"{{'Apply' | translate}}\"\n color=\"primary\" [disabled]=\"\" [title]=\"'Select an action' | translate\"></in-button>\n </in-component-container>\n </div>\n</div>\n\n<ng-template #spinner><span class=\"c-spinner\">\n <i class=\"fa fa-circle-o-notch fa-spin \"></i>\n</span></ng-template>\n",
3621
- styles: [".buttons{text-align:right}.buttons p-button{margin-left:8px}.container{padding:12px}:host ::ng-deep .c-select_block{position:relative;left:10px;width:30%}:host ::ng-deep .c-input_small{width:50%}:host ::ng-deep .my-tree{width:100%;display:inline-block;position:relative}:host ::ng-deep .my-tree .c-inputtext{width:500px}"]
3622
- }),
3623
- __metadata("design:paramtypes", [api.DynamicDialogRef,
3624
- api.DynamicDialogConfig,
3625
- InsparkMessageService,
3626
- router.Router])
3627
- ], SelectListComponent);
3628
- return SelectListComponent;
3629
- }());
3630
-
3631
- var ObjectTreeComponent = /** @class */ (function () {
3632
- function ObjectTreeComponent() {
3633
- }
3634
- ObjectTreeComponent.prototype.ngOnInit = function () {
3635
- };
3636
- ObjectTreeComponent = __decorate([
3637
- core.Component({
3638
- selector: 'in-object-tree',
3639
- template: "<p>object-tree works!</p>\n",
3640
- changeDetection: core.ChangeDetectionStrategy.OnPush,
3641
- styles: [""]
3642
- }),
3643
- __metadata("design:paramtypes", [])
3644
- ], ObjectTreeComponent);
3645
- return ObjectTreeComponent;
3646
- }());
3647
-
3648
- var ModalInputTextComponent = /** @class */ (function () {
3649
- function ModalInputTextComponent(ref, config, translateService, messageService, router) {
3650
- this.ref = ref;
3651
- this.config = config;
3652
- this.translateService = translateService;
3653
- this.messageService = messageService;
3654
- this.router = router;
3655
- this.options = null;
3656
- this.isShowSpinner = false;
3657
- this.maxLength = 0;
3658
- }
3659
- ModalInputTextComponent.prototype.ngOnInit = function () {
3660
- this.param = this.config.data.command.param;
3661
- this.options = this.config.data.command.options.map(function (item) {
3662
- return { value: item, checked: false };
3663
- });
3664
- if (this.options && this.options.length > 0) {
3665
- this.calculateWidth();
3666
- }
3667
- this.selected = Array(this.options.length).fill(false);
3668
- };
3669
- ModalInputTextComponent.prototype.closeModal = function (val) {
3670
- if (val === void 0) { val = null; }
3671
- this.ref.close(val);
3672
- };
3673
- ModalInputTextComponent.prototype.applySelection = function () {
3674
- if (!this.selected) {
3675
- this.messageService.message(gettext('Select object'));
3676
- return;
3677
- }
3678
- else {
3679
- this.closeModal({
3680
- selected: this.options.filter(function (o) { return o.checked; }),
3681
- param: this.param ? this.param.value : undefined
3682
- });
3683
- }
3684
- };
3685
- ModalInputTextComponent.prototype.select = function (i) {
3686
- this.options[i].checked = !this.options[i].checked;
3687
- };
3688
- ModalInputTextComponent.prototype.checkSelected = function () {
3689
- if (this.param) {
3690
- return !this.param.value;
3691
- }
3692
- else if (this.options) {
3693
- return this.options.filter(function (opt) { return opt.checked; }).length === 0;
3694
- }
3695
- return false;
3696
- };
3697
- ModalInputTextComponent.prototype.highlight = function (value, text) {
3698
- var regex = new RegExp('(' + text + ')', 'gi');
3699
- return value.replace(regex, '<span class="u-text-highlight">$1</span>');
3700
- };
3701
- ModalInputTextComponent.prototype.calculateWidth = function () {
3702
- var _this = this;
3703
- this.options.forEach(function (opt) {
3704
- if (opt.value.length * 7 > _this.maxLength) {
3705
- _this.maxLength = opt.value.length * 7 + 100;
3706
- }
3707
- });
3708
- };
3709
- ModalInputTextComponent.prototype.translate = function (str) {
3710
- var _this = this;
3711
- var splited = str.split('\n');
3712
- var translated = '';
3713
- splited.forEach(function (s) { return translated += _this.translateService.instant(s) + '\n'; });
3714
- return translated;
3715
- };
3716
- ModalInputTextComponent.ctorParameters = function () { return [
3717
- { type: api.DynamicDialogRef },
3718
- { type: api.DynamicDialogConfig },
3719
- { type: core$1.TranslateService },
3720
- { type: InsparkMessageService },
3721
- { type: router.Router }
3722
- ]; };
3723
- ModalInputTextComponent = __decorate([
3724
- core.Component({
3725
- selector: 'app-modal-input-text',
3726
- template: "<div class=\"c-panel__heading-title h4\">\n {{'Enter parameter value' | translate}}\n</div>\n<span *ngIf=\"isShowSpinner\"><ng-container *ngTemplateOutlet=\"spinner\"></ng-container></span>\n<div class=\"container\">\n <div *ngIf = this.options class=\"c-form-group type_treeblock\">\n <div *ngFor=\"let item of options; let i = index\">\n <label class=\"c-label type_bool\" style=\"overflow: hidden; width: 100%; white-space: nowrap; display: inline-flex;\">\n <span class=\"c-onecolumn-form_label__content\" [style.width]=\"maxLength + 'px'\" style=\"position: relative; top: 5px; min-height: 30px;\">\n {{item.value}}\n </span>\n <span class=\"c-onecolumn-form_label__content field_{{item.value}}\" style=\"min-height: 30px;\">\n <input class=\"c-checkbox__input field_{{item.value}}\" type=\"checkbox\" [checked]=\"options[i].checked\" (click)=\"select(i)\">\n <i class=\"ui-chkbox-box c-checkbox__icon\" ></i>\n </span>\n </label>\n </div>\n </div>\n\n <div *ngIf=this.param class=\"o-grid o-grid_wrap\">\n <div class=\"o-grid__cell o-grid__cell_width-100 o-grid__cell_width-100@medium o-grid__cell_width-100@large\">\n <div class=\"c-form-group\">\n <label class=\"c-label type_varchars\">\n <span class=\"c-label__content\" style=\"width: 500px;white-space: pre-line\">{{translate(param.title)}}</span>\n <input [(ngModel)]=\"param.value\" class=\"c-input c-input_block field_{{config.data.command.label}}\" type=\"text\" maxlength=\"60\">\n </label>\n </div>\n </div>\n </div>\n <div class=\"buttons\">\n <in-component-container>\n <in-button id=\"close\" (click)=\"closeModal()\"\n label=\"{{'Cancel' | translate}}\"\n [name]=\"'Cancel'\"\n ></in-button>\n <in-button id=\"edit\" (click)=\"applySelection()\" type=\"submit\"\n label=\"{{'Apply' | translate}}\"\n [name]=\"'Apply'\"\n color=\"primary\" [disabled]=\"checkSelected()\" [title]=\"'Select an action' | translate\"></in-button>\n </in-component-container>\n </div>\n</div>\n\n<ng-template #spinner><span class=\"c-spinner\">\n <i class=\"fa fa-circle-o-notch fa-spin \"></i>\n</span></ng-template>\n",
3727
- styles: [".buttons{text-align:right}.buttons p-button{margin-left:8px}.container{padding:12px}:host ::ng-deep .c-select_block{position:relative;left:10px;width:30%}:host ::ng-deep .c-input_small{width:50%}:host ::ng-deep .my-tree{width:100%;display:inline-block;position:relative}:host ::ng-deep .my-tree .c-inputtext{width:500px}"]
3728
- }),
3729
- __metadata("design:paramtypes", [api.DynamicDialogRef,
3730
- api.DynamicDialogConfig,
3731
- core$1.TranslateService,
3732
- InsparkMessageService,
3733
- router.Router])
3734
- ], ModalInputTextComponent);
3735
- return ModalInputTextComponent;
3736
- }());
3737
-
3738
- var ContentToggleComponent = /** @class */ (function () {
3739
- function ContentToggleComponent(cdr) {
3740
- this.cdr = cdr;
3741
- this.defaultOpen = true;
3742
- this.isOpen = this.defaultOpen;
3743
- this.icon = null;
3744
- this.manualArrow = true;
3745
- this.toggle = new core.EventEmitter();
3746
- }
3747
- ContentToggleComponent.prototype.ngOnInit = function () {
3748
- this.isOpen = this.defaultOpen;
3749
- };
3750
- ContentToggleComponent.prototype.toggleOpen = function (e) {
3751
- // Получаем родительский элемент div
3752
- var parentElement = this.elementButtons.nativeElement;
3753
- // Проверяем, входит ли цель события в родительский элемент
3754
- if (!parentElement.contains(e.target) || e.target === parentElement) {
3755
- this.isOpen = !this.isOpen;
3756
- this.toggle.emit(this.isOpen);
3757
- this.cdr.detectChanges();
3758
- }
3759
- };
3760
- ContentToggleComponent.ctorParameters = function () { return [
3761
- { type: core.ChangeDetectorRef }
3762
- ]; };
3763
- __decorate([
3764
- core.Input(),
3765
- __metadata("design:type", Object)
3766
- ], ContentToggleComponent.prototype, "label", void 0);
3767
- __decorate([
3768
- core.Input(),
3769
- __metadata("design:type", Boolean)
3770
- ], ContentToggleComponent.prototype, "defaultOpen", void 0);
3771
- __decorate([
3772
- core.Input(),
3773
- __metadata("design:type", Object)
3774
- ], ContentToggleComponent.prototype, "isOpen", void 0);
3775
- __decorate([
3776
- core.Input(),
3777
- __metadata("design:type", String)
3778
- ], ContentToggleComponent.prototype, "icon", void 0);
3779
- __decorate([
3780
- core.Input(),
3781
- __metadata("design:type", Boolean)
3782
- ], ContentToggleComponent.prototype, "manualArrow", void 0);
3783
- __decorate([
3784
- core.Output(),
3785
- __metadata("design:type", core.EventEmitter)
3786
- ], ContentToggleComponent.prototype, "toggle", void 0);
3787
- __decorate([
3788
- core.ViewChild('buttons', { static: true }),
3789
- __metadata("design:type", core.ElementRef)
3790
- ], ContentToggleComponent.prototype, "elementButtons", void 0);
3791
- ContentToggleComponent = __decorate([
3792
- core.Component({
3793
- selector: 'in-content-toggle',
3794
- template: "<div class=\"block\" (click)=\"toggleOpen($event)\" tabIndex=\"1\">\n <span [ngClass]=\"{arrow: true, close: !isOpen}\">\n <in-svg *ngIf=\"manualArrow\" [src]=\"'arrow-down.svg'\" width=\"48px\" height=\"48px\"></in-svg>\n <ng-content select=\"[arrow]\"></ng-content>\n </span>\n <span class=\"label\">\n <in-svg *ngIf=\"icon\" class=\"label-icon\" [src]=\"icon\"></in-svg>\n {{label}}\n </span>\n <span class=\"counter\">\n <ng-content select=\"[header]\"></ng-content>\n </span>\n <div class=\"buttons\" #buttons>\n <ng-content select=\"[buttons]\"></ng-content>\n </div>\n</div>\n<div class=\"container\" *ngIf=\"isOpen\">\n <ng-content select=\"[body]\"></ng-content>\n</div>\n",
3795
- styles: ["@charset \"UTF-8\";.block{font-size:12px;text-transform:uppercase;cursor:pointer;display:flex;white-space:nowrap}.block .buttons{flex:1;display:flex;justify-content:flex-end;align-items:center;-webkit-user-select:none;-moz-user-select:none;user-select:none}.block:hover{background:var(--colorBgLevel2)}.block>span{display:inline-block;margin-right:4px}.block .label{margin-right:8px;display:flex;align-items:center;overflow:hidden;text-overflow:ellipsis}.block .counter{display:flex;align-items:center;padding-right:8px}.block .arrow{margin-right:0}.block .arrow.close{transform:rotate(-90deg)}.label-icon{margin-right:4px;width:16px;height:16px}"]
3796
- }),
3797
- __metadata("design:paramtypes", [core.ChangeDetectorRef])
3798
- ], ContentToggleComponent);
3799
- return ContentToggleComponent;
3800
- }());
3801
-
3802
- var InputGroupComponent = /** @class */ (function () {
3803
- function InputGroupComponent() {
3804
- this.name = null;
3805
- this.measureunit = null;
3806
- this.autocomplete = true;
3807
- this.label = null;
3808
- this.required = false;
3809
- this.error = null;
3810
- this.size = 100000;
3811
- this.maxlength = 100000;
3812
- this.width = 'auto';
3813
- this.placeholder = '';
3814
- this.id = null;
3815
- this.testId = null;
3816
- this.opacity = true;
3817
- this.shadow = false;
3818
- this.isEditMode = true;
3819
- this.focus = new core.EventEmitter();
3820
- this.blur = new core.EventEmitter();
3821
- this.updateValue = new core.EventEmitter();
3822
- this.disableEditableView = new core.EventEmitter();
3823
- this.validators = [/^-?\d*\.?\d*$/];
3824
- this.isEditable = true;
3825
- this.propagateChange = function (_) {
3826
- };
3827
- }
3828
- InputGroupComponent_1 = InputGroupComponent;
3829
- InputGroupComponent.prototype.ngOnInit = function () {
3830
- this._value = this.value;
3831
- };
3832
- /**
3833
- * Write form value to the DOM element (model => view)
3834
- */
3835
- InputGroupComponent.prototype.writeValue = function (value) {
3836
- this.value = value ? value : this.name;
3837
- this._value = this.value;
3838
- };
3839
- /**
3840
- * Write form disabled state to the DOM element (model => view)
3841
- */
3842
- InputGroupComponent.prototype.setDisabledState = function (isDisabled) {
3843
- this.disabled = isDisabled;
3844
- };
3845
- /**
3846
- * Update form when DOM element value changes (view => model)
3847
- */
3848
- InputGroupComponent.prototype.registerOnChange = function (fn) {
3849
- // Store the provided function as an internal method.
3850
- this.propagateChange = fn;
3851
- };
3852
- /**
3853
- * Update form when DOM element is blurred (view => model)
3854
- */
3855
- InputGroupComponent.prototype.registerOnTouched = function (fn) {
3856
- // Store the provided function as an internal method.
3857
- this.onTouched = fn;
3858
- };
3859
- InputGroupComponent.prototype.onChange = function (_) {
3860
- this.propagateChange(this.value);
3861
- };
3862
- InputGroupComponent.prototype.onTouched = function () {
3863
- };
3864
- InputGroupComponent.prototype.cancel = function () {
3865
- this.isEditable = false;
3866
- this.disableEditableView.emit(false);
3867
- this.value = this._value;
3868
- };
3869
- InputGroupComponent.prototype.numberOnly = function (event) {
3870
- if (event.keyCode === 8) {
3871
- return true;
3872
- }
3873
- var test = '';
3874
- if (this.value) {
3875
- test = this.value + event.key;
3876
- }
3877
- else {
3878
- test = event.key;
3879
- }
3880
- return this.validators[0].test(test);
3881
- };
3882
- InputGroupComponent.prototype.changeEditMode = function () {
3883
- this.isEditable = !this.isEditable;
3884
- };
3885
- //
3886
- // disableEditableView() {
3887
- // this.isEditableView.emit(false);
3888
- // }
3889
- InputGroupComponent.prototype.changeValue = function (value) {
3890
- this.value = value;
3891
- this._value = this.value;
3892
- // this.isEditable = false;
3893
- this.updateValue.emit(value);
3894
- this.disableEditableView.emit(false);
3895
- };
3896
- InputGroupComponent.prototype.isApplyDisabled = function () {
3897
- return this.value != null ? false : true;
3898
- };
3899
- var InputGroupComponent_1;
3900
- __decorate([
3901
- core.Input(),
3902
- __metadata("design:type", Object)
3903
- ], InputGroupComponent.prototype, "name", void 0);
3904
- __decorate([
3905
- core.Input(),
3906
- __metadata("design:type", Object)
3907
- ], InputGroupComponent.prototype, "measureunit", void 0);
3908
- __decorate([
3909
- core.Input(),
3910
- __metadata("design:type", Object)
3911
- ], InputGroupComponent.prototype, "autocomplete", void 0);
3912
- __decorate([
3913
- core.Input(),
3914
- __metadata("design:type", Object)
3915
- ], InputGroupComponent.prototype, "label", void 0);
3916
- __decorate([
3917
- core.Input(),
3918
- __metadata("design:type", Object)
3919
- ], InputGroupComponent.prototype, "required", void 0);
3920
- __decorate([
3921
- core.Input(),
3922
- __metadata("design:type", Object)
3923
- ], InputGroupComponent.prototype, "error", void 0);
3924
- __decorate([
3925
- core.Input(),
3926
- __metadata("design:type", Object)
3927
- ], InputGroupComponent.prototype, "size", void 0);
3928
- __decorate([
3929
- core.Input(),
3930
- __metadata("design:type", Object)
3931
- ], InputGroupComponent.prototype, "maxlength", void 0);
3932
- __decorate([
3933
- core.Input(),
3934
- __metadata("design:type", Object)
3935
- ], InputGroupComponent.prototype, "width", void 0);
3936
- __decorate([
3937
- core.Input(),
3938
- __metadata("design:type", Object)
3939
- ], InputGroupComponent.prototype, "placeholder", void 0);
3940
- __decorate([
3941
- core.Input(),
3942
- __metadata("design:type", Object)
3943
- ], InputGroupComponent.prototype, "id", void 0);
3944
- __decorate([
3945
- core.Input(),
3946
- __metadata("design:type", Object)
3947
- ], InputGroupComponent.prototype, "testId", void 0);
3948
- __decorate([
3949
- core.Input(),
3950
- __metadata("design:type", Boolean)
3951
- ], InputGroupComponent.prototype, "disabled", void 0);
3952
- __decorate([
3953
- core.Input(),
3954
- __metadata("design:type", Object)
3955
- ], InputGroupComponent.prototype, "opacity", void 0);
3956
- __decorate([
3957
- core.Input(),
3958
- __metadata("design:type", Object)
3959
- ], InputGroupComponent.prototype, "shadow", void 0);
3960
- __decorate([
3961
- core.Input(),
3962
- __metadata("design:type", Object)
3963
- ], InputGroupComponent.prototype, "isEditMode", void 0);
3964
- __decorate([
3965
- core.Output(),
3966
- __metadata("design:type", core.EventEmitter)
3967
- ], InputGroupComponent.prototype, "focus", void 0);
3968
- __decorate([
3969
- core.Output(),
3970
- __metadata("design:type", core.EventEmitter)
3971
- ], InputGroupComponent.prototype, "blur", void 0);
3972
- __decorate([
3973
- core.Output(),
3974
- __metadata("design:type", core.EventEmitter)
3975
- ], InputGroupComponent.prototype, "updateValue", void 0);
3976
- __decorate([
3977
- core.Output(),
3978
- __metadata("design:type", core.EventEmitter)
3979
- ], InputGroupComponent.prototype, "disableEditableView", void 0);
3980
- InputGroupComponent = InputGroupComponent_1 = __decorate([
3981
- core.Component({
3982
- selector: 'in-input-group',
3983
- template: "<label class=\"label type_varchars\">\n <div class=\"ui-inputgroup\">\n <span class=\"ui-inputgroup-addon ui-inputgroup-addon_trancated\" title=\"{{measureunit}}\">\n <span class=\"ui-inputgroup-addon__content\">{{measureunit}}</span>\n </span>\n <input (focus)=\"this.focus.emit($event)\"\n (keydown)=\"numberOnly($event)\"\n [(ngModel)]=\"value\"\n [autocomplete]=\"autocomplete? 'on':'off'\"\n [disabled]=\"disabled || !isEditable\"\n [id]=\"id\"\n [maxlength]=\"30\"\n [ngStyle]=\"{textAlign: 'left', width: '100%'}\"\n [placeholder]=\"placeholder\"\n [required]=\"required\"\n [size]=\"size\"\n class=\"ui-inputtext c-input c-input_large field_{{id}}\"\n type=\"text\"/>\n <in-button (click)=\"changeValue(value)\"\n [color]=\"'primary'\"\n [disabled]=\"isApplyDisabled()\"\n [isIconOnly]=\"true\"\n [label]=\"\"\n [name]=\"'apply'\"\n [size]=\"'tiny'\"\n [title]=\"'Apply' | translate\"\n icon=\"fa fa-check\"></in-button>\n <in-button (click)=\"cancel()\"\n [isIconOnly]=\"true\"\n [label]=\"\"\n [name]=\"'cancel'\"\n [size]=\"'tiny'\"\n [title]=\"'Cancel' | translate\"\n color=\"transparent\"\n icon=\"fa fa-times\"></in-button>\n </div>\n\n</label>\n\n<!--<div *ngIf=\"!disabled\" class=\"button\">-->\n<!-- <in-button (click)=\"changeValue(value)\" [color]=\"'primary'\"-->\n<!-- [disabled]=\"isApplyDisabled()\"-->\n<!-- [isIconOnly]=\"true\"-->\n<!-- [label]=\"\"-->\n<!-- [name]=\"'apply'\"-->\n<!-- [ngStyle]=\"{'font-size':'1px', 'display': 'inline-block', 'line-height': '2px', position: 'relative', left: '70px',-->\n<!-- opacity: !isEditable ? '0' : '1',-->\n<!-- visibility: !isEditable ? 'hidden' : 'visible'-->\n<!-- }\"-->\n<!-- [size]=\"'tiny'\"-->\n<!-- [title]=\"'Apply' | translate\" color=\"transparent\" icon=\"fa fa-check\"></in-button>-->\n<!-- <in-button (click)=\"cancel()\" [isIconOnly]=\"true\" [label]=\"\"-->\n<!-- [name]=\"'cancel'\"-->\n<!-- [ngStyle]=\"{'font-size':'1px', 'display': 'inline-block', 'line-height': '2px', position: 'relative', left: '90px',-->\n<!-- opacity: !isEditable ? '0' : '1',-->\n<!-- visibility: !isEditable ? 'hidden' : 'visible'-->\n<!-- }\"-->\n<!-- [size]=\"'tiny'\"-->\n<!-- [title]=\"'Cancel' | translate\" color=\"transparent\" icon=\"fa fa-times\"></in-button>-->\n<!-- <in-button (click)=\"changeEditMode()\" [isIconOnly]=\"true\" [label]=\"\"-->\n<!-- [ngStyle]=\"{'font-size':'1px',-->\n<!-- 'display': 'inline-block',-->\n<!-- 'line-height': '2px',-->\n<!-- position: 'relative',-->\n<!-- left: '80px',-->\n<!-- top: '2px',-->\n<!-- opacity: isEditable ? '0' : '1',-->\n<!-- visibility: isEditable ? 'hidden' : 'visible'-->\n<!-- }\"-->\n<!-- [size]=\"'tiny'\"-->\n<!-- [title]=\"'Edit' | translate\"-->\n<!-- color=\"transparent\" icon=\"fa fa-pencil\" name=\"edit\"></in-button>-->\n<!--</div>-->\n\n",
3984
- providers: [
3985
- {
3986
- provide: forms.NG_VALUE_ACCESSOR,
3987
- useExisting: core.forwardRef(function () { return InputGroupComponent_1; }),
3988
- multi: true,
3989
- }
3990
- ],
3991
- styles: [""]
3992
- })
3993
- ], InputGroupComponent);
3994
- return InputGroupComponent;
3995
- }());
3996
-
3997
- var AutoCompleteComponent = /** @class */ (function (_super) {
3998
- __extends(AutoCompleteComponent, _super);
3999
- function AutoCompleteComponent() {
4000
- var _this = _super !== null && _super.apply(this, arguments) || this;
4001
- _this.minLength = 1;
4002
- _this.delay = 300;
4003
- _this.type = 'text';
4004
- _this.autoZIndex = true;
4005
- _this.baseZIndex = 0;
4006
- _this.dropdownIcon = "pi pi-caret-down";
4007
- _this.unique = true;
4008
- _this.completeMethod = new core.EventEmitter();
4009
- _this.onSelect = new core.EventEmitter();
4010
- _this.onUnselect = new core.EventEmitter();
4011
- _this.onFocus = new core.EventEmitter();
4012
- _this.onBlur = new core.EventEmitter();
4013
- _this.onDropdownClick = new core.EventEmitter();
4014
- _this.onClear = new core.EventEmitter();
4015
- _this.onKeyUp = new core.EventEmitter();
4016
- _this.scrollHeight = '200px';
4017
- _this.dropdownMode = 'blank';
4018
- _this.immutable = true;
4019
- _this.showTransitionOptions = '225ms ease-out';
4020
- _this.hideTransitionOptions = '195ms ease-in';
4021
- _this.autocomplete = 'off';
4022
- return _this;
4023
- }
4024
- AutoCompleteComponent_1 = AutoCompleteComponent;
4025
- AutoCompleteComponent.prototype.ngAfterContentInit = function () {
4026
- var _this = this;
4027
- this.templates.forEach(function (item) {
4028
- switch (item.getType()) {
4029
- case 'item':
4030
- _this.itemTemplate = item.template;
4031
- break;
4032
- case 'selectedItem':
4033
- _this.selectedItemTemplate = item.template;
4034
- break;
4035
- default:
4036
- _this.itemTemplate = item.template;
4037
- break;
4038
- }
4039
- });
4040
- };
4041
- var AutoCompleteComponent_1;
4042
- __decorate([
4043
- core.Input(),
4044
- __metadata("design:type", Number)
4045
- ], AutoCompleteComponent.prototype, "minLength", void 0);
4046
- __decorate([
4047
- core.Input(),
4048
- __metadata("design:type", Number)
4049
- ], AutoCompleteComponent.prototype, "delay", void 0);
4050
- __decorate([
4051
- core.Input(),
4052
- __metadata("design:type", Object)
4053
- ], AutoCompleteComponent.prototype, "style", void 0);
4054
- __decorate([
4055
- core.Input(),
4056
- __metadata("design:type", Object)
4057
- ], AutoCompleteComponent.prototype, "panelStyle", void 0);
4058
- __decorate([
4059
- core.Input(),
4060
- __metadata("design:type", String)
4061
- ], AutoCompleteComponent.prototype, "styleClass", void 0);
4062
- __decorate([
4063
- core.Input(),
4064
- __metadata("design:type", String)
4065
- ], AutoCompleteComponent.prototype, "panelStyleClass", void 0);
4066
- __decorate([
4067
- core.Input(),
4068
- __metadata("design:type", Object)
4069
- ], AutoCompleteComponent.prototype, "inputStyle", void 0);
4070
- __decorate([
4071
- core.Input(),
4072
- __metadata("design:type", String)
4073
- ], AutoCompleteComponent.prototype, "inputId", void 0);
4074
- __decorate([
4075
- core.Input(),
4076
- __metadata("design:type", String)
4077
- ], AutoCompleteComponent.prototype, "inputStyleClass", void 0);
4078
- __decorate([
4079
- core.Input(),
4080
- __metadata("design:type", String)
4081
- ], AutoCompleteComponent.prototype, "placeholder", void 0);
4082
- __decorate([
4083
- core.Input(),
4084
- __metadata("design:type", Boolean)
4085
- ], AutoCompleteComponent.prototype, "readonly", void 0);
4086
- __decorate([
4087
- core.Input(),
4088
- __metadata("design:type", Boolean)
4089
- ], AutoCompleteComponent.prototype, "disabled", void 0);
4090
- __decorate([
4091
- core.Input(),
4092
- __metadata("design:type", Number)
4093
- ], AutoCompleteComponent.prototype, "maxlength", void 0);
4094
- __decorate([
4095
- core.Input(),
4096
- __metadata("design:type", String)
4097
- ], AutoCompleteComponent.prototype, "name", void 0);
4098
- __decorate([
4099
- core.Input(),
4100
- __metadata("design:type", Boolean)
4101
- ], AutoCompleteComponent.prototype, "required", void 0);
4102
- __decorate([
4103
- core.Input(),
4104
- __metadata("design:type", Number)
4105
- ], AutoCompleteComponent.prototype, "size", void 0);
4106
- __decorate([
4107
- core.Input(),
4108
- __metadata("design:type", Object)
4109
- ], AutoCompleteComponent.prototype, "appendTo", void 0);
4110
- __decorate([
4111
- core.Input(),
4112
- __metadata("design:type", Boolean)
4113
- ], AutoCompleteComponent.prototype, "autoHighlight", void 0);
4114
- __decorate([
4115
- core.Input(),
4116
- __metadata("design:type", Boolean)
4117
- ], AutoCompleteComponent.prototype, "forceSelection", void 0);
4118
- __decorate([
4119
- core.Input(),
4120
- __metadata("design:type", String)
4121
- ], AutoCompleteComponent.prototype, "type", void 0);
4122
- __decorate([
4123
- core.Input(),
4124
- __metadata("design:type", Boolean)
4125
- ], AutoCompleteComponent.prototype, "autoZIndex", void 0);
4126
- __decorate([
4127
- core.Input(),
4128
- __metadata("design:type", Number)
4129
- ], AutoCompleteComponent.prototype, "baseZIndex", void 0);
4130
- __decorate([
4131
- core.Input(),
4132
- __metadata("design:type", String)
4133
- ], AutoCompleteComponent.prototype, "ariaLabel", void 0);
4134
- __decorate([
4135
- core.Input(),
4136
- __metadata("design:type", String)
4137
- ], AutoCompleteComponent.prototype, "ariaLabelledBy", void 0);
4138
- __decorate([
4139
- core.Input(),
4140
- __metadata("design:type", String)
4141
- ], AutoCompleteComponent.prototype, "dropdownIcon", void 0);
4142
- __decorate([
4143
- core.Input(),
4144
- __metadata("design:type", Boolean)
4145
- ], AutoCompleteComponent.prototype, "unique", void 0);
4146
- __decorate([
4147
- core.Output(),
4148
- __metadata("design:type", core.EventEmitter)
4149
- ], AutoCompleteComponent.prototype, "completeMethod", void 0);
4150
- __decorate([
4151
- core.Output(),
4152
- __metadata("design:type", core.EventEmitter)
4153
- ], AutoCompleteComponent.prototype, "onSelect", void 0);
4154
- __decorate([
4155
- core.Output(),
4156
- __metadata("design:type", core.EventEmitter)
4157
- ], AutoCompleteComponent.prototype, "onUnselect", void 0);
4158
- __decorate([
4159
- core.Output(),
4160
- __metadata("design:type", core.EventEmitter)
4161
- ], AutoCompleteComponent.prototype, "onFocus", void 0);
4162
- __decorate([
4163
- core.Output(),
4164
- __metadata("design:type", core.EventEmitter)
4165
- ], AutoCompleteComponent.prototype, "onBlur", void 0);
4166
- __decorate([
4167
- core.Output(),
4168
- __metadata("design:type", core.EventEmitter)
4169
- ], AutoCompleteComponent.prototype, "onDropdownClick", void 0);
4170
- __decorate([
4171
- core.Output(),
4172
- __metadata("design:type", core.EventEmitter)
4173
- ], AutoCompleteComponent.prototype, "onClear", void 0);
4174
- __decorate([
4175
- core.Output(),
4176
- __metadata("design:type", core.EventEmitter)
4177
- ], AutoCompleteComponent.prototype, "onKeyUp", void 0);
4178
- __decorate([
4179
- core.Input(),
4180
- __metadata("design:type", String)
4181
- ], AutoCompleteComponent.prototype, "field", void 0);
4182
- __decorate([
4183
- core.Input(),
4184
- __metadata("design:type", String)
4185
- ], AutoCompleteComponent.prototype, "scrollHeight", void 0);
4186
- __decorate([
4187
- core.Input(),
4188
- __metadata("design:type", Boolean)
4189
- ], AutoCompleteComponent.prototype, "dropdown", void 0);
4190
- __decorate([
4191
- core.Input(),
4192
- __metadata("design:type", String)
4193
- ], AutoCompleteComponent.prototype, "dropdownMode", void 0);
4194
- __decorate([
4195
- core.Input(),
4196
- __metadata("design:type", Boolean)
4197
- ], AutoCompleteComponent.prototype, "multiple", void 0);
4198
- __decorate([
4199
- core.Input(),
4200
- __metadata("design:type", Number)
4201
- ], AutoCompleteComponent.prototype, "tabindex", void 0);
4202
- __decorate([
4203
- core.Input(),
4204
- __metadata("design:type", String)
4205
- ], AutoCompleteComponent.prototype, "dataKey", void 0);
4206
- __decorate([
4207
- core.Input(),
4208
- __metadata("design:type", String)
4209
- ], AutoCompleteComponent.prototype, "emptyMessage", void 0);
4210
- __decorate([
4211
- core.Input(),
4212
- __metadata("design:type", Boolean)
4213
- ], AutoCompleteComponent.prototype, "immutable", void 0);
4214
- __decorate([
4215
- core.Input(),
4216
- __metadata("design:type", String)
4217
- ], AutoCompleteComponent.prototype, "showTransitionOptions", void 0);
4218
- __decorate([
4219
- core.Input(),
4220
- __metadata("design:type", String)
4221
- ], AutoCompleteComponent.prototype, "hideTransitionOptions", void 0);
4222
- __decorate([
4223
- core.Input(),
4224
- __metadata("design:type", Boolean)
4225
- ], AutoCompleteComponent.prototype, "autofocus", void 0);
4226
- __decorate([
4227
- core.Input(),
4228
- __metadata("design:type", String)
4229
- ], AutoCompleteComponent.prototype, "autocomplete", void 0);
4230
- __decorate([
4231
- core.ViewChild('in', { static: false }),
4232
- __metadata("design:type", core.ElementRef)
4233
- ], AutoCompleteComponent.prototype, "inputEL", void 0);
4234
- __decorate([
4235
- core.ViewChild('multiIn', { static: false }),
4236
- __metadata("design:type", core.ElementRef)
4237
- ], AutoCompleteComponent.prototype, "multiInputEL", void 0);
4238
- __decorate([
4239
- core.ViewChild('multiContainer', { static: false }),
4240
- __metadata("design:type", core.ElementRef)
4241
- ], AutoCompleteComponent.prototype, "multiContainerEL", void 0);
4242
- __decorate([
4243
- core.ViewChild('ddBtn', { static: false }),
4244
- __metadata("design:type", core.ElementRef)
4245
- ], AutoCompleteComponent.prototype, "dropdownButton", void 0);
4246
- __decorate([
4247
- core.ContentChildren(InsparkTemplate),
4248
- __metadata("design:type", core.QueryList)
4249
- ], AutoCompleteComponent.prototype, "templates", void 0);
4250
- AutoCompleteComponent = AutoCompleteComponent_1 = __decorate([
4251
- core.Component({
4252
- selector: 'in-autocomplete',
4253
- template: "<span [ngClass]=\"{'ui-autocomplete ui-widget':true,'ui-autocomplete-dd':dropdown,'ui-autocomplete-multiple':multiple}\"\n [ngStyle]=\"style\" [class]=\"styleClass\">\n <input *ngIf=\"!multiple\" #in [attr.type]=\"type\" [attr.id]=\"inputId\" [ngStyle]=\"inputStyle\"\n [class]=\"inputStyleClass\" [autocomplete]=\"autocomplete\" [attr.required]=\"required\" [attr.name]=\"name\"\n [ngClass]=\"'ui-inputtext ui-widget ui-state-default ui-corner-all ui-autocomplete-input'\"\n [value]=\"inputFieldValue\" aria-autocomplete=\"list\" role=\"combobox\"\n [attr.aria-expanded]=\"overlayVisible\" aria-haspopup=\"true\"\n [attr.aria-activedescendant]=\"'p-highlighted-option'\"\n (click)=\"onInputClick($event)\" (input)=\"onInput($event)\" (keydown)=\"onKeydown($event)\"\n (keyup)=\"onKeyup($event)\" [attr.autofocus]=\"autofocus\" (focus)=\"onInputFocus($event)\"\n (blur)=\"onInputBlur($event)\" (change)=\"onInputChange($event)\" (paste)=\"onInputPaste($event)\"\n [attr.placeholder]=\"placeholder\" [attr.size]=\"size\" [attr.maxlength]=\"maxlength\"\n [attr.tabindex]=\"tabindex\" [readonly]=\"readonly\" [disabled]=\"disabled\" [attr.aria-label]=\"ariaLabel\"\n [attr.aria-labelledby]=\"ariaLabelledBy\" [attr.aria-required]=\"required\"\n ><ul *ngIf=\"multiple\" #multiContainer\n class=\"ui-autocomplete-multiple-container ui-widget ui-inputtext ui-state-default ui-corner-all\"\n [ngClass]=\"{'ui-state-disabled':disabled,'ui-state-focus':focus}\" (click)=\"multiIn.focus()\">\n <li #token *ngFor=\"let val of value\" class=\"ui-autocomplete-token ui-state-highlight ui-corner-all\">\n <span class=\"ui-autocomplete-token-icon pi pi-fw pi-times\" (click)=\"removeItem(token)\"\n *ngIf=\"!disabled\"></span>\n <span *ngIf=\"!selectedItemTemplate\"\n class=\"ui-autocomplete-token-label\">{{resolveFieldData(val)}}</span>\n <ng-container *ngTemplateOutlet=\"selectedItemTemplate; context: {$implicit: val}\"></ng-container>\n </li>\n <li class=\"ui-autocomplete-input-token\">\n <input #multiIn [attr.type]=\"type\" [attr.id]=\"inputId\" [disabled]=\"disabled\"\n [attr.placeholder]=\"(value&&value.length ? null : placeholder)\" [attr.tabindex]=\"tabindex\"\n [attr.maxlength]=\"maxlength\" (input)=\"onInput($event)\" (click)=\"onInputClick($event)\"\n (keydown)=\"onKeydown($event)\" [readonly]=\"readonly\" (keyup)=\"onKeyup($event)\"\n [attr.autofocus]=\"autofocus\" (focus)=\"onInputFocus($event)\" (blur)=\"onInputBlur($event)\"\n (change)=\"onInputChange($event)\" (paste)=\"onInputPaste($event)\" [autocomplete]=\"autocomplete\"\n [ngStyle]=\"inputStyle\" [class]=\"inputStyleClass\" [attr.aria-label]=\"ariaLabel\"\n [attr.aria-labelledby]=\"ariaLabelledBy\" [attr.aria-required]=\"required\"\n aria-autocomplete=\"list\" role=\"combobox\" [attr.aria-expanded]=\"overlayVisible\"\n aria-haspopup=\"true\" [attr.aria-activedescendant]=\"'p-highlighted-option'\">\n </li>\n </ul\n ><i *ngIf=\"loading\" class=\"ui-autocomplete-loader pi pi-spinner pi-spin\"></i><button #ddBtn type=\"button\"\n pButton\n [icon]=\"dropdownIcon\"\n class=\"ui-autocomplete-dropdown\"\n [disabled]=\"disabled\"\n (click)=\"handleDropdownClick($event)\"\n *ngIf=\"dropdown\"\n [attr.tabindex]=\"tabindex\"></button>\n <div #panel *ngIf=\"overlayVisible\"\n [ngClass]=\"['ui-autocomplete-panel ui-widget ui-widget-content ui-corner-all ui-shadow']\"\n [style.max-height]=\"scrollHeight\" [ngStyle]=\"panelStyle\" [class]=\"panelStyleClass\"\n [@overlayAnimation]=\"{value: 'visible', params: {showTransitionParams: showTransitionOptions, hideTransitionParams: hideTransitionOptions}}\"\n (@overlayAnimation.start)=\"onOverlayAnimationStart($event)\"\n (@overlayAnimation.done)=\"onOverlayAnimationDone($event)\">\n <ul role=\"listbox\"\n class=\"ui-autocomplete-items ui-autocomplete-list ui-widget-content ui-widget ui-corner-all ui-helper-reset\">\n <li role=\"option\" *ngFor=\"let option of suggestions; let idx = index\"\n [ngClass]=\"{'ui-autocomplete-list-item ui-corner-all':true,'ui-state-highlight':(highlightOption==option)}\"\n (mouseenter)=\"highlightOption=option\" (mouseleave)=\"highlightOption=null\"\n [id]=\"highlightOption == option ? 'p-highlighted-option':''\" (click)=\"selectItem(option)\">\n <span *ngIf=\"!itemTemplate\">{{resolveFieldData(option)}}</span>\n <ng-container\n *ngTemplateOutlet=\"itemTemplate; context: {$implicit: option, index: idx}\"></ng-container>\n </li>\n <li *ngIf=\"noResults && emptyMessage\"\n class=\"ui-autocomplete-emptymessage ui-autocomplete-list-item ui-corner-all\">{{emptyMessage}}</li>\n </ul>\n </div>\n </span>\n",
4254
- animations: [
4255
- animations.trigger('overlayAnimation', [
4256
- animations.state('void', animations.style({
4257
- transform: 'translateY(5%)',
4258
- opacity: 0
4259
- })),
4260
- animations.state('visible', animations.style({
4261
- transform: 'translateY(0)',
4262
- opacity: 1
4263
- })),
4264
- animations.transition('void => visible', animations.animate('{{showTransitionParams}}')),
4265
- animations.transition('visible => void', animations.animate('{{hideTransitionParams}}'))
4266
- ])
4267
- ],
4268
- providers: [{
4269
- provide: forms.NG_VALUE_ACCESSOR,
4270
- useExisting: core.forwardRef(function () { return AutoCompleteComponent_1; }),
4271
- multi: true
4272
- }],
4273
- styles: [""]
4274
- })
4275
- ], AutoCompleteComponent);
4276
- return AutoCompleteComponent;
4277
- }(primeng.AutoComplete));
4278
- var AutoCompleteComponentModule = /** @class */ (function () {
4279
- function AutoCompleteComponentModule() {
4280
- }
4281
- AutoCompleteComponentModule = __decorate([
4282
- core.NgModule({
4283
- declarations: [
4284
- AutoCompleteComponent,
4285
- ],
4286
- imports: [
4287
- primeng.TooltipModule,
4288
- scrolling.ScrollingModule,
4289
- common.CommonModule,
4290
- PrimengComponentsModule,
4291
- primeng.ButtonModule,
4292
- ],
4293
- exports: [
4294
- AutoCompleteComponent,
4295
- ],
4296
- entryComponents: [
4297
- AutoCompleteComponent,
4298
- ]
4299
- })
4300
- ], AutoCompleteComponentModule);
4301
- return AutoCompleteComponentModule;
4302
- }());
4303
-
4304
- var PieService = /** @class */ (function () {
4305
- function PieService() {
4306
- this.colorArray = ['-1', 0, 1, 2, 3, 4]; // Цвета и последовательность в которой они будут отображены
4307
- this.colors = {
4308
- 1: '#31ac51',
4309
- 2: '#EE9946',
4310
- 3: '#F95C5D',
4311
- 4: '#a20000',
4312
- 0: '#7E8087',
4313
- '-1': '#85B3CB'
4314
- };
4315
- }
4316
- PieService.prototype.create = function (statuses, size) {
4317
- var _this = this;
4318
- var data = [];
4319
- var allCount = 0;
4320
- this.colorArray.forEach(function (color) {
4321
- allCount += statuses[color] || 0;
4322
- });
4323
- var cumulativePercent = 0;
4324
- this.colorArray.forEach(function (color) {
4325
- var count = statuses[color];
4326
- if (!count) {
4327
- return;
4328
- }
4329
- var percent = count / allCount;
4330
- var _a = __read(_this.getCoordinatesForPercent(size, cumulativePercent), 2), startX = _a[0], startY = _a[1];
4331
- cumulativePercent += percent;
4332
- var _b = __read(_this.getCoordinatesForPercent(size, cumulativePercent), 2), endX = _b[0], endY = _b[1];
4333
- var largeArcFlag = percent > .5 ? 1 : 0;
4334
- var pathData = [
4335
- "M " + startX + " " + startY,
4336
- "A 20 20 0 " + largeArcFlag + " 1 " + endX + " " + endY,
4337
- "L 0 0",
4338
- ].join(' ');
4339
- data.push({
4340
- path: pathData,
4341
- color: _this.colors[color + '']
4342
- });
4343
- });
4344
- return data;
4345
- };
4346
- PieService.prototype.getCoordinatesForPercent = function (size, percent) {
4347
- var x = size / 2 * Math.cos(2 * Math.PI * percent);
4348
- var y = size / 2 * Math.sin(2 * Math.PI * percent);
4349
- return [x, y];
4350
- };
4351
- PieService = __decorate([
4352
- core.Injectable()
4353
- ], PieService);
4354
- return PieService;
4355
- }());
4356
-
4357
- var ObjectPieComponent = /** @class */ (function () {
4358
- function ObjectPieComponent(translate, pieService, cdr) {
4359
- this.translate = translate;
4360
- this.pieService = pieService;
4361
- this.cdr = cdr;
4362
- this.count = 30;
4363
- this.size = 40;
4364
- this.statuses = {
4365
- '-1': 20,
4366
- 0: 4,
4367
- 1: 3,
4368
- 2: 4,
4369
- 3: 5
4370
- };
4371
- }
4372
- ObjectPieComponent.prototype.ngOnInit = function () {
4373
- this.data = this.pieService.create(this.statuses, this.size);
4374
- };
4375
- ObjectPieComponent.prototype.ngOnDestroy = function () {
4376
- };
4377
- ObjectPieComponent.prototype.ngOnChanges = function (changes) {
4378
- };
4379
- ObjectPieComponent.ctorParameters = function () { return [
4380
- { type: core$1.TranslateService },
4381
- { type: PieService },
4382
- { type: core.ChangeDetectorRef }
4383
- ]; };
4384
- __decorate([
4385
- core.Input(),
4386
- __metadata("design:type", Object)
4387
- ], ObjectPieComponent.prototype, "count", void 0);
4388
- __decorate([
4389
- core.Input(),
4390
- __metadata("design:type", Object)
4391
- ], ObjectPieComponent.prototype, "size", void 0);
4392
- __decorate([
4393
- core.Input(),
4394
- __metadata("design:type", Object)
4395
- ], ObjectPieComponent.prototype, "statuses", void 0);
4396
- ObjectPieComponent = __decorate([
4397
- core.Component({
4398
- selector: 'in-pie',
4399
- template: "<div class=\"pie-block\">\n <svg viewBox=\"-20 -20 40 40\">\n <defs>\n <clipPath id=\"cut-off-bottom\">\n <circle cx=\"0\" cy=\"0\" r=\"12\"></circle>\n </clipPath>\n </defs>\n <mask id=\"re8-clip\">\n <circle cx=\"0\" cy=\"0\" r=\"20\" fill=\"white\"></circle>\n <circle cx=\"0\" cy=\"0\" r=\"14\" fill=\"black\"></circle>\n </mask>\n <path *ngFor=\"let path of data\" [attr.d]=\"path.path\" [attr.fill]=\"path.color\" mask=\"url(#re8-clip)\"></path>\n <text x=\"0\" y=\"4\" text-anchor=\"middle\" fill=\"currentColor\">{{count}}</text>\n </svg>\n</div>\n\n\n",
4400
- encapsulation: core.ViewEncapsulation.Emulated,
4401
- providers: [],
4402
- changeDetection: core.ChangeDetectionStrategy.OnPush,
4403
- styles: [".pie-block{width:40px;height:40px;color:var(--text-color)}.pie-block text{width:20px;height:20px;background:var(--colorBgLevel2);font-size:11px}.pie-block svg{width:40px;height:40px}"]
4404
- }),
4405
- __metadata("design:paramtypes", [core$1.TranslateService,
4406
- PieService,
4407
- core.ChangeDetectorRef])
4408
- ], ObjectPieComponent);
4409
- return ObjectPieComponent;
4410
- }());
4411
-
4412
- var InsparkComponentsModule = /** @class */ (function () {
4413
- function InsparkComponentsModule() {
4414
- }
4415
- InsparkComponentsModule = __decorate([
4416
- core.NgModule({
4417
- imports: [
4418
- AutoCompleteComponentModule,
4419
- forms.FormsModule,
4420
- forms.ReactiveFormsModule,
4421
- common.CommonModule,
4422
- DropdownComponentModule,
4423
- TableComponentModule,
4424
- TreeTableComponentModule,
4425
- primeng.RadioButtonModule,
4426
- core$1.TranslateModule,
4427
- menu.MenuModule,
4428
- slider.SliderModule,
4429
- ngBootstrap.NgbModule,
4430
- ngInlineSvg.InlineSVGModule.forRoot({ baseUrl: 'assets/images/' }),
4431
- primeng.BreadcrumbModule,
4432
- primeng.TreeModule,
4433
- primeng.SharedModule
4434
- ],
4435
- declarations: [
4436
- ButtonComponent,
4437
- InputTextComponent,
4438
- TextareaComponent,
4439
- PanelComponent,
4440
- ComponentContainerComponent,
4441
- CheckboxComponent,
4442
- EmptyComponent,
4443
- PreloaderComponent,
4444
- InsparkStickyComponent,
4445
- InsparkHeaderComponent,
4446
- ToolbarComponent,
4447
- BreadcrumbComponent,
4448
- FileComponent,
4449
- SelectButtonComponent,
4450
- ModalInputTextComponent,
4451
- SelectListComponent,
4452
- StatusCircleComponent,
4453
- SvgComponent,
4454
- SwitcherComponent,
4455
- InlineMessageComponent,
4456
- LinkComponent,
4457
- InsparkTemplate,
4458
- TooltipComponent,
4459
- RadiobuttonComponent,
4460
- ObjectTreeComponent,
4461
- ContentToggleComponent,
4462
- InputGroupComponent,
4463
- ObjectPieComponent,
4464
- ],
4465
- exports: [
4466
- ButtonComponent,
4467
- InputTextComponent,
4468
- TextareaComponent,
4469
- PanelComponent,
4470
- ComponentContainerComponent,
4471
- CheckboxComponent,
4472
- DropdownComponentModule,
4473
- TableComponentModule,
4474
- TreeTableComponentModule,
4475
- EmptyComponent,
4476
- PreloaderComponent,
4477
- InsparkStickyComponent,
4478
- InsparkHeaderComponent,
4479
- ToolbarComponent,
4480
- BreadcrumbComponent,
4481
- FileComponent,
4482
- SelectButtonComponent,
4483
- ModalInputTextComponent,
4484
- SelectListComponent,
4485
- StatusCircleComponent,
4486
- SvgComponent,
4487
- SwitcherComponent,
4488
- menu.MenuModule,
4489
- slider.SliderModule,
4490
- InlineMessageComponent,
4491
- LinkComponent,
4492
- InsparkTemplate,
4493
- ngBootstrap.NgbModule,
4494
- TooltipComponent,
4495
- RadiobuttonComponent,
4496
- ObjectTreeComponent,
4497
- ContentToggleComponent,
4498
- ObjectPieComponent,
4499
- InputGroupComponent,
4500
- AutoCompleteComponentModule
4501
- ],
4502
- entryComponents: [SelectListComponent, ModalInputTextComponent],
4503
- schemas: [core.NO_ERRORS_SCHEMA]
4504
- })
4505
- ], InsparkComponentsModule);
4506
- return InsparkComponentsModule;
4507
- }());
4508
-
4509
- Object.defineProperty(exports, 'TranslateModule', {
4510
- enumerable: true,
4511
- get: function () {
4512
- return core$1.TranslateModule;
4513
- }
4514
- });
4515
- Object.defineProperty(exports, 'BreadcrumbModule', {
4516
- enumerable: true,
4517
- get: function () {
4518
- return primeng.BreadcrumbModule;
4519
- }
4520
- });
4521
- Object.defineProperty(exports, 'RadioButtonModule', {
4522
- enumerable: true,
4523
- get: function () {
4524
- return primeng.RadioButtonModule;
4525
- }
4526
- });
4527
- Object.defineProperty(exports, 'SharedModule', {
4528
- enumerable: true,
4529
- get: function () {
4530
- return primeng.SharedModule;
4531
- }
4532
- });
4533
- Object.defineProperty(exports, 'TreeModule', {
4534
- enumerable: true,
4535
- get: function () {
4536
- return primeng.TreeModule;
4537
- }
4538
- });
4539
- Object.defineProperty(exports, 'NgbModule', {
4540
- enumerable: true,
4541
- get: function () {
4542
- return ngBootstrap.NgbModule;
4543
- }
4544
- });
4545
- Object.defineProperty(exports, 'InlineSVGModule', {
4546
- enumerable: true,
4547
- get: function () {
4548
- return ngInlineSvg.InlineSVGModule;
4549
- }
4550
- });
4551
- Object.defineProperty(exports, 'MenuModule', {
4552
- enumerable: true,
4553
- get: function () {
4554
- return menu.MenuModule;
4555
- }
4556
- });
4557
- Object.defineProperty(exports, 'SliderModule', {
4558
- enumerable: true,
4559
- get: function () {
4560
- return slider.SliderModule;
4561
- }
4562
- });
4563
- exports.AutoCompleteComponentModule = AutoCompleteComponentModule;
4564
- exports.BreadcrumbComponent = BreadcrumbComponent;
4565
- exports.ButtonComponent = ButtonComponent;
4566
- exports.CheckboxComponent = CheckboxComponent;
4567
- exports.CommunicationService = CommunicationService;
4568
- exports.ComponentContainerComponent = ComponentContainerComponent;
4569
- exports.ContentToggleComponent = ContentToggleComponent;
4570
- exports.DropdownComponentModule = DropdownComponentModule;
4571
- exports.EmptyComponent = EmptyComponent;
4572
- exports.FileComponent = FileComponent;
4573
- exports.InlineMessageComponent = InlineMessageComponent;
4574
- exports.InputTextComponent = InputTextComponent;
4575
- exports.InsparkComponentsModule = InsparkComponentsModule;
4576
- exports.InsparkDialogService = InsparkDialogService;
4577
- exports.InsparkHeaderComponent = InsparkHeaderComponent;
4578
- exports.InsparkMessageService = InsparkMessageService;
4579
- exports.InsparkStickyComponent = InsparkStickyComponent;
4580
- exports.InsparkTemplate = InsparkTemplate;
4581
- exports.LinkComponent = LinkComponent;
4582
- exports.ModalInputTextComponent = ModalInputTextComponent;
4583
- exports.ObjectTreeComponent = ObjectTreeComponent;
4584
- exports.PanelComponent = PanelComponent;
4585
- exports.PipesModule = PipesModule;
4586
- exports.PreloaderComponent = PreloaderComponent;
4587
- exports.RadiobuttonComponent = RadiobuttonComponent;
4588
- exports.SelectButtonComponent = SelectButtonComponent;
4589
- exports.SelectListComponent = SelectListComponent;
4590
- exports.StatusCircleComponent = StatusCircleComponent;
4591
- exports.SvgComponent = SvgComponent;
4592
- exports.SwitcherComponent = SwitcherComponent;
4593
- exports.TableComponentModule = TableComponentModule;
4594
- exports.TextareaComponent = TextareaComponent;
4595
- exports.ToolbarComponent = ToolbarComponent;
4596
- exports.TooltipComponent = TooltipComponent;
4597
- exports.TreeTableComponentModule = TreeTableComponentModule;
4598
- exports.ɵa = DropdownItem;
4599
- exports.ɵb = DropdownComponent;
4600
- exports.ɵc = tableFactory;
4601
- exports.ɵd = TableComponent;
4602
- exports.ɵe = TreeTableComponent;
4603
- exports.ɵf = AutoCompleteComponent;
4604
- exports.ɵg = PropertyValuePipe;
4605
- exports.ɵh = ShortToFullWeekdayPipe;
4606
- exports.ɵi = NumToShortWeekdayPipe;
4607
- exports.ɵj = FormatNumToTime;
4608
- exports.ɵk = InDate;
4609
- exports.ɵl = SafeUrlPipe;
4610
- exports.ɵm = SortByPipe;
4611
- exports.ɵn = PrimengComponentsModule;
4612
- exports.ɵo = TableColumnsMultiselectComponent;
4613
- exports.ɵp = TableMenuOverlayComponent;
4614
- exports.ɵq = TableClickOutsideDirective;
4615
- exports.ɵr = InputGroupComponent;
4616
- exports.ɵs = ObjectPieComponent;
4617
- exports.ɵt = PieService;
4618
-
4619
- Object.defineProperty(exports, '__esModule', { value: true });
4620
-
4621
- })));
4622
- //# sourceMappingURL=inspark-inspark-components.umd.js.map