@rippling/pebble-sdui-web 0.4.2 → 0.6.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/catalogs/custom-apps/action-params.d.ts +0 -5
- package/dist/catalogs/custom-apps/catalog.d.ts +1 -1
- package/dist/catalogs/custom-apps/component-props.d.ts +605 -176
- package/dist/catalogs/custom-apps/index.cjs +3 -3
- package/dist/catalogs/custom-apps/index.cjs.map +1 -1
- package/dist/catalogs/custom-apps/index.d.ts +1 -1
- package/dist/catalogs/custom-apps/index.js +212 -185
- package/dist/catalogs/custom-apps/index.js.map +1 -1
- package/dist/docs/typescript/web/catalogs/custom-apps/actions.md +15 -21
- package/dist/docs/typescript/web/catalogs/custom-apps/components.md +880 -878
- package/dist/docs/typescript/web/catalogs/custom-apps/definitions.md +655 -149
- package/dist/docs/typescript/web/catalogs/custom-apps/readme.md +2 -2
- package/dist/docs/typescript/web/catalogs/custom-apps/types.md +1055 -104
- package/package.json +1 -1
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { buildNode as
|
|
1
|
+
import { buildNode as P } from "../../core/component-utils.js";
|
|
2
2
|
import { buildAction as _e } from "../../core/action-utils.js";
|
|
3
3
|
import { renderElementTree as Ui } from "../../core/spec.js";
|
|
4
|
-
const Ia = (e) =>
|
|
4
|
+
const Ia = (e) => P("ActionCard", e), Ca = (e) => P("AiIcon", e), Ta = (e) => P("Alert", e), Da = (e) => P("Animation", e), Pa = (e) => P("ApiError", e), Ea = (e) => P("AppGroupLoader", e), _a = (e) => P("AppGroupSelect", e), Ra = (e) => P("AppNavBar", e), Aa = (e) => P("AtomsSeparator", e), Na = (e) => P("Avatar", e), xa = (e) => P("AvatarList", e), ka = (e) => P("Badge", e), La = (e) => P("Box", e), Ma = (e) => P("BrandBadge", e), $a = (e) => P("Breadcrumb", e), ja = (e) => P("Button", e), qa = (e) => P("ButtonGroup", e), Fa = (e) => P("Calendar", e), Ua = (e) => P("Card", e), Va = (e) => P("CardGroup", e), Ba = (e) => P("Carousel", e), Ha = (e) => P("ChartLoader", e), za = (e) => P("Checkbox", e), Wa = (e) => P("CheckboxGroup", e), Ga = (e) => P("CheckList", e), Xa = (e) => P("Chip", e), Ka = (e) => P("ChipGroup", e), Ya = (e) => P("Circle", e), Ja = (e) => P("ColorPicker", e), Qa = (e) => P("ContentLoader", e), Za = (e) => P("CountDown", e), es = (e) => P("Country", e), ts = (e) => P("Currency", e), rs = (e) => P("Date", e), is = (e) => P("DateInlineMulti", e), os = (e) => P("DateRange", e), ns = (e) => P("DaySelector", e), as = (e) => P("DistributionBar", e), ss = (e) => P("Divider", e), ps = (e) => P("DraggableList", e), cs = (e) => P("Drawer", e), ls = (e) => P("Dropdown", e), ds = (e) => P("Email", e), us = (e) => P("EmojiPicker", e), ys = (e) => P("ExpansionPanel", e), hs = (e) => P("ExpansionPanelGroup", e), ms = (e) => P("Field", e), fs = (e) => P("File", e), gs = (e) => P("FileDrop", e), bs = (e) => P("FloatingButton", e), vs = (e) => P("Form", e), Ss = (e) => P("FormCheckbox", e), ws = (e) => P("FormCheckboxGroup", e), Os = (e) => P("FormContent", e), Is = (e) => P("FormCurrency", e), Cs = (e) => P("FormDate", e), Ts = (e) => P("FormDateRange", e), Ds = (e) => P("FormDaySelector", e), Ps = (e) => P("FormEmail", e), Es = (e) => P("FormFile", e), _s = (e) => P("FormFileDrop", e), Rs = (e) => P("FormGroup", e), As = (e) => P("FormGroupHeader", e), Ns = (e) => P("FormHidden", e), xs = (e) => P("FormInlineGroup", e), ks = (e) => P("FormInputGroup", e), Ls = (e) => P("FormMasker", e), Ms = (e) => P("FormNumber", e), $s = (e) => P("FormPassword", e), js = (e) => P("FormPercentage", e), qs = (e) => P("FormPhone", e), Fs = (e) => P("FormRadio", e), Us = (e) => P("FormSegmentedControl", e), Vs = (e) => P("FormSelect", e), Bs = (e) => P("FormSelectableGroup", e), Hs = (e) => P("FormSignature", e), zs = (e) => P("FormSin", e), Ws = (e) => P("FormSlider", e), Gs = (e) => P("FormSsn", e), Xs = (e) => P("FormSurvey", e), Ks = (e) => P("FormSwitch", e), Ys = (e) => P("FormText", e), Js = (e) => P("FormTextarea", e), Qs = (e) => P("FormTextAutoSuggest", e), Zs = (e) => P("FormTime", e), ep = (e) => P("FormTimezone", e), tp = (e) => P("FormTree", e), rp = (e) => P("FormTreeSelect", e), ip = (e) => P("FormWorkEmail", e), op = (e) => P("Grid", e), np = (e) => P("Heading", e), ap = (e) => P("Hidden", e), sp = (e) => P("HStack", e), pp = (e) => P("Icon", e), cp = (e) => P("IconButton", e), lp = (e) => P("Image", e), dp = (e) => P("ImageViewer", e), up = (e) => P("InputGroup", e), yp = (e) => P("ItemNavigator", e), hp = (e) => P("Label", e), mp = (e) => P("LabelGroup", e), fp = (e) => P("Layout", e), gp = (e) => P("LayoutCard", e), bp = (e) => P("Link", e), vp = (e) => P("ListItem", e), Sp = (e) => P("LoaderCard", e), wp = (e) => P("LocationCard", e), Op = (e) => P("LottiePlayer", e), Ip = (e) => P("Masker", e), Cp = (e) => P("MenuList", e), Tp = (e) => P("Modal", e), Dp = (e) => P("ModalCloseButton", e), Pp = (e) => P("ModalFooter", e), Ep = (e) => P("NestedList", e), _p = (e) => P("Number", e), Rp = (e) => P("ObjectListView", e), Ap = (e) => P("ObjectUI", e), Np = (e) => P("ObjectUIContent", e), xp = (e) => P("ObjectUIHeader", e), kp = (e) => P("ObjectUIStats", e), Lp = (e) => P("ObjectUITemplate", e), Mp = (e) => P("PageAppLogo", e), $p = (e) => P("PageContent", e), jp = (e) => P("PageFooter", e), qp = (e) => P("PageHeader", e), Fp = (e) => P("Paginate", e), Up = (e) => P("PaginateList", e), Vp = (e) => P("Pane", e), Bp = (e) => P("Password", e), Hp = (e) => P("Percentage", e), zp = (e) => P("Phone", e), Wp = (e) => P("ProgressBar", e), Gp = (e) => P("ProgressSteps", e), Xp = (e) => P("Radio", e), Kp = (e) => P("RangeSlider", e), Yp = (e) => P("ReportLoader", e), Jp = (e) => P("ReportShareLoader", e), Qp = (e) => P("ReportViewerLoader", e), Zp = (e) => P("ResizableBoard", e), ec = (e) => P("Responsive", e), tc = (e) => P("SegmentedControl", e), rc = (e) => P("Select", e), ic = (e) => P("SelectableGroup", e), oc = (e) => P("SelectableMenu", e), nc = (e) => P("SettingsLoader", e), ac = (e) => P("ShowMore", e), sc = (e) => P("Signature", e), pc = (e) => P("Sin", e), cc = (e) => P("Skeleton", e), lc = (e) => P("Slider", e), dc = (e) => P("SnackBar", e), uc = (e) => P("Spinner", e), yc = (e) => P("SplitButton", e), hc = (e) => P("SplitPane", e), mc = (e) => P("Ssn", e), fc = (e) => P("Status", e), gc = (e) => P("Stepper", e), bc = (e) => P("SupportButton", e), vc = (e) => P("Survey", e), Sc = (e) => P("Switch", e), wc = (e) => P("Tab", e), Oc = (e) => P("TableBasic", e), Ic = (e) => P("Text", e), Cc = (e) => P("Textarea", e), Tc = (e) => P("TextAutoSuggest", e), Dc = (e) => P("TextClip", e), Pc = (e) => P("TextInput", e), Ec = (e) => P("TextSnippet", e), _c = (e) => P("Time", e), Rc = (e) => P("TimeRange", e), Ac = (e) => P("Timezone", e), Nc = (e) => P("Tip", e), xc = (e) => P("TitleCaption", e), kc = (e) => P("ToggleableArrow", e), Lc = (e) => P("Tree", e), Mc = (e) => P("TreeSelect", e), $c = (e) => P("Video", e), jc = (e) => P("VStack", e), qc = (e) => P("WorkEmail", e), Fc = (e, t) => _e("navigate", e, t), Uc = (e, t) => _e("pushState", e, t), Vc = (e, t) => _e("removeState", e, t), Bc = (e, t) => _e("setState", e, t), Hc = (e, t) => _e("showNotification", e, t), zc = (e, t) => _e("triggerFunction", e, t);
|
|
5
5
|
var Le = { exports: {} }, Ut = {}, me = {}, Se = {}, Vt = {}, Bt = {}, Ht = {}, or;
|
|
6
6
|
function At() {
|
|
7
7
|
return or || (or = 1, (function(e) {
|
|
@@ -1785,172 +1785,172 @@ function Lt() {
|
|
|
1785
1785
|
if (Or) return me;
|
|
1786
1786
|
Or = 1, Object.defineProperty(me, "__esModule", { value: !0 }), me.getData = me.KeywordCxt = me.validateFunctionCode = void 0;
|
|
1787
1787
|
const e = /* @__PURE__ */ Vi(), t = /* @__PURE__ */ Nt(), b = /* @__PURE__ */ Ni(), l = /* @__PURE__ */ Nt(), v = /* @__PURE__ */ Bi(), i = /* @__PURE__ */ Hi(), s = /* @__PURE__ */ zi(), a = /* @__PURE__ */ W(), d = /* @__PURE__ */ ye(), g = /* @__PURE__ */ kt(), y = /* @__PURE__ */ K(), C = /* @__PURE__ */ xt();
|
|
1788
|
-
function I(
|
|
1789
|
-
if (r(
|
|
1790
|
-
u(
|
|
1788
|
+
function I(E) {
|
|
1789
|
+
if (r(E) && (c(E), O(E))) {
|
|
1790
|
+
u(E);
|
|
1791
1791
|
return;
|
|
1792
1792
|
}
|
|
1793
|
-
w(
|
|
1793
|
+
w(E, () => (0, e.topBoolOrEmptySchema)(E));
|
|
1794
1794
|
}
|
|
1795
1795
|
me.validateFunctionCode = I;
|
|
1796
|
-
function w({ gen:
|
|
1797
|
-
B.code.es5 ?
|
|
1798
|
-
|
|
1799
|
-
}) :
|
|
1796
|
+
function w({ gen: E, validateName: A, schema: M, schemaEnv: F, opts: B }, X) {
|
|
1797
|
+
B.code.es5 ? E.func(A, (0, a._)`${d.default.data}, ${d.default.valCxt}`, F.$async, () => {
|
|
1798
|
+
E.code((0, a._)`"use strict"; ${n(M, B)}`), T(E, B), E.code(X);
|
|
1799
|
+
}) : E.func(A, (0, a._)`${d.default.data}, ${D(B)}`, F.$async, () => E.code(n(M, B)).code(X));
|
|
1800
1800
|
}
|
|
1801
|
-
function D(
|
|
1802
|
-
return (0, a._)`{${d.default.instancePath}="", ${d.default.parentData}, ${d.default.parentDataProperty}, ${d.default.rootData}=${d.default.data}${
|
|
1801
|
+
function D(E) {
|
|
1802
|
+
return (0, a._)`{${d.default.instancePath}="", ${d.default.parentData}, ${d.default.parentDataProperty}, ${d.default.rootData}=${d.default.data}${E.dynamicRef ? (0, a._)`, ${d.default.dynamicAnchors}={}` : a.nil}}={}`;
|
|
1803
1803
|
}
|
|
1804
|
-
function T(
|
|
1805
|
-
|
|
1806
|
-
|
|
1804
|
+
function T(E, A) {
|
|
1805
|
+
E.if(d.default.valCxt, () => {
|
|
1806
|
+
E.var(d.default.instancePath, (0, a._)`${d.default.valCxt}.${d.default.instancePath}`), E.var(d.default.parentData, (0, a._)`${d.default.valCxt}.${d.default.parentData}`), E.var(d.default.parentDataProperty, (0, a._)`${d.default.valCxt}.${d.default.parentDataProperty}`), E.var(d.default.rootData, (0, a._)`${d.default.valCxt}.${d.default.rootData}`), A.dynamicRef && E.var(d.default.dynamicAnchors, (0, a._)`${d.default.valCxt}.${d.default.dynamicAnchors}`);
|
|
1807
1807
|
}, () => {
|
|
1808
|
-
|
|
1808
|
+
E.var(d.default.instancePath, (0, a._)`""`), E.var(d.default.parentData, (0, a._)`undefined`), E.var(d.default.parentDataProperty, (0, a._)`undefined`), E.var(d.default.rootData, d.default.data), A.dynamicRef && E.var(d.default.dynamicAnchors, (0, a._)`{}`);
|
|
1809
1809
|
});
|
|
1810
1810
|
}
|
|
1811
|
-
function u(
|
|
1812
|
-
const { schema: A, opts: M, gen: F } =
|
|
1813
|
-
w(
|
|
1814
|
-
M.$comment && A.$comment && U(
|
|
1811
|
+
function u(E) {
|
|
1812
|
+
const { schema: A, opts: M, gen: F } = E;
|
|
1813
|
+
w(E, () => {
|
|
1814
|
+
M.$comment && A.$comment && U(E), k(E), F.let(d.default.vErrors, null), F.let(d.default.errors, 0), M.unevaluated && h(E), m(E), z(E);
|
|
1815
1815
|
});
|
|
1816
1816
|
}
|
|
1817
|
-
function h(
|
|
1818
|
-
const { gen: A, validateName: M } =
|
|
1819
|
-
|
|
1817
|
+
function h(E) {
|
|
1818
|
+
const { gen: A, validateName: M } = E;
|
|
1819
|
+
E.evaluated = A.const("evaluated", (0, a._)`${M}.evaluated`), A.if((0, a._)`${E.evaluated}.dynamicProps`, () => A.assign((0, a._)`${E.evaluated}.props`, (0, a._)`undefined`)), A.if((0, a._)`${E.evaluated}.dynamicItems`, () => A.assign((0, a._)`${E.evaluated}.items`, (0, a._)`undefined`));
|
|
1820
1820
|
}
|
|
1821
|
-
function n(
|
|
1822
|
-
const M = typeof
|
|
1821
|
+
function n(E, A) {
|
|
1822
|
+
const M = typeof E == "object" && E[A.schemaId];
|
|
1823
1823
|
return M && (A.code.source || A.code.process) ? (0, a._)`/*# sourceURL=${M} */` : a.nil;
|
|
1824
1824
|
}
|
|
1825
|
-
function f(
|
|
1826
|
-
if (r(
|
|
1827
|
-
o(
|
|
1825
|
+
function f(E, A) {
|
|
1826
|
+
if (r(E) && (c(E), O(E))) {
|
|
1827
|
+
o(E, A);
|
|
1828
1828
|
return;
|
|
1829
1829
|
}
|
|
1830
|
-
(0, e.boolOrEmptySchema)(
|
|
1830
|
+
(0, e.boolOrEmptySchema)(E, A);
|
|
1831
1831
|
}
|
|
1832
|
-
function O({ schema:
|
|
1833
|
-
if (typeof
|
|
1834
|
-
return !
|
|
1835
|
-
for (const M in
|
|
1832
|
+
function O({ schema: E, self: A }) {
|
|
1833
|
+
if (typeof E == "boolean")
|
|
1834
|
+
return !E;
|
|
1835
|
+
for (const M in E)
|
|
1836
1836
|
if (A.RULES.all[M])
|
|
1837
1837
|
return !0;
|
|
1838
1838
|
return !1;
|
|
1839
1839
|
}
|
|
1840
|
-
function r(
|
|
1841
|
-
return typeof
|
|
1840
|
+
function r(E) {
|
|
1841
|
+
return typeof E.schema != "boolean";
|
|
1842
1842
|
}
|
|
1843
|
-
function o(
|
|
1844
|
-
const { schema: M, gen: F, opts: B } =
|
|
1845
|
-
B.$comment && M.$comment && U(
|
|
1843
|
+
function o(E, A) {
|
|
1844
|
+
const { schema: M, gen: F, opts: B } = E;
|
|
1845
|
+
B.$comment && M.$comment && U(E), N(E), j(E);
|
|
1846
1846
|
const X = F.const("_errs", d.default.errors);
|
|
1847
|
-
m(
|
|
1847
|
+
m(E, X), F.var(A, (0, a._)`${X} === ${d.default.errors}`);
|
|
1848
1848
|
}
|
|
1849
|
-
function c(
|
|
1850
|
-
(0, y.checkUnknownRules)(
|
|
1849
|
+
function c(E) {
|
|
1850
|
+
(0, y.checkUnknownRules)(E), _(E);
|
|
1851
1851
|
}
|
|
1852
|
-
function m(
|
|
1853
|
-
if (
|
|
1854
|
-
return te(
|
|
1855
|
-
const M = (0, t.getSchemaTypes)(
|
|
1856
|
-
te(
|
|
1852
|
+
function m(E, A) {
|
|
1853
|
+
if (E.opts.jtd)
|
|
1854
|
+
return te(E, [], !1, A);
|
|
1855
|
+
const M = (0, t.getSchemaTypes)(E.schema), F = (0, t.coerceAndCheckDataType)(E, M);
|
|
1856
|
+
te(E, M, !F, A);
|
|
1857
1857
|
}
|
|
1858
|
-
function _(
|
|
1859
|
-
const { schema: A, errSchemaPath: M, opts: F, self: B } =
|
|
1858
|
+
function _(E) {
|
|
1859
|
+
const { schema: A, errSchemaPath: M, opts: F, self: B } = E;
|
|
1860
1860
|
A.$ref && F.ignoreKeywordsWithRef && (0, y.schemaHasRulesButRef)(A, B.RULES) && B.logger.warn(`$ref: keywords ignored in schema at path "${M}"`);
|
|
1861
1861
|
}
|
|
1862
|
-
function k(
|
|
1863
|
-
const { schema: A, opts: M } =
|
|
1864
|
-
A.default !== void 0 && M.useDefaults && M.strictSchema && (0, y.checkStrictMode)(
|
|
1862
|
+
function k(E) {
|
|
1863
|
+
const { schema: A, opts: M } = E;
|
|
1864
|
+
A.default !== void 0 && M.useDefaults && M.strictSchema && (0, y.checkStrictMode)(E, "default is ignored in the schema root");
|
|
1865
1865
|
}
|
|
1866
|
-
function N(
|
|
1867
|
-
const A =
|
|
1868
|
-
A && (
|
|
1866
|
+
function N(E) {
|
|
1867
|
+
const A = E.schema[E.opts.schemaId];
|
|
1868
|
+
A && (E.baseId = (0, g.resolveUrl)(E.opts.uriResolver, E.baseId, A));
|
|
1869
1869
|
}
|
|
1870
|
-
function j(
|
|
1871
|
-
if (
|
|
1870
|
+
function j(E) {
|
|
1871
|
+
if (E.schema.$async && !E.schemaEnv.$async)
|
|
1872
1872
|
throw new Error("async schema in sync schema");
|
|
1873
1873
|
}
|
|
1874
|
-
function U({ gen:
|
|
1874
|
+
function U({ gen: E, schemaEnv: A, schema: M, errSchemaPath: F, opts: B }) {
|
|
1875
1875
|
const X = M.$comment;
|
|
1876
1876
|
if (B.$comment === !0)
|
|
1877
|
-
|
|
1877
|
+
E.code((0, a._)`${d.default.self}.logger.log(${X})`);
|
|
1878
1878
|
else if (typeof B.$comment == "function") {
|
|
1879
|
-
const re = (0, a.str)`${F}/$comment`, de =
|
|
1880
|
-
|
|
1879
|
+
const re = (0, a.str)`${F}/$comment`, de = E.scopeValue("root", { ref: A.root });
|
|
1880
|
+
E.code((0, a._)`${d.default.self}.opts.$comment(${X}, ${re}, ${de}.schema)`);
|
|
1881
1881
|
}
|
|
1882
1882
|
}
|
|
1883
|
-
function z(
|
|
1884
|
-
const { gen: A, schemaEnv: M, validateName: F, ValidationError: B, opts: X } =
|
|
1885
|
-
M.$async ? A.if((0, a._)`${d.default.errors} === 0`, () => A.return(d.default.data), () => A.throw((0, a._)`new ${B}(${d.default.vErrors})`)) : (A.assign((0, a._)`${F}.errors`, d.default.vErrors), X.unevaluated && Q(
|
|
1883
|
+
function z(E) {
|
|
1884
|
+
const { gen: A, schemaEnv: M, validateName: F, ValidationError: B, opts: X } = E;
|
|
1885
|
+
M.$async ? A.if((0, a._)`${d.default.errors} === 0`, () => A.return(d.default.data), () => A.throw((0, a._)`new ${B}(${d.default.vErrors})`)) : (A.assign((0, a._)`${F}.errors`, d.default.vErrors), X.unevaluated && Q(E), A.return((0, a._)`${d.default.errors} === 0`));
|
|
1886
1886
|
}
|
|
1887
|
-
function Q({ gen:
|
|
1888
|
-
M instanceof a.Name &&
|
|
1887
|
+
function Q({ gen: E, evaluated: A, props: M, items: F }) {
|
|
1888
|
+
M instanceof a.Name && E.assign((0, a._)`${A}.props`, M), F instanceof a.Name && E.assign((0, a._)`${A}.items`, F);
|
|
1889
1889
|
}
|
|
1890
|
-
function te(
|
|
1891
|
-
const { gen: B, schema: X, data: re, allErrors: de, opts: ae, self: se } =
|
|
1890
|
+
function te(E, A, M, F) {
|
|
1891
|
+
const { gen: B, schema: X, data: re, allErrors: de, opts: ae, self: se } = E, { RULES: ie } = se;
|
|
1892
1892
|
if (X.$ref && (ae.ignoreKeywordsWithRef || !(0, y.schemaHasRulesButRef)(X, ie))) {
|
|
1893
|
-
B.block(() => V(
|
|
1893
|
+
B.block(() => V(E, "$ref", ie.all.$ref.definition));
|
|
1894
1894
|
return;
|
|
1895
1895
|
}
|
|
1896
|
-
ae.jtd || Z(
|
|
1896
|
+
ae.jtd || Z(E, A), B.block(() => {
|
|
1897
1897
|
for (const le of ie.rules)
|
|
1898
1898
|
Ie(le);
|
|
1899
1899
|
Ie(ie.post);
|
|
1900
1900
|
});
|
|
1901
1901
|
function Ie(le) {
|
|
1902
|
-
(0, b.shouldUseGroup)(X, le) && (le.type ? (B.if((0, l.checkDataType)(le.type, re, ae.strictNumbers)), ce(
|
|
1902
|
+
(0, b.shouldUseGroup)(X, le) && (le.type ? (B.if((0, l.checkDataType)(le.type, re, ae.strictNumbers)), ce(E, le), A.length === 1 && A[0] === le.type && M && (B.else(), (0, l.reportTypeError)(E)), B.endIf()) : ce(E, le), de || B.if((0, a._)`${d.default.errors} === ${F || 0}`));
|
|
1903
1903
|
}
|
|
1904
1904
|
}
|
|
1905
|
-
function ce(
|
|
1906
|
-
const { gen: M, schema: F, opts: { useDefaults: B } } =
|
|
1907
|
-
B && (0, v.assignDefaults)(
|
|
1905
|
+
function ce(E, A) {
|
|
1906
|
+
const { gen: M, schema: F, opts: { useDefaults: B } } = E;
|
|
1907
|
+
B && (0, v.assignDefaults)(E, A.type), M.block(() => {
|
|
1908
1908
|
for (const X of A.rules)
|
|
1909
|
-
(0, b.shouldUseRule)(F, X) && V(
|
|
1909
|
+
(0, b.shouldUseRule)(F, X) && V(E, X.keyword, X.definition, A.type);
|
|
1910
1910
|
});
|
|
1911
1911
|
}
|
|
1912
|
-
function Z(
|
|
1913
|
-
|
|
1912
|
+
function Z(E, A) {
|
|
1913
|
+
E.schemaEnv.meta || !E.opts.strictTypes || (be(E, A), E.opts.allowUnionTypes || q(E, A), R(E, E.dataTypes));
|
|
1914
1914
|
}
|
|
1915
|
-
function be(
|
|
1915
|
+
function be(E, A) {
|
|
1916
1916
|
if (A.length) {
|
|
1917
|
-
if (!
|
|
1918
|
-
|
|
1917
|
+
if (!E.dataTypes.length) {
|
|
1918
|
+
E.dataTypes = A;
|
|
1919
1919
|
return;
|
|
1920
1920
|
}
|
|
1921
1921
|
A.forEach((M) => {
|
|
1922
|
-
x(
|
|
1923
|
-
}), p(
|
|
1922
|
+
x(E.dataTypes, M) || S(E, `type "${M}" not allowed by context "${E.dataTypes.join(",")}"`);
|
|
1923
|
+
}), p(E, A);
|
|
1924
1924
|
}
|
|
1925
1925
|
}
|
|
1926
|
-
function q(
|
|
1927
|
-
A.length > 1 && !(A.length === 2 && A.includes("null")) && S(
|
|
1926
|
+
function q(E, A) {
|
|
1927
|
+
A.length > 1 && !(A.length === 2 && A.includes("null")) && S(E, "use allowUnionTypes to allow union type keyword");
|
|
1928
1928
|
}
|
|
1929
|
-
function R(
|
|
1930
|
-
const M =
|
|
1929
|
+
function R(E, A) {
|
|
1930
|
+
const M = E.self.RULES.all;
|
|
1931
1931
|
for (const F in M) {
|
|
1932
1932
|
const B = M[F];
|
|
1933
|
-
if (typeof B == "object" && (0, b.shouldUseRule)(
|
|
1933
|
+
if (typeof B == "object" && (0, b.shouldUseRule)(E.schema, B)) {
|
|
1934
1934
|
const { type: X } = B.definition;
|
|
1935
|
-
X.length && !X.some((re) => $(A, re)) && S(
|
|
1935
|
+
X.length && !X.some((re) => $(A, re)) && S(E, `missing type "${X.join(",")}" for keyword "${F}"`);
|
|
1936
1936
|
}
|
|
1937
1937
|
}
|
|
1938
1938
|
}
|
|
1939
|
-
function $(
|
|
1940
|
-
return
|
|
1939
|
+
function $(E, A) {
|
|
1940
|
+
return E.includes(A) || A === "number" && E.includes("integer");
|
|
1941
1941
|
}
|
|
1942
|
-
function x(
|
|
1943
|
-
return
|
|
1942
|
+
function x(E, A) {
|
|
1943
|
+
return E.includes(A) || A === "integer" && E.includes("number");
|
|
1944
1944
|
}
|
|
1945
|
-
function p(
|
|
1945
|
+
function p(E, A) {
|
|
1946
1946
|
const M = [];
|
|
1947
|
-
for (const F of
|
|
1947
|
+
for (const F of E.dataTypes)
|
|
1948
1948
|
x(A, F) ? M.push(F) : A.includes("integer") && F === "number" && M.push("integer");
|
|
1949
|
-
|
|
1949
|
+
E.dataTypes = M;
|
|
1950
1950
|
}
|
|
1951
|
-
function S(
|
|
1952
|
-
const M =
|
|
1953
|
-
A += ` at "${M}" (strictTypes)`, (0, y.checkStrictMode)(
|
|
1951
|
+
function S(E, A) {
|
|
1952
|
+
const M = E.schemaEnv.baseId + E.errSchemaPath;
|
|
1953
|
+
A += ` at "${M}" (strictTypes)`, (0, y.checkStrictMode)(E, A, E.opts.strictTypes);
|
|
1954
1954
|
}
|
|
1955
1955
|
class L {
|
|
1956
1956
|
constructor(A, M, F) {
|
|
@@ -2054,23 +2054,23 @@ function Lt() {
|
|
|
2054
2054
|
}
|
|
2055
2055
|
}
|
|
2056
2056
|
me.KeywordCxt = L;
|
|
2057
|
-
function V(
|
|
2058
|
-
const B = new L(
|
|
2057
|
+
function V(E, A, M, F) {
|
|
2058
|
+
const B = new L(E, M, A);
|
|
2059
2059
|
"code" in M ? M.code(B, F) : B.$data && M.validate ? (0, i.funcKeywordCode)(B, M) : "macro" in M ? (0, i.macroKeywordCode)(B, M) : (M.compile || M.validate) && (0, i.funcKeywordCode)(B, M);
|
|
2060
2060
|
}
|
|
2061
2061
|
const H = /^\/(?:[^~]|~0|~1)*$/, J = /^([0-9]+)(#|\/(?:[^~]|~0|~1)*)?$/;
|
|
2062
|
-
function Y(
|
|
2062
|
+
function Y(E, { dataLevel: A, dataNames: M, dataPathArr: F }) {
|
|
2063
2063
|
let B, X;
|
|
2064
|
-
if (
|
|
2064
|
+
if (E === "")
|
|
2065
2065
|
return d.default.rootData;
|
|
2066
|
-
if (
|
|
2067
|
-
if (!H.test(
|
|
2068
|
-
throw new Error(`Invalid JSON-pointer: ${
|
|
2069
|
-
B =
|
|
2066
|
+
if (E[0] === "/") {
|
|
2067
|
+
if (!H.test(E))
|
|
2068
|
+
throw new Error(`Invalid JSON-pointer: ${E}`);
|
|
2069
|
+
B = E, X = d.default.rootData;
|
|
2070
2070
|
} else {
|
|
2071
|
-
const se = J.exec(
|
|
2071
|
+
const se = J.exec(E);
|
|
2072
2072
|
if (!se)
|
|
2073
|
-
throw new Error(`Invalid JSON-pointer: ${
|
|
2073
|
+
throw new Error(`Invalid JSON-pointer: ${E}`);
|
|
2074
2074
|
const ie = +se[1];
|
|
2075
2075
|
if (B = se[2], B === "#") {
|
|
2076
2076
|
if (ie >= A)
|
|
@@ -2497,10 +2497,10 @@ function ki() {
|
|
|
2497
2497
|
stringArrayToHexStripped: i
|
|
2498
2498
|
}, Xt;
|
|
2499
2499
|
}
|
|
2500
|
-
var Kt,
|
|
2500
|
+
var Kt, Pr;
|
|
2501
2501
|
function eo() {
|
|
2502
|
-
if (
|
|
2503
|
-
|
|
2502
|
+
if (Pr) return Kt;
|
|
2503
|
+
Pr = 1;
|
|
2504
2504
|
const { isUUID: e } = ki(), t = /([\da-z][\d\-a-z]{0,31}):((?:[\w!$'()*+,\-.:;=@]|%[\da-f]{2})+)/iu, b = (
|
|
2505
2505
|
/** @type {const} */
|
|
2506
2506
|
[
|
|
@@ -2643,10 +2643,10 @@ function eo() {
|
|
|
2643
2643
|
getSchemeHandler: O
|
|
2644
2644
|
}, Kt;
|
|
2645
2645
|
}
|
|
2646
|
-
var
|
|
2646
|
+
var Er;
|
|
2647
2647
|
function to() {
|
|
2648
|
-
if (
|
|
2649
|
-
|
|
2648
|
+
if (Er) return Ne.exports;
|
|
2649
|
+
Er = 1;
|
|
2650
2650
|
const { normalizeIPv6: e, removeDotSegments: t, recomposeAuthority: b, normalizePercentEncoding: l, normalizePathEncoding: v, escapePreservingEscapes: i, reescapeHostDelimiters: s, isIPv4: a, nonSimpleDomain: d } = ki(), { SCHEMES: g, getSchemeHandler: y } = eo();
|
|
2651
2651
|
function C(m, _) {
|
|
2652
2652
|
return typeof m == "string" ? m = /** @type {T} */
|
|
@@ -2837,13 +2837,13 @@ function io() {
|
|
|
2837
2837
|
unicode: '"minLength"/"maxLength" account for unicode characters by default.'
|
|
2838
2838
|
}, n = 200;
|
|
2839
2839
|
function f(q) {
|
|
2840
|
-
var R, $, x, p, S, L, V, H, J, Y,
|
|
2840
|
+
var R, $, x, p, S, L, V, H, J, Y, E, A, M, F, B, X, re, de, ae, se, ie, Ie, le, jt, qt;
|
|
2841
2841
|
const Re = q.strict, Ft = (R = q.code) === null || R === void 0 ? void 0 : R.optimize, rr = Ft === !0 || Ft === void 0 ? 1 : Ft || 0, ir = (x = ($ = q.code) === null || $ === void 0 ? void 0 : $.regExp) !== null && x !== void 0 ? x : w, Fi = (p = q.uriResolver) !== null && p !== void 0 ? p : I.default;
|
|
2842
2842
|
return {
|
|
2843
2843
|
strictSchema: (L = (S = q.strictSchema) !== null && S !== void 0 ? S : Re) !== null && L !== void 0 ? L : !0,
|
|
2844
2844
|
strictNumbers: (H = (V = q.strictNumbers) !== null && V !== void 0 ? V : Re) !== null && H !== void 0 ? H : !0,
|
|
2845
2845
|
strictTypes: (Y = (J = q.strictTypes) !== null && J !== void 0 ? J : Re) !== null && Y !== void 0 ? Y : "log",
|
|
2846
|
-
strictTuples: (A = (
|
|
2846
|
+
strictTuples: (A = (E = q.strictTuples) !== null && E !== void 0 ? E : Re) !== null && A !== void 0 ? A : "log",
|
|
2847
2847
|
strictRequired: (F = (M = q.strictRequired) !== null && M !== void 0 ? M : Re) !== null && F !== void 0 ? F : !1,
|
|
2848
2848
|
code: q.code ? { ...q.code, optimize: rr, regExp: ir } : { optimize: rr, regExp: ir },
|
|
2849
2849
|
loopRequired: (B = q.loopRequired) !== null && B !== void 0 ? B : n,
|
|
@@ -2899,9 +2899,9 @@ function io() {
|
|
|
2899
2899
|
throw new Error("options.loadSchema should be a function");
|
|
2900
2900
|
const { loadSchema: x } = this.opts;
|
|
2901
2901
|
return p.call(this, R, $);
|
|
2902
|
-
async function p(Y,
|
|
2902
|
+
async function p(Y, E) {
|
|
2903
2903
|
await S.call(this, Y.$schema);
|
|
2904
|
-
const A = this._addSchema(Y,
|
|
2904
|
+
const A = this._addSchema(Y, E);
|
|
2905
2905
|
return A.validate || L.call(this, A);
|
|
2906
2906
|
}
|
|
2907
2907
|
async function S(Y) {
|
|
@@ -2910,24 +2910,24 @@ function io() {
|
|
|
2910
2910
|
async function L(Y) {
|
|
2911
2911
|
try {
|
|
2912
2912
|
return this._compileSchemaEnv(Y);
|
|
2913
|
-
} catch (
|
|
2914
|
-
if (!(
|
|
2915
|
-
throw
|
|
2916
|
-
return V.call(this,
|
|
2913
|
+
} catch (E) {
|
|
2914
|
+
if (!(E instanceof v.default))
|
|
2915
|
+
throw E;
|
|
2916
|
+
return V.call(this, E), await H.call(this, E.missingSchema), L.call(this, Y);
|
|
2917
2917
|
}
|
|
2918
2918
|
}
|
|
2919
|
-
function V({ missingSchema: Y, missingRef:
|
|
2919
|
+
function V({ missingSchema: Y, missingRef: E }) {
|
|
2920
2920
|
if (this.refs[Y])
|
|
2921
|
-
throw new Error(`AnySchema ${Y} is loaded but ${
|
|
2921
|
+
throw new Error(`AnySchema ${Y} is loaded but ${E} cannot be resolved`);
|
|
2922
2922
|
}
|
|
2923
2923
|
async function H(Y) {
|
|
2924
|
-
const
|
|
2925
|
-
this.refs[Y] || await S.call(this,
|
|
2924
|
+
const E = await J.call(this, Y);
|
|
2925
|
+
this.refs[Y] || await S.call(this, E.$schema), this.refs[Y] || this.addSchema(E, Y, $);
|
|
2926
2926
|
}
|
|
2927
2927
|
async function J(Y) {
|
|
2928
|
-
const
|
|
2929
|
-
if (
|
|
2930
|
-
return
|
|
2928
|
+
const E = this._loading[Y];
|
|
2929
|
+
if (E)
|
|
2930
|
+
return E;
|
|
2931
2931
|
try {
|
|
2932
2932
|
return await (this._loading[Y] = x(Y));
|
|
2933
2933
|
} finally {
|
|
@@ -4138,7 +4138,7 @@ function Do() {
|
|
|
4138
4138
|
return dt.default = t, dt;
|
|
4139
4139
|
}
|
|
4140
4140
|
var ut = {}, ni;
|
|
4141
|
-
function
|
|
4141
|
+
function Po() {
|
|
4142
4142
|
if (ni) return ut;
|
|
4143
4143
|
ni = 1, Object.defineProperty(ut, "__esModule", { value: !0 });
|
|
4144
4144
|
const e = /* @__PURE__ */ W(), t = /* @__PURE__ */ K(), l = {
|
|
@@ -4174,7 +4174,7 @@ function Eo() {
|
|
|
4174
4174
|
return ut.default = l, ut;
|
|
4175
4175
|
}
|
|
4176
4176
|
var yt = {}, ai;
|
|
4177
|
-
function
|
|
4177
|
+
function Eo() {
|
|
4178
4178
|
if (ai) return yt;
|
|
4179
4179
|
ai = 1, Object.defineProperty(yt, "__esModule", { value: !0 });
|
|
4180
4180
|
const e = /* @__PURE__ */ K(), t = {
|
|
@@ -4259,7 +4259,7 @@ var ci;
|
|
|
4259
4259
|
function Ao() {
|
|
4260
4260
|
if (ci) return rt;
|
|
4261
4261
|
ci = 1, Object.defineProperty(rt, "__esModule", { value: !0 });
|
|
4262
|
-
const e = /* @__PURE__ */ Li(), t = /* @__PURE__ */ vo(), b = /* @__PURE__ */ Mi(), l = /* @__PURE__ */ So(), v = /* @__PURE__ */ wo(), i = /* @__PURE__ */ tr(), s = /* @__PURE__ */ Oo(), a = /* @__PURE__ */ $i(), d = /* @__PURE__ */ Io(), g = /* @__PURE__ */ Co(), y = /* @__PURE__ */ To(), C = /* @__PURE__ */ Do(), I = /* @__PURE__ */
|
|
4262
|
+
const e = /* @__PURE__ */ Li(), t = /* @__PURE__ */ vo(), b = /* @__PURE__ */ Mi(), l = /* @__PURE__ */ So(), v = /* @__PURE__ */ wo(), i = /* @__PURE__ */ tr(), s = /* @__PURE__ */ Oo(), a = /* @__PURE__ */ $i(), d = /* @__PURE__ */ Io(), g = /* @__PURE__ */ Co(), y = /* @__PURE__ */ To(), C = /* @__PURE__ */ Do(), I = /* @__PURE__ */ Po(), w = /* @__PURE__ */ Eo(), D = /* @__PURE__ */ _o(), T = /* @__PURE__ */ Ro();
|
|
4263
4263
|
function u(h = !1) {
|
|
4264
4264
|
const n = [
|
|
4265
4265
|
// any
|
|
@@ -4302,10 +4302,10 @@ function ji() {
|
|
|
4302
4302
|
}
|
|
4303
4303
|
return De.default = v, De;
|
|
4304
4304
|
}
|
|
4305
|
-
var
|
|
4305
|
+
var Pe = {}, di;
|
|
4306
4306
|
function qi() {
|
|
4307
|
-
if (di) return
|
|
4308
|
-
di = 1, Object.defineProperty(
|
|
4307
|
+
if (di) return Pe;
|
|
4308
|
+
di = 1, Object.defineProperty(Pe, "__esModule", { value: !0 }), Pe.dynamicRef = void 0;
|
|
4309
4309
|
const e = /* @__PURE__ */ W(), t = /* @__PURE__ */ ye(), b = /* @__PURE__ */ Zt(), l = {
|
|
4310
4310
|
keyword: "$dynamicRef",
|
|
4311
4311
|
schemaType: "string",
|
|
@@ -4335,7 +4335,7 @@ function qi() {
|
|
|
4335
4335
|
}) : () => (0, b.callRef)(i, w);
|
|
4336
4336
|
}
|
|
4337
4337
|
}
|
|
4338
|
-
return
|
|
4338
|
+
return Pe.dynamicRef = v, Pe.default = l, Pe;
|
|
4339
4339
|
}
|
|
4340
4340
|
var gt = {}, ui;
|
|
4341
4341
|
function No() {
|
|
@@ -4500,10 +4500,10 @@ function Uo() {
|
|
|
4500
4500
|
const e = /* @__PURE__ */ qo(), t = /* @__PURE__ */ Fo(), b = [e.default, t.default];
|
|
4501
4501
|
return It.default = b, It;
|
|
4502
4502
|
}
|
|
4503
|
-
var Dt = {},
|
|
4503
|
+
var Dt = {}, Pt = {}, Oi;
|
|
4504
4504
|
function Vo() {
|
|
4505
|
-
if (Oi) return
|
|
4506
|
-
Oi = 1, Object.defineProperty(
|
|
4505
|
+
if (Oi) return Pt;
|
|
4506
|
+
Oi = 1, Object.defineProperty(Pt, "__esModule", { value: !0 });
|
|
4507
4507
|
const e = /* @__PURE__ */ W(), b = {
|
|
4508
4508
|
keyword: "format",
|
|
4509
4509
|
type: ["number", "string"],
|
|
@@ -4567,7 +4567,7 @@ function Vo() {
|
|
|
4567
4567
|
}
|
|
4568
4568
|
}
|
|
4569
4569
|
};
|
|
4570
|
-
return
|
|
4570
|
+
return Pt.default = b, Pt;
|
|
4571
4571
|
}
|
|
4572
4572
|
var Ii;
|
|
4573
4573
|
function Bo() {
|
|
@@ -4609,7 +4609,7 @@ function zo() {
|
|
|
4609
4609
|
];
|
|
4610
4610
|
return Fe.default = d, Fe;
|
|
4611
4611
|
}
|
|
4612
|
-
var
|
|
4612
|
+
var Et = {}, xe = {}, Di;
|
|
4613
4613
|
function Wo() {
|
|
4614
4614
|
if (Di) return xe;
|
|
4615
4615
|
Di = 1, Object.defineProperty(xe, "__esModule", { value: !0 }), xe.DiscrError = void 0;
|
|
@@ -4618,10 +4618,10 @@ function Wo() {
|
|
|
4618
4618
|
t.Tag = "tag", t.Mapping = "mapping";
|
|
4619
4619
|
})(e || (xe.DiscrError = e = {})), xe;
|
|
4620
4620
|
}
|
|
4621
|
-
var
|
|
4621
|
+
var Pi;
|
|
4622
4622
|
function Go() {
|
|
4623
|
-
if (
|
|
4624
|
-
|
|
4623
|
+
if (Pi) return Et;
|
|
4624
|
+
Pi = 1, Object.defineProperty(Et, "__esModule", { value: !0 });
|
|
4625
4625
|
const e = /* @__PURE__ */ W(), t = /* @__PURE__ */ Wo(), b = /* @__PURE__ */ $t(), l = /* @__PURE__ */ Mt(), v = /* @__PURE__ */ K(), s = {
|
|
4626
4626
|
keyword: "discriminator",
|
|
4627
4627
|
type: "object",
|
|
@@ -4693,7 +4693,7 @@ function Go() {
|
|
|
4693
4693
|
}
|
|
4694
4694
|
}
|
|
4695
4695
|
};
|
|
4696
|
-
return
|
|
4696
|
+
return Et.default = s, Et;
|
|
4697
4697
|
}
|
|
4698
4698
|
var _t = {};
|
|
4699
4699
|
const Xo = "https://json-schema.org/draft/2020-12/schema", Ko = "https://json-schema.org/draft/2020-12/schema", Yo = { "https://json-schema.org/draft/2020-12/vocab/core": !0, "https://json-schema.org/draft/2020-12/vocab/applicator": !0, "https://json-schema.org/draft/2020-12/vocab/unevaluated": !0, "https://json-schema.org/draft/2020-12/vocab/validation": !0, "https://json-schema.org/draft/2020-12/vocab/meta-data": !0, "https://json-schema.org/draft/2020-12/vocab/format-annotation": !0, "https://json-schema.org/draft/2020-12/vocab/content": !0 }, Jo = "meta", Qo = "Core and Validation specifications meta-schema", Zo = [{ $ref: "meta/core" }, { $ref: "meta/applicator" }, { $ref: "meta/unevaluated" }, { $ref: "meta/validation" }, { $ref: "meta/meta-data" }, { $ref: "meta/format-annotation" }, { $ref: "meta/content" }], en = ["object", "boolean"], tn = "This meta-schema also defines keywords that have appeared in previous drafts in order to prevent incompatible extensions as they remain in common use.", rn = { definitions: { $comment: '"definitions" has been replaced by "$defs".', type: "object", additionalProperties: { $dynamicRef: "#meta" }, deprecated: !0, default: {} }, dependencies: { $comment: '"dependencies" has been split and replaced by "dependentSchemas" and "dependentRequired" in order to serve their differing semantics.', type: "object", additionalProperties: { anyOf: [{ $dynamicRef: "#meta" }, { $ref: "meta/validation#/$defs/stringArray" }] }, deprecated: !0, default: {} }, $recursiveAnchor: { $comment: '"$recursiveAnchor" has been replaced by "$dynamicAnchor".', $ref: "meta/core#/$defs/anchorString", deprecated: !0 }, $recursiveRef: { $comment: '"$recursiveRef" has been replaced by "$dynamicRef".', $ref: "meta/core#/$defs/uriReferenceString", deprecated: !0 } }, on = {
|
|
@@ -4723,14 +4723,14 @@ const Xo = "https://json-schema.org/draft/2020-12/schema", Ko = "https://json-sc
|
|
|
4723
4723
|
title: bn,
|
|
4724
4724
|
type: vn,
|
|
4725
4725
|
properties: Sn
|
|
4726
|
-
}, On = "https://json-schema.org/draft/2020-12/schema", In = "https://json-schema.org/draft/2020-12/meta/content", Cn = { "https://json-schema.org/draft/2020-12/vocab/content": !0 }, Tn = "meta", Dn = "Content vocabulary meta-schema",
|
|
4726
|
+
}, On = "https://json-schema.org/draft/2020-12/schema", In = "https://json-schema.org/draft/2020-12/meta/content", Cn = { "https://json-schema.org/draft/2020-12/vocab/content": !0 }, Tn = "meta", Dn = "Content vocabulary meta-schema", Pn = ["object", "boolean"], En = { contentEncoding: { type: "string" }, contentMediaType: { type: "string" }, contentSchema: { $dynamicRef: "#meta" } }, _n = {
|
|
4727
4727
|
$schema: On,
|
|
4728
4728
|
$id: In,
|
|
4729
4729
|
$vocabulary: Cn,
|
|
4730
4730
|
$dynamicAnchor: Tn,
|
|
4731
4731
|
title: Dn,
|
|
4732
|
-
type:
|
|
4733
|
-
properties:
|
|
4732
|
+
type: Pn,
|
|
4733
|
+
properties: En
|
|
4734
4734
|
}, Rn = "https://json-schema.org/draft/2020-12/schema", An = "https://json-schema.org/draft/2020-12/meta/core", Nn = { "https://json-schema.org/draft/2020-12/vocab/core": !0 }, xn = "meta", kn = "Core vocabulary meta-schema", Ln = ["object", "boolean"], Mn = { $id: { $ref: "#/$defs/uriReferenceString", $comment: "Non-empty fragments not allowed.", pattern: "^[^#]*#?$" }, $schema: { $ref: "#/$defs/uriString" }, $ref: { $ref: "#/$defs/uriReferenceString" }, $anchor: { $ref: "#/$defs/anchorString" }, $dynamicRef: { $ref: "#/$defs/uriReferenceString" }, $dynamicAnchor: { $ref: "#/$defs/anchorString" }, $vocabulary: { type: "object", propertyNames: { $ref: "#/$defs/uriString" }, additionalProperties: { type: "boolean" } }, $comment: { type: "string" }, $defs: { type: "object", additionalProperties: { $dynamicRef: "#meta" } } }, $n = { anchorString: { type: "string", pattern: "^[A-Za-z_][-A-Za-z0-9._]*$" }, uriString: { type: "string", format: "uri" }, uriReferenceString: { type: "string", format: "uri-reference" } }, jn = {
|
|
4735
4735
|
$schema: Rn,
|
|
4736
4736
|
$id: An,
|
|
@@ -4766,10 +4766,10 @@ const Xo = "https://json-schema.org/draft/2020-12/schema", Ko = "https://json-sc
|
|
|
4766
4766
|
properties: sa,
|
|
4767
4767
|
$defs: pa
|
|
4768
4768
|
};
|
|
4769
|
-
var
|
|
4769
|
+
var Ei;
|
|
4770
4770
|
function la() {
|
|
4771
|
-
if (
|
|
4772
|
-
|
|
4771
|
+
if (Ei) return _t;
|
|
4772
|
+
Ei = 1, Object.defineProperty(_t, "__esModule", { value: !0 });
|
|
4773
4773
|
const e = on, t = yn, b = wn, l = _n, v = jn, i = Wn, s = ea, a = ca, d = ["/properties"];
|
|
4774
4774
|
function g(y) {
|
|
4775
4775
|
return [
|
|
@@ -4844,7 +4844,7 @@ function da() {
|
|
|
4844
4844
|
})(Le, Le.exports)), Le.exports;
|
|
4845
4845
|
}
|
|
4846
4846
|
var ua = /* @__PURE__ */ da();
|
|
4847
|
-
const ya = "custom-apps", ha = "1.1.
|
|
4847
|
+
const ya = "custom-apps", ha = "1.1.5", Ee = {
|
|
4848
4848
|
ActionCard: {
|
|
4849
4849
|
description: "Placeholder for states like empty, success, error, and loading, featuring animations, icons, text, and action buttons.",
|
|
4850
4850
|
events: ["pressPrimary", "pressSecondary"],
|
|
@@ -9977,6 +9977,10 @@ const ya = "custom-apps", ha = "1.1.1", Pe = {
|
|
|
9977
9977
|
description: "Earliest selectable date as ISO string",
|
|
9978
9978
|
type: "string"
|
|
9979
9979
|
},
|
|
9980
|
+
shouldDisplaySeconds: {
|
|
9981
|
+
description: "Display seconds in the time input when shouldShowTime is true",
|
|
9982
|
+
type: "boolean"
|
|
9983
|
+
},
|
|
9980
9984
|
shouldFormatInTimezone: {
|
|
9981
9985
|
description: "If true, values will transform according to global timezone. Defaults to true when shouldShowTime is true",
|
|
9982
9986
|
type: "boolean"
|
|
@@ -10249,6 +10253,10 @@ const ya = "custom-apps", ha = "1.1.1", Pe = {
|
|
|
10249
10253
|
description: "Earliest selectable date as ISO string",
|
|
10250
10254
|
type: "string"
|
|
10251
10255
|
},
|
|
10256
|
+
shouldDisplaySeconds: {
|
|
10257
|
+
description: "Display seconds in the time input when shouldShowTime is true",
|
|
10258
|
+
type: "boolean"
|
|
10259
|
+
},
|
|
10252
10260
|
shouldFormatInTimezone: {
|
|
10253
10261
|
description: "If true, values will transform according to global timezone. Defaults to true when shouldShowTime is true",
|
|
10254
10262
|
type: "boolean"
|
|
@@ -24183,7 +24191,7 @@ const ya = "custom-apps", ha = "1.1.1", Pe = {
|
|
|
24183
24191
|
type: "boolean"
|
|
24184
24192
|
},
|
|
24185
24193
|
layouts: {
|
|
24186
|
-
description: "Layout descriptor for each block. Every entry's `identifier` must match the spec id of one of the board's direct children — that's how a block is wired to its widget content. Drag/resize will respect optional min/max bounds.",
|
|
24194
|
+
description: "Layout descriptor for each block. Every entry's `identifier` must match the spec id of one of the board's direct children — that's how a block is wired to its widget content. Optional `x`/`y` positions are respected; when omitted, the board auto-places blocks. Drag/resize will respect optional min/max bounds.",
|
|
24187
24195
|
items: {
|
|
24188
24196
|
additionalProperties: !1,
|
|
24189
24197
|
properties: {
|
|
@@ -24247,6 +24255,14 @@ const ya = "custom-apps", ha = "1.1.1", Pe = {
|
|
|
24247
24255
|
width: {
|
|
24248
24256
|
description: "Width in grid units (1–12). Default: 3",
|
|
24249
24257
|
type: "number"
|
|
24258
|
+
},
|
|
24259
|
+
x: {
|
|
24260
|
+
description: "Horizontal position in grid units. Auto-calculated when omitted.",
|
|
24261
|
+
type: "number"
|
|
24262
|
+
},
|
|
24263
|
+
y: {
|
|
24264
|
+
description: "Vertical position in grid units. Auto-calculated when omitted.",
|
|
24265
|
+
type: "number"
|
|
24250
24266
|
}
|
|
24251
24267
|
},
|
|
24252
24268
|
required: ["identifier"],
|
|
@@ -30112,35 +30128,46 @@ const ya = "custom-apps", ha = "1.1.1", Pe = {
|
|
|
30112
30128
|
}
|
|
30113
30129
|
},
|
|
30114
30130
|
triggerFunction: {
|
|
30115
|
-
description: "Call a Rippling Function.
|
|
30116
|
-
docs: `
|
|
30131
|
+
description: "Call a Rippling Function. params.inputs is sent as event.parameters. Legacy top-level action and extra params are still supported.",
|
|
30132
|
+
docs: `inputs: preferred format for function inputs. Must include action; extra keys are sent to the server as event.parameters.
|
|
30133
|
+
responsePath (client-side): stores response body at that state path. Body must match the state shape (e.g. array, NOT wrapped in { data: [...] }).
|
|
30117
30134
|
onSuccess (client-side): runs after handler resolves. Must use { set: { "/path": value } } format, NOT actions.set().
|
|
30118
|
-
onError (client-side): runs if handler throws. Same format as onSuccess
|
|
30119
|
-
Extra params (beyond functionId, action, responsePath, onSuccess, onError) are sent to the server as event.parameters.`,
|
|
30135
|
+
onError (client-side): runs if handler throws. Same format as onSuccess.`,
|
|
30120
30136
|
paramsSchema: {
|
|
30121
30137
|
$schema: "https://json-schema.org/draft/2020-12/schema",
|
|
30122
|
-
|
|
30123
|
-
|
|
30124
|
-
|
|
30125
|
-
|
|
30126
|
-
|
|
30127
|
-
|
|
30128
|
-
|
|
30129
|
-
|
|
30130
|
-
|
|
30131
|
-
|
|
30132
|
-
|
|
30133
|
-
|
|
30138
|
+
anyOf: [
|
|
30139
|
+
{
|
|
30140
|
+
additionalProperties: {},
|
|
30141
|
+
properties: {
|
|
30142
|
+
functionId: {
|
|
30143
|
+
type: "string"
|
|
30144
|
+
},
|
|
30145
|
+
inputs: {
|
|
30146
|
+
additionalProperties: {},
|
|
30147
|
+
properties: {
|
|
30148
|
+
action: {
|
|
30149
|
+
type: "string"
|
|
30150
|
+
}
|
|
30151
|
+
},
|
|
30152
|
+
required: ["action"],
|
|
30153
|
+
type: "object"
|
|
30154
|
+
},
|
|
30155
|
+
onError: {},
|
|
30156
|
+
onSuccess: {},
|
|
30157
|
+
responsePath: {
|
|
30158
|
+
type: "string"
|
|
30159
|
+
}
|
|
30160
|
+
},
|
|
30161
|
+
required: ["functionId", "inputs"],
|
|
30162
|
+
type: "object"
|
|
30134
30163
|
}
|
|
30135
|
-
|
|
30136
|
-
required: ["functionId", "action"],
|
|
30137
|
-
type: "object"
|
|
30164
|
+
]
|
|
30138
30165
|
}
|
|
30139
30166
|
}
|
|
30140
30167
|
}, ke = {}, Jt = {};
|
|
30141
30168
|
function Wc() {
|
|
30142
30169
|
return Object.fromEntries(
|
|
30143
|
-
Object.entries(
|
|
30170
|
+
Object.entries(Ee).map(([e, t]) => [
|
|
30144
30171
|
e,
|
|
30145
30172
|
String(t.description ?? "")
|
|
30146
30173
|
])
|
|
@@ -30169,11 +30196,11 @@ function Yc() {
|
|
|
30169
30196
|
return Jt;
|
|
30170
30197
|
}
|
|
30171
30198
|
function Jc(e) {
|
|
30172
|
-
if (!(e in
|
|
30199
|
+
if (!(e in Ee))
|
|
30173
30200
|
throw new Error(
|
|
30174
|
-
`Unknown component '${e}'. Available: ${Object.keys(
|
|
30201
|
+
`Unknown component '${e}'. Available: ${Object.keys(Ee).join(", ")}`
|
|
30175
30202
|
);
|
|
30176
|
-
const t = { ...
|
|
30203
|
+
const t = { ...Ee[e] };
|
|
30177
30204
|
return delete t.example, t;
|
|
30178
30205
|
}
|
|
30179
30206
|
function Qc(e) {
|
|
@@ -30280,11 +30307,11 @@ function el(e) {
|
|
|
30280
30307
|
l && !(l in b) && t.push(`Root element '${l}' not found in elements map`);
|
|
30281
30308
|
for (const [v, i] of Object.entries(b)) {
|
|
30282
30309
|
const s = i.type ?? "";
|
|
30283
|
-
if (!(s in
|
|
30310
|
+
if (!(s in Ee)) {
|
|
30284
30311
|
t.push(`Element '${v}': unknown type '${s}'`);
|
|
30285
30312
|
continue;
|
|
30286
30313
|
}
|
|
30287
|
-
const a =
|
|
30314
|
+
const a = Ee[s], d = a.propsSchema;
|
|
30288
30315
|
if (d) {
|
|
30289
30316
|
const I = ma(fa(d)), w = i.props ?? {};
|
|
30290
30317
|
for (const D of va(I, w))
|
|
@@ -30312,8 +30339,8 @@ export {
|
|
|
30312
30339
|
Ca as AiIcon,
|
|
30313
30340
|
Ta as Alert,
|
|
30314
30341
|
Da as Animation,
|
|
30315
|
-
|
|
30316
|
-
|
|
30342
|
+
Pa as ApiError,
|
|
30343
|
+
Ea as AppGroupLoader,
|
|
30317
30344
|
_a as AppGroupSelect,
|
|
30318
30345
|
Ra as AppNavBar,
|
|
30319
30346
|
Aa as AtomsSeparator,
|
|
@@ -30368,8 +30395,8 @@ export {
|
|
|
30368
30395
|
Cs as FormDate,
|
|
30369
30396
|
Ts as FormDateRange,
|
|
30370
30397
|
Ds as FormDaySelector,
|
|
30371
|
-
|
|
30372
|
-
|
|
30398
|
+
Ps as FormEmail,
|
|
30399
|
+
Es as FormFile,
|
|
30373
30400
|
_s as FormFileDrop,
|
|
30374
30401
|
Rs as FormGroup,
|
|
30375
30402
|
As as FormGroupHeader,
|
|
@@ -30422,8 +30449,8 @@ export {
|
|
|
30422
30449
|
Cp as MenuList,
|
|
30423
30450
|
Tp as Modal,
|
|
30424
30451
|
Dp as ModalCloseButton,
|
|
30425
|
-
|
|
30426
|
-
|
|
30452
|
+
Pp as ModalFooter,
|
|
30453
|
+
Ep as NestedList,
|
|
30427
30454
|
_p as Number,
|
|
30428
30455
|
Rp as ObjectListView,
|
|
30429
30456
|
Ap as ObjectUI,
|
|
@@ -30475,8 +30502,8 @@ export {
|
|
|
30475
30502
|
Ic as Text,
|
|
30476
30503
|
Tc as TextAutoSuggest,
|
|
30477
30504
|
Dc as TextClip,
|
|
30478
|
-
|
|
30479
|
-
|
|
30505
|
+
Pc as TextInput,
|
|
30506
|
+
Ec as TextSnippet,
|
|
30480
30507
|
Cc as Textarea,
|
|
30481
30508
|
_c as Time,
|
|
30482
30509
|
Rc as TimeRange,
|