@ohioepa/oepa-ui-lib 1.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (299) hide show
  1. package/README.md +24 -0
  2. package/esm2022/lib/account-search-input/account-search-input.component.mjs +147 -0
  3. package/esm2022/lib/account-search-modal/account-search-modal.component.mjs +151 -0
  4. package/esm2022/lib/action-btn/action-btn.component.mjs +70 -0
  5. package/esm2022/lib/action-btn/oepa-action-event.mjs +2 -0
  6. package/esm2022/lib/action-btn/oepa-action.mjs +2 -0
  7. package/esm2022/lib/action-btn-modal/action-btn-modal.component.mjs +21 -0
  8. package/esm2022/lib/address/address.component.mjs +174 -0
  9. package/esm2022/lib/address/oepa-address.service.mjs +64 -0
  10. package/esm2022/lib/address/oepa-form-address.mjs +2 -0
  11. package/esm2022/lib/blank/blank.component.mjs +14 -0
  12. package/esm2022/lib/checkbox/checkbox.component.mjs +33 -0
  13. package/esm2022/lib/checkbox-input/checkbox-input.component.mjs +41 -0
  14. package/esm2022/lib/comment-modal/comment-modal.component.mjs +56 -0
  15. package/esm2022/lib/common-forms.module.mjs +291 -0
  16. package/esm2022/lib/confirmation-modal/confirmation-modal.component.mjs +120 -0
  17. package/esm2022/lib/contact/contact.component.mjs +102 -0
  18. package/esm2022/lib/contact/oepa-form-contact.mjs +2 -0
  19. package/esm2022/lib/date-input/date-input.component.mjs +52 -0
  20. package/esm2022/lib/date-input-modal/date-input-modal.component.mjs +68 -0
  21. package/esm2022/lib/datepicker/datepicker.component.mjs +131 -0
  22. package/esm2022/lib/daterangepicker/daterangepicker.component.mjs +70 -0
  23. package/esm2022/lib/document/document-editor/document-editor.component.mjs +225 -0
  24. package/esm2022/lib/document/document-event-entity-type.mjs +7 -0
  25. package/esm2022/lib/document/document-event-type.mjs +7 -0
  26. package/esm2022/lib/document/document-event.mjs +2 -0
  27. package/esm2022/lib/document/document-group/document-group.component.mjs +210 -0
  28. package/esm2022/lib/document/document-part/document-part.component.mjs +19 -0
  29. package/esm2022/lib/document/document-part-editor/document-part-editor.component.mjs +296 -0
  30. package/esm2022/lib/document/document-placeholder-modal/document-placeholder-modal.component.mjs +49 -0
  31. package/esm2022/lib/document/document-section/document-section.component.mjs +226 -0
  32. package/esm2022/lib/document/document.service.mjs +325 -0
  33. package/esm2022/lib/document/group-modal/group-modal.component.mjs +46 -0
  34. package/esm2022/lib/document/part-modal/part-modal.component.mjs +48 -0
  35. package/esm2022/lib/document/portal-document-class.mjs +2 -0
  36. package/esm2022/lib/document/portal-document-group.mjs +2 -0
  37. package/esm2022/lib/document/portal-document-part.mjs +2 -0
  38. package/esm2022/lib/document/portal-document-placeholder.mjs +2 -0
  39. package/esm2022/lib/document/portal-document-section.mjs +2 -0
  40. package/esm2022/lib/document/portal-document-text.mjs +2 -0
  41. package/esm2022/lib/document/portal-document-type.mjs +2 -0
  42. package/esm2022/lib/document/portal-document.mjs +2 -0
  43. package/esm2022/lib/document/portal-email-attachment-type.mjs +2 -0
  44. package/esm2022/lib/document/portal-email-attachment.mjs +2 -0
  45. package/esm2022/lib/document/portal-email-filter.mjs +2 -0
  46. package/esm2022/lib/document/portal-email.mjs +2 -0
  47. package/esm2022/lib/document/section-modal/section-modal.component.mjs +46 -0
  48. package/esm2022/lib/dual-list-box/array.pipes.mjs +71 -0
  49. package/esm2022/lib/dual-list-box/dual-list-box.component.mjs +339 -0
  50. package/esm2022/lib/dual-list-box/items-moved-event.mjs +2 -0
  51. package/esm2022/lib/dual-list-box/list-box-item.mjs +2 -0
  52. package/esm2022/lib/ebiz-address/ebiz-address.component.mjs +62 -0
  53. package/esm2022/lib/edoc-attachment/edoc-attachment.component.mjs +216 -0
  54. package/esm2022/lib/edoc-attachment/edoc-attachment.service.mjs +38 -0
  55. package/esm2022/lib/edoc-attachment/edocument-attachment-metadata.mjs +2 -0
  56. package/esm2022/lib/edoc-attachment/edocument-attachment.mjs +2 -0
  57. package/esm2022/lib/edoc-attachment/edocument-reference.mjs +2 -0
  58. package/esm2022/lib/entity/entity.service.mjs +104 -0
  59. package/esm2022/lib/entity/organization-create-modal/organization-create-modal.component.mjs +307 -0
  60. package/esm2022/lib/entity/organization-search-input/organization-search-input.component.mjs +127 -0
  61. package/esm2022/lib/entity/organization-search-modal/organization-search-modal.component.mjs +304 -0
  62. package/esm2022/lib/entity/person-create-modal/person-create-modal.component.mjs +316 -0
  63. package/esm2022/lib/entity/person-search-input/person-search-input.component.mjs +129 -0
  64. package/esm2022/lib/entity/person-search-modal/person-search-modal.component.mjs +311 -0
  65. package/esm2022/lib/entity/place-create-modal/place-create-modal.component.mjs +14 -0
  66. package/esm2022/lib/entity/place-search-input/place-search-input.component.mjs +126 -0
  67. package/esm2022/lib/entity/place-search-modal/place-search-modal.component.mjs +216 -0
  68. package/esm2022/lib/esri-map/esri-map.component.mjs +416 -0
  69. package/esm2022/lib/file-upload/file-upload.component.mjs +148 -0
  70. package/esm2022/lib/lynx-image-upload/lynx-image-upload.component.mjs +143 -0
  71. package/esm2022/lib/lynx-image-upload/lynx.service.mjs +47 -0
  72. package/esm2022/lib/masks/oepa-create-integer-mask.mjs +39 -0
  73. package/esm2022/lib/masks/oepa-integer-mask-args.mjs +2 -0
  74. package/esm2022/lib/message/message.component.mjs +19 -0
  75. package/esm2022/lib/message/oepa-message-type.mjs +7 -0
  76. package/esm2022/lib/message/oepa-message.mjs +31 -0
  77. package/esm2022/lib/message-list/message-list.component.mjs +24 -0
  78. package/esm2022/lib/multi-file-upload/multi-file-upload.component.mjs +137 -0
  79. package/esm2022/lib/notes-modal/notes-modal.component.mjs +177 -0
  80. package/esm2022/lib/notes-modal/oepa-note-result.mjs +2 -0
  81. package/esm2022/lib/notes-modal/oepa-note.mjs +2 -0
  82. package/esm2022/lib/numeric-input/numeric-input.component.mjs +50 -0
  83. package/esm2022/lib/numeric-input.directive.mjs +76 -0
  84. package/esm2022/lib/oepa-error-message/oepa-error-message.component.mjs +39 -0
  85. package/esm2022/lib/oepa-forms.service.mjs +199 -0
  86. package/esm2022/lib/oepa-images.mjs +59 -0
  87. package/esm2022/lib/oepa-wait-message/oepa-wait-message.component.mjs +29 -0
  88. package/esm2022/lib/ohio-lat-long/ohio-lat-long.component.mjs +176 -0
  89. package/esm2022/lib/parameter/parameter.mjs +2 -0
  90. package/esm2022/lib/parameter/parameter.service.mjs +47 -0
  91. package/esm2022/lib/params-help-button/params-help-button.component.mjs +42 -0
  92. package/esm2022/lib/phone-number/phone-number.component.mjs +44 -0
  93. package/esm2022/lib/pin-modal/oepa-attestation.mjs +2 -0
  94. package/esm2022/lib/pin-modal/oepa-pin.mjs +2 -0
  95. package/esm2022/lib/pin-modal/oepa-pin.service.mjs +54 -0
  96. package/esm2022/lib/pin-modal/oepa-security-question.mjs +2 -0
  97. package/esm2022/lib/pin-modal/pin-modal.component.mjs +186 -0
  98. package/esm2022/lib/progress-indicator/progress-info.mjs +2 -0
  99. package/esm2022/lib/select-input/select-input.component.mjs +96 -0
  100. package/esm2022/lib/server-timeout-modal/server-timeout-modal.component.mjs +63 -0
  101. package/esm2022/lib/shopping-cart/shopping-cart-summary/shopping-cart-summary.component.mjs +54 -0
  102. package/esm2022/lib/shopping-cart/shopping-cart-view/shopping-cart-view-parameters.mjs +2 -0
  103. package/esm2022/lib/shopping-cart/shopping-cart-view/shopping-cart-view.component.mjs +190 -0
  104. package/esm2022/lib/shopping-cart/shopping-cart.service.mjs +89 -0
  105. package/esm2022/lib/start-end-timepicker/start-end-timepicker.component.mjs +126 -0
  106. package/esm2022/lib/table/oepa-p-column.mjs +2 -0
  107. package/esm2022/lib/table/oepa-table-cell-classname.pipe.mjs +22 -0
  108. package/esm2022/lib/table/oepa-table-cell-click-event.mjs +2 -0
  109. package/esm2022/lib/table/oepa-table-cell-colspan.pipe.mjs +22 -0
  110. package/esm2022/lib/table/oepa-table-cell-hidden.pipe.mjs +22 -0
  111. package/esm2022/lib/table/oepa-table-cell-icon-classname.pipe.mjs +22 -0
  112. package/esm2022/lib/table/oepa-table-cell-img-src.pipe.mjs +22 -0
  113. package/esm2022/lib/table/oepa-table-cell-inner-html.pipe.mjs +22 -0
  114. package/esm2022/lib/table/oepa-table-cell-input-component.pipe.mjs +22 -0
  115. package/esm2022/lib/table/oepa-table-cell-not-selectable.pipe.mjs +22 -0
  116. package/esm2022/lib/table/oepa-table-cell-value.pipe.mjs +22 -0
  117. package/esm2022/lib/table/oepa-table-cell.mjs +2 -0
  118. package/esm2022/lib/table/oepa-table-column.mjs +2 -0
  119. package/esm2022/lib/table/oepa-table-config.mjs +2 -0
  120. package/esm2022/lib/table/oepa-table-filter.mjs +2 -0
  121. package/esm2022/lib/table/oepa-table-filtering.directive.mjs +57 -0
  122. package/esm2022/lib/table/oepa-table-header.mjs +2 -0
  123. package/esm2022/lib/table/oepa-table-page-info.mjs +2 -0
  124. package/esm2022/lib/table/oepa-table-popover.mjs +2 -0
  125. package/esm2022/lib/table/oepa-table-row.mjs +2 -0
  126. package/esm2022/lib/table/oepa-table-sort-criterion.mjs +2 -0
  127. package/esm2022/lib/table/oepa-table-sorting.directive.mjs +57 -0
  128. package/esm2022/lib/table/oepa-table.mjs +2 -0
  129. package/esm2022/lib/table/p-table/p-table.component.mjs +826 -0
  130. package/esm2022/lib/table/table-data-cell/table-data-cell-click-event.mjs +2 -0
  131. package/esm2022/lib/table/table-data-cell/table-data-cell.component.mjs +60 -0
  132. package/esm2022/lib/table/table-export.service.mjs +57 -0
  133. package/esm2022/lib/table/table-header-cell/table-header-cell.component.mjs +61 -0
  134. package/esm2022/lib/table/table.component.mjs +793 -0
  135. package/esm2022/lib/table/table.service.mjs +112 -0
  136. package/esm2022/lib/template-confirmation-modal/template-confirmation-modal.component.mjs +46 -0
  137. package/esm2022/lib/text-area-input/text-area-input.component.mjs +48 -0
  138. package/esm2022/lib/text-input/text-input.component.mjs +48 -0
  139. package/esm2022/lib/timeout-modal/timeout-modal.component.mjs +31 -0
  140. package/esm2022/lib/timepicker/timepicker.component.mjs +48 -0
  141. package/esm2022/lib/validation/form-validator.mjs +2 -0
  142. package/esm2022/lib/validation/validation.service.mjs +134 -0
  143. package/esm2022/lib/yes-no/yes-no.component.mjs +44 -0
  144. package/esm2022/lib/yes-no-boolean/yes-no.component.mjs +44 -0
  145. package/esm2022/lib/yes-no-other-input/yes-no-other-input.component.mjs +41 -0
  146. package/esm2022/lib/zip-code/zip-code.component.mjs +42 -0
  147. package/esm2022/ohioepa-oepa-ui-lib.mjs +5 -0
  148. package/esm2022/public-api.mjs +142 -0
  149. package/fesm2022/ohioepa-oepa-ui-lib.mjs +10720 -0
  150. package/fesm2022/ohioepa-oepa-ui-lib.mjs.map +1 -0
  151. package/index.d.ts +5 -0
  152. package/lib/account-search-input/account-search-input.component.d.ts +36 -0
  153. package/lib/account-search-modal/account-search-modal.component.d.ts +40 -0
  154. package/lib/action-btn/action-btn.component.d.ts +34 -0
  155. package/lib/action-btn/oepa-action-event.d.ts +19 -0
  156. package/lib/action-btn/oepa-action.d.ts +13 -0
  157. package/lib/action-btn-modal/action-btn-modal.component.d.ts +12 -0
  158. package/lib/address/address.component.d.ts +43 -0
  159. package/lib/address/oepa-address.service.d.ts +28 -0
  160. package/lib/address/oepa-form-address.d.ts +19 -0
  161. package/lib/blank/blank.component.d.ts +8 -0
  162. package/lib/checkbox/checkbox.component.d.ts +15 -0
  163. package/lib/checkbox-input/checkbox-input.component.d.ts +17 -0
  164. package/lib/comment-modal/comment-modal.component.d.ts +22 -0
  165. package/lib/common-forms.module.d.ts +104 -0
  166. package/lib/confirmation-modal/confirmation-modal.component.d.ts +49 -0
  167. package/lib/contact/contact.component.d.ts +33 -0
  168. package/lib/contact/oepa-form-contact.d.ts +58 -0
  169. package/lib/date-input/date-input.component.d.ts +18 -0
  170. package/lib/date-input-modal/date-input-modal.component.d.ts +25 -0
  171. package/lib/datepicker/datepicker.component.d.ts +28 -0
  172. package/lib/daterangepicker/daterangepicker.component.d.ts +22 -0
  173. package/lib/document/document-editor/document-editor.component.d.ts +34 -0
  174. package/lib/document/document-event-entity-type.d.ts +5 -0
  175. package/lib/document/document-event-type.d.ts +5 -0
  176. package/lib/document/document-event.d.ts +9 -0
  177. package/lib/document/document-group/document-group.component.d.ts +38 -0
  178. package/lib/document/document-part/document-part.component.d.ts +10 -0
  179. package/lib/document/document-part-editor/document-part-editor.component.d.ts +46 -0
  180. package/lib/document/document-placeholder-modal/document-placeholder-modal.component.d.ts +19 -0
  181. package/lib/document/document-section/document-section.component.d.ts +37 -0
  182. package/lib/document/document.service.d.ts +90 -0
  183. package/lib/document/group-modal/group-modal.component.d.ts +20 -0
  184. package/lib/document/part-modal/part-modal.component.d.ts +20 -0
  185. package/lib/document/portal-document-class.d.ts +10 -0
  186. package/lib/document/portal-document-group.d.ts +15 -0
  187. package/lib/document/portal-document-part.d.ts +22 -0
  188. package/lib/document/portal-document-placeholder.d.ts +12 -0
  189. package/lib/document/portal-document-section.d.ts +13 -0
  190. package/lib/document/portal-document-text.d.ts +7 -0
  191. package/lib/document/portal-document-type.d.ts +15 -0
  192. package/lib/document/portal-document.d.ts +27 -0
  193. package/lib/document/portal-email-attachment-type.d.ts +6 -0
  194. package/lib/document/portal-email-attachment.d.ts +12 -0
  195. package/lib/document/portal-email-filter.d.ts +12 -0
  196. package/lib/document/portal-email.d.ts +18 -0
  197. package/lib/document/section-modal/section-modal.component.d.ts +20 -0
  198. package/lib/dual-list-box/array.pipes.d.ts +36 -0
  199. package/lib/dual-list-box/dual-list-box.component.d.ts +91 -0
  200. package/lib/dual-list-box/items-moved-event.d.ts +11 -0
  201. package/lib/dual-list-box/list-box-item.d.ts +7 -0
  202. package/lib/ebiz-address/ebiz-address.component.d.ts +23 -0
  203. package/lib/edoc-attachment/edoc-attachment.component.d.ts +44 -0
  204. package/lib/edoc-attachment/edoc-attachment.service.d.ts +16 -0
  205. package/lib/edoc-attachment/edocument-attachment-metadata.d.ts +16 -0
  206. package/lib/edoc-attachment/edocument-attachment.d.ts +12 -0
  207. package/lib/edoc-attachment/edocument-reference.d.ts +5 -0
  208. package/lib/entity/entity.service.d.ts +31 -0
  209. package/lib/entity/organization-create-modal/organization-create-modal.component.d.ts +53 -0
  210. package/lib/entity/organization-search-input/organization-search-input.component.d.ts +34 -0
  211. package/lib/entity/organization-search-modal/organization-search-modal.component.d.ts +56 -0
  212. package/lib/entity/person-create-modal/person-create-modal.component.d.ts +53 -0
  213. package/lib/entity/person-search-input/person-search-input.component.d.ts +34 -0
  214. package/lib/entity/person-search-modal/person-search-modal.component.d.ts +56 -0
  215. package/lib/entity/place-create-modal/place-create-modal.component.d.ts +8 -0
  216. package/lib/entity/place-search-input/place-search-input.component.d.ts +34 -0
  217. package/lib/entity/place-search-modal/place-search-modal.component.d.ts +41 -0
  218. package/lib/esri-map/esri-map.component.d.ts +41 -0
  219. package/lib/file-upload/file-upload.component.d.ts +37 -0
  220. package/lib/lynx-image-upload/lynx-image-upload.component.d.ts +36 -0
  221. package/lib/lynx-image-upload/lynx.service.d.ts +16 -0
  222. package/lib/masks/oepa-create-integer-mask.d.ts +8 -0
  223. package/lib/masks/oepa-integer-mask-args.d.ts +5 -0
  224. package/lib/message/message.component.d.ts +10 -0
  225. package/lib/message/oepa-message-type.d.ts +5 -0
  226. package/lib/message/oepa-message.d.ts +7 -0
  227. package/lib/message-list/message-list.component.d.ts +11 -0
  228. package/lib/multi-file-upload/multi-file-upload.component.d.ts +36 -0
  229. package/lib/notes-modal/notes-modal.component.d.ts +50 -0
  230. package/lib/notes-modal/oepa-note-result.d.ts +10 -0
  231. package/lib/notes-modal/oepa-note.d.ts +13 -0
  232. package/lib/numeric-input/numeric-input.component.d.ts +20 -0
  233. package/lib/numeric-input.directive.d.ts +19 -0
  234. package/lib/oepa-error-message/oepa-error-message.component.d.ts +9 -0
  235. package/lib/oepa-forms.service.d.ts +28 -0
  236. package/lib/oepa-images.d.ts +53 -0
  237. package/lib/oepa-wait-message/oepa-wait-message.component.d.ts +9 -0
  238. package/lib/ohio-lat-long/ohio-lat-long.component.d.ts +63 -0
  239. package/lib/parameter/parameter.d.ts +7 -0
  240. package/lib/parameter/parameter.service.d.ts +18 -0
  241. package/lib/params-help-button/params-help-button.component.d.ts +15 -0
  242. package/lib/phone-number/phone-number.component.d.ts +19 -0
  243. package/lib/pin-modal/oepa-attestation.d.ts +10 -0
  244. package/lib/pin-modal/oepa-pin.d.ts +26 -0
  245. package/lib/pin-modal/oepa-pin.service.d.ts +38 -0
  246. package/lib/pin-modal/oepa-security-question.d.ts +8 -0
  247. package/lib/pin-modal/pin-modal.component.d.ts +46 -0
  248. package/lib/progress-indicator/progress-info.d.ts +4 -0
  249. package/lib/select-input/select-input.component.d.ts +27 -0
  250. package/lib/server-timeout-modal/server-timeout-modal.component.d.ts +23 -0
  251. package/lib/shopping-cart/shopping-cart-summary/shopping-cart-summary.component.d.ts +18 -0
  252. package/lib/shopping-cart/shopping-cart-view/shopping-cart-view-parameters.d.ts +10 -0
  253. package/lib/shopping-cart/shopping-cart-view/shopping-cart-view.component.d.ts +51 -0
  254. package/lib/shopping-cart/shopping-cart.service.d.ts +44 -0
  255. package/lib/start-end-timepicker/start-end-timepicker.component.d.ts +29 -0
  256. package/lib/table/oepa-p-column.d.ts +4 -0
  257. package/lib/table/oepa-table-cell-classname.pipe.d.ts +9 -0
  258. package/lib/table/oepa-table-cell-click-event.d.ts +15 -0
  259. package/lib/table/oepa-table-cell-colspan.pipe.d.ts +9 -0
  260. package/lib/table/oepa-table-cell-hidden.pipe.d.ts +9 -0
  261. package/lib/table/oepa-table-cell-icon-classname.pipe.d.ts +9 -0
  262. package/lib/table/oepa-table-cell-img-src.pipe.d.ts +9 -0
  263. package/lib/table/oepa-table-cell-inner-html.pipe.d.ts +9 -0
  264. package/lib/table/oepa-table-cell-input-component.pipe.d.ts +9 -0
  265. package/lib/table/oepa-table-cell-not-selectable.pipe.d.ts +9 -0
  266. package/lib/table/oepa-table-cell-value.pipe.d.ts +9 -0
  267. package/lib/table/oepa-table-cell.d.ts +66 -0
  268. package/lib/table/oepa-table-column.d.ts +71 -0
  269. package/lib/table/oepa-table-config.d.ts +72 -0
  270. package/lib/table/oepa-table-filter.d.ts +10 -0
  271. package/lib/table/oepa-table-filtering.directive.d.ts +17 -0
  272. package/lib/table/oepa-table-header.d.ts +9 -0
  273. package/lib/table/oepa-table-page-info.d.ts +22 -0
  274. package/lib/table/oepa-table-popover.d.ts +28 -0
  275. package/lib/table/oepa-table-row.d.ts +84 -0
  276. package/lib/table/oepa-table-sort-criterion.d.ts +4 -0
  277. package/lib/table/oepa-table-sorting.directive.d.ts +16 -0
  278. package/lib/table/oepa-table.d.ts +42 -0
  279. package/lib/table/p-table/p-table.component.d.ts +155 -0
  280. package/lib/table/table-data-cell/table-data-cell-click-event.d.ts +5 -0
  281. package/lib/table/table-data-cell/table-data-cell.component.d.ts +23 -0
  282. package/lib/table/table-export.service.d.ts +33 -0
  283. package/lib/table/table-header-cell/table-header-cell.component.d.ts +24 -0
  284. package/lib/table/table.component.d.ts +144 -0
  285. package/lib/table/table.service.d.ts +28 -0
  286. package/lib/template-confirmation-modal/template-confirmation-modal.component.d.ts +19 -0
  287. package/lib/text-area-input/text-area-input.component.d.ts +19 -0
  288. package/lib/text-input/text-input.component.d.ts +19 -0
  289. package/lib/timeout-modal/timeout-modal.component.d.ts +13 -0
  290. package/lib/timepicker/timepicker.component.d.ts +17 -0
  291. package/lib/validation/form-validator.d.ts +10 -0
  292. package/lib/validation/validation.service.d.ts +16 -0
  293. package/lib/yes-no/yes-no.component.d.ts +19 -0
  294. package/lib/yes-no-boolean/yes-no.component.d.ts +19 -0
  295. package/lib/yes-no-other-input/yes-no-other-input.component.d.ts +18 -0
  296. package/lib/zip-code/zip-code.component.d.ts +19 -0
  297. package/ohioepa-oepa-ui-lib-1.1.0.tgz +0 -0
  298. package/package.json +25 -0
  299. package/public-api.d.ts +138 -0
