@economic/taco 2.34.0 → 2.34.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/components/Icon/components/DocumentSigned.d.ts +3 -0
- package/dist/components/Icon/components/Home2.d.ts +3 -0
- package/dist/components/Icon/components/Id.d.ts +3 -0
- package/dist/components/Icon/components/MastercardOs.d.ts +3 -0
- package/dist/components/Icon/components/NovemberFirst.d.ts +3 -0
- package/dist/components/Icon/components/index.d.ts +1 -1
- package/dist/components/Input/Input.d.ts +1 -1
- package/dist/components/Menu/components/Item.d.ts +1 -1
- package/dist/components/Menu/components/Link.d.ts +1 -1
- package/dist/components/Navigation2/components/Link.d.ts +1 -1
- package/dist/components/Select2/components/Option.d.ts +2 -2
- package/dist/components/Select2/components/Search.d.ts +1 -1
- package/dist/components/Table3/components/Columns/Internal/EditingActionsMenu.d.ts +1 -0
- package/dist/components/Table3/features/useTableEditing.d.ts +0 -1
- package/dist/components/Table3/listeners/useTableEditingListener.d.ts +3 -1
- package/dist/components/Tag/Tag.d.ts +1 -1
- package/dist/esm/packages/taco/src/components/Icon/components/DocumentSigned.js +19 -0
- package/dist/esm/packages/taco/src/components/Icon/components/DocumentSigned.js.map +1 -0
- package/dist/esm/packages/taco/src/components/Icon/components/Home2.js +19 -0
- package/dist/esm/packages/taco/src/components/Icon/components/Home2.js.map +1 -0
- package/dist/esm/packages/taco/src/components/Icon/components/Id.js +19 -0
- package/dist/esm/packages/taco/src/components/Icon/components/Id.js.map +1 -0
- package/dist/esm/packages/taco/src/components/Icon/components/MastercardOs.js +23 -0
- package/dist/esm/packages/taco/src/components/Icon/components/MastercardOs.js.map +1 -0
- package/dist/esm/packages/taco/src/components/Icon/components/NovemberFirst.js +20 -0
- package/dist/esm/packages/taco/src/components/Icon/components/NovemberFirst.js.map +1 -0
- package/dist/esm/packages/taco/src/components/Icon/components/index.js +10 -0
- package/dist/esm/packages/taco/src/components/Icon/components/index.js.map +1 -1
- package/dist/esm/packages/taco/src/components/Input/Input.js +5 -0
- package/dist/esm/packages/taco/src/components/Input/Input.js.map +1 -1
- package/dist/esm/packages/taco/src/components/Table3/Table3.js +1 -7
- package/dist/esm/packages/taco/src/components/Table3/Table3.js.map +1 -1
- package/dist/esm/packages/taco/src/components/Table3/components/Columns/Cell/Editing/RowMoveIndicator.js +1 -1
- package/dist/esm/packages/taco/src/components/Table3/components/Columns/Cell/Editing/RowMoveIndicator.js.map +1 -1
- package/dist/esm/packages/taco/src/components/Table3/components/Columns/Cell/EditingControlCell.js +1 -0
- package/dist/esm/packages/taco/src/components/Table3/components/Columns/Cell/EditingControlCell.js.map +1 -1
- package/dist/esm/packages/taco/src/components/Table3/components/Columns/Internal/EditingActionsMenu.js +9 -1
- package/dist/esm/packages/taco/src/components/Table3/components/Columns/Internal/EditingActionsMenu.js.map +1 -1
- package/dist/esm/packages/taco/src/components/Table3/features/useTableEditing.js +1 -12
- package/dist/esm/packages/taco/src/components/Table3/features/useTableEditing.js.map +1 -1
- package/dist/esm/packages/taco/src/components/Table3/listeners/useTableEditingListener.js +16 -1
- package/dist/esm/packages/taco/src/components/Table3/listeners/useTableEditingListener.js.map +1 -1
- package/dist/esm/packages/taco/src/components/Table3/useTable3.js +3 -2
- package/dist/esm/packages/taco/src/components/Table3/useTable3.js.map +1 -1
- package/dist/esm/packages/taco/src/primitives/Table/Core/Table.js +1 -1
- package/dist/esm/packages/taco/src/primitives/Table/Core/Table.js.map +1 -1
- package/dist/esm/packages/taco/src/primitives/Table/Core/components/Row/BuiltIns/DisplayRow.js +1 -2
- package/dist/esm/packages/taco/src/primitives/Table/Core/components/Row/BuiltIns/DisplayRow.js.map +1 -1
- package/dist/taco.cjs.development.js +123 -25
- package/dist/taco.cjs.development.js.map +1 -1
- package/dist/taco.cjs.production.min.js +1 -1
- package/dist/taco.cjs.production.min.js.map +1 -1
- package/package.json +2 -2
package/dist/esm/packages/taco/src/primitives/Table/Core/components/Row/BuiltIns/DisplayRow.js.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"DisplayRow.js","sources":["../../../../../../../../../../../src/primitives/Table/Core/components/Row/BuiltIns/DisplayRow.tsx"],"sourcesContent":["import React from 'react';\nimport { TableMeta as ReactTableMeta } from '@tanstack/react-table';\nimport cn from 'clsx';\nimport { Cell } from '../../Columns/Cell/Cell';\nimport { TableRowRendererProps } from '../../../types';\nimport { TableRowWithMetaData } from '../../../../types';\nimport { isElementInteractive } from '../../../../../../utils/dom';\nimport { useDropTarget } from '../../../../../../utils/hooks/useDropTarget';\n\nexport type DisplayRowProps<TType = unknown> = React.HTMLAttributes<HTMLTableRowElement> & TableRowRendererProps<TType>;\n\nexport const DisplayRow = React.memo(function DisplayRow<TType = unknown>(props: DisplayRowProps<TType>) {\n const { children, cellRenderer: CellRenderer, index, measureRow, row, table, ...otherAttributes } = props;\n const tableMeta = table.options.meta as ReactTableMeta<TType>;\n\n const attributes: any = {\n ...otherAttributes,\n 'data-row-id': row.id,\n 'data-row-index': index,\n tabIndex: -1,\n };\n\n const handleClick = React.useCallback(\n (event: React.MouseEvent<HTMLTableRowElement>) => {\n const clickedElement = event.target as HTMLElement;\n\n if (!event.currentTarget?.contains(event.target as HTMLElement) || isElementInteractive(clickedElement)) {\n return;\n }\n\n tableMeta.rowClick.handleClick(event, row.original);\n },\n [row.original]\n );\n const handleClickCapture = React.useCallback(() => {\n // do this in the next frame, otherwise it remounts the row and prevents row actions on hover from being clickable\n requestAnimationFrame(() => tableMeta.rowActive.setRowActiveIndex(index));\n }, []);\n\n // row active\n if (tableMeta.rowActive.isEnabled) {\n attributes['data-row-active'] = tableMeta.rowActive.rowActiveIndex === index ? true : undefined;\n // we use capture because it let's us picks up clicks on components inside the row, e.g. checkboxes\n attributes.onClickCapture = handleClickCapture;\n }\n\n // row click\n if (tableMeta.rowClick.isEnabled) {\n attributes.onClick = handleClick;\n }\n\n // row drag\n if (tableMeta.rowDrag.isEnabled) {\n attributes.draggable = true;\n attributes['aria-grabbed'] = !!tableMeta.rowDrag.dragging[row.id];\n }\n\n // row drop\n const [isDraggedOver, dropTargetProps] = useDropTarget(event => tableMeta.rowDrop.handleDrop?.(event, row.original));\n\n if (tableMeta.rowDrop.isEnabled) {\n attributes.onDragEnter = dropTargetProps?.onDragEnter;\n attributes.onDragLeave = dropTargetProps?.onDragLeave;\n attributes.onDragOver = dropTargetProps?.onDragOver;\n attributes.onDrop = dropTargetProps?.onDrop;\n attributes['data-row-dragged-over'] = isDraggedOver;\n }\n\n // row grouping\n if (table.options.enableGrouping) {\n attributes['data-row-group'] = row.getIsGrouped() ? true : undefined;\n }\n\n // row selection\n if (table.options.enableRowSelection) {\n attributes['data-row-selected'] = row.getIsSelected() || row.getIsAllSubRowsSelected() ? true : undefined;\n }\n\n // row expansion\n let expandedRow;\n\n if (tableMeta.rowExpansion.isEnabled && row.getIsExpanded()) {\n attributes['data-row-expanded'] = true;\n expandedRow = tableMeta.rowExpansion.rowExpansionRenderer?.(row.original)?.();\n }\n\n const rowMeta = (row.original as TableRowWithMetaData<TType>)._meta;\n\n if (rowMeta) {\n if (rowMeta.layout) {\n attributes['data-row-meta-layout'] = rowMeta.layout;\n }\n }\n\n const ref = React.useRef<HTMLTableRowElement>(null);\n const expansionRef = React.useRef<HTMLTableRowElement>(null);\n const isExpanded = !!attributes['data-row-expanded'];\n\n useSetVirtualisedRowHeight(measureRow, ref.current, expansionRef.current, isExpanded);\n\n const className = cn('group/row', {\n 'hover:cursor-pointer': typeof attributes.onClick === 'function',\n });\n\n return (\n <>\n <tr {...attributes} className={className} ref={ref}>\n {children}\n {row.getVisibleCells().map((cell, cellIndex) => (\n <Cell key={cell.id} cell={cell} index={cellIndex} renderer={CellRenderer} />\n ))}\n </tr>\n {expandedRow ? (\n <tr data-row-parent-id={row.id} ref={expansionRef}>\n <td className=\"col-span-full\">{expandedRow}</td>\n </tr>\n ) : null}\n </>\n );\n}) as <TType = unknown>(props: TableRowRendererProps<TType>) => JSX.Element;\n\nfunction useSetVirtualisedRowHeight(\n measureRow: (size: number, expansionHeight?: number) => void,\n rowEl: HTMLTableRowElement | null,\n expansionEl: HTMLTableRowElement | null,\n isExpanded: boolean\n) {\n React.useEffect(() => {\n if (rowEl) {\n const height = rowEl.getBoundingClientRect().height;\n\n if (isExpanded && expansionEl) {\n measureRow(height, expansionEl.getBoundingClientRect().height);\n } else {\n measureRow(height);\n }\n }\n }, [isExpanded, rowEl, expansionEl]);\n}\n"],"names":["DisplayRow","React","memo","props","children","cellRenderer","CellRenderer","index","measureRow","row","table","otherAttributes","tableMeta","options","meta","attributes","id","tabIndex","handleClick","useCallback","event","clickedElement","target","_event$currentTarget","currentTarget","contains","isElementInteractive","rowClick","original","handleClickCapture","requestAnimationFrame","rowActive","setRowActiveIndex","isEnabled","rowActiveIndex","undefined","onClickCapture","onClick","rowDrag","draggable","dragging","isDraggedOver","dropTargetProps","useDropTarget","_tableMeta$rowDrop$ha","_tableMeta$rowDrop","rowDrop","handleDrop","call","onDragEnter","onDragLeave","onDragOver","onDrop","enableGrouping","getIsGrouped","enableRowSelection","getIsSelected","getIsAllSubRowsSelected","expandedRow","rowExpansion","getIsExpanded","_tableMeta$rowExpansi","_tableMeta$rowExpansi2","_tableMeta$rowExpansi3","rowExpansionRenderer","rowMeta","_meta","layout","ref","useRef","expansionRef","isExpanded","useSetVirtualisedRowHeight","current","className","cn","getVisibleCells","map","cell","cellIndex","Cell","key","renderer","rowEl","expansionEl","useEffect","height","getBoundingClientRect"],"mappings":";;;;;;MAWaA,UAAU,gBAAGC,cAAK,CAACC,IAAI,CAAC,SAASF,UAAUA,CAAkBG,KAA6B;EACnG,MAAM;IAAEC,QAAQ;IAAEC,YAAY,EAAEC,YAAY;IAAEC,KAAK;IAAEC,UAAU;IAAEC,GAAG;IAAEC,KAAK;IAAE,GAAGC;GAAiB,GAAGR,KAAK;EACzG,MAAMS,SAAS,GAAGF,KAAK,CAACG,OAAO,CAACC,IAA6B;EAE7D,MAAMC,UAAU,GAAQ;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E,CAAC,CACD,EACJoD,WAAW,kBACRzD;0BAAwBQ,GAAG,CAACO,EAAE;IAAEoD,GAAG,EAAEE;kBACjCrE;IAAIyE,SAAS,EAAC;KAAiBhB,WAAW,CAAM,CAC/C,IACL,IAAI,CACT;AAEX,CAAC;AAED,SAASc,0BAA0BA,CAC/BhE,UAA4D,EAC5D2E,KAAiC,EACjCC,WAAuC,EACvCb,UAAmB;EAEnBtE,cAAK,CAACoF,SAAS,CAAC;IACZ,IAAIF,KAAK,EAAE;MACP,MAAMG,MAAM,GAAGH,KAAK,CAACI,qBAAqB,EAAE,CAACD,MAAM;MAEnD,IAAIf,UAAU,IAAIa,WAAW,EAAE;QAC3B5E,UAAU,CAAC8E,MAAM,EAAEF,WAAW,CAACG,qBAAqB,EAAE,CAACD,MAAM,CAAC;OACjE,MAAM;QACH9E,UAAU,CAAC8E,MAAM,CAAC;;;GAG7B,EAAE,CAACf,UAAU,EAAEY,KAAK,EAAEC,WAAW,CAAC,CAAC;AACxC;;;;"}
|
1
|
+
{"version":3,"file":"DisplayRow.js","sources":["../../../../../../../../../../../src/primitives/Table/Core/components/Row/BuiltIns/DisplayRow.tsx"],"sourcesContent":["import React from 'react';\nimport { TableMeta as ReactTableMeta } from '@tanstack/react-table';\nimport cn from 'clsx';\nimport { Cell } from '../../Columns/Cell/Cell';\nimport { TableRowRendererProps } from '../../../types';\nimport { TableRowWithMetaData } from '../../../../types';\nimport { isElementInteractive } from '../../../../../../utils/dom';\nimport { useDropTarget } from '../../../../../../utils/hooks/useDropTarget';\n\nexport type DisplayRowProps<TType = unknown> = React.HTMLAttributes<HTMLTableRowElement> & TableRowRendererProps<TType>;\n\nexport const DisplayRow = React.memo(function DisplayRow<TType = unknown>(props: DisplayRowProps<TType>) {\n const { children, cellRenderer: CellRenderer, index, measureRow, row, table, ...otherAttributes } = props;\n const tableMeta = table.options.meta as ReactTableMeta<TType>;\n\n const attributes: any = {\n ...otherAttributes,\n 'data-row-id': row.id,\n 'data-row-index': index,\n tabIndex: -1,\n };\n\n const handleClick = React.useCallback(\n (event: React.MouseEvent<HTMLTableRowElement>) => {\n const clickedElement = event.target as HTMLElement;\n\n if (!event.currentTarget?.contains(event.target as HTMLElement) || isElementInteractive(clickedElement)) {\n return;\n }\n\n tableMeta.rowClick.handleClick(event, row.original);\n },\n [row.original]\n );\n const handleClickCapture = React.useCallback(() => {\n // do this in the next frame, otherwise it remounts the row and prevents row actions on hover from being clickable\n requestAnimationFrame(() => tableMeta.rowActive.setRowActiveIndex(index));\n }, [index]);\n\n // row active\n if (tableMeta.rowActive.isEnabled) {\n attributes['data-row-active'] = tableMeta.rowActive.rowActiveIndex === index ? true : undefined;\n // we use capture because it let's us picks up clicks on components inside the row, e.g. checkboxes\n attributes.onClickCapture = handleClickCapture;\n }\n\n // row click\n if (tableMeta.rowClick.isEnabled) {\n attributes.onClick = handleClick;\n }\n\n // row drag\n if (tableMeta.rowDrag.isEnabled) {\n attributes['aria-grabbed'] = !!tableMeta.rowDrag.dragging[row.id];\n }\n\n // row drop\n const [isDraggedOver, dropTargetProps] = useDropTarget(event => tableMeta.rowDrop.handleDrop?.(event, row.original));\n\n if (tableMeta.rowDrop.isEnabled) {\n attributes.onDragEnter = dropTargetProps?.onDragEnter;\n attributes.onDragLeave = dropTargetProps?.onDragLeave;\n attributes.onDragOver = dropTargetProps?.onDragOver;\n attributes.onDrop = dropTargetProps?.onDrop;\n attributes['data-row-dragged-over'] = isDraggedOver;\n }\n\n // row grouping\n if (table.options.enableGrouping) {\n attributes['data-row-group'] = row.getIsGrouped() ? true : undefined;\n }\n\n // row selection\n if (table.options.enableRowSelection) {\n attributes['data-row-selected'] = row.getIsSelected() || row.getIsAllSubRowsSelected() ? true : undefined;\n }\n\n // row expansion\n let expandedRow;\n\n if (tableMeta.rowExpansion.isEnabled && row.getIsExpanded()) {\n attributes['data-row-expanded'] = true;\n expandedRow = tableMeta.rowExpansion.rowExpansionRenderer?.(row.original)?.();\n }\n\n const rowMeta = (row.original as TableRowWithMetaData<TType>)._meta;\n\n if (rowMeta) {\n if (rowMeta.layout) {\n attributes['data-row-meta-layout'] = rowMeta.layout;\n }\n }\n\n const ref = React.useRef<HTMLTableRowElement>(null);\n const expansionRef = React.useRef<HTMLTableRowElement>(null);\n const isExpanded = !!attributes['data-row-expanded'];\n\n useSetVirtualisedRowHeight(measureRow, ref.current, expansionRef.current, isExpanded);\n\n const className = cn('group/row', {\n 'hover:cursor-pointer': typeof attributes.onClick === 'function',\n });\n\n return (\n <>\n <tr {...attributes} className={className} ref={ref}>\n {children}\n {row.getVisibleCells().map((cell, cellIndex) => (\n <Cell key={cell.id} cell={cell} index={cellIndex} renderer={CellRenderer} />\n ))}\n </tr>\n {expandedRow ? (\n <tr data-row-parent-id={row.id} ref={expansionRef}>\n <td className=\"col-span-full\">{expandedRow}</td>\n </tr>\n ) : null}\n </>\n );\n}) as <TType = unknown>(props: TableRowRendererProps<TType>) => JSX.Element;\n\nfunction useSetVirtualisedRowHeight(\n measureRow: (size: number, expansionHeight?: number) => void,\n rowEl: HTMLTableRowElement | null,\n expansionEl: HTMLTableRowElement | null,\n isExpanded: boolean\n) {\n React.useEffect(() => {\n if (rowEl) {\n const height = rowEl.getBoundingClientRect().height;\n\n if (isExpanded && expansionEl) {\n measureRow(height, expansionEl.getBoundingClientRect().height);\n } else {\n measureRow(height);\n }\n }\n }, [isExpanded, rowEl, expansionEl]);\n}\n"],"names":["DisplayRow","React","memo","props","children","cellRenderer","CellRenderer","index","measureRow","row","table","otherAttributes","tableMeta","options","meta","attributes","id","tabIndex","handleClick","useCallback","event","clickedElement","target","_event$currentTarget","currentTarget","contains","isElementInteractive","rowClick","original","handleClickCapture","requestAnimationFrame","rowActive","setRowActiveIndex","isEnabled","rowActiveIndex","undefined","onClickCapture","onClick","rowDrag","dragging","isDraggedOver","dropTargetProps","useDropTarget","_tableMeta$rowDrop$ha","_tableMeta$rowDrop","rowDrop","handleDrop","call","onDragEnter","onDragLeave","onDragOver","onDrop","enableGrouping","getIsGrouped","enableRowSelection","getIsSelected","getIsAllSubRowsSelected","expandedRow","rowExpansion","getIsExpanded","_tableMeta$rowExpansi","_tableMeta$rowExpansi2","_tableMeta$rowExpansi3","rowExpansionRenderer","rowMeta","_meta","layout","ref","useRef","expansionRef","isExpanded","useSetVirtualisedRowHeight","current","className","cn","getVisibleCells","map","cell","cellIndex","Cell","key","renderer","rowEl","expansionEl","useEffect","height","getBoundingClientRect"],"mappings":";;;;;;MAWaA,UAAU,gBAAGC,cAAK,CAACC,IAAI,CAAC,SAASF,UAAUA,CAAkBG,KAA6B;EACnG,MAAM;IAAEC,QAAQ;IAAEC,YAAY,EAAEC,YAAY;IAAEC,KAAK;IAAEC,UAAU;IAAEC,GAAG;IAAEC,KAAK;IAAE,GAAGC;GAAiB,GAAGR,KAAK;EACzG,MAAMS,SAAS,GAAGF,KAAK,CAACG,OAAO,CAACC,IAA6B;EAE7D,MAAMC,UAAU,GAAQ;IACpB,GAAGJ,eAAe;IAClB,aAAa,EAAEF,GAAG,CAACO,EAAE;IACrB,gBAAgB,EAAET,KAAK;IACvBU,QAAQ,EAAE,CAAC;GACd;EAED,MAAMC,WAAW,GAAGjB,cAAK,CAACkB,WAAW,CAChCC,KAA4C;;IACzC,MAAMC,cAAc,GAAGD,KAAK,CAACE,MAAqB;IAElD,IAAI,GAAAC,oBAAA,GAACH,KAAK,CAACI,aAAa,cAAAD,oBAAA,eAAnBA,oBAAA,CAAqBE,QAAQ,CAACL,KAAK,CAACE,MAAqB,CAAC,KAAII,oBAAoB,CAACL,cAAc,CAAC,EAAE;MACrG;;IAGJT,SAAS,CAACe,QAAQ,CAACT,WAAW,CAACE,KAAK,EAAEX,GAAG,CAACmB,QAAQ,CAAC;GACtD,EACD,CAACnB,GAAG,CAACmB,QAAQ,CAAC,CACjB;EACD,MAAMC,kBAAkB,GAAG5B,cAAK,CAACkB,WAAW,CAAC;;IAEzCW,qBAAqB,CAAC,MAAMlB,SAAS,CAACmB,SAAS,CAACC,iBAA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) {
|
|
1239
1239
|
}
|
1240
1240
|
var DocumentRejectedRequest = /*#__PURE__*/React.forwardRef(IconDocumentRejectedRequest);
|
1241
1241
|
|
1242
|
+
function IconDocumentSigned(props, svgRef) {
|
1243
|
+
return /*#__PURE__*/React.createElement("svg", Object.assign({
|
1244
|
+
fill: "none",
|
1245
|
+
xmlns: "http://www.w3.org/2000/svg",
|
1246
|
+
viewBox: "0 0 24 24",
|
1247
|
+
ref: svgRef
|
1248
|
+
}, props), /*#__PURE__*/React.createElement("path", {
|
1249
|
+
fillRule: "evenodd",
|
1250
|
+
clipRule: "evenodd",
|
1251
|
+
d: "M14.293 2.293A1 1 0 0013.586 2H5.75A1.75 1.75 0 004 3.75v16.5c0 .966.784 1.75 1.75 1.75h12.5A1.75 1.75 0 0020 20.25V8.414a1 1 0 00-.293-.707l-5.414-5.414zM5.75 3.5H13v3.75l.006.144A1.75 1.75 0 0014.75 9h3.75v11.25l-.007.057a.25.25 0 01-.243.193H5.75l-.057-.007a.25.25 0 01-.193-.243V3.75l.007-.057A.25.25 0 015.75 3.5zm8.75 1.121V7.25a.25.25 0 00.193.243l.057.007h2.63L14.5 4.621zm-6.693 9.425C8.183 12.37 9.194 11 10.43 11c1.547 0 1.796 1.624 1 3.337a6.972 6.972 0 01-1.424 2.009l-.156.148.138-.007.17-.017c1.058-.13 1.702-.687 2.014-1.725l.044-.16.026-.08c.239-.613 1.208-.407 1.13.292a10.03 10.03 0 00-.074 1.205l.006.168.084-.093.202-.245c.451-.532.863-.748 1.332-.404.185.135.278.313.343.543l.019.072.033.156.064.387.087-.088.147-.16.172-.202.197-.242.22-.284.23-.312.057-.067a.59.59 0 01.898.758l-.133.182-.252.334-.127.162c-.665.834-1.147 1.225-1.605 1.266-.419.037-.725-.198-.889-.556a1.83 1.83 0 01-.128-.403l-.016-.081-.08.09-.093.096c-.583.591-1.13.773-1.585.251l-.068-.084-.054-.08a1.31 1.31 0 01-.128-.29l-.011-.04-.098.082-.152.112c-.568.398-1.28.616-2.126.645l-.2.003-.167-.005a1.862 1.862 0 01-.843-.253l-.016-.01-.077.046-.256.137a6.378 6.378 0 01-.8.342l-.222.072-.078.018a.59.59 0 01-.267-1.145 5.16 5.16 0 00.806-.324l.15-.08-.043-.116-.056-.188c-.133-.511-.144-1.121-.036-1.775l.031-.17.038-.181zm2.617-.347c.422-.975.323-1.52.004-1.52-.545 0-1.255 1.006-1.502 2.273-.09.462-.108.86-.061 1.178l.025.14.082-.07.197-.186a5.84 5.84 0 001.1-1.488l.091-.185.064-.142z",
|
1252
|
+
fill: "currentColor"
|
1253
|
+
}));
|
1254
|
+
}
|
1255
|
+
var DocumentSigned = /*#__PURE__*/React.forwardRef(IconDocumentSigned);
|
1256
|
+
|
1242
1257
|
function IconDocumentSplit(props, svgRef) {
|
1243
1258
|
return /*#__PURE__*/React.createElement("svg", Object.assign({
|
1244
1259
|
xmlns: "http://www.w3.org/2000/svg",
|
@@ -1763,6 +1778,21 @@ function IconHeightTall(props, svgRef) {
|
|
1763
1778
|
}
|
1764
1779
|
var HeightTall = /*#__PURE__*/React.forwardRef(IconHeightTall);
|
1765
1780
|
|
1781
|
+
function IconHome2(props, svgRef) {
|
1782
|
+
return /*#__PURE__*/React.createElement("svg", Object.assign({
|
1783
|
+
fill: "none",
|
1784
|
+
xmlns: "http://www.w3.org/2000/svg",
|
1785
|
+
viewBox: "0 0 24 24",
|
1786
|
+
ref: svgRef
|
1787
|
+
}, props), /*#__PURE__*/React.createElement("path", {
|
1788
|
+
fillRule: "evenodd",
|
1789
|
+
clipRule: "evenodd",
|
1790
|
+
d: "M11.116 2.823a1.25 1.25 0 011.768 0L17.25 7.19V6a.75.75 0 011.5 0v2.69l2.78 2.78a.75.75 0 01-1.06 1.06l-2.994-2.993-.013-.013L12 4.061l-8.47 8.47a.75.75 0 01-1.06-1.061l8.646-8.647zm1.768 3.25l7 7c.234.235.366.553.366.884v6.293c0 .69-.56 1.25-1.25 1.25h-4c-.69 0-1.25-.56-1.25-1.25V16.5h-3.5v3.75c0 .69-.56 1.25-1.25 1.25H5c-.69 0-1.25-.56-1.25-1.25v-6.293c0-.332.132-.65.366-.884l7-7a1.25 1.25 0 011.768 0zM12 7.311l-6.75 6.75V20h3.5v-3.75c0-.69.56-1.25 1.25-1.25h4c.69 0 1.25.56 1.25 1.25V20h3.5v-5.94L12 7.31z",
|
1791
|
+
fill: "currentColor"
|
1792
|
+
}));
|
1793
|
+
}
|
1794
|
+
var Home2 = /*#__PURE__*/React.forwardRef(IconHome2);
|
1795
|
+
|
1766
1796
|
function IconHome(props, svgRef) {
|
1767
1797
|
return /*#__PURE__*/React.createElement("svg", Object.assign({
|
1768
1798
|
xmlns: "http://www.w3.org/2000/svg",
|
@@ -1776,6 +1806,21 @@ function IconHome(props, svgRef) {
|
|
1776
1806
|
}
|
1777
1807
|
var Home = /*#__PURE__*/React.forwardRef(IconHome);
|
1778
1808
|
|
1809
|
+
function IconId(props, svgRef) {
|
1810
|
+
return /*#__PURE__*/React.createElement("svg", Object.assign({
|
1811
|
+
fill: "none",
|
1812
|
+
xmlns: "http://www.w3.org/2000/svg",
|
1813
|
+
viewBox: "0 0 24 24",
|
1814
|
+
ref: svgRef
|
1815
|
+
}, props), /*#__PURE__*/React.createElement("path", {
|
1816
|
+
fillRule: "evenodd",
|
1817
|
+
clipRule: "evenodd",
|
1818
|
+
d: "M20.25 5c.966 0 1.75.784 1.75 1.75v10.5A1.75 1.75 0 0120.25 19H3.75A1.75 1.75 0 012 17.25V6.75C2 5.784 2.784 5 3.75 5h16.5zm0 1.5H3.75a.25.25 0 00-.243.193L3.5 6.75v10.5a.25.25 0 00.193.243l.057.007h16.5a.25.25 0 00.243-.193l.007-.057V6.75a.25.25 0 00-.193-.243L20.25 6.5zm-9.268 7.993c-.316-1.81-1.31-2.714-2.982-2.714-1.673 0-2.667.905-2.982 2.714a1.204 1.204 0 001.184 1.41h3.595a1.204 1.204 0 001.185-1.41zM8 8c.76 0 1.374.77 1.374 1.718 0 .949-.615 1.718-1.374 1.718-.759 0-1.374-.77-1.374-1.718C6.626 8.769 7.24 8 8 8zm11 .75a.75.75 0 00-.75-.75h-6a.75.75 0 000 1.5h6a.75.75 0 00.75-.75zM18.25 14a.75.75 0 010 1.5h-4.5a.75.75 0 010-1.5h4.5zm.75-2.25a.75.75 0 00-.75-.75h-4.5a.75.75 0 000 1.5h4.5a.75.75 0 00.75-.75z",
|
1819
|
+
fill: "currentColor"
|
1820
|
+
}));
|
1821
|
+
}
|
1822
|
+
var Id = /*#__PURE__*/React.forwardRef(IconId);
|
1823
|
+
|
1779
1824
|
function IconImages(props, svgRef) {
|
1780
1825
|
return /*#__PURE__*/React.createElement("svg", Object.assign({
|
1781
1826
|
xmlns: "http://www.w3.org/2000/svg",
|
@@ -2266,6 +2311,25 @@ function IconMarket(props, svgRef) {
|
|
2266
2311
|
}
|
2267
2312
|
var Market = /*#__PURE__*/React.forwardRef(IconMarket);
|
2268
2313
|
|
2314
|
+
function IconMastercardOs(props, svgRef) {
|
2315
|
+
return /*#__PURE__*/React.createElement("svg", Object.assign({
|
2316
|
+
fill: "none",
|
2317
|
+
xmlns: "http://www.w3.org/2000/svg",
|
2318
|
+
viewBox: "0 0 24 24",
|
2319
|
+
ref: svgRef
|
2320
|
+
}, props), /*#__PURE__*/React.createElement("path", {
|
2321
|
+
d: "M14.698 7.314H9.286v9.66h5.412v-9.66z",
|
2322
|
+
fill: "#FF5A00"
|
2323
|
+
}), /*#__PURE__*/React.createElement("path", {
|
2324
|
+
d: "M9.646 12.144c0-1.963.929-3.704 2.354-4.83A6.178 6.178 0 008.185 6C4.766 6 2 8.748 2 12.144s2.766 6.143 6.185 6.143A6.178 6.178 0 0012 16.973a6.117 6.117 0 01-2.354-4.83z",
|
2325
|
+
fill: "#EB001B"
|
2326
|
+
}), /*#__PURE__*/React.createElement("path", {
|
2327
|
+
d: "M22 12.144c0 3.396-2.766 6.143-6.185 6.143A6.178 6.178 0 0112 16.973a6.095 6.095 0 002.354-4.83A6.146 6.146 0 0012 7.315 6.168 6.168 0 0115.813 6C19.233 6 22 8.766 22 12.144z",
|
2328
|
+
fill: "#F79E1B"
|
2329
|
+
}));
|
2330
|
+
}
|
2331
|
+
var MastercardOs = /*#__PURE__*/React.forwardRef(IconMastercardOs);
|
2332
|
+
|
2269
2333
|
function IconMatchAmount(props, svgRef) {
|
2270
2334
|
return /*#__PURE__*/React.createElement("svg", Object.assign({
|
2271
2335
|
xmlns: "http://www.w3.org/2000/svg",
|
@@ -2435,6 +2499,22 @@ function IconNote(props, svgRef) {
|
|
2435
2499
|
}
|
2436
2500
|
var Note = /*#__PURE__*/React.forwardRef(IconNote);
|
2437
2501
|
|
2502
|
+
function IconNovemberFirst(props, svgRef) {
|
2503
|
+
return /*#__PURE__*/React.createElement("svg", Object.assign({
|
2504
|
+
fill: "none",
|
2505
|
+
xmlns: "http://www.w3.org/2000/svg",
|
2506
|
+
viewBox: "0 0 24 24",
|
2507
|
+
ref: svgRef
|
2508
|
+
}, props), /*#__PURE__*/React.createElement("path", {
|
2509
|
+
d: "M21.484 8.828C19.73 3.592 14.065.768 8.829 2.519 3.592 4.271.767 9.936 2.519 15.172c1.752 5.237 7.418 8.06 12.655 6.308a9.997 9.997 0 006.31-12.653z",
|
2510
|
+
fill: "#0D2840"
|
2511
|
+
}), /*#__PURE__*/React.createElement("path", {
|
2512
|
+
d: "M13.977 7.263v5.445l-4.14-5.445H7.264l.78 1.156v7.686h1.919v-5.619l4.28 5.62H15.9V7.262h-1.922z",
|
2513
|
+
fill: "#2CD7B3"
|
2514
|
+
}));
|
2515
|
+
}
|
2516
|
+
var NovemberFirst = /*#__PURE__*/React.forwardRef(IconNovemberFirst);
|
2517
|
+
|
2438
2518
|
function IconNumbers(props, svgRef) {
|
2439
2519
|
return /*#__PURE__*/React.createElement("svg", Object.assign({
|
2440
2520
|
fill: "none",
|
@@ -3486,6 +3566,7 @@ const icons = {
|
|
3486
3566
|
'document-preview': DocumentPreview,
|
3487
3567
|
'document-received': DocumentReceived,
|
3488
3568
|
'document-rejected-request': DocumentRejectedRequest,
|
3569
|
+
'document-signed': DocumentSigned,
|
3489
3570
|
'document-split': DocumentSplit,
|
3490
3571
|
'document-time': DocumentTime,
|
3491
3572
|
document: Document,
|
@@ -3525,7 +3606,9 @@ const icons = {
|
|
3525
3606
|
'height-medium': HeightMedium,
|
3526
3607
|
'height-short': HeightShort,
|
3527
3608
|
'height-tall': HeightTall,
|
3609
|
+
home2: Home2,
|
3528
3610
|
home: Home,
|
3611
|
+
id: Id,
|
3529
3612
|
images: Images,
|
3530
3613
|
import: Import,
|
3531
3614
|
'inbox-einvoicing': InboxEinvoicing,
|
@@ -3562,6 +3645,7 @@ const icons = {
|
|
3562
3645
|
'log-out': LogOut,
|
3563
3646
|
log: Log,
|
3564
3647
|
market: Market,
|
3648
|
+
'mastercard-os': MastercardOs,
|
3565
3649
|
'match-amount': MatchAmount,
|
3566
3650
|
'match-entries': MatchEntries,
|
3567
3651
|
menu: Menu,
|
@@ -3575,6 +3659,7 @@ const icons = {
|
|
3575
3659
|
'note-follow-up': NoteFollowUp,
|
3576
3660
|
'note-read': NoteRead,
|
3577
3661
|
note: Note,
|
3662
|
+
'november-first': NovemberFirst,
|
3578
3663
|
numbers: Numbers,
|
3579
3664
|
'partner-api': PartnerApi,
|
3580
3665
|
'payment-paid': PaymentPaid,
|
@@ -5217,6 +5302,11 @@ const InputWithoutDeprecatedFeatures = /*#__PURE__*/React.forwardRef(function In
|
|
5217
5302
|
event.preventDefault();
|
5218
5303
|
const position = event.key === 'End' ? event.currentTarget.value.length : 0;
|
5219
5304
|
event.currentTarget.setSelectionRange(position, position);
|
5305
|
+
// Necessary for ensuring the cursor is scrolled into view when using Home/End keys on Windows
|
5306
|
+
if (internalRef.current) {
|
5307
|
+
const scrollPosition = event.key === 'End' ? internalRef.current.scrollWidth : 0;
|
5308
|
+
internalRef.current.scrollLeft = scrollPosition;
|
5309
|
+
}
|
5220
5310
|
}
|
5221
5311
|
}
|
5222
5312
|
if (typeof onKeyDown === 'function') {
|
@@ -12423,7 +12513,7 @@ const DisplayRow = /*#__PURE__*/React__default.memo(function DisplayRow(props) {
|
|
12423
12513
|
const handleClickCapture = React__default.useCallback(() => {
|
12424
12514
|
// do this in the next frame, otherwise it remounts the row and prevents row actions on hover from being clickable
|
12425
12515
|
requestAnimationFrame(() => tableMeta.rowActive.setRowActiveIndex(index));
|
12426
|
-
}, []);
|
12516
|
+
}, [index]);
|
12427
12517
|
// row active
|
12428
12518
|
if (tableMeta.rowActive.isEnabled) {
|
12429
12519
|
attributes['data-row-active'] = tableMeta.rowActive.rowActiveIndex === index ? true : undefined;
|
@@ -12436,7 +12526,6 @@ const DisplayRow = /*#__PURE__*/React__default.memo(function DisplayRow(props) {
|
|
12436
12526
|
}
|
12437
12527
|
// row drag
|
12438
12528
|
if (tableMeta.rowDrag.isEnabled) {
|
12439
|
-
attributes.draggable = true;
|
12440
12529
|
attributes['aria-grabbed'] = !!tableMeta.rowDrag.dragging[row.id];
|
12441
12530
|
}
|
12442
12531
|
// row drop
|
@@ -16268,7 +16357,7 @@ function TableGrid(props) {
|
|
16268
16357
|
key: props.id,
|
16269
16358
|
header: props,
|
16270
16359
|
scrollToIndex: table.renderer.scrollToIndex
|
16271
|
-
}))))))), table.instance.
|
16360
|
+
}))))))), table.instance.getCoreRowModel().rows.length ? ( /*#__PURE__*/React__default.createElement(React__default.Fragment, null, /*#__PURE__*/React__default.createElement(Body, {
|
16272
16361
|
enableHorizontalArrowKeyNavigation: enableHorizontalArrowKeyNavigation,
|
16273
16362
|
table: table.instance,
|
16274
16363
|
tableElement: table.ref.current,
|
@@ -17779,7 +17868,7 @@ const useTableRowCreation = (data, tableRef) => {
|
|
17779
17868
|
};
|
17780
17869
|
};
|
17781
17870
|
|
17782
|
-
function useTableEditingListener(table) {
|
17871
|
+
function useTableEditingListener(table, tableRef) {
|
17783
17872
|
const tableMeta = table.options.meta;
|
17784
17873
|
const saveChanges = () => {
|
17785
17874
|
requestAnimationFrame(() => {
|
@@ -17821,6 +17910,20 @@ function useTableEditingListener(table) {
|
|
17821
17910
|
window.removeEventListener('beforeunload', showUnsavedChangesWarning);
|
17822
17911
|
};
|
17823
17912
|
}, [tableMeta.editing.isEditing, hasChanges]);
|
17913
|
+
React__default.useEffect(() => {
|
17914
|
+
const onClickOutside = event => {
|
17915
|
+
if (tableMeta.editing.isEditing) {
|
17916
|
+
var _event$target$getAttr, _event$target;
|
17917
|
+
const element = (_event$target$getAttr = (_event$target = event.target) === null || _event$target === void 0 ? void 0 : _event$target.getAttribute('data-taco')) !== null && _event$target$getAttr !== void 0 ? _event$target$getAttr : '';
|
17918
|
+
const insideTable = isElementInsideOrTriggeredFromContainer(event.target, tableRef.current) || element === 'backdrop';
|
17919
|
+
if (!insideTable) {
|
17920
|
+
saveChanges();
|
17921
|
+
}
|
17922
|
+
}
|
17923
|
+
};
|
17924
|
+
document.addEventListener('click', onClickOutside);
|
17925
|
+
return () => document.removeEventListener('click', onClickOutside);
|
17926
|
+
}, [saveChanges, tableMeta.editing.isEditing]);
|
17824
17927
|
}
|
17825
17928
|
|
17826
17929
|
function willRowMove(cell, change, rowIndex) {
|
@@ -17899,14 +18002,6 @@ function useTableEditing(isEnabled = false, handleSave, validator) {
|
|
17899
18002
|
// changes are saved as soon as the active row changes, so in most cases this will only contain the active row's changes
|
17900
18003
|
// but not always - if validation or server requests fail when saving, those rows remain until the failure is resolved
|
17901
18004
|
const pendingChangesFns = usePendingChanges(isEnabled, handleSave, validator);
|
17902
|
-
// if focus leaves the table in any way, trigger a save
|
17903
|
-
const handleBlur = React__default.useCallback(event => {
|
17904
|
-
// custom event from datepicker, and it doesn't have the relatedTarget property set.
|
17905
|
-
const isClosingDatepicker = dateFns.isDate(event.detail);
|
17906
|
-
if (event.relatedTarget !== event.currentTarget && !isElementInsideOrTriggeredFromContainer(event.relatedTarget, event.currentTarget) && !isClosingDatepicker) {
|
17907
|
-
pendingChangesFns.saveChanges();
|
17908
|
-
}
|
17909
|
-
}, [pendingChangesFns.saveChanges]);
|
17910
18005
|
useGlobalKeyDown(isEnabled && isEditing ? {
|
17911
18006
|
key: 's',
|
17912
18007
|
meta: true,
|
@@ -17923,8 +18018,7 @@ function useTableEditing(isEnabled = false, handleSave, validator) {
|
|
17923
18018
|
toggleEditing: isEnabled ? toggleEditing : () => undefined,
|
17924
18019
|
lastFocusedCellIndex,
|
17925
18020
|
setLastFocusedCellIndex,
|
17926
|
-
...pendingChangesFns
|
17927
|
-
handleBlur: isEnabled && isEditing ? handleBlur : () => undefined
|
18021
|
+
...pendingChangesFns
|
17928
18022
|
};
|
17929
18023
|
}
|
17930
18024
|
function usePendingChanges(isEnabled, handleSave, validator) {
|
@@ -18248,7 +18342,7 @@ function RowMoveIndicator(props) {
|
|
18248
18342
|
if (cellRef.current) {
|
18249
18343
|
if (isActiveRow && !!moveReason) {
|
18250
18344
|
var _cellRef$current$pare;
|
18251
|
-
const firstChild = (_cellRef$current$pare = cellRef.current.parentElement) === null || _cellRef$current$pare === void 0 ? void 0 : _cellRef$current$pare.querySelector(
|
18345
|
+
const firstChild = (_cellRef$current$pare = cellRef.current.parentElement) === null || _cellRef$current$pare === void 0 ? void 0 : _cellRef$current$pare.querySelector(`td[data-taco="cell-control"]`);
|
18252
18346
|
if (cellRef.current === firstChild) {
|
18253
18347
|
var _cellRef$current$pare2;
|
18254
18348
|
setShow(true);
|
@@ -18503,6 +18597,7 @@ function EditingControlCell(props) {
|
|
18503
18597
|
const cellAttributes = {
|
18504
18598
|
...getCellAttributes(cell, index, isHighlighted),
|
18505
18599
|
'data-cell-editing-invalid': error ? true : undefined,
|
18600
|
+
'data-taco': 'cell-control',
|
18506
18601
|
onFocus: handleFocus,
|
18507
18602
|
ref: cellRef,
|
18508
18603
|
tabIndex: -1
|
@@ -18700,16 +18795,24 @@ function EditingActionMenu(props) {
|
|
18700
18795
|
hasErrors,
|
18701
18796
|
onClear: handleClear,
|
18702
18797
|
onExit: handleExit,
|
18703
|
-
onSave: handleSave
|
18798
|
+
onSave: handleSave,
|
18799
|
+
isLastRow
|
18704
18800
|
} = props;
|
18705
18801
|
const {
|
18706
18802
|
texts
|
18707
18803
|
} = useLocalization();
|
18804
|
+
const handleKeyDown = event => {
|
18805
|
+
// normally we handle this on change of active row, but when tabbing out of the last row the active row state stays on the last one.
|
18806
|
+
if (isLastRow && hasChanges && event.key === 'Tab') {
|
18807
|
+
handleSave();
|
18808
|
+
}
|
18809
|
+
};
|
18708
18810
|
return /*#__PURE__*/React__default.createElement(IconButton, {
|
18709
18811
|
appearance: "transparent",
|
18710
18812
|
"aria-label": texts.table3.editing.actions.tooltip,
|
18711
18813
|
className: "group-[[data-row-editing-status]]/row:hidden",
|
18712
18814
|
icon: "more",
|
18815
|
+
onKeyDown: handleKeyDown,
|
18713
18816
|
menu: menuProps => ( /*#__PURE__*/React__default.createElement(Menu$1, Object.assign({}, menuProps), /*#__PURE__*/React__default.createElement(Menu$1.Content, null, /*#__PURE__*/React__default.createElement(Menu$1.Item, {
|
18714
18817
|
icon: "tick",
|
18715
18818
|
disabled: !hasChanges || hasErrors,
|
@@ -18839,7 +18942,8 @@ function useTable3(props, ref) {
|
|
18839
18942
|
hasErrors: editing.hasRowErrors(rowId),
|
18840
18943
|
onClear: () => editing.resetChanges(rowId),
|
18841
18944
|
onSave: () => editing.saveChanges(rowId),
|
18842
|
-
onExit: () => editing.toggleEditing(false)
|
18945
|
+
onExit: () => editing.toggleEditing(false),
|
18946
|
+
isLastRow: table.meta.rowActive.rowActiveIndex === table.meta.length - 1
|
18843
18947
|
}))] : props.rowActions
|
18844
18948
|
};
|
18845
18949
|
const meta = {
|
@@ -18847,7 +18951,7 @@ function useTable3(props, ref) {
|
|
18847
18951
|
};
|
18848
18952
|
const table = useTable(extendedProps, ref, RENDERERS$1, meta);
|
18849
18953
|
// listeners
|
18850
|
-
useTableEditingListener(table.instance);
|
18954
|
+
useTableEditingListener(table.instance, table.ref);
|
18851
18955
|
React__default.useEffect(() => {
|
18852
18956
|
if (table.ref.current) {
|
18853
18957
|
table.ref.current.instance.toggleEditing = enabled => table.meta.editing.toggleEditing(enabled !== null && enabled !== void 0 ? enabled : editing => !editing);
|
@@ -19036,15 +19140,9 @@ Group$5.displayName = 'Table3Group';
|
|
19036
19140
|
const BaseTable3 = /*#__PURE__*/fixedForwardRef(function BaseTable3(props, ref) {
|
19037
19141
|
var _table3$meta$editing, _table3$meta$editing2;
|
19038
19142
|
const table3 = useTable3(props, ref);
|
19039
|
-
const handleBlur = event => {
|
19040
|
-
if (table3.meta.editing.isEditing) {
|
19041
|
-
table3.meta.editing.handleBlur(event);
|
19042
|
-
}
|
19043
|
-
};
|
19044
19143
|
const gridAttributes = {
|
19045
19144
|
'data-table-editing-mode': (_table3$meta$editing = table3.meta.editing) !== null && _table3$meta$editing !== void 0 && _table3$meta$editing.isEditing ? (_table3$meta$editing2 = table3.meta.editing) !== null && _table3$meta$editing2 !== void 0 && _table3$meta$editing2.isDetailedMode ? 'detailed' : 'normal' : undefined,
|
19046
|
-
enableHorizontalArrowKeyNavigation: table3.meta.editing.isEditing
|
19047
|
-
onBlur: handleBlur
|
19145
|
+
enableHorizontalArrowKeyNavigation: table3.meta.editing.isEditing
|
19048
19146
|
};
|
19049
19147
|
const hasValidationErrors = table3.meta.editing.hasErrors(table3.instance, table3.ref);
|
19050
19148
|
return /*#__PURE__*/React__default.createElement(Table, null, /*#__PURE__*/React__default.createElement(Table.Toolbar, {
|