spiderly 19.2.0 → 19.3.0-preview.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (62) hide show
  1. package/fesm2022/spiderly.mjs +2195 -2108
  2. package/fesm2022/spiderly.mjs.map +1 -1
  3. package/lib/components/auth/login/login.component.d.ts +6 -7
  4. package/lib/components/auth/partials/verification-wrapper.component.d.ts +4 -4
  5. package/lib/components/base-details/role-base-details.component.d.ts +13 -23
  6. package/lib/components/base-form/base-form copy.d.ts +11 -28
  7. package/lib/components/info-card/info-card.component.d.ts +4 -2
  8. package/lib/components/layout/profile-avatar/profile-avatar.component.d.ts +18 -11
  9. package/lib/components/layout/sidebar/menuitem.component.d.ts +3 -3
  10. package/lib/components/spiderly-buttons/google-button/google-button.component.d.ts +2 -5
  11. package/lib/components/spiderly-buttons/spiderly-button/spiderly-button.component.d.ts +2 -1
  12. package/lib/components/spiderly-buttons/spiderly-button-base/spiderly-button-base.d.ts +2 -1
  13. package/lib/components/spiderly-data-table/spiderly-data-table.component.d.ts +12 -8
  14. package/lib/components/spiderly-form-control/spiderly-form-control.d.ts +24 -7
  15. package/lib/components/spiderly-panels/spiderly-card/spiderly-card.component.d.ts +1 -1
  16. package/lib/components/spiderly-panels/spiderly-panel/spiderly-panel.component.d.ts +2 -1
  17. package/lib/components/spiderly-panels/spiderly-panels.module.d.ts +4 -5
  18. package/lib/controls/base-control.d.ts +4 -3
  19. package/lib/controls/base-dropdown-control.d.ts +2 -2
  20. package/lib/controls/spiderly-autocomplete/spiderly-autocomplete.component.d.ts +4 -4
  21. package/lib/controls/spiderly-controls.module.d.ts +10 -11
  22. package/lib/controls/spiderly-file/spiderly-file.component.d.ts +7 -4
  23. package/lib/entities/base-entity.d.ts +14 -2
  24. package/lib/entities/codebook.d.ts +1 -0
  25. package/lib/entities/filter-sort-meta.d.ts +13 -0
  26. package/lib/entities/filter.d.ts +29 -1
  27. package/lib/entities/init-company-auth-dialog-details.d.ts +1 -0
  28. package/lib/entities/init-top-bar-data.d.ts +1 -0
  29. package/lib/entities/is-authorized-for-save-event.d.ts +2 -3
  30. package/lib/entities/last-menu-icon-index-clicked.d.ts +1 -0
  31. package/lib/entities/lazy-load-selected-ids-result.d.ts +1 -0
  32. package/lib/entities/namebook.d.ts +11 -2
  33. package/lib/entities/primeng-option.d.ts +1 -0
  34. package/lib/entities/security-entities.d.ts +197 -56
  35. package/lib/entities/simple-save-result.d.ts +1 -0
  36. package/lib/entities/spiderly-button.d.ts +5 -8
  37. package/lib/enums/security-enums.d.ts +0 -8
  38. package/lib/errors/spiderly-error.d.ts +3 -0
  39. package/lib/services/api.service.security.d.ts +1 -3
  40. package/lib/services/app-initializer.d.ts +1 -1
  41. package/lib/services/app-layout-base.service.d.ts +3 -3
  42. package/lib/services/auth-base.service.d.ts +4 -5
  43. package/lib/services/base-form.service.d.ts +10 -11
  44. package/lib/services/config-base.service.d.ts +0 -1
  45. package/lib/services/helper-functions.d.ts +17 -7
  46. package/lib/services/spiderly-message.service.d.ts +0 -1
  47. package/lib/services/spiderly-transloco-loader.d.ts +3 -1
  48. package/package.json +10 -10
  49. package/public-api.d.ts +1 -5
  50. package/styles/components/info-card/info-card.component.scss +61 -0
  51. package/styles/components/layout/profile-avatar/profile-avatar.component.scss +9 -0
  52. package/styles/components/spiderly-panels/panel-body/panel-body.component.scss +9 -0
  53. package/styles/components/spiderly-panels/panel-footer/panel-footer.component.scss +7 -0
  54. package/styles/components/spiderly-panels/spiderly-panel/spiderly-panel.component.scss +87 -10
  55. package/styles/controls/base-controls.scss +17 -0
  56. package/styles/styles/layout/_variables.scss +1 -1
  57. package/styles/styles/shared.scss +39 -105
  58. package/lib/components/auth/partials/registration-verification.component.d.ts +0 -17
  59. package/lib/components/auth/registration/registration.component.d.ts +0 -34
  60. package/lib/handlers/spiderly-transloco-fallback-strategy.d.ts +0 -13
  61. package/lib/modules/core.module.d.ts +0 -21
  62. package/lib/modules/spiderly-transloco.module.d.ts +0 -51
