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.
- package/fesm2022/spiderly.mjs +4612 -0
- package/fesm2022/spiderly.mjs.map +1 -0
- package/index.d.ts +5 -0
- package/lib/components/auth/login/login.component.d.ts +35 -0
- package/lib/components/auth/partials/auth.component.d.ts +21 -0
- package/lib/components/auth/partials/login-verification.component.d.ts +18 -0
- package/lib/components/auth/partials/registration-verification.component.d.ts +17 -0
- package/lib/components/auth/partials/verification-wrapper.component.d.ts +31 -0
- package/lib/components/auth/registration/registration.component.d.ts +34 -0
- package/lib/components/base-details/role-base-details.component.d.ts +50 -0
- package/lib/components/base-form/base-form copy.d.ts +54 -0
- package/lib/components/card-skeleton/card-skeleton.component.d.ts +12 -0
- package/lib/components/footer/footer.component.d.ts +9 -0
- package/lib/components/index-card/index-card.component.d.ts +22 -0
- package/lib/components/info-card/info-card.component.d.ts +11 -0
- package/lib/components/layout/layout-base.component.d.ts +37 -0
- package/lib/components/layout/sidebar/menuitem.component.d.ts +43 -0
- package/lib/components/layout/sidebar/sidebar-menu.component.d.ts +23 -0
- package/lib/components/layout/sidebar/sidebar-menu.service.d.ts +12 -0
- package/lib/components/layout/sidebar/sidebar.component.d.ts +11 -0
- package/lib/components/layout/topbar/topbar.component.d.ts +45 -0
- package/lib/components/not-found/not-found.component.d.ts +9 -0
- package/lib/components/required/required.component.d.ts +6 -0
- package/lib/components/spiderly-buttons/google-button/google-button.component.d.ts +17 -0
- package/lib/components/spiderly-buttons/return-button/return-button.component.d.ts +10 -0
- package/lib/components/spiderly-buttons/spiderly-button/spiderly-button.component.d.ts +6 -0
- package/lib/components/spiderly-buttons/spiderly-button-base/spiderly-button-base.d.ts +27 -0
- package/lib/components/spiderly-buttons/spiderly-split-button/spiderly-split-button.component.d.ts +8 -0
- package/lib/components/spiderly-data-table/spiderly-data-table.component.d.ts +157 -0
- package/lib/components/spiderly-delete-dialog/spiderly-delete-confirmation.component.d.ts +11 -0
- package/lib/components/spiderly-form-control/spiderly-form-control.d.ts +37 -0
- package/lib/components/spiderly-panels/panel-body/panel-body.component.d.ts +9 -0
- package/lib/components/spiderly-panels/panel-footer/panel-footer.component.d.ts +8 -0
- package/lib/components/spiderly-panels/panel-header/panel-header.component.d.ts +29 -0
- package/lib/components/spiderly-panels/spiderly-card/spiderly-card.component.d.ts +10 -0
- package/lib/components/spiderly-panels/spiderly-panel/spiderly-panel.component.d.ts +25 -0
- package/lib/components/spiderly-panels/spiderly-panels.module.d.ts +13 -0
- package/lib/controls/base-autocomplete-control.d.ts +9 -0
- package/lib/controls/base-control.d.ts +23 -0
- package/lib/controls/base-dropdown-control.d.ts +18 -0
- package/lib/controls/spiderly-autocomplete/spiderly-autocomplete.component.d.ts +18 -0
- package/lib/controls/spiderly-calendar/spiderly-calendar.component.d.ts +13 -0
- package/lib/controls/spiderly-checkbox/spiderly-checkbox.component.d.ts +14 -0
- package/lib/controls/spiderly-colorpick/spiderly-colorpick.component.d.ts +11 -0
- package/lib/controls/spiderly-controls.module.d.ts +22 -0
- package/lib/controls/spiderly-dropdown/spiderly-dropdown.component.d.ts +14 -0
- package/lib/controls/spiderly-editor/spiderly-editor.component.d.ts +16 -0
- package/lib/controls/spiderly-file/spiderly-file.component.d.ts +36 -0
- package/lib/controls/spiderly-multiautocomplete/spiderly-multiautocomplete.component.d.ts +13 -0
- package/lib/controls/spiderly-multiselect/spiderly-multiselect.component.d.ts +11 -0
- package/lib/controls/spiderly-number/spiderly-number.component.d.ts +15 -0
- package/lib/controls/spiderly-password/spiderly-password.component.d.ts +12 -0
- package/lib/controls/spiderly-textarea/spiderly-textarea.component.d.ts +11 -0
- package/lib/controls/spiderly-textbox/spiderly-textbox.component.d.ts +15 -0
- package/lib/entities/base-entity.d.ts +14 -0
- package/lib/entities/codebook.d.ts +9 -0
- package/lib/entities/init-company-auth-dialog-details.d.ts +9 -0
- package/lib/entities/init-top-bar-data.d.ts +16 -0
- package/lib/entities/is-authorized-for-save-event.d.ts +9 -0
- package/lib/entities/last-menu-icon-index-clicked.d.ts +7 -0
- package/lib/entities/lazy-load-selected-ids-result.d.ts +9 -0
- package/{src/lib/entities/menuchangeevent.ts → lib/entities/menuchangeevent.d.ts} +4 -4
- package/lib/entities/mime-type.d.ts +11 -0
- package/lib/entities/namebook.d.ts +9 -0
- package/lib/entities/primeng-option.d.ts +9 -0
- package/lib/entities/security-entities.d.ts +211 -0
- package/lib/entities/simple-save-result.d.ts +7 -0
- package/lib/entities/spiderly-button.d.ts +13 -0
- package/{src/lib/entities/table-filter-context.ts → lib/entities/table-filter-context.d.ts} +5 -6
- package/lib/entities/table-filter-sort-meta.d.ts +4 -0
- package/{src/lib/entities/table-filter.ts → lib/entities/table-filter.d.ts} +23 -48
- package/lib/entities/table-response.d.ts +4 -0
- package/lib/enums/security-enums.d.ts +22 -0
- package/lib/enums/verification-type-codes.d.ts +4 -0
- package/lib/guards/auth.guard.d.ts +15 -0
- package/lib/guards/not-auth.guard.d.ts +12 -0
- package/lib/handlers/spiderly-error-handler.d.ts +14 -0
- package/lib/handlers/spiderly-transloco-fallback-strategy.d.ts +13 -0
- package/lib/interceptors/http-loading.interceptor.d.ts +2 -0
- package/lib/interceptors/json-parser.interceptor.d.ts +2 -0
- package/lib/interceptors/jwt.interceptor.d.ts +2 -0
- package/lib/interceptors/unauthorized.interceptor.d.ts +2 -0
- package/lib/modules/core.module.d.ts +2 -0
- package/lib/modules/primeng.module.d.ts +42 -0
- package/lib/modules/spiderly-transloco.module.d.ts +15 -0
- package/lib/services/api.service.security.d.ts +35 -0
- package/lib/services/app-initializer.d.ts +4 -0
- package/lib/services/app-layout-base.service.d.ts +60 -0
- package/lib/services/auth-base.service.d.ts +55 -0
- package/lib/services/base-form.service.d.ts +27 -0
- package/lib/services/config-base.service.d.ts +24 -0
- package/lib/services/helper-functions.d.ts +37 -0
- package/lib/services/spiderly-message.service.d.ts +17 -0
- package/lib/services/spiderly-transloco-loader.d.ts +10 -0
- package/lib/services/translate-labels-abstract.service.d.ts +7 -0
- package/lib/services/validator-abstract.service.d.ts +13 -0
- package/package.json +66 -55
- package/{src/public-api.ts → public-api.d.ts} +91 -103
- package/eslint.config.js +0 -32
- package/ng-package.json +0 -10
- package/src/lib/components/auth/login/login.component.html +0 -25
- package/src/lib/components/auth/login/login.component.ts +0 -77
- package/src/lib/components/auth/partials/auth.component.html +0 -29
- package/src/lib/components/auth/partials/auth.component.ts +0 -60
- package/src/lib/components/auth/partials/login-verification.component.html +0 -2
- package/src/lib/components/auth/partials/login-verification.component.ts +0 -41
- package/src/lib/components/auth/partials/registration-verification.component.html +0 -1
- package/src/lib/components/auth/partials/registration-verification.component.ts +0 -41
- package/src/lib/components/auth/partials/verification-wrapper.component.html +0 -39
- package/src/lib/components/auth/partials/verification-wrapper.component.ts +0 -68
- package/src/lib/components/auth/registration/registration.component.html +0 -31
- package/src/lib/components/auth/registration/registration.component.ts +0 -77
- package/src/lib/components/base-details/role-base-details.component.html +0 -33
- package/src/lib/components/base-details/role-base-details.component.ts +0 -194
- package/src/lib/components/base-form/base-form copy.ts +0 -356
- package/src/lib/components/card-skeleton/card-skeleton.component.html +0 -8
- package/src/lib/components/card-skeleton/card-skeleton.component.ts +0 -21
- package/src/lib/components/footer/app.footer.component.ts +0 -17
- package/src/lib/components/footer/footer.component.html +0 -3
- package/src/lib/components/footer/footer.component.ts +0 -17
- package/src/lib/components/index-card/index-card.component.html +0 -15
- package/src/lib/components/index-card/index-card.component.ts +0 -48
- package/src/lib/components/info-card/info-card.component.html +0 -18
- package/src/lib/components/info-card/info-card.component.ts +0 -29
- package/src/lib/components/layout/layout-base.component.ts +0 -140
- package/src/lib/components/layout/sidebar/menuitem.component.html +0 -40
- package/src/lib/components/layout/sidebar/menuitem.component.ts +0 -179
- package/src/lib/components/layout/sidebar/sidebar-menu.component.html +0 -6
- package/src/lib/components/layout/sidebar/sidebar-menu.component.ts +0 -44
- package/src/lib/components/layout/sidebar/sidebar-menu.service.ts +0 -22
- package/src/lib/components/layout/sidebar/sidebar.component.html +0 -1
- package/src/lib/components/layout/sidebar/sidebar.component.ts +0 -20
- package/src/lib/components/layout/topbar/topbar.component.html +0 -64
- package/src/lib/components/layout/topbar/topbar.component.ts +0 -137
- package/src/lib/components/not-found/not-found.component.html +0 -27
- package/src/lib/components/not-found/not-found.component.ts +0 -22
- package/src/lib/components/required/required.component.html +0 -1
- package/src/lib/components/required/required.component.ts +0 -13
- package/src/lib/components/spiderly-buttons/google-button/google-button.component.html +0 -5
- package/src/lib/components/spiderly-buttons/google-button/google-button.component.ts +0 -53
- package/src/lib/components/spiderly-buttons/return-button/return-button.component.html +0 -3
- package/src/lib/components/spiderly-buttons/return-button/return-button.component.ts +0 -35
- package/src/lib/components/spiderly-buttons/spiderly-button/spiderly-button.component.html +0 -14
- package/src/lib/components/spiderly-buttons/spiderly-button/spiderly-button.component.ts +0 -27
- package/src/lib/components/spiderly-buttons/spiderly-button-base/spiderly-button-base.ts +0 -61
- package/src/lib/components/spiderly-buttons/spiderly-split-button/spiderly-split-button.component.html +0 -15
- package/src/lib/components/spiderly-buttons/spiderly-split-button/spiderly-split-button.component.ts +0 -24
- package/src/lib/components/spiderly-data-table/spiderly-data-table.component.html +0 -93
- package/src/lib/components/spiderly-data-table/spiderly-data-table.component.ts +0 -614
- package/src/lib/components/spiderly-delete-dialog/spiderly-delete-confirmation.component.html +0 -17
- package/src/lib/components/spiderly-delete-dialog/spiderly-delete-confirmation.component.ts +0 -39
- package/src/lib/components/spiderly-form-control/spiderly-form-control.ts +0 -60
- package/src/lib/components/spiderly-panels/panel-body/panel-body.component.html +0 -8
- package/src/lib/components/spiderly-panels/panel-body/panel-body.component.ts +0 -16
- package/src/lib/components/spiderly-panels/panel-footer/panel-footer.component.html +0 -8
- package/src/lib/components/spiderly-panels/panel-footer/panel-footer.component.ts +0 -15
- package/src/lib/components/spiderly-panels/panel-header/panel-header.component.html +0 -25
- package/src/lib/components/spiderly-panels/panel-header/panel-header.component.ts +0 -69
- package/src/lib/components/spiderly-panels/spiderly-card/spiderly-card.component.html +0 -7
- package/src/lib/components/spiderly-panels/spiderly-card/spiderly-card.component.ts +0 -17
- package/src/lib/components/spiderly-panels/spiderly-panel/spiderly-panel.component.html +0 -40
- package/src/lib/components/spiderly-panels/spiderly-panel/spiderly-panel.component.ts +0 -42
- package/src/lib/components/spiderly-panels/spiderly-panels.module.ts +0 -32
- package/src/lib/controls/base-autocomplete-control.ts +0 -17
- package/src/lib/controls/base-control.ts +0 -60
- package/src/lib/controls/base-dropdown-control.ts +0 -37
- package/src/lib/controls/spiderly-autocomplete/spiderly-autocomplete.component.html +0 -36
- package/src/lib/controls/spiderly-autocomplete/spiderly-autocomplete.component.ts +0 -56
- package/src/lib/controls/spiderly-calendar/spiderly-calendar.component.html +0 -21
- package/src/lib/controls/spiderly-calendar/spiderly-calendar.component.ts +0 -37
- package/src/lib/controls/spiderly-checkbox/spiderly-checkbox.component.html +0 -16
- package/src/lib/controls/spiderly-checkbox/spiderly-checkbox.component.ts +0 -38
- package/src/lib/controls/spiderly-colorpick/spiderly-colorpick.component.html +0 -33
- package/src/lib/controls/spiderly-colorpick/spiderly-colorpick.component.ts +0 -40
- package/src/lib/controls/spiderly-controls.module.ts +0 -61
- package/src/lib/controls/spiderly-dropdown/spiderly-dropdown.component.html +0 -27
- package/src/lib/controls/spiderly-dropdown/spiderly-dropdown.component.ts +0 -39
- package/src/lib/controls/spiderly-editor/spiderly-editor.component.html +0 -22
- package/src/lib/controls/spiderly-editor/spiderly-editor.component.ts +0 -58
- package/src/lib/controls/spiderly-file/spiderly-file.component.html +0 -54
- package/src/lib/controls/spiderly-file/spiderly-file.component.ts +0 -123
- package/src/lib/controls/spiderly-multiautocomplete/spiderly-multiautocomplete.component.html +0 -30
- package/src/lib/controls/spiderly-multiautocomplete/spiderly-multiautocomplete.component.ts +0 -38
- package/src/lib/controls/spiderly-multiselect/spiderly-multiselect.component.html +0 -23
- package/src/lib/controls/spiderly-multiselect/spiderly-multiselect.component.ts +0 -32
- package/src/lib/controls/spiderly-number/spiderly-number.component.html +0 -19
- package/src/lib/controls/spiderly-number/spiderly-number.component.ts +0 -37
- package/src/lib/controls/spiderly-password/spiderly-password.component.html +0 -17
- package/src/lib/controls/spiderly-password/spiderly-password.component.ts +0 -34
- package/src/lib/controls/spiderly-textarea/spiderly-textarea.component.html +0 -18
- package/src/lib/controls/spiderly-textarea/spiderly-textarea.component.ts +0 -32
- package/src/lib/controls/spiderly-textbox/spiderly-textbox.component.html +0 -23
- package/src/lib/controls/spiderly-textbox/spiderly-textbox.component.ts +0 -41
- package/src/lib/entities/base-entity.ts +0 -25
- package/src/lib/entities/codebook.ts +0 -23
- package/src/lib/entities/init-company-auth-dialog-details.ts +0 -22
- package/src/lib/entities/init-top-bar-data.ts +0 -35
- package/src/lib/entities/is-authorized-for-save-event.ts +0 -22
- package/src/lib/entities/last-menu-icon-index-clicked.ts +0 -18
- package/src/lib/entities/lazy-load-selected-ids-result.ts +0 -22
- package/src/lib/entities/mime-type.ts +0 -15
- package/src/lib/entities/namebook.ts +0 -22
- package/src/lib/entities/primeng-option.ts +0 -23
- package/src/lib/entities/readonly-object.ts +0 -1
- package/src/lib/entities/security-entities.ts +0 -548
- package/src/lib/entities/simple-save-result.ts +0 -19
- package/src/lib/entities/spiderly-button.ts +0 -30
- package/src/lib/entities/table-filter-sort-meta.ts +0 -5
- package/src/lib/entities/table-response.ts +0 -5
- package/src/lib/enums/security-enums.ts +0 -28
- package/src/lib/enums/verification-type-codes.ts +0 -5
- package/src/lib/guards/auth.guard.ts +0 -39
- package/src/lib/guards/not-auth.guard.ts +0 -32
- package/src/lib/handlers/spiderly-error-handler.ts +0 -32
- package/src/lib/handlers/spiderly-transloco-fallback-strategy.ts +0 -25
- package/src/lib/interceptors/http-loading.interceptor.ts +0 -21
- package/src/lib/interceptors/json-parser.interceptor.ts +0 -44
- package/src/lib/interceptors/jwt.interceptor.ts +0 -18
- package/src/lib/interceptors/unauthorized.interceptor.ts +0 -77
- package/src/lib/modules/core.module.ts +0 -22
- package/src/lib/modules/primeng.module.ts +0 -122
- package/src/lib/modules/spiderly-transloco.module.ts +0 -50
- package/src/lib/services/api.service.security.ts +0 -120
- package/src/lib/services/app-initializer.ts +0 -9
- package/src/lib/services/app-layout-base.service.ts +0 -184
- package/src/lib/services/auth-base.service.ts +0 -271
- package/src/lib/services/base-form.service.ts +0 -178
- package/src/lib/services/config-base.service.ts +0 -36
- package/src/lib/services/helper-functions.ts +0 -288
- package/src/lib/services/spiderly-message.service.ts +0 -66
- package/src/lib/services/spiderly-transloco-loader.ts +0 -15
- package/src/lib/services/translate-labels-abstract.service.ts +0 -13
- package/src/lib/services/validator-abstract.service.ts +0 -63
- package/tsconfig.lib.json +0 -17
- package/tsconfig.lib.prod.json +0 -10
- package/tsconfig.spec.json +0 -14
- /package/{src/lib → styles}/components/spiderly-data-table/spiderly-data-table.component.scss +0 -0
- /package/{src/lib → styles}/components/spiderly-panels/panel-footer/panel-footer.component.scss +0 -0
- /package/{src/lib → styles}/components/spiderly-panels/spiderly-panel/spiderly-panel.component.scss +0 -0
- /package/{src/lib → styles}/styles/layout/_config.scss +0 -0
- /package/{src/lib → styles}/styles/layout/_content.scss +0 -0
- /package/{src/lib → styles}/styles/layout/_footer.scss +0 -0
- /package/{src/lib → styles}/styles/layout/_main.scss +0 -0
- /package/{src/lib → styles}/styles/layout/_menu.scss +0 -0
- /package/{src/lib → styles}/styles/layout/_mixins.scss +0 -0
- /package/{src/lib → styles}/styles/layout/_preloading.scss +0 -0
- /package/{src/lib → styles}/styles/layout/_responsive.scss +0 -0
- /package/{src/lib → styles}/styles/layout/_spiderly-controls.scss +0 -0
- /package/{src/lib → styles}/styles/layout/_topbar.scss +0 -0
- /package/{src/lib → styles}/styles/layout/_typography.scss +0 -0
- /package/{src/lib → styles}/styles/layout/_utils.scss +0 -0
- /package/{src/lib → styles}/styles/layout/_variables.scss +0 -0
- /package/{src/lib → styles}/styles/layout/layout.scss +0 -0
- /package/{src/lib → styles}/styles/shared.scss +0 -0
- /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,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
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
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
|
+
}
|