@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 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,
@@ -32738,18 +32735,20 @@ var Many2ManyTagField = (props) => {
32738
32735
  onMenuOpen: fetchMoreOptions,
32739
32736
  menuPlacement: "auto",
32740
32737
  placeholder: readonly ? "" : t3("choose_place"),
32741
- classNames: isEditTable ? {
32738
+ classNames: `
32739
+ ${isEditTable ? {
32742
32740
  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"}` : ""}`,
32741
+ 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"}` : ""}`,
32744
32742
  dropdownIndicator: () => "invisible group-hover:visible !m-0 !p-0",
32745
32743
  clearIndicator: () => "invisible group-hover:visible !m-0 !p-0"
32746
32744
  } : {
32747
32745
  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"}`,
32746
+ 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"}`,
32749
32747
  singleValue: () => `!m-0 ${readonly ? "!text-[#5c5a5a]" : ""}`,
32750
32748
  input: () => "!m-0 !p-0",
32751
32749
  dropdownIndicator: () => "!m-0 !p-0"
32752
- },
32750
+ }}
32751
+ `,
32753
32752
  styles: {
32754
32753
  control: () => ({
32755
32754
  maxWidth: isEditTable ? "max-content" : "100%",
@@ -32847,7 +32846,8 @@ var MonetaryField = (props) => {
32847
32846
  widget,
32848
32847
  placeholder,
32849
32848
  isEditTable,
32850
- symbol = "VND"
32849
+ symbol = "VND",
32850
+ baseClassName
32851
32851
  } = props;
32852
32852
  if (isForm && name2 === "amount_residual") {
32853
32853
  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 +32914,8 @@ var MonetaryField = (props) => {
32914
32914
  placeholder: placeholder ?? `${t3("choose_place")} ${string}`,
32915
32915
  required: !invisible && required,
32916
32916
  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]"}
32917
+ className: `widget monetary-widget ${baseClassName}
32918
+ ${error2 && isEditTable && "widget-error"}
32921
32919
  `
32922
32920
  }
32923
32921
  ),
@@ -33085,7 +33083,7 @@ var RadioGroupField = (props) => {
33085
33083
  {
33086
33084
  name: name2 ?? "",
33087
33085
  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: [
33086
+ 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
33087
  /* @__PURE__ */ (0, import_jsx_runtime102.jsx)(
33090
33088
  "input",
33091
33089
  {
@@ -33124,7 +33122,7 @@ var RemainingDaysField = (props) => {
33124
33122
  if (!value) return null;
33125
33123
  const adjustedValue = (0, import_moment3.default)(value).add(7, "hours");
33126
33124
  const isFuture = adjustedValue.isAfter((0, import_moment3.default)());
33127
- return /* @__PURE__ */ (0, import_jsx_runtime103.jsxs)("div", { className: isForm ? "mb-4" : "", children: [
33125
+ return /* @__PURE__ */ (0, import_jsx_runtime103.jsxs)("div", { className: `widget remaining-days-widget ${isForm ? "mb-4" : ""}`, children: [
33128
33126
  /* @__PURE__ */ (0, import_jsx_runtime103.jsx)(M, { id: `remainingDays_${value}`, place: "top", content: string }),
33129
33127
  /* @__PURE__ */ (0, import_jsx_runtime103.jsx)(
33130
33128
  "div",
@@ -33159,7 +33157,8 @@ var SelectDropdownField = (props) => {
33159
33157
  isForm,
33160
33158
  onChange: onChange2,
33161
33159
  string,
33162
- isEditTable
33160
+ isEditTable,
33161
+ baseClassName
33163
33162
  } = props;
33164
33163
  const options2 = selection ? selection.map((val) => ({
33165
33164
  value: val[0],
@@ -33201,7 +33200,7 @@ var SelectDropdownField = (props) => {
33201
33200
  {
33202
33201
  ...commonProps,
33203
33202
  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"}`,
