fastapi-rtk 1.0.24 → 1.0.26

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 (104) hide show
  1. package/dist/.bundled/jsonforms/cjs/_virtual/index10.cjs +2 -2
  2. package/dist/.bundled/jsonforms/cjs/_virtual/index6.cjs +2 -2
  3. package/dist/.bundled/jsonforms/cjs/_virtual/index7.cjs +2 -2
  4. package/dist/.bundled/jsonforms/cjs/_virtual/index8.cjs +2 -2
  5. package/dist/.bundled/jsonforms/cjs/_virtual/index9.cjs +2 -2
  6. package/dist/.bundled/jsonforms/cjs/packages/jsonforms/src/MantineInputs/MantineBooleanInput.cjs +5 -15
  7. package/dist/.bundled/jsonforms/cjs/packages/jsonforms/src/MantineInputs/MantineEnumInput.cjs +6 -3
  8. package/dist/.bundled/jsonforms/cjs/packages/jsonforms/src/MantineInputs/MantineOneOfEnumInput.cjs +8 -5
  9. package/dist/.bundled/jsonforms/cjs/packages/jsonforms/src/hooks/useBooleanProps.cjs +40 -18
  10. package/dist/.bundled/jsonforms/cjs/packages/jsonforms/src/hooks/useSelectProps.cjs +10 -2
  11. package/dist/.bundled/jsonforms/esm/_virtual/index10.mjs +2 -2
  12. package/dist/.bundled/jsonforms/esm/_virtual/index6.mjs +2 -2
  13. package/dist/.bundled/jsonforms/esm/_virtual/index7.mjs +2 -2
  14. package/dist/.bundled/jsonforms/esm/_virtual/index8.mjs +2 -2
  15. package/dist/.bundled/jsonforms/esm/_virtual/index9.mjs +2 -2
  16. package/dist/.bundled/jsonforms/esm/packages/jsonforms/src/MantineInputs/MantineBooleanInput.mjs +6 -16
  17. package/dist/.bundled/jsonforms/esm/packages/jsonforms/src/MantineInputs/MantineEnumInput.mjs +7 -4
  18. package/dist/.bundled/jsonforms/esm/packages/jsonforms/src/MantineInputs/MantineOneOfEnumInput.mjs +9 -6
  19. package/dist/.bundled/jsonforms/esm/packages/jsonforms/src/hooks/useBooleanProps.mjs +40 -18
  20. package/dist/.bundled/jsonforms/esm/packages/jsonforms/src/hooks/useSelectProps.mjs +10 -2
  21. package/dist/.external/cjs/ajv@8.17.1/ajv/dist/compile/index.cjs +1 -1
  22. package/dist/.external/cjs/ajv@8.17.1/ajv/dist/vocabularies/applicator/index.cjs +1 -1
  23. package/dist/.external/cjs/ajv@8.17.1/ajv/dist/vocabularies/core/index.cjs +1 -1
  24. package/dist/.external/cjs/ajv@8.17.1/ajv/dist/vocabularies/format/index.cjs +1 -1
  25. package/dist/.external/cjs/ajv@8.17.1/ajv/dist/vocabularies/validation/index.cjs +1 -1
  26. package/dist/.external/cjs/{i18next@25.8.1_typescript@5.9.3 → i18next@25.8.4_typescript@5.9.3}/i18next/dist/esm/i18next.cjs +14 -2
  27. package/dist/.external/esm/ajv@8.17.1/ajv/dist/compile/index.mjs +1 -1
  28. package/dist/.external/esm/ajv@8.17.1/ajv/dist/vocabularies/applicator/index.mjs +1 -1
  29. package/dist/.external/esm/ajv@8.17.1/ajv/dist/vocabularies/core/index.mjs +1 -1
  30. package/dist/.external/esm/ajv@8.17.1/ajv/dist/vocabularies/format/index.mjs +1 -1
  31. package/dist/.external/esm/ajv@8.17.1/ajv/dist/vocabularies/validation/index.mjs +1 -1
  32. package/dist/.external/esm/{i18next@25.8.1_typescript@5.9.3 → i18next@25.8.4_typescript@5.9.3}/i18next/dist/esm/i18next.mjs +14 -2
  33. package/dist/core/cjs/ActionIcons/Add/Add.cjs +1 -1
  34. package/dist/core/cjs/ActionIcons/Delete/Delete.cjs +1 -1
  35. package/dist/core/cjs/ActionIcons/Download/Download.cjs +1 -1
  36. package/dist/core/cjs/ActionIcons/Edit/Edit.cjs +1 -1
  37. package/dist/core/cjs/ActionIcons/Refresh/Refresh.cjs +1 -1
  38. package/dist/core/cjs/ActionIcons/View/View.cjs +1 -1
  39. package/dist/core/cjs/Dialogs/AddDialog.cjs +1 -1
  40. package/dist/core/cjs/Dialogs/DeleteDialog.cjs +1 -1
  41. package/dist/core/cjs/Dialogs/EditDialog.cjs +1 -1
  42. package/dist/core/cjs/Modals/CommonModal.cjs +1 -1
  43. package/dist/core/cjs/Tables/DataGrid/ErrorDialog.cjs +1 -1
  44. package/dist/core/cjs/Tables/NextGenDataGrid/hooks/useColumns/ColumnHeaderFilterInput/ColumnHeaderFilterInput.cjs +1 -1
  45. package/dist/core/cjs/Tables/NextGenDataGrid/hooks/useColumns/ColumnHeaderFilterInput/HeaderInputs/HeaderBetweenInput.cjs +1 -1
  46. package/dist/core/cjs/Tables/NextGenDataGrid/hooks/useColumns/HeaderAdvancedFiltersMenuButton.cjs +1 -1
  47. package/dist/core/cjs/Wrappers/ApiProvider/hooks/useProvideForm.cjs +1 -1
  48. package/dist/core/cjs/Wrappers/Provider/Contexts/LangContext.cjs +3 -3
  49. package/dist/core/cjs/Wrappers/Provider/hooks/useProvideLang.cjs +1 -1
  50. package/dist/core/cjs/index.cjs +1 -1
  51. package/dist/core/esm/ActionIcons/Add/Add.mjs +1 -1
  52. package/dist/core/esm/ActionIcons/Delete/Delete.mjs +1 -1
  53. package/dist/core/esm/ActionIcons/Download/Download.mjs +1 -1
  54. package/dist/core/esm/ActionIcons/Edit/Edit.mjs +1 -1
  55. package/dist/core/esm/ActionIcons/Refresh/Refresh.mjs +1 -1
  56. package/dist/core/esm/ActionIcons/View/View.mjs +1 -1
  57. package/dist/core/esm/Dialogs/AddDialog.mjs +1 -1
  58. package/dist/core/esm/Dialogs/DeleteDialog.mjs +1 -1
  59. package/dist/core/esm/Dialogs/EditDialog.mjs +1 -1
  60. package/dist/core/esm/Modals/CommonModal.mjs +1 -1
  61. package/dist/core/esm/Tables/DataGrid/ErrorDialog.mjs +1 -1
  62. package/dist/core/esm/Tables/NextGenDataGrid/hooks/useColumns/ColumnHeaderFilterInput/ColumnHeaderFilterInput.mjs +1 -1
  63. package/dist/core/esm/Tables/NextGenDataGrid/hooks/useColumns/ColumnHeaderFilterInput/HeaderInputs/HeaderBetweenInput.mjs +1 -1
  64. package/dist/core/esm/Tables/NextGenDataGrid/hooks/useColumns/HeaderAdvancedFiltersMenuButton.mjs +1 -1
  65. package/dist/core/esm/Wrappers/ApiProvider/hooks/useProvideForm.mjs +1 -1
  66. package/dist/core/esm/Wrappers/Provider/Contexts/LangContext.mjs +3 -3
  67. package/dist/core/esm/Wrappers/Provider/hooks/useProvideLang.mjs +1 -1
  68. package/dist/core/esm/index.mjs +1 -1
  69. package/dist/jsonforms/cjs/MantineInputs/MantineBooleanInput.cjs +5 -15
  70. package/dist/jsonforms/cjs/MantineInputs/MantineEnumInput.cjs +6 -3
  71. package/dist/jsonforms/cjs/MantineInputs/MantineOneOfEnumInput.cjs +8 -5
  72. package/dist/jsonforms/cjs/hooks/useBooleanProps.cjs +40 -18
  73. package/dist/jsonforms/cjs/hooks/useSelectProps.cjs +10 -2
  74. package/dist/jsonforms/esm/MantineInputs/MantineBooleanInput.mjs +6 -16
  75. package/dist/jsonforms/esm/MantineInputs/MantineEnumInput.mjs +7 -4
  76. package/dist/jsonforms/esm/MantineInputs/MantineOneOfEnumInput.mjs +9 -6
  77. package/dist/jsonforms/esm/hooks/useBooleanProps.mjs +40 -18
  78. package/dist/jsonforms/esm/hooks/useSelectProps.mjs +10 -2
  79. package/dist/jsonforms/lib/hooks/useBooleanProps.d.ts +6 -6
  80. package/dist/jsonforms/lib/hooks/useMultiSelectProps.d.ts +8 -0
  81. package/dist/jsonforms/lib/hooks/useSelectProps.d.ts +15 -1
  82. package/dist/zustand/cjs/useProxy/useProxy.cjs +1 -1
  83. package/dist/zustand/esm/useProxy/useProxy.mjs +1 -1
  84. package/package.json +1 -1
  85. /package/dist/.external/cjs/{react-i18next@15.7.4_i18next@25.8.1_react-dom@19.2.4_react@19.2.4_typescript@5.9.3 → react-i18next@15.7.4_i18next@25.8.4_react-dom@19.2.4_react@19.2.4_typescript@5.9.3}/react-i18next/dist/es/I18nextProvider.cjs +0 -0
  86. /package/dist/.external/cjs/{react-i18next@15.7.4_i18next@25.8.1_react-dom@19.2.4_react@19.2.4_typescript@5.9.3 → react-i18next@15.7.4_i18next@25.8.4_react-dom@19.2.4_react@19.2.4_typescript@5.9.3}/react-i18next/dist/es/context.cjs +0 -0
  87. /package/dist/.external/cjs/{react-i18next@15.7.4_i18next@25.8.1_react-dom@19.2.4_react@19.2.4_typescript@5.9.3 → react-i18next@15.7.4_i18next@25.8.4_react-dom@19.2.4_react@19.2.4_typescript@5.9.3}/react-i18next/dist/es/defaults.cjs +0 -0
  88. /package/dist/.external/cjs/{react-i18next@15.7.4_i18next@25.8.1_react-dom@19.2.4_react@19.2.4_typescript@5.9.3 → react-i18next@15.7.4_i18next@25.8.4_react-dom@19.2.4_react@19.2.4_typescript@5.9.3}/react-i18next/dist/es/i18nInstance.cjs +0 -0
  89. /package/dist/.external/cjs/{react-i18next@15.7.4_i18next@25.8.1_react-dom@19.2.4_react@19.2.4_typescript@5.9.3 → react-i18next@15.7.4_i18next@25.8.4_react-dom@19.2.4_react@19.2.4_typescript@5.9.3}/react-i18next/dist/es/initReactI18next.cjs +0 -0
  90. /package/dist/.external/cjs/{react-i18next@15.7.4_i18next@25.8.1_react-dom@19.2.4_react@19.2.4_typescript@5.9.3 → react-i18next@15.7.4_i18next@25.8.4_react-dom@19.2.4_react@19.2.4_typescript@5.9.3}/react-i18next/dist/es/unescape.cjs +0 -0
  91. /package/dist/.external/cjs/{react-i18next@15.7.4_i18next@25.8.1_react-dom@19.2.4_react@19.2.4_typescript@5.9.3 → react-i18next@15.7.4_i18next@25.8.4_react-dom@19.2.4_react@19.2.4_typescript@5.9.3}/react-i18next/dist/es/useTranslation.cjs +0 -0
  92. /package/dist/.external/cjs/{react-i18next@15.7.4_i18next@25.8.1_react-dom@19.2.4_react@19.2.4_typescript@5.9.3 → react-i18next@15.7.4_i18next@25.8.4_react-dom@19.2.4_react@19.2.4_typescript@5.9.3}/react-i18next/dist/es/utils.cjs +0 -0
  93. /package/dist/.external/cjs/{zustand@5.0.11_@types_react@19.2.10_react@19.2.4 → zustand@5.0.11_@types_react@19.2.13_react@19.2.4}/zustand/esm/react.cjs +0 -0
  94. /package/dist/.external/cjs/{zustand@5.0.11_@types_react@19.2.10_react@19.2.4 → zustand@5.0.11_@types_react@19.2.13_react@19.2.4}/zustand/esm/vanilla.cjs +0 -0
  95. /package/dist/.external/esm/{react-i18next@15.7.4_i18next@25.8.1_react-dom@19.2.4_react@19.2.4_typescript@5.9.3 → react-i18next@15.7.4_i18next@25.8.4_react-dom@19.2.4_react@19.2.4_typescript@5.9.3}/react-i18next/dist/es/I18nextProvider.mjs +0 -0
  96. /package/dist/.external/esm/{react-i18next@15.7.4_i18next@25.8.1_react-dom@19.2.4_react@19.2.4_typescript@5.9.3 → react-i18next@15.7.4_i18next@25.8.4_react-dom@19.2.4_react@19.2.4_typescript@5.9.3}/react-i18next/dist/es/context.mjs +0 -0
  97. /package/dist/.external/esm/{react-i18next@15.7.4_i18next@25.8.1_react-dom@19.2.4_react@19.2.4_typescript@5.9.3 → react-i18next@15.7.4_i18next@25.8.4_react-dom@19.2.4_react@19.2.4_typescript@5.9.3}/react-i18next/dist/es/defaults.mjs +0 -0
  98. /package/dist/.external/esm/{react-i18next@15.7.4_i18next@25.8.1_react-dom@19.2.4_react@19.2.4_typescript@5.9.3 → react-i18next@15.7.4_i18next@25.8.4_react-dom@19.2.4_react@19.2.4_typescript@5.9.3}/react-i18next/dist/es/i18nInstance.mjs +0 -0
  99. /package/dist/.external/esm/{react-i18next@15.7.4_i18next@25.8.1_react-dom@19.2.4_react@19.2.4_typescript@5.9.3 → react-i18next@15.7.4_i18next@25.8.4_react-dom@19.2.4_react@19.2.4_typescript@5.9.3}/react-i18next/dist/es/initReactI18next.mjs +0 -0
  100. /package/dist/.external/esm/{react-i18next@15.7.4_i18next@25.8.1_react-dom@19.2.4_react@19.2.4_typescript@5.9.3 → react-i18next@15.7.4_i18next@25.8.4_react-dom@19.2.4_react@19.2.4_typescript@5.9.3}/react-i18next/dist/es/unescape.mjs +0 -0
  101. /package/dist/.external/esm/{react-i18next@15.7.4_i18next@25.8.1_react-dom@19.2.4_react@19.2.4_typescript@5.9.3 → react-i18next@15.7.4_i18next@25.8.4_react-dom@19.2.4_react@19.2.4_typescript@5.9.3}/react-i18next/dist/es/useTranslation.mjs +0 -0
  102. /package/dist/.external/esm/{react-i18next@15.7.4_i18next@25.8.1_react-dom@19.2.4_react@19.2.4_typescript@5.9.3 → react-i18next@15.7.4_i18next@25.8.4_react-dom@19.2.4_react@19.2.4_typescript@5.9.3}/react-i18next/dist/es/utils.mjs +0 -0
  103. /package/dist/.external/esm/{zustand@5.0.11_@types_react@19.2.10_react@19.2.4 → zustand@5.0.11_@types_react@19.2.13_react@19.2.4}/zustand/esm/react.mjs +0 -0
  104. /package/dist/.external/esm/{zustand@5.0.11_@types_react@19.2.10_react@19.2.4 → zustand@5.0.11_@types_react@19.2.13_react@19.2.4}/zustand/esm/vanilla.mjs +0 -0
