@cleavelandprice/ngx-lib 3.14.6 → 4.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (283) hide show
  1. package/README.md +5 -5
  2. package/active-directory/{public_api.d.ts → active-directory.api.d.ts} +2 -4
  3. package/active-directory/active-directory.module.d.ts +2 -2
  4. package/active-directory/index.d.ts +1 -1
  5. package/active-directory/{gui → material}/components/user-chooser/user-chooser.component.d.ts +11 -31
  6. package/active-directory/{gui → material}/components/user-form-field/user-form-field.component.d.ts +5 -8
  7. package/active-directory/{gui → material}/index.d.ts +2 -2
  8. package/active-directory/{gui/public_api.d.ts → material/mat-active-directory.api.d.ts} +1 -1
  9. package/active-directory/material/mat-active-directory.module.d.ts +25 -0
  10. package/active-directory/model/active-directory-service-options.d.ts +7 -0
  11. package/active-directory/services/active-directory.service.d.ts +7 -7
  12. package/authentication/{public_api.d.ts → authentication.api.d.ts} +1 -1
  13. package/authentication/authentication.base.module.d.ts +5 -1
  14. package/authentication/index.d.ts +1 -1
  15. package/authentication/{token/gui → material}/components/login/login.component.d.ts +6 -4
  16. package/authentication/{token/gui → material}/components/login-form/login-form.component.d.ts +9 -10
  17. package/authentication/material/index.d.ts +5 -0
  18. package/authentication/material/mat-authentication.api.d.ts +6 -0
  19. package/authentication/material/mat-authentication.module.d.ts +21 -0
  20. package/authentication/material/model/mat-authentication-service-options.d.ts +6 -0
  21. package/authentication/material/services/mat-authentication.service.d.ts +11 -0
  22. package/authentication/model/abstract-authentication-service.d.ts +4 -4
  23. package/authentication/model/authentication-service-options.d.ts +8 -0
  24. package/authentication/object/authentication-object.api.d.ts +2 -0
  25. package/authentication/object/authentication-object.module.d.ts +11 -0
  26. package/authentication/object/index.d.ts +1 -1
  27. package/authentication/object/services/authentication-object.service.d.ts +23 -0
  28. package/authentication/token/authentication-token.api.d.ts +4 -0
  29. package/authentication/token/authetiction-token.module.d.ts +11 -0
  30. package/authentication/token/index.d.ts +1 -1
  31. package/authentication/token/model/authentication-token-service-options.d.ts +6 -0
  32. package/authentication/token/services/authentication-token.service.d.ts +23 -0
  33. package/dialog/components/base/base.component.d.ts +3 -3
  34. package/dialog/components/choice/choice.component.d.ts +5 -3
  35. package/dialog/components/confirmation/confirmation.component.d.ts +5 -3
  36. package/dialog/components/input/input.component.d.ts +5 -3
  37. package/dialog/components/message/message.component.d.ts +5 -3
  38. package/dialog/dialog.module.d.ts +13 -13
  39. package/dialog/index.d.ts +1 -1
  40. package/esm2022/active-directory/active-directory.api.mjs +12 -0
  41. package/esm2022/active-directory/active-directory.module.mjs +20 -10
  42. package/esm2022/active-directory/cleavelandprice-ngx-lib-active-directory.mjs +2 -2
  43. package/esm2022/active-directory/material/cleavelandprice-ngx-lib-active-directory-material.mjs +5 -0
  44. package/esm2022/active-directory/material/components/user-chooser/user-chooser.component.mjs +406 -0
  45. package/esm2022/active-directory/material/components/user-form-field/user-form-field.component.mjs +136 -0
  46. package/esm2022/active-directory/material/mat-active-directory.api.mjs +9 -0
  47. package/esm2022/active-directory/material/mat-active-directory.module.mjs +109 -0
  48. package/esm2022/active-directory/material/model/selectable-group.mjs +2 -0
  49. package/esm2022/active-directory/material/model/selectable-user.mjs +2 -0
  50. package/esm2022/active-directory/material/model/user-chooser-data.mjs +33 -0
  51. package/esm2022/active-directory/material/model/user-chooser-filter-options.mjs +10 -0
  52. package/esm2022/active-directory/{gui → material}/model/user-chooser-mode.mjs +1 -1
  53. package/esm2022/active-directory/material/model/user-chooser-pre-processing-group.mjs +9 -0
  54. package/esm2022/active-directory/model/active-directory-service-options.mjs +3 -0
  55. package/esm2022/active-directory/services/active-directory.service.mjs +61 -41
  56. package/esm2022/authentication/authentication.api.mjs +6 -0
  57. package/esm2022/authentication/authentication.base.module.mjs +28 -7
  58. package/esm2022/authentication/cleavelandprice-ngx-lib-authentication.mjs +2 -2
  59. package/esm2022/authentication/material/cleavelandprice-ngx-lib-authentication-material.mjs +5 -0
  60. package/esm2022/authentication/material/components/login/login.component.mjs +49 -0
  61. package/esm2022/authentication/material/components/login-form/login-form.component.mjs +82 -0
  62. package/esm2022/authentication/material/mat-authentication.api.mjs +7 -0
  63. package/esm2022/authentication/material/mat-authentication.module.mjs +84 -0
  64. package/esm2022/authentication/material/model/login-form-data.mjs +2 -0
  65. package/esm2022/authentication/material/model/mat-authentication-service-options.mjs +3 -0
  66. package/esm2022/authentication/material/services/mat-authentication.service.mjs +67 -0
  67. package/esm2022/authentication/model/abstract-authentication-service.mjs +1 -1
  68. package/esm2022/authentication/model/authentication-service-options.mjs +3 -0
  69. package/esm2022/authentication/object/authentication-object.api.mjs +4 -0
  70. package/esm2022/authentication/object/authentication-object.module.mjs +40 -0
  71. package/esm2022/authentication/object/cleavelandprice-ngx-lib-authentication-object.mjs +2 -2
  72. package/esm2022/authentication/object/services/authentication-object.service.mjs +119 -0
  73. package/esm2022/authentication/token/authentication-token.api.mjs +5 -0
  74. package/esm2022/authentication/token/authetiction-token.module.mjs +40 -0
  75. package/esm2022/authentication/token/cleavelandprice-ngx-lib-authentication-token.mjs +2 -2
  76. package/esm2022/authentication/token/model/authentication-token-service-options.mjs +3 -0
  77. package/esm2022/authentication/token/services/authentication-token.service.mjs +128 -0
  78. package/esm2022/dialog/cleavelandprice-ngx-lib-dialog.mjs +2 -2
  79. package/esm2022/dialog/components/base/base.component.mjs +27 -16
  80. package/esm2022/dialog/components/choice/choice.component.mjs +11 -11
  81. package/esm2022/dialog/components/confirmation/confirmation.component.mjs +11 -11
  82. package/esm2022/dialog/components/input/input.component.mjs +11 -11
  83. package/esm2022/dialog/components/message/message.component.mjs +11 -11
  84. package/esm2022/dialog/dialog.api.mjs +20 -0
  85. package/esm2022/dialog/dialog.module.mjs +25 -20
  86. package/esm2022/lib/model/caching-config.mjs +2 -0
  87. package/esm2022/lib/model/credentials.mjs +2 -0
  88. package/esm2022/lib/model/logging-config.mjs +2 -0
  89. package/esm2022/lib/model/service-options.mjs +3 -0
  90. package/esm2022/lib/ngx-lib.module.mjs +20 -10
  91. package/esm2022/lib/services/app-path-config.service.mjs +31 -24
  92. package/esm2022/lib/services/service-base.mjs +26 -0
  93. package/esm2022/msgraph/cleavelandprice-ngx-lib-msgraph.mjs +2 -2
  94. package/esm2022/msgraph/msgraph.api.mjs +19 -0
  95. package/esm2022/msgraph/msgraph.module.mjs +6 -11
  96. package/esm2022/public_api.mjs +6 -2
  97. package/esm2022/quill/cleavelandprice-ngx-lib-quill.mjs +2 -2
  98. package/esm2022/quill/components/editor/editor.component.mjs +29 -39
  99. package/esm2022/quill/components/raw/raw.component.mjs +18 -11
  100. package/esm2022/quill/mention/cleavelandprice-ngx-lib-quill-mention.mjs +2 -2
  101. package/esm2022/quill/mention/components/editor/editor.component.mjs +20 -14
  102. package/esm2022/quill/mention/quill-mention.api.mjs +8 -0
  103. package/esm2022/quill/mention/quill-mention.module.mjs +12 -12
  104. package/esm2022/quill/quill.api.mjs +9 -0
  105. package/esm2022/quill/quill.module.mjs +20 -18
  106. package/esm2022/sharepoint/cleavelandprice-ngx-lib-sharepoint.mjs +2 -2
  107. package/esm2022/sharepoint/components/user-photo/user-photo.component.mjs +13 -9
  108. package/esm2022/sharepoint/model/sharepoint-service-options.mjs +3 -0
  109. package/esm2022/sharepoint/pipes/user-photo-url.pipe.mjs +8 -9
  110. package/esm2022/sharepoint/services/sharepoint.service.mjs +74 -65
  111. package/esm2022/sharepoint/sharepoint.api.mjs +17 -0
  112. package/esm2022/sharepoint/sharepoint.module.mjs +25 -15
  113. package/esm2022/table/cleavelandprice-ngx-lib-table.mjs +2 -2
  114. package/esm2022/table/components/table/table.component.mjs +76 -74
  115. package/esm2022/table/table.api.mjs +4 -0
  116. package/esm2022/table/table.module.mjs +16 -15
  117. package/esm2022/upload/cleavelandprice-ngx-lib-upload.mjs +2 -2
  118. package/esm2022/upload/components/upload/upload.component.mjs +16 -20
  119. package/esm2022/upload/components/upload-dialog/upload-dialog.component.mjs +49 -39
  120. package/esm2022/upload/model/upload-service-options.mjs +4 -0
  121. package/esm2022/upload/model/upload-status.mjs +2 -0
  122. package/esm2022/upload/services/upload.service.mjs +44 -29
  123. package/esm2022/upload/upload.api.mjs +9 -0
  124. package/esm2022/upload/upload.module.mjs +33 -20
  125. package/esm2022/url-utilities/cleavelandprice-ngx-lib-url-utilities.mjs +2 -2
  126. package/esm2022/url-utilities/pipes/safe-resource-url.pipe.mjs +8 -9
  127. package/esm2022/url-utilities/pipes/safe-url.pipe.mjs +8 -9
  128. package/esm2022/url-utilities/pipes/uri-scheme.pipe.mjs +9 -8
  129. package/esm2022/url-utilities/url-utilities.api.mjs +13 -0
  130. package/esm2022/url-utilities/url-utilities.module.mjs +11 -11
  131. package/fesm2022/cleavelandprice-ngx-lib-active-directory-material.mjs +683 -0
  132. package/fesm2022/cleavelandprice-ngx-lib-active-directory-material.mjs.map +1 -0
  133. package/fesm2022/cleavelandprice-ngx-lib-active-directory.mjs +79 -72
  134. package/fesm2022/cleavelandprice-ngx-lib-active-directory.mjs.map +1 -1
  135. package/fesm2022/cleavelandprice-ngx-lib-authentication-material.mjs +268 -0
  136. package/fesm2022/cleavelandprice-ngx-lib-authentication-material.mjs.map +1 -0
  137. package/fesm2022/cleavelandprice-ngx-lib-authentication-object.mjs +54 -49
  138. package/fesm2022/cleavelandprice-ngx-lib-authentication-object.mjs.map +1 -1
  139. package/fesm2022/cleavelandprice-ngx-lib-authentication-token.mjs +50 -51
  140. package/fesm2022/cleavelandprice-ngx-lib-authentication-token.mjs.map +1 -1
  141. package/fesm2022/cleavelandprice-ngx-lib-authentication.mjs +28 -18
  142. package/fesm2022/cleavelandprice-ngx-lib-authentication.mjs.map +1 -1
  143. package/fesm2022/cleavelandprice-ngx-lib-dialog.mjs +87 -66
  144. package/fesm2022/cleavelandprice-ngx-lib-dialog.mjs.map +1 -1
  145. package/fesm2022/cleavelandprice-ngx-lib-msgraph.mjs +5 -10
  146. package/fesm2022/cleavelandprice-ngx-lib-msgraph.mjs.map +1 -1
  147. package/fesm2022/cleavelandprice-ngx-lib-quill-mention.mjs +29 -26
  148. package/fesm2022/cleavelandprice-ngx-lib-quill-mention.mjs.map +1 -1
  149. package/fesm2022/cleavelandprice-ngx-lib-quill.mjs +61 -67
  150. package/fesm2022/cleavelandprice-ngx-lib-quill.mjs.map +1 -1
  151. package/fesm2022/cleavelandprice-ngx-lib-sharepoint.mjs +115 -118
  152. package/fesm2022/cleavelandprice-ngx-lib-sharepoint.mjs.map +1 -1
  153. package/fesm2022/cleavelandprice-ngx-lib-table.mjs +85 -90
  154. package/fesm2022/cleavelandprice-ngx-lib-table.mjs.map +1 -1
  155. package/fesm2022/cleavelandprice-ngx-lib-upload.mjs +134 -117
  156. package/fesm2022/cleavelandprice-ngx-lib-upload.mjs.map +1 -1
  157. package/fesm2022/cleavelandprice-ngx-lib-url-utilities.mjs +38 -33
  158. package/fesm2022/cleavelandprice-ngx-lib-url-utilities.mjs.map +1 -1
  159. package/fesm2022/cleavelandprice-ngx-lib.mjs +66 -45
  160. package/fesm2022/cleavelandprice-ngx-lib.mjs.map +1 -1
  161. package/lib/model/caching-config.d.ts +4 -0
  162. package/lib/model/credentials.d.ts +4 -0
  163. package/lib/model/logging-config.d.ts +6 -0
  164. package/lib/model/service-options.d.ts +6 -0
  165. package/lib/ngx-lib.module.d.ts +2 -2
  166. package/lib/services/app-path-config.service.d.ts +5 -4
  167. package/lib/services/service-base.d.ts +7 -0
  168. package/msgraph/index.d.ts +1 -1
  169. package/msgraph/msgraph.module.d.ts +0 -2
  170. package/package.json +27 -27
  171. package/public_api.d.ts +5 -1
  172. package/quill/components/editor/editor.component.d.ts +10 -10
  173. package/quill/components/raw/raw.component.d.ts +1 -1
  174. package/quill/index.d.ts +1 -1
  175. package/quill/mention/components/editor/editor.component.d.ts +3 -3
  176. package/quill/mention/index.d.ts +1 -1
  177. package/quill/mention/quill-mention.module.d.ts +9 -9
  178. package/quill/quill.module.d.ts +12 -14
  179. package/sharepoint/components/user-photo/user-photo.component.d.ts +2 -2
  180. package/sharepoint/index.d.ts +1 -1
  181. package/sharepoint/model/sharepoint-service-options.d.ts +19 -0
  182. package/sharepoint/pipes/user-photo-url.pipe.d.ts +2 -2
  183. package/sharepoint/services/sharepoint.service.d.ts +7 -10
  184. package/sharepoint/{public_api.d.ts → sharepoint.api.d.ts} +1 -1
  185. package/sharepoint/sharepoint.module.d.ts +6 -6
  186. package/table/components/table/table.component.d.ts +21 -22
  187. package/table/index.d.ts +1 -1
  188. package/table/table.module.d.ts +13 -13
  189. package/upload/components/upload/upload.component.d.ts +4 -8
  190. package/upload/components/upload-dialog/upload-dialog.component.d.ts +11 -9
  191. package/upload/index.d.ts +1 -1
  192. package/upload/model/upload-service-options.d.ts +16 -0
  193. package/upload/model/upload-status.d.ts +6 -0
  194. package/upload/services/upload.service.d.ts +9 -6
  195. package/upload/{public_api.d.ts → upload.api.d.ts} +2 -2
  196. package/upload/upload.module.d.ts +10 -10
  197. package/url-utilities/index.d.ts +1 -1
  198. package/url-utilities/pipes/safe-resource-url.pipe.d.ts +2 -2
  199. package/url-utilities/pipes/safe-url.pipe.d.ts +2 -2
  200. package/url-utilities/pipes/uri-scheme.pipe.d.ts +2 -3
  201. package/url-utilities/url-utilities.api.d.ts +8 -0
  202. package/url-utilities/url-utilities.module.d.ts +5 -5
  203. package/active-directory/gui/gui.module.d.ts +0 -25
  204. package/active-directory/model/caching-config.d.ts +0 -4
  205. package/active-directory/model/logging-config.d.ts +0 -6
  206. package/active-directory/model/service-config.d.ts +0 -8
  207. package/authentication/model/service-config.d.ts +0 -8
  208. package/authentication/object/model/service-config.d.ts +0 -4
  209. package/authentication/object/object.module.d.ts +0 -11
  210. package/authentication/object/public_api.d.ts +0 -3
  211. package/authentication/object/services/authentication.service.d.ts +0 -23
  212. package/authentication/token/gui/index.d.ts +0 -5
  213. package/authentication/token/gui/model/service-config.d.ts +0 -5
  214. package/authentication/token/gui/public_api.d.ts +0 -6
  215. package/authentication/token/gui/services/authentication.service.d.ts +0 -12
  216. package/authentication/token/gui/token-gui.module.d.ts +0 -21
  217. package/authentication/token/model/service-config.d.ts +0 -5
  218. package/authentication/token/public_api.d.ts +0 -4
  219. package/authentication/token/services/authentication.service.d.ts +0 -23
  220. package/authentication/token/token.module.d.ts +0 -11
  221. package/esm2022/active-directory/gui/cleavelandprice-ngx-lib-active-directory-gui.mjs +0 -5
  222. package/esm2022/active-directory/gui/components/user-chooser/user-chooser.component.mjs +0 -393
  223. package/esm2022/active-directory/gui/components/user-form-field/user-form-field.component.mjs +0 -132
  224. package/esm2022/active-directory/gui/gui.module.mjs +0 -96
  225. package/esm2022/active-directory/gui/model/selectable-group.mjs +0 -2
  226. package/esm2022/active-directory/gui/model/selectable-user.mjs +0 -2
  227. package/esm2022/active-directory/gui/model/user-chooser-data.mjs +0 -33
  228. package/esm2022/active-directory/gui/model/user-chooser-filter-options.mjs +0 -10
  229. package/esm2022/active-directory/gui/model/user-chooser-pre-processing-group.mjs +0 -9
  230. package/esm2022/active-directory/gui/public_api.mjs +0 -9
  231. package/esm2022/active-directory/model/caching-config.mjs +0 -7
  232. package/esm2022/active-directory/model/logging-config.mjs +0 -9
  233. package/esm2022/active-directory/model/service-config.mjs +0 -12
  234. package/esm2022/active-directory/public_api.mjs +0 -12
  235. package/esm2022/authentication/model/service-config.mjs +0 -12
  236. package/esm2022/authentication/object/model/service-config.mjs +0 -9
  237. package/esm2022/authentication/object/object.module.mjs +0 -39
  238. package/esm2022/authentication/object/public_api.mjs +0 -4
  239. package/esm2022/authentication/object/services/authentication.service.mjs +0 -110
  240. package/esm2022/authentication/public_api.mjs +0 -6
  241. package/esm2022/authentication/token/gui/cleavelandprice-ngx-lib-authentication-token-gui.mjs +0 -5
  242. package/esm2022/authentication/token/gui/components/login/login.component.mjs +0 -43
  243. package/esm2022/authentication/token/gui/components/login-form/login-form.component.mjs +0 -72
  244. package/esm2022/authentication/token/gui/model/login-form-data.mjs +0 -2
  245. package/esm2022/authentication/token/gui/model/service-config.mjs +0 -10
  246. package/esm2022/authentication/token/gui/public_api.mjs +0 -7
  247. package/esm2022/authentication/token/gui/services/authentication.service.mjs +0 -78
  248. package/esm2022/authentication/token/gui/token-gui.module.mjs +0 -81
  249. package/esm2022/authentication/token/model/service-config.mjs +0 -10
  250. package/esm2022/authentication/token/public_api.mjs +0 -5
  251. package/esm2022/authentication/token/services/authentication.service.mjs +0 -124
  252. package/esm2022/authentication/token/token.module.mjs +0 -39
  253. package/esm2022/dialog/public_api.mjs +0 -10
  254. package/esm2022/lib/model/service-config.mjs +0 -21
  255. package/esm2022/msgraph/public_api.mjs +0 -19
  256. package/esm2022/quill/mention/public_api.mjs +0 -8
  257. package/esm2022/quill/public_api.mjs +0 -9
  258. package/esm2022/sharepoint/model/service-config.mjs +0 -27
  259. package/esm2022/sharepoint/public_api.mjs +0 -17
  260. package/esm2022/table/public_api.mjs +0 -4
  261. package/esm2022/upload/model/service-config.mjs +0 -16
  262. package/esm2022/upload/public_api.mjs +0 -9
  263. package/esm2022/url-utilities/public_api.mjs +0 -5
  264. package/fesm2022/cleavelandprice-ngx-lib-active-directory-gui.mjs +0 -660
  265. package/fesm2022/cleavelandprice-ngx-lib-active-directory-gui.mjs.map +0 -1
  266. package/fesm2022/cleavelandprice-ngx-lib-authentication-token-gui.mjs +0 -271
  267. package/fesm2022/cleavelandprice-ngx-lib-authentication-token-gui.mjs.map +0 -1
  268. package/lib/model/service-config.d.ts +0 -6
  269. package/sharepoint/model/service-config.d.ts +0 -23
  270. package/upload/model/service-config.d.ts +0 -15
  271. package/url-utilities/public_api.d.ts +0 -4
  272. /package/active-directory/{gui → material}/model/selectable-group.d.ts +0 -0
  273. /package/active-directory/{gui → material}/model/selectable-user.d.ts +0 -0
  274. /package/active-directory/{gui → material}/model/user-chooser-data.d.ts +0 -0
  275. /package/active-directory/{gui → material}/model/user-chooser-filter-options.d.ts +0 -0
  276. /package/active-directory/{gui → material}/model/user-chooser-mode.d.ts +0 -0
  277. /package/active-directory/{gui → material}/model/user-chooser-pre-processing-group.d.ts +0 -0
  278. /package/authentication/{token/gui → material}/model/login-form-data.d.ts +0 -0
  279. /package/dialog/{public_api.d.ts → dialog.api.d.ts} +0 -0
  280. /package/msgraph/{public_api.d.ts → msgraph.api.d.ts} +0 -0
  281. /package/quill/mention/{public_api.d.ts → quill-mention.api.d.ts} +0 -0
  282. /package/quill/{public_api.d.ts → quill.api.d.ts} +0 -0
  283. /package/table/{public_api.d.ts → table.api.d.ts} +0 -0
