@m1z23r/ngx-ui 1.1.48 → 1.1.50
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/m1z23r-ngx-ui.mjs +185 -24
- package/fesm2022/m1z23r-ngx-ui.mjs.map +1 -1
- package/package.json +1 -1
- package/types/m1z23r-ngx-ui.d.ts +52 -6
package/package.json
CHANGED
package/types/m1z23r-ngx-ui.d.ts
CHANGED
|
@@ -2021,15 +2021,25 @@ interface TreeNodeDropEvent {
|
|
|
2021
2021
|
target: TreeNode;
|
|
2022
2022
|
position: TreeDropPosition;
|
|
2023
2023
|
}
|
|
2024
|
+
type TreeNodeActionType = 'copyValue' | 'copyPath' | 'copyObject' | 'expandAll' | 'collapseAll' | 'goToParent' | 'collapseParent';
|
|
2025
|
+
interface TreeNodeContextAction {
|
|
2026
|
+
node: TreeNode;
|
|
2027
|
+
path: TreeNode[];
|
|
2028
|
+
action: TreeNodeActionType;
|
|
2029
|
+
}
|
|
2024
2030
|
declare const TREE_HOST: InjectionToken<TreeComponent>;
|
|
2025
2031
|
declare class TreeComponent {
|
|
2026
2032
|
readonly nodes: _angular_core.InputSignal<TreeNode[]>;
|
|
2027
2033
|
readonly indent: _angular_core.InputSignal<number>;
|
|
2028
2034
|
readonly draggable: _angular_core.InputSignal<boolean>;
|
|
2035
|
+
readonly expandOnClick: _angular_core.InputSignal<boolean>;
|
|
2036
|
+
readonly contextMenu: _angular_core.InputSignal<boolean>;
|
|
2037
|
+
readonly pathSeparator: _angular_core.InputSignal<string>;
|
|
2029
2038
|
readonly nodeClick: _angular_core.OutputEmitterRef<TreeNode>;
|
|
2030
2039
|
readonly nodeExpand: _angular_core.OutputEmitterRef<TreeNode>;
|
|
2031
2040
|
readonly nodeCollapse: _angular_core.OutputEmitterRef<TreeNode>;
|
|
2032
2041
|
readonly nodeDrop: _angular_core.OutputEmitterRef<TreeNodeDropEvent>;
|
|
2042
|
+
readonly nodeContextAction: _angular_core.OutputEmitterRef<TreeNodeContextAction>;
|
|
2033
2043
|
/** @internal */
|
|
2034
2044
|
readonly _dragNode: _angular_core.WritableSignal<TreeNode | null>;
|
|
2035
2045
|
/** @internal */
|
|
@@ -2037,6 +2047,23 @@ declare class TreeComponent {
|
|
|
2037
2047
|
/** @internal */
|
|
2038
2048
|
readonly _dropPosition: _angular_core.WritableSignal<TreeDropPosition | null>;
|
|
2039
2049
|
/** @internal */
|
|
2050
|
+
readonly _flashNode: _angular_core.WritableSignal<TreeNode | null>;
|
|
2051
|
+
/** @internal context-menu target — node and its path (root → node, inclusive) */
|
|
2052
|
+
readonly _menuNode: _angular_core.WritableSignal<TreeNode | null>;
|
|
2053
|
+
/** @internal */
|
|
2054
|
+
readonly _menuPath: _angular_core.WritableSignal<TreeNode[]>;
|
|
2055
|
+
/** @internal whether the targeted node has children (drives expand/collapse-all visibility) */
|
|
2056
|
+
readonly _menuHasChildren: _angular_core.Signal<boolean>;
|
|
2057
|
+
/** @internal whether the targeted node has a parent (drives go-to/collapse-parent visibility) */
|
|
2058
|
+
readonly _menuHasParent: _angular_core.Signal<boolean>;
|
|
2059
|
+
private readonly _expansion;
|
|
2060
|
+
private readonly _nodeElements;
|
|
2061
|
+
private flashTimer;
|
|
2062
|
+
private readonly menu;
|
|
2063
|
+
isExpanded(node: TreeNode): boolean;
|
|
2064
|
+
setExpanded(node: TreeNode, value: boolean): void;
|
|
2065
|
+
expandSubtree(node: TreeNode, value: boolean): void;
|
|
2066
|
+
/** @internal */
|
|
2040
2067
|
_onNodeClick(node: TreeNode): void;
|
|
2041
2068
|
/** @internal */
|
|
2042
2069
|
_onNodeExpand(node: TreeNode): void;
|
|
@@ -2044,28 +2071,47 @@ declare class TreeComponent {
|
|
|
2044
2071
|
_onNodeCollapse(node: TreeNode): void;
|
|
2045
2072
|
/** @internal */
|
|
2046
2073
|
_emitDrop(event: TreeNodeDropEvent): void;
|
|
2074
|
+
/** @internal */
|
|
2075
|
+
_registerNode(node: TreeNode, el: HTMLElement): void;
|
|
2076
|
+
/** @internal */
|
|
2077
|
+
_unregisterNode(node: TreeNode): void;
|
|
2078
|
+
/** @internal */
|
|
2079
|
+
_openContextMenu(node: TreeNode, path: TreeNode[], x: number, y: number): void;
|
|
2080
|
+
/** @internal */
|
|
2081
|
+
_runAction(action: TreeNodeActionType): void;
|
|
2082
|
+
private serializeNode;
|
|
2083
|
+
private sanitize;
|
|
2084
|
+
private scrollAndFlash;
|
|
2085
|
+
private copyToClipboard;
|
|
2086
|
+
private execCommandCopy;
|
|
2047
2087
|
static ɵfac: _angular_core.ɵɵFactoryDeclaration<TreeComponent, never>;
|
|
2048
|
-
static ɵcmp: _angular_core.ɵɵComponentDeclaration<TreeComponent, "ui-tree", never, { "nodes": { "alias": "nodes"; "required": false; "isSignal": true; }; "indent": { "alias": "indent"; "required": false; "isSignal": true; }; "draggable": { "alias": "draggable"; "required": false; "isSignal": true; }; }, { "nodeClick": "nodeClick"; "nodeExpand": "nodeExpand"; "nodeCollapse": "nodeCollapse"; "nodeDrop": "nodeDrop"; }, never, never, true, never>;
|
|
2088
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<TreeComponent, "ui-tree", never, { "nodes": { "alias": "nodes"; "required": false; "isSignal": true; }; "indent": { "alias": "indent"; "required": false; "isSignal": true; }; "draggable": { "alias": "draggable"; "required": false; "isSignal": true; }; "expandOnClick": { "alias": "expandOnClick"; "required": false; "isSignal": true; }; "contextMenu": { "alias": "contextMenu"; "required": false; "isSignal": true; }; "pathSeparator": { "alias": "pathSeparator"; "required": false; "isSignal": true; }; }, { "nodeClick": "nodeClick"; "nodeExpand": "nodeExpand"; "nodeCollapse": "nodeCollapse"; "nodeDrop": "nodeDrop"; "nodeContextAction": "nodeContextAction"; }, never, never, true, never>;
|
|
2049
2089
|
}
|
|
2050
2090
|
|
|
2051
|
-
declare class TreeNodeComponent {
|
|
2091
|
+
declare class TreeNodeComponent implements AfterViewInit, OnDestroy {
|
|
2052
2092
|
readonly node: _angular_core.InputSignal<TreeNode>;
|
|
2053
2093
|
readonly level: _angular_core.InputSignal<number>;
|
|
2054
2094
|
readonly indent: _angular_core.InputSignal<number>;
|
|
2095
|
+
readonly parentPath: _angular_core.InputSignal<TreeNode[]>;
|
|
2055
2096
|
readonly nodeClick: _angular_core.OutputEmitterRef<TreeNode>;
|
|
2056
2097
|
readonly nodeExpand: _angular_core.OutputEmitterRef<TreeNode>;
|
|
2057
2098
|
readonly nodeCollapse: _angular_core.OutputEmitterRef<TreeNode>;
|
|
2058
2099
|
private readonly treeHost;
|
|
2059
|
-
private readonly
|
|
2100
|
+
private readonly contentRef;
|
|
2101
|
+
readonly path: _angular_core.Signal<TreeNode[]>;
|
|
2060
2102
|
readonly isExpanded: _angular_core.Signal<boolean>;
|
|
2061
|
-
readonly hasChildren: _angular_core.Signal<boolean
|
|
2103
|
+
readonly hasChildren: _angular_core.Signal<boolean>;
|
|
2062
2104
|
readonly indentGuides: _angular_core.Signal<number[]>;
|
|
2063
2105
|
readonly isDraggable: _angular_core.Signal<boolean>;
|
|
2064
2106
|
readonly isDragging: _angular_core.Signal<boolean>;
|
|
2107
|
+
readonly isFlashing: _angular_core.Signal<boolean>;
|
|
2065
2108
|
readonly dropPosition: _angular_core.Signal<TreeDropPosition | null>;
|
|
2109
|
+
ngAfterViewInit(): void;
|
|
2110
|
+
ngOnDestroy(): void;
|
|
2066
2111
|
toggle(event: MouseEvent): void;
|
|
2067
2112
|
onClick(event: MouseEvent): void;
|
|
2068
2113
|
onDoubleClick(event: MouseEvent): void;
|
|
2114
|
+
onContextMenu(event: MouseEvent): void;
|
|
2069
2115
|
onDragStart(event: DragEvent): void;
|
|
2070
2116
|
onDragEnd(): void;
|
|
2071
2117
|
onDragOver(event: DragEvent): void;
|
|
@@ -2078,7 +2124,7 @@ declare class TreeNodeComponent {
|
|
|
2078
2124
|
/** @internal */
|
|
2079
2125
|
_onChildNodeCollapse(node: TreeNode): void;
|
|
2080
2126
|
static ɵfac: _angular_core.ɵɵFactoryDeclaration<TreeNodeComponent, never>;
|
|
2081
|
-
static ɵcmp: _angular_core.ɵɵComponentDeclaration<TreeNodeComponent, "ui-tree-node", never, { "node": { "alias": "node"; "required": true; "isSignal": true; }; "level": { "alias": "level"; "required": false; "isSignal": true; }; "indent": { "alias": "indent"; "required": false; "isSignal": true; }; }, { "nodeClick": "nodeClick"; "nodeExpand": "nodeExpand"; "nodeCollapse": "nodeCollapse"; }, never, never, true, never>;
|
|
2127
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<TreeNodeComponent, "ui-tree-node", never, { "node": { "alias": "node"; "required": true; "isSignal": true; }; "level": { "alias": "level"; "required": false; "isSignal": true; }; "indent": { "alias": "indent"; "required": false; "isSignal": true; }; "parentPath": { "alias": "parentPath"; "required": false; "isSignal": true; }; }, { "nodeClick": "nodeClick"; "nodeExpand": "nodeExpand"; "nodeCollapse": "nodeCollapse"; }, never, never, true, never>;
|
|
2082
2128
|
}
|
|
2083
2129
|
|
|
2084
2130
|
interface TemplateVariable {
|
|
@@ -2193,4 +2239,4 @@ declare class TemplateInputComponent implements OnDestroy, AfterViewInit {
|
|
|
2193
2239
|
}
|
|
2194
2240
|
|
|
2195
2241
|
export { AccordionComponent, AccordionHeaderDirective, AccordionItemComponent, AlertComponent, BadgeComponent, ButtonComponent, CardComponent, CellTemplateDirective, CellValuePipe, CheckboxComponent, ChipInputComponent, ChipTemplateDirective, CircularProgressComponent, ContentComponent, ContextMenuDirective, DIALOG_DATA, DIALOG_REF, DatepickerComponent, DatetimepickerComponent, DialogRef, DialogService, DropdownComponent, DropdownDividerComponent, DropdownItemComponent, DropdownTriggerDirective, DynamicTabsComponent, FileChooserComponent, FilePreviewPipe, FileSizePipe, FooterComponent, InputComponent, LOADABLE, LoadingDirective, LoadingService, ModalComponent, NavbarComponent, OptionComponent, OptionTemplateDirective, PaginationComponent, ProgressComponent, RadioComponent, RadioGroupComponent, RangeSliderComponent, SelectComponent, ShellComponent, SidebarComponent, SidebarService, SidebarToggleComponent, SliderComponent, SpinnerComponent, SplitComponent, SplitPaneComponent, SwitchComponent, TAB_DATA, TAB_REF, TREE_HOST, TabActivePipe, TabComponent, TabIconDirective, TabRef, TableComponent, TabsComponent, TabsService, TemplateInputComponent, TemplateInputSuffixDirective, TextareaComponent, TimepickerComponent, ToastRef, ToastService, TooltipDirective, TreeComponent, TreeNodeComponent, Validators, VariablePopoverDirective };
|
|
2196
|
-
export type { AccordionVariant, AlertVariant, AsyncSearchFn, AsyncSelectOption, BadgeSize, BadgeVariant, ButtonColor, ButtonSize, ButtonVariant, CardPadding, CardVariant, CheckboxSize, ChipInputSize, ChipInputVariant, ChipTemplateContext, CircularProgressSize, CircularProgressVariant, DateRange, DateRangeValue, DatepickerSize, DatepickerVariant, DatepickerView, DatetimepickerSize, DatetimepickerVariant, DatetimepickerView, DialogConfig, DropdownAlign, DropdownPosition, DynamicTabConfig, DynamicTabsSize, DynamicTabsVariant, FileChooserSize, FileChooserVariant, InputType, Loadable, ModalSize, OptionTemplateContext, PaginationSize, ProgressSize, ProgressVariant, RadioGroupOrientation, RadioGroupSize, RadioGroupVariant, RangeSliderBubbles, RangeSliderMode, RangeSliderSize, SelectSize, SelectVariant, ShellVariant, SliderSize, SortDirection, SortState, SpinnerSize, SpinnerVariant, SplitGutterSize, SplitOrientation, SplitSizeChange, SwitchSize, TabRenderMode, TableColumn, TabsSize, TabsVariant, TemplateVariable, TextareaResize, TimeFormat, TimeValue, TimepickerSize, TimepickerVariant, ToastConfig, ToastPosition, ToastVariant, TooltipPosition, TreeDropPosition, TreeNode, TreeNodeDropEvent, ValidationError, ValidationState, ValidatorFn, VariablePopoverContext, VariableState };
|
|
2242
|
+
export type { AccordionVariant, AlertVariant, AsyncSearchFn, AsyncSelectOption, BadgeSize, BadgeVariant, ButtonColor, ButtonSize, ButtonVariant, CardPadding, CardVariant, CheckboxSize, ChipInputSize, ChipInputVariant, ChipTemplateContext, CircularProgressSize, CircularProgressVariant, DateRange, DateRangeValue, DatepickerSize, DatepickerVariant, DatepickerView, DatetimepickerSize, DatetimepickerVariant, DatetimepickerView, DialogConfig, DropdownAlign, DropdownPosition, DynamicTabConfig, DynamicTabsSize, DynamicTabsVariant, FileChooserSize, FileChooserVariant, InputType, Loadable, ModalSize, OptionTemplateContext, PaginationSize, ProgressSize, ProgressVariant, RadioGroupOrientation, RadioGroupSize, RadioGroupVariant, RangeSliderBubbles, RangeSliderMode, RangeSliderSize, SelectSize, SelectVariant, ShellVariant, SliderSize, SortDirection, SortState, SpinnerSize, SpinnerVariant, SplitGutterSize, SplitOrientation, SplitSizeChange, SwitchSize, TabRenderMode, TableColumn, TabsSize, TabsVariant, TemplateVariable, TextareaResize, TimeFormat, TimeValue, TimepickerSize, TimepickerVariant, ToastConfig, ToastPosition, ToastVariant, TooltipPosition, TreeDropPosition, TreeNode, TreeNodeActionType, TreeNodeContextAction, TreeNodeDropEvent, ValidationError, ValidationState, ValidatorFn, VariablePopoverContext, VariableState };
|