@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 +55 -54
- package/dist/index.mjs +55 -54
- package/dist/types.d.mts +1 -0
- package/dist/types.d.ts +1 -0
- package/dist/widgets.js +55 -54
- package/dist/widgets.mjs +55 -54
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -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,
|
|
@@ -32533,7 +32530,8 @@ var Many2ManyTagField = (props) => {
|
|
|
32533
32530
|
setDomainObject,
|
|
32534
32531
|
domainObject,
|
|
32535
32532
|
isFetching,
|
|
32536
|
-
setIsShowModalMany2Many
|
|
32533
|
+
setIsShowModalMany2Many,
|
|
32534
|
+
baseClassName
|
|
32537
32535
|
} = props;
|
|
32538
32536
|
const { t: t3 } = useI18n();
|
|
32539
32537
|
if (!isForm && !isEditTable) {
|
|
@@ -32611,18 +32609,20 @@ var Many2ManyTagField = (props) => {
|
|
|
32611
32609
|
onMenuOpen: fetchMoreOptions,
|
|
32612
32610
|
menuPlacement: "auto",
|
|
32613
32611
|
placeholder: readonly ? "" : t3("choose_place"),
|
|
32614
|
-
classNames:
|
|
32612
|
+
classNames: `
|
|
32613
|
+
${isEditTable ? {
|
|
32615
32614
|
valueContainer: () => "overflow-unset !px-0",
|
|
32616
|
-
control: () => `
|
|
32615
|
+
control: ({ isFocused }) => `widget many2many-tags-widget ${baseClassName} ${isFocused ? "focused" : ""} ${filteredValue?.length === 0 && "no-values"}`,
|
|
32617
32616
|
dropdownIndicator: () => "invisible group-hover:visible !m-0 !p-0",
|
|
32618
32617
|
clearIndicator: () => "invisible group-hover:visible !m-0 !p-0"
|
|
32619
32618
|
} : {
|
|
32620
32619
|
valueContainer: () => "overflow-unset !m-0 !p-0",
|
|
32621
|
-
control: ({ isFocused }) => `
|
|
32620
|
+
control: ({ isFocused }) => `widget many2many-tags-widget ${baseClassName} ${isFocused ? "focused" : ""} ${filteredValue?.length === 0 && "no-values"}`,
|
|
32622
32621
|
singleValue: () => `!m-0 ${readonly ? "!text-[#5c5a5a]" : ""}`,
|
|
32623
32622
|
input: () => "!m-0 !p-0",
|
|
32624
32623
|
dropdownIndicator: () => "!m-0 !p-0"
|
|
32625
|
-
}
|
|
32624
|
+
}}
|
|
32625
|
+
`,
|
|
32626
32626
|
styles: {
|
|
32627
32627
|
control: () => ({
|
|
32628
32628
|
maxWidth: isEditTable ? "max-content" : "100%",
|
|
@@ -32720,7 +32720,8 @@ var MonetaryField = (props) => {
|
|
|
32720
32720
|
widget,
|
|
32721
32721
|
placeholder,
|
|
32722
32722
|
isEditTable,
|
|
32723
|
-
symbol = "VND"
|
|
32723
|
+
symbol = "VND",
|
|
32724
|
+
baseClassName
|
|
32724
32725
|
} = props;
|
|
32725
32726
|
if (isForm && name2 === "amount_residual") {
|
|
32726
32727
|
return /* @__PURE__ */ jsxs66("div", { className: "flex justify-end gap-x-4 gap-y-2 ml-auto mt-2 lg:mt-5", children: [
|
|
@@ -32787,10 +32788,8 @@ var MonetaryField = (props) => {
|
|
|
32787
32788
|
placeholder: placeholder ?? `${t3("choose_place")} ${string}`,
|
|
32788
32789
|
required: !invisible && required,
|
|
32789
32790
|
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]"}
|
|
32791
|
+
className: `widget monetary-widget ${baseClassName}
|
|
32792
|
+
${error2 && isEditTable && "widget-error"}
|
|
32794
32793
|
`
|
|
32795
32794
|
}
|
|
32796
32795
|
),
|
|
@@ -32958,7 +32957,7 @@ var RadioGroupField = (props) => {
|
|
|
32958
32957
|
{
|
|
32959
32958
|
name: name2 ?? "",
|
|
32960
32959
|
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: [
|
|
32960
|
+
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
32961
|
/* @__PURE__ */ jsx104(
|
|
32963
32962
|
"input",
|
|
32964
32963
|
{
|
|
@@ -32997,7 +32996,7 @@ var RemainingDaysField = (props) => {
|
|
|
32997
32996
|
if (!value) return null;
|
|
32998
32997
|
const adjustedValue = (0, import_moment3.default)(value).add(7, "hours");
|
|
32999
32998
|
const isFuture = adjustedValue.isAfter((0, import_moment3.default)());
|
|
33000
|
-
return /* @__PURE__ */ jsxs69("div", { className: isForm ? "mb-4" : ""
|
|
32999
|
+
return /* @__PURE__ */ jsxs69("div", { className: `widget remaining-days-widget ${isForm ? "mb-4" : ""}`, children: [
|
|
33001
33000
|
/* @__PURE__ */ jsx105(M, { id: `remainingDays_${value}`, place: "top", content: string }),
|
|
33002
33001
|
/* @__PURE__ */ jsx105(
|
|
33003
33002
|
"div",
|
|
@@ -33032,7 +33031,8 @@ var SelectDropdownField = (props) => {
|
|
|
33032
33031
|
isForm,
|
|
33033
33032
|
onChange: onChange2,
|
|
33034
33033
|
string,
|
|
33035
|
-
isEditTable
|
|
33034
|
+
isEditTable,
|
|
33035
|
+
baseClassName
|
|
33036
33036
|
} = props;
|
|
33037
33037
|
const options2 = selection ? selection.map((val) => ({
|
|
33038
33038
|
value: val[0],
|
|
@@ -33074,7 +33074,7 @@ var SelectDropdownField = (props) => {
|
|
|
33074
33074
|
{
|
|
33075
33075
|
...commonProps,
|
|
33076
33076
|
classNames: {
|
|
33077
|
-
control: ({ isFocused }) => `
|
|
33077
|
+
control: ({ isFocused }) => `widget select-dropdown-widget ${baseClassName} ${isForm && (isFocused ? "focused" : "")}`,
|
|
33078
33078
|
valueContainer: () => "!m-0 !p-0 ",
|
|
33079
33079
|
singleValue: () => `!m-0`,
|
|
33080
33080
|
input: () => "!m-0 !p-0",
|
|
@@ -33152,7 +33152,8 @@ var TextAreaField = (props) => {
|
|
|
33152
33152
|
isForm,
|
|
33153
33153
|
value,
|
|
33154
33154
|
defaultValue,
|
|
33155
|
-
onChange: onChange2
|
|
33155
|
+
onChange: onChange2,
|
|
33156
|
+
baseClassName
|
|
33156
33157
|
} = props;
|
|
33157
33158
|
const formProps = methods ? methods.register(name2, {
|
|
33158
33159
|
onBlur: (e3) => {
|
|
@@ -33171,7 +33172,7 @@ var TextAreaField = (props) => {
|
|
|
33171
33172
|
{
|
|
33172
33173
|
...formProps,
|
|
33173
33174
|
defaultValue: value || defaultValue,
|
|
33174
|
-
className: `textarea-
|
|
33175
|
+
className: `widget textarea-widget ${baseClassName}`,
|
|
33175
33176
|
readOnly: readonly,
|
|
33176
33177
|
disabled: readonly,
|
|
33177
33178
|
placeholder,
|
|
@@ -33197,7 +33198,7 @@ var ToggleButtonField = (props) => {
|
|
|
33197
33198
|
{
|
|
33198
33199
|
name: name2 ?? "",
|
|
33199
33200
|
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: [
|
|
33201
|
+
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
33202
|
/* @__PURE__ */ jsx108(
|
|
33202
33203
|
"input",
|
|
33203
33204
|
{
|
|
@@ -33266,7 +33267,8 @@ var IntegerField = (props) => {
|
|
|
33266
33267
|
defaultValue,
|
|
33267
33268
|
onChange: onChange2,
|
|
33268
33269
|
string,
|
|
33269
|
-
isEditTable
|
|
33270
|
+
isEditTable,
|
|
33271
|
+
baseClassName
|
|
33270
33272
|
} = props;
|
|
33271
33273
|
const { t: t3 } = useI18n();
|
|
33272
33274
|
if (!isForm && !isEditTable) {
|
|
@@ -33380,10 +33382,8 @@ var IntegerField = (props) => {
|
|
|
33380
33382
|
placeholder,
|
|
33381
33383
|
required: !invisible && required,
|
|
33382
33384
|
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]"}
|
|
33385
|
+
className: `widget integer-widget ${baseClassName}
|
|
33386
|
+
${error2 && isEditTable && "widget-error"}
|
|
33387
33387
|
`
|
|
33388
33388
|
}
|
|
33389
33389
|
),
|
|
@@ -33778,7 +33778,8 @@ var Many2OneField = (props) => {
|
|
|
33778
33778
|
domainObject,
|
|
33779
33779
|
setIsShowModalMany2Many,
|
|
33780
33780
|
setInputValue,
|
|
33781
|
-
setDomainObject
|
|
33781
|
+
setDomainObject,
|
|
33782
|
+
baseClassName
|
|
33782
33783
|
} = props;
|
|
33783
33784
|
const { t: t3 } = useI18n();
|
|
33784
33785
|
if (!isForm && !isEditTable) {
|
|
@@ -33846,7 +33847,7 @@ var Many2OneField = (props) => {
|
|
|
33846
33847
|
menuShouldScrollIntoView: false,
|
|
33847
33848
|
options: listOptions,
|
|
33848
33849
|
classNames: {
|
|
33849
|
-
control: ({ isFocused }) => `
|
|
33850
|
+
control: ({ isFocused }) => `widget many2one-widget ${baseClassName} ${isForm && (isFocused ? "focused" : "")}`,
|
|
33850
33851
|
valueContainer: () => "!m-0 !p-0 ",
|
|
33851
33852
|
singleValue: () => `!m-0`,
|
|
33852
33853
|
input: () => "!m-0 !p-0",
|
|
@@ -34190,7 +34191,7 @@ var DateOptionField = (props) => {
|
|
|
34190
34191
|
render: ({ field }) => /* @__PURE__ */ jsxs78(
|
|
34191
34192
|
"label",
|
|
34192
34193
|
{
|
|
34193
|
-
className: `cursor-pointer mr-2 w-[50px] flex items-center justify-center p-[4px] border rounded-md text-sm
|
|
34194
|
+
className: `widget date-option-widget cursor-pointer mr-2 w-[50px] flex items-center justify-center p-[4px] border rounded-md text-sm
|
|
34194
34195
|
${field.value ? "bg-primary text-white border-primary" : "bg-white text-black border-[#f7f7f7]"}
|
|
34195
34196
|
${readonly ? "opacity-50 pointer-events-none" : ""}`,
|
|
34196
34197
|
children: [
|
package/dist/types.d.mts
CHANGED