ngx-axis-appforge 0.0.48 → 0.0.50
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/edit-table/index.d.ts +11 -4
- package/axis-components/table/index.d.ts +4 -4
- package/axis-components/table-helper/index.d.ts +33 -12
- package/fesm2022/ngx-axis-appforge-axis-components-badge-design.mjs +3 -3
- package/fesm2022/ngx-axis-appforge-axis-components-badge-design.mjs.map +1 -1
- package/fesm2022/ngx-axis-appforge-axis-components-badge.mjs +3 -3
- package/fesm2022/ngx-axis-appforge-axis-components-button-design.mjs +3 -3
- package/fesm2022/ngx-axis-appforge-axis-components-button-design.mjs.map +1 -1
- package/fesm2022/ngx-axis-appforge-axis-components-button.mjs +3 -3
- package/fesm2022/ngx-axis-appforge-axis-components-button.mjs.map +1 -1
- package/fesm2022/ngx-axis-appforge-axis-components-checkbox-design.mjs +3 -3
- package/fesm2022/ngx-axis-appforge-axis-components-checkbox-design.mjs.map +1 -1
- package/fesm2022/ngx-axis-appforge-axis-components-checkbox.mjs +3 -3
- package/fesm2022/ngx-axis-appforge-axis-components-checkbox.mjs.map +1 -1
- package/fesm2022/ngx-axis-appforge-axis-components-color-picker-design.mjs +3 -3
- package/fesm2022/ngx-axis-appforge-axis-components-color-picker-design.mjs.map +1 -1
- package/fesm2022/ngx-axis-appforge-axis-components-color-picker.mjs +3 -3
- package/fesm2022/ngx-axis-appforge-axis-components-cytoscape-design.mjs +3 -3
- package/fesm2022/ngx-axis-appforge-axis-components-cytoscape-design.mjs.map +1 -1
- package/fesm2022/ngx-axis-appforge-axis-components-cytoscape.mjs +3 -3
- package/fesm2022/ngx-axis-appforge-axis-components-cytoscape.mjs.map +1 -1
- package/fesm2022/ngx-axis-appforge-axis-components-date-picker-design.mjs +3 -3
- package/fesm2022/ngx-axis-appforge-axis-components-date-picker-design.mjs.map +1 -1
- package/fesm2022/ngx-axis-appforge-axis-components-date-picker.mjs +3 -3
- package/fesm2022/ngx-axis-appforge-axis-components-date-picker.mjs.map +1 -1
- package/fesm2022/ngx-axis-appforge-axis-components-desc-design.mjs +9 -9
- package/fesm2022/ngx-axis-appforge-axis-components-desc-design.mjs.map +1 -1
- package/fesm2022/ngx-axis-appforge-axis-components-desc.mjs +3 -3
- package/fesm2022/ngx-axis-appforge-axis-components-desc.mjs.map +1 -1
- package/fesm2022/ngx-axis-appforge-axis-components-design-design.mjs +3 -3
- package/fesm2022/ngx-axis-appforge-axis-components-design-design.mjs.map +1 -1
- package/fesm2022/ngx-axis-appforge-axis-components-design.mjs +16 -16
- package/fesm2022/ngx-axis-appforge-axis-components-design.mjs.map +1 -1
- package/fesm2022/ngx-axis-appforge-axis-components-dropdown-design.mjs +3 -3
- package/fesm2022/ngx-axis-appforge-axis-components-dropdown-design.mjs.map +1 -1
- package/fesm2022/ngx-axis-appforge-axis-components-dropdown.mjs +3 -3
- package/fesm2022/ngx-axis-appforge-axis-components-dropdown.mjs.map +1 -1
- package/fesm2022/ngx-axis-appforge-axis-components-dynamic-container-design.mjs +3 -3
- package/fesm2022/ngx-axis-appforge-axis-components-dynamic-container-design.mjs.map +1 -1
- package/fesm2022/ngx-axis-appforge-axis-components-dynamic-container.mjs +3 -3
- package/fesm2022/ngx-axis-appforge-axis-components-dynamic-value-design.mjs +3 -3
- package/fesm2022/ngx-axis-appforge-axis-components-dynamic-value-design.mjs.map +1 -1
- package/fesm2022/ngx-axis-appforge-axis-components-dynamic-value.mjs +3 -3
- package/fesm2022/ngx-axis-appforge-axis-components-edit-table-design.mjs +77 -35
- package/fesm2022/ngx-axis-appforge-axis-components-edit-table-design.mjs.map +1 -1
- package/fesm2022/ngx-axis-appforge-axis-components-edit-table.mjs +66 -13
- package/fesm2022/ngx-axis-appforge-axis-components-edit-table.mjs.map +1 -1
- package/fesm2022/ngx-axis-appforge-axis-components-editor-design.mjs +3 -3
- package/fesm2022/ngx-axis-appforge-axis-components-editor-design.mjs.map +1 -1
- package/fesm2022/ngx-axis-appforge-axis-components-editor.mjs +3 -3
- package/fesm2022/ngx-axis-appforge-axis-components-editor.mjs.map +1 -1
- package/fesm2022/ngx-axis-appforge-axis-components-flex-design.mjs +3 -3
- package/fesm2022/ngx-axis-appforge-axis-components-flex-design.mjs.map +1 -1
- package/fesm2022/ngx-axis-appforge-axis-components-flex.mjs +3 -3
- package/fesm2022/ngx-axis-appforge-axis-components-form-design.mjs +3 -3
- package/fesm2022/ngx-axis-appforge-axis-components-form-design.mjs.map +1 -1
- package/fesm2022/ngx-axis-appforge-axis-components-form-item-design.mjs +3 -3
- package/fesm2022/ngx-axis-appforge-axis-components-form-item-design.mjs.map +1 -1
- package/fesm2022/ngx-axis-appforge-axis-components-form-item.mjs +3 -3
- package/fesm2022/ngx-axis-appforge-axis-components-form-item.mjs.map +1 -1
- package/fesm2022/ngx-axis-appforge-axis-components-form.mjs +3 -3
- package/fesm2022/ngx-axis-appforge-axis-components-form.mjs.map +1 -1
- package/fesm2022/ngx-axis-appforge-axis-components-icon-design.mjs +3 -3
- package/fesm2022/ngx-axis-appforge-axis-components-icon-design.mjs.map +1 -1
- package/fesm2022/ngx-axis-appforge-axis-components-icon.mjs +3 -3
- package/fesm2022/ngx-axis-appforge-axis-components-image-design.mjs +3 -3
- package/fesm2022/ngx-axis-appforge-axis-components-image-design.mjs.map +1 -1
- package/fesm2022/ngx-axis-appforge-axis-components-image.mjs +3 -3
- package/fesm2022/ngx-axis-appforge-axis-components-image.mjs.map +1 -1
- package/fesm2022/ngx-axis-appforge-axis-components-input-component-design.mjs +3 -3
- package/fesm2022/ngx-axis-appforge-axis-components-input-component-design.mjs.map +1 -1
- package/fesm2022/ngx-axis-appforge-axis-components-input-component.mjs +3 -3
- package/fesm2022/ngx-axis-appforge-axis-components-input-component.mjs.map +1 -1
- package/fesm2022/ngx-axis-appforge-axis-components-input-design.mjs +3 -3
- package/fesm2022/ngx-axis-appforge-axis-components-input-design.mjs.map +1 -1
- package/fesm2022/ngx-axis-appforge-axis-components-input-icon-design.mjs +3 -3
- package/fesm2022/ngx-axis-appforge-axis-components-input-icon-design.mjs.map +1 -1
- package/fesm2022/ngx-axis-appforge-axis-components-input-icon.mjs +3 -3
- package/fesm2022/ngx-axis-appforge-axis-components-input-icon.mjs.map +1 -1
- package/fesm2022/ngx-axis-appforge-axis-components-input-json-design.mjs +3 -3
- package/fesm2022/ngx-axis-appforge-axis-components-input-json-design.mjs.map +1 -1
- package/fesm2022/ngx-axis-appforge-axis-components-input-json.mjs +3 -3
- package/fesm2022/ngx-axis-appforge-axis-components-input-json.mjs.map +1 -1
- package/fesm2022/ngx-axis-appforge-axis-components-input-number-design.mjs +3 -3
- package/fesm2022/ngx-axis-appforge-axis-components-input-number-design.mjs.map +1 -1
- package/fesm2022/ngx-axis-appforge-axis-components-input-number.mjs +3 -3
- package/fesm2022/ngx-axis-appforge-axis-components-input-number.mjs.map +1 -1
- package/fesm2022/ngx-axis-appforge-axis-components-input.mjs +3 -3
- package/fesm2022/ngx-axis-appforge-axis-components-input.mjs.map +1 -1
- package/fesm2022/ngx-axis-appforge-axis-components-menu-design.mjs +12 -12
- package/fesm2022/ngx-axis-appforge-axis-components-menu-design.mjs.map +1 -1
- package/fesm2022/ngx-axis-appforge-axis-components-menu.mjs +3 -3
- package/fesm2022/ngx-axis-appforge-axis-components-menu.mjs.map +1 -1
- package/fesm2022/ngx-axis-appforge-axis-components-modal-design.mjs +6 -6
- package/fesm2022/ngx-axis-appforge-axis-components-modal-design.mjs.map +1 -1
- package/fesm2022/ngx-axis-appforge-axis-components-modal.mjs +3 -3
- package/fesm2022/ngx-axis-appforge-axis-components-modal.mjs.map +1 -1
- package/fesm2022/ngx-axis-appforge-axis-components-radio-design.mjs +3 -3
- package/fesm2022/ngx-axis-appforge-axis-components-radio-design.mjs.map +1 -1
- package/fesm2022/ngx-axis-appforge-axis-components-radio.mjs +3 -3
- package/fesm2022/ngx-axis-appforge-axis-components-radio.mjs.map +1 -1
- package/fesm2022/ngx-axis-appforge-axis-components-rate-design.mjs +3 -3
- package/fesm2022/ngx-axis-appforge-axis-components-rate-design.mjs.map +1 -1
- package/fesm2022/ngx-axis-appforge-axis-components-rate.mjs +3 -3
- package/fesm2022/ngx-axis-appforge-axis-components-scope-design.mjs +6 -6
- package/fesm2022/ngx-axis-appforge-axis-components-scope-design.mjs.map +1 -1
- package/fesm2022/ngx-axis-appforge-axis-components-scope.mjs +3 -3
- package/fesm2022/ngx-axis-appforge-axis-components-scope.mjs.map +1 -1
- package/fesm2022/ngx-axis-appforge-axis-components-select-design.mjs +3 -3
- package/fesm2022/ngx-axis-appforge-axis-components-select-design.mjs.map +1 -1
- package/fesm2022/ngx-axis-appforge-axis-components-select.mjs +3 -4
- package/fesm2022/ngx-axis-appforge-axis-components-select.mjs.map +1 -1
- package/fesm2022/ngx-axis-appforge-axis-components-single-selector-design.mjs +3 -3
- package/fesm2022/ngx-axis-appforge-axis-components-single-selector-design.mjs.map +1 -1
- package/fesm2022/ngx-axis-appforge-axis-components-single-selector.mjs +3 -3
- package/fesm2022/ngx-axis-appforge-axis-components-single-selector.mjs.map +1 -1
- package/fesm2022/ngx-axis-appforge-axis-components-splitter-design.mjs +9 -9
- package/fesm2022/ngx-axis-appforge-axis-components-splitter-design.mjs.map +1 -1
- package/fesm2022/ngx-axis-appforge-axis-components-splitter.mjs +3 -3
- package/fesm2022/ngx-axis-appforge-axis-components-splitter.mjs.map +1 -1
- package/fesm2022/ngx-axis-appforge-axis-components-steps-design.mjs +9 -9
- package/fesm2022/ngx-axis-appforge-axis-components-steps-design.mjs.map +1 -1
- package/fesm2022/ngx-axis-appforge-axis-components-steps.mjs +3 -3
- package/fesm2022/ngx-axis-appforge-axis-components-steps.mjs.map +1 -1
- package/fesm2022/ngx-axis-appforge-axis-components-switch-design.mjs +3 -3
- package/fesm2022/ngx-axis-appforge-axis-components-switch-design.mjs.map +1 -1
- package/fesm2022/ngx-axis-appforge-axis-components-switch.mjs +3 -3
- package/fesm2022/ngx-axis-appforge-axis-components-switch.mjs.map +1 -1
- package/fesm2022/ngx-axis-appforge-axis-components-table-design.mjs +16 -10
- package/fesm2022/ngx-axis-appforge-axis-components-table-design.mjs.map +1 -1
- package/fesm2022/ngx-axis-appforge-axis-components-table-helper.mjs +138 -43
- package/fesm2022/ngx-axis-appforge-axis-components-table-helper.mjs.map +1 -1
- package/fesm2022/ngx-axis-appforge-axis-components-table.mjs +38 -14
- package/fesm2022/ngx-axis-appforge-axis-components-table.mjs.map +1 -1
- package/fesm2022/ngx-axis-appforge-axis-components-tabs-design.mjs +9 -9
- package/fesm2022/ngx-axis-appforge-axis-components-tabs-design.mjs.map +1 -1
- package/fesm2022/ngx-axis-appforge-axis-components-tabs.mjs +3 -3
- package/fesm2022/ngx-axis-appforge-axis-components-tabs.mjs.map +1 -1
- package/fesm2022/ngx-axis-appforge-axis-components-text-design.mjs +3 -3
- package/fesm2022/ngx-axis-appforge-axis-components-text-design.mjs.map +1 -1
- package/fesm2022/ngx-axis-appforge-axis-components-text.mjs +3 -3
- package/fesm2022/ngx-axis-appforge-axis-components-text.mjs.map +1 -1
- package/fesm2022/ngx-axis-appforge-axis-components-textarea-design.mjs +3 -3
- package/fesm2022/ngx-axis-appforge-axis-components-textarea-design.mjs.map +1 -1
- package/fesm2022/ngx-axis-appforge-axis-components-textarea.mjs +3 -3
- package/fesm2022/ngx-axis-appforge-axis-components-textarea.mjs.map +1 -1
- package/fesm2022/ngx-axis-appforge-axis-components-timer-design.mjs +3 -3
- package/fesm2022/ngx-axis-appforge-axis-components-timer-design.mjs.map +1 -1
- package/fesm2022/ngx-axis-appforge-axis-components-timer.mjs +3 -3
- package/fesm2022/ngx-axis-appforge-axis-components-timer.mjs.map +1 -1
- package/fesm2022/ngx-axis-appforge-axis-components-transfer-design.mjs +9 -9
- package/fesm2022/ngx-axis-appforge-axis-components-transfer-design.mjs.map +1 -1
- package/fesm2022/ngx-axis-appforge-axis-components-transfer.mjs +3 -3
- package/fesm2022/ngx-axis-appforge-axis-components-transfer.mjs.map +1 -1
- package/fesm2022/ngx-axis-appforge-axis-components-tree-selector-design.mjs +9 -9
- package/fesm2022/ngx-axis-appforge-axis-components-tree-selector-design.mjs.map +1 -1
- package/fesm2022/ngx-axis-appforge-axis-components-tree-selector.mjs +3 -3
- package/fesm2022/ngx-axis-appforge-axis-components-tree-selector.mjs.map +1 -1
- package/fesm2022/ngx-axis-appforge-axis-components-upload-design.mjs +3 -3
- package/fesm2022/ngx-axis-appforge-axis-components-upload-design.mjs.map +1 -1
- package/fesm2022/ngx-axis-appforge-axis-components-upload.mjs +3 -3
- package/fesm2022/ngx-axis-appforge-axis-components-upload.mjs.map +1 -1
- package/fesm2022/ngx-axis-appforge-core.mjs +78 -78
- package/fesm2022/ngx-axis-appforge-core.mjs.map +1 -1
- package/fesm2022/ngx-axis-appforge-providers.mjs.map +1 -1
- package/package.json +133 -133
|
@@ -1,16 +1,20 @@
|
|
|
1
1
|
import * as _angular_core from '@angular/core';
|
|
2
2
|
import { OnInit, OnDestroy, WritableSignal } from '@angular/core';
|
|
3
3
|
import { ValueAccessOptions, ValueAccess, RegisteValueAccessOptions } from 'ngx-axis-appforge/core';
|
|
4
|
-
import { BaseTableOptions, SelectableTableOptions, BaseTableFieldOptions, TableService, SelectService } from 'ngx-axis-appforge/axis-components/table-helper';
|
|
4
|
+
import { BaseTableOptions, SelectableTableOptions, ExpandableTableOptions, BaseTableFieldOptions, TableService, SelectService, ExpandService } from 'ngx-axis-appforge/axis-components/table-helper';
|
|
5
5
|
import { UntypedFormGroup, FormArray, AbstractControl } from '@angular/forms';
|
|
6
6
|
import { Subscription } from 'rxjs';
|
|
7
7
|
|
|
8
|
-
declare class EditTableOptions extends ValueAccessOptions implements BaseTableOptions, SelectableTableOptions {
|
|
8
|
+
declare class EditTableOptions extends ValueAccessOptions implements BaseTableOptions, SelectableTableOptions, ExpandableTableOptions {
|
|
9
9
|
readonly disabledAppend: _angular_core.WritableSignal<boolean>;
|
|
10
10
|
readonly disabledRemove: _angular_core.WritableSignal<boolean>;
|
|
11
11
|
readonly disabledRemoveFn: _angular_core.WritableSignal<string>;
|
|
12
12
|
readonly maxLength: _angular_core.WritableSignal<number | null>;
|
|
13
13
|
readonly addInitData: _angular_core.WritableSignal<any>;
|
|
14
|
+
readonly showExpand: _angular_core.WritableSignal<boolean>;
|
|
15
|
+
readonly expandMode: _angular_core.WritableSignal<"custom" | "tree">;
|
|
16
|
+
readonly treeChildrenFun: _angular_core.WritableSignal<string>;
|
|
17
|
+
readonly expandFormName: _angular_core.WritableSignal<string | undefined>;
|
|
14
18
|
readonly size: _angular_core.WritableSignal<"middle" | "small" | "default">;
|
|
15
19
|
readonly showOrder: _angular_core.WritableSignal<boolean>;
|
|
16
20
|
readonly showDataSize: _angular_core.WritableSignal<boolean>;
|
|
@@ -31,6 +35,7 @@ declare class EditTableOptions extends ValueAccessOptions implements BaseTableOp
|
|
|
31
35
|
readonly showSizeChanger: _angular_core.WritableSignal<boolean>;
|
|
32
36
|
readonly pageSizeOptions: _angular_core.WritableSignal<string>;
|
|
33
37
|
readonly fields: _angular_core.WritableSignal<any[]>;
|
|
38
|
+
readonly expandRow: _angular_core.WritableSignal<any>;
|
|
34
39
|
}
|
|
35
40
|
declare class EditTableFieldOptions implements BaseTableFieldOptions {
|
|
36
41
|
readonly inuse: _angular_core.WritableSignal<boolean>;
|
|
@@ -53,7 +58,8 @@ declare class EditTableFieldOptions implements BaseTableFieldOptions {
|
|
|
53
58
|
declare class EditTable extends ValueAccess<EditTableOptions> implements OnInit, OnDestroy {
|
|
54
59
|
tableSvc: TableService<EditTableOptions, EditTableFieldOptions>;
|
|
55
60
|
select: SelectService;
|
|
56
|
-
|
|
61
|
+
expand: ExpandService;
|
|
62
|
+
constructor(tableSvc: TableService<EditTableOptions, EditTableFieldOptions>, select: SelectService, expand: ExpandService, parentSelect?: SelectService);
|
|
57
63
|
options: EditTableOptions;
|
|
58
64
|
private readonly fb;
|
|
59
65
|
readonly fg: UntypedFormGroup;
|
|
@@ -76,6 +82,7 @@ declare class EditTable extends ValueAccess<EditTableOptions> implements OnInit,
|
|
|
76
82
|
setInitValue(value: any): void;
|
|
77
83
|
childRegisteValueAccess(opt: RegisteValueAccessOptions, index: number, field: EditTableFieldOptions): void;
|
|
78
84
|
valueToFormValue(): void;
|
|
85
|
+
formValueToSelect(): void;
|
|
79
86
|
formValueToValue(): void;
|
|
80
87
|
buildRow(): EditTableRowData;
|
|
81
88
|
addRow(): void;
|
|
@@ -83,7 +90,7 @@ declare class EditTable extends ValueAccess<EditTableOptions> implements OnInit,
|
|
|
83
90
|
refreshStatus(row: EditTableRowData): void;
|
|
84
91
|
ngOnDestroy(): void;
|
|
85
92
|
onSelectedChange(checkedIds: Set<any>): void;
|
|
86
|
-
static ɵfac: _angular_core.ɵɵFactoryDeclaration<EditTable,
|
|
93
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<EditTable, [null, null, null, { optional: true; skipSelf: true; }]>;
|
|
87
94
|
static ɵcmp: _angular_core.ɵɵComponentDeclaration<EditTable, "axis-edit-table", never, { "pageIndex": { "alias": "pageIndex"; "required": false; "isSignal": true; }; }, { "pageIndex": "pageIndexChange"; }, never, never, true, never>;
|
|
88
95
|
}
|
|
89
96
|
interface EditTableRowData {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import * as _angular_core from '@angular/core';
|
|
2
2
|
import { OnDestroy, ElementRef } from '@angular/core';
|
|
3
3
|
import { DataOptions, Base } from 'ngx-axis-appforge/core';
|
|
4
|
-
import { BaseTableOptions, SelectableTableOptions, ExpandableTableOptions, StatisticTableOptions, BaseTableFieldOptions, StatisticTableFieldOptions, TableService,
|
|
4
|
+
import { BaseTableOptions, SelectableTableOptions, ExpandableTableOptions, StatisticTableOptions, BaseTableFieldOptions, StatisticTableFieldOptions, TableService, ExpandService, StatisticService, SelectService } from 'ngx-axis-appforge/axis-components/table-helper';
|
|
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';
|
|
@@ -112,11 +112,11 @@ declare class TableSetter implements OnDestroy {
|
|
|
112
112
|
declare class Table extends Base<TableOptions> {
|
|
113
113
|
private elementRef;
|
|
114
114
|
tableSvc: TableService<TableOptions, TableFieldOptions>;
|
|
115
|
-
select: SelectService;
|
|
116
115
|
expand: ExpandService;
|
|
117
116
|
statistic: StatisticService;
|
|
118
|
-
constructor(elementRef: ElementRef, tableSvc: TableService<TableOptions, TableFieldOptions>, select: SelectService, expand: ExpandService, statistic: StatisticService);
|
|
117
|
+
constructor(elementRef: ElementRef, tableSvc: TableService<TableOptions, TableFieldOptions>, select: SelectService, expand: ExpandService, statistic: StatisticService, parentSelect?: SelectService);
|
|
119
118
|
options: TableOptions;
|
|
119
|
+
select: SelectService;
|
|
120
120
|
readonly scroll: _angular_core.WritableSignal<{
|
|
121
121
|
x: string;
|
|
122
122
|
y: string;
|
|
@@ -140,7 +140,7 @@ declare class Table extends Base<TableOptions> {
|
|
|
140
140
|
rowspan(field: string, index: number): number;
|
|
141
141
|
onSelectedChange(): void;
|
|
142
142
|
ngOnDestroy(): void;
|
|
143
|
-
static ɵfac: _angular_core.ɵɵFactoryDeclaration<Table,
|
|
143
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<Table, [null, null, null, null, null, { optional: true; skipSelf: true; }]>;
|
|
144
144
|
static ɵcmp: _angular_core.ɵɵComponentDeclaration<Table, "axis-table", never, { "pageIndex": { "alias": "pageIndex"; "required": false; "isSignal": true; }; }, { "pageIndex": "pageIndexChange"; }, never, never, true, never>;
|
|
145
145
|
}
|
|
146
146
|
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as i0 from '@angular/core';
|
|
2
|
-
import { WritableSignal, Signal } from '@angular/core';
|
|
2
|
+
import { WritableSignal, Signal, InjectionToken } from '@angular/core';
|
|
3
3
|
import { NzTableFilterList } from 'ng-zorro-antd/table';
|
|
4
4
|
import { DatePipe, DecimalPipe, PercentPipe } from '@angular/common';
|
|
5
5
|
import { ScopeDirective } from 'ngx-axis-appforge/core';
|
|
@@ -27,6 +27,7 @@ interface ExpandableTableOptions extends BaseTableOptions {
|
|
|
27
27
|
readonly showExpand: WritableSignal<boolean>;
|
|
28
28
|
readonly expandMode: WritableSignal<"custom" | "tree">;
|
|
29
29
|
readonly treeChildrenFun: WritableSignal<string>;
|
|
30
|
+
readonly expandRow: WritableSignal<any>;
|
|
30
31
|
}
|
|
31
32
|
interface StatisticTableOptions extends BaseTableOptions {
|
|
32
33
|
readonly showStatistic: WritableSignal<boolean>;
|
|
@@ -102,30 +103,50 @@ declare class TableService<T extends BaseTableOptions, F extends BaseTableFieldO
|
|
|
102
103
|
static ɵprov: i0.ɵɵInjectableDeclaration<TableService<any, any>>;
|
|
103
104
|
}
|
|
104
105
|
|
|
106
|
+
declare const AXIS_TABLE_SELECT_TOKEN: InjectionToken<SelectService>;
|
|
107
|
+
declare enum ChangeScene {
|
|
108
|
+
userClick = 0,
|
|
109
|
+
linkage = 1
|
|
110
|
+
}
|
|
105
111
|
declare class SelectService {
|
|
106
112
|
private scope?;
|
|
107
113
|
constructor(scope?: ScopeDirective | undefined);
|
|
114
|
+
readonly ready: i0.WritableSignal<boolean>;
|
|
108
115
|
private options;
|
|
109
|
-
|
|
116
|
+
keyField: string;
|
|
110
117
|
private data;
|
|
111
|
-
private
|
|
118
|
+
private readonly changeSubject;
|
|
119
|
+
private parent?;
|
|
120
|
+
private subSelectKeyFun?;
|
|
121
|
+
private registToParent;
|
|
112
122
|
readonly headerChecked: i0.WritableSignal<"none" | "checked" | "indeterminate">;
|
|
113
|
-
setOfCheckedId: Set<
|
|
114
|
-
setOfIndeterminateId: Set<
|
|
115
|
-
setOfDisabledId: Signal<Set<any>>;
|
|
123
|
+
readonly setOfCheckedId: i0.WritableSignal<Set<any>>;
|
|
124
|
+
readonly setOfIndeterminateId: i0.WritableSignal<Set<any>>;
|
|
125
|
+
readonly setOfDisabledId: Signal<Set<any>>;
|
|
126
|
+
private subs;
|
|
127
|
+
private readonly subSelects;
|
|
116
128
|
init(opts: {
|
|
117
129
|
options: SelectableTableOptions;
|
|
118
130
|
keyField: string;
|
|
119
131
|
data: Signal<any[] | null>;
|
|
120
132
|
onSelectedChange: (checkedIds: Set<any>) => void;
|
|
133
|
+
parent?: SelectService;
|
|
134
|
+
scope?: ScopeDirective | null;
|
|
135
|
+
subSelectKeyFun?: (scope: ScopeDirective) => string;
|
|
136
|
+
registToParent?: boolean;
|
|
121
137
|
}): void;
|
|
138
|
+
findSubSelect(key: string): SelectService | undefined;
|
|
139
|
+
getSubSelectKey(scope: ScopeDirective): string;
|
|
140
|
+
private initCheckboxLinkageForExpand;
|
|
122
141
|
private buildDisabledId;
|
|
123
|
-
onAllChecked(checked: boolean): void;
|
|
124
|
-
toggleChecked(row: any): void;
|
|
125
|
-
onItemChecked(row: any, checked: boolean): void;
|
|
126
|
-
|
|
127
|
-
|
|
142
|
+
onAllChecked(checked: boolean, scene?: ChangeScene): void;
|
|
143
|
+
toggleChecked(row: any, scene?: ChangeScene): void;
|
|
144
|
+
onItemChecked(row: any, checked: boolean, scene?: ChangeScene): void;
|
|
145
|
+
onSetItemsChecked(rows: any[], scene?: ChangeScene): void;
|
|
146
|
+
updateCheckedSet(key: string, checked: boolean, indeterminate?: boolean): void;
|
|
147
|
+
refreshCheckedStatus(scene: ChangeScene): void;
|
|
128
148
|
getSelectedData(): any[] | undefined;
|
|
149
|
+
close(): void;
|
|
129
150
|
static ɵfac: i0.ɵɵFactoryDeclaration<SelectService, [{ optional: true; }]>;
|
|
130
151
|
static ɵprov: i0.ɵɵInjectableDeclaration<SelectService>;
|
|
131
152
|
}
|
|
@@ -181,5 +202,5 @@ declare class StatisticService {
|
|
|
181
202
|
static ɵprov: i0.ɵɵInjectableDeclaration<StatisticService>;
|
|
182
203
|
}
|
|
183
204
|
|
|
184
|
-
export { ExpandService, SelectService, StatisticService, TableFieldDisplayService, TableService };
|
|
205
|
+
export { AXIS_TABLE_SELECT_TOKEN, ChangeScene, ExpandService, SelectService, StatisticService, TableFieldDisplayService, TableService };
|
|
185
206
|
export type { BaseTableFieldOptions, BaseTableOptions, ExpandableTableOptions, SelectableTableOptions, StatisticTableFieldOptions, StatisticTableOptions };
|
|
@@ -126,10 +126,10 @@ class Setting extends FunFieldValueBase {
|
|
|
126
126
|
});
|
|
127
127
|
}
|
|
128
128
|
}
|
|
129
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.
|
|
130
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.1.6", type: Setting, isStandalone: true, selector: "axis-design-badge-setting", inputs: { offsetX: { classPropertyName: "offsetX", publicName: "offsetX", isSignal: true, isRequired: false, transformFunction: null }, offsetY: { classPropertyName: "offsetY", publicName: "offsetY", isSignal: true, isRequired: false, transformFunction: null }, color: { classPropertyName: "color", publicName: "color", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { offsetX: "offsetXChange", offsetY: "offsetYChange", color: "colorChange" }, usesInheritance: true, ngImport: i0, template: "<form [formGroup]=\"fg\" nz-form>\n <nz-collapse [nzBordered]=\"false\">\n <nz-collapse-panel nzHeader=\"\u57FA\u672C\u8BBE\u7F6E\" nzActive>\n <nz-form-item>\n <nz-form-label nzSpan=\"8\" nzRequired>\n \u7C7B\u578B\n </nz-form-label>\n <nz-form-control nzSpan=\"16\">\n <axis-fun-field formControlName=\"type\">\n <nz-select ngModel [ngModelOptions]=\"{standalone:true}\">\n <nz-option nzValue=\"badge\" nzLabel=\"\u5FBD\u6807\"></nz-option>\n <nz-option nzValue=\"status\" nzLabel=\"\u72B6\u6001\"></nz-option>\n <nz-option nzValue=\"ribbon\" nzLabel=\"\u7F0E\u5E26\"></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\">\n \u989C\u8272\n </nz-form-label>\n <nz-form-control nzSpan=\"16\">\n <axis-fun-field [(ngModel)]=\"color\" [ngModelOptions]=\"{standalone:true}\"\n (ngModelChange)=\"setColorFormValue()\">\n <nz-color-picker nzDefaultValue=\"#00000000\" ngModel [ngModelOptions]=\"{standalone:true}\"\n nzAllowClear></nz-color-picker>\n </axis-fun-field>\n </nz-form-control>\n </nz-form-item>\n </nz-collapse-panel>\n @if (formValue()?.type.funMode || formValue()?.type.originValue === 'badge') {\n <nz-collapse-panel nzHeader=\"\u5FBD\u6807\">\n <nz-form-item>\n <nz-form-label nzSpan=\"8\" nzRequired>\n \u5C0F\u7EA2\u70B9\n </nz-form-label>\n <nz-form-control nzSpan=\"16\">\n <axis-fun-field formControlName=\"dot\">\n <nz-switch ngModel [ngModelOptions]=\"{standalone:true}\"></nz-switch>\n </axis-fun-field>\n </nz-form-control>\n </nz-form-item>\n @if (formValue()?.dot.funMode || !formValue()?.dot.originValue) {\n <nz-form-item>\n <nz-form-label nzSpan=\"8\" nzRequired>\n \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=\"small\">\u5C0F</label>\n <label nz-radio-button nzValue=\"default\">\u5927</label>\n </nz-radio-group>\n </axis-fun-field>\n </nz-form-control>\n </nz-form-item>\n }\n <nz-form-item>\n <nz-form-label nzSpan=\"8\">\n \u6570\u503C\n </nz-form-label>\n <nz-form-control nzSpan=\"16\">\n <axis-fun-field formControlName=\"count\">\n <nz-input-number style=\"width: 100%;\" [nzMin]=\"0\" ngModel\n [ngModelOptions]=\"{standalone:true}\"></nz-input-number>\n </axis-fun-field>\n </nz-form-control>\n </nz-form-item>\n @if (formValue()?.dot.funMode || !formValue()?.dot.originValue) {\n <nz-form-item>\n <nz-form-label nzSpan=\"8\">\n \u6700\u5927\u6570\u503C\n </nz-form-label>\n <nz-form-control nzSpan=\"16\">\n <axis-fun-field formControlName=\"overflowCount\">\n <nz-input-number style=\"width: 100%;\" [nzMin]=\"0\" ngModel\n [ngModelOptions]=\"{standalone:true}\"></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 \u96F6\u503C\u663E\u793A\n </nz-form-label>\n <nz-form-control nzSpan=\"16\">\n <axis-fun-field formControlName=\"showZero\">\n <nz-switch ngModel [ngModelOptions]=\"{standalone:true}\"></nz-switch>\n </axis-fun-field>\n </nz-form-control>\n </nz-form-item>\n }\n <nz-form-item>\n <nz-form-label nzSpan=\"8\">\n \u4F4D\u7F6E\u504F\u79FB\n </nz-form-label>\n <nz-form-control nzSpan=\"16\">\n <nz-space-compact nzBlock>\n <nz-input-number [(ngModel)]=\"offsetX\" [ngModelOptions]=\"{standalone:true}\"\n (ngModelChange)=\"setOffsetFormValue()\">\n <span nzInputPrefix>x:</span>\n </nz-input-number>\n <nz-input-number [(ngModel)]=\"offsetY\" [ngModelOptions]=\"{standalone:true}\"\n (ngModelChange)=\"setOffsetFormValue()\">\n <span nzInputPrefix>y:</span>\n </nz-input-number>\n <button nz-button nzSize=\"small\" nzType=\"link\" nzDanger (click)=\"resetOffset()\">\n <nz-icon nzType=\"delete\"></nz-icon>\n </button>\n </nz-space-compact>\n </nz-form-control>\n </nz-form-item>\n <nz-form-item>\n <nz-form-label nzSpan=\"8\">\n \u63D0\u793A\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-collapse-panel>\n }@else if (formValue()?.type.funMode || formValue()?.type.originValue === \"status\") {\n <nz-collapse-panel nzHeader=\"\u72B6\u6001\">\n <nz-form-item>\n <nz-form-label nzSpan=\"8\" nzRequired>\n \u72B6\u6001\n </nz-form-label>\n <nz-form-control nzSpan=\"16\">\n <axis-fun-field formControlName=\"status\" editTip=\"success-\u6210\u529F processing-\u5904\u7406\u4E2D default-\u9ED8\u8BA4 error-\u9519\u8BEF warning-\u8B66\u544A\">\n <nz-select ngModel [ngModelOptions]=\"{standalone:true}\">\n <nz-option nzValue=\"success\" nzLabel=\"\u6210\u529F\"></nz-option>\n <nz-option nzValue=\"processing\" nzLabel=\"\u5904\u7406\u4E2D\"></nz-option>\n <nz-option nzValue=\"default\" nzLabel=\"\u9ED8\u8BA4\"></nz-option>\n <nz-option nzValue=\"error\" nzLabel=\"\u9519\u8BEF\"></nz-option>\n <nz-option nzValue=\"warning\" nzLabel=\"\u8B66\u544A\"></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\">\n \u6587\u672C\n </nz-form-label>\n <nz-form-control nzSpan=\"16\">\n <axis-fun-field formControlName=\"text\">\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 }@else if (formValue()?.type.funMode || formValue()?.type.originValue === \"ribbon\") {\n <nz-collapse-panel nzHeader=\"\u7F0E\u5E26\">\n <nz-form-item>\n <nz-form-label nzSpan=\"8\" nzRequired>\n \u4F4D\u7F6E\n </nz-form-label>\n <nz-form-control nzSpan=\"16\">\n <axis-fun-field formControlName=\"placement\">\n <nz-radio-group ngModel [ngModelOptions]=\"{standalone:true}\">\n <label nz-radio-button nzValue=\"start\">\u5934\u90E8</label>\n <label nz-radio-button nzValue=\"end\">\u5C3E\u90E8</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 \u6587\u672C\n </nz-form-label>\n <nz-form-control nzSpan=\"16\">\n <axis-fun-field formControlName=\"text\">\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 }\n <axis-base-design-setting [fg]=\"fg\"></axis-base-design-setting>\n </nz-collapse>\n</form>", styles: [""], dependencies: [{ kind: "ngmodule", type: FormsModule }, { kind: "directive", type: i1.ɵNgNoValidate, selector: "form:not([ngNoForm]):not([ngNativeValidate])" }, { kind: "directive", type: i1.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: i1.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i1.NgControlStatusGroup, selector: "[formGroupName],[formArrayName],[ngModelGroup],[formGroup],form:not([ngNoForm]),[ngForm]" }, { kind: "directive", type: i1.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { kind: "ngmodule", type: NzFormModule }, { kind: "directive", type: i2.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: i2.NzRowDirective, selector: "[nz-row],nz-row,nz-form-item", inputs: ["nzAlign", "nzJustify", "nzGutter"], exportAs: ["nzRow"] }, { kind: "directive", type: i3.NzFormDirective, selector: "[nz-form]", inputs: ["nzLayout", "nzNoColon", "nzAutoTips", "nzDisableAutoTips", "nzTooltipIcon", "nzLabelAlign", "nzLabelWrap"], exportAs: ["nzForm"] }, { kind: "component", type: i3.NzFormItemComponent, selector: "nz-form-item", exportAs: ["nzFormItem"] }, { kind: "component", type: i3.NzFormLabelComponent, selector: "nz-form-label", inputs: ["nzFor", "nzRequired", "nzNoColon", "nzTooltipTitle", "nzTooltipIcon", "nzLabelAlign", "nzLabelWrap"], exportAs: ["nzFormLabel"] }, { kind: "component", type: i3.NzFormControlComponent, selector: "nz-form-control", inputs: ["nzSuccessTip", "nzWarningTip", "nzErrorTip", "nzValidatingTip", "nzExtra", "nzAutoTips", "nzDisableAutoTips", "nzHasFeedback", "nzValidateStatus"], exportAs: ["nzFormControl"] }, { kind: "ngmodule", type: ReactiveFormsModule }, { kind: "directive", type: i1.FormGroupDirective, selector: "[formGroup]", inputs: ["formGroup"], outputs: ["ngSubmit"], exportAs: ["ngForm"] }, { kind: "directive", type: i1.FormControlName, selector: "[formControlName]", inputs: ["formControlName", "disabled", "ngModel"], outputs: ["ngModelChange"] }, { kind: "ngmodule", type: NzCollapseModule }, { kind: "component", type: i4.NzCollapsePanelComponent, selector: "nz-collapse-panel", inputs: ["nzActive", "nzDisabled", "nzShowArrow", "nzExtra", "nzHeader", "nzExpandedIcon", "nzCollapsible"], outputs: ["nzActiveChange"], exportAs: ["nzCollapsePanel"] }, { kind: "component", type: i4.NzCollapseComponent, selector: "nz-collapse", inputs: ["nzAccordion", "nzBordered", "nzGhost", "nzExpandIconPosition", "nzSize"], exportAs: ["nzCollapse"] }, { kind: "component", type: BaseDesignSetting, selector: "axis-base-design-setting", inputs: ["scopeId", "exclude", "fg"] }, { 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: NzSwitchModule }, { kind: "component", type: i5.NzSwitchComponent, selector: "nz-switch", inputs: ["nzLoading", "nzDisabled", "nzControl", "nzCheckedChildren", "nzUnCheckedChildren", "nzSize", "nzId"], exportAs: ["nzSwitch"] }, { kind: "ngmodule", type: NzInputModule }, { kind: "directive", type: i6.NzInputDirective, selector: "input[nz-input],textarea[nz-input]", inputs: ["nzBorderless", "nzVariant", "nzSize", "nzStepperless", "nzStatus", "disabled"], exportAs: ["nzInput"] }, { kind: "ngmodule", type: NzInputNumberModule }, { kind: "component", type: i7.NzInputNumberComponent, selector: "nz-input-number", inputs: ["nzId", "nzSize", "nzPlaceHolder", "nzStatus", "nzVariant", "nzStep", "nzMin", "nzMax", "nzPrecision", "nzParser", "nzFormatter", "nzDisabled", "nzReadOnly", "nzAutoFocus", "nzBordered", "nzKeyboard", "nzControls"], outputs: ["nzBlur", "nzFocus", "nzOnStep"], exportAs: ["nzInputNumber"] }, { kind: "directive", type: i6.NzInputPrefixDirective, selector: "[nzInputPrefix]" }, { kind: "ngmodule", type: NzColorPickerModule }, { kind: "component", type: i8.NzColorPickerComponent, selector: "nz-color-picker", inputs: ["nzFormat", "nzValue", "nzSize", "nzDefaultValue", "nzTrigger", "nzTitle", "nzFlipFlop", "nzShowText", "nzOpen", "nzAllowClear", "nzDisabled", "nzDisabledAlpha"], outputs: ["nzOnChange", "nzOnFormatChange", "nzOnClear", "nzOnOpenChange"], exportAs: ["nzColorPicker"] }, { kind: "ngmodule", type: NzRadioModule }, { kind: "component", type: i9.NzRadioComponent, selector: "[nz-radio],[nz-radio-button]", inputs: ["nzValue", "nzDisabled", "nzAutoFocus", "nz-radio-button"], exportAs: ["nzRadio"] }, { kind: "component", type: i9.NzRadioGroupComponent, selector: "nz-radio-group", inputs: ["nzDisabled", "nzButtonStyle", "nzSize", "nzName"], exportAs: ["nzRadioGroup"] }, { kind: "ngmodule", type: NzSelectModule }, { kind: "component", type: i10.NzOptionComponent, selector: "nz-option", inputs: ["nzTitle", "nzLabel", "nzValue", "nzKey", "nzDisabled", "nzHide", "nzCustomContent"], exportAs: ["nzOption"] }, { kind: "component", type: i10.NzSelectComponent, selector: "nz-select", inputs: ["nzId", "nzSize", "nzStatus", "nzVariant", "nzOptionHeightPx", "nzOptionOverflowSize", "nzDropdownClassName", "nzDropdownMatchSelectWidth", "nzDropdownStyle", "nzNotFoundContent", "nzPlaceHolder", "nzPlacement", "nzMaxTagCount", "nzDropdownRender", "nzCustomTemplate", "nzPrefix", "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: NzSpaceModule }, { kind: "component", type: i11.NzSpaceCompactComponent, selector: "nz-space-compact", inputs: ["nzBlock", "nzDirection", "nzSize"], exportAs: ["nzSpaceCompact"] }, { kind: "ngmodule", type: NzButtonModule }, { kind: "component", type: i12.NzButtonComponent, selector: "button[nz-button], a[nz-button]", inputs: ["nzBlock", "nzGhost", "nzSearch", "nzLoading", "nzDanger", "disabled", "tabIndex", "nzType", "nzShape", "nzSize"], exportAs: ["nzButton"] }, { kind: "directive", type: i13.ɵNzTransitionPatchDirective, selector: "[nz-button], [nz-icon], nz-icon, [nz-menu-item], [nz-submenu], nz-select-top-control, nz-select-placeholder, nz-input-group", inputs: ["hidden"] }, { kind: "ngmodule", type: NzIconModule }, { kind: "directive", type: i14.NzIconDirective, selector: "nz-icon,[nz-icon]", inputs: ["nzSpin", "nzRotate", "nzType", "nzTheme", "nzTwotoneColor", "nzIconfont"], exportAs: ["nzIcon"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
129
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.4", ngImport: i0, type: Setting, deps: null, target: i0.ɵɵFactoryTarget.Component });
|
|
130
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.3.4", type: Setting, isStandalone: true, selector: "axis-design-badge-setting", inputs: { offsetX: { classPropertyName: "offsetX", publicName: "offsetX", isSignal: true, isRequired: false, transformFunction: null }, offsetY: { classPropertyName: "offsetY", publicName: "offsetY", isSignal: true, isRequired: false, transformFunction: null }, color: { classPropertyName: "color", publicName: "color", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { offsetX: "offsetXChange", offsetY: "offsetYChange", color: "colorChange" }, usesInheritance: true, ngImport: i0, template: "<form [formGroup]=\"fg\" nz-form>\n <nz-collapse [nzBordered]=\"false\">\n <nz-collapse-panel nzHeader=\"\u57FA\u672C\u8BBE\u7F6E\" nzActive>\n <nz-form-item>\n <nz-form-label nzSpan=\"8\" nzRequired>\n \u7C7B\u578B\n </nz-form-label>\n <nz-form-control nzSpan=\"16\">\n <axis-fun-field formControlName=\"type\">\n <nz-select ngModel [ngModelOptions]=\"{standalone:true}\">\n <nz-option nzValue=\"badge\" nzLabel=\"\u5FBD\u6807\"></nz-option>\n <nz-option nzValue=\"status\" nzLabel=\"\u72B6\u6001\"></nz-option>\n <nz-option nzValue=\"ribbon\" nzLabel=\"\u7F0E\u5E26\"></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\">\n \u989C\u8272\n </nz-form-label>\n <nz-form-control nzSpan=\"16\">\n <axis-fun-field [(ngModel)]=\"color\" [ngModelOptions]=\"{standalone:true}\"\n (ngModelChange)=\"setColorFormValue()\">\n <nz-color-picker nzDefaultValue=\"#00000000\" ngModel [ngModelOptions]=\"{standalone:true}\"\n nzAllowClear></nz-color-picker>\n </axis-fun-field>\n </nz-form-control>\n </nz-form-item>\n </nz-collapse-panel>\n @if (formValue()?.type.funMode || formValue()?.type.originValue === 'badge') {\n <nz-collapse-panel nzHeader=\"\u5FBD\u6807\">\n <nz-form-item>\n <nz-form-label nzSpan=\"8\" nzRequired>\n \u5C0F\u7EA2\u70B9\n </nz-form-label>\n <nz-form-control nzSpan=\"16\">\n <axis-fun-field formControlName=\"dot\">\n <nz-switch ngModel [ngModelOptions]=\"{standalone:true}\"></nz-switch>\n </axis-fun-field>\n </nz-form-control>\n </nz-form-item>\n @if (formValue()?.dot.funMode || !formValue()?.dot.originValue) {\n <nz-form-item>\n <nz-form-label nzSpan=\"8\" nzRequired>\n \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=\"small\">\u5C0F</label>\n <label nz-radio-button nzValue=\"default\">\u5927</label>\n </nz-radio-group>\n </axis-fun-field>\n </nz-form-control>\n </nz-form-item>\n }\n <nz-form-item>\n <nz-form-label nzSpan=\"8\">\n \u6570\u503C\n </nz-form-label>\n <nz-form-control nzSpan=\"16\">\n <axis-fun-field formControlName=\"count\">\n <nz-input-number style=\"width: 100%;\" [nzMin]=\"0\" ngModel\n [ngModelOptions]=\"{standalone:true}\"></nz-input-number>\n </axis-fun-field>\n </nz-form-control>\n </nz-form-item>\n @if (formValue()?.dot.funMode || !formValue()?.dot.originValue) {\n <nz-form-item>\n <nz-form-label nzSpan=\"8\">\n \u6700\u5927\u6570\u503C\n </nz-form-label>\n <nz-form-control nzSpan=\"16\">\n <axis-fun-field formControlName=\"overflowCount\">\n <nz-input-number style=\"width: 100%;\" [nzMin]=\"0\" ngModel\n [ngModelOptions]=\"{standalone:true}\"></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 \u96F6\u503C\u663E\u793A\n </nz-form-label>\n <nz-form-control nzSpan=\"16\">\n <axis-fun-field formControlName=\"showZero\">\n <nz-switch ngModel [ngModelOptions]=\"{standalone:true}\"></nz-switch>\n </axis-fun-field>\n </nz-form-control>\n </nz-form-item>\n }\n <nz-form-item>\n <nz-form-label nzSpan=\"8\">\n \u4F4D\u7F6E\u504F\u79FB\n </nz-form-label>\n <nz-form-control nzSpan=\"16\">\n <nz-space-compact nzBlock>\n <nz-input-number [(ngModel)]=\"offsetX\" [ngModelOptions]=\"{standalone:true}\"\n (ngModelChange)=\"setOffsetFormValue()\">\n <span nzInputPrefix>x:</span>\n </nz-input-number>\n <nz-input-number [(ngModel)]=\"offsetY\" [ngModelOptions]=\"{standalone:true}\"\n (ngModelChange)=\"setOffsetFormValue()\">\n <span nzInputPrefix>y:</span>\n </nz-input-number>\n <button nz-button nzSize=\"small\" nzType=\"link\" nzDanger (click)=\"resetOffset()\">\n <nz-icon nzType=\"delete\"></nz-icon>\n </button>\n </nz-space-compact>\n </nz-form-control>\n </nz-form-item>\n <nz-form-item>\n <nz-form-label nzSpan=\"8\">\n \u63D0\u793A\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-collapse-panel>\n }@else if (formValue()?.type.funMode || formValue()?.type.originValue === \"status\") {\n <nz-collapse-panel nzHeader=\"\u72B6\u6001\">\n <nz-form-item>\n <nz-form-label nzSpan=\"8\" nzRequired>\n \u72B6\u6001\n </nz-form-label>\n <nz-form-control nzSpan=\"16\">\n <axis-fun-field formControlName=\"status\" editTip=\"success-\u6210\u529F processing-\u5904\u7406\u4E2D default-\u9ED8\u8BA4 error-\u9519\u8BEF warning-\u8B66\u544A\">\n <nz-select ngModel [ngModelOptions]=\"{standalone:true}\">\n <nz-option nzValue=\"success\" nzLabel=\"\u6210\u529F\"></nz-option>\n <nz-option nzValue=\"processing\" nzLabel=\"\u5904\u7406\u4E2D\"></nz-option>\n <nz-option nzValue=\"default\" nzLabel=\"\u9ED8\u8BA4\"></nz-option>\n <nz-option nzValue=\"error\" nzLabel=\"\u9519\u8BEF\"></nz-option>\n <nz-option nzValue=\"warning\" nzLabel=\"\u8B66\u544A\"></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\">\n \u6587\u672C\n </nz-form-label>\n <nz-form-control nzSpan=\"16\">\n <axis-fun-field formControlName=\"text\">\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 }@else if (formValue()?.type.funMode || formValue()?.type.originValue === \"ribbon\") {\n <nz-collapse-panel nzHeader=\"\u7F0E\u5E26\">\n <nz-form-item>\n <nz-form-label nzSpan=\"8\" nzRequired>\n \u4F4D\u7F6E\n </nz-form-label>\n <nz-form-control nzSpan=\"16\">\n <axis-fun-field formControlName=\"placement\">\n <nz-radio-group ngModel [ngModelOptions]=\"{standalone:true}\">\n <label nz-radio-button nzValue=\"start\">\u5934\u90E8</label>\n <label nz-radio-button nzValue=\"end\">\u5C3E\u90E8</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 \u6587\u672C\n </nz-form-label>\n <nz-form-control nzSpan=\"16\">\n <axis-fun-field formControlName=\"text\">\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 }\n <axis-base-design-setting [fg]=\"fg\"></axis-base-design-setting>\n </nz-collapse>\n</form>", styles: [""], dependencies: [{ kind: "ngmodule", type: FormsModule }, { kind: "directive", type: i1.ɵNgNoValidate, selector: "form:not([ngNoForm]):not([ngNativeValidate])" }, { kind: "directive", type: i1.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: i1.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i1.NgControlStatusGroup, selector: "[formGroupName],[formArrayName],[ngModelGroup],[formGroup],form:not([ngNoForm]),[ngForm]" }, { kind: "directive", type: i1.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { kind: "ngmodule", type: NzFormModule }, { kind: "directive", type: i2.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: i2.NzRowDirective, selector: "[nz-row],nz-row,nz-form-item", inputs: ["nzAlign", "nzJustify", "nzGutter"], exportAs: ["nzRow"] }, { kind: "directive", type: i3.NzFormDirective, selector: "[nz-form]", inputs: ["nzLayout", "nzNoColon", "nzAutoTips", "nzDisableAutoTips", "nzTooltipIcon", "nzLabelAlign", "nzLabelWrap"], exportAs: ["nzForm"] }, { kind: "component", type: i3.NzFormItemComponent, selector: "nz-form-item", exportAs: ["nzFormItem"] }, { kind: "component", type: i3.NzFormLabelComponent, selector: "nz-form-label", inputs: ["nzFor", "nzRequired", "nzNoColon", "nzTooltipTitle", "nzTooltipIcon", "nzLabelAlign", "nzLabelWrap"], exportAs: ["nzFormLabel"] }, { kind: "component", type: i3.NzFormControlComponent, selector: "nz-form-control", inputs: ["nzSuccessTip", "nzWarningTip", "nzErrorTip", "nzValidatingTip", "nzExtra", "nzAutoTips", "nzDisableAutoTips", "nzHasFeedback", "nzValidateStatus"], exportAs: ["nzFormControl"] }, { kind: "ngmodule", type: ReactiveFormsModule }, { kind: "directive", type: i1.FormGroupDirective, selector: "[formGroup]", inputs: ["formGroup"], outputs: ["ngSubmit"], exportAs: ["ngForm"] }, { kind: "directive", type: i1.FormControlName, selector: "[formControlName]", inputs: ["formControlName", "disabled", "ngModel"], outputs: ["ngModelChange"] }, { kind: "ngmodule", type: NzCollapseModule }, { kind: "component", type: i4.NzCollapsePanelComponent, selector: "nz-collapse-panel", inputs: ["nzActive", "nzDisabled", "nzShowArrow", "nzExtra", "nzHeader", "nzExpandedIcon", "nzCollapsible"], outputs: ["nzActiveChange"], exportAs: ["nzCollapsePanel"] }, { kind: "component", type: i4.NzCollapseComponent, selector: "nz-collapse", inputs: ["nzAccordion", "nzBordered", "nzGhost", "nzExpandIconPosition", "nzSize"], exportAs: ["nzCollapse"] }, { kind: "component", type: BaseDesignSetting, selector: "axis-base-design-setting", inputs: ["scopeId", "exclude", "fg"] }, { 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: NzSwitchModule }, { kind: "component", type: i5.NzSwitchComponent, selector: "nz-switch", inputs: ["nzLoading", "nzDisabled", "nzControl", "nzCheckedChildren", "nzUnCheckedChildren", "nzSize", "nzId"], exportAs: ["nzSwitch"] }, { kind: "ngmodule", type: NzInputModule }, { kind: "directive", type: i6.NzInputDirective, selector: "input[nz-input],textarea[nz-input]", inputs: ["nzBorderless", "nzVariant", "nzSize", "nzStepperless", "nzStatus", "disabled"], exportAs: ["nzInput"] }, { kind: "ngmodule", type: NzInputNumberModule }, { kind: "component", type: i7.NzInputNumberComponent, selector: "nz-input-number", inputs: ["nzId", "nzSize", "nzPlaceHolder", "nzStatus", "nzVariant", "nzStep", "nzMin", "nzMax", "nzPrecision", "nzParser", "nzFormatter", "nzDisabled", "nzReadOnly", "nzAutoFocus", "nzBordered", "nzKeyboard", "nzControls"], outputs: ["nzBlur", "nzFocus", "nzOnStep"], exportAs: ["nzInputNumber"] }, { kind: "directive", type: i6.NzInputPrefixDirective, selector: "[nzInputPrefix]" }, { kind: "ngmodule", type: NzColorPickerModule }, { kind: "component", type: i8.NzColorPickerComponent, selector: "nz-color-picker", inputs: ["nzFormat", "nzValue", "nzSize", "nzDefaultValue", "nzTrigger", "nzTitle", "nzFlipFlop", "nzShowText", "nzOpen", "nzAllowClear", "nzDisabled", "nzDisabledAlpha"], outputs: ["nzOnChange", "nzOnFormatChange", "nzOnClear", "nzOnOpenChange"], exportAs: ["nzColorPicker"] }, { kind: "ngmodule", type: NzRadioModule }, { kind: "component", type: i9.NzRadioComponent, selector: "[nz-radio],[nz-radio-button]", inputs: ["nzValue", "nzDisabled", "nzAutoFocus", "nz-radio-button"], exportAs: ["nzRadio"] }, { kind: "component", type: i9.NzRadioGroupComponent, selector: "nz-radio-group", inputs: ["nzDisabled", "nzButtonStyle", "nzSize", "nzName"], exportAs: ["nzRadioGroup"] }, { kind: "ngmodule", type: NzSelectModule }, { kind: "component", type: i10.NzOptionComponent, selector: "nz-option", inputs: ["nzTitle", "nzLabel", "nzValue", "nzKey", "nzDisabled", "nzHide", "nzCustomContent"], exportAs: ["nzOption"] }, { kind: "component", type: i10.NzSelectComponent, selector: "nz-select", inputs: ["nzId", "nzSize", "nzStatus", "nzVariant", "nzOptionHeightPx", "nzOptionOverflowSize", "nzDropdownClassName", "nzDropdownMatchSelectWidth", "nzDropdownStyle", "nzNotFoundContent", "nzPlaceHolder", "nzPlacement", "nzMaxTagCount", "nzDropdownRender", "nzCustomTemplate", "nzPrefix", "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: NzSpaceModule }, { kind: "component", type: i11.NzSpaceCompactComponent, selector: "nz-space-compact", inputs: ["nzBlock", "nzDirection", "nzSize"], exportAs: ["nzSpaceCompact"] }, { kind: "ngmodule", type: NzButtonModule }, { kind: "component", type: i12.NzButtonComponent, selector: "button[nz-button], a[nz-button]", inputs: ["nzBlock", "nzGhost", "nzSearch", "nzLoading", "nzDanger", "disabled", "tabIndex", "nzType", "nzShape", "nzSize"], exportAs: ["nzButton"] }, { kind: "directive", type: i13.ɵNzTransitionPatchDirective, selector: "[nz-button], [nz-icon], nz-icon, [nz-menu-item], [nz-submenu], nz-select-top-control, nz-select-placeholder, nz-input-group", inputs: ["hidden"] }, { kind: "ngmodule", type: NzIconModule }, { kind: "directive", type: i14.NzIconDirective, selector: "nz-icon,[nz-icon]", inputs: ["nzSpin", "nzRotate", "nzType", "nzTheme", "nzTwotoneColor", "nzIconfont"], exportAs: ["nzIcon"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
131
131
|
}
|
|
132
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.
|
|
132
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.4", ngImport: i0, type: Setting, decorators: [{
|
|
133
133
|
type: Component,
|
|
134
134
|
args: [{ selector: 'axis-design-badge-setting', imports: [FormsModule, NzFormModule, ReactiveFormsModule, NzCollapseModule, BaseDesignSetting, FunField, NzSwitchModule, NzInputModule, NzInputNumberModule, NzColorPickerModule, NzRadioModule, NzSelectModule, NzSpaceModule, NzButtonModule, NzIconModule], changeDetection: ChangeDetectionStrategy.OnPush, template: "<form [formGroup]=\"fg\" nz-form>\n <nz-collapse [nzBordered]=\"false\">\n <nz-collapse-panel nzHeader=\"\u57FA\u672C\u8BBE\u7F6E\" nzActive>\n <nz-form-item>\n <nz-form-label nzSpan=\"8\" nzRequired>\n \u7C7B\u578B\n </nz-form-label>\n <nz-form-control nzSpan=\"16\">\n <axis-fun-field formControlName=\"type\">\n <nz-select ngModel [ngModelOptions]=\"{standalone:true}\">\n <nz-option nzValue=\"badge\" nzLabel=\"\u5FBD\u6807\"></nz-option>\n <nz-option nzValue=\"status\" nzLabel=\"\u72B6\u6001\"></nz-option>\n <nz-option nzValue=\"ribbon\" nzLabel=\"\u7F0E\u5E26\"></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\">\n \u989C\u8272\n </nz-form-label>\n <nz-form-control nzSpan=\"16\">\n <axis-fun-field [(ngModel)]=\"color\" [ngModelOptions]=\"{standalone:true}\"\n (ngModelChange)=\"setColorFormValue()\">\n <nz-color-picker nzDefaultValue=\"#00000000\" ngModel [ngModelOptions]=\"{standalone:true}\"\n nzAllowClear></nz-color-picker>\n </axis-fun-field>\n </nz-form-control>\n </nz-form-item>\n </nz-collapse-panel>\n @if (formValue()?.type.funMode || formValue()?.type.originValue === 'badge') {\n <nz-collapse-panel nzHeader=\"\u5FBD\u6807\">\n <nz-form-item>\n <nz-form-label nzSpan=\"8\" nzRequired>\n \u5C0F\u7EA2\u70B9\n </nz-form-label>\n <nz-form-control nzSpan=\"16\">\n <axis-fun-field formControlName=\"dot\">\n <nz-switch ngModel [ngModelOptions]=\"{standalone:true}\"></nz-switch>\n </axis-fun-field>\n </nz-form-control>\n </nz-form-item>\n @if (formValue()?.dot.funMode || !formValue()?.dot.originValue) {\n <nz-form-item>\n <nz-form-label nzSpan=\"8\" nzRequired>\n \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=\"small\">\u5C0F</label>\n <label nz-radio-button nzValue=\"default\">\u5927</label>\n </nz-radio-group>\n </axis-fun-field>\n </nz-form-control>\n </nz-form-item>\n }\n <nz-form-item>\n <nz-form-label nzSpan=\"8\">\n \u6570\u503C\n </nz-form-label>\n <nz-form-control nzSpan=\"16\">\n <axis-fun-field formControlName=\"count\">\n <nz-input-number style=\"width: 100%;\" [nzMin]=\"0\" ngModel\n [ngModelOptions]=\"{standalone:true}\"></nz-input-number>\n </axis-fun-field>\n </nz-form-control>\n </nz-form-item>\n @if (formValue()?.dot.funMode || !formValue()?.dot.originValue) {\n <nz-form-item>\n <nz-form-label nzSpan=\"8\">\n \u6700\u5927\u6570\u503C\n </nz-form-label>\n <nz-form-control nzSpan=\"16\">\n <axis-fun-field formControlName=\"overflowCount\">\n <nz-input-number style=\"width: 100%;\" [nzMin]=\"0\" ngModel\n [ngModelOptions]=\"{standalone:true}\"></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 \u96F6\u503C\u663E\u793A\n </nz-form-label>\n <nz-form-control nzSpan=\"16\">\n <axis-fun-field formControlName=\"showZero\">\n <nz-switch ngModel [ngModelOptions]=\"{standalone:true}\"></nz-switch>\n </axis-fun-field>\n </nz-form-control>\n </nz-form-item>\n }\n <nz-form-item>\n <nz-form-label nzSpan=\"8\">\n \u4F4D\u7F6E\u504F\u79FB\n </nz-form-label>\n <nz-form-control nzSpan=\"16\">\n <nz-space-compact nzBlock>\n <nz-input-number [(ngModel)]=\"offsetX\" [ngModelOptions]=\"{standalone:true}\"\n (ngModelChange)=\"setOffsetFormValue()\">\n <span nzInputPrefix>x:</span>\n </nz-input-number>\n <nz-input-number [(ngModel)]=\"offsetY\" [ngModelOptions]=\"{standalone:true}\"\n (ngModelChange)=\"setOffsetFormValue()\">\n <span nzInputPrefix>y:</span>\n </nz-input-number>\n <button nz-button nzSize=\"small\" nzType=\"link\" nzDanger (click)=\"resetOffset()\">\n <nz-icon nzType=\"delete\"></nz-icon>\n </button>\n </nz-space-compact>\n </nz-form-control>\n </nz-form-item>\n <nz-form-item>\n <nz-form-label nzSpan=\"8\">\n \u63D0\u793A\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-collapse-panel>\n }@else if (formValue()?.type.funMode || formValue()?.type.originValue === \"status\") {\n <nz-collapse-panel nzHeader=\"\u72B6\u6001\">\n <nz-form-item>\n <nz-form-label nzSpan=\"8\" nzRequired>\n \u72B6\u6001\n </nz-form-label>\n <nz-form-control nzSpan=\"16\">\n <axis-fun-field formControlName=\"status\" editTip=\"success-\u6210\u529F processing-\u5904\u7406\u4E2D default-\u9ED8\u8BA4 error-\u9519\u8BEF warning-\u8B66\u544A\">\n <nz-select ngModel [ngModelOptions]=\"{standalone:true}\">\n <nz-option nzValue=\"success\" nzLabel=\"\u6210\u529F\"></nz-option>\n <nz-option nzValue=\"processing\" nzLabel=\"\u5904\u7406\u4E2D\"></nz-option>\n <nz-option nzValue=\"default\" nzLabel=\"\u9ED8\u8BA4\"></nz-option>\n <nz-option nzValue=\"error\" nzLabel=\"\u9519\u8BEF\"></nz-option>\n <nz-option nzValue=\"warning\" nzLabel=\"\u8B66\u544A\"></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\">\n \u6587\u672C\n </nz-form-label>\n <nz-form-control nzSpan=\"16\">\n <axis-fun-field formControlName=\"text\">\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 }@else if (formValue()?.type.funMode || formValue()?.type.originValue === \"ribbon\") {\n <nz-collapse-panel nzHeader=\"\u7F0E\u5E26\">\n <nz-form-item>\n <nz-form-label nzSpan=\"8\" nzRequired>\n \u4F4D\u7F6E\n </nz-form-label>\n <nz-form-control nzSpan=\"16\">\n <axis-fun-field formControlName=\"placement\">\n <nz-radio-group ngModel [ngModelOptions]=\"{standalone:true}\">\n <label nz-radio-button nzValue=\"start\">\u5934\u90E8</label>\n <label nz-radio-button nzValue=\"end\">\u5C3E\u90E8</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 \u6587\u672C\n </nz-form-label>\n <nz-form-control nzSpan=\"16\">\n <axis-fun-field formControlName=\"text\">\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 }\n <axis-base-design-setting [fg]=\"fg\"></axis-base-design-setting>\n </nz-collapse>\n</form>" }]
|
|
135
135
|
}] });
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ngx-axis-appforge-axis-components-badge-design.mjs","sources":["../../../axis-components/badge/design/setting/setting.ts","../../../axis-components/badge/design/setting/setting.html","../../../axis-components/badge/design/config.ts","../../../axis-components/badge/design/ngx-axis-appforge-axis-components-badge-design.ts"],"sourcesContent":["import { ChangeDetectionStrategy, Component, model } from '@angular/core';\nimport { FormsModule, ReactiveFormsModule, UntypedFormGroup } from '@angular/forms';\nimport { NzButtonModule } from 'ng-zorro-antd/button';\nimport { NzCollapseModule } from 'ng-zorro-antd/collapse';\nimport { NzColorPickerModule } from 'ng-zorro-antd/color-picker';\nimport { NzFormModule } from 'ng-zorro-antd/form';\nimport { NzIconModule } from 'ng-zorro-antd/icon';\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 { NzSpaceModule } from 'ng-zorro-antd/space';\nimport { NzSwitchModule } from 'ng-zorro-antd/switch';\nimport { BaseDesignSetting, baseFbConfig, baseFunField, FormValidators, FunField, FunFieldOptions, FunFieldValueBase } from 'ngx-axis-appforge/core';\n\n@Component({\n selector: 'axis-design-badge-setting',\n imports: [FormsModule, NzFormModule, ReactiveFormsModule, NzCollapseModule, BaseDesignSetting, FunField, NzSwitchModule, NzInputModule, NzInputNumberModule, NzColorPickerModule, NzRadioModule, NzSelectModule, NzSpaceModule, NzButtonModule, NzIconModule],\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 type: [undefined, FormValidators.requiredFun],\n color: [],\n count: [],\n showDot: [undefined, FormValidators.requiredFun],\n dot: [undefined, FormValidators.requiredFun],\n overflowCount: [],\n showZero: [undefined, FormValidators.requiredFun],\n size: [undefined, FormValidators.requiredFun],\n status: [undefined, FormValidators.requiredFun],\n text: [],\n title: [],\n offset: [],\n placement: [undefined, FormValidators.requiredFun],\n });\n\n protected override funFields: FunFieldOptions = {\n ...baseFunField,\n type: {\n defaultValue: \"badge\"\n },\n color: {\n defaultValue: undefined\n },\n count: {\n defaultValue: null\n },\n showDot: {\n defaultValue: true\n },\n dot: {\n defaultValue: false\n },\n overflowCount: {\n defaultValue: undefined\n },\n showZero: {\n defaultValue: false\n },\n size: {\n defaultValue: \"default\"\n },\n status: {\n defaultValue: \"default\"\n },\n text: {\n defaultValue: \"\"\n },\n title: {\n defaultValue: \"\"\n },\n placement: {\n defaultValue: \"end\"\n },\n };\n\n override reset(value?: any): void {\n super.reset(value);\n if (this.formValue()?.color) {\n this.color.set(this.formValue().color);\n }\n if (this.formValue()?.offset) {\n this.offsetX.set(this.formValue().offset[0]);\n this.offsetY.set(this.formValue().offset[1]);\n }\n }\n\n readonly offsetX = model<number | null>(null);\n readonly offsetY = model<number | null>(null);\n readonly color = model<any>({ funMode: false });\n\n setColorFormValue() {\n if (!this.color().funMode && this.color().originValue?.endsWith(\"00\")) {\n this.fg.patchValue({\n color: { ...this.color(), originValue: null }\n });\n } else {\n this.fg.patchValue({\n color: this.color()\n });\n }\n }\n\n resetOffset() {\n this.offsetX.set(null);\n this.offsetY.set(null);\n this.setOffsetFormValue();\n }\n\n setOffsetFormValue() {\n if (this.offsetX() != null || this.offsetY() != null) {\n this.fg.patchValue({\n offset: [this.offsetX() ?? 0, this.offsetY() ?? 0]\n });\n } else {\n this.fg.patchValue({\n offset: null\n });\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-select ngModel [ngModelOptions]=\"{standalone:true}\">\n <nz-option nzValue=\"badge\" nzLabel=\"徽标\"></nz-option>\n <nz-option nzValue=\"status\" nzLabel=\"状态\"></nz-option>\n <nz-option nzValue=\"ribbon\" nzLabel=\"缎带\"></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\">\n 颜色\n </nz-form-label>\n <nz-form-control nzSpan=\"16\">\n <axis-fun-field [(ngModel)]=\"color\" [ngModelOptions]=\"{standalone:true}\"\n (ngModelChange)=\"setColorFormValue()\">\n <nz-color-picker nzDefaultValue=\"#00000000\" ngModel [ngModelOptions]=\"{standalone:true}\"\n nzAllowClear></nz-color-picker>\n </axis-fun-field>\n </nz-form-control>\n </nz-form-item>\n </nz-collapse-panel>\n @if (formValue()?.type.funMode || formValue()?.type.originValue === 'badge') {\n <nz-collapse-panel nzHeader=\"徽标\">\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=\"dot\">\n <nz-switch ngModel [ngModelOptions]=\"{standalone:true}\"></nz-switch>\n </axis-fun-field>\n </nz-form-control>\n </nz-form-item>\n @if (formValue()?.dot.funMode || !formValue()?.dot.originValue) {\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=\"small\">小</label>\n <label nz-radio-button nzValue=\"default\">大</label>\n </nz-radio-group>\n </axis-fun-field>\n </nz-form-control>\n </nz-form-item>\n }\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=\"count\">\n <nz-input-number style=\"width: 100%;\" [nzMin]=\"0\" ngModel\n [ngModelOptions]=\"{standalone:true}\"></nz-input-number>\n </axis-fun-field>\n </nz-form-control>\n </nz-form-item>\n @if (formValue()?.dot.funMode || !formValue()?.dot.originValue) {\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=\"overflowCount\">\n <nz-input-number style=\"width: 100%;\" [nzMin]=\"0\" ngModel\n [ngModelOptions]=\"{standalone:true}\"></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=\"showZero\">\n <nz-switch ngModel [ngModelOptions]=\"{standalone:true}\"></nz-switch>\n </axis-fun-field>\n </nz-form-control>\n </nz-form-item>\n }\n <nz-form-item>\n <nz-form-label nzSpan=\"8\">\n 位置偏移\n </nz-form-label>\n <nz-form-control nzSpan=\"16\">\n <nz-space-compact nzBlock>\n <nz-input-number [(ngModel)]=\"offsetX\" [ngModelOptions]=\"{standalone:true}\"\n (ngModelChange)=\"setOffsetFormValue()\">\n <span nzInputPrefix>x:</span>\n </nz-input-number>\n <nz-input-number [(ngModel)]=\"offsetY\" [ngModelOptions]=\"{standalone:true}\"\n (ngModelChange)=\"setOffsetFormValue()\">\n <span nzInputPrefix>y:</span>\n </nz-input-number>\n <button nz-button nzSize=\"small\" nzType=\"link\" nzDanger (click)=\"resetOffset()\">\n <nz-icon nzType=\"delete\"></nz-icon>\n </button>\n </nz-space-compact>\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=\"title\">\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 }@else if (formValue()?.type.funMode || formValue()?.type.originValue === \"status\") {\n <nz-collapse-panel nzHeader=\"状态\">\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=\"status\" editTip=\"success-成功 processing-处理中 default-默认 error-错误 warning-警告\">\n <nz-select ngModel [ngModelOptions]=\"{standalone:true}\">\n <nz-option nzValue=\"success\" nzLabel=\"成功\"></nz-option>\n <nz-option nzValue=\"processing\" nzLabel=\"处理中\"></nz-option>\n <nz-option nzValue=\"default\" nzLabel=\"默认\"></nz-option>\n <nz-option nzValue=\"error\" nzLabel=\"错误\"></nz-option>\n <nz-option nzValue=\"warning\" nzLabel=\"警告\"></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\">\n 文本\n </nz-form-label>\n <nz-form-control nzSpan=\"16\">\n <axis-fun-field formControlName=\"text\">\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 }@else if (formValue()?.type.funMode || formValue()?.type.originValue === \"ribbon\") {\n <nz-collapse-panel nzHeader=\"缎带\">\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=\"placement\">\n <nz-radio-group ngModel [ngModelOptions]=\"{standalone:true}\">\n <label nz-radio-button nzValue=\"start\">头部</label>\n <label nz-radio-button nzValue=\"end\">尾部</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=\"text\">\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 }\n <axis-base-design-setting [fg]=\"fg\"></axis-base-design-setting>\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 let name;\n switch (nextInfo.currentObject.type) {\n case \"status\":\n name = \"状态\";\n break;\n case \"ribbon\":\n name = \"缎带\";\n break;\n default:\n name = \"徽标\";\n }\n return {\n treeNode: new OptionsNode({\n parentId: nextInfo.parentId,\n scopeId: nextInfo.scopeId,\n name: name,\n canSetting: true,\n canDrag: true,\n dragType: \"component\",\n canDrop: true,\n dropType: \"component\",\n dropObj: nextInfo.currentObject,\n defaultDropIndex: \"child\",\n parentObj: nextInfo.parentObject,\n indexOfParentObj: nextInfo.indexOfParent,\n rootOptions: nextInfo.currentObject,\n settingType: Setting,\n contextMenu: SimpleMenu,\n icon: \"heart\",\n children: []\n }),\n next: [{\n parentId: nextInfo.currentObject.id,\n parentObject: nextInfo.currentObject,\n indexOfParent: \"child\",\n scopeId: nextInfo.scopeId\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":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;A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AAE,QAAQ,CAAC,QAAQ;gBAC3B,OAAO,EAAE,QAAQ,CAAC,OAAO;AACzB,gBAAA,IAAI,EAAE,IAAI;AACV,gBAAA,UAAU,EAAE,IAAI;AAChB,gBAAA,OAAO,EAAE,IAAI;AACb,gBAAA,QAAQ,EAAE,WAAW;AACrB,gBAAA,OAAO,EAAE,IAAI;AACb,gBAAA,QAAQ,EAAE,WAAW;gBACrB,OAAO,EAAE,QAAQ,CAAC,aAAa;AAC/B,gBAAA,gBAAgB,EAAE,OAAO;gBACzB,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,OAAO;AACb,gBAAA,QAAQ,EAAE;aACb,CAAC;AACF,YAAA,IAAI,EAAE,CAAC;AACH,oBAAA,QAAQ,EAAE,QAAQ,CAAC,aAAa,CAAC,EAAE;oBACnC,YAAY,EAAE,QAAQ,CAAC,aAAa;AACpC,oBAAA,aAAa,EAAE,OAAO;oBACtB,OAAO,EAAE,QAAQ,CAAC;iBACrB;SACJ;KACJ;IACD,uBAAuB,CAAC,OAAoB,EAAE,OAAY,EAAA;QACtD,OAAO;AACH,YAAA,CAAC,OAAO,CAAC,EAAE,GAAG,EAAE,OAAO;SAC1B;KACJ;;;AClDL;;AAEG;;;;"}
|
|
1
|
+
{"version":3,"file":"ngx-axis-appforge-axis-components-badge-design.mjs","sources":["../../../axis-components/badge/design/setting/setting.ts","../../../axis-components/badge/design/setting/setting.html","../../../axis-components/badge/design/config.ts","../../../axis-components/badge/design/ngx-axis-appforge-axis-components-badge-design.ts"],"sourcesContent":["import { ChangeDetectionStrategy, Component, model } from '@angular/core';\nimport { FormsModule, ReactiveFormsModule, UntypedFormGroup } from '@angular/forms';\nimport { NzButtonModule } from 'ng-zorro-antd/button';\nimport { NzCollapseModule } from 'ng-zorro-antd/collapse';\nimport { NzColorPickerModule } from 'ng-zorro-antd/color-picker';\nimport { NzFormModule } from 'ng-zorro-antd/form';\nimport { NzIconModule } from 'ng-zorro-antd/icon';\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 { NzSpaceModule } from 'ng-zorro-antd/space';\nimport { NzSwitchModule } from 'ng-zorro-antd/switch';\nimport { BaseDesignSetting, baseFbConfig, baseFunField, FormValidators, FunField, FunFieldOptions, FunFieldValueBase } from 'ngx-axis-appforge/core';\n\n@Component({\n selector: 'axis-design-badge-setting',\n imports: [FormsModule, NzFormModule, ReactiveFormsModule, NzCollapseModule, BaseDesignSetting, FunField, NzSwitchModule, NzInputModule, NzInputNumberModule, NzColorPickerModule, NzRadioModule, NzSelectModule, NzSpaceModule, NzButtonModule, NzIconModule],\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 type: [undefined, FormValidators.requiredFun],\n color: [],\n count: [],\n showDot: [undefined, FormValidators.requiredFun],\n dot: [undefined, FormValidators.requiredFun],\n overflowCount: [],\n showZero: [undefined, FormValidators.requiredFun],\n size: [undefined, FormValidators.requiredFun],\n status: [undefined, FormValidators.requiredFun],\n text: [],\n title: [],\n offset: [],\n placement: [undefined, FormValidators.requiredFun],\n });\n\n protected override funFields: FunFieldOptions = {\n ...baseFunField,\n type: {\n defaultValue: \"badge\"\n },\n color: {\n defaultValue: undefined\n },\n count: {\n defaultValue: null\n },\n showDot: {\n defaultValue: true\n },\n dot: {\n defaultValue: false\n },\n overflowCount: {\n defaultValue: undefined\n },\n showZero: {\n defaultValue: false\n },\n size: {\n defaultValue: \"default\"\n },\n status: {\n defaultValue: \"default\"\n },\n text: {\n defaultValue: \"\"\n },\n title: {\n defaultValue: \"\"\n },\n placement: {\n defaultValue: \"end\"\n },\n };\n\n override reset(value?: any): void {\n super.reset(value);\n if (this.formValue()?.color) {\n this.color.set(this.formValue().color);\n }\n if (this.formValue()?.offset) {\n this.offsetX.set(this.formValue().offset[0]);\n this.offsetY.set(this.formValue().offset[1]);\n }\n }\n\n readonly offsetX = model<number | null>(null);\n readonly offsetY = model<number | null>(null);\n readonly color = model<any>({ funMode: false });\n\n setColorFormValue() {\n if (!this.color().funMode && this.color().originValue?.endsWith(\"00\")) {\n this.fg.patchValue({\n color: { ...this.color(), originValue: null }\n });\n } else {\n this.fg.patchValue({\n color: this.color()\n });\n }\n }\n\n resetOffset() {\n this.offsetX.set(null);\n this.offsetY.set(null);\n this.setOffsetFormValue();\n }\n\n setOffsetFormValue() {\n if (this.offsetX() != null || this.offsetY() != null) {\n this.fg.patchValue({\n offset: [this.offsetX() ?? 0, this.offsetY() ?? 0]\n });\n } else {\n this.fg.patchValue({\n offset: null\n });\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-select ngModel [ngModelOptions]=\"{standalone:true}\">\n <nz-option nzValue=\"badge\" nzLabel=\"徽标\"></nz-option>\n <nz-option nzValue=\"status\" nzLabel=\"状态\"></nz-option>\n <nz-option nzValue=\"ribbon\" nzLabel=\"缎带\"></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\">\n 颜色\n </nz-form-label>\n <nz-form-control nzSpan=\"16\">\n <axis-fun-field [(ngModel)]=\"color\" [ngModelOptions]=\"{standalone:true}\"\n (ngModelChange)=\"setColorFormValue()\">\n <nz-color-picker nzDefaultValue=\"#00000000\" ngModel [ngModelOptions]=\"{standalone:true}\"\n nzAllowClear></nz-color-picker>\n </axis-fun-field>\n </nz-form-control>\n </nz-form-item>\n </nz-collapse-panel>\n @if (formValue()?.type.funMode || formValue()?.type.originValue === 'badge') {\n <nz-collapse-panel nzHeader=\"徽标\">\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=\"dot\">\n <nz-switch ngModel [ngModelOptions]=\"{standalone:true}\"></nz-switch>\n </axis-fun-field>\n </nz-form-control>\n </nz-form-item>\n @if (formValue()?.dot.funMode || !formValue()?.dot.originValue) {\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=\"small\">小</label>\n <label nz-radio-button nzValue=\"default\">大</label>\n </nz-radio-group>\n </axis-fun-field>\n </nz-form-control>\n </nz-form-item>\n }\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=\"count\">\n <nz-input-number style=\"width: 100%;\" [nzMin]=\"0\" ngModel\n [ngModelOptions]=\"{standalone:true}\"></nz-input-number>\n </axis-fun-field>\n </nz-form-control>\n </nz-form-item>\n @if (formValue()?.dot.funMode || !formValue()?.dot.originValue) {\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=\"overflowCount\">\n <nz-input-number style=\"width: 100%;\" [nzMin]=\"0\" ngModel\n [ngModelOptions]=\"{standalone:true}\"></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=\"showZero\">\n <nz-switch ngModel [ngModelOptions]=\"{standalone:true}\"></nz-switch>\n </axis-fun-field>\n </nz-form-control>\n </nz-form-item>\n }\n <nz-form-item>\n <nz-form-label nzSpan=\"8\">\n 位置偏移\n </nz-form-label>\n <nz-form-control nzSpan=\"16\">\n <nz-space-compact nzBlock>\n <nz-input-number [(ngModel)]=\"offsetX\" [ngModelOptions]=\"{standalone:true}\"\n (ngModelChange)=\"setOffsetFormValue()\">\n <span nzInputPrefix>x:</span>\n </nz-input-number>\n <nz-input-number [(ngModel)]=\"offsetY\" [ngModelOptions]=\"{standalone:true}\"\n (ngModelChange)=\"setOffsetFormValue()\">\n <span nzInputPrefix>y:</span>\n </nz-input-number>\n <button nz-button nzSize=\"small\" nzType=\"link\" nzDanger (click)=\"resetOffset()\">\n <nz-icon nzType=\"delete\"></nz-icon>\n </button>\n </nz-space-compact>\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=\"title\">\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 }@else if (formValue()?.type.funMode || formValue()?.type.originValue === \"status\") {\n <nz-collapse-panel nzHeader=\"状态\">\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=\"status\" editTip=\"success-成功 processing-处理中 default-默认 error-错误 warning-警告\">\n <nz-select ngModel [ngModelOptions]=\"{standalone:true}\">\n <nz-option nzValue=\"success\" nzLabel=\"成功\"></nz-option>\n <nz-option nzValue=\"processing\" nzLabel=\"处理中\"></nz-option>\n <nz-option nzValue=\"default\" nzLabel=\"默认\"></nz-option>\n <nz-option nzValue=\"error\" nzLabel=\"错误\"></nz-option>\n <nz-option nzValue=\"warning\" nzLabel=\"警告\"></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\">\n 文本\n </nz-form-label>\n <nz-form-control nzSpan=\"16\">\n <axis-fun-field formControlName=\"text\">\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 }@else if (formValue()?.type.funMode || formValue()?.type.originValue === \"ribbon\") {\n <nz-collapse-panel nzHeader=\"缎带\">\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=\"placement\">\n <nz-radio-group ngModel [ngModelOptions]=\"{standalone:true}\">\n <label nz-radio-button nzValue=\"start\">头部</label>\n <label nz-radio-button nzValue=\"end\">尾部</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=\"text\">\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 }\n <axis-base-design-setting [fg]=\"fg\"></axis-base-design-setting>\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 let name;\n switch (nextInfo.currentObject.type) {\n case \"status\":\n name = \"状态\";\n break;\n case \"ribbon\":\n name = \"缎带\";\n break;\n default:\n name = \"徽标\";\n }\n return {\n treeNode: new OptionsNode({\n parentId: nextInfo.parentId,\n scopeId: nextInfo.scopeId,\n name: name,\n canSetting: true,\n canDrag: true,\n dragType: \"component\",\n canDrop: true,\n dropType: \"component\",\n dropObj: nextInfo.currentObject,\n defaultDropIndex: \"child\",\n parentObj: nextInfo.parentObject,\n indexOfParentObj: nextInfo.indexOfParent,\n rootOptions: nextInfo.currentObject,\n settingType: Setting,\n contextMenu: SimpleMenu,\n icon: \"heart\",\n children: []\n }),\n next: [{\n parentId: nextInfo.currentObject.id,\n parentObject: nextInfo.currentObject,\n indexOfParent: \"child\",\n scopeId: nextInfo.scopeId\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":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAsBM,MAAO,OAAQ,SAAQ,iBAAiB,CAAA;AAEnC,IAAA,EAAE,GAAqB,IAAI,CAAC,EAAE,CAAC,KAAK,CAAC;AAC5C,QAAA,GAAG,YAAY;AACf,QAAA,IAAI,EAAE,CAAC,SAAS,EAAE,cAAc,CAAC,WAAW,CAAC;AAC7C,QAAA,KAAK,EAAE,EAAE;AACT,QAAA,KAAK,EAAE,EAAE;AACT,QAAA,OAAO,EAAE,CAAC,SAAS,EAAE,cAAc,CAAC,WAAW,CAAC;AAChD,QAAA,GAAG,EAAE,CAAC,SAAS,EAAE,cAAc,CAAC,WAAW,CAAC;AAC5C,QAAA,aAAa,EAAE,EAAE;AACjB,QAAA,QAAQ,EAAE,CAAC,SAAS,EAAE,cAAc,CAAC,WAAW,CAAC;AACjD,QAAA,IAAI,EAAE,CAAC,SAAS,EAAE,cAAc,CAAC,WAAW,CAAC;AAC7C,QAAA,MAAM,EAAE,CAAC,SAAS,EAAE,cAAc,CAAC,WAAW,CAAC;AAC/C,QAAA,IAAI,EAAE,E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AC;AACH,oBAAA,QAAQ,EAAE,QAAQ,CAAC,aAAa,CAAC,EAAE;oBACnC,YAAY,EAAE,QAAQ,CAAC,aAAa;AACpC,oBAAA,aAAa,EAAE,OAAO;oBACtB,OAAO,EAAE,QAAQ,CAAC;iBACrB;SACJ;IACL,CAAC;IACD,uBAAuB,CAAC,OAAoB,EAAE,OAAY,EAAA;QACtD,OAAO;AACH,YAAA,CAAC,OAAO,CAAC,EAAE,GAAG,EAAE,OAAO;SAC1B;IACL,CAAC;;;AClDL;;AAEG;;;;"}
|
|
@@ -23,10 +23,10 @@ class BadgeOptions extends DataOptions {
|
|
|
23
23
|
|
|
24
24
|
class Text extends Base {
|
|
25
25
|
options = new BadgeOptions();
|
|
26
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.
|
|
27
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.
|
|
26
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.4", ngImport: i0, type: Text, deps: null, target: i0.ɵɵFactoryTarget.Component });
|
|
27
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.3.4", type: Text, isStandalone: true, selector: "axis-badge", usesInheritance: true, ngImport: i0, template: "@switch (options.type()) {\n@case (\"badge\") {\n<nz-badge [nzStandalone]=\"!options.child()\" [nzCount]=\"options.dot()?0:options.count()\"\n [nzDot]=\"options.dot() && options.count()!=null && (options.showZero() || options.count()! > 0)\"\n [nzOverflowCount]=\"options.overflowCount()\" [nzShowZero]=\"options.showZero()\" [nzSize]=\"options.size()\"\n [nzOffset]=\"options.offset()\" [nzStyle]=\"{backgroundColor:options.color()??''}\" [nzTitle]=\"options.title()\">\n <ng-container [axisDynamic]=\"options.child()\"></ng-container>\n</nz-badge>\n}\n@case (\"status\") {\n<nz-badge [nzColor]=\"options.status() == 'default'?options.color():undefined\"\n [nzStatus]=\"options.status()=='default'?undefined:options.status()\" [nzText]=\"options.text()\">\n</nz-badge>\n}\n@case (\"ribbon\") {\n<nz-ribbon [nzColor]=\"options.color()\" [nzPlacement]=\"options.placement()\" [nzText]=\"options.text()\">\n <ng-container [axisDynamic]=\"options.child()\"></ng-container>\n</nz-ribbon>\n}\n}", styles: [":host{display:block}\n"], dependencies: [{ kind: "ngmodule", type: NzBadgeModule }, { kind: "component", type: i1.NzBadgeComponent, selector: "nz-badge", inputs: ["nzShowZero", "nzShowDot", "nzStandalone", "nzDot", "nzOverflowCount", "nzColor", "nzStyle", "nzText", "nzTitle", "nzStatus", "nzCount", "nzOffset", "nzSize"], exportAs: ["nzBadge"] }, { kind: "component", type: i1.NzRibbonComponent, selector: "nz-ribbon", inputs: ["nzColor", "nzPlacement", "nzText"], exportAs: ["nzRibbon"] }, { kind: "directive", type: DynamicDirective, selector: "[axisDynamic]", inputs: ["axisDynamic", "standalone", "isDesign"], outputs: ["onRegisteValueAccess"], exportAs: ["axisDynamic"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
28
28
|
}
|
|
29
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.
|
|
29
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.4", ngImport: i0, type: Text, decorators: [{
|
|
30
30
|
type: Component,
|
|
31
31
|
args: [{ selector: 'axis-badge', imports: [NzBadgeModule, DynamicDirective], changeDetection: ChangeDetectionStrategy.OnPush, template: "@switch (options.type()) {\n@case (\"badge\") {\n<nz-badge [nzStandalone]=\"!options.child()\" [nzCount]=\"options.dot()?0:options.count()\"\n [nzDot]=\"options.dot() && options.count()!=null && (options.showZero() || options.count()! > 0)\"\n [nzOverflowCount]=\"options.overflowCount()\" [nzShowZero]=\"options.showZero()\" [nzSize]=\"options.size()\"\n [nzOffset]=\"options.offset()\" [nzStyle]=\"{backgroundColor:options.color()??''}\" [nzTitle]=\"options.title()\">\n <ng-container [axisDynamic]=\"options.child()\"></ng-container>\n</nz-badge>\n}\n@case (\"status\") {\n<nz-badge [nzColor]=\"options.status() == 'default'?options.color():undefined\"\n [nzStatus]=\"options.status()=='default'?undefined:options.status()\" [nzText]=\"options.text()\">\n</nz-badge>\n}\n@case (\"ribbon\") {\n<nz-ribbon [nzColor]=\"options.color()\" [nzPlacement]=\"options.placement()\" [nzText]=\"options.text()\">\n <ng-container [axisDynamic]=\"options.child()\"></ng-container>\n</nz-ribbon>\n}\n}", styles: [":host{display:block}\n"] }]
|
|
32
32
|
}] });
|