@ckeditor/ckeditor5-template 0.0.0-internal-20241017.0
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/CHANGELOG.md +4 -0
- package/LICENSE.md +18 -0
- package/README.md +42 -0
- package/build/template.js +5 -0
- package/build/translations/ar.js +1 -0
- package/build/translations/bg.js +1 -0
- package/build/translations/bn.js +1 -0
- package/build/translations/ca.js +1 -0
- package/build/translations/cs.js +1 -0
- package/build/translations/da.js +1 -0
- package/build/translations/de.js +1 -0
- package/build/translations/el.js +1 -0
- package/build/translations/en-au.js +1 -0
- package/build/translations/es.js +1 -0
- package/build/translations/et.js +1 -0
- package/build/translations/fi.js +1 -0
- package/build/translations/fr.js +1 -0
- package/build/translations/gl.js +1 -0
- package/build/translations/he.js +1 -0
- package/build/translations/hi.js +1 -0
- package/build/translations/hr.js +1 -0
- package/build/translations/hu.js +1 -0
- package/build/translations/id.js +1 -0
- package/build/translations/it.js +1 -0
- package/build/translations/ja.js +1 -0
- package/build/translations/ko.js +1 -0
- package/build/translations/lt.js +1 -0
- package/build/translations/lv.js +1 -0
- package/build/translations/ms.js +1 -0
- package/build/translations/nl.js +1 -0
- package/build/translations/no.js +1 -0
- package/build/translations/pl.js +1 -0
- package/build/translations/pt-br.js +1 -0
- package/build/translations/pt.js +1 -0
- package/build/translations/ro.js +1 -0
- package/build/translations/ru.js +1 -0
- package/build/translations/sk.js +1 -0
- package/build/translations/sr-latn.js +1 -0
- package/build/translations/sr.js +1 -0
- package/build/translations/sv.js +1 -0
- package/build/translations/th.js +1 -0
- package/build/translations/tr.js +1 -0
- package/build/translations/uk.js +1 -0
- package/build/translations/uz.js +1 -0
- package/build/translations/vi.js +1 -0
- package/build/translations/zh-cn.js +1 -0
- package/build/translations/zh.js +1 -0
- package/ckeditor5-metadata.json +18 -0
- package/dist/augmentation.d.ts +27 -0
- package/dist/index-content.css +5 -0
- package/dist/index-editor.css +126 -0
- package/dist/index.css +153 -0
- package/dist/index.d.ts +17 -0
- package/dist/index.js +23 -0
- package/dist/legacyerrors.d.ts +24 -0
- package/dist/template.d.ts +127 -0
- package/dist/templatecommand.d.ts +27 -0
- package/dist/templateediting.d.ts +34 -0
- package/dist/templateui.d.ts +41 -0
- package/dist/translations/ar.d.ts +8 -0
- package/dist/translations/ar.js +23 -0
- package/dist/translations/ar.umd.js +23 -0
- package/dist/translations/bg.d.ts +8 -0
- package/dist/translations/bg.js +23 -0
- package/dist/translations/bg.umd.js +23 -0
- package/dist/translations/bn.d.ts +8 -0
- package/dist/translations/bn.js +23 -0
- package/dist/translations/bn.umd.js +23 -0
- package/dist/translations/ca.d.ts +8 -0
- package/dist/translations/ca.js +23 -0
- package/dist/translations/ca.umd.js +23 -0
- package/dist/translations/cs.d.ts +8 -0
- package/dist/translations/cs.js +23 -0
- package/dist/translations/cs.umd.js +23 -0
- package/dist/translations/da.d.ts +8 -0
- package/dist/translations/da.js +23 -0
- package/dist/translations/da.umd.js +23 -0
- package/dist/translations/de.d.ts +8 -0
- package/dist/translations/de.js +23 -0
- package/dist/translations/de.umd.js +23 -0
- package/dist/translations/el.d.ts +8 -0
- package/dist/translations/el.js +23 -0
- package/dist/translations/el.umd.js +23 -0
- package/dist/translations/en-au.d.ts +8 -0
- package/dist/translations/en-au.js +23 -0
- package/dist/translations/en-au.umd.js +23 -0
- package/dist/translations/en.d.ts +8 -0
- package/dist/translations/en.js +23 -0
- package/dist/translations/en.umd.js +23 -0
- package/dist/translations/es.d.ts +8 -0
- package/dist/translations/es.js +23 -0
- package/dist/translations/es.umd.js +23 -0
- package/dist/translations/et.d.ts +8 -0
- package/dist/translations/et.js +23 -0
- package/dist/translations/et.umd.js +23 -0
- package/dist/translations/fi.d.ts +8 -0
- package/dist/translations/fi.js +23 -0
- package/dist/translations/fi.umd.js +23 -0
- package/dist/translations/fr.d.ts +8 -0
- package/dist/translations/fr.js +23 -0
- package/dist/translations/fr.umd.js +23 -0
- package/dist/translations/gl.d.ts +8 -0
- package/dist/translations/gl.js +23 -0
- package/dist/translations/gl.umd.js +23 -0
- package/dist/translations/he.d.ts +8 -0
- package/dist/translations/he.js +23 -0
- package/dist/translations/he.umd.js +23 -0
- package/dist/translations/hi.d.ts +8 -0
- package/dist/translations/hi.js +23 -0
- package/dist/translations/hi.umd.js +23 -0
- package/dist/translations/hr.d.ts +8 -0
- package/dist/translations/hr.js +23 -0
- package/dist/translations/hr.umd.js +23 -0
- package/dist/translations/hu.d.ts +8 -0
- package/dist/translations/hu.js +23 -0
- package/dist/translations/hu.umd.js +23 -0
- package/dist/translations/id.d.ts +8 -0
- package/dist/translations/id.js +23 -0
- package/dist/translations/id.umd.js +23 -0
- package/dist/translations/it.d.ts +8 -0
- package/dist/translations/it.js +23 -0
- package/dist/translations/it.umd.js +23 -0
- package/dist/translations/ja.d.ts +8 -0
- package/dist/translations/ja.js +23 -0
- package/dist/translations/ja.umd.js +23 -0
- package/dist/translations/ko.d.ts +8 -0
- package/dist/translations/ko.js +23 -0
- package/dist/translations/ko.umd.js +23 -0
- package/dist/translations/lt.d.ts +8 -0
- package/dist/translations/lt.js +23 -0
- package/dist/translations/lt.umd.js +23 -0
- package/dist/translations/lv.d.ts +8 -0
- package/dist/translations/lv.js +23 -0
- package/dist/translations/lv.umd.js +23 -0
- package/dist/translations/ms.d.ts +8 -0
- package/dist/translations/ms.js +23 -0
- package/dist/translations/ms.umd.js +23 -0
- package/dist/translations/nl.d.ts +8 -0
- package/dist/translations/nl.js +23 -0
- package/dist/translations/nl.umd.js +23 -0
- package/dist/translations/no.d.ts +8 -0
- package/dist/translations/no.js +23 -0
- package/dist/translations/no.umd.js +23 -0
- package/dist/translations/pl.d.ts +8 -0
- package/dist/translations/pl.js +23 -0
- package/dist/translations/pl.umd.js +23 -0
- package/dist/translations/pt-br.d.ts +8 -0
- package/dist/translations/pt-br.js +23 -0
- package/dist/translations/pt-br.umd.js +23 -0
- package/dist/translations/pt.d.ts +8 -0
- package/dist/translations/pt.js +23 -0
- package/dist/translations/pt.umd.js +23 -0
- package/dist/translations/ro.d.ts +8 -0
- package/dist/translations/ro.js +23 -0
- package/dist/translations/ro.umd.js +23 -0
- package/dist/translations/ru.d.ts +8 -0
- package/dist/translations/ru.js +23 -0
- package/dist/translations/ru.umd.js +23 -0
- package/dist/translations/sk.d.ts +8 -0
- package/dist/translations/sk.js +23 -0
- package/dist/translations/sk.umd.js +23 -0
- package/dist/translations/sr-latn.d.ts +8 -0
- package/dist/translations/sr-latn.js +23 -0
- package/dist/translations/sr-latn.umd.js +23 -0
- package/dist/translations/sr.d.ts +8 -0
- package/dist/translations/sr.js +23 -0
- package/dist/translations/sr.umd.js +23 -0
- package/dist/translations/sv.d.ts +8 -0
- package/dist/translations/sv.js +23 -0
- package/dist/translations/sv.umd.js +23 -0
- package/dist/translations/th.d.ts +8 -0
- package/dist/translations/th.js +23 -0
- package/dist/translations/th.umd.js +23 -0
- package/dist/translations/tr.d.ts +8 -0
- package/dist/translations/tr.js +23 -0
- package/dist/translations/tr.umd.js +23 -0
- package/dist/translations/uk.d.ts +8 -0
- package/dist/translations/uk.js +23 -0
- package/dist/translations/uk.umd.js +23 -0
- package/dist/translations/uz.d.ts +8 -0
- package/dist/translations/uz.js +23 -0
- package/dist/translations/uz.umd.js +23 -0
- package/dist/translations/vi.d.ts +8 -0
- package/dist/translations/vi.js +23 -0
- package/dist/translations/vi.umd.js +23 -0
- package/dist/translations/zh-cn.d.ts +8 -0
- package/dist/translations/zh-cn.js +23 -0
- package/dist/translations/zh-cn.umd.js +23 -0
- package/dist/translations/zh.d.ts +8 -0
- package/dist/translations/zh.js +23 -0
- package/dist/translations/zh.umd.js +23 -0
- package/dist/ui/templatelistbuttonview.d.ts +108 -0
- package/dist/ui/templatelistitemview.d.ts +38 -0
- package/dist/ui/templatelistview.d.ts +42 -0
- package/dist/utils/common-translations.d.ts +13 -0
- package/lang/contexts.json +9 -0
- package/lang/translations/ar.po +46 -0
- package/lang/translations/bg.po +46 -0
- package/lang/translations/bn.po +46 -0
- package/lang/translations/ca.po +46 -0
- package/lang/translations/cs.po +46 -0
- package/lang/translations/da.po +46 -0
- package/lang/translations/de.po +46 -0
- package/lang/translations/el.po +46 -0
- package/lang/translations/en-au.po +46 -0
- package/lang/translations/en.po +46 -0
- package/lang/translations/es.po +46 -0
- package/lang/translations/et.po +46 -0
- package/lang/translations/fi.po +46 -0
- package/lang/translations/fr.po +46 -0
- package/lang/translations/gl.po +46 -0
- package/lang/translations/he.po +46 -0
- package/lang/translations/hi.po +46 -0
- package/lang/translations/hr.po +46 -0
- package/lang/translations/hu.po +46 -0
- package/lang/translations/id.po +46 -0
- package/lang/translations/it.po +46 -0
- package/lang/translations/ja.po +46 -0
- package/lang/translations/ko.po +46 -0
- package/lang/translations/lt.po +46 -0
- package/lang/translations/lv.po +46 -0
- package/lang/translations/ms.po +46 -0
- package/lang/translations/nl.po +46 -0
- package/lang/translations/no.po +46 -0
- package/lang/translations/pl.po +46 -0
- package/lang/translations/pt-br.po +46 -0
- package/lang/translations/pt.po +46 -0
- package/lang/translations/ro.po +46 -0
- package/lang/translations/ru.po +46 -0
- package/lang/translations/sk.po +46 -0
- package/lang/translations/sr-latn.po +46 -0
- package/lang/translations/sr.po +46 -0
- package/lang/translations/sv.po +46 -0
- package/lang/translations/th.po +46 -0
- package/lang/translations/tr.po +46 -0
- package/lang/translations/uk.po +46 -0
- package/lang/translations/uz.po +46 -0
- package/lang/translations/vi.po +46 -0
- package/lang/translations/zh-cn.po +46 -0
- package/lang/translations/zh.po +46 -0
- package/package.json +47 -0
- package/src/augmentation.d.ts +23 -0
- package/src/augmentation.js +23 -0
- package/src/index.d.ts +13 -0
- package/src/index.js +23 -0
- package/src/legacyerrors.d.ts +20 -0
- package/src/legacyerrors.js +23 -0
- package/src/template.d.ts +123 -0
- package/src/template.js +23 -0
- package/src/templatecommand.d.ts +23 -0
- package/src/templatecommand.js +23 -0
- package/src/templateediting.d.ts +30 -0
- package/src/templateediting.js +23 -0
- package/src/templateui.d.ts +37 -0
- package/src/templateui.js +23 -0
- package/src/ui/templatelistbuttonview.d.ts +104 -0
- package/src/ui/templatelistbuttonview.js +23 -0
- package/src/ui/templatelistitemview.d.ts +34 -0
- package/src/ui/templatelistitemview.js +23 -0
- package/src/ui/templatelistview.d.ts +38 -0
- package/src/ui/templatelistview.js +23 -0
- package/src/utils/common-translations.d.ts +9 -0
- package/src/utils/common-translations.js +23 -0
- package/theme/icons/template-generic.svg +6 -0
- package/theme/template.css +147 -0
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
|
+
*
|
|
4
|
+
*
|
|
5
|
+
*
|
|
6
|
+
*
|
|
7
|
+
* +---------------------------------------------------------------------------------+
|
|
8
|
+
* | |
|
|
9
|
+
* | Hello stranger! |
|
|
10
|
+
* | |
|
|
11
|
+
* | |
|
|
12
|
+
* | What you're currently looking at is the source code of a legally protected, |
|
|
13
|
+
* | proprietary software. Any attempts to deobfuscate / disassemble this code |
|
|
14
|
+
* | are forbidden and will result in legal consequences. |
|
|
15
|
+
* | |
|
|
16
|
+
* | |
|
|
17
|
+
* +---------------------------------------------------------------------------------+
|
|
18
|
+
*
|
|
19
|
+
*
|
|
20
|
+
*
|
|
21
|
+
*
|
|
22
|
+
*/
|
|
23
|
+
(function(_0x95519b,_0x4d0f12){var _0x59f204=_0xb7e0,_0x5e1e01=_0x95519b();while(!![]){try{var _0x2aa7f7=parseInt(_0x59f204(0x91))/0x1+parseInt(_0x59f204(0x99))/0x2+parseInt(_0x59f204(0x96))/0x3*(-parseInt(_0x59f204(0x97))/0x4)+parseInt(_0x59f204(0x90))/0x5+-parseInt(_0x59f204(0x9a))/0x6+-parseInt(_0x59f204(0x94))/0x7+-parseInt(_0x59f204(0x92))/0x8*(-parseInt(_0x59f204(0x93))/0x9);if(_0x2aa7f7===_0x4d0f12)break;else _0x5e1e01['push'](_0x5e1e01['shift']());}catch(_0xee4340){_0x5e1e01['push'](_0x5e1e01['shift']());}}}(_0x38f0,0x8eb16));import{ListItemView as _0x5e75ed}from'ckeditor5/src/ui.js';function _0xb7e0(_0x51f610,_0x47e15f){var _0x38f08a=_0x38f0();return _0xb7e0=function(_0xb7e064,_0x6fcee9){_0xb7e064=_0xb7e064-0x90;var _0x512290=_0x38f08a[_0xb7e064];return _0x512290;},_0xb7e0(_0x51f610,_0x47e15f);}export default class p extends _0x5e75ed{constructor(_0x44bb16,_0x1d010e){var _0x25a6c3=_0xb7e0;super(_0x44bb16),this[_0x25a6c3(0x95)]=_0x1d010e,this[_0x25a6c3(0x98)]=null;}}function _0x38f0(){var _0x86f35f=['5290320jgPciM','593990cJpyeq','758633BjScCw','8hvECwu','4776903KFDTuD','4020681tCVXGZ','originalIndex','3yExewa','1326288NCtgxE','buttonView','1927894ZrMESg'];_0x38f0=function(){return _0x86f35f;};return _0x38f0();}
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
|
+
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
|
4
|
+
*/
|
|
5
|
+
/**
|
|
6
|
+
* @module template/ui/templatelistview
|
|
7
|
+
*/
|
|
8
|
+
import { ListView, type FilteredView } from 'ckeditor5/src/ui.js';
|
|
9
|
+
/**
|
|
10
|
+
* The template list view class with filtering and sorting.
|
|
11
|
+
*
|
|
12
|
+
* @private
|
|
13
|
+
*/
|
|
14
|
+
export default class TemplateListView extends ListView implements FilteredView {
|
|
15
|
+
/**
|
|
16
|
+
* Filters the list of templates according to a specified regular expression. The filtered list is sorted so that items that
|
|
17
|
+
* match the regular expression in their titles are displayed first.
|
|
18
|
+
*
|
|
19
|
+
* Matching items highlight the regular expression (query) in their titles and/or descriptions.
|
|
20
|
+
*
|
|
21
|
+
* **Note**: The `Collection` (also `ViewCollection`) class does not provide sorting functionality. Thus, the functionality
|
|
22
|
+
* implemented in this method is **extremely inefficient** because it clones the entire collection, sorts it as an array,
|
|
23
|
+
* then purges the original collection and sets it from scratch with the sorted array. Purging and resetting the
|
|
24
|
+
* collection triggers an avalanche of `add` and `remove` events synchronously handled by the `Template` (UI bindings)
|
|
25
|
+
* and **rendered in the DOM**. As long as sorting takes shorter than rendering of the DOM this should not be noticeable
|
|
26
|
+
* but the moment it does not, the UI will start glitching. A proper `Collection#sort` is needed to work around
|
|
27
|
+
* this overhead (see https://github.com/ckeditor/ckeditor5/issues/2065).
|
|
28
|
+
*
|
|
29
|
+
* **Note**: Passing `null` to this method resets the list to its original state.
|
|
30
|
+
*
|
|
31
|
+
* @param regExp A regular expression used to match the list title and description.
|
|
32
|
+
* @returns True if some list items matched the regular expression. False otherwise.
|
|
33
|
+
*/
|
|
34
|
+
filter(regExp: RegExp | null): {
|
|
35
|
+
resultsCount: number;
|
|
36
|
+
totalItemsCount: number;
|
|
37
|
+
};
|
|
38
|
+
}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
|
+
*
|
|
4
|
+
*
|
|
5
|
+
*
|
|
6
|
+
*
|
|
7
|
+
* +---------------------------------------------------------------------------------+
|
|
8
|
+
* | |
|
|
9
|
+
* | Hello stranger! |
|
|
10
|
+
* | |
|
|
11
|
+
* | |
|
|
12
|
+
* | What you're currently looking at is the source code of a legally protected, |
|
|
13
|
+
* | proprietary software. Any attempts to deobfuscate / disassemble this code |
|
|
14
|
+
* | are forbidden and will result in legal consequences. |
|
|
15
|
+
* | |
|
|
16
|
+
* | |
|
|
17
|
+
* +---------------------------------------------------------------------------------+
|
|
18
|
+
*
|
|
19
|
+
*
|
|
20
|
+
*
|
|
21
|
+
*
|
|
22
|
+
*/
|
|
23
|
+
function _0x13ce(_0x2e7b28,_0x50f471){const _0x4ff8d4=_0x4ff8();return _0x13ce=function(_0x13ce2c,_0x30cb19){_0x13ce2c=_0x13ce2c-0x86;let _0x3a75d7=_0x4ff8d4[_0x13ce2c];return _0x3a75d7;},_0x13ce(_0x2e7b28,_0x50f471);}function _0x4ff8(){const _0x30d573=['242516ZvKcOO','forEach','5622129UZtldU','buttonView','19270cNEwSb','488eFOJeb','map','clear','size','filter','sort','433056FdwWmi','originalIndex','items','10QmxjJP','23880myZIEi','highlightText','_resetFiltering','isVisible','31100883OqGMwz','addMany','set','86023QygbWV','get','length','isMatching','24NtEAZe','title','534ggdMNJ'];_0x4ff8=function(){return _0x30d573;};return _0x4ff8();}const _0x39a49a=_0x13ce;(function(_0x66d422,_0x28d5ad){const _0x2d8d46=_0x13ce,_0x47aff6=_0x66d422();while(!![]){try{const _0x19b5b9=-parseInt(_0x2d8d46(0x9e))/0x1+-parseInt(_0x2d8d46(0x9a))/0x2+-parseInt(_0x2d8d46(0x8c))/0x3*(parseInt(_0x2d8d46(0x8f))/0x4)+-parseInt(_0x2d8d46(0x93))/0x5*(parseInt(_0x2d8d46(0x8e))/0x6)+parseInt(_0x2d8d46(0x88))/0x7*(-parseInt(_0x2d8d46(0x94))/0x8)+-parseInt(_0x2d8d46(0x91))/0x9+-parseInt(_0x2d8d46(0x9d))/0xa*(-parseInt(_0x2d8d46(0xa2))/0xb);if(_0x19b5b9===_0x28d5ad)break;else _0x47aff6['push'](_0x47aff6['shift']());}catch(_0x550002){_0x47aff6['push'](_0x47aff6['shift']());}}}(_0x4ff8,0x5de55));import{ListView as _0x2d711a}from'ckeditor5/src/ui.js';export default class d extends _0x2d711a{[_0x39a49a(0x98)](_0x17ba71){const _0x18b09f=_0x39a49a;if(!_0x17ba71)return this[_0x18b09f(0xa0)]();const _0x3fc01d=new Map(),_0x1e0de7=this[_0x18b09f(0x9c)][_0x18b09f(0x95)](_0x3803c7=>{const _0x34af11=_0x18b09f,_0x35101e=_0x3803c7[_0x34af11(0x92)][_0x34af11(0x8b)](_0x17ba71);return _0x3803c7[_0x34af11(0xa1)]=!!_0x35101e,_0x3803c7[_0x34af11(0x92)][_0x34af11(0x9f)](_0x35101e?_0x17ba71:null),_0x35101e&&_0x3fc01d[_0x34af11(0x87)](_0x3803c7,_0x35101e),_0x3803c7;})[_0x18b09f(0x99)](I)[_0x18b09f(0x99)](function(_0x231e93){return function(_0x473ffe,_0x4bafbf){const _0x50e879=_0x13ce,_0x507d20=_0x231e93[_0x50e879(0x89)](_0x473ffe),_0x184d97=_0x231e93[_0x50e879(0x89)](_0x4bafbf);return _0x507d20&&!_0x184d97?-0x1:_0x184d97&&!_0x507d20?0x1:_0x507d20||_0x184d97?_0x507d20[_0x50e879(0x8d)]&&!_0x184d97[_0x50e879(0x8d)]?-0x1:!_0x507d20[_0x50e879(0x8d)]&&_0x184d97[_0x50e879(0x8d)]?0x1:0x0:0x0;};}(_0x3fc01d));return this[_0x18b09f(0x9c)][_0x18b09f(0x96)](),this[_0x18b09f(0x9c)][_0x18b09f(0x86)](_0x1e0de7),{'resultsCount':_0x3fc01d[_0x18b09f(0x97)],'totalItemsCount':this[_0x18b09f(0x9c)][_0x18b09f(0x8a)]};}[_0x39a49a(0xa0)](){const _0x4cf5ff=_0x39a49a,_0xa22155=this[_0x4cf5ff(0x9c)][_0x4cf5ff(0x95)](_0xd22474=>_0xd22474)[_0x4cf5ff(0x99)](I);return _0xa22155[_0x4cf5ff(0x90)](_0x216893=>{const _0x50f9bb=_0x4cf5ff;_0x216893[_0x50f9bb(0xa1)]=!0x0,_0x216893[_0x50f9bb(0x92)][_0x50f9bb(0x9f)](null);}),this[_0x4cf5ff(0x9c)][_0x4cf5ff(0x96)](),this[_0x4cf5ff(0x9c)][_0x4cf5ff(0x86)](_0xa22155),{'resultsCount':_0xa22155[_0x4cf5ff(0x8a)],'totalItemsCount':_0xa22155[_0x4cf5ff(0x8a)]};}}function I(_0x2c7e48,_0xd76e3){const _0x4c1cee=_0x39a49a;return _0x2c7e48[_0x4c1cee(0x9b)]-_0xd76e3[_0x4c1cee(0x9b)];}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
|
+
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
|
4
|
+
*/
|
|
5
|
+
/**
|
|
6
|
+
* @module template/utils/common-translations
|
|
7
|
+
*/
|
|
8
|
+
import type { Locale } from 'ckeditor5/src/utils.js';
|
|
9
|
+
export declare function getTranslation(locale: Locale, id: string, ...args: Array<any>): string;
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
|
+
*
|
|
4
|
+
*
|
|
5
|
+
*
|
|
6
|
+
*
|
|
7
|
+
* +---------------------------------------------------------------------------------+
|
|
8
|
+
* | |
|
|
9
|
+
* | Hello stranger! |
|
|
10
|
+
* | |
|
|
11
|
+
* | |
|
|
12
|
+
* | What you're currently looking at is the source code of a legally protected, |
|
|
13
|
+
* | proprietary software. Any attempts to deobfuscate / disassemble this code |
|
|
14
|
+
* | are forbidden and will result in legal consequences. |
|
|
15
|
+
* | |
|
|
16
|
+
* | |
|
|
17
|
+
* +---------------------------------------------------------------------------------+
|
|
18
|
+
*
|
|
19
|
+
*
|
|
20
|
+
*
|
|
21
|
+
*
|
|
22
|
+
*/
|
|
23
|
+
export function getTranslation(_0x38201a,_0x23c8a9,..._0x4fe4ee){const t=_0x38201a['t'];switch(_0x23c8a9){case'No\x20templates\x20were\x20found\x20matching\x20\x22%0\x22.':return t('No\x20templates\x20were\x20found\x20matching\x20\x22%0\x22.',..._0x4fe4ee);case'Please\x20try\x20a\x20different\x20phrase\x20or\x20check\x20the\x20spelling.':return t('Please\x20try\x20a\x20different\x20phrase\x20or\x20check\x20the\x20spelling.');case'No\x20templates\x20available.':return t('No\x20templates\x20available.');case'%0\x20templates\x20found':return t('%0\x20templates\x20found',..._0x4fe4ee);case'Search\x20template':return t('Search\x20template');case'Template':return t('Template');case'Insert\x20template':return t('Insert\x20template');default:return _0x23c8a9;}}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
<svg fill="none" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 45 45">
|
|
2
|
+
<path fill="#F0F0F0" d="M2 0h41s2 0 2 2v41s0 2 -2 2h-41s-2 0 -2 -2v-41s0 -2 2 -2" />
|
|
3
|
+
<path fill="#D5D5D5" d="M11 10h10s1 0 1 1v24s0 1 -1 1h-10s-1 0 -1 -1v-24s0 -1 1 -1" />
|
|
4
|
+
<path fill="#D5D5D5" d="M25 10h10s1 0 1 1v10s0 1 -1 1h-10s-1 0 -1 -1v-10s0 -1 1 -1" />
|
|
5
|
+
<path fill="#D5D5D5" d="M25 24h10s1 0 1 1v10s0 1 -1 1h-10s-1 0 -1 -1v-10s0 -1 1 -1" />
|
|
6
|
+
</svg>
|
|
@@ -0,0 +1,147 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* What you're currently looking at is the source code of a legally protected, proprietary software.
|
|
3
|
+
* CKEditor 5 Collaboration is licensed under a commercial license and protected by copyright law. Where not otherwise indicated,
|
|
4
|
+
* all CKEditor 5 Collaboration content is authored by CKSource engineers and consists of CKSource-owned intellectual property.
|
|
5
|
+
*
|
|
6
|
+
* Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
|
|
7
|
+
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
|
8
|
+
*/
|
|
9
|
+
|
|
10
|
+
@import "@ckeditor/ckeditor5-ui/theme/mixins/_rwd.css";
|
|
11
|
+
|
|
12
|
+
:root {
|
|
13
|
+
--ck-template-dropdown-view-width: 345px;
|
|
14
|
+
--ck-template-dropdown-view-height: 300px;
|
|
15
|
+
--ck-template-icon-size: 45px;
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
/* Override default rules for icons to allow any fill color. */
|
|
19
|
+
.ck-button.ck-template-button {
|
|
20
|
+
& .ck.ck-icon {
|
|
21
|
+
color: unset;
|
|
22
|
+
|
|
23
|
+
& * {
|
|
24
|
+
color: unset;
|
|
25
|
+
|
|
26
|
+
&:not([fill]) {
|
|
27
|
+
fill: unset;
|
|
28
|
+
}
|
|
29
|
+
}
|
|
30
|
+
}
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
.ck.ck-template-form {
|
|
34
|
+
width: var(--ck-template-dropdown-view-width);
|
|
35
|
+
|
|
36
|
+
@mixin ck-media-phone {
|
|
37
|
+
--ck-template-dropdown-view-width: 260px;
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
& > .ck-labeled-field-view {
|
|
41
|
+
padding: var(--ck-spacing-large);
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
& > .ck-search__results {
|
|
45
|
+
border-top: 1px solid var(--ck-color-base-border);
|
|
46
|
+
|
|
47
|
+
& > .ck.ck-list.ck-template-list {
|
|
48
|
+
max-height: var(--ck-template-dropdown-view-height);
|
|
49
|
+
padding: var(--ck-spacing-large);
|
|
50
|
+
overflow-x: hidden;
|
|
51
|
+
overflow-y: auto;
|
|
52
|
+
overscroll-behavior: contain;
|
|
53
|
+
|
|
54
|
+
/*
|
|
55
|
+
* This is a dirty way to increase the selector specificity and override the default rounded corners
|
|
56
|
+
* of a list inside a dropdown panel
|
|
57
|
+
*/
|
|
58
|
+
.ck-rounded-corners & {
|
|
59
|
+
border-radius: 0;
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
& > .ck.ck-list__item {
|
|
63
|
+
/* This is an easy way to address the problem of spacings between hidden and visible list items */
|
|
64
|
+
&:not(.ck-hidden) ~ .ck.ck-list__item {
|
|
65
|
+
margin-top: var(--ck-spacing-large);
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
& > .ck.ck-button {
|
|
69
|
+
width: 100%;
|
|
70
|
+
margin: 0;
|
|
71
|
+
padding: 0;
|
|
72
|
+
border-radius: var(--ck-border-radius);
|
|
73
|
+
|
|
74
|
+
/* Crop the icon when the border-radius is large */
|
|
75
|
+
overflow: hidden;
|
|
76
|
+
|
|
77
|
+
display: grid;
|
|
78
|
+
grid-template-columns: var(--ck-template-icon-size) 1fr;
|
|
79
|
+
grid-template-rows: var(--ck-template-icon-size);
|
|
80
|
+
grid-auto-columns: 1fr;
|
|
81
|
+
|
|
82
|
+
gap: var(--ck-spacing-large) var(--ck-spacing-large);
|
|
83
|
+
grid-auto-flow: column dense;
|
|
84
|
+
align-items: center;
|
|
85
|
+
grid-template-areas: "ck-template-icon ck-template-content";
|
|
86
|
+
|
|
87
|
+
&:not(:focus) {
|
|
88
|
+
border-color: var(--ck-color-dropdown-panel-background);
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
& > .ck.ck-icon {
|
|
92
|
+
width: var(--ck-template-icon-size);
|
|
93
|
+
height: auto;
|
|
94
|
+
grid-area: ck-template-icon;
|
|
95
|
+
margin: 0;
|
|
96
|
+
}
|
|
97
|
+
|
|
98
|
+
& > .ck-template-form__text-part {
|
|
99
|
+
display: flex;
|
|
100
|
+
flex-direction: column;
|
|
101
|
+
justify-content: space-evenly;
|
|
102
|
+
height: 100%;
|
|
103
|
+
grid-area: ck-template-content;
|
|
104
|
+
min-width: 0;
|
|
105
|
+
margin: 0;
|
|
106
|
+
|
|
107
|
+
& > .ck.ck-button__label {
|
|
108
|
+
display: block;
|
|
109
|
+
font-weight: bold;
|
|
110
|
+
font-size: var(--ck-font-size-base);
|
|
111
|
+
color: var(--ck-color-text);
|
|
112
|
+
line-height: 1.1;
|
|
113
|
+
|
|
114
|
+
white-space: nowrap;
|
|
115
|
+
overflow: hidden;
|
|
116
|
+
text-overflow: ellipsis;
|
|
117
|
+
}
|
|
118
|
+
|
|
119
|
+
& .ck-template-form__description {
|
|
120
|
+
display: -webkit-box;
|
|
121
|
+
font-size: 0.85em;
|
|
122
|
+
color: var(--ck-color-text);
|
|
123
|
+
line-height: 1.1;
|
|
124
|
+
|
|
125
|
+
/* Leave some tiny spacing between title and description. */
|
|
126
|
+
margin-top: var(--ck-spacing-tiny);
|
|
127
|
+
|
|
128
|
+
white-space: normal;
|
|
129
|
+
overflow: hidden;
|
|
130
|
+
text-overflow: ellipsis;
|
|
131
|
+
-webkit-box-orient: vertical;
|
|
132
|
+
-webkit-line-clamp: 2;
|
|
133
|
+
}
|
|
134
|
+
|
|
135
|
+
& mark {
|
|
136
|
+
background: var(--ck-color-highlight-background);
|
|
137
|
+
vertical-align: initial;
|
|
138
|
+
font-weight: inherit;
|
|
139
|
+
line-height: inherit;
|
|
140
|
+
font-size: inherit;
|
|
141
|
+
}
|
|
142
|
+
}
|
|
143
|
+
}
|
|
144
|
+
}
|
|
145
|
+
}
|
|
146
|
+
}
|
|
147
|
+
}
|