@difizen/libro-search 0.2.35 → 0.2.36
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.
|
@@ -736,8 +736,8 @@ export var LibroSearchProvider = (_dec = transient(), _dec2 = inject(LibroContex
|
|
|
736
736
|
supportReplace: false
|
|
737
737
|
},
|
|
738
738
|
selectedCells: {
|
|
739
|
-
title: l10n.t('仅在选中
|
|
740
|
-
description: l10n.t('仅在选中
|
|
739
|
+
title: l10n.t('仅在选中 Cell 中查找'),
|
|
740
|
+
description: l10n.t('仅在选中 Cell 中查找'),
|
|
741
741
|
default: false,
|
|
742
742
|
supportReplace: true
|
|
743
743
|
}
|
|
@@ -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":";AA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,IAAI,iBAAiB,uBAMpB;IACD,IAAI,YAAY,uBAEf;IAEQ,WAAW,aAuBlB;IAEF,mBAAmB,aAIjB;IAEF,cAAc,aAIZ;IAEF,iBAAiB,sBAGf;IAEF,IAAI,aAKF;IACF,IAAI,4BAUF;IAEF,OAAO,aAGL;IAEF,MAAM,MAAO,gBAAgB,CAAC,cAAc,CAAC,UAK3C;IAEF,MAAM,8CAgBJ;IACF,aAAa,aAKX;IAEF,aAAa,aAGX;IAEF,mBAAmB,aAGjB;IAEF,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
|
@@ -59,7 +59,7 @@ export var SearchIndex = function SearchIndex() {
|
|
|
59
59
|
}
|
|
60
60
|
return /*#__PURE__*/_jsx("div", {
|
|
61
61
|
className: "libro-search-index",
|
|
62
|
-
children: instance.matchesCount !== undefined ? "".concat(currentMatchIndex !== null && currentMatchIndex !== void 0 ? currentMatchIndex : '-', "/").concat(matchesCount !== null && matchesCount !== void 0 ? matchesCount : ' -') : '无结果'
|
|
62
|
+
children: instance.matchesCount !== undefined ? "".concat(currentMatchIndex !== null && currentMatchIndex !== void 0 ? currentMatchIndex : '-', "/").concat(matchesCount !== null && matchesCount !== void 0 ? matchesCount : ' -') : l10n.t('无结果')
|
|
63
63
|
});
|
|
64
64
|
};
|
|
65
65
|
export var SearchIndexMemo = /*#__PURE__*/memo(SearchIndex);
|
|
@@ -103,7 +103,7 @@ export var SearchContent = function SearchContent() {
|
|
|
103
103
|
value: instance.findStr,
|
|
104
104
|
onChange: instance.handleFindChange,
|
|
105
105
|
size: "small",
|
|
106
|
-
placeholder:
|
|
106
|
+
placeholder: l10n.t('搜索'),
|
|
107
107
|
suffix: /*#__PURE__*/_jsxs("span", {
|
|
108
108
|
className: "libro-search-input-suffix",
|
|
109
109
|
children: [/*#__PURE__*/_jsx(IconFont, {
|
|
@@ -157,7 +157,7 @@ export var SearchContent = function SearchContent() {
|
|
|
157
157
|
value: instance.replaceStr,
|
|
158
158
|
onChange: instance.handleReplaceChange,
|
|
159
159
|
size: "small",
|
|
160
|
-
placeholder:
|
|
160
|
+
placeholder: l10n.t('替换')
|
|
161
161
|
})
|
|
162
162
|
}), /*#__PURE__*/_jsx("td", {
|
|
163
163
|
className: "libro-search-action",
|
|
@@ -185,10 +185,10 @@ export var SearchContent = function SearchContent() {
|
|
|
185
185
|
checked: (_instance$searchProvi = instance.searchProvider) === null || _instance$searchProvi === void 0 ? void 0 : _instance$searchProvi.searchCellOutput,
|
|
186
186
|
onChange: instance.searchCellOutputChange,
|
|
187
187
|
disabled: instance.replaceVisible,
|
|
188
|
-
children: l10n.t('在
|
|
188
|
+
children: l10n.t('在 Output 中查找')
|
|
189
189
|
}), instance.replaceVisible && /*#__PURE__*/_jsx(Tag, {
|
|
190
190
|
color: "warning",
|
|
191
|
-
children: l10n.t('替换功能不能在
|
|
191
|
+
children: l10n.t('替换功能不能在 Output 生效')
|
|
192
192
|
})]
|
|
193
193
|
})]
|
|
194
194
|
})]
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@difizen/libro-search",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.36",
|
|
4
4
|
"description": "",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"libro",
|
|
@@ -37,7 +37,7 @@
|
|
|
37
37
|
"@difizen/mana-l10n": "latest",
|
|
38
38
|
"@ant-design/icons": "^5.1.0",
|
|
39
39
|
"@difizen/libro-common": "^0.2.35",
|
|
40
|
-
"@difizen/libro-core": "^0.2.
|
|
40
|
+
"@difizen/libro-core": "^0.2.36",
|
|
41
41
|
"@difizen/libro-code-editor": "^0.2.35",
|
|
42
42
|
"@types/lodash.debounce": "^4.0.7",
|
|
43
43
|
"classnames": "^2.3.2",
|
|
@@ -188,8 +188,8 @@ export class LibroSearchProvider extends AbstractSearchProvider {
|
|
|
188
188
|
supportReplace: false,
|
|
189
189
|
},
|
|
190
190
|
selectedCells: {
|
|
191
|
-
title: l10n.t('仅在选中
|
|
192
|
-
description: l10n.t('仅在选中
|
|
191
|
+
title: l10n.t('仅在选中 Cell 中查找'),
|
|
192
|
+
description: l10n.t('仅在选中 Cell 中查找'),
|
|
193
193
|
default: false,
|
|
194
194
|
supportReplace: true,
|
|
195
195
|
},
|
|
@@ -53,7 +53,7 @@ export const SearchIndex: React.FC = () => {
|
|
|
53
53
|
<div className="libro-search-index">
|
|
54
54
|
{instance.matchesCount !== undefined
|
|
55
55
|
? `${currentMatchIndex ?? '-'}/${matchesCount ?? ' -'}`
|
|
56
|
-
: '无结果'}
|
|
56
|
+
: l10n.t('无结果')}
|
|
57
57
|
</div>
|
|
58
58
|
);
|
|
59
59
|
};
|
|
@@ -101,7 +101,7 @@ export const SearchContent = () => {
|
|
|
101
101
|
value={instance.findStr}
|
|
102
102
|
onChange={instance.handleFindChange}
|
|
103
103
|
size="small"
|
|
104
|
-
placeholder=
|
|
104
|
+
placeholder={l10n.t('搜索')}
|
|
105
105
|
suffix={
|
|
106
106
|
<span className="libro-search-input-suffix">
|
|
107
107
|
<IconFont
|
|
@@ -134,17 +134,20 @@ export const SearchContent = () => {
|
|
|
134
134
|
icon={<ArrowUpOutlined />}
|
|
135
135
|
size="small"
|
|
136
136
|
/>
|
|
137
|
+
|
|
137
138
|
<Button
|
|
138
139
|
title="Next Match"
|
|
139
140
|
onClick={instance.next}
|
|
140
141
|
icon={<ArrowDownOutlined />}
|
|
141
142
|
size="small"
|
|
142
143
|
/>
|
|
144
|
+
|
|
143
145
|
<Button
|
|
144
146
|
onClick={instance.toggleSetting}
|
|
145
147
|
icon={<EllipsisOutlined />}
|
|
146
148
|
size="small"
|
|
147
149
|
/>
|
|
150
|
+
|
|
148
151
|
<Button
|
|
149
152
|
onClick={() => instance.hide()}
|
|
150
153
|
icon={<CloseOutlined />}
|
|
@@ -160,7 +163,7 @@ export const SearchContent = () => {
|
|
|
160
163
|
value={instance.replaceStr}
|
|
161
164
|
onChange={instance.handleReplaceChange}
|
|
162
165
|
size="small"
|
|
163
|
-
placeholder=
|
|
166
|
+
placeholder={l10n.t('替换')}
|
|
164
167
|
/>
|
|
165
168
|
</td>
|
|
166
169
|
<td className="libro-search-action">
|
|
@@ -190,10 +193,10 @@ export const SearchContent = () => {
|
|
|
190
193
|
onChange={instance.searchCellOutputChange}
|
|
191
194
|
disabled={instance.replaceVisible}
|
|
192
195
|
>
|
|
193
|
-
{l10n.t('在
|
|
196
|
+
{l10n.t('在 Output 中查找')}
|
|
194
197
|
</Checkbox>
|
|
195
198
|
{instance.replaceVisible && (
|
|
196
|
-
<Tag color="warning">{l10n.t('替换功能不能在
|
|
199
|
+
<Tag color="warning">{l10n.t('替换功能不能在 Output 生效')}</Tag>
|
|
197
200
|
)}
|
|
198
201
|
</div>
|
|
199
202
|
)}
|