@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 CHANGED
@@ -16997,7 +16997,7 @@ var BinaryField = (props) => {
16997
16997
  "div",
16998
16998
  {
16999
16999
  ref: binaryRef,
17000
- className: `binary-field flex w-fit items-center gap-4 ${onlyImage && initialFile ? "shadow-md rounded-lg" : ""}`,
17000
+ className: `widget binary-field flex w-fit items-center gap-4 ${onlyImage && initialFile ? "shadow-md rounded-lg" : ""}`,
17001
17001
  children: hasFile ? /* @__PURE__ */ (0, import_jsx_runtime75.jsx)(
17002
17002
  "div",
17003
17003
  {
@@ -17233,7 +17233,7 @@ var ButtonBadgeField = (props) => {
17233
17233
  return item && type === "selection" && Array.isArray(item) ? item[1] : item;
17234
17234
  };
17235
17235
  const label = getLabel(defaultValue ?? value);
17236
- return label ? /* @__PURE__ */ (0, import_jsx_runtime76.jsx)("div", { style: { ...baseStyle, ...getType() }, children: label }) : null;
17236
+ return label ? /* @__PURE__ */ (0, import_jsx_runtime76.jsx)("div", { className: "widget badge-widget", style: { ...baseStyle, ...getType() }, children: label }) : null;
17237
17237
  };
17238
17238
 
17239
17239
  // src/widgets/basic/button-field/button.tsx
@@ -17298,7 +17298,8 @@ var CharField = (props) => {
17298
17298
  isForm,
17299
17299
  value,
17300
17300
  defaultValue,
17301
- options: options2
17301
+ options: options2,
17302
+ baseClassName
17302
17303
  } = props;
17303
17304
  if (!isForm && !isEditTable) {
17304
17305
  const propValue = value || defaultValue;
@@ -17414,10 +17415,8 @@ var CharField = (props) => {
17414
17415
  disabled: readonly,
17415
17416
  placeholder,
17416
17417
  required: !invisible && required,
17417
- className: `w-full h-full ring-0 focus:ring-0 focus:!outline-none outline-0 px-3 py-[12px] text-sm font-normal gap-2 opacity-100 leading-[1.5] resize-none overflow-hidden
17418
- ${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]"}
17419
- ${!isEditTable ? isForm ? "bg-white border-input-primary rounded-[10px]" : "" : `border-transparent bg-transparent ${readonly ? "" : "border-b-primary !w-fit max-w-[200px]"}`}
17420
- ${error2 && isEditTable && "focus:border-b-[1px] focus:border-[#de4747] hover:border-b-[1px] hover:border-[#de4747]"}
17418
+ className: `widget char-widget ${baseClassName}
17419
+ ${error2 && isEditTable && "widget-error"}
17421
17420
  `
17422
17421
  }
17423
17422
  ),
@@ -17482,7 +17481,8 @@ var SecureField = (props) => {
17482
17481
  value,
17483
17482
  defaultValue,
17484
17483
  isForm,
17485
- isEditTable
17484
+ isEditTable,
17485
+ baseClassName
17486
17486
  } = props;
17487
17487
  const { t: t3 } = useI18n();
17488
17488
  const getPasswordMessage2 = (min4, max4, upcase2, digit2, special2) => {
@@ -17535,7 +17535,7 @@ var SecureField = (props) => {
17535
17535
  (0, import_react41.useEffect)(() => {
17536
17536
  if (value2) clearErrors(name2);
17537
17537
  }, [value2, clearErrors, name2]);
17538
- return /* @__PURE__ */ (0, import_jsx_runtime80.jsxs)("div", { className: `relative w-full ${className ?? ""}`, children: [
17538
+ return /* @__PURE__ */ (0, import_jsx_runtime80.jsxs)("div", { className: `secure-widget relative w-full ${className ?? ""}`, children: [
17539
17539
  isCappedToken && shouldMask && /* @__PURE__ */ (0, import_jsx_runtime80.jsx)(
17540
17540
  "div",
17541
17541
  {
@@ -17595,9 +17595,7 @@ var SecureField = (props) => {
17595
17595
  onCopy: (e3) => {
17596
17596
  if (shouldMask) e3.preventDefault();
17597
17597
  },
17598
- className: `${!isCappedToken ? "w-full" : "w-[200px]"} h-full ring-0 focus:ring-0 focus:!outline-none outline-0 px-3 py-[12px] text-sm font-normal gap-2 opacity-100 leading-[1.5] resize-none overflow-hidden ${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]"}
17599
- ${!isEditTable ? isForm ? "bg-white border-input-primary rounded-[10px]" : "" : `border-transparent bg-transparent ${readonly ? "" : "border-b-primary !w-fit max-w-[200px]"}`}
17600
- ${error2 && isEditTable && "focus:border-b-[1px] focus:border-[#de4747] hover:border-b-[1px] hover:border-[#de4747]"}`
17598
+ className: `${!isCappedToken ? "w-full" : "w-[200px]"} ${baseClassName} ${error2 && isEditTable && "widget-error"}`
17601
17599
  }
17602
17600
  ),
17603
17601
  canToggle && !isCappedToken && /* @__PURE__ */ (0, import_jsx_runtime80.jsx)(
@@ -17653,7 +17651,7 @@ var CheckboxField = (props) => {
17653
17651
  render: ({ field }) => /* @__PURE__ */ (0, import_jsx_runtime81.jsx)(
17654
17652
  "div",
17655
17653
  {
17656
- className: "flex items-center gap-2",
17654
+ className: "widget checkbox-widget flex items-center gap-2",
17657
17655
  onClick: () => {
17658
17656
  const checked = !field.value;
17659
17657
  if (!isEditTable && readonly) return;
@@ -17812,7 +17810,8 @@ var CopyLinkButtonField = (props) => {
17812
17810
  isCopied,
17813
17811
  handleCopyToClipboard,
17814
17812
  propValue,
17815
- maskingValue
17813
+ maskingValue,
17814
+ baseClassName
17816
17815
  } = props;
17817
17816
  const { t: t3 } = useI18n();
17818
17817
  if (!isForm) {
@@ -17836,15 +17835,12 @@ var CopyLinkButtonField = (props) => {
17836
17835
  clearErrors(name2);
17837
17836
  }
17838
17837
  }, [value]);
17839
- return /* @__PURE__ */ (0, import_jsx_runtime84.jsxs)("div", { className: "relative", children: [
17838
+ return /* @__PURE__ */ (0, import_jsx_runtime84.jsxs)("div", { className: "widget copy-link-widget relative", children: [
17840
17839
  /* @__PURE__ */ (0, import_jsx_runtime84.jsxs)(
17841
17840
  "div",
17842
17841
  {
17843
17842
  "aria-disabled": readonly,
17844
- className: `flex relative w-full h-full ring-0 focus:ring-0 focus:!outline-none outline-0 px-3 py-[12px] text-sm font-normal gap-1 opacity-100 leading-[1.5] resize-none overflow-hidden
17845
- ${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]"}
17846
- ${!isEditTable ? isForm ? "bg-white border-input-primary rounded-[10px]" : "" : `border-transparent bg-transparent ${readonly ? "" : "border-b-primary"}`}
17847
- ${error2 && isEditTable && "focus:border-b-[1px] focus:border-[#de4747] hover:border-b-[1px] hover:border-[#de4747]"}`,
17843
+ className: `${baseClassName} ${error2 && isEditTable && "widget-error"}`,
17848
17844
  children: [
17849
17845
  /* @__PURE__ */ (0, import_jsx_runtime84.jsx)(
17850
17846
  "input",
@@ -31678,7 +31674,8 @@ var DateField = (props) => {
31678
31674
  customValidateMinMax,
31679
31675
  minNowValue,
31680
31676
  maxNowValue,
31681
- context
31677
+ context,
31678
+ baseClassName
31682
31679
  } = props;
31683
31680
  const { t: t3 } = useI18n();
31684
31681
  const InputDateCustom = (0, import_react56.forwardRef)(
@@ -31729,6 +31726,7 @@ var DateField = (props) => {
31729
31726
  /* @__PURE__ */ (0, import_jsx_runtime86.jsx)(
31730
31727
  DatePicker,
31731
31728
  {
31729
+ className: "widget date-widget",
31732
31730
  selected: selectedDate,
31733
31731
  onChange: (date) => {
31734
31732
  if (date) {
@@ -31779,7 +31777,7 @@ var DateField = (props) => {
31779
31777
  {
31780
31778
  isForm,
31781
31779
  defaultValue: field.value,
31782
- className: `${invisible ? "hidden" : ""} ${isEditTable ? `pl-2 border-b-primary py-[12px] px-3 ${readonly && "cursor-not-allowed"}` : !isForm ? "!bg-transparent focus-within:!border-none" : `w-full h-full ring-0 focus:ring-0 focus:!outline-none focus:border-[1px] focus:border-[#16a730] outline-0 bg-white border border-[rgba(66,66,66,0.12)] rounded-[10px] px-3 py-[12px] text-sm text-[#525866] font-normal gap-2 opacity-100 leading-[1.5] resize-none overflow-hidden ${readonly && "cursor-not-allowed"}`}`
31780
+ className: `${baseClassName}`
31783
31781
  }
31784
31782
  ),
31785
31783
  timeInputLabel: textPlaceHolder,
@@ -31894,7 +31892,7 @@ var DownLoadBinaryField = (props) => {
31894
31892
  {
31895
31893
  type: "button",
31896
31894
  onClick: handleFileDownload,
31897
- className: "download-binary-field flex items-center gap-1 text-blue-700 my-auto",
31895
+ className: "widget download-binary-field flex items-center gap-1 text-blue-700 my-auto",
31898
31896
  children: [
31899
31897
  /* @__PURE__ */ (0, import_jsx_runtime87.jsx)(DownloadIcon, {}),
31900
31898
  /* @__PURE__ */ (0, import_jsx_runtime87.jsx)("span", { className: "text-sm italic underline text-primary", children: t3("download_file") })
@@ -31916,7 +31914,7 @@ var DownloadFileField = (props) => {
31916
31914
  handleFileChange,
31917
31915
  handleFileDownload
31918
31916
  } = props;
31919
- return /* @__PURE__ */ (0, import_jsx_runtime88.jsxs)("div", { className: "", children: [
31917
+ return /* @__PURE__ */ (0, import_jsx_runtime88.jsxs)("div", { className: "widget download-file-widget", children: [
31920
31918
  /* @__PURE__ */ (0, import_jsx_runtime88.jsxs)(
31921
31919
  "label",
31922
31920
  {
@@ -32230,7 +32228,8 @@ var FloatField = (props) => {
32230
32228
  string,
32231
32229
  defaultValue,
32232
32230
  isEditTable,
32233
- onChange: handleOnchange
32231
+ onChange: handleOnchange,
32232
+ baseClassName
32234
32233
  } = props;
32235
32234
  const { t: t3 } = useI18n();
32236
32235
  if (!isForm && !isEditTable) {
@@ -32343,10 +32342,8 @@ var FloatField = (props) => {
32343
32342
  placeholder,
32344
32343
  required: !invisible && required,
32345
32344
  style: invisible ? { display: "none" } : {},
32346
- className: `w-full h-full ring-0 focus:ring-0 focus:!outline-none outline-0 px-3 py-[12px] text-sm font-normal gap-2 opacity-100 leading-[1.5] resize-none overflow-hidden
32347
- ${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]"}
32348
- ${!isEditTable ? isForm ? "bg-white border-input-primary rounded-[10px]" : "" : `border-transparent bg-transparent ${readonly ? "" : "border-b-primary"}`}
32349
- ${error2 && isEditTable && "focus:border-b-[1px] focus:border-[#de4747] hover:border-b-[1px] hover:border-[#de4747]"}
32345
+ className: `widget float-widget ${baseClassName}
32346
+ ${error2 && isEditTable && "widget-error"}
32350
32347
  `
32351
32348
  }
32352
32349
  ),
@@ -32556,7 +32553,7 @@ var InfomationField = (props) => {
32556
32553
  return /* @__PURE__ */ (0, import_jsx_runtime96.jsx)(import_jsx_runtime96.Fragment, {});
32557
32554
  }
32558
32555
  const inforValues = Array.isArray(value) ? value : [value];
32559
- return /* @__PURE__ */ (0, import_jsx_runtime96.jsx)("div", { className: "group relative flex items-center gap-1 rounded-lg transition-shadow duration-300", children: inforValues.length > 1 ? inforValues.map((item) => /* @__PURE__ */ (0, import_jsx_runtime96.jsx)(
32556
+ return /* @__PURE__ */ (0, import_jsx_runtime96.jsx)("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__ */ (0, import_jsx_runtime96.jsx)(
32560
32557
  AvatarField,
32561
32558
  {
32562
32559
  id: item.id,
@@ -32660,7 +32657,8 @@ var Many2ManyTagField = (props) => {
32660
32657
  setDomainObject,
32661
32658
  domainObject,
32662
32659
  isFetching,
32663
- setIsShowModalMany2Many
32660
+ setIsShowModalMany2Many,
32661
+ baseClassName
32664
32662
  } = props;
32665
32663
  const { t: t3 } = useI18n();
32666
32664
  if (!isForm && !isEditTable) {
@@ -32738,18 +32736,20 @@ var Many2ManyTagField = (props) => {
32738
32736
  onMenuOpen: fetchMoreOptions,
32739
32737
  menuPlacement: "auto",
32740
32738
  placeholder: readonly ? "" : t3("choose_place"),
32741
- classNames: isEditTable ? {
32739
+ classNames: `
32740
+ ${isEditTable ? {
32742
32741
  valueContainer: () => "overflow-unset !px-0",
32743
- 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"}` : ""}`,
32742
+ control: ({ isFocused }) => `widget many2many-tags-widget ${baseClassName} ${isFocused ? "focused" : ""} ${filteredValue?.length === 0 && "no-values"}`,
32744
32743
  dropdownIndicator: () => "invisible group-hover:visible !m-0 !p-0",
32745
32744
  clearIndicator: () => "invisible group-hover:visible !m-0 !p-0"
32746
32745
  } : {
32747
32746
  valueContainer: () => "overflow-unset !m-0 !p-0",
32748
- 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"}`,
32747
+ control: ({ isFocused }) => `widget many2many-tags-widget ${baseClassName} ${isFocused ? "focused" : ""} ${filteredValue?.length === 0 && "no-values"}`,
32749
32748
  singleValue: () => `!m-0 ${readonly ? "!text-[#5c5a5a]" : ""}`,
32750
32749
  input: () => "!m-0 !p-0",
32751
32750
  dropdownIndicator: () => "!m-0 !p-0"
32752
- },
32751
+ }}
32752
+ `,
32753
32753
  styles: {
32754
32754
  control: () => ({
32755
32755
  maxWidth: isEditTable ? "max-content" : "100%",
@@ -32847,7 +32847,8 @@ var MonetaryField = (props) => {
32847
32847
  widget,
32848
32848
  placeholder,
32849
32849
  isEditTable,
32850
- symbol = "VND"
32850
+ symbol = "VND",
32851
+ baseClassName
32851
32852
  } = props;
32852
32853
  if (isForm && name2 === "amount_residual") {
32853
32854
  return /* @__PURE__ */ (0, import_jsx_runtime98.jsxs)("div", { className: "flex justify-end gap-x-4 gap-y-2 ml-auto mt-2 lg:mt-5", children: [
@@ -32914,10 +32915,8 @@ var MonetaryField = (props) => {
32914
32915
  placeholder: placeholder ?? `${t3("choose_place")} ${string}`,
32915
32916
  required: !invisible && required,
32916
32917
  style: invisible ? { display: "none" } : {},
32917
- className: `w-full h-full ring-0 focus:ring-0 focus:!outline-none outline-0 px-3 py-[12px] text-sm font-normal gap-2 opacity-100 leading-[1.5] resize-none overflow-hidden
32918
- ${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]"}
32919
- ${!isEditTable ? isForm ? "bg-white border-input-primary rounded-[10px]" : "" : `border-transparent bg-transparent ${readonly ? "" : "border-b-primary"}`}
32920
- ${error2 && isEditTable && "focus:border-b-[1px] focus:border-[#de4747] hover:border-b-[1px] hover:border-[#de4747]"}
32918
+ className: `widget monetary-widget ${baseClassName}
32919
+ ${error2 && isEditTable && "widget-error"}
32921
32920
  `
32922
32921
  }
32923
32922
  ),
@@ -33085,7 +33084,7 @@ var RadioGroupField = (props) => {
33085
33084
  {
33086
33085
  name: name2 ?? "",
33087
33086
  control: methods.control,
33088
- render: ({ field }) => /* @__PURE__ */ (0, import_jsx_runtime102.jsx)("div", { className: "flex items-center gap-[10px] pb-4", children: selection?.map((select) => /* @__PURE__ */ (0, import_jsx_runtime102.jsxs)("div", { className: "flex items-center gap-1", children: [
33087
+ render: ({ field }) => /* @__PURE__ */ (0, import_jsx_runtime102.jsx)("div", { className: "widget radio-group-widget flex items-center gap-[10px] pb-4", children: selection?.map((select) => /* @__PURE__ */ (0, import_jsx_runtime102.jsxs)("div", { className: "flex items-center gap-1", children: [
33089
33088
  /* @__PURE__ */ (0, import_jsx_runtime102.jsx)(
33090
33089
  "input",
33091
33090
  {
@@ -33124,7 +33123,7 @@ var RemainingDaysField = (props) => {
33124
33123
  if (!value) return null;
33125
33124
  const adjustedValue = (0, import_moment3.default)(value).add(7, "hours");
33126
33125
  const isFuture = adjustedValue.isAfter((0, import_moment3.default)());
33127
- return /* @__PURE__ */ (0, import_jsx_runtime103.jsxs)("div", { className: isForm ? "mb-4" : "", children: [
33126
+ return /* @__PURE__ */ (0, import_jsx_runtime103.jsxs)("div", { className: `widget remaining-days-widget ${isForm ? "mb-4" : ""}`, children: [
33128
33127
  /* @__PURE__ */ (0, import_jsx_runtime103.jsx)(M, { id: `remainingDays_${value}`, place: "top", content: string }),
33129
33128
  /* @__PURE__ */ (0, import_jsx_runtime103.jsx)(
33130
33129
  "div",
@@ -33159,7 +33158,8 @@ var SelectDropdownField = (props) => {
33159
33158
  isForm,
33160
33159
  onChange: onChange2,
33161
33160
  string,
33162
- isEditTable
33161
+ isEditTable,
33162
+ baseClassName
33163
33163
  } = props;
33164
33164
  const options2 = selection ? selection.map((val) => ({
33165
33165
  value: val[0],
@@ -33201,7 +33201,7 @@ var SelectDropdownField = (props) => {
33201
33201
  {
33202
33202
  ...commonProps,
33203
33203
  classNames: {
33204
- control: ({ isFocused }) => `w-full flex h-full ring-0 cursor-pointer outline-0 bg-white shadow-none rounded-[10px] py-2 px-3 text-sm text-[#1A1A1B] font-normal cursor-pointer gap-2 opacity-100 leading-5 resize-none overflow-hidden field-sizing-content ${isForm && (isFocused && !isEditTable ? "border-[1px] border-primary !ring-0 outline-none" : "border border-[rgba(66,66,66,0.12)]")} ${readonly && "!cursor-not-allowed"} ${isEditTable && "md:!min-w-max max-w-max rounded-none border border-transparent border-b border-b-primary bg-transparent min-h-auto"}`,
33204
+ control: ({ isFocused }) => `widget select-dropdown-widget ${baseClassName} ${isForm && (isFocused ? "focused" : "")}`,
33205
33205
  valueContainer: () => "!m-0 !p-0 ",
33206
33206
  singleValue: () => `!m-0`,
33207
33207
  input: () => "!m-0 !p-0",
@@ -33279,7 +33279,8 @@ var TextAreaField = (props) => {
33279
33279
  isForm,
33280
33280
  value,
33281
33281
  defaultValue,
33282
- onChange: onChange2
33282
+ onChange: onChange2,
33283
+ baseClassName
33283
33284
  } = props;
33284
33285
  const formProps = methods ? methods.register(name2, {
33285
33286
  onBlur: (e3) => {
@@ -33298,7 +33299,7 @@ var TextAreaField = (props) => {
33298
33299
  {
33299
33300
  ...formProps,
33300
33301
  defaultValue: value || defaultValue,
33301
- className: `textarea-field h-fit w-full cursor-pointer rounded-lg focus:ring-0 focus:!outline-none focus:border-[1px] focus:border-primary outline-0 bg-[#fff] p-2 ${isForm ? "field" : ""}`,
33302
+ className: `widget textarea-widget ${baseClassName}`,
33302
33303
  readOnly: readonly,
33303
33304
  disabled: readonly,
33304
33305
  placeholder,
@@ -33324,7 +33325,7 @@ var ToggleButtonField = (props) => {
33324
33325
  {
33325
33326
  name: name2 ?? "",
33326
33327
  control: methods?.control,
33327
- render: ({ field }) => /* @__PURE__ */ (0, import_jsx_runtime106.jsx)("div", { className: "inline-flex items-center", children: /* @__PURE__ */ (0, import_jsx_runtime106.jsxs)("label", { className: "relative inline-block w-8 h-5 cursor-pointer", children: [
33328
+ render: ({ field }) => /* @__PURE__ */ (0, import_jsx_runtime106.jsx)("div", { className: "widget toggle-widget inline-flex items-center", children: /* @__PURE__ */ (0, import_jsx_runtime106.jsxs)("label", { className: "relative inline-block w-8 h-5 cursor-pointer", children: [
33328
33329
  /* @__PURE__ */ (0, import_jsx_runtime106.jsx)(
33329
33330
  "input",
33330
33331
  {
@@ -33393,7 +33394,8 @@ var IntegerField = (props) => {
33393
33394
  defaultValue,
33394
33395
  onChange: onChange2,
33395
33396
  string,
33396
- isEditTable
33397
+ isEditTable,
33398
+ baseClassName
33397
33399
  } = props;
33398
33400
  const { t: t3 } = useI18n();
33399
33401
  if (!isForm && !isEditTable) {
@@ -33507,10 +33509,8 @@ var IntegerField = (props) => {
33507
33509
  placeholder,
33508
33510
  required: !invisible && required,
33509
33511
  style: invisible ? { display: "none" } : {},
33510
- className: `w-full h-full ring-0 focus:ring-0 focus:!outline-none outline-0 px-3 py-[12px] text-sm font-normal gap-2 opacity-100 leading-[1.5] resize-none overflow-hidden
33511
- ${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]"}
33512
- ${!isEditTable ? isForm ? "bg-white border-input-primary rounded-[10px]" : "" : `border-transparent bg-transparent ${readonly ? "" : "border-b-primary"}`}
33513
- ${error2 && isEditTable && "focus:border-b-[1px] focus:border-[#de4747] hover:border-b-[1px] hover:border-[#de4747]"}
33512
+ className: `widget integer-widget ${baseClassName}
33513
+ ${error2 && isEditTable && "widget-error"}
33514
33514
  `
33515
33515
  }
33516
33516
  ),
@@ -33905,7 +33905,8 @@ var Many2OneField = (props) => {
33905
33905
  domainObject,
33906
33906
  setIsShowModalMany2Many,
33907
33907
  setInputValue,
33908
- setDomainObject
33908
+ setDomainObject,
33909
+ baseClassName
33909
33910
  } = props;
33910
33911
  const { t: t3 } = useI18n();
33911
33912
  if (!isForm && !isEditTable) {
@@ -33973,7 +33974,7 @@ var Many2OneField = (props) => {
33973
33974
  menuShouldScrollIntoView: false,
33974
33975
  options: listOptions,
33975
33976
  classNames: {
33976
- control: ({ isFocused }) => `w-full flex h-full ring-0 cursor-pointer outline-0 bg-white shadow-none rounded-[10px] py-2 px-3 text-sm text-[#1A1A1B] font-normal cursor-pointer gap-2 opacity-100 leading-5 resize-none overflow-hidden field-sizing-content ${isForm && (isFocused ? "border-[1px] border-primary !ring-0 outline-none" : "border border-[rgba(66,66,66,0.12)]")} ${readonly && "!cursor-not-allowed"} ${isEditTable && "md:!min-w-max max-w-max rounded-none border border-transparent border-b border-b-primary bg-transparent min-h-auto"}`,
33977
+ control: ({ isFocused }) => `widget many2one-widget ${baseClassName} ${isForm && (isFocused ? "focused" : "")}`,
33977
33978
  valueContainer: () => "!m-0 !p-0 ",
33978
33979
  singleValue: () => `!m-0`,
33979
33980
  input: () => "!m-0 !p-0",
@@ -34317,7 +34318,7 @@ var DateOptionField = (props) => {
34317
34318
  render: ({ field }) => /* @__PURE__ */ (0, import_jsx_runtime113.jsxs)(
34318
34319
  "label",
34319
34320
  {
34320
- className: `cursor-pointer mr-2 w-[50px] flex items-center justify-center p-[4px] border rounded-md text-sm
34321
+ className: `widget date-option-widget cursor-pointer mr-2 w-[50px] flex items-center justify-center p-[4px] border rounded-md text-sm
34321
34322
  ${field.value ? "bg-primary text-white border-primary" : "bg-white text-black border-[#f7f7f7]"}
34322
34323
  ${readonly ? "opacity-50 pointer-events-none" : ""}`,
34323
34324
  children: [