@@ -4,36 +4,34 @@ import { DomSanitizer } from '@angular/platform-browser';
4
4
  import { CommonModule } from '@angular/common';
5
5
 
6
6
  class SafeResourceUrlPipe {
7
- constructor() {
8
- this.domSanitizer = inject(DomSanitizer);
9
- }
7
+ #domSanitizer = inject(DomSanitizer);
10
8
  transform(value) {
11
- return this.domSanitizer.bypassSecurityTrustResourceUrl(value);
9
+ return this.#domSanitizer.bypassSecurityTrustResourceUrl(value);
12
10
  }
13
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.0", ngImport: i0, type: SafeResourceUrlPipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe }); }
14
- static { this.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "17.3.0", ngImport: i0, type: SafeResourceUrlPipe, name: "safeResourceUrl" }); }
11
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.3", ngImport: i0, type: SafeResourceUrlPipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe }); }
12
+ static { this.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "17.3.3", ngImport: i0, type: SafeResourceUrlPipe, isStandalone: true, name: "safeResourceUrl" }); }
15
13
  }
16
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.0", ngImport: i0, type: SafeResourceUrlPipe, decorators: [{
14
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.3", ngImport: i0, type: SafeResourceUrlPipe, decorators: [{
17
15
  type: Pipe,
18
16
  args: [{
19
- name: 'safeResourceUrl'
17
+ name: 'safeResourceUrl',
18
+ standalone: true
20
19
  }]
