@clyrex-digital/clyrex-controls-dev 0.8.1-dev.20261016035045 → 0.8.1-dev.20261016052853
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.
|
@@ -88,6 +88,7 @@ var LineTextInput = (props) => {
|
|
|
88
88
|
autoFocus: props?.attributes?.autoFocus,
|
|
89
89
|
required: props?.attributes?.required,
|
|
90
90
|
placeholder: props?.attributes?.placeholder,
|
|
91
|
+
size: props?.attributes?.size,
|
|
91
92
|
maxLength: props?.attributes?.maxLength,
|
|
92
93
|
pattern: props?.attributes?.pattern,
|
|
93
94
|
disabled: props?.attributes?.readOnly,
|
package/dist/index.d.mts
CHANGED
package/dist/index.d.ts
CHANGED
package/dist/index.js
CHANGED
|
@@ -2268,6 +2268,7 @@ var init_LineTextInput = __esm({
|
|
|
2268
2268
|
autoFocus: props?.attributes?.autoFocus,
|
|
2269
2269
|
required: props?.attributes?.required,
|
|
2270
2270
|
placeholder: props?.attributes?.placeholder,
|
|
2271
|
+
size: props?.attributes?.size,
|
|
2271
2272
|
maxLength: props?.attributes?.maxLength,
|
|
2272
2273
|
pattern: props?.attributes?.pattern,
|
|
2273
2274
|
disabled: props?.attributes?.readOnly,
|
|
@@ -11053,6 +11054,7 @@ var DataList = (props) => {
|
|
|
11053
11054
|
console.log(props.addLinkText);
|
|
11054
11055
|
const [isDataFound, setIsDataFound] = (0, import_react69.useState)(null);
|
|
11055
11056
|
const [searchTerm, setSearchTerm] = (0, import_react69.useState)(props.query?.searchTerm ?? "");
|
|
11057
|
+
const searchPlaceholder = `Search by ${props.columns.filter((col) => col.isSearchable).map((col) => col.label).join(", ")}`;
|
|
11056
11058
|
(0, import_react69.useEffect)(() => {
|
|
11057
11059
|
setSearchTerm(props.query?.searchTerm ?? "");
|
|
11058
11060
|
}, [props.query?.searchTerm]);
|
|
@@ -11342,7 +11344,8 @@ var DataList = (props) => {
|
|
|
11342
11344
|
callback: (e) => setSearchTerm(e.value),
|
|
11343
11345
|
attributes: {
|
|
11344
11346
|
autoFocus: true,
|
|
11345
|
-
placeholder:
|
|
11347
|
+
placeholder: searchPlaceholder,
|
|
11348
|
+
size: searchPlaceholder.length
|
|
11346
11349
|
}
|
|
11347
11350
|
}
|
|
11348
11351
|
),
|
|
@@ -11540,7 +11543,8 @@ var DataList = (props) => {
|
|
|
11540
11543
|
callback: (e) => setSearchTerm(e.value),
|
|
11541
11544
|
attributes: {
|
|
11542
11545
|
autoFocus: true,
|
|
11543
|
-
placeholder:
|
|
11546
|
+
placeholder: searchPlaceholder,
|
|
11547
|
+
size: searchPlaceholder.length
|
|
11544
11548
|
}
|
|
11545
11549
|
}
|
|
11546
11550
|
),
|
package/dist/index.mjs
CHANGED
|
@@ -31,7 +31,7 @@ import {
|
|
|
31
31
|
getDialCodeByCountryCode,
|
|
32
32
|
resolveCountry,
|
|
33
33
|
splitPhoneNumber
|
|
34
|
-
} from "./chunk-
|
|
34
|
+
} from "./chunk-GNIFUHGR.mjs";
|
|
35
35
|
import {
|
|
36
36
|
Constants,
|
|
37
37
|
Hyperlink,
|
|
@@ -463,7 +463,7 @@ var ViewControl_default = ViewControl;
|
|
|
463
463
|
|
|
464
464
|
// src/components/controls/edit/InputControl.tsx
|
|
465
465
|
import dynamic7 from "next/dynamic";
|
|
466
|
-
var InputControl = dynamic7(() => import("./InputControlClient-
|
|
466
|
+
var InputControl = dynamic7(() => import("./InputControlClient-IKQYB764.mjs"), {
|
|
467
467
|
ssr: false
|
|
468
468
|
});
|
|
469
469
|
var InputControl_default = InputControl;
|
|
@@ -3476,6 +3476,7 @@ var DataList = (props) => {
|
|
|
3476
3476
|
console.log(props.addLinkText);
|
|
3477
3477
|
const [isDataFound, setIsDataFound] = useState2(null);
|
|
3478
3478
|
const [searchTerm, setSearchTerm] = useState2(props.query?.searchTerm ?? "");
|
|
3479
|
+
const searchPlaceholder = `Search by ${props.columns.filter((col) => col.isSearchable).map((col) => col.label).join(", ")}`;
|
|
3479
3480
|
useEffect3(() => {
|
|
3480
3481
|
setSearchTerm(props.query?.searchTerm ?? "");
|
|
3481
3482
|
}, [props.query?.searchTerm]);
|
|
@@ -3765,7 +3766,8 @@ var DataList = (props) => {
|
|
|
3765
3766
|
callback: (e) => setSearchTerm(e.value),
|
|
3766
3767
|
attributes: {
|
|
3767
3768
|
autoFocus: true,
|
|
3768
|
-
placeholder:
|
|
3769
|
+
placeholder: searchPlaceholder,
|
|
3770
|
+
size: searchPlaceholder.length
|
|
3769
3771
|
}
|
|
3770
3772
|
}
|
|
3771
3773
|
),
|
|
@@ -3963,7 +3965,8 @@ var DataList = (props) => {
|
|
|
3963
3965
|
callback: (e) => setSearchTerm(e.value),
|
|
3964
3966
|
attributes: {
|
|
3965
3967
|
autoFocus: true,
|
|
3966
|
-
placeholder:
|
|
3968
|
+
placeholder: searchPlaceholder,
|
|
3969
|
+
size: searchPlaceholder.length
|
|
3967
3970
|
}
|
|
3968
3971
|
}
|
|
3969
3972
|
),
|