@acoustte-digital-services/digitalstore-controls-dev 0.8.1-dev.20260415050509 → 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 +12 -24
- package/dist/index.mjs +34 -46
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -4330,34 +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();
|
|
4344
4334
|
const WidgetRenderer = props.widgetRenderer;
|
|
4345
4335
|
return (
|
|
4346
4336
|
// eslint-disable-next-line react-hooks/static-components
|
|
4347
|
-
/* @__PURE__ */ (0, import_jsx_runtime58.
|
|
4348
|
-
|
|
4349
|
-
|
|
4350
|
-
|
|
4351
|
-
|
|
4352
|
-
|
|
4353
|
-
|
|
4354
|
-
|
|
4355
|
-
|
|
4356
|
-
|
|
4357
|
-
|
|
4358
|
-
|
|
4359
|
-
)
|
|
4360
|
-
] })
|
|
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
|
+
) })
|
|
4361
4349
|
);
|
|
4362
4350
|
};
|
|
4363
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,34 +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();
|
|
3381
3371
|
const WidgetRenderer = props.widgetRenderer;
|
|
3382
3372
|
return (
|
|
3383
3373
|
// eslint-disable-next-line react-hooks/static-components
|
|
3384
|
-
/* @__PURE__ */
|
|
3385
|
-
|
|
3386
|
-
|
|
3387
|
-
|
|
3388
|
-
|
|
3389
|
-
|
|
3390
|
-
|
|
3391
|
-
|
|
3392
|
-
|
|
3393
|
-
|
|
3394
|
-
|
|
3395
|
-
|
|
3396
|
-
)
|
|
3397
|
-
] })
|
|
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
|
+
) })
|
|
3398
3386
|
);
|
|
3399
3387
|
};
|
|
3400
3388
|
var WidgetNode_default = WidgetNode;
|
|
@@ -3434,7 +3422,7 @@ var InputControlNode = (props) => {
|
|
|
3434
3422
|
var InputControlNode_default = InputControlNode;
|
|
3435
3423
|
|
|
3436
3424
|
// src/components/pageRenderingEngine/nodes/FormContainerNode.tsx
|
|
3437
|
-
import { jsx as jsx53, jsxs as
|
|
3425
|
+
import { jsx as jsx53, jsxs as jsxs29 } from "react/jsx-runtime";
|
|
3438
3426
|
var FormContainerNode = (props) => {
|
|
3439
3427
|
const NodeTypes2 = {
|
|
3440
3428
|
["input-control"]: InputControlNode_default
|
|
@@ -3464,7 +3452,7 @@ var FormContainerNode = (props) => {
|
|
|
3464
3452
|
};
|
|
3465
3453
|
fetchInitialData();
|
|
3466
3454
|
}, [props.apiBaseUrl, props.node, props.session, props.routeParameters]);
|
|
3467
|
-
return /* @__PURE__ */
|
|
3455
|
+
return /* @__PURE__ */ jsxs29("form", { className: "group space-y-6 pb-6 overflow-y-auto", noValidate: true, ref: formRef, children: [
|
|
3468
3456
|
node.children && node.children.map((node2, index) => {
|
|
3469
3457
|
{
|
|
3470
3458
|
}
|
|
@@ -3507,7 +3495,7 @@ var EmbedNode_default = EmbedNode;
|
|
|
3507
3495
|
|
|
3508
3496
|
// src/components/Slider.tsx
|
|
3509
3497
|
import React40, { useState as useState6, useEffect as useEffect8, Children, cloneElement } from "react";
|
|
3510
|
-
import { Fragment as Fragment8, jsx as jsx55, jsxs as
|
|
3498
|
+
import { Fragment as Fragment8, jsx as jsx55, jsxs as jsxs30 } from "react/jsx-runtime";
|
|
3511
3499
|
var Slider = ({
|
|
3512
3500
|
children,
|
|
3513
3501
|
slidesToShow = 4,
|
|
@@ -3627,7 +3615,7 @@ var Slider = ({
|
|
|
3627
3615
|
return "bottom-4";
|
|
3628
3616
|
}
|
|
3629
3617
|
};
|
|
3630
|
-
return /* @__PURE__ */
|
|
3618
|
+
return /* @__PURE__ */ jsxs30(
|
|
3631
3619
|
"div",
|
|
3632
3620
|
{
|
|
3633
3621
|
className: `relative w-full overflow-hidden ${className}`,
|
|
@@ -3645,7 +3633,7 @@ var Slider = ({
|
|
|
3645
3633
|
children: slides
|
|
3646
3634
|
}
|
|
3647
3635
|
),
|
|
3648
|
-
show_arrows && /* @__PURE__ */
|
|
3636
|
+
show_arrows && /* @__PURE__ */ jsxs30(Fragment8, { children: [
|
|
3649
3637
|
/* @__PURE__ */ jsx55(
|
|
3650
3638
|
ArrowButton,
|
|
3651
3639
|
{
|
|
@@ -3656,7 +3644,7 @@ var Slider = ({
|
|
|
3656
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" }) })
|
|
3657
3645
|
}
|
|
3658
3646
|
),
|
|
3659
|
-
/* @__PURE__ */
|
|
3647
|
+
/* @__PURE__ */ jsxs30(
|
|
3660
3648
|
ArrowButton,
|
|
3661
3649
|
{
|
|
3662
3650
|
direction: "right",
|
|
@@ -3805,7 +3793,7 @@ var ProgressPill = ({
|
|
|
3805
3793
|
}
|
|
3806
3794
|
return null;
|
|
3807
3795
|
};
|
|
3808
|
-
return /* @__PURE__ */
|
|
3796
|
+
return /* @__PURE__ */ jsxs30(
|
|
3809
3797
|
"button",
|
|
3810
3798
|
{
|
|
3811
3799
|
className: `${baseClasses} ${getStyleClasses()}`,
|
|
@@ -3981,9 +3969,9 @@ var PathUtility = class {
|
|
|
3981
3969
|
var PathUtility_default = new PathUtility();
|
|
3982
3970
|
|
|
3983
3971
|
// src/components/NoDataFound.tsx
|
|
3984
|
-
import { jsx as jsx56, jsxs as
|
|
3972
|
+
import { jsx as jsx56, jsxs as jsxs31 } from "react/jsx-runtime";
|
|
3985
3973
|
var NoDataFound = () => {
|
|
3986
|
-
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: [
|
|
3987
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(
|
|
3988
3976
|
"svg",
|
|
3989
3977
|
{
|
|
@@ -4011,7 +3999,7 @@ var NoDataFound_default = NoDataFound;
|
|
|
4011
3999
|
|
|
4012
4000
|
// src/components/Pagination.tsx
|
|
4013
4001
|
import { useMemo } from "react";
|
|
4014
|
-
import { jsx as jsx57, jsxs as
|
|
4002
|
+
import { jsx as jsx57, jsxs as jsxs32 } from "react/jsx-runtime";
|
|
4015
4003
|
var Pagination = (props) => {
|
|
4016
4004
|
const { dataset, path, query, showPageSizeSelector = false, showJumpToPage = false } = props;
|
|
4017
4005
|
const builder = useMemo(() => {
|
|
@@ -4082,11 +4070,11 @@ var Pagination = (props) => {
|
|
|
4082
4070
|
);
|
|
4083
4071
|
};
|
|
4084
4072
|
if (totalPages <= 1 && totalItems === 0) return null;
|
|
4085
|
-
return /* @__PURE__ */
|
|
4086
|
-
/* @__PURE__ */
|
|
4087
|
-
/* @__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: [
|
|
4088
4076
|
"Showing ",
|
|
4089
|
-
/* @__PURE__ */
|
|
4077
|
+
/* @__PURE__ */ jsxs32("span", { className: "font-semibold", children: [
|
|
4090
4078
|
startItem,
|
|
4091
4079
|
"-",
|
|
4092
4080
|
endItem
|
|
@@ -4096,8 +4084,8 @@ var Pagination = (props) => {
|
|
|
4096
4084
|
/* @__PURE__ */ jsx57("span", { className: "font-semibold", children: totalItems.toLocaleString() }),
|
|
4097
4085
|
" results"
|
|
4098
4086
|
] }),
|
|
4099
|
-
totalPages > 1 && /* @__PURE__ */
|
|
4100
|
-
/* @__PURE__ */
|
|
4087
|
+
totalPages > 1 && /* @__PURE__ */ jsxs32("div", { className: "flex items-center space-x-1", children: [
|
|
4088
|
+
/* @__PURE__ */ jsxs32(
|
|
4101
4089
|
NavigationButton,
|
|
4102
4090
|
{
|
|
4103
4091
|
page: activePageNumber - 1,
|
|
@@ -4122,7 +4110,7 @@ var Pagination = (props) => {
|
|
|
4122
4110
|
const page = item;
|
|
4123
4111
|
return /* @__PURE__ */ jsx57(PageButton, { page, children: page }, page);
|
|
4124
4112
|
}),
|
|
4125
|
-
/* @__PURE__ */
|
|
4113
|
+
/* @__PURE__ */ jsxs32(
|
|
4126
4114
|
NavigationButton,
|
|
4127
4115
|
{
|
|
4128
4116
|
page: activePageNumber + 1,
|
|
@@ -4134,7 +4122,7 @@ var Pagination = (props) => {
|
|
|
4134
4122
|
}
|
|
4135
4123
|
)
|
|
4136
4124
|
] }),
|
|
4137
|
-
showJumpToPage && totalPages > 5 && /* @__PURE__ */
|
|
4125
|
+
showJumpToPage && totalPages > 5 && /* @__PURE__ */ jsxs32("div", { className: "flex items-center space-x-2", children: [
|
|
4138
4126
|
/* @__PURE__ */ jsx57("span", { className: "text-sm", children: "Go to:" }),
|
|
4139
4127
|
/* @__PURE__ */ jsx57("div", { className: "relative", children: /* @__PURE__ */ jsx57(
|
|
4140
4128
|
"input",
|
|
@@ -4157,7 +4145,7 @@ var Pagination = (props) => {
|
|
|
4157
4145
|
) })
|
|
4158
4146
|
] })
|
|
4159
4147
|
] }),
|
|
4160
|
-
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: [
|
|
4161
4149
|
/* @__PURE__ */ jsx57("span", { className: "text-sm", children: "Show:" }),
|
|
4162
4150
|
/* @__PURE__ */ jsx57("div", { className: "flex space-x-1", children: [10, 25, 50, 100].map((size) => /* @__PURE__ */ jsx57(
|
|
4163
4151
|
Hyperlink,
|
|
@@ -4271,7 +4259,7 @@ var ImageGalleryNode_default = ImageGalleryNode;
|
|
|
4271
4259
|
|
|
4272
4260
|
// src/components/pageRenderingEngine/nodes/DivContainer.tsx
|
|
4273
4261
|
import Link2 from "next/link";
|
|
4274
|
-
import { jsx as jsx59, jsxs as
|
|
4262
|
+
import { jsx as jsx59, jsxs as jsxs33 } from "react/jsx-runtime";
|
|
4275
4263
|
function toCamelCase(str) {
|
|
4276
4264
|
return str.replace(/-([a-z])/g, (_, letter) => letter.toUpperCase());
|
|
4277
4265
|
}
|
|
@@ -4595,7 +4583,7 @@ var DivContainer = async (props) => {
|
|
|
4595
4583
|
props.node.autoFormat && "auto-format",
|
|
4596
4584
|
props.node.bgClass
|
|
4597
4585
|
].filter(Boolean).join(" ");
|
|
4598
|
-
return /* @__PURE__ */
|
|
4586
|
+
return /* @__PURE__ */ jsxs33(React42.Fragment, { children: [
|
|
4599
4587
|
/* @__PURE__ */ jsx59("style", { dangerouslySetInnerHTML: { __html: cssResult.css + animationCSS } }),
|
|
4600
4588
|
/* @__PURE__ */ jsx59(React42.Fragment, { children: /* @__PURE__ */ jsx59(
|
|
4601
4589
|
Wrapper,
|
package/package.json
CHANGED