@difizen/libro-search 0.2.10 → 0.2.11
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":"libro-search-view.d.ts","sourceRoot":"","sources":["../src/libro-search-view.tsx"],"names":[],"mappings":";AAQA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,qBAAqB,CAAC;AACrD,OAAO,EAAE,eAAe,EAAE,MAAM,qBAAqB,CAAC;AAEtD,OAAO,EAAE,QAAQ,EAAsB,MAAM,mBAAmB,CAAC;AAIjE,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,kBAAkB,CAAC;AAC5D,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,eAAe,CAAC;AAI9C,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,4BAA4B,CAAC;AACtE,OAAO,EAAE,0BAA0B,EAAE,MAAM,4BAA4B,CAAC;AACxE,OAAO,EAAE,gBAAgB,EAAE,MAAM,yBAAyB,CAAC;AAM3D,eAAO,MAAM,aAAa,+CAYzB,CAAC;AAEF,eAAO,MAAM,WAAW,EAAE,KAAK,CAAC,EAgB/B,CAAC;AAEF,eAAO,MAAM,eAAe,0CAAoB,CAAC;AAEjD,eAAO,MAAM,aAAa,+
|
|
1
|
+
{"version":3,"file":"libro-search-view.d.ts","sourceRoot":"","sources":["../src/libro-search-view.tsx"],"names":[],"mappings":";AAQA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,qBAAqB,CAAC;AACrD,OAAO,EAAE,eAAe,EAAE,MAAM,qBAAqB,CAAC;AAEtD,OAAO,EAAE,QAAQ,EAAsB,MAAM,mBAAmB,CAAC;AAIjE,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,kBAAkB,CAAC;AAC5D,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,eAAe,CAAC;AAI9C,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,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,cAAc,aAGZ;IAEF,IAAI,aAEF;IAEF,QAAQ,aAEN;IAEF,sBAAsB,MAAO,mBAAmB,UAI9C;IAEF,OAAO,aAEL;IACF,UAAU,aAER;IACF,YAAY,aAMV;IACF,eAAe,eAUb;IAEF,SAAS,YAAmB,OAAO,mBAMjC;IAEF,aAAa,MAAO,aAAa,UAqB/B;IAEF,gBAAgB,MAAO,MAAM,WAAW,CAAC,gBAAgB,CAAC,UAKxD;IAEF,mBAAmB,MAAO,MAAM,WAAW,CAAC,gBAAgB,CAAC,UAE3D;CACH"}
|
package/es/libro-search-view.js
CHANGED
|
@@ -104,12 +104,6 @@ export var SearchContent = function SearchContent() {
|
|
|
104
104
|
onChange: instance.handleFindChange,
|
|
105
105
|
size: "small",
|
|
106
106
|
placeholder: "\u641C\u7D22",
|
|
107
|
-
onFocus: function onFocus() {
|
|
108
|
-
instance.hasFocus = true;
|
|
109
|
-
},
|
|
110
|
-
onBlur: function onBlur() {
|
|
111
|
-
instance.hasFocus = false;
|
|
112
|
-
},
|
|
113
107
|
suffix: /*#__PURE__*/_jsxs("span", {
|
|
114
108
|
className: "libro-search-input-suffix",
|
|
115
109
|
children: [/*#__PURE__*/_jsx(IconFont, {
|
|
@@ -315,10 +309,12 @@ export var LibroSearchView = (_dec = transient(), _dec2 = view('libro-search-vie
|
|
|
315
309
|
}
|
|
316
310
|
};
|
|
317
311
|
_this.onFocus = function () {
|
|
312
|
+
_this.hasFocus = true;
|
|
318
313
|
_this.contextKey.disableCommandMode();
|
|
319
314
|
};
|
|
320
315
|
_this.onBlur = function (e) {
|
|
321
316
|
var _this$libro2;
|
|
317
|
+
_this.hasFocus = false;
|
|
322
318
|
if ((_this$libro2 = _this.libro) !== null && _this$libro2 !== void 0 && (_this$libro2 = _this$libro2.container) !== null && _this$libro2 !== void 0 && (_this$libro2 = _this$libro2.current) !== null && _this$libro2 !== void 0 && _this$libro2.contains(e.relatedTarget)) {
|
|
323
319
|
_this.contextKey.enableCommandMode();
|
|
324
320
|
}
|
|
@@ -362,7 +358,7 @@ export var LibroSearchView = (_dec = transient(), _dec2 = view('libro-search-vie
|
|
|
362
358
|
_this.toggleReplace = function () {
|
|
363
359
|
if (_this.searchProvider) {
|
|
364
360
|
_this.searchProvider.replaceMode = !_this.replaceVisible;
|
|
365
|
-
_this.search();
|
|
361
|
+
_this.search(false);
|
|
366
362
|
}
|
|
367
363
|
};
|
|
368
364
|
_this.toggleSetting = function () {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@difizen/libro-search",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.11",
|
|
4
4
|
"description": "",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"libro",
|
|
@@ -36,9 +36,9 @@
|
|
|
36
36
|
"@difizen/mana-app": "latest",
|
|
37
37
|
"@difizen/mana-l10n": "latest",
|
|
38
38
|
"@ant-design/icons": "^5.1.0",
|
|
39
|
-
"@difizen/libro-common": "^0.2.
|
|
40
|
-
"@difizen/libro-core": "^0.2.
|
|
41
|
-
"@difizen/libro-code-editor": "^0.2.
|
|
39
|
+
"@difizen/libro-common": "^0.2.11",
|
|
40
|
+
"@difizen/libro-core": "^0.2.11",
|
|
41
|
+
"@difizen/libro-code-editor": "^0.2.11",
|
|
42
42
|
"@types/lodash.debounce": "^4.0.7",
|
|
43
43
|
"classnames": "^2.3.2",
|
|
44
44
|
"lodash.debounce": "^4.0.8",
|
|
@@ -102,12 +102,6 @@ export const SearchContent = () => {
|
|
|
102
102
|
onChange={instance.handleFindChange}
|
|
103
103
|
size="small"
|
|
104
104
|
placeholder="搜索"
|
|
105
|
-
onFocus={() => {
|
|
106
|
-
instance.hasFocus = true;
|
|
107
|
-
}}
|
|
108
|
-
onBlur={() => {
|
|
109
|
-
instance.hasFocus = false;
|
|
110
|
-
}}
|
|
111
105
|
suffix={
|
|
112
106
|
<span className="libro-search-input-suffix">
|
|
113
107
|
<IconFont
|
|
@@ -334,10 +328,12 @@ export class LibroSearchView extends BaseView {
|
|
|
334
328
|
};
|
|
335
329
|
|
|
336
330
|
onFocus = () => {
|
|
331
|
+
this.hasFocus = true;
|
|
337
332
|
this.contextKey.disableCommandMode();
|
|
338
333
|
};
|
|
339
334
|
|
|
340
335
|
onBlur = (e: React.FocusEvent<HTMLDivElement>) => {
|
|
336
|
+
this.hasFocus = false;
|
|
341
337
|
if (this.libro?.container?.current?.contains(e.relatedTarget)) {
|
|
342
338
|
this.contextKey.enableCommandMode();
|
|
343
339
|
}
|
|
@@ -363,7 +359,7 @@ export class LibroSearchView extends BaseView {
|
|
|
363
359
|
toggleReplace = () => {
|
|
364
360
|
if (this.searchProvider) {
|
|
365
361
|
this.searchProvider.replaceMode = !this.replaceVisible;
|
|
366
|
-
this.search();
|
|
362
|
+
this.search(false);
|
|
367
363
|
}
|
|
368
364
|
};
|
|
369
365
|
|