@progress/kendo-react-editor 9.0.0-develop.1 → 9.0.0-develop.3

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.
@@ -23,13 +23,16 @@ const _e = (o) => {
23
23
  b(!0);
24
24
  }, []), m = e.useCallback(() => {
25
25
  b(!1), n == null || n.focus();
26
- }, [n]), f = e.useCallback((i) => {
27
- if (n && i) {
28
- const u = ze(n.state, i);
29
- u && n.dispatch(u);
30
- }
31
- m();
32
- }, [n, m]);
26
+ }, [n]), f = e.useCallback(
27
+ (i) => {
28
+ if (n && i) {
29
+ const u = ze(n.state, i);
30
+ u && n.dispatch(u);
31
+ }
32
+ m();
33
+ },
34
+ [n, m]
35
+ );
33
36
  return /* @__PURE__ */ e.createElement(e.Fragment, null, /* @__PURE__ */ e.createElement(
34
37
  A,
35
38
  {
@@ -72,43 +75,58 @@ const _e = (o) => {
72
75
  icon: "align-remove",
73
76
  svgIcon: Be
74
77
  }
75
- ], de = [{
76
- textKey: t.tablePropertiesLeft,
77
- text: l[t.tablePropertiesLeft],
78
- value: "left",
79
- style: {},
80
- icon: "table-position-left",
81
- svgIcon: we
82
- }, {
83
- textKey: t.tablePropertiesCenter,
84
- text: l[t.tablePropertiesCenter],
85
- value: "center",
86
- style: {},
87
- icon: "table-position-center",
88
- svgIcon: ye
89
- }, {
90
- textKey: t.tablePropertiesRight,
91
- text: l[t.tablePropertiesRight],
92
- value: "right",
93
- style: {},
94
- icon: "table-position-right",
95
- svgIcon: Re
96
- }].map((o) => ({ ...o, style: He[o.value] })), fe = [{
97
- textKey: t.tablePropertiesTop,
98
- text: l[t.tablePropertiesTop],
99
- value: "top",
100
- icon: "position-top",
101
- svgIcon: Ke
102
- }, {
103
- textKey: t.tablePropertiesBottom,
104
- text: l[t.tablePropertiesBottom],
105
- value: "bottom",
106
- icon: "position-bottom",
107
- svgIcon: Ve
108
- }], be = [
78
+ ], de = [
79
+ {
80
+ textKey: t.tablePropertiesLeft,
81
+ text: l[t.tablePropertiesLeft],
82
+ value: "left",
83
+ style: {},
84
+ icon: "table-position-left",
85
+ svgIcon: we
86
+ },
87
+ {
88
+ textKey: t.tablePropertiesCenter,
89
+ text: l[t.tablePropertiesCenter],
90
+ value: "center",
91
+ style: {},
92
+ icon: "table-position-center",
93
+ svgIcon: ye
94
+ },
95
+ {
96
+ textKey: t.tablePropertiesRight,
97
+ text: l[t.tablePropertiesRight],
98
+ value: "right",
99
+ style: {},
100
+ icon: "table-position-right",
101
+ svgIcon: Re
102
+ }
103
+ ].map((o) => ({ ...o, style: He[o.value] })), fe = [
104
+ {
105
+ textKey: t.tablePropertiesTop,
106
+ text: l[t.tablePropertiesTop],
107
+ value: "top",
108
+ icon: "position-top",
109
+ svgIcon: Ke
110
+ },
111
+ {
112
+ textKey: t.tablePropertiesBottom,
113
+ text: l[t.tablePropertiesBottom],
114
+ value: "bottom",
115
+ icon: "position-bottom",
116
+ svgIcon: Ve
117
+ }
118
+ ], be = [
109
119
  { textKey: t.tablePropertiesNone, text: l[t.tablePropertiesNone], value: "none" },
110
- { textKey: t.tablePropertiesUsingScopeAttribute, text: l[t.tablePropertiesUsingScopeAttribute], value: "scope" },
111
- { textKey: t.tablePropertiesUsingIdAttributes, text: l[t.tablePropertiesUsingIdAttributes], value: "id" }
120
+ {
121
+ textKey: t.tablePropertiesUsingScopeAttribute,
122
+ text: l[t.tablePropertiesUsingScopeAttribute],
123
+ value: "scope"
124
+ },
125
+ {
126
+ textKey: t.tablePropertiesUsingIdAttributes,
127
+ text: l[t.tablePropertiesUsingIdAttributes],
128
+ value: "id"
129
+ }
112
130
  ], Fe = (o) => {
113
131
  const n = e.useMemo(() => {
114
132
  const a = o.view && o.view.state;
@@ -143,7 +161,16 @@ const _e = (o) => {
143
161
  associateHeaders: (oe = y.current) != null && oe.value ? y.current.value.value : "none"
144
162
  };
145
163
  o.onSave.call(void 0, a);
146
- }, [o.onSave]), ke = /* @__PURE__ */ e.createElement("div", { className: "k-form k-form-md" }, /* @__PURE__ */ e.createElement("fieldset", { className: "k-form-fieldset" }, /* @__PURE__ */ e.createElement("div", { className: "k-form-layout k-d-grid k-grid-cols-4 k-gap-x-4" }, /* @__PURE__ */ e.createElement("div", { className: "k-form-field k-col-span-2" }, /* @__PURE__ */ e.createElement("label", { className: "k-label k-form-label" }, r.toLanguageString(t.tablePropertiesRows, l[t.tablePropertiesRows])), /* @__PURE__ */ e.createElement("div", { className: "k-form-field-wrap" }, /* @__PURE__ */ e.createElement(s, { ref: g, defaultValue: n.rows, min: 1 }))), /* @__PURE__ */ e.createElement("div", { className: "k-form-field k-col-span-2" }, /* @__PURE__ */ e.createElement("label", { className: "k-label k-form-label" }, r.toLanguageString(t.tablePropertiesColumns, l[t.tablePropertiesColumns])), /* @__PURE__ */ e.createElement("div", { className: "k-form-field-wrap" }, /* @__PURE__ */ e.createElement(s, { ref: p, defaultValue: n.columns, min: 1 }))), /* @__PURE__ */ e.createElement("div", { className: "k-form-field k-col-span-1" }, /* @__PURE__ */ e.createElement("label", { className: "k-label k-form-label" }, r.toLanguageString(t.tablePropertiesWidth, l[t.tablePropertiesWidth])), /* @__PURE__ */ e.createElement("div", { className: "k-form-field-wrap" }, /* @__PURE__ */ e.createElement(
164
+ }, [o.onSave]), ke = /* @__PURE__ */ e.createElement("div", { className: "k-form k-form-md" }, /* @__PURE__ */ e.createElement("fieldset", { className: "k-form-fieldset" }, /* @__PURE__ */ e.createElement("div", { className: "k-form-layout k-d-grid k-grid-cols-4 k-gap-x-4" }, /* @__PURE__ */ e.createElement("div", { className: "k-form-field k-col-span-2" }, /* @__PURE__ */ e.createElement("label", { className: "k-label k-form-label" }, r.toLanguageString(
165
+ t.tablePropertiesRows,
166
+ l[t.tablePropertiesRows]
167
+ )), /* @__PURE__ */ e.createElement("div", { className: "k-form-field-wrap" }, /* @__PURE__ */ e.createElement(s, { ref: g, defaultValue: n.rows, min: 1 }))), /* @__PURE__ */ e.createElement("div", { className: "k-form-field k-col-span-2" }, /* @__PURE__ */ e.createElement("label", { className: "k-label k-form-label" }, r.toLanguageString(
168
+ t.tablePropertiesColumns,
169
+ l[t.tablePropertiesColumns]
170
+ )), /* @__PURE__ */ e.createElement("div", { className: "k-form-field-wrap" }, /* @__PURE__ */ e.createElement(s, { ref: p, defaultValue: n.columns, min: 1 }))), /* @__PURE__ */ e.createElement("div", { className: "k-form-field k-col-span-1" }, /* @__PURE__ */ e.createElement("label", { className: "k-label k-form-label" }, r.toLanguageString(
171
+ t.tablePropertiesWidth,
172
+ l[t.tablePropertiesWidth]
173
+ )), /* @__PURE__ */ e.createElement("div", { className: "k-form-field-wrap" }, /* @__PURE__ */ e.createElement(
147
174
  s,
148
175
  {
149
176
  ref: m,
@@ -159,7 +186,10 @@ const _e = (o) => {
159
186
  data: me,
160
187
  popupSettings: c
161
188
  }
162
- ))), /* @__PURE__ */ e.createElement("div", { className: "k-form-field k-col-span-1" }, /* @__PURE__ */ e.createElement("label", { className: "k-label k-form-label" }, r.toLanguageString(t.tablePropertiesHeight, l[t.tablePropertiesHeight])), /* @__PURE__ */ e.createElement("div", { className: "k-form-field-wrap" }, /* @__PURE__ */ e.createElement(
189
+ ))), /* @__PURE__ */ e.createElement("div", { className: "k-form-field k-col-span-1" }, /* @__PURE__ */ e.createElement("label", { className: "k-label k-form-label" }, r.toLanguageString(
190
+ t.tablePropertiesHeight,
191
+ l[t.tablePropertiesHeight]
192
+ )), /* @__PURE__ */ e.createElement("div", { className: "k-form-field-wrap" }, /* @__PURE__ */ e.createElement(
163
193
  s,
164
194
  {
165
195
  ref: f,
@@ -175,19 +205,28 @@ const _e = (o) => {
175
205
  data: me.filter((a) => a !== "%"),
176
206
  popupSettings: c
177
207
  }
178
- ))), /* @__PURE__ */ e.createElement("div", { className: "k-form-field k-col-span-2" }, /* @__PURE__ */ e.createElement("label", { className: "k-label k-form-label" }, r.toLanguageString(t.tablePropertiesPosition, l[t.tablePropertiesPosition])), /* @__PURE__ */ e.createElement("div", { className: "k-form-field-wrap" }, /* @__PURE__ */ e.createElement(
208
+ ))), /* @__PURE__ */ e.createElement("div", { className: "k-form-field k-col-span-2" }, /* @__PURE__ */ e.createElement("label", { className: "k-label k-form-label" }, r.toLanguageString(
209
+ t.tablePropertiesPosition,
210
+ l[t.tablePropertiesPosition]
211
+ )), /* @__PURE__ */ e.createElement("div", { className: "k-form-field-wrap" }, /* @__PURE__ */ e.createElement(
179
212
  d,
180
213
  {
181
214
  ref: K,
182
215
  defaultValue: de.find((a) => a.value === n.position),
183
216
  popupSettings: c,
184
- data: de.map((a) => ({ ...a, text: r.toLanguageString(a.textKey, a.text) })),
217
+ data: de.map((a) => ({
218
+ ...a,
219
+ text: r.toLanguageString(a.textKey, a.text)
220
+ })),
185
221
  textField: "text",
186
222
  dataItemKey: "value",
187
223
  valueRender: k,
188
224
  itemRender: v
189
225
  }
190
- ))), /* @__PURE__ */ e.createElement("div", { className: "k-form-field k-col-span-2" }, /* @__PURE__ */ e.createElement("label", { className: "k-label k-form-label" }, r.toLanguageString(t.tablePropertiesAlignment, l[t.tablePropertiesAlignment])), /* @__PURE__ */ e.createElement("div", { className: "k-form-field-wrap" }, /* @__PURE__ */ e.createElement(
226
+ ))), /* @__PURE__ */ e.createElement("div", { className: "k-form-field k-col-span-2" }, /* @__PURE__ */ e.createElement("label", { className: "k-label k-form-label" }, r.toLanguageString(
227
+ t.tablePropertiesAlignment,
228
+ l[t.tablePropertiesAlignment]
229
+ )), /* @__PURE__ */ e.createElement("div", { className: "k-form-field-wrap" }, /* @__PURE__ */ e.createElement(
191
230
  d,
192
231
  {
193
232
  ref: x,
@@ -199,7 +238,10 @@ const _e = (o) => {
199
238
  valueRender: k,
200
239
  itemRender: v
201
240
  }
202
- ))), /* @__PURE__ */ e.createElement("div", { className: "k-form-field k-col-span-2" }, /* @__PURE__ */ e.createElement("label", { className: "k-label k-form-label" }, r.toLanguageString(t.tablePropertiesCellSpacing, l[t.tablePropertiesCellSpacing])), /* @__PURE__ */ e.createElement("div", { className: "k-form-field-wrap" }, /* @__PURE__ */ e.createElement(
241
+ ))), /* @__PURE__ */ e.createElement("div", { className: "k-form-field k-col-span-2" }, /* @__PURE__ */ e.createElement("label", { className: "k-label k-form-label" }, r.toLanguageString(
242
+ t.tablePropertiesCellSpacing,
243
+ l[t.tablePropertiesCellSpacing]
244
+ )), /* @__PURE__ */ e.createElement("div", { className: "k-form-field-wrap" }, /* @__PURE__ */ e.createElement(
203
245
  s,
204
246
  {
205
247
  ref: i,
@@ -207,7 +249,10 @@ const _e = (o) => {
207
249
  placeholder: r.toLanguageString(t.sizeAuto, l[t.sizeAuto]),
208
250
  min: 0
209
251
  }
210
- ))), /* @__PURE__ */ e.createElement("div", { className: "k-form-field k-col-span-2" }, /* @__PURE__ */ e.createElement("label", { className: "k-label k-form-label" }, r.toLanguageString(t.tablePropertiesCellPadding, l[t.tablePropertiesCellPadding])), /* @__PURE__ */ e.createElement("div", { className: "k-form-field-wrap" }, /* @__PURE__ */ e.createElement(
252
+ ))), /* @__PURE__ */ e.createElement("div", { className: "k-form-field k-col-span-2" }, /* @__PURE__ */ e.createElement("label", { className: "k-label k-form-label" }, r.toLanguageString(
253
+ t.tablePropertiesCellPadding,
254
+ l[t.tablePropertiesCellPadding]
255
+ )), /* @__PURE__ */ e.createElement("div", { className: "k-form-field-wrap" }, /* @__PURE__ */ e.createElement(
211
256
  s,
212
257
  {
213
258
  ref: u,
@@ -215,13 +260,28 @@ const _e = (o) => {
215
260
  placeholder: r.toLanguageString(t.sizeAuto, l[t.sizeAuto]),
216
261
  min: 0
217
262
  }
218
- ))), /* @__PURE__ */ e.createElement("div", { className: "k-form-field k-col-span-full" }, /* @__PURE__ */ e.createElement("label", { className: "k-label k-form-label" }, r.toLanguageString(t.tablePropertiesTableBackground, l[t.tablePropertiesTableBackground])), /* @__PURE__ */ e.createElement("div", { className: "k-form-field-wrap" }, /* @__PURE__ */ e.createElement(se, { ref: V, defaultValue: n.backgroundColor }))), /* @__PURE__ */ e.createElement("div", { className: "k-form-field k-col-span-1" }, /* @__PURE__ */ e.createElement("label", { className: "k-label k-form-label" }, r.toLanguageString(t.tablePropertiesBorderWidth, l[t.tablePropertiesBorderWidth])), /* @__PURE__ */ e.createElement("div", { className: "k-form-field-wrap" }, /* @__PURE__ */ e.createElement(s, { ref: S, defaultValue: n.borderWidth, min: 0 }))), /* @__PURE__ */ e.createElement("div", { className: "k-form-field k-col-span-1" }, /* @__PURE__ */ e.createElement("label", { className: "k-label k-form-label" }, r.toLanguageString(t.tablePropertiesBorderColor, l[t.tablePropertiesBorderColor])), /* @__PURE__ */ e.createElement("div", { className: "k-form-field-wrap" }, /* @__PURE__ */ e.createElement(se, { ref: T, defaultValue: n.borderColor }))), /* @__PURE__ */ e.createElement("div", { className: "k-form-field k-col-span-2" }, /* @__PURE__ */ e.createElement("label", { className: "k-label k-form-label" }, r.toLanguageString(t.tablePropertiesBorderStyle, l[t.tablePropertiesBorderStyle])), /* @__PURE__ */ e.createElement("div", { className: "k-form-field-wrap" }, /* @__PURE__ */ e.createElement(
263
+ ))), /* @__PURE__ */ e.createElement("div", { className: "k-form-field k-col-span-full" }, /* @__PURE__ */ e.createElement("label", { className: "k-label k-form-label" }, r.toLanguageString(
264
+ t.tablePropertiesTableBackground,
265
+ l[t.tablePropertiesTableBackground]
266
+ )), /* @__PURE__ */ e.createElement("div", { className: "k-form-field-wrap" }, /* @__PURE__ */ e.createElement(se, { ref: V, defaultValue: n.backgroundColor }))), /* @__PURE__ */ e.createElement("div", { className: "k-form-field k-col-span-1" }, /* @__PURE__ */ e.createElement("label", { className: "k-label k-form-label" }, r.toLanguageString(
267
+ t.tablePropertiesBorderWidth,
268
+ l[t.tablePropertiesBorderWidth]
269
+ )), /* @__PURE__ */ e.createElement("div", { className: "k-form-field-wrap" }, /* @__PURE__ */ e.createElement(s, { ref: S, defaultValue: n.borderWidth, min: 0 }))), /* @__PURE__ */ e.createElement("div", { className: "k-form-field k-col-span-1" }, /* @__PURE__ */ e.createElement("label", { className: "k-label k-form-label" }, r.toLanguageString(
270
+ t.tablePropertiesBorderColor,
271
+ l[t.tablePropertiesBorderColor]
272
+ )), /* @__PURE__ */ e.createElement("div", { className: "k-form-field-wrap" }, /* @__PURE__ */ e.createElement(se, { ref: T, defaultValue: n.borderColor }))), /* @__PURE__ */ e.createElement("div", { className: "k-form-field k-col-span-2" }, /* @__PURE__ */ e.createElement("label", { className: "k-label k-form-label" }, r.toLanguageString(
273
+ t.tablePropertiesBorderStyle,
274
+ l[t.tablePropertiesBorderStyle]
275
+ )), /* @__PURE__ */ e.createElement("div", { className: "k-form-field-wrap" }, /* @__PURE__ */ e.createElement(
219
276
  d,
220
277
  {
221
278
  ref: h,
222
279
  defaultValue: ue.find((a) => a.value === n.borderStyle),
223
280
  popupSettings: c,
224
- data: ue.map((a) => ({ ...a, text: r.toLanguageString(a.textKey, a.text) })),
281
+ data: ue.map((a) => ({
282
+ ...a,
283
+ text: r.toLanguageString(a.textKey, a.text)
284
+ })),
225
285
  textField: "text",
226
286
  dataItemKey: "value"
227
287
  }
@@ -230,44 +290,105 @@ const _e = (o) => {
230
290
  {
231
291
  ref: D,
232
292
  className: "k-checkbox-wrap",
233
- label: r.toLanguageString(t.tablePropertiesCollapseBorders, l[t.tablePropertiesCollapseBorders]),
293
+ label: r.toLanguageString(
294
+ t.tablePropertiesCollapseBorders,
295
+ l[t.tablePropertiesCollapseBorders]
296
+ ),
234
297
  defaultChecked: n.collapseBorders
235
298
  }
236
- )))))), ve = /* @__PURE__ */ e.createElement("div", { className: "k-form k-form-md" }, /* @__PURE__ */ e.createElement("fieldset", { className: "k-form-fieldset" }, /* @__PURE__ */ e.createElement("div", { className: "k-form-layout k-d-grid" }, /* @__PURE__ */ e.createElement("div", { className: "k-form-field" }, /* @__PURE__ */ e.createElement("label", { className: "k-label k-form-label" }, r.toLanguageString(t.tablePropertiesId, l[t.tablePropertiesId])), /* @__PURE__ */ e.createElement("div", { className: "k-form-field-wrap" }, /* @__PURE__ */ e.createElement(L, { ref: z, defaultValue: n.id }))), /* @__PURE__ */ e.createElement("div", { className: "k-form-field" }, /* @__PURE__ */ e.createElement("label", { className: "k-label k-form-label" }, r.toLanguageString(t.tablePropertiesCssClass, l[t.tablePropertiesCssClass])), /* @__PURE__ */ e.createElement("div", { className: "k-form-field-wrap" }, /* @__PURE__ */ e.createElement(L, { ref: H, defaultValue: n.className }))), /* @__PURE__ */ e.createElement("fieldset", { className: "k-form-fieldset" }, /* @__PURE__ */ e.createElement("legend", { className: "k-form-legend" }, r.toLanguageString(t.tablePropertiesAccessibility, l[t.tablePropertiesAccessibility])), /* @__PURE__ */ e.createElement("div", { className: "k-d-grid k-grid-cols-4 k-gap-x-4" }, /* @__PURE__ */ e.createElement("div", { className: "k-form-field k-col-span-full" }, /* @__PURE__ */ e.createElement("label", { className: "k-label k-form-label" }, r.toLanguageString(t.tablePropertiesCaption, l[t.tablePropertiesCaption])), /* @__PURE__ */ e.createElement("div", { className: "k-form-field-wrap" }, /* @__PURE__ */ e.createElement(L, { ref: W, defaultValue: n.caption }))), /* @__PURE__ */ e.createElement("div", { className: "k-form-field k-col-span-2" }, /* @__PURE__ */ e.createElement("label", { className: "k-label k-form-label" }, r.toLanguageString(t.tablePropertiesCaptionPosition, l[t.tablePropertiesCaptionPosition])), /* @__PURE__ */ e.createElement("div", { className: "k-form-field-wrap" }, /* @__PURE__ */ e.createElement(
299
+ )))))), ve = /* @__PURE__ */ e.createElement("div", { className: "k-form k-form-md" }, /* @__PURE__ */ e.createElement("fieldset", { className: "k-form-fieldset" }, /* @__PURE__ */ e.createElement("div", { className: "k-form-layout k-d-grid" }, /* @__PURE__ */ e.createElement("div", { className: "k-form-field" }, /* @__PURE__ */ e.createElement("label", { className: "k-label k-form-label" }, r.toLanguageString(t.tablePropertiesId, l[t.tablePropertiesId])), /* @__PURE__ */ e.createElement("div", { className: "k-form-field-wrap" }, /* @__PURE__ */ e.createElement(L, { ref: z, defaultValue: n.id }))), /* @__PURE__ */ e.createElement("div", { className: "k-form-field" }, /* @__PURE__ */ e.createElement("label", { className: "k-label k-form-label" }, r.toLanguageString(
300
+ t.tablePropertiesCssClass,
301
+ l[t.tablePropertiesCssClass]
302
+ )), /* @__PURE__ */ e.createElement("div", { className: "k-form-field-wrap" }, /* @__PURE__ */ e.createElement(L, { ref: H, defaultValue: n.className }))), /* @__PURE__ */ e.createElement("fieldset", { className: "k-form-fieldset" }, /* @__PURE__ */ e.createElement("legend", { className: "k-form-legend" }, r.toLanguageString(
303
+ t.tablePropertiesAccessibility,
304
+ l[t.tablePropertiesAccessibility]
305
+ )), /* @__PURE__ */ e.createElement("div", { className: "k-d-grid k-grid-cols-4 k-gap-x-4" }, /* @__PURE__ */ e.createElement("div", { className: "k-form-field k-col-span-full" }, /* @__PURE__ */ e.createElement("label", { className: "k-label k-form-label" }, r.toLanguageString(
306
+ t.tablePropertiesCaption,
307
+ l[t.tablePropertiesCaption]
308
+ )), /* @__PURE__ */ e.createElement("div", { className: "k-form-field-wrap" }, /* @__PURE__ */ e.createElement(L, { ref: W, defaultValue: n.caption }))), /* @__PURE__ */ e.createElement("div", { className: "k-form-field k-col-span-2" }, /* @__PURE__ */ e.createElement("label", { className: "k-label k-form-label" }, r.toLanguageString(
309
+ t.tablePropertiesCaptionPosition,
310
+ l[t.tablePropertiesCaptionPosition]
311
+ )), /* @__PURE__ */ e.createElement("div", { className: "k-form-field-wrap" }, /* @__PURE__ */ e.createElement(
237
312
  d,
238
313
  {
239
314
  ref: w,
240
- defaultValue: fe.find((a) => a.value === n.captionPosition),
241
- data: fe.map((a) => ({ ...a, text: r.toLanguageString(a.textKey, a.text) })),
315
+ defaultValue: fe.find(
316
+ (a) => a.value === n.captionPosition
317
+ ),
318
+ data: fe.map((a) => ({
319
+ ...a,
320
+ text: r.toLanguageString(a.textKey, a.text)
321
+ })),
242
322
  popupSettings: c,
243
323
  textField: "text",
244
324
  dataItemKey: "value",
245
325
  valueRender: k,
246
326
  itemRender: v
247
327
  }
248
- ))), /* @__PURE__ */ e.createElement("div", { className: "k-form-field k-col-span-2" }, /* @__PURE__ */ e.createElement("label", { className: "k-label k-form-label" }, r.toLanguageString(t.tablePropertiesCaptionAlignment, l[t.tablePropertiesCaptionAlignment])), /* @__PURE__ */ e.createElement("div", { className: "k-form-field-wrap" }, /* @__PURE__ */ e.createElement(
328
+ ))), /* @__PURE__ */ e.createElement("div", { className: "k-form-field k-col-span-2" }, /* @__PURE__ */ e.createElement("label", { className: "k-label k-form-label" }, r.toLanguageString(
329
+ t.tablePropertiesCaptionAlignment,
330
+ l[t.tablePropertiesCaptionAlignment]
331
+ )), /* @__PURE__ */ e.createElement("div", { className: "k-form-field-wrap" }, /* @__PURE__ */ e.createElement(
249
332
  d,
250
333
  {
251
334
  ref: C,
252
335
  defaultValue: E.find((a) => a.value === n.captionAlignment),
253
- data: E.map((a) => ({ ...a, text: r.toLanguageString(a.textKey, a.text) })),
336
+ data: E.map((a) => ({
337
+ ...a,
338
+ text: r.toLanguageString(a.textKey, a.text)
339
+ })),
254
340
  popupSettings: c,
255
341
  textField: "text",
256
342
  dataItemKey: "value",
257
343
  valueRender: k,
258
344
  itemRender: v
259
345
  }
260
- ))), /* @__PURE__ */ e.createElement("div", { className: "k-form-field k-col-span-1" }, /* @__PURE__ */ e.createElement("label", { className: "k-label k-form-label" }, r.toLanguageString(t.tablePropertiesHeaderRows, l[t.tablePropertiesHeaderRows])), /* @__PURE__ */ e.createElement("div", { className: "k-form-field-wrap" }, /* @__PURE__ */ e.createElement(s, { ref: U, defaultValue: n.headerRows, min: 0 }))), /* @__PURE__ */ e.createElement("div", { className: "k-form-field k-col-span-1" }, /* @__PURE__ */ e.createElement("label", { className: "k-label k-form-label" }, r.toLanguageString(t.tablePropertiesHeaderCols, l[t.tablePropertiesHeaderCols])), /* @__PURE__ */ e.createElement("div", { className: "k-form-field-wrap" }, /* @__PURE__ */ e.createElement(s, { ref: F, defaultValue: n.headerColumns, min: 0 }))), /* @__PURE__ */ e.createElement("div", { className: "k-form-field k-col-span-2" }, /* @__PURE__ */ e.createElement("label", { className: "k-label k-form-label" }, r.toLanguageString(t.tablePropertiesAssociateHeaders, l[t.tablePropertiesAssociateHeaders])), /* @__PURE__ */ e.createElement("div", { className: "k-form-field-wrap" }, /* @__PURE__ */ e.createElement(
346
+ ))), /* @__PURE__ */ e.createElement("div", { className: "k-form-field k-col-span-1" }, /* @__PURE__ */ e.createElement("label", { className: "k-label k-form-label" }, r.toLanguageString(
347
+ t.tablePropertiesHeaderRows,
348
+ l[t.tablePropertiesHeaderRows]
349
+ )), /* @__PURE__ */ e.createElement("div", { className: "k-form-field-wrap" }, /* @__PURE__ */ e.createElement(s, { ref: U, defaultValue: n.headerRows, min: 0 }))), /* @__PURE__ */ e.createElement("div", { className: "k-form-field k-col-span-1" }, /* @__PURE__ */ e.createElement("label", { className: "k-label k-form-label" }, r.toLanguageString(
350
+ t.tablePropertiesHeaderCols,
351
+ l[t.tablePropertiesHeaderCols]
352
+ )), /* @__PURE__ */ e.createElement("div", { className: "k-form-field-wrap" }, /* @__PURE__ */ e.createElement(s, { ref: F, defaultValue: n.headerColumns, min: 0 }))), /* @__PURE__ */ e.createElement("div", { className: "k-form-field k-col-span-2" }, /* @__PURE__ */ e.createElement("label", { className: "k-label k-form-label" }, r.toLanguageString(
353
+ t.tablePropertiesAssociateHeaders,
354
+ l[t.tablePropertiesAssociateHeaders]
355
+ )), /* @__PURE__ */ e.createElement("div", { className: "k-form-field-wrap" }, /* @__PURE__ */ e.createElement(
261
356
  d,
262
357
  {
263
358
  ref: y,
264
- defaultValue: be.find((a) => a.value === n.associateHeaders),
265
- data: be.map((a) => ({ ...a, text: r.toLanguageString(a.textKey, a.text) })),
359
+ defaultValue: be.find(
360
+ (a) => a.value === n.associateHeaders
361
+ ),
362
+ data: be.map((a) => ({
363
+ ...a,
364
+ text: r.toLanguageString(a.textKey, a.text)
365
+ })),
266
366
  popupSettings: c,
267
367
  textField: "text",
268
368
  dataItemKey: "value"
269
369
  }
270
- )))))))), Ee = /* @__PURE__ */ e.createElement(he, { selected: P, onSelect: b, animation: !1, keepTabsMounted: !0 }, /* @__PURE__ */ e.createElement(ce, { title: r.toLanguageString(t.tablePropertiesGeneral, l[t.tablePropertiesGeneral]) }, ke), /* @__PURE__ */ e.createElement(ce, { title: r.toLanguageString(t.tablePropertiesAdvanced, l[t.tablePropertiesAdvanced]) }, ve)), Pe = [/* @__PURE__ */ e.createElement(A, { themeColor: "primary", key: "save", onClick: pe }, r.toLanguageString(t.tablePropertiesSave, l[t.tablePropertiesSave])), /* @__PURE__ */ e.createElement(A, { onClick: o.onClose, key: "cancel" }, r.toLanguageString(t.tablePropertiesCancel, l[t.tablePropertiesCancel]))];
370
+ )))))))), Ee = /* @__PURE__ */ e.createElement(he, { selected: P, onSelect: b, animation: !1, keepTabsMounted: !0 }, /* @__PURE__ */ e.createElement(
371
+ ce,
372
+ {
373
+ title: r.toLanguageString(
374
+ t.tablePropertiesGeneral,
375
+ l[t.tablePropertiesGeneral]
376
+ )
377
+ },
378
+ ke
379
+ ), /* @__PURE__ */ e.createElement(
380
+ ce,
381
+ {
382
+ title: r.toLanguageString(
383
+ t.tablePropertiesAdvanced,
384
+ l[t.tablePropertiesAdvanced]
385
+ )
386
+ },
387
+ ve
388
+ )), Pe = [
389
+ /* @__PURE__ */ e.createElement(A, { themeColor: "primary", key: "save", onClick: pe }, r.toLanguageString(t.tablePropertiesSave, l[t.tablePropertiesSave])),
390
+ /* @__PURE__ */ e.createElement(A, { onClick: o.onClose, key: "cancel" }, r.toLanguageString(t.tablePropertiesCancel, l[t.tablePropertiesCancel]))
391
+ ];
271
392
  return /* @__PURE__ */ e.createElement(
272
393
  Se,
273
394
  {
@@ -37,10 +37,11 @@ const d = /[\D]+$/, h = (e) => {
37
37
  function N(e, t, s) {
38
38
  let n;
39
39
  if (new RegExp("[^-]?" + t + ":").test(e.style || "")) {
40
- const { style: l } = m(
41
- e.style || "",
42
- { style: t, value: b, newValue: s }
43
- );
40
+ const { style: l } = m(e.style || "", {
41
+ style: t,
42
+ value: b,
43
+ newValue: s
44
+ });
44
45
  n = { ...e, style: l };
45
46
  } else if (e.style) {
46
47
  const l = u(e.style);
package/tools/unlink.mjs CHANGED
@@ -21,13 +21,18 @@ var c;
21
21
  const { view: o, render: r, ...s } = this.props, n = { mark: e.mark }, d = o ? u(o.state, n) : !1, k = h(this), i = e.messages.title, t = !d, m = /* @__PURE__ */ l.createElement(
22
22
  f,
23
23
  {
24
- onClick: t ? void 0 : () => o && v(n, o.state.tr.setMeta("commandName", e.commandName))(o.state, o.dispatch),
24
+ onClick: t ? void 0 : () => o && v(n, o.state.tr.setMeta("commandName", e.commandName))(
25
+ o.state,
26
+ o.dispatch
27
+ ),
25
28
  "aria-disabled": t ? !0 : void 0,
26
29
  ...N,
27
30
  title: k.toLanguageString(i, L[i]),
28
31
  ...e.props,
29
32
  ...s,
30
- className: T(s.className, e.props.className, { "k-disabled": t })
33
+ className: T(s.className, e.props.className, {
34
+ "k-disabled": t
35
+ })
31
36
  }
32
37
  );
33
38
  return r ? r.call(void 0, m, { view: o }) : m;
package/tools/utils.js CHANGED
@@ -5,4 +5,4 @@
5
5
  * Licensed under commercial license. See LICENSE.md in the package root for more information
6
6
  *-------------------------------------------------------------------------------------------
7
7
  */
8
- "use client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const l=require("react"),e=require("../messages/index.js");function y(t){const s=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(t){for(const r in t)if(r!=="default"){const o=Object.getOwnPropertyDescriptor(t,r);Object.defineProperty(s,r,o.get?o:{enumerable:!0,get:()=>t[r]})}}return s.default=t,Object.freeze(s)}const n=y(l),d={onMouseDown:t=>t.preventDefault(),onPointerDown:t=>t.preventDefault()},a={userSelect:"none"},u=function(t,...s){return s.forEach((r,o)=>{t=t.replace("{"+o+"}",String(r))}),t},i=(t,s)=>s.dataItem.style?n.cloneElement(t,t.props,n.createElement("span",{style:s.dataItem.style},t.props.children)):t,S=["px","em","%"],c={animate:{openDuration:150,closeDuration:150}},b=[{textKey:e.keys.borderStyleNone,text:e.messages[e.keys.borderStyleNone],value:"none"},{textKey:e.keys.borderStyleSolid,text:e.messages[e.keys.borderStyleSolid],value:"solid"},{textKey:e.keys.borderStyleDotted,text:e.messages[e.keys.borderStyleDotted],value:"dotted"},{textKey:e.keys.borderStyleDashed,text:e.messages[e.keys.borderStyleDashed],value:"dashed"},{textKey:e.keys.borderStyleDouble,text:e.messages[e.keys.borderStyleDouble],value:"double"},{textKey:e.keys.borderStyleGroove,text:e.messages[e.keys.borderStyleGroove],value:"groove"},{textKey:e.keys.borderStyleRidge,text:e.messages[e.keys.borderStyleRidge],value:"ridge"},{textKey:e.keys.borderStyleInset,text:e.messages[e.keys.borderStyleInset],value:"inset"},{textKey:e.keys.borderStyleOutset,text:e.messages[e.keys.borderStyleOutset],value:"outset"},{textKey:e.keys.borderStyleInitial,text:e.messages[e.keys.borderStyleInitial],value:"initial"},{textKey:e.keys.borderStyleInherit,text:e.messages[e.keys.borderStyleInherit],value:"inherit"},{textKey:e.keys.borderStyleHidden,text:e.messages[e.keys.borderStyleHidden],value:"hidden"}];function g(t,s){for(let r=t.depth;r>0;r--){let o=t.node(r);if(s(o))return{node:o,depth:r}}return null}exports.borderStyles=b;exports.formatString=u;exports.itemRender=i;exports.onDownPreventDefault=d;exports.parentNode=g;exports.popupSettings=c;exports.units=S;exports.userSelectNone=a;
8
+ "use client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const l=require("react"),e=require("../messages/index.js");function y(t){const s=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(t){for(const r in t)if(r!=="default"){const o=Object.getOwnPropertyDescriptor(t,r);Object.defineProperty(s,r,o.get?o:{enumerable:!0,get:()=>t[r]})}}return s.default=t,Object.freeze(s)}const n=y(l),d={onMouseDown:t=>t.preventDefault(),onPointerDown:t=>t.preventDefault()},a={userSelect:"none"},u=function(t,...s){return s.forEach((r,o)=>{t=t.replace("{"+o+"}",String(r))}),t},i=(t,s)=>s.dataItem.style?n.cloneElement(t,t.props,n.createElement("span",{style:s.dataItem.style},t.props.children)):t,S=["px","em","%"],c={animate:{openDuration:150,closeDuration:150}},b=[{textKey:e.keys.borderStyleNone,text:e.messages[e.keys.borderStyleNone],value:"none"},{textKey:e.keys.borderStyleSolid,text:e.messages[e.keys.borderStyleSolid],value:"solid"},{textKey:e.keys.borderStyleDotted,text:e.messages[e.keys.borderStyleDotted],value:"dotted"},{textKey:e.keys.borderStyleDashed,text:e.messages[e.keys.borderStyleDashed],value:"dashed"},{textKey:e.keys.borderStyleDouble,text:e.messages[e.keys.borderStyleDouble],value:"double"},{textKey:e.keys.borderStyleGroove,text:e.messages[e.keys.borderStyleGroove],value:"groove"},{textKey:e.keys.borderStyleRidge,text:e.messages[e.keys.borderStyleRidge],value:"ridge"},{textKey:e.keys.borderStyleInset,text:e.messages[e.keys.borderStyleInset],value:"inset"},{textKey:e.keys.borderStyleOutset,text:e.messages[e.keys.borderStyleOutset],value:"outset"},{textKey:e.keys.borderStyleInitial,text:e.messages[e.keys.borderStyleInitial],value:"initial"},{textKey:e.keys.borderStyleInherit,text:e.messages[e.keys.borderStyleInherit],value:"inherit"},{textKey:e.keys.borderStyleHidden,text:e.messages[e.keys.borderStyleHidden],value:"hidden"}];function g(t,s){for(let r=t.depth;r>0;r--){const o=t.node(r);if(s(o))return{node:o,depth:r}}return null}exports.borderStyles=b;exports.formatString=u;exports.itemRender=i;exports.onDownPreventDefault=d;exports.parentNode=g;exports.popupSettings=c;exports.units=S;exports.userSelectNone=a;
package/tools/utils.mjs CHANGED
@@ -14,8 +14,8 @@ const a = {
14
14
  }, s = {
15
15
  userSelect: "none"
16
16
  }, u = function(t, ...o) {
17
- return o.forEach((l, n) => {
18
- t = t.replace("{" + n + "}", String(l));
17
+ return o.forEach((n, l) => {
18
+ t = t.replace("{" + l + "}", String(n));
19
19
  }), t;
20
20
  }, S = (t, o) => o.dataItem.style ? d.cloneElement(t, t.props, /* @__PURE__ */ d.createElement("span", { style: o.dataItem.style }, t.props.children)) : t, i = ["px", "em", "%"], b = { animate: { openDuration: 150, closeDuration: 150 } }, x = [
21
21
  { textKey: e.borderStyleNone, text: r[e.borderStyleNone], value: "none" },
@@ -32,10 +32,10 @@ const a = {
32
32
  { textKey: e.borderStyleHidden, text: r[e.borderStyleHidden], value: "hidden" }
33
33
  ];
34
34
  function c(t, o) {
35
- for (let l = t.depth; l > 0; l--) {
36
- let n = t.node(l);
37
- if (o(n))
38
- return { node: n, depth: l };
35
+ for (let n = t.depth; n > 0; n--) {
36
+ const l = t.node(n);
37
+ if (o(l))
38
+ return { node: l, depth: n };
39
39
  }
40
40
  return null;
41
41
  }
@@ -26,26 +26,29 @@ var n;
26
26
  };
27
27
  }
28
28
  render() {
29
- const { view: o, render: r, ...l } = this.props, g = u(this), a = e.messages.viewHtml, s = [/* @__PURE__ */ t.createElement(
30
- c,
31
- {
32
- onClick: this.toggleDialog,
33
- key: "viewHtml",
34
- ...p,
35
- title: g.toLanguageString(a, h[a]),
36
- ...e.props,
37
- ...l
38
- }
39
- ), this.state.openedDialog && o && /* @__PURE__ */ t.createElement(
40
- d.ViewHtmlDialog,
41
- {
42
- key: "viewHtmlDialog",
43
- view: o,
44
- settings: e,
45
- dir: l.dir,
46
- onClose: this.toggleDialog
47
- }
48
- ) || null];
29
+ const { view: o, render: r, ...l } = this.props, g = u(this), a = e.messages.viewHtml, s = [
30
+ /* @__PURE__ */ t.createElement(
31
+ c,
32
+ {
33
+ onClick: this.toggleDialog,
34
+ key: "viewHtml",
35
+ ...p,
36
+ title: g.toLanguageString(a, h[a]),
37
+ ...e.props,
38
+ ...l
39
+ }
40
+ ),
41
+ this.state.openedDialog && o && /* @__PURE__ */ t.createElement(
42
+ d.ViewHtmlDialog,
43
+ {
44
+ key: "viewHtmlDialog",
45
+ view: o,
46
+ settings: e,
47
+ dir: l.dir,
48
+ onClose: this.toggleDialog
49
+ }
50
+ ) || null
51
+ ];
49
52
  return r ? r.call(void 0, s, { view: o }) : s;
50
53
  }
51
54
  };
package/utils/index.mjs CHANGED
@@ -40,7 +40,11 @@ var u;
40
40
  }
41
41
  t.convertMsLists = l;
42
42
  function p(e, n, a) {
43
- return ne(c(n), e, a !== void 0 ? a : { preserveWhitespace: "full" });
43
+ return ne(
44
+ c(n),
45
+ e,
46
+ a !== void 0 ? a : { preserveWhitespace: "full" }
47
+ );
44
48
  }
45
49
  t.createDocument = p;
46
50
  function $(e, n, a) {