fastapi-rtk 0.2.22 → 0.2.24
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/index10.cjs +2 -2
- package/dist/.bundled/jsonforms/cjs/_virtual/index6.cjs +2 -2
- package/dist/.bundled/jsonforms/cjs/_virtual/index7.cjs +2 -2
- package/dist/.bundled/jsonforms/cjs/_virtual/index8.cjs +2 -2
- package/dist/.bundled/jsonforms/cjs/_virtual/index9.cjs +2 -2
- package/dist/.bundled/jsonforms/esm/_virtual/index10.mjs +2 -2
- package/dist/.bundled/jsonforms/esm/_virtual/index6.mjs +2 -2
- package/dist/.bundled/jsonforms/esm/_virtual/index7.mjs +2 -2
- package/dist/.bundled/jsonforms/esm/_virtual/index8.mjs +2 -2
- package/dist/.bundled/jsonforms/esm/_virtual/index9.mjs +2 -2
- package/dist/.external/cjs/ajv@8.17.1/ajv/dist/compile/index.cjs +1 -1
- package/dist/.external/cjs/ajv@8.17.1/ajv/dist/runtime/uri.cjs +1 -1
- package/dist/.external/cjs/ajv@8.17.1/ajv/dist/vocabularies/applicator/index.cjs +1 -1
- package/dist/.external/cjs/ajv@8.17.1/ajv/dist/vocabularies/core/index.cjs +1 -1
- package/dist/.external/cjs/ajv@8.17.1/ajv/dist/vocabularies/format/index.cjs +1 -1
- package/dist/.external/cjs/ajv@8.17.1/ajv/dist/vocabularies/validation/index.cjs +1 -1
- package/dist/.external/cjs/{fast-uri@3.0.6 → fast-uri@3.1.0}/fast-uri/index.cjs +51 -53
- package/dist/.external/cjs/fast-uri@3.1.0/fast-uri/lib/schemes.cjs +214 -0
- package/dist/.external/cjs/fast-uri@3.1.0/fast-uri/lib/utils.cjs +260 -0
- package/dist/.external/esm/ajv@8.17.1/ajv/dist/compile/index.mjs +1 -1
- package/dist/.external/esm/ajv@8.17.1/ajv/dist/runtime/uri.mjs +1 -1
- package/dist/.external/esm/ajv@8.17.1/ajv/dist/vocabularies/applicator/index.mjs +1 -1
- package/dist/.external/esm/ajv@8.17.1/ajv/dist/vocabularies/core/index.mjs +1 -1
- package/dist/.external/esm/ajv@8.17.1/ajv/dist/vocabularies/format/index.mjs +1 -1
- package/dist/.external/esm/ajv@8.17.1/ajv/dist/vocabularies/validation/index.mjs +1 -1
- package/dist/.external/esm/{fast-uri@3.0.6 → fast-uri@3.1.0}/fast-uri/index.mjs +51 -53
- package/dist/.external/esm/fast-uri@3.1.0/fast-uri/lib/schemes.mjs +214 -0
- package/dist/.external/esm/fast-uri@3.1.0/fast-uri/lib/utils.mjs +260 -0
- package/dist/core/cjs/Tables/NextGenDataGrid/NextGenDataGrid.cjs +1 -1
- package/dist/core/cjs/Tables/NextGenDataGrid/hooks/useColumns/FilterModeDescription.cjs +1 -1
- package/dist/core/cjs/Tables/NextGenDataGrid/hooks/useColumns/utils.cjs +8 -2
- package/dist/core/cjs/Tables/NextGenDataGrid/hooks/useToolbar/basicToolbars.cjs +1 -1
- package/dist/core/cjs/Tables/NextGenDataGrid/hooks/useToolbarAlertBanner/FASTAPI_RTK_ToolbarAlertBanner.cjs +1 -1
- package/dist/core/esm/Tables/NextGenDataGrid/NextGenDataGrid.mjs +1 -1
- package/dist/core/esm/Tables/NextGenDataGrid/hooks/useColumns/FilterModeDescription.mjs +1 -1
- package/dist/core/esm/Tables/NextGenDataGrid/hooks/useColumns/utils.mjs +8 -2
- package/dist/core/esm/Tables/NextGenDataGrid/hooks/useToolbar/basicToolbars.mjs +1 -1
- package/dist/core/esm/Tables/NextGenDataGrid/hooks/useToolbarAlertBanner/FASTAPI_RTK_ToolbarAlertBanner.mjs +1 -1
- package/package.json +1 -1
- package/dist/.external/cjs/fast-uri@3.0.6/fast-uri/lib/schemes.cjs +0 -149
- package/dist/.external/cjs/fast-uri@3.0.6/fast-uri/lib/scopedChars.cjs +0 -37
- package/dist/.external/cjs/fast-uri@3.0.6/fast-uri/lib/utils.cjs +0 -235
- package/dist/.external/esm/fast-uri@3.0.6/fast-uri/lib/schemes.mjs +0 -149
- package/dist/.external/esm/fast-uri@3.0.6/fast-uri/lib/scopedChars.mjs +0 -37
- package/dist/.external/esm/fast-uri@3.0.6/fast-uri/lib/utils.mjs +0 -235
- /package/dist/.external/cjs/{mantine-react-table@2.0.0-beta.9_@mantine_core@7.17.8_@mantine_dates@7.17.8_@mantine_hooks@7._ll5dfnmvjphm4bajaxt6oy7mty → mantine-react-table@2.0.0-beta.9_@mantine_core@7.17.8_@mantine_dates@7.17.8_@mantine_hooks@7._ug2uc7gqobpur37t5xiwwwh6ay}/mantine-react-table/dist/index.esm.cjs +0 -0
- /package/dist/.external/esm/{mantine-react-table@2.0.0-beta.9_@mantine_core@7.17.8_@mantine_dates@7.17.8_@mantine_hooks@7._ll5dfnmvjphm4bajaxt6oy7mty → mantine-react-table@2.0.0-beta.9_@mantine_core@7.17.8_@mantine_dates@7.17.8_@mantine_hooks@7._ug2uc7gqobpur37t5xiwwwh6ay}/mantine-react-table/dist/index.esm.mjs +0 -0
|
@@ -0,0 +1,214 @@
|
|
|
1
|
+
import { __require as requireUtils } from "./utils.mjs";
|
|
2
|
+
var schemes;
|
|
3
|
+
var hasRequiredSchemes;
|
|
4
|
+
function requireSchemes() {
|
|
5
|
+
if (hasRequiredSchemes) return schemes;
|
|
6
|
+
hasRequiredSchemes = 1;
|
|
7
|
+
const { isUUID } = requireUtils();
|
|
8
|
+
const URN_REG = /([\da-z][\d\-a-z]{0,31}):((?:[\w!$'()*+,\-.:;=@]|%[\da-f]{2})+)/iu;
|
|
9
|
+
const supportedSchemeNames = (
|
|
10
|
+
/** @type {const} */
|
|
11
|
+
[
|
|
12
|
+
"http",
|
|
13
|
+
"https",
|
|
14
|
+
"ws",
|
|
15
|
+
"wss",
|
|
16
|
+
"urn",
|
|
17
|
+
"urn:uuid"
|
|
18
|
+
]
|
|
19
|
+
);
|
|
20
|
+
function isValidSchemeName(name) {
|
|
21
|
+
return supportedSchemeNames.indexOf(
|
|
22
|
+
/** @type {*} */
|
|
23
|
+
name
|
|
24
|
+
) !== -1;
|
|
25
|
+
}
|
|
26
|
+
function wsIsSecure(wsComponent) {
|
|
27
|
+
if (wsComponent.secure === true) {
|
|
28
|
+
return true;
|
|
29
|
+
} else if (wsComponent.secure === false) {
|
|
30
|
+
return false;
|
|
31
|
+
} else if (wsComponent.scheme) {
|
|
32
|
+
return wsComponent.scheme.length === 3 && (wsComponent.scheme[0] === "w" || wsComponent.scheme[0] === "W") && (wsComponent.scheme[1] === "s" || wsComponent.scheme[1] === "S") && (wsComponent.scheme[2] === "s" || wsComponent.scheme[2] === "S");
|
|
33
|
+
} else {
|
|
34
|
+
return false;
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
function httpParse(component) {
|
|
38
|
+
if (!component.host) {
|
|
39
|
+
component.error = component.error || "HTTP URIs must have a host.";
|
|
40
|
+
}
|
|
41
|
+
return component;
|
|
42
|
+
}
|
|
43
|
+
function httpSerialize(component) {
|
|
44
|
+
const secure = String(component.scheme).toLowerCase() === "https";
|
|
45
|
+
if (component.port === (secure ? 443 : 80) || component.port === "") {
|
|
46
|
+
component.port = void 0;
|
|
47
|
+
}
|
|
48
|
+
if (!component.path) {
|
|
49
|
+
component.path = "/";
|
|
50
|
+
}
|
|
51
|
+
return component;
|
|
52
|
+
}
|
|
53
|
+
function wsParse(wsComponent) {
|
|
54
|
+
wsComponent.secure = wsIsSecure(wsComponent);
|
|
55
|
+
wsComponent.resourceName = (wsComponent.path || "/") + (wsComponent.query ? "?" + wsComponent.query : "");
|
|
56
|
+
wsComponent.path = void 0;
|
|
57
|
+
wsComponent.query = void 0;
|
|
58
|
+
return wsComponent;
|
|
59
|
+
}
|
|
60
|
+
function wsSerialize(wsComponent) {
|
|
61
|
+
if (wsComponent.port === (wsIsSecure(wsComponent) ? 443 : 80) || wsComponent.port === "") {
|
|
62
|
+
wsComponent.port = void 0;
|
|
63
|
+
}
|
|
64
|
+
if (typeof wsComponent.secure === "boolean") {
|
|
65
|
+
wsComponent.scheme = wsComponent.secure ? "wss" : "ws";
|
|
66
|
+
wsComponent.secure = void 0;
|
|
67
|
+
}
|
|
68
|
+
if (wsComponent.resourceName) {
|
|
69
|
+
const [path, query] = wsComponent.resourceName.split("?");
|
|
70
|
+
wsComponent.path = path && path !== "/" ? path : void 0;
|
|
71
|
+
wsComponent.query = query;
|
|
72
|
+
wsComponent.resourceName = void 0;
|
|
73
|
+
}
|
|
74
|
+
wsComponent.fragment = void 0;
|
|
75
|
+
return wsComponent;
|
|
76
|
+
}
|
|
77
|
+
function urnParse(urnComponent, options) {
|
|
78
|
+
if (!urnComponent.path) {
|
|
79
|
+
urnComponent.error = "URN can not be parsed";
|
|
80
|
+
return urnComponent;
|
|
81
|
+
}
|
|
82
|
+
const matches = urnComponent.path.match(URN_REG);
|
|
83
|
+
if (matches) {
|
|
84
|
+
const scheme = options.scheme || urnComponent.scheme || "urn";
|
|
85
|
+
urnComponent.nid = matches[1].toLowerCase();
|
|
86
|
+
urnComponent.nss = matches[2];
|
|
87
|
+
const urnScheme = `${scheme}:${options.nid || urnComponent.nid}`;
|
|
88
|
+
const schemeHandler = getSchemeHandler(urnScheme);
|
|
89
|
+
urnComponent.path = void 0;
|
|
90
|
+
if (schemeHandler) {
|
|
91
|
+
urnComponent = schemeHandler.parse(urnComponent, options);
|
|
92
|
+
}
|
|
93
|
+
} else {
|
|
94
|
+
urnComponent.error = urnComponent.error || "URN can not be parsed.";
|
|
95
|
+
}
|
|
96
|
+
return urnComponent;
|
|
97
|
+
}
|
|
98
|
+
function urnSerialize(urnComponent, options) {
|
|
99
|
+
if (urnComponent.nid === void 0) {
|
|
100
|
+
throw new Error("URN without nid cannot be serialized");
|
|
101
|
+
}
|
|
102
|
+
const scheme = options.scheme || urnComponent.scheme || "urn";
|
|
103
|
+
const nid = urnComponent.nid.toLowerCase();
|
|
104
|
+
const urnScheme = `${scheme}:${options.nid || nid}`;
|
|
105
|
+
const schemeHandler = getSchemeHandler(urnScheme);
|
|
106
|
+
if (schemeHandler) {
|
|
107
|
+
urnComponent = schemeHandler.serialize(urnComponent, options);
|
|
108
|
+
}
|
|
109
|
+
const uriComponent = urnComponent;
|
|
110
|
+
const nss = urnComponent.nss;
|
|
111
|
+
uriComponent.path = `${nid || options.nid}:${nss}`;
|
|
112
|
+
options.skipEscape = true;
|
|
113
|
+
return uriComponent;
|
|
114
|
+
}
|
|
115
|
+
function urnuuidParse(urnComponent, options) {
|
|
116
|
+
const uuidComponent = urnComponent;
|
|
117
|
+
uuidComponent.uuid = uuidComponent.nss;
|
|
118
|
+
uuidComponent.nss = void 0;
|
|
119
|
+
if (!options.tolerant && (!uuidComponent.uuid || !isUUID(uuidComponent.uuid))) {
|
|
120
|
+
uuidComponent.error = uuidComponent.error || "UUID is not valid.";
|
|
121
|
+
}
|
|
122
|
+
return uuidComponent;
|
|
123
|
+
}
|
|
124
|
+
function urnuuidSerialize(uuidComponent) {
|
|
125
|
+
const urnComponent = uuidComponent;
|
|
126
|
+
urnComponent.nss = (uuidComponent.uuid || "").toLowerCase();
|
|
127
|
+
return urnComponent;
|
|
128
|
+
}
|
|
129
|
+
const http = (
|
|
130
|
+
/** @type {SchemeHandler} */
|
|
131
|
+
{
|
|
132
|
+
scheme: "http",
|
|
133
|
+
domainHost: true,
|
|
134
|
+
parse: httpParse,
|
|
135
|
+
serialize: httpSerialize
|
|
136
|
+
}
|
|
137
|
+
);
|
|
138
|
+
const https = (
|
|
139
|
+
/** @type {SchemeHandler} */
|
|
140
|
+
{
|
|
141
|
+
scheme: "https",
|
|
142
|
+
domainHost: http.domainHost,
|
|
143
|
+
parse: httpParse,
|
|
144
|
+
serialize: httpSerialize
|
|
145
|
+
}
|
|
146
|
+
);
|
|
147
|
+
const ws = (
|
|
148
|
+
/** @type {SchemeHandler} */
|
|
149
|
+
{
|
|
150
|
+
scheme: "ws",
|
|
151
|
+
domainHost: true,
|
|
152
|
+
parse: wsParse,
|
|
153
|
+
serialize: wsSerialize
|
|
154
|
+
}
|
|
155
|
+
);
|
|
156
|
+
const wss = (
|
|
157
|
+
/** @type {SchemeHandler} */
|
|
158
|
+
{
|
|
159
|
+
scheme: "wss",
|
|
160
|
+
domainHost: ws.domainHost,
|
|
161
|
+
parse: ws.parse,
|
|
162
|
+
serialize: ws.serialize
|
|
163
|
+
}
|
|
164
|
+
);
|
|
165
|
+
const urn = (
|
|
166
|
+
/** @type {SchemeHandler} */
|
|
167
|
+
{
|
|
168
|
+
scheme: "urn",
|
|
169
|
+
parse: urnParse,
|
|
170
|
+
serialize: urnSerialize,
|
|
171
|
+
skipNormalize: true
|
|
172
|
+
}
|
|
173
|
+
);
|
|
174
|
+
const urnuuid = (
|
|
175
|
+
/** @type {SchemeHandler} */
|
|
176
|
+
{
|
|
177
|
+
scheme: "urn:uuid",
|
|
178
|
+
parse: urnuuidParse,
|
|
179
|
+
serialize: urnuuidSerialize,
|
|
180
|
+
skipNormalize: true
|
|
181
|
+
}
|
|
182
|
+
);
|
|
183
|
+
const SCHEMES = (
|
|
184
|
+
/** @type {Record<SchemeName, SchemeHandler>} */
|
|
185
|
+
{
|
|
186
|
+
http,
|
|
187
|
+
https,
|
|
188
|
+
ws,
|
|
189
|
+
wss,
|
|
190
|
+
urn,
|
|
191
|
+
"urn:uuid": urnuuid
|
|
192
|
+
}
|
|
193
|
+
);
|
|
194
|
+
Object.setPrototypeOf(SCHEMES, null);
|
|
195
|
+
function getSchemeHandler(scheme) {
|
|
196
|
+
return scheme && (SCHEMES[
|
|
197
|
+
/** @type {SchemeName} */
|
|
198
|
+
scheme
|
|
199
|
+
] || SCHEMES[
|
|
200
|
+
/** @type {SchemeName} */
|
|
201
|
+
scheme.toLowerCase()
|
|
202
|
+
]) || void 0;
|
|
203
|
+
}
|
|
204
|
+
schemes = {
|
|
205
|
+
wsIsSecure,
|
|
206
|
+
SCHEMES,
|
|
207
|
+
isValidSchemeName,
|
|
208
|
+
getSchemeHandler
|
|
209
|
+
};
|
|
210
|
+
return schemes;
|
|
211
|
+
}
|
|
212
|
+
export {
|
|
213
|
+
requireSchemes as __require
|
|
214
|
+
};
|
|
@@ -0,0 +1,260 @@
|
|
|
1
|
+
var utils;
|
|
2
|
+
var hasRequiredUtils;
|
|
3
|
+
function requireUtils() {
|
|
4
|
+
if (hasRequiredUtils) return utils;
|
|
5
|
+
hasRequiredUtils = 1;
|
|
6
|
+
const isUUID = RegExp.prototype.test.bind(/^[\da-f]{8}-[\da-f]{4}-[\da-f]{4}-[\da-f]{4}-[\da-f]{12}$/iu);
|
|
7
|
+
const isIPv4 = RegExp.prototype.test.bind(/^(?:(?:25[0-5]|2[0-4]\d|1\d{2}|[1-9]\d|\d)\.){3}(?:25[0-5]|2[0-4]\d|1\d{2}|[1-9]\d|\d)$/u);
|
|
8
|
+
function stringArrayToHexStripped(input) {
|
|
9
|
+
let acc = "";
|
|
10
|
+
let code = 0;
|
|
11
|
+
let i = 0;
|
|
12
|
+
for (i = 0; i < input.length; i++) {
|
|
13
|
+
code = input[i].charCodeAt(0);
|
|
14
|
+
if (code === 48) {
|
|
15
|
+
continue;
|
|
16
|
+
}
|
|
17
|
+
if (!(code >= 48 && code <= 57 || code >= 65 && code <= 70 || code >= 97 && code <= 102)) {
|
|
18
|
+
return "";
|
|
19
|
+
}
|
|
20
|
+
acc += input[i];
|
|
21
|
+
break;
|
|
22
|
+
}
|
|
23
|
+
for (i += 1; i < input.length; i++) {
|
|
24
|
+
code = input[i].charCodeAt(0);
|
|
25
|
+
if (!(code >= 48 && code <= 57 || code >= 65 && code <= 70 || code >= 97 && code <= 102)) {
|
|
26
|
+
return "";
|
|
27
|
+
}
|
|
28
|
+
acc += input[i];
|
|
29
|
+
}
|
|
30
|
+
return acc;
|
|
31
|
+
}
|
|
32
|
+
const nonSimpleDomain = RegExp.prototype.test.bind(/[^!"$&'()*+,\-.;=_`a-z{}~]/u);
|
|
33
|
+
function consumeIsZone(buffer) {
|
|
34
|
+
buffer.length = 0;
|
|
35
|
+
return true;
|
|
36
|
+
}
|
|
37
|
+
function consumeHextets(buffer, address, output) {
|
|
38
|
+
if (buffer.length) {
|
|
39
|
+
const hex = stringArrayToHexStripped(buffer);
|
|
40
|
+
if (hex !== "") {
|
|
41
|
+
address.push(hex);
|
|
42
|
+
} else {
|
|
43
|
+
output.error = true;
|
|
44
|
+
return false;
|
|
45
|
+
}
|
|
46
|
+
buffer.length = 0;
|
|
47
|
+
}
|
|
48
|
+
return true;
|
|
49
|
+
}
|
|
50
|
+
function getIPV6(input) {
|
|
51
|
+
let tokenCount = 0;
|
|
52
|
+
const output = { error: false, address: "", zone: "" };
|
|
53
|
+
const address = [];
|
|
54
|
+
const buffer = [];
|
|
55
|
+
let endipv6Encountered = false;
|
|
56
|
+
let endIpv6 = false;
|
|
57
|
+
let consume = consumeHextets;
|
|
58
|
+
for (let i = 0; i < input.length; i++) {
|
|
59
|
+
const cursor = input[i];
|
|
60
|
+
if (cursor === "[" || cursor === "]") {
|
|
61
|
+
continue;
|
|
62
|
+
}
|
|
63
|
+
if (cursor === ":") {
|
|
64
|
+
if (endipv6Encountered === true) {
|
|
65
|
+
endIpv6 = true;
|
|
66
|
+
}
|
|
67
|
+
if (!consume(buffer, address, output)) {
|
|
68
|
+
break;
|
|
69
|
+
}
|
|
70
|
+
if (++tokenCount > 7) {
|
|
71
|
+
output.error = true;
|
|
72
|
+
break;
|
|
73
|
+
}
|
|
74
|
+
if (i > 0 && input[i - 1] === ":") {
|
|
75
|
+
endipv6Encountered = true;
|
|
76
|
+
}
|
|
77
|
+
address.push(":");
|
|
78
|
+
continue;
|
|
79
|
+
} else if (cursor === "%") {
|
|
80
|
+
if (!consume(buffer, address, output)) {
|
|
81
|
+
break;
|
|
82
|
+
}
|
|
83
|
+
consume = consumeIsZone;
|
|
84
|
+
} else {
|
|
85
|
+
buffer.push(cursor);
|
|
86
|
+
continue;
|
|
87
|
+
}
|
|
88
|
+
}
|
|
89
|
+
if (buffer.length) {
|
|
90
|
+
if (consume === consumeIsZone) {
|
|
91
|
+
output.zone = buffer.join("");
|
|
92
|
+
} else if (endIpv6) {
|
|
93
|
+
address.push(buffer.join(""));
|
|
94
|
+
} else {
|
|
95
|
+
address.push(stringArrayToHexStripped(buffer));
|
|
96
|
+
}
|
|
97
|
+
}
|
|
98
|
+
output.address = address.join("");
|
|
99
|
+
return output;
|
|
100
|
+
}
|
|
101
|
+
function normalizeIPv6(host) {
|
|
102
|
+
if (findToken(host, ":") < 2) {
|
|
103
|
+
return { host, isIPV6: false };
|
|
104
|
+
}
|
|
105
|
+
const ipv6 = getIPV6(host);
|
|
106
|
+
if (!ipv6.error) {
|
|
107
|
+
let newHost = ipv6.address;
|
|
108
|
+
let escapedHost = ipv6.address;
|
|
109
|
+
if (ipv6.zone) {
|
|
110
|
+
newHost += "%" + ipv6.zone;
|
|
111
|
+
escapedHost += "%25" + ipv6.zone;
|
|
112
|
+
}
|
|
113
|
+
return { host: newHost, isIPV6: true, escapedHost };
|
|
114
|
+
} else {
|
|
115
|
+
return { host, isIPV6: false };
|
|
116
|
+
}
|
|
117
|
+
}
|
|
118
|
+
function findToken(str, token) {
|
|
119
|
+
let ind = 0;
|
|
120
|
+
for (let i = 0; i < str.length; i++) {
|
|
121
|
+
if (str[i] === token) ind++;
|
|
122
|
+
}
|
|
123
|
+
return ind;
|
|
124
|
+
}
|
|
125
|
+
function removeDotSegments(path) {
|
|
126
|
+
let input = path;
|
|
127
|
+
const output = [];
|
|
128
|
+
let nextSlash = -1;
|
|
129
|
+
let len = 0;
|
|
130
|
+
while (len = input.length) {
|
|
131
|
+
if (len === 1) {
|
|
132
|
+
if (input === ".") {
|
|
133
|
+
break;
|
|
134
|
+
} else if (input === "/") {
|
|
135
|
+
output.push("/");
|
|
136
|
+
break;
|
|
137
|
+
} else {
|
|
138
|
+
output.push(input);
|
|
139
|
+
break;
|
|
140
|
+
}
|
|
141
|
+
} else if (len === 2) {
|
|
142
|
+
if (input[0] === ".") {
|
|
143
|
+
if (input[1] === ".") {
|
|
144
|
+
break;
|
|
145
|
+
} else if (input[1] === "/") {
|
|
146
|
+
input = input.slice(2);
|
|
147
|
+
continue;
|
|
148
|
+
}
|
|
149
|
+
} else if (input[0] === "/") {
|
|
150
|
+
if (input[1] === "." || input[1] === "/") {
|
|
151
|
+
output.push("/");
|
|
152
|
+
break;
|
|
153
|
+
}
|
|
154
|
+
}
|
|
155
|
+
} else if (len === 3) {
|
|
156
|
+
if (input === "/..") {
|
|
157
|
+
if (output.length !== 0) {
|
|
158
|
+
output.pop();
|
|
159
|
+
}
|
|
160
|
+
output.push("/");
|
|
161
|
+
break;
|
|
162
|
+
}
|
|
163
|
+
}
|
|
164
|
+
if (input[0] === ".") {
|
|
165
|
+
if (input[1] === ".") {
|
|
166
|
+
if (input[2] === "/") {
|
|
167
|
+
input = input.slice(3);
|
|
168
|
+
continue;
|
|
169
|
+
}
|
|
170
|
+
} else if (input[1] === "/") {
|
|
171
|
+
input = input.slice(2);
|
|
172
|
+
continue;
|
|
173
|
+
}
|
|
174
|
+
} else if (input[0] === "/") {
|
|
175
|
+
if (input[1] === ".") {
|
|
176
|
+
if (input[2] === "/") {
|
|
177
|
+
input = input.slice(2);
|
|
178
|
+
continue;
|
|
179
|
+
} else if (input[2] === ".") {
|
|
180
|
+
if (input[3] === "/") {
|
|
181
|
+
input = input.slice(3);
|
|
182
|
+
if (output.length !== 0) {
|
|
183
|
+
output.pop();
|
|
184
|
+
}
|
|
185
|
+
continue;
|
|
186
|
+
}
|
|
187
|
+
}
|
|
188
|
+
}
|
|
189
|
+
}
|
|
190
|
+
if ((nextSlash = input.indexOf("/", 1)) === -1) {
|
|
191
|
+
output.push(input);
|
|
192
|
+
break;
|
|
193
|
+
} else {
|
|
194
|
+
output.push(input.slice(0, nextSlash));
|
|
195
|
+
input = input.slice(nextSlash);
|
|
196
|
+
}
|
|
197
|
+
}
|
|
198
|
+
return output.join("");
|
|
199
|
+
}
|
|
200
|
+
function normalizeComponentEncoding(component, esc) {
|
|
201
|
+
const func = esc !== true ? escape : unescape;
|
|
202
|
+
if (component.scheme !== void 0) {
|
|
203
|
+
component.scheme = func(component.scheme);
|
|
204
|
+
}
|
|
205
|
+
if (component.userinfo !== void 0) {
|
|
206
|
+
component.userinfo = func(component.userinfo);
|
|
207
|
+
}
|
|
208
|
+
if (component.host !== void 0) {
|
|
209
|
+
component.host = func(component.host);
|
|
210
|
+
}
|
|
211
|
+
if (component.path !== void 0) {
|
|
212
|
+
component.path = func(component.path);
|
|
213
|
+
}
|
|
214
|
+
if (component.query !== void 0) {
|
|
215
|
+
component.query = func(component.query);
|
|
216
|
+
}
|
|
217
|
+
if (component.fragment !== void 0) {
|
|
218
|
+
component.fragment = func(component.fragment);
|
|
219
|
+
}
|
|
220
|
+
return component;
|
|
221
|
+
}
|
|
222
|
+
function recomposeAuthority(component) {
|
|
223
|
+
const uriTokens = [];
|
|
224
|
+
if (component.userinfo !== void 0) {
|
|
225
|
+
uriTokens.push(component.userinfo);
|
|
226
|
+
uriTokens.push("@");
|
|
227
|
+
}
|
|
228
|
+
if (component.host !== void 0) {
|
|
229
|
+
let host = unescape(component.host);
|
|
230
|
+
if (!isIPv4(host)) {
|
|
231
|
+
const ipV6res = normalizeIPv6(host);
|
|
232
|
+
if (ipV6res.isIPV6 === true) {
|
|
233
|
+
host = `[${ipV6res.escapedHost}]`;
|
|
234
|
+
} else {
|
|
235
|
+
host = component.host;
|
|
236
|
+
}
|
|
237
|
+
}
|
|
238
|
+
uriTokens.push(host);
|
|
239
|
+
}
|
|
240
|
+
if (typeof component.port === "number" || typeof component.port === "string") {
|
|
241
|
+
uriTokens.push(":");
|
|
242
|
+
uriTokens.push(String(component.port));
|
|
243
|
+
}
|
|
244
|
+
return uriTokens.length ? uriTokens.join("") : void 0;
|
|
245
|
+
}
|
|
246
|
+
utils = {
|
|
247
|
+
nonSimpleDomain,
|
|
248
|
+
recomposeAuthority,
|
|
249
|
+
normalizeComponentEncoding,
|
|
250
|
+
removeDotSegments,
|
|
251
|
+
isIPv4,
|
|
252
|
+
isUUID,
|
|
253
|
+
normalizeIPv6,
|
|
254
|
+
stringArrayToHexStripped
|
|
255
|
+
};
|
|
256
|
+
return utils;
|
|
257
|
+
}
|
|
258
|
+
export {
|
|
259
|
+
requireUtils as __require
|
|
260
|
+
};
|
|
@@ -5,7 +5,7 @@ const jsxRuntime = require("react/jsx-runtime");
|
|
|
5
5
|
;/* empty css */
|
|
6
6
|
const utils = require("fastapi-rtk/utils");
|
|
7
7
|
const core = require("@mantine/core");
|
|
8
|
-
const index_esm = require("../../../../.external/cjs/mantine-react-table@2.0.0-beta.9_@mantine_core@7.17.8_@mantine_dates@7.17.8_@mantine_hooks@7.
|
|
8
|
+
const index_esm = require("../../../../.external/cjs/mantine-react-table@2.0.0-beta.9_@mantine_core@7.17.8_@mantine_dates@7.17.8_@mantine_hooks@7._ug2uc7gqobpur37t5xiwwwh6ay/mantine-react-table/dist/index.esm.cjs");
|
|
9
9
|
const React = require("react");
|
|
10
10
|
const AddDialog = require("../../ActionIcons/Add/AddDialog.cjs");
|
|
11
11
|
const EditDialog = require("../../ActionIcons/Edit/EditDialog.cjs");
|
|
@@ -3,7 +3,7 @@ Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
|
3
3
|
const jsxRuntime = require("react/jsx-runtime");
|
|
4
4
|
const utils = require("fastapi-rtk/utils");
|
|
5
5
|
const core = require("@mantine/core");
|
|
6
|
-
const index_esm = require("../../../../../../.external/cjs/mantine-react-table@2.0.0-beta.9_@mantine_core@7.17.8_@mantine_dates@7.17.8_@mantine_hooks@7.
|
|
6
|
+
const index_esm = require("../../../../../../.external/cjs/mantine-react-table@2.0.0-beta.9_@mantine_core@7.17.8_@mantine_dates@7.17.8_@mantine_hooks@7._ug2uc7gqobpur37t5xiwwwh6ay/mantine-react-table/dist/index.esm.cjs");
|
|
7
7
|
const React = require("react");
|
|
8
8
|
const FallbackWrapper = require("../../FallbackWrapper.cjs");
|
|
9
9
|
const FilterModeDescription = ({ table, column, opr, filters, filterModeDescription, functionProps }) => {
|
|
@@ -46,7 +46,10 @@ const getBasicInput = (opr, schema) => {
|
|
|
46
46
|
return ({ componentProps }) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
47
47
|
HeaderSelectInput.HeaderSelectInput,
|
|
48
48
|
{
|
|
49
|
-
data: schema.values.
|
|
49
|
+
data: schema.values.slice().sort((a, b) => a.value.localeCompare(b.value)).map((item) => ({
|
|
50
|
+
value: String(utils.convertId(utils.getItemId(item))),
|
|
51
|
+
label: item.value
|
|
52
|
+
})),
|
|
50
53
|
...componentProps
|
|
51
54
|
}
|
|
52
55
|
);
|
|
@@ -55,7 +58,10 @@ const getBasicInput = (opr, schema) => {
|
|
|
55
58
|
return ({ componentProps }) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
56
59
|
HeaderMultiSelectInput.HeaderMultiSelectInput,
|
|
57
60
|
{
|
|
58
|
-
data: schema.values.
|
|
61
|
+
data: schema.values.slice().sort((a, b) => a.value.localeCompare(b.value)).map((item) => ({
|
|
62
|
+
value: String(utils.convertId(utils.getItemId(item))),
|
|
63
|
+
label: item.value
|
|
64
|
+
})),
|
|
59
65
|
...componentProps
|
|
60
66
|
}
|
|
61
67
|
);
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
3
|
const jsxRuntime = require("react/jsx-runtime");
|
|
4
|
-
const index_esm = require("../../../../../../.external/cjs/mantine-react-table@2.0.0-beta.9_@mantine_core@7.17.8_@mantine_dates@7.17.8_@mantine_hooks@7.
|
|
4
|
+
const index_esm = require("../../../../../../.external/cjs/mantine-react-table@2.0.0-beta.9_@mantine_core@7.17.8_@mantine_dates@7.17.8_@mantine_hooks@7._ug2uc7gqobpur37t5xiwwwh6ay/mantine-react-table/dist/index.esm.cjs");
|
|
5
5
|
const Add = require("../../../../ActionIcons/Add/Add.cjs");
|
|
6
6
|
const Download = require("../../../../ActionIcons/Download/Download.cjs");
|
|
7
7
|
const Refresh = require("../../../../ActionIcons/Refresh/Refresh.cjs");
|
|
@@ -4,7 +4,7 @@ const jsxRuntime = require("react/jsx-runtime");
|
|
|
4
4
|
const utils = require("fastapi-rtk/utils");
|
|
5
5
|
const core = require("@mantine/core");
|
|
6
6
|
const clsx = require("../../../../../../.external/cjs/clsx@2.1.1/clsx/dist/clsx.cjs");
|
|
7
|
-
const index_esm = require("../../../../../../.external/cjs/mantine-react-table@2.0.0-beta.9_@mantine_core@7.17.8_@mantine_dates@7.17.8_@mantine_hooks@7.
|
|
7
|
+
const index_esm = require("../../../../../../.external/cjs/mantine-react-table@2.0.0-beta.9_@mantine_core@7.17.8_@mantine_dates@7.17.8_@mantine_hooks@7._ug2uc7gqobpur37t5xiwwwh6ay/mantine-react-table/dist/index.esm.cjs");
|
|
8
8
|
const React = require("react");
|
|
9
9
|
const FASTAPI_RTK_ToolbarAlertBanner_module = require("./FASTAPI_RTK_ToolbarAlertBanner.module.css.cjs");
|
|
10
10
|
const FASTAPI_RTK_ToolbarAlertBanner = ({ alertBanner, table, ...rest }) => {
|
|
@@ -3,7 +3,7 @@ import { jsxs, jsx } from "react/jsx-runtime";
|
|
|
3
3
|
/* empty css */
|
|
4
4
|
import { deepMerge, mergeProps, getItemId } from "fastapi-rtk/utils";
|
|
5
5
|
import { useProps, Box } from "@mantine/core";
|
|
6
|
-
import { useMantineReactTable, MantineReactTable } from "../../../../.external/esm/mantine-react-table@2.0.0-beta.9_@mantine_core@7.17.8_@mantine_dates@7.17.8_@mantine_hooks@7.
|
|
6
|
+
import { useMantineReactTable, MantineReactTable } from "../../../../.external/esm/mantine-react-table@2.0.0-beta.9_@mantine_core@7.17.8_@mantine_dates@7.17.8_@mantine_hooks@7._ug2uc7gqobpur37t5xiwwwh6ay/mantine-react-table/dist/index.esm.mjs";
|
|
7
7
|
import { forwardRef, useMemo, useEffect } from "react";
|
|
8
8
|
import { AddDialog } from "../../ActionIcons/Add/AddDialog.mjs";
|
|
9
9
|
import { EditDialog } from "../../ActionIcons/Edit/EditDialog.mjs";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsx } from "react/jsx-runtime";
|
|
2
2
|
import { mergeProps } from "fastapi-rtk/utils";
|
|
3
3
|
import { Input } from "@mantine/core";
|
|
4
|
-
import { localizedFilterOption } from "../../../../../../.external/esm/mantine-react-table@2.0.0-beta.9_@mantine_core@7.17.8_@mantine_dates@7.17.8_@mantine_hooks@7.
|
|
4
|
+
import { localizedFilterOption } from "../../../../../../.external/esm/mantine-react-table@2.0.0-beta.9_@mantine_core@7.17.8_@mantine_dates@7.17.8_@mantine_hooks@7._ug2uc7gqobpur37t5xiwwwh6ay/mantine-react-table/dist/index.esm.mjs";
|
|
5
5
|
import { useMemo } from "react";
|
|
6
6
|
import { FallbackWrapper } from "../../FallbackWrapper.mjs";
|
|
7
7
|
const FilterModeDescription = ({ table, column, opr, filters, filterModeDescription, functionProps }) => {
|
|
@@ -44,7 +44,10 @@ const getBasicInput = (opr, schema) => {
|
|
|
44
44
|
return ({ componentProps }) => /* @__PURE__ */ jsx(
|
|
45
45
|
HeaderSelectInput,
|
|
46
46
|
{
|
|
47
|
-
data: schema.values.
|
|
47
|
+
data: schema.values.slice().sort((a, b) => a.value.localeCompare(b.value)).map((item) => ({
|
|
48
|
+
value: String(convertId(getItemId(item))),
|
|
49
|
+
label: item.value
|
|
50
|
+
})),
|
|
48
51
|
...componentProps
|
|
49
52
|
}
|
|
50
53
|
);
|
|
@@ -53,7 +56,10 @@ const getBasicInput = (opr, schema) => {
|
|
|
53
56
|
return ({ componentProps }) => /* @__PURE__ */ jsx(
|
|
54
57
|
HeaderMultiSelectInput,
|
|
55
58
|
{
|
|
56
|
-
data: schema.values.
|
|
59
|
+
data: schema.values.slice().sort((a, b) => a.value.localeCompare(b.value)).map((item) => ({
|
|
60
|
+
value: String(convertId(getItemId(item))),
|
|
61
|
+
label: item.value
|
|
62
|
+
})),
|
|
57
63
|
...componentProps
|
|
58
64
|
}
|
|
59
65
|
);
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { jsx } from "react/jsx-runtime";
|
|
2
|
-
import { MRT_ToggleFullScreenButton, MRT_ToggleDensePaddingButton, MRT_ShowHideColumnsButton, MRT_ToggleFiltersButton, MRT_ToggleGlobalFilterButton } from "../../../../../../.external/esm/mantine-react-table@2.0.0-beta.9_@mantine_core@7.17.8_@mantine_dates@7.17.8_@mantine_hooks@7.
|
|
2
|
+
import { MRT_ToggleFullScreenButton, MRT_ToggleDensePaddingButton, MRT_ShowHideColumnsButton, MRT_ToggleFiltersButton, MRT_ToggleGlobalFilterButton } from "../../../../../../.external/esm/mantine-react-table@2.0.0-beta.9_@mantine_core@7.17.8_@mantine_dates@7.17.8_@mantine_hooks@7._ug2uc7gqobpur37t5xiwwwh6ay/mantine-react-table/dist/index.esm.mjs";
|
|
3
3
|
import { Add } from "../../../../ActionIcons/Add/Add.mjs";
|
|
4
4
|
import { Download } from "../../../../ActionIcons/Download/Download.mjs";
|
|
5
5
|
import { Refresh } from "../../../../ActionIcons/Refresh/Refresh.mjs";
|
|
@@ -2,7 +2,7 @@ import { jsxs, jsx } from "react/jsx-runtime";
|
|
|
2
2
|
import { parseFromValuesOrFunc, getValueOrDefault } from "fastapi-rtk/utils";
|
|
3
3
|
import { Flex, Button, Group, Badge, ActionIcon, Stack } from "@mantine/core";
|
|
4
4
|
import { clsx } from "../../../../../../.external/esm/clsx@2.1.1/clsx/dist/clsx.mjs";
|
|
5
|
-
import { getMRT_SelectAllHandler, MRT_SelectCheckbox } from "../../../../../../.external/esm/mantine-react-table@2.0.0-beta.9_@mantine_core@7.17.8_@mantine_dates@7.17.8_@mantine_hooks@7.
|
|
5
|
+
import { getMRT_SelectAllHandler, MRT_SelectCheckbox } from "../../../../../../.external/esm/mantine-react-table@2.0.0-beta.9_@mantine_core@7.17.8_@mantine_dates@7.17.8_@mantine_hooks@7._ug2uc7gqobpur37t5xiwwwh6ay/mantine-react-table/dist/index.esm.mjs";
|
|
6
6
|
import { useMemo, Fragment } from "react";
|
|
7
7
|
import classes from "./FASTAPI_RTK_ToolbarAlertBanner.module.css.mjs";
|
|
8
8
|
const FASTAPI_RTK_ToolbarAlertBanner = ({ alertBanner, table, ...rest }) => {
|
package/package.json
CHANGED