@fctc/sme-widget-ui 2.5.9 → 2.6.1

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
@@ -32493,7 +32493,8 @@ var HtmlField = (props) => {
32493
32493
  defaultValue = "",
32494
32494
  onChange: onChange2,
32495
32495
  value,
32496
- isEditTable
32496
+ isEditTable,
32497
+ baseClassName
32497
32498
  } = props;
32498
32499
  const divRef = (0, import_react61.useRef)(null);
32499
32500
  if (!isForm && !isEditTable) {
@@ -32524,11 +32525,7 @@ var HtmlField = (props) => {
32524
32525
  ref: divRef,
32525
32526
  contentEditable: !readonly,
32526
32527
  onInput: handleInput,
32527
- className: `${!isForm ? "!bg-transparent focus-within:!border-none" : `rounded-lg border min-h-[44px] w-full ring-0 focus:ring-0 focus:!outline-none focus:border-[1px] border-input-primary outline-0 border-[rgba(66,66,66,0.12)] bg-white
32528
- p-2 pl-3 font-normal text-sm gap-2 leading-5
32529
- resize-none opacity-100 overflow-hidden
32530
-
32531
- `}`
32528
+ className: `widget widget-html ${baseClassName}`
32532
32529
  }
32533
32530
  );
32534
32531
  }
@@ -32663,7 +32660,8 @@ var Many2ManyTagField = (props) => {
32663
32660
  domainObject,
32664
32661
  isFetching,
32665
32662
  setIsShowModalMany2Many,
32666
- baseClassName
32663
+ baseClassName,
32664
+ placeholder
32667
32665
  } = props;
32668
32666
  const { t: t3 } = useI18n();
