@vc-shell/framework 2.0.11 → 2.1.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/dist/chunks/{VcTableAdapter.vue_vue_type_style_index_0_lang-B3154ZmD.js → VcTableAdapter.vue_vue_type_style_index_0_lang-DbKOU25C.js} +776 -776
- package/dist/chunks/VcTableAdapter.vue_vue_type_style_index_0_lang-DbKOU25C.js.map +1 -0
- package/dist/framework.js +74 -73
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/dist/ui/components/organisms/vc-data-table/VcDataTable.vue.d.ts.map +1 -1
- package/dist/ui/components/organisms/vc-data-table/components/VcColumn.vue.d.ts +1 -1
- package/dist/ui/composables/index.d.ts +1 -0
- package/dist/ui/composables/index.d.ts.map +1 -1
- package/dist/ui/composables/useDataTablePagination.d.ts +3 -1
- package/dist/ui/composables/useDataTablePagination.d.ts.map +1 -1
- package/dist/ui/composables/useDataTableSort.d.ts +2 -0
- package/dist/ui/composables/useDataTableSort.d.ts.map +1 -1
- package/dist/ui/composables/useTableSearch.d.ts +18 -0
- package/dist/ui/composables/useTableSearch.d.ts.map +1 -0
- package/dist/ui/index.js +29 -28
- package/package.json +4 -4
- package/dist/chunks/VcTableAdapter.vue_vue_type_style_index_0_lang-B3154ZmD.js.map +0 -1
- package/dist/ui/components/organisms/vc-data-table/composables/useTableQueryPersistence.d.ts +0 -24
- package/dist/ui/components/organisms/vc-data-table/composables/useTableQueryPersistence.d.ts.map +0 -1
package/dist/ui/components/organisms/vc-data-table/composables/useTableQueryPersistence.d.ts
DELETED
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
import { type Ref } from "vue";
|
|
2
|
-
import type { VcDataTableExtendedProps } from "../../../../components/organisms/vc-data-table/types";
|
|
3
|
-
export interface UseTableQueryPersistenceOptions<T extends Record<string, unknown>> {
|
|
4
|
-
/** VcDataTable props (read sortField/sortOrder/searchValue/pagination/stateKey). */
|
|
5
|
-
props: VcDataTableExtendedProps<T>;
|
|
6
|
-
/** Live search UI state owned by VcDataTable. */
|
|
7
|
-
internalSearchValue: Ref<string>;
|
|
8
|
-
}
|
|
9
|
-
/**
|
|
10
|
-
* Bridges VcDataTable view state (sort/search/page) with the URL query, via the
|
|
11
|
-
* optional per-blade ITableQueryStateService. No-op when no service is provided
|
|
12
|
-
* (standalone table or non-URL blade).
|
|
13
|
-
*
|
|
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.
|
|
18
|
-
*
|
|
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.
|
|
22
|
-
*/
|
|
23
|
-
export declare function useTableQueryPersistence<T extends Record<string, unknown>>(options: UseTableQueryPersistenceOptions<T>): void;
|
|
24
|
-
//# sourceMappingURL=useTableQueryPersistence.d.ts.map
|
package/dist/ui/components/organisms/vc-data-table/composables/useTableQueryPersistence.d.ts.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
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"}
|