chrv-components 1.12.239 β†’ 1.12.241

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/README.md CHANGED
@@ -1,7 +1,5 @@
1
1
  # 🎨 CHRV Components
2
2
 
3
- <div align="center">
4
-
5
3
  ![npm version](https://img.shields.io/npm/v/chrv-components?style=for-the-badge)
6
4
  ![Angular](https://img.shields.io/badge/Angular-16+-red?style=for-the-badge&logo=angular)
7
5
  ![TypeScript](https://img.shields.io/badge/TypeScript-5.0+-blue?style=for-the-badge&logo=typescript)
@@ -11,8 +9,6 @@
11
9
 
12
10
  [πŸ“š Documentation](#-documentation) β€’ [πŸš€ Installation](#-installation) β€’ [πŸ’‘ Exemples](#-exemples) β€’ [πŸ› οΈ API](#️-api)
13
11
 
14
- </div>
15
-
16
12
  ## ✨ Composants disponibles
17
13
 
18
14
  ### πŸͺŸ SystΓ¨me de Modal
Binary file
@@ -1694,7 +1694,12 @@ class DataListComponent {
1694
1694
  return (item) => JSON.stringify(item);
1695
1695
  }
1696
1696
  else {
1697
- return (item) => String(item);
1697
+ return (item) => {
1698
+ if ('toString' in item && typeof item['toString'] == 'function')
1699
+ return item.toString();
1700
+ else
1701
+ String(item);
1702
+ };
1698
1703
  }
1699
1704
  }, /* @ts-ignore */
1700
1705
  ...(ngDevMode ? [{ debugName: "displayFn" }] : /* istanbul ignore next */ []));
@@ -5045,7 +5050,9 @@ class ChrSearchSelectInputComponent extends ChrInputComponent {
5045
5050
  super();
5046
5051
  this.data = input([], /* @ts-ignore */
5047
5052
  ...(ngDevMode ? [{ debugName: "data" }] : /* istanbul ignore next */ []));
5048
- this.display = input((v) => v || '', /* @ts-ignore */
5053
+ this.display = input((v) => 'toString' in v && typeof v['toString'] == 'function'
5054
+ ? v.toString()
5055
+ : String(v), /* @ts-ignore */
5049
5056
  ...(ngDevMode ? [{ debugName: "display" }] : /* istanbul ignore next */ []));
5050
5057
  /**
5051
5058
  * Force the value to be null when the user types.
@@ -5095,7 +5102,9 @@ class ChrTagSelectInputComponent extends ChrInputComponent {
5095
5102
  super();
5096
5103
  this.data = input([], /* @ts-ignore */
5097
5104
  ...(ngDevMode ? [{ debugName: "data" }] : /* istanbul ignore next */ []));
5098
- this.display = input((v) => v || '', /* @ts-ignore */
5105
+ this.display = input((v) => 'toString' in v && typeof v['toString'] == 'function'
5106
+ ? v.toString()
5107
+ : String(v), /* @ts-ignore */
5099
5108
  ...(ngDevMode ? [{ debugName: "display" }] : /* istanbul ignore next */ []));
5100
5109
  this.selectedItems = computed(() => {
5101
5110
  const val = this.value();