@fctc/sme-widget-ui 2.5.4 → 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 +54 -54
- package/dist/index.mjs +54 -54
- package/dist/types.d.mts +1 -0
- package/dist/types.d.ts +1 -0
- package/dist/widgets.js +54 -54
- package/dist/widgets.mjs +54 -54
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -10897,7 +10897,7 @@ var Row = (props) => {
|
|
|
10897
10897
|
`${col.name}____${index4}`
|
|
10898
10898
|
);
|
|
10899
10899
|
}),
|
|
10900
|
-
typeof
|
|
10900
|
+
typeof onRemoveRow === "function" && row?.display_type !== "line_section" && /* @__PURE__ */ jsx47("td", { className: "relative p-2 w-[35px]", children: /* @__PURE__ */ jsx47("div", { className: "h-full w-full flex items-center justify-end cursor-pointer", children: /* @__PURE__ */ jsx47(
|
|
10901
10901
|
"button",
|
|
10902
10902
|
{
|
|
10903
10903
|
type: "button",
|
|
@@ -16870,7 +16870,7 @@ var BinaryField = (props) => {
|
|
|
16870
16870
|
"div",
|
|
16871
16871
|
{
|
|
16872
16872
|
ref: binaryRef,
|
|
16873
|
-
className: `binary-field flex w-fit items-center gap-4 ${onlyImage && initialFile ? "shadow-md rounded-lg" : ""}`,
|
|
16873
|
+
className: `widget binary-field flex w-fit items-center gap-4 ${onlyImage && initialFile ? "shadow-md rounded-lg" : ""}`,
|
|
16874
16874
|
children: hasFile ? /* @__PURE__ */ jsx75(
|
|
16875
16875
|
"div",
|
|
16876
16876
|
{
|
|
@@ -17106,7 +17106,7 @@ var ButtonBadgeField = (props) => {
|
|
|
17106
17106
|
return item && type === "selection" && Array.isArray(item) ? item[1] : item;
|
|
17107
17107
|
};
|
|
17108
17108
|
const label = getLabel(defaultValue ?? value);
|
|
17109
|
-
return label ? /* @__PURE__ */ jsx76("div", { style: { ...baseStyle, ...getType() }, children: label }) : null;
|
|
17109
|
+
return label ? /* @__PURE__ */ jsx76("div", { className: "widget badge-widget", style: { ...baseStyle, ...getType() }, children: label }) : null;
|
|
17110
17110
|
};
|
|
17111
17111
|
|
|
17112
17112
|
// src/widgets/basic/button-field/button.tsx
|
|
@@ -17171,7 +17171,8 @@ var CharField = (props) => {
|
|
|
17171
17171
|
isForm,
|
|
17172
17172
|
value,
|
|
17173
17173
|
defaultValue,
|
|
17174
|
-
options: options2
|
|
17174
|
+
options: options2,
|
|
17175
|
+
baseClassName
|
|
17175
17176
|
} = props;
|
|
17176
17177
|
if (!isForm && !isEditTable) {
|
|
17177
17178
|
const propValue = value || defaultValue;
|
|
@@ -17287,10 +17288,8 @@ var CharField = (props) => {
|
|
|
17287
17288
|
disabled: readonly,
|
|
17288
17289
|
placeholder,
|
|
17289
17290
|
required: !invisible && required,
|
|
17290
|
-
className: `
|
|
17291
|
-
${
|
|
17292
|
-
${!isEditTable ? isForm ? "bg-white border-input-primary rounded-[10px]" : "" : `border-transparent bg-transparent ${readonly ? "" : "border-b-primary !w-fit max-w-[200px]"}`}
|
|
17293
|
-
${error2 && isEditTable && "focus:border-b-[1px] focus:border-[#de4747] hover:border-b-[1px] hover:border-[#de4747]"}
|
|
17291
|
+
className: `widget char-widget ${baseClassName}
|
|
17292
|
+
${error2 && isEditTable && "widget-error"}
|
|
17294
17293
|
`
|
|
17295
17294
|
}
|
|
17296
17295
|
),
|
|
@@ -17355,7 +17354,8 @@ var SecureField = (props) => {
|
|
|
17355
17354
|
value,
|
|
17356
17355
|
defaultValue,
|
|
17357
17356
|
isForm,
|
|
17358
|
-
isEditTable
|
|
17357
|
+
isEditTable,
|
|
17358
|
+
baseClassName
|
|
17359
17359
|
} = props;
|
|
17360
17360
|
const { t: t3 } = useI18n();
|
|
17361
17361
|
const getPasswordMessage2 = (min4, max4, upcase2, digit2, special2) => {
|
|
@@ -17408,7 +17408,7 @@ var SecureField = (props) => {
|
|
|
17408
17408
|
useEffect12(() => {
|
|
17409
17409
|
if (value2) clearErrors(name2);
|
|
17410
17410
|
}, [value2, clearErrors, name2]);
|
|
17411
|
-
return /* @__PURE__ */ jsxs52("div", { className: `relative w-full ${className ?? ""}`, children: [
|
|
17411
|
+
return /* @__PURE__ */ jsxs52("div", { className: `secure-widget relative w-full ${className ?? ""}`, children: [
|
|
17412
17412
|
isCappedToken && shouldMask && /* @__PURE__ */ jsx80(
|
|
17413
17413
|
"div",
|
|
17414
17414
|
{
|
|
@@ -17468,9 +17468,7 @@ var SecureField = (props) => {
|
|
|
17468
17468
|
onCopy: (e3) => {
|
|
17469
17469
|
if (shouldMask) e3.preventDefault();
|
|
17470
17470
|
},
|
|
17471
|
-
className: `${!isCappedToken ? "w-full" : "w-[200px]"}
|
|
17472
|
-
${!isEditTable ? isForm ? "bg-white border-input-primary rounded-[10px]" : "" : `border-transparent bg-transparent ${readonly ? "" : "border-b-primary !w-fit max-w-[200px]"}`}
|
|
17473
|
-
${error2 && isEditTable && "focus:border-b-[1px] focus:border-[#de4747] hover:border-b-[1px] hover:border-[#de4747]"}`
|
|
17471
|
+
className: `${!isCappedToken ? "w-full" : "w-[200px]"} ${baseClassName} ${error2 && isEditTable && "widget-error"}`
|
|
17474
17472
|
}
|
|
17475
17473
|
),
|
|
17476
17474
|
canToggle && !isCappedToken && /* @__PURE__ */ jsx80(
|
|
@@ -17526,7 +17524,7 @@ var CheckboxField = (props) => {
|
|
|
17526
17524
|
render: ({ field }) => /* @__PURE__ */ jsx81(
|
|
17527
17525
|
"div",
|
|
17528
17526
|
{
|
|
17529
|
-
className: "flex items-center gap-2",
|
|
17527
|
+
className: "widget checkbox-widget flex items-center gap-2",
|
|
17530
17528
|
onClick: () => {
|
|
17531
17529
|
const checked = !field.value;
|
|
17532
17530
|
if (!isEditTable && readonly) return;
|
|
@@ -17685,7 +17683,8 @@ var CopyLinkButtonField = (props) => {
|
|
|
17685
17683
|
isCopied,
|
|
17686
17684
|
handleCopyToClipboard,
|
|
17687
17685
|
propValue,
|
|
17688
|
-
maskingValue
|
|
17686
|
+
maskingValue,
|
|
17687
|
+
baseClassName
|
|
17689
17688
|
} = props;
|
|
17690
17689
|
const { t: t3 } = useI18n();
|
|
17691
17690
|
if (!isForm) {
|
|
@@ -17709,15 +17708,12 @@ var CopyLinkButtonField = (props) => {
|
|
|
17709
17708
|
clearErrors(name2);
|
|
17710
17709
|
}
|
|
17711
17710
|
}, [value]);
|
|
17712
|
-
return /* @__PURE__ */ jsxs54("div", { className: "relative", children: [
|
|
17711
|
+
return /* @__PURE__ */ jsxs54("div", { className: "widget copy-link-widget relative", children: [
|
|
17713
17712
|
/* @__PURE__ */ jsxs54(
|
|
17714
17713
|
"div",
|
|
17715
17714
|
{
|
|
17716
17715
|
"aria-disabled": readonly,
|
|
17717
|
-
className:
|
|
17718
|
-
${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]"}
|
|
17719
|
-
${!isEditTable ? isForm ? "bg-white border-input-primary rounded-[10px]" : "" : `border-transparent bg-transparent ${readonly ? "" : "border-b-primary"}`}
|
|
17720
|
-
${error2 && isEditTable && "focus:border-b-[1px] focus:border-[#de4747] hover:border-b-[1px] hover:border-[#de4747]"}`,
|
|
17716
|
+
className: `${baseClassName} ${error2 && isEditTable && "widget-error"}`,
|
|
17721
17717
|
children: [
|
|
17722
17718
|
/* @__PURE__ */ jsx84(
|
|
17723
17719
|
"input",
|
|
@@ -31551,7 +31547,8 @@ var DateField = (props) => {
|
|
|
31551
31547
|
customValidateMinMax,
|
|
31552
31548
|
minNowValue,
|
|
31553
31549
|
maxNowValue,
|
|
31554
|
-
context
|
|
31550
|
+
context,
|
|
31551
|
+
baseClassName
|
|
31555
31552
|
} = props;
|
|
31556
31553
|
const { t: t3 } = useI18n();
|
|
31557
31554
|
const InputDateCustom = forwardRef6(
|
|
@@ -31602,6 +31599,7 @@ var DateField = (props) => {
|
|
|
31602
31599
|
/* @__PURE__ */ jsx88(
|
|
31603
31600
|
DatePicker,
|
|
31604
31601
|
{
|
|
31602
|
+
className: "widget date-widget",
|
|
31605
31603
|
selected: selectedDate,
|
|
31606
31604
|
onChange: (date) => {
|
|
31607
31605
|
if (date) {
|
|
@@ -31652,7 +31650,7 @@ var DateField = (props) => {
|
|
|
31652
31650
|
{
|
|
31653
31651
|
isForm,
|
|
31654
31652
|
defaultValue: field.value,
|
|
31655
|
-
className: `${
|
|
31653
|
+
className: `${baseClassName}`
|
|
31656
31654
|
}
|
|
31657
31655
|
),
|
|
31658
31656
|
timeInputLabel: textPlaceHolder,
|
|
@@ -31767,7 +31765,7 @@ var DownLoadBinaryField = (props) => {
|
|
|
31767
31765
|
{
|
|
31768
31766
|
type: "button",
|
|
31769
31767
|
onClick: handleFileDownload,
|
|
31770
|
-
className: "download-binary-field flex items-center gap-1 text-blue-700 my-auto",
|
|
31768
|
+
className: "widget download-binary-field flex items-center gap-1 text-blue-700 my-auto",
|
|
31771
31769
|
children: [
|
|
31772
31770
|
/* @__PURE__ */ jsx89(DownloadIcon, {}),
|
|
31773
31771
|
/* @__PURE__ */ jsx89("span", { className: "text-sm italic underline text-primary", children: t3("download_file") })
|
|
@@ -31789,7 +31787,7 @@ var DownloadFileField = (props) => {
|
|
|
31789
31787
|
handleFileChange,
|
|
31790
31788
|
handleFileDownload
|
|
31791
31789
|
} = props;
|
|
31792
|
-
return /* @__PURE__ */ jsxs58("div", { className: "", children: [
|
|
31790
|
+
return /* @__PURE__ */ jsxs58("div", { className: "widget download-file-widget", children: [
|
|
31793
31791
|
/* @__PURE__ */ jsxs58(
|
|
31794
31792
|
"label",
|
|
31795
31793
|
{
|
|
@@ -32103,7 +32101,8 @@ var FloatField = (props) => {
|
|
|
32103
32101
|
string,
|
|
32104
32102
|
defaultValue,
|
|
32105
32103
|
isEditTable,
|
|
32106
|
-
onChange: handleOnchange
|
|
32104
|
+
onChange: handleOnchange,
|
|
32105
|
+
baseClassName
|
|
32107
32106
|
} = props;
|
|
32108
32107
|
const { t: t3 } = useI18n();
|
|
32109
32108
|
if (!isForm && !isEditTable) {
|
|
@@ -32216,10 +32215,8 @@ var FloatField = (props) => {
|
|
|
32216
32215
|
placeholder,
|
|
32217
32216
|
required: !invisible && required,
|
|
32218
32217
|
style: invisible ? { display: "none" } : {},
|
|
32219
|
-
className: `
|
|
32220
|
-
${
|
|
32221
|
-
${!isEditTable ? isForm ? "bg-white border-input-primary rounded-[10px]" : "" : `border-transparent bg-transparent ${readonly ? "" : "border-b-primary"}`}
|
|
32222
|
-
${error2 && isEditTable && "focus:border-b-[1px] focus:border-[#de4747] hover:border-b-[1px] hover:border-[#de4747]"}
|
|
32218
|
+
className: `widget float-widget ${baseClassName}
|
|
32219
|
+
${error2 && isEditTable && "widget-error"}
|
|
32223
32220
|
`
|
|
32224
32221
|
}
|
|
32225
32222
|
),
|
|
@@ -32429,7 +32426,7 @@ var InfomationField = (props) => {
|
|
|
32429
32426
|
return /* @__PURE__ */ jsx98(Fragment28, {});
|
|
32430
32427
|
}
|
|
32431
32428
|
const inforValues = Array.isArray(value) ? value : [value];
|
|
32432
|
-
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(
|
|
32429
|
+
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(
|
|
32433
32430
|
AvatarField,
|
|
32434
32431
|
{
|
|
32435
32432
|
id: item.id,
|
|
@@ -32611,18 +32608,20 @@ var Many2ManyTagField = (props) => {
|
|
|
32611
32608
|
onMenuOpen: fetchMoreOptions,
|
|
32612
32609
|
menuPlacement: "auto",
|
|
32613
32610
|
placeholder: readonly ? "" : t3("choose_place"),
|
|
32614
|
-
classNames:
|
|
32611
|
+
classNames: `
|
|
32612
|
+
${isEditTable ? {
|
|
32615
32613
|
valueContainer: () => "overflow-unset !px-0",
|
|
32616
|
-
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"}` : ""}`,
|
|
32614
|
+
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"}` : ""}`,
|
|
32617
32615
|
dropdownIndicator: () => "invisible group-hover:visible !m-0 !p-0",
|
|
32618
32616
|
clearIndicator: () => "invisible group-hover:visible !m-0 !p-0"
|
|
32619
32617
|
} : {
|
|
32620
32618
|
valueContainer: () => "overflow-unset !m-0 !p-0",
|
|
32621
|
-
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"}`,
|
|
32619
|
+
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"}`,
|
|
32622
32620
|
singleValue: () => `!m-0 ${readonly ? "!text-[#5c5a5a]" : ""}`,
|
|
32623
32621
|
input: () => "!m-0 !p-0",
|
|
32624
32622
|
dropdownIndicator: () => "!m-0 !p-0"
|
|
32625
|
-
}
|
|
32623
|
+
}}
|
|
32624
|
+
`,
|
|
32626
32625
|
styles: {
|
|
32627
32626
|
control: () => ({
|
|
32628
32627
|
maxWidth: isEditTable ? "max-content" : "100%",
|
|
@@ -32720,7 +32719,8 @@ var MonetaryField = (props) => {
|
|
|
32720
32719
|
widget,
|
|
32721
32720
|
placeholder,
|
|
32722
32721
|
isEditTable,
|
|
32723
|
-
symbol = "VND"
|
|
32722
|
+
symbol = "VND",
|
|
32723
|
+
baseClassName
|
|
32724
32724
|
} = props;
|
|
32725
32725
|
if (isForm && name2 === "amount_residual") {
|
|
32726
32726
|
return /* @__PURE__ */ jsxs66("div", { className: "flex justify-end gap-x-4 gap-y-2 ml-auto mt-2 lg:mt-5", children: [
|
|
@@ -32787,10 +32787,8 @@ var MonetaryField = (props) => {
|
|
|
32787
32787
|
placeholder: placeholder ?? `${t3("choose_place")} ${string}`,
|
|
32788
32788
|
required: !invisible && required,
|
|
32789
32789
|
style: invisible ? { display: "none" } : {},
|
|
32790
|
-
className: `
|
|
32791
|
-
${
|
|
32792
|
-
${!isEditTable ? isForm ? "bg-white border-input-primary rounded-[10px]" : "" : `border-transparent bg-transparent ${readonly ? "" : "border-b-primary"}`}
|
|
32793
|
-
${error2 && isEditTable && "focus:border-b-[1px] focus:border-[#de4747] hover:border-b-[1px] hover:border-[#de4747]"}
|
|
32790
|
+
className: `widget monetary-widget ${baseClassName}
|
|
32791
|
+
${error2 && isEditTable && "widget-error"}
|
|
32794
32792
|
`
|
|
32795
32793
|
}
|
|
32796
32794
|
),
|
|
@@ -32958,7 +32956,7 @@ var RadioGroupField = (props) => {
|
|
|
32958
32956
|
{
|
|
32959
32957
|
name: name2 ?? "",
|
|
32960
32958
|
control: methods.control,
|
|
32961
|
-
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: [
|
|
32959
|
+
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: [
|
|
32962
32960
|
/* @__PURE__ */ jsx104(
|
|
32963
32961
|
"input",
|
|
32964
32962
|
{
|
|
@@ -32997,7 +32995,7 @@ var RemainingDaysField = (props) => {
|
|
|
32997
32995
|
if (!value) return null;
|
|
32998
32996
|
const adjustedValue = (0, import_moment3.default)(value).add(7, "hours");
|
|
32999
32997
|
const isFuture = adjustedValue.isAfter((0, import_moment3.default)());
|
|
33000
|
-
return /* @__PURE__ */ jsxs69("div", { className: isForm ? "mb-4" : ""
|
|
32998
|
+
return /* @__PURE__ */ jsxs69("div", { className: `widget remaining-days-widget ${isForm ? "mb-4" : ""}`, children: [
|
|
33001
32999
|
/* @__PURE__ */ jsx105(M, { id: `remainingDays_${value}`, place: "top", content: string }),
|
|
33002
33000
|
/* @__PURE__ */ jsx105(
|
|
33003
33001
|
"div",
|
|
@@ -33032,7 +33030,8 @@ var SelectDropdownField = (props) => {
|
|
|
33032
33030
|
isForm,
|
|
33033
33031
|
onChange: onChange2,
|
|
33034
33032
|
string,
|
|
33035
|
-
isEditTable
|
|
33033
|
+
isEditTable,
|
|
33034
|
+
baseClassName
|
|
33036
33035
|
} = props;
|
|
33037
33036
|
const options2 = selection ? selection.map((val) => ({
|
|
33038
33037
|
value: val[0],
|
|
@@ -33074,7 +33073,7 @@ var SelectDropdownField = (props) => {
|
|
|
33074
33073
|
{
|
|
33075
33074
|
...commonProps,
|
|
33076
33075
|
classNames: {
|
|
33077
|
-
control: ({ isFocused }) => `
|
|
33076
|
+
control: ({ isFocused }) => `widget select-dropdown-widget ${baseClassName} ${isForm && (isFocused ? "focused" : "")}`,
|
|
33078
33077
|
valueContainer: () => "!m-0 !p-0 ",
|
|
33079
33078
|
singleValue: () => `!m-0`,
|
|
33080
33079
|
input: () => "!m-0 !p-0",
|
|
@@ -33152,7 +33151,8 @@ var TextAreaField = (props) => {
|
|
|
33152
33151
|
isForm,
|
|
33153
33152
|
value,
|
|
33154
33153
|
defaultValue,
|
|
33155
|
-
onChange: onChange2
|
|
33154
|
+
onChange: onChange2,
|
|
33155
|
+
baseClassName
|
|
33156
33156
|
} = props;
|
|
33157
33157
|
const formProps = methods ? methods.register(name2, {
|
|
33158
33158
|
onBlur: (e3) => {
|
|
@@ -33171,7 +33171,7 @@ var TextAreaField = (props) => {
|
|
|
33171
33171
|
{
|
|
33172
33172
|
...formProps,
|
|
33173
33173
|
defaultValue: value || defaultValue,
|
|
33174
|
-
className: `textarea-
|
|
33174
|
+
className: `widget textarea-widget ${baseClassName}`,
|
|
33175
33175
|
readOnly: readonly,
|
|
33176
33176
|
disabled: readonly,
|
|
33177
33177
|
placeholder,
|
|
@@ -33197,7 +33197,7 @@ var ToggleButtonField = (props) => {
|
|
|
33197
33197
|
{
|
|
33198
33198
|
name: name2 ?? "",
|
|
33199
33199
|
control: methods?.control,
|
|
33200
|
-
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: [
|
|
33200
|
+
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: [
|
|
33201
33201
|
/* @__PURE__ */ jsx108(
|
|
33202
33202
|
"input",
|
|
33203
33203
|
{
|
|
@@ -33266,7 +33266,8 @@ var IntegerField = (props) => {
|
|
|
33266
33266
|
defaultValue,
|
|
33267
33267
|
onChange: onChange2,
|
|
33268
33268
|
string,
|
|
33269
|
-
isEditTable
|
|
33269
|
+
isEditTable,
|
|
33270
|
+
baseClassName
|
|
33270
33271
|
} = props;
|
|
33271
33272
|
const { t: t3 } = useI18n();
|
|
33272
33273
|
if (!isForm && !isEditTable) {
|
|
@@ -33380,10 +33381,8 @@ var IntegerField = (props) => {
|
|
|
33380
33381
|
placeholder,
|
|
33381
33382
|
required: !invisible && required,
|
|
33382
33383
|
style: invisible ? { display: "none" } : {},
|
|
33383
|
-
className: `
|
|
33384
|
-
${
|
|
33385
|
-
${!isEditTable ? isForm ? "bg-white border-input-primary rounded-[10px]" : "" : `border-transparent bg-transparent ${readonly ? "" : "border-b-primary"}`}
|
|
33386
|
-
${error2 && isEditTable && "focus:border-b-[1px] focus:border-[#de4747] hover:border-b-[1px] hover:border-[#de4747]"}
|
|
33384
|
+
className: `widget integer-widget ${baseClassName}
|
|
33385
|
+
${error2 && isEditTable && "widget-error"}
|
|
33387
33386
|
`
|
|
33388
33387
|
}
|
|
33389
33388
|
),
|
|
@@ -33778,7 +33777,8 @@ var Many2OneField = (props) => {
|
|
|
33778
33777
|
domainObject,
|
|
33779
33778
|
setIsShowModalMany2Many,
|
|
33780
33779
|
setInputValue,
|
|
33781
|
-
setDomainObject
|
|
33780
|
+
setDomainObject,
|
|
33781
|
+
baseClassName
|
|
33782
33782
|
} = props;
|
|
33783
33783
|
const { t: t3 } = useI18n();
|
|
33784
33784
|
if (!isForm && !isEditTable) {
|
|
@@ -33846,7 +33846,7 @@ var Many2OneField = (props) => {
|
|
|
33846
33846
|
menuShouldScrollIntoView: false,
|
|
33847
33847
|
options: listOptions,
|
|
33848
33848
|
classNames: {
|
|
33849
|
-
control: ({ isFocused }) => `
|
|
33849
|
+
control: ({ isFocused }) => `widget many2one-widget ${baseClassName} ${isForm && (isFocused ? "focused" : "")}`,
|
|
33850
33850
|
valueContainer: () => "!m-0 !p-0 ",
|
|
33851
33851
|
singleValue: () => `!m-0`,
|
|
33852
33852
|
input: () => "!m-0 !p-0",
|
|
@@ -34190,7 +34190,7 @@ var DateOptionField = (props) => {
|
|
|
34190
34190
|
render: ({ field }) => /* @__PURE__ */ jsxs78(
|
|
34191
34191
|
"label",
|
|
34192
34192
|
{
|
|
34193
|
-
className: `cursor-pointer mr-2 w-[50px] flex items-center justify-center p-[4px] border rounded-md text-sm
|
|
34193
|
+
className: `widget date-option-widget cursor-pointer mr-2 w-[50px] flex items-center justify-center p-[4px] border rounded-md text-sm
|
|
34194
34194
|
${field.value ? "bg-primary text-white border-primary" : "bg-white text-black border-[#f7f7f7]"}
|
|
34195
34195
|
${readonly ? "opacity-50 pointer-events-none" : ""}`,
|
|
34196
34196
|
children: [
|
package/dist/types.d.mts
CHANGED