@danikokonn/yarik-frontend-lib 2.0.55-test → 2.0.57-test

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.
@@ -1 +1 @@
1
- {"version":3,"file":"RichFilterTextField.d.ts","sourceRoot":"","sources":["../../../src/components/RichFilterTextField/RichFilterTextField.tsx"],"names":[],"mappings":"AAAA,OAAO,KAMN,MAAM,OAAO,CAAC;AAUf,OAAO,wBAAwB,MAAM,4BAA4B,CAAC;AAMlE,QAAA,MAAM,mBAAmB,GAAI,4HAS1B,wBAAwB,sBA0O1B,CAAC;AAEF,eAAe,mBAAmB,CAAC"}
1
+ {"version":3,"file":"RichFilterTextField.d.ts","sourceRoot":"","sources":["../../../src/components/RichFilterTextField/RichFilterTextField.tsx"],"names":[],"mappings":"AAAA,OAAO,KAMN,MAAM,OAAO,CAAC;AAUf,OAAO,wBAAwB,MAAM,4BAA4B,CAAC;AAMlE,QAAA,MAAM,mBAAmB,GAAI,4HAS1B,wBAAwB,sBAiP1B,CAAC;AAEF,eAAe,mBAAmB,CAAC"}
@@ -146,11 +146,19 @@ const RichFilterTextField = ({ filterExpr, filterExprHist, fields, operators, ad
146
146
  }
147
147
  };
148
148
  return (React.createElement(React.Fragment, null,
149
- React.createElement(TextField, { ref: textFieldRef, inputRef: inputRef, fullWidth: true, size: "small", value: search, title: search, multiline: true, maxRows: 1, onChange: (e) => (instant ? handleChange : setSearch)(e.target.value), onClick: (e) => {
150
- if (e.target !== e.currentTarget)
151
- return;
152
- setCursorPos(inputRef.current?.selectionStart ?? null);
153
- }, onKeyUp: handleKeyUp, onKeyDown: handleKeyDown, slotProps: {
149
+ React.createElement(TextField, { ref: textFieldRef, inputRef: inputRef, fullWidth: true, size: "small", value: search, title: search, multiline: true, maxRows: 1, onChange: (e) => (instant ? handleChange : setSearch)(e.target.value),
150
+ // onClick={(e) => {
151
+ // if (e.target !== e.currentTarget) return;
152
+ // setCursorPos(inputRef.current?.selectionStart ?? null);
153
+ // }}
154
+ onKeyUp: handleKeyUp, onKeyDown: handleKeyDown, slotProps: {
155
+ root: {
156
+ onClick: (e) => {
157
+ if (Object(e).target !== Object(e).currentTarget)
158
+ return;
159
+ setCursorPos(inputRef.current?.selectionStart ?? null);
160
+ },
161
+ },
154
162
  input: {
155
163
  startAdornment: (React.createElement(InputAdornment, { position: "start" },
156
164
  React.createElement(Stack, { direction: "row", sx: { alignItems: "center" } },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@danikokonn/yarik-frontend-lib",
3
- "version": "2.0.55-test",
3
+ "version": "2.0.57-test",
4
4
  "license": "Apache-2.0",
5
5
  "description": "",
6
6
  "author": "",