lib-pajakio-v2 1.0.34 → 1.0.35
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/lib-pajakio-v2.common.js +113 -84
- package/dist/lib-pajakio-v2.common.js.map +1 -1
- package/dist/lib-pajakio-v2.umd.js +113 -84
- package/dist/lib-pajakio-v2.umd.js.map +1 -1
- package/dist/lib-pajakio-v2.umd.min.js +1 -1
- package/dist/lib-pajakio-v2.umd.min.js.map +1 -1
- package/package.json +1 -1
- package/src/components/Form/FormWysiwyg.vue +44 -4
|
@@ -109,17 +109,6 @@ module.exports = String(test) === '[object z]';
|
|
|
109
109
|
|
|
110
110
|
// extracted by mini-css-extract-plugin
|
|
111
111
|
|
|
112
|
-
/***/ }),
|
|
113
|
-
|
|
114
|
-
/***/ "0286":
|
|
115
|
-
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
116
|
-
|
|
117
|
-
"use strict";
|
|
118
|
-
/* harmony import */ var _node_modules_mini_css_extract_plugin_dist_loader_js_ref_9_oneOf_1_0_node_modules_css_loader_dist_cjs_js_ref_9_oneOf_1_1_node_modules_vue_loader_v16_dist_stylePostLoader_js_node_modules_postcss_loader_src_index_js_ref_9_oneOf_1_2_node_modules_sass_loader_dist_cjs_js_ref_9_oneOf_1_3_node_modules_cache_loader_dist_cjs_js_ref_1_0_node_modules_vue_loader_v16_dist_index_js_ref_1_1_FormWysiwyg_vue_vue_type_style_index_0_id_0d8d1bef_lang_scss__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("168b");
|
|
119
|
-
/* harmony import */ var _node_modules_mini_css_extract_plugin_dist_loader_js_ref_9_oneOf_1_0_node_modules_css_loader_dist_cjs_js_ref_9_oneOf_1_1_node_modules_vue_loader_v16_dist_stylePostLoader_js_node_modules_postcss_loader_src_index_js_ref_9_oneOf_1_2_node_modules_sass_loader_dist_cjs_js_ref_9_oneOf_1_3_node_modules_cache_loader_dist_cjs_js_ref_1_0_node_modules_vue_loader_v16_dist_index_js_ref_1_1_FormWysiwyg_vue_vue_type_style_index_0_id_0d8d1bef_lang_scss__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_node_modules_mini_css_extract_plugin_dist_loader_js_ref_9_oneOf_1_0_node_modules_css_loader_dist_cjs_js_ref_9_oneOf_1_1_node_modules_vue_loader_v16_dist_stylePostLoader_js_node_modules_postcss_loader_src_index_js_ref_9_oneOf_1_2_node_modules_sass_loader_dist_cjs_js_ref_9_oneOf_1_3_node_modules_cache_loader_dist_cjs_js_ref_1_0_node_modules_vue_loader_v16_dist_index_js_ref_1_1_FormWysiwyg_vue_vue_type_style_index_0_id_0d8d1bef_lang_scss__WEBPACK_IMPORTED_MODULE_0__);
|
|
120
|
-
/* unused harmony reexport * */
|
|
121
|
-
|
|
122
|
-
|
|
123
112
|
/***/ }),
|
|
124
113
|
|
|
125
114
|
/***/ "04f8":
|
|
@@ -505,13 +494,6 @@ module.exports = typeof documentAll == 'undefined' && documentAll !== undefined
|
|
|
505
494
|
/* unused harmony reexport * */
|
|
506
495
|
|
|
507
496
|
|
|
508
|
-
/***/ }),
|
|
509
|
-
|
|
510
|
-
/***/ "168b":
|
|
511
|
-
/***/ (function(module, exports, __webpack_require__) {
|
|
512
|
-
|
|
513
|
-
// extracted by mini-css-extract-plugin
|
|
514
|
-
|
|
515
497
|
/***/ }),
|
|
516
498
|
|
|
517
499
|
/***/ "1a2d":
|
|
@@ -1597,6 +1579,17 @@ $({ target: 'Set', proto: true, real: true, forced: !setMethodAcceptSetLike('uni
|
|
|
1597
1579
|
exports.f = Object.getOwnPropertySymbols;
|
|
1598
1580
|
|
|
1599
1581
|
|
|
1582
|
+
/***/ }),
|
|
1583
|
+
|
|
1584
|
+
/***/ "75e5":
|
|
1585
|
+
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
1586
|
+
|
|
1587
|
+
"use strict";
|
|
1588
|
+
/* harmony import */ var _node_modules_mini_css_extract_plugin_dist_loader_js_ref_9_oneOf_1_0_node_modules_css_loader_dist_cjs_js_ref_9_oneOf_1_1_node_modules_vue_loader_v16_dist_stylePostLoader_js_node_modules_postcss_loader_src_index_js_ref_9_oneOf_1_2_node_modules_sass_loader_dist_cjs_js_ref_9_oneOf_1_3_node_modules_cache_loader_dist_cjs_js_ref_1_0_node_modules_vue_loader_v16_dist_index_js_ref_1_1_FormWysiwyg_vue_vue_type_style_index_0_id_25d17aeb_lang_scss__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("a84e");
|
|
1589
|
+
/* harmony import */ var _node_modules_mini_css_extract_plugin_dist_loader_js_ref_9_oneOf_1_0_node_modules_css_loader_dist_cjs_js_ref_9_oneOf_1_1_node_modules_vue_loader_v16_dist_stylePostLoader_js_node_modules_postcss_loader_src_index_js_ref_9_oneOf_1_2_node_modules_sass_loader_dist_cjs_js_ref_9_oneOf_1_3_node_modules_cache_loader_dist_cjs_js_ref_1_0_node_modules_vue_loader_v16_dist_index_js_ref_1_1_FormWysiwyg_vue_vue_type_style_index_0_id_25d17aeb_lang_scss__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_node_modules_mini_css_extract_plugin_dist_loader_js_ref_9_oneOf_1_0_node_modules_css_loader_dist_cjs_js_ref_9_oneOf_1_1_node_modules_vue_loader_v16_dist_stylePostLoader_js_node_modules_postcss_loader_src_index_js_ref_9_oneOf_1_2_node_modules_sass_loader_dist_cjs_js_ref_9_oneOf_1_3_node_modules_cache_loader_dist_cjs_js_ref_1_0_node_modules_vue_loader_v16_dist_index_js_ref_1_1_FormWysiwyg_vue_vue_type_style_index_0_id_25d17aeb_lang_scss__WEBPACK_IMPORTED_MODULE_0__);
|
|
1590
|
+
/* unused harmony reexport * */
|
|
1591
|
+
|
|
1592
|
+
|
|
1600
1593
|
/***/ }),
|
|
1601
1594
|
|
|
1602
1595
|
/***/ "7839":
|
|
@@ -2429,6 +2422,13 @@ module.exports = function (METHOD_NAME, argument) {
|
|
|
2429
2422
|
/* unused harmony reexport * */
|
|
2430
2423
|
|
|
2431
2424
|
|
|
2425
|
+
/***/ }),
|
|
2426
|
+
|
|
2427
|
+
/***/ "a84e":
|
|
2428
|
+
/***/ (function(module, exports, __webpack_require__) {
|
|
2429
|
+
|
|
2430
|
+
// extracted by mini-css-extract-plugin
|
|
2431
|
+
|
|
2432
2432
|
/***/ }),
|
|
2433
2433
|
|
|
2434
2434
|
/***/ "aa8b":
|
|
@@ -43096,74 +43096,74 @@ var FormTextareavue_type_style_index_0_id_4b6a6dc5_lang_scss = __webpack_require
|
|
|
43096
43096
|
const FormTextarea_exports_ = /*#__PURE__*/exportHelper_default()(FormTextareavue_type_script_lang_js, [['render',FormTextareavue_type_template_id_4b6a6dc5_render]])
|
|
43097
43097
|
|
|
43098
43098
|
/* harmony default export */ var FormTextarea = (FormTextarea_exports_);
|
|
43099
|
-
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js??ref--13-0!./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib!./node_modules/vue-loader-v16/dist/templateLoader.js??ref--6!./node_modules/cache-loader/dist/cjs.js??ref--1-0!./node_modules/vue-loader-v16/dist??ref--1-1!./src/components/Form/FormWysiwyg.vue?vue&type=template&id=
|
|
43099
|
+
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js??ref--13-0!./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib!./node_modules/vue-loader-v16/dist/templateLoader.js??ref--6!./node_modules/cache-loader/dist/cjs.js??ref--1-0!./node_modules/vue-loader-v16/dist??ref--1-1!./src/components/Form/FormWysiwyg.vue?vue&type=template&id=25d17aeb
|
|
43100
43100
|
|
|
43101
|
-
const
|
|
43101
|
+
const FormWysiwygvue_type_template_id_25d17aeb_hoisted_1 = {
|
|
43102
43102
|
class: "form-wysiwyg flex flex-col"
|
|
43103
43103
|
};
|
|
43104
|
-
const
|
|
43104
|
+
const FormWysiwygvue_type_template_id_25d17aeb_hoisted_2 = {
|
|
43105
43105
|
class: "w-full"
|
|
43106
43106
|
};
|
|
43107
|
-
const
|
|
43107
|
+
const FormWysiwygvue_type_template_id_25d17aeb_hoisted_3 = {
|
|
43108
43108
|
key: 0,
|
|
43109
43109
|
class: "toolbar"
|
|
43110
43110
|
};
|
|
43111
|
-
const
|
|
43111
|
+
const FormWysiwygvue_type_template_id_25d17aeb_hoisted_4 = {
|
|
43112
43112
|
key: 0,
|
|
43113
43113
|
class: "toolbar-divider"
|
|
43114
43114
|
};
|
|
43115
|
-
const
|
|
43116
|
-
const
|
|
43115
|
+
const FormWysiwygvue_type_template_id_25d17aeb_hoisted_5 = ["disabled", "title"];
|
|
43116
|
+
const FormWysiwygvue_type_template_id_25d17aeb_hoisted_6 = {
|
|
43117
43117
|
class: "icon-picker-tabs"
|
|
43118
43118
|
};
|
|
43119
|
-
const
|
|
43120
|
-
const
|
|
43119
|
+
const FormWysiwygvue_type_template_id_25d17aeb_hoisted_7 = ["title", "onClick"];
|
|
43120
|
+
const FormWysiwygvue_type_template_id_25d17aeb_hoisted_8 = {
|
|
43121
43121
|
class: "icon-picker-search"
|
|
43122
43122
|
};
|
|
43123
|
-
const
|
|
43123
|
+
const FormWysiwygvue_type_template_id_25d17aeb_hoisted_9 = {
|
|
43124
43124
|
class: "icon-picker-color"
|
|
43125
43125
|
};
|
|
43126
|
-
const
|
|
43127
|
-
const
|
|
43126
|
+
const FormWysiwygvue_type_template_id_25d17aeb_hoisted_10 = ["title", "onClick"];
|
|
43127
|
+
const FormWysiwygvue_type_template_id_25d17aeb_hoisted_11 = {
|
|
43128
43128
|
class: "icon-picker-color-custom"
|
|
43129
43129
|
};
|
|
43130
|
-
const
|
|
43130
|
+
const FormWysiwygvue_type_template_id_25d17aeb_hoisted_12 = {
|
|
43131
43131
|
class: "icon-picker-list"
|
|
43132
43132
|
};
|
|
43133
|
-
const
|
|
43133
|
+
const FormWysiwygvue_type_template_id_25d17aeb_hoisted_13 = {
|
|
43134
43134
|
class: "icon-picker-section-title"
|
|
43135
43135
|
};
|
|
43136
|
-
const
|
|
43136
|
+
const FormWysiwygvue_type_template_id_25d17aeb_hoisted_14 = {
|
|
43137
43137
|
class: "icon-picker-grid"
|
|
43138
43138
|
};
|
|
43139
|
-
const
|
|
43140
|
-
const
|
|
43139
|
+
const FormWysiwygvue_type_template_id_25d17aeb_hoisted_15 = ["title", "onClick"];
|
|
43140
|
+
const FormWysiwygvue_type_template_id_25d17aeb_hoisted_16 = {
|
|
43141
43141
|
key: 0,
|
|
43142
43142
|
class: "icon-picker-empty"
|
|
43143
43143
|
};
|
|
43144
|
-
const
|
|
43145
|
-
const
|
|
43146
|
-
const
|
|
43147
|
-
const
|
|
43144
|
+
const FormWysiwygvue_type_template_id_25d17aeb_hoisted_17 = ["disabled", "title", "value", "onChange"];
|
|
43145
|
+
const FormWysiwygvue_type_template_id_25d17aeb_hoisted_18 = ["value"];
|
|
43146
|
+
const FormWysiwygvue_type_template_id_25d17aeb_hoisted_19 = ["disabled", "title", "onClick"];
|
|
43147
|
+
const FormWysiwygvue_type_template_id_25d17aeb_hoisted_20 = {
|
|
43148
43148
|
key: 1,
|
|
43149
43149
|
class: "toolbar-text"
|
|
43150
43150
|
};
|
|
43151
|
-
const
|
|
43152
|
-
const
|
|
43153
|
-
function
|
|
43151
|
+
const FormWysiwygvue_type_template_id_25d17aeb_hoisted_21 = ["contenteditable", "data-placeholder"];
|
|
43152
|
+
const FormWysiwygvue_type_template_id_25d17aeb_hoisted_22 = ["innerHTML"];
|
|
43153
|
+
function FormWysiwygvue_type_template_id_25d17aeb_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
43154
43154
|
const _component_base_icon = Object(external_commonjs_vue_commonjs2_vue_root_Vue_["resolveComponent"])("base-icon");
|
|
43155
|
-
return Object(external_commonjs_vue_commonjs2_vue_root_Vue_["openBlock"])(), Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createElementBlock"])("div",
|
|
43155
|
+
return Object(external_commonjs_vue_commonjs2_vue_root_Vue_["openBlock"])(), Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createElementBlock"])("div", FormWysiwygvue_type_template_id_25d17aeb_hoisted_1, [Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createElementVNode"])("div", {
|
|
43156
43156
|
class: Object(external_commonjs_vue_commonjs2_vue_root_Vue_["normalizeClass"])(`label-${$props.labelPosition}`)
|
|
43157
|
-
}, [Object(external_commonjs_vue_commonjs2_vue_root_Vue_["renderSlot"])(_ctx.$slots, "label"), Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createElementVNode"])("div",
|
|
43157
|
+
}, [Object(external_commonjs_vue_commonjs2_vue_root_Vue_["renderSlot"])(_ctx.$slots, "label"), Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createElementVNode"])("div", FormWysiwygvue_type_template_id_25d17aeb_hoisted_2, [Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createElementVNode"])("div", {
|
|
43158
43158
|
class: Object(external_commonjs_vue_commonjs2_vue_root_Vue_["normalizeClass"])(["editor-group", {
|
|
43159
43159
|
error: $props.error,
|
|
43160
43160
|
disabled: $props.disabled,
|
|
43161
43161
|
readonly: $props.readonly && !$props.disabled
|
|
43162
43162
|
}])
|
|
43163
|
-
}, [$props.showToolbar ? (Object(external_commonjs_vue_commonjs2_vue_root_Vue_["openBlock"])(), Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createElementBlock"])("div",
|
|
43163
|
+
}, [$props.showToolbar ? (Object(external_commonjs_vue_commonjs2_vue_root_Vue_["openBlock"])(), Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createElementBlock"])("div", FormWysiwygvue_type_template_id_25d17aeb_hoisted_3, [(Object(external_commonjs_vue_commonjs2_vue_root_Vue_["openBlock"])(true), Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createElementBlock"])(external_commonjs_vue_commonjs2_vue_root_Vue_["Fragment"], null, Object(external_commonjs_vue_commonjs2_vue_root_Vue_["renderList"])($options.resolvedToolbar, (item, index) => {
|
|
43164
43164
|
return Object(external_commonjs_vue_commonjs2_vue_root_Vue_["openBlock"])(), Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createElementBlock"])(external_commonjs_vue_commonjs2_vue_root_Vue_["Fragment"], {
|
|
43165
43165
|
key: `${item.action}-${index}`
|
|
43166
|
-
}, [item.action === 'divider' ? (Object(external_commonjs_vue_commonjs2_vue_root_Vue_["openBlock"])(), Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createElementBlock"])("div",
|
|
43166
|
+
}, [item.action === 'divider' ? (Object(external_commonjs_vue_commonjs2_vue_root_Vue_["openBlock"])(), Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createElementBlock"])("div", FormWysiwygvue_type_template_id_25d17aeb_hoisted_4)) : item.action === 'insertIcon' ? (Object(external_commonjs_vue_commonjs2_vue_root_Vue_["openBlock"])(), Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createElementBlock"])("div", {
|
|
43167
43167
|
key: 1,
|
|
43168
43168
|
ref_for: true,
|
|
43169
43169
|
ref: "iconPickerRef",
|
|
@@ -43182,12 +43182,12 @@ function FormWysiwygvue_type_template_id_0d8d1bef_render(_ctx, _cache, $props, $
|
|
|
43182
43182
|
width: "18",
|
|
43183
43183
|
height: "18",
|
|
43184
43184
|
color: $data.isIconPickerOpen ? '#3e7dc0' : '#59636E'
|
|
43185
|
-
}, null, 8, ["color"])], 42,
|
|
43185
|
+
}, null, 8, ["color"])], 42, FormWysiwygvue_type_template_id_25d17aeb_hoisted_5), $data.isIconPickerOpen ? (Object(external_commonjs_vue_commonjs2_vue_root_Vue_["openBlock"])(), Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createElementBlock"])("div", {
|
|
43186
43186
|
key: 0,
|
|
43187
43187
|
class: "icon-picker-popover",
|
|
43188
|
-
onMousedown: _cache[
|
|
43189
|
-
onClick: _cache[
|
|
43190
|
-
}, [Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createElementVNode"])("div",
|
|
43188
|
+
onMousedown: _cache[6] || (_cache[6] = Object(external_commonjs_vue_commonjs2_vue_root_Vue_["withModifiers"])(() => {}, ["stop"])),
|
|
43189
|
+
onClick: _cache[7] || (_cache[7] = Object(external_commonjs_vue_commonjs2_vue_root_Vue_["withModifiers"])(() => {}, ["stop"]))
|
|
43190
|
+
}, [Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createElementVNode"])("div", FormWysiwygvue_type_template_id_25d17aeb_hoisted_6, [(Object(external_commonjs_vue_commonjs2_vue_root_Vue_["openBlock"])(true), Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createElementBlock"])(external_commonjs_vue_commonjs2_vue_root_Vue_["Fragment"], null, Object(external_commonjs_vue_commonjs2_vue_root_Vue_["renderList"])($options.iconPickerTabs, category => {
|
|
43191
43191
|
return Object(external_commonjs_vue_commonjs2_vue_root_Vue_["openBlock"])(), Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createElementBlock"])("button", {
|
|
43192
43192
|
key: category.key,
|
|
43193
43193
|
type: "button",
|
|
@@ -43201,8 +43201,8 @@ function FormWysiwygvue_type_template_id_0d8d1bef_render(_ctx, _cache, $props, $
|
|
|
43201
43201
|
width: "22",
|
|
43202
43202
|
height: "22",
|
|
43203
43203
|
color: $data.activeIconCategory === category.key ? '#20242C' : '#666D75'
|
|
43204
|
-
}, null, 8, ["iconName", "color"])], 10,
|
|
43205
|
-
}), 128))]), Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createElementVNode"])("div",
|
|
43204
|
+
}, null, 8, ["iconName", "color"])], 10, FormWysiwygvue_type_template_id_25d17aeb_hoisted_7);
|
|
43205
|
+
}), 128))]), Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createElementVNode"])("div", FormWysiwygvue_type_template_id_25d17aeb_hoisted_8, [Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createVNode"])(_component_base_icon, {
|
|
43206
43206
|
iconName: "search",
|
|
43207
43207
|
width: "20",
|
|
43208
43208
|
height: "20",
|
|
@@ -43214,7 +43214,7 @@ function FormWysiwygvue_type_template_id_0d8d1bef_render(_ctx, _cache, $props, $
|
|
|
43214
43214
|
type: "text",
|
|
43215
43215
|
placeholder: "Cari Icon",
|
|
43216
43216
|
onKeydown: _cache[3] || (_cache[3] = Object(external_commonjs_vue_commonjs2_vue_root_Vue_["withKeys"])((...args) => $options.closeIconPicker && $options.closeIconPicker(...args), ["esc"]))
|
|
43217
|
-
}, null, 544), [[external_commonjs_vue_commonjs2_vue_root_Vue_["vModelText"], $data.iconSearch]])]), Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createElementVNode"])("div",
|
|
43217
|
+
}, null, 544), [[external_commonjs_vue_commonjs2_vue_root_Vue_["vModelText"], $data.iconSearch]])]), Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createElementVNode"])("div", FormWysiwygvue_type_template_id_25d17aeb_hoisted_9, [_cache[20] || (_cache[20] = Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createElementVNode"])("span", {
|
|
43218
43218
|
class: "icon-picker-color-label"
|
|
43219
43219
|
}, "Warna Icon", -1)), (Object(external_commonjs_vue_commonjs2_vue_root_Vue_["openBlock"])(true), Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createElementBlock"])(external_commonjs_vue_commonjs2_vue_root_Vue_["Fragment"], null, Object(external_commonjs_vue_commonjs2_vue_root_Vue_["renderList"])($props.iconColorOptions, color => {
|
|
43220
43220
|
return Object(external_commonjs_vue_commonjs2_vue_root_Vue_["openBlock"])(), Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createElementBlock"])("button", {
|
|
@@ -43228,8 +43228,8 @@ function FormWysiwygvue_type_template_id_0d8d1bef_render(_ctx, _cache, $props, $
|
|
|
43228
43228
|
}),
|
|
43229
43229
|
title: color,
|
|
43230
43230
|
onClick: $event => $options.setSelectedIconColor(color)
|
|
43231
|
-
}, null, 14,
|
|
43232
|
-
}), 128)), Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createElementVNode"])("label",
|
|
43231
|
+
}, null, 14, FormWysiwygvue_type_template_id_25d17aeb_hoisted_10);
|
|
43232
|
+
}), 128)), Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createElementVNode"])("label", FormWysiwygvue_type_template_id_25d17aeb_hoisted_11, [Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createElementVNode"])("span", {
|
|
43233
43233
|
style: Object(external_commonjs_vue_commonjs2_vue_root_Vue_["normalizeStyle"])({
|
|
43234
43234
|
backgroundColor: $data.selectedIconColor
|
|
43235
43235
|
})
|
|
@@ -43237,38 +43237,39 @@ function FormWysiwygvue_type_template_id_0d8d1bef_render(_ctx, _cache, $props, $
|
|
|
43237
43237
|
"onUpdate:modelValue": _cache[4] || (_cache[4] = $event => $data.selectedIconColor = $event),
|
|
43238
43238
|
type: "color",
|
|
43239
43239
|
title: "Custom color"
|
|
43240
|
-
}, null, 512), [[external_commonjs_vue_commonjs2_vue_root_Vue_["vModelText"], $data.selectedIconColor]])])]), Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createElementVNode"])("div",
|
|
43240
|
+
}, null, 512), [[external_commonjs_vue_commonjs2_vue_root_Vue_["vModelText"], $data.selectedIconColor]])])]), Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createElementVNode"])("div", FormWysiwygvue_type_template_id_25d17aeb_hoisted_12, [(Object(external_commonjs_vue_commonjs2_vue_root_Vue_["openBlock"])(true), Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createElementBlock"])(external_commonjs_vue_commonjs2_vue_root_Vue_["Fragment"], null, Object(external_commonjs_vue_commonjs2_vue_root_Vue_["renderList"])($options.visibleIconSections, section => {
|
|
43241
43241
|
return Object(external_commonjs_vue_commonjs2_vue_root_Vue_["openBlock"])(), Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createElementBlock"])("div", {
|
|
43242
43242
|
key: section.key,
|
|
43243
43243
|
class: "icon-picker-section"
|
|
43244
|
-
}, [Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createElementVNode"])("div",
|
|
43244
|
+
}, [Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createElementVNode"])("div", FormWysiwygvue_type_template_id_25d17aeb_hoisted_13, Object(external_commonjs_vue_commonjs2_vue_root_Vue_["toDisplayString"])(section.label), 1), Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createElementVNode"])("div", FormWysiwygvue_type_template_id_25d17aeb_hoisted_14, [(Object(external_commonjs_vue_commonjs2_vue_root_Vue_["openBlock"])(true), Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createElementBlock"])(external_commonjs_vue_commonjs2_vue_root_Vue_["Fragment"], null, Object(external_commonjs_vue_commonjs2_vue_root_Vue_["renderList"])(section.icons, iconName => {
|
|
43245
43245
|
return Object(external_commonjs_vue_commonjs2_vue_root_Vue_["openBlock"])(), Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createElementBlock"])("button", {
|
|
43246
43246
|
key: `${section.key}-${iconName}`,
|
|
43247
43247
|
type: "button",
|
|
43248
43248
|
class: "icon-picker-item",
|
|
43249
43249
|
title: iconName,
|
|
43250
|
+
onMousedown: _cache[5] || (_cache[5] = Object(external_commonjs_vue_commonjs2_vue_root_Vue_["withModifiers"])(() => {}, ["prevent"])),
|
|
43250
43251
|
onClick: $event => $options.selectIcon(iconName)
|
|
43251
43252
|
}, [Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createVNode"])(_component_base_icon, {
|
|
43252
43253
|
iconName: iconName,
|
|
43253
43254
|
width: "20",
|
|
43254
43255
|
height: "20",
|
|
43255
43256
|
color: $data.selectedIconColor
|
|
43256
|
-
}, null, 8, ["iconName", "color"])],
|
|
43257
|
+
}, null, 8, ["iconName", "color"])], 40, FormWysiwygvue_type_template_id_25d17aeb_hoisted_15);
|
|
43257
43258
|
}), 128))])]);
|
|
43258
|
-
}), 128)), !$options.visibleIconSections.length ? (Object(external_commonjs_vue_commonjs2_vue_root_Vue_["openBlock"])(), Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createElementBlock"])("div",
|
|
43259
|
+
}), 128)), !$options.visibleIconSections.length ? (Object(external_commonjs_vue_commonjs2_vue_root_Vue_["openBlock"])(), Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createElementBlock"])("div", FormWysiwygvue_type_template_id_25d17aeb_hoisted_16, " Icon tidak ditemukan ")) : Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createCommentVNode"])("", true)])], 32)) : Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createCommentVNode"])("", true)], 512)) : item.type === 'select' ? (Object(external_commonjs_vue_commonjs2_vue_root_Vue_["openBlock"])(), Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createElementBlock"])("select", {
|
|
43259
43260
|
key: 2,
|
|
43260
43261
|
class: "toolbar-select",
|
|
43261
43262
|
disabled: $options.isActionDisabled(item),
|
|
43262
43263
|
title: item.title || item.label,
|
|
43263
43264
|
value: $options.getSelectValue(item),
|
|
43264
|
-
onMousedown: _cache[
|
|
43265
|
+
onMousedown: _cache[8] || (_cache[8] = (...args) => $options.saveRange && $options.saveRange(...args)),
|
|
43265
43266
|
onChange: $event => $options.handleToolbarSelect(item, $event)
|
|
43266
43267
|
}, [(Object(external_commonjs_vue_commonjs2_vue_root_Vue_["openBlock"])(true), Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createElementBlock"])(external_commonjs_vue_commonjs2_vue_root_Vue_["Fragment"], null, Object(external_commonjs_vue_commonjs2_vue_root_Vue_["renderList"])(item.options, option => {
|
|
43267
43268
|
return Object(external_commonjs_vue_commonjs2_vue_root_Vue_["openBlock"])(), Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createElementBlock"])("option", {
|
|
43268
43269
|
key: option.value,
|
|
43269
43270
|
value: option.value
|
|
43270
|
-
}, Object(external_commonjs_vue_commonjs2_vue_root_Vue_["toDisplayString"])(option.label), 9,
|
|
43271
|
-
}), 128))], 40,
|
|
43271
|
+
}, Object(external_commonjs_vue_commonjs2_vue_root_Vue_["toDisplayString"])(option.label), 9, FormWysiwygvue_type_template_id_25d17aeb_hoisted_18);
|
|
43272
|
+
}), 128))], 40, FormWysiwygvue_type_template_id_25d17aeb_hoisted_17)) : (Object(external_commonjs_vue_commonjs2_vue_root_Vue_["openBlock"])(), Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createElementBlock"])("button", {
|
|
43272
43273
|
key: 3,
|
|
43273
43274
|
type: "button",
|
|
43274
43275
|
class: Object(external_commonjs_vue_commonjs2_vue_root_Vue_["normalizeClass"])(["toolbar-button", {
|
|
@@ -43276,7 +43277,7 @@ function FormWysiwygvue_type_template_id_0d8d1bef_render(_ctx, _cache, $props, $
|
|
|
43276
43277
|
}]),
|
|
43277
43278
|
disabled: $options.isActionDisabled(item),
|
|
43278
43279
|
title: item.title || item.label,
|
|
43279
|
-
onMousedown: _cache[
|
|
43280
|
+
onMousedown: _cache[9] || (_cache[9] = Object(external_commonjs_vue_commonjs2_vue_root_Vue_["withModifiers"])(() => {}, ["prevent"])),
|
|
43280
43281
|
onClick: $event => $options.handleToolbarAction(item)
|
|
43281
43282
|
}, [item.icon ? (Object(external_commonjs_vue_commonjs2_vue_root_Vue_["openBlock"])(), Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createBlock"])(_component_base_icon, {
|
|
43282
43283
|
key: 0,
|
|
@@ -43284,13 +43285,13 @@ function FormWysiwygvue_type_template_id_0d8d1bef_render(_ctx, _cache, $props, $
|
|
|
43284
43285
|
width: "18",
|
|
43285
43286
|
height: "18",
|
|
43286
43287
|
color: $options.isActionActive(item) ? '#3e7dc0' : '#59636E'
|
|
43287
|
-
}, null, 8, ["iconName", "color"])) : (Object(external_commonjs_vue_commonjs2_vue_root_Vue_["openBlock"])(), Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createElementBlock"])("span",
|
|
43288
|
+
}, null, 8, ["iconName", "color"])) : (Object(external_commonjs_vue_commonjs2_vue_root_Vue_["openBlock"])(), Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createElementBlock"])("span", FormWysiwygvue_type_template_id_25d17aeb_hoisted_20, Object(external_commonjs_vue_commonjs2_vue_root_Vue_["toDisplayString"])(item.label), 1))], 42, FormWysiwygvue_type_template_id_25d17aeb_hoisted_19))], 64);
|
|
43288
43289
|
}), 128))])) : Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createCommentVNode"])("", true), Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createElementVNode"])("input", {
|
|
43289
43290
|
ref: "imageInputRef",
|
|
43290
43291
|
type: "file",
|
|
43291
43292
|
class: "image-input",
|
|
43292
43293
|
accept: "image/*",
|
|
43293
|
-
onChange: _cache[
|
|
43294
|
+
onChange: _cache[10] || (_cache[10] = (...args) => $options.handleImageSelected && $options.handleImageSelected(...args))
|
|
43294
43295
|
}, null, 544), Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createElementVNode"])("div", {
|
|
43295
43296
|
class: "editor-wrapper",
|
|
43296
43297
|
style: Object(external_commonjs_vue_commonjs2_vue_root_Vue_["normalizeStyle"])($options.editorStyle)
|
|
@@ -43301,25 +43302,25 @@ function FormWysiwygvue_type_template_id_0d8d1bef_render(_ctx, _cache, $props, $
|
|
|
43301
43302
|
}]),
|
|
43302
43303
|
contenteditable: $options.isEditable,
|
|
43303
43304
|
"data-placeholder": $props.placeholder,
|
|
43304
|
-
onInput: _cache[
|
|
43305
|
-
onFocus: _cache[
|
|
43306
|
-
onBlur: _cache[
|
|
43307
|
-
onPaste: _cache[
|
|
43308
|
-
onMouseup: _cache[
|
|
43309
|
-
onKeyup: _cache[
|
|
43310
|
-
onMousedown: _cache[
|
|
43311
|
-
onMousemove: _cache[
|
|
43312
|
-
onMouseleave: _cache[
|
|
43313
|
-
}, null, 42,
|
|
43305
|
+
onInput: _cache[11] || (_cache[11] = (...args) => $options.handleInput && $options.handleInput(...args)),
|
|
43306
|
+
onFocus: _cache[12] || (_cache[12] = (...args) => $options.handleFocus && $options.handleFocus(...args)),
|
|
43307
|
+
onBlur: _cache[13] || (_cache[13] = (...args) => $options.handleBlur && $options.handleBlur(...args)),
|
|
43308
|
+
onPaste: _cache[14] || (_cache[14] = (...args) => $options.handlePaste && $options.handlePaste(...args)),
|
|
43309
|
+
onMouseup: _cache[15] || (_cache[15] = (...args) => $options.refreshToolbarState && $options.refreshToolbarState(...args)),
|
|
43310
|
+
onKeyup: _cache[16] || (_cache[16] = (...args) => $options.refreshToolbarState && $options.refreshToolbarState(...args)),
|
|
43311
|
+
onMousedown: _cache[17] || (_cache[17] = (...args) => $options.handleEditorMouseDown && $options.handleEditorMouseDown(...args)),
|
|
43312
|
+
onMousemove: _cache[18] || (_cache[18] = (...args) => $options.handleEditorMouseMove && $options.handleEditorMouseMove(...args)),
|
|
43313
|
+
onMouseleave: _cache[19] || (_cache[19] = (...args) => $options.handleEditorMouseLeave && $options.handleEditorMouseLeave(...args))
|
|
43314
|
+
}, null, 42, FormWysiwygvue_type_template_id_25d17aeb_hoisted_21)], 4)], 2), $props.message ? (Object(external_commonjs_vue_commonjs2_vue_root_Vue_["openBlock"])(), Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createElementBlock"])("div", {
|
|
43314
43315
|
key: 0,
|
|
43315
43316
|
class: Object(external_commonjs_vue_commonjs2_vue_root_Vue_["normalizeClass"])(["helper-text", {
|
|
43316
43317
|
'error-helper': $props.error
|
|
43317
43318
|
}])
|
|
43318
43319
|
}, [Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createElementVNode"])("span", {
|
|
43319
43320
|
innerHTML: $props.message
|
|
43320
|
-
}, null, 8,
|
|
43321
|
+
}, null, 8, FormWysiwygvue_type_template_id_25d17aeb_hoisted_22)], 2)) : Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createCommentVNode"])("", true)])], 2)]);
|
|
43321
43322
|
}
|
|
43322
|
-
// CONCATENATED MODULE: ./src/components/Form/FormWysiwyg.vue?vue&type=template&id=
|
|
43323
|
+
// CONCATENATED MODULE: ./src/components/Form/FormWysiwyg.vue?vue&type=template&id=25d17aeb
|
|
43323
43324
|
|
|
43324
43325
|
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.array.reduce.js
|
|
43325
43326
|
var es_array_reduce = __webpack_require__("13d5");
|
|
@@ -44420,7 +44421,28 @@ const SVG_SHAPE_SELECTOR = "path, rect, circle, ellipse, line, polyline, polygon
|
|
|
44420
44421
|
}
|
|
44421
44422
|
this.focusEditor();
|
|
44422
44423
|
this.restoreRange();
|
|
44423
|
-
|
|
44424
|
+
const editor = this.$refs.editorRef;
|
|
44425
|
+
const selection = window.getSelection();
|
|
44426
|
+
if (!editor || !selection || !selection.rangeCount || !this.selectionInsideEditor()) {
|
|
44427
|
+
return;
|
|
44428
|
+
}
|
|
44429
|
+
const range = selection.getRangeAt(0);
|
|
44430
|
+
const iconContainer = document.createElement("div");
|
|
44431
|
+
iconContainer.innerHTML = iconHtml;
|
|
44432
|
+
const iconNode = iconContainer.firstChild;
|
|
44433
|
+
if (!iconNode) {
|
|
44434
|
+
return;
|
|
44435
|
+
}
|
|
44436
|
+
const trailingSpace = document.createTextNode("\u00a0");
|
|
44437
|
+
const fragment = document.createDocumentFragment();
|
|
44438
|
+
fragment.appendChild(iconNode);
|
|
44439
|
+
fragment.appendChild(trailingSpace);
|
|
44440
|
+
range.deleteContents();
|
|
44441
|
+
range.insertNode(fragment);
|
|
44442
|
+
range.setStartAfter(trailingSpace);
|
|
44443
|
+
range.collapse(true);
|
|
44444
|
+
selection.removeAllRanges();
|
|
44445
|
+
selection.addRange(range);
|
|
44424
44446
|
this.handleInput();
|
|
44425
44447
|
this.saveRange();
|
|
44426
44448
|
},
|
|
@@ -44946,13 +44968,20 @@ const SVG_SHAPE_SELECTOR = "path, rect, circle, ellipse, line, polyline, polygon
|
|
|
44946
44968
|
return SAFE_IMAGE_PROTOCOLS.some(protocol => normalizedSrc.startsWith(protocol));
|
|
44947
44969
|
},
|
|
44948
44970
|
saveRange() {
|
|
44971
|
+
const editor = this.$refs.editorRef;
|
|
44949
44972
|
const selection = window.getSelection();
|
|
44950
|
-
if (selection
|
|
44951
|
-
|
|
44973
|
+
if (!editor || !selection || !selection.rangeCount) {
|
|
44974
|
+
return;
|
|
44975
|
+
}
|
|
44976
|
+
const range = selection.getRangeAt(0);
|
|
44977
|
+
if (!editor.contains(range.commonAncestorContainer)) {
|
|
44978
|
+
return;
|
|
44952
44979
|
}
|
|
44980
|
+
this.savedRange = range.cloneRange();
|
|
44953
44981
|
},
|
|
44954
44982
|
restoreRange() {
|
|
44955
|
-
|
|
44983
|
+
const editor = this.$refs.editorRef;
|
|
44984
|
+
if (!editor || !this.savedRange || !editor.contains(this.savedRange.commonAncestorContainer)) {
|
|
44956
44985
|
return;
|
|
44957
44986
|
}
|
|
44958
44987
|
const selection = window.getSelection();
|
|
@@ -45223,8 +45252,8 @@ const SVG_SHAPE_SELECTOR = "path, rect, circle, ellipse, line, polyline, polygon
|
|
|
45223
45252
|
});
|
|
45224
45253
|
// CONCATENATED MODULE: ./src/components/Form/FormWysiwyg.vue?vue&type=script&lang=js
|
|
45225
45254
|
|
|
45226
|
-
// EXTERNAL MODULE: ./src/components/Form/FormWysiwyg.vue?vue&type=style&index=0&id=
|
|
45227
|
-
var
|
|
45255
|
+
// EXTERNAL MODULE: ./src/components/Form/FormWysiwyg.vue?vue&type=style&index=0&id=25d17aeb&lang=scss
|
|
45256
|
+
var FormWysiwygvue_type_style_index_0_id_25d17aeb_lang_scss = __webpack_require__("75e5");
|
|
45228
45257
|
|
|
45229
45258
|
// CONCATENATED MODULE: ./src/components/Form/FormWysiwyg.vue
|
|
45230
45259
|
|
|
@@ -45234,7 +45263,7 @@ var FormWysiwygvue_type_style_index_0_id_0d8d1bef_lang_scss = __webpack_require_
|
|
|
45234
45263
|
|
|
45235
45264
|
|
|
45236
45265
|
|
|
45237
|
-
const FormWysiwyg_exports_ = /*#__PURE__*/exportHelper_default()(FormWysiwygvue_type_script_lang_js, [['render',
|
|
45266
|
+
const FormWysiwyg_exports_ = /*#__PURE__*/exportHelper_default()(FormWysiwygvue_type_script_lang_js, [['render',FormWysiwygvue_type_template_id_25d17aeb_render]])
|
|
45238
45267
|
|
|
45239
45268
|
/* harmony default export */ var FormWysiwyg = (FormWysiwyg_exports_);
|
|
45240
45269
|
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js??ref--13-0!./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib!./node_modules/vue-loader-v16/dist/templateLoader.js??ref--6!./node_modules/cache-loader/dist/cjs.js??ref--1-0!./node_modules/vue-loader-v16/dist??ref--1-1!./src/components/ExpansionPanel/index.vue?vue&type=template&id=01544323
|