@agile-team/mach-table-vue 0.18.1 → 0.19.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/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 0.18. It provides a generic `<MachTable>`, native typed slots, dedicated app/route configuration, cohesive controllers, advanced-filter aware remote query, conflict-aware editing composables, persistent named views, optional and persistent column resizing, an optional standard toolbar, optional Element Plus editors, async boundaries, in-place renderer refresh and automatic lifecycle cleanup. `RobotGrid` remains a deprecated 0.x alias.
7
+ Official Vue 3 adapter for MachTable 0.19. It provides a generic `<MachTable>`, native typed slots, dedicated app/route configuration, cohesive controllers, advanced-filter aware remote query, conflict-aware editing composables, persistent named views, optional and persistent column resizing, random-access remote blocks, batched/domain APIs, optional Worker processing, an optional standard toolbar, optional Element Plus editors, async boundaries, in-place renderer refresh and automatic lifecycle cleanup. `RobotGrid` remains a deprecated 0.x alias.
8
8
 
9
9
  ## Install
10
10
 
@@ -18,6 +18,12 @@ Import the stylesheet once from your application entry:
18
18
  import "@agile-team/mach-table-vue/styles.css";
19
19
  ```
20
20
 
21
+ Optional large local-data Worker helpers use the same installed package but a separate chunk:
22
+
23
+ ```ts
24
+ import { createWorkerDataProcessor } from "@agile-team/mach-table-vue/worker";
25
+ ```
26
+
21
27
  ## Integration modes
22
28
 
23
29
  ### Local, route-level import
@@ -65,6 +65,7 @@
65
65
  -webkit-font-smoothing: antialiased;
66
66
  -moz-osx-font-smoothing: grayscale;
67
67
  font-variant-numeric: tabular-nums;
68
+ contain: layout style;
68
69
  }
69
70
 
70
71
  .mach-root.mach-dom-layout--auto-height {
@@ -562,6 +563,29 @@
562
563
  line-height: calc(var(--mach-row-h) - 2px);
563
564
  }
564
565
 
566
+ .mach-cell--loading {
567
+ pointer-events: none;
568
+ }
569
+
570
+ .mach-cell-loading-bar {
571
+ display: block;
572
+ height: 8px;
573
+ max-width: 132px;
574
+ border-radius: 999px;
575
+ background: linear-gradient(90deg, var(--mach-row-hover-bg), var(--mach-border-color), var(--mach-row-hover-bg));
576
+ background-size: 200% 100%;
577
+ animation: mach-cell-loading 1.25s ease-in-out infinite;
578
+ }
579
+
580
+ @keyframes mach-cell-loading {
581
+ from { background-position: 200% 0; }
582
+ to { background-position: -200% 0; }
583
+ }
584
+
585
+ @media (prefers-reduced-motion: reduce) {
586
+ .mach-cell-loading-bar { animation: none; }
587
+ }
588
+
565
589
  .mach-cell--num {
566
590
  justify-content: flex-end;
567
591
  }
@@ -0,0 +1,2 @@
1
+ "use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _createStarExport(obj) { Object.keys(obj) .filter((key) => key !== "default" && key !== "__esModule") .forEach((key) => { if (exports.hasOwnProperty(key)) { return; } Object.defineProperty(exports, key, {enumerable: true, configurable: true, get: () => obj[key]}); }); }var _worker = require('@agile-team/mach-table/worker'); _createStarExport(_worker);
2
+ //# sourceMappingURL=worker.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["d:\\office-project\\wl\\MachTable\\packages\\vue\\dist\\worker.cjs"],"names":[],"mappings":"AAAA,obAA0C","file":"D:\\office-project\\wl\\MachTable\\packages\\vue\\dist\\worker.cjs","sourcesContent":[null]}
@@ -0,0 +1 @@
1
+ export * from '@agile-team/mach-table/worker';
@@ -0,0 +1 @@
1
+ export * from '@agile-team/mach-table/worker';
package/dist/worker.js ADDED
@@ -0,0 +1,2 @@
1
+ export*from"@agile-team/mach-table/worker";
2
+ //# sourceMappingURL=worker.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../src/worker.ts"],"sourcesContent":["export * from \"@agile-team/mach-table/worker\";\n"],"mappings":"AAAA,WAAc","names":[]}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@agile-team/mach-table-vue",
3
- "version": "0.18.1",
3
+ "version": "0.19.0",
4
4
  "description": "Official Vue 3 adapter for the MachTable enterprise data grid",
5
5
  "keywords": [
6
6
  "vue",
@@ -62,6 +62,16 @@
62
62
  "default": "./dist/workflows.cjs"
63
63
  }
64
64
  },
65
+ "./worker": {
66
+ "import": {
67
+ "types": "./dist/worker.d.ts",
68
+ "default": "./dist/worker.js"
69
+ },
70
+ "require": {
71
+ "types": "./dist/worker.d.cts",
72
+ "default": "./dist/worker.cjs"
73
+ }
74
+ },
65
75
  "./ui": {
66
76
  "import": {
67
77
  "types": "./dist/ui.d.ts",
@@ -98,7 +108,7 @@
98
108
  "**/*.css"
99
109
  ],
100
110
  "dependencies": {
101
- "@agile-team/mach-table": "0.18.1"
111
+ "@agile-team/mach-table": "0.19.0"
102
112
  },
103
113
  "peerDependencies": {
104
114
  "vue": ">=3.2.0"