@@ -1,4 +1,4 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
3
- var compile = {};
4
- exports.__exports = compile;
3
+ var format = {};
4
+ exports.__exports = format;
@@ -1,4 +1,4 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
3
- var core = {};
4
- exports.__exports = core;
3
+ var compile = {};
4
+ exports.__exports = compile;
@@ -1,4 +1,4 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
3
- var validation = {};
4
- exports.__exports = validation;
3
+ var core = {};
4
+ exports.__exports = core;
@@ -1,4 +1,4 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
3
- var applicator = {};
4
- exports.__exports = applicator;
3
+ var validation = {};
4
+ exports.__exports = validation;
@@ -1,4 +1,4 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
3
- var format = {};
4
- exports.__exports = format;
3
+ var applicator = {};
4
+ exports.__exports = applicator;
@@ -1,7 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
3
3
  const jsxRuntime = require("react/jsx-runtime");
4
- const utils = require("fastapi-rtk/utils");
5
4
  const core = require("@mantine/core");
6
5
  const React = require("react");
7
6
  const useBooleanProps = require("../hooks/useBooleanProps.cjs");
@@ -11,25 +10,16 @@ function MantineBooleanInput(props) {
11
10
  var _a;
12
11
  const { value, ...commonProps } = useCommonProps.useCommonProps(props);
13
12
  const { path, schema, uischema } = props;
14
- const isCheckbox = React.useMemo(
15
- () => {
16
- var _a2;
17
- return (((_a2 = uischema.options) == null ? void 0 : _a2.variant) ?? schema.format) === "checkbox";
18
- },
19
- [schema.format, (_a = uischema.options) == null ? void 0 : _a.variant]
20
- );
21
- const booleanProps = useBooleanProps.useBooleanProps(isCheckbox, { value, onChange: commonProps.onChange });
13
+ const format = ((_a = uischema.options) == null ? void 0 : _a.variant) ?? schema.format ?? "select";
14
+ const booleanProps = useBooleanProps.useBooleanProps(format, { value, onChange: commonProps.onChange });
22
15
  const componentProps = React.useMemo(() => ({ ...commonProps, ...booleanProps }), [booleanProps, commonProps]);
23
16
  const [Component, _props] = useContextProps.useContextProps("Boolean", path, componentProps, props);
24
17
  if (!props.visible) {
25
18
  return null;
26
19
  }
27
20
  const { inputWrapperOrder, ...__props } = _props;
28
- return Component === void 0 ? isCheckbox ? /* @__PURE__ */ jsxRuntime.jsx(
29
- core.Checkbox,
30
- {
31
- ...utils.deepMerge({ styles: { root: { minHeight: "calc(2.25rem * 1)", alignContent: "center" } } }, __props)
32
- }
33
- ) : /* @__PURE__ */ jsxRuntime.jsx(core.Select, { inputWrapperOrder, ...__props }) : Component;
21
+ const InnerComponent = format === "checkbox" ? core.Checkbox : format === "native" ? core.NativeSelect : core.Select;
22
+ const innerProps = format === "checkbox" ? {} : { inputWrapperOrder };
23
+ return Component === void 0 ? /* @__PURE__ */ jsxRuntime.jsx(InnerComponent, { ...innerProps, ...__props }) : Component;
34
24
  }