21
20
  }] });
22
21
 
23
22
  class SafeUrlPipe {
24
- constructor() {
25
- this.domSanitizer = inject(DomSanitizer);
26
- }
23
+ #domSanitizer = inject(DomSanitizer);
27
24
  transform(value) {
28
- return this.domSanitizer.bypassSecurityTrustUrl(value);
25
+ return this.#domSanitizer.bypassSecurityTrustUrl(value);
29
26
  }
30
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.0", ngImport: i0, type: SafeUrlPipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe }); }
31
- static { this.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "17.3.0", ngImport: i0, type: SafeUrlPipe, name: "safeUrl" }); }
27
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.3", ngImport: i0, type: SafeUrlPipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe }); }
28
+ static { this.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "17.3.3", ngImport: i0, type: SafeUrlPipe, isStandalone: true, name: "safeUrl" }); }
32
29
  }
33
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.0", ngImport: i0, type: SafeUrlPipe, decorators: [{
30
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.3", ngImport: i0, type: SafeUrlPipe, decorators: [{
34
31
  type: Pipe,
35
32
  args: [{
36
- name: 'safeUrl'
33
+ name: 'safeUrl',
34
+ standalone: true
37
35
  }]
38
36
  }] });
39
37
 
@@ -48,11 +46,11 @@ class UriSchemePipe {
48
46
  if (!extension) {
49
47
  return value;
50
48
  }
51
- const command = this.command(extension);
52
- const app = this.app(extension);
49
+ const command = this.#command(extension);
50
+ const app = this.#app(extension);
53
51
  return `ms-${app}:${command}|u|${value}`;
54
52
  }
55
- app(extension) {
53
+ #app(extension) {
56
54
  switch (extension.toLowerCase()) {
57
55
  // documents
58
56
  case 'doc':
@@ -108,7 +106,7 @@ class UriSchemePipe {
108
106
  return '';
109
107
  }
110
108
  }
111
- command(extension) {
109
+ #command(extension) {
112
110
  switch (extension.toLowerCase()) {
113
111
  case 'dot':
114
112
  case 'dotx':
@@ -129,37 +127,38 @@ class UriSchemePipe {
129
127
  return `of${openMode}`; // default: open file as view/edit
130
128
  }
131
129
  }
132
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.0", ngImport: i0, type: UriSchemePipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe }); }
133
- static { this.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "17.3.0", ngImport: i0, type: UriSchemePipe, name: "uriScheme", pure: false }); }
130
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.3", ngImport: i0, type: UriSchemePipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe }); }
131
+ static { this.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "17.3.3", ngImport: i0, type: UriSchemePipe, isStandalone: true, name: "uriScheme", pure: false }); }
134
132
  }
135
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.0", ngImport: i0, type: UriSchemePipe, decorators: [{
133
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.3", ngImport: i0, type: UriSchemePipe, decorators: [{
136
134
  type: Pipe,
137
135
  args: [{
138
136
  name: 'uriScheme',
137
+ standalone: true,
139
138
  pure: false
140
139
  }]
141
140
  }] });
142
141
 
143
142
  class UrlUtilitiesModule {
144
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.0", ngImport: i0, type: UrlUtilitiesModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
145
- static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "17.3.0", ngImport: i0, type: UrlUtilitiesModule, declarations: [SafeResourceUrlPipe,
143
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.3", ngImport: i0, type: UrlUtilitiesModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
144
+ static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "17.3.3", ngImport: i0, type: UrlUtilitiesModule, imports: [CommonModule,
145
+ SafeResourceUrlPipe,
146
146
  SafeUrlPipe,
147
- UriSchemePipe], imports: [CommonModule], exports: [SafeResourceUrlPipe,
147
+ UriSchemePipe], exports: [SafeResourceUrlPipe,
148
148
  SafeUrlPipe,
149
149
  UriSchemePipe] }); }
150
- static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "17.3.0", ngImport: i0, type: UrlUtilitiesModule, imports: [CommonModule] }); }
150
+ static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "17.3.3", ngImport: i0, type: UrlUtilitiesModule, imports: [CommonModule] }); }
151
151
  }
152
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.0", ngImport: i0, type: UrlUtilitiesModule, decorators: [{
152
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.3", ngImport: i0, type: UrlUtilitiesModule, decorators: [{
153
153
  type: NgModule,
154
154
  args: [{
155
- declarations: [
155
+ declarations: [],
156
+ imports: [
157
+ CommonModule,
156
158
  SafeResourceUrlPipe,
157
159
  SafeUrlPipe,
158
160
  UriSchemePipe
159
161
  ],
160
- imports: [
161
- CommonModule
162
- ],
163
162
  exports: [
164
163
  SafeResourceUrlPipe,
165
164
  SafeUrlPipe,
@@ -168,9 +167,15 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.0", ngImpor
168
167
  }]
169
168
  }] });
170
169
 
170
+ const CP_URL_PIPES = [
171
+ SafeResourceUrlPipe,
172
+ SafeUrlPipe,
173
+ UriSchemePipe
174
+ ];
175
+
171
176
  /**
172
177
  * Generated bundle index. Do not edit.
173
178
  */
174
179
 
