lib-pajakio-v2 1.0.27 → 1.0.29
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 +173 -65
- package/dist/lib-pajakio-v2.common.js.map +1 -1
- package/dist/lib-pajakio-v2.umd.js +173 -65
- 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 +154 -33
|
@@ -435,13 +435,6 @@ $({ target: 'Array', proto: true, arity: 1, forced: FORCED }, {
|
|
|
435
435
|
});
|
|
436
436
|
|
|
437
437
|
|
|
438
|
-
/***/ }),
|
|
439
|
-
|
|
440
|
-
/***/ "1618":
|
|
441
|
-
/***/ (function(module, exports, __webpack_require__) {
|
|
442
|
-
|
|
443
|
-
// extracted by mini-css-extract-plugin
|
|
444
|
-
|
|
445
438
|
/***/ }),
|
|
446
439
|
|
|
447
440
|
/***/ "1626":
|
|
@@ -1351,6 +1344,13 @@ module.exports = [
|
|
|
1351
1344
|
];
|
|
1352
1345
|
|
|
1353
1346
|
|
|
1347
|
+
/***/ }),
|
|
1348
|
+
|
|
1349
|
+
/***/ "7a3b":
|
|
1350
|
+
/***/ (function(module, exports, __webpack_require__) {
|
|
1351
|
+
|
|
1352
|
+
// extracted by mini-css-extract-plugin
|
|
1353
|
+
|
|
1354
1354
|
/***/ }),
|
|
1355
1355
|
|
|
1356
1356
|
/***/ "7b0b":
|
|
@@ -1950,6 +1950,17 @@ module.exports = DESCRIPTORS && fails(function () {
|
|
|
1950
1950
|
|
|
1951
1951
|
// extracted by mini-css-extract-plugin
|
|
1952
1952
|
|
|
1953
|
+
/***/ }),
|
|
1954
|
+
|
|
1955
|
+
/***/ "b371":
|
|
1956
|
+
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
1957
|
+
|
|
1958
|
+
"use strict";
|
|
1959
|
+
/* 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_08bd68a4_lang_scss__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("7a3b");
|
|
1960
|
+
/* 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_08bd68a4_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_08bd68a4_lang_scss__WEBPACK_IMPORTED_MODULE_0__);
|
|
1961
|
+
/* unused harmony reexport * */
|
|
1962
|
+
|
|
1963
|
+
|
|
1953
1964
|
/***/ }),
|
|
1954
1965
|
|
|
1955
1966
|
/***/ "b42e":
|
|
@@ -2290,17 +2301,6 @@ module.exports = function (it) {
|
|
|
2290
2301
|
};
|
|
2291
2302
|
|
|
2292
2303
|
|
|
2293
|
-
/***/ }),
|
|
2294
|
-
|
|
2295
|
-
/***/ "cc9a":
|
|
2296
|
-
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
2297
|
-
|
|
2298
|
-
"use strict";
|
|
2299
|
-
/* 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_62033250_lang_scss__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("1618");
|
|
2300
|
-
/* 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_62033250_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_62033250_lang_scss__WEBPACK_IMPORTED_MODULE_0__);
|
|
2301
|
-
/* unused harmony reexport * */
|
|
2302
|
-
|
|
2303
|
-
|
|
2304
2304
|
/***/ }),
|
|
2305
2305
|
|
|
2306
2306
|
/***/ "cdce":
|
|
@@ -42281,45 +42281,45 @@ var FormTextareavue_type_style_index_0_id_4b6a6dc5_lang_scss = __webpack_require
|
|
|
42281
42281
|
const FormTextarea_exports_ = /*#__PURE__*/exportHelper_default()(FormTextareavue_type_script_lang_js, [['render',FormTextareavue_type_template_id_4b6a6dc5_render]])
|
|
42282
42282
|
|
|
42283
42283
|
/* harmony default export */ var FormTextarea = (FormTextarea_exports_);
|
|
42284
|
-
// 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=
|
|
42284
|
+
// 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=08bd68a4
|
|
42285
42285
|
|
|
42286
|
-
const
|
|
42286
|
+
const FormWysiwygvue_type_template_id_08bd68a4_hoisted_1 = {
|
|
42287
42287
|
class: "form-wysiwyg flex flex-col"
|
|
42288
42288
|
};
|
|
42289
|
-
const
|
|
42289
|
+
const FormWysiwygvue_type_template_id_08bd68a4_hoisted_2 = {
|
|
42290
42290
|
class: "w-full"
|
|
42291
42291
|
};
|
|
42292
|
-
const
|
|
42292
|
+
const FormWysiwygvue_type_template_id_08bd68a4_hoisted_3 = {
|
|
42293
42293
|
key: 0,
|
|
42294
42294
|
class: "toolbar"
|
|
42295
42295
|
};
|
|
42296
|
-
const
|
|
42296
|
+
const FormWysiwygvue_type_template_id_08bd68a4_hoisted_4 = {
|
|
42297
42297
|
key: 0,
|
|
42298
42298
|
class: "toolbar-divider"
|
|
42299
42299
|
};
|
|
42300
|
-
const
|
|
42301
|
-
const
|
|
42302
|
-
const
|
|
42303
|
-
const
|
|
42300
|
+
const FormWysiwygvue_type_template_id_08bd68a4_hoisted_5 = ["disabled", "title", "value", "onChange"];
|
|
42301
|
+
const FormWysiwygvue_type_template_id_08bd68a4_hoisted_6 = ["value"];
|
|
42302
|
+
const FormWysiwygvue_type_template_id_08bd68a4_hoisted_7 = ["disabled", "title", "onClick"];
|
|
42303
|
+
const FormWysiwygvue_type_template_id_08bd68a4_hoisted_8 = {
|
|
42304
42304
|
key: 1,
|
|
42305
42305
|
class: "toolbar-text"
|
|
42306
42306
|
};
|
|
42307
|
-
const
|
|
42308
|
-
const
|
|
42309
|
-
function
|
|
42307
|
+
const FormWysiwygvue_type_template_id_08bd68a4_hoisted_9 = ["contenteditable", "data-placeholder"];
|
|
42308
|
+
const FormWysiwygvue_type_template_id_08bd68a4_hoisted_10 = ["innerHTML"];
|
|
42309
|
+
function FormWysiwygvue_type_template_id_08bd68a4_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
42310
42310
|
const _component_base_icon = Object(external_commonjs_vue_commonjs2_vue_root_Vue_["resolveComponent"])("base-icon");
|
|
42311
|
-
return Object(external_commonjs_vue_commonjs2_vue_root_Vue_["openBlock"])(), Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createElementBlock"])("div",
|
|
42311
|
+
return Object(external_commonjs_vue_commonjs2_vue_root_Vue_["openBlock"])(), Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createElementBlock"])("div", FormWysiwygvue_type_template_id_08bd68a4_hoisted_1, [Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createElementVNode"])("div", {
|
|
42312
42312
|
class: Object(external_commonjs_vue_commonjs2_vue_root_Vue_["normalizeClass"])(`label-${$props.labelPosition}`)
|
|
42313
|
-
}, [Object(external_commonjs_vue_commonjs2_vue_root_Vue_["renderSlot"])(_ctx.$slots, "label"), Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createElementVNode"])("div",
|
|
42313
|
+
}, [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_08bd68a4_hoisted_2, [Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createElementVNode"])("div", {
|
|
42314
42314
|
class: Object(external_commonjs_vue_commonjs2_vue_root_Vue_["normalizeClass"])(["editor-group", {
|
|
42315
42315
|
error: $props.error,
|
|
42316
42316
|
disabled: $props.disabled,
|
|
42317
42317
|
readonly: $props.readonly && !$props.disabled
|
|
42318
42318
|
}])
|
|
42319
|
-
}, [$props.showToolbar ? (Object(external_commonjs_vue_commonjs2_vue_root_Vue_["openBlock"])(), Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createElementBlock"])("div",
|
|
42319
|
+
}, [$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_08bd68a4_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) => {
|
|
42320
42320
|
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"], {
|
|
42321
42321
|
key: `${item.action}-${index}`
|
|
42322
|
-
}, [item.action === 'divider' ? (Object(external_commonjs_vue_commonjs2_vue_root_Vue_["openBlock"])(), Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createElementBlock"])("div",
|
|
42322
|
+
}, [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_08bd68a4_hoisted_4)) : item.type === 'select' ? (Object(external_commonjs_vue_commonjs2_vue_root_Vue_["openBlock"])(), Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createElementBlock"])("select", {
|
|
42323
42323
|
key: 1,
|
|
42324
42324
|
class: "toolbar-select",
|
|
42325
42325
|
disabled: $options.isActionDisabled(item),
|
|
@@ -42331,8 +42331,8 @@ function FormWysiwygvue_type_template_id_62033250_render(_ctx, _cache, $props, $
|
|
|
42331
42331
|
return Object(external_commonjs_vue_commonjs2_vue_root_Vue_["openBlock"])(), Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createElementBlock"])("option", {
|
|
42332
42332
|
key: option.value,
|
|
42333
42333
|
value: option.value
|
|
42334
|
-
}, Object(external_commonjs_vue_commonjs2_vue_root_Vue_["toDisplayString"])(option.label), 9,
|
|
42335
|
-
}), 128))], 40,
|
|
42334
|
+
}, Object(external_commonjs_vue_commonjs2_vue_root_Vue_["toDisplayString"])(option.label), 9, FormWysiwygvue_type_template_id_08bd68a4_hoisted_6);
|
|
42335
|
+
}), 128))], 40, FormWysiwygvue_type_template_id_08bd68a4_hoisted_5)) : (Object(external_commonjs_vue_commonjs2_vue_root_Vue_["openBlock"])(), Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createElementBlock"])("button", {
|
|
42336
42336
|
key: 2,
|
|
42337
42337
|
type: "button",
|
|
42338
42338
|
class: Object(external_commonjs_vue_commonjs2_vue_root_Vue_["normalizeClass"])(["toolbar-button", {
|
|
@@ -42348,7 +42348,7 @@ function FormWysiwygvue_type_template_id_62033250_render(_ctx, _cache, $props, $
|
|
|
42348
42348
|
width: "18",
|
|
42349
42349
|
height: "18",
|
|
42350
42350
|
color: $options.isActionActive(item) ? '#3e7dc0' : '#59636E'
|
|
42351
|
-
}, null, 8, ["iconName", "color"])) : (Object(external_commonjs_vue_commonjs2_vue_root_Vue_["openBlock"])(), Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createElementBlock"])("span",
|
|
42351
|
+
}, 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_08bd68a4_hoisted_8, Object(external_commonjs_vue_commonjs2_vue_root_Vue_["toDisplayString"])(item.label), 1))], 42, FormWysiwygvue_type_template_id_08bd68a4_hoisted_7))], 64);
|
|
42352
42352
|
}), 128))])) : Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createCommentVNode"])("", true), Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createElementVNode"])("input", {
|
|
42353
42353
|
ref: "imageInputRef",
|
|
42354
42354
|
type: "file",
|
|
@@ -42374,16 +42374,16 @@ function FormWysiwygvue_type_template_id_62033250_render(_ctx, _cache, $props, $
|
|
|
42374
42374
|
onMousedown: _cache[9] || (_cache[9] = (...args) => $options.handleEditorMouseDown && $options.handleEditorMouseDown(...args)),
|
|
42375
42375
|
onMousemove: _cache[10] || (_cache[10] = (...args) => $options.handleEditorMouseMove && $options.handleEditorMouseMove(...args)),
|
|
42376
42376
|
onMouseleave: _cache[11] || (_cache[11] = (...args) => $options.handleEditorMouseLeave && $options.handleEditorMouseLeave(...args))
|
|
42377
|
-
}, null, 42,
|
|
42377
|
+
}, null, 42, FormWysiwygvue_type_template_id_08bd68a4_hoisted_9)], 4)], 2), $props.message ? (Object(external_commonjs_vue_commonjs2_vue_root_Vue_["openBlock"])(), Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createElementBlock"])("div", {
|
|
42378
42378
|
key: 0,
|
|
42379
42379
|
class: Object(external_commonjs_vue_commonjs2_vue_root_Vue_["normalizeClass"])(["helper-text", {
|
|
42380
42380
|
'error-helper': $props.error
|
|
42381
42381
|
}])
|
|
42382
42382
|
}, [Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createElementVNode"])("span", {
|
|
42383
42383
|
innerHTML: $props.message
|
|
42384
|
-
}, null, 8,
|
|
42384
|
+
}, null, 8, FormWysiwygvue_type_template_id_08bd68a4_hoisted_10)], 2)) : Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createCommentVNode"])("", true)])], 2)]);
|
|
42385
42385
|
}
|
|
42386
|
-
// CONCATENATED MODULE: ./src/components/Form/FormWysiwyg.vue?vue&type=template&id=
|
|
42386
|
+
// CONCATENATED MODULE: ./src/components/Form/FormWysiwyg.vue?vue&type=template&id=08bd68a4
|
|
42387
42387
|
|
|
42388
42388
|
// 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/cache-loader/dist/cjs.js??ref--1-0!./node_modules/vue-loader-v16/dist??ref--1-1!./src/components/Form/FormWysiwyg.vue?vue&type=script&lang=js
|
|
42389
42389
|
|
|
@@ -43211,16 +43211,16 @@ const ALLOWED_TAGS = ["A", "ARTICLE", "B", "BLOCKQUOTE", "BR", "CODE", "DIV", "E
|
|
|
43211
43211
|
getArticleCardContent(cardNumber) {
|
|
43212
43212
|
const articleCardContents = [{
|
|
43213
43213
|
icon: "🧭",
|
|
43214
|
-
title:
|
|
43215
|
-
description: "
|
|
43214
|
+
title: `Article Card ${cardNumber}`,
|
|
43215
|
+
description: "Deskripsi article card."
|
|
43216
43216
|
}, {
|
|
43217
43217
|
icon: "📄",
|
|
43218
|
-
title:
|
|
43219
|
-
description: "
|
|
43218
|
+
title: `Article Card ${cardNumber}`,
|
|
43219
|
+
description: "Deskripsi article card."
|
|
43220
43220
|
}, {
|
|
43221
43221
|
icon: "⌛",
|
|
43222
|
-
title:
|
|
43223
|
-
description: "
|
|
43222
|
+
title: `Article Card ${cardNumber}`,
|
|
43223
|
+
description: "Deskripsi article card."
|
|
43224
43224
|
}];
|
|
43225
43225
|
return articleCardContents[cardNumber - 1] || {
|
|
43226
43226
|
icon: "📄",
|
|
@@ -43281,17 +43281,17 @@ const ALLOWED_TAGS = ["A", "ARTICLE", "B", "BLOCKQUOTE", "BR", "CODE", "DIV", "E
|
|
|
43281
43281
|
},
|
|
43282
43282
|
getNumberedCardContent(cardNumber) {
|
|
43283
43283
|
const numberedCardContents = [{
|
|
43284
|
-
title:
|
|
43285
|
-
description: "
|
|
43284
|
+
title: `Nomor ${cardNumber}`,
|
|
43285
|
+
description: "Deskripsi kartu bernomor."
|
|
43286
43286
|
}, {
|
|
43287
|
-
title:
|
|
43288
|
-
description: "
|
|
43287
|
+
title: `Nomor ${cardNumber}`,
|
|
43288
|
+
description: "Deskripsi kartu bernomor."
|
|
43289
43289
|
}, {
|
|
43290
|
-
title:
|
|
43291
|
-
description: "
|
|
43290
|
+
title: `Nomor ${cardNumber}`,
|
|
43291
|
+
description: "Deskripsi kartu bernomor."
|
|
43292
43292
|
}, {
|
|
43293
|
-
title:
|
|
43294
|
-
description: "
|
|
43293
|
+
title: `Nomor ${cardNumber}`,
|
|
43294
|
+
description: "Deskripsi kartu bernomor."
|
|
43295
43295
|
}];
|
|
43296
43296
|
return numberedCardContents[cardNumber - 1] || {
|
|
43297
43297
|
title: `Nomor ${cardNumber}`,
|
|
@@ -43351,17 +43351,17 @@ const ALLOWED_TAGS = ["A", "ARTICLE", "B", "BLOCKQUOTE", "BR", "CODE", "DIV", "E
|
|
|
43351
43351
|
},
|
|
43352
43352
|
getTimelineStepContent(stepNumber) {
|
|
43353
43353
|
const timelineStepContents = [{
|
|
43354
|
-
title:
|
|
43355
|
-
description: "
|
|
43354
|
+
title: `Step ${stepNumber}`,
|
|
43355
|
+
description: "Deskripsi timeline."
|
|
43356
43356
|
}, {
|
|
43357
|
-
title:
|
|
43358
|
-
description: "
|
|
43357
|
+
title: `Step ${stepNumber}`,
|
|
43358
|
+
description: "Deskripsi timeline."
|
|
43359
43359
|
}, {
|
|
43360
|
-
title:
|
|
43361
|
-
description: "
|
|
43360
|
+
title: `Step ${stepNumber}`,
|
|
43361
|
+
description: "Deskripsi timeline."
|
|
43362
43362
|
}, {
|
|
43363
|
-
title:
|
|
43364
|
-
description: "
|
|
43363
|
+
title: `Step ${stepNumber}`,
|
|
43364
|
+
description: "Deskripsi timeline."
|
|
43365
43365
|
}];
|
|
43366
43366
|
return timelineStepContents[stepNumber - 1] || {
|
|
43367
43367
|
title: `Step ${stepNumber}`,
|
|
@@ -43452,9 +43452,117 @@ const ALLOWED_TAGS = ["A", "ARTICLE", "B", "BLOCKQUOTE", "BR", "CODE", "DIV", "E
|
|
|
43452
43452
|
});
|
|
43453
43453
|
},
|
|
43454
43454
|
normalizeStructuredTemplateMarkers() {
|
|
43455
|
+
this.removeEmptyTimelineTemplates();
|
|
43456
|
+
this.removeEmptyNumberedCardTemplates();
|
|
43457
|
+
this.normalizeArticleCardIcons();
|
|
43455
43458
|
this.normalizeTimelineMarkers();
|
|
43456
43459
|
this.normalizeNumberedCardMarkers();
|
|
43457
43460
|
},
|
|
43461
|
+
removeEmptyTimelineTemplates() {
|
|
43462
|
+
const editor = this.$refs.editorRef;
|
|
43463
|
+
if (!editor) {
|
|
43464
|
+
return;
|
|
43465
|
+
}
|
|
43466
|
+
editor.querySelectorAll(".wysiwyg-timeline-item").forEach(item => {
|
|
43467
|
+
if (this.isStructuredElementEmpty(item, [".wysiwyg-timeline-marker"])) {
|
|
43468
|
+
item.remove();
|
|
43469
|
+
}
|
|
43470
|
+
});
|
|
43471
|
+
editor.querySelectorAll(".wysiwyg-timeline").forEach(timeline => {
|
|
43472
|
+
if (!this.getTimelineItems(timeline).length) {
|
|
43473
|
+
timeline.remove();
|
|
43474
|
+
}
|
|
43475
|
+
});
|
|
43476
|
+
},
|
|
43477
|
+
removeEmptyNumberedCardTemplates() {
|
|
43478
|
+
const editor = this.$refs.editorRef;
|
|
43479
|
+
if (!editor) {
|
|
43480
|
+
return;
|
|
43481
|
+
}
|
|
43482
|
+
editor.querySelectorAll(".wysiwyg-numbered-card").forEach(card => {
|
|
43483
|
+
if (this.isStructuredElementEmpty(card, [".wysiwyg-numbered-card-marker"])) {
|
|
43484
|
+
card.remove();
|
|
43485
|
+
}
|
|
43486
|
+
});
|
|
43487
|
+
editor.querySelectorAll(".wysiwyg-numbered-card-list").forEach(numberedCardList => {
|
|
43488
|
+
if (!this.getNumberedCards(numberedCardList).length) {
|
|
43489
|
+
numberedCardList.remove();
|
|
43490
|
+
}
|
|
43491
|
+
});
|
|
43492
|
+
},
|
|
43493
|
+
isStructuredElementEmpty(element, ignoredSelectors = []) {
|
|
43494
|
+
if (!element) {
|
|
43495
|
+
return true;
|
|
43496
|
+
}
|
|
43497
|
+
const clone = element.cloneNode(true);
|
|
43498
|
+
ignoredSelectors.forEach(selector => {
|
|
43499
|
+
clone.querySelectorAll(selector).forEach(node => {
|
|
43500
|
+
node.remove();
|
|
43501
|
+
});
|
|
43502
|
+
});
|
|
43503
|
+
const textContent = (clone.textContent || "").replace(/\u00A0/g, "").replace(/\u200B/g, "").trim();
|
|
43504
|
+
if (textContent) {
|
|
43505
|
+
return false;
|
|
43506
|
+
}
|
|
43507
|
+
return !clone.querySelector("img, hr");
|
|
43508
|
+
},
|
|
43509
|
+
normalizeArticleCardIcons() {
|
|
43510
|
+
const editor = this.$refs.editorRef;
|
|
43511
|
+
if (!editor) {
|
|
43512
|
+
return;
|
|
43513
|
+
}
|
|
43514
|
+
editor.querySelectorAll(".wysiwyg-article-card").forEach(card => {
|
|
43515
|
+
const directChildren = Array.from(card.children);
|
|
43516
|
+
let icon = directChildren.find(child => {
|
|
43517
|
+
var _child$classList4;
|
|
43518
|
+
return (_child$classList4 = child.classList) === null || _child$classList4 === void 0 ? void 0 : _child$classList4.contains("wysiwyg-article-icon");
|
|
43519
|
+
});
|
|
43520
|
+
if (icon) {
|
|
43521
|
+
if (!this.hasVisibleIconContent(icon)) {
|
|
43522
|
+
icon.remove();
|
|
43523
|
+
return;
|
|
43524
|
+
}
|
|
43525
|
+
if (icon.tagName !== "SPAN") {
|
|
43526
|
+
const spanIcon = document.createElement("span");
|
|
43527
|
+
spanIcon.className = "wysiwyg-article-icon";
|
|
43528
|
+
spanIcon.innerHTML = icon.innerHTML || icon.textContent || "";
|
|
43529
|
+
icon.replaceWith(spanIcon);
|
|
43530
|
+
}
|
|
43531
|
+
return;
|
|
43532
|
+
}
|
|
43533
|
+
const iconCandidate = Array.from(card.childNodes).find(node => {
|
|
43534
|
+
if (node.nodeType === Node.TEXT_NODE) {
|
|
43535
|
+
return (node.textContent || "").trim();
|
|
43536
|
+
}
|
|
43537
|
+
if (node.nodeType !== Node.ELEMENT_NODE) {
|
|
43538
|
+
return false;
|
|
43539
|
+
}
|
|
43540
|
+
return !["H1", "H2", "H3", "P"].includes(node.tagName);
|
|
43541
|
+
});
|
|
43542
|
+
if (!iconCandidate) {
|
|
43543
|
+
return;
|
|
43544
|
+
}
|
|
43545
|
+
icon = document.createElement("span");
|
|
43546
|
+
icon.className = "wysiwyg-article-icon";
|
|
43547
|
+
if (iconCandidate.nodeType === Node.TEXT_NODE) {
|
|
43548
|
+
icon.textContent = (iconCandidate.textContent || "").trim();
|
|
43549
|
+
} else {
|
|
43550
|
+
icon.innerHTML = iconCandidate.innerHTML || iconCandidate.textContent || "";
|
|
43551
|
+
}
|
|
43552
|
+
iconCandidate.remove();
|
|
43553
|
+
const firstContent = Array.from(card.children).find(child => ["H1", "H2", "H3", "P"].includes(child.tagName));
|
|
43554
|
+
card.insertBefore(icon, firstContent || card.firstChild);
|
|
43555
|
+
});
|
|
43556
|
+
},
|
|
43557
|
+
hasVisibleIconContent(icon) {
|
|
43558
|
+
if (!icon) {
|
|
43559
|
+
return false;
|
|
43560
|
+
}
|
|
43561
|
+
if (icon.querySelector("img, svg")) {
|
|
43562
|
+
return true;
|
|
43563
|
+
}
|
|
43564
|
+
return Boolean((icon.textContent || "").replace(/\u00A0/g, "").trim());
|
|
43565
|
+
},
|
|
43458
43566
|
placeCaretAtEnd(element) {
|
|
43459
43567
|
if (!element) {
|
|
43460
43568
|
return;
|
|
@@ -43733,8 +43841,8 @@ const ALLOWED_TAGS = ["A", "ARTICLE", "B", "BLOCKQUOTE", "BR", "CODE", "DIV", "E
|
|
|
43733
43841
|
});
|
|
43734
43842
|
// CONCATENATED MODULE: ./src/components/Form/FormWysiwyg.vue?vue&type=script&lang=js
|
|
43735
43843
|
|
|
43736
|
-
// EXTERNAL MODULE: ./src/components/Form/FormWysiwyg.vue?vue&type=style&index=0&id=
|
|
43737
|
-
var
|
|
43844
|
+
// EXTERNAL MODULE: ./src/components/Form/FormWysiwyg.vue?vue&type=style&index=0&id=08bd68a4&lang=scss
|
|
43845
|
+
var FormWysiwygvue_type_style_index_0_id_08bd68a4_lang_scss = __webpack_require__("b371");
|
|
43738
43846
|
|
|
43739
43847
|
// CONCATENATED MODULE: ./src/components/Form/FormWysiwyg.vue
|
|
43740
43848
|
|
|
@@ -43744,7 +43852,7 @@ var FormWysiwygvue_type_style_index_0_id_62033250_lang_scss = __webpack_require_
|
|
|
43744
43852
|
|
|
43745
43853
|
|
|
43746
43854
|
|
|
43747
|
-
const FormWysiwyg_exports_ = /*#__PURE__*/exportHelper_default()(FormWysiwygvue_type_script_lang_js, [['render',
|
|
43855
|
+
const FormWysiwyg_exports_ = /*#__PURE__*/exportHelper_default()(FormWysiwygvue_type_script_lang_js, [['render',FormWysiwygvue_type_template_id_08bd68a4_render]])
|
|
43748
43856
|
|
|
43749
43857
|
/* harmony default export */ var FormWysiwyg = (FormWysiwyg_exports_);
|
|
43750
43858
|
// 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
|