@@ -0,0 +1,17 @@
1
+ import { EventEmitter, ElementRef, OnInit, Renderer2 } from '@angular/core';
2
+ import { OepaTableFilter } from './oepa-table-filter';
3
+ import { TableService } from './table.service';
4
+ import * as i0 from "@angular/core";
5
+ export declare class OepaTableFilteringDirective implements OnInit {
6
+ private tableService;
7
+ oepaTableFiltering: OepaTableFilter;
8
+ tableId: string;
9
+ tableChanged: EventEmitter<OepaTableFilter>;
10
+ private element;
11
+ private renderer;
12
+ onChangeFilter(event: string): void;
13
+ constructor(element: ElementRef, renderer: Renderer2, tableService: TableService);
14
+ ngOnInit(): void;
15
+ static ɵfac: i0.ɵɵFactoryDeclaration<OepaTableFilteringDirective, never>;
16
+ static ɵdir: i0.ɵɵDirectiveDeclaration<OepaTableFilteringDirective, "[oepaTableFiltering]", never, { "oepaTableFiltering": { "alias": "oepaTableFiltering"; "required": false; }; "tableId": { "alias": "tableId"; "required": false; }; }, { "tableChanged": "tableChanged"; }, never, never, false, never>;
17
+ }
@@ -0,0 +1,9 @@
1
+ /**
2
+ * Interface defining a header of the TableComponent.
3
+ * A header is one row in the table heading and defines the columns
4
+ * in that row.
5
+ */
6
+ import { OepaTableColumn } from './oepa-table-column';
7
+ export interface OepaTableHeader {
8
+ columns: Array<OepaTableColumn>;
9
+ }
@@ -0,0 +1,22 @@
1
+ export interface OepaTablePageInfo {
2
+ /**
3
+ * Current page number
4
+ */
5
+ page: number;
6
+ /**
7
+ * Items (rows) per page.
8
+ */
9
+ itemsPerPage: number;
10
+ /**
11
+ * Maximum items per page.
12
+ */
13
+ maxSize: number;
14
+ /**
15
+ * Current Number of pages
16
+ */
17
+ numPages: number;
18
+ /**
19
+ * Number of items (rows) in table.
20
+ */
21
+ length: number;
22
+ }
@@ -0,0 +1,28 @@
1
+ import { OepaTemplateInfo } from '@ohioepa/oepa-common-lib';
2
+ /**
3
+ * Interface defining the popover information that may be part of
4
+ * an OepaTableCell.
5
+ */
6
+ export interface OepaTablePopover {
7
+ /**
8
+ * Popover title.
9
+ */
10
+ title: string;
11
+ /**
12
+ * Content of the popover. Must be a component.
13
+ */
14
+ content: OepaTemplateInfo;
15
+ /**
16
+ * The css class name defining the icon displayed in the table (e.g. "fa fa-asterisk").
17
+ * The popover is displayed when the user hovers over the icon.
18
+ */
19
+ className: string;
20
+ /**
21
+ * The css class styling the popover container.
22
+ */
23
+ containerClass: string;
24
+ /**
25
+ * Specify the trigger for the popover. Default is 'mouseenter:mouseleave'
26
+ */
27
+ trigger?: string;
28
+ }
@@ -0,0 +1,84 @@
1
+ import { OepaTableCell } from './oepa-table-cell';
2
+ import { OepaAction } from '../action-btn/oepa-action';
3
+ import { OepaTablePopover } from './oepa-table-popover';
4
+ import { OepaTable } from './oepa-table';
5
+ /**
6
+ * Interface defining a row in the TableComponent
7
+ */
8
+ export interface OepaTableRow {
9
+ /**
10
+ * The cells in the row.
11
+ */
12
+ cells: Array<OepaTableCell>;
13
+ /**
14
+ * The data object represented by this row. This is here to simplify edit operations by allowing
15
+ * access to the entire data structure represented by this row.
16
+ */
17
+ dataSource?: any;
18
+ /**
19
+ * Definition of the actions applicable to the contents of this row.
20
+ */
21
+ actions?: Array<OepaAction>;
22
+ /**
23
+ * Indicator of whether detailed information should be displayed below this row.
24
+ * If this property is not null, the detail property must also be set.
25
+ */
26
+ showDetail?: boolean;
27
+ /**
28
+ * The contents of the detail shown below the row. Must be a component.
29
+ */
30
+ detail?: any;
31
+ /**
32
+ * Class name for icon to be shown as part of detail show/hide column
33
+ */
34
+ detailIconClassName?: string;
35
+ /**
36
+ * Definition of this row's popover.
37
+ */
38
+ popover?: OepaTablePopover;
39
+ /**
40
+ * Definition of this row's second popover.
41
+ */
42
+ popover2?: OepaTablePopover;
43
+ /**
44
+ * Definition of this row's third popover.
45
+ */
46
+ popover3?: OepaTablePopover;
47
+ /**
48
+ * Specify the index of the column in which the popover will be placed (default is 0)
49
+ */
50
+ popoverColumnIndex?: number;
51
+ /**
52
+ * Specify the index of the column in which the popover will be placed (default is 0)
53
+ */
54
+ popover2ColumnIndex?: number;
55
+ /**
56
+ * Specify the index of the column in which the popover will be placed (default is 0)
57
+ */
58
+ popover3ColumnIndex?: number;
59
+ /**
60
+ * Indicator of whether the row is a divider row (empty row)
61
+ */
62
+ isDivider?: boolean;
63
+ /**
64
+ * css class name for styling divider
65
+ */
66
+ dividerClassName?: string;
67
+ /**
68
+ * Can this row be selected?
69
+ */
70
+ selectable?: boolean;
71
+ /**
72
+ * Is this row selected?
73
+ */
74
+ selected?: boolean;
75
+ /**
76
+ * If detail is another table, store its contents here for use when displaying
77
+ * table as HTML or Excel.
78
+ */
79
+ subTable?: OepaTable;
80
+ /**
81
+ * Private Id used by TableComponent. Clients of this component should not do anything with this field
82
+ */
83
+ privateId?: number;
84
+ }
@@ -0,0 +1,4 @@
1
+ export interface OepaTableSortCriterion {
2
+ columnId?: string;
3
+ sort?: string;
4
+ }
@@ -0,0 +1,16 @@
1
+ import { EventEmitter, OnInit } from '@angular/core';
2
+ import { OepaTableColumn } from './oepa-table-column';
3
+ import { TableService } from './table.service';
4
+ import * as i0 from "@angular/core";
5
+ export declare class OepaTableSortingDirective implements OnInit {
6
+ private tableService;
7
+ tableId: string;
8
+ oepaTableSorting: boolean;
9
+ column: OepaTableColumn;
10
+ sortChanged: EventEmitter<OepaTableColumn>;
11
+ onToggleSort(event: any): void;
12
+ constructor(tableService: TableService);
13
+ ngOnInit(): void;
14
+ static ɵfac: i0.ɵɵFactoryDeclaration<OepaTableSortingDirective, never>;
15
+ static ɵdir: i0.ɵɵDirectiveDeclaration<OepaTableSortingDirective, "[oepaTableSorting]", never, { "tableId": { "alias": "tableId"; "required": false; }; "oepaTableSorting": { "alias": "oepaTableSorting"; "required": false; }; "column": { "alias": "column"; "required": false; }; }, { "sortChanged": "sortChanged"; }, never, never, false, never>;
16
+ }
@@ -0,0 +1,42 @@
1
+ import { OepaTableHeader } from './oepa-table-header';
2
+ import { OepaTableRow } from './oepa-table-row';
3
+ /**
4
+ * Interface describing the contents of an TableComponent.
5
+ * This is used mainly to pass table data to the server in order
6
+ * to export its contents to HTML or Excel.
7
+ */
8
+ export interface OepaTable {
9
+ /**
10
+ * Array of header column rows.
11
+ */
12
+ headerRows?: Array<OepaTableHeader>;
13
+ /**
14
+ * Array of visible data in the table (just the rows currently displayed)
15
+ */
16
+ visibleDataRows?: Array<OepaTableRow>;
17
+ /**
18
+ * Array of ALL data in the table, visible or not.
19
+ */
20
+ allDataRows?: Array<OepaTableRow>;
21
+ /**
22
+ * A special row for displaying totals. This row will always be at the end of the
23
+ * table and will not be affected by paging.
24
+ */
25
+ totalRow?: OepaTableRow;
26
+ /**
27
+ * Indication of whether all detail rows should be displayed.
28
+ */
29
+ showAllDetails?: boolean;
30
+ /**
31
+ * String containing list of css classes applicable to the table.
32
+ */
33
+ className?: string;
34
+ /**
35
+ * Count of visible columns in the table (for use in export)
36
+ */
37
+ visibleColumnCount?: number;
38
+ /**
39
+ * Count of all columns in the table (for use in export)
40
+ */
41
+ allColumnCount?: number;
42
+ }
@@ -0,0 +1,155 @@
1
+ import { EventEmitter, OnInit, ElementRef, AfterViewChecked } from '@angular/core';
2
+ import { DomSanitizer, SafeHtml } from '@angular/platform-browser';
3
+ import { OepaTable } from '../oepa-table';
4
+ import { OepaTableConfig } from '../oepa-table-config';
5
+ import { OepaTableHeader } from '../oepa-table-header';
6
+ import { OepaTableColumn } from '../oepa-table-column';
7
+ import { OepaTableRow } from '../oepa-table-row';
8
+ import { OepaTablePageInfo } from '../oepa-table-page-info';
9
+ import { OepaTableCellClickEvent } from '../oepa-table-cell-click-event';
10
+ import { OepaActionEvent } from '../../action-btn/oepa-action-event';
11
+ import { TableExportService } from '../table-export.service';
12
+ import { OepaFileUtilService, OepaTemplateInfo } from '@ohioepa/oepa-common-lib';
13
+ import { TableService } from '../table.service';
14
+ import { OepaTableSortCriterion } from '../oepa-table-sort-criterion';
15
+ import { PageChangedEvent } from 'ngx-bootstrap/pagination';
16
+ import { OepaPColumn } from '../oepa-p-column';
17
+ import { TableDataCellClickEvent } from '../table-data-cell/table-data-cell-click-event';
18
+ import { Subject } from 'rxjs';
19
+ import { OepaTableFilter } from '../oepa-table-filter';
20
+ import * as i0 from "@angular/core";
21
+ export declare class PTableComponent implements OnInit, AfterViewChecked {
22
+ private sanitizer;
23
+ private tableService;
24
+ private tableExportService;
25
+ private fileUtilService;
26
+ private elRef;
27
+ showFilterRow: Boolean;
28
+ headerRows: Array<OepaTableHeader>;
29
+ rows: Array<OepaTableRow>;
30
+ visibleColumnCount: number;
31
+ allColumnCount: number;
32
+ exportVisibleOnly: boolean | undefined;
33
+ noFiltersSubject: Subject<boolean>;
34
+ dataColumns: Array<OepaTableColumn>;
35
+ visibleColumns: Array<OepaTableColumn>;
36
+ hiddenColumns: Array<OepaTableColumn>;
37
+ columnHeaders: Array<string>;
38
+ _data: Array<OepaTableRow>;
39
+ private _config;
40
+ private currentFilters;
41
+ dataHasDetails: boolean;
42
+ showAllDetails: boolean;
43
+ allRowsSelected: boolean;
44
+ pageInfo: OepaTablePageInfo;
45
+ currentPage: number;
46
+ paginationOn: boolean;
47
+ tableId: string;
48
+ allowEdit: boolean;
49
+ set config(conf: OepaTableConfig);
50
+ get config(): OepaTableConfig;
51
+ set complexHeader(hdrs: Array<OepaTableHeader>);
52
+ set header(hdr: OepaTableHeader);
53
+ customBtnLabel: string | undefined;
54
+ customBtnVisible: boolean;
55
+ customBtnEnabled: boolean;
56
+ customBtnLabel2: string | undefined;
57
+ customBtnVisible2: boolean;
58
+ customBtnEnabled2: boolean;
59
+ small: boolean;
60
+ cellClicked: EventEmitter<OepaTableCellClickEvent>;
61
+ actionClicked: EventEmitter<OepaActionEvent>;
62
+ rowSelected: EventEmitter<Array<OepaTableRow>>;
63
+ customBtnClicked: EventEmitter<void>;
64
+ customBtn2Clicked: EventEmitter<void>;
65
+ pColumns: OepaPColumn[];
66
+ private resetHeaders;
67
+ private initializeHiddenColumns;
68
+ set data(values: Array<OepaTableRow>);
69
+ get data(): Array<OepaTableRow>;
70
+ totalRow: OepaTableRow | undefined;
71
+ constructor(sanitizer: DomSanitizer, tableService: TableService, tableExportService: TableExportService, fileUtilService: OepaFileUtilService, elRef: ElementRef);
72
+ ngOnInit(): void;
73
+ ngAfterViewChecked(): void;
74
+ private extractInnerColumns;
75
+ private extractColumnHeaders;
76
+ private extractDataColumns;
77
+ sanitize(html: string): SafeHtml;
78
+ /**
79
+ * Check to see if any filters are set
80
+ */
81
+ noFilters(): boolean;
82
+ /**
83
+ * Retrieve the global filter string (if any) as a RegExp
84
+ */
85
+ private getGlobalFilter;
86
+ /**
87
+ * Retrieve the filter for the specified column (if any) as a RegExp.
88
+ * @param columnId
89
+ */
90
+ private getFilterForColumn;
91
+ /**
92
+ * Filter the table data provided by the global or column-specific
93
+ * filters set in the UI.
94
+ * @param data
95
+ */
96
+ private filterData;
97
+ /**
98
+ * Test if row matches any of the columnn filters that may be set.
99
+ * @param row
100
+ */
101
+ private filterByColumnFilters;
102
+ /**
103
+ * Test if row matches the global filter
104
+ * @param row
105
+ */
106
+ private filterByGlobalFilter;
107
+ hideColumn(column: OepaTableColumn): void;
108
+ unhideColumn(columnId: string): void;
109
+ private sortData;
110
+ resetColumnSortIndexes(sortCriteria: OepaTableSortCriterion[]): void;
111
+ /**
112
+ * Retrieve the display value of the specified cell.
113
+ * @param row
114
+ * @param columnId
115
+ */
116
+ getRowValue(row: OepaTableRow, columnId: string): any;
117
+ isCellValueHidden(row: OepaTableRow, columnId: string): boolean;
118
+ /**
119
+ *
120
+ * @param row Retrieve the sort value of the specified cell (will default to display value if sort
121
+ * value is not specified).
122
+ * @param columnId
123
+ */
124
+ getRowSortValue(row: OepaTableRow, columnId: string): any;
125
+ changePage(data?: Array<OepaTableRow>): Array<OepaTableRow>;
126
+ togglePagingation(): void;
127
+ onFilterChanged(filter: OepaTableFilter): void;
128
+ onSortChanged(column: OepaTableColumn): void;
129
+ onPageChanged(pageEvent: PageChangedEvent): void;
130
+ private updateTable;
131
+ private updatePage;
132
+ private checkForDetails;
133
+ toggleAllDetails(): void;
134
+ toggleRowDetail(toggleRow: OepaTableRow): void;
135
+ isActionColumn(columnId: string): boolean;
136
+ isColumnHidden(columnId: string): boolean;
137
+ getHiddenColumns(): Array<OepaTableColumn>;
138
+ cellClick(event: TableDataCellClickEvent): void;
139
+ onActionClick(event: OepaActionEvent): void;
140
+ toggleAllRowsSelection(): void;
141
+ toggleRowSelection(row: OepaTableRow): void;
142
+ singleRowSelection(row: OepaTableRow): void;
143
+ private prepareRowsForExport;
144
+ private simplifyCells;
145
+ gatherTableData(rows: OepaTableRow[]): OepaTable;
146
+ private dumpDetailRows;
147
+ convertToTable(template: OepaTemplateInfo): OepaTable | undefined;
148
+ toggleExportVisibleOnly(): void;
149
+ exportToExcel(): void;
150
+ exportToHTML(): void;
151
+ onCustomBtnClick(): void;
152
+ onCustomBtn2Click(): void;
153
+ static ɵfac: i0.ɵɵFactoryDeclaration<PTableComponent, never>;
154
+ static ɵcmp: i0.ɵɵComponentDeclaration<PTableComponent, "oepa-p-table", never, { "tableId": { "alias": "tableId"; "required": false; }; "allowEdit": { "alias": "allowEdit"; "required": false; }; "config": { "alias": "config"; "required": false; }; "complexHeader": { "alias": "complexHeader"; "required": false; }; "header": { "alias": "header"; "required": false; }; "customBtnLabel": { "alias": "customBtnLabel"; "required": false; }; "customBtnVisible": { "alias": "customBtnVisible"; "required": false; }; "customBtnEnabled": { "alias": "customBtnEnabled"; "required": false; }; "customBtnLabel2": { "alias": "customBtnLabel2"; "required": false; }; "customBtnVisible2": { "alias": "customBtnVisible2"; "required": false; }; "customBtnEnabled2": { "alias": "customBtnEnabled2"; "required": false; }; "small": { "alias": "small"; "required": false; }; "data": { "alias": "data"; "required": false; }; "totalRow": { "alias": "totalRow"; "required": false; }; }, { "cellClicked": "cellClicked"; "actionClicked": "actionClicked"; "rowSelected": "rowSelected"; "customBtnClicked": "customBtnClicked"; "customBtn2Clicked": "customBtn2Clicked"; }, never, never, false, never>;
155
+ }
@@ -0,0 +1,5 @@
1
+ import { OepaTableRow } from "../oepa-table-row";
2
+ export interface TableDataCellClickEvent {
3
+ row: OepaTableRow;
4
+ columnID: string;
5
+ }
@@ -0,0 +1,23 @@
1
+ import { EventEmitter } from '@angular/core';
2
+ import { TableDataCellClickEvent } from './table-data-cell-click-event';
3
+ import { OepaTableColumn } from '../oepa-table-column';
4
+ import { OepaTableRow } from '../oepa-table-row';
5
+ import { OepaActionEvent } from '../../action-btn/oepa-action-event';
6
+ import * as i0 from "@angular/core";
7
+ export declare class TableDataCellComponent {
8
+ col: OepaTableColumn;
9
+ row: OepaTableRow;
10
+ i: number;
11
+ r: number;
12
+ tableId: string;
13
+ onCellClick: EventEmitter<TableDataCellClickEvent>;
14
+ onToggleRowSelection: EventEmitter<OepaTableRow>;
15
+ onSingleRowSelection: EventEmitter<OepaTableRow>;
16
+ onActionClick: EventEmitter<OepaActionEvent>;
17
+ cellClick(row: OepaTableRow, columnID: string): void;
18
+ toggleRowSelection(row: OepaTableRow): void;
19
+ singleRowSelection(row: OepaTableRow): void;
20
+ actionClick(event: OepaActionEvent): void;
21
+ static ɵfac: i0.ɵɵFactoryDeclaration<TableDataCellComponent, never>;
22
+ static ɵcmp: i0.ɵɵComponentDeclaration<TableDataCellComponent, "oepa-table-data-cell", never, { "col": { "alias": "col"; "required": false; }; "row": { "alias": "row"; "required": false; }; "i": { "alias": "i"; "required": false; }; "r": { "alias": "r"; "required": false; }; "tableId": { "alias": "tableId"; "required": false; }; }, { "onCellClick": "onCellClick"; "onToggleRowSelection": "onToggleRowSelection"; "onSingleRowSelection": "onSingleRowSelection"; "onActionClick": "onActionClick"; }, never, never, false, never>;
23
+ }
@@ -0,0 +1,33 @@
1
+ import { Observable } from 'rxjs';
2
+ import { HttpClient } from '@angular/common/http';
3
+ import { OepaTable } from './oepa-table';
4
+ import { OepaTableConfig } from './oepa-table-config';
5
+ import * as i0 from "@angular/core";
6
+ export declare class TableExportService {
7
+ private http;
8
+ private downloadHTMLUrl;
9
+ private downloadExcelUrl;
10
+ private downloadDummyHTMLUrl;
11
+ private downloadDummyExcelUrl;
12
+ constructor(http: HttpClient);
13
+ /**
14
+ * Return a string representing the contents of table as HTML.
15
+ * @param table
16
+ */
17
+ downloadHTML(table: OepaTable, config: OepaTableConfig): Observable<string>;
18
+ /**
19
+ * Return a string representing the contents of table as an Excel file.
20
+ * @param table
21
+ */
22
+ downloadExcel(table: OepaTable, config: OepaTableConfig): Observable<any>;
23
+ /**
24
+ * Dummy method for testing HTML download.
25
+ */
26
+ downloadDummyHTML(): Observable<string>;
27
+ /**
28
+ * Dummy method for testing Excel download.
29
+ */
30
+ downloadDummyExcel(): Observable<any>;
31
+ static ɵfac: i0.ɵɵFactoryDeclaration<TableExportService, never>;
32
+ static ɵprov: i0.ɵɵInjectableDeclaration<TableExportService>;
33
+ }
@@ -0,0 +1,24 @@
1
+ import { EventEmitter, OnInit } from '@angular/core';
2
+ import { OepaTableColumn } from '../oepa-table-column';
3
+ import { OepaTableFilter } from '../oepa-table-filter';
4
+ import { Subject } from 'rxjs';
5
+ import * as i0 from "@angular/core";
6
+ export declare class TableHeaderCellComponent implements OnInit {
7
+ column: OepaTableColumn;
8
+ tableId: string;
9
+ allRowsSelected: boolean;
10
+ rowCount: number;
11
+ noFiltersSubject: Subject<boolean>;
12
+ noFilters: boolean;
13
+ onToggleAllRowsSelection: EventEmitter<void>;
14
+ onSortChanged: EventEmitter<OepaTableColumn>;
15
+ onHideColumn: EventEmitter<OepaTableColumn>;
16
+ onFilterChanged: EventEmitter<OepaTableFilter>;
17
+ ngOnInit(): void;
18
+ toggleAllRowsSelection(): void;
19
+ sortChanged(column: OepaTableColumn): void;
20
+ hideColumn(column: OepaTableColumn): void;
21
+ filterChanged(filter: OepaTableFilter): void;
22
+ static ɵfac: i0.ɵɵFactoryDeclaration<TableHeaderCellComponent, never>;
23
+ static ɵcmp: i0.ɵɵComponentDeclaration<TableHeaderCellComponent, "oepa-table-header-cell", never, { "column": { "alias": "column"; "required": false; }; "tableId": { "alias": "tableId"; "required": false; }; "allRowsSelected": { "alias": "allRowsSelected"; "required": false; }; "rowCount": { "alias": "rowCount"; "required": false; }; "noFiltersSubject": { "alias": "noFiltersSubject"; "required": false; }; }, { "onToggleAllRowsSelection": "onToggleAllRowsSelection"; "onSortChanged": "onSortChanged"; "onHideColumn": "onHideColumn"; "onFilterChanged": "onFilterChanged"; }, never, never, false, never>;
24
+ }
@@ -0,0 +1,144 @@
1
+ import { EventEmitter, OnInit } from '@angular/core';
2
+ import { DomSanitizer, SafeHtml } from '@angular/platform-browser';
3
+ import { OepaTable } from './oepa-table';
4
+ import { OepaTableConfig } from './oepa-table-config';
5
+ import { OepaTableHeader } from './oepa-table-header';
6
+ import { OepaTableColumn } from './oepa-table-column';
7
+ import { OepaTableRow } from './oepa-table-row';
8
+ import { OepaTableFilter } from './oepa-table-filter';
9
+ import { OepaTablePageInfo } from './oepa-table-page-info';
10
+ import { OepaTableCellClickEvent } from './oepa-table-cell-click-event';
11
+ import { OepaActionEvent } from '../action-btn/oepa-action-event';
12
+ import { TableExportService } from './table-export.service';
13
+ import { OepaFileUtilService } from '@ohioepa/oepa-common-lib';
14
+ import { OepaTemplateInfo } from '@ohioepa/oepa-common-lib';
15
+ import { TableService } from './table.service';
16
+ import { OepaTableSortCriterion } from './oepa-table-sort-criterion';
17
+ import { PageChangedEvent } from 'ngx-bootstrap/pagination';
18
+ import * as i0 from "@angular/core";
19
+ export declare class TableComponent implements OnInit {
20
+ private sanitizer;
21
+ private tableService;
22
+ private tableExportService;
23
+ private fileUtilService;
24
+ showFilterRow: Boolean;
25
+ headerRows: Array<OepaTableHeader>;
26
+ rows: Array<OepaTableRow>;
27
+ visibleColumnCount: number;
28
+ allColumnCount: number;
29
+ exportVisibleOnly: boolean | undefined;
30
+ dataColumns: Array<OepaTableColumn>;
31
+ hiddenColumns: Array<OepaTableColumn>;
32
+ columnHeaders: Array<string>;
33
+ _data: Array<OepaTableRow>;
34
+ private _config;
35
+ private currentFilters;
36
+ dataHasDetails: boolean;
37
+ showAllDetails: boolean;
38
+ allRowsSelected: boolean;
39
+ pageInfo: OepaTablePageInfo;
40
+ currentPage: number;
41
+ paginationOn: boolean;
42
+ tableId: string;
43
+ set config(conf: OepaTableConfig);
44
+ get config(): OepaTableConfig;
45
+ set complexHeader(hdrs: Array<OepaTableHeader>);
46
+ set header(hdr: OepaTableHeader);
47
+ customBtnLabel: string | undefined;
48
+ customBtnVisible: boolean;
49
+ customBtnEnabled: boolean;
50
+ cellClicked: EventEmitter<OepaTableCellClickEvent>;
51
+ actionClicked: EventEmitter<OepaActionEvent>;
52
+ rowSelected: EventEmitter<Array<OepaTableRow>>;
53
+ customBtnClicked: EventEmitter<void>;
54
+ private resetHeaders;
55
+ private initializeHiddenColumns;
56
+ set data(values: Array<OepaTableRow>);
57
+ get data(): Array<OepaTableRow>;
58
+ totalRow: OepaTableRow | undefined;
59
+ constructor(sanitizer: DomSanitizer, tableService: TableService, tableExportService: TableExportService, fileUtilService: OepaFileUtilService);
60
+ ngOnInit(): void;
61
+ private extractInnerColumns;
62
+ private extractColumnHeaders;
63
+ private extractDataColumns;
64
+ sanitize(html: string): SafeHtml;
65
+ /**
66
+ * Check to see if any filters are set
67
+ */
68
+ noFilters(): boolean;
69
+ /**
70
+ * Retrieve the global filter string (if any) as a RegExp
71
+ */
72
+ private getGlobalFilter;
73
+ /**
74
+ * Retrieve the filter for the specified column (if any) as a RegExp.
75
+ * @param columnId
76
+ */
77
+ private getFilterForColumn;
78
+ /**
79
+ * Filter the table data provided by the global or column-specific
80
+ * filters set in the UI.
81
+ * @param data
82
+ */
83
+ private filterData;
84
+ /**
85
+ * Test if row matches any of the columnn filters that may be set.
86
+ * @param row
87
+ */
88
+ private filterByColumnFilters;
89
+ /**
90
+ * Test if row matches the global filter
91
+ * @param row
92
+ */
93
+ private filterByGlobalFilter;
94
+ hideColumn(column: OepaTableColumn): void;
95
+ unhideColumn(columnId: string): void;
96
+ private sortData;
97
+ resetColumnSortIndexes(sortCriteria: OepaTableSortCriterion[]): void;
98
+ /**
99
+ * Retrieve the display value of the specified cell.
100
+ * @param row
101
+ * @param columnId
102
+ */
103
+ getRowValue(row: OepaTableRow, columnId: string): any;
104
+ /**
105
+ *
106
+ * @param row Retrieve the sort value of the specified cell (will default to display value if sort
107
+ * value is not specified).
108
+ * @param columnId
109
+ */
110
+ getRowSortValue(row: OepaTableRow, columnId: string): any;
111
+ changePage(data?: Array<OepaTableRow>): Array<OepaTableRow>;
112
+ togglePagingation(): void;
113
+ onFilterChanged(filter: OepaTableFilter): void;
114
+ onSortChanged(column: OepaTableColumn): void;
115
+ onPageChanged(pageEvent: PageChangedEvent): void;
116
+ private updateTable;
117
+ private updatePage;
118
+ private checkForDetails;
119
+ toggleAllDetails(): void;
120
+ toggleRowDetail(toggleRow: OepaTableRow): void;
121
+ isActionColumn(columnId: string): boolean;
122
+ isColumnHidden(columnId: string): boolean;
123
+ getHiddenColumns(): Array<OepaTableColumn>;
124
+ getCellClassName(row: OepaTableRow, columnId: string): string;
125
+ getCellColSpan(row: OepaTableRow, columnId: string): number;
126
+ getCellIconClassName(row: OepaTableRow, columnId: string): string;
127
+ getCellImgSrc(row: OepaTableRow, columnId: string): string;
128
+ getCellInnerHTML(row: OepaTableRow, columnId: string): string;
129
+ cellClick(row: OepaTableRow, columnId: string): void;
130
+ onActionClick(event: OepaActionEvent): void;
131
+ toggleAllRowsSelection(): void;
132
+ toggleRowSelection(row: OepaTableRow): void;
133
+ singleRowSelection(row: OepaTableRow): void;
134
+ private prepareRowsForExport;
135
+ gatherTableData(rows: OepaTableRow[]): OepaTable;
136
+ private dumpDetailRows;
137
+ convertToTable(template: OepaTemplateInfo): OepaTable | undefined;
138
+ toggleExportVisibleOnly(): void;
139
+ exportToExcel(): void;
140
+ exportToHTML(): void;
141
+ onCustomBtnClick(): void;
142
+ static ɵfac: i0.ɵɵFactoryDeclaration<TableComponent, never>;
143
+ static ɵcmp: i0.ɵɵComponentDeclaration<TableComponent, "oepa-table", never, { "tableId": { "alias": "tableId"; "required": false; }; "config": { "alias": "config"; "required": false; }; "complexHeader": { "alias": "complexHeader"; "required": false; }; "header": { "alias": "header"; "required": false; }; "customBtnLabel": { "alias": "customBtnLabel"; "required": false; }; "customBtnVisible": { "alias": "customBtnVisible"; "required": false; }; "customBtnEnabled": { "alias": "customBtnEnabled"; "required": false; }; "data": { "alias": "data"; "required": false; }; "totalRow": { "alias": "totalRow"; "required": false; }; }, { "cellClicked": "cellClicked"; "actionClicked": "actionClicked"; "rowSelected": "rowSelected"; "customBtnClicked": "customBtnClicked"; }, never, never, false, never>;
144
+ }
@@ -0,0 +1,28 @@
1
+ import { OepaTableColumn } from './oepa-table-column';
2
+ import { OepaTableRow } from './oepa-table-row';
3
+ import { OepaTableSortCriterion } from './oepa-table-sort-criterion';
4
+ import * as i0 from "@angular/core";
5
+ export declare class TableService {
6
+ private filterInfo;
7
+ private sortInfo;
8
+ private idSuffix;
9
+ private pageInfo;
10
+ private dataInfo;
11
+ reset(tableId: string): void;
12
+ nextIdSuffix(): number;
13
+ clearSortInfo(tableId: string): void;
14
+ clearFilterInfo(tableId: string): void;
15
+ clearPageInfo(tableId: string): void;
16
+ clearDataInfo(tableId: string): void;
17
+ setFilter(tableId: string, columnId: string, filter: string): void;
18
+ getFilter(tableId: string, columnId: string): string;
19
+ setSort(tableId: string, column: OepaTableColumn): void;
20
+ getSortCriterion(tableId: string, columnId: string): OepaTableSortCriterion | undefined;
21
+ getSortCriteria(tableId: string): OepaTableSortCriterion[];
22
+ setPage(tableId: string, pageNumber: number): void;
23
+ getPage(tableId: string): number;
24
+ setData(tableId: string, data: Array<OepaTableRow>): void;
25
+ getData(tableId: string): Array<OepaTableRow>;
26
+ static ɵfac: i0.ɵɵFactoryDeclaration<TableService, never>;
27
+ static ɵprov: i0.ɵɵInjectableDeclaration<TableService>;
28
+ }