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