@@ -1,108 +1,12 @@
1
1
  @use './layout/variables' as *;
2
2
 
3
- .spiderly-panel{
4
- .p-panel-content{
5
- padding: 0;
6
- }
7
- }
8
-
9
- .buttons-wrapper{
10
- gap: 0.5rem;
11
- display: flex;
12
- align-items: center;
13
- flex-wrap: wrap;
14
- }
15
-
16
- .multiple-panel-first-without-header{
17
- .p-panel {
18
- border-bottom-left-radius: 0px;
19
- border-bottom-right-radius: 0px;
20
- border-top: 1px solid var(--surface-border);
21
- border-top-left-radius: var(--p-content-border-radius);
22
- border-top-right-radius: var(--p-content-border-radius);
23
- border-bottom: none;
24
- }
25
- }
26
-
27
- .multiple-panel-middle-without-header{
28
- .p-panel {
29
- border-bottom-left-radius: 0px;
30
- border-bottom-right-radius: 0px;
31
- border-top: 1px solid var(--surface-border);
32
- border-top-left-radius: 0px;
33
- border-top-right-radius: 0px;
34
- border-bottom: none;
35
- }
36
- }
37
-
38
- .multiple-panel-last-without-header{
39
- .p-panel {
40
- border-bottom-left-radius: var(--p-content-border-radius);
41
- border-bottom-right-radius: var(--p-content-border-radius);
42
- border-top: 1px solid var(--surface-border);
43
- border-top-left-radius: 0px;
44
- border-top-right-radius: 0px;
45
- }
46
- }
47
-
48
- .multiple-panel-first{
49
- .p-panel {
50
- border-bottom-left-radius: 0px;
51
- border-bottom-right-radius: 0px;
52
- border-bottom: none;
53
- }
54
- }
55
-
56
- .panel-border{
57
- .p-panel {
58
- border-bottom-left-radius: var(--p-content-border-radius);
59
- border-bottom-right-radius: var(--p-content-border-radius);
60
- border-bottom: 1px solid var(--surface-border);
61
- }
62
- }
63
-
64
- .multiple-panel-middle {
65
- .p-panel {
66
- border-radius: 0px;
67
- border-bottom: none;
68
- }
69
- }
70
-
71
- .multiple-panel-last {
72
- .p-panel {
73
- border-top-left-radius: 0px;
74
- border-top-right-radius: 0px;
75
- }
76
- }
77
-
78
- .non-grid-panel-bottom-padding{
79
- padding-bottom: 14px;
80
- }
81
-
82
- @media (max-width: 600px) {
83
- .non-grid-panel-bottom-padding{
84
- padding-bottom: 0px;
85
- }
86
- }
87
-
88
- .panel-body-wrapper{
89
- padding: 18px;
90
- }
91
-
92
- @media (max-width: 600px) {
93
- .panel-body-wrapper{
94
- padding: 14px;
95
- padding-bottom: 0px;
96
- }
97
- }
98
-
99
3
  @media (max-width: 600px) {
100
4
  .panel-add-button{
101
5
  margin-bottom: 14px;
102
6
  }
103
7
  }
104
8
 
105
- .c-dashboard-item {
9
+ .spiderly-dashboard-item {
106
10
  position: relative;
107
11
  display: flex;
108
12
  flex-direction: column;
@@ -280,7 +184,7 @@
280
184
  width: 100%;
281
185
  }
282
186
 
283
- // FT: You need to manually adjust the height
187
+ // You need to manually adjust the height
284
188
  .vertical-gray-separator{
285
189
  border-left: 1px solid var(--p-content-border-color);
286
190
  }
@@ -305,10 +209,6 @@
305
209
  }
306
210
  }
307
211
 
308
- .header{
309
- font-size: 17.5px;
310
- }
311
-
312
212
  .header-separator{
313
213
  margin-top: 7px;
314
214
  border-top: 3px solid var(--p-primary-color);
@@ -441,8 +341,8 @@
441
341
  height: 30px;
442
342
  padding: 5px;
443
343
 
444
- background: var(--primary-dark-color);
445
- border: 1px solid var(--primary-dark-color);
344
+ background: var(--p-primary-color);
345
+ border: 1px solid var(--p-primary-color);
446
346
  color: white;
447
347
  text-align: center;
448
348
  margin-right: 16px;
@@ -524,7 +424,7 @@
524
424
  inset-inline-end: -9px !important;
525
425
  }
