spiderly 19.0.1 → 19.0.2

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 (255) hide show
  1. package/fesm2022/spiderly.mjs +4612 -0
  2. package/fesm2022/spiderly.mjs.map +1 -0
  3. package/index.d.ts +5 -0
  4. package/lib/components/auth/login/login.component.d.ts +35 -0
  5. package/lib/components/auth/partials/auth.component.d.ts +21 -0
  6. package/lib/components/auth/partials/login-verification.component.d.ts +18 -0
  7. package/lib/components/auth/partials/registration-verification.component.d.ts +17 -0
  8. package/lib/components/auth/partials/verification-wrapper.component.d.ts +31 -0
  9. package/lib/components/auth/registration/registration.component.d.ts +34 -0
  10. package/lib/components/base-details/role-base-details.component.d.ts +50 -0
  11. package/lib/components/base-form/base-form copy.d.ts +54 -0
  12. package/lib/components/card-skeleton/card-skeleton.component.d.ts +12 -0
  13. package/lib/components/footer/footer.component.d.ts +9 -0
  14. package/lib/components/index-card/index-card.component.d.ts +22 -0
  15. package/lib/components/info-card/info-card.component.d.ts +11 -0
  16. package/lib/components/layout/layout-base.component.d.ts +37 -0
  17. package/lib/components/layout/sidebar/menuitem.component.d.ts +43 -0
  18. package/lib/components/layout/sidebar/sidebar-menu.component.d.ts +23 -0
  19. package/lib/components/layout/sidebar/sidebar-menu.service.d.ts +12 -0
  20. package/lib/components/layout/sidebar/sidebar.component.d.ts +11 -0
  21. package/lib/components/layout/topbar/topbar.component.d.ts +45 -0
  22. package/lib/components/not-found/not-found.component.d.ts +9 -0
  23. package/lib/components/required/required.component.d.ts +6 -0
  24. package/lib/components/spiderly-buttons/google-button/google-button.component.d.ts +17 -0
  25. package/lib/components/spiderly-buttons/return-button/return-button.component.d.ts +10 -0
  26. package/lib/components/spiderly-buttons/spiderly-button/spiderly-button.component.d.ts +6 -0
  27. package/lib/components/spiderly-buttons/spiderly-button-base/spiderly-button-base.d.ts +27 -0
  28. package/lib/components/spiderly-buttons/spiderly-split-button/spiderly-split-button.component.d.ts +8 -0
  29. package/lib/components/spiderly-data-table/spiderly-data-table.component.d.ts +157 -0
  30. package/lib/components/spiderly-delete-dialog/spiderly-delete-confirmation.component.d.ts +11 -0
  31. package/lib/components/spiderly-form-control/spiderly-form-control.d.ts +37 -0
  32. package/lib/components/spiderly-panels/panel-body/panel-body.component.d.ts +9 -0
  33. package/lib/components/spiderly-panels/panel-footer/panel-footer.component.d.ts +8 -0
  34. package/lib/components/spiderly-panels/panel-header/panel-header.component.d.ts +29 -0
  35. package/lib/components/spiderly-panels/spiderly-card/spiderly-card.component.d.ts +10 -0
  36. package/lib/components/spiderly-panels/spiderly-panel/spiderly-panel.component.d.ts +25 -0
  37. package/lib/components/spiderly-panels/spiderly-panels.module.d.ts +13 -0
  38. package/lib/controls/base-autocomplete-control.d.ts +9 -0
  39. package/lib/controls/base-control.d.ts +23 -0
  40. package/lib/controls/base-dropdown-control.d.ts +18 -0
  41. package/lib/controls/spiderly-autocomplete/spiderly-autocomplete.component.d.ts +18 -0
  42. package/lib/controls/spiderly-calendar/spiderly-calendar.component.d.ts +13 -0
  43. package/lib/controls/spiderly-checkbox/spiderly-checkbox.component.d.ts +14 -0
  44. package/lib/controls/spiderly-colorpick/spiderly-colorpick.component.d.ts +11 -0
  45. package/lib/controls/spiderly-controls.module.d.ts +22 -0
  46. package/lib/controls/spiderly-dropdown/spiderly-dropdown.component.d.ts +14 -0
  47. package/lib/controls/spiderly-editor/spiderly-editor.component.d.ts +16 -0
  48. package/lib/controls/spiderly-file/spiderly-file.component.d.ts +36 -0
  49. package/lib/controls/spiderly-multiautocomplete/spiderly-multiautocomplete.component.d.ts +13 -0
  50. package/lib/controls/spiderly-multiselect/spiderly-multiselect.component.d.ts +11 -0
  51. package/lib/controls/spiderly-number/spiderly-number.component.d.ts +15 -0
  52. package/lib/controls/spiderly-password/spiderly-password.component.d.ts +12 -0
  53. package/lib/controls/spiderly-textarea/spiderly-textarea.component.d.ts +11 -0
  54. package/lib/controls/spiderly-textbox/spiderly-textbox.component.d.ts +15 -0
  55. package/lib/entities/base-entity.d.ts +14 -0
  56. package/lib/entities/codebook.d.ts +9 -0
  57. package/lib/entities/init-company-auth-dialog-details.d.ts +9 -0
  58. package/lib/entities/init-top-bar-data.d.ts +16 -0
  59. package/lib/entities/is-authorized-for-save-event.d.ts +9 -0
  60. package/lib/entities/last-menu-icon-index-clicked.d.ts +7 -0
  61. package/lib/entities/lazy-load-selected-ids-result.d.ts +9 -0
  62. package/{src/lib/entities/menuchangeevent.ts → lib/entities/menuchangeevent.d.ts} +4 -4
  63. package/lib/entities/mime-type.d.ts +11 -0
  64. package/lib/entities/namebook.d.ts +9 -0
  65. package/lib/entities/primeng-option.d.ts +9 -0
  66. package/lib/entities/security-entities.d.ts +211 -0
  67. package/lib/entities/simple-save-result.d.ts +7 -0
  68. package/lib/entities/spiderly-button.d.ts +13 -0
  69. package/{src/lib/entities/table-filter-context.ts → lib/entities/table-filter-context.d.ts} +5 -6
  70. package/lib/entities/table-filter-sort-meta.d.ts +4 -0
  71. package/{src/lib/entities/table-filter.ts → lib/entities/table-filter.d.ts} +23 -48
  72. package/lib/entities/table-response.d.ts +4 -0
  73. package/lib/enums/security-enums.d.ts +22 -0
  74. package/lib/enums/verification-type-codes.d.ts +4 -0
  75. package/lib/guards/auth.guard.d.ts +15 -0
  76. package/lib/guards/not-auth.guard.d.ts +12 -0
  77. package/lib/handlers/spiderly-error-handler.d.ts +14 -0
  78. package/lib/handlers/spiderly-transloco-fallback-strategy.d.ts +13 -0
  79. package/lib/interceptors/http-loading.interceptor.d.ts +2 -0
  80. package/lib/interceptors/json-parser.interceptor.d.ts +2 -0
  81. package/lib/interceptors/jwt.interceptor.d.ts +2 -0
  82. package/lib/interceptors/unauthorized.interceptor.d.ts +2 -0
  83. package/lib/modules/core.module.d.ts +2 -0
  84. package/lib/modules/primeng.module.d.ts +42 -0
  85. package/lib/modules/spiderly-transloco.module.d.ts +15 -0
  86. package/lib/services/api.service.security.d.ts +35 -0
  87. package/lib/services/app-initializer.d.ts +4 -0
  88. package/lib/services/app-layout-base.service.d.ts +60 -0
  89. package/lib/services/auth-base.service.d.ts +55 -0
  90. package/lib/services/base-form.service.d.ts +27 -0
  91. package/lib/services/config-base.service.d.ts +24 -0
  92. package/lib/services/helper-functions.d.ts +37 -0
  93. package/lib/services/spiderly-message.service.d.ts +17 -0
  94. package/lib/services/spiderly-transloco-loader.d.ts +10 -0
  95. package/lib/services/translate-labels-abstract.service.d.ts +7 -0
  96. package/lib/services/validator-abstract.service.d.ts +13 -0
  97. package/package.json +66 -55
  98. package/{src/public-api.ts → public-api.d.ts} +91 -103
  99. package/eslint.config.js +0 -32
  100. package/ng-package.json +0 -10
  101. package/src/lib/components/auth/login/login.component.html +0 -25
  102. package/src/lib/components/auth/login/login.component.ts +0 -77
  103. package/src/lib/components/auth/partials/auth.component.html +0 -29
  104. package/src/lib/components/auth/partials/auth.component.ts +0 -60
  105. package/src/lib/components/auth/partials/login-verification.component.html +0 -2
  106. package/src/lib/components/auth/partials/login-verification.component.ts +0 -41
  107. package/src/lib/components/auth/partials/registration-verification.component.html +0 -1
  108. package/src/lib/components/auth/partials/registration-verification.component.ts +0 -41
  109. package/src/lib/components/auth/partials/verification-wrapper.component.html +0 -39
  110. package/src/lib/components/auth/partials/verification-wrapper.component.ts +0 -68
  111. package/src/lib/components/auth/registration/registration.component.html +0 -31
  112. package/src/lib/components/auth/registration/registration.component.ts +0 -77
  113. package/src/lib/components/base-details/role-base-details.component.html +0 -33
  114. package/src/lib/components/base-details/role-base-details.component.ts +0 -194
  115. package/src/lib/components/base-form/base-form copy.ts +0 -356
  116. package/src/lib/components/card-skeleton/card-skeleton.component.html +0 -8
  117. package/src/lib/components/card-skeleton/card-skeleton.component.ts +0 -21
  118. package/src/lib/components/footer/app.footer.component.ts +0 -17
  119. package/src/lib/components/footer/footer.component.html +0 -3
  120. package/src/lib/components/footer/footer.component.ts +0 -17
  121. package/src/lib/components/index-card/index-card.component.html +0 -15
  122. package/src/lib/components/index-card/index-card.component.ts +0 -48
  123. package/src/lib/components/info-card/info-card.component.html +0 -18
  124. package/src/lib/components/info-card/info-card.component.ts +0 -29
  125. package/src/lib/components/layout/layout-base.component.ts +0 -140
  126. package/src/lib/components/layout/sidebar/menuitem.component.html +0 -40
  127. package/src/lib/components/layout/sidebar/menuitem.component.ts +0 -179
  128. package/src/lib/components/layout/sidebar/sidebar-menu.component.html +0 -6
  129. package/src/lib/components/layout/sidebar/sidebar-menu.component.ts +0 -44
  130. package/src/lib/components/layout/sidebar/sidebar-menu.service.ts +0 -22
  131. package/src/lib/components/layout/sidebar/sidebar.component.html +0 -1
  132. package/src/lib/components/layout/sidebar/sidebar.component.ts +0 -20
  133. package/src/lib/components/layout/topbar/topbar.component.html +0 -64
  134. package/src/lib/components/layout/topbar/topbar.component.ts +0 -137
  135. package/src/lib/components/not-found/not-found.component.html +0 -27
  136. package/src/lib/components/not-found/not-found.component.ts +0 -22
  137. package/src/lib/components/required/required.component.html +0 -1
  138. package/src/lib/components/required/required.component.ts +0 -13
  139. package/src/lib/components/spiderly-buttons/google-button/google-button.component.html +0 -5
  140. package/src/lib/components/spiderly-buttons/google-button/google-button.component.ts +0 -53
  141. package/src/lib/components/spiderly-buttons/return-button/return-button.component.html +0 -3
  142. package/src/lib/components/spiderly-buttons/return-button/return-button.component.ts +0 -35
  143. package/src/lib/components/spiderly-buttons/spiderly-button/spiderly-button.component.html +0 -14
  144. package/src/lib/components/spiderly-buttons/spiderly-button/spiderly-button.component.ts +0 -27
  145. package/src/lib/components/spiderly-buttons/spiderly-button-base/spiderly-button-base.ts +0 -61
  146. package/src/lib/components/spiderly-buttons/spiderly-split-button/spiderly-split-button.component.html +0 -15
  147. package/src/lib/components/spiderly-buttons/spiderly-split-button/spiderly-split-button.component.ts +0 -24
  148. package/src/lib/components/spiderly-data-table/spiderly-data-table.component.html +0 -93
  149. package/src/lib/components/spiderly-data-table/spiderly-data-table.component.ts +0 -614
  150. package/src/lib/components/spiderly-delete-dialog/spiderly-delete-confirmation.component.html +0 -17
  151. package/src/lib/components/spiderly-delete-dialog/spiderly-delete-confirmation.component.ts +0 -39
  152. package/src/lib/components/spiderly-form-control/spiderly-form-control.ts +0 -60
  153. package/src/lib/components/spiderly-panels/panel-body/panel-body.component.html +0 -8
  154. package/src/lib/components/spiderly-panels/panel-body/panel-body.component.ts +0 -16
  155. package/src/lib/components/spiderly-panels/panel-footer/panel-footer.component.html +0 -8
  156. package/src/lib/components/spiderly-panels/panel-footer/panel-footer.component.ts +0 -15
  157. package/src/lib/components/spiderly-panels/panel-header/panel-header.component.html +0 -25
  158. package/src/lib/components/spiderly-panels/panel-header/panel-header.component.ts +0 -69
  159. package/src/lib/components/spiderly-panels/spiderly-card/spiderly-card.component.html +0 -7
  160. package/src/lib/components/spiderly-panels/spiderly-card/spiderly-card.component.ts +0 -17
  161. package/src/lib/components/spiderly-panels/spiderly-panel/spiderly-panel.component.html +0 -40
  162. package/src/lib/components/spiderly-panels/spiderly-panel/spiderly-panel.component.ts +0 -42
  163. package/src/lib/components/spiderly-panels/spiderly-panels.module.ts +0 -32
  164. package/src/lib/controls/base-autocomplete-control.ts +0 -17
  165. package/src/lib/controls/base-control.ts +0 -60
  166. package/src/lib/controls/base-dropdown-control.ts +0 -37
  167. package/src/lib/controls/spiderly-autocomplete/spiderly-autocomplete.component.html +0 -36
  168. package/src/lib/controls/spiderly-autocomplete/spiderly-autocomplete.component.ts +0 -56
  169. package/src/lib/controls/spiderly-calendar/spiderly-calendar.component.html +0 -21
  170. package/src/lib/controls/spiderly-calendar/spiderly-calendar.component.ts +0 -37
  171. package/src/lib/controls/spiderly-checkbox/spiderly-checkbox.component.html +0 -16
  172. package/src/lib/controls/spiderly-checkbox/spiderly-checkbox.component.ts +0 -38
  173. package/src/lib/controls/spiderly-colorpick/spiderly-colorpick.component.html +0 -33
  174. package/src/lib/controls/spiderly-colorpick/spiderly-colorpick.component.ts +0 -40
  175. package/src/lib/controls/spiderly-controls.module.ts +0 -61
  176. package/src/lib/controls/spiderly-dropdown/spiderly-dropdown.component.html +0 -27
  177. package/src/lib/controls/spiderly-dropdown/spiderly-dropdown.component.ts +0 -39
  178. package/src/lib/controls/spiderly-editor/spiderly-editor.component.html +0 -22
  179. package/src/lib/controls/spiderly-editor/spiderly-editor.component.ts +0 -58
  180. package/src/lib/controls/spiderly-file/spiderly-file.component.html +0 -54
  181. package/src/lib/controls/spiderly-file/spiderly-file.component.ts +0 -123
  182. package/src/lib/controls/spiderly-multiautocomplete/spiderly-multiautocomplete.component.html +0 -30
  183. package/src/lib/controls/spiderly-multiautocomplete/spiderly-multiautocomplete.component.ts +0 -38
  184. package/src/lib/controls/spiderly-multiselect/spiderly-multiselect.component.html +0 -23
  185. package/src/lib/controls/spiderly-multiselect/spiderly-multiselect.component.ts +0 -32
  186. package/src/lib/controls/spiderly-number/spiderly-number.component.html +0 -19
  187. package/src/lib/controls/spiderly-number/spiderly-number.component.ts +0 -37
  188. package/src/lib/controls/spiderly-password/spiderly-password.component.html +0 -17
  189. package/src/lib/controls/spiderly-password/spiderly-password.component.ts +0 -34
  190. package/src/lib/controls/spiderly-textarea/spiderly-textarea.component.html +0 -18
  191. package/src/lib/controls/spiderly-textarea/spiderly-textarea.component.ts +0 -32
  192. package/src/lib/controls/spiderly-textbox/spiderly-textbox.component.html +0 -23
  193. package/src/lib/controls/spiderly-textbox/spiderly-textbox.component.ts +0 -41
  194. package/src/lib/entities/base-entity.ts +0 -25
  195. package/src/lib/entities/codebook.ts +0 -23
  196. package/src/lib/entities/init-company-auth-dialog-details.ts +0 -22
  197. package/src/lib/entities/init-top-bar-data.ts +0 -35
  198. package/src/lib/entities/is-authorized-for-save-event.ts +0 -22
  199. package/src/lib/entities/last-menu-icon-index-clicked.ts +0 -18
  200. package/src/lib/entities/lazy-load-selected-ids-result.ts +0 -22
  201. package/src/lib/entities/mime-type.ts +0 -15
  202. package/src/lib/entities/namebook.ts +0 -22
  203. package/src/lib/entities/primeng-option.ts +0 -23
  204. package/src/lib/entities/readonly-object.ts +0 -1
  205. package/src/lib/entities/security-entities.ts +0 -548
  206. package/src/lib/entities/simple-save-result.ts +0 -19
  207. package/src/lib/entities/spiderly-button.ts +0 -30
  208. package/src/lib/entities/table-filter-sort-meta.ts +0 -5
  209. package/src/lib/entities/table-response.ts +0 -5
  210. package/src/lib/enums/security-enums.ts +0 -28
  211. package/src/lib/enums/verification-type-codes.ts +0 -5
  212. package/src/lib/guards/auth.guard.ts +0 -39
  213. package/src/lib/guards/not-auth.guard.ts +0 -32
  214. package/src/lib/handlers/spiderly-error-handler.ts +0 -32
  215. package/src/lib/handlers/spiderly-transloco-fallback-strategy.ts +0 -25
  216. package/src/lib/interceptors/http-loading.interceptor.ts +0 -21
  217. package/src/lib/interceptors/json-parser.interceptor.ts +0 -44
  218. package/src/lib/interceptors/jwt.interceptor.ts +0 -18
  219. package/src/lib/interceptors/unauthorized.interceptor.ts +0 -77
  220. package/src/lib/modules/core.module.ts +0 -22
  221. package/src/lib/modules/primeng.module.ts +0 -122
  222. package/src/lib/modules/spiderly-transloco.module.ts +0 -50
  223. package/src/lib/services/api.service.security.ts +0 -120
  224. package/src/lib/services/app-initializer.ts +0 -9
  225. package/src/lib/services/app-layout-base.service.ts +0 -184
  226. package/src/lib/services/auth-base.service.ts +0 -271
  227. package/src/lib/services/base-form.service.ts +0 -178
  228. package/src/lib/services/config-base.service.ts +0 -36
  229. package/src/lib/services/helper-functions.ts +0 -288
  230. package/src/lib/services/spiderly-message.service.ts +0 -66
  231. package/src/lib/services/spiderly-transloco-loader.ts +0 -15
  232. package/src/lib/services/translate-labels-abstract.service.ts +0 -13
  233. package/src/lib/services/validator-abstract.service.ts +0 -63
  234. package/tsconfig.lib.json +0 -17
  235. package/tsconfig.lib.prod.json +0 -10
  236. package/tsconfig.spec.json +0 -14
  237. /package/{src/lib → styles}/components/spiderly-data-table/spiderly-data-table.component.scss +0 -0
  238. /package/{src/lib → styles}/components/spiderly-panels/panel-footer/panel-footer.component.scss +0 -0
  239. /package/{src/lib → styles}/components/spiderly-panels/spiderly-panel/spiderly-panel.component.scss +0 -0
  240. /package/{src/lib → styles}/styles/layout/_config.scss +0 -0
  241. /package/{src/lib → styles}/styles/layout/_content.scss +0 -0
  242. /package/{src/lib → styles}/styles/layout/_footer.scss +0 -0
  243. /package/{src/lib → styles}/styles/layout/_main.scss +0 -0
  244. /package/{src/lib → styles}/styles/layout/_menu.scss +0 -0
  245. /package/{src/lib → styles}/styles/layout/_mixins.scss +0 -0
  246. /package/{src/lib → styles}/styles/layout/_preloading.scss +0 -0
  247. /package/{src/lib → styles}/styles/layout/_responsive.scss +0 -0
  248. /package/{src/lib → styles}/styles/layout/_spiderly-controls.scss +0 -0
  249. /package/{src/lib → styles}/styles/layout/_topbar.scss +0 -0
  250. /package/{src/lib → styles}/styles/layout/_typography.scss +0 -0
  251. /package/{src/lib → styles}/styles/layout/_utils.scss +0 -0
  252. /package/{src/lib → styles}/styles/layout/_variables.scss +0 -0
  253. /package/{src/lib → styles}/styles/layout/layout.scss +0 -0
  254. /package/{src/lib → styles}/styles/shared.scss +0 -0
  255. /package/{src/lib → styles}/styles/styles.scss +0 -0