35
25
  exports.MantineBooleanInput = MantineBooleanInput;
@@ -7,14 +7,17 @@ const useCommonProps = require("../hooks/useCommonProps.cjs");
7
7
  const useContextProps = require("../hooks/useContextProps.cjs");
8
8
  const useSelectProps = require("../hooks/useSelectProps.cjs");
9
9
  function MantineEnumInput(props) {
10
+ var _a;
10
11
  const { value, ...commonProps } = useCommonProps.useCommonProps(props);
11
- const { path } = props;
12
- const selectProps = useSelectProps.useSelectProps(value, props.options);
12
+ const { path, schema, uischema } = props;
13
+ const isNative = (((_a = uischema.options) == null ? void 0 : _a.variant) ?? schema.format) === "native";
14
+ const selectProps = useSelectProps.useSelectProps(value, props.options, isNative, { onChange: commonProps.onChange });
13
15
  const componentProps = React.useMemo(() => ({ ...commonProps, ...selectProps }), [commonProps, selectProps]);
14
16
  const [Component, _props] = useContextProps.useContextProps("Enum", path, componentProps, props);
15
17
  if (!props.visible) {
16
18
  return null;
17
19
  }
18
- return Component === void 0 ? /* @__PURE__ */ jsxRuntime.jsx(core.Select, { ..._props }) : Component;
20
+ const InnerComponent = isNative ? core.NativeSelect : core.Select;
21
+ return Component === void 0 ? /* @__PURE__ */ jsxRuntime.jsx(InnerComponent, { ..._props }) : Component;
19
22
  }
