ngx-axis-appforge 0.0.27 → 0.0.29
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/button/index.d.ts +1 -1
- package/axis-components/design/index.d.ts +3 -1
- package/axis-components/dynamic-value/index.d.ts +1 -1
- package/axis-components/edit-table/index.d.ts +2 -1
- package/axis-components/editor/index.d.ts +1 -1
- package/axis-components/flex/index.d.ts +1 -1
- package/axis-components/form/index.d.ts +1 -1
- package/axis-components/form-item/index.d.ts +1 -1
- package/axis-components/icon/index.d.ts +1 -1
- package/axis-components/input-component/index.d.ts +1 -1
- package/axis-components/input-icon/index.d.ts +1 -1
- package/axis-components/input-json/index.d.ts +1 -1
- package/axis-components/scope/index.d.ts +1 -1
- package/axis-components/splitter/index.d.ts +1 -1
- package/axis-components/table/index.d.ts +5 -4
- package/axis-components/tree-selector/index.d.ts +1 -1
- package/axis-components/upload/index.d.ts +1 -1
- package/core/index.d.ts +14 -5
- package/fesm2022/ngx-axis-appforge-axis-components-button-design.mjs +1 -1
- package/fesm2022/ngx-axis-appforge-axis-components-button-design.mjs.map +1 -1
- package/fesm2022/ngx-axis-appforge-axis-components-button.mjs.map +1 -1
- package/fesm2022/ngx-axis-appforge-axis-components-color-picker-design.mjs +1 -1
- package/fesm2022/ngx-axis-appforge-axis-components-color-picker-design.mjs.map +1 -1
- package/fesm2022/ngx-axis-appforge-axis-components-date-picker-design.mjs +1 -1
- package/fesm2022/ngx-axis-appforge-axis-components-date-picker-design.mjs.map +1 -1
- package/fesm2022/ngx-axis-appforge-axis-components-design-design.mjs +1 -1
- package/fesm2022/ngx-axis-appforge-axis-components-design-design.mjs.map +1 -1
- package/fesm2022/ngx-axis-appforge-axis-components-design.mjs +41 -12
- package/fesm2022/ngx-axis-appforge-axis-components-design.mjs.map +1 -1
- package/fesm2022/ngx-axis-appforge-axis-components-dynamic-container-design.mjs +1 -1
- package/fesm2022/ngx-axis-appforge-axis-components-dynamic-container-design.mjs.map +1 -1
- package/fesm2022/ngx-axis-appforge-axis-components-dynamic-value-design.mjs +1 -1
- package/fesm2022/ngx-axis-appforge-axis-components-dynamic-value-design.mjs.map +1 -1
- package/fesm2022/ngx-axis-appforge-axis-components-dynamic-value.mjs.map +1 -1
- package/fesm2022/ngx-axis-appforge-axis-components-edit-table-design.mjs +19 -6
- package/fesm2022/ngx-axis-appforge-axis-components-edit-table-design.mjs.map +1 -1
- package/fesm2022/ngx-axis-appforge-axis-components-edit-table.mjs +13 -6
- package/fesm2022/ngx-axis-appforge-axis-components-edit-table.mjs.map +1 -1
- package/fesm2022/ngx-axis-appforge-axis-components-editor-design.mjs +1 -1
- package/fesm2022/ngx-axis-appforge-axis-components-editor-design.mjs.map +1 -1
- package/fesm2022/ngx-axis-appforge-axis-components-editor.mjs +2 -2
- package/fesm2022/ngx-axis-appforge-axis-components-editor.mjs.map +1 -1
- package/fesm2022/ngx-axis-appforge-axis-components-flex.mjs.map +1 -1
- package/fesm2022/ngx-axis-appforge-axis-components-form-design.mjs +5 -5
- package/fesm2022/ngx-axis-appforge-axis-components-form-design.mjs.map +1 -1
- package/fesm2022/ngx-axis-appforge-axis-components-form-item.mjs.map +1 -1
- package/fesm2022/ngx-axis-appforge-axis-components-form.mjs +1 -0
- package/fesm2022/ngx-axis-appforge-axis-components-form.mjs.map +1 -1
- package/fesm2022/ngx-axis-appforge-axis-components-icon.mjs.map +1 -1
- package/fesm2022/ngx-axis-appforge-axis-components-input-component-design.mjs +1 -1
- package/fesm2022/ngx-axis-appforge-axis-components-input-component-design.mjs.map +1 -1
- package/fesm2022/ngx-axis-appforge-axis-components-input-component.mjs.map +1 -1
- package/fesm2022/ngx-axis-appforge-axis-components-input-design.mjs +1 -1
- package/fesm2022/ngx-axis-appforge-axis-components-input-design.mjs.map +1 -1
- package/fesm2022/ngx-axis-appforge-axis-components-input-icon-design.mjs +1 -1
- package/fesm2022/ngx-axis-appforge-axis-components-input-icon-design.mjs.map +1 -1
- package/fesm2022/ngx-axis-appforge-axis-components-input-icon.mjs.map +1 -1
- package/fesm2022/ngx-axis-appforge-axis-components-input-json-design.mjs +1 -1
- package/fesm2022/ngx-axis-appforge-axis-components-input-json-design.mjs.map +1 -1
- package/fesm2022/ngx-axis-appforge-axis-components-input-json.mjs.map +1 -1
- package/fesm2022/ngx-axis-appforge-axis-components-input-number-design.mjs +1 -1
- package/fesm2022/ngx-axis-appforge-axis-components-input-number-design.mjs.map +1 -1
- package/fesm2022/ngx-axis-appforge-axis-components-modal-design.mjs +1 -1
- package/fesm2022/ngx-axis-appforge-axis-components-modal-design.mjs.map +1 -1
- package/fesm2022/ngx-axis-appforge-axis-components-radio-design.mjs +1 -1
- package/fesm2022/ngx-axis-appforge-axis-components-radio-design.mjs.map +1 -1
- package/fesm2022/ngx-axis-appforge-axis-components-scope-design.mjs +1 -1
- package/fesm2022/ngx-axis-appforge-axis-components-scope-design.mjs.map +1 -1
- package/fesm2022/ngx-axis-appforge-axis-components-scope.mjs.map +1 -1
- package/fesm2022/ngx-axis-appforge-axis-components-select-design.mjs +1 -1
- package/fesm2022/ngx-axis-appforge-axis-components-select-design.mjs.map +1 -1
- package/fesm2022/ngx-axis-appforge-axis-components-single-selector-design.mjs +1 -1
- package/fesm2022/ngx-axis-appforge-axis-components-single-selector-design.mjs.map +1 -1
- package/fesm2022/ngx-axis-appforge-axis-components-splitter.mjs.map +1 -1
- package/fesm2022/ngx-axis-appforge-axis-components-steps-design.mjs +2 -2
- package/fesm2022/ngx-axis-appforge-axis-components-steps-design.mjs.map +1 -1
- package/fesm2022/ngx-axis-appforge-axis-components-switch-design.mjs +1 -1
- package/fesm2022/ngx-axis-appforge-axis-components-switch-design.mjs.map +1 -1
- package/fesm2022/ngx-axis-appforge-axis-components-table-design.mjs +25 -6
- package/fesm2022/ngx-axis-appforge-axis-components-table-design.mjs.map +1 -1
- package/fesm2022/ngx-axis-appforge-axis-components-table.mjs +17 -11
- package/fesm2022/ngx-axis-appforge-axis-components-table.mjs.map +1 -1
- package/fesm2022/ngx-axis-appforge-axis-components-tabs-design.mjs +2 -2
- package/fesm2022/ngx-axis-appforge-axis-components-tabs-design.mjs.map +1 -1
- package/fesm2022/ngx-axis-appforge-axis-components-textarea-design.mjs +1 -1
- package/fesm2022/ngx-axis-appforge-axis-components-textarea-design.mjs.map +1 -1
- package/fesm2022/ngx-axis-appforge-axis-components-tree-selector-design.mjs +2 -2
- package/fesm2022/ngx-axis-appforge-axis-components-tree-selector-design.mjs.map +1 -1
- package/fesm2022/ngx-axis-appforge-axis-components-tree-selector.mjs +2 -2
- package/fesm2022/ngx-axis-appforge-axis-components-tree-selector.mjs.map +1 -1
- package/fesm2022/ngx-axis-appforge-axis-components-upload.mjs +2 -2
- package/fesm2022/ngx-axis-appforge-axis-components-upload.mjs.map +1 -1
- package/fesm2022/ngx-axis-appforge-core.mjs +50 -25
- package/fesm2022/ngx-axis-appforge-core.mjs.map +1 -1
- package/package.json +98 -98
|
@@ -20,7 +20,7 @@ declare class ButtonOptions extends BaseOptions {
|
|
|
20
20
|
declare class Button extends Base<ButtonOptions> {
|
|
21
21
|
private modal;
|
|
22
22
|
constructor(modal: NzModalService);
|
|
23
|
-
|
|
23
|
+
options: ButtonOptions;
|
|
24
24
|
loading: _angular_core.WritableSignal<boolean>;
|
|
25
25
|
buttonClick(): void;
|
|
26
26
|
popConfirm(): void;
|
|
@@ -118,6 +118,7 @@ declare class Preview implements OnDestroy {
|
|
|
118
118
|
forceRender(): void;
|
|
119
119
|
refresh(): void;
|
|
120
120
|
private getParentComponentRef;
|
|
121
|
+
getComponentRef(nodeId: string): ComponentRef<Base<BaseOptions>> | undefined;
|
|
121
122
|
selectByNodeIds(nodeIds?: string[]): void;
|
|
122
123
|
getAndUpdateScopeSubject(scopeId: string, initScope?: ScopeDirective): BehaviorSubject<ScopeDirective | undefined>;
|
|
123
124
|
updateScopeWithSelectedElement(scopeId: string): void;
|
|
@@ -174,7 +175,7 @@ declare class Toolbar {
|
|
|
174
175
|
|
|
175
176
|
declare class Design extends ValueAccess<DesignOptions> implements OnDestroy {
|
|
176
177
|
constructor();
|
|
177
|
-
|
|
178
|
+
options: DesignOptions;
|
|
178
179
|
element: ElementRef<any>;
|
|
179
180
|
clipboard: ClipboardService;
|
|
180
181
|
loader: ngx_axis_appforge_core.ComponentsLoader;
|
|
@@ -228,6 +229,7 @@ declare class Design extends ValueAccess<DesignOptions> implements OnDestroy {
|
|
|
228
229
|
private buildScopeInfosGetter;
|
|
229
230
|
private buildScopeInfoSubject;
|
|
230
231
|
private buildComponentInfoForSetting;
|
|
232
|
+
private buildComponentRefForSetting;
|
|
231
233
|
onContextMenu(e: MouseEvent, nodeId: string): void;
|
|
232
234
|
chooseComponent(...tags: string[]): Observable<{
|
|
233
235
|
options?: any;
|
|
@@ -7,7 +7,7 @@ declare class DynamicValueOptions extends ValueAccessOptions {
|
|
|
7
7
|
}
|
|
8
8
|
|
|
9
9
|
declare class DynamicValue extends ValueAccess<DynamicValueOptions> {
|
|
10
|
-
|
|
10
|
+
value: _angular_core.ModelSignal<any>;
|
|
11
11
|
options: DynamicValueOptions;
|
|
12
12
|
static ɵfac: _angular_core.ɵɵFactoryDeclaration<DynamicValue, never>;
|
|
13
13
|
static ɵcmp: _angular_core.ɵɵComponentDeclaration<DynamicValue, "axis-dynamic-value", never, { "value": { "alias": "value"; "required": false; "isSignal": true; }; }, { "value": "valueChange"; }, never, never, true, never>;
|
|
@@ -40,6 +40,7 @@ declare class EditTableFieldOptions {
|
|
|
40
40
|
readonly sortPriority: _angular_core.WritableSignal<number | null>;
|
|
41
41
|
readonly filterAble: _angular_core.WritableSignal<boolean>;
|
|
42
42
|
readonly filterMultiple: _angular_core.WritableSignal<boolean>;
|
|
43
|
+
readonly filterDisplayFn: _angular_core.WritableSignal<string>;
|
|
43
44
|
readonly width: _angular_core.WritableSignal<number | null>;
|
|
44
45
|
readonly align: _angular_core.WritableSignal<"left" | "right" | "center">;
|
|
45
46
|
readonly freezeMode: _angular_core.WritableSignal<"left" | "right" | "none">;
|
|
@@ -70,7 +71,7 @@ declare class Select {
|
|
|
70
71
|
|
|
71
72
|
declare class EditTable extends ValueAccess<EditTableOptions> implements OnInit, OnDestroy {
|
|
72
73
|
constructor();
|
|
73
|
-
|
|
74
|
+
options: EditTableOptions;
|
|
74
75
|
private readonly fb;
|
|
75
76
|
readonly fg: UntypedFormGroup;
|
|
76
77
|
get fa(): FormArray<AbstractControl>;
|
|
@@ -14,7 +14,7 @@ declare class EditorOptions extends ValueAccessOptions {
|
|
|
14
14
|
}
|
|
15
15
|
|
|
16
16
|
declare class Editor extends ValueAccess<EditorOptions> {
|
|
17
|
-
|
|
17
|
+
options: EditorOptions;
|
|
18
18
|
writeValue(value: any): void;
|
|
19
19
|
config: _angular_core.Signal<any>;
|
|
20
20
|
readonly fullScreen: _angular_core.WritableSignal<boolean>;
|
|
@@ -12,7 +12,7 @@ declare class FlexOptions extends BaseOptions {
|
|
|
12
12
|
}
|
|
13
13
|
|
|
14
14
|
declare class Flex extends Base<FlexOptions> {
|
|
15
|
-
|
|
15
|
+
options: FlexOptions;
|
|
16
16
|
static ɵfac: _angular_core.ɵɵFactoryDeclaration<Flex, never>;
|
|
17
17
|
static ɵcmp: _angular_core.ɵɵComponentDeclaration<Flex, "axis-flex", never, {}, {}, never, never, true, never>;
|
|
18
18
|
}
|
|
@@ -11,7 +11,7 @@ declare class FormOptions extends ValueAccessOptions {
|
|
|
11
11
|
|
|
12
12
|
declare class Form extends ValueAccess<FormOptions> implements OnInit {
|
|
13
13
|
constructor();
|
|
14
|
-
|
|
14
|
+
options: FormOptions;
|
|
15
15
|
private readonly fb;
|
|
16
16
|
private readonly modal;
|
|
17
17
|
readonly fg: UntypedFormGroup;
|
|
@@ -14,7 +14,7 @@ declare class FormItemOptions extends BaseOptions {
|
|
|
14
14
|
|
|
15
15
|
declare class FormItem extends Base<FormItemOptions> implements OnInit {
|
|
16
16
|
constructor();
|
|
17
|
-
|
|
17
|
+
options: FormItemOptions;
|
|
18
18
|
private readonly registe;
|
|
19
19
|
private readonly fb;
|
|
20
20
|
readonly control: _angular_forms.FormControl<null | undefined>;
|
|
@@ -8,7 +8,7 @@ declare class IconOptions extends BaseOptions {
|
|
|
8
8
|
}
|
|
9
9
|
|
|
10
10
|
declare class Icon extends Base<IconOptions> {
|
|
11
|
-
|
|
11
|
+
options: IconOptions;
|
|
12
12
|
static ɵfac: _angular_core.ɵɵFactoryDeclaration<Icon, never>;
|
|
13
13
|
static ɵcmp: _angular_core.ɵɵComponentDeclaration<Icon, "axis-icon", never, {}, {}, never, never, true, never>;
|
|
14
14
|
}
|
|
@@ -10,7 +10,7 @@ declare class InputComponentOptions extends ValueAccessOptions {
|
|
|
10
10
|
}
|
|
11
11
|
|
|
12
12
|
declare class InputComponent extends ValueAccess<InputComponentOptions> {
|
|
13
|
-
|
|
13
|
+
options: InputComponentOptions;
|
|
14
14
|
readonly isVisible: _angular_core.ModelSignal<boolean>;
|
|
15
15
|
readonly designValue: _angular_core.ModelSignal<any>;
|
|
16
16
|
readonly designOptions: _angular_core.Signal<{
|
|
@@ -8,7 +8,7 @@ declare class InputIconOptions extends ValueAccessOptions {
|
|
|
8
8
|
}
|
|
9
9
|
|
|
10
10
|
declare class InputIcon extends ValueAccess<InputIconOptions> {
|
|
11
|
-
|
|
11
|
+
options: InputIconOptions;
|
|
12
12
|
private readonly fb;
|
|
13
13
|
readonly fg: _angular_forms.UntypedFormGroup;
|
|
14
14
|
readonly formValue: _angular_core.Signal<any>;
|
|
@@ -2,7 +2,7 @@ import * as _angular_core from '@angular/core';
|
|
|
2
2
|
import { ValueAccess, ValueAccessOptions } from 'ngx-axis-appforge/core';
|
|
3
3
|
|
|
4
4
|
declare class InputJson extends ValueAccess<ValueAccessOptions> {
|
|
5
|
-
|
|
5
|
+
options: ValueAccessOptions;
|
|
6
6
|
readonly editorOptions: _angular_core.Signal<{
|
|
7
7
|
component: string;
|
|
8
8
|
inuse: boolean;
|
|
@@ -11,7 +11,7 @@ declare class ScopeOptions extends BaseOptions {
|
|
|
11
11
|
|
|
12
12
|
declare class Scope extends Base<ScopeOptions> {
|
|
13
13
|
constructor();
|
|
14
|
-
|
|
14
|
+
options: ScopeOptions;
|
|
15
15
|
childScope: ScopeDirective;
|
|
16
16
|
triggeEvents(trigger: string, tempDataSource?: any, triggeEvents?: {
|
|
17
17
|
[trigger: string]: EventHandlerOptions<any>[];
|
|
@@ -18,7 +18,7 @@ declare class SplitterPanelOptions {
|
|
|
18
18
|
|
|
19
19
|
declare class Splitter extends Base<SplitterOptions> {
|
|
20
20
|
constructor();
|
|
21
|
-
|
|
21
|
+
options: SplitterOptions;
|
|
22
22
|
readonly panels: _angular_core.Signal<SplitterPanelOptions[]>;
|
|
23
23
|
private buildPanels;
|
|
24
24
|
convertSize(value: string | undefined): number | string | undefined;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import * as _angular_core from '@angular/core';
|
|
2
2
|
import { Signal, OnDestroy, ElementRef } from '@angular/core';
|
|
3
3
|
import { DataOptions, ScopeDirective, Base } from 'ngx-axis-appforge/core';
|
|
4
|
-
import { NzTableFilterList
|
|
4
|
+
import { NzTableFilterList } from 'ng-zorro-antd/table';
|
|
5
5
|
import { CdkDragDrop } from '@angular/cdk/drag-drop';
|
|
6
6
|
import { NzResizeEvent } from 'ng-zorro-antd/resizable';
|
|
7
7
|
import { Subject, Subscription } from 'rxjs';
|
|
@@ -67,6 +67,7 @@ declare class TableFieldOptions {
|
|
|
67
67
|
readonly sortPriority: _angular_core.WritableSignal<number | null>;
|
|
68
68
|
readonly filterAble: _angular_core.WritableSignal<boolean>;
|
|
69
69
|
readonly filterMultiple: _angular_core.WritableSignal<boolean>;
|
|
70
|
+
readonly filterDisplayFn: _angular_core.WritableSignal<string>;
|
|
70
71
|
readonly width: _angular_core.WritableSignal<number | null>;
|
|
71
72
|
readonly align: _angular_core.WritableSignal<"center" | "left" | "right">;
|
|
72
73
|
readonly freezeMode: _angular_core.WritableSignal<"left" | "right" | "none">;
|
|
@@ -98,7 +99,8 @@ declare class Select {
|
|
|
98
99
|
|
|
99
100
|
declare class Expand {
|
|
100
101
|
private options;
|
|
101
|
-
|
|
102
|
+
private scope;
|
|
103
|
+
constructor(options: TableOptions, scope: ScopeDirective | null);
|
|
102
104
|
readonly expandedSet: Set<unknown>;
|
|
103
105
|
readonly nodeMap: _angular_core.Signal<Map<string, {
|
|
104
106
|
level: number;
|
|
@@ -149,7 +151,7 @@ declare class TableSetter implements OnDestroy {
|
|
|
149
151
|
declare class Table extends Base<TableOptions> {
|
|
150
152
|
private elementRef;
|
|
151
153
|
constructor(elementRef: ElementRef);
|
|
152
|
-
|
|
154
|
+
options: TableOptions;
|
|
153
155
|
readonly displayData: _angular_core.Signal<any[] | null>;
|
|
154
156
|
select: Select;
|
|
155
157
|
expand: Expand;
|
|
@@ -181,7 +183,6 @@ declare class Table extends Base<TableOptions> {
|
|
|
181
183
|
private buildFields;
|
|
182
184
|
private buildDisplayFields;
|
|
183
185
|
private buildFieldControls;
|
|
184
|
-
filterFn: NzTableFilterFn;
|
|
185
186
|
private buildLeaderFieldWidth;
|
|
186
187
|
private buildActionsFieldWidth;
|
|
187
188
|
private refreshScoll;
|
|
@@ -49,7 +49,7 @@ declare class TreeSelector extends ValueAccess<TreeSelectorOptions> {
|
|
|
49
49
|
private readonly menuService;
|
|
50
50
|
private readonly modal;
|
|
51
51
|
private menuNodeDs?;
|
|
52
|
-
|
|
52
|
+
options: TreeSelectorOptions;
|
|
53
53
|
readonly menus: _angular_core.Signal<TreeNodeMenuOptions[]>;
|
|
54
54
|
readonly searchValue: _angular_core.ModelSignal<string | undefined>;
|
|
55
55
|
readonly treeData: _angular_core.Signal<NzTreeNodeOptions[]>;
|
|
@@ -28,7 +28,7 @@ declare class UploadOptions extends ValueAccessOptions {
|
|
|
28
28
|
}
|
|
29
29
|
|
|
30
30
|
declare class Upload extends ValueAccess<UploadOptions> {
|
|
31
|
-
|
|
31
|
+
options: UploadOptions;
|
|
32
32
|
private readonly fileBaseUrl;
|
|
33
33
|
private readonly http;
|
|
34
34
|
private readonly imageService;
|
package/core/index.d.ts
CHANGED
|
@@ -114,6 +114,7 @@ declare class ScopeDirective implements OnInit, OnDestroy {
|
|
|
114
114
|
private refreshDataSourceEventHandler;
|
|
115
115
|
preloadImports(obj: any): Promise<void>;
|
|
116
116
|
runFnWithImports(fnstr: any, args: any, imports: string[]): any;
|
|
117
|
+
runFnWithSnapshot(fnstr: any, args?: any): any;
|
|
117
118
|
static ɵfac: _angular_core.ɵɵFactoryDeclaration<ScopeDirective, never>;
|
|
118
119
|
static ɵdir: _angular_core.ɵɵDirectiveDeclaration<ScopeDirective, "[axisScope]", never, { "axisScope": { "alias": "axisScope"; "required": true; "isSignal": true; }; "scopeName": { "alias": "scopeName"; "required": true; "isSignal": true; }; "isRoot": { "alias": "isRoot"; "required": false; "isSignal": true; }; "dataSources": { "alias": "dataSources"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
119
120
|
}
|
|
@@ -122,7 +123,7 @@ declare abstract class Base<T extends BaseOptions> implements OnDestroy, AfterVi
|
|
|
122
123
|
onAfterViewInit?: Function;
|
|
123
124
|
injector: Injector;
|
|
124
125
|
isDesign: boolean;
|
|
125
|
-
|
|
126
|
+
options: T;
|
|
126
127
|
private eventsService;
|
|
127
128
|
private scope;
|
|
128
129
|
private _sub;
|
|
@@ -169,7 +170,7 @@ interface RegisteFormControlOptions {
|
|
|
169
170
|
|
|
170
171
|
declare abstract class ValueAccess<T extends ValueAccessOptions> extends Base<T> implements ControlValueAccessor {
|
|
171
172
|
constructor();
|
|
172
|
-
|
|
173
|
+
readonly value: _angular_core.ModelSignal<any>;
|
|
173
174
|
registeValueAccess?: (opt: RegisteValueAccessOptions) => void;
|
|
174
175
|
setInitValue(value: any): void;
|
|
175
176
|
onChange?: (value: any) => void;
|
|
@@ -484,6 +485,11 @@ declare const AXIS_DESIGN_COMPONENT_INFO_FOR_SETTING_TOKEN: InjectionToken<{
|
|
|
484
485
|
[event: string]: EventHandlerDesc;
|
|
485
486
|
};
|
|
486
487
|
}[]>;
|
|
488
|
+
declare const AXIS_DESIGN_COMPONENT_REF_FOR_SETTING_TOKEN: InjectionToken<{
|
|
489
|
+
ref?: ComponentRef<Base<BaseOptions>>;
|
|
490
|
+
options: any;
|
|
491
|
+
}>;
|
|
492
|
+
declare const AXIS_DESIGN_COMPONENT_REF_GETTER_TOKEN: InjectionToken<(nodeId: string) => ComponentRef<Base<BaseOptions>>>;
|
|
487
493
|
declare const AXIS_DESIGN_ALL_PERMISSIONS_TOKEN: InjectionToken<{
|
|
488
494
|
[permission: string]: string;
|
|
489
495
|
}>;
|
|
@@ -658,12 +664,14 @@ declare const baseFunField: FunFieldOptions;
|
|
|
658
664
|
|
|
659
665
|
declare class InputTrigger extends FunFieldBase implements AfterViewInit {
|
|
660
666
|
private element;
|
|
661
|
-
|
|
667
|
+
private injector;
|
|
668
|
+
constructor(element: ElementRef, injector: Injector);
|
|
662
669
|
fg: UntypedFormGroup;
|
|
663
670
|
protected funFields: FunFieldOptions;
|
|
664
671
|
onChange: any;
|
|
665
672
|
readonly noListen: _angular_core.WritableSignal<boolean>;
|
|
666
673
|
readonly internalTriggers: _angular_core.InputSignal<"valueChange"[] | undefined>;
|
|
674
|
+
readonly optionsNodeId: _angular_core.InputSignal<string | undefined>;
|
|
667
675
|
readonly getScopeInfos: (scopeId?: string) => BehaviorSubject<ScopeInfo[]>;
|
|
668
676
|
readonly componentsInfo: {
|
|
669
677
|
component: string;
|
|
@@ -673,6 +681,7 @@ declare class InputTrigger extends FunFieldBase implements AfterViewInit {
|
|
|
673
681
|
[event: string]: EventHandlerDesc;
|
|
674
682
|
};
|
|
675
683
|
}[];
|
|
684
|
+
readonly componentRefGetter: (nodeId: string) => ComponentRef<ngx_axis_appforge_core.Base<ngx_axis_appforge_core.BaseOptions>>;
|
|
676
685
|
readonly canChooseComponentsInfo: _angular_core.WritableSignal<{
|
|
677
686
|
component: string;
|
|
678
687
|
componentName: string;
|
|
@@ -729,7 +738,7 @@ declare class InputTrigger extends FunFieldBase implements AfterViewInit {
|
|
|
729
738
|
hasExpanded(node: NzTreeNode): boolean;
|
|
730
739
|
expand(node: NzTreeNode, expanded: boolean): void;
|
|
731
740
|
static ɵfac: _angular_core.ɵɵFactoryDeclaration<InputTrigger, never>;
|
|
732
|
-
static ɵcmp: _angular_core.ɵɵComponentDeclaration<InputTrigger, "axis-input-trigger", never, { "internalTriggers": { "alias": "internalTriggers"; "required": false; "isSignal": true; }; "value": { "alias": "value"; "required": false; "isSignal": true; }; "eventDesc": { "alias": "eventDesc"; "required": false; "isSignal": true; }; "isVisibleHandlerModal": { "alias": "isVisibleHandlerModal"; "required": false; "isSignal": true; }; "editEventHandler": { "alias": "editEventHandler"; "required": false; "isSignal": true; }; }, { "value": "valueChange"; "isVisibleHandlerModal": "isVisibleHandlerModalChange"; "editEventHandler": "editEventHandlerChange"; }, never, never, true, never>;
|
|
741
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<InputTrigger, "axis-input-trigger", never, { "internalTriggers": { "alias": "internalTriggers"; "required": false; "isSignal": true; }; "optionsNodeId": { "alias": "optionsNodeId"; "required": false; "isSignal": true; }; "value": { "alias": "value"; "required": false; "isSignal": true; }; "eventDesc": { "alias": "eventDesc"; "required": false; "isSignal": true; }; "isVisibleHandlerModal": { "alias": "isVisibleHandlerModal"; "required": false; "isSignal": true; }; "editEventHandler": { "alias": "editEventHandler"; "required": false; "isSignal": true; }; }, { "value": "valueChange"; "isVisibleHandlerModal": "isVisibleHandlerModalChange"; "editEventHandler": "editEventHandlerChange"; }, never, never, true, never>;
|
|
733
742
|
}
|
|
734
743
|
|
|
735
744
|
declare class ValueDesignSetting implements AfterViewInit {
|
|
@@ -823,5 +832,5 @@ interface DynamicFnOptions {
|
|
|
823
832
|
}
|
|
824
833
|
declare function fn(fnBody: string, argsObj: any, ignoreUndefined?: boolean, printError?: boolean): any;
|
|
825
834
|
|
|
826
|
-
export { AXIS_COMPONENTS_LOADER_TOKEN, AXIS_COMPONENTS_TOKEN, AXIS_CURRENT_USER_PERMISSIONS_TOKEN, AXIS_DESIGN_ALL_PERMISSIONS_TOKEN, AXIS_DESIGN_CHOOSE_COMPONENT_FUNC_TOKEN, AXIS_DESIGN_CMPLIBS_TOKEN, AXIS_DESIGN_COMPONENT_INFO_FOR_SETTING_TOKEN, AXIS_DESIGN_OPTIONS_NODE_FOR_MENU, AXIS_DESIGN_SCOPE_INFOS_GETTER_TOKEN, AXIS_EVENT_HANDLERS_TOKEN, AXIS_EVENT_HANDLER_DESCS_TOKEN, AXIS_FILE_BASE_URL_TOKEN, AXIS_FORM_REGISTE_CONTROL_TOKEN, AXIS_HTTP_CONTEXT_DATA_TOKEN, AXIS_HTTP_CONTEXT_TOKEN, AXIS_INJECT_DATA_TOKEN, AXIS_INJECT_FUNC_TOKEN, AXIS_SCRIPTS_TOKEN, Base, BaseDesignSetting, BaseMenu, BaseOptions, CommonMenu, ComponentsLoader, DataHandler, DataOptions, DesignBuilder, DynamicDirective, ElementNode, FilteredTreeResult, FormValidators, FunField, FunFieldBase, FunFieldValueBase, HowLongPipe, InputTrigger, InputValidator, OptionsNode, ScopeDirective, SimpleMenu, ValueAccess, ValueAccessOptions, ValueDesignSetting, assignDefaultField, baseFbConfig, baseFunField, buildValidators, codeName, copy, deepMerge, fn, isEquals, listSort, nameCode, obj2Arr, objDiff, rebuildObject, recursionArray, recursionObject, trackByFn, updateAndValidAll, valueFbConfig, valueFunField };
|
|
835
|
+
export { AXIS_COMPONENTS_LOADER_TOKEN, AXIS_COMPONENTS_TOKEN, AXIS_CURRENT_USER_PERMISSIONS_TOKEN, AXIS_DESIGN_ALL_PERMISSIONS_TOKEN, AXIS_DESIGN_CHOOSE_COMPONENT_FUNC_TOKEN, AXIS_DESIGN_CMPLIBS_TOKEN, AXIS_DESIGN_COMPONENT_INFO_FOR_SETTING_TOKEN, AXIS_DESIGN_COMPONENT_REF_FOR_SETTING_TOKEN, AXIS_DESIGN_COMPONENT_REF_GETTER_TOKEN, AXIS_DESIGN_OPTIONS_NODE_FOR_MENU, AXIS_DESIGN_SCOPE_INFOS_GETTER_TOKEN, AXIS_EVENT_HANDLERS_TOKEN, AXIS_EVENT_HANDLER_DESCS_TOKEN, AXIS_FILE_BASE_URL_TOKEN, AXIS_FORM_REGISTE_CONTROL_TOKEN, AXIS_HTTP_CONTEXT_DATA_TOKEN, AXIS_HTTP_CONTEXT_TOKEN, AXIS_INJECT_DATA_TOKEN, AXIS_INJECT_FUNC_TOKEN, AXIS_SCRIPTS_TOKEN, Base, BaseDesignSetting, BaseMenu, BaseOptions, CommonMenu, ComponentsLoader, DataHandler, DataOptions, DesignBuilder, DynamicDirective, ElementNode, FilteredTreeResult, FormValidators, FunField, FunFieldBase, FunFieldValueBase, HowLongPipe, InputTrigger, InputValidator, OptionsNode, ScopeDirective, SimpleMenu, ValueAccess, ValueAccessOptions, ValueDesignSetting, assignDefaultField, baseFbConfig, baseFunField, buildValidators, codeName, copy, deepMerge, fn, isEquals, listSort, nameCode, obj2Arr, objDiff, rebuildObject, recursionArray, recursionObject, trackByFn, updateAndValidAll, valueFbConfig, valueFunField };
|
|
827
836
|
export type { Cmplib, DataSourceOptions, DesignBindElementsResult, DesignBuildResult, DesignConfig, DynamicFnOptions, EventDesc, EventHandlerDesc, EventHandlerDescGroup, EventHandlerOptions, EventsHandler, Example, ExampleBuilder, ExampleDesc, ExampleGroup, FlatNode, FunFieldOptions, FunFieldValue, MyErrorsOptions, MyValidationErrors, NextInfo, OptionsChangeEvent, RegisteFormControlOptions, RegisteValueAccessOptions, ScopeInfo, TriggeEventsOptions };
|
|
@@ -74,7 +74,7 @@ class Setting extends FunFieldValueBase {
|
|
|
74
74
|
},
|
|
75
75
|
};
|
|
76
76
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.1.6", ngImport: i0, type: Setting, deps: null, target: i0.ɵɵFactoryTarget.Component });
|
|
77
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.1.6", type: Setting, isStandalone: true, selector: "axis-design-button-setting", usesInheritance: true, ngImport: i0, template: "<form [formGroup]=\"fg\" nz-form>\n <nz-collapse [nzBordered]=\"false\">\n <nz-collapse-panel nzHeader=\"\u5916\u89C2\u8BBE\u7F6E\" nzActive>\n <nz-form-item>\n <nz-form-label nzSpan=\"8\">\n \u6309\u94AE\u6587\u672C\n </nz-form-label>\n <nz-form-control nzSpan=\"16\">\n <axis-fun-field formControlName=\"title\">\n <input nz-input ngModel [ngModelOptions]=\"{standalone:true}\" />\n </axis-fun-field>\n </nz-form-control>\n </nz-form-item>\n <nz-form-item>\n <nz-form-label nzSpan=\"8\">\n \u6309\u94AE\u56FE\u6807\n </nz-form-label>\n <nz-form-control nzSpan=\"16\">\n <axis-fun-field formControlName=\"icon\">\n <ng-container [axisDynamic]=\"{component:'axis-components/input-icon',inuse:true}\"\n [standalone]=\"true\" ngModel [ngModelOptions]=\"{standalone:true}\"></ng-container>\n </axis-fun-field>\n </nz-form-control>\n </nz-form-item>\n <nz-form-item>\n <nz-form-label nzSpan=\"8\" nzRequired>\n \u662F\u5426\u7981\u7528\n </nz-form-label>\n <nz-form-control nzSpan=\"16\">\n <axis-fun-field formControlName=\"disabledBtn\">\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 \u6309\u94AE\u7C7B\u578B\n </nz-form-label>\n <nz-form-control nzSpan=\"16\">\n <axis-fun-field formControlName=\"styleType\">\n <nz-select ngModel [ngModelOptions]=\"{standalone:true}\">\n <nz-option nzLabel=\"\u9ED8\u8BA4\" nzValue=\"default\"></nz-option>\n <nz-option nzLabel=\"\u4E3B\u8981\" nzValue=\"primary\"></nz-option>\n <nz-option nzLabel=\"\u865A\u7EBF\" nzValue=\"dashed\"></nz-option>\n <nz-option nzLabel=\"\u94FE\u63A5\" nzValue=\"link\"></nz-option>\n <nz-option nzLabel=\"\u6587\u672C\" nzValue=\"text\"></nz-option>\n </nz-select>\n </axis-fun-field>\n </nz-form-control>\n </nz-form-item>\n <nz-form-item>\n <nz-form-label nzSpan=\"8\" nzRequired>\n \u80CC\u666F\u900F\u660E\n </nz-form-label>\n <nz-form-control nzSpan=\"16\">\n <axis-fun-field formControlName=\"ghost\">\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 \u6309\u94AE\u5927\u5C0F\n </nz-form-label>\n <nz-form-control nzSpan=\"16\">\n <axis-fun-field formControlName=\"size\">\n <nz-radio-group ngModel [ngModelOptions]=\"{standalone:true}\">\n <label nz-radio-button nzValue=\"large\">\u5927</label>\n <label nz-radio-button nzValue=\"default\">\u4E2D</label>\n <label nz-radio-button nzValue=\"small\">\u5C0F</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\" nzRequired>\n \u5BBD\u5EA6\u5C3D\u91CF\u5927\n </nz-form-label>\n <nz-form-control nzSpan=\"16\">\n <axis-fun-field formControlName=\"block\">\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 \u5371\u9669\u6309\u94AE\n </nz-form-label>\n <nz-form-control nzSpan=\"16\">\n <axis-fun-field formControlName=\"danger\">\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 \u6309\u94AE\u5F62\u72B6\n </nz-form-label>\n <nz-form-control nzSpan=\"16\">\n <axis-fun-field formControlName=\"shape\">\n <nz-select ngModel [ngModelOptions]=\"{standalone:true}\">\n <nz-option nzLabel=\"\u9ED8\u8BA4\" nzValue=\"\"></nz-option>\n <nz-option nzLabel=\"\u5706\u5F62\" nzValue=\"circle\"></nz-option>\n <nz-option nzLabel=\"\u80F6\u56CA\" nzValue=\"round\"></nz-option>\n </nz-select>\n </axis-fun-field>\n </nz-form-control>\n </nz-form-item>\n </nz-collapse-panel>\n <nz-collapse-panel nzHeader=\"\u786E\u8BA4\u63D0\u793A\">\n <nz-form-item>\n <nz-form-label nzSpan=\"10\" nzRequired>\n \u5F00\u542F\u786E\u8BA4\u63D0\u793A\n </nz-form-label>\n <nz-form-control nzSpan=\"14\">\n <axis-fun-field formControlName=\"confirm\">\n <nz-switch ngModel [ngModelOptions]=\"{standalone:true}\"></nz-switch>\n </axis-fun-field>\n </nz-form-control>\n </nz-form-item>\n @if (formValue().confirm?.funMode || formValue().confirm?.originValue) {\n <nz-form-item>\n <nz-form-label nzSpan=\"10\" nzRequired>\n \u786E\u8BA4\u6846\u7C7B\u578B\n </nz-form-label>\n <nz-form-control nzSpan=\"14\">\n <axis-fun-field formControlName=\"confirmType\">\n <nz-radio-group ngModel [ngModelOptions]=\"{standalone:true}\">\n <label nz-radio-button nzValue=\"modal\">\u5F39\u7A97</label>\n <label nz-radio-button nzValue=\"pop\">\u6C14\u6CE1</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=\"10\">\n \u786E\u8BA4\u6587\u672C\n </nz-form-label>\n <nz-form-control nzSpan=\"14\">\n <axis-fun-field formControlName=\"confirmText\">\n <input nz-input ngModel [ngModelOptions]=\"{standalone:true}\" />\n </axis-fun-field>\n </nz-form-control>\n </nz-form-item>\n }\n </nz-collapse-panel>\n <axis-base-design-setting [fg]=\"fg\"></axis-base-design-setting>\n <axis-input-trigger formControlName=\"triggeEvents\"\n [eventDesc]=\"[{name:'buttonClick',title:'\u70B9\u51FB\u6309\u94AE'}]\"></axis-input-trigger>\n </nz-collapse>\n</form>", styles: [""], dependencies: [{ kind: "ngmodule", type: NzFormModule }, { kind: "directive", type: i1.NzColDirective, selector: "[nz-col],nz-col,nz-form-control,nz-form-label", inputs: ["nzFlex", "nzSpan", "nzOrder", "nzOffset", "nzPush", "nzPull", "nzXs", "nzSm", "nzMd", "nzLg", "nzXl", "nzXXl"], exportAs: ["nzCol"] }, { kind: "directive", type: i1.NzRowDirective, selector: "[nz-row],nz-row,nz-form-item", inputs: ["nzAlign", "nzJustify", "nzGutter"], exportAs: ["nzRow"] }, { kind: "directive", type: i2.NzFormDirective, selector: "[nz-form]", inputs: ["nzLayout", "nzNoColon", "nzAutoTips", "nzDisableAutoTips", "nzTooltipIcon", "nzLabelAlign", "nzLabelWrap"], exportAs: ["nzForm"] }, { kind: "component", type: i2.NzFormItemComponent, selector: "nz-form-item", exportAs: ["nzFormItem"] }, { kind: "component", type: i2.NzFormLabelComponent, selector: "nz-form-label", inputs: ["nzFor", "nzRequired", "nzNoColon", "nzTooltipTitle", "nzTooltipIcon", "nzLabelAlign", "nzLabelWrap"], exportAs: ["nzFormLabel"] }, { kind: "component", type: i2.NzFormControlComponent, selector: "nz-form-control", inputs: ["nzSuccessTip", "nzWarningTip", "nzErrorTip", "nzValidatingTip", "nzExtra", "nzAutoTips", "nzDisableAutoTips", "nzHasFeedback", "nzValidateStatus"], exportAs: ["nzFormControl"] }, { kind: "ngmodule", type: NzSelectModule }, { kind: "component", type: i3.NzOptionComponent, selector: "nz-option", inputs: ["nzTitle", "nzLabel", "nzValue", "nzKey", "nzDisabled", "nzHide", "nzCustomContent"], exportAs: ["nzOption"] }, { kind: "component", type: i3.NzSelectComponent, selector: "nz-select", inputs: ["nzId", "nzSize", "nzStatus", "nzVariant", "nzOptionHeightPx", "nzOptionOverflowSize", "nzDropdownClassName", "nzDropdownMatchSelectWidth", "nzDropdownStyle", "nzNotFoundContent", "nzPlaceHolder", "nzPlacement", "nzMaxTagCount", "nzDropdownRender", "nzCustomTemplate", "nzSuffixIcon", "nzClearIcon", "nzRemoveIcon", "nzMenuItemSelectedIcon", "nzTokenSeparators", "nzMaxTagPlaceholder", "nzMaxMultipleCount", "nzMode", "nzFilterOption", "compareWith", "nzAllowClear", "nzBorderless", "nzShowSearch", "nzLoading", "nzAutoFocus", "nzAutoClearSearchValue", "nzServerSearch", "nzDisabled", "nzOpen", "nzSelectOnTab", "nzBackdrop", "nzOptions", "nzShowArrow"], outputs: ["nzOnSearch", "nzScrollToBottom", "nzOpenChange", "nzBlur", "nzFocus", "nzOnClear"], exportAs: ["nzSelect"] }, { kind: "ngmodule", type: FormsModule }, { kind: "directive", type: i4.ɵNgNoValidate, selector: "form:not([ngNoForm]):not([ngNativeValidate])" }, { kind: "directive", type: i4.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: i4.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i4.NgControlStatusGroup, selector: "[formGroupName],[formArrayName],[ngModelGroup],[formGroup],form:not([ngNoForm]),[ngForm]" }, { kind: "directive", type: i4.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { kind: "ngmodule", type: ReactiveFormsModule }, { kind: "directive", type: i4.FormGroupDirective, selector: "[formGroup]", inputs: ["formGroup"], outputs: ["ngSubmit"], exportAs: ["ngForm"] }, { kind: "directive", type: i4.FormControlName, selector: "[formControlName]", inputs: ["formControlName", "disabled", "ngModel"], outputs: ["ngModelChange"] }, { kind: "component", type: FunField, selector: "axis-fun-field", inputs: ["scopes", "exclude", "scopeId", "onlyFun", "noListen", "disabled", "editTip", "value", "open", "showCreateListenModal", "createListenDataSourceName"], outputs: ["valueChange", "openChange", "showCreateListenModalChange", "createListenDataSourceNameChange"] }, { kind: "ngmodule", type: NzGridModule }, { kind: "ngmodule", type: NzInputModule }, { kind: "directive", type: i5.NzInputDirective, selector: "input[nz-input],textarea[nz-input]", inputs: ["nzBorderless", "nzVariant", "nzSize", "nzStepperless", "nzStatus", "disabled"], exportAs: ["nzInput"] }, { kind: "directive", type: DynamicDirective, selector: "[axisDynamic]", inputs: ["axisDynamic", "standalone", "isDesign"], outputs: ["onRegisteValueAccess"], exportAs: ["axisDynamic"] }, { kind: "ngmodule", type: NzSwitchModule }, { kind: "component", type: i6.NzSwitchComponent, selector: "nz-switch", inputs: ["nzLoading", "nzDisabled", "nzControl", "nzCheckedChildren", "nzUnCheckedChildren", "nzSize", "nzId"], exportAs: ["nzSwitch"] }, { kind: "ngmodule", type: NzRadioModule }, { kind: "component", type: i7.NzRadioComponent, selector: "[nz-radio],[nz-radio-button]", inputs: ["nzValue", "nzDisabled", "nzAutoFocus", "nz-radio-button"], exportAs: ["nzRadio"] }, { kind: "component", type: i7.NzRadioGroupComponent, selector: "nz-radio-group", inputs: ["nzDisabled", "nzButtonStyle", "nzSize", "nzName"], exportAs: ["nzRadioGroup"] }, { kind: "ngmodule", type: NzCollapseModule }, { kind: "component", type: i8.NzCollapsePanelComponent, selector: "nz-collapse-panel", inputs: ["nzActive", "nzDisabled", "nzShowArrow", "nzExtra", "nzHeader", "nzExpandedIcon"], outputs: ["nzActiveChange"], exportAs: ["nzCollapsePanel"] }, { kind: "component", type: i8.NzCollapseComponent, selector: "nz-collapse", inputs: ["nzAccordion", "nzBordered", "nzGhost", "nzExpandIconPosition"], exportAs: ["nzCollapse"] }, { kind: "component", type: BaseDesignSetting, selector: "axis-base-design-setting", inputs: ["scopeId", "exclude", "fg"] }, { kind: "component", type: InputTrigger, selector: "axis-input-trigger", inputs: ["internalTriggers", "value", "eventDesc", "isVisibleHandlerModal", "editEventHandler"], outputs: ["valueChange", "isVisibleHandlerModalChange", "editEventHandlerChange"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
77
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.1.6", type: Setting, isStandalone: true, selector: "axis-design-button-setting", usesInheritance: true, ngImport: i0, template: "<form [formGroup]=\"fg\" nz-form>\n <nz-collapse [nzBordered]=\"false\">\n <nz-collapse-panel nzHeader=\"\u5916\u89C2\u8BBE\u7F6E\" nzActive>\n <nz-form-item>\n <nz-form-label nzSpan=\"8\">\n \u6309\u94AE\u6587\u672C\n </nz-form-label>\n <nz-form-control nzSpan=\"16\">\n <axis-fun-field formControlName=\"title\">\n <input nz-input ngModel [ngModelOptions]=\"{standalone:true}\" />\n </axis-fun-field>\n </nz-form-control>\n </nz-form-item>\n <nz-form-item>\n <nz-form-label nzSpan=\"8\">\n \u6309\u94AE\u56FE\u6807\n </nz-form-label>\n <nz-form-control nzSpan=\"16\">\n <axis-fun-field formControlName=\"icon\">\n <ng-container [axisDynamic]=\"{component:'axis-components/input-icon',inuse:true}\"\n [standalone]=\"true\" ngModel [ngModelOptions]=\"{standalone:true}\"></ng-container>\n </axis-fun-field>\n </nz-form-control>\n </nz-form-item>\n <nz-form-item>\n <nz-form-label nzSpan=\"8\" nzRequired>\n \u662F\u5426\u7981\u7528\n </nz-form-label>\n <nz-form-control nzSpan=\"16\">\n <axis-fun-field formControlName=\"disabledBtn\">\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 \u6309\u94AE\u7C7B\u578B\n </nz-form-label>\n <nz-form-control nzSpan=\"16\">\n <axis-fun-field formControlName=\"styleType\">\n <nz-select ngModel [ngModelOptions]=\"{standalone:true}\">\n <nz-option nzLabel=\"\u9ED8\u8BA4\" nzValue=\"default\"></nz-option>\n <nz-option nzLabel=\"\u4E3B\u8981\" nzValue=\"primary\"></nz-option>\n <nz-option nzLabel=\"\u865A\u7EBF\" nzValue=\"dashed\"></nz-option>\n <nz-option nzLabel=\"\u94FE\u63A5\" nzValue=\"link\"></nz-option>\n <nz-option nzLabel=\"\u6587\u672C\" nzValue=\"text\"></nz-option>\n </nz-select>\n </axis-fun-field>\n </nz-form-control>\n </nz-form-item>\n <nz-form-item>\n <nz-form-label nzSpan=\"8\" nzRequired>\n \u80CC\u666F\u900F\u660E\n </nz-form-label>\n <nz-form-control nzSpan=\"16\">\n <axis-fun-field formControlName=\"ghost\">\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 \u6309\u94AE\u5927\u5C0F\n </nz-form-label>\n <nz-form-control nzSpan=\"16\">\n <axis-fun-field formControlName=\"size\">\n <nz-radio-group ngModel [ngModelOptions]=\"{standalone:true}\">\n <label nz-radio-button nzValue=\"large\">\u5927</label>\n <label nz-radio-button nzValue=\"default\">\u4E2D</label>\n <label nz-radio-button nzValue=\"small\">\u5C0F</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\" nzRequired>\n \u5BBD\u5EA6\u5C3D\u91CF\u5927\n </nz-form-label>\n <nz-form-control nzSpan=\"16\">\n <axis-fun-field formControlName=\"block\">\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 \u5371\u9669\u6309\u94AE\n </nz-form-label>\n <nz-form-control nzSpan=\"16\">\n <axis-fun-field formControlName=\"danger\">\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 \u6309\u94AE\u5F62\u72B6\n </nz-form-label>\n <nz-form-control nzSpan=\"16\">\n <axis-fun-field formControlName=\"shape\">\n <nz-select ngModel [ngModelOptions]=\"{standalone:true}\">\n <nz-option nzLabel=\"\u9ED8\u8BA4\" nzValue=\"\"></nz-option>\n <nz-option nzLabel=\"\u5706\u5F62\" nzValue=\"circle\"></nz-option>\n <nz-option nzLabel=\"\u80F6\u56CA\" nzValue=\"round\"></nz-option>\n </nz-select>\n </axis-fun-field>\n </nz-form-control>\n </nz-form-item>\n </nz-collapse-panel>\n <nz-collapse-panel nzHeader=\"\u786E\u8BA4\u63D0\u793A\">\n <nz-form-item>\n <nz-form-label nzSpan=\"10\" nzRequired>\n \u5F00\u542F\u786E\u8BA4\u63D0\u793A\n </nz-form-label>\n <nz-form-control nzSpan=\"14\">\n <axis-fun-field formControlName=\"confirm\">\n <nz-switch ngModel [ngModelOptions]=\"{standalone:true}\"></nz-switch>\n </axis-fun-field>\n </nz-form-control>\n </nz-form-item>\n @if (formValue().confirm?.funMode || formValue().confirm?.originValue) {\n <nz-form-item>\n <nz-form-label nzSpan=\"10\" nzRequired>\n \u786E\u8BA4\u6846\u7C7B\u578B\n </nz-form-label>\n <nz-form-control nzSpan=\"14\">\n <axis-fun-field formControlName=\"confirmType\">\n <nz-radio-group ngModel [ngModelOptions]=\"{standalone:true}\">\n <label nz-radio-button nzValue=\"modal\">\u5F39\u7A97</label>\n <label nz-radio-button nzValue=\"pop\">\u6C14\u6CE1</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=\"10\">\n \u786E\u8BA4\u6587\u672C\n </nz-form-label>\n <nz-form-control nzSpan=\"14\">\n <axis-fun-field formControlName=\"confirmText\">\n <input nz-input ngModel [ngModelOptions]=\"{standalone:true}\" />\n </axis-fun-field>\n </nz-form-control>\n </nz-form-item>\n }\n </nz-collapse-panel>\n <axis-base-design-setting [fg]=\"fg\"></axis-base-design-setting>\n <axis-input-trigger formControlName=\"triggeEvents\"\n [eventDesc]=\"[{name:'buttonClick',title:'\u70B9\u51FB\u6309\u94AE'}]\"></axis-input-trigger>\n </nz-collapse>\n</form>", styles: [""], dependencies: [{ kind: "ngmodule", type: NzFormModule }, { kind: "directive", type: i1.NzColDirective, selector: "[nz-col],nz-col,nz-form-control,nz-form-label", inputs: ["nzFlex", "nzSpan", "nzOrder", "nzOffset", "nzPush", "nzPull", "nzXs", "nzSm", "nzMd", "nzLg", "nzXl", "nzXXl"], exportAs: ["nzCol"] }, { kind: "directive", type: i1.NzRowDirective, selector: "[nz-row],nz-row,nz-form-item", inputs: ["nzAlign", "nzJustify", "nzGutter"], exportAs: ["nzRow"] }, { kind: "directive", type: i2.NzFormDirective, selector: "[nz-form]", inputs: ["nzLayout", "nzNoColon", "nzAutoTips", "nzDisableAutoTips", "nzTooltipIcon", "nzLabelAlign", "nzLabelWrap"], exportAs: ["nzForm"] }, { kind: "component", type: i2.NzFormItemComponent, selector: "nz-form-item", exportAs: ["nzFormItem"] }, { kind: "component", type: i2.NzFormLabelComponent, selector: "nz-form-label", inputs: ["nzFor", "nzRequired", "nzNoColon", "nzTooltipTitle", "nzTooltipIcon", "nzLabelAlign", "nzLabelWrap"], exportAs: ["nzFormLabel"] }, { kind: "component", type: i2.NzFormControlComponent, selector: "nz-form-control", inputs: ["nzSuccessTip", "nzWarningTip", "nzErrorTip", "nzValidatingTip", "nzExtra", "nzAutoTips", "nzDisableAutoTips", "nzHasFeedback", "nzValidateStatus"], exportAs: ["nzFormControl"] }, { kind: "ngmodule", type: NzSelectModule }, { kind: "component", type: i3.NzOptionComponent, selector: "nz-option", inputs: ["nzTitle", "nzLabel", "nzValue", "nzKey", "nzDisabled", "nzHide", "nzCustomContent"], exportAs: ["nzOption"] }, { kind: "component", type: i3.NzSelectComponent, selector: "nz-select", inputs: ["nzId", "nzSize", "nzStatus", "nzVariant", "nzOptionHeightPx", "nzOptionOverflowSize", "nzDropdownClassName", "nzDropdownMatchSelectWidth", "nzDropdownStyle", "nzNotFoundContent", "nzPlaceHolder", "nzPlacement", "nzMaxTagCount", "nzDropdownRender", "nzCustomTemplate", "nzSuffixIcon", "nzClearIcon", "nzRemoveIcon", "nzMenuItemSelectedIcon", "nzTokenSeparators", "nzMaxTagPlaceholder", "nzMaxMultipleCount", "nzMode", "nzFilterOption", "compareWith", "nzAllowClear", "nzBorderless", "nzShowSearch", "nzLoading", "nzAutoFocus", "nzAutoClearSearchValue", "nzServerSearch", "nzDisabled", "nzOpen", "nzSelectOnTab", "nzBackdrop", "nzOptions", "nzShowArrow"], outputs: ["nzOnSearch", "nzScrollToBottom", "nzOpenChange", "nzBlur", "nzFocus", "nzOnClear"], exportAs: ["nzSelect"] }, { kind: "ngmodule", type: FormsModule }, { kind: "directive", type: i4.ɵNgNoValidate, selector: "form:not([ngNoForm]):not([ngNativeValidate])" }, { kind: "directive", type: i4.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: i4.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i4.NgControlStatusGroup, selector: "[formGroupName],[formArrayName],[ngModelGroup],[formGroup],form:not([ngNoForm]),[ngForm]" }, { kind: "directive", type: i4.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { kind: "ngmodule", type: ReactiveFormsModule }, { kind: "directive", type: i4.FormGroupDirective, selector: "[formGroup]", inputs: ["formGroup"], outputs: ["ngSubmit"], exportAs: ["ngForm"] }, { kind: "directive", type: i4.FormControlName, selector: "[formControlName]", inputs: ["formControlName", "disabled", "ngModel"], outputs: ["ngModelChange"] }, { kind: "component", type: FunField, selector: "axis-fun-field", inputs: ["scopes", "exclude", "scopeId", "onlyFun", "noListen", "disabled", "editTip", "value", "open", "showCreateListenModal", "createListenDataSourceName"], outputs: ["valueChange", "openChange", "showCreateListenModalChange", "createListenDataSourceNameChange"] }, { kind: "ngmodule", type: NzGridModule }, { kind: "ngmodule", type: NzInputModule }, { kind: "directive", type: i5.NzInputDirective, selector: "input[nz-input],textarea[nz-input]", inputs: ["nzBorderless", "nzVariant", "nzSize", "nzStepperless", "nzStatus", "disabled"], exportAs: ["nzInput"] }, { kind: "directive", type: DynamicDirective, selector: "[axisDynamic]", inputs: ["axisDynamic", "standalone", "isDesign"], outputs: ["onRegisteValueAccess"], exportAs: ["axisDynamic"] }, { kind: "ngmodule", type: NzSwitchModule }, { kind: "component", type: i6.NzSwitchComponent, selector: "nz-switch", inputs: ["nzLoading", "nzDisabled", "nzControl", "nzCheckedChildren", "nzUnCheckedChildren", "nzSize", "nzId"], exportAs: ["nzSwitch"] }, { kind: "ngmodule", type: NzRadioModule }, { kind: "component", type: i7.NzRadioComponent, selector: "[nz-radio],[nz-radio-button]", inputs: ["nzValue", "nzDisabled", "nzAutoFocus", "nz-radio-button"], exportAs: ["nzRadio"] }, { kind: "component", type: i7.NzRadioGroupComponent, selector: "nz-radio-group", inputs: ["nzDisabled", "nzButtonStyle", "nzSize", "nzName"], exportAs: ["nzRadioGroup"] }, { kind: "ngmodule", type: NzCollapseModule }, { kind: "component", type: i8.NzCollapsePanelComponent, selector: "nz-collapse-panel", inputs: ["nzActive", "nzDisabled", "nzShowArrow", "nzExtra", "nzHeader", "nzExpandedIcon"], outputs: ["nzActiveChange"], exportAs: ["nzCollapsePanel"] }, { kind: "component", type: i8.NzCollapseComponent, selector: "nz-collapse", inputs: ["nzAccordion", "nzBordered", "nzGhost", "nzExpandIconPosition"], exportAs: ["nzCollapse"] }, { kind: "component", type: BaseDesignSetting, selector: "axis-base-design-setting", inputs: ["scopeId", "exclude", "fg"] }, { kind: "component", type: InputTrigger, selector: "axis-input-trigger", inputs: ["internalTriggers", "optionsNodeId", "value", "eventDesc", "isVisibleHandlerModal", "editEventHandler"], outputs: ["valueChange", "isVisibleHandlerModalChange", "editEventHandlerChange"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
78
78
|
}
|
|
79
79
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.1.6", ngImport: i0, type: Setting, decorators: [{
|
|
80
80
|
type: Component,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ngx-axis-appforge-axis-components-button-design.mjs","sources":["../../../axis-components/button/design/setting/setting.ts","../../../axis-components/button/design/setting/setting.html","../../../axis-components/button/design/config.ts","../../../axis-components/button/design/ngx-axis-appforge-axis-components-button-design.ts"],"sourcesContent":["import { ChangeDetectionStrategy, Component } from '@angular/core';\nimport { FormsModule, ReactiveFormsModule, UntypedFormGroup } from '@angular/forms';\nimport { NzFormModule } from 'ng-zorro-antd/form';\nimport { NzSelectModule } from 'ng-zorro-antd/select';\nimport { NzGridModule } from 'ng-zorro-antd/grid';\nimport { NzInputModule } from 'ng-zorro-antd/input';\nimport { NzSwitchModule } from 'ng-zorro-antd/switch';\nimport { NzRadioModule } from 'ng-zorro-antd/radio';\nimport { NzCollapseModule } from 'ng-zorro-antd/collapse';\nimport { InputTrigger, FunFieldValueBase, FunField, DynamicDirective, BaseDesignSetting, baseFbConfig, FormValidators, baseFunField, FunFieldOptions } from 'ngx-axis-appforge/core';\n\n@Component({\n selector: 'axis-design-button-setting',\n imports: [NzFormModule, NzSelectModule, FormsModule, ReactiveFormsModule, FunField, NzGridModule, NzInputModule, DynamicDirective, NzSwitchModule, NzRadioModule, NzCollapseModule, BaseDesignSetting, InputTrigger],\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 title: [],\n icon: [undefined],\n confirm: [undefined, [FormValidators.requiredFun]],\n confirmText: [undefined],\n confirmType: [undefined],\n disabledBtn: [undefined, [FormValidators.requiredFun]],\n styleType: [undefined, [FormValidators.requiredFun]],\n block: [undefined, [FormValidators.requiredFun]],\n danger: [undefined, [FormValidators.requiredFun]],\n ghost: [undefined, [FormValidators.requiredFun]],\n size: [undefined, [FormValidators.requiredFun]],\n shape: [],\n });\n\n protected override funFields: FunFieldOptions = {\n ...baseFunField,\n title: {\n defaultValue: \"\"\n },\n icon: {\n defaultValue: undefined\n },\n confirm: {\n defaultValue: false\n },\n confirmType: {\n defaultValue: \"modal\"\n },\n confirmText: {\n defaultValue: \"是否确认?\"\n },\n disabledBtn: {\n defaultValue: false\n },\n styleType: {\n defaultValue: \"default\"\n },\n ghost: {\n defaultValue: false\n },\n size: {\n defaultValue: \"default\"\n },\n block: {\n defaultValue: false\n },\n danger: {\n defaultValue: false\n },\n shape: {\n defaultValue: \"\"\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\">\n 按钮文本\n </nz-form-label>\n <nz-form-control nzSpan=\"16\">\n <axis-fun-field formControlName=\"title\">\n <input nz-input ngModel [ngModelOptions]=\"{standalone:true}\" />\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=\"icon\">\n <ng-container [axisDynamic]=\"{component:'axis-components/input-icon',inuse:true}\"\n [standalone]=\"true\" ngModel [ngModelOptions]=\"{standalone:true}\"></ng-container>\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=\"disabledBtn\">\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 <axis-fun-field formControlName=\"styleType\">\n <nz-select ngModel [ngModelOptions]=\"{standalone:true}\">\n <nz-option nzLabel=\"默认\" nzValue=\"default\"></nz-option>\n <nz-option nzLabel=\"主要\" nzValue=\"primary\"></nz-option>\n <nz-option nzLabel=\"虚线\" nzValue=\"dashed\"></nz-option>\n <nz-option nzLabel=\"链接\" nzValue=\"link\"></nz-option>\n <nz-option nzLabel=\"文本\" nzValue=\"text\"></nz-option>\n </nz-select>\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=\"ghost\">\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 <axis-fun-field formControlName=\"size\">\n <nz-radio-group ngModel [ngModelOptions]=\"{standalone:true}\">\n <label nz-radio-button nzValue=\"large\">大</label>\n <label nz-radio-button nzValue=\"default\">中</label>\n <label nz-radio-button nzValue=\"small\">小</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\" nzRequired>\n 宽度尽量大\n </nz-form-label>\n <nz-form-control nzSpan=\"16\">\n <axis-fun-field formControlName=\"block\">\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 <axis-fun-field formControlName=\"danger\">\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 <axis-fun-field formControlName=\"shape\">\n <nz-select ngModel [ngModelOptions]=\"{standalone:true}\">\n <nz-option nzLabel=\"默认\" nzValue=\"\"></nz-option>\n <nz-option nzLabel=\"圆形\" nzValue=\"circle\"></nz-option>\n <nz-option nzLabel=\"胶囊\" nzValue=\"round\"></nz-option>\n </nz-select>\n </axis-fun-field>\n </nz-form-control>\n </nz-form-item>\n </nz-collapse-panel>\n <nz-collapse-panel nzHeader=\"确认提示\">\n <nz-form-item>\n <nz-form-label nzSpan=\"10\" nzRequired>\n 开启确认提示\n </nz-form-label>\n <nz-form-control nzSpan=\"14\">\n <axis-fun-field formControlName=\"confirm\">\n <nz-switch ngModel [ngModelOptions]=\"{standalone:true}\"></nz-switch>\n </axis-fun-field>\n </nz-form-control>\n </nz-form-item>\n @if (formValue().confirm?.funMode || formValue().confirm?.originValue) {\n <nz-form-item>\n <nz-form-label nzSpan=\"10\" nzRequired>\n 确认框类型\n </nz-form-label>\n <nz-form-control nzSpan=\"14\">\n <axis-fun-field formControlName=\"confirmType\">\n <nz-radio-group ngModel [ngModelOptions]=\"{standalone:true}\">\n <label nz-radio-button nzValue=\"modal\">弹窗</label>\n <label nz-radio-button nzValue=\"pop\">气泡</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=\"10\">\n 确认文本\n </nz-form-label>\n <nz-form-control nzSpan=\"14\">\n <axis-fun-field formControlName=\"confirmText\">\n <input nz-input ngModel [ngModelOptions]=\"{standalone:true}\" />\n </axis-fun-field>\n </nz-form-control>\n </nz-form-item>\n }\n </nz-collapse-panel>\n <axis-base-design-setting [fg]=\"fg\"></axis-base-design-setting>\n <axis-input-trigger formControlName=\"triggeEvents\"\n [eventDesc]=\"[{name:'buttonClick',title:'点击按钮'}]\"></axis-input-trigger>\n </nz-collapse>\n</form>","import { Setting } from \"./setting/setting\";\nimport { DesignConfig, NextInfo, DesignBuildResult, OptionsNode, DesignBindElementsResult, nameCode, SimpleMenu } from 'ngx-axis-appforge/core';\n\nexport const Config: DesignConfig = {\n\n componentName: \"按钮\",\n buildOptionsNodes(nextInfo: NextInfo): DesignBuildResult {\n return {\n treeNode: new OptionsNode({\n parentId: nextInfo.parentId,\n scopeId: nextInfo.scopeId,\n name: nameCode(\"按钮\", nextInfo.currentObject.title),\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: \"border-outer\"\n })\n };\n },\n bindElementsOptionsNode(element: HTMLElement, options: any): DesignBindElementsResult {\n return {\n [options.id]: { element }\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,KAAK,EAAE,EAAE;QACT,IAAI,EAAE,CAAC,SAAS,CAAC;QACjB,OAAO,EAAE,CAAC,SAAS,EAAE,CAAC,cAAc,CAAC,WAAW,CAAC,CAAC;QAClD,WAAW,EAAE,CAAC,SAAS,CAAC;QACxB,WAAW,EAAE,CAAC,SAAS,CAAC;QACxB,WAAW,EAAE,CAAC,SAAS,EAAE,CAAC,cAAc,CAAC,WAAW,CAAC,CAAC;QACtD,SAAS,EAAE,CAAC,SAAS,EAAE,CAAC,cAAc,CAAC,WAAW,CAAC,CAAC;QACpD,KAAK,EAAE,CAAC,S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E;aACT;SACJ;KACJ;IACD,uBAAuB,CAAC,OAAoB,EAAE,OAAY,EAAA;QACtD,OAAO;AACH,YAAA,CAAC,OAAO,CAAC,EAAE,GAAG,EAAE,OAAO;SAC1B;KACJ;;;AC5BL;;AAEG;;;;"}
|
|
1
|
+
{"version":3,"file":"ngx-axis-appforge-axis-components-button-design.mjs","sources":["../../../axis-components/button/design/setting/setting.ts","../../../axis-components/button/design/setting/setting.html","../../../axis-components/button/design/config.ts","../../../axis-components/button/design/ngx-axis-appforge-axis-components-button-design.ts"],"sourcesContent":["import { ChangeDetectionStrategy, Component } from '@angular/core';\nimport { FormsModule, ReactiveFormsModule, UntypedFormGroup } from '@angular/forms';\nimport { NzFormModule } from 'ng-zorro-antd/form';\nimport { NzSelectModule } from 'ng-zorro-antd/select';\nimport { NzGridModule } from 'ng-zorro-antd/grid';\nimport { NzInputModule } from 'ng-zorro-antd/input';\nimport { NzSwitchModule } from 'ng-zorro-antd/switch';\nimport { NzRadioModule } from 'ng-zorro-antd/radio';\nimport { NzCollapseModule } from 'ng-zorro-antd/collapse';\nimport { InputTrigger, FunFieldValueBase, FunField, DynamicDirective, BaseDesignSetting, baseFbConfig, FormValidators, baseFunField, FunFieldOptions } from 'ngx-axis-appforge/core';\n\n@Component({\n selector: 'axis-design-button-setting',\n imports: [NzFormModule, NzSelectModule, FormsModule, ReactiveFormsModule, FunField, NzGridModule, NzInputModule, DynamicDirective, NzSwitchModule, NzRadioModule, NzCollapseModule, BaseDesignSetting, InputTrigger],\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 title: [],\n icon: [undefined],\n confirm: [undefined, [FormValidators.requiredFun]],\n confirmText: [undefined],\n confirmType: [undefined],\n disabledBtn: [undefined, [FormValidators.requiredFun]],\n styleType: [undefined, [FormValidators.requiredFun]],\n block: [undefined, [FormValidators.requiredFun]],\n danger: [undefined, [FormValidators.requiredFun]],\n ghost: [undefined, [FormValidators.requiredFun]],\n size: [undefined, [FormValidators.requiredFun]],\n shape: [],\n });\n\n protected override funFields: FunFieldOptions = {\n ...baseFunField,\n title: {\n defaultValue: \"\"\n },\n icon: {\n defaultValue: undefined\n },\n confirm: {\n defaultValue: false\n },\n confirmType: {\n defaultValue: \"modal\"\n },\n confirmText: {\n defaultValue: \"是否确认?\"\n },\n disabledBtn: {\n defaultValue: false\n },\n styleType: {\n defaultValue: \"default\"\n },\n ghost: {\n defaultValue: false\n },\n size: {\n defaultValue: \"default\"\n },\n block: {\n defaultValue: false\n },\n danger: {\n defaultValue: false\n },\n shape: {\n defaultValue: \"\"\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\">\n 按钮文本\n </nz-form-label>\n <nz-form-control nzSpan=\"16\">\n <axis-fun-field formControlName=\"title\">\n <input nz-input ngModel [ngModelOptions]=\"{standalone:true}\" />\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=\"icon\">\n <ng-container [axisDynamic]=\"{component:'axis-components/input-icon',inuse:true}\"\n [standalone]=\"true\" ngModel [ngModelOptions]=\"{standalone:true}\"></ng-container>\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=\"disabledBtn\">\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 <axis-fun-field formControlName=\"styleType\">\n <nz-select ngModel [ngModelOptions]=\"{standalone:true}\">\n <nz-option nzLabel=\"默认\" nzValue=\"default\"></nz-option>\n <nz-option nzLabel=\"主要\" nzValue=\"primary\"></nz-option>\n <nz-option nzLabel=\"虚线\" nzValue=\"dashed\"></nz-option>\n <nz-option nzLabel=\"链接\" nzValue=\"link\"></nz-option>\n <nz-option nzLabel=\"文本\" nzValue=\"text\"></nz-option>\n </nz-select>\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=\"ghost\">\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 <axis-fun-field formControlName=\"size\">\n <nz-radio-group ngModel [ngModelOptions]=\"{standalone:true}\">\n <label nz-radio-button nzValue=\"large\">大</label>\n <label nz-radio-button nzValue=\"default\">中</label>\n <label nz-radio-button nzValue=\"small\">小</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\" nzRequired>\n 宽度尽量大\n </nz-form-label>\n <nz-form-control nzSpan=\"16\">\n <axis-fun-field formControlName=\"block\">\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 <axis-fun-field formControlName=\"danger\">\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 <axis-fun-field formControlName=\"shape\">\n <nz-select ngModel [ngModelOptions]=\"{standalone:true}\">\n <nz-option nzLabel=\"默认\" nzValue=\"\"></nz-option>\n <nz-option nzLabel=\"圆形\" nzValue=\"circle\"></nz-option>\n <nz-option nzLabel=\"胶囊\" nzValue=\"round\"></nz-option>\n </nz-select>\n </axis-fun-field>\n </nz-form-control>\n </nz-form-item>\n </nz-collapse-panel>\n <nz-collapse-panel nzHeader=\"确认提示\">\n <nz-form-item>\n <nz-form-label nzSpan=\"10\" nzRequired>\n 开启确认提示\n </nz-form-label>\n <nz-form-control nzSpan=\"14\">\n <axis-fun-field formControlName=\"confirm\">\n <nz-switch ngModel [ngModelOptions]=\"{standalone:true}\"></nz-switch>\n </axis-fun-field>\n </nz-form-control>\n </nz-form-item>\n @if (formValue().confirm?.funMode || formValue().confirm?.originValue) {\n <nz-form-item>\n <nz-form-label nzSpan=\"10\" nzRequired>\n 确认框类型\n </nz-form-label>\n <nz-form-control nzSpan=\"14\">\n <axis-fun-field formControlName=\"confirmType\">\n <nz-radio-group ngModel [ngModelOptions]=\"{standalone:true}\">\n <label nz-radio-button nzValue=\"modal\">弹窗</label>\n <label nz-radio-button nzValue=\"pop\">气泡</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=\"10\">\n 确认文本\n </nz-form-label>\n <nz-form-control nzSpan=\"14\">\n <axis-fun-field formControlName=\"confirmText\">\n <input nz-input ngModel [ngModelOptions]=\"{standalone:true}\" />\n </axis-fun-field>\n </nz-form-control>\n </nz-form-item>\n }\n </nz-collapse-panel>\n <axis-base-design-setting [fg]=\"fg\"></axis-base-design-setting>\n <axis-input-trigger formControlName=\"triggeEvents\"\n [eventDesc]=\"[{name:'buttonClick',title:'点击按钮'}]\"></axis-input-trigger>\n </nz-collapse>\n</form>","import { Setting } from \"./setting/setting\";\nimport { DesignConfig, NextInfo, DesignBuildResult, OptionsNode, DesignBindElementsResult, nameCode, SimpleMenu } from 'ngx-axis-appforge/core';\n\nexport const Config: DesignConfig = {\n\n componentName: \"按钮\",\n buildOptionsNodes(nextInfo: NextInfo): DesignBuildResult {\n return {\n treeNode: new OptionsNode({\n parentId: nextInfo.parentId,\n scopeId: nextInfo.scopeId,\n name: nameCode(\"按钮\", nextInfo.currentObject.title),\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: \"border-outer\"\n })\n };\n },\n bindElementsOptionsNode(element: HTMLElement, options: any): DesignBindElementsResult {\n return {\n [options.id]: { element }\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,KAAK,EAAE,EAAE;QACT,IAAI,EAAE,CAAC,SAAS,CAAC;QACjB,OAAO,EAAE,CAAC,SAAS,EAAE,CAAC,cAAc,CAAC,WAAW,CAAC,CAAC;QAClD,WAAW,EAAE,CAAC,SAAS,CAAC;QACxB,WAAW,EAAE,CAAC,SAAS,CAAC;QACxB,WAAW,EAAE,CAAC,SAAS,EAAE,CAAC,cAAc,CAAC,WAAW,CAAC,CAAC;QACtD,SAAS,EAAE,CAAC,SAAS,EAAE,CAAC,cAAc,CAAC,WAAW,CAAC,CAAC;QACpD,KAAK,EAAE,CAAC,SAAS,EAAE,CAAC,cAAc,CAAC,WAAW,CAAC,CAAC;QAChD,MAAM,EAAE,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AAY,EAAA;QACtD,OAAO;AACH,YAAA,CAAC,OAAO,CAAC,EAAE,GAAG,EAAE,OAAO;SAC1B;KACJ;;;AC5BL;;AAEG;;;;"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ngx-axis-appforge-axis-components-button.mjs","sources":["../../../axis-components/button/button.options.ts","../../../axis-components/button/button.ts","../../../axis-components/button/button.html","../../../axis-components/button/ngx-axis-appforge-axis-components-button.ts"],"sourcesContent":["import { signal } from \"@angular/core\";\nimport { BaseOptions } from \"ngx-axis-appforge/core\";\n\nexport class ButtonOptions extends BaseOptions {\n readonly title = signal<string>(\"\");\n readonly icon = signal<any>(undefined);\n readonly confirm = signal<boolean>(false);\n readonly confirmType = signal<\"modal\" | \"pop\">(\"modal\");\n readonly confirmText = signal<string>(\"是否确认?\");\n readonly disabledBtn = signal<boolean>(false);\n readonly styleType = signal<\"default\" | \"primary\" | \"dashed\" | \"link\" | \"text\">(\"default\");\n readonly ghost = signal<boolean>(false);\n readonly size = signal<\"large\" | \"small\" | \"default\">(\"default\");\n readonly block = signal<boolean>(false);\n readonly danger = signal<boolean>(false);\n readonly shape = signal<null | \"circle\" | \"round\">(null);\n}","import { ChangeDetectionStrategy, Component, signal } from '@angular/core';\nimport { ButtonOptions } from './button.options';\nimport { NzButtonModule } from 'ng-zorro-antd/button';\nimport { CommonModule } from '@angular/common';\nimport { NzPopconfirmModule } from 'ng-zorro-antd/popconfirm';\nimport { DynamicDirective, Base } from 'ngx-axis-appforge/core';\nimport { finalize } from 'rxjs';\nimport { NzModalModule, NzModalService } from 'ng-zorro-antd/modal';\n\n@Component({\n selector: 'axis-button',\n imports: [CommonModule, DynamicDirective, NzButtonModule, NzPopconfirmModule, NzModalModule],\n templateUrl: './button.html',\n styleUrl: './button.css',\n changeDetection: ChangeDetectionStrategy.OnPush,\n})\nexport class Button extends Base<ButtonOptions> {\n\n constructor(private modal: NzModalService) {\n super();\n }\n\n
|
|
1
|
+
{"version":3,"file":"ngx-axis-appforge-axis-components-button.mjs","sources":["../../../axis-components/button/button.options.ts","../../../axis-components/button/button.ts","../../../axis-components/button/button.html","../../../axis-components/button/ngx-axis-appforge-axis-components-button.ts"],"sourcesContent":["import { signal } from \"@angular/core\";\nimport { BaseOptions } from \"ngx-axis-appforge/core\";\n\nexport class ButtonOptions extends BaseOptions {\n readonly title = signal<string>(\"\");\n readonly icon = signal<any>(undefined);\n readonly confirm = signal<boolean>(false);\n readonly confirmType = signal<\"modal\" | \"pop\">(\"modal\");\n readonly confirmText = signal<string>(\"是否确认?\");\n readonly disabledBtn = signal<boolean>(false);\n readonly styleType = signal<\"default\" | \"primary\" | \"dashed\" | \"link\" | \"text\">(\"default\");\n readonly ghost = signal<boolean>(false);\n readonly size = signal<\"large\" | \"small\" | \"default\">(\"default\");\n readonly block = signal<boolean>(false);\n readonly danger = signal<boolean>(false);\n readonly shape = signal<null | \"circle\" | \"round\">(null);\n}","import { ChangeDetectionStrategy, Component, signal } from '@angular/core';\nimport { ButtonOptions } from './button.options';\nimport { NzButtonModule } from 'ng-zorro-antd/button';\nimport { CommonModule } from '@angular/common';\nimport { NzPopconfirmModule } from 'ng-zorro-antd/popconfirm';\nimport { DynamicDirective, Base } from 'ngx-axis-appforge/core';\nimport { finalize } from 'rxjs';\nimport { NzModalModule, NzModalService } from 'ng-zorro-antd/modal';\n\n@Component({\n selector: 'axis-button',\n imports: [CommonModule, DynamicDirective, NzButtonModule, NzPopconfirmModule, NzModalModule],\n templateUrl: './button.html',\n styleUrl: './button.css',\n changeDetection: ChangeDetectionStrategy.OnPush,\n})\nexport class Button extends Base<ButtonOptions> {\n\n constructor(private modal: NzModalService) {\n super();\n }\n\n override options: ButtonOptions = new ButtonOptions();\n\n loading = signal(false);\n\n buttonClick() {\n if (this.loading()) {\n return;\n }\n if (this.options.confirm() && this.options.confirmType() == \"modal\") {\n this.modal.confirm({\n nzContent: this.options.confirmText(),\n nzMaskClosable: true,\n nzOnOk: () => {\n this.doSomething();\n }\n })\n } else if (!this.options.confirm()) {\n this.doSomething();\n }\n }\n\n popConfirm() {\n if (this.options.confirm() && this.options.confirmType() == \"pop\") {\n this.doSomething();\n }\n }\n\n doSomething() {\n this.loading.set(true);\n this.triggeEvents(\"buttonClick\")\n .pipe(finalize(() => this.loading.set(false)))\n .subscribe();\n }\n\n}\n","<button [nzLoading]=\"loading()\" nz-button [nzSize]=\"options.size()\" [nzType]=\"options.styleType()\" nz-popconfirm\n [nzPopconfirmTitle]=\"options.confirmText()\"\n [nzCondition]=\"!(options.confirm() && options.confirmType() == 'pop' && !loading())\" (nzOnConfirm)=\"popConfirm()\"\n (click)=\"buttonClick()\" [disabled]=\"options.disabledBtn()\" [nzGhost]=\"options.ghost()\" [nzBlock]=\"options.block()\"\n [nzDanger]=\"options.danger()\" [nzShape]=\"options.shape()\">\n @if (options.icon()) {\n <ng-container [axisDynamic]=\"options.icon()\"></ng-container>\n @if (options.title()) {\n <span style=\"margin-right: 10px;\"></span>\n }\n }\n {{options.title()}}\n</button>","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './button';\n"],"names":[],"mappings":";;;;;;;;;;;;;;AAGM,MAAO,aAAc,SAAQ,WAAW,CAAA;AACjC,IAAA,KAAK,GAAG,MAAM,CAAS,EAAE,iDAAC;AAC1B,IAAA,IAAI,GAAG,MAAM,CAAM,SAAS,gDAAC;AAC7B,IAAA,OAAO,GAAG,MAAM,CAAU,KAAK,mDAAC;AAChC,IAAA,WAAW,GAAG,MAAM,CAAkB,OAAO,uDAAC;AAC9C,IAAA,WAAW,GAAG,MAAM,CAAS,OAAO,uDAAC;AACrC,IAAA,WAAW,GAAG,MAAM,CAAU,KAAK,uDAAC;AACpC,IAAA,SAAS,GAAG,MAAM,CAAqD,SAAS,qDAAC;AACjF,IAAA,KAAK,GAAG,MAAM,CAAU,KAAK,iDAAC;AAC9B,IAAA,IAAI,GAAG,MAAM,CAAgC,SAAS,gDAAC;AACvD,IAAA,KAAK,GAAG,MAAM,CAAU,KAAK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