ngx-register-base 1.2.3 → 1.3.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (479) hide show
  1. package/ng-package.json +15 -0
  2. package/package.json +12 -15
  3. package/schematics/ng-update/replace-menu-state-token/index.ts +33 -0
  4. package/schematics/ng-update/update-prefix/index.ts +38 -0
  5. package/schematics/utils/{utils.d.ts → utils.ts} +9 -2
  6. package/src/lib/components/checkbox-selector/checkbox-selector.component.html +91 -0
  7. package/src/lib/components/checkbox-selector/checkbox-selector.component.less +67 -0
  8. package/src/lib/components/checkbox-selector/checkbox-selector.component.ts +176 -0
  9. package/src/lib/components/checkbox-selector/checkbox-selector.types.ts +8 -0
  10. package/src/lib/components/column-settings/column-settings.component.html +160 -0
  11. package/src/lib/components/column-settings/column-settings.component.less +131 -0
  12. package/src/lib/components/column-settings/column-settings.component.ts +352 -0
  13. package/src/lib/components/column-settings/components/column-settings-template/column-settings-template.component.html +65 -0
  14. package/src/lib/components/column-settings/components/column-settings-template/column-settings-template.component.less +79 -0
  15. package/src/lib/components/column-settings/components/column-settings-template/column-settings-template.component.ts +114 -0
  16. package/src/lib/components/column-settings/consts/column-settings.consts.ts +9 -0
  17. package/src/lib/components/column-settings/types/column-settings.types.ts +26 -0
  18. package/src/lib/components/divider/divider.component.html +4 -0
  19. package/src/lib/components/divider/divider.component.less +10 -0
  20. package/src/lib/components/divider/divider.component.ts +12 -0
  21. package/src/lib/components/filter-button/filter-button.component.html +20 -0
  22. package/src/lib/components/filter-button/filter-button.component.less +41 -0
  23. package/src/lib/components/filter-button/filter-button.component.ts +18 -0
  24. package/src/lib/components/filters/components/filter-list/filter-edit/filter-edit.component.html +22 -0
  25. package/src/lib/components/filters/components/filter-list/filter-edit/filter-edit.component.less +23 -0
  26. package/src/lib/components/filters/components/filter-list/filter-edit/filter-edit.component.ts +31 -0
  27. package/src/lib/components/filters/components/filter-list/filter-list-footer/filter-list-footer.component.html +49 -0
  28. package/src/lib/components/filters/components/filter-list/filter-list-footer/filter-list-footer.component.less +37 -0
  29. package/src/lib/components/filters/components/filter-list/filter-list-footer/filter-list-footer.component.ts +66 -0
  30. package/src/lib/components/filters/components/filter-list/filter-list-header/filter-list-header.component.html +147 -0
  31. package/src/lib/components/filters/components/filter-list/filter-list-header/filter-list-header.component.less +45 -0
  32. package/src/lib/components/filters/components/filter-list/filter-list-header/filter-list-header.component.ts +114 -0
  33. package/src/lib/components/filters/components/filter-list/filter-list-saved/filter-list-saved.component.html +44 -0
  34. package/src/lib/components/filters/components/filter-list/filter-list-saved/filter-list-saved.component.less +49 -0
  35. package/src/lib/components/filters/components/filter-list/filter-list-saved/filter-list-saved.component.ts +167 -0
  36. package/src/lib/components/filters/components/filter-list/filter-list.service.ts +97 -0
  37. package/src/lib/components/filters/components/filter-list/filters-section/filters-section.component.html +18 -0
  38. package/src/lib/components/filters/components/filter-list/filters-section/filters-section.component.less +55 -0
  39. package/src/lib/components/filters/components/filter-list/filters-section/filters-section.component.ts +69 -0
  40. package/src/lib/components/filters/components/filter-list.module.ts +29 -0
  41. package/src/lib/components/filters/register-table-filter.component.html +53 -0
  42. package/src/lib/components/filters/register-table-filter.component.less +17 -0
  43. package/src/lib/components/filters/register-table-filter.component.ts +167 -0
  44. package/src/lib/components/filters/register-table-filter.module.ts +22 -0
  45. package/src/lib/components/inputs/inputs.module.ts +104 -0
  46. package/src/lib/components/inputs/param-calendar-year/param-calendar-year.component.html +49 -0
  47. package/src/lib/components/inputs/param-calendar-year/param-calendar-year.component.less +70 -0
  48. package/src/lib/components/inputs/param-calendar-year/param-calendar-year.component.ts +52 -0
  49. package/src/lib/components/inputs/param-custom/param-custom.component.html +1 -0
  50. package/src/lib/components/inputs/param-custom/param-custom.component.ts +9 -0
  51. package/src/lib/components/inputs/param-date/param-date.component.html +55 -0
  52. package/src/lib/components/inputs/param-date/param-date.component.less +67 -0
  53. package/src/lib/components/inputs/param-date/param-date.component.ts +77 -0
  54. package/src/lib/components/inputs/param-date-range/param-date-range.component.html +45 -0
  55. package/src/lib/components/inputs/param-date-range/param-date-range.component.less +75 -0
  56. package/src/lib/components/inputs/param-date-range/param-date-range.component.ts +67 -0
  57. package/src/lib/components/inputs/param-date-time/param-date-time.component.html +70 -0
  58. package/src/lib/components/inputs/param-date-time/param-date-time.component.less +72 -0
  59. package/src/lib/components/inputs/param-date-time/param-date-time.component.ts +101 -0
  60. package/src/lib/components/inputs/param-date-time-range/param-date-time-range.component.html +67 -0
  61. package/src/lib/components/inputs/param-date-time-range/param-date-time-range.component.less +103 -0
  62. package/src/lib/components/inputs/param-date-time-range/param-date-time-range.component.ts +128 -0
  63. package/src/lib/components/inputs/param-month/param-month.component.html +46 -0
  64. package/src/lib/components/inputs/param-month/param-month.component.less +72 -0
  65. package/src/lib/components/inputs/param-month/param-month.component.ts +55 -0
  66. package/src/lib/components/inputs/param-month-range/param-month-range.component.html +39 -0
  67. package/src/lib/components/inputs/param-month-range/param-month-range.component.less +71 -0
  68. package/src/lib/components/inputs/param-month-range/param-month-range.component.ts +76 -0
  69. package/src/lib/components/inputs/param-multi-select/param-multi-select.component.html +84 -0
  70. package/src/lib/components/inputs/param-multi-select/param-multi-select.component.less +108 -0
  71. package/src/lib/components/inputs/param-multi-select/param-multi-select.component.ts +448 -0
  72. package/src/lib/components/inputs/param-select/param-select.component.html +106 -0
  73. package/src/lib/components/inputs/param-select/param-select.component.less +26 -0
  74. package/src/lib/components/inputs/param-select/param-select.component.ts +318 -0
  75. package/src/lib/components/inputs/param-switcher/param-switcher.component.html +8 -0
  76. package/src/lib/components/inputs/param-switcher/param-switcher.component.less +53 -0
  77. package/src/lib/components/inputs/param-switcher/param-switcher.component.ts +13 -0
  78. package/src/lib/components/inputs/param-switcher-date-time-range/consts/param-switcher-date-time-range.consts.ts +29 -0
  79. package/src/lib/components/inputs/param-switcher-date-time-range/param-switcher-date-time-range.component.html +19 -0
  80. package/src/lib/components/inputs/param-switcher-date-time-range/param-switcher-date-time-range.component.less +76 -0
  81. package/src/lib/components/inputs/param-switcher-date-time-range/param-switcher-date-time-range.component.ts +134 -0
  82. package/src/lib/components/inputs/param-switcher-date-time-range/types/param-switcher-date-time-range.types.ts +8 -0
  83. package/src/lib/components/inputs/param-text/param-text.component.html +59 -0
  84. package/src/lib/components/inputs/param-text/param-text.component.less +33 -0
  85. package/src/lib/components/inputs/param-text/param-text.component.ts +36 -0
  86. package/src/lib/components/inputs/param-textarea/param-textarea.component.html +61 -0
  87. package/src/lib/components/inputs/param-textarea/param-textarea.component.less +21 -0
  88. package/src/lib/components/inputs/param-textarea/param-textarea.component.ts +33 -0
  89. package/src/lib/components/inputs/param-toggle/param-toggle.component.html +40 -0
  90. package/src/lib/components/inputs/param-toggle/param-toggle.component.less +69 -0
  91. package/src/lib/components/inputs/param-toggle/param-toggle.component.ts +14 -0
  92. package/src/lib/components/inputs/param-tree/consts/param-tree.consts.ts +59 -0
  93. package/src/lib/components/inputs/param-tree/param-tree.component.html +51 -0
  94. package/src/lib/components/inputs/param-tree/param-tree.component.less +3 -0
  95. package/src/lib/components/inputs/param-tree/param-tree.component.ts +282 -0
  96. package/src/lib/components/inputs/param-tree/services/param-tree.service.ts +176 -0
  97. package/src/lib/components/inputs/param-tree/services/sync-tree-loader.service.ts +18 -0
  98. package/{lib/components/inputs/param-tree/tokens/param-tree.tokens.d.ts → src/lib/components/inputs/param-tree/tokens/param-tree.tokens.ts} +2 -1
  99. package/src/lib/components/inputs/param-tree/types/param-tree.types.ts +39 -0
  100. package/src/lib/components/inputs/param-tree/utils/param-tree.utils.ts +18 -0
  101. package/src/lib/components/inputs/param-tree-multi-select/param-tree-multi-select.component.html +78 -0
  102. package/src/lib/components/inputs/param-tree-multi-select/param-tree-multi-select.component.less +109 -0
  103. package/src/lib/components/inputs/param-tree-multi-select/param-tree-multi-select.component.ts +89 -0
  104. package/src/lib/components/inputs/param-tree-select/param-tree-select.component.html +54 -0
  105. package/src/lib/components/inputs/param-tree-select/param-tree-select.component.less +56 -0
  106. package/src/lib/components/inputs/param-tree-select/param-tree-select.component.ts +91 -0
  107. package/src/lib/components/inputs/sub-components/param-delete-content-icon/param-delete-content-btn.component.html +5 -0
  108. package/src/lib/components/inputs/sub-components/param-delete-content-icon/param-delete-content-btn.component.ts +13 -0
  109. package/src/lib/components/inputs/sub-components/param-invalid-icon/param-invalid-icon.component.html +4 -0
  110. package/src/lib/components/inputs/sub-components/param-invalid-icon/param-invalid-icon.component.ts +11 -0
  111. package/src/lib/components/menu-constructor/sproc-menu-constructor.component.html +95 -0
  112. package/src/lib/components/menu-constructor/sproc-menu-constructor.component.less +183 -0
  113. package/src/lib/components/menu-constructor/sproc-menu-constructor.component.ts +687 -0
  114. package/src/lib/components/menu-constructor/store/sproc-abstract-menu-constructor.store.ts +32 -0
  115. package/src/lib/components/menu-constructor/store/sproc-menu-constructor.consts.ts +46 -0
  116. package/{lib/components/menu-constructor/store/sproc-menu.tokens.d.ts → src/lib/components/menu-constructor/store/sproc-menu.tokens.ts} +4 -1
  117. package/src/lib/components/page-menu/README.md +60 -0
  118. package/src/lib/components/page-menu/schema/sproc-page-menu.consts.ts +8 -0
  119. package/src/lib/components/page-menu/schema/sproc-page-menu.schema.ts +35 -0
  120. package/src/lib/components/page-menu/schema/sproc-page-menu.tokens.ts +5 -0
  121. package/src/lib/components/page-menu/schema/sproc-page-menu.types.ts +42 -0
  122. package/src/lib/components/page-menu/sproc-page-menu.component.html +166 -0
  123. package/src/lib/components/page-menu/sproc-page-menu.component.less +228 -0
  124. package/src/lib/components/page-menu/sproc-page-menu.component.ts +337 -0
  125. package/src/lib/components/paginator/paginator.component.html +97 -0
  126. package/src/lib/components/paginator/paginator.component.less +101 -0
  127. package/src/lib/components/paginator/paginator.component.ts +192 -0
  128. package/src/lib/components/paginator/types/paginator.types.ts +16 -0
  129. package/src/lib/components/register-table/consts/register-table.consts.ts +3 -0
  130. package/src/lib/components/register-table/directives/cell-template.directive.ts +11 -0
  131. package/src/lib/components/register-table/directives/header-template.directive.ts +11 -0
  132. package/src/lib/components/register-table/model/schema.ts +62 -0
  133. package/src/lib/components/register-table/pipes/class-by-type.pipe.ts +28 -0
  134. package/src/lib/components/register-table/pipes/sticky-column.pipe.ts +11 -0
  135. package/src/lib/components/register-table/register-table.component.html +257 -0
  136. package/src/lib/components/register-table/register-table.component.less +151 -0
  137. package/src/lib/components/register-table/register-table.component.ts +743 -0
  138. package/src/lib/components/reset-settings-form/reset-settings-form.component.html +14 -0
  139. package/src/lib/components/reset-settings-form/reset-settings-form.component.less +26 -0
  140. package/src/lib/components/reset-settings-form/reset-settings-form.component.ts +15 -0
  141. package/src/lib/components/search-input/search-input.component.html +6 -0
  142. package/src/lib/components/search-input/search-input.component.less +17 -0
  143. package/src/lib/components/search-input/search-input.component.ts +31 -0
  144. package/src/lib/components/sliding-panel/sliding-panel.component.html +13 -0
  145. package/src/lib/components/sliding-panel/sliding-panel.component.less +112 -0
  146. package/src/lib/components/sliding-panel/sliding-panel.component.ts +36 -0
  147. package/src/lib/components/sliding-panel/sliding-panel.module.ts +11 -0
  148. package/src/lib/consts/date-time.consts.ts +1 -0
  149. package/src/lib/consts/index.ts +8 -0
  150. package/src/lib/consts/inputs.consts.ts +9 -0
  151. package/src/lib/consts/month.consts.ts +82 -0
  152. package/src/lib/consts/params.consts.ts +1 -0
  153. package/src/lib/consts/register-base.consts.ts +40 -0
  154. package/src/lib/core/form-group-wrapper/errors-consts.ts +6 -0
  155. package/src/lib/core/form-group-wrapper/form-group-wrapper.ts +109 -0
  156. package/src/lib/core/input-control/input-control.ts +30 -0
  157. package/src/lib/core/param/param-base.ts +262 -0
  158. package/src/lib/core/param/param-date-base.ts +30 -0
  159. package/src/lib/core/param/param-select-base.ts +118 -0
  160. package/src/lib/core/param/param-text-base.ts +23 -0
  161. package/{lib/core/param/param.tokens.d.ts → src/lib/core/param/param.tokens.ts} +2 -1
  162. package/src/lib/core/register-base/register-base.store.ts +84 -0
  163. package/src/lib/core/register-base/register-base.ts +854 -0
  164. package/src/lib/directives/date/date-time.types.ts +36 -0
  165. package/src/lib/directives/date/format-date.pipe.ts +28 -0
  166. package/src/lib/directives/number/number-only.directive.ts +36 -0
  167. package/src/lib/directives/sticky/sticky-relative.directive.ts +30 -0
  168. package/src/lib/directives/sticky/sticky-relative.service.ts +34 -0
  169. package/src/lib/directives/sticky/sticky.directive.ts +189 -0
  170. package/src/lib/services/date-time.service.ts +399 -0
  171. package/src/lib/services/dialog/dialog.service.ts +62 -0
  172. package/{lib/services/dialog/dialog.types.d.ts → src/lib/services/dialog/dialog.types.ts} +8 -4
  173. package/src/lib/services/dom-intersection.service.ts +23 -0
  174. package/src/lib/services/filter/filters-state.service.ts +83 -0
  175. package/src/lib/services/filter/filters-transmit.service.ts +105 -0
  176. package/src/lib/services/filter/filters.service.ts +21 -0
  177. package/src/lib/services/inputs-state.service.ts +157 -0
  178. package/src/lib/services/inputs.service.ts +114 -0
  179. package/src/lib/services/key-pressed.service.ts +40 -0
  180. package/src/lib/services/resize-window-observer.service.ts +37 -0
  181. package/src/lib/services/selected-objects-state.service.ts +159 -0
  182. package/src/lib/store/fast-query-store.service.ts +132 -0
  183. package/{lib/types/event.types.d.ts → src/lib/types/event.types.ts} +1 -1
  184. package/src/lib/types/hasura.types.ts +41 -0
  185. package/src/lib/types/inputs.types.ts +63 -0
  186. package/src/lib/types/params.types.ts +42 -0
  187. package/src/lib/types/register-base.types.ts +161 -0
  188. package/src/lib/types/sub-types.ts +15 -0
  189. package/src/lib/types/user-profile.types.ts +18 -0
  190. package/src/lib/utils/functions.ts +11 -0
  191. package/src/lib/utils/get-url-segment.ts +46 -0
  192. package/src/lib/utils/prizm.shared.module.ts +176 -0
  193. package/src/lib/utils/rxjs.ts +33 -0
  194. package/src/lib/utils/select-all-utils.ts +16 -0
  195. package/tsconfig.lib.json +16 -0
  196. package/tsconfig.lib.prod.json +11 -0
  197. package/tsconfig.schematics.json +26 -0
  198. package/tsconfig.spec.json +15 -0
  199. package/esm2022/lib/components/checkbox-selector/checkbox-selector.component.mjs +0 -129
  200. package/esm2022/lib/components/checkbox-selector/checkbox-selector.types.mjs +0 -8
  201. package/esm2022/lib/components/column-settings/column-settings.component.mjs +0 -249
  202. package/esm2022/lib/components/column-settings/components/column-settings-template/column-settings-template.component.mjs +0 -80
  203. package/esm2022/lib/components/column-settings/consts/column-settings.consts.mjs +0 -10
  204. package/esm2022/lib/components/column-settings/index.mjs +0 -3
  205. package/esm2022/lib/components/column-settings/types/column-settings.types.mjs +0 -7
  206. package/esm2022/lib/components/divider/divider.component.mjs +0 -16
  207. package/esm2022/lib/components/filter-button/filter-button.component.mjs +0 -19
  208. package/esm2022/lib/components/filters/components/filter-list/filter-edit/filter-edit.component.mjs +0 -31
  209. package/esm2022/lib/components/filters/components/filter-list/filter-list-footer/filter-list-footer.component.mjs +0 -57
  210. package/esm2022/lib/components/filters/components/filter-list/filter-list-header/filter-list-header.component.mjs +0 -110
  211. package/esm2022/lib/components/filters/components/filter-list/filter-list-saved/filter-list-saved.component.mjs +0 -130
  212. package/esm2022/lib/components/filters/components/filter-list/filter-list.service.mjs +0 -89
  213. package/esm2022/lib/components/filters/components/filter-list/filters-section/filters-section.component.mjs +0 -41
  214. package/esm2022/lib/components/filters/components/filter-list.module.mjs +0 -45
  215. package/esm2022/lib/components/filters/index.mjs +0 -3
  216. package/esm2022/lib/components/filters/register-table-filter.component.mjs +0 -155
  217. package/esm2022/lib/components/filters/register-table-filter.module.mjs +0 -39
  218. package/esm2022/lib/components/index.mjs +0 -11
  219. package/esm2022/lib/components/inputs/index.mjs +0 -20
  220. package/esm2022/lib/components/inputs/inputs.module.mjs +0 -166
  221. package/esm2022/lib/components/inputs/param-calendar-year/param-calendar-year.component.mjs +0 -45
  222. package/esm2022/lib/components/inputs/param-custom/param-custom.component.mjs +0 -12
  223. package/esm2022/lib/components/inputs/param-date/param-date.component.mjs +0 -76
  224. package/esm2022/lib/components/inputs/param-date-range/param-date-range.component.mjs +0 -61
  225. package/esm2022/lib/components/inputs/param-date-time/param-date-time.component.mjs +0 -86
  226. package/esm2022/lib/components/inputs/param-date-time-range/param-date-time-range.component.mjs +0 -96
  227. package/esm2022/lib/components/inputs/param-month/param-month.component.mjs +0 -50
  228. package/esm2022/lib/components/inputs/param-month-range/param-month-range.component.mjs +0 -62
  229. package/esm2022/lib/components/inputs/param-multi-select/param-multi-select.component.mjs +0 -309
  230. package/esm2022/lib/components/inputs/param-select/param-select.component.mjs +0 -209
  231. package/esm2022/lib/components/inputs/param-switcher/param-switcher.component.mjs +0 -21
  232. package/esm2022/lib/components/inputs/param-switcher-date-time-range/consts/param-switcher-date-time-range.consts.mjs +0 -28
  233. package/esm2022/lib/components/inputs/param-switcher-date-time-range/index.mjs +0 -3
  234. package/esm2022/lib/components/inputs/param-switcher-date-time-range/param-switcher-date-time-range.component.mjs +0 -105
  235. package/esm2022/lib/components/inputs/param-switcher-date-time-range/types/param-switcher-date-time-range.types.mjs +0 -10
  236. package/esm2022/lib/components/inputs/param-text/param-text.component.mjs +0 -40
  237. package/esm2022/lib/components/inputs/param-textarea/param-textarea.component.mjs +0 -38
  238. package/esm2022/lib/components/inputs/param-toggle/param-toggle.component.mjs +0 -20
  239. package/esm2022/lib/components/inputs/param-tree/consts/param-tree.consts.mjs +0 -37
  240. package/esm2022/lib/components/inputs/param-tree/index.mjs +0 -8
  241. package/esm2022/lib/components/inputs/param-tree/param-tree.component.mjs +0 -207
  242. package/esm2022/lib/components/inputs/param-tree/services/param-tree.service.mjs +0 -116
  243. package/esm2022/lib/components/inputs/param-tree/services/sync-tree-loader.service.mjs +0 -20
  244. package/esm2022/lib/components/inputs/param-tree/tokens/param-tree.tokens.mjs +0 -3
  245. package/esm2022/lib/components/inputs/param-tree/types/param-tree.types.mjs +0 -2
  246. package/esm2022/lib/components/inputs/param-tree/utils/param-tree.utils.mjs +0 -9
  247. package/esm2022/lib/components/inputs/param-tree-multi-select/param-tree-multi-select.component.mjs +0 -80
  248. package/esm2022/lib/components/inputs/param-tree-select/param-tree-select.component.mjs +0 -85
  249. package/esm2022/lib/components/inputs/sub-components/param-delete-content-icon/param-delete-content-btn.component.mjs +0 -15
  250. package/esm2022/lib/components/inputs/sub-components/param-invalid-icon/param-invalid-icon.component.mjs +0 -12
  251. package/esm2022/lib/components/menu-constructor/index.mjs +0 -5
  252. package/esm2022/lib/components/menu-constructor/sproc-menu-constructor.component.mjs +0 -559
  253. package/esm2022/lib/components/menu-constructor/store/sproc-abstract-menu-constructor.store.mjs +0 -3
  254. package/esm2022/lib/components/menu-constructor/store/sproc-menu-constructor.consts.mjs +0 -5
  255. package/esm2022/lib/components/menu-constructor/store/sproc-menu.tokens.mjs +0 -3
  256. package/esm2022/lib/components/page-menu/index.mjs +0 -6
  257. package/esm2022/lib/components/page-menu/schema/sproc-page-menu.consts.mjs +0 -9
  258. package/esm2022/lib/components/page-menu/schema/sproc-page-menu.schema.mjs +0 -2
  259. package/esm2022/lib/components/page-menu/schema/sproc-page-menu.tokens.mjs +0 -4
  260. package/esm2022/lib/components/page-menu/schema/sproc-page-menu.types.mjs +0 -3
  261. package/esm2022/lib/components/page-menu/sproc-page-menu.component.mjs +0 -275
  262. package/esm2022/lib/components/paginator/paginator.component.mjs +0 -159
  263. package/esm2022/lib/components/paginator/types/paginator.types.mjs +0 -2
  264. package/esm2022/lib/components/register-table/consts/register-table.consts.mjs +0 -4
  265. package/esm2022/lib/components/register-table/directives/cell-template.directive.mjs +0 -19
  266. package/esm2022/lib/components/register-table/directives/header-template.directive.mjs +0 -18
  267. package/esm2022/lib/components/register-table/index.mjs +0 -4
  268. package/esm2022/lib/components/register-table/model/schema.mjs +0 -10
  269. package/esm2022/lib/components/register-table/pipes/class-by-type.pipe.mjs +0 -33
  270. package/esm2022/lib/components/register-table/pipes/sticky-column.pipe.mjs +0 -17
  271. package/esm2022/lib/components/register-table/register-table.component.mjs +0 -544
  272. package/esm2022/lib/components/reset-settings-form/reset-settings-form.component.mjs +0 -18
  273. package/esm2022/lib/components/search-input/search-input.component.mjs +0 -28
  274. package/esm2022/lib/components/sliding-panel/sliding-panel.component.mjs +0 -48
  275. package/esm2022/lib/components/sliding-panel/sliding-panel.module.mjs +0 -19
  276. package/esm2022/lib/consts/date-time.consts.mjs +0 -2
  277. package/esm2022/lib/consts/index.mjs +0 -4
  278. package/esm2022/lib/consts/inputs.consts.mjs +0 -4
  279. package/esm2022/lib/consts/month.consts.mjs +0 -77
  280. package/esm2022/lib/consts/params.consts.mjs +0 -2
  281. package/esm2022/lib/consts/register-base.consts.mjs +0 -26
  282. package/esm2022/lib/core/form-group-wrapper/errors-consts.mjs +0 -8
  283. package/esm2022/lib/core/form-group-wrapper/form-group-wrapper.mjs +0 -81
  284. package/esm2022/lib/core/form-group-wrapper/index.mjs +0 -2
  285. package/esm2022/lib/core/index.mjs +0 -5
  286. package/esm2022/lib/core/input-control/index.mjs +0 -2
  287. package/esm2022/lib/core/input-control/input-control.mjs +0 -11
  288. package/esm2022/lib/core/param/index.mjs +0 -6
  289. package/esm2022/lib/core/param/param-base.mjs +0 -215
  290. package/esm2022/lib/core/param/param-date-base.mjs +0 -26
  291. package/esm2022/lib/core/param/param-select-base.mjs +0 -114
  292. package/esm2022/lib/core/param/param-text-base.mjs +0 -25
  293. package/esm2022/lib/core/param/param.tokens.mjs +0 -4
  294. package/esm2022/lib/core/register-base/index.mjs +0 -3
  295. package/esm2022/lib/core/register-base/register-base.mjs +0 -575
  296. package/esm2022/lib/core/register-base/register-base.store.mjs +0 -43
  297. package/esm2022/lib/directives/date/date-time.types.mjs +0 -34
  298. package/esm2022/lib/directives/date/format-date.pipe.mjs +0 -33
  299. package/esm2022/lib/directives/index.mjs +0 -3
  300. package/esm2022/lib/directives/number/number-only.directive.mjs +0 -41
  301. package/esm2022/lib/directives/sticky/index.mjs +0 -3
  302. package/esm2022/lib/directives/sticky/sticky-relative.directive.mjs +0 -32
  303. package/esm2022/lib/directives/sticky/sticky-relative.service.mjs +0 -32
  304. package/esm2022/lib/directives/sticky/sticky.directive.mjs +0 -169
  305. package/esm2022/lib/services/date-time.service.mjs +0 -314
  306. package/esm2022/lib/services/dialog/dialog.service.mjs +0 -53
  307. package/esm2022/lib/services/dialog/dialog.types.mjs +0 -2
  308. package/esm2022/lib/services/dialog/index.mjs +0 -3
  309. package/esm2022/lib/services/dom-intersection.service.mjs +0 -22
  310. package/esm2022/lib/services/filter/filters-state.service.mjs +0 -65
  311. package/esm2022/lib/services/filter/filters-transmit.service.mjs +0 -82
  312. package/esm2022/lib/services/filter/filters.service.mjs +0 -23
  313. package/esm2022/lib/services/index.mjs +0 -8
  314. package/esm2022/lib/services/inputs-state.service.mjs +0 -130
  315. package/esm2022/lib/services/inputs.service.mjs +0 -88
  316. package/esm2022/lib/services/key-pressed.service.mjs +0 -37
  317. package/esm2022/lib/services/resize-window-observer.service.mjs +0 -33
  318. package/esm2022/lib/services/selected-objects-state.service.mjs +0 -123
  319. package/esm2022/lib/store/fast-query-store.service.mjs +0 -110
  320. package/esm2022/lib/store/index.mjs +0 -2
  321. package/esm2022/lib/types/event.types.mjs +0 -2
  322. package/esm2022/lib/types/hasura.types.mjs +0 -2
  323. package/esm2022/lib/types/index.mjs +0 -7
  324. package/esm2022/lib/types/inputs.types.mjs +0 -19
  325. package/esm2022/lib/types/params.types.mjs +0 -2
  326. package/esm2022/lib/types/register-base.types.mjs +0 -6
  327. package/esm2022/lib/types/sub-types.mjs +0 -2
  328. package/esm2022/lib/types/user-profile.types.mjs +0 -2
  329. package/esm2022/lib/utils/functions.mjs +0 -10
  330. package/esm2022/lib/utils/get-url-segment.mjs +0 -35
  331. package/esm2022/lib/utils/index.mjs +0 -5
  332. package/esm2022/lib/utils/prizm.shared.module.mjs +0 -284
  333. package/esm2022/lib/utils/rxjs.mjs +0 -28
  334. package/esm2022/lib/utils/select-all-utils.mjs +0 -11
  335. package/esm2022/ngx-register-base.mjs +0 -5
  336. package/esm2022/public-api.mjs +0 -9
  337. package/fesm2022/ngx-register-base.mjs +0 -7465
  338. package/fesm2022/ngx-register-base.mjs.map +0 -1
  339. package/index.d.ts +0 -5
  340. package/lib/components/checkbox-selector/checkbox-selector.component.d.ts +0 -33
  341. package/lib/components/checkbox-selector/checkbox-selector.types.d.ts +0 -7
  342. package/lib/components/column-settings/column-settings.component.d.ts +0 -80
  343. package/lib/components/column-settings/components/column-settings-template/column-settings-template.component.d.ts +0 -24
  344. package/lib/components/column-settings/consts/column-settings.consts.d.ts +0 -8
  345. package/lib/components/column-settings/types/column-settings.types.d.ts +0 -22
  346. package/lib/components/divider/divider.component.d.ts +0 -6
  347. package/lib/components/filter-button/filter-button.component.d.ts +0 -8
  348. package/lib/components/filters/components/filter-list/filter-edit/filter-edit.component.d.ts +0 -14
  349. package/lib/components/filters/components/filter-list/filter-list-footer/filter-list-footer.component.d.ts +0 -25
  350. package/lib/components/filters/components/filter-list/filter-list-header/filter-list-header.component.d.ts +0 -39
  351. package/lib/components/filters/components/filter-list/filter-list-saved/filter-list-saved.component.d.ts +0 -41
  352. package/lib/components/filters/components/filter-list/filter-list.service.d.ts +0 -20
  353. package/lib/components/filters/components/filter-list/filters-section/filters-section.component.d.ts +0 -15
  354. package/lib/components/filters/components/filter-list.module.d.ts +0 -15
  355. package/lib/components/filters/register-table-filter.component.d.ts +0 -40
  356. package/lib/components/filters/register-table-filter.module.d.ts +0 -13
  357. package/lib/components/inputs/inputs.module.d.ts +0 -31
  358. package/lib/components/inputs/param-calendar-year/param-calendar-year.component.d.ts +0 -19
  359. package/lib/components/inputs/param-custom/param-custom.component.d.ts +0 -6
  360. package/lib/components/inputs/param-date/param-date.component.d.ts +0 -20
  361. package/lib/components/inputs/param-date-range/param-date-range.component.d.ts +0 -26
  362. package/lib/components/inputs/param-date-time/param-date-time.component.d.ts +0 -25
  363. package/lib/components/inputs/param-date-time-range/param-date-time-range.component.d.ts +0 -28
  364. package/lib/components/inputs/param-month/param-month.component.d.ts +0 -18
  365. package/lib/components/inputs/param-month-range/param-month-range.component.d.ts +0 -21
  366. package/lib/components/inputs/param-multi-select/param-multi-select.component.d.ts +0 -46
  367. package/lib/components/inputs/param-select/param-select.component.d.ts +0 -30
  368. package/lib/components/inputs/param-switcher/param-switcher.component.d.ts +0 -8
  369. package/lib/components/inputs/param-switcher-date-time-range/consts/param-switcher-date-time-range.consts.d.ts +0 -2
  370. package/lib/components/inputs/param-switcher-date-time-range/param-switcher-date-time-range.component.d.ts +0 -19
  371. package/lib/components/inputs/param-switcher-date-time-range/types/param-switcher-date-time-range.types.d.ts +0 -8
  372. package/lib/components/inputs/param-text/param-text.component.d.ts +0 -10
  373. package/lib/components/inputs/param-textarea/param-textarea.component.d.ts +0 -10
  374. package/lib/components/inputs/param-toggle/param-toggle.component.d.ts +0 -9
  375. package/lib/components/inputs/param-tree/consts/param-tree.consts.d.ts +0 -7
  376. package/lib/components/inputs/param-tree/param-tree.component.d.ts +0 -41
  377. package/lib/components/inputs/param-tree/services/param-tree.service.d.ts +0 -37
  378. package/lib/components/inputs/param-tree/services/sync-tree-loader.service.d.ts +0 -10
  379. package/lib/components/inputs/param-tree/types/param-tree.types.d.ts +0 -32
  380. package/lib/components/inputs/param-tree/utils/param-tree.utils.d.ts +0 -7
  381. package/lib/components/inputs/param-tree-multi-select/param-tree-multi-select.component.d.ts +0 -31
  382. package/lib/components/inputs/param-tree-select/param-tree-select.component.d.ts +0 -30
  383. package/lib/components/inputs/sub-components/param-delete-content-icon/param-delete-content-btn.component.d.ts +0 -6
  384. package/lib/components/inputs/sub-components/param-invalid-icon/param-invalid-icon.component.d.ts +0 -5
  385. package/lib/components/menu-constructor/sproc-menu-constructor.component.d.ts +0 -113
  386. package/lib/components/menu-constructor/store/sproc-abstract-menu-constructor.store.d.ts +0 -24
  387. package/lib/components/menu-constructor/store/sproc-menu-constructor.consts.d.ts +0 -36
  388. package/lib/components/page-menu/schema/sproc-page-menu.consts.d.ts +0 -7
  389. package/lib/components/page-menu/schema/sproc-page-menu.schema.d.ts +0 -30
  390. package/lib/components/page-menu/schema/sproc-page-menu.tokens.d.ts +0 -3
  391. package/lib/components/page-menu/schema/sproc-page-menu.types.d.ts +0 -36
  392. package/lib/components/page-menu/sproc-page-menu.component.d.ts +0 -48
  393. package/lib/components/paginator/paginator.component.d.ts +0 -52
  394. package/lib/components/paginator/types/paginator.types.d.ts +0 -15
  395. package/lib/components/register-table/consts/register-table.consts.d.ts +0 -3
  396. package/lib/components/register-table/directives/cell-template.directive.d.ts +0 -9
  397. package/lib/components/register-table/directives/header-template.directive.d.ts +0 -9
  398. package/lib/components/register-table/model/schema.d.ts +0 -52
  399. package/lib/components/register-table/pipes/class-by-type.pipe.d.ts +0 -8
  400. package/lib/components/register-table/pipes/sticky-column.pipe.d.ts +0 -7
  401. package/lib/components/register-table/register-table.component.d.ts +0 -165
  402. package/lib/components/reset-settings-form/reset-settings-form.component.d.ts +0 -9
  403. package/lib/components/search-input/search-input.component.d.ts +0 -11
  404. package/lib/components/sliding-panel/sliding-panel.component.d.ts +0 -14
  405. package/lib/components/sliding-panel/sliding-panel.module.d.ts +0 -9
  406. package/lib/consts/date-time.consts.d.ts +0 -1
  407. package/lib/consts/index.d.ts +0 -3
  408. package/lib/consts/inputs.consts.d.ts +0 -4
  409. package/lib/consts/month.consts.d.ts +0 -49
  410. package/lib/consts/params.consts.d.ts +0 -1
  411. package/lib/consts/register-base.consts.d.ts +0 -19
  412. package/lib/core/form-group-wrapper/errors-consts.d.ts +0 -5
  413. package/lib/core/form-group-wrapper/form-group-wrapper.d.ts +0 -15
  414. package/lib/core/input-control/input-control.d.ts +0 -11
  415. package/lib/core/param/param-base.d.ts +0 -68
  416. package/lib/core/param/param-date-base.d.ts +0 -18
  417. package/lib/core/param/param-select-base.d.ts +0 -42
  418. package/lib/core/param/param-text-base.d.ts +0 -15
  419. package/lib/core/register-base/register-base.d.ts +0 -168
  420. package/lib/core/register-base/register-base.store.d.ts +0 -35
  421. package/lib/directives/date/date-time.types.d.ts +0 -32
  422. package/lib/directives/date/format-date.pipe.d.ts +0 -10
  423. package/lib/directives/number/number-only.directive.d.ts +0 -10
  424. package/lib/directives/sticky/sticky-relative.directive.d.ts +0 -13
  425. package/lib/directives/sticky/sticky-relative.service.d.ts +0 -15
  426. package/lib/directives/sticky/sticky.directive.d.ts +0 -27
  427. package/lib/services/date-time.service.d.ts +0 -80
  428. package/lib/services/dialog/dialog.service.d.ts +0 -22
  429. package/lib/services/dom-intersection.service.d.ts +0 -8
  430. package/lib/services/filter/filters-state.service.d.ts +0 -21
  431. package/lib/services/filter/filters-transmit.service.d.ts +0 -28
  432. package/lib/services/filter/filters.service.d.ts +0 -12
  433. package/lib/services/inputs-state.service.d.ts +0 -57
  434. package/lib/services/inputs.service.d.ts +0 -28
  435. package/lib/services/key-pressed.service.d.ts +0 -15
  436. package/lib/services/resize-window-observer.service.d.ts +0 -11
  437. package/lib/services/selected-objects-state.service.d.ts +0 -47
  438. package/lib/store/fast-query-store.service.d.ts +0 -19
  439. package/lib/types/hasura.types.d.ts +0 -35
  440. package/lib/types/inputs.types.d.ts +0 -41
  441. package/lib/types/params.types.d.ts +0 -27
  442. package/lib/types/register-base.types.d.ts +0 -123
  443. package/lib/types/sub-types.d.ts +0 -8
  444. package/lib/types/user-profile.types.d.ts +0 -17
  445. package/lib/utils/functions.d.ts +0 -3
  446. package/lib/utils/get-url-segment.d.ts +0 -7
  447. package/lib/utils/prizm.shared.module.d.ts +0 -14
  448. package/lib/utils/rxjs.d.ts +0 -10
  449. package/lib/utils/select-all-utils.d.ts +0 -8
  450. package/schematics/ng-update/replace-menu-state-token/index.d.ts +0 -2
  451. package/schematics/ng-update/replace-menu-state-token/index.js +0 -29
  452. package/schematics/ng-update/replace-menu-state-token/index.js.map +0 -1
  453. package/schematics/ng-update/update-prefix/index.d.ts +0 -2
  454. package/schematics/ng-update/update-prefix/index.js +0 -33
  455. package/schematics/ng-update/update-prefix/index.js.map +0 -1
  456. package/schematics/utils/utils.js +0 -25
  457. package/schematics/utils/utils.js.map +0 -1
  458. /package/{lib/components/column-settings/index.d.ts → src/lib/components/column-settings/index.ts} +0 -0
  459. /package/{lib/components/filters/index.d.ts → src/lib/components/filters/index.ts} +0 -0
  460. /package/{lib/components/index.d.ts → src/lib/components/index.ts} +0 -0
  461. /package/{lib/components/inputs/index.d.ts → src/lib/components/inputs/index.ts} +0 -0
  462. /package/{lib/components/inputs/param-switcher-date-time-range/index.d.ts → src/lib/components/inputs/param-switcher-date-time-range/index.ts} +0 -0
  463. /package/{lib/components/inputs/param-tree/index.d.ts → src/lib/components/inputs/param-tree/index.ts} +0 -0
  464. /package/{lib/components/menu-constructor/index.d.ts → src/lib/components/menu-constructor/index.ts} +0 -0
  465. /package/{lib/components/page-menu/index.d.ts → src/lib/components/page-menu/index.ts} +0 -0
  466. /package/{lib/components/register-table/index.d.ts → src/lib/components/register-table/index.ts} +0 -0
  467. /package/{lib/core/form-group-wrapper/index.d.ts → src/lib/core/form-group-wrapper/index.ts} +0 -0
  468. /package/{lib/core/index.d.ts → src/lib/core/index.ts} +0 -0
  469. /package/{lib/core/input-control/index.d.ts → src/lib/core/input-control/index.ts} +0 -0
  470. /package/{lib/core/param/index.d.ts → src/lib/core/param/index.ts} +0 -0
  471. /package/{lib/core/register-base/index.d.ts → src/lib/core/register-base/index.ts} +0 -0
  472. /package/{lib/directives/index.d.ts → src/lib/directives/index.ts} +0 -0
  473. /package/{lib/directives/sticky/index.d.ts → src/lib/directives/sticky/index.ts} +0 -0
  474. /package/{lib/services/dialog/index.d.ts → src/lib/services/dialog/index.ts} +0 -0
  475. /package/{lib/services/index.d.ts → src/lib/services/index.ts} +0 -0
  476. /package/{lib/store/index.d.ts → src/lib/store/index.ts} +0 -0
  477. /package/{lib/types/index.d.ts → src/lib/types/index.ts} +0 -0
  478. /package/{lib/utils/index.d.ts → src/lib/utils/index.ts} +0 -0
  479. /package/{public-api.d.ts → src/public-api.ts} +0 -0
