@cntrl-site/components 1.0.111-alpha.1 → 1.0.111-alpha.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/Components/PopupMenu/PopupMenu.d.ts +18 -5
- package/dist/Components/PopupMenu/PopupMenuComponent.d.ts +125 -134
- package/dist/Components/PopupMenu/popupMenuLayout.d.ts +70 -34
- package/dist/PopupMenu-BYZy1R1y.js +356 -0
- package/dist/PopupMenu-DXWVDnPf.mjs +972 -0
- package/dist/{components-BY4b1gFL.js → components-Ce8GmbzS.js} +1 -1
- package/dist/{components-CpgSVhiu.mjs → components-QxlSJUUn.mjs} +174 -142
- package/dist/elements.js +1 -1
- package/dist/elements.mjs +1 -1
- package/dist/elements.node.js +1 -1
- package/dist/elements.node.mjs +1 -1
- package/dist/index.d.ts +2 -2
- package/dist/index.js +1 -1
- package/dist/index.mjs +39 -34
- package/dist/types/SchemaV1.d.ts +2 -1
- package/package.json +1 -1
- package/dist/PopupMenu-DRn2Hrwz.mjs +0 -929
- package/dist/PopupMenu-_jzggiOn.js +0 -348
package/dist/index.mjs
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { C as s, a as
|
|
2
|
-
import { c as
|
|
3
|
-
import { g as
|
|
4
|
-
import { D as
|
|
5
|
-
function
|
|
1
|
+
import { C as s, a as P, L as l, P as d } from "./components-QxlSJUUn.mjs";
|
|
2
|
+
import { c as E } from "./components-QxlSJUUn.mjs";
|
|
3
|
+
import { g as L, a as b, i as S } from "./panelAvailability-D179wwJx.mjs";
|
|
4
|
+
import { l as C, p as I, D as T, P as h, o as O, f as k, g as F, e as G, k as x, c as D, d as H, j as N, h as R, i as j, m as B, n as K, r as V, s as W, b as w, a as z } from "./PopupMenu-DXWVDnPf.mjs";
|
|
5
|
+
function M(e) {
|
|
6
6
|
return e.type === "object" && e.version === 1;
|
|
7
7
|
}
|
|
8
8
|
function a(e) {
|
|
@@ -24,50 +24,55 @@ function c(e, { text: n, images: t }) {
|
|
|
24
24
|
return n;
|
|
25
25
|
}
|
|
26
26
|
}
|
|
27
|
-
function
|
|
27
|
+
function g(e, { pageId: n, slug: t }) {
|
|
28
28
|
return e === "link-input" ? { type: "page", value: n, target: "self" } : `/${t}`;
|
|
29
29
|
}
|
|
30
|
-
function
|
|
30
|
+
function f(e) {
|
|
31
31
|
var t;
|
|
32
32
|
const n = ((t = e == null ? void 0 : e.items) == null ? void 0 : t.properties) ?? {};
|
|
33
33
|
return Object.entries(n).map(([o, p]) => {
|
|
34
|
-
var
|
|
35
|
-
const
|
|
34
|
+
var r;
|
|
35
|
+
const i = (r = p.display) == null ? void 0 : r.type;
|
|
36
36
|
return {
|
|
37
37
|
fieldKey: o,
|
|
38
38
|
...p.contentKey !== void 0 ? { contentKey: p.contentKey } : {},
|
|
39
|
-
fromEntry: (u) => c(
|
|
40
|
-
toPage: (u) =>
|
|
39
|
+
fromEntry: (u) => c(i, u),
|
|
40
|
+
toPage: (u) => g(i, u)
|
|
41
41
|
};
|
|
42
42
|
});
|
|
43
43
|
}
|
|
44
44
|
const y = [
|
|
45
45
|
s.id,
|
|
46
|
+
P.id,
|
|
46
47
|
l.id,
|
|
47
|
-
d.id
|
|
48
|
-
P.id
|
|
48
|
+
d.id
|
|
49
49
|
];
|
|
50
50
|
export {
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
51
|
+
C as DEFAULT_POPUP_MENU_GRID,
|
|
52
|
+
I as DEFAULT_POPUP_MENU_HEIGHT,
|
|
53
|
+
T as DEFAULT_POPUP_MENU_VIEWPORT_RATIO,
|
|
54
|
+
h as POPUP_MENU_ALIGNS,
|
|
55
|
+
E as components,
|
|
56
|
+
O as defaultPopupMenuLayoutRules,
|
|
57
|
+
k as fitPopupMenuLayoutToGrid,
|
|
58
|
+
F as generatePopupMenuLayout,
|
|
59
|
+
L as getAvailableStatePanels,
|
|
60
|
+
G as getPopupMenuAlign,
|
|
61
|
+
x as getPopupMenuGrid,
|
|
62
|
+
D as getPopupMenuHeight,
|
|
63
|
+
H as getPopupMenuHeightPercent,
|
|
64
|
+
N as getPopupMenuSides,
|
|
65
|
+
R as getPopupMenuWidth,
|
|
66
|
+
f as getPostFieldBindings,
|
|
67
|
+
b as getUnavailableStates,
|
|
68
|
+
S as isPanelAvailable,
|
|
69
|
+
j as isSamePopupMenuGrid,
|
|
70
|
+
M as isSchemaV1,
|
|
71
|
+
B as movePopupMenuBlock,
|
|
67
72
|
y as nonForkableComponentIds,
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
+
K as randomPopupMenuSeed,
|
|
74
|
+
V as resizePopupMenuBlock,
|
|
75
|
+
W as settlePopupMenuLayout,
|
|
76
|
+
w as snapPopupMenuHeight,
|
|
77
|
+
z as snapPopupMenuTop
|
|
73
78
|
};
|
package/dist/types/SchemaV1.d.ts
CHANGED
|
@@ -97,7 +97,8 @@ export type ComponentContentProperty = {
|
|
|
97
97
|
min?: number;
|
|
98
98
|
max?: number;
|
|
99
99
|
default?: unknown;
|
|
100
|
-
/** How the field is drawn instead in a row whose `type` is one of these keys, laid over the rest
|
|
100
|
+
/** How the field is drawn instead in a row whose `type` is one of these keys, laid over the rest; a display
|
|
101
|
+
* with `visible: false` leaves the field out of those rows. */
|
|
101
102
|
byRowType?: Record<string, Pick<ComponentContentProperty, 'placeholder' | 'display'>>;
|
|
102
103
|
};
|
|
103
104
|
export type ComponentContentSchema = {
|