lib-pajakio-v2 1.0.28 → 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 +115 -65
- package/dist/lib-pajakio-v2.common.js.map +1 -1
- package/dist/lib-pajakio-v2.umd.js +115 -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 +83 -33
|
@@ -87,13 +87,6 @@ module.exports =
|
|
|
87
87
|
/************************************************************************/
|
|
88
88
|
/******/ ({
|
|
89
89
|
|
|
90
|
-
/***/ "0079":
|
|
91
|
-
/***/ (function(module, exports, __webpack_require__) {
|
|
92
|
-
|
|
93
|
-
// extracted by mini-css-extract-plugin
|
|
94
|
-
|
|
95
|
-
/***/ }),
|
|
96
|
-
|
|
97
90
|
/***/ "00ee":
|
|
98
91
|
/***/ (function(module, exports, __webpack_require__) {
|
|
99
92
|
|
|
@@ -927,17 +920,6 @@ module.exports = function (argument) {
|
|
|
927
920
|
};
|
|
928
921
|
|
|
929
922
|
|
|
930
|
-
/***/ }),
|
|
931
|
-
|
|
932
|
-
/***/ "522e":
|
|
933
|
-
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
934
|
-
|
|
935
|
-
"use strict";
|
|
936
|
-
/* 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_2a54b263_lang_scss__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("0079");
|
|
937
|
-
/* 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_2a54b263_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_2a54b263_lang_scss__WEBPACK_IMPORTED_MODULE_0__);
|
|
938
|
-
/* unused harmony reexport * */
|
|
939
|
-
|
|
940
|
-
|
|
941
923
|
/***/ }),
|
|
942
924
|
|
|
943
925
|
/***/ "5692":
|
|
@@ -1362,6 +1344,13 @@ module.exports = [
|
|
|
1362
1344
|
];
|
|
1363
1345
|
|
|
1364
1346
|
|
|
1347
|
+
/***/ }),
|
|
1348
|
+
|
|
1349
|
+
/***/ "7a3b":
|
|
1350
|
+
/***/ (function(module, exports, __webpack_require__) {
|
|
1351
|
+
|
|
1352
|
+
// extracted by mini-css-extract-plugin
|
|
1353
|
+
|
|
1365
1354
|
/***/ }),
|
|
1366
1355
|
|
|
1367
1356
|
/***/ "7b0b":
|
|
@@ -1961,6 +1950,17 @@ module.exports = DESCRIPTORS && fails(function () {
|
|
|
1961
1950
|
|
|
1962
1951
|
// extracted by mini-css-extract-plugin
|
|
1963
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
|
+
|
|
1964
1964
|
/***/ }),
|
|
1965
1965
|
|
|
1966
1966
|
/***/ "b42e":
|
|
@@ -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_2a54b263_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_2a54b263_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_2a54b263_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,10 +43452,60 @@ const ALLOWED_TAGS = ["A", "ARTICLE", "B", "BLOCKQUOTE", "BR", "CODE", "DIV", "E
|
|
|
43452
43452
|
});
|
|
43453
43453
|
},
|
|
43454
43454
|
normalizeStructuredTemplateMarkers() {
|
|
43455
|
+
this.removeEmptyTimelineTemplates();
|
|
43456
|
+
this.removeEmptyNumberedCardTemplates();
|
|
43455
43457
|
this.normalizeArticleCardIcons();
|
|
43456
43458
|
this.normalizeTimelineMarkers();
|
|
43457
43459
|
this.normalizeNumberedCardMarkers();
|
|
43458
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
|
+
},
|
|
43459
43509
|
normalizeArticleCardIcons() {
|
|
43460
43510
|
const editor = this.$refs.editorRef;
|
|
43461
43511
|
if (!editor) {
|
|
@@ -43791,8 +43841,8 @@ const ALLOWED_TAGS = ["A", "ARTICLE", "B", "BLOCKQUOTE", "BR", "CODE", "DIV", "E
|
|
|
43791
43841
|
});
|
|
43792
43842
|
// CONCATENATED MODULE: ./src/components/Form/FormWysiwyg.vue?vue&type=script&lang=js
|
|
43793
43843
|
|
|
43794
|
-
// EXTERNAL MODULE: ./src/components/Form/FormWysiwyg.vue?vue&type=style&index=0&id=
|
|
43795
|
-
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");
|
|
43796
43846
|
|
|
43797
43847
|
// CONCATENATED MODULE: ./src/components/Form/FormWysiwyg.vue
|
|
43798
43848
|
|
|
@@ -43802,7 +43852,7 @@ var FormWysiwygvue_type_style_index_0_id_2a54b263_lang_scss = __webpack_require_
|
|
|
43802
43852
|
|
|
43803
43853
|
|
|
43804
43854
|
|
|
43805
|
-
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]])
|
|
43806
43856
|
|
|
43807
43857
|
/* harmony default export */ var FormWysiwyg = (FormWysiwyg_exports_);
|
|
43808
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
|