@one-paragon/angular-utilities 0.1.32 → 0.1.34

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 (294) hide show
  1. package/action-state/action-state-spinner/action-state-spinner.component.d.ts +12 -12
  2. package/action-state/action-state-ui/action-state-ui.module.d.ts +9 -9
  3. package/action-state/index.d.ts +4 -4
  4. package/action-state/ngrx-ext/ngrx-ext.module.d.ts +8 -8
  5. package/action-state/ngrx.d.ts +31 -31
  6. package/esm2022/action-state/action-state-spinner/action-state-spinner.component.mjs +24 -0
  7. package/esm2022/action-state/action-state-ui/action-state-ui.module.mjs +29 -0
  8. package/{esm2020 → esm2022}/action-state/index.mjs +7 -7
  9. package/esm2022/action-state/ngrx-ext/ngrx-ext.module.mjs +24 -0
  10. package/{esm2020 → esm2022}/action-state/ngrx.mjs +41 -41
  11. package/esm2022/http-request-state/HttpRequestStateFactory.mjs +28 -0
  12. package/esm2022/http-request-state/HttpRequestStateStore.mjs +98 -0
  13. package/esm2022/http-request-state/directives/HttpStateDirectiveBase.mjs +35 -0
  14. package/esm2022/http-request-state/directives/http-error-state-directive.mjs +30 -0
  15. package/esm2022/http-request-state/directives/http-inProgress-state-directive.mjs +30 -0
  16. package/esm2022/http-request-state/directives/http-notStarted-state-directive.mjs +30 -0
  17. package/esm2022/http-request-state/directives/http-success-state-directive.mjs +35 -0
  18. package/{esm2020 → esm2022}/http-request-state/directives/index.mjs +5 -5
  19. package/esm2022/http-request-state/directives/request-state-directive.mjs +61 -0
  20. package/{esm2020 → esm2022}/http-request-state/helpers.mjs +21 -21
  21. package/{esm2020 → esm2022}/http-request-state/http-request-state.mjs +38 -38
  22. package/esm2022/http-request-state/http-state-module.mjs +42 -0
  23. package/{esm2020 → esm2022}/http-request-state/index.mjs +6 -6
  24. package/{esm2020 → esm2022}/http-request-state/rxjs/getRequestorBody.mjs +3 -3
  25. package/{esm2020 → esm2022}/http-request-state/rxjs/getRequestorState.mjs +2 -2
  26. package/{esm2020 → esm2022}/http-request-state/rxjs/index.mjs +4 -4
  27. package/{esm2020 → esm2022}/http-request-state/rxjs/tapError.mjs +11 -11
  28. package/{esm2020 → esm2022}/http-request-state/rxjs/tapSuccess.mjs +11 -11
  29. package/{esm2020 → esm2022}/http-request-state/types.mjs +15 -15
  30. package/{esm2020 → esm2022}/ngrx/actionable-selector.mjs +74 -74
  31. package/{esm2020 → esm2022}/ngrx/index.mjs +1 -1
  32. package/{esm2020 → esm2022}/one-paragon-angular-utilities.mjs +4 -4
  33. package/{esm2020 → esm2022}/public-api.mjs +18 -18
  34. package/{esm2020 → esm2022}/rxjs/defaultShareReplay.mjs +6 -6
  35. package/{esm2020 → esm2022}/rxjs/index.mjs +4 -4
  36. package/{esm2020 → esm2022}/rxjs/mapError.mjs +7 -7
  37. package/{esm2020 → esm2022}/rxjs/rxjs-operators.mjs +90 -90
  38. package/{esm2020 → esm2022}/rxjs/subjectifier.mjs +14 -14
  39. package/{esm2020 → esm2022}/table-builder/classes/DefaultSettings.mjs +5 -5
  40. package/{esm2020 → esm2022}/table-builder/classes/GenericTableDataSource.mjs +12 -12
  41. package/{esm2020 → esm2022}/table-builder/classes/MatTableObservableDataSource.mjs +20 -20
  42. package/{esm2020 → esm2022}/table-builder/classes/TableBuilderConfig.mjs +2 -2
  43. package/{esm2020 → esm2022}/table-builder/classes/TableState.mjs +31 -31
  44. package/{esm2020 → esm2022}/table-builder/classes/data-filter.mjs +25 -25
  45. package/{esm2020 → esm2022}/table-builder/classes/display-col.mjs +1 -1
  46. package/{esm2020 → esm2022}/table-builder/classes/filter-info.mjs +72 -72
  47. package/{esm2020 → esm2022}/table-builder/classes/table-builder-general-settings.mjs +67 -67
  48. package/{esm2020 → esm2022}/table-builder/classes/table-builder.mjs +75 -75
  49. package/esm2022/table-builder/classes/table-store.mjs +293 -0
  50. package/esm2022/table-builder/components/array-column.component.mjs +58 -0
  51. package/esm2022/table-builder/components/column-builder/column-builder.component.mjs +113 -0
  52. package/esm2022/table-builder/components/date-filter/date-filter.component.mjs +26 -0
  53. package/esm2022/table-builder/components/date-time-filter/date-time-filter.component.mjs +23 -0
  54. package/esm2022/table-builder/components/filter/filter.component.mjs +55 -0
  55. package/esm2022/table-builder/components/filter/in-list/in-list-filter.component.mjs +92 -0
  56. package/esm2022/table-builder/components/gen-col-displayer/gen-col-displayer.component.mjs +46 -0
  57. package/esm2022/table-builder/components/generic-table/generic-table.component.mjs +203 -0
  58. package/esm2022/table-builder/components/generic-table/paginator.component.mjs +75 -0
  59. package/esm2022/table-builder/components/group-by-list/group-by-list.component.mjs +23 -0
  60. package/esm2022/table-builder/components/header-menu/header-menu.component.mjs +92 -0
  61. package/esm2022/table-builder/components/in-filter/in-filter.component.mjs +64 -0
  62. package/{esm2020 → esm2022}/table-builder/components/index.mjs +9 -9
  63. package/esm2022/table-builder/components/initialization-component/initialization-component.mjs +34 -0
  64. package/{esm2020 → esm2022}/table-builder/components/link-column.component.mjs +32 -31
  65. package/esm2022/table-builder/components/number-filter/number-filter.component.mjs +28 -0
  66. package/esm2022/table-builder/components/sort-menu/sort-menu.component-store.mjs +43 -0
  67. package/{esm2020 → esm2022}/table-builder/components/sort-menu/sort-menu.component.mjs +76 -75
  68. package/esm2022/table-builder/components/table-container/table-container.mjs +323 -0
  69. package/esm2022/table-builder/components/table-container-filter/filter-list/filter-list.component.mjs +43 -0
  70. package/esm2022/table-builder/components/table-container-filter/gen-filter-displayer/gen-filter-displayer.component.mjs +31 -0
  71. package/esm2022/table-builder/components/table-container-filter/table-wrapper-filter-store.mjs +26 -0
  72. package/esm2022/table-builder/directives/custom-cell-directive.mjs +60 -0
  73. package/{esm2020 → esm2022}/table-builder/directives/index.mjs +5 -5
  74. package/esm2022/table-builder/directives/multi-sort.directive.mjs +43 -0
  75. package/esm2022/table-builder/directives/resize-column.directive.mjs +87 -0
  76. package/esm2022/table-builder/directives/table-wrapper.directive.mjs +27 -0
  77. package/esm2022/table-builder/directives/tb-filter.directive.mjs +413 -0
  78. package/{esm2020 → esm2022}/table-builder/enums/filterTypes.mjs +71 -71
  79. package/{esm2020 → esm2022}/table-builder/functions/boolean-filter-function.mjs +9 -9
  80. package/{esm2020 → esm2022}/table-builder/functions/date-filter-function.mjs +57 -57
  81. package/{esm2020 → esm2022}/table-builder/functions/download-data.mjs +11 -11
  82. package/{esm2020 → esm2022}/table-builder/functions/null-filter-function.mjs +7 -7
  83. package/{esm2020 → esm2022}/table-builder/functions/number-filter-function.mjs +31 -31
  84. package/{esm2020 → esm2022}/table-builder/functions/sort-data-function.mjs +4 -4
  85. package/{esm2020 → esm2022}/table-builder/functions/string-filter-function.mjs +40 -40
  86. package/{esm2020 → esm2022}/table-builder/interfaces/ColumnInfo.mjs +1 -1
  87. package/{esm2020 → esm2022}/table-builder/interfaces/dictionary.mjs +1 -1
  88. package/{esm2020 → esm2022}/table-builder/interfaces/report-def.mjs +34 -34
  89. package/esm2022/table-builder/material.module.mjs +208 -0
  90. package/{esm2020 → esm2022}/table-builder/ngrx/actions.mjs +4 -4
  91. package/esm2022/table-builder/ngrx/effects.mjs +49 -0
  92. package/{esm2020 → esm2022}/table-builder/ngrx/reducer.mjs +51 -51
  93. package/{esm2020 → esm2022}/table-builder/ngrx/selectors.mjs +23 -23
  94. package/esm2022/table-builder/pipes/column-total.pipe.mjs +21 -0
  95. package/esm2022/table-builder/pipes/format-filter-type.pipe.mjs +19 -0
  96. package/esm2022/table-builder/pipes/format-filter-value.pipe.mjs +46 -0
  97. package/esm2022/table-builder/pipes/key-display.mjs +21 -0
  98. package/esm2022/table-builder/services/export-to-csv.service.mjs +89 -0
  99. package/{esm2020 → esm2022}/table-builder/services/link-creator.service.mjs +41 -41
  100. package/esm2022/table-builder/services/table-template-service.mjs +45 -0
  101. package/esm2022/table-builder/services/transform-creator.mjs +76 -0
  102. package/esm2022/table-builder/table-builder.module.mjs +208 -0
  103. package/esm2022/utilities/directives/auto-focus.directive.mjs +27 -0
  104. package/esm2022/utilities/directives/clickEmitterDirective.mjs +22 -0
  105. package/esm2022/utilities/directives/clickSubject.mjs +28 -0
  106. package/esm2022/utilities/directives/conditional-classes.directive.mjs +36 -0
  107. package/esm2022/utilities/directives/dialog-service.mjs +26 -0
  108. package/esm2022/utilities/directives/dialog.mjs +139 -0
  109. package/esm2022/utilities/directives/mat-toggle-group-directive.mjs +60 -0
  110. package/esm2022/utilities/directives/prevent-enter.directive.mjs +20 -0
  111. package/esm2022/utilities/directives/stop-propagation.directive.mjs +26 -0
  112. package/esm2022/utilities/directives/styler.mjs +27 -0
  113. package/esm2022/utilities/directives/trim-whitespace.directive.mjs +30 -0
  114. package/{esm2020 → esm2022}/utilities/index.mjs +15 -15
  115. package/esm2022/utilities/module.mjs +92 -0
  116. package/esm2022/utilities/pipes/function.pipe.mjs +22 -0
  117. package/esm2022/utilities/pipes/phone.pipe.mjs +21 -0
  118. package/esm2022/utilities/pipes/space-case.pipes.mjs +29 -0
  119. package/{fesm2020 → fesm2022}/one-paragon-angular-utilities.mjs +4398 -4398
  120. package/fesm2022/one-paragon-angular-utilities.mjs.map +1 -0
  121. package/http-request-state/HttpRequestStateFactory.d.ts +14 -14
  122. package/http-request-state/HttpRequestStateStore.d.ts +48 -48
  123. package/http-request-state/directives/HttpStateDirectiveBase.d.ts +16 -16
  124. package/http-request-state/directives/http-error-state-directive.d.ts +12 -12
  125. package/http-request-state/directives/http-inProgress-state-directive.d.ts +12 -12
  126. package/http-request-state/directives/http-notStarted-state-directive.d.ts +12 -12
  127. package/http-request-state/directives/http-success-state-directive.d.ts +21 -21
  128. package/http-request-state/directives/index.d.ts +5 -5
  129. package/http-request-state/directives/request-state-directive.d.ts +35 -35
  130. package/http-request-state/helpers.d.ts +9 -9
  131. package/http-request-state/http-request-state.d.ts +12 -12
  132. package/http-request-state/http-state-module.d.ts +11 -11
  133. package/http-request-state/index.d.ts +6 -6
  134. package/http-request-state/rxjs/getRequestorBody.d.ts +3 -3
  135. package/http-request-state/rxjs/getRequestorState.d.ts +3 -3
  136. package/http-request-state/rxjs/index.d.ts +4 -4
  137. package/http-request-state/rxjs/tapError.d.ts +3 -3
  138. package/http-request-state/rxjs/tapSuccess.d.ts +3 -3
  139. package/http-request-state/types.d.ts +36 -36
  140. package/index.d.ts +5 -5
  141. package/ngrx/actionable-selector.d.ts +15 -15
  142. package/ngrx/index.d.ts +1 -1
  143. package/package.json +13 -19
  144. package/public-api.d.ts +15 -15
  145. package/rxjs/defaultShareReplay.d.ts +2 -2
  146. package/rxjs/index.d.ts +4 -4
  147. package/rxjs/mapError.d.ts +2 -2
  148. package/rxjs/rxjs-operators.d.ts +12 -12
  149. package/rxjs/subjectifier.d.ts +9 -9
  150. package/table-builder/classes/DefaultSettings.d.ts +9 -9
  151. package/table-builder/classes/GenericTableDataSource.d.ts +8 -8
  152. package/table-builder/classes/MatTableObservableDataSource.d.ts +9 -9
  153. package/table-builder/classes/TableBuilderConfig.d.ts +20 -20
  154. package/table-builder/classes/TableState.d.ts +46 -46
  155. package/table-builder/classes/data-filter.d.ts +9 -9
  156. package/table-builder/classes/display-col.d.ts +5 -5
  157. package/table-builder/classes/filter-info.d.ts +40 -40
  158. package/table-builder/classes/table-builder-general-settings.d.ts +43 -43
  159. package/table-builder/classes/table-builder.d.ts +14 -14
  160. package/table-builder/classes/table-store.d.ts +114 -114
  161. package/table-builder/components/array-column.component.d.ts +14 -14
  162. package/table-builder/components/column-builder/column-builder.component.d.ts +50 -50
  163. package/table-builder/components/date-filter/date-filter.component.d.ts +10 -10
  164. package/table-builder/components/date-time-filter/date-time-filter.component.d.ts +10 -10
  165. package/table-builder/components/filter/filter.component.d.ts +371 -371
  166. package/table-builder/components/filter/in-list/in-list-filter.component.d.ts +27 -27
  167. package/table-builder/components/gen-col-displayer/gen-col-displayer.component.d.ts +16 -16
  168. package/table-builder/components/generic-table/generic-table.component.d.ts +73 -73
  169. package/table-builder/components/generic-table/paginator.component.d.ts +28 -28
  170. package/table-builder/components/group-by-list/group-by-list.component.d.ts +10 -10
  171. package/table-builder/components/header-menu/header-menu.component.d.ts +25 -25
  172. package/table-builder/components/in-filter/in-filter.component.d.ts +21 -21
  173. package/table-builder/components/index.d.ts +9 -9
  174. package/table-builder/components/initialization-component/initialization-component.d.ts +12 -12
  175. package/table-builder/components/link-column.component.d.ts +17 -17
  176. package/table-builder/components/number-filter/number-filter.component.d.ts +12 -12
  177. package/table-builder/components/sort-menu/sort-menu.component-store.d.ts +24 -24
  178. package/table-builder/components/sort-menu/sort-menu.component.d.ts +25 -25
  179. package/table-builder/components/table-container/table-container.d.ts +68 -68
  180. package/table-builder/components/table-container-filter/filter-list/filter-list.component.d.ts +17 -17
  181. package/table-builder/components/table-container-filter/gen-filter-displayer/gen-filter-displayer.component.d.ts +14 -14
  182. package/table-builder/components/table-container-filter/table-wrapper-filter-store.d.ts +14 -14
  183. package/table-builder/directives/custom-cell-directive.d.ts +19 -19
  184. package/table-builder/directives/index.d.ts +5 -5
  185. package/table-builder/directives/multi-sort.directive.d.ts +11 -11
  186. package/table-builder/directives/resize-column.directive.d.ts +43 -43
  187. package/table-builder/directives/table-wrapper.directive.d.ts +11 -11
  188. package/table-builder/directives/tb-filter.directive.d.ts +120 -120
  189. package/table-builder/enums/filterTypes.d.ts +37 -37
  190. package/table-builder/functions/boolean-filter-function.d.ts +3 -3
  191. package/table-builder/functions/date-filter-function.d.ts +4 -4
  192. package/table-builder/functions/download-data.d.ts +1 -1
  193. package/table-builder/functions/null-filter-function.d.ts +2 -2
  194. package/table-builder/functions/number-filter-function.d.ts +4 -4
  195. package/table-builder/functions/sort-data-function.d.ts +3 -3
  196. package/table-builder/functions/string-filter-function.d.ts +7 -7
  197. package/table-builder/interfaces/ColumnInfo.d.ts +6 -6
  198. package/table-builder/interfaces/dictionary.d.ts +3 -3
  199. package/table-builder/interfaces/report-def.d.ts +142 -142
  200. package/table-builder/material.module.d.ts +32 -32
  201. package/table-builder/ngrx/actions.d.ts +23 -23
  202. package/table-builder/ngrx/effects.d.ts +19 -19
  203. package/table-builder/ngrx/reducer.d.ts +15 -15
  204. package/table-builder/ngrx/selectors.d.ts +22 -22
  205. package/table-builder/pipes/column-total.pipe.d.ts +8 -8
  206. package/table-builder/pipes/format-filter-type.pipe.d.ts +8 -8
  207. package/table-builder/pipes/format-filter-value.pipe.d.ts +14 -14
  208. package/table-builder/pipes/key-display.d.ts +11 -11
  209. package/table-builder/services/export-to-csv.service.d.ts +22 -22
  210. package/table-builder/services/link-creator.service.d.ts +12 -12
  211. package/table-builder/services/table-template-service.d.ts +14 -14
  212. package/table-builder/services/transform-creator.d.ts +19 -19
  213. package/table-builder/table-builder.module.d.ts +46 -46
  214. package/utilities/directives/auto-focus.directive.d.ts +10 -10
  215. package/utilities/directives/clickEmitterDirective.d.ts +7 -7
  216. package/utilities/directives/clickSubject.d.ts +9 -9
  217. package/utilities/directives/conditional-classes.directive.d.ts +14 -14
  218. package/utilities/directives/dialog-service.d.ts +10 -10
  219. package/utilities/directives/dialog.d.ts +46 -46
  220. package/utilities/directives/mat-toggle-group-directive.d.ts +21 -21
  221. package/utilities/directives/prevent-enter.directive.d.ts +6 -6
  222. package/utilities/directives/stop-propagation.directive.d.ts +7 -7
  223. package/utilities/directives/styler.d.ts +9 -9
  224. package/utilities/directives/trim-whitespace.directive.d.ts +9 -9
  225. package/utilities/index.d.ts +15 -15
  226. package/utilities/module.d.ts +19 -19
  227. package/utilities/pipes/function.pipe.d.ts +7 -7
  228. package/utilities/pipes/phone.pipe.d.ts +7 -7
  229. package/utilities/pipes/space-case.pipes.d.ts +17 -17
  230. package/esm2020/action-state/action-state-spinner/action-state-spinner.component.mjs +0 -23
  231. package/esm2020/action-state/action-state-ui/action-state-ui.module.mjs +0 -28
  232. package/esm2020/action-state/ngrx-ext/ngrx-ext.module.mjs +0 -23
  233. package/esm2020/http-request-state/HttpRequestStateFactory.mjs +0 -27
  234. package/esm2020/http-request-state/HttpRequestStateStore.mjs +0 -97
  235. package/esm2020/http-request-state/directives/HttpStateDirectiveBase.mjs +0 -34
  236. package/esm2020/http-request-state/directives/http-error-state-directive.mjs +0 -29
  237. package/esm2020/http-request-state/directives/http-inProgress-state-directive.mjs +0 -29
  238. package/esm2020/http-request-state/directives/http-notStarted-state-directive.mjs +0 -29
  239. package/esm2020/http-request-state/directives/http-success-state-directive.mjs +0 -34
  240. package/esm2020/http-request-state/directives/request-state-directive.mjs +0 -60
  241. package/esm2020/http-request-state/http-state-module.mjs +0 -41
  242. package/esm2020/table-builder/classes/table-store.mjs +0 -292
  243. package/esm2020/table-builder/components/array-column.component.mjs +0 -57
  244. package/esm2020/table-builder/components/column-builder/column-builder.component.mjs +0 -112
  245. package/esm2020/table-builder/components/date-filter/date-filter.component.mjs +0 -25
  246. package/esm2020/table-builder/components/date-time-filter/date-time-filter.component.mjs +0 -22
  247. package/esm2020/table-builder/components/filter/filter.component.mjs +0 -54
  248. package/esm2020/table-builder/components/filter/in-list/in-list-filter.component.mjs +0 -91
  249. package/esm2020/table-builder/components/gen-col-displayer/gen-col-displayer.component.mjs +0 -45
  250. package/esm2020/table-builder/components/generic-table/generic-table.component.mjs +0 -202
  251. package/esm2020/table-builder/components/generic-table/paginator.component.mjs +0 -74
  252. package/esm2020/table-builder/components/group-by-list/group-by-list.component.mjs +0 -22
  253. package/esm2020/table-builder/components/header-menu/header-menu.component.mjs +0 -91
  254. package/esm2020/table-builder/components/in-filter/in-filter.component.mjs +0 -63
  255. package/esm2020/table-builder/components/initialization-component/initialization-component.mjs +0 -33
  256. package/esm2020/table-builder/components/number-filter/number-filter.component.mjs +0 -27
  257. package/esm2020/table-builder/components/sort-menu/sort-menu.component-store.mjs +0 -42
  258. package/esm2020/table-builder/components/table-container/table-container.mjs +0 -322
  259. package/esm2020/table-builder/components/table-container-filter/filter-list/filter-list.component.mjs +0 -42
  260. package/esm2020/table-builder/components/table-container-filter/gen-filter-displayer/gen-filter-displayer.component.mjs +0 -30
  261. package/esm2020/table-builder/components/table-container-filter/table-wrapper-filter-store.mjs +0 -25
  262. package/esm2020/table-builder/directives/custom-cell-directive.mjs +0 -59
  263. package/esm2020/table-builder/directives/multi-sort.directive.mjs +0 -42
  264. package/esm2020/table-builder/directives/resize-column.directive.mjs +0 -86
  265. package/esm2020/table-builder/directives/table-wrapper.directive.mjs +0 -26
  266. package/esm2020/table-builder/directives/tb-filter.directive.mjs +0 -403
  267. package/esm2020/table-builder/material.module.mjs +0 -207
  268. package/esm2020/table-builder/ngrx/effects.mjs +0 -48
  269. package/esm2020/table-builder/pipes/column-total.pipe.mjs +0 -20
  270. package/esm2020/table-builder/pipes/format-filter-type.pipe.mjs +0 -18
  271. package/esm2020/table-builder/pipes/format-filter-value.pipe.mjs +0 -45
  272. package/esm2020/table-builder/pipes/key-display.mjs +0 -20
  273. package/esm2020/table-builder/services/export-to-csv.service.mjs +0 -88
  274. package/esm2020/table-builder/services/table-template-service.mjs +0 -44
  275. package/esm2020/table-builder/services/transform-creator.mjs +0 -75
  276. package/esm2020/table-builder/table-builder.module.mjs +0 -207
  277. package/esm2020/utilities/directives/auto-focus.directive.mjs +0 -26
  278. package/esm2020/utilities/directives/clickEmitterDirective.mjs +0 -21
  279. package/esm2020/utilities/directives/clickSubject.mjs +0 -27
  280. package/esm2020/utilities/directives/conditional-classes.directive.mjs +0 -35
  281. package/esm2020/utilities/directives/dialog-service.mjs +0 -25
  282. package/esm2020/utilities/directives/dialog.mjs +0 -137
  283. package/esm2020/utilities/directives/mat-toggle-group-directive.mjs +0 -59
  284. package/esm2020/utilities/directives/prevent-enter.directive.mjs +0 -19
  285. package/esm2020/utilities/directives/stop-propagation.directive.mjs +0 -25
  286. package/esm2020/utilities/directives/styler.mjs +0 -26
  287. package/esm2020/utilities/directives/trim-whitespace.directive.mjs +0 -29
  288. package/esm2020/utilities/module.mjs +0 -91
  289. package/esm2020/utilities/pipes/function.pipe.mjs +0 -21
  290. package/esm2020/utilities/pipes/phone.pipe.mjs +0 -20
  291. package/esm2020/utilities/pipes/space-case.pipes.mjs +0 -28
  292. package/fesm2015/one-paragon-angular-utilities.mjs +0 -4777
  293. package/fesm2015/one-paragon-angular-utilities.mjs.map +0 -1
  294. package/fesm2020/one-paragon-angular-utilities.mjs.map +0 -1
