@mozaic-ds/angular 2.0.40 → 2.0.42
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
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mozaic-ds/angular",
|
|
3
|
-
"version": "2.0.
|
|
3
|
+
"version": "2.0.42",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"peerDependencies": {
|
|
6
6
|
"@angular/common": ">=20.3.15",
|
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
"dependencies": {
|
|
10
10
|
"tslib": "^2.8.1",
|
|
11
11
|
"libphonenumber-js": "^1.12.31",
|
|
12
|
-
"@mozaic-ds/icons-angular": "^0.
|
|
12
|
+
"@mozaic-ds/icons-angular": "^0.17.0"
|
|
13
13
|
},
|
|
14
14
|
"sideEffects": false,
|
|
15
15
|
"repository": {
|
|
@@ -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;
|
|
@@ -2839,7 +2853,6 @@ declare class MozGridComponent<T = unknown> {
|
|
|
2839
2853
|
onBulkExport(): void;
|
|
2840
2854
|
onBulkDelete(): void;
|
|
2841
2855
|
private extractRangeData;
|
|
2842
|
-
private applyPasteData;
|
|
2843
2856
|
private extractRowSelectionData;
|
|
2844
2857
|
private applyPasteToSelectedRows;
|
|
2845
2858
|
private deleteSelectedRows;
|
|
@@ -3001,7 +3014,15 @@ declare class ColumnResizeEngine<T = unknown> {
|
|
|
3001
3014
|
|
|
3002
3015
|
declare class InlineEditEngine<T = unknown> {
|
|
3003
3016
|
private readonly state;
|
|
3017
|
+
private readonly history;
|
|
3004
3018
|
startEdit(rowIndex: number, field: string): void;
|
|
3019
|
+
/**
|
|
3020
|
+
* Excel-style "typing-to-edit": starts the editor with the cell value replaced
|
|
3021
|
+
* by the character the user just typed. For non-text editors (select / date /
|
|
3022
|
+
* checkbox / number) we coerce: the character is kept if it's compatible with
|
|
3023
|
+
* the editor, otherwise the editor opens on a cleared value.
|
|
3024
|
+
*/
|
|
3025
|
+
startEditWithChar(rowIndex: number, field: string, char: string): void;
|
|
3005
3026
|
updateDraft(value: unknown): void;
|
|
3006
3027
|
commitEdit(): CellEditEvent<T> | null;
|
|
3007
3028
|
cancelEdit(): CellEditCancelEvent | null;
|
|
@@ -3031,6 +3052,35 @@ declare class CellSelectionEngine<T = unknown> {
|
|
|
3031
3052
|
moveDown(): void;
|
|
3032
3053
|
moveLeft(): void;
|
|
3033
3054
|
moveRight(): void;
|
|
3055
|
+
moveToRowStart(): void;
|
|
3056
|
+
moveToRowEnd(): void;
|
|
3057
|
+
moveToGridStart(): void;
|
|
3058
|
+
moveToGridEnd(): void;
|
|
3059
|
+
/**
|
|
3060
|
+
* Excel-style Ctrl+Arrow: jump to the edge of the current data block.
|
|
3061
|
+
* If on an empty cell, jumps to the next non-empty cell. If on a filled
|
|
3062
|
+
* cell, jumps to the last filled cell before the next empty transition
|
|
3063
|
+
* (or to the grid edge if no empty cell is encountered).
|
|
3064
|
+
*/
|
|
3065
|
+
jumpToEdge(direction: 'up' | 'down' | 'left' | 'right'): void;
|
|
3066
|
+
movePage(direction: 'up' | 'down'): void;
|
|
3067
|
+
extendRangeBy(dRow: number, dCol: number): void;
|
|
3068
|
+
extendRangeToRowStart(): void;
|
|
3069
|
+
extendRangeToRowEnd(): void;
|
|
3070
|
+
extendRangeToGridStart(): void;
|
|
3071
|
+
extendRangeToGridEnd(): void;
|
|
3072
|
+
extendRangeJumpToEdge(direction: 'up' | 'down' | 'left' | 'right'): void;
|
|
3073
|
+
extendRangeByPage(direction: 'up' | 'down'): void;
|
|
3074
|
+
selectRow(row: number): void;
|
|
3075
|
+
selectColumn(col: number): void;
|
|
3076
|
+
selectAll(): void;
|
|
3077
|
+
private pageBounds;
|
|
3078
|
+
private pageRowStep;
|
|
3079
|
+
private directionVector;
|
|
3080
|
+
private inBounds;
|
|
3081
|
+
private isCellFilled;
|
|
3082
|
+
private findLastNonEmptyCol;
|
|
3083
|
+
private edgeFromCell;
|
|
3034
3084
|
moveToNextEditableCell(): void;
|
|
3035
3085
|
startFill(row: number, col: number): void;
|
|
3036
3086
|
/**
|
|
@@ -3076,13 +3126,38 @@ declare class CellSelectionEngine<T = unknown> {
|
|
|
3076
3126
|
static ɵprov: _angular_core.ɵɵInjectableDeclaration<CellSelectionEngine<any>>;
|
|
3077
3127
|
}
|
|
3078
3128
|
|
|
3129
|
+
/**
|
|
3130
|
+
* Actions that require grid-level orchestration (event emission, clipboard
|
|
3131
|
+
* system access, async, UI refocus). The keyboard engine can run pure
|
|
3132
|
+
* navigation locally, but bounces these back to the host component.
|
|
3133
|
+
*/
|
|
3134
|
+
interface KeyboardActions {
|
|
3135
|
+
copy: () => void;
|
|
3136
|
+
paste: () => void;
|
|
3137
|
+
cut: () => void;
|
|
3138
|
+
deleteRange: () => void;
|
|
3139
|
+
undo: () => void;
|
|
3140
|
+
redo: () => void;
|
|
3141
|
+
fillDown: () => void;
|
|
3142
|
+
fillRight: () => void;
|
|
3143
|
+
startEdit: (row: number, col: number, initialChar?: string) => void;
|
|
3144
|
+
}
|
|
3079
3145
|
declare class KeyboardEngine<T = unknown> {
|
|
3080
3146
|
private readonly cellSelection;
|
|
3081
3147
|
private readonly inlineEdit;
|
|
3082
3148
|
private readonly state;
|
|
3149
|
+
private actions;
|
|
3150
|
+
registerActions(actions: KeyboardActions): void;
|
|
3083
3151
|
handleKeydown(event: KeyboardEvent): void;
|
|
3084
|
-
|
|
3085
|
-
private
|
|
3152
|
+
/** Returns true when the event was handled (so the caller should preventDefault). */
|
|
3153
|
+
private dispatch;
|
|
3154
|
+
private handleArrow;
|
|
3155
|
+
/**
|
|
3156
|
+
* A key press is "printable" when it represents exactly one character that
|
|
3157
|
+
* the user intends as input — excluding named keys like F1, Home, Arrow*,
|
|
3158
|
+
* etc. Also excludes IME composition events (event.isComposing).
|
|
3159
|
+
*/
|
|
3160
|
+
private isPrintableKey;
|
|
3086
3161
|
static ɵfac: _angular_core.ɵɵFactoryDeclaration<KeyboardEngine<any>, never>;
|
|
3087
3162
|
static ɵprov: _angular_core.ɵɵInjectableDeclaration<KeyboardEngine<any>>;
|
|
3088
3163
|
}
|
|
@@ -3404,6 +3479,7 @@ declare class MozGridCellComponent<T = unknown> {
|
|
|
3404
3479
|
private readonly inlineEdit;
|
|
3405
3480
|
private readonly cellSelectionEngine;
|
|
3406
3481
|
private readonly validationEngine;
|
|
3482
|
+
private readonly clipboard;
|
|
3407
3483
|
private readonly elRef;
|
|
3408
3484
|
private preEditWidth;
|
|
3409
3485
|
constructor();
|
|
@@ -3433,6 +3509,13 @@ declare class MozGridCellComponent<T = unknown> {
|
|
|
3433
3509
|
readonly isInRange: _angular_core.Signal<boolean>;
|
|
3434
3510
|
readonly isInFillRange: _angular_core.Signal<boolean>;
|
|
3435
3511
|
readonly isInFillRejectRange: _angular_core.Signal<boolean>;
|
|
3512
|
+
readonly cutEdges: _angular_core.Signal<{
|
|
3513
|
+
top: boolean;
|
|
3514
|
+
right: boolean;
|
|
3515
|
+
bottom: boolean;
|
|
3516
|
+
left: boolean;
|
|
3517
|
+
any: boolean;
|
|
3518
|
+
}>;
|
|
3436
3519
|
readonly cellError: _angular_core.Signal<_mozaic_ds_angular.CellError | null>;
|
|
3437
3520
|
onCellClick(event: MouseEvent): void;
|
|
3438
3521
|
onMouseDown(event: MouseEvent): void;
|
|
@@ -3999,4 +4082,4 @@ declare class MozTreeNodeComponent<T = unknown> {
|
|
|
3999
4082
|
}
|
|
4000
4083
|
|
|
4001
4084
|
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 };
|
|
4085
|
+
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 };
|