@m1z23r/ngx-ui 1.1.50 → 1.1.52
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
package/types/m1z23r-ngx-ui.d.ts
CHANGED
|
@@ -2027,6 +2027,7 @@ interface TreeNodeContextAction {
|
|
|
2027
2027
|
path: TreeNode[];
|
|
2028
2028
|
action: TreeNodeActionType;
|
|
2029
2029
|
}
|
|
2030
|
+
type TreeFormatter = (node: TreeNode, path: TreeNode[]) => string | null | undefined;
|
|
2030
2031
|
declare const TREE_HOST: InjectionToken<TreeComponent>;
|
|
2031
2032
|
declare class TreeComponent {
|
|
2032
2033
|
readonly nodes: _angular_core.InputSignal<TreeNode[]>;
|
|
@@ -2035,6 +2036,9 @@ declare class TreeComponent {
|
|
|
2035
2036
|
readonly expandOnClick: _angular_core.InputSignal<boolean>;
|
|
2036
2037
|
readonly contextMenu: _angular_core.InputSignal<boolean>;
|
|
2037
2038
|
readonly pathSeparator: _angular_core.InputSignal<string>;
|
|
2039
|
+
readonly valueFormatter: _angular_core.InputSignal<TreeFormatter | null>;
|
|
2040
|
+
readonly pathFormatter: _angular_core.InputSignal<TreeFormatter | null>;
|
|
2041
|
+
readonly objectFormatter: _angular_core.InputSignal<TreeFormatter | null>;
|
|
2038
2042
|
readonly nodeClick: _angular_core.OutputEmitterRef<TreeNode>;
|
|
2039
2043
|
readonly nodeExpand: _angular_core.OutputEmitterRef<TreeNode>;
|
|
2040
2044
|
readonly nodeCollapse: _angular_core.OutputEmitterRef<TreeNode>;
|
|
@@ -2085,7 +2089,7 @@ declare class TreeComponent {
|
|
|
2085
2089
|
private copyToClipboard;
|
|
2086
2090
|
private execCommandCopy;
|
|
2087
2091
|
static ɵfac: _angular_core.ɵɵFactoryDeclaration<TreeComponent, 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>;
|
|
2092
|
+
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; }; "valueFormatter": { "alias": "valueFormatter"; "required": false; "isSignal": true; }; "pathFormatter": { "alias": "pathFormatter"; "required": false; "isSignal": true; }; "objectFormatter": { "alias": "objectFormatter"; "required": false; "isSignal": true; }; }, { "nodeClick": "nodeClick"; "nodeExpand": "nodeExpand"; "nodeCollapse": "nodeCollapse"; "nodeDrop": "nodeDrop"; "nodeContextAction": "nodeContextAction"; }, never, never, true, never>;
|
|
2089
2093
|
}
|
|
2090
2094
|
|
|
2091
2095
|
declare class TreeNodeComponent implements AfterViewInit, OnDestroy {
|
|
@@ -2127,6 +2131,50 @@ declare class TreeNodeComponent implements AfterViewInit, OnDestroy {
|
|
|
2127
2131
|
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>;
|
|
2128
2132
|
}
|
|
2129
2133
|
|
|
2134
|
+
declare class JsonTreeComponent {
|
|
2135
|
+
readonly json: _angular_core.InputSignal<unknown>;
|
|
2136
|
+
readonly rootLabel: _angular_core.InputSignal<string>;
|
|
2137
|
+
readonly pathRoot: _angular_core.InputSignal<string>;
|
|
2138
|
+
readonly expandDepth: _angular_core.InputSignal<number>;
|
|
2139
|
+
readonly indent: _angular_core.InputSignal<number>;
|
|
2140
|
+
readonly draggable: _angular_core.InputSignal<boolean>;
|
|
2141
|
+
readonly expandOnClick: _angular_core.InputSignal<boolean>;
|
|
2142
|
+
readonly contextMenu: _angular_core.InputSignal<boolean>;
|
|
2143
|
+
readonly nodeClick: _angular_core.OutputEmitterRef<TreeNode>;
|
|
2144
|
+
readonly nodeContextAction: _angular_core.OutputEmitterRef<TreeNodeContextAction>;
|
|
2145
|
+
readonly nodes: _angular_core.Signal<TreeNode[]>;
|
|
2146
|
+
protected readonly valueFmt: TreeFormatter;
|
|
2147
|
+
protected readonly pathFmt: TreeFormatter;
|
|
2148
|
+
protected readonly objectFmt: TreeFormatter;
|
|
2149
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<JsonTreeComponent, never>;
|
|
2150
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<JsonTreeComponent, "ui-json-tree", never, { "json": { "alias": "json"; "required": false; "isSignal": true; }; "rootLabel": { "alias": "rootLabel"; "required": false; "isSignal": true; }; "pathRoot": { "alias": "pathRoot"; "required": false; "isSignal": true; }; "expandDepth": { "alias": "expandDepth"; "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; }; }, { "nodeClick": "nodeClick"; "nodeContextAction": "nodeContextAction"; }, never, never, true, never>;
|
|
2151
|
+
}
|
|
2152
|
+
|
|
2153
|
+
type JsonKind = 'object' | 'array' | 'primitive';
|
|
2154
|
+
interface JsonNodeMeta {
|
|
2155
|
+
/** null for the root; string for object keys; number for array indices */
|
|
2156
|
+
key: string | number | null;
|
|
2157
|
+
value: unknown;
|
|
2158
|
+
kind: JsonKind;
|
|
2159
|
+
/** Full path from root, e.g. `response.positions[0].companyName` */
|
|
2160
|
+
jsonPath: string;
|
|
2161
|
+
}
|
|
2162
|
+
interface JsonToTreeOptions {
|
|
2163
|
+
/** Display text prepended before the root's `{N}` / `[N]` / primitive value. */
|
|
2164
|
+
rootLabel?: string;
|
|
2165
|
+
/** Optional prefix for paths (e.g. `'$'` produces `$.response.x`). */
|
|
2166
|
+
pathRoot?: string;
|
|
2167
|
+
/** How many descendant levels below the root to auto-expand. Root is always expanded. */
|
|
2168
|
+
expandDepth?: number;
|
|
2169
|
+
}
|
|
2170
|
+
/**
|
|
2171
|
+
* Convert an arbitrary JSON-shaped value into a TreeNode array suitable for
|
|
2172
|
+
* `<ui-tree [nodes]>`. Each generated node carries a `data: JsonNodeMeta`.
|
|
2173
|
+
*
|
|
2174
|
+
* Returns a single-element array containing the root node.
|
|
2175
|
+
*/
|
|
2176
|
+
declare function jsonToTreeNodes(value: unknown, options?: JsonToTreeOptions): TreeNode[];
|
|
2177
|
+
|
|
2130
2178
|
interface TemplateVariable {
|
|
2131
2179
|
key: string;
|
|
2132
2180
|
value: string;
|
|
@@ -2238,5 +2286,5 @@ declare class TemplateInputComponent implements OnDestroy, AfterViewInit {
|
|
|
2238
2286
|
static ɵcmp: _angular_core.ɵɵComponentDeclaration<TemplateInputComponent, "ui-template-input", never, { "label": { "alias": "label"; "required": false; "isSignal": true; }; "placeholder": { "alias": "placeholder"; "required": false; "isSignal": true; }; "hint": { "alias": "hint"; "required": false; "isSignal": true; }; "error": { "alias": "error"; "required": false; "isSignal": true; }; "disabled": { "alias": "disabled"; "required": false; "isSignal": true; }; "readonly": { "alias": "readonly"; "required": false; "isSignal": true; }; "required": { "alias": "required"; "required": false; "isSignal": true; }; "id": { "alias": "id"; "required": false; "isSignal": true; }; "value": { "alias": "value"; "required": true; "isSignal": true; }; "variables": { "alias": "variables"; "required": true; "isSignal": true; }; }, { "value": "valueChange"; "variables": "variablesChange"; "variableHover": "variableHover"; }, ["popoverTemplate", "hasSuffix"], ["[uiTemplateInputSuffix]"], true, never>;
|
|
2239
2287
|
}
|
|
2240
2288
|
|
|
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 };
|
|
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 };
|
|
2289
|
+
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, JsonTreeComponent, 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, jsonToTreeNodes };
|
|
2290
|
+
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, JsonKind, JsonNodeMeta, JsonToTreeOptions, 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, TreeFormatter, TreeNode, TreeNodeActionType, TreeNodeContextAction, TreeNodeDropEvent, ValidationError, ValidationState, ValidatorFn, VariablePopoverContext, VariableState };
|