@@ -0,0 +1,22 @@
1
+ import { Pipe } from '@angular/core';
2
+ import * as i0 from "@angular/core";
3
+ class FunctionPipe {
4
+ transform(func, ...args) {
5
+ if (typeof func === 'string') {
6
+ const [instance, ...tail] = args;
7
+ const method = instance[func].bind(instance);
8
+ return method(...tail);
9
+ }
10
+ return func(...args);
11
+ }
12
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.1", ngImport: i0, type: FunctionPipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe }); }
13
+ static { this.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "16.0.1", ngImport: i0, type: FunctionPipe, name: "func" }); }
14
+ }
15
+ export { FunctionPipe };
16
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.1", ngImport: i0, type: FunctionPipe, decorators: [{
17
+ type: Pipe,
18
+ args: [{
19
+ name: 'func'
20
+ }]
21
+ }] });
22
+ //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZnVuY3Rpb24ucGlwZS5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uL3Byb2plY3RzL2FuZ3VsYXItdXRpbGl0aWVzL3NyYy91dGlsaXRpZXMvcGlwZXMvZnVuY3Rpb24ucGlwZS50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxPQUFPLEVBQUUsSUFBSSxFQUFpQixNQUFNLGVBQWUsQ0FBQzs7QUFFcEQsTUFHYSxZQUFZO0lBQ3ZCLFNBQVMsQ0FBQyxJQUF5QyxFQUFFLEdBQUcsSUFBVztRQUNqRSxJQUFHLE9BQU8sSUFBSSxLQUFLLFFBQVEsRUFBRTtZQUMzQixNQUFNLENBQUMsU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e {
4
+ transform(phoneNum) {
5
+ if (phoneNum) {
6
+ phoneNum = phoneNum.replace(/\D/g, '');
7
+ if (phoneNum[0] === '1') {
8
+ phoneNum = phoneNum.substring(1);
9
+ }
10
+ return '(' + phoneNum.slice(0, 3) + ') ' + phoneNum.slice(3, 6) + '-' + phoneNum.slice(6, 10) + ' ' + phoneNum.slice(10);
11
+ }
12
+ }
13
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.1", ngImport: i0, type: PhoneNumberPipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe }); }
14
+ static { this.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "16.0.1", ngImport: i0, type: PhoneNumberPipe, name: "phone" }); }
15
+ }
16
+ export { PhoneNumberPipe };
17
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.1", ngImport: i0, type: PhoneNumberPipe, decorators: [{
18
+ type: Pipe,
19
+ args: [{ name: 'phone' }]
20
+ }] });
21
+ //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicGhvbmUucGlwZS5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uL3Byb2plY3RzL2FuZ3VsYXItdXRpbGl0aWVzL3NyYy91dGlsaXRpZXMvcGlwZXMvcGhvbmUucGlwZS50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxPQUFPLEVBQUUsSUFBSSxFQUFpQixNQUFNLGVBQWUsQ0FBQzs7QUFFcEQsTUFDYSxlQUFlO0lBRTFCLFNBQVMsQ0FBQyxRQUFnQjtRQUN4QixJQUFJLFFBQVEsRUFBRTtZQUNaLFFBQVEsR0FBRyxRQUFRLENBQUMsT0FBTyxDQUFDLEtBQUssRUFBQyxFQUFFLENBQUMsQ0FBQztZQUN0QyxJQUFHLFFBQVEsQ0FBQyxDQUFDLENBQUMsS0FBSyx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lKDMsIDYpICsgJy0nICsgcGhvbmVOdW0uc2xpY2UoNiwgMTApICsgJyAnICsgcGhvbmVOdW0uc2xpY2UoMTApO1xuICAgIH1cbiAgfVxufVxuIl19
@@ -0,0 +1,29 @@
1
+ import { Pipe } from '@angular/core';
2
+ import * as i0 from "@angular/core";
3
+ class SpaceCasePipe {
4
+ transform(value) {
5
+ return spaceCase(value);
6
+ }
7
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.1", ngImport: i0, type: SpaceCasePipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe }); }
8
+ static { this.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "16.0.1", ngImport: i0, type: SpaceCasePipe, name: "spaceCase" }); }
9
+ }
10
+ export { SpaceCasePipe };
11
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.1", ngImport: i0, type: SpaceCasePipe, decorators: [{
12
+ type: Pipe,
13
+ args: [{ name: 'spaceCase' }]
14
+ }] });
15
+ /**
16
+ * Adds a space before uppercase letters that either
17
+ * 1. follows a lowercase letter or digit
18
+ * 2. or precedes a lowercase letter and follows an alpha-numeric character
19
+ *
20
+ * Uppercases the first digit
21
+ *
22
+ * Turns underscores into spaces
23
+ */
24
+ export function spaceCase(value) {
25
+ const phrase = value?.replace(/([a-z0-9])([A-Z])|([a-zA-Z0-9])([A-Z])(?=[a-z])|_/g, '$1$3 $2$4');
26
+ // uppercase the first character of every word
27
+ return phrase?.replace(/(^| )(\w)/g, x => x.toUpperCase());
28
+ }
29
+ //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoic3BhY2UtY2FzZS5waXBlcy5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uL3Byb2plY3RzL2FuZ3VsYXItdXRpbGl0aWVzL3NyYy91dGlsaXRpZXMvcGlwZXMvc3BhY2UtY2FzZS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