@lenne.tech/ng-base 18.1.2 → 22.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 (416) hide show
  1. package/CLAUDE.md +55 -0
  2. package/LICENSE +2 -2
  3. package/README.md +237 -44
  4. package/fesm2022/lenne.tech-ng-base-ai.mjs +767 -0
  5. package/fesm2022/lenne.tech-ng-base-ai.mjs.map +1 -0
  6. package/fesm2022/lenne.tech-ng-base-auth-provide.mjs +939 -0
  7. package/fesm2022/lenne.tech-ng-base-auth-provide.mjs.map +1 -0
  8. package/fesm2022/lenne.tech-ng-base-auth.mjs +454 -0
  9. package/fesm2022/lenne.tech-ng-base-auth.mjs.map +1 -0
  10. package/fesm2022/lenne.tech-ng-base-bug-bug-report-dialog-BRzVmKJr.mjs +825 -0
  11. package/fesm2022/lenne.tech-ng-base-bug-bug-report-dialog-BRzVmKJr.mjs.map +1 -0
  12. package/fesm2022/lenne.tech-ng-base-bug-bug-report-service-DWoTb_iw.mjs +351 -0
  13. package/fesm2022/lenne.tech-ng-base-bug-bug-report-service-DWoTb_iw.mjs.map +1 -0
  14. package/fesm2022/lenne.tech-ng-base-bug-capture-engine-TkjMDdqj.mjs +1046 -0
  15. package/fesm2022/lenne.tech-ng-base-bug-capture-engine-TkjMDdqj.mjs.map +1 -0
  16. package/fesm2022/lenne.tech-ng-base-bug-constants-Brm2KGHi.mjs +4 -0
  17. package/fesm2022/lenne.tech-ng-base-bug-constants-Brm2KGHi.mjs.map +1 -0
  18. package/fesm2022/lenne.tech-ng-base-bug-messages-BsP4fRQU.mjs +179 -0
  19. package/fesm2022/lenne.tech-ng-base-bug-messages-BsP4fRQU.mjs.map +1 -0
  20. package/fesm2022/lenne.tech-ng-base-bug-provide.mjs +26 -0
  21. package/fesm2022/lenne.tech-ng-base-bug-provide.mjs.map +1 -0
  22. package/fesm2022/lenne.tech-ng-base-bug-report-Tzlhe1Cm.mjs +62 -0
  23. package/fesm2022/lenne.tech-ng-base-bug-report-Tzlhe1Cm.mjs.map +1 -0
  24. package/fesm2022/lenne.tech-ng-base-bug-server.mjs +818 -0
  25. package/fesm2022/lenne.tech-ng-base-bug-server.mjs.map +1 -0
  26. package/fesm2022/lenne.tech-ng-base-bug.mjs +196 -0
  27. package/fesm2022/lenne.tech-ng-base-bug.mjs.map +1 -0
  28. package/fesm2022/lenne.tech-ng-base-files-ui.mjs +445 -0
  29. package/fesm2022/lenne.tech-ng-base-files-ui.mjs.map +1 -0
  30. package/fesm2022/lenne.tech-ng-base-files.mjs +474 -0
  31. package/fesm2022/lenne.tech-ng-base-files.mjs.map +1 -0
  32. package/fesm2022/lenne.tech-ng-base-server.mjs +408 -0
  33. package/fesm2022/lenne.tech-ng-base-server.mjs.map +1 -0
  34. package/fesm2022/lenne.tech-ng-base-share.mjs +76 -0
  35. package/fesm2022/lenne.tech-ng-base-share.mjs.map +1 -0
  36. package/fesm2022/lenne.tech-ng-base-sync.mjs +1096 -0
  37. package/fesm2022/lenne.tech-ng-base-sync.mjs.map +1 -0
  38. package/fesm2022/lenne.tech-ng-base-testing.mjs +171 -0
  39. package/fesm2022/lenne.tech-ng-base-testing.mjs.map +1 -0
  40. package/fesm2022/lenne.tech-ng-base-ui-provide.mjs +124 -0
  41. package/fesm2022/lenne.tech-ng-base-ui-provide.mjs.map +1 -0
  42. package/fesm2022/lenne.tech-ng-base-ui.mjs +34611 -0
  43. package/fesm2022/lenne.tech-ng-base-ui.mjs.map +1 -0
  44. package/fesm2022/lenne.tech-ng-base-utils.mjs +287 -0
  45. package/fesm2022/lenne.tech-ng-base-utils.mjs.map +1 -0
  46. package/fesm2022/lenne.tech-ng-base.mjs +615 -902
  47. package/fesm2022/lenne.tech-ng-base.mjs.map +1 -1
  48. package/i18n/auth/de.json +17 -0
  49. package/i18n/auth/en.json +17 -0
  50. package/i18n/bug/de.json +85 -0
  51. package/i18n/bug/en.json +85 -0
  52. package/i18n/de.json +8 -0
  53. package/i18n/en.json +8 -0
  54. package/i18n/files/de.json +27 -0
  55. package/i18n/files/en.json +27 -0
  56. package/i18n/share/de.json +8 -0
  57. package/i18n/share/en.json +8 -0
  58. package/i18n/ui/de.json +38 -0
  59. package/i18n/ui/en.json +38 -0
  60. package/package.json +127 -58
  61. package/types/lenne.tech-ng-base-ai.d.ts +830 -0
  62. package/types/lenne.tech-ng-base-auth-provide.d.ts +603 -0
  63. package/types/lenne.tech-ng-base-auth.d.ts +320 -0
  64. package/types/lenne.tech-ng-base-bug-provide.d.ts +272 -0
  65. package/types/lenne.tech-ng-base-bug-rolldown-runtime-C25Le4-w.d.ts +1 -0
  66. package/types/lenne.tech-ng-base-bug-server.d.ts +316 -0
  67. package/types/lenne.tech-ng-base-bug.d.ts +202 -0
  68. package/types/lenne.tech-ng-base-files-ui.d.ts +116 -0
  69. package/types/lenne.tech-ng-base-files.d.ts +288 -0
  70. package/types/lenne.tech-ng-base-server.d.ts +262 -0
  71. package/types/lenne.tech-ng-base-share.d.ts +21 -0
  72. package/types/lenne.tech-ng-base-sync.d.ts +380 -0
  73. package/types/lenne.tech-ng-base-testing.d.ts +327 -0
  74. package/types/lenne.tech-ng-base-ui-provide.d.ts +65 -0
  75. package/types/lenne.tech-ng-base-ui.d.ts +7732 -0
  76. package/types/lenne.tech-ng-base-utils.d.ts +150 -0
  77. package/types/lenne.tech-ng-base.d.ts +503 -0
  78. package/ui/styles/components/accordion.css +3 -0
  79. package/ui/styles/components/alert-dialog.css +4 -0
  80. package/ui/styles/components/alert.css +3 -0
  81. package/ui/styles/components/aspect-ratio.css +3 -0
  82. package/ui/styles/components/attachment.css +4 -0
  83. package/ui/styles/components/autocomplete.css +4 -0
  84. package/ui/styles/components/avatar.css +3 -0
  85. package/ui/styles/components/badge.css +3 -0
  86. package/ui/styles/components/breadcrumb.css +3 -0
  87. package/ui/styles/components/bubble.css +3 -0
  88. package/ui/styles/components/button-group.css +3 -0
  89. package/ui/styles/components/button.css +3 -0
  90. package/ui/styles/components/calendar.css +5 -0
  91. package/ui/styles/components/card.css +3 -0
  92. package/ui/styles/components/checkbox.css +3 -0
  93. package/ui/styles/components/code-block.css +4 -0
  94. package/ui/styles/components/collapsible.css +3 -0
  95. package/ui/styles/components/combobox.css +5 -0
  96. package/ui/styles/components/command.css +5 -0
  97. package/ui/styles/components/context-menu.css +3 -0
  98. package/ui/styles/components/date-picker.css +7 -0
  99. package/ui/styles/components/dialog.css +4 -0
  100. package/ui/styles/components/drawer.css +3 -0
  101. package/ui/styles/components/dropdown-menu.css +3 -0
  102. package/ui/styles/components/empty.css +3 -0
  103. package/ui/styles/components/field.css +5 -0
  104. package/ui/styles/components/hover-card.css +3 -0
  105. package/ui/styles/components/index.css +91 -0
  106. package/ui/styles/components/input-group.css +6 -0
  107. package/ui/styles/components/input-otp.css +3 -0
  108. package/ui/styles/components/input.css +3 -0
  109. package/ui/styles/components/item.css +4 -0
  110. package/ui/styles/components/kbd.css +3 -0
  111. package/ui/styles/components/label.css +3 -0
  112. package/ui/styles/components/lt-breadcrumb.css +3 -0
  113. package/ui/styles/components/lt-bug-attachments.css +5 -0
  114. package/ui/styles/components/lt-bug-journey-timeline.css +5 -0
  115. package/ui/styles/components/lt-bug-report-dialog.css +15 -0
  116. package/ui/styles/components/lt-bug-report.css +4 -0
  117. package/ui/styles/components/lt-color-mode-button.css +3 -0
  118. package/ui/styles/components/lt-confirm-dialog.css +4 -0
  119. package/ui/styles/components/lt-data-view.css +5 -0
  120. package/ui/styles/components/lt-date-picker.css +3 -0
  121. package/ui/styles/components/lt-date-time-picker.css +5 -0
  122. package/ui/styles/components/lt-enter-action.css +2 -0
  123. package/ui/styles/components/lt-footer.css +3 -0
  124. package/ui/styles/components/lt-form-field.css +4 -0
  125. package/ui/styles/components/lt-header.css +5 -0
  126. package/ui/styles/components/lt-imports.css +21 -0
  127. package/ui/styles/components/lt-navigation-menu.css +3 -0
  128. package/ui/styles/components/lt-notice.css +3 -0
  129. package/ui/styles/components/lt-overlay-defaults.css +3 -0
  130. package/ui/styles/components/lt-page-card.css +3 -0
  131. package/ui/styles/components/lt-page-title.css +2 -0
  132. package/ui/styles/components/lt-password-input.css +4 -0
  133. package/ui/styles/components/lt-readonly-field.css +2 -0
  134. package/ui/styles/components/lt-select.css +4 -0
  135. package/ui/styles/components/lt-text-field.css +5 -0
  136. package/ui/styles/components/lt-toolbar-item.css +2 -0
  137. package/ui/styles/components/lt-toolbar.css +3 -0
  138. package/ui/styles/components/lt-tus-upload-component.css +5 -0
  139. package/ui/styles/components/marker.css +3 -0
  140. package/ui/styles/components/menubar.css +3 -0
  141. package/ui/styles/components/message-scroller.css +4 -0
  142. package/ui/styles/components/message.css +3 -0
  143. package/ui/styles/components/native-select.css +3 -0
  144. package/ui/styles/components/navigation-menu.css +3 -0
  145. package/ui/styles/components/pagination.css +4 -0
  146. package/ui/styles/components/popover.css +3 -0
  147. package/ui/styles/components/progress.css +3 -0
  148. package/ui/styles/components/questionnaire.css +4 -0
  149. package/ui/styles/components/radio-group.css +3 -0
  150. package/ui/styles/components/resizable.css +3 -0
  151. package/ui/styles/components/select.css +3 -0
  152. package/ui/styles/components/separator.css +3 -0
  153. package/ui/styles/components/sheet.css +4 -0
  154. package/ui/styles/components/sidebar.css +9 -0
  155. package/ui/styles/components/skeleton.css +3 -0
  156. package/ui/styles/components/slider.css +3 -0
  157. package/ui/styles/components/sonner.css +4 -0
  158. package/ui/styles/components/spinner.css +3 -0
  159. package/ui/styles/components/switch.css +3 -0
  160. package/ui/styles/components/table.css +3 -0
  161. package/ui/styles/components/tabs.css +4 -0
  162. package/ui/styles/components/textarea.css +3 -0
  163. package/ui/styles/components/toggle-group.css +4 -0
  164. package/ui/styles/components/toggle.css +3 -0
  165. package/ui/styles/components/tooltip.css +3 -0
  166. package/ui/styles/components/trace.css +3 -0
  167. package/ui/styles/components/typography.css +3 -0
  168. package/ui/styles/components/utils.css +2 -0
  169. package/ui/styles/core.css +137 -0
  170. package/ui/styles/palette.css +94 -0
  171. package/ui/styles/theme.css +14 -0
  172. package/ui/styles/transitions.css +131 -0
  173. package/base-cms/index.d.ts +0 -5
  174. package/base-cms/interfaces/base-cms-module-config.interface.d.ts +0 -16
  175. package/base-cms/pages/base-cms/base-cms.component.d.ts +0 -92
  176. package/base-cms/public-api.d.ts +0 -5
  177. package/base-components/components/breadcrumb/breadcrumb.component.d.ts +0 -10
  178. package/base-components/components/change-password/change-password.component.d.ts +0 -24
  179. package/base-components/components/checkbox/checkbox.component.d.ts +0 -12
  180. package/base-components/components/delete-account/delete-account.component.d.ts +0 -15
  181. package/base-components/components/fab-button/fab-button.component.d.ts +0 -16
  182. package/base-components/components/input/input.component.d.ts +0 -27
  183. package/base-components/components/loading-bar/loading-bar.component.d.ts +0 -17
  184. package/base-components/components/model-form/model-form-base.component.d.ts +0 -64
  185. package/base-components/components/model-form/model-form.component.d.ts +0 -139
  186. package/base-components/components/model-form-sub/model-form-sub.component.d.ts +0 -56
  187. package/base-components/components/model-table/model-table.component.d.ts +0 -115
  188. package/base-components/components/refence-input/refence-input.component.d.ts +0 -84
  189. package/base-components/components/select/select.component.d.ts +0 -25
  190. package/base-components/components/skeleton-loader/skeleton-loader.component.d.ts +0 -10
  191. package/base-components/components/tags/tags.component.d.ts +0 -60
  192. package/base-components/components/textarea/textarea.component.d.ts +0 -21
  193. package/base-components/components/toast/toast.component.d.ts +0 -19
  194. package/base-components/components/upload-image/upload-image.component.d.ts +0 -111
  195. package/base-components/directives/back-button.directive.d.ts +0 -9
  196. package/base-components/directives/context-menu.directive.d.ts +0 -22
  197. package/base-components/directives/sort.directive.d.ts +0 -15
  198. package/base-components/directives/stop-propagation.directive.d.ts +0 -10
  199. package/base-components/index.d.ts +0 -5
  200. package/base-components/pipes/ellipses.pipe.d.ts +0 -10
  201. package/base-components/public-api.d.ts +0 -26
  202. package/base-prototype/index.d.ts +0 -5
  203. package/base-prototype/pages/email-verification/email-verification.component.d.ts +0 -18
  204. package/base-prototype/pages/forgot-password/forgot-password.component.d.ts +0 -26
  205. package/base-prototype/pages/login/login.component.d.ts +0 -33
  206. package/base-prototype/pages/profile/profile.component.d.ts +0 -24
  207. package/base-prototype/pages/register/register.component.d.ts +0 -31
  208. package/base-prototype/pages/set-password/set-password.component.d.ts +0 -29
  209. package/base-prototype/public-api.d.ts +0 -9
  210. package/esm2022/base-cms/interfaces/base-cms-module-config.interface.mjs +0 -3
  211. package/esm2022/base-cms/lenne.tech-ng-base-base-cms.mjs +0 -5
  212. package/esm2022/base-cms/pages/base-cms/base-cms.component.mjs +0 -238
  213. package/esm2022/base-cms/public-api.mjs +0 -8
  214. package/esm2022/base-components/components/breadcrumb/breadcrumb.component.mjs +0 -23
  215. package/esm2022/base-components/components/change-password/change-password.component.mjs +0 -97
  216. package/esm2022/base-components/components/checkbox/checkbox.component.mjs +0 -38
  217. package/esm2022/base-components/components/delete-account/delete-account.component.mjs +0 -59
  218. package/esm2022/base-components/components/fab-button/fab-button.component.mjs +0 -24
  219. package/esm2022/base-components/components/input/input.component.mjs +0 -75
  220. package/esm2022/base-components/components/loading-bar/loading-bar.component.mjs +0 -37
  221. package/esm2022/base-components/components/model-form/model-form-base.component.mjs +0 -145
  222. package/esm2022/base-components/components/model-form/model-form.component.mjs +0 -591
  223. package/esm2022/base-components/components/model-form-sub/model-form-sub.component.mjs +0 -117
  224. package/esm2022/base-components/components/model-table/model-table.component.mjs +0 -478
  225. package/esm2022/base-components/components/refence-input/refence-input.component.mjs +0 -278
  226. package/esm2022/base-components/components/select/select.component.mjs +0 -62
  227. package/esm2022/base-components/components/skeleton-loader/skeleton-loader.component.mjs +0 -33
  228. package/esm2022/base-components/components/tags/tags.component.mjs +0 -227
  229. package/esm2022/base-components/components/textarea/textarea.component.mjs +0 -79
  230. package/esm2022/base-components/components/toast/toast.component.mjs +0 -69
  231. package/esm2022/base-components/components/upload-image/upload-image.component.mjs +0 -346
  232. package/esm2022/base-components/directives/back-button.directive.mjs +0 -25
  233. package/esm2022/base-components/directives/context-menu.directive.mjs +0 -112
  234. package/esm2022/base-components/directives/sort.directive.mjs +0 -61
  235. package/esm2022/base-components/directives/stop-propagation.directive.mjs +0 -24
  236. package/esm2022/base-components/lenne.tech-ng-base-base-components.mjs +0 -5
  237. package/esm2022/base-components/pipes/ellipses.pipe.mjs +0 -23
  238. package/esm2022/base-components/public-api.mjs +0 -30
  239. package/esm2022/base-prototype/lenne.tech-ng-base-base-prototype.mjs +0 -5
  240. package/esm2022/base-prototype/pages/email-verification/email-verification.component.mjs +0 -60
  241. package/esm2022/base-prototype/pages/forgot-password/forgot-password.component.mjs +0 -78
  242. package/esm2022/base-prototype/pages/login/login.component.mjs +0 -114
  243. package/esm2022/base-prototype/pages/profile/profile.component.mjs +0 -87
  244. package/esm2022/base-prototype/pages/register/register.component.mjs +0 -100
  245. package/esm2022/base-prototype/pages/set-password/set-password.component.mjs +0 -91
  246. package/esm2022/base-prototype/public-api.mjs +0 -11
  247. package/esm2022/lenne.tech-ng-base.mjs +0 -5
  248. package/esm2022/public-api.mjs +0 -25
  249. package/esm2022/shared/classes/auth.class.mjs +0 -14
  250. package/esm2022/shared/classes/basic-user.class.mjs +0 -49
  251. package/esm2022/shared/classes/graphql-enum.class.mjs +0 -10
  252. package/esm2022/shared/classes/graphql-meta.class.mjs +0 -345
  253. package/esm2022/shared/classes/graphql-type.class.mjs +0 -14
  254. package/esm2022/shared/classes/helper.class.mjs +0 -307
  255. package/esm2022/shared/classes/sort.class.mjs +0 -38
  256. package/esm2022/shared/classes/standard.class.mjs +0 -40
  257. package/esm2022/shared/decorators/debounce.decorator.mjs +0 -12
  258. package/esm2022/shared/enums/comparison-operator.enum.mjs +0 -16
  259. package/esm2022/shared/enums/graphql-request-type.enum.mjs +0 -10
  260. package/esm2022/shared/enums/logical-operator.enum.mjs +0 -10
  261. package/esm2022/shared/enums/skeleton-type.enum.mjs +0 -7
  262. package/esm2022/shared/enums/sort-order.enum.mjs +0 -6
  263. package/esm2022/shared/enums/toast-type.enum.mjs +0 -8
  264. package/esm2022/shared/functions/ws-client.function.mjs +0 -39
  265. package/esm2022/shared/interfaces/base-module-config.interface.mjs +0 -3
  266. package/esm2022/shared/interfaces/breadcrumb.interface.mjs +0 -2
  267. package/esm2022/shared/interfaces/can-component-deactivate.interface.mjs +0 -2
  268. package/esm2022/shared/interfaces/cms-enum-values.interface.mjs +0 -2
  269. package/esm2022/shared/interfaces/cms-field-config.interface.mjs +0 -2
  270. package/esm2022/shared/interfaces/cms-model-config.interface.mjs +0 -2
  271. package/esm2022/shared/interfaces/cms-table-field.interface.mjs +0 -2
  272. package/esm2022/shared/interfaces/combined-filter-input.interface.mjs +0 -2
  273. package/esm2022/shared/interfaces/compress-options.interface.mjs +0 -2
  274. package/esm2022/shared/interfaces/cropping-options.interface.mjs +0 -2
  275. package/esm2022/shared/interfaces/field-object.interface.mjs +0 -2
  276. package/esm2022/shared/interfaces/field.interface.mjs +0 -2
  277. package/esm2022/shared/interfaces/filter-input.interface.mjs +0 -2
  278. package/esm2022/shared/interfaces/find-args.interface.mjs +0 -2
  279. package/esm2022/shared/interfaces/graphql-crud-type.interface.mjs +0 -2
  280. package/esm2022/shared/interfaces/graphql-fields-object.interface.mjs +0 -2
  281. package/esm2022/shared/interfaces/graphql-options.interface.mjs +0 -2
  282. package/esm2022/shared/interfaces/graphql-plus-options.interfacen.mjs +0 -2
  283. package/esm2022/shared/interfaces/graphql-type-collection.interface.mjs +0 -2
  284. package/esm2022/shared/interfaces/login-config.interface.mjs +0 -2
  285. package/esm2022/shared/interfaces/register-config.interface.mjs +0 -2
  286. package/esm2022/shared/interfaces/single-filter-input.interface.mjs +0 -2
  287. package/esm2022/shared/interfaces/sort-input.interface.mjs +0 -2
  288. package/esm2022/shared/interfaces/time-components.interface.mjs +0 -2
  289. package/esm2022/shared/interfaces/toast.interface.mjs +0 -2
  290. package/esm2022/shared/lenne.tech-ng-base-shared.mjs +0 -5
  291. package/esm2022/shared/public-api.mjs +0 -74
  292. package/esm2022/shared/services/auth.service.mjs +0 -152
  293. package/esm2022/shared/services/breadcrumb.service.mjs +0 -69
  294. package/esm2022/shared/services/cms.service.mjs +0 -82
  295. package/esm2022/shared/services/file.service.mjs +0 -86
  296. package/esm2022/shared/services/forms.service.mjs +0 -61
  297. package/esm2022/shared/services/graphql-meta.service.mjs +0 -132
  298. package/esm2022/shared/services/graphql-plus.service.mjs +0 -93
  299. package/esm2022/shared/services/graphql.service.mjs +0 -510
  300. package/esm2022/shared/services/image.service.mjs +0 -102
  301. package/esm2022/shared/services/loader.service.mjs +0 -78
  302. package/esm2022/shared/services/navigation.service.mjs +0 -38
  303. package/esm2022/shared/services/scroll.service.mjs +0 -207
  304. package/esm2022/shared/services/storage.service.mjs +0 -149
  305. package/esm2022/shared/services/toast.service.mjs +0 -39
  306. package/esm2022/shared/services/user.service.mjs +0 -160
  307. package/esm2022/shared/services/ws.service.mjs +0 -17
  308. package/esm2022/shared/types/graphql-fields.type.mjs +0 -2
  309. package/esm2022/shared/types/storage.type.mjs +0 -2
  310. package/esm2022/shared/validators/email.validator.mjs +0 -7
  311. package/esm2022/shared/validators/match.validator.mjs +0 -22
  312. package/esm2022/shared/validators/secure-password.validator.mjs +0 -7
  313. package/esm2022/src/base.module.mjs +0 -64
  314. package/esm2022/src/decorators/auto-unsubscribe.decorator.mjs +0 -23
  315. package/esm2022/src/directives/lazy-load.directive.mjs +0 -48
  316. package/esm2022/src/directives/match-height.directive.mjs +0 -92
  317. package/esm2022/src/directives/resizable.directive.mjs +0 -92
  318. package/esm2022/src/factories/apollo-options.factory.mjs +0 -108
  319. package/esm2022/src/functions/extract-files.function.mjs +0 -87
  320. package/esm2022/src/guards/auth.guard.mjs +0 -91
  321. package/esm2022/src/guards/can-deactivate.guard.mjs +0 -16
  322. package/esm2022/src/guards/logout.guard.mjs +0 -34
  323. package/esm2022/src/pipes/date-ago.pipe.mjs +0 -64
  324. package/esm2022/src/pipes/safe-html.pipe.mjs +0 -22
  325. package/esm2022/src/services/fullscreen.service.mjs +0 -51
  326. package/esm2022/src/services/seo.service.mjs +0 -109
  327. package/esm2022/src/services/theme.service.mjs +0 -44
  328. package/fesm2022/lenne.tech-ng-base-base-cms.mjs +0 -251
  329. package/fesm2022/lenne.tech-ng-base-base-cms.mjs.map +0 -1
  330. package/fesm2022/lenne.tech-ng-base-base-components.mjs +0 -2917
  331. package/fesm2022/lenne.tech-ng-base-base-components.mjs.map +0 -1
  332. package/fesm2022/lenne.tech-ng-base-base-prototype.mjs +0 -505
  333. package/fesm2022/lenne.tech-ng-base-base-prototype.mjs.map +0 -1
  334. package/fesm2022/lenne.tech-ng-base-shared.mjs +0 -2863
  335. package/fesm2022/lenne.tech-ng-base-shared.mjs.map +0 -1
  336. package/index.d.ts +0 -5
  337. package/public-api.d.ts +0 -17
  338. package/shared/classes/auth.class.d.ts +0 -10
  339. package/shared/classes/basic-user.class.d.ts +0 -27
  340. package/shared/classes/graphql-enum.class.d.ts +0 -7
  341. package/shared/classes/graphql-meta.class.d.ts +0 -66
  342. package/shared/classes/graphql-type.class.d.ts +0 -13
  343. package/shared/classes/helper.class.d.ts +0 -99
  344. package/shared/classes/sort.class.d.ts +0 -12
  345. package/shared/classes/standard.class.d.ts +0 -32
  346. package/shared/decorators/debounce.decorator.d.ts +0 -1
  347. package/shared/enums/comparison-operator.enum.d.ts +0 -14
  348. package/shared/enums/graphql-request-type.enum.d.ts +0 -8
  349. package/shared/enums/logical-operator.enum.d.ts +0 -8
  350. package/shared/enums/skeleton-type.enum.d.ts +0 -5
  351. package/shared/enums/sort-order.enum.d.ts +0 -4
  352. package/shared/enums/toast-type.enum.d.ts +0 -6
  353. package/shared/functions/ws-client.function.d.ts +0 -5
  354. package/shared/index.d.ts +0 -5
  355. package/shared/interfaces/base-module-config.interface.d.ts +0 -61
  356. package/shared/interfaces/breadcrumb.interface.d.ts +0 -4
  357. package/shared/interfaces/can-component-deactivate.interface.d.ts +0 -7
  358. package/shared/interfaces/cms-enum-values.interface.d.ts +0 -4
  359. package/shared/interfaces/cms-field-config.interface.d.ts +0 -45
  360. package/shared/interfaces/cms-model-config.interface.d.ts +0 -14
  361. package/shared/interfaces/cms-table-field.interface.d.ts +0 -10
  362. package/shared/interfaces/combined-filter-input.interface.d.ts +0 -9
  363. package/shared/interfaces/compress-options.interface.d.ts +0 -15
  364. package/shared/interfaces/cropping-options.interface.d.ts +0 -12
  365. package/shared/interfaces/field-object.interface.d.ts +0 -6
  366. package/shared/interfaces/field.interface.d.ts +0 -5
  367. package/shared/interfaces/filter-input.interface.d.ts +0 -9
  368. package/shared/interfaces/find-args.interface.d.ts +0 -11
  369. package/shared/interfaces/graphql-crud-type.interface.d.ts +0 -7
  370. package/shared/interfaces/graphql-fields-object.interface.d.ts +0 -6
  371. package/shared/interfaces/graphql-options.interface.d.ts +0 -11
  372. package/shared/interfaces/graphql-plus-options.interfacen.d.ts +0 -9
  373. package/shared/interfaces/graphql-type-collection.interface.d.ts +0 -7
  374. package/shared/interfaces/login-config.interface.d.ts +0 -6
  375. package/shared/interfaces/register-config.interface.d.ts +0 -4
  376. package/shared/interfaces/single-filter-input.interface.d.ts +0 -11
  377. package/shared/interfaces/sort-input.interface.d.ts +0 -5
  378. package/shared/interfaces/time-components.interface.d.ts +0 -6
  379. package/shared/interfaces/toast.interface.d.ts +0 -8
  380. package/shared/public-api.d.ts +0 -65
  381. package/shared/services/auth.service.d.ts +0 -44
  382. package/shared/services/breadcrumb.service.d.ts +0 -32
  383. package/shared/services/cms.service.d.ts +0 -27
  384. package/shared/services/file.service.d.ts +0 -22
  385. package/shared/services/forms.service.d.ts +0 -14
  386. package/shared/services/graphql-meta.service.d.ts +0 -45
  387. package/shared/services/graphql-plus.service.d.ts +0 -27
  388. package/shared/services/graphql.service.d.ts +0 -71
  389. package/shared/services/image.service.d.ts +0 -27
  390. package/shared/services/loader.service.d.ts +0 -32
  391. package/shared/services/navigation.service.d.ts +0 -15
  392. package/shared/services/scroll.service.d.ts +0 -85
  393. package/shared/services/storage.service.d.ts +0 -49
  394. package/shared/services/toast.service.d.ts +0 -15
  395. package/shared/services/user.service.d.ts +0 -77
  396. package/shared/services/ws.service.d.ts +0 -8
  397. package/shared/types/graphql-fields.type.d.ts +0 -5
  398. package/shared/types/storage.type.d.ts +0 -4
  399. package/shared/validators/email.validator.d.ts +0 -1
  400. package/shared/validators/match.validator.d.ts +0 -4
  401. package/shared/validators/secure-password.validator.d.ts +0 -1
  402. package/src/base.module.d.ts +0 -16
  403. package/src/decorators/auto-unsubscribe.decorator.d.ts +0 -5
  404. package/src/directives/lazy-load.directive.d.ts +0 -17
  405. package/src/directives/match-height.directive.d.ts +0 -20
  406. package/src/directives/resizable.directive.d.ts +0 -26
  407. package/src/factories/apollo-options.factory.d.ts +0 -16
  408. package/src/functions/extract-files.function.d.ts +0 -15
  409. package/src/guards/auth.guard.d.ts +0 -27
  410. package/src/guards/can-deactivate.guard.d.ts +0 -10
  411. package/src/guards/logout.guard.d.ts +0 -16
  412. package/src/pipes/date-ago.pipe.d.ts +0 -34
  413. package/src/pipes/safe-html.pipe.d.ts +0 -13
  414. package/src/services/fullscreen.service.d.ts +0 -18
  415. package/src/services/seo.service.d.ts +0 -50
  416. package/src/services/theme.service.d.ts +0 -17
