jodit-pro-react 5.5.57 → 5.5.58
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.
|
@@ -45011,6 +45011,7 @@ _7([watch("style")], p30.prototype, "__updateStyles", null), p30 = x6 = _7([comp
|
|
|
45011
45011
|
|
|
45012
45012
|
// node_modules/jodit-pro/esm/plugins/button-generator/ui/generator/button-generator.js
|
|
45013
45013
|
init_decorators();
|
|
45014
|
+
init_helpers();
|
|
45014
45015
|
init_assert();
|
|
45015
45016
|
|
|
45016
45017
|
// node_modules/jodit-pro/esm/plugins/button-generator/assets/styles.json.js
|
|
@@ -45093,10 +45094,10 @@ var r35 = class r36 extends UIElement {
|
|
|
45093
45094
|
<input type='range' min='8' max='28' name='fontSize' placeholder='~Font Size~'/>
|
|
45094
45095
|
<div class='&__checkboxes'>
|
|
45095
45096
|
<label>
|
|
45096
|
-
<input type='checkbox' name='fontWeight'/> bold
|
|
45097
|
+
<input type='checkbox' name='fontWeight'/> ~bold~
|
|
45097
45098
|
</label>
|
|
45098
45099
|
<label>
|
|
45099
|
-
<input type='checkbox' name='fontItalic'/> italic
|
|
45100
|
+
<input type='checkbox' name='fontItalic'/> ~italic~
|
|
45100
45101
|
</label>
|
|
45101
45102
|
</div>
|
|
45102
45103
|
</div>
|
|
@@ -45252,11 +45253,11 @@ h27 = p31([component], h27);
|
|
|
45252
45253
|
var u30 = Object.defineProperty;
|
|
45253
45254
|
var p32 = (i54, t48) => u30(i54, "name", { value: t48, configurable: true });
|
|
45254
45255
|
var a40;
|
|
45255
|
-
var b13 = function(i54, t48, e42,
|
|
45256
|
-
var s50 = arguments.length,
|
|
45257
|
-
if (typeof Reflect == "object" && typeof Reflect.decorate == "function")
|
|
45258
|
-
else for (var f50 = i54.length - 1; f50 >= 0; f50--) (n57 = i54[f50]) && (
|
|
45259
|
-
return s50 > 3 &&
|
|
45256
|
+
var b13 = function(i54, t48, e42, r59) {
|
|
45257
|
+
var s50 = arguments.length, o57 = s50 < 3 ? t48 : r59 === null ? r59 = Object.getOwnPropertyDescriptor(t48, e42) : r59, n57;
|
|
45258
|
+
if (typeof Reflect == "object" && typeof Reflect.decorate == "function") o57 = Reflect.decorate(i54, t48, e42, r59);
|
|
45259
|
+
else for (var f50 = i54.length - 1; f50 >= 0; f50--) (n57 = i54[f50]) && (o57 = (s50 < 3 ? n57(o57) : s50 > 3 ? n57(t48, e42, o57) : n57(t48, e42)) || o57);
|
|
45260
|
+
return s50 > 3 && o57 && Object.defineProperty(t48, e42, o57), o57;
|
|
45260
45261
|
};
|
|
45261
45262
|
var l27;
|
|
45262
45263
|
var d24 = l27 = (a40 = class extends UIElement {
|
|
@@ -45276,23 +45277,23 @@ var d24 = l27 = (a40 = class extends UIElement {
|
|
|
45276
45277
|
super(t48), this.state = { text: "", className: "", href: "", bgEnd: "#5cbf2a", bgStart: "#44c767", borderColor: "#18ab29", borderRadius: 28, borderSize: 1, boxShadow: false, boxShadowBlurRadius: 0, boxShadowColor: "#3dc21b", boxShadowInset: false, boxShadowOffsetX: 0, boxShadowOffsetY: 0, boxShadowSpreadRadius: 0, fontColor: "#fff", fontFamily: "Arial", fontSize: 17, fontStyle: false, fontWeight: false, fontItalic: false, paddingX: 31, paddingY: 16, previewBgColor: "#f5f5f5", solid: true, textShadow: true, textShadowBlurRadius: 0, textShadowColor: "#2f6627", textShadowOffsetX: 0, textShadowOffsetY: 1 }, this.preview = new h27(this.j, this.state, this.updateState), this.form = new h26(this.j, this.state, this.updateState), this.generateLibrary();
|
|
45277
45278
|
const e42 = this.getElm("preview");
|
|
45278
45279
|
assert(e42 != null, "preview element does not exists"), e42.appendChild(this.preview.container);
|
|
45279
|
-
const
|
|
45280
|
-
assert(
|
|
45280
|
+
const r59 = this.getElm("form");
|
|
45281
|
+
assert(r59 != null, "form element does not exists"), r59.appendChild(this.form.container);
|
|
45281
45282
|
}
|
|
45282
45283
|
generateLibrary() {
|
|
45283
45284
|
const t48 = new UIGroup(this.j);
|
|
45284
|
-
s27.map(l27.mapKey).forEach((
|
|
45285
|
-
const s50 = new p30(this.j,
|
|
45285
|
+
s27.map((r59) => l27.mapKey(r59, this.j)).forEach((r59) => {
|
|
45286
|
+
const s50 = new p30(this.j, r59);
|
|
45286
45287
|
s50.setMod("mode", "library"), t48.append(s50), this.j.e.on(s50.container, "click", () => {
|
|
45287
|
-
const { text:
|
|
45288
|
-
Object.assign(this.state,
|
|
45288
|
+
const { text: o57 } = this.state;
|
|
45289
|
+
Object.assign(this.state, r59), Object.assign(this.state, { className: "", text: o57 }), this.update();
|
|
45289
45290
|
});
|
|
45290
45291
|
});
|
|
45291
45292
|
const e42 = this.getElm("library");
|
|
45292
45293
|
assert(e42 != null, "library element does not exists"), e42.appendChild(t48.container);
|
|
45293
45294
|
}
|
|
45294
|
-
static mapKey(t48) {
|
|
45295
|
-
return { bgEnd: t48.be, bgStart: t48.bs, borderColor: t48.bc, borderRadius: t48.br, borderSize: t48.bse, boxShadow: t48.bsh, boxShadowBlurRadius: t48.bsbr, boxShadowColor: t48.bsc, boxShadowInset: t48.bsi, boxShadowOffsetX: t48.bsox, boxShadowOffsetY: t48.bsoy, boxShadowSpreadRadius: t48.bssr, fontColor: t48.fc, fontFamily: t48.ff, fontSize: t48.fs, fontStyle: t48.fse, fontWeight: t48.fw, paddingX: t48.px, paddingY: t48.py, previewBgColor: t48.pbc, solid: t48.s, text: t48.t, textShadow: t48.ts, textShadowBlurRadius: t48.tsbr, textShadowColor: t48.tsc, textShadowOffsetX: t48.tsox, textShadowOffsetY: t48.tsoy };
|
|
45295
|
+
static mapKey(t48, e42) {
|
|
45296
|
+
return { bgEnd: t48.be, bgStart: t48.bs, borderColor: t48.bc, borderRadius: t48.br, borderSize: t48.bse, boxShadow: t48.bsh, boxShadowBlurRadius: t48.bsbr, boxShadowColor: t48.bsc, boxShadowInset: t48.bsi, boxShadowOffsetX: t48.bsox, boxShadowOffsetY: t48.bsoy, boxShadowSpreadRadius: t48.bssr, fontColor: t48.fc, fontFamily: t48.ff, fontSize: t48.fs, fontStyle: t48.fse, fontWeight: t48.fw, paddingX: t48.px, paddingY: t48.py, previewBgColor: t48.pbc, solid: t48.s, text: isString(t48.t) ? e42.i18n(t48.t) : t48.t, textShadow: t48.ts, textShadowBlurRadius: t48.tsbr, textShadowColor: t48.tsc, textShadowOffsetX: t48.tsox, textShadowOffsetY: t48.tsoy };
|
|
45296
45297
|
}
|
|
45297
45298
|
updateState(t48, e42) {
|
|
45298
45299
|
this.state[t48] = e42, this.update();
|