arengibook 2.0.28-table → 2.0.30-table

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 (2) hide show
  1. package/dist/index.js +395 -248
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -44743,7 +44743,7 @@ if (typeof window !== 'undefined') {
44743
44743
  window.ArengibookToastPresets = ToastPresets;
44744
44744
  }
44745
44745
 
44746
- var css_248z$1 = ".arengi-table td {\n overflow: hidden;\n text-align: center !important;\n}\n\n.cell-text {\n display: block;\n white-space: nowrap;\n overflow: hidden;\n text-overflow: ellipsis;\n max-width: 100%;\n}\n\n.p-datatable-scrollable .p-datatable-tbody > tr > td.p-frozen-column {\n z-index: 1;\n background-color: var(--surface-0, #ffffff);\n background: linear-gradient(45deg, #ebebeb, #ebebeb) !important;\n}\n\n.p-datatable-scrollable .p-datatable-tbody > tr.p-row-odd > td.p-frozen-column {\n background-color: var(--surface-b, #f8f9fa);\n}\n\n.p-datatable-scrollable .p-datatable-tbody > tr > td.p-frozen-column.row-actions-cell,\n.p-datatable-scrollable .p-datatable-tbody > tr.p-row-odd > td.p-frozen-column.row-actions-cell {\n background: #ffffff !important;\n box-shadow: none !important;\n border-right: none !important;\n padding: 0 !important;\n}\n\n.p-datatable .p-datatable-thead > tr > th.row-actions-cell {\n background: transparent !important;\n border: none !important;\n box-shadow: none !important;\n padding: 0 !important;\n}\n\n.arengi-table .p-cell-editing input,\n.arengi-table .p-cell-editing .p-inputtext,\n.arengi-table .p-cell-editing .p-dropdown,\n.arengi-table .p-cell-editing .p-multiselect,\n.arengi-table .p-cell-editing .p-calendar {\n width: 100%;\n min-width: 0;\n box-sizing: border-box;\n}\n\n.cell-devise {\n display: flex;\n flex-direction: column;\n gap: 0.1rem;\n font-size: 0.875rem;\n}\n.cell-devise--editable {\n cursor: pointer;\n}\n.cell-devise--empty {\n display: block;\n width: 100%;\n height: 1.5rem;\n cursor: pointer;\n}\n.cell-devise .span-sub {\n font-size: 0.75rem;\n color: #71717a;\n}\n\n.devise-editor {\n display: flex;\n flex-direction: column;\n gap: 0.4rem;\n padding: 0.25rem 0;\n}\n.devise-editor-fields {\n display: flex;\n flex-direction: column;\n gap: 0.4rem;\n width: 100%;\n position: relative;\n}\n.devise-editor-fields .p-dropdown-panel {\n position: absolute;\n z-index: 1000;\n top: 100%;\n left: 0;\n width: 100%;\n}\n.devise-editor-save {\n align-self: flex-end;\n}\n\n.arengi-table .p-cell-editing .devise-editor-fields input,\n.arengi-table .p-cell-editing .devise-editor-fields .p-inputtext,\n.arengi-table .p-cell-editing .devise-editor-fields .p-dropdown {\n width: 100%;\n min-width: 0;\n}\n\n.doc-cell-empty {\n color: #aaa;\n font-size: 0.85rem;\n}\n\n.doc-cell {\n display: flex;\n flex-direction: column;\n gap: 0.25rem;\n min-width: 0;\n overflow: hidden;\n}\n.doc-cell-summary {\n display: flex;\n align-items: center;\n gap: 0.35rem;\n font-size: 0.875rem;\n min-width: 0;\n}\n.doc-cell-summary .pi-paperclip {\n color: #71717a;\n font-size: 0.8rem;\n flex-shrink: 0;\n}\n.doc-cell-summary span {\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n min-width: 0;\n}\n.doc-cell-list {\n display: flex;\n flex-direction: column;\n gap: 0.15rem;\n padding-left: 1.1rem;\n font-size: 0.8rem;\n}\n.doc-cell-list div {\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n}\n.doc-cell-list a {\n color: #3b82f6;\n text-decoration: none;\n}\n.doc-cell-list a:hover {\n text-decoration: underline;\n}\n\n.doc-editor {\n display: flex;\n flex-direction: column;\n gap: 0.4rem;\n padding: 0.25rem 0;\n}\n.doc-editor-table {\n width: 100%;\n border-collapse: collapse;\n font-size: 0.8rem;\n}\n.doc-editor-table td {\n padding: 0.2rem 0.35rem;\n vertical-align: middle;\n}\n.doc-editor-table td a {\n color: #3b82f6;\n text-decoration: none;\n word-break: break-all;\n}\n.doc-editor-table td a:hover {\n text-decoration: underline;\n}\n.doc-editor-table td:last-child {\n width: 2rem;\n text-align: center;\n}\n.doc-editor-add {\n display: inline-flex;\n align-items: center;\n gap: 0.3rem;\n cursor: pointer;\n align-self: center;\n}\n\n.arengi-table .arengi-table-grey-title-box {\n overflow: hidden;\n min-width: 0;\n}\n\n.arengi-table .arengi-table-grey-title:hover .table-item-title,\n.arengi-table .arengi-table-grey-title .table-item-title:hover {\n text-decoration: none !important;\n}\n\n.arengi-table .table-item-title {\n display: block !important;\n min-width: 0 !important;\n white-space: nowrap;\n overflow: hidden;\n text-overflow: ellipsis;\n}\n\n.p-datatable .p-column-header-content {\n justify-content: center;\n}\n\n.tab_label {\n display: inline-block;\n padding: 3px 8px;\n font-size: 12px;\n font-weight: 600;\n line-height: 1;\n text-align: center;\n white-space: nowrap;\n vertical-align: middle;\n border-radius: 10px;\n}";
44746
+ var css_248z$1 = ".p-paginator {\n font-size: 14px;\n}\n.p-paginator .p-paginator-first,\n.p-paginator .p-paginator-prev,\n.p-paginator .p-paginator-next,\n.p-paginator .p-paginator-last,\n.p-paginator .p-paginator-pages .p-paginator-page,\n.p-paginator .p-paginator-current,\n.p-paginator .p-dropdown .p-dropdown-label,\n.p-paginator .p-dropdown-item,\n.p-paginator .p-paginator-page-input .p-inputtext {\n font-size: 14px;\n}\n\ntable.arengi-table thead {\n border: 1px solid #d5d2d2;\n}\ntable.arengi-table thead th {\n position: sticky;\n top: 0;\n z-index: 800;\n background-color: #fff;\n border-bottom: 1px solid lightgrey;\n font-size: 14px;\n}\ntable.arengi-table thead th:hover {\n background-color: #d6d6d6;\n}\ntable.arengi-table tbody tr {\n background-color: transparent;\n}\ntable.arengi-table tbody tr:hover {\n background-color: rgba(255, 255, 255, 0.5803921569);\n}\n\n.arengi-table td {\n overflow: hidden;\n text-align: center !important;\n}\n\n.cell-text {\n display: block;\n white-space: nowrap;\n overflow: hidden;\n text-overflow: ellipsis;\n max-width: 100%;\n}\n\n.p-datatable-scrollable .p-datatable-tbody > tr > td.p-frozen-column {\n z-index: 1;\n background-color: var(--surface-0, #ffffff);\n background: linear-gradient(45deg, #ebebeb, #ebebeb) !important;\n}\n\n.p-datatable-scrollable .p-datatable-tbody > tr.p-row-odd > td.p-frozen-column {\n background-color: var(--surface-b, #f8f9fa);\n}\n\n.p-datatable-scrollable .p-datatable-tbody > tr > td.p-frozen-column.row-actions-cell,\n.p-datatable-scrollable .p-datatable-tbody > tr.p-row-odd > td.p-frozen-column.row-actions-cell {\n background: #ffffff !important;\n box-shadow: none !important;\n border-right: none !important;\n padding: 0 !important;\n}\n\n.p-datatable .p-datatable-thead > tr > th.row-actions-cell {\n background: transparent !important;\n border: none !important;\n box-shadow: none !important;\n padding: 0 !important;\n}\n\n.arengi-table .p-cell-editing input,\n.arengi-table .p-cell-editing .p-inputtext,\n.arengi-table .p-cell-editing .p-dropdown,\n.arengi-table .p-cell-editing .p-multiselect,\n.arengi-table .p-cell-editing .p-calendar {\n width: 100%;\n min-width: 0;\n box-sizing: border-box;\n}\n\n.cell-devise {\n display: flex;\n flex-direction: column;\n gap: 0.1rem;\n font-size: 0.875rem;\n}\n.cell-devise--editable {\n cursor: pointer;\n}\n.cell-devise--empty {\n display: block;\n width: 100%;\n height: 1.5rem;\n cursor: pointer;\n}\n.cell-devise .span-sub {\n font-size: 0.75rem;\n color: #71717a;\n}\n\n.devise-editor {\n display: flex;\n flex-direction: column;\n gap: 0.4rem;\n padding: 0.25rem 0;\n}\n.devise-editor-fields {\n display: flex;\n flex-direction: column;\n gap: 0.4rem;\n width: 100%;\n position: relative;\n}\n.devise-editor-fields .p-dropdown-panel {\n position: absolute;\n z-index: 1000;\n top: 100%;\n left: 0;\n width: 100%;\n}\n.devise-editor-save {\n align-self: flex-end;\n}\n\n.arengi-table .p-cell-editing .devise-editor-fields input,\n.arengi-table .p-cell-editing .devise-editor-fields .p-inputtext,\n.arengi-table .p-cell-editing .devise-editor-fields .p-dropdown {\n width: 100%;\n min-width: 0;\n}\n\n.doc-cell-empty {\n color: #aaa;\n font-size: 0.85rem;\n}\n\n.doc-cell {\n display: flex;\n flex-direction: column;\n gap: 0.25rem;\n min-width: 0;\n overflow: hidden;\n}\n.doc-cell-summary {\n display: flex;\n align-items: center;\n gap: 0.35rem;\n font-size: 0.875rem;\n min-width: 0;\n}\n.doc-cell-summary .pi-paperclip {\n color: #71717a;\n font-size: 0.8rem;\n flex-shrink: 0;\n}\n.doc-cell-summary span {\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n min-width: 0;\n}\n.doc-cell-list {\n display: flex;\n flex-direction: column;\n gap: 0.15rem;\n padding-left: 1.1rem;\n font-size: 0.8rem;\n}\n.doc-cell-list div {\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n}\n.doc-cell-list a {\n color: #3b82f6;\n text-decoration: none;\n}\n.doc-cell-list a:hover {\n text-decoration: underline;\n}\n\n.doc-editor {\n display: flex;\n flex-direction: column;\n gap: 0.4rem;\n padding: 0.25rem 0;\n}\n.doc-editor-table {\n width: 100%;\n border-collapse: collapse;\n font-size: 0.8rem;\n}\n.doc-editor-table td {\n padding: 0.2rem 0.35rem;\n vertical-align: middle;\n}\n.doc-editor-table td a {\n color: #3b82f6;\n text-decoration: none;\n word-break: break-all;\n}\n.doc-editor-table td a:hover {\n text-decoration: underline;\n}\n.doc-editor-table td:last-child {\n width: 2rem;\n text-align: center;\n}\n.doc-editor-add {\n display: inline-flex;\n align-items: center;\n gap: 0.3rem;\n cursor: pointer;\n align-self: center;\n}\n\n.arengi-table .arengi-table-grey-title-box {\n overflow: hidden;\n min-width: 0;\n}\n\n.arengi-table .arengi-table-grey-title:hover .table-item-title,\n.arengi-table .arengi-table-grey-title .table-item-title:hover {\n text-decoration: none !important;\n}\n\n.arengi-table .table-item-title {\n display: block !important;\n min-width: 0 !important;\n white-space: nowrap;\n overflow: hidden;\n text-overflow: ellipsis;\n}\n\n.p-datatable .p-column-header-content {\n justify-content: center;\n}\n\n.tab_label {\n display: inline-block;\n padding: 5px 10px;\n font-size: 14px;\n font-weight: 600;\n line-height: 1;\n text-align: center;\n white-space: nowrap;\n vertical-align: middle;\n border-radius: 5px;\n box-shadow: 1px 1px 3px rgba(0, 0, 0, 0.4705882353);\n height: initial;\n}\n\n.badge {\n padding: 8px 12px;\n border-radius: 5px;\n height: auto;\n margin: 2px;\n font-weight: 400;\n box-shadow: 2px 4px 5px grey;\n white-space: inherit;\n min-width: 90px;\n}\n.badge:not(.badge-small) {\n width: 100%;\n}\n\ntable.arengi-table td.arengi-table-grey-title:not(.normal) {\n background: linear-gradient(45deg, rgba(55, 55, 55, 0.7882352941), rgba(115, 115, 115, 0.7882352941));\n color: white;\n}\ntable.arengi-table td.arengi-table-grey-title:not(.normal) a {\n opacity: 1;\n min-width: 150px;\n width: 100%;\n display: flex;\n align-items: center;\n justify-content: center;\n color: white;\n text-transform: uppercase;\n}\ntable.arengi-table td.arengi-table-grey-title:not(.normal) a:hover {\n color: #dedede;\n text-decoration: underline;\n}\ntable.arengi-table td.arengi-table-grey-title:not(.normal):hover {\n background-color: #646464;\n transition-duration: 0.1s;\n}\n\n.RiskNumber-table {\n max-width: 50px;\n}\n.RiskNumber-table div {\n width: 100%;\n display: flex;\n align-items: center;\n justify-content: center;\n}\n.RiskNumber-table div span {\n width: 30px;\n height: 30px;\n min-width: 30px;\n min-height: 30px;\n max-width: 30px;\n max-height: 30px;\n border-radius: 100%;\n display: flex;\n align-items: center;\n justify-content: center;\n}\n\n.RiskLabel-table .etiquetteMatrix-risque {\n box-shadow: 1px 1px 3px rgba(0, 0, 0, 0.4705882353);\n width: fit-content;\n max-width: 190px;\n display: flex;\n justify-content: flex-start;\n border-radius: 3px;\n background-color: #fff;\n color: black;\n margin: 5px;\n padding: 0;\n border: 0 solid transparent;\n}\n.RiskLabel-table .etiquetteMatrix-risque .matrix-RisqueLabelColor {\n min-width: 20px;\n max-width: 20px;\n margin-right: 5px;\n border-right: 1px solid rgba(0, 0, 0, 0.3607843137);\n border-radius: 3px 0 0 3px;\n}\n.RiskLabel-table .etiquetteMatrix-risque .matrix-RisqueLabel {\n font-size: 13px;\n font-weight: 300;\n padding: 3px 10px 3px 5px;\n overflow: hidden;\n white-space: nowrap;\n text-overflow: ellipsis;\n}\n\n.RiskOwner-table .risk_owner {\n display: flex;\n align-items: center;\n justify-content: center;\n min-width: max-content;\n}\n.RiskOwner-table .risk_owner a {\n box-shadow: 1px 1px 3px rgba(0, 0, 0, 0.4705882353);\n padding: 5px 10px;\n border-radius: 5px;\n background-color: white;\n opacity: 1;\n margin: 2px;\n position: relative;\n}\n.RiskOwner-table .risk_owner a:hover {\n z-index: 9999;\n}\n\n.limite_txt_table {\n min-height: 50px;\n max-height: 90px;\n min-width: 250px;\n}\n.limite_txt_table p {\n line-height: 1.3;\n font-size: 14px;\n}\n\n.action-picto .picto {\n box-shadow: 1px 1px 3px rgba(0, 0, 0, 0.4705882353);\n padding: 5px 10px;\n border-radius: 5px;\n margin: 5px;\n}";
44747
44747
  styleInject(css_248z$1);