20
23
  exports.MantineEnumInput = MantineEnumInput;
@@ -7,13 +7,15 @@ const useCommonProps = require("../hooks/useCommonProps.cjs");
7
7
  const useContextProps = require("../hooks/useContextProps.cjs");
8
8
  const useSelectProps = require("../hooks/useSelectProps.cjs");
9
9
  function MantineOneOfEnumInput(props) {
10
+ var _a;
10
11
  const { value, ...commonProps } = useCommonProps.useCommonProps(props);
11
- const { path } = props;
12
- const selectProps = useSelectProps.useSelectProps(value, props.options);
12
+ const { path, schema, uischema } = props;
13
+ const isNative = (((_a = uischema.options) == null ? void 0 : _a.variant) ?? schema.format) === "native";
14
+ const selectProps = useSelectProps.useSelectProps(value, props.options, isNative, { onChange: commonProps.onChange });
13
15
  const errorProps = React.useMemo(() => {
14
- var _a;
16
+ var _a2;
15
17
  const isNull = value === null;
16
- const error = (_a = commonProps.error) == null ? void 0 : _a.filter(
18
+ const error = (_a2 = commonProps.error) == null ? void 0 : _a2.filter(
17
19
  (error2) => error2.key === "is a required property" || !isNull ? error2 : false
18
20
  );
19
21
  return (error == null ? void 0 : error.length) ? { error } : { error: isNull && commonProps.required ? "is a required property" : void 0 };
@@ -26,6 +28,7 @@ function MantineOneOfEnumInput(props) {
26
28
  if (!props.visible) {
27
29
  return null;
28
30
  }
29
- return Component === void 0 ? /* @__PURE__ */ jsxRuntime.jsx(core.Select, { ..._props }) : Component;
31
+ const InnerComponent = isNative ? core.NativeSelect : core.Select;
32
+ return Component === void 0 ? /* @__PURE__ */ jsxRuntime.jsx(InnerComponent, { ..._props }) : Component;
30
33
  }
31
34
  exports.MantineOneOfEnumInput = MantineOneOfEnumInput;
@@ -1,23 +1,45 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
3
3
  const utils = require("fastapi-rtk/utils");
4
- function useBooleanProps(isCheckbox, { value, onChange }) {
5
- return isCheckbox ? {
6
- checked: value || false,
7
- onChange: (event) => onChange(event.target.checked)
8
- } : {
9
- data: [
10
- {
11
- value: String(true),
12
- label: "True"
13
- },
14
- {
15
- value: String(false),
16
- label: "False"
17
- }
18
- ],
19
- value: utils.isTruthy(value) ? String(value) : null,
20
- onChange: (value2) => onChange(utils.isTruthy(value2) ? value2 === String(true) : void 0)
21
- };
4
+ function useBooleanProps(type, { value, onChange }) {
5
+ switch (type) {
6
+ case "checkbox":
7
+ return {
8
+ checked: value || false,
9
+ onChange: (event) => onChange(event.target.checked)
10
+ };
11
+ case "native":
12
+ return {
13
+ data: [
14
+ {
15
+ value: String(true),
16
+ label: "True"
17
+ },
18
+ {
19
+ value: String(false),
20
+ label: "False"
21
+ }
22
+ ],
23
+ value: utils.isTruthy(value) ? String(value) : "",
24
+ onChange: (event) => onChange(utils.isTruthy(event.currentTarget.value) ? event.currentTarget.value === String(true) : void 0)
25
+ };
26
+ case "select":
27
+ return {
28
+ data: [
29
+ {
30
+ value: String(true),
31
+ label: "True"
32
+ },
33
+ {
34
+ value: String(false),
35
+ label: "False"
36
+ }
37
+ ],
38
+ value: utils.isTruthy(value) ? String(value) : null,
39
+ onChange: (value2) => onChange(utils.isTruthy(value2) ? value2 === String(true) : void 0)
40
+ };
41
+ default:
42
+ throw new Error(`Unknown boolean type: ${type}`);
43
+ }
22
44
  }
23
45
  exports.useBooleanProps = useBooleanProps;
@@ -1,6 +1,14 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
3
- function useSelectProps(value, options) {
4
- return { data: options, value: value || null, searchable: true };
3
+ function useSelectProps(value, options, isNative = false, { onChange } = {}) {
4
+ if (isNative) {
5
+ return {
6
+ data: [{ value: "", label: "" }, ...options],
7
+ value: value || "",
8
+ onChange: (event) => onChange(event.currentTarget.value || void 0)
9
+ };
10
+ } else {
11
+ return { data: options, value: value || null, searchable: true };
12
+ }
5
13
  }
6
14
  exports.useSelectProps = useSelectProps;
@@ -1,4 +1,4 @@
1
- var compile = {};
1
+ var format = {};
2
2
  export {
3
- compile as __exports
3
+ format as __exports
4
4
  };
@@ -1,4 +1,4 @@
1
- var core = {};
1
+ var compile = {};
2
2
  export {
3
- core as __exports
3
+ compile as __exports
4
4
  };
@@ -1,4 +1,4 @@
1
- var validation = {};
1
+ var core = {};
2
2
  export {
3
- validation as __exports
3
+ core as __exports
4
4
  };
@@ -1,4 +1,4 @@
1
- var applicator = {};
1
+ var validation = {};
2
2
  export {
3
- applicator as __exports
3
+ validation as __exports
4
4
  };
@@ -1,4 +1,4 @@
1
- var format = {};
1
+ var applicator = {};
2
2
  export {
3
- format as __exports
3
+ applicator as __exports
4
4
  };
@@ -1,6 +1,5 @@
1
1
  import { jsx } from "react/jsx-runtime";
2
- import { deepMerge } from "fastapi-rtk/utils";
3
- import { Checkbox, Select } from "@mantine/core";
2
+ import { Checkbox, NativeSelect, Select } from "@mantine/core";
4
3
  import { useMemo } from "react";
5
4
  import { useBooleanProps } from "../hooks/useBooleanProps.mjs";
6
5
  import { useCommonProps } from "../hooks/useCommonProps.mjs";
@@ -9,26 +8,17 @@ function MantineBooleanInput(props) {
9
8
  var _a;
10
9
  const { value, ...commonProps } = useCommonProps(props);
11
10
  const { path, schema, uischema } = props;
12
- const isCheckbox = useMemo(
13
- () => {
14
- var _a2;
15
- return (((_a2 = uischema.options) == null ? void 0 : _a2.variant) ?? schema.format) === "checkbox";
16
- },
17
- [schema.format, (_a = uischema.options) == null ? void 0 : _a.variant]
18
- );
19
- const booleanProps = useBooleanProps(isCheckbox, { value, onChange: commonProps.onChange });
11
+ const format = ((_a = uischema.options) == null ? void 0 : _a.variant) ?? schema.format ?? "select";
12
+ const booleanProps = useBooleanProps(format, { value, onChange: commonProps.onChange });
20
13
  const componentProps = useMemo(() => ({ ...commonProps, ...booleanProps }), [booleanProps, commonProps]);
21
14
  const [Component, _props] = useContextProps("Boolean", path, componentProps, props);
22
15
  if (!props.visible) {
23
16
  return null;
24
17
  }
25
18
  const { inputWrapperOrder, ...__props } = _props;
26
- return Component === void 0 ? isCheckbox ? /* @__PURE__ */ jsx(
27
- Checkbox,
28
- {
29
- ...deepMerge({ styles: { root: { minHeight: "calc(2.25rem * 1)", alignContent: "center" } } }, __props)
30
- }
31
- ) : /* @__PURE__ */ jsx(Select, { inputWrapperOrder, ...__props }) : Component;
19
+ const InnerComponent = format === "checkbox" ? Checkbox : format === "native" ? NativeSelect : Select;
20
+ const innerProps = format === "checkbox" ? {} : { inputWrapperOrder };
21
+ return Component === void 0 ? /* @__PURE__ */ jsx(InnerComponent, { ...innerProps, ...__props }) : Component;
32
22
  }
33
23
  export {
34
24
  MantineBooleanInput
@@ -1,19 +1,22 @@
1
1
  import { jsx } from "react/jsx-runtime";
2
- import { Select } from "@mantine/core";
2
+ import { NativeSelect, Select } from "@mantine/core";
3
3
  import { useMemo } from "react";
4
4
  import { useCommonProps } from "../hooks/useCommonProps.mjs";
5
5
  import { useContextProps } from "../hooks/useContextProps.mjs";
6
6
  import { useSelectProps } from "../hooks/useSelectProps.mjs";
7
7
  function MantineEnumInput(props) {
8
+ var _a;
8
9
  const { value, ...commonProps } = useCommonProps(props);
9
- const { path } = props;
10
- const selectProps = useSelectProps(value, props.options);
10
+ const { path, schema, uischema } = props;
11
+ const isNative = (((_a = uischema.options) == null ? void 0 : _a.variant) ?? schema.format) === "native";
12
+ const selectProps = useSelectProps(value, props.options, isNative, { onChange: commonProps.onChange });
11
13
  const componentProps = useMemo(() => ({ ...commonProps, ...selectProps }), [commonProps, selectProps]);
12
14
  const [Component, _props] = useContextProps("Enum", path, componentProps, props);
13
15
  if (!props.visible) {
14
16
  return null;
15
17
  }
16
- return Component === void 0 ? /* @__PURE__ */ jsx(Select, { ..._props }) : Component;
18
+ const InnerComponent = isNative ? NativeSelect : Select;
19
+ return Component === void 0 ? /* @__PURE__ */ jsx(InnerComponent, { ..._props }) : Component;
17
20
  }
18
21
  export {
19
22
  MantineEnumInput
@@ -1,17 +1,19 @@
1
1
  import { jsx } from "react/jsx-runtime";
2
- import { Select } from "@mantine/core";
2
+ import { NativeSelect, Select } from "@mantine/core";
3
3
  import { useMemo } from "react";
4
4
  import { useCommonProps } from "../hooks/useCommonProps.mjs";
5
5
  import { useContextProps } from "../hooks/useContextProps.mjs";
6
6
  import { useSelectProps } from "../hooks/useSelectProps.mjs";
7
7
  function MantineOneOfEnumInput(props) {
8
+ var _a;
8
9
  const { value, ...commonProps } = useCommonProps(props);
9
- const { path } = props;
10
- const selectProps = useSelectProps(value, props.options);
10
+ const { path, schema, uischema } = props;
11
+ const isNative = (((_a = uischema.options) == null ? void 0 : _a.variant) ?? schema.format) === "native";
12
+ const selectProps = useSelectProps(value, props.options, isNative, { onChange: commonProps.onChange });
11
13
  const errorProps = useMemo(() => {
12
- var _a;
14
+ var _a2;
13
15
  const isNull = value === null;
14
- const error = (_a = commonProps.error) == null ? void 0 : _a.filter(
16
+ const error = (_a2 = commonProps.error) == null ? void 0 : _a2.filter(
15
17
  (error2) => error2.key === "is a required property" || !isNull ? error2 : false
16
18
  );
17
19
  return (error == null ? void 0 : error.length) ? { error } : { error: isNull && commonProps.required ? "is a required property" : void 0 };
@@ -24,7 +26,8 @@ function MantineOneOfEnumInput(props) {
24
26
  if (!props.visible) {
25
27
  return null;
26
28
  }
27
- return Component === void 0 ? /* @__PURE__ */ jsx(Select, { ..._props }) : Component;
29
+ const InnerComponent = isNative ? NativeSelect : Select;
30
+ return Component === void 0 ? /* @__PURE__ */ jsx(InnerComponent, { ..._props }) : Component;
28
31
  }
29
32
  export {
30
33
  MantineOneOfEnumInput
@@ -1,22 +1,44 @@
1
1
  import { isTruthy } from "fastapi-rtk/utils";
2
- function useBooleanProps(isCheckbox, { value, onChange }) {
3
- return isCheckbox ? {
4
- checked: value || false,
5
- onChange: (event) => onChange(event.target.checked)
6
- } : {
7
- data: [
8
- {
9
- value: String(true),
10
- label: "True"
11
- },
12
- {
13
- value: String(false),
14
- label: "False"
15
- }
16
- ],
17
- value: isTruthy(value) ? String(value) : null,
18
- onChange: (value2) => onChange(isTruthy(value2) ? value2 === String(true) : void 0)
19
- };
2
+ function useBooleanProps(type, { value, onChange }) {
3
+ switch (type) {
4
+ case "checkbox":
5
+ return {
6
+ checked: value || false,
7
+ onChange: (event) => onChange(event.target.checked)
8
+ };
9
+ case "native":
10
+ return {
11
+ data: [
12
+ {
13
+ value: String(true),
14
+ label: "True"
15
+ },
16
+ {
17
+ value: String(false),
18
+ label: "False"
19
+ }
20
+ ],
21
+ value: isTruthy(value) ? String(value) : "",
22
+ onChange: (event) => onChange(isTruthy(event.currentTarget.value) ? event.currentTarget.value === String(true) : void 0)
23
+ };
24
+ case "select":
25
+ return {
26
+ data: [
27
+ {
28
+ value: String(true),
29
+ label: "True"
30
+ },
31
+ {
32
+ value: String(false),
33
+ label: "False"
34
+ }
35
+ ],
36
+ value: isTruthy(value) ? String(value) : null,
37
+ onChange: (value2) => onChange(isTruthy(value2) ? value2 === String(true) : void 0)
38
+ };
39
+ default:
40
+ throw new Error(`Unknown boolean type: ${type}`);
41
+ }
20
42
  }
21
43
  export {
22
44
  useBooleanProps
@@ -1,5 +1,13 @@
1
- function useSelectProps(value, options) {
2
- return { data: options, value: value || null, searchable: true };
1
+ function useSelectProps(value, options, isNative = false, { onChange } = {}) {
2
+ if (isNative) {
3
+ return {
4
+ data: [{ value: "", label: "" }, ...options],
5
+ value: value || "",
6
+ onChange: (event) => onChange(event.currentTarget.value || void 0)
7
+ };
8
+ } else {
9
+ return { data: options, value: value || null, searchable: true };
10
+ }
3
11
  }
4
12
  export {
5
13
  useSelectProps
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
3
- const index = require("../../../../../../.bundled/jsonforms/cjs/_virtual/index10.cjs");
3
+ const index = require("../../../../../../.bundled/jsonforms/cjs/_virtual/index6.cjs");
4
4
  const index$1 = require("./codegen/index.cjs");
5
5
  const validation_error = require("../runtime/validation_error.cjs");
6
6
  const names = require("./names.cjs");
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
3
- const index = require("../../../../../../../.bundled/jsonforms/cjs/_virtual/index8.cjs");
3
+ const index = require("../../../../../../../.bundled/jsonforms/cjs/_virtual/index9.cjs");
4
4
  const additionalItems = require("./additionalItems.cjs");
5
5
  const prefixItems = require("./prefixItems.cjs");
6
6
  const items = require("./items.cjs");
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
3
- const index = require("../../../../../../../.bundled/jsonforms/cjs/_virtual/index6.cjs");
3
+ const index = require("../../../../../../../.bundled/jsonforms/cjs/_virtual/index7.cjs");
4
4
  const id = require("./id.cjs");
5
5
  const ref = require("./ref.cjs");
6
6
  var hasRequiredCore;
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
3
- const index = require("../../../../../../../.bundled/jsonforms/cjs/_virtual/index9.cjs");
3
+ const index = require("../../../../../../../.bundled/jsonforms/cjs/_virtual/index10.cjs");
4
4
  const format = require("./format.cjs");
5
5
  var hasRequiredFormat;
6
6
  function requireFormat() {
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
3
- const index = require("../../../../../../../.bundled/jsonforms/cjs/_virtual/index7.cjs");
3
+ const index = require("../../../../../../../.bundled/jsonforms/cjs/_virtual/index8.cjs");
4
4
  const limitNumber = require("./limitNumber.cjs");
5
5
  const multipleOf = require("./multipleOf.cjs");
6
6
  const limitLength = require("./limitLength.cjs");
@@ -1705,6 +1705,18 @@ const bindMemberFunctions = (inst) => {
1705
1705
  }
1706
1706
  });
1707
1707
  };
1708
+ const usesLocize = (inst) => {
1709
+ var _a, _b, _c, _d, _e, _f, _g, _h, _i;
1710
+ if (((_c = (_b = (_a = inst == null ? void 0 : inst.modules) == null ? void 0 : _a.backend) == null ? void 0 : _b.name) == null ? void 0 : _c.indexOf("Locize")) > 0) return true;
1711
+ if (((_g = (_f = (_e = (_d = inst == null ? void 0 : inst.modules) == null ? void 0 : _d.backend) == null ? void 0 : _e.constructor) == null ? void 0 : _f.name) == null ? void 0 : _g.indexOf("Locize")) > 0) return true;
1712
+ if ((_i = (_h = inst == null ? void 0 : inst.options) == null ? void 0 : _h.backend) == null ? void 0 : _i.backends) {
1713
+ if (inst.options.backend.backends.some((b) => {
1714
+ var _a2, _b2, _c2;
1715
+ return ((_a2 = b == null ? void 0 : b.name) == null ? void 0 : _a2.indexOf("Locize")) > 0 || ((_c2 = (_b2 = b == null ? void 0 : b.constructor) == null ? void 0 : _b2.name) == null ? void 0 : _c2.indexOf("Locize")) > 0;
1716
+ })) return true;
1717
+ }
1718
+ return false;
1719
+ };
1708
1720
  class I18n extends EventEmitter {
1709
1721
  constructor(options = {}, callback) {
1710
1722
  super();
@@ -1757,8 +1769,8 @@ class I18n extends EventEmitter {
1757
1769
  if (typeof this.options.overloadTranslationOptionHandler !== "function") {
1758
1770
  this.options.overloadTranslationOptionHandler = defOpts.overloadTranslationOptionHandler;
1759
1771
  }
1760
- if (this.options.debug === true) {
1761
- if (typeof console !== "undefined") console.warn("i18next is maintained with support from locize.com — consider powering your project with managed localization (AI, CDN, integrations): https://locize.com");
1772
+ if (this.options.showSupportNotice !== false && !usesLocize(this)) {
1773
+ if (typeof console !== "undefined" && typeof console.info !== "undefined") console.info("🌐 i18next is maintained with support from locize.com — consider powering your project with managed localization (AI, CDN, integrations): https://locize.com 💙");
1762
1774
  }
1763
1775
  const createClassOnDemand = (ClassOrObject) => {
1764
1776
  if (!ClassOrObject) return null;
@@ -1,4 +1,4 @@
1
- import { __exports as compile } from "../../../../../../.bundled/jsonforms/esm/_virtual/index10.mjs";
1
+ import { __exports as compile } from "../../../../../../.bundled/jsonforms/esm/_virtual/index6.mjs";
2
2
  import { __require as requireCodegen } from "./codegen/index.mjs";
3
3
  import { __require as requireValidation_error } from "../runtime/validation_error.mjs";
4
4
  import { __require as requireNames } from "./names.mjs";
@@ -1,4 +1,4 @@
1
- import { __exports as applicator } from "../../../../../../../.bundled/jsonforms/esm/_virtual/index8.mjs";
1
+ import { __exports as applicator } from "../../../../../../../.bundled/jsonforms/esm/_virtual/index9.mjs";
2
2
  import { __require as requireAdditionalItems } from "./additionalItems.mjs";
3
3
  import { __require as requirePrefixItems } from "./prefixItems.mjs";
4
4
  import { __require as requireItems } from "./items.mjs";
@@ -1,4 +1,4 @@
1
- import { __exports as core } from "../../../../../../../.bundled/jsonforms/esm/_virtual/index6.mjs";
1
+ import { __exports as core } from "../../../../../../../.bundled/jsonforms/esm/_virtual/index7.mjs";
2
2
  import { __require as requireId } from "./id.mjs";
3
3
  import { __require as requireRef } from "./ref.mjs";
4
4
  var hasRequiredCore;
@@ -1,4 +1,4 @@
1
- import { __exports as format } from "../../../../../../../.bundled/jsonforms/esm/_virtual/index9.mjs";
1
+ import { __exports as format } from "../../../../../../../.bundled/jsonforms/esm/_virtual/index10.mjs";
2
2
  import { __require as requireFormat$1 } from "./format.mjs";
3
3
  var hasRequiredFormat;
4
4
  function requireFormat() {
@@ -1,4 +1,4 @@
1
- import { __exports as validation } from "../../../../../../../.bundled/jsonforms/esm/_virtual/index7.mjs";
1
+ import { __exports as validation } from "../../../../../../../.bundled/jsonforms/esm/_virtual/index8.mjs";
2
2
  import { __require as requireLimitNumber } from "./limitNumber.mjs";
3
3
  import { __require as requireMultipleOf } from "./multipleOf.mjs";
4
4
  import { __require as requireLimitLength } from "./limitLength.mjs";
@@ -1703,6 +1703,18 @@ const bindMemberFunctions = (inst) => {
1703
1703
  }
1704
1704
  });
1705
1705
  };
1706
+ const usesLocize = (inst) => {
1707
+ var _a, _b, _c, _d, _e, _f, _g, _h, _i;
1708
+ if (((_c = (_b = (_a = inst == null ? void 0 : inst.modules) == null ? void 0 : _a.backend) == null ? void 0 : _b.name) == null ? void 0 : _c.indexOf("Locize")) > 0) return true;
1709
+ if (((_g = (_f = (_e = (_d = inst == null ? void 0 : inst.modules) == null ? void 0 : _d.backend) == null ? void 0 : _e.constructor) == null ? void 0 : _f.name) == null ? void 0 : _g.indexOf("Locize")) > 0) return true;
1710
+ if ((_i = (_h = inst == null ? void 0 : inst.options) == null ? void 0 : _h.backend) == null ? void 0 : _i.backends) {
1711
+ if (inst.options.backend.backends.some((b) => {
1712
+ var _a2, _b2, _c2;
1713
+ return ((_a2 = b == null ? void 0 : b.name) == null ? void 0 : _a2.indexOf("Locize")) > 0 || ((_c2 = (_b2 = b == null ? void 0 : b.constructor) == null ? void 0 : _b2.name) == null ? void 0 : _c2.indexOf("Locize")) > 0;
1714
+ })) return true;
1715
+ }
1716
+ return false;
1717
+ };
1706
1718
  class I18n extends EventEmitter {
1707
1719
  constructor(options = {}, callback) {
1708
1720
  super();
@@ -1755,8 +1767,8 @@ class I18n extends EventEmitter {
1755
1767
  if (typeof this.options.overloadTranslationOptionHandler !== "function") {
1756
1768
  this.options.overloadTranslationOptionHandler = defOpts.overloadTranslationOptionHandler;
1757
1769
  }
1758
- if (this.options.debug === true) {
1759
- if (typeof console !== "undefined") console.warn("i18next is maintained with support from locize.com — consider powering your project with managed localization (AI, CDN, integrations): https://locize.com");
1770
+ if (this.options.showSupportNotice !== false && !usesLocize(this)) {
1771
+ if (typeof console !== "undefined" && typeof console.info !== "undefined") console.info("🌐 i18next is maintained with support from locize.com — consider powering your project with managed localization (AI, CDN, integrations): https://locize.com 💙");
1760
1772
  }
1761
1773
  const createClassOnDemand = (ClassOrObject) => {
1762
1774
  if (!ClassOrObject) return null;
@@ -6,7 +6,7 @@ const core = require("@mantine/core");
6
6
  const React = require("react");
7
7
  const useForms = require("../../hooks/api/useForms.cjs");
8
8
  require("../../Wrappers/Provider/Contexts/LangContext.cjs");
9
- const useTranslation = require("../../../../.external/cjs/react-i18next@15.7.4_i18next@25.8.1_react-dom@19.2.4_react@19.2.4_typescript@5.9.3/react-i18next/dist/es/useTranslation.cjs");
9
+ const useTranslation = require("../../../../.external/cjs/react-i18next@15.7.4_i18next@25.8.4_react-dom@19.2.4_react@19.2.4_typescript@5.9.3/react-i18next/dist/es/useTranslation.cjs");
10
10
  const IconPlus = require("../../../../.external/cjs/@tabler_icons-react@3.18.0_react@19.2.4/@tabler/icons-react/dist/esm/icons/IconPlus.cjs");
11
11
  const Add = React.memo(({ tooltipProps, ...props }) => {
12
12
  const { t } = useTranslation.useTranslation();
@@ -6,7 +6,7 @@ const core = require("@mantine/core");
6
6
  const React = require("react");
7
7
  const useForms = require("../../hooks/api/useForms.cjs");
8
8
  require("../../Wrappers/Provider/Contexts/LangContext.cjs");
9
- const useTranslation = require("../../../../.external/cjs/react-i18next@15.7.4_i18next@25.8.1_react-dom@19.2.4_react@19.2.4_typescript@5.9.3/react-i18next/dist/es/useTranslation.cjs");
9
+ const useTranslation = require("../../../../.external/cjs/react-i18next@15.7.4_i18next@25.8.4_react-dom@19.2.4_react@19.2.4_typescript@5.9.3/react-i18next/dist/es/useTranslation.cjs");
10
10
  const IconTrash = require("../../../../.external/cjs/@tabler_icons-react@3.18.0_react@19.2.4/@tabler/icons-react/dist/esm/icons/IconTrash.cjs");
11
11
  const Delete = React.memo(({ id, ...props }) => {
12
12
  const { t } = useTranslation.useTranslation();
@@ -8,7 +8,7 @@ const hooks = require("@mantine/hooks");
8
8
  const React = require("react");
9
9
  const useApi = require("../../hooks/api/useApi.cjs");
10
10
  require("../../Wrappers/Provider/Contexts/LangContext.cjs");
11
- const useTranslation = require("../../../../.external/cjs/react-i18next@15.7.4_i18next@25.8.1_react-dom@19.2.4_react@19.2.4_typescript@5.9.3/react-i18next/dist/es/useTranslation.cjs");
11
+ const useTranslation = require("../../../../.external/cjs/react-i18next@15.7.4_i18next@25.8.4_react-dom@19.2.4_react@19.2.4_typescript@5.9.3/react-i18next/dist/es/useTranslation.cjs");
12
12
  const IconSeparatorVertical = require("../../../../.external/cjs/@tabler_icons-react@3.18.0_react@19.2.4/@tabler/icons-react/dist/esm/icons/IconSeparatorVertical.cjs");
13
13
  const IconDownload = require("../../../../.external/cjs/@tabler_icons-react@3.18.0_react@19.2.4/@tabler/icons-react/dist/esm/icons/IconDownload.cjs");
14
14
  const Download = React.memo(({ tooltipProps, ...props }) => {