@sd-angular/core 19.0.0-beta.5 → 19.0.0-beta.51
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/README.md +686 -33
- package/assets/scss/ckeditor5.scss +60 -2
- package/assets/scss/core/bootstrap.scss +17 -0
- package/assets/scss/core/grid.scss +40 -0
- package/assets/scss/sd-core.scss +1 -0
- package/components/avatar/index.d.ts +1 -0
- package/components/avatar/src/avatar.component.d.ts +15 -0
- package/components/badge/src/badge.component.d.ts +77 -19
- package/components/button/src/button.component.d.ts +26 -28
- package/components/code-editor/index.d.ts +1 -0
- package/components/code-editor/src/code-editor.component.d.ts +25 -0
- package/components/document-builder/index.d.ts +1 -0
- package/components/document-builder/src/document-builder.component.d.ts +18 -36
- package/components/document-builder/src/document-builder.model.d.ts +10 -10
- package/components/document-builder/src/plugins/block-space/block-space.plugin.d.ts +9 -0
- package/components/document-builder/src/plugins/ck-comment/ck-comment.plugin.d.ts +44 -0
- package/components/document-builder/src/plugins/ck-comment/ck-comment.plugin.model.d.ts +56 -0
- package/components/document-builder/src/plugins/heading/heading.plugin.d.ts +1 -0
- package/components/document-builder/src/plugins/highlight-range/highlight-range.plugin.d.ts +4 -0
- package/components/document-builder/src/plugins/image-custom/image-custom.plugin.d.ts +31 -0
- package/components/document-builder/src/plugins/index.d.ts +7 -2
- package/components/document-builder/src/plugins/page-orientation/page-orientation.plugin.d.ts +2 -2
- package/components/document-builder/src/plugins/paste-handler/filters/bookmark.d.ts +14 -0
- package/components/document-builder/src/plugins/paste-handler/filters/br.d.ts +15 -0
- package/components/document-builder/src/plugins/paste-handler/filters/image.d.ts +25 -0
- package/components/document-builder/src/plugins/paste-handler/filters/list.d.ts +29 -0
- package/components/document-builder/src/plugins/paste-handler/filters/parse.d.ts +35 -0
- package/components/document-builder/src/plugins/paste-handler/filters/removeboldwrapper.d.ts +15 -0
- package/components/document-builder/src/plugins/paste-handler/filters/removegooglesheetstag.d.ts +15 -0
- package/components/document-builder/src/plugins/paste-handler/filters/removeinvalidtablewidth.d.ts +15 -0
- package/components/document-builder/src/plugins/paste-handler/filters/removemsattributes.d.ts +15 -0
- package/components/document-builder/src/plugins/paste-handler/filters/removestyleblock.d.ts +15 -0
- package/components/document-builder/src/plugins/paste-handler/filters/removexmlns.d.ts +15 -0
- package/components/document-builder/src/plugins/paste-handler/filters/replacemsfootnotes.d.ts +54 -0
- package/components/document-builder/src/plugins/paste-handler/filters/replacetabswithinprewithspaces.d.ts +24 -0
- package/components/document-builder/src/plugins/paste-handler/filters/space.d.ts +27 -0
- package/components/document-builder/src/plugins/paste-handler/filters/table.d.ts +16 -0
- package/components/document-builder/src/plugins/paste-handler/filters/utils.d.ts +25 -0
- package/components/document-builder/src/plugins/paste-handler/index.d.ts +35 -0
- package/components/document-builder/src/plugins/paste-handler/normalizers/googledocsnormalizer.d.ts +31 -0
- package/components/document-builder/src/plugins/paste-handler/normalizers/googlesheetsnormalizer.d.ts +31 -0
- package/components/document-builder/src/plugins/paste-handler/normalizers/mswordnormalizer.d.ts +29 -0
- package/components/document-builder/src/plugins/paste-handler/types.d.ts +30 -0
- package/components/document-builder/src/plugins/table-custom/index.d.ts +34 -0
- package/components/index.d.ts +4 -0
- package/components/mini-editor/index.d.ts +2 -0
- package/components/mini-editor/src/mini-editor.component.d.ts +90 -0
- package/components/mini-editor/src/mini-editor.model.d.ts +44 -0
- package/components/side-drawer/src/side-drawer.component.d.ts +1 -2
- package/components/tab-router/src/components/tab-router-item/tab-router-item.component.d.ts +4 -1
- package/components/tab-router/src/components/tab-router-outlet/tab-router-outlet.component.d.ts +3 -15
- package/components/table/src/components/column-filter/column-filter.component.d.ts +3 -3
- package/components/table/src/components/external-filter/external-filter.component.d.ts +1 -1
- package/components/table/src/components/selector-action/action-filter.pipe.d.ts +11 -10
- package/components/table/src/directives/index.d.ts +2 -0
- package/components/table/src/directives/sd-table-column-filter-def.directive.d.ts +9 -0
- package/components/table/src/directives/sticky-shadow.directive.d.ts +17 -0
- package/components/table/src/models/table-column.model.d.ts +33 -34
- package/components/table/src/models/table-command.model.d.ts +7 -3
- package/components/table/src/models/table-item.model.d.ts +5 -4
- package/components/table/src/models/table-option-export.model.d.ts +3 -2
- package/components/table/src/models/table-option-selector.model.d.ts +11 -10
- package/components/table/src/models/table-option.model.d.ts +10 -8
- package/components/table/src/services/index.d.ts +3 -0
- package/components/table/src/services/table-export/table-export.service.d.ts +26 -0
- package/components/table/src/services/table-filter/table-filter.model.d.ts +5 -4
- package/components/table/src/services/table-format/table-format.service.d.ts +16 -0
- package/components/table/src/table.component.d.ts +39 -53
- package/components/view/index.d.ts +1 -0
- package/components/view/src/view.component.d.ts +16 -0
- package/components/workflow/src/models/index.d.ts +1 -0
- package/directives/index.d.ts +1 -0
- package/directives/src/sd-href.directive.d.ts +9 -0
- package/fesm2022/sd-angular-core-components-avatar.mjs +90 -0
- package/fesm2022/sd-angular-core-components-avatar.mjs.map +1 -0
- package/fesm2022/sd-angular-core-components-badge.mjs +101 -91
- package/fesm2022/sd-angular-core-components-badge.mjs.map +1 -1
- package/fesm2022/sd-angular-core-components-button.mjs +64 -96
- package/fesm2022/sd-angular-core-components-button.mjs.map +1 -1
- package/fesm2022/sd-angular-core-components-code-editor.mjs +129 -0
- package/fesm2022/sd-angular-core-components-code-editor.mjs.map +1 -0
- package/fesm2022/sd-angular-core-components-document-builder.mjs +3635 -521
- package/fesm2022/sd-angular-core-components-document-builder.mjs.map +1 -1
- package/fesm2022/sd-angular-core-components-history.mjs +1 -1
- package/fesm2022/sd-angular-core-components-history.mjs.map +1 -1
- package/fesm2022/sd-angular-core-components-import-excel.mjs +1 -1
- package/fesm2022/sd-angular-core-components-import-excel.mjs.map +1 -1
- package/fesm2022/sd-angular-core-components-mini-editor.mjs +326 -0
- package/fesm2022/sd-angular-core-components-mini-editor.mjs.map +1 -0
- package/fesm2022/sd-angular-core-components-preview.mjs +1 -1
- package/fesm2022/sd-angular-core-components-preview.mjs.map +1 -1
- package/fesm2022/sd-angular-core-components-side-drawer.mjs +21 -8
- package/fesm2022/sd-angular-core-components-side-drawer.mjs.map +1 -1
- package/fesm2022/sd-angular-core-components-tab-router.mjs +152 -226
- package/fesm2022/sd-angular-core-components-tab-router.mjs.map +1 -1
- package/fesm2022/sd-angular-core-components-table.mjs +1234 -1076
- package/fesm2022/sd-angular-core-components-table.mjs.map +1 -1
- package/fesm2022/sd-angular-core-components-upload-file.mjs +1 -1
- package/fesm2022/sd-angular-core-components-upload-file.mjs.map +1 -1
- package/fesm2022/sd-angular-core-components-view.mjs +45 -0
- package/fesm2022/sd-angular-core-components-view.mjs.map +1 -0
- package/fesm2022/sd-angular-core-components-workflow.mjs +33 -43
- package/fesm2022/sd-angular-core-components-workflow.mjs.map +1 -1
- package/fesm2022/sd-angular-core-components.mjs +4 -0
- package/fesm2022/sd-angular-core-components.mjs.map +1 -1
- package/fesm2022/sd-angular-core-directives.mjs +80 -27
- package/fesm2022/sd-angular-core-directives.mjs.map +1 -1
- package/fesm2022/sd-angular-core-forms-autocomplete.mjs +257 -363
- package/fesm2022/sd-angular-core-forms-autocomplete.mjs.map +1 -1
- package/fesm2022/sd-angular-core-forms-date-range.mjs +145 -245
- package/fesm2022/sd-angular-core-forms-date-range.mjs.map +1 -1
- package/fesm2022/sd-angular-core-forms-date.mjs +137 -273
- package/fesm2022/sd-angular-core-forms-date.mjs.map +1 -1
- package/fesm2022/sd-angular-core-forms-datetime.mjs +136 -288
- package/fesm2022/sd-angular-core-forms-datetime.mjs.map +1 -1
- package/fesm2022/sd-angular-core-forms-input-number.mjs +174 -337
- package/fesm2022/sd-angular-core-forms-input-number.mjs.map +1 -1
- package/fesm2022/sd-angular-core-forms-input.mjs +130 -285
- package/fesm2022/sd-angular-core-forms-input.mjs.map +1 -1
- package/fesm2022/sd-angular-core-forms-radio.mjs +3 -2
- package/fesm2022/sd-angular-core-forms-radio.mjs.map +1 -1
- package/fesm2022/sd-angular-core-forms-select.mjs +337 -420
- package/fesm2022/sd-angular-core-forms-select.mjs.map +1 -1
- package/fesm2022/sd-angular-core-forms-textarea.mjs +121 -226
- package/fesm2022/sd-angular-core-forms-textarea.mjs.map +1 -1
- package/fesm2022/sd-angular-core-modules-keycloak.mjs +126 -0
- package/fesm2022/sd-angular-core-modules-keycloak.mjs.map +1 -0
- package/fesm2022/sd-angular-core-modules-layout.mjs +440 -431
- package/fesm2022/sd-angular-core-modules-layout.mjs.map +1 -1
- package/fesm2022/sd-angular-core-modules.mjs +1 -1
- package/fesm2022/sd-angular-core-services-api.mjs +5 -10
- package/fesm2022/sd-angular-core-services-api.mjs.map +1 -1
- package/fesm2022/sd-angular-core-services-confirm.mjs +2 -2
- package/fesm2022/sd-angular-core-services-confirm.mjs.map +1 -1
- package/fesm2022/sd-angular-core-services-docx.mjs +173 -0
- package/fesm2022/sd-angular-core-services-docx.mjs.map +1 -0
- package/fesm2022/sd-angular-core-services-notify.mjs +2 -2
- package/fesm2022/sd-angular-core-services-notify.mjs.map +1 -1
- package/fesm2022/sd-angular-core-services.mjs +1 -0
- package/fesm2022/sd-angular-core-services.mjs.map +1 -1
- package/fesm2022/sd-angular-core-utilities-extensions.mjs +21 -45
- package/fesm2022/sd-angular-core-utilities-extensions.mjs.map +1 -1
- package/fesm2022/sd-angular-core-utilities-models.mjs +15 -1
- package/fesm2022/sd-angular-core-utilities-models.mjs.map +1 -1
- package/forms/autocomplete/src/autocomplete.component.d.ts +51 -56
- package/forms/date/src/date.component.d.ts +41 -45
- package/forms/date-range/src/date-range.component.d.ts +28 -33
- package/forms/datetime/src/datetime.component.d.ts +41 -48
- package/forms/input/src/input.component.d.ts +46 -56
- package/forms/input-number/src/input-number.component.d.ts +47 -54
- package/forms/select/src/select.component.d.ts +60 -58
- package/forms/textarea/src/textarea.component.d.ts +34 -41
- package/modules/index.d.ts +1 -1
- package/modules/keycloak/index.d.ts +4 -0
- package/modules/keycloak/keycloak.configuration.d.ts +11 -0
- package/modules/keycloak/keycloak.interceptor.d.ts +2 -0
- package/modules/keycloak/keycloak.module.d.ts +18 -0
- package/modules/keycloak/keycloak.service.d.ts +14 -0
- package/modules/layout/components/layout-main/layout-main.component.d.ts +7 -12
- package/modules/layout/components/sidebar-v1/components/sidebar/sidebar.component.d.ts +22 -29
- package/modules/layout/components/sidebar-v1/components/user/user.component.d.ts +11 -17
- package/modules/layout/components/sidebar-v1/main.component.d.ts +14 -14
- package/modules/layout/configurations/layout.configuration.d.ts +46 -3
- package/modules/layout/modules/forbidden/pages/root/root.component.d.ts +3 -8
- package/modules/layout/modules/home/components/home-page/home-page.component.d.ts +2 -5
- package/modules/layout/modules/not-found/pages/root/root.component.d.ts +3 -8
- package/modules/layout/services/index.d.ts +1 -0
- package/modules/layout/services/layout.service.d.ts +10 -0
- package/modules/layout/services/menu/menu.model.d.ts +2 -0
- package/modules/layout/services/storage/storage.service.d.ts +0 -3
- package/package.json +90 -67
- package/sd-angular-core-19.0.0-beta.51.tgz +0 -0
- package/services/api/src/api.model.d.ts +6 -1
- package/services/confirm/src/lib/confirm.service.d.ts +1 -0
- package/services/docx/index.d.ts +1 -0
- package/services/docx/src/lib/docx.model.d.ts +9 -0
- package/services/docx/src/lib/docx.service.d.ts +13 -0
- package/services/docx/src/public-api.d.ts +2 -0
- package/services/index.d.ts +1 -0
- package/utilities/extensions/src/string.extension.d.ts +2 -0
- package/utilities/extensions/src/utility.extension.d.ts +1 -0
- package/utilities/models/index.d.ts +3 -0
- package/utilities/models/src/filter.model.d.ts +14 -2
- package/utilities/models/src/icon.model.d.ts +2 -0
- package/utilities/models/src/nested-key-of.model.d.ts +5 -0
- package/utilities/models/src/pattern.model.d.ts +1 -1
- package/utilities/models/src/unwrap-signal.model.d.ts +6 -0
- package/components/document-builder/src/plugins/comment/comment.plugin.d.ts +0 -4
- package/components/document-builder/src/plugins/table-fit/table-fit.plugin.d.ts +0 -4
- package/fesm2022/sd-angular-core-modules-oidc.mjs +0 -127
- package/fesm2022/sd-angular-core-modules-oidc.mjs.map +0 -1
- package/modules/oidc/dynamic-sts.loader.d.ts +0 -11
- package/modules/oidc/index.d.ts +0 -2
- package/modules/oidc/oidc.configuration.d.ts +0 -11
- package/modules/oidc/oidc.module.d.ts +0 -14
|
@@ -1,69 +1,73 @@
|
|
|
1
|
-
import { AfterViewInit,
|
|
2
|
-
|
|
1
|
+
import { AfterViewInit, OnDestroy, OnInit, // THÊM IMPORT NÀY
|
|
2
|
+
Signal, TemplateRef } from '@angular/core';
|
|
3
|
+
import { FormControl, ValidatorFn } from '@angular/forms';
|
|
3
4
|
import { MatFormFieldAppearance } from '@angular/material/form-field';
|
|
4
5
|
import { MatInput } from '@angular/material/input';
|
|
5
6
|
import { MatSelect, MatSelectChange } from '@angular/material/select';
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import { ISdFormConfiguration, SdCustomValidator, SdFormControl, SdSearch, SdSelectionData } from '@sd-angular/core/forms/models';
|
|
7
|
+
import { SdItemDefDefDirective, SdViewDefDirective } from '@sd-angular/core/forms/directives';
|
|
8
|
+
import { SdCustomValidator, SdFormControl, SdSearch, SdSelectionData } from '@sd-angular/core/forms/models';
|
|
9
9
|
import { SdSize } from '@sd-angular/core/utilities/models';
|
|
10
|
-
import { BehaviorSubject, Observable } from 'rxjs';
|
|
11
10
|
import * as i0 from "@angular/core";
|
|
12
11
|
export declare class SdSelect implements OnInit, AfterViewInit, OnDestroy {
|
|
13
12
|
#private;
|
|
13
|
+
id: string;
|
|
14
|
+
matInputRef: Signal<MatInput | undefined>;
|
|
15
|
+
selectRef: Signal<MatSelect | undefined>;
|
|
16
|
+
sdLabelTemplate: Signal<TemplateRef<any> | undefined>;
|
|
17
|
+
sdValueTemplate: Signal<TemplateRef<any> | undefined>;
|
|
18
|
+
itemDef: Signal<SdItemDefDefDirective | undefined>;
|
|
19
|
+
sdViewDef: Signal<SdViewDefDirective | undefined>;
|
|
14
20
|
private ref;
|
|
15
21
|
private formConfig;
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
22
|
+
private el;
|
|
23
|
+
autoIdInput: import("@angular/core").InputSignal<string | null | undefined>;
|
|
24
|
+
autoId: Signal<string | undefined>;
|
|
25
|
+
name: import("@angular/core").InputSignal<string>;
|
|
26
|
+
size: import("@angular/core").InputSignal<SdSize>;
|
|
27
|
+
form: import("@angular/core").InputSignal<any>;
|
|
28
|
+
label: import("@angular/core").InputSignal<string | undefined>;
|
|
29
|
+
helperText: import("@angular/core").InputSignal<string | undefined>;
|
|
30
|
+
placeholder: import("@angular/core").InputSignal<string | undefined>;
|
|
31
|
+
valueField: import("@angular/core").InputSignal<string>;
|
|
32
|
+
displayField: import("@angular/core").InputSignal<string>;
|
|
33
|
+
disabledField: import("@angular/core").InputSignal<string>;
|
|
34
|
+
cacheChecksum: import("@angular/core").InputSignal<any>;
|
|
35
|
+
limit: import("@angular/core").InputSignal<number>;
|
|
36
|
+
hyperlink: import("@angular/core").InputSignal<string | null | undefined>;
|
|
37
|
+
minWidthPanel: import("@angular/core").InputSignalWithTransform<string | number, string | number | null | undefined>;
|
|
38
|
+
hideInlineError: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
|
|
39
|
+
required: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
|
|
40
|
+
disabled: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
|
|
41
|
+
viewed: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
|
|
42
|
+
multiple: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
|
|
43
|
+
validator: import("@angular/core").InputSignal<SdCustomValidator | undefined>;
|
|
44
|
+
inlineError: import("@angular/core").InputSignal<string | undefined>;
|
|
45
|
+
appearanceInput: import("@angular/core").InputSignal<MatFormFieldAppearance | undefined>;
|
|
46
|
+
appearance: Signal<MatFormFieldAppearance>;
|
|
47
|
+
items: import("@angular/core").InputSignal<any[] | SdSearch | Signal<any[]> | null | undefined>;
|
|
48
|
+
valueModel: import("@angular/core").ModelSignal<string | number | boolean | (string | number)[] | null | undefined>;
|
|
49
|
+
sdChange: import("@angular/core").OutputEmitterRef<any>;
|
|
50
|
+
sdSelection: import("@angular/core").OutputEmitterRef<SdSelectionData<any>>;
|
|
24
51
|
formControl: SdFormControl;
|
|
25
52
|
inputControl: FormControl<string | null>;
|
|
26
|
-
|
|
27
|
-
set form(val: NgForm | FormGroup | undefined | null);
|
|
28
|
-
label?: string;
|
|
29
|
-
set _label(val: string | undefined);
|
|
30
|
-
helperText?: string;
|
|
31
|
-
set _helperText(val: string | undefined);
|
|
32
|
-
placeholder?: string;
|
|
33
|
-
display?: Observable<string>;
|
|
34
|
-
set model(value: boolean | number | string | (number | string)[] | undefined | null);
|
|
35
|
-
set items(items: undefined | null | any[] | SdSearch);
|
|
36
|
-
valueField: string;
|
|
37
|
-
displayField: string;
|
|
38
|
-
disabledField: string;
|
|
39
|
-
cacheChecksum: any;
|
|
40
|
-
loading$: BehaviorSubject<boolean>;
|
|
41
|
-
required: boolean;
|
|
42
|
-
set _required(val: boolean | '' | undefined | null);
|
|
43
|
-
set _validator(value: SdCustomValidator | undefined);
|
|
44
|
-
inlineError?: string;
|
|
45
|
-
set _inlineError(val: string);
|
|
46
|
-
set disabled(val: boolean | '' | undefined | null);
|
|
47
|
-
viewed: boolean;
|
|
48
|
-
set _viewed(val: boolean | '' | undefined | null);
|
|
49
|
-
viewedText?: Observable<string>;
|
|
50
|
-
hyperlink?: string | null;
|
|
51
|
-
multiple: boolean;
|
|
52
|
-
set _multiple(val: boolean | '' | undefined | null);
|
|
53
|
-
limit: number;
|
|
54
|
-
filtered: boolean;
|
|
55
|
-
itemDef?: SdItemDefDefDirective;
|
|
56
|
-
modelChange: EventEmitter<any>;
|
|
57
|
-
sdChange: EventEmitter<any>;
|
|
58
|
-
sdSelection: EventEmitter<SdSelectionData<any>>;
|
|
59
|
-
selectedItems?: Observable<any[]>;
|
|
60
|
-
filteredItems?: Observable<any[]>;
|
|
61
|
-
allSelected: boolean;
|
|
62
|
-
sdLabelDef?: SdLabelDefDirective;
|
|
63
|
-
sdViewDef?: SdViewDefDirective;
|
|
53
|
+
loading: import("@angular/core").WritableSignal<boolean>;
|
|
64
54
|
isFocused: boolean;
|
|
65
|
-
|
|
66
|
-
|
|
55
|
+
allSelected: boolean;
|
|
56
|
+
actualItems: Signal<any[] | SdSearch | null | undefined>;
|
|
57
|
+
filteredItems: import("@angular/core").WritableSignal<any[]>;
|
|
58
|
+
selectedItems: import("@angular/core").WritableSignal<any[]>;
|
|
59
|
+
display: import("@angular/core").WritableSignal<string>;
|
|
60
|
+
calculatedPanelWidth: import("@angular/core").WritableSignal<string | number>;
|
|
61
|
+
normalizedValue: Signal<string | number | boolean | (string | number | boolean)[] | null | undefined>;
|
|
62
|
+
filtered: Signal<boolean>;
|
|
63
|
+
delayTime: Signal<500 | 0>;
|
|
64
|
+
itemValue: (item: any) => any;
|
|
65
|
+
itemDisplay: (item: any) => any;
|
|
66
|
+
itemDisabled: (item: any) => boolean;
|
|
67
|
+
setNestedValue: (obj: any, path: string, value: any) => void;
|
|
68
|
+
tooltip: Signal<string>;
|
|
69
|
+
updatePanelWidth: () => void;
|
|
70
|
+
constructor();
|
|
67
71
|
ngOnInit(): void;
|
|
68
72
|
ngAfterViewInit(): void;
|
|
69
73
|
ngOnDestroy(): void;
|
|
@@ -74,8 +78,6 @@ export declare class SdSelect implements OnInit, AfterViewInit, OnDestroy {
|
|
|
74
78
|
onClick: () => void;
|
|
75
79
|
focus: () => void;
|
|
76
80
|
onOpenedChange: (isOpened: boolean) => void;
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<SdSelect, [null, { optional: true; }]>;
|
|
80
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<SdSelect, "sd-select", never, { "_autoId": { "alias": "autoId"; "required": false; }; "name": { "alias": "name"; "required": false; }; "appearance": { "alias": "appearance"; "required": false; }; "_hideInlineError": { "alias": "hideInlineError"; "required": false; }; "size": { "alias": "size"; "required": false; }; "form": { "alias": "form"; "required": false; }; "_label": { "alias": "label"; "required": false; }; "_helperText": { "alias": "helperText"; "required": false; }; "placeholder": { "alias": "placeholder"; "required": false; }; "model": { "alias": "model"; "required": false; }; "items": { "alias": "items"; "required": false; }; "valueField": { "alias": "valueField"; "required": true; }; "displayField": { "alias": "displayField"; "required": true; }; "disabledField": { "alias": "disabledField"; "required": false; }; "cacheChecksum": { "alias": "cacheChecksum"; "required": false; }; "_required": { "alias": "required"; "required": false; }; "_validator": { "alias": "validator"; "required": false; }; "_inlineError": { "alias": "inlineError"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; "_viewed": { "alias": "viewed"; "required": false; }; "hyperlink": { "alias": "hyperlink"; "required": false; }; "_multiple": { "alias": "multiple"; "required": false; }; "limit": { "alias": "limit"; "required": false; }; }, { "modelChange": "modelChange"; "sdChange": "sdChange"; "sdSelection": "sdSelection"; }, ["itemDef", "sdLabelDef", "sdViewDef"], never, true, never>;
|
|
81
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<SdSelect, never>;
|
|
82
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<SdSelect, "sd-select", never, { "autoIdInput": { "alias": "autoId"; "required": false; "isSignal": true; }; "name": { "alias": "name"; "required": false; "isSignal": true; }; "size": { "alias": "size"; "required": false; "isSignal": true; }; "form": { "alias": "form"; "required": false; "isSignal": true; }; "label": { "alias": "label"; "required": false; "isSignal": true; }; "helperText": { "alias": "helperText"; "required": false; "isSignal": true; }; "placeholder": { "alias": "placeholder"; "required": false; "isSignal": true; }; "valueField": { "alias": "valueField"; "required": true; "isSignal": true; }; "displayField": { "alias": "displayField"; "required": true; "isSignal": true; }; "disabledField": { "alias": "disabledField"; "required": false; "isSignal": true; }; "cacheChecksum": { "alias": "cacheChecksum"; "required": false; "isSignal": true; }; "limit": { "alias": "limit"; "required": false; "isSignal": true; }; "hyperlink": { "alias": "hyperlink"; "required": false; "isSignal": true; }; "minWidthPanel": { "alias": "minWidthPanel"; "required": false; "isSignal": true; }; "hideInlineError": { "alias": "hideInlineError"; "required": false; "isSignal": true; }; "required": { "alias": "required"; "required": false; "isSignal": true; }; "disabled": { "alias": "disabled"; "required": false; "isSignal": true; }; "viewed": { "alias": "viewed"; "required": false; "isSignal": true; }; "multiple": { "alias": "multiple"; "required": false; "isSignal": true; }; "validator": { "alias": "validator"; "required": false; "isSignal": true; }; "inlineError": { "alias": "inlineError"; "required": false; "isSignal": true; }; "appearanceInput": { "alias": "appearance"; "required": false; "isSignal": true; }; "items": { "alias": "items"; "required": false; "isSignal": true; }; "valueModel": { "alias": "model"; "required": false; "isSignal": true; }; }, { "valueModel": "modelChange"; "sdChange": "sdChange"; "sdSelection": "sdSelection"; }, ["sdLabelTemplate", "sdValueTemplate", "itemDef", "sdViewDef"], ["[sdLabel]"], true, never>;
|
|
81
83
|
}
|
|
@@ -1,51 +1,44 @@
|
|
|
1
|
-
import { AfterViewInit,
|
|
2
|
-
import {
|
|
1
|
+
import { AfterViewInit, ElementRef, OnDestroy, OnInit } from '@angular/core';
|
|
2
|
+
import { ValidatorFn } from '@angular/forms';
|
|
3
3
|
import { MatFormFieldAppearance } from '@angular/material/form-field';
|
|
4
4
|
import { SdLabelDefDirective, SdSuffixDefDirective, SdViewDefDirective } from '@sd-angular/core/forms/directives';
|
|
5
|
-
import {
|
|
5
|
+
import { SdCustomValidator, SdFormControl } from '@sd-angular/core/forms/models';
|
|
6
6
|
import { SdSize } from '@sd-angular/core/utilities';
|
|
7
7
|
import * as i0 from "@angular/core";
|
|
8
8
|
export declare class SdTextarea implements OnInit, AfterViewInit, OnDestroy {
|
|
9
9
|
#private;
|
|
10
|
+
id: string;
|
|
11
|
+
textareaRef: import("@angular/core").Signal<ElementRef<HTMLTextAreaElement> | undefined>;
|
|
12
|
+
sdViewDef: import("@angular/core").Signal<SdViewDefDirective | undefined>;
|
|
13
|
+
sdLabelDef: import("@angular/core").Signal<SdLabelDefDirective | undefined>;
|
|
14
|
+
sdSuffixDef: import("@angular/core").Signal<SdSuffixDefDirective | undefined>;
|
|
10
15
|
private ref;
|
|
11
16
|
private formConfig;
|
|
12
|
-
|
|
13
|
-
autoId
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
set pattern(val: string);
|
|
35
|
-
set validator(validator: SdCustomValidator | undefined);
|
|
36
|
-
inlineError?: string;
|
|
37
|
-
set _inlineError(val: string);
|
|
38
|
-
set disabled(val: boolean | '' | undefined | null);
|
|
39
|
-
viewed: boolean;
|
|
40
|
-
set _viewed(val: boolean | '' | undefined | null);
|
|
41
|
-
set _autoHeight(val: boolean | '');
|
|
42
|
-
textarea: ElementRef;
|
|
43
|
-
sdViewDef?: SdViewDefDirective;
|
|
44
|
-
sdLabelDef?: SdLabelDefDirective;
|
|
45
|
-
sdSuffixDef?: SdSuffixDefDirective;
|
|
46
|
-
isFocused: boolean;
|
|
17
|
+
autoIdInput: import("@angular/core").InputSignal<string | null | undefined>;
|
|
18
|
+
autoId: import("@angular/core").Signal<string | undefined>;
|
|
19
|
+
name: import("@angular/core").InputSignal<string>;
|
|
20
|
+
size: import("@angular/core").InputSignal<SdSize>;
|
|
21
|
+
form: import("@angular/core").InputSignal<any>;
|
|
22
|
+
label: import("@angular/core").InputSignal<string | undefined>;
|
|
23
|
+
helperText: import("@angular/core").InputSignal<string | undefined>;
|
|
24
|
+
placeholder: import("@angular/core").InputSignal<string>;
|
|
25
|
+
rows: import("@angular/core").InputSignal<number>;
|
|
26
|
+
hideInlineError: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
|
|
27
|
+
required: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
|
|
28
|
+
disabled: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
|
|
29
|
+
viewed: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
|
|
30
|
+
autoHeight: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
|
|
31
|
+
maxlength: import("@angular/core").InputSignalWithTransform<number | null, unknown>;
|
|
32
|
+
pattern: import("@angular/core").InputSignal<string | undefined>;
|
|
33
|
+
validator: import("@angular/core").InputSignal<SdCustomValidator | undefined>;
|
|
34
|
+
inlineError: import("@angular/core").InputSignal<string | undefined>;
|
|
35
|
+
appearanceInput: import("@angular/core").InputSignal<MatFormFieldAppearance | undefined>;
|
|
36
|
+
appearance: import("@angular/core").Signal<MatFormFieldAppearance>;
|
|
37
|
+
valueModel: import("@angular/core").ModelSignal<any>;
|
|
38
|
+
sdChange: import("@angular/core").OutputEmitterRef<any>;
|
|
47
39
|
formControl: SdFormControl;
|
|
48
|
-
|
|
40
|
+
isFocused: boolean;
|
|
41
|
+
constructor();
|
|
49
42
|
ngOnInit(): void;
|
|
50
43
|
ngAfterViewInit(): void;
|
|
51
44
|
ngOnDestroy(): void;
|
|
@@ -55,6 +48,6 @@ export declare class SdTextarea implements OnInit, AfterViewInit, OnDestroy {
|
|
|
55
48
|
blur: () => void;
|
|
56
49
|
focus: () => void;
|
|
57
50
|
customInlineErrorValidator(): ValidatorFn;
|
|
58
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<SdTextarea,
|
|
59
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<SdTextarea, "sd-textarea", never, { "
|
|
51
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<SdTextarea, never>;
|
|
52
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<SdTextarea, "sd-textarea", never, { "autoIdInput": { "alias": "autoId"; "required": false; "isSignal": true; }; "name": { "alias": "name"; "required": false; "isSignal": true; }; "size": { "alias": "size"; "required": false; "isSignal": true; }; "form": { "alias": "form"; "required": false; "isSignal": true; }; "label": { "alias": "label"; "required": false; "isSignal": true; }; "helperText": { "alias": "helperText"; "required": false; "isSignal": true; }; "placeholder": { "alias": "placeholder"; "required": false; "isSignal": true; }; "rows": { "alias": "rows"; "required": false; "isSignal": true; }; "hideInlineError": { "alias": "hideInlineError"; "required": false; "isSignal": true; }; "required": { "alias": "required"; "required": false; "isSignal": true; }; "disabled": { "alias": "disabled"; "required": false; "isSignal": true; }; "viewed": { "alias": "viewed"; "required": false; "isSignal": true; }; "autoHeight": { "alias": "autoHeight"; "required": false; "isSignal": true; }; "maxlength": { "alias": "maxlength"; "required": false; "isSignal": true; }; "pattern": { "alias": "pattern"; "required": false; "isSignal": true; }; "validator": { "alias": "validator"; "required": false; "isSignal": true; }; "inlineError": { "alias": "inlineError"; "required": false; "isSignal": true; }; "appearanceInput": { "alias": "appearance"; "required": false; "isSignal": true; }; "valueModel": { "alias": "model"; "required": false; "isSignal": true; }; }, { "valueModel": "modelChange"; "sdChange": "sdChange"; }, ["sdViewDef", "sdLabelDef", "sdSuffixDef"], never, true, never>;
|
|
60
53
|
}
|
package/modules/index.d.ts
CHANGED
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { InjectionToken } from '@angular/core';
|
|
2
|
+
export interface SdKeycloakTenantConfig {
|
|
3
|
+
url: string;
|
|
4
|
+
realm: string;
|
|
5
|
+
clientId: string;
|
|
6
|
+
secureRoutes?: string[];
|
|
7
|
+
}
|
|
8
|
+
export interface ISdKeycloakConfiguration {
|
|
9
|
+
loadTenantConfig: () => Promise<SdKeycloakTenantConfig>;
|
|
10
|
+
}
|
|
11
|
+
export declare const SD_KEYCLOAK_CONFIGURATION: InjectionToken<ISdKeycloakConfiguration>;
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { ModuleWithProviders, Type, EnvironmentProviders } from '@angular/core';
|
|
2
|
+
import { ISdKeycloakConfiguration } from './keycloak.configuration';
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
4
|
+
export declare function provideSdKeycloak(options: {
|
|
5
|
+
useClass?: Type<ISdKeycloakConfiguration>;
|
|
6
|
+
useFactory?: (...args: any[]) => ISdKeycloakConfiguration;
|
|
7
|
+
deps?: any[];
|
|
8
|
+
}): EnvironmentProviders;
|
|
9
|
+
export declare class SdKeycloakModule {
|
|
10
|
+
static forRoot(options: {
|
|
11
|
+
useClass?: Type<ISdKeycloakConfiguration>;
|
|
12
|
+
useFactory?: (...args: any[]) => ISdKeycloakConfiguration;
|
|
13
|
+
deps?: any[];
|
|
14
|
+
}): ModuleWithProviders<SdKeycloakModule>;
|
|
15
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<SdKeycloakModule, never>;
|
|
16
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<SdKeycloakModule, never, never, never>;
|
|
17
|
+
static ɵinj: i0.ɵɵInjectorDeclaration<SdKeycloakModule>;
|
|
18
|
+
}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import Keycloak from 'keycloak-js';
|
|
2
|
+
import { SdKeycloakTenantConfig } from './keycloak.configuration';
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
4
|
+
export declare class SdKeycloakService {
|
|
5
|
+
keycloak: Keycloak;
|
|
6
|
+
config: SdKeycloakTenantConfig;
|
|
7
|
+
init(config: SdKeycloakTenantConfig): Promise<boolean>;
|
|
8
|
+
login(): Promise<void>;
|
|
9
|
+
logout(): Promise<void>;
|
|
10
|
+
getToken(): string | undefined;
|
|
11
|
+
getIsAuthenticated(): boolean;
|
|
12
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<SdKeycloakService, never>;
|
|
13
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<SdKeycloakService>;
|
|
14
|
+
}
|
|
@@ -1,16 +1,11 @@
|
|
|
1
|
-
import { OnInit } from '@angular/core';
|
|
2
1
|
import { SdLayoutMenu } from '../../services';
|
|
3
|
-
import { MenuPipe } from '../../pipes';
|
|
4
|
-
import { ISdLayoutConfiguration, ISdSidebarConfiguration } from '../../configurations';
|
|
5
2
|
import * as i0 from "@angular/core";
|
|
6
|
-
export declare class SdLayoutComponent
|
|
7
|
-
private
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
sidebarConfiguration: ISdSidebarConfiguration;
|
|
13
|
-
ngOnInit(): Promise<void>;
|
|
3
|
+
export declare class SdLayoutComponent {
|
|
4
|
+
#private;
|
|
5
|
+
menusInput: import("@angular/core").InputSignal<SdLayoutMenu[]>;
|
|
6
|
+
menus: import("@angular/core").Signal<SdLayoutMenu[]>;
|
|
7
|
+
userInfo: import("@angular/core").WritableSignal<import("@sd-angular/core/modules/layout").SdLayoutUserInfo | undefined>;
|
|
8
|
+
sidebar: import("@angular/core").WritableSignal<import("@sd-angular/core/modules/layout").SidebarConfigurationV1 | undefined>;
|
|
14
9
|
static ɵfac: i0.ɵɵFactoryDeclaration<SdLayoutComponent, never>;
|
|
15
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<SdLayoutComponent, "sd-layout", never, { "
|
|
10
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<SdLayoutComponent, "sd-layout", never, { "menusInput": { "alias": "menus"; "required": false; "isSignal": true; }; }, {}, never, ["*"], true, never>;
|
|
16
11
|
}
|
|
@@ -1,38 +1,31 @@
|
|
|
1
1
|
import { NestedTreeControl } from '@angular/cdk/tree';
|
|
2
|
-
import { Params, Router } from '@angular/router';
|
|
3
2
|
import { MatTreeNestedDataSource } from '@angular/material/tree';
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import { ISdLayoutConfiguration, ISidebarConfigurationV1 } from '../../../../configurations';
|
|
3
|
+
import { Params } from '@angular/router';
|
|
4
|
+
import { SdLayoutUserInfo, SidebarConfigurationV1 } from '../../../../configurations';
|
|
5
|
+
import { SdLayoutMenu } from '../../../../services';
|
|
8
6
|
import * as i0 from "@angular/core";
|
|
9
|
-
export declare class
|
|
7
|
+
export declare class SidebarComponent {
|
|
10
8
|
#private;
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
popupUserMenuOpened: EventEmitter<void>;
|
|
20
|
-
showSideBar: EventEmitter<boolean | null>;
|
|
21
|
-
menusOrigin: SdLayoutMenu[];
|
|
9
|
+
isShowSidebar: import("@angular/core").InputSignal<boolean>;
|
|
10
|
+
menus: import("@angular/core").InputSignal<SdLayoutMenu[]>;
|
|
11
|
+
userInfo: import("@angular/core").InputSignal<SdLayoutUserInfo>;
|
|
12
|
+
sidebar: import("@angular/core").InputSignal<SidebarConfigurationV1>;
|
|
13
|
+
expandSideBar: import("@angular/core").OutputEmitterRef<void>;
|
|
14
|
+
popupUserMenuClosed: import("@angular/core").OutputEmitterRef<void>;
|
|
15
|
+
popupUserMenuOpened: import("@angular/core").OutputEmitterRef<void>;
|
|
16
|
+
showSideBar: import("@angular/core").OutputEmitterRef<boolean | null>;
|
|
22
17
|
screenHeight: number;
|
|
23
|
-
searchText: string;
|
|
24
|
-
isMenuLock: boolean;
|
|
25
|
-
currentPath: string;
|
|
26
|
-
titleMenuGroup: string | undefined;
|
|
27
18
|
isMobileOrTablet: boolean;
|
|
28
|
-
|
|
19
|
+
isMenuLock: import("@angular/core").WritableSignal<boolean>;
|
|
20
|
+
currentPath: import("@angular/core").WritableSignal<string>;
|
|
21
|
+
searchText: import("@angular/core").WritableSignal<string>;
|
|
22
|
+
titleMenuGroup: import("@angular/core").WritableSignal<string | undefined>;
|
|
23
|
+
idMenuGroupActive: import("@angular/core").WritableSignal<string | undefined>;
|
|
24
|
+
menusByGroup: import("@angular/core").WritableSignal<SdLayoutMenu[]>;
|
|
25
|
+
totalMenuInMenusByGroup: import("@angular/core").Signal<number>;
|
|
29
26
|
dataSource: MatTreeNestedDataSource<SdLayoutMenu>;
|
|
30
|
-
idMenuGroupActive: string | undefined;
|
|
31
|
-
menusByGroup: SdLayoutMenu[];
|
|
32
27
|
treeControl: NestedTreeControl<SdLayoutMenu, SdLayoutMenu>;
|
|
33
|
-
constructor(
|
|
34
|
-
ngOnInit(): Promise<void>;
|
|
35
|
-
ngOnDestroy(): void;
|
|
28
|
+
constructor();
|
|
36
29
|
hasChild: (_: number, node: SdLayoutMenu) => boolean;
|
|
37
30
|
onToggleMenuNode: (menu: SdLayoutMenu) => void;
|
|
38
31
|
toggleMenuLock(event: Event): void;
|
|
@@ -50,6 +43,6 @@ export declare class LayoutSidebarComponent implements OnDestroy, OnInit {
|
|
|
50
43
|
onMouseLeaveMenuGroupNode: (event: MouseEvent, menuNode: SdLayoutMenu) => void;
|
|
51
44
|
onMouseOverMenuNode: (event: MouseEvent, menuItem: SdLayoutMenu) => void;
|
|
52
45
|
onMouseLeaveMenuNode: (event: MouseEvent, menuItem: SdLayoutMenu) => void;
|
|
53
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<
|
|
54
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<
|
|
46
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<SidebarComponent, never>;
|
|
47
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<SidebarComponent, "sidebar", never, { "isShowSidebar": { "alias": "isShowSidebar"; "required": true; "isSignal": true; }; "menus": { "alias": "menus"; "required": true; "isSignal": true; }; "userInfo": { "alias": "userInfo"; "required": true; "isSignal": true; }; "sidebar": { "alias": "sidebar"; "required": true; "isSignal": true; }; }, { "expandSideBar": "expandSideBar"; "popupUserMenuClosed": "popupUserMenuClosed"; "popupUserMenuOpened": "popupUserMenuOpened"; "showSideBar": "showSideBar"; }, never, never, true, never>;
|
|
55
48
|
}
|
|
@@ -1,22 +1,16 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { SdLayoutStorageService } from '../../../../services';
|
|
3
|
-
import { ISdLayoutConfiguration } from '../../../../configurations';
|
|
1
|
+
import { SdLayoutUserInfo } from '../../../../configurations';
|
|
4
2
|
import * as i0 from "@angular/core";
|
|
5
3
|
export declare class LayoutUserComponent {
|
|
6
|
-
private
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
menuClosed:
|
|
12
|
-
menuOpened:
|
|
13
|
-
toggleMenuLock:
|
|
14
|
-
email: string;
|
|
15
|
-
username: string;
|
|
16
|
-
fullName: string;
|
|
4
|
+
#private;
|
|
5
|
+
isMobileOrTablet: import("@angular/core").InputSignal<boolean>;
|
|
6
|
+
isMenuLock: import("@angular/core").InputSignal<boolean>;
|
|
7
|
+
isShowSidebar: import("@angular/core").InputSignal<boolean>;
|
|
8
|
+
userInfo: import("@angular/core").InputSignal<SdLayoutUserInfo>;
|
|
9
|
+
menuClosed: import("@angular/core").OutputEmitterRef<void>;
|
|
10
|
+
menuOpened: import("@angular/core").OutputEmitterRef<void>;
|
|
11
|
+
toggleMenuLock: import("@angular/core").OutputEmitterRef<Event>;
|
|
17
12
|
singoutLayoutConfig: () => void | Promise<void>;
|
|
18
|
-
changePasswordLayoutConfig
|
|
19
|
-
constructor(layoutConfig: ISdLayoutConfiguration, layoutStorageService: SdLayoutStorageService);
|
|
13
|
+
changePasswordLayoutConfig: (() => void | Promise<void>) | undefined;
|
|
20
14
|
onMenuOpened: () => void;
|
|
21
15
|
onMenuClosed: () => void;
|
|
22
16
|
keepOpenWhenClickInsideMenu: (event: Event) => void;
|
|
@@ -24,5 +18,5 @@ export declare class LayoutUserComponent {
|
|
|
24
18
|
changePassword: () => void;
|
|
25
19
|
onToggleMenuLock: (event: Event) => void;
|
|
26
20
|
static ɵfac: i0.ɵɵFactoryDeclaration<LayoutUserComponent, never>;
|
|
27
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<LayoutUserComponent, "lib-layout-user", never, { "isMobileOrTablet": { "alias": "isMobileOrTablet"; "required": false; }; "isMenuLock": { "alias": "isMenuLock"; "required": false; }; "isShowSidebar": { "alias": "isShowSidebar"; "required": false; }; }, { "menuClosed": "menuClosed"; "menuOpened": "menuOpened"; "toggleMenuLock": "toggleMenuLock"; }, never, never, true, never>;
|
|
21
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<LayoutUserComponent, "lib-layout-user", never, { "isMobileOrTablet": { "alias": "isMobileOrTablet"; "required": false; "isSignal": true; }; "isMenuLock": { "alias": "isMenuLock"; "required": false; "isSignal": true; }; "isShowSidebar": { "alias": "isShowSidebar"; "required": false; "isSignal": true; }; "userInfo": { "alias": "userInfo"; "required": true; "isSignal": true; }; }, { "menuClosed": "menuClosed"; "menuOpened": "menuOpened"; "toggleMenuLock": "toggleMenuLock"; }, never, never, true, never>;
|
|
28
22
|
}
|
|
@@ -1,24 +1,24 @@
|
|
|
1
1
|
import { MatSidenav } from '@angular/material/sidenav';
|
|
2
|
-
import {
|
|
2
|
+
import { SdLayoutUserInfo, SidebarConfigurationV1 } from '../../configurations';
|
|
3
|
+
import { SdLayoutMenu } from '../../services';
|
|
3
4
|
import * as i0 from "@angular/core";
|
|
4
|
-
export declare class
|
|
5
|
+
export declare class SidebarV1Component {
|
|
5
6
|
#private;
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
isMenuLock: boolean
|
|
12
|
-
isShowSidebar: boolean
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
timerMouseOutMenu: ReturnType<typeof setTimeout> | null;
|
|
7
|
+
sidenav: import("@angular/core").Signal<MatSidenav>;
|
|
8
|
+
menus: import("@angular/core").InputSignal<SdLayoutMenu[]>;
|
|
9
|
+
userInfo: import("@angular/core").InputSignal<SdLayoutUserInfo>;
|
|
10
|
+
sidebar: import("@angular/core").InputSignal<SidebarConfigurationV1>;
|
|
11
|
+
isMobileOrTablet: import("@angular/core").WritableSignal<boolean>;
|
|
12
|
+
isMenuLock: import("@angular/core").WritableSignal<boolean>;
|
|
13
|
+
isShowSidebar: import("@angular/core").WritableSignal<boolean>;
|
|
14
|
+
onhover: import("@angular/core").WritableSignal<boolean>;
|
|
15
|
+
constructor();
|
|
16
16
|
openSidebar: () => void;
|
|
17
17
|
onPopupOfSideBarOpened: () => void;
|
|
18
18
|
onPopupOfSideBarClosed: () => void;
|
|
19
19
|
onExpandSideBar: () => void;
|
|
20
20
|
onMouseleaveSideBar: () => void;
|
|
21
21
|
onToggle: (data: boolean | null) => void;
|
|
22
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<
|
|
23
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<
|
|
22
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<SidebarV1Component, never>;
|
|
23
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<SidebarV1Component, "sidebar-v1", never, { "menus": { "alias": "menus"; "required": false; "isSignal": true; }; "userInfo": { "alias": "userInfo"; "required": true; "isSignal": true; }; "sidebar": { "alias": "sidebar"; "required": true; "isSignal": true; }; }, {}, never, ["*"], true, never>;
|
|
24
24
|
}
|
|
@@ -1,16 +1,59 @@
|
|
|
1
1
|
import { InjectionToken } from '@angular/core';
|
|
2
|
+
import { SdMaybeAsync } from '@sd-angular/core/utilities/models';
|
|
2
3
|
export interface ISdLayoutConfiguration {
|
|
3
4
|
homeUrl?: string;
|
|
4
|
-
sidebar: ISdSidebarConfiguration | (() =>
|
|
5
|
+
sidebar: ISdSidebarConfiguration | (() => SdMaybeAsync<ISdSidebarConfiguration>);
|
|
6
|
+
userInfo: SdLayoutUserInfo | (() => SdMaybeAsync<SdLayoutUserInfo>);
|
|
5
7
|
signout: () => void | Promise<void>;
|
|
6
8
|
changePassword?: () => void | Promise<void>;
|
|
7
9
|
}
|
|
8
|
-
export
|
|
9
|
-
|
|
10
|
+
export interface SdLayoutUserInfo {
|
|
11
|
+
/**
|
|
12
|
+
* Tên đăng nhập hoặc tên định danh của người dùng.
|
|
13
|
+
* Thường dùng làm định danh rút gọn hoặc fallback hiển thị nếu user chưa cập nhật fullName.
|
|
14
|
+
*/
|
|
15
|
+
username?: string;
|
|
16
|
+
/**
|
|
17
|
+
* Địa chỉ thư điện tử của người dùng.
|
|
18
|
+
* Thường được hiển thị bên dưới tên người dùng trong popup/menu thông tin tài khoản.
|
|
19
|
+
*/
|
|
20
|
+
email?: string;
|
|
21
|
+
/**
|
|
22
|
+
* Họ và tên đầy đủ của người dùng.
|
|
23
|
+
* Đây là thông tin được ưu tiên hiển thị chính trên giao diện (VD: góc phải màn hình, lời chào).
|
|
24
|
+
*/
|
|
25
|
+
fullName?: string;
|
|
26
|
+
/**
|
|
27
|
+
* Hình đại diện (avatar) của người dùng.
|
|
28
|
+
* Nếu để trống, hệ thống sẽ tự động lấy ký tự đầu tiên của fullName hoặc username để tạo avatar mặc định.
|
|
29
|
+
* Hỗ trợ các định dạng: URL (http/https), chuỗi base64 (data:image), hoặc đường dẫn nội bộ.
|
|
30
|
+
*/
|
|
31
|
+
avatar?: string;
|
|
32
|
+
}
|
|
33
|
+
export type ISdSidebarConfiguration = SidebarConfigurationV1;
|
|
34
|
+
export interface SidebarConfigurationV1 {
|
|
10
35
|
version: 1;
|
|
36
|
+
/**
|
|
37
|
+
* Màu brand chính.
|
|
38
|
+
* Nên sử dụng mã màu #HEX hoặc rgb để hỗ trợ opacity khi hover.
|
|
39
|
+
* Ví dụ: #1890ff, rgb(24,144,255)
|
|
40
|
+
*/
|
|
11
41
|
brandColor?: string;
|
|
42
|
+
/**
|
|
43
|
+
* Màu brand nhạt (light).
|
|
44
|
+
* Dùng cho background, hover nhẹ.
|
|
45
|
+
*/
|
|
12
46
|
brandLightColor?: string;
|
|
47
|
+
/**
|
|
48
|
+
* URL logo hiển thị ở sidebar.
|
|
49
|
+
* Nên đặt trong thư mục public hoặc dùng URL CDN.
|
|
50
|
+
*/
|
|
13
51
|
logoUrl?: string;
|
|
52
|
+
/**
|
|
53
|
+
* Title mặc định của hệ thống.
|
|
54
|
+
* Nếu menu không truyền title thì sẽ dùng giá trị này.
|
|
55
|
+
* @default "Back Office"
|
|
56
|
+
*/
|
|
14
57
|
defaultTitle?: string;
|
|
15
58
|
}
|
|
16
59
|
export declare const SD_LAYOUT_CONFIGURATION: InjectionToken<ISdLayoutConfiguration>;
|
|
@@ -1,14 +1,9 @@
|
|
|
1
|
-
import { ActivatedRoute } from '@angular/router';
|
|
2
|
-
import { SdLayoutStorageService } from '../../../../services';
|
|
3
1
|
import * as i0 from "@angular/core";
|
|
4
2
|
export declare class RootComponent {
|
|
5
3
|
#private;
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
email: string;
|
|
10
|
-
constructor(route: ActivatedRoute, layoutStorageService: SdLayoutStorageService);
|
|
11
|
-
todayInfo: string;
|
|
4
|
+
readonly url: import("@angular/core").WritableSignal<string>;
|
|
5
|
+
readonly todayInfo: import("@angular/core").WritableSignal<string>;
|
|
6
|
+
userInfo: import("@angular/core").WritableSignal<import("@sd-angular/core/modules/layout").SdLayoutUserInfo | undefined>;
|
|
12
7
|
reload(): void;
|
|
13
8
|
static ɵfac: i0.ɵɵFactoryDeclaration<RootComponent, never>;
|
|
14
9
|
static ɵcmp: i0.ɵɵComponentDeclaration<RootComponent, "ng-component", never, {}, {}, never, never, true, never>;
|
|
@@ -1,11 +1,8 @@
|
|
|
1
|
-
import { SdLayoutStorageService } from '../../../../services';
|
|
2
1
|
import * as i0 from "@angular/core";
|
|
3
2
|
export declare class HomePageComponent {
|
|
4
3
|
#private;
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
constructor(layoutStorageService: SdLayoutStorageService);
|
|
8
|
-
todayInfo: string;
|
|
4
|
+
readonly todayInfo: import("@angular/core").WritableSignal<string>;
|
|
5
|
+
userInfo: import("@angular/core").WritableSignal<import("@sd-angular/core/modules/layout").SdLayoutUserInfo | undefined>;
|
|
9
6
|
static ɵfac: i0.ɵɵFactoryDeclaration<HomePageComponent, never>;
|
|
10
7
|
static ɵcmp: i0.ɵɵComponentDeclaration<HomePageComponent, "app-home-page", never, {}, {}, never, never, true, never>;
|
|
11
8
|
}
|
|
@@ -1,14 +1,9 @@
|
|
|
1
|
-
import { ActivatedRoute } from '@angular/router';
|
|
2
|
-
import { SdLayoutStorageService } from '../../../../services';
|
|
3
1
|
import * as i0 from "@angular/core";
|
|
4
2
|
export declare class RootComponent {
|
|
5
3
|
#private;
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
email: string;
|
|
10
|
-
constructor(route: ActivatedRoute, layoutStorageService: SdLayoutStorageService);
|
|
11
|
-
todayInfo: string;
|
|
4
|
+
readonly url: import("@angular/core").WritableSignal<string>;
|
|
5
|
+
readonly todayInfo: import("@angular/core").WritableSignal<string>;
|
|
6
|
+
userInfo: import("@angular/core").WritableSignal<import("@sd-angular/core/modules/layout").SdLayoutUserInfo | undefined>;
|
|
12
7
|
reload(): void;
|
|
13
8
|
static ɵfac: i0.ɵɵFactoryDeclaration<RootComponent, never>;
|
|
14
9
|
static ɵcmp: i0.ɵɵComponentDeclaration<RootComponent, "ng-component", never, {}, {}, never, never, true, never>;
|