@vef-framework-react/integration 2.13.0 → 2.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/dist/cjs/api/crud-api.cjs +1 -1
- package/dist/cjs/api/ops-api.cjs +1 -1
- package/dist/cjs/pages/code-map-page/entries-editor.cjs +1 -1
- package/dist/cjs/pages/code-map-page/form.cjs +1 -1
- package/dist/cjs/pages/contract-page/index.cjs +1 -1
- package/dist/cjs/pages/contract-page/search.cjs +1 -1
- package/dist/es/api/code-set-api.js +1 -1
- package/dist/es/api/crud-api.js +12 -6
- package/dist/es/api/index.js +1 -1
- package/dist/es/api/log-api.js +1 -1
- package/dist/es/api/ops-api.js +9 -3
- package/dist/es/api/query.js +1 -1
- package/dist/es/api/stats-api.js +1 -1
- package/dist/es/components/auth-params/index.js +1 -1
- package/dist/es/components/directory/index.js +1 -1
- package/dist/es/components/form-section/index.js +1 -1
- package/dist/es/components/format.js +1 -1
- package/dist/es/components/index.js +1 -1
- package/dist/es/components/json-view/index.js +1 -1
- package/dist/es/components/params-editor/index.js +1 -1
- package/dist/es/components/script-doc/completions.js +1 -1
- package/dist/es/components/script-doc/index.js +1 -1
- package/dist/es/components/status/colors.js +1 -1
- package/dist/es/components/status/index.js +1 -1
- package/dist/es/components/status/labels.js +1 -1
- package/dist/es/components/test-connection/index.js +1 -1
- package/dist/es/components/wire-trace/index.js +1 -1
- package/dist/es/index.js +1 -1
- package/dist/es/pages/adapter-page/columns.js +1 -1
- package/dist/es/pages/adapter-page/form.js +1 -1
- package/dist/es/pages/adapter-page/helpers.js +1 -1
- package/dist/es/pages/adapter-page/index.js +1 -1
- package/dist/es/pages/adapter-page/search.js +1 -1
- package/dist/es/pages/code-map-page/columns.js +1 -1
- package/dist/es/pages/code-map-page/entries-editor.js +21 -14
- package/dist/es/pages/code-map-page/form.js +53 -47
- package/dist/es/pages/code-map-page/helpers.js +1 -1
- package/dist/es/pages/code-map-page/index.js +1 -1
- package/dist/es/pages/code-map-page/model.js +1 -1
- package/dist/es/pages/code-map-page/search.js +1 -1
- package/dist/es/pages/console-page/diagnostics.js +1 -1
- package/dist/es/pages/console-page/dry-run.js +1 -1
- package/dist/es/pages/console-page/index.js +1 -1
- package/dist/es/pages/console-page/log.js +1 -1
- package/dist/es/pages/console-page/stats.js +1 -1
- package/dist/es/pages/contract-page/columns.js +1 -1
- package/dist/es/pages/contract-page/form.js +1 -1
- package/dist/es/pages/contract-page/helpers.js +1 -1
- package/dist/es/pages/contract-page/index.js +38 -37
- package/dist/es/pages/contract-page/json-schema-completions.js +1 -1
- package/dist/es/pages/contract-page/model.js +1 -1
- package/dist/es/pages/contract-page/search.js +30 -10
- package/dist/es/pages/index.js +1 -1
- package/dist/es/pages/route-page/columns.js +1 -1
- package/dist/es/pages/route-page/form.js +1 -1
- package/dist/es/pages/route-page/helpers.js +1 -1
- package/dist/es/pages/route-page/index.js +1 -1
- package/dist/es/pages/route-page/search.js +1 -1
- package/dist/es/pages/system-page/columns.js +1 -1
- package/dist/es/pages/system-page/form.js +1 -1
- package/dist/es/pages/system-page/helpers.js +1 -1
- package/dist/es/pages/system-page/index.js +1 -1
- package/dist/es/pages/system-page/model.js +1 -1
- package/dist/es/pages/system-page/search.js +1 -1
- package/dist/es/permissions.js +1 -1
- package/dist/es/types/enums.js +1 -1
- package/dist/es/types/index.js +1 -1
- package/dist/types/api/crud-api.d.ts +4 -2
- package/dist/types/pages/code-map-page/entries-editor.d.ts +26 -1
- package/dist/types/pages/contract-page/search.d.ts +11 -0
- package/package.json +4 -4
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { PaginatedQueryParams } from '@vef-framework-react/components';
|
|
2
|
-
import { ApiClient, ApiResult, MutationFunction, PaginationResult, QueryFunction } from '@vef-framework-react/core';
|
|
2
|
+
import { ApiClient, ApiResult, BodyEncoding, MutationFunction, PaginationResult, QueryFunction } from '@vef-framework-react/core';
|
|
3
3
|
import { AnyObject } from '@vef-framework-react/shared';
|
|
4
4
|
import { Adapter, AdapterParams, AdapterSearch, CodeMap, CodeMapParams, CodeMapSearch, Contract, ContractParams, ContractSearch, Route, RouteParams, RouteSearch, System, SystemParams, SystemSearch } from '../types';
|
|
5
5
|
interface Identifiable {
|
|
@@ -21,8 +21,10 @@ export interface CrudApi<TRow extends Identifiable, TParams, TSearch extends Any
|
|
|
21
21
|
/**
|
|
22
22
|
* Build the CRUD query/mutation functions for a resource against the app's
|
|
23
23
|
* API client. `keyPrefix` namespaces the TanStack Query cache keys.
|
|
24
|
+
* `bodyEncoding` transport-encodes the create/update bodies so a script-carrying
|
|
25
|
+
* resource (adapter, system) survives middleboxes that inspect request payloads.
|
|
24
26
|
*/
|
|
25
|
-
export declare function createCrudApi<TRow extends Identifiable, TParams extends object, TSearch extends AnyObject>(apiClient: ApiClient, resource: string, keyPrefix: string): CrudApi<TRow, TParams, TSearch>;
|
|
27
|
+
export declare function createCrudApi<TRow extends Identifiable, TParams extends object, TSearch extends AnyObject>(apiClient: ApiClient, resource: string, keyPrefix: string, bodyEncoding?: BodyEncoding): CrudApi<TRow, TParams, TSearch>;
|
|
26
28
|
/**
|
|
27
29
|
* CRUD API for the contract resource.
|
|
28
30
|
*/
|
|
@@ -1,6 +1,31 @@
|
|
|
1
1
|
import { CodeMapEntry } from '../../types';
|
|
2
|
+
/**
|
|
3
|
+
* One suggestion offered while editing a cell: `value` is the code inserted on
|
|
4
|
+
* pick, `label` is what the dropdown shows (`0 = 独立科室`).
|
|
5
|
+
*/
|
|
6
|
+
export interface CodeSuggestion {
|
|
7
|
+
value: string;
|
|
8
|
+
label: string;
|
|
9
|
+
}
|
|
2
10
|
export interface CodeMapEntriesEditorProps {
|
|
3
11
|
value?: CodeMapEntry[] | null;
|
|
4
12
|
onChange?: (value: CodeMapEntry[]) => void;
|
|
13
|
+
/**
|
|
14
|
+
* Suggestions from the host code catalog (`mold.CodeSetInspector`) for the two
|
|
15
|
+
* primary-value columns. Empty leaves them as free text — which is also the
|
|
16
|
+
* state for hosts that registered no enumerable catalog.
|
|
17
|
+
*
|
|
18
|
+
* The external column gets them too even though the catalog describes the
|
|
19
|
+
* host's* coding: in practice the two sides overlap often enough (numeric
|
|
20
|
+
* levels, M/F, Y/N) that offering the list saves real typing, and the control
|
|
21
|
+
* suggests rather than constrains — an external code that differs is simply
|
|
22
|
+
* typed in.
|
|
23
|
+
*
|
|
24
|
+
* The alias columns stay plain tag inputs. A full catalog dropdown over a
|
|
25
|
+
* narrow multi-value cell covers half the form for a list the operator is
|
|
26
|
+
* usually not picking from — aliases are the values that fall *outside* the
|
|
27
|
+
* catalog.
|
|
28
|
+
*/
|
|
29
|
+
codeSuggestions?: CodeSuggestion[];
|
|
5
30
|
}
|
|
6
|
-
export declare function CodeMapEntriesEditor({ value, onChange }: CodeMapEntriesEditorProps): import("@emotion/react/jsx-runtime").JSX.Element;
|
|
31
|
+
export declare function CodeMapEntriesEditor({ value, onChange, codeSuggestions }: CodeMapEntriesEditorProps): import("@emotion/react/jsx-runtime").JSX.Element;
|
|
@@ -2,3 +2,14 @@
|
|
|
2
2
|
* The inline search fields for the contract list.
|
|
3
3
|
*/
|
|
4
4
|
export declare function ContractSearchFields(): import("@emotion/react/jsx-runtime").JSX.Element;
|
|
5
|
+
/**
|
|
6
|
+
* Label filters for the contract list, shown in the expandable search panel.
|
|
7
|
+
*
|
|
8
|
+
* Lives in the advanced panel rather than the inline bar because it is a
|
|
9
|
+
* multi-row key/value editor, and because the backend ANDs every pair — a
|
|
10
|
+
* filter that narrows this aggressively should not sit where it can be set by
|
|
11
|
+
* accident. The same `LabelsEditor` the contract form uses is reused here so
|
|
12
|
+
* the two places behave identically (empty-key rows dropped, out-of-charset
|
|
13
|
+
* keys flagged inline).
|
|
14
|
+
*/
|
|
15
|
+
export declare function ContractAdvancedSearchFields(): import("@emotion/react/jsx-runtime").JSX.Element;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vef-framework-react/integration",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.14.0",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "Integration engine management pages for VEF framework",
|
|
6
6
|
"keywords": [
|
|
@@ -42,9 +42,9 @@
|
|
|
42
42
|
"@emotion/react": "^11.14.0",
|
|
43
43
|
"dayjs": "^1.11.0",
|
|
44
44
|
"lucide-react": "^1.23.0",
|
|
45
|
-
"@vef-framework-react/
|
|
46
|
-
"@vef-framework-react/
|
|
47
|
-
"@vef-framework-react/
|
|
45
|
+
"@vef-framework-react/components": "2.14.0",
|
|
46
|
+
"@vef-framework-react/core": "2.14.0",
|
|
47
|
+
"@vef-framework-react/shared": "2.14.0"
|
|
48
48
|
},
|
|
49
49
|
"devDependencies": {
|
|
50
50
|
"react": "^19.2.7"
|