ngx-axis-appforge 0.0.91 → 0.0.93
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/axis-components/input/index.d.ts +5 -2
- package/axis-components/input-number/index.d.ts +5 -1
- package/axis-components/textarea/index.d.ts +5 -2
- package/core/index.d.ts +0 -1
- package/fesm2022/ngx-axis-appforge-axis-components-input-design.mjs +0 -2
- package/fesm2022/ngx-axis-appforge-axis-components-input-design.mjs.map +1 -1
- package/fesm2022/ngx-axis-appforge-axis-components-input-number.mjs +21 -4
- package/fesm2022/ngx-axis-appforge-axis-components-input-number.mjs.map +1 -1
- package/fesm2022/ngx-axis-appforge-axis-components-input.mjs +21 -5
- package/fesm2022/ngx-axis-appforge-axis-components-input.mjs.map +1 -1
- package/fesm2022/ngx-axis-appforge-axis-components-table-helper.mjs +7 -4
- package/fesm2022/ngx-axis-appforge-axis-components-table-helper.mjs.map +1 -1
- package/fesm2022/ngx-axis-appforge-axis-components-textarea.mjs +21 -5
- package/fesm2022/ngx-axis-appforge-axis-components-textarea.mjs.map +1 -1
- package/fesm2022/ngx-axis-appforge-core.mjs +37 -41
- package/fesm2022/ngx-axis-appforge-core.mjs.map +1 -1
- package/package.json +1 -1
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import * as _angular_core from '@angular/core';
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
2
|
+
import { ElementRef } from '@angular/core';
|
|
3
|
+
import { ValueAccessOptions, ValueAccess, EventHandlerOptions } from 'ngx-axis-appforge/core';
|
|
4
|
+
import { Observable, Subject } from 'rxjs';
|
|
4
5
|
|
|
5
6
|
declare class InputOptions extends ValueAccessOptions {
|
|
6
7
|
readonly placeholder: _angular_core.WritableSignal<string>;
|
|
@@ -16,6 +17,8 @@ declare class InputOptions extends ValueAccessOptions {
|
|
|
16
17
|
declare class Input extends ValueAccess<InputOptions> {
|
|
17
18
|
constructor();
|
|
18
19
|
options: InputOptions;
|
|
20
|
+
input?: ElementRef<HTMLInputElement>;
|
|
21
|
+
onEvents(e: EventHandlerOptions<any>): Observable<boolean> | undefined;
|
|
19
22
|
readonly inputValue: _angular_core.ModelSignal<string | undefined>;
|
|
20
23
|
readonly inputSubject: Subject<unknown>;
|
|
21
24
|
writeValue(value: any): void;
|
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
import * as _angular_core from '@angular/core';
|
|
2
|
-
import { ValueAccessOptions, ValueAccess } from 'ngx-axis-appforge/core';
|
|
2
|
+
import { ValueAccessOptions, ValueAccess, EventHandlerOptions } from 'ngx-axis-appforge/core';
|
|
3
|
+
import { NzInputNumberComponent } from 'ng-zorro-antd/input-number';
|
|
4
|
+
import { Observable } from 'rxjs';
|
|
3
5
|
|
|
4
6
|
declare class InputNumberOptions extends ValueAccessOptions {
|
|
5
7
|
readonly max: _angular_core.WritableSignal<number | null>;
|
|
@@ -18,6 +20,8 @@ declare class InputNumber extends ValueAccess<InputNumberOptions> {
|
|
|
18
20
|
readonly max: _angular_core.Signal<number | null>;
|
|
19
21
|
readonly min: _angular_core.Signal<number | null>;
|
|
20
22
|
readonly digitsInfo: _angular_core.Signal<string>;
|
|
23
|
+
input?: NzInputNumberComponent;
|
|
24
|
+
onEvents(e: EventHandlerOptions<any>): Observable<boolean> | undefined;
|
|
21
25
|
static ɵfac: _angular_core.ɵɵFactoryDeclaration<InputNumber, never>;
|
|
22
26
|
static ɵcmp: _angular_core.ɵɵComponentDeclaration<InputNumber, "axis-input-number", never, {}, {}, never, never, true, never>;
|
|
23
27
|
}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import * as _angular_core from '@angular/core';
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
2
|
+
import { ElementRef } from '@angular/core';
|
|
3
|
+
import { ValueAccessOptions, ValueAccess, EventHandlerOptions } from 'ngx-axis-appforge/core';
|
|
4
|
+
import { Subject, Observable } from 'rxjs';
|
|
4
5
|
|
|
5
6
|
declare class TextareaOptions extends ValueAccessOptions {
|
|
6
7
|
readonly placeholder: _angular_core.WritableSignal<string>;
|
|
@@ -18,6 +19,8 @@ declare class Textarea extends ValueAccess<TextareaOptions> {
|
|
|
18
19
|
readonly inputValue: _angular_core.ModelSignal<string | undefined>;
|
|
19
20
|
readonly inputSubject: Subject<unknown>;
|
|
20
21
|
writeValue(value: any): void;
|
|
22
|
+
input?: ElementRef<HTMLTextAreaElement>;
|
|
23
|
+
onEvents(e: EventHandlerOptions<any>): Observable<boolean> | undefined;
|
|
21
24
|
static ɵfac: _angular_core.ɵɵFactoryDeclaration<Textarea, never>;
|
|
22
25
|
static ɵcmp: _angular_core.ɵɵComponentDeclaration<Textarea, "axis-textarea", never, { "inputValue": { "alias": "inputValue"; "required": false; "isSignal": true; }; }, { "inputValue": "inputValueChange"; }, never, never, true, never>;
|
|
23
26
|
}
|
package/core/index.d.ts
CHANGED
|
@@ -88,7 +88,6 @@ declare class ScopeDirective implements OnInit, OnDestroy {
|
|
|
88
88
|
private readonly updateDs;
|
|
89
89
|
private dynamicOptionsSubs;
|
|
90
90
|
private rootSubs;
|
|
91
|
-
private injectDataSub?;
|
|
92
91
|
private readonly instanceMap;
|
|
93
92
|
private readonly changeSubject;
|
|
94
93
|
private readonly latestUpdateOptions;
|
|
@@ -74,7 +74,6 @@ const Config = {
|
|
|
74
74
|
dropObj: nextInfo.currentObject,
|
|
75
75
|
defaultDropIndex: "prefix",
|
|
76
76
|
indexOfParentObj: "prefix",
|
|
77
|
-
rootOptions: nextInfo.currentObject,
|
|
78
77
|
children: [],
|
|
79
78
|
}));
|
|
80
79
|
next.push({
|
|
@@ -94,7 +93,6 @@ const Config = {
|
|
|
94
93
|
dropObj: nextInfo.currentObject,
|
|
95
94
|
defaultDropIndex: "suffix",
|
|
96
95
|
indexOfParentObj: "suffix",
|
|
97
|
-
rootOptions: nextInfo.currentObject,
|
|
98
96
|
children: [],
|
|
99
97
|
}));
|
|
100
98
|
next.push({
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ngx-axis-appforge-axis-components-input-design.mjs","sources":["../../../axis-components/input/design/setting/setting.ts","../../../axis-components/input/design/setting/setting.html","../../../axis-components/input/design/config.ts","../../../axis-components/input/design/ngx-axis-appforge-axis-components-input-design.ts"],"sourcesContent":["import { ChangeDetectionStrategy, Component } from '@angular/core';\nimport { FormsModule, ReactiveFormsModule, UntypedFormGroup } from '@angular/forms';\nimport { NzCollapseModule } from 'ng-zorro-antd/collapse';\nimport { NzFormModule } from 'ng-zorro-antd/form';\nimport { NzInputModule } from 'ng-zorro-antd/input';\nimport { NzInputNumberModule } from 'ng-zorro-antd/input-number';\nimport { NzRadioModule } from 'ng-zorro-antd/radio';\nimport { NzSelectModule } from 'ng-zorro-antd/select';\nimport { NzSwitchModule } from 'ng-zorro-antd/switch';\nimport { BaseDesignSetting, baseFbConfig, baseFunField, FormValidators, FunField, FunFieldOptions, FunFieldValueBase, InputTrigger, ValueDesignSetting, valueFbConfig, valueFunField } from 'ngx-axis-appforge/core';\n\n@Component({\n selector: 'axis-design-input-setting',\n imports: [FormsModule, NzCollapseModule, ReactiveFormsModule, NzInputNumberModule, NzInputModule, NzFormModule, FunField, NzSwitchModule, BaseDesignSetting, InputTrigger, NzRadioModule, ValueDesignSetting, NzSelectModule],\n templateUrl: './setting.html',\n styleUrl: './setting.css',\n changeDetection: ChangeDetectionStrategy.OnPush,\n})\nexport class Setting extends FunFieldValueBase {\n\n override fg: UntypedFormGroup = this.fb.group({\n ...baseFbConfig,\n ...valueFbConfig,\n type: [undefined, FormValidators.requiredFun],\n placeholder: [],\n variant: [\"outlined\", FormValidators.required],\n maxlength: [null],\n debounceTime: [],\n autofocus: [undefined, FormValidators.requiredFun],\n });\n\n protected override funFields: FunFieldOptions = {\n ...baseFunField,\n ...valueFunField,\n type: {\n defaultValue: \"text\"\n },\n placeholder: {\n defaultValue: \"\"\n },\n maxlength: {\n defaultValue: null\n },\n debounceTime: {\n defaultValue: \"\"\n },\n autofocus: {\n defaultValue: false\n }\n };\n}\n","<form [formGroup]=\"fg\" nz-form>\n <nz-collapse [nzBordered]=\"false\">\n <nz-collapse-panel nzHeader=\"输入设置\" nzActive>\n <nz-form-item>\n <nz-form-label nzSpan=\"8\" nzRequired>\n 输入类型\n </nz-form-label>\n <nz-form-control nzSpan=\"16\">\n <axis-fun-field formControlName=\"type\">\n <nz-radio-group ngModel [ngModelOptions]=\"{standalone:true}\">\n <label nz-radio-button nzValue=\"text\">文本</label>\n <label nz-radio-button nzValue=\"password\">密码</label>\n </nz-radio-group>\n </axis-fun-field>\n </nz-form-control>\n </nz-form-item>\n <nz-form-item>\n <nz-form-label nzSpan=\"8\">\n 最大长度\n </nz-form-label>\n <nz-form-control nzSpan=\"16\">\n <axis-fun-field formControlName=\"maxlength\">\n <nz-input-number style=\"width: 100%;\" ngModel [ngModelOptions]=\"{standalone:true}\" [nzMin]=\"1\">\n </nz-input-number>\n </axis-fun-field>\n </nz-form-control>\n </nz-form-item>\n <nz-form-item>\n <nz-form-label nzSpan=\"8\">\n 防抖时间\n </nz-form-label>\n <nz-form-control nzSpan=\"16\">\n <axis-fun-field formControlName=\"debounceTime\">\n <nz-input-number style=\"width: 100%;\" nzPlaceHolder=\"毫秒\" ngModel\n [ngModelOptions]=\"{standalone:true}\" [nzMin]=\"1\">\n </nz-input-number>\n </axis-fun-field>\n </nz-form-control>\n </nz-form-item>\n <nz-form-item>\n <nz-form-label nzSpan=\"8\" nzRequired>\n 自动焦点\n </nz-form-label>\n <nz-form-control nzSpan=\"16\">\n <axis-fun-field formControlName=\"autofocus\">\n <nz-switch ngModel [ngModelOptions]=\"{standalone:true}\"></nz-switch>\n </axis-fun-field>\n </nz-form-control>\n </nz-form-item>\n <nz-form-item>\n <nz-form-label nzSpan=\"8\" nzRequired>\n 形态变体\n </nz-form-label>\n <nz-form-control nzSpan=\"16\">\n <nz-select formControlName=\"variant\">\n <nz-option nzValue=\"outlined\" nzLabel=\"外边框\"></nz-option>\n <nz-option nzValue=\"borderless\" nzLabel=\"无边框\"></nz-option>\n <nz-option nzValue=\"filled\" nzLabel=\"填充\"></nz-option>\n <nz-option nzValue=\"underlined\" nzLabel=\"下边线\"></nz-option>\n </nz-select>\n </nz-form-control>\n </nz-form-item>\n <nz-form-item>\n <nz-form-label nzSpan=\"8\">\n 占位符\n </nz-form-label>\n <nz-form-control nzSpan=\"16\">\n <axis-fun-field formControlName=\"placeholder\">\n <input nz-input ngModel [ngModelOptions]=\"{standalone:true}\" />\n </axis-fun-field>\n </nz-form-control>\n </nz-form-item>\n </nz-collapse-panel>\n <axis-value-design-setting [fg]=\"fg\"></axis-value-design-setting>\n <axis-base-design-setting [fg]=\"fg\"></axis-base-design-setting>\n <axis-input-trigger formControlName=\"triggeEvents\" [internalTriggers]=\"['valueChange']\"\n [eventDesc]=\"[{name:'enterKeydown',title:'按下回车',ds:{value:'示例数据'}}]\"></axis-input-trigger>\n </nz-collapse>\n</form>","import { NextInfo, DesignBuildResult, DesignBindElementsResult, DesignConfig, OptionsNode, SimpleMenu } from \"ngx-axis-appforge/core\";\nimport { Setting } from \"./setting/setting\";\n\nexport const Config: DesignConfig = {\n\n componentName: \"文本输入框\",\n buildOptionsNodes(nextInfo: NextInfo): DesignBuildResult {\n const children: OptionsNode[] = [];\n const next: NextInfo[] = [];\n if (!nextInfo.currentObject.variant || nextInfo.currentObject.variant == \"outlined\") {\n children.push(new OptionsNode({\n id: nextInfo.currentObject.id + \".prefix\",\n parentId: nextInfo.currentObject.id,\n scopeId: nextInfo.scopeId,\n name: \"前缀\",\n contextMenu: SimpleMenu,\n canDrop: true,\n dropType: \"component\",\n dropObj: nextInfo.currentObject,\n defaultDropIndex: \"prefix\",\n indexOfParentObj: \"prefix\",\n rootOptions: nextInfo.currentObject,\n children: [],\n }));\n next.push({\n parentId: nextInfo.currentObject.id + \".prefix\",\n parentObject: nextInfo.currentObject,\n indexOfParent: \"prefix\",\n scopeId: nextInfo.scopeId,\n });\n children.push(new OptionsNode({\n id: nextInfo.currentObject.id + \".suffix\",\n parentId: nextInfo.currentObject.id,\n scopeId: nextInfo.scopeId,\n name: \"后缀\",\n contextMenu: SimpleMenu,\n canDrop: true,\n dropType: \"component\",\n dropObj: nextInfo.currentObject,\n defaultDropIndex: \"suffix\",\n indexOfParentObj: \"suffix\",\n rootOptions: nextInfo.currentObject,\n children: [],\n }));\n next.push({\n parentId: nextInfo.currentObject.id + \".suffix\",\n parentObject: nextInfo.currentObject,\n indexOfParent: \"suffix\",\n scopeId: nextInfo.scopeId,\n });\n }\n return {\n treeNode: new OptionsNode({\n parentId: nextInfo.parentId,\n scopeId: nextInfo.scopeId,\n name: \"文本输入框\",\n canSetting: true,\n canDrag: true,\n dragType: \"component\",\n parentObj: nextInfo.parentObject,\n indexOfParentObj: nextInfo.indexOfParent,\n rootOptions: nextInfo.currentObject,\n settingType: Setting,\n contextMenu: SimpleMenu,\n icon: \"field-string\",\n children: children\n }),\n next: next,\n };\n },\n bindElementsOptionsNode(element: HTMLElement, options: any): DesignBindElementsResult {\n const prefix: HTMLElement = element.querySelector(\".prefix-container\") as HTMLElement;\n const suffix: HTMLElement = element.querySelector(\".suffix-container\") as HTMLElement;\n return {\n [options.id]: { element },\n [`${options.id}.prefix`]: { element: prefix, dropElement: prefix },\n [`${options.id}.suffix`]: { element: suffix, dropElement: suffix }\n }\n },\n};\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './config';\n"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;AAkBM,MAAO,OAAQ,SAAQ,iBAAiB,CAAA;AAEnC,IAAA,EAAE,GAAqB,IAAI,CAAC,EAAE,CAAC,KAAK,CAAC;AAC5C,QAAA,GAAG,YAAY;AACf,QAAA,GAAG,aAAa;AAChB,QAAA,IAAI,EAAE,CAAC,SAAS,EAAE,cAAc,CAAC,WAAW,CAAC;AAC7C,QAAA,WAAW,EAAE,EAAE;AACf,QAAA,OAAO,EAAE,CAAC,UAAU,EAAE,cAAc,CAAC,QAAQ,CAAC;QAC9C,SAAS,E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,QAAQ;gBAC3B,OAAO,EAAE,QAAQ,CAAC,OAAO;AACzB,gBAAA,IAAI,EAAE,OAAO;AACb,gBAAA,UAAU,EAAE,IAAI;AAChB,gBAAA,OAAO,EAAE,IAAI;AACb,gBAAA,QAAQ,EAAE,WAAW;gBACrB,SAAS,EAAE,QAAQ,CAAC,YAAY;gBAChC,gBAAgB,EAAE,QAAQ,CAAC,aAAa;gBACxC,WAAW,EAAE,QAAQ,CAAC,aAAa;AACnC,gBAAA,WAAW,EAAE,OAAO;AACpB,gBAAA,WAAW,EAAE,UAAU;AACvB,gBAAA,IAAI,EAAE,cAAc;AACpB,gBAAA,QAAQ,EAAE;aACb,CAAC;AACF,YAAA,IAAI,EAAE,IAAI;SACb;IACL,CAAC;IACD,uBAAuB,CAAC,OAAoB,EAAE,OAAY,EAAA;QACtD,MAAM,MAAM,GAAgB,OAAO,CAAC,aAAa,CAAC,mBAAmB,CAAgB;QACrF,MAAM,MAAM,GAAgB,OAAO,CAAC,aAAa,CAAC,mBAAmB,CAAgB;QACrF,OAAO;AACH,YAAA,CAAC,OAAO,CAAC,EAAE,GAAG,EAAE,OAAO,EAAE;AACzB,YAAA,CAAC,CAAA,EAAG,OAAO,CAAC,EAAE,SAAS,GAAG,EAAE,OAAO,EAAE,MAAM,EAAE,WAAW,EAAE,MAAM,EAAE;AAClE,YAAA,CAAC,CAAA,EAAG,OAAO,CAAC,EAAE,SAAS,GAAG,EAAE,OAAO,EAAE,MAAM,EAAE,WAAW,EAAE,MAAM;SACnE;IACL,CAAC;;;AC9EL;;AAEG;;;;"}
|
|
1
|
+
{"version":3,"file":"ngx-axis-appforge-axis-components-input-design.mjs","sources":["../../../axis-components/input/design/setting/setting.ts","../../../axis-components/input/design/setting/setting.html","../../../axis-components/input/design/config.ts","../../../axis-components/input/design/ngx-axis-appforge-axis-components-input-design.ts"],"sourcesContent":["import { ChangeDetectionStrategy, Component } from '@angular/core';\nimport { FormsModule, ReactiveFormsModule, UntypedFormGroup } from '@angular/forms';\nimport { NzCollapseModule } from 'ng-zorro-antd/collapse';\nimport { NzFormModule } from 'ng-zorro-antd/form';\nimport { NzInputModule } from 'ng-zorro-antd/input';\nimport { NzInputNumberModule } from 'ng-zorro-antd/input-number';\nimport { NzRadioModule } from 'ng-zorro-antd/radio';\nimport { NzSelectModule } from 'ng-zorro-antd/select';\nimport { NzSwitchModule } from 'ng-zorro-antd/switch';\nimport { BaseDesignSetting, baseFbConfig, baseFunField, FormValidators, FunField, FunFieldOptions, FunFieldValueBase, InputTrigger, ValueDesignSetting, valueFbConfig, valueFunField } from 'ngx-axis-appforge/core';\n\n@Component({\n selector: 'axis-design-input-setting',\n imports: [FormsModule, NzCollapseModule, ReactiveFormsModule, NzInputNumberModule, NzInputModule, NzFormModule, FunField, NzSwitchModule, BaseDesignSetting, InputTrigger, NzRadioModule, ValueDesignSetting, NzSelectModule],\n templateUrl: './setting.html',\n styleUrl: './setting.css',\n changeDetection: ChangeDetectionStrategy.OnPush,\n})\nexport class Setting extends FunFieldValueBase {\n\n override fg: UntypedFormGroup = this.fb.group({\n ...baseFbConfig,\n ...valueFbConfig,\n type: [undefined, FormValidators.requiredFun],\n placeholder: [],\n variant: [\"outlined\", FormValidators.required],\n maxlength: [null],\n debounceTime: [],\n autofocus: [undefined, FormValidators.requiredFun],\n });\n\n protected override funFields: FunFieldOptions = {\n ...baseFunField,\n ...valueFunField,\n type: {\n defaultValue: \"text\"\n },\n placeholder: {\n defaultValue: \"\"\n },\n maxlength: {\n defaultValue: null\n },\n debounceTime: {\n defaultValue: \"\"\n },\n autofocus: {\n defaultValue: false\n }\n };\n}\n","<form [formGroup]=\"fg\" nz-form>\n <nz-collapse [nzBordered]=\"false\">\n <nz-collapse-panel nzHeader=\"输入设置\" nzActive>\n <nz-form-item>\n <nz-form-label nzSpan=\"8\" nzRequired>\n 输入类型\n </nz-form-label>\n <nz-form-control nzSpan=\"16\">\n <axis-fun-field formControlName=\"type\">\n <nz-radio-group ngModel [ngModelOptions]=\"{standalone:true}\">\n <label nz-radio-button nzValue=\"text\">文本</label>\n <label nz-radio-button nzValue=\"password\">密码</label>\n </nz-radio-group>\n </axis-fun-field>\n </nz-form-control>\n </nz-form-item>\n <nz-form-item>\n <nz-form-label nzSpan=\"8\">\n 最大长度\n </nz-form-label>\n <nz-form-control nzSpan=\"16\">\n <axis-fun-field formControlName=\"maxlength\">\n <nz-input-number style=\"width: 100%;\" ngModel [ngModelOptions]=\"{standalone:true}\" [nzMin]=\"1\">\n </nz-input-number>\n </axis-fun-field>\n </nz-form-control>\n </nz-form-item>\n <nz-form-item>\n <nz-form-label nzSpan=\"8\">\n 防抖时间\n </nz-form-label>\n <nz-form-control nzSpan=\"16\">\n <axis-fun-field formControlName=\"debounceTime\">\n <nz-input-number style=\"width: 100%;\" nzPlaceHolder=\"毫秒\" ngModel\n [ngModelOptions]=\"{standalone:true}\" [nzMin]=\"1\">\n </nz-input-number>\n </axis-fun-field>\n </nz-form-control>\n </nz-form-item>\n <nz-form-item>\n <nz-form-label nzSpan=\"8\" nzRequired>\n 自动焦点\n </nz-form-label>\n <nz-form-control nzSpan=\"16\">\n <axis-fun-field formControlName=\"autofocus\">\n <nz-switch ngModel [ngModelOptions]=\"{standalone:true}\"></nz-switch>\n </axis-fun-field>\n </nz-form-control>\n </nz-form-item>\n <nz-form-item>\n <nz-form-label nzSpan=\"8\" nzRequired>\n 形态变体\n </nz-form-label>\n <nz-form-control nzSpan=\"16\">\n <nz-select formControlName=\"variant\">\n <nz-option nzValue=\"outlined\" nzLabel=\"外边框\"></nz-option>\n <nz-option nzValue=\"borderless\" nzLabel=\"无边框\"></nz-option>\n <nz-option nzValue=\"filled\" nzLabel=\"填充\"></nz-option>\n <nz-option nzValue=\"underlined\" nzLabel=\"下边线\"></nz-option>\n </nz-select>\n </nz-form-control>\n </nz-form-item>\n <nz-form-item>\n <nz-form-label nzSpan=\"8\">\n 占位符\n </nz-form-label>\n <nz-form-control nzSpan=\"16\">\n <axis-fun-field formControlName=\"placeholder\">\n <input nz-input ngModel [ngModelOptions]=\"{standalone:true}\" />\n </axis-fun-field>\n </nz-form-control>\n </nz-form-item>\n </nz-collapse-panel>\n <axis-value-design-setting [fg]=\"fg\"></axis-value-design-setting>\n <axis-base-design-setting [fg]=\"fg\"></axis-base-design-setting>\n <axis-input-trigger formControlName=\"triggeEvents\" [internalTriggers]=\"['valueChange']\"\n [eventDesc]=\"[{name:'enterKeydown',title:'按下回车',ds:{value:'示例数据'}}]\"></axis-input-trigger>\n </nz-collapse>\n</form>","import { NextInfo, DesignBuildResult, DesignBindElementsResult, DesignConfig, OptionsNode, SimpleMenu } from \"ngx-axis-appforge/core\";\nimport { Setting } from \"./setting/setting\";\n\nexport const Config: DesignConfig = {\n\n componentName: \"文本输入框\",\n buildOptionsNodes(nextInfo: NextInfo): DesignBuildResult {\n const children: OptionsNode[] = [];\n const next: NextInfo[] = [];\n if (!nextInfo.currentObject.variant || nextInfo.currentObject.variant == \"outlined\") {\n children.push(new OptionsNode({\n id: nextInfo.currentObject.id + \".prefix\",\n parentId: nextInfo.currentObject.id,\n scopeId: nextInfo.scopeId,\n name: \"前缀\",\n contextMenu: SimpleMenu,\n canDrop: true,\n dropType: \"component\",\n dropObj: nextInfo.currentObject,\n defaultDropIndex: \"prefix\",\n indexOfParentObj: \"prefix\",\n children: [],\n }));\n next.push({\n parentId: nextInfo.currentObject.id + \".prefix\",\n parentObject: nextInfo.currentObject,\n indexOfParent: \"prefix\",\n scopeId: nextInfo.scopeId,\n });\n children.push(new OptionsNode({\n id: nextInfo.currentObject.id + \".suffix\",\n parentId: nextInfo.currentObject.id,\n scopeId: nextInfo.scopeId,\n name: \"后缀\",\n contextMenu: SimpleMenu,\n canDrop: true,\n dropType: \"component\",\n dropObj: nextInfo.currentObject,\n defaultDropIndex: \"suffix\",\n indexOfParentObj: \"suffix\",\n children: [],\n }));\n next.push({\n parentId: nextInfo.currentObject.id + \".suffix\",\n parentObject: nextInfo.currentObject,\n indexOfParent: \"suffix\",\n scopeId: nextInfo.scopeId,\n });\n }\n return {\n treeNode: new OptionsNode({\n parentId: nextInfo.parentId,\n scopeId: nextInfo.scopeId,\n name: \"文本输入框\",\n canSetting: true,\n canDrag: true,\n dragType: \"component\",\n parentObj: nextInfo.parentObject,\n indexOfParentObj: nextInfo.indexOfParent,\n rootOptions: nextInfo.currentObject,\n settingType: Setting,\n contextMenu: SimpleMenu,\n icon: \"field-string\",\n children: children\n }),\n next: next,\n };\n },\n bindElementsOptionsNode(element: HTMLElement, options: any): DesignBindElementsResult {\n const prefix: HTMLElement = element.querySelector(\".prefix-container\") as HTMLElement;\n const suffix: HTMLElement = element.querySelector(\".suffix-container\") as HTMLElement;\n return {\n [options.id]: { element },\n [`${options.id}.prefix`]: { element: prefix, dropElement: prefix },\n [`${options.id}.suffix`]: { element: suffix, dropElement: suffix }\n }\n },\n};\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './config';\n"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;AAkBM,MAAO,OAAQ,SAAQ,iBAAiB,CAAA;AAEnC,IAAA,EAAE,GAAqB,IAAI,CAAC,EAAE,CAAC,KAAK,CAAC;AAC5C,QAAA,GAAG,YAAY;AACf,QAAA,GAAG,aAAa;AAChB,QAAA,IAAI,EAAE,CAAC,SAAS,EAAE,cAAc,CAAC,WAAW,CAAC;AAC7C,QAAA,WAAW,EAAE,EAAE;AACf,QAAA,OAAO,EAAE,CAAC,UAAU,EAAE,cAAc,CAAC,QAAQ,CAAC;QAC9C,SAAS,EAAE,CAAC,IAAI,CAAC;AACjB,QAAA,YAAY,EAAE,EAAE;AAChB,QAAA,SAAS,EAAE,CAAC,SAAS,EAAE,cAAc,CAAC,WAAW,CAAC;AACnD,KAAA,CAAC;AAEiB,IAAA,SAAS,GAAoB;AAC9C,QAAA,GAAG,YAAY;AACf,QAAA,GAAG,aAAa;AAChB,QAAA,IAAI,EAAE;AACJ,YAAA,YAAY,EAAE;AACf,SAAA;AACD,QAAA,WAAW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A,IAAI,EAAE,cAAc;AACpB,gBAAA,QAAQ,EAAE;aACb,CAAC;AACF,YAAA,IAAI,EAAE,IAAI;SACb;IACL,CAAC;IACD,uBAAuB,CAAC,OAAoB,EAAE,OAAY,EAAA;QACtD,MAAM,MAAM,GAAgB,OAAO,CAAC,aAAa,CAAC,mBAAmB,CAAgB;QACrF,MAAM,MAAM,GAAgB,OAAO,CAAC,aAAa,CAAC,mBAAmB,CAAgB;QACrF,OAAO;AACH,YAAA,CAAC,OAAO,CAAC,EAAE,GAAG,EAAE,OAAO,EAAE;AACzB,YAAA,CAAC,CAAA,EAAG,OAAO,CAAC,EAAE,SAAS,GAAG,EAAE,OAAO,EAAE,MAAM,EAAE,WAAW,EAAE,MAAM,EAAE;AAClE,YAAA,CAAC,CAAA,EAAG,OAAO,CAAC,EAAE,SAAS,GAAG,EAAE,OAAO,EAAE,MAAM,EAAE,WAAW,EAAE,MAAM;SACnE;IACL,CAAC;;;AC5EL;;AAEG;;;;"}
|
|
@@ -1,12 +1,13 @@
|
|
|
1
1
|
import * as i0 from '@angular/core';
|
|
2
|
-
import { signal, computed, ChangeDetectionStrategy, Component } from '@angular/core';
|
|
2
|
+
import { signal, computed, ViewChild, ChangeDetectionStrategy, Component } from '@angular/core';
|
|
3
3
|
import { ValueAccessOptions, ValueAccess } from 'ngx-axis-appforge/core';
|
|
4
4
|
import * as i1 from 'ng-zorro-antd/input-number';
|
|
5
|
-
import { NzInputNumberModule } from 'ng-zorro-antd/input-number';
|
|
5
|
+
import { NzInputNumberModule, NzInputNumberComponent } from 'ng-zorro-antd/input-number';
|
|
6
6
|
import * as i2 from '@angular/forms';
|
|
7
7
|
import { FormsModule } from '@angular/forms';
|
|
8
8
|
import * as i3 from '@angular/common';
|
|
9
9
|
import { CommonModule } from '@angular/common';
|
|
10
|
+
import { of } from 'rxjs';
|
|
10
11
|
|
|
11
12
|
class InputNumberOptions extends ValueAccessOptions {
|
|
12
13
|
max = signal(null, ...(ngDevMode ? [{ debugName: "max" }] : []));
|
|
@@ -32,13 +33,29 @@ class InputNumber extends ValueAccess {
|
|
|
32
33
|
return `1.0-${this.options.precision()}`;
|
|
33
34
|
}
|
|
34
35
|
}, ...(ngDevMode ? [{ debugName: "digitsInfo" }] : []));
|
|
36
|
+
input;
|
|
37
|
+
onEvents(e) {
|
|
38
|
+
const obs = super.onEvents?.(e);
|
|
39
|
+
if (obs) {
|
|
40
|
+
return obs;
|
|
41
|
+
}
|
|
42
|
+
switch (e.name) {
|
|
43
|
+
case "setFocus":
|
|
44
|
+
this.input?.focus();
|
|
45
|
+
return of(true);
|
|
46
|
+
}
|
|
47
|
+
return undefined;
|
|
48
|
+
}
|
|
35
49
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.15", ngImport: i0, type: InputNumber, deps: null, target: i0.ɵɵFactoryTarget.Component });
|
|
36
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.3.15", type: InputNumber, isStandalone: true, selector: "axis-input-number", usesInheritance: true, ngImport: i0, template: "@if (options.readonly()) {\n<span>\n {{value() | number:digitsInfo()}}\n</span>\n}@else {\n<nz-input-number style=\"width: 100%;\" [(ngModel)]=\"value\" (ngModelChange)=\"onChange?.($event)\" [nzMax]=\"max()\"\n [nzMin]=\"min()\" [nzStep]=\"options.step()\" [nzPrecision]=\"options.precision()\" [nzControls]=\"options.controls()\"\n [nzPlaceHolder]=\"options.placeholder()\" [nzVariant]=\"options.variant()\" [nzSize]=\"options.size()\"\n [class]=\"`align-${options.align()}`\" [nzDisabled]=\"options.disabled()\"\n [class.controls]=\"options.controls()\"></nz-input-number>\n}", styles: [":host{display:block;width:100%}.align-left ::ng-deep input{text-align:left}.align-center ::ng-deep input{text-align:center}.align-right ::ng-deep input{text-align:right}.controls ::ng-deep input:focus,.controls:hover ::ng-deep input,.controls ::ng-deep .ant-input-number-focused input{padding-right:25px}\n"], dependencies: [{ kind: "ngmodule", type: NzInputNumberModule }, { kind: "component", type: i1.NzInputNumberComponent, selector: "nz-input-number", inputs: ["nzId", "nzSize", "nzPlaceHolder", "nzStatus", "nzVariant", "nzStep", "nzMin", "nzMax", "nzPrecision", "nzParser", "nzFormatter", "nzDisabled", "nzReadOnly", "nzAutoFocus", "nzBordered", "nzKeyboard", "nzControls", "nzPrefix", "nzSuffix", "nzAddonBefore", "nzAddonAfter"], outputs: ["nzBlur", "nzFocus", "nzOnStep"], exportAs: ["nzInputNumber"] }, { kind: "ngmodule", type: FormsModule }, { kind: "directive", type: i2.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i2.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { kind: "ngmodule", type: CommonModule }, { kind: "pipe", type: i3.DecimalPipe, name: "number" }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
50
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.3.15", type: InputNumber, isStandalone: true, selector: "axis-input-number", viewQueries: [{ propertyName: "input", first: true, predicate: NzInputNumberComponent, descendants: true }], usesInheritance: true, ngImport: i0, template: "@if (options.readonly()) {\n<span>\n {{value() | number:digitsInfo()}}\n</span>\n}@else {\n<nz-input-number style=\"width: 100%;\" [(ngModel)]=\"value\" (ngModelChange)=\"onChange?.($event)\" [nzMax]=\"max()\"\n [nzMin]=\"min()\" [nzStep]=\"options.step()\" [nzPrecision]=\"options.precision()\" [nzControls]=\"options.controls()\"\n [nzPlaceHolder]=\"options.placeholder()\" [nzVariant]=\"options.variant()\" [nzSize]=\"options.size()\"\n [class]=\"`align-${options.align()}`\" [nzDisabled]=\"options.disabled()\"\n [class.controls]=\"options.controls()\"></nz-input-number>\n}", styles: [":host{display:block;width:100%}.align-left ::ng-deep input{text-align:left}.align-center ::ng-deep input{text-align:center}.align-right ::ng-deep input{text-align:right}.controls ::ng-deep input:focus,.controls:hover ::ng-deep input,.controls ::ng-deep .ant-input-number-focused input{padding-right:25px}\n"], dependencies: [{ kind: "ngmodule", type: NzInputNumberModule }, { kind: "component", type: i1.NzInputNumberComponent, selector: "nz-input-number", inputs: ["nzId", "nzSize", "nzPlaceHolder", "nzStatus", "nzVariant", "nzStep", "nzMin", "nzMax", "nzPrecision", "nzParser", "nzFormatter", "nzDisabled", "nzReadOnly", "nzAutoFocus", "nzBordered", "nzKeyboard", "nzControls", "nzPrefix", "nzSuffix", "nzAddonBefore", "nzAddonAfter"], outputs: ["nzBlur", "nzFocus", "nzOnStep"], exportAs: ["nzInputNumber"] }, { kind: "ngmodule", type: FormsModule }, { kind: "directive", type: i2.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i2.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { kind: "ngmodule", type: CommonModule }, { kind: "pipe", type: i3.DecimalPipe, name: "number" }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
37
51
|
}
|
|
38
52
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.15", ngImport: i0, type: InputNumber, decorators: [{
|
|
39
53
|
type: Component,
|
|
40
54
|
args: [{ selector: 'axis-input-number', imports: [NzInputNumberModule, FormsModule, CommonModule], changeDetection: ChangeDetectionStrategy.OnPush, template: "@if (options.readonly()) {\n<span>\n {{value() | number:digitsInfo()}}\n</span>\n}@else {\n<nz-input-number style=\"width: 100%;\" [(ngModel)]=\"value\" (ngModelChange)=\"onChange?.($event)\" [nzMax]=\"max()\"\n [nzMin]=\"min()\" [nzStep]=\"options.step()\" [nzPrecision]=\"options.precision()\" [nzControls]=\"options.controls()\"\n [nzPlaceHolder]=\"options.placeholder()\" [nzVariant]=\"options.variant()\" [nzSize]=\"options.size()\"\n [class]=\"`align-${options.align()}`\" [nzDisabled]=\"options.disabled()\"\n [class.controls]=\"options.controls()\"></nz-input-number>\n}", styles: [":host{display:block;width:100%}.align-left ::ng-deep input{text-align:left}.align-center ::ng-deep input{text-align:center}.align-right ::ng-deep input{text-align:right}.controls ::ng-deep input:focus,.controls:hover ::ng-deep input,.controls ::ng-deep .ant-input-number-focused input{padding-right:25px}\n"] }]
|
|
41
|
-
}]
|
|
55
|
+
}], propDecorators: { input: [{
|
|
56
|
+
type: ViewChild,
|
|
57
|
+
args: [NzInputNumberComponent]
|
|
58
|
+
}] } });
|
|
42
59
|
|
|
43
60
|
/**
|
|
44
61
|
* Generated bundle index. Do not edit.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ngx-axis-appforge-axis-components-input-number.mjs","sources":["../../../axis-components/input-number/input-number.options.ts","../../../axis-components/input-number/input-number.ts","../../../axis-components/input-number/input-number.html","../../../axis-components/input-number/ngx-axis-appforge-axis-components-input-number.ts"],"sourcesContent":["import { signal } from \"@angular/core\";\nimport { ValueAccessOptions } from \"ngx-axis-appforge/core\";\n\nexport class InputNumberOptions extends ValueAccessOptions {\n\n readonly max = signal<number | null>(null);\n readonly min = signal<number | null>(null);\n readonly step = signal(1);\n readonly precision = signal<number | null>(null);\n\n readonly controls = signal(true);\n readonly placeholder = signal(\"\");\n readonly variant = signal<'outlined' | 'borderless' | 'filled' | 'underlined'>(\"outlined\");\n readonly size = signal<'large' | 'default' | 'small'>('default');\n readonly align = signal<\"left\" | \"center\" | \"right\">('left');\n\n}","import { ChangeDetectionStrategy, Component, computed } from '@angular/core';\nimport { InputNumberOptions } from './input-number.options';\nimport { ValueAccess } from 'ngx-axis-appforge/core';\nimport { NzInputNumberModule } from 'ng-zorro-antd/input-number';\nimport { FormsModule } from '@angular/forms';\nimport { CommonModule } from '@angular/common';\n\n@Component({\n selector: 'axis-input-number',\n imports: [NzInputNumberModule, FormsModule, CommonModule],\n templateUrl: './input-number.html',\n styleUrl: './input-number.css',\n changeDetection: ChangeDetectionStrategy.OnPush,\n})\nexport class InputNumber extends ValueAccess<InputNumberOptions> {\n\n override options: InputNumberOptions = new InputNumberOptions();\n\n readonly max = computed(() => this.options.max() == null ? Number.MAX_SAFE_INTEGER : this.options.max());\n readonly min = computed(() => this.options.min() == null ? Number.MIN_SAFE_INTEGER : this.options.min());\n\n readonly digitsInfo = computed(() => {\n if (this.options.precision() == null) {\n return \"1.0\"\n } else {\n return `1.0-${this.options.precision()}`;\n }\n })\n\n}\n","@if (options.readonly()) {\n<span>\n {{value() | number:digitsInfo()}}\n</span>\n}@else {\n<nz-input-number style=\"width: 100%;\" [(ngModel)]=\"value\" (ngModelChange)=\"onChange?.($event)\" [nzMax]=\"max()\"\n [nzMin]=\"min()\" [nzStep]=\"options.step()\" [nzPrecision]=\"options.precision()\" [nzControls]=\"options.controls()\"\n [nzPlaceHolder]=\"options.placeholder()\" [nzVariant]=\"options.variant()\" [nzSize]=\"options.size()\"\n [class]=\"`align-${options.align()}`\" [nzDisabled]=\"options.disabled()\"\n [class.controls]=\"options.controls()\"></nz-input-number>\n}","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './input-number';\n"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"ngx-axis-appforge-axis-components-input-number.mjs","sources":["../../../axis-components/input-number/input-number.options.ts","../../../axis-components/input-number/input-number.ts","../../../axis-components/input-number/input-number.html","../../../axis-components/input-number/ngx-axis-appforge-axis-components-input-number.ts"],"sourcesContent":["import { signal } from \"@angular/core\";\nimport { ValueAccessOptions } from \"ngx-axis-appforge/core\";\n\nexport class InputNumberOptions extends ValueAccessOptions {\n\n readonly max = signal<number | null>(null);\n readonly min = signal<number | null>(null);\n readonly step = signal(1);\n readonly precision = signal<number | null>(null);\n\n readonly controls = signal(true);\n readonly placeholder = signal(\"\");\n readonly variant = signal<'outlined' | 'borderless' | 'filled' | 'underlined'>(\"outlined\");\n readonly size = signal<'large' | 'default' | 'small'>('default');\n readonly align = signal<\"left\" | \"center\" | \"right\">('left');\n\n}","import { ChangeDetectionStrategy, Component, computed, ViewChild } from '@angular/core';\nimport { InputNumberOptions } from './input-number.options';\nimport { EventHandlerOptions, ValueAccess } from 'ngx-axis-appforge/core';\nimport { NzInputNumberComponent, NzInputNumberModule } from 'ng-zorro-antd/input-number';\nimport { FormsModule } from '@angular/forms';\nimport { CommonModule } from '@angular/common';\nimport { Observable, of } from 'rxjs';\n\n@Component({\n selector: 'axis-input-number',\n imports: [NzInputNumberModule, FormsModule, CommonModule],\n templateUrl: './input-number.html',\n styleUrl: './input-number.css',\n changeDetection: ChangeDetectionStrategy.OnPush,\n})\nexport class InputNumber extends ValueAccess<InputNumberOptions> {\n\n override options: InputNumberOptions = new InputNumberOptions();\n\n readonly max = computed(() => this.options.max() == null ? Number.MAX_SAFE_INTEGER : this.options.max());\n readonly min = computed(() => this.options.min() == null ? Number.MIN_SAFE_INTEGER : this.options.min());\n\n readonly digitsInfo = computed(() => {\n if (this.options.precision() == null) {\n return \"1.0\"\n } else {\n return `1.0-${this.options.precision()}`;\n }\n })\n\n @ViewChild(NzInputNumberComponent)\n input?: NzInputNumberComponent;\n\n override onEvents(e: EventHandlerOptions<any>): Observable<boolean> | undefined {\n const obs = super.onEvents?.(e);\n if (obs) {\n return obs;\n }\n switch (e.name) {\n case \"setFocus\":\n this.input?.focus();\n return of(true);\n }\n return undefined;\n }\n\n}\n","@if (options.readonly()) {\n<span>\n {{value() | number:digitsInfo()}}\n</span>\n}@else {\n<nz-input-number style=\"width: 100%;\" [(ngModel)]=\"value\" (ngModelChange)=\"onChange?.($event)\" [nzMax]=\"max()\"\n [nzMin]=\"min()\" [nzStep]=\"options.step()\" [nzPrecision]=\"options.precision()\" [nzControls]=\"options.controls()\"\n [nzPlaceHolder]=\"options.placeholder()\" [nzVariant]=\"options.variant()\" [nzSize]=\"options.size()\"\n [class]=\"`align-${options.align()}`\" [nzDisabled]=\"options.disabled()\"\n [class.controls]=\"options.controls()\"></nz-input-number>\n}","/**\n * Generated bundle index. Do not edit.\n */\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A,UAAA,EAAA,IAAA,EAAE,WAAW,EAAA,EAAA,EAAA,IAAA,EAAA,WAAA,EAAA,IAAA,EAAA,EAAA,CAAA,eAAA,EAAA,QAAA,EAAA,2CAAA,EAAA,EAAA,EAAA,IAAA,EAAA,WAAA,EAAA,IAAA,EAAA,EAAA,CAAA,OAAA,EAAA,QAAA,EAAA,qDAAA,EAAA,MAAA,EAAA,CAAA,MAAA,EAAA,UAAA,EAAA,SAAA,EAAA,gBAAA,CAAA,EAAA,OAAA,EAAA,CAAA,eAAA,CAAA,EAAA,QAAA,EAAA,CAAA,SAAA,CAAA,EAAA,EAAA,EAAA,IAAA,EAAA,UAAA,EAAA,IAAA,EAAE,YAAY,EAAA,EAAA,EAAA,IAAA,EAAA,MAAA,EAAA,IAAA,EAAA,EAAA,CAAA,WAAA,EAAA,IAAA,EAAA,QAAA,EAAA,CAAA,EAAA,eAAA,EAAA,EAAA,CAAA,uBAAA,CAAA,MAAA,EAAA,CAAA;;4FAK7C,WAAW,EAAA,UAAA,EAAA,CAAA;kBAPvB,SAAS;+BACE,mBAAmB,EAAA,OAAA,EACpB,CAAC,mBAAmB,EAAE,WAAW,EAAE,YAAY,CAAC,EAAA,eAAA,EAGxC,uBAAuB,CAAC,MAAM,EAAA,QAAA,EAAA,mlBAAA,EAAA,MAAA,EAAA,CAAA,oTAAA,CAAA,EAAA;;sBAiB9C,SAAS;uBAAC,sBAAsB;;;AE9BnC;;AAEG;;;;"}
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import * as i0 from '@angular/core';
|
|
2
|
-
import { signal, effect, model, ChangeDetectionStrategy, Component } from '@angular/core';
|
|
2
|
+
import { signal, effect, model, ViewChild, ChangeDetectionStrategy, Component } from '@angular/core';
|
|
3
3
|
import { ValueAccessOptions, ValueAccess, DynamicDirective } from 'ngx-axis-appforge/core';
|
|
4
4
|
import * as i2 from '@angular/forms';
|
|
5
5
|
import { FormsModule } from '@angular/forms';
|
|
6
6
|
import * as i1 from 'ng-zorro-antd/input';
|
|
7
7
|
import { NzInputModule } from 'ng-zorro-antd/input';
|
|
8
|
-
import { debounceTime, Subject } from 'rxjs';
|
|
8
|
+
import { debounceTime, of, Subject } from 'rxjs';
|
|
9
9
|
|
|
10
10
|
class InputOptions extends ValueAccessOptions {
|
|
11
11
|
placeholder = signal("", ...(ngDevMode ? [{ debugName: "placeholder" }] : []));
|
|
@@ -43,6 +43,19 @@ class Input extends ValueAccess {
|
|
|
43
43
|
});
|
|
44
44
|
}
|
|
45
45
|
options = new InputOptions();
|
|
46
|
+
input;
|
|
47
|
+
onEvents(e) {
|
|
48
|
+
const obs = super.onEvents?.(e);
|
|
49
|
+
if (obs) {
|
|
50
|
+
return obs;
|
|
51
|
+
}
|
|
52
|
+
switch (e.name) {
|
|
53
|
+
case "setFocus":
|
|
54
|
+
this.input?.nativeElement.focus();
|
|
55
|
+
return of(true);
|
|
56
|
+
}
|
|
57
|
+
return undefined;
|
|
58
|
+
}
|
|
46
59
|
inputValue = model(...(ngDevMode ? [undefined, { debugName: "inputValue" }] : []));
|
|
47
60
|
inputSubject = new Subject();
|
|
48
61
|
writeValue(value) {
|
|
@@ -53,12 +66,15 @@ class Input extends ValueAccess {
|
|
|
53
66
|
this.triggeEvents("enterKeydown", { value: this.inputValue() }).subscribe();
|
|
54
67
|
}
|
|
55
68
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.15", ngImport: i0, type: Input, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
56
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.3.15", type: Input, isStandalone: true, selector: "axis-input", inputs: { inputValue: { classPropertyName: "inputValue", publicName: "inputValue", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { inputValue: "inputValueChange" }, usesInheritance: true, ngImport: i0, template: "@if (options.readonly()) {\n<span>\n {{value()}}\n</span>\n}@else {\n@if (options.variant()==\"outlined\") {\n<nz-input-group [nzSuffix]=\"suffixTemplate\" [nzPrefix]=\"prefixTemplate\">\n <input (keydown.enter)=\"onEnter()\" [type]=\"options.type()\" nz-input [disabled]=\"options.disabled()\"\n [(ngModel)]=\"inputValue\" (ngModelChange)=\"inputSubject.next($event)\" [placeholder]=\"options.placeholder()\"\n [maxLength]=\"options.maxlength()||9999999\" [autofocus]=\"options.autofocus()\"
|
|
69
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.3.15", type: Input, isStandalone: true, selector: "axis-input", inputs: { inputValue: { classPropertyName: "inputValue", publicName: "inputValue", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { inputValue: "inputValueChange" }, viewQueries: [{ propertyName: "input", first: true, predicate: ["input"], descendants: true }], usesInheritance: true, ngImport: i0, template: "@if (options.readonly()) {\n<span>\n {{value()}}\n</span>\n}@else {\n@if (options.variant()==\"outlined\") {\n<nz-input-wrapper>\n @if (options.prefix()) {\n <div nzInputAddonBefore class=\"prefix-container\">\n <ng-container [axisDynamic]=\"options.prefix()\"></ng-container>\n </div>\n }\n <input #input (keydown.enter)=\"onEnter()\" [type]=\"options.type()\" nz-input [disabled]=\"options.disabled()\"\n [(ngModel)]=\"inputValue\" (ngModelChange)=\"inputSubject.next($event)\" [placeholder]=\"options.placeholder()\"\n [maxLength]=\"options.maxlength()||9999999\" [autofocus]=\"options.autofocus()\">\n @if (options.suffix()) {\n <div nzInputAddonAfter class=\"suffix-container\">\n <ng-container [axisDynamic]=\"options.suffix()\"></ng-container>\n </div>\n }\n</nz-input-wrapper>\n<!-- <nz-input-group [nzSuffix]=\"suffixTemplate\" [nzPrefix]=\"prefixTemplate\">\n <input (keydown.enter)=\"onEnter()\" [type]=\"options.type()\" nz-input [disabled]=\"options.disabled()\"\n [(ngModel)]=\"inputValue\" (ngModelChange)=\"inputSubject.next($event)\" [placeholder]=\"options.placeholder()\"\n [maxLength]=\"options.maxlength()||9999999\" [autofocus]=\"options.autofocus()\">\n</nz-input-group>\n<ng-template #prefixTemplate>\n <div class=\"prefix-container\">\n @if (options.prefix()) {\n <ng-container [axisDynamic]=\"options.prefix()\"></ng-container>\n }\n </div>\n</ng-template>\n<ng-template #suffixTemplate>\n <div class=\"suffix-container\">\n @if (options.suffix()) {\n <ng-container [axisDynamic]=\"options.suffix()\"></ng-container>\n }\n </div>\n</ng-template> -->\n}@else {\n<input (keydown.enter)=\"onEnter()\" [type]=\"options.type()\" nz-input [nzVariant]=\"options.variant()\"\n [disabled]=\"options.disabled()\" [(ngModel)]=\"inputValue\" (ngModelChange)=\"inputSubject.next($event)\"\n [placeholder]=\"options.placeholder()\" [maxLength]=\"options.maxlength()||9999999\"\n [autofocus]=\"options.autofocus()\" />\n}\n}", styles: [":host{display:block;width:100%}\n"], dependencies: [{ kind: "ngmodule", type: NzInputModule }, { kind: "directive", type: i1.NzInputDirective, selector: "input[nz-input],textarea[nz-input]", inputs: ["nzBorderless", "nzVariant", "nzSize", "nzStepperless", "nzStatus", "disabled", "readonly"], exportAs: ["nzInput"] }, { kind: "component", type: i1.NzInputWrapperComponent, selector: "nz-input-wrapper,nz-input-password,nz-input-search", inputs: ["nzAllowClear", "nzPrefix", "nzSuffix", "nzAddonBefore", "nzAddonAfter"], outputs: ["nzClear"], exportAs: ["nzInputWrapper"] }, { kind: "directive", type: i1.NzInputAddonBeforeDirective, selector: "[nzInputAddonBefore]" }, { kind: "directive", type: i1.NzInputAddonAfterDirective, selector: "[nzInputAddonAfter]" }, { kind: "ngmodule", type: FormsModule }, { kind: "directive", type: i2.DefaultValueAccessor, selector: "input:not([type=checkbox])[formControlName],textarea[formControlName],input:not([type=checkbox])[formControl],textarea[formControl],input:not([type=checkbox])[ngModel],textarea[ngModel],[ngDefaultControl]" }, { kind: "directive", type: i2.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i2.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { kind: "directive", type: DynamicDirective, selector: "[axisDynamic]", inputs: ["axisDynamic", "standalone", "isDesign", "forceRenderOnChange"], outputs: ["onRegisteValueAccess"], exportAs: ["axisDynamic"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
57
70
|
}
|
|
58
71
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.15", ngImport: i0, type: Input, decorators: [{
|
|
59
72
|
type: Component,
|
|
60
|
-
args: [{ selector: 'axis-input', imports: [NzInputModule, FormsModule, DynamicDirective], changeDetection: ChangeDetectionStrategy.OnPush, template: "@if (options.readonly()) {\n<span>\n {{value()}}\n</span>\n}@else {\n@if (options.variant()==\"outlined\") {\n<nz-input-group [nzSuffix]=\"suffixTemplate\" [nzPrefix]=\"prefixTemplate\">\n <input (keydown.enter)=\"onEnter()\" [type]=\"options.type()\" nz-input [disabled]=\"options.disabled()\"\n [(ngModel)]=\"inputValue\" (ngModelChange)=\"inputSubject.next($event)\" [placeholder]=\"options.placeholder()\"\n [maxLength]=\"options.maxlength()||9999999\" [autofocus]=\"options.autofocus()\"
|
|
61
|
-
}], ctorParameters: () => [], propDecorators: {
|
|
73
|
+
args: [{ selector: 'axis-input', imports: [NzInputModule, FormsModule, DynamicDirective], changeDetection: ChangeDetectionStrategy.OnPush, template: "@if (options.readonly()) {\n<span>\n {{value()}}\n</span>\n}@else {\n@if (options.variant()==\"outlined\") {\n<nz-input-wrapper>\n @if (options.prefix()) {\n <div nzInputAddonBefore class=\"prefix-container\">\n <ng-container [axisDynamic]=\"options.prefix()\"></ng-container>\n </div>\n }\n <input #input (keydown.enter)=\"onEnter()\" [type]=\"options.type()\" nz-input [disabled]=\"options.disabled()\"\n [(ngModel)]=\"inputValue\" (ngModelChange)=\"inputSubject.next($event)\" [placeholder]=\"options.placeholder()\"\n [maxLength]=\"options.maxlength()||9999999\" [autofocus]=\"options.autofocus()\">\n @if (options.suffix()) {\n <div nzInputAddonAfter class=\"suffix-container\">\n <ng-container [axisDynamic]=\"options.suffix()\"></ng-container>\n </div>\n }\n</nz-input-wrapper>\n<!-- <nz-input-group [nzSuffix]=\"suffixTemplate\" [nzPrefix]=\"prefixTemplate\">\n <input (keydown.enter)=\"onEnter()\" [type]=\"options.type()\" nz-input [disabled]=\"options.disabled()\"\n [(ngModel)]=\"inputValue\" (ngModelChange)=\"inputSubject.next($event)\" [placeholder]=\"options.placeholder()\"\n [maxLength]=\"options.maxlength()||9999999\" [autofocus]=\"options.autofocus()\">\n</nz-input-group>\n<ng-template #prefixTemplate>\n <div class=\"prefix-container\">\n @if (options.prefix()) {\n <ng-container [axisDynamic]=\"options.prefix()\"></ng-container>\n }\n </div>\n</ng-template>\n<ng-template #suffixTemplate>\n <div class=\"suffix-container\">\n @if (options.suffix()) {\n <ng-container [axisDynamic]=\"options.suffix()\"></ng-container>\n }\n </div>\n</ng-template> -->\n}@else {\n<input (keydown.enter)=\"onEnter()\" [type]=\"options.type()\" nz-input [nzVariant]=\"options.variant()\"\n [disabled]=\"options.disabled()\" [(ngModel)]=\"inputValue\" (ngModelChange)=\"inputSubject.next($event)\"\n [placeholder]=\"options.placeholder()\" [maxLength]=\"options.maxlength()||9999999\"\n [autofocus]=\"options.autofocus()\" />\n}\n}", styles: [":host{display:block;width:100%}\n"] }]
|
|
74
|
+
}], ctorParameters: () => [], propDecorators: { input: [{
|
|
75
|
+
type: ViewChild,
|
|
76
|
+
args: ["input"]
|
|
77
|
+
}], inputValue: [{ type: i0.Input, args: [{ isSignal: true, alias: "inputValue", required: false }] }, { type: i0.Output, args: ["inputValueChange"] }] } });
|
|
62
78
|
|
|
63
79
|
/**
|
|
64
80
|
* Generated bundle index. Do not edit.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ngx-axis-appforge-axis-components-input.mjs","sources":["../../../axis-components/input/input.options.ts","../../../axis-components/input/input.ts","../../../axis-components/input/input.html","../../../axis-components/input/ngx-axis-appforge-axis-components-input.ts"],"sourcesContent":["import { signal } from \"@angular/core\";\nimport { ValueAccessOptions } from \"ngx-axis-appforge/core\";\n\nexport class InputOptions extends ValueAccessOptions {\n\n readonly placeholder = signal(\"\");\n readonly maxlength = signal<number | null>(null);\n readonly debounceTime = signal<number | null>(null);\n readonly autofocus = signal<boolean>(false);\n readonly type = signal<\"text\" | \"password\">(\"text\");\n readonly prefix = signal<any>(undefined);\n readonly suffix = signal<any>(undefined);\n readonly variant = signal<'outlined' | 'borderless' | 'filled' | 'underlined'>(\"outlined\");\n}","import { ChangeDetectionStrategy, Component, effect, model } from '@angular/core';\nimport { InputOptions } from './input.options';\nimport { FormsModule } from '@angular/forms';\nimport { NzInputModule } from 'ng-zorro-antd/input';\nimport { DynamicDirective, ValueAccess } from 'ngx-axis-appforge/core';\nimport { debounceTime, Subject } from 'rxjs';\n\n@Component({\n selector: 'axis-input',\n imports: [NzInputModule, FormsModule, DynamicDirective],\n templateUrl: './input.html',\n styleUrl: './input.css',\n changeDetection: ChangeDetectionStrategy.OnPush,\n})\nexport class Input extends ValueAccess<InputOptions> {\n constructor() {\n super();\n effect(() => {\n this.unsubscribe([\"change\"]);\n if (this.options.debounceTime() ?? 0 > 0) {\n this.addSubscribe(this.inputSubject.pipe(debounceTime(this.options.debounceTime()!)).subscribe(value => {\n this.value.set(value);\n this.onChange?.(value);\n }), \"change\");\n } else {\n this.addSubscribe(this.inputSubject.subscribe(value => {\n this.value.set(value);\n this.onChange?.(value);\n }), \"change\");\n }\n });\n effect(() => {\n if (this.options.initValue() !== undefined) {\n this.inputValue.set(this.options.initValue());\n }\n })\n }\n\n override options: InputOptions = new InputOptions();\n\n readonly inputValue = model<string>();\n readonly inputSubject = new Subject();\n\n override writeValue(value: any): void {\n super.writeValue(value);\n this.inputValue.set(value);\n }\n\n onEnter() {\n this.triggeEvents(\"enterKeydown\", { value: this.inputValue() }).subscribe();\n }\n\n}\n","@if (options.readonly()) {\n<span>\n {{value()}}\n</span>\n}@else {\n@if (options.variant()==\"outlined\") {\n<nz-input-group [nzSuffix]=\"suffixTemplate\" [nzPrefix]=\"prefixTemplate\">\n <input (keydown.enter)=\"onEnter()\" [type]=\"options.type()\" nz-input [disabled]=\"options.disabled()\"\n [(ngModel)]=\"inputValue\" (ngModelChange)=\"inputSubject.next($event)\" [placeholder]=\"options.placeholder()\"\n [maxLength]=\"options.maxlength()||9999999\" [autofocus]=\"options.autofocus()\"
|
|
1
|
+
{"version":3,"file":"ngx-axis-appforge-axis-components-input.mjs","sources":["../../../axis-components/input/input.options.ts","../../../axis-components/input/input.ts","../../../axis-components/input/input.html","../../../axis-components/input/ngx-axis-appforge-axis-components-input.ts"],"sourcesContent":["import { signal } from \"@angular/core\";\nimport { ValueAccessOptions } from \"ngx-axis-appforge/core\";\n\nexport class InputOptions extends ValueAccessOptions {\n\n readonly placeholder = signal(\"\");\n readonly maxlength = signal<number | null>(null);\n readonly debounceTime = signal<number | null>(null);\n readonly autofocus = signal<boolean>(false);\n readonly type = signal<\"text\" | \"password\">(\"text\");\n readonly prefix = signal<any>(undefined);\n readonly suffix = signal<any>(undefined);\n readonly variant = signal<'outlined' | 'borderless' | 'filled' | 'underlined'>(\"outlined\");\n}","import { ChangeDetectionStrategy, Component, effect, ElementRef, model, ViewChild } from '@angular/core';\nimport { InputOptions } from './input.options';\nimport { FormsModule } from '@angular/forms';\nimport { NzInputModule } from 'ng-zorro-antd/input';\nimport { DynamicDirective, EventHandlerOptions, ValueAccess } from 'ngx-axis-appforge/core';\nimport { debounceTime, Observable, of, Subject } from 'rxjs';\n\n@Component({\n selector: 'axis-input',\n imports: [NzInputModule, FormsModule, DynamicDirective],\n templateUrl: './input.html',\n styleUrl: './input.css',\n changeDetection: ChangeDetectionStrategy.OnPush,\n})\nexport class Input extends ValueAccess<InputOptions> {\n constructor() {\n super();\n effect(() => {\n this.unsubscribe([\"change\"]);\n if (this.options.debounceTime() ?? 0 > 0) {\n this.addSubscribe(this.inputSubject.pipe(debounceTime(this.options.debounceTime()!)).subscribe(value => {\n this.value.set(value);\n this.onChange?.(value);\n }), \"change\");\n } else {\n this.addSubscribe(this.inputSubject.subscribe(value => {\n this.value.set(value);\n this.onChange?.(value);\n }), \"change\");\n }\n });\n effect(() => {\n if (this.options.initValue() !== undefined) {\n this.inputValue.set(this.options.initValue());\n }\n })\n }\n\n override options: InputOptions = new InputOptions();\n\n @ViewChild(\"input\")\n input?: ElementRef<HTMLInputElement>;\n\n override onEvents(e: EventHandlerOptions<any>): Observable<boolean> | undefined {\n const obs = super.onEvents?.(e);\n if (obs) {\n return obs;\n }\n switch (e.name) {\n case \"setFocus\":\n this.input?.nativeElement.focus();\n return of(true);\n }\n return undefined;\n }\n\n readonly inputValue = model<string>();\n readonly inputSubject = new Subject();\n\n override writeValue(value: any): void {\n super.writeValue(value);\n this.inputValue.set(value);\n }\n\n onEnter() {\n this.triggeEvents(\"enterKeydown\", { value: this.inputValue() }).subscribe();\n }\n\n}\n","@if (options.readonly()) {\n<span>\n {{value()}}\n</span>\n}@else {\n@if (options.variant()==\"outlined\") {\n<nz-input-wrapper>\n @if (options.prefix()) {\n <div nzInputAddonBefore class=\"prefix-container\">\n <ng-container [axisDynamic]=\"options.prefix()\"></ng-container>\n </div>\n }\n <input #input (keydown.enter)=\"onEnter()\" [type]=\"options.type()\" nz-input [disabled]=\"options.disabled()\"\n [(ngModel)]=\"inputValue\" (ngModelChange)=\"inputSubject.next($event)\" [placeholder]=\"options.placeholder()\"\n [maxLength]=\"options.maxlength()||9999999\" [autofocus]=\"options.autofocus()\">\n @if (options.suffix()) {\n <div nzInputAddonAfter class=\"suffix-container\">\n <ng-container [axisDynamic]=\"options.suffix()\"></ng-container>\n </div>\n }\n</nz-input-wrapper>\n<!-- <nz-input-group [nzSuffix]=\"suffixTemplate\" [nzPrefix]=\"prefixTemplate\">\n <input (keydown.enter)=\"onEnter()\" [type]=\"options.type()\" nz-input [disabled]=\"options.disabled()\"\n [(ngModel)]=\"inputValue\" (ngModelChange)=\"inputSubject.next($event)\" [placeholder]=\"options.placeholder()\"\n [maxLength]=\"options.maxlength()||9999999\" [autofocus]=\"options.autofocus()\">\n</nz-input-group>\n<ng-template #prefixTemplate>\n <div class=\"prefix-container\">\n @if (options.prefix()) {\n <ng-container [axisDynamic]=\"options.prefix()\"></ng-container>\n }\n </div>\n</ng-template>\n<ng-template #suffixTemplate>\n <div class=\"suffix-container\">\n @if (options.suffix()) {\n <ng-container [axisDynamic]=\"options.suffix()\"></ng-container>\n }\n </div>\n</ng-template> -->\n}@else {\n<input (keydown.enter)=\"onEnter()\" [type]=\"options.type()\" nz-input [nzVariant]=\"options.variant()\"\n [disabled]=\"options.disabled()\" [(ngModel)]=\"inputValue\" (ngModelChange)=\"inputSubject.next($event)\"\n [placeholder]=\"options.placeholder()\" [maxLength]=\"options.maxlength()||9999999\"\n [autofocus]=\"options.autofocus()\" />\n}\n}","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './input';\n"],"names":[],"mappings":";;;;;;;;;AAGM,MAAO,YAAa,SAAQ,kBAAkB,CAAA;AAEvC,IAAA,WAAW,GAAG,MAAM,CAAC,EAAE,uDAAC;AACxB,IAAA,SAAS,GAAG,MAAM,CAAgB,IAAI,qDAAC;AACvC,IAAA,YAAY,GAAG,MAAM,CAAgB,IAAI,wDAAC;AAC1C,IAAA,SAAS,GAAG,MAAM,CAAU,KAAK,qDAAC;AAClC,IAAA,IAAI,GAAG,MAAM,CAAsB,MAAM,gDAAC;AAC1C,IAAA,MAAM,GAAG,MAAM,CAAM,SAAS,kDAAC;AAC/B,IAAA,MAAM,GAAG,MAAM,CAAM,SAAS,kDAAC;AAC/B,IAAA,OAAO,GAAG,MAAM,CAAsD,UAAU,mDAAC;AAC7F;;ACCK,MAAO,KAAM,SAAQ,WAAyB,CAAA;AAClD,IAAA,WAAA,GAAA;AACE,QAAA,KAAK,EAAE;QACP,MAAM,CAAC,MAAK;AACV,YAAA,IAAI,CAAC,WAAW,CAAC,CAAC,QAAQ,CAAC,CAAC;YAC5B,IAAI,IAAI,CA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AA,EAAA,UAAA,EAAA,UAAA,EAAA,eAAA,EAAA,cAAA,CAAA,EAAA,OAAA,EAAA,CAAA,SAAA,CAAA,EAAA,QAAA,EAAA,CAAA,gBAAA,CAAA,EAAA,EAAA,EAAA,IAAA,EAAA,WAAA,EAAA,IAAA,EAAA,EAAA,CAAA,2BAAA,EAAA,QAAA,EAAA,sBAAA,EAAA,EAAA,EAAA,IAAA,EAAA,WAAA,EAAA,IAAA,EAAA,EAAA,CAAA,0BAAA,EAAA,QAAA,EAAA,qBAAA,EAAA,EAAA,EAAA,IAAA,EAAA,UAAA,EAAA,IAAA,EAAE,WAAW,+mBAAE,gBAAgB,EAAA,QAAA,EAAA,eAAA,EAAA,MAAA,EAAA,CAAA,aAAA,EAAA,YAAA,EAAA,UAAA,EAAA,qBAAA,CAAA,EAAA,OAAA,EAAA,CAAA,sBAAA,CAAA,EAAA,QAAA,EAAA,CAAA,aAAA,CAAA,EAAA,CAAA,EAAA,eAAA,EAAA,EAAA,CAAA,uBAAA,CAAA,MAAA,EAAA,CAAA;;4FAK3C,KAAK,EAAA,UAAA,EAAA,CAAA;kBAPjB,SAAS;+BACE,YAAY,EAAA,OAAA,EACb,CAAC,aAAa,EAAE,WAAW,EAAE,gBAAgB,CAAC,EAAA,eAAA,EAGtC,uBAAuB,CAAC,MAAM,EAAA,QAAA,EAAA,2hEAAA,EAAA,MAAA,EAAA,CAAA,mCAAA,CAAA,EAAA;;sBA4B9C,SAAS;uBAAC,OAAO;;;AExCpB;;AAEG;;;;"}
|
|
@@ -620,11 +620,14 @@ class SelectService {
|
|
|
620
620
|
this.keyField = opts.keyField;
|
|
621
621
|
this.data = opts.data;
|
|
622
622
|
this.close();
|
|
623
|
-
|
|
624
|
-
|
|
625
|
-
|
|
623
|
+
if (this.rows?.length) {
|
|
624
|
+
const setOfCheckedId = new Set();
|
|
625
|
+
for (const item of this.options.checkedKeys() ?? []) {
|
|
626
|
+
setOfCheckedId.add(item);
|
|
627
|
+
}
|
|
628
|
+
this.setOfCheckedId.set(setOfCheckedId);
|
|
629
|
+
untracked(() => this.refreshCheckedStatus(ChangeScene.refreshHeader));
|
|
626
630
|
}
|
|
627
|
-
this.setOfCheckedId.set(setOfCheckedId);
|
|
628
631
|
if (opts.onSelectedChange) {
|
|
629
632
|
this.subs.push(this.changeSubject.subscribe(_ => {
|
|
630
633
|
opts.onSelectedChange(this.setOfCheckedId());
|