@mozaic-ds/angular 2.0.41 → 2.0.43
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/package.json
CHANGED
|
@@ -2599,6 +2599,7 @@ declare class GridStateManager<T = unknown> {
|
|
|
2599
2599
|
readonly scrollLeft: _angular_core.WritableSignal<number>;
|
|
2600
2600
|
readonly scrollTop: _angular_core.WritableSignal<number>;
|
|
2601
2601
|
readonly scrollViewportWidth: _angular_core.WritableSignal<number>;
|
|
2602
|
+
readonly scrollViewportHeight: _angular_core.WritableSignal<number>;
|
|
2602
2603
|
readonly scrollContentTotalWidth: _angular_core.WritableSignal<number>;
|
|
2603
2604
|
readonly horizontalVirtualScrollEnabled: _angular_core.WritableSignal<boolean>;
|
|
2604
2605
|
readonly visibleColumnRange: _angular_core.WritableSignal<{
|
|
@@ -2622,6 +2623,10 @@ declare class GridStateManager<T = unknown> {
|
|
|
2622
2623
|
readonly isFilling: _angular_core.WritableSignal<boolean>;
|
|
2623
2624
|
readonly fillAnchor: _angular_core.WritableSignal<CellCoord | null>;
|
|
2624
2625
|
readonly fillTarget: _angular_core.WritableSignal<CellCoord | null>;
|
|
2626
|
+
readonly cutSource: _angular_core.WritableSignal<{
|
|
2627
|
+
start: CellCoord;
|
|
2628
|
+
end: CellCoord;
|
|
2629
|
+
} | null>;
|
|
2625
2630
|
readonly expandedRowIds: _angular_core.WritableSignal<Set<unknown>>;
|
|
2626
2631
|
readonly rowIdField: _angular_core.WritableSignal<string>;
|
|
2627
2632
|
readonly activeSelectionMode: _angular_core.WritableSignal<"none" | "rows" | "cells">;
|
|
@@ -2711,6 +2716,8 @@ declare class MozGridComponent<T = unknown> {
|
|
|
2711
2716
|
protected readonly rowSelectionEngine: RowSelectionEngine<T>;
|
|
2712
2717
|
private readonly cellSelectionEngine;
|
|
2713
2718
|
private readonly keyboardEngine;
|
|
2719
|
+
private readonly clipboardEngine;
|
|
2720
|
+
private readonly historyEngine;
|
|
2714
2721
|
private readonly groupEngine;
|
|
2715
2722
|
private readonly filterEngine;
|
|
2716
2723
|
private readonly persistenceEngine;
|
|
@@ -2793,6 +2800,13 @@ declare class MozGridComponent<T = unknown> {
|
|
|
2793
2800
|
private activateRowSelectionMode;
|
|
2794
2801
|
onKeydown(event: KeyboardEvent): void;
|
|
2795
2802
|
private handleEditModeKeydown;
|
|
2803
|
+
private commitFromEditMode;
|
|
2804
|
+
private onCutShortcut;
|
|
2805
|
+
private onUndo;
|
|
2806
|
+
private onRedo;
|
|
2807
|
+
private onFillDownShortcut;
|
|
2808
|
+
private onFillRightShortcut;
|
|
2809
|
+
private onStartEditShortcut;
|
|
2796
2810
|
private resetInfiniteScrollIfActive;
|
|
2797
2811
|
private refocusGrid;
|
|
2798
2812
|
onMouseUp(): void;
|
|
@@ -2823,6 +2837,7 @@ declare class MozGridComponent<T = unknown> {
|
|
|
2823
2837
|
onExportCsv(): void;
|
|
2824
2838
|
onGroupClick(): void;
|
|
2825
2839
|
private applyGroupResult;
|
|
2840
|
+
onKeyboardShortcutsClick(): void;
|
|
2826
2841
|
private static readonly DENSITY_ROW_HEIGHT;
|
|
2827
2842
|
onSettingsClick(): void;
|
|
2828
2843
|
private applySettings;
|
|
@@ -2839,7 +2854,6 @@ declare class MozGridComponent<T = unknown> {
|
|
|
2839
2854
|
onBulkExport(): void;
|
|
2840
2855
|
onBulkDelete(): void;
|
|
2841
2856
|
private extractRangeData;
|
|
2842
|
-
private applyPasteData;
|
|
2843
2857
|
private extractRowSelectionData;
|
|
2844
2858
|
private applyPasteToSelectedRows;
|
|
2845
2859
|
private deleteSelectedRows;
|
|
@@ -3001,7 +3015,15 @@ declare class ColumnResizeEngine<T = unknown> {
|
|
|
3001
3015
|
|
|
3002
3016
|
declare class InlineEditEngine<T = unknown> {
|
|
3003
3017
|
private readonly state;
|
|
3018
|
+
private readonly history;
|
|
3004
3019
|
startEdit(rowIndex: number, field: string): void;
|
|
3020
|
+
/**
|
|
3021
|
+
* Excel-style "typing-to-edit": starts the editor with the cell value replaced
|
|
3022
|
+
* by the character the user just typed. For non-text editors (select / date /
|
|
3023
|
+
* checkbox / number) we coerce: the character is kept if it's compatible with
|
|
3024
|
+
* the editor, otherwise the editor opens on a cleared value.
|
|
3025
|
+
*/
|
|
3026
|
+
startEditWithChar(rowIndex: number, field: string, char: string): void;
|
|
3005
3027
|
updateDraft(value: unknown): void;
|
|
3006
3028
|
commitEdit(): CellEditEvent<T> | null;
|
|
3007
3029
|
cancelEdit(): CellEditCancelEvent | null;
|
|
@@ -3031,6 +3053,35 @@ declare class CellSelectionEngine<T = unknown> {
|
|
|
3031
3053
|
moveDown(): void;
|
|
3032
3054
|
moveLeft(): void;
|
|
3033
3055
|
moveRight(): void;
|
|
3056
|
+
moveToRowStart(): void;
|
|
3057
|
+
moveToRowEnd(): void;
|
|
3058
|
+
moveToGridStart(): void;
|
|
3059
|
+
moveToGridEnd(): void;
|
|
3060
|
+
/**
|
|
3061
|
+
* Excel-style Ctrl+Arrow: jump to the edge of the current data block.
|
|
3062
|
+
* If on an empty cell, jumps to the next non-empty cell. If on a filled
|
|
3063
|
+
* cell, jumps to the last filled cell before the next empty transition
|
|
3064
|
+
* (or to the grid edge if no empty cell is encountered).
|
|
3065
|
+
*/
|
|
3066
|
+
jumpToEdge(direction: 'up' | 'down' | 'left' | 'right'): void;
|
|
3067
|
+
movePage(direction: 'up' | 'down'): void;
|
|
3068
|
+
extendRangeBy(dRow: number, dCol: number): void;
|
|
3069
|
+
extendRangeToRowStart(): void;
|
|
3070
|
+
extendRangeToRowEnd(): void;
|
|
3071
|
+
extendRangeToGridStart(): void;
|
|
3072
|
+
extendRangeToGridEnd(): void;
|
|
3073
|
+
extendRangeJumpToEdge(direction: 'up' | 'down' | 'left' | 'right'): void;
|
|
3074
|
+
extendRangeByPage(direction: 'up' | 'down'): void;
|
|
3075
|
+
selectRow(row: number): void;
|
|
3076
|
+
selectColumn(col: number): void;
|
|
3077
|
+
selectAll(): void;
|
|
3078
|
+
private pageBounds;
|
|
3079
|
+
private pageRowStep;
|
|
3080
|
+
private directionVector;
|
|
3081
|
+
private inBounds;
|
|
3082
|
+
private isCellFilled;
|
|
3083
|
+
private findLastNonEmptyCol;
|
|
3084
|
+
private edgeFromCell;
|
|
3034
3085
|
moveToNextEditableCell(): void;
|
|
3035
3086
|
startFill(row: number, col: number): void;
|
|
3036
3087
|
/**
|
|
@@ -3076,13 +3127,38 @@ declare class CellSelectionEngine<T = unknown> {
|
|
|
3076
3127
|
static ɵprov: _angular_core.ɵɵInjectableDeclaration<CellSelectionEngine<any>>;
|
|
3077
3128
|
}
|
|
3078
3129
|
|
|
3130
|
+
/**
|
|
3131
|
+
* Actions that require grid-level orchestration (event emission, clipboard
|
|
3132
|
+
* system access, async, UI refocus). The keyboard engine can run pure
|
|
3133
|
+
* navigation locally, but bounces these back to the host component.
|
|
3134
|
+
*/
|
|
3135
|
+
interface KeyboardActions {
|
|
3136
|
+
copy: () => void;
|
|
3137
|
+
paste: () => void;
|
|
3138
|
+
cut: () => void;
|
|
3139
|
+
deleteRange: () => void;
|
|
3140
|
+
undo: () => void;
|
|
3141
|
+
redo: () => void;
|
|
3142
|
+
fillDown: () => void;
|
|
3143
|
+
fillRight: () => void;
|
|
3144
|
+
startEdit: (row: number, col: number, initialChar?: string) => void;
|
|
3145
|
+
}
|
|
3079
3146
|
declare class KeyboardEngine<T = unknown> {
|
|
3080
3147
|
private readonly cellSelection;
|
|
3081
3148
|
private readonly inlineEdit;
|
|
3082
3149
|
private readonly state;
|
|
3150
|
+
private actions;
|
|
3151
|
+
registerActions(actions: KeyboardActions): void;
|
|
3083
3152
|
handleKeydown(event: KeyboardEvent): void;
|
|
3084
|
-
|
|
3085
|
-
private
|
|
3153
|
+
/** Returns true when the event was handled (so the caller should preventDefault). */
|
|
3154
|
+
private dispatch;
|
|
3155
|
+
private handleArrow;
|
|
3156
|
+
/**
|
|
3157
|
+
* A key press is "printable" when it represents exactly one character that
|
|
3158
|
+
* the user intends as input — excluding named keys like F1, Home, Arrow*,
|
|
3159
|
+
* etc. Also excludes IME composition events (event.isComposing).
|
|
3160
|
+
*/
|
|
3161
|
+
private isPrintableKey;
|
|
3086
3162
|
static ɵfac: _angular_core.ɵɵFactoryDeclaration<KeyboardEngine<any>, never>;
|
|
3087
3163
|
static ɵprov: _angular_core.ɵɵInjectableDeclaration<KeyboardEngine<any>>;
|
|
3088
3164
|
}
|
|
@@ -3404,6 +3480,7 @@ declare class MozGridCellComponent<T = unknown> {
|
|
|
3404
3480
|
private readonly inlineEdit;
|
|
3405
3481
|
private readonly cellSelectionEngine;
|
|
3406
3482
|
private readonly validationEngine;
|
|
3483
|
+
private readonly clipboard;
|
|
3407
3484
|
private readonly elRef;
|
|
3408
3485
|
private preEditWidth;
|
|
3409
3486
|
constructor();
|
|
@@ -3433,6 +3510,13 @@ declare class MozGridCellComponent<T = unknown> {
|
|
|
3433
3510
|
readonly isInRange: _angular_core.Signal<boolean>;
|
|
3434
3511
|
readonly isInFillRange: _angular_core.Signal<boolean>;
|
|
3435
3512
|
readonly isInFillRejectRange: _angular_core.Signal<boolean>;
|
|
3513
|
+
readonly cutEdges: _angular_core.Signal<{
|
|
3514
|
+
top: boolean;
|
|
3515
|
+
right: boolean;
|
|
3516
|
+
bottom: boolean;
|
|
3517
|
+
left: boolean;
|
|
3518
|
+
any: boolean;
|
|
3519
|
+
}>;
|
|
3436
3520
|
readonly cellError: _angular_core.Signal<_mozaic_ds_angular.CellError | null>;
|
|
3437
3521
|
onCellClick(event: MouseEvent): void;
|
|
3438
3522
|
onMouseDown(event: MouseEvent): void;
|
|
@@ -3999,4 +4083,4 @@ declare class MozTreeNodeComponent<T = unknown> {
|
|
|
3999
4083
|
}
|
|
4000
4084
|
|
|
4001
4085
|
export { ACTION_LISTBOX_CONFIG, ActionListboxContainerComponent, ActionListboxRef, BuiltInMenuComponent, CellSelectionEngine, CellValidationEngine, ColumnReorderEngine, ColumnResizeEngine, DEFAULT_ACTION_LISTBOX_CONFIG, DEFAULT_GRID_OPTIONS, DEFAULT_MODAL_CONFIG, DEFAULT_TOASTER_CONFIG, DRAWER_CONFIG, DRAWER_DATA, DrawerContainerComponent, ExpandableRowEngine, ExportEngine, FilterEngine, GridEngine, GridGroupDrawerComponent, GridSettingsDrawerComponent, GridStateManager, GroupEngine, HorizontalVirtualScrollEngine, InfiniteScrollEngine, InlineEditEngine, KeyboardEngine, MODAL_CONFIG, MODAL_DATA, MozAccordionComponent, MozAccordionContentComponent, MozAccordionHeaderComponent, MozAccordionPanelComponent, MozActionBottomBarComponent, MozActionListboxComponent, MozActionListboxTriggerDirective, MozAvatarComponent, MozBreadcrumbComponent, MozButtonComponent, MozCalloutComponent, MozCarouselComponent, MozCheckListMenuComponent, MozCheckboxComponent, MozCheckboxGroupComponent, MozCircularProgressBarComponent, MozComboboxComponent, MozComboboxHarness, MozComboboxOptionHarness, MozDatepickerComponent, MozDividerComponent, MozDrawerComponent, MozDrawerFooterDirective, MozDrawerRef, MozDrawerService, MozFieldComponent, MozFieldGroupComponent, MozFileUploaderComponent, MozFileUploaderItemComponent, MozFlagComponent, MozGridBodyComponent, MozGridCellComponent, MozGridColumnDef, MozGridColumnVisibilityPanelComponent, MozGridComponent, MozGridDetailRowComponent, MozGridFooterComponent, MozGridGroupRowComponent, MozGridHeaderCellComponent, MozGridHeaderComponent, MozGridHeaderMenuComponent, MozGridLoadingIndicatorComponent, MozGridRowComponent, MozGridToolbarDef, MozIconButtonComponent, MozKpiComponent, MozLinearProgressBarBufferComponent, MozLinearProgressBarPercentageComponent, MozLinkComponent, MozLoaderComponent, MozLoadingOverlayComponent, MozModalComponent, MozModalFooterDirective, MozModalRef, MozModalService, MozNavigationIndicatorComponent, MozNumberBadgeComponent, MozOverlayComponent, MozPageHeaderComponent, MozPaginationComponent, MozPasswordInputDirective, MozPhoneNumberComponent, MozPincodeInputComponent, MozPopoverComponent, MozPopoverFooterDirective, MozPopoverTriggerDirective, MozQuantitySelectorComponent, MozRadioComponent, MozRadioGroupComponent, MozSegmentedControlComponent, MozSelectComponent, MozSidebarComponent, MozStarRatingComponent, MozStatusBadgeComponent, MozStatusDotComponent, MozStatusMessageComponent, MozStatusNotificationComponent, MozStepperBottomBarComponent, MozStepperCompactComponent, MozStepperInlineComponent, MozStepperStackedComponent, MozTabComponent, MozTabsComponent, MozTagComponent, MozTextInput, MozTextarea, MozTileComponent, MozTileExpandableComponent, MozTileSelectableComponent, MozToasterComponent, MozToasterRef, MozToasterService, MozToggleComponent, MozTooltipComponent, MozTooltipDirective, MozTreeComponent, MozTreeNodeComponent, MozTreeNodeTemplateDirective, POPOVER_CONFIG, POPOVER_DATA, PaginationEngine, PopoverContainerComponent, PopoverRef, PopoverService, RowSelectionEngine, SortEngine, StatePersistenceEngine, TOASTER_CONFIG, TreeEngine, TreeKeyboardService, TreeSelectionService, TreeStateService, isSection, trackByField, trackDisplayRow };
|
|
4002
|
-
export type { ActionListboxConfig, ActionListboxPosition, ActiveFilter, BulkCopyEvent, BulkDeleteEvent, BulkEditEvent, BulkPasteEvent, CellCoord, CellEditCancelEvent, CellEditEvent, CellEditState, CellEditorType, CellError, CellRange, CellSelectionEvent, ColumnDef, ColumnFreezeEvent, ColumnReorderEvent, ColumnResizeEvent, ColumnSearchToggleEvent, ColumnStateEntry, ColumnVisibilityEvent, DisplayRow, ExportOptions, FillDownEvent, FilterDef, FilterEvent, FlatNode, GridDensity, GridEventMap, GridEventType, GridOptions, GridPlugin, GridSettingsData, GridSettingsResult, GridToolbarSlot, GroupDrawerData, GroupDrawerResult, GroupEntry, GroupEvent, GroupRow, HeaderMenuActionId, HeaderMenuConfig, LoadChildrenFn, LoadMoreEvent, LoadingStrategy, MozActionListItem, MozActionListItemAppearance, MozAvatarSize, MozBreadcrumbAppearance, MozBreadcrumbLink, MozBuiltInMenuItem, MozBuiltInMenuItemTarget, MozButtonAppearance, MozButtonIconPosition, MozButtonSize, MozButtonType, MozCalloutVariant, MozCheckListMenuItem, MozCircularProgessBarSize, MozComboboxItem, MozComboboxOption, MozComboboxSection, MozComboboxSize, MozDatepickerSize, MozDividerAppearance, MozDividerOrientation, MozDividerSize, MozDrawerConfig, MozDrawerPosition, MozFileUploaderFormat, MozFileUploaderItemFormat, MozFlagType, MozIconButtonAppearance, MozIconButtonSize, MozIconButtonType, MozKpiSize, MozKpiStatus, MozKpiTrend, MozLinearProgressBarBufferSize, MozLinkAppearance, MozLinkIconPosition, MozLinkSize, MozLoaderAppearance, MozLoaderSize, MozNavigationIndicatorAction, MozNumberBadgeAppearance, MozNumberBadgeSize, MozPageHeaderScope, MozPhoneNumberCountry, MozPhoneNumberSize, MozPhoneNumberValue, MozPincodeLength, MozPopoverAppearance, MozPopoverPosition, MozPopoverSize, MozQuantitySelectorSize, MozSegmentedControlSize, MozSegmentedItem, MozSelectOption, MozSelectSize, MozSelectValue, MozSidebarItem, MozSidebarSubItem, MozStarRatingAppearance, MozStarRatingSize, MozStatusBadgeStatus, MozStatusDotSize, MozStatusDotStatus, MozStatusMessageStatus, MozStatusNotificationStatus, MozStepperBottomBarStep, MozStepperInlineStep, MozStepperStackedStep, MozTabItem, MozTagSize, MozTagType, MozTextInputSize, MozTileAppearance, MozTileExpandableTrigger, MozTileInputPosition, MozTileInputVerticalPosition, MozTileSelectableAppearance, MozTileSelectableType, MozToasterPosition, MozToasterRole, MozToasterStatus, MozToggleSize, MozTooltipPosition, PageEvent, PaginationState, PersistedGridState, PopoverConfig, PopoverTriggerMode, RowSelectionEvent, SelectAllMode, SortDef, SortDirection, SortEvent, TreeDisplayRow, TreeNode, TreeNodeConfig, TreeNodeContext, TreeSelectionMode };
|
|
4086
|
+
export type { ActionListboxConfig, ActionListboxPosition, ActiveFilter, BulkCopyEvent, BulkDeleteEvent, BulkEditEvent, BulkPasteEvent, CellCoord, CellEditCancelEvent, CellEditEvent, CellEditState, CellEditorType, CellError, CellRange, CellSelectionEvent, ColumnDef, ColumnFreezeEvent, ColumnReorderEvent, ColumnResizeEvent, ColumnSearchToggleEvent, ColumnStateEntry, ColumnVisibilityEvent, DisplayRow, ExportOptions, FillDownEvent, FilterDef, FilterEvent, FlatNode, GridDensity, GridEventMap, GridEventType, GridOptions, GridPlugin, GridSettingsData, GridSettingsResult, GridToolbarSlot, GroupDrawerData, GroupDrawerResult, GroupEntry, GroupEvent, GroupRow, HeaderMenuActionId, HeaderMenuConfig, KeyboardActions, LoadChildrenFn, LoadMoreEvent, LoadingStrategy, MozActionListItem, MozActionListItemAppearance, MozAvatarSize, MozBreadcrumbAppearance, MozBreadcrumbLink, MozBuiltInMenuItem, MozBuiltInMenuItemTarget, MozButtonAppearance, MozButtonIconPosition, MozButtonSize, MozButtonType, MozCalloutVariant, MozCheckListMenuItem, MozCircularProgessBarSize, MozComboboxItem, MozComboboxOption, MozComboboxSection, MozComboboxSize, MozDatepickerSize, MozDividerAppearance, MozDividerOrientation, MozDividerSize, MozDrawerConfig, MozDrawerPosition, MozFileUploaderFormat, MozFileUploaderItemFormat, MozFlagType, MozIconButtonAppearance, MozIconButtonSize, MozIconButtonType, MozKpiSize, MozKpiStatus, MozKpiTrend, MozLinearProgressBarBufferSize, MozLinkAppearance, MozLinkIconPosition, MozLinkSize, MozLoaderAppearance, MozLoaderSize, MozNavigationIndicatorAction, MozNumberBadgeAppearance, MozNumberBadgeSize, MozPageHeaderScope, MozPhoneNumberCountry, MozPhoneNumberSize, MozPhoneNumberValue, MozPincodeLength, MozPopoverAppearance, MozPopoverPosition, MozPopoverSize, MozQuantitySelectorSize, MozSegmentedControlSize, MozSegmentedItem, MozSelectOption, MozSelectSize, MozSelectValue, MozSidebarItem, MozSidebarSubItem, MozStarRatingAppearance, MozStarRatingSize, MozStatusBadgeStatus, MozStatusDotSize, MozStatusDotStatus, MozStatusMessageStatus, MozStatusNotificationStatus, MozStepperBottomBarStep, MozStepperInlineStep, MozStepperStackedStep, MozTabItem, MozTagSize, MozTagType, MozTextInputSize, MozTileAppearance, MozTileExpandableTrigger, MozTileInputPosition, MozTileInputVerticalPosition, MozTileSelectableAppearance, MozTileSelectableType, MozToasterPosition, MozToasterRole, MozToasterStatus, MozToggleSize, MozTooltipPosition, PageEvent, PaginationState, PersistedGridState, PopoverConfig, PopoverTriggerMode, RowSelectionEvent, SelectAllMode, SortDef, SortDirection, SortEvent, TreeDisplayRow, TreeNode, TreeNodeConfig, TreeNodeContext, TreeSelectionMode };
|