@recursyve/nice-data-filter-kit 18.0.2 → 20.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (256) hide show
  1. package/_index.scss +1 -1
  2. package/fesm2022/recursyve-nice-data-filter-kit.mjs +391 -327
  3. package/fesm2022/recursyve-nice-data-filter-kit.mjs.map +1 -1
  4. package/index.d.ts +1681 -5
  5. package/package.json +9 -11
  6. package/src/lib/components/base-list/base-list.theme.scss +10 -9
  7. package/src/lib/components/nice-filter-view/components/advanced-filters/advanced-filters.theme.scss +4 -4
  8. package/src/lib/components/nice-filter-view/components/advanced-filters/rule/rule.theme.scss +6 -5
  9. package/src/lib/components/query-builder/query-builder.theme.scss +9 -8
  10. package/src/lib/components/query-builder/rule/rule.theme.scss +8 -7
  11. package/src/lib/nice-data-filter.theme.scss +6 -6
  12. package/esm2022/lib/api/dto/saved-reports.dto.mjs +0 -2
  13. package/esm2022/lib/api/filter.api.mjs +0 -113
  14. package/esm2022/lib/api/models/saved-reports.model.mjs +0 -2
  15. package/esm2022/lib/api/public-api.mjs +0 -2
  16. package/esm2022/lib/api/saved-report.api.mjs +0 -48
  17. package/esm2022/lib/components/base-list/base-list.component.mjs +0 -338
  18. package/esm2022/lib/components/base-list/base-list.constant.mjs +0 -11
  19. package/esm2022/lib/components/base-list/base-list.module.mjs +0 -185
  20. package/esm2022/lib/components/base-list/directives/base-list-buttons.directive.mjs +0 -17
  21. package/esm2022/lib/components/base-list/directives/base-list-cards.directive.mjs +0 -14
  22. package/esm2022/lib/components/base-list/directives/base-list-custom-content.directive.mjs +0 -14
  23. package/esm2022/lib/components/base-list/directives/base-list-directives.module.mjs +0 -55
  24. package/esm2022/lib/components/base-list/directives/base-list-empty-search-result-state.directive.mjs +0 -14
  25. package/esm2022/lib/components/base-list/directives/base-list-empty-state.directive.mjs +0 -14
  26. package/esm2022/lib/components/base-list/directives/base-list-filters.directive.mjs +0 -14
  27. package/esm2022/lib/components/base-list/directives/base-list-table.directive.mjs +0 -17
  28. package/esm2022/lib/components/base-list/directives/base-list-title.directive.mjs +0 -14
  29. package/esm2022/lib/components/base-list/models/columns.model.mjs +0 -8
  30. package/esm2022/lib/components/base-list/models/export.model.mjs +0 -2
  31. package/esm2022/lib/components/base-list/models/icons.model.mjs +0 -18
  32. package/esm2022/lib/components/base-list/models/layout.model.mjs +0 -149
  33. package/esm2022/lib/components/base-list/providers/base-filter.service.mjs +0 -36
  34. package/esm2022/lib/components/base-list/providers/base-list-saved-report.service.mjs +0 -33
  35. package/esm2022/lib/components/base-list/public-api.mjs +0 -19
  36. package/esm2022/lib/components/base-list/store/base-list.query.mjs +0 -51
  37. package/esm2022/lib/components/base-list/store/base-list.service.mjs +0 -375
  38. package/esm2022/lib/components/base-list/store/base-list.store.mjs +0 -88
  39. package/esm2022/lib/components/multi-state-list/models/list-states.model.mjs +0 -3
  40. package/esm2022/lib/components/multi-state-list/multi-state-list.component.mjs +0 -73
  41. package/esm2022/lib/components/multi-state-list/multi-state-list.constant.mjs +0 -3
  42. package/esm2022/lib/components/multi-state-list/multi-state-list.module.mjs +0 -140
  43. package/esm2022/lib/components/multi-state-list/providers/multi-state-filter.service.mjs +0 -11
  44. package/esm2022/lib/components/multi-state-list/public-api.mjs +0 -8
  45. package/esm2022/lib/components/multi-state-list/store/multi-state-list.query.mjs +0 -17
  46. package/esm2022/lib/components/multi-state-list/store/multi-state-list.service.mjs +0 -48
  47. package/esm2022/lib/components/multi-state-list/store/multi-state-list.store.mjs +0 -24
  48. package/esm2022/lib/components/nice-filter-view/components/advanced-filters/advanced-filters-trigger.directive.mjs +0 -83
  49. package/esm2022/lib/components/nice-filter-view/components/advanced-filters/advanced-filters.component.mjs +0 -120
  50. package/esm2022/lib/components/nice-filter-view/components/advanced-filters/advanced-filters.constant.mjs +0 -4
  51. package/esm2022/lib/components/nice-filter-view/components/advanced-filters/advanced-filters.form.mjs +0 -121
  52. package/esm2022/lib/components/nice-filter-view/components/advanced-filters/advanced-filters.module.mjs +0 -152
  53. package/esm2022/lib/components/nice-filter-view/components/advanced-filters/button/advanced-filters-button.component.mjs +0 -43
  54. package/esm2022/lib/components/nice-filter-view/components/advanced-filters/filter-selection/filter-selection.component.mjs +0 -49
  55. package/esm2022/lib/components/nice-filter-view/components/advanced-filters/models/advanced-date-filter-options.model.mjs +0 -2
  56. package/esm2022/lib/components/nice-filter-view/components/advanced-filters/models/icons.model.mjs +0 -24
  57. package/esm2022/lib/components/nice-filter-view/components/advanced-filters/providers/async-typeahead.provider.mjs +0 -41
  58. package/esm2022/lib/components/nice-filter-view/components/advanced-filters/public-api.mjs +0 -10
  59. package/esm2022/lib/components/nice-filter-view/components/advanced-filters/rule/components/date/date-filter.component.mjs +0 -52
  60. package/esm2022/lib/components/nice-filter-view/components/advanced-filters/rule/components/filter.component.mjs +0 -29
  61. package/esm2022/lib/components/nice-filter-view/components/advanced-filters/rule/components/number/number-filter.component.mjs +0 -28
  62. package/esm2022/lib/components/nice-filter-view/components/advanced-filters/rule/components/options/options-filter.component.mjs +0 -33
  63. package/esm2022/lib/components/nice-filter-view/components/advanced-filters/rule/components/radio/radio-filter.component.mjs +0 -30
  64. package/esm2022/lib/components/nice-filter-view/components/advanced-filters/rule/components/select/select-filter.component.mjs +0 -60
  65. package/esm2022/lib/components/nice-filter-view/components/advanced-filters/rule/components/text/text-filter.component.mjs +0 -31
  66. package/esm2022/lib/components/nice-filter-view/components/advanced-filters/rule/rule.component.mjs +0 -72
  67. package/esm2022/lib/components/nice-filter-view/components/advanced-filters/utils/advanced-filters.utils.mjs +0 -80
  68. package/esm2022/lib/components/nice-filter-view/components/common/data.directive.mjs +0 -14
  69. package/esm2022/lib/components/nice-filter-view/components/custom-data-view/custom-data-view.component.mjs +0 -22
  70. package/esm2022/lib/components/nice-filter-view/components/export-buttons/export-buttons.component.mjs +0 -115
  71. package/esm2022/lib/components/nice-filter-view/components/export-buttons/export.directive.mjs +0 -27
  72. package/esm2022/lib/components/nice-filter-view/components/infinite-scroll-data-view/infinite-scroll-data-view.component.mjs +0 -37
  73. package/esm2022/lib/components/nice-filter-view/components/search/search.component.mjs +0 -60
  74. package/esm2022/lib/components/nice-filter-view/directives/mat-paginator.mjs +0 -42
  75. package/esm2022/lib/components/nice-filter-view/directives/mat-sort.mjs +0 -52
  76. package/esm2022/lib/components/nice-filter-view/directives/mat-tables.mjs +0 -22
  77. package/esm2022/lib/components/nice-filter-view/directives/query-params.directive.mjs +0 -94
  78. package/esm2022/lib/components/nice-filter-view/models/order-options.model.mjs +0 -2
  79. package/esm2022/lib/components/nice-filter-view/nice-base-filter-view.component.mjs +0 -181
  80. package/esm2022/lib/components/nice-filter-view/nice-filter-view.component.mjs +0 -34
  81. package/esm2022/lib/components/nice-filter-view/nice-filter-view.constant.mjs +0 -6
  82. package/esm2022/lib/components/nice-filter-view/nice-filter-view.module.mjs +0 -147
  83. package/esm2022/lib/components/nice-filter-view/nice-nested-filter-view.mjs +0 -46
  84. package/esm2022/lib/components/nice-filter-view/pipes/filter-group-icon.pipe.mjs +0 -32
  85. package/esm2022/lib/components/nice-filter-view/public-api.mjs +0 -18
  86. package/esm2022/lib/components/nice-filter-view/store/nice-filter-view.query.mjs +0 -41
  87. package/esm2022/lib/components/nice-filter-view/store/nice-filter-view.service.mjs +0 -290
  88. package/esm2022/lib/components/nice-filter-view/store/nice-filter-view.store.mjs +0 -236
  89. package/esm2022/lib/components/public-api.mjs +0 -5
  90. package/esm2022/lib/components/query-builder/filter-selection/filter-selection.component.mjs +0 -42
  91. package/esm2022/lib/components/query-builder/models/icons.model.mjs +0 -18
  92. package/esm2022/lib/components/query-builder/pipes/filter-group-icon.pipe.mjs +0 -32
  93. package/esm2022/lib/components/query-builder/providers/filter-group.service.mjs +0 -3
  94. package/esm2022/lib/components/query-builder/public-api.mjs +0 -15
  95. package/esm2022/lib/components/query-builder/query-builder-trigger.directive.mjs +0 -79
  96. package/esm2022/lib/components/query-builder/query-builder.component.mjs +0 -100
  97. package/esm2022/lib/components/query-builder/query-builder.constant.mjs +0 -3
  98. package/esm2022/lib/components/query-builder/query-builder.form.mjs +0 -79
  99. package/esm2022/lib/components/query-builder/query-builder.module.mjs +0 -128
  100. package/esm2022/lib/components/query-builder/rule/components/date/date-filter.component.mjs +0 -40
  101. package/esm2022/lib/components/query-builder/rule/components/filter.component.mjs +0 -29
  102. package/esm2022/lib/components/query-builder/rule/components/number/number-filter.component.mjs +0 -28
  103. package/esm2022/lib/components/query-builder/rule/components/radio/radio-filter.component.mjs +0 -30
  104. package/esm2022/lib/components/query-builder/rule/components/select/select-filter.component.mjs +0 -87
  105. package/esm2022/lib/components/query-builder/rule/components/text/text-filter.component.mjs +0 -31
  106. package/esm2022/lib/components/query-builder/rule/rule.component.mjs +0 -85
  107. package/esm2022/lib/components/query-builder/utils/qb-filter.utils.mjs +0 -90
  108. package/esm2022/lib/directive/public-api.mjs +0 -2
  109. package/esm2022/lib/directive/selectable-list/model/load-all-entities-options.model.mjs +0 -2
  110. package/esm2022/lib/directive/selectable-list/model/selectable-list-options.model.mjs +0 -2
  111. package/esm2022/lib/directive/selectable-list/providers/preload-selected-entities.provider.mjs +0 -10
  112. package/esm2022/lib/directive/selectable-list/providers/selectable-list-content.service.mjs +0 -37
  113. package/esm2022/lib/directive/selectable-list/public-api.mjs +0 -12
  114. package/esm2022/lib/directive/selectable-list/selectable-list-checkbox.directive.mjs +0 -164
  115. package/esm2022/lib/directive/selectable-list/selectable-list-select-all.directive.mjs +0 -48
  116. package/esm2022/lib/directive/selectable-list/selectable-list-state.directive.mjs +0 -50
  117. package/esm2022/lib/directive/selectable-list/selectable-list.constant.mjs +0 -3
  118. package/esm2022/lib/directive/selectable-list/selectable-list.directive.mjs +0 -95
  119. package/esm2022/lib/directive/selectable-list/selectable-list.module.mjs +0 -31
  120. package/esm2022/lib/directive/selectable-list/store/selectable-list-state.query.mjs +0 -32
  121. package/esm2022/lib/directive/selectable-list/store/selectable-list-state.service.mjs +0 -220
  122. package/esm2022/lib/directive/selectable-list/store/selectable-list.service.mjs +0 -59
  123. package/esm2022/lib/directive/selectable-list/store/selectable-list.state.mjs +0 -2
  124. package/esm2022/lib/models/filter.model.mjs +0 -10
  125. package/esm2022/lib/models/public-api.mjs +0 -3
  126. package/esm2022/lib/models/query.model.mjs +0 -25
  127. package/esm2022/lib/utils/date.adapter.mjs +0 -34
  128. package/esm2022/lib/utils/filter.utils.mjs +0 -42
  129. package/esm2022/lib/utils/order.utils.mjs +0 -28
  130. package/esm2022/lib/utils/public-api.mjs +0 -5
  131. package/esm2022/lib/utils/query-params.utils.mjs +0 -70
  132. package/esm2022/lib/utils/string.utils.mjs +0 -9
  133. package/esm2022/public-api.mjs +0 -9
  134. package/esm2022/recursyve-nice-data-filter-kit.mjs +0 -5
  135. package/lib/api/dto/saved-reports.dto.d.ts +0 -6
  136. package/lib/api/filter.api.d.ts +0 -59
  137. package/lib/api/models/saved-reports.model.d.ts +0 -5
  138. package/lib/api/public-api.d.ts +0 -1
  139. package/lib/api/saved-report.api.d.ts +0 -20
  140. package/lib/components/base-list/base-list.component.d.ts +0 -109
  141. package/lib/components/base-list/base-list.constant.d.ts +0 -10
  142. package/lib/components/base-list/base-list.module.d.ts +0 -59
  143. package/lib/components/base-list/directives/base-list-buttons.directive.d.ts +0 -9
  144. package/lib/components/base-list/directives/base-list-cards.directive.d.ts +0 -8
  145. package/lib/components/base-list/directives/base-list-custom-content.directive.d.ts +0 -8
  146. package/lib/components/base-list/directives/base-list-directives.module.d.ts +0 -14
  147. package/lib/components/base-list/directives/base-list-empty-search-result-state.directive.d.ts +0 -8
  148. package/lib/components/base-list/directives/base-list-empty-state.directive.d.ts +0 -8
  149. package/lib/components/base-list/directives/base-list-filters.directive.d.ts +0 -8
  150. package/lib/components/base-list/directives/base-list-table.directive.d.ts +0 -9
  151. package/lib/components/base-list/directives/base-list-title.directive.d.ts +0 -8
  152. package/lib/components/base-list/models/columns.model.d.ts +0 -10
  153. package/lib/components/base-list/models/export.model.d.ts +0 -5
  154. package/lib/components/base-list/models/icons.model.d.ts +0 -19
  155. package/lib/components/base-list/models/layout.model.d.ts +0 -26
  156. package/lib/components/base-list/providers/base-filter.service.d.ts +0 -23
  157. package/lib/components/base-list/providers/base-list-saved-report.service.d.ts +0 -17
  158. package/lib/components/base-list/public-api.d.ts +0 -18
  159. package/lib/components/base-list/store/base-list.query.d.ts +0 -19
  160. package/lib/components/base-list/store/base-list.service.d.ts +0 -57
  161. package/lib/components/base-list/store/base-list.store.d.ts +0 -26
  162. package/lib/components/multi-state-list/models/list-states.model.d.ts +0 -10
  163. package/lib/components/multi-state-list/multi-state-list.component.d.ts +0 -18
  164. package/lib/components/multi-state-list/multi-state-list.constant.d.ts +0 -2
  165. package/lib/components/multi-state-list/multi-state-list.module.d.ts +0 -44
  166. package/lib/components/multi-state-list/providers/multi-state-filter.service.d.ts +0 -11
  167. package/lib/components/multi-state-list/public-api.d.ts +0 -7
  168. package/lib/components/multi-state-list/store/multi-state-list.query.d.ts +0 -9
  169. package/lib/components/multi-state-list/store/multi-state-list.service.d.ts +0 -19
  170. package/lib/components/multi-state-list/store/multi-state-list.store.d.ts +0 -10
  171. package/lib/components/nice-filter-view/components/advanced-filters/advanced-filters-trigger.directive.d.ts +0 -27
  172. package/lib/components/nice-filter-view/components/advanced-filters/advanced-filters.component.d.ts +0 -31
  173. package/lib/components/nice-filter-view/components/advanced-filters/advanced-filters.constant.d.ts +0 -3
  174. package/lib/components/nice-filter-view/components/advanced-filters/advanced-filters.form.d.ts +0 -19
  175. package/lib/components/nice-filter-view/components/advanced-filters/advanced-filters.module.d.ts +0 -44
  176. package/lib/components/nice-filter-view/components/advanced-filters/button/advanced-filters-button.component.d.ts +0 -17
  177. package/lib/components/nice-filter-view/components/advanced-filters/filter-selection/filter-selection.component.d.ts +0 -16
  178. package/lib/components/nice-filter-view/components/advanced-filters/models/advanced-date-filter-options.model.d.ts +0 -3
  179. package/lib/components/nice-filter-view/components/advanced-filters/models/icons.model.d.ts +0 -11
  180. package/lib/components/nice-filter-view/components/advanced-filters/providers/async-typeahead.provider.d.ts +0 -20
  181. package/lib/components/nice-filter-view/components/advanced-filters/public-api.d.ts +0 -9
  182. package/lib/components/nice-filter-view/components/advanced-filters/rule/components/date/date-filter.component.d.ts +0 -13
  183. package/lib/components/nice-filter-view/components/advanced-filters/rule/components/filter.component.d.ts +0 -13
  184. package/lib/components/nice-filter-view/components/advanced-filters/rule/components/number/number-filter.component.d.ts +0 -6
  185. package/lib/components/nice-filter-view/components/advanced-filters/rule/components/options/options-filter.component.d.ts +0 -8
  186. package/lib/components/nice-filter-view/components/advanced-filters/rule/components/radio/radio-filter.component.d.ts +0 -8
  187. package/lib/components/nice-filter-view/components/advanced-filters/rule/components/select/select-filter.component.d.ts +0 -18
  188. package/lib/components/nice-filter-view/components/advanced-filters/rule/components/text/text-filter.component.d.ts +0 -8
  189. package/lib/components/nice-filter-view/components/advanced-filters/rule/rule.component.d.ts +0 -26
  190. package/lib/components/nice-filter-view/components/advanced-filters/utils/advanced-filters.utils.d.ts +0 -11
  191. package/lib/components/nice-filter-view/components/common/data.directive.d.ts +0 -8
  192. package/lib/components/nice-filter-view/components/custom-data-view/custom-data-view.component.d.ts +0 -11
  193. package/lib/components/nice-filter-view/components/export-buttons/export-buttons.component.d.ts +0 -29
  194. package/lib/components/nice-filter-view/components/export-buttons/export.directive.d.ts +0 -11
  195. package/lib/components/nice-filter-view/components/infinite-scroll-data-view/infinite-scroll-data-view.component.d.ts +0 -14
  196. package/lib/components/nice-filter-view/components/search/search.component.d.ts +0 -20
  197. package/lib/components/nice-filter-view/directives/mat-paginator.d.ts +0 -12
  198. package/lib/components/nice-filter-view/directives/mat-sort.d.ts +0 -11
  199. package/lib/components/nice-filter-view/directives/mat-tables.d.ts +0 -12
  200. package/lib/components/nice-filter-view/directives/query-params.directive.d.ts +0 -23
  201. package/lib/components/nice-filter-view/models/order-options.model.d.ts +0 -7
  202. package/lib/components/nice-filter-view/nice-base-filter-view.component.d.ts +0 -84
  203. package/lib/components/nice-filter-view/nice-filter-view.component.d.ts +0 -12
  204. package/lib/components/nice-filter-view/nice-filter-view.constant.d.ts +0 -5
  205. package/lib/components/nice-filter-view/nice-filter-view.module.d.ts +0 -42
  206. package/lib/components/nice-filter-view/nice-nested-filter-view.d.ts +0 -23
  207. package/lib/components/nice-filter-view/pipes/filter-group-icon.pipe.d.ts +0 -11
  208. package/lib/components/nice-filter-view/public-api.d.ts +0 -17
  209. package/lib/components/nice-filter-view/store/nice-filter-view.query.d.ts +0 -20
  210. package/lib/components/nice-filter-view/store/nice-filter-view.service.d.ts +0 -47
  211. package/lib/components/nice-filter-view/store/nice-filter-view.store.d.ts +0 -41
  212. package/lib/components/public-api.d.ts +0 -4
  213. package/lib/components/query-builder/filter-selection/filter-selection.component.d.ts +0 -12
  214. package/lib/components/query-builder/models/icons.model.d.ts +0 -9
  215. package/lib/components/query-builder/pipes/filter-group-icon.pipe.d.ts +0 -11
  216. package/lib/components/query-builder/providers/filter-group.service.d.ts +0 -4
  217. package/lib/components/query-builder/public-api.d.ts +0 -14
  218. package/lib/components/query-builder/query-builder-trigger.directive.d.ts +0 -25
  219. package/lib/components/query-builder/query-builder.component.d.ts +0 -33
  220. package/lib/components/query-builder/query-builder.constant.d.ts +0 -2
  221. package/lib/components/query-builder/query-builder.form.d.ts +0 -18
  222. package/lib/components/query-builder/query-builder.module.d.ts +0 -37
  223. package/lib/components/query-builder/rule/components/date/date-filter.component.d.ts +0 -9
  224. package/lib/components/query-builder/rule/components/filter.component.d.ts +0 -13
  225. package/lib/components/query-builder/rule/components/number/number-filter.component.d.ts +0 -6
  226. package/lib/components/query-builder/rule/components/radio/radio-filter.component.d.ts +0 -8
  227. package/lib/components/query-builder/rule/components/select/select-filter.component.d.ts +0 -22
  228. package/lib/components/query-builder/rule/components/text/text-filter.component.d.ts +0 -8
  229. package/lib/components/query-builder/rule/rule.component.d.ts +0 -29
  230. package/lib/components/query-builder/utils/qb-filter.utils.d.ts +0 -12
  231. package/lib/directive/public-api.d.ts +0 -1
  232. package/lib/directive/selectable-list/model/load-all-entities-options.model.d.ts +0 -4
  233. package/lib/directive/selectable-list/model/selectable-list-options.model.d.ts +0 -7
  234. package/lib/directive/selectable-list/providers/preload-selected-entities.provider.d.ts +0 -12
  235. package/lib/directive/selectable-list/providers/selectable-list-content.service.d.ts +0 -18
  236. package/lib/directive/selectable-list/public-api.d.ts +0 -11
  237. package/lib/directive/selectable-list/selectable-list-checkbox.directive.d.ts +0 -27
  238. package/lib/directive/selectable-list/selectable-list-select-all.directive.d.ts +0 -18
  239. package/lib/directive/selectable-list/selectable-list-state.directive.d.ts +0 -24
  240. package/lib/directive/selectable-list/selectable-list.constant.d.ts +0 -2
  241. package/lib/directive/selectable-list/selectable-list.directive.d.ts +0 -27
  242. package/lib/directive/selectable-list/selectable-list.module.d.ts +0 -13
  243. package/lib/directive/selectable-list/store/selectable-list-state.query.d.ts +0 -10
  244. package/lib/directive/selectable-list/store/selectable-list-state.service.d.ts +0 -44
  245. package/lib/directive/selectable-list/store/selectable-list.service.d.ts +0 -27
  246. package/lib/directive/selectable-list/store/selectable-list.state.d.ts +0 -10
  247. package/lib/models/filter.model.d.ts +0 -79
  248. package/lib/models/public-api.d.ts +0 -2
  249. package/lib/models/query.model.d.ts +0 -41
  250. package/lib/utils/date.adapter.d.ts +0 -13
  251. package/lib/utils/filter.utils.d.ts +0 -5
  252. package/lib/utils/order.utils.d.ts +0 -7
  253. package/lib/utils/public-api.d.ts +0 -4
  254. package/lib/utils/query-params.utils.d.ts +0 -13
  255. package/lib/utils/string.utils.d.ts +0 -12
  256. package/public-api.d.ts +0 -5
