ngx-axis-appforge 0.0.81 → 0.0.83
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 +2 -5
- package/axis-components/table/index.d.ts +6 -8
- package/axis-components/table-helper/index.d.ts +24 -0
- package/axis-components/transfer/index.d.ts +2 -0
- package/core/index.d.ts +7 -3
- package/fesm2022/ngx-axis-appforge-axis-components-badge-design.mjs +4 -4
- 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-badge.mjs.map +1 -1
- 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 +4 -4
- 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-color-picker.mjs.map +1 -1
- 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 +4 -4
- 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 +21 -21
- package/fesm2022/ngx-axis-appforge-axis-components-design.mjs.map +1 -1
- package/fesm2022/ngx-axis-appforge-axis-components-dropdown-design.mjs +4 -4
- package/fesm2022/ngx-axis-appforge-axis-components-dropdown-design.mjs.map +1 -1
- package/fesm2022/ngx-axis-appforge-axis-components-dropdown.mjs +4 -4
- 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-container.mjs.map +1 -1
- 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 +4 -4
- package/fesm2022/ngx-axis-appforge-axis-components-dynamic-value.mjs.map +1 -1
- package/fesm2022/ngx-axis-appforge-axis-components-echarts-design.mjs +3 -3
- package/fesm2022/ngx-axis-appforge-axis-components-echarts-design.mjs.map +1 -1
- package/fesm2022/ngx-axis-appforge-axis-components-echarts.mjs +3 -3
- package/fesm2022/ngx-axis-appforge-axis-components-echarts.mjs.map +1 -1
- package/fesm2022/ngx-axis-appforge-axis-components-edit-table-design.mjs +10 -12
- package/fesm2022/ngx-axis-appforge-axis-components-edit-table-design.mjs.map +1 -1
- package/fesm2022/ngx-axis-appforge-axis-components-edit-table.mjs +7 -10
- 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-flex.mjs.map +1 -1
- 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 +4 -4
- 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-icon.mjs.map +1 -1
- 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 +4 -4
- 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 +4 -4
- 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 +4 -4
- 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 +4 -4
- package/fesm2022/ngx-axis-appforge-axis-components-input.mjs.map +1 -1
- package/fesm2022/ngx-axis-appforge-axis-components-menu-design.mjs +13 -13
- 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 +7 -7
- package/fesm2022/ngx-axis-appforge-axis-components-modal-design.mjs.map +1 -1
- package/fesm2022/ngx-axis-appforge-axis-components-modal.mjs +4 -4
- 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 +4 -4
- 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-rate.mjs.map +1 -1
- package/fesm2022/ngx-axis-appforge-axis-components-rich-text-editor-design.mjs +3 -3
- package/fesm2022/ngx-axis-appforge-axis-components-rich-text-editor-design.mjs.map +1 -1
- package/fesm2022/ngx-axis-appforge-axis-components-rich-text-editor.mjs +3 -3
- package/fesm2022/ngx-axis-appforge-axis-components-rich-text-editor.mjs.map +1 -1
- package/fesm2022/ngx-axis-appforge-axis-components-scope-design.mjs +12 -12
- 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 +4 -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 +4 -4
- 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 +4 -4
- package/fesm2022/ngx-axis-appforge-axis-components-switch.mjs.map +1 -1
- package/fesm2022/ngx-axis-appforge-axis-components-table-design.mjs +17 -29
- package/fesm2022/ngx-axis-appforge-axis-components-table-design.mjs.map +1 -1
- package/fesm2022/ngx-axis-appforge-axis-components-table-helper.mjs +235 -42
- package/fesm2022/ngx-axis-appforge-axis-components-table-helper.mjs.map +1 -1
- package/fesm2022/ngx-axis-appforge-axis-components-table.mjs +74 -36
- 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 +4 -4
- 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 +4 -4
- 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 +9 -7
- 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 +4 -4
- 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 +4 -4
- package/fesm2022/ngx-axis-appforge-axis-components-upload.mjs.map +1 -1
- package/fesm2022/ngx-axis-appforge-axis-components.mjs +0 -4
- package/fesm2022/ngx-axis-appforge-axis-components.mjs.map +1 -1
- package/fesm2022/ngx-axis-appforge-core.mjs +263 -145
- package/fesm2022/ngx-axis-appforge-core.mjs.map +1 -1
- package/fesm2022/ngx-axis-appforge-providers.mjs +2 -0
- package/fesm2022/ngx-axis-appforge-providers.mjs.map +1 -1
- package/package.json +211 -209
|
@@ -29,9 +29,6 @@ declare class EditTableOptions extends ValueAccessOptions implements BaseTableOp
|
|
|
29
29
|
readonly defaultSelectFirstRow: _angular_core.WritableSignal<boolean>;
|
|
30
30
|
readonly checkboxLinkageForExpand: _angular_core.WritableSignal<boolean>;
|
|
31
31
|
readonly checkedKeys: _angular_core.WritableSignal<undefined>;
|
|
32
|
-
readonly showTotal: _angular_core.WritableSignal<boolean>;
|
|
33
|
-
readonly totalTitle: _angular_core.WritableSignal<string>;
|
|
34
|
-
readonly showSubTotal: _angular_core.WritableSignal<boolean>;
|
|
35
32
|
readonly showPagination: _angular_core.WritableSignal<boolean>;
|
|
36
33
|
readonly pageSize: _angular_core.WritableSignal<number>;
|
|
37
34
|
readonly showSizeChanger: _angular_core.WritableSignal<boolean>;
|
|
@@ -52,8 +49,8 @@ declare class EditTableFieldOptions implements BaseTableFieldOptions {
|
|
|
52
49
|
readonly width: _angular_core.WritableSignal<number | null>;
|
|
53
50
|
readonly align: _angular_core.WritableSignal<"left" | "right" | "center">;
|
|
54
51
|
readonly freezeMode: _angular_core.WritableSignal<"left" | "right" | "none">;
|
|
55
|
-
readonly
|
|
56
|
-
readonly
|
|
52
|
+
readonly groupAble: _angular_core.WritableSignal<boolean>;
|
|
53
|
+
readonly groupLevel: _angular_core.WritableSignal<number | null>;
|
|
57
54
|
readonly validators: _angular_core.WritableSignal<any[]>;
|
|
58
55
|
readonly child: _angular_core.WritableSignal<any>;
|
|
59
56
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as _angular_core from '@angular/core';
|
|
2
|
-
import { OnDestroy,
|
|
2
|
+
import { OnDestroy, WritableSignal } from '@angular/core';
|
|
3
3
|
import { DataOptions, Base, EventHandlerOptions } from 'ngx-axis-appforge/core';
|
|
4
4
|
import { BaseTableOptions, SelectableTableOptions, ExpandableTableOptions, StatisticTableOptions, BaseTableFieldOptions, StatisticTableFieldOptions, TableFieldDisplayService, TableService, ExpandService, StatisticService, SelectService } from 'ngx-axis-appforge/axis-components/table-helper';
|
|
5
5
|
import { CdkDragDrop } from '@angular/cdk/drag-drop';
|
|
@@ -31,9 +31,6 @@ declare class TableOptions extends DataOptions implements BaseTableOptions, Sele
|
|
|
31
31
|
readonly defaultSelectFirstRow: _angular_core.WritableSignal<boolean>;
|
|
32
32
|
readonly showStatistic: _angular_core.WritableSignal<boolean>;
|
|
33
33
|
readonly statisticTitle: _angular_core.WritableSignal<string>;
|
|
34
|
-
readonly showSubTotal: _angular_core.WritableSignal<boolean>;
|
|
35
|
-
readonly subTotalTitle: _angular_core.WritableSignal<string>;
|
|
36
|
-
readonly subTotalGroupLevel: _angular_core.WritableSignal<number>;
|
|
37
34
|
readonly showPagination: _angular_core.WritableSignal<boolean>;
|
|
38
35
|
readonly virtualScroll: _angular_core.WritableSignal<boolean>;
|
|
39
36
|
readonly virtualItemSize: _angular_core.WritableSignal<number>;
|
|
@@ -72,6 +69,7 @@ declare class TableFieldOptions implements BaseTableFieldOptions, StatisticTable
|
|
|
72
69
|
readonly width: _angular_core.WritableSignal<number | null>;
|
|
73
70
|
readonly align: _angular_core.WritableSignal<"left" | "right" | "center">;
|
|
74
71
|
readonly freezeMode: _angular_core.WritableSignal<"left" | "right" | "none">;
|
|
72
|
+
readonly groupAble: _angular_core.WritableSignal<boolean>;
|
|
75
73
|
readonly groupLevel: _angular_core.WritableSignal<number | null>;
|
|
76
74
|
readonly statisticAble: _angular_core.WritableSignal<boolean>;
|
|
77
75
|
readonly statisticType: _angular_core.WritableSignal<"custom" | "sum" | "average" | "max" | "min">;
|
|
@@ -112,18 +110,18 @@ declare class TableSetter implements OnDestroy {
|
|
|
112
110
|
}
|
|
113
111
|
|
|
114
112
|
declare class Table extends Base<TableOptions> {
|
|
115
|
-
private elementRef;
|
|
116
113
|
tableFieldDisplayService: TableFieldDisplayService;
|
|
117
114
|
tableSvc: TableService<TableOptions, TableFieldOptions>;
|
|
118
115
|
expand: ExpandService;
|
|
119
116
|
statistic: StatisticService;
|
|
120
|
-
constructor(
|
|
117
|
+
constructor(tableFieldDisplayService: TableFieldDisplayService, tableSvc: TableService<TableOptions, TableFieldOptions>, select: SelectService, expand: ExpandService, statistic: StatisticService, parentSelect?: SelectService);
|
|
121
118
|
options: TableOptions;
|
|
122
119
|
select: SelectService;
|
|
123
120
|
readonly scroll: WritableSignal<{
|
|
124
121
|
x: string;
|
|
125
122
|
y: string;
|
|
126
123
|
}>;
|
|
124
|
+
readonly oriFields: _angular_core.Signal<TableFieldOptions[]>;
|
|
127
125
|
readonly fields: _angular_core.Signal<TableFieldOptions[]>;
|
|
128
126
|
readonly rowActions: _angular_core.Signal<any[]>;
|
|
129
127
|
readonly actionsFieldWidth: _angular_core.Signal<number>;
|
|
@@ -137,19 +135,19 @@ declare class Table extends Base<TableOptions> {
|
|
|
137
135
|
resizeHandleOffsetX(field: TableFieldOptions): number;
|
|
138
136
|
tableSetter?: TableSetter;
|
|
139
137
|
trackByKeyField: (i: number, data: any) => any;
|
|
138
|
+
private buildOriFields;
|
|
140
139
|
private buildFields;
|
|
141
140
|
private buildActionsFieldWidth;
|
|
142
141
|
private refreshScoll;
|
|
143
142
|
onPageIndexChange(): void;
|
|
144
143
|
onPageSizeChange(): void;
|
|
145
144
|
sortChange(): void;
|
|
146
|
-
rowspan(field: string, index: number): number;
|
|
147
145
|
onSelectedChange(): void;
|
|
148
146
|
rowClick(row: any): void;
|
|
149
147
|
exportExcel(): Observable<WorkSheet>;
|
|
150
148
|
onEvents(e: EventHandlerOptions<any>): Observable<boolean> | undefined;
|
|
151
149
|
ngOnDestroy(): void;
|
|
152
|
-
static ɵfac: _angular_core.ɵɵFactoryDeclaration<Table, [null, null, null, null, null,
|
|
150
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<Table, [null, null, null, null, null, { optional: true; skipSelf: true; }]>;
|
|
153
151
|
static ɵcmp: _angular_core.ɵɵComponentDeclaration<Table, "axis-table", never, {}, {}, never, never, true, never>;
|
|
154
152
|
}
|
|
155
153
|
|
|
@@ -39,6 +39,8 @@ interface BaseTableFieldOptions {
|
|
|
39
39
|
readonly inuse: WritableSignal<boolean>;
|
|
40
40
|
readonly field: WritableSignal<string>;
|
|
41
41
|
readonly title: WritableSignal<string>;
|
|
42
|
+
readonly groupAble: WritableSignal<boolean>;
|
|
43
|
+
readonly groupLevel: WritableSignal<number | null>;
|
|
42
44
|
readonly sortAble: WritableSignal<boolean>;
|
|
43
45
|
readonly sortOrder: WritableSignal<"descend" | "ascend" | null>;
|
|
44
46
|
readonly sortPriority: WritableSignal<number | null>;
|
|
@@ -80,6 +82,8 @@ declare class TableService<T extends BaseTableOptions, F extends BaseTableFieldO
|
|
|
80
82
|
private fields;
|
|
81
83
|
private getRow?;
|
|
82
84
|
private cacheFilterItem;
|
|
85
|
+
readonly groupAbleFields: Signal<F[]>;
|
|
86
|
+
readonly rowsGroupMap: Signal<Map<string, Map<string, number[]>>>;
|
|
83
87
|
readonly useBackEndPaging: Signal<boolean>;
|
|
84
88
|
readonly rows: Signal<any[] | undefined>;
|
|
85
89
|
readonly pageIndex: i0.WritableSignal<number>;
|
|
@@ -93,6 +97,8 @@ declare class TableService<T extends BaseTableOptions, F extends BaseTableFieldO
|
|
|
93
97
|
filterFn?: any;
|
|
94
98
|
} | undefined;
|
|
95
99
|
}>;
|
|
100
|
+
readonly tableData: i0.WritableSignal<any[]>;
|
|
101
|
+
readonly fieldsFilterValueMap: Map<string, any>;
|
|
96
102
|
readonly filedsFilterItemsCache: Map<string, Map<any, any>>;
|
|
97
103
|
readonly leaderFieldWidth: Signal<number>;
|
|
98
104
|
readonly pageSizeOptions: Signal<number[]>;
|
|
@@ -105,7 +111,16 @@ declare class TableService<T extends BaseTableOptions, F extends BaseTableFieldO
|
|
|
105
111
|
getRow?: (row: any) => any;
|
|
106
112
|
cacheFilterItem?: boolean;
|
|
107
113
|
}): void;
|
|
114
|
+
refreshTableData(): void;
|
|
115
|
+
buildRowsGroupMap(): Map<string, Map<string, number[]>>;
|
|
116
|
+
fieldSortAble(f: BaseTableFieldOptions): boolean;
|
|
117
|
+
fieldSortDirections(f: BaseTableFieldOptions): Array<'ascend' | 'descend' | null>;
|
|
118
|
+
fieldSortPriority(f: BaseTableFieldOptions): number | boolean;
|
|
119
|
+
getGroupValue(row: any): any;
|
|
120
|
+
isGroupEnd(index: number, row: any): boolean;
|
|
121
|
+
rowspan(f: BaseTableFieldOptions, index: number, pageIndex: number, pageSize: number, row: any): number;
|
|
108
122
|
refreshFieldControls(f?: string): void;
|
|
123
|
+
sortChange(): void;
|
|
109
124
|
filterChange(field: string, value: any): void;
|
|
110
125
|
private buildLeaderFieldWidth;
|
|
111
126
|
addCursorMark(): void;
|
|
@@ -204,17 +219,26 @@ declare class StatisticService {
|
|
|
204
219
|
private data;
|
|
205
220
|
private fields;
|
|
206
221
|
private getRow?;
|
|
222
|
+
private tableSvc?;
|
|
207
223
|
hasStatistic: boolean;
|
|
208
224
|
readonly statisticMap: Signal<{
|
|
209
225
|
[field: string]: number | undefined;
|
|
210
226
|
}>;
|
|
227
|
+
readonly statisticGroupMap: Signal<{
|
|
228
|
+
[groupValue: string]: {
|
|
229
|
+
[field: string]: number | undefined;
|
|
230
|
+
};
|
|
231
|
+
}>;
|
|
211
232
|
init(opts: {
|
|
212
233
|
options: StatisticTableOptions;
|
|
213
234
|
data: Signal<any>;
|
|
214
235
|
fields: Signal<StatisticTableFieldOptions[]>;
|
|
215
236
|
getRow?: (row: any) => any;
|
|
237
|
+
tableSvc?: TableService<BaseTableOptions, BaseTableFieldOptions>;
|
|
216
238
|
}): void;
|
|
217
239
|
private buildStatisticMap;
|
|
240
|
+
private buildStatisticGroupMap;
|
|
241
|
+
statisticCompute(data: any[]): any;
|
|
218
242
|
get backEndPageParams(): any;
|
|
219
243
|
static ɵfac: i0.ɵɵFactoryDeclaration<StatisticService, [{ optional: true; }]>;
|
|
220
244
|
static ɵprov: i0.ɵɵInjectableDeclaration<StatisticService>;
|
|
@@ -59,6 +59,8 @@ declare class TransferTableFieldOptions implements BaseTableFieldOptions {
|
|
|
59
59
|
readonly inuse: WritableSignal<boolean>;
|
|
60
60
|
readonly field: WritableSignal<string>;
|
|
61
61
|
readonly title: WritableSignal<string>;
|
|
62
|
+
readonly groupAble: WritableSignal<boolean>;
|
|
63
|
+
readonly groupLevel: WritableSignal<null>;
|
|
62
64
|
readonly sortAble: WritableSignal<boolean>;
|
|
63
65
|
readonly sortOrder: WritableSignal<"descend" | "ascend" | null>;
|
|
64
66
|
readonly sortPriority: WritableSignal<number | null>;
|
package/core/index.d.ts
CHANGED
|
@@ -69,6 +69,7 @@ declare class ScopeDirective implements OnInit, OnDestroy {
|
|
|
69
69
|
readonly axisScope: _angular_core.InputSignal<string>;
|
|
70
70
|
readonly scopeName: _angular_core.InputSignal<string>;
|
|
71
71
|
readonly isRoot: _angular_core.InputSignal<boolean>;
|
|
72
|
+
private readonly elementRef;
|
|
72
73
|
private readonly _parentScope;
|
|
73
74
|
readonly httpContextData: {
|
|
74
75
|
[key: string]: any;
|
|
@@ -114,6 +115,8 @@ declare class ScopeDirective implements OnInit, OnDestroy {
|
|
|
114
115
|
onEvents(e: EventHandlerOptions<any>): Observable<boolean> | undefined;
|
|
115
116
|
private setDataSourceEventHandler;
|
|
116
117
|
private refreshDataSourceEventHandler;
|
|
118
|
+
private componentsSnapshotEventHandler;
|
|
119
|
+
private exportExcelEventHandler;
|
|
117
120
|
preloadImports(obj: any): Promise<void>;
|
|
118
121
|
runFnWithImports(fnstr: any, args: any, imports: string[]): any;
|
|
119
122
|
runFnWithSnapshot(fnstr: any, args?: any): any;
|
|
@@ -123,11 +126,12 @@ declare class ScopeDirective implements OnInit, OnDestroy {
|
|
|
123
126
|
|
|
124
127
|
declare abstract class Base<T extends BaseOptions> implements OnDestroy, AfterViewInit {
|
|
125
128
|
onAfterViewInit?: Function;
|
|
126
|
-
injector: Injector;
|
|
129
|
+
readonly injector: Injector;
|
|
130
|
+
readonly elementRef: ElementRef<any>;
|
|
127
131
|
isDesign: boolean;
|
|
128
132
|
options: T;
|
|
129
|
-
private eventsService;
|
|
130
|
-
private scope;
|
|
133
|
+
private readonly eventsService;
|
|
134
|
+
private readonly scope;
|
|
131
135
|
private _sub;
|
|
132
136
|
get style(): any;
|
|
133
137
|
ngAfterViewInit(): void;
|
|
@@ -126,13 +126,13 @@ class Setting extends FunFieldValueBase {
|
|
|
126
126
|
});
|
|
127
127
|
}
|
|
128
128
|
}
|
|
129
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.
|
|
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 });
|
|
129
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.15", ngImport: i0, type: Setting, deps: null, target: i0.ɵɵFactoryTarget.Component });
|
|
130
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.3.15", 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", "nzRequiredMark"], 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", "readonly"], exportAs: ["nzInput"] }, { kind: "directive", type: i6.NzInputPrefixDirective, selector: "[nzInputPrefix]" }, { 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", "nzPrefix", "nzSuffix", "nzAddonBefore", "nzAddonAfter"], outputs: ["nzBlur", "nzFocus", "nzOnStep"], exportAs: ["nzInputNumber"] }, { 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.3.
|
|
132
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.15", 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
|
+
}], propDecorators: { offsetX: [{ type: i0.Input, args: [{ isSignal: true, alias: "offsetX", required: false }] }, { type: i0.Output, args: ["offsetXChange"] }], offsetY: [{ type: i0.Input, args: [{ isSignal: true, alias: "offsetY", required: false }] }, { type: i0.Output, args: ["offsetYChange"] }], color: [{ type: i0.Input, args: [{ isSignal: true, alias: "color", required: false }] }, { type: i0.Output, args: ["colorChange"] }] } });
|
|
136
136
|
|
|
137
137
|
const Config = {
|
|
138
138
|
componentName: "徽标",
|
|
@@ -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":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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,EAAE;AAC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,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;;;;"}
|
|
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,M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AI;gBACX;AACJ,YAAA;gBACI,IAAI,GAAG,IAAI;;QAEnB,OAAO;YACH,QAAQ,EAAE,IAAI,WAAW,CAAC;gBACtB,QAAQ,EAAE,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;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.3.
|
|
27
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.3.
|
|
26
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.15", ngImport: i0, type: Text, deps: null, target: i0.ɵɵFactoryTarget.Component });
|
|
27
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.3.15", 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", "forceRenderOnChange"], outputs: ["onRegisteValueAccess"], exportAs: ["axisDynamic"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
28
28
|
}
|
|
29
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.
|
|
29
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.15", 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
|
}] });
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ngx-axis-appforge-axis-components-badge.mjs","sources":["../../../axis-components/badge/badge.options.ts","../../../axis-components/badge/badge.ts","../../../axis-components/badge/badge.html","../../../axis-components/badge/ngx-axis-appforge-axis-components-badge.ts"],"sourcesContent":["import { signal } from \"@angular/core\";\nimport { DataOptions } from \"ngx-axis-appforge/core\";\n\nexport class BadgeOptions extends DataOptions {\n\n readonly type = signal<\"badge\" | \"status\" | \"ribbon\">(\"badge\");\n\n readonly showDot = signal(true);\n readonly dot = signal(false);\n readonly overflowCount = signal(Number.MAX_VALUE);\n readonly showZero = signal(false);\n readonly count = signal<number | undefined>(undefined);\n readonly child = signal<any>(undefined);\n readonly size = signal<\"default\" | \"small\">(\"default\");\n readonly offset = signal<[number, number] | undefined>(undefined);\n readonly title = signal(\"\");\n\n readonly color = signal<string | undefined>(undefined);\n readonly status = signal<'success' | 'processing' | 'default' | 'error' | 'warning'>(\"default\");\n readonly text = signal(\"\");\n\n readonly placement = signal<\"start\" | \"end\">(\"end\");\n}","import { ChangeDetectionStrategy, Component } from '@angular/core';\nimport { BadgeOptions } from './badge.options';\nimport { Base, DynamicDirective } from 'ngx-axis-appforge/core';\nimport { NzBadgeModule } from 'ng-zorro-antd/badge';\n\n@Component({\n selector: 'axis-badge',\n imports: [NzBadgeModule, DynamicDirective],\n templateUrl: './badge.html',\n styleUrl: './badge.css',\n changeDetection: ChangeDetectionStrategy.OnPush,\n})\nexport class Text extends Base<BadgeOptions> {\n\n override options: BadgeOptions = new BadgeOptions();\n\n}\n","@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}","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './badge';\n"],"names":[],"mappings":";;;;;;AAGM,MAAO,YAAa,SAAQ,WAAW,CAAA;AAEhC,IAAA,IAAI,GAAG,MAAM,CAAgC,OAAO,gDAAC;AAErD,IAAA,OAAO,GAAG,MAAM,CAAC,IAAI,mDAAC;AACtB,IAAA,GAAG,GAAG,MAAM,CAAC,KAAK,+CAAC;AACnB,IAAA,aAAa,GAAG,MAAM,CAAC,MAAM,CAAC,SAAS,yDAAC;AACxC,IAAA,QAAQ,GAAG,MAAM,CAAC,KAAK,oDAAC;AACxB,IAAA,KAAK,GAAG,MAAM,CAAqB,SAAS,iDAAC;AAC7C,IAAA,KAAK,GAAG,MAAM,CAAM,SAAS,iDAAC;AAC9B,IAAA,IAAI,GAAG,MAAM,CAAsB,SAAS,gDAAC;AAC7C,IAAA,MAAM,GAAG,MAAM,CAA+B,SAAS,kDAAC;AACxD,IAAA,KAAK,GAAG,MAAM,CAAC,EAAE,iDAAC;AAElB,IAAA,KAAK,GAAG,MAAM,CAAqB,SAAS,iDAAC;AAC7C,IAAA,MAAM,GAAG,MAAM,CAA6D,SAAS,kDAAC;AACtF,IAAA,IAAI,GAAG,MAAM,CAAC,EAAE,gDAAC;AAEjB,IAAA,SAAS,GAAG,MAAM,CAAkB,KAAK,qDAAC;AACtD;;ACVK,MAAO,IAAK,SAAQ,IAAkB,CAAA;AAEjC,IAAA,OAAO,GAAiB,IAAI,YAAY,EAAE;
|
|
1
|
+
{"version":3,"file":"ngx-axis-appforge-axis-components-badge.mjs","sources":["../../../axis-components/badge/badge.options.ts","../../../axis-components/badge/badge.ts","../../../axis-components/badge/badge.html","../../../axis-components/badge/ngx-axis-appforge-axis-components-badge.ts"],"sourcesContent":["import { signal } from \"@angular/core\";\nimport { DataOptions } from \"ngx-axis-appforge/core\";\n\nexport class BadgeOptions extends DataOptions {\n\n readonly type = signal<\"badge\" | \"status\" | \"ribbon\">(\"badge\");\n\n readonly showDot = signal(true);\n readonly dot = signal(false);\n readonly overflowCount = signal(Number.MAX_VALUE);\n readonly showZero = signal(false);\n readonly count = signal<number | undefined>(undefined);\n readonly child = signal<any>(undefined);\n readonly size = signal<\"default\" | \"small\">(\"default\");\n readonly offset = signal<[number, number] | undefined>(undefined);\n readonly title = signal(\"\");\n\n readonly color = signal<string | undefined>(undefined);\n readonly status = signal<'success' | 'processing' | 'default' | 'error' | 'warning'>(\"default\");\n readonly text = signal(\"\");\n\n readonly placement = signal<\"start\" | \"end\">(\"end\");\n}","import { ChangeDetectionStrategy, Component } from '@angular/core';\nimport { BadgeOptions } from './badge.options';\nimport { Base, DynamicDirective } from 'ngx-axis-appforge/core';\nimport { NzBadgeModule } from 'ng-zorro-antd/badge';\n\n@Component({\n selector: 'axis-badge',\n imports: [NzBadgeModule, DynamicDirective],\n templateUrl: './badge.html',\n styleUrl: './badge.css',\n changeDetection: ChangeDetectionStrategy.OnPush,\n})\nexport class Text extends Base<BadgeOptions> {\n\n override options: BadgeOptions = new BadgeOptions();\n\n}\n","@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}","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './badge';\n"],"names":[],"mappings":";;;;;;AAGM,MAAO,YAAa,SAAQ,WAAW,CAAA;AAEhC,IAAA,IAAI,GAAG,MAAM,CAAgC,OAAO,gDAAC;AAErD,IAAA,OAAO,GAAG,MAAM,CAAC,IAAI,mDAAC;AACtB,IAAA,GAAG,GAAG,MAAM,CAAC,KAAK,+CAAC;AACnB,IAAA,aAAa,GAAG,MAAM,CAAC,MAAM,CAAC,SAAS,yDAAC;AACxC,IAAA,QAAQ,GAAG,MAAM,CAAC,KAAK,oDAAC;AACxB,IAAA,KAAK,GAAG,MAAM,CAAqB,SAAS,iDAAC;AAC7C,IAAA,KAAK,GAAG,MAAM,CAAM,SAAS,iDAAC;AAC9B,IAAA,IAAI,GAAG,MAAM,CAAsB,SAAS,gDAAC;AAC7C,IAAA,MAAM,GAAG,MAAM,CAA+B,SAAS,kDAAC;AACxD,IAAA,KAAK,GAAG,MAAM,CAAC,EAAE,iDAAC;AAElB,IAAA,KAAK,GAAG,MAAM,CAAqB,SAAS,iDAAC;AAC7C,IAAA,MAAM,GAAG,MAAM,CAA6D,SAAS,kDAAC;AACtF,IAAA,IAAI,GAAG,MAAM,CAAC,EAAE,gDAAC;AAEjB,IAAA,SAAS,GAAG,MAAM,CAAkB,KAAK,qDAAC;AACtD;;ACVK,MAAO,IAAK,SAAQ,IAAkB,CAAA;AAEjC,IAAA,OAAO,GAAiB,IAAI,YAAY,EAAE;wGAFxC,IAAI,EAAA,IAAA,EAAA,IAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA;AAAJ,IAAA,OAAA,IAAA,GAAA,EAAA,CAAA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