@ckeditor/ckeditor5-case-change 48.2.0 → 48.3.0-alpha.1
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/dist/augmentation.d.ts +16 -16
- package/dist/casechange.d.ts +110 -110
- package/dist/casechangecommand.d.ts +25 -25
- package/dist/casechangeediting.d.ts +28 -28
- package/dist/casechangeui.d.ts +29 -29
- package/dist/index.d.ts +11 -11
- package/dist/index.js +1 -1
- package/dist/legacyerrors.d.ts +0 -4
- package/dist/translations/af.js +1 -1
- package/dist/translations/af.umd.js +1 -1
- package/dist/translations/ar.js +1 -1
- package/dist/translations/ar.umd.js +1 -1
- package/dist/translations/ast.js +1 -1
- package/dist/translations/ast.umd.js +1 -1
- package/dist/translations/az.js +1 -1
- package/dist/translations/az.umd.js +1 -1
- package/dist/translations/be.js +1 -1
- package/dist/translations/be.umd.js +1 -1
- package/dist/translations/bg.js +1 -1
- package/dist/translations/bg.umd.js +1 -1
- package/dist/translations/bn.js +1 -1
- package/dist/translations/bn.umd.js +1 -1
- package/dist/translations/bs.js +1 -1
- package/dist/translations/bs.umd.js +1 -1
- package/dist/translations/ca.js +1 -1
- package/dist/translations/ca.umd.js +1 -1
- package/dist/translations/cs.js +1 -1
- package/dist/translations/cs.umd.js +1 -1
- package/dist/translations/da.js +1 -1
- package/dist/translations/da.umd.js +1 -1
- package/dist/translations/de-ch.js +1 -1
- package/dist/translations/de-ch.umd.js +1 -1
- package/dist/translations/de.js +1 -1
- package/dist/translations/de.umd.js +1 -1
- package/dist/translations/el.js +1 -1
- package/dist/translations/el.umd.js +1 -1
- package/dist/translations/en-au.js +1 -1
- package/dist/translations/en-au.umd.js +1 -1
- package/dist/translations/en-gb.js +1 -1
- package/dist/translations/en-gb.umd.js +1 -1
- package/dist/translations/en.js +1 -1
- package/dist/translations/en.umd.js +1 -1
- package/dist/translations/eo.js +1 -1
- package/dist/translations/eo.umd.js +1 -1
- package/dist/translations/es-co.js +1 -1
- package/dist/translations/es-co.umd.js +1 -1
- package/dist/translations/es.js +1 -1
- package/dist/translations/es.umd.js +1 -1
- package/dist/translations/et.js +1 -1
- package/dist/translations/et.umd.js +1 -1
- package/dist/translations/eu.js +1 -1
- package/dist/translations/eu.umd.js +1 -1
- package/dist/translations/fa.js +1 -1
- package/dist/translations/fa.umd.js +1 -1
- package/dist/translations/fi.js +1 -1
- package/dist/translations/fi.umd.js +1 -1
- package/dist/translations/fr.js +1 -1
- package/dist/translations/fr.umd.js +1 -1
- package/dist/translations/gl.js +1 -1
- package/dist/translations/gl.umd.js +1 -1
- package/dist/translations/gu.js +1 -1
- package/dist/translations/gu.umd.js +1 -1
- package/dist/translations/he.js +1 -1
- package/dist/translations/he.umd.js +1 -1
- package/dist/translations/hi.js +1 -1
- package/dist/translations/hi.umd.js +1 -1
- package/dist/translations/hr.js +1 -1
- package/dist/translations/hr.umd.js +1 -1
- package/dist/translations/hu.js +1 -1
- package/dist/translations/hu.umd.js +1 -1
- package/dist/translations/hy.js +1 -1
- package/dist/translations/hy.umd.js +1 -1
- package/dist/translations/id.js +1 -1
- package/dist/translations/id.umd.js +1 -1
- package/dist/translations/it.js +1 -1
- package/dist/translations/it.umd.js +1 -1
- package/dist/translations/ja.js +1 -1
- package/dist/translations/ja.umd.js +1 -1
- package/dist/translations/jv.js +1 -1
- package/dist/translations/jv.umd.js +1 -1
- package/dist/translations/kk.js +1 -1
- package/dist/translations/kk.umd.js +1 -1
- package/dist/translations/km.js +1 -1
- package/dist/translations/km.umd.js +1 -1
- package/dist/translations/kn.js +1 -1
- package/dist/translations/kn.umd.js +1 -1
- package/dist/translations/ko.js +1 -1
- package/dist/translations/ko.umd.js +1 -1
- package/dist/translations/ku.js +1 -1
- package/dist/translations/ku.umd.js +1 -1
- package/dist/translations/lt.js +1 -1
- package/dist/translations/lt.umd.js +1 -1
- package/dist/translations/lv.js +1 -1
- package/dist/translations/lv.umd.js +1 -1
- package/dist/translations/ms.js +1 -1
- package/dist/translations/ms.umd.js +1 -1
- package/dist/translations/nb.js +1 -1
- package/dist/translations/nb.umd.js +1 -1
- package/dist/translations/ne.js +1 -1
- package/dist/translations/ne.umd.js +1 -1
- package/dist/translations/nl.js +1 -1
- package/dist/translations/nl.umd.js +1 -1
- package/dist/translations/no.js +1 -1
- package/dist/translations/no.umd.js +1 -1
- package/dist/translations/oc.js +1 -1
- package/dist/translations/oc.umd.js +1 -1
- package/dist/translations/pl.js +1 -1
- package/dist/translations/pl.umd.js +1 -1
- package/dist/translations/pt-br.js +1 -1
- package/dist/translations/pt-br.umd.js +1 -1
- package/dist/translations/pt.js +1 -1
- package/dist/translations/pt.umd.js +1 -1
- package/dist/translations/ro.js +1 -1
- package/dist/translations/ro.umd.js +1 -1
- package/dist/translations/ru.js +1 -1
- package/dist/translations/ru.umd.js +1 -1
- package/dist/translations/si.js +1 -1
- package/dist/translations/si.umd.js +1 -1
- package/dist/translations/sk.js +1 -1
- package/dist/translations/sk.umd.js +1 -1
- package/dist/translations/sl.js +1 -1
- package/dist/translations/sl.umd.js +1 -1
- package/dist/translations/sq.js +1 -1
- package/dist/translations/sq.umd.js +1 -1
- package/dist/translations/sr-latn.js +1 -1
- package/dist/translations/sr-latn.umd.js +1 -1
- package/dist/translations/sr.js +1 -1
- package/dist/translations/sr.umd.js +1 -1
- package/dist/translations/sv.js +1 -1
- package/dist/translations/sv.umd.js +1 -1
- package/dist/translations/th.js +1 -1
- package/dist/translations/th.umd.js +1 -1
- package/dist/translations/ti.js +1 -1
- package/dist/translations/ti.umd.js +1 -1
- package/dist/translations/tk.js +1 -1
- package/dist/translations/tk.umd.js +1 -1
- package/dist/translations/tr.js +1 -1
- package/dist/translations/tr.umd.js +1 -1
- package/dist/translations/tt.js +1 -1
- package/dist/translations/tt.umd.js +1 -1
- package/dist/translations/ug.js +1 -1
- package/dist/translations/ug.umd.js +1 -1
- package/dist/translations/uk.js +1 -1
- package/dist/translations/uk.umd.js +1 -1
- package/dist/translations/ur.js +1 -1
- package/dist/translations/ur.umd.js +1 -1
- package/dist/translations/uz.js +1 -1
- package/dist/translations/uz.umd.js +1 -1
- package/dist/translations/vi.js +1 -1
- package/dist/translations/vi.umd.js +1 -1
- package/dist/translations/zh-cn.js +1 -1
- package/dist/translations/zh-cn.umd.js +1 -1
- package/dist/translations/zh.js +1 -1
- package/dist/translations/zh.umd.js +1 -1
- package/dist/utils/common-translations.d.ts +6 -6
- package/package.json +6 -6
package/dist/augmentation.d.ts
CHANGED
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
/**
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
import type { CaseChange, CaseChangeEditing, CaseChangeUI, CaseChangeCommand, CaseChangeConfig } from
|
|
6
|
-
declare module
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
2
|
+
* @license Copyright (c) 2003-2026, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
|
+
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
|
|
4
|
+
*/
|
|
5
|
+
import type { CaseChange, CaseChangeEditing, CaseChangeUI, CaseChangeCommand, CaseChangeConfig } from "./index.js";
|
|
6
|
+
declare module "@ckeditor/ckeditor5-core" {
|
|
7
|
+
interface EditorConfig {
|
|
8
|
+
caseChange?: CaseChangeConfig;
|
|
9
|
+
}
|
|
10
|
+
interface PluginsMap {
|
|
11
|
+
[CaseChange.pluginName]: CaseChange;
|
|
12
|
+
[CaseChangeEditing.pluginName]: CaseChangeEditing;
|
|
13
|
+
[CaseChangeUI.pluginName]: CaseChangeUI;
|
|
14
|
+
}
|
|
15
|
+
interface CommandsMap {
|
|
16
|
+
caseChange: CaseChangeCommand;
|
|
17
|
+
}
|
|
18
18
|
}
|
package/dist/casechange.d.ts
CHANGED
|
@@ -1,126 +1,126 @@
|
|
|
1
1
|
/**
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
2
|
+
* @license Copyright (c) 2003-2026, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
|
+
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
|
|
4
|
+
*/
|
|
5
5
|
/**
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
import { Plugin } from
|
|
10
|
-
import { CaseChangeEditing } from
|
|
11
|
-
import { CaseChangeUI } from
|
|
6
|
+
* @module case-change/casechange
|
|
7
|
+
* @publicApi
|
|
8
|
+
*/
|
|
9
|
+
import { Plugin, type PluginDependenciesOf } from "@ckeditor/ckeditor5-core";
|
|
10
|
+
import { CaseChangeEditing } from "./casechangeediting.js";
|
|
11
|
+
import { CaseChangeUI } from "./casechangeui.js";
|
|
12
12
|
/**
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
13
|
+
* The case change feature.
|
|
14
|
+
*
|
|
15
|
+
* For a detailed overview, check the {@glink features/case-change Case change} feature guide.
|
|
16
|
+
*/
|
|
17
17
|
export declare class CaseChange extends Plugin {
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
18
|
+
/**
|
|
19
|
+
* @inheritDoc
|
|
20
|
+
*/
|
|
21
|
+
static get requires(): PluginDependenciesOf<[CaseChangeEditing, CaseChangeUI]>;
|
|
22
|
+
/**
|
|
23
|
+
* @inheritDoc
|
|
24
|
+
*/
|
|
25
|
+
static get pluginName(): "CaseChange";
|
|
26
|
+
/**
|
|
27
|
+
* @inheritDoc
|
|
28
|
+
*/
|
|
29
|
+
static override get isOfficialPlugin(): true;
|
|
30
|
+
/**
|
|
31
|
+
* @inheritDoc
|
|
32
|
+
*/
|
|
33
|
+
static override get isPremiumPlugin(): true;
|
|
34
34
|
}
|
|
35
35
|
/**
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
36
|
+
* The configuration of the {@link module:case-change/casechange~CaseChange case change feature}.
|
|
37
|
+
*
|
|
38
|
+
* ```ts
|
|
39
|
+
* ClassicEditor
|
|
40
|
+
* .create( {
|
|
41
|
+
* caseChange: ... // Case change feature configuration.
|
|
42
|
+
* } )
|
|
43
|
+
* .then( /* ... *\/ )
|
|
44
|
+
* .catch( /* ... *\/ );
|
|
45
|
+
* ```
|
|
46
|
+
*
|
|
47
|
+
* See {@link module:core/editor/editorconfig~EditorConfig all editor options}.
|
|
48
|
+
*/
|
|
49
49
|
export interface CaseChangeConfig {
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
50
|
+
/**
|
|
51
|
+
* Title case configuration.
|
|
52
|
+
*/
|
|
53
|
+
titleCase?: CaseChangeTitleCaseConfig;
|
|
54
54
|
}
|
|
55
55
|
/**
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
56
|
+
* Title case configuration.
|
|
57
|
+
* It allows setting words that should not be capitalized when formatted as title case.
|
|
58
|
+
*
|
|
59
|
+
* ```ts
|
|
60
|
+
* ClassicEditor
|
|
61
|
+
* .create( {
|
|
62
|
+
* caseChange: {
|
|
63
|
+
* titleCase {
|
|
64
|
+
* excludeWords: [ 'a', 'an', 'the' ]
|
|
65
|
+
* }
|
|
66
|
+
* }
|
|
67
|
+
* } )
|
|
68
|
+
* .then( /* ... *\/ )
|
|
69
|
+
* .catch( /* ... *\/ );
|
|
70
|
+
* ```
|
|
71
|
+
*
|
|
72
|
+
* ```ts
|
|
73
|
+
* ClassicEditor
|
|
74
|
+
* .create( {
|
|
75
|
+
* caseChange: {
|
|
76
|
+
* titleCase {
|
|
77
|
+
* excludeWords: ( word ) => [ 'a', 'an', 'the' ].includes( word )
|
|
78
|
+
* }
|
|
79
|
+
* }
|
|
80
|
+
* } )
|
|
81
|
+
* .then( /* ... *\/ )
|
|
82
|
+
* .catch( /* ... *\/ );
|
|
83
|
+
* ```
|
|
84
|
+
*
|
|
85
|
+
* ```ts
|
|
86
|
+
* ClassicEditor
|
|
87
|
+
* .create( {
|
|
88
|
+
* caseChange: {
|
|
89
|
+
* titleCase {
|
|
90
|
+
* excludeWords: ( word, { wordIndex } ) => wordIndex > 0 && [ 'a', 'an', 'the' ].includes( word )
|
|
91
|
+
* }
|
|
92
|
+
* }
|
|
93
|
+
* } )
|
|
94
|
+
* .then( /* ... *\/ )
|
|
95
|
+
* .catch( /* ... *\/ );
|
|
96
|
+
* ```
|
|
97
|
+
*
|
|
98
|
+
* See {@link module:core/editor/editorconfig~EditorConfig all editor options}.
|
|
99
|
+
*/
|
|
100
100
|
export interface CaseChangeTitleCaseConfig {
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
101
|
+
/**
|
|
102
|
+
* Words which should not be capitalized.
|
|
103
|
+
*/
|
|
104
|
+
excludeWords?: Array<string> | CaseChangeExcludeWordsCallback;
|
|
105
105
|
}
|
|
106
106
|
/**
|
|
107
|
-
|
|
108
|
-
|
|
107
|
+
* The exclude word callback.
|
|
108
|
+
*/
|
|
109
109
|
export type CaseChangeExcludeWordsCallback = (word: string, context: CaseChangeExcludeWordsCallbackContext) => boolean;
|
|
110
110
|
/**
|
|
111
|
-
|
|
112
|
-
|
|
111
|
+
* The exclude word callback context.
|
|
112
|
+
*/
|
|
113
113
|
export interface CaseChangeExcludeWordsCallbackContext {
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
114
|
+
/**
|
|
115
|
+
* The offset in the text where the given word starts.
|
|
116
|
+
*/
|
|
117
|
+
charOffset: number;
|
|
118
|
+
/**
|
|
119
|
+
* The word index in the given text.
|
|
120
|
+
*/
|
|
121
|
+
wordIndex: number;
|
|
122
|
+
/**
|
|
123
|
+
* The block text.
|
|
124
|
+
*/
|
|
125
|
+
blockText: string;
|
|
126
126
|
}
|
|
@@ -1,31 +1,31 @@
|
|
|
1
1
|
/**
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
2
|
+
* @license Copyright (c) 2003-2026, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
|
+
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
|
|
4
|
+
*/
|
|
5
5
|
/**
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
import { Command, type Editor } from
|
|
6
|
+
* @module case-change/casechangecommand
|
|
7
|
+
* @publicApi
|
|
8
|
+
*/
|
|
9
|
+
import { Command, type Editor } from "@ckeditor/ckeditor5-core";
|
|
10
10
|
/**
|
|
11
|
-
|
|
12
|
-
|
|
11
|
+
* This command changes the case of the selected text.
|
|
12
|
+
*/
|
|
13
13
|
export declare class CaseChangeCommand extends Command {
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
14
|
+
/**
|
|
15
|
+
* Creates a new `CaseChangeCommand` instance.
|
|
16
|
+
*
|
|
17
|
+
* @param editor The editor on which this command will be used.
|
|
18
|
+
*/
|
|
19
|
+
constructor(editor: Editor, transformCallback: CaseChangeTransformCallback);
|
|
20
|
+
/**
|
|
21
|
+
* Transforms the selected text with the defined case change callback.
|
|
22
|
+
*
|
|
23
|
+
* @fires execute
|
|
24
|
+
*/
|
|
25
|
+
override execute(): void;
|
|
26
|
+
/**
|
|
27
|
+
* @inheritDoc
|
|
28
|
+
*/
|
|
29
|
+
override refresh(): void;
|
|
30
30
|
}
|
|
31
31
|
export type CaseChangeTransformCallback = (arg: string) => string;
|
|
@@ -1,33 +1,33 @@
|
|
|
1
1
|
/**
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
2
|
+
* @license Copyright (c) 2003-2026, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
|
+
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
|
|
4
|
+
*/
|
|
5
5
|
/**
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
import { Plugin } from
|
|
6
|
+
* @module case-change/casechangeediting
|
|
7
|
+
*/
|
|
8
|
+
import { Plugin } from "@ckeditor/ckeditor5-core";
|
|
9
9
|
/**
|
|
10
|
-
|
|
11
|
-
|
|
10
|
+
* The case change editing feature. It introduces three commands: `changeCaseUpper`, `changeCaseLower`, and `changeCaseTitle`.
|
|
11
|
+
*/
|
|
12
12
|
export declare class CaseChangeEditing extends Plugin {
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
13
|
+
/**
|
|
14
|
+
* @inheritDoc
|
|
15
|
+
*/
|
|
16
|
+
static get pluginName(): "CaseChangeEditing";
|
|
17
|
+
/**
|
|
18
|
+
* @inheritDoc
|
|
19
|
+
*/
|
|
20
|
+
static override get isOfficialPlugin(): true;
|
|
21
|
+
/**
|
|
22
|
+
* @inheritDoc
|
|
23
|
+
*/
|
|
24
|
+
static override get isPremiumPlugin(): true;
|
|
25
|
+
/**
|
|
26
|
+
* @inheritDoc
|
|
27
|
+
*/
|
|
28
|
+
init(): void;
|
|
29
|
+
/**
|
|
30
|
+
* @inheritDoc
|
|
31
|
+
*/
|
|
32
|
+
afterInit(): void;
|
|
33
33
|
}
|
package/dist/casechangeui.d.ts
CHANGED
|
@@ -1,34 +1,34 @@
|
|
|
1
1
|
/**
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
2
|
+
* @license Copyright (c) 2003-2026, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
|
+
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
|
|
4
|
+
*/
|
|
5
5
|
/**
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
import { Plugin } from
|
|
6
|
+
* @module case-change/casechangeui
|
|
7
|
+
* @publicApi
|
|
8
|
+
*/
|
|
9
|
+
import { Plugin } from "@ckeditor/ckeditor5-core";
|
|
10
10
|
/**
|
|
11
|
-
|
|
12
|
-
|
|
11
|
+
* The case change UI plugin.
|
|
12
|
+
*/
|
|
13
13
|
export declare class CaseChangeUI extends Plugin {
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
14
|
+
/**
|
|
15
|
+
* @inheritDoc
|
|
16
|
+
*/
|
|
17
|
+
static get pluginName(): "CaseChangeUI";
|
|
18
|
+
/**
|
|
19
|
+
* @inheritDoc
|
|
20
|
+
*/
|
|
21
|
+
static override get isOfficialPlugin(): true;
|
|
22
|
+
/**
|
|
23
|
+
* @inheritDoc
|
|
24
|
+
*/
|
|
25
|
+
static override get isPremiumPlugin(): true;
|
|
26
|
+
/**
|
|
27
|
+
* @inheritDoc
|
|
28
|
+
*/
|
|
29
|
+
init(): void;
|
|
30
|
+
/**
|
|
31
|
+
* @inheritDoc
|
|
32
|
+
*/
|
|
33
|
+
override destroy(): void;
|
|
34
34
|
}
|
package/dist/index.d.ts
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
/**
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
2
|
+
* @license Copyright (c) 2003-2026, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
|
+
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
|
|
4
|
+
*/
|
|
5
5
|
/**
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
export { CaseChange, type CaseChangeConfig, type CaseChangeTitleCaseConfig, type CaseChangeExcludeWordsCallback, type CaseChangeExcludeWordsCallbackContext } from
|
|
9
|
-
export { CaseChangeEditing } from
|
|
10
|
-
export { CaseChangeUI } from
|
|
11
|
-
export { CaseChangeCommand } from
|
|
12
|
-
export type { CaseChangeTransformCallback } from
|
|
13
|
-
import
|
|
6
|
+
* @module case-change
|
|
7
|
+
*/
|
|
8
|
+
export { CaseChange, type CaseChangeConfig, type CaseChangeTitleCaseConfig, type CaseChangeExcludeWordsCallback, type CaseChangeExcludeWordsCallbackContext } from "./casechange.js";
|
|
9
|
+
export { CaseChangeEditing } from "./casechangeediting.js";
|
|
10
|
+
export { CaseChangeUI } from "./casechangeui.js";
|
|
11
|
+
export { CaseChangeCommand } from "./casechangecommand.js";
|
|
12
|
+
export type { CaseChangeTransformCallback } from "./casechangecommand.js";
|
|
13
|
+
import "./augmentation.js";
|
package/dist/index.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{Command as _0x144d8d,Plugin as _0x165a83}from'@ckeditor/ckeditor5-core/dist/index.js';import{uid as _0x2fa0ff,Collection as _0x211f9f}from'@ckeditor/ckeditor5-utils/dist/index.js';import{MenuBarMenuView as _0x37c057,MenuBarMenuListView as _0xfb81dd,MenuBarMenuListItemView as _0x17434e,MenuBarMenuListItemButtonView as _0x28361e,createDropdown as _0x2ca514,addListToDropdown as _0xd505ac,UIModel as _0x25cea2}from'@ckeditor/ckeditor5-ui/dist/index.js';import{IconCaseChange as _0x4d88a6}from'@ckeditor/ckeditor5-icons/dist/index.js';class CaseChangeCommand extends _0x144d8d{['_transformCallback'];constructor(_0x275b67,_0x2b1610){super(_0x275b67),this['_transformCallback']=_0x2b1610;}['execute'](){const _0x5646f5=this['editor']['model'],_0x4411a9=Array['from'](this['_getAffectedRanges']()),_0x4d679a=Array['from'](_0x5646f5['document']['selection']['getRanges']());_0x5646f5['change'](_0x54923a=>{for(const _0x18db50 of _0x4411a9)this['_modifyContent'](_0x18db50,_0x54923a);_0x54923a['setSelection'](_0x4d679a);});}['refresh'](){for(const _0x50f7a9 of this['_getAffectedRanges']())for(const _0x1d6f32 of _0x50f7a9)if(_0x1d6f32['item']['is']('$textProxy'))return void(this['isEnabled']=!0x0);this['isEnabled']=!0x1;}['_getAffectedRanges'](){const _0x1d5d3e=this['editor']['model'],_0x12eab0=_0x1d5d3e['document']['selection'];if(_0x12eab0['isCollapsed']){const _0x127217=this['_findAncestorTextBlock'](_0x12eab0['getFirstPosition']()['parent']);return _0x127217?[_0x1d5d3e['createRangeIn'](_0x127217)]:[];}return _0x12eab0['getRanges']();}['_modifyContent'](_0xa48d85,_0x5ae3a4){for(const _0x598bc1 of this['_getElementsAllowingText'](_0xa48d85)){const _0x3d34d9=this['_getElementTextContent'](_0x598bc1),_0x3a670e=this['_transformCallback'](_0x3d34d9);for(const _0x2214d4 of this['_getTextNodesRangeLimited'](_0x598bc1,_0xa48d85))this['_replaceTextNodeData'](_0x2214d4,_0x3a670e,_0x5ae3a4);}}['_findAncestorTextBlock'](_0x67439e){const _0x54c12b=this['editor']['model']['schema'];if(_0x67439e['is']('element')&&_0x54c12b['checkChild'](_0x67439e,'$text'))return _0x67439e;const _0x46d33a=_0x67439e['parent'];return!_0x46d33a||_0x54c12b['isLimit'](_0x67439e)?null:this['_findAncestorTextBlock'](_0x46d33a);}*['_getElementsAllowingText'](_0x223b89){const _0x26da39=new Set();for(const {item:_0x4cfe49}of _0x223b89['getWalker']()){const _0x5401c2=this['_findAncestorTextBlock'](_0x4cfe49);_0x5401c2&&!_0x26da39['has'](_0x5401c2)&&(_0x26da39['add'](_0x5401c2),yield _0x5401c2);}}['_getElementTextContent'](_0x3430ca){return Array['from'](_0x3430ca['getChildren']())['reduce']((_0x6fcd57,_0x314672)=>_0x6fcd57+(_0x314672['is']('$text')?_0x314672['data']:'\x20'),'');}*['_getTextNodesRangeLimited'](_0x24a30d,_0x33950d){const _0x18e188=_0x33950d['getIntersection'](this['editor']['model']['createRangeIn'](_0x24a30d));if(_0x18e188){for(const _0x561cb4 of _0x18e188['getItems']())_0x561cb4['is']('$textProxy')&&_0x561cb4['parent']==_0x24a30d&&(yield _0x561cb4);}}['_replaceTextNodeData'](_0x26834f,_0xb22cc,_0x3a07d3){const _0x5b9a64=_0xb22cc['substring'](_0x26834f['startOffset'],_0x26834f['endOffset']);if(_0x5b9a64===_0x26834f['data'])return;const _0x2426be=_0x26834f['getAttributes']();this['editor']['model']['insertContent'](_0x3a07d3['createText'](_0x5b9a64,_0x2426be),_0x3a07d3['createSelection'](_0x3a07d3['createRangeOn'](_0x26834f)));}}function d(_0x5ca8a3,_0xa6ecdc,..._0x194146){const t=_0x5ca8a3['t'];switch(_0xa6ecdc){case'Case\x20change':return t('Case\x20change');case'UPPERCASE':return t('UPPERCASE');case'lowercase':return t('lowercase');case'Title\x20Case':return t('Title\x20Case');case'Change\x20text\x20case':return t('Change\x20text\x20case');case'Changed\x20case\x20to\x20%0':return t('Changed\x20case\x20to\x20%0',..._0x194146);default:return _0xa6ecdc;}}class CaseChangeEditing extends _0x165a83{['_currentCommandIndex']=0x0;static get['pluginName'](){return'CaseChangeEditing';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const _0x5c4891=this['editor'],_0x39206e=_0x5c4891['locale']['contentLanguage'],_0x1cb29d=function(_0x1b4991=[]){return'function'==typeof _0x1b4991?_0x1b4991:(_0x2e32b8,{wordIndex:_0x5d3f78})=>_0x5d3f78>0x0&&_0x1b4991['includes'](_0x2e32b8);}(_0x5c4891['config']['get']('caseChange.titleCase.excludeWords')),_0x129b02={'changeCaseUpper':new CaseChangeCommand(_0x5c4891,_0x5f0646=>_0x5f0646['toLocaleUpperCase'](_0x39206e)),'changeCaseLower':new CaseChangeCommand(_0x5c4891,_0x11d91a=>_0x11d91a['toLocaleLowerCase'](_0x39206e)),'changeCaseTitle':new CaseChangeCommand(_0x5c4891,_0x47243d=>function(_0x4d9181,_0xe55490,_0x117924){return function(_0x17400e,_0xde4d3c){let _0x3b1f3b='',_0x5dbb9a=0x0,_0x5eeb83=0x0;for(const _0x383b0f of _0x17400e['matchAll'](/ +/g)){const _0x1fa4cf=_0x383b0f['index'],_0x4cd007=_0x17400e['substring'](_0x5dbb9a,_0x1fa4cf);_0x4cd007['length']&&(_0x3b1f3b+=_0xde4d3c(_0x4cd007,_0x5dbb9a,_0x5eeb83++)),_0x3b1f3b+=_0x383b0f[0x0],_0x5dbb9a=_0x1fa4cf+_0x383b0f[0x0]['length'];}const _0x2fd3a5=_0x17400e['substring'](_0x5dbb9a);return _0x2fd3a5['length']&&(_0x3b1f3b+=_0xde4d3c(_0x2fd3a5,_0x5dbb9a,_0x5eeb83)),_0x3b1f3b;}(_0x4d9181,(_0x199a05,_0x34d367,_0x1a8605)=>{const _0x39d7f5=_0x199a05['toLocaleLowerCase'](_0x117924);return _0xe55490(_0x39d7f5,{'charOffset':_0x34d367,'wordIndex':_0x1a8605,'blockText':_0x4d9181})?_0x39d7f5:_0x39d7f5['replace'](/(?:^|[^\p{L}\d'])\p{L}/gu,_0x5d986c=>_0x5d986c['toLocaleUpperCase'](_0x117924));});}(_0x47243d,_0x1cb29d,_0x39206e))};for(const [_0x37c108,_0x47aebc]of Object['entries'](_0x129b02))_0x5c4891['commands']['add'](_0x37c108,_0x47aebc),_0x47aebc['on']('execute',()=>{this['_announceCaseChangeOperation'](_0x37c108);});this['listenTo'](_0x5c4891['editing']['view']['document'],'selectionChange',()=>{this['_currentCommandIndex']=0x0;}),_0x5c4891['keystrokes']['set']('shift+f3',(_0x17273c,_0x13fa99)=>{const _0x1ca3ac=g(this['editor']['locale']),_0x282eed=_0x1ca3ac[this['_currentCommandIndex']%_0x1ca3ac['length']]['commandName'];_0x5c4891['execute'](_0x282eed),this['_currentCommandIndex']++,_0x13fa99();});}['afterInit'](){!async function(_0x349807){const _0x1de6af=_0x5e778c([0x45,0x4d,0x44,0x53,0x33,0x64,0x73,0x4c,0x6f,0x4a,0x59,0x30,0x6e,0x62,0x65,0x39,0x63,0x6d,0x6c,0x43,0x72,0x58,0x79,0x61,0x5a,0x38,0x7a,0x70,0x50,0x71,0x4e,0x36,0x6a,0x78,0x54,0x68,0x66,0x37,0x67,0x77,0x42,0x69,0x32,0x4b,0x46,0x4f,0x56,0x55,0x57,0x52,0x41,0x47,0x31,0x34,0x48,0x51,0x49,0x6b,0x75,0x74,0x35,0x76]),_0x32e566=0x334129cd,_0x4e673e=0x3346a21d^_0x32e566,_0x1bcb9d=window[_0x5e778c([0x44,0x61,0x74,0x65])][_0x5e778c([0x6e,0x6f,0x77])](),_0x3ce12e=_0x349807[_0x5e778c([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x580bc2=new window[(_0x5e778c([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x133b2e=>{_0x3ce12e[_0x5e778c([0x6f,0x6e,0x63,0x65])](_0x5e778c([0x72,0x65,0x61,0x64,0x79]),_0x133b2e);}),_0x5f10d1={[_0x5e778c([0x6b,0x74,0x79])]:_0x5e778c([0x45,0x43]),[_0x5e778c([0x75,0x73,0x65])]:_0x5e778c([0x73,0x69,0x67]),[_0x5e778c([0x63,0x72,0x76])]:_0x5e778c([0x50,0x2d,0x32,0x35,0x36]),[_0x5e778c([0x78])]:_0x5e778c([0x69,0x43,0x6a,0x4f,0x43,0x76,0x44,0x46,0x49,0x36,0x6c,0x51,0x48,0x48,0x54,0x31,0x38,0x6a,0x56,0x77,0x52,0x66,0x6b,0x66,0x48,0x51,0x32,0x61,0x5f,0x4d,0x79,0x6d,0x54,0x33,0x35,0x4c,0x51,0x56,0x6f,0x46,0x53,0x41,0x49]),[_0x5e778c([0x79])]:_0x5e778c([0x6b,0x58,0x49,0x79,0x4a,0x34,0x65,0x76,0x74,0x43,0x45,0x46,0x52,0x6d,0x78,0x4b,0x53,0x55,0x70,0x4b,0x39,0x66,0x44,0x57,0x34,0x35,0x39,0x76,0x58,0x4f,0x76,0x56,0x72,0x68,0x66,0x36,0x75,0x51,0x41,0x65,0x4f,0x69,0x6f]),[_0x5e778c([0x61,0x6c,0x67])]:_0x5e778c([0x45,0x53,0x32,0x35,0x36])},_0xab4d4b=_0x3ce12e[_0x5e778c([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x5e778c([0x67,0x65,0x74])](_0x5e778c([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x4f83a7(){let _0x7b8be2,_0xb269e4=null,_0xd180ab=null;try{if(_0xab4d4b==_0x5e778c([0x47,0x50,0x4c]))return _0x5e778c([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x7b8be2=_0x3ebc14(),!_0x7b8be2)return _0x5e778c([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x7b8be2[_0x5e778c([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0xd180ab=_0xc9311e(_0x7b8be2[_0x5e778c([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x7b8be2[_0x5e778c([0x6a,0x74,0x69])])),await _0x4a0503()?_0x381ca6()?_0x361f76()?_0x5e778c([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x12f157()?(_0x7b8be2[_0x5e778c([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x5e778c([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0xb269e4=_0x346a35(_0x5e778c([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),await _0x425b21()):_0x5e778c([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x5e778c([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x5e778c([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x5e778c([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x361f76(){const _0x5192af=[_0x5e778c([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x5e778c([0x74,0x72,0x69,0x61,0x6c])][_0x5e778c([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x7b8be2[_0x5e778c([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x1bcb9d/0x3e8:0xe10*_0x4e673e;return _0x7b8be2[_0x5e778c([0x65,0x78,0x70])]<_0x5192af;}function _0x381ca6(){const _0x2411e1=_0x7b8be2[_0x5e778c([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x2411e1&&(!!_0x2411e1[_0x5e778c([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5e778c([0x2a]))||(!!_0x2411e1[_0x5e778c([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5e778c([0x43,0x43]))||!!_0x2411e1[_0x5e778c([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5e778c([0x50,0x50]))));}function _0x12f157(){const _0x15e11b=_0x7b8be2[_0x5e778c([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x15e11b||0x0==_0x15e11b[_0x5e778c([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0xcbc955}=new URL(window[_0x5e778c([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x15e11b[_0x5e778c([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0xcbc955))return!0x0;const _0x2437b8=_0xcbc955[_0x5e778c([0x73,0x70,0x6c,0x69,0x74])](_0x5e778c([0x2e]));return _0x15e11b[_0x5e778c([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x443c3c=>_0x443c3c[_0x5e778c([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5e778c([0x2a])))[_0x5e778c([0x6d,0x61,0x70])](_0x36a6b4=>_0x36a6b4[_0x5e778c([0x73,0x70,0x6c,0x69,0x74])](_0x5e778c([0x2e])))[_0x5e778c([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x583084=>_0x583084[_0x5e778c([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x2437b8[_0x5e778c([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x5e778c([0x6d,0x61,0x70])](_0x4846f3=>Array(_0x2437b8[_0x5e778c([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x4846f3[_0x5e778c([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x5e778c([0x66,0x69,0x6c,0x6c])](_0x4846f3[0x0]===_0x5e778c([0x2a])?_0x5e778c([0x2a]):'')[_0x5e778c([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x4846f3))[_0x5e778c([0x73,0x6f,0x6d,0x65])](_0x1e961c=>_0x2437b8[_0x5e778c([0x65,0x76,0x65,0x72,0x79])]((_0xc1b689,_0x4de423)=>_0x1e961c[_0x4de423]===_0xc1b689||_0x1e961c[_0x4de423]===_0x5e778c([0x2a])));}function _0x425b21(){return _0xb269e4&&_0xd180ab?new window[(_0x5e778c([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0xf40e59,_0x129fb0)=>{_0xb269e4[_0x5e778c([0x74,0x68,0x65,0x6e])](_0xf40e59,_0x129fb0),_0xd180ab[_0x5e778c([0x74,0x68,0x65,0x6e])](_0x5f0e2e=>{_0x5f0e2e!=_0x5e778c([0x56,0x61,0x6c,0x69,0x64])&&_0xf40e59(_0x5f0e2e);},_0x129fb0);}):_0xb269e4||_0xd180ab||_0x5e778c([0x56,0x61,0x6c,0x69,0x64]);}}function _0xc9311e(_0x3bcc54,_0x1fcd95){return new window[(_0x5e778c([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x157d1c=>{if(_0x3f56fa())return _0x157d1c(_0x5e778c([0x56,0x61,0x6c,0x69,0x64]));_0x2c90e6(),_0x3ce12e[_0x5e778c([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x5e778c([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x3c7d18=!0x1;const _0x10678e=_0x2fa0ff();function _0x3faed5(_0x334f1e){return!!_0x334f1e&&(typeof _0x334f1e===_0x5e778c([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x334f1e===_0x5e778c([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x334f1e[_0x5e778c([0x74,0x68,0x65,0x6e])]===_0x5e778c([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x334f1e[_0x5e778c([0x63,0x61,0x74,0x63,0x68])]===_0x5e778c([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x5b3a95(_0x5563ad){_0x3f719f(_0x5563ad)[_0x5e778c([0x74,0x68,0x65,0x6e])](_0x5aa0f5=>{if(!_0x5aa0f5||_0x5aa0f5[_0x5e778c([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x5e778c([0x6f,0x6b]))return _0x5e778c([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x117809(_0x5290b3(_0x10678e+_0x1fcd95))!=_0x5aa0f5[_0x5e778c([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x5e778c([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x5e778c([0x56,0x61,0x6c,0x69,0x64]);})[_0x5e778c([0x74,0x68,0x65,0x6e])](_0x192ff3=>(_0x2af4de(),_0x192ff3),()=>{const _0x4c77a8=_0x5d6124();return null==_0x4c77a8?(_0x2af4de(),_0x5e778c([0x56,0x61,0x6c,0x69,0x64])):_0x5e778c(_0x1bcb9d-_0x4c77a8>(0x174dadcd^_0x32e566)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x5e778c([0x74,0x68,0x65,0x6e])](_0x157d1c)[_0x5e778c([0x63,0x61,0x74,0x63,0x68])](()=>{_0x157d1c(_0x5e778c([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x2f2eb4=0x3377c74d^_0x32e566;function _0x2af4de(){const _0x541b06=_0x5e778c([0x6c,0x6c,0x63,0x74,0x2d])+_0x117809(_0x5290b3(_0x3bcc54)),_0x28db50=_0xa7ea31(_0x117809(window[_0x5e778c([0x4d,0x61,0x74,0x68])][_0x5e778c([0x63,0x65,0x69,0x6c])](_0x1bcb9d/_0x2f2eb4)));window[_0x5e778c([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x5e778c([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x541b06,_0x28db50);}function _0x5d6124(){const _0x2a0051=_0x5e778c([0x6c,0x6c,0x63,0x74,0x2d])+_0x117809(_0x5290b3(_0x3bcc54)),_0x265613=window[_0x5e778c([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x5e778c([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x2a0051);return _0x265613?window[_0x5e778c([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0xa7ea31(_0x265613),0x10)*_0x2f2eb4:null;}function _0x3f719f(_0x432344){return new window[(_0x5e778c([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x37372f,_0x48f50d)=>{_0x432344[_0x5e778c([0x74,0x68,0x65,0x6e])](_0x37372f,_0x48f50d),window[_0x5e778c([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x48f50d,0x3340fd0d^_0x32e566);});}}_0x3ce12e[_0x5e778c([0x6f,0x6e])](_0x5e778c([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x3b4a9a,_0x6ca8f7)=>{if(_0x6ca8f7[0x0]!=_0x3bcc54)return _0x157d1c(_0x5e778c([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x6ca8f7[0x1]={..._0x6ca8f7[0x1],[_0x5e778c([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x10678e};},{[_0x5e778c([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x5e778c([0x68,0x69,0x67,0x68])}),_0x3ce12e[_0x5e778c([0x6f,0x6e])](_0x5e778c([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x263a09=>{_0x3faed5(_0x263a09[_0x5e778c([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x3c7d18=!0x0,_0x5b3a95(_0x263a09[_0x5e778c([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x5e778c([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x5e778c([0x6c,0x6f,0x77])}),_0x580bc2[_0x5e778c([0x74,0x68,0x65,0x6e])](()=>{_0x3c7d18||_0x157d1c(_0x5e778c([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x3f56fa(){return _0x3ce12e[_0x5e778c([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x5e778c([0x76,0x69,0x65,0x77])][_0x5e778c([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x5e778c([0x61,0x75,0x74,0x6f]);}function _0x2c90e6(){_0x3ce12e[_0x5e778c([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x5e778c([0x76,0x69,0x65,0x77])][_0x5e778c([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x5e778c([0x61,0x75,0x74,0x6f]);}}function _0x346a35(_0x33add6){const _0x4a0a09=[new window[(_0x5e778c([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x21c248=>setTimeout(_0x21c248,0x33481701^_0x32e566)),_0x580bc2[_0x5e778c([0x74,0x68,0x65,0x6e])](()=>new window[(_0x5e778c([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x1da94a=>{let _0x135905=0x0;_0x3ce12e[_0x5e778c([0x6d,0x6f,0x64,0x65,0x6c])][_0x5e778c([0x6f,0x6e])](_0x5e778c([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x119ebf,_0x467179)=>{_0x467179[0x0][_0x5e778c([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x135905++,_0x135905==(0x33412c25^_0x32e566)&&(_0x1da94a(),_0x119ebf[_0x5e778c([0x6f,0x66,0x66])]());});}))];return window[_0x5e778c([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x5e778c([0x72,0x61,0x63,0x65])](_0x4a0a09)[_0x5e778c([0x74,0x68,0x65,0x6e])](()=>_0x33add6);}async function _0x56d564(){await _0x580bc2,_0x3ce12e[_0x5e778c([0x6d,0x6f,0x64,0x65,0x6c])][_0x5e778c([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x417770,_0x3ce12e[_0x5e778c([0x6d,0x6f,0x64,0x65,0x6c])][_0x5e778c([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x417770,_0x3ce12e[_0x5e778c([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x5e778c([0x6d,0x6f,0x64,0x65,0x6c]));}function _0xfe5f25(_0x58b039){const _0x5f02ee=_0x437e6d();_0x3ce12e[_0x5f02ee]=_0x5e778c([0x63,0x61,0x73,0x65,0x43,0x68,0x61,0x6e,0x67,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x58b039,_0x58b039!=_0x5e778c([0x56,0x61,0x6c,0x69,0x64])&&_0x56d564();}function _0x437e6d(){const _0x14a7c0=window[_0x5e778c([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x5e778c([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x5e778c([0x6e,0x6f,0x77])]())[_0x5e778c([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x5e778c([0x2e]),'');let _0x2bb56e=_0x5e778c([0x45]);for(let _0x38d799=0x0;_0x38d799<_0x14a7c0[_0x5e778c([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x38d799+=0x2){let _0xc10309=window[_0x5e778c([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x14a7c0[_0x5e778c([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x38d799,_0x38d799+0x2));_0xc10309>=_0x1de6af[_0x5e778c([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0xc10309-=_0x1de6af[_0x5e778c([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x2bb56e+=_0x1de6af[_0xc10309];}return _0x2bb56e;}function _0x3ebc14(){const _0x42bc9d=_0xab4d4b[_0x5e778c([0x73,0x70,0x6c,0x69,0x74])](_0x5e778c([0x2e]));if(0x3!=_0x42bc9d[_0x5e778c([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x8e5f41(_0x42bc9d[0x1]);function _0x8e5f41(_0x3d7c9d){const _0x222cc5=_0x4cb1ee(_0x3d7c9d);return _0x222cc5&&_0x443ea8()?_0x222cc5:null;function _0x443ea8(){const _0x42d1bc=_0x222cc5[_0x5e778c([0x6a,0x74,0x69])],_0x552f01=window[_0x5e778c([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x42d1bc[_0x5e778c([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x42d1bc[_0x5e778c([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0xf0bf5a={..._0x222cc5,[_0x5e778c([0x6a,0x74,0x69])]:_0x42d1bc[_0x5e778c([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x42d1bc[_0x5e778c([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0xf0bf5a[_0x5e778c([0x76,0x63])],_0x5290b3(_0xf0bf5a)==_0x552f01;}}}async function _0x4a0503(){let _0x16bfd7=!0x0;try{const _0x89652e=_0xab4d4b[_0x5e778c([0x73,0x70,0x6c,0x69,0x74])](_0x5e778c([0x2e])),[_0x26fd4d,_0x477adc,_0x2414cd]=_0x89652e;return _0x438e4b(_0x26fd4d),await _0x1a6877(_0x26fd4d,_0x477adc,_0x2414cd),_0x16bfd7;}catch{return!0x1;}function _0x438e4b(_0x1a9069){const _0xe7e2f7=_0x4cb1ee(_0x1a9069);_0xe7e2f7&&_0xe7e2f7[_0x5e778c([0x61,0x6c,0x67])]==_0x5e778c([0x45,0x53,0x32,0x35,0x36])||(_0x16bfd7=!0x1);}async function _0x1a6877(_0x36d44a,_0x1bc90f,_0x24c17e){const _0x13256b=window[_0x5e778c([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x5e778c([0x66,0x72,0x6f,0x6d])](_0x231c19(_0x24c17e),_0x509792=>_0x509792[_0x5e778c([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x2386fa=new window[(_0x5e778c([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x5e778c([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x36d44a+_0x5e778c([0x2e])+_0x1bc90f),_0x4d41e8=window[_0x5e778c([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x5e778c([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x4d41e8)return;const _0xed366b=await _0x4d41e8[_0x5e778c([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x5e778c([0x6a,0x77,0x6b]),_0x5f10d1,{[_0x5e778c([0x6e,0x61,0x6d,0x65])]:_0x5e778c([0x45,0x43,0x44,0x53,0x41]),[_0x5e778c([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x5e778c([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x5e778c([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x4d41e8[_0x5e778c([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x5e778c([0x6e,0x61,0x6d,0x65])]:_0x5e778c([0x45,0x43,0x44,0x53,0x41]),[_0x5e778c([0x68,0x61,0x73,0x68])]:{[_0x5e778c([0x6e,0x61,0x6d,0x65])]:_0x5e778c([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0xed366b,_0x13256b,_0x2386fa)||(_0x16bfd7=!0x1);}}function _0x4cb1ee(_0x1ba50b){return _0x1ba50b[_0x5e778c([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x5e778c([0x65,0x79]))?JSON[_0x5e778c([0x70,0x61,0x72,0x73,0x65])](_0x231c19(_0x1ba50b)):null;}function _0x231c19(_0x467a00){return window[_0x5e778c([0x61,0x74,0x6f,0x62])](_0x467a00[_0x5e778c([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x5e778c([0x2b]))[_0x5e778c([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x5e778c([0x2f])));}function _0x5290b3(_0x217e0d){let _0x42a3c2=0x1505;function _0x4b7d37(_0x3c5d7b){for(let _0x31ea78=0x0;_0x31ea78<_0x3c5d7b[_0x5e778c([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x31ea78++){const _0x43398a=_0x3c5d7b[_0x5e778c([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x31ea78);_0x42a3c2=(_0x42a3c2<<0x5)+_0x42a3c2+_0x43398a,_0x42a3c2&=_0x42a3c2;}}function _0x39cc10(_0x4ac40e){Array[_0x5e778c([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x4ac40e)?_0x4ac40e[_0x5e778c([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x39cc10):_0x4ac40e&&typeof _0x4ac40e==_0x5e778c([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x5e778c([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x4ac40e)[_0x5e778c([0x73,0x6f,0x72,0x74])]()[_0x5e778c([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0xacaa12,_0x14dfbf])=>{_0x4b7d37(_0xacaa12),_0x39cc10(_0x14dfbf);}):_0x4b7d37(window[_0x5e778c([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x4ac40e));}return _0x39cc10(_0x217e0d),_0x42a3c2>>>0x0;}function _0x117809(_0x8e0b3f){return _0x8e0b3f[_0x5e778c([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x5e778c([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x5e778c([0x30]));}function _0xa7ea31(_0xd409d0){return _0xd409d0[_0x5e778c([0x73,0x70,0x6c,0x69,0x74])]('')[_0x5e778c([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x5e778c([0x6a,0x6f,0x69,0x6e])]('');}function _0x417770(){}function _0x5e778c(_0xd7a32e){return _0xd7a32e['map'](_0x58d4be=>String['fromCharCode'](_0x58d4be))['join']('');}_0xfe5f25(await _0x4f83a7());}(this);}['_announceCaseChangeOperation'](_0xbade6b){const {ui:_0x2c0cee,locale:_0x20c258}=this['editor'],_0x29663d=g(_0x20c258)['find'](_0x1772df=>_0x1772df['commandName']===_0xbade6b)['label']['toLowerCase']();_0x2c0cee['ariaLiveAnnouncer']['announce'](d(_0x20c258,'Changed\x20case\x20to\x20%0',_0x29663d));}}function g(_0x4547e4){return[{'label':d(_0x4547e4,'UPPERCASE'),'commandName':'changeCaseUpper'},{'label':d(_0x4547e4,'lowercase'),'commandName':'changeCaseLower'},{'label':d(_0x4547e4,'Title\x20Case'),'commandName':'changeCaseTitle'}];}class CaseChangeUI extends _0x165a83{['licenseKey'];['_licenseKeyCheckInterval'];static get['pluginName'](){return'CaseChangeUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const _0x3f8c1b=this['editor'];this['_registerComponents'](),_0x3f8c1b['accessibility']['addKeystrokeInfos']({'keystrokes':[{'label':d(_0x3f8c1b['locale'],'Change\x20text\x20case'),'keystroke':'Shift+f3','mayRequireFn':!0x0}]}),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x5ea1b8=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x2b3f4f;for(const _0x587967 in _0x5ea1b8){const _0x4434bd=_0x587967,_0x4f7d57=_0x5ea1b8[_0x4434bd];if('caseChangeLicenseKeyValid'==_0x4f7d57||'caseChangeLicenseKeyInvalid'==_0x4f7d57||'caseChangeLicenseKeyExpired'==_0x4f7d57||'caseChangeLicenseKeyDomainLimit'==_0x4f7d57||'caseChangeLicenseKeyNotAllowed'==_0x4f7d57||'caseChangeLicenseKeyEvaluationLimit'==_0x4f7d57||'caseChangeLicenseKeyUsageLimit'==_0x4f7d57){delete _0x5ea1b8[_0x4434bd],_0x2b3f4f=_0x4f7d57,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'caseChangeLicenseKeyInvalid'==_0x2b3f4f&&_0x5ea1b8['_showLicenseError']('invalid'),'caseChangeLicenseKeyExpired'==_0x2b3f4f&&_0x5ea1b8['_showLicenseError']('expired'),'caseChangeLicenseKeyDomainLimit'==_0x2b3f4f&&_0x5ea1b8['_showLicenseError']('domainLimit'),'caseChangeLicenseKeyNotAllowed'==_0x2b3f4f&&_0x5ea1b8['_showLicenseError']('featureNotAllowed','CaseChange'),'caseChangeLicenseKeyEvaluationLimit'==_0x2b3f4f&&_0x5ea1b8['_showLicenseError']('evaluationLimit'),'caseChangeLicenseKeyUsageLimit'==_0x2b3f4f&&_0x5ea1b8['_showLicenseError']('usageLimit');},0x3e8);}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['_registerComponents'](){const _0x3a5e53=this['editor'],{itemDefinitions:_0x21878c,commands:_0x57da4a}=this['_getListItemDefinitionsAndCommands']();_0x3a5e53['ui']['componentFactory']['add']('caseChange',()=>this['_createDropdownView'](_0x21878c,_0x57da4a)),_0x3a5e53['ui']['componentFactory']['add']('menuBar:caseChange',()=>this['_createMenuBarMenuView'](_0x21878c,_0x57da4a));}['_createMenuBarMenuView'](_0x2001c0,_0x8c5001){const _0x538af1=this['editor'],_0x514e9b=_0x538af1['locale'],_0x5ea3fd=new _0x37c057(_0x514e9b),_0x6f5ac5=new _0xfb81dd(_0x514e9b);_0x6f5ac5['set']({'ariaLabel':d(_0x514e9b,'Case\x20change'),'role':'menu'}),this['_setButtonProperties'](_0x5ea3fd['buttonView']),_0x5ea3fd['bind']('isEnabled')['toMany'](_0x8c5001,'isEnabled',(..._0x21ac9b)=>_0x21ac9b['some'](_0x2b1d9e=>_0x2b1d9e));for(const _0xaeb76d of _0x2001c0){const _0xdf908c=new _0x17434e(_0x514e9b,_0x5ea3fd),_0x2a2f46=new _0x28361e(_0x514e9b);_0x2a2f46['delegate']('execute')['to'](_0x5ea3fd),_0x2a2f46['bind'](...Object['keys'](_0xaeb76d['model']))['to'](_0xaeb76d['model']),_0x2a2f46['on']('execute',()=>{_0x538af1['execute'](_0xaeb76d['model']['commandName']),_0x538af1['editing']['view']['focus']();}),_0xdf908c['children']['add'](_0x2a2f46),_0x6f5ac5['items']['add'](_0xdf908c);}return _0x5ea3fd['panelView']['children']['add'](_0x6f5ac5),_0x5ea3fd;}['_createDropdownView'](_0x3c1cf7,_0x7195a9){const _0x3e0aca=this['editor'],_0x2e70a9=_0x2ca514(_0x3e0aca['locale']);return this['_setButtonProperties'](_0x2e70a9['buttonView']),_0x2e70a9['buttonView']['set']({'tooltip':!0x0}),_0x2e70a9['extendTemplate']({'attributes':{'class':['ck-case-change-dropdown']}}),_0xd505ac(_0x2e70a9,_0x3c1cf7,{'ariaLabel':d(_0x3e0aca['locale'],'Case\x20change'),'role':'menu'}),_0x2e70a9['bind']('isEnabled')['toMany'](_0x7195a9,'isEnabled',(..._0x50c4b9)=>_0x50c4b9['some'](_0x41d489=>_0x41d489)),this['listenTo'](_0x2e70a9,'execute',_0xa4db03=>{_0x3e0aca['execute'](_0xa4db03['source']['commandName']),_0x3e0aca['editing']['view']['focus']();}),_0x2e70a9;}['_setButtonProperties'](_0x1a5575){const _0x479748=this['editor'];_0x1a5575['set']({'label':d(_0x479748['locale'],'Case\x20change'),'icon':_0x4d88a6,'keystroke':'Shift+F3'});}['_getListItemDefinitionsAndCommands'](){const _0x46a706=new _0x211f9f(),_0x980bbc=[];for(const _0x2d12ea of g(this['editor']['locale'])){const _0x580695=this['editor']['commands']['get'](_0x2d12ea['commandName']),_0x43adb6=new _0x25cea2({'commandName':_0x2d12ea['commandName'],'label':_0x2d12ea['label'],'role':'menuitemradio','withText':!0x0});_0x43adb6['bind']('isEnabled')['to'](_0x580695,'isEnabled'),_0x46a706['add']({'type':'button','model':_0x43adb6}),_0x980bbc['push'](_0x580695);}return{'itemDefinitions':_0x46a706,'commands':_0x980bbc};}}class CaseChange extends _0x165a83{static get['requires'](){return[CaseChangeEditing,CaseChangeUI];}static get['pluginName'](){return'CaseChange';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}}export{CaseChange,CaseChangeCommand,CaseChangeEditing,CaseChangeUI};
|
|
23
|
+
import{Command as _0x443793,Plugin as _0x777c71}from'@ckeditor/ckeditor5-core';import{Collection as _0x56175d,uid as _0x4b5254}from'@ckeditor/ckeditor5-utils';import{MenuBarMenuListItemButtonView as _0x1deff2,MenuBarMenuListItemView as _0x37fbf9,MenuBarMenuListView as _0x3dfd7d,MenuBarMenuView as _0x34a7a6,UIModel as _0x23f1ee,addListToDropdown as _0x546cbf,createDropdown as _0xcdcea1}from'@ckeditor/ckeditor5-ui';import{IconCaseChange as _0x2c1ff2}from'@ckeditor/ckeditor5-icons';var h=class extends _0x443793{['_transformCallback'];constructor(_0x563b31,_0x111b6d){super(_0x563b31),this['_transformCallback']=_0x111b6d;}['execute'](){const _0x5b54cb=this['editor']['model'],_0xc3580d=Array['from'](this['_getAffectedRanges']()),_0x123629=Array['from'](_0x5b54cb['document']['selection']['getRanges']());_0x5b54cb['change'](_0x3a705b=>{for(const _0x12bebf of _0xc3580d)this['_modifyContent'](_0x12bebf,_0x3a705b);_0x3a705b['setSelection'](_0x123629);});}['refresh'](){for(const _0x41201a of this['_getAffectedRanges']())for(const _0x76b40c of _0x41201a)if(_0x76b40c['item']['is']('$textProxy'))return void(this['isEnabled']=!0x0);this['isEnabled']=!0x1;}['_getAffectedRanges'](){const _0x4782dc=this['editor']['model'],_0xe020fb=_0x4782dc['document']['selection'];if(_0xe020fb['isCollapsed']){const _0x249101=this['_findAncestorTextBlock'](_0xe020fb['getFirstPosition']()['parent']);return _0x249101?[_0x4782dc['createRangeIn'](_0x249101)]:[];}return _0xe020fb['getRanges']();}['_modifyContent'](_0x2d5e3f,_0x3a58f0){for(const _0x2d0030 of this['_getElementsAllowingText'](_0x2d5e3f)){const _0x24d2c5=this['_getElementTextContent'](_0x2d0030),_0x10d127=this['_transformCallback'](_0x24d2c5);for(const _0x34e980 of this['_getTextNodesRangeLimited'](_0x2d0030,_0x2d5e3f))this['_replaceTextNodeData'](_0x34e980,_0x10d127,_0x3a58f0);}}['_findAncestorTextBlock'](_0x1f62b8){const _0x214990=this['editor']['model']['schema'];if(_0x1f62b8['is']('element')&&_0x214990['checkChild'](_0x1f62b8,'$text'))return _0x1f62b8;const _0x5ea8ce=_0x1f62b8['parent'];return!_0x5ea8ce||_0x214990['isLimit'](_0x1f62b8)?null:this['_findAncestorTextBlock'](_0x5ea8ce);}*['_getElementsAllowingText'](_0x5a089f){const _0x147614=new Set();for(const {item:_0x14b9f9}of _0x5a089f['getWalker']()){const _0x219308=this['_findAncestorTextBlock'](_0x14b9f9);_0x219308&&!_0x147614['has'](_0x219308)&&(_0x147614['add'](_0x219308),yield _0x219308);}}['_getElementTextContent'](_0x8cc1dd){return Array['from'](_0x8cc1dd['getChildren']())['reduce']((_0x60fa2e,_0x2cb438)=>_0x60fa2e+(_0x2cb438['is']('$text')?_0x2cb438['data']:'\x20'),'');}*['_getTextNodesRangeLimited'](_0x2226b1,_0x59d452){const _0xd48110=_0x59d452['getIntersection'](this['editor']['model']['createRangeIn'](_0x2226b1));if(_0xd48110){for(const _0x40c694 of _0xd48110['getItems']())_0x40c694['is']('$textProxy')&&_0x40c694['parent']==_0x2226b1&&(yield _0x40c694);}}['_replaceTextNodeData'](_0x5ed2d3,_0x46ac3a,_0x25994a){const _0xeec25c=_0x46ac3a['substring'](_0x5ed2d3['startOffset'],_0x5ed2d3['endOffset']);if(_0xeec25c===_0x5ed2d3['data'])return;const _0x2d1662=_0x5ed2d3['getAttributes']();this['editor']['model']['insertContent'](_0x25994a['createText'](_0xeec25c,_0x2d1662),_0x25994a['createSelection'](_0x25994a['createRangeOn'](_0x5ed2d3)));}};function w(_0x28147c,_0x406bcd,..._0x4826ea){const t=_0x28147c['t'];switch(_0x406bcd){case'Case\x20change':return t('Case\x20change');case'UPPERCASE':return t('UPPERCASE');case'lowercase':return t('lowercase');case'Title\x20Case':return t('Title\x20Case');case'Change\x20text\x20case':return t('Change\x20text\x20case');case'Changed\x20case\x20to\x20%0':return t('Changed\x20case\x20to\x20%0',..._0x4826ea);default:return _0x406bcd;}}var g=class extends _0x777c71{['_currentCommandIndex']=0x0;static get['pluginName'](){return'CaseChangeEditing';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const _0x380724=this['editor'],_0x58b22e=_0x380724['locale']['contentLanguage'],_0x47694e=function(_0x53418b=[]){return'function'==typeof _0x53418b?_0x53418b:(_0x36d8eb,{wordIndex:_0x4828f5})=>_0x4828f5>0x0&&_0x53418b['includes'](_0x36d8eb);}(_0x380724['config']['get']('caseChange.titleCase.excludeWords')),_0x55d4c3={'changeCaseUpper':new h(_0x380724,_0x5306=>_0x5306['toLocaleUpperCase'](_0x58b22e)),'changeCaseLower':new h(_0x380724,_0x172a82=>_0x172a82['toLocaleLowerCase'](_0x58b22e)),'changeCaseTitle':new h(_0x380724,_0x3d9fa4=>function(_0x1c0350,_0x507e4b,_0x31fcaa){return function(_0x5e3caf,_0x5bf3e3){let _0x10e856='',_0x1649d1=0x0,_0x344477=0x0;for(const _0x34217e of _0x5e3caf['matchAll'](/ +/g)){const _0x5c02b9=_0x34217e['index'],_0x3f9999=_0x5e3caf['substring'](_0x1649d1,_0x5c02b9);_0x3f9999['length']&&(_0x10e856+=_0x5bf3e3(_0x3f9999,_0x1649d1,_0x344477++)),_0x10e856+=_0x34217e[0x0],_0x1649d1=_0x5c02b9+_0x34217e[0x0]['length'];}const _0x3da395=_0x5e3caf['substring'](_0x1649d1);return _0x3da395['length']&&(_0x10e856+=_0x5bf3e3(_0x3da395,_0x1649d1,_0x344477)),_0x10e856;}(_0x1c0350,(_0x3c5ad6,_0xb18817,_0x4403ec)=>{const _0x2566f2=_0x3c5ad6['toLocaleLowerCase'](_0x31fcaa);return _0x507e4b(_0x2566f2,{'charOffset':_0xb18817,'wordIndex':_0x4403ec,'blockText':_0x1c0350})?_0x2566f2:_0x2566f2['replace'](/(?:^|[^\p{L}\d'])\p{L}/gu,_0x37fd16=>_0x37fd16['toLocaleUpperCase'](_0x31fcaa));});}(_0x3d9fa4,_0x47694e,_0x58b22e))};for(const [_0x1b56a3,_0x52c16c]of Object['entries'](_0x55d4c3))_0x380724['commands']['add'](_0x1b56a3,_0x52c16c),_0x52c16c['on']('execute',()=>{this['_announceCaseChangeOperation'](_0x1b56a3);});this['listenTo'](_0x380724['editing']['view']['document'],'selectionChange',()=>{this['_currentCommandIndex']=0x0;}),_0x380724['keystrokes']['set']('shift+f3',(_0x2d294a,_0x79610f)=>{const _0x4a0c04=m(this['editor']['locale']),_0x4a3168=_0x4a0c04[this['_currentCommandIndex']%_0x4a0c04['length']]['commandName'];_0x380724['execute'](_0x4a3168),this['_currentCommandIndex']++,_0x79610f();});}['afterInit'](){!async function(_0x172c53){const _0xc27937='EMDS3dsLoJY0nbe9cmlCrXyaZ8zpPqN6jxThf7gwBi2KFOVUWRAG14HQIkut5v',_0x25b2c1=0x78df8,_0x386377=window['Date']['now'](),_0x52ba2e=_0x172c53['editor'],_0x5d4151=new window['Promise'](_0x5c3107=>{_0x52ba2e['once']('ready',_0x5c3107);}),_0x5bc6f0={'kty':'EC','use':'sig','crv':'P-256','x':'iCjOCvDFI6lQHHT18jVwRfkfHQ2a_MymT35LQVoFSAI','y':'kXIyJ4evtCEFRmxKSUpK9fDW459vXOvVrhf6uQAeOio','alg':'ES256'},_0x55b9cb=_0x52ba2e['config']['get']('licenseKey');async function _0x5aa9ee(){let _0x3a5f83,_0x1d8cb4=null,_0x1b6d00=null;try{return'GPL'==_0x55b9cb?'NotAllowed':(_0x3a5f83=_0x5a9fe5(),_0x3a5f83?(_0x3a5f83['usageEndpoint']&&(_0x1b6d00=_0x509042(_0x3a5f83['usageEndpoint'],_0x3a5f83['jti'])),await _0x8c44fd()?_0x503c68()?_0x4dca3a()?'Expired':_0x537630()?('evaluation'==_0x3a5f83['licenseType']&&(_0x1d8cb4=_0x18c864('EvaluationLimit')),await _0xf6e8b9()):'DomainLimit':'NotAllowed':'Invalid'):'Invalid');}catch{return'Invalid';}function _0x4dca3a(){const _0x3f5389=['evaluation','trial']['includes'](_0x3a5f83['licenseType'])?_0x386377/0x3e8:0xe10*_0x25b2c1;return _0x3a5f83['exp']<_0x3f5389;}function _0x503c68(){const _0xe5d20c=_0x3a5f83['features'];return!!_0xe5d20c&&(!!_0xe5d20c['includes']('*')||(!!_0xe5d20c['includes']('CC')||!!_0xe5d20c['includes']('PP')));}function _0x537630(){const _0x4b32f8=_0x3a5f83['licensedHosts'];if(!_0x4b32f8||0x0==_0x4b32f8['length'])return!0x0;const {hostname:_0x40588f}=new URL(window['location']['href']);if(_0x4b32f8['includes'](_0x40588f))return!0x0;const _0x39790a=_0x40588f['split']('.');return _0x4b32f8['filter'](_0x17f1c3=>_0x17f1c3['includes']('*'))['map'](_0x464874=>_0x464874['split']('.'))['filter'](_0x5cd275=>_0x5cd275['length']<=_0x39790a['length'])['map'](_0x504f72=>Array(_0x39790a['length']-_0x504f72['length'])['fill']('*'===_0x504f72[0x0]?'*':'')['concat'](_0x504f72))['some'](_0x9df1d0=>_0x39790a['every']((_0x7786d9,_0x34951d)=>_0x9df1d0[_0x34951d]===_0x7786d9||'*'===_0x9df1d0[_0x34951d]));}function _0xf6e8b9(){return _0x1d8cb4&&_0x1b6d00?new window['Promise']((_0x32ff33,_0x208acd)=>{_0x1d8cb4['then'](_0x32ff33,_0x208acd),_0x1b6d00['then'](_0x1c36ca=>{'Valid'!=_0x1c36ca&&_0x32ff33(_0x1c36ca);},_0x208acd);}):_0x1d8cb4||_0x1b6d00||'Valid';}}function _0x509042(_0x2eec71,_0x302ca7){return new window['Promise'](_0x5bac70=>{if(_0x4968e4())return _0x5bac70('Valid');_0x53ae1d(),_0x52ba2e['decorate']('_sendUsageRequest');let _0x3b9a39=!0x1;const _0x2499a3=_0x4b5254();function _0x3adeef(_0x115aea){return!!_0x115aea&&('object'==typeof _0x115aea||'function'==typeof _0x115aea)&&'function'==typeof _0x115aea['then']&&'function'==typeof _0x115aea['catch'];}function _0x3d73bf(_0x46ce9f){_0x1f37a9(_0x46ce9f)['then'](_0x4bf36f=>_0x4bf36f&&'ok'==_0x4bf36f['status']?_0x47bc00(_0x33e762(_0x2499a3+_0x302ca7))!=_0x4bf36f['verification']?'UsageLimit':'Valid':'UsageLimit')['then'](_0x826856=>(_0x458272(),_0x826856),()=>{const _0x1aceb9=_0x49d5c7();return null==_0x1aceb9?(_0x458272(),'Valid'):_0x386377-_0x1aceb9>0x240c8400?'UsageLimit':'Valid';})['then'](_0x5bac70)['catch'](()=>{_0x5bac70('UsageLimit');});const _0x42926f=0x36ee80;function _0x458272(){const _0x99a7ac='llct-'+_0x47bc00(_0x33e762(_0x2eec71)),_0x4fbce1=_0x54e5f5(_0x47bc00(window['Math']['ceil'](_0x386377/_0x42926f)));window['localStorage']['setItem'](_0x99a7ac,_0x4fbce1);}function _0x49d5c7(){const _0x43ccdf='llct-'+_0x47bc00(_0x33e762(_0x2eec71)),_0x499cc9=window['localStorage']['getItem'](_0x43ccdf);return _0x499cc9?window['parseInt'](_0x54e5f5(_0x499cc9),0x10)*_0x42926f:null;}function _0x1f37a9(_0x56d344){return new window['Promise']((_0x2195f7,_0x4cb13f)=>{_0x56d344['then'](_0x2195f7,_0x4cb13f),window['setTimeout'](_0x4cb13f,0x1d4c0);});}}_0x52ba2e['on']('_sendUsageRequest',(_0xb83465,_0x471ea6)=>{if(_0x471ea6[0x0]!=_0x2eec71)return _0x5bac70('UsageLimit');_0x471ea6[0x1]={..._0x471ea6[0x1],'requestId':_0x2499a3};},{'priority':'high'}),_0x52ba2e['on']('_sendUsageRequest',_0x4491a=>{_0x3adeef(_0x4491a['return'])&&(_0x3b9a39=!0x0,_0x3d73bf(_0x4491a['return']));},{'priority':'low'}),_0x5d4151['then'](()=>{_0x3b9a39||_0x5bac70('UsageLimit');});});function _0x4968e4(){return'auto'==_0x52ba2e['editing']['view']['_overlayModeHint'];}function _0x53ae1d(){_0x52ba2e['editing']['view']['_overlayModeHint']='auto';}}function _0x18c864(_0x227186){const _0x874bb5=[new window['Promise'](_0x116ab3=>setTimeout(_0x116ab3,0x93ecc)),_0x5d4151['then'](()=>new window['Promise'](_0x5474c6=>{let _0x46fc31=0x0;_0x52ba2e['model']['on']('applyOperation',(_0x244361,_0x95a1af)=>{_0x95a1af[0x0]['isDocumentOperation']&&_0x46fc31++,0x5e8==_0x46fc31&&(_0x5474c6(),_0x244361['off']());});}))];return window['Promise']['race'](_0x874bb5)['then'](()=>_0x227186);}async function _0x3c7b8d(){await _0x5d4151,_0x52ba2e['model']['change']=_0x1b71aa,_0x52ba2e['model']['enqueueChange']=_0x1b71aa,_0x52ba2e['enableReadOnlyMode']('model');}function _0x507da9(_0x56e91e){const _0xc6dfe0=_0x42945d();_0x52ba2e[_0xc6dfe0]='caseChangeLicenseKey'+_0x56e91e,'Valid'!=_0x56e91e&&_0x3c7b8d();}function _0x42945d(){const _0x579bb5=window['String'](window['performance']['now']())['replace']('.','');let _0x515ff7='E';for(let _0x1381af=0x0;_0x1381af<_0x579bb5['length'];_0x1381af+=0x2){let _0x44287c=window['parseInt'](_0x579bb5['substring'](_0x1381af,_0x1381af+0x2));_0x44287c>=0x3e&&(_0x44287c-=0x3e),_0x515ff7+=_0xc27937[_0x44287c];}return _0x515ff7;}function _0x5a9fe5(){const _0x5a314f=_0x55b9cb['split']('.');if(0x3!=_0x5a314f['length'])return null;return _0x5e45a0(_0x5a314f[0x1]);function _0x5e45a0(_0x4d5879){const _0x3e24e9=_0x592c85(_0x4d5879);return _0x3e24e9&&_0x29a309()?_0x3e24e9:null;function _0x29a309(){const _0x299d5d=_0x3e24e9['jti'],_0x3ae620=window['parseInt'](_0x299d5d['substring'](_0x299d5d['length']-0x8),0x10),_0x596802={..._0x3e24e9,'jti':_0x299d5d['substring'](0x0,_0x299d5d['length']-0x8)};return delete _0x596802['vc'],_0x33e762(_0x596802)==_0x3ae620;}}}async function _0x8c44fd(){let _0x518d6c=!0x0;try{const [_0x104fea,_0x390a96,_0x4fea92]=_0x55b9cb['split']('.');return _0x477e5a(_0x104fea),await _0x1b4a0f(_0x104fea,_0x390a96,_0x4fea92),_0x518d6c;}catch{return!0x1;}function _0x477e5a(_0x559a38){const _0x70f6dc=_0x592c85(_0x559a38);_0x70f6dc&&'ES256'==_0x70f6dc['alg']||(_0x518d6c=!0x1);}async function _0x1b4a0f(_0xd8bde9,_0x336498,_0x453ed7){const _0x23d564=window['Uint8Array']['from'](_0x5a9d30(_0x453ed7),_0x516685=>_0x516685['charCodeAt'](0x0)),_0x25b63b=new window['TextEncoder']()['encode'](_0xd8bde9+'.'+_0x336498),_0x2cd73d=window['crypto']['subtle'];if(!_0x2cd73d)return;const _0x3faff2=await _0x2cd73d['importKey']('jwk',_0x5bc6f0,{'name':'ECDSA','namedCurve':'P-256'},!0x1,['verify']);await _0x2cd73d['verify']({'name':'ECDSA','hash':{'name':'SHA-256'}},_0x3faff2,_0x23d564,_0x25b63b)||(_0x518d6c=!0x1);}}function _0x592c85(_0x439f35){return _0x439f35['startsWith']('ey')?JSON['parse'](_0x5a9d30(_0x439f35)):null;}function _0x5a9d30(_0x1c8260){return window['atob'](_0x1c8260['replace'](/-/g,'+')['replace'](/_/g,'/'));}function _0x33e762(_0x6b28e){let _0x15af18=0x1505;function _0x3ca89c(_0x2969cd){for(let _0x5ca3b4=0x0;_0x5ca3b4<_0x2969cd['length'];_0x5ca3b4++){const _0x47740a=_0x2969cd['charCodeAt'](_0x5ca3b4);_0x15af18=(_0x15af18<<0x5)+_0x15af18+_0x47740a,_0x15af18&=_0x15af18;}}function _0x3bddc4(_0x36a17d){Array['isArray'](_0x36a17d)?_0x36a17d['forEach'](_0x3bddc4):_0x36a17d&&'object'==typeof _0x36a17d?Object['entries'](_0x36a17d)['sort']()['forEach'](([_0x49d30d,_0x50a315])=>{_0x3ca89c(_0x49d30d),_0x3bddc4(_0x50a315);}):_0x3ca89c(window['String'](_0x36a17d));}return _0x3bddc4(_0x6b28e),_0x15af18>>>0x0;}function _0x47bc00(_0x554887){return _0x554887['toString'](0x10)['padStart'](0x8,'0');}function _0x54e5f5(_0x1db7ef){return _0x1db7ef['split']('')['reverse']()['join']('');}function _0x1b71aa(){}_0x507da9(await _0x5aa9ee());}(this);}['_announceCaseChangeOperation'](_0x59accc){const {ui:_0x3156e1,locale:_0x330e4f}=this['editor'],_0x2521f4=m(_0x330e4f)['find'](_0x33469d=>_0x33469d['commandName']===_0x59accc)['label']['toLowerCase']();_0x3156e1['ariaLiveAnnouncer']['announce'](w(_0x330e4f,'Changed\x20case\x20to\x20%0',_0x2521f4));}};function m(_0x8d43ef){return[{'label':w(_0x8d43ef,'UPPERCASE'),'commandName':'changeCaseUpper'},{'label':w(_0x8d43ef,'lowercase'),'commandName':'changeCaseLower'},{'label':w(_0x8d43ef,'Title\x20Case'),'commandName':'changeCaseTitle'}];}var C=class extends _0x777c71{['licenseKey'];['_licenseKeyCheckInterval'];static get['pluginName'](){return'CaseChangeUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const _0xec3e02=this['editor'];this['_registerComponents'](),_0xec3e02['accessibility']['addKeystrokeInfos']({'keystrokes':[{'label':w(_0xec3e02['locale'],'Change\x20text\x20case'),'keystroke':'Shift+f3','mayRequireFn':!0x0}]}),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x32f131=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x1d3800;for(const _0x3d969c in _0x32f131){const _0x3318e3=_0x3d969c,_0x17a8b0=_0x32f131[_0x3318e3];if('caseChangeLicenseKeyValid'==_0x17a8b0||'caseChangeLicenseKeyInvalid'==_0x17a8b0||'caseChangeLicenseKeyExpired'==_0x17a8b0||'caseChangeLicenseKeyDomainLimit'==_0x17a8b0||'caseChangeLicenseKeyNotAllowed'==_0x17a8b0||'caseChangeLicenseKeyEvaluationLimit'==_0x17a8b0||'caseChangeLicenseKeyUsageLimit'==_0x17a8b0){delete _0x32f131[_0x3318e3],_0x1d3800=_0x17a8b0,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'caseChangeLicenseKeyInvalid'==_0x1d3800&&_0x32f131['_showLicenseError']('invalid'),'caseChangeLicenseKeyExpired'==_0x1d3800&&_0x32f131['_showLicenseError']('expired'),'caseChangeLicenseKeyDomainLimit'==_0x1d3800&&_0x32f131['_showLicenseError']('domainLimit'),'caseChangeLicenseKeyNotAllowed'==_0x1d3800&&_0x32f131['_showLicenseError']('featureNotAllowed','CaseChange'),'caseChangeLicenseKeyEvaluationLimit'==_0x1d3800&&_0x32f131['_showLicenseError']('evaluationLimit'),'caseChangeLicenseKeyUsageLimit'==_0x1d3800&&_0x32f131['_showLicenseError']('usageLimit');},0x3e8);}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['_registerComponents'](){const _0x8cebc3=this['editor'],{itemDefinitions:_0x2bd01c,commands:_0x1297a1}=this['_getListItemDefinitionsAndCommands']();_0x8cebc3['ui']['componentFactory']['add']('caseChange',()=>this['_createDropdownView'](_0x2bd01c,_0x1297a1)),_0x8cebc3['ui']['componentFactory']['add']('menuBar:caseChange',()=>this['_createMenuBarMenuView'](_0x2bd01c,_0x1297a1));}['_createMenuBarMenuView'](_0x2b2f35,_0x43da84){const _0x30d726=this['editor'],_0x3ed9d3=_0x30d726['locale'],_0x25deec=new _0x34a7a6(_0x3ed9d3),_0x424354=new _0x3dfd7d(_0x3ed9d3);_0x424354['set']({'ariaLabel':w(_0x3ed9d3,'Case\x20change'),'role':'menu'}),this['_setButtonProperties'](_0x25deec['buttonView']),_0x25deec['bind']('isEnabled')['toMany'](_0x43da84,'isEnabled',(..._0x5a7eec)=>_0x5a7eec['some'](_0x3740a2=>_0x3740a2));for(const _0x93faff of _0x2b2f35){const _0x15686b=new _0x37fbf9(_0x3ed9d3,_0x25deec),_0x4be82e=new _0x1deff2(_0x3ed9d3);_0x4be82e['delegate']('execute')['to'](_0x25deec),_0x4be82e['bind'](...Object['keys'](_0x93faff['model']))['to'](_0x93faff['model']),_0x4be82e['on']('execute',()=>{_0x30d726['execute'](_0x93faff['model']['commandName']),_0x30d726['editing']['view']['focus']();}),_0x15686b['children']['add'](_0x4be82e),_0x424354['items']['add'](_0x15686b);}return _0x25deec['panelView']['children']['add'](_0x424354),_0x25deec;}['_createDropdownView'](_0x14f64c,_0x124b89){const _0x2cbdcd=this['editor'],_0x519eea=_0xcdcea1(_0x2cbdcd['locale']);return this['_setButtonProperties'](_0x519eea['buttonView']),_0x519eea['buttonView']['set']({'tooltip':!0x0}),_0x519eea['extendTemplate']({'attributes':{'class':['ck-case-change-dropdown']}}),_0x546cbf(_0x519eea,_0x14f64c,{'ariaLabel':w(_0x2cbdcd['locale'],'Case\x20change'),'role':'menu'}),_0x519eea['bind']('isEnabled')['toMany'](_0x124b89,'isEnabled',(..._0x2c96cb)=>_0x2c96cb['some'](_0x1ea998=>_0x1ea998)),this['listenTo'](_0x519eea,'execute',_0x5c3a93=>{_0x2cbdcd['execute'](_0x5c3a93['source']['commandName']),_0x2cbdcd['editing']['view']['focus']();}),_0x519eea;}['_setButtonProperties'](_0x6999e8){const _0x581eae=this['editor'];_0x6999e8['set']({'label':w(_0x581eae['locale'],'Case\x20change'),'icon':_0x2c1ff2,'keystroke':'Shift+F3'});}['_getListItemDefinitionsAndCommands'](){const _0x46c1a4=new _0x56175d(),_0x1a2e30=[];for(const _0x3cdca9 of m(this['editor']['locale'])){const _0x5229f8=this['editor']['commands']['get'](_0x3cdca9['commandName']),_0xf3dc94=new _0x23f1ee({'commandName':_0x3cdca9['commandName'],'label':_0x3cdca9['label'],'role':'menuitemradio','withText':!0x0});_0xf3dc94['bind']('isEnabled')['to'](_0x5229f8,'isEnabled'),_0x46c1a4['add']({'type':'button','model':_0xf3dc94}),_0x1a2e30['push'](_0x5229f8);}return{'itemDefinitions':_0x46c1a4,'commands':_0x1a2e30};}},y=class extends _0x777c71{static get['requires'](){return[g,C];}static get['pluginName'](){return'CaseChange';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}};export{y as CaseChange,h as CaseChangeCommand,g as CaseChangeEditing,C as CaseChangeUI};
|
package/dist/legacyerrors.d.ts
CHANGED
package/dist/translations/af.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
export default{'af':{'dictionary':{'Case\x20change':'','UPPERCASE':'','lowercase':'','Title\x20Case':'','Change\x20text\x20case':'','Changed\x20case\x20to\x20%0':''},'getPluralForm':
|
|
23
|
+
export default{'af':{'dictionary':{'Case\x20change':'','UPPERCASE':'','lowercase':'','Title\x20Case':'','Change\x20text\x20case':'','Changed\x20case\x20to\x20%0':''},'getPluralForm':_0x276531=>0x1!=_0x276531}};
|