@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.
Files changed (71) hide show
  1. package/dist/cjs/api/crud-api.cjs +1 -1
  2. package/dist/cjs/api/ops-api.cjs +1 -1
  3. package/dist/cjs/pages/code-map-page/entries-editor.cjs +1 -1
  4. package/dist/cjs/pages/code-map-page/form.cjs +1 -1
  5. package/dist/cjs/pages/contract-page/index.cjs +1 -1
  6. package/dist/cjs/pages/contract-page/search.cjs +1 -1
  7. package/dist/es/api/code-set-api.js +1 -1
  8. package/dist/es/api/crud-api.js +12 -6
  9. package/dist/es/api/index.js +1 -1
  10. package/dist/es/api/log-api.js +1 -1
  11. package/dist/es/api/ops-api.js +9 -3
  12. package/dist/es/api/query.js +1 -1
  13. package/dist/es/api/stats-api.js +1 -1
  14. package/dist/es/components/auth-params/index.js +1 -1
  15. package/dist/es/components/directory/index.js +1 -1
  16. package/dist/es/components/form-section/index.js +1 -1
  17. package/dist/es/components/format.js +1 -1
  18. package/dist/es/components/index.js +1 -1
  19. package/dist/es/components/json-view/index.js +1 -1
  20. package/dist/es/components/params-editor/index.js +1 -1
  21. package/dist/es/components/script-doc/completions.js +1 -1
  22. package/dist/es/components/script-doc/index.js +1 -1
  23. package/dist/es/components/status/colors.js +1 -1
  24. package/dist/es/components/status/index.js +1 -1
  25. package/dist/es/components/status/labels.js +1 -1
  26. package/dist/es/components/test-connection/index.js +1 -1
  27. package/dist/es/components/wire-trace/index.js +1 -1
  28. package/dist/es/index.js +1 -1
  29. package/dist/es/pages/adapter-page/columns.js +1 -1
  30. package/dist/es/pages/adapter-page/form.js +1 -1
  31. package/dist/es/pages/adapter-page/helpers.js +1 -1
  32. package/dist/es/pages/adapter-page/index.js +1 -1
  33. package/dist/es/pages/adapter-page/search.js +1 -1
  34. package/dist/es/pages/code-map-page/columns.js +1 -1
  35. package/dist/es/pages/code-map-page/entries-editor.js +21 -14
  36. package/dist/es/pages/code-map-page/form.js +53 -47
  37. package/dist/es/pages/code-map-page/helpers.js +1 -1
  38. package/dist/es/pages/code-map-page/index.js +1 -1
  39. package/dist/es/pages/code-map-page/model.js +1 -1
  40. package/dist/es/pages/code-map-page/search.js +1 -1
  41. package/dist/es/pages/console-page/diagnostics.js +1 -1
  42. package/dist/es/pages/console-page/dry-run.js +1 -1
  43. package/dist/es/pages/console-page/index.js +1 -1
  44. package/dist/es/pages/console-page/log.js +1 -1
  45. package/dist/es/pages/console-page/stats.js +1 -1
  46. package/dist/es/pages/contract-page/columns.js +1 -1
  47. package/dist/es/pages/contract-page/form.js +1 -1
  48. package/dist/es/pages/contract-page/helpers.js +1 -1
  49. package/dist/es/pages/contract-page/index.js +38 -37
  50. package/dist/es/pages/contract-page/json-schema-completions.js +1 -1
  51. package/dist/es/pages/contract-page/model.js +1 -1
  52. package/dist/es/pages/contract-page/search.js +30 -10
  53. package/dist/es/pages/index.js +1 -1
  54. package/dist/es/pages/route-page/columns.js +1 -1
  55. package/dist/es/pages/route-page/form.js +1 -1
  56. package/dist/es/pages/route-page/helpers.js +1 -1
  57. package/dist/es/pages/route-page/index.js +1 -1
  58. package/dist/es/pages/route-page/search.js +1 -1
  59. package/dist/es/pages/system-page/columns.js +1 -1
  60. package/dist/es/pages/system-page/form.js +1 -1
  61. package/dist/es/pages/system-page/helpers.js +1 -1
  62. package/dist/es/pages/system-page/index.js +1 -1
  63. package/dist/es/pages/system-page/model.js +1 -1
  64. package/dist/es/pages/system-page/search.js +1 -1
  65. package/dist/es/permissions.js +1 -1
  66. package/dist/es/types/enums.js +1 -1
  67. package/dist/es/types/index.js +1 -1
  68. package/dist/types/api/crud-api.d.ts +4 -2
  69. package/dist/types/pages/code-map-page/entries-editor.d.ts +26 -1
  70. package/dist/types/pages/contract-page/search.d.ts +11 -0
  71. 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.13.0",
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/shared": "2.13.0",
46
- "@vef-framework-react/components": "2.13.0",
47
- "@vef-framework-react/core": "2.13.0"
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"