@clyrex-digital/clyrex-controls-dev 0.8.1-dev.20260818060820 → 0.8.1-dev.20260824072352
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/DataBindingControls-QZ7ES2AS.mjs +205 -0
- package/dist/DataBindingControls-XCAIDMDC.mjs +209 -0
- package/dist/{InputControlClient-XR37ZIQ2.mjs → InputControlClient-4M2BZXQO.mjs} +5 -3
- package/dist/InputControlClient-AORN4DRF.mjs +1921 -0
- package/dist/{LinkNodeButton-AOEDCCL7.mjs → LinkNodeButton-BEAX4I4C.mjs} +1 -1
- package/dist/LinkNodeButton-IT2CELKO.mjs +225 -0
- package/dist/{Pagination-YKNCYVXV.mjs → Pagination-GL6B4MNO.mjs} +5 -3
- package/dist/{Pagination-6OFACRMQ.mjs → Pagination-ZQO3EUKB.mjs} +27 -71
- package/dist/chunk-2R26M6CK.mjs +30 -0
- package/dist/{chunk-KL2YKXXS.mjs → chunk-4P4HO663.mjs} +30 -6
- package/dist/chunk-4R7F7LBL.mjs +36 -0
- package/dist/chunk-6PW2RLUJ.mjs +52 -0
- package/dist/chunk-E4VOFO5Q.mjs +39 -0
- package/dist/{chunk-YDPISYMP.mjs → chunk-GCG4OYDJ.mjs} +0 -34
- package/dist/{chunk-65QPOTZ4.mjs → chunk-GJOJX2O3.mjs} +1 -1
- package/dist/chunk-GKI42H4B.mjs +13 -0
- package/dist/{chunk-TVL6KVD5.mjs → chunk-Q46GMD3P.mjs} +31 -37
- package/dist/chunk-RHVNJMS4.mjs +251 -0
- package/dist/{chunk-WEV5U33G.mjs → chunk-TKDSRAM6.mjs} +36 -20
- package/dist/chunk-TQ6BXQ3A.mjs +24 -0
- package/dist/{chunk-3GWLDT7C.mjs → chunk-WXZMRMRS.mjs} +36 -20
- package/dist/index.d.mts +17 -6
- package/dist/index.d.ts +17 -6
- package/dist/index.js +616 -311
- package/dist/index.mjs +101 -54
- package/dist/server.d.mts +17 -6
- package/dist/server.d.ts +17 -6
- package/dist/server.js +2717 -298
- package/dist/server.mjs +86 -52
- package/package.json +1 -1
- package/dist/LinkNodeButton-KZRNRJRI.mjs +0 -467
package/dist/index.mjs
CHANGED
|
@@ -2,7 +2,10 @@
|
|
|
2
2
|
|
|
3
3
|
import {
|
|
4
4
|
OdataBuilder
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-4P4HO663.mjs";
|
|
6
|
+
import {
|
|
7
|
+
InputControl_default
|
|
8
|
+
} from "./chunk-GKI42H4B.mjs";
|
|
6
9
|
import {
|
|
7
10
|
AssetUtility_default,
|
|
8
11
|
BooleanSelect_default,
|
|
@@ -23,16 +26,18 @@ import {
|
|
|
23
26
|
Select_default,
|
|
24
27
|
Switcher_default,
|
|
25
28
|
TimeInput_default
|
|
26
|
-
} from "./chunk-
|
|
29
|
+
} from "./chunk-GJOJX2O3.mjs";
|
|
27
30
|
import {
|
|
28
|
-
Constants,
|
|
29
31
|
Hyperlink,
|
|
30
|
-
Icon_default
|
|
32
|
+
Icon_default
|
|
33
|
+
} from "./chunk-GCG4OYDJ.mjs";
|
|
34
|
+
import {
|
|
35
|
+
Constants,
|
|
31
36
|
InputControlType_default
|
|
32
|
-
} from "./chunk-
|
|
37
|
+
} from "./chunk-E4VOFO5Q.mjs";
|
|
33
38
|
import {
|
|
34
39
|
ServiceClient_default
|
|
35
|
-
} from "./chunk-
|
|
40
|
+
} from "./chunk-TKDSRAM6.mjs";
|
|
36
41
|
import {
|
|
37
42
|
Button_default,
|
|
38
43
|
ClientButton_default,
|
|
@@ -411,13 +416,6 @@ var ViewControl = (props) => {
|
|
|
411
416
|
};
|
|
412
417
|
var ViewControl_default = ViewControl;
|
|
413
418
|
|
|
414
|
-
// src/components/controls/edit/InputControl.tsx
|
|
415
|
-
import dynamic5 from "next/dynamic";
|
|
416
|
-
var InputControl = dynamic5(() => import("./InputControlClient-XR37ZIQ2.mjs"), {
|
|
417
|
-
ssr: false
|
|
418
|
-
});
|
|
419
|
-
var InputControl_default = InputControl;
|
|
420
|
-
|
|
421
419
|
// src/components/pageRenderingEngine/PageBodyRenderer.tsx
|
|
422
420
|
import React23 from "react";
|
|
423
421
|
|
|
@@ -507,9 +505,9 @@ var LineBreakNode_default = LineBreakNode;
|
|
|
507
505
|
import React14 from "react";
|
|
508
506
|
|
|
509
507
|
// src/components/pageRenderingEngine/nodes/ImageNode.tsx
|
|
510
|
-
import
|
|
508
|
+
import dynamic5 from "next/dynamic";
|
|
511
509
|
import { jsx as jsx17 } from "react/jsx-runtime";
|
|
512
|
-
var HlsPlayer2 =
|
|
510
|
+
var HlsPlayer2 = dynamic5(() => import("./HlsPlayer-IW52N5RG.mjs"), { ssr: false });
|
|
513
511
|
var getNestedValue = (obj, path) => {
|
|
514
512
|
if (!obj || !path) return void 0;
|
|
515
513
|
return path.split(".").reduce((current, key) => {
|
|
@@ -615,9 +613,9 @@ var ImageNode = (props) => {
|
|
|
615
613
|
var ImageNode_default = ImageNode;
|
|
616
614
|
|
|
617
615
|
// src/components/pageRenderingEngine/nodes/LinkNode.tsx
|
|
618
|
-
import
|
|
616
|
+
import dynamic6 from "next/dynamic";
|
|
619
617
|
import { Fragment, jsx as jsx18, jsxs as jsxs6 } from "react/jsx-runtime";
|
|
620
|
-
var LinkNodeButton =
|
|
618
|
+
var LinkNodeButton = dynamic6(() => import("./LinkNodeButton-BEAX4I4C.mjs"), {
|
|
621
619
|
ssr: false
|
|
622
620
|
});
|
|
623
621
|
function getNestedValue2(obj, path) {
|
|
@@ -1050,9 +1048,9 @@ var QuoteNode_default = QuoteNode;
|
|
|
1050
1048
|
|
|
1051
1049
|
// src/components/pageRenderingEngine/nodes/CodeNode.tsx
|
|
1052
1050
|
import React20 from "react";
|
|
1053
|
-
import
|
|
1051
|
+
import dynamic7 from "next/dynamic";
|
|
1054
1052
|
import { jsx as jsx27, jsxs as jsxs9 } from "react/jsx-runtime";
|
|
1055
|
-
var CopyButton =
|
|
1053
|
+
var CopyButton = dynamic7(() => import("./CopyButton-UPJPMJUB.mjs"), {
|
|
1056
1054
|
ssr: false,
|
|
1057
1055
|
// optional: fallback UI while loading
|
|
1058
1056
|
loading: () => /* @__PURE__ */ jsx27("span", { className: "text-gray-400 text-xs", children: "Copy" })
|
|
@@ -1189,13 +1187,13 @@ var WidgetNode = (props) => {
|
|
|
1189
1187
|
var WidgetNode_default = WidgetNode;
|
|
1190
1188
|
|
|
1191
1189
|
// src/components/pageRenderingEngine/nodes/DivContainer.tsx
|
|
1192
|
-
import
|
|
1190
|
+
import dynamic11 from "next/dynamic";
|
|
1193
1191
|
import React22 from "react";
|
|
1194
1192
|
|
|
1195
1193
|
// src/components/pageRenderingEngine/nodes/EmbedNode.tsx
|
|
1196
|
-
import
|
|
1194
|
+
import dynamic8 from "next/dynamic";
|
|
1197
1195
|
import { jsx as jsx30 } from "react/jsx-runtime";
|
|
1198
|
-
var IframeClient =
|
|
1196
|
+
var IframeClient = dynamic8(() => import("./IframeClient-WF2KLXZB.mjs"), {
|
|
1199
1197
|
ssr: false
|
|
1200
1198
|
});
|
|
1201
1199
|
var EmbedNode = (props) => {
|
|
@@ -1429,9 +1427,9 @@ var NoDataFound = () => {
|
|
|
1429
1427
|
var NoDataFound_default = NoDataFound;
|
|
1430
1428
|
|
|
1431
1429
|
// src/components/pageRenderingEngine/nodes/ImageGalleryNode.tsx
|
|
1432
|
-
import
|
|
1430
|
+
import dynamic9 from "next/dynamic";
|
|
1433
1431
|
import { Fragment as Fragment5, jsx as jsx32, jsxs as jsxs11 } from "react/jsx-runtime";
|
|
1434
|
-
var HlsPlayer3 =
|
|
1432
|
+
var HlsPlayer3 = dynamic9(() => import("./HlsPlayer-IW52N5RG.mjs"), { ssr: false });
|
|
1435
1433
|
var deviceToMediaQuery = (device) => {
|
|
1436
1434
|
switch (device) {
|
|
1437
1435
|
case "lg":
|
|
@@ -2277,9 +2275,9 @@ var DocumentNode = (props) => {
|
|
|
2277
2275
|
var DocumentNode_default = DocumentNode;
|
|
2278
2276
|
|
|
2279
2277
|
// src/components/pageRenderingEngine/nodes/GoogleMapNode.tsx
|
|
2280
|
-
import
|
|
2278
|
+
import dynamic10 from "next/dynamic";
|
|
2281
2279
|
import { jsx as jsx34 } from "react/jsx-runtime";
|
|
2282
|
-
var IframeClient2 =
|
|
2280
|
+
var IframeClient2 = dynamic10(() => import("./IframeClient-WF2KLXZB.mjs"), {
|
|
2283
2281
|
ssr: false
|
|
2284
2282
|
});
|
|
2285
2283
|
var GoogleMapNode = (props) => {
|
|
@@ -2297,8 +2295,11 @@ var GoogleMapNode_default = GoogleMapNode;
|
|
|
2297
2295
|
|
|
2298
2296
|
// src/components/pageRenderingEngine/nodes/DivContainer.tsx
|
|
2299
2297
|
import { jsx as jsx35, jsxs as jsxs13 } from "react/jsx-runtime";
|
|
2300
|
-
var Pagination =
|
|
2301
|
-
var
|
|
2298
|
+
var Pagination = dynamic11(() => import("./Pagination-GL6B4MNO.mjs"), { ssr: true });
|
|
2299
|
+
var DataBindingControls = dynamic11(() => import("./DataBindingControls-QZ7ES2AS.mjs"), {
|
|
2300
|
+
ssr: true
|
|
2301
|
+
});
|
|
2302
|
+
var Slider = dynamic11(() => import("./Slider-554BKC7N.mjs"), {
|
|
2302
2303
|
ssr: false
|
|
2303
2304
|
});
|
|
2304
2305
|
function toCamelCase(str) {
|
|
@@ -2705,6 +2706,36 @@ var DivContainer = async (props) => {
|
|
|
2705
2706
|
noLinkColor && "no-link-color",
|
|
2706
2707
|
!!props.node.enterAnimation && "enter-animation"
|
|
2707
2708
|
].filter(Boolean).join(" ");
|
|
2709
|
+
const showDataBindingControls = Boolean(
|
|
2710
|
+
dataBindingProperties?.showFacets || dataBindingProperties?.showSortOptions || dataBindingProperties?.showSearchBar
|
|
2711
|
+
);
|
|
2712
|
+
const WrapperComponent = Wrapper;
|
|
2713
|
+
const renderedContainer = /* @__PURE__ */ jsx35(
|
|
2714
|
+
WrapperComponent,
|
|
2715
|
+
{
|
|
2716
|
+
id: guid,
|
|
2717
|
+
style: combinedStyles,
|
|
2718
|
+
className: classNames || void 0,
|
|
2719
|
+
...wrapperProps,
|
|
2720
|
+
children: dataToRender.map(
|
|
2721
|
+
(item, idx) => item?.links?.view && renderLink ? renderChildren(
|
|
2722
|
+
props.node.children,
|
|
2723
|
+
props,
|
|
2724
|
+
item,
|
|
2725
|
+
idx,
|
|
2726
|
+
props.href ? void 0 : item?.links?.view
|
|
2727
|
+
)?.map((child, i) => /* @__PURE__ */ jsx35(React22.Fragment, { children: child }, i)) : renderChildren(props.node.children, props, item, idx)
|
|
2728
|
+
)
|
|
2729
|
+
}
|
|
2730
|
+
);
|
|
2731
|
+
const paginationControl = dataBindingProperties?.enablePagination ? /* @__PURE__ */ jsx35(
|
|
2732
|
+
Pagination,
|
|
2733
|
+
{
|
|
2734
|
+
path: props.path,
|
|
2735
|
+
query: props.query,
|
|
2736
|
+
dataset: response
|
|
2737
|
+
}
|
|
2738
|
+
) : null;
|
|
2708
2739
|
return /* @__PURE__ */ jsxs13(React22.Fragment, { children: [
|
|
2709
2740
|
/* @__PURE__ */ jsx35(
|
|
2710
2741
|
"style",
|
|
@@ -2712,32 +2743,48 @@ var DivContainer = async (props) => {
|
|
|
2712
2743
|
dangerouslySetInnerHTML: { __html: cssResult.css + animationCSS }
|
|
2713
2744
|
}
|
|
2714
2745
|
),
|
|
2715
|
-
/* @__PURE__ */
|
|
2716
|
-
|
|
2717
|
-
|
|
2718
|
-
|
|
2719
|
-
|
|
2720
|
-
|
|
2721
|
-
|
|
2722
|
-
|
|
2723
|
-
|
|
2724
|
-
|
|
2725
|
-
|
|
2726
|
-
|
|
2727
|
-
|
|
2728
|
-
|
|
2729
|
-
|
|
2730
|
-
|
|
2731
|
-
|
|
2732
|
-
|
|
2733
|
-
|
|
2734
|
-
|
|
2735
|
-
|
|
2736
|
-
|
|
2737
|
-
|
|
2738
|
-
|
|
2739
|
-
|
|
2740
|
-
|
|
2746
|
+
showDataBindingControls ? /* @__PURE__ */ jsxs13(React22.Fragment, { children: [
|
|
2747
|
+
/* @__PURE__ */ jsx35(
|
|
2748
|
+
DataBindingControls,
|
|
2749
|
+
{
|
|
2750
|
+
mode: "toolbar",
|
|
2751
|
+
path: props.path,
|
|
2752
|
+
query: props.query,
|
|
2753
|
+
facets: response?.facets,
|
|
2754
|
+
sortOptions: response?.sortOptions,
|
|
2755
|
+
showSortOptions: dataBindingProperties?.showSortOptions,
|
|
2756
|
+
showSearchBar: dataBindingProperties?.showSearchBar
|
|
2757
|
+
}
|
|
2758
|
+
),
|
|
2759
|
+
/* @__PURE__ */ jsxs13(
|
|
2760
|
+
"div",
|
|
2761
|
+
{
|
|
2762
|
+
className: dataBindingProperties?.showFacets ? "grid items-start gap-6 lg:grid-cols-[minmax(0,1fr)_18rem]" : void 0,
|
|
2763
|
+
children: [
|
|
2764
|
+
/* @__PURE__ */ jsxs13("div", { className: "min-w-0", children: [
|
|
2765
|
+
renderedContainer,
|
|
2766
|
+
paginationControl
|
|
2767
|
+
] }),
|
|
2768
|
+
dataBindingProperties?.showFacets && /* @__PURE__ */ jsxs13("aside", { className: "border bg-default p-3 lg:sticky lg:top-[90px] lg:self-start", children: [
|
|
2769
|
+
/* @__PURE__ */ jsx35("h2", { className: "mb-2 text-lg font-semibold", children: "Filters" }),
|
|
2770
|
+
/* @__PURE__ */ jsx35(
|
|
2771
|
+
DataBindingControls,
|
|
2772
|
+
{
|
|
2773
|
+
mode: "facets",
|
|
2774
|
+
path: props.path,
|
|
2775
|
+
query: props.query,
|
|
2776
|
+
facets: response?.facets,
|
|
2777
|
+
showFacets: dataBindingProperties.showFacets
|
|
2778
|
+
}
|
|
2779
|
+
)
|
|
2780
|
+
] })
|
|
2781
|
+
]
|
|
2782
|
+
}
|
|
2783
|
+
)
|
|
2784
|
+
] }) : /* @__PURE__ */ jsxs13(React22.Fragment, { children: [
|
|
2785
|
+
renderedContainer,
|
|
2786
|
+
paginationControl && /* @__PURE__ */ jsx35("div", { children: paginationControl })
|
|
2787
|
+
] })
|
|
2741
2788
|
] });
|
|
2742
2789
|
};
|
|
2743
2790
|
var DivContainer_default = DivContainer;
|
package/dist/server.d.mts
CHANGED
|
@@ -18,14 +18,25 @@ interface ActionResponse<T> {
|
|
|
18
18
|
result?: T;
|
|
19
19
|
}
|
|
20
20
|
|
|
21
|
+
interface FacetValue {
|
|
22
|
+
value: string;
|
|
23
|
+
count: number;
|
|
24
|
+
}
|
|
25
|
+
type Facets = Record<string, FacetValue[]>;
|
|
26
|
+
interface SortOption {
|
|
27
|
+
name: string;
|
|
28
|
+
title: string;
|
|
29
|
+
direction: string;
|
|
30
|
+
}
|
|
21
31
|
interface QueryResponse<T> {
|
|
22
|
-
isSuccessful?: boolean;
|
|
23
|
-
message?: string;
|
|
24
|
-
errorNumber?: string;
|
|
25
|
-
result?: T[];
|
|
26
|
-
parent?: T;
|
|
27
32
|
count?: number;
|
|
28
|
-
|
|
33
|
+
result?: T[];
|
|
34
|
+
continuationToken?: string | null;
|
|
35
|
+
message?: string;
|
|
36
|
+
facets?: Facets;
|
|
37
|
+
sortOptions?: SortOption[];
|
|
38
|
+
errorNumber?: number;
|
|
39
|
+
responseGeneratedAtUTC?: string;
|
|
29
40
|
}
|
|
30
41
|
|
|
31
42
|
interface SingleResponse<T> {
|
package/dist/server.d.ts
CHANGED
|
@@ -18,14 +18,25 @@ interface ActionResponse<T> {
|
|
|
18
18
|
result?: T;
|
|
19
19
|
}
|
|
20
20
|
|
|
21
|
+
interface FacetValue {
|
|
22
|
+
value: string;
|
|
23
|
+
count: number;
|
|
24
|
+
}
|
|
25
|
+
type Facets = Record<string, FacetValue[]>;
|
|
26
|
+
interface SortOption {
|
|
27
|
+
name: string;
|
|
28
|
+
title: string;
|
|
29
|
+
direction: string;
|
|
30
|
+
}
|
|
21
31
|
interface QueryResponse<T> {
|
|
22
|
-
isSuccessful?: boolean;
|
|
23
|
-
message?: string;
|
|
24
|
-
errorNumber?: string;
|
|
25
|
-
result?: T[];
|
|
26
|
-
parent?: T;
|
|
27
32
|
count?: number;
|
|
28
|
-
|
|
33
|
+
result?: T[];
|
|
34
|
+
continuationToken?: string | null;
|
|
35
|
+
message?: string;
|
|
36
|
+
facets?: Facets;
|
|
37
|
+
sortOptions?: SortOption[];
|
|
38
|
+
errorNumber?: number;
|
|
39
|
+
responseGeneratedAtUTC?: string;
|
|
29
40
|
}
|
|
30
41
|
|
|
31
42
|
interface SingleResponse<T> {
|