175
- export { SafeResourceUrlPipe, SafeUrlPipe, UriSchemePipe, UrlUtilitiesModule };
180
+ export { CP_URL_PIPES, SafeResourceUrlPipe, SafeUrlPipe, UriSchemePipe, UrlUtilitiesModule };
176
181
  //# sourceMappingURL=cleavelandprice-ngx-lib-url-utilities.mjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"cleavelandprice-ngx-lib-url-utilities.mjs","sources":["../../../../projects/cleavelandprice/ngx-lib/url-utilities/src/pipes/safe-resource-url.pipe.ts","../../../../projects/cleavelandprice/ngx-lib/url-utilities/src/pipes/safe-url.pipe.ts","../../../../projects/cleavelandprice/ngx-lib/url-utilities/src/pipes/uri-scheme.pipe.ts","../../../../projects/cleavelandprice/ngx-lib/url-utilities/src/url-utilities.module.ts","../../../../projects/cleavelandprice/ngx-lib/url-utilities/src/cleavelandprice-ngx-lib-url-utilities.ts"],"sourcesContent":["import { inject, Pipe, PipeTransform } from '@angular/core';\r\nimport { DomSanitizer, SafeUrl } from '@angular/platform-browser';\r\n\r\n@Pipe({\r\n name: 'safeResourceUrl'\r\n})\r\nexport class SafeResourceUrlPipe implements PipeTransform {\r\n private domSanitizer = inject(DomSanitizer);\r\n\r\n transform(value: string): SafeUrl {\r\n return this.domSanitizer.bypassSecurityTrustResourceUrl(value);\r\n }\r\n}\r\n","import { inject, Pipe, PipeTransform } from '@angular/core';\r\nimport { DomSanitizer, SafeUrl } from '@angular/platform-browser';\r\n\r\n@Pipe({\r\n name: 'safeUrl'\r\n})\r\nexport class SafeUrlPipe implements PipeTransform {\r\n private domSanitizer = inject(DomSanitizer);\r\n\r\n transform(value: string): SafeUrl {\r\n return this.domSanitizer.bypassSecurityTrustUrl(value);\r\n }\r\n}","import { Pipe, PipeTransform } from '@angular/core';\r\n\r\n@Pipe({\r\n name: 'uriScheme',\r\n pure: false\r\n})\r\nexport class UriSchemePipe implements PipeTransform {\r\n // https://docs.microsoft.com/en-us/office/client-developer/office-uri-schemes\r\n\r\n transform(value: string, ignoreLocalStorage = false): string {\r\n if (!localStorage.getItem('useUriScheme') && !ignoreLocalStorage) { return value; }\r\n\r\n const urlSplit = value.split('.');\r\n const extension = urlSplit[urlSplit.length - 1];\r\n\r\n if (!extension) { return value; }\r\n\r\n const command = this.command(extension);\r\n const app = this.app(extension);\r\n\r\n return `ms-${app}:${command}|u|${value}`;\r\n }\r\n\r\n private app(extension: string): string {\r\n switch (extension.toLowerCase()) {\r\n // documents\r\n case 'doc': case 'docx':\r\n case 'docm': case 'docb':\r\n case 'dot': case 'dotx': case 'dotm': // templates\r\n return 'word';\r\n case 'xls': case 'xlsx':\r\n case 'xlm': case 'xlsm': case 'xlsb': case 'xlw':\r\n case 'xlt': case 'xltx': case 'xltm': // templates\r\n return 'excel';\r\n case 'ppt': case 'pptx':\r\n case 'pps': case 'ppsx': case 'pptm': case 'ppsm':\r\n case 'sldx': case 'sldm':\r\n case 'pot': case 'potx': case 'potm': // templates\r\n return 'powerpoint';\r\n case 'vsd': case 'vsdx':\r\n case 'vst': case 'vstx': // templates\r\n return 'visio';\r\n case 'mdb': case 'accdb': case 'accde': case 'accdr':\r\n case 'accdt': // templates\r\n return 'access';\r\n case 'mpp': case 'mppx':\r\n case 'mpt': // templates\r\n return 'project';\r\n case 'pub':\r\n return 'publisher';\r\n case 'xsn':\r\n return 'infopath';\r\n default:\r\n return '';\r\n }\r\n }\r\n\r\n private command(extension: string): string {\r\n switch (extension.toLowerCase()) {\r\n case 'dot': case 'dotx': case 'dotm':\r\n case 'xlt': case 'xltx': case 'xltm':\r\n case 'pot': case 'potx': case 'potm':\r\n case 'vst': case 'vstx':\r\n case 'accdt':\r\n case 'mpt':\r\n return 'nft'; // new from template\r\n default:\r\n const openMode = 'v'; // for view, or 'e' or edit\r\n return `of${openMode}`; // default: open file as view/edit\r\n }\r\n }\r\n}\r\n","import { NgModule } from '@angular/core';\r\nimport { CommonModule } from '@angular/common';\r\n\r\nimport { SafeResourceUrlPipe } from './pipes/safe-resource-url.pipe';\r\nimport { SafeUrlPipe } from './pipes/safe-url.pipe';\r\nimport { UriSchemePipe } from './pipes/uri-scheme.pipe';\r\n\r\n@NgModule({\r\n declarations: [\r\n SafeResourceUrlPipe,\r\n SafeUrlPipe,\r\n UriSchemePipe\r\n ],\r\n imports: [\r\n CommonModule\r\n ],\r\n exports: [\r\n SafeResourceUrlPipe,\r\n SafeUrlPipe,\r\n UriSchemePipe\r\n ]\r\n})\r\nexport class UrlUtilitiesModule { }\r\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public_api';\n"],"names":[],"mappings":";;;;;MAMa,mBAAmB,CAAA;AAHhC,IAAA,WAAA,GAAA;AAIU,QAAA,IAAA,CAAA,YAAY,GAAG,MAAM,CAAC,YAAY,CAAC,CAAC;AAK7C,KAAA;AAHC,IAAA,SAAS,CAAC,KAAa,EAAA;QACrB,OAAO,IAAI,CAAC,YAAY,CAAC,8BAA8B,CAAC,KAAK,CAAC,CAAC;KAChE;8GALU,mBAAmB,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,IAAA,EAAA,CAAA,CAAA,EAAA;4GAAnB,mBAAmB,EAAA,IAAA,EAAA,iBAAA,EAAA,CAAA,CAAA,EAAA;;2FAAnB,mBAAmB,EAAA,UAAA,EAAA,CAAA;kBAH/B,IAAI;AAAC,YAAA,IAAA,EAAA,CAAA;AACJ,oBAAA,IAAI,EAAE,iBAAiB;AACxB,iBAAA,CAAA;;;MCCY,WAAW,CAAA;AAHxB,IAAA,WAAA,GAAA;AAIU,QAAA,IAAA,CAAA,YAAY,GAAG,MAAM,CAAC,YAAY,CAAC,CAAC;AAK7C,KAAA;AAHC,IAAA,SAAS,CAAC,KAAa,EAAA;QACrB,OAAO,IAAI,CAAC,YAAY,CAAC,sBAAsB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,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,QAAA,EAAA,QAAA,EAAA,EAAA,EAAA,IAAA,EAAA,kBAAkB,iBAb3B,mBAAmB;YACnB,WAAW;YACX,aAAa,CAAA,EAAA,OAAA,EAAA,CAGb,YAAY,CAAA,EAAA,OAAA,EAAA,CAGZ,mBAAmB;YACnB,WAAW;YACX,aAAa,CAAA,EAAA,CAAA,CAAA,EAAA;AAGJ,IAAA,SAAA,IAAA,CAAA,IAAA,GAAA,EAAA,CAAA,mBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,QAAA,EAAA,QAAA,EAAA,EAAA,EAAA,IAAA,EAAA,kBAAkB,YAR3B,YAAY,CAAA,EAAA,CAAA,CAAA,EAAA;;2FAQH,kBAAkB,EAAA,UAAA,EAAA,CAAA;kBAf9B,QAAQ;AAAC,YAAA,IAAA,EAAA,CAAA;AACR,oBAAA,YAAY,EAAE;wBACZ,mBAAmB;wBACnB,WAAW;wBACX,aAAa;AACd,qBAAA;AACD,oBAAA,OAAO,EAAE;wBACP,YAAY;AACb,qBAAA;AACD,oBAAA,OAAO,EAAE;wBACP,mBAAmB;wBACnB,WAAW;wBACX,aAAa;AACd,qBAAA;AACF,iBAAA,CAAA;;;ACrBD;;AAEG;;;;"}