package/index.d.ts CHANGED
@@ -1,5 +1,1681 @@
1
- /**
2
- * Generated bundle index. Do not edit.
3
- */
4
- /// <amd-module name="@recursyve/nice-data-filter-kit" />
5
- export * from './public-api';
1
+ import { HttpHeaders, HttpContext, HttpParams, HttpClient } from '@angular/common/http';
2
+ import * as i0 from '@angular/core';
3
+ import { Type, TemplateRef, ApplicationRef, OnInit, OnDestroy, OnChanges, EventEmitter, SimpleChanges, ElementRef, PipeTransform, ModuleWithProviders, Provider, ChangeDetectorRef, Injector, DoCheck, QueryList, AfterContentInit, ViewContainerRef } from '@angular/core';
4
+ import * as i2 from '@recursyve/nice-ui-kit.v2';
5
+ import { HttpOptions, NiceHttpExceptionFactory, Constructor, AbstractConstructor, ExportStrategy, NiceMediaWatcherService, NiceAsyncTypeaheadProvider, NiceAsyncTypeaheadSearchResult } from '@recursyve/nice-ui-kit.v2';
6
+ import * as rxjs from 'rxjs';
7
+ import { Observable, Subject } from 'rxjs';
8
+ import { Store, Query, EntityState, HashMap, EntityStore, QueryEntity, ActiveState } from '@datorama/akita';
9
+ import * as i6 from '@angular/router';
10
+ import { ActivatedRoute, Router } from '@angular/router';
11
+ import { AddEntitiesOptions } from '@datorama/akita/src/lib/addEntities';
12
+ import * as _recursyve_nice_data_filter_kit from '@recursyve/nice-data-filter-kit';
13
+ import * as i16$1 from '@angular/material/bottom-sheet';
14
+ import { MatBottomSheet } from '@angular/material/bottom-sheet';
15
+ import * as i11 from '@angular/material/paginator';
16
+ import { PageEvent, MatPaginator } from '@angular/material/paginator';
17
+ import * as i14$2 from '@angular/material/sort';
18
+ import { Sort, MatSort } from '@angular/material/sort';
19
+ import * as i15 from '@angular/common';
20
+ import * as i14 from '@angular/forms';
21
+ import { ControlValueAccessor, FormGroupName } from '@angular/forms';
22
+ import * as i7 from '@angular/material/button';
23
+ import * as i8 from '@angular/material/icon';
24
+ import * as i9 from '@angular/material/tooltip';
25
+ import * as i10 from '@angular/material/card';
26
+ import * as i12 from '@ngx-translate/core';
27
+ import { TranslateService } from '@ngx-translate/core';
28
+ import * as i13 from '@angular/material/table';
29
+ import { MatTable } from '@angular/material/table';
30
+ import * as i15$1 from '@angular/material/core';
31
+ import { NativeDateAdapter } from '@angular/material/core';
32
+ import { GeneratedFormGroup, GeneratedFormArray } from '@recursyve/ngx-form-generator';
33
+ import * as i14$1 from '@angular/cdk/overlay';
34
+ import { OverlayPositionBuilder, Overlay } from '@angular/cdk/overlay';
35
+ import { Platform } from '@angular/cdk/platform';
36
+ import * as i16 from '@angular/material/list';
37
+ import * as i20 from '@angular/material/select';
38
+ import * as i21 from '@angular/material/input';
39
+ import * as i22 from '@angular/material/datepicker';
40
+ import { MatDatepicker } from '@angular/material/datepicker';
41
+ import * as i23 from '@angular/material/radio';
42
+ import * as i25 from 'ngx-mask';
43
+ import * as i18 from '@angular/material/badge';
44
+ import { StoreConfigOptions } from '@datorama/akita/src/lib/storeConfig';
45
+ import * as i22$1 from '@angular/material/form-field';
46
+ import * as i25$1 from '@angular/material/button-toggle';
47
+ import { MatCheckbox } from '@angular/material/checkbox';
48
+
49
+ type Condition = "and" | "or";
50
+ declare enum FilterOperatorTypes {
51
+ Equal = "equal",
52
+ NotEqual = "not_equal",
53
+ In = "in",
54
+ NotIn = "not_in",
55
+ Less = "less",
56
+ LessOrEqual = "less_or_equal",
57
+ Greater = "greater",
58
+ GreaterOrEqual = "greater_or_equal",
59
+ Between = "between",
60
+ NotBetween = "not_between",
61
+ IsNull = "is_null",
62
+ IsNotNull = "is_not_null",
63
+ BeginsWith = "begins_with",
64
+ NotBeginsWith = "not_begins_with",
65
+ EndsWith = "ends_with",
66
+ NotEndsWith = "not_ends_with",
67
+ Contains = "contains",
68
+ NotContains = "not_contains",
69
+ IsEmpty = "is_empty",
70
+ IsNotEmpty = "is_not_empty",
71
+ None = "none"
72
+ }
73
+ interface CustomOperator {
74
+ name: string;
75
+ where?: any;
76
+ having?: any;
77
+ }
78
+ type FilterOperators = FilterOperatorTypes | CustomOperator;
79
+ interface RuleModel {
80
+ operation: FilterOperators;
81
+ value: unknown | unknown[];
82
+ }
83
+ interface QueryRuleModel extends RuleModel {
84
+ id: string;
85
+ }
86
+ interface QueryModel {
87
+ condition: Condition;
88
+ rules: (QueryRuleModel | QueryModel)[];
89
+ }
90
+
91
+ interface FilterParametersModel {
92
+ start?: number | null;
93
+ length?: number | null;
94
+ order?: OrderModel | null;
95
+ fallbackOrder?: OrderModel | OrderModel[] | null;
96
+ search?: string | null;
97
+ rules?: QueryModel[] | null;
98
+ draw?: number | null;
99
+ data?: object | null;
100
+ groupBy?: string | null;
101
+ }
102
+ interface FilterPageMode {
103
+ number: number;
104
+ size: number;
105
+ }
106
+ interface FilterSearchModel {
107
+ value: string;
108
+ }
109
+ interface OrderModel {
110
+ column?: string | null;
111
+ direction?: "asc" | "desc" | null;
112
+ nullLast?: boolean | null;
113
+ }
114
+ interface FilterQueryModel {
115
+ page?: FilterPageMode;
116
+ search?: FilterSearchModel;
117
+ query?: QueryModel;
118
+ order?: OrderModel | OrderModel[];
119
+ data?: object | undefined;
120
+ groupBy?: string;
121
+ }
122
+ interface FilterResultModel<T = any> {
123
+ values: T[];
124
+ total: number;
125
+ page?: {
126
+ number: number;
127
+ size: number;
128
+ };
129
+ }
130
+ declare enum FilterType {
131
+ Text = "text",
132
+ Number = "number",
133
+ Date = "date",
134
+ Select = "select",
135
+ Radio = "radio",
136
+ Options = "options"
137
+ }
138
+ type OptionsFilterSelectionMode = "radio" | "select";
139
+ interface RadioFilterOptionConfiguration {
140
+ key: string;
141
+ name: string;
142
+ }
143
+ interface FilterOperatorsConfiguration {
144
+ id: string;
145
+ name: string;
146
+ }
147
+ interface FilterGroupConfiguration {
148
+ key: string;
149
+ name: string;
150
+ }
151
+ interface FilterBaseConfigurationModel {
152
+ type: FilterType;
153
+ operators: FilterOperatorsConfiguration[];
154
+ group?: FilterGroupConfiguration;
155
+ values?: unknown[];
156
+ lazyLoading?: boolean;
157
+ selectionMode?: OptionsFilterSelectionMode;
158
+ options?: RadioFilterOptionConfiguration[];
159
+ mask?: string;
160
+ }
161
+ interface FilterConfigurationModel extends FilterBaseConfigurationModel {
162
+ id: string;
163
+ name: string;
164
+ }
165
+ interface SelectFilterValue {
166
+ id: number;
167
+ name: string;
168
+ }
169
+
170
+ interface NiceHttpOptions {
171
+ headers?: HttpHeaders | {
172
+ [header: string]: string | string[];
173
+ };
174
+ context?: HttpContext;
175
+ params?: HttpParams | {
176
+ [param: string]: string | number | boolean | ReadonlyArray<string | number | boolean>;
177
+ };
178
+ reportProgress?: boolean;
179
+ withCredentials?: boolean;
180
+ }
181
+ interface QueryParams {
182
+ [param: string]: any;
183
+ }
184
+ interface NiceFilterApiDefinition {
185
+ filter(queryModel: FilterQueryModel, option?: HttpOptions): Observable<FilterResultModel>;
186
+ filterCount(queryModel: FilterQueryModel): Observable<number>;
187
+ downloadData(type: string, queryModel: FilterQueryModel): Observable<Blob>;
188
+ getPrintableHtml(queryModel: FilterQueryModel): Observable<string>;
189
+ getFilterConfig(option?: HttpOptions): Observable<FilterConfigurationModel[]>;
190
+ searchFilterValue(id: string, value: string, options?: HttpOptions): Observable<SelectFilterValue[]>;
191
+ searchFilterResourceValue(id: string, resourceId: number, options?: HttpOptions): Observable<SelectFilterValue>;
192
+ }
193
+ declare class NiceFilterApi<T> implements NiceFilterApiDefinition {
194
+ private filterApiUrl;
195
+ private path;
196
+ protected http: HttpClient;
197
+ constructor(filterApiUrl: string, path: string, http: HttpClient);
198
+ filter(queryModel: FilterQueryModel, option?: NiceHttpOptions): Observable<FilterResultModel<T>>;
199
+ filterCount(queryModel: FilterQueryModel): Observable<number>;
200
+ downloadData(type: string, queryModel: FilterQueryModel): Observable<Blob>;
201
+ getPrintableHtml(queryModel: FilterQueryModel): Observable<string>;
202
+ getFilterConfig(option?: NiceHttpOptions): Observable<FilterConfigurationModel[]>;
203
+ searchFilterValue(id: string, value: string, options?: HttpOptions): Observable<SelectFilterValue[]>;
204
+ searchFilterResourceValue(id: string, resourceId: number, options?: HttpOptions): Observable<SelectFilterValue>;
205
+ protected url(route?: string, queryParams?: object): string;
206
+ protected url(queryParams: object): string;
207
+ private transformUrlArgs;
208
+ }
209
+ interface HasNiceFilterApiDefinition {
210
+ exceptionFactory: NiceHttpExceptionFactory;
211
+ httpClient: HttpClient;
212
+ apiUrl: string;
213
+ path: string;
214
+ url(route?: string): string;
215
+ delete<T>(route?: string, options?: HttpOptions): Observable<T>;
216
+ get<T>(route?: string, options?: HttpOptions): Observable<T>;
217
+ patch<T>(route?: string, body?: any, options?: HttpOptions): Observable<T>;
218
+ post<T>(route?: string, body?: any, options?: HttpOptions): Observable<T>;
219
+ put<T>(route?: string, body?: any, options?: HttpOptions): Observable<T>;
220
+ }
221
+ type NiceFilterApiDefinitionCtor = Constructor<NiceFilterApiDefinition> & AbstractConstructor<NiceFilterApiDefinition>;
222
+ declare const mixinNiceFilterApi: <T>(model?: Type<T>) => <C extends Constructor<HasNiceFilterApiDefinition>>(base: C) => NiceFilterApiDefinitionCtor & C;
223
+
224
+ declare class NiceBaseListButtonsDirective {
225
+ template: TemplateRef<any>;
226
+ position: "prefix" | "suffix" | "search";
227
+ constructor(template: TemplateRef<any>);
228
+ static ɵfac: i0.ɵɵFactoryDeclaration<NiceBaseListButtonsDirective, never>;
229
+ static ɵdir: i0.ɵɵDirectiveDeclaration<NiceBaseListButtonsDirective, "[niceListButton]", never, { "position": { "alias": "position"; "required": false; }; }, {}, never, never, false, never>;
230
+ }
231
+
232
+ declare class NiceBaseListTitleDirective {
233
+ template: TemplateRef<any>;
234
+ constructor(template: TemplateRef<any>);
235
+ static ɵfac: i0.ɵɵFactoryDeclaration<NiceBaseListTitleDirective, never>;
236
+ static ɵdir: i0.ɵɵDirectiveDeclaration<NiceBaseListTitleDirective, "[niceListTitle]", never, {}, {}, never, never, false, never>;
237
+ }
238
+
239
+ declare class NiceBaseListTableDirective {
240
+ template: TemplateRef<any>;
241
+ stickyHeader: boolean;
242
+ constructor(template: TemplateRef<any>);
243
+ static ɵfac: i0.ɵɵFactoryDeclaration<NiceBaseListTableDirective, never>;
244
+ static ɵdir: i0.ɵɵDirectiveDeclaration<NiceBaseListTableDirective, "[niceListTable]", never, { "stickyHeader": { "alias": "stickyHeader"; "required": false; }; }, {}, never, never, false, never>;
245
+ }
246
+
247
+ declare class NiceBaseListCardsDirective {
248
+ template: TemplateRef<any>;
249
+ constructor(template: TemplateRef<any>);
250
+ static ɵfac: i0.ɵɵFactoryDeclaration<NiceBaseListCardsDirective, never>;
251
+ static ɵdir: i0.ɵɵDirectiveDeclaration<NiceBaseListCardsDirective, "[niceListCards]", never, {}, {}, never, never, false, never>;
252
+ }
253
+
254
+ declare class NiceBaseListCustomContentDirective {
255
+ template: TemplateRef<any>;
256
+ constructor(template: TemplateRef<any>);
257
+ static ɵfac: i0.ɵɵFactoryDeclaration<NiceBaseListCustomContentDirective, never>;
258
+ static ɵdir: i0.ɵɵDirectiveDeclaration<NiceBaseListCustomContentDirective, "[niceListContent]", never, {}, {}, never, never, false, never>;
259
+ }
260
+
261
+ declare class NiceBaseListEmptyStateDirective {
262
+ template: TemplateRef<any>;
263
+ constructor(template: TemplateRef<any>);
264
+ static ɵfac: i0.ɵɵFactoryDeclaration<NiceBaseListEmptyStateDirective, never>;
265
+ static ɵdir: i0.ɵɵDirectiveDeclaration<NiceBaseListEmptyStateDirective, "[niceListEmptyState]", never, {}, {}, never, never, false, never>;
266
+ }
267
+
268
+ declare class NiceBaseListFiltersDirective {
269
+ template: TemplateRef<any>;
270
+ constructor(template: TemplateRef<any>);
271
+ static ɵfac: i0.ɵɵFactoryDeclaration<NiceBaseListFiltersDirective, never>;
272
+ static ɵdir: i0.ɵɵDirectiveDeclaration<NiceBaseListFiltersDirective, "[niceListFilters]", never, {}, {}, never, never, false, never>;
273
+ }
274
+
275
+ declare class NiceBaseListEmptySearchResultStateDirective {
276
+ template: TemplateRef<any>;
277
+ constructor(template: TemplateRef<any>);
278
+ static ɵfac: i0.ɵɵFactoryDeclaration<NiceBaseListEmptySearchResultStateDirective, never>;
279
+ static ɵdir: i0.ɵɵDirectiveDeclaration<NiceBaseListEmptySearchResultStateDirective, "[niceListEmptySearchResultState]", never, {}, {}, never, never, false, never>;
280
+ }
281
+
282
+ declare class NiceBaseListDirectiveModule {
283
+ static ɵfac: i0.ɵɵFactoryDeclaration<NiceBaseListDirectiveModule, never>;
284
+ static ɵmod: i0.ɵɵNgModuleDeclaration<NiceBaseListDirectiveModule, [typeof NiceBaseListButtonsDirective, typeof NiceBaseListTitleDirective, typeof NiceBaseListTableDirective, typeof NiceBaseListCardsDirective, typeof NiceBaseListCustomContentDirective, typeof NiceBaseListEmptyStateDirective, typeof NiceBaseListFiltersDirective, typeof NiceBaseListEmptySearchResultStateDirective], never, [typeof NiceBaseListButtonsDirective, typeof NiceBaseListTitleDirective, typeof NiceBaseListTableDirective, typeof NiceBaseListCardsDirective, typeof NiceBaseListCustomContentDirective, typeof NiceBaseListEmptyStateDirective, typeof NiceBaseListFiltersDirective, typeof NiceBaseListEmptySearchResultStateDirective]>;
285
+ static ɵinj: i0.ɵɵInjectorDeclaration<NiceBaseListDirectiveModule>;
286
+ }
287
+
288
+ interface TableColumnsModel {
289
+ id: string;
290
+ sortable?: boolean;
291
+ }
292
+ declare class TableColumns implements TableColumnsModel {
293
+ id: string;
294
+ sortable: boolean;
295
+ nullLast: boolean;
296
+ constructor(id: string, sortable?: boolean, nullLast?: boolean);
297
+ }
298
+
299
+ interface ExportSettings {
300
+ xlsx: boolean;
301
+ csv: boolean;
302
+ pdf: boolean;
303
+ }
304
+
305
+ type NiceBaseListIcons = {
306
+ matIcon: string;
307
+ svgIcon?: string;
308
+ } | {
309
+ matIcon?: string;
310
+ svgIcon: string;
311
+ } | {
312
+ class: string;
313
+ matIcon?: string;
314
+ svgIcon?: string;
315
+ };
316
+ interface NiceBaseIconOptions {
317
+ search?: NiceBaseListIcons;
318
+ queryBuilder?: NiceBaseListIcons;
319
+ close?: NiceBaseListIcons;
320
+ print?: NiceBaseListIcons;
321
+ download?: NiceBaseListIcons;
322
+ }
323
+ declare const defaultIcons: NiceBaseIconOptions;
324
+
325
+ type AvailableLayoutItem = "title" | "search" | "prefixButtons" | "suffixButtons" | "exportButtons" | "content" | "pagination" | "queryBuilder" | "filters";
326
+ declare enum LayoutContent {
327
+ Table = "table",
328
+ Cards = "cards",
329
+ Custom = "custom"
330
+ }
331
+ interface LayoutItem {
332
+ name: AvailableLayoutItem;
333
+ flex?: string;
334
+ align?: string;
335
+ classes?: string[];
336
+ }
337
+ interface Layout {
338
+ classes?: string[];
339
+ items: (LayoutItem | Layout)[];
340
+ }
341
+ type BaseListPageLayout = (LayoutItem | Layout);
342
+ interface BaseListLayout {
343
+ default: Layout | BaseListPageLayout[];
344
+ xs?: Layout | BaseListPageLayout[];
345
+ sm?: Layout | BaseListPageLayout[];
346
+ md?: Layout | BaseListPageLayout[];
347
+ lg?: Layout | BaseListPageLayout[];
348
+ xl?: Layout | BaseListPageLayout[];
349
+ }
350
+ declare const defaultLayout: BaseListLayout;
351
+
352
+ interface INiceFilterService<T> {
353
+ getFilterConfig(option: NiceHttpOptions): Observable<FilterConfigurationModel[]>;
354
+ filter(params: FilterParametersModel, option: NiceHttpOptions): Observable<FilterResultModel<T>>;
355
+ getFile(type: string, parameters: FilterParametersModel): Observable<Blob>;
356
+ getPrintableHtml(parameters: FilterParametersModel): Observable<string>;
357
+ }
358
+ declare class NiceFilterService<T> implements INiceFilterService<T> {
359
+ protected api?: NiceFilterApiDefinition;
360
+ constructor(api?: NiceFilterApiDefinition);
361
+ filter(params: FilterParametersModel, option?: NiceHttpOptions): Observable<FilterResultModel<T>>;
362
+ getFile(type: string, parameters: FilterParametersModel): Observable<Blob>;
363
+ getPrintableHtml(parameters: FilterParametersModel): Observable<string>;
364
+ getFilterConfig(option?: NiceHttpOptions): Observable<FilterConfigurationModel[]>;
365
+ searchFilterValue(filterConfig: FilterConfigurationModel, value: string, options?: HttpOptions): Observable<SelectFilterValue[]>;
366
+ searchFilterResourceValue(filterConfig: FilterConfigurationModel, resourceId: number, options?: HttpOptions): Observable<SelectFilterValue>;
367
+ static ɵfac: i0.ɵɵFactoryDeclaration<NiceFilterService<any>, never>;
368
+ static ɵprov: i0.ɵɵInjectableDeclaration<NiceFilterService<any>>;
369
+ }
370
+
371
+ interface NiceSavedReportDto {
372
+ name: string;
373
+ table: string;
374
+ content: string;
375
+ scope: string;
376
+ }
377
+
378
+ interface NiceSavedReports {
379
+ table: string;
380
+ name: string;
381
+ content: string;
382
+ }
383
+
384
+ declare class NiceSavedReportsApi {
385
+ private filterApiUrl;
386
+ private path;
387
+ protected http: HttpClient;
388
+ constructor(filterApiUrl: string, path: string, http: HttpClient);
389
+ create(dto: NiceSavedReportDto): Observable<NiceSavedReports>;
390
+ getAll(): Observable<NiceSavedReports[]>;
391
+ getByTable(table: string): Observable<NiceSavedReports[]>;
392
+ getTopByTable(table: string | undefined): Observable<NiceSavedReports[]>;
393
+ hit(id: number): Observable<void>;
394
+ update(id: number, dto: NiceSavedReportDto): Observable<NiceSavedReports>;
395
+ delete(id: number): Observable<void>;
396
+ protected url(route?: string, queryParams?: object): string;
397
+ protected url(queryParams: object): string;
398
+ private transformUrlArgs;
399
+ }
400
+
401
+ declare class NiceSavedReportService {
402
+ private api;
403
+ constructor(api: NiceSavedReportsApi);
404
+ create(report: NiceSavedReportDto): Observable<NiceSavedReports>;
405
+ update(id: number, report: NiceSavedReportDto): Observable<NiceSavedReports>;
406
+ remove(id: number): Observable<void>;
407
+ getByTableName(table: string): Observable<NiceSavedReports[]>;
408
+ getTopByTableName(table: string): Observable<NiceSavedReports[]>;
409
+ hit(id: number): Observable<void>;
410
+ static ɵfac: i0.ɵɵFactoryDeclaration<NiceSavedReportService, never>;
411
+ static ɵprov: i0.ɵɵInjectableDeclaration<NiceSavedReportService>;
412
+ }
413
+
414
+ interface NiceBaseListState {
415
+ loading?: boolean;
416
+ disabled: boolean;
417
+ mergePageResults: boolean;
418
+ resetPaging: boolean;
419
+ filterConfigLoading: boolean;
420
+ filterResult: FilterResultModel | null;
421
+ filterParameters: FilterParametersModel;
422
+ filterConfig: FilterConfigurationModel[];
423
+ showQueryBuilder: boolean;
424
+ defaultRules: (QueryRuleModel | QueryModel)[];
425
+ queryParams: any;
426
+ }
427
+ declare const initialBaseListState: NiceBaseListState;
428
+ declare class NiceBaseListStore<T extends NiceBaseListState = NiceBaseListState> extends Store<T> {
429
+ constructor(parameters: FilterParametersModel, defaultRules: QueryModel[]);
430
+ setFilterConfigLoading(loading: boolean): void;
431
+ setResult(filterResult: FilterResultModel, reset?: boolean): void;
432
+ setParameters(filterParameters: FilterParametersModel): void;
433
+ static ɵfac: i0.ɵɵFactoryDeclaration<NiceBaseListStore<any>, [{ optional: true; }, { optional: true; }]>;
434
+ static ɵprov: i0.ɵɵInjectableDeclaration<NiceBaseListStore<any>>;
435
+ }
436
+
437
+ declare class NiceBaseListQuery<T extends NiceBaseListState = NiceBaseListState> extends Query<T> {
438
+ protected store: NiceBaseListStore<T>;
439
+ constructor(store: NiceBaseListStore<T>);
440
+ selectEmpty(): Observable<boolean>;
441
+ selectSearchResultEmpty(): Observable<boolean>;
442
+ selectData(): Observable<any[]>;
443
+ selectFilterParameters(): Observable<FilterParametersModel>;
444
+ selectFilterResult(): Observable<FilterResultModel | null>;
445
+ selectFilterConfig(): Observable<FilterConfigurationModel[]>;
446
+ selectFilterConfigLoading(): Observable<boolean>;
447
+ selectShowQueryBuilder(): Observable<boolean>;
448
+ static ɵfac: i0.ɵɵFactoryDeclaration<NiceBaseListQuery<any>, never>;
449
+ static ɵprov: i0.ɵɵInjectableDeclaration<NiceBaseListQuery<any>>;
450
+ }
451
+
452
+ declare class NiceBaseListService<Filter extends NiceFilterService<any> = NiceFilterService<any>> {
453
+ protected store: NiceBaseListStore;
454
+ protected filterService: Filter;
455
+ protected disableQueryParams: boolean;
456
+ protected activatedRoute: ActivatedRoute;
457
+ protected router: Router;
458
+ protected appRef: ApplicationRef;
459
+ queryParamsLoaded$: Subject<unknown>;
460
+ protected downloadFileName: string;
461
+ protected unsubscribeAll$: Subject<void>;
462
+ protected loadingData: boolean;
463
+ constructor(store: NiceBaseListStore, filterService: Filter, disableQueryParams: boolean, activatedRoute: ActivatedRoute, router: Router, appRef: ApplicationRef);
464
+ get filter(): Filter;
465
+ init(configQueryParams?: QueryParams): Promise<void>;
466
+ resetStore(): void;
467
+ resetData(): void;
468
+ closeSubscriptions(): void;
469
+ disableList(): void;
470
+ enableList(): void;
471
+ setLoading(loading: boolean): void;
472
+ setMode(mode: "normal" | "infinite-scroll"): void;
473
+ setQueryParams(queryParams: any): void;
474
+ loadQueryParams(autoLoad: boolean): void;
475
+ resetAndLoadData(parameters?: FilterParametersModel, updateQueryParams?: boolean): Promise<void>;
476
+ loadData(parameters?: FilterParametersModel, updateQueryParams?: boolean, reset?: boolean): Promise<void>;
477
+ searchData(search: string): Promise<void>;
478
+ loadNewPage(start: number, length: number): Promise<void>;
479
+ loadNextPage(): Promise<void>;
480
+ resetPaging(): void;
481
+ downloadData(type: string, parameters?: FilterParametersModel, updateQueryParams?: boolean): Promise<void>;
482
+ printData(parameters?: FilterParametersModel, updateQueryParams?: boolean): Promise<void>;
483
+ updateRule(id: string, newRule: QueryRuleModel): void;
484
+ updateDefaultRules(rule: (QueryRuleModel | QueryModel)[]): void;
485
+ updateGlobalRules(rules: QueryModel[], updateQueryParams?: boolean, reset?: boolean): Promise<void>;
486
+ addRuleFromConfig(config: FilterConfigurationModel): void;
487
+ updateRules(rules: QueryRuleModel[]): void;
488
+ toggleQueryBuilder(): void;
489
+ addListValue(value: any, opts?: AddEntitiesOptions): void;
490
+ updateListValue(value: any, key?: string): void;
491
+ removeListValue(value: any, key?: string): void;
492
+ getParameters(filterParameters?: FilterParametersModel): FilterParametersModel;
493
+ protected updateQueryParams(queryParams: any): Promise<void>;
494
+ private mergeParameters;
495
+ private setParameters;
496
+ static ɵfac: i0.ɵɵFactoryDeclaration<NiceBaseListService<any>, never>;
497
+ static ɵprov: i0.ɵɵInjectableDeclaration<NiceBaseListService<any>>;
498
+ }
499
+
500
+ declare class NiceBaseListComponent<Filter extends NiceFilterService<any> = NiceFilterService<any>> implements OnInit, OnDestroy, OnChanges {
501
+ enableQueryBuilder: boolean;
502
+ icons: NiceBaseIconOptions;
503
+ listLayout: BaseListLayout;
504
+ columns: TableColumns[];
505
+ private readonly exportsSettings;
506
+ readonly query: NiceBaseListQuery;
507
+ readonly service: NiceBaseListService<Filter>;
508
+ private readonly activatedRoute;
509
+ private readonly bottomSheet;
510
+ private readonly router;
511
+ private readonly mediaWatcher;
512
+ title: TemplateRef<any>;
513
+ buttons: NiceBaseListButtonsDirective[];
514
+ table: NiceBaseListTableDirective;
515
+ cards: TemplateRef<any>;
516
+ customContent: TemplateRef<any>;
517
+ filters: TemplateRef<any>;
518
+ emptyState: TemplateRef<any>;
519
+ emptySearchResultState: TemplateRef<any>;
520
+ mode: "normal" | "infinite-scroll";
521
+ layout: "page" | "component";
522
+ layoutContent: LayoutContent;
523
+ autoChangeLayout: boolean;
524
+ baseRoute: string;
525
+ routeFn: (item: any) => string | string[];
526
+ navigateFn: (baseRoute: string, item: any) => string;
527
+ autoLoad: boolean;
528
+ pageTitle: string;
529
+ canExport: boolean;
530
+ disableRouting: boolean;
531
+ customExport: ExportStrategy[];
532
+ queryParams: QueryParams;
533
+ configQueryParams: QueryParams;
534
+ newPage: EventEmitter<PageEvent>;
535
+ defaultPageSizeOptions: number[];
536
+ columnNames: string[];
537
+ loading$: Observable<boolean>;
538
+ filterResult$: Observable<_recursyve_nice_data_filter_kit.FilterResultModel<any>>;
539
+ data$: Observable<any[]>;
540
+ recordsFiltered$: Observable<number>;
541
+ isEmpty$: Observable<boolean>;
542
+ isSearchResultEmpty$: Observable<boolean>;
543
+ showQueryBuilder$: Observable<boolean>;
544
+ filterParameters$: Observable<_recursyve_nice_data_filter_kit.FilterParametersModel>;
545
+ index$: Observable<number>;
546
+ length$: Observable<number>;
547
+ searchQuery$: Observable<string>;
548
+ filterConfig$: Observable<FilterConfigurationModel[]>;
549
+ sortColumn$: Observable<string>;
550
+ sortDirection$: Observable<"" | "asc" | "desc">;
551
+ filterConfigLoading$: Observable<boolean>;
552
+ rules$: Observable<QueryModel[]>;
553
+ rulesCount$: Observable<number>;
554
+ xsActive$: Observable<boolean>;
555
+ smActive$: Observable<boolean>;
556
+ mdActive$: Observable<boolean>;
557
+ lgActive$: Observable<boolean>;
558
+ xlActive$: Observable<boolean>;
559
+ defaultActive$: Observable<boolean>;
560
+ private searchText$;
561
+ constructor(enableQueryBuilder: boolean, icons: NiceBaseIconOptions, listLayout: BaseListLayout, columns: TableColumns[], exportsSettings: ExportSettings, query: NiceBaseListQuery, service: NiceBaseListService<Filter>, activatedRoute: ActivatedRoute, bottomSheet: MatBottomSheet, router: Router, mediaWatcher: NiceMediaWatcherService);
562
+ get prefixButtons(): TemplateRef<any> | undefined;
563
+ get suffixButtons(): TemplateRef<any> | undefined;
564
+ get searchButtons(): TemplateRef<any> | undefined;
565
+ ngOnInit(): Promise<void>;
566
+ ngOnDestroy(): void;
567
+ ngOnChanges(changes: SimpleChanges): void;
568
+ setLoading(loading: boolean): void;
569
+ clickToggleShowQueryBuilder(): void;
570
+ onUpdateRules(rules: QueryModel[]): void;
571
+ onQueryBuilderFilterSelected(filterConfigurationModel: FilterConfigurationModel): void;
572
+ onUpdatePage(pageEvent: PageEvent): void;
573
+ onUpdateSearch(search: string): void;
574
+ getFilterRule$(id: string): Observable<QueryRuleModel | undefined>;
575
+ onUpdateSort(sort: Sort): void;
576
+ updateRule(id: string, newRule: QueryRuleModel): void;
577
+ updateRules(rules: QueryRuleModel[]): void;
578
+ clickExport(): void;
579
+ navigate(item: any): void;
580
+ clickXlsx(): void;
581
+ clickCsv(): void;
582
+ clickPrint(): void;
583
+ clickPdf(): void;
584
+ setColumns(columns: TableColumns[]): void;
585
+ addColumns(columns: TableColumns[], prepend?: boolean): void;
586
+ static ɵfac: i0.ɵɵFactoryDeclaration<NiceBaseListComponent<any>, [{ optional: true; }, null, null, null, null, null, null, null, null, null, null]>;
587
+ static ɵcmp: i0.ɵɵComponentDeclaration<NiceBaseListComponent<any>, "nice-base-list", never, { "mode": { "alias": "mode"; "required": false; }; "layout": { "alias": "layout"; "required": false; }; "layoutContent": { "alias": "layoutContent"; "required": false; }; "autoChangeLayout": { "alias": "autoChangeLayout"; "required": false; }; "baseRoute": { "alias": "baseRoute"; "required": false; }; "routeFn": { "alias": "routeFn"; "required": false; }; "navigateFn": { "alias": "navigateFn"; "required": false; }; "autoLoad": { "alias": "autoLoad"; "required": false; }; "pageTitle": { "alias": "pageTitle"; "required": false; }; "canExport": { "alias": "canExport"; "required": false; }; "disableRouting": { "alias": "disableRouting"; "required": false; }; "customExport": { "alias": "customExport"; "required": false; }; "queryParams": { "alias": "queryParams"; "required": false; }; "configQueryParams": { "alias": "configQueryParams"; "required": false; }; }, { "newPage": "newPage"; }, ["title", "table", "cards", "customContent", "filters", "emptyState", "emptySearchResultState", "buttons"], never, false, never>;
588
+ }
589
+
590
+ declare abstract class NiceFilterGroupService<T> {
591
+ abstract getFilterGroupIconClass(group: T): string | NiceBaseListIcons;
592
+ }
593
+
594
+ interface NiceQueryBuilderIconOptions {
595
+ add?: NiceBaseListIcons;
596
+ refresh?: NiceBaseListIcons;
597
+ delete?: NiceBaseListIcons;
598
+ arrowDown?: NiceBaseListIcons;
599
+ datePicker?: NiceBaseListIcons;
600
+ }
601
+
602
+ declare class QueryRuleForm {
603
+ id: string;
604
+ operation: string;
605
+ value: any;
606
+ secondValue: any;
607
+ constructor(rule: QueryRuleModel);
608
+ transform(): QueryRuleModel;
609
+ }
610
+ declare class QueryForm {
611
+ condition: string;
612
+ rules: QueryRuleForm[];
613
+ }
614
+ declare class QueryBuilderForm {
615
+ rules: QueryForm[];
616
+ constructor(rules: QueryModel[]);
617
+ transform(): QueryModel[];
618
+ }
619
+
620
+ declare class NiceQueryBuilderComponent implements ControlValueAccessor {
621
+ icons: NiceQueryBuilderIconOptions;
622
+ formGroup: GeneratedFormGroup<QueryBuilderForm>;
623
+ filterConfigs: FilterConfigurationModel[] | null;
624
+ currentSavedReport: NiceSavedReports | null;
625
+ loading: boolean;
626
+ close: EventEmitter<any>;
627
+ createReport: EventEmitter<any>;
628
+ updateReport: EventEmitter<any>;
629
+ rules: GeneratedFormArray<QueryForm>;
630
+ get canSave(): boolean;
631
+ private propagateChanges;
632
+ constructor(icons: NiceQueryBuilderIconOptions, formGroup: GeneratedFormGroup<QueryBuilderForm>);
633
+ registerOnChange(fn: (rules: QueryModel[]) => void): void;
634
+ registerOnTouched(fn: any): void;
635
+ writeValue(rules: QueryModel[]): void;
636
+ onClickAddRule(filterConfigurationModel: FilterConfigurationModel): void;
637
+ onClickDeleteRule(id: number): void;
638
+ onClickApply(): void;
639
+ onClickSaveReport(): void;
640
+ onClickUpdateReport(): void;
641
+ static ɵfac: i0.ɵɵFactoryDeclaration<NiceQueryBuilderComponent, [{ optional: true; }, null]>;
642
+ static ɵcmp: i0.ɵɵComponentDeclaration<NiceQueryBuilderComponent, "nice-query-builder", never, { "filterConfigs": { "alias": "filterConfigs"; "required": false; }; "currentSavedReport": { "alias": "currentSavedReport"; "required": false; }; "loading": { "alias": "loading"; "required": false; }; }, { "close": "close"; "createReport": "createReport"; "updateReport": "updateReport"; }, never, never, false, never>;
643
+ }
644
+
645
+ declare class QueryBuilderTriggerDirective {
646
+ private overlayPositionBuilder;
647
+ private elementRef;
648
+ private overlay;
649
+ private platform;
650
+ private overlayRef;
651
+ private filterSelectionRef;
652
+ private _queryBuilderFilters;
653
+ private _queryBuilderFiltersLoading;
654
+ set queryBuilderFilters(queryBuilderFilters: FilterConfigurationModel[] | null);
655
+ set queryBuilderFiltersLoading(queryBuilderFiltersLoading: boolean);
656
+ queryBuilderFilterSelected: EventEmitter<FilterConfigurationModel>;
657
+ constructor(overlayPositionBuilder: OverlayPositionBuilder, elementRef: ElementRef, overlay: Overlay, platform: Platform);
658
+ click(): void;
659
+ private close;
660
+ private updateFilterSelectionComponent;
661
+ private isMobile;
662
+ static ɵfac: i0.ɵɵFactoryDeclaration<QueryBuilderTriggerDirective, never>;
663
+ static ɵdir: i0.ɵɵDirectiveDeclaration<QueryBuilderTriggerDirective, "[niceQueryBuilderTrigger]", never, { "queryBuilderFilters": { "alias": "queryBuilderFilters"; "required": false; }; "queryBuilderFiltersLoading": { "alias": "queryBuilderFiltersLoading"; "required": false; }; }, { "queryBuilderFilterSelected": "queryBuilderFilterSelected"; }, never, never, false, never>;
664
+ }
665
+
666
+ declare class FilterSelectionComponent {
667
+ filterConfigs: FilterConfigurationModel[];
668
+ loading: boolean;
669
+ filterSelected: EventEmitter<FilterConfigurationModel>;
670
+ get filterGroups(): [FilterGroupConfiguration, FilterConfigurationModel[]][];
671
+ selectFilter(filterConfigurationModel: FilterConfigurationModel): void;
672
+ static ɵfac: i0.ɵɵFactoryDeclaration<FilterSelectionComponent, never>;
673
+ static ɵcmp: i0.ɵɵComponentDeclaration<FilterSelectionComponent, "nice-filter-selection", never, { "filterConfigs": { "alias": "filterConfigs"; "required": false; }; "loading": { "alias": "loading"; "required": false; }; }, { "filterSelected": "filterSelected"; }, never, never, false, never>;
674
+ }
675
+
676
+ declare class RuleComponent implements OnInit {
677
+ icons: NiceQueryBuilderIconOptions;
678
+ private formGroupName;
679
+ filterConfigs: FilterConfigurationModel[] | null;
680
+ remove: EventEmitter<any>;
681
+ formGroup: GeneratedFormGroup<QueryForm>;
682
+ rules: GeneratedFormArray<QueryRuleForm>;
683
+ filterOperator: FilterOperators;
684
+ get filterConfig(): FilterConfigurationModel;
685
+ get isSingleInput(): boolean;
686
+ get isDoubleInput(): boolean;
687
+ get isNoInput(): boolean;
688
+ constructor(icons: NiceQueryBuilderIconOptions, formGroupName: FormGroupName);
689
+ ngOnInit(): void;
690
+ onUpdateFilterConfig(config: FilterConfigurationModel): void;
691
+ onClickOr(): void;
692
+ onUpdateFilterOperator(operator: string): void;
693
+ onClickDelete(index: number): void;
694
+ static ɵfac: i0.ɵɵFactoryDeclaration<RuleComponent, [{ optional: true; }, null]>;
695
+ static ɵcmp: i0.ɵɵComponentDeclaration<RuleComponent, "nice-rule", never, { "filterConfigs": { "alias": "filterConfigs"; "required": false; }; }, { "remove": "remove"; }, never, never, false, never>;
696
+ }
697
+
698
+ declare class FilterComponent$1<T> implements ControlValueAccessor {
699
+ private _value;
700
+ get value(): T | undefined;
701
+ protected propagateChanges: (_: T) => void;
702
+ registerOnTouched(fn: any): void;
703
+ registerOnChange(fn: (_: T) => void): void;
704
+ writeValue(value: T): void;
705
+ onValueChange(value: T): void;
706
+ static ɵfac: i0.ɵɵFactoryDeclaration<FilterComponent$1<any>, never>;
707
+ static ɵcmp: i0.ɵɵComponentDeclaration<FilterComponent$1<any>, "ng-component", never, {}, {}, never, never, false, never>;
708
+ }
709
+
710
+ declare class SelectFilterComponent extends FilterComponent$1<unknown> implements OnInit, OnDestroy, OnChanges {
711
+ protected filterService: NiceFilterService<any>;
712
+ filterConfig: FilterConfigurationModel;
713
+ values: SelectFilterValue[];
714
+ search$: Subject<string>;
715
+ private searchSub$;
716
+ constructor(filterService: NiceFilterService<any>);
717
+ ngOnInit(): Promise<void>;
718
+ ngOnChanges(changes: SimpleChanges): void;
719
+ private searchValue;
720
+ onValueChange(value: unknown): void;
721
+ ngOnDestroy(): void;
722
+ writeValue(value: unknown): void;
723
+ static ɵfac: i0.ɵɵFactoryDeclaration<SelectFilterComponent, [{ optional: true; }]>;
724
+ static ɵcmp: i0.ɵɵComponentDeclaration<SelectFilterComponent, "nice-select-filter", never, { "filterConfig": { "alias": "filterConfig"; "required": false; }; }, {}, never, never, false, never>;
725
+ }
726
+
727
+ declare class TextFilterComponent extends FilterComponent$1<string> {
728
+ filterConfig: FilterConfigurationModel;
729
+ static ɵfac: i0.ɵɵFactoryDeclaration<TextFilterComponent, never>;
730
+ static ɵcmp: i0.ɵɵComponentDeclaration<TextFilterComponent, "nice-text-filter", never, { "filterConfig": { "alias": "filterConfig"; "required": false; }; }, {}, never, never, false, never>;
731
+ }
732
+
733
+ declare class NumberFilterComponent extends FilterComponent$1<number> {
734
+ static ɵfac: i0.ɵɵFactoryDeclaration<NumberFilterComponent, never>;
735
+ static ɵcmp: i0.ɵɵComponentDeclaration<NumberFilterComponent, "nice-number-filter", never, {}, {}, never, never, false, never>;
736
+ }
737
+
738
+ declare class RadioFilterComponent extends FilterComponent$1<string> {
739
+ filterConfig: FilterConfigurationModel;
740
+ static ɵfac: i0.ɵɵFactoryDeclaration<RadioFilterComponent, never>;
741
+ static ɵcmp: i0.ɵɵComponentDeclaration<RadioFilterComponent, "nice-radio-filter", never, { "filterConfig": { "alias": "filterConfig"; "required": false; }; }, {}, never, never, false, never>;
742
+ }
743
+
744
+ declare class DateFilterComponent extends FilterComponent$1<string> {
745
+ icons: NiceQueryBuilderIconOptions;
746
+ constructor(icons: NiceQueryBuilderIconOptions);
747
+ static ɵfac: i0.ɵɵFactoryDeclaration<DateFilterComponent, [{ optional: true; }]>;
748
+ static ɵcmp: i0.ɵɵComponentDeclaration<DateFilterComponent, "nice-date-filter", never, {}, {}, never, never, false, never>;
749
+ }
750
+
751
+ declare class FilterGroupIconPipe implements PipeTransform {
752
+ private service?;
753
+ constructor(service?: NiceFilterGroupService<any>);
754
+ transform(value: string): NiceBaseListIcons;
755
+ static ɵfac: i0.ɵɵFactoryDeclaration<FilterGroupIconPipe, [{ optional: true; }]>;
756
+ static ɵpipe: i0.ɵɵPipeDeclaration<FilterGroupIconPipe, "filterGroupIcon", false>;
757
+ }
758
+
759
+ interface QueryBuilderGlobalOptions {
760
+ icons?: NiceQueryBuilderIconOptions;
761
+ }
762
+ declare class NiceQueryBuilderModule {
763
+ static forRoot(options?: QueryBuilderGlobalOptions): ModuleWithProviders<NiceQueryBuilderModule>;
764
+ static ɵfac: i0.ɵɵFactoryDeclaration<NiceQueryBuilderModule, never>;
765
+ static ɵmod: i0.ɵɵNgModuleDeclaration<NiceQueryBuilderModule, [typeof NiceQueryBuilderComponent, typeof QueryBuilderTriggerDirective, typeof FilterSelectionComponent, typeof RuleComponent, typeof SelectFilterComponent, typeof TextFilterComponent, typeof NumberFilterComponent, typeof RadioFilterComponent, typeof DateFilterComponent, typeof FilterGroupIconPipe], [typeof i15.CommonModule, typeof i14.FormsModule, typeof i12.TranslateModule, typeof i14$1.OverlayModule, typeof i10.MatCardModule, typeof i16.MatListModule, typeof i7.MatButtonModule, typeof i15$1.MatRippleModule, typeof i8.MatIconModule, typeof i20.MatSelectModule, typeof i21.MatInputModule, typeof i22.MatDatepickerModule, typeof i23.MatRadioModule, typeof i2.NiceLoadingSpinnerModule, typeof i2.NiceTypeaheadModule, typeof i14.ReactiveFormsModule, typeof i25.NgxMaskDirective], [typeof NiceQueryBuilderComponent, typeof QueryBuilderTriggerDirective]>;
766
+ static ɵinj: i0.ɵɵInjectorDeclaration<NiceQueryBuilderModule>;
767
+ }
768
+
769
+ interface BaseListOptions<T> {
770
+ table: string;
771
+ columns: TableColumns[];
772
+ filterService: Type<NiceFilterService<T>>;
773
+ defaultRules?: QueryModel[];
774
+ defaultParameters?: FilterParametersModel;
775
+ layout?: BaseListLayout;
776
+ exports?: ExportSettings;
777
+ disableQueryBuilder?: boolean;
778
+ disableQueryParams?: boolean;
779
+ queryBuilder?: {
780
+ filterGroupService: Type<NiceFilterGroupService<any>>;
781
+ savedReportService?: Type<NiceSavedReportService>;
782
+ };
783
+ }
784
+ interface BaseListGlobalOptions {
785
+ layout?: BaseListLayout;
786
+ icons?: NiceBaseIconOptions;
787
+ queryBuilder?: {
788
+ filterGroupService: Type<NiceFilterGroupService<any>>;
789
+ savedReportService?: Type<NiceSavedReportService>;
790
+ };
791
+ }
792
+ declare class NiceBaseListModule {
793
+ static forRoot(options?: BaseListGlobalOptions): ModuleWithProviders<NiceBaseListModule>;
794
+ static providerFactory<T>(options: BaseListOptions<T>): Provider[];
795
+ static ɵfac: i0.ɵɵFactoryDeclaration<NiceBaseListModule, never>;
796
+ static ɵmod: i0.ɵɵNgModuleDeclaration<NiceBaseListModule, [typeof NiceBaseListComponent], [typeof i2.NiceExportBottomSheetModule, typeof NiceBaseListDirectiveModule, typeof i15.CommonModule, typeof i14.FormsModule, typeof i6.RouterModule, typeof i7.MatButtonModule, typeof i8.MatIconModule, typeof i9.MatTooltipModule, typeof i10.MatCardModule, typeof i11.MatPaginatorModule, typeof i12.TranslateModule, typeof i2.NiceLoadingSpinnerModule, typeof i13.MatTableModule, typeof i14$2.MatSortModule, typeof i15$1.MatRippleModule, typeof i16$1.MatBottomSheetModule, typeof NiceQueryBuilderModule, typeof i18.MatBadgeModule], [typeof NiceBaseListComponent, typeof NiceBaseListDirectiveModule]>;
797
+ static ɵinj: i0.ɵɵInjectorDeclaration<NiceBaseListModule>;
798
+ }
799
+
800
+ declare class NiceListState {
801
+ table: string;
802
+ columns: TableColumns[];
803
+ defaultParameters?: FilterParametersModel;
804
+ }
805
+ interface ListStates {
806
+ [state: string]: NiceListState;
807
+ }
808
+
809
+ declare class NiceMultiStateFilterService extends NiceFilterService<any> {
810
+ protected filters: {
811
+ [state: string]: NiceFilterApiDefinition;
812
+ };
813
+ protected constructor(filters: {
814
+ [state: string]: NiceFilterApiDefinition;
815
+ });
816
+ switchState(state: string): void;
817
+ }
818
+
819
+ interface NiceMultiStateListState extends NiceBaseListState {
820
+ }
821
+ declare const initialValue: NiceMultiStateListState;
822
+ declare class NiceMultiStateListStore extends NiceBaseListStore<NiceMultiStateListState> {
823
+ constructor();
824
+ static ɵfac: i0.ɵɵFactoryDeclaration<NiceMultiStateListStore, never>;
825
+ static ɵprov: i0.ɵɵInjectableDeclaration<NiceMultiStateListStore>;
826
+ }
827
+
828
+ declare class NiceMultiStateListQuery extends NiceBaseListQuery<NiceMultiStateListState> {
829
+ protected store: NiceMultiStateListStore;
830
+ constructor(store: NiceMultiStateListStore);
831
+ static ɵfac: i0.ɵɵFactoryDeclaration<NiceMultiStateListQuery, never>;
832
+ static ɵprov: i0.ɵɵInjectableDeclaration<NiceMultiStateListQuery>;
833
+ }
834
+
835
+ declare class NiceMultiStateListService extends NiceBaseListService {
836
+ private states;
837
+ private multiFilterService;
838
+ constructor(states: ListStates, disableQueryParams: boolean, store: NiceMultiStateListStore, activatedRoute: ActivatedRoute, router: Router, appRef: ApplicationRef, multiFilterService: NiceMultiStateFilterService);
839
+ reset(): void;
840
+ setStateDefaultFilter(state: string, parameters: FilterParametersModel): void;
841
+ switchState(state: string): TableColumns[];
842
+ static ɵfac: i0.ɵɵFactoryDeclaration<NiceMultiStateListService, never>;
843
+ static ɵprov: i0.ɵɵInjectableDeclaration<NiceMultiStateListService>;
844
+ }
845
+
846
+ declare class NiceMultiStateListComponent extends NiceBaseListComponent {
847
+ private multiStateListService;
848
+ set state(state: string);
849
+ constructor(enableQueryBuilder: boolean, icons: NiceBaseIconOptions, listLayout: BaseListLayout, exportsSetting: ExportSettings, query: NiceMultiStateListQuery, activatedRoute: ActivatedRoute, bottomSheet: MatBottomSheet, router: Router, mediaWatcher: NiceMediaWatcherService, multiStateListService: NiceMultiStateListService);
850
+ private switchState;
851
+ static ɵfac: i0.ɵɵFactoryDeclaration<NiceMultiStateListComponent, [{ optional: true; }, null, null, null, null, null, null, null, null, null]>;
852
+ static ɵcmp: i0.ɵɵComponentDeclaration<NiceMultiStateListComponent, "nice-multi-state-list", never, { "state": { "alias": "state"; "required": false; }; }, {}, never, never, false, never>;
853
+ }
854
+
855
+ interface MultiStateListOptions {
856
+ filterService: Type<NiceMultiStateFilterService>;
857
+ states: ListStates;
858
+ layout?: BaseListLayout;
859
+ exports?: ExportSettings;
860
+ disableQueryBuilder?: boolean;
861
+ disableQueryParams?: boolean;
862
+ queryBuilder?: {
863
+ filterGroupService: Type<NiceFilterGroupService<any>>;
864
+ savedReportService?: Type<NiceSavedReportService>;
865
+ };
866
+ }
867
+ declare class NiceMultiStateListModule {
868
+ static providerFactory<T>(options: MultiStateListOptions): Provider[];
869
+ static ɵfac: i0.ɵɵFactoryDeclaration<NiceMultiStateListModule, never>;
870
+ static ɵmod: i0.ɵɵNgModuleDeclaration<NiceMultiStateListModule, [typeof NiceMultiStateListComponent], [typeof i2.NiceExportBottomSheetModule, typeof NiceBaseListDirectiveModule, typeof i15.CommonModule, typeof i14.FormsModule, typeof i6.RouterModule, typeof i7.MatButtonModule, typeof i8.MatIconModule, typeof i9.MatTooltipModule, typeof i10.MatCardModule, typeof i11.MatPaginatorModule, typeof i12.TranslateModule, typeof i2.NiceLoadingSpinnerModule, typeof i13.MatTableModule, typeof i14$2.MatSortModule, typeof i15$1.MatRippleModule, typeof i16$1.MatBottomSheetModule, typeof NiceQueryBuilderModule, typeof i18.MatBadgeModule], [typeof NiceMultiStateListComponent, typeof NiceBaseListDirectiveModule]>;
871
+ static ɵinj: i0.ɵɵInjectorDeclaration<NiceMultiStateListModule>;
872
+ }
873
+
874
+ interface OrderColumnOptions {
875
+ column?: string;
876
+ nullLast?: boolean;
877
+ }
878
+ interface OrderOptions {
879
+ [order: string]: OrderColumnOptions;
880
+ }
881
+
882
+ interface NiceFilterViewState extends EntityState {
883
+ subStates: HashMap<any>;
884
+ mode: "paginated" | "accumulated";
885
+ autoLoad: boolean;
886
+ disabled: boolean;
887
+ initialLoadCompleted: boolean;
888
+ filterConfigLoading: boolean;
889
+ filterConfig: FilterConfigurationModel[];
890
+ filterResult: FilterResultModel | null;
891
+ filterParameters: FilterParametersModel;
892
+ baseRules: (QueryRuleModel | QueryModel)[];
893
+ queryParams: QueryParams | null;
894
+ orderColumns: OrderOptions | null;
895
+ resetResult: boolean;
896
+ }
897
+ declare class NiceFilterViewStore extends EntityStore<NiceFilterViewState> {
898
+ constructor(state: Partial<NiceFilterViewState>, store: StoreConfigOptions);
899
+ setFilterConfigLoading(loading: boolean): void;
900
+ setParameters(filterParameters: FilterParametersModel): void;
901
+ patchParameters(filterParameters: FilterParametersModel): void;
902
+ setResult(filterResult: FilterResultModel): void;
903
+ addValue(value: any, opts?: AddEntitiesOptions): void;
904
+ addValues(values: any[], opts?: AddEntitiesOptions): void;
905
+ upsertValue(value: any, key?: string): void;
906
+ upsertValues(values: any[], key?: string): void;
907
+ removeValue(value: any, key?: string): void;
908
+ removeValues(values: any[], key?: string): void;
909
+ getParameters(filterParameters?: FilterParametersModel): FilterParametersModel;
910
+ getSubState<T>(name: string): T;
911
+ static ɵfac: i0.ɵɵFactoryDeclaration<NiceFilterViewStore, never>;
912
+ static ɵprov: i0.ɵɵInjectableDeclaration<NiceFilterViewStore>;
913
+ }
914
+
915
+ declare class NiceFilterViewQuery extends QueryEntity<NiceFilterViewState> {
916
+ protected store: NiceFilterViewStore;
917
+ constructor(store: NiceFilterViewStore);
918
+ selectSubState<T>(name: string): Observable<T>;
919
+ selectFilterConfigLoading(): Observable<boolean>;
920
+ selectFilterConfig(): Observable<FilterConfigurationModel[]>;
921
+ selectFilterParameters(): Observable<FilterParametersModel>;
922
+ selectFilterResult(): Observable<FilterResultModel | null>;
923
+ selectQueryParams(): Observable<QueryParams>;
924
+ getParameters(): FilterParametersModel;
925
+ getSubState<T>(name: string): T;
926
+ static ɵfac: i0.ɵɵFactoryDeclaration<NiceFilterViewQuery, never>;
927
+ static ɵprov: i0.ɵɵInjectableDeclaration<NiceFilterViewQuery>;
928
+ }
929
+
930
+ declare class NiceFilterViewService<Filter extends NiceFilterService<any> = NiceFilterService<any>> {
931
+ private store;
932
+ readonly filterService: Filter;
933
+ constructor(store: NiceFilterViewStore, filterService: Filter);
934
+ reset(): void;
935
+ disable(): void;
936
+ updateSubState<T>(name: string, value: T): void;
937
+ enable(): void;
938
+ setAutoLoad(autoLoad: boolean): void;
939
+ setLoading(loading: boolean): void;
940
+ setMode(mode: "paginated" | "accumulated"): void;
941
+ loadConfig(configQueryParams?: QueryParams): Promise<void>;
942
+ filter(): Promise<void>;
943
+ downloadData(type: string, downloadFileName: string, ids?: number[]): Promise<void>;
944
+ printData(): Promise<void>;
945
+ /**
946
+ * @deprecated reload show not be passed, and the caller should instead call `filter()` after calling this function.
947
+ */
948
+ setParameters(filterParameters: FilterParametersModel, reload: boolean): void;
949
+ setParameters(filterParameters: FilterParametersModel): void;
950
+ patchParameters(filterParameters: FilterParametersModel): void;
951
+ resetPaging(): void;
952
+ setQueryParams(queryParams: QueryParams): void;
953
+ setBaseRules(rule: (QueryRuleModel | QueryModel)[], reload: boolean): void;
954
+ addBaseRule(rule: QueryRuleModel, reload: boolean): void;
955
+ upsertBaseRules(rule: QueryRuleModel, reload: boolean): void;
956
+ removeBaseRules(key: string, reload: boolean): void;
957
+ setRules(rules: QueryModel | QueryModel[]): void;
958
+ upsertRule(id: string, newRule: RuleModel): void;
959
+ removeRule(id: string): void;
960
+ addValue(value: any, opts?: AddEntitiesOptions): void;
961
+ addValues(value: any[], opts?: AddEntitiesOptions): void;
962
+ upsertValue(value: any, key?: string): void;
963
+ upsertValues(values: any[], key?: string): void;
964
+ removeValue(value: any, key?: string): void;
965
+ removeValues(values: any[], key?: string): void;
966
+ resetResult(waitForNextFilter: boolean): void;
967
+ static ɵfac: i0.ɵɵFactoryDeclaration<NiceFilterViewService<any>, never>;
968
+ static ɵprov: i0.ɵɵInjectableDeclaration<NiceFilterViewService<any>>;
969
+ }
970
+
971
+ interface NiceAdvancedFilterIconOptions {
972
+ add?: NiceBaseListIcons;
973
+ close?: NiceBaseListIcons;
974
+ refresh?: NiceBaseListIcons;
975
+ delete?: NiceBaseListIcons;
976
+ arrowDown?: NiceBaseListIcons;
977
+ datePicker?: NiceBaseListIcons;
978
+ queryBuilder?: NiceBaseListIcons;
979
+ }
980
+
981
+ declare class NiceAdvancedFiltersButtonComponent {
982
+ icons: NiceAdvancedFilterIconOptions;
983
+ private query;
984
+ private service;
985
+ shouldShowAdvancedFilters$: rxjs.Observable<boolean>;
986
+ hasParameters$: rxjs.Observable<boolean>;
987
+ constructor(icons: NiceAdvancedFilterIconOptions, query: NiceFilterViewQuery, service: NiceFilterViewService);
988
+ clickToggleShowAdvancedFilters(): void;
989
+ onSelectedFilter(filter: FilterConfigurationModel): void;
990
+ static ɵfac: i0.ɵɵFactoryDeclaration<NiceAdvancedFiltersButtonComponent, [{ optional: true; }, null, null]>;
991
+ static ɵcmp: i0.ɵɵComponentDeclaration<NiceAdvancedFiltersButtonComponent, "nice-advanced-filters-button", never, {}, {}, never, never, false, never>;
992
+ }
993
+
994
+ declare class FilterFormValues {
995
+ value: any;
996
+ secondValue: any;
997
+ }
998
+ declare class FilterForm {
999
+ id: string;
1000
+ operation: string;
1001
+ condition: Condition;
1002
+ values: FilterFormValues[];
1003
+ constructor(value: QueryModel | QueryRuleModel);
1004
+ transform(): QueryModel | QueryRuleModel;
1005
+ }
1006
+ declare class AdvancedFiltersForm {
1007
+ rules: FilterForm[];
1008
+ condition: Condition;
1009
+ constructor(query: QueryModel);
1010
+ transform(): QueryModel;
1011
+ }
1012
+
1013
+ declare class NiceAdvancedFiltersComponent implements OnInit, OnDestroy {
1014
+ icons: NiceAdvancedFilterIconOptions;
1015
+ formGroup: GeneratedFormGroup<AdvancedFiltersForm>;
1016
+ private query;
1017
+ private service;
1018
+ private changeDetectorRef;
1019
+ config$: Observable<FilterConfigurationModel[]>;
1020
+ rules$: Observable<FilterForm[]>;
1021
+ rulesFormArray: GeneratedFormArray<FilterForm>;
1022
+ constructor(icons: NiceAdvancedFilterIconOptions, formGroup: GeneratedFormGroup<AdvancedFiltersForm>, query: NiceFilterViewQuery, service: NiceFilterViewService, changeDetectorRef: ChangeDetectorRef);
1023
+ ngOnInit(): void;
1024
+ ngOnDestroy(): void;
1025
+ onClickAddRule(filterConfigurationModel: FilterConfigurationModel): void;
1026
+ onClickDeleteRule(index: number): void;
1027
+ onClose(): void;
1028
+ onRefresh(): void;
1029
+ removeEmptyRules({ reload }?: {
1030
+ reload: boolean;
1031
+ }): void;
1032
+ static ɵfac: i0.ɵɵFactoryDeclaration<NiceAdvancedFiltersComponent, [{ optional: true; }, null, null, null, null]>;
1033
+ static ɵcmp: i0.ɵɵComponentDeclaration<NiceAdvancedFiltersComponent, "nice-advanced-filters", never, {}, {}, never, never, false, never>;
1034
+ }
1035
+
1036
+ interface AdvancedDateFilterOptions {
1037
+ openDatePickerOnClick?: boolean;
1038
+ }
1039
+
1040
+ declare class NiceAdvancedFilterSelectionComponent {
1041
+ private query;
1042
+ filterSelected: EventEmitter<FilterConfigurationModel>;
1043
+ loading$: rxjs.Observable<boolean>;
1044
+ filterGroups$: rxjs.Observable<[FilterGroupConfiguration, FilterConfigurationModel[]][]>;
1045
+ constructor(query: NiceFilterViewQuery);
1046
+ selectFilter(filterConfigurationModel: FilterConfigurationModel): void;
1047
+ trackGroups(index: number, value: [FilterGroupConfiguration, FilterConfigurationModel[]]): any;
1048
+ trackFilter(index: number, value: FilterConfigurationModel): any;
1049
+ static ɵfac: i0.ɵɵFactoryDeclaration<NiceAdvancedFilterSelectionComponent, never>;
1050
+ static ɵcmp: i0.ɵɵComponentDeclaration<NiceAdvancedFilterSelectionComponent, "nice-advanced-filter-selection", never, {}, { "filterSelected": "filterSelected"; }, never, never, false, never>;
1051
+ }
1052
+
1053
+ declare class NiceAdvancedRuleComponent implements OnInit {
1054
+ icons: NiceAdvancedFilterIconOptions;
1055
+ private formGroupName;
1056
+ filterConfigs: FilterConfigurationModel[] | null;
1057
+ remove: EventEmitter<any>;
1058
+ formGroup: GeneratedFormGroup<FilterForm>;
1059
+ valuesFormArray: GeneratedFormArray<FilterFormValues>;
1060
+ isSingleInput$: Observable<boolean>;
1061
+ isDoubleInput$: Observable<boolean>;
1062
+ get filterConfig(): FilterConfigurationModel;
1063
+ constructor(icons: NiceAdvancedFilterIconOptions, formGroupName: FormGroupName);
1064
+ ngOnInit(): void;
1065
+ onUpdateFilterConfig(config: FilterConfigurationModel): void;
1066
+ addValue(index: number): void;
1067
+ removeValue(i: number): void;
1068
+ static ɵfac: i0.ɵɵFactoryDeclaration<NiceAdvancedRuleComponent, [{ optional: true; }, null]>;
1069
+ static ɵcmp: i0.ɵɵComponentDeclaration<NiceAdvancedRuleComponent, "nice-advanced-rule", never, { "filterConfigs": { "alias": "filterConfigs"; "required": false; }; }, { "remove": "remove"; }, never, never, false, never>;
1070
+ }
1071
+
1072
+ declare class FilterComponent<T> implements ControlValueAccessor {
1073
+ private _value;
1074
+ get value(): T | undefined;
1075
+ protected propagateChanges: (_: T) => void;
1076
+ registerOnTouched(fn: any): void;
1077
+ registerOnChange(fn: (_: T) => void): void;
1078
+ writeValue(value: T): void;
1079
+ onValueChange(value: T): void;
1080
+ static ɵfac: i0.ɵɵFactoryDeclaration<FilterComponent<any>, never>;
1081
+ static ɵcmp: i0.ɵɵComponentDeclaration<FilterComponent<any>, "ng-component", never, {}, {}, never, never, false, never>;
1082
+ }
1083
+
1084
+ declare class NiceAdvancedDateFilterComponent extends FilterComponent<string> {
1085
+ icons: NiceAdvancedFilterIconOptions;
1086
+ advancedDateFilterOptions: AdvancedDateFilterOptions;
1087
+ constructor(icons: NiceAdvancedFilterIconOptions, advancedDateFilterOptions: AdvancedDateFilterOptions);
1088
+ onInputClick(picker: MatDatepicker<any>): void;
1089
+ static ɵfac: i0.ɵɵFactoryDeclaration<NiceAdvancedDateFilterComponent, [{ optional: true; }, { optional: true; }]>;
1090
+ static ɵcmp: i0.ɵɵComponentDeclaration<NiceAdvancedDateFilterComponent, "nice-advanced-date-filter", never, {}, {}, never, never, false, never>;
1091
+ }
1092
+
1093
+ declare class NiceAdvancedNumberFilterComponent extends FilterComponent<number> {
1094
+ static ɵfac: i0.ɵɵFactoryDeclaration<NiceAdvancedNumberFilterComponent, never>;
1095
+ static ɵcmp: i0.ɵɵComponentDeclaration<NiceAdvancedNumberFilterComponent, "nice-advanced-number-filter", never, {}, {}, never, never, false, never>;
1096
+ }
1097
+
1098
+ declare class NiceAdvancedOptionsFilterComponent extends FilterComponent<string> {
1099
+ filterConfig: FilterConfigurationModel;
1100
+ static ɵfac: i0.ɵɵFactoryDeclaration<NiceAdvancedOptionsFilterComponent, never>;
1101
+ static ɵcmp: i0.ɵɵComponentDeclaration<NiceAdvancedOptionsFilterComponent, "nice-advanced-options-filter", never, { "filterConfig": { "alias": "filterConfig"; "required": false; }; }, {}, never, never, false, never>;
1102
+ }
1103
+
1104
+ declare class NiceAdvancedRadioFilterComponent extends FilterComponent<string> {
1105
+ filterConfig: FilterConfigurationModel;
1106
+ static ɵfac: i0.ɵɵFactoryDeclaration<NiceAdvancedRadioFilterComponent, never>;
1107
+ static ɵcmp: i0.ɵɵComponentDeclaration<NiceAdvancedRadioFilterComponent, "nice-advanced-radio-filter", never, { "filterConfig": { "alias": "filterConfig"; "required": false; }; }, {}, never, never, false, never>;
1108
+ }
1109
+
1110
+ declare class NiceAdvancedSelectFilterComponent extends FilterComponent<unknown> implements OnInit, OnChanges {
1111
+ private filterViewQuery;
1112
+ filterConfig: FilterConfigurationModel;
1113
+ values: SelectFilterValue[];
1114
+ protected queryParams$: rxjs.Observable<_recursyve_nice_data_filter_kit.QueryParams>;
1115
+ constructor(filterViewQuery: NiceFilterViewQuery);
1116
+ ngOnInit(): Promise<void>;
1117
+ ngOnChanges(changes: SimpleChanges): void;
1118
+ onValueChange(value: unknown): void;
1119
+ writeValue(value: unknown): void;
1120
+ static ɵfac: i0.ɵɵFactoryDeclaration<NiceAdvancedSelectFilterComponent, never>;
1121
+ static ɵcmp: i0.ɵɵComponentDeclaration<NiceAdvancedSelectFilterComponent, "nice-advanced-select-filter", never, { "filterConfig": { "alias": "filterConfig"; "required": false; }; }, {}, never, never, false, never>;
1122
+ }
1123
+
1124
+ declare class NiceAdvancedTextFilterComponent extends FilterComponent<string> {
1125
+ filterConfig: FilterConfigurationModel;
1126
+ static ɵfac: i0.ɵɵFactoryDeclaration<NiceAdvancedTextFilterComponent, never>;
1127
+ static ɵcmp: i0.ɵɵComponentDeclaration<NiceAdvancedTextFilterComponent, "nice-advanced-text-filter", never, { "filterConfig": { "alias": "filterConfig"; "required": false; }; }, {}, never, never, false, never>;
1128
+ }
1129
+
1130
+ declare class AdvancedFiltersTriggerDirective {
1131
+ private query;
1132
+ private service;
1133
+ private overlayPositionBuilder;
1134
+ private elementRef;
1135
+ private overlay;
1136
+ private platform;
1137
+ private injector;
1138
+ private overlayRef;
1139
+ private filterSelectionRef;
1140
+ position: "topRight" | "bottomCenter";
1141
+ advancedFilterSelected: EventEmitter<FilterConfigurationModel>;
1142
+ private get connectedPosition();
1143
+ constructor(query: NiceFilterViewQuery, service: NiceFilterViewService, overlayPositionBuilder: OverlayPositionBuilder, elementRef: ElementRef, overlay: Overlay, platform: Platform, injector: Injector);
1144
+ click(): void;
1145
+ private close;
1146
+ private updateFilterSelectionComponent;
1147
+ static ɵfac: i0.ɵɵFactoryDeclaration<AdvancedFiltersTriggerDirective, never>;
1148
+ static ɵdir: i0.ɵɵDirectiveDeclaration<AdvancedFiltersTriggerDirective, "[niceAdvancedFiltersTrigger]", ["niceAdvancedFiltersTrigger"], { "position": { "alias": "position"; "required": false; }; }, { "advancedFilterSelected": "advancedFilterSelected"; }, never, never, false, never>;
1149
+ }
1150
+
1151
+ declare class NiceFilterGroupIconPipe implements PipeTransform {
1152
+ private service?;
1153
+ constructor(service?: NiceFilterGroupService<any>);
1154
+ transform(value: string): NiceBaseListIcons;
1155
+ static ɵfac: i0.ɵɵFactoryDeclaration<NiceFilterGroupIconPipe, [{ optional: true; }]>;
1156
+ static ɵpipe: i0.ɵɵPipeDeclaration<NiceFilterGroupIconPipe, "niceFilterGroupIcon", false>;
1157
+ }
1158
+
1159
+ interface NiceAdvancedFiltersOptions {
1160
+ icons?: NiceAdvancedFilterIconOptions;
1161
+ filterGroupService?: Type<NiceFilterGroupService<any>>;
1162
+ advancedDateFilter?: AdvancedDateFilterOptions;
1163
+ }
1164
+ declare class NiceAdvancedFiltersModule {
1165
+ static forRoot(options?: NiceAdvancedFiltersOptions): ModuleWithProviders<NiceAdvancedFiltersModule>;
1166
+ static ɵfac: i0.ɵɵFactoryDeclaration<NiceAdvancedFiltersModule, never>;
1167
+ static ɵmod: i0.ɵɵNgModuleDeclaration<NiceAdvancedFiltersModule, [typeof NiceAdvancedFiltersComponent, typeof NiceAdvancedFiltersButtonComponent, typeof NiceAdvancedFilterSelectionComponent, typeof NiceAdvancedRuleComponent, typeof NiceAdvancedDateFilterComponent, typeof NiceAdvancedNumberFilterComponent, typeof NiceAdvancedOptionsFilterComponent, typeof NiceAdvancedRadioFilterComponent, typeof NiceAdvancedSelectFilterComponent, typeof NiceAdvancedTextFilterComponent, typeof AdvancedFiltersTriggerDirective, typeof NiceFilterGroupIconPipe], [typeof i15.CommonModule, typeof i14.ReactiveFormsModule, typeof i23.MatRadioModule, typeof i10.MatCardModule, typeof i16.MatListModule, typeof i2.NiceLoadingSpinnerModule, typeof i8.MatIconModule, typeof i15$1.MatRippleModule, typeof i7.MatButtonModule, typeof i22$1.MatFormFieldModule, typeof i15$1.MatOptionModule, typeof i20.MatSelectModule, typeof i14.FormsModule, typeof i21.MatInputModule, typeof i25$1.MatButtonToggleModule, typeof i12.TranslateModule, typeof i22.MatDatepickerModule, typeof i2.NiceTypeaheadModule, typeof i2.NiceAsyncTypeaheadModule, typeof i25.NgxMaskDirective], [typeof NiceAdvancedFiltersComponent, typeof NiceAdvancedRuleComponent, typeof NiceAdvancedFiltersButtonComponent, typeof AdvancedFiltersTriggerDirective]>;
1168
+ static ɵinj: i0.ɵɵInjectorDeclaration<NiceAdvancedFiltersModule>;
1169
+ }
1170
+
1171
+ declare class AdvancedFiltersUtils {
1172
+ static noInputOperators: FilterOperators[];
1173
+ static singleInputOperators: FilterOperators[];
1174
+ static doubleInputOperators: FilterOperators[];
1175
+ static isSingleInput(filterOperator?: FilterOperators): boolean;
1176
+ static isDoubleInput(filterOperator?: FilterOperators): boolean;
1177
+ static isNoInput(filterOperator?: FilterOperators): boolean;
1178
+ static createRule(config: FilterConfigurationModel, operator?: FilterOperators): QueryRuleModel;
1179
+ }
1180
+
1181
+ interface AdvancedFiltersAsyncTypeaheadOptions {
1182
+ filterConfig: FilterConfigurationModel;
1183
+ queryParams?: Record<string, any>;
1184
+ }
1185
+ declare class AdvancedFiltersAsyncTypeaheadProvider extends NiceAsyncTypeaheadProvider<SelectFilterValue> {
1186
+ private filterService;
1187
+ resource: string;
1188
+ private pageSize;
1189
+ constructor(filterService: NiceFilterService<any>);
1190
+ getById(id: number, options: AdvancedFiltersAsyncTypeaheadOptions): Promise<SelectFilterValue>;
1191
+ search(searchQuery: string, page: number, options: AdvancedFiltersAsyncTypeaheadOptions): Promise<NiceAsyncTypeaheadSearchResult<SelectFilterValue>>;
1192
+ format(item: SelectFilterValue): string;
1193
+ static ɵfac: i0.ɵɵFactoryDeclaration<AdvancedFiltersAsyncTypeaheadProvider, never>;
1194
+ static ɵprov: i0.ɵɵInjectableDeclaration<AdvancedFiltersAsyncTypeaheadProvider>;
1195
+ }
1196
+
1197
+ declare class NiceFilterDataDirective {
1198
+ template: TemplateRef<any>;
1199
+ constructor(template: TemplateRef<any>);
1200
+ static ɵfac: i0.ɵɵFactoryDeclaration<NiceFilterDataDirective, never>;
1201
+ static ɵdir: i0.ɵɵDirectiveDeclaration<NiceFilterDataDirective, "[niceFilterData]", never, {}, {}, never, never, false, never>;
1202
+ }
1203
+
1204
+ declare class NiceFilterCustomDataViewComponent {
1205
+ private query;
1206
+ content: TemplateRef<any>;
1207
+ data$: rxjs.Observable<any[]>;
1208
+ constructor(query: NiceFilterViewQuery);
1209
+ static ɵfac: i0.ɵɵFactoryDeclaration<NiceFilterCustomDataViewComponent, never>;
1210
+ static ɵcmp: i0.ɵɵComponentDeclaration<NiceFilterCustomDataViewComponent, "nice-filter-custom-data-view, div[nice-filter-custom-data-view]", never, {}, {}, ["content"], never, false, never>;
1211
+ }
1212
+
1213
+ type NiceSelectableListEntity<T> = T & {
1214
+ id?: number;
1215
+ loaded?: boolean;
1216
+ };
1217
+ type SelectAllBehaviour = "lock" | "allow_unselect";
1218
+ interface NiceSelectableListState<T, ID = number> extends EntityState<NiceSelectableListEntity<T>, ID>, ActiveState<ID> {
1219
+ allSelected: boolean;
1220
+ unselectedEntity: any[];
1221
+ }
1222
+
1223
+ interface NiceSelectableListOptions {
1224
+ idKey?: string;
1225
+ preloadWindow?: number;
1226
+ disableQueryParams?: boolean;
1227
+ selectAllBehaviour?: SelectAllBehaviour;
1228
+ }
1229
+
1230
+ interface NiceSelectableListLoadAllEntitiesOptions {
1231
+ query?: FilterQueryModel;
1232
+ }
1233
+
1234
+ declare abstract class NicePreloadSelectedEntitiesProvider<T, ID = number> {
1235
+ abstract state: string;
1236
+ abstract reloadEntity(entity: T): Promise<T>;
1237
+ abstract reloadEntities(entities: T[]): Promise<T[]>;
1238
+ abstract loadEntityById(id: ID): Promise<T>;
1239
+ abstract loadEntitiesById(ids: ID[]): Promise<T[]>;
1240
+ abstract loadAllEntities(options?: NiceSelectableListLoadAllEntitiesOptions): Promise<ID[]>;
1241
+ static ɵfac: i0.ɵɵFactoryDeclaration<NicePreloadSelectedEntitiesProvider<any, any>, never>;
1242
+ static ɵprov: i0.ɵɵInjectableDeclaration<NicePreloadSelectedEntitiesProvider<any, any>>;
1243
+ }
1244
+
1245
+ declare class NiceSelectableListStateQuery<T> extends QueryEntity<NiceSelectableListState<T>> {
1246
+ constructor(store: EntityStore<NiceSelectableListState<T>>);
1247
+ selectAllSelected(): Observable<boolean>;
1248
+ selectActiveViewIndex(): Observable<number>;
1249
+ selectFirstActive(): Observable<boolean>;
1250
+ selectLastActive(): Observable<boolean>;
1251
+ }
1252
+
1253
+ declare class NiceSelectableListStateService<T, ID = any> {
1254
+ private store;
1255
+ private router;
1256
+ private preloadService?;
1257
+ private _options?;
1258
+ get idKey(): string;
1259
+ get preloadedWindow(): number;
1260
+ get queryParamsDisabled(): boolean;
1261
+ get selectAllBehaviour(): SelectAllBehaviour | null;
1262
+ constructor(store: EntityStore<NiceSelectableListState<any>>, router: Router, preloadService?: NicePreloadSelectedEntitiesProvider<T>, options?: NiceSelectableListOptions);
1263
+ setOptions(options?: NiceSelectableListOptions): void;
1264
+ setActive(entity: T): void;
1265
+ getIndex(identifier: number): number;
1266
+ selectAll(options?: NiceSelectableListLoadAllEntitiesOptions): Promise<void>;
1267
+ select(id: ID): Promise<void>;
1268
+ selectMany(ids: ID[], active: ID): Promise<void>;
1269
+ selectEntity(entity: T): Promise<void>;
1270
+ selectManyEntities(entities: T[]): Promise<void>;
1271
+ unselectAll(): void;
1272
+ unselect(id: ID): void;
1273
+ unselectEntity(entity: T): void;
1274
+ unselectManyEntities(entities: T[]): void;
1275
+ updateEntity(entity: T): void;
1276
+ setEntities(ids: ID[], activeId: ID): Promise<void>;
1277
+ next(): Promise<void>;
1278
+ previous(): Promise<void>;
1279
+ first(): Promise<void>;
1280
+ last(): Promise<void>;
1281
+ removeActive(): Promise<void>;
1282
+ loadActiveEntity(id: number, direction: number): Promise<void>;
1283
+ loadEntities(loadExtremity: boolean): Promise<void>;
1284
+ getListIdToLoad(loadExtremity: boolean): number[];
1285
+ generateQueryParams(): {
1286
+ selection: number[] | null;
1287
+ selected: number | null;
1288
+ };
1289
+ setQueryParams(): void;
1290
+ }
1291
+
1292
+ declare class NiceSelectableListService {
1293
+ private providers;
1294
+ private router;
1295
+ private stores;
1296
+ private services;
1297
+ constructor(providers: NicePreloadSelectedEntitiesProvider<any>[], router: Router);
1298
+ createState(name: string, options?: NiceSelectableListOptions): {
1299
+ store: EntityStore<NiceSelectableListState<any, number>, any, number>;
1300
+ query: NiceSelectableListStateQuery<any>;
1301
+ };
1302
+ getState(name: string): {
1303
+ store: EntityStore<NiceSelectableListState<any>>;
1304
+ query: NiceSelectableListStateQuery<any>;
1305
+ };
1306
+ withState<T, ID = any>(stateName: string, options?: NiceSelectableListOptions): NiceSelectableListStateService<T, ID>;
1307
+ query<T>(stateName: string): NiceSelectableListStateQuery<T>;
1308
+ static ɵfac: i0.ɵɵFactoryDeclaration<NiceSelectableListService, [{ optional: true; }, null]>;
1309
+ static ɵprov: i0.ɵɵInjectableDeclaration<NiceSelectableListService>;
1310
+ }
1311
+
1312
+ declare class NiceFilterExportButtonsComponent {
1313
+ icons: NiceBaseIconOptions;
1314
+ private readonly exportsSettings;
1315
+ private niceFilterViewQuery;
1316
+ private selectableListService;
1317
+ private query;
1318
+ private service;
1319
+ private readonly bottomSheet;
1320
+ customExport: ExportStrategy[];
1321
+ downloadFileName: string;
1322
+ canPrint: boolean;
1323
+ loading$: rxjs.Observable<boolean>;
1324
+ constructor(icons: NiceBaseIconOptions, exportsSettings: ExportSettings, niceFilterViewQuery: NiceFilterViewQuery, selectableListService: NiceSelectableListService, query: NiceFilterViewQuery, service: NiceFilterViewService, bottomSheet: MatBottomSheet);
1325
+ clickExport(): void;
1326
+ clickXlsx(ids?: number[]): void;
1327
+ clickCsv(ids?: number[]): void;
1328
+ clickPrint(): void;
1329
+ clickPdf(ids?: number[]): void;
1330
+ static ɵfac: i0.ɵɵFactoryDeclaration<NiceFilterExportButtonsComponent, never>;
1331
+ static ɵcmp: i0.ɵɵComponentDeclaration<NiceFilterExportButtonsComponent, "nice-filter-export-buttons, div[nice-filter-export-buttons]", never, { "customExport": { "alias": "customExport"; "required": false; }; "downloadFileName": { "alias": "downloadFileName"; "required": false; }; "canPrint": { "alias": "canPrint"; "required": false; }; }, {}, never, never, false, never>;
1332
+ }
1333
+
1334
+ declare class NiceFilterExportDirective {
1335
+ private service;
1336
+ type: string;
1337
+ downloadFileName: string;
1338
+ constructor(service: NiceFilterViewService);
1339
+ onClick(): void;
1340
+ static ɵfac: i0.ɵɵFactoryDeclaration<NiceFilterExportDirective, never>;
1341
+ static ɵdir: i0.ɵɵDirectiveDeclaration<NiceFilterExportDirective, "[niceFilterExport]", never, { "type": { "alias": "type"; "required": false; }; "downloadFileName": { "alias": "downloadFileName"; "required": false; }; }, {}, never, never, false, never>;
1342
+ }
1343
+
1344
+ declare class NiceFilterInfiniteScrollDataViewComponent implements OnInit {
1345
+ private query;
1346
+ private service;
1347
+ content: TemplateRef<any>;
1348
+ data$: rxjs.Observable<any[]>;
1349
+ constructor(query: NiceFilterViewQuery, service: NiceFilterViewService);
1350
+ ngOnInit(): void;
1351
+ loadNextPage(): Promise<void>;
1352
+ static ɵfac: i0.ɵɵFactoryDeclaration<NiceFilterInfiniteScrollDataViewComponent, never>;
1353
+ static ɵcmp: i0.ɵɵComponentDeclaration<NiceFilterInfiniteScrollDataViewComponent, "nice-filter-infinite-scroll-data-view, div[nice-filter-infinite-scroll-data-view]", never, {}, {}, ["content"], never, false, never>;
1354
+ }
1355
+
1356
+ declare class NiceFilterSearchComponent implements OnInit, OnDestroy {
1357
+ icons: NiceBaseIconOptions;
1358
+ private query;
1359
+ private service;
1360
+ appearance: "default" | "outlined" | "legacy" | "custom";
1361
+ searchQuery$: rxjs.Observable<string>;
1362
+ private unsubscribeAll$;
1363
+ private searchText$;
1364
+ constructor(icons: NiceBaseIconOptions, query: NiceFilterViewQuery, service: NiceFilterViewService);
1365
+ ngOnInit(): void;
1366
+ ngOnDestroy(): void;
1367
+ onUpdateSearch(search: string): void;
1368
+ static ɵfac: i0.ɵɵFactoryDeclaration<NiceFilterSearchComponent, never>;
1369
+ static ɵcmp: i0.ɵɵComponentDeclaration<NiceFilterSearchComponent, "nice-filter-search", never, { "appearance": { "alias": "appearance"; "required": false; }; }, {}, never, ["[niceFilterSearchButtons]"], false, never>;
1370
+ }
1371
+
1372
+ declare class NiceFilterQueryParamsDirective implements OnInit, OnDestroy {
1373
+ private query;
1374
+ private service;
1375
+ private route;
1376
+ private router;
1377
+ replaceUrlOnNavigation: boolean;
1378
+ init: EventEmitter<any>;
1379
+ private unsubscribeAll$;
1380
+ private _initialized;
1381
+ get initialized(): boolean;
1382
+ constructor(query: NiceFilterViewQuery, service: NiceFilterViewService, route: ActivatedRoute, router: Router);
1383
+ ngOnInit(): void;
1384
+ ngOnDestroy(): void;
1385
+ private updateQueryParams;
1386
+ private loadQueryParams;
1387
+ static ɵfac: i0.ɵɵFactoryDeclaration<NiceFilterQueryParamsDirective, never>;
1388
+ static ɵdir: i0.ɵɵDirectiveDeclaration<NiceFilterQueryParamsDirective, "nice-filter-view[niceFilterQueryParams]", never, { "replaceUrlOnNavigation": { "alias": "replaceUrlOnNavigation"; "required": false; }; }, { "init": "init"; }, never, never, false, never>;
1389
+ }
1390
+
1391
+ type AfterQueryParamLoadedCallback = () => void;
1392
+ declare abstract class NiceNestedFilterView<Filter extends NiceFilterService<any> = NiceFilterService<any>> implements OnInit, OnDestroy {
1393
+ private readonly _afterQueryParamHooks;
1394
+ protected unsubscribeAll$: Subject<void>;
1395
+ protected filterViewService: NiceFilterViewService<Filter>;
1396
+ protected filterViewQuery: NiceFilterViewQuery;
1397
+ protected queryParams: NiceFilterQueryParamsDirective | null;
1398
+ filterViewLoading$: Observable<boolean>;
1399
+ filterViewCount$: Observable<number>;
1400
+ ngOnInit(): void;
1401
+ ngOnDestroy(): void;
1402
+ protected afterInit(fn: AfterQueryParamLoadedCallback): void;
1403
+ private onInit;
1404
+ static ɵfac: i0.ɵɵFactoryDeclaration<NiceNestedFilterView<any>, never>;
1405
+ static ɵdir: i0.ɵɵDirectiveDeclaration<NiceNestedFilterView<any>, never, never, {}, {}, never, never, true, never>;
1406
+ }
1407
+
1408
+ declare class NiceFilterMatPaginatorPaginationDirective extends NiceNestedFilterView implements OnInit {
1409
+ private paginator;
1410
+ defaultPageSizeOptions: number[];
1411
+ constructor(paginator: MatPaginator);
1412
+ ngOnInit(): void;
1413
+ static ɵfac: i0.ɵɵFactoryDeclaration<NiceFilterMatPaginatorPaginationDirective, never>;
1414
+ static ɵdir: i0.ɵɵDirectiveDeclaration<NiceFilterMatPaginatorPaginationDirective, "mat-paginator[niceFilterPagination]", never, {}, {}, never, never, false, never>;
1415
+ }
1416
+
1417
+ declare class NiceFilterMatSortSortingDirective extends NiceNestedFilterView implements OnInit {
1418
+ private sort;
1419
+ constructor(sort: MatSort);
1420
+ ngOnInit(): void;
1421
+ static ɵfac: i0.ɵɵFactoryDeclaration<NiceFilterMatSortSortingDirective, never>;
1422
+ static ɵdir: i0.ɵɵDirectiveDeclaration<NiceFilterMatSortSortingDirective, "mat-table[matSort][niceFilterSorting]", never, {}, {}, never, never, false, never>;
1423
+ }
1424
+
1425
+ declare class NiceFilterMatTableViewDirective implements OnInit {
1426
+ private query;
1427
+ private table;
1428
+ constructor(query: NiceFilterViewQuery, table: MatTable<any>);
1429
+ ngOnInit(): void;
1430
+ static ɵfac: i0.ɵɵFactoryDeclaration<NiceFilterMatTableViewDirective, never>;
1431
+ static ɵdir: i0.ɵɵDirectiveDeclaration<NiceFilterMatTableViewDirective, "mat-table[niceFilterDataView]", never, {}, {}, never, never, false, never>;
1432
+ }
1433
+
1434
+ interface NiceBaseFilterViewInitOptions {
1435
+ mode?: "paginated" | "accumulated";
1436
+ loadConfig?: boolean;
1437
+ configQueryParams?: QueryParams;
1438
+ }
1439
+ declare abstract class NiceBaseFilterViewComponent<Filter extends NiceFilterService<any> = NiceFilterService<any>> implements OnInit {
1440
+ protected filterViewService: NiceFilterViewService<Filter>;
1441
+ protected filterViewQuery: NiceFilterViewQuery;
1442
+ protected queryParams: NiceFilterQueryParamsDirective;
1443
+ protected advancedFiltersButton: NiceAdvancedFiltersButtonComponent;
1444
+ private advancedFilters;
1445
+ private selectableListDirective;
1446
+ private readonly _afterQueryParamHooks;
1447
+ filterViewLoading$: Observable<boolean>;
1448
+ filterViewCount$: Observable<number>;
1449
+ ngOnInit(autoLoad?: boolean, { mode, loadConfig, configQueryParams }?: NiceBaseFilterViewInitOptions): void;
1450
+ /**
1451
+ * Call the filter endpoint with the current filter parameters.
1452
+ */
1453
+ loadData(): void;
1454
+ /**
1455
+ * Disable the filter view. This will stop calling any api routes.
1456
+ */
1457
+ disable(): void;
1458
+ /**
1459
+ * Enable the filter view. This will resume calling any api routes.
1460
+ */
1461
+ enable(): void;
1462
+ /**
1463
+ * Update the loading state
1464
+ */
1465
+ setLoading(loading: boolean): void;
1466
+ /**
1467
+ * Set a set of rules that won't be saved in the current filterParameters config.
1468
+ * NOTE: These rules will be injected in each filter request.
1469
+ */
1470
+ setBaseRules(rule: (QueryRuleModel | QueryModel)[], reload?: boolean): void;
1471
+ /**
1472
+ * Add a rule to the set of rules that won't be saved in the current filterParameters config.
1473
+ * NOTE: These rules will be injected in each filter request.
1474
+ */
1475
+ addBaseRule(rule: QueryRuleModel, reload?: boolean): void;
1476
+ /**
1477
+ * Add a rule to the set of rules that won't be saved in the current filterParameters config.
1478
+ * NOTE: These rules will be injected in each filter request.
1479
+ */
1480
+ upsertBaseRule(rule: QueryRuleModel, reload?: boolean): void;
1481
+ /**
1482
+ * Remove a rule to the set of rules that won't be saved in the current filterParameters config.
1483
+ * NOTE: These rules will be injected in each filter request.
1484
+ */
1485
+ removeBaseRule(id: string, reload?: boolean): void;
1486
+ /**
1487
+ * Reset all rules with a new set of rules.
1488
+ */
1489
+ setRules(rules: QueryModel | QueryModel[], reload?: boolean): void;
1490
+ /**
1491
+ * Add or update a rule.
1492
+ * NOTE: This will only check for rules in the first element of the rules array in the current filterParameters.
1493
+ */
1494
+ upsertRule(id: string, newRule: RuleModel, reload?: boolean): void;
1495
+ /**
1496
+ * Remove a rule.
1497
+ * NOTE: This will only check for rules in the first element of the rules array in the current filterParameters.
1498
+ */
1499
+ removeRule(id: string, reload?: boolean): void;
1500
+ protected afterInit(fn: AfterQueryParamLoadedCallback): void;
1501
+ private autoLoad;
1502
+ private loadConfig;
1503
+ private onInit;
1504
+ static ɵfac: i0.ɵɵFactoryDeclaration<NiceBaseFilterViewComponent<any>, never>;
1505
+ static ɵcmp: i0.ɵɵComponentDeclaration<NiceBaseFilterViewComponent<any>, "ng-component", never, {}, {}, never, never, false, never>;
1506
+ }
1507
+
1508
+ declare class NiceFilterViewComponent implements OnChanges {
1509
+ private service;
1510
+ queryParams: QueryParams;
1511
+ constructor(service: NiceFilterViewService);
1512
+ ngOnChanges(changes: SimpleChanges): void;
1513
+ static ɵfac: i0.ɵɵFactoryDeclaration<NiceFilterViewComponent, never>;
1514
+ static ɵcmp: i0.ɵɵComponentDeclaration<NiceFilterViewComponent, "nice-filter-view", never, { "queryParams": { "alias": "queryParams"; "required": false; }; }, {}, never, ["*"], false, never>;
1515
+ }
1516
+
1517
+ interface NiceFilterViewOptions<T> {
1518
+ filterService: Type<NiceFilterService<T>>;
1519
+ exports?: ExportSettings;
1520
+ state?: Partial<NiceFilterViewState>;
1521
+ store?: StoreConfigOptions;
1522
+ }
1523
+ interface NiceFilterViewGlobalOptions {
1524
+ icons?: NiceBaseIconOptions;
1525
+ }
1526
+ declare class NiceFilterViewModule {
1527
+ static forRoot(options?: NiceFilterViewGlobalOptions): ModuleWithProviders<NiceFilterViewModule>;
1528
+ static providerFactory<T>(options: NiceFilterViewOptions<T>): Provider[];
1529
+ static ɵfac: i0.ɵɵFactoryDeclaration<NiceFilterViewModule, never>;
1530
+ static ɵmod: i0.ɵɵNgModuleDeclaration<NiceFilterViewModule, [typeof NiceFilterViewComponent, typeof NiceFilterCustomDataViewComponent, typeof NiceFilterExportButtonsComponent, typeof NiceFilterInfiniteScrollDataViewComponent, typeof NiceFilterSearchComponent, typeof NiceFilterDataDirective, typeof NiceFilterExportDirective, typeof NiceFilterMatTableViewDirective, typeof NiceFilterMatSortSortingDirective, typeof NiceFilterMatPaginatorPaginationDirective, typeof NiceFilterQueryParamsDirective], [typeof i12.TranslateModule, typeof i8.MatIconModule, typeof i14.FormsModule, typeof i15.AsyncPipe, typeof i15.NgIf, typeof i15.NgTemplateOutlet, typeof i9.MatTooltipModule, typeof i7.MatButtonModule, typeof i16$1.MatBottomSheetModule, typeof i2.NiceExportBottomSheetModule], [typeof NiceFilterViewComponent, typeof NiceFilterCustomDataViewComponent, typeof NiceFilterExportButtonsComponent, typeof NiceFilterInfiniteScrollDataViewComponent, typeof NiceFilterSearchComponent, typeof NiceFilterDataDirective, typeof NiceFilterExportDirective, typeof NiceFilterMatTableViewDirective, typeof NiceFilterMatSortSortingDirective, typeof NiceFilterMatPaginatorPaginationDirective, typeof NiceFilterQueryParamsDirective]>;
1531
+ static ɵinj: i0.ɵɵInjectorDeclaration<NiceFilterViewModule>;
1532
+ }
1533
+
1534
+ declare class QBFilterUtils {
1535
+ static noInputOperators: FilterOperators[];
1536
+ static singleInputOperators: FilterOperators[];
1537
+ static doubleInputOperators: FilterOperators[];
1538
+ static isSingleInput(filterOperator?: FilterOperators): boolean;
1539
+ static isDoubleInput(filterOperator?: FilterOperators): boolean;
1540
+ static isNoInput(filterOperator?: FilterOperators): boolean;
1541
+ static createRule(config: FilterConfigurationModel, operator?: FilterOperators): QueryRuleModel;
1542
+ static createQueryModel(config: FilterConfigurationModel): QueryModel;
1543
+ }
1544
+
1545
+ declare class NiceSelectableListCheckboxDirective implements OnInit, OnDestroy, DoCheck {
1546
+ readonly checkbox: MatCheckbox;
1547
+ private service;
1548
+ private selectableListService;
1549
+ selectableEntity?: any;
1550
+ selectPage?: boolean;
1551
+ private selectableListStateService;
1552
+ private selectableListStateQuery;
1553
+ private unsubscribeAll$;
1554
+ private initialized;
1555
+ private get currentId();
1556
+ constructor(checkbox: MatCheckbox, service: NiceSelectableListContentService, selectableListService: NiceSelectableListService);
1557
+ ngOnInit(): void;
1558
+ ngOnDestroy(): void;
1559
+ ngDoCheck(): void;
1560
+ private handleSelectableEntity;
1561
+ private handleSelectPage;
1562
+ private updateCheckboxState;
1563
+ private propageCheckedValue;
1564
+ static ɵfac: i0.ɵɵFactoryDeclaration<NiceSelectableListCheckboxDirective, never>;
1565
+ static ɵdir: i0.ɵɵDirectiveDeclaration<NiceSelectableListCheckboxDirective, "mat-checkbox[niceSelectableListCheckbox]", never, { "selectableEntity": { "alias": "selectableEntity"; "required": false; }; "selectPage": { "alias": "selectPage"; "required": false; }; }, {}, never, never, false, never>;
1566
+ }
1567
+
1568
+ declare class NiceSelectableListContentService {
1569
+ private _options;
1570
+ private _state;
1571
+ private _checkboxes;
1572
+ private defaultOptions;
1573
+ get options(): NiceSelectableListOptions;
1574
+ get state(): string | null;
1575
+ get checkboxes(): QueryList<NiceSelectableListCheckboxDirective>;
1576
+ setOptions(options: NiceSelectableListOptions): void;
1577
+ setState(state: string): void;
1578
+ setCheckboxes(checkboxes: QueryList<NiceSelectableListCheckboxDirective>): void;
1579
+ static ɵfac: i0.ɵɵFactoryDeclaration<NiceSelectableListContentService, never>;
1580
+ static ɵprov: i0.ɵɵInjectableDeclaration<NiceSelectableListContentService>;
1581
+ }
1582
+
1583
+ declare class NiceSelectableListDirective implements OnInit, OnDestroy, OnChanges, AfterContentInit {
1584
+ private service;
1585
+ private selectableListService;
1586
+ private route;
1587
+ state: string;
1588
+ options: NiceSelectableListOptions;
1589
+ readonly checkboxes: QueryList<NiceSelectableListCheckboxDirective>;
1590
+ private unsubscribeAll$;
1591
+ private unsubscribeQuerySub$;
1592
+ private stateService;
1593
+ private stateQuery;
1594
+ constructor(service: NiceSelectableListContentService, selectableListService: NiceSelectableListService, route: ActivatedRoute);
1595
+ ngOnInit(): void;
1596
+ ngOnDestroy(): void;
1597
+ ngOnChanges(changes: SimpleChanges): void;
1598
+ ngAfterContentInit(): void;
1599
+ private listenOnStateChanges;
1600
+ static ɵfac: i0.ɵɵFactoryDeclaration<NiceSelectableListDirective, never>;
1601
+ static ɵdir: i0.ɵɵDirectiveDeclaration<NiceSelectableListDirective, "[niceSelectableList]", never, { "state": { "alias": "state"; "required": false; }; "options": { "alias": "options"; "required": false; }; }, {}, ["checkboxes"], never, false, never>;
1602
+ }
1603
+
1604
+ declare class NiceSelectableListSelectAllDirective implements OnInit {
1605
+ private niceFilterViewQuery;
1606
+ private service;
1607
+ private selectableListService;
1608
+ action: "select" | "unselect";
1609
+ private selectableListStateService;
1610
+ private selectableListStateQuery;
1611
+ constructor(niceFilterViewQuery: NiceFilterViewQuery | null, service: NiceSelectableListContentService, selectableListService: NiceSelectableListService);
1612
+ ngOnInit(): void;
1613
+ onClick(): void;
1614
+ static ɵfac: i0.ɵɵFactoryDeclaration<NiceSelectableListSelectAllDirective, [{ optional: true; }, null, null]>;
1615
+ static ɵdir: i0.ɵɵDirectiveDeclaration<NiceSelectableListSelectAllDirective, "button[niceSelectableListSelectAll]", never, { "action": { "alias": "action"; "required": false; }; }, {}, never, never, false, never>;
1616
+ }
1617
+
1618
+ declare class NiceSelectableListIsEmptyDirectiveContext {
1619
+ $implicit: boolean;
1620
+ isEmpty: boolean;
1621
+ }
1622
+ declare class NiceSelectableListIsEmptyDirective implements OnInit, OnDestroy {
1623
+ private templateRef;
1624
+ private viewContainerRef;
1625
+ private contentService;
1626
+ private selectableListService;
1627
+ private context;
1628
+ private embeddedViewRef;
1629
+ private unsubscribeAll$;
1630
+ constructor(templateRef: TemplateRef<any>, viewContainerRef: ViewContainerRef, contentService: NiceSelectableListContentService, selectableListService: NiceSelectableListService);
1631
+ static ngTemplateContextGuard(directive: NiceSelectableListIsEmptyDirective, ctx: any): ctx is NiceSelectableListIsEmptyDirectiveContext;
1632
+ ngOnInit(): void;
1633
+ ngOnDestroy(): void;
1634
+ static ɵfac: i0.ɵɵFactoryDeclaration<NiceSelectableListIsEmptyDirective, never>;
1635
+ static ɵdir: i0.ɵɵDirectiveDeclaration<NiceSelectableListIsEmptyDirective, "[niceSelectableListIsEmpty]", never, {}, {}, never, never, false, never>;
1636
+ }
1637
+
1638
+ declare class NiceSelectableListModule {
1639
+ static register(...providers: Type<NicePreloadSelectedEntitiesProvider<any, any>>[]): ModuleWithProviders<NiceSelectableListModule>;
1640
+ static ɵfac: i0.ɵɵFactoryDeclaration<NiceSelectableListModule, never>;
1641
+ static ɵmod: i0.ɵɵNgModuleDeclaration<NiceSelectableListModule, [typeof NiceSelectableListDirective, typeof NiceSelectableListCheckboxDirective, typeof NiceSelectableListSelectAllDirective, typeof NiceSelectableListIsEmptyDirective], never, [typeof NiceSelectableListDirective, typeof NiceSelectableListCheckboxDirective, typeof NiceSelectableListSelectAllDirective, typeof NiceSelectableListIsEmptyDirective]>;
1642
+ static ɵinj: i0.ɵɵInjectorDeclaration<NiceSelectableListModule>;
1643
+ }
1644
+
1645
+ declare class NiceCustomDateAdapter extends NativeDateAdapter {
1646
+ private translateService;
1647
+ constructor(translateService: TranslateService);
1648
+ format(date: Date, displayFormat: any): string;
1649
+ getDate(date: Date): number;
1650
+ getMonth(date: Date): number;
1651
+ getYear(date: Date): number;
1652
+ static ɵfac: i0.ɵɵFactoryDeclaration<NiceCustomDateAdapter, never>;
1653
+ static ɵprov: i0.ɵɵInjectableDeclaration<NiceCustomDateAdapter>;
1654
+ }
1655
+
1656
+ declare class FilterUtils {
1657
+ static parametersToRequest(filterParameters: FilterParametersModel): FilterQueryModel;
1658
+ static filterChangeNeedsRefresh(currentFilters: FilterParametersModel, newFilters: FilterParametersModel): boolean;
1659
+ }
1660
+
1661
+ declare class StringUtils {
1662
+ }
1663
+ declare global {
1664
+ interface String {
1665
+ toTableColumn(sortable?: boolean, nullLast?: boolean): TableColumns;
1666
+ toTableColumn({ sortable, nullLast }: {
1667
+ sortable?: boolean;
1668
+ nullLast?: boolean;
1669
+ }): TableColumns;
1670
+ }
1671
+ }
1672
+
1673
+ declare class OrderUtils {
1674
+ static mergeOrder(oldOrder?: OrderModel, newOrder?: OrderModel): OrderModel | undefined;
1675
+ static combineOrders(firstOrder?: OrderModel | OrderModel[], secondOrder?: OrderModel | OrderModel[], opts?: {
1676
+ uniqueFromBack: any;
1677
+ }): OrderModel[];
1678
+ }
1679
+
1680
+ export { AdvancedFiltersAsyncTypeaheadProvider, AdvancedFiltersForm, AdvancedFiltersTriggerDirective, AdvancedFiltersUtils, DateFilterComponent, FilterComponent$1 as FilterComponent, FilterForm, FilterFormValues, FilterGroupIconPipe, FilterOperatorTypes, FilterSelectionComponent, FilterType, FilterUtils, LayoutContent, NiceAdvancedDateFilterComponent, NiceAdvancedFiltersButtonComponent, NiceAdvancedFiltersComponent, NiceAdvancedFiltersModule, NiceAdvancedRuleComponent, NiceBaseFilterViewComponent, NiceBaseListButtonsDirective, NiceBaseListCardsDirective, NiceBaseListComponent, NiceBaseListCustomContentDirective, NiceBaseListDirectiveModule, NiceBaseListEmptySearchResultStateDirective, NiceBaseListEmptyStateDirective, NiceBaseListFiltersDirective, NiceBaseListModule, NiceBaseListQuery, NiceBaseListService, NiceBaseListStore, NiceBaseListTableDirective, NiceBaseListTitleDirective, NiceCustomDateAdapter, NiceFilterApi, NiceFilterCustomDataViewComponent, NiceFilterDataDirective, NiceFilterExportButtonsComponent, NiceFilterExportDirective, NiceFilterGroupService, NiceFilterInfiniteScrollDataViewComponent, NiceFilterMatPaginatorPaginationDirective, NiceFilterMatSortSortingDirective, NiceFilterMatTableViewDirective, NiceFilterQueryParamsDirective, NiceFilterSearchComponent, NiceFilterService, NiceFilterViewComponent, NiceFilterViewModule, NiceFilterViewQuery, NiceFilterViewService, NiceListState, NiceMultiStateFilterService, NiceMultiStateListComponent, NiceMultiStateListModule, NiceMultiStateListQuery, NiceMultiStateListService, NiceMultiStateListStore, NiceNestedFilterView, NicePreloadSelectedEntitiesProvider, NiceQueryBuilderComponent, NiceQueryBuilderModule, NiceSavedReportService, NiceSelectableListCheckboxDirective, NiceSelectableListDirective, NiceSelectableListIsEmptyDirective, NiceSelectableListModule, NiceSelectableListSelectAllDirective, NiceSelectableListService, NiceSelectableListStateQuery, NiceSelectableListStateService, NumberFilterComponent, OrderUtils, QBFilterUtils, QueryBuilderTriggerDirective, RadioFilterComponent, RuleComponent, SelectFilterComponent, StringUtils, TableColumns, TextFilterComponent, defaultIcons, defaultLayout, initialBaseListState, initialValue, mixinNiceFilterApi };
1681
+ export type { AfterQueryParamLoadedCallback, AvailableLayoutItem, BaseListGlobalOptions, BaseListLayout, BaseListOptions, BaseListPageLayout, Condition, CustomOperator, ExportSettings, FilterBaseConfigurationModel, FilterConfigurationModel, FilterGroupConfiguration, FilterOperators, FilterOperatorsConfiguration, FilterPageMode, FilterParametersModel, FilterQueryModel, FilterResultModel, FilterSearchModel, HasNiceFilterApiDefinition, INiceFilterService, Layout, LayoutItem, ListStates, MultiStateListOptions, NiceAdvancedFiltersOptions, NiceBaseFilterViewInitOptions, NiceBaseIconOptions, NiceBaseListIcons, NiceBaseListState, NiceFilterApiDefinition, NiceFilterApiDefinitionCtor, NiceFilterViewGlobalOptions, NiceFilterViewOptions, NiceHttpOptions, NiceMultiStateListState, NiceSelectableListEntity, NiceSelectableListLoadAllEntitiesOptions, NiceSelectableListOptions, NiceSelectableListState, OptionsFilterSelectionMode, OrderModel, QueryBuilderGlobalOptions, QueryModel, QueryParams, QueryRuleModel, RadioFilterOptionConfiguration, RuleModel, SelectAllBehaviour, SelectFilterValue, TableColumnsModel };