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,64 @@
1
+ <div class="layout-topbar">
2
+ <a class="layout-topbar-logo" routerLink="/">
3
+ <span>{{companyName?.toLocaleUpperCase()}}</span>
4
+ </a>
5
+
6
+ <button
7
+ #menubutton
8
+ class="p-link layout-menu-button layout-topbar-button"
9
+ (click)="layoutService.onMenuToggle()"
10
+ >
11
+ <i class="pi pi-bars"></i>
12
+ </button>
13
+
14
+ <div
15
+ #topbarmenu
16
+ class="profile-button"
17
+ >
18
+ <div
19
+ #topbarprofiledropdownmenubutton
20
+ (click)="layoutService.showProfileDropdownSidebar()"
21
+ >
22
+ <p-avatar
23
+ *ngIf="showProfileIcon"
24
+ [label]="avatarLabel"
25
+ [style]="{ 'background-color': 'var(--p-primary-color)', 'color': '#fff', 'cursor': 'pointer', 'width': '34px', 'height': '34px', 'font-size': '21px' }"
26
+ pBadge
27
+ [badgeStyleClass]="'p-badge-danger'"
28
+ [badgeDisabled]="unreadNotificationsCount == 0 || unreadNotificationsCount == null"
29
+ [value]="unreadNotificationsCount"
30
+ />
31
+ </div>
32
+ <div
33
+ #topbarprofiledropdownmenu
34
+ (document:click)="onDocumentClick($event)"
35
+ >
36
+ <div *ngIf="layoutService.state.profileDropdownSidebarVisible" style="width: 280px; position: absolute; right: 26px; top: 60px; padding: 15px;" class="card">
37
+ <div style="display: flex; flex-direction: column; justify-content: center; text-align: center; gap: 10px;">
38
+ <p-avatar
39
+ [label]="avatarLabel"
40
+ size="xlarge"
41
+ [style]="{ 'background-color': 'var(--p-primary-color)', 'color': '#fff', 'cursor': 'pointer', 'margin': 'auto' }"
42
+ (click)="routeToUserPage()"
43
+ />
44
+ <div>{{currentUser?.email}}</div>
45
+ </div>
46
+ <div style="margin-top: 15px;">
47
+ <div *ngFor="let item of menuItems" [style]="item.showSeparator ? 'margin-top: 5px;' : ''">
48
+ <div *ngIf="item.showSeparator" class="gray-separator"></div>
49
+ <div (click)="item.onClick()" class="hover-card" style="display: flex; align-items: center; gap: 5px; margin-top: 5px;">
50
+ <i
51
+ class="pi pi-fw {{item.icon}} primary-color"
52
+ style="font-size: 16px; position: relative;"
53
+ >
54
+ <span *ngIf="item.showNotificationBadge && unreadNotificationsCount != 0" class="badge"></span>
55
+ </i>
56
+ <div> {{item.label}} </div>
57
+ </div>
58
+ </div>
59
+ </div>
60
+ </div>
61
+ </div>
62
+ </div>
63
+ </div>
64
+
@@ -0,0 +1,137 @@
1
+ import { TranslocoService } from '@jsverse/transloco';
2
+ import { NavigationEnd, Router, RouterModule } from '@angular/router';
3
+ import { Component, ElementRef, OnDestroy, ViewChild } from '@angular/core';
4
+ import { filter, Subscription } from 'rxjs';
5
+ import { AuthBaseService } from '../../../services/auth-base.service';
6
+ import { LayoutBaseService } from '../../../services/app-layout-base.service';
7
+ import { ApiSecurityService } from '../../../services/api.service.security';
8
+ import { ConfigBaseService } from '../../../services/config-base.service';
9
+ import { User } from '../../../entities/security-entities';
10
+ import { CommonModule } from '@angular/common';
11
+ import { PrimengModule } from '../../../modules/primeng.module';
12
+
13
+ interface SpiderlyMenuItem {
14
+ label?: string;
15
+ icon?: string;
16
+ showSeparator?: boolean;
17
+ onClick?: () => void;
18
+ showNotificationBadge?: boolean;
19
+ }
20
+
21
+ @Component({
22
+ selector: 'topbar',
23
+ templateUrl: './topbar.component.html',
24
+ styles: [],
25
+ imports: [
26
+ CommonModule,
27
+ PrimengModule,
28
+ RouterModule
29
+ ]
30
+ })
31
+ export class AppTopBarComponent implements OnDestroy {
32
+ private initTopBarSubscription: Subscription | null = null;
33
+
34
+ currentUser: User;
35
+ userProfilePath: string;
36
+ unreadNotificationsCount: number;
37
+ menuItems: SpiderlyMenuItem[] = [];
38
+ avatarLabel: string;
39
+ companyName: string;
40
+ showProfileIcon: boolean = false;
41
+
42
+ notificationMenuItem: SpiderlyMenuItem =
43
+ {
44
+ label: this.translocoService.translate('Notifications'),
45
+ icon: 'pi-bell',
46
+ showNotificationBadge: true,
47
+ onClick: () => {
48
+ this.router.navigateByUrl(`/notifications`);
49
+ },
50
+ };
51
+
52
+ @ViewChild('menubutton') menuButton!: ElementRef;
53
+
54
+ @ViewChild('topbarmenu') menu!: ElementRef;
55
+
56
+ @ViewChild('topbarprofiledropdownmenubutton') topbarProfileDropdownMenuButton!: ElementRef;
57
+
58
+ constructor(
59
+ public layoutService: LayoutBaseService,
60
+ private authService: AuthBaseService,
61
+ private apiService: ApiSecurityService,
62
+ protected router: Router,
63
+ private translocoService: TranslocoService,
64
+ private config: ConfigBaseService
65
+ ) {
66
+ }
67
+
68
+ async ngOnInit(){
69
+ this.menuItems = [
70
+ {
71
+ label: this.translocoService.translate('YourProfile'),
72
+ icon: 'pi-user',
73
+ showSeparator: true,
74
+ onClick: () => {
75
+ this.routeToUserPage();
76
+ }
77
+ },
78
+ this.notificationMenuItem,
79
+ // {
80
+ // label: this.translocoService.translate('Settings'),
81
+ // icon: 'pi-cog',
82
+ // onClick: () => {
83
+ // this.router.navigateByUrl(`/administration/users`);
84
+ // }
85
+ // },
86
+ {
87
+ label: this.translocoService.translate('Logout'),
88
+ icon: 'pi-sign-out',
89
+ showSeparator: true,
90
+ onClick: () => {
91
+ this.authService.logout();
92
+ }
93
+ }
94
+ ];
95
+
96
+ this.router.events
97
+ .pipe(filter(event => event instanceof NavigationEnd))
98
+ .subscribe((event: NavigationEnd) => {
99
+ this.layoutService.state.profileDropdownSidebarVisible = false;
100
+ });
101
+
102
+ this.onAfterNgOnInit();
103
+ }
104
+
105
+ onAfterNgOnInit = () => {
106
+ this.initTopBarSubscription = this.layoutService.initTopBarData().subscribe(initTopBarData => {
107
+ this.userProfilePath = initTopBarData.userProfilePath;
108
+ this.companyName = initTopBarData.companyName;
109
+ this.unreadNotificationsCount = initTopBarData.unreadNotificationsCount;
110
+ this.notificationMenuItem.showNotificationBadge = initTopBarData.unreadNotificationsCount > 0;
111
+ this.showProfileIcon = initTopBarData.showProfileIcon;
112
+ this.currentUser = initTopBarData.currentUser;
113
+ this.avatarLabel = initTopBarData.currentUser?.email.charAt(0).toLocaleUpperCase();
114
+ });
115
+ }
116
+
117
+ onDocumentClick(event: any) {
118
+ if (
119
+ !this.menu.nativeElement.contains(event.target)
120
+ ) {
121
+ if (this.layoutService.state.profileDropdownSidebarVisible == true) {
122
+ this.layoutService.state.profileDropdownSidebarVisible = false;
123
+ }
124
+ }
125
+ }
126
+
127
+ routeToUserPage(){
128
+ this.router.navigateByUrl(this.userProfilePath);
129
+ }
130
+
131
+ ngOnDestroy(): void {
132
+ if (this.initTopBarSubscription) {
133
+ this.initTopBarSubscription.unsubscribe();
134
+ }
135
+ }
136
+
137
+ }
@@ -0,0 +1,27 @@
1
+ <div class="flex min-h-screen overflow-hidden" style="padding: 20px;">
2
+ <div class="flex flex-column w-full">
3
+ <div class="w-full sm:w-30rem" style="margin: auto; border-radius:50px; padding:0.3rem; background: linear-gradient(180deg, var(--p-primary-color) 10%, rgba(33, 150, 243, 0) 30%);">
4
+ <div class="surface-card py-6 px-5 sm:px-6" style="border-radius:45px;">
5
+ <div class="text-center">
6
+ <img
7
+ src="assets/images/logo/logo.svg"
8
+ alt="{{companyName}} Logo"
9
+ title="{{companyName}} Logo"
10
+ height="60"
11
+ class="mb-2 w-6rem flex-shrink-0"
12
+ >
13
+ </div>
14
+ <h1 class="mb-4">
15
+ <div class="font-bold text-5xl lg:text-6xl gradient-title">404</div>
16
+ <div class="font-bold text-5xl lg:text-6xl">Page Not Found</div>
17
+ </h1>
18
+ <div class="text-600 text-lg mb-5">
19
+ The page you're looking for doesn't exist or has been moved. Let's get you back on track.
20
+ </div>
21
+ <div>
22
+ <p-button [routerLink]="['/']" label="Go to Homepage"></p-button>
23
+ </div>
24
+ </div>
25
+ </div>
26
+ </div>
27
+ </div>
@@ -0,0 +1,22 @@
1
+ import { Component } from '@angular/core';
2
+ import { ConfigBaseService } from '../../services/config-base.service';
3
+ import { RouterModule } from '@angular/router';
4
+ import { ButtonModule } from 'primeng/button';
5
+
6
+ @Component({
7
+ selector: 'not-found',
8
+ templateUrl: './not-found.component.html',
9
+ imports: [
10
+ RouterModule,
11
+ ButtonModule,
12
+ ]
13
+ })
14
+ export class NotFoundComponent {
15
+ companyName = this.config.companyName;
16
+
17
+ constructor(
18
+ private config: ConfigBaseService
19
+ ) {
20
+
21
+ }
22
+ }
@@ -0,0 +1 @@
1
+ <span style="color: red; margin-left: 4px;">*</span>
@@ -0,0 +1,13 @@
1
+ import { Component } from "@angular/core";
2
+
3
+ @Component({
4
+ selector: 'required',
5
+ templateUrl: './required.component.html',
6
+ styles: [],
7
+ standalone: true,
8
+ })
9
+ export class RequiredComponent {
10
+
11
+ constructor() {}
12
+
13
+ }
@@ -0,0 +1,5 @@
1
+ <ng-container *transloco="let t">
2
+ <spiderly-button (onClick)="handleGoogleLogin()" [label]="t('ContinueWithGoogle')" [outlined]="true" [style]="{width: '100%'}">
3
+ <svg xmlns="http://www.w3.org/2000/svg" width="0.98em" height="1em" viewBox="0 0 256 262"><path fill="#4285f4" d="M255.878 133.451c0-10.734-.871-18.567-2.756-26.69H130.55v48.448h71.947c-1.45 12.04-9.283 30.172-26.69 42.356l-.244 1.622l38.755 30.023l2.685.268c24.659-22.774 38.875-56.282 38.875-96.027"/><path fill="#34a853" d="M130.55 261.1c35.248 0 64.839-11.605 86.453-31.622l-41.196-31.913c-11.024 7.688-25.82 13.055-45.257 13.055c-34.523 0-63.824-22.773-74.269-54.25l-1.531.13l-40.298 31.187l-.527 1.465C35.393 231.798 79.49 261.1 130.55 261.1"/><path fill="#fbbc05" d="M56.281 156.37c-2.756-8.123-4.351-16.827-4.351-25.82c0-8.994 1.595-17.697 4.206-25.82l-.073-1.73L15.26 71.312l-1.335.635C5.077 89.644 0 109.517 0 130.55s5.077 40.905 13.925 58.602z"/><path fill="#eb4335" d="M130.55 50.479c24.514 0 41.05 10.589 50.479 19.438l36.844-35.974C195.245 12.91 165.798 0 130.55 0C79.49 0 35.393 29.301 13.925 71.947l42.211 32.783c10.59-31.477 39.891-54.251 74.414-54.251"/></svg>
4
+ </spiderly-button>
5
+ </ng-container>
@@ -0,0 +1,53 @@
1
+ import { Component, EventEmitter, Output } from "@angular/core";
2
+ import { TranslocoDirective } from "@jsverse/transloco";
3
+ import { ButtonModule } from "primeng/button";
4
+ import { SpiderlyButtonComponent } from "../spiderly-button/spiderly-button.component";
5
+
6
+ @Component({
7
+ selector: 'google-button',
8
+ templateUrl: './google-button.component.html',
9
+ styles: [],
10
+ imports: [
11
+ ButtonModule,
12
+ TranslocoDirective,
13
+ SpiderlyButtonComponent
14
+ ]
15
+ })
16
+ export class GoogleButtonComponent { // Custom styling of the google button - https://medium.com/simform-engineering/implement-custom-google-sign-in-using-angular-16-9c93aeff6252
17
+ // @Output() onClick: EventEmitter<any> = new EventEmitter();
18
+ @Output() loginWithGoogle: EventEmitter<any> = new EventEmitter<any>();
19
+
20
+ constructor() {}
21
+
22
+ createFakeGoogleWrapper = () => {
23
+ const googleLoginWrapper = document.createElement('div');
24
+ googleLoginWrapper.style.display = 'none';
25
+ googleLoginWrapper.classList.add('custom-google-button');
26
+ document.body.appendChild(googleLoginWrapper);
27
+ window.google.accounts.id.renderButton(googleLoginWrapper, {
28
+ type: 'icon',
29
+ width: '200',
30
+ });
31
+
32
+ const googleLoginWrapperButton = googleLoginWrapper.querySelector(
33
+ 'div[role=button]'
34
+ ) as HTMLElement;
35
+
36
+ return {
37
+ click: () => {
38
+ googleLoginWrapperButton?.click();
39
+ },
40
+ };
41
+ };
42
+
43
+ handleGoogleLogin() {
44
+ this.loginWithGoogle.emit(this.createFakeGoogleWrapper());
45
+ }
46
+
47
+ }
48
+
49
+ declare global {
50
+ interface Window {
51
+ google: any;
52
+ }
53
+ }
@@ -0,0 +1,3 @@
1
+ <ng-container *transloco="let t">
2
+ <spiderly-button (onClick)="onReturn()" [label]="t('Return')" icon="pi pi-undo" [outlined]="true"></spiderly-button>
3
+ </ng-container>
@@ -0,0 +1,35 @@
1
+ import { Component, Input } from "@angular/core";
2
+ import { Router } from '@angular/router';
3
+ import { CommonModule } from "@angular/common";
4
+ import { getParentUrl } from "../../../services/helper-functions";
5
+ import { TranslocoDirective } from "@jsverse/transloco";
6
+ import { ButtonModule } from "primeng/button";
7
+ import { SpiderlyButtonComponent } from "../spiderly-button/spiderly-button.component";
8
+
9
+ @Component({
10
+ selector: 'return-button',
11
+ templateUrl: './return-button.component.html',
12
+ styles: [],
13
+ imports: [
14
+ CommonModule,
15
+ ButtonModule,
16
+ SpiderlyButtonComponent,
17
+ TranslocoDirective,
18
+ ]
19
+ })
20
+ export class SpiderlyReturnButtonComponent {
21
+ @Input() navigateUrl: string;
22
+
23
+ constructor(private router: Router) {}
24
+
25
+ onReturn(){
26
+ if(this.navigateUrl == undefined){
27
+ const currentUrl = this.router.url;
28
+ const parentUrl: string = getParentUrl(currentUrl);
29
+ this.router.navigateByUrl(parentUrl);
30
+ }
31
+ else{
32
+ this.router.navigate([this.navigateUrl]);
33
+ }
34
+ }
35
+ }
@@ -0,0 +1,14 @@
1
+ <p-button
2
+ (onClick)="handleClick($event)"
3
+ [label]="label"
4
+ [icon]="icon"
5
+ [outlined]="outlined"
6
+ [styleClass]="styleClass"
7
+ [severity]="severity"
8
+ [rounded]="rounded"
9
+ [style]="style"
10
+ [class]="class"
11
+ [disabled]="disabled"
12
+ >
13
+ <ng-content></ng-content>
14
+ </p-button>
@@ -0,0 +1,27 @@
1
+ import { Component, EventEmitter, Input, Output } from "@angular/core";
2
+ import { CommonModule } from "@angular/common";
3
+ import { ButtonModule } from "primeng/button";
4
+ import { SplitButtonModule } from "primeng/splitbutton";
5
+ import { Subject, Subscription, throttleTime } from "rxjs";
6
+ import { Router } from "@angular/router";
7
+ import { MenuItem } from "primeng/api";
8
+ import { SpiderlyButtonBaseComponent } from "../spiderly-button-base/spiderly-button-base";
9
+
10
+ @Component({
11
+ selector: 'spiderly-button',
12
+ templateUrl: './spiderly-button.component.html',
13
+ styles: [],
14
+ imports: [
15
+ CommonModule,
16
+ ButtonModule,
17
+ SplitButtonModule
18
+ ]
19
+ })
20
+ export class SpiderlyButtonComponent extends SpiderlyButtonBaseComponent {
21
+
22
+ // constructor() {
23
+ // super();
24
+
25
+ // }
26
+
27
+ }
@@ -0,0 +1,61 @@
1
+ import { Component, EventEmitter, Input, Output } from "@angular/core";
2
+ import { CommonModule } from "@angular/common";
3
+ import { ButtonModule } from "primeng/button";
4
+ import { SplitButtonModule } from "primeng/splitbutton";
5
+ import { Subject, Subscription, throttleTime } from "rxjs";
6
+ import { Router } from "@angular/router";
7
+ import { MenuItem } from "primeng/api";
8
+
9
+ @Component({
10
+ selector: 'spiderly-button-base',
11
+ template: ``,
12
+ styles: [],
13
+ imports: [
14
+ CommonModule,
15
+ ButtonModule,
16
+ SplitButtonModule
17
+ ]
18
+ })
19
+ export class SpiderlyButtonBaseComponent {
20
+ @Input() icon: string;
21
+ @Input() label: string;
22
+ @Input() outlined: boolean = false;
23
+ @Input() rounded: boolean = false;
24
+ @Input() styleClass: string;
25
+ @Input() routerLink: string;
26
+ @Input() style: { [klass: string]: any; };
27
+ @Input() class: string;
28
+ @Input() severity: 'success' | 'info' | 'warning' | 'danger' | 'help' | 'primary' | 'secondary' | 'contrast' | null | undefined;
29
+ @Input() disabled: boolean = false;
30
+
31
+ @Output() onClick = new EventEmitter<Event>();
32
+ private clickSubject = new Subject<Event>(); // Internal subject to handle click events.
33
+ private subscription: Subscription;
34
+
35
+ constructor(
36
+ private router: Router
37
+ ) {
38
+
39
+ }
40
+
41
+ ngOnInit(){
42
+ this.subscription = this.clickSubject
43
+ .pipe(throttleTime(500))
44
+ .subscribe((event: Event) => this.onClick.emit(event));
45
+ }
46
+
47
+ handleClick = (event: Event) => {
48
+ event.preventDefault();
49
+ event.stopPropagation();
50
+ if (this.routerLink !== undefined) {
51
+ this.router.navigate([this.routerLink]);
52
+ }
53
+ else{
54
+ this.clickSubject.next(event);
55
+ }
56
+ }
57
+
58
+ ngOnDestroy() {
59
+ this.subscription.unsubscribe();
60
+ }
61
+ }
@@ -0,0 +1,15 @@
1
+ <p-splitButton
2
+ (onClick)="handleClick($event)"
3
+ [label]="label"
4
+ [icon]="icon"
5
+ [outlined]="outlined"
6
+ [styleClass]="styleClass"
7
+ [severity]="severity"
8
+ [rounded]="rounded"
9
+ [style]="style"
10
+ [class]="class"
11
+ [disabled]="disabled"
12
+ [model]="dropdownItems"
13
+ >
14
+ <ng-content></ng-content>
15
+ </p-splitButton>
@@ -0,0 +1,24 @@
1
+ import { Component, Input } from "@angular/core";
2
+ import { CommonModule } from "@angular/common";
3
+ import { ButtonModule } from "primeng/button";
4
+ import { SplitButtonModule } from "primeng/splitbutton";
5
+
6
+ import { MenuItem } from "primeng/api";
7
+ import { SpiderlyButtonBaseComponent } from "../spiderly-button-base/spiderly-button-base";
8
+
9
+ @Component({
10
+ selector: 'spiderly-split-button',
11
+ templateUrl: './spiderly-split-button.component.html',
12
+ styles: [],
13
+ imports: [
14
+ CommonModule,
15
+ ButtonModule,
16
+ SplitButtonModule
17
+ ]
18
+ })
19
+ export class SpiderlySplitButtonComponent extends SpiderlyButtonBaseComponent {
20
+ @Input() dropdownItems: MenuItem[];
21
+
22
+
23
+
24
+ }
@@ -0,0 +1,93 @@
1
+ <ng-container *transloco="let t">
2
+ <div [class]="showCardWrapper ? 'card responsive-card-padding overflow-auto' : ''">
3
+ <p-table #dt [value]="items" [rows]="rows" [rowHover]="true" [paginator]="showPaginator" responsiveLayout="scroll" [lazy]="hasLazyLoad"
4
+ (onLazyLoad)="lazyLoad($event)" [totalRecords]="totalRecords" class="spiderly-table" [loading]="(items === undefined || loading === true)" [selectionMode]="selectionMode" dataKey="id"
5
+ (onFilter)="filter($event)">
6
+ <ng-template pTemplate="caption">
7
+ <div class="table-header overflow-auto">
8
+ <div style="display: flex; align-items: center; gap: 8px;">
9
+ <i class="{{tableIcon}} text-2xl primary-color"></i>
10
+ <h5 style="margin: 0px;">{{tableTitle}}</h5>
11
+ </div>
12
+ <div style="display: flex; gap: 8px;">
13
+ <button pButton [label]="t('ClearFilters')" class="p-button-outlined remove-button-border-focus" style="flex: none;" icon="pi pi-filter-slash" (click)="clear(dt)"></button>
14
+ <button pButton *ngIf="showExportToExcelButton" [label]="t('ExportToExcel')" class="p-button-outlined remove-button-border-focus" style="flex: none;" icon="pi pi-download" (click)="exportListToExcel()"></button>
15
+ <button pButton *ngIf="showReloadTableButton" [label]="t('Reload')" class="p-button-outlined remove-button-border-focus" style="flex: none;" icon="pi pi-refresh" (click)="reload()"></button>
16
+ </div>
17
+ </div>
18
+ </ng-template>
19
+ <ng-template pTemplate="header">
20
+ <tr>
21
+ <th style="width: 0rem;" *ngIf="selectionMode == 'multiple'">
22
+ <div style="display: flex; gap: 8px;">
23
+ <p-checkbox [disabled]="readonly" (onChange)="selectAll($event.checked)" [(ngModel)]="fakeIsAllSelected" [binary]="true"></p-checkbox> ({{rowsSelectedNumber}})
24
+ </div>
25
+ </th>
26
+ <ng-container *ngFor="let col of cols; trackBy: colTrackByFn">
27
+ <th [style]="getColHeaderWidth(col.filterType)">
28
+ <div style="display: flex; justify-content: space-between; align-items: center;">
29
+ {{col.name}}
30
+ <!-- <p-sortIcon field=""></p-sortIcon> -->
31
+ <!-- <p-columnFilter type="date" field="date" display="menu"></p-columnFilter> -->
32
+ <p-columnFilter *ngIf="col.filterType != null" [type]="col.filterType" [field]="col.filterField ?? col.field" display="menu" [placeholder]="col.filterPlaceholder"
33
+ [showOperator]="false" [showMatchModes]="col.showMatchModes" [showAddButton]="col.showAddButton" [matchModeOptions]="getColMatchModeOptions(col.filterType)"
34
+ [matchMode]="getColMatchMode(col.filterType)"
35
+ >
36
+ <ng-container *ngIf="isDropOrMulti(col.filterType)">
37
+ <ng-template pTemplate="filter" let-value let-filter="filterCallback">
38
+ <p-multiSelect [ngModel]="value" [options]="col.dropdownOrMultiselectValues" [placeholder]="t('All')" (onChange)="filter($event.value)" optionLabel="label" optionValue="code" [style]="{'width':'240px'}">
39
+ <ng-template let-item pTemplate="item">
40
+ <div class="p-multiselect-representative-option">
41
+ <span class="ml-2">{{ item.label }}</span>
42
+ </div>
43
+ </ng-template>
44
+ </p-multiSelect>
45
+ </ng-template>
46
+ </ng-container>
47
+ </p-columnFilter>
48
+ </div>
49
+ </th>
50
+ </ng-container>
51
+ </tr>
52
+ </ng-template>
53
+ <ng-template pTemplate="body" let-rowData let-index="rowIndex" let-editing="editing">
54
+ <tr>
55
+ <td *ngIf="selectionMode == 'multiple'">
56
+ <p-checkbox [disabled]="readonly" (onChange)="selectRow(rowData.id, rowData.index)" [ngModel]="isRowSelected(rowData.id)" [binary]="true"></p-checkbox>
57
+ </td>
58
+ <ng-container *ngFor="let col of cols; trackBy: colTrackByFn">
59
+ <td [pTooltip]="getRowData(rowData, col)" [style]="getStyleForBodyColumn(col)" *ngIf="!col.editable">
60
+ <div style="display: flex; align-items: center; justify-content: center; gap: 18px;">
61
+ <ng-container *ngFor="let action of col.actions; trackBy: actionTrackByFn" >
62
+ <span [pTooltip]="action.name" [class]="getClassForAction(action)" (click)="getMethodForAction(action, rowData)"></span>
63
+ </ng-container>
64
+ </div>
65
+ {{getRowData(rowData, col)}}
66
+ </td>
67
+ <td *ngIf="col.editable">
68
+ <spiderly-number [control]="getFormArrayControlByIndex(col.field, rowData.index)" [showLabel]="false"></spiderly-number>
69
+ </td>
70
+ </ng-container>
71
+ </tr>
72
+ </ng-template>
73
+ <ng-template pTemplate="emptymessage">
74
+ <tr>
75
+ <td [attr.colspan]="cols?.length + (selectionMode === 'multiple' ? 1 : 0)">{{t('NoRecordsFound')}}</td>
76
+ </tr>
77
+ </ng-template>
78
+ <ng-template pTemplate="loadingbody">
79
+ <tr>
80
+ <td [attr.colspan]="cols?.length + (selectionMode === 'multiple' ? 1 : 0)">{{t('Loading')}}...</td>
81
+ </tr>
82
+ </ng-template>
83
+ <ng-template pTemplate="paginatorleft">
84
+ {{t('TotalRecords')}}: {{totalRecords}}
85
+ </ng-template>
86
+ <ng-template pTemplate="paginatorright">
87
+ <div style="display: flex; justify-content: end; gap: 10px;">
88
+ <spiderly-button *ngIf="showAddButton" [label]="t('AddNew')" icon="pi pi-plus" (onClick)="navigateToDetails(0)"></spiderly-button>
89
+ </div>
90
+ </ng-template>
91
+ </p-table>
92
+ </div>
93
+ </ng-container>
@@ -31,4 +31,19 @@
31
31
  right: 0;
32
32
  }
33
33
  }
34
+ }
35
+
36
+ :host {
37
+ ::ng-deep {
38
+ .p-datatable-thead{
39
+ position: unset !important;
40
+ }
41
+ .p-datatable-header{
42
+ border-radius: 6px 6px 0 0;
43
+ }
44
+ .p-datatable {
45
+ border-radius: var(--p-content-border-radius);
46
+ border: 1px solid var(--p-datatable-border-color);
47
+ }
48
+ }
34
49
  }