@fctc/sme-widget-ui 2.5.5 → 2.5.6
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 +53 -53
- package/dist/index.mjs +53 -53
- package/dist/types.d.mts +1 -0
- package/dist/types.d.ts +1 -0
- package/dist/widgets.js +53 -53
- package/dist/widgets.mjs +53 -53
- 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,
|
|
@@ -31924,18 +31921,20 @@ var Many2ManyTagField = (props) => {
|
|
|
31924
31921
|
onMenuOpen: fetchMoreOptions,
|
|
31925
31922
|
menuPlacement: "auto",
|
|
31926
31923
|
placeholder: readonly ? "" : t3("choose_place"),
|
|
31927
|
-
classNames:
|
|
31924
|
+
classNames: `
|
|
31925
|
+
${isEditTable ? {
|
|
31928
31926
|
valueContainer: () => "overflow-unset !px-0",
|
|
31929
|
-
control: () => `w-full flex ring-0 cursor-pointer outline-0 md:!min-w-max max-w-max !shadow-none pl-3 text-sm text-[#1A1A1B] font-normal gap-2 opacity-100 leading-5 resize-none overflow-hidden border border-transparent border-b border-[#f7f7f7] hover:border-b-primary ${readonly ? `!cursor-not-allowed ${filteredValue?.length === 0 && "no-values"}` : ""}`,
|
|
31927
|
+
control: () => `widget many2many-tags-widget w-full flex ring-0 cursor-pointer outline-0 md:!min-w-max max-w-max !shadow-none pl-3 text-sm text-[#1A1A1B] font-normal gap-2 opacity-100 leading-5 resize-none overflow-hidden border border-transparent border-b border-[#f7f7f7] hover:border-b-primary ${readonly ? `!cursor-not-allowed ${filteredValue?.length === 0 && "no-values"}` : ""}`,
|
|
31930
31928
|
dropdownIndicator: () => "invisible group-hover:visible !m-0 !p-0",
|
|
31931
31929
|
clearIndicator: () => "invisible group-hover:visible !m-0 !p-0"
|
|
31932
31930
|
} : {
|
|
31933
31931
|
valueContainer: () => "overflow-unset !m-0 !p-0",
|
|
31934
|
-
control: ({ isFocused }) => `w-full h-full flex ring-0 cursor-pointer outline-0 bg-white shadow-none rounded-lg p-2 pl-3 text-sm text-[#1A1A1B] font-normal cursor-pointer gap-2 opacity-100 leading-5 resize-none overflow-hidden field-sizing-content ${isFocused ? "border-[1px] border-primary ring-0 outline-none" : "border border-[rgba(66,66,66,0.12)]"} ${readonly && "!cursor-not-allowed"} ${filteredValue?.length === 0 && "no-values"}`,
|
|
31932
|
+
control: ({ isFocused }) => `widget many2many-tags-widget w-full h-full flex ring-0 cursor-pointer outline-0 bg-white shadow-none rounded-lg p-2 pl-3 text-sm text-[#1A1A1B] font-normal cursor-pointer gap-2 opacity-100 leading-5 resize-none overflow-hidden field-sizing-content ${isFocused ? "border-[1px] border-primary ring-0 outline-none" : "border border-[rgba(66,66,66,0.12)]"} ${readonly && "!cursor-not-allowed"} ${filteredValue?.length === 0 && "no-values"}`,
|
|
31935
31933
|
singleValue: () => `!m-0 ${readonly ? "!text-[#5c5a5a]" : ""}`,
|
|
31936
31934
|
input: () => "!m-0 !p-0",
|
|
31937
31935
|
dropdownIndicator: () => "!m-0 !p-0"
|
|
31938
|
-
}
|
|
31936
|
+
}}
|
|
31937
|
+
`,
|
|
31939
31938
|
styles: {
|
|
31940
31939
|
control: () => ({
|
|
31941
31940
|
maxWidth: isEditTable ? "max-content" : "100%",
|
|
@@ -32033,7 +32032,8 @@ var MonetaryField = (props) => {
|
|
|
32033
32032
|
widget,
|
|
32034
32033
|
placeholder,
|
|
32035
32034
|
isEditTable,
|
|
32036
|
-
symbol = "VND"
|
|
32035
|
+
symbol = "VND",
|
|
32036
|
+
baseClassName
|
|
32037
32037
|
} = props;
|
|
32038
32038
|
if (isForm && name2 === "amount_residual") {
|
|
32039
32039
|
return /* @__PURE__ */ jsxs66("div", { className: "flex justify-end gap-x-4 gap-y-2 ml-auto mt-2 lg:mt-5", children: [
|
|
@@ -32100,10 +32100,8 @@ var MonetaryField = (props) => {
|
|
|
32100
32100
|
placeholder: placeholder ?? `${t3("choose_place")} ${string}`,
|
|
32101
32101
|
required: !invisible && required,
|
|
32102
32102
|
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]"}
|
|
32103
|
+
className: `widget monetary-widget ${baseClassName}
|
|
32104
|
+
${error2 && isEditTable && "widget-error"}
|
|
32107
32105
|
`
|
|
32108
32106
|
}
|
|
32109
32107
|
),
|
|
@@ -32271,7 +32269,7 @@ var RadioGroupField = (props) => {
|
|
|
32271
32269
|
{
|
|
32272
32270
|
name: name2 ?? "",
|
|
32273
32271
|
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: [
|
|
32272
|
+
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
32273
|
/* @__PURE__ */ jsx104(
|
|
32276
32274
|
"input",
|
|
32277
32275
|
{
|
|
@@ -32310,7 +32308,7 @@ var RemainingDaysField = (props) => {
|
|
|
32310
32308
|
if (!value) return null;
|
|
32311
32309
|
const adjustedValue = (0, import_moment3.default)(value).add(7, "hours");
|
|
32312
32310
|
const isFuture = adjustedValue.isAfter((0, import_moment3.default)());
|
|
32313
|
-
return /* @__PURE__ */ jsxs69("div", { className: isForm ? "mb-4" : ""
|
|
32311
|
+
return /* @__PURE__ */ jsxs69("div", { className: `widget remaining-days-widget ${isForm ? "mb-4" : ""}`, children: [
|
|
32314
32312
|
/* @__PURE__ */ jsx105(M, { id: `remainingDays_${value}`, place: "top", content: string }),
|
|
32315
32313
|
/* @__PURE__ */ jsx105(
|
|
32316
32314
|
"div",
|
|
@@ -32345,7 +32343,8 @@ var SelectDropdownField = (props) => {
|
|
|
32345
32343
|
isForm,
|
|
32346
32344
|
onChange: onChange2,
|
|
32347
32345
|
string,
|
|
32348
|
-
isEditTable
|
|
32346
|
+
isEditTable,
|
|
32347
|
+
baseClassName
|
|
32349
32348
|
} = props;
|
|
32350
32349
|
const options2 = selection ? selection.map((val) => ({
|
|
32351
32350
|
value: val[0],
|
|
@@ -32387,7 +32386,7 @@ var SelectDropdownField = (props) => {
|
|
|
32387
32386
|
{
|
|
32388
32387
|
...commonProps,
|
|
32389
32388
|
classNames: {
|
|
32390
|
-
control: ({ isFocused }) => `
|
|
32389
|
+
control: ({ isFocused }) => `widget select-dropdown-widget ${baseClassName} ${isForm && (isFocused ? "focused" : "")}`,
|
|
32391
32390
|
valueContainer: () => "!m-0 !p-0 ",
|
|
32392
32391
|
singleValue: () => `!m-0`,
|
|
32393
32392
|
input: () => "!m-0 !p-0",
|
|
@@ -32465,7 +32464,8 @@ var TextAreaField = (props) => {
|
|
|
32465
32464
|
isForm,
|
|
32466
32465
|
value,
|
|
32467
32466
|
defaultValue,
|
|
32468
|
-
onChange: onChange2
|
|
32467
|
+
onChange: onChange2,
|
|
32468
|
+
baseClassName
|
|
32469
32469
|
} = props;
|
|
32470
32470
|
const formProps = methods ? methods.register(name2, {
|
|
32471
32471
|
onBlur: (e3) => {
|
|
@@ -32484,7 +32484,7 @@ var TextAreaField = (props) => {
|
|
|
32484
32484
|
{
|
|
32485
32485
|
...formProps,
|
|
32486
32486
|
defaultValue: value || defaultValue,
|
|
32487
|
-
className: `textarea-
|
|
32487
|
+
className: `widget textarea-widget ${baseClassName}`,
|
|
32488
32488
|
readOnly: readonly,
|
|
32489
32489
|
disabled: readonly,
|
|
32490
32490
|
placeholder,
|
|
@@ -32510,7 +32510,7 @@ var ToggleButtonField = (props) => {
|
|
|
32510
32510
|
{
|
|
32511
32511
|
name: name2 ?? "",
|
|
32512
32512
|
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: [
|
|
32513
|
+
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
32514
|
/* @__PURE__ */ jsx108(
|
|
32515
32515
|
"input",
|
|
32516
32516
|
{
|
|
@@ -32579,7 +32579,8 @@ var IntegerField = (props) => {
|
|
|
32579
32579
|
defaultValue,
|
|
32580
32580
|
onChange: onChange2,
|
|
32581
32581
|
string,
|
|
32582
|
-
isEditTable
|
|
32582
|
+
isEditTable,
|
|
32583
|
+
baseClassName
|
|
32583
32584
|
} = props;
|
|
32584
32585
|
const { t: t3 } = useI18n();
|
|
32585
32586
|
if (!isForm && !isEditTable) {
|
|
@@ -32693,10 +32694,8 @@ var IntegerField = (props) => {
|
|
|
32693
32694
|
placeholder,
|
|
32694
32695
|
required: !invisible && required,
|
|
32695
32696
|
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]"}
|
|
32697
|
+
className: `widget integer-widget ${baseClassName}
|
|
32698
|
+
${error2 && isEditTable && "widget-error"}
|
|
32700
32699
|
`
|
|
32701
32700
|
}
|
|
32702
32701
|
),
|
|
@@ -33091,7 +33090,8 @@ var Many2OneField = (props) => {
|
|
|
33091
33090
|
domainObject,
|
|
33092
33091
|
setIsShowModalMany2Many,
|
|
33093
33092
|
setInputValue,
|
|
33094
|
-
setDomainObject
|
|
33093
|
+
setDomainObject,
|
|
33094
|
+
baseClassName
|
|
33095
33095
|
} = props;
|
|
33096
33096
|
const { t: t3 } = useI18n();
|
|
33097
33097
|
if (!isForm && !isEditTable) {
|
|
@@ -33159,7 +33159,7 @@ var Many2OneField = (props) => {
|
|
|
33159
33159
|
menuShouldScrollIntoView: false,
|
|
33160
33160
|
options: listOptions,
|
|
33161
33161
|
classNames: {
|
|
33162
|
-
control: ({ isFocused }) => `
|
|
33162
|
+
control: ({ isFocused }) => `widget many2one-widget ${baseClassName} ${isForm && (isFocused ? "focused" : "")}`,
|
|
33163
33163
|
valueContainer: () => "!m-0 !p-0 ",
|
|
33164
33164
|
singleValue: () => `!m-0`,
|
|
33165
33165
|
input: () => "!m-0 !p-0",
|
|
@@ -33503,7 +33503,7 @@ var DateOptionField = (props) => {
|
|
|
33503
33503
|
render: ({ field }) => /* @__PURE__ */ jsxs78(
|
|
33504
33504
|
"label",
|
|
33505
33505
|
{
|
|
33506
|
-
className: `cursor-pointer mr-2 w-[50px] flex items-center justify-center p-[4px] border rounded-md text-sm
|
|
33506
|
+
className: `widget date-option-widget cursor-pointer mr-2 w-[50px] flex items-center justify-center p-[4px] border rounded-md text-sm
|
|
33507
33507
|
${field.value ? "bg-primary text-white border-primary" : "bg-white text-black border-[#f7f7f7]"}
|
|
33508
33508
|
${readonly ? "opacity-50 pointer-events-none" : ""}`,
|
|
33509
33509
|
children: [
|