@agile-team/mach-table-vue 0.5.0 → 0.14.0
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/LICENSE +110 -21
- package/README.md +72 -7
- package/dist/MachTable-BRFSPNPU.js +2 -0
- package/dist/MachTable-DH0offab.d.cts +34 -0
- package/dist/MachTable-DH0offab.d.ts +34 -0
- package/dist/MachTable-QMK4VFAQ.cjs +2 -0
- package/dist/MachTable-QMK4VFAQ.cjs.map +1 -0
- package/dist/MachTableToolbar-CDkTtitl.d.cts +97 -0
- package/dist/MachTableToolbar-CDkTtitl.d.ts +97 -0
- package/dist/async.cjs +1 -22
- package/dist/async.cjs.map +1 -1
- package/dist/async.d.cts +21 -7
- package/dist/async.d.ts +21 -7
- package/dist/async.js +1 -22
- package/dist/async.js.map +1 -1
- package/dist/chunk-2PKCB3CZ.js +2 -0
- package/dist/chunk-2PKCB3CZ.js.map +1 -0
- package/dist/chunk-4SM5YZDC.js +2 -0
- package/dist/chunk-4SM5YZDC.js.map +1 -0
- package/dist/chunk-6WNTYC5G.js +2 -0
- package/dist/chunk-6WNTYC5G.js.map +1 -0
- package/dist/chunk-C7C5I2H4.cjs +2 -0
- package/dist/chunk-C7C5I2H4.cjs.map +1 -0
- package/dist/chunk-H75IY5SP.js +2 -0
- package/dist/chunk-H75IY5SP.js.map +1 -0
- package/dist/chunk-L6HN564Y.cjs +2 -0
- package/dist/chunk-L6HN564Y.cjs.map +1 -0
- package/dist/chunk-OMEMLONJ.cjs +2 -0
- package/dist/chunk-OMEMLONJ.cjs.map +1 -0
- package/dist/chunk-YN3M2NPO.cjs +2 -0
- package/dist/chunk-YN3M2NPO.cjs.map +1 -0
- package/dist/editors.cjs +2 -0
- package/dist/editors.cjs.map +1 -0
- package/dist/editors.d.cts +34 -0
- package/dist/editors.d.ts +34 -0
- package/dist/editors.js +2 -0
- package/dist/editors.js.map +1 -0
- package/dist/globalRegistration-BhAR-B5k.d.cts +19 -0
- package/dist/globalRegistration-DTWLNxPI.d.ts +19 -0
- package/dist/index.cjs +1 -110
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +56 -12
- package/dist/index.d.ts +56 -12
- package/dist/index.js +1 -110
- package/dist/index.js.map +1 -1
- package/dist/mach-table.css +517 -3
- package/dist/ui.cjs +2 -0
- package/dist/ui.cjs.map +1 -0
- package/dist/ui.d.cts +10 -0
- package/dist/ui.d.ts +10 -0
- package/dist/ui.js +2 -0
- package/dist/ui.js.map +1 -0
- package/dist/workflows-BXccx4zn.d.cts +136 -0
- package/dist/workflows-CvAptGOH.d.ts +136 -0
- package/dist/workflows.cjs +2 -0
- package/dist/workflows.cjs.map +1 -0
- package/dist/workflows.d.cts +4 -0
- package/dist/workflows.d.ts +4 -0
- package/dist/workflows.js +2 -0
- package/dist/workflows.js.map +1 -0
- package/package.json +34 -4
- package/dist/RobotGrid-2KWWM4C4.js +0 -7
- package/dist/RobotGrid-LELHEO4W.cjs +0 -7
- package/dist/RobotGrid-LELHEO4W.cjs.map +0 -1
- package/dist/chunk-345ZEGIE.cjs +0 -21
- package/dist/chunk-345ZEGIE.cjs.map +0 -1
- package/dist/chunk-CHEQLQW4.js +0 -78
- package/dist/chunk-CHEQLQW4.js.map +0 -1
- package/dist/chunk-JJQDDIQU.js +0 -21
- package/dist/chunk-JJQDDIQU.js.map +0 -1
- package/dist/chunk-S3NR7DIG.cjs +0 -78
- package/dist/chunk-S3NR7DIG.cjs.map +0 -1
- package/dist/globalRegistration-CQ2dTNzy.d.cts +0 -25
- package/dist/globalRegistration-CQ2dTNzy.d.ts +0 -25
- /package/dist/{RobotGrid-2KWWM4C4.js.map → MachTable-BRFSPNPU.js.map} +0 -0
package/LICENSE
CHANGED
|
@@ -1,21 +1,110 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
Copyright (c) 2026
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
1
|
+
MachTable Source-Available License 1.0
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026 ChenyCHENYU (Agile Team). All rights reserved.
|
|
4
|
+
|
|
5
|
+
IMPORTANT: The source code is publicly visible for review, but it is not
|
|
6
|
+
open-source software as defined by the Open Source Initiative. Except for the
|
|
7
|
+
limited inspection permission below, no permission is granted unless the
|
|
8
|
+
copyright holder gives you prior written authorization.
|
|
9
|
+
|
|
10
|
+
1. Definitions
|
|
11
|
+
|
|
12
|
+
"Software" means MachTable and all source code, object code, packages,
|
|
13
|
+
documentation, examples, designs, assets, and other materials distributed with
|
|
14
|
+
this license.
|
|
15
|
+
|
|
16
|
+
"Licensor" means ChenyCHENYU (Agile Team), the copyright holder of the
|
|
17
|
+
Software.
|
|
18
|
+
|
|
19
|
+
"Written Authorization" means a durable written permission issued directly by
|
|
20
|
+
the Licensor that identifies the licensee and the permitted scope, purpose,
|
|
21
|
+
environment, term, and any other applicable conditions.
|
|
22
|
+
|
|
23
|
+
2. Limited Inspection Permission
|
|
24
|
+
|
|
25
|
+
You may view the Software on the repository hosting service solely to inspect
|
|
26
|
+
and evaluate it, to link to its public repository, to discuss it, and to submit
|
|
27
|
+
good-faith issue reports. This limited permission does not include permission
|
|
28
|
+
to use, run, build, compile, copy, download for reuse, install, integrate,
|
|
29
|
+
modify, create derivative works from, deploy, distribute, sublicense, sell,
|
|
30
|
+
lease, provide as a service, or otherwise exploit the Software.
|
|
31
|
+
|
|
32
|
+
3. Authorization Required
|
|
33
|
+
|
|
34
|
+
Any use beyond Section 2 requires the Licensor's prior Written Authorization.
|
|
35
|
+
This requirement applies to personal, educational, research, governmental,
|
|
36
|
+
non-profit, internal, evaluation, testing, development, staging, production,
|
|
37
|
+
and commercial use. Possession of a copy, cloning the repository, downloading
|
|
38
|
+
an npm package, receiving the Software from another person, or submitting a
|
|
39
|
+
contribution does not grant any additional rights.
|
|
40
|
+
|
|
41
|
+
The Licensor may grant separate commercial or non-commercial terms in a
|
|
42
|
+
written agreement. If such an agreement conflicts with this license, that
|
|
43
|
+
agreement controls only for the licensee and scope identified in it.
|
|
44
|
+
|
|
45
|
+
4. Restrictions
|
|
46
|
+
|
|
47
|
+
Without prior Written Authorization, you must not, directly or indirectly:
|
|
48
|
+
|
|
49
|
+
a. use, execute, build, compile, install, test, or integrate the Software;
|
|
50
|
+
b. copy, reproduce, modify, adapt, translate, or create derivative works;
|
|
51
|
+
c. publish, distribute, sublicense, sell, rent, lease, transfer, host, or make
|
|
52
|
+
the Software available to any third party;
|
|
53
|
+
d. use the Software to provide a hosted, managed, consulting, outsourcing,
|
|
54
|
+
software-as-a-service, or other service;
|
|
55
|
+
e. remove or alter copyright, authorization, trademark, attribution, or other
|
|
56
|
+
proprietary notices; or
|
|
57
|
+
f. represent the Software as open source or represent that you have received
|
|
58
|
+
authorization when you have not.
|
|
59
|
+
|
|
60
|
+
5. Contributions
|
|
61
|
+
|
|
62
|
+
Submitting a patch, pull request, code, documentation, design, or other
|
|
63
|
+
material to the project does not authorize you to use the Software. Unless a
|
|
64
|
+
separate written contributor agreement applies, by intentionally submitting a
|
|
65
|
+
contribution you represent that you have the right to submit it and grant the
|
|
66
|
+
Licensor a perpetual, worldwide, irrevocable, transferable, sublicensable,
|
|
67
|
+
royalty-free license to use, reproduce, modify, create derivative works from,
|
|
68
|
+
distribute, license, and relicense that contribution as part of the Software.
|
|
69
|
+
|
|
70
|
+
6. Ownership and Trademarks
|
|
71
|
+
|
|
72
|
+
The Software is licensed, not sold. The Licensor and applicable contributors
|
|
73
|
+
retain all right, title, and interest in the Software. No trademark, service
|
|
74
|
+
mark, trade name, logo, or branding rights are granted by this license.
|
|
75
|
+
|
|
76
|
+
7. Termination
|
|
77
|
+
|
|
78
|
+
Any permission granted under this license terminates automatically upon breach.
|
|
79
|
+
On termination, you must immediately stop all use and destroy all copies in
|
|
80
|
+
your possession or control, except where retention is required by law. Sections
|
|
81
|
+
4 through 9 survive termination.
|
|
82
|
+
|
|
83
|
+
8. Disclaimer
|
|
84
|
+
|
|
85
|
+
TO THE MAXIMUM EXTENT PERMITTED BY LAW, THE SOFTWARE IS PROVIDED "AS IS" AND
|
|
86
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING
|
|
87
|
+
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE, TITLE, AND
|
|
88
|
+
NON-INFRINGEMENT.
|
|
89
|
+
|
|
90
|
+
9. Limitation of Liability
|
|
91
|
+
|
|
92
|
+
TO THE MAXIMUM EXTENT PERMITTED BY LAW, THE LICENSOR AND CONTRIBUTORS WILL NOT
|
|
93
|
+
BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY,
|
|
94
|
+
CONSEQUENTIAL, OR OTHER DAMAGES, OR FOR LOSS OF DATA, PROFITS, REVENUE,
|
|
95
|
+
GOODWILL, OR BUSINESS INTERRUPTION, ARISING FROM OR RELATED TO THE SOFTWARE OR
|
|
96
|
+
THIS LICENSE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGES.
|
|
97
|
+
|
|
98
|
+
10. Contact and Authorization
|
|
99
|
+
|
|
100
|
+
See LICENSING.md in the repository for the authorization request process. No
|
|
101
|
+
request, discussion, issue, payment, or contribution constitutes authorization
|
|
102
|
+
unless and until the Licensor issues explicit Written Authorization.
|
|
103
|
+
|
|
104
|
+
中文说明(仅为阅读便利;如有冲突,以英文条款为准)
|
|
105
|
+
|
|
106
|
+
本项目源代码公开可查看,但不是 OSI 定义下的开源软件。除查看、链接、
|
|
107
|
+
讨论和善意提交问题外,任何个人、教育、研究、公益、政府、内部、测试、
|
|
108
|
+
开发、生产或商业用途,均须事先取得作者明确的书面授权。未经授权,不得
|
|
109
|
+
运行、构建、复制、修改、集成、部署、分发、转授权、销售、出租、托管或
|
|
110
|
+
以服务形式提供本软件。公开仓库、克隆代码或下载 npm 包不代表获得授权。
|
package/README.md
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
|
|
5
5
|
# @agile-team/mach-table-vue
|
|
6
6
|
|
|
7
|
-
Official Vue 3 adapter for MachTable. It provides `<MachTable
|
|
7
|
+
Official Vue 3 adapter for MachTable 0.14. It provides a generic `<MachTable>`, native typed slots, dedicated app/route configuration, cohesive controllers, auto/manual remote query, editing composables, an optional standard toolbar, optional Element Plus editors, async boundaries, atomic reactive updates and automatic lifecycle cleanup. `RobotGrid` remains a deprecated 0.x alias.
|
|
8
8
|
|
|
9
9
|
## Install
|
|
10
10
|
|
|
@@ -41,7 +41,8 @@ const columns: ColDef<Row>[] = [{ field: "name", headerName: "Name", flex: 1 }];
|
|
|
41
41
|
:ref="grid.ref"
|
|
42
42
|
:row-data="rows"
|
|
43
43
|
:column-defs="columns"
|
|
44
|
-
|
|
44
|
+
row-key="id"
|
|
45
|
+
state-key="customer-list"
|
|
45
46
|
striped-rows
|
|
46
47
|
/>
|
|
47
48
|
</div>
|
|
@@ -79,17 +80,81 @@ createApp(App).use(AsyncMachTablePlugin).mount("#app");
|
|
|
79
80
|
void preloadMachTable();
|
|
80
81
|
```
|
|
81
82
|
|
|
82
|
-
|
|
83
|
+
The standard toolbar is a separate, tree-shakeable entry. Register it globally only when needed:
|
|
83
84
|
|
|
84
85
|
```ts
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
86
|
+
import MachTableUiPlugin from "@agile-team/mach-table-vue/ui";
|
|
87
|
+
app.use(MachTableUiPlugin);
|
|
88
|
+
```
|
|
89
|
+
|
|
90
|
+
After either global plugin is installed, pages can use `<MachTable>` directly. Keep conventions in a dedicated `mach-table.config.ts`, then install it with one clean line:
|
|
91
|
+
|
|
92
|
+
```ts
|
|
93
|
+
// mach-table.config.ts
|
|
94
|
+
import { defineMachTableConfig, defineMachTablePreset } from "@agile-team/mach-table-vue";
|
|
95
|
+
export default defineMachTableConfig({
|
|
96
|
+
defaults: {
|
|
97
|
+
size: "compact",
|
|
98
|
+
pagination: { pageSize: 20, pageSizeOptions: [20, 50, 100] },
|
|
99
|
+
defaultColDef: { sortable: true, resizable: true, filter: true }
|
|
100
|
+
},
|
|
101
|
+
defaultPreset: "list",
|
|
102
|
+
presets: { list: defineMachTablePreset({ stripedRows: true }) }
|
|
88
103
|
});
|
|
104
|
+
|
|
105
|
+
// main.ts
|
|
106
|
+
app.use(MachTablePlugin, machTableConfig);
|
|
89
107
|
```
|
|
90
108
|
|
|
109
|
+
Layouts can reactively refine defaults and presets with `provideMachTableConfig(...)`; direct table props always win. `provideMachTableDefaults(...)` remains as a smaller compatibility API. The async plugin also accepts `asyncComponentOptions` with `loadingComponent`, `errorComponent`, `delay`, `timeout` and `onError`.
|
|
110
|
+
|
|
91
111
|
The adapter installs the matching `@agile-team/mach-table` core automatically and re-exports its complete API and types. Only `vue >= 3.2` remains a peer dependency supplied by the host application. Existing local imports remain fully supported.
|
|
92
112
|
|
|
113
|
+
Remote B-side lists can bind `useMachTableQuery()` directly. Use `mode: "auto"` for live filters or `mode: "manual"` for a submit-to-search form. For the smallest composable-only chunk, import query/editing/controller helpers from `@agile-team/mach-table-vue/workflows`. They own controlled server pagination, AbortSignal cancellation, stale-response protection, retry state and cross-page selection without exposing `gridApi` to ordinary pages.
|
|
114
|
+
|
|
115
|
+
`useMachTableController()` composes table readiness, query, editing, selection, errors and standard commands. Pair it with `MachTableToolbar` from `/ui`, or bind `controller.commands` to your own design-system toolbar.
|
|
116
|
+
|
|
117
|
+
Million-row batch actions use `selectionScope: "query"` and compact `allMatching + excludedKeys` rules, so clients never download every matching row ID.
|
|
118
|
+
|
|
119
|
+
`useMachTableEditing()` exposes reactive dirty changes, save state, partial batch success, rollback, failed-cell reveal and an optional unsaved-page guard. Semantic business types and cached dictionaries are configured once with `createBusinessColumnTypes()` and `createCachedDictionary()`.
|
|
120
|
+
|
|
121
|
+
Element Plus editors are optional and registered once without making EP a package dependency:
|
|
122
|
+
|
|
123
|
+
```ts
|
|
124
|
+
import { createElementPlusEditors } from "@agile-team/mach-table-vue/editors";
|
|
125
|
+
|
|
126
|
+
const ep = createElementPlusEditors({
|
|
127
|
+
input: ElInput,
|
|
128
|
+
inputNumber: ElInputNumber,
|
|
129
|
+
select: ElSelect,
|
|
130
|
+
datePicker: ElDatePicker
|
|
131
|
+
});
|
|
132
|
+
```
|
|
133
|
+
|
|
134
|
+
Use `api.openColumnWorkbench()` for the built-in column settings UI. Lazy trees opt in with `isTreeRowExpandable` plus `loadTreeChildren`; ordinary tree data is unchanged.
|
|
135
|
+
|
|
136
|
+
## Cell and full-row editing
|
|
137
|
+
|
|
138
|
+
Core helpers are re-exported, so no second package import is needed:
|
|
139
|
+
|
|
140
|
+
```vue
|
|
141
|
+
<script setup lang="ts">
|
|
142
|
+
import { rowActionsColumn } from "@agile-team/mach-table-vue";
|
|
143
|
+
|
|
144
|
+
const columns = [
|
|
145
|
+
{ field: "name", editable: true },
|
|
146
|
+
{ field: "age", editable: true, cellEditor: "number" },
|
|
147
|
+
rowActionsColumn({ onView, onDelete, overflow: "drawer" })
|
|
148
|
+
];
|
|
149
|
+
</script>
|
|
150
|
+
|
|
151
|
+
<template>
|
|
152
|
+
<MachTable edit-type="fullRow" :column-defs="columns" :row-data="rows" />
|
|
153
|
+
</template>
|
|
154
|
+
```
|
|
155
|
+
|
|
156
|
+
Cell mode is the default and provides a pencil plus inline confirm/cancel controls. Set `editable-indicator="always"`, `"hover"` or `"none"` to control the affordance.
|
|
157
|
+
|
|
93
158
|
Documentation: [Vue guide](https://github.com/ChenyCHENYU/MachTable/blob/main/docs/guide/vue.md) · [Enterprise integration](https://github.com/ChenyCHENYU/MachTable/blob/main/docs/guide/enterprise-integration.md) · [Element Plus](https://github.com/ChenyCHENYU/MachTable/blob/main/docs/guide/element-plus.md) · [Naive UI](https://github.com/ChenyCHENYU/MachTable/blob/main/docs/guide/naive-ui.md)
|
|
94
159
|
|
|
95
|
-
|
|
160
|
+
Source-available © ChenyCHENYU (Agile Team). Any use requires prior written authorization. See the [license](https://github.com/ChenyCHENYU/MachTable/blob/main/LICENSE) and [authorization process](https://github.com/ChenyCHENYU/MachTable/blob/main/LICENSING.md).
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import { DefineComponent } from 'vue';
|
|
2
|
+
import { GridOptions, MachTablePresetSelection, GridApi, MachTableOptionExplanation } from '@agile-team/mach-table';
|
|
3
|
+
|
|
4
|
+
type AdapterOnlyGridOption = "className" | "ariaLabel" | "ariaLabelledBy" | "ariaDescribedBy";
|
|
5
|
+
type MachTableVueProps<TData = any> = Omit<GridOptions<TData>, AdapterOnlyGridOption> & {
|
|
6
|
+
/** Named application preset(s). Explicit table props still win. */
|
|
7
|
+
preset?: MachTablePresetSelection;
|
|
8
|
+
/** CSS class applied to the Vue host element. */
|
|
9
|
+
className?: string;
|
|
10
|
+
/** CSS class forwarded to MachTable's inner grid root. */
|
|
11
|
+
gridClassName?: string;
|
|
12
|
+
/** Accessible name forwarded to MachTable's inner role=grid element. */
|
|
13
|
+
gridAriaLabel?: string;
|
|
14
|
+
gridAriaLabelledBy?: string;
|
|
15
|
+
gridAriaDescribedBy?: string;
|
|
16
|
+
};
|
|
17
|
+
interface MachTableVueExposed<TData = any> {
|
|
18
|
+
getApi(): GridApi<TData> | null;
|
|
19
|
+
getResolvedConfig(): GridOptions<TData>;
|
|
20
|
+
explainOption(key: keyof GridOptions<TData> | string): MachTableOptionExplanation;
|
|
21
|
+
}
|
|
22
|
+
interface MachTableVueComponent extends DefineComponent<MachTableVueProps<any>> {
|
|
23
|
+
new <TData = any>(): {
|
|
24
|
+
$props: MachTableVueProps<TData>;
|
|
25
|
+
$exposed: MachTableVueExposed<TData>;
|
|
26
|
+
};
|
|
27
|
+
}
|
|
28
|
+
declare const MachTable: MachTableVueComponent;
|
|
29
|
+
/** @deprecated Use MachTable. Kept as a source-compatible alias through 0.x. */
|
|
30
|
+
declare const RobotGrid: MachTableVueComponent;
|
|
31
|
+
/** @deprecated Use MachTableVueProps. */
|
|
32
|
+
type RobotGridVueProps<TData = any> = MachTableVueProps<TData>;
|
|
33
|
+
|
|
34
|
+
export { type MachTableVueComponent as M, RobotGrid as R, MachTable as a, type MachTableVueExposed as b, type MachTableVueProps as c, type RobotGridVueProps as d };
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import { DefineComponent } from 'vue';
|
|
2
|
+
import { GridOptions, MachTablePresetSelection, GridApi, MachTableOptionExplanation } from '@agile-team/mach-table';
|
|
3
|
+
|
|
4
|
+
type AdapterOnlyGridOption = "className" | "ariaLabel" | "ariaLabelledBy" | "ariaDescribedBy";
|
|
5
|
+
type MachTableVueProps<TData = any> = Omit<GridOptions<TData>, AdapterOnlyGridOption> & {
|
|
6
|
+
/** Named application preset(s). Explicit table props still win. */
|
|
7
|
+
preset?: MachTablePresetSelection;
|
|
8
|
+
/** CSS class applied to the Vue host element. */
|
|
9
|
+
className?: string;
|
|
10
|
+
/** CSS class forwarded to MachTable's inner grid root. */
|
|
11
|
+
gridClassName?: string;
|
|
12
|
+
/** Accessible name forwarded to MachTable's inner role=grid element. */
|
|
13
|
+
gridAriaLabel?: string;
|
|
14
|
+
gridAriaLabelledBy?: string;
|
|
15
|
+
gridAriaDescribedBy?: string;
|
|
16
|
+
};
|
|
17
|
+
interface MachTableVueExposed<TData = any> {
|
|
18
|
+
getApi(): GridApi<TData> | null;
|
|
19
|
+
getResolvedConfig(): GridOptions<TData>;
|
|
20
|
+
explainOption(key: keyof GridOptions<TData> | string): MachTableOptionExplanation;
|
|
21
|
+
}
|
|
22
|
+
interface MachTableVueComponent extends DefineComponent<MachTableVueProps<any>> {
|
|
23
|
+
new <TData = any>(): {
|
|
24
|
+
$props: MachTableVueProps<TData>;
|
|
25
|
+
$exposed: MachTableVueExposed<TData>;
|
|
26
|
+
};
|
|
27
|
+
}
|
|
28
|
+
declare const MachTable: MachTableVueComponent;
|
|
29
|
+
/** @deprecated Use MachTable. Kept as a source-compatible alias through 0.x. */
|
|
30
|
+
declare const RobotGrid: MachTableVueComponent;
|
|
31
|
+
/** @deprecated Use MachTableVueProps. */
|
|
32
|
+
type RobotGridVueProps<TData = any> = MachTableVueProps<TData>;
|
|
33
|
+
|
|
34
|
+
export { type MachTableVueComponent as M, RobotGrid as R, MachTable as a, type MachTableVueExposed as b, type MachTableVueProps as c, type RobotGridVueProps as d };
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports, "__esModule", {value: true});var _chunkC7C5I2H4cjs = require('./chunk-C7C5I2H4.cjs');require('./chunk-OMEMLONJ.cjs');exports.MachTable = _chunkC7C5I2H4cjs.j; exports.RobotGrid = _chunkC7C5I2H4cjs.k;
|
|
2
|
+
//# sourceMappingURL=MachTable-QMK4VFAQ.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["d:\\office-project\\wl\\MachTable\\packages\\vue\\dist\\MachTable-QMK4VFAQ.cjs"],"names":[],"mappings":"AAAA,iIAA+C,gCAA6B,iFAAsC","file":"D:\\office-project\\wl\\MachTable\\packages\\vue\\dist\\MachTable-QMK4VFAQ.cjs"}
|
|
@@ -0,0 +1,97 @@
|
|
|
1
|
+
import * as vue from 'vue';
|
|
2
|
+
import { PropType } from 'vue';
|
|
3
|
+
import { GridApi, MachTableCommands } from '@agile-team/mach-table';
|
|
4
|
+
|
|
5
|
+
interface MachTableToolbarFeatures {
|
|
6
|
+
search?: boolean;
|
|
7
|
+
refresh?: boolean;
|
|
8
|
+
columns?: boolean;
|
|
9
|
+
density?: boolean;
|
|
10
|
+
export?: boolean;
|
|
11
|
+
undoRedo?: boolean;
|
|
12
|
+
fullscreen?: boolean;
|
|
13
|
+
}
|
|
14
|
+
declare const MachTableToolbar: vue.DefineComponent<vue.ExtractPropTypes<{
|
|
15
|
+
api: {
|
|
16
|
+
type: PropType<GridApi<any> | null>;
|
|
17
|
+
default: null;
|
|
18
|
+
};
|
|
19
|
+
commands: {
|
|
20
|
+
type: PropType<MachTableCommands | null>;
|
|
21
|
+
default: null;
|
|
22
|
+
};
|
|
23
|
+
modelValue: {
|
|
24
|
+
type: StringConstructor;
|
|
25
|
+
default: string;
|
|
26
|
+
};
|
|
27
|
+
loading: {
|
|
28
|
+
type: BooleanConstructor;
|
|
29
|
+
default: boolean;
|
|
30
|
+
};
|
|
31
|
+
selectedCount: {
|
|
32
|
+
type: NumberConstructor;
|
|
33
|
+
default: number;
|
|
34
|
+
};
|
|
35
|
+
searchPlaceholder: {
|
|
36
|
+
type: StringConstructor;
|
|
37
|
+
default: string;
|
|
38
|
+
};
|
|
39
|
+
exportFilename: {
|
|
40
|
+
type: StringConstructor;
|
|
41
|
+
default: string;
|
|
42
|
+
};
|
|
43
|
+
features: {
|
|
44
|
+
type: PropType<MachTableToolbarFeatures>;
|
|
45
|
+
default: () => {};
|
|
46
|
+
};
|
|
47
|
+
}>, () => vue.VNode<vue.RendererNode, vue.RendererElement, {
|
|
48
|
+
[key: string]: any;
|
|
49
|
+
}>, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, ("refresh" | "update:modelValue" | "clearSelection")[], "refresh" | "update:modelValue" | "clearSelection", vue.PublicProps, Readonly<vue.ExtractPropTypes<{
|
|
50
|
+
api: {
|
|
51
|
+
type: PropType<GridApi<any> | null>;
|
|
52
|
+
default: null;
|
|
53
|
+
};
|
|
54
|
+
commands: {
|
|
55
|
+
type: PropType<MachTableCommands | null>;
|
|
56
|
+
default: null;
|
|
57
|
+
};
|
|
58
|
+
modelValue: {
|
|
59
|
+
type: StringConstructor;
|
|
60
|
+
default: string;
|
|
61
|
+
};
|
|
62
|
+
loading: {
|
|
63
|
+
type: BooleanConstructor;
|
|
64
|
+
default: boolean;
|
|
65
|
+
};
|
|
66
|
+
selectedCount: {
|
|
67
|
+
type: NumberConstructor;
|
|
68
|
+
default: number;
|
|
69
|
+
};
|
|
70
|
+
searchPlaceholder: {
|
|
71
|
+
type: StringConstructor;
|
|
72
|
+
default: string;
|
|
73
|
+
};
|
|
74
|
+
exportFilename: {
|
|
75
|
+
type: StringConstructor;
|
|
76
|
+
default: string;
|
|
77
|
+
};
|
|
78
|
+
features: {
|
|
79
|
+
type: PropType<MachTableToolbarFeatures>;
|
|
80
|
+
default: () => {};
|
|
81
|
+
};
|
|
82
|
+
}>> & Readonly<{
|
|
83
|
+
onRefresh?: ((...args: any[]) => any) | undefined;
|
|
84
|
+
"onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
|
|
85
|
+
onClearSelection?: ((...args: any[]) => any) | undefined;
|
|
86
|
+
}>, {
|
|
87
|
+
features: MachTableToolbarFeatures;
|
|
88
|
+
loading: boolean;
|
|
89
|
+
selectedCount: number;
|
|
90
|
+
api: GridApi<any> | null;
|
|
91
|
+
commands: MachTableCommands | null;
|
|
92
|
+
modelValue: string;
|
|
93
|
+
searchPlaceholder: string;
|
|
94
|
+
exportFilename: string;
|
|
95
|
+
}, {}, {}, {}, string, vue.ComponentProvideOptions, true, {}, any>;
|
|
96
|
+
|
|
97
|
+
export { MachTableToolbar as M, type MachTableToolbarFeatures as a };
|
|
@@ -0,0 +1,97 @@
|
|
|
1
|
+
import * as vue from 'vue';
|
|
2
|
+
import { PropType } from 'vue';
|
|
3
|
+
import { GridApi, MachTableCommands } from '@agile-team/mach-table';
|
|
4
|
+
|
|
5
|
+
interface MachTableToolbarFeatures {
|
|
6
|
+
search?: boolean;
|
|
7
|
+
refresh?: boolean;
|
|
8
|
+
columns?: boolean;
|
|
9
|
+
density?: boolean;
|
|
10
|
+
export?: boolean;
|
|
11
|
+
undoRedo?: boolean;
|
|
12
|
+
fullscreen?: boolean;
|
|
13
|
+
}
|
|
14
|
+
declare const MachTableToolbar: vue.DefineComponent<vue.ExtractPropTypes<{
|
|
15
|
+
api: {
|
|
16
|
+
type: PropType<GridApi<any> | null>;
|
|
17
|
+
default: null;
|
|
18
|
+
};
|
|
19
|
+
commands: {
|
|
20
|
+
type: PropType<MachTableCommands | null>;
|
|
21
|
+
default: null;
|
|
22
|
+
};
|
|
23
|
+
modelValue: {
|
|
24
|
+
type: StringConstructor;
|
|
25
|
+
default: string;
|
|
26
|
+
};
|
|
27
|
+
loading: {
|
|
28
|
+
type: BooleanConstructor;
|
|
29
|
+
default: boolean;
|
|
30
|
+
};
|
|
31
|
+
selectedCount: {
|
|
32
|
+
type: NumberConstructor;
|
|
33
|
+
default: number;
|
|
34
|
+
};
|
|
35
|
+
searchPlaceholder: {
|
|
36
|
+
type: StringConstructor;
|
|
37
|
+
default: string;
|
|
38
|
+
};
|
|
39
|
+
exportFilename: {
|
|
40
|
+
type: StringConstructor;
|
|
41
|
+
default: string;
|
|
42
|
+
};
|
|
43
|
+
features: {
|
|
44
|
+
type: PropType<MachTableToolbarFeatures>;
|
|
45
|
+
default: () => {};
|
|
46
|
+
};
|
|
47
|
+
}>, () => vue.VNode<vue.RendererNode, vue.RendererElement, {
|
|
48
|
+
[key: string]: any;
|
|
49
|
+
}>, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, ("refresh" | "update:modelValue" | "clearSelection")[], "refresh" | "update:modelValue" | "clearSelection", vue.PublicProps, Readonly<vue.ExtractPropTypes<{
|
|
50
|
+
api: {
|
|
51
|
+
type: PropType<GridApi<any> | null>;
|
|
52
|
+
default: null;
|
|
53
|
+
};
|
|
54
|
+
commands: {
|
|
55
|
+
type: PropType<MachTableCommands | null>;
|
|
56
|
+
default: null;
|
|
57
|
+
};
|
|
58
|
+
modelValue: {
|
|
59
|
+
type: StringConstructor;
|
|
60
|
+
default: string;
|
|
61
|
+
};
|
|
62
|
+
loading: {
|
|
63
|
+
type: BooleanConstructor;
|
|
64
|
+
default: boolean;
|
|
65
|
+
};
|
|
66
|
+
selectedCount: {
|
|
67
|
+
type: NumberConstructor;
|
|
68
|
+
default: number;
|
|
69
|
+
};
|
|
70
|
+
searchPlaceholder: {
|
|
71
|
+
type: StringConstructor;
|
|
72
|
+
default: string;
|
|
73
|
+
};
|
|
74
|
+
exportFilename: {
|
|
75
|
+
type: StringConstructor;
|
|
76
|
+
default: string;
|
|
77
|
+
};
|
|
78
|
+
features: {
|
|
79
|
+
type: PropType<MachTableToolbarFeatures>;
|
|
80
|
+
default: () => {};
|
|
81
|
+
};
|
|
82
|
+
}>> & Readonly<{
|
|
83
|
+
onRefresh?: ((...args: any[]) => any) | undefined;
|
|
84
|
+
"onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
|
|
85
|
+
onClearSelection?: ((...args: any[]) => any) | undefined;
|
|
86
|
+
}>, {
|
|
87
|
+
features: MachTableToolbarFeatures;
|
|
88
|
+
loading: boolean;
|
|
89
|
+
selectedCount: number;
|
|
90
|
+
api: GridApi<any> | null;
|
|
91
|
+
commands: MachTableCommands | null;
|
|
92
|
+
modelValue: string;
|
|
93
|
+
searchPlaceholder: string;
|
|
94
|
+
exportFilename: string;
|
|
95
|
+
}, {}, {}, {}, string, vue.ComponentProvideOptions, true, {}, any>;
|
|
96
|
+
|
|
97
|
+
export { MachTableToolbar as M, type MachTableToolbarFeatures as a };
|
package/dist/async.cjs
CHANGED
|
@@ -1,23 +1,2 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } else { var newObj = {}; if (obj != null) { for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) { newObj[key] = obj[key]; } } } newObj.default = obj; return newObj; } }
|
|
2
|
-
|
|
3
|
-
var _chunk345ZEGIEcjs = require('./chunk-345ZEGIE.cjs');
|
|
4
|
-
|
|
5
|
-
// src/async.ts
|
|
6
|
-
var _vue = require('vue');
|
|
7
|
-
var preloadMachTable = () => Promise.resolve().then(() => _interopRequireWildcard(require("./RobotGrid-LELHEO4W.cjs"))).then(({ RobotGrid }) => RobotGrid);
|
|
8
|
-
var AsyncMachTable = _vue.defineAsyncComponent.call(void 0, {
|
|
9
|
-
loader: preloadMachTable
|
|
10
|
-
});
|
|
11
|
-
var AsyncMachTablePlugin = Object.freeze({
|
|
12
|
-
install(app, options = {}) {
|
|
13
|
-
_chunk345ZEGIEcjs.registerGlobalMachTable.call(void 0, app, AsyncMachTable, options);
|
|
14
|
-
}
|
|
15
|
-
});
|
|
16
|
-
var async_default = AsyncMachTablePlugin;
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
exports.AsyncMachTable = AsyncMachTable; exports.AsyncMachTablePlugin = AsyncMachTablePlugin; exports.default = async_default; exports.preloadMachTable = preloadMachTable;
|
|
1
|
+
"use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } else { var newObj = {}; if (obj != null) { for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) { newObj[key] = obj[key]; } } } newObj.default = obj; return newObj; } }var _chunkYN3M2NPOcjs = require('./chunk-YN3M2NPO.cjs');require('./chunk-OMEMLONJ.cjs');var _vue = require('vue');var p=()=>Promise.resolve().then(() => _interopRequireWildcard(require("./MachTable-QMK4VFAQ.cjs"))).then(({MachTable:e})=>e);function t(e={}){return _vue.defineAsyncComponent.call(void 0, {loader:p,...e})}var c=t(),i= exports.AsyncMachTablePlugin =Object.freeze({install(e,n={}){let a=n.asyncComponentOptions?t(n.asyncComponentOptions):c;_chunkYN3M2NPOcjs.a.call(void 0, e,a,n)}}),b= exports.default =i;exports.AsyncMachTable = c; exports.AsyncMachTablePlugin = i; exports.createAsyncMachTable = t; exports.default = b; exports.preloadMachTable = p;
|
|
23
2
|
//# sourceMappingURL=async.cjs.map
|
package/dist/async.cjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["d:\\office-project\\wl\\MachTable\\packages\\vue\\dist\\async.cjs"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"sources":["d:\\office-project\\wl\\MachTable\\packages\\vue\\dist\\async.cjs"],"names":[],"mappings":"AAAA,mZAAwC,gCAA6B,0BAA2C,IAAK,CAAC,CAAC,CAAC,CAAC,EAAE,4DAAM,CAAC,0BAA0B,GAAC,CAAC,IAAI,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,OAAO,uCAAC,CAAE,MAAM,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,gCAAC,MAAM,CAAC,MAAM,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,qBAAqB,CAAC,CAAC,CAAC,CAAC,CAAC,qBAAqB,CAAC,CAAC,CAAC,CAAC,iCAAC,CAAE,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,mBAAC,CAAC,CAAC,kJAAkH","file":"D:\\office-project\\wl\\MachTable\\packages\\vue\\dist\\async.cjs","sourcesContent":[null]}
|
package/dist/async.d.cts
CHANGED
|
@@ -1,21 +1,35 @@
|
|
|
1
|
-
import
|
|
2
|
-
import { App } from 'vue';
|
|
3
|
-
import {
|
|
1
|
+
import { M as MachTableVueComponent } from './MachTable-DH0offab.cjs';
|
|
2
|
+
import { Component, App } from 'vue';
|
|
3
|
+
import { M as MachTablePluginOptions } from './globalRegistration-BhAR-B5k.cjs';
|
|
4
4
|
import '@agile-team/mach-table';
|
|
5
|
+
import './MachTableToolbar-CDkTtitl.cjs';
|
|
5
6
|
|
|
6
7
|
/**
|
|
7
8
|
* Starts loading the Vue adapter ahead of first render. The browser and bundler
|
|
8
9
|
* cache the promise, so calling this on route hover is safe and idempotent.
|
|
9
10
|
*/
|
|
10
|
-
declare const preloadMachTable: () => Promise<
|
|
11
|
+
declare const preloadMachTable: () => Promise<MachTableVueComponent>;
|
|
12
|
+
interface AsyncMachTableOptions {
|
|
13
|
+
loadingComponent?: Component;
|
|
14
|
+
errorComponent?: Component;
|
|
15
|
+
delay?: number;
|
|
16
|
+
timeout?: number;
|
|
17
|
+
suspensible?: boolean;
|
|
18
|
+
onError?: (error: Error, retry: () => void, fail: () => void, attempts: number) => void;
|
|
19
|
+
}
|
|
20
|
+
/** Creates a route-friendly async component with optional loading/error boundaries. */
|
|
21
|
+
declare function createAsyncMachTable(options?: AsyncMachTableOptions): MachTableVueComponent;
|
|
11
22
|
/** Async global component used by AsyncMachTablePlugin. */
|
|
12
|
-
declare const AsyncMachTable:
|
|
23
|
+
declare const AsyncMachTable: MachTableVueComponent;
|
|
24
|
+
interface AsyncMachTablePluginOptions extends MachTablePluginOptions {
|
|
25
|
+
asyncComponentOptions?: AsyncMachTableOptions;
|
|
26
|
+
}
|
|
13
27
|
/**
|
|
14
28
|
* Registers `<MachTable>` globally while keeping the component and Core in a
|
|
15
29
|
* separate chunk until the first table is rendered.
|
|
16
30
|
*/
|
|
17
31
|
declare const AsyncMachTablePlugin: Readonly<{
|
|
18
|
-
install(app: App, options?:
|
|
32
|
+
install(app: App, options?: AsyncMachTablePluginOptions): void;
|
|
19
33
|
}>;
|
|
20
34
|
|
|
21
|
-
export { AsyncMachTable, AsyncMachTablePlugin, MachTablePluginOptions, AsyncMachTablePlugin as default, preloadMachTable };
|
|
35
|
+
export { AsyncMachTable, type AsyncMachTableOptions, AsyncMachTablePlugin, type AsyncMachTablePluginOptions, MachTablePluginOptions, createAsyncMachTable, AsyncMachTablePlugin as default, preloadMachTable };
|
package/dist/async.d.ts
CHANGED
|
@@ -1,21 +1,35 @@
|
|
|
1
|
-
import
|
|
2
|
-
import { App } from 'vue';
|
|
3
|
-
import {
|
|
1
|
+
import { M as MachTableVueComponent } from './MachTable-DH0offab.js';
|
|
2
|
+
import { Component, App } from 'vue';
|
|
3
|
+
import { M as MachTablePluginOptions } from './globalRegistration-DTWLNxPI.js';
|
|
4
4
|
import '@agile-team/mach-table';
|
|
5
|
+
import './MachTableToolbar-CDkTtitl.js';
|
|
5
6
|
|
|
6
7
|
/**
|
|
7
8
|
* Starts loading the Vue adapter ahead of first render. The browser and bundler
|
|
8
9
|
* cache the promise, so calling this on route hover is safe and idempotent.
|
|
9
10
|
*/
|
|
10
|
-
declare const preloadMachTable: () => Promise<
|
|
11
|
+
declare const preloadMachTable: () => Promise<MachTableVueComponent>;
|
|
12
|
+
interface AsyncMachTableOptions {
|
|
13
|
+
loadingComponent?: Component;
|
|
14
|
+
errorComponent?: Component;
|
|
15
|
+
delay?: number;
|
|
16
|
+
timeout?: number;
|
|
17
|
+
suspensible?: boolean;
|
|
18
|
+
onError?: (error: Error, retry: () => void, fail: () => void, attempts: number) => void;
|
|
19
|
+
}
|
|
20
|
+
/** Creates a route-friendly async component with optional loading/error boundaries. */
|
|
21
|
+
declare function createAsyncMachTable(options?: AsyncMachTableOptions): MachTableVueComponent;
|
|
11
22
|
/** Async global component used by AsyncMachTablePlugin. */
|
|
12
|
-
declare const AsyncMachTable:
|
|
23
|
+
declare const AsyncMachTable: MachTableVueComponent;
|
|
24
|
+
interface AsyncMachTablePluginOptions extends MachTablePluginOptions {
|
|
25
|
+
asyncComponentOptions?: AsyncMachTableOptions;
|
|
26
|
+
}
|
|
13
27
|
/**
|
|
14
28
|
* Registers `<MachTable>` globally while keeping the component and Core in a
|
|
15
29
|
* separate chunk until the first table is rendered.
|
|
16
30
|
*/
|
|
17
31
|
declare const AsyncMachTablePlugin: Readonly<{
|
|
18
|
-
install(app: App, options?:
|
|
32
|
+
install(app: App, options?: AsyncMachTablePluginOptions): void;
|
|
19
33
|
}>;
|
|
20
34
|
|
|
21
|
-
export { AsyncMachTable, AsyncMachTablePlugin, MachTablePluginOptions, AsyncMachTablePlugin as default, preloadMachTable };
|
|
35
|
+
export { AsyncMachTable, type AsyncMachTableOptions, AsyncMachTablePlugin, type AsyncMachTablePluginOptions, MachTablePluginOptions, createAsyncMachTable, AsyncMachTablePlugin as default, preloadMachTable };
|