@kg-ui/kg-ui 0.0.13 → 0.0.15-fix

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/lib/main.umd.js CHANGED
@@ -11646,13 +11646,6 @@ module.exports = function (key, value) {
11646
11646
 
11647
11647
  /***/ }),
11648
11648
 
11649
- /***/ "66e1":
11650
- /***/ (function(module, exports, __webpack_require__) {
11651
-
11652
- // extracted by mini-css-extract-plugin
11653
-
11654
- /***/ }),
11655
-
11656
11649
  /***/ "6825":
11657
11650
  /***/ (function(module, exports, __webpack_require__) {
11658
11651
 
@@ -16166,6 +16159,13 @@ module.exports = __WEBPACK_EXTERNAL_MODULE__8bbf__;
16166
16159
 
16167
16160
  /***/ }),
16168
16161
 
16162
+ /***/ "8d42":
16163
+ /***/ (function(module, exports, __webpack_require__) {
16164
+
16165
+ // extracted by mini-css-extract-plugin
16166
+
16167
+ /***/ }),
16168
+
16169
16169
  /***/ "8dcb":
16170
16170
  /***/ (function(module, exports) {
16171
16171
 
@@ -17161,13 +17161,13 @@ var staticRenderFns = []
17161
17161
 
17162
17162
  // CONCATENATED MODULE: ./packages/know_ui_v2/components/KgCopilot/main.vue?vue&type=template&id=63f8ab82&scoped=true
17163
17163
 
17164
- // CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"0d81f3b6-vue-loader-template"}!./node_modules/vue-loader/lib/loaders/templateLoader.js??ref--5!./node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options!./packages/know_ui_v2/components/KgCopilot/dialogue/index.vue?vue&type=template&id=12e00e94&scoped=true
17165
- var dialoguevue_type_template_id_12e00e94_scoped_true_render = function render(){var _vm=this,_c=_vm._self._c;return _c('div',{ref:"messageBox",staticClass:"message-box"},[_vm._l((_vm.msgList),function(item,index){return _c('div',{key:item.uuid,staticClass:"message-group"},[_c('div',{staticClass:"msg-head"},[(item.isSend)?_c('UserHead'):_c('AnswerHead',{scopedSlots:_vm._u([{key:"avatar",fn:function(){return [_vm._t("avatar")]},proxy:true}],null,true)})],1),_c('div',{class:{ 'msg-content': true, 'response-content': !item.isSend }},[(!item.isSend && item.plusName)?_c('div',{staticClass:"msg-plus mb-1"},[_c('div',[_vm._v(" 使用: "),_c('span',[_vm._v(_vm._s(item.plusName.replace(/,/g, ' ')))])])]):_vm._e(),_c('MessageParse',{attrs:{"msgs":item.msgs,"isPrinting":item.needPrinting,"scrollToBottom":_vm.scrollToBottom},on:{"printOk":_vm.printOk}}),(!item.isSend && !item.needPrinting && item.showOpt)?_c('div',{staticClass:"icon-operates"},[_c('div',{staticClass:"icon-item",attrs:{"title":"点赞"}},[_c('Like')],1),_c('div',{staticClass:"icon-item",attrs:{"title":"不喜欢"}},[_c('Notlike')],1),_c('div',{staticClass:"icon-item",attrs:{"title":"复制"}},[_c('Copy')],1),_c('div',{staticClass:"icon-item",attrs:{"title":"导出"}},[_c('Download')],1),_c('div',{staticClass:"icon-item",attrs:{"title":"播放"}})]):_vm._e()],1)])}),_c('div',{directives:[{name:"show",rawName:"v-show",value:(_vm.stopDialogue),expression:"stopDialogue"}],staticClass:"stop-dialogue"},[_c('div',{staticClass:"gray-line"}),_c('div',{staticClass:"title"},[_vm._v("很抱歉,此对话已达到其限制。让我们开始新的聊天。")]),_c('div',{staticClass:"gray-line"})])],2)
17164
+ // CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"0d81f3b6-vue-loader-template"}!./node_modules/vue-loader/lib/loaders/templateLoader.js??ref--5!./node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options!./packages/know_ui_v2/components/KgCopilot/dialogue/index.vue?vue&type=template&id=29b7bb01&scoped=true
17165
+ var dialoguevue_type_template_id_29b7bb01_scoped_true_render = function render(){var _vm=this,_c=_vm._self._c;return _c('div',{ref:"messageBox",staticClass:"message-box"},[_vm._l((_vm.msgList),function(item,index){return _c('div',{key:item.uuid,staticClass:"message-group"},[_c('div',{staticClass:"msg-head"},[(item.isSend)?_c('UserHead'):_c('AnswerHead',{scopedSlots:_vm._u([{key:"avatar",fn:function(){return [_vm._t("avatar")]},proxy:true}],null,true)})],1),_c('div',{class:{ 'msg-content': true, 'response-content': !item.isSend }},[(!item.isSend && item.plusName)?_c('div',{staticClass:"msg-plus mb-1"},[_c('div',[_vm._v(" 使用: "),_c('span',[_vm._v(_vm._s(item.plusName.replace(/,/g, ' ')))])])]):_vm._e(),_c('MessageParse',{attrs:{"msgs":item.msgs,"is-printing":item.needPrinting,"scroll-to-bottom":_vm.scrollToBottom},on:{"printOk":_vm.printOk}}),(!item.isSend && !item.needPrinting && item.showOpt)?_c('div',{staticClass:"icon-operates"},[_c('div',{staticClass:"icon-item",attrs:{"title":"点赞"}},[_c('Like')],1),_c('div',{staticClass:"icon-item",attrs:{"title":"不喜欢"}},[_c('Notlike')],1),_c('div',{staticClass:"icon-item",attrs:{"title":"复制"}},[_c('Copy')],1),_c('div',{staticClass:"icon-item",attrs:{"title":"导出"}},[_c('Download')],1),_c('div',{staticClass:"icon-item",attrs:{"title":"播放"}})]):_vm._e()],1)])}),_c('div',{directives:[{name:"show",rawName:"v-show",value:(_vm.stopDialogue),expression:"stopDialogue"}],staticClass:"stop-dialogue"},[_c('div',{staticClass:"gray-line"}),_c('div',{staticClass:"title"},[_vm._v(" 很抱歉,此对话已达到其限制。让我们开始新的聊天。 ")]),_c('div',{staticClass:"gray-line"})])],2)
17166
17166
  }
17167
- var dialoguevue_type_template_id_12e00e94_scoped_true_staticRenderFns = []
17167
+ var dialoguevue_type_template_id_29b7bb01_scoped_true_staticRenderFns = []
17168
17168
 
17169
17169
 
17170
- // CONCATENATED MODULE: ./packages/know_ui_v2/components/KgCopilot/dialogue/index.vue?vue&type=template&id=12e00e94&scoped=true
17170
+ // CONCATENATED MODULE: ./packages/know_ui_v2/components/KgCopilot/dialogue/index.vue?vue&type=template&id=29b7bb01&scoped=true
17171
17171
 
17172
17172
  // CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"0d81f3b6-vue-loader-template"}!./node_modules/vue-loader/lib/loaders/templateLoader.js??ref--5!./node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options!./packages/know_ui_v2/components/KgCopilot/dialogue/messageParse/index.vue?vue&type=template&id=2adee59e&scoped=true
17173
17173
  var messageParsevue_type_template_id_2adee59e_scoped_true_render = function render(){var _vm=this,_c=_vm._self._c;return _c('div',_vm._l((_vm.msgs),function(item,index){return _c('div',{key:item.uuid + '' + index},[(index < _vm.current && item.type === 'text')?_c('readMd',{attrs:{"text":item.content,"scrollToBottom":_vm.scrollToBottom,"isPrinting":item.needPrinting},on:{"printOk":_vm.printOk,"update:isPrinting":function($event){return _vm.$set(item, "needPrinting", $event)},"update:is-printing":function($event){return _vm.$set(item, "needPrinting", $event)}}}):_vm._e(),(index < _vm.current && item.type === 'file')?_c('FileBox',{attrs:{"desc":item.content,"isPrinting":item.needPrinting},on:{"update:isPrinting":function($event){return _vm.$set(item, "needPrinting", $event)},"update:is-printing":function($event){return _vm.$set(item, "needPrinting", $event)},"printOk":_vm.printOk}}):_vm._e()],1)}),0)
@@ -17404,7 +17404,7 @@ var component = Object(componentNormalizer["a" /* default */])(
17404
17404
 
17405
17405
  )
17406
17406
 
17407
- /* harmony default export */ var messageParse_readMd = (component.exports);
17407
+ /* harmony default export */ var readMd = (component.exports);
17408
17408
  // CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"0d81f3b6-vue-loader-template"}!./node_modules/vue-loader/lib/loaders/templateLoader.js??ref--5!./node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options!./packages/know_ui_v2/components/KgCopilot/dialogue/messageParse/fileBox.vue?vue&type=template&id=eae35050&scoped=true
17409
17409
  var fileBoxvue_type_template_id_eae35050_scoped_true_render = function render(){var _vm=this,_c=_vm._self._c;return _c('div',{staticClass:"file-box"},[_c('div',{staticClass:"file-content"},[_c('FileIcon',{attrs:{"type":_vm.fileType}}),_c('div',{staticClass:"file-desc"},[_c('span',{staticClass:"file-name"},[_vm._v(_vm._s(_vm.desc.name))]),_c('div',{staticClass:"file-size-type"},[_c('span',{staticClass:"size"},[_vm._v(_vm._s(_vm.size))]),_c('span',{staticClass:"type"},[_vm._v(_vm._s(_vm.fileType))])])])],1),_c('button',{staticClass:"download-btn",on:{"click":_vm.downLoadFilde}},[_vm._v("下载")])])
17410
17410
  }
@@ -17537,7 +17537,7 @@ var fileBox_component = Object(componentNormalizer["a" /* default */])(
17537
17537
 
17538
17538
  /* harmony default export */ var messageParsevue_type_script_lang_js = ({
17539
17539
  components: {
17540
- readMd: messageParse_readMd,
17540
+ readMd: readMd,
17541
17541
  FileBox: fileBox
17542
17542
  },
17543
17543
  props: {
@@ -17815,7 +17815,6 @@ var notlike_component = Object(componentNormalizer["a" /* default */])(
17815
17815
 
17816
17816
  /* harmony default export */ var dialoguevue_type_script_lang_js = ({
17817
17817
  components: {
17818
- readMd,
17819
17818
  UserHead: UserHead,
17820
17819
  AnswerHead: AnswerHead,
17821
17820
  Copy: copy,
@@ -17842,7 +17841,9 @@ var notlike_component = Object(componentNormalizer["a" /* default */])(
17842
17841
  scrollToBottom(force = false) {
17843
17842
  this.$nextTick(() => {
17844
17843
  const messageBox = this.$refs.messageBox;
17845
- if (!messageBox) return;
17844
+ if (!messageBox) {
17845
+ return;
17846
+ }
17846
17847
  if (force) {
17847
17848
  messageBox.scrollTop = messageBox.scrollHeight - messageBox.clientHeight;
17848
17849
  return;
@@ -17856,8 +17857,8 @@ var notlike_component = Object(componentNormalizer["a" /* default */])(
17856
17857
  });
17857
17858
  // CONCATENATED MODULE: ./packages/know_ui_v2/components/KgCopilot/dialogue/index.vue?vue&type=script&lang=js
17858
17859
  /* harmony default export */ var KgCopilot_dialoguevue_type_script_lang_js = (dialoguevue_type_script_lang_js);
17859
- // EXTERNAL MODULE: ./packages/know_ui_v2/components/KgCopilot/dialogue/index.vue?vue&type=style&index=0&id=12e00e94&prod&scoped=true&lang=scss
17860
- var dialoguevue_type_style_index_0_id_12e00e94_prod_scoped_true_lang_scss = __webpack_require__("f5bc");
17860
+ // EXTERNAL MODULE: ./packages/know_ui_v2/components/KgCopilot/dialogue/index.vue?vue&type=style&index=0&id=29b7bb01&prod&scoped=true&lang=scss
17861
+ var dialoguevue_type_style_index_0_id_29b7bb01_prod_scoped_true_lang_scss = __webpack_require__("c500");
17861
17862
 
17862
17863
  // CONCATENATED MODULE: ./packages/know_ui_v2/components/KgCopilot/dialogue/index.vue
17863
17864
 
@@ -17870,11 +17871,11 @@ var dialoguevue_type_style_index_0_id_12e00e94_prod_scoped_true_lang_scss = __we
17870
17871
 
17871
17872
  var dialogue_component = Object(componentNormalizer["a" /* default */])(
17872
17873
  KgCopilot_dialoguevue_type_script_lang_js,
17873
- dialoguevue_type_template_id_12e00e94_scoped_true_render,
17874
- dialoguevue_type_template_id_12e00e94_scoped_true_staticRenderFns,
17874
+ dialoguevue_type_template_id_29b7bb01_scoped_true_render,
17875
+ dialoguevue_type_template_id_29b7bb01_scoped_true_staticRenderFns,
17875
17876
  false,
17876
17877
  null,
17877
- "12e00e94",
17878
+ "29b7bb01",
17878
17879
  null
17879
17880
 
17880
17881
  )
@@ -19258,15 +19259,15 @@ const getters = {
19258
19259
  }
19259
19260
  return arr;
19260
19261
  },
19261
- /**
19262
- * 根据选中的信源,返回总的信源类别关联2
19263
- * 返回值: {123:["亚洲"],12345:["越南"]} | {}
19262
+ /**
19263
+ * 根据选中的信源,返回总的信源类别关联2
19264
+ * 返回值: {123:["亚洲"],12345:["越南"]} | {}
19264
19265
  * */
19265
19266
  mappingData_selAll_xinyuan: (state, getters) => {
19266
19267
  let mappingData = []; // 取交集
19267
19268
  if (getters.selFilter_xinyuan.length !== 0) {
19268
19269
  getters.selFilter_xinyuan.forEach(selF => {
19269
- const temp = selF.dependencyList;
19270
+ const temp = selF.dependencyList || [];
19270
19271
  if (mappingData.length === 0) {
19271
19272
  mappingData = temp;
19272
19273
  } else {
@@ -19284,15 +19285,15 @@ const getters = {
19284
19285
  // console.log('依赖总映射', dependencyTransition(mappingData, state.filterList))
19285
19286
  return Object(_utils_util__WEBPACK_IMPORTED_MODULE_2__[/* dependencyTransition */ "f"])(mappingData, state.filterList);
19286
19287
  },
19287
- /**
19288
- * 根据选中的主体和属性,返回总的关联类别 (行交集,列交集)
19289
- * 返回值: {123:["亚洲"],12345:["越南"]} | {}
19288
+ /**
19289
+ * 根据选中的主体和属性,返回总的关联类别 (行交集,列交集)
19290
+ * 返回值: {123:["亚洲"],12345:["越南"]} | {}
19290
19291
  * */
19291
19292
  mappingData_selAll_zhuti_new: (state, getters) => {
19292
19293
  let mappingData = []; // 取交集
19293
19294
  if (getters.selFilter_zhutiAndShuxing.length !== 0) {
19294
19295
  getters.selFilter_zhutiAndShuxing.forEach(selF => {
19295
- const temp = selF.dependencyList;
19296
+ const temp = selF.dependencyList || [];
19296
19297
  if (mappingData.length === 0) {
19297
19298
  mappingData = temp;
19298
19299
  } else {
@@ -19309,15 +19310,15 @@ const getters = {
19309
19310
  }
19310
19311
  return Object(_utils_util__WEBPACK_IMPORTED_MODULE_2__[/* dependencyTransition */ "f"])(mappingData, state.filterList);
19311
19312
  },
19312
- /**
19313
- * 根据选中的query,返回总的关联类别 (行交集,列交集)
19314
- * 返回值: {123:["亚洲"],12345:["越南"]} | {}
19313
+ /**
19314
+ * 根据选中的query,返回总的关联类别 (行交集,列交集)
19315
+ * 返回值: {123:["亚洲"],12345:["越南"]} | {}
19315
19316
  * */
19316
19317
  mappingData_selAll_query: (state, getters) => {
19317
19318
  let mappingData = []; // 取交集
19318
19319
  if (getters.selFilter_query.length !== 0) {
19319
19320
  getters.selFilter_query.forEach(selF => {
19320
- const temp = selF.dependencyList;
19321
+ const temp = selF.dependencyList || [];
19321
19322
  if (mappingData.length === 0) {
19322
19323
  mappingData = temp;
19323
19324
  } else {
@@ -23553,6 +23554,17 @@ module.exports = function transformData(data, headers, fns) {
23553
23554
  module.exports = false;
23554
23555
 
23555
23556
 
23557
+ /***/ }),
23558
+
23559
+ /***/ "c500":
23560
+ /***/ (function(module, __webpack_exports__, __webpack_require__) {
23561
+
23562
+ "use strict";
23563
+ /* 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_lib_loader_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_index_vue_vue_type_style_index_0_id_29b7bb01_prod_scoped_true_lang_scss__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("8d42");
23564
+ /* 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_lib_loader_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_index_vue_vue_type_style_index_0_id_29b7bb01_prod_scoped_true_lang_scss__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_lib_loader_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_index_vue_vue_type_style_index_0_id_29b7bb01_prod_scoped_true_lang_scss__WEBPACK_IMPORTED_MODULE_0__);
23565
+ /* unused harmony reexport * */
23566
+
23567
+
23556
23568
  /***/ }),
23557
23569
 
23558
23570
  /***/ "c532":
@@ -26601,17 +26613,6 @@ function nginx(hljs) {
26601
26613
  module.exports = nginx;
26602
26614
 
26603
26615
 
26604
- /***/ }),
26605
-
26606
- /***/ "f5bc":
26607
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
26608
-
26609
- "use strict";
26610
- /* 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_lib_loader_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_index_vue_vue_type_style_index_0_id_12e00e94_prod_scoped_true_lang_scss__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("66e1");
26611
- /* 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_lib_loader_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_index_vue_vue_type_style_index_0_id_12e00e94_prod_scoped_true_lang_scss__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_lib_loader_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_index_vue_vue_type_style_index_0_id_12e00e94_prod_scoped_true_lang_scss__WEBPACK_IMPORTED_MODULE_0__);
26612
- /* unused harmony reexport * */
26613
-
26614
-
26615
26616
  /***/ }),
26616
26617
 
26617
26618
  /***/ "f5df":