ngx-axis-appforge 0.0.45 → 0.0.46

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.
@@ -1,6 +1,6 @@
1
1
  import * as _angular_core from '@angular/core';
2
2
  import { OnInit, OnDestroy, WritableSignal } from '@angular/core';
3
- import { ValueAccessOptions, ValueAccess } from 'ngx-axis-appforge/core';
3
+ import { ValueAccessOptions, ValueAccess, RegisteValueAccessOptions } from 'ngx-axis-appforge/core';
4
4
  import { BaseTableOptions, SelectableTableOptions, BaseTableFieldOptions, TableService, SelectService } from 'ngx-axis-appforge/axis-components/table-helper';
5
5
  import { UntypedFormGroup, FormArray, AbstractControl } from '@angular/forms';
6
6
  import { Subscription } from 'rxjs';
@@ -74,6 +74,7 @@ declare class EditTable extends ValueAccess<EditTableOptions> implements OnInit,
74
74
  private buildScoll;
75
75
  writeValue(value: any): void;
76
76
  setInitValue(value: any): void;
77
+ childRegisteValueAccess(opt: RegisteValueAccessOptions, index: number, field: EditTableFieldOptions): void;
77
78
  valueToFormValue(): void;
78
79
  formValueToValue(): void;
79
80
  buildRow(): EditTableRowData;
@@ -2,6 +2,7 @@ import * as _angular_core from '@angular/core';
2
2
  import { ValueAccessOptions, TriggeEventsOptions, ValueAccess } from 'ngx-axis-appforge/core';
3
3
  import { NzTreeNodeOptions } from 'ng-zorro-antd/tree';
4
4
  import { NzTreeNodeKey, NzFormatEmitEvent, NzTreeNode } from 'ng-zorro-antd/core/tree';
5
+ import { NzTreeSelectComponent } from 'ng-zorro-antd/tree-select';
5
6
  import { NzCascaderOption } from 'ng-zorro-antd/cascader';
6
7
 
7
8
  declare class TreeSelectorOptions extends ValueAccessOptions {
@@ -56,12 +57,14 @@ declare class TreeSelector extends ValueAccess<TreeSelectorOptions> {
56
57
  readonly selectedKeys: _angular_core.WritableSignal<NzTreeNodeKey[]>;
57
58
  readonly selectValue: _angular_core.ModelSignal<any>;
58
59
  readonly treeNodeMap: _angular_core.Signal<Map<NzTreeNodeKey, NzTreeNodeOptions>>;
60
+ readonly inputTree?: NzTreeSelectComponent;
59
61
  readonly changeOn: (option: NzCascaderOption, level: number) => boolean;
60
62
  setInitValue(value: any): void;
61
63
  writeValue(value: any): void;
62
64
  private buildTreeData;
63
65
  private valueToComponentValue;
64
66
  nodeClick(e: NzFormatEmitEvent): void;
67
+ internalTreeNode(node: NzTreeNode, e: Event): void;
65
68
  private treeNodeToValue;
66
69
  private fullArrayToValue;
67
70
  hasExpanded(node: NzTreeNode): boolean;
package/core/index.d.ts CHANGED
@@ -192,6 +192,7 @@ interface FunFieldOptions {
192
192
  }
193
193
 
194
194
  declare abstract class FunFieldBase {
195
+ private init;
195
196
  private orivalue;
196
197
  protected readonly fb: FormBuilder;
197
198
  abstract fg: UntypedFormGroup;
@@ -201,6 +202,8 @@ declare abstract class FunFieldBase {
201
202
  valid(): boolean;
202
203
  buildFunField(obj: any, funFields?: FunFieldOptions): any;
203
204
  recoverFunField(obj: any, funFields?: FunFieldOptions, oriObj?: any): any;
205
+ static ɵfac: _angular_core.ɵɵFactoryDeclaration<FunFieldBase, never>;
206
+ static ɵdir: _angular_core.ɵɵDirectiveDeclaration<FunFieldBase, never, never, {}, {}, never, never, true, never>;
204
207
  }
205
208
 
206
209
  declare abstract class FunFieldValueBase extends FunFieldBase implements OnInit, OnDestroy, ControlValueAccessor {
@@ -1573,7 +1573,6 @@ class Design extends ValueAccess {
1573
1573
  if (newNode.canSetting && oldNode && oldNode.parentId == newNode.parentId && oldNode.settingType == newNode.settingType) {
1574
1574
  this.settingOptionsNodeId = nodeId;
1575
1575
  this.settingOptionsStr.set(JSON.stringify(newNode.options, null, " "));
1576
- Object.keys(oldNode.options).filter(k => !k.startsWith("$")).forEach(k => newNode.options[k] ??= undefined);
1577
1576
  this.settingRef?.instance.writeValue(newNode.options);
1578
1577
  return;
1579
1578
  }