44748
44748
 
44749
44749
  function _extends$3() {
@@ -48324,25 +48324,73 @@ function textColorForBg(hex) {
48324
48324
  var b = parseInt(hex.substring(4, 6), 16);
48325
48325
  return (r + g + b) / 3 < 128 ? 'white' : 'black';
48326
48326
  }
48327
- var RowActionsCell = function RowActionsCell(_ref) {
48328
- var actions = _ref.actions,
48329
- rowData = _ref.rowData,
48330
- href = _ref.href;
48331
- var _useState = useState(false),
48327
+ var HoverTooltip = function HoverTooltip(_ref) {
48328
+ var lines = _ref.lines,
48329
+ children = _ref.children;
48330
+ var _useState = useState(null),
48332
48331
  _useState2 = _slicedToArray$d(_useState, 2),
48333
- open = _useState2[0],
48334
- setOpen = _useState2[1];
48332
+ pos = _useState2[0],
48333
+ setPos = _useState2[1];
48334
+ var hide = function hide() {
48335
+ return setPos(null);
48336
+ };
48337
+ var show = function show(e) {
48338
+ return setPos({
48339
+ x: e.clientX + 12,
48340
+ y: e.clientY + 12
48341
+ });
48342
+ };
48343
+ var move = function move(e) {
48344
+ return setPos({
48345
+ x: e.clientX + 12,
48346
+ y: e.clientY + 12
48347
+ });
48348
+ };
48349
+ return /*#__PURE__*/React__default.createElement(React__default.Fragment, null, /*#__PURE__*/React__default.createElement("span", {
48350
+ onMouseEnter: show,
48351
+ onMouseMove: move,
48352
+ onMouseLeave: hide,
48353
+ style: {
48354
+ cursor: 'pointer'
48355
+ }
48356
+ }, children), pos && /*#__PURE__*/createPortal(/*#__PURE__*/React__default.createElement("div", {
48357
+ style: {
48358
+ position: 'fixed',
48359
+ left: pos.x,
48360
+ top: pos.y,
48361
+ zIndex: 9999,
48362
+ background: '#1e1e2e',
48363
+ color: '#f4f4f5',
48364
+ borderRadius: '6px',
48365
+ padding: '6px 10px',
48366
+ fontSize: '12px',
48367
+ lineHeight: '1.6',
48368
+ maxWidth: '260px',
48369
+ boxShadow: '0 4px 14px rgba(0,0,0,0.25)',
48370
+ pointerEvents: 'none',
48371
+ whiteSpace: 'pre-wrap'
48372
+ }
48373
+ }, lines.join('\n')), document.body));
48374
+ };
48375
+ var RowActionsCell = function RowActionsCell(_ref2) {
48376
+ var actions = _ref2.actions,
48377
+ rowData = _ref2.rowData,
48378
+ href = _ref2.href;
48335
48379
  var _useState3 = useState(false),
48336
48380
  _useState4 = _slicedToArray$d(_useState3, 2),
48337
- hovered = _useState4[0],
48338
- setHovered = _useState4[1];
48339
- var _useState5 = useState({
48381
+ open = _useState4[0],
48382
+ setOpen = _useState4[1];
48383
+ var _useState5 = useState(false),
48384
+ _useState6 = _slicedToArray$d(_useState5, 2),
48385
+ hovered = _useState6[0],
48386
+ setHovered = _useState6[1];
48387
+ var _useState7 = useState({
48340
48388
  top: 0,
48341
48389
  left: 0
48342
48390
  }),
48343
- _useState6 = _slicedToArray$d(_useState5, 2),
48344
- dropPos = _useState6[0],
48345
- setDropPos = _useState6[1];
48391
+ _useState8 = _slicedToArray$d(_useState7, 2),
48392
+ dropPos = _useState8[0],
48393
+ setDropPos = _useState8[1];
48346
48394
  var triggerRef = useRef(null);
48347
48395
  var hideTimerRef = useRef(null);
48348
48396
  var showMenu = function showMenu() {
@@ -48432,10 +48480,10 @@ var RowActionsCell = function RowActionsCell(_ref) {
48432
48480
  extraAttrs.href = actionHref;
48433
48481
  }
48434
48482
  if (action.data) {
48435
- Object.entries(action.data).forEach(function (_ref2) {
48436
- var _ref3 = _slicedToArray$d(_ref2, 2),
48437
- k = _ref3[0],
48438
- v = _ref3[1];
48483
+ Object.entries(action.data).forEach(function (_ref3) {
48484
+ var _ref4 = _slicedToArray$d(_ref3, 2),
48485
+ k = _ref4[0],
48486
+ v = _ref4[1];
48439
48487
  extraAttrs[k] = v;
48440
48488
  });
48441
48489
  }
@@ -48515,44 +48563,44 @@ var RowActionsCell = function RowActionsCell(_ref) {
48515
48563
  }
48516
48564
  }, "settings")), dropdown);
48517
48565
  };
48518
- var DeviseBodyCell = function DeviseBodyCell(_ref4) {
48566
+ var DeviseBodyCell = function DeviseBodyCell(_ref5) {
48519
48567
  var _col$devises, _col$decimal, _cellDevise$code;
48520
- var rowData = _ref4.rowData,
48521
- col = _ref4.col,
48522
- editable = _ref4.editable,
48523
- _ref4$isRowEditing = _ref4.isRowEditing,
48524
- isRowEditing = _ref4$isRowEditing === void 0 ? false : _ref4$isRowEditing,
48525
- onSave = _ref4.onSave;
48526
- var _useState7 = useState(false),
48527
- _useState8 = _slicedToArray$d(_useState7, 2),
48528
- editing = _useState8[0],
48529
- setEditing = _useState8[1];
48568
+ var rowData = _ref5.rowData,
48569
+ col = _ref5.col,
48570
+ editable = _ref5.editable,
48571
+ _ref5$isRowEditing = _ref5.isRowEditing,
48572
+ isRowEditing = _ref5$isRowEditing === void 0 ? false : _ref5$isRowEditing,
48573
+ onSave = _ref5.onSave;
48574
+ var _useState9 = useState(false),
48575
+ _useState0 = _slicedToArray$d(_useState9, 2),
48576
+ editing = _useState0[0],
48577
+ setEditing = _useState0[1];
48530
48578
  var containerRef = useRef(null);
48531
48579
  var devises = (_col$devises = col.devises) !== null && _col$devises !== void 0 ? _col$devises : col.currency ? [col.currency] : [];
48532
48580
 
48533
48581
  // Local display state — initialized from rowData, updated immediately on save
48534
- var _useState9 = useState(rowData[col.field]),
48535
- _useState0 = _slicedToArray$d(_useState9, 2),
48536
- displayCell = _useState0[0],
48537
- setDisplayCell = _useState0[1];
48538
- var _useState1 = useState(''),
48582
+ var _useState1 = useState(rowData[col.field]),
48539
48583
  _useState10 = _slicedToArray$d(_useState1, 2),
48540
- amount = _useState10[0],
48541
- setAmount = _useState10[1];
48542
- var _useState11 = useState(null),
48584
+ displayCell = _useState10[0],
48585
+ setDisplayCell = _useState10[1];
48586
+ var _useState11 = useState(''),
48543
48587
  _useState12 = _slicedToArray$d(_useState11, 2),
48544
- devise = _useState12[0],
48545
- setDevise = _useState12[1];
48588
+ amount = _useState12[0],
48589
+ setAmount = _useState12[1];
48590
+ var _useState13 = useState(null),
48591
+ _useState14 = _slicedToArray$d(_useState13, 2),
48592
+ devise = _useState14[0],
48593
+ setDevise = _useState14[1];
48546
48594
  var deviseRef = useRef(null);
48547
48595
  var updateDevise = function updateDevise(val) {
48548
48596
  deviseRef.current = val;
48549
48597
  setDevise(val);
48550
48598
  };
48551
48599
  var openEdit = function openEdit() {
48552
- var _displayCell$value, _ref5, _ref6, _displayCell$devise;
48600
+ var _displayCell$value, _ref6, _ref7, _displayCell$devise;
48553
48601
  if (!editable) return;
48554
48602
  setAmount((_displayCell$value = displayCell === null || displayCell === void 0 ? void 0 : displayCell.value) !== null && _displayCell$value !== void 0 ? _displayCell$value : '');
48555
- var initialDevise = (_ref5 = (_ref6 = (_displayCell$devise = displayCell === null || displayCell === void 0 ? void 0 : displayCell.devise) !== null && _displayCell$devise !== void 0 ? _displayCell$devise : col.currency) !== null && _ref6 !== void 0 ? _ref6 : devises[0]) !== null && _ref5 !== void 0 ? _ref5 : null;
48603
+ var initialDevise = (_ref6 = (_ref7 = (_displayCell$devise = displayCell === null || displayCell === void 0 ? void 0 : displayCell.devise) !== null && _displayCell$devise !== void 0 ? _displayCell$devise : col.currency) !== null && _ref7 !== void 0 ? _ref7 : devises[0]) !== null && _ref6 !== void 0 ? _ref6 : null;
48556
48604
  deviseRef.current = initialDevise;
48557
48605
  setDevise(initialDevise);
48558
48606
  setEditing(true);
@@ -48561,9 +48609,9 @@ var DeviseBodyCell = function DeviseBodyCell(_ref4) {
48561
48609
  // Sync avec le mode row edit : auto-ouvrir / fermer
48562
48610
  useEffect(function () {
48563
48611
  if (isRowEditing && !editing) {
48564
- var _displayCell$value2, _ref7, _ref8, _displayCell$devise2;
48612
+ var _displayCell$value2, _ref8, _ref9, _displayCell$devise2;
48565
48613
  setAmount((_displayCell$value2 = displayCell === null || displayCell === void 0 ? void 0 : displayCell.value) !== null && _displayCell$value2 !== void 0 ? _displayCell$value2 : '');
48566
- var initialDevise = (_ref7 = (_ref8 = (_displayCell$devise2 = displayCell === null || displayCell === void 0 ? void 0 : displayCell.devise) !== null && _displayCell$devise2 !== void 0 ? _displayCell$devise2 : col.currency) !== null && _ref8 !== void 0 ? _ref8 : devises[0]) !== null && _ref7 !== void 0 ? _ref7 : null;
48614
+ var initialDevise = (_ref8 = (_ref9 = (_displayCell$devise2 = displayCell === null || displayCell === void 0 ? void 0 : displayCell.devise) !== null && _displayCell$devise2 !== void 0 ? _displayCell$devise2 : col.currency) !== null && _ref9 !== void 0 ? _ref9 : devises[0]) !== null && _ref8 !== void 0 ? _ref8 : null;
48567
48615
  deviseRef.current = initialDevise;
48568
48616
  setDevise(initialDevise);
48569
48617
  setEditing(true);
@@ -48661,17 +48709,17 @@ var DeviseBodyCell = function DeviseBodyCell(_ref4) {
48661
48709
  className: "span-sub"
48662
48710
  }, "".concat(numberWithSpaces(value), " ").concat(cellDevise.code)));
48663
48711
  };
48664
- var TreeSelectBodyCell = function TreeSelectBodyCell(_ref9) {
48665
- var rowData = _ref9.rowData,
48666
- col = _ref9.col,
48667
- editable = _ref9.editable,
48668
- _ref9$isRowEditing = _ref9.isRowEditing,
48669
- isRowEditing = _ref9$isRowEditing === void 0 ? false : _ref9$isRowEditing,
48670
- onSave = _ref9.onSave;
48671
- var _useState13 = useState(false),
48672
- _useState14 = _slicedToArray$d(_useState13, 2),
48673
- editing = _useState14[0],
48674
- setEditing = _useState14[1];
48712
+ var TreeSelectBodyCell = function TreeSelectBodyCell(_ref0) {
48713
+ var rowData = _ref0.rowData,
48714
+ col = _ref0.col,
48715
+ editable = _ref0.editable,
48716
+ _ref0$isRowEditing = _ref0.isRowEditing,
48717
+ isRowEditing = _ref0$isRowEditing === void 0 ? false : _ref0$isRowEditing,
48718
+ onSave = _ref0.onSave;
48719
+ var _useState15 = useState(false),
48720
+ _useState16 = _slicedToArray$d(_useState15, 2),
48721
+ editing = _useState16[0],
48722
+ setEditing = _useState16[1];
48675
48723
  var containerRef = useRef(null);
48676
48724
  var mappedOptions = useMemo(function () {
48677
48725
  var _col$keyField, _col$labelField;
@@ -48679,15 +48727,15 @@ var TreeSelectBodyCell = function TreeSelectBodyCell(_ref9) {
48679
48727
  }, [col.options, col.keyField, col.labelField]);
48680
48728
 
48681
48729
  // savedValue : valeur confirmée, utilisée pour l'affichage
48682
- var _useState15 = useState(rowData[col.field]),
48683
- _useState16 = _slicedToArray$d(_useState15, 2),
48684
- savedValue = _useState16[0],
48685
- setSavedValue = _useState16[1];
48686
- // editValue : valeur courante dans l'éditeur, peut être transitoire
48687
- var _useState17 = useState(null),
48730
+ var _useState17 = useState(rowData[col.field]),
48688
48731
  _useState18 = _slicedToArray$d(_useState17, 2),
48689
- editValue = _useState18[0],
48690
- setEditValue = _useState18[1];
48732
+ savedValue = _useState18[0],
48733
+ setSavedValue = _useState18[1];
48734
+ // editValue : valeur courante dans l'éditeur, peut être transitoire
48735
+ var _useState19 = useState(null),
48736
+ _useState20 = _slicedToArray$d(_useState19, 2),
48737
+ editValue = _useState20[0],
48738
+ setEditValue = _useState20[1];
48691
48739
  var openEdit = function openEdit() {
48692
48740
  if (!editable) return;
48693
48741
  setEditValue(savedValue);
@@ -48772,20 +48820,20 @@ var TreeSelectBodyCell = function TreeSelectBodyCell(_ref9) {
48772
48820
  }, label);
48773
48821
  }));
48774
48822
  };
48775
- var DocumentEditorCell = function DocumentEditorCell(_ref0) {
48823
+ var DocumentEditorCell = function DocumentEditorCell(_ref1) {
48776
48824
  var _options$value;
48777
- var options = _ref0.options,
48778
- col = _ref0.col,
48779
- onFilePickerOpen = _ref0.onFilePickerOpen,
48780
- onFilePickerClose = _ref0.onFilePickerClose;
48781
- var _useState19 = useState(false),
48782
- _useState20 = _slicedToArray$d(_useState19, 2),
48783
- uploading = _useState20[0],
48784
- setUploading = _useState20[1];
48825
+ var options = _ref1.options,
48826
+ col = _ref1.col,
48827
+ onFilePickerOpen = _ref1.onFilePickerOpen,
48828
+ onFilePickerClose = _ref1.onFilePickerClose;
48829
+ var _useState21 = useState(false),
48830
+ _useState22 = _slicedToArray$d(_useState21, 2),
48831
+ uploading = _useState22[0],
48832
+ setUploading = _useState22[1];
48785
48833
  var fileInputRef = useRef(null);
48786
48834
  var docs = (_options$value = options.value) !== null && _options$value !== void 0 ? _options$value : [];
48787
48835
  var handleFileChange = /*#__PURE__*/function () {
48788
- var _ref1 = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee(e) {
48836
+ var _ref10 = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee(e) {
48789
48837
  var file, formData, res, data, _t, _t2;
48790
48838
  return _regenerator().w(function (_context) {
48791
48839
  while (1) switch (_context.n) {
@@ -48840,7 +48888,7 @@ var DocumentEditorCell = function DocumentEditorCell(_ref0) {
48840
48888
  }, _callee, null, [[2,, 7, 8]]);
48841
48889
  }));
48842
48890
  return function handleFileChange(_x) {
48843
- return _ref1.apply(this, arguments);
48891
+ return _ref10.apply(this, arguments);
48844
48892
  };
48845
48893
  }();
48846
48894
  var handlePickerClick = function handlePickerClick() {
@@ -48923,22 +48971,22 @@ var DocumentEditorCell = function DocumentEditorCell(_ref0) {
48923
48971
  onChange: handleFileChange
48924
48972
  }));
48925
48973
  };
48926
- var SelfEditableCell = function SelfEditableCell(_ref10) {
48974
+ var SelfEditableCell = function SelfEditableCell(_ref11) {
48927
48975
  var _col$header;
48928
- var rowData = _ref10.rowData,
48929
- col = _ref10.col,
48930
- editable = _ref10.editable,
48931
- isRowEditing = _ref10.isRowEditing,
48932
- onSave = _ref10.onSave,
48933
- renderDisplay = _ref10.renderDisplay;
48934
- var _useState21 = useState(false),
48935
- _useState22 = _slicedToArray$d(_useState21, 2),
48936
- editing = _useState22[0],
48937
- setEditing = _useState22[1];
48938
- var _useState23 = useState(rowData[col.field]),
48976
+ var rowData = _ref11.rowData,
48977
+ col = _ref11.col,
48978
+ editable = _ref11.editable,
48979
+ isRowEditing = _ref11.isRowEditing,
48980
+ onSave = _ref11.onSave,
48981
+ renderDisplay = _ref11.renderDisplay;
48982
+ var _useState23 = useState(false),
48939
48983
  _useState24 = _slicedToArray$d(_useState23, 2),
48940
- localValue = _useState24[0],
48941
- setLocalValue = _useState24[1];
48984
+ editing = _useState24[0],
48985
+ setEditing = _useState24[1];
48986
+ var _useState25 = useState(rowData[col.field]),
48987
+ _useState26 = _slicedToArray$d(_useState25, 2),
48988
+ localValue = _useState26[0],
48989
+ setLocalValue = _useState26[1];
48942
48990
  var containerRef = useRef(null);
48943
48991
  var localValueRef = useRef(localValue);
48944
48992
  var committedRef = useRef(false);
@@ -49005,6 +49053,7 @@ var SelfEditableCell = function SelfEditableCell(_ref10) {
49005
49053
  }
49006
49054
  switch (col.type) {
49007
49055
  case 'select':
49056
+ case 'lienFormulaire':
49008
49057
  return /*#__PURE__*/React__default.createElement("div", {
49009
49058
  ref: containerRef
49010
49059
  }, /*#__PURE__*/React__default.createElement(Dropdown, _extends$J({}, DropdownPresets.Base, {
@@ -49013,6 +49062,7 @@ var SelfEditableCell = function SelfEditableCell(_ref10) {
49013
49062
  onChange: function onChange(e) {
49014
49063
  return commit(e.value);
49015
49064
  },
49065
+ withColor: true,
49016
49066
  autoFocus: true
49017
49067
  })));
49018
49068
  case 'selectMultiple':
@@ -49171,21 +49221,21 @@ var SelfEditableCell = function SelfEditableCell(_ref10) {
49171
49221
  }));
49172
49222
  }
49173
49223
  };
49174
- var DocumentBodyCell = function DocumentBodyCell(_ref11) {
49224
+ var DocumentBodyCell = function DocumentBodyCell(_ref12) {
49175
49225
  var _rowData$col$field2;
49176
- var rowData = _ref11.rowData,
49177
- col = _ref11.col,
49178
- editable = _ref11.editable,
49179
- isRowEditing = _ref11.isRowEditing,
49180
- onSave = _ref11.onSave;
49181
- var _useState25 = useState(false),
49182
- _useState26 = _slicedToArray$d(_useState25, 2),
49183
- editing = _useState26[0],
49184
- setEditing = _useState26[1];
49185
- var _useState27 = useState((_rowData$col$field2 = rowData[col.field]) !== null && _rowData$col$field2 !== void 0 ? _rowData$col$field2 : []),
49226
+ var rowData = _ref12.rowData,
49227
+ col = _ref12.col,
49228
+ editable = _ref12.editable,
49229
+ isRowEditing = _ref12.isRowEditing,
49230
+ onSave = _ref12.onSave;
49231
+ var _useState27 = useState(false),
49186
49232
  _useState28 = _slicedToArray$d(_useState27, 2),
49187
- docs = _useState28[0],
49188
- setDocs = _useState28[1];
49233
+ editing = _useState28[0],
49234
+ setEditing = _useState28[1];
49235
+ var _useState29 = useState((_rowData$col$field2 = rowData[col.field]) !== null && _rowData$col$field2 !== void 0 ? _rowData$col$field2 : []),
49236
+ _useState30 = _slicedToArray$d(_useState29, 2),
49237
+ docs = _useState30[0],
49238
+ setDocs = _useState30[1];
49189
49239
  var containerRef = useRef(null);
49190
49240
  var filePickerOpenRef = useRef(false);
49191
49241
  useEffect(function () {
@@ -49270,43 +49320,43 @@ var DocumentBodyCell = function DocumentBodyCell(_ref11) {
49270
49320
  }, doc.name));
49271
49321
  })));
49272
49322
  };
49273
- var Table$1 = function Table(_ref12) {
49274
- var _ref12$value = _ref12.value,
49275
- value = _ref12$value === void 0 ? [] : _ref12$value,
49276
- _ref12$columns = _ref12.columns,
49277
- columns = _ref12$columns === void 0 ? [] : _ref12$columns,
49278
- _ref12$paginator = _ref12.paginator,
49279
- paginator = _ref12$paginator === void 0 ? true : _ref12$paginator,
49280
- _ref12$rows = _ref12.rows,
49281
- rows = _ref12$rows === void 0 ? 25 : _ref12$rows,
49282
- _ref12$loading = _ref12.loading,
49283
- loading = _ref12$loading === void 0 ? false : _ref12$loading,
49284
- _ref12$stripedRows = _ref12.stripedRows,
49285
- stripedRows = _ref12$stripedRows === void 0 ? false : _ref12$stripedRows,
49286
- _ref12$selectionMode = _ref12.selectionMode,
49287
- selectionMode = _ref12$selectionMode === void 0 ? null : _ref12$selectionMode,
49288
- selection = _ref12.selection,
49289
- onSelectionChange = _ref12.onSelectionChange,
49290
- _ref12$editable = _ref12.editable,
49291
- editable = _ref12$editable === void 0 ? false : _ref12$editable,
49292
- _ref12$lockable = _ref12.lockable,
49293
- lockable = _ref12$lockable === void 0 ? false : _ref12$lockable,
49294
- _ref12$rowEdit = _ref12.rowEdit,
49295
- rowEdit = _ref12$rowEdit === void 0 ? false : _ref12$rowEdit,
49296
- _ref12$columnFilter = _ref12.columnFilter,
49297
- columnFilter = _ref12$columnFilter === void 0 ? true : _ref12$columnFilter,
49298
- onChange = _ref12.onChange,
49299
- onCellChange = _ref12.onCellChange,
49300
- carto = _ref12.carto;
49301
- var _useState29 = useState(true),
49302
- _useState30 = _slicedToArray$d(_useState29, 2),
49303
- locked = _useState30[0],
49304
- setLocked = _useState30[1];
49305
- var effectiveEditable = lockable ? editable && !locked : editable;
49306
- var _useState31 = useState(value),
49323
+ var Table$1 = function Table(_ref13) {
49324
+ var _ref13$value = _ref13.value,
49325
+ value = _ref13$value === void 0 ? [] : _ref13$value,
49326
+ _ref13$columns = _ref13.columns,
49327
+ columns = _ref13$columns === void 0 ? [] : _ref13$columns,
49328
+ _ref13$paginator = _ref13.paginator,
49329
+ paginator = _ref13$paginator === void 0 ? true : _ref13$paginator,
49330
+ _ref13$rows = _ref13.rows,
49331
+ rows = _ref13$rows === void 0 ? 25 : _ref13$rows,
49332
+ _ref13$loading = _ref13.loading,
49333
+ loading = _ref13$loading === void 0 ? false : _ref13$loading,
49334
+ _ref13$stripedRows = _ref13.stripedRows,
49335
+ stripedRows = _ref13$stripedRows === void 0 ? false : _ref13$stripedRows,
49336
+ _ref13$selectionMode = _ref13.selectionMode,
49337
+ selectionMode = _ref13$selectionMode === void 0 ? null : _ref13$selectionMode,
49338
+ selection = _ref13.selection,
49339
+ onSelectionChange = _ref13.onSelectionChange,
49340
+ _ref13$editable = _ref13.editable,
49341
+ editable = _ref13$editable === void 0 ? false : _ref13$editable,
49342
+ _ref13$lockable = _ref13.lockable,
49343
+ lockable = _ref13$lockable === void 0 ? false : _ref13$lockable,
49344
+ _ref13$rowEdit = _ref13.rowEdit,
49345
+ rowEdit = _ref13$rowEdit === void 0 ? false : _ref13$rowEdit,
49346
+ _ref13$columnFilter = _ref13.columnFilter,
49347
+ columnFilter = _ref13$columnFilter === void 0 ? true : _ref13$columnFilter,
49348
+ onChange = _ref13.onChange,
49349
+ onCellChange = _ref13.onCellChange,
49350
+ tableId = _ref13.tableId;
49351
+ var _useState31 = useState(true),
49307
49352
  _useState32 = _slicedToArray$d(_useState31, 2),
49308
- data = _useState32[0],
49309
- setData = _useState32[1];
49353
+ locked = _useState32[0],
49354
+ setLocked = _useState32[1];
49355
+ var effectiveEditable = lockable ? editable && !locked : editable;
49356
+ var _useState33 = useState(value),
49357
+ _useState34 = _slicedToArray$d(_useState33, 2),
49358
+ data = _useState34[0],
49359
+ setData = _useState34[1];
49310
49360
  var onCellChangeRef = useRef(onCellChange);
49311
49361
  useEffect(function () {
49312
49362
  onCellChangeRef.current = onCellChange;
@@ -49320,10 +49370,10 @@ var Table$1 = function Table(_ref12) {
49320
49370
  return updated;
49321
49371
  });
49322
49372
  }, [onChange]);
49323
- var _useState33 = useState({}),
49324
- _useState34 = _slicedToArray$d(_useState33, 2),
49325
- editingRows = _useState34[0],
49326
- setEditingRows = _useState34[1];
49373
+ var _useState35 = useState({}),
49374
+ _useState36 = _slicedToArray$d(_useState35, 2),
49375
+ editingRows = _useState36[0],
49376
+ setEditingRows = _useState36[1];
49327
49377
  var onRowEditChange = useCallback(function (e) {
49328
49378
  setEditingRows(e.data);
49329
49379
  }, []);
@@ -49353,17 +49403,17 @@ var Table$1 = function Table(_ref12) {
49353
49403
  });
49354
49404
  }, [data, onChange, onCellChange, columns, effectiveEditable]);
49355
49405
  var STORAGE_KEY = useMemo(function () {
49356
- return carto ? "Table:visibleColumns:".concat(carto) : "Table:visibleColumns";
49357
- }, [carto]);
49406
+ return tableId ? "Table:visibleColumns:".concat(tableId) : "Table:visibleColumns";
49407
+ }, [tableId]);
49358
49408
  var DT_STATE_KEY = useMemo(function () {
49359
- return carto ? "dt-state:".concat(carto) : 'dt-state';
49360
- }, [carto]);
49409
+ return tableId ? "dt-state:".concat(tableId) : 'dt-state';
49410
+ }, [tableId]);
49361
49411
  var clearDTColumnWidths = useCallback(function () {
49362
49412
  try {
49363
- var state = JSON.parse(sessionStorage.getItem(DT_STATE_KEY) || '{}');
49413
+ var state = JSON.parse(localStorage.getItem(DT_STATE_KEY) || '{}');
49364
49414
  delete state.columnWidths;
49365
49415
  delete state.tableWidth;
49366
- sessionStorage.setItem(DT_STATE_KEY, JSON.stringify(state));
49416
+ localStorage.setItem(DT_STATE_KEY, JSON.stringify(state));
49367
49417
  } catch (_) {}
49368
49418
  // Remove the <style> tag PrimeReact injected with !important widths
49369
49419
  document.querySelectorAll('style').forEach(function (s) {
@@ -49372,26 +49422,26 @@ var Table$1 = function Table(_ref12) {
49372
49422
  }
49373
49423
  });
49374
49424
  }, [DT_STATE_KEY]);
