@difizen/libro-search 0.1.30 → 0.1.31
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,6 +1,6 @@
|
|
|
1
1
|
import type { SearchMatch } from '@difizen/libro-code-editor';
|
|
2
2
|
import type { CellView, VirtualizedManager } from '@difizen/libro-core';
|
|
3
|
-
import { LibroView, VirtualizedManagerHelper,
|
|
3
|
+
import { LibroView, VirtualizedManagerHelper, LibroContextKey } from '@difizen/libro-core';
|
|
4
4
|
import { Deferred, DisposableCollection } from '@difizen/mana-app';
|
|
5
5
|
import { AbstractSearchProvider } from './abstract-search-provider.js';
|
|
6
6
|
import { LibroCellSearchProvider } from './libro-cell-search-provider.js';
|
|
@@ -13,7 +13,7 @@ export declare const LibroSearchProviderFactory: unique symbol;
|
|
|
13
13
|
* Libro view search provider
|
|
14
14
|
*/
|
|
15
15
|
export declare class LibroSearchProvider extends AbstractSearchProvider {
|
|
16
|
-
contextKey:
|
|
16
|
+
contextKey: LibroContextKey;
|
|
17
17
|
libroCellSearchProvider: LibroCellSearchProvider;
|
|
18
18
|
protected cellsChangeDeferred: Deferred<void> | undefined;
|
|
19
19
|
protected toDispose: DisposableCollection;
|
|
@@ -20,7 +20,7 @@ function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Re
|
|
|
20
20
|
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
21
21
|
function _applyDecoratedDescriptor(target, property, decorators, descriptor, context) { var desc = {}; Object.keys(descriptor).forEach(function (key) { desc[key] = descriptor[key]; }); desc.enumerable = !!desc.enumerable; desc.configurable = !!desc.configurable; if ('value' in desc || desc.initializer) { desc.writable = true; } desc = decorators.slice().reverse().reduce(function (desc, decorator) { return decorator(target, property, desc) || desc; }, desc); if (context && desc.initializer !== void 0) { desc.value = desc.initializer ? desc.initializer.call(context) : void 0; desc.initializer = undefined; } if (desc.initializer === void 0) { Object.defineProperty(target, property, desc); desc = null; } return desc; }
|
|
22
22
|
function _initializerWarningHelper(descriptor, context) { throw new Error('Decorating class property failed. Please ensure that ' + 'transform-class-properties is enabled and runs after the decorators transform.'); }
|
|
23
|
-
import { EditorCellView, LibroView, VirtualizedManagerHelper,
|
|
23
|
+
import { EditorCellView, LibroView, VirtualizedManagerHelper, LibroContextKey } from '@difizen/libro-core';
|
|
24
24
|
import { inject, prop, transient, equals } from '@difizen/mana-app';
|
|
25
25
|
import { Deferred, DisposableCollection } from '@difizen/mana-app';
|
|
26
26
|
import { l10n } from '@difizen/mana-l10n';
|
|
@@ -35,7 +35,7 @@ export var LibroSearchProviderFactory = Symbol('LibroSearchProviderFactory');
|
|
|
35
35
|
/**
|
|
36
36
|
* Libro view search provider
|
|
37
37
|
*/
|
|
38
|
-
export var LibroSearchProvider = (_dec = transient(), _dec2 = inject(
|
|
38
|
+
export var LibroSearchProvider = (_dec = transient(), _dec2 = inject(LibroContextKey), _dec3 = inject(LibroCellSearchProvider), _dec4 = prop(), _dec5 = prop(), _dec6 = prop(), _dec7 = prop(), _dec8 = prop(), _dec9 = prop(), _dec(_class = (_class2 = /*#__PURE__*/function (_AbstractSearchProvid) {
|
|
39
39
|
_inherits(LibroSearchProvider, _AbstractSearchProvid);
|
|
40
40
|
var _super = _createSuper(LibroSearchProvider);
|
|
41
41
|
/**
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/// <reference types="react" resolution-mode="require"/>
|
|
2
2
|
import type { LibroView } from '@difizen/libro-core';
|
|
3
|
-
import {
|
|
3
|
+
import { LibroContextKey } from '@difizen/libro-core';
|
|
4
4
|
import { BaseView } from '@difizen/mana-app';
|
|
5
5
|
import type { CheckboxChangeEvent } from 'antd/es/checkbox';
|
|
6
6
|
import type { InputRef } from 'antd/es/input';
|
|
@@ -14,7 +14,7 @@ export declare const SearchContent: () => import("react/jsx-runtime").JSX.Elemen
|
|
|
14
14
|
export declare const SearchComponent: import("react").ForwardRefExoticComponent<import("react").RefAttributes<HTMLDivElement>>;
|
|
15
15
|
export declare class LibroSearchView extends BaseView {
|
|
16
16
|
findInputRef?: React.RefObject<InputRef> | null;
|
|
17
|
-
contextKey:
|
|
17
|
+
contextKey: LibroContextKey;
|
|
18
18
|
utils: LibroSearchUtils;
|
|
19
19
|
searchProviderFactory: LibroSearchProviderFactory;
|
|
20
20
|
libro?: LibroView;
|
package/es/libro-search-view.js
CHANGED
|
@@ -19,7 +19,7 @@ function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.g
|
|
|
19
19
|
function _applyDecoratedDescriptor(target, property, decorators, descriptor, context) { var desc = {}; Object.keys(descriptor).forEach(function (key) { desc[key] = descriptor[key]; }); desc.enumerable = !!desc.enumerable; desc.configurable = !!desc.configurable; if ('value' in desc || desc.initializer) { desc.writable = true; } desc = decorators.slice().reverse().reduce(function (desc, decorator) { return decorator(target, property, desc) || desc; }, desc); if (context && desc.initializer !== void 0) { desc.value = desc.initializer ? desc.initializer.call(context) : void 0; desc.initializer = undefined; } if (desc.initializer === void 0) { Object.defineProperty(target, property, desc); desc = null; } return desc; }
|
|
20
20
|
function _initializerWarningHelper(descriptor, context) { throw new Error('Decorating class property failed. Please ensure that ' + 'transform-class-properties is enabled and runs after the decorators transform.'); }
|
|
21
21
|
import { ArrowDownOutlined, ArrowUpOutlined, CloseOutlined, createFromIconfontCN, EllipsisOutlined, RightOutlined } from '@ant-design/icons';
|
|
22
|
-
import {
|
|
22
|
+
import { LibroContextKey } from '@difizen/libro-core';
|
|
23
23
|
import { prop, useInject, useObserve, watch } from '@difizen/mana-app';
|
|
24
24
|
import { BaseView, view, ViewInstance } from '@difizen/mana-app';
|
|
25
25
|
import { inject, transient } from '@difizen/mana-app';
|
|
@@ -212,7 +212,7 @@ export var SearchComponent = /*#__PURE__*/forwardRef(function SearchComponent(pr
|
|
|
212
212
|
children: instance.searchVisible && /*#__PURE__*/_jsx(SearchContent, {})
|
|
213
213
|
});
|
|
214
214
|
});
|
|
215
|
-
export var LibroSearchView = (_dec = transient(), _dec2 = view('libro-search-view'), _dec3 = inject(
|
|
215
|
+
export var LibroSearchView = (_dec = transient(), _dec2 = view('libro-search-view'), _dec3 = inject(LibroContextKey), _dec4 = inject(LibroSearchUtils), _dec5 = inject(LibroSearchProviderFactory), _dec6 = prop(), _dec7 = prop(), _dec8 = prop(), _dec9 = prop(), _dec10 = prop(), _dec11 = prop(), _dec12 = prop(), _dec13 = prop(), _dec14 = prop(), _dec(_class = _dec2(_class = (_class2 = /*#__PURE__*/function (_BaseView) {
|
|
216
216
|
_inherits(LibroSearchView, _BaseView);
|
|
217
217
|
var _super = _createSuper(LibroSearchView);
|
|
218
218
|
function LibroSearchView() {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@difizen/libro-search",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.31",
|
|
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.1.
|
|
40
|
-
"@difizen/libro-core": "^0.1.
|
|
41
|
-
"@difizen/libro-code-editor": "^0.1.
|
|
39
|
+
"@difizen/libro-common": "^0.1.31",
|
|
40
|
+
"@difizen/libro-core": "^0.1.31",
|
|
41
|
+
"@difizen/libro-code-editor": "^0.1.31",
|
|
42
42
|
"@types/lodash.debounce": "^4.0.7",
|
|
43
43
|
"classnames": "^2.3.2",
|
|
44
44
|
"lodash.debounce": "^4.0.8",
|
|
@@ -4,7 +4,7 @@ import {
|
|
|
4
4
|
EditorCellView,
|
|
5
5
|
LibroView,
|
|
6
6
|
VirtualizedManagerHelper,
|
|
7
|
-
|
|
7
|
+
LibroContextKey,
|
|
8
8
|
} from '@difizen/libro-core';
|
|
9
9
|
import { inject, prop, transient, equals } from '@difizen/mana-app';
|
|
10
10
|
import { Deferred, DisposableCollection } from '@difizen/mana-app';
|
|
@@ -40,7 +40,7 @@ export const LibroSearchProviderFactory = Symbol('LibroSearchProviderFactory');
|
|
|
40
40
|
*/
|
|
41
41
|
@transient()
|
|
42
42
|
export class LibroSearchProvider extends AbstractSearchProvider {
|
|
43
|
-
@inject(
|
|
43
|
+
@inject(LibroContextKey) contextKey: LibroContextKey;
|
|
44
44
|
@inject(LibroCellSearchProvider) libroCellSearchProvider: LibroCellSearchProvider;
|
|
45
45
|
protected cellsChangeDeferred: Deferred<void> | undefined;
|
|
46
46
|
|
|
@@ -7,7 +7,7 @@ import {
|
|
|
7
7
|
RightOutlined,
|
|
8
8
|
} from '@ant-design/icons';
|
|
9
9
|
import type { LibroView } from '@difizen/libro-core';
|
|
10
|
-
import {
|
|
10
|
+
import { LibroContextKey } from '@difizen/libro-core';
|
|
11
11
|
import { prop, useInject, useObserve, watch } from '@difizen/mana-app';
|
|
12
12
|
import { BaseView, view, ViewInstance } from '@difizen/mana-app';
|
|
13
13
|
import { inject, transient } from '@difizen/mana-app';
|
|
@@ -222,7 +222,7 @@ export const SearchComponent = forwardRef<HTMLDivElement>(function SearchCompone
|
|
|
222
222
|
@view('libro-search-view')
|
|
223
223
|
export class LibroSearchView extends BaseView {
|
|
224
224
|
findInputRef?: React.RefObject<InputRef> | null;
|
|
225
|
-
@inject(
|
|
225
|
+
@inject(LibroContextKey) contextKey: LibroContextKey;
|
|
226
226
|
@inject(LibroSearchUtils) utils: LibroSearchUtils;
|
|
227
227
|
@inject(LibroSearchProviderFactory) searchProviderFactory: LibroSearchProviderFactory;
|
|
228
228
|
libro?: LibroView;
|