@acoustte-digital-services/digitalstore-controls-dev 0.8.1-dev.20260415045826 → 0.8.1-dev.20260415054401
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/index.js +13 -24
- package/dist/index.mjs +35 -46
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -4330,33 +4330,22 @@ var WidgetNode = (props) => {
|
|
|
4330
4330
|
if (!widgetCode) {
|
|
4331
4331
|
return /* @__PURE__ */ (0, import_jsx_runtime58.jsx)(import_jsx_runtime58.Fragment, { children: "Invalid widget" });
|
|
4332
4332
|
}
|
|
4333
|
-
const SelectedWidget = getWidget(widgetCode);
|
|
4334
|
-
if (!SelectedWidget) {
|
|
4335
|
-
if (process.env.NODE_ENV !== "production") {
|
|
4336
|
-
console.warn("Widget not found:", widgetCode);
|
|
4337
|
-
}
|
|
4338
|
-
return /* @__PURE__ */ (0, import_jsx_runtime58.jsxs)(import_jsx_runtime58.Fragment, { children: [
|
|
4339
|
-
"Widget not found: ",
|
|
4340
|
-
widgetCode
|
|
4341
|
-
] });
|
|
4342
|
-
}
|
|
4343
4333
|
const widgetParams = getWidgetParameters();
|
|
4334
|
+
const WidgetRenderer = props.widgetRenderer;
|
|
4344
4335
|
return (
|
|
4345
4336
|
// eslint-disable-next-line react-hooks/static-components
|
|
4346
|
-
/* @__PURE__ */ (0, import_jsx_runtime58.
|
|
4347
|
-
|
|
4348
|
-
|
|
4349
|
-
|
|
4350
|
-
|
|
4351
|
-
|
|
4352
|
-
|
|
4353
|
-
|
|
4354
|
-
|
|
4355
|
-
|
|
4356
|
-
|
|
4357
|
-
|
|
4358
|
-
)
|
|
4359
|
-
] })
|
|
4337
|
+
/* @__PURE__ */ (0, import_jsx_runtime58.jsx)(import_react44.default.Fragment, { children: /* @__PURE__ */ (0, import_jsx_runtime58.jsx)(
|
|
4338
|
+
WidgetRenderer,
|
|
4339
|
+
{
|
|
4340
|
+
params: widgetParams,
|
|
4341
|
+
query: props.query,
|
|
4342
|
+
session: props.session,
|
|
4343
|
+
host: props.host,
|
|
4344
|
+
path: props.path,
|
|
4345
|
+
apiBaseUrl: props.apiBaseUrl,
|
|
4346
|
+
widgetCode
|
|
4347
|
+
}
|
|
4348
|
+
) })
|
|
4360
4349
|
);
|
|
4361
4350
|
};
|
|
4362
4351
|
var WidgetNode_default = WidgetNode;
|
package/dist/index.mjs
CHANGED
|
@@ -3308,7 +3308,7 @@ var HorizontalRuleNode_default = HorizontalRuleNode;
|
|
|
3308
3308
|
|
|
3309
3309
|
// src/components/pageRenderingEngine/nodes/WidgetNode.tsx
|
|
3310
3310
|
import React38 from "react";
|
|
3311
|
-
import { Fragment as Fragment7, jsx as jsx51
|
|
3311
|
+
import { Fragment as Fragment7, jsx as jsx51 } from "react/jsx-runtime";
|
|
3312
3312
|
var WidgetNode = (props) => {
|
|
3313
3313
|
const getWidgetParameters = () => {
|
|
3314
3314
|
const widgetInputParameters = {
|
|
@@ -3367,33 +3367,22 @@ var WidgetNode = (props) => {
|
|
|
3367
3367
|
if (!widgetCode) {
|
|
3368
3368
|
return /* @__PURE__ */ jsx51(Fragment7, { children: "Invalid widget" });
|
|
3369
3369
|
}
|
|
3370
|
-
const SelectedWidget = getWidget(widgetCode);
|
|
3371
|
-
if (!SelectedWidget) {
|
|
3372
|
-
if (process.env.NODE_ENV !== "production") {
|
|
3373
|
-
console.warn("Widget not found:", widgetCode);
|
|
3374
|
-
}
|
|
3375
|
-
return /* @__PURE__ */ jsxs29(Fragment7, { children: [
|
|
3376
|
-
"Widget not found: ",
|
|
3377
|
-
widgetCode
|
|
3378
|
-
] });
|
|
3379
|
-
}
|
|
3380
3370
|
const widgetParams = getWidgetParameters();
|
|
3371
|
+
const WidgetRenderer = props.widgetRenderer;
|
|
3381
3372
|
return (
|
|
3382
3373
|
// eslint-disable-next-line react-hooks/static-components
|
|
3383
|
-
/* @__PURE__ */
|
|
3384
|
-
|
|
3385
|
-
|
|
3386
|
-
|
|
3387
|
-
|
|
3388
|
-
|
|
3389
|
-
|
|
3390
|
-
|
|
3391
|
-
|
|
3392
|
-
|
|
3393
|
-
|
|
3394
|
-
|
|
3395
|
-
)
|
|
3396
|
-
] })
|
|
3374
|
+
/* @__PURE__ */ jsx51(React38.Fragment, { children: /* @__PURE__ */ jsx51(
|
|
3375
|
+
WidgetRenderer,
|
|
3376
|
+
{
|
|
3377
|
+
params: widgetParams,
|
|
3378
|
+
query: props.query,
|
|
3379
|
+
session: props.session,
|
|
3380
|
+
host: props.host,
|
|
3381
|
+
path: props.path,
|
|
3382
|
+
apiBaseUrl: props.apiBaseUrl,
|
|
3383
|
+
widgetCode
|
|
3384
|
+
}
|
|
3385
|
+
) })
|
|
3397
3386
|
);
|
|
3398
3387
|
};
|
|
3399
3388
|
var WidgetNode_default = WidgetNode;
|
|
@@ -3433,7 +3422,7 @@ var InputControlNode = (props) => {
|
|
|
3433
3422
|
var InputControlNode_default = InputControlNode;
|
|
3434
3423
|
|
|
3435
3424
|
// src/components/pageRenderingEngine/nodes/FormContainerNode.tsx
|
|
3436
|
-
import { jsx as jsx53, jsxs as
|
|
3425
|
+
import { jsx as jsx53, jsxs as jsxs29 } from "react/jsx-runtime";
|
|
3437
3426
|
var FormContainerNode = (props) => {
|
|
3438
3427
|
const NodeTypes2 = {
|
|
3439
3428
|
["input-control"]: InputControlNode_default
|
|
@@ -3463,7 +3452,7 @@ var FormContainerNode = (props) => {
|
|
|
3463
3452
|
};
|
|
3464
3453
|
fetchInitialData();
|
|
3465
3454
|
}, [props.apiBaseUrl, props.node, props.session, props.routeParameters]);
|
|
3466
|
-
return /* @__PURE__ */
|
|
3455
|
+
return /* @__PURE__ */ jsxs29("form", { className: "group space-y-6 pb-6 overflow-y-auto", noValidate: true, ref: formRef, children: [
|
|
3467
3456
|
node.children && node.children.map((node2, index) => {
|
|
3468
3457
|
{
|
|
3469
3458
|
}
|
|
@@ -3506,7 +3495,7 @@ var EmbedNode_default = EmbedNode;
|
|
|
3506
3495
|
|
|
3507
3496
|
// src/components/Slider.tsx
|
|
3508
3497
|
import React40, { useState as useState6, useEffect as useEffect8, Children, cloneElement } from "react";
|
|
3509
|
-
import { Fragment as Fragment8, jsx as jsx55, jsxs as
|
|
3498
|
+
import { Fragment as Fragment8, jsx as jsx55, jsxs as jsxs30 } from "react/jsx-runtime";
|
|
3510
3499
|
var Slider = ({
|
|
3511
3500
|
children,
|
|
3512
3501
|
slidesToShow = 4,
|
|
@@ -3626,7 +3615,7 @@ var Slider = ({
|
|
|
3626
3615
|
return "bottom-4";
|
|
3627
3616
|
}
|
|
3628
3617
|
};
|
|
3629
|
-
return /* @__PURE__ */
|
|
3618
|
+
return /* @__PURE__ */ jsxs30(
|
|
3630
3619
|
"div",
|
|
3631
3620
|
{
|
|
3632
3621
|
className: `relative w-full overflow-hidden ${className}`,
|
|
@@ -3644,7 +3633,7 @@ var Slider = ({
|
|
|
3644
3633
|
children: slides
|
|
3645
3634
|
}
|
|
3646
3635
|
),
|
|
3647
|
-
show_arrows && /* @__PURE__ */
|
|
3636
|
+
show_arrows && /* @__PURE__ */ jsxs30(Fragment8, { children: [
|
|
3648
3637
|
/* @__PURE__ */ jsx55(
|
|
3649
3638
|
ArrowButton,
|
|
3650
3639
|
{
|
|
@@ -3655,7 +3644,7 @@ var Slider = ({
|
|
|
3655
3644
|
children: /* @__PURE__ */ jsx55("svg", { xmlns: "http://www.w3.org/2000/svg", fill: "none", viewBox: "0 0 24 24", strokeWidth: 1.5, stroke: "currentColor", className: "w-6 h-6", children: /* @__PURE__ */ jsx55("path", { strokeLinecap: "round", strokeLinejoin: "round", d: "M15.75 19.5 8.25 12l7.5-7.5" }) })
|
|
3656
3645
|
}
|
|
3657
3646
|
),
|
|
3658
|
-
/* @__PURE__ */
|
|
3647
|
+
/* @__PURE__ */ jsxs30(
|
|
3659
3648
|
ArrowButton,
|
|
3660
3649
|
{
|
|
3661
3650
|
direction: "right",
|
|
@@ -3804,7 +3793,7 @@ var ProgressPill = ({
|
|
|
3804
3793
|
}
|
|
3805
3794
|
return null;
|
|
3806
3795
|
};
|
|
3807
|
-
return /* @__PURE__ */
|
|
3796
|
+
return /* @__PURE__ */ jsxs30(
|
|
3808
3797
|
"button",
|
|
3809
3798
|
{
|
|
3810
3799
|
className: `${baseClasses} ${getStyleClasses()}`,
|
|
@@ -3980,9 +3969,9 @@ var PathUtility = class {
|
|
|
3980
3969
|
var PathUtility_default = new PathUtility();
|
|
3981
3970
|
|
|
3982
3971
|
// src/components/NoDataFound.tsx
|
|
3983
|
-
import { jsx as jsx56, jsxs as
|
|
3972
|
+
import { jsx as jsx56, jsxs as jsxs31 } from "react/jsx-runtime";
|
|
3984
3973
|
var NoDataFound = () => {
|
|
3985
|
-
return /* @__PURE__ */
|
|
3974
|
+
return /* @__PURE__ */ jsxs31("div", { className: "flex flex-col items-center justify-center py-12 px-4 text-center bg-neutral-weak", children: [
|
|
3986
3975
|
/* @__PURE__ */ jsx56("div", { className: "mb-5", children: /* @__PURE__ */ jsx56("div", { className: "mx-auto w-20 h-20 rounded-full flex items-center justify-center bg-neutral-soft", children: /* @__PURE__ */ jsx56(
|
|
3987
3976
|
"svg",
|
|
3988
3977
|
{
|
|
@@ -4010,7 +3999,7 @@ var NoDataFound_default = NoDataFound;
|
|
|
4010
3999
|
|
|
4011
4000
|
// src/components/Pagination.tsx
|
|
4012
4001
|
import { useMemo } from "react";
|
|
4013
|
-
import { jsx as jsx57, jsxs as
|
|
4002
|
+
import { jsx as jsx57, jsxs as jsxs32 } from "react/jsx-runtime";
|
|
4014
4003
|
var Pagination = (props) => {
|
|
4015
4004
|
const { dataset, path, query, showPageSizeSelector = false, showJumpToPage = false } = props;
|
|
4016
4005
|
const builder = useMemo(() => {
|
|
@@ -4081,11 +4070,11 @@ var Pagination = (props) => {
|
|
|
4081
4070
|
);
|
|
4082
4071
|
};
|
|
4083
4072
|
if (totalPages <= 1 && totalItems === 0) return null;
|
|
4084
|
-
return /* @__PURE__ */
|
|
4085
|
-
/* @__PURE__ */
|
|
4086
|
-
/* @__PURE__ */
|
|
4073
|
+
return /* @__PURE__ */ jsxs32("div", { className: "py-6 border-t bg-default", children: [
|
|
4074
|
+
/* @__PURE__ */ jsxs32("div", { className: "flex flex-col sm:flex-row items-center justify-between gap-4", children: [
|
|
4075
|
+
/* @__PURE__ */ jsxs32("div", { className: "text-sm", children: [
|
|
4087
4076
|
"Showing ",
|
|
4088
|
-
/* @__PURE__ */
|
|
4077
|
+
/* @__PURE__ */ jsxs32("span", { className: "font-semibold", children: [
|
|
4089
4078
|
startItem,
|
|
4090
4079
|
"-",
|
|
4091
4080
|
endItem
|
|
@@ -4095,8 +4084,8 @@ var Pagination = (props) => {
|
|
|
4095
4084
|
/* @__PURE__ */ jsx57("span", { className: "font-semibold", children: totalItems.toLocaleString() }),
|
|
4096
4085
|
" results"
|
|
4097
4086
|
] }),
|
|
4098
|
-
totalPages > 1 && /* @__PURE__ */
|
|
4099
|
-
/* @__PURE__ */
|
|
4087
|
+
totalPages > 1 && /* @__PURE__ */ jsxs32("div", { className: "flex items-center space-x-1", children: [
|
|
4088
|
+
/* @__PURE__ */ jsxs32(
|
|
4100
4089
|
NavigationButton,
|
|
4101
4090
|
{
|
|
4102
4091
|
page: activePageNumber - 1,
|
|
@@ -4121,7 +4110,7 @@ var Pagination = (props) => {
|
|
|
4121
4110
|
const page = item;
|
|
4122
4111
|
return /* @__PURE__ */ jsx57(PageButton, { page, children: page }, page);
|
|
4123
4112
|
}),
|
|
4124
|
-
/* @__PURE__ */
|
|
4113
|
+
/* @__PURE__ */ jsxs32(
|
|
4125
4114
|
NavigationButton,
|
|
4126
4115
|
{
|
|
4127
4116
|
page: activePageNumber + 1,
|
|
@@ -4133,7 +4122,7 @@ var Pagination = (props) => {
|
|
|
4133
4122
|
}
|
|
4134
4123
|
)
|
|
4135
4124
|
] }),
|
|
4136
|
-
showJumpToPage && totalPages > 5 && /* @__PURE__ */
|
|
4125
|
+
showJumpToPage && totalPages > 5 && /* @__PURE__ */ jsxs32("div", { className: "flex items-center space-x-2", children: [
|
|
4137
4126
|
/* @__PURE__ */ jsx57("span", { className: "text-sm", children: "Go to:" }),
|
|
4138
4127
|
/* @__PURE__ */ jsx57("div", { className: "relative", children: /* @__PURE__ */ jsx57(
|
|
4139
4128
|
"input",
|
|
@@ -4156,7 +4145,7 @@ var Pagination = (props) => {
|
|
|
4156
4145
|
) })
|
|
4157
4146
|
] })
|
|
4158
4147
|
] }),
|
|
4159
|
-
showPageSizeSelector && /* @__PURE__ */ jsx57("div", { className: "mt-4 pt-4 border-t bg-default", children: /* @__PURE__ */
|
|
4148
|
+
showPageSizeSelector && /* @__PURE__ */ jsx57("div", { className: "mt-4 pt-4 border-t bg-default", children: /* @__PURE__ */ jsxs32("div", { className: "flex items-center justify-center space-x-2", children: [
|
|
4160
4149
|
/* @__PURE__ */ jsx57("span", { className: "text-sm", children: "Show:" }),
|
|
4161
4150
|
/* @__PURE__ */ jsx57("div", { className: "flex space-x-1", children: [10, 25, 50, 100].map((size) => /* @__PURE__ */ jsx57(
|
|
4162
4151
|
Hyperlink,
|
|
@@ -4270,7 +4259,7 @@ var ImageGalleryNode_default = ImageGalleryNode;
|
|
|
4270
4259
|
|
|
4271
4260
|
// src/components/pageRenderingEngine/nodes/DivContainer.tsx
|
|
4272
4261
|
import Link2 from "next/link";
|
|
4273
|
-
import { jsx as jsx59, jsxs as
|
|
4262
|
+
import { jsx as jsx59, jsxs as jsxs33 } from "react/jsx-runtime";
|
|
4274
4263
|
function toCamelCase(str) {
|
|
4275
4264
|
return str.replace(/-([a-z])/g, (_, letter) => letter.toUpperCase());
|
|
4276
4265
|
}
|
|
@@ -4594,7 +4583,7 @@ var DivContainer = async (props) => {
|
|
|
4594
4583
|
props.node.autoFormat && "auto-format",
|
|
4595
4584
|
props.node.bgClass
|
|
4596
4585
|
].filter(Boolean).join(" ");
|
|
4597
|
-
return /* @__PURE__ */
|
|
4586
|
+
return /* @__PURE__ */ jsxs33(React42.Fragment, { children: [
|
|
4598
4587
|
/* @__PURE__ */ jsx59("style", { dangerouslySetInnerHTML: { __html: cssResult.css + animationCSS } }),
|
|
4599
4588
|
/* @__PURE__ */ jsx59(React42.Fragment, { children: /* @__PURE__ */ jsx59(
|
|
4600
4589
|
Wrapper,
|
package/package.json
CHANGED