ngx-axis-appforge 0.0.50 → 0.0.52
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 +1 -0
- package/axis-components/rich-text-editor/design/index.d.ts +5 -0
- package/axis-components/rich-text-editor/index.d.ts +27 -0
- package/axis-components/table/index.d.ts +5 -8
- package/axis-components/table-helper/index.d.ts +13 -1
- package/axis-components/transfer/index.d.ts +1 -0
- package/axis-components-covers/rate.svg +2 -2
- package/axis-components-covers/rich-text-editor.png +0 -0
- package/fesm2022/ngx-axis-appforge-axis-components-button.mjs +2 -2
- package/fesm2022/ngx-axis-appforge-axis-components-button.mjs.map +1 -1
- package/fesm2022/ngx-axis-appforge-axis-components-design.mjs +1 -1
- package/fesm2022/ngx-axis-appforge-axis-components-design.mjs.map +1 -1
- package/fesm2022/ngx-axis-appforge-axis-components-edit-table.mjs +1 -0
- package/fesm2022/ngx-axis-appforge-axis-components-edit-table.mjs.map +1 -1
- package/fesm2022/ngx-axis-appforge-axis-components-form-item.mjs +2 -2
- package/fesm2022/ngx-axis-appforge-axis-components-form-item.mjs.map +1 -1
- package/fesm2022/ngx-axis-appforge-axis-components-form.mjs +2 -2
- package/fesm2022/ngx-axis-appforge-axis-components-form.mjs.map +1 -1
- package/fesm2022/ngx-axis-appforge-axis-components-rich-text-editor-design.mjs +76 -0
- package/fesm2022/ngx-axis-appforge-axis-components-rich-text-editor-design.mjs.map +1 -0
- package/fesm2022/ngx-axis-appforge-axis-components-rich-text-editor.mjs +139 -0
- package/fesm2022/ngx-axis-appforge-axis-components-rich-text-editor.mjs.map +1 -0
- package/fesm2022/ngx-axis-appforge-axis-components-table-design.mjs +36 -10
- package/fesm2022/ngx-axis-appforge-axis-components-table-design.mjs.map +1 -1
- package/fesm2022/ngx-axis-appforge-axis-components-table-helper.mjs +107 -17
- package/fesm2022/ngx-axis-appforge-axis-components-table-helper.mjs.map +1 -1
- package/fesm2022/ngx-axis-appforge-axis-components-table.mjs +29 -14
- package/fesm2022/ngx-axis-appforge-axis-components-table.mjs.map +1 -1
- package/fesm2022/ngx-axis-appforge-axis-components-transfer.mjs +1 -0
- package/fesm2022/ngx-axis-appforge-axis-components-transfer.mjs.map +1 -1
- package/fesm2022/ngx-axis-appforge-axis-components-upload.mjs +19 -13
- package/fesm2022/ngx-axis-appforge-axis-components-upload.mjs.map +1 -1
- package/fesm2022/ngx-axis-appforge-axis-components.mjs +19 -2
- package/fesm2022/ngx-axis-appforge-axis-components.mjs.map +1 -1
- package/fesm2022/ngx-axis-appforge-core.mjs +76 -4
- package/fesm2022/ngx-axis-appforge-core.mjs.map +1 -1
- package/package.json +132 -122
|
@@ -34,6 +34,7 @@ declare class EditTableOptions extends ValueAccessOptions implements BaseTableOp
|
|
|
34
34
|
readonly pageSize: _angular_core.WritableSignal<number>;
|
|
35
35
|
readonly showSizeChanger: _angular_core.WritableSignal<boolean>;
|
|
36
36
|
readonly pageSizeOptions: _angular_core.WritableSignal<string>;
|
|
37
|
+
readonly useBackEndPaging: _angular_core.WritableSignal<boolean>;
|
|
37
38
|
readonly fields: _angular_core.WritableSignal<any[]>;
|
|
38
39
|
readonly expandRow: _angular_core.WritableSignal<any>;
|
|
39
40
|
}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import * as _angular_core from '@angular/core';
|
|
2
|
+
import { ValueAccessOptions, ValueAccess } from 'ngx-axis-appforge/core';
|
|
3
|
+
import { EditorComponent } from '@tinymce/tinymce-angular';
|
|
4
|
+
import { RawEditorOptions } from 'tinymce';
|
|
5
|
+
|
|
6
|
+
declare class RichTextEditorOptions extends ValueAccessOptions {
|
|
7
|
+
readonly fileUploadUrl: _angular_core.WritableSignal<string>;
|
|
8
|
+
readonly fileUploadFormName: _angular_core.WritableSignal<string>;
|
|
9
|
+
readonly fileUploadResponseFn: _angular_core.WritableSignal<string>;
|
|
10
|
+
readonly tinymceOptions: _angular_core.WritableSignal<any>;
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
declare class RichTextEditor extends ValueAccess<RichTextEditorOptions> {
|
|
14
|
+
options: RichTextEditorOptions;
|
|
15
|
+
private readonly fileBaseUrl;
|
|
16
|
+
private readonly http;
|
|
17
|
+
editor: EditorComponent;
|
|
18
|
+
editorConfig: _angular_core.Signal<any>;
|
|
19
|
+
filePickerCallback(callback: (value: string, meta?: Record<string, any>) => void, value: string, meta: Record<string, any>): void;
|
|
20
|
+
uploadHandler(blobInfo: any, progress: any): Promise<string>;
|
|
21
|
+
getUrl(url: string): string;
|
|
22
|
+
defaultEditorConfig: RawEditorOptions;
|
|
23
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<RichTextEditor, never>;
|
|
24
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<RichTextEditor, "axis-rich-text-editor", never, {}, {}, never, never, true, never>;
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
export { RichTextEditor };
|
|
@@ -39,8 +39,6 @@ declare class TableOptions extends DataOptions implements BaseTableOptions, Sele
|
|
|
39
39
|
readonly showSizeChanger: _angular_core.WritableSignal<boolean>;
|
|
40
40
|
readonly pageSizeOptions: _angular_core.WritableSignal<string>;
|
|
41
41
|
readonly useBackEndPaging: _angular_core.WritableSignal<boolean>;
|
|
42
|
-
readonly pageParamsDataSourceName: _angular_core.WritableSignal<string>;
|
|
43
|
-
readonly exportParamsDataSourceName: _angular_core.WritableSignal<string>;
|
|
44
42
|
readonly exportFileName: _angular_core.WritableSignal<string>;
|
|
45
43
|
readonly exportBookType: _angular_core.WritableSignal<string>;
|
|
46
44
|
readonly importLimitLength: _angular_core.WritableSignal<number | null>;
|
|
@@ -122,11 +120,10 @@ declare class Table extends Base<TableOptions> {
|
|
|
122
120
|
y: string;
|
|
123
121
|
}>;
|
|
124
122
|
readonly fields: _angular_core.Signal<TableFieldOptions[]>;
|
|
125
|
-
readonly rowtotal: _angular_core.WritableSignal<number>;
|
|
126
|
-
readonly pageIndex: _angular_core.ModelSignal<number>;
|
|
127
123
|
readonly rowActions: _angular_core.Signal<any[]>;
|
|
128
124
|
readonly actionsFieldWidth: _angular_core.Signal<number>;
|
|
129
125
|
readonly fixFields: _angular_core.WritableSignal<TableFieldOptions[]>;
|
|
126
|
+
readonly backendPageParamsChange: Subject<void>;
|
|
130
127
|
timer?: number;
|
|
131
128
|
resizeHandleOffsetX(field: TableFieldOptions): number;
|
|
132
129
|
tableSetter?: TableSetter;
|
|
@@ -134,14 +131,14 @@ declare class Table extends Base<TableOptions> {
|
|
|
134
131
|
private buildFields;
|
|
135
132
|
private buildActionsFieldWidth;
|
|
136
133
|
private refreshScoll;
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
sortChange(
|
|
134
|
+
onPageIndexChange(): void;
|
|
135
|
+
onPageSizeChange(): void;
|
|
136
|
+
sortChange(): void;
|
|
140
137
|
rowspan(field: string, index: number): number;
|
|
141
138
|
onSelectedChange(): void;
|
|
142
139
|
ngOnDestroy(): void;
|
|
143
140
|
static ɵfac: _angular_core.ɵɵFactoryDeclaration<Table, [null, null, null, null, null, { optional: true; skipSelf: true; }]>;
|
|
144
|
-
static ɵcmp: _angular_core.ɵɵComponentDeclaration<Table, "axis-table", never, {
|
|
141
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<Table, "axis-table", never, {}, {}, never, never, true, never>;
|
|
145
142
|
}
|
|
146
143
|
|
|
147
144
|
export { Table };
|
|
@@ -12,6 +12,7 @@ interface BaseTableOptions {
|
|
|
12
12
|
readonly outerBordered: WritableSignal<boolean>;
|
|
13
13
|
readonly width: WritableSignal<number | undefined>;
|
|
14
14
|
readonly showPagination: WritableSignal<boolean>;
|
|
15
|
+
readonly useBackEndPaging: WritableSignal<boolean>;
|
|
15
16
|
readonly pageSize: WritableSignal<number>;
|
|
16
17
|
readonly showSizeChanger: WritableSignal<boolean>;
|
|
17
18
|
readonly pageSizeOptions: WritableSignal<string>;
|
|
@@ -78,6 +79,11 @@ declare class TableService<T extends BaseTableOptions, F extends BaseTableFieldO
|
|
|
78
79
|
private fields;
|
|
79
80
|
private getRow?;
|
|
80
81
|
private cacheFilterItem;
|
|
82
|
+
readonly useBackEndPaging: Signal<boolean>;
|
|
83
|
+
readonly rows: Signal<any[] | undefined>;
|
|
84
|
+
readonly pageIndex: i0.WritableSignal<number>;
|
|
85
|
+
hasTotal: boolean;
|
|
86
|
+
readonly rowtotal: i0.WritableSignal<number>;
|
|
81
87
|
readonly displayFields: Signal<F[]>;
|
|
82
88
|
readonly fieldsControlsMap: i0.WritableSignal<{
|
|
83
89
|
[field: string]: {
|
|
@@ -89,8 +95,10 @@ declare class TableService<T extends BaseTableOptions, F extends BaseTableFieldO
|
|
|
89
95
|
readonly filedsFilterItemsCache: Map<string, Map<any, any>>;
|
|
90
96
|
readonly leaderFieldWidth: Signal<number>;
|
|
91
97
|
readonly pageSizeOptions: Signal<number[]>;
|
|
98
|
+
readonly pageCursorMarks: Map<number, any>;
|
|
99
|
+
pageCursorMarkIndexs: number[];
|
|
92
100
|
init(opts: {
|
|
93
|
-
data: Signal<any
|
|
101
|
+
data: Signal<any>;
|
|
94
102
|
options: T;
|
|
95
103
|
fields: Signal<F[]>;
|
|
96
104
|
getRow?: (row: any) => any;
|
|
@@ -99,6 +107,10 @@ declare class TableService<T extends BaseTableOptions, F extends BaseTableFieldO
|
|
|
99
107
|
refreshFieldControls(f?: string): void;
|
|
100
108
|
filterChange(field: string, value: any): void;
|
|
101
109
|
private buildLeaderFieldWidth;
|
|
110
|
+
addCursorMark(): void;
|
|
111
|
+
getNearestCursorMark(): any;
|
|
112
|
+
clearCursorMarks(): void;
|
|
113
|
+
get backEndPageParams(): any;
|
|
102
114
|
static ɵfac: i0.ɵɵFactoryDeclaration<TableService<any, any>, never>;
|
|
103
115
|
static ɵprov: i0.ɵɵInjectableDeclaration<TableService<any, any>>;
|
|
104
116
|
}
|
|
@@ -51,6 +51,7 @@ declare class TransferTableOptions implements BaseTableOptions {
|
|
|
51
51
|
pageSize: WritableSignal<number>;
|
|
52
52
|
showSizeChanger: WritableSignal<boolean>;
|
|
53
53
|
pageSizeOptions: WritableSignal<string>;
|
|
54
|
+
useBackEndPaging: WritableSignal<boolean>;
|
|
54
55
|
}
|
|
55
56
|
declare class TransferTableFieldOptions implements BaseTableFieldOptions {
|
|
56
57
|
readonly inuse: WritableSignal<boolean>;
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
<?xml version="1.0" encoding="UTF-8"?>
|
|
2
|
-
<svg width="158px" height="22px" viewBox="0 0
|
|
2
|
+
<svg width="158px" height="22px" viewBox="0 0 170 22" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
|
|
3
3
|
<title>Rate</title>
|
|
4
4
|
<g id="页面-1" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd">
|
|
5
5
|
<g id="Ant-Design-组件缩略图" transform="translate(-1294.000000, -142.000000)">
|
|
6
6
|
<g id="Rate" transform="translate(1294.000000, 142.000000)">
|
|
7
7
|
<text id="Text" font-family="HelveticaNeue, Helvetica Neue" font-size="14" font-weight="normal" line-spacing="22" fill="#000000" fill-opacity="0.65">
|
|
8
|
-
<tspan x="138" y="
|
|
8
|
+
<tspan x="138" y="16">3.5</tspan>
|
|
9
9
|
</text>
|
|
10
10
|
<g id="Rate/_Resource/Star+unselected" transform="translate(104.000000, 3.000000)" fill="#000000" fill-opacity="0.04">
|
|
11
11
|
<path d="M14.3886837,6.37641211 C14.1796604,6.17267922 14.0842913,5.87914938 14.1336555,5.59147323 L14.9174679,1.02224826 C14.9787809,0.660183861 14.9175685,0.400689958 14.6206793,0.184424923 C14.4526922,0.0623018619 14.2528417,3.20934945e-06 14.052971,3.20934945e-06 C13.8994673,3.20934945e-06 13.7454607,0.0366944403 13.6040264,0.111042461 L9.41261655,2.37000729 C9.15428936,2.5058091 8.84567266,2.5058091 8.58734547,2.37000729 L4.57188854,0.111022345 C4.24651537,-0.0603442099 3.85260765,-0.0313774487 3.55473279,0.184404807 C3.2578436,0.400669842 3.02069836,0.659680966 3.08299701,1.02222814 L4.0431848,5.68631926 C4.09252887,5.9739954 3.99715983,6.26752525 3.7881566,6.47125814 L0.292230604,9.22104865 C0.028170413,9.47738437 -0.0659715611,9.86117384 0.0469988078,10.2106659 C0.16091462,10.560178 0.462651716,10.8145826 0.826627118,10.8676883 L5.37386551,11.6657025 C5.66260779,11.7077043 5.91220472,11.8890282 6.04138843,12.1506342 L8.13488064,16.568528 C8.2970945,16.8982261 8.63260604,17.1067867 9.00044367,17.1067867 C9.36828131,17.1067867 9.70282729,16.8982462 9.86600671,16.568528 L11.8773862,12.1507348 C12.0065498,11.8890483 12.2561869,11.7076439 12.5449896,11.6656623 L17.1742602,10.8676883 C17.5372902,10.8150654 17.8399727,10.560178 17.9529431,10.2106659 C18.0663962,9.86117384 17.9708059,9.47740448 17.7082142,9.22106876 L14.3886837,6.37641211 Z" id="Shape-Copy-4" transform="translate(9.000000, 8.553393) scale(1, -1) translate(-9.000000, -8.553393) "></path>
|
|
Binary file
|
|
@@ -65,11 +65,11 @@ class Button extends Base {
|
|
|
65
65
|
.subscribe();
|
|
66
66
|
}
|
|
67
67
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.4", ngImport: i0, type: Button, deps: [{ token: i1.NzModalService }], target: i0.ɵɵFactoryTarget.Component });
|
|
68
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.3.4", type: Button, isStandalone: true, selector: "axis-button", usesInheritance: true, ngImport: i0, template: "<button [nzLoading]=\"loading()\" nz-button [nzSize]=\"options.size()\" [nzType]=\"options.styleType()\" nz-popconfirm\n [nzPopconfirmTitle]=\"options.confirmText()\"\n [nzCondition]=\"!(options.confirm() && options.confirmType() == 'pop' && !loading())\" (nzOnConfirm)=\"popConfirm()\"\n (click)=\"buttonClick()\" [disabled]=\"options.disabledBtn()\" [nzGhost]=\"options.ghost()\" [nzBlock]=\"options.block()\"\n [nzDanger]=\"options.danger()\" [nzShape]=\"options.shape()\"\n style=\"display: flex;gap:
|
|
68
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.3.4", type: Button, isStandalone: true, selector: "axis-button", usesInheritance: true, ngImport: i0, template: "<button [nzLoading]=\"loading()\" nz-button [nzSize]=\"options.size()\" [nzType]=\"options.styleType()\" nz-popconfirm\n [nzPopconfirmTitle]=\"options.confirmText()\"\n [nzCondition]=\"!(options.confirm() && options.confirmType() == 'pop' && !loading())\" (nzOnConfirm)=\"popConfirm()\"\n (click)=\"buttonClick()\" [disabled]=\"options.disabledBtn()\" [nzGhost]=\"options.ghost()\" [nzBlock]=\"options.block()\"\n [nzDanger]=\"options.danger()\" [nzShape]=\"options.shape()\"\n style=\"display: flex;gap:4px;align-items: center;justify-content: center;\"\n [style.flex-direction]=\"options.iconPosition()=='left'?'row':'row-reverse'\">\n <ng-container [axisDynamic]=\"options.icon()\"></ng-container>\n @if (options.title()) {\n {{options.title()}}\n }\n</button>", styles: [":host{display:block}\n"], dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "directive", type: DynamicDirective, selector: "[axisDynamic]", inputs: ["axisDynamic", "standalone", "isDesign"], outputs: ["onRegisteValueAccess"], exportAs: ["axisDynamic"] }, { kind: "ngmodule", type: NzButtonModule }, { kind: "component", type: i2.NzButtonComponent, selector: "button[nz-button], a[nz-button]", inputs: ["nzBlock", "nzGhost", "nzSearch", "nzLoading", "nzDanger", "disabled", "tabIndex", "nzType", "nzShape", "nzSize"], exportAs: ["nzButton"] }, { kind: "directive", type: i3.ɵ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: "directive", type: i4.NzWaveDirective, selector: "[nz-wave],button[nz-button]:not([nzType=\"link\"]):not([nzType=\"text\"])", inputs: ["nzWaveExtraNode"], exportAs: ["nzWave"] }, { kind: "ngmodule", type: NzPopconfirmModule }, { kind: "directive", type: i5.NzPopconfirmDirective, selector: "[nz-popconfirm]", inputs: ["nzPopconfirmArrowPointAtCenter", "nzPopconfirmTitle", "nzPopconfirmTitleContext", "nz-popconfirm", "nzPopconfirmTrigger", "nzPopconfirmPlacement", "nzPopconfirmOrigin", "nzPopconfirmMouseEnterDelay", "nzPopconfirmMouseLeaveDelay", "nzPopconfirmOverlayClassName", "nzPopconfirmOverlayStyle", "nzPopconfirmVisible", "nzBeforeConfirm", "nzIcon", "nzCondition", "nzPopconfirmShowArrow", "nzPopconfirmBackdrop", "nzAutofocus", "nzOkText", "nzOkType", "nzCancelText", "nzOkButtonProps", "nzCancelButtonProps", "nzOkDisabled", "nzOkDanger"], outputs: ["nzPopconfirmVisibleChange", "nzOnCancel", "nzOnConfirm"], exportAs: ["nzPopconfirm"] }, { kind: "ngmodule", type: NzModalModule }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
69
69
|
}
|
|
70
70
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.4", ngImport: i0, type: Button, decorators: [{
|
|
71
71
|
type: Component,
|
|
72
|
-
args: [{ selector: 'axis-button', imports: [CommonModule, DynamicDirective, NzButtonModule, NzPopconfirmModule, NzModalModule], changeDetection: ChangeDetectionStrategy.OnPush, template: "<button [nzLoading]=\"loading()\" nz-button [nzSize]=\"options.size()\" [nzType]=\"options.styleType()\" nz-popconfirm\n [nzPopconfirmTitle]=\"options.confirmText()\"\n [nzCondition]=\"!(options.confirm() && options.confirmType() == 'pop' && !loading())\" (nzOnConfirm)=\"popConfirm()\"\n (click)=\"buttonClick()\" [disabled]=\"options.disabledBtn()\" [nzGhost]=\"options.ghost()\" [nzBlock]=\"options.block()\"\n [nzDanger]=\"options.danger()\" [nzShape]=\"options.shape()\"\n style=\"display: flex;gap:
|
|
72
|
+
args: [{ selector: 'axis-button', imports: [CommonModule, DynamicDirective, NzButtonModule, NzPopconfirmModule, NzModalModule], changeDetection: ChangeDetectionStrategy.OnPush, template: "<button [nzLoading]=\"loading()\" nz-button [nzSize]=\"options.size()\" [nzType]=\"options.styleType()\" nz-popconfirm\n [nzPopconfirmTitle]=\"options.confirmText()\"\n [nzCondition]=\"!(options.confirm() && options.confirmType() == 'pop' && !loading())\" (nzOnConfirm)=\"popConfirm()\"\n (click)=\"buttonClick()\" [disabled]=\"options.disabledBtn()\" [nzGhost]=\"options.ghost()\" [nzBlock]=\"options.block()\"\n [nzDanger]=\"options.danger()\" [nzShape]=\"options.shape()\"\n style=\"display: flex;gap:4px;align-items: center;justify-content: center;\"\n [style.flex-direction]=\"options.iconPosition()=='left'?'row':'row-reverse'\">\n <ng-container [axisDynamic]=\"options.icon()\"></ng-container>\n @if (options.title()) {\n {{options.title()}}\n }\n</button>", styles: [":host{display:block}\n"] }]
|
|
73
73
|
}], ctorParameters: () => [{ type: i1.NzModalService }] });
|
|
74
74
|
|
|
75
75
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ngx-axis-appforge-axis-components-button.mjs","sources":["../../../axis-components/button/button.options.ts","../../../axis-components/button/button.ts","../../../axis-components/button/button.html","../../../axis-components/button/ngx-axis-appforge-axis-components-button.ts"],"sourcesContent":["import { signal } from \"@angular/core\";\nimport { BaseOptions } from \"ngx-axis-appforge/core\";\n\nexport class ButtonOptions extends BaseOptions {\n readonly title = signal<string>(\"\");\n readonly icon = signal<any>(undefined);\n readonly iconPosition = signal<\"left\" | \"right\">(\"left\");\n readonly confirm = signal<boolean>(false);\n readonly confirmType = signal<\"modal\" | \"pop\">(\"modal\");\n readonly confirmText = signal<string>(\"是否确认?\");\n readonly disabledBtn = signal<boolean>(false);\n readonly styleType = signal<\"default\" | \"primary\" | \"dashed\" | \"link\" | \"text\">(\"default\");\n readonly ghost = signal<boolean>(false);\n readonly size = signal<\"large\" | \"small\" | \"default\">(\"default\");\n readonly block = signal<boolean>(false);\n readonly danger = signal<boolean>(false);\n readonly shape = signal<null | \"circle\" | \"round\">(null);\n}","import { ChangeDetectionStrategy, Component, signal } from '@angular/core';\nimport { ButtonOptions } from './button.options';\nimport { NzButtonModule } from 'ng-zorro-antd/button';\nimport { CommonModule } from '@angular/common';\nimport { NzPopconfirmModule } from 'ng-zorro-antd/popconfirm';\nimport { DynamicDirective, Base } from 'ngx-axis-appforge/core';\nimport { finalize } from 'rxjs';\nimport { NzModalModule, NzModalService } from 'ng-zorro-antd/modal';\n\n@Component({\n selector: 'axis-button',\n imports: [CommonModule, DynamicDirective, NzButtonModule, NzPopconfirmModule, NzModalModule],\n templateUrl: './button.html',\n styleUrl: './button.css',\n changeDetection: ChangeDetectionStrategy.OnPush,\n})\nexport class Button extends Base<ButtonOptions> {\n\n constructor(private modal: NzModalService) {\n super();\n }\n\n override options: ButtonOptions = new ButtonOptions();\n\n loading = signal(false);\n\n buttonClick() {\n if (this.loading()) {\n return;\n }\n if (this.options.confirm() && this.options.confirmType() == \"modal\") {\n this.modal.confirm({\n nzContent: this.options.confirmText(),\n nzMaskClosable: true,\n nzOnOk: () => {\n this.doSomething();\n }\n })\n } else if (!this.options.confirm()) {\n this.doSomething();\n }\n }\n\n popConfirm() {\n if (this.options.confirm() && this.options.confirmType() == \"pop\") {\n this.doSomething();\n }\n }\n\n doSomething() {\n this.loading.set(true);\n this.triggeEvents(\"buttonClick\")\n .pipe(finalize(() => this.loading.set(false)))\n .subscribe();\n }\n\n}\n","<button [nzLoading]=\"loading()\" nz-button [nzSize]=\"options.size()\" [nzType]=\"options.styleType()\" nz-popconfirm\n [nzPopconfirmTitle]=\"options.confirmText()\"\n [nzCondition]=\"!(options.confirm() && options.confirmType() == 'pop' && !loading())\" (nzOnConfirm)=\"popConfirm()\"\n (click)=\"buttonClick()\" [disabled]=\"options.disabledBtn()\" [nzGhost]=\"options.ghost()\" [nzBlock]=\"options.block()\"\n [nzDanger]=\"options.danger()\" [nzShape]=\"options.shape()\"\n style=\"display: flex;gap:
|
|
1
|
+
{"version":3,"file":"ngx-axis-appforge-axis-components-button.mjs","sources":["../../../axis-components/button/button.options.ts","../../../axis-components/button/button.ts","../../../axis-components/button/button.html","../../../axis-components/button/ngx-axis-appforge-axis-components-button.ts"],"sourcesContent":["import { signal } from \"@angular/core\";\nimport { BaseOptions } from \"ngx-axis-appforge/core\";\n\nexport class ButtonOptions extends BaseOptions {\n readonly title = signal<string>(\"\");\n readonly icon = signal<any>(undefined);\n readonly iconPosition = signal<\"left\" | \"right\">(\"left\");\n readonly confirm = signal<boolean>(false);\n readonly confirmType = signal<\"modal\" | \"pop\">(\"modal\");\n readonly confirmText = signal<string>(\"是否确认?\");\n readonly disabledBtn = signal<boolean>(false);\n readonly styleType = signal<\"default\" | \"primary\" | \"dashed\" | \"link\" | \"text\">(\"default\");\n readonly ghost = signal<boolean>(false);\n readonly size = signal<\"large\" | \"small\" | \"default\">(\"default\");\n readonly block = signal<boolean>(false);\n readonly danger = signal<boolean>(false);\n readonly shape = signal<null | \"circle\" | \"round\">(null);\n}","import { ChangeDetectionStrategy, Component, signal } from '@angular/core';\nimport { ButtonOptions } from './button.options';\nimport { NzButtonModule } from 'ng-zorro-antd/button';\nimport { CommonModule } from '@angular/common';\nimport { NzPopconfirmModule } from 'ng-zorro-antd/popconfirm';\nimport { DynamicDirective, Base } from 'ngx-axis-appforge/core';\nimport { finalize } from 'rxjs';\nimport { NzModalModule, NzModalService } from 'ng-zorro-antd/modal';\n\n@Component({\n selector: 'axis-button',\n imports: [CommonModule, DynamicDirective, NzButtonModule, NzPopconfirmModule, NzModalModule],\n templateUrl: './button.html',\n styleUrl: './button.css',\n changeDetection: ChangeDetectionStrategy.OnPush,\n})\nexport class Button extends Base<ButtonOptions> {\n\n constructor(private modal: NzModalService) {\n super();\n }\n\n override options: ButtonOptions = new ButtonOptions();\n\n loading = signal(false);\n\n buttonClick() {\n if (this.loading()) {\n return;\n }\n if (this.options.confirm() && this.options.confirmType() == \"modal\") {\n this.modal.confirm({\n nzContent: this.options.confirmText(),\n nzMaskClosable: true,\n nzOnOk: () => {\n this.doSomething();\n }\n })\n } else if (!this.options.confirm()) {\n this.doSomething();\n }\n }\n\n popConfirm() {\n if (this.options.confirm() && this.options.confirmType() == \"pop\") {\n this.doSomething();\n }\n }\n\n doSomething() {\n this.loading.set(true);\n this.triggeEvents(\"buttonClick\")\n .pipe(finalize(() => this.loading.set(false)))\n .subscribe();\n }\n\n}\n","<button [nzLoading]=\"loading()\" nz-button [nzSize]=\"options.size()\" [nzType]=\"options.styleType()\" nz-popconfirm\n [nzPopconfirmTitle]=\"options.confirmText()\"\n [nzCondition]=\"!(options.confirm() && options.confirmType() == 'pop' && !loading())\" (nzOnConfirm)=\"popConfirm()\"\n (click)=\"buttonClick()\" [disabled]=\"options.disabledBtn()\" [nzGhost]=\"options.ghost()\" [nzBlock]=\"options.block()\"\n [nzDanger]=\"options.danger()\" [nzShape]=\"options.shape()\"\n style=\"display: flex;gap:4px;align-items: center;justify-content: center;\"\n [style.flex-direction]=\"options.iconPosition()=='left'?'row':'row-reverse'\">\n <ng-container [axisDynamic]=\"options.icon()\"></ng-container>\n @if (options.title()) {\n {{options.title()}}\n }\n</button>","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './button';\n"],"names":[],"mappings":";;;;;;;;;;;;;;AAGM,MAAO,aAAc,SAAQ,WAAW,CAAA;AACjC,IAAA,KAAK,GAAG,MAAM,CAAS,EAAE,iDAAC;AAC1B,IAAA,IAAI,GAAG,MAAM,CAAM,SAAS,gDAAC;AAC7B,IAAA,YAAY,GAAG,MAAM,CAAmB,MAAM,wDAAC;AAC/C,IAAA,OAAO,GAAG,MAAM,CAAU,KAAK,mDAAC;AAChC,IAAA,WAAW,GAAG,MAAM,CAAkB,OAAO,uDAAC;AAC9C,IAAA,WAAW,GAAG,MAAM,CAAS,OAAO,uDAAC;AACrC,IAAA,WAAW,GAAG,MAAM,CAAU,KAAK,uDAAC;AACpC,IAAA,SAAS,GAAG,MAAM,CAAqD,SAAS,qDAAC;AACjF,IAAA,K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EAAA,MAAA,EAAA,CAAA,wBAAA,CAAA,EAAA;;;AEdjD;;AAEG;;;;"}
|
|
@@ -1170,7 +1170,7 @@ class ShortcutKey {
|
|
|
1170
1170
|
}
|
|
1171
1171
|
cutNodeIds;
|
|
1172
1172
|
onKeyPress(e) {
|
|
1173
|
-
const isInput = e.target.matches('input:not([disabled]), textarea:not([disabled])');
|
|
1173
|
+
const isInput = e.target.matches('input:not([disabled]), textarea:not([disabled]), [contenteditable="true"]');
|
|
1174
1174
|
if (isInput) {
|
|
1175
1175
|
return;
|
|
1176
1176
|
}
|