@oliasoft-open-source/react-ui-library 3.11.0-beta-10 → 3.11.0-beta-12
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/global.css +114 -109
- package/dist/index.js +145 -148
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -59110,19 +59110,19 @@ Spacer.propTypes = {
|
|
|
59110
59110
|
width: propTypes$1.exports.oneOfType([propTypes$1.exports.string, propTypes$1.exports.number]),
|
|
59111
59111
|
flex: propTypes$1.exports.bool
|
|
59112
59112
|
};
|
|
59113
|
-
const inputInTable$2 = "
|
|
59114
|
-
const inputHover$2 = "
|
|
59115
|
-
const inputFocus$2 = "
|
|
59116
|
-
const inputError$2 = "
|
|
59117
|
-
const inputWarning$2 = "
|
|
59118
|
-
const inputDisabled$2 = "
|
|
59119
|
-
const hideScrollbars$2 = "
|
|
59120
|
-
const scrollbars$2 = "
|
|
59121
|
-
const wrapper = "
|
|
59122
|
-
const bordered = "
|
|
59123
|
-
const scroll2 = "
|
|
59124
|
-
const table = "
|
|
59125
|
-
const striped = "
|
|
59113
|
+
const inputInTable$2 = "_inputInTable_gwun7_337";
|
|
59114
|
+
const inputHover$2 = "_inputHover_gwun7_346";
|
|
59115
|
+
const inputFocus$2 = "_inputFocus_gwun7_351";
|
|
59116
|
+
const inputError$2 = "_inputError_gwun7_358";
|
|
59117
|
+
const inputWarning$2 = "_inputWarning_gwun7_359";
|
|
59118
|
+
const inputDisabled$2 = "_inputDisabled_gwun7_394";
|
|
59119
|
+
const hideScrollbars$2 = "_hideScrollbars_gwun7_399";
|
|
59120
|
+
const scrollbars$2 = "_scrollbars_gwun7_409";
|
|
59121
|
+
const wrapper = "_wrapper_gwun7_446";
|
|
59122
|
+
const bordered = "_bordered_gwun7_454";
|
|
59123
|
+
const scroll2 = "_scroll_gwun7_409";
|
|
59124
|
+
const table = "_table_gwun7_468";
|
|
59125
|
+
const striped = "_striped_gwun7_548";
|
|
59126
59126
|
const styles$a = {
|
|
59127
59127
|
inputInTable: inputInTable$2,
|
|
59128
59128
|
inputHover: inputHover$2,
|
|
@@ -59260,37 +59260,37 @@ function CgSortAz(props) {
|
|
|
59260
59260
|
function CgSortZa(props) {
|
|
59261
59261
|
return GenIcon({ "tag": "svg", "attr": { "viewBox": "0 0 24 24", "fill": "none" }, "child": [{ "tag": "path", "attr": { "d": "M6 16C6 16.5523 6.44772 17 7 17H17C17.5523 17 18 16.5523 18 16C18 15.4477 17.5523 15 17 15H7C6.44772 15 6 15.4477 6 16Z", "fill": "currentColor" } }, { "tag": "path", "attr": { "d": "M8 12C8 12.5523 8.44772 13 9 13H15C15.5523 13 16 12.5523 16 12C16 11.4477 15.5523 11 15 11H9C8.44772 11 8 11.4477 8 12Z", "fill": "currentColor" } }, { "tag": "path", "attr": { "d": "M11 9C10.4477 9 10 8.55229 10 8C10 7.44771 10.4477 7 11 7H13C13.5523 7 14 7.44771 14 8C14 8.55229 13.5523 9 13 9H11Z", "fill": "currentColor" } }] })(props);
|
|
59262
59262
|
}
|
|
59263
|
-
const inputInTable$1 = "
|
|
59264
|
-
const inputHover$1 = "
|
|
59265
|
-
const inputFocus$1 = "
|
|
59266
|
-
const inputError$1 = "
|
|
59267
|
-
const inputWarning$1 = "
|
|
59268
|
-
const inputDisabled$1 = "
|
|
59269
|
-
const hideScrollbars$1 = "
|
|
59270
|
-
const scrollbars$1 = "
|
|
59271
|
-
const cell = "
|
|
59272
|
-
const disabledLink = "
|
|
59273
|
-
const inputWrapper = "
|
|
59274
|
-
const breakWord = "
|
|
59275
|
-
const inputCell = "
|
|
59276
|
-
const sliderCell = "
|
|
59277
|
-
const staticCell = "
|
|
59278
|
-
const staticCellContent = "
|
|
59279
|
-
const error$1 = "
|
|
59280
|
-
const warning$2 = "
|
|
59281
|
-
const unit = "
|
|
59282
|
-
const sortingCell = "
|
|
59283
|
-
const sortingCellIcon = "
|
|
59284
|
-
const icon = "
|
|
59285
|
-
const checkBoxCell = "
|
|
59286
|
-
const iconCell = "
|
|
59287
|
-
const iconWrapper = "
|
|
59288
|
-
const actionsCell = "
|
|
59289
|
-
const rightAligned = "
|
|
59290
|
-
const centerAligned = "
|
|
59291
|
-
const leftAligned = "
|
|
59292
|
-
const popover = "
|
|
59293
|
-
const disabledPointerEvents = "
|
|
59263
|
+
const inputInTable$1 = "_inputInTable_18of2_337";
|
|
59264
|
+
const inputHover$1 = "_inputHover_18of2_346";
|
|
59265
|
+
const inputFocus$1 = "_inputFocus_18of2_351";
|
|
59266
|
+
const inputError$1 = "_inputError_18of2_358";
|
|
59267
|
+
const inputWarning$1 = "_inputWarning_18of2_359";
|
|
59268
|
+
const inputDisabled$1 = "_inputDisabled_18of2_394";
|
|
59269
|
+
const hideScrollbars$1 = "_hideScrollbars_18of2_399";
|
|
59270
|
+
const scrollbars$1 = "_scrollbars_18of2_409";
|
|
59271
|
+
const cell = "_cell_18of2_436";
|
|
59272
|
+
const disabledLink = "_disabledLink_18of2_446";
|
|
59273
|
+
const inputWrapper = "_inputWrapper_18of2_450";
|
|
59274
|
+
const breakWord = "_breakWord_18of2_465";
|
|
59275
|
+
const inputCell = "_inputCell_18of2_468";
|
|
59276
|
+
const sliderCell = "_sliderCell_18of2_471";
|
|
59277
|
+
const staticCell = "_staticCell_18of2_475";
|
|
59278
|
+
const staticCellContent = "_staticCellContent_18of2_478";
|
|
59279
|
+
const error$1 = "_error_18of2_491";
|
|
59280
|
+
const warning$2 = "_warning_18of2_492";
|
|
59281
|
+
const unit = "_unit_18of2_501";
|
|
59282
|
+
const sortingCell = "_sortingCell_18of2_504";
|
|
59283
|
+
const sortingCellIcon = "_sortingCellIcon_18of2_512";
|
|
59284
|
+
const icon = "_icon_18of2_519";
|
|
59285
|
+
const checkBoxCell = "_checkBoxCell_18of2_523";
|
|
59286
|
+
const iconCell = "_iconCell_18of2_527";
|
|
59287
|
+
const iconWrapper = "_iconWrapper_18of2_532";
|
|
59288
|
+
const actionsCell = "_actionsCell_18of2_536";
|
|
59289
|
+
const rightAligned = "_rightAligned_18of2_544";
|
|
59290
|
+
const centerAligned = "_centerAligned_18of2_550";
|
|
59291
|
+
const leftAligned = "_leftAligned_18of2_556";
|
|
59292
|
+
const popover = "_popover_18of2_559";
|
|
59293
|
+
const disabledPointerEvents = "_disabledPointerEvents_18of2_562";
|
|
59294
59294
|
const styles$7 = {
|
|
59295
59295
|
inputInTable: inputInTable$1,
|
|
59296
59296
|
inputHover: inputHover$1,
|
|
@@ -59454,7 +59454,7 @@ const getCellAlignment = (alignment, styles2, isGetText = false) => {
|
|
|
59454
59454
|
const left2 = "left";
|
|
59455
59455
|
const right2 = "right";
|
|
59456
59456
|
const center2 = "center";
|
|
59457
|
-
const cellAlignment = isHeader ? headerAlignment : bodyAlignment;
|
|
59457
|
+
const cellAlignment = isHeader && headerAlignment ? headerAlignment : bodyAlignment;
|
|
59458
59458
|
switch (cellAlignment) {
|
|
59459
59459
|
case left2: {
|
|
59460
59460
|
return isGetText ? left2 : styles2.leftAligned;
|
|
@@ -59488,107 +59488,95 @@ const getHeaderAlignment = (alignments, isHeader, rowIndex) => {
|
|
|
59488
59488
|
};
|
|
59489
59489
|
const NumberInputCell = (props) => {
|
|
59490
59490
|
const { cell: cell2, testId } = props;
|
|
59491
|
-
return /* @__PURE__ */ jsxRuntime.exports.jsx(
|
|
59492
|
-
|
|
59493
|
-
|
|
59494
|
-
|
|
59495
|
-
|
|
59496
|
-
|
|
59497
|
-
|
|
59498
|
-
|
|
59499
|
-
|
|
59500
|
-
|
|
59501
|
-
|
|
59502
|
-
|
|
59503
|
-
|
|
59504
|
-
|
|
59505
|
-
|
|
59506
|
-
validationCallback: cell2.validationCallback,
|
|
59507
|
-
allowEmpty: cell2.allowEmpty
|
|
59508
|
-
})
|
|
59491
|
+
return /* @__PURE__ */ jsxRuntime.exports.jsx(NumberInput, {
|
|
59492
|
+
name: cell2.name,
|
|
59493
|
+
value: cell2.value,
|
|
59494
|
+
onChange: (ev) => cell2.onChange(ev),
|
|
59495
|
+
placeholder: cell2.placeholder,
|
|
59496
|
+
error: cell2.error,
|
|
59497
|
+
warning: cell2.warning,
|
|
59498
|
+
disabled: cell2.disabled,
|
|
59499
|
+
isInTable: true,
|
|
59500
|
+
left: cell2.left,
|
|
59501
|
+
testId,
|
|
59502
|
+
tabIndex: cell2.disabled ? -1 : 0,
|
|
59503
|
+
tooltip: cell2.tooltip,
|
|
59504
|
+
validationCallback: cell2.validationCallback,
|
|
59505
|
+
allowEmpty: cell2.allowEmpty
|
|
59509
59506
|
});
|
|
59510
59507
|
};
|
|
59511
59508
|
const InputCell = (props) => {
|
|
59512
59509
|
const { cell: cell2, columnAlignment, testId } = props;
|
|
59513
|
-
return /* @__PURE__ */ jsxRuntime.exports.jsx(
|
|
59514
|
-
|
|
59515
|
-
|
|
59516
|
-
|
|
59517
|
-
|
|
59518
|
-
|
|
59519
|
-
|
|
59520
|
-
|
|
59521
|
-
|
|
59522
|
-
|
|
59523
|
-
|
|
59524
|
-
|
|
59525
|
-
|
|
59526
|
-
|
|
59527
|
-
tabIndex: cell2.disabled ? -1 : 0,
|
|
59528
|
-
tooltip: cell2.tooltip
|
|
59529
|
-
})
|
|
59510
|
+
return /* @__PURE__ */ jsxRuntime.exports.jsx(Input$1, {
|
|
59511
|
+
name: cell2.name,
|
|
59512
|
+
value: cell2.value,
|
|
59513
|
+
onChange: (ev) => cell2.onChange(ev),
|
|
59514
|
+
placeholder: cell2.placeholder,
|
|
59515
|
+
error: cell2.error,
|
|
59516
|
+
warning: cell2.warning,
|
|
59517
|
+
disabled: cell2.disabled,
|
|
59518
|
+
isInTable: true,
|
|
59519
|
+
maxTooltipWidth: cell2.maxTooltipWidth,
|
|
59520
|
+
right: columnAlignment === "right",
|
|
59521
|
+
testId,
|
|
59522
|
+
tabIndex: cell2.disabled ? -1 : 0,
|
|
59523
|
+
tooltip: cell2.tooltip
|
|
59530
59524
|
});
|
|
59531
59525
|
};
|
|
59532
59526
|
const SelectCell = (props) => {
|
|
59533
59527
|
const { cell: cell2, columnAlignment, testId } = props;
|
|
59534
|
-
return /* @__PURE__ */ jsxRuntime.exports.jsx(
|
|
59535
|
-
|
|
59536
|
-
|
|
59537
|
-
|
|
59538
|
-
|
|
59539
|
-
|
|
59540
|
-
|
|
59541
|
-
|
|
59542
|
-
|
|
59543
|
-
|
|
59544
|
-
|
|
59545
|
-
|
|
59546
|
-
|
|
59547
|
-
|
|
59548
|
-
|
|
59549
|
-
|
|
59550
|
-
|
|
59551
|
-
|
|
59552
|
-
|
|
59553
|
-
|
|
59554
|
-
|
|
59555
|
-
|
|
59556
|
-
|
|
59557
|
-
testId,
|
|
59558
|
-
tabIndex: cell2.disabled ? -1 : 0
|
|
59559
|
-
})
|
|
59528
|
+
return /* @__PURE__ */ jsxRuntime.exports.jsx(Select, {
|
|
59529
|
+
name: cell2.name,
|
|
59530
|
+
borderRadius: 0,
|
|
59531
|
+
menu: cell2.menu,
|
|
59532
|
+
options: cell2.options,
|
|
59533
|
+
onChange: (ev) => cell2.onChange(ev),
|
|
59534
|
+
onCreate: cell2.onCreate ? (ev) => cell2.onCreate(ev) : void 0,
|
|
59535
|
+
error: cell2.error,
|
|
59536
|
+
warning: cell2.warning,
|
|
59537
|
+
disabled: cell2.disabled,
|
|
59538
|
+
placeholder: cell2.placeholder,
|
|
59539
|
+
isInTable: true,
|
|
59540
|
+
value: cell2.value,
|
|
59541
|
+
native: cell2.native,
|
|
59542
|
+
clearable: cell2.clearable,
|
|
59543
|
+
searchable: cell2.searchable,
|
|
59544
|
+
deprecatedEventHandler: cell2.deprecatedEventHandler,
|
|
59545
|
+
maxTooltipWidth: cell2.maxTooltipWidth,
|
|
59546
|
+
width: "100%",
|
|
59547
|
+
autoLayerWidth: cell2.autoLayerWidth,
|
|
59548
|
+
right: columnAlignment === "right",
|
|
59549
|
+
testId,
|
|
59550
|
+
tabIndex: cell2.disabled ? -1 : 0
|
|
59560
59551
|
});
|
|
59561
59552
|
};
|
|
59562
59553
|
const LinkCell = (props) => {
|
|
59563
59554
|
const disabledContext = useContext(DisabledContext);
|
|
59564
59555
|
const { cell: cell2, testId } = props;
|
|
59565
59556
|
const { error: error2, warning: warning2, tooltip: tooltip2, maxTooltipWidth } = cell2;
|
|
59566
|
-
return /* @__PURE__ */ jsxRuntime.exports.jsx(
|
|
59567
|
-
|
|
59568
|
-
|
|
59569
|
-
|
|
59570
|
-
|
|
59571
|
-
|
|
59572
|
-
|
|
59573
|
-
|
|
59574
|
-
|
|
59575
|
-
|
|
59557
|
+
return /* @__PURE__ */ jsxRuntime.exports.jsx(Tooltip, {
|
|
59558
|
+
error: !!error2,
|
|
59559
|
+
warning: !!warning2,
|
|
59560
|
+
text: tooltip2 || error2 || warning2,
|
|
59561
|
+
enabled: tooltip2 && isStringNumberOrNode(tooltip2) || error2 && isStringNumberOrNode(error2) || warning2 && isStringNumberOrNode(warning2) || false,
|
|
59562
|
+
maxWidth: maxTooltipWidth,
|
|
59563
|
+
placement: "bottom-center",
|
|
59564
|
+
children: /* @__PURE__ */ jsxRuntime.exports.jsx("div", {
|
|
59565
|
+
className: cx$2(
|
|
59566
|
+
styles$7.staticCellContent,
|
|
59567
|
+
error2 ? styles$7.error : warning2 ? styles$7.warning : ""
|
|
59568
|
+
),
|
|
59569
|
+
children: /* @__PURE__ */ jsxRuntime.exports.jsx("a", {
|
|
59576
59570
|
className: cx$2(
|
|
59577
|
-
styles$7.
|
|
59578
|
-
error2 ? styles$7.error : warning2 ? styles$7.warning : ""
|
|
59571
|
+
(cell2.disabled || disabledContext) && styles$7.disabledLink
|
|
59579
59572
|
),
|
|
59580
|
-
|
|
59581
|
-
|
|
59582
|
-
|
|
59583
|
-
)
|
|
59584
|
-
|
|
59585
|
-
|
|
59586
|
-
|
|
59587
|
-
cell2.onClick(evt);
|
|
59588
|
-
},
|
|
59589
|
-
"data-testid": testId,
|
|
59590
|
-
children: cell2.value
|
|
59591
|
-
})
|
|
59573
|
+
onClick: cell2.disabled || disabledContext ? () => {
|
|
59574
|
+
} : (evt) => {
|
|
59575
|
+
evt.stopPropagation();
|
|
59576
|
+
cell2.onClick(evt);
|
|
59577
|
+
},
|
|
59578
|
+
"data-testid": testId,
|
|
59579
|
+
children: cell2.value
|
|
59592
59580
|
})
|
|
59593
59581
|
})
|
|
59594
59582
|
});
|
|
@@ -59741,24 +59729,33 @@ const PopoverCell = (props) => {
|
|
|
59741
59729
|
})
|
|
59742
59730
|
});
|
|
59743
59731
|
};
|
|
59732
|
+
const InputCellWrapper = (props) => {
|
|
59733
|
+
const { cell: cell2, columnAlignment, testId } = props;
|
|
59734
|
+
return /* @__PURE__ */ jsxRuntime.exports.jsx("div", {
|
|
59735
|
+
className: styles$7.inputWrapper,
|
|
59736
|
+
children: cell2.type === "Input" ? /* @__PURE__ */ jsxRuntime.exports.jsx(InputCell, {
|
|
59737
|
+
cell: cell2,
|
|
59738
|
+
columnAlignment,
|
|
59739
|
+
testId
|
|
59740
|
+
}) : cell2.type === "NumberInput" ? /* @__PURE__ */ jsxRuntime.exports.jsx(NumberInputCell, {
|
|
59741
|
+
cell: cell2,
|
|
59742
|
+
columnAlignment,
|
|
59743
|
+
testId
|
|
59744
|
+
}) : cell2.type === "Select" ? /* @__PURE__ */ jsxRuntime.exports.jsx(SelectCell, {
|
|
59745
|
+
cell: cell2,
|
|
59746
|
+
columnAlignment,
|
|
59747
|
+
testId
|
|
59748
|
+
}) : null
|
|
59749
|
+
});
|
|
59750
|
+
};
|
|
59744
59751
|
const CellWrapper = (props) => {
|
|
59745
59752
|
const { cell: cell2, isHeader, columnAlignment, testId } = props;
|
|
59746
59753
|
if (cell2) {
|
|
59747
59754
|
switch (cell2.type) {
|
|
59748
59755
|
case "Input":
|
|
59749
|
-
return /* @__PURE__ */ jsxRuntime.exports.jsx(InputCell, {
|
|
59750
|
-
cell: cell2,
|
|
59751
|
-
columnAlignment,
|
|
59752
|
-
testId
|
|
59753
|
-
});
|
|
59754
59756
|
case "NumberInput":
|
|
59755
|
-
return /* @__PURE__ */ jsxRuntime.exports.jsx(NumberInputCell, {
|
|
59756
|
-
cell: cell2,
|
|
59757
|
-
columnAlignment,
|
|
59758
|
-
testId
|
|
59759
|
-
});
|
|
59760
59757
|
case "Select":
|
|
59761
|
-
return /* @__PURE__ */ jsxRuntime.exports.jsx(
|
|
59758
|
+
return /* @__PURE__ */ jsxRuntime.exports.jsx(InputCellWrapper, {
|
|
59762
59759
|
cell: cell2,
|
|
59763
59760
|
columnAlignment,
|
|
59764
59761
|
testId
|
|
@@ -60075,13 +60072,13 @@ Cell.propTypes = {
|
|
|
60075
60072
|
cell: cellShape,
|
|
60076
60073
|
testId: propTypes$1.exports.string
|
|
60077
60074
|
};
|
|
60078
|
-
const clickableRow = "
|
|
60079
|
-
const hoverableRow = "
|
|
60080
|
-
const rowActive = "
|
|
60081
|
-
const expandableRow = "
|
|
60082
|
-
const flush2 = "
|
|
60083
|
-
const dragIconCell = "
|
|
60084
|
-
const dragIcon = "
|
|
60075
|
+
const clickableRow = "_clickableRow_1i409_337";
|
|
60076
|
+
const hoverableRow = "_hoverableRow_1i409_340";
|
|
60077
|
+
const rowActive = "_rowActive_1i409_340";
|
|
60078
|
+
const expandableRow = "_expandableRow_1i409_344";
|
|
60079
|
+
const flush2 = "_flush_1i409_344";
|
|
60080
|
+
const dragIconCell = "_dragIconCell_1i409_364";
|
|
60081
|
+
const dragIcon = "_dragIcon_1i409_364";
|
|
60085
60082
|
const styles$6 = {
|
|
60086
60083
|
clickableRow,
|
|
60087
60084
|
hoverableRow,
|