arengibook 2.4.603 → 2.4.605

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.
Files changed (3) hide show
  1. package/README.md +3 -8
  2. package/dist/index.js +12 -20
  3. package/package.json +1 -1
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
@@ -36128,6 +36128,8 @@ var Dropdown = function Dropdown(_ref) {
36128
36128
  var styleLabel = {
36129
36129
  marginLeft: '10px'
36130
36130
  };
36131
+ var virtualscroll = document.querySelector('.p-virtualscroller.p-dropdown-items-wrapper');
36132
+ if (virtualscroll) virtualscroll.style.height = "auto";
36131
36133
  return /*#__PURE__*/React__default.createElement("div", {
36132
36134
  className: "flex align-items-center",
36133
36135
  style: {
@@ -36202,7 +36204,7 @@ var Dropdown = function Dropdown(_ref) {
36202
36204
  var onLazyLoad = /*#__PURE__*/function () {
36203
36205
  var _ref4 = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee2(event) {
36204
36206
  var _event$filter;
36205
- var search, currentPage, _res$options, _res$additional$page, _res$additional, res, newOptions, _t2;
36207
+ var search, currentPage, _res$options, _res$additional$page, _res$additional, res, newOptions, virtualscroll, _t2;
36206
36208
  return _regenerator().w(function (_context2) {
36207
36209
  while (1) switch (_context2.n) {
36208
36210
  case 0:
@@ -36236,6 +36238,8 @@ var Dropdown = function Dropdown(_ref) {
36236
36238
  case 5:
36237
36239
  _context2.p = 5;
36238
36240
  setLoading(false);
36241
+ virtualscroll = document.querySelector('.p-virtualscroller.p-dropdown-items-wrapper');
36242
+ if (virtualscroll) virtualscroll.style.height = "auto";
36239
36243
  return _context2.f(5);
36240
36244
  case 6:
36241
36245
  return _context2.a(2);
@@ -36432,19 +36436,11 @@ var optionsWithColors = [{
36432
36436
  label: 'Vert',
36433
36437
  value: 'vert',
36434
36438
  color: '#00FF00'
36435
- }, {
36436
- label: 'Bleu',
36437
- value: 'bleu',
36438
- color: '#0000FF'
36439
- }, {
36440
- label: 'Jaune',
36441
- value: 'jaune',
36442
- color: '#FFFF00'
36443
- }, {
36444
- label: 'Cyan',
36445
- value: 'cyan',
36446
- color: '#00FFFF'
36447
- }];
36439
+ }
36440
+ // { label: 'Bleu', value: 'bleu', color: '#0000FF' },
36441
+ // { label: 'Jaune', value: 'jaune', color: '#FFFF00' },
36442
+ // { label: 'Cyan', value: 'cyan', color: '#00FFFF' },
36443
+ ];
36448
36444
  var createFakeOptions = function createFakeOptions(start, length) {
36449
36445
  var options = [];
36450
36446
  for (var i = start; i < length; i++) {
@@ -36505,11 +36501,7 @@ var DropdownPresets = {
36505
36501
  SelectMetaAsyncLoad: {
36506
36502
  placeholder: 'Chargement distant simulé',
36507
36503
  value: 2,
36508
- objValue: {
36509
- label: 'Option 2',
36510
- value: 2,
36511
- color: 'green'
36512
- },
36504
+ // 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
36513
36505
  options: function () {
36514
36506
  var _options = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee(search, loadedOptions, _ref) {
36515
36507
  var page, length, start, data;
@@ -36517,7 +36509,7 @@ var DropdownPresets = {
36517
36509
  while (1) switch (_context.n) {
36518
36510
  case 0:
36519
36511
  page = _ref.page;
36520
- length = 20;
36512
+ length = 2;
36521
36513
  start = (page - 1) * length; // Simule un délai réseau
36522
36514
  _context.n = 1;
36523
36515
  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.603",
4
+ "version": "2.4.605",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.js",
7
7
  "exports": {