@rippling/pebble-sdui-mobile 0.12.1 → 0.14.0
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/catalogs/custom-apps/action-params.d.ts +4 -0
- package/dist/catalogs/custom-apps/actions.d.ts +2 -1
- package/dist/catalogs/custom-apps/catalog.d.ts +1 -1
- package/dist/catalogs/custom-apps/component-events.d.ts +2 -1
- package/dist/catalogs/custom-apps/component-props.d.ts +7 -0
- package/dist/catalogs/custom-apps/components.d.ts +3 -2
- package/dist/catalogs/custom-apps/index.cjs +5 -4
- package/dist/catalogs/custom-apps/index.cjs.map +1 -1
- package/dist/catalogs/custom-apps/index.d.ts +5 -5
- package/dist/catalogs/custom-apps/index.js +230 -174
- package/dist/catalogs/custom-apps/index.js.map +1 -1
- package/dist/docs/typescript/mobile/catalogs/custom-apps/actions.md +28 -0
- package/dist/docs/typescript/mobile/catalogs/custom-apps/components.md +26 -2
- package/dist/docs/typescript/mobile/catalogs/custom-apps/definitions.md +26 -0
- package/dist/docs/typescript/mobile/catalogs/custom-apps/readme.md +1 -1
- package/package.json +1 -1
|
@@ -1,33 +1,33 @@
|
|
|
1
1
|
import { buildNode as P } from "../../core/component-utils.js";
|
|
2
|
-
import { buildAction as
|
|
2
|
+
import { buildAction as ot } from "../../core/action-utils.js";
|
|
3
3
|
import { createCatalogSchemaValidator as Yo } from "../../core/catalog-validation.js";
|
|
4
4
|
import { renderElementTree as Zo } from "../../core/spec.js";
|
|
5
|
-
const du = (e) => P("ActionCard", e), cu = (e) => P("Anchor", e), pu = (e) => P("Animation", e), uu = (e) => P("Avatar", e), fu = (e) => P("AvatarStack", e), hu = (e) => P("Badge", e), mu = (e) => P("Button", e), gu = (e) => P("Card", e), yu = (e) => P("Checkbox", e), $u = (e) => P("CheckboxGroup", e), bu = (e) => P("Chip", e), vu = (e) => P("Country", e), Su = (e) => P("Currency", e), wu = (e) => P("Date", e), ku = (e) => P("DateRange", e), Ou = (e) => P("DateTimePicker", e), Cu = (e) => P("Divider", e), Pu = (e) => P("Email", e), _u = (e) => P("ExpansionPanel", e), Vu = (e) => P("FileViewerButton", e), Du = (e) => P("FileViewerPressable", e), Fu = (e) => P("FloatingButton", e), ju = (e) => P("Form", e), Ru = (e) => P("Group", e), Tu = (e) => P("Hidden", e), Iu = (e) => P("HStack", e), Eu = (e) => P("Icon", e), xu = (e) => P("Image", e), Au = (e) => P("InputText", e), Nu = (e) => P("Label", e), zu = (e) => P("List", e), Mu = (e) => P("ListItem", e), Lu = (e) => P("ModalSheet", e), Bu = (e) => P("Notice", e), qu = (e) => P("Number", e), Hu = (e) => P("ObjectFooter", e), Wu = (e) => P("ObjectItem", e), Uu = (e) => P("ObjectListView", e), Gu = (e) => P("ObjectListViewCard", e), Ku = (e) => P("PageCondensedFooter", e), Ju = (e) => P("PageCondensedHeader", e), Yu = (e) => P("
|
|
5
|
+
const du = (e) => P("ActionCard", e), cu = (e) => P("Anchor", e), pu = (e) => P("Animation", e), uu = (e) => P("Avatar", e), fu = (e) => P("AvatarStack", e), hu = (e) => P("Badge", e), mu = (e) => P("Button", e), gu = (e) => P("Card", e), yu = (e) => P("Checkbox", e), $u = (e) => P("CheckboxGroup", e), bu = (e) => P("Chip", e), vu = (e) => P("Country", e), Su = (e) => P("Currency", e), wu = (e) => P("Date", e), ku = (e) => P("DateRange", e), Ou = (e) => P("DateTimePicker", e), Cu = (e) => P("Divider", e), Pu = (e) => P("Email", e), _u = (e) => P("ExpansionPanel", e), Vu = (e) => P("FileViewerButton", e), Du = (e) => P("FileViewerPressable", e), Fu = (e) => P("FloatingButton", e), ju = (e) => P("Form", e), Ru = (e) => P("Group", e), Tu = (e) => P("Hidden", e), Iu = (e) => P("HStack", e), Eu = (e) => P("Icon", e), xu = (e) => P("Image", e), Au = (e) => P("InputText", e), Nu = (e) => P("Label", e), zu = (e) => P("List", e), Mu = (e) => P("ListItem", e), Lu = (e) => P("ModalSheet", e), Bu = (e) => P("Notice", e), qu = (e) => P("Number", e), Hu = (e) => P("ObjectFooter", e), Wu = (e) => P("ObjectItem", e), Uu = (e) => P("ObjectListView", e), Gu = (e) => P("ObjectListViewCard", e), Ku = (e) => P("PageCondensedFooter", e), Ju = (e) => P("PageCondensedHeader", e), Yu = (e) => P("PageContent", e), Zu = (e) => P("PageFilterHeader", e), Xu = (e) => P("PageFooter", e), Qu = (e) => P("PageHeader", e), ef = (e) => P("PageModalActionHeader", e), tf = (e) => P("Password", e), rf = (e) => P("Percentage", e), of = (e) => P("Phone", e), nf = (e) => P("Pressable", e), sf = (e) => P("ProgressIndicator", e), af = (e) => P("Radio", e), lf = (e) => P("RadioGroup", e), df = (e) => P("Search", e), cf = (e) => P("SectionHeader", e), pf = (e) => P("Select", e), uf = (e) => P("SelectChips", e), ff = (e) => P("Signature", e), hf = (e) => P("Sin", e), mf = (e) => P("Slider", e), gf = (e) => P("SliderRange", e), yf = (e) => P("SnackBar", e), $f = (e) => P("Spacer", e), bf = (e) => P("Spinner", e), vf = (e) => P("Ssn", e), Sf = (e) => P("Status", e), wf = (e) => P("StatusBar", e), kf = (e) => P("Switch", e), Of = (e) => P("Tabs", e), Cf = (e) => P("Text", e), Pf = (e) => P("Textarea", e), _f = (e) => P("Time", e), Vf = (e) => P("TimeRange", e), Df = (e) => P("Tip", e), Ff = (e) => P("VStack", e), jf = (e) => P("Widget", e), Rf = (e) => P("WorkEmail", e), Tf = (e, t) => ot("goBack", e, t), If = (e, t) => ot("navigate", e, t), Ef = (e, t) => ot("push", e, t), xf = (e, t) => ot("setState", e, t), Af = (e, t) => ot("triggerApi", e, t), Nf = (e) => ({
|
|
6
6
|
$computed: "currency_format",
|
|
7
7
|
args: e
|
|
8
|
-
}),
|
|
8
|
+
}), zf = (e) => ({
|
|
9
9
|
$computed: "currency_getCurrencyCodeByCountryCode",
|
|
10
10
|
args: e
|
|
11
|
-
}),
|
|
11
|
+
}), Mf = (e) => ({
|
|
12
12
|
$computed: "currency_getCurrencyNameByCode",
|
|
13
13
|
args: e
|
|
14
|
-
}),
|
|
14
|
+
}), Lf = (e) => ({
|
|
15
15
|
$computed: "currency_getCurrencySymbol",
|
|
16
16
|
args: e
|
|
17
|
-
}),
|
|
17
|
+
}), Bf = (e) => ({
|
|
18
18
|
$computed: "currency_isConvertableToCurrency",
|
|
19
19
|
args: e
|
|
20
|
-
}),
|
|
20
|
+
}), qf = (e) => ({
|
|
21
21
|
$computed: "currency_toMoney",
|
|
22
22
|
args: e
|
|
23
|
-
}),
|
|
23
|
+
}), Hf = (e) => ({
|
|
24
24
|
$computed: "dateTime_add",
|
|
25
25
|
args: e
|
|
26
|
-
}),
|
|
26
|
+
}), Wf = (e) => ({
|
|
27
27
|
$computed: "dateTime_format",
|
|
28
28
|
args: e
|
|
29
29
|
});
|
|
30
|
-
var tr = { exports: {} }, qi = {}, oe = {}, xe = {},
|
|
30
|
+
var tr = { exports: {} }, qi = {}, oe = {}, xe = {}, nt = {}, E = {}, it = {};
|
|
31
31
|
(function(e) {
|
|
32
32
|
Object.defineProperty(e, "__esModule", { value: !0 }), e.regexpCode = e.getEsmExportName = e.getProperty = e.safeStringify = e.stringify = e.strConcat = e.addCodeArg = e.str = e._ = e.nil = e._Code = e.Name = e.IDENTIFIER = e._CodeOrName = void 0;
|
|
33
33
|
class t {
|
|
@@ -461,7 +461,7 @@ var rr = {};
|
|
|
461
461
|
p = this.else = Array.isArray(v) ? new g(v) : v;
|
|
462
462
|
}
|
|
463
463
|
if (p)
|
|
464
|
-
return s === !1 ? p instanceof u ? p : p.nodes : this.nodes.length ? this : new u(
|
|
464
|
+
return s === !1 ? p instanceof u ? p : p.nodes : this.nodes.length ? this : new u(lt(s), p instanceof u ? [p] : p.nodes);
|
|
465
465
|
if (!(s === !1 || !this.nodes.length))
|
|
466
466
|
return this;
|
|
467
467
|
}
|
|
@@ -807,18 +807,18 @@ var rr = {};
|
|
|
807
807
|
for (const p in s)
|
|
808
808
|
y[p] = (y[p] || 0) - (s[p] || 0);
|
|
809
809
|
}
|
|
810
|
-
function
|
|
810
|
+
function lt(y) {
|
|
811
811
|
return typeof y == "boolean" || typeof y == "number" || y === null ? !y : (0, t._)`!${O(y)}`;
|
|
812
812
|
}
|
|
813
|
-
e.not =
|
|
813
|
+
e.not = lt;
|
|
814
814
|
const Tt = m(e.operators.AND);
|
|
815
815
|
function It(...y) {
|
|
816
816
|
return y.reduce(Tt);
|
|
817
817
|
}
|
|
818
818
|
e.and = It;
|
|
819
|
-
const
|
|
819
|
+
const dt = m(e.operators.OR);
|
|
820
820
|
function _(...y) {
|
|
821
|
-
return y.reduce(
|
|
821
|
+
return y.reduce(dt);
|
|
822
822
|
}
|
|
823
823
|
e.or = _;
|
|
824
824
|
function m(y) {
|
|
@@ -1071,10 +1071,10 @@ Q.default = dn;
|
|
|
1071
1071
|
const { keyword: D, data: F, schemaValue: L, it: H } = g, { opts: ae, propertyName: ue, topSchemaRef: be, schemaPath: He } = H;
|
|
1072
1072
|
C.push([f.keyword, D], [f.params, typeof u == "function" ? u(g) : u || (0, t._)`{}`]), ae.messages && C.push([f.message, typeof $ == "function" ? $(g) : $]), ae.verbose && C.push([f.schema, L], [f.parentSchema, (0, t._)`${be}${He}`], [i.default.data, F]), ue && C.push([f.propertyName, ue]);
|
|
1073
1073
|
}
|
|
1074
|
-
})(
|
|
1074
|
+
})(nt);
|
|
1075
1075
|
Object.defineProperty(xe, "__esModule", { value: !0 });
|
|
1076
1076
|
xe.boolOrEmptySchema = xe.topBoolOrEmptySchema = void 0;
|
|
1077
|
-
const cn =
|
|
1077
|
+
const cn = nt, pn = E, un = Q, fn = {
|
|
1078
1078
|
message: "boolean schema is false"
|
|
1079
1079
|
};
|
|
1080
1080
|
function hn(e) {
|
|
@@ -1143,7 +1143,7 @@ function Zi(e, t) {
|
|
|
1143
1143
|
de.shouldUseRule = Zi;
|
|
1144
1144
|
Object.defineProperty(W, "__esModule", { value: !0 });
|
|
1145
1145
|
W.reportTypeError = W.checkDataTypes = W.checkDataType = W.coerceAndCheckDataType = W.getJSONTypes = W.getSchemaTypes = W.DataType = void 0;
|
|
1146
|
-
const Sn = Ce, wn = de, kn =
|
|
1146
|
+
const Sn = Ce, wn = de, kn = nt, x = E, Xi = V;
|
|
1147
1147
|
var Te;
|
|
1148
1148
|
(function(e) {
|
|
1149
1149
|
e[e.Correct = 0] = "Correct", e[e.Wrong = 1] = "Wrong";
|
|
@@ -1418,7 +1418,7 @@ function qn(e) {
|
|
|
1418
1418
|
A.validateUnion = qn;
|
|
1419
1419
|
Object.defineProperty(se, "__esModule", { value: !0 });
|
|
1420
1420
|
se.validateKeywordUsage = se.validSchemaType = se.funcKeywordCode = se.macroKeywordCode = void 0;
|
|
1421
|
-
const Y = E, Se = Q, Hn = A, Wn =
|
|
1421
|
+
const Y = E, Se = Q, Hn = A, Wn = nt;
|
|
1422
1422
|
function Un(e, t) {
|
|
1423
1423
|
const { gen: r, keyword: i, schema: o, parentSchema: n, it: a } = e, l = t.macro.call(a.self, o, n, a), d = io(r, i, l);
|
|
1424
1424
|
a.opts.validateSchema !== !1 && a.self.validateSchema(l, !0);
|
|
@@ -1585,7 +1585,7 @@ var K = {}, no = function e(t, r) {
|
|
|
1585
1585
|
var i = typeof r == "function" ? r : r.pre || function() {
|
|
1586
1586
|
}, o = r.post || function() {
|
|
1587
1587
|
};
|
|
1588
|
-
|
|
1588
|
+
mt(t, i, o, e, "", e);
|
|
1589
1589
|
};
|
|
1590
1590
|
ye.keywords = {
|
|
1591
1591
|
additionalItems: !0,
|
|
@@ -1631,7 +1631,7 @@ ye.skipKeywords = {
|
|
|
1631
1631
|
maxProperties: !0,
|
|
1632
1632
|
minProperties: !0
|
|
1633
1633
|
};
|
|
1634
|
-
function
|
|
1634
|
+
function mt(e, t, r, i, o, n, a, l, d, c) {
|
|
1635
1635
|
if (i && typeof i == "object" && !Array.isArray(i)) {
|
|
1636
1636
|
t(i, o, n, a, l, d, c);
|
|
1637
1637
|
for (var f in i) {
|
|
@@ -1639,12 +1639,12 @@ function ht(e, t, r, i, o, n, a, l, d, c) {
|
|
|
1639
1639
|
if (Array.isArray(h)) {
|
|
1640
1640
|
if (f in ye.arrayKeywords)
|
|
1641
1641
|
for (var k = 0; k < h.length; k++)
|
|
1642
|
-
|
|
1642
|
+
mt(e, t, r, h[k], o + "/" + f + "/" + k, n, o, f, i, k);
|
|
1643
1643
|
} else if (f in ye.propsKeywords) {
|
|
1644
1644
|
if (h && typeof h == "object")
|
|
1645
1645
|
for (var S in h)
|
|
1646
|
-
|
|
1647
|
-
} else (f in ye.keywords || e.allKeys && !(f in ye.skipKeywords)) &&
|
|
1646
|
+
mt(e, t, r, h[S], o + "/" + f + "/" + ts(S), n, o, f, i, S);
|
|
1647
|
+
} else (f in ye.keywords || e.allKeys && !(f in ye.skipKeywords)) && mt(e, t, r, h, o + "/" + f, n, o, f, i);
|
|
1648
1648
|
}
|
|
1649
1649
|
r(i, o, n, a, l, d, c);
|
|
1650
1650
|
}
|
|
@@ -1761,7 +1761,7 @@ function us(e, t) {
|
|
|
1761
1761
|
K.getSchemaRefs = us;
|
|
1762
1762
|
Object.defineProperty(oe, "__esModule", { value: !0 });
|
|
1763
1763
|
oe.getData = oe.KeywordCxt = oe.validateFunctionCode = void 0;
|
|
1764
|
-
const po = xe, yi = W, gr = de,
|
|
1764
|
+
const po = xe, yi = W, gr = de, St = W, fs = Pt, Ze = se, Jt = $e, j = E, I = Q, hs = K, ce = V, Ge = nt;
|
|
1765
1765
|
function ms(e) {
|
|
1766
1766
|
if (ho(e) && (mo(e), fo(e))) {
|
|
1767
1767
|
$s(e);
|
|
@@ -1876,7 +1876,7 @@ function bi(e, t, r, i) {
|
|
|
1876
1876
|
h(f.post);
|
|
1877
1877
|
});
|
|
1878
1878
|
function h(k) {
|
|
1879
|
-
(0, gr.shouldUseGroup)(n, k) && (k.type ? (o.if((0,
|
|
1879
|
+
(0, gr.shouldUseGroup)(n, k) && (k.type ? (o.if((0, St.checkDataType)(k.type, a, d.strictNumbers)), vi(e, k), t.length === 1 && t[0] === k.type && r && (o.else(), (0, St.reportTypeError)(e)), o.endIf()) : vi(e, k), l || o.if((0, j._)`${I.default.errors} === ${i || 0}`));
|
|
1880
1880
|
}
|
|
1881
1881
|
}
|
|
1882
1882
|
function vi(e, t) {
|
|
@@ -2002,7 +2002,7 @@ class bo {
|
|
|
2002
2002
|
if (!(r instanceof j.Name))
|
|
2003
2003
|
throw new Error("ajv implementation error");
|
|
2004
2004
|
const d = Array.isArray(i) ? i : [i];
|
|
2005
|
-
return (0, j._)`${(0,
|
|
2005
|
+
return (0, j._)`${(0, St.checkDataTypes)(d, r, n.opts.strictNumbers, St.DataType.Wrong)}`;
|
|
2006
2006
|
}
|
|
2007
2007
|
return j.nil;
|
|
2008
2008
|
}
|
|
@@ -2069,14 +2069,14 @@ function So(e, { dataLevel: t, dataNames: r, dataPathArr: i }) {
|
|
|
2069
2069
|
}
|
|
2070
2070
|
}
|
|
2071
2071
|
oe.getData = So;
|
|
2072
|
-
var
|
|
2073
|
-
Object.defineProperty(
|
|
2072
|
+
var st = {};
|
|
2073
|
+
Object.defineProperty(st, "__esModule", { value: !0 });
|
|
2074
2074
|
class xs extends Error {
|
|
2075
2075
|
constructor(t) {
|
|
2076
2076
|
super("validation failed"), this.errors = t, this.ajv = this.validation = !0;
|
|
2077
2077
|
}
|
|
2078
2078
|
}
|
|
2079
|
-
|
|
2079
|
+
st.default = xs;
|
|
2080
2080
|
var ze = {};
|
|
2081
2081
|
Object.defineProperty(ze, "__esModule", { value: !0 });
|
|
2082
2082
|
const Yt = K;
|
|
@@ -2089,7 +2089,7 @@ ze.default = As;
|
|
|
2089
2089
|
var Z = {};
|
|
2090
2090
|
Object.defineProperty(Z, "__esModule", { value: !0 });
|
|
2091
2091
|
Z.resolveSchema = Z.getCompilingSchema = Z.resolveRef = Z.compileSchema = Z.SchemaEnv = void 0;
|
|
2092
|
-
const te = E, Ns =
|
|
2092
|
+
const te = E, Ns = st, ve = Q, ie = K, Si = V, zs = oe;
|
|
2093
2093
|
class _t {
|
|
2094
2094
|
constructor(t) {
|
|
2095
2095
|
var r;
|
|
@@ -2539,7 +2539,7 @@ const Ro = (
|
|
|
2539
2539
|
parse: Fo,
|
|
2540
2540
|
serialize: jo
|
|
2541
2541
|
}
|
|
2542
|
-
),
|
|
2542
|
+
), gt = (
|
|
2543
2543
|
/** @type {SchemeHandler} */
|
|
2544
2544
|
{
|
|
2545
2545
|
scheme: "ws",
|
|
@@ -2551,9 +2551,9 @@ const Ro = (
|
|
|
2551
2551
|
/** @type {SchemeHandler} */
|
|
2552
2552
|
{
|
|
2553
2553
|
scheme: "wss",
|
|
2554
|
-
domainHost:
|
|
2555
|
-
parse:
|
|
2556
|
-
serialize:
|
|
2554
|
+
domainHost: gt.domainHost,
|
|
2555
|
+
parse: gt.parse,
|
|
2556
|
+
serialize: gt.serialize
|
|
2557
2557
|
}
|
|
2558
2558
|
), wa = (
|
|
2559
2559
|
/** @type {SchemeHandler} */
|
|
@@ -2571,29 +2571,29 @@ const Ro = (
|
|
|
2571
2571
|
serialize: ba,
|
|
2572
2572
|
skipNormalize: !0
|
|
2573
2573
|
}
|
|
2574
|
-
),
|
|
2574
|
+
), wt = (
|
|
2575
2575
|
/** @type {Record<SchemeName, SchemeHandler>} */
|
|
2576
2576
|
{
|
|
2577
2577
|
http: Ro,
|
|
2578
2578
|
https: va,
|
|
2579
|
-
ws:
|
|
2579
|
+
ws: gt,
|
|
2580
2580
|
wss: Sa,
|
|
2581
2581
|
urn: wa,
|
|
2582
2582
|
"urn:uuid": ka
|
|
2583
2583
|
}
|
|
2584
2584
|
);
|
|
2585
|
-
Object.setPrototypeOf(
|
|
2585
|
+
Object.setPrototypeOf(wt, null);
|
|
2586
2586
|
function Sr(e) {
|
|
2587
|
-
return e && (
|
|
2587
|
+
return e && (wt[
|
|
2588
2588
|
/** @type {SchemeName} */
|
|
2589
2589
|
e
|
|
2590
|
-
] ||
|
|
2590
|
+
] || wt[
|
|
2591
2591
|
/** @type {SchemeName} */
|
|
2592
2592
|
e.toLowerCase()
|
|
2593
2593
|
]) || void 0;
|
|
2594
2594
|
}
|
|
2595
2595
|
var Oa = {
|
|
2596
|
-
SCHEMES:
|
|
2596
|
+
SCHEMES: wt,
|
|
2597
2597
|
getSchemeHandler: Sr
|
|
2598
2598
|
};
|
|
2599
2599
|
const { normalizeIPv6: Ca, removeDotSegments: Je, recomposeAuthority: Pa, normalizePercentEncoding: _a, normalizePathEncoding: Va, escapePreservingEscapes: Da, reescapeHostDelimiters: Fa, isIPv4: ja, nonSimpleDomain: Ra } = Vo, { SCHEMES: Ta, getSchemeHandler: To } = Oa;
|
|
@@ -2745,7 +2745,7 @@ br.default = Ao;
|
|
|
2745
2745
|
} }), Object.defineProperty(e, "CodeGen", { enumerable: !0, get: function() {
|
|
2746
2746
|
return r.CodeGen;
|
|
2747
2747
|
} });
|
|
2748
|
-
const i =
|
|
2748
|
+
const i = st, o = ze, n = Ce, a = Z, l = E, d = K, c = W, f = V, h = Zs, k = br, S = (_, m) => new RegExp(_, m);
|
|
2749
2749
|
S.code = "new RegExp";
|
|
2750
2750
|
const b = ["removeAdditional", "useDefaults", "coerceTypes"], w = /* @__PURE__ */ new Set([
|
|
2751
2751
|
"validate",
|
|
@@ -3017,7 +3017,7 @@ br.default = Ao;
|
|
|
3017
3017
|
if (typeof T != "object")
|
|
3018
3018
|
continue;
|
|
3019
3019
|
const { $data: z } = T.definition, N = v[R];
|
|
3020
|
-
z && N && (v[R] =
|
|
3020
|
+
z && N && (v[R] = dt(N));
|
|
3021
3021
|
}
|
|
3022
3022
|
}
|
|
3023
3023
|
return m;
|
|
@@ -3148,20 +3148,20 @@ br.default = Ao;
|
|
|
3148
3148
|
schemaType: (0, c.getJSONTypes)(m.schemaType)
|
|
3149
3149
|
}
|
|
3150
3150
|
};
|
|
3151
|
-
m.before ?
|
|
3151
|
+
m.before ? lt.call(this, v, R, m.before) : v.rules.push(R), p.all[_] = R, (y = m.implements) === null || y === void 0 || y.forEach((T) => this.addKeyword(T));
|
|
3152
3152
|
}
|
|
3153
|
-
function
|
|
3153
|
+
function lt(_, m, O) {
|
|
3154
3154
|
const y = _.rules.findIndex((s) => s.keyword === O);
|
|
3155
3155
|
y >= 0 ? _.rules.splice(y, 0, m) : (_.rules.push(m), this.logger.warn(`rule ${O} is not defined`));
|
|
3156
3156
|
}
|
|
3157
3157
|
function Tt(_) {
|
|
3158
3158
|
let { metaSchema: m } = _;
|
|
3159
|
-
m !== void 0 && (_.$data && this.opts.$data && (m =
|
|
3159
|
+
m !== void 0 && (_.$data && this.opts.$data && (m = dt(m)), _.validateSchema = this.compile(m, !0));
|
|
3160
3160
|
}
|
|
3161
3161
|
const It = {
|
|
3162
3162
|
$ref: "https://raw.githubusercontent.com/ajv-validator/ajv/master/lib/refs/data.json#"
|
|
3163
3163
|
};
|
|
3164
|
-
function
|
|
3164
|
+
function dt(_) {
|
|
3165
3165
|
return { anyOf: [_, It] };
|
|
3166
3166
|
}
|
|
3167
3167
|
})(qi);
|
|
@@ -3177,7 +3177,7 @@ Cr.default = La;
|
|
|
3177
3177
|
var pe = {};
|
|
3178
3178
|
Object.defineProperty(pe, "__esModule", { value: !0 });
|
|
3179
3179
|
pe.callRef = pe.getValidate = void 0;
|
|
3180
|
-
const Ba = ze, Oi = A, X = E, Fe = Q, Ci = Z,
|
|
3180
|
+
const Ba = ze, Oi = A, X = E, Fe = Q, Ci = Z, ct = V, qa = {
|
|
3181
3181
|
keyword: "$ref",
|
|
3182
3182
|
schemaType: "string",
|
|
3183
3183
|
code(e) {
|
|
@@ -3192,13 +3192,13 @@ const Ba = ze, Oi = A, X = E, Fe = Q, Ci = Z, dt = V, qa = {
|
|
|
3192
3192
|
return S(f);
|
|
3193
3193
|
function h() {
|
|
3194
3194
|
if (n === c)
|
|
3195
|
-
return
|
|
3195
|
+
return yt(e, a, n, n.$async);
|
|
3196
3196
|
const b = t.scopeValue("root", { ref: c });
|
|
3197
|
-
return
|
|
3197
|
+
return yt(e, (0, X._)`${b}.validate`, c, c.$async);
|
|
3198
3198
|
}
|
|
3199
3199
|
function k(b) {
|
|
3200
3200
|
const w = No(e, b);
|
|
3201
|
-
|
|
3201
|
+
yt(e, w, b, b.$async);
|
|
3202
3202
|
}
|
|
3203
3203
|
function S(b) {
|
|
3204
3204
|
const w = t.scopeValue("schema", l.code.source === !0 ? { ref: b, code: (0, X.stringify)(b) } : { ref: b }), g = t.name("valid"), u = e.subschema({
|
|
@@ -3217,7 +3217,7 @@ function No(e, t) {
|
|
|
3217
3217
|
return t.validate ? r.scopeValue("validate", { ref: t.validate }) : (0, X._)`${r.scopeValue("wrapper", { ref: t })}.validate`;
|
|
3218
3218
|
}
|
|
3219
3219
|
pe.getValidate = No;
|
|
3220
|
-
function
|
|
3220
|
+
function yt(e, t, r, i) {
|
|
3221
3221
|
const { gen: o, it: n } = e, { allErrors: a, schemaEnv: l, opts: d } = n, c = d.passContext ? Fe.default.this : X.nil;
|
|
3222
3222
|
i ? f() : h();
|
|
3223
3223
|
function f() {
|
|
@@ -3244,21 +3244,21 @@ function gt(e, t, r, i) {
|
|
|
3244
3244
|
const g = (w = r == null ? void 0 : r.validate) === null || w === void 0 ? void 0 : w.evaluated;
|
|
3245
3245
|
if (n.props !== !0)
|
|
3246
3246
|
if (g && !g.dynamicProps)
|
|
3247
|
-
g.props !== void 0 && (n.props =
|
|
3247
|
+
g.props !== void 0 && (n.props = ct.mergeEvaluated.props(o, g.props, n.props));
|
|
3248
3248
|
else {
|
|
3249
3249
|
const u = o.var("props", (0, X._)`${b}.evaluated.props`);
|
|
3250
|
-
n.props =
|
|
3250
|
+
n.props = ct.mergeEvaluated.props(o, u, n.props, X.Name);
|
|
3251
3251
|
}
|
|
3252
3252
|
if (n.items !== !0)
|
|
3253
3253
|
if (g && !g.dynamicItems)
|
|
3254
|
-
g.items !== void 0 && (n.items =
|
|
3254
|
+
g.items !== void 0 && (n.items = ct.mergeEvaluated.items(o, g.items, n.items));
|
|
3255
3255
|
else {
|
|
3256
3256
|
const u = o.var("items", (0, X._)`${b}.evaluated.items`);
|
|
3257
|
-
n.items =
|
|
3257
|
+
n.items = ct.mergeEvaluated.items(o, u, n.items, X.Name);
|
|
3258
3258
|
}
|
|
3259
3259
|
}
|
|
3260
3260
|
}
|
|
3261
|
-
pe.callRef =
|
|
3261
|
+
pe.callRef = yt;
|
|
3262
3262
|
pe.default = qa;
|
|
3263
3263
|
Object.defineProperty(Or, "__esModule", { value: !0 });
|
|
3264
3264
|
const Ha = Cr, Wa = pe, Ua = [
|
|
@@ -3274,23 +3274,23 @@ const Ha = Cr, Wa = pe, Ua = [
|
|
|
3274
3274
|
Or.default = Ua;
|
|
3275
3275
|
var Pr = {}, _r = {};
|
|
3276
3276
|
Object.defineProperty(_r, "__esModule", { value: !0 });
|
|
3277
|
-
const
|
|
3277
|
+
const kt = E, me = kt.operators, Ot = {
|
|
3278
3278
|
maximum: { okStr: "<=", ok: me.LTE, fail: me.GT },
|
|
3279
3279
|
minimum: { okStr: ">=", ok: me.GTE, fail: me.LT },
|
|
3280
3280
|
exclusiveMaximum: { okStr: "<", ok: me.LT, fail: me.GTE },
|
|
3281
3281
|
exclusiveMinimum: { okStr: ">", ok: me.GT, fail: me.LTE }
|
|
3282
3282
|
}, Ga = {
|
|
3283
|
-
message: ({ keyword: e, schemaCode: t }) => (0,
|
|
3284
|
-
params: ({ keyword: e, schemaCode: t }) => (0,
|
|
3283
|
+
message: ({ keyword: e, schemaCode: t }) => (0, kt.str)`must be ${Ot[e].okStr} ${t}`,
|
|
3284
|
+
params: ({ keyword: e, schemaCode: t }) => (0, kt._)`{comparison: ${Ot[e].okStr}, limit: ${t}}`
|
|
3285
3285
|
}, Ka = {
|
|
3286
|
-
keyword: Object.keys(
|
|
3286
|
+
keyword: Object.keys(Ot),
|
|
3287
3287
|
type: "number",
|
|
3288
3288
|
schemaType: "number",
|
|
3289
3289
|
$data: !0,
|
|
3290
3290
|
error: Ga,
|
|
3291
3291
|
code(e) {
|
|
3292
3292
|
const { keyword: t, data: r, schemaCode: i } = e;
|
|
3293
|
-
e.fail$data((0,
|
|
3293
|
+
e.fail$data((0, kt._)`${r} ${Ot[t].fail} ${i} || isNaN(${r})`);
|
|
3294
3294
|
}
|
|
3295
3295
|
};
|
|
3296
3296
|
_r.default = Ka;
|
|
@@ -3458,13 +3458,13 @@ const tt = E, cl = {
|
|
|
3458
3458
|
}
|
|
3459
3459
|
};
|
|
3460
3460
|
Ir.default = pl;
|
|
3461
|
-
var Er = {},
|
|
3462
|
-
Object.defineProperty(
|
|
3461
|
+
var Er = {}, at = {};
|
|
3462
|
+
Object.defineProperty(at, "__esModule", { value: !0 });
|
|
3463
3463
|
const Mo = no;
|
|
3464
3464
|
Mo.code = 'require("ajv/dist/runtime/equal").default';
|
|
3465
|
-
|
|
3465
|
+
at.default = Mo;
|
|
3466
3466
|
Object.defineProperty(Er, "__esModule", { value: !0 });
|
|
3467
|
-
const Xt = W, G = E, ul = V, fl =
|
|
3467
|
+
const Xt = W, G = E, ul = V, fl = at, hl = {
|
|
3468
3468
|
message: ({ params: { i: e, j: t } }) => (0, G.str)`must NOT have duplicate items (items ## ${t} and ${e} are identical)`,
|
|
3469
3469
|
params: ({ params: { i: e, j: t } }) => (0, G._)`{i: ${e}, j: ${t}}`
|
|
3470
3470
|
}, ml = {
|
|
@@ -3505,7 +3505,7 @@ const Xt = W, G = E, ul = V, fl = st, hl = {
|
|
|
3505
3505
|
Er.default = ml;
|
|
3506
3506
|
var xr = {};
|
|
3507
3507
|
Object.defineProperty(xr, "__esModule", { value: !0 });
|
|
3508
|
-
const sr = E, gl = V, yl =
|
|
3508
|
+
const sr = E, gl = V, yl = at, $l = {
|
|
3509
3509
|
message: "must be equal to constant",
|
|
3510
3510
|
params: ({ schemaCode: e }) => (0, sr._)`{allowedValue: ${e}}`
|
|
3511
3511
|
}, bl = {
|
|
@@ -3520,7 +3520,7 @@ const sr = E, gl = V, yl = st, $l = {
|
|
|
3520
3520
|
xr.default = bl;
|
|
3521
3521
|
var Ar = {};
|
|
3522
3522
|
Object.defineProperty(Ar, "__esModule", { value: !0 });
|
|
3523
|
-
const Ye = E, vl = V, Sl =
|
|
3523
|
+
const Ye = E, vl = V, Sl = at, wl = {
|
|
3524
3524
|
message: "must be equal to one of the allowed values",
|
|
3525
3525
|
params: ({ schemaCode: e }) => (0, Ye._)`{allowedValues: ${e}}`
|
|
3526
3526
|
}, kl = {
|
|
@@ -3618,7 +3618,7 @@ Me.default = xl;
|
|
|
3618
3618
|
var zr = {}, Le = {};
|
|
3619
3619
|
Object.defineProperty(Le, "__esModule", { value: !0 });
|
|
3620
3620
|
Le.validateTuple = void 0;
|
|
3621
|
-
const Pi = E,
|
|
3621
|
+
const Pi = E, $t = V, Al = A, Nl = {
|
|
3622
3622
|
keyword: "items",
|
|
3623
3623
|
type: "array",
|
|
3624
3624
|
schemaType: ["object", "array", "boolean"],
|
|
@@ -3627,15 +3627,15 @@ const Pi = E, yt = V, Al = A, Nl = {
|
|
|
3627
3627
|
const { schema: t, it: r } = e;
|
|
3628
3628
|
if (Array.isArray(t))
|
|
3629
3629
|
return Bo(e, "additionalItems", t);
|
|
3630
|
-
r.items = !0, !(0,
|
|
3630
|
+
r.items = !0, !(0, $t.alwaysValidSchema)(r, t) && e.ok((0, Al.validateArray)(e));
|
|
3631
3631
|
}
|
|
3632
3632
|
};
|
|
3633
3633
|
function Bo(e, t, r = e.schema) {
|
|
3634
3634
|
const { gen: i, parentSchema: o, data: n, keyword: a, it: l } = e;
|
|
3635
|
-
f(o), l.opts.unevaluated && r.length && l.items !== !0 && (l.items =
|
|
3635
|
+
f(o), l.opts.unevaluated && r.length && l.items !== !0 && (l.items = $t.mergeEvaluated.items(i, r.length, l.items));
|
|
3636
3636
|
const d = i.name("valid"), c = i.const("len", (0, Pi._)`${n}.length`);
|
|
3637
3637
|
r.forEach((h, k) => {
|
|
3638
|
-
(0,
|
|
3638
|
+
(0, $t.alwaysValidSchema)(l, h) || (i.if((0, Pi._)`${c} > ${k}`, () => e.subschema({
|
|
3639
3639
|
keyword: a,
|
|
3640
3640
|
schemaProp: k,
|
|
3641
3641
|
dataProp: k
|
|
@@ -3645,7 +3645,7 @@ function Bo(e, t, r = e.schema) {
|
|
|
3645
3645
|
const { opts: k, errSchemaPath: S } = l, b = r.length, w = b === h.minItems && (b === h.maxItems || h[t] === !1);
|
|
3646
3646
|
if (k.strictTuples && !w) {
|
|
3647
3647
|
const g = `"${a}" is ${b}-tuple, but minItems or maxItems/${t} are not specified or different at path "${S}"`;
|
|
3648
|
-
(0,
|
|
3648
|
+
(0, $t.checkStrictMode)(l, g, k.strictTuples);
|
|
3649
3649
|
}
|
|
3650
3650
|
}
|
|
3651
3651
|
}
|
|
@@ -3679,7 +3679,7 @@ const _i = E, Ll = V, Bl = A, ql = Me, Hl = {
|
|
|
3679
3679
|
Mr.default = Wl;
|
|
3680
3680
|
var Lr = {};
|
|
3681
3681
|
Object.defineProperty(Lr, "__esModule", { value: !0 });
|
|
3682
|
-
const ee = E,
|
|
3682
|
+
const ee = E, pt = V, Ul = {
|
|
3683
3683
|
message: ({ params: { min: e, max: t } }) => t === void 0 ? (0, ee.str)`must contain at least ${e} valid item(s)` : (0, ee.str)`must contain at least ${e} and no more than ${t} valid item(s)`,
|
|
3684
3684
|
params: ({ params: { min: e, max: t } }) => t === void 0 ? (0, ee._)`{minContains: ${e}}` : (0, ee._)`{minContains: ${e}, maxContains: ${t}}`
|
|
3685
3685
|
}, Gl = {
|
|
@@ -3696,14 +3696,14 @@ const ee = E, ct = V, Ul = {
|
|
|
3696
3696
|
n.opts.next ? (a = d === void 0 ? 1 : d, l = c) : a = 1;
|
|
3697
3697
|
const f = t.const("len", (0, ee._)`${o}.length`);
|
|
3698
3698
|
if (e.setParams({ min: a, max: l }), l === void 0 && a === 0) {
|
|
3699
|
-
(0,
|
|
3699
|
+
(0, pt.checkStrictMode)(n, '"minContains" == 0 without "maxContains": "contains" keyword ignored');
|
|
3700
3700
|
return;
|
|
3701
3701
|
}
|
|
3702
3702
|
if (l !== void 0 && a > l) {
|
|
3703
|
-
(0,
|
|
3703
|
+
(0, pt.checkStrictMode)(n, '"minContains" > "maxContains" is always invalid'), e.fail();
|
|
3704
3704
|
return;
|
|
3705
3705
|
}
|
|
3706
|
-
if ((0,
|
|
3706
|
+
if ((0, pt.alwaysValidSchema)(n, r)) {
|
|
3707
3707
|
let w = (0, ee._)`${f} >= ${a}`;
|
|
3708
3708
|
l !== void 0 && (w = (0, ee._)`${w} && ${f} <= ${l}`), e.pass(w);
|
|
3709
3709
|
return;
|
|
@@ -3720,7 +3720,7 @@ const ee = E, ct = V, Ul = {
|
|
|
3720
3720
|
e.subschema({
|
|
3721
3721
|
keyword: "contains",
|
|
3722
3722
|
dataProp: u,
|
|
3723
|
-
dataPropType:
|
|
3723
|
+
dataPropType: pt.Type.Num,
|
|
3724
3724
|
compositeRule: !0
|
|
3725
3725
|
}, w), g();
|
|
3726
3726
|
});
|
|
@@ -3833,7 +3833,7 @@ const qo = E, Kl = V, Jl = {
|
|
|
3833
3833
|
Br.default = Yl;
|
|
3834
3834
|
var jt = {};
|
|
3835
3835
|
Object.defineProperty(jt, "__esModule", { value: !0 });
|
|
3836
|
-
const
|
|
3836
|
+
const ut = A, re = E, Zl = Q, ft = V, Xl = {
|
|
3837
3837
|
message: "must NOT have additional properties",
|
|
3838
3838
|
params: ({ params: e }) => (0, re._)`{additionalProperty: ${e.additionalProperty}}`
|
|
3839
3839
|
}, Ql = {
|
|
@@ -3848,9 +3848,9 @@ const pt = A, re = E, Zl = Q, ut = V, Xl = {
|
|
|
3848
3848
|
if (!n)
|
|
3849
3849
|
throw new Error("ajv implementation error");
|
|
3850
3850
|
const { allErrors: l, opts: d } = a;
|
|
3851
|
-
if (a.props = !0, d.removeAdditional !== "all" && (0,
|
|
3851
|
+
if (a.props = !0, d.removeAdditional !== "all" && (0, ft.alwaysValidSchema)(a, r))
|
|
3852
3852
|
return;
|
|
3853
|
-
const c = (0,
|
|
3853
|
+
const c = (0, ut.allSchemaProperties)(i.properties), f = (0, ut.allSchemaProperties)(i.patternProperties);
|
|
3854
3854
|
h(), e.ok((0, re._)`${n} === ${Zl.default.errors}`);
|
|
3855
3855
|
function h() {
|
|
3856
3856
|
t.forIn("key", o, (g) => {
|
|
@@ -3860,10 +3860,10 @@ const pt = A, re = E, Zl = Q, ut = V, Xl = {
|
|
|
3860
3860
|
function k(g) {
|
|
3861
3861
|
let u;
|
|
3862
3862
|
if (c.length > 8) {
|
|
3863
|
-
const $ = (0,
|
|
3864
|
-
u = (0,
|
|
3863
|
+
const $ = (0, ft.schemaRefOrVal)(a, i.properties, "properties");
|
|
3864
|
+
u = (0, ut.isOwnProperty)(t, $, g);
|
|
3865
3865
|
} else c.length ? u = (0, re.or)(...c.map(($) => (0, re._)`${g} === ${$}`)) : u = re.nil;
|
|
3866
|
-
return f.length && (u = (0, re.or)(u, ...f.map(($) => (0, re._)`${(0,
|
|
3866
|
+
return f.length && (u = (0, re.or)(u, ...f.map(($) => (0, re._)`${(0, ut.usePattern)(e, $)}.test(${g})`))), (0, re.not)(u);
|
|
3867
3867
|
}
|
|
3868
3868
|
function S(g) {
|
|
3869
3869
|
t.code((0, re._)`delete ${o}[${g}]`);
|
|
@@ -3877,7 +3877,7 @@ const pt = A, re = E, Zl = Q, ut = V, Xl = {
|
|
|
3877
3877
|
e.setParams({ additionalProperty: g }), e.error(), l || t.break();
|
|
3878
3878
|
return;
|
|
3879
3879
|
}
|
|
3880
|
-
if (typeof r == "object" && !(0,
|
|
3880
|
+
if (typeof r == "object" && !(0, ft.alwaysValidSchema)(a, r)) {
|
|
3881
3881
|
const u = t.name("valid");
|
|
3882
3882
|
d.removeAdditional === "failing" ? (w(g, u, !1), t.if((0, re.not)(u), () => {
|
|
3883
3883
|
e.reset(), S(g);
|
|
@@ -3888,7 +3888,7 @@ const pt = A, re = E, Zl = Q, ut = V, Xl = {
|
|
|
3888
3888
|
const C = {
|
|
3889
3889
|
keyword: "additionalProperties",
|
|
3890
3890
|
dataProp: g,
|
|
3891
|
-
dataPropType:
|
|
3891
|
+
dataPropType: ft.Type.Str
|
|
3892
3892
|
};
|
|
3893
3893
|
$ === !1 && Object.assign(C, {
|
|
3894
3894
|
compositeRule: !0,
|
|
@@ -3933,7 +3933,7 @@ const ed = oe, Vi = A, Qt = V, Di = jt, td = {
|
|
|
3933
3933
|
qr.default = td;
|
|
3934
3934
|
var Hr = {};
|
|
3935
3935
|
Object.defineProperty(Hr, "__esModule", { value: !0 });
|
|
3936
|
-
const Fi = A,
|
|
3936
|
+
const Fi = A, ht = E, ji = V, Ri = V, rd = {
|
|
3937
3937
|
keyword: "patternProperties",
|
|
3938
3938
|
type: "object",
|
|
3939
3939
|
schemaType: "object",
|
|
@@ -3942,7 +3942,7 @@ const Fi = A, ft = E, ji = V, Ri = V, rd = {
|
|
|
3942
3942
|
if (l.length === 0 || d.length === l.length && (!n.opts.unevaluated || n.props === !0))
|
|
3943
3943
|
return;
|
|
3944
3944
|
const c = a.strictSchema && !a.allowMatchingProperties && o.properties, f = t.name("valid");
|
|
3945
|
-
n.props !== !0 && !(n.props instanceof
|
|
3945
|
+
n.props !== !0 && !(n.props instanceof ht.Name) && (n.props = (0, Ri.evaluatedPropsToName)(t, n.props));
|
|
3946
3946
|
const { props: h } = n;
|
|
3947
3947
|
k();
|
|
3948
3948
|
function k() {
|
|
@@ -3955,14 +3955,14 @@ const Fi = A, ft = E, ji = V, Ri = V, rd = {
|
|
|
3955
3955
|
}
|
|
3956
3956
|
function b(w) {
|
|
3957
3957
|
t.forIn("key", i, (g) => {
|
|
3958
|
-
t.if((0,
|
|
3958
|
+
t.if((0, ht._)`${(0, Fi.usePattern)(e, w)}.test(${g})`, () => {
|
|
3959
3959
|
const u = d.includes(w);
|
|
3960
3960
|
u || e.subschema({
|
|
3961
3961
|
keyword: "patternProperties",
|
|
3962
3962
|
schemaProp: w,
|
|
3963
3963
|
dataProp: g,
|
|
3964
3964
|
dataPropType: Ri.Type.Str
|
|
3965
|
-
}, f), n.opts.unevaluated && h !== !0 ? t.assign((0,
|
|
3965
|
+
}, f), n.opts.unevaluated && h !== !0 ? t.assign((0, ht._)`${h}[${g}]`, !0) : !u && !n.allErrors && t.if((0, ht.not)(f), () => t.break());
|
|
3966
3966
|
});
|
|
3967
3967
|
});
|
|
3968
3968
|
}
|
|
@@ -4004,9 +4004,9 @@ const nd = A, sd = {
|
|
|
4004
4004
|
Ur.default = sd;
|
|
4005
4005
|
var Gr = {};
|
|
4006
4006
|
Object.defineProperty(Gr, "__esModule", { value: !0 });
|
|
4007
|
-
const
|
|
4007
|
+
const bt = E, ad = V, ld = {
|
|
4008
4008
|
message: "must match exactly one schema in oneOf",
|
|
4009
|
-
params: ({ params: e }) => (0,
|
|
4009
|
+
params: ({ params: e }) => (0, bt._)`{passingSchemas: ${e.passing}}`
|
|
4010
4010
|
}, dd = {
|
|
4011
4011
|
keyword: "oneOf",
|
|
4012
4012
|
schemaType: "array",
|
|
@@ -4027,8 +4027,8 @@ const $t = E, ad = V, ld = {
|
|
|
4027
4027
|
keyword: "oneOf",
|
|
4028
4028
|
schemaProp: h,
|
|
4029
4029
|
compositeRule: !0
|
|
4030
|
-
}, d), h > 0 && t.if((0,
|
|
4031
|
-
t.assign(a, !0), t.assign(l, h), k && e.mergeEvaluated(k,
|
|
4030
|
+
}, d), h > 0 && t.if((0, bt._)`${d} && ${a}`).assign(a, !1).assign(l, (0, bt._)`[${l}, ${h}]`).else(), t.if(d, () => {
|
|
4031
|
+
t.assign(a, !0), t.assign(l, h), k && e.mergeEvaluated(k, bt.Name);
|
|
4032
4032
|
});
|
|
4033
4033
|
});
|
|
4034
4034
|
}
|
|
@@ -4056,9 +4056,9 @@ const cd = V, pd = {
|
|
|
4056
4056
|
Kr.default = pd;
|
|
4057
4057
|
var Jr = {};
|
|
4058
4058
|
Object.defineProperty(Jr, "__esModule", { value: !0 });
|
|
4059
|
-
const
|
|
4060
|
-
message: ({ params: e }) => (0,
|
|
4061
|
-
params: ({ params: e }) => (0,
|
|
4059
|
+
const Ct = E, Ho = V, ud = {
|
|
4060
|
+
message: ({ params: e }) => (0, Ct.str)`must match "${e.ifClause}" schema`,
|
|
4061
|
+
params: ({ params: e }) => (0, Ct._)`{failingKeyword: ${e.ifClause}}`
|
|
4062
4062
|
}, fd = {
|
|
4063
4063
|
keyword: "if",
|
|
4064
4064
|
schemaType: ["object", "boolean"],
|
|
@@ -4074,7 +4074,7 @@ const Ot = E, Ho = V, ud = {
|
|
|
4074
4074
|
if (d(), e.reset(), o && n) {
|
|
4075
4075
|
const f = t.let("ifClause");
|
|
4076
4076
|
e.setParams({ ifClause: f }), t.if(l, c("then", f), c("else", f));
|
|
4077
|
-
} else o ? t.if(l, c("then")) : t.if((0,
|
|
4077
|
+
} else o ? t.if(l, c("then")) : t.if((0, Ct.not)(l), c("else"));
|
|
4078
4078
|
e.pass(a, () => e.error(!0));
|
|
4079
4079
|
function d() {
|
|
4080
4080
|
const f = e.subschema({
|
|
@@ -4088,7 +4088,7 @@ const Ot = E, Ho = V, ud = {
|
|
|
4088
4088
|
function c(f, h) {
|
|
4089
4089
|
return () => {
|
|
4090
4090
|
const k = e.subschema({ keyword: f }, l);
|
|
4091
|
-
t.assign(a, l), e.mergeValidEvaluated(k, a), h ? t.assign(h, (0,
|
|
4091
|
+
t.assign(a, l), e.mergeValidEvaluated(k, a), h ? t.assign(h, (0, Ct._)`${f}`) : e.setParams({ ifClause: f });
|
|
4092
4092
|
};
|
|
4093
4093
|
}
|
|
4094
4094
|
}
|
|
@@ -5001,7 +5001,7 @@ ci.default = Xp;
|
|
|
5001
5001
|
} }), Object.defineProperty(t, "CodeGen", { enumerable: !0, get: function() {
|
|
5002
5002
|
return c.CodeGen;
|
|
5003
5003
|
} });
|
|
5004
|
-
var f =
|
|
5004
|
+
var f = st;
|
|
5005
5005
|
Object.defineProperty(t, "ValidationError", { enumerable: !0, get: function() {
|
|
5006
5006
|
return f.default;
|
|
5007
5007
|
} });
|
|
@@ -5011,7 +5011,7 @@ ci.default = Xp;
|
|
|
5011
5011
|
} });
|
|
5012
5012
|
})(tr, tr.exports);
|
|
5013
5013
|
var Qp = tr.exports;
|
|
5014
|
-
const eu = "custom-apps", tu = "1.
|
|
5014
|
+
const eu = "custom-apps", tu = "1.7.0", Ee = {
|
|
5015
5015
|
ActionCard: {
|
|
5016
5016
|
description: "Card with icon asset, title, caption, and action buttons",
|
|
5017
5017
|
events: ["primaryAction", "secondaryAction"],
|
|
@@ -9421,6 +9421,42 @@ const eu = "custom-apps", tu = "1.5.1", Ee = {
|
|
|
9421
9421
|
},
|
|
9422
9422
|
acceptsChildren: !1
|
|
9423
9423
|
},
|
|
9424
|
+
PageContent: {
|
|
9425
|
+
description: "The standard wrapper for a page's main body area. Use PageContent for every page-level content region.",
|
|
9426
|
+
events: [],
|
|
9427
|
+
propsSchema: {
|
|
9428
|
+
$schema: "https://json-schema.org/draft/2020-12/schema",
|
|
9429
|
+
additionalProperties: !1,
|
|
9430
|
+
properties: {
|
|
9431
|
+
align: {
|
|
9432
|
+
$ref: "#/$defs/AlignItemsValue",
|
|
9433
|
+
description: "Alignment of child elements along the horizontal axis"
|
|
9434
|
+
},
|
|
9435
|
+
enableSafeArea: {
|
|
9436
|
+
description: "Whether to add all safe-area insets to the content padding",
|
|
9437
|
+
type: "boolean"
|
|
9438
|
+
},
|
|
9439
|
+
gap: {
|
|
9440
|
+
description: "Gap between child elements",
|
|
9441
|
+
type: "number"
|
|
9442
|
+
},
|
|
9443
|
+
padding: {
|
|
9444
|
+
description: "Areas padded using the space400 token",
|
|
9445
|
+
items: {
|
|
9446
|
+
enum: ["vertical", "horizontal", "top", "bottom", "all", "none"],
|
|
9447
|
+
type: "string"
|
|
9448
|
+
},
|
|
9449
|
+
type: "array"
|
|
9450
|
+
},
|
|
9451
|
+
testID: {
|
|
9452
|
+
description: "Sets the test ID on the page content container",
|
|
9453
|
+
type: "string"
|
|
9454
|
+
}
|
|
9455
|
+
},
|
|
9456
|
+
type: "object"
|
|
9457
|
+
},
|
|
9458
|
+
acceptsChildren: !0
|
|
9459
|
+
},
|
|
9424
9460
|
PageFilterHeader: {
|
|
9425
9461
|
description: "Page header with title, badge, and collapsible filter menu",
|
|
9426
9462
|
events: ["filterMenuPress"],
|
|
@@ -12727,7 +12763,7 @@ const eu = "custom-apps", tu = "1.5.1", Ee = {
|
|
|
12727
12763
|
},
|
|
12728
12764
|
Widget: {
|
|
12729
12765
|
description: "Card-like widget with a title, body content, and optional action buttons",
|
|
12730
|
-
events: ["titlePress", "primaryAction", "secondaryAction"],
|
|
12766
|
+
events: ["press", "titlePress", "primaryAction", "secondaryAction"],
|
|
12731
12767
|
propsSchema: {
|
|
12732
12768
|
$schema: "https://json-schema.org/draft/2020-12/schema",
|
|
12733
12769
|
additionalProperties: !1,
|
|
@@ -12933,7 +12969,7 @@ const eu = "custom-apps", tu = "1.5.1", Ee = {
|
|
|
12933
12969
|
},
|
|
12934
12970
|
acceptsChildren: !1
|
|
12935
12971
|
}
|
|
12936
|
-
},
|
|
12972
|
+
}, vt = {
|
|
12937
12973
|
goBack: {
|
|
12938
12974
|
description: "Mobile-specific action that goes back to the previous screen in the navigation stack.",
|
|
12939
12975
|
docs: "No params. Calls NavigationService.navigateBack(). No-ops if there is no screen to go back to.",
|
|
@@ -12986,6 +13022,24 @@ const eu = "custom-apps", tu = "1.5.1", Ee = {
|
|
|
12986
13022
|
type: "object"
|
|
12987
13023
|
}
|
|
12988
13024
|
},
|
|
13025
|
+
setState: {
|
|
13026
|
+
description: "Update SDUI state at a JSON Pointer.",
|
|
13027
|
+
docs: `This exposes the JSON Render built-in setState action in the generated catalog; no custom runtime handler is installed.
|
|
13028
|
+
The value may use $state or $computed expressions. This is useful for deriving visibility flags after a form field changes.`,
|
|
13029
|
+
paramsSchema: {
|
|
13030
|
+
$schema: "https://json-schema.org/draft/2020-12/schema",
|
|
13031
|
+
additionalProperties: !1,
|
|
13032
|
+
properties: {
|
|
13033
|
+
statePath: {
|
|
13034
|
+
pattern: "^/",
|
|
13035
|
+
type: "string"
|
|
13036
|
+
},
|
|
13037
|
+
value: {}
|
|
13038
|
+
},
|
|
13039
|
+
required: ["statePath", "value"],
|
|
13040
|
+
type: "object"
|
|
13041
|
+
}
|
|
13042
|
+
},
|
|
12989
13043
|
triggerApi: {
|
|
12990
13044
|
description: "Call a Rippling internal API endpoint and optionally store its response in SDUI state.",
|
|
12991
13045
|
docs: '`url` (required): relative Rippling path beginning with a single "/". Absolute and protocol-relative URLs are rejected.\n`method` (optional): "GET" or "POST"; defaults to "POST".\n`payload` (optional): query parameters for GET or the JSON body for POST.\n`responsePath` (optional): state path where the response body is stored.\n`errorPath` (optional): on failure, stores `{ status, message }`; a later success clears it to `null`.\n`onSuccess` / `onError` (optional): action lifecycle configuration matching the web SDUI helper.',
|
|
@@ -15112,7 +15166,7 @@ const eu = "custom-apps", tu = "1.5.1", Ee = {
|
|
|
15112
15166
|
enum: ["auto", "ltr", "rtl"]
|
|
15113
15167
|
}
|
|
15114
15168
|
};
|
|
15115
|
-
function
|
|
15169
|
+
function Uf() {
|
|
15116
15170
|
return Object.fromEntries(
|
|
15117
15171
|
Object.entries(Ee).map(([e, t]) => [
|
|
15118
15172
|
e,
|
|
@@ -15120,15 +15174,15 @@ function Hf() {
|
|
|
15120
15174
|
])
|
|
15121
15175
|
);
|
|
15122
15176
|
}
|
|
15123
|
-
function
|
|
15177
|
+
function Gf() {
|
|
15124
15178
|
return Object.fromEntries(
|
|
15125
|
-
Object.entries(
|
|
15179
|
+
Object.entries(vt).map(([e, t]) => [
|
|
15126
15180
|
e,
|
|
15127
15181
|
String(t.description ?? "")
|
|
15128
15182
|
])
|
|
15129
15183
|
);
|
|
15130
15184
|
}
|
|
15131
|
-
function
|
|
15185
|
+
function Kf() {
|
|
15132
15186
|
return Object.fromEntries(
|
|
15133
15187
|
Object.entries(rt).map(([e, t]) => [
|
|
15134
15188
|
e,
|
|
@@ -15136,13 +15190,13 @@ function Uf() {
|
|
|
15136
15190
|
])
|
|
15137
15191
|
);
|
|
15138
15192
|
}
|
|
15139
|
-
function
|
|
15193
|
+
function Jf() {
|
|
15140
15194
|
return rt;
|
|
15141
15195
|
}
|
|
15142
|
-
function
|
|
15196
|
+
function Yf() {
|
|
15143
15197
|
return Go;
|
|
15144
15198
|
}
|
|
15145
|
-
function
|
|
15199
|
+
function Zf(e) {
|
|
15146
15200
|
if (!(e in Ee))
|
|
15147
15201
|
throw new Error(
|
|
15148
15202
|
`Unknown component '${e}'. Available: ${Object.keys(Ee).join(", ")}`
|
|
@@ -15150,14 +15204,14 @@ function Jf(e) {
|
|
|
15150
15204
|
const t = { ...Ee[e] };
|
|
15151
15205
|
return delete t.example, t;
|
|
15152
15206
|
}
|
|
15153
|
-
function
|
|
15154
|
-
if (!(e in
|
|
15207
|
+
function Xf(e) {
|
|
15208
|
+
if (!(e in vt))
|
|
15155
15209
|
throw new Error(
|
|
15156
|
-
`Unknown action '${e}'. Available: ${Object.keys(
|
|
15210
|
+
`Unknown action '${e}'. Available: ${Object.keys(vt).join(", ")}`
|
|
15157
15211
|
);
|
|
15158
|
-
return
|
|
15212
|
+
return vt[e];
|
|
15159
15213
|
}
|
|
15160
|
-
function
|
|
15214
|
+
function Qf(e) {
|
|
15161
15215
|
if (!(e in rt))
|
|
15162
15216
|
throw new Error(
|
|
15163
15217
|
`Unknown function '${e}'. Available: ${Object.keys(rt).join(", ")}`
|
|
@@ -15188,7 +15242,7 @@ const ou = Yo({
|
|
|
15188
15242
|
supportsStandardDirectives: !1,
|
|
15189
15243
|
validateSchema: Ko
|
|
15190
15244
|
});
|
|
15191
|
-
function
|
|
15245
|
+
function eh(e) {
|
|
15192
15246
|
const t = [], r = e.elements ?? {}, i = e.root;
|
|
15193
15247
|
i && !(i in r) && t.push(`Root element '${i}' not found in elements map`);
|
|
15194
15248
|
for (const [o, n] of Object.entries(r)) {
|
|
@@ -15215,7 +15269,7 @@ function Xf(e) {
|
|
|
15215
15269
|
}
|
|
15216
15270
|
return t;
|
|
15217
15271
|
}
|
|
15218
|
-
function
|
|
15272
|
+
function th(e) {
|
|
15219
15273
|
return {
|
|
15220
15274
|
...Zo(e.root, e.state),
|
|
15221
15275
|
platform: "mobile",
|
|
@@ -15267,62 +15321,64 @@ export {
|
|
|
15267
15321
|
Gu as ObjectListViewCard,
|
|
15268
15322
|
Ku as PageCondensedFooter,
|
|
15269
15323
|
Ju as PageCondensedHeader,
|
|
15270
|
-
Yu as
|
|
15271
|
-
Zu as
|
|
15272
|
-
Xu as
|
|
15273
|
-
Qu as
|
|
15274
|
-
ef as
|
|
15275
|
-
tf as
|
|
15276
|
-
rf as
|
|
15277
|
-
of as
|
|
15278
|
-
nf as
|
|
15279
|
-
sf as
|
|
15280
|
-
af as
|
|
15281
|
-
lf as
|
|
15282
|
-
df as
|
|
15283
|
-
cf as
|
|
15284
|
-
pf as
|
|
15285
|
-
uf as
|
|
15286
|
-
ff as
|
|
15287
|
-
hf as
|
|
15288
|
-
mf as
|
|
15289
|
-
gf as
|
|
15290
|
-
yf as
|
|
15291
|
-
$f as
|
|
15292
|
-
bf as
|
|
15293
|
-
vf as
|
|
15294
|
-
Sf as
|
|
15295
|
-
wf as
|
|
15296
|
-
kf as
|
|
15297
|
-
Of as
|
|
15298
|
-
Cf as
|
|
15299
|
-
Pf as
|
|
15300
|
-
_f as
|
|
15301
|
-
Vf as
|
|
15302
|
-
Df as
|
|
15303
|
-
Ff as
|
|
15304
|
-
jf as
|
|
15305
|
-
|
|
15306
|
-
|
|
15307
|
-
|
|
15308
|
-
|
|
15309
|
-
|
|
15310
|
-
|
|
15311
|
-
|
|
15312
|
-
|
|
15313
|
-
|
|
15314
|
-
|
|
15315
|
-
|
|
15316
|
-
|
|
15317
|
-
|
|
15318
|
-
|
|
15319
|
-
|
|
15320
|
-
|
|
15321
|
-
|
|
15322
|
-
Tf as
|
|
15323
|
-
If as
|
|
15324
|
-
|
|
15325
|
-
|
|
15326
|
-
|
|
15324
|
+
Yu as PageContent,
|
|
15325
|
+
Zu as PageFilterHeader,
|
|
15326
|
+
Xu as PageFooter,
|
|
15327
|
+
Qu as PageHeader,
|
|
15328
|
+
ef as PageModalActionHeader,
|
|
15329
|
+
tf as Password,
|
|
15330
|
+
rf as Percentage,
|
|
15331
|
+
of as Phone,
|
|
15332
|
+
nf as Pressable,
|
|
15333
|
+
sf as ProgressIndicator,
|
|
15334
|
+
af as Radio,
|
|
15335
|
+
lf as RadioGroup,
|
|
15336
|
+
df as Search,
|
|
15337
|
+
cf as SectionHeader,
|
|
15338
|
+
pf as Select,
|
|
15339
|
+
uf as SelectChips,
|
|
15340
|
+
ff as Signature,
|
|
15341
|
+
hf as Sin,
|
|
15342
|
+
mf as Slider,
|
|
15343
|
+
gf as SliderRange,
|
|
15344
|
+
yf as SnackBar,
|
|
15345
|
+
$f as Spacer,
|
|
15346
|
+
bf as Spinner,
|
|
15347
|
+
vf as Ssn,
|
|
15348
|
+
Sf as Status,
|
|
15349
|
+
wf as StatusBar,
|
|
15350
|
+
kf as Switch,
|
|
15351
|
+
Of as Tabs,
|
|
15352
|
+
Cf as Text,
|
|
15353
|
+
Pf as Textarea,
|
|
15354
|
+
_f as Time,
|
|
15355
|
+
Vf as TimeRange,
|
|
15356
|
+
Df as Tip,
|
|
15357
|
+
Ff as VStack,
|
|
15358
|
+
jf as Widget,
|
|
15359
|
+
Rf as WorkEmail,
|
|
15360
|
+
Nf as currencyFormat,
|
|
15361
|
+
zf as currencyGetCurrencyCodeByCountryCode,
|
|
15362
|
+
Mf as currencyGetCurrencyNameByCode,
|
|
15363
|
+
Lf as currencyGetCurrencySymbol,
|
|
15364
|
+
Bf as currencyIsConvertableToCurrency,
|
|
15365
|
+
qf as currencyToMoney,
|
|
15366
|
+
Hf as dateTimeAdd,
|
|
15367
|
+
Wf as dateTimeFormat,
|
|
15368
|
+
Xf as getAction,
|
|
15369
|
+
Gf as getActions,
|
|
15370
|
+
Zf as getComponent,
|
|
15371
|
+
Uf as getComponents,
|
|
15372
|
+
Jf as getComputedFunctions,
|
|
15373
|
+
Yf as getDefs,
|
|
15374
|
+
Qf as getFunction,
|
|
15375
|
+
Kf as getFunctions,
|
|
15376
|
+
Tf as goBack,
|
|
15377
|
+
If as navigate,
|
|
15378
|
+
Ef as push,
|
|
15379
|
+
th as render,
|
|
15380
|
+
xf as setState,
|
|
15381
|
+
Af as triggerApi,
|
|
15382
|
+
eh as validate
|
|
15327
15383
|
};
|
|
15328
15384
|
//# sourceMappingURL=index.js.map
|