@fctc/sme-widget-ui 2.5.5 → 2.5.7
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 +55 -54
- package/dist/index.mjs +55 -54
- package/dist/types.d.mts +1 -0
- package/dist/types.d.ts +1 -0
- package/dist/widgets.js +55 -54
- package/dist/widgets.mjs +55 -54
- package/package.json +1 -1
package/dist/widgets.mjs
CHANGED
|
@@ -16183,7 +16183,7 @@ var BinaryField = (props) => {
|
|
|
16183
16183
|
"div",
|
|
16184
16184
|
{
|
|
16185
16185
|
ref: binaryRef,
|
|
16186
|
-
className: `binary-field flex w-fit items-center gap-4 ${onlyImage && initialFile ? "shadow-md rounded-lg" : ""}`,
|
|
16186
|
+
className: `widget binary-field flex w-fit items-center gap-4 ${onlyImage && initialFile ? "shadow-md rounded-lg" : ""}`,
|
|
16187
16187
|
children: hasFile ? /* @__PURE__ */ jsx75(
|
|
16188
16188
|
"div",
|
|
16189
16189
|
{
|
|
@@ -16419,7 +16419,7 @@ var ButtonBadgeField = (props) => {
|
|
|
16419
16419
|
return item && type === "selection" && Array.isArray(item) ? item[1] : item;
|
|
16420
16420
|
};
|
|
16421
16421
|
const label = getLabel(defaultValue ?? value);
|
|
16422
|
-
return label ? /* @__PURE__ */ jsx76("div", { style: { ...baseStyle, ...getType() }, children: label }) : null;
|
|
16422
|
+
return label ? /* @__PURE__ */ jsx76("div", { className: "widget badge-widget", style: { ...baseStyle, ...getType() }, children: label }) : null;
|
|
16423
16423
|
};
|
|
16424
16424
|
|
|
16425
16425
|
// src/widgets/basic/button-field/button.tsx
|
|
@@ -16484,7 +16484,8 @@ var CharField = (props) => {
|
|
|
16484
16484
|
isForm,
|
|
16485
16485
|
value,
|
|
16486
16486
|
defaultValue,
|
|
16487
|
-
options: options2
|
|
16487
|
+
options: options2,
|
|
16488
|
+
baseClassName
|
|
16488
16489
|
} = props;
|
|
16489
16490
|
if (!isForm && !isEditTable) {
|
|
16490
16491
|
const propValue = value || defaultValue;
|
|
@@ -16600,10 +16601,8 @@ var CharField = (props) => {
|
|
|
16600
16601
|
disabled: readonly,
|
|
16601
16602
|
placeholder,
|
|
16602
16603
|
required: !invisible && required,
|
|
16603
|
-
className: `
|
|
16604
|
-
${
|
|
16605
|
-
${!isEditTable ? isForm ? "bg-white border-input-primary rounded-[10px]" : "" : `border-transparent bg-transparent ${readonly ? "" : "border-b-primary !w-fit max-w-[200px]"}`}
|
|
16606
|
-
${error2 && isEditTable && "focus:border-b-[1px] focus:border-[#de4747] hover:border-b-[1px] hover:border-[#de4747]"}
|
|
16604
|
+
className: `widget char-widget ${baseClassName}
|
|
16605
|
+
${error2 && isEditTable && "widget-error"}
|
|
16607
16606
|
`
|
|
16608
16607
|
}
|
|
16609
16608
|
),
|
|
@@ -16668,7 +16667,8 @@ var SecureField = (props) => {
|
|
|
16668
16667
|
value,
|
|
16669
16668
|
defaultValue,
|
|
16670
16669
|
isForm,
|
|
16671
|
-
isEditTable
|
|
16670
|
+
isEditTable,
|
|
16671
|
+
baseClassName
|
|
16672
16672
|
} = props;
|
|
16673
16673
|
const { t: t3 } = useI18n();
|
|
16674
16674
|
const getPasswordMessage2 = (min4, max4, upcase2, digit2, special2) => {
|
|
@@ -16721,7 +16721,7 @@ var SecureField = (props) => {
|
|
|
16721
16721
|
useEffect12(() => {
|
|
16722
16722
|
if (value2) clearErrors(name2);
|
|
16723
16723
|
}, [value2, clearErrors, name2]);
|
|
16724
|
-
return /* @__PURE__ */ jsxs52("div", { className: `relative w-full ${className ?? ""}`, children: [
|
|
16724
|
+
return /* @__PURE__ */ jsxs52("div", { className: `secure-widget relative w-full ${className ?? ""}`, children: [
|
|
16725
16725
|
isCappedToken && shouldMask && /* @__PURE__ */ jsx80(
|
|
16726
16726
|
"div",
|
|
16727
16727
|
{
|
|
@@ -16781,9 +16781,7 @@ var SecureField = (props) => {
|
|
|
16781
16781
|
onCopy: (e3) => {
|
|
16782
16782
|
if (shouldMask) e3.preventDefault();
|
|
16783
16783
|
},
|
|
16784
|
-
className: `${!isCappedToken ? "w-full" : "w-[200px]"}
|
|
16785
|
-
${!isEditTable ? isForm ? "bg-white border-input-primary rounded-[10px]" : "" : `border-transparent bg-transparent ${readonly ? "" : "border-b-primary !w-fit max-w-[200px]"}`}
|
|
16786
|
-
${error2 && isEditTable && "focus:border-b-[1px] focus:border-[#de4747] hover:border-b-[1px] hover:border-[#de4747]"}`
|
|
16784
|
+
className: `${!isCappedToken ? "w-full" : "w-[200px]"} ${baseClassName} ${error2 && isEditTable && "widget-error"}`
|
|
16787
16785
|
}
|
|
16788
16786
|
),
|
|
16789
16787
|
canToggle && !isCappedToken && /* @__PURE__ */ jsx80(
|
|
@@ -16839,7 +16837,7 @@ var CheckboxField = (props) => {
|
|
|
16839
16837
|
render: ({ field }) => /* @__PURE__ */ jsx81(
|
|
16840
16838
|
"div",
|
|
16841
16839
|
{
|
|
16842
|
-
className: "flex items-center gap-2",
|
|
16840
|
+
className: "widget checkbox-widget flex items-center gap-2",
|
|
16843
16841
|
onClick: () => {
|
|
16844
16842
|
const checked = !field.value;
|
|
16845
16843
|
if (!isEditTable && readonly) return;
|
|
@@ -16998,7 +16996,8 @@ var CopyLinkButtonField = (props) => {
|
|
|
16998
16996
|
isCopied,
|
|
16999
16997
|
handleCopyToClipboard,
|
|
17000
16998
|
propValue,
|
|
17001
|
-
maskingValue
|
|
16999
|
+
maskingValue,
|
|
17000
|
+
baseClassName
|
|
17002
17001
|
} = props;
|
|
17003
17002
|
const { t: t3 } = useI18n();
|
|
17004
17003
|
if (!isForm) {
|
|
@@ -17022,15 +17021,12 @@ var CopyLinkButtonField = (props) => {
|
|
|
17022
17021
|
clearErrors(name2);
|
|
17023
17022
|
}
|
|
17024
17023
|
}, [value]);
|
|
17025
|
-
return /* @__PURE__ */ jsxs54("div", { className: "relative", children: [
|
|
17024
|
+
return /* @__PURE__ */ jsxs54("div", { className: "widget copy-link-widget relative", children: [
|
|
17026
17025
|
/* @__PURE__ */ jsxs54(
|
|
17027
17026
|
"div",
|
|
17028
17027
|
{
|
|
17029
17028
|
"aria-disabled": readonly,
|
|
17030
|
-
className:
|
|
17031
|
-
${readonly ? "cursor-not-allowed border border-[rgba(66,66,66,0.12)] text-[#5c5a5a]" : "cursor-pointer border border-[rgba(66,66,66,0.12)] text-[#525866]"}
|
|
17032
|
-
${!isEditTable ? isForm ? "bg-white border-input-primary rounded-[10px]" : "" : `border-transparent bg-transparent ${readonly ? "" : "border-b-primary"}`}
|
|
17033
|
-
${error2 && isEditTable && "focus:border-b-[1px] focus:border-[#de4747] hover:border-b-[1px] hover:border-[#de4747]"}`,
|
|
17029
|
+
className: `${baseClassName} ${error2 && isEditTable && "widget-error"}`,
|
|
17034
17030
|
children: [
|
|
17035
17031
|
/* @__PURE__ */ jsx84(
|
|
17036
17032
|
"input",
|
|
@@ -30864,7 +30860,8 @@ var DateField = (props) => {
|
|
|
30864
30860
|
customValidateMinMax,
|
|
30865
30861
|
minNowValue,
|
|
30866
30862
|
maxNowValue,
|
|
30867
|
-
context
|
|
30863
|
+
context,
|
|
30864
|
+
baseClassName
|
|
30868
30865
|
} = props;
|
|
30869
30866
|
const { t: t3 } = useI18n();
|
|
30870
30867
|
const InputDateCustom = forwardRef6(
|
|
@@ -30915,6 +30912,7 @@ var DateField = (props) => {
|
|
|
30915
30912
|
/* @__PURE__ */ jsx88(
|
|
30916
30913
|
DatePicker,
|
|
30917
30914
|
{
|
|
30915
|
+
className: "widget date-widget",
|
|
30918
30916
|
selected: selectedDate,
|
|
30919
30917
|
onChange: (date) => {
|
|
30920
30918
|
if (date) {
|
|
@@ -30965,7 +30963,7 @@ var DateField = (props) => {
|
|
|
30965
30963
|
{
|
|
30966
30964
|
isForm,
|
|
30967
30965
|
defaultValue: field.value,
|
|
30968
|
-
className: `${
|
|
30966
|
+
className: `${baseClassName}`
|
|
30969
30967
|
}
|
|
30970
30968
|
),
|
|
30971
30969
|
timeInputLabel: textPlaceHolder,
|
|
@@ -31080,7 +31078,7 @@ var DownLoadBinaryField = (props) => {
|
|
|
31080
31078
|
{
|
|
31081
31079
|
type: "button",
|
|
31082
31080
|
onClick: handleFileDownload,
|
|
31083
|
-
className: "download-binary-field flex items-center gap-1 text-blue-700 my-auto",
|
|
31081
|
+
className: "widget download-binary-field flex items-center gap-1 text-blue-700 my-auto",
|
|
31084
31082
|
children: [
|
|
31085
31083
|
/* @__PURE__ */ jsx89(DownloadIcon, {}),
|
|
31086
31084
|
/* @__PURE__ */ jsx89("span", { className: "text-sm italic underline text-primary", children: t3("download_file") })
|
|
@@ -31102,7 +31100,7 @@ var DownloadFileField = (props) => {
|
|
|
31102
31100
|
handleFileChange,
|
|
31103
31101
|
handleFileDownload
|
|
31104
31102
|
} = props;
|
|
31105
|
-
return /* @__PURE__ */ jsxs58("div", { className: "", children: [
|
|
31103
|
+
return /* @__PURE__ */ jsxs58("div", { className: "widget download-file-widget", children: [
|
|
31106
31104
|
/* @__PURE__ */ jsxs58(
|
|
31107
31105
|
"label",
|
|
31108
31106
|
{
|
|
@@ -31416,7 +31414,8 @@ var FloatField = (props) => {
|
|
|
31416
31414
|
string,
|
|
31417
31415
|
defaultValue,
|
|
31418
31416
|
isEditTable,
|
|
31419
|
-
onChange: handleOnchange
|
|
31417
|
+
onChange: handleOnchange,
|
|
31418
|
+
baseClassName
|
|
31420
31419
|
} = props;
|
|
31421
31420
|
const { t: t3 } = useI18n();
|
|
31422
31421
|
if (!isForm && !isEditTable) {
|
|
@@ -31529,10 +31528,8 @@ var FloatField = (props) => {
|
|
|
31529
31528
|
placeholder,
|
|
31530
31529
|
required: !invisible && required,
|
|
31531
31530
|
style: invisible ? { display: "none" } : {},
|
|
31532
|
-
className: `
|
|
31533
|
-
${
|
|
31534
|
-
${!isEditTable ? isForm ? "bg-white border-input-primary rounded-[10px]" : "" : `border-transparent bg-transparent ${readonly ? "" : "border-b-primary"}`}
|
|
31535
|
-
${error2 && isEditTable && "focus:border-b-[1px] focus:border-[#de4747] hover:border-b-[1px] hover:border-[#de4747]"}
|
|
31531
|
+
className: `widget float-widget ${baseClassName}
|
|
31532
|
+
${error2 && isEditTable && "widget-error"}
|
|
31536
31533
|
`
|
|
31537
31534
|
}
|
|
31538
31535
|
),
|
|
@@ -31742,7 +31739,7 @@ var InfomationField = (props) => {
|
|
|
31742
31739
|
return /* @__PURE__ */ jsx98(Fragment28, {});
|
|
31743
31740
|
}
|
|
31744
31741
|
const inforValues = Array.isArray(value) ? value : [value];
|
|
31745
|
-
return /* @__PURE__ */ jsx98("div", { className: "group relative flex items-center gap-1 rounded-lg transition-shadow duration-300", children: inforValues.length > 1 ? inforValues.map((item) => /* @__PURE__ */ jsx98(
|
|
31742
|
+
return /* @__PURE__ */ jsx98("div", { className: "infor-widget group relative flex items-center gap-1 rounded-lg transition-shadow duration-300", children: inforValues.length > 1 ? inforValues.map((item) => /* @__PURE__ */ jsx98(
|
|
31746
31743
|
AvatarField,
|
|
31747
31744
|
{
|
|
31748
31745
|
id: item.id,
|
|
@@ -31846,7 +31843,8 @@ var Many2ManyTagField = (props) => {
|
|
|
31846
31843
|
setDomainObject,
|
|
31847
31844
|
domainObject,
|
|
31848
31845
|
isFetching,
|
|
31849
|
-
setIsShowModalMany2Many
|
|
31846
|
+
setIsShowModalMany2Many,
|
|
31847
|
+
baseClassName
|
|
31850
31848
|
} = props;
|
|
31851
31849
|
const { t: t3 } = useI18n();
|
|
31852
31850
|
if (!isForm && !isEditTable) {
|
|
@@ -31924,18 +31922,20 @@ var Many2ManyTagField = (props) => {
|
|
|
31924
31922
|
onMenuOpen: fetchMoreOptions,
|
|
31925
31923
|
menuPlacement: "auto",
|
|
31926
31924
|
placeholder: readonly ? "" : t3("choose_place"),
|
|
31927
|
-
classNames:
|
|
31925
|
+
classNames: `
|
|
31926
|
+
${isEditTable ? {
|
|
31928
31927
|
valueContainer: () => "overflow-unset !px-0",
|
|
31929
|
-
control: () => `
|
|
31928
|
+
control: ({ isFocused }) => `widget many2many-tags-widget ${baseClassName} ${isFocused ? "focused" : ""} ${filteredValue?.length === 0 && "no-values"}`,
|
|
31930
31929
|
dropdownIndicator: () => "invisible group-hover:visible !m-0 !p-0",
|
|
31931
31930
|
clearIndicator: () => "invisible group-hover:visible !m-0 !p-0"
|
|
31932
31931
|
} : {
|
|
31933
31932
|
valueContainer: () => "overflow-unset !m-0 !p-0",
|
|
31934
|
-
control: ({ isFocused }) => `
|
|
31933
|
+
control: ({ isFocused }) => `widget many2many-tags-widget ${baseClassName} ${isFocused ? "focused" : ""} ${filteredValue?.length === 0 && "no-values"}`,
|
|
31935
31934
|
singleValue: () => `!m-0 ${readonly ? "!text-[#5c5a5a]" : ""}`,
|
|
31936
31935
|
input: () => "!m-0 !p-0",
|
|
31937
31936
|
dropdownIndicator: () => "!m-0 !p-0"
|
|
31938
|
-
}
|
|
31937
|
+
}}
|
|
31938
|
+
`,
|
|
31939
31939
|
styles: {
|
|
31940
31940
|
control: () => ({
|
|
31941
31941
|
maxWidth: isEditTable ? "max-content" : "100%",
|
|
@@ -32033,7 +32033,8 @@ var MonetaryField = (props) => {
|
|
|
32033
32033
|
widget,
|
|
32034
32034
|
placeholder,
|
|
32035
32035
|
isEditTable,
|
|
32036
|
-
symbol = "VND"
|
|
32036
|
+
symbol = "VND",
|
|
32037
|
+
baseClassName
|
|
32037
32038
|
} = props;
|
|
32038
32039
|
if (isForm && name2 === "amount_residual") {
|
|
32039
32040
|
return /* @__PURE__ */ jsxs66("div", { className: "flex justify-end gap-x-4 gap-y-2 ml-auto mt-2 lg:mt-5", children: [
|
|
@@ -32100,10 +32101,8 @@ var MonetaryField = (props) => {
|
|
|
32100
32101
|
placeholder: placeholder ?? `${t3("choose_place")} ${string}`,
|
|
32101
32102
|
required: !invisible && required,
|
|
32102
32103
|
style: invisible ? { display: "none" } : {},
|
|
32103
|
-
className: `
|
|
32104
|
-
${
|
|
32105
|
-
${!isEditTable ? isForm ? "bg-white border-input-primary rounded-[10px]" : "" : `border-transparent bg-transparent ${readonly ? "" : "border-b-primary"}`}
|
|
32106
|
-
${error2 && isEditTable && "focus:border-b-[1px] focus:border-[#de4747] hover:border-b-[1px] hover:border-[#de4747]"}
|
|
32104
|
+
className: `widget monetary-widget ${baseClassName}
|
|
32105
|
+
${error2 && isEditTable && "widget-error"}
|
|
32107
32106
|
`
|
|
32108
32107
|
}
|
|
32109
32108
|
),
|
|
@@ -32271,7 +32270,7 @@ var RadioGroupField = (props) => {
|
|
|
32271
32270
|
{
|
|
32272
32271
|
name: name2 ?? "",
|
|
32273
32272
|
control: methods.control,
|
|
32274
|
-
render: ({ field }) => /* @__PURE__ */ jsx104("div", { className: "flex items-center gap-[10px] pb-4", children: selection?.map((select) => /* @__PURE__ */ jsxs68("div", { className: "flex items-center gap-1", children: [
|
|
32273
|
+
render: ({ field }) => /* @__PURE__ */ jsx104("div", { className: "widget radio-group-widget flex items-center gap-[10px] pb-4", children: selection?.map((select) => /* @__PURE__ */ jsxs68("div", { className: "flex items-center gap-1", children: [
|
|
32275
32274
|
/* @__PURE__ */ jsx104(
|
|
32276
32275
|
"input",
|
|
32277
32276
|
{
|
|
@@ -32310,7 +32309,7 @@ var RemainingDaysField = (props) => {
|
|
|
32310
32309
|
if (!value) return null;
|
|
32311
32310
|
const adjustedValue = (0, import_moment3.default)(value).add(7, "hours");
|
|
32312
32311
|
const isFuture = adjustedValue.isAfter((0, import_moment3.default)());
|
|
32313
|
-
return /* @__PURE__ */ jsxs69("div", { className: isForm ? "mb-4" : ""
|
|
32312
|
+
return /* @__PURE__ */ jsxs69("div", { className: `widget remaining-days-widget ${isForm ? "mb-4" : ""}`, children: [
|
|
32314
32313
|
/* @__PURE__ */ jsx105(M, { id: `remainingDays_${value}`, place: "top", content: string }),
|
|
32315
32314
|
/* @__PURE__ */ jsx105(
|
|
32316
32315
|
"div",
|
|
@@ -32345,7 +32344,8 @@ var SelectDropdownField = (props) => {
|
|
|
32345
32344
|
isForm,
|
|
32346
32345
|
onChange: onChange2,
|
|
32347
32346
|
string,
|
|
32348
|
-
isEditTable
|
|
32347
|
+
isEditTable,
|
|
32348
|
+
baseClassName
|
|
32349
32349
|
} = props;
|
|
32350
32350
|
const options2 = selection ? selection.map((val) => ({
|
|
32351
32351
|
value: val[0],
|
|
@@ -32387,7 +32387,7 @@ var SelectDropdownField = (props) => {
|
|
|
32387
32387
|
{
|
|
32388
32388
|
...commonProps,
|
|
32389
32389
|
classNames: {
|
|
32390
|
-
control: ({ isFocused }) => `
|
|
32390
|
+
control: ({ isFocused }) => `widget select-dropdown-widget ${baseClassName} ${isForm && (isFocused ? "focused" : "")}`,
|
|
32391
32391
|
valueContainer: () => "!m-0 !p-0 ",
|
|
32392
32392
|
singleValue: () => `!m-0`,
|
|
32393
32393
|
input: () => "!m-0 !p-0",
|
|
@@ -32465,7 +32465,8 @@ var TextAreaField = (props) => {
|
|
|
32465
32465
|
isForm,
|
|
32466
32466
|
value,
|
|
32467
32467
|
defaultValue,
|
|
32468
|
-
onChange: onChange2
|
|
32468
|
+
onChange: onChange2,
|
|
32469
|
+
baseClassName
|
|
32469
32470
|
} = props;
|
|
32470
32471
|
const formProps = methods ? methods.register(name2, {
|
|
32471
32472
|
onBlur: (e3) => {
|
|
@@ -32484,7 +32485,7 @@ var TextAreaField = (props) => {
|
|
|
32484
32485
|
{
|
|
32485
32486
|
...formProps,
|
|
32486
32487
|
defaultValue: value || defaultValue,
|
|
32487
|
-
className: `textarea-
|
|
32488
|
+
className: `widget textarea-widget ${baseClassName}`,
|
|
32488
32489
|
readOnly: readonly,
|
|
32489
32490
|
disabled: readonly,
|
|
32490
32491
|
placeholder,
|
|
@@ -32510,7 +32511,7 @@ var ToggleButtonField = (props) => {
|
|
|
32510
32511
|
{
|
|
32511
32512
|
name: name2 ?? "",
|
|
32512
32513
|
control: methods?.control,
|
|
32513
|
-
render: ({ field }) => /* @__PURE__ */ jsx108("div", { className: "inline-flex items-center", children: /* @__PURE__ */ jsxs71("label", { className: "relative inline-block w-8 h-5 cursor-pointer", children: [
|
|
32514
|
+
render: ({ field }) => /* @__PURE__ */ jsx108("div", { className: "widget toggle-widget inline-flex items-center", children: /* @__PURE__ */ jsxs71("label", { className: "relative inline-block w-8 h-5 cursor-pointer", children: [
|
|
32514
32515
|
/* @__PURE__ */ jsx108(
|
|
32515
32516
|
"input",
|
|
32516
32517
|
{
|
|
@@ -32579,7 +32580,8 @@ var IntegerField = (props) => {
|
|
|
32579
32580
|
defaultValue,
|
|
32580
32581
|
onChange: onChange2,
|
|
32581
32582
|
string,
|
|
32582
|
-
isEditTable
|
|
32583
|
+
isEditTable,
|
|
32584
|
+
baseClassName
|
|
32583
32585
|
} = props;
|
|
32584
32586
|
const { t: t3 } = useI18n();
|
|
32585
32587
|
if (!isForm && !isEditTable) {
|
|
@@ -32693,10 +32695,8 @@ var IntegerField = (props) => {
|
|
|
32693
32695
|
placeholder,
|
|
32694
32696
|
required: !invisible && required,
|
|
32695
32697
|
style: invisible ? { display: "none" } : {},
|
|
32696
|
-
className: `
|
|
32697
|
-
${
|
|
32698
|
-
${!isEditTable ? isForm ? "bg-white border-input-primary rounded-[10px]" : "" : `border-transparent bg-transparent ${readonly ? "" : "border-b-primary"}`}
|
|
32699
|
-
${error2 && isEditTable && "focus:border-b-[1px] focus:border-[#de4747] hover:border-b-[1px] hover:border-[#de4747]"}
|
|
32698
|
+
className: `widget integer-widget ${baseClassName}
|
|
32699
|
+
${error2 && isEditTable && "widget-error"}
|
|
32700
32700
|
`
|
|
32701
32701
|
}
|
|
32702
32702
|
),
|
|
@@ -33091,7 +33091,8 @@ var Many2OneField = (props) => {
|
|
|
33091
33091
|
domainObject,
|
|
33092
33092
|
setIsShowModalMany2Many,
|
|
33093
33093
|
setInputValue,
|
|
33094
|
-
setDomainObject
|
|
33094
|
+
setDomainObject,
|
|
33095
|
+
baseClassName
|
|
33095
33096
|
} = props;
|
|
33096
33097
|
const { t: t3 } = useI18n();
|
|
33097
33098
|
if (!isForm && !isEditTable) {
|
|
@@ -33159,7 +33160,7 @@ var Many2OneField = (props) => {
|
|
|
33159
33160
|
menuShouldScrollIntoView: false,
|
|
33160
33161
|
options: listOptions,
|
|
33161
33162
|
classNames: {
|
|
33162
|
-
control: ({ isFocused }) => `
|
|
33163
|
+
control: ({ isFocused }) => `widget many2one-widget ${baseClassName} ${isForm && (isFocused ? "focused" : "")}`,
|
|
33163
33164
|
valueContainer: () => "!m-0 !p-0 ",
|
|
33164
33165
|
singleValue: () => `!m-0`,
|
|
33165
33166
|
input: () => "!m-0 !p-0",
|
|
@@ -33503,7 +33504,7 @@ var DateOptionField = (props) => {
|
|
|
33503
33504
|
render: ({ field }) => /* @__PURE__ */ jsxs78(
|
|
33504
33505
|
"label",
|
|
33505
33506
|
{
|
|
33506
|
-
className: `cursor-pointer mr-2 w-[50px] flex items-center justify-center p-[4px] border rounded-md text-sm
|
|
33507
|
+
className: `widget date-option-widget cursor-pointer mr-2 w-[50px] flex items-center justify-center p-[4px] border rounded-md text-sm
|
|
33507
33508
|
${field.value ? "bg-primary text-white border-primary" : "bg-white text-black border-[#f7f7f7]"}
|
|
33508
33509
|
${readonly ? "opacity-50 pointer-events-none" : ""}`,
|
|
33509
33510
|
children: [
|