@sumaris-net/ngx-components 18.23.55-beta.0 → 18.23.55-beta.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/esm2022/src/app/core/table/testing/table2.testing.mjs +3 -3
- package/esm2022/src/app/shared/directives/cell-selection/cell-selection.directive.mjs +9 -4
- package/esm2022/src/app/shared/directives/cell-selection/cell-selection.service.mjs +23 -6
- package/fesm2022/sumaris-net.ngx-components.mjs +32 -10
- package/fesm2022/sumaris-net.ngx-components.mjs.map +1 -1
- package/package.json +1 -1
- package/src/app/shared/directives/cell-selection/cell-selection.directive.d.ts +2 -1
- package/src/app/shared/directives/cell-selection/cell-selection.service.d.ts +3 -0
- package/src/app/shared/inputs.d.ts +1 -1
package/package.json
CHANGED
|
@@ -3,6 +3,7 @@ import { CellSelectionEvent, ICellId } from './cell-selection.service';
|
|
|
3
3
|
import * as i0 from "@angular/core";
|
|
4
4
|
export declare class CellSelectionDirective<C extends ICellId = ICellId> implements OnInit {
|
|
5
5
|
selectableColumns: import("@angular/core").InputSignal<string[]>;
|
|
6
|
+
disabled: import("@angular/core").InputSignal<boolean>;
|
|
6
7
|
selectionChange: import("@angular/core").OutputEmitterRef<CellSelectionEvent<C>>;
|
|
7
8
|
rightClick: import("@angular/core").OutputEmitterRef<MouseEvent>;
|
|
8
9
|
protected service: import("./cell-selection.service").CellSelectionService<ICellId>;
|
|
@@ -24,5 +25,5 @@ export declare class CellSelectionDirective<C extends ICellId = ICellId> impleme
|
|
|
24
25
|
private calculateSelectionBounds;
|
|
25
26
|
private createOverlayElement;
|
|
26
27
|
static ɵfac: i0.ɵɵFactoryDeclaration<CellSelectionDirective<any>, never>;
|
|
27
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<CellSelectionDirective<any>, "[appCellSelection]", never, { "selectableColumns": { "alias": "appSelectableColumns"; "required": false; "isSignal": true; }; }, { "selectionChange": "appCellSelectionChange"; "rightClick": "appCellRightClick"; }, never, never, true, never>;
|
|
28
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<CellSelectionDirective<any>, "[appCellSelection]", never, { "selectableColumns": { "alias": "appSelectableColumns"; "required": false; "isSignal": true; }; "disabled": { "alias": "appCellSelectionDisabled"; "required": false; "isSignal": true; }; }, { "selectionChange": "appCellSelectionChange"; "rightClick": "appCellRightClick"; }, never, never, true, never>;
|
|
28
29
|
}
|
|
@@ -25,9 +25,12 @@ export interface CellSelectionServiceConfig<C extends ICellId> {
|
|
|
25
25
|
export declare class CellSelectionService<C extends ICellId = ICellId> {
|
|
26
26
|
config: CellSelectionServiceConfig<any>;
|
|
27
27
|
selectableColumns: string[];
|
|
28
|
+
disabled: boolean;
|
|
28
29
|
private _selectedCells;
|
|
29
30
|
private selectionStartCell;
|
|
30
31
|
private isSelecting;
|
|
32
|
+
private currentRangeColumnFirstIndex;
|
|
33
|
+
private currentRangeColumnLastIndex;
|
|
31
34
|
draggedCells: C[];
|
|
32
35
|
private dragStartCell;
|
|
33
36
|
private isDragging;
|
|
@@ -18,7 +18,7 @@ export interface InputElement extends FocusableElement {
|
|
|
18
18
|
}
|
|
19
19
|
export declare function isInputElement(object: any): object is InputElement;
|
|
20
20
|
export declare function asInputElement<T = any>(object: ElementRef<T>): InputElement | undefined;
|
|
21
|
-
export declare function tabindexComparator(a: InputElement, b: InputElement):
|
|
21
|
+
export declare function tabindexComparator(a: InputElement, b: InputElement): 1 | -1 | 0;
|
|
22
22
|
export interface CanGainFocusOptions {
|
|
23
23
|
minTabindex?: number;
|
|
24
24
|
maxTabindex?: number;
|