49375
- var _useState35 = useState(columns),
49376
- _useState36 = _slicedToArray$d(_useState35, 2),
49377
- visibleColumns = _useState36[0],
49378
- setVisibleColumns = _useState36[1];
49379
- var _useState37 = useState(''),
49425
+ var _useState37 = useState(columns),
49380
49426
  _useState38 = _slicedToArray$d(_useState37, 2),
49381
- globalFilter = _useState38[0],
49382
- setGlobalFilter = _useState38[1];
49383
- var _useState39 = useState(false),
49427
+ visibleColumns = _useState38[0],
49428
+ setVisibleColumns = _useState38[1];
49429
+ var _useState39 = useState(''),
49384
49430
  _useState40 = _slicedToArray$d(_useState39, 2),
49385
- settingsOpen = _useState40[0],
49386
- setSettingsOpen = _useState40[1];
49387
- var _useState41 = useState(0),
49431
+ globalFilter = _useState40[0],
49432
+ setGlobalFilter = _useState40[1];
49433
+ var _useState41 = useState(false),
49388
49434
  _useState42 = _slicedToArray$d(_useState41, 2),
49389
- tableKey = _useState42[0],
49390
- setTableKey = _useState42[1];
49391
- var _useState43 = useState(false),
49435
+ settingsOpen = _useState42[0],
49436
+ setSettingsOpen = _useState42[1];
49437
+ var _useState43 = useState(0),
49392
49438
  _useState44 = _slicedToArray$d(_useState43, 2),
