@apexcura/ui-components 0.0.7-Beta7 → 0.0.7-Beta8
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.d.mts +3 -1
- package/dist/index.d.ts +3 -1
- package/dist/index.js +4 -6
- package/dist/index.mjs +4 -6
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
|
@@ -18,6 +18,8 @@ type ElementType = {
|
|
|
18
18
|
maxLength?: number;
|
|
19
19
|
fieldNames?: any[];
|
|
20
20
|
onChange?: (value: string | number | boolean | any[]) => void;
|
|
21
|
+
options: any[];
|
|
22
|
+
onFocusHandler: () => void;
|
|
21
23
|
};
|
|
22
24
|
|
|
23
25
|
interface ElementExecuterProps$3 extends ElementType {
|
|
@@ -58,7 +60,7 @@ interface ElementExecuterProps extends ElementType {
|
|
|
58
60
|
}
|
|
59
61
|
declare const CkEditor: (props: ElementExecuterProps) => React$1.JSX.Element;
|
|
60
62
|
|
|
61
|
-
declare const SingleSelectElement: () => React$1.JSX.Element;
|
|
63
|
+
declare const SingleSelectElement: (props: ElementType) => React$1.JSX.Element;
|
|
62
64
|
|
|
63
65
|
declare const MultipleSelectElement: () => React$1.JSX.Element;
|
|
64
66
|
|
package/dist/index.d.ts
CHANGED
|
@@ -18,6 +18,8 @@ type ElementType = {
|
|
|
18
18
|
maxLength?: number;
|
|
19
19
|
fieldNames?: any[];
|
|
20
20
|
onChange?: (value: string | number | boolean | any[]) => void;
|
|
21
|
+
options: any[];
|
|
22
|
+
onFocusHandler: () => void;
|
|
21
23
|
};
|
|
22
24
|
|
|
23
25
|
interface ElementExecuterProps$3 extends ElementType {
|
|
@@ -58,7 +60,7 @@ interface ElementExecuterProps extends ElementType {
|
|
|
58
60
|
}
|
|
59
61
|
declare const CkEditor: (props: ElementExecuterProps) => React$1.JSX.Element;
|
|
60
62
|
|
|
61
|
-
declare const SingleSelectElement: () => React$1.JSX.Element;
|
|
63
|
+
declare const SingleSelectElement: (props: ElementType) => React$1.JSX.Element;
|
|
62
64
|
|
|
63
65
|
declare const MultipleSelectElement: () => React$1.JSX.Element;
|
|
64
66
|
|
package/dist/index.js
CHANGED
|
@@ -303,20 +303,18 @@ var onSearch = (value) => {
|
|
|
303
303
|
var filterOption = (input, option) => (option?.label ?? "").toLowerCase().includes(input.toLowerCase());
|
|
304
304
|
var handleChange = () => {
|
|
305
305
|
};
|
|
306
|
-
var
|
|
307
|
-
};
|
|
308
|
-
var SingleSelectElement = () => {
|
|
306
|
+
var SingleSelectElement = (props) => {
|
|
309
307
|
return /* @__PURE__ */ import_react10.default.createElement(
|
|
310
308
|
import_antd8.Select,
|
|
311
309
|
{
|
|
312
310
|
showSearch: true,
|
|
313
|
-
placeholder:
|
|
311
|
+
placeholder: props.placeholder,
|
|
314
312
|
optionFilterProp: "children",
|
|
315
313
|
onChange: handleChange,
|
|
316
314
|
onSearch,
|
|
317
315
|
filterOption,
|
|
318
|
-
onFocus:
|
|
319
|
-
options:
|
|
316
|
+
onFocus: props.onFocusHandler,
|
|
317
|
+
options: props.options
|
|
320
318
|
}
|
|
321
319
|
);
|
|
322
320
|
};
|
package/dist/index.mjs
CHANGED
|
@@ -257,20 +257,18 @@ var onSearch = (value) => {
|
|
|
257
257
|
var filterOption = (input, option) => (option?.label ?? "").toLowerCase().includes(input.toLowerCase());
|
|
258
258
|
var handleChange = () => {
|
|
259
259
|
};
|
|
260
|
-
var
|
|
261
|
-
};
|
|
262
|
-
var SingleSelectElement = () => {
|
|
260
|
+
var SingleSelectElement = (props) => {
|
|
263
261
|
return /* @__PURE__ */ React9.createElement(
|
|
264
262
|
Select2,
|
|
265
263
|
{
|
|
266
264
|
showSearch: true,
|
|
267
|
-
placeholder:
|
|
265
|
+
placeholder: props.placeholder,
|
|
268
266
|
optionFilterProp: "children",
|
|
269
267
|
onChange: handleChange,
|
|
270
268
|
onSearch,
|
|
271
269
|
filterOption,
|
|
272
|
-
onFocus:
|
|
273
|
-
options:
|
|
270
|
+
onFocus: props.onFocusHandler,
|
|
271
|
+
options: props.options
|
|
274
272
|
}
|
|
275
273
|
);
|
|
276
274
|
};
|