33203
+ control: ({ isFocused }) => `widget select-dropdown-widget ${baseClassName} ${isForm && (isFocused ? "focused" : "")}`,
33205
33204
  valueContainer: () => "!m-0 !p-0 ",
33206
33205
  singleValue: () => `!m-0`,
33207
33206
  input: () => "!m-0 !p-0",
@@ -33279,7 +33278,8 @@ var TextAreaField = (props) => {
33279
33278
  isForm,
33280
33279
  value,
33281
33280
  defaultValue,
33282
- onChange: onChange2
33281
+ onChange: onChange2,
33282
+ baseClassName
33283
33283
  } = props;
33284
33284
  const formProps = methods ? methods.register(name2, {
33285
33285
  onBlur: (e3) => {
@@ -33298,7 +33298,7 @@ var TextAreaField = (props) => {
33298
33298
  {
33299
33299
  ...formProps,
33300
33300
  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" : ""}`,
33301
+ className: `widget textarea-widget ${baseClassName}`,
33302
33302
  readOnly: readonly,
33303
33303
  disabled: readonly,
33304
33304
  placeholder,
@@ -33324,7 +33324,7 @@ var ToggleButtonField = (props) => {
33324
33324
  {
33325
33325
  name: name2 ?? "",
33326
33326
  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: [
33327
+ 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
33328
  /* @__PURE__ */ (0, import_jsx_runtime106.jsx)(
33329
33329
  "input",
33330
33330
  {
@@ -33393,7 +33393,8 @@ var IntegerField = (props) => {
33393
33393
  defaultValue,
33394
33394
  onChange: onChange2,
33395
33395
  string,
33396
- isEditTable
33396
+ isEditTable,
33397
+ baseClassName
33397
33398
  } = props;
33398
33399
  const { t: t3 } = useI18n();
33399
33400
  if (!isForm && !isEditTable) {
@@ -33507,10 +33508,8 @@ var IntegerField = (props) => {
33507
33508
  placeholder,
33508
33509
  required: !invisible && required,
33509
33510
  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]"}
33511
+ className: `widget integer-widget ${baseClassName}
33512
+ ${error2 && isEditTable && "widget-error"}
33514
33513
  `
33515
33514
  }
33516
33515
  ),
@@ -33905,7 +33904,8 @@ var Many2OneField = (props) => {
33905
33904
  domainObject,
33906
33905
  setIsShowModalMany2Many,
33907
33906
  setInputValue,
33908
- setDomainObject
33907
+ setDomainObject,
33908
+ baseClassName
33909
33909
  } = props;
33910
33910
  const { t: t3 } = useI18n();
33911
33911
  if (!isForm && !isEditTable) {
@@ -33973,7 +33973,7 @@ var Many2OneField = (props) => {
33973
33973
  menuShouldScrollIntoView: false,
33974
33974
  options: listOptions,
33975
33975
  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"}`,
33976
+ control: ({ isFocused }) => `widget many2one-widget ${baseClassName} ${isForm && (isFocused ? "focused" : "")}`,
33977
33977
  valueContainer: () => "!m-0 !p-0 ",
33978
33978
  singleValue: () => `!m-0`,
33979
33979
  input: () => "!m-0 !p-0",
@@ -34317,7 +34317,7 @@ var DateOptionField = (props) => {
34317
34317
  render: ({ field }) => /* @__PURE__ */ (0, import_jsx_runtime113.jsxs)(
34318
34318
  "label",
34319
34319
  {
34320
- className: `cursor-pointer mr-2 w-[50px] flex items-center justify-center p-[4px] border rounded-md text-sm
34320
+ className: `widget date-option-widget cursor-pointer mr-2 w-[50px] flex items-center justify-center p-[4px] border rounded-md text-sm
34321
34321
  ${field.value ? "bg-primary text-white border-primary" : "bg-white text-black border-[#f7f7f7]"}
34322
34322
  ${readonly ? "opacity-50 pointer-events-none" : ""}`,
34323
34323
  children: [