nuxeo-development-framework 5.2.2 → 5.2.4

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 (373) hide show
  1. package/bundles/nuxeo-development-framework.umd.js +7114 -714
  2. package/bundles/nuxeo-development-framework.umd.js.map +1 -1
  3. package/esm2015/lib/components/dynamic-search/dynamic-search/dynamic-search.component.js +48 -34
  4. package/esm2015/lib/components/dynamic-search/dynamic-search.module.js +5 -5
  5. package/esm2015/lib/components/ndf-datepicker/adapters/hijri-adapter.js +203 -0
  6. package/esm2015/lib/components/ndf-datepicker/adapters/index.js +3 -0
  7. package/esm2015/lib/components/ndf-datepicker/adapters/moment-adapter.js +186 -0
  8. package/esm2015/lib/components/ndf-datepicker/base/base-value-accessor.js +92 -0
  9. package/esm2015/lib/components/ndf-datepicker/base/index.js +2 -0
  10. package/esm2015/lib/components/ndf-datepicker/components/base-datepicker.js +37 -0
  11. package/esm2015/lib/components/ndf-datepicker/components/index.js +4 -0
  12. package/esm2015/lib/components/ndf-datepicker/components/input-date.component.js +110 -0
  13. package/esm2015/lib/components/ndf-datepicker/components/input-range-date.component.js +124 -0
  14. package/esm2015/lib/components/ndf-datepicker/constants/date-locale-keys.js +7 -0
  15. package/esm2015/lib/components/ndf-datepicker/constants/date-picker.js +2 -0
  16. package/esm2015/lib/components/ndf-datepicker/constants/date-type.js +5 -0
  17. package/esm2015/lib/components/ndf-datepicker/constants/formats.js +24 -0
  18. package/esm2015/lib/components/ndf-datepicker/constants/hijri-dates-names.js +117 -0
  19. package/esm2015/lib/components/ndf-datepicker/constants/index.js +6 -0
  20. package/esm2015/lib/components/ndf-datepicker/containers/datepicker-container.js +37 -0
  21. package/esm2015/lib/components/ndf-datepicker/containers/index.js +3 -0
  22. package/esm2015/lib/components/ndf-datepicker/containers/ndf-gregorian-datepicker.component.js +105 -0
  23. package/esm2015/lib/components/ndf-datepicker/containers/ndf-hijri-datepicker.component.js +112 -0
  24. package/esm2015/lib/components/ndf-datepicker/index.js +10 -0
  25. package/esm2015/lib/components/ndf-datepicker/models/data-types.js +2 -0
  26. package/esm2015/lib/components/ndf-datepicker/models/index.js +3 -0
  27. package/esm2015/lib/components/ndf-datepicker/models/value-object.js +2 -0
  28. package/esm2015/lib/components/ndf-datepicker/ndf-datepicker.component.js +198 -0
  29. package/esm2015/lib/components/ndf-datepicker/ndf-datepicker.module.js +66 -0
  30. package/esm2015/lib/components/ndf-datepicker/services/calendar.service.js +130 -0
  31. package/esm2015/lib/components/ndf-datepicker/services/index.js +3 -0
  32. package/esm2015/lib/components/ndf-datepicker/services/localize-state.service.js +41 -0
  33. package/esm2015/lib/components/no-data-found/index.js +3 -0
  34. package/esm2015/lib/components/no-data-found/no-data-found.component.js +33 -0
  35. package/esm2015/lib/components/no-data-found/no-data.module.js +19 -0
  36. package/esm2015/lib/components/notifications/models/common.js +1 -1
  37. package/esm2015/lib/components/{dynamic-table → tables/dynamic-table}/directives/empty-state.directive.js +1 -1
  38. package/esm2015/lib/components/tables/dynamic-table/dynamic-table/dynamic-table.component.js +353 -0
  39. package/esm2015/lib/components/tables/dynamic-table/dynamic-table.module.js +51 -0
  40. package/esm2015/lib/components/tables/dynamic-table/index.js +2 -0
  41. package/esm2015/lib/components/tables/dynamic-table/public-api.js +5 -0
  42. package/esm2015/lib/components/tables/dynamic-table/services/dynamic-table.service.js +16 -0
  43. package/esm2015/lib/components/{dynamic-table → tables}/index.js +1 -1
  44. package/esm2015/lib/components/tables/ndf-table/components/index.js +6 -0
  45. package/esm2015/lib/components/tables/ndf-table/components/mode-toggler/mode-toggler.component.js +45 -0
  46. package/esm2015/lib/components/tables/ndf-table/components/sorting-list/sorting-list.component.js +42 -0
  47. package/esm2015/lib/components/tables/ndf-table/components/table-columns-toggler/table-columns-toggler.component.js +123 -0
  48. package/esm2015/lib/components/tables/ndf-table/components/table-export/table-export.component.js +41 -0
  49. package/esm2015/lib/components/tables/ndf-table/components/text-search/text-search.component.js +74 -0
  50. package/esm2015/lib/components/tables/ndf-table/constants/index.js +2 -0
  51. package/esm2015/lib/components/tables/ndf-table/constants/sizes.js +19 -0
  52. package/esm2015/lib/components/tables/ndf-table/containers/index.js +2 -0
  53. package/esm2015/lib/components/tables/ndf-table/containers/ndf-table/ndf-table.component.js +404 -0
  54. package/esm2015/lib/components/tables/ndf-table/directives/actions.directive.js +28 -0
  55. package/esm2015/lib/components/tables/ndf-table/directives/filter-custom.directive.js +28 -0
  56. package/esm2015/lib/components/tables/ndf-table/directives/fluid-height.directive.js +112 -0
  57. package/esm2015/lib/components/tables/ndf-table/directives/index.js +5 -0
  58. package/esm2015/lib/components/tables/ndf-table/directives/search.directive.js +28 -0
  59. package/esm2015/lib/components/tables/ndf-table/filters-panel/base/base-aggregation-field.component.js +91 -0
  60. package/esm2015/lib/components/tables/ndf-table/filters-panel/base/base-checkbox-radio.component.js +66 -0
  61. package/esm2015/lib/components/tables/ndf-table/filters-panel/base/base-custom-field.component.js +46 -0
  62. package/esm2015/lib/components/tables/ndf-table/filters-panel/base/base-predicate-field.component.js +43 -0
  63. package/esm2015/lib/components/tables/ndf-table/filters-panel/base/base-value-accessor.component.js +34 -0
  64. package/esm2015/lib/components/tables/ndf-table/filters-panel/base/index.js +6 -0
  65. package/esm2015/lib/components/tables/ndf-table/filters-panel/components/__parts/field-header.component.js +36 -0
  66. package/esm2015/lib/components/tables/ndf-table/filters-panel/components/__parts/filter-autocomplete-input/filter-autocomplete-input.component.js +97 -0
  67. package/esm2015/lib/components/tables/ndf-table/filters-panel/components/__parts/filter-autocomplete-input/filter-autocomplete.service.js +43 -0
  68. package/esm2015/lib/components/tables/ndf-table/filters-panel/components/__parts/filter-collapse-control/filter-collapse-control.component.js +44 -0
  69. package/esm2015/lib/components/tables/ndf-table/filters-panel/components/__parts/filter-date-range/filter-date-range.component.js +89 -0
  70. package/esm2015/lib/components/tables/ndf-table/filters-panel/components/__parts/filter-empty-message.component.js +30 -0
  71. package/esm2015/lib/components/tables/ndf-table/filters-panel/components/__parts/filter-option-text/filter-option-text.component.js +33 -0
  72. package/esm2015/lib/components/tables/ndf-table/filters-panel/components/__parts/filter-options-sort/filter-options-sort.component.js +34 -0
  73. package/esm2015/lib/components/tables/ndf-table/filters-panel/components/__parts/filter-search-input/filter-search-input.component.js +36 -0
  74. package/esm2015/lib/components/tables/ndf-table/filters-panel/components/__parts/html-dialog/html-dialog.component.js +34 -0
  75. package/esm2015/lib/components/tables/ndf-table/filters-panel/components/__parts/index.js +10 -0
  76. package/esm2015/lib/components/tables/ndf-table/filters-panel/components/aggregation-autocomplete/aggregation-autocomplete.component.js +109 -0
  77. package/esm2015/lib/components/tables/ndf-table/filters-panel/components/aggregation-checkbox/aggregation-checkbox.component.js +65 -0
  78. package/esm2015/lib/components/tables/ndf-table/filters-panel/components/aggregation-custom/aggregation-custom.component.js +66 -0
  79. package/esm2015/lib/components/tables/ndf-table/filters-panel/components/aggregation-date-list/aggregation-date-list.component.js +219 -0
  80. package/esm2015/lib/components/tables/ndf-table/filters-panel/components/aggregation-radio/aggregation-radio.component.js +68 -0
  81. package/esm2015/lib/components/tables/ndf-table/filters-panel/components/aggregation-select/aggregation-select.component.js +83 -0
  82. package/esm2015/lib/components/tables/ndf-table/filters-panel/components/aggregation-switch/aggregation-switch.component.js +71 -0
  83. package/esm2015/lib/components/tables/ndf-table/filters-panel/components/index.js +11 -0
  84. package/esm2015/lib/components/tables/ndf-table/filters-panel/components/predicate-date-input/predicate-date-input.component.js +146 -0
  85. package/esm2015/lib/components/tables/ndf-table/filters-panel/components/predicate-text-input/predicate-text-input.component.js +144 -0
  86. package/esm2015/lib/components/tables/ndf-table/filters-panel/constants/common.js +4 -0
  87. package/esm2015/lib/components/tables/ndf-table/filters-panel/constants/field.js +6 -0
  88. package/esm2015/lib/components/tables/ndf-table/filters-panel/constants/index.js +5 -0
  89. package/esm2015/lib/components/tables/ndf-table/filters-panel/constants/operators.js +18 -0
  90. package/esm2015/lib/components/tables/ndf-table/filters-panel/constants/sort.js +23 -0
  91. package/esm2015/lib/components/tables/ndf-table/filters-panel/constants/type.js +26 -0
  92. package/esm2015/lib/components/tables/ndf-table/filters-panel/containers/aggregation-field/aggregation-field.component.js +78 -0
  93. package/esm2015/lib/components/tables/ndf-table/filters-panel/containers/base-field.js +62 -0
  94. package/esm2015/lib/components/tables/ndf-table/filters-panel/containers/custom-field/custom-field.component.js +73 -0
  95. package/esm2015/lib/components/tables/ndf-table/filters-panel/containers/filters-panel/base-filters-panel.js +55 -0
  96. package/esm2015/lib/components/tables/ndf-table/filters-panel/containers/filters-panel/filters-panel.component.js +122 -0
  97. package/esm2015/lib/components/tables/ndf-table/filters-panel/containers/index.js +5 -0
  98. package/esm2015/lib/components/tables/ndf-table/filters-panel/containers/predicate-field/predicate-field.component.js +71 -0
  99. package/esm2015/lib/components/tables/ndf-table/filters-panel/custom-components/active-user-switch/active-user-switch.component.js +55 -0
  100. package/esm2015/lib/components/tables/ndf-table/filters-panel/custom-components/active-user-switch/active-user.service.js +17 -0
  101. package/esm2015/lib/components/tables/ndf-table/filters-panel/custom-components/active-user-switch/user-types.js +2 -0
  102. package/esm2015/lib/components/tables/ndf-table/filters-panel/custom-components/index.js +2 -0
  103. package/esm2015/lib/components/tables/ndf-table/filters-panel/directives/autocomplete-template.directive.js +28 -0
  104. package/esm2015/lib/components/tables/ndf-table/filters-panel/directives/checkbox-template.directive.js +28 -0
  105. package/esm2015/lib/components/tables/ndf-table/filters-panel/directives/custom-template.directive.js +28 -0
  106. package/esm2015/lib/components/tables/ndf-table/filters-panel/directives/date-template.directive.js +28 -0
  107. package/esm2015/lib/components/tables/ndf-table/filters-panel/directives/dropdown-label-template.directive.js +53 -0
  108. package/esm2015/lib/components/tables/ndf-table/filters-panel/directives/dropdown-template.directive.js +28 -0
  109. package/esm2015/lib/components/tables/ndf-table/filters-panel/directives/index.js +9 -0
  110. package/esm2015/lib/components/tables/ndf-table/filters-panel/directives/radio-template.directive.js +28 -0
  111. package/esm2015/lib/components/tables/ndf-table/filters-panel/directives/switch-template.directive.js +28 -0
  112. package/esm2015/lib/components/tables/ndf-table/filters-panel/filters-panel.module.js +205 -0
  113. package/esm2015/lib/components/tables/ndf-table/filters-panel/index.js +12 -0
  114. package/esm2015/lib/components/tables/ndf-table/filters-panel/models/aggregation-field-config.js +2 -0
  115. package/esm2015/lib/components/tables/ndf-table/filters-panel/models/aggregation-response.model.js +2 -0
  116. package/esm2015/lib/components/tables/ndf-table/filters-panel/models/base-field-config.js +2 -0
  117. package/esm2015/lib/components/tables/ndf-table/filters-panel/models/common.js +2 -0
  118. package/esm2015/lib/components/tables/ndf-table/filters-panel/models/custom-field-config.js +2 -0
  119. package/esm2015/lib/components/tables/ndf-table/filters-panel/models/field-config.model.js +2 -0
  120. package/esm2015/lib/components/tables/ndf-table/filters-panel/models/field-options/autocomplete-options.js +2 -0
  121. package/esm2015/lib/components/tables/ndf-table/filters-panel/models/field-options/checkbox-options.js +2 -0
  122. package/esm2015/lib/components/tables/ndf-table/filters-panel/models/field-options/common-utils.js +2 -0
  123. package/esm2015/lib/components/tables/ndf-table/filters-panel/models/field-options/custom-fields-options.js +2 -0
  124. package/esm2015/lib/components/tables/ndf-table/filters-panel/models/field-options/custom-options.js +2 -0
  125. package/esm2015/lib/components/tables/ndf-table/filters-panel/models/field-options/date-list-options.js +2 -0
  126. package/esm2015/lib/components/tables/ndf-table/filters-panel/models/field-options/date-options.js +2 -0
  127. package/esm2015/lib/components/tables/ndf-table/filters-panel/models/field-options/dropdown-options.js +2 -0
  128. package/esm2015/lib/components/tables/ndf-table/filters-panel/models/field-options/index.js +12 -0
  129. package/esm2015/lib/components/tables/ndf-table/filters-panel/models/field-options/input-options.js +2 -0
  130. package/esm2015/lib/components/tables/ndf-table/filters-panel/models/field-options/radio-options.js +2 -0
  131. package/esm2015/lib/components/tables/ndf-table/filters-panel/models/field-options/switch-options.js +2 -0
  132. package/esm2015/lib/components/tables/ndf-table/filters-panel/models/filter-option.model.js +2 -0
  133. package/esm2015/lib/components/tables/ndf-table/filters-panel/models/form-query-request.js +2 -0
  134. package/esm2015/lib/components/tables/ndf-table/filters-panel/models/index.js +13 -0
  135. package/esm2015/lib/components/tables/ndf-table/filters-panel/models/predicate-field-config.js +2 -0
  136. package/esm2015/lib/components/tables/ndf-table/filters-panel/models/types-helper.js +2 -0
  137. package/esm2015/lib/components/tables/ndf-table/filters-panel/models/value-object.model.js +12 -0
  138. package/esm2015/lib/components/tables/ndf-table/filters-panel/pipes/autocomplete-filter.pipe.js +27 -0
  139. package/esm2015/lib/components/tables/ndf-table/filters-panel/pipes/filter.pipe.js +27 -0
  140. package/esm2015/lib/components/tables/ndf-table/filters-panel/pipes/hash-translate.pipe.js +52 -0
  141. package/esm2015/lib/components/tables/ndf-table/filters-panel/pipes/index.js +9 -0
  142. package/esm2015/lib/components/tables/ndf-table/filters-panel/pipes/localized-label.pipe.js +28 -0
  143. package/esm2015/lib/components/tables/ndf-table/filters-panel/pipes/roles-filters.pipe.js +31 -0
  144. package/esm2015/lib/components/tables/ndf-table/filters-panel/pipes/sanitizer.pipe.js +34 -0
  145. package/esm2015/lib/components/tables/ndf-table/filters-panel/pipes/sort.pipe.js +40 -0
  146. package/esm2015/lib/components/tables/ndf-table/filters-panel/pipes/tooltip.pipe.js +69 -0
  147. package/esm2015/lib/components/tables/ndf-table/filters-panel/services/aggregation-field.service.js +105 -0
  148. package/esm2015/lib/components/tables/ndf-table/filters-panel/services/dynamic-component-loader.service.js +59 -0
  149. package/esm2015/lib/components/tables/ndf-table/filters-panel/services/filters-query.service.js +117 -0
  150. package/esm2015/lib/components/tables/ndf-table/filters-panel/services/index.js +5 -0
  151. package/esm2015/lib/components/tables/ndf-table/filters-panel/services/ndf-transform.service.js +80 -0
  152. package/esm2015/lib/components/tables/ndf-table/filters-panel/utility/index.js +3 -0
  153. package/esm2015/lib/components/tables/ndf-table/filters-panel/utility/nxql.js +47 -0
  154. package/esm2015/lib/components/tables/ndf-table/filters-panel/utility/object.js +42 -0
  155. package/esm2015/lib/components/tables/ndf-table/index.js +2 -0
  156. package/esm2015/lib/components/tables/ndf-table/models/index.js +8 -0
  157. package/esm2015/lib/components/tables/ndf-table/models/payload-types.js +2 -0
  158. package/esm2015/lib/components/tables/ndf-table/models/search.config.js +2 -0
  159. package/esm2015/lib/components/tables/ndf-table/models/table-column.js +2 -0
  160. package/esm2015/lib/components/tables/ndf-table/models/table-config.js +2 -0
  161. package/esm2015/lib/components/tables/ndf-table/models/table-mode.js +2 -0
  162. package/esm2015/lib/components/tables/ndf-table/models/table-options.js +2 -0
  163. package/esm2015/lib/components/tables/ndf-table/models/types.js +2 -0
  164. package/esm2015/lib/components/tables/ndf-table/ndf-table.module.js +104 -0
  165. package/esm2015/lib/components/tables/ndf-table/public-api.js +8 -0
  166. package/esm2015/lib/components/tables/ndf-table/services/filters-mapper.service.js +60 -0
  167. package/esm2015/lib/components/tables/ndf-table/services/index.js +3 -0
  168. package/esm2015/lib/components/tables/ndf-table/services/ndf-table.service.js +27 -0
  169. package/esm2015/lib/components/tables/ndf-table/utils/index.js +2 -0
  170. package/esm2015/lib/components/tables/ndf-table/utils/nxql-query.js +52 -0
  171. package/esm2015/lib/components/tables/public-api.js +4 -0
  172. package/esm2015/lib/components/tables/table/dynamic-column/dynamic-column.component.js +68 -0
  173. package/esm2015/lib/components/tables/table/dynamic-component.js +59 -0
  174. package/esm2015/lib/components/tables/table/index.js +2 -0
  175. package/esm2015/lib/components/{table → tables/table}/page-sizes-list/page-sizes-list.component.js +1 -1
  176. package/esm2015/lib/components/tables/table/public-api.js +6 -0
  177. package/esm2015/lib/components/tables/table/table/table.component.js +302 -0
  178. package/esm2015/lib/components/tables/table/table.module.js +69 -0
  179. package/esm2015/lib/core/services/index.js +3 -0
  180. package/esm2015/lib/shared/models/index.js +2 -1
  181. package/esm2015/lib/shared/models/types-helper.js +2 -0
  182. package/esm2015/public-api.js +4 -7
  183. package/fesm2015/nuxeo-development-framework.js +6335 -554
  184. package/fesm2015/nuxeo-development-framework.js.map +1 -1
  185. package/lib/components/dynamic-search/dynamic-search/dynamic-search.component.d.ts +1 -1
  186. package/lib/components/dynamic-search/dynamic-search.module.d.ts +1 -1
  187. package/lib/components/ndf-datepicker/adapters/hijri-adapter.d.ts +35 -0
  188. package/lib/components/ndf-datepicker/adapters/index.d.ts +2 -0
  189. package/lib/components/ndf-datepicker/adapters/moment-adapter.d.ts +50 -0
  190. package/lib/components/ndf-datepicker/base/base-value-accessor.d.ts +38 -0
  191. package/lib/components/ndf-datepicker/base/index.d.ts +1 -0
  192. package/lib/components/ndf-datepicker/components/base-datepicker.d.ts +13 -0
  193. package/lib/components/ndf-datepicker/components/index.d.ts +3 -0
  194. package/lib/components/ndf-datepicker/components/input-date.component.d.ts +19 -0
  195. package/lib/components/ndf-datepicker/components/input-range-date.component.d.ts +19 -0
  196. package/lib/components/ndf-datepicker/constants/date-locale-keys.d.ts +6 -0
  197. package/lib/components/ndf-datepicker/constants/date-picker.d.ts +1 -0
  198. package/lib/components/ndf-datepicker/constants/date-type.d.ts +4 -0
  199. package/lib/components/ndf-datepicker/constants/formats.d.ts +5 -0
  200. package/lib/components/ndf-datepicker/constants/hijri-dates-names.d.ts +12 -0
  201. package/lib/components/ndf-datepicker/constants/index.d.ts +5 -0
  202. package/lib/components/ndf-datepicker/containers/datepicker-container.d.ts +15 -0
  203. package/lib/components/ndf-datepicker/containers/index.d.ts +2 -0
  204. package/lib/components/ndf-datepicker/containers/ndf-gregorian-datepicker.component.d.ts +10 -0
  205. package/lib/components/ndf-datepicker/containers/ndf-hijri-datepicker.component.d.ts +10 -0
  206. package/lib/components/ndf-datepicker/index.d.ts +9 -0
  207. package/lib/components/ndf-datepicker/models/data-types.d.ts +11 -0
  208. package/lib/components/ndf-datepicker/models/index.d.ts +2 -0
  209. package/lib/components/ndf-datepicker/models/value-object.d.ts +8 -0
  210. package/lib/components/ndf-datepicker/ndf-datepicker.component.d.ts +42 -0
  211. package/lib/components/ndf-datepicker/ndf-datepicker.module.d.ts +20 -0
  212. package/lib/components/ndf-datepicker/services/calendar.service.d.ts +33 -0
  213. package/lib/components/ndf-datepicker/services/index.d.ts +2 -0
  214. package/lib/components/ndf-datepicker/services/localize-state.service.d.ts +34 -0
  215. package/lib/components/no-data-found/index.d.ts +2 -0
  216. package/lib/components/no-data-found/no-data-found.component.d.ts +8 -0
  217. package/lib/components/no-data-found/no-data.module.d.ts +9 -0
  218. package/lib/components/notifications/models/common.d.ts +0 -1
  219. package/lib/components/{dynamic-table → tables/dynamic-table}/dynamic-table/dynamic-table.component.d.ts +7 -3
  220. package/lib/components/{dynamic-table → tables/dynamic-table}/dynamic-table.module.d.ts +3 -3
  221. package/lib/components/tables/index.d.ts +1 -0
  222. package/lib/components/tables/ndf-table/components/index.d.ts +5 -0
  223. package/lib/components/tables/ndf-table/components/mode-toggler/mode-toggler.component.d.ts +13 -0
  224. package/lib/components/tables/ndf-table/components/sorting-list/sorting-list.component.d.ts +12 -0
  225. package/lib/components/tables/ndf-table/components/table-columns-toggler/table-columns-toggler.component.d.ts +35 -0
  226. package/lib/components/tables/ndf-table/components/table-export/table-export.component.d.ts +13 -0
  227. package/lib/components/tables/ndf-table/components/text-search/text-search.component.d.ts +21 -0
  228. package/lib/components/tables/ndf-table/constants/index.d.ts +1 -0
  229. package/lib/components/tables/ndf-table/constants/sizes.d.ts +4 -0
  230. package/lib/components/tables/ndf-table/containers/index.d.ts +1 -0
  231. package/lib/components/tables/ndf-table/containers/ndf-table/ndf-table.component.d.ts +119 -0
  232. package/lib/components/tables/ndf-table/directives/actions.directive.d.ts +9 -0
  233. package/lib/components/tables/ndf-table/directives/filter-custom.directive.d.ts +9 -0
  234. package/lib/components/tables/ndf-table/directives/fluid-height.directive.d.ts +36 -0
  235. package/lib/components/tables/ndf-table/directives/index.d.ts +4 -0
  236. package/lib/components/tables/ndf-table/directives/search.directive.d.ts +9 -0
  237. package/lib/components/tables/ndf-table/filters-panel/base/base-aggregation-field.component.d.ts +35 -0
  238. package/lib/components/tables/ndf-table/filters-panel/base/base-checkbox-radio.component.d.ts +22 -0
  239. package/lib/components/tables/ndf-table/filters-panel/base/base-custom-field.component.d.ts +19 -0
  240. package/lib/components/tables/ndf-table/filters-panel/base/base-predicate-field.component.d.ts +15 -0
  241. package/lib/components/tables/ndf-table/filters-panel/base/base-value-accessor.component.d.ts +20 -0
  242. package/lib/components/tables/ndf-table/filters-panel/base/index.d.ts +5 -0
  243. package/lib/components/tables/ndf-table/filters-panel/components/__parts/field-header.component.d.ts +5 -0
  244. package/lib/components/tables/ndf-table/filters-panel/components/__parts/filter-autocomplete-input/filter-autocomplete-input.component.d.ts +35 -0
  245. package/lib/components/tables/ndf-table/filters-panel/components/__parts/filter-autocomplete-input/filter-autocomplete.service.d.ts +13 -0
  246. package/lib/components/tables/ndf-table/filters-panel/components/__parts/filter-collapse-control/filter-collapse-control.component.d.ts +12 -0
  247. package/lib/components/tables/ndf-table/filters-panel/components/__parts/filter-date-range/filter-date-range.component.d.ts +16 -0
  248. package/lib/components/tables/ndf-table/filters-panel/components/__parts/filter-empty-message.component.d.ts +6 -0
  249. package/lib/components/tables/ndf-table/filters-panel/components/__parts/filter-option-text/filter-option-text.component.d.ts +9 -0
  250. package/lib/components/tables/ndf-table/filters-panel/components/__parts/filter-options-sort/filter-options-sort.component.d.ts +11 -0
  251. package/lib/components/tables/ndf-table/filters-panel/components/__parts/filter-search-input/filter-search-input.component.d.ts +10 -0
  252. package/lib/components/tables/ndf-table/filters-panel/components/__parts/html-dialog/html-dialog.component.d.ts +10 -0
  253. package/lib/components/tables/ndf-table/filters-panel/components/__parts/index.d.ts +9 -0
  254. package/lib/components/tables/ndf-table/filters-panel/components/aggregation-autocomplete/aggregation-autocomplete.component.d.ts +20 -0
  255. package/lib/components/tables/ndf-table/filters-panel/components/aggregation-checkbox/aggregation-checkbox.component.d.ts +10 -0
  256. package/lib/components/tables/ndf-table/filters-panel/components/aggregation-custom/aggregation-custom.component.d.ts +9 -0
  257. package/lib/components/tables/ndf-table/filters-panel/components/aggregation-date-list/aggregation-date-list.component.d.ts +41 -0
  258. package/lib/components/tables/ndf-table/filters-panel/components/aggregation-radio/aggregation-radio.component.d.ts +11 -0
  259. package/lib/components/tables/ndf-table/filters-panel/components/aggregation-select/aggregation-select.component.d.ts +14 -0
  260. package/lib/components/tables/ndf-table/filters-panel/components/aggregation-switch/aggregation-switch.component.d.ts +11 -0
  261. package/lib/components/tables/ndf-table/filters-panel/components/index.d.ts +10 -0
  262. package/lib/components/tables/ndf-table/filters-panel/components/predicate-date-input/predicate-date-input.component.d.ts +25 -0
  263. package/lib/components/tables/ndf-table/filters-panel/components/predicate-text-input/predicate-text-input.component.d.ts +40 -0
  264. package/lib/components/tables/ndf-table/filters-panel/constants/common.d.ts +3 -0
  265. package/lib/components/tables/ndf-table/filters-panel/constants/field.d.ts +5 -0
  266. package/lib/components/tables/ndf-table/filters-panel/constants/index.d.ts +4 -0
  267. package/lib/components/tables/ndf-table/filters-panel/constants/operators.d.ts +17 -0
  268. package/lib/components/tables/ndf-table/filters-panel/constants/sort.d.ts +2 -0
  269. package/lib/components/tables/ndf-table/filters-panel/constants/type.d.ts +25 -0
  270. package/lib/components/tables/ndf-table/filters-panel/containers/aggregation-field/aggregation-field.component.d.ts +13 -0
  271. package/lib/components/tables/ndf-table/filters-panel/containers/base-field.d.ts +21 -0
  272. package/lib/components/tables/ndf-table/filters-panel/containers/custom-field/custom-field.component.d.ts +13 -0
  273. package/lib/components/tables/ndf-table/filters-panel/containers/filters-panel/base-filters-panel.d.ts +19 -0
  274. package/lib/components/tables/ndf-table/filters-panel/containers/filters-panel/filters-panel.component.d.ts +48 -0
  275. package/lib/components/tables/ndf-table/filters-panel/containers/index.d.ts +4 -0
  276. package/lib/components/tables/ndf-table/filters-panel/containers/predicate-field/predicate-field.component.d.ts +12 -0
  277. package/lib/components/tables/ndf-table/filters-panel/custom-components/active-user-switch/active-user-switch.component.d.ts +14 -0
  278. package/lib/components/tables/ndf-table/filters-panel/custom-components/active-user-switch/active-user.service.d.ts +8 -0
  279. package/lib/components/tables/ndf-table/filters-panel/custom-components/active-user-switch/user-types.d.ts +29 -0
  280. package/lib/components/tables/ndf-table/filters-panel/custom-components/index.d.ts +1 -0
  281. package/lib/components/tables/ndf-table/filters-panel/directives/autocomplete-template.directive.d.ts +9 -0
  282. package/lib/components/tables/ndf-table/filters-panel/directives/checkbox-template.directive.d.ts +9 -0
  283. package/lib/components/tables/ndf-table/filters-panel/directives/custom-template.directive.d.ts +9 -0
  284. package/lib/components/tables/ndf-table/filters-panel/directives/date-template.directive.d.ts +9 -0
  285. package/lib/components/tables/ndf-table/filters-panel/directives/dropdown-label-template.directive.d.ts +16 -0
  286. package/lib/components/tables/ndf-table/filters-panel/directives/dropdown-template.directive.d.ts +9 -0
  287. package/lib/components/tables/ndf-table/filters-panel/directives/index.d.ts +8 -0
  288. package/lib/components/tables/ndf-table/filters-panel/directives/radio-template.directive.d.ts +9 -0
  289. package/lib/components/tables/ndf-table/filters-panel/directives/switch-template.directive.d.ts +9 -0
  290. package/lib/components/tables/ndf-table/filters-panel/filters-panel.module.d.ts +65 -0
  291. package/lib/components/tables/ndf-table/filters-panel/index.d.ts +11 -0
  292. package/lib/components/tables/ndf-table/filters-panel/models/aggregation-field-config.d.ts +42 -0
  293. package/lib/components/tables/ndf-table/filters-panel/models/aggregation-response.model.d.ts +20 -0
  294. package/lib/components/tables/ndf-table/filters-panel/models/base-field-config.d.ts +13 -0
  295. package/lib/components/tables/ndf-table/filters-panel/models/common.d.ts +5 -0
  296. package/lib/components/tables/ndf-table/filters-panel/models/custom-field-config.d.ts +7 -0
  297. package/lib/components/tables/ndf-table/filters-panel/models/field-config.model.d.ts +14 -0
  298. package/lib/components/tables/ndf-table/filters-panel/models/field-options/autocomplete-options.d.ts +6 -0
  299. package/lib/components/tables/ndf-table/filters-panel/models/field-options/checkbox-options.d.ts +6 -0
  300. package/lib/components/tables/ndf-table/filters-panel/models/field-options/common-utils.d.ts +35 -0
  301. package/lib/components/tables/ndf-table/filters-panel/models/field-options/custom-fields-options.d.ts +9 -0
  302. package/lib/components/tables/ndf-table/filters-panel/models/field-options/custom-options.d.ts +5 -0
  303. package/lib/components/tables/ndf-table/filters-panel/models/field-options/date-list-options.d.ts +10 -0
  304. package/lib/components/tables/ndf-table/filters-panel/models/field-options/date-options.d.ts +22 -0
  305. package/lib/components/tables/ndf-table/filters-panel/models/field-options/dropdown-options.d.ts +6 -0
  306. package/lib/components/tables/ndf-table/filters-panel/models/field-options/index.d.ts +11 -0
  307. package/lib/components/tables/ndf-table/filters-panel/models/field-options/input-options.d.ts +40 -0
  308. package/lib/components/tables/ndf-table/filters-panel/models/field-options/radio-options.d.ts +6 -0
  309. package/lib/components/tables/ndf-table/filters-panel/models/field-options/switch-options.d.ts +6 -0
  310. package/lib/components/tables/ndf-table/filters-panel/models/filter-option.model.d.ts +13 -0
  311. package/lib/components/tables/ndf-table/filters-panel/models/form-query-request.d.ts +5 -0
  312. package/lib/components/tables/ndf-table/filters-panel/models/index.d.ts +12 -0
  313. package/lib/components/tables/ndf-table/filters-panel/models/predicate-field-config.d.ts +7 -0
  314. package/lib/components/tables/ndf-table/filters-panel/models/types-helper.d.ts +47 -0
  315. package/lib/components/tables/ndf-table/filters-panel/models/value-object.model.d.ts +18 -0
  316. package/lib/components/tables/ndf-table/filters-panel/pipes/autocomplete-filter.pipe.d.ts +11 -0
  317. package/lib/components/tables/ndf-table/filters-panel/pipes/filter.pipe.d.ts +11 -0
  318. package/lib/components/tables/ndf-table/filters-panel/pipes/hash-translate.pipe.d.ts +18 -0
  319. package/lib/components/tables/ndf-table/filters-panel/pipes/index.d.ts +8 -0
  320. package/lib/components/tables/ndf-table/filters-panel/pipes/localized-label.pipe.d.ts +14 -0
  321. package/lib/components/tables/ndf-table/filters-panel/pipes/roles-filters.pipe.d.ts +12 -0
  322. package/lib/components/tables/ndf-table/filters-panel/pipes/sanitizer.pipe.d.ts +10 -0
  323. package/lib/components/tables/ndf-table/filters-panel/pipes/sort.pipe.d.ts +11 -0
  324. package/lib/components/tables/ndf-table/filters-panel/pipes/tooltip.pipe.d.ts +21 -0
  325. package/lib/components/tables/ndf-table/filters-panel/services/aggregation-field.service.d.ts +16 -0
  326. package/lib/components/tables/ndf-table/filters-panel/services/dynamic-component-loader.service.d.ts +18 -0
  327. package/lib/components/tables/ndf-table/filters-panel/services/filters-query.service.d.ts +58 -0
  328. package/lib/components/tables/ndf-table/filters-panel/services/index.d.ts +4 -0
  329. package/lib/components/tables/ndf-table/filters-panel/services/ndf-transform.service.d.ts +55 -0
  330. package/lib/components/tables/ndf-table/filters-panel/utility/index.d.ts +2 -0
  331. package/lib/components/tables/ndf-table/filters-panel/utility/nxql.d.ts +19 -0
  332. package/lib/components/tables/ndf-table/filters-panel/utility/object.d.ts +7 -0
  333. package/lib/components/tables/ndf-table/index.d.ts +1 -0
  334. package/lib/components/tables/ndf-table/models/index.d.ts +7 -0
  335. package/lib/components/tables/ndf-table/models/payload-types.d.ts +28 -0
  336. package/lib/components/tables/ndf-table/models/search.config.d.ts +13 -0
  337. package/lib/components/tables/ndf-table/models/table-column.d.ts +34 -0
  338. package/lib/components/tables/ndf-table/models/table-config.d.ts +45 -0
  339. package/lib/components/tables/ndf-table/models/table-mode.d.ts +25 -0
  340. package/lib/components/tables/ndf-table/models/table-options.d.ts +54 -0
  341. package/lib/components/tables/ndf-table/models/types.d.ts +38 -0
  342. package/lib/components/tables/ndf-table/ndf-table.module.d.ts +32 -0
  343. package/lib/components/tables/ndf-table/public-api.d.ts +7 -0
  344. package/lib/components/tables/ndf-table/services/filters-mapper.service.d.ts +17 -0
  345. package/lib/components/tables/ndf-table/services/index.d.ts +2 -0
  346. package/lib/components/tables/ndf-table/services/ndf-table.service.d.ts +10 -0
  347. package/lib/components/tables/ndf-table/utils/index.d.ts +1 -0
  348. package/lib/components/tables/ndf-table/utils/nxql-query.d.ts +10 -0
  349. package/lib/components/tables/public-api.d.ts +3 -0
  350. package/lib/components/{table → tables/table}/dynamic-column/dynamic-column.component.d.ts +1 -1
  351. package/lib/components/{table → tables/table}/dynamic-component.d.ts +1 -1
  352. package/lib/components/tables/table/index.d.ts +1 -0
  353. package/lib/components/tables/table/public-api.d.ts +5 -0
  354. package/lib/components/{table → tables/table}/table/table.component.d.ts +6 -5
  355. package/lib/components/{table → tables/table}/table.module.d.ts +3 -3
  356. package/lib/core/services/index.d.ts +2 -0
  357. package/lib/shared/models/index.d.ts +1 -0
  358. package/lib/shared/models/types-helper.d.ts +1 -0
  359. package/package.json +3 -2
  360. package/public-api.d.ts +3 -6
  361. package/esm2015/lib/components/dynamic-table/dynamic-table/dynamic-table.component.js +0 -349
  362. package/esm2015/lib/components/dynamic-table/dynamic-table.module.js +0 -51
  363. package/esm2015/lib/components/dynamic-table/public-api.js +0 -5
  364. package/esm2015/lib/components/dynamic-table/services/dynamic-table.service.js +0 -16
  365. package/esm2015/lib/components/table/dynamic-column/dynamic-column.component.js +0 -68
  366. package/esm2015/lib/components/table/dynamic-component.js +0 -59
  367. package/esm2015/lib/components/table/table/table.component.js +0 -300
  368. package/esm2015/lib/components/table/table.module.js +0 -69
  369. /package/lib/components/{dynamic-table → tables/dynamic-table}/directives/empty-state.directive.d.ts +0 -0
  370. /package/lib/components/{dynamic-table → tables/dynamic-table}/index.d.ts +0 -0
  371. /package/lib/components/{dynamic-table → tables/dynamic-table}/public-api.d.ts +0 -0
  372. /package/lib/components/{dynamic-table → tables/dynamic-table}/services/dynamic-table.service.d.ts +0 -0
  373. /package/lib/components/{table → tables/table}/page-sizes-list/page-sizes-list.component.d.ts +0 -0
