@framework-m/desk 0.15.0 → 0.17.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/components/form/LinkWidget.d.ts.map +1 -1
- package/dist/components/form/fields/AutoField.d.ts.map +1 -1
- package/dist/components/form/fields/MultiSelectField.d.ts.map +1 -1
- package/dist/components/form/fields/SelectField.d.ts +4 -3
- package/dist/components/form/fields/SelectField.d.ts.map +1 -1
- package/dist/components/form/fields/TagInputField.d.ts +20 -0
- package/dist/components/form/fields/TagInputField.d.ts.map +1 -0
- package/dist/config/i18n.d.ts.map +1 -1
- package/dist/hooks/useFormController.d.ts.map +1 -1
- package/dist/index.js +784 -578
- package/dist/index.js.map +1 -1
- package/dist/pages/FormView.d.ts.map +1 -1
- package/dist/views/TreeView.d.ts.map +1 -1
- package/package.json +5 -5
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"LinkWidget.d.ts","sourceRoot":"","sources":["../../../src/components/form/LinkWidget.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;GASG;AA2BH;;GAEG;AACH,eAAO,MAAM,IAAI,GAAI,OAAO,GAAG,
|
|
1
|
+
{"version":3,"file":"LinkWidget.d.ts","sourceRoot":"","sources":["../../../src/components/form/LinkWidget.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;GASG;AA2BH;;GAEG;AACH,eAAO,MAAM,IAAI,GAAI,OAAO,GAAG,gCA+f9B,CAAC;AAEF,eAAO,MAAM,SAAS,6CAAqB,CAAC;AAC5C,eAAe,SAAS,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AutoField.d.ts","sourceRoot":"","sources":["../../../../src/components/form/fields/AutoField.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"AutoField.d.ts","sourceRoot":"","sources":["../../../../src/components/form/fields/AutoField.tsx"],"names":[],"mappings":"AAUA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAyCG;AACH,eAAO,MAAM,SAAS,6CAmIpB,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"MultiSelectField.d.ts","sourceRoot":"","sources":["../../../../src/components/form/fields/MultiSelectField.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"MultiSelectField.d.ts","sourceRoot":"","sources":["../../../../src/components/form/fields/MultiSelectField.tsx"],"names":[],"mappings":"AA2DA,eAAO,MAAM,WAAW,GAAI,OAAO,GAAG,gCAsJrC,CAAC;AAEF,eAAO,MAAM,gBAAgB,6CAA4B,CAAC"}
|
|
@@ -4,11 +4,12 @@
|
|
|
4
4
|
* UIMeta integration (3.1 — Pydantic Enum Leveraging):
|
|
5
5
|
* -------------------------------------------------------
|
|
6
6
|
* Option sources (in priority order):
|
|
7
|
-
* 1.
|
|
8
|
-
* 2. `props.
|
|
7
|
+
* 1. Remote API (`ui_meta.source_url`)
|
|
8
|
+
* 2. `props.options` — from uniforms bridge (schema.enum)
|
|
9
|
+
* 3. `props.schema.ui_meta.options` — human-friendly options from enrich_schema()
|
|
9
10
|
* These are objects like `{ value: "draft", label: "Draft" }` generated
|
|
10
11
|
* from Literal["draft", ...] or Python Enum types.
|
|
11
|
-
*
|
|
12
|
+
* 4. `props.allowedValues` — legacy uniforms fallback
|
|
12
13
|
*
|
|
13
14
|
* The ui_meta.options labels are preferred when present because they are
|
|
14
15
|
* already title-cased by `enrich_schema` and may carry developer-supplied
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SelectField.d.ts","sourceRoot":"","sources":["../../../../src/components/form/fields/SelectField.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"SelectField.d.ts","sourceRoot":"","sources":["../../../../src/components/form/fields/SelectField.tsx"],"names":[],"mappings":"AAKA;;;;;;;;;;;;;;;;GAgBG;AACH,eAAO,MAAM,OAAO,GAAI,OAAO,GAAG,gCAiHjC,CAAC;AAEF,eAAO,MAAM,WAAW,6CAAwB,CAAC"}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { FieldProps } from 'uniforms';
|
|
2
|
+
interface TagInputFieldProps {
|
|
3
|
+
placeholder?: string;
|
|
4
|
+
compact?: boolean;
|
|
5
|
+
/**
|
|
6
|
+
* Optional key to use if the value is an array of objects instead of strings.
|
|
7
|
+
* E.g., if value is `[{ id: "tag1" }, { id: "tag2" }]`, set `valueKey="id"`.
|
|
8
|
+
* If not provided, assumes value is `string[]`.
|
|
9
|
+
*/
|
|
10
|
+
valueKey?: string;
|
|
11
|
+
}
|
|
12
|
+
type TagInputFieldCombinedProps = TagInputFieldProps & FieldProps<any[] | string[], any>;
|
|
13
|
+
/**
|
|
14
|
+
* A custom Uniforms field component for managing a list of strings as tags.
|
|
15
|
+
* It reads `ui_meta.placeholder` from the field schema. Uses MText and Button for tags.
|
|
16
|
+
* Can be configured to work with an array of strings or an array of objects.
|
|
17
|
+
*/
|
|
18
|
+
export declare function TagInputField(props: TagInputFieldCombinedProps): import("react").JSX.Element;
|
|
19
|
+
export {};
|
|
20
|
+
//# sourceMappingURL=TagInputField.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"TagInputField.d.ts","sourceRoot":"","sources":["../../../../src/components/form/fields/TagInputField.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,UAAU,EAAE,MAAM,UAAU,CAAC;AAGtC,UAAU,kBAAkB;IAC1B,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB;;;;OAIG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAC;CAEnB;AAID,KAAK,0BAA0B,GAAG,kBAAkB,GAAG,UAAU,CAAC,GAAG,EAAE,GAAG,MAAM,EAAE,EAAE,GAAG,CAAC,CAAC;AAGzF;;;;GAIG;AAKH,wBAAgB,aAAa,CAAC,KAAK,EAAE,0BAA0B,+BAgM9D"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"i18n.d.ts","sourceRoot":"","sources":["../../src/config/i18n.ts"],"names":[],"mappings":"AACA,OAAO,IAAI,MAAM,SAAS,CAAC;
|
|
1
|
+
{"version":3,"file":"i18n.d.ts","sourceRoot":"","sources":["../../src/config/i18n.ts"],"names":[],"mappings":"AACA,OAAO,IAAI,MAAM,SAAS,CAAC;AAwE3B,eAAe,IAAI,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useFormController.d.ts","sourceRoot":"","sources":["../../src/hooks/useFormController.ts"],"names":[],"mappings":"AAOA,MAAM,WAAW,qBAAqB;IACpC,QAAQ,EAAE,MAAM,CAAC;IACjB,OAAO,EAAE,MAAM,CAAC;IAChB,OAAO,EAAE,MAAM,CAAC;CACjB;AAED,MAAM,WAAW,eAAe;IAC9B,OAAO,EAAE,qBAAqB,EAAE,CAAC;CAClC;AAED,MAAM,WAAW,GAAG,CAAC,CAAC,GAAG,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC;IAC9C,GAAG,EAAE,CAAC,CAAC;IACP,MAAM,EAAE,CAAC,IAAI,EAAE,OAAO,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,IAAI,EAAE,CAAC,KAAK,CAAC,CAAC,KAAK,IAAI,CAAC;IACtD,IAAI,EAAE,CAAC,OAAO,CAAC,EAAE;QAAE,iBAAiB,CAAC,EAAE,OAAO,CAAA;KAAE,KAAK,OAAO,CAAC,IAAI,CAAC,CAAC;IACnE,MAAM,EAAE,MAAM,IAAI,CAAC;IACnB,SAAS,EAAE,OAAO,CAAC;IACnB,QAAQ,EAAE,OAAO,CAAC;IAClB,QAAQ,EAAE,OAAO,CAAC;IAClB,MAAM,EAAE,MAAM,EAAE,CAAC;IACjB,OAAO,EAAE,MAAM,EAAE,CAAC;IAClB,eAAe,CAAC,EAAE,eAAe,GAAG,IAAI,CAAC;IACzC,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,OAAO,EAAE,MAAM,OAAO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