@@ -0,0 +1,131 @@
1
+ /*
2
+ * Enter/leave transition classes of LT_TRANSITIONS (`@lenne.tech/ng-base/ui`) for Angular's native
3
+ * `animate.enter` / `animate.leave`:
4
+ *
5
+ * @if (open()) { <div [animate.enter]="LT_TRANSITIONS.fade.enter" [animate.leave]="LT_TRANSITIONS.fade.leave">…</div> }
6
+ *
7
+ * Angular adds the class while the element enters (and removes it when the animation ends) or before it leaves (and
8
+ * removes the element when the animation ends). Durations: `--lt-enter-duration` / `--lt-leave-duration` on the element
9
+ * or any ancestor; defaults 100 ms for the fades, 500 ms for the slides. `prefers-reduced-motion: reduce` turns the
10
+ * slides and the scale into a short fade.
11
+ */
12
+
13
+ @keyframes lt-fade-in {
14
+ from {
15
+ opacity: 0;
16
+ }
17
+ }
18
+
19
+ @keyframes lt-fade-out {
20
+ to {
21
+ opacity: 0;
22
+ }
23
+ }
24
+
25
+ @keyframes lt-fade-scale-in {
26
+ from {
27
+ opacity: 0;
28
+ transform: scale(0.95);
29
+ }
30
+ }
31
+
32
+ @keyframes lt-fade-scale-out {
33
+ to {
34
+ opacity: 0;
35
+ transform: scale(0.95);
36
+ }
37
+ }
38
+
39
+ @keyframes lt-slide-in {
40
+ from {
41
+ transform: translateX(100%);
42
+ }
43
+ }
44
+
45
+ @keyframes lt-slide-out {
46
+ to {
47
+ transform: translateX(100%);
48
+ }
49
+ }
50
+
51
+ @keyframes lt-slide-bottom-in {
52
+ from {
53
+ transform: translateY(100%);
54
+ }
55
+ }
56
+
57
+ @keyframes lt-slide-bottom-out {
58
+ to {
59
+ transform: translateY(100%);
60
+ }
61
+ }
62
+
63
+ @keyframes lt-slide-revert-in {
64
+ from {
65
+ transform: translateX(-100%);
66
+ }
67
+ }
68
+
69
+ @keyframes lt-slide-revert-out {
70
+ to {
71
+ transform: translateX(-100%);
72
+ }
73
+ }
74
+
75
+ .lt-fade-enter {
76
+ animation: lt-fade-in var(--lt-enter-duration, 100ms) ease-out both;
77
+ }
78
+
79
+ .lt-fade-leave {
80
+ animation: lt-fade-out var(--lt-leave-duration, 100ms) ease-in both;
81
+ }
82
+
83
+ .lt-fade-scale-enter {
84
+ animation: lt-fade-scale-in var(--lt-enter-duration, 100ms) ease-out both;
85
+ }
86
+
87
+ .lt-fade-scale-leave {
88
+ animation: lt-fade-scale-out var(--lt-leave-duration, 100ms) ease-in both;
89
+ }
90
+
91
+ .lt-slide-enter {
92
+ animation: lt-slide-in var(--lt-enter-duration, 500ms) cubic-bezier(0.22, 1, 0.36, 1) both;
93
+ }
94
+
95
+ .lt-slide-leave {
96
+ animation: lt-slide-out var(--lt-leave-duration, 500ms) cubic-bezier(0.64, 0, 0.78, 0) both;
97
+ }
98
+
99
+ .lt-slide-bottom-enter {
100
+ animation: lt-slide-bottom-in var(--lt-enter-duration, 500ms) cubic-bezier(0.22, 1, 0.36, 1) both;
101
+ }
102
+
103
+ .lt-slide-bottom-leave {
104
+ animation: lt-slide-bottom-out var(--lt-leave-duration, 500ms) cubic-bezier(0.64, 0, 0.78, 0) both;
105
+ }
106
+
107
+ .lt-slide-revert-enter {
108
+ animation: lt-slide-revert-in var(--lt-enter-duration, 500ms) cubic-bezier(0.22, 1, 0.36, 1) both;
109
+ }
110
+
111
+ .lt-slide-revert-leave {
112
+ animation: lt-slide-revert-out var(--lt-leave-duration, 500ms) cubic-bezier(0.64, 0, 0.78, 0) both;
113
+ }
114
+
115
+ @media (prefers-reduced-motion: reduce) {
116
+ .lt-fade-enter,
117
+ .lt-fade-scale-enter,
118
+ .lt-slide-enter,
119
+ .lt-slide-bottom-enter,
120
+ .lt-slide-revert-enter {
121
+ animation: lt-fade-in 1ms linear both;
122
+ }
123
+
124
+ .lt-fade-leave,
125
+ .lt-fade-scale-leave,
126
+ .lt-slide-leave,
127
+ .lt-slide-bottom-leave,
128
+ .lt-slide-revert-leave {
129
+ animation: lt-fade-out 1ms linear both;
130
+ }
131
+ }
@@ -1,5 +0,0 @@
1
- /**
2
- * Generated bundle index. Do not edit.
3
- */
4
- /// <amd-module name="@lenne.tech/ng-base/base-cms" />
5
- export * from './public-api';
@@ -1,16 +0,0 @@
1
- import { InjectionToken } from '@angular/core';
2
- import { CMSFieldConfig, CMSModelConfig } from '@lenne.tech/ng-base/shared';
3
- export interface BaseCMSModuleConfig {
4
- modelConfig?: {
5
- [key: string]: CMSModelConfig | any;
6
- };
7
- fieldConfig?: {
8
- [key: string]: {
9
- [key: string]: CMSFieldConfig | any;
10
- };
11
- };
12
- logging?: boolean;
13
- logoUrl?: string;
14
- branding?: boolean;
15
- }
16
- export declare const BASE_CMS_MODULE_CONFIG: InjectionToken<unknown>;
@@ -1,92 +0,0 @@
1
- import { OnDestroy, OnInit } from '@angular/core';
2
- import { AuthService, CmsService, GraphqlCrudType, GraphQLMeta, GraphQLMetaService } from '@lenne.tech/ng-base/shared';
3
- import { ActivatedRoute, Router } from '@angular/router';
4
- import { BaseCMSModuleConfig } from '../../interfaces/base-cms-module-config.interface';
5
- import { Subscription } from 'rxjs';
6
- import * as i0 from "@angular/core";
7
- export declare class BaseCmsComponent implements OnInit, OnDestroy {
8
- moduleConfig: BaseCMSModuleConfig;
9
- private graphQLMetaService;
10
- private route;
11
- private router;
12
- private authService;
13
- private cmsService;
14
- meta: GraphQLMeta;
15
- modelName: string;
16
- camelModelName: string;
17
- id: string;
18
- types: GraphqlCrudType[];
19
- subscription: Subscription;
20
- sideBarWidth: string;
21
- responsiveToggle: boolean;
22
- constructor(moduleConfig: BaseCMSModuleConfig, graphQLMetaService: GraphQLMetaService, route: ActivatedRoute, router: Router, authService: AuthService, cmsService: CmsService);
23
- ngOnInit(): Promise<void>;
24
- ngOnDestroy(): void;
25
- /**
26
- * It returns a promise that resolves to an array of GraphqlCrudType objects
27
- *
28
- * @returns The types that are available to the user.
29
- */
30
- init(): Promise<GraphqlCrudType[]>;
31
- /**
32
- * If the model name is set and the types are set, then return the type that matches the model name
33
- *
34
- * @returns The type object that matches the model name.
35
- */
36
- getTypeByModelName(): GraphqlCrudType;
37
- /**
38
- * When the createModeChanged event is emitted, if the createMode is true, navigate to the new route
39
- *
40
- * @param createMode - boolean - This is a boolean value that indicates whether the user is in create mode or
41
- * not.
42
- */
43
- onCreateModeChanged(createMode: boolean): void;
44
- /**
45
- * If the type exists, return the create property of the type, otherwise return false.
46
- *
47
- * @returns A boolean value.
48
- */
49
- isCreatePossible(): boolean;
50
- isImportPossible(): boolean;
51
- isExportPossible(): boolean;
52
- /**
53
- * If the model name is found in the type map, return the update property of the type object
54
- *
55
- * @returns A boolean value.
56
- */
57
- isUpdatePossible(): boolean;
58
- /**
59
- * If the type is defined, return the delete property of the type, otherwise return false
60
- *
61
- * @returns A boolean value.
62
- */
63
- isDeletePossible(): boolean;
64
- /**
65
- * If the model name is found in the type array, return the duplicate property of the type object
66
- *
67
- * @returns A boolean value.
68
- */
69
- isDuplicatePossible(): boolean;
70
- /**
71
- * If the id is truthy, navigate to the id, otherwise navigate to the parent route
72
- */
73
- idSelected(id: string): void;
74
- /**
75
- * Transform string to kebab case
76
- */
77
- toKebabCase(str: string): string;
78
- /**
79
- * Transform string to camel case
80
- */
81
- toCamelCase(str: string): string;
82
- /**
83
- * Transform first letter to lower case
84
- */
85
- lowerCaseFirstLetter(value: string): string;
86
- /**
87
- * Calculates sidebar width based on screen size
88
- */
89
- calcSideBarWidth(): void;
90
- static ɵfac: i0.ɵɵFactoryDeclaration<BaseCmsComponent, never>;
91
- static ɵcmp: i0.ɵɵComponentDeclaration<BaseCmsComponent, "app-base-cms", never, {}, {}, never, never, true, never>;
92
- }
@@ -1,5 +0,0 @@
1
- /**
2
- * Exports for public API
3
- */
4
- export * from './pages/base-cms/base-cms.component';
5
- export * from './interfaces/base-cms-module-config.interface';
@@ -1,10 +0,0 @@
1
- import { Breadcrumb, BreadcrumbService } from '@lenne.tech/ng-base/shared';
2
- import { Observable } from 'rxjs';
3
- import * as i0 from "@angular/core";
4
- export declare class BreadcrumbComponent {
5
- private readonly breadcrumbService;
6
- breadcrumbs$: Observable<Breadcrumb[]>;
7
- constructor(breadcrumbService: BreadcrumbService);
8
- static ɵfac: i0.ɵɵFactoryDeclaration<BreadcrumbComponent, never>;
9
- static ɵcmp: i0.ɵɵComponentDeclaration<BreadcrumbComponent, "base-breadcrumb", never, {}, {}, never, never, true, never>;
10
- }
@@ -1,24 +0,0 @@
1
- import { OnInit } from '@angular/core';
2
- import { FormGroup } from '@angular/forms';
3
- import { AuthService, FormsService, ToastService, UserService } from '@lenne.tech/ng-base/shared';
4
- import * as i0 from "@angular/core";
5
- export declare class ChangePasswordComponent implements OnInit {
6
- private formsService;
7
- private userService;
8
- private authService;
9
- private toastService;
10
- form: FormGroup;
11
- loading: boolean;
12
- constructor(formsService: FormsService, userService: UserService, authService: AuthService, toastService: ToastService);
13
- ngOnInit(): void;
14
- /**
15
- * Create password change form
16
- */
17
- createForm(): void;
18
- /**
19
- * Submit form and change password of user
20
- */
21
- submit(): void;
22
- static ɵfac: i0.ɵɵFactoryDeclaration<ChangePasswordComponent, never>;
23
- static ɵcmp: i0.ɵɵComponentDeclaration<ChangePasswordComponent, "base-change-password", never, {}, {}, never, never, true, never>;
24
- }
@@ -1,12 +0,0 @@
1
- import * as i0 from "@angular/core";
2
- export declare class CheckboxComponent {
3
- id: string;
4
- name: string;
5
- label?: string;
6
- value: string | number;
7
- control: any;
8
- required: boolean;
9
- objectPath: string;
10
- static ɵfac: i0.ɵɵFactoryDeclaration<CheckboxComponent, never>;
11
- static ɵcmp: i0.ɵɵComponentDeclaration<CheckboxComponent, "base-checkbox", never, { "id": { "alias": "id"; "required": false; }; "name": { "alias": "name"; "required": false; }; "label": { "alias": "label"; "required": false; }; "value": { "alias": "value"; "required": false; }; "control": { "alias": "control"; "required": false; }; "required": { "alias": "required"; "required": false; }; "objectPath": { "alias": "objectPath"; "required": false; }; }, {}, never, ["*"], true, never>;
12
- }
@@ -1,15 +0,0 @@
1
- import { AuthService, ToastService, UserService } from '@lenne.tech/ng-base/shared';
2
- import { Router } from '@angular/router';
3
- import * as i0 from "@angular/core";
4
- export declare class DeleteAccountComponent {
5
- private userService;
6
- private authService;
7
- private toastService;
8
- private router;
9
- description: string;
10
- loading: boolean;
11
- constructor(userService: UserService, authService: AuthService, toastService: ToastService, router: Router);
12
- deleteAccount(): void;
13
- static ɵfac: i0.ɵɵFactoryDeclaration<DeleteAccountComponent, never>;
14
- static ɵcmp: i0.ɵɵComponentDeclaration<DeleteAccountComponent, "base-delete-account", never, { "description": { "alias": "description"; "required": false; }; }, {}, never, never, true, never>;
15
- }
@@ -1,16 +0,0 @@
1
- import { EventEmitter } from '@angular/core';
2
- import * as i0 from "@angular/core";
3
- export interface Button {
4
- icon: string;
5
- color: string;
6
- routerLink?: string;
7
- event?: EventEmitter<boolean>;
8
- method?: string;
9
- }
10
- export declare class FabButtonComponent {
11
- fabIcon: string;
12
- buttons: Button[];
13
- toggle: boolean;
14
- static ɵfac: i0.ɵɵFactoryDeclaration<FabButtonComponent, never>;
15
- static ɵcmp: i0.ɵɵComponentDeclaration<FabButtonComponent, "base-fab-button", never, { "fabIcon": { "alias": "fabIcon"; "required": false; }; "buttons": { "alias": "buttons"; "required": false; }; }, {}, never, never, true, never>;
16
- }
@@ -1,27 +0,0 @@
1
- import { EventEmitter } from '@angular/core';
2
- import * as i0 from "@angular/core";
3
- export declare class InputComponent {
4
- id: string;
5
- name: string;
6
- infoText: string;
7
- label?: string;
8
- placeholder?: string;
9
- autocomplete?: string;
10
- tabIndex?: number;
11
- control: any;
12
- type: string;
13
- required: boolean;
14
- eyeButton: boolean;
15
- objectPath: string;
16
- enter: EventEmitter<any>;
17
- /**
18
- * If the control has a value, emit the enter event
19
- */
20
- enterEvent(): void;
21
- /**
22
- * Switch input type
23
- */
24
- togglePasswordType(): void;
25
- static ɵfac: i0.ɵɵFactoryDeclaration<InputComponent, never>;
26
- static ɵcmp: i0.ɵɵComponentDeclaration<InputComponent, "base-input", never, { "id": { "alias": "id"; "required": false; }; "name": { "alias": "name"; "required": false; }; "infoText": { "alias": "infoText"; "required": false; }; "label": { "alias": "label"; "required": false; }; "placeholder": { "alias": "placeholder"; "required": false; }; "autocomplete": { "alias": "autocomplete"; "required": false; }; "tabIndex": { "alias": "tabIndex"; "required": false; }; "control": { "alias": "control"; "required": false; }; "type": { "alias": "type"; "required": false; }; "required": { "alias": "required"; "required": false; }; "eyeButton": { "alias": "eyeButton"; "required": false; }; "objectPath": { "alias": "objectPath"; "required": false; }; }, { "enter": "enter"; }, never, never, true, never>;
27
- }
@@ -1,17 +0,0 @@
1
- import { ChangeDetectorRef, NgZone, OnDestroy, OnInit } from '@angular/core';
2
- import { LoaderService } from '@lenne.tech/ng-base/shared';
3
- import { Subscription } from 'rxjs';
4
- import * as i0 from "@angular/core";
5
- export declare class LoadingBarComponent implements OnInit, OnDestroy {
6
- private ngZone;
7
- private changeDetectorRef;
8
- private loaderService;
9
- manuallyLoading: boolean;
10
- loading: boolean;
11
- subscription: Subscription;
12
- constructor(ngZone: NgZone, changeDetectorRef: ChangeDetectorRef, loaderService: LoaderService);
13
- ngOnInit(): void;
14
- ngOnDestroy(): void;
15
- static ɵfac: i0.ɵɵFactoryDeclaration<LoadingBarComponent, never>;
16
- static ɵcmp: i0.ɵɵComponentDeclaration<LoadingBarComponent, "base-loading-bar", never, { "manuallyLoading": { "alias": "manuallyLoading"; "required": false; }; }, {}, never, never, false, never>;
17
- }
@@ -1,64 +0,0 @@
1
- import { CMSFieldConfig, CmsService, ToastService } from '@lenne.tech/ng-base/shared';
2
- import { EventEmitter, OnInit } from '@angular/core';
3
- import { AbstractControl, UntypedFormControl } from '@angular/forms';
4
- import { Button } from '../fab-button/fab-button.component';
5
- import { ActivatedRoute, Router } from '@angular/router';
6
- import * as i0 from "@angular/core";
7
- /**
8
- * Abstract Component for inputs and outputs only
9
- *
10
- * Hint for handling extensions of this component in project:
11
- * If you want to use complete custom services and methods, extend ModelFormComponent instead of ModelFormBaseComponent
12
- */
13
- export declare abstract class ModelFormBaseComponent implements OnInit {
14
- protected cmsService: CmsService;
15
- protected toastService: ToastService;
16
- protected router: Router;
17
- protected route: ActivatedRoute;
18
- modelName: string;
19
- label: string;
20
- id: string | null;
21
- delete: boolean;
22
- onlyUpdateMode: boolean;
23
- duplicate: boolean;
24
- logging: boolean;
25
- config: {
26
- [key: string]: CMSFieldConfig;
27
- };
28
- showFavButton: boolean;
29
- finished: EventEmitter<any>;
30
- fabButtons: Button[];
31
- operation: string;
32
- protected constructor(cmsService: CmsService, toastService: ToastService, router: Router, route: ActivatedRoute);
33
- ngOnInit(): void;
34
- /**
35
- * Init fab buttons for mobile devices
36
- */
37
- initFabActions(): void;
38
- submit(): void;
39
- /**
40
- * It calls the graphQLService to delete the object with the id of the object that is currently being edited
41
- */
42
- deleteObject(): void;
43
- /**
44
- * It sends a GraphQL mutation to the server to duplicate the object
45
- */
46
- duplicateObject(): Promise<void>;
47
- /**
48
- * It takes a string, capitalizes the first letter, and returns the modified string
49
- *
50
- * @param value - The string to capitalize.
51
- * @returns The first letter of the string is being capitalized and the rest of the string is being returned.
52
- */
53
- capitalizeFirstLetter(value: string): string;
54
- /**
55
- * It takes an AbstractControl and returns a FormControl
56
- *
57
- * @param control - AbstractControl | null | undefined
58
- * @returns A FormControl
59
- */
60
- transformToControl(control: AbstractControl | null | undefined): UntypedFormControl;
61
- formatDate(date: any): string;
62
- static ɵfac: i0.ɵɵFactoryDeclaration<ModelFormBaseComponent, never>;
63
- static ɵcmp: i0.ɵɵComponentDeclaration<ModelFormBaseComponent, "ng-component", never, { "modelName": { "alias": "modelName"; "required": false; }; "label": { "alias": "label"; "required": false; }; "id": { "alias": "id"; "required": false; }; "delete": { "alias": "delete"; "required": false; }; "onlyUpdateMode": { "alias": "onlyUpdateMode"; "required": false; }; "duplicate": { "alias": "duplicate"; "required": false; }; "logging": { "alias": "logging"; "required": false; }; "config": { "alias": "config"; "required": false; }; "showFavButton": { "alias": "showFavButton"; "required": false; }; }, { "finished": "finished"; }, never, never, true, never>;
64
- }
@@ -1,139 +0,0 @@
1
- import { EventEmitter, OnChanges, OnInit, SimpleChanges } from '@angular/core';
2
- import { AuthService, BasicUser, CMSFieldConfig, CmsService, FileService, FormsService, GraphQLMeta, GraphQLMetaService, GraphQLService, GraphQLType, IGraphQLTypeCollection, ToastService } from '@lenne.tech/ng-base/shared';
3
- import { AbstractControl, UntypedFormControl, UntypedFormGroup } from '@angular/forms';
4
- import { ActivatedRoute, Router } from '@angular/router';
5
- import { Button } from '../fab-button/fab-button.component';
6
- import * as i0 from "@angular/core";
7
- /**
8
- * ModelFormComponent
9
- *
10
- * Hint for handling extensions of this component in project:
11
- * If you want to use complete custom services and methods, extend ModelFormBaseComponent instead of ModelFormComponent
12
- */
13
- export declare class ModelFormComponent implements OnInit, OnChanges {
14
- private graphQLMetaService;
15
- private graphQLService;
16
- private formsService;
17
- private authService;
18
- private router;
19
- private route;
20
- private cmsService;
21
- private toastService;
22
- private fileService;
23
- modelName: string;
24
- label: string;
25
- id: string | null;
26
- delete: boolean;
27
- onlyUpdateMode: boolean;
28
- duplicate: boolean;
29
- logging: boolean;
30
- config: {
31
- [key: string]: CMSFieldConfig;
32
- };
33
- showFavButton: boolean;
34
- finished: EventEmitter<any>;
35
- meta: GraphQLMeta;
36
- form: UntypedFormGroup;
37
- _loading: boolean;
38
- fields: Record<string, GraphQLType>;
39
- operation: string;
40
- keys: string[];
41
- user: BasicUser;
42
- object: any;
43
- fabButtons: Button[];
44
- fileChanges: [{
45
- field: string;
46
- file: File | null;
47
- }];
48
- set loading(value: boolean);
49
- constructor(graphQLMetaService: GraphQLMetaService, graphQLService: GraphQLService, formsService: FormsService, authService: AuthService, router: Router, route: ActivatedRoute, cmsService: CmsService, toastService: ToastService, fileService: FileService);
50
- ngOnInit(): void;
51
- ngOnChanges(changes: SimpleChanges): void;
52
- /**
53
- * > If the model name and metadata are present, set the operation to update or create, get the fields from the
54
- * metadata, create the form, and if the value is present, patch the form with the value
55
- */
56
- init(id?: string): void;
57
- /**
58
- * It takes a key as an argument, and returns an array of keys from the sub-object
59
- */
60
- getKeysFromSubObject(key: string): string[];
61
- /**
62
- * It takes an id, and then calls the graphQLService to get the object from the database
63
- *
64
- * @param id - The id of the object to be loaded
65
- */
66
- getObjectById(id: string): void;
67
- /**
68
- * It takes a GraphQL type collection and returns an array of strings and objects
69
- *
70
- * @param fields - IGraphQLTypeCollection - This is the object that is returned from the
71
- * introspection query.
72
- * @returns An array of strings and objects.
73
- */
74
- createRequestObject(fields: IGraphQLTypeCollection): any;
75
- /**
76
- * It takes a collection of GraphQL types and creates a form group with a form control for each type
77
- *
78
- * @param fields - IGraphQLTypeCollection
79
- * @param parents
80
- */
81
- createForm(fields: IGraphQLTypeCollection, parents?: any[]): UntypedFormGroup;
82
- /**
83
- * Process form validators for control
84
- */
85
- processValidators(config: any, value: IGraphQLTypeCollection | GraphQLType): any[];
86
- /**
87
- * It calls the graphQLService to delete the object with the id of the object that is currently being edited
88
- */
89
- deleteObject(): void;
90
- /**
91
- * It sends a GraphQL mutation to the server to duplicate the object
92
- */
93
- duplicateObject(): Promise<void>;
94
- /**
95
- * It takes a string, capitalizes the first letter, and returns the modified string
96
- *
97
- * @param value - The string to capitalize.
98
- * @returns The first letter of the string is being capitalized and the rest of the string is being returned.
99
- */
100
- capitalizeFirstLetter(value: string): string;
101
- /**
102
- * It takes an AbstractControl and returns a FormControl
103
- *
104
- * @param control - AbstractControl | null | undefined
105
- * @returns A FormControl
106
- */
107
- transformToControl(control: AbstractControl | null | undefined): UntypedFormControl;
108
- /**
109
- * It takes the key of the form control that has changed, gets the value of that form control, creates an object with the
110
- * key and value, and then sends that object to the GraphQL server to update the database
111
- */
112
- imageChanged(key: string): void;
113
- /**
114
- * It takes the form, validates it, and then sends it to the GraphQL server
115
- *
116
- * @returns The id of the newly created or updated object.
117
- */
118
- submit(secret?: boolean): Promise<unknown>;
119
- /**
120
- * Prepare data for server
121
- */
122
- prepareDataForRequest(config: any, fieldsConfig: any, data: any): any;
123
- /**
124
- * Init fab buttons for mobile devices
125
- */
126
- initFabActions(): void;
127
- /**
128
- * Set file changes for process
129
- */
130
- processFileChanges(event: {
131
- field: string;
132
- file: File | null;
133
- base64: string | null;
134
- }): void;
135
- private formatDate;
136
- private nestedObject;
137
- static ɵfac: i0.ɵɵFactoryDeclaration<ModelFormComponent, never>;
138
- static ɵcmp: i0.ɵɵComponentDeclaration<ModelFormComponent, "base-model-form", never, { "modelName": { "alias": "modelName"; "required": false; }; "label": { "alias": "label"; "required": false; }; "id": { "alias": "id"; "required": false; }; "delete": { "alias": "delete"; "required": false; }; "onlyUpdateMode": { "alias": "onlyUpdateMode"; "required": false; }; "duplicate": { "alias": "duplicate"; "required": false; }; "logging": { "alias": "logging"; "required": false; }; "config": { "alias": "config"; "required": false; }; "showFavButton": { "alias": "showFavButton"; "required": false; }; }, { "finished": "finished"; }, never, never, true, never>;
139
- }
@@ -1,56 +0,0 @@
1
- import { EventEmitter, OnInit } from '@angular/core';
2
- import { AbstractControl, UntypedFormControl } from '@angular/forms';
3
- import { AuthService, BasicUser, CMSFieldConfig, GraphQLType } from '@lenne.tech/ng-base/shared';
4
- import * as i0 from "@angular/core";
5
- export declare class ModelFormSubComponent implements OnInit {
6
- private authService;
7
- id: string;
8
- parentKey: string;
9
- fields: Record<string, GraphQLType>;
10
- form: any;
11
- config: {
12
- [key: string]: CMSFieldConfig;
13
- };
14
- imageChanged: EventEmitter<string>;
15
- fileChanged: EventEmitter<{
16
- field: string;
17
- file: File | null;
18
- base64: string | null;
19
- }>;
20
- keys: string[];
21
- user: BasicUser;
22
- objectPath: string;
23
- constructor(authService: AuthService);
24
- ngOnInit(): void;
25
- /**
26
- * If the field has fields, return true, otherwise return false.
27
- */
28
- checkFieldHasFields(field: GraphQLType): boolean;
29
- /**
30
- * It takes a string, capitalizes the first letter, and returns the new string
31
- *
32
- * @param value - The string that you want to capitalize the first letter of.
33
- * @returns The first letter of the string is being capitalized and the rest of the string is being returned.
34
- */
35
- capitalizeFirstLetter(value: string): string;
36
- /**
37
- * It takes an array of values and returns an array of objects with a value and text property
38
- *
39
- * @param values - any[] - the array of values that you want to convert to a selectable list
40
- * @param config
41
- * @returns An array of objects with a value and text property.
42
- */
43
- prepareEnumForSelect(values: any[], config?: {}): {
44
- value: any;
45
- text: any;
46
- }[];
47
- /**
48
- * It takes an AbstractControl and returns a FormControl
49
- *
50
- * @param control - AbstractControl | null | undefined
51
- * @returns A FormControl
52
- */
53
- transformToControl(control: AbstractControl | null | undefined): UntypedFormControl;
54
- static ɵfac: i0.ɵɵFactoryDeclaration<ModelFormSubComponent, never>;
55
- static ɵcmp: i0.ɵɵComponentDeclaration<ModelFormSubComponent, "base-model-form-sub", never, { "id": { "alias": "id"; "required": false; }; "parentKey": { "alias": "parentKey"; "required": false; }; "fields": { "alias": "fields"; "required": false; }; "form": { "alias": "form"; "required": false; }; "config": { "alias": "config"; "required": false; }; }, { "imageChanged": "imageChanged"; "fileChanged": "fileChanged"; }, never, never, true, never>;
56
- }