526
426
 
527
- .gradient-title {
427
+ .spiderly-gradient-title {
528
428
  font-weight: bold;
529
429
  display: inline-block;
530
430
  white-space: normal;
@@ -547,4 +447,38 @@ ul, ol {
547
447
  padding-left: 25px;
548
448
  margin-top: 10px;
549
449
  margin-bottom: 10px;
450
+ }
451
+
452
+ $grid-columns: 8;
453
+ $grid-gap: 2rem;
454
+ $breakpoints: (
455
+ sm: 640px,
456
+ md: 768px,
457
+ lg: 1024px
458
+ );
459
+
460
+ .spiderly-grid {
461
+ display: grid;
462
+ grid-template-columns: repeat($grid-columns, 1fr);
463
+ gap: $grid-gap;
464
+ padding: 1rem 0;
465
+ }
466
+
467
+ @for $i from 1 through $grid-columns {
468
+ .col-#{$i} {
469
+ grid-column: span #{$i};
470
+ flex: unset;
471
+ padding: unset;
472
+ width: unset;
473
+ }
474
+ }
475
+
476
+ @each $breakpoint, $size in $breakpoints {
477
+ @media (min-width: #{$size}) {
478
+ @for $i from 1 through $grid-columns {
479
+ .#{$breakpoint}\:col-#{$i} {
480
+ grid-column: span #{$i};
481
+ }
482
+ }
483
+ }
550
484
  }
