@libs-ui/components-preview-text-data 0.2.357-33 → 0.2.357-35
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/editor/editor-search-panel.d.ts +3 -0
- package/esm2022/editor/editor-search-panel.mjs +187 -0
- package/esm2022/linters/sql-linter.mjs +9 -2
- package/esm2022/preview-text-data.component.mjs +45 -4
- package/fesm2022/libs-ui-components-preview-text-data.mjs +237 -4
- package/fesm2022/libs-ui-components-preview-text-data.mjs.map +1 -1
- package/package.json +10 -8
- package/preview-text-data.component.d.ts +10 -0
package/package.json
CHANGED
|
@@ -1,23 +1,23 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@libs-ui/components-preview-text-data",
|
|
3
|
-
"version": "0.2.357-
|
|
3
|
+
"version": "0.2.357-35",
|
|
4
4
|
"peerDependencies": {
|
|
5
5
|
"@angular/core": ">=18.0.0",
|
|
6
6
|
"@babel/parser": ">=7.0.0",
|
|
7
7
|
"globals": ">=13.0.0",
|
|
8
|
-
"@libs-ui/components-buttons-button": "0.2.357-
|
|
9
|
-
"@libs-ui/components-dropdown": "0.2.357-
|
|
10
|
-
"@libs-ui/services-notification": "0.2.357-
|
|
11
|
-
"@libs-ui/utils": "0.2.357-
|
|
8
|
+
"@libs-ui/components-buttons-button": "0.2.357-35",
|
|
9
|
+
"@libs-ui/components-dropdown": "0.2.357-35",
|
|
10
|
+
"@libs-ui/services-notification": "0.2.357-35",
|
|
11
|
+
"@libs-ui/utils": "0.2.357-35",
|
|
12
12
|
"@codemirror/autocomplete": "6.20.2",
|
|
13
13
|
"@codemirror/language": "6.12.3",
|
|
14
14
|
"@codemirror/lint": "6.9.1",
|
|
15
15
|
"@codemirror/state": "6.6.0",
|
|
16
16
|
"@codemirror/view": "6.38.6",
|
|
17
17
|
"@lezer/common": "1.5.2",
|
|
18
|
-
"@libs-ui/components-list": "0.2.357-
|
|
18
|
+
"@libs-ui/components-list": "0.2.357-35",
|
|
19
19
|
"codemirror6": "npm:codemirror@6.0.2",
|
|
20
|
-
"@libs-ui/services-http-request": "0.2.357-
|
|
20
|
+
"@libs-ui/services-http-request": "0.2.357-35",
|
|
21
21
|
"@codemirror/lang-javascript": "6.2.4",
|
|
22
22
|
"@codemirror/lang-html": "6.4.11",
|
|
23
23
|
"@codemirror/lang-css": "6.3.1",
|
|
@@ -30,7 +30,9 @@
|
|
|
30
30
|
"@codemirror/lang-java": "6.0.2",
|
|
31
31
|
"@codemirror/lang-cpp": "6.0.3",
|
|
32
32
|
"@codemirror/lang-php": "6.0.2",
|
|
33
|
-
"@codemirror/lang-go": "6.0.1"
|
|
33
|
+
"@codemirror/lang-go": "6.0.1",
|
|
34
|
+
"@ngx-translate/core": "^15.0.0",
|
|
35
|
+
"@codemirror/search": "6.7.1"
|
|
34
36
|
},
|
|
35
37
|
"sideEffects": false,
|
|
36
38
|
"module": "fesm2022/libs-ui-components-preview-text-data.mjs",
|
|
@@ -7,12 +7,16 @@ import { ILanguageOptions, IPreviewTextDataChange, IPreviewTextDataCompletionIte
|
|
|
7
7
|
import * as i0 from "@angular/core";
|
|
8
8
|
export declare class LibsUiComponentsPreviewTextDataComponent implements OnInit, AfterViewInit {
|
|
9
9
|
private editorViewInstance?;
|
|
10
|
+
/** Phím tắt mở khung tìm/thay thế — máy Mac dùng ⌘ thay Ctrl, gợi ý sai phím thì người dùng bấm không ăn. */
|
|
11
|
+
protected readonly searchShortcut: string;
|
|
10
12
|
private readonly wrapCompartment;
|
|
11
13
|
private readonly languageCompartment;
|
|
12
14
|
private readonly lineNumberCompartment;
|
|
13
15
|
private readonly linterCompartment;
|
|
14
16
|
private readonly completionsCompartment;
|
|
15
17
|
private readonly forbiddenCompartment;
|
|
18
|
+
/** Nhãn của khung tìm/thay thế (Ctrl + F) — dịch theo ngôn ngữ đang dùng, đổi ngôn ngữ thì nạp lại. */
|
|
19
|
+
private readonly phrasesCompartment;
|
|
16
20
|
private readonly contentStateNoWrap;
|
|
17
21
|
/** Cache để tránh load lại language đã load */
|
|
18
22
|
private readonly languageCache;
|
|
@@ -20,6 +24,7 @@ export declare class LibsUiComponentsPreviewTextDataComponent implements OnInit,
|
|
|
20
24
|
private isInitialized;
|
|
21
25
|
private readonly notificationService;
|
|
22
26
|
private readonly destroyRef;
|
|
27
|
+
private readonly translateService;
|
|
23
28
|
protected readonly isWrap: import("@angular/core").WritableSignal<boolean>;
|
|
24
29
|
protected readonly configLoadDataIsHttpConfig: import("@angular/core").WritableSignal<IListConfigItem>;
|
|
25
30
|
protected readonly labelLang: import("@angular/core").Signal<string | undefined>;
|
|
@@ -104,6 +109,11 @@ export declare class LibsUiComponentsPreviewTextDataComponent implements OnInit,
|
|
|
104
109
|
* Load linter extension nếu có
|
|
105
110
|
*/
|
|
106
111
|
private loadLinterExtension;
|
|
112
|
+
/**
|
|
113
|
+
* Nhãn khung tìm/thay thế của CodeMirror — mặc định là tiếng Anh cứng (`Find`, `next`, `match case`…).
|
|
114
|
+
* Khoá bên trái là CHUỖI GỐC mà `@codemirror/search` tra trong `phrases`, không đổi được.
|
|
115
|
+
*/
|
|
116
|
+
private createSearchPhrases;
|
|
107
117
|
private createLightTheme;
|
|
108
118
|
private createBracketTheme;
|
|
109
119
|
private createUpdateListener;
|