@m1z23r/ngx-ui 1.1.49 → 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 +181 -24
- package/fesm2022/m1z23r-ngx-ui.mjs.map +1 -1
- package/package.json +1 -1
- package/types/m1z23r-ngx-ui.d.ts +53 -8
package/package.json
CHANGED
package/types/m1z23r-ngx-ui.d.ts
CHANGED
|
@@ -659,7 +659,7 @@ declare class ButtonComponent implements Loadable {
|
|
|
659
659
|
readonly variant: _angular_core.InputSignal<ButtonVariant>;
|
|
660
660
|
readonly color: _angular_core.InputSignal<ButtonColor>;
|
|
661
661
|
readonly size: _angular_core.InputSignal<ButtonSize>;
|
|
662
|
-
readonly type: _angular_core.InputSignal<"
|
|
662
|
+
readonly type: _angular_core.InputSignal<"reset" | "submit" | "button">;
|
|
663
663
|
readonly disabled: _angular_core.InputSignal<boolean>;
|
|
664
664
|
readonly loading: _angular_core.InputSignal<boolean>;
|
|
665
665
|
readonly clicked: _angular_core.OutputEmitterRef<MouseEvent>;
|
|
@@ -717,7 +717,7 @@ declare class InputComponent {
|
|
|
717
717
|
/** Single custom validator function */
|
|
718
718
|
readonly validatorFn: _angular_core.InputSignal<ValidatorFn | null>;
|
|
719
719
|
/** When to show validation errors: 'touched' (default), 'dirty', or 'always' */
|
|
720
|
-
readonly showErrorsOn: _angular_core.InputSignal<"
|
|
720
|
+
readonly showErrorsOn: _angular_core.InputSignal<"touched" | "dirty" | "always">;
|
|
721
721
|
readonly value: _angular_core.ModelSignal<string | number>;
|
|
722
722
|
private static nextId;
|
|
723
723
|
private readonly generatedId;
|
|
@@ -2021,16 +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>;
|
|
2029
2035
|
readonly expandOnClick: _angular_core.InputSignal<boolean>;
|
|
2036
|
+
readonly contextMenu: _angular_core.InputSignal<boolean>;
|
|
2037
|
+
readonly pathSeparator: _angular_core.InputSignal<string>;
|
|
2030
2038
|
readonly nodeClick: _angular_core.OutputEmitterRef<TreeNode>;
|
|
2031
2039
|
readonly nodeExpand: _angular_core.OutputEmitterRef<TreeNode>;
|
|
2032
2040
|
readonly nodeCollapse: _angular_core.OutputEmitterRef<TreeNode>;
|
|
2033
2041
|
readonly nodeDrop: _angular_core.OutputEmitterRef<TreeNodeDropEvent>;
|
|
2042
|
+
readonly nodeContextAction: _angular_core.OutputEmitterRef<TreeNodeContextAction>;
|
|
2034
2043
|
/** @internal */
|
|
2035
2044
|
readonly _dragNode: _angular_core.WritableSignal<TreeNode | null>;
|
|
2036
2045
|
/** @internal */
|
|
@@ -2038,6 +2047,23 @@ declare class TreeComponent {
|
|
|
2038
2047
|
/** @internal */
|
|
2039
2048
|
readonly _dropPosition: _angular_core.WritableSignal<TreeDropPosition | null>;
|
|
2040
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 */
|
|
2041
2067
|
_onNodeClick(node: TreeNode): void;
|
|
2042
2068
|
/** @internal */
|
|
2043
2069
|
_onNodeExpand(node: TreeNode): void;
|
|
@@ -2045,28 +2071,47 @@ declare class TreeComponent {
|
|
|
2045
2071
|
_onNodeCollapse(node: TreeNode): void;
|
|
2046
2072
|
/** @internal */
|
|
2047
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;
|
|
2048
2087
|
static ɵfac: _angular_core.ɵɵFactoryDeclaration<TreeComponent, never>;
|
|
2049
|
-
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; }; }, { "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>;
|
|
2050
2089
|
}
|
|
2051
2090
|
|
|
2052
|
-
declare class TreeNodeComponent {
|
|
2091
|
+
declare class TreeNodeComponent implements AfterViewInit, OnDestroy {
|
|
2053
2092
|
readonly node: _angular_core.InputSignal<TreeNode>;
|
|
2054
2093
|
readonly level: _angular_core.InputSignal<number>;
|
|
2055
2094
|
readonly indent: _angular_core.InputSignal<number>;
|
|
2095
|
+
readonly parentPath: _angular_core.InputSignal<TreeNode[]>;
|
|
2056
2096
|
readonly nodeClick: _angular_core.OutputEmitterRef<TreeNode>;
|
|
2057
2097
|
readonly nodeExpand: _angular_core.OutputEmitterRef<TreeNode>;
|
|
2058
2098
|
readonly nodeCollapse: _angular_core.OutputEmitterRef<TreeNode>;
|
|
2059
2099
|
private readonly treeHost;
|
|
2060
|
-
private readonly
|
|
2100
|
+
private readonly contentRef;
|
|
2101
|
+
readonly path: _angular_core.Signal<TreeNode[]>;
|
|
2061
2102
|
readonly isExpanded: _angular_core.Signal<boolean>;
|
|
2062
|
-
readonly hasChildren: _angular_core.Signal<boolean
|
|
2103
|
+
readonly hasChildren: _angular_core.Signal<boolean>;
|
|
2063
2104
|
readonly indentGuides: _angular_core.Signal<number[]>;
|
|
2064
2105
|
readonly isDraggable: _angular_core.Signal<boolean>;
|
|
2065
2106
|
readonly isDragging: _angular_core.Signal<boolean>;
|
|
2107
|
+
readonly isFlashing: _angular_core.Signal<boolean>;
|
|
2066
2108
|
readonly dropPosition: _angular_core.Signal<TreeDropPosition | null>;
|
|
2109
|
+
ngAfterViewInit(): void;
|
|
2110
|
+
ngOnDestroy(): void;
|
|
2067
2111
|
toggle(event: MouseEvent): void;
|
|
2068
2112
|
onClick(event: MouseEvent): void;
|
|
2069
2113
|
onDoubleClick(event: MouseEvent): void;
|
|
2114
|
+
onContextMenu(event: MouseEvent): void;
|
|
2070
2115
|
onDragStart(event: DragEvent): void;
|
|
2071
2116
|
onDragEnd(): void;
|
|
2072
2117
|
onDragOver(event: DragEvent): void;
|
|
@@ -2079,7 +2124,7 @@ declare class TreeNodeComponent {
|
|
|
2079
2124
|
/** @internal */
|
|
2080
2125
|
_onChildNodeCollapse(node: TreeNode): void;
|
|
2081
2126
|
static ɵfac: _angular_core.ɵɵFactoryDeclaration<TreeNodeComponent, never>;
|
|
2082
|
-
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>;
|
|
2083
2128
|
}
|
|
2084
2129
|
|
|
2085
2130
|
interface TemplateVariable {
|
|
@@ -2194,4 +2239,4 @@ declare class TemplateInputComponent implements OnDestroy, AfterViewInit {
|
|
|
2194
2239
|
}
|
|
2195
2240
|
|
|
2196
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 };
|
|
2197
|
-
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 };
|