1
+ {"version":3,"file":"cleavelandprice-ngx-lib-url-utilities.mjs","sources":["../../../../projects/cleavelandprice/ngx-lib/url-utilities/src/pipes/safe-resource-url.pipe.ts","../../../../projects/cleavelandprice/ngx-lib/url-utilities/src/pipes/safe-url.pipe.ts","../../../../projects/cleavelandprice/ngx-lib/url-utilities/src/pipes/uri-scheme.pipe.ts","../../../../projects/cleavelandprice/ngx-lib/url-utilities/src/url-utilities.module.ts","../../../../projects/cleavelandprice/ngx-lib/url-utilities/src/url-utilities.api.ts","../../../../projects/cleavelandprice/ngx-lib/url-utilities/src/cleavelandprice-ngx-lib-url-utilities.ts"],"sourcesContent":["import { inject, Pipe, PipeTransform } from '@angular/core';\nimport { DomSanitizer, SafeUrl } from '@angular/platform-browser';\n\n@Pipe({\n name: 'safeResourceUrl',\n standalone: true\n})\nexport class SafeResourceUrlPipe implements PipeTransform {\n #domSanitizer = inject(DomSanitizer);\n\n transform(value: string): SafeUrl {\n return this.#domSanitizer.bypassSecurityTrustResourceUrl(value);\n }\n}\n","import { inject, Pipe, PipeTransform } from '@angular/core';\nimport { DomSanitizer, SafeUrl } from '@angular/platform-browser';\n\n@Pipe({\n name: 'safeUrl',\n standalone: true\n})\nexport class SafeUrlPipe implements PipeTransform {\n #domSanitizer = inject(DomSanitizer);\n\n transform(value: string): SafeUrl {\n return this.#domSanitizer.bypassSecurityTrustUrl(value);\n }\n}","import { Pipe, PipeTransform } from '@angular/core';\n\n@Pipe({\n name: 'uriScheme',\n standalone: true,\n pure: false\n})\nexport class UriSchemePipe implements PipeTransform {\n // https://docs.microsoft.com/en-us/office/client-developer/office-uri-schemes\n\n transform(value: string, ignoreLocalStorage = false): string {\n if (!localStorage.getItem('useUriScheme') && !ignoreLocalStorage) { return value; }\n\n const urlSplit = value.split('.');\n const extension = urlSplit[urlSplit.length - 1];\n\n if (!extension) { return value; }\n\n const command = this.#command(extension);\n const app = this.#app(extension);\n\n return `ms-${app}:${command}|u|${value}`;\n }\n\n #app(extension: string): string {\n switch (extension.toLowerCase()) {\n // documents\n case 'doc': case 'docx':\n case 'docm': case 'docb':\n case 'dot': case 'dotx': case 'dotm': // templates\n return 'word';\n case 'xls': case 'xlsx':\n case 'xlm': case 'xlsm': case 'xlsb': case 'xlw':\n case 'xlt': case 'xltx': case 'xltm': // templates\n return 'excel';\n case 'ppt': case 'pptx':\n case 'pps': case 'ppsx': case 'pptm': case 'ppsm':\n case 'sldx': case 'sldm':\n case 'pot': case 'potx': case 'potm': // templates\n return 'powerpoint';\n case 'vsd': case 'vsdx':\n case 'vst': case 'vstx': // templates\n return 'visio';\n case 'mdb': case 'accdb': case 'accde': case 'accdr':\n case 'accdt': // templates\n return 'access';\n case 'mpp': case 'mppx':\n case 'mpt': // templates\n return 'project';\n case 'pub':\n return 'publisher';\n case 'xsn':\n return 'infopath';\n default:\n return '';\n }\n }\n\n #command(extension: string): string {\n switch (extension.toLowerCase()) {\n case 'dot': case 'dotx': case 'dotm':\n case 'xlt': case 'xltx': case 'xltm':\n case 'pot': case 'potx': case 'potm':\n case 'vst': case 'vstx':\n case 'accdt':\n case 'mpt':\n return 'nft'; // new from template\n default:\n const openMode = 'v'; // for view, or 'e' or edit\n return `of${openMode}`; // default: open file as view/edit\n }\n }\n}\n","import { CommonModule } from '@angular/common';\nimport { NgModule } from '@angular/core';\n\nimport { SafeResourceUrlPipe } from './pipes/safe-resource-url.pipe';\nimport { SafeUrlPipe } from './pipes/safe-url.pipe';\nimport { UriSchemePipe } from './pipes/uri-scheme.pipe';\n\n@NgModule({\n declarations: [\n ],\n imports: [\n CommonModule,\n SafeResourceUrlPipe,\n SafeUrlPipe,\n UriSchemePipe\n ],\n exports: [\n SafeResourceUrlPipe,\n SafeUrlPipe,\n UriSchemePipe\n ]\n})\nexport class UrlUtilitiesModule { }\n","import { SafeResourceUrlPipe } from './pipes/safe-resource-url.pipe';\r\nimport { SafeUrlPipe } from './pipes/safe-url.pipe';\r\nimport { UriSchemePipe } from './pipes/uri-scheme.pipe';\r\n\r\nexport * from './pipes/safe-resource-url.pipe';\r\nexport * from './pipes/safe-url.pipe';\r\nexport * from './pipes/uri-scheme.pipe';\r\n\r\nexport * from './url-utilities.module';\r\n\r\nexport const CP_URL_PIPES = [\r\n SafeResourceUrlPipe,\r\n SafeUrlPipe,\r\n UriSchemePipe\r\n ] as const;","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './url-utilities.api';\n"],"names":[],"mappings":";;;;;MAOa,mBAAmB,CAAA;AAC9B,IAAA,aAAa,GAAG,MAAM,CAAC,YAAY,CAAC,CAAC;AAErC,IAAA,SAAS,CAAC,KAAa,EAAA;QACrB,OAAO,IAAI,CAAC,aAAa,CAAC,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oBAAA,OAAO,EAAE;wBACP,YAAY;wBACZ,mBAAmB;wBACnB,WAAW;wBACX,aAAa;AACd,qBAAA;AACD,oBAAA,OAAO,EAAE;wBACP,mBAAmB;wBACnB,WAAW;wBACX,aAAa;AACd,qBAAA;AACF,iBAAA,CAAA;;;ACXY,MAAA,YAAY,GAAG;IACxB,mBAAmB;IACnB,WAAW;IACX,aAAa;;;ACbjB;;AAEG;;;;"}
@@ -1,76 +1,97 @@
1
- import { HttpClient } from '@angular/common/http';
2
1
  import * as i0 from '@angular/core';
3
- import { inject, Injectable, NgModule, Optional, SkipSelf } from '@angular/core';
2
+ import { InjectionToken, Optional, Inject, inject, Injectable, NgModule, SkipSelf } from '@angular/core';
3
+ import { HttpClient } from '@angular/common/http';
4
+ import { __decorate, __param } from 'tslib';
5
+
6
+ const NgxLibServiceOptionsToken = new InjectionToken('');
4
7
 
5
- class ServiceConfig {
8
+ let NgxLibServiceBase = class NgxLibServiceBase {
9
+ #useSsl;
10
+ #apiUrl;
6
11
  get apiUrl() {
7
- return this.customApiUrl ? this.customApiUrl :
8
- this.useSsl ?
12
+ return this.#apiUrl ? this.#apiUrl :
13
+ this.#useSsl ?
9
14
  'https://utilityapi.cleavelandprice.com' :
10
15
  'http://utilityapi';
11
16
  }
12
- /* Since TypeScript's implementation of overloads sucks, I'm doing something weird here.
13
- useSsl_or_customApiUrl will usually be a boolean value that determines whether or not SSL is used with the normal utilityapi URL options.
14
- But if you want to completely disregard the utilityapi URL and use your own, you would pass the URL via this parameter. */
15
- constructor(useSsl_or_customApiUrl = false) {
16
- this.useSsl = false;
17
- if (typeof useSsl_or_customApiUrl === 'boolean') {
18
- this.useSsl = useSsl_or_customApiUrl;
19
- }
20
- else if (typeof useSsl_or_customApiUrl === 'string') {
21
- this.customApiUrl = useSsl_or_customApiUrl;
22
- }
17
+ set apiUrl(value) {
18
+ this.#apiUrl = value;
23
19
  }
24
- }
20
+ constructor(options) {
21
+ this.#useSsl = options?.useSsl === undefined ? true : options.useSsl;
22
+ this.#apiUrl = options?.apiUrl;
23
+ }
24
+ };
25
+ NgxLibServiceBase = __decorate([
26
+ __param(0, Optional()),
27
+ __param(0, Inject(NgxLibServiceOptionsToken))
28
+ ], NgxLibServiceBase);
25
29
 
26
- class AppPathConfigService {
27
- constructor() {
28
- //#region Services
29
- this.config = inject(ServiceConfig, { optional: true }) ?? new ServiceConfig();
30
- this.http = inject(HttpClient);
31
- //#endregion
32
- this.#url = `${this.config.apiUrl}/apppathconfigs`;
30
+ //import { ServiceConfig } from '../model/service-config';
31
+ class AppPathConfigService extends NgxLibServiceBase {
32
+ #services = {
33
+ //config: inject(ServiceConfig, { optional: true }) ?? new ServiceConfig(),
34
+ http: inject(HttpClient)
35
+ };
36
+ #url; // = `${this.#config.apiUrl}/apppathconfigs`;
37
+ constructor(options) {
38
+ super(options);
39
+ this.#url = `${this.apiUrl}/apppathconfigs`;
33
40
  }
34
- //#endregion
35
- #url;
36
41
  getAll() {
37
- return this.http.get(this.#url);
42
+ return this.#services.http.get(this.#url);
38
43
  }
39
44
  getById(id) {
40
- return this.http.get(`${this.#url}/${id}`);
45
+ return this.#services.http.get(`${this.#url}/${id}`);
41
46
  }
42
47
  getByAppId(id) {
43
- return this.http.get(`${this.#url}/appid/${id}`);
48
+ return this.#services.http.get(`${this.#url}/appid/${id}`);
44
49
  }
45
50
  getByApp(name) {
46
- return this.http.get(`${this.#url}/app/${name}`);
51
+ return this.#services.http.get(`${this.#url}/app/${name}`);
47
52
  }
48
53
  getByAppTypeId(id) {
49
- return this.http.get(`${this.#url}/apptypeid/${id}`);
54
+ return this.#services.http.get(`${this.#url}/apptypeid/${id}`);
50
55
  }
51
56
  getByAppType(name) {
52
- return this.http.get(`${this.#url}/apptype/${name}`);
57
+ return this.#services.http.get(`${this.#url}/apptype/${name}`);
53
58
  }
54
59
  getByAppFunction(name) {
55
- return this.http.get(`${this.#url}/function/${name}`);
60
+ return this.#services.http.get(`${this.#url}/function/${name}`);
56
61
  }
57
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.0", ngImport: i0, type: AppPathConfigService, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
58
- static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.3.0", ngImport: i0, type: AppPathConfigService, providedIn: 'root' }); }
62
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.3", ngImport: i0, type: AppPathConfigService, deps: [{ token: NgxLibServiceOptionsToken, optional: true }], target: i0.ɵɵFactoryTarget.Injectable }); }
63
+ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.3.3", ngImport: i0, type: AppPathConfigService, providedIn: 'root' }); }
59
64
  }
60
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.0", ngImport: i0, type: AppPathConfigService, decorators: [{
65
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.3", ngImport: i0, type: AppPathConfigService, decorators: [{
61
66
  type: Injectable,
62
67
  args: [{
63
68
  providedIn: 'root'
64
69
  }]
65
- }] });
70
+ }], ctorParameters: () => [{ type: undefined, decorators: [{
71
+ type: Optional
72
+ }, {
73
+ type: Inject,
74
+ args: [NgxLibServiceOptionsToken]
75
+ }] }] });
66
76
 
