@sustaina/shared-ui 1.62.0 → 1.62.1
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 +11 -1
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +11 -1
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -4514,7 +4514,10 @@ var FieldSelect = ({ row, fieldOptions, onChangeField }) => /* @__PURE__ */ jsxR
|
|
|
4514
4514
|
children: /* @__PURE__ */ jsxRuntime.jsx(SelectValue, { placeholder: "Select field" })
|
|
4515
4515
|
}
|
|
4516
4516
|
),
|
|
4517
|
-
/* @__PURE__ */ jsxRuntime.jsx(SelectContent, { className: "w-full min-w-[unset]", children: fieldOptions.map((f) => /* @__PURE__ */ jsxRuntime.jsx(SelectItem, { value: f.value, children: f.
|
|
4517
|
+
/* @__PURE__ */ jsxRuntime.jsx(SelectContent, { className: "w-full min-w-[unset]", children: fieldOptions.map((f) => /* @__PURE__ */ jsxRuntime.jsx(SelectItem, { value: f.value, children: f.decorator ? /* @__PURE__ */ jsxRuntime.jsxs("span", { className: "flex items-center", children: [
|
|
4518
|
+
f.decorator,
|
|
4519
|
+
/* @__PURE__ */ jsxRuntime.jsx("span", { className: cn(f.labelStyle), children: f.label })
|
|
4520
|
+
] }) : f.label }, f.value)) })
|
|
4518
4521
|
] }) });
|
|
4519
4522
|
|
|
4520
4523
|
// src/components/advanceSearch/types.ts
|
|
@@ -7418,6 +7421,13 @@ var ConditionDropdownInput = ({ row, control, fieldSchema, onClear }) => {
|
|
|
7418
7421
|
showClear: hasValue,
|
|
7419
7422
|
showSearch: true,
|
|
7420
7423
|
virtual: false,
|
|
7424
|
+
labelRender: (option) => {
|
|
7425
|
+
const opt = option;
|
|
7426
|
+
return /* @__PURE__ */ jsxRuntime.jsxs("span", { className: "flex items-center", children: [
|
|
7427
|
+
opt.decorator,
|
|
7428
|
+
/* @__PURE__ */ jsxRuntime.jsx("span", { className: cn(opt.labelStyle), children: opt.label })
|
|
7429
|
+
] });
|
|
7430
|
+
},
|
|
7421
7431
|
onSelect: (val) => field.onChange(val),
|
|
7422
7432
|
onClear: handleClear
|
|
7423
7433
|
}
|