fastapi-rtk 0.2.51 → 0.2.53
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/.bundled/jsonforms/cjs/_virtual/index3.cjs +2 -2
- package/dist/.bundled/jsonforms/cjs/_virtual/index4.cjs +2 -2
- package/dist/.bundled/jsonforms/cjs/_virtual/index5.cjs +2 -2
- package/dist/.bundled/jsonforms/cjs/_virtual/map.cjs +6 -0
- package/dist/.bundled/jsonforms/cjs/_virtual/reduce.cjs +5 -2
- package/dist/.bundled/jsonforms/cjs/_virtual/toPairs.cjs +5 -2
- package/dist/.bundled/jsonforms/cjs/packages/jsonforms/src/complex/MantineArrayControl/MantineArrayControl.cjs +6 -0
- package/dist/.bundled/jsonforms/cjs/packages/jsonforms/src/complex/MantineObjectControl.cjs +2 -2
- package/dist/.bundled/jsonforms/cjs/packages/jsonforms/src/complex/MantineTableControl/MantineTableControl.cjs +11 -91
- package/dist/.bundled/jsonforms/cjs/packages/jsonforms/src/complex/MantineTableControl/TableToolbar.cjs +10 -54
- package/dist/.bundled/jsonforms/cjs/packages/jsonforms/src/hooks/useNavigationComponent.cjs +83 -0
- package/dist/.bundled/jsonforms/cjs/packages/jsonforms/src/hooks/useToolbarComponent.cjs +88 -0
- package/dist/.bundled/jsonforms/cjs/packages/jsonforms/src/labels/MantineLabelRenderer.cjs +2 -2
- package/dist/.bundled/jsonforms/cjs/packages/jsonforms/src/layouts/Array/ArrayToolbar.cjs +20 -0
- package/dist/.bundled/jsonforms/cjs/packages/jsonforms/src/layouts/Array/ExpandPanelRenderer.cjs +147 -0
- package/dist/.bundled/jsonforms/cjs/packages/jsonforms/src/layouts/Array/MantineArrayLayout.cjs +81 -0
- package/dist/.bundled/jsonforms/cjs/packages/jsonforms/src/layouts/Array/MantineArrayLayoutRenderer.cjs +21 -0
- package/dist/.bundled/jsonforms/cjs/packages/jsonforms/src/layouts/Categorization/MantineCategorizationLayoutRenderer.cjs +2 -2
- package/dist/.bundled/jsonforms/cjs/packages/jsonforms/src/layouts/MantineGroupLayoutRenderer.cjs +2 -2
- package/dist/.bundled/jsonforms/cjs/packages/jsonforms/src/renderers/mantineRenderers.cjs +7 -4
- package/dist/.bundled/jsonforms/esm/_virtual/index3.mjs +2 -2
- package/dist/.bundled/jsonforms/esm/_virtual/index4.mjs +2 -2
- package/dist/.bundled/jsonforms/esm/_virtual/index5.mjs +2 -2
- package/dist/.bundled/jsonforms/esm/_virtual/map.mjs +7 -0
- package/dist/.bundled/jsonforms/esm/_virtual/reduce.mjs +6 -1
- package/dist/.bundled/jsonforms/esm/_virtual/toPairs.mjs +6 -1
- package/dist/.bundled/jsonforms/esm/packages/jsonforms/src/complex/MantineArrayControl/MantineArrayControl.mjs +7 -1
- package/dist/.bundled/jsonforms/esm/packages/jsonforms/src/complex/MantineObjectControl.mjs +2 -2
- package/dist/.bundled/jsonforms/esm/packages/jsonforms/src/complex/MantineTableControl/MantineTableControl.mjs +13 -93
- package/dist/.bundled/jsonforms/esm/packages/jsonforms/src/complex/MantineTableControl/TableToolbar.mjs +12 -56
- package/dist/.bundled/jsonforms/esm/packages/jsonforms/src/hooks/useNavigationComponent.mjs +83 -0
- package/dist/.bundled/jsonforms/esm/packages/jsonforms/src/hooks/useToolbarComponent.mjs +88 -0
- package/dist/.bundled/jsonforms/esm/packages/jsonforms/src/labels/MantineLabelRenderer.mjs +2 -2
- package/dist/.bundled/jsonforms/esm/packages/jsonforms/src/layouts/Array/ArrayToolbar.mjs +20 -0
- package/dist/.bundled/jsonforms/esm/packages/jsonforms/src/layouts/Array/ExpandPanelRenderer.mjs +147 -0
- package/dist/.bundled/jsonforms/esm/packages/jsonforms/src/layouts/Array/MantineArrayLayout.mjs +81 -0
- package/dist/.bundled/jsonforms/esm/packages/jsonforms/src/layouts/Array/MantineArrayLayoutRenderer.mjs +21 -0
- package/dist/.bundled/jsonforms/esm/packages/jsonforms/src/layouts/Categorization/MantineCategorizationLayoutRenderer.mjs +2 -2
- package/dist/.bundled/jsonforms/esm/packages/jsonforms/src/layouts/MantineGroupLayoutRenderer.mjs +2 -2
- package/dist/.bundled/jsonforms/esm/packages/jsonforms/src/renderers/mantineRenderers.mjs +12 -9
- package/dist/.external/cjs/@jsonforms_core@3.6.0/@jsonforms/core/lib/jsonforms-core.esm.cjs +133 -2
- package/dist/.external/cjs/ajv@8.17.1/ajv/dist/compile/codegen/index.cjs +1 -1
- package/dist/.external/cjs/ajv@8.17.1/ajv/dist/compile/validate/index.cjs +1 -1
- package/dist/.external/cjs/ajv@8.17.1/ajv/dist/vocabularies/discriminator/index.cjs +1 -1
- package/dist/.external/cjs/{i18next@25.5.3_typescript@5.9.3 → i18next@25.6.0_typescript@5.9.3}/i18next/dist/esm/i18next.cjs +6 -1
- package/dist/.external/cjs/lodash@4.17.21/lodash/_baseMap.cjs +21 -0
- package/dist/.external/cjs/lodash@4.17.21/lodash/map.cjs +20 -0
- package/dist/.external/esm/@jsonforms_core@3.6.0/@jsonforms/core/lib/jsonforms-core.esm.mjs +133 -2
- package/dist/.external/esm/ajv@8.17.1/ajv/dist/compile/codegen/index.mjs +1 -1
- package/dist/.external/esm/ajv@8.17.1/ajv/dist/compile/validate/index.mjs +1 -1
- package/dist/.external/esm/ajv@8.17.1/ajv/dist/vocabularies/discriminator/index.mjs +1 -1
- package/dist/.external/esm/{i18next@25.5.3_typescript@5.9.3 → i18next@25.6.0_typescript@5.9.3}/i18next/dist/esm/i18next.mjs +6 -1
- package/dist/.external/esm/lodash@4.17.21/lodash/_baseMap.mjs +21 -0
- package/dist/.external/esm/lodash@4.17.21/lodash/map.mjs +20 -0
- package/dist/core/cjs/ActionIcons/Add/Add.cjs +1 -1
- package/dist/core/cjs/ActionIcons/Delete/Delete.cjs +1 -1
- package/dist/core/cjs/ActionIcons/Download/Download.cjs +1 -1
- package/dist/core/cjs/ActionIcons/Edit/Edit.cjs +1 -1
- package/dist/core/cjs/ActionIcons/Refresh/Refresh.cjs +1 -1
- package/dist/core/cjs/ActionIcons/View/View.cjs +1 -1
- package/dist/core/cjs/Dialogs/AddDialog.cjs +1 -1
- package/dist/core/cjs/Dialogs/DeleteDialog.cjs +1 -1
- package/dist/core/cjs/Dialogs/EditDialog.cjs +1 -1
- package/dist/core/cjs/Modals/CommonModal.cjs +1 -1
- package/dist/core/cjs/Tables/DataGrid/ErrorDialog.cjs +1 -1
- package/dist/core/cjs/Tables/NextGenDataGrid/hooks/useColumns/ColumnHeaderFilterInput/ColumnHeaderFilterInput.cjs +1 -1
- package/dist/core/cjs/Tables/NextGenDataGrid/hooks/useColumns/ColumnHeaderFilterInput/HeaderInputs/HeaderBetweenInput.cjs +1 -1
- package/dist/core/cjs/Tables/NextGenDataGrid/hooks/useColumns/HeaderAdvancedFiltersMenuButton.cjs +1 -1
- package/dist/core/cjs/Wrappers/Provider/Contexts/LangContext.cjs +3 -3
- package/dist/core/cjs/Wrappers/Provider/hooks/useProvideLang.cjs +1 -1
- package/dist/core/cjs/index.cjs +1 -1
- package/dist/core/esm/ActionIcons/Add/Add.mjs +1 -1
- package/dist/core/esm/ActionIcons/Delete/Delete.mjs +1 -1
- package/dist/core/esm/ActionIcons/Download/Download.mjs +1 -1
- package/dist/core/esm/ActionIcons/Edit/Edit.mjs +1 -1
- package/dist/core/esm/ActionIcons/Refresh/Refresh.mjs +1 -1
- package/dist/core/esm/ActionIcons/View/View.mjs +1 -1
- package/dist/core/esm/Dialogs/AddDialog.mjs +1 -1
- package/dist/core/esm/Dialogs/DeleteDialog.mjs +1 -1
- package/dist/core/esm/Dialogs/EditDialog.mjs +1 -1
- package/dist/core/esm/Modals/CommonModal.mjs +1 -1
- package/dist/core/esm/Tables/DataGrid/ErrorDialog.mjs +1 -1
- package/dist/core/esm/Tables/NextGenDataGrid/hooks/useColumns/ColumnHeaderFilterInput/ColumnHeaderFilterInput.mjs +1 -1
- package/dist/core/esm/Tables/NextGenDataGrid/hooks/useColumns/ColumnHeaderFilterInput/HeaderInputs/HeaderBetweenInput.mjs +1 -1
- package/dist/core/esm/Tables/NextGenDataGrid/hooks/useColumns/HeaderAdvancedFiltersMenuButton.mjs +1 -1
- package/dist/core/esm/Wrappers/Provider/Contexts/LangContext.mjs +3 -3
- package/dist/core/esm/Wrappers/Provider/hooks/useProvideLang.mjs +1 -1
- package/dist/core/esm/index.mjs +1 -1
- package/dist/jsonforms/cjs/_virtual/map.cjs +6 -0
- package/dist/jsonforms/cjs/complex/MantineArrayControl/MantineArrayControl.cjs +6 -0
- package/dist/jsonforms/cjs/complex/MantineObjectControl.cjs +2 -2
- package/dist/jsonforms/cjs/complex/MantineTableControl/MantineTableControl.cjs +11 -91
- package/dist/jsonforms/cjs/complex/MantineTableControl/TableToolbar.cjs +13 -57
- package/dist/jsonforms/cjs/hooks/useNavigationComponent.cjs +83 -0
- package/dist/jsonforms/cjs/hooks/useToolbarComponent.cjs +88 -0
- package/dist/jsonforms/cjs/labels/MantineLabelRenderer.cjs +2 -2
- package/dist/jsonforms/cjs/layouts/Array/ArrayToolbar.cjs +20 -0
- package/dist/jsonforms/cjs/layouts/Array/ExpandPanelRenderer.cjs +147 -0
- package/dist/jsonforms/cjs/layouts/Array/MantineArrayLayout.cjs +81 -0
- package/dist/jsonforms/cjs/layouts/Array/MantineArrayLayoutRenderer.cjs +21 -0
- package/dist/jsonforms/cjs/layouts/Categorization/MantineCategorizationLayoutRenderer.cjs +2 -2
- package/dist/jsonforms/cjs/layouts/MantineGroupLayoutRenderer.cjs +2 -2
- package/dist/jsonforms/cjs/renderers/mantineRenderers.cjs +7 -4
- package/dist/jsonforms/esm/_virtual/map.mjs +7 -0
- package/dist/jsonforms/esm/complex/MantineArrayControl/MantineArrayControl.mjs +7 -1
- package/dist/jsonforms/esm/complex/MantineObjectControl.mjs +2 -2
- package/dist/jsonforms/esm/complex/MantineTableControl/MantineTableControl.mjs +13 -93
- package/dist/jsonforms/esm/complex/MantineTableControl/TableToolbar.mjs +12 -56
- package/dist/jsonforms/esm/hooks/useNavigationComponent.mjs +83 -0
- package/dist/jsonforms/esm/hooks/useToolbarComponent.mjs +88 -0
- package/dist/jsonforms/esm/labels/MantineLabelRenderer.mjs +2 -2
- package/dist/jsonforms/esm/layouts/Array/ArrayToolbar.mjs +20 -0
- package/dist/jsonforms/esm/layouts/Array/ExpandPanelRenderer.mjs +147 -0
- package/dist/jsonforms/esm/layouts/Array/MantineArrayLayout.mjs +81 -0
- package/dist/jsonforms/esm/layouts/Array/MantineArrayLayoutRenderer.mjs +21 -0
- package/dist/jsonforms/esm/layouts/Categorization/MantineCategorizationLayoutRenderer.mjs +2 -2
- package/dist/jsonforms/esm/layouts/MantineGroupLayoutRenderer.mjs +2 -2
- package/dist/jsonforms/esm/renderers/mantineRenderers.mjs +12 -9
- package/dist/jsonforms/lib/complex/MantineArrayControl/MantineArrayControl.d.ts +2 -0
- package/dist/jsonforms/lib/complex/MantineObjectControl.d.ts +1 -1
- package/dist/jsonforms/lib/hooks/useNavigationComponent.d.ts +8 -0
- package/dist/jsonforms/lib/hooks/useToolbarComponent.d.ts +6 -0
- package/dist/jsonforms/lib/labels/MantineLabelRenderer.d.ts +1 -1
- package/dist/jsonforms/lib/layouts/Array/ArrayToolbar.d.ts +2 -0
- package/dist/jsonforms/lib/layouts/Array/ExpandPanelRenderer.d.ts +3 -0
- package/dist/jsonforms/lib/layouts/Array/MantineArrayLayout.d.ts +1 -0
- package/dist/jsonforms/lib/layouts/Array/MantineArrayLayoutRenderer.d.ts +2 -0
- package/dist/jsonforms/lib/layouts/Categorization/MantineCategorizationLayoutRenderer.d.ts +1 -1
- package/dist/jsonforms/lib/layouts/MantineGroupLayoutRenderer.d.ts +1 -1
- package/package.json +1 -1
- package/dist/.bundled/jsonforms/cjs/packages/jsonforms/src/complex/MantineTableControl/ValidationIcon.cjs +0 -19
- package/dist/.bundled/jsonforms/esm/packages/jsonforms/src/complex/MantineTableControl/ValidationIcon.mjs +0 -19
- package/dist/jsonforms/cjs/complex/MantineTableControl/ValidationIcon.cjs +0 -19
- package/dist/jsonforms/esm/complex/MantineTableControl/ValidationIcon.mjs +0 -19
- package/dist/jsonforms/lib/complex/MantineTableControl/ValidationIcon.d.ts +0 -4
- /package/dist/.external/cjs/{react-i18next@15.7.4_i18next@25.5.3_react-dom@18.3.1_react@18.3.1_typescript@5.9.3 → react-i18next@15.7.4_i18next@25.6.0_react-dom@18.3.1_react@18.3.1_typescript@5.9.3}/react-i18next/dist/es/I18nextProvider.cjs +0 -0
- /package/dist/.external/cjs/{react-i18next@15.7.4_i18next@25.5.3_react-dom@18.3.1_react@18.3.1_typescript@5.9.3 → react-i18next@15.7.4_i18next@25.6.0_react-dom@18.3.1_react@18.3.1_typescript@5.9.3}/react-i18next/dist/es/context.cjs +0 -0
- /package/dist/.external/cjs/{react-i18next@15.7.4_i18next@25.5.3_react-dom@18.3.1_react@18.3.1_typescript@5.9.3 → react-i18next@15.7.4_i18next@25.6.0_react-dom@18.3.1_react@18.3.1_typescript@5.9.3}/react-i18next/dist/es/defaults.cjs +0 -0
- /package/dist/.external/cjs/{react-i18next@15.7.4_i18next@25.5.3_react-dom@18.3.1_react@18.3.1_typescript@5.9.3 → react-i18next@15.7.4_i18next@25.6.0_react-dom@18.3.1_react@18.3.1_typescript@5.9.3}/react-i18next/dist/es/i18nInstance.cjs +0 -0
- /package/dist/.external/cjs/{react-i18next@15.7.4_i18next@25.5.3_react-dom@18.3.1_react@18.3.1_typescript@5.9.3 → react-i18next@15.7.4_i18next@25.6.0_react-dom@18.3.1_react@18.3.1_typescript@5.9.3}/react-i18next/dist/es/initReactI18next.cjs +0 -0
- /package/dist/.external/cjs/{react-i18next@15.7.4_i18next@25.5.3_react-dom@18.3.1_react@18.3.1_typescript@5.9.3 → react-i18next@15.7.4_i18next@25.6.0_react-dom@18.3.1_react@18.3.1_typescript@5.9.3}/react-i18next/dist/es/unescape.cjs +0 -0
- /package/dist/.external/cjs/{react-i18next@15.7.4_i18next@25.5.3_react-dom@18.3.1_react@18.3.1_typescript@5.9.3 → react-i18next@15.7.4_i18next@25.6.0_react-dom@18.3.1_react@18.3.1_typescript@5.9.3}/react-i18next/dist/es/useTranslation.cjs +0 -0
- /package/dist/.external/cjs/{react-i18next@15.7.4_i18next@25.5.3_react-dom@18.3.1_react@18.3.1_typescript@5.9.3 → react-i18next@15.7.4_i18next@25.6.0_react-dom@18.3.1_react@18.3.1_typescript@5.9.3}/react-i18next/dist/es/utils.cjs +0 -0
- /package/dist/.external/esm/{react-i18next@15.7.4_i18next@25.5.3_react-dom@18.3.1_react@18.3.1_typescript@5.9.3 → react-i18next@15.7.4_i18next@25.6.0_react-dom@18.3.1_react@18.3.1_typescript@5.9.3}/react-i18next/dist/es/I18nextProvider.mjs +0 -0
- /package/dist/.external/esm/{react-i18next@15.7.4_i18next@25.5.3_react-dom@18.3.1_react@18.3.1_typescript@5.9.3 → react-i18next@15.7.4_i18next@25.6.0_react-dom@18.3.1_react@18.3.1_typescript@5.9.3}/react-i18next/dist/es/context.mjs +0 -0
- /package/dist/.external/esm/{react-i18next@15.7.4_i18next@25.5.3_react-dom@18.3.1_react@18.3.1_typescript@5.9.3 → react-i18next@15.7.4_i18next@25.6.0_react-dom@18.3.1_react@18.3.1_typescript@5.9.3}/react-i18next/dist/es/defaults.mjs +0 -0
- /package/dist/.external/esm/{react-i18next@15.7.4_i18next@25.5.3_react-dom@18.3.1_react@18.3.1_typescript@5.9.3 → react-i18next@15.7.4_i18next@25.6.0_react-dom@18.3.1_react@18.3.1_typescript@5.9.3}/react-i18next/dist/es/i18nInstance.mjs +0 -0
- /package/dist/.external/esm/{react-i18next@15.7.4_i18next@25.5.3_react-dom@18.3.1_react@18.3.1_typescript@5.9.3 → react-i18next@15.7.4_i18next@25.6.0_react-dom@18.3.1_react@18.3.1_typescript@5.9.3}/react-i18next/dist/es/initReactI18next.mjs +0 -0
- /package/dist/.external/esm/{react-i18next@15.7.4_i18next@25.5.3_react-dom@18.3.1_react@18.3.1_typescript@5.9.3 → react-i18next@15.7.4_i18next@25.6.0_react-dom@18.3.1_react@18.3.1_typescript@5.9.3}/react-i18next/dist/es/unescape.mjs +0 -0
- /package/dist/.external/esm/{react-i18next@15.7.4_i18next@25.5.3_react-dom@18.3.1_react@18.3.1_typescript@5.9.3 → react-i18next@15.7.4_i18next@25.6.0_react-dom@18.3.1_react@18.3.1_typescript@5.9.3}/react-i18next/dist/es/useTranslation.mjs +0 -0
- /package/dist/.external/esm/{react-i18next@15.7.4_i18next@25.5.3_react-dom@18.3.1_react@18.3.1_typescript@5.9.3 → react-i18next@15.7.4_i18next@25.6.0_react-dom@18.3.1_react@18.3.1_typescript@5.9.3}/react-i18next/dist/es/utils.mjs +0 -0
|
@@ -20,8 +20,8 @@ import maxBy from "../../../../../../.bundled/jsonforms/esm/_virtual/maxBy.mjs";
|
|
|
20
20
|
import "../../../../../../.bundled/jsonforms/esm/_virtual/remove.mjs";
|
|
21
21
|
import "../../../../../../.bundled/jsonforms/esm/_virtual/endsWith.mjs";
|
|
22
22
|
import "../../../../../../.bundled/jsonforms/esm/_virtual/last.mjs";
|
|
23
|
-
import "../../../../../../.bundled/jsonforms/esm/_virtual/reduce.mjs";
|
|
24
|
-
import "../../../../../../.bundled/jsonforms/esm/_virtual/toPairs.mjs";
|
|
23
|
+
import reduce from "../../../../../../.bundled/jsonforms/esm/_virtual/reduce.mjs";
|
|
24
|
+
import toPairs from "../../../../../../.bundled/jsonforms/esm/_virtual/toPairs.mjs";
|
|
25
25
|
const ADDITIONAL_PROPERTIES = "additionalProperties";
|
|
26
26
|
const REQUIRED_PROPERTIES = "required";
|
|
27
27
|
const distinct = (properties, discriminator) => {
|
|
@@ -174,6 +174,9 @@ const toDataPathSegments = (schemaPath) => {
|
|
|
174
174
|
};
|
|
175
175
|
const encode = (segment) => segment == null ? void 0 : segment.replace(/~/g, "~0").replace(/\//g, "~1");
|
|
176
176
|
const decode = (pointerSegment) => pointerSegment == null ? void 0 : pointerSegment.replace(/~1/g, "/").replace(/~0/, "~");
|
|
177
|
+
const getPropPath = (path) => {
|
|
178
|
+
return `/properties/${path.split(".").map((p) => encode(p)).join("/properties/")}`;
|
|
179
|
+
};
|
|
177
180
|
const deriveLabel = (controlElement, schemaElement) => {
|
|
178
181
|
if (schemaElement && typeof schemaElement.title === "string") {
|
|
179
182
|
return schemaElement.title;
|
|
@@ -260,6 +263,24 @@ var RuleEffect;
|
|
|
260
263
|
RuleEffect2["ENABLE"] = "ENABLE";
|
|
261
264
|
RuleEffect2["DISABLE"] = "DISABLE";
|
|
262
265
|
})(RuleEffect || (RuleEffect = {}));
|
|
266
|
+
const findUiControl = (uiSchema, path) => {
|
|
267
|
+
var _a;
|
|
268
|
+
if (isControlElement(uiSchema)) {
|
|
269
|
+
if (isScoped(uiSchema) && uiSchema.scope.endsWith(getPropPath(path))) {
|
|
270
|
+
return uiSchema;
|
|
271
|
+
} else if ((_a = uiSchema.options) == null ? void 0 : _a.detail) {
|
|
272
|
+
return findUiControl(uiSchema.options.detail, path);
|
|
273
|
+
}
|
|
274
|
+
}
|
|
275
|
+
if (isLayout(uiSchema)) {
|
|
276
|
+
for (const elem of uiSchema.elements) {
|
|
277
|
+
const result = findUiControl(elem, path);
|
|
278
|
+
if (result !== void 0)
|
|
279
|
+
return result;
|
|
280
|
+
}
|
|
281
|
+
}
|
|
282
|
+
return void 0;
|
|
283
|
+
};
|
|
263
284
|
const composeWithUi = (scopableUi, path) => {
|
|
264
285
|
if (!isScoped(scopableUi)) {
|
|
265
286
|
return path ?? "";
|
|
@@ -276,6 +297,7 @@ const isLayout = (uischema) => uischema.elements !== void 0;
|
|
|
276
297
|
const isScopable = (obj) => !!obj && typeof obj === "object";
|
|
277
298
|
const isScoped = (obj) => isScopable(obj) && typeof obj.scope === "string";
|
|
278
299
|
const isLabelable = (obj) => !!obj && typeof obj === "object";
|
|
300
|
+
const isControlElement = (uiSchema) => uiSchema.type === "Control";
|
|
279
301
|
const isOrCondition = (condition) => condition.type === "OR";
|
|
280
302
|
const isAndCondition = (condition) => condition.type === "AND";
|
|
281
303
|
const isLeafCondition = (condition) => condition.type === "LEAF";
|
|
@@ -361,6 +383,15 @@ const isEnabled = (uischema, data, path = void 0, ajv) => {
|
|
|
361
383
|
}
|
|
362
384
|
return true;
|
|
363
385
|
};
|
|
386
|
+
const getFirstPrimitiveProp = (schema) => {
|
|
387
|
+
if (schema && typeof schema === "object" && "properties" in schema && schema.properties) {
|
|
388
|
+
return find(Object.keys(schema.properties), (propName) => {
|
|
389
|
+
const prop = schema.properties[propName];
|
|
390
|
+
return prop && typeof prop === "object" && "type" in prop && (prop.type === "string" || prop.type === "number" || prop.type === "integer");
|
|
391
|
+
});
|
|
392
|
+
}
|
|
393
|
+
return void 0;
|
|
394
|
+
};
|
|
364
395
|
const isOneOfEnumSchema = (schema) => !!schema && Object.prototype.hasOwnProperty.call(schema, "oneOf") && schema.oneOf && schema.oneOf.every((s) => s.const !== void 0);
|
|
365
396
|
const isEnumSchema = (schema) => !!schema && typeof schema === "object" && (Object.prototype.hasOwnProperty.call(schema, "enum") || Object.prototype.hasOwnProperty.call(schema, "const"));
|
|
366
397
|
const convertDateToString = (date, format) => {
|
|
@@ -1244,6 +1275,71 @@ const isObjectArray = and(schemaMatches(
|
|
|
1244
1275
|
return hasType(resolvedSchema, "object");
|
|
1245
1276
|
}));
|
|
1246
1277
|
const isObjectArrayControl = and(uiTypeIs("Control"), isObjectArray);
|
|
1278
|
+
const traverse = (any, pred, rootSchema) => {
|
|
1279
|
+
if (isArray(any)) {
|
|
1280
|
+
return reduce(any, (acc, el) => acc || traverse(el, pred, rootSchema), false);
|
|
1281
|
+
}
|
|
1282
|
+
if (pred(any)) {
|
|
1283
|
+
return true;
|
|
1284
|
+
}
|
|
1285
|
+
if (any.$ref) {
|
|
1286
|
+
const toTraverse = resolveSchema(rootSchema, any.$ref, rootSchema);
|
|
1287
|
+
if (toTraverse && !toTraverse.$ref) {
|
|
1288
|
+
return traverse(toTraverse, pred, rootSchema);
|
|
1289
|
+
}
|
|
1290
|
+
}
|
|
1291
|
+
if (any.items) {
|
|
1292
|
+
return traverse(any.items, pred, rootSchema);
|
|
1293
|
+
}
|
|
1294
|
+
if (any.properties) {
|
|
1295
|
+
return reduce(toPairs(any.properties), (acc, [_key, val]) => acc || traverse(val, pred, rootSchema), false);
|
|
1296
|
+
}
|
|
1297
|
+
return false;
|
|
1298
|
+
};
|
|
1299
|
+
const isObjectArrayWithNesting = (uischema, schema, context) => {
|
|
1300
|
+
if (!uiTypeIs("Control")(uischema, schema, context)) {
|
|
1301
|
+
return false;
|
|
1302
|
+
}
|
|
1303
|
+
const schemaPath = uischema.scope;
|
|
1304
|
+
const resolvedSchema = resolveSchema(schema, schemaPath, (context == null ? void 0 : context.rootSchema) ?? schema);
|
|
1305
|
+
let objectDepth = 0;
|
|
1306
|
+
if (resolvedSchema !== void 0 && resolvedSchema.items !== void 0) {
|
|
1307
|
+
if (traverse(resolvedSchema.items, (val) => {
|
|
1308
|
+
if (val === schema) {
|
|
1309
|
+
return false;
|
|
1310
|
+
}
|
|
1311
|
+
if (val.$ref !== void 0) {
|
|
1312
|
+
return false;
|
|
1313
|
+
}
|
|
1314
|
+
if (val.anyOf || val.allOf) {
|
|
1315
|
+
return true;
|
|
1316
|
+
}
|
|
1317
|
+
if (val.oneOf && !isOneOfEnumSchema(val)) {
|
|
1318
|
+
return true;
|
|
1319
|
+
}
|
|
1320
|
+
if (hasType(val, "object")) {
|
|
1321
|
+
objectDepth++;
|
|
1322
|
+
if (objectDepth === 2) {
|
|
1323
|
+
return true;
|
|
1324
|
+
}
|
|
1325
|
+
}
|
|
1326
|
+
if (hasType(val, "array")) {
|
|
1327
|
+
return true;
|
|
1328
|
+
}
|
|
1329
|
+
return false;
|
|
1330
|
+
}, context == null ? void 0 : context.rootSchema)) {
|
|
1331
|
+
return true;
|
|
1332
|
+
}
|
|
1333
|
+
if (uischema.options && uischema.options.detail) {
|
|
1334
|
+
if (typeof uischema.options.detail === "string") {
|
|
1335
|
+
return uischema.options.detail.toUpperCase() !== "DEFAULT";
|
|
1336
|
+
} else if (typeof uischema.options.detail === "object" && uischema.options.detail.type) {
|
|
1337
|
+
return true;
|
|
1338
|
+
}
|
|
1339
|
+
}
|
|
1340
|
+
}
|
|
1341
|
+
return false;
|
|
1342
|
+
};
|
|
1247
1343
|
const isPrimitiveArrayControl = and(uiTypeIs("Control"), schemaMatches(
|
|
1248
1344
|
(schema, rootSchema) => deriveTypes(schema).length !== 0 && !Array.isArray(resolveSchema(schema, "items", rootSchema))
|
|
1249
1345
|
), schemaSubPathMatches("items", (schema, rootSchema) => {
|
|
@@ -1357,6 +1453,9 @@ const isRequired = (schema, schemaPath, rootSchema) => {
|
|
|
1357
1453
|
const nextHigherSchema = Resolve.schema(schema, nextHigherSchemaPath, rootSchema);
|
|
1358
1454
|
return nextHigherSchema !== void 0 && nextHigherSchema.required !== void 0 && nextHigherSchema.required.indexOf(lastSegment) !== -1;
|
|
1359
1455
|
};
|
|
1456
|
+
const computeLabel = (label, required, hideRequiredAsterisk) => {
|
|
1457
|
+
return `${label ?? ""}${required && !hideRequiredAsterisk ? "*" : ""}`;
|
|
1458
|
+
};
|
|
1360
1459
|
const createDefaultValue = (schema, rootSchema) => {
|
|
1361
1460
|
const defaultValue = doCreateDefaultValue(schema, rootSchema);
|
|
1362
1461
|
return defaultValue === void 0 ? {} : defaultValue;
|
|
@@ -1705,6 +1804,31 @@ const mapStateToLabelProps = (state, props) => {
|
|
|
1705
1804
|
uischema
|
|
1706
1805
|
};
|
|
1707
1806
|
};
|
|
1807
|
+
const computeChildLabel = (data, childPath, childLabelProp, schema, rootSchema, translateFct, uiSchema) => {
|
|
1808
|
+
const childData = Resolve.data(data, childPath);
|
|
1809
|
+
if (!childLabelProp) {
|
|
1810
|
+
childLabelProp = getFirstPrimitiveProp(schema);
|
|
1811
|
+
}
|
|
1812
|
+
if (!childLabelProp) {
|
|
1813
|
+
return "";
|
|
1814
|
+
}
|
|
1815
|
+
const currentValue = get(childData, childLabelProp);
|
|
1816
|
+
if (currentValue === void 0) {
|
|
1817
|
+
return "";
|
|
1818
|
+
}
|
|
1819
|
+
const childSchema = Resolve.schema(schema, "#" + getPropPath(childLabelProp), rootSchema);
|
|
1820
|
+
let enumOption = void 0;
|
|
1821
|
+
if (isEnumSchema(childSchema)) {
|
|
1822
|
+
enumOption = enumToEnumOptionMapper(currentValue, translateFct, getI18nKeyPrefix(childSchema, findUiControl(uiSchema, childLabelProp), childPath + "." + childLabelProp));
|
|
1823
|
+
} else if (isOneOfEnumSchema(childSchema)) {
|
|
1824
|
+
const oneOfArray = childSchema.oneOf;
|
|
1825
|
+
const oneOfSchema = oneOfArray.find((e) => isEqual(e.const, currentValue));
|
|
1826
|
+
if (oneOfSchema) {
|
|
1827
|
+
enumOption = oneOfToEnumOptionMapper(oneOfSchema, translateFct, getI18nKeyPrefix(oneOfSchema, void 0, childPath + "." + childLabelProp));
|
|
1828
|
+
}
|
|
1829
|
+
}
|
|
1830
|
+
return enumOption ? enumOption.label : currentValue;
|
|
1831
|
+
};
|
|
1708
1832
|
const mapStateToCellProps = (state, ownProps) => {
|
|
1709
1833
|
const { id, schema, path, uischema, renderers, cells } = ownProps;
|
|
1710
1834
|
const rootData = getData(state);
|
|
@@ -1804,6 +1928,8 @@ export {
|
|
|
1804
1928
|
compose,
|
|
1805
1929
|
compose as composePaths,
|
|
1806
1930
|
composeWithUi,
|
|
1931
|
+
computeChildLabel,
|
|
1932
|
+
computeLabel,
|
|
1807
1933
|
configReducer,
|
|
1808
1934
|
convertDateToString,
|
|
1809
1935
|
coreReducer,
|
|
@@ -1836,6 +1962,7 @@ export {
|
|
|
1836
1962
|
fetchTranslator,
|
|
1837
1963
|
findMatchingUISchema,
|
|
1838
1964
|
findUISchema,
|
|
1965
|
+
findUiControl,
|
|
1839
1966
|
formatErrorMessage,
|
|
1840
1967
|
formatIs,
|
|
1841
1968
|
generateDefaultUISchema,
|
|
@@ -1850,10 +1977,12 @@ export {
|
|
|
1850
1977
|
getData,
|
|
1851
1978
|
getErrorAt,
|
|
1852
1979
|
getErrorTranslator,
|
|
1980
|
+
getFirstPrimitiveProp,
|
|
1853
1981
|
getI18nKey,
|
|
1854
1982
|
getI18nKeyPrefix,
|
|
1855
1983
|
getI18nKeyPrefixBySchema,
|
|
1856
1984
|
getOrCreateAjv,
|
|
1985
|
+
getPropPath,
|
|
1857
1986
|
getRenderers,
|
|
1858
1987
|
getSchema,
|
|
1859
1988
|
getSubErrorsAt,
|
|
@@ -1868,6 +1997,7 @@ export {
|
|
|
1868
1997
|
initState,
|
|
1869
1998
|
isBooleanControl,
|
|
1870
1999
|
isControl,
|
|
2000
|
+
isControlElement,
|
|
1871
2001
|
isDateControl,
|
|
1872
2002
|
isDateTimeControl,
|
|
1873
2003
|
isEnabled,
|
|
@@ -1882,6 +2012,7 @@ export {
|
|
|
1882
2012
|
isNumberControl,
|
|
1883
2013
|
isObjectArray,
|
|
1884
2014
|
isObjectArrayControl,
|
|
2015
|
+
isObjectArrayWithNesting,
|
|
1885
2016
|
isObjectControl,
|
|
1886
2017
|
isOneOfControl,
|
|
1887
2018
|
isOneOfEnumSchema,
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { __exports as codegen } from "../../../../../../../.bundled/jsonforms/esm/_virtual/
|
|
1
|
+
import { __exports as codegen } from "../../../../../../../.bundled/jsonforms/esm/_virtual/index3.mjs";
|
|
2
2
|
import { __require as requireCode } from "./code.mjs";
|
|
3
3
|
import { __require as requireScope } from "./scope.mjs";
|
|
4
4
|
var hasRequiredCodegen;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { __exports as validate } from "../../../../../../../.bundled/jsonforms/esm/_virtual/
|
|
1
|
+
import { __exports as validate } from "../../../../../../../.bundled/jsonforms/esm/_virtual/index5.mjs";
|
|
2
2
|
import { __require as requireBoolSchema } from "./boolSchema.mjs";
|
|
3
3
|
import { __require as requireDataType } from "./dataType.mjs";
|
|
4
4
|
import { __require as requireApplicability } from "./applicability.mjs";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { __exports as discriminator } from "../../../../../../../.bundled/jsonforms/esm/_virtual/
|
|
1
|
+
import { __exports as discriminator } from "../../../../../../../.bundled/jsonforms/esm/_virtual/index4.mjs";
|
|
2
2
|
import { __require as requireCodegen } from "../../compile/codegen/index.mjs";
|
|
3
3
|
import { __require as requireTypes } from "./types.mjs";
|
|
4
4
|
import { __require as requireCompile } from "../../compile/index.mjs";
|
|
@@ -473,7 +473,12 @@ class Translator extends EventEmitter {
|
|
|
473
473
|
};
|
|
474
474
|
if (key == null) return false;
|
|
475
475
|
const resolved = this.resolve(key, opt);
|
|
476
|
-
|
|
476
|
+
if ((resolved == null ? void 0 : resolved.res) === void 0) return false;
|
|
477
|
+
const isObject = shouldHandleAsObject(resolved.res);
|
|
478
|
+
if (opt.returnObjects === false && isObject) {
|
|
479
|
+
return false;
|
|
480
|
+
}
|
|
481
|
+
return true;
|
|
477
482
|
}
|
|
478
483
|
extractFromKey(key, opt) {
|
|
479
484
|
let nsSeparator = opt.nsSeparator !== void 0 ? opt.nsSeparator : this.options.nsSeparator;
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { __require as require_baseEach } from "./_baseEach.mjs";
|
|
2
|
+
import { __require as requireIsArrayLike } from "./isArrayLike.mjs";
|
|
3
|
+
var _baseMap;
|
|
4
|
+
var hasRequired_baseMap;
|
|
5
|
+
function require_baseMap() {
|
|
6
|
+
if (hasRequired_baseMap) return _baseMap;
|
|
7
|
+
hasRequired_baseMap = 1;
|
|
8
|
+
var baseEach = require_baseEach(), isArrayLike = requireIsArrayLike();
|
|
9
|
+
function baseMap(collection, iteratee) {
|
|
10
|
+
var index = -1, result = isArrayLike(collection) ? Array(collection.length) : [];
|
|
11
|
+
baseEach(collection, function(value, key, collection2) {
|
|
12
|
+
result[++index] = iteratee(value, key, collection2);
|
|
13
|
+
});
|
|
14
|
+
return result;
|
|
15
|
+
}
|
|
16
|
+
_baseMap = baseMap;
|
|
17
|
+
return _baseMap;
|
|
18
|
+
}
|
|
19
|
+
export {
|
|
20
|
+
require_baseMap as __require
|
|
21
|
+
};
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { __require as require_arrayMap } from "./_arrayMap.mjs";
|
|
2
|
+
import { __require as require_baseIteratee } from "./_baseIteratee.mjs";
|
|
3
|
+
import { __require as require_baseMap } from "./_baseMap.mjs";
|
|
4
|
+
import { __require as requireIsArray } from "./isArray.mjs";
|
|
5
|
+
var map_1;
|
|
6
|
+
var hasRequiredMap;
|
|
7
|
+
function requireMap() {
|
|
8
|
+
if (hasRequiredMap) return map_1;
|
|
9
|
+
hasRequiredMap = 1;
|
|
10
|
+
var arrayMap = require_arrayMap(), baseIteratee = require_baseIteratee(), baseMap = require_baseMap(), isArray = requireIsArray();
|
|
11
|
+
function map(collection, iteratee) {
|
|
12
|
+
var func = isArray(collection) ? arrayMap : baseMap;
|
|
13
|
+
return func(collection, baseIteratee(iteratee, 3));
|
|
14
|
+
}
|
|
15
|
+
map_1 = map;
|
|
16
|
+
return map_1;
|
|
17
|
+
}
|
|
18
|
+
export {
|
|
19
|
+
requireMap as __require
|
|
20
|
+
};
|
|
@@ -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.
|
|
9
|
+
const useTranslation = require("../../../../.external/cjs/react-i18next@15.7.4_i18next@25.6.0_react-dom@18.3.1_react@18.3.1_typescript@5.9.3/react-i18next/dist/es/useTranslation.cjs");
|
|
10
10
|
const IconPlus = require("../../../../.external/cjs/@tabler_icons-react@3.18.0_react@18.3.1/@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.
|
|
9
|
+
const useTranslation = require("../../../../.external/cjs/react-i18next@15.7.4_i18next@25.6.0_react-dom@18.3.1_react@18.3.1_typescript@5.9.3/react-i18next/dist/es/useTranslation.cjs");
|
|
10
10
|
const IconTrash = require("../../../../.external/cjs/@tabler_icons-react@3.18.0_react@18.3.1/@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.
|
|
11
|
+
const useTranslation = require("../../../../.external/cjs/react-i18next@15.7.4_i18next@25.6.0_react-dom@18.3.1_react@18.3.1_typescript@5.9.3/react-i18next/dist/es/useTranslation.cjs");
|
|
12
12
|
const IconSeparatorVertical = require("../../../../.external/cjs/@tabler_icons-react@3.18.0_react@18.3.1/@tabler/icons-react/dist/esm/icons/IconSeparatorVertical.cjs");
|
|
13
13
|
const IconDownload = require("../../../../.external/cjs/@tabler_icons-react@3.18.0_react@18.3.1/@tabler/icons-react/dist/esm/icons/IconDownload.cjs");
|
|
14
14
|
const Download = React.memo(({ tooltipProps, ...props }) => {
|
|
@@ -9,7 +9,7 @@ const React = require("react");
|
|
|
9
9
|
const useApi = require("../../hooks/api/useApi.cjs");
|
|
10
10
|
const useForms = require("../../hooks/api/useForms.cjs");
|
|
11
11
|
require("../../Wrappers/Provider/Contexts/LangContext.cjs");
|
|
12
|
-
const useTranslation = require("../../../../.external/cjs/react-i18next@15.7.4_i18next@25.
|
|
12
|
+
const useTranslation = require("../../../../.external/cjs/react-i18next@15.7.4_i18next@25.6.0_react-dom@18.3.1_react@18.3.1_typescript@5.9.3/react-i18next/dist/es/useTranslation.cjs");
|
|
13
13
|
const IconPencil = require("../../../../.external/cjs/@tabler_icons-react@3.18.0_react@18.3.1/@tabler/icons-react/dist/esm/icons/IconPencil.cjs");
|
|
14
14
|
const Edit = React.memo(({ id, ...props }) => {
|
|
15
15
|
const { getEntry } = useApi.useApi();
|
|
@@ -6,7 +6,7 @@ const core = require("@mantine/core");
|
|
|
6
6
|
const React = require("react");
|
|
7
7
|
const useApi = require("../../hooks/api/useApi.cjs");
|
|
8
8
|
require("../../Wrappers/Provider/Contexts/LangContext.cjs");
|
|
9
|
-
const useTranslation = require("../../../../.external/cjs/react-i18next@15.7.4_i18next@25.
|
|
9
|
+
const useTranslation = require("../../../../.external/cjs/react-i18next@15.7.4_i18next@25.6.0_react-dom@18.3.1_react@18.3.1_typescript@5.9.3/react-i18next/dist/es/useTranslation.cjs");
|
|
10
10
|
const IconRefresh = require("../../../../.external/cjs/@tabler_icons-react@3.18.0_react@18.3.1/@tabler/icons-react/dist/esm/icons/IconRefresh.cjs");
|
|
11
11
|
const Refresh = React.memo(({ tooltipProps, ...props }) => {
|
|
12
12
|
const { t } = useTranslation.useTranslation();
|
|
@@ -9,7 +9,7 @@ const React = require("react");
|
|
|
9
9
|
const useApi = require("../../hooks/api/useApi.cjs");
|
|
10
10
|
const useForms = require("../../hooks/api/useForms.cjs");
|
|
11
11
|
require("../../Wrappers/Provider/Contexts/LangContext.cjs");
|
|
12
|
-
const useTranslation = require("../../../../.external/cjs/react-i18next@15.7.4_i18next@25.
|
|
12
|
+
const useTranslation = require("../../../../.external/cjs/react-i18next@15.7.4_i18next@25.6.0_react-dom@18.3.1_react@18.3.1_typescript@5.9.3/react-i18next/dist/es/useTranslation.cjs");
|
|
13
13
|
const IconEye = require("../../../../.external/cjs/@tabler_icons-react@3.18.0_react@18.3.1/@tabler/icons-react/dist/esm/icons/IconEye.cjs");
|
|
14
14
|
const View = React.memo(({ id, ...props }) => {
|
|
15
15
|
const { getEntry } = useApi.useApi();
|
|
@@ -17,7 +17,7 @@ const CommonModal = require("../Modals/CommonModal.cjs");
|
|
|
17
17
|
const normalProps = require("../Modals/normalProps.cjs");
|
|
18
18
|
const overlayProps = require("../Modals/overlayProps.cjs");
|
|
19
19
|
const FormField = require("../Tables/DataGrid/FormField/FormField.cjs");
|
|
20
|
-
const useTranslation = require("../../../.external/cjs/react-i18next@15.7.4_i18next@25.
|
|
20
|
+
const useTranslation = require("../../../.external/cjs/react-i18next@15.7.4_i18next@25.6.0_react-dom@18.3.1_react@18.3.1_typescript@5.9.3/react-i18next/dist/es/useTranslation.cjs");
|
|
21
21
|
function AddDialog({
|
|
22
22
|
jsonForms: __jsonForms,
|
|
23
23
|
onSuccess,
|
|
@@ -10,7 +10,7 @@ const overlayProps = require("../Modals/overlayProps.cjs");
|
|
|
10
10
|
const useApi = require("../hooks/api/useApi.cjs");
|
|
11
11
|
const useForms = require("../hooks/api/useForms.cjs");
|
|
12
12
|
require("../Wrappers/Provider/Contexts/LangContext.cjs");
|
|
13
|
-
const useTranslation = require("../../../.external/cjs/react-i18next@15.7.4_i18next@25.
|
|
13
|
+
const useTranslation = require("../../../.external/cjs/react-i18next@15.7.4_i18next@25.6.0_react-dom@18.3.1_react@18.3.1_typescript@5.9.3/react-i18next/dist/es/useTranslation.cjs");
|
|
14
14
|
const DeleteDialog = ({ deleteText, onSuccess, onError, ...props }) => {
|
|
15
15
|
const { refetch, refetchInfo, deleteEntry } = useApi.useApi();
|
|
16
16
|
const { t } = useTranslation.useTranslation();
|
|
@@ -20,7 +20,7 @@ const CommonModal = require("../Modals/CommonModal.cjs");
|
|
|
20
20
|
const normalProps = require("../Modals/normalProps.cjs");
|
|
21
21
|
const overlayProps = require("../Modals/overlayProps.cjs");
|
|
22
22
|
const FormField = require("../Tables/DataGrid/FormField/FormField.cjs");
|
|
23
|
-
const useTranslation = require("../../../.external/cjs/react-i18next@15.7.4_i18next@25.
|
|
23
|
+
const useTranslation = require("../../../.external/cjs/react-i18next@15.7.4_i18next@25.6.0_react-dom@18.3.1_react@18.3.1_typescript@5.9.3/react-i18next/dist/es/useTranslation.cjs");
|
|
24
24
|
function EditDialog({
|
|
25
25
|
jsonForms: __jsonForms,
|
|
26
26
|
onSuccess,
|
|
@@ -7,7 +7,7 @@ const iconify = require("../../../.external/cjs/@iconify_react@6.0.2_react@18.3.
|
|
|
7
7
|
const core = require("@mantine/core");
|
|
8
8
|
const useInfo = require("../hooks/auth/useInfo.cjs");
|
|
9
9
|
require("../Wrappers/Provider/Contexts/LangContext.cjs");
|
|
10
|
-
const useTranslation = require("../../../.external/cjs/react-i18next@15.7.4_i18next@25.
|
|
10
|
+
const useTranslation = require("../../../.external/cjs/react-i18next@15.7.4_i18next@25.6.0_react-dom@18.3.1_react@18.3.1_typescript@5.9.3/react-i18next/dist/es/useTranslation.cjs");
|
|
11
11
|
function CommonModal({
|
|
12
12
|
children,
|
|
13
13
|
view,
|
|
@@ -4,7 +4,7 @@ const jsxRuntime = require("react/jsx-runtime");
|
|
|
4
4
|
const core = require("@mantine/core");
|
|
5
5
|
const useApi = require("../../hooks/api/useApi.cjs");
|
|
6
6
|
require("../../Wrappers/Provider/Contexts/LangContext.cjs");
|
|
7
|
-
const useTranslation = require("../../../../.external/cjs/react-i18next@15.7.4_i18next@25.
|
|
7
|
+
const useTranslation = require("../../../../.external/cjs/react-i18next@15.7.4_i18next@25.6.0_react-dom@18.3.1_react@18.3.1_typescript@5.9.3/react-i18next/dist/es/useTranslation.cjs");
|
|
8
8
|
const IconAlertCircle = require("../../../../.external/cjs/@tabler_icons-react@3.18.0_react@18.3.1/@tabler/icons-react/dist/esm/icons/IconAlertCircle.cjs");
|
|
9
9
|
function ErrorDialog() {
|
|
10
10
|
const { error, resetError } = useApi.useApi();
|
|
@@ -13,7 +13,7 @@ const useApi = require("../../../../../hooks/api/useApi.cjs");
|
|
|
13
13
|
require("../../../../../Wrappers/Provider/Contexts/LangContext.cjs");
|
|
14
14
|
const utils$1 = require("../utils.cjs");
|
|
15
15
|
const HeaderInput = require("./HeaderInput.cjs");
|
|
16
|
-
const useTranslation = require("../../../../../../../.external/cjs/react-i18next@15.7.4_i18next@25.
|
|
16
|
+
const useTranslation = require("../../../../../../../.external/cjs/react-i18next@15.7.4_i18next@25.6.0_react-dom@18.3.1_react@18.3.1_typescript@5.9.3/react-i18next/dist/es/useTranslation.cjs");
|
|
17
17
|
const getLocalStorageValue = (key, defaultValue) => {
|
|
18
18
|
const value = localStorage.getItem(key);
|
|
19
19
|
if (value === null) {
|
|
@@ -4,7 +4,7 @@ const jsxRuntime = require("react/jsx-runtime");
|
|
|
4
4
|
const core = require("@mantine/core");
|
|
5
5
|
const React = require("react");
|
|
6
6
|
require("../../../../../../Wrappers/Provider/Contexts/LangContext.cjs");
|
|
7
|
-
const useTranslation = require("../../../../../../../../.external/cjs/react-i18next@15.7.4_i18next@25.
|
|
7
|
+
const useTranslation = require("../../../../../../../../.external/cjs/react-i18next@15.7.4_i18next@25.6.0_react-dom@18.3.1_react@18.3.1_typescript@5.9.3/react-i18next/dist/es/useTranslation.cjs");
|
|
8
8
|
const IconX = require("../../../../../../../../.external/cjs/@tabler_icons-react@3.18.0_react@18.3.1/@tabler/icons-react/dist/esm/icons/IconX.cjs");
|
|
9
9
|
const criteria = (v) => v !== void 0 && v !== null && v !== "";
|
|
10
10
|
const HeaderBetweenInput = React.forwardRef(({ clearIcon: _, mrtprops: { textinputprops }, ...props }, ref) => {
|
package/dist/core/cjs/Tables/NextGenDataGrid/hooks/useColumns/HeaderAdvancedFiltersMenuButton.cjs
CHANGED
|
@@ -8,7 +8,7 @@ const useAuth = require("../../../../hooks/auth/useAuth.cjs");
|
|
|
8
8
|
require("../../../../Wrappers/Provider/Contexts/LangContext.cjs");
|
|
9
9
|
const AdvancedFilters = require("./AdvancedFilters.cjs");
|
|
10
10
|
const FilterMenuButton = require("./FilterMenuButton.cjs");
|
|
11
|
-
const useTranslation = require("../../../../../../.external/cjs/react-i18next@15.7.4_i18next@25.
|
|
11
|
+
const useTranslation = require("../../../../../../.external/cjs/react-i18next@15.7.4_i18next@25.6.0_react-dom@18.3.1_react@18.3.1_typescript@5.9.3/react-i18next/dist/es/useTranslation.cjs");
|
|
12
12
|
const HeaderAdvancedFiltersMenuButton = ({ filters, mrtProps }) => {
|
|
13
13
|
const { t } = useTranslation.useTranslation();
|
|
14
14
|
const { table, column } = mrtProps;
|
|
@@ -5,12 +5,12 @@ const constants = require("fastapi-rtk/constants");
|
|
|
5
5
|
const utils = require("fastapi-rtk/utils");
|
|
6
6
|
const zustand = require("fastapi-rtk/zustand");
|
|
7
7
|
const hooks = require("@mantine/hooks");
|
|
8
|
-
const i18next = require("../../../../../.external/cjs/i18next@25.
|
|
8
|
+
const i18next = require("../../../../../.external/cjs/i18next@25.6.0_typescript@5.9.3/i18next/dist/esm/i18next.cjs");
|
|
9
9
|
const React = require("react");
|
|
10
10
|
const de = require("../../../translations/de.cjs");
|
|
11
11
|
const useProvideLang = require("../hooks/useProvideLang.cjs");
|
|
12
|
-
const I18nextProvider = require("../../../../../.external/cjs/react-i18next@15.7.4_i18next@25.
|
|
13
|
-
const initReactI18next = require("../../../../../.external/cjs/react-i18next@15.7.4_i18next@25.
|
|
12
|
+
const I18nextProvider = require("../../../../../.external/cjs/react-i18next@15.7.4_i18next@25.6.0_react-dom@18.3.1_react@18.3.1_typescript@5.9.3/react-i18next/dist/es/I18nextProvider.cjs");
|
|
13
|
+
const initReactI18next = require("../../../../../.external/cjs/react-i18next@15.7.4_i18next@25.6.0_react-dom@18.3.1_react@18.3.1_typescript@5.9.3/react-i18next/dist/es/initReactI18next.cjs");
|
|
14
14
|
const getI18n = ({ initProps, callback, translations } = {}) => {
|
|
15
15
|
var _a, _b, _c, _d, _e, _f, _g, _h;
|
|
16
16
|
const i18n = i18next.createInstance();
|
|
@@ -4,7 +4,7 @@ const constants = require("fastapi-rtk/constants");
|
|
|
4
4
|
const utils = require("fastapi-rtk/utils");
|
|
5
5
|
const hooks = require("@mantine/hooks");
|
|
6
6
|
const React = require("react");
|
|
7
|
-
const useTranslation = require("../../../../../.external/cjs/react-i18next@15.7.4_i18next@25.
|
|
7
|
+
const useTranslation = require("../../../../../.external/cjs/react-i18next@15.7.4_i18next@25.6.0_react-dom@18.3.1_react@18.3.1_typescript@5.9.3/react-i18next/dist/es/useTranslation.cjs");
|
|
8
8
|
const useProvideLang = (baseMRTLocalization = {}) => {
|
|
9
9
|
const translation = useTranslation.useTranslation();
|
|
10
10
|
const [localStorageLanguage, setLocalStorageLanguage] = hooks.useLocalStorage(constants.LANG_LOCAL_STORAGE_PROPS);
|
package/dist/core/cjs/index.cjs
CHANGED
|
@@ -35,7 +35,7 @@ const hooks = require("fastapi-rtk/hooks");
|
|
|
35
35
|
const utils = require("fastapi-rtk/utils");
|
|
36
36
|
const zustand = require("fastapi-rtk/zustand");
|
|
37
37
|
const Filter = require("./Tables/DataGrid/Toolbar/Filter/Filter.cjs");
|
|
38
|
-
const useTranslation = require("../../.external/cjs/react-i18next@15.7.4_i18next@25.
|
|
38
|
+
const useTranslation = require("../../.external/cjs/react-i18next@15.7.4_i18next@25.6.0_react-dom@18.3.1_react@18.3.1_typescript@5.9.3/react-i18next/dist/es/useTranslation.cjs");
|
|
39
39
|
exports.Actions = Actions.Actions;
|
|
40
40
|
exports.Add = Add.Add;
|
|
41
41
|
exports.Delete = Delete.Delete;
|
|
@@ -4,7 +4,7 @@ import { Tooltip, ActionIcon } from "@mantine/core";
|
|
|
4
4
|
import { memo } from "react";
|
|
5
5
|
import { useForms } from "../../hooks/api/useForms.mjs";
|
|
6
6
|
import "../../Wrappers/Provider/Contexts/LangContext.mjs";
|
|
7
|
-
import { useTranslation } from "../../../../.external/esm/react-i18next@15.7.4_i18next@25.
|
|
7
|
+
import { useTranslation } from "../../../../.external/esm/react-i18next@15.7.4_i18next@25.6.0_react-dom@18.3.1_react@18.3.1_typescript@5.9.3/react-i18next/dist/es/useTranslation.mjs";
|
|
8
8
|
import IconPlus from "../../../../.external/esm/@tabler_icons-react@3.18.0_react@18.3.1/@tabler/icons-react/dist/esm/icons/IconPlus.mjs";
|
|
9
9
|
const Add = memo(({ tooltipProps, ...props }) => {
|
|
10
10
|
const { t } = useTranslation();
|
|
@@ -4,7 +4,7 @@ import { Tooltip, ActionIcon } from "@mantine/core";
|
|
|
4
4
|
import { memo } from "react";
|
|
5
5
|
import { useForms } from "../../hooks/api/useForms.mjs";
|
|
6
6
|
import "../../Wrappers/Provider/Contexts/LangContext.mjs";
|
|
7
|
-
import { useTranslation } from "../../../../.external/esm/react-i18next@15.7.4_i18next@25.
|
|
7
|
+
import { useTranslation } from "../../../../.external/esm/react-i18next@15.7.4_i18next@25.6.0_react-dom@18.3.1_react@18.3.1_typescript@5.9.3/react-i18next/dist/es/useTranslation.mjs";
|
|
8
8
|
import IconTrash from "../../../../.external/esm/@tabler_icons-react@3.18.0_react@18.3.1/@tabler/icons-react/dist/esm/icons/IconTrash.mjs";
|
|
9
9
|
const Delete = memo(({ id, ...props }) => {
|
|
10
10
|
const { t } = useTranslation();
|
|
@@ -6,7 +6,7 @@ import { useDisclosure, useDebouncedState } from "@mantine/hooks";
|
|
|
6
6
|
import { memo, useState } from "react";
|
|
7
7
|
import { useApi } from "../../hooks/api/useApi.mjs";
|
|
8
8
|
import "../../Wrappers/Provider/Contexts/LangContext.mjs";
|
|
9
|
-
import { useTranslation } from "../../../../.external/esm/react-i18next@15.7.4_i18next@25.
|
|
9
|
+
import { useTranslation } from "../../../../.external/esm/react-i18next@15.7.4_i18next@25.6.0_react-dom@18.3.1_react@18.3.1_typescript@5.9.3/react-i18next/dist/es/useTranslation.mjs";
|
|
10
10
|
import IconSeparatorVertical from "../../../../.external/esm/@tabler_icons-react@3.18.0_react@18.3.1/@tabler/icons-react/dist/esm/icons/IconSeparatorVertical.mjs";
|
|
11
11
|
import IconDownload from "../../../../.external/esm/@tabler_icons-react@3.18.0_react@18.3.1/@tabler/icons-react/dist/esm/icons/IconDownload.mjs";
|
|
12
12
|
const Download = memo(({ tooltipProps, ...props }) => {
|
|
@@ -7,7 +7,7 @@ import { memo } from "react";
|
|
|
7
7
|
import { useApi } from "../../hooks/api/useApi.mjs";
|
|
8
8
|
import { useForms } from "../../hooks/api/useForms.mjs";
|
|
9
9
|
import "../../Wrappers/Provider/Contexts/LangContext.mjs";
|
|
10
|
-
import { useTranslation } from "../../../../.external/esm/react-i18next@15.7.4_i18next@25.
|
|
10
|
+
import { useTranslation } from "../../../../.external/esm/react-i18next@15.7.4_i18next@25.6.0_react-dom@18.3.1_react@18.3.1_typescript@5.9.3/react-i18next/dist/es/useTranslation.mjs";
|
|
11
11
|
import IconPencil from "../../../../.external/esm/@tabler_icons-react@3.18.0_react@18.3.1/@tabler/icons-react/dist/esm/icons/IconPencil.mjs";
|
|
12
12
|
const Edit = memo(({ id, ...props }) => {
|
|
13
13
|
const { getEntry } = useApi();
|
|
@@ -4,7 +4,7 @@ import { ThemeIcon, Loader, Tooltip, ActionIcon } from "@mantine/core";
|
|
|
4
4
|
import { memo, useState } from "react";
|
|
5
5
|
import { useApi } from "../../hooks/api/useApi.mjs";
|
|
6
6
|
import "../../Wrappers/Provider/Contexts/LangContext.mjs";
|
|
7
|
-
import { useTranslation } from "../../../../.external/esm/react-i18next@15.7.4_i18next@25.
|
|
7
|
+
import { useTranslation } from "../../../../.external/esm/react-i18next@15.7.4_i18next@25.6.0_react-dom@18.3.1_react@18.3.1_typescript@5.9.3/react-i18next/dist/es/useTranslation.mjs";
|
|
8
8
|
import IconRefresh from "../../../../.external/esm/@tabler_icons-react@3.18.0_react@18.3.1/@tabler/icons-react/dist/esm/icons/IconRefresh.mjs";
|
|
9
9
|
const Refresh = memo(({ tooltipProps, ...props }) => {
|
|
10
10
|
const { t } = useTranslation();
|
|
@@ -7,7 +7,7 @@ import { memo } from "react";
|
|
|
7
7
|
import { useApi } from "../../hooks/api/useApi.mjs";
|
|
8
8
|
import { useForms } from "../../hooks/api/useForms.mjs";
|
|
9
9
|
import "../../Wrappers/Provider/Contexts/LangContext.mjs";
|
|
10
|
-
import { useTranslation } from "../../../../.external/esm/react-i18next@15.7.4_i18next@25.
|
|
10
|
+
import { useTranslation } from "../../../../.external/esm/react-i18next@15.7.4_i18next@25.6.0_react-dom@18.3.1_react@18.3.1_typescript@5.9.3/react-i18next/dist/es/useTranslation.mjs";
|
|
11
11
|
import IconEye from "../../../../.external/esm/@tabler_icons-react@3.18.0_react@18.3.1/@tabler/icons-react/dist/esm/icons/IconEye.mjs";
|
|
12
12
|
const View = memo(({ id, ...props }) => {
|
|
13
13
|
const { getEntry } = useApi();
|
|
@@ -15,7 +15,7 @@ import { CommonModal } from "../Modals/CommonModal.mjs";
|
|
|
15
15
|
import { normalProps } from "../Modals/normalProps.mjs";
|
|
16
16
|
import { overlayProps } from "../Modals/overlayProps.mjs";
|
|
17
17
|
import { FormField } from "../Tables/DataGrid/FormField/FormField.mjs";
|
|
18
|
-
import { useTranslation } from "../../../.external/esm/react-i18next@15.7.4_i18next@25.
|
|
18
|
+
import { useTranslation } from "../../../.external/esm/react-i18next@15.7.4_i18next@25.6.0_react-dom@18.3.1_react@18.3.1_typescript@5.9.3/react-i18next/dist/es/useTranslation.mjs";
|
|
19
19
|
function AddDialog({
|
|
20
20
|
jsonForms: __jsonForms,
|
|
21
21
|
onSuccess,
|
|
@@ -8,7 +8,7 @@ import { overlayProps } from "../Modals/overlayProps.mjs";
|
|
|
8
8
|
import { useApi } from "../hooks/api/useApi.mjs";
|
|
9
9
|
import { useForms } from "../hooks/api/useForms.mjs";
|
|
10
10
|
import "../Wrappers/Provider/Contexts/LangContext.mjs";
|
|
11
|
-
import { useTranslation } from "../../../.external/esm/react-i18next@15.7.4_i18next@25.
|
|
11
|
+
import { useTranslation } from "../../../.external/esm/react-i18next@15.7.4_i18next@25.6.0_react-dom@18.3.1_react@18.3.1_typescript@5.9.3/react-i18next/dist/es/useTranslation.mjs";
|
|
12
12
|
const DeleteDialog = ({ deleteText, onSuccess, onError, ...props }) => {
|
|
13
13
|
const { refetch, refetchInfo, deleteEntry } = useApi();
|
|
14
14
|
const { t } = useTranslation();
|
|
@@ -18,7 +18,7 @@ import { CommonModal } from "../Modals/CommonModal.mjs";
|
|
|
18
18
|
import { normalProps } from "../Modals/normalProps.mjs";
|
|
19
19
|
import { overlayProps } from "../Modals/overlayProps.mjs";
|
|
20
20
|
import { FormField } from "../Tables/DataGrid/FormField/FormField.mjs";
|
|
21
|
-
import { useTranslation } from "../../../.external/esm/react-i18next@15.7.4_i18next@25.
|
|
21
|
+
import { useTranslation } from "../../../.external/esm/react-i18next@15.7.4_i18next@25.6.0_react-dom@18.3.1_react@18.3.1_typescript@5.9.3/react-i18next/dist/es/useTranslation.mjs";
|
|
22
22
|
function EditDialog({
|
|
23
23
|
jsonForms: __jsonForms,
|
|
24
24
|
onSuccess,
|
|
@@ -5,7 +5,7 @@ import { Icon } from "../../../.external/esm/@iconify_react@6.0.2_react@18.3.1/@
|
|
|
5
5
|
import { Modal, Box, Group, Button, CloseButton } from "@mantine/core";
|
|
6
6
|
import { useInfo } from "../hooks/auth/useInfo.mjs";
|
|
7
7
|
import "../Wrappers/Provider/Contexts/LangContext.mjs";
|
|
8
|
-
import { useTranslation } from "../../../.external/esm/react-i18next@15.7.4_i18next@25.
|
|
8
|
+
import { useTranslation } from "../../../.external/esm/react-i18next@15.7.4_i18next@25.6.0_react-dom@18.3.1_react@18.3.1_typescript@5.9.3/react-i18next/dist/es/useTranslation.mjs";
|
|
9
9
|
function CommonModal({
|
|
10
10
|
children,
|
|
11
11
|
view,
|
|
@@ -2,7 +2,7 @@ import { jsx, jsxs } from "react/jsx-runtime";
|
|
|
2
2
|
import { Modal, Text, Group } from "@mantine/core";
|
|
3
3
|
import { useApi } from "../../hooks/api/useApi.mjs";
|
|
4
4
|
import "../../Wrappers/Provider/Contexts/LangContext.mjs";
|
|
5
|
-
import { useTranslation } from "../../../../.external/esm/react-i18next@15.7.4_i18next@25.
|
|
5
|
+
import { useTranslation } from "../../../../.external/esm/react-i18next@15.7.4_i18next@25.6.0_react-dom@18.3.1_react@18.3.1_typescript@5.9.3/react-i18next/dist/es/useTranslation.mjs";
|
|
6
6
|
import IconAlertCircle from "../../../../.external/esm/@tabler_icons-react@3.18.0_react@18.3.1/@tabler/icons-react/dist/esm/icons/IconAlertCircle.mjs";
|
|
7
7
|
function ErrorDialog() {
|
|
8
8
|
const { error, resetError } = useApi();
|