67
77
  class NgxLibModule {
68
- static forRoot(config) {
78
+ /*static forRoot(config: ServiceConfig): ModuleWithProviders<NgxLibModule> {
79
+ return {
80
+ ngModule: NgxLibModule,
81
+ providers: [
82
+ AppPathConfigService,
83
+ { provide: ServiceConfig, useValue: config }
84
+ ]
85
+ };
86
+ }*/
87
+ static forRoot(options) {
69
88
  return {
70
89
  ngModule: NgxLibModule,
71
90
  providers: [
72
- AppPathConfigService,
73
- { provide: ServiceConfig, useValue: config }
91
+ {
92
+ provide: NgxLibServiceOptionsToken,
93
+ useValue: options
94
+ }
74
95
  ]
75
96
  };
76
97
  }
@@ -79,11 +100,11 @@ class NgxLibModule {
79
100
  throw new Error('NgxLibModule is already loaded. Import it in the AppModule only');
80
101
  }
81
102
  }
82
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.0", ngImport: i0, type: NgxLibModule, deps: [{ token: NgxLibModule, optional: true, skipSelf: true }], target: i0.ɵɵFactoryTarget.NgModule }); }
83
- static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "17.3.0", ngImport: i0, type: NgxLibModule }); }
84
- static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "17.3.0", ngImport: i0, type: NgxLibModule }); }
103
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.3", ngImport: i0, type: NgxLibModule, deps: [{ token: NgxLibModule, optional: true, skipSelf: true }], target: i0.ɵɵFactoryTarget.NgModule }); }
104
+ static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "17.3.3", ngImport: i0, type: NgxLibModule }); }
105
+ static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "17.3.3", ngImport: i0, type: NgxLibModule }); }
85
106
  }
86
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.0", ngImport: i0, type: NgxLibModule, decorators: [{
107
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.3", ngImport: i0, type: NgxLibModule, decorators: [{
87
108
  type: NgModule,