@@ -1,21 +0,0 @@
1
- import { InputsStateService } from '../inputs-state.service';
2
- import { ITpUserSettings } from '../../types/register-base.types';
3
- import * as i0 from "@angular/core";
4
- export declare class FiltersStateService<T> extends InputsStateService<T> {
5
- private readonly _transmitter;
6
- private readonly _selectedSavedFilter;
7
- private readonly _isFilterNameChanged$;
8
- private readonly _searchFilterValue$;
9
- readonly selectedSavedFilter: import("rxjs").Observable<ITpUserSettings | null>;
10
- readonly searchFilterValue$: import("rxjs").Observable<string>;
11
- readonly pageStorageKey: string;
12
- constructor();
13
- private _cachePage;
14
- private _subscribeOnNavigateToOtherModules;
15
- setSelectedSavedFilter(value: ITpUserSettings | null): void;
16
- setSearchFilterValue(value: string): void;
17
- getSelectedSavedFilter(): ITpUserSettings | null;
18
- onDestroy(): void;
19
- static ɵfac: i0.ɵɵFactoryDeclaration<FiltersStateService<any>, never>;
20
- static ɵprov: i0.ɵɵInjectableDeclaration<FiltersStateService<any>>;
21
- }
@@ -1,28 +0,0 @@
1
- import { OnDestroy } from '@angular/core';
2
- import { Observable, Subject } from 'rxjs';
3
- import { ActivatedRoute, Router } from '@angular/router';
4
- import { IInputControl } from '../../types/inputs.types';
5
- import { FormGroupWrapper } from '../../core/form-group-wrapper/form-group-wrapper';
6
- import { ITpUserSettingsSettingsFilter } from '../../types/register-base.types';
7
- import * as i0 from "@angular/core";
8
- export declare const FILTERS_QUERY_PARAMS_KEY = "filters";
9
- export declare const FILTERS_QUERY_PARAMS_VALUE_EMPTY = "empty";
10
- export declare const SEARCH_QUERY_PARAMS_KEY = "search";
11
- export declare class FiltersTransmitService implements OnDestroy {
12
- private readonly _router;
13
- private readonly _route;
14
- protected readonly _unsubscribe$: Subject<void>;
15
- protected formGroup?: FormGroupWrapper<any>;
16
- protected searchInput?: IInputControl<string | null>;
17
- constructor(_router: Router, _route: ActivatedRoute);
18
- setForm(formGroup: FormGroupWrapper<any>): void;
19
- setSearchInput(searchInput: IInputControl<string | null> | undefined): void;
20
- subscribeOnApplyFormValues(observable: Observable<unknown>): void;
21
- get stringifyValues(): string | undefined;
22
- get filters(): ITpUserSettingsSettingsFilter[] | undefined;
23
- get search(): string | undefined;
24
- private _setQueryParams;
25
- ngOnDestroy(): void;
26
- static ɵfac: i0.ɵɵFactoryDeclaration<FiltersTransmitService, never>;
27
- static ɵprov: i0.ɵɵInjectableDeclaration<FiltersTransmitService>;
28
- }
@@ -1,12 +0,0 @@
1
- import { Injector } from '@angular/core';
2
- import { InputsService } from '../inputs.service';
3
- import { FiltersTransmitService } from './filters-transmit.service';
4
- import { FormGroupWrapper } from '../../core/form-group-wrapper/form-group-wrapper';
5
- import * as i0 from "@angular/core";
6
- export declare class FiltersService<FormType> extends InputsService<FormType> {
7
- private readonly _transmitter;
8
- constructor(injector: Injector, _transmitter: FiltersTransmitService);
9
- init(group: FormGroupWrapper<FormType>): void;
10
- static ɵfac: i0.ɵɵFactoryDeclaration<FiltersService<any>, [null, { optional: true; }]>;
11
- static ɵprov: i0.ɵɵInjectableDeclaration<FiltersService<any>>;
12
- }
@@ -1,57 +0,0 @@
1
- import { DestroyRef, OnDestroy } from '@angular/core';
2
- import { BehaviorSubject, Subject } from 'rxjs';
3
- import { GqlFields, IInputsState } from '../types';
4
- import { Router } from '@angular/router';
5
- import { RegisterTableCellSorter } from '../components/register-table/model/schema';
6
- import * as i0 from "@angular/core";
7
- export declare const DEFAULT_LIMIT = 30;
8
- export declare class InputsStateService<T = any> implements OnDestroy {
9
- protected readonly unsubscribe$: Subject<void>;
10
- protected readonly _page$: BehaviorSubject<number>;
11
- protected readonly _limit$: BehaviorSubject<number | null>;
12
- protected readonly _offset$: BehaviorSubject<number>;
13
- protected readonly _count$: BehaviorSubject<number>;
14
- protected readonly _sorter$: BehaviorSubject<RegisterTableCellSorter<T>[]>;
15
- protected readonly _name$: BehaviorSubject<string>;
16
- protected readonly _state$: BehaviorSubject<IInputsState>;
17
- protected readonly _gqlValues$: BehaviorSubject<GqlFields>;
18
- protected readonly _pinned$: BehaviorSubject<boolean>;
19
- readonly page$: import("rxjs").Observable<number>;
20
- readonly limit$: import("rxjs").Observable<number | null>;
21
- readonly offset$: import("rxjs").Observable<number>;
22
- readonly count$: import("rxjs").Observable<number>;
23
- readonly sorter$: import("rxjs").Observable<RegisterTableCellSorter<T>[]>;
24
- readonly name$: import("rxjs").Observable<string>;
25
- readonly state$: import("rxjs").Observable<IInputsState>;
26
- readonly gqlValues$: import("rxjs").Observable<GqlFields>;
27
- readonly pinned$: import("rxjs").Observable<boolean>;
28
- protected readonly destroyRef: DestroyRef;
29
- protected readonly router: Router;
30
- protected readonly modulePath: string;
31
- readonly pinStorageKey: string;
32
- readonly pinnedInputsStorageKey: string;
33
- toggle(): void;
34
- togglePin(): void;
35
- ngOnDestroy(): void;
36
- protected onDestroy(): void;
37
- setPage(page: number): void;
38
- setLimit(limit: number): void;
39
- setOffset(offset: number): void;
40
- setSorter(sort: RegisterTableCellSorter<T>[]): void;
41
- setName(name: string): void;
42
- setCount(count: number): void;
43
- setState(state: IInputsState): void;
44
- setGqlValues(values: GqlFields): void;
45
- setPin(isPin: boolean): void;
46
- get page(): number;
47
- get limit(): number;
48
- get offset(): number;
49
- get state(): IInputsState;
50
- get count(): number;
51
- get sorter(): RegisterTableCellSorter<T>[];
52
- get name(): string;
53
- get gqlValues(): GqlFields;
54
- get isPin(): boolean;
55
- static ɵfac: i0.ɵɵFactoryDeclaration<InputsStateService<any>, never>;
56
- static ɵprov: i0.ɵɵInjectableDeclaration<InputsStateService<any>>;
57
- }
@@ -1,28 +0,0 @@
1
- import { Injector, OnDestroy } from '@angular/core';
2
- import { Subject } from 'rxjs';
3
- import { FormGroupWrapper } from '../core/form-group-wrapper/form-group-wrapper';
4
- import { ITpUserSettingsSettingsFilter } from '../types/register-base.types';
5
- import { ExtractForm } from '../types/sub-types';
6
- import { IInputControl, IInputsStateConfig } from '../types/inputs.types';
7
- import * as i0 from "@angular/core";
8
- export declare class InputsService<FormType> implements OnDestroy {
9
- private readonly injector;
10
- protected readonly config: IInputsStateConfig;
11
- protected readonly unsubscribe$: Subject<void>;
12
- private readonly _searchInput;
13
- inputs: FormGroupWrapper<FormType>;
14
- constructor(injector: Injector);
15
- get searchInput(): IInputControl<string | null> | undefined;
16
- get searchValue(): string | null | undefined;
17
- init(group: FormGroupWrapper<FormType>): void;
18
- get values(): ExtractForm<FormType>;
19
- get dirtyValues(): Partial<ExtractForm<FormType>>;
20
- clear(): void;
21
- setUserSettingsFilterValues(values: ITpUserSettingsSettingsFilter[]): void;
22
- private _control;
23
- get userSettingsFilter(): ITpUserSettingsSettingsFilter[];
24
- get gqlFilter(): Record<string, any>[];
25
- ngOnDestroy(): void;
26
- static ɵfac: i0.ɵɵFactoryDeclaration<InputsService<any>, never>;
27
- static ɵprov: i0.ɵɵInjectableDeclaration<InputsService<any>>;
28
- }
@@ -1,15 +0,0 @@
1
- import { InjectionToken, OnDestroy } from '@angular/core';
2
- import * as i0 from "@angular/core";
3
- export declare const KEY_PRESSED: InjectionToken<string>;
4
- export declare class KeyPressedService implements OnDestroy {
5
- private _keyName;
6
- private readonly _isPressed$;
7
- readonly isPressed$: import("rxjs").Observable<boolean>;
8
- constructor();
9
- isPressed(): boolean;
10
- ngOnDestroy(): void;
11
- private readonly _keydownListener;
12
- private readonly _keyupListener;
13
- static ɵfac: i0.ɵɵFactoryDeclaration<KeyPressedService, never>;
14
- static ɵprov: i0.ɵɵInjectableDeclaration<KeyPressedService>;
15
- }
@@ -1,11 +0,0 @@
1
- import * as i0 from "@angular/core";
2
- export declare class ResizeWindowObserverService {
3
- private readonly _zone;
4
- private readonly _destroyRef;
5
- readonly innerHeight: import("@angular/core").WritableSignal<number>;
6
- readonly innerWidth: import("@angular/core").WritableSignal<number>;
7
- readonly innerHeight$: import("rxjs").Observable<number>;
8
- constructor();
9
- static ɵfac: i0.ɵɵFactoryDeclaration<ResizeWindowObserverService, never>;
10
- static ɵprov: i0.ɵɵInjectableDeclaration<ResizeWindowObserverService>;
11
- }
@@ -1,47 +0,0 @@
1
- import { ScalarUUID } from 'hasura';
2
- import { BehaviorSubject } from 'rxjs';
3
- import { ERegisterObjectState, IRegisterObject } from '../types/register-base.types';
4
- import { ApplySelectionTypes } from '../components/checkbox-selector/checkbox-selector.types';
5
- import * as i0 from "@angular/core";
6
- /** Сервис хранения состояния выбранных в реестре объектов */
7
- export declare class SelectedObjectsStateService<T extends {
8
- id: ScalarUUID;
9
- } = any> {
10
- /** Состояние всех загруженных объектов реестра */
11
- readonly state: import("@angular/core").WritableSignal<Map<ScalarUUID, IRegisterObject<T>>>;
12
- /** Ключи всех выбранных объектов реестра */
13
- readonly selectedKeys: import("@angular/core").Signal<Set<ScalarUUID>>;
14
- /** Ключи всех выбранных или не выбранных объектов реестра (зависит от stateUnfetchedObjects) */
15
- readonly keys: import("@angular/core").Signal<Set<ScalarUUID>>;
16
- /** Значения всех выбранных объектов реестра */
17
- readonly selectedValues: import("@angular/core").Signal<Set<T>>;
18
- /** Значения всех не выбранных объектов реестра */
19
- readonly unselectedValues: import("@angular/core").Signal<Set<T>>;
20
- /** Значения всех выбранных или не выбранных объектов реестра (зависит от stateUnfetchedObjects) */
21
- readonly values: import("@angular/core").Signal<Set<T>>;
22
- readonly selectionType$: BehaviorSubject<ApplySelectionTypes>;
23
- readonly stateUnfetchedObjects$: BehaviorSubject<ERegisterObjectState>;
24
- readonly stateUnfetchedObjects: import("@angular/core").Signal<ERegisterObjectState>;
25
- private readonly _dr;
26
- constructor();
27
- /**
28
- * Установить состояние всем загруженным объектам
29
- *
30
- * @param nextState - устанавливаемое состояние
31
- * */
32
- setAllStateObjectsByState(nextState: ERegisterObjectState): void;
33
- /**
34
- * Обновить свойства загруженного объекта по ключу
35
- *
36
- * @param key - ключ загруженного объекта
37
- * @param updates - обновление, содержащее свойства которые нужно обновить
38
- * */
39
- setStateObjectByKey(key: ScalarUUID, updates: Partial<IRegisterObject<T>>): void;
40
- loadStateObjects(data: T[]): void;
41
- private _refresh;
42
- resetState(data?: T[]): void;
43
- private _filterStateObjectsByState;
44
- private _subscribeOnSelectionType;
45
- static ɵfac: i0.ɵɵFactoryDeclaration<SelectedObjectsStateService<any>, never>;
46
- static ɵprov: i0.ɵɵInjectableDeclaration<SelectedObjectsStateService<any>>;
47
- }
@@ -1,19 +0,0 @@
1
- import { DocumentNode } from 'graphql/language';
2
- import { Observable } from 'rxjs';
3
- import { MetaQuery } from '../types/params.types';
4
- import * as i0 from "@angular/core";
5
- export declare class FastQueryStore {
6
- private cachedTime;
7
- private cachedVariables;
8
- private cachedData;
9
- private readonly _apollo;
10
- getResults(meta: MetaQuery, withoutAggregate?: boolean, selectedIdsWhere?: object): Observable<{
11
- data: Record<string, any>[];
12
- totalElements: number;
13
- selectedIdsQuery?: any[];
14
- }>;
15
- generateGqlQuery(meta: MetaQuery, withoutAggregate?: boolean, withPickedSearch?: boolean): DocumentNode;
16
- private _buildDeepDataFromValue;
17
- static ɵfac: i0.ɵɵFactoryDeclaration<FastQueryStore, never>;
18
- static ɵprov: i0.ɵɵInjectableDeclaration<FastQueryStore>;
19
- }
@@ -1,35 +0,0 @@
1
- export interface HasuraGqlError {
2
- extensions: {
3
- code: string;
4
- path: string;
5
- };
6
- message: string;
7
- }
8
- export interface HbGqlErrors {
9
- errors: HasuraGqlError[];
10
- graphQLErrors?: HasuraGqlError[];
11
- }
12
- export type HasuraError = HbGqlErrors | string;
13
- export interface HasuraErrorInternal {
14
- error: {
15
- description: string | null;
16
- exec_status: string;
17
- hint: string | null;
18
- message: string;
19
- };
20
- }
21
- export interface HasuraErrorExtensions {
22
- code: string;
23
- internal: HasuraErrorInternal;
24
- }
25
- export interface GraphQLError {
26
- message: string;
27
- extensions: HasuraErrorExtensions;
28
- }
29
- export interface ApolloError {
30
- message: string;
31
- graphQLErrors: GraphQLError[];
32
- clientErrors: any[];
33
- extraInfo?: any;
34
- cause?: Error;
35
- }
@@ -1,41 +0,0 @@
1
- import { FormControl } from '@angular/forms';
2
- import { WhereBoolExp } from 'hasura';
3
- import { BehaviorSubject } from 'rxjs';
4
- import { JsonValue } from 'type-fest';
5
- import { WritableSignal } from '@angular/core';
6
- export declare enum EInputsState {
7
- HIDDEN = 0,
8
- FILTER_LIST = 1,
9
- SAVED_LIST = 2,
10
- ON_EDIT_FILTER = 3,
11
- ON_SAVE_FILTER = 4
12
- }
13
- export declare enum EInputsAction {
14
- CANCEL = 0,
15
- APPLY_FILTERS = 1,
16
- APPLY_SAVED_FILTER = 2,
17
- AFTER_SAVE_FILTER = 3,
18
- EDIT_FILTER_NAME = 4,
19
- EDIT_FILTER = 5,
20
- OPEN = 6
21
- }
22
- export interface IInputsState {
23
- state: EInputsState;
24
- action: EInputsAction;
25
- }
26
- export interface IInputsStateConfig {
27
- defaultPin?: boolean;
28
- searchInput?: boolean;
29
- }
30
- export interface IInputControl<ValueType = any, SavedValueType = any> extends FormControl<ValueType> {
31
- saved_value$: BehaviorSubject<SavedValueType | null>;
32
- gql_value: InputControlGqlValue;
33
- /** По полю применена фильтрация */
34
- applied?: WritableSignal<boolean>;
35
- }
36
- export type InputControlSaveValue = JsonValue | null;
37
- export type InputControlGqlValue = WhereBoolExp<Record<string, any>> | any | undefined;
38
- export type GqlFields = (string | GqlField)[] | GqlField;
39
- export interface GqlField {
40
- [key: string]: string | string[] | number | number[] | boolean | boolean[] | GqlField | GqlField[];
41
- }
@@ -1,27 +0,0 @@
1
- import { Injector } from '@angular/core';
2
- import { InputControlGqlValue } from './inputs.types';
3
- import { OrderBy, WhereBoolExp } from 'hasura';
4
- export interface MetaQuery<T extends Record<string, any> = any> {
5
- table: {
6
- name: string;
7
- idField: string;
8
- valueField: string;
9
- };
10
- where?: WhereBoolExp<T>;
11
- distinct_on?: (keyof T)[];
12
- limit?: number;
13
- offset?: number;
14
- order_by?: OrderBy<T>;
15
- subquery?: string;
16
- }
17
- export interface IFilterSelectValue {
18
- id: number | string;
19
- name: string;
20
- [key: string]: any;
21
- }
22
- export type FormatterSavedValueType<ValueType, SavedValueType> = (value: ValueType, injector?: Injector) => SavedValueType;
23
- export type ParserSavedValueType<SavedValueType, ValueType> = (value: SavedValueType, injector?: Injector) => ValueType;
24
- export type FormatterGqlValueType<ValueType> = (value: ValueType, injector?: Injector) => InputControlGqlValue;
25
- export type FilterSelectKeys<T> = {
26
- [K in keyof T]: T[K] extends IFilterSelectValue[] | null ? K : never;
27
- }[keyof T];
@@ -1,123 +0,0 @@
1
- import { Observable, Subscription } from 'rxjs';
2
- import { WhereBoolExp } from 'hasura';
3
- import { SETTINGS_TYPE } from '../consts/register-base.consts';
4
- import { IUserProfile } from './user-profile.types';
5
- import { IHasuraQueryFilter, ThWidthEntry } from '../components/register-table/model/schema';
6
- import { MutationResult } from 'apollo-angular';
7
- import { ITableColumnSettings } from '../components/column-settings/types/column-settings.types';
8
- export interface IRegisterBase {
9
- /** @deprecated плохая практика, используйте событие visibleRowsChanges из RegisterTableComponent */
10
- is_visible?: boolean;
11
- id: any;
12
- }
13
- export interface ITpUserSettings {
14
- id: string;
15
- id_user: string;
16
- name: string;
17
- module_name: string;
18
- settings: ITpUserSettingsSettings;
19
- settings_type: SETTINGS_TYPE;
20
- }
21
- export interface ITpUserSettingsSettings {
22
- name?: string;
23
- favorite?: boolean;
24
- filter?: ITpUserSettingsSettingsFilter[];
25
- tableFields?: ITableColumnSettings;
26
- expandType?: string;
27
- switchValue?: 0 | 1;
28
- menuState?: boolean;
29
- tableColumnsWidth?: ThWidthEntry[];
30
- pageRowsLimit?: number;
31
- referer?: string;
32
- pinned?: boolean;
33
- }
34
- export interface ITpUserSettingsSettingsFilter {
35
- id: string;
36
- value: unknown;
37
- }
38
- export declare enum ERegisterObjectState {
39
- SELECTED = "SELECTED",
40
- UNSELECTED = "UNSELECTED"
41
- }
42
- export interface IRegisterObject<T = any> {
43
- object?: T;
44
- state: ERegisterObjectState;
45
- }
46
- export type ObjectsSubscriptionConfig<DataType, FilterType = Record<string, any>> = {
47
- filter: FilterType;
48
- callback?: (data: DataType[]) => void;
49
- noSet?: boolean;
50
- };
51
- /** Интерфейс сервиса управления пользовательскими настройками */
52
- export interface IUserSettingsLoader<T extends ITpUserSettings = any> {
53
- /** Пользовательские настройки */
54
- settings$: Observable<T[]>;
55
- /** Запрос пользовательских настроек по фильтру */
56
- fetchUserSettings$(where: WhereBoolExp<T>, hidden?: boolean): Observable<T[]>;
57
- /** Запрос пользовательских настроек по фильтру (Эффект для фильтров) */
58
- fetchUserSettingsByUserId: (observableOrValue: {
59
- userId: string;
60
- settingsType: SETTINGS_TYPE;
61
- moduleName: string;
62
- } | Observable<{
63
- userId: string;
64
- settingsType: SETTINGS_TYPE;
65
- moduleName: string;
66
- }>) => Subscription;
67
- /** Состояние загрузки пользовательских настроек */
68
- loading$: Observable<boolean>;
69
- /** Мутация на создание или обновление пользовательской настройки */
70
- upsertUserSettingsByUserId: (observableOrValue: {
71
- settings: Partial<T>;
72
- hidden?: boolean;
73
- updateSettings?: boolean;
74
- } | Observable<{
75
- settings: Partial<T>;
76
- hidden?: boolean;
77
- updateSettings?: boolean;
78
- }>) => Subscription;
79
- /** Мутация на обновление пользовательской настройки (Эффект для фильтров) */
80
- updateUserSettingsSettingsById: (observableOrValue: {
81
- id: string;
82
- settings: ITpUserSettingsSettings;
83
- } | Observable<{
84
- id: string;
85
- settings: ITpUserSettingsSettings;
86
- }>) => Subscription;
87
- /** Удаление пользовательской настройки (Эффект для фильтров) */
88
- deleteUserSettingsById: (observableOrValue: {
89
- id: string;
90
- updateSettings?: boolean;
91
- } | Observable<{
92
- id: string;
93
- updateSettings?: boolean;
94
- }>) => Subscription;
95
- /** Результат выполнения мутации */
96
- upsertReturningOne$(type: SETTINGS_TYPE): Observable<ITpUserSettings | null>;
97
- /** Завершение создания или обновления пользовательской настройки */
98
- upsertEnded$: Observable<void>;
99
- }
100
- /** Интерфейс сервиса управления аутентификацией пользователя */
101
- export interface IUserProfileLoader<T extends IUserProfile, PermissionType = unknown> {
102
- /** Аутентифицированный пользователь */
103
- getUserProfile(): T;
104
- /** Метод проверки привилегий пользователя */
105
- checkPermissions(permissions: PermissionType[], every?: boolean): boolean;
106
- }
107
- export interface IBaseRegisterStoreState<T> {
108
- loading: boolean;
109
- count: number;
110
- total: number;
111
- objects: T[];
112
- }
113
- export interface IBaseRegisterStore<Type extends Record<string, any>> {
114
- readonly deleteByIds: (ids: string[], date: Date, ...args: unknown[]) => Observable<MutationResult<Type[]> | null>;
115
- readonly fetchTotal: (observableOrValue: Record<string, any> | Observable<Record<string, any>>) => Subscription;
116
- readonly fetchObjects: (observableOrValue: {
117
- filter: IHasuraQueryFilter<Type>;
118
- callback?: (data: Type[]) => void;
119
- } | Observable<{
120
- filter: IHasuraQueryFilter<Type>;
121
- callback?: (data: Type[]) => void;
122
- }>) => Subscription;
123
- }
@@ -1,8 +0,0 @@
1
- import { AbstractControl, FormArray, FormControl, FormGroup } from '@angular/forms';
2
- export type ExtractForm<T> = {
3
- [K in keyof T]: T[K] extends FormGroup<infer U>[] ? (U extends ControlsWrapper<infer V> ? V : never)[] : T[K];
4
- };
5
- export type ControlsWrapper<T> = {
6
- [K in keyof T]: T[K] extends (infer U extends AbstractControl<any, any>)[] ? FormArray<U> : FormControl<T[K]>;
7
- };
8
- export type InferArrayType<T> = T extends (infer U)[] ? U : T;
@@ -1,17 +0,0 @@
1
- export interface IUserProfile<PermissionType = any> {
2
- id: string;
3
- username?: string;
4
- firstName?: string;
5
- lastName?: string;
6
- roles?: string[];
7
- photo?: string;
8
- groups?: string[];
9
- groups_name?: string[];
10
- token?: string;
11
- permissions?: PermissionType[];
12
- attributes?: IUserAttributes[];
13
- }
14
- export interface IUserAttributes {
15
- name: string;
16
- value: string;
17
- }
@@ -1,3 +0,0 @@
1
- export declare function isNonNull<T>(value: T): value is NonNullable<T>;
2
- export declare function isDefined<T>(value: T | null | undefined): value is T;
3
- export declare function toPx(n: number): string;
@@ -1,7 +0,0 @@
1
- export declare const CARD = "card";
2
- export declare const getFirstSegmentOfPathName: (pathname: string) => string;
3
- /**
4
- * Функция возвращает первый сегмент ссылки
5
- * Если первого сегмента нет, возвращается корневой сегмент - '/'
6
- * */
7
- export declare const getLastSegmentOfPathName: (pathname: string) => string;
@@ -1,14 +0,0 @@
1
- import { PrizmDateTimeRange, PrizmDay, PrizmDayRange, PrizmMonth, PrizmMonthRange } from '@prizm-ui/components';
2
- import { TuiDay } from '@taiga-ui/cdk';
3
- import { SmaPrizmDateTime } from '../directives/date/date-time.types';
4
- import * as i0 from "@angular/core";
5
- import * as i1 from "@angular/forms";
6
- import * as i2 from "@prizm-ui/components";
7
- import * as i3 from "@prizm-ui/icons";
8
- import * as i4 from "@prizm-ui/flag-icons";
9
- export type PrizmDateTypes = TuiDay | PrizmDay | PrizmDayRange | SmaPrizmDateTime | PrizmDateTimeRange | PrizmMonth | PrizmMonthRange;
10
- export declare class PrizmSharedModule {
11
- static ɵfac: i0.ɵɵFactoryDeclaration<PrizmSharedModule, never>;
12
- static ɵmod: i0.ɵɵNgModuleDeclaration<PrizmSharedModule, never, [typeof i1.FormsModule, typeof i1.ReactiveFormsModule, typeof i2.PrizmTableModule, typeof i2.PrizmScrollbarModule, typeof i2.PrizmCheckboxComponent, typeof i2.PrizmStickyModule, typeof i2.PrizmButtonComponent, typeof i2.PrizmInputTextModule, typeof i3.PrizmIconsComponent, typeof i2.PrizmPaginatorComponent, typeof i2.PrizmInputSelectModule, typeof i2.PrizmPanelComponent, typeof i2.PrizmToggleComponent, typeof i2.PrizmTabsModule, typeof i2.PrizmDropdownHostModule, typeof i2.PrizmLoaderComponent, typeof i2.PrizmSelectInputComponent, typeof i2.PrizmInputMultiSelectModule, typeof i2.PrizmInputLayoutDateModule, typeof i4.PrizmFlagIconsComponent, typeof i2.PrizmInputLayoutDateRangeModule, typeof i2.PrizmDialogComponent, typeof i2.PrizmInputLayoutDateComponent, typeof i2.PrizmColumnSettingsComponent, typeof i2.PrizmSwitcherComponent, typeof i2.PrizmTooltipModule, typeof i2.PrizmInputMultiSelectComponent, typeof i2.PrizmInputLayoutDateRangeComponent, typeof i2.PrizmSidebarComponent, typeof i2.PrizmToastModule, typeof i2.PrizmInputLayoutDateTimeModule, typeof i2.PrizmInputCommonModule, typeof i2.PrizmInputIconButtonComponent, typeof i2.PrizmInputLayoutMonthModule, typeof i2.PrizmHintDirective, typeof i2.PrizmTreeModule, typeof i2.PrizmInputNumberModule, typeof i2.PrizmInputLayoutDateTimeRangeModule, typeof i2.PrizmProgressModule, typeof i2.PrizmInputLayoutMonthRangeComponent, typeof i2.PrizmInputLayoutDateTimeRangeComponent, typeof i2.PrizmCardComponent, typeof i2.PrizmDropdownControllerDirective, typeof i2.PrizmRadioButtonComponent, typeof i2.PrizmBreadcrumbDirective, typeof i2.PrizmBreadcrumbsComponent, typeof i2.PrizmStepperModule, typeof i2.PrizmIndicatorComponent], [typeof i1.FormsModule, typeof i1.ReactiveFormsModule, typeof i2.PrizmTableModule, typeof i2.PrizmScrollbarModule, typeof i2.PrizmCheckboxComponent, typeof i2.PrizmStickyModule, typeof i2.PrizmButtonComponent, typeof i2.PrizmInputTextModule, typeof i3.PrizmIconsComponent, typeof i2.PrizmPaginatorComponent, typeof i2.PrizmInputSelectModule, typeof i2.PrizmPanelComponent, typeof i2.PrizmToggleComponent, typeof i2.PrizmTabsModule, typeof i2.PrizmDropdownHostModule, typeof i2.PrizmLoaderComponent, typeof i2.PrizmSelectInputComponent, typeof i2.PrizmInputMultiSelectModule, typeof i2.PrizmInputLayoutDateModule, typeof i4.PrizmFlagIconsComponent, typeof i2.PrizmInputLayoutDateRangeModule, typeof i2.PrizmDialogComponent, typeof i2.PrizmInputLayoutDateComponent, typeof i2.PrizmColumnSettingsComponent, typeof i2.PrizmSwitcherComponent, typeof i2.PrizmTooltipModule, typeof i2.PrizmInputMultiSelectComponent, typeof i2.PrizmInputLayoutDateRangeComponent, typeof i2.PrizmSidebarComponent, typeof i2.PrizmToastModule, typeof i2.PrizmInputLayoutDateTimeModule, typeof i2.PrizmInputCommonModule, typeof i2.PrizmInputIconButtonComponent, typeof i2.PrizmInputLayoutMonthModule, typeof i2.PrizmHintDirective, typeof i2.PrizmTreeModule, typeof i2.PrizmInputNumberModule, typeof i2.PrizmInputLayoutDateTimeRangeModule, typeof i2.PrizmProgressModule, typeof i2.PrizmInputLayoutTimeModule, typeof i2.PrizmInputLayoutMonthRangeComponent, typeof i2.PrizmInputLayoutDateTimeRangeComponent, typeof i2.PrizmSplitterModule, typeof i2.PrizmCardComponent, typeof i2.PrizmDropdownControllerDirective, typeof i2.PrizmRadioButtonComponent, typeof i2.PrizmBreadcrumbDirective, typeof i2.PrizmBreadcrumbsComponent, typeof i2.PrizmStepperModule, typeof i2.PrizmIndicatorComponent]>;
13
- static ɵinj: i0.ɵɵInjectorDeclaration<PrizmSharedModule>;
14
- }
@@ -1,10 +0,0 @@
1
- import { MonoTypeOperatorFunction, Observable } from 'rxjs';
2
- export declare function distinctUntilChangedJSONs<T>(): MonoTypeOperatorFunction<T>;
3
- /**
4
- * Перемещает выполнение функции на указанное количество итераций в цикле событий.
5
- *
6
- * @param count - Количество итераций цикла событий для перемещения.
7
- * @returns Оператор, который можно использовать с Observable для продолжения цепочки.
8
- */
9
- export declare function moveInEventLoopIteration<T>(count: number): MonoTypeOperatorFunction<T>;
10
- export declare function just(): Observable<null>;
@@ -1,8 +0,0 @@
1
- import { IFilterSelectValue } from '../types';
2
- export declare const SELECT_ALL_ID = "-1";
3
- export declare const SELECT_ALL_NAME = "\u0412\u044B\u0431\u0440\u0430\u0442\u044C \u0432\u0441\u0435";
4
- export declare function removeSelectAll(arr: IFilterSelectValue[] | null): IFilterSelectValue[] | null;
5
- export declare const selectAllItem: {
6
- id: string;
7
- name: string;
8
- };
@@ -1,2 +0,0 @@
1
- import { Rule } from '@angular-devkit/schematics';
2
- export declare function replaceMenuStateToken(): Rule;
@@ -1,29 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.replaceMenuStateToken = replaceMenuStateToken;
4
- const utils_1 = require("../../utils/utils");
5
- function replaceMenuStateToken() {
6
- return (tree, context) => {
7
- const tokenRegex = /\bMENU_STATE_SERVICE\b/g;
8
- const newToken = 'PAGE_MENU_STATE';
9
- tree.visit((filePath) => {
10
- if ((0, utils_1.shouldSkipFile)(filePath) || !(0, utils_1.hasFileExtension)(filePath, ['.ts'])) {
11
- return;
12
- }
13
- const buffer = tree.read(filePath);
14
- if (!buffer) {
15
- return;
16
- }
17
- const content = buffer.toString('utf-8');
18
- if (tokenRegex.test(content)) {
19
- const updatedContent = content.replace(tokenRegex, newToken);
20
- if (content !== updatedContent) {
21
- tree.overwrite(filePath, updatedContent);
22
- context.logger.info(`Updated token in: ${filePath}`);
23
- }
24
- }
25
- });
26
- return tree;
27
- };
28
- }
29
- //# sourceMappingURL=index.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../projects/ngx-register-base/schematics/ng-update/replace-menu-state-token/index.ts"],"names":[],"mappings":";;AAGA,sDA6BC;AA/BD,6CAAqE;AAErE,SAAgB,qBAAqB;IACnC,OAAO,CAAC,IAAU,EAAE,OAAyB,EAAE,EAAE;QAC/C,MAAM,UAAU,GAAG,yBAAyB,CAAC;QAC7C,MAAM,QAAQ,GAAG,iBAAiB,CAAC;QAEnC,IAAI,CAAC,KAAK,CAAC,CAAC,QAAQ,EAAE,EAAE;YACtB,IAAI,IAAA,sBAAc,EAAC,QAAQ,CAAC,IAAI,CAAC,IAAA,wBAAgB,EAAC,QAAQ,EAAE,CAAC,KAAK,CAAC,CAAC,EAAE,CAAC;gBACrE,OAAO;YACT,CAAC;YAED,MAAM,MAAM,GAAG,IAAI,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC;YACnC,IAAI,CAAC,MAAM,EAAE,CAAC;gBACZ,OAAO;YACT,CAAC;YAED,MAAM,OAAO,GAAG,MAAM,CAAC,QAAQ,CAAC,OAAO,CAAC,CAAC;YAEzC,IAAI,UAAU,CAAC,IAAI,CAAC,OAAO,CAAC,EAAE,CAAC;gBAC7B,MAAM,cAAc,GAAG,OAAO,CAAC,OAAO,CAAC,UAAU,EAAE,QAAQ,CAAC,CAAC;gBAE7D,IAAI,OAAO,KAAK,cAAc,EAAE,CAAC;oBAC/B,IAAI,CAAC,SAAS,CAAC,QAAQ,EAAE,cAAc,CAAC,CAAC;oBACzC,OAAO,CAAC,MAAM,CAAC,IAAI,CAAC,qBAAqB,QAAQ,EAAE,CAAC,CAAC;gBACvD,CAAC;YACH,CAAC;QACH,CAAC,CAAC,CAAC;QAEH,OAAO,IAAI,CAAC;IACd,CAAC,CAAC;AACJ,CAAC"}
@@ -1,2 +0,0 @@
1
- import { Rule } from '@angular-devkit/schematics';
2
- export declare function updatePrefix(): Rule;
@@ -1,33 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.updatePrefix = updatePrefix;
4
- const utils_1 = require("../../utils/utils");
5
- function updatePrefix() {
6
- return (tree, _context) => {
7
- tree.visit((filePath) => {
8
- if ((0, utils_1.shouldSkipFile)(filePath)) {
9
- return;
10
- }
11
- const contentBuffer = tree.read(filePath);
12
- if (!contentBuffer) {
13
- return;
14
- }
15
- const content = contentBuffer.toString('utf-8');
16
- if ((0, utils_1.hasFileExtension)(filePath, ['.html', '.ts'])) {
17
- const newContent = content.replace(/<sma-/g, '<sproc-').replace(/<\/sma-/g, '</sproc-');
18
- if (content !== newContent) {
19
- tree.overwrite(filePath, newContent);
20
- }
21
- return;
22
- }
23
- if ((0, utils_1.hasFileExtension)(filePath, ['.css', '.less', '.scss'])) {
24
- const newContent = content.replace(/\bsma-/g, 'sproc-');
25
- if (content !== newContent) {
26
- tree.overwrite(filePath, newContent);
27
- }
28
- }
29
- });
30
- return tree;
31
- };
32
- }
33
- //# sourceMappingURL=index.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../projects/ngx-register-base/schematics/ng-update/update-prefix/index.ts"],"names":[],"mappings":";;AAGA,oCAkCC;AApCD,6CAAqE;AAErE,SAAgB,YAAY;IAC1B,OAAO,CAAC,IAAU,EAAE,QAA0B,EAAE,EAAE;QAChD,IAAI,CAAC,KAAK,CAAC,CAAC,QAAQ,EAAE,EAAE;YACtB,IAAI,IAAA,sBAAc,EAAC,QAAQ,CAAC,EAAE,CAAC;gBAC7B,OAAO;YACT,CAAC;YAED,MAAM,aAAa,GAAG,IAAI,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC;YAC1C,IAAI,CAAC,aAAa,EAAE,CAAC;gBACnB,OAAO;YACT,CAAC;YAED,MAAM,OAAO,GAAG,aAAa,CAAC,QAAQ,CAAC,OAAO,CAAC,CAAC;YAEhD,IAAI,IAAA,wBAAgB,EAAC,QAAQ,EAAE,CAAC,OAAO,EAAE,KAAK,CAAC,CAAC,EAAE,CAAC;gBACjD,MAAM,UAAU,GAAG,OAAO,CAAC,OAAO,CAAC,QAAQ,EAAE,SAAS,CAAC,CAAC,OAAO,CAAC,UAAU,EAAE,UAAU,CAAC,CAAC;gBAExF,IAAI,OAAO,KAAK,UAAU,EAAE,CAAC;oBAC3B,IAAI,CAAC,SAAS,CAAC,QAAQ,EAAE,UAAU,CAAC,CAAC;gBACvC,CAAC;gBACD,OAAO;YACT,CAAC;YAED,IAAI,IAAA,wBAAgB,EAAC,QAAQ,EAAE,CAAC,MAAM,EAAE,OAAO,EAAE,OAAO,CAAC,CAAC,EAAE,CAAC;gBAC3D,MAAM,UAAU,GAAG,OAAO,CAAC,OAAO,CAAC,SAAS,EAAE,QAAQ,CAAC,CAAC;gBAExD,IAAI,OAAO,KAAK,UAAU,EAAE,CAAC;oBAC3B,IAAI,CAAC,SAAS,CAAC,QAAQ,EAAE,UAAU,CAAC,CAAC;gBACvC,CAAC;YACH,CAAC;QACH,CAAC,CAAC,CAAC;QAEH,OAAO,IAAI,CAAC;IACd,CAAC,CAAC;AACJ,CAAC"}