spiderly 19.2.0 → 19.3.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.
- package/fesm2022/spiderly.mjs +2195 -2108
- package/fesm2022/spiderly.mjs.map +1 -1
- package/lib/components/auth/login/login.component.d.ts +6 -7
- package/lib/components/auth/partials/verification-wrapper.component.d.ts +4 -4
- package/lib/components/base-details/role-base-details.component.d.ts +13 -23
- package/lib/components/base-form/base-form copy.d.ts +11 -28
- package/lib/components/info-card/info-card.component.d.ts +4 -2
- package/lib/components/layout/profile-avatar/profile-avatar.component.d.ts +18 -11
- package/lib/components/layout/sidebar/menuitem.component.d.ts +3 -3
- package/lib/components/spiderly-buttons/google-button/google-button.component.d.ts +2 -5
- package/lib/components/spiderly-buttons/spiderly-button/spiderly-button.component.d.ts +2 -1
- package/lib/components/spiderly-buttons/spiderly-button-base/spiderly-button-base.d.ts +2 -1
- package/lib/components/spiderly-data-table/spiderly-data-table.component.d.ts +12 -8
- package/lib/components/spiderly-form-control/spiderly-form-control.d.ts +24 -7
- package/lib/components/spiderly-panels/spiderly-card/spiderly-card.component.d.ts +1 -1
- package/lib/components/spiderly-panels/spiderly-panel/spiderly-panel.component.d.ts +2 -1
- package/lib/components/spiderly-panels/spiderly-panels.module.d.ts +4 -5
- package/lib/controls/base-control.d.ts +4 -3
- package/lib/controls/base-dropdown-control.d.ts +2 -2
- package/lib/controls/spiderly-autocomplete/spiderly-autocomplete.component.d.ts +4 -4
- package/lib/controls/spiderly-controls.module.d.ts +10 -11
- package/lib/controls/spiderly-file/spiderly-file.component.d.ts +7 -4
- package/lib/entities/base-entity.d.ts +14 -2
- package/lib/entities/codebook.d.ts +1 -0
- package/lib/entities/filter-sort-meta.d.ts +13 -0
- package/lib/entities/filter.d.ts +29 -1
- package/lib/entities/init-company-auth-dialog-details.d.ts +1 -0
- package/lib/entities/init-top-bar-data.d.ts +1 -0
- package/lib/entities/is-authorized-for-save-event.d.ts +2 -3
- package/lib/entities/last-menu-icon-index-clicked.d.ts +1 -0
- package/lib/entities/lazy-load-selected-ids-result.d.ts +1 -0
- package/lib/entities/namebook.d.ts +11 -2
- package/lib/entities/primeng-option.d.ts +1 -0
- package/lib/entities/security-entities.d.ts +197 -56
- package/lib/entities/simple-save-result.d.ts +1 -0
- package/lib/entities/spiderly-button.d.ts +5 -8
- package/lib/enums/security-enums.d.ts +0 -8
- package/lib/errors/spiderly-error.d.ts +3 -0
- package/lib/services/api.service.security.d.ts +1 -3
- package/lib/services/app-initializer.d.ts +1 -1
- package/lib/services/app-layout-base.service.d.ts +3 -3
- package/lib/services/auth-base.service.d.ts +4 -5
- package/lib/services/base-form.service.d.ts +10 -11
- package/lib/services/config-base.service.d.ts +0 -1
- package/lib/services/helper-functions.d.ts +17 -7
- package/lib/services/spiderly-message.service.d.ts +0 -1
- package/lib/services/spiderly-transloco-loader.d.ts +3 -1
- package/package.json +10 -10
- package/public-api.d.ts +1 -5
- package/styles/components/info-card/info-card.component.scss +61 -0
- package/styles/components/layout/profile-avatar/profile-avatar.component.scss +9 -0
- package/styles/components/spiderly-panels/panel-body/panel-body.component.scss +9 -0
- package/styles/components/spiderly-panels/panel-footer/panel-footer.component.scss +7 -0
- package/styles/components/spiderly-panels/spiderly-panel/spiderly-panel.component.scss +87 -10
- package/styles/controls/base-controls.scss +17 -0
- package/styles/styles/layout/_variables.scss +1 -1
- package/styles/styles/shared.scss +39 -105
- package/lib/components/auth/partials/registration-verification.component.d.ts +0 -17
- package/lib/components/auth/registration/registration.component.d.ts +0 -34
- package/lib/handlers/spiderly-transloco-fallback-strategy.d.ts +0 -13
- package/lib/modules/core.module.d.ts +0 -21
- package/lib/modules/spiderly-transloco.module.d.ts +0 -51
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
import { ActivatedRoute, Router } from '@angular/router';
|
|
2
|
-
import { ChangeDetectorRef, KeyValueDiffers, OnInit } from '@angular/core';
|
|
3
1
|
import { HttpClient } from '@angular/common/http';
|
|
2
|
+
import { ChangeDetectorRef, KeyValueDiffers, OnInit } from '@angular/core';
|
|
3
|
+
import { ActivatedRoute, Router } from '@angular/router';
|
|
4
4
|
import { TranslocoService } from '@jsverse/transloco';
|
|
5
|
-
import { BaseFormCopy } from '../../base-form/base-form copy';
|
|
6
5
|
import { Login } from '../../../entities/security-entities';
|
|
7
|
-
import { SpiderlyFormGroup } from '../../spiderly-form-control/spiderly-form-control';
|
|
8
|
-
import { SpiderlyMessageService } from '../../../services/spiderly-message.service';
|
|
9
|
-
import { BaseFormService } from '../../../services/base-form.service';
|
|
10
6
|
import { AuthBaseService } from '../../../services/auth-base.service';
|
|
7
|
+
import { BaseFormService } from '../../../services/base-form.service';
|
|
11
8
|
import { ConfigBaseService } from '../../../services/config-base.service';
|
|
9
|
+
import { SpiderlyMessageService } from '../../../services/spiderly-message.service';
|
|
10
|
+
import { BaseFormCopy } from '../../base-form/base-form copy';
|
|
11
|
+
import { SpiderlyFormGroup } from '../../spiderly-form-control/spiderly-form-control';
|
|
12
12
|
import * as i0 from "@angular/core";
|
|
13
13
|
export declare class LoginComponent extends BaseFormCopy implements OnInit {
|
|
14
14
|
protected differs: KeyValueDiffers;
|
|
@@ -24,7 +24,6 @@ export declare class LoginComponent extends BaseFormCopy implements OnInit {
|
|
|
24
24
|
loginFormGroup: SpiderlyFormGroup<Login>;
|
|
25
25
|
companyName: string;
|
|
26
26
|
showEmailSentDialog: boolean;
|
|
27
|
-
usersCanRegister: boolean;
|
|
28
27
|
constructor(differs: KeyValueDiffers, http: HttpClient, messageService: SpiderlyMessageService, changeDetectorRef: ChangeDetectorRef, router: Router, route: ActivatedRoute, translocoService: TranslocoService, baseFormService: BaseFormService, authService: AuthBaseService, config: ConfigBaseService);
|
|
29
28
|
ngOnInit(): void;
|
|
30
29
|
initLoginFormGroup(model: Login): void;
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import { ChangeDetectorRef, EventEmitter, KeyValueDiffers, OnInit } from '@angular/core';
|
|
2
1
|
import { HttpClient } from '@angular/common/http';
|
|
2
|
+
import { ChangeDetectorRef, EventEmitter, KeyValueDiffers, OnInit } from '@angular/core';
|
|
3
3
|
import { ActivatedRoute, Router } from '@angular/router';
|
|
4
4
|
import { TranslocoService } from '@jsverse/transloco';
|
|
5
|
-
import { BaseFormCopy } from '../../base-form/base-form copy';
|
|
6
|
-
import { BaseFormService } from '../../../services/base-form.service';
|
|
7
|
-
import { SpiderlyFormGroup } from '../../spiderly-form-control/spiderly-form-control';
|
|
8
5
|
import { VerificationTokenRequest } from '../../../entities/security-entities';
|
|
6
|
+
import { BaseFormService } from '../../../services/base-form.service';
|
|
9
7
|
import { SpiderlyMessageService } from '../../../services/spiderly-message.service';
|
|
8
|
+
import { BaseFormCopy } from '../../base-form/base-form copy';
|
|
9
|
+
import { SpiderlyFormGroup } from '../../spiderly-form-control/spiderly-form-control';
|
|
10
10
|
import * as i0 from "@angular/core";
|
|
11
11
|
export declare class VerificationWrapperComponent extends BaseFormCopy implements OnInit {
|
|
12
12
|
protected differs: KeyValueDiffers;
|
|
@@ -1,18 +1,17 @@
|
|
|
1
1
|
import { EventEmitter } from '@angular/core';
|
|
2
2
|
import { ActivatedRoute } from '@angular/router';
|
|
3
|
-
import { Observable, Subscription } from 'rxjs';
|
|
4
3
|
import { MenuItem } from 'primeng/api';
|
|
5
|
-
import {
|
|
4
|
+
import { AutoCompleteCompleteEvent } from 'primeng/autocomplete';
|
|
6
5
|
import { BaseEntity } from '../../entities/base-entity';
|
|
6
|
+
import { IsAuthorizedForSaveEvent } from '../../entities/is-authorized-for-save-event';
|
|
7
7
|
import { LastMenuIconIndexClicked } from '../../entities/last-menu-icon-index-clicked';
|
|
8
|
-
import {
|
|
8
|
+
import { Namebook } from '../../entities/namebook';
|
|
9
|
+
import { RoleMainUIForm } from '../../entities/security-entities';
|
|
9
10
|
import { SpiderlyButton } from '../../entities/spiderly-button';
|
|
10
|
-
import { BaseFormService } from '../../services/base-form.service';
|
|
11
11
|
import { ApiSecurityService } from '../../services/api.service.security';
|
|
12
|
-
import { PrimengOption } from '../../entities/primeng-option';
|
|
13
|
-
import { AutoCompleteCompleteEvent } from 'primeng/autocomplete';
|
|
14
|
-
import { IsAuthorizedForSaveEvent } from '../../entities/is-authorized-for-save-event';
|
|
15
12
|
import { AuthBaseService } from '../../services/auth-base.service';
|
|
13
|
+
import { BaseFormService } from '../../services/base-form.service';
|
|
14
|
+
import { SpiderlyFormArray, SpiderlyFormGroup } from '../spiderly-form-control/spiderly-form-control';
|
|
16
15
|
import * as i0 from "@angular/core";
|
|
17
16
|
export declare class RoleBaseDetailsComponent {
|
|
18
17
|
private apiService;
|
|
@@ -20,34 +19,25 @@ export declare class RoleBaseDetailsComponent {
|
|
|
20
19
|
private baseFormService;
|
|
21
20
|
private authService;
|
|
22
21
|
onSave: EventEmitter<void>;
|
|
23
|
-
|
|
22
|
+
onAfterFormGroupInit: EventEmitter<void>;
|
|
24
23
|
getCrudMenuForOrderedData: (formArray: SpiderlyFormArray, modelConstructor: BaseEntity, lastMenuIconIndexClicked: LastMenuIconIndexClicked, adjustFormArrayManually: boolean) => MenuItem[];
|
|
25
|
-
|
|
26
|
-
roleFormGroup: SpiderlyFormGroup<Role>;
|
|
24
|
+
parentFormGroup: SpiderlyFormGroup<RoleMainUIForm>;
|
|
27
25
|
additionalButtons: SpiderlyButton[];
|
|
28
26
|
panelTitle: string;
|
|
29
27
|
showBigPanelTitle: boolean;
|
|
30
28
|
panelIcon: string;
|
|
31
|
-
|
|
32
|
-
authorizedForSaveObservable: () => Observable<boolean>;
|
|
29
|
+
handleAdditionalSaveAuthorization: () => Promise<boolean>;
|
|
33
30
|
isAuthorizedForSave: boolean;
|
|
34
31
|
onIsAuthorizedForSaveChange: EventEmitter<IsAuthorizedForSaveEvent>;
|
|
35
32
|
modelId: number;
|
|
36
33
|
loading: boolean;
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
permissionsForRoleOptions: PrimengOption[];
|
|
40
|
-
selectedUsersForRole: SpiderlyFormControl<PrimengOption[]>;
|
|
41
|
-
selectedPermissionsForRole: SpiderlyFormControl<number[]>;
|
|
34
|
+
usersForRoleOptions: Namebook[];
|
|
35
|
+
permissionsForRoleOptions: Namebook[];
|
|
42
36
|
constructor(apiService: ApiSecurityService, route: ActivatedRoute, baseFormService: BaseFormService, authService: AuthBaseService);
|
|
43
37
|
ngOnInit(): void;
|
|
44
|
-
|
|
45
|
-
handleAuthorizationForSave: () => Observable<void>;
|
|
38
|
+
handleAuthorizationForSave: () => Promise<void>;
|
|
46
39
|
searchUsersForRole(event: AutoCompleteCompleteEvent): void;
|
|
47
|
-
control(formControlName: string, formGroup: SpiderlyFormGroup): SpiderlyFormControl<any>;
|
|
48
|
-
getFormArrayGroups<T>(formArray: SpiderlyFormArray): SpiderlyFormGroup<T>[];
|
|
49
40
|
save(): void;
|
|
50
|
-
ngOnDestroy(): void;
|
|
51
41
|
static ɵfac: i0.ɵɵFactoryDeclaration<RoleBaseDetailsComponent, never>;
|
|
52
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<RoleBaseDetailsComponent, "role-base-details", never, { "getCrudMenuForOrderedData": { "alias": "getCrudMenuForOrderedData"; "required": false; }; "
|
|
42
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<RoleBaseDetailsComponent, "role-base-details", never, { "getCrudMenuForOrderedData": { "alias": "getCrudMenuForOrderedData"; "required": false; }; "parentFormGroup": { "alias": "parentFormGroup"; "required": false; }; "additionalButtons": { "alias": "additionalButtons"; "required": false; }; "panelTitle": { "alias": "panelTitle"; "required": false; }; "showBigPanelTitle": { "alias": "showBigPanelTitle"; "required": false; }; "panelIcon": { "alias": "panelIcon"; "required": false; }; "handleAdditionalSaveAuthorization": { "alias": "handleAdditionalSaveAuthorization"; "required": false; }; }, { "onSave": "onSave"; "onAfterFormGroupInit": "onAfterFormGroupInit"; "onIsAuthorizedForSaveChange": "onIsAuthorizedForSaveChange"; }, never, never, true, never>;
|
|
53
43
|
}
|
|
@@ -1,15 +1,13 @@
|
|
|
1
|
-
import { BaseFormService } from './../../services/base-form.service';
|
|
2
|
-
import { ChangeDetectorRef, KeyValueDiffers, OnInit } from '@angular/core';
|
|
3
|
-
import { SpiderlyFormArray, SpiderlyFormControl, SpiderlyFormGroup } from '../spiderly-form-control/spiderly-form-control';
|
|
4
1
|
import { HttpClient } from '@angular/common/http';
|
|
5
|
-
import {
|
|
2
|
+
import { ChangeDetectorRef, KeyValueDiffers, OnInit } from '@angular/core';
|
|
6
3
|
import { ActivatedRoute, Router } from '@angular/router';
|
|
7
|
-
import { MenuItem } from 'primeng/api';
|
|
8
4
|
import { TranslocoService } from '@jsverse/transloco';
|
|
9
|
-
import { BaseEntity } from '../../entities/base-entity';
|
|
10
|
-
import {
|
|
5
|
+
import { BaseEntity, SchemaAwareConstructor } from '../../entities/base-entity';
|
|
6
|
+
import { SpiderlyMessageService } from '../../services/spiderly-message.service';
|
|
7
|
+
import { SpiderlyFormArray, SpiderlyFormControl, SpiderlyFormGroup } from '../spiderly-form-control/spiderly-form-control';
|
|
8
|
+
import { BaseFormService } from './../../services/base-form.service';
|
|
11
9
|
import * as i0 from "@angular/core";
|
|
12
|
-
export declare class BaseFormCopy implements OnInit {
|
|
10
|
+
export declare class BaseFormCopy<T extends BaseEntity = any> implements OnInit {
|
|
13
11
|
protected differs: KeyValueDiffers;
|
|
14
12
|
protected http: HttpClient;
|
|
15
13
|
protected messageService: SpiderlyMessageService;
|
|
@@ -18,37 +16,22 @@ export declare class BaseFormCopy implements OnInit {
|
|
|
18
16
|
protected route: ActivatedRoute;
|
|
19
17
|
protected translocoService: TranslocoService;
|
|
20
18
|
protected baseFormService: BaseFormService;
|
|
21
|
-
|
|
19
|
+
parentFormGroup: SpiderlyFormGroup<T>;
|
|
20
|
+
mainUIFormClass: SchemaAwareConstructor<any>;
|
|
21
|
+
saveBodyClass: SchemaAwareConstructor<any>;
|
|
22
22
|
saveBody: any;
|
|
23
23
|
successfulSaveToastDescription: string;
|
|
24
|
-
loading: boolean;
|
|
25
24
|
private modelDiffer;
|
|
26
25
|
constructor(differs: KeyValueDiffers, http: HttpClient, messageService: SpiderlyMessageService, changeDetectorRef: ChangeDetectorRef, router: Router, route: ActivatedRoute, translocoService: TranslocoService, baseFormService: BaseFormService);
|
|
27
26
|
ngOnInit(): void;
|
|
28
|
-
initFormGroup: <T>(formGroup: SpiderlyFormGroup<T>, parentFormGroup: SpiderlyFormGroup, modelConstructor: any, propertyNameInSaveBody: string, updateOnChangeControls?: (keyof T)[]) => SpiderlyFormGroup<T>;
|
|
29
|
-
createFormGroup: <T>(formGroup: SpiderlyFormGroup<T>, modelConstructor: T & BaseEntity, updateOnChangeControls?: (keyof T)[]) => SpiderlyFormGroup<T>;
|
|
30
|
-
control: <T extends BaseEntity>(formControlName: string & keyof T, formGroup: SpiderlyFormGroup<T>) => { [P in keyof T]: SpiderlyFormControl<T[P]>; }[string & keyof T];
|
|
31
27
|
onSave: (reroute?: boolean) => void;
|
|
32
28
|
rerouteToSavedObject: (rerouteId: number | string) => void;
|
|
33
29
|
onBeforeSave: (saveBody?: any) => void;
|
|
34
30
|
onAfterSave: () => void;
|
|
35
31
|
onAfterSaveRequest: () => void;
|
|
36
|
-
areFormGroupsFromParentFormGroupValid(): boolean;
|
|
37
32
|
getFormArrayControlByIndex<T>(formControlName: keyof T & string, formArray: SpiderlyFormArray<T>, index: number, filter?: (formGroups: SpiderlyFormGroup<T>[]) => SpiderlyFormGroup<T>[]): SpiderlyFormControl;
|
|
38
33
|
getFormArrayControls<T>(formControlName: keyof T & string, formArray: SpiderlyFormArray<T>, filter?: (formGroups: SpiderlyFormGroup<T>[]) => SpiderlyFormGroup<T>[]): SpiderlyFormControl[];
|
|
39
|
-
getFormArrayGroups<T>(formArray: SpiderlyFormArray<T>): SpiderlyFormGroup<T>[];
|
|
40
|
-
addNewFormGroupToFormArray<T>(formArray: SpiderlyFormArray<T>, modelConstructor: T & BaseEntity, index: number): SpiderlyFormGroup;
|
|
41
|
-
initFormArray<T>(parentFormGroup: SpiderlyFormGroup, modelList: (T & BaseEntity)[], modelConstructor: T & BaseEntity, formArraySaveBodyName: string, formArrayTranslationKey: string, required?: boolean): SpiderlyFormArray<T>;
|
|
42
|
-
removeFormControlFromTheFormArray(formArray: SpiderlyFormArray, index: number): void;
|
|
43
34
|
removeFormControlsFromTheFormArray(formArray: SpiderlyFormArray, indexes: number[]): void;
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
onAfterSaveList(): void;
|
|
47
|
-
onAfterSaveListRequest(): void;
|
|
48
|
-
getCrudMenuForOrderedData: (formArray: SpiderlyFormArray, modelConstructor: BaseEntity, lastMenuIconIndexClicked: LastMenuIconIndexClicked, adjustFormArrayManually?: boolean) => MenuItem[];
|
|
49
|
-
onBeforeRemove: (formArray: SpiderlyFormArray, modelConstructor: any, lastMenuIconIndexClicked: number) => void;
|
|
50
|
-
onBeforeAddAbove: (formArray: SpiderlyFormArray, modelConstructor: any, lastMenuIconIndexClicked: number) => void;
|
|
51
|
-
onBeforeAddBelow: (formArray: SpiderlyFormArray, modelConstructor: any, lastMenuIconIndexClicked: number) => void;
|
|
52
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<BaseFormCopy, never>;
|
|
53
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<BaseFormCopy, "base-form", never, {}, {}, never, never, false, never>;
|
|
35
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<BaseFormCopy<any>, never>;
|
|
36
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<BaseFormCopy<any>, "base-form", never, {}, {}, never, never, false, never>;
|
|
54
37
|
}
|
|
@@ -3,9 +3,11 @@ import * as i0 from "@angular/core";
|
|
|
3
3
|
export declare class InfoCardComponent {
|
|
4
4
|
protected formBuilder: FormBuilder;
|
|
5
5
|
header: string;
|
|
6
|
-
|
|
6
|
+
showSmallIcon: boolean;
|
|
7
|
+
icon: string;
|
|
8
|
+
textColor: string;
|
|
7
9
|
constructor(formBuilder: FormBuilder);
|
|
8
10
|
ngOnInit(): void;
|
|
9
11
|
static ɵfac: i0.ɵɵFactoryDeclaration<InfoCardComponent, never>;
|
|
10
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<InfoCardComponent, "info-card", never, { "header": { "alias": "header"; "required": false; }; "
|
|
12
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<InfoCardComponent, "info-card", never, { "header": { "alias": "header"; "required": false; }; "showSmallIcon": { "alias": "showSmallIcon"; "required": false; }; "icon": { "alias": "icon"; "required": false; }; "textColor": { "alias": "textColor"; "required": false; }; }, {}, never, ["*"], true, never>;
|
|
11
13
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ElementRef } from '@angular/core';
|
|
1
|
+
import { ElementRef, EventEmitter } from '@angular/core';
|
|
2
2
|
import { Router } from '@angular/router';
|
|
3
3
|
import { LayoutBaseService } from '../../../services/app-layout-base.service';
|
|
4
4
|
import { UserBase } from '../../../entities/security-entities';
|
|
@@ -6,13 +6,6 @@ import { AuthBaseService } from '../../../services/auth-base.service';
|
|
|
6
6
|
import { TranslocoService } from '@jsverse/transloco';
|
|
7
7
|
import { ConfigBaseService } from '../../../services/config-base.service';
|
|
8
8
|
import * as i0 from "@angular/core";
|
|
9
|
-
interface ProfileAvatarModalMenuItem {
|
|
10
|
-
label?: string;
|
|
11
|
-
icon?: string;
|
|
12
|
-
showSeparator?: boolean;
|
|
13
|
-
onClick?: () => void;
|
|
14
|
-
showNotificationBadge?: boolean;
|
|
15
|
-
}
|
|
16
9
|
export declare class ProfileAvatarComponent {
|
|
17
10
|
layoutService: LayoutBaseService;
|
|
18
11
|
private authService;
|
|
@@ -20,11 +13,18 @@ export declare class ProfileAvatarComponent {
|
|
|
20
13
|
private translocoService;
|
|
21
14
|
config: ConfigBaseService;
|
|
22
15
|
isSideMenuLayout: boolean;
|
|
16
|
+
routeOnLargeProfileAvatarClick: boolean;
|
|
17
|
+
showLoginButton: boolean;
|
|
18
|
+
routeToLoginPage: boolean;
|
|
19
|
+
loginButtonOutlined: boolean;
|
|
20
|
+
loginButtonSeverity: 'success' | 'info' | 'warn' | 'danger' | 'help' | 'primary' | 'secondary' | 'contrast' | null | undefined;
|
|
21
|
+
loginButtonSize: 'small' | 'large' | undefined;
|
|
22
|
+
onLoginButtonClick: EventEmitter<any>;
|
|
23
|
+
menuItems: ProfileAvatarModalMenuItem[];
|
|
23
24
|
private initTopBarSubscription;
|
|
24
25
|
currentUser: UserBase;
|
|
25
26
|
userProfilePath: string;
|
|
26
27
|
unreadNotificationsCount: number;
|
|
27
|
-
menuItems: ProfileAvatarModalMenuItem[];
|
|
28
28
|
avatarLabel: string;
|
|
29
29
|
showProfileIcon: boolean;
|
|
30
30
|
notificationMenuItem: ProfileAvatarModalMenuItem;
|
|
@@ -35,8 +35,15 @@ export declare class ProfileAvatarComponent {
|
|
|
35
35
|
onAfterNgOnInit: () => void;
|
|
36
36
|
onDocumentClick(event: any): void;
|
|
37
37
|
routeToUserPage(): void;
|
|
38
|
+
loginButtonClick(): void;
|
|
38
39
|
ngOnDestroy(): void;
|
|
39
40
|
static ɵfac: i0.ɵɵFactoryDeclaration<ProfileAvatarComponent, never>;
|
|
40
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<ProfileAvatarComponent, "spiderly-profile-avatar", never, { "isSideMenuLayout": { "alias": "isSideMenuLayout"; "required": false; }; }, {}, never, never, true, never>;
|
|
41
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<ProfileAvatarComponent, "spiderly-profile-avatar", never, { "isSideMenuLayout": { "alias": "isSideMenuLayout"; "required": false; }; "routeOnLargeProfileAvatarClick": { "alias": "routeOnLargeProfileAvatarClick"; "required": false; }; "showLoginButton": { "alias": "showLoginButton"; "required": false; }; "routeToLoginPage": { "alias": "routeToLoginPage"; "required": false; }; "loginButtonOutlined": { "alias": "loginButtonOutlined"; "required": false; }; "loginButtonSeverity": { "alias": "loginButtonSeverity"; "required": false; }; "loginButtonSize": { "alias": "loginButtonSize"; "required": false; }; "menuItems": { "alias": "menuItems"; "required": false; }; }, { "onLoginButtonClick": "onLoginButtonClick"; }, never, never, true, never>;
|
|
42
|
+
}
|
|
43
|
+
export interface ProfileAvatarModalMenuItem {
|
|
44
|
+
label?: string;
|
|
45
|
+
icon?: string;
|
|
46
|
+
showSeparator?: boolean;
|
|
47
|
+
onClick?: () => void;
|
|
48
|
+
showNotificationBadge?: boolean;
|
|
41
49
|
}
|
|
42
|
-
export {};
|
|
@@ -4,11 +4,11 @@ import { SidebarMenuService } from './sidebar-menu.service';
|
|
|
4
4
|
import { SpiderlyMenuItem } from './sidebar-menu.component';
|
|
5
5
|
import { AutoCompleteCompleteEvent } from 'primeng/autocomplete';
|
|
6
6
|
import { SpiderlyFormControl } from '../../spiderly-form-control/spiderly-form-control';
|
|
7
|
-
import { PrimengOption } from '../../../entities/primeng-option';
|
|
8
7
|
import { LayoutBaseService } from '../../../services/app-layout-base.service';
|
|
9
8
|
import { AuthBaseService } from '../../../services/auth-base.service';
|
|
10
9
|
import { ApiSecurityService } from '../../../services/api.service.security';
|
|
11
10
|
import { ConfigBaseService } from '../../../services/config-base.service';
|
|
11
|
+
import { Namebook } from '../../../entities/namebook';
|
|
12
12
|
import * as i0 from "@angular/core";
|
|
13
13
|
export declare class MenuitemComponent implements OnInit, OnDestroy {
|
|
14
14
|
layoutService: LayoutBaseService;
|
|
@@ -27,8 +27,8 @@ export declare class MenuitemComponent implements OnInit, OnDestroy {
|
|
|
27
27
|
private menuResetSubscription;
|
|
28
28
|
private permissionSubscription;
|
|
29
29
|
key: string;
|
|
30
|
-
selectedPartner: SpiderlyFormControl
|
|
31
|
-
partnerOptions:
|
|
30
|
+
selectedPartner: SpiderlyFormControl<Namebook>;
|
|
31
|
+
partnerOptions: Namebook[];
|
|
32
32
|
constructor(layoutService: LayoutBaseService, cd: ChangeDetectorRef, router: Router, menuService: SidebarMenuService, authService: AuthBaseService, apiService: ApiSecurityService, config: ConfigBaseService);
|
|
33
33
|
ngOnInit(): void;
|
|
34
34
|
updateActiveStateFromRoute(): void;
|
|
@@ -1,14 +1,11 @@
|
|
|
1
1
|
import { EventEmitter } from "@angular/core";
|
|
2
2
|
import * as i0 from "@angular/core";
|
|
3
3
|
export declare class GoogleButtonComponent {
|
|
4
|
+
label: string;
|
|
4
5
|
loginWithGoogle: EventEmitter<any>;
|
|
5
|
-
constructor();
|
|
6
|
-
createFakeGoogleWrapper: () => {
|
|
7
|
-
click: () => void;
|
|
8
|
-
};
|
|
9
6
|
handleGoogleLogin(): void;
|
|
10
7
|
static ɵfac: i0.ɵɵFactoryDeclaration<GoogleButtonComponent, never>;
|
|
11
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<GoogleButtonComponent, "google-button", never, {}, { "loginWithGoogle": "loginWithGoogle"; }, never, never, true, never>;
|
|
8
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<GoogleButtonComponent, "google-button", never, { "label": { "alias": "label"; "required": false; }; }, { "loginWithGoogle": "loginWithGoogle"; }, never, never, true, never>;
|
|
12
9
|
}
|
|
13
10
|
declare global {
|
|
14
11
|
interface Window {
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { SpiderlyButtonBaseComponent } from "../spiderly-button-base/spiderly-button-base";
|
|
2
2
|
import * as i0 from "@angular/core";
|
|
3
3
|
export declare class SpiderlyButtonComponent extends SpiderlyButtonBaseComponent {
|
|
4
|
+
type: 'button' | 'submit' | 'reset';
|
|
4
5
|
static ɵfac: i0.ɵɵFactoryDeclaration<SpiderlyButtonComponent, never>;
|
|
5
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<SpiderlyButtonComponent, "spiderly-button", never, {}, {}, never, ["*"], true, never>;
|
|
6
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<SpiderlyButtonComponent, "spiderly-button", never, { "type": { "alias": "type"; "required": false; }; }, {}, never, ["*"], true, never>;
|
|
6
7
|
}
|
|
@@ -14,6 +14,7 @@ export declare class SpiderlyButtonBaseComponent {
|
|
|
14
14
|
};
|
|
15
15
|
class: string;
|
|
16
16
|
severity: 'success' | 'info' | 'warn' | 'danger' | 'help' | 'primary' | 'secondary' | 'contrast' | null | undefined;
|
|
17
|
+
size: 'small' | 'large' | undefined;
|
|
17
18
|
disabled: boolean;
|
|
18
19
|
onClick: EventEmitter<Event>;
|
|
19
20
|
private clickSubject;
|
|
@@ -23,5 +24,5 @@ export declare class SpiderlyButtonBaseComponent {
|
|
|
23
24
|
handleClick: (event: Event) => void;
|
|
24
25
|
ngOnDestroy(): void;
|
|
25
26
|
static ɵfac: i0.ɵɵFactoryDeclaration<SpiderlyButtonBaseComponent, never>;
|
|
26
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<SpiderlyButtonBaseComponent, "spiderly-button-base", never, { "icon": { "alias": "icon"; "required": false; }; "label": { "alias": "label"; "required": false; }; "outlined": { "alias": "outlined"; "required": false; }; "rounded": { "alias": "rounded"; "required": false; }; "styleClass": { "alias": "styleClass"; "required": false; }; "routerLink": { "alias": "routerLink"; "required": false; }; "style": { "alias": "style"; "required": false; }; "class": { "alias": "class"; "required": false; }; "severity": { "alias": "severity"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; }, { "onClick": "onClick"; }, never, never, true, never>;
|
|
27
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<SpiderlyButtonBaseComponent, "spiderly-button-base", never, { "icon": { "alias": "icon"; "required": false; }; "label": { "alias": "label"; "required": false; }; "outlined": { "alias": "outlined"; "required": false; }; "rounded": { "alias": "rounded"; "required": false; }; "styleClass": { "alias": "styleClass"; "required": false; }; "routerLink": { "alias": "routerLink"; "required": false; }; "style": { "alias": "style"; "required": false; }; "class": { "alias": "class"; "required": false; }; "severity": { "alias": "severity"; "required": false; }; "size": { "alias": "size"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; }, { "onClick": "onClick"; }, never, never, true, never>;
|
|
27
28
|
}
|
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
import { EventEmitter, OnInit } from '@angular/core';
|
|
2
2
|
import { ActivatedRoute, Router } from '@angular/router';
|
|
3
|
+
import { TranslocoService } from '@jsverse/transloco';
|
|
3
4
|
import { SelectItem } from 'primeng/api';
|
|
4
|
-
import { Table, TableFilterEvent, TableLazyLoadEvent } from 'primeng/table';
|
|
5
5
|
import { DialogService, DynamicDialogRef } from 'primeng/dynamicdialog';
|
|
6
|
-
import {
|
|
6
|
+
import { Table, TableFilterEvent, TableLazyLoadEvent } from 'primeng/table';
|
|
7
7
|
import { Observable } from 'rxjs';
|
|
8
|
+
import { Filter } from '../../entities/filter';
|
|
9
|
+
import { LazyLoadSelectedIdsResult } from '../../entities/lazy-load-selected-ids-result';
|
|
10
|
+
import { PaginatedResult } from '../../entities/paginated-result';
|
|
8
11
|
import { PrimengOption } from '../../entities/primeng-option';
|
|
9
|
-
import {
|
|
12
|
+
import { SpiderlyMessageService } from '../../services/spiderly-message.service';
|
|
10
13
|
import { SpiderlyFormControl } from '../spiderly-form-control/spiderly-form-control';
|
|
11
|
-
import { PaginatedResult } from '../../entities/paginated-result';
|
|
12
|
-
import { LazyLoadSelectedIdsResult } from '../../entities/lazy-load-selected-ids-result';
|
|
13
|
-
import { Filter } from '../../entities/filter';
|
|
14
14
|
import * as i0 from "@angular/core";
|
|
15
15
|
export declare class SpiderlyDataTableComponent implements OnInit {
|
|
16
16
|
private router;
|
|
@@ -28,6 +28,7 @@ export declare class SpiderlyDataTableComponent implements OnInit {
|
|
|
28
28
|
showPaginator: boolean;
|
|
29
29
|
showCardWrapper: boolean;
|
|
30
30
|
readonly: boolean;
|
|
31
|
+
idField: string;
|
|
31
32
|
totalRecords: number;
|
|
32
33
|
onTotalRecordsChange: EventEmitter<number>;
|
|
33
34
|
getPaginatedListObservableMethod: (tableFilter: Filter) => Observable<PaginatedResult>;
|
|
@@ -81,6 +82,7 @@ export declare class SpiderlyDataTableComponent implements OnInit {
|
|
|
81
82
|
showActions(): boolean;
|
|
82
83
|
getStyleForBodyColumn(col: Column<any>): string;
|
|
83
84
|
getClassForAction(action: Action): string;
|
|
85
|
+
getStyleForAction(action: Action): string;
|
|
84
86
|
getMethodForAction(action: Action, rowData: any): void;
|
|
85
87
|
getRowData(rowData: any, col: Column): string;
|
|
86
88
|
colTrackByFn(index: any, item: any): any;
|
|
@@ -95,19 +97,21 @@ export declare class SpiderlyDataTableComponent implements OnInit {
|
|
|
95
97
|
rowUnselect(id: number): void;
|
|
96
98
|
getFormArrayControlByIndex(formControlName: string, index: number): SpiderlyFormControl;
|
|
97
99
|
static ɵfac: i0.ɵɵFactoryDeclaration<SpiderlyDataTableComponent, never>;
|
|
98
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<SpiderlyDataTableComponent, "spiderly-data-table", never, { "tableTitle": { "alias": "tableTitle"; "required": false; }; "tableIcon": { "alias": "tableIcon"; "required": false; }; "items": { "alias": "items"; "required": false; }; "rows": { "alias": "rows"; "required": false; }; "cols": { "alias": "cols"; "required": false; }; "showPaginator": { "alias": "showPaginator"; "required": false; }; "showCardWrapper": { "alias": "showCardWrapper"; "required": false; }; "readonly": { "alias": "readonly"; "required": false; }; "getPaginatedListObservableMethod": { "alias": "getPaginatedListObservableMethod"; "required": false; }; "exportListToExcelObservableMethod": { "alias": "exportListToExcelObservableMethod"; "required": false; }; "deleteItemFromTableObservableMethod": { "alias": "deleteItemFromTableObservableMethod"; "required": false; }; "newlySelectedItems": { "alias": "newlySelectedItems"; "required": false; }; "unselectedItems": { "alias": "unselectedItems"; "required": false; }; "selectionMode": { "alias": "selectionMode"; "required": false; }; "selectedLazyLoadObservableMethod": { "alias": "selectedLazyLoadObservableMethod"; "required": false; }; "additionalFilterIdLong": { "alias": "additionalFilterIdLong"; "required": false; }; "showAddButton": { "alias": "showAddButton"; "required": false; }; "showExportToExcelButton": { "alias": "showExportToExcelButton"; "required": false; }; "showReloadTableButton": { "alias": "showReloadTableButton"; "required": false; }; "getFormArrayItems": { "alias": "getFormArrayItems"; "required": false; }; "hasLazyLoad": { "alias": "hasLazyLoad"; "required": false; }; "getAlreadySelectedItemIds": { "alias": "getAlreadySelectedItemIds"; "required": false; }; "getAlreadySelectedItems": { "alias": "getAlreadySelectedItems"; "required": false; }; "getFormControl": { "alias": "getFormControl"; "required": false; }; "additionalIndexes": { "alias": "additionalIndexes"; "required": false; }; }, { "onTotalRecordsChange": "onTotalRecordsChange"; "onLazyLoad": "onLazyLoad"; "onIsAllSelectedChange": "onIsAllSelectedChange"; "onRowSelect": "onRowSelect"; "onRowUnselect": "onRowUnselect"; }, never, never, true, never>;
|
|
100
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<SpiderlyDataTableComponent, "spiderly-data-table", never, { "tableTitle": { "alias": "tableTitle"; "required": false; }; "tableIcon": { "alias": "tableIcon"; "required": false; }; "items": { "alias": "items"; "required": false; }; "rows": { "alias": "rows"; "required": false; }; "cols": { "alias": "cols"; "required": false; }; "showPaginator": { "alias": "showPaginator"; "required": false; }; "showCardWrapper": { "alias": "showCardWrapper"; "required": false; }; "readonly": { "alias": "readonly"; "required": false; }; "idField": { "alias": "idField"; "required": false; }; "getPaginatedListObservableMethod": { "alias": "getPaginatedListObservableMethod"; "required": false; }; "exportListToExcelObservableMethod": { "alias": "exportListToExcelObservableMethod"; "required": false; }; "deleteItemFromTableObservableMethod": { "alias": "deleteItemFromTableObservableMethod"; "required": false; }; "newlySelectedItems": { "alias": "newlySelectedItems"; "required": false; }; "unselectedItems": { "alias": "unselectedItems"; "required": false; }; "selectionMode": { "alias": "selectionMode"; "required": false; }; "selectedLazyLoadObservableMethod": { "alias": "selectedLazyLoadObservableMethod"; "required": false; }; "additionalFilterIdLong": { "alias": "additionalFilterIdLong"; "required": false; }; "showAddButton": { "alias": "showAddButton"; "required": false; }; "showExportToExcelButton": { "alias": "showExportToExcelButton"; "required": false; }; "showReloadTableButton": { "alias": "showReloadTableButton"; "required": false; }; "getFormArrayItems": { "alias": "getFormArrayItems"; "required": false; }; "hasLazyLoad": { "alias": "hasLazyLoad"; "required": false; }; "getAlreadySelectedItemIds": { "alias": "getAlreadySelectedItemIds"; "required": false; }; "getAlreadySelectedItems": { "alias": "getAlreadySelectedItems"; "required": false; }; "getFormControl": { "alias": "getFormControl"; "required": false; }; "additionalIndexes": { "alias": "additionalIndexes"; "required": false; }; }, { "onTotalRecordsChange": "onTotalRecordsChange"; "onLazyLoad": "onLazyLoad"; "onIsAllSelectedChange": "onIsAllSelectedChange"; "onRowSelect": "onRowSelect"; "onRowUnselect": "onRowUnselect"; }, never, never, true, never>;
|
|
99
101
|
}
|
|
100
102
|
export declare class Action {
|
|
101
103
|
name?: string;
|
|
102
104
|
field?: string;
|
|
103
105
|
icon?: string;
|
|
104
106
|
style?: string;
|
|
107
|
+
styleClass?: string;
|
|
105
108
|
onClick?: (id: number) => void;
|
|
106
|
-
constructor({ name, field, icon, style, onClick, }?: {
|
|
109
|
+
constructor({ name, field, icon, style, styleClass, onClick, }?: {
|
|
107
110
|
name?: string;
|
|
108
111
|
field?: string;
|
|
109
112
|
icon?: string;
|
|
110
113
|
style?: string;
|
|
114
|
+
styleClass?: string;
|
|
111
115
|
onClick?: () => void;
|
|
112
116
|
});
|
|
113
117
|
}
|
|
@@ -1,6 +1,10 @@
|
|
|
1
1
|
import { FormArray, FormControl, FormControlOptions, FormGroup, ValidatorFn } from '@angular/forms';
|
|
2
|
+
import { TranslocoService } from '@jsverse/transloco';
|
|
3
|
+
import { MenuItem } from 'primeng/api';
|
|
2
4
|
import { Observable } from 'rxjs';
|
|
3
|
-
import { BaseEntity } from '../../entities/base-entity';
|
|
5
|
+
import { BaseEntity, SchemaAwareConstructor } from '../../entities/base-entity';
|
|
6
|
+
import { Namebook } from '../../entities/namebook';
|
|
7
|
+
import { BaseFormService } from '../../services/base-form.service';
|
|
4
8
|
export interface SpiderlyValidatorFn extends ValidatorFn {
|
|
5
9
|
hasNotEmptyRule?: boolean;
|
|
6
10
|
}
|
|
@@ -9,6 +13,7 @@ export declare class SpiderlyFormControl<T = any> extends FormControl<T> {
|
|
|
9
13
|
labelForDisplay: string;
|
|
10
14
|
required: boolean;
|
|
11
15
|
parentClassName: string;
|
|
16
|
+
type: string;
|
|
12
17
|
private _spiderlyValidator;
|
|
13
18
|
constructor(value: any, opts?: FormControlOptions, required?: boolean);
|
|
14
19
|
getRawValue(): T;
|
|
@@ -16,23 +21,35 @@ export declare class SpiderlyFormControl<T = any> extends FormControl<T> {
|
|
|
16
21
|
set validator(validator: SpiderlyValidatorFn | null);
|
|
17
22
|
}
|
|
18
23
|
type SpiderlyControlsOfType<TValue> = {
|
|
19
|
-
[P in keyof TValue]: SpiderlyFormControl<TValue[P]>;
|
|
24
|
+
[P in keyof TValue]: TValue[P] extends (infer U)[] ? U extends Namebook | string | number | Date | boolean ? SpiderlyFormControl<TValue[P]> : SpiderlyFormArray<U> : TValue[P] extends Date ? SpiderlyFormControl<TValue[P]> : TValue[P] extends object ? SpiderlyFormGroup<TValue[P]> : SpiderlyFormControl<TValue[P]>;
|
|
20
25
|
};
|
|
21
26
|
export declare class SpiderlyFormGroup<TValue = any> extends FormGroup {
|
|
22
27
|
controls: SpiderlyControlsOfType<TValue>;
|
|
23
28
|
constructor(controls: SpiderlyControlsOfType<TValue>);
|
|
24
29
|
getRawValue(): TValue;
|
|
30
|
+
targetClass: SchemaAwareConstructor<TValue>;
|
|
31
|
+
trackingId: string;
|
|
25
32
|
name?: string;
|
|
26
|
-
mainDTOName?: string;
|
|
27
33
|
saveObservableMethod?: (saveBody: any) => Observable<any>;
|
|
28
34
|
initSaveBody?: () => BaseEntity;
|
|
29
35
|
controlNamesFromHtml?: string[];
|
|
36
|
+
getControl: <TKey extends Extract<keyof TValue, string>>(formControlName: TKey) => SpiderlyControlsOfType<TValue>[TKey];
|
|
30
37
|
}
|
|
31
|
-
export declare class SpiderlyFormArray<TValue = any> extends FormArray {
|
|
38
|
+
export declare class SpiderlyFormArray<TValue extends BaseEntity = any> extends FormArray {
|
|
39
|
+
private translocoService;
|
|
40
|
+
private baseFormService;
|
|
41
|
+
constructor(controls: SpiderlyControlsOfType<TValue>[], translocoService: TranslocoService, baseFormService: BaseFormService);
|
|
42
|
+
label: string;
|
|
43
|
+
labelForDisplay: string;
|
|
32
44
|
value: TValue[];
|
|
33
45
|
required: boolean;
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
46
|
+
formGroupInitialValues: Partial<TValue>;
|
|
47
|
+
targetClass: SchemaAwareConstructor<TValue>;
|
|
48
|
+
lastMenuIconIndexClicked: number;
|
|
49
|
+
getCrudMenuForOrderedData: () => MenuItem[];
|
|
50
|
+
addNewFormGroup: (index: number) => void;
|
|
51
|
+
getFormGroups: () => SpiderlyFormGroup<TValue>[];
|
|
52
|
+
disableAllFormControls(): void;
|
|
53
|
+
enableAllFormControls(): void;
|
|
37
54
|
}
|
|
38
55
|
export {};
|
|
@@ -6,5 +6,5 @@ export declare class SpiderlyCardComponent implements OnInit {
|
|
|
6
6
|
constructor();
|
|
7
7
|
ngOnInit(): void;
|
|
8
8
|
static ɵfac: i0.ɵɵFactoryDeclaration<SpiderlyCardComponent, never>;
|
|
9
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<SpiderlyCardComponent, "spiderly-card", never, { "icon": { "alias": "icon"; "required": false; }; "title": { "alias": "title"; "required": false; }; }, {}, never, ["*"],
|
|
9
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<SpiderlyCardComponent, "spiderly-card", never, { "icon": { "alias": "icon"; "required": false; }; "title": { "alias": "title"; "required": false; }; }, {}, never, ["*"], true, never>;
|
|
10
10
|
}
|
|
@@ -7,6 +7,7 @@ export declare class SpiderlyPanelComponent implements OnInit {
|
|
|
7
7
|
isMiddleMultiplePanel: boolean;
|
|
8
8
|
isLastMultiplePanel: boolean;
|
|
9
9
|
toggleable: boolean;
|
|
10
|
+
toggler: 'header' | 'icon' | null;
|
|
10
11
|
collapsed: boolean;
|
|
11
12
|
crudMenu: MenuItem[];
|
|
12
13
|
showCrudMenu: boolean;
|
|
@@ -21,5 +22,5 @@ export declare class SpiderlyPanelComponent implements OnInit {
|
|
|
21
22
|
menuItemClick(index: number, event: any): void;
|
|
22
23
|
removeItemClick(): void;
|
|
23
24
|
static ɵfac: i0.ɵɵFactoryDeclaration<SpiderlyPanelComponent, never>;
|
|
24
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<SpiderlyPanelComponent, "spiderly-panel", never, { "isFirstMultiplePanel": { "alias": "isFirstMultiplePanel"; "required": false; }; "isMiddleMultiplePanel": { "alias": "isMiddleMultiplePanel"; "required": false; }; "isLastMultiplePanel": { "alias": "isLastMultiplePanel"; "required": false; }; "toggleable": { "alias": "toggleable"; "required": false; }; "collapsed": { "alias": "collapsed"; "required": false; }; "crudMenu": { "alias": "crudMenu"; "required": false; }; "showCrudMenu": { "alias": "showCrudMenu"; "required": false; }; "showRemoveIcon": { "alias": "showRemoveIcon"; "required": false; }; "index": { "alias": "index"; "required": false; }; "showPanelHeader": { "alias": "showPanelHeader"; "required": false; }; }, { "onMenuIconClick": "onMenuIconClick"; "onRemoveIconClick": "onRemoveIconClick"; }, never, ["panel-header", "panel-body", "panel-footer"], false, never>;
|
|
25
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<SpiderlyPanelComponent, "spiderly-panel", never, { "isFirstMultiplePanel": { "alias": "isFirstMultiplePanel"; "required": false; }; "isMiddleMultiplePanel": { "alias": "isMiddleMultiplePanel"; "required": false; }; "isLastMultiplePanel": { "alias": "isLastMultiplePanel"; "required": false; }; "toggleable": { "alias": "toggleable"; "required": false; }; "toggler": { "alias": "toggler"; "required": false; }; "collapsed": { "alias": "collapsed"; "required": false; }; "crudMenu": { "alias": "crudMenu"; "required": false; }; "showCrudMenu": { "alias": "showCrudMenu"; "required": false; }; "showRemoveIcon": { "alias": "showRemoveIcon"; "required": false; }; "index": { "alias": "index"; "required": false; }; "showPanelHeader": { "alias": "showPanelHeader"; "required": false; }; }, { "onMenuIconClick": "onMenuIconClick"; "onRemoveIconClick": "onRemoveIconClick"; }, never, ["panel-header", "[panelHeader]", "panel-body", "panel-footer"], false, never>;
|
|
25
26
|
}
|
|
@@ -3,12 +3,11 @@ import * as i1 from "./panel-header/panel-header.component";
|
|
|
3
3
|
import * as i2 from "./panel-body/panel-body.component";
|
|
4
4
|
import * as i3 from "./panel-footer/panel-footer.component";
|
|
5
5
|
import * as i4 from "./spiderly-panel/spiderly-panel.component";
|
|
6
|
-
import * as i5 from "
|
|
7
|
-
import * as i6 from "
|
|
8
|
-
import * as i7 from "primeng/
|
|
9
|
-
import * as i8 from "primeng/panel";
|
|
6
|
+
import * as i5 from "@angular/common";
|
|
7
|
+
import * as i6 from "primeng/menu";
|
|
8
|
+
import * as i7 from "primeng/panel";
|
|
10
9
|
export declare class SpiderlyPanelsModule {
|
|
11
10
|
static ɵfac: i0.ɵɵFactoryDeclaration<SpiderlyPanelsModule, never>;
|
|
12
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<SpiderlyPanelsModule, [typeof i1.PanelHeaderComponent, typeof i2.PanelBodyComponent, typeof i3.PanelFooterComponent, typeof i4.SpiderlyPanelComponent
|
|
11
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<SpiderlyPanelsModule, [typeof i1.PanelHeaderComponent, typeof i2.PanelBodyComponent, typeof i3.PanelFooterComponent, typeof i4.SpiderlyPanelComponent], [typeof i5.CommonModule, typeof i6.MenuModule, typeof i7.PanelModule], [typeof i1.PanelHeaderComponent, typeof i2.PanelBodyComponent, typeof i3.PanelFooterComponent, typeof i4.SpiderlyPanelComponent]>;
|
|
13
12
|
static ɵinj: i0.ɵɵInjectorDeclaration<SpiderlyPanelsModule>;
|
|
14
13
|
}
|
|
@@ -1,11 +1,12 @@
|
|
|
1
|
-
import { SpiderlyFormControl } from '../components/spiderly-form-control/spiderly-form-control';
|
|
2
1
|
import { TranslocoService } from '@jsverse/transloco';
|
|
2
|
+
import { SpiderlyFormControl } from '../components/spiderly-form-control/spiderly-form-control';
|
|
3
3
|
import * as i0 from "@angular/core";
|
|
4
4
|
export declare class BaseControl {
|
|
5
5
|
protected translocoService: TranslocoService;
|
|
6
|
-
control: SpiderlyFormControl
|
|
6
|
+
control: SpiderlyFormControl<any>;
|
|
7
7
|
disabled: boolean;
|
|
8
8
|
showLabel: boolean;
|
|
9
|
+
showRequired: boolean;
|
|
9
10
|
label: string;
|
|
10
11
|
controlValid: boolean;
|
|
11
12
|
placeholder: string;
|
|
@@ -19,5 +20,5 @@ export declare class BaseControl {
|
|
|
19
20
|
getTranslatedLabel(): string;
|
|
20
21
|
getValidationErrrorMessages(): any;
|
|
21
22
|
static ɵfac: i0.ɵɵFactoryDeclaration<BaseControl, never>;
|
|
22
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<BaseControl, "base-control", never, { "control": { "alias": "control"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; "showLabel": { "alias": "showLabel"; "required": false; }; "label": { "alias": "label"; "required": false; }; "controlValid": { "alias": "controlValid"; "required": false; }; "placeholder": { "alias": "placeholder"; "required": false; }; "showTooltip": { "alias": "showTooltip"; "required": false; }; "tooltipText": { "alias": "tooltipText"; "required": false; }; "tooltipIcon": { "alias": "tooltipIcon"; "required": false; }; }, {}, never, never, false, never>;
|
|
23
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<BaseControl, "base-control", never, { "control": { "alias": "control"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; "showLabel": { "alias": "showLabel"; "required": false; }; "showRequired": { "alias": "showRequired"; "required": false; }; "label": { "alias": "label"; "required": false; }; "controlValid": { "alias": "controlValid"; "required": false; }; "placeholder": { "alias": "placeholder"; "required": false; }; "showTooltip": { "alias": "showTooltip"; "required": false; }; "tooltipText": { "alias": "tooltipText"; "required": false; }; "tooltipIcon": { "alias": "tooltipIcon"; "required": false; }; }, {}, never, never, false, never>;
|
|
23
24
|
}
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { EventEmitter } from '@angular/core';
|
|
2
2
|
import { BaseControl } from './base-control';
|
|
3
|
-
import { PrimengOption } from '../entities/primeng-option';
|
|
4
3
|
import { TranslocoService } from '@jsverse/transloco';
|
|
4
|
+
import { Namebook } from '../entities/namebook';
|
|
5
5
|
import * as i0 from "@angular/core";
|
|
6
6
|
export declare class BaseDropdownControl extends BaseControl {
|
|
7
7
|
protected translocoService: TranslocoService;
|
|
8
|
-
options:
|
|
8
|
+
options: Namebook[];
|
|
9
9
|
showAddon: boolean;
|
|
10
10
|
addonIcon: string;
|
|
11
11
|
placeholder: string;
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { OnInit } from '@angular/core';
|
|
2
|
-
import { AutoCompleteCompleteEvent, AutoCompleteSelectEvent } from 'primeng/autocomplete';
|
|
3
|
-
import { BaseAutocompleteControl } from '../base-autocomplete-control';
|
|
4
2
|
import { TranslocoService } from '@jsverse/transloco';
|
|
3
|
+
import { AutoCompleteCompleteEvent, AutoCompleteSelectEvent } from 'primeng/autocomplete';
|
|
5
4
|
import { ValidatorAbstractService } from '../../services/validator-abstract.service';
|
|
5
|
+
import { BaseAutocompleteControl } from '../base-autocomplete-control';
|
|
6
6
|
import { SpiderlyFormControl } from '../../components/spiderly-form-control/spiderly-form-control';
|
|
7
|
-
import {
|
|
7
|
+
import { Namebook } from '../../entities/namebook';
|
|
8
8
|
import * as i0 from "@angular/core";
|
|
9
9
|
export declare class SpiderlyAutocompleteComponent extends BaseAutocompleteControl implements OnInit {
|
|
10
10
|
protected translocoService: TranslocoService;
|
|
@@ -13,7 +13,7 @@ export declare class SpiderlyAutocompleteComponent extends BaseAutocompleteContr
|
|
|
13
13
|
showClear: boolean;
|
|
14
14
|
emptyMessage: string;
|
|
15
15
|
displayName: string;
|
|
16
|
-
helperFormControl: SpiderlyFormControl<
|
|
16
|
+
helperFormControl: SpiderlyFormControl<Namebook>;
|
|
17
17
|
constructor(translocoService: TranslocoService, validatorService: ValidatorAbstractService);
|
|
18
18
|
ngOnInit(): void;
|
|
19
19
|
search(event: AutoCompleteCompleteEvent): void;
|