@weni/unnnic-system 1.10.13 → 1.10.14
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/unnnic.common.js +53 -34
- package/dist/unnnic.common.js.map +1 -1
- package/dist/unnnic.css +1 -1
- package/dist/unnnic.umd.js +53 -34
- package/dist/unnnic.umd.js.map +1 -1
- package/dist/unnnic.umd.min.js +13 -13
- package/dist/unnnic.umd.min.js.map +1 -1
- package/package.json +1 -1
- package/src/components/TextEditor/TextEditor.vue +34 -6
package/dist/unnnic.common.js
CHANGED
|
@@ -9195,6 +9195,17 @@ module.exports = "<svg viewBox=\"0 0 40 40\" fill=\"none\" xmlns=\"http://www.w3
|
|
|
9195
9195
|
})));
|
|
9196
9196
|
|
|
9197
9197
|
|
|
9198
|
+
/***/ }),
|
|
9199
|
+
|
|
9200
|
+
/***/ "5058":
|
|
9201
|
+
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
9202
|
+
|
|
9203
|
+
"use strict";
|
|
9204
|
+
/* harmony import */ var _node_modules_mini_css_extract_plugin_dist_loader_js_ref_8_oneOf_1_0_node_modules_css_loader_dist_cjs_js_ref_8_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_src_index_js_ref_8_oneOf_1_2_node_modules_sass_loader_dist_cjs_js_ref_8_oneOf_1_3_node_modules_cache_loader_dist_cjs_js_ref_0_0_node_modules_vue_loader_lib_index_js_vue_loader_options_TextEditor_vue_vue_type_style_index_0_id_5340a05a_lang_scss_scoped_true___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("e1cb");
|
|
9205
|
+
/* harmony import */ var _node_modules_mini_css_extract_plugin_dist_loader_js_ref_8_oneOf_1_0_node_modules_css_loader_dist_cjs_js_ref_8_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_src_index_js_ref_8_oneOf_1_2_node_modules_sass_loader_dist_cjs_js_ref_8_oneOf_1_3_node_modules_cache_loader_dist_cjs_js_ref_0_0_node_modules_vue_loader_lib_index_js_vue_loader_options_TextEditor_vue_vue_type_style_index_0_id_5340a05a_lang_scss_scoped_true___WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_node_modules_mini_css_extract_plugin_dist_loader_js_ref_8_oneOf_1_0_node_modules_css_loader_dist_cjs_js_ref_8_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_src_index_js_ref_8_oneOf_1_2_node_modules_sass_loader_dist_cjs_js_ref_8_oneOf_1_3_node_modules_cache_loader_dist_cjs_js_ref_0_0_node_modules_vue_loader_lib_index_js_vue_loader_options_TextEditor_vue_vue_type_style_index_0_id_5340a05a_lang_scss_scoped_true___WEBPACK_IMPORTED_MODULE_0__);
|
|
9206
|
+
/* unused harmony reexport * */
|
|
9207
|
+
|
|
9208
|
+
|
|
9198
9209
|
/***/ }),
|
|
9199
9210
|
|
|
9200
9211
|
/***/ "50c4":
|
|
@@ -9738,17 +9749,6 @@ fixRegExpWellKnownSymbolLogic('replace', 2, function (REPLACE, nativeReplace, ma
|
|
|
9738
9749
|
});
|
|
9739
9750
|
|
|
9740
9751
|
|
|
9741
|
-
/***/ }),
|
|
9742
|
-
|
|
9743
|
-
/***/ "53da":
|
|
9744
|
-
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
9745
|
-
|
|
9746
|
-
"use strict";
|
|
9747
|
-
/* harmony import */ var _node_modules_mini_css_extract_plugin_dist_loader_js_ref_8_oneOf_1_0_node_modules_css_loader_dist_cjs_js_ref_8_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_src_index_js_ref_8_oneOf_1_2_node_modules_sass_loader_dist_cjs_js_ref_8_oneOf_1_3_node_modules_cache_loader_dist_cjs_js_ref_0_0_node_modules_vue_loader_lib_index_js_vue_loader_options_TextEditor_vue_vue_type_style_index_0_id_243fe679_lang_scss_scoped_true___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("6a62");
|
|
9748
|
-
/* harmony import */ var _node_modules_mini_css_extract_plugin_dist_loader_js_ref_8_oneOf_1_0_node_modules_css_loader_dist_cjs_js_ref_8_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_src_index_js_ref_8_oneOf_1_2_node_modules_sass_loader_dist_cjs_js_ref_8_oneOf_1_3_node_modules_cache_loader_dist_cjs_js_ref_0_0_node_modules_vue_loader_lib_index_js_vue_loader_options_TextEditor_vue_vue_type_style_index_0_id_243fe679_lang_scss_scoped_true___WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_node_modules_mini_css_extract_plugin_dist_loader_js_ref_8_oneOf_1_0_node_modules_css_loader_dist_cjs_js_ref_8_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_src_index_js_ref_8_oneOf_1_2_node_modules_sass_loader_dist_cjs_js_ref_8_oneOf_1_3_node_modules_cache_loader_dist_cjs_js_ref_0_0_node_modules_vue_loader_lib_index_js_vue_loader_options_TextEditor_vue_vue_type_style_index_0_id_243fe679_lang_scss_scoped_true___WEBPACK_IMPORTED_MODULE_0__);
|
|
9749
|
-
/* unused harmony reexport * */
|
|
9750
|
-
|
|
9751
|
-
|
|
9752
9752
|
/***/ }),
|
|
9753
9753
|
|
|
9754
9754
|
/***/ "5468":
|
|
@@ -12422,13 +12422,6 @@ module.exports = {
|
|
|
12422
12422
|
};
|
|
12423
12423
|
|
|
12424
12424
|
|
|
12425
|
-
/***/ }),
|
|
12426
|
-
|
|
12427
|
-
/***/ "6a62":
|
|
12428
|
-
/***/ (function(module, exports, __webpack_require__) {
|
|
12429
|
-
|
|
12430
|
-
// extracted by mini-css-extract-plugin
|
|
12431
|
-
|
|
12432
12425
|
/***/ }),
|
|
12433
12426
|
|
|
12434
12427
|
/***/ "6cab":
|
|
@@ -30451,6 +30444,13 @@ module.exports = !fails(function () {
|
|
|
30451
30444
|
|
|
30452
30445
|
/***/ }),
|
|
30453
30446
|
|
|
30447
|
+
/***/ "e1cb":
|
|
30448
|
+
/***/ (function(module, exports, __webpack_require__) {
|
|
30449
|
+
|
|
30450
|
+
// extracted by mini-css-extract-plugin
|
|
30451
|
+
|
|
30452
|
+
/***/ }),
|
|
30453
|
+
|
|
30454
30454
|
/***/ "e1d3":
|
|
30455
30455
|
/***/ (function(module, exports, __webpack_require__) {
|
|
30456
30456
|
|
|
@@ -43297,12 +43297,12 @@ var ChartRainbow_component = normalizeComponent(
|
|
|
43297
43297
|
)
|
|
43298
43298
|
|
|
43299
43299
|
/* harmony default export */ var ChartRainbow = (ChartRainbow_component.exports);
|
|
43300
|
-
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"1cea8ebe-vue-loader-template"}!./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options!./src/components/TextEditor/TextEditor.vue?vue&type=template&id=
|
|
43301
|
-
var
|
|
43302
|
-
var
|
|
43300
|
+
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"1cea8ebe-vue-loader-template"}!./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options!./src/components/TextEditor/TextEditor.vue?vue&type=template&id=5340a05a&scoped=true&
|
|
43301
|
+
var TextEditorvue_type_template_id_5340a05a_scoped_true_render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:"unnnic-text-editor"},[_c('div',{staticClass:"text-editor",on:{"click":function($event){return _vm.$refs.oDoc.focus()}}},[_c('textarea',{ref:"oDoc",staticClass:"inside",domProps:{"value":_vm.value},on:{"input":function($event){return _vm.$emit('input', $event.srcElement.value)},"keydown":function($event){return _vm.$emit('keydown', $event)},"focus":function($event){_vm.isFocused = true},"blur":function($event){_vm.isFocused = false}}}),(_vm.$slots['footer-input'])?_c('div',{staticClass:"footer-input",on:{"click":function($event){$event.stopPropagation();}}},[_vm._t("footer-input")],2):_vm._e()]),_c('div',{staticClass:"actions"},[_c('unnnic-tool-tip',{attrs:{"side":"left","text":_vm.text('action'),"enabled":""}},[_c('unnnic-button-icon',{attrs:{"type":"secondary","size":"small","icon":"flash-1-3"},on:{"click":function($event){return _vm.$emit('action')}}})],1),_c('unnnic-button-icon',{attrs:{"type":"primary","size":"small","icon":"send-email-3-1"},on:{"click":function($event){return _vm.$emit('send')}}})],1),_c('div',{staticClass:"format"},[_c('unnnic-tool-tip',{attrs:{"side":"top","text":_vm.text('Undo'),"enabled":""}},[_c('unnnic-icon',{attrs:{"icon":"arrow-undo","size":"ant","clickable":"","scheme":_vm.iconScheme},on:{"click":function($event){return _vm.formatDoc('undo')}}})],1),_c('unnnic-tool-tip',{attrs:{"side":"top","text":_vm.text('Redo'),"enabled":""}},[_c('unnnic-icon',{attrs:{"icon":"arrow-redo","size":"ant","clickable":"","scheme":_vm.iconScheme},on:{"click":function($event){return _vm.formatDoc('redo')}}})],1),_c('unnnic-tool-tip',{attrs:{"side":"top","text":_vm.text('RecordAudio'),"enabled":""}},[_c('unnnic-icon',{attrs:{"icon":"microphone","size":"ant","clickable":"","scheme":_vm.iconScheme},on:{"mousedown":function($event){return _vm.$emit('record-audio-down')},"mouseup":function($event){return _vm.$emit('record-audio-up')},"click":function($event){return _vm.$emit('record-audio')}}})],1),_c('unnnic-tool-tip',{attrs:{"side":"top","text":_vm.text('Attach'),"enabled":!_vm.attachmentOptionsOpen}},[_c('unnnic-dropdown',{staticClass:"attachment-options-dropdown",attrs:{"open":_vm.attachmentOptionsOpen,"position":"none"},on:{"update:open":function($event){_vm.attachmentOptionsOpen=$event}}},[_c('unnnic-icon',{attrs:{"slot":"trigger","icon":"attachment","size":"ant","clickable":"","scheme":_vm.iconScheme},slot:"trigger"}),_c('div',{staticClass:"attachment-options-container"},[_vm._t("attachment-options")],2)],1)],1)],1)])}
|
|
43302
|
+
var TextEditorvue_type_template_id_5340a05a_scoped_true_staticRenderFns = []
|
|
43303
43303
|
|
|
43304
43304
|
|
|
43305
|
-
// CONCATENATED MODULE: ./src/components/TextEditor/TextEditor.vue?vue&type=template&id=
|
|
43305
|
+
// CONCATENATED MODULE: ./src/components/TextEditor/TextEditor.vue?vue&type=template&id=5340a05a&scoped=true&
|
|
43306
43306
|
|
|
43307
43307
|
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.string.match-all.js
|
|
43308
43308
|
var es_string_match_all = __webpack_require__("a1f0");
|
|
@@ -43881,6 +43881,19 @@ function _createForOfIteratorHelper(o, allowArrayLike) {
|
|
|
43881
43881
|
//
|
|
43882
43882
|
//
|
|
43883
43883
|
//
|
|
43884
|
+
//
|
|
43885
|
+
//
|
|
43886
|
+
//
|
|
43887
|
+
//
|
|
43888
|
+
//
|
|
43889
|
+
//
|
|
43890
|
+
//
|
|
43891
|
+
//
|
|
43892
|
+
//
|
|
43893
|
+
//
|
|
43894
|
+
//
|
|
43895
|
+
//
|
|
43896
|
+
//
|
|
43884
43897
|
|
|
43885
43898
|
|
|
43886
43899
|
|
|
@@ -43957,9 +43970,15 @@ function _createForOfIteratorHelper(o, allowArrayLike) {
|
|
|
43957
43970
|
value: {
|
|
43958
43971
|
immediate: true,
|
|
43959
43972
|
handler: function handler() {
|
|
43960
|
-
|
|
43961
|
-
|
|
43962
|
-
|
|
43973
|
+
var _this = this;
|
|
43974
|
+
|
|
43975
|
+
// if (this.value !== this.lastValueFromInside) {
|
|
43976
|
+
// this.$refs.oDoc.innerHTML = this.value;
|
|
43977
|
+
// }
|
|
43978
|
+
this.$nextTick(function () {
|
|
43979
|
+
_this.$refs.oDoc.style.minHeight = 0;
|
|
43980
|
+
_this.$refs.oDoc.style.minHeight = "".concat(_this.$refs.oDoc.scrollHeight, "px");
|
|
43981
|
+
});
|
|
43963
43982
|
}
|
|
43964
43983
|
}
|
|
43965
43984
|
},
|
|
@@ -43973,7 +43992,7 @@ function _createForOfIteratorHelper(o, allowArrayLike) {
|
|
|
43973
43992
|
return this.$refs.oDoc.focus();
|
|
43974
43993
|
},
|
|
43975
43994
|
emitInput: function emitInput() {
|
|
43976
|
-
var
|
|
43995
|
+
var _this2 = this;
|
|
43977
43996
|
|
|
43978
43997
|
this.lastValueFromInside = this.$refs.oDoc.innerHTML;
|
|
43979
43998
|
this.lastValueFromInside = this.lastValueFromInside.replace(/<(\/)?([^> ]+)( [^>]+)?>/gi, function ($1) {
|
|
@@ -43981,7 +44000,7 @@ function _createForOfIteratorHelper(o, allowArrayLike) {
|
|
|
43981
44000
|
var $3 = arguments.length > 2 ? arguments[2] : undefined;
|
|
43982
44001
|
var $4 = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : '';
|
|
43983
44002
|
|
|
43984
|
-
if (
|
|
44003
|
+
if (_this2.tags.includes($3)) {
|
|
43985
44004
|
var complements = []; // eslint-disable-next-line no-restricted-syntax
|
|
43986
44005
|
|
|
43987
44006
|
var _iterator = _createForOfIteratorHelper($4.matchAll( /*#__PURE__*/_wrapRegExp(/(((?:(?![ =])[\s\S])+)="((?:(?!")[\s\S])*)"|((?:(?![ =])[\s\S])+)='((?:(?!")[\s\S])*)')/g, {
|
|
@@ -43998,7 +44017,7 @@ function _createForOfIteratorHelper(o, allowArrayLike) {
|
|
|
43998
44017
|
var name = i.groups.name1 || i.groups.name2;
|
|
43999
44018
|
var value = i.groups.value1 || i.groups.value2;
|
|
44000
44019
|
|
|
44001
|
-
if (
|
|
44020
|
+
if (_this2.attributes.includes('style') && name === 'style') {
|
|
44002
44021
|
var styles = []; // eslint-disable-next-line no-restricted-syntax
|
|
44003
44022
|
|
|
44004
44023
|
var _iterator2 = _createForOfIteratorHelper(value.matchAll( /*#__PURE__*/_wrapRegExp(/((?:(?!:)[\s\S])+):((?:(?!;)[\s\S])+);?/g, {
|
|
@@ -44011,7 +44030,7 @@ function _createForOfIteratorHelper(o, allowArrayLike) {
|
|
|
44011
44030
|
for (_iterator2.s(); !(_step2 = _iterator2.n()).done;) {
|
|
44012
44031
|
var j = _step2.value;
|
|
44013
44032
|
|
|
44014
|
-
if (
|
|
44033
|
+
if (_this2.styleProperties.includes(j.groups.propertyName.toLowerCase().trim())) {
|
|
44015
44034
|
styles.push("".concat(j.groups.propertyName.toLowerCase().trim(), ": ").concat(j.groups.propertyValue.trim()));
|
|
44016
44035
|
}
|
|
44017
44036
|
}
|
|
@@ -44055,8 +44074,8 @@ function _createForOfIteratorHelper(o, allowArrayLike) {
|
|
|
44055
44074
|
});
|
|
44056
44075
|
// CONCATENATED MODULE: ./src/components/TextEditor/TextEditor.vue?vue&type=script&lang=js&
|
|
44057
44076
|
/* harmony default export */ var TextEditor_TextEditorvue_type_script_lang_js_ = (TextEditorvue_type_script_lang_js_);
|
|
44058
|
-
// EXTERNAL MODULE: ./src/components/TextEditor/TextEditor.vue?vue&type=style&index=0&id=
|
|
44059
|
-
var
|
|
44077
|
+
// EXTERNAL MODULE: ./src/components/TextEditor/TextEditor.vue?vue&type=style&index=0&id=5340a05a&lang=scss&scoped=true&
|
|
44078
|
+
var TextEditorvue_type_style_index_0_id_5340a05a_lang_scss_scoped_true_ = __webpack_require__("5058");
|
|
44060
44079
|
|
|
44061
44080
|
// CONCATENATED MODULE: ./src/components/TextEditor/TextEditor.vue
|
|
44062
44081
|
|
|
@@ -44069,11 +44088,11 @@ var TextEditorvue_type_style_index_0_id_243fe679_lang_scss_scoped_true_ = __webp
|
|
|
44069
44088
|
|
|
44070
44089
|
var TextEditor_component = normalizeComponent(
|
|
44071
44090
|
TextEditor_TextEditorvue_type_script_lang_js_,
|
|
44072
|
-
|
|
44073
|
-
|
|
44091
|
+
TextEditorvue_type_template_id_5340a05a_scoped_true_render,
|
|
44092
|
+
TextEditorvue_type_template_id_5340a05a_scoped_true_staticRenderFns,
|
|
44074
44093
|
false,
|
|
44075
44094
|
null,
|
|
44076
|
-
"
|
|
44095
|
+
"5340a05a",
|
|
44077
44096
|
null
|
|
44078
44097
|
|
|
44079
44098
|
)
|