@vc-shell/framework 2.0.10-pr242.2e7f6b3 → 2.0.10-pr242.bfb451e

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.
@@ -11,18 +11,14 @@ export interface UseTableQueryPersistenceOptions<T extends Record<string, unknow
11
11
  * optional per-blade ITableQueryStateService. No-op when no service is provided
12
12
  * (standalone table or non-URL blade).
13
13
  *
14
- * Restore is PULL, not push: the page reads the restored state itself (via
15
- * useTableQueryState) and seeds its own refs before its single load watcher, so a
16
- * reload costs exactly one request. VcDataTable therefore does NOT emit restore
17
- * events on init (that fanned out into the page's separate sort/search/pagination
18
- * triggers and produced multiple uncoordinated loads). It still reflects the
19
- * restored keyword in its own search box (display only, no load), and keeps the
20
- * auto write-back below.
14
+ * This handles the write side: it watches sort/search/page and writes them to the
15
+ * URL (the service debounces). To avoid writing back values the page just restored
16
+ * (the parent echoes them as prop changes a tick later), each field remembers its
17
+ * last-applied value and skips writes that match it.
21
18
  *
22
- * Write-back watches for changes and writes them back (the service debounces). To
23
- * avoid writing back the just-restored values (the parent echoes them as prop
24
- * changes on a later tick), each field tracks its last-applied value and skips
25
- * writes that match it — timing-independent, unlike a transient flag.
19
+ * It does not push restored state to the page — the page reads it via
20
+ * useTableQueryState. The only restore-side effect here is seeding the table's own
21
+ * search box for display, which does not load.
26
22
  */
27
23
  export declare function useTableQueryPersistence<T extends Record<string, unknown>>(options: UseTableQueryPersistenceOptions<T>): void;
28
24
  //# sourceMappingURL=useTableQueryPersistence.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"useTableQueryPersistence.d.ts","sourceRoot":"","sources":["../../../../../../ui/components/organisms/vc-data-table/composables/useTableQueryPersistence.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,GAAG,EAAiB,MAAM,KAAK,CAAC;AAE9C,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,8CAA8C,CAAC;AAE7F,MAAM,WAAW,+BAA+B,CAAC,CAAC,SAAS,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC;IAChF,oFAAoF;IACpF,KAAK,EAAE,wBAAwB,CAAC,CAAC,CAAC,CAAC;IACnC,iDAAiD;IACjD,mBAAmB,EAAE,GAAG,CAAC,MAAM,CAAC,CAAC;CAClC;AAED;;;;;;;;;;;;;;;;;GAiBG;AACH,wBAAgB,wBAAwB,CAAC,CAAC,SAAS,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,EACxE,OAAO,EAAE,+BAA+B,CAAC,CAAC,CAAC,GAC1C,IAAI,CA0DN"}
