pixel-react 1.13.62 → 1.13.63
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/lib/_virtual/index11.js +2 -2
- package/lib/_virtual/index9.js +2 -2
- package/lib/components/EditLabel/EditLabel.js +25 -0
- package/lib/components/EditLabel/EditLabel.js.map +1 -1
- package/lib/components/Excel/ExcelFile/ExcelFileComponents/reducer.js +4 -6
- package/lib/components/Excel/ExcelFile/ExcelFileComponents/reducer.js.map +1 -1
- package/lib/components/Excel/ExcelFile/ExcelFileComponents/util.d.ts +1 -1
- package/lib/components/Excel/ExcelFile/ExcelFileComponents/util.js +4 -3
- package/lib/components/Excel/ExcelFile/ExcelFileComponents/util.js.map +1 -1
- package/lib/components/Search/Search.js +1 -1
- package/lib/components/Search/Search.js.map +1 -1
- package/lib/components/Table/Table.d.ts +1 -1
- package/lib/components/Table/Table.js +5 -1
- package/lib/components/Table/Table.js.map +1 -1
- package/lib/components/Table/Types.d.ts +4 -0
- package/lib/index.cjs +42 -9
- package/lib/index.cjs.map +1 -1
- package/lib/index.d.ts +8 -2
- package/lib/index.js +1 -1
- package/lib/node_modules/js-beautify/js/src/css/beautifier.js +1 -1
- package/lib/node_modules/js-beautify/js/src/css/index.js +1 -1
- package/lib/node_modules/js-beautify/js/src/html/tokenizer.js +1 -1
- package/lib/node_modules/js-beautify/js/src/javascript/beautifier.js +1 -1
- package/lib/node_modules/js-beautify/js/src/javascript/index.js +1 -1
- package/lib/node_modules/js-beautify/js/src/javascript/tokenizer.js +1 -1
- package/lib/styles.css +1 -1
- package/lib/styles.css.map +1 -1
- package/lib/validations/regex.d.ts +2 -1
- package/lib/validations/regex.js +4 -1
- package/lib/validations/regex.js.map +1 -1
- package/package.json +1 -1
package/lib/index.cjs
CHANGED
@@ -2484,6 +2484,7 @@ const FILE_NAME_REGEX = /\.([^.@]+)$/;
|
|
2484
2484
|
const ELEMENTS_TRAILING_SPACE_REGEX = /^\S.*\S$/;
|
2485
2485
|
const ELEMENTS_WHITE_SPACE_REGEX = /.*\S.*/;
|
2486
2486
|
const PARAMETER_ALPHANUMERIC_REGEX = /^[-_A-Za-z0-9 ]*$|^[-_A-Za-z0-9 ][A-Za-z0-9 ]*[-_A-Za-z-_]$/;
|
2487
|
+
const ALPHANUMERIC_PARENTHESIS_REGEX = /^[-_A-Za-z0-9 ()]*$|^[-_A-Za-z0-9 ()][A-Za-z0-9 ()]*[-_A-Za-z-()]$/;
|
2487
2488
|
const STRIP_NEW_LINES_REGEX = /\n/g;
|
2488
2489
|
//Regular expression to convert lower camel case by excluding spaces
|
2489
2490
|
const CAMEL_CASE_REGEX = /(?:^\w|[A-Z]|\b\w|\s+)/g;
|
@@ -2530,6 +2531,8 @@ const LINK_VALIDATION_REGEX = /^(https?:\/\/)?((?!.*\.\.)[\da-z.-]+)\.([\da-z.-]
|
|
2530
2531
|
// Alphanumeric Validation with specific Order including special characters (- , _ , ( , ) )
|
2531
2532
|
const ALPHA_NUM_EXTENDED_REGEX = /^[a-zA-Z0-9 _\-()]+$/;
|
2532
2533
|
// Alphanumeric string allowing only dot(.) as special character
|
2534
|
+
const ALPHANUMERIC_WITH_DOT_REGEX = /^[A-Za-z0-9.]+$/;
|
2535
|
+
// Alphanumeric string allowing only dot(.) as special character
|
2533
2536
|
const EXCEL_SPACING_REGEX = /[\n\t"]/;
|
2534
2537
|
|
2535
2538
|
const Dropdown$2 = /*#__PURE__*/React.forwardRef(({
|
@@ -9839,7 +9842,8 @@ const Table$1 = ({
|
|
9839
9842
|
columnSticky = false,
|
9840
9843
|
tableRef = null,
|
9841
9844
|
isRowCheckBoxDisable,
|
9842
|
-
isRowDisabled = true
|
9845
|
+
isRowDisabled = true,
|
9846
|
+
tableHeaderZindex = 99
|
9843
9847
|
}) => {
|
9844
9848
|
const observerRef = React.useRef(null);
|
9845
9849
|
React.useEffect(() => {
|
@@ -9922,6 +9926,9 @@ const Table$1 = ({
|
|
9922
9926
|
className: classNames({
|
9923
9927
|
'ff-fixed-header': withFixedHeader
|
9924
9928
|
}, tableHeadClass),
|
9929
|
+
style: {
|
9930
|
+
zIndex: tableHeaderZindex
|
9931
|
+
},
|
9925
9932
|
children: jsxRuntime.jsx("tr", {
|
9926
9933
|
children: columns.map((column, index) => jsxRuntime.jsxs("th", {
|
9927
9934
|
className: classNames(`${headerType !== 'default' ? `${headerType}-bg` : ''}`, `${headerTextColor && `${headerTextColor}-color`}`, {
|
@@ -16604,6 +16611,31 @@ const EditLabel = ({
|
|
16604
16611
|
return '';
|
16605
16612
|
}
|
16606
16613
|
};
|
16614
|
+
const getScrollableParent = element => {
|
16615
|
+
if (!element) return window;
|
16616
|
+
let parent = element.parentElement;
|
16617
|
+
while (parent) {
|
16618
|
+
const overflowY = window.getComputedStyle(parent).overflowY;
|
16619
|
+
if (overflowY === 'auto' || overflowY === 'scroll') {
|
16620
|
+
return parent;
|
16621
|
+
}
|
16622
|
+
parent = parent.parentElement;
|
16623
|
+
}
|
16624
|
+
return window;
|
16625
|
+
};
|
16626
|
+
React.useEffect(() => {
|
16627
|
+
if (!containerRef.current) return;
|
16628
|
+
const scrollableParent = getScrollableParent(containerRef.current);
|
16629
|
+
const handleScroll = () => {
|
16630
|
+
handleCancel();
|
16631
|
+
};
|
16632
|
+
scrollableParent.addEventListener('scroll', handleScroll, {
|
16633
|
+
passive: true
|
16634
|
+
});
|
16635
|
+
return () => {
|
16636
|
+
scrollableParent.removeEventListener('scroll', handleScroll);
|
16637
|
+
};
|
16638
|
+
}, []);
|
16607
16639
|
React.useEffect(() => {
|
16608
16640
|
if (value) {
|
16609
16641
|
setText(value);
|
@@ -17522,7 +17554,7 @@ const Search = ({
|
|
17522
17554
|
onClose,
|
17523
17555
|
onExpand,
|
17524
17556
|
showClose = true,
|
17525
|
-
helperText = 'Minimum 3 characters
|
17557
|
+
helperText = 'Minimum 3 characters required',
|
17526
17558
|
showToaster = true,
|
17527
17559
|
minLength = 3,
|
17528
17560
|
isAISearch = false,
|
@@ -36171,8 +36203,9 @@ const fontFamilyList = [{
|
|
36171
36203
|
value: 'monospace'
|
36172
36204
|
}];
|
36173
36205
|
const fontSizeList = [5, 6, 8, 9, 10, 12, 14, 16, 18, 20, 22, 24, 26, 28, 32, 36, 40, 48, 56, 72];
|
36174
|
-
const
|
36175
|
-
|
36206
|
+
const isPasteAllowed = currentCell => {
|
36207
|
+
const inputType = currentCell?.inputType?.type ?? 'text';
|
36208
|
+
return !['dropDown', 'file'].includes(inputType) && !currentCell?.readOnly;
|
36176
36209
|
};
|
36177
36210
|
|
36178
36211
|
const FORMULA_VALUE_PREFIX = '=';
|
@@ -37828,7 +37861,7 @@ function reducer(state, action) {
|
|
37828
37861
|
let newData = state.cut && state.copied ? unset(state.copied.start, state.model.data) : state.model.data;
|
37829
37862
|
const commit = [];
|
37830
37863
|
for (const point of selectedRange || []) {
|
37831
|
-
const currentCell = get(point, state.model.data);
|
37864
|
+
const currentCell = get(point, state.model.data) || null;
|
37832
37865
|
const updateWithStyle = {
|
37833
37866
|
...currentCell,
|
37834
37867
|
value: cell?.value
|
@@ -37837,8 +37870,7 @@ function reducer(state, action) {
|
|
37837
37870
|
prevCell: currentCell || EmptyCell,
|
37838
37871
|
nextCell: EmptyCell
|
37839
37872
|
});
|
37840
|
-
|
37841
|
-
if (allowTextType(inputType)) {
|
37873
|
+
if (isPasteAllowed(currentCell)) {
|
37842
37874
|
newData = set(point, updateWithStyle, newData);
|
37843
37875
|
}
|
37844
37876
|
}
|
@@ -37892,8 +37924,7 @@ function reducer(state, action) {
|
|
37892
37924
|
prevCell: currentCell,
|
37893
37925
|
nextCell: cell || null
|
37894
37926
|
}];
|
37895
|
-
|
37896
|
-
if (allowTextType(inputType)) {
|
37927
|
+
if (isPasteAllowed(currentCell)) {
|
37897
37928
|
acc.data = set(nextPoint, {
|
37898
37929
|
...currentCell,
|
37899
37930
|
value: cell?.value ?? ''
|
@@ -109990,7 +110021,9 @@ const ScriptGenerationLoader = ({
|
|
109990
110021
|
|
109991
110022
|
exports.AADHAAR_REGEX = AADHAAR_REGEX;
|
109992
110023
|
exports.ALPHABET_ONLY_REGEX = ALPHABET_ONLY_REGEX;
|
110024
|
+
exports.ALPHANUMERIC_PARENTHESIS_REGEX = ALPHANUMERIC_PARENTHESIS_REGEX;
|
109993
110025
|
exports.ALPHANUMERIC_REGEX = ALPHANUMERIC_REGEX;
|
110026
|
+
exports.ALPHANUMERIC_WITH_DOT_REGEX = ALPHANUMERIC_WITH_DOT_REGEX;
|
109994
110027
|
exports.ALPHANUMERIC_WITH_ROUND_BRACES_REGEX = ALPHANUMERIC_WITH_ROUND_BRACES_REGEX;
|
109995
110028
|
exports.ALPHA_NUM_EXTENDED_REGEX = ALPHA_NUM_EXTENDED_REGEX;
|
109996
110029
|
exports.ALPHA_NUM_REGEX = ALPHA_NUM_REGEX;
|