@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/widgets.js
CHANGED
|
@@ -10016,7 +10016,7 @@ var Row = (props) => {
|
|
|
10016
10016
|
`${col.name}____${index4}`
|
|
10017
10017
|
);
|
|
10018
10018
|
}),
|
|
10019
|
-
typeof
|
|
10019
|
+
typeof onRemoveRow === "function" && row?.display_type !== "line_section" && /* @__PURE__ */ (0, import_jsx_runtime47.jsx)("td", { className: "relative p-2 w-[35px]", children: /* @__PURE__ */ (0, import_jsx_runtime47.jsx)("div", { className: "h-full w-full flex items-center justify-end cursor-pointer", children: /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(
|
|
10020
10020
|
"button",
|
|
10021
10021
|
{
|
|
10022
10022
|
type: "button",
|
|
@@ -16246,7 +16246,7 @@ var BinaryField = (props) => {
|
|
|
16246
16246
|
"div",
|
|
16247
16247
|
{
|
|
16248
16248
|
ref: binaryRef,
|
|
16249
|
-
className: `binary-field flex w-fit items-center gap-4 ${onlyImage && initialFile ? "shadow-md rounded-lg" : ""}`,
|
|
16249
|
+
className: `widget binary-field flex w-fit items-center gap-4 ${onlyImage && initialFile ? "shadow-md rounded-lg" : ""}`,
|
|
16250
16250
|
children: hasFile ? /* @__PURE__ */ (0, import_jsx_runtime75.jsx)(
|
|
16251
16251
|
"div",
|
|
16252
16252
|
{
|
|
@@ -16482,7 +16482,7 @@ var ButtonBadgeField = (props) => {
|
|
|
16482
16482
|
return item && type === "selection" && Array.isArray(item) ? item[1] : item;
|
|
16483
16483
|
};
|
|
16484
16484
|
const label = getLabel(defaultValue ?? value);
|
|
16485
|
-
return label ? /* @__PURE__ */ (0, import_jsx_runtime76.jsx)("div", { style: { ...baseStyle, ...getType() }, children: label }) : null;
|
|
16485
|
+
return label ? /* @__PURE__ */ (0, import_jsx_runtime76.jsx)("div", { className: "widget badge-widget", style: { ...baseStyle, ...getType() }, children: label }) : null;
|
|
16486
16486
|
};
|
|
16487
16487
|
|
|
16488
16488
|
// src/widgets/basic/button-field/button.tsx
|
|
@@ -16547,7 +16547,8 @@ var CharField = (props) => {
|
|
|
16547
16547
|
isForm,
|
|
16548
16548
|
value,
|
|
16549
16549
|
defaultValue,
|
|
16550
|
-
options: options2
|
|
16550
|
+
options: options2,
|
|
16551
|
+
baseClassName
|
|
16551
16552
|
} = props;
|
|
16552
16553
|
if (!isForm && !isEditTable) {
|
|
16553
16554
|
const propValue = value || defaultValue;
|
|
@@ -16663,10 +16664,8 @@ var CharField = (props) => {
|
|
|
16663
16664
|
disabled: readonly,
|
|
16664
16665
|
placeholder,
|
|
16665
16666
|
required: !invisible && required,
|
|
16666
|
-
className: `
|
|
16667
|
-
${
|
|
16668
|
-
${!isEditTable ? isForm ? "bg-white border-input-primary rounded-[10px]" : "" : `border-transparent bg-transparent ${readonly ? "" : "border-b-primary !w-fit max-w-[200px]"}`}
|
|
16669
|
-
${error2 && isEditTable && "focus:border-b-[1px] focus:border-[#de4747] hover:border-b-[1px] hover:border-[#de4747]"}
|
|
16667
|
+
className: `widget char-widget ${baseClassName}
|
|
16668
|
+
${error2 && isEditTable && "widget-error"}
|
|
16670
16669
|
`
|
|
16671
16670
|
}
|
|
16672
16671
|
),
|
|
@@ -16731,7 +16730,8 @@ var SecureField = (props) => {
|
|
|
16731
16730
|
value,
|
|
16732
16731
|
defaultValue,
|
|
16733
16732
|
isForm,
|
|
16734
|
-
isEditTable
|
|
16733
|
+
isEditTable,
|
|
16734
|
+
baseClassName
|
|
16735
16735
|
} = props;
|
|
16736
16736
|
const { t: t3 } = useI18n();
|
|
16737
16737
|
const getPasswordMessage2 = (min4, max4, upcase2, digit2, special2) => {
|
|
@@ -16784,7 +16784,7 @@ var SecureField = (props) => {
|
|
|
16784
16784
|
(0, import_react41.useEffect)(() => {
|
|
16785
16785
|
if (value2) clearErrors(name2);
|
|
16786
16786
|
}, [value2, clearErrors, name2]);
|
|
16787
|
-
return /* @__PURE__ */ (0, import_jsx_runtime80.jsxs)("div", { className: `relative w-full ${className ?? ""}`, children: [
|
|
16787
|
+
return /* @__PURE__ */ (0, import_jsx_runtime80.jsxs)("div", { className: `secure-widget relative w-full ${className ?? ""}`, children: [
|
|
16788
16788
|
isCappedToken && shouldMask && /* @__PURE__ */ (0, import_jsx_runtime80.jsx)(
|
|
16789
16789
|
"div",
|
|
16790
16790
|
{
|
|
@@ -16844,9 +16844,7 @@ var SecureField = (props) => {
|
|
|
16844
16844
|
onCopy: (e3) => {
|
|
16845
16845
|
if (shouldMask) e3.preventDefault();
|
|
16846
16846
|
},
|
|
16847
|
-
className: `${!isCappedToken ? "w-full" : "w-[200px]"}
|
|
16848
|
-
${!isEditTable ? isForm ? "bg-white border-input-primary rounded-[10px]" : "" : `border-transparent bg-transparent ${readonly ? "" : "border-b-primary !w-fit max-w-[200px]"}`}
|
|
16849
|
-
${error2 && isEditTable && "focus:border-b-[1px] focus:border-[#de4747] hover:border-b-[1px] hover:border-[#de4747]"}`
|
|
16847
|
+
className: `${!isCappedToken ? "w-full" : "w-[200px]"} ${baseClassName} ${error2 && isEditTable && "widget-error"}`
|
|
16850
16848
|
}
|
|
16851
16849
|
),
|
|
16852
16850
|
canToggle && !isCappedToken && /* @__PURE__ */ (0, import_jsx_runtime80.jsx)(
|
|
@@ -16902,7 +16900,7 @@ var CheckboxField = (props) => {
|
|
|
16902
16900
|
render: ({ field }) => /* @__PURE__ */ (0, import_jsx_runtime81.jsx)(
|
|
16903
16901
|
"div",
|
|
16904
16902
|
{
|
|
16905
|
-
className: "flex items-center gap-2",
|
|
16903
|
+
className: "widget checkbox-widget flex items-center gap-2",
|
|
16906
16904
|
onClick: () => {
|
|
16907
16905
|
const checked = !field.value;
|
|
16908
16906
|
if (!isEditTable && readonly) return;
|
|
@@ -17061,7 +17059,8 @@ var CopyLinkButtonField = (props) => {
|
|
|
17061
17059
|
isCopied,
|
|
17062
17060
|
handleCopyToClipboard,
|
|
17063
17061
|
propValue,
|
|
17064
|
-
maskingValue
|
|
17062
|
+
maskingValue,
|
|
17063
|
+
baseClassName
|
|
17065
17064
|
} = props;
|
|
17066
17065
|
const { t: t3 } = useI18n();
|
|
17067
17066
|
if (!isForm) {
|
|
@@ -17085,15 +17084,12 @@ var CopyLinkButtonField = (props) => {
|
|
|
17085
17084
|
clearErrors(name2);
|
|
17086
17085
|
}
|
|
17087
17086
|
}, [value]);
|
|
17088
|
-
return /* @__PURE__ */ (0, import_jsx_runtime84.jsxs)("div", { className: "relative", children: [
|
|
17087
|
+
return /* @__PURE__ */ (0, import_jsx_runtime84.jsxs)("div", { className: "widget copy-link-widget relative", children: [
|
|
17089
17088
|
/* @__PURE__ */ (0, import_jsx_runtime84.jsxs)(
|
|
17090
17089
|
"div",
|
|
17091
17090
|
{
|
|
17092
17091
|
"aria-disabled": readonly,
|
|
17093
|
-
className:
|
|
17094
|
-
${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]"}
|
|
17095
|
-
${!isEditTable ? isForm ? "bg-white border-input-primary rounded-[10px]" : "" : `border-transparent bg-transparent ${readonly ? "" : "border-b-primary"}`}
|
|
17096
|
-
${error2 && isEditTable && "focus:border-b-[1px] focus:border-[#de4747] hover:border-b-[1px] hover:border-[#de4747]"}`,
|
|
17092
|
+
className: `${baseClassName} ${error2 && isEditTable && "widget-error"}`,
|
|
17097
17093
|
children: [
|
|
17098
17094
|
/* @__PURE__ */ (0, import_jsx_runtime84.jsx)(
|
|
17099
17095
|
"input",
|
|
@@ -30927,7 +30923,8 @@ var DateField = (props) => {
|
|
|
30927
30923
|
customValidateMinMax,
|
|
30928
30924
|
minNowValue,
|
|
30929
30925
|
maxNowValue,
|
|
30930
|
-
context
|
|
30926
|
+
context,
|
|
30927
|
+
baseClassName
|
|
30931
30928
|
} = props;
|
|
30932
30929
|
const { t: t3 } = useI18n();
|
|
30933
30930
|
const InputDateCustom = (0, import_react56.forwardRef)(
|
|
@@ -30978,6 +30975,7 @@ var DateField = (props) => {
|
|
|
30978
30975
|
/* @__PURE__ */ (0, import_jsx_runtime86.jsx)(
|
|
30979
30976
|
DatePicker,
|
|
30980
30977
|
{
|
|
30978
|
+
className: "widget date-widget",
|
|
30981
30979
|
selected: selectedDate,
|
|
30982
30980
|
onChange: (date) => {
|
|
30983
30981
|
if (date) {
|
|
@@ -31028,7 +31026,7 @@ var DateField = (props) => {
|
|
|
31028
31026
|
{
|
|
31029
31027
|
isForm,
|
|
31030
31028
|
defaultValue: field.value,
|
|
31031
|
-
className: `${
|
|
31029
|
+
className: `${baseClassName}`
|
|
31032
31030
|
}
|
|
31033
31031
|
),
|
|
31034
31032
|
timeInputLabel: textPlaceHolder,
|
|
@@ -31143,7 +31141,7 @@ var DownLoadBinaryField = (props) => {
|
|
|
31143
31141
|
{
|
|
31144
31142
|
type: "button",
|
|
31145
31143
|
onClick: handleFileDownload,
|
|
31146
|
-
className: "download-binary-field flex items-center gap-1 text-blue-700 my-auto",
|
|
31144
|
+
className: "widget download-binary-field flex items-center gap-1 text-blue-700 my-auto",
|
|
31147
31145
|
children: [
|
|
31148
31146
|
/* @__PURE__ */ (0, import_jsx_runtime87.jsx)(DownloadIcon, {}),
|
|
31149
31147
|
/* @__PURE__ */ (0, import_jsx_runtime87.jsx)("span", { className: "text-sm italic underline text-primary", children: t3("download_file") })
|
|
@@ -31165,7 +31163,7 @@ var DownloadFileField = (props) => {
|
|
|
31165
31163
|
handleFileChange,
|
|
31166
31164
|
handleFileDownload
|
|
31167
31165
|
} = props;
|
|
31168
|
-
return /* @__PURE__ */ (0, import_jsx_runtime88.jsxs)("div", { className: "", children: [
|
|
31166
|
+
return /* @__PURE__ */ (0, import_jsx_runtime88.jsxs)("div", { className: "widget download-file-widget", children: [
|
|
31169
31167
|
/* @__PURE__ */ (0, import_jsx_runtime88.jsxs)(
|
|
31170
31168
|
"label",
|
|
31171
31169
|
{
|
|
@@ -31479,7 +31477,8 @@ var FloatField = (props) => {
|
|
|
31479
31477
|
string,
|
|
31480
31478
|
defaultValue,
|
|
31481
31479
|
isEditTable,
|
|
31482
|
-
onChange: handleOnchange
|
|
31480
|
+
onChange: handleOnchange,
|
|
31481
|
+
baseClassName
|
|
31483
31482
|
} = props;
|
|
31484
31483
|
const { t: t3 } = useI18n();
|
|
31485
31484
|
if (!isForm && !isEditTable) {
|
|
@@ -31592,10 +31591,8 @@ var FloatField = (props) => {
|
|
|
31592
31591
|
placeholder,
|
|
31593
31592
|
required: !invisible && required,
|
|
31594
31593
|
style: invisible ? { display: "none" } : {},
|
|
31595
|
-
className: `
|
|
31596
|
-
${
|
|
31597
|
-
${!isEditTable ? isForm ? "bg-white border-input-primary rounded-[10px]" : "" : `border-transparent bg-transparent ${readonly ? "" : "border-b-primary"}`}
|
|
31598
|
-
${error2 && isEditTable && "focus:border-b-[1px] focus:border-[#de4747] hover:border-b-[1px] hover:border-[#de4747]"}
|
|
31594
|
+
className: `widget float-widget ${baseClassName}
|
|
31595
|
+
${error2 && isEditTable && "widget-error"}
|
|
31599
31596
|
`
|
|
31600
31597
|
}
|
|
31601
31598
|
),
|
|
@@ -31805,7 +31802,7 @@ var InfomationField = (props) => {
|
|
|
31805
31802
|
return /* @__PURE__ */ (0, import_jsx_runtime96.jsx)(import_jsx_runtime96.Fragment, {});
|
|
31806
31803
|
}
|
|
31807
31804
|
const inforValues = Array.isArray(value) ? value : [value];
|
|
31808
|
-
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)(
|
|
31805
|
+
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)(
|
|
31809
31806
|
AvatarField,
|
|
31810
31807
|
{
|
|
31811
31808
|
id: item.id,
|
|
@@ -31987,18 +31984,20 @@ var Many2ManyTagField = (props) => {
|
|
|
31987
31984
|
onMenuOpen: fetchMoreOptions,
|
|
31988
31985
|
menuPlacement: "auto",
|
|
31989
31986
|
placeholder: readonly ? "" : t3("choose_place"),
|
|
31990
|
-
classNames:
|
|
31987
|
+
classNames: `
|
|
31988
|
+
${isEditTable ? {
|
|
31991
31989
|
valueContainer: () => "overflow-unset !px-0",
|
|
31992
|
-
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"}` : ""}`,
|
|
31990
|
+
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"}` : ""}`,
|
|
31993
31991
|
dropdownIndicator: () => "invisible group-hover:visible !m-0 !p-0",
|
|
31994
31992
|
clearIndicator: () => "invisible group-hover:visible !m-0 !p-0"
|
|
31995
31993
|
} : {
|
|
31996
31994
|
valueContainer: () => "overflow-unset !m-0 !p-0",
|
|
31997
|
-
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"}`,
|
|
31995
|
+
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"}`,
|
|
31998
31996
|
singleValue: () => `!m-0 ${readonly ? "!text-[#5c5a5a]" : ""}`,
|
|
31999
31997
|
input: () => "!m-0 !p-0",
|
|
32000
31998
|
dropdownIndicator: () => "!m-0 !p-0"
|
|
32001
|
-
}
|
|
31999
|
+
}}
|
|
32000
|
+
`,
|
|
32002
32001
|
styles: {
|
|
32003
32002
|
control: () => ({
|
|
32004
32003
|
maxWidth: isEditTable ? "max-content" : "100%",
|
|
@@ -32096,7 +32095,8 @@ var MonetaryField = (props) => {
|
|
|
32096
32095
|
widget,
|
|
32097
32096
|
placeholder,
|
|
32098
32097
|
isEditTable,
|
|
32099
|
-
symbol = "VND"
|
|
32098
|
+
symbol = "VND",
|
|
32099
|
+
baseClassName
|
|
32100
32100
|
} = props;
|
|
32101
32101
|
if (isForm && name2 === "amount_residual") {
|
|
32102
32102
|
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: [
|
|
@@ -32163,10 +32163,8 @@ var MonetaryField = (props) => {
|
|
|
32163
32163
|
placeholder: placeholder ?? `${t3("choose_place")} ${string}`,
|
|
32164
32164
|
required: !invisible && required,
|
|
32165
32165
|
style: invisible ? { display: "none" } : {},
|
|
32166
|
-
className: `
|
|
32167
|
-
${
|
|
32168
|
-
${!isEditTable ? isForm ? "bg-white border-input-primary rounded-[10px]" : "" : `border-transparent bg-transparent ${readonly ? "" : "border-b-primary"}`}
|
|
32169
|
-
${error2 && isEditTable && "focus:border-b-[1px] focus:border-[#de4747] hover:border-b-[1px] hover:border-[#de4747]"}
|
|
32166
|
+
className: `widget monetary-widget ${baseClassName}
|
|
32167
|
+
${error2 && isEditTable && "widget-error"}
|
|
32170
32168
|
`
|
|
32171
32169
|
}
|
|
32172
32170
|
),
|
|
@@ -32334,7 +32332,7 @@ var RadioGroupField = (props) => {
|
|
|
32334
32332
|
{
|
|
32335
32333
|
name: name2 ?? "",
|
|
32336
32334
|
control: methods.control,
|
|
32337
|
-
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: [
|
|
32335
|
+
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: [
|
|
32338
32336
|
/* @__PURE__ */ (0, import_jsx_runtime102.jsx)(
|
|
32339
32337
|
"input",
|
|
32340
32338
|
{
|
|
@@ -32373,7 +32371,7 @@ var RemainingDaysField = (props) => {
|
|
|
32373
32371
|
if (!value) return null;
|
|
32374
32372
|
const adjustedValue = (0, import_moment3.default)(value).add(7, "hours");
|
|
32375
32373
|
const isFuture = adjustedValue.isAfter((0, import_moment3.default)());
|
|
32376
|
-
return /* @__PURE__ */ (0, import_jsx_runtime103.jsxs)("div", { className: isForm ? "mb-4" : ""
|
|
32374
|
+
return /* @__PURE__ */ (0, import_jsx_runtime103.jsxs)("div", { className: `widget remaining-days-widget ${isForm ? "mb-4" : ""}`, children: [
|
|
32377
32375
|
/* @__PURE__ */ (0, import_jsx_runtime103.jsx)(M, { id: `remainingDays_${value}`, place: "top", content: string }),
|
|
32378
32376
|
/* @__PURE__ */ (0, import_jsx_runtime103.jsx)(
|
|
32379
32377
|
"div",
|
|
@@ -32408,7 +32406,8 @@ var SelectDropdownField = (props) => {
|
|
|
32408
32406
|
isForm,
|
|
32409
32407
|
onChange: onChange2,
|
|
32410
32408
|
string,
|
|
32411
|
-
isEditTable
|
|
32409
|
+
isEditTable,
|
|
32410
|
+
baseClassName
|
|
32412
32411
|
} = props;
|
|
32413
32412
|
const options2 = selection ? selection.map((val) => ({
|
|
32414
32413
|
value: val[0],
|
|
@@ -32450,7 +32449,7 @@ var SelectDropdownField = (props) => {
|
|
|
32450
32449
|
{
|
|
32451
32450
|
...commonProps,
|
|
32452
32451
|
classNames: {
|
|
32453
|
-
control: ({ isFocused }) => `
|
|
32452
|
+
control: ({ isFocused }) => `widget select-dropdown-widget ${baseClassName} ${isForm && (isFocused ? "focused" : "")}`,
|
|
32454
32453
|
valueContainer: () => "!m-0 !p-0 ",
|
|
32455
32454
|
singleValue: () => `!m-0`,
|
|
32456
32455
|
input: () => "!m-0 !p-0",
|
|
@@ -32528,7 +32527,8 @@ var TextAreaField = (props) => {
|
|
|
32528
32527
|
isForm,
|
|
32529
32528
|
value,
|
|
32530
32529
|
defaultValue,
|
|
32531
|
-
onChange: onChange2
|
|
32530
|
+
onChange: onChange2,
|
|
32531
|
+
baseClassName
|
|
32532
32532
|
} = props;
|
|
32533
32533
|
const formProps = methods ? methods.register(name2, {
|
|
32534
32534
|
onBlur: (e3) => {
|
|
@@ -32547,7 +32547,7 @@ var TextAreaField = (props) => {
|
|
|
32547
32547
|
{
|
|
32548
32548
|
...formProps,
|
|
32549
32549
|
defaultValue: value || defaultValue,
|
|
32550
|
-
className: `textarea-
|
|
32550
|
+
className: `widget textarea-widget ${baseClassName}`,
|
|
32551
32551
|
readOnly: readonly,
|
|
32552
32552
|
disabled: readonly,
|
|
32553
32553
|
placeholder,
|
|
@@ -32573,7 +32573,7 @@ var ToggleButtonField = (props) => {
|
|
|
32573
32573
|
{
|
|
32574
32574
|
name: name2 ?? "",
|
|
32575
32575
|
control: methods?.control,
|
|
32576
|
-
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: [
|
|
32576
|
+
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: [
|
|
32577
32577
|
/* @__PURE__ */ (0, import_jsx_runtime106.jsx)(
|
|
32578
32578
|
"input",
|
|
32579
32579
|
{
|
|
@@ -32642,7 +32642,8 @@ var IntegerField = (props) => {
|
|
|
32642
32642
|
defaultValue,
|
|
32643
32643
|
onChange: onChange2,
|
|
32644
32644
|
string,
|
|
32645
|
-
isEditTable
|
|
32645
|
+
isEditTable,
|
|
32646
|
+
baseClassName
|
|
32646
32647
|
} = props;
|
|
32647
32648
|
const { t: t3 } = useI18n();
|
|
32648
32649
|
if (!isForm && !isEditTable) {
|
|
@@ -32756,10 +32757,8 @@ var IntegerField = (props) => {
|
|
|
32756
32757
|
placeholder,
|
|
32757
32758
|
required: !invisible && required,
|
|
32758
32759
|
style: invisible ? { display: "none" } : {},
|
|
32759
|
-
className: `
|
|
32760
|
-
${
|
|
32761
|
-
${!isEditTable ? isForm ? "bg-white border-input-primary rounded-[10px]" : "" : `border-transparent bg-transparent ${readonly ? "" : "border-b-primary"}`}
|
|
32762
|
-
${error2 && isEditTable && "focus:border-b-[1px] focus:border-[#de4747] hover:border-b-[1px] hover:border-[#de4747]"}
|
|
32760
|
+
className: `widget integer-widget ${baseClassName}
|
|
32761
|
+
${error2 && isEditTable && "widget-error"}
|
|
32763
32762
|
`
|
|
32764
32763
|
}
|
|
32765
32764
|
),
|
|
@@ -33154,7 +33153,8 @@ var Many2OneField = (props) => {
|
|
|
33154
33153
|
domainObject,
|
|
33155
33154
|
setIsShowModalMany2Many,
|
|
33156
33155
|
setInputValue,
|
|
33157
|
-
setDomainObject
|
|
33156
|
+
setDomainObject,
|
|
33157
|
+
baseClassName
|
|
33158
33158
|
} = props;
|
|
33159
33159
|
const { t: t3 } = useI18n();
|
|
33160
33160
|
if (!isForm && !isEditTable) {
|
|
@@ -33222,7 +33222,7 @@ var Many2OneField = (props) => {
|
|
|
33222
33222
|
menuShouldScrollIntoView: false,
|
|
33223
33223
|
options: listOptions,
|
|
33224
33224
|
classNames: {
|
|
33225
|
-
control: ({ isFocused }) => `
|
|
33225
|
+
control: ({ isFocused }) => `widget many2one-widget ${baseClassName} ${isForm && (isFocused ? "focused" : "")}`,
|
|
33226
33226
|
valueContainer: () => "!m-0 !p-0 ",
|
|
33227
33227
|
singleValue: () => `!m-0`,
|
|
33228
33228
|
input: () => "!m-0 !p-0",
|
|
@@ -33566,7 +33566,7 @@ var DateOptionField = (props) => {
|
|
|
33566
33566
|
render: ({ field }) => /* @__PURE__ */ (0, import_jsx_runtime113.jsxs)(
|
|
33567
33567
|
"label",
|
|
33568
33568
|
{
|
|
33569
|
-
className: `cursor-pointer mr-2 w-[50px] flex items-center justify-center p-[4px] border rounded-md text-sm
|
|
33569
|
+
className: `widget date-option-widget cursor-pointer mr-2 w-[50px] flex items-center justify-center p-[4px] border rounded-md text-sm
|
|
33570
33570
|
${field.value ? "bg-primary text-white border-primary" : "bg-white text-black border-[#f7f7f7]"}
|
|
33571
33571
|
${readonly ? "opacity-50 pointer-events-none" : ""}`,
|
|
33572
33572
|
children: [
|