@m1z23r/ngx-ui 1.1.53 → 1.1.55

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": "@m1z23r/ngx-ui",
3
- "version": "1.1.53",
3
+ "version": "1.1.55",
4
4
  "description": "A modern Angular UI component library with themeable components and responsive layout system",
5
5
  "license": "MIT",
6
6
  "author": "m1z23r",
@@ -101,4 +101,13 @@
101
101
  --ui-option-hover-bg: var(--ui-bg-hover);
102
102
  --ui-option-selected-bg: color-mix(in srgb, var(--ui-primary) 10%, transparent);
103
103
  --ui-option-selected-text: var(--ui-primary);
104
+
105
+ // JSON tree value highlighting
106
+ --ui-json-string: #16a34a;
107
+ --ui-json-number: #2563eb;
108
+ --ui-json-boolean: #9333ea;
109
+ --ui-json-bigint: var(--ui-json-number);
110
+ --ui-json-null: var(--ui-text-muted);
111
+ --ui-json-size: var(--ui-text-muted);
112
+ --ui-json-punct: var(--ui-text-muted);
104
113
  }
@@ -2008,8 +2008,14 @@ declare class SplitComponent {
2008
2008
  static ɵcmp: _angular_core.ɵɵComponentDeclaration<SplitComponent, "ui-split", never, { "orientation": { "alias": "orientation"; "required": false; "isSignal": true; }; "gutterSize": { "alias": "gutterSize"; "required": false; "isSignal": true; }; "disabled": { "alias": "disabled"; "required": false; "isSignal": true; }; }, { "sizeChange": "sizeChange"; "dragStart": "dragStart"; "dragEnd": "dragEnd"; }, ["panes"], ["*"], true, never>;
2009
2009
  }
2010
2010
 
2011
+ interface TreeLabelToken {
2012
+ text: string;
2013
+ class?: string;
2014
+ }
2011
2015
  interface TreeNode {
2012
2016
  label: string;
2017
+ /** Optional structured label. When present, rendered in place of `label` as a sequence of styled spans. */
2018
+ labelTokens?: TreeLabelToken[];
2013
2019
  icon?: string;
2014
2020
  expanded?: boolean;
2015
2021
  children?: TreeNode[];
@@ -2052,10 +2058,12 @@ declare class TreeComponent {
2052
2058
  readonly _dropPosition: _angular_core.WritableSignal<TreeDropPosition | null>;
2053
2059
  /** @internal */
2054
2060
  readonly _flashNode: _angular_core.WritableSignal<TreeNode | null>;
2055
- /** @internal context-menu target — node and its path (root → node, inclusive) */
2056
- readonly _menuNode: _angular_core.WritableSignal<TreeNode | null>;
2057
- /** @internal */
2058
- readonly _menuPath: _angular_core.WritableSignal<TreeNode[]>;
2061
+ private readonly _menuNode;
2062
+ private readonly _menuPath;
2063
+ /** Node currently targeted by the context menu (null when the menu is closed). */
2064
+ readonly menuNode: _angular_core.Signal<TreeNode | null>;
2065
+ /** Path from root to the targeted node, inclusive. Empty when the menu is closed. */
2066
+ readonly menuPath: _angular_core.Signal<TreeNode[]>;
2059
2067
  /** @internal whether the targeted node has children (drives expand/collapse-all visibility) */
2060
2068
  readonly _menuHasChildren: _angular_core.Signal<boolean>;
2061
2069
  /** @internal whether the targeted node has a parent (drives go-to/collapse-parent visibility) */
@@ -2089,7 +2097,7 @@ declare class TreeComponent {
2089
2097
  private copyToClipboard;
2090
2098
  private execCommandCopy;
2091
2099
  static ɵfac: _angular_core.ɵɵFactoryDeclaration<TreeComponent, 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>;
2100
+ 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, ["[slot=context-menu]"], true, never>;
2093
2101
  }
2094
2102
 
2095
2103
  declare class TreeNodeComponent implements AfterViewInit, OnDestroy {
@@ -2131,25 +2139,6 @@ declare class TreeNodeComponent implements AfterViewInit, OnDestroy {
2131
2139
  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>;
2132
2140
  }
2133
2141
 
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
2142
  type JsonKind = 'object' | 'array' | 'primitive';
2154
2143
  interface JsonNodeMeta {
2155
2144
  /** null for the root; string for object keys; number for array indices */
@@ -2175,6 +2164,32 @@ interface JsonToTreeOptions {
2175
2164
  */
2176
2165
  declare function jsonToTreeNodes(value: unknown, options?: JsonToTreeOptions): TreeNode[];
2177
2166
 
2167
+ declare class JsonTreeComponent {
2168
+ readonly json: _angular_core.InputSignal<unknown>;
2169
+ readonly rootLabel: _angular_core.InputSignal<string>;
2170
+ readonly pathRoot: _angular_core.InputSignal<string>;
2171
+ readonly expandDepth: _angular_core.InputSignal<number>;
2172
+ readonly indent: _angular_core.InputSignal<number>;
2173
+ readonly draggable: _angular_core.InputSignal<boolean>;
2174
+ readonly expandOnClick: _angular_core.InputSignal<boolean>;
2175
+ readonly contextMenu: _angular_core.InputSignal<boolean>;
2176
+ readonly nodeClick: _angular_core.OutputEmitterRef<TreeNode>;
2177
+ readonly nodeContextAction: _angular_core.OutputEmitterRef<TreeNodeContextAction>;
2178
+ private readonly tree;
2179
+ /** Node currently targeted by the context menu (null when the menu is closed). */
2180
+ readonly menuNode: _angular_core.Signal<TreeNode | null>;
2181
+ /** Path from root to the targeted node, inclusive. Empty when the menu is closed. */
2182
+ readonly menuPath: _angular_core.Signal<TreeNode[]>;
2183
+ /** JsonNodeMeta of the targeted node — value/kind/jsonPath, etc. */
2184
+ readonly menuMeta: _angular_core.Signal<JsonNodeMeta | null>;
2185
+ readonly nodes: _angular_core.Signal<TreeNode[]>;
2186
+ protected readonly valueFmt: TreeFormatter;
2187
+ protected readonly pathFmt: TreeFormatter;
2188
+ protected readonly objectFmt: TreeFormatter;
2189
+ static ɵfac: _angular_core.ɵɵFactoryDeclaration<JsonTreeComponent, never>;
2190
+ 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, ["[slot=context-menu]"], true, never>;
2191
+ }
2192
+
2178
2193
  interface TemplateVariable {
2179
2194
  key: string;
2180
2195
  value: string;
@@ -2287,4 +2302,4 @@ declare class TemplateInputComponent implements OnDestroy, AfterViewInit {
2287
2302
  }
2288
2303
 
2289
2304
  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 };
2305
+ 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, TreeLabelToken, TreeNode, TreeNodeActionType, TreeNodeContextAction, TreeNodeDropEvent, ValidationError, ValidationState, ValidatorFn, VariablePopoverContext, VariableState };