arengibook 2.4.602 → 2.4.604

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,4 +1,4 @@
1
- # ArengiBouc
1
+ # ArengiBook
2
2
 
3
3
  Projet React avec Storybook pour la documentation des composants UI.
4
4
 
@@ -6,8 +6,8 @@ Projet React avec Storybook pour la documentation des composants UI.
6
6
 
7
7
  Clone ce dépôt :
8
8
 
9
- git clone https://github.com/ton-pseudo/ArengiBouc.git
10
- cd ArengiBouc
9
+ git clone https://github.com/ton-pseudo/ArengiBook.git
10
+ cd ArengiBook
11
11
 
12
12
  ## Installer les dépendances :
13
13
 
@@ -18,8 +18,3 @@ npm install
18
18
  npm run storybook
19
19
 
20
20
  Storybook sera disponible ici : http://localhost:6006
21
-
22
- ## Création projet Symfony6
23
-
24
- Pour tester l'intégration des composants Storybook, vous pouvez créer un projet symfony6
25
- Dans ce projet,
package/dist/index.js CHANGED
@@ -36167,7 +36167,8 @@ var Dropdown = function Dropdown(_ref) {
36167
36167
  color: iconColor
36168
36168
  }
36169
36169
  }, mappedOption.label));
36170
- } else {
36170
+ }
36171
+ if (objValue === null) {
36171
36172
  var _iconColor = option !== null && option !== void 0 && option.color ? inverseColor(option === null || option === void 0 ? void 0 : option.color) : '#FFFFFF';
36172
36173
  return /*#__PURE__*/React__default.createElement("span", {
36173
36174
  ref: dropdownRef
@@ -36201,7 +36202,7 @@ var Dropdown = function Dropdown(_ref) {
36201
36202
  var onLazyLoad = /*#__PURE__*/function () {
36202
36203
  var _ref4 = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee2(event) {
36203
36204
  var _event$filter;
36204
- var search, currentPage, _res$options, _res$additional$page, _res$additional, res, newOptions, _t2;
36205
+ var search, currentPage, _res$options, _res$additional$page, _res$additional, res, newOptions, virtualscroll, _t2;
36205
36206
  return _regenerator().w(function (_context2) {
36206
36207
  while (1) switch (_context2.n) {
36207
36208
  case 0:
@@ -36235,6 +36236,8 @@ var Dropdown = function Dropdown(_ref) {
36235
36236
  case 5:
36236
36237
  _context2.p = 5;
36237
36238
  setLoading(false);
36239
+ virtualscroll = document.querySelector('.p-virtualscroller.p-dropdown-items-wrapper');
36240
+ virtualscroll.style.height = "auto";
36238
36241
  return _context2.f(5);
36239
36242
  case 6:
36240
36243
  return _context2.a(2);
@@ -36504,11 +36507,7 @@ var DropdownPresets = {
36504
36507
  SelectMetaAsyncLoad: {
36505
36508
  placeholder: 'Chargement distant simulé',
36506
36509
  value: 2,
36507
- objValue: {
36508
- label: 'Option 2',
36509
- value: 2,
36510
- color: 'green'
36511
- },
36510
+ // objValue: { label: 'Option 2', value: 2, color: 'green' }, // simule un affichage direct de l'option dans l'input si celle-ci a été enregistrée (si options asynchrones uniquement
36512
36511
  options: function () {
36513
36512
  var _options = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee(search, loadedOptions, _ref) {
36514
36513
  var page, length, start, data;
@@ -36516,7 +36515,7 @@ var DropdownPresets = {
36516
36515
  while (1) switch (_context.n) {
36517
36516
  case 0:
36518
36517
  page = _ref.page;
36519
- length = 20;
36518
+ length = 2;
36520
36519
  start = (page - 1) * length; // Simule un délai réseau
36521
36520
  _context.n = 1;
36522
36521
  return new Promise(function (res) {
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "arengibook",
3
3
  "private": false,
4
- "version": "2.4.602",
4
+ "version": "2.4.604",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.js",
7
7
  "exports": {