@ogc-maps/storybook-components 0.12.0 → 0.12.2
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/components/LayerEditor/LayerEditor.d.ts.map +1 -1
- package/dist/components/SelectionPanel/SelectionPanel.d.ts.map +1 -1
- package/dist/{index-CqBeCxon.js → index-CtbLVsqD.js} +75 -73
- package/dist/main.js +314 -287
- package/dist/schemas/config.d.ts +22 -0
- package/dist/schemas/config.d.ts.map +1 -1
- package/dist/schemas/index.js +1 -1
- package/dist/types/index.js +1 -1
- package/dist/utils/selection.d.ts +1 -1
- package/dist/utils/selection.d.ts.map +1 -1
- package/package.json +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"LayerEditor.d.ts","sourceRoot":"","sources":["../../../src/components/LayerEditor/LayerEditor.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,WAAW,EAAE,YAAY,EAAkC,MAAM,aAAa,CAAC;AA6B7F,MAAM,WAAW,gBAAgB;IAC/B,KAAK,EAAE,WAAW,CAAC;IACnB,QAAQ,EAAE,CAAC,KAAK,EAAE,WAAW,KAAK,IAAI,CAAC;IACvC,gBAAgB,EAAE,YAAY,EAAE,CAAC;IACjC,cAAc,CAAC,EAAE,MAAM,EAAE,CAAC;CAC3B;AAKD,wBAAgB,WAAW,CAAC,EAAE,KAAK,EAAE,QAAQ,EAAE,gBAAgB,EAAE,cAAc,EAAE,EAAE,gBAAgB,
|
|
1
|
+
{"version":3,"file":"LayerEditor.d.ts","sourceRoot":"","sources":["../../../src/components/LayerEditor/LayerEditor.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,WAAW,EAAE,YAAY,EAAkC,MAAM,aAAa,CAAC;AA6B7F,MAAM,WAAW,gBAAgB;IAC/B,KAAK,EAAE,WAAW,CAAC;IACnB,QAAQ,EAAE,CAAC,KAAK,EAAE,WAAW,KAAK,IAAI,CAAC;IACvC,gBAAgB,EAAE,YAAY,EAAE,CAAC;IACjC,cAAc,CAAC,EAAE,MAAM,EAAE,CAAC;CAC3B;AAKD,wBAAgB,WAAW,CAAC,EAAE,KAAK,EAAE,QAAQ,EAAE,gBAAgB,EAAE,cAAc,EAAE,EAAE,gBAAgB,2CA2UlG"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SelectionPanel.d.ts","sourceRoot":"","sources":["../../../src/components/SelectionPanel/SelectionPanel.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,uBAAuB,CAAC;AAC3D,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,aAAa,CAAC;AAE/C,MAAM,WAAW,mBAAmB;IAClC,IAAI,EAAE,aAAa,GAAG,IAAI,CAAC;IAC3B,YAAY,EAAE,CAAC,IAAI,EAAE,aAAa,GAAG,IAAI,KAAK,IAAI,CAAC;IACnD,MAAM,EAAE,WAAW,EAAE,CAAC;IACtB,aAAa,EAAE,MAAM,GAAG,IAAI,CAAC;IAC7B,mBAAmB,EAAE,CAAC,OAAO,EAAE,MAAM,GAAG,IAAI,KAAK,IAAI,CAAC;IACtD,aAAa,EAAE,MAAM,CAAC;IACtB,OAAO,EAAE,MAAM,IAAI,CAAC;IACpB,aAAa,EAAE,MAAM,IAAI,CAAC;IAC1B,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;
|
|
1
|
+
{"version":3,"file":"SelectionPanel.d.ts","sourceRoot":"","sources":["../../../src/components/SelectionPanel/SelectionPanel.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,uBAAuB,CAAC;AAC3D,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,aAAa,CAAC;AAE/C,MAAM,WAAW,mBAAmB;IAClC,IAAI,EAAE,aAAa,GAAG,IAAI,CAAC;IAC3B,YAAY,EAAE,CAAC,IAAI,EAAE,aAAa,GAAG,IAAI,KAAK,IAAI,CAAC;IACnD,MAAM,EAAE,WAAW,EAAE,CAAC;IACtB,aAAa,EAAE,MAAM,GAAG,IAAI,CAAC;IAC7B,mBAAmB,EAAE,CAAC,OAAO,EAAE,MAAM,GAAG,IAAI,KAAK,IAAI,CAAC;IACtD,aAAa,EAAE,MAAM,CAAC;IACtB,OAAO,EAAE,MAAM,IAAI,CAAC;IACpB,aAAa,EAAE,MAAM,IAAI,CAAC;IAC1B,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAoBD,wBAAgB,cAAc,CAAC,EAC7B,IAAI,EACJ,YAAY,EACZ,MAAM,EACN,aAAa,EACb,mBAAmB,EACnB,aAAa,EACb,OAAO,EACP,aAAa,EACb,SAAS,GACV,EAAE,mBAAmB,2CAgFrB"}
|
|
@@ -348,7 +348,7 @@ function g(a) {
|
|
|
348
348
|
return i.code === "invalid_enum_value" ? { message: f ?? o.defaultError } : typeof o.data > "u" ? { message: f ?? n ?? o.defaultError } : i.code !== "invalid_type" ? { message: o.defaultError } : { message: f ?? t ?? o.defaultError };
|
|
349
349
|
}, description: r };
|
|
350
350
|
}
|
|
351
|
-
class
|
|
351
|
+
class x {
|
|
352
352
|
get description() {
|
|
353
353
|
return this._def.description;
|
|
354
354
|
}
|
|
@@ -603,7 +603,7 @@ function lt(a, e) {
|
|
|
603
603
|
function ct(a, e) {
|
|
604
604
|
return !!((e === "v4" || !e) && Ke.test(a) || (e === "v6" || !e) && tt.test(a));
|
|
605
605
|
}
|
|
606
|
-
class j extends
|
|
606
|
+
class j extends x {
|
|
607
607
|
_parse(e) {
|
|
608
608
|
if (this._def.coerce && (e.data = String(e.data)), this._getType(e) !== u.string) {
|
|
609
609
|
const s = this._getOrReturnCtx(e);
|
|
@@ -990,7 +990,7 @@ function dt(a, e) {
|
|
|
990
990
|
const t = (a.toString().split(".")[1] || "").length, n = (e.toString().split(".")[1] || "").length, r = t > n ? t : n, s = Number.parseInt(a.toFixed(r).replace(".", "")), i = Number.parseInt(e.toFixed(r).replace(".", ""));
|
|
991
991
|
return s % i / 10 ** r;
|
|
992
992
|
}
|
|
993
|
-
class q extends
|
|
993
|
+
class q extends x {
|
|
994
994
|
constructor() {
|
|
995
995
|
super(...arguments), this.min = this.gte, this.max = this.lte, this.step = this.multipleOf;
|
|
996
996
|
}
|
|
@@ -1162,7 +1162,7 @@ q.create = (a) => new q({
|
|
|
1162
1162
|
coerce: (a == null ? void 0 : a.coerce) || !1,
|
|
1163
1163
|
...g(a)
|
|
1164
1164
|
});
|
|
1165
|
-
class G extends
|
|
1165
|
+
class G extends x {
|
|
1166
1166
|
constructor() {
|
|
1167
1167
|
super(...arguments), this.min = this.gte, this.max = this.lte;
|
|
1168
1168
|
}
|
|
@@ -1295,7 +1295,7 @@ G.create = (a) => new G({
|
|
|
1295
1295
|
coerce: (a == null ? void 0 : a.coerce) ?? !1,
|
|
1296
1296
|
...g(a)
|
|
1297
1297
|
});
|
|
1298
|
-
class ue extends
|
|
1298
|
+
class ue extends x {
|
|
1299
1299
|
_parse(e) {
|
|
1300
1300
|
if (this._def.coerce && (e.data = !!e.data), this._getType(e) !== u.boolean) {
|
|
1301
1301
|
const n = this._getOrReturnCtx(e);
|
|
@@ -1313,7 +1313,7 @@ ue.create = (a) => new ue({
|
|
|
1313
1313
|
coerce: (a == null ? void 0 : a.coerce) || !1,
|
|
1314
1314
|
...g(a)
|
|
1315
1315
|
});
|
|
1316
|
-
class X extends
|
|
1316
|
+
class X extends x {
|
|
1317
1317
|
_parse(e) {
|
|
1318
1318
|
if (this._def.coerce && (e.data = new Date(e.data)), this._getType(e) !== u.date) {
|
|
1319
1319
|
const s = this._getOrReturnCtx(e);
|
|
@@ -1391,7 +1391,7 @@ X.create = (a) => new X({
|
|
|
1391
1391
|
typeName: y.ZodDate,
|
|
1392
1392
|
...g(a)
|
|
1393
1393
|
});
|
|
1394
|
-
class Ce extends
|
|
1394
|
+
class Ce extends x {
|
|
1395
1395
|
_parse(e) {
|
|
1396
1396
|
if (this._getType(e) !== u.symbol) {
|
|
1397
1397
|
const n = this._getOrReturnCtx(e);
|
|
@@ -1408,7 +1408,7 @@ Ce.create = (a) => new Ce({
|
|
|
1408
1408
|
typeName: y.ZodSymbol,
|
|
1409
1409
|
...g(a)
|
|
1410
1410
|
});
|
|
1411
|
-
class he extends
|
|
1411
|
+
class he extends x {
|
|
1412
1412
|
_parse(e) {
|
|
1413
1413
|
if (this._getType(e) !== u.undefined) {
|
|
1414
1414
|
const n = this._getOrReturnCtx(e);
|
|
@@ -1425,7 +1425,7 @@ he.create = (a) => new he({
|
|
|
1425
1425
|
typeName: y.ZodUndefined,
|
|
1426
1426
|
...g(a)
|
|
1427
1427
|
});
|
|
1428
|
-
class fe extends
|
|
1428
|
+
class fe extends x {
|
|
1429
1429
|
_parse(e) {
|
|
1430
1430
|
if (this._getType(e) !== u.null) {
|
|
1431
1431
|
const n = this._getOrReturnCtx(e);
|
|
@@ -1442,7 +1442,7 @@ fe.create = (a) => new fe({
|
|
|
1442
1442
|
typeName: y.ZodNull,
|
|
1443
1443
|
...g(a)
|
|
1444
1444
|
});
|
|
1445
|
-
class Oe extends
|
|
1445
|
+
class Oe extends x {
|
|
1446
1446
|
constructor() {
|
|
1447
1447
|
super(...arguments), this._any = !0;
|
|
1448
1448
|
}
|
|
@@ -1454,7 +1454,7 @@ Oe.create = (a) => new Oe({
|
|
|
1454
1454
|
typeName: y.ZodAny,
|
|
1455
1455
|
...g(a)
|
|
1456
1456
|
});
|
|
1457
|
-
class pe extends
|
|
1457
|
+
class pe extends x {
|
|
1458
1458
|
constructor() {
|
|
1459
1459
|
super(...arguments), this._unknown = !0;
|
|
1460
1460
|
}
|
|
@@ -1466,7 +1466,7 @@ pe.create = (a) => new pe({
|
|
|
1466
1466
|
typeName: y.ZodUnknown,
|
|
1467
1467
|
...g(a)
|
|
1468
1468
|
});
|
|
1469
|
-
class L extends
|
|
1469
|
+
class L extends x {
|
|
1470
1470
|
_parse(e) {
|
|
1471
1471
|
const t = this._getOrReturnCtx(e);
|
|
1472
1472
|
return c(t, {
|
|
@@ -1480,7 +1480,7 @@ L.create = (a) => new L({
|
|
|
1480
1480
|
typeName: y.ZodNever,
|
|
1481
1481
|
...g(a)
|
|
1482
1482
|
});
|
|
1483
|
-
class Ae extends
|
|
1483
|
+
class Ae extends x {
|
|
1484
1484
|
_parse(e) {
|
|
1485
1485
|
if (this._getType(e) !== u.undefined) {
|
|
1486
1486
|
const n = this._getOrReturnCtx(e);
|
|
@@ -1497,7 +1497,7 @@ Ae.create = (a) => new Ae({
|
|
|
1497
1497
|
typeName: y.ZodVoid,
|
|
1498
1498
|
...g(a)
|
|
1499
1499
|
});
|
|
1500
|
-
class N extends
|
|
1500
|
+
class N extends x {
|
|
1501
1501
|
_parse(e) {
|
|
1502
1502
|
const { ctx: t, status: n } = this._processInputParams(e), r = this._def;
|
|
1503
1503
|
if (t.parsedType !== u.array)
|
|
@@ -1586,7 +1586,7 @@ function U(a) {
|
|
|
1586
1586
|
type: U(a.element)
|
|
1587
1587
|
}) : a instanceof E ? E.create(U(a.unwrap())) : a instanceof F ? F.create(U(a.unwrap())) : a instanceof D ? D.create(a.items.map((e) => U(e))) : a;
|
|
1588
1588
|
}
|
|
1589
|
-
class T extends
|
|
1589
|
+
class T extends x {
|
|
1590
1590
|
constructor() {
|
|
1591
1591
|
super(...arguments), this._cached = null, this.nonstrict = this.passthrough, this.augment = this.extend;
|
|
1592
1592
|
}
|
|
@@ -1874,7 +1874,7 @@ T.lazycreate = (a, e) => new T({
|
|
|
1874
1874
|
typeName: y.ZodObject,
|
|
1875
1875
|
...g(e)
|
|
1876
1876
|
});
|
|
1877
|
-
class K extends
|
|
1877
|
+
class K extends x {
|
|
1878
1878
|
_parse(e) {
|
|
1879
1879
|
const { ctx: t } = this._processInputParams(e), n = this._def.options;
|
|
1880
1880
|
function r(s) {
|
|
@@ -1948,7 +1948,7 @@ K.create = (a, e) => new K({
|
|
|
1948
1948
|
...g(e)
|
|
1949
1949
|
});
|
|
1950
1950
|
const R = (a) => a instanceof ye ? R(a.schema) : a instanceof P ? R(a.innerType()) : a instanceof ae ? [a.value] : a instanceof z ? a.options : a instanceof ge ? k.objectValues(a.enum) : a instanceof re ? R(a._def.innerType) : a instanceof he ? [void 0] : a instanceof fe ? [null] : a instanceof E ? [void 0, ...R(a.unwrap())] : a instanceof F ? [null, ...R(a.unwrap())] : a instanceof Ie || a instanceof ie ? R(a.unwrap()) : a instanceof se ? R(a._def.innerType) : [];
|
|
1951
|
-
class _e extends
|
|
1951
|
+
class _e extends x {
|
|
1952
1952
|
_parse(e) {
|
|
1953
1953
|
const { ctx: t } = this._processInputParams(e);
|
|
1954
1954
|
if (t.parsedType !== u.object)
|
|
@@ -2036,7 +2036,7 @@ function me(a, e) {
|
|
|
2036
2036
|
return { valid: !0, data: r };
|
|
2037
2037
|
} else return t === u.date && n === u.date && +a == +e ? { valid: !0, data: a } : { valid: !1 };
|
|
2038
2038
|
}
|
|
2039
|
-
class ee extends
|
|
2039
|
+
class ee extends x {
|
|
2040
2040
|
_parse(e) {
|
|
2041
2041
|
const { status: t, ctx: n } = this._processInputParams(e), r = (s, i) => {
|
|
2042
2042
|
if (we(s) || we(i))
|
|
@@ -2074,7 +2074,7 @@ ee.create = (a, e, t) => new ee({
|
|
|
2074
2074
|
typeName: y.ZodIntersection,
|
|
2075
2075
|
...g(t)
|
|
2076
2076
|
});
|
|
2077
|
-
class D extends
|
|
2077
|
+
class D extends x {
|
|
2078
2078
|
_parse(e) {
|
|
2079
2079
|
const { status: t, ctx: n } = this._processInputParams(e);
|
|
2080
2080
|
if (n.parsedType !== u.array)
|
|
@@ -2124,7 +2124,7 @@ D.create = (a, e) => {
|
|
|
2124
2124
|
...g(e)
|
|
2125
2125
|
});
|
|
2126
2126
|
};
|
|
2127
|
-
class te extends
|
|
2127
|
+
class te extends x {
|
|
2128
2128
|
get keySchema() {
|
|
2129
2129
|
return this._def.keyType;
|
|
2130
2130
|
}
|
|
@@ -2152,7 +2152,7 @@ class te extends v {
|
|
|
2152
2152
|
return this._def.valueType;
|
|
2153
2153
|
}
|
|
2154
2154
|
static create(e, t, n) {
|
|
2155
|
-
return t instanceof
|
|
2155
|
+
return t instanceof x ? new te({
|
|
2156
2156
|
keyType: e,
|
|
2157
2157
|
valueType: t,
|
|
2158
2158
|
typeName: y.ZodRecord,
|
|
@@ -2165,7 +2165,7 @@ class te extends v {
|
|
|
2165
2165
|
});
|
|
2166
2166
|
}
|
|
2167
2167
|
}
|
|
2168
|
-
class Ne extends
|
|
2168
|
+
class Ne extends x {
|
|
2169
2169
|
get keySchema() {
|
|
2170
2170
|
return this._def.keyType;
|
|
2171
2171
|
}
|
|
@@ -2213,7 +2213,7 @@ Ne.create = (a, e, t) => new Ne({
|
|
|
2213
2213
|
typeName: y.ZodMap,
|
|
2214
2214
|
...g(t)
|
|
2215
2215
|
});
|
|
2216
|
-
class Y extends
|
|
2216
|
+
class Y extends x {
|
|
2217
2217
|
_parse(e) {
|
|
2218
2218
|
const { status: t, ctx: n } = this._processInputParams(e);
|
|
2219
2219
|
if (n.parsedType !== u.set)
|
|
@@ -2277,7 +2277,7 @@ Y.create = (a, e) => new Y({
|
|
|
2277
2277
|
typeName: y.ZodSet,
|
|
2278
2278
|
...g(e)
|
|
2279
2279
|
});
|
|
2280
|
-
class ye extends
|
|
2280
|
+
class ye extends x {
|
|
2281
2281
|
get schema() {
|
|
2282
2282
|
return this._def.getter();
|
|
2283
2283
|
}
|
|
@@ -2291,7 +2291,7 @@ ye.create = (a, e) => new ye({
|
|
|
2291
2291
|
typeName: y.ZodLazy,
|
|
2292
2292
|
...g(e)
|
|
2293
2293
|
});
|
|
2294
|
-
class ae extends
|
|
2294
|
+
class ae extends x {
|
|
2295
2295
|
_parse(e) {
|
|
2296
2296
|
if (e.data !== this._def.value) {
|
|
2297
2297
|
const t = this._getOrReturnCtx(e);
|
|
@@ -2319,7 +2319,7 @@ function Ee(a, e) {
|
|
|
2319
2319
|
...g(e)
|
|
2320
2320
|
});
|
|
2321
2321
|
}
|
|
2322
|
-
class z extends
|
|
2322
|
+
class z extends x {
|
|
2323
2323
|
_parse(e) {
|
|
2324
2324
|
if (typeof e.data != "string") {
|
|
2325
2325
|
const t = this._getOrReturnCtx(e), n = this._def.values;
|
|
@@ -2374,7 +2374,7 @@ class z extends v {
|
|
|
2374
2374
|
}
|
|
2375
2375
|
}
|
|
2376
2376
|
z.create = Ee;
|
|
2377
|
-
class ge extends
|
|
2377
|
+
class ge extends x {
|
|
2378
2378
|
_parse(e) {
|
|
2379
2379
|
const t = k.getValidEnumValues(this._def.values), n = this._getOrReturnCtx(e);
|
|
2380
2380
|
if (n.parsedType !== u.string && n.parsedType !== u.number) {
|
|
@@ -2404,7 +2404,7 @@ ge.create = (a, e) => new ge({
|
|
|
2404
2404
|
typeName: y.ZodNativeEnum,
|
|
2405
2405
|
...g(e)
|
|
2406
2406
|
});
|
|
2407
|
-
class ne extends
|
|
2407
|
+
class ne extends x {
|
|
2408
2408
|
unwrap() {
|
|
2409
2409
|
return this._def.type;
|
|
2410
2410
|
}
|
|
@@ -2428,7 +2428,7 @@ ne.create = (a, e) => new ne({
|
|
|
2428
2428
|
typeName: y.ZodPromise,
|
|
2429
2429
|
...g(e)
|
|
2430
2430
|
});
|
|
2431
|
-
class P extends
|
|
2431
|
+
class P extends x {
|
|
2432
2432
|
innerType() {
|
|
2433
2433
|
return this._def.schema;
|
|
2434
2434
|
}
|
|
@@ -2520,7 +2520,7 @@ P.createWithPreprocess = (a, e, t) => new P({
|
|
|
2520
2520
|
typeName: y.ZodEffects,
|
|
2521
2521
|
...g(t)
|
|
2522
2522
|
});
|
|
2523
|
-
class E extends
|
|
2523
|
+
class E extends x {
|
|
2524
2524
|
_parse(e) {
|
|
2525
2525
|
return this._getType(e) === u.undefined ? A(void 0) : this._def.innerType._parse(e);
|
|
2526
2526
|
}
|
|
@@ -2533,7 +2533,7 @@ E.create = (a, e) => new E({
|
|
|
2533
2533
|
typeName: y.ZodOptional,
|
|
2534
2534
|
...g(e)
|
|
2535
2535
|
});
|
|
2536
|
-
class F extends
|
|
2536
|
+
class F extends x {
|
|
2537
2537
|
_parse(e) {
|
|
2538
2538
|
return this._getType(e) === u.null ? A(null) : this._def.innerType._parse(e);
|
|
2539
2539
|
}
|
|
@@ -2546,7 +2546,7 @@ F.create = (a, e) => new F({
|
|
|
2546
2546
|
typeName: y.ZodNullable,
|
|
2547
2547
|
...g(e)
|
|
2548
2548
|
});
|
|
2549
|
-
class re extends
|
|
2549
|
+
class re extends x {
|
|
2550
2550
|
_parse(e) {
|
|
2551
2551
|
const { ctx: t } = this._processInputParams(e);
|
|
2552
2552
|
let n = t.data;
|
|
@@ -2566,7 +2566,7 @@ re.create = (a, e) => new re({
|
|
|
2566
2566
|
defaultValue: typeof e.default == "function" ? e.default : () => e.default,
|
|
2567
2567
|
...g(e)
|
|
2568
2568
|
});
|
|
2569
|
-
class se extends
|
|
2569
|
+
class se extends x {
|
|
2570
2570
|
_parse(e) {
|
|
2571
2571
|
const { ctx: t } = this._processInputParams(e), n = {
|
|
2572
2572
|
...t,
|
|
@@ -2609,7 +2609,7 @@ se.create = (a, e) => new se({
|
|
|
2609
2609
|
catchValue: typeof e.catch == "function" ? e.catch : () => e.catch,
|
|
2610
2610
|
...g(e)
|
|
2611
2611
|
});
|
|
2612
|
-
class Ze extends
|
|
2612
|
+
class Ze extends x {
|
|
2613
2613
|
_parse(e) {
|
|
2614
2614
|
if (this._getType(e) !== u.nan) {
|
|
2615
2615
|
const n = this._getOrReturnCtx(e);
|
|
@@ -2626,7 +2626,7 @@ Ze.create = (a) => new Ze({
|
|
|
2626
2626
|
typeName: y.ZodNaN,
|
|
2627
2627
|
...g(a)
|
|
2628
2628
|
});
|
|
2629
|
-
class Ie extends
|
|
2629
|
+
class Ie extends x {
|
|
2630
2630
|
_parse(e) {
|
|
2631
2631
|
const { ctx: t } = this._processInputParams(e), n = t.data;
|
|
2632
2632
|
return this._def.type._parse({
|
|
@@ -2639,7 +2639,7 @@ class Ie extends v {
|
|
|
2639
2639
|
return this._def.type;
|
|
2640
2640
|
}
|
|
2641
2641
|
}
|
|
2642
|
-
class ve extends
|
|
2642
|
+
class ve extends x {
|
|
2643
2643
|
_parse(e) {
|
|
2644
2644
|
const { status: t, ctx: n } = this._processInputParams(e);
|
|
2645
2645
|
if (n.common.async)
|
|
@@ -2679,7 +2679,7 @@ class ve extends v {
|
|
|
2679
2679
|
});
|
|
2680
2680
|
}
|
|
2681
2681
|
}
|
|
2682
|
-
class ie extends
|
|
2682
|
+
class ie extends x {
|
|
2683
2683
|
_parse(e) {
|
|
2684
2684
|
const t = this._def.innerType._parse(e), n = (r) => (W(r) && (r.value = Object.freeze(r.value)), r);
|
|
2685
2685
|
return Q(t) ? t.then((r) => n(r)) : n(t);
|
|
@@ -2697,7 +2697,7 @@ var y;
|
|
|
2697
2697
|
(function(a) {
|
|
2698
2698
|
a.ZodString = "ZodString", a.ZodNumber = "ZodNumber", a.ZodNaN = "ZodNaN", a.ZodBigInt = "ZodBigInt", a.ZodBoolean = "ZodBoolean", a.ZodDate = "ZodDate", a.ZodSymbol = "ZodSymbol", a.ZodUndefined = "ZodUndefined", a.ZodNull = "ZodNull", a.ZodAny = "ZodAny", a.ZodUnknown = "ZodUnknown", a.ZodNever = "ZodNever", a.ZodVoid = "ZodVoid", a.ZodArray = "ZodArray", a.ZodObject = "ZodObject", a.ZodUnion = "ZodUnion", a.ZodDiscriminatedUnion = "ZodDiscriminatedUnion", a.ZodIntersection = "ZodIntersection", a.ZodTuple = "ZodTuple", a.ZodRecord = "ZodRecord", a.ZodMap = "ZodMap", a.ZodSet = "ZodSet", a.ZodFunction = "ZodFunction", a.ZodLazy = "ZodLazy", a.ZodLiteral = "ZodLiteral", a.ZodEnum = "ZodEnum", a.ZodEffects = "ZodEffects", a.ZodNativeEnum = "ZodNativeEnum", a.ZodOptional = "ZodOptional", a.ZodNullable = "ZodNullable", a.ZodDefault = "ZodDefault", a.ZodCatch = "ZodCatch", a.ZodPromise = "ZodPromise", a.ZodBranded = "ZodBranded", a.ZodPipeline = "ZodPipeline", a.ZodReadonly = "ZodReadonly";
|
|
2699
2699
|
})(y || (y = {}));
|
|
2700
|
-
const _ = j.create, d = q.create,
|
|
2700
|
+
const _ = j.create, d = q.create, v = ue.create, ut = pe.create;
|
|
2701
2701
|
L.create;
|
|
2702
2702
|
const C = N.create, S = T.create, xe = K.create, $e = _e.create;
|
|
2703
2703
|
ee.create;
|
|
@@ -2727,7 +2727,7 @@ const ht = P.createWithPreprocess, oe = w([
|
|
|
2727
2727
|
"fill-color": ke("#000000"),
|
|
2728
2728
|
"fill-opacity": d().min(0).max(1).default(1),
|
|
2729
2729
|
"fill-outline-color": B(),
|
|
2730
|
-
"fill-antialias":
|
|
2730
|
+
"fill-antialias": v().optional(),
|
|
2731
2731
|
"fill-translate": I([d(), d()]).optional(),
|
|
2732
2732
|
"fill-translate-anchor": w(["map", "viewport"]).optional(),
|
|
2733
2733
|
"fill-pattern": _().optional()
|
|
@@ -2786,12 +2786,12 @@ const ht = P.createWithPreprocess, oe = w([
|
|
|
2786
2786
|
}), bt = S({
|
|
2787
2787
|
"symbol-placement": w(["point", "line", "line-center"]).optional(),
|
|
2788
2788
|
"symbol-spacing": d().min(1).optional(),
|
|
2789
|
-
"symbol-avoid-edges":
|
|
2789
|
+
"symbol-avoid-edges": v().optional(),
|
|
2790
2790
|
"symbol-sort-key": d().optional(),
|
|
2791
2791
|
"symbol-z-order": w(["auto", "viewport-y", "source"]).optional(),
|
|
2792
|
-
"icon-allow-overlap":
|
|
2793
|
-
"icon-ignore-placement":
|
|
2794
|
-
"icon-optional":
|
|
2792
|
+
"icon-allow-overlap": v().optional(),
|
|
2793
|
+
"icon-ignore-placement": v().optional(),
|
|
2794
|
+
"icon-optional": v().optional(),
|
|
2795
2795
|
"icon-rotation-alignment": w(["map", "viewport", "auto"]).optional(),
|
|
2796
2796
|
"icon-size": d().min(0).optional(),
|
|
2797
2797
|
"icon-text-fit": w(["none", "width", "height", "both"]).optional(),
|
|
@@ -2799,7 +2799,7 @@ const ht = P.createWithPreprocess, oe = w([
|
|
|
2799
2799
|
"icon-image": _().optional(),
|
|
2800
2800
|
"icon-rotate": d().optional(),
|
|
2801
2801
|
"icon-padding": d().min(0).optional(),
|
|
2802
|
-
"icon-keep-upright":
|
|
2802
|
+
"icon-keep-upright": v().optional(),
|
|
2803
2803
|
"icon-offset": I([d(), d()]).optional(),
|
|
2804
2804
|
"icon-anchor": w(["center", "left", "right", "top", "bottom", "top-left", "top-right", "bottom-left", "bottom-right"]).optional(),
|
|
2805
2805
|
"icon-pitch-alignment": w(["map", "viewport", "auto"]).optional(),
|
|
@@ -2816,12 +2816,12 @@ const ht = P.createWithPreprocess, oe = w([
|
|
|
2816
2816
|
"text-max-angle": d().optional(),
|
|
2817
2817
|
"text-rotate": d().optional(),
|
|
2818
2818
|
"text-padding": d().min(0).optional(),
|
|
2819
|
-
"text-keep-upright":
|
|
2819
|
+
"text-keep-upright": v().optional(),
|
|
2820
2820
|
"text-transform": w(["none", "uppercase", "lowercase"]).optional(),
|
|
2821
2821
|
"text-offset": I([d(), d()]).optional(),
|
|
2822
|
-
"text-allow-overlap":
|
|
2823
|
-
"text-ignore-placement":
|
|
2824
|
-
"text-optional":
|
|
2822
|
+
"text-allow-overlap": v().optional(),
|
|
2823
|
+
"text-ignore-placement": v().optional(),
|
|
2824
|
+
"text-optional": v().optional(),
|
|
2825
2825
|
visibility: w(["visible", "none"]).optional()
|
|
2826
2826
|
}), wt = S({
|
|
2827
2827
|
type: V("fill"),
|
|
@@ -2855,9 +2855,9 @@ const ht = P.createWithPreprocess, oe = w([
|
|
|
2855
2855
|
}), Nt = S({
|
|
2856
2856
|
entries: C(At).min(1),
|
|
2857
2857
|
displayMode: w(["categorical", "gradient", "simple"]).optional(),
|
|
2858
|
-
showLabelsCollapsed:
|
|
2859
|
-
showColorBar:
|
|
2860
|
-
showDisclosureArrow:
|
|
2858
|
+
showLabelsCollapsed: v().optional(),
|
|
2859
|
+
showColorBar: v().optional(),
|
|
2860
|
+
showDisclosureArrow: v().optional(),
|
|
2861
2861
|
gradientProperty: _().optional()
|
|
2862
2862
|
}), le = {
|
|
2863
2863
|
property: _().min(1),
|
|
@@ -2866,30 +2866,30 @@ const ht = P.createWithPreprocess, oe = w([
|
|
|
2866
2866
|
}, Zt = S({
|
|
2867
2867
|
...le,
|
|
2868
2868
|
type: V("text"),
|
|
2869
|
-
autocomplete:
|
|
2870
|
-
prefetch:
|
|
2869
|
+
autocomplete: v().default(!1),
|
|
2870
|
+
prefetch: v().optional(),
|
|
2871
2871
|
options: C(_()).optional(),
|
|
2872
|
-
zoomTo:
|
|
2872
|
+
zoomTo: v().optional()
|
|
2873
2873
|
}), Rt = S({
|
|
2874
2874
|
...le,
|
|
2875
2875
|
type: V("number"),
|
|
2876
2876
|
inputMode: w(["input", "slider"]).default("input"),
|
|
2877
2877
|
operator: w(["eq", "gt", "lt", "gte", "lte", "between"]).default("eq"),
|
|
2878
2878
|
operatorLabelStyle: w(["symbol", "word"]).optional(),
|
|
2879
|
-
showRange:
|
|
2879
|
+
showRange: v().optional(),
|
|
2880
2880
|
min: d().optional(),
|
|
2881
2881
|
max: d().optional(),
|
|
2882
2882
|
step: d().optional()
|
|
2883
2883
|
}), jt = S({
|
|
2884
2884
|
...le,
|
|
2885
2885
|
type: V("datetime"),
|
|
2886
|
-
range:
|
|
2886
|
+
range: v().default(!1)
|
|
2887
2887
|
}), Et = S({
|
|
2888
2888
|
...le,
|
|
2889
2889
|
type: V("select"),
|
|
2890
2890
|
options: C(_()).optional(),
|
|
2891
|
-
prefetch:
|
|
2892
|
-
zoomTo:
|
|
2891
|
+
prefetch: v().optional(),
|
|
2892
|
+
zoomTo: v().optional()
|
|
2893
2893
|
}), It = $e("type", [
|
|
2894
2894
|
Zt,
|
|
2895
2895
|
Rt,
|
|
@@ -2899,9 +2899,9 @@ const ht = P.createWithPreprocess, oe = w([
|
|
|
2899
2899
|
fields: C(It).min(1)
|
|
2900
2900
|
}), Mt = S({
|
|
2901
2901
|
label: _().optional(),
|
|
2902
|
-
visible:
|
|
2902
|
+
visible: v().optional().default(!0)
|
|
2903
2903
|
}), Lt = Me(_(), Mt), Pt = S({
|
|
2904
|
-
properties: Me(xe([_(), d(),
|
|
2904
|
+
properties: Me(xe([_(), d(), v(), C(_())])).optional(),
|
|
2905
2905
|
bbox: I([d(), d(), d(), d()]).optional(),
|
|
2906
2906
|
datetime: _().optional()
|
|
2907
2907
|
}), Vt = {
|
|
@@ -2909,7 +2909,7 @@ const ht = P.createWithPreprocess, oe = w([
|
|
|
2909
2909
|
sourceId: _().min(1),
|
|
2910
2910
|
collection: _().min(1),
|
|
2911
2911
|
label: _(),
|
|
2912
|
-
visible:
|
|
2912
|
+
visible: v().default(!0),
|
|
2913
2913
|
dataMode: w(["vector-tiles", "geojson"]),
|
|
2914
2914
|
minZoom: d().min(0).max(24).optional(),
|
|
2915
2915
|
maxZoom: d().min(0).max(24).optional(),
|
|
@@ -2917,7 +2917,9 @@ const ht = P.createWithPreprocess, oe = w([
|
|
|
2917
2917
|
legend: Nt.optional(),
|
|
2918
2918
|
filters: Pt.optional(),
|
|
2919
2919
|
search: $t.optional(),
|
|
2920
|
-
propertyDisplay: Lt.optional()
|
|
2920
|
+
propertyDisplay: Lt.optional(),
|
|
2921
|
+
showTooltip: v().optional(),
|
|
2922
|
+
showDetailPanel: v().optional()
|
|
2921
2923
|
}, Dt = ht(
|
|
2922
2924
|
(a) => {
|
|
2923
2925
|
if (a && typeof a == "object" && "style" in a && !("styles" in a)) {
|
|
@@ -2936,17 +2938,17 @@ const ht = P.createWithPreprocess, oe = w([
|
|
|
2936
2938
|
id: _().min(1),
|
|
2937
2939
|
url: _().url()
|
|
2938
2940
|
}), Ut = S({
|
|
2939
|
-
showLayerPanel:
|
|
2940
|
-
showLegend:
|
|
2941
|
-
showBasemapSwitcher:
|
|
2942
|
-
showSearchPanel:
|
|
2943
|
-
showCoordinateDisplay:
|
|
2944
|
-
showFeatureDetail:
|
|
2945
|
-
showFeatureTooltip:
|
|
2946
|
-
showExportButton:
|
|
2947
|
-
showLegendOpacity:
|
|
2948
|
-
showMeasureTool:
|
|
2949
|
-
showSelectionTool:
|
|
2941
|
+
showLayerPanel: v().default(!0),
|
|
2942
|
+
showLegend: v().default(!0),
|
|
2943
|
+
showBasemapSwitcher: v().default(!0),
|
|
2944
|
+
showSearchPanel: v().default(!1),
|
|
2945
|
+
showCoordinateDisplay: v().default(!0),
|
|
2946
|
+
showFeatureDetail: v().default(!0),
|
|
2947
|
+
showFeatureTooltip: v().default(!0),
|
|
2948
|
+
showExportButton: v().default(!0),
|
|
2949
|
+
showLegendOpacity: v().default(!1),
|
|
2950
|
+
showMeasureTool: v().default(!1),
|
|
2951
|
+
showSelectionTool: v().default(!1)
|
|
2950
2952
|
}), Wt = "#1e293b", Bt = S({
|
|
2951
2953
|
headerTitle: _().optional(),
|
|
2952
2954
|
headerColor: _().optional(),
|