1
+ {"version":3,"file":"useTableQueryPersistence.d.ts","sourceRoot":"","sources":["../../../../../../ui/components/organisms/vc-data-table/composables/useTableQueryPersistence.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,GAAG,EAAiB,MAAM,KAAK,CAAC;AAE9C,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,8CAA8C,CAAC;AAE7F,MAAM,WAAW,+BAA+B,CAAC,CAAC,SAAS,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC;IAChF,oFAAoF;IACpF,KAAK,EAAE,wBAAwB,CAAC,CAAC,CAAC,CAAC;IACnC,iDAAiD;IACjD,mBAAmB,EAAE,GAAG,CAAC,MAAM,CAAC,CAAC;CAClC;AAED;;;;;;;;;;;;;GAaG;AACH,wBAAgB,wBAAwB,CAAC,CAAC,SAAS,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,EACxE,OAAO,EAAE,+BAA+B,CAAC,CAAC,CAAC,GAC1C,IAAI,CAwDN"}
@@ -24,9 +24,8 @@ export interface UseDataTablePaginationReturn {
24
24
  /** Navigate to a specific page. Fires onPageChange if provided. */
25
25
  goToPage: (page: number) => void;
26
26
  /**
27
- * Seed the current page WITHOUT firing onPageChange. Use for pull-restore in
28
- * setup: the page seeds skip from the URL, then its single load watcher reads
29
- * the combined criteria and loads once — no separate load from the page change.
27
+ * Set the current page without firing onPageChange. Use to seed the page from a
28
+ * URL restore in setup, so the seed itself does not trigger a load.
30
29
  */
31
30
  setPage: (page: number) => void;
32
31
  /** Reset to page 1. Does NOT fire onPageChange. */
@@ -1 +1 @@
1
- {"version":3,"file":"useDataTablePagination.d.ts","sourceRoot":"","sources":["../../../ui/composables/useDataTablePagination.ts"],"names":[],"mappings":"AAAA,OAAO,EAA2B,KAAK,gBAAgB,EAAW,MAAM,KAAK,CAAC;AAE9E,MAAM,WAAW,6BAA6B;IAC5C,kCAAkC;IAClC,QAAQ,CAAC,EAAE,gBAAgB,CAAC,MAAM,CAAC,CAAC;IACpC,oDAAoD;IACpD,UAAU,EAAE,gBAAgB,CAAC,MAAM,CAAC,CAAC;IACrC,qEAAqE;IACrE,YAAY,CAAC,EAAE,CAAC,KAAK,EAAE;QAAE,IAAI,EAAE,MAAM,CAAC;QAAC,IAAI,EAAE,MAAM,CAAA;KAAE,KAAK,IAAI,CAAC;CAChE;AAED,MAAM,WAAW,4BAA4B;IAC3C,6CAA6C;IAC7C,WAAW,EAAE,MAAM,CAAC;IACpB,4BAA4B;IAC5B,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAC;IACvB,wDAAwD;IACxD,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;IACtB,yBAAyB;IACzB,QAAQ,CAAC,QAAQ,EAAE,MAAM,CAAC;IAC1B,mEAAmE;IACnE,QAAQ,CAAC,UAAU,EAAE,MAAM,CAAC;IAC5B,mEAAmE;IACnE,QAAQ,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,IAAI,CAAC;IACjC;;;;OAIG;IACH,OAAO,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,IAAI,CAAC;IAChC,mDAAmD;IACnD,KAAK,EAAE,MAAM,IAAI,CAAC;CACnB;AAED,wBAAgB,sBAAsB,CAAC,OAAO,EAAE,6BAA6B,GAAG,4BAA4B,CAqB3G"}
1
+ {"version":3,"file":"useDataTablePagination.d.ts","sourceRoot":"","sources":["../../../ui/composables/useDataTablePagination.ts"],"names":[],"mappings":"AAAA,OAAO,EAA2B,KAAK,gBAAgB,EAAW,MAAM,KAAK,CAAC;AAE9E,MAAM,WAAW,6BAA6B;IAC5C,kCAAkC;IAClC,QAAQ,CAAC,EAAE,gBAAgB,CAAC,MAAM,CAAC,CAAC;IACpC,oDAAoD;IACpD,UAAU,EAAE,gBAAgB,CAAC,MAAM,CAAC,CAAC;IACrC,qEAAqE;IACrE,YAAY,CAAC,EAAE,CAAC,KAAK,EAAE;QAAE,IAAI,EAAE,MAAM,CAAC;QAAC,IAAI,EAAE,MAAM,CAAA;KAAE,KAAK,IAAI,CAAC;CAChE;AAED,MAAM,WAAW,4BAA4B;IAC3C,6CAA6C;IAC7C,WAAW,EAAE,MAAM,CAAC;IACpB,4BAA4B;IAC5B,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAC;IACvB,wDAAwD;IACxD,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;IACtB,yBAAyB;IACzB,QAAQ,CAAC,QAAQ,EAAE,MAAM,CAAC;IAC1B,mEAAmE;IACnE,QAAQ,CAAC,UAAU,EAAE,MAAM,CAAC;IAC5B,mEAAmE;IACnE,QAAQ,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,IAAI,CAAC;IACjC;;;OAGG;IACH,OAAO,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,IAAI,CAAC;IAChC,mDAAmD;IACnD,KAAK,EAAE,MAAM,IAAI,CAAC;CACnB;AAED,wBAAgB,sBAAsB,CAAC,OAAO,EAAE,6BAA6B,GAAG,4BAA4B,CAqB3G"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vc-shell/framework",
3
- "version": "2.0.10-pr242.2e7f6b3",
3
+ "version": "2.0.10-pr242.bfb451e",
4
4
  "type": "module",
5
5
  "main": "./dist/framework.js",
6
6
  "types": "./dist/index.d.ts",
@@ -135,9 +135,9 @@
135
135
  "@types/dompurify": "^3.0.5",
136
136
  "@types/semver": "^7.7.1",
137
137
  "@types/sortablejs": "^1.15.9",
138
- "@vc-shell/api-client-generator": "2.0.10-pr242.2e7f6b3",
139
- "@vc-shell/config-generator": "2.0.10-pr242.2e7f6b3",
140
- "@vc-shell/ts-config": "2.0.10-pr242.2e7f6b3",
138
+ "@vc-shell/api-client-generator": "2.0.10-pr242.bfb451e",
139
+ "@vc-shell/config-generator": "2.0.10-pr242.bfb451e",
140
+ "@vc-shell/ts-config": "2.0.10-pr242.bfb451e",
141
141
  "@vitejs/plugin-vue": "^5.2.3",
142
142
  "@vue/test-utils": "^2.4.5",
143
143
  "cypress-signalr-mock": "^1.5.0",