@sd-angular/core 19.0.0-beta.3 → 19.0.0-beta.5
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/components/document-builder/src/document-builder.component.d.ts +7 -6
- package/components/document-builder/src/document-builder.config.d.ts +21 -0
- package/components/document-builder/src/document-builder.model.d.ts +1 -0
- package/components/document-builder/src/document-builder.utils.d.ts +10 -0
- package/components/document-builder/src/plugins/heading/heading.plugin.d.ts +4 -0
- package/components/document-builder/src/plugins/{image-upload.plugin.d.ts → image-upload/image-upload.plugin.d.ts} +0 -4
- package/components/document-builder/src/plugins/index.d.ts +6 -5
- package/components/table/src/models/table-item.model.d.ts +2 -1
- package/fesm2022/sd-angular-core-components-document-builder.mjs +541 -422
- package/fesm2022/sd-angular-core-components-document-builder.mjs.map +1 -1
- package/fesm2022/sd-angular-core-components-table.mjs +138 -72
- package/fesm2022/sd-angular-core-components-table.mjs.map +1 -1
- package/fesm2022/sd-angular-core-components-workflow.mjs +23 -23
- package/fesm2022/sd-angular-core-components-workflow.mjs.map +1 -1
- package/fesm2022/sd-angular-core-forms-autocomplete.mjs +24 -2
- package/fesm2022/sd-angular-core-forms-autocomplete.mjs.map +1 -1
- package/fesm2022/sd-angular-core-forms-date.mjs +15 -3
- package/fesm2022/sd-angular-core-forms-date.mjs.map +1 -1
- package/fesm2022/sd-angular-core-forms-datetime.mjs +17 -3
- package/fesm2022/sd-angular-core-forms-datetime.mjs.map +1 -1
- package/fesm2022/sd-angular-core-forms-input-number.mjs +18 -3
- package/fesm2022/sd-angular-core-forms-input-number.mjs.map +1 -1
- package/fesm2022/sd-angular-core-forms-input.mjs +20 -6
- package/fesm2022/sd-angular-core-forms-input.mjs.map +1 -1
- package/fesm2022/sd-angular-core-forms-radio.mjs +17 -2
- package/fesm2022/sd-angular-core-forms-radio.mjs.map +1 -1
- package/fesm2022/sd-angular-core-forms-select.mjs +15 -2
- package/fesm2022/sd-angular-core-forms-select.mjs.map +1 -1
- package/fesm2022/sd-angular-core-forms-textarea.mjs +21 -2
- package/fesm2022/sd-angular-core-forms-textarea.mjs.map +1 -1
- package/fesm2022/sd-angular-core-modules-auth.mjs +5 -5
- package/fesm2022/sd-angular-core-modules-auth.mjs.map +1 -1
- package/fesm2022/sd-angular-core-modules-layout.mjs +1 -1
- package/fesm2022/sd-angular-core-modules-layout.mjs.map +1 -1
- package/fesm2022/sd-angular-core-pipes.mjs +21 -1
- package/fesm2022/sd-angular-core-pipes.mjs.map +1 -1
- package/fesm2022/sd-angular-core-services-confirm.mjs +1 -1
- package/fesm2022/sd-angular-core-services-confirm.mjs.map +1 -1
- package/fesm2022/sd-angular-core-utilities-extensions.mjs +66 -1
- package/fesm2022/sd-angular-core-utilities-extensions.mjs.map +1 -1
- package/fesm2022/sd-angular-core-utilities-models.mjs +2 -2
- package/fesm2022/sd-angular-core-utilities-models.mjs.map +1 -1
- package/forms/autocomplete/src/autocomplete.component.d.ts +5 -1
- package/forms/date/src/date.component.d.ts +4 -1
- package/forms/datetime/src/datetime.component.d.ts +4 -1
- package/forms/input/src/input.component.d.ts +6 -4
- package/forms/input-number/src/input-number.component.d.ts +4 -1
- package/forms/radio/src/radio.component.d.ts +5 -1
- package/forms/select/src/select.component.d.ts +5 -1
- package/forms/textarea/src/textarea.component.d.ts +3 -1
- package/modules/auth/guards/portal.guard.d.ts +3 -3
- package/package.json +56 -56
- package/pipes/index.d.ts +1 -0
- package/pipes/src/empty.pipe.d.ts +7 -0
- package/utilities/extensions/index.d.ts +1 -0
- package/utilities/extensions/src/color.extension.d.ts +20 -0
- package/utilities/models/src/pattern.model.d.ts +2 -2
- /package/components/document-builder/src/plugins/{comment.plugin.d.ts → comment/comment.plugin.d.ts} +0 -0
- /package/components/document-builder/src/plugins/{page-orientation.plugin.d.ts → page-orientation/page-orientation.plugin.d.ts} +0 -0
- /package/components/document-builder/src/plugins/{table-fit.plugin.d.ts → table-fit/table-fit.plugin.d.ts} +0 -0
- /package/components/document-builder/src/plugins/{variable.plugin.d.ts → variable/variable.plugin.d.ts} +0 -0
|
@@ -7,23 +7,20 @@ export declare class SdDocumentBuilder {
|
|
|
7
7
|
option: SdDocumentBuilderOption;
|
|
8
8
|
disabled: boolean;
|
|
9
9
|
set _disabled(val: boolean | '' | undefined | null);
|
|
10
|
+
contentChange: EventEmitter<string>;
|
|
10
11
|
Editor: typeof ClassicEditor;
|
|
11
12
|
config: SdEditorConfig;
|
|
12
|
-
contentChange: EventEmitter<string>;
|
|
13
13
|
ngOnInit(): void;
|
|
14
14
|
ngOnDestroy(): void;
|
|
15
15
|
onReady(editor: ClassicEditor): void;
|
|
16
|
-
scrollToComment: (markerId: string) => void;
|
|
17
16
|
setContent: (html: string) => void;
|
|
18
17
|
getContent: () => string;
|
|
19
18
|
setOrientation: (orientation: "PORTRAIT" | "LANDSCAPE") => void;
|
|
20
19
|
getOrientation: () => "PORTRAIT" | "LANDSCAPE";
|
|
21
|
-
getVariables: () => SdDocumentBuilderVariable[];
|
|
22
|
-
getComments(): SdDocumentBuilderComment[];
|
|
23
20
|
scrollToTop(): void;
|
|
24
21
|
heading: {
|
|
25
|
-
|
|
26
|
-
|
|
22
|
+
all: () => SdDocumentBuilderHeading[];
|
|
23
|
+
scroll: (id: string) => void;
|
|
27
24
|
};
|
|
28
25
|
comment: {
|
|
29
26
|
/**
|
|
@@ -63,6 +60,10 @@ export declare class SdDocumentBuilder {
|
|
|
63
60
|
*/
|
|
64
61
|
scroll: (markerId: string) => void;
|
|
65
62
|
};
|
|
63
|
+
variable: {
|
|
64
|
+
all: () => SdDocumentBuilderVariable[];
|
|
65
|
+
scroll: (uuid: string) => void;
|
|
66
|
+
};
|
|
66
67
|
/**
|
|
67
68
|
* Xuất file Word có Header/Footer
|
|
68
69
|
* @param fileName Tên file
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Cấu hình màu cho Document Builder
|
|
3
|
+
* Bảng màu tập trung và cấu hình cho việc lựa chọn màu nhất quán
|
|
4
|
+
*/
|
|
5
|
+
import { ColorPickerConfig, FontColorConfig, FontSizeConfig, HeadingConfig } from 'ckeditor5';
|
|
6
|
+
/**
|
|
7
|
+
* Trả về bảng màu chung được sử dụng trong tất cả tính năng của document builder
|
|
8
|
+
* @returns Mảng các tùy chọn màu được định sẵn với giá trị hex và label
|
|
9
|
+
*/
|
|
10
|
+
export declare function getPresetColors(): FontColorConfig['colors'];
|
|
11
|
+
/**
|
|
12
|
+
* Trả về cấu hình bộ chọn màu với định dạng hex
|
|
13
|
+
* @returns Đối tượng cấu hình bộ chọn màu
|
|
14
|
+
*/
|
|
15
|
+
export declare function getColorPickerConfig(): ColorPickerConfig;
|
|
16
|
+
/**
|
|
17
|
+
* Trả về cấu hình kích thước font cho document builder
|
|
18
|
+
* @returns Mảng các tùy chọn kích thước font được định sẵn
|
|
19
|
+
*/
|
|
20
|
+
export declare function getFontSizeOptions(): FontSizeConfig['options'];
|
|
21
|
+
export declare function getHeadingOptions(): HeadingConfig['options'];
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Document Builder Utilities
|
|
3
|
+
* Các hàm tiện ích cho document builder
|
|
4
|
+
*/
|
|
5
|
+
/**
|
|
6
|
+
* Chuẩn hóa nội dung bằng cách chuyển đổi tất cả màu HSL và RGB sang hex
|
|
7
|
+
* @param content - Nội dung HTML cần chuẩn hóa
|
|
8
|
+
* @returns Nội dung đã được chuẩn hóa với màu hex
|
|
9
|
+
*/
|
|
10
|
+
export declare function normalize(content: string): string;
|
|
@@ -1,8 +1,4 @@
|
|
|
1
1
|
import { Plugin } from 'ckeditor5';
|
|
2
|
-
/**
|
|
3
|
-
* Custom base64 upload adapter plugin for CKEditor 5.
|
|
4
|
-
* Converts uploaded images to base64 data URLs instead of uploading to a server.
|
|
5
|
-
*/
|
|
6
2
|
export declare class ImageUploadPlugin extends Plugin {
|
|
7
3
|
static get pluginName(): "ImageUploadPlugin";
|
|
8
4
|
init(): void;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
export * from './
|
|
2
|
-
export * from './comment.plugin';
|
|
3
|
-
export * from './variable.plugin';
|
|
4
|
-
export * from './table-fit.plugin';
|
|
5
|
-
export * from './image-upload.plugin';
|
|
1
|
+
export * from './heading/heading.plugin';
|
|
2
|
+
export * from './comment/comment.plugin';
|
|
3
|
+
export * from './variable/variable.plugin';
|
|
4
|
+
export * from './table-fit/table-fit.plugin';
|
|
5
|
+
export * from './image-upload/image-upload.plugin';
|
|
6
|
+
export * from './page-orientation/page-orientation.plugin';
|
|
@@ -14,7 +14,8 @@ export interface SdTableDisplay {
|
|
|
14
14
|
badge?: {
|
|
15
15
|
type: SdBadge['type'] | undefined | null;
|
|
16
16
|
color: SdBadge['color'] | undefined | null;
|
|
17
|
-
icon
|
|
17
|
+
icon?: string | undefined | null;
|
|
18
|
+
title?: string | number | null | undefined;
|
|
18
19
|
};
|
|
19
20
|
cellStyle?: Record<string, string>;
|
|
20
21
|
data: string | number | undefined | null;
|