@sdcorejs/angular 21.1.0 → 21.1.2
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/sdcorejs-angular-components-button.mjs +4 -4
- package/fesm2022/sdcorejs-angular-components-button.mjs.map +1 -1
- package/fesm2022/sdcorejs-angular-components-form-generic.mjs +102 -28
- package/fesm2022/sdcorejs-angular-components-form-generic.mjs.map +1 -1
- package/fesm2022/sdcorejs-angular-components-import-excel.mjs +2 -2
- package/fesm2022/sdcorejs-angular-components-import-excel.mjs.map +1 -1
- package/fesm2022/sdcorejs-angular-components-modal-resizable.mjs +2 -2
- package/fesm2022/sdcorejs-angular-components-modal-resizable.mjs.map +1 -1
- package/fesm2022/sdcorejs-angular-components-modal.mjs +2 -2
- package/fesm2022/sdcorejs-angular-components-modal.mjs.map +1 -1
- package/fesm2022/sdcorejs-angular-components-query-bar.mjs +5 -2
- package/fesm2022/sdcorejs-angular-components-query-bar.mjs.map +1 -1
- package/fesm2022/sdcorejs-angular-components-query-builder.mjs +4 -3
- package/fesm2022/sdcorejs-angular-components-query-builder.mjs.map +1 -1
- package/fesm2022/sdcorejs-angular-components-section.mjs +2 -2
- package/fesm2022/sdcorejs-angular-components-section.mjs.map +1 -1
- package/fesm2022/sdcorejs-angular-components-side-drawer.mjs +2 -2
- package/fesm2022/sdcorejs-angular-components-side-drawer.mjs.map +1 -1
- package/fesm2022/sdcorejs-angular-components-table.mjs +6 -6
- package/fesm2022/sdcorejs-angular-components-table.mjs.map +1 -1
- package/package.json +1 -1
- package/types/sdcorejs-angular-components-form-generic.d.ts +9 -1
- package/types/sdcorejs-angular-components-modal-resizable.d.ts +1 -1
- package/types/sdcorejs-angular-components-query-bar.d.ts +1 -0
- package/types/sdcorejs-angular-components-query-builder.d.ts +3 -3
package/package.json
CHANGED
|
@@ -757,6 +757,7 @@ interface ResizeState {
|
|
|
757
757
|
rowId: string;
|
|
758
758
|
columns: string;
|
|
759
759
|
}
|
|
760
|
+
type RowInsertionEdge = 'before' | 'after';
|
|
760
761
|
declare class SdFormBuilder implements OnInit, OnDestroy {
|
|
761
762
|
#private;
|
|
762
763
|
readonly popupViewJSON: i0.Signal<SdModal | undefined>;
|
|
@@ -791,6 +792,9 @@ declare class SdFormBuilder implements OnInit, OnDestroy {
|
|
|
791
792
|
* Trigger class `.fb-shell--dragging` để ẩn hover/actions/resize toàn diện, không phụ thuộc :has(). */
|
|
792
793
|
readonly isAnyDragging: i0.WritableSignal<boolean>;
|
|
793
794
|
readonly dragSource: i0.WritableSignal<"row" | "palette" | "canvas" | "resize" | undefined>;
|
|
795
|
+
readonly draggedPaletteItem: i0.WritableSignal<FormBuilderComponent | undefined>;
|
|
796
|
+
readonly rowInsertionEdge: i0.WritableSignal<RowInsertionEdge>;
|
|
797
|
+
readonly inlineDropTargetRow: i0.WritableSignal<DragDropRowItem | undefined>;
|
|
794
798
|
readonly resizeState: i0.WritableSignal<ResizeState | undefined>;
|
|
795
799
|
readonly isResizing: i0.Signal<boolean>;
|
|
796
800
|
expand: boolean;
|
|
@@ -800,7 +804,7 @@ declare class SdFormBuilder implements OnInit, OnDestroy {
|
|
|
800
804
|
private lastDragPointer?;
|
|
801
805
|
/** Handler chung cho mọi cdkDragStarted — set signal global true. */
|
|
802
806
|
onAnyDragStarted: () => void;
|
|
803
|
-
onPaletteDragStarted: () => void;
|
|
807
|
+
onPaletteDragStarted: (item?: FormBuilderComponent) => void;
|
|
804
808
|
onRowDragStarted: () => void;
|
|
805
809
|
onAnyDragMoved: (event: CdkDragMove<any>) => void;
|
|
806
810
|
/** Handler chung cho mọi cdkDragEnded — set signal global false (dùng setTimeout 0
|
|
@@ -819,6 +823,7 @@ declare class SdFormBuilder implements OnInit, OnDestroy {
|
|
|
819
823
|
placeholderSymbolFor: (item: FormBuilderComponent | SdFormGenericComponent | SdFormGenericGroup | DragDropRowItem | undefined) => string;
|
|
820
824
|
placeholderTitleFor: (item: FormBuilderComponent | SdFormGenericComponent | SdFormGenericGroup | DragDropRowItem | undefined) => string;
|
|
821
825
|
placeholderMetaFor: (item: FormBuilderComponent | SdFormGenericComponent | SdFormGenericGroup | DragDropRowItem | undefined) => string;
|
|
826
|
+
placeholderColumnsFor: (item: FormBuilderComponent | SdFormGenericComponent | SdFormGenericGroup | DragDropRowItem | undefined) => number;
|
|
822
827
|
/** True nếu component có expression điều kiện — drives the "conditional" status chip. */
|
|
823
828
|
hasConditional: (item: SdFormGenericComponent | SdFormGenericGroup) => boolean;
|
|
824
829
|
/** Map SdColor preset → 2 CSS var names cho header-bg và header-fg của group card. */
|
|
@@ -849,6 +854,9 @@ declare class SdFormBuilder implements OnInit, OnDestroy {
|
|
|
849
854
|
onMouseover: (event: MouseEvent, rowItem: DragDropRowItem) => void;
|
|
850
855
|
isRowFull: (row: DragDropRowItem) => boolean;
|
|
851
856
|
isRowInlineDropLocked: (row: DragDropRowItem) => boolean;
|
|
857
|
+
shouldShowRowInsertionPlaceholder: (row: DragDropRowItem, edge?: RowInsertionEdge) => boolean;
|
|
858
|
+
onRowItemsDropEntered: (row: DragDropRowItem) => void;
|
|
859
|
+
onRowItemsDropExited: (row: DragDropRowItem) => void;
|
|
852
860
|
canEnterRowDropList: (drag: CdkDrag<FormBuilderComponent | SdFormGenericComponent | SdFormGenericGroup>, drop: CdkDropList<(SdFormGenericComponent | SdFormGenericGroup)[]>) => boolean;
|
|
853
861
|
onFocus: (event: FocusEvent) => void;
|
|
854
862
|
xuLyKeoCheo: (dragItem?: SdFormGenericComponent | SdFormGenericGroup) => void;
|
|
@@ -26,7 +26,7 @@ declare class SdModalResizable {
|
|
|
26
26
|
onFocus: () => void;
|
|
27
27
|
onBlur: () => void;
|
|
28
28
|
static ɵfac: _angular_core.ɵɵFactoryDeclaration<SdModalResizable, never>;
|
|
29
|
-
static ɵcmp: _angular_core.ɵɵComponentDeclaration<SdModalResizable, "sd-modal-resizable", never, { "editable": { "alias": "editable"; "required": false; "isSignal": true; }; "width": { "alias": "width"; "required": false; "isSignal": true; }; }, { "editingChanged": "editingChanged"; }, never, ["[sdTitle]", "[sdBody]", "[
|
|
29
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<SdModalResizable, "sd-modal-resizable", never, { "editable": { "alias": "editable"; "required": false; "isSignal": true; }; "width": { "alias": "width"; "required": false; "isSignal": true; }; }, { "editingChanged": "editingChanged"; }, never, ["[sdTitle]", "[sdBody]", "[sdFooterLeft]", "[sdFooterRight]"], true, never>;
|
|
30
30
|
}
|
|
31
31
|
|
|
32
32
|
export { SdModalResizable };
|
|
@@ -390,6 +390,7 @@ declare class SdQueryBar {
|
|
|
390
390
|
/** Swap the field of an existing chip — reset operator + value to the new field's defaults. */
|
|
391
391
|
changeFilterField(index: number, field: SdQueryField): void;
|
|
392
392
|
updateFilter(index: number, patch: Partial<Filter>): void;
|
|
393
|
+
updateFilterData(index: number, data: unknown): void;
|
|
393
394
|
removeFilter(index: number): void;
|
|
394
395
|
clearAll(): void;
|
|
395
396
|
setLogic(value: SdQueryLogic): void;
|
|
@@ -248,7 +248,7 @@ declare class SdQueryBuilder {
|
|
|
248
248
|
setBetweenFrom(rule: QbRule, raw: any): void;
|
|
249
249
|
/** Set the upper bound of a BETWEEN rule's `{ from, to }` value. */
|
|
250
250
|
setBetweenTo(rule: QbRule, raw: any): void;
|
|
251
|
-
setValueSource(rule: QbRule, source:
|
|
251
|
+
setValueSource(rule: QbRule, source: unknown): void;
|
|
252
252
|
setCompareField(rule: QbRule, key: any): void;
|
|
253
253
|
/** The field metadata for a rule's current `field` key (or undefined if unset). */
|
|
254
254
|
fieldOf(rule: QbRule): SdQueryBuilderField | undefined;
|
|
@@ -270,7 +270,7 @@ declare class SdQueryBuilder {
|
|
|
270
270
|
/** Current date-value mode of a rule, derived from its value (no separate state). */
|
|
271
271
|
dateMode(rule: QbRule): QbDateMode;
|
|
272
272
|
/** Switch a date/datetime rule's value mode, reseeding the value for the new mode. */
|
|
273
|
-
setDateMode(rule: QbRule, mode:
|
|
273
|
+
setDateMode(rule: QbRule, mode: unknown): void;
|
|
274
274
|
/** Read the offset amount of a relative rule (default 1). */
|
|
275
275
|
relativeAmount(rule: QbRule): number;
|
|
276
276
|
/** Set the offset amount (clamped to an integer >= 1). */
|
|
@@ -278,7 +278,7 @@ declare class SdQueryBuilder {
|
|
|
278
278
|
/** Read the `'unit:direction'` token of a relative rule (default `'day:previous'`). */
|
|
279
279
|
relativeUnitDirValue(rule: QbRule): string;
|
|
280
280
|
/** Set the offset unit + direction from a `'unit:direction'` token. */
|
|
281
|
-
setRelativeUnitDir(rule: QbRule, token:
|
|
281
|
+
setRelativeUnitDir(rule: QbRule, token: unknown): void;
|
|
282
282
|
/** Build a `data-autoid` for an inner control under this builder's `autoId` prefix. */
|
|
283
283
|
autoIdFor(suffix: string): string;
|
|
284
284
|
static ɵfac: _angular_core.ɵɵFactoryDeclaration<SdQueryBuilder, never>;
|