@@ -0,0 +1,35 @@
1
+ import { HttpClient } from '@angular/common/http';
2
+ import { Observable } from 'rxjs';
3
+ import { Namebook } from '../entities/namebook';
4
+ import { TableFilter } from '../entities/table-filter';
5
+ import { Login, Registration, RegistrationVerificationResult, RefreshTokenRequest, AuthResult, Role, User, ExternalProvider, VerificationTokenRequest, RoleSaveBody, RoleMainUIForm } from '../entities/security-entities';
6
+ import { ConfigBaseService } from './config-base.service';
7
+ import { TableResponse } from '../entities/table-response';
8
+ import * as i0 from "@angular/core";
9
+ export declare class ApiSecurityService {
10
+ protected http: HttpClient;
11
+ protected config: ConfigBaseService;
12
+ constructor(http: HttpClient, config: ConfigBaseService);
13
+ register: (request: VerificationTokenRequest) => Observable<AuthResult>;
14
+ sendRegistrationVerificationEmail: (registrationDTO: Registration) => Observable<RegistrationVerificationResult>;
15
+ login: (request: VerificationTokenRequest) => Observable<AuthResult>;
16
+ loginExternal: (externalProviderDTO: ExternalProvider) => Observable<AuthResult>;
17
+ sendLoginVerificationEmail: (loginDTO: Login) => Observable<any>;
18
+ logout: (browserId: string) => Observable<any>;
19
+ refreshToken: (request: RefreshTokenRequest) => Observable<AuthResult>;
20
+ getCurrentUser: () => Observable<User>;
21
+ getCurrentUserPermissionCodes: () => Observable<string[]>;
22
+ getRoleTableData: (dto: TableFilter) => Observable<TableResponse>;
23
+ exportRoleTableDataToExcel: (dto: TableFilter) => Observable<any>;
24
+ deleteRole: (id: number) => Observable<any>;
25
+ getRoleMainUIFormDTO: (id: number) => Observable<RoleMainUIForm>;
26
+ getRole: (id: number) => Observable<Role>;
27
+ saveRole: (dto: RoleSaveBody) => Observable<Role>;
28
+ getUsersNamebookListForRole: (roleId: number) => Observable<Namebook[]>;
29
+ getPermissionsDropdownListForRole: () => Observable<Namebook[]>;
30
+ getPermissionsNamebookListForRole: (roleId: number) => Observable<Namebook[]>;
31
+ getUsersAutocompleteListForRole: (limit: number, query: string) => Observable<Namebook[]>;
32
+ getUnreadNotificationsCountForCurrentUser: () => Observable<number>;
33
+ static ɵfac: i0.ɵɵFactoryDeclaration<ApiSecurityService, never>;
34
+ static ɵprov: i0.ɵɵInjectableDeclaration<ApiSecurityService>;
35
+ }
@@ -0,0 +1,4 @@
1
+ import { Observable } from 'rxjs';
2
+ import { AuthBaseService } from './auth-base.service';
3
+ import { AuthResult } from '../entities/security-entities';
4
+ export declare function authInitializer(authService: AuthBaseService): () => Observable<AuthResult>;
@@ -0,0 +1,60 @@
1
+ import { AuthBaseService } from './auth-base.service';
2
+ import { ApiSecurityService } from './api.service.security';
3
+ import { OnDestroy } from '@angular/core';
4
+ import { BehaviorSubject, Observable, Subscription } from 'rxjs';
5
+ import { InitTopBarData } from '../entities/init-top-bar-data';
6
+ import { ConfigBaseService } from './config-base.service';
7
+ import { PrimengOption } from '../entities/primeng-option';
8
+ import { AutoCompleteCompleteEvent } from 'primeng/autocomplete';
9
+ import * as i0 from "@angular/core";
10
+ export interface AppConfig {
11
+ inputStyle: string;
12
+ colorScheme: string;
13
+ theme: string;
14
+ ripple: boolean;
15
+ menuMode: string;
16
+ scale: number;
17
+ color: string;
18
+ }
19
+ interface LayoutState {
20
+ staticMenuDesktopInactive: boolean;
21
+ overlayMenuActive: boolean;
22
+ profileSidebarVisible: boolean;
23
+ profileDropdownSidebarVisible: boolean;
24
+ configSidebarVisible: boolean;
25
+ staticMenuMobileActive: boolean;
26
+ menuHoverActive: boolean;
27
+ }
28
+ export declare class LayoutBaseService implements OnDestroy {
29
+ protected apiService: ApiSecurityService;
30
+ protected config: ConfigBaseService;
31
+ protected authService: AuthBaseService;
32
+ userSubscription: Subscription;
33
+ protected _unreadNotificationsNumber: BehaviorSubject<number>;
34
+ unreadNotificationsCount$: Observable<number>;
35
+ layoutConfig: AppConfig;
36
+ state: LayoutState;
37
+ private configUpdate;
38
+ private overlayOpen;
39
+ configUpdate$: Observable<AppConfig>;
40
+ overlayOpen$: Observable<any>;
41
+ constructor(apiService: ApiSecurityService, config: ConfigBaseService, authService: AuthBaseService);
42
+ initUnreadNotificationsCountForCurrentUser: () => void;
43
+ initUnreadNotificationsCountForCurrentUserObservable: () => Observable<any>;
44
+ setUnreadNotificationsCountForCurrentUser: () => Observable<any>;
45
+ onMenuToggle(): void;
46
+ showProfileSidebar(): void;
47
+ showProfileDropdownSidebar(): void;
48
+ showConfigSidebar(): void;
49
+ isOverlay(): boolean;
50
+ isDesktop(): boolean;
51
+ isMobile(): boolean;
52
+ onConfigUpdate(): void;
53
+ initTopBarData: () => Observable<InitTopBarData>;
54
+ searchPartners: (event: AutoCompleteCompleteEvent) => Observable<PrimengOption[]>;
55
+ partnersAutocompleteButtonClick: (selectedPartner: PrimengOption) => void;
56
+ ngOnDestroy(): void;
57
+ static ɵfac: i0.ɵɵFactoryDeclaration<LayoutBaseService, never>;
58
+ static ɵprov: i0.ɵɵInjectableDeclaration<LayoutBaseService>;
59
+ }
60
+ export {};
@@ -0,0 +1,55 @@
1
+ import { OnDestroy } from '@angular/core';
2
+ import { Router } from '@angular/router';
3
+ import { HttpClient } from '@angular/common/http';
4
+ import { BehaviorSubject, Observable } from 'rxjs';
5
+ import { SocialUser, SocialAuthService } from '@abacritt/angularx-social-login';
6
+ import { ExternalProvider, Login, VerificationTokenRequest, AuthResult, Registration, RegistrationVerificationResult, User } from '../entities/security-entities';
7
+ import { ConfigBaseService } from './config-base.service';
8
+ import { ApiSecurityService } from './api.service.security';
9
+ import { InitCompanyAuthDialogDetails } from '../entities/init-company-auth-dialog-details';
10
+ import * as i0 from "@angular/core";
11
+ export declare class AuthBaseService implements OnDestroy {
12
+ protected router: Router;
13
+ protected http: HttpClient;
14
+ protected externalAuthService: SocialAuthService;
15
+ protected apiService: ApiSecurityService;
16
+ protected config: ConfigBaseService;
17
+ private readonly apiUrl;
18
+ private timer?;
19
+ protected _currentUserPermissionCodes: BehaviorSubject<string[]>;
20
+ currentUserPermissionCodes$: Observable<string[]>;
21
+ protected _user: BehaviorSubject<User>;
22
+ user$: Observable<User>;
23
+ private authChangeSub;
24
+ private extAuthChangeSub;
25
+ authChanged: Observable<boolean>;
26
+ extAuthChanged: Observable<SocialUser>;
27
+ constructor(router: Router, http: HttpClient, externalAuthService: SocialAuthService, apiService: ApiSecurityService, config: ConfigBaseService);
28
+ private storageEventListener;
29
+ sendLoginVerificationEmail(body: Login): Observable<any>;
30
+ login(body: VerificationTokenRequest): Observable<Promise<AuthResult>>;
31
+ loginExternal(body: ExternalProvider): Observable<Promise<AuthResult>>;
32
+ sendRegistrationVerificationEmail(body: Registration): Observable<RegistrationVerificationResult>;
33
+ register(body: VerificationTokenRequest): Observable<Promise<AuthResult>>;
34
+ handleLoginResult(loginResultObservable: Observable<AuthResult>): Observable<Promise<AuthResult>>;
35
+ logout(): void;
36
+ onAfterLogout: () => void;
37
+ refreshToken(): Observable<AuthResult>;
38
+ onAfterRefreshToken: () => void;
39
+ setLocalStorage(loginResult: AuthResult): void;
40
+ clearLocalStorage(): void;
41
+ getBrowserId(): string;
42
+ isAccessTokenExpired(): Observable<boolean>;
43
+ getTokenRemainingTime(): number;
44
+ getAccessToken(): string;
45
+ private startTokenTimer;
46
+ private stopTokenTimer;
47
+ navigateToDashboard(): void;
48
+ logoutGoogle: () => void;
49
+ initCompanyAuthDialogDetails: () => Observable<InitCompanyAuthDialogDetails>;
50
+ setCurrentUserPermissionCodes(): Observable<string[]>;
51
+ ngOnDestroy(): void;
52
+ onAfterNgOnDestroy: () => void;
53
+ static ɵfac: i0.ɵɵFactoryDeclaration<AuthBaseService, never>;
54
+ static ɵprov: i0.ɵɵInjectableDeclaration<AuthBaseService>;
55
+ }
@@ -0,0 +1,27 @@
1
+ import { TranslocoService } from '@jsverse/transloco';
2
+ import { SpiderlyFormArray, SpiderlyFormGroup } from '../components/spiderly-form-control/spiderly-form-control';
3
+ import { BaseEntity } from '../entities/base-entity';
4
+ import { TranslateLabelsAbstractService } from './translate-labels-abstract.service';
5
+ import { ValidatorAbstractService } from './validator-abstract.service';
6
+ import { SpiderlyMessageService } from './spiderly-message.service';
7
+ import * as i0 from "@angular/core";
8
+ export declare class BaseFormService {
9
+ private translateLabelsService;
10
+ private validatorService;
11
+ private messageService;
12
+ private translocoService;
13
+ constructor(translateLabelsService: TranslateLabelsAbstractService, validatorService: ValidatorAbstractService, messageService: SpiderlyMessageService, translocoService: TranslocoService);
14
+ addFormGroup: <T>(formGroup: SpiderlyFormGroup<T>, parentFormGroup: SpiderlyFormGroup, modelConstructor: any, propertyNameInSaveBody: string, updateOnChangeControls?: (keyof T)[]) => SpiderlyFormGroup<T>;
15
+ initFormGroup: <T>(formGroup: SpiderlyFormGroup<T>, modelConstructor: T & BaseEntity, updateOnChangeControls?: (keyof T)[]) => SpiderlyFormGroup<T>;
16
+ getTranslatedLabel(formControlName: string): string;
17
+ getFormArrayGroups<T>(formArray: SpiderlyFormArray<T>): SpiderlyFormGroup<T>[];
18
+ addNewFormGroupToFormArray<T>(formArray: SpiderlyFormArray<T>, modelConstructor: T & BaseEntity, index: number): SpiderlyFormGroup;
19
+ initFormArray<T>(parentFormGroup: SpiderlyFormGroup, modelList: (T & BaseEntity)[], modelConstructor: T & BaseEntity, formArraySaveBodyName: string, formArrayTranslationKey: string, required?: boolean): SpiderlyFormArray<T>;
20
+ disableAllFormControls<T>(formArray: SpiderlyFormArray<T>): void;
21
+ enableAllFormControls<T>(formArray: SpiderlyFormArray<T>): void;
22
+ checkFormGroupValidity: <T>(formGroup: SpiderlyFormGroup<T>) => boolean;
23
+ showInvalidFieldsMessage: () => void;
24
+ generateNewNegativeId<T extends BaseEntity>(formArray: SpiderlyFormArray<T>): number;
25
+ static ɵfac: i0.ɵɵFactoryDeclaration<BaseFormService, never>;
26
+ static ɵprov: i0.ɵɵInjectableDeclaration<BaseFormService>;
27
+ }
@@ -0,0 +1,24 @@
1
+ import { HttpHeaders, HttpParams } from "@angular/common/http";
2
+ import * as i0 from "@angular/core";
3
+ export declare class ConfigBaseService {
4
+ production: boolean;
5
+ apiUrl: string;
6
+ frontendUrl: string;
7
+ GoogleClientId: string;
8
+ companyName: string;
9
+ primaryColor: string;
10
+ googleAuth: boolean;
11
+ usersCanRegister: boolean;
12
+ loginSlug: string;
13
+ accessTokenKey: string;
14
+ refreshTokenKey: string;
15
+ browserIdKey: string;
16
+ httpOptions: {};
17
+ httpSkipSpinnerOptions: {
18
+ headers: HttpHeaders;
19
+ params: HttpParams;
20
+ };
21
+ constructor();
22
+ static ɵfac: i0.ɵɵFactoryDeclaration<ConfigBaseService, never>;
23
+ static ɵprov: i0.ɵɵInjectableDeclaration<ConfigBaseService>;
24
+ }
@@ -0,0 +1,37 @@
1
+ import { Action, Column } from "../components/spiderly-data-table/spiderly-data-table.component";
2
+ import { HttpResponse } from "@angular/common/http";
3
+ import { BaseEntity } from "../entities/base-entity";
4
+ import { SpiderlyFormGroup } from "../components/spiderly-form-control/spiderly-form-control";
5
+ import { Observable } from 'rxjs';
6
+ import { TableFilter } from "../entities/table-filter";
7
+ import { Namebook } from "../entities/namebook";
8
+ import { Codebook } from "../entities/codebook";
9
+ import { PrimengOption } from "../entities/primeng-option";
10
+ import { SpiderlyTab } from "../components/spiderly-panels/panel-header/panel-header.component";
11
+ export declare function validatePrecisionScale(value: any, precision: number, scale: number, ignoreTrailingZeros: boolean): boolean;
12
+ export declare function getMimeTypeForFileName(fileName: string): string;
13
+ export declare function adjustColor(color: string, percent: number): string;
14
+ export declare function getHtmlImgDisplayString64(base64String: string): string;
15
+ export declare function nameof<TObject>(obj: TObject, key: keyof TObject): string;
16
+ export declare function nameof<TObject>(key: keyof TObject): string;
17
+ export declare function nameOf<TObject extends {
18
+ name: S;
19
+ }, S extends string>(funcOrClass: TObject): S;
20
+ export declare function getParentUrl(currentUrl: string): string;
21
+ export declare function capitalizeFirstLetter(inputString: string): string;
22
+ export declare function getMonth(numberOfTheMonth: number): string;
23
+ export declare function singleOrDefault<T>(array: T[], predicate: (item: T) => boolean): T | undefined;
24
+ export declare function pushAction(cols: Column[], action: Action): void;
25
+ export declare function deleteAction(cols: Column[], actionField: string): void;
26
+ export declare function getFileNameFromContentDisposition(resp: HttpResponse<Blob>, defaultName: string): string;
27
+ export declare const getControl: <T extends BaseEntity>(formControlName: string & keyof T, formGroup: SpiderlyFormGroup<T>) => { [P in keyof T]: import("../components/spiderly-form-control/spiderly-form-control").SpiderlyFormControl<T[P]>; }[string & keyof T];
28
+ export declare function toCommaSeparatedString<T>(input: T[]): string;
29
+ export declare function isImageFileType(mimeType: string): boolean;
30
+ export declare function isExcelFileType(mimeType: string): boolean;
31
+ export declare function exportListToExcel(exportTableDataToExcelObservableMethod: (tableFilter: TableFilter) => Observable<any>, tableFilter: TableFilter): void;
32
+ export declare function getPrimengDropdownNamebookOptions(getDropdownListObservable: (parentEntityId?: number) => Observable<Namebook[]>, parentEntityId?: number): Observable<PrimengOption[]>;
33
+ export declare function getPrimengDropdownCodebookOptions(getDropdownListObservable: () => Observable<Codebook[]>): Observable<PrimengOption[]>;
34
+ export declare function getPrimengAutocompleteNamebookOptions(getAutocompleteListObservable: (limit: number, query: string, parentEntityId?: number) => Observable<Namebook[]>, limit: number, query: string, parentEntityId?: number): Observable<PrimengOption[]>;
35
+ export declare function getPrimengAutocompleteCodebookOptions(getAutocompleteListObservable: (limit: number, query: string) => Observable<Codebook[]>, limit: number, query: string): Observable<PrimengOption[]>;
36
+ export declare const isNullOrEmpty: (input: string) => boolean;
37
+ export declare const selectedTab: (tabs: SpiderlyTab[]) => number;
@@ -0,0 +1,17 @@
1
+ import { TranslocoService } from '@jsverse/transloco';
2
+ import { NgZone } from '@angular/core';
3
+ import { MessageService } from 'primeng/api';
4
+ import * as i0 from "@angular/core";
5
+ export declare class SpiderlyMessageService {
6
+ private messageService;
7
+ private translocoService;
8
+ private ngZone;
9
+ constructor(messageService: MessageService, translocoService: TranslocoService, ngZone: NgZone);
10
+ successMessage(detail: string, title?: string): void;
11
+ warningMessage(detail: string, title?: string, sticky?: boolean): void;
12
+ warningMessageWithTimeout(detail: string, title?: string): void;
13
+ errorMessage(detail: string, title?: string): void;
14
+ infoMessage(detail: string, title?: string, sticky?: boolean): void;
15
+ static ɵfac: i0.ɵɵFactoryDeclaration<SpiderlyMessageService, never>;
16
+ static ɵprov: i0.ɵɵInjectableDeclaration<SpiderlyMessageService>;
17
+ }
@@ -0,0 +1,10 @@
1
+ import { TranslocoLoader } from '@jsverse/transloco';
2
+ import { HttpClient } from '@angular/common/http';
3
+ import * as i0 from "@angular/core";
4
+ export declare class SpiderlyTranslocoLoader implements TranslocoLoader {
5
+ private http;
6
+ constructor(http: HttpClient);
7
+ getTranslation(lang: string): import("rxjs").Observable<Object>;
8
+ static ɵfac: i0.ɵɵFactoryDeclaration<SpiderlyTranslocoLoader, never>;
9
+ static ɵprov: i0.ɵɵInjectableDeclaration<SpiderlyTranslocoLoader>;
10
+ }
@@ -0,0 +1,7 @@
1
+ import * as i0 from "@angular/core";
2
+ export declare abstract class TranslateLabelsAbstractService {
3
+ constructor();
4
+ abstract translate(name: string): string;
5
+ static ɵfac: i0.ɵɵFactoryDeclaration<TranslateLabelsAbstractService, never>;
6
+ static ɵprov: i0.ɵɵInjectableDeclaration<TranslateLabelsAbstractService>;
7
+ }
@@ -0,0 +1,13 @@
1
+ import { TranslocoService } from '@jsverse/transloco';
2
+ import { SpiderlyFormArray, SpiderlyFormControl, SpiderlyValidatorFn } from "../components/spiderly-form-control/spiderly-form-control";
3
+ import * as i0 from "@angular/core";
4
+ export declare abstract class ValidatorAbstractService {
5
+ protected translocoService: TranslocoService;
6
+ constructor(translocoService: TranslocoService);
7
+ abstract setValidator(formControl: SpiderlyFormControl, className: string): SpiderlyValidatorFn;
8
+ isArrayEmpty: (control: SpiderlyFormControl) => SpiderlyValidatorFn;
9
+ notEmpty: (control: SpiderlyFormControl) => void;
10
+ isFormArrayEmpty: (control: SpiderlyFormArray) => SpiderlyValidatorFn;
11
+ static ɵfac: i0.ɵɵFactoryDeclaration<ValidatorAbstractService, never>;
12
+ static ɵprov: i0.ɵɵInjectableDeclaration<ValidatorAbstractService>;
13
+ }
package/package.json CHANGED
@@ -1,55 +1,66 @@
1
- {
2
- "name": "spiderly",
3
- "version": "19.0.1",
4
- "author": "Filip Trivan",
5
- "license": "MIT",
6
- "description": "Spiderly Angular Library to use in combination with Spiderly.",
7
- "bugs": {
8
- "url": "https://github.com/filiptrivan/spiderly/issues",
9
- "email": "filiptrivan5@gmail.com"
10
- },
11
- "repository": {
12
- "type": "git",
13
- "url": "https://github.com/filiptrivan/spiderly.git"
14
- },
15
- "homepage": "https://www.spiderly.dev",
16
- "keywords": [
17
- "spiderly",
18
- "spiderly framework",
19
- "spiderly angular",
20
- "angular spiderly",
21
- "angular spiderly framework",
22
- "spiderly framework angular",
23
- "spiderly code generator",
24
- "spiderly .net code generator",
25
- ".net (c#) web app boilerplate code generator",
26
- ".net (c#) + angular web app boilerplate code generator"
27
- ],
28
- "private": false,
29
- "peerDependencies": {
30
- "@abacritt/angularx-social-login": "2.2.0",
31
- "@angular/animations": "19.2.13",
32
- "@angular/common": "19.2.13",
33
- "@angular/compiler": "19.2.13",
34
- "@angular/core": "19.2.13",
35
- "@angular/forms": "19.2.13",
36
- "@angular/platform-browser": "19.2.13",
37
- "@angular/platform-browser-dynamic": "19.2.13",
38
- "@angular/router": "19.2.13",
39
- "@jsverse/transloco": "7.5.0",
40
- "file-saver": "2.0.5",
41
- "json-parser": "3.1.2",
42
- "ngx-spinner": "19.0.0",
43
- "primeflex": "3.3.1",
44
- "primeicons": "7.0.0",
45
- "primeng": "19.1.3",
46
- "quill": "2.0.2",
47
- "rxjs": "7.8.1",
48
- "webpack-dev-server": "4.15.1",
49
- "zone.js": "0.15.1"
50
- },
51
- "dependencies": {
52
- "tslib": "2.3.0"
53
- },
54
- "sideEffects": false
55
- }
1
+ {
2
+ "name": "spiderly",
3
+ "version": "19.0.2",
4
+ "author": "Filip Trivan",
5
+ "license": "MIT",
6
+ "description": "Spiderly Angular Library to use in combination with Spiderly.",
7
+ "bugs": {
8
+ "url": "https://github.com/filiptrivan/spiderly/issues",
9
+ "email": "filiptrivan5@gmail.com"
10
+ },
11
+ "repository": {
12
+ "type": "git",
13
+ "url": "https://github.com/filiptrivan/spiderly.git"
14
+ },
15
+ "homepage": "https://www.spiderly.dev",
16
+ "keywords": [
17
+ "spiderly",
18
+ "spiderly framework",
19
+ "spiderly angular",
20
+ "angular spiderly",
21
+ "angular spiderly framework",
22
+ "spiderly framework angular",
23
+ "spiderly code generator",
24
+ "spiderly .net code generator",
25
+ ".net (c#) web app boilerplate code generator",
26
+ ".net (c#) + angular web app boilerplate code generator"
27
+ ],
28
+ "private": false,
29
+ "peerDependencies": {
30
+ "@abacritt/angularx-social-login": "2.2.0",
31
+ "@angular/animations": "19.2.13",
32
+ "@angular/common": "19.2.13",
33
+ "@angular/compiler": "19.2.13",
34
+ "@angular/core": "19.2.13",
35
+ "@angular/forms": "19.2.13",
36
+ "@angular/platform-browser": "19.2.13",
37
+ "@angular/platform-browser-dynamic": "19.2.13",
38
+ "@angular/router": "19.2.13",
39
+ "@jsverse/transloco": "7.5.0",
40
+ "file-saver": "2.0.5",
41
+ "json-parser": "3.1.2",
42
+ "ngx-spinner": "19.0.0",
43
+ "primeflex": "3.3.1",
44
+ "primeicons": "7.0.0",
45
+ "primeng": "19.1.3",
46
+ "quill": "2.0.2",
47
+ "rxjs": "7.8.1",
48
+ "webpack-dev-server": "4.15.1",
49
+ "zone.js": "0.15.1"
50
+ },
51
+ "dependencies": {
52
+ "tslib": "2.3.0"
53
+ },
54
+ "sideEffects": false,
55
+ "module": "fesm2022/spiderly.mjs",
56
+ "typings": "index.d.ts",
57
+ "exports": {
58
+ "./package.json": {
59
+ "default": "./package.json"
60
+ },
61
+ ".": {
62
+ "types": "./index.d.ts",
63
+ "default": "./fesm2022/spiderly.mjs"
64
+ }
65
+ }
66
+ }