49393
- fullscreen = _useState44[0],
49394
- setFullscreen = _useState44[1];
49439
+ tableKey = _useState44[0],
49440
+ setTableKey = _useState44[1];
49441
+ var _useState45 = useState(false),
49442
+ _useState46 = _slicedToArray$d(_useState45, 2),
49443
+ fullscreen = _useState46[0],
49444
+ setFullscreen = _useState46[1];
49395
49445
  useEffect(function () {
49396
49446
  if (!fullscreen) return;
49397
49447
  var onKeyDown = function onKeyDown(e) {
@@ -49403,9 +49453,9 @@ var Table$1 = function Table(_ref12) {
49403
49453
  };
49404
49454
  }, [fullscreen]);
49405
49455
  var FILTER_KEY = useMemo(function () {
49406
- return carto ? "Table:filterVisible:".concat(carto) : 'Table:filterVisible';
49407
- }, [carto]);
49408
- var _useState45 = useState(function () {
49456
+ return tableId ? "Table:filterVisible:".concat(tableId) : 'Table:filterVisible';
49457
+ }, [tableId]);
49458
+ var _useState47 = useState(function () {
49409
49459
  try {
49410
49460
  var _JSON$parse;
49411
49461
  return (_JSON$parse = JSON.parse(localStorage.getItem(FILTER_KEY))) !== null && _JSON$parse !== void 0 ? _JSON$parse : false;
@@ -49413,9 +49463,9 @@ var Table$1 = function Table(_ref12) {
49413
49463
  return false;
49414
49464
  }
49415
49465
  }),
49416
- _useState46 = _slicedToArray$d(_useState45, 2),
49417
- filterVisible = _useState46[0],
49418
- setFilterVisible = _useState46[1];
49466
+ _useState48 = _slicedToArray$d(_useState47, 2),
49467
+ filterVisible = _useState48[0],
49468
+ setFilterVisible = _useState48[1];
49419
49469
  var toggleFilter = function toggleFilter() {
49420
49470
  setFilterVisible(function (v) {
49421
49471
  var next = !v;
@@ -49438,11 +49488,11 @@ var Table$1 = function Table(_ref12) {
49438
49488
  };
49439
49489
  }, [settingsOpen]);
49440
49490
  var ROW_HEIGHTS_KEY = useMemo(function () {
49441
- return carto ? "Table:rowHeights:".concat(carto) : 'Table:rowHeights';
49442
- }, [carto]);
49491
+ return tableId ? "Table:rowHeights:".concat(tableId) : 'Table:rowHeights';
49492
+ }, [tableId]);
49443
49493
  var ROW_PRESET_KEY = useMemo(function () {
49444
- return carto ? "Table:rowPreset:".concat(carto) : 'Table:rowPreset';
49445
- }, [carto]);
49494
+ return tableId ? "Table:rowPreset:".concat(tableId) : 'Table:rowPreset';
49495
+ }, [tableId]);
49446
49496
  var ROW_PRESETS = {
49447
49497
  small: 110,
49448
49498
  medium: 160,
@@ -49456,13 +49506,13 @@ var Table$1 = function Table(_ref12) {
49456
49506
  rowHeightsRef.current = {};
49457
49507
  }
49458
49508
  }
