spiderly 0.0.8 → 19.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (442) hide show
  1. package/eslint.config.js +32 -0
  2. package/ng-package.json +10 -0
  3. package/package.json +55 -65
  4. package/src/lib/components/auth/login/login.component.html +25 -0
  5. package/src/lib/components/auth/login/login.component.ts +77 -0
  6. package/src/lib/components/auth/partials/auth.component.html +29 -0
  7. package/src/lib/components/auth/partials/auth.component.ts +60 -0
  8. package/src/lib/components/auth/partials/login-verification.component.html +2 -0
  9. package/src/lib/components/auth/partials/login-verification.component.ts +41 -0
  10. package/src/lib/components/auth/partials/registration-verification.component.html +1 -0
  11. package/src/lib/components/auth/partials/registration-verification.component.ts +41 -0
  12. package/src/lib/components/auth/partials/verification-wrapper.component.html +39 -0
  13. package/src/lib/components/auth/partials/verification-wrapper.component.ts +68 -0
  14. package/src/lib/components/auth/registration/registration.component.html +31 -0
  15. package/src/lib/components/auth/registration/registration.component.ts +77 -0
  16. package/src/lib/components/base-details/role-base-details.component.html +33 -0
  17. package/src/lib/components/base-details/role-base-details.component.ts +194 -0
  18. package/src/lib/components/base-form/base-form copy.ts +356 -0
  19. package/src/lib/components/card-skeleton/card-skeleton.component.html +8 -0
  20. package/src/lib/components/card-skeleton/card-skeleton.component.ts +21 -0
  21. package/src/lib/components/footer/app.footer.component.ts +17 -0
  22. package/src/lib/components/footer/footer.component.html +3 -0
  23. package/src/lib/components/footer/footer.component.ts +17 -0
  24. package/src/lib/components/index-card/index-card.component.html +15 -0
  25. package/src/lib/components/index-card/index-card.component.ts +48 -0
  26. package/src/lib/components/info-card/info-card.component.html +18 -0
  27. package/src/lib/components/info-card/info-card.component.ts +29 -0
  28. package/src/lib/components/layout/layout-base.component.ts +140 -0
  29. package/src/lib/components/layout/sidebar/menuitem.component.html +40 -0
  30. package/src/lib/components/layout/sidebar/menuitem.component.ts +179 -0
  31. package/src/lib/components/layout/sidebar/sidebar-menu.component.html +6 -0
  32. package/src/lib/components/layout/sidebar/sidebar-menu.component.ts +44 -0
  33. package/src/lib/components/layout/sidebar/sidebar-menu.service.ts +22 -0
  34. package/src/lib/components/layout/sidebar/sidebar.component.html +1 -0
  35. package/src/lib/components/layout/sidebar/sidebar.component.ts +20 -0
  36. package/src/lib/components/layout/topbar/topbar.component.html +64 -0
  37. package/src/lib/components/layout/topbar/topbar.component.ts +137 -0
  38. package/src/lib/components/not-found/not-found.component.html +27 -0
  39. package/src/lib/components/not-found/not-found.component.ts +22 -0
  40. package/src/lib/components/required/required.component.html +1 -0
  41. package/src/lib/components/required/required.component.ts +13 -0
  42. package/src/lib/components/spiderly-buttons/google-button/google-button.component.html +5 -0
  43. package/src/lib/components/spiderly-buttons/google-button/google-button.component.ts +53 -0
  44. package/src/lib/components/spiderly-buttons/return-button/return-button.component.html +3 -0
  45. package/src/lib/components/spiderly-buttons/return-button/return-button.component.ts +35 -0
  46. package/src/lib/components/spiderly-buttons/spiderly-button/spiderly-button.component.html +14 -0
  47. package/src/lib/components/spiderly-buttons/spiderly-button/spiderly-button.component.ts +27 -0
  48. package/src/lib/components/spiderly-buttons/spiderly-button-base/spiderly-button-base.ts +61 -0
  49. package/src/lib/components/spiderly-buttons/spiderly-split-button/spiderly-split-button.component.html +15 -0
  50. package/src/lib/components/spiderly-buttons/spiderly-split-button/spiderly-split-button.component.ts +24 -0
  51. package/src/lib/components/spiderly-data-table/spiderly-data-table.component.html +93 -0
  52. package/{styles → src/lib}/components/spiderly-data-table/spiderly-data-table.component.scss +15 -0
  53. package/src/lib/components/spiderly-data-table/spiderly-data-table.component.ts +614 -0
  54. package/src/lib/components/spiderly-delete-dialog/spiderly-delete-confirmation.component.html +17 -0
  55. package/src/lib/components/spiderly-delete-dialog/spiderly-delete-confirmation.component.ts +39 -0
  56. package/src/lib/components/spiderly-form-control/spiderly-form-control.ts +60 -0
  57. package/src/lib/components/spiderly-panels/panel-body/panel-body.component.html +8 -0
  58. package/src/lib/components/spiderly-panels/panel-body/panel-body.component.ts +16 -0
  59. package/src/lib/components/spiderly-panels/panel-footer/panel-footer.component.html +8 -0
  60. package/{styles → src/lib}/components/spiderly-panels/panel-footer/panel-footer.component.scss +3 -3
  61. package/src/lib/components/spiderly-panels/panel-footer/panel-footer.component.ts +15 -0
  62. package/src/lib/components/spiderly-panels/panel-header/panel-header.component.html +25 -0
  63. package/src/lib/components/spiderly-panels/panel-header/panel-header.component.ts +69 -0
  64. package/src/lib/components/spiderly-panels/spiderly-card/spiderly-card.component.html +7 -0
  65. package/src/lib/components/spiderly-panels/spiderly-card/spiderly-card.component.ts +17 -0
  66. package/src/lib/components/spiderly-panels/spiderly-panel/spiderly-panel.component.html +40 -0
  67. package/src/lib/components/spiderly-panels/spiderly-panel/spiderly-panel.component.scss +11 -0
  68. package/src/lib/components/spiderly-panels/spiderly-panel/spiderly-panel.component.ts +42 -0
  69. package/src/lib/components/spiderly-panels/spiderly-panels.module.ts +32 -0
  70. package/src/lib/controls/base-autocomplete-control.ts +17 -0
  71. package/src/lib/controls/base-control.ts +60 -0
  72. package/src/lib/controls/base-dropdown-control.ts +37 -0
  73. package/src/lib/controls/spiderly-autocomplete/spiderly-autocomplete.component.html +36 -0
  74. package/src/lib/controls/spiderly-autocomplete/spiderly-autocomplete.component.ts +56 -0
  75. package/src/lib/controls/spiderly-calendar/spiderly-calendar.component.html +21 -0
  76. package/src/lib/controls/spiderly-calendar/spiderly-calendar.component.ts +37 -0
  77. package/src/lib/controls/spiderly-checkbox/spiderly-checkbox.component.html +16 -0
  78. package/src/lib/controls/spiderly-checkbox/spiderly-checkbox.component.ts +38 -0
  79. package/src/lib/controls/spiderly-colorpick/spiderly-colorpick.component.html +33 -0
  80. package/src/lib/controls/spiderly-colorpick/spiderly-colorpick.component.ts +40 -0
  81. package/src/lib/controls/spiderly-controls.module.ts +61 -0
  82. package/src/lib/controls/spiderly-dropdown/spiderly-dropdown.component.html +27 -0
  83. package/src/lib/controls/spiderly-dropdown/spiderly-dropdown.component.ts +39 -0
  84. package/src/lib/controls/spiderly-editor/spiderly-editor.component.html +22 -0
  85. package/src/lib/controls/spiderly-editor/spiderly-editor.component.ts +58 -0
  86. package/src/lib/controls/spiderly-file/spiderly-file.component.html +54 -0
  87. package/src/lib/controls/spiderly-file/spiderly-file.component.ts +123 -0
  88. package/src/lib/controls/spiderly-multiautocomplete/spiderly-multiautocomplete.component.html +30 -0
  89. package/src/lib/controls/spiderly-multiautocomplete/spiderly-multiautocomplete.component.ts +38 -0
  90. package/src/lib/controls/spiderly-multiselect/spiderly-multiselect.component.html +23 -0
  91. package/src/lib/controls/spiderly-multiselect/spiderly-multiselect.component.ts +32 -0
  92. package/src/lib/controls/spiderly-number/spiderly-number.component.html +19 -0
  93. package/src/lib/controls/spiderly-number/spiderly-number.component.ts +37 -0
  94. package/src/lib/controls/spiderly-password/spiderly-password.component.html +17 -0
  95. package/src/lib/controls/spiderly-password/spiderly-password.component.ts +34 -0
  96. package/src/lib/controls/spiderly-textarea/spiderly-textarea.component.html +18 -0
  97. package/src/lib/controls/spiderly-textarea/spiderly-textarea.component.ts +32 -0
  98. package/src/lib/controls/spiderly-textbox/spiderly-textbox.component.html +23 -0
  99. package/src/lib/controls/spiderly-textbox/spiderly-textbox.component.ts +41 -0
  100. package/src/lib/entities/base-entity.ts +25 -0
  101. package/src/lib/entities/codebook.ts +23 -0
  102. package/src/lib/entities/init-company-auth-dialog-details.ts +22 -0
  103. package/src/lib/entities/init-top-bar-data.ts +35 -0
  104. package/src/lib/entities/is-authorized-for-save-event.ts +22 -0
  105. package/src/lib/entities/last-menu-icon-index-clicked.ts +18 -0
  106. package/src/lib/entities/lazy-load-selected-ids-result.ts +22 -0
  107. package/{lib/entities/menuchangeevent.d.ts → src/lib/entities/menuchangeevent.ts} +4 -4
  108. package/src/lib/entities/mime-type.ts +15 -0
  109. package/src/lib/entities/namebook.ts +22 -0
  110. package/src/lib/entities/primeng-option.ts +23 -0
  111. package/src/lib/entities/readonly-object.ts +1 -0
  112. package/src/lib/entities/security-entities.ts +548 -0
  113. package/src/lib/entities/simple-save-result.ts +19 -0
  114. package/src/lib/entities/spiderly-button.ts +30 -0
  115. package/{lib/entities/table-filter-context.d.ts → src/lib/entities/table-filter-context.ts} +6 -5
  116. package/src/lib/entities/table-filter-sort-meta.ts +5 -0
  117. package/{lib/entities/table-filter.d.ts → src/lib/entities/table-filter.ts} +48 -23
  118. package/src/lib/entities/table-response.ts +5 -0
  119. package/src/lib/enums/security-enums.ts +28 -0
  120. package/src/lib/enums/verification-type-codes.ts +5 -0
  121. package/src/lib/guards/auth.guard.ts +39 -0
  122. package/src/lib/guards/not-auth.guard.ts +32 -0
  123. package/src/lib/handlers/spiderly-error-handler.ts +32 -0
  124. package/src/lib/handlers/spiderly-transloco-fallback-strategy.ts +25 -0
  125. package/src/lib/interceptors/http-loading.interceptor.ts +21 -0
  126. package/src/lib/interceptors/json-parser.interceptor.ts +44 -0
  127. package/src/lib/interceptors/jwt.interceptor.ts +18 -0
  128. package/src/lib/interceptors/unauthorized.interceptor.ts +77 -0
  129. package/src/lib/modules/core.module.ts +22 -0
  130. package/src/lib/modules/primeng.module.ts +122 -0
  131. package/src/lib/modules/spiderly-transloco.module.ts +50 -0
  132. package/src/lib/services/api.service.security.ts +120 -0
  133. package/src/lib/services/app-initializer.ts +9 -0
  134. package/src/lib/services/app-layout-base.service.ts +184 -0
  135. package/src/lib/services/auth-base.service.ts +271 -0
  136. package/src/lib/services/base-form.service.ts +178 -0
  137. package/src/lib/services/config-base.service.ts +36 -0
  138. package/src/lib/services/helper-functions.ts +288 -0
  139. package/src/lib/services/spiderly-message.service.ts +66 -0
  140. package/src/lib/services/spiderly-transloco-loader.ts +15 -0
  141. package/src/lib/services/translate-labels-abstract.service.ts +13 -0
  142. package/src/lib/services/validator-abstract.service.ts +63 -0
  143. package/{styles → src/lib}/styles/layout/_config.scss +2 -2
  144. package/{styles → src/lib}/styles/layout/_content.scss +2 -0
  145. package/{styles → src/lib}/styles/layout/_footer.scss +2 -0
  146. package/{styles → src/lib}/styles/layout/_main.scss +6 -3
  147. package/{styles → src/lib}/styles/layout/_menu.scss +10 -7
  148. package/{styles → src/lib}/styles/layout/_mixins.scss +2 -2
  149. package/{styles → src/lib}/styles/layout/_preloading.scss +1 -1
  150. package/{styles → src/lib}/styles/layout/_responsive.scss +2 -0
  151. package/{styles → src/lib}/styles/layout/_spiderly-controls.scss +2 -0
  152. package/{styles → src/lib}/styles/layout/_topbar.scss +16 -11
  153. package/{styles → src/lib}/styles/layout/_typography.scss +1 -1
  154. package/{styles → src/lib}/styles/layout/_utils.scss +1 -1
  155. package/{styles → src/lib}/styles/layout/_variables.scss +59 -53
  156. package/src/lib/styles/layout/layout.scss +13 -0
  157. package/{styles → src/lib}/styles/shared.scss +70 -42
  158. package/src/lib/styles/styles.scss +3 -0
  159. package/{public-api.d.ts → src/public-api.ts} +103 -90
  160. package/tsconfig.lib.json +17 -0
  161. package/tsconfig.lib.prod.json +10 -0
  162. package/tsconfig.spec.json +14 -0
  163. package/esm2022/lib/components/auth/auth.module.mjs +0 -65
  164. package/esm2022/lib/components/auth/login/login.component.mjs +0 -60
  165. package/esm2022/lib/components/auth/partials/auth.component.mjs +0 -53
  166. package/esm2022/lib/components/auth/partials/login-verification.component.mjs +0 -39
  167. package/esm2022/lib/components/auth/partials/registration-verification.component.mjs +0 -37
  168. package/esm2022/lib/components/auth/partials/verification-wrapper.component.mjs +0 -74
  169. package/esm2022/lib/components/auth/registration/registration.component.mjs +0 -59
  170. package/esm2022/lib/components/base-details/role-base-details.component.mjs +0 -171
  171. package/esm2022/lib/components/base-form/base-form copy.mjs +0 -247
  172. package/esm2022/lib/components/card-skeleton/card-skeleton.component.mjs +0 -25
  173. package/esm2022/lib/components/footer/footer.component.mjs +0 -16
  174. package/esm2022/lib/components/index-card/index-card.component.mjs +0 -57
  175. package/esm2022/lib/components/info-card/info-card.component.mjs +0 -29
  176. package/esm2022/lib/components/layout/layout-base.component.mjs +0 -121
  177. package/esm2022/lib/components/layout/sidebar/menuitem.component.mjs +0 -161
  178. package/esm2022/lib/components/layout/sidebar/sidebar-menu.component.mjs +0 -34
  179. package/esm2022/lib/components/layout/sidebar/sidebar-menu.service.mjs +0 -26
  180. package/esm2022/lib/components/layout/sidebar/sidebar.component.mjs +0 -21
  181. package/esm2022/lib/components/layout/topbar/topbar.component.mjs +0 -115
  182. package/esm2022/lib/components/not-found/not-found.component.mjs +0 -20
  183. package/esm2022/lib/components/required/required.component.mjs +0 -12
  184. package/esm2022/lib/components/spiderly-buttons/google-button/google-button.component.mjs +0 -43
  185. package/esm2022/lib/components/spiderly-buttons/return-button/return-button.component.mjs +0 -37
  186. package/esm2022/lib/components/spiderly-buttons/spiderly-button/spiderly-button.component.mjs +0 -20
  187. package/esm2022/lib/components/spiderly-buttons/spiderly-button-base/spiderly-button-base.mjs +0 -68
  188. package/esm2022/lib/components/spiderly-buttons/spiderly-split-button/spiderly-split-button.component.mjs +0 -22
  189. package/esm2022/lib/components/spiderly-data-table/spiderly-data-table.component.mjs +0 -501
  190. package/esm2022/lib/components/spiderly-delete-dialog/spiderly-delete-confirmation.component.mjs +0 -42
  191. package/esm2022/lib/components/spiderly-form-control/spiderly-form-control.mjs +0 -36
  192. package/esm2022/lib/components/spiderly-panels/panel-body/panel-body.component.mjs +0 -19
  193. package/esm2022/lib/components/spiderly-panels/panel-footer/panel-footer.component.mjs +0 -14
  194. package/esm2022/lib/components/spiderly-panels/panel-header/panel-header.component.mjs +0 -49
  195. package/esm2022/lib/components/spiderly-panels/spiderly-card/spiderly-card.component.mjs +0 -20
  196. package/esm2022/lib/components/spiderly-panels/spiderly-panel/spiderly-panel.component.mjs +0 -63
  197. package/esm2022/lib/components/spiderly-panels/spiderly-panels.module.mjs +0 -49
  198. package/esm2022/lib/controls/base-autocomplete-control.mjs +0 -18
  199. package/esm2022/lib/controls/base-control.mjs +0 -62
  200. package/esm2022/lib/controls/base-dropdown-control.mjs +0 -37
  201. package/esm2022/lib/controls/spiderly-autocomplete/spiderly-autocomplete.component.mjs +0 -60
  202. package/esm2022/lib/controls/spiderly-calendar/spiderly-calendar.component.mjs +0 -39
  203. package/esm2022/lib/controls/spiderly-checkbox/spiderly-checkbox.component.mjs +0 -45
  204. package/esm2022/lib/controls/spiderly-colorpick/spiderly-colorpick.component.mjs +0 -40
  205. package/esm2022/lib/controls/spiderly-controls.module.mjs +0 -112
  206. package/esm2022/lib/controls/spiderly-dropdown/spiderly-dropdown.component.mjs +0 -40
  207. package/esm2022/lib/controls/spiderly-editor/spiderly-editor.component.mjs +0 -59
  208. package/esm2022/lib/controls/spiderly-file/spiderly-file.component.mjs +0 -106
  209. package/esm2022/lib/controls/spiderly-multiautocomplete/spiderly-multiautocomplete.component.mjs +0 -38
  210. package/esm2022/lib/controls/spiderly-multiselect/spiderly-multiselect.component.mjs +0 -34
  211. package/esm2022/lib/controls/spiderly-number/spiderly-number.component.mjs +0 -44
  212. package/esm2022/lib/controls/spiderly-password/spiderly-password.component.mjs +0 -37
  213. package/esm2022/lib/controls/spiderly-textarea/spiderly-textarea.component.mjs +0 -34
  214. package/esm2022/lib/controls/spiderly-textbox/spiderly-textbox.component.mjs +0 -45
  215. package/esm2022/lib/entities/base-entity.mjs +0 -18
  216. package/esm2022/lib/entities/codebook.mjs +0 -10
  217. package/esm2022/lib/entities/init-company-auth-dialog-details.mjs +0 -9
  218. package/esm2022/lib/entities/init-top-bar-data.mjs +0 -12
  219. package/esm2022/lib/entities/is-authorized-for-save-event.mjs +0 -9
  220. package/esm2022/lib/entities/last-menu-icon-index-clicked.mjs +0 -8
  221. package/esm2022/lib/entities/lazy-load-selected-ids-result.mjs +0 -11
  222. package/esm2022/lib/entities/menuchangeevent.mjs +0 -3
  223. package/esm2022/lib/entities/mime-type.mjs +0 -15
  224. package/esm2022/lib/entities/namebook.mjs +0 -9
  225. package/esm2022/lib/entities/primeng-option.mjs +0 -9
  226. package/esm2022/lib/entities/security-entities.mjs +0 -169
  227. package/esm2022/lib/entities/simple-save-result.mjs +0 -9
  228. package/esm2022/lib/entities/spiderly-button.mjs +0 -11
  229. package/esm2022/lib/entities/table-filter-context.mjs +0 -3
  230. package/esm2022/lib/entities/table-filter-sort-meta.mjs +0 -3
  231. package/esm2022/lib/entities/table-filter.mjs +0 -15
  232. package/esm2022/lib/entities/table-response.mjs +0 -3
  233. package/esm2022/lib/enums/security-enums.mjs +0 -26
  234. package/esm2022/lib/enums/verification-type-codes.mjs +0 -6
  235. package/esm2022/lib/guards/auth.guard.mjs +0 -40
  236. package/esm2022/lib/guards/not-auth.guard.mjs +0 -32
  237. package/esm2022/lib/handlers/spiderly-error-handler.mjs +0 -30
  238. package/esm2022/lib/handlers/spiderly-transloco-fallback-strategy.mjs +0 -24
  239. package/esm2022/lib/interceptors/http-loading.interceptor.mjs +0 -27
  240. package/esm2022/lib/interceptors/json-parser.interceptor.mjs +0 -47
  241. package/esm2022/lib/interceptors/jwt.interceptor.mjs +0 -27
  242. package/esm2022/lib/interceptors/unauthorized.interceptor.mjs +0 -64
  243. package/esm2022/lib/modules/core.module.mjs +0 -140
  244. package/esm2022/lib/modules/primeng.module.mjs +0 -278
  245. package/esm2022/lib/modules/spiderly-transloco.module.mjs +0 -44
  246. package/esm2022/lib/services/api.service.security.mjs +0 -86
  247. package/esm2022/lib/services/app-initializer.mjs +0 -6
  248. package/esm2022/lib/services/app-layout-base.service.mjs +0 -132
  249. package/esm2022/lib/services/auth-base.service.mjs +0 -220
  250. package/esm2022/lib/services/base-form.service.mjs +0 -124
  251. package/esm2022/lib/services/config-base.service.mjs +0 -33
  252. package/esm2022/lib/services/helper-functions.mjs +0 -229
  253. package/esm2022/lib/services/spiderly-message.service.mjs +0 -64
  254. package/esm2022/lib/services/spiderly-transloco-loader.mjs +0 -20
  255. package/esm2022/lib/services/translate-labels-abstract.service.mjs +0 -15
  256. package/esm2022/lib/services/validator-abstract.service.mjs +0 -51
  257. package/esm2022/public-api.mjs +0 -94
  258. package/esm2022/spiderly.mjs +0 -5
  259. package/fesm2022/spiderly.mjs +0 -4807
  260. package/fesm2022/spiderly.mjs.map +0 -1
  261. package/index.d.ts +0 -5
  262. package/lib/components/auth/auth.module.d.ts +0 -17
  263. package/lib/components/auth/login/login.component.d.ts +0 -35
  264. package/lib/components/auth/partials/auth.component.d.ts +0 -21
  265. package/lib/components/auth/partials/login-verification.component.d.ts +0 -18
  266. package/lib/components/auth/partials/registration-verification.component.d.ts +0 -17
  267. package/lib/components/auth/partials/verification-wrapper.component.d.ts +0 -31
  268. package/lib/components/auth/registration/registration.component.d.ts +0 -34
  269. package/lib/components/base-details/role-base-details.component.d.ts +0 -50
  270. package/lib/components/base-form/base-form copy.d.ts +0 -54
  271. package/lib/components/card-skeleton/card-skeleton.component.d.ts +0 -12
  272. package/lib/components/footer/footer.component.d.ts +0 -9
  273. package/lib/components/index-card/index-card.component.d.ts +0 -22
  274. package/lib/components/info-card/info-card.component.d.ts +0 -11
  275. package/lib/components/layout/layout-base.component.d.ts +0 -37
  276. package/lib/components/layout/sidebar/menuitem.component.d.ts +0 -43
  277. package/lib/components/layout/sidebar/sidebar-menu.component.d.ts +0 -23
  278. package/lib/components/layout/sidebar/sidebar-menu.service.d.ts +0 -12
  279. package/lib/components/layout/sidebar/sidebar.component.d.ts +0 -11
  280. package/lib/components/layout/topbar/topbar.component.d.ts +0 -45
  281. package/lib/components/not-found/not-found.component.d.ts +0 -9
  282. package/lib/components/required/required.component.d.ts +0 -6
  283. package/lib/components/spiderly-buttons/google-button/google-button.component.d.ts +0 -17
  284. package/lib/components/spiderly-buttons/return-button/return-button.component.d.ts +0 -10
  285. package/lib/components/spiderly-buttons/spiderly-button/spiderly-button.component.d.ts +0 -6
  286. package/lib/components/spiderly-buttons/spiderly-button-base/spiderly-button-base.d.ts +0 -27
  287. package/lib/components/spiderly-buttons/spiderly-split-button/spiderly-split-button.component.d.ts +0 -8
  288. package/lib/components/spiderly-data-table/spiderly-data-table.component.d.ts +0 -157
  289. package/lib/components/spiderly-delete-dialog/spiderly-delete-confirmation.component.d.ts +0 -11
  290. package/lib/components/spiderly-form-control/spiderly-form-control.d.ts +0 -37
  291. package/lib/components/spiderly-panels/panel-body/panel-body.component.d.ts +0 -9
  292. package/lib/components/spiderly-panels/panel-footer/panel-footer.component.d.ts +0 -8
  293. package/lib/components/spiderly-panels/panel-header/panel-header.component.d.ts +0 -29
  294. package/lib/components/spiderly-panels/spiderly-card/spiderly-card.component.d.ts +0 -10
  295. package/lib/components/spiderly-panels/spiderly-panel/spiderly-panel.component.d.ts +0 -25
  296. package/lib/components/spiderly-panels/spiderly-panels.module.d.ts +0 -13
  297. package/lib/controls/base-autocomplete-control.d.ts +0 -9
  298. package/lib/controls/base-control.d.ts +0 -23
  299. package/lib/controls/base-dropdown-control.d.ts +0 -18
  300. package/lib/controls/spiderly-autocomplete/spiderly-autocomplete.component.d.ts +0 -18
  301. package/lib/controls/spiderly-calendar/spiderly-calendar.component.d.ts +0 -13
  302. package/lib/controls/spiderly-checkbox/spiderly-checkbox.component.d.ts +0 -14
  303. package/lib/controls/spiderly-colorpick/spiderly-colorpick.component.d.ts +0 -11
  304. package/lib/controls/spiderly-controls.module.d.ts +0 -22
  305. package/lib/controls/spiderly-dropdown/spiderly-dropdown.component.d.ts +0 -14
  306. package/lib/controls/spiderly-editor/spiderly-editor.component.d.ts +0 -16
  307. package/lib/controls/spiderly-file/spiderly-file.component.d.ts +0 -36
  308. package/lib/controls/spiderly-multiautocomplete/spiderly-multiautocomplete.component.d.ts +0 -13
  309. package/lib/controls/spiderly-multiselect/spiderly-multiselect.component.d.ts +0 -11
  310. package/lib/controls/spiderly-number/spiderly-number.component.d.ts +0 -15
  311. package/lib/controls/spiderly-password/spiderly-password.component.d.ts +0 -12
  312. package/lib/controls/spiderly-textarea/spiderly-textarea.component.d.ts +0 -11
  313. package/lib/controls/spiderly-textbox/spiderly-textbox.component.d.ts +0 -15
  314. package/lib/entities/base-entity.d.ts +0 -14
  315. package/lib/entities/codebook.d.ts +0 -9
  316. package/lib/entities/init-company-auth-dialog-details.d.ts +0 -9
  317. package/lib/entities/init-top-bar-data.d.ts +0 -16
  318. package/lib/entities/is-authorized-for-save-event.d.ts +0 -9
  319. package/lib/entities/last-menu-icon-index-clicked.d.ts +0 -7
  320. package/lib/entities/lazy-load-selected-ids-result.d.ts +0 -9
  321. package/lib/entities/mime-type.d.ts +0 -11
  322. package/lib/entities/namebook.d.ts +0 -9
  323. package/lib/entities/primeng-option.d.ts +0 -9
  324. package/lib/entities/security-entities.d.ts +0 -211
  325. package/lib/entities/simple-save-result.d.ts +0 -7
  326. package/lib/entities/spiderly-button.d.ts +0 -13
  327. package/lib/entities/table-filter-sort-meta.d.ts +0 -4
  328. package/lib/entities/table-response.d.ts +0 -4
  329. package/lib/enums/security-enums.d.ts +0 -22
  330. package/lib/enums/verification-type-codes.d.ts +0 -4
  331. package/lib/guards/auth.guard.d.ts +0 -15
  332. package/lib/guards/not-auth.guard.d.ts +0 -12
  333. package/lib/handlers/spiderly-error-handler.d.ts +0 -14
  334. package/lib/handlers/spiderly-transloco-fallback-strategy.d.ts +0 -13
  335. package/lib/interceptors/http-loading.interceptor.d.ts +0 -11
  336. package/lib/interceptors/json-parser.interceptor.d.ts +0 -11
  337. package/lib/interceptors/jwt.interceptor.d.ts +0 -11
  338. package/lib/interceptors/unauthorized.interceptor.d.ts +0 -16
  339. package/lib/modules/core.module.d.ts +0 -13
  340. package/lib/modules/primeng.module.d.ts +0 -42
  341. package/lib/modules/spiderly-transloco.module.d.ts +0 -9
  342. package/lib/services/api.service.security.d.ts +0 -35
  343. package/lib/services/app-initializer.d.ts +0 -4
  344. package/lib/services/app-layout-base.service.d.ts +0 -60
  345. package/lib/services/auth-base.service.d.ts +0 -55
  346. package/lib/services/base-form.service.d.ts +0 -27
  347. package/lib/services/config-base.service.d.ts +0 -24
  348. package/lib/services/helper-functions.d.ts +0 -37
  349. package/lib/services/spiderly-message.service.d.ts +0 -17
  350. package/lib/services/spiderly-transloco-loader.d.ts +0 -10
  351. package/lib/services/translate-labels-abstract.service.d.ts +0 -7
  352. package/lib/services/validator-abstract.service.d.ts +0 -13
  353. package/styles/styles/layout/layout.scss +0 -13
  354. package/styles/styles/styles.scss +0 -6
  355. package/styles/styles/theme/base/_colors.scss +0 -18
  356. package/styles/styles/theme/base/_common.scss +0 -75
  357. package/styles/styles/theme/base/_components.scss +0 -106
  358. package/styles/styles/theme/base/_mixins.scss +0 -343
  359. package/styles/styles/theme/base/components/button/_button.scss +0 -564
  360. package/styles/styles/theme/base/components/button/_speeddial.scss +0 -96
  361. package/styles/styles/theme/base/components/button/_splitbutton.scss +0 -381
  362. package/styles/styles/theme/base/components/data/_carousel.scss +0 -37
  363. package/styles/styles/theme/base/components/data/_datatable.scss +0 -338
  364. package/styles/styles/theme/base/components/data/_dataview.scss +0 -55
  365. package/styles/styles/theme/base/components/data/_filter.scss +0 -138
  366. package/styles/styles/theme/base/components/data/_orderlist.scss +0 -103
  367. package/styles/styles/theme/base/components/data/_organizationchart.scss +0 -50
  368. package/styles/styles/theme/base/components/data/_paginator.scss +0 -92
  369. package/styles/styles/theme/base/components/data/_picklist.scss +0 -103
  370. package/styles/styles/theme/base/components/data/_timeline.scss +0 -81
  371. package/styles/styles/theme/base/components/data/_tree.scss +0 -149
  372. package/styles/styles/theme/base/components/data/_treetable.scss +0 -256
  373. package/styles/styles/theme/base/components/data/_virtualscroller.scss +0 -28
  374. package/styles/styles/theme/base/components/file/_fileupload.scss +0 -64
  375. package/styles/styles/theme/base/components/input/_autocomplete.scss +0 -118
  376. package/styles/styles/theme/base/components/input/_calendar.scss +0 -263
  377. package/styles/styles/theme/base/components/input/_cascadeselect.scss +0 -130
  378. package/styles/styles/theme/base/components/input/_checkbox.scss +0 -90
  379. package/styles/styles/theme/base/components/input/_chips.scss +0 -55
  380. package/styles/styles/theme/base/components/input/_colorpicker.scss +0 -26
  381. package/styles/styles/theme/base/components/input/_dropdown.scss +0 -152
  382. package/styles/styles/theme/base/components/input/_editor.scss +0 -122
  383. package/styles/styles/theme/base/components/input/_inputgroup.scss +0 -75
  384. package/styles/styles/theme/base/components/input/_inputmask.scss +0 -16
  385. package/styles/styles/theme/base/components/input/_inputnumber.scss +0 -28
  386. package/styles/styles/theme/base/components/input/_inputswitch.scss +0 -60
  387. package/styles/styles/theme/base/components/input/_inputtext.scss +0 -100
  388. package/styles/styles/theme/base/components/input/_listbox.scss +0 -82
  389. package/styles/styles/theme/base/components/input/_multiselect.scss +0 -173
  390. package/styles/styles/theme/base/components/input/_password.scss +0 -52
  391. package/styles/styles/theme/base/components/input/_radiobutton.scss +0 -78
  392. package/styles/styles/theme/base/components/input/_rating.scss +0 -55
  393. package/styles/styles/theme/base/components/input/_selectbutton.scss +0 -50
  394. package/styles/styles/theme/base/components/input/_slider.scss +0 -71
  395. package/styles/styles/theme/base/components/input/_togglebutton.scss +0 -48
  396. package/styles/styles/theme/base/components/input/_treeselect.scss +0 -139
  397. package/styles/styles/theme/base/components/menu/_breadcrumb.scss +0 -42
  398. package/styles/styles/theme/base/components/menu/_contextmenu.scss +0 -39
  399. package/styles/styles/theme/base/components/menu/_dock.scss +0 -95
  400. package/styles/styles/theme/base/components/menu/_megamenu.scss +0 -55
  401. package/styles/styles/theme/base/components/menu/_menu.scss +0 -37
  402. package/styles/styles/theme/base/components/menu/_menubar.scss +0 -141
  403. package/styles/styles/theme/base/components/menu/_panelmenu.scss +0 -153
  404. package/styles/styles/theme/base/components/menu/_slidemenu.scss +0 -59
  405. package/styles/styles/theme/base/components/menu/_steps.scss +0 -56
  406. package/styles/styles/theme/base/components/menu/_tabmenu.scss +0 -74
  407. package/styles/styles/theme/base/components/menu/_tieredmenu.scss +0 -43
  408. package/styles/styles/theme/base/components/messages/_inlinemessage.scss +0 -69
  409. package/styles/styles/theme/base/components/messages/_message.scss +0 -107
  410. package/styles/styles/theme/base/components/messages/_toast.scss +0 -103
  411. package/styles/styles/theme/base/components/misc/_avatar.scss +0 -30
  412. package/styles/styles/theme/base/components/misc/_badge.scss +0 -48
  413. package/styles/styles/theme/base/components/misc/_blockui.scss +0 -0
  414. package/styles/styles/theme/base/components/misc/_chip.scss +0 -42
  415. package/styles/styles/theme/base/components/misc/_inplace.scss +0 -17
  416. package/styles/styles/theme/base/components/misc/_progressbar.scss +0 -17
  417. package/styles/styles/theme/base/components/misc/_scrolltop.scss +0 -25
  418. package/styles/styles/theme/base/components/misc/_skeleton.scss +0 -8
  419. package/styles/styles/theme/base/components/misc/_tag.scss +0 -40
  420. package/styles/styles/theme/base/components/misc/_terminal.scss +0 -12
  421. package/styles/styles/theme/base/components/multimedia/_galleria.scss +0 -155
  422. package/styles/styles/theme/base/components/multimedia/_image.scss +0 -49
  423. package/styles/styles/theme/base/components/overlay/_confirmpopup.scss +0 -72
  424. package/styles/styles/theme/base/components/overlay/_dialog.scss +0 -73
  425. package/styles/styles/theme/base/components/overlay/_overlaypanel.scss +0 -64
  426. package/styles/styles/theme/base/components/overlay/_sidebar.scss +0 -27
  427. package/styles/styles/theme/base/components/overlay/_tooltip.scss +0 -33
  428. package/styles/styles/theme/base/components/panel/_accordion.scss +0 -119
  429. package/styles/styles/theme/base/components/panel/_card.scss +0 -30
  430. package/styles/styles/theme/base/components/panel/_divider.scss +0 -31
  431. package/styles/styles/theme/base/components/panel/_fieldset.scss +0 -47
  432. package/styles/styles/theme/base/components/panel/_panel.scss +0 -58
  433. package/styles/styles/theme/base/components/panel/_scrollpanel.scss +0 -6
  434. package/styles/styles/theme/base/components/panel/_splitter.scss +0 -19
  435. package/styles/styles/theme/base/components/panel/_tabview.scss +0 -82
  436. package/styles/styles/theme/base/components/panel/_toolbar.scss +0 -11
  437. package/styles/styles/theme/saga/_extensions.scss +0 -27
  438. package/styles/styles/theme/saga/_variables.scss +0 -1
  439. package/styles/styles/theme/saga/saga-blue/_extensions.scss +0 -2
  440. package/styles/styles/theme/saga/saga-blue/_fonts.scss +0 -1
  441. package/styles/styles/theme/saga/saga-blue/_variables.scss +0 -1
  442. package/styles/styles/theme/saga/saga-blue/theme.scss +0 -4