88
109
  args: [{
89
110
  declarations: [],
@@ -104,5 +125,5 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.0", ngImpor
104
125
  * Generated bundle index. Do not edit.
105
126
  */
106
127
 
107
- export { AppPathConfigService, NgxLibModule, ServiceConfig };
128
+ export { AppPathConfigService, NgxLibModule, NgxLibServiceBase, NgxLibServiceOptionsToken };
108
129
  //# sourceMappingURL=cleavelandprice-ngx-lib.mjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"cleavelandprice-ngx-lib.mjs","sources":["../../../../projects/cleavelandprice/ngx-lib/src/lib/model/service-config.ts","../../../../projects/cleavelandprice/ngx-lib/src/lib/services/app-path-config.service.ts","../../../../projects/cleavelandprice/ngx-lib/src/lib/ngx-lib.module.ts","../../../../projects/cleavelandprice/ngx-lib/src/public_api.ts","../../../../projects/cleavelandprice/ngx-lib/src/cleavelandprice-ngx-lib.ts"],"sourcesContent":["export class ServiceConfig {\r\n useSsl = false;\r\n customApiUrl?: string;\r\n\r\n get apiUrl(): string {\r\n return this.customApiUrl ? this.customApiUrl :\r\n this.useSsl ?\r\n 'https://utilityapi.cleavelandprice.com' :\r\n 'http://utilityapi';\r\n }\r\n\r\n /* Since TypeScript's implementation of overloads sucks, I'm doing something weird here.\r\n useSsl_or_customApiUrl will usually be a boolean value that determines whether or not SSL is used with the normal utilityapi URL options.\r\n But if you want to completely disregard the utilityapi URL and use your own, you would pass the URL via this parameter. */\r\n constructor(useSsl_or_customApiUrl: boolean | string = false) {\r\n if (typeof useSsl_or_customApiUrl === 'boolean') {\r\n this.useSsl = useSsl_or_customApiUrl;\r\n } else if (typeof useSsl_or_customApiUrl === 'string') {\r\n this.customApiUrl = useSsl_or_customApiUrl;\r\n }\r\n }\r\n}","import { HttpClient } from '@angular/common/http';\r\nimport { inject, Injectable } from '@angular/core';\r\nimport { Observable } from 'rxjs';\r\n\r\nimport { AppPathConfig } from '../model/app-path-config';\r\nimport { ServiceConfig } from '../model/service-config';\r\n\r\n@Injectable({\r\n providedIn: 'root'\r\n})\r\nexport class AppPathConfigService {\r\n //#region Services\r\n private config = inject(ServiceConfig, { optional: true }) ?? new ServiceConfig();\r\n private http = inject(HttpClient);\r\n //#endregion\r\n\r\n #url = `${this.config.apiUrl}/apppathconfigs`;\r\n\r\n getAll(): Observable<AppPathConfig[]> {\r\n return this.http.get<AppPathConfig[]>(this.#url);\r\n }\r\n\r\n getById(id: number): Observable<AppPathConfig> {\r\n return this.http.get<AppPathConfig>(`${this.#url}/${id}`);\r\n }\r\n\r\n getByAppId(id: number): Observable<AppPathConfig[]> {\r\n return this.http.get<AppPathConfig[]>(`${this.#url}/appid/${id}`);\r\n }\r\n\r\n getByApp(name: string): Observable<AppPathConfig[]> {\r\n return this.http.get<AppPathConfig[]>(`${this.#url}/app/${name}`);\r\n }\r\n\r\n getByAppTypeId(id: number): Observable<AppPathConfig[]> {\r\n return this.http.get<AppPathConfig[]>(`${this.#url}/apptypeid/${id}`);\r\n }\r\n\r\n getByAppType(name: string): Observable<AppPathConfig[]> {\r\n return this.http.get<AppPathConfig[]>(`${this.#url}/apptype/${name}`);\r\n }\r\n\r\n getByAppFunction(name: string): Observable<AppPathConfig[]> {\r\n return this.http.get<AppPathConfig[]>(`${this.#url}/function/${name}`);\r\n }\r\n}\r\n","import { ModuleWithProviders, NgModule, Optional, SkipSelf } from '@angular/core';\r\n\r\nimport { AppPathConfigService } from './services/app-path-config.service';\r\n\r\nimport { ServiceConfig } from './model/service-config';\r\n\r\n@NgModule({\r\n declarations: [\r\n ],\r\n imports: [\r\n ],\r\n exports: [\r\n ]\r\n})\r\nexport class NgxLibModule {\r\n static forRoot(config: ServiceConfig): ModuleWithProviders<NgxLibModule> {\r\n return {\r\n ngModule: NgxLibModule,\r\n providers: [\r\n AppPathConfigService,\r\n { provide: ServiceConfig, useValue: config }\r\n ]\r\n };\r\n }\r\n\r\n constructor(@Optional() @SkipSelf() parentModule: NgxLibModule) {\r\n if (parentModule) {\r\n throw new Error(\r\n 'NgxLibModule is already loaded. Import it in the AppModule only');\r\n }\r\n }\r\n}","/*\r\n * Public API Surface of ngx-lib\r\n */\r\n\r\nexport * from './lib/model/app';\r\nexport * from './lib/model/app-path-config';\r\nexport * from './lib/model/app-type';\r\nexport * from './lib/model/service-config';\r\n\r\nexport * from './lib/services/app-path-config.service';\r\n\r\nexport * from './lib/ngx-lib.module';\r\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public_api';\n"],"names":[],"m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AU,EAAE,MAAM;AACnB,iBAAA,CAAA;;;MCKY,YAAY,CAAA;IACvB,OAAO,OAAO,CAAC,MAAqB,EAAA;QAClC,OAAO;AACL,YAAA,QAAQ,EAAE,YAAY;AACtB,YAAA,SAAS,EAAE;gBACT,oBAAoB;AACpB,gBAAA,EAAE,OAAO,EAAE,aAAa,EAAE,QAAQ,EAAE,MAAM,EAAE;AAC7C,aAAA;SACF,CAAC;KACH;AAED,IAAA,WAAA,CAAoC,YAA0B,EAAA;QAC5D,IAAI,YAAY,EAAE;AAChB,YAAA,MAAM,IAAI,KAAK,CACb,iEAAiE,CAAC,CAAC;SACtE;KACF;8GAhBU,YAAY,EAAA,IAAA,EAAA,CAAA,EAAA,KAAA,EAAA,YAAA,EAAA,QAAA,EAAA,IAAA,EAAA,QAAA,EAAA,IAAA,EAAA,CAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,QAAA,EAAA,CAAA,CAAA,EAAA;+GAAZ,YAAY,EAAA,CAAA,CAAA,EAAA;+GAAZ,YAAY,EAAA,CAAA,CAAA,EAAA;;2FAAZ,YAAY,EAAA,UAAA,EAAA,CAAA;kBARxB,QAAQ;AAAC,YAAA,IAAA,EAAA,CAAA;AACR,oBAAA,YAAY,EAAE,EACb;AACD,oBAAA,OAAO,EAAE,EACR;AACD,oBAAA,OAAO,EAAE,EACR;AACF,iBAAA,CAAA;;0BAYc,QAAQ;;0BAAI,QAAQ;;;ACzBnC;;AAEG;;ACFH;;AAEG;;;;"}
1
+ {"version":3,"file":"cleavelandprice-ngx-lib.mjs","sources":["../../../../projects/cleavelandprice/ngx-lib/src/lib/model/service-options.ts","../../../../projects/cleavelandprice/ngx-lib/src/lib/services/service-base.ts","../../../../projects/cleavelandprice/ngx-lib/src/lib/services/app-path-config.service.ts","../../../../projects/cleavelandprice/ngx-lib/src/lib/ngx-lib.module.ts","../../../../projects/cleavelandprice/ngx-lib/src/public_api.ts","../../../../projects/cleavelandprice/ngx-lib/src/cleavelandprice-ngx-lib.ts"],"sourcesContent":["import { InjectionToken } from \"@angular/core\";\r\n\r\nexport interface NgxLibServiceOptions {\r\n useSsl?: boolean;\r\n apiUrl?: string;\r\n}\r\nexport const NgxLibServiceOptionsToken = new InjectionToken<NgxLibServiceOptions>('');","import { Inject, Optional } from \"@angular/core\";\r\nimport { NgxLibServiceOptions, NgxLibServiceOptionsToken } from \"../model/service-options\";\r\n\r\nexport class NgxLibServiceBase {\r\n #useSsl: boolean;\r\n #apiUrl?: string;\r\n\r\n get apiUrl(): string {\r\n return this.#apiUrl ? this.#apiUrl :\r\n this.#useSsl ?\r\n 'https://utilityapi.cleavelandprice.com' :\r\n 'http://utilityapi';\r\n }\r\n set apiUrl(value: string) {\r\n this.#apiUrl = value;\r\n }\r\n\r\n constructor(@Optional() @Inject(NgxLibServiceOptionsToken) options?: NgxLibServiceOptions) {\r\n this.#useSsl = options?.useSsl === undefined ? true : options.useSsl!;\r\n this.#apiUrl = options?.apiUrl;\r\n }\r\n}","import { HttpClient } from '@angular/common/http';\r\nimport { Inject, inject, Injectable, Optional } from '@angular/core';\r\nimport { Observable } from 'rxjs';\r\n\r\nimport { AppPathConfig } from '../model/app-path-config';\r\nimport { NgxLibServiceOptions, NgxLibServiceOptionsToken } from '../model/service-options';\r\nimport { NgxLibServiceBase } from './service-base';\r\n//import { ServiceConfig } from '../model/service-config';\r\n\r\n@Injectable({\r\n providedIn: 'root'\r\n})\r\nexport class AppPathConfigService extends NgxLibServiceBase {\r\n #services = {\r\n //config: inject(ServiceConfig, { optional: true }) ?? new ServiceConfig(),\r\n http: inject(HttpClient)\r\n };\r\n\r\n #url: string; // = `${this.#config.apiUrl}/apppathconfigs`;\r\n\r\n constructor(@Optional() @Inject(NgxLibServiceOptionsToken) options?: NgxLibServiceOptions) {\r\n super(options);\r\n\r\n this.#url = `${this.apiUrl}/apppathconfigs`;\r\n }\r\n\r\n getAll(): Observable<AppPathConfig[]> {\r\n return this.#services.http.get<AppPathConfig[]>(this.#url);\r\n }\r\n\r\n getById(id: number): Observable<AppPathConfig> {\r\n return this.#services.http.get<AppPathConfig>(`${this.#url}/${id}`);\r\n }\r\n\r\n getByAppId(id: number): Observable<AppPathConfig[]> {\r\n return this.#services.http.get<AppPathConfig[]>(`${this.#url}/appid/${id}`);\r\n }\r\n\r\n getByApp(name: string): Observable<AppPathConfig[]> {\r\n return this.#services.http.get<AppPathConfig[]>(`${this.#url}/app/${name}`);\r\n }\r\n\r\n getByAppTypeId(id: number): Observable<AppPathConfig[]> {\r\n return this.#services.http.get<AppPathConfig[]>(`${this.#url}/apptypeid/${id}`);\r\n }\r\n\r\n getByAppType(name: string): Observable<AppPathConfig[]> {\r\n return this.#services.http.get<AppPathConfig[]>(`${this.#url}/apptype/${name}`);\r\n }\r\n\r\n getByAppFunction(name: string): Observable<AppPathConfig[]> {\r\n return this.#services.http.get<AppPathConfig[]>(`${this.#url}/function/${name}`);\r\n }\r\n}","import { ModuleWithProviders, NgModule, Optional, SkipSelf } from '@angular/core';\r\nimport { NgxLibServiceOptions, NgxLibServiceOptionsToken } from './model/service-options';\r\n\r\n\r\n\r\n@NgModule({\r\n declarations: [\r\n ],\r\n imports: [\r\n ],\r\n exports: [\r\n ]\r\n})\r\nexport class NgxLibModule {\r\n /*static forRoot(config: ServiceConfig): ModuleWithProviders<NgxLibModule> {\r\n return {\r\n ngModule: NgxLibModule,\r\n providers: [\r\n AppPathConfigService,\r\n { provide: ServiceConfig, useValue: config }\r\n ]\r\n };\r\n }*/\r\n static forRoot(options: NgxLibServiceOptions): ModuleWithProviders<NgxLibModule> {\r\n return {\r\n ngModule: NgxLibModule,\r\n providers: [\r\n {\r\n provide: NgxLibServiceOptionsToken,\r\n useValue: options\r\n }\r\n ]\r\n };\r\n }\r\n\r\n constructor(@Optional() @SkipSelf() parentModule: NgxLibModule) {\r\n if (parentModule) {\r\n throw new Error(\r\n 'NgxLibModule is already loaded. Import it in the AppModule only');\r\n }\r\n }\r\n}","/*\r\n * Public API Surface of ngx-lib\r\n */\r\n\r\nexport * from './lib/model/app';\r\nexport * from './lib/model/app-path-config';\r\nexport * from './lib/model/app-type';\r\nexport * from './lib/model/caching-config';\r\nexport * from './lib/model/credentials';\r\nexport * from './lib/model/logging-config';\r\nexport * from './lib/model/service-options';\r\n\r\nexport * from './lib/services/app-path-config.service';\r\nexport * from './lib/services/service-base';\r\n\r\nexport * from './lib/ngx-lib.module';\r\n\r\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public_api';\n"],"names":[],"mappings":";;;;;MAMa,yBAAyB,GAAG,IAAI,cAAc,CAAuB,EAAE;;ACHvE,IAAA,iBAAiB,GAAvB,MAAM,iBAAiB,CAAA;AAC1B,IAAA,OAAO,CAAU;AACjB,IAAA,OAAO,CAAU;AAEjB,IAAA,IAAI,MAAM,GAAA;QACN,OAAO,IAAI,CAAC,OAAO,GAAG,IAAI,CAAC,OAAO;YAC9B,IAAI,CAAC,OAAO;AACR,gBAAA,wCAAwC;AACxC,gBAAA,mBAAmB,CAAC;KAC/B;IACD,IAAI,MAAM,CAAC,KAAa,EAAA;AACpB,QAAA,IAAI,CAAC,OAAO,GAAG,KAAK,CAAC;KACxB;AAED,IAAA,WAAA,CAA2D,OAA8B,EAAA;AACrF,QAAA,IAAI,CAAC,OAAO,GAAG,OAAO,EAAE,MAAM,KAAK,SAAS,GAAG,IAAI,GAAG,OAAO,CAAC,MAAO,CAAC;AACtE,QAAA,IAAI,CAAC,OAAO,GAAG,OAAO,EAAE,MAAM,CAAC;KAClC;EACJ;AAlBY,iBAAiB,GAAA,UAAA,CAAA;IAcb,OAAA,CAAA,CAAA,EAAA,QAAQ,EAAE,CAAA;AAAE,IAAA,OAAA,CAAA,CAAA,EAAA,MAAM,CAAC,yBAAyB,CAAC,CAAA;AAdjD,CAAA,EAAA,iBAAiB,CAkB7B;;ACdD;AAKM,MAAO,oBAAqB,SAAQ,iBAAiB,CAAA;AACzD,IAAA,SAAS,GAAG;;AAEV,QAAA,IAAI,EAAE,MAA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ChB,YAAA,MAAM,IAAI,KAAK,CACb,iEAAiE,CAAC,CAAC;SACtE;KACF;8GA3BU,YAAY,EAAA,IAAA,EAAA,CAAA,EAAA,KAAA,EAAA,YAAA,EAAA,QAAA,EAAA,IAAA,EAAA,QAAA,EAAA,IAAA,EAAA,CAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,QAAA,EAAA,CAAA,CAAA,EAAA;+GAAZ,YAAY,EAAA,CAAA,CAAA,EAAA;+GAAZ,YAAY,EAAA,CAAA,CAAA,EAAA;;2FAAZ,YAAY,EAAA,UAAA,EAAA,CAAA;kBARxB,QAAQ;AAAC,YAAA,IAAA,EAAA,CAAA;AACR,oBAAA,YAAY,EAAE,EACb;AACD,oBAAA,OAAO,EAAE,EACR;AACD,oBAAA,OAAO,EAAE,EACR;AACF,iBAAA,CAAA;;0BAuBc,QAAQ;;0BAAI,QAAQ;;;ACnCnC;;AAEG;;ACFH;;AAEG;;;;"}
@@ -0,0 +1,4 @@
1
+ export interface CachingConfig {
2
+ enabled?: boolean;
3
+ lifeMinutes?: number;
4
+ }
@@ -0,0 +1,4 @@
1
+ export interface Credentials {
2
+ username?: string;
3
+ password?: string;
4
+ }
@@ -0,0 +1,6 @@
1
+ export interface LoggingConfig {
2
+ dataCached?: boolean;
3
+ cachedDataReturned?: boolean;
4
+ freshDataReturned?: boolean;
5
+ cacheCleared?: boolean;
6
+ }
@@ -0,0 +1,6 @@
1
+ import { InjectionToken } from "@angular/core";
2
+ export interface NgxLibServiceOptions {
3
+ useSsl?: boolean;
4
+ apiUrl?: string;
5
+ }
6
+ export declare const NgxLibServiceOptionsToken: InjectionToken<NgxLibServiceOptions>;
@@ -1,8 +1,8 @@
1
1
  import { ModuleWithProviders } from '@angular/core';
2
- import { ServiceConfig } from './model/service-config';
2
+ import { NgxLibServiceOptions } from './model/service-options';
3
3
  import * as i0 from "@angular/core";
4
4
  export declare class NgxLibModule {
5
- static forRoot(config: ServiceConfig): ModuleWithProviders<NgxLibModule>;
5
+ static forRoot(options: NgxLibServiceOptions): ModuleWithProviders<NgxLibModule>;
6
6
  constructor(parentModule: NgxLibModule);
7
7
  static ɵfac: i0.ɵɵFactoryDeclaration<NgxLibModule, [{ optional: true; skipSelf: true; }]>;
8
8
  static ɵmod: i0.ɵɵNgModuleDeclaration<NgxLibModule, never, never, never>;
@@ -1,10 +1,11 @@
1
1
  import { Observable } from 'rxjs';
2
2
  import { AppPathConfig } from '../model/app-path-config';
3
+ import { NgxLibServiceOptions } from '../model/service-options';
4
+ import { NgxLibServiceBase } from './service-base';
3
5
  import * as i0 from "@angular/core";
4
- export declare class AppPathConfigService {
6
+ export declare class AppPathConfigService extends NgxLibServiceBase {
5
7
  #private;
6
- private config;
7
- private http;
8
+ constructor(options?: NgxLibServiceOptions);
8
9
  getAll(): Observable<AppPathConfig[]>;
9
10
  getById(id: number): Observable<AppPathConfig>;
10
11
  getByAppId(id: number): Observable<AppPathConfig[]>;
@@ -12,6 +13,6 @@ export declare class AppPathConfigService {
12
13
  getByAppTypeId(id: number): Observable<AppPathConfig[]>;
13
14
  getByAppType(name: string): Observable<AppPathConfig[]>;
14
15
  getByAppFunction(name: string): Observable<AppPathConfig[]>;
15
- static ɵfac: i0.ɵɵFactoryDeclaration<AppPathConfigService, never>;
16
+ static ɵfac: i0.ɵɵFactoryDeclaration<AppPathConfigService, [{ optional: true; }]>;
16
17
  static ɵprov: i0.ɵɵInjectableDeclaration<AppPathConfigService>;
17
18
  }
@@ -0,0 +1,7 @@
1
+ import { NgxLibServiceOptions } from "../model/service-options";
2
+ export declare class NgxLibServiceBase {
3
+ #private;
4
+ get apiUrl(): string;
5
+ set apiUrl(value: string);
6
+ constructor(options?: NgxLibServiceOptions);
7
+ }
@@ -2,4 +2,4 @@
2
2
  * Generated bundle index. Do not edit.
3
3
  */
4
4
  /// <amd-module name="@cleavelandprice/ngx-lib/msgraph" />
5
- export * from './public_api';
5
+ export * from './msgraph.api';
@@ -1,8 +1,6 @@
1
- import { ModuleWithProviders } from '@angular/core';
2
1
  import * as i0 from "@angular/core";
3
2
  import * as i1 from "@angular/common";
4
3
  export declare class MSGraphModule {
5
- static forRoot(): ModuleWithProviders<MSGraphModule>;
6
4
  constructor(parentModule: MSGraphModule);
7
5
  static ɵfac: i0.ɵɵFactoryDeclaration<MSGraphModule, [{ optional: true; skipSelf: true; }]>;
8
6
  static ɵmod: i0.ɵɵNgModuleDeclaration<MSGraphModule, never, [typeof i1.CommonModule], never>;
package/package.json CHANGED
@@ -1,15 +1,16 @@
1
1
  {
2
2
  "comment": "NGX-LIB primary entry point package.json",
3
3
  "name": "@cleavelandprice/ngx-lib",
4
- "version": "3.14.6",
4
+ "version": "4.0.0",
5
5
  "description": "Angular library providing foundational functionality to Cleaveland-Price applications",
6
6
  "peerDependencies": {
7
- "@angular/common": "^17.3.0",
8
- "@angular/core": "^17.3.0"
7
+ "@angular/common": "^17.3.3",
8
+ "@angular/core": "^17.3.3"
9
9
  },
10
10
  "dependencies": {
11
11
  "tslib": "^2.3.0"
12
12
  },
13
+ "sideEffects": false,
13
14
  "repository": {
14
15
  "type": "git",
15
16
  "url": "https://github.com/cleavelandprice/ngx-lib"
@@ -58,41 +59,47 @@
58
59
  "esm": "./esm2022/msgraph/cleavelandprice-ngx-lib-msgraph.mjs",
59
60
  "default": "./fesm2022/cleavelandprice-ngx-lib-msgraph.mjs"
60
61
  },
61
- "./quill": {
62
- "types": "./quill/index.d.ts",
63
- "esm2022": "./esm2022/quill/cleavelandprice-ngx-lib-quill.mjs",
64
- "esm": "./esm2022/quill/cleavelandprice-ngx-lib-quill.mjs",
65
- "default": "./fesm2022/cleavelandprice-ngx-lib-quill.mjs"
66
- },
67
62
  "./sharepoint": {
68
63
  "types": "./sharepoint/index.d.ts",
69
64
  "esm2022": "./esm2022/sharepoint/cleavelandprice-ngx-lib-sharepoint.mjs",
70
65
  "esm": "./esm2022/sharepoint/cleavelandprice-ngx-lib-sharepoint.mjs",
71
66
  "default": "./fesm2022/cleavelandprice-ngx-lib-sharepoint.mjs"
72
67
  },
68
+ "./quill": {
69
+ "types": "./quill/index.d.ts",
70
+ "esm2022": "./esm2022/quill/cleavelandprice-ngx-lib-quill.mjs",
71
+ "esm": "./esm2022/quill/cleavelandprice-ngx-lib-quill.mjs",
72
+ "default": "./fesm2022/cleavelandprice-ngx-lib-quill.mjs"
73
+ },
73
74
  "./table": {
74
75
  "types": "./table/index.d.ts",
75
76
  "esm2022": "./esm2022/table/cleavelandprice-ngx-lib-table.mjs",
76
77
  "esm": "./esm2022/table/cleavelandprice-ngx-lib-table.mjs",
77
78
  "default": "./fesm2022/cleavelandprice-ngx-lib-table.mjs"
78
79
  },
80
+ "./url-utilities": {
81
+ "types": "./url-utilities/index.d.ts",
82
+ "esm2022": "./esm2022/url-utilities/cleavelandprice-ngx-lib-url-utilities.mjs",
83
+ "esm": "./esm2022/url-utilities/cleavelandprice-ngx-lib-url-utilities.mjs",
84
+ "default": "./fesm2022/cleavelandprice-ngx-lib-url-utilities.mjs"
85
+ },
79
86
  "./upload": {
80
87
  "types": "./upload/index.d.ts",
81
88
  "esm2022": "./esm2022/upload/cleavelandprice-ngx-lib-upload.mjs",
82
89
  "esm": "./esm2022/upload/cleavelandprice-ngx-lib-upload.mjs",
83
90
  "default": "./fesm2022/cleavelandprice-ngx-lib-upload.mjs"
84
91
  },
85
- "./url-utilities": {
86
- "types": "./url-utilities/index.d.ts",
87
- "esm2022": "./esm2022/url-utilities/cleavelandprice-ngx-lib-url-utilities.mjs",
88
- "esm": "./esm2022/url-utilities/cleavelandprice-ngx-lib-url-utilities.mjs",
89
- "default": "./fesm2022/cleavelandprice-ngx-lib-url-utilities.mjs"
92
+ "./active-directory/material": {
93
+ "types": "./active-directory/material/index.d.ts",
94
+ "esm2022": "./esm2022/active-directory/material/cleavelandprice-ngx-lib-active-directory-material.mjs",
95
+ "esm": "./esm2022/active-directory/material/cleavelandprice-ngx-lib-active-directory-material.mjs",
96
+ "default": "./fesm2022/cleavelandprice-ngx-lib-active-directory-material.mjs"
90
97
  },
91
- "./active-directory/gui": {
92
- "types": "./active-directory/gui/index.d.ts",
93
- "esm2022": "./esm2022/active-directory/gui/cleavelandprice-ngx-lib-active-directory-gui.mjs",
94
- "esm": "./esm2022/active-directory/gui/cleavelandprice-ngx-lib-active-directory-gui.mjs",
95
- "default": "./fesm2022/cleavelandprice-ngx-lib-active-directory-gui.mjs"
98
+ "./authentication/material": {
99
+ "types": "./authentication/material/index.d.ts",
100
+ "esm2022": "./esm2022/authentication/material/cleavelandprice-ngx-lib-authentication-material.mjs",
101
+ "esm": "./esm2022/authentication/material/cleavelandprice-ngx-lib-authentication-material.mjs",
102
+ "default": "./fesm2022/cleavelandprice-ngx-lib-authentication-material.mjs"
96
103
  },
97
104
  "./authentication/object": {
98
105
  "types": "./authentication/object/index.d.ts",
@@ -111,13 +118,6 @@
111
118
  "esm2022": "./esm2022/quill/mention/cleavelandprice-ngx-lib-quill-mention.mjs",
112
119
  "esm": "./esm2022/quill/mention/cleavelandprice-ngx-lib-quill-mention.mjs",
113
120
  "default": "./fesm2022/cleavelandprice-ngx-lib-quill-mention.mjs"
114
- },
115
- "./authentication/token/gui": {
116
- "types": "./authentication/token/gui/index.d.ts",
117
- "esm2022": "./esm2022/authentication/token/gui/cleavelandprice-ngx-lib-authentication-token-gui.mjs",
118
- "esm": "./esm2022/authentication/token/gui/cleavelandprice-ngx-lib-authentication-token-gui.mjs",
119
- "default": "./fesm2022/cleavelandprice-ngx-lib-authentication-token-gui.mjs"
120
121
  }
121
- },
122
- "sideEffects": false
122
+ }
123
123
  }
package/public_api.d.ts CHANGED
@@ -1,6 +1,10 @@
1
1
  export * from './lib/model/app';
2
2
  export * from './lib/model/app-path-config';
3
3
  export * from './lib/model/app-type';
4
- export * from './lib/model/service-config';
4
+ export * from './lib/model/caching-config';
5
+ export * from './lib/model/credentials';
6
+ export * from './lib/model/logging-config';
7
+ export * from './lib/model/service-options';
5
8
  export * from './lib/services/app-path-config.service';
9
+ export * from './lib/services/service-base';
6
10
  export * from './lib/ngx-lib.module';