@fctc/sme-widget-ui 1.3.9 → 1.4.0

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
@@ -34613,12 +34613,12 @@ var Many2OneField = (props) => {
34613
34613
  menuShouldScrollIntoView: false,
34614
34614
  options: options2,
34615
34615
  classNames: {
34616
- 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-[300px] max-w-[300px] !rounded-none !border !border-transparent !border-b !border-[#f7f7f7] hover:border-b-primary !bg-transparent min-h-auto"}`,
34616
+ 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-[200px] max-w-[300px] rounded-none border border-transparent border-b border-b-primary bg-transparent min-h-auto"}`,
34617
34617
  valueContainer: () => "!m-0 !p-0 ",
34618
34618
  singleValue: () => `!m-0`,
34619
34619
  input: () => "!m-0 !p-0",
34620
- dropdownIndicator: () => `${isEditTable ? "invisible group-hover:visible" : ""} !m-0 !p-0`,
34621
- clearIndicator: () => `${isEditTable ? "invisible group-hover:visible !m-0 !p-0" : ""} `,
34620
+ dropdownIndicator: () => `m-0 p-0`,
34621
+ clearIndicator: () => `m-0 p-0'`,
34622
34622
  menu: () => "z-[99]"
34623
34623
  },
34624
34624
  placeholder: readonly ? "" : instance.t("choose_place"),
@@ -34663,8 +34663,8 @@ var Many2OneField = (props) => {
34663
34663
  menu: (base) => ({
34664
34664
  ...base,
34665
34665
  zIndex: 9999,
34666
- width: isEditTable ? "300px" : "100%",
34667
- minWidth: isEditTable ? "300px" : "100%"
34666
+ width: isEditTable ? "auto" : "100%",
34667
+ minWidth: isEditTable ? "200px" : "100%"
34668
34668
  })
34669
34669
  },
34670
34670
  components: {
package/dist/index.mjs CHANGED
@@ -34494,12 +34494,12 @@ var Many2OneField = (props) => {
34494
34494
  menuShouldScrollIntoView: false,
34495
34495
  options: options2,
34496
34496
  classNames: {
34497
- 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-[300px] max-w-[300px] !rounded-none !border !border-transparent !border-b !border-[#f7f7f7] hover:border-b-primary !bg-transparent min-h-auto"}`,
34497
+ 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-[200px] max-w-[300px] rounded-none border border-transparent border-b border-b-primary bg-transparent min-h-auto"}`,
34498
34498
  valueContainer: () => "!m-0 !p-0 ",
34499
34499
  singleValue: () => `!m-0`,
34500
34500
  input: () => "!m-0 !p-0",
34501
- dropdownIndicator: () => `${isEditTable ? "invisible group-hover:visible" : ""} !m-0 !p-0`,
34502
- clearIndicator: () => `${isEditTable ? "invisible group-hover:visible !m-0 !p-0" : ""} `,
34501
+ dropdownIndicator: () => `m-0 p-0`,
34502
+ clearIndicator: () => `m-0 p-0'`,
34503
34503
  menu: () => "z-[99]"
34504
34504
  },
34505
34505
  placeholder: readonly ? "" : instance.t("choose_place"),
@@ -34544,8 +34544,8 @@ var Many2OneField = (props) => {
34544
34544
  menu: (base) => ({
34545
34545
  ...base,
34546
34546
  zIndex: 9999,
34547
- width: isEditTable ? "300px" : "100%",
34548
- minWidth: isEditTable ? "300px" : "100%"
34547
+ width: isEditTable ? "auto" : "100%",
34548
+ minWidth: isEditTable ? "200px" : "100%"
34549
34549
  })
34550
34550
  },
34551
34551
  components: {
package/dist/widgets.js CHANGED
@@ -34239,12 +34239,12 @@ var Many2OneField = (props) => {
34239
34239
  menuShouldScrollIntoView: false,
34240
34240
  options: options2,
34241
34241
  classNames: {
34242
- 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-[300px] max-w-[300px] !rounded-none !border !border-transparent !border-b !border-[#f7f7f7] hover:border-b-primary !bg-transparent min-h-auto"}`,
34242
+ 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-[200px] max-w-[300px] rounded-none border border-transparent border-b border-b-primary bg-transparent min-h-auto"}`,
34243
34243
  valueContainer: () => "!m-0 !p-0 ",
34244
34244
  singleValue: () => `!m-0`,
34245
34245
  input: () => "!m-0 !p-0",
34246
- dropdownIndicator: () => `${isEditTable ? "invisible group-hover:visible" : ""} !m-0 !p-0`,
34247
- clearIndicator: () => `${isEditTable ? "invisible group-hover:visible !m-0 !p-0" : ""} `,
34246
+ dropdownIndicator: () => `m-0 p-0`,
34247
+ clearIndicator: () => `m-0 p-0'`,
34248
34248
  menu: () => "z-[99]"
34249
34249
  },
34250
34250
  placeholder: readonly ? "" : instance.t("choose_place"),
@@ -34289,8 +34289,8 @@ var Many2OneField = (props) => {
34289
34289
  menu: (base) => ({
34290
34290
  ...base,
34291
34291
  zIndex: 9999,
34292
- width: isEditTable ? "300px" : "100%",
34293
- minWidth: isEditTable ? "300px" : "100%"
34292
+ width: isEditTable ? "auto" : "100%",
34293
+ minWidth: isEditTable ? "200px" : "100%"
34294
34294
  })
34295
34295
  },
34296
34296
  components: {
package/dist/widgets.mjs CHANGED
@@ -34176,12 +34176,12 @@ var Many2OneField = (props) => {
34176
34176
  menuShouldScrollIntoView: false,
34177
34177
  options: options2,
34178
34178
  classNames: {
34179
- 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-[300px] max-w-[300px] !rounded-none !border !border-transparent !border-b !border-[#f7f7f7] hover:border-b-primary !bg-transparent min-h-auto"}`,
34179
+ 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-[200px] max-w-[300px] rounded-none border border-transparent border-b border-b-primary bg-transparent min-h-auto"}`,
34180
34180
  valueContainer: () => "!m-0 !p-0 ",
34181
34181
  singleValue: () => `!m-0`,
34182
34182
  input: () => "!m-0 !p-0",
34183
- dropdownIndicator: () => `${isEditTable ? "invisible group-hover:visible" : ""} !m-0 !p-0`,
34184
- clearIndicator: () => `${isEditTable ? "invisible group-hover:visible !m-0 !p-0" : ""} `,
34183
+ dropdownIndicator: () => `m-0 p-0`,
34184
+ clearIndicator: () => `m-0 p-0'`,
34185
34185
  menu: () => "z-[99]"
34186
34186
  },
34187
34187
  placeholder: readonly ? "" : instance.t("choose_place"),
@@ -34226,8 +34226,8 @@ var Many2OneField = (props) => {
34226
34226
  menu: (base) => ({
34227
34227
  ...base,
34228
34228
  zIndex: 9999,
34229
- width: isEditTable ? "300px" : "100%",
34230
- minWidth: isEditTable ? "300px" : "100%"
34229
+ width: isEditTable ? "auto" : "100%",
34230
+ minWidth: isEditTable ? "200px" : "100%"
34231
34231
  })
34232
34232
  },
34233
34233
  components: {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fctc/sme-widget-ui",
3
- "version": "1.3.9",
3
+ "version": "1.4.0",
4
4
  "main": "dist/index.cjs",
5
5
  "module": "dist/index.mjs",
6
6
  "types": "dist/index.d.ts",