@@ -0,0 +1,60 @@
1
+ import { FormArray, FormControl, FormControlOptions, FormControlState, FormGroup, ValidatorFn } from '@angular/forms';
2
+ import { Observable } from 'rxjs';
3
+ import { BaseEntity } from '../../entities/base-entity';
4
+
5
+ export interface SpiderlyValidatorFn extends ValidatorFn {
6
+ hasNotEmptyRule?: boolean;
7
+ }
8
+
9
+ // It's made like generic type because of <number>, <string> etc. not to put class like User.
10
+ export class SpiderlyFormControl<T = any> extends FormControl<T> {
11
+ public label: string;
12
+ public labelForDisplay: string;
13
+ public required: boolean;
14
+ private _spiderlyValidator: SpiderlyValidatorFn | null;
15
+
16
+ constructor(value: any, opts: FormControlOptions=null, required:boolean=false) {
17
+ opts = opts ?? {updateOn: 'blur'};
18
+ super(value, opts);
19
+ this.required = required;
20
+ }
21
+
22
+ override getRawValue(): T { // Doing this because .value gets only not disabled values
23
+ return super.getRawValue() as T;
24
+ }
25
+
26
+ public override get validator(): SpiderlyValidatorFn | null {
27
+ return this._spiderlyValidator;
28
+ }
29
+
30
+ public override set validator(validator: SpiderlyValidatorFn | null) {
31
+ this._spiderlyValidator = validator;
32
+ this.setValidators(validator);
33
+ }
34
+ }
35
+
36
+ export class SpiderlyFormGroup<TValue = any> extends FormGroup {
37
+ declare controls: { [P in keyof TValue]: SpiderlyFormControl<TValue[P]> };
38
+
39
+ constructor(controls: { [P in keyof TValue]: SpiderlyFormControl<TValue[P]> }) {
40
+ super(controls);
41
+ }
42
+
43
+ override getRawValue(): TValue { // Doing this because .value gets only not disabled values
44
+ return super.getRawValue() as TValue;
45
+ }
46
+
47
+ public name?: string; // Using for nested form groups
48
+ public mainDTOName?: string;
49
+ public saveObservableMethod?: (saveBody: any) => Observable<any>;
50
+ public initSaveBody?: () => BaseEntity = () => null;
51
+ public controlNamesFromHtml?: string[] = [];
52
+ }
53
+
54
+ export class SpiderlyFormArray<TValue = any> extends FormArray {
55
+ override value: TValue[]; // There is no getRawValue in FormArray
56
+ public required: boolean;
57
+ public modelConstructor: TValue;
58
+ public translationKey: string;
59
+ public controlNamesFromHtml?: string[] = [];
60
+ }
@@ -0,0 +1,8 @@
1
+ <!-- FT: this is selector, not the class -->
2
+ <div class="panel-body"
3
+ [ngClass]="{
4
+ 'non-grid-panel-bottom-padding': normalBottomPadding,
5
+ }">
6
+ <!-- 'card': true, -->
7
+ <ng-content></ng-content>
8
+ </div>
@@ -0,0 +1,16 @@
1
+ import { Component, Input, OnInit } from '@angular/core';
2
+
3
+ @Component({
4
+ selector: 'panel-body',
5
+ templateUrl: './panel-body.component.html',
6
+ styles: [],
7
+ standalone: false
8
+ })
9
+ export class PanelBodyComponent implements OnInit {
10
+ @Input() normalBottomPadding: boolean = false; // FT: By default we set to false, when the grid is inside the body.
11
+
12
+ constructor() { }
13
+
14
+ ngOnInit(): void {
15
+ }
16
+ }
@@ -0,0 +1,8 @@
1
+ <div class="spiderly-panel-footer">
2
+ <div class="buttons-wrapper">
3
+ <ng-content></ng-content>
4
+ </div>
5
+ <span class="p-text-secondary">
6
+ <ng-content select="[footerRight]"></ng-content>
7
+ </span>
8
+ </div>
@@ -4,7 +4,7 @@
4
4
  justify-content: space-between;
