@sd-angular/core 19.0.0-beta.95 → 19.0.0-beta.96
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 +8 -9
- package/components/badge/src/badge.component.d.ts +3 -4
- package/components/button/src/button.component.d.ts +2 -2
- package/components/index.d.ts +0 -2
- package/components/modal/src/modal.component.d.ts +1 -2
- package/components/section/src/section.component.d.ts +1 -2
- package/components/table/src/components/column-filter/column-filter.component.d.ts +3 -3
- package/fesm2022/sd-angular-core-components-form-generic.mjs +4 -4
- package/fesm2022/sd-angular-core-components-form-generic.mjs.map +1 -1
- package/fesm2022/sd-angular-core-components-tab-router.mjs +29 -24
- package/fesm2022/sd-angular-core-components-tab-router.mjs.map +1 -1
- package/fesm2022/sd-angular-core-components.mjs +0 -2
- package/fesm2022/sd-angular-core-components.mjs.map +1 -1
- package/fesm2022/sd-angular-core-forms-input.mjs +20 -5
- package/fesm2022/sd-angular-core-forms-input.mjs.map +1 -1
- package/fesm2022/sd-angular-core-i18n.mjs +35 -0
- package/fesm2022/sd-angular-core-i18n.mjs.map +1 -1
- package/fesm2022/sd-angular-core-models.mjs +1 -4
- package/fesm2022/sd-angular-core-models.mjs.map +1 -1
- package/fesm2022/sd-angular-core-services-notify.mjs +21 -21
- package/fesm2022/sd-angular-core-services-notify.mjs.map +1 -1
- package/fesm2022/sd-angular-core-utilities-extensions.mjs +29 -819
- package/fesm2022/sd-angular-core-utilities-extensions.mjs.map +1 -1
- package/fesm2022/sd-angular-core-utilities-models.mjs +36 -136
- package/fesm2022/sd-angular-core-utilities-models.mjs.map +1 -1
- package/forms/autocomplete/src/autocomplete.component.d.ts +1 -2
- package/forms/chip/src/chip.component.d.ts +1 -2
- package/forms/chip-calendar/src/chip-calendar.component.d.ts +1 -2
- package/forms/date/src/date.component.d.ts +1 -2
- package/forms/date-range/src/date-range.component.d.ts +1 -2
- package/forms/datetime/src/datetime.component.d.ts +1 -2
- package/forms/input/src/input.component.d.ts +1 -2
- package/forms/input-number/src/input-number.component.d.ts +1 -2
- package/forms/select/src/select.component.d.ts +5 -5
- package/forms/textarea/src/textarea.component.d.ts +1 -2
- package/i18n/src/en.d.ts +6 -0
- package/models/src/language.model.d.ts +2 -4
- package/package.json +75 -86
- package/sd-angular-core-19.0.0-beta.96.tgz +0 -0
- package/services/notify/index.d.ts +1 -1
- package/services/notify/src/components/toast/toast.component.d.ts +3 -3
- package/services/notify/src/components/toast-container.component.d.ts +3 -4
- package/services/notify/src/notify.model.d.ts +1 -1
- package/services/notify/src/notify.service.d.ts +5 -5
- package/utilities/extensions/src/array.extension.d.ts +1 -7
- package/utilities/extensions/src/color.extension.d.ts +5 -20
- package/utilities/extensions/src/date.extension.d.ts +1 -18
- package/utilities/extensions/src/number.extension.d.ts +1 -10
- package/utilities/extensions/src/string.extension.d.ts +30 -4
- package/utilities/extensions/src/utility.extension.d.ts +6 -0
- package/utilities/models/src/color.model.d.ts +4 -1
- package/utilities/models/src/empty.model.d.ts +3 -0
- package/utilities/models/src/filter.model.d.ts +12 -24
- package/utilities/models/src/maybe-async.model.d.ts +10 -4
- package/utilities/models/src/nested-key-of.model.d.ts +4 -5
- package/utilities/models/src/operator.model.d.ts +9 -4
- package/utilities/models/src/order.model.d.ts +4 -5
- package/utilities/models/src/paging.model.d.ts +8 -16
- package/utilities/models/src/pattern.model.d.ts +13 -0
- package/utilities/models/src/size.model.d.ts +4 -1
- package/components/anchor-v2/index.d.ts +0 -1
- package/components/anchor-v2/src/components/anchor-item-v2/anchor-item-v2.component.d.ts +0 -12
- package/components/anchor-v2/src/components/anchor-v2/anchor-v2.component.d.ts +0 -19
- package/components/anchor-v2/src/components/anchor-vertical-v2/anchor-vertical-list-v2.component.d.ts +0 -16
- package/components/anchor-v2/src/components/index.d.ts +0 -2
- package/components/anchor-v2/src/index.d.ts +0 -2
- package/components/anchor-v2/src/models/index.d.ts +0 -1
- package/components/anchor-v2/src/models/sd-anchor-v2.model.d.ts +0 -7
- package/components/workflow/index.d.ts +0 -2
- package/components/workflow/src/configurations/index.d.ts +0 -1
- package/components/workflow/src/configurations/workflow.configuration.d.ts +0 -10
- package/fesm2022/sd-angular-core-components-anchor-v2.mjs +0 -151
- package/fesm2022/sd-angular-core-components-anchor-v2.mjs.map +0 -1
- package/fesm2022/sd-angular-core-components-workflow.mjs +0 -17
- package/fesm2022/sd-angular-core-components-workflow.mjs.map +0 -1
- package/fesm2022/sd-angular-core-services-firebase.mjs +0 -38
- package/fesm2022/sd-angular-core-services-firebase.mjs.map +0 -1
- package/sd-angular-core-19.0.0-beta.95.tgz +0 -0
- package/services/firebase/index.d.ts +0 -2
- package/services/firebase/src/firebase.model.d.ts +0 -8
- package/services/firebase/src/firebase.service.d.ts +0 -14
package/README.md
CHANGED
|
@@ -189,7 +189,7 @@ import { SdButton } from '@sd-angular/core/components/button';
|
|
|
189
189
|
| Input | Type | Default | Description |
|
|
190
190
|
|---|---|---|---|
|
|
191
191
|
| `type` | `'fill' \| 'light' \| 'outline' \| 'link'` | `'light'` | Kiểu nút |
|
|
192
|
-
| `color` | `
|
|
192
|
+
| `color` | `Color` | `'secondary'` | Màu sắc |
|
|
193
193
|
| `size` | `'sm' \| 'md' \| 'lg'` | `'sm'` | Kích thước |
|
|
194
194
|
| `title` | `string` | — | Nhãn nút |
|
|
195
195
|
| `prefixIcon` | `string` | — | Icon Material trước text |
|
|
@@ -221,10 +221,10 @@ import { SdBadge } from '@sd-angular/core/components/badge';
|
|
|
221
221
|
| Input | Type | Default | Description |
|
|
222
222
|
|---|---|---|---|
|
|
223
223
|
| `type` | `'tag' \| 'round' \| 'icon'` | `'icon'` | Kiểu badge |
|
|
224
|
-
| `color` | `
|
|
224
|
+
| `color` | `Color` | `'secondary'` | Màu sắc |
|
|
225
225
|
| `title` | `string \| number` | — | Nội dung hiển thị |
|
|
226
226
|
| `icon` | `string` | — | Icon Material |
|
|
227
|
-
| `size` | `
|
|
227
|
+
| `size` | `Size` | `'sm'` | Kích thước |
|
|
228
228
|
| `tooltip` | `string` | — | Tooltip |
|
|
229
229
|
|
|
230
230
|
Shorthand color inputs (boolean): `primary`, `secondary`, `success`, `info`, `warning`, `error`.
|
|
@@ -250,7 +250,7 @@ import { SdSection } from '@sd-angular/core/components/section';
|
|
|
250
250
|
| `title` | `string` | *required* | Tiêu đề section |
|
|
251
251
|
| `subTitle` | `string` | — | Tiêu đề phụ |
|
|
252
252
|
| `icon` | `string` | — | Icon Material |
|
|
253
|
-
| `iconColor` | `
|
|
253
|
+
| `iconColor` | `Color` | `'primary'` | Màu icon |
|
|
254
254
|
| `collapsable` | `boolean` | `false` | Cho phép thu gọn |
|
|
255
255
|
| `collapsed` | `boolean` | `false` | Trạng thái ban đầu thu gọn |
|
|
256
256
|
| `hideHeader` | `boolean` | `false` | Ẩn phần header |
|
|
@@ -278,7 +278,7 @@ import { SdModal } from '@sd-angular/core/components/modal';
|
|
|
278
278
|
| Input | Type | Default | Description |
|
|
279
279
|
|---|---|---|---|
|
|
280
280
|
| `title` | `string` | — | Tiêu đề modal |
|
|
281
|
-
| `color` | `
|
|
281
|
+
| `color` | `Color` | `'primary'` | Màu header |
|
|
282
282
|
| `width` | `'sx' \| 'sm' \| 'md' \| 'lg' \| string` | `'md'` | Độ rộng (md = 60vw) |
|
|
283
283
|
| `height` | `string` | `'auto'` | Chiều cao |
|
|
284
284
|
| `view` | `'dialog' \| 'bottom-sheet'` | auto | Tự động bottom-sheet trên mobile |
|
|
@@ -406,7 +406,6 @@ import { SdAvatar } from '@sd-angular/core/components/avatar';
|
|
|
406
406
|
| `SdHistory` | `@sd-angular/core/components/history` | Lịch sử thay đổi |
|
|
407
407
|
| `SdImportExcel` | `@sd-angular/core/components/import-excel` | Wizard import Excel |
|
|
408
408
|
| `SdQueryBuilder` | `@sd-angular/core/components/query-builder` | Visual query builder |
|
|
409
|
-
| `SdWorkflow` | `@sd-angular/core/components/workflow` | Workflow builder |
|
|
410
409
|
| `SdCodeEditor` | `@sd-angular/core/components/code-editor` | Code editor (PrismJS) |
|
|
411
410
|
| `SdMiniEditor` | `@sd-angular/core/components/mini-editor` | Rich text editor nhỏ |
|
|
412
411
|
| `SdDocumentBuilder` | `@sd-angular/core/components/document-builder` | Document builder |
|
|
@@ -654,7 +653,7 @@ export * from './src/my-component.component';
|
|
|
654
653
|
// my-component.component.ts
|
|
655
654
|
import { ChangeDetectionStrategy, Component, input } from '@angular/core';
|
|
656
655
|
import { SdBaseSecureComponent } from '@sd-angular/core/components/base';
|
|
657
|
-
import {
|
|
656
|
+
import { Color } from '@sd-angular/core/utilities';
|
|
658
657
|
|
|
659
658
|
@Component({
|
|
660
659
|
selector: 'sd-my-component',
|
|
@@ -665,7 +664,7 @@ import { SdColor } from '@sd-angular/core/utilities';
|
|
|
665
664
|
imports: [],
|
|
666
665
|
})
|
|
667
666
|
export class SdMyComponent extends SdBaseSecureComponent {
|
|
668
|
-
color = input<
|
|
667
|
+
color = input<Color, Color | undefined | null>('primary', {
|
|
669
668
|
transform: (value) => value || 'primary',
|
|
670
669
|
});
|
|
671
670
|
|
|
@@ -691,7 +690,7 @@ export * from '@sd-angular/core/components/my-component';
|
|
|
691
690
|
| Base class | Extend `SdBaseSecureComponent` cho component có permission |
|
|
692
691
|
| Change detection | Luôn dùng `ChangeDetectionStrategy.OnPush` |
|
|
693
692
|
| Standalone | Luôn `standalone: true` |
|
|
694
|
-
| Colors | Dùng `
|
|
693
|
+
| Colors | Dùng `Color` type, không hardcode màu |
|
|
695
694
|
|
|
696
695
|
### Build
|
|
697
696
|
|
|
@@ -1,12 +1,11 @@
|
|
|
1
1
|
import { EventEmitter } from '@angular/core';
|
|
2
|
-
import { SdColor, SdSize } from '@sd-angular/core/utilities/models';
|
|
3
2
|
import { MaterialIconFontSet } from '@sd-angular/core/utilities/models';
|
|
4
3
|
import * as i0 from "@angular/core";
|
|
5
4
|
export type SdBadgeType = 'tag' | 'round' | 'icon';
|
|
6
5
|
export declare class SdBadge {
|
|
7
6
|
defaultIcon: string;
|
|
8
7
|
type: import("@angular/core").InputSignalWithTransform<SdBadgeType, SdBadgeType | null | undefined>;
|
|
9
|
-
color: import("@angular/core").InputSignalWithTransform<
|
|
8
|
+
color: import("@angular/core").InputSignalWithTransform<import("@sdcorejs/utils/models").Color, import("@sdcorejs/utils/models").Color | null | undefined>;
|
|
10
9
|
primary: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
|
|
11
10
|
secondary: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
|
|
12
11
|
success: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
|
|
@@ -18,10 +17,10 @@ export declare class SdBadge {
|
|
|
18
17
|
description: import("@angular/core").InputSignal<string | null | undefined>;
|
|
19
18
|
tooltip: import("@angular/core").InputSignal<string | null | undefined>;
|
|
20
19
|
icon: import("@angular/core").InputSignal<string | null | undefined>;
|
|
21
|
-
size: import("@angular/core").InputSignalWithTransform<
|
|
20
|
+
size: import("@angular/core").InputSignalWithTransform<import("@sdcorejs/utils/models").Size, import("@sdcorejs/utils/models").Size | null | undefined>;
|
|
22
21
|
click: EventEmitter<Event>;
|
|
23
22
|
onClick: (event: Event) => void;
|
|
24
|
-
effectiveColor: import("@angular/core").Signal<
|
|
23
|
+
effectiveColor: import("@angular/core").Signal<import("@sdcorejs/utils/models").Color>;
|
|
25
24
|
baseColorClasses: import("@angular/core").Signal<{
|
|
26
25
|
'c-primary': boolean;
|
|
27
26
|
'c-secondary': boolean;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { OnDestroy, OnInit } from '@angular/core';
|
|
2
2
|
import { SdBaseSecureComponent } from '@sd-angular/core/components/base';
|
|
3
|
-
import { MaterialIconFontSet
|
|
3
|
+
import { MaterialIconFontSet } from '@sd-angular/core/utilities/models';
|
|
4
4
|
import * as i0 from "@angular/core";
|
|
5
5
|
export type SdButtonType = 'fill' | 'light' | 'outline' | 'link';
|
|
6
6
|
export type SdButtonSize = 'sm' | 'md' | 'lg';
|
|
@@ -10,7 +10,7 @@ export declare class SdButton extends SdBaseSecureComponent implements OnInit, O
|
|
|
10
10
|
private el;
|
|
11
11
|
autoIdInput: import("@angular/core").InputSignal<string | null | undefined>;
|
|
12
12
|
type: import("@angular/core").InputSignalWithTransform<SdButtonType, SdButtonType | null | undefined>;
|
|
13
|
-
color: import("@angular/core").InputSignalWithTransform<
|
|
13
|
+
color: import("@angular/core").InputSignalWithTransform<import("@sdcorejs/utils/models").Color, import("@sdcorejs/utils/models").Color | null | undefined>;
|
|
14
14
|
size: import("@angular/core").InputSignalWithTransform<SdButtonSize, SdButtonSize | null | undefined>;
|
|
15
15
|
fontSet: import("@angular/core").InputSignalWithTransform<MaterialIconFontSet, MaterialIconFontSet | null | undefined>;
|
|
16
16
|
title: import("@angular/core").InputSignal<string | null | undefined>;
|
package/components/index.d.ts
CHANGED
|
@@ -8,9 +8,7 @@ export * from '@sd-angular/core/components/table';
|
|
|
8
8
|
export * from '@sd-angular/core/components/quick-action';
|
|
9
9
|
export * from '@sd-angular/core/components/upload-file';
|
|
10
10
|
export * from '@sd-angular/core/components/section';
|
|
11
|
-
export * from '@sd-angular/core/components/workflow';
|
|
12
11
|
export * from '@sd-angular/core/components/anchor';
|
|
13
|
-
export * from '@sd-angular/core/components/anchor-v2';
|
|
14
12
|
export * from '@sd-angular/core/components/query-builder';
|
|
15
13
|
export * from '@sd-angular/core/components/import-excel';
|
|
16
14
|
export * from '@sd-angular/core/components/document-builder';
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { ElementRef, TemplateRef } from '@angular/core';
|
|
2
|
-
import { SdColor } from '@sd-angular/core/utilities/models';
|
|
3
2
|
import * as i0 from "@angular/core";
|
|
4
3
|
export declare class SdModal {
|
|
5
4
|
#private;
|
|
@@ -10,7 +9,7 @@ export declare class SdModal {
|
|
|
10
9
|
readonly autoId: import("@angular/core").Signal<string | undefined>;
|
|
11
10
|
readonly closeButtonAutoId: import("@angular/core").Signal<string | undefined>;
|
|
12
11
|
title: import("@angular/core").InputSignalWithTransform<string, string | null | undefined>;
|
|
13
|
-
color: import("@angular/core").InputSignalWithTransform<
|
|
12
|
+
color: import("@angular/core").InputSignalWithTransform<import("@sdcorejs/utils/models").Color, import("@sdcorejs/utils/models").Color | null | undefined>;
|
|
14
13
|
width: import("@angular/core").InputSignalWithTransform<string, string | null | undefined>;
|
|
15
14
|
height: import("@angular/core").InputSignalWithTransform<string, string | null | undefined>;
|
|
16
15
|
view: import("@angular/core").InputSignalWithTransform<"dialog" | "bottom-sheet" | undefined, "dialog" | "bottom-sheet" | null | undefined>;
|
|
@@ -1,12 +1,11 @@
|
|
|
1
1
|
import { SdBaseSecureComponent } from '@sd-angular/core/components/base';
|
|
2
|
-
import { SdColor } from '@sd-angular/core/utilities';
|
|
3
2
|
import * as i0 from "@angular/core";
|
|
4
3
|
export declare class SdSection extends SdBaseSecureComponent {
|
|
5
4
|
#private;
|
|
6
5
|
title: import("@angular/core").InputSignal<string | null | undefined>;
|
|
7
6
|
subTitle: import("@angular/core").InputSignal<string | null | undefined>;
|
|
8
7
|
icon: import("@angular/core").InputSignal<string | null | undefined>;
|
|
9
|
-
iconColor: import("@angular/core").InputSignal<
|
|
8
|
+
iconColor: import("@angular/core").InputSignal<import("@sdcorejs/utils/models").Color>;
|
|
10
9
|
collapsed: import("@angular/core").ModelSignal<boolean>;
|
|
11
10
|
collapsable: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
|
|
12
11
|
hideHeader: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
|
|
@@ -12,12 +12,12 @@ export declare class ColumnFilterComponent implements OnInit, OnDestroy {
|
|
|
12
12
|
_value(value: any): void;
|
|
13
13
|
inlineSymbol: string;
|
|
14
14
|
set _inlineOperator(inlineOperator: SdOperator);
|
|
15
|
-
inlineOperatorChange: EventEmitter<
|
|
16
|
-
operatorChange: EventEmitter<
|
|
15
|
+
inlineOperatorChange: EventEmitter<import("@sdcorejs/utils/models").Operator>;
|
|
16
|
+
operatorChange: EventEmitter<import("@sdcorejs/utils/models").Operator>;
|
|
17
17
|
columnFilter: Record<string, any>;
|
|
18
18
|
set _columnFilter(columnFilter: Record<string, any>);
|
|
19
19
|
operators: {
|
|
20
|
-
value:
|
|
20
|
+
value: import("@sdcorejs/utils/models").Operator;
|
|
21
21
|
symbol?: string;
|
|
22
22
|
display: string;
|
|
23
23
|
}[];
|