@vritti/quantum-ui 0.4.2 → 0.4.3
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/assets/quantum-ui.css +122 -103
- package/dist/lib/utils/zod.d.ts +5 -0
- package/dist/lib/utils/zod.d.ts.map +1 -1
- package/dist/lodash.js +38 -27
- package/dist/lodash.js.map +1 -1
- package/dist/useDataTable.js +4906 -2439
- package/dist/useDataTable.js.map +1 -1
- package/dist/utils/axios.js +2825 -1215
- package/dist/utils/axios.js.map +1 -1
- package/dist/utils/zod.js +14 -2
- package/dist/utils/zod.js.map +1 -1
- package/package.json +15 -15
package/dist/lib/utils/zod.d.ts
CHANGED
|
@@ -52,6 +52,11 @@ export interface CodeFieldOptions {
|
|
|
52
52
|
message?: string;
|
|
53
53
|
}
|
|
54
54
|
export declare function zodCodeField(options?: CodeFieldOptions): z.ZodString;
|
|
55
|
+
export interface CodeArrayFieldOptions extends CodeFieldOptions {
|
|
56
|
+
min?: number;
|
|
57
|
+
minMessage?: string;
|
|
58
|
+
}
|
|
59
|
+
export declare function zodCodeArrayField(options?: CodeArrayFieldOptions): z.ZodArray<z.ZodString>;
|
|
55
60
|
export interface FileFieldOptions {
|
|
56
61
|
maxSizeMb?: number;
|
|
57
62
|
accept?: string[];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"zod.d.ts","sourceRoot":"","sources":["../../../lib/utils/zod.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,yBAAyB,CAAC;AAEtD,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAGxB,cAAc,KAAK,CAAC;AACpB,OAAO,EAAE,WAAW,EAAE,CAAC;AAEvB,MAAM,WAAW,mBAAmB;IAClC,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,cAAc,CAA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O,CAAC,IAAI,EAAE,IAAI,CAAC,CAAC;AACvG,wBAAgB,YAAY,CAC1B,OAAO,EAAE,gBAAgB,GAAG;IAAE,QAAQ,EAAE,IAAI,CAAA;CAAE,GAC7C,CAAC,CAAC,OAAO,CAAC,IAAI,GAAG,SAAS,EAAE,IAAI,GAAG,SAAS,CAAC,CAAC"}
|
package/dist/lodash.js
CHANGED
|
@@ -24,7 +24,7 @@ function requireLodash () {
|
|
|
24
24
|
var undefined$1;
|
|
25
25
|
|
|
26
26
|
/** Used as the semantic version number. */
|
|
27
|
-
var VERSION = '4.
|
|
27
|
+
var VERSION = '4.18.1';
|
|
28
28
|
|
|
29
29
|
/** Used as the size to enable large array optimizations. */
|
|
30
30
|
var LARGE_ARRAY_SIZE = 200;
|
|
@@ -32,7 +32,8 @@ function requireLodash () {
|
|
|
32
32
|
/** Error message constants. */
|
|
33
33
|
var CORE_ERROR_TEXT = 'Unsupported core-js use. Try https://npms.io/search?q=ponyfill.',
|
|
34
34
|
FUNC_ERROR_TEXT = 'Expected a function',
|
|
35
|
-
INVALID_TEMPL_VAR_ERROR_TEXT = 'Invalid `variable` option passed into `_.template`'
|
|
35
|
+
INVALID_TEMPL_VAR_ERROR_TEXT = 'Invalid `variable` option passed into `_.template`',
|
|
36
|
+
INVALID_TEMPL_IMPORTS_ERROR_TEXT = 'Invalid `imports` option passed into `_.template`';
|
|
36
37
|
|
|
37
38
|
/** Used to stand-in for `undefined` hash values. */
|
|
38
39
|
var HASH_UNDEFINED = '__lodash_hash_undefined__';
|
|
@@ -1764,6 +1765,10 @@ function requireLodash () {
|
|
|
1764
1765
|
* embedded Ruby (ERB) as well as ES2015 template strings. Change the
|
|
1765
1766
|
* following template settings to use alternative delimiters.
|
|
1766
1767
|
*
|
|
1768
|
+
* **Security:** See
|
|
1769
|
+
* [threat model](https://github.com/lodash/lodash/blob/main/threat-model.md)
|
|
1770
|
+
* — `_.template` is insecure and will be removed in v5.
|
|
1771
|
+
*
|
|
1767
1772
|
* @static
|
|
1768
1773
|
* @memberOf _
|
|
1769
1774
|
* @type {Object}
|
|
@@ -2312,7 +2317,7 @@ function requireLodash () {
|
|
|
2312
2317
|
* @name has
|
|
2313
2318
|
* @memberOf SetCache
|
|
2314
2319
|
* @param {*} value The value to search for.
|
|
2315
|
-
* @returns {
|
|
2320
|
+
* @returns {boolean} Returns `true` if `value` is found, else `false`.
|
|
2316
2321
|
*/
|
|
2317
2322
|
function setCacheHas(value) {
|
|
2318
2323
|
return this.__data__.has(value);
|
|
@@ -4383,7 +4388,9 @@ function requireLodash () {
|
|
|
4383
4388
|
function baseUnset(object, path) {
|
|
4384
4389
|
path = castPath(path, object);
|
|
4385
4390
|
|
|
4386
|
-
// Prevent prototype pollution
|
|
4391
|
+
// Prevent prototype pollution:
|
|
4392
|
+
// https://github.com/lodash/lodash/security/advisories/GHSA-xxjr-mmjv-4gpg
|
|
4393
|
+
// https://github.com/lodash/lodash/security/advisories/GHSA-f23m-r3pf-42rh
|
|
4387
4394
|
var index = -1,
|
|
4388
4395
|
length = path.length;
|
|
4389
4396
|
|
|
@@ -4391,32 +4398,17 @@ function requireLodash () {
|
|
|
4391
4398
|
return true;
|
|
4392
4399
|
}
|
|
4393
4400
|
|
|
4394
|
-
var isRootPrimitive = object == null || (typeof object !== 'object' && typeof object !== 'function');
|
|
4395
|
-
|
|
4396
4401
|
while (++index < length) {
|
|
4397
|
-
var key = path[index];
|
|
4398
|
-
|
|
4399
|
-
// skip non-string keys (e.g., Symbols, numbers)
|
|
4400
|
-
if (typeof key !== 'string') {
|
|
4401
|
-
continue;
|
|
4402
|
-
}
|
|
4402
|
+
var key = toKey(path[index]);
|
|
4403
4403
|
|
|
4404
4404
|
// Always block "__proto__" anywhere in the path if it's not expected
|
|
4405
4405
|
if (key === '__proto__' && !hasOwnProperty.call(object, '__proto__')) {
|
|
4406
4406
|
return false;
|
|
4407
4407
|
}
|
|
4408
4408
|
|
|
4409
|
-
// Block
|
|
4410
|
-
|
|
4411
|
-
|
|
4412
|
-
typeof path[index + 1] === 'string' &&
|
|
4413
|
-
path[index + 1] === 'prototype') {
|
|
4414
|
-
|
|
4415
|
-
// Allow ONLY when the path starts at a primitive root, e.g., _.unset(0, 'constructor.prototype.a')
|
|
4416
|
-
if (isRootPrimitive && index === 0) {
|
|
4417
|
-
continue;
|
|
4418
|
-
}
|
|
4419
|
-
|
|
4409
|
+
// Block constructor/prototype as non-terminal traversal keys to prevent
|
|
4410
|
+
// escaping the object graph into built-in constructors and prototypes.
|
|
4411
|
+
if ((key === 'constructor' || key === 'prototype') && index < length - 1) {
|
|
4420
4412
|
return false;
|
|
4421
4413
|
}
|
|
4422
4414
|
}
|
|
@@ -6973,7 +6965,7 @@ function requireLodash () {
|
|
|
6973
6965
|
|
|
6974
6966
|
/**
|
|
6975
6967
|
* Creates an array with all falsey values removed. The values `false`, `null`,
|
|
6976
|
-
* `0`, `""`, `undefined`, and `NaN` are
|
|
6968
|
+
* `0`, `-0`, `0n`, `""`, `undefined`, and `NaN` are falsy.
|
|
6977
6969
|
*
|
|
6978
6970
|
* @static
|
|
6979
6971
|
* @memberOf _
|
|
@@ -7512,7 +7504,7 @@ function requireLodash () {
|
|
|
7512
7504
|
|
|
7513
7505
|
while (++index < length) {
|
|
7514
7506
|
var pair = pairs[index];
|
|
7515
|
-
result
|
|
7507
|
+
baseAssignValue(result, pair[0], pair[1]);
|
|
7516
7508
|
}
|
|
7517
7509
|
return result;
|
|
7518
7510
|
}
|
|
@@ -14172,6 +14164,8 @@ function requireLodash () {
|
|
|
14172
14164
|
* **Note:** JavaScript follows the IEEE-754 standard for resolving
|
|
14173
14165
|
* floating-point values which can produce unexpected results.
|
|
14174
14166
|
*
|
|
14167
|
+
* **Note:** If `lower` is greater than `upper`, the values are swapped.
|
|
14168
|
+
*
|
|
14175
14169
|
* @static
|
|
14176
14170
|
* @memberOf _
|
|
14177
14171
|
* @since 0.7.0
|
|
@@ -14185,9 +14179,16 @@ function requireLodash () {
|
|
|
14185
14179
|
* _.random(0, 5);
|
|
14186
14180
|
* // => an integer between 0 and 5
|
|
14187
14181
|
*
|
|
14182
|
+
* // when lower is greater than upper the values are swapped
|
|
14183
|
+
* _.random(5, 0);
|
|
14184
|
+
* // => an integer between 0 and 5
|
|
14185
|
+
*
|
|
14188
14186
|
* _.random(5);
|
|
14189
14187
|
* // => also an integer between 0 and 5
|
|
14190
14188
|
*
|
|
14189
|
+
* _.random(-5);
|
|
14190
|
+
* // => an integer between -5 and 0
|
|
14191
|
+
*
|
|
14191
14192
|
* _.random(5, true);
|
|
14192
14193
|
* // => a floating-point number between 0 and 5
|
|
14193
14194
|
*
|
|
@@ -14789,6 +14790,10 @@ function requireLodash () {
|
|
|
14789
14790
|
* properties may be accessed as free variables in the template. If a setting
|
|
14790
14791
|
* object is given, it takes precedence over `_.templateSettings` values.
|
|
14791
14792
|
*
|
|
14793
|
+
* **Security:** `_.template` is insecure and should not be used. It will be
|
|
14794
|
+
* removed in Lodash v5. Avoid untrusted input. See
|
|
14795
|
+
* [threat model](https://github.com/lodash/lodash/blob/main/threat-model.md).
|
|
14796
|
+
*
|
|
14792
14797
|
* **Note:** In the development build `_.template` utilizes
|
|
14793
14798
|
* [sourceURLs](http://www.html5rocks.com/en/tutorials/developertools/sourcemaps/#toc-sourceurl)
|
|
14794
14799
|
* for easier debugging.
|
|
@@ -14896,12 +14901,18 @@ function requireLodash () {
|
|
|
14896
14901
|
options = undefined$1;
|
|
14897
14902
|
}
|
|
14898
14903
|
string = toString(string);
|
|
14899
|
-
options =
|
|
14904
|
+
options = assignWith({}, options, settings, customDefaultsAssignIn);
|
|
14900
14905
|
|
|
14901
|
-
var imports =
|
|
14906
|
+
var imports = assignWith({}, options.imports, settings.imports, customDefaultsAssignIn),
|
|
14902
14907
|
importsKeys = keys(imports),
|
|
14903
14908
|
importsValues = baseValues(imports, importsKeys);
|
|
14904
14909
|
|
|
14910
|
+
arrayEach(importsKeys, function(key) {
|
|
14911
|
+
if (reForbiddenIdentifierChars.test(key)) {
|
|
14912
|
+
throw new Error(INVALID_TEMPL_IMPORTS_ERROR_TEXT);
|
|
14913
|
+
}
|
|
14914
|
+
});
|
|
14915
|
+
|
|
14905
14916
|
var isEscaping,
|
|
14906
14917
|
isEvaluating,
|
|
14907
14918
|
index = 0,
|