spiderly 19.0.1 → 19.0.3

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 (254) hide show
  1. package/fesm2022/spiderly.mjs +4382 -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 +14 -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/spiderly-transloco.module.d.ts +15 -0
  85. package/lib/services/api.service.security.d.ts +35 -0
  86. package/lib/services/app-initializer.d.ts +4 -0
  87. package/lib/services/app-layout-base.service.d.ts +60 -0
  88. package/lib/services/auth-base.service.d.ts +55 -0
  89. package/lib/services/base-form.service.d.ts +27 -0
  90. package/lib/services/config-base.service.d.ts +24 -0
  91. package/lib/services/helper-functions.d.ts +37 -0
  92. package/lib/services/spiderly-message.service.d.ts +17 -0
  93. package/lib/services/spiderly-transloco-loader.d.ts +10 -0
  94. package/lib/services/translate-labels-abstract.service.d.ts +7 -0
  95. package/lib/services/validator-abstract.service.d.ts +13 -0
  96. package/package.json +66 -55
  97. package/{src/public-api.ts → public-api.d.ts} +90 -103
  98. package/{src/lib → styles}/styles/shared.scss +3 -6
  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/styles.scss +0 -0
@@ -1,37 +0,0 @@
1
- import { Component, Input, OnInit } from '@angular/core';
2
- import { BaseControl } from '../base-control';
3
- import { ReactiveFormsModule, FormsModule } from '@angular/forms';
4
- import { RequiredComponent } from '../../components/required/required.component';
5
- import { CommonModule } from '@angular/common';
6
- import { TranslocoService } from '@jsverse/transloco';
7
- import { PrimengModule } from '../../modules/primeng.module';
8
-
9
- @Component({
10
- selector: 'spiderly-number',
11
- templateUrl: './spiderly-number.component.html',
12
- styles: [],
13
- imports: [
14
- CommonModule,
15
- ReactiveFormsModule,
16
- FormsModule,
17
- PrimengModule,
18
- RequiredComponent
19
- ]
20
- })
21
- export class SpiderlyNumberComponent extends BaseControl implements OnInit {
22
- @Input() prefix: string;
23
- @Input() showButtons: boolean = true;
24
- @Input() decimal: boolean;
25
- @Input() maxFractionDigits: number = 0;
26
-
27
- constructor(
28
- protected override translocoService: TranslocoService,
29
- ) {
30
- super(translocoService);
31
- }
32
-
33
- override ngOnInit(){
34
- super.ngOnInit();
35
- }
36
-
37
- }
@@ -1,17 +0,0 @@
1
- <div class="flex flex-column gap-2">
2
- <div>
3
- <label>{{getTranslatedLabel()}}</label>
4
- <required *ngIf="control?.required"></required>
5
- </div>
6
- <p-password
7
- *ngIf="control"
8
- [pTooltip]="getValidationErrrorMessages()" [tooltipEvent]="errorMessageTooltipEvent" tooltipPosition="bottom" [tooltipDisabled]="control.valid" tooltipStyleClass="spiderly-tooltip-invalid"
9
- [formControl]="control"
10
- [id]="control?.label"
11
- [toggleMask]="true"
12
- [feedback]="showPasswordStrength"
13
- (onBlur)="control?.markAsDirty()"
14
- [style]="{'width':'100%'}"
15
- [inputStyle]="{'width':'100%'}"
16
- />
17
- </div>
@@ -1,34 +0,0 @@
1
- import { Component, Input, OnInit } from '@angular/core';
2
- import { BaseControl } from '../base-control';
3
- import { ReactiveFormsModule, FormsModule } from '@angular/forms';
4
- import { RequiredComponent } from '../../components/required/required.component';
5
- import { CommonModule } from '@angular/common';
6
- import { TranslocoService } from '@jsverse/transloco';
7
- import { PrimengModule } from '../../modules/primeng.module';
8
-
9
- @Component({
10
- selector: 'spiderly-password',
11
- templateUrl: './spiderly-password.component.html',
12
- styles: [],
13
- imports: [
14
- CommonModule,
15
- ReactiveFormsModule,
16
- FormsModule,
17
- PrimengModule,
18
- RequiredComponent
19
- ]
20
- })
21
- export class SpiderlyPasswordComponent extends BaseControl implements OnInit {
22
- @Input() showPasswordStrength: boolean = false;
23
-
24
- constructor(
25
- protected override translocoService: TranslocoService,
26
- ) {
27
- super(translocoService);
28
- }
29
-
30
- override ngOnInit(){
31
- super.ngOnInit();
32
- }
33
-
34
- }
@@ -1,18 +0,0 @@
1
- <!-- Can't put (onBlur) in this control -->
2
-
3
- <div class="flex flex-column gap-2">
4
- <div>
5
- <label>{{getTranslatedLabel()}}</label>
6
- <required *ngIf="control?.required"></required>
7
- </div>
8
- <textarea
9
- *ngIf="control"
10
- [pTooltip]="getValidationErrrorMessages()" [tooltipEvent]="errorMessageTooltipEvent" tooltipPosition="bottom" [tooltipDisabled]="control.valid" tooltipStyleClass="spiderly-tooltip-invalid"
11
- pTextarea
12
- [formControl]="control"
13
- [id]="control.label"
14
- (blur)="control.markAsDirty()"
15
- [autoResize]="true"
16
- [class]="control.disabled ? 'disabled' : ''"
17
- ></textarea>
18
- </div>
@@ -1,32 +0,0 @@
1
- import { Component, OnInit } from '@angular/core';
2
- import { BaseControl } from '../base-control';
3
- import { ReactiveFormsModule, FormsModule } from '@angular/forms';
4
- import { RequiredComponent } from '../../components/required/required.component';
5
- import { CommonModule } from '@angular/common';
6
- import { TranslocoService } from '@jsverse/transloco';
7
- import { PrimengModule } from '../../modules/primeng.module';
8
-
9
- @Component({
10
- selector: 'spiderly-textarea',
11
- templateUrl: './spiderly-textarea.component.html',
12
- styles: [],
13
- imports: [
14
- CommonModule,
15
- ReactiveFormsModule,
16
- FormsModule,
17
- PrimengModule,
18
- RequiredComponent
19
- ]
20
- })
21
- export class SpiderlyTextareaComponent extends BaseControl implements OnInit {
22
-
23
- constructor(
24
- protected override translocoService: TranslocoService,
25
- ) {
26
- super(translocoService);
27
- }
28
-
29
- override ngOnInit(){
30
- super.ngOnInit();
31
- }
32
- }
@@ -1,23 +0,0 @@
1
- <!-- Can't put (onBlur) in this control -->
2
-
3
- <div class="flex flex-column gap-2">
4
- <div *ngIf="getTranslatedLabel() != '' && getTranslatedLabel() != null">
5
- <label>{{getTranslatedLabel()}}</label>
6
- <required *ngIf="control?.required"></required>
7
- </div>
8
- <div class="p-inputgroup">
9
- <input
10
- *ngIf="control"
11
- [pTooltip]="getValidationErrrorMessages()" [tooltipEvent]="errorMessageTooltipEvent" tooltipPosition="bottom" [tooltipDisabled]="control.valid" tooltipStyleClass="spiderly-tooltip-invalid"
12
- pInputText
13
- [formControl]="control"
14
- [id]="control.label"
15
- (blur)="control.markAsDirty()"
16
- [placeholder]="placeholder"
17
- [fluid]="true"
18
- />
19
- <span *ngIf="showButton" (click)="buttonClick()" class="p-inputgroup-addon" style="cursor: pointer; background-color: var(--p-primary-color); border-color: var(--p-primary-color);">
20
- <i class="pi {{buttonIcon}}" style="color: #fff;"></i>
21
- </span>
22
- </div>
23
- </div>
@@ -1,41 +0,0 @@
1
- import { Component, EventEmitter, Input, OnInit, Output } from '@angular/core';
2
- import { BaseControl } from '../base-control';
3
- import { ReactiveFormsModule, FormsModule } from '@angular/forms';
4
- import { RequiredComponent } from '../../components/required/required.component';
5
- import { CommonModule } from '@angular/common';
6
- import { TranslocoService } from '@jsverse/transloco';
7
- import { PrimengModule } from '../../modules/primeng.module';
8
-
9
- @Component({
10
- selector: 'spiderly-textbox',
11
- templateUrl: './spiderly-textbox.component.html',
12
- styles: [],
13
- imports: [
14
- CommonModule,
15
- ReactiveFormsModule,
16
- FormsModule,
17
- PrimengModule,
18
- RequiredComponent
19
- ]
20
- })
21
- export class SpiderlyTextboxComponent extends BaseControl implements OnInit {
22
- @Input() showButton: boolean = false;
23
- @Input() buttonIcon: string;
24
- @Output() onButtonClick = new EventEmitter();
25
-
26
- constructor(
27
- protected override translocoService: TranslocoService,
28
- ) {
29
- super(translocoService);
30
- }
31
-
32
- override ngOnInit(){
33
- super.ngOnInit();
34
- }
35
-
36
-
37
- buttonClick() {
38
- this.onButtonClick.next(null);
39
- }
40
-
41
- }
@@ -1,25 +0,0 @@
1
- export class BaseEntity {
2
-
3
- public pipedProperties?: PipedProperty[];
4
- public typeName?: string;
5
-
6
- constructor(typeName: string) {
7
- this.pipedProperties = [];
8
- this.typeName = typeName;
9
- }
10
- }
11
-
12
- export class PipedProperty {
13
- pipe: PropertyPipes;
14
- control: string;
15
-
16
- constructor(p: PropertyPipes, c: string) {
17
- this.pipe = p;
18
- this.control = c;
19
- }
20
- }
21
-
22
- export enum PropertyPipes {
23
- IntegerPipe,
24
- DecimalPipe
25
- }
@@ -1,23 +0,0 @@
1
- import { BaseEntity } from "./base-entity";
2
-
3
- // FT HACK: Fake class, because of api imports
4
- export class Codebook extends BaseEntity
5
- {
6
- code?: string;
7
- displayName?: string;
8
-
9
- constructor(
10
- {
11
- code,
12
- displayName,
13
- }:{
14
- code?: string;
15
- displayName?: string;
16
- } = {}
17
- ) {
18
- super('Namebook');
19
-
20
- this.code = code;
21
- this.displayName = displayName;
22
- }
23
- }
@@ -1,22 +0,0 @@
1
- import { BaseEntity } from "./base-entity";
2
-
3
- export class InitCompanyAuthDialogDetails extends BaseEntity
4
- {
5
- image?: string;
6
- companyName?: string;
7
-
8
- constructor(
9
- {
10
- image,
11
- companyName,
12
- }:{
13
- image?: string;
14
- companyName?: string;
15
- } = {}
16
- ) {
17
- super('InitCompanyAuthDialogDetails');
18
-
19
- this.image = image;
20
- this.companyName = companyName;
21
- }
22
- }
@@ -1,35 +0,0 @@
1
- import { BaseEntity } from "./base-entity";
2
- import { User } from "./security-entities";
3
-
4
- export class InitTopBarData extends BaseEntity
5
- {
6
- companyName?: string;
7
- userProfilePath?: string;
8
- unreadNotificationsCount?: number;
9
- showProfileIcon?: boolean;
10
- currentUser?: User;
11
-
12
- constructor(
13
- {
14
- companyName,
15
- userProfilePath,
16
- unreadNotificationsCount,
17
- showProfileIcon,
18
- currentUser,
19
- }:{
20
- companyName?: string,
21
- userProfilePath?: string,
22
- unreadNotificationsCount?: number,
23
- showProfileIcon?: boolean,
24
- currentUser?: User,
25
- } = {}
26
- ) {
27
- super('InitTopBarData');
28
-
29
- this.companyName = companyName;
30
- this.userProfilePath = userProfilePath;
31
- this.unreadNotificationsCount = unreadNotificationsCount;
32
- this.showProfileIcon = showProfileIcon;
33
- this.currentUser = currentUser;
34
- }
35
- }
@@ -1,22 +0,0 @@
1
- import { BaseEntity } from "./base-entity";
2
-
3
- export class IsAuthorizedForSaveEvent extends BaseEntity
4
- {
5
- isAuthorizedForSave?: boolean;
6
- currentUserPermissionCodes?: string[];
7
-
8
- constructor(
9
- {
10
- isAuthorizedForSave,
11
- currentUserPermissionCodes,
12
- }:{
13
- isAuthorizedForSave?: boolean;
14
- currentUserPermissionCodes?: string[];
15
- } = {}
16
- ) {
17
- super('IsAuthorizedForSaveEvent');
18
-
19
- this.isAuthorizedForSave = isAuthorizedForSave;
20
- this.currentUserPermissionCodes = currentUserPermissionCodes;
21
- }
22
- }
@@ -1,18 +0,0 @@
1
- import { BaseEntity } from "./base-entity";
2
-
3
- export class LastMenuIconIndexClicked extends BaseEntity
4
- {
5
- index?: number;
6
-
7
- constructor(
8
- {
9
- index,
10
- }:{
11
- index?: number;
12
- } = {}
13
- ) {
14
- super('LastMenuIconIndexClicked');
15
-
16
- this.index = index;
17
- }
18
- }
@@ -1,22 +0,0 @@
1
- import { BaseEntity } from "../entities/base-entity";
2
-
3
- export class LazyLoadSelectedIdsResult extends BaseEntity
4
- {
5
- selectedIds?: number[] = []; // FT: Only for showing checkboxes, we will not send this to the backend
6
- totalRecordsSelected?: number = 0;
7
-
8
- constructor(
9
- {
10
- selectedIds,
11
- totalRecordsSelected,
12
- }:{
13
- selectedIds?: number[];
14
- totalRecordsSelected?: number;
15
- } = {}
16
- ) {
17
- super('LazyLoadSelectedIdsResult');
18
-
19
- this.selectedIds = selectedIds;
20
- this.totalRecordsSelected = totalRecordsSelected;
21
- }
22
- }
@@ -1,15 +0,0 @@
1
- export class MimeTypes {
2
- private constructor(public readonly value: string) {}
3
-
4
- static Pdf = new MimeTypes("application/pdf");
5
- static Zip = new MimeTypes("application/zip");
6
-
7
- static Jpeg = new MimeTypes("image/jpeg");
8
- static Png = new MimeTypes("image/png");
9
- static Svg = new MimeTypes("image/svg");
10
- static Webp = new MimeTypes("image/webp");
11
-
12
- toString() {
13
- return this.value;
14
- }
15
- }
@@ -1,22 +0,0 @@
1
- import { BaseEntity } from "../entities/base-entity";
2
-
3
- export class Namebook extends BaseEntity
4
- {
5
- id?: number;
6
- displayName?: string;
7
-
8
- constructor(
9
- {
10
- id,
11
- displayName,
12
- }:{
13
- id?: number;
14
- displayName?: string;
15
- } = {}
16
- ) {
17
- super('Namebook');
18
-
19
- this.id = id;
20
- this.displayName = displayName;
21
- }
22
- }
@@ -1,23 +0,0 @@
1
- import { BaseEntity } from "../entities/base-entity";
2
-
3
- export class PrimengOption extends BaseEntity
4
- {
5
- label?: string;
6
- code?: any; // Can't be value: https://github.com/primefaces/primeng/issues/17332#issuecomment-2922861294
7
-
8
- constructor(
9
- {
10
- label,
11
- code,
12
- }:{
13
- label?: string;
14
- code?: any;
15
- } = {}
16
- ) {
17
- super('PrimengOption');
18
-
19
- this.label = label;
20
- this.code = code;
21
- }
22
-
23
- }
@@ -1 +0,0 @@
1
- // TODO FT: try to implement