@synopackageland/ui 0.20.0 → 0.20.1
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/CHANGELOG.md +7 -0
- package/README.md +6 -6
- package/dist/components/app/app-toolbar/AppToolbar.vue.d.ts +3 -3
- package/dist/components/app/page-content/PageContent.vue.d.ts +1 -1
- package/dist/components/app/page-header/PageHeader.vue.d.ts +3 -3
- package/dist/components/composite/callout/Callout.vue.d.ts +10 -5
- package/dist/components/composite/callout/CalloutRecall.vue.d.ts +3 -0
- package/dist/components/composite/callout/CalloutRecallList.vue.d.ts +3 -0
- package/dist/components/composite/callout/calloutDismissal.d.ts +37 -0
- package/dist/i18n/text.d.ts +2 -0
- package/dist/index.js +7566 -7407
- package/dist/json-ai-prompt.md +1 -1
- package/dist/json-catalog.schema.json +1 -1
- package/dist/json-preview/preview.js +6098 -5939
- package/dist/json.js +9 -9
- package/dist/reka-runtime.json +1 -1
- package/dist/theme.css +1 -1
- package/dist/themes/dsm7-embedded-theme.css +1 -1
- package/dist/themes/dsm7-embedded.css +1 -1
- package/dist/themes/dsm7.css +1 -1
- package/docs/adaptive-layout.md +5 -1
- package/docs/app-local-modal.md +4 -4
- package/docs/callout.md +61 -23
- package/docs/{component-defaults-0.5.7.md → component-defaults.md} +1 -1
- package/docs/json-ui.md +2 -2
- package/docs/theme-hooks.md +3 -2
- package/package.json +2 -2
package/dist/json.js
CHANGED
|
@@ -4,9 +4,9 @@ import { defineCatalog as F } from "@json-render/core";
|
|
|
4
4
|
import { createStateStore as $t, defineCatalog as jt } from "@json-render/core";
|
|
5
5
|
import { defineRegistry as M, useBoundProp as b, JSONUIProvider as W, Renderer as B } from "@json-render/vue";
|
|
6
6
|
import { ActionProvider as Ot, JSONUIProvider as At, Renderer as kt, StateProvider as Pt, ValidationProvider as Ct, VisibilityProvider as It, defineRegistry as Rt, useActions as Kt, useBoundProp as Lt, useStateStore as Dt } from "@json-render/vue";
|
|
7
|
-
import { schema as
|
|
7
|
+
import { schema as G } from "@json-render/vue/schema";
|
|
8
8
|
import { schema as Tt } from "@json-render/vue/schema";
|
|
9
|
-
import { h as d, defineComponent as
|
|
9
|
+
import { h as d, defineComponent as H, openBlock as X, createBlock as Y, unref as j, withCtx as Q, createVNode as Z } from "vue";
|
|
10
10
|
import { LoadingArea as ee, InputGroup as te, ListItem as oe, CellStatus as ne, CellText as ie, DataTable as K, Dialog as ae, Badge as se, Progress as re, EmptyState as le, Callout as ce, Card as de, Surface as pe, SettingsRow as ue, SettingsSection as me, FormItem as he, Form as fe, RadioGroup as ge, Switch as be, Checkbox as ye, Select as we, Input as ve, Button as Se, SectionTabs as $e, AppSidebar as je, AppToolbar as xe, PageHeader as Oe, PageContent as Ae, ResponsiveView as ke, AppLayout as Pe, AppRoot as Ce, getRegisteredIcon as Ie } from "./index.js";
|
|
11
11
|
const J = t.lazy(() => t.object({
|
|
12
12
|
key: t.string(),
|
|
@@ -256,7 +256,7 @@ const J = t.lazy(() => t.object({
|
|
|
256
256
|
}),
|
|
257
257
|
slots: ["default", "actions", "details"],
|
|
258
258
|
events: ["close"],
|
|
259
|
-
description: "A message that stays until its cause goes away: something to act on (a one-line title, at most one line of text, one action in `actions`) or a short risk note (`variant: inline`, longer text in `details` behind Learn more). The reader can close it (default)
|
|
259
|
+
description: "A message that stays until its cause goes away: something to act on (a one-line title, at most one line of text, one action in `actions`) or a short risk note (`variant: inline`, longer text in `details` behind Learn more). It spans its container. The reader can close it (default): it stays closed after a reload (a `danger` callout for this page load only), comes back when its text changes, and the one info button of the page lists it to show again. Give it a stable `dismissKey` (e.g. `recycle-bin-dsm-hint`); without one the id comes from the page and the text. `dismissible: false` keeps only a blocking requirement in view. A passing result such as Saved is a toast, not a Callout. Callout text has no closing period. Put a machine error code in `code`, not in the text."
|
|
260
260
|
},
|
|
261
261
|
EmptyState: {
|
|
262
262
|
props: t.object({
|
|
@@ -360,7 +360,7 @@ const J = t.lazy(() => t.object({
|
|
|
360
360
|
props: t.object({ text: t.string().optional() }),
|
|
361
361
|
description: "Centered loading state for a page or bounded region."
|
|
362
362
|
}
|
|
363
|
-
}, A = F(
|
|
363
|
+
}, A = F(G, {
|
|
364
364
|
components: V,
|
|
365
365
|
actions: {}
|
|
366
366
|
}), Ke = [
|
|
@@ -618,7 +618,7 @@ const Je = {
|
|
|
618
618
|
Loading: ({ props: e }) => d(ee, { text: e.text })
|
|
619
619
|
}, { registry: D } = M(A, {
|
|
620
620
|
components: Je
|
|
621
|
-
}), ut = /* @__PURE__ */
|
|
621
|
+
}), ut = /* @__PURE__ */ H({
|
|
622
622
|
__name: "SynoJsonRenderer",
|
|
623
623
|
props: {
|
|
624
624
|
spec: {},
|
|
@@ -743,7 +743,7 @@ function mt(e, o = {}) {
|
|
|
743
743
|
functions: o.functions || c ? [...o.functions ?? [], ...c ? ["t"] : []] : void 0,
|
|
744
744
|
messageKeys: c
|
|
745
745
|
};
|
|
746
|
-
return s && typeof e.root == "string" && Object.hasOwn(s, e.root) &&
|
|
746
|
+
return s && typeof e.root == "string" && Object.hasOwn(s, e.root) && Ge(l, e.root, s), T(i);
|
|
747
747
|
}
|
|
748
748
|
function We(e, o, n, a, i) {
|
|
749
749
|
const s = (...l) => u("elements", o, "props", ...l);
|
|
@@ -830,7 +830,7 @@ function Be(e, o, n, a, i, s) {
|
|
|
830
830
|
});
|
|
831
831
|
}
|
|
832
832
|
}
|
|
833
|
-
function
|
|
833
|
+
function Ge(e, o, n) {
|
|
834
834
|
const { issues: a } = e, i = /* @__PURE__ */ new Set(), s = (r, c, l, p) => {
|
|
835
835
|
const f = n[r];
|
|
836
836
|
if (!m(f)) return;
|
|
@@ -852,7 +852,7 @@ function He(e, o, n) {
|
|
|
852
852
|
for (const r of Object.keys(n))
|
|
853
853
|
i.has(r) || a.warn({ code: "orphaned_element", path: u("elements", r), elementKey: r, message: `"${r}" is not reachable from the root.`, hint: "Reference it from a parent or delete it." });
|
|
854
854
|
}
|
|
855
|
-
function
|
|
855
|
+
function He(e, o) {
|
|
856
856
|
let n = e;
|
|
857
857
|
for (const a of o.split("/").slice(1)) {
|
|
858
858
|
const i = a.replaceAll("~1", "/").replaceAll("~0", "~");
|
|
@@ -873,7 +873,7 @@ function S(e, o, n, a, { mustExist: i }) {
|
|
|
873
873
|
});
|
|
874
874
|
return;
|
|
875
875
|
}
|
|
876
|
-
i && !
|
|
876
|
+
i && !He(e.state, n).found && e.issues.warn({
|
|
877
877
|
code: "state_path_missing",
|
|
878
878
|
path: a,
|
|
879
879
|
elementKey: o,
|
package/dist/reka-runtime.json
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
"version": "2.10.5",
|
|
4
4
|
"delivery": "bundled-patched-esm",
|
|
5
5
|
"patchManifestSha256": "14f10159b60d48ac7a0686f58faf7a30e99898dc267b3c032cf2bdd6052dc52b",
|
|
6
|
-
"bundleSha256": "
|
|
6
|
+
"bundleSha256": "b76b5c501e6c75ef6baf1ada0855d99d1a79108371ced4a775f52e8a547eea88",
|
|
7
7
|
"sourceHashes": {
|
|
8
8
|
"shared/useBodyScrollLock.js": "657592f283cb6fd25454abd284a0024af21936cb56e05b762ff0d22b6a979d32",
|
|
9
9
|
"DismissableLayer/DismissableLayer.js": "da05ca544d9822a8e2b71057e78c0e1ef59423aa3893534338fb58e1ecbd1a8d",
|