@@ -0,0 +1,42 @@
1
+ import { BaseFiledConfig } from './base-field-config';
2
+ import { AutocompleteOptions, CheckboxOptions, CustomOptions, DateListOptions, DropdownOptions, RadioOptions, SwitchOptions } from './field-options';
3
+ import { FieldSendModeType, Prettify } from './types-helper';
4
+ export declare type AggregationFieldConfig = Prettify<BaseFiledConfig & {
5
+ aggregation: string;
6
+ propertyPath?: string;
7
+ bindLabel?: {
8
+ ar: string;
9
+ en: string;
10
+ };
11
+ bindValue?: string;
12
+ dataTransformer?: 'documentTypee' | 'format' | 'subject' | 'site' | 'store' | 'system' | string;
13
+ sendMode?: FieldSendModeType;
14
+ tooltip?: AggregationTooltipType;
15
+ render: CheckboxOptions | SwitchOptions | RadioOptions | DropdownOptions | AutocompleteOptions | CustomOptions | DateListOptions;
16
+ }>;
17
+ export declare type AggregationTooltipType = {
18
+ properties: Record<string, any>;
19
+ } & (TooltipPlainText | TooltipLocalizedText | TooltipFormattedDate | TooltipTranslationKey | TooltipTranslatedDate);
20
+ export declare type TooltipPlainText = {
21
+ type: 'text';
22
+ separator?: string;
23
+ };
24
+ export declare type TooltipLocalizedText = {
25
+ type: 'localizeValue';
26
+ translateKey: string;
27
+ };
28
+ export declare type TooltipFormattedDate = {
29
+ type: 'date';
30
+ format: string;
31
+ separator?: string;
32
+ };
33
+ export declare type TooltipTranslationKey = {
34
+ type: 'translate';
35
+ prefix: string;
36
+ separator?: string;
37
+ };
38
+ export declare type TooltipTranslatedDate = {
39
+ type: 'translatedDate';
40
+ format: string;
41
+ translateKey: string;
42
+ };
@@ -0,0 +1,20 @@
1
+ export interface AggregationResponse {
2
+ 'entity-type'?: string;
3
+ id: string;
4
+ field?: string;
5
+ properties: Record<string, any>;
6
+ ranges?: any[];
7
+ selection?: any[];
8
+ type?: string;
9
+ buckets: AggregationBucket[];
10
+ extendedBuckets?: AggregationBucket[];
11
+ }
12
+ export interface AggregationBucket {
13
+ key: string;
14
+ docCount: number;
15
+ fetchedKey?: Record<string, any>;
16
+ from?: number;
17
+ to?: number;
18
+ fromAsDate?: Record<string, any>;
19
+ toAsDate?: Record<string, any>;
20
+ }
@@ -0,0 +1,13 @@
1
+ import { ComparisonOperator, TranslateKey } from './types-helper';
2
+ export declare type BaseFiledConfig = {
3
+ label: TranslateKey;
4
+ fieldKey: string;
5
+ values?: unknown;
6
+ prefix?: string;
7
+ order?: number;
8
+ operator?: ComparisonOperator;
9
+ valueType: 'valueObject' | 'property';
10
+ visible?: boolean;
11
+ roles?: string[];
12
+ permission?: string;
13
+ };
@@ -0,0 +1,5 @@
1
+ export declare type SortModel = {
2
+ key: string;
3
+ value: 'alphabetically' | 'count';
4
+ direction: 'asc' | 'desc';
5
+ };
@@ -0,0 +1,7 @@
1
+ import { FieldSendModeType, Prettify } from './types-helper';
2
+ import { BaseFiledConfig } from './base-field-config';
3
+ import { ActiveUserSwitcherOptions } from './field-options/custom-fields-options';
4
+ export declare type CustomFieldConfig = Prettify<BaseFiledConfig & {
5
+ sendMode?: Exclude<FieldSendModeType, 'custom'>;
6
+ render: ActiveUserSwitcherOptions;
7
+ }>;
@@ -0,0 +1,14 @@
1
+ import { AggregationFieldConfig } from './aggregation-field-config';
2
+ import { PredicateFieldConfig } from './predicate-field-config';
3
+ import { CustomFieldConfig } from './custom-field-config';
4
+ export declare type FieldConfigModel = {
5
+ type: 'aggregation';
6
+ config: AggregationFieldConfig;
7
+ } | {
8
+ type: 'predicate';
9
+ config: PredicateFieldConfig;
10
+ } | {
11
+ type: 'custom';
12
+ config: CustomFieldConfig;
13
+ };
14
+ export declare type FieldConfig = PredicateFieldConfig | AggregationFieldConfig | CustomFieldConfig;
@@ -0,0 +1,6 @@
1
+ import { Prettify } from "../types-helper";
2
+ import { HideLabel, ShowTotalConfig } from './common-utils';
3
+ export declare type AutocompleteOptions = {
4
+ type: 'autocomplete';
5
+ options?: Prettify<ShowTotalConfig & HideLabel>;
6
+ };
@@ -0,0 +1,6 @@
1
+ import { Prettify } from "../types-helper";
2
+ import { CollapseConfig, FilterConfig, HideLabel, SearchConfig, ShowTotalConfig, SortOptions } from './common-utils';
3
+ export declare type CheckboxOptions = {
4
+ type: 'checkbox';
5
+ options?: Prettify<ShowTotalConfig & FilterConfig & CollapseConfig & SearchConfig & HideLabel & SortOptions>;
6
+ };
@@ -0,0 +1,35 @@
1
+ import { ComparisonOperator, EvaluatedString, StringOrNumber } from '../types-helper';
2
+ export declare type FilterConfig = {
3
+ filter?: boolean;
4
+ };
5
+ export declare type HideLabel = {
6
+ hideLabel?: boolean;
7
+ };
8
+ export declare type SearchConfig = {
9
+ search?: {
10
+ placeholder?: string;
11
+ query: {
12
+ field?: string;
13
+ method?: 'get' | 'post';
14
+ url: string;
15
+ operator?: ComparisonOperator;
16
+ template?: EvaluatedString;
17
+ params?: Record<StringOrNumber, StringOrNumber>;
18
+ headers?: Record<StringOrNumber, StringOrNumber>;
19
+ };
20
+ };
21
+ };
22
+ export declare type CollapseConfig = {
23
+ collapse?: boolean;
24
+ minVisibleCount?: number;
25
+ expandedCount?: number;
26
+ };
27
+ export declare type MultipleConfig = {
28
+ multiple?: boolean;
29
+ };
30
+ export declare type ShowTotalConfig = {
31
+ showTotal?: boolean;
32
+ };
33
+ export declare type SortOptions = {
34
+ sort?: boolean;
35
+ };
@@ -0,0 +1,9 @@
1
+ import { Prettify } from '../types-helper';
2
+ import { HideLabel } from './common-utils';
3
+ export declare type ActiveUserSwitcherOptions = {
4
+ type: 'activeUser';
5
+ options?: Prettify<HideLabel & {
6
+ bindValue?: string;
7
+ text?: string;
8
+ }>;
9
+ };
@@ -0,0 +1,5 @@
1
+ import { HideLabel } from './common-utils';
2
+ export declare type CustomOptions = {
3
+ type: 'custom';
4
+ options?: Record<string, any> & HideLabel;
5
+ };
@@ -0,0 +1,10 @@
1
+ import { DATE_LIST_VIEW } from '../../constants';
2
+ import { Prettify } from '../types-helper';
3
+ import { HideLabel, ShowTotalConfig } from './common-utils';
4
+ export declare type DateListOptions = {
5
+ type: 'dateList';
6
+ options: Prettify<ShowTotalConfig & HideLabel> & {
7
+ view: (typeof DATE_LIST_VIEW)[keyof typeof DATE_LIST_VIEW];
8
+ minMax?: boolean;
9
+ };
10
+ };
@@ -0,0 +1,22 @@
1
+ import { Prettify } from '../types-helper';
2
+ import { HideLabel } from './common-utils';
3
+ export declare type DateInputOptions = {
4
+ type: 'date';
5
+ options?: Prettify<HideLabel & {
6
+ placeholder?: string;
7
+ debounceTime?: number;
8
+ isDateRange?: boolean;
9
+ showActions?: boolean;
10
+ autoFill?: boolean;
11
+ panelClass?: string;
12
+ endDatePlaceholder?: string;
13
+ startDatePlaceholder?: string;
14
+ startView?: 'month' | 'year' | 'multi-year';
15
+ max?: Date | string | null;
16
+ min?: Date | string | null;
17
+ startAt?: Date | string | null;
18
+ updateLocalLang?: boolean;
19
+ hijriDisplayFormat?: string;
20
+ displayFormat?: string;
21
+ }>;
22
+ };
@@ -0,0 +1,6 @@
1
+ import { Prettify } from '../types-helper';
2
+ import { HideLabel, MultipleConfig, ShowTotalConfig } from './common-utils';
3
+ export declare type DropdownOptions = {
4
+ type: 'dropdown';
5
+ options?: Prettify<ShowTotalConfig & MultipleConfig & HideLabel>;
6
+ };
@@ -0,0 +1,11 @@
1
+ export * from './autocomplete-options';
2
+ export * from './checkbox-options';
3
+ export * from './common-utils';
4
+ export * from './custom-options';
5
+ export * from './date-list-options';
6
+ export * from './dropdown-options';
7
+ export * from './input-options';
8
+ export * from './radio-options';
9
+ export * from './switch-options';
10
+ export * from './date-options';
11
+ export * from './custom-options';
@@ -0,0 +1,40 @@
1
+ import { KeyValue } from '@angular/common';
2
+ import { MatDialogConfig } from '@angular/material/dialog';
3
+ import { Prettify } from '../types-helper';
4
+ import { HideLabel } from './common-utils';
5
+ export declare type InputOptions = {
6
+ type: 'input';
7
+ options?: Prettify<HideLabel & {
8
+ inputType?: 'text' | 'search' | 'url';
9
+ placeholder?: string;
10
+ debounceTime?: number;
11
+ mask?: {
12
+ mask: string;
13
+ shownMaskExpression?: string;
14
+ dropSpecialCharacters?: boolean;
15
+ showMaskTyped?: boolean;
16
+ validation?: boolean;
17
+ allowNegativeNumbers?: boolean;
18
+ keepCharacterPositions?: boolean;
19
+ leadZero?: boolean;
20
+ hiddenInput?: boolean;
21
+ clearIfNotMatch?: boolean;
22
+ prefix?: string;
23
+ suffix?: string;
24
+ };
25
+ suffix?: {
26
+ text?: string;
27
+ dropdown?: {
28
+ selectedValue?: string;
29
+ items: KeyValue<string, string>[];
30
+ };
31
+ tooltip?: string;
32
+ dialog?: HtmlDialogConfig;
33
+ };
34
+ }>;
35
+ };
36
+ export declare type HtmlDialogConfig = {
37
+ content: string[];
38
+ title?: string;
39
+ options?: Partial<MatDialogConfig>;
40
+ };
@@ -0,0 +1,6 @@
1
+ import { Prettify } from '../types-helper';
2
+ import { CollapseConfig, FilterConfig, HideLabel, SearchConfig, ShowTotalConfig, SortOptions } from './common-utils';
3
+ export declare type RadioOptions = {
4
+ type: 'radio';
5
+ options?: Prettify<ShowTotalConfig & FilterConfig & CollapseConfig & SearchConfig & HideLabel & SortOptions>;
6
+ };
@@ -0,0 +1,6 @@
1
+ import { Prettify } from '../types-helper';
2
+ import { CollapseConfig, FilterConfig, HideLabel, MultipleConfig, SearchConfig, ShowTotalConfig, SortOptions } from './common-utils';
3
+ export declare type SwitchOptions = {
4
+ type: 'switch';
5
+ options?: Prettify<ShowTotalConfig & FilterConfig & CollapseConfig & MultipleConfig & SearchConfig & HideLabel & SortOptions>;
6
+ };
@@ -0,0 +1,13 @@
1
+ import { LocalizedValue } from './types-helper';
2
+ import { AggregationTooltipType } from './aggregation-field-config';
3
+ export interface FilterOption {
4
+ id: string;
5
+ label: string;
6
+ value: any;
7
+ count?: string | number;
8
+ localizedLabel?: LocalizedValue | null;
9
+ tooltip?: {
10
+ config: Omit<AggregationTooltipType, 'properties'>;
11
+ values: Record<string, any>;
12
+ };
13
+ }
@@ -0,0 +1,5 @@
1
+ export declare type FormQueryModel = {
2
+ emitEvent?: boolean;
3
+ onlySelf?: boolean;
4
+ query?: Record<string, any>;
5
+ };
@@ -0,0 +1,12 @@
1
+ export * from './aggregation-field-config';
2
+ export * from './aggregation-response.model';
3
+ export * from './field-config.model';
4
+ export * from './field-options';
5
+ export * from './field-options/common-utils';
6
+ export * from './filter-option.model';
7
+ export * from './predicate-field-config';
8
+ export * from './types-helper';
9
+ export * from './value-object.model';
10
+ export * from './common';
11
+ export * from './form-query-request';
12
+ export * from './custom-field-config';
@@ -0,0 +1,7 @@
1
+ import { BaseFiledConfig } from './base-field-config';
2
+ import { DateInputOptions, InputOptions } from './field-options';
3
+ import { FieldSendModeType, Prettify } from './types-helper';
4
+ export declare type PredicateFieldConfig = Prettify<BaseFiledConfig & {
5
+ sendMode?: Exclude<FieldSendModeType, 'custom'>;
6
+ render: InputOptions | DateInputOptions;
7
+ }>;
@@ -0,0 +1,47 @@
1
+ import { Observable } from 'rxjs';
2
+ import { AGGREGATION_FIELD_TYPES, COMPARISON_OPERATOR, CUSTOM_FIELD_TYPES, FIELD_SEND_MODE, PREDICATE_FIELD_TYPES } from '../constants';
3
+ import { AggregationFieldConfig } from './aggregation-field-config';
4
+ import { AggregationResponse } from './aggregation-response.model';
5
+ import { ActiveUserSwitcherOptions } from './field-options/custom-fields-options';
6
+ import { AutocompleteOptions, CheckboxOptions, CustomOptions, DateInputOptions, DateListOptions, DropdownOptions, InputOptions, RadioOptions, SwitchOptions } from './field-options';
7
+ export declare type StringOrNumber = string | number;
8
+ export declare type StrictOmit<K, T extends keyof K> = Omit<K, T>;
9
+ export declare type LocalizedValue = {
10
+ ar: string;
11
+ en: string;
12
+ };
13
+ export declare type Prettify<T> = {
14
+ [k in keyof T]: T[k];
15
+ } & {};
16
+ export declare type ComparisonOperator = (typeof COMPARISON_OPERATOR)[keyof typeof COMPARISON_OPERATOR];
17
+ export declare type AggregationFieldType = (typeof AGGREGATION_FIELD_TYPES)[keyof typeof AGGREGATION_FIELD_TYPES];
18
+ export declare type PredicateFieldType = (typeof PREDICATE_FIELD_TYPES)[keyof typeof PREDICATE_FIELD_TYPES];
19
+ export declare type CustomFieldType = (typeof CUSTOM_FIELD_TYPES)[keyof typeof CUSTOM_FIELD_TYPES];
20
+ export declare type FieldSendModeType = (typeof FIELD_SEND_MODE)[keyof typeof FIELD_SEND_MODE];
21
+ declare type FieldTypeToOptions = {
22
+ dropdown: DropdownOptions['options'];
23
+ checkbox: CheckboxOptions['options'];
24
+ radio: RadioOptions['options'];
25
+ switch: SwitchOptions['options'];
26
+ autocomplete: AutocompleteOptions['options'];
27
+ dateList: DateListOptions['options'];
28
+ input: InputOptions['options'];
29
+ date: DateInputOptions['options'];
30
+ custom: CustomOptions['options'];
31
+ activeUser: ActiveUserSwitcherOptions['options'];
32
+ };
33
+ export declare type OptionsType<T extends AggregationFieldType | PredicateFieldType | CustomFieldType> = T extends keyof FieldTypeToOptions ? FieldTypeToOptions[T] : never;
34
+ export declare type FieldOptionsType = {
35
+ fieldConfig: AggregationFieldConfig;
36
+ aggregation: AggregationResponse;
37
+ };
38
+ export interface NdfTransformerDataModel {
39
+ id?: string;
40
+ code?: string;
41
+ arabicTitle: string;
42
+ englishTitle: string;
43
+ }
44
+ export declare type NdfTransformerFunction = (keys: string[]) => Observable<NdfTransformerDataModel[]>;
45
+ export declare type EvaluatedString = `${string}{{${string}}}${string}`;
46
+ export declare type TranslateKey = string;
47
+ export {};
@@ -0,0 +1,18 @@
1
+ import { VALUE_OBJECT } from '../constants';
2
+ import { ComparisonOperator } from './types-helper';
3
+ export declare type FiledValueObjectType<T = any> = {
4
+ operator?: ComparisonOperator;
5
+ value: T;
6
+ min?: T;
7
+ max?: T;
8
+ prefix?: string;
9
+ };
10
+ export declare class FieldValueObject<T = any> implements FiledValueObjectType {
11
+ operator?: ComparisonOperator;
12
+ value: T;
13
+ min?: T;
14
+ max?: T;
15
+ prefix?: string;
16
+ [VALUE_OBJECT]: string;
17
+ constructor(obj: FiledValueObjectType);
18
+ }
@@ -0,0 +1,11 @@
1
+ import { PipeTransform } from '@angular/core';
2
+ import { TranslateService } from '@ngx-translate/core';
3
+ import { FilterOption } from '../models';
4
+ import * as i0 from "@angular/core";
5
+ export declare class AutocompleteFilterPipe implements PipeTransform {
6
+ private _translateService;
7
+ constructor(_translateService: TranslateService);
8
+ transform(items: FilterOption[], searchText: string | FilterOption): FilterOption[];
9
+ static ɵfac: i0.ɵɵFactoryDeclaration<AutocompleteFilterPipe, never>;
10
+ static ɵpipe: i0.ɵɵPipeDeclaration<AutocompleteFilterPipe, "autocomplete">;
11
+ }
@@ -0,0 +1,11 @@
1
+ import { PipeTransform } from '@angular/core';
2
+ import { TranslateService } from '@ngx-translate/core';
3
+ import { FilterOption } from '../models';
4
+ import * as i0 from "@angular/core";
5
+ export declare class FilterPipe implements PipeTransform {
6
+ private _translateService;
7
+ constructor(_translateService: TranslateService);
8
+ transform(items: FilterOption[], searchText: string): FilterOption[];
9
+ static ɵfac: i0.ɵɵFactoryDeclaration<FilterPipe, never>;
10
+ static ɵpipe: i0.ɵɵPipeDeclaration<FilterPipe, "filter">;
11
+ }
@@ -0,0 +1,18 @@
1
+ import { PipeTransform } from '@angular/core';
2
+ import { TranslateService } from '@ngx-translate/core';
3
+ import { Observable } from 'rxjs';
4
+ import * as i0 from "@angular/core";
5
+ export declare class HashTranslatePipe implements PipeTransform {
6
+ private _translate;
7
+ constructor(_translate: TranslateService);
8
+ transform(value: string): string;
9
+ static ɵfac: i0.ɵɵFactoryDeclaration<HashTranslatePipe, never>;
10
+ static ɵpipe: i0.ɵɵPipeDeclaration<HashTranslatePipe, "hashTranslate">;
11
+ }
12
+ export declare class HashTranslateAsyncPipe implements PipeTransform {
13
+ private _translate;
14
+ constructor(_translate: TranslateService);
15
+ transform(value: string): Observable<string>;
16
+ static ɵfac: i0.ɵɵFactoryDeclaration<HashTranslateAsyncPipe, never>;
17
+ static ɵpipe: i0.ɵɵPipeDeclaration<HashTranslateAsyncPipe, "hashTranslateAsync">;
18
+ }
@@ -0,0 +1,8 @@
1
+ export * from './autocomplete-filter.pipe';
2
+ export * from './filter.pipe';
3
+ export * from './hash-translate.pipe';
4
+ export * from './localized-label.pipe';
5
+ export * from './sanitizer.pipe';
6
+ export * from './sort.pipe';
7
+ export * from './tooltip.pipe';
8
+ export * from './roles-filters.pipe';
@@ -0,0 +1,14 @@
1
+ import { PipeTransform } from '@angular/core';
2
+ import { TranslateService } from '@ngx-translate/core';
3
+ import { FilterOption } from '../models';
4
+ import * as i0 from "@angular/core";
5
+ export declare class LocalizedLabelPipe implements PipeTransform {
6
+ private _translate;
7
+ /**
8
+ *
9
+ */
10
+ constructor(_translate: TranslateService);
11
+ transform(option: FilterOption, language: 'ar' | 'en' | string): string;
12
+ static ɵfac: i0.ɵɵFactoryDeclaration<LocalizedLabelPipe, never>;
13
+ static ɵpipe: i0.ɵɵPipeDeclaration<LocalizedLabelPipe, "localizedLabel">;
14
+ }
@@ -0,0 +1,12 @@
1
+ import { PipeTransform } from '@angular/core';
2
+ import { NuxeoService, RolesService } from '../../../../../core/services';
3
+ import { FieldConfigModel } from '../models';
4
+ import * as i0 from "@angular/core";
5
+ export declare class FiltersByRolesPipe implements PipeTransform {
6
+ private _nuxeoService;
7
+ private _rolesService;
8
+ constructor(_nuxeoService: NuxeoService, _rolesService: RolesService);
9
+ transform(items: FieldConfigModel[]): FieldConfigModel[];
10
+ static ɵfac: i0.ɵɵFactoryDeclaration<FiltersByRolesPipe, never>;
11
+ static ɵpipe: i0.ɵɵPipeDeclaration<FiltersByRolesPipe, "filterByRoles">;
12
+ }
@@ -0,0 +1,10 @@
1
+ import { PipeTransform } from '@angular/core';
2
+ import { DomSanitizer, SafeValue } from '@angular/platform-browser';
3
+ import * as i0 from "@angular/core";
4
+ export declare class SanitizerPipe implements PipeTransform {
5
+ private sanitizer;
6
+ constructor(sanitizer: DomSanitizer);
7
+ transform(value: string, type?: 'HTML' | 'STYLE' | 'SCRIPT' | 'URL'): SafeValue;
8
+ static ɵfac: i0.ɵɵFactoryDeclaration<SanitizerPipe, never>;
9
+ static ɵpipe: i0.ɵɵPipeDeclaration<SanitizerPipe, "sanitizer">;
10
+ }
@@ -0,0 +1,11 @@
1
+ import { PipeTransform } from '@angular/core';
2
+ import { FilterOption, SortModel } from '../models';
3
+ import { TranslateService } from '@ngx-translate/core';
4
+ import * as i0 from "@angular/core";
5
+ export declare class SortListPipe implements PipeTransform {
6
+ private _translate;
7
+ constructor(_translate: TranslateService);
8
+ transform(items: FilterOption[], sortObj: SortModel): FilterOption[];
9
+ static ɵfac: i0.ɵɵFactoryDeclaration<SortListPipe, never>;
10
+ static ɵpipe: i0.ɵɵPipeDeclaration<SortListPipe, "sortList">;
11
+ }
@@ -0,0 +1,21 @@
1
+ import { PipeTransform } from '@angular/core';
2
+ import { TranslateService } from '@ngx-translate/core';
3
+ import { FilterOption } from '../models';
4
+ import * as i0 from "@angular/core";
5
+ export declare class TooltipPipe implements PipeTransform {
6
+ private _translate;
7
+ /**
8
+ *
9
+ */
10
+ currentLanguage: string;
11
+ constructor(_translate: TranslateService);
12
+ transform(option: FilterOption['tooltip'], lang?: string): string;
13
+ private _handleTextType;
14
+ private _handelTranslateType;
15
+ private _handeLocalizeType;
16
+ private _handleDateType;
17
+ private _handleTranslatedDate;
18
+ private _formatDateType;
19
+ static ɵfac: i0.ɵɵFactoryDeclaration<TooltipPipe, never>;
20
+ static ɵpipe: i0.ɵɵPipeDeclaration<TooltipPipe, "optionTooltip">;
21
+ }
@@ -0,0 +1,16 @@
1
+ import { Observable } from 'rxjs';
2
+ import { FieldOptionsType, FilterOption } from '../models';
3
+ import { NdfTransformService } from './ndf-transform.service';
4
+ import * as i0 from "@angular/core";
5
+ export declare class AggregationFieldService {
6
+ private readonly _ndfTransformService;
7
+ constructor(_ndfTransformService: NdfTransformService);
8
+ prepareAggregationFiled(data: FieldOptionsType): Observable<FilterOption[]>;
9
+ private _prepareOptions;
10
+ private _transformData;
11
+ private _createFilterOption;
12
+ private _mapOption;
13
+ private _prepareTooltip;
14
+ static ɵfac: i0.ɵɵFactoryDeclaration<AggregationFieldService, never>;
15
+ static ɵprov: i0.ɵɵInjectableDeclaration<AggregationFieldService>;
16
+ }
@@ -0,0 +1,18 @@
1
+ import { ComponentFactoryResolver, Type, ViewContainerRef } from '@angular/core';
2
+ import { AggregationFieldType, CustomFieldType, PredicateFieldType } from '../models';
3
+ import * as i0 from "@angular/core";
4
+ declare type ComponentType = AggregationFieldType | PredicateFieldType | CustomFieldType;
5
+ export declare class DynamicComponentLoaderService {
6
+ private _factoryResolver;
7
+ private readonly _components;
8
+ constructor(_factoryResolver: ComponentFactoryResolver);
9
+ registerComponent<T>(key: ComponentType, component: Type<T>): void;
10
+ renderComponent(key: ComponentType, vcr: ViewContainerRef): import("@angular/core").ComponentRef<any>;
11
+ loadComponent<T>(componentAngularType: Type<T>, vcr: ViewContainerRef): import("@angular/core").ComponentRef<T>;
12
+ private _registerCustomComponent;
13
+ private _registerAggregationsComponents;
14
+ private _registerPredicateComponents;
15
+ static ɵfac: i0.ɵɵFactoryDeclaration<DynamicComponentLoaderService, never>;
16
+ static ɵprov: i0.ɵɵInjectableDeclaration<DynamicComponentLoaderService>;
17
+ }
18
+ export {};
@@ -0,0 +1,58 @@
1
+ import * as i0 from "@angular/core";
2
+ export declare class FilterQueryService {
3
+ private readonly keyToShortMap;
4
+ private readonly shortToKeyMap;
5
+ private readonly defaultShortKeys;
6
+ constructor();
7
+ registerKeys(keys: Record<string, string>): void;
8
+ registerKey(longKey: string, shortKey: string): void;
9
+ /**
10
+ * Encodes a query object into a URL-safe string by transforming its keys
11
+ * and converting it to a JSON string.
12
+ *
13
+ * @param {Record<string, any>} query - The query object to encode.
14
+ *
15
+ * @example
16
+ * // Example query object
17
+ * const query = {
18
+ * // Predicate field (payload sent)
19
+ * 'locRef:boxCode': {
20
+ * value: '1',
21
+ * operator: 'LIKE',
22
+ * },
23
+ *
24
+ * // Aggregation field (query parameter)
25
+ * 'locRef:boxCode': [1]
26
+ * };
27
+ *
28
+ * const encodedQuery = encodeQuery(query);
29
+ * console.log(encodedQuery); // Encoded string representation
30
+ *
31
+ * @returns {string} - The URL-encoded JSON string representation of the query object.
32
+ */
33
+ encodeQuery(query: Record<string, any>): string;
34
+ /**
35
+ * Decodes a URL-encoded query string back into its original object form.
36
+ *
37
+ * @param {string} encodedQuery - The URL-encoded JSON string representation of a query.
38
+ *
39
+ * @example
40
+ * const encodedQuery = "%7B%22locRef%3AboxCode%22%3A%7B%22value%22%3A%221%22%2C%22operator%22%3A%22LIKE%22%7D%7D";
41
+ * const decodedQuery = decodeQuery(encodedQuery);
42
+ * console.log(decodedQuery);
43
+ * Output:
44
+ * {
45
+ * 'locRef:boxCode': {
46
+ * value: '1',
47
+ * operator: 'LIKE'
48
+ * }
49
+ * }
50
+ *
51
+ * @returns {Record<string, any> | null} - The decoded query object, or `null` if decoding fails.
52
+ */
53
+ decodeQuery(encodedQuery: string): Record<string, any> | null;
54
+ private initializeDefaultKeys;
55
+ private transformObject;
56
+ static ɵfac: i0.ɵɵFactoryDeclaration<FilterQueryService, never>;
57
+ static ɵprov: i0.ɵɵInjectableDeclaration<FilterQueryService>;
58
+ }
@@ -0,0 +1,4 @@
1
+ export * from './aggregation-field.service';
2
+ export * from './dynamic-component-loader.service';
3
+ export * from './filters-query.service';
4
+ export * from './ndf-transform.service';