@ckeditor/ckeditor5-merge-fields 43.0.0 → 43.1.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/build/merge-fields.js +2 -2
- package/build/translations/ar.js +1 -1
- package/build/translations/bg.js +1 -1
- package/build/translations/bn.js +1 -1
- package/build/translations/ca.js +1 -1
- package/build/translations/cs.js +1 -1
- package/build/translations/da.js +1 -1
- package/build/translations/de.js +1 -1
- package/build/translations/el.js +1 -1
- package/build/translations/es.js +1 -1
- package/build/translations/et.js +1 -1
- package/build/translations/fi.js +1 -1
- package/build/translations/fr.js +1 -1
- package/build/translations/gl.js +1 -0
- package/build/translations/he.js +1 -1
- package/build/translations/hi.js +1 -1
- package/build/translations/hr.js +1 -1
- package/build/translations/hu.js +1 -1
- package/build/translations/id.js +1 -1
- package/build/translations/it.js +1 -1
- package/build/translations/ja.js +1 -1
- package/build/translations/ko.js +1 -1
- package/build/translations/lt.js +1 -1
- package/build/translations/lv.js +1 -1
- package/build/translations/ms.js +1 -1
- package/build/translations/nl.js +1 -1
- package/build/translations/no.js +1 -1
- package/build/translations/pl.js +1 -1
- package/build/translations/pt-br.js +1 -1
- package/build/translations/pt.js +1 -1
- package/build/translations/ro.js +1 -1
- package/build/translations/ru.js +1 -1
- package/build/translations/sk.js +1 -1
- package/build/translations/sr.js +1 -1
- package/build/translations/sv.js +1 -1
- package/build/translations/th.js +1 -1
- package/build/translations/tr.js +1 -1
- package/build/translations/uk.js +1 -1
- package/build/translations/vi.js +1 -1
- package/build/translations/zh-cn.js +1 -1
- package/build/translations/zh.js +1 -1
- package/dist/index-editor.css +91 -35
- package/dist/index.css +98 -37
- package/dist/index.js +1 -1
- package/dist/translations/ar.js +1 -1
- package/dist/translations/ar.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/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.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.js +1 -1
- package/dist/translations/en.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/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.d.ts +8 -0
- package/dist/translations/gl.js +23 -0
- package/dist/translations/gl.umd.js +23 -0
- 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/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/ko.js +1 -1
- package/dist/translations/ko.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/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/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/sk.js +1 -1
- package/dist/translations/sk.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/tr.js +1 -1
- package/dist/translations/tr.umd.js +1 -1
- package/dist/translations/uk.js +1 -1
- package/dist/translations/uk.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/lang/translations/ar.po +3 -7
- package/lang/translations/bg.po +3 -7
- package/lang/translations/bn.po +3 -7
- package/lang/translations/ca.po +3 -7
- package/lang/translations/cs.po +3 -7
- package/lang/translations/da.po +3 -7
- package/lang/translations/de.po +3 -7
- package/lang/translations/el.po +3 -7
- package/lang/translations/en.po +3 -7
- package/lang/translations/es.po +3 -7
- package/lang/translations/et.po +3 -7
- package/lang/translations/fi.po +3 -7
- package/lang/translations/fr.po +3 -7
- package/lang/translations/gl.po +62 -0
- package/lang/translations/he.po +3 -7
- package/lang/translations/hi.po +3 -7
- package/lang/translations/hr.po +3 -7
- package/lang/translations/hu.po +3 -7
- package/lang/translations/id.po +3 -7
- package/lang/translations/it.po +3 -7
- package/lang/translations/ja.po +3 -7
- package/lang/translations/ko.po +3 -7
- package/lang/translations/lt.po +3 -7
- package/lang/translations/lv.po +3 -7
- package/lang/translations/ms.po +3 -7
- package/lang/translations/nl.po +3 -7
- package/lang/translations/no.po +3 -7
- package/lang/translations/pl.po +3 -7
- package/lang/translations/pt-br.po +3 -7
- package/lang/translations/pt.po +3 -7
- package/lang/translations/ro.po +3 -7
- package/lang/translations/ru.po +3 -7
- package/lang/translations/sk.po +3 -7
- package/lang/translations/sr.po +3 -7
- package/lang/translations/sv.po +3 -7
- package/lang/translations/th.po +3 -7
- package/lang/translations/tr.po +3 -7
- package/lang/translations/uk.po +3 -7
- package/lang/translations/vi.po +3 -7
- package/lang/translations/zh-cn.po +3 -7
- package/lang/translations/zh.po +3 -7
- package/package.json +7 -7
- package/src/index.js +1 -1
- package/src/insertmergefieldblockcommand.d.ts +28 -0
- package/src/insertmergefieldblockcommand.js +23 -0
- package/src/insertmergefieldcommand.js +1 -1
- package/src/mergefields.js +1 -1
- package/src/mergefieldsconfig.d.ts +17 -0
- package/src/mergefieldsediting.d.ts +7 -1
- package/src/mergefieldsediting.js +1 -1
- package/src/mergefieldsui.js +1 -1
- package/src/previewmergefieldscommand.js +1 -1
- package/src/ui/mergefieldslistview.js +1 -1
- package/src/ui/mergefieldspanelview.js +1 -1
- package/src/utils/common-translations.js +1 -1
- package/theme/mergefields.css +108 -31
package/theme/mergefields.css
CHANGED
|
@@ -20,41 +20,114 @@
|
|
|
20
20
|
--ck-color-merge-fields-affix-color: hsl(218, 82%, 57%);
|
|
21
21
|
}
|
|
22
22
|
|
|
23
|
-
.ck .ck-merge-field {
|
|
24
|
-
|
|
25
|
-
margin: 0
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
padding-top: var(--ck-merge-fields-paddings-vertical);
|
|
29
|
-
padding-bottom: var(--ck-merge-fields-paddings-vertical);
|
|
30
|
-
line-height: 0;
|
|
31
|
-
-webkit-user-select: none;
|
|
23
|
+
.ck .ck-merge-field-block {
|
|
24
|
+
display: flex;
|
|
25
|
+
margin: 0.9em auto;
|
|
26
|
+
align-items: center;
|
|
27
|
+
justify-content: center;
|
|
32
28
|
|
|
33
29
|
&:hover {
|
|
34
30
|
transition: none;
|
|
35
31
|
cursor: default;
|
|
36
32
|
}
|
|
37
33
|
|
|
34
|
+
&.ck-merge-field-block_with-value, &.ck-merge-field-block_with-warning {
|
|
35
|
+
/* Make sure the content in the block does not overflow and is still centered. */
|
|
36
|
+
& .ck-merge-field {
|
|
37
|
+
overflow: hidden;
|
|
38
|
+
display: flex;
|
|
39
|
+
justify-content: center;
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
&::before {
|
|
43
|
+
position: absolute;
|
|
44
|
+
z-index: 1;
|
|
45
|
+
top: var(--ck-spacing-medium);
|
|
46
|
+
left: var(--ck-spacing-medium);
|
|
47
|
+
background: hsl(0 0% 98%);
|
|
48
|
+
padding: var(--ck-spacing-tiny) 1px;
|
|
49
|
+
border-radius: 2px;
|
|
50
|
+
line-height: 1em;
|
|
51
|
+
font-family: var(--ck-font-face);
|
|
52
|
+
}
|
|
53
|
+
}
|
|
54
|
+
|
|
38
55
|
&:not(:hover):not(.ck-widget_selected) {
|
|
39
56
|
outline: 1px solid var(--ck-color-merge-fields-outline);
|
|
40
57
|
}
|
|
41
58
|
|
|
42
|
-
&.ck-merge-
|
|
43
|
-
|
|
59
|
+
&.ck-merge-field-block_with-warning {
|
|
60
|
+
&::before {
|
|
61
|
+
content: attr(data-merge-field-block-label) ' ' url('data:image/svg+xml,%3Csvg width="12" height="12" viewBox="0 0 13 13" xmlns="http://www.w3.org/2000/svg"%3E%3Cpath fill-rule="evenodd" clip-rule="evenodd" d="M12 6C12 9.31371 9.31371 12 6 12C2.68629 12 0 9.31371 0 6C0 2.68629 2.68629 0 6 0C9.31371 0 12 2.68629 12 6ZM5.27988 2.40003H6.71988V6.72003H5.27988V2.40003ZM6.72009 8.16003H5.28009V9.60003H6.72009V8.16003Z" fill="%23DB3700"/%3E%3C/svg%3E');
|
|
62
|
+
outline: 1px solid var(--ck-color-merge-fields-with-warning-outline);
|
|
63
|
+
}
|
|
44
64
|
|
|
45
65
|
&:not(:hover):not(.ck-widget_selected) {
|
|
46
66
|
outline: 1px solid var(--ck-color-merge-fields-with-warning-outline);
|
|
47
67
|
}
|
|
48
68
|
}
|
|
49
69
|
|
|
50
|
-
&.ck-
|
|
51
|
-
|
|
70
|
+
&.ck-widget.ck-widget_selected.ck-widget_type-around_show-fake-caret_before,
|
|
71
|
+
&.ck-widget.ck-widget_selected.ck-widget_type-around_show-fake-caret_after {
|
|
72
|
+
outline: 1px solid var(--ck-color-merge-fields-outline);
|
|
73
|
+
|
|
74
|
+
&.ck-merge-field-block_with-warning {
|
|
75
|
+
outline: 1px solid var(--ck-color-merge-fields-with-warning-outline);
|
|
76
|
+
}
|
|
77
|
+
}
|
|
52
78
|
|
|
53
|
-
|
|
79
|
+
&.ck-merge-field-block_with-value {
|
|
80
|
+
&::before {
|
|
81
|
+
content: attr(data-merge-field-block-label);
|
|
54
82
|
outline: 1px solid var(--ck-color-merge-fields-value-outline);
|
|
55
83
|
}
|
|
56
84
|
}
|
|
57
85
|
|
|
86
|
+
&[dir="rtl"]::before {
|
|
87
|
+
left: auto;
|
|
88
|
+
right: var(--ck-spacing-medium);
|
|
89
|
+
}
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
/* stylelint-disable no-descending-specificity */
|
|
93
|
+
.ck .ck-merge-field {
|
|
94
|
+
&:hover {
|
|
95
|
+
transition: none;
|
|
96
|
+
cursor: default;
|
|
97
|
+
}
|
|
98
|
+
|
|
99
|
+
&:not( .ck-merge-field-block * ) {
|
|
100
|
+
/* Styles for textual (inline) merge fields only. */
|
|
101
|
+
padding-top: var(--ck-merge-fields-paddings-vertical);
|
|
102
|
+
padding-bottom: var(--ck-merge-fields-paddings-vertical);
|
|
103
|
+
-webkit-user-select: none;
|
|
104
|
+
white-space: nowrap;
|
|
105
|
+
outline-offset: 0;
|
|
106
|
+
margin: 0 1px 0 2px;
|
|
107
|
+
line-height: 0;
|
|
108
|
+
border-radius: 2px;
|
|
109
|
+
|
|
110
|
+
&:not(:hover):not(.ck-widget_selected) {
|
|
111
|
+
outline: 1px solid var(--ck-color-merge-fields-outline);
|
|
112
|
+
}
|
|
113
|
+
|
|
114
|
+
&.ck-merge-field_with-warning {
|
|
115
|
+
white-space: normal;
|
|
116
|
+
|
|
117
|
+
&:not(:hover):not(.ck-widget_selected) {
|
|
118
|
+
outline: 1px solid var(--ck-color-merge-fields-with-warning-outline);
|
|
119
|
+
}
|
|
120
|
+
}
|
|
121
|
+
|
|
122
|
+
&.ck-merge-field_with-value {
|
|
123
|
+
white-space: normal;
|
|
124
|
+
|
|
125
|
+
&:not(:hover):not(.ck-widget_selected) {
|
|
126
|
+
outline: 1px solid var(--ck-color-merge-fields-value-outline);
|
|
127
|
+
}
|
|
128
|
+
}
|
|
129
|
+
}
|
|
130
|
+
|
|
58
131
|
& .ck-merge-field__icon {
|
|
59
132
|
padding: 0 0.15em;
|
|
60
133
|
position: relative;
|
|
@@ -85,6 +158,24 @@
|
|
|
85
158
|
}
|
|
86
159
|
}
|
|
87
160
|
|
|
161
|
+
.ck pre code .ck-merge-field .ck-merge-field__affix {
|
|
162
|
+
font-family: inherit;
|
|
163
|
+
position: relative;
|
|
164
|
+
top: 0;
|
|
165
|
+
font-size: inherit;
|
|
166
|
+
|
|
167
|
+
&:first-child {
|
|
168
|
+
padding-left: 0.15em;
|
|
169
|
+
padding-right: 0.18em;
|
|
170
|
+
}
|
|
171
|
+
|
|
172
|
+
&:last-child {
|
|
173
|
+
padding-left: 0.18em;
|
|
174
|
+
padding-right: 0.15em;
|
|
175
|
+
}
|
|
176
|
+
}
|
|
177
|
+
/* stylelint-enable no-descending-specificity */
|
|
178
|
+
|
|
88
179
|
.ck .ck-merge-fields-form {
|
|
89
180
|
padding: var(--ck-spacing-medium);
|
|
90
181
|
|
|
@@ -102,21 +193,7 @@
|
|
|
102
193
|
}
|
|
103
194
|
}
|
|
104
195
|
|
|
105
|
-
/*
|
|
106
|
-
.ck
|
|
107
|
-
|
|
108
|
-
position: relative;
|
|
109
|
-
top: 0;
|
|
110
|
-
font-size: inherit;
|
|
111
|
-
|
|
112
|
-
&:first-child {
|
|
113
|
-
padding-left: 0.15em;
|
|
114
|
-
padding-right: 0.18em;
|
|
115
|
-
}
|
|
116
|
-
|
|
117
|
-
&:last-child {
|
|
118
|
-
padding-left: 0.18em;
|
|
119
|
-
padding-right: 0.15em;
|
|
120
|
-
}
|
|
196
|
+
/* Disable all mouse interaction for block merge field previews as long as the editor is not read–only. */
|
|
197
|
+
.ck-editor__editable:not(.ck-read-only) .ck-widget.ck-merge-field-block .ck-merge-field {
|
|
198
|
+
pointer-events: none;
|
|
121
199
|
}
|
|
122
|
-
/* stylelint-enable no-descending-specificity */
|