fastapi-rtk 0.2.41 → 0.2.42
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/packages/jsonforms/src/JsonFormsWithCustomizer/JsonFormsWithCustomizer.cjs +16 -2
- package/dist/.bundled/jsonforms/cjs/packages/jsonforms/src/hooks/useDateProps.cjs +1 -1
- package/dist/.bundled/jsonforms/cjs/packages/jsonforms/src/layouts/Categorization/MantineCategorizationLayoutRenderer.cjs +3 -2
- package/dist/.bundled/jsonforms/cjs/packages/jsonforms/src/layouts/Categorization/variants/CategorizationCards.cjs +20 -12
- package/dist/.bundled/jsonforms/cjs/packages/jsonforms/src/layouts/Categorization/variants/CategorizationStepper.cjs +16 -12
- package/dist/.bundled/jsonforms/cjs/packages/jsonforms/src/layouts/Categorization/variants/CategorizationTabs.cjs +20 -7
- package/dist/.bundled/jsonforms/cjs/packages/jsonforms/src/utils/getAbsoluteValue.cjs +4 -0
- package/dist/.bundled/jsonforms/esm/packages/jsonforms/src/JsonFormsWithCustomizer/JsonFormsWithCustomizer.mjs +15 -1
- package/dist/.bundled/jsonforms/esm/packages/jsonforms/src/hooks/useDateProps.mjs +1 -1
- package/dist/.bundled/jsonforms/esm/packages/jsonforms/src/layouts/Categorization/MantineCategorizationLayoutRenderer.mjs +4 -3
- package/dist/.bundled/jsonforms/esm/packages/jsonforms/src/layouts/Categorization/variants/CategorizationCards.mjs +21 -13
- package/dist/.bundled/jsonforms/esm/packages/jsonforms/src/layouts/Categorization/variants/CategorizationStepper.mjs +16 -12
- package/dist/.bundled/jsonforms/esm/packages/jsonforms/src/layouts/Categorization/variants/CategorizationTabs.mjs +20 -7
- package/dist/.bundled/jsonforms/esm/packages/jsonforms/src/utils/getAbsoluteValue.mjs +4 -0
- package/dist/.external/cjs/{@tanstack_query-core@5.87.4 → @tanstack_query-core@5.89.0}/@tanstack/query-core/build/modern/mutation.cjs +44 -13
- package/dist/.external/cjs/{@tanstack_query-core@5.87.4 → @tanstack_query-core@5.89.0}/@tanstack/query-core/build/modern/mutationCache.cjs +1 -0
- package/dist/.external/cjs/{@tanstack_react-query@5.87.4_react@18.3.1 → @tanstack_react-query@5.89.0_react@18.3.1}/@tanstack/react-query/build/modern/errorBoundaryUtils.cjs +1 -1
- package/dist/.external/cjs/{@tanstack_react-query@5.87.4_react@18.3.1 → @tanstack_react-query@5.89.0_react@18.3.1}/@tanstack/react-query/build/modern/useBaseQuery.cjs +2 -2
- package/dist/.external/cjs/{@tanstack_react-query@5.87.4_react@18.3.1 → @tanstack_react-query@5.89.0_react@18.3.1}/@tanstack/react-query/build/modern/useQuery.cjs +1 -1
- package/dist/.external/esm/{@tanstack_query-core@5.87.4 → @tanstack_query-core@5.89.0}/@tanstack/query-core/build/modern/mutation.mjs +44 -13
- package/dist/.external/esm/{@tanstack_query-core@5.87.4 → @tanstack_query-core@5.89.0}/@tanstack/query-core/build/modern/mutationCache.mjs +1 -0
- package/dist/.external/esm/{@tanstack_react-query@5.87.4_react@18.3.1 → @tanstack_react-query@5.89.0_react@18.3.1}/@tanstack/react-query/build/modern/errorBoundaryUtils.mjs +1 -1
- package/dist/.external/esm/{@tanstack_react-query@5.87.4_react@18.3.1 → @tanstack_react-query@5.89.0_react@18.3.1}/@tanstack/react-query/build/modern/useBaseQuery.mjs +2 -2
- package/dist/.external/esm/{@tanstack_react-query@5.87.4_react@18.3.1 → @tanstack_react-query@5.89.0_react@18.3.1}/@tanstack/react-query/build/modern/useQuery.mjs +1 -1
- package/dist/core/cjs/Modals/CommonModal.cjs +1 -1
- package/dist/core/cjs/Tables/NextGenDataGrid/hooks/useColumns/ColumnHeaderFilterInput/HeaderInputs/HeaderBetweenInput.cjs +7 -2
- package/dist/core/cjs/Wrappers/ApiProvider/ApiProvider.cjs +4 -0
- package/dist/core/cjs/Wrappers/ApiProvider/hooks/useProvideApi.cjs +11 -4
- package/dist/core/cjs/Wrappers/Provider/Provider.cjs +2 -2
- package/dist/core/cjs/Wrappers/Provider/hooks/useProvideAuth.cjs +2 -2
- package/dist/core/cjs/Wrappers/Provider/hooks/useProvideInfo.cjs +1 -1
- package/dist/core/cjs/translations/de.cjs +6 -1
- package/dist/core/esm/Modals/CommonModal.mjs +1 -1
- package/dist/core/esm/Tables/NextGenDataGrid/hooks/useColumns/ColumnHeaderFilterInput/HeaderInputs/HeaderBetweenInput.mjs +7 -2
- package/dist/core/esm/Wrappers/ApiProvider/ApiProvider.mjs +4 -0
- package/dist/core/esm/Wrappers/ApiProvider/hooks/useProvideApi.mjs +11 -4
- package/dist/core/esm/Wrappers/Provider/Provider.mjs +2 -2
- package/dist/core/esm/Wrappers/Provider/hooks/useProvideAuth.mjs +2 -2
- package/dist/core/esm/Wrappers/Provider/hooks/useProvideInfo.mjs +1 -1
- package/dist/core/esm/translations/de.mjs +6 -1
- package/dist/core/lib/Wrappers/ApiProvider/ApiProvider.d.ts +11 -1
- package/dist/core/lib/Wrappers/ApiProvider/hooks/useProvideApi.d.ts +3 -1
- package/dist/core/lib/translations/de.d.ts +4 -0
- package/dist/jsonforms/cjs/JsonFormsWithCustomizer/JsonFormsWithCustomizer.cjs +16 -2
- package/dist/jsonforms/cjs/hooks/useDateProps.cjs +1 -1
- package/dist/jsonforms/cjs/layouts/Categorization/MantineCategorizationLayoutRenderer.cjs +3 -2
- package/dist/jsonforms/cjs/layouts/Categorization/variants/CategorizationCards.cjs +23 -15
- package/dist/jsonforms/cjs/layouts/Categorization/variants/CategorizationStepper.cjs +16 -12
- package/dist/jsonforms/cjs/layouts/Categorization/variants/CategorizationTabs.cjs +20 -7
- package/dist/jsonforms/cjs/utils/getAbsoluteValue.cjs +4 -0
- package/dist/jsonforms/esm/JsonFormsWithCustomizer/JsonFormsWithCustomizer.mjs +15 -1
- package/dist/jsonforms/esm/hooks/useDateProps.mjs +1 -1
- package/dist/jsonforms/esm/layouts/Categorization/MantineCategorizationLayoutRenderer.mjs +4 -3
- package/dist/jsonforms/esm/layouts/Categorization/variants/CategorizationCards.mjs +21 -13
- package/dist/jsonforms/esm/layouts/Categorization/variants/CategorizationStepper.mjs +16 -12
- package/dist/jsonforms/esm/layouts/Categorization/variants/CategorizationTabs.mjs +20 -7
- package/dist/jsonforms/esm/utils/getAbsoluteValue.mjs +4 -0
- package/dist/jsonforms/lib/JsonFormsWithCustomizer/JsonFormsWithCustomizer.d.ts +2 -0
- package/dist/jsonforms/lib/utils/getAbsoluteValue.d.ts +4 -0
- package/package.json +1 -1
- /package/dist/.external/cjs/{@iconify_react@6.0.1_react@18.3.1 → @iconify_react@6.0.2_react@18.3.1}/@iconify/react/dist/iconify.cjs +0 -0
- /package/dist/.external/cjs/{@tanstack_query-core@5.87.4 → @tanstack_query-core@5.89.0}/@tanstack/query-core/build/modern/focusManager.cjs +0 -0
- /package/dist/.external/cjs/{@tanstack_query-core@5.87.4 → @tanstack_query-core@5.89.0}/@tanstack/query-core/build/modern/infiniteQueryBehavior.cjs +0 -0
- /package/dist/.external/cjs/{@tanstack_query-core@5.87.4 → @tanstack_query-core@5.89.0}/@tanstack/query-core/build/modern/notifyManager.cjs +0 -0
- /package/dist/.external/cjs/{@tanstack_query-core@5.87.4 → @tanstack_query-core@5.89.0}/@tanstack/query-core/build/modern/onlineManager.cjs +0 -0
- /package/dist/.external/cjs/{@tanstack_query-core@5.87.4 → @tanstack_query-core@5.89.0}/@tanstack/query-core/build/modern/query.cjs +0 -0
- /package/dist/.external/cjs/{@tanstack_query-core@5.87.4 → @tanstack_query-core@5.89.0}/@tanstack/query-core/build/modern/queryCache.cjs +0 -0
- /package/dist/.external/cjs/{@tanstack_query-core@5.87.4 → @tanstack_query-core@5.89.0}/@tanstack/query-core/build/modern/queryClient.cjs +0 -0
- /package/dist/.external/cjs/{@tanstack_query-core@5.87.4 → @tanstack_query-core@5.89.0}/@tanstack/query-core/build/modern/queryObserver.cjs +0 -0
- /package/dist/.external/cjs/{@tanstack_query-core@5.87.4 → @tanstack_query-core@5.89.0}/@tanstack/query-core/build/modern/removable.cjs +0 -0
- /package/dist/.external/cjs/{@tanstack_query-core@5.87.4 → @tanstack_query-core@5.89.0}/@tanstack/query-core/build/modern/retryer.cjs +0 -0
- /package/dist/.external/cjs/{@tanstack_query-core@5.87.4 → @tanstack_query-core@5.89.0}/@tanstack/query-core/build/modern/subscribable.cjs +0 -0
- /package/dist/.external/cjs/{@tanstack_query-core@5.87.4 → @tanstack_query-core@5.89.0}/@tanstack/query-core/build/modern/thenable.cjs +0 -0
- /package/dist/.external/cjs/{@tanstack_query-core@5.87.4 → @tanstack_query-core@5.89.0}/@tanstack/query-core/build/modern/timeoutManager.cjs +0 -0
- /package/dist/.external/cjs/{@tanstack_query-core@5.87.4 → @tanstack_query-core@5.89.0}/@tanstack/query-core/build/modern/utils.cjs +0 -0
- /package/dist/.external/cjs/{@tanstack_react-query@5.87.4_react@18.3.1 → @tanstack_react-query@5.89.0_react@18.3.1}/@tanstack/react-query/build/modern/IsRestoringProvider.cjs +0 -0
- /package/dist/.external/cjs/{@tanstack_react-query@5.87.4_react@18.3.1 → @tanstack_react-query@5.89.0_react@18.3.1}/@tanstack/react-query/build/modern/QueryClientProvider.cjs +0 -0
- /package/dist/.external/cjs/{@tanstack_react-query@5.87.4_react@18.3.1 → @tanstack_react-query@5.89.0_react@18.3.1}/@tanstack/react-query/build/modern/QueryErrorResetBoundary.cjs +0 -0
- /package/dist/.external/cjs/{@tanstack_react-query@5.87.4_react@18.3.1 → @tanstack_react-query@5.89.0_react@18.3.1}/@tanstack/react-query/build/modern/suspense.cjs +0 -0
- /package/dist/.external/esm/{@iconify_react@6.0.1_react@18.3.1 → @iconify_react@6.0.2_react@18.3.1}/@iconify/react/dist/iconify.mjs +0 -0
- /package/dist/.external/esm/{@tanstack_query-core@5.87.4 → @tanstack_query-core@5.89.0}/@tanstack/query-core/build/modern/focusManager.mjs +0 -0
- /package/dist/.external/esm/{@tanstack_query-core@5.87.4 → @tanstack_query-core@5.89.0}/@tanstack/query-core/build/modern/infiniteQueryBehavior.mjs +0 -0
- /package/dist/.external/esm/{@tanstack_query-core@5.87.4 → @tanstack_query-core@5.89.0}/@tanstack/query-core/build/modern/notifyManager.mjs +0 -0
- /package/dist/.external/esm/{@tanstack_query-core@5.87.4 → @tanstack_query-core@5.89.0}/@tanstack/query-core/build/modern/onlineManager.mjs +0 -0
- /package/dist/.external/esm/{@tanstack_query-core@5.87.4 → @tanstack_query-core@5.89.0}/@tanstack/query-core/build/modern/query.mjs +0 -0
- /package/dist/.external/esm/{@tanstack_query-core@5.87.4 → @tanstack_query-core@5.89.0}/@tanstack/query-core/build/modern/queryCache.mjs +0 -0
- /package/dist/.external/esm/{@tanstack_query-core@5.87.4 → @tanstack_query-core@5.89.0}/@tanstack/query-core/build/modern/queryClient.mjs +0 -0
- /package/dist/.external/esm/{@tanstack_query-core@5.87.4 → @tanstack_query-core@5.89.0}/@tanstack/query-core/build/modern/queryObserver.mjs +0 -0
- /package/dist/.external/esm/{@tanstack_query-core@5.87.4 → @tanstack_query-core@5.89.0}/@tanstack/query-core/build/modern/removable.mjs +0 -0
- /package/dist/.external/esm/{@tanstack_query-core@5.87.4 → @tanstack_query-core@5.89.0}/@tanstack/query-core/build/modern/retryer.mjs +0 -0
- /package/dist/.external/esm/{@tanstack_query-core@5.87.4 → @tanstack_query-core@5.89.0}/@tanstack/query-core/build/modern/subscribable.mjs +0 -0
- /package/dist/.external/esm/{@tanstack_query-core@5.87.4 → @tanstack_query-core@5.89.0}/@tanstack/query-core/build/modern/thenable.mjs +0 -0
- /package/dist/.external/esm/{@tanstack_query-core@5.87.4 → @tanstack_query-core@5.89.0}/@tanstack/query-core/build/modern/timeoutManager.mjs +0 -0
- /package/dist/.external/esm/{@tanstack_query-core@5.87.4 → @tanstack_query-core@5.89.0}/@tanstack/query-core/build/modern/utils.mjs +0 -0
- /package/dist/.external/esm/{@tanstack_react-query@5.87.4_react@18.3.1 → @tanstack_react-query@5.89.0_react@18.3.1}/@tanstack/react-query/build/modern/IsRestoringProvider.mjs +0 -0
- /package/dist/.external/esm/{@tanstack_react-query@5.87.4_react@18.3.1 → @tanstack_react-query@5.89.0_react@18.3.1}/@tanstack/react-query/build/modern/QueryClientProvider.mjs +0 -0
- /package/dist/.external/esm/{@tanstack_react-query@5.87.4_react@18.3.1 → @tanstack_react-query@5.89.0_react@18.3.1}/@tanstack/react-query/build/modern/QueryErrorResetBoundary.mjs +0 -0
- /package/dist/.external/esm/{@tanstack_react-query@5.87.4_react@18.3.1 → @tanstack_react-query@5.89.0_react@18.3.1}/@tanstack/react-query/build/modern/suspense.mjs +0 -0
|
@@ -7,7 +7,7 @@ var __privateGet = (obj, member, getter) => (__accessCheck(obj, member, "read fr
|
|
|
7
7
|
var __privateAdd = (obj, member, value) => member.has(obj) ? __typeError("Cannot add the same private member more than once") : member instanceof WeakSet ? member.add(obj) : member.set(obj, value);
|
|
8
8
|
var __privateSet = (obj, member, value, setter) => (__accessCheck(obj, member, "write to private field"), setter ? setter.call(obj, value) : member.set(obj, value), value);
|
|
9
9
|
var __privateMethod = (obj, member, method) => (__accessCheck(obj, member, "access private method"), method);
|
|
10
|
-
var _observers, _mutationCache, _retryer, _Mutation_instances, dispatch_fn, _a;
|
|
10
|
+
var _client, _observers, _mutationCache, _retryer, _Mutation_instances, dispatch_fn, _a;
|
|
11
11
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
12
12
|
const notifyManager = require("./notifyManager.cjs");
|
|
13
13
|
const removable = require("./removable.cjs");
|
|
@@ -16,9 +16,11 @@ var Mutation = (_a = class extends removable.Removable {
|
|
|
16
16
|
constructor(config) {
|
|
17
17
|
super();
|
|
18
18
|
__privateAdd(this, _Mutation_instances);
|
|
19
|
+
__privateAdd(this, _client);
|
|
19
20
|
__privateAdd(this, _observers);
|
|
20
21
|
__privateAdd(this, _mutationCache);
|
|
21
22
|
__privateAdd(this, _retryer);
|
|
23
|
+
__privateSet(this, _client, config.client);
|
|
22
24
|
this.mutationId = config.mutationId;
|
|
23
25
|
__privateSet(this, _mutationCache, config.mutationCache);
|
|
24
26
|
__privateSet(this, _observers, []);
|
|
@@ -72,12 +74,17 @@ var Mutation = (_a = class extends removable.Removable {
|
|
|
72
74
|
const onContinue = () => {
|
|
73
75
|
__privateMethod(this, _Mutation_instances, dispatch_fn).call(this, { type: "continue" });
|
|
74
76
|
};
|
|
77
|
+
const mutationFnContext = {
|
|
78
|
+
client: __privateGet(this, _client),
|
|
79
|
+
meta: this.options.meta,
|
|
80
|
+
mutationKey: this.options.mutationKey
|
|
81
|
+
};
|
|
75
82
|
__privateSet(this, _retryer, retryer.createRetryer({
|
|
76
83
|
fn: () => {
|
|
77
84
|
if (!this.options.mutationFn) {
|
|
78
85
|
return Promise.reject(new Error("No mutationFn found"));
|
|
79
86
|
}
|
|
80
|
-
return this.options.mutationFn(variables);
|
|
87
|
+
return this.options.mutationFn(variables, mutationFnContext);
|
|
81
88
|
},
|
|
82
89
|
onFail: (failureCount, error) => {
|
|
83
90
|
__privateMethod(this, _Mutation_instances, dispatch_fn).call(this, { type: "failed", failureCount, error });
|
|
@@ -101,9 +108,14 @@ var Mutation = (_a = class extends removable.Removable {
|
|
|
101
108
|
await ((_b = (_a2 = __privateGet(this, _mutationCache).config).onMutate) == null ? void 0 : _b.call(
|
|
102
109
|
_a2,
|
|
103
110
|
variables,
|
|
104
|
-
this
|
|
111
|
+
this,
|
|
112
|
+
mutationFnContext
|
|
113
|
+
));
|
|
114
|
+
const context = await ((_d = (_c = this.options).onMutate) == null ? void 0 : _d.call(
|
|
115
|
+
_c,
|
|
116
|
+
variables,
|
|
117
|
+
mutationFnContext
|
|
105
118
|
));
|
|
106
|
-
const context = await ((_d = (_c = this.options).onMutate) == null ? void 0 : _d.call(_c, variables));
|
|
107
119
|
if (context !== this.state.context) {
|
|
108
120
|
__privateMethod(this, _Mutation_instances, dispatch_fn).call(this, {
|
|
109
121
|
type: "pending",
|
|
@@ -119,18 +131,33 @@ var Mutation = (_a = class extends removable.Removable {
|
|
|
119
131
|
data,
|
|
120
132
|
variables,
|
|
121
133
|
this.state.context,
|
|
122
|
-
this
|
|
134
|
+
this,
|
|
135
|
+
mutationFnContext
|
|
136
|
+
));
|
|
137
|
+
await ((_h = (_g = this.options).onSuccess) == null ? void 0 : _h.call(
|
|
138
|
+
_g,
|
|
139
|
+
data,
|
|
140
|
+
variables,
|
|
141
|
+
this.state.context,
|
|
142
|
+
mutationFnContext
|
|
123
143
|
));
|
|
124
|
-
await ((_h = (_g = this.options).onSuccess) == null ? void 0 : _h.call(_g, data, variables, this.state.context));
|
|
125
144
|
await ((_j = (_i = __privateGet(this, _mutationCache).config).onSettled) == null ? void 0 : _j.call(
|
|
126
145
|
_i,
|
|
127
146
|
data,
|
|
128
147
|
null,
|
|
129
148
|
this.state.variables,
|
|
130
149
|
this.state.context,
|
|
131
|
-
this
|
|
150
|
+
this,
|
|
151
|
+
mutationFnContext
|
|
152
|
+
));
|
|
153
|
+
await ((_l = (_k = this.options).onSettled) == null ? void 0 : _l.call(
|
|
154
|
+
_k,
|
|
155
|
+
data,
|
|
156
|
+
null,
|
|
157
|
+
variables,
|
|
158
|
+
this.state.context,
|
|
159
|
+
mutationFnContext
|
|
132
160
|
));
|
|
133
|
-
await ((_l = (_k = this.options).onSettled) == null ? void 0 : _l.call(_k, data, null, variables, this.state.context));
|
|
134
161
|
__privateMethod(this, _Mutation_instances, dispatch_fn).call(this, { type: "success", data });
|
|
135
162
|
return data;
|
|
136
163
|
} catch (error) {
|
|
@@ -140,13 +167,15 @@ var Mutation = (_a = class extends removable.Removable {
|
|
|
140
167
|
error,
|
|
141
168
|
variables,
|
|
142
169
|
this.state.context,
|
|
143
|
-
this
|
|
170
|
+
this,
|
|
171
|
+
mutationFnContext
|
|
144
172
|
));
|
|
145
173
|
await ((_p = (_o = this.options).onError) == null ? void 0 : _p.call(
|
|
146
174
|
_o,
|
|
147
175
|
error,
|
|
148
176
|
variables,
|
|
149
|
-
this.state.context
|
|
177
|
+
this.state.context,
|
|
178
|
+
mutationFnContext
|
|
150
179
|
));
|
|
151
180
|
await ((_r = (_q = __privateGet(this, _mutationCache).config).onSettled) == null ? void 0 : _r.call(
|
|
152
181
|
_q,
|
|
@@ -154,14 +183,16 @@ var Mutation = (_a = class extends removable.Removable {
|
|
|
154
183
|
error,
|
|
155
184
|
this.state.variables,
|
|
156
185
|
this.state.context,
|
|
157
|
-
this
|
|
186
|
+
this,
|
|
187
|
+
mutationFnContext
|
|
158
188
|
));
|
|
159
189
|
await ((_t = (_s = this.options).onSettled) == null ? void 0 : _t.call(
|
|
160
190
|
_s,
|
|
161
191
|
void 0,
|
|
162
192
|
error,
|
|
163
193
|
variables,
|
|
164
|
-
this.state.context
|
|
194
|
+
this.state.context,
|
|
195
|
+
mutationFnContext
|
|
165
196
|
));
|
|
166
197
|
throw error;
|
|
167
198
|
} finally {
|
|
@@ -171,7 +202,7 @@ var Mutation = (_a = class extends removable.Removable {
|
|
|
171
202
|
__privateGet(this, _mutationCache).runNext(this);
|
|
172
203
|
}
|
|
173
204
|
}
|
|
174
|
-
}, _observers = new WeakMap(), _mutationCache = new WeakMap(), _retryer = new WeakMap(), _Mutation_instances = new WeakSet(), dispatch_fn = function(action) {
|
|
205
|
+
}, _client = new WeakMap(), _observers = new WeakMap(), _mutationCache = new WeakMap(), _retryer = new WeakMap(), _Mutation_instances = new WeakSet(), dispatch_fn = function(action) {
|
|
175
206
|
const reducer = (state) => {
|
|
176
207
|
switch (action.type) {
|
|
177
208
|
case "failed":
|
|
@@ -33,6 +33,7 @@ var MutationCache = (_a = class extends subscribable.Subscribable {
|
|
|
33
33
|
}
|
|
34
34
|
build(client, options, state) {
|
|
35
35
|
const mutation$1 = new mutation.Mutation({
|
|
36
|
+
client,
|
|
36
37
|
mutationCache: this,
|
|
37
38
|
mutationId: ++__privateWrapper(this, _mutationId)._,
|
|
38
39
|
options: client.defaultMutationOptions(options),
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
3
|
const React = require("react");
|
|
4
|
-
const utils = require("../../../../../@tanstack_query-core@5.
|
|
4
|
+
const utils = require("../../../../../@tanstack_query-core@5.89.0/@tanstack/query-core/build/modern/utils.cjs");
|
|
5
5
|
function _interopNamespaceDefault(e) {
|
|
6
6
|
const n = Object.create(null, { [Symbol.toStringTag]: { value: "Module" } });
|
|
7
7
|
if (e) {
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
3
|
const React = require("react");
|
|
4
|
-
const notifyManager = require("../../../../../@tanstack_query-core@5.
|
|
5
|
-
const utils = require("../../../../../@tanstack_query-core@5.
|
|
4
|
+
const notifyManager = require("../../../../../@tanstack_query-core@5.89.0/@tanstack/query-core/build/modern/notifyManager.cjs");
|
|
5
|
+
const utils = require("../../../../../@tanstack_query-core@5.89.0/@tanstack/query-core/build/modern/utils.cjs");
|
|
6
6
|
const QueryClientProvider = require("./QueryClientProvider.cjs");
|
|
7
7
|
const QueryErrorResetBoundary = require("./QueryErrorResetBoundary.cjs");
|
|
8
8
|
const errorBoundaryUtils = require("./errorBoundaryUtils.cjs");
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
|
-
const queryObserver = require("../../../../../@tanstack_query-core@5.
|
|
3
|
+
const queryObserver = require("../../../../../@tanstack_query-core@5.89.0/@tanstack/query-core/build/modern/queryObserver.cjs");
|
|
4
4
|
const useBaseQuery = require("./useBaseQuery.cjs");
|
|
5
5
|
function useQuery(options, queryClient) {
|
|
6
6
|
return useBaseQuery.useBaseQuery(options, queryObserver.QueryObserver);
|
|
@@ -6,7 +6,7 @@ var __privateGet = (obj, member, getter) => (__accessCheck(obj, member, "read fr
|
|
|
6
6
|
var __privateAdd = (obj, member, value) => member.has(obj) ? __typeError("Cannot add the same private member more than once") : member instanceof WeakSet ? member.add(obj) : member.set(obj, value);
|
|
7
7
|
var __privateSet = (obj, member, value, setter) => (__accessCheck(obj, member, "write to private field"), setter ? setter.call(obj, value) : member.set(obj, value), value);
|
|
8
8
|
var __privateMethod = (obj, member, method) => (__accessCheck(obj, member, "access private method"), method);
|
|
9
|
-
var _observers, _mutationCache, _retryer, _Mutation_instances, dispatch_fn, _a;
|
|
9
|
+
var _client, _observers, _mutationCache, _retryer, _Mutation_instances, dispatch_fn, _a;
|
|
10
10
|
import { notifyManager } from "./notifyManager.mjs";
|
|
11
11
|
import { Removable } from "./removable.mjs";
|
|
12
12
|
import { createRetryer } from "./retryer.mjs";
|
|
@@ -14,9 +14,11 @@ var Mutation = (_a = class extends Removable {
|
|
|
14
14
|
constructor(config) {
|
|
15
15
|
super();
|
|
16
16
|
__privateAdd(this, _Mutation_instances);
|
|
17
|
+
__privateAdd(this, _client);
|
|
17
18
|
__privateAdd(this, _observers);
|
|
18
19
|
__privateAdd(this, _mutationCache);
|
|
19
20
|
__privateAdd(this, _retryer);
|
|
21
|
+
__privateSet(this, _client, config.client);
|
|
20
22
|
this.mutationId = config.mutationId;
|
|
21
23
|
__privateSet(this, _mutationCache, config.mutationCache);
|
|
22
24
|
__privateSet(this, _observers, []);
|
|
@@ -70,12 +72,17 @@ var Mutation = (_a = class extends Removable {
|
|
|
70
72
|
const onContinue = () => {
|
|
71
73
|
__privateMethod(this, _Mutation_instances, dispatch_fn).call(this, { type: "continue" });
|
|
72
74
|
};
|
|
75
|
+
const mutationFnContext = {
|
|
76
|
+
client: __privateGet(this, _client),
|
|
77
|
+
meta: this.options.meta,
|
|
78
|
+
mutationKey: this.options.mutationKey
|
|
79
|
+
};
|
|
73
80
|
__privateSet(this, _retryer, createRetryer({
|
|
74
81
|
fn: () => {
|
|
75
82
|
if (!this.options.mutationFn) {
|
|
76
83
|
return Promise.reject(new Error("No mutationFn found"));
|
|
77
84
|
}
|
|
78
|
-
return this.options.mutationFn(variables);
|
|
85
|
+
return this.options.mutationFn(variables, mutationFnContext);
|
|
79
86
|
},
|
|
80
87
|
onFail: (failureCount, error) => {
|
|
81
88
|
__privateMethod(this, _Mutation_instances, dispatch_fn).call(this, { type: "failed", failureCount, error });
|
|
@@ -99,9 +106,14 @@ var Mutation = (_a = class extends Removable {
|
|
|
99
106
|
await ((_b = (_a2 = __privateGet(this, _mutationCache).config).onMutate) == null ? void 0 : _b.call(
|
|
100
107
|
_a2,
|
|
101
108
|
variables,
|
|
102
|
-
this
|
|
109
|
+
this,
|
|
110
|
+
mutationFnContext
|
|
111
|
+
));
|
|
112
|
+
const context = await ((_d = (_c = this.options).onMutate) == null ? void 0 : _d.call(
|
|
113
|
+
_c,
|
|
114
|
+
variables,
|
|
115
|
+
mutationFnContext
|
|
103
116
|
));
|
|
104
|
-
const context = await ((_d = (_c = this.options).onMutate) == null ? void 0 : _d.call(_c, variables));
|
|
105
117
|
if (context !== this.state.context) {
|
|
106
118
|
__privateMethod(this, _Mutation_instances, dispatch_fn).call(this, {
|
|
107
119
|
type: "pending",
|
|
@@ -117,18 +129,33 @@ var Mutation = (_a = class extends Removable {
|
|
|
117
129
|
data,
|
|
118
130
|
variables,
|
|
119
131
|
this.state.context,
|
|
120
|
-
this
|
|
132
|
+
this,
|
|
133
|
+
mutationFnContext
|
|
134
|
+
));
|
|
135
|
+
await ((_h = (_g = this.options).onSuccess) == null ? void 0 : _h.call(
|
|
136
|
+
_g,
|
|
137
|
+
data,
|
|
138
|
+
variables,
|
|
139
|
+
this.state.context,
|
|
140
|
+
mutationFnContext
|
|
121
141
|
));
|
|
122
|
-
await ((_h = (_g = this.options).onSuccess) == null ? void 0 : _h.call(_g, data, variables, this.state.context));
|
|
123
142
|
await ((_j = (_i = __privateGet(this, _mutationCache).config).onSettled) == null ? void 0 : _j.call(
|
|
124
143
|
_i,
|
|
125
144
|
data,
|
|
126
145
|
null,
|
|
127
146
|
this.state.variables,
|
|
128
147
|
this.state.context,
|
|
129
|
-
this
|
|
148
|
+
this,
|
|
149
|
+
mutationFnContext
|
|
150
|
+
));
|
|
151
|
+
await ((_l = (_k = this.options).onSettled) == null ? void 0 : _l.call(
|
|
152
|
+
_k,
|
|
153
|
+
data,
|
|
154
|
+
null,
|
|
155
|
+
variables,
|
|
156
|
+
this.state.context,
|
|
157
|
+
mutationFnContext
|
|
130
158
|
));
|
|
131
|
-
await ((_l = (_k = this.options).onSettled) == null ? void 0 : _l.call(_k, data, null, variables, this.state.context));
|
|
132
159
|
__privateMethod(this, _Mutation_instances, dispatch_fn).call(this, { type: "success", data });
|
|
133
160
|
return data;
|
|
134
161
|
} catch (error) {
|
|
@@ -138,13 +165,15 @@ var Mutation = (_a = class extends Removable {
|
|
|
138
165
|
error,
|
|
139
166
|
variables,
|
|
140
167
|
this.state.context,
|
|
141
|
-
this
|
|
168
|
+
this,
|
|
169
|
+
mutationFnContext
|
|
142
170
|
));
|
|
143
171
|
await ((_p = (_o = this.options).onError) == null ? void 0 : _p.call(
|
|
144
172
|
_o,
|
|
145
173
|
error,
|
|
146
174
|
variables,
|
|
147
|
-
this.state.context
|
|
175
|
+
this.state.context,
|
|
176
|
+
mutationFnContext
|
|
148
177
|
));
|
|
149
178
|
await ((_r = (_q = __privateGet(this, _mutationCache).config).onSettled) == null ? void 0 : _r.call(
|
|
150
179
|
_q,
|
|
@@ -152,14 +181,16 @@ var Mutation = (_a = class extends Removable {
|
|
|
152
181
|
error,
|
|
153
182
|
this.state.variables,
|
|
154
183
|
this.state.context,
|
|
155
|
-
this
|
|
184
|
+
this,
|
|
185
|
+
mutationFnContext
|
|
156
186
|
));
|
|
157
187
|
await ((_t = (_s = this.options).onSettled) == null ? void 0 : _t.call(
|
|
158
188
|
_s,
|
|
159
189
|
void 0,
|
|
160
190
|
error,
|
|
161
191
|
variables,
|
|
162
|
-
this.state.context
|
|
192
|
+
this.state.context,
|
|
193
|
+
mutationFnContext
|
|
163
194
|
));
|
|
164
195
|
throw error;
|
|
165
196
|
} finally {
|
|
@@ -169,7 +200,7 @@ var Mutation = (_a = class extends Removable {
|
|
|
169
200
|
__privateGet(this, _mutationCache).runNext(this);
|
|
170
201
|
}
|
|
171
202
|
}
|
|
172
|
-
}, _observers = new WeakMap(), _mutationCache = new WeakMap(), _retryer = new WeakMap(), _Mutation_instances = new WeakSet(), dispatch_fn = function(action) {
|
|
203
|
+
}, _client = new WeakMap(), _observers = new WeakMap(), _mutationCache = new WeakMap(), _retryer = new WeakMap(), _Mutation_instances = new WeakSet(), dispatch_fn = function(action) {
|
|
173
204
|
const reducer = (state) => {
|
|
174
205
|
switch (action.type) {
|
|
175
206
|
case "failed":
|
|
@@ -31,6 +31,7 @@ var MutationCache = (_a = class extends Subscribable {
|
|
|
31
31
|
}
|
|
32
32
|
build(client, options, state) {
|
|
33
33
|
const mutation = new Mutation({
|
|
34
|
+
client,
|
|
34
35
|
mutationCache: this,
|
|
35
36
|
mutationId: ++__privateWrapper(this, _mutationId)._,
|
|
36
37
|
options: client.defaultMutationOptions(options),
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as React from "react";
|
|
2
|
-
import { shouldThrowError } from "../../../../../@tanstack_query-core@5.
|
|
2
|
+
import { shouldThrowError } from "../../../../../@tanstack_query-core@5.89.0/@tanstack/query-core/build/modern/utils.mjs";
|
|
3
3
|
var ensurePreventErrorBoundaryRetry = (options, errorResetBoundary) => {
|
|
4
4
|
if (options.suspense || options.throwOnError || options.experimental_prefetchInRender) {
|
|
5
5
|
if (!errorResetBoundary.isReset()) {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as React from "react";
|
|
2
|
-
import { notifyManager } from "../../../../../@tanstack_query-core@5.
|
|
3
|
-
import { noop, isServer } from "../../../../../@tanstack_query-core@5.
|
|
2
|
+
import { notifyManager } from "../../../../../@tanstack_query-core@5.89.0/@tanstack/query-core/build/modern/notifyManager.mjs";
|
|
3
|
+
import { noop, isServer } from "../../../../../@tanstack_query-core@5.89.0/@tanstack/query-core/build/modern/utils.mjs";
|
|
4
4
|
import { useQueryClient } from "./QueryClientProvider.mjs";
|
|
5
5
|
import { useQueryErrorResetBoundary } from "./QueryErrorResetBoundary.mjs";
|
|
6
6
|
import { ensurePreventErrorBoundaryRetry, useClearResetErrorBoundary, getHasError } from "./errorBoundaryUtils.mjs";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { QueryObserver } from "../../../../../@tanstack_query-core@5.
|
|
1
|
+
import { QueryObserver } from "../../../../../@tanstack_query-core@5.89.0/@tanstack/query-core/build/modern/queryObserver.mjs";
|
|
2
2
|
import { useBaseQuery } from "./useBaseQuery.mjs";
|
|
3
3
|
function useQuery(options, queryClient) {
|
|
4
4
|
return useBaseQuery(options, QueryObserver);
|
|
@@ -3,7 +3,7 @@ Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
|
3
3
|
const jsxRuntime = require("react/jsx-runtime");
|
|
4
4
|
const constants = require("fastapi-rtk/constants");
|
|
5
5
|
const utils = require("fastapi-rtk/utils");
|
|
6
|
-
const iconify = require("../../../.external/cjs/@iconify_react@6.0.
|
|
6
|
+
const iconify = require("../../../.external/cjs/@iconify_react@6.0.2_react@18.3.1/@iconify/react/dist/iconify.cjs");
|
|
7
7
|
const core = require("@mantine/core");
|
|
8
8
|
const useInfo = require("../hooks/auth/useInfo.cjs");
|
|
9
9
|
require("../Wrappers/Provider/Contexts/LangContext.cjs");
|
|
@@ -3,10 +3,13 @@ Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
|
3
3
|
const jsxRuntime = require("react/jsx-runtime");
|
|
4
4
|
const core = require("@mantine/core");
|
|
5
5
|
const React = require("react");
|
|
6
|
+
require("../../../../../../Wrappers/Provider/Contexts/LangContext.cjs");
|
|
7
|
+
const useTranslation = require("../../../../../../../../.external/cjs/react-i18next@15.7.3_i18next@25.5.2_react-dom@18.3.1_react@18.3.1_typescript@5.9.2/react-i18next/dist/es/useTranslation.cjs");
|
|
6
8
|
const IconX = require("../../../../../../../../.external/cjs/@tabler_icons-react@3.18.0_react@18.3.1/@tabler/icons-react/dist/esm/icons/IconX.cjs");
|
|
7
9
|
const criteria = (v) => v !== void 0 && v !== null && v !== "";
|
|
8
10
|
const HeaderBetweenInput = React.forwardRef(({ clearIcon: _, mrtprops: { textinputprops }, ...props }, ref) => {
|
|
9
11
|
const { value, onChange, leftInputProps, rightInputProps, groupProps, cleariconprops, ...rest } = props;
|
|
12
|
+
const { t } = useTranslation.useTranslation();
|
|
10
13
|
const [localValues, setLocalValues] = React.useState([null, null]);
|
|
11
14
|
React.useEffect(() => {
|
|
12
15
|
if (!value) {
|
|
@@ -45,7 +48,8 @@ const HeaderBetweenInput = React.forwardRef(({ clearIcon: _, mrtprops: { textinp
|
|
|
45
48
|
...textinputprops,
|
|
46
49
|
value: value_1 ?? "",
|
|
47
50
|
onChange: (value2) => onNumberChange(value2, 0),
|
|
48
|
-
placeholder: error_1 ? "Start value is required" : "Start value",
|
|
51
|
+
placeholder: t(error_1 ? "Start value is required" : "Start value"),
|
|
52
|
+
title: t(error_1 ? "Start value is required" : "Start value"),
|
|
49
53
|
error: error_1 && " ",
|
|
50
54
|
...leftInputProps
|
|
51
55
|
}
|
|
@@ -60,7 +64,8 @@ const HeaderBetweenInput = React.forwardRef(({ clearIcon: _, mrtprops: { textinp
|
|
|
60
64
|
...textinputprops,
|
|
61
65
|
value: value_2 ?? "",
|
|
62
66
|
onChange: (value2) => onNumberChange(value2, 1),
|
|
63
|
-
placeholder: error_2 ? "End value is required" : "End value",
|
|
67
|
+
placeholder: t(error_2 ? "End value is required" : "End value"),
|
|
68
|
+
title: t(error_2 ? "End value is required" : "End value"),
|
|
64
69
|
error: error_2 && " ",
|
|
65
70
|
...rightInputProps
|
|
66
71
|
}
|
|
@@ -20,6 +20,8 @@ function ApiProvider({
|
|
|
20
20
|
fetchInfo,
|
|
21
21
|
clearInfoOnRefetch,
|
|
22
22
|
clearDataOnRefetch,
|
|
23
|
+
refetchInfoBasedOnLang,
|
|
24
|
+
refetchDataBasedOnLang,
|
|
23
25
|
resetQueryParamsOnPathChange,
|
|
24
26
|
infoQueryProps,
|
|
25
27
|
dataQueryProps,
|
|
@@ -37,6 +39,8 @@ function ApiProvider({
|
|
|
37
39
|
fetchInfo,
|
|
38
40
|
clearInfoOnRefetch,
|
|
39
41
|
clearDataOnRefetch,
|
|
42
|
+
refetchInfoBasedOnLang,
|
|
43
|
+
refetchDataBasedOnLang,
|
|
40
44
|
resetQueryParamsOnPathChange,
|
|
41
45
|
infoQueryProps,
|
|
42
46
|
dataQueryProps,
|
|
@@ -3,8 +3,8 @@ Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
|
3
3
|
const React = require("react");
|
|
4
4
|
const utils = require("fastapi-rtk/utils");
|
|
5
5
|
const hooks = require("@mantine/hooks");
|
|
6
|
-
const utils$1 = require("../../../../../.external/cjs/@tanstack_query-core@5.
|
|
7
|
-
const useQuery = require("../../../../../.external/cjs/@tanstack_react-query@5.
|
|
6
|
+
const utils$1 = require("../../../../../.external/cjs/@tanstack_query-core@5.89.0/@tanstack/query-core/build/modern/utils.cjs");
|
|
7
|
+
const useQuery = require("../../../../../.external/cjs/@tanstack_react-query@5.89.0_react@18.3.1/@tanstack/react-query/build/modern/useQuery.cjs");
|
|
8
8
|
const useLang = require("../../../hooks/lang/useLang.cjs");
|
|
9
9
|
const createItem = require("../utils/api/createItem.cjs");
|
|
10
10
|
const deleteItem = require("../utils/api/deleteItem.cjs");
|
|
@@ -37,6 +37,8 @@ function useProvideApi({
|
|
|
37
37
|
fetchInfo = true,
|
|
38
38
|
clearInfoOnRefetch = false,
|
|
39
39
|
clearDataOnRefetch = false,
|
|
40
|
+
refetchInfoBasedOnLang = true,
|
|
41
|
+
refetchDataBasedOnLang = true,
|
|
40
42
|
resetQueryParamsOnPathChange = true,
|
|
41
43
|
infoQueryProps,
|
|
42
44
|
dataQueryProps,
|
|
@@ -107,7 +109,7 @@ function useProvideApi({
|
|
|
107
109
|
refetch: infoRefetch,
|
|
108
110
|
error: infoError
|
|
109
111
|
} = useQuery.useQuery({
|
|
110
|
-
queryKey: [`info`, path, currentLanguage],
|
|
112
|
+
queryKey: [`info`, path, refetchInfoBasedOnLang ? currentLanguage : ""],
|
|
111
113
|
queryFn: ({ signal }) => api.getInfo(utils.urlJoin(path, "_info"), { signal, headers: { "Accept-Language": currentLanguage } }).then((data2) => ({ ...convertInfo.convertInfo(data2), path })),
|
|
112
114
|
placeholderData: clearInfoOnRefetch ? null : utils$1.keepPreviousData,
|
|
113
115
|
enabled: fetchInfo,
|
|
@@ -127,7 +129,12 @@ function useProvideApi({
|
|
|
127
129
|
refetch: dataRefetch,
|
|
128
130
|
error: dataError
|
|
129
131
|
} = useQuery.useQuery({
|
|
130
|
-
queryKey: [
|
|
132
|
+
queryKey: [
|
|
133
|
+
`data`,
|
|
134
|
+
memoizedQueryParamsPathRef.current,
|
|
135
|
+
JSON.stringify(memoizedQueryParams),
|
|
136
|
+
refetchDataBasedOnLang ? currentLanguage : ""
|
|
137
|
+
],
|
|
131
138
|
queryFn: ({ signal }) => memoizedQueryParams ? api.getItems(utils.urlJoin(memoizedQueryParamsPathRef.current, "/"), memoizedQueryParams, {
|
|
132
139
|
signal,
|
|
133
140
|
headers: { "Accept-Language": currentLanguage }
|
|
@@ -2,8 +2,8 @@
|
|
|
2
2
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
3
|
const jsxRuntime = require("react/jsx-runtime");
|
|
4
4
|
const zustand = require("fastapi-rtk/zustand");
|
|
5
|
-
const queryClient = require("../../../../.external/cjs/@tanstack_query-core@5.
|
|
6
|
-
const QueryClientProvider = require("../../../../.external/cjs/@tanstack_react-query@5.
|
|
5
|
+
const queryClient = require("../../../../.external/cjs/@tanstack_query-core@5.89.0/@tanstack/query-core/build/modern/queryClient.cjs");
|
|
6
|
+
const QueryClientProvider = require("../../../../.external/cjs/@tanstack_react-query@5.89.0_react@18.3.1/@tanstack/react-query/build/modern/QueryClientProvider.cjs");
|
|
7
7
|
const React = require("react");
|
|
8
8
|
const useProvideAuth = require("../../fab-react-toolkit-patch/auth/hooks/useProvideAuth.cjs");
|
|
9
9
|
const useProvideInfo = require("../../fab-react-toolkit-patch/auth/hooks/useProvideInfo.cjs");
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
|
-
const useQuery = require("../../../../../.external/cjs/@tanstack_react-query@5.
|
|
4
|
-
const QueryClientProvider = require("../../../../../.external/cjs/@tanstack_react-query@5.
|
|
3
|
+
const useQuery = require("../../../../../.external/cjs/@tanstack_react-query@5.89.0_react@18.3.1/@tanstack/react-query/build/modern/useQuery.cjs");
|
|
4
|
+
const QueryClientProvider = require("../../../../../.external/cjs/@tanstack_react-query@5.89.0_react@18.3.1/@tanstack/react-query/build/modern/QueryClientProvider.cjs");
|
|
5
5
|
const React = require("react");
|
|
6
6
|
const authFetch = require("../utils/authFetch.cjs");
|
|
7
7
|
const userCRUD = require("../utils/userCRUD.cjs");
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
|
-
const useQuery = require("../../../../../.external/cjs/@tanstack_react-query@5.
|
|
3
|
+
const useQuery = require("../../../../../.external/cjs/@tanstack_react-query@5.89.0_react@18.3.1/@tanstack/react-query/build/modern/useQuery.cjs");
|
|
4
4
|
const React = require("react");
|
|
5
5
|
const authFetch = require("../utils/authFetch.cjs");
|
|
6
6
|
const defaultInfo = { getInfo: authFetch.authInfo };
|
|
@@ -38,6 +38,11 @@ const de = {
|
|
|
38
38
|
"Username or password wrong.": "Benutzername oder Passwort falsch.",
|
|
39
39
|
"Failed to sign in.": "Anmeldung fehlgeschlagen.",
|
|
40
40
|
"Failed to sign out.": "Abmeldung fehlgeschlagen.",
|
|
41
|
-
"Could not request token to reset password": "Token zum Zurücksetzen des Passworts konnte nicht angefordert werden"
|
|
41
|
+
"Could not request token to reset password": "Token zum Zurücksetzen des Passworts konnte nicht angefordert werden",
|
|
42
|
+
// Inputs
|
|
43
|
+
"Start value": "Startwert",
|
|
44
|
+
"Start value is required": "Startwert ist erforderlich",
|
|
45
|
+
"End value": "Endwert",
|
|
46
|
+
"End value is required": "Endwert ist erforderlich"
|
|
42
47
|
};
|
|
43
48
|
module.exports = de;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsx, jsxs, Fragment } from "react/jsx-runtime";
|
|
2
2
|
import { VIEW_MODE } from "fastapi-rtk/constants";
|
|
3
3
|
import { deepMerge, parseFromValuesOrFunc } from "fastapi-rtk/utils";
|
|
4
|
-
import { Icon } from "../../../.external/esm/@iconify_react@6.0.
|
|
4
|
+
import { Icon } from "../../../.external/esm/@iconify_react@6.0.2_react@18.3.1/@iconify/react/dist/iconify.mjs";
|
|
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";
|
|
@@ -1,10 +1,13 @@
|
|
|
1
1
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
2
2
|
import { ActionIcon, Group, NumberInput } from "@mantine/core";
|
|
3
3
|
import { forwardRef, useState, useEffect, useCallback } from "react";
|
|
4
|
+
import "../../../../../../Wrappers/Provider/Contexts/LangContext.mjs";
|
|
5
|
+
import { useTranslation } from "../../../../../../../../.external/esm/react-i18next@15.7.3_i18next@25.5.2_react-dom@18.3.1_react@18.3.1_typescript@5.9.2/react-i18next/dist/es/useTranslation.mjs";
|
|
4
6
|
import IconX from "../../../../../../../../.external/esm/@tabler_icons-react@3.18.0_react@18.3.1/@tabler/icons-react/dist/esm/icons/IconX.mjs";
|
|
5
7
|
const criteria = (v) => v !== void 0 && v !== null && v !== "";
|
|
6
8
|
const HeaderBetweenInput = forwardRef(({ clearIcon: _, mrtprops: { textinputprops }, ...props }, ref) => {
|
|
7
9
|
const { value, onChange, leftInputProps, rightInputProps, groupProps, cleariconprops, ...rest } = props;
|
|
10
|
+
const { t } = useTranslation();
|
|
8
11
|
const [localValues, setLocalValues] = useState([null, null]);
|
|
9
12
|
useEffect(() => {
|
|
10
13
|
if (!value) {
|
|
@@ -43,7 +46,8 @@ const HeaderBetweenInput = forwardRef(({ clearIcon: _, mrtprops: { textinputprop
|
|
|
43
46
|
...textinputprops,
|
|
44
47
|
value: value_1 ?? "",
|
|
45
48
|
onChange: (value2) => onNumberChange(value2, 0),
|
|
46
|
-
placeholder: error_1 ? "Start value is required" : "Start value",
|
|
49
|
+
placeholder: t(error_1 ? "Start value is required" : "Start value"),
|
|
50
|
+
title: t(error_1 ? "Start value is required" : "Start value"),
|
|
47
51
|
error: error_1 && " ",
|
|
48
52
|
...leftInputProps
|
|
49
53
|
}
|
|
@@ -58,7 +62,8 @@ const HeaderBetweenInput = forwardRef(({ clearIcon: _, mrtprops: { textinputprop
|
|
|
58
62
|
...textinputprops,
|
|
59
63
|
value: value_2 ?? "",
|
|
60
64
|
onChange: (value2) => onNumberChange(value2, 1),
|
|
61
|
-
placeholder: error_2 ? "End value is required" : "End value",
|
|
65
|
+
placeholder: t(error_2 ? "End value is required" : "End value"),
|
|
66
|
+
title: t(error_2 ? "End value is required" : "End value"),
|
|
62
67
|
error: error_2 && " ",
|
|
63
68
|
...rightInputProps
|
|
64
69
|
}
|
|
@@ -18,6 +18,8 @@ function ApiProvider({
|
|
|
18
18
|
fetchInfo,
|
|
19
19
|
clearInfoOnRefetch,
|
|
20
20
|
clearDataOnRefetch,
|
|
21
|
+
refetchInfoBasedOnLang,
|
|
22
|
+
refetchDataBasedOnLang,
|
|
21
23
|
resetQueryParamsOnPathChange,
|
|
22
24
|
infoQueryProps,
|
|
23
25
|
dataQueryProps,
|
|
@@ -35,6 +37,8 @@ function ApiProvider({
|
|
|
35
37
|
fetchInfo,
|
|
36
38
|
clearInfoOnRefetch,
|
|
37
39
|
clearDataOnRefetch,
|
|
40
|
+
refetchInfoBasedOnLang,
|
|
41
|
+
refetchDataBasedOnLang,
|
|
38
42
|
resetQueryParamsOnPathChange,
|
|
39
43
|
infoQueryProps,
|
|
40
44
|
dataQueryProps,
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { useState, useRef, useEffect, useMemo, useCallback } from "react";
|
|
2
2
|
import { convertId, getItemId, urlJoin } from "fastapi-rtk/utils";
|
|
3
3
|
import { useDidUpdate, useSetState } from "@mantine/hooks";
|
|
4
|
-
import { keepPreviousData } from "../../../../../.external/esm/@tanstack_query-core@5.
|
|
5
|
-
import { useQuery } from "../../../../../.external/esm/@tanstack_react-query@5.
|
|
4
|
+
import { keepPreviousData } from "../../../../../.external/esm/@tanstack_query-core@5.89.0/@tanstack/query-core/build/modern/utils.mjs";
|
|
5
|
+
import { useQuery } from "../../../../../.external/esm/@tanstack_react-query@5.89.0_react@18.3.1/@tanstack/react-query/build/modern/useQuery.mjs";
|
|
6
6
|
import { useLang } from "../../../hooks/lang/useLang.mjs";
|
|
7
7
|
import { createItem } from "../utils/api/createItem.mjs";
|
|
8
8
|
import { deleteItem } from "../utils/api/deleteItem.mjs";
|
|
@@ -35,6 +35,8 @@ function useProvideApi({
|
|
|
35
35
|
fetchInfo = true,
|
|
36
36
|
clearInfoOnRefetch = false,
|
|
37
37
|
clearDataOnRefetch = false,
|
|
38
|
+
refetchInfoBasedOnLang = true,
|
|
39
|
+
refetchDataBasedOnLang = true,
|
|
38
40
|
resetQueryParamsOnPathChange = true,
|
|
39
41
|
infoQueryProps,
|
|
40
42
|
dataQueryProps,
|
|
@@ -105,7 +107,7 @@ function useProvideApi({
|
|
|
105
107
|
refetch: infoRefetch,
|
|
106
108
|
error: infoError
|
|
107
109
|
} = useQuery({
|
|
108
|
-
queryKey: [`info`, path, currentLanguage],
|
|
110
|
+
queryKey: [`info`, path, refetchInfoBasedOnLang ? currentLanguage : ""],
|
|
109
111
|
queryFn: ({ signal }) => api.getInfo(urlJoin(path, "_info"), { signal, headers: { "Accept-Language": currentLanguage } }).then((data2) => ({ ...convertInfo(data2), path })),
|
|
110
112
|
placeholderData: clearInfoOnRefetch ? null : keepPreviousData,
|
|
111
113
|
enabled: fetchInfo,
|
|
@@ -125,7 +127,12 @@ function useProvideApi({
|
|
|
125
127
|
refetch: dataRefetch,
|
|
126
128
|
error: dataError
|
|
127
129
|
} = useQuery({
|
|
128
|
-
queryKey: [
|
|
130
|
+
queryKey: [
|
|
131
|
+
`data`,
|
|
132
|
+
memoizedQueryParamsPathRef.current,
|
|
133
|
+
JSON.stringify(memoizedQueryParams),
|
|
134
|
+
refetchDataBasedOnLang ? currentLanguage : ""
|
|
135
|
+
],
|
|
129
136
|
queryFn: ({ signal }) => memoizedQueryParams ? api.getItems(urlJoin(memoizedQueryParamsPathRef.current, "/"), memoizedQueryParams, {
|
|
130
137
|
signal,
|
|
131
138
|
headers: { "Accept-Language": currentLanguage }
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsx } from "react/jsx-runtime";
|
|
2
2
|
import { useProxy } from "fastapi-rtk/zustand";
|
|
3
|
-
import { QueryClient } from "../../../../.external/esm/@tanstack_query-core@5.
|
|
4
|
-
import { QueryClientProvider } from "../../../../.external/esm/@tanstack_react-query@5.
|
|
3
|
+
import { QueryClient } from "../../../../.external/esm/@tanstack_query-core@5.89.0/@tanstack/query-core/build/modern/queryClient.mjs";
|
|
4
|
+
import { QueryClientProvider } from "../../../../.external/esm/@tanstack_react-query@5.89.0_react@18.3.1/@tanstack/react-query/build/modern/QueryClientProvider.mjs";
|
|
5
5
|
import { useState, useMemo } from "react";
|
|
6
6
|
import { defaultAuth } from "../../fab-react-toolkit-patch/auth/hooks/useProvideAuth.mjs";
|
|
7
7
|
import { defaultInfo } from "../../fab-react-toolkit-patch/auth/hooks/useProvideInfo.mjs";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { useQuery } from "../../../../../.external/esm/@tanstack_react-query@5.
|
|
2
|
-
import { useQueryClient } from "../../../../../.external/esm/@tanstack_react-query@5.
|
|
1
|
+
import { useQuery } from "../../../../../.external/esm/@tanstack_react-query@5.89.0_react@18.3.1/@tanstack/react-query/build/modern/useQuery.mjs";
|
|
2
|
+
import { useQueryClient } from "../../../../../.external/esm/@tanstack_react-query@5.89.0_react@18.3.1/@tanstack/react-query/build/modern/QueryClientProvider.mjs";
|
|
3
3
|
import { useState, useCallback, useMemo } from "react";
|
|
4
4
|
import { authOAuthSignin, authResetPassword, authSignout, authSignin } from "../utils/authFetch.mjs";
|
|
5
5
|
import { updateUser, getUser } from "../utils/userCRUD.mjs";
|