5
5
  gap: 10px;
6
6
  border-top: 1px solid #dee2e6;
7
- border-bottom-right-radius: 12px;
8
- border-bottom-left-radius: 12px;
9
- padding: 1rem;
7
+ border-bottom-right-radius: var(--p-content-border-radius);
8
+ border-bottom-left-radius: var(--p-content-border-radius);
9
+ padding: 18px;
10
10
  }
@@ -0,0 +1,15 @@
1
+ import { Component, OnInit } from '@angular/core';
2
+
3
+ @Component({
4
+ selector: 'panel-footer',
5
+ templateUrl: './panel-footer.component.html',
6
+ styleUrl: './panel-footer.component.scss',
7
+ standalone: false
8
+ })
9
+ export class PanelFooterComponent implements OnInit {
10
+
11
+ constructor() { }
12
+
13
+ ngOnInit(): void {
14
+ }
15
+ }
@@ -0,0 +1,25 @@
1
+ <div style="display: flex; align-items: center; gap: 24px; flex-wrap: wrap;">
2
+ @if (tabs == null) {
3
+ <div style="display: flex; align-items: center; gap: 14px;">
4
+ <span *ngIf="index != null" class="number-circle">{{index + 1}}</span>
5
+ <i class="{{icon}} primary-color" [style]="showBigTitle ? 'font-size: 19px' : 'font-size: 16px;'"></i>
6
+ <h2 [style]="(showBigTitle ? 'font-size: 16px;' : '')" class="remove-h-css">{{title}}</h2>
7
+ </div>
8
+ }
9
+ @else {
10
+ @for (tab of tabs; track $index) {
11
+ <div (click)="setTabIsSelected(tab)"
12
+ [style]="{
13
+ display: 'flex',
14
+ alignItems: 'center',
15
+ gap: '14px',
16
+ cursor: 'pointer',
17
+ fontWeight: tab.isSelected ? '700' : 'normal'
18
+ }">
19
+ <span *ngIf="index != null" class="number-circle">{{index + 1}}</span>
20
+ <i class="{{tab.icon}} primary-color" [style]="showBigTitle ? 'font-size: 19px' : 'font-size: 16px;'"></i>
21
+ <div [style]="showBigTitle ? 'font-size: 16px' : ''">{{tab.label}}</div>
22
+ </div>
23
+ }
24
+ }
25
+ </div>
@@ -0,0 +1,69 @@
1
+ import { TranslocoService } from '@jsverse/transloco';
2
+ import { Component, OnInit, Input } from '@angular/core';
3
+
4
+ @Component({
5
+ selector: 'panel-header',
6
+ templateUrl: './panel-header.component.html',
7
+ styles: [`
8
+ .p-panel-icons-end {
9
+ font-size: 50px;
10
+ }
11
+ `],
12
+ standalone: false
13
+ })
14
+ export class PanelHeaderComponent implements OnInit {
15
+ @Input() title: string;
16
+ @Input() showBigTitle: boolean;
17
+ @Input() showIcon: boolean = true;
18
+ @Input() icon: string;
19
+ @Input() index: number;
20
+ @Input() tabs: SpiderlyTab[];
21
+
22
+ constructor(
23
+ private translocoService: TranslocoService
24
+ ) { }
25
+
26
+ ngOnInit(): void {
27
+ if (this.title == null)
28
+ this.title = this.translocoService.translate('Details');
29
+
30
+ if (this.showIcon === true && this.icon == null)
31
+ this.icon = 'pi pi-file-edit';
32
+ }
33
+
34
+ setTabIsSelected(tab: SpiderlyTab){
35
+ this.tabs.forEach(t => {
36
+ t.isSelected = false;
37
+ });
38
+
39
+ tab.isSelected = true;
40
+ }
41
+ }
42
+
43
+ export class SpiderlyTab
44
+ {
45
+ label?: string;
46
+ id?: number;
47
+ icon?: string;
48
+ isSelected?: boolean;
49
+
50
+ constructor(
51
+ {
52
+ label,
53
+ id,
54
+ icon,
55
+ isSelected,
56
+ }:{
57
+ label?: string;
58
+ id?: number;
59
+ icon?: string;
60
+ isSelected?: boolean;
61
+ } = {}
62
+ ) {
63
+ this.label = label;
64
+ this.id = id;
65
+ this.icon = icon;
66
+ this.isSelected = isSelected;
67
+ }
68
+
69
+ }
@@ -0,0 +1,7 @@
1
+ <div class="card responsive-card-padding">
2
+ <div style="display: flex; align-items: center; margin-bottom: 14px; gap: 12px;">
3
+ <i style="font-size: 20px;" class="{{icon}} primary-color"></i>
4
+ <h5 style="margin: 0;">{{title}}</h5>
5
+ </div>
6
+ <ng-content></ng-content>
7
+ </div>
@@ -0,0 +1,17 @@
1
+ import { Component, Input, OnInit } from '@angular/core';
2
+
3
+ @Component({
4
+ selector: 'spiderly-card',
5
+ templateUrl: './spiderly-card.component.html',
6
+ styles: [],
7
+ standalone: false
8
+ })
9
+ export class SpiderlyCardComponent implements OnInit {
10
+ @Input() icon: string = 'pi pi-file-edit';
11
+ @Input() title: string;
12
+
13
+ constructor() { }
14
+
15
+ ngOnInit(): void {
16
+ }
17
+ }
@@ -0,0 +1,40 @@
1
+ <p-panel
2
+ [showHeader]="showPanelHeader"
3
+ [ngClass]="{
4
+ 'multiple-panel-first-without-header': isFirstMultiplePanel && !showPanelHeader,
5
+ 'multiple-panel-first': isFirstMultiplePanel,
6
+ 'multiple-panel-middle-without-header': isMiddleMultiplePanel && !showPanelHeader,
7
+ 'multiple-panel-middle': isMiddleMultiplePanel,
8
+ 'multiple-panel-last-without-header': isLastMultiplePanel && !showPanelHeader,
9
+ 'multiple-panel-last': isLastMultiplePanel,
10
+ 'panel-border': !isFirstMultiplePanel,
11
+ 'spiderly-panel': true,
12
+ }"
13
+ [toggleable]="toggleable"
14
+ [collapsed]="toggleable && collapsed"
15
+ expandIcon="pi pi-chevron-up"
16
+ collapseIcon="pi pi-chevron-down"
17
+ >
18
+ <ng-template pTemplate="header">
19
+ <div>
20
+ <ng-content select="panel-header"></ng-content>
21
+ </div>
22
+ </ng-template>
23
+
24
+ <ng-template pTemplate="icons">
25
+ <div *ngIf="showCrudMenu && crudMenu" class="mr-2">
26
+ <i class="pi pi-ellipsis-h icon-hover" (click)="menuItemClick(index, $event)"></i>
27
+ <p-menu #menu [model]="crudMenu" [popup]="true" appendTo="body"></p-menu>
28
+ </div>
29
+ <div *ngIf="showRemoveIcon" class="mr-2">
30
+ <i class="pi pi-minus icon-hover error-color-light" (click)="removeItemClick()"></i>
31
+ </div>
32
+ </ng-template>
33
+
34
+ <div class="panel-body-wrapper">
35
+ <ng-content select="panel-body"></ng-content>
36
+ </div>
37
+
38
+ <ng-content select="panel-footer"></ng-content>
39
+
40
+ </p-panel>
@@ -0,0 +1,11 @@
1
+ :host {
2
+ ::ng-deep {
3
+ .p-panel{
4
+ overflow: hidden;
5
+ }
6
+ .p-panel-icons{
7
+ display: flex;
8
+ align-items: center;
9
+ }
10
+ }
11
+ }
@@ -0,0 +1,42 @@
1
+ import { Component, EventEmitter, Input, OnInit, Output, ViewChild } from '@angular/core';
2
+ import { MenuItem } from 'primeng/api';
3
+ import { Menu } from 'primeng/menu';
4
+
5
+ @Component({
6
+ selector: 'spiderly-panel',
7
+ templateUrl: './spiderly-panel.component.html',
8
+ styleUrl: './spiderly-panel.component.scss',
9
+ standalone: false
10
+ })
11
+ export class SpiderlyPanelComponent implements OnInit {
12
+ @Input() isFirstMultiplePanel: boolean = false;
13
+ @Input() isMiddleMultiplePanel: boolean = false;
14
+ @Input() isLastMultiplePanel: boolean = false;
15
+ @Input() toggleable: boolean = false;
16
+ @Input() collapsed: boolean = false;
17
+ @Input() crudMenu: MenuItem[];
18
+ @Input() showCrudMenu: boolean = true;
19
+ @Input() showRemoveIcon: boolean = false;
20
+ @Input() index: number;
21
+ @Input() showPanelHeader: boolean = true;
22
+
23
+ @Output() onMenuIconClick: EventEmitter<number> = new EventEmitter();
24
+ @Output() onRemoveIconClick: EventEmitter<null> = new EventEmitter();
25
+
26
+ @ViewChild('menu') menu: Menu;
27
+
28
+ constructor() { }
29
+
30
+ ngOnInit(): void {
31
+ }
32
+
33
+ menuItemClick(index: number, event){
34
+ this.menu.toggle(event);
35
+ this.onMenuIconClick.next(index);
36
+ }
37
+
38
+ removeItemClick(){
39
+ this.onRemoveIconClick.next(null);
40
+ }
41
+
42
+ }
@@ -0,0 +1,32 @@
1
+ import { NgModule } from '@angular/core';
2
+ import { CommonModule } from '@angular/common';
3
+ import { PanelBodyComponent } from './panel-body/panel-body.component';
4
+ import { PanelFooterComponent } from './panel-footer/panel-footer.component';
5
+ import { PanelHeaderComponent } from './panel-header/panel-header.component';
6
+ import { SpiderlyPanelComponent } from './spiderly-panel/spiderly-panel.component';
7
+ import { SpiderlyCardComponent } from './spiderly-card/spiderly-card.component';
8
+ import { PrimengModule } from '../../modules/primeng.module';
9
+
10
+ @NgModule({
11
+ imports: [
12
+ CommonModule,
13
+ PrimengModule,
14
+ ],
15
+ exports: [
16
+ PanelHeaderComponent,
17
+ PanelBodyComponent,
18
+ PanelFooterComponent,
19
+ SpiderlyPanelComponent,
20
+ SpiderlyCardComponent
21
+ ],
22
+ declarations: [
23
+ PanelHeaderComponent,
24
+ PanelBodyComponent,
25
+ PanelFooterComponent,
26
+ SpiderlyPanelComponent,
27
+ SpiderlyCardComponent
28
+ ],
29
+ providers: [
30
+ ]
31
+ })
32
+ export class SpiderlyPanelsModule {}
@@ -0,0 +1,17 @@
1
+ import {
2
+ Component,
3
+ EventEmitter,
4
+ Output,
5
+ } from '@angular/core';
6
+ import { AutoCompleteCompleteEvent } from 'primeng/autocomplete';
7
+ import { BaseDropdownControl } from './base-dropdown-control';
8
+
9
+ @Component({
10
+ selector: 'base-autocomplete-control',
11
+ template: '',
12
+ styles: [],
13
+ standalone: false
14
+ })
15
+ export class BaseAutocompleteControl extends BaseDropdownControl {
16
+ @Output() onTextInput: EventEmitter<AutoCompleteCompleteEvent> = new EventEmitter();
17
+ }
@@ -0,0 +1,60 @@
1
+ import {
2
+ Component, Input,
3
+ } from '@angular/core';
4
+ import { SpiderlyFormControl } from '../components/spiderly-form-control/spiderly-form-control';
5
+ import { TranslocoService } from '@jsverse/transloco';
6
+
7
+ @Component({
8
+ selector: 'base-control',
9
+ template: '',
10
+ styles: [],
11
+ standalone: false
12
+ })
13
+ export class BaseControl {
14
+ @Input() control: SpiderlyFormControl; // FT: if you name it formControl: https://stackoverflow.com/a/54755671/21209982
15
+ @Input() disabled: boolean = false;
16
+ @Input() showLabel: boolean = true;
17
+ @Input() label: string = null; // NgModel/Want custom translation
18
+ @Input() controlValid: boolean = true; // NgModel
19
+ @Input() placeholder: string = '';
20
+ @Input() showTooltip: boolean = false;
21
+ @Input() tooltipText: string = null;
22
+ @Input() tooltipIcon: string = 'pi pi-info-circle';
23
+ errorMessageTooltipEvent: 'hover' | 'focus';
24
+
25
+ constructor(
26
+ protected translocoService: TranslocoService,
27
+ ) {
28
+
29
+ }
30
+
31
+ ngOnInit(){
32
+ if(this.control != null && this.disabled == true)
33
+ this.control.disable();
34
+
35
+ // TODO FT: Delete if you don't need
36
+ // if(this.control?.validator?.hasNotEmptyRule == true) // FT HACK: Be carefull with this name, if you change it in generator you need to change it here also
37
+ // this.control.required = true;
38
+
39
+ this.errorMessageTooltipEvent = window.innerWidth > 1000 ? 'hover' : 'focus'
40
+ }
41
+
42
+ ngAfterViewInit(){
43
+
44
+ }
45
+
46
+ getTranslatedLabel(): string{
47
+ return this.label ?? this.control.labelForDisplay;
48
+ }
49
+
50
+ getValidationErrrorMessages(){
51
+ if(this.control?.errors && this.control?.dirty){
52
+ // FT: it should always be one error message for single form control,
53
+ // also i don't need to reassign it to null because it will be shown only when control.valid == false
54
+ return this.control.errors['_'];
55
+ }
56
+
57
+ return null;
58
+ }
59
+
60
+ }
@@ -0,0 +1,37 @@
1
+ import {
2
+ Component,
3
+ EventEmitter,
4
+ Input,
5
+ Output,
6
+ } from '@angular/core';
7
+ import { BaseControl } from './base-control';
8
+ import { PrimengOption } from '../entities/primeng-option';
9
+ import { TranslocoService } from '@jsverse/transloco';
10
+
11
+ @Component({
12
+ selector: 'base-dropdown-control',
13
+ template: '',
14
+ styles: [],
15
+ standalone: false
16
+ })
17
+ export class BaseDropdownControl extends BaseControl {
18
+ @Input() options: PrimengOption[];
19
+ @Input() showAddon: boolean = false;
20
+ @Input() addonIcon: string = 'pi pi-ellipsis-h';
21
+ @Input() override placeholder: string = this.translocoService.translate('SelectFromTheList');
22
+ @Output() onButtonClick: EventEmitter<null> = new EventEmitter();
23
+
24
+ constructor(
25
+ protected override translocoService: TranslocoService,
26
+ ) {
27
+ super(translocoService);
28
+ }
29
+
30
+ dropdownMarkAsDirty(){
31
+ this.control.markAsDirty();
32
+ }
33
+
34
+ addonClick(){
35
+ this.onButtonClick.next(null);
36
+ }
37
+ }
@@ -0,0 +1,36 @@
1
+ <ng-container *transloco="let t">
2
+ <div class="flex flex-column gap-2">
3
+ <div *ngIf="getTranslatedLabel() != '' && getTranslatedLabel() != null">
4
+ <label>{{getTranslatedLabel()}}</label>
5
+ <required *ngIf="control?.required"></required>
6
+ </div>
7
+
8
+ <p-inputgroup>
9
+ <p-autocomplete
10
+ *ngIf="control"
11
+ [pTooltip]="getValidationErrrorMessages()" [tooltipEvent]="errorMessageTooltipEvent" tooltipPosition="bottom" [tooltipDisabled]="control.valid" tooltipStyleClass="spiderly-tooltip-invalid"
12
+ [id]="label"
13
+ [formControl]="control"
14
+ [placeholder]="placeholder"
15
+ [suggestions]="options"
16
+ optionLabel="label"
17
+ optionValue="code"
18
+ (completeMethod)="search($event)"
19
+ [forceSelection]="true"
20
+ [dropdown]="false"
21
+ [showClear]="showClear"
22
+ (onHide)="dropdownMarkAsDirty()"
23
+ (onSelect)="select($event)"
24
+ [completeOnFocus]="true"
25
+ [style]="{'width': '100%'}"
26
+ [fluid]="true"
27
+ [appendTo]="appendTo"
28
+ [emptyMessage]="emptyMessage"
29
+ [lazy]="true"
30
+ />
31
+ <p-inputgroup-addon *ngIf="showAddon" (click)="addonClick()" [style]="{'cursor': 'pointer', 'background-color': 'var(--p-primary-color)', 'border-color': 'var(--p-primary-color)'}">
32
+ <i class="{{addonIcon}}" style="color: #fff;"></i>
33
+ </p-inputgroup-addon>
34
+ </p-inputgroup>
35
+ </div>
36
+ </ng-container>
@@ -0,0 +1,56 @@
1
+ import { Component, Input, OnInit } from '@angular/core';
2
+ import { AutoCompleteCompleteEvent } from 'primeng/autocomplete';
3
+ import { BaseAutocompleteControl } from '../base-autocomplete-control';
4
+ import { CommonModule } from '@angular/common';
5
+ import { ReactiveFormsModule, FormsModule } from '@angular/forms';
6
+ import { RequiredComponent } from '../../components/required/required.component';
7
+ import { TranslocoDirective, TranslocoService } from '@jsverse/transloco';
8
+ import { PrimengModule } from '../../modules/primeng.module';
9
+
10
+ @Component({
11
+ selector: 'spiderly-autocomplete',
12
+ templateUrl: './spiderly-autocomplete.component.html',
13
+ styles: [],
14
+ imports: [
15
+ ReactiveFormsModule,
16
+ FormsModule,
17
+ PrimengModule,
18
+ CommonModule,
19
+ RequiredComponent,
20
+ TranslocoDirective,
21
+ ]
22
+ })
23
+ export class SpiderlyAutocompleteComponent extends BaseAutocompleteControl implements OnInit {
24
+ @Input() appendTo: any = 'body';
25
+ @Input() showClear: boolean = true;
26
+ @Input() emptyMessage: string;
27
+ @Input() displayName: string; // Added because when we initialize the object options are null
28
+
29
+ constructor(
30
+ protected override translocoService: TranslocoService,
31
+ ) {
32
+ super(translocoService);
33
+ }
34
+
35
+ override ngOnInit(){
36
+ super.ngOnInit();
37
+
38
+ if (this.options == null && this.control.value != null) {
39
+ this.options = [
40
+ { label: this.displayName, code: this.control.value }
41
+ ];
42
+ }
43
+
44
+ if (this.emptyMessage == null) {
45
+ this.emptyMessage = this.translocoService.translate('EmptyMessage');
46
+ }
47
+ }
48
+
49
+ search(event: AutoCompleteCompleteEvent){
50
+ this.onTextInput.next(event);
51
+ }
52
+
53
+ select(event){
54
+ }
55
+
56
+ }
@@ -0,0 +1,21 @@
1
+ <div class="flex flex-column gap-2">
2
+ <div *ngIf="getTranslatedLabel() != '' && getTranslatedLabel() != null">
3
+ <label>{{getTranslatedLabel()}}</label>
4
+ <required *ngIf="control?.required"></required>
5
+ <!-- tabindex="-1": Makes the element focusable, but removes it from the tab order. -->
6
+ <i *ngIf="showTooltip" class="{{tooltipIcon}}" style="margin-left: 5px; cursor: pointer;" [pTooltip]="tooltipText" tabindex="-1" tooltipEvent="focus"></i>
7
+ </div>
8
+ <p-datepicker
9
+ *ngIf="control"
10
+ [pTooltip]="getValidationErrrorMessages()" [tooltipEvent]="errorMessageTooltipEvent" tooltipPosition="bottom" [tooltipDisabled]="control.valid" tooltipStyleClass="spiderly-tooltip-invalid"
11
+ [formControl]="control"
12
+ (onBlur)="control.markAsDirty()"
13
+ dateFormat="dd.mm.yy."
14
+ iconDisplay="input"
15
+ [showIcon]="true"
16
+ [showTime]="showTime"
17
+ (onSelect)="setDate($event)"
18
+ appendTo="body"
19
+ [fluid]="true"
20
+ />
21
+ </div>
@@ -0,0 +1,37 @@
1
+ import { Component, Input, OnInit } from '@angular/core';
2
+ import { BaseControl } from '../base-control';
3
+ import { CommonModule } from '@angular/common';
4
+ import { ReactiveFormsModule, FormsModule } from '@angular/forms';
5
+ import { RequiredComponent } from '../../components/required/required.component';
6
+ import { TranslocoService } from '@jsverse/transloco';
7
+ import { PrimengModule } from '../../modules/primeng.module';
8
+
9
+ @Component({
10
+ selector: 'spiderly-calendar',
11
+ templateUrl: './spiderly-calendar.component.html',
12
+ styles: [],
13
+ imports: [
14
+ CommonModule,
15
+ ReactiveFormsModule,
16
+ FormsModule,
17
+ PrimengModule,
18
+ RequiredComponent
19
+ ]
20
+ })
21
+ export class SpiderlyCalendarComponent extends BaseControl implements OnInit {
22
+ @Input() showTime: boolean = false;
23
+
24
+ constructor(
25
+ protected override translocoService: TranslocoService,
26
+ ) {
27
+ super(translocoService);
28
+ }
29
+
30
+ override ngOnInit(){
31
+ super.ngOnInit();
32
+ }
33
+
34
+ setDate(event:Date) {
35
+
36
+ }
37
+ }
@@ -0,0 +1,16 @@
1
+ <div class="flex flex-column gap-2">
2
+ <div *ngIf="inlineLabel === false && getTranslatedLabel() != '' && getTranslatedLabel() != null">
3
+ <label>{{getTranslatedLabel()}}</label>
4
+ <required *ngIf="control?.required"></required>
5
+ </div>
6
+ <div class="p-inputgroup p-fluid" style="margin-top: 0.5rem;">
7
+ <p-checkbox
8
+ *ngIf="control"
9
+ [pTooltip]="getValidationErrrorMessages()" [tooltipEvent]="errorMessageTooltipEvent" tooltipPosition="bottom" [tooltipDisabled]="control.valid" tooltipStyleClass="spiderly-tooltip-invalid"
10
+ [formControl]="control"
11
+ [value]="inlineLabel ? label : null"
12
+ [id]="label"
13
+ [binary]="true"
14
+ />
15
+ </div>
16
+ </div>