@@ -1,17 +0,0 @@
1
- import { OnInit } from '@angular/core';
2
- import { TranslocoService } from '@jsverse/transloco';
3
- import { SpiderlyMessageService } from '../../../services/spiderly-message.service';
4
- import { AuthBaseService } from '../../../services/auth-base.service';
5
- import * as i0 from "@angular/core";
6
- export declare class RegistrationVerificationComponent implements OnInit {
7
- private authService;
8
- private messageService;
9
- private translocoService;
10
- email: string;
11
- constructor(authService: AuthBaseService, messageService: SpiderlyMessageService, translocoService: TranslocoService);
12
- ngOnInit(): void;
13
- resendVerificationToken(): void;
14
- onCodeSubmit(event: string): void;
15
- static ɵfac: i0.ɵɵFactoryDeclaration<RegistrationVerificationComponent, never>;
16
- static ɵcmp: i0.ɵɵComponentDeclaration<RegistrationVerificationComponent, "registration-verification", never, { "email": { "alias": "email"; "required": false; }; }, {}, never, never, true, never>;
17
- }
@@ -1,34 +0,0 @@
1
- import { ActivatedRoute, Router } from '@angular/router';
2
- import { ChangeDetectorRef, KeyValueDiffers, OnInit } from '@angular/core';
3
- import { HttpClient } from '@angular/common/http';
4
- import { TranslocoService } from '@jsverse/transloco';
5
- import { LayoutBaseService } from '../../../services/app-layout-base.service';
6
- import { AuthBaseService } from '../../../services/auth-base.service';
7
- import { BaseFormCopy } from '../../base-form/base-form copy';
8
- import { SpiderlyFormGroup } from '../../spiderly-form-control/spiderly-form-control';
9
- import { Registration } from '../../../entities/security-entities';
10
- import { SpiderlyMessageService } from '../../../services/spiderly-message.service';
11
- import { BaseFormService } from '../../../services/base-form.service';
12
- import * as i0 from "@angular/core";
13
- export declare class RegistrationComponent extends BaseFormCopy implements OnInit {
14
- protected differs: KeyValueDiffers;
15
- protected http: HttpClient;
16
- protected messageService: SpiderlyMessageService;
17
- protected changeDetectorRef: ChangeDetectorRef;
18
- protected router: Router;
19
- protected route: ActivatedRoute;
20
- protected translocoService: TranslocoService;
21
- protected baseFormService: BaseFormService;
22
- layoutService: LayoutBaseService;
23
- private authService;
24
- registrationFormGroup: SpiderlyFormGroup<Registration>;
25
- companyName: string;
26
- showEmailSentDialog: boolean;
27
- constructor(differs: KeyValueDiffers, http: HttpClient, messageService: SpiderlyMessageService, changeDetectorRef: ChangeDetectorRef, router: Router, route: ActivatedRoute, translocoService: TranslocoService, baseFormService: BaseFormService, layoutService: LayoutBaseService, authService: AuthBaseService);
28
- ngOnInit(): void;
29
- initRegistrationFormGroup(model: Registration): void;
30
- companyNameChange(companyName: string): void;
31
- sendRegistrationVerificationEmail(): void;
32
- static ɵfac: i0.ɵɵFactoryDeclaration<RegistrationComponent, never>;
33
- static ɵcmp: i0.ɵɵComponentDeclaration<RegistrationComponent, "app-registration", never, {}, {}, never, never, true, never>;
34
- }
@@ -1,13 +0,0 @@
1
- import { TranslocoFallbackStrategy, TranslocoService } from '@jsverse/transloco';
2
- import { HashMap, TranslocoMissingHandler, TranslocoMissingHandlerData } from "@jsverse/transloco";
3
- import * as i0 from "@angular/core";
4
- export declare class SpiderlyTranslocoFallbackStrategy implements TranslocoFallbackStrategy {
5
- getNextLangs(failedLang: string): string[];
6
- static ɵfac: i0.ɵɵFactoryDeclaration<SpiderlyTranslocoFallbackStrategy, never>;
7
- static ɵprov: i0.ɵɵInjectableDeclaration<SpiderlyTranslocoFallbackStrategy>;
8
- }
9
- export declare class SpiderlyTranslocoMissingHandler implements TranslocoMissingHandler {
10
- private translocoService;
11
- constructor(translocoService: TranslocoService);
12
- handle(key: string, data: TranslocoMissingHandlerData, params?: HashMap): string;
13
- }
@@ -1,21 +0,0 @@
1
- import { EnvironmentProviders } from "@angular/core";
2
- /**
3
- * Provides core services and configuration for the Spiderly library.
4
- *
5
- * @param spiderlyCoreConfig Optional configuration object for Spiderly core.
6
- * @returns EnvironmentProviders for Angular's dependency injection system.
7
- *
8
- * Usage:
9
- * Call this function in your application's providers to set up core services.
10
- */
11
- export declare function provideSpiderlyCore(spiderlyCoreConfig?: SpiderlyCoreConfig): EnvironmentProviders;
12
- /**
13
- * Configuration options for Spiderly core module.
14
- */
15
- export interface SpiderlyCoreConfig {
16
- /**
17
- * Whether to enable authentication features.
18
- * Defaults to true. Set to false to disable authentication-related providers and initializers.
19
- */
20
- useAuth?: boolean;
21
- }
@@ -1,51 +0,0 @@
1
- import { EnvironmentProviders, ModuleWithProviders } from '@angular/core';
2
- import * as i0 from "@angular/core";
3
- import * as i1 from "@jsverse/transloco";
4
- /**
5
- * Provides Transloco with Spiderly-specific configuration.
6
- * @param config Optional configuration for available, preload, default, and fallback languages.
7
- * @returns EnvironmentProviders for Angular DI.
8
- */
9
- export declare function provideSpiderlyTransloco(config?: SpiderlyTranslocoConfig): EnvironmentProviders;
10
- /**
11
- * Angular module for Spiderly Transloco integration.
12
- */
13
- export declare class SpiderlyTranslocoModule {
14
- /**
15
- * Configures the module with custom translation settings.
16
- * @param config Optional SpiderlyTranslocoConfig object.
17
- * @returns ModuleWithProviders for Angular module system.
18
- */
19
- static forRoot(config?: SpiderlyTranslocoConfig): ModuleWithProviders<SpiderlyTranslocoModule>;
20
- static ɵfac: i0.ɵɵFactoryDeclaration<SpiderlyTranslocoModule, never>;
21
- static ɵmod: i0.ɵɵNgModuleDeclaration<SpiderlyTranslocoModule, never, [typeof i1.TranslocoModule], [typeof i1.TranslocoModule]>;
22
- static ɵinj: i0.ɵɵInjectorDeclaration<SpiderlyTranslocoModule>;
23
- }
24
- /**
25
- * Configuration interface for Spiderly Transloco.
26
- */
27
- export interface SpiderlyTranslocoConfig {
28
- /**
29
- * List of language codes that are available for translation in your app.
30
- * Example: ['en', 'en.generated', 'sr-Latn-RS', 'sr-Latn-RS.generated']
31
- * See the full list of language codes here:
32
- * https://www.iana.org/assignments/language-subtag-registry/language-subtag-registry
33
- */
34
- availableLangs: string[];
35
- /**
36
- * List of language codes to preload at app startup.
37
- * Example: ['en', 'en.generated']
38
- * Only these languages will be loaded immediately; others load on demand.
39
- */
40
- preloadLangs: string[];
41
- /**
42
- * The default language code to use if no language is set.
43
- * Example: 'en'
44
- */
45
- defaultLang: string;
46
- /**
47
- * The fallback language code to use if a translation key is missing.
48
- * Example: 'en.generated'
49
- */
50
- fallbackLang: string;
51
- }