spiderly 19.5.4-preview.2 → 19.6.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 +105 -121
- package/fesm2022/spiderly.mjs.map +1 -1
- package/lib/components/auth/login/login.component.d.ts +2 -2
- package/lib/components/auth/partials/verification-wrapper.component.d.ts +2 -2
- package/lib/components/base-form/{base-form copy.d.ts → base-form.component.d.ts} +3 -3
- package/lib/components/spiderly-data-table/spiderly-data-table.component.d.ts +6 -2
- package/lib/controls/base-control.d.ts +0 -1
- package/lib/controls/spiderly-editor/spiderly-editor.component.d.ts +0 -2
- package/lib/controls/spiderly-file/spiderly-file.component.d.ts +1 -1
- package/lib/enums/match-mode-enum-codes.d.ts +6 -6
- package/lib/services/api.service.security.d.ts +1 -1
- package/lib/services/config.service.base.d.ts +1 -0
- package/package.json +1 -2
- package/public-api.d.ts +1 -1
- package/styles/styles/layout/_spiderly-controls.scss +3 -11
- package/styles/styles/shared.scss +4 -96
|
@@ -7,10 +7,10 @@ import { AuthServiceBase } from '../../../services/auth.service.base';
|
|
|
7
7
|
import { BaseFormService } from '../../../services/base-form.service';
|
|
8
8
|
import { ConfigServiceBase } from '../../../services/config.service.base';
|
|
9
9
|
import { SpiderlyMessageService } from '../../../services/spiderly-message.service';
|
|
10
|
-
import {
|
|
10
|
+
import { BaseFormComponent } from '../../base-form/base-form.component';
|
|
11
11
|
import { SpiderlyFormGroup } from '../../spiderly-form-control/spiderly-form-control';
|
|
12
12
|
import * as i0 from "@angular/core";
|
|
13
|
-
export declare class LoginComponent extends
|
|
13
|
+
export declare class LoginComponent extends BaseFormComponent implements OnInit {
|
|
14
14
|
protected differs: KeyValueDiffers;
|
|
15
15
|
protected http: HttpClient;
|
|
16
16
|
protected messageService: SpiderlyMessageService;
|
|
@@ -5,10 +5,10 @@ import { TranslocoService } from '@jsverse/transloco';
|
|
|
5
5
|
import { VerificationTokenRequest } from '../../../entities/security-entities';
|
|
6
6
|
import { BaseFormService } from '../../../services/base-form.service';
|
|
7
7
|
import { SpiderlyMessageService } from '../../../services/spiderly-message.service';
|
|
8
|
-
import {
|
|
8
|
+
import { BaseFormComponent } from '../../base-form/base-form.component';
|
|
9
9
|
import { SpiderlyFormGroup } from '../../spiderly-form-control/spiderly-form-control';
|
|
10
10
|
import * as i0 from "@angular/core";
|
|
11
|
-
export declare class VerificationWrapperComponent extends
|
|
11
|
+
export declare class VerificationWrapperComponent extends BaseFormComponent implements OnInit {
|
|
12
12
|
protected differs: KeyValueDiffers;
|
|
13
13
|
protected http: HttpClient;
|
|
14
14
|
protected messageService: SpiderlyMessageService;
|
|
@@ -7,7 +7,7 @@ import { SpiderlyMessageService } from '../../services/spiderly-message.service'
|
|
|
7
7
|
import { SpiderlyFormArray, SpiderlyFormControl, SpiderlyFormGroup } from '../spiderly-form-control/spiderly-form-control';
|
|
8
8
|
import { BaseFormService } from './../../services/base-form.service';
|
|
9
9
|
import * as i0 from "@angular/core";
|
|
10
|
-
export declare class
|
|
10
|
+
export declare class BaseFormComponent<TMainUIForm extends BaseEntity = any, TSaveBody extends BaseEntity = any> implements OnInit {
|
|
11
11
|
protected differs: KeyValueDiffers;
|
|
12
12
|
protected http: HttpClient;
|
|
13
13
|
protected messageService: SpiderlyMessageService;
|
|
@@ -153,6 +153,6 @@ export declare class BaseFormCopy<TMainUIForm extends BaseEntity = any, TSaveBod
|
|
|
153
153
|
getFormArrayControlByIndex<T>(formControlName: keyof T & string, formArray: SpiderlyFormArray<T>, index: number, filter?: (formGroups: SpiderlyFormGroup<T>[]) => SpiderlyFormGroup<T>[]): SpiderlyFormControl;
|
|
154
154
|
getFormArrayControls<T>(formControlName: keyof T & string, formArray: SpiderlyFormArray<T>, filter?: (formGroups: SpiderlyFormGroup<T>[]) => SpiderlyFormGroup<T>[]): SpiderlyFormControl[];
|
|
155
155
|
removeFormControlsFromTheFormArray(formArray: SpiderlyFormArray, indexes: number[]): void;
|
|
156
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<
|
|
157
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<
|
|
156
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<BaseFormComponent<any, any>, never>;
|
|
157
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<BaseFormComponent<any, any>, "base-form", never, {}, {}, never, never, false, never>;
|
|
158
158
|
}
|
|
@@ -9,6 +9,7 @@ import { Filter } from '../../entities/filter';
|
|
|
9
9
|
import { LazyLoadSelectedIdsResult } from '../../entities/lazy-load-selected-ids-result';
|
|
10
10
|
import { PaginatedResult } from '../../entities/paginated-result';
|
|
11
11
|
import { PrimengOption } from '../../entities/primeng-option';
|
|
12
|
+
import { ConfigServiceBase } from '../../services/config.service.base';
|
|
12
13
|
import { SpiderlyMessageService } from '../../services/spiderly-message.service';
|
|
13
14
|
import { SpiderlyFormControl } from '../spiderly-form-control/spiderly-form-control';
|
|
14
15
|
import * as i0 from "@angular/core";
|
|
@@ -18,6 +19,7 @@ export declare class SpiderlyDataTableComponent implements OnInit {
|
|
|
18
19
|
private route;
|
|
19
20
|
private messageService;
|
|
20
21
|
private translocoService;
|
|
22
|
+
private configService;
|
|
21
23
|
private locale;
|
|
22
24
|
table: Table;
|
|
23
25
|
tableTitle: string;
|
|
@@ -77,7 +79,7 @@ export declare class SpiderlyDataTableComponent implements OnInit {
|
|
|
77
79
|
* Example: 'details' will navigate to '/details/{rowId}'.
|
|
78
80
|
*/
|
|
79
81
|
rowNavigationPath: string;
|
|
80
|
-
constructor(router: Router, dialogService: DialogService, route: ActivatedRoute, messageService: SpiderlyMessageService, translocoService: TranslocoService, locale: string);
|
|
82
|
+
constructor(router: Router, dialogService: DialogService, route: ActivatedRoute, messageService: SpiderlyMessageService, translocoService: TranslocoService, configService: ConfigServiceBase, locale: string);
|
|
81
83
|
ngOnInit(): void;
|
|
82
84
|
lazyLoad(event: TableLazyLoadEvent): void;
|
|
83
85
|
clientLoad(): void;
|
|
@@ -140,7 +142,8 @@ export declare class Column<T = any> {
|
|
|
140
142
|
actions?: Action[];
|
|
141
143
|
editable?: boolean;
|
|
142
144
|
showTime?: boolean;
|
|
143
|
-
|
|
145
|
+
decimalPlaces?: number;
|
|
146
|
+
constructor({ name, field, filterField, filterType, filterPlaceholder, showMatchModes, showAddButton, dropdownOrMultiselectValues, actions, editable, showTime, decimalPlaces, }?: {
|
|
144
147
|
name?: string;
|
|
145
148
|
field?: string & keyof T;
|
|
146
149
|
filterField?: string & keyof T;
|
|
@@ -152,6 +155,7 @@ export declare class Column<T = any> {
|
|
|
152
155
|
actions?: Action[];
|
|
153
156
|
editable?: boolean;
|
|
154
157
|
showTime?: boolean;
|
|
158
|
+
decimalPlaces?: number;
|
|
155
159
|
});
|
|
156
160
|
}
|
|
157
161
|
export declare class RowClickEvent {
|
|
@@ -2,13 +2,11 @@ import { OnInit } from '@angular/core';
|
|
|
2
2
|
import { BaseControl } from '../base-control';
|
|
3
3
|
import { TranslocoService } from '@jsverse/transloco';
|
|
4
4
|
import { Editor, EditorInitEvent } from 'primeng/editor';
|
|
5
|
-
import { Tooltip } from 'primeng/tooltip';
|
|
6
5
|
import { Observable } from 'rxjs';
|
|
7
6
|
import * as i0 from "@angular/core";
|
|
8
7
|
export declare class SpiderlyEditorComponent extends BaseControl implements OnInit {
|
|
9
8
|
protected translocoService: TranslocoService;
|
|
10
9
|
editor: Editor;
|
|
11
|
-
tooltip: Tooltip;
|
|
12
10
|
uploadImageMethod: (formData: FormData) => Observable<string>;
|
|
13
11
|
objectId: number;
|
|
14
12
|
constructor(translocoService: TranslocoService);
|
|
@@ -14,7 +14,7 @@ export declare class SpiderlyFileComponent extends BaseControl implements OnInit
|
|
|
14
14
|
onFileRemoved: EventEmitter<null>;
|
|
15
15
|
objectId: number;
|
|
16
16
|
fileData: string;
|
|
17
|
-
acceptedFileTypes: Array<'image/*' | 'application/pdf' | '.pdf' | 'application/vnd.openxmlformats-officedocument.spreadsheetml.sheet' | 'application/vnd.ms-excel' | '.xlsx' | '.xls'>;
|
|
17
|
+
acceptedFileTypes: Array<'image/*' | 'image/png' | 'image/jpeg' | 'image/webp' | 'image/gif' | 'image/avif' | 'image/svg+xml' | '.png' | '.jpg' | '.jpeg' | '.webp' | '.gif' | '.avif' | '.svg' | 'application/pdf' | '.pdf' | 'application/vnd.openxmlformats-officedocument.spreadsheetml.sheet' | 'application/vnd.ms-excel' | '.xlsx' | '.xls' | 'video/*' | 'video/mp4' | '.mp4' | 'audio/*' | 'audio/mpeg' | '.mp3' | 'application/zip' | '.zip' | 'text/csv' | '.csv'>;
|
|
18
18
|
required: boolean;
|
|
19
19
|
multiple: boolean;
|
|
20
20
|
isCloudinaryFileData: boolean;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
export declare enum MatchModeCodes {
|
|
2
|
-
StartsWith =
|
|
3
|
-
Contains =
|
|
4
|
-
Equals =
|
|
5
|
-
LessThan =
|
|
6
|
-
GreaterThan =
|
|
7
|
-
In =
|
|
2
|
+
StartsWith = "startsWith",
|
|
3
|
+
Contains = "contains",
|
|
4
|
+
Equals = "equals",
|
|
5
|
+
LessThan = "lessThan",
|
|
6
|
+
GreaterThan = "greaterThan",
|
|
7
|
+
In = "in"
|
|
8
8
|
}
|
|
@@ -11,7 +11,7 @@ export declare class ApiSecurityService {
|
|
|
11
11
|
loginExternal: (externalProviderDTO: ExternalProvider) => Observable<AuthResult>;
|
|
12
12
|
sendLoginVerificationEmail: (loginDTO: Login) => Observable<SendLoginVerificationEmailResult>;
|
|
13
13
|
logout: (browserId: string) => Observable<any>;
|
|
14
|
-
|
|
14
|
+
refreshTokenWithHeaders: (request: RefreshTokenRequest) => Observable<AuthResult>;
|
|
15
15
|
getCurrentUserBase: () => Observable<UserBase>;
|
|
16
16
|
getCurrentUserPermissionCodes: () => Observable<string[]>;
|
|
17
17
|
getUnreadNotificationsCountForCurrentUser: () => Observable<number>;
|
|
@@ -18,6 +18,7 @@ export declare class ConfigServiceBase {
|
|
|
18
18
|
params: HttpParams;
|
|
19
19
|
};
|
|
20
20
|
logoPath: string;
|
|
21
|
+
defaultPageSize: number;
|
|
21
22
|
constructor();
|
|
22
23
|
static ɵfac: i0.ɵɵFactoryDeclaration<ConfigServiceBase, never>;
|
|
23
24
|
static ɵprov: i0.ɵɵInjectableDeclaration<ConfigServiceBase>;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "spiderly",
|
|
3
|
-
"version": "19.
|
|
3
|
+
"version": "19.6.0",
|
|
4
4
|
"author": "Filip Trivan",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"description": "Spiderly Angular Library to use in combination with Spiderly.",
|
|
@@ -40,7 +40,6 @@
|
|
|
40
40
|
"file-saver": "2.0.5",
|
|
41
41
|
"json-parser": "3.1.2",
|
|
42
42
|
"ngx-spinner": "19.0.0",
|
|
43
|
-
"primeflex": "3.3.1",
|
|
44
43
|
"primeicons": "7.0.0",
|
|
45
44
|
"primeng": "19.1.3",
|
|
46
45
|
"quill": "2.0.2",
|
package/public-api.d.ts
CHANGED
|
@@ -18,7 +18,7 @@ export * from './lib/controls/spiderly-textbox/spiderly-textbox.component';
|
|
|
18
18
|
export * from './lib/components/auth/login/login.component';
|
|
19
19
|
export * from './lib/components/auth/partials/login-verification.component';
|
|
20
20
|
export * from './lib/components/auth/partials/verification-wrapper.component';
|
|
21
|
-
export * from './lib/components/base-form/base-form
|
|
21
|
+
export * from './lib/components/base-form/base-form.component';
|
|
22
22
|
export * from './lib/components/card-skeleton/card-skeleton.component';
|
|
23
23
|
export * from './lib/components/footer/footer.component';
|
|
24
24
|
export * from './lib/components/index-card/index-card.component';
|
|
@@ -1,14 +1,6 @@
|
|
|
1
1
|
@use "./_variables" as *;
|
|
2
2
|
|
|
3
|
-
.spiderly-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
}
|
|
7
|
-
|
|
8
|
-
.spiderly-tooltip-invalid.p-tooltip.p-tooltip-bottom .p-tooltip-arrow {
|
|
9
|
-
border-bottom-color: $errorColorLight;
|
|
10
|
-
}
|
|
11
|
-
|
|
12
|
-
.spiderly-tooltip-invalid.p-tooltip.p-tooltip-top .p-tooltip-arrow {
|
|
13
|
-
border-top-color: $errorColorLight;
|
|
3
|
+
.spiderly-error-message {
|
|
4
|
+
color: $errorColor;
|
|
5
|
+
font-size: 0.75rem;
|
|
14
6
|
}
|
|
@@ -6,91 +6,6 @@
|
|
|
6
6
|
}
|
|
7
7
|
}
|
|
8
8
|
|
|
9
|
-
.spiderly-dashboard-item {
|
|
10
|
-
position: relative;
|
|
11
|
-
display: flex;
|
|
12
|
-
flex-direction: column;
|
|
13
|
-
justify-content: flex-start;
|
|
14
|
-
align-items: center;
|
|
15
|
-
border: solid 1px #e0e0e0;
|
|
16
|
-
border-radius: 5px;
|
|
17
|
-
padding: 20px 30px;
|
|
18
|
-
flex-grow: 1;
|
|
19
|
-
|
|
20
|
-
&__icon {
|
|
21
|
-
margin-bottom: 10px;
|
|
22
|
-
font-size: 3.2em;
|
|
23
|
-
}
|
|
24
|
-
&__title {
|
|
25
|
-
font-size: 1.1em;
|
|
26
|
-
text-align: center;
|
|
27
|
-
text-decoration: none !important;
|
|
28
|
-
}
|
|
29
|
-
&__bullets {
|
|
30
|
-
}
|
|
31
|
-
&__bullet {
|
|
32
|
-
}
|
|
33
|
-
|
|
34
|
-
&__bg {
|
|
35
|
-
position: absolute;
|
|
36
|
-
top: 0px;
|
|
37
|
-
bottom: 0px;
|
|
38
|
-
left: 0px;
|
|
39
|
-
right: 0px;
|
|
40
|
-
background-color: #fff;
|
|
41
|
-
z-index: -5;
|
|
42
|
-
|
|
43
|
-
&-icon {
|
|
44
|
-
position: absolute;
|
|
45
|
-
bottom: 0px;
|
|
46
|
-
right: 30px;
|
|
47
|
-
font-size: 15em;
|
|
48
|
-
//transform: rotate(-45deg);
|
|
49
|
-
opacity: 0.04;
|
|
50
|
-
text-decoration: none !important;
|
|
51
|
-
}
|
|
52
|
-
}
|
|
53
|
-
|
|
54
|
-
&--eo {
|
|
55
|
-
min-height: 200px;
|
|
56
|
-
}
|
|
57
|
-
&--codebooks {
|
|
58
|
-
min-height: 100px;
|
|
59
|
-
cursor: pointer;
|
|
60
|
-
}
|
|
61
|
-
&--home {
|
|
62
|
-
min-height: 160px;
|
|
63
|
-
cursor: pointer;
|
|
64
|
-
z-index: 1;
|
|
65
|
-
&:hover {
|
|
66
|
-
text-decoration: none;
|
|
67
|
-
|
|
68
|
-
.c-dashboard-item__bg {
|
|
69
|
-
background-color: #f8f8f8;
|
|
70
|
-
}
|
|
71
|
-
.c-dashboard-item__bg-icon {
|
|
72
|
-
opacity: 0.2;
|
|
73
|
-
transform: rotate(0deg);
|
|
74
|
-
}
|
|
75
|
-
}
|
|
76
|
-
|
|
77
|
-
.c-dashboard-item__icon {
|
|
78
|
-
font-size: 4em;
|
|
79
|
-
}
|
|
80
|
-
.c-dashboard-item__title {
|
|
81
|
-
font-size: 1.3em;
|
|
82
|
-
}
|
|
83
|
-
.c-dashboard-item__bg-icon {
|
|
84
|
-
font-size: 9em;
|
|
85
|
-
right: 40px;
|
|
86
|
-
bottom: 20px;
|
|
87
|
-
transform: rotate(-20deg);
|
|
88
|
-
opacity: 0.1;
|
|
89
|
-
transition: all 1s;
|
|
90
|
-
}
|
|
91
|
-
}
|
|
92
|
-
}
|
|
93
|
-
|
|
94
9
|
.dashboard-card-wrapper {
|
|
95
10
|
display: flex;
|
|
96
11
|
flex-direction: column;
|
|
@@ -406,12 +321,12 @@
|
|
|
406
321
|
font-size: 14px;
|
|
407
322
|
}
|
|
408
323
|
|
|
409
|
-
.
|
|
410
|
-
|
|
324
|
+
.surface-card {
|
|
325
|
+
background: var(--surface-card);
|
|
411
326
|
}
|
|
412
327
|
|
|
413
|
-
.
|
|
414
|
-
|
|
328
|
+
.surface-border {
|
|
329
|
+
border-color: var(--surface-border);
|
|
415
330
|
}
|
|
416
331
|
|
|
417
332
|
.p-colorpicker-preview {
|
|
@@ -441,13 +356,6 @@
|
|
|
441
356
|
}
|
|
442
357
|
}
|
|
443
358
|
|
|
444
|
-
ul,
|
|
445
|
-
ol {
|
|
446
|
-
padding-left: 25px;
|
|
447
|
-
margin-top: 10px;
|
|
448
|
-
margin-bottom: 10px;
|
|
449
|
-
}
|
|
450
|
-
|
|
451
359
|
$grid-columns: 8;
|
|
452
360
|
$grid-gap: 2rem;
|
|
453
361
|
$breakpoints: (
|