@clyrex-digital/clyrex-controls-dev 0.8.1-dev.20260729064437 → 0.8.1-dev.20260803093422
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/{HlsPlayer-5AWFZ2P6.mjs → HlsPlayer-2P7SBFDP.mjs} +10 -2
- package/dist/{HlsPlayer-57543DTW.mjs → HlsPlayer-TZM3MFPW.mjs} +10 -2
- package/dist/{InputControlClient-VFHLKYVF.mjs → InputControlClient-XR37ZIQ2.mjs} +12 -4
- package/dist/{chunk-6JFCMNX2.mjs → chunk-65QPOTZ4.mjs} +16 -6
- package/dist/index.js +444 -410
- package/dist/index.mjs +5 -5
- package/dist/server.js +10 -2
- package/dist/server.mjs +3 -3
- package/package.json +1 -1
|
@@ -328,8 +328,16 @@ var HlsPlayer = React.memo(
|
|
|
328
328
|
loop,
|
|
329
329
|
playsInline: true,
|
|
330
330
|
preload: playOptions === "autoplay" ? "auto" : "none",
|
|
331
|
-
onClick:
|
|
332
|
-
|
|
331
|
+
onClick: (e) => {
|
|
332
|
+
e.preventDefault();
|
|
333
|
+
e.stopPropagation();
|
|
334
|
+
handleVideoClick();
|
|
335
|
+
},
|
|
336
|
+
onDoubleClick: (e) => {
|
|
337
|
+
e.preventDefault();
|
|
338
|
+
e.stopPropagation();
|
|
339
|
+
handleVideoDoubleClick();
|
|
340
|
+
},
|
|
333
341
|
children: playOptions === "autoplay" && resolvedSources.map(({ src, media }, i) => /* @__PURE__ */ jsx(
|
|
334
342
|
"source",
|
|
335
343
|
{
|
|
@@ -326,8 +326,16 @@ var HlsPlayer = React.memo(
|
|
|
326
326
|
loop,
|
|
327
327
|
playsInline: true,
|
|
328
328
|
preload: playOptions === "autoplay" ? "auto" : "none",
|
|
329
|
-
onClick:
|
|
330
|
-
|
|
329
|
+
onClick: (e) => {
|
|
330
|
+
e.preventDefault();
|
|
331
|
+
e.stopPropagation();
|
|
332
|
+
handleVideoClick();
|
|
333
|
+
},
|
|
334
|
+
onDoubleClick: (e) => {
|
|
335
|
+
e.preventDefault();
|
|
336
|
+
e.stopPropagation();
|
|
337
|
+
handleVideoDoubleClick();
|
|
338
|
+
},
|
|
331
339
|
children: playOptions === "autoplay" && resolvedSources.map(({ src, media }, i) => /* @__PURE__ */ jsx(
|
|
332
340
|
"source",
|
|
333
341
|
{
|
|
@@ -21,7 +21,7 @@ import {
|
|
|
21
21
|
Select_default,
|
|
22
22
|
Switcher_default,
|
|
23
23
|
TimeInput_default
|
|
24
|
-
} from "./chunk-
|
|
24
|
+
} from "./chunk-65QPOTZ4.mjs";
|
|
25
25
|
import {
|
|
26
26
|
Hyperlink,
|
|
27
27
|
Icon_default,
|
|
@@ -557,8 +557,15 @@ var SwitchInput = (props) => {
|
|
|
557
557
|
};
|
|
558
558
|
var SwitchInput_default = SwitchInput;
|
|
559
559
|
|
|
560
|
-
// src/components/controls/edit/
|
|
560
|
+
// src/components/controls/edit/ReferenceInput.tsx
|
|
561
561
|
import { jsx as jsx4 } from "react/jsx-runtime";
|
|
562
|
+
var ReferenceInput = (props) => {
|
|
563
|
+
return /* @__PURE__ */ jsx4(SelectWithSearchInput_default, { ...props });
|
|
564
|
+
};
|
|
565
|
+
var ReferenceInput_default = ReferenceInput;
|
|
566
|
+
|
|
567
|
+
// src/components/controls/edit/InputControlClient.tsx
|
|
568
|
+
import { jsx as jsx5 } from "react/jsx-runtime";
|
|
562
569
|
var InputControl = React4.forwardRef(
|
|
563
570
|
(props, ref) => {
|
|
564
571
|
const ControlComponents = {
|
|
@@ -583,10 +590,11 @@ var InputControl = React4.forwardRef(
|
|
|
583
590
|
[InputControlType_default.switchInput]: SwitchInput_default,
|
|
584
591
|
[InputControlType_default.dateInput]: DateInput_default,
|
|
585
592
|
[InputControlType_default.radioInput]: RadioInput_default,
|
|
586
|
-
[InputControlType_default.switcher]: Switcher_default
|
|
593
|
+
[InputControlType_default.switcher]: Switcher_default,
|
|
594
|
+
[InputControlType_default.referenceInput]: ReferenceInput_default
|
|
587
595
|
};
|
|
588
596
|
const SelectedControlComponent = ControlComponents[props.controlType];
|
|
589
|
-
return /* @__PURE__ */
|
|
597
|
+
return /* @__PURE__ */ jsx5(React4.Fragment, { children: SelectedControlComponent ? /* @__PURE__ */ jsx5(SelectedControlComponent, { ...props }) : "Control not found:" + props.controlType });
|
|
590
598
|
}
|
|
591
599
|
);
|
|
592
600
|
InputControl.displayName = "InputControl";
|
|
@@ -757,8 +757,9 @@ var SelectWithSearchInput = (props) => {
|
|
|
757
757
|
});
|
|
758
758
|
}
|
|
759
759
|
}, [highlightedIndex]);
|
|
760
|
+
const isReadOnly = props.attributes?.readOnly || props.disable || props.attributes?.disable;
|
|
760
761
|
return /* @__PURE__ */ jsxs12("div", { className: "relative", children: [
|
|
761
|
-
/* @__PURE__ */ jsxs12("label", { children: [
|
|
762
|
+
/* @__PURE__ */ jsxs12("label", { className: "pb-1", children: [
|
|
762
763
|
props.attributes?.label,
|
|
763
764
|
" ",
|
|
764
765
|
props?.attributes?.required && /* @__PURE__ */ jsx12("span", { className: "bg-error-weak", children: "*" })
|
|
@@ -777,16 +778,25 @@ var SelectWithSearchInput = (props) => {
|
|
|
777
778
|
onFocus: () => setIsOpen(true),
|
|
778
779
|
onKeyDown: handleKeyDown,
|
|
779
780
|
placeholder: props.attributes?.placeholder ?? "Search...",
|
|
780
|
-
readOnly:
|
|
781
|
+
readOnly: isReadOnly,
|
|
781
782
|
disabled: props.disable || props.attributes?.disable,
|
|
782
|
-
className:
|
|
783
|
+
className: `peer mt-2 py-1.5 select block w-full text-black rounded border-gray-300 shadow-sm
|
|
784
|
+
focus:border-indigo-300 focus:ring focus:ring-indigo-200 focus:ring-opacity-50
|
|
785
|
+
disabled:bg-slate-50 disabled:text-slate-500 disabled:border-slate-200 disabled:shadow-none
|
|
786
|
+
${isReadOnly ? "bg-neutral-soft opacity-50 cursor-not-allowed" : "bg-default"}
|
|
787
|
+
`
|
|
783
788
|
}
|
|
784
789
|
),
|
|
785
790
|
/* @__PURE__ */ jsx12(
|
|
786
791
|
"button",
|
|
787
792
|
{
|
|
788
793
|
type: "button",
|
|
789
|
-
|
|
794
|
+
disabled: isReadOnly,
|
|
795
|
+
onClick: () => {
|
|
796
|
+
if (!isReadOnly) {
|
|
797
|
+
setIsOpen(!isOpen);
|
|
798
|
+
}
|
|
799
|
+
},
|
|
790
800
|
className: "absolute right-2 top-3 h-5 w-5 text-gray-500 focus:outline-none",
|
|
791
801
|
children: /* @__PURE__ */ jsx12(
|
|
792
802
|
"svg",
|
|
@@ -810,11 +820,11 @@ var SelectWithSearchInput = (props) => {
|
|
|
810
820
|
}
|
|
811
821
|
)
|
|
812
822
|
] }),
|
|
813
|
-
isOpen && /* @__PURE__ */ jsx12(
|
|
823
|
+
!isReadOnly && isOpen && /* @__PURE__ */ jsx12(
|
|
814
824
|
"div",
|
|
815
825
|
{
|
|
816
826
|
ref: dropdownRef,
|
|
817
|
-
className: "absolute z-10
|
|
827
|
+
className: "absolute z-10 w-full bg-default border border-gray-200 shadow-lg max-h-48 overflow-y-auto",
|
|
818
828
|
children: filteredItems.length > 0 ? filteredItems.map((item, index) => /* @__PURE__ */ jsx12(
|
|
819
829
|
"button",
|
|
820
830
|
{
|