49459
- var _useState47 = useState(function () {
49509
+ var _useState49 = useState(function () {
49460
49510
  var saved = localStorage.getItem(ROW_PRESET_KEY);
49461
49511
  return saved && ROW_PRESETS[saved] ? saved : null;
49462
49512
  }),
49463
- _useState48 = _slicedToArray$d(_useState47, 2),
49464
- rowPreset = _useState48[0],
49465
- setRowPreset = _useState48[1];
49513
+ _useState50 = _slicedToArray$d(_useState49, 2),
49514
+ rowPreset = _useState50[0],
49515
+ setRowPreset = _useState50[1];
49466
49516
  var tableWrapperRef = useRef(null);
49467
49517
  useLayoutEffect(function () {
49468
49518
  if (!tableWrapperRef.current) return;
@@ -49535,10 +49585,10 @@ var Table$1 = function Table(_ref12) {
49535
49585
  });
49536
49586
  return f;
49537
49587
  }, [columns]);
49538
- var _useState49 = useState(initialFilters),
49539
- _useState50 = _slicedToArray$d(_useState49, 2),
49540
- filters = _useState50[0],
49541
- setFilters = _useState50[1];
49588
+ var _useState51 = useState(initialFilters),
49589
+ _useState52 = _slicedToArray$d(_useState51, 2),
49590
+ filters = _useState52[0],
49591
+ setFilters = _useState52[1];
49542
49592
  useEffect(function () {
49543
49593
  setFilters(initialFilters);
49544
49594
  }, [initialFilters, columnFilter]);
@@ -49605,7 +49655,7 @@ var Table$1 = function Table(_ref12) {
49605
49655
 
49606
49656
  var linkTemplate = useCallback(function (col) {
49607
49657
  return function (rowData) {
49608
- var _ref13, _col$href;
49658
+ var _ref14, _col$href;
49609
49659
  var label = rowData[col.field];
49610
49660
  if (col.type === 'titleLink') {
49611
49661
  return /*#__PURE__*/React__default.createElement("div", {
@@ -49619,7 +49669,7 @@ var Table$1 = function Table(_ref12) {
49619
49669
  className: "table-item-title cell-text"
49620
49670
  }, label));
49621
49671
  }
49622
- var href = typeof col.href === 'function' ? col.href(rowData) : (_ref13 = (_col$href = col.href) !== null && _col$href !== void 0 ? _col$href : rowData[col.field + 'Url']) !== null && _ref13 !== void 0 ? _ref13 : '#';
49672
+ var href = typeof col.href === 'function' ? col.href(rowData) : (_ref14 = (_col$href = col.href) !== null && _col$href !== void 0 ? _col$href : rowData[col.field + 'Url']) !== null && _ref14 !== void 0 ? _ref14 : '#';
49623
49673
  return /*#__PURE__*/React__default.createElement("div", {
49624
49674
  className: "arengi-table-grey-title-box",
49625
49675
  style: {
@@ -49679,6 +49729,48 @@ var Table$1 = function Table(_ref12) {
49679
49729
  }, opt.label);
49680
49730
  };
49681
49731
  }, []);
49732
+ var lienFormulaireTemplate = useCallback(function (col) {
49733
+ return function (rowData) {
49734
+ var _col$options3, _ref15, _opt$label, _ref16, _col$href2;
49735
+ var val = rowData[col.field];
49736
+ var opt = (_col$options3 = col.options) === null || _col$options3 === void 0 ? void 0 : _col$options3.find(function (o) {
49737
+ return o.value === val;
49738
+ });
49739
+ var label = (_ref15 = (_opt$label = opt === null || opt === void 0 ? void 0 : opt.label) !== null && _opt$label !== void 0 ? _opt$label : val) !== null && _ref15 !== void 0 ? _ref15 : '';
49740
+ var href = typeof col.href === 'function' ? col.href(rowData) : (_ref16 = (_col$href2 = col.href) !== null && _col$href2 !== void 0 ? _col$href2 : opt === null || opt === void 0 ? void 0 : opt.href) !== null && _ref16 !== void 0 ? _ref16 : null;
49741
+ if (!label) return '';
49742
+ return /*#__PURE__*/React__default.createElement("div", {
49743
+ style: {
49744
+ display: 'flex',
49745
+ alignItems: 'center',
49746
+ gap: '6px'
49747
+ }
49748
+ }, /*#__PURE__*/React__default.createElement("span", {
49749
+ style: opt !== null && opt !== void 0 && opt.color ? {
49750
+ color: opt.color,
49751
+ fontWeight: 500
49752
+ } : undefined
49753
+ }, label), href && /*#__PURE__*/React__default.createElement("a", {
49754
+ href: href,
49755
+ target: "_blank",
49756
+ rel: "noopener noreferrer",
49757
+ onClick: function onClick(e) {
49758
+ return e.stopPropagation();
49759
+ },
49760
+ title: "Ouvrir la fiche",
49761
+ style: {
49762
+ display: 'flex',
49763
+ color: 'inherit',
49764
+ opacity: 0.6
49765
+ }
49766
+ }, /*#__PURE__*/React__default.createElement("i", {
49767
+ className: "pi pi-external-link",
49768
+ style: {
49769
+ fontSize: '0.8em'
49770
+ }
49771
+ })));
49772
+ };
49773
+ }, []);
49682
49774
  var textTemplate = useCallback(function (col) {
49683
49775
  return function (rowData) {
49684
49776
  var _rowData$col$field4;
@@ -49694,11 +49786,11 @@ var Table$1 = function Table(_ref12) {
49694
49786
  };
49695
49787
  var colorTextTemplate = useCallback(function (col) {
49696
49788
  return function (rowData) {
49697
- var _rowData$col$hrefFiel, _col$href2;
49789
+ var _rowData$col$hrefFiel, _col$href3;
49698
49790
  var text = rowData[col.field];
49699
49791
  if (!text) return '';
49700
49792
  var color = normalizeColor(rowData[col.field + 'Color']) || normalizeColor(col.defaultColor) || null;
49701
- var href = col.hrefField ? (_rowData$col$hrefFiel = rowData[col.hrefField]) !== null && _rowData$col$hrefFiel !== void 0 ? _rowData$col$hrefFiel : '#' : (_col$href2 = col.href) !== null && _col$href2 !== void 0 ? _col$href2 : null;
49793
+ var href = col.hrefField ? (_rowData$col$hrefFiel = rowData[col.hrefField]) !== null && _rowData$col$hrefFiel !== void 0 ? _rowData$col$hrefFiel : '#' : (_col$href3 = col.href) !== null && _col$href3 !== void 0 ? _col$href3 : null;
49702
49794
  var inner = color ? /*#__PURE__*/React__default.createElement("span", {
49703
49795
  className: "tab_label",
49704
49796
  style: {
@@ -49717,11 +49809,11 @@ var Table$1 = function Table(_ref12) {
49717
49809
  }, []);
49718
49810
  var pictoTemplate = useCallback(function (col) {
49719
49811
  return function (rowData) {
49720
- var _rowData$col$hrefFiel2, _col$href3;
49812
+ var _rowData$col$hrefFiel2, _col$href4;
49721
49813
  var text = rowData[col.field];
49722
49814
  var picto = rowData[col.field + 'Picto'];
49723
49815
  var icon = rowData[col.field + 'Icon'];
49724
- var href = col.hrefField ? (_rowData$col$hrefFiel2 = rowData[col.hrefField]) !== null && _rowData$col$hrefFiel2 !== void 0 ? _rowData$col$hrefFiel2 : '#' : (_col$href3 = col.href) !== null && _col$href3 !== void 0 ? _col$href3 : null;
49816
+ var href = col.hrefField ? (_rowData$col$hrefFiel2 = rowData[col.hrefField]) !== null && _rowData$col$hrefFiel2 !== void 0 ? _rowData$col$hrefFiel2 : '#' : (_col$href4 = col.href) !== null && _col$href4 !== void 0 ? _col$href4 : null;
49725
49817
  var inner;
49726
49818
  if (icon) {
49727
49819
  inner = /*#__PURE__*/React__default.createElement("span", {
@@ -49825,8 +49917,23 @@ var Table$1 = function Table(_ref12) {
49825
49917
  if (val === null || val === undefined || val === '') return '';
49826
49918
  var num = parseFloat(val);
49827
49919
  if (isNaN(num)) return val;
49828
- var bounded = col.min != null && num < col.min ? col.min : col.max != null && num > col.max ? col.max : num;
49829
- return bounded.toLocaleString('fr-FR');
49920
+ var outOfRange = col.min != null && num < col.min || col.max != null && num > col.max;
49921
+ var message = col.min != null && num < col.min ? "Min : ".concat(col.min) : col.max != null && num > col.max ? "Max : ".concat(col.max) : null;
49922
+ if (outOfRange) return /*#__PURE__*/React__default.createElement("span", {
49923
+ style: {
49924
+ color: '#e53935',
49925
+ display: 'inline-flex',
49926
+ alignItems: 'center',
49927
+ gap: '4px'
49928
+ },
49929
+ title: message
49930
+ }, num.toLocaleString('fr-FR'), /*#__PURE__*/React__default.createElement("span", {
49931
+ style: {
49932
+ fontSize: '0.75em',
49933
+ fontWeight: 600
49934
+ }
49935
+ }, message));
49936
+ return num.toLocaleString('fr-FR');
49830
49937
  };
49831
49938
  }, []);
49832
49939
  var indexTemplate = useCallback(function (col) {
@@ -49875,10 +49982,10 @@ var Table$1 = function Table(_ref12) {
49875
49982
  }, [columns]);
49876
49983
  var progressTemplate = useCallback(function (col) {
49877
49984
  return function (rowData) {
49878
- var _rowData$col$field7, _rowData$col$hrefFiel3, _col$href4;
49985
+ var _rowData$col$field7, _rowData$col$hrefFiel3, _col$href5;
49879
49986
  var pct = Math.min(100, Math.max(0, parseFloat((_rowData$col$field7 = rowData[col.field]) !== null && _rowData$col$field7 !== void 0 ? _rowData$col$field7 : 0)));
49880
49987
  var rounded = Math.max(10, Math.round(pct / 10) * 10);
49881
- var href = col.hrefField ? (_rowData$col$hrefFiel3 = rowData[col.hrefField]) !== null && _rowData$col$hrefFiel3 !== void 0 ? _rowData$col$hrefFiel3 : '#' : (_col$href4 = col.href) !== null && _col$href4 !== void 0 ? _col$href4 : null;
49988
+ var href = col.hrefField ? (_rowData$col$hrefFiel3 = rowData[col.hrefField]) !== null && _rowData$col$hrefFiel3 !== void 0 ? _rowData$col$hrefFiel3 : '#' : (_col$href5 = col.href) !== null && _col$href5 !== void 0 ? _col$href5 : null;
49882
49989
  var label = /*#__PURE__*/React__default.createElement("span", null, Math.round(pct), "%");
49883
49990
  return /*#__PURE__*/React__default.createElement("div", {
49884
49991
  style: {
@@ -49967,18 +50074,35 @@ var Table$1 = function Table(_ref12) {
49967
50074
  return function (rowData) {
49968
50075
  var vals = rowData[col.field];
49969
50076
  if (!(vals !== null && vals !== void 0 && vals.length)) return '';
50077
+ var opts = vals.map(function (v) {
50078
+ var _col$options4;
50079
+ return (_col$options4 = col.options) === null || _col$options4 === void 0 ? void 0 : _col$options4.find(function (o) {
50080
+ return o.value === v;
50081
+ });
50082
+ }).filter(Boolean);
50083
+ var tooltipLines = opts.map(function (o) {
50084
+ return o.label;
50085
+ });
50086
+ if (opts.length > 4) {
50087
+ return /*#__PURE__*/React__default.createElement(HoverTooltip, {
50088
+ lines: tooltipLines
50089
+ }, /*#__PURE__*/React__default.createElement("span", {
50090
+ style: {
50091
+ color: '#3f3f46',
50092
+ fontSize: '12.25px'
50093
+ }
50094
+ }, opts.length, " ", col.header));
50095
+ }
49970
50096
  if (col.clusterDisplay) {
49971
- return /*#__PURE__*/React__default.createElement("div", {
50097
+ return /*#__PURE__*/React__default.createElement(HoverTooltip, {
50098
+ lines: tooltipLines
50099
+ }, /*#__PURE__*/React__default.createElement("div", {
49972
50100
  className: "RiskClusters-table"
49973
- }, vals.map(function (v) {
49974
- var _col$options3, _normalizeColor;
49975
- var opt = (_col$options3 = col.options) === null || _col$options3 === void 0 ? void 0 : _col$options3.find(function (o) {
49976
- return o.value === v;
49977
- });
49978
- if (!opt) return null;
50101
+ }, opts.map(function (opt) {
50102
+ var _normalizeColor;
49979
50103
  return /*#__PURE__*/React__default.createElement("div", {
49980
50104
  className: "RiskClusters",
49981
- key: v
50105
+ key: opt.value
49982
50106
  }, /*#__PURE__*/React__default.createElement("span", {
49983
50107
  className: "material-icons",
49984
50108
  style: {
@@ -49988,32 +50112,29 @@ var Table$1 = function Table(_ref12) {
49988
50112
  }, "bubble_chart"), /*#__PURE__*/React__default.createElement("span", {
49989
50113
  className: "square"
49990
50114
  }, opt.label));
49991
- }));
50115
+ })));
49992
50116
  }
49993
- return /*#__PURE__*/React__default.createElement("div", {
50117
+ return /*#__PURE__*/React__default.createElement(HoverTooltip, {
50118
+ lines: tooltipLines
50119
+ }, /*#__PURE__*/React__default.createElement("div", {
49994
50120
  style: {
49995
50121
  display: 'flex',
49996
50122
  flexDirection: 'column',
49997
50123
  gap: '0.25rem'
49998
50124
  }
49999
- }, vals.map(function (v) {
50000
- var _col$options4;
50001
- var opt = (_col$options4 = col.options) === null || _col$options4 === void 0 ? void 0 : _col$options4.find(function (o) {
50002
- return o.value === v;
50003
- });
50004
- if (!opt) return null;
50125
+ }, opts.map(function (opt) {
50005
50126
  if (!normalizeColor(opt.color)) return /*#__PURE__*/React__default.createElement("span", {
50006
- key: v
50127
+ key: opt.value
50007
50128
  }, opt.label);
50008
50129
  return /*#__PURE__*/React__default.createElement("span", {
50009
- key: v,
50130
+ key: opt.value,
50010
50131
  className: "tab_label",
50011
50132
  style: {
50012
50133
  backgroundColor: normalizeColor(opt.color),
50013
50134
  color: textColorForBg(normalizeColor(opt.color))
50014
50135
  }
50015
50136
  }, opt.label);
50016
- }));
50137
+ })));
50017
50138
  };
50018
50139
  }, []);
50019
50140
 
@@ -50076,13 +50197,9 @@ var Table$1 = function Table(_ref12) {
50076
50197
  return /*#__PURE__*/React__default.createElement(InputText, {
50077
50198
  type: "number",
50078
50199
  value: (_options$value4 = options.value) !== null && _options$value4 !== void 0 ? _options$value4 : '',
50079
- min: col.min,
50080
- max: col.max,
50081
50200
  step: col.step,
50082
50201
  onChange: function onChange(e) {
50083
50202
  var v = e.target.value === '' ? '' : parseFloat(e.target.value);
50084
- if (col.min != null && v !== '' && v < col.min) v = col.min;
50085
- if (col.max != null && v !== '' && v > col.max) v = col.max;
50086
50203
  options.editorCallback(v);
50087
50204
  },
50088
50205
  autoFocus: true
@@ -50147,10 +50264,10 @@ var Table$1 = function Table(_ref12) {
50147
50264
  });
50148
50265
  if (option) {
50149
50266
  var extra = {};
50150
- Object.entries(col.updates).forEach(function (_ref14) {
50151
- var _ref15 = _slicedToArray$d(_ref14, 2),
50152
- targetField = _ref15[0],
50153
- optionProp = _ref15[1];
50267
+ Object.entries(col.updates).forEach(function (_ref17) {
50268
+ var _ref18 = _slicedToArray$d(_ref17, 2),
50269
+ targetField = _ref18[0],
50270
+ optionProp = _ref18[1];
50154
50271
  if (option[optionProp] !== undefined) extra[targetField] = option[optionProp];
50155
50272
  });
50156
50273
  enrichedRow = _objectSpread2(_objectSpread2({}, newRowData), extra);
@@ -50220,6 +50337,9 @@ var Table$1 = function Table(_ref12) {
50220
50337
  case 'select':
50221
50338
  displayFn = selectTemplate(col);
50222
50339
  break;
50340
+ case 'lienFormulaire':
50341
+ displayFn = lienFormulaireTemplate(col);
50342
+ break;
50223
50343
  case 'selectMultiple':
50224
50344
  displayFn = selectMultipleTemplate(col);
50225
50345
  break;
@@ -50275,10 +50395,10 @@ var Table$1 = function Table(_ref12) {
50275
50395
  return opt.value === v;
50276
50396
  });
50277
50397
  if (option) {
50278
- Object.entries(col.updates).forEach(function (_ref16) {
50279
- var _ref17 = _slicedToArray$d(_ref16, 2),
50280
- tf = _ref17[0],
50281
- op = _ref17[1];
50398
+ Object.entries(col.updates).forEach(function (_ref19) {
50399
+ var _ref20 = _slicedToArray$d(_ref19, 2),
50400
+ tf = _ref20[0],
50401
+ op = _ref20[1];
50282
50402
  if (option[op] !== undefined) enrichedFields[tf] = option[op];
50283
50403
  });
50284
50404
  }
@@ -50304,7 +50424,7 @@ var Table$1 = function Table(_ref12) {
50304
50424
  };
50305
50425
  }
50306
50426
  return displayFn;
50307
- }, [rowEdit, lockable, effectiveEditable, editingRows, updateRow, onChange, onCellChangeRef, linkTemplate, dateTemplate, selectTemplate, selectMultipleTemplate, colorTextTemplate, pictoTemplate, textTemplate, numericTemplate, badgesTemplate, calculTemplate, documentTemplate, deviseTemplate, treeSelectTemplate, htmlTemplate, journalTemplate]);
50427
+ }, [rowEdit, lockable, effectiveEditable, editingRows, updateRow, onChange, onCellChangeRef, linkTemplate, dateTemplate, selectTemplate, lienFormulaireTemplate, selectMultipleTemplate, colorTextTemplate, pictoTemplate, textTemplate, numericTemplate, badgesTemplate, calculTemplate, documentTemplate, deviseTemplate, treeSelectTemplate, htmlTemplate, journalTemplate]);
50308
50428
  var getSortField = useCallback(function (col) {
50309
50429
  return col.field;
50310
50430
  }, []);
@@ -50312,7 +50432,7 @@ var Table$1 = function Table(_ref12) {
50312
50432
  useLayoutEffect(function () {
50313
50433
  if (autoWidthsWritten.current) return;
50314
50434
  try {
50315
- var state = JSON.parse(sessionStorage.getItem(DT_STATE_KEY) || '{}');
50435
+ var state = JSON.parse(localStorage.getItem(DT_STATE_KEY) || '{}');
50316
50436
  if (state.columnWidths) return; // user already has saved widths
50317
50437
  } catch (_unused5) {
50318
50438
  return;
@@ -50331,9 +50451,9 @@ var Table$1 = function Table(_ref12) {
50331
50451
  });
50332
50452
  document.body.removeChild(span);
50333
50453
  try {
50334
- var _state = JSON.parse(sessionStorage.getItem(DT_STATE_KEY) || '{}');
50454
+ var _state = JSON.parse(localStorage.getItem(DT_STATE_KEY) || '{}');
50335
50455
  _state.columnWidths = widths.join(',');
50336
- sessionStorage.setItem(DT_STATE_KEY, JSON.stringify(_state));
50456
+ localStorage.setItem(DT_STATE_KEY, JSON.stringify(_state));
50337
50457
  } catch (_unused6) {
50338
50458
  return;
50339
50459
  }
@@ -50363,7 +50483,7 @@ var Table$1 = function Table(_ref12) {
50363
50483
  className: "pi pi-search",
50364
50484
  style: {
50365
50485
  color: '#71717a',
50366
- fontSize: '0.85rem'
50486
+ fontSize: '11.9px'
50367
50487
  }
50368
50488
  }), /*#__PURE__*/React__default.createElement(InputText, {
50369
50489
  value: globalFilter,
@@ -50377,14 +50497,14 @@ var Table$1 = function Table(_ref12) {
50377
50497
  outline: 'none',
50378
50498
  boxShadow: 'none',
50379
50499
  padding: 0,
50380
- fontSize: '0.875rem',
50500
+ fontSize: '12.25px',
50381
50501
  width: '200px'
50382
50502
  }
50383
50503
  }), globalFilter && /*#__PURE__*/React__default.createElement("i", {
50384
50504
  className: "pi pi-times",
50385
50505
  style: {
50386
50506
  color: '#71717a',
50387
- fontSize: '0.75rem',
50507
+ fontSize: '10.5px',
50388
50508
  cursor: 'pointer'
50389
50509
  },
50390
50510
  onClick: function onClick() {
@@ -50484,10 +50604,10 @@ var Table$1 = function Table(_ref12) {
50484
50604
  setRowPreset(null);
50485
50605
  setSettingsOpen(false);
50486
50606
  }
50487
- }].map(function (_ref18) {
50488
- var icon = _ref18.icon,
50489
- label = _ref18.label,
50490
- action = _ref18.action;
50607
+ }].map(function (_ref21) {
50608
+ var icon = _ref21.icon,
50609
+ label = _ref21.label,
50610
+ action = _ref21.action;
50491
50611
  return /*#__PURE__*/React__default.createElement("button", {
50492
50612
  key: label,
50493
50613
  type: "button",
@@ -50501,7 +50621,7 @@ var Table$1 = function Table(_ref12) {
50501
50621
  background: 'none',
50502
50622
  border: 'none',
50503
50623
  cursor: 'pointer',
50504
- fontSize: '0.875rem',
50624
+ fontSize: '12.25px',
50505
50625
  color: '#3f3f46',
50506
50626
  textAlign: 'left'
50507
50627
  },
@@ -50514,7 +50634,7 @@ var Table$1 = function Table(_ref12) {
50514
50634
  }, /*#__PURE__*/React__default.createElement("span", {
50515
50635
  className: "material-icons",
50516
50636
  style: {
50517
- fontSize: '1rem',
50637
+ fontSize: '14px',
50518
50638
  color: '#71717a',
50519
50639
  lineHeight: 1
50520
50640
  }
@@ -50527,7 +50647,7 @@ var Table$1 = function Table(_ref12) {
50527
50647
  }), /*#__PURE__*/React__default.createElement("div", {
50528
50648
  style: {
50529
50649
  padding: '0.4rem 1rem 0.5rem',
50530
- fontSize: '0.75rem',
50650
+ fontSize: '10.5px',
50531
50651
  color: '#71717a'
50532
50652
  }
50533
50653
  }, "Hauteur des lignes"), /*#__PURE__*/React__default.createElement("div", {
@@ -50545,9 +50665,9 @@ var Table$1 = function Table(_ref12) {
50545
50665
  }, {
50546
50666
  key: 'large',
50547
50667
  label: 'Grande'
50548
- }].map(function (_ref19) {
50549
- var key = _ref19.key,
50550
- label = _ref19.label;
50668
+ }].map(function (_ref22) {
50669
+ var key = _ref22.key,
50670
+ label = _ref22.label;
50551
50671
  return /*#__PURE__*/React__default.createElement("button", {
50552
50672
  key: key,
50553
50673
  type: "button",
@@ -50563,7 +50683,7 @@ var Table$1 = function Table(_ref12) {
50563
50683
  style: {
50564
50684
  flex: 1,
50565
50685
  padding: '0.35rem 0',
50566
- fontSize: '0.8rem',
50686
+ fontSize: '11.2px',
50567
50687
  border: "1px solid ".concat(rowPreset === key ? '#6366f1' : '#e4e4e7'),
50568
50688
  borderRadius: '4px',
50569
50689
  cursor: 'pointer',
@@ -50681,6 +50801,7 @@ var Table$1 = function Table(_ref12) {
50681
50801
  removableSort: true,
50682
50802
  reorderableColumns: true,
50683
50803
  stateKey: DT_STATE_KEY,
50804
+ stateStorage: "local",
50684
50805
  scrollable: true,
50685
50806
  scrollHeight: fullscreen ? 'flex' : '70vh',
50686
50807
  pt: {
@@ -50719,11 +50840,11 @@ var Table$1 = function Table(_ref12) {
50719
50840
  key: "__row_actions__",
50720
50841
  header: "",
50721
50842
  body: function body(rowData) {
50722
- var _ref20, _linkCol$href;
50843
+ var _ref23, _linkCol$href;
50723
50844
  var linkCol = columns.find(function (c) {
50724
50845
  return c.type === 'titleLink' || c.type === 'link';
50725
50846
  });
50726
- var linkHref = linkCol ? typeof linkCol.href === 'function' ? linkCol.href(rowData) : (_ref20 = (_linkCol$href = linkCol.href) !== null && _linkCol$href !== void 0 ? _linkCol$href : rowData[linkCol.field + 'Url']) !== null && _ref20 !== void 0 ? _ref20 : null : null;
50847
+ var linkHref = linkCol ? typeof linkCol.href === 'function' ? linkCol.href(rowData) : (_ref23 = (_linkCol$href = linkCol.href) !== null && _linkCol$href !== void 0 ? _linkCol$href : rowData[linkCol.field + 'Url']) !== null && _ref23 !== void 0 ? _ref23 : null : null;
50727
50848
  return /*#__PURE__*/React__default.createElement(RowActionsCell, {
50728
50849
  actions: rowData[actionsCol.actionsField] || [],
50729
50850
  rowData: rowData,
@@ -50876,6 +50997,19 @@ var competencesOptions = [{
50876
50997
  label: 'Design',
50877
50998
  color: '#FF61F6'
50878
50999
  }];
51000
+ var ficheOptions = [{
51001
+ value: 1,
51002
+ label: 'Déclaration Cyber #001 — Accès non autorisé',
51003
+ href: '/evenement/1'
51004
+ }, {
51005
+ value: 2,
51006
+ label: 'Déclaration RH #002 — Conflit salarial',
51007
+ href: '/evenement/2'
51008
+ }, {
51009
+ value: 3,
51010
+ label: 'Déclaration Fraude #003 — Faux virement',
51011
+ href: '/evenement/3'
51012
+ }];
50879
51013
  var dataTyped = [{
50880
51014
  id: 1,
50881
51015
  nom: 'Alice Martin',
@@ -50901,7 +51035,8 @@ var dataTyped = [{
50901
51035
  })
50902
51036
  },
50903
51037
  service: 'tech-dev',
50904
- owners: ['Marie Dupont', 'Jean Martin']
51038
+ owners: ['Marie Dupont', 'Jean Martin'],
51039
+ ficheRef: 1
50905
51040
  }, {
50906
51041
  id: 2,
50907
51042
  nom: 'Bob Dupont',
@@ -50931,7 +51066,8 @@ var dataTyped = [{
50931
51066
  })
50932
51067
  },
50933
51068
  service: 'metier-compta',
50934
- owners: ['Sophie Bernard', 'Paul Leroy', 'Claire Moreau', 'Lucas Petit']
51069
+ owners: ['Sophie Bernard', 'Paul Leroy', 'Claire Moreau', 'Lucas Petit'],
51070
+ ficheRef: 2
50935
51071
  }, {
50936
51072
  id: 3,
50937
51073
  nom: 'Clara Leroy',
@@ -50953,7 +51089,8 @@ var dataTyped = [{
50953
51089
  })
50954
51090
  },
50955
51091
  service: 'support',
50956
- owners: ['Alice Rousseau']
51092
+ owners: ['Alice Rousseau'],
51093
+ ficheRef: 3
50957
51094
  }, {
50958
51095
  id: 4,
50959
51096
  nom: 'David Bernard',
@@ -50970,7 +51107,8 @@ var dataTyped = [{
50970
51107
  fichiers: [],
50971
51108
  montant: null,
50972
51109
  service: 'tech-infra',
50973
- owners: []
51110
+ owners: [],
51111
+ ficheRef: null
50974
51112
  }, {
50975
51113
  id: 5,
50976
51114
  nom: 'Emma Petit',
@@ -50996,7 +51134,8 @@ var dataTyped = [{
50996
51134
  })
50997
51135
  },
50998
51136
  service: null,
50999
- owners: ['Marc Girard', 'Isabelle Noir', 'Thomas Klein', 'Nadia Sow', 'Romain Vénel']
51137
+ owners: ['Marc Girard', 'Isabelle Noir', 'Thomas Klein', 'Nadia Sow', 'Romain Vénel'],
51138
+ ficheRef: 1
51000
51139
  }, {
51001
51140
  id: 6,
51002
51141
  nom: 'François Morel',
@@ -51018,7 +51157,8 @@ var dataTyped = [{
51018
51157
  })
51019
51158
  },
51020
51159
  service: 'metier-rh',
51021
- owners: ['Pierre Simon', 'Lucie Blanc']
51160
+ owners: ['Pierre Simon', 'Lucie Blanc'],
51161
+ ficheRef: 2
51022
51162
  }, {
51023
51163
  id: 7,
51024
51164
  nom: 'Grace Rousseau',
@@ -51052,7 +51192,8 @@ var dataTyped = [{
51052
51192
  })
51053
51193
  },
51054
51194
  service: 'tech-secu',
51055
- owners: ['Camille Durand', 'Alexis Foret', 'Yasmine Aït']
51195
+ owners: ['Camille Durand', 'Alexis Foret', 'Yasmine Aït'],
51196
+ ficheRef: 3
51056
51197
  }];
51057
51198
  var columnsTyped = [{
51058
51199
  field: 'nom',
@@ -51123,6 +51264,12 @@ var columnsTyped = [{
51123
51264
  field: 'owners',
51124
51265
  header: 'Responsables',
51125
51266
  type: 'badges'
51267
+ }, {
51268
+ field: 'ficheRef',
51269
+ header: 'Fiche liée',
51270
+ type: 'lienFormulaire',
51271
+ editable: true,
51272
+ options: ficheOptions
51126
51273
  }];
51127
51274
  var TablePresets = {
51128
51275
  Base: {
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "arengibook",
3
3
  "private": false,
4
- "version": "2.0.28-table",
4
+ "version": "2.0.30-table",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.js",
7
7
  "exports": {