32669
32667
  if (!isForm && !isEditTable) {
@@ -32740,7 +32738,7 @@ var Many2ManyTagField = (props) => {
32740
32738
  },
32741
32739
  onMenuOpen: fetchMoreOptions,
32742
32740
  menuPlacement: "auto",
32743
- placeholder: readonly ? "" : t3("choose_place"),
32741
+ placeholder,
32744
32742
  classNames: isEditTable ? {
32745
32743
  valueContainer: () => "overflow-unset !px-0",
32746
32744
  control: ({ isFocused }) => `widget many2many-tags-widget ${baseClassName} ${isFocused ? "focused" : ""} ${filteredValue?.length === 0 && "no-values"}`,
@@ -33909,7 +33907,8 @@ var Many2OneField = (props) => {
33909
33907
  setIsShowModalMany2Many,
33910
33908
  setInputValue,
33911
33909
  setDomainObject,
33912
- baseClassName
33910
+ baseClassName,
33911
+ placeholder
33913
33912
  } = props;
33914
33913
  const { t: t3 } = useI18n();
33915
33914
  if (!isForm && !isEditTable) {
@@ -33985,7 +33984,7 @@ var Many2OneField = (props) => {
33985
33984
  clearIndicator: () => `m-0 p-0'`,
33986
33985
  menu: () => "z-[99]"
33987
33986
  },
33988
- placeholder: readonly ? "" : t3("choose_place"),
33987
+ placeholder,
33989
33988
  onMenuOpen: fetchMoreOptions,
33990
33989
  onMenuClose: () => {
33991
33990
  const filteredDomain = [...domainObject ?? []]?.filter(
package/dist/index.mjs CHANGED
@@ -32366,7 +32366,8 @@ var HtmlField = (props) => {
32366
32366
  defaultValue = "",
32367
32367
  onChange: onChange2,
32368
32368
  value,
32369
- isEditTable
32369
+ isEditTable,
32370
+ baseClassName
32370
32371
  } = props;
32371
32372
  const divRef = useRef16(null);
32372
32373
  if (!isForm && !isEditTable) {
@@ -32397,11 +32398,7 @@ var HtmlField = (props) => {
32397
32398
  ref: divRef,
32398
32399
  contentEditable: !readonly,
32399
32400
  onInput: handleInput,
32400
- className: `${!isForm ? "!bg-transparent focus-within:!border-none" : `rounded-lg border min-h-[44px] w-full ring-0 focus:ring-0 focus:!outline-none focus:border-[1px] border-input-primary outline-0 border-[rgba(66,66,66,0.12)] bg-white
32401
- p-2 pl-3 font-normal text-sm gap-2 leading-5
32402
- resize-none opacity-100 overflow-hidden
32403
-
32404
- `}`
32401
+ className: `widget widget-html ${baseClassName}`
32405
32402
  }
32406
32403
  );
32407
32404
  }
@@ -32536,7 +32533,8 @@ var Many2ManyTagField = (props) => {
32536
32533
  domainObject,
32537
32534
  isFetching,
32538
32535
  setIsShowModalMany2Many,
32539
- baseClassName
32536
+ baseClassName,
32537
+ placeholder
32540
32538
  } = props;
32541
32539
  const { t: t3 } = useI18n();
32542
32540
  if (!isForm && !isEditTable) {
@@ -32613,7 +32611,7 @@ var Many2ManyTagField = (props) => {
32613
32611
  },
32614
32612
  onMenuOpen: fetchMoreOptions,
32615
32613
  menuPlacement: "auto",
32616
- placeholder: readonly ? "" : t3("choose_place"),
32614
+ placeholder,
32617
32615
  classNames: isEditTable ? {
32618
32616
  valueContainer: () => "overflow-unset !px-0",
32619
32617
  control: ({ isFocused }) => `widget many2many-tags-widget ${baseClassName} ${isFocused ? "focused" : ""} ${filteredValue?.length === 0 && "no-values"}`,
@@ -33782,7 +33780,8 @@ var Many2OneField = (props) => {
33782
33780
  setIsShowModalMany2Many,
33783
33781
  setInputValue,
33784
33782
  setDomainObject,
33785
- baseClassName
33783
+ baseClassName,
33784
+ placeholder
33786
33785
  } = props;
33787
33786
  const { t: t3 } = useI18n();
33788
33787
  if (!isForm && !isEditTable) {
@@ -33858,7 +33857,7 @@ var Many2OneField = (props) => {
33858
33857
  clearIndicator: () => `m-0 p-0'`,
33859
33858
  menu: () => "z-[99]"
33860
33859
  },
33861
- placeholder: readonly ? "" : t3("choose_place"),
33860
+ placeholder,
33862
33861
  onMenuOpen: fetchMoreOptions,
33863
33862
  onMenuClose: () => {
33864
33863
  const filteredDomain = [...domainObject ?? []]?.filter(
package/dist/widgets.js CHANGED
@@ -31742,7 +31742,8 @@ var HtmlField = (props) => {
31742
31742
  defaultValue = "",
31743
31743
  onChange: onChange2,
31744
31744
  value,
31745
- isEditTable
31745
+ isEditTable,
31746
+ baseClassName
31746
31747
  } = props;
31747
31748
  const divRef = (0, import_react61.useRef)(null);
31748
31749
  if (!isForm && !isEditTable) {
@@ -31773,11 +31774,7 @@ var HtmlField = (props) => {
31773
31774
  ref: divRef,
31774
31775
  contentEditable: !readonly,
31775
31776
  onInput: handleInput,
31776
- className: `${!isForm ? "!bg-transparent focus-within:!border-none" : `rounded-lg border min-h-[44px] w-full ring-0 focus:ring-0 focus:!outline-none focus:border-[1px] border-input-primary outline-0 border-[rgba(66,66,66,0.12)] bg-white
31777
- p-2 pl-3 font-normal text-sm gap-2 leading-5
31778
- resize-none opacity-100 overflow-hidden
31779
-
31780
- `}`
31777
+ className: `widget widget-html ${baseClassName}`
31781
31778
  }
31782
31779
  );
31783
31780
  }
@@ -31912,7 +31909,8 @@ var Many2ManyTagField = (props) => {
31912
31909
  domainObject,
31913
31910
  isFetching,
31914
31911
  setIsShowModalMany2Many,
31915
- baseClassName
31912
+ baseClassName,
31913
+ placeholder
31916
31914
  } = props;
31917
31915
  const { t: t3 } = useI18n();
31918
31916
  if (!isForm && !isEditTable) {
@@ -31989,7 +31987,7 @@ var Many2ManyTagField = (props) => {
31989
31987
  },
31990
31988
  onMenuOpen: fetchMoreOptions,
31991
31989
  menuPlacement: "auto",
31992
- placeholder: readonly ? "" : t3("choose_place"),
31990
+ placeholder,
31993
31991
  classNames: isEditTable ? {
31994
31992
  valueContainer: () => "overflow-unset !px-0",
31995
31993
  control: ({ isFocused }) => `widget many2many-tags-widget ${baseClassName} ${isFocused ? "focused" : ""} ${filteredValue?.length === 0 && "no-values"}`,
@@ -33158,7 +33156,8 @@ var Many2OneField = (props) => {
33158
33156
  setIsShowModalMany2Many,
33159
33157
  setInputValue,
33160
33158
  setDomainObject,
33161
- baseClassName
33159
+ baseClassName,
33160
+ placeholder
33162
33161
  } = props;
33163
33162
  const { t: t3 } = useI18n();
33164
33163
  if (!isForm && !isEditTable) {
@@ -33234,7 +33233,7 @@ var Many2OneField = (props) => {
33234
33233
  clearIndicator: () => `m-0 p-0'`,
33235
33234
  menu: () => "z-[99]"
33236
33235
  },
33237
- placeholder: readonly ? "" : t3("choose_place"),
33236
+ placeholder,
33238
33237
  onMenuOpen: fetchMoreOptions,
33239
33238
  onMenuClose: () => {
33240
33239
  const filteredDomain = [...domainObject ?? []]?.filter(
package/dist/widgets.mjs CHANGED
@@ -31679,7 +31679,8 @@ var HtmlField = (props) => {
31679
31679
  defaultValue = "",
31680
31680
  onChange: onChange2,
31681
31681
  value,
31682
- isEditTable
31682
+ isEditTable,
31683
+ baseClassName
31683
31684
  } = props;
31684
31685
  const divRef = useRef16(null);
31685
31686
  if (!isForm && !isEditTable) {
@@ -31710,11 +31711,7 @@ var HtmlField = (props) => {
31710
31711
  ref: divRef,
31711
31712
  contentEditable: !readonly,
31712
31713
  onInput: handleInput,
31713
- className: `${!isForm ? "!bg-transparent focus-within:!border-none" : `rounded-lg border min-h-[44px] w-full ring-0 focus:ring-0 focus:!outline-none focus:border-[1px] border-input-primary outline-0 border-[rgba(66,66,66,0.12)] bg-white
31714
- p-2 pl-3 font-normal text-sm gap-2 leading-5
31715
- resize-none opacity-100 overflow-hidden
31716
-
31717
- `}`
31714
+ className: `widget widget-html ${baseClassName}`
31718
31715
  }
31719
31716
  );
31720
31717
  }
@@ -31849,7 +31846,8 @@ var Many2ManyTagField = (props) => {
31849
31846
  domainObject,
31850
31847
  isFetching,
31851
31848
  setIsShowModalMany2Many,
31852
- baseClassName
31849
+ baseClassName,
31850
+ placeholder
31853
31851
  } = props;
31854
31852
  const { t: t3 } = useI18n();
31855
31853
  if (!isForm && !isEditTable) {
@@ -31926,7 +31924,7 @@ var Many2ManyTagField = (props) => {
31926
31924
  },
31927
31925
  onMenuOpen: fetchMoreOptions,
31928
31926
  menuPlacement: "auto",
31929
- placeholder: readonly ? "" : t3("choose_place"),
31927
+ placeholder,
31930
31928
  classNames: isEditTable ? {
31931
31929
  valueContainer: () => "overflow-unset !px-0",
31932
31930
  control: ({ isFocused }) => `widget many2many-tags-widget ${baseClassName} ${isFocused ? "focused" : ""} ${filteredValue?.length === 0 && "no-values"}`,
@@ -33095,7 +33093,8 @@ var Many2OneField = (props) => {
33095
33093
  setIsShowModalMany2Many,
33096
33094
  setInputValue,
33097
33095
  setDomainObject,
33098
- baseClassName
33096
+ baseClassName,
33097
+ placeholder
33099
33098
  } = props;
33100
33099
  const { t: t3 } = useI18n();
33101
33100
  if (!isForm && !isEditTable) {
@@ -33171,7 +33170,7 @@ var Many2OneField = (props) => {
33171
33170
  clearIndicator: () => `m-0 p-0'`,
33172
33171
  menu: () => "z-[99]"
33173
33172
  },
33174
- placeholder: readonly ? "" : t3("choose_place"),
33173
+ placeholder,
33175
33174
  onMenuOpen: fetchMoreOptions,
33176
33175
  onMenuClose: () => {
33177
33176
  const filteredDomain = [...domainObject ?? []]?.filter(
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fctc/sme-widget-ui",
3
- "version": "2.5.9",
3
+ "version": "2.6.1",
4
4
  "main": "dist/index.cjs",
5
5
  "module": "dist/index.mjs",
6
6
  "types": "dist/index.d.ts",