UNPKG

yinghe-lowcode

Version:

基于vue、ant-design-vue,datagrid的低代码平台

1,433 lines (1,313 loc) 28.5 MB
module.exports = /******/ (function(modules) { // webpackBootstrap /******/ // install a JSONP callback for chunk loading /******/ function webpackJsonpCallback(data) { /******/ var chunkIds = data[0]; /******/ var moreModules = data[1]; /******/ /******/ /******/ // add "moreModules" to the modules object, /******/ // then flag all "chunkIds" as loaded and fire callback /******/ var moduleId, chunkId, i = 0, resolves = []; /******/ for(;i < chunkIds.length; i++) { /******/ chunkId = chunkIds[i]; /******/ if(Object.prototype.hasOwnProperty.call(installedChunks, chunkId) && installedChunks[chunkId]) { /******/ resolves.push(installedChunks[chunkId][0]); /******/ } /******/ installedChunks[chunkId] = 0; /******/ } /******/ for(moduleId in moreModules) { /******/ if(Object.prototype.hasOwnProperty.call(moreModules, moduleId)) { /******/ modules[moduleId] = moreModules[moduleId]; /******/ } /******/ } /******/ if(parentJsonpFunction) parentJsonpFunction(data); /******/ /******/ while(resolves.length) { /******/ resolves.shift()(); /******/ } /******/ /******/ }; /******/ /******/ /******/ // The module cache /******/ var installedModules = {}; /******/ /******/ // object to store loaded CSS chunks /******/ var installedCssChunks = { /******/ 2: 0 /******/ } /******/ /******/ // object to store loaded and loading chunks /******/ // undefined = chunk not loaded, null = chunk preloaded/prefetched /******/ // Promise = chunk loading, 0 = chunk loaded /******/ var installedChunks = { /******/ 2: 0 /******/ }; /******/ /******/ /******/ /******/ // script path function /******/ function jsonpScriptSrc(chunkId) { /******/ return __webpack_require__.p + "yinghe-lowcode.common." + ({"0":"fail","1":"user"}[chunkId]||chunkId) + ".js" /******/ } /******/ /******/ // The require function /******/ function __webpack_require__(moduleId) { /******/ /******/ // Check if module is in cache /******/ if(installedModules[moduleId]) { /******/ return installedModules[moduleId].exports; /******/ } /******/ // Create a new module (and put it into the cache) /******/ var module = installedModules[moduleId] = { /******/ i: moduleId, /******/ l: false, /******/ exports: {} /******/ }; /******/ /******/ // Execute the module function /******/ modules[moduleId].call(module.exports, module, module.exports, __webpack_require__); /******/ /******/ // Flag the module as loaded /******/ module.l = true; /******/ /******/ // Return the exports of the module /******/ return module.exports; /******/ } /******/ /******/ // This file contains only the entry chunk. /******/ // The chunk loading function for additional chunks /******/ __webpack_require__.e = function requireEnsure(chunkId) { /******/ var promises = []; /******/ /******/ /******/ // mini-css-extract-plugin CSS loading /******/ var cssChunks = {"0":1,"1":1,"3":1,"6":1}; /******/ if(installedCssChunks[chunkId]) promises.push(installedCssChunks[chunkId]); /******/ else if(installedCssChunks[chunkId] !== 0 && cssChunks[chunkId]) { /******/ promises.push(installedCssChunks[chunkId] = new Promise(function(resolve, reject) { /******/ var href = "css/" + ({"0":"fail","1":"user"}[chunkId]||chunkId) + "." + {"0":"a8f62f9c","1":"58559d74","3":"2c00ee8f","4":"31d6cfe0","5":"31d6cfe0","6":"1c4413f6","7":"31d6cfe0","8":"31d6cfe0","9":"31d6cfe0","10":"31d6cfe0","11":"31d6cfe0","12":"31d6cfe0","13":"31d6cfe0","14":"31d6cfe0","15":"31d6cfe0"}[chunkId] + ".css"; /******/ var fullhref = __webpack_require__.p + href; /******/ var existingLinkTags = document.getElementsByTagName("link"); /******/ for(var i = 0; i < existingLinkTags.length; i++) { /******/ var tag = existingLinkTags[i]; /******/ var dataHref = tag.getAttribute("data-href") || tag.getAttribute("href"); /******/ if(tag.rel === "stylesheet" && (dataHref === href || dataHref === fullhref)) return resolve(); /******/ } /******/ var existingStyleTags = document.getElementsByTagName("style"); /******/ for(var i = 0; i < existingStyleTags.length; i++) { /******/ var tag = existingStyleTags[i]; /******/ var dataHref = tag.getAttribute("data-href"); /******/ if(dataHref === href || dataHref === fullhref) return resolve(); /******/ } /******/ var linkTag = document.createElement("link"); /******/ linkTag.rel = "stylesheet"; /******/ linkTag.type = "text/css"; /******/ linkTag.onload = resolve; /******/ linkTag.onerror = function(event) { /******/ var request = event && event.target && event.target.src || fullhref; /******/ var err = new Error("Loading CSS chunk " + chunkId + " failed.\n(" + request + ")"); /******/ err.code = "CSS_CHUNK_LOAD_FAILED"; /******/ err.request = request; /******/ delete installedCssChunks[chunkId] /******/ linkTag.parentNode.removeChild(linkTag) /******/ reject(err); /******/ }; /******/ linkTag.href = fullhref; /******/ /******/ var head = document.getElementsByTagName("head")[0]; /******/ head.appendChild(linkTag); /******/ }).then(function() { /******/ installedCssChunks[chunkId] = 0; /******/ })); /******/ } /******/ /******/ // JSONP chunk loading for javascript /******/ /******/ var installedChunkData = installedChunks[chunkId]; /******/ if(installedChunkData !== 0) { // 0 means "already installed". /******/ /******/ // a Promise means "currently loading". /******/ if(installedChunkData) { /******/ promises.push(installedChunkData[2]); /******/ } else { /******/ // setup Promise in chunk cache /******/ var promise = new Promise(function(resolve, reject) { /******/ installedChunkData = installedChunks[chunkId] = [resolve, reject]; /******/ }); /******/ promises.push(installedChunkData[2] = promise); /******/ /******/ // start chunk loading /******/ var script = document.createElement('script'); /******/ var onScriptComplete; /******/ /******/ script.charset = 'utf-8'; /******/ script.timeout = 120; /******/ if (__webpack_require__.nc) { /******/ script.setAttribute("nonce", __webpack_require__.nc); /******/ } /******/ script.src = jsonpScriptSrc(chunkId); /******/ /******/ // create error before stack unwound to get useful stacktrace later /******/ var error = new Error(); /******/ onScriptComplete = function (event) { /******/ // avoid mem leaks in IE. /******/ script.onerror = script.onload = null; /******/ clearTimeout(timeout); /******/ var chunk = installedChunks[chunkId]; /******/ if(chunk !== 0) { /******/ if(chunk) { /******/ var errorType = event && (event.type === 'load' ? 'missing' : event.type); /******/ var realSrc = event && event.target && event.target.src; /******/ error.message = 'Loading chunk ' + chunkId + ' failed.\n(' + errorType + ': ' + realSrc + ')'; /******/ error.name = 'ChunkLoadError'; /******/ error.type = errorType; /******/ error.request = realSrc; /******/ chunk[1](error); /******/ } /******/ installedChunks[chunkId] = undefined; /******/ } /******/ }; /******/ var timeout = setTimeout(function(){ /******/ onScriptComplete({ type: 'timeout', target: script }); /******/ }, 120000); /******/ script.onerror = script.onload = onScriptComplete; /******/ document.head.appendChild(script); /******/ } /******/ } /******/ return Promise.all(promises); /******/ }; /******/ /******/ // expose the modules object (__webpack_modules__) /******/ __webpack_require__.m = modules; /******/ /******/ // expose the module cache /******/ __webpack_require__.c = installedModules; /******/ /******/ // define getter function for harmony exports /******/ __webpack_require__.d = function(exports, name, getter) { /******/ if(!__webpack_require__.o(exports, name)) { /******/ Object.defineProperty(exports, name, { enumerable: true, get: getter }); /******/ } /******/ }; /******/ /******/ // define __esModule on exports /******/ __webpack_require__.r = function(exports) { /******/ if(typeof Symbol !== 'undefined' && Symbol.toStringTag) { /******/ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' }); /******/ } /******/ Object.defineProperty(exports, '__esModule', { value: true }); /******/ }; /******/ /******/ // create a fake namespace object /******/ // mode & 1: value is a module id, require it /******/ // mode & 2: merge all properties of value into the ns /******/ // mode & 4: return value when already ns object /******/ // mode & 8|1: behave like require /******/ __webpack_require__.t = function(value, mode) { /******/ if(mode & 1) value = __webpack_require__(value); /******/ if(mode & 8) return value; /******/ if((mode & 4) && typeof value === 'object' && value && value.__esModule) return value; /******/ var ns = Object.create(null); /******/ __webpack_require__.r(ns); /******/ Object.defineProperty(ns, 'default', { enumerable: true, value: value }); /******/ if(mode & 2 && typeof value != 'string') for(var key in value) __webpack_require__.d(ns, key, function(key) { return value[key]; }.bind(null, key)); /******/ return ns; /******/ }; /******/ /******/ // getDefaultExport function for compatibility with non-harmony modules /******/ __webpack_require__.n = function(module) { /******/ var getter = module && module.__esModule ? /******/ function getDefault() { return module['default']; } : /******/ function getModuleExports() { return module; }; /******/ __webpack_require__.d(getter, 'a', getter); /******/ return getter; /******/ }; /******/ /******/ // Object.prototype.hasOwnProperty.call /******/ __webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); }; /******/ /******/ // __webpack_public_path__ /******/ __webpack_require__.p = ""; /******/ /******/ // on error function for async loading /******/ __webpack_require__.oe = function(err) { console.error(err); throw err; }; /******/ /******/ var jsonpArray = (typeof self !== 'undefined' ? self : this)["webpackJsonpyinghe_lowcode"] = (typeof self !== 'undefined' ? self : this)["webpackJsonpyinghe_lowcode"] || []; /******/ var oldJsonpFunction = jsonpArray.push.bind(jsonpArray); /******/ jsonpArray.push = webpackJsonpCallback; /******/ jsonpArray = jsonpArray.slice(); /******/ for(var i = 0; i < jsonpArray.length; i++) webpackJsonpCallback(jsonpArray[i]); /******/ var parentJsonpFunction = oldJsonpFunction; /******/ /******/ /******/ // Load entry module and return exports /******/ return __webpack_require__(__webpack_require__.s = "fb15"); /******/ }) /************************************************************************/ /******/ ({ /***/ 0: /***/ (function(module, exports) { /* (ignored) */ /***/ }), /***/ "0009": /***/ (function(module, exports, __webpack_require__) { // extracted by mini-css-extract-plugin /***/ }), /***/ "0078": /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony import */ var _core_renderer__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("5b62"); /* harmony import */ var _core_element__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__("ac1d"); /* harmony import */ var _core_utils_common__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__("6bc7"); /* harmony import */ var _core_utils_type__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__("bf95"); /* harmony import */ var _core_component_registrator__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__("085e"); /* harmony import */ var _core_utils_extend__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__("b9af"); /* harmony import */ var _collection_ui_collection_widget_edit_strategy_plain__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__("4401"); /* harmony import */ var _slide_out_view__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__("70cd"); /* harmony import */ var _collection_ui_collection_widget_edit__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__("0da6"); /* harmony import */ var _list_light__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__("af8d"); /* harmony import */ var _core_templates_child_default_template__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__("a470"); /* harmony import */ var _core_templates_empty_template__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__("0d5c"); /* harmony import */ var _shared_grouped_data_converter_mixin__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__("6f1d"); /** * DevExtreme (esm/ui/slide_out.js) * Version: 21.2.6 * Build date: Tue Mar 01 2022 * * Copyright (c) 2012 - 2022 Developer Express Inc. ALL RIGHTS RESERVED * Read about DevExtreme licensing here: https://js.devexpress.com/Licensing/ */ var SLIDEOUT_CLASS = "dx-slideout"; var SLIDEOUT_ITEM_CONTAINER_CLASS = "dx-slideout-item-container"; var SLIDEOUT_MENU = "dx-slideout-menu"; var SLIDEOUT_ITEM_CLASS = "dx-slideout-item"; var SLIDEOUT_ITEM_DATA_KEY = "dxSlideoutItemData"; var SlideOut = _collection_ui_collection_widget_edit__WEBPACK_IMPORTED_MODULE_8__[/* default */ "a"].inherit({ ctor: function(element, options) { this.callBase(element, options); this._logDeprecatedComponentWarning("20.1", "dxDrawer") }, _getDefaultOptions: function() { return Object(_core_utils_extend__WEBPACK_IMPORTED_MODULE_5__[/* extend */ "a"])(this.callBase(), { activeStateEnabled: false, menuItemTemplate: "menuItem", swipeEnabled: true, menuVisible: false, menuPosition: "normal", menuGrouped: false, menuGroupTemplate: "menuGroup", onMenuItemRendered: null, onMenuGroupRendered: null, contentTemplate: "content", selectionMode: "single", selectedIndex: 0, selectionRequired: true }) }, _itemClass: function() { return SLIDEOUT_ITEM_CLASS }, _itemDataKey: function() { return SLIDEOUT_ITEM_DATA_KEY }, _itemContainer: function() { return Object(_core_renderer__WEBPACK_IMPORTED_MODULE_0__[/* default */ "a"])(this._slideOutView.content()) }, _init: function() { this._selectedItemContentRendered = false; this.callBase(); this.$element().addClass(SLIDEOUT_CLASS); this._initSlideOutView() }, _initTemplates: function() { this.callBase(); this._templateManager.addDefaultTemplates({ menuItem: new _core_templates_child_default_template__WEBPACK_IMPORTED_MODULE_10__[/* ChildDefaultTemplate */ "a"]("item"), menuGroup: new _core_templates_child_default_template__WEBPACK_IMPORTED_MODULE_10__[/* ChildDefaultTemplate */ "a"]("group"), content: new _core_templates_empty_template__WEBPACK_IMPORTED_MODULE_11__[/* EmptyTemplate */ "a"] }) }, _initEditStrategy: function() { if (this.option("menuGrouped")) { var strategy = _collection_ui_collection_widget_edit_strategy_plain__WEBPACK_IMPORTED_MODULE_6__[/* default */ "a"].inherit({ _getPlainItems: function() { return this.callBase().reduce((result, group) => { result.push.apply(result, group.items); return result }, []) } }); this._editStrategy = new strategy(this) } else { this.callBase() } }, _initSlideOutView: function() { this._slideOutView = this._createComponent(this.$element(), _slide_out_view__WEBPACK_IMPORTED_MODULE_7__["default"], { integrationOptions: {}, menuVisible: this.option("menuVisible"), swipeEnabled: this.option("swipeEnabled"), menuPosition: this.option("menuPosition"), onOptionChanged: this._slideOutViewOptionChanged.bind(this) }); this._itemContainer().addClass(SLIDEOUT_ITEM_CONTAINER_CLASS) }, _slideOutViewOptionChanged: function(args) { if ("menuVisible" === args.name) { this.option(args.name, args.value) } }, _initMarkup: function() { this._renderList(); this._renderContentTemplate(); this.callBase() }, _render: function() { this._slideOutView._renderShield(); this.callBase() }, _renderList: function() { var $list = this._list && this._list.$element() || Object(_core_renderer__WEBPACK_IMPORTED_MODULE_0__[/* default */ "a"])("<div>").addClass(SLIDEOUT_MENU).appendTo(Object(_core_renderer__WEBPACK_IMPORTED_MODULE_0__[/* default */ "a"])(this._slideOutView.menuContent())); this._renderItemClickAction(); this._list = this._createComponent($list, _list_light__WEBPACK_IMPORTED_MODULE_9__[/* default */ "a"], { itemTemplateProperty: "menuTemplate", selectionMode: this.option("selectionMode"), selectionRequired: this.option("selectionRequired"), indicateLoading: false, onItemClick: this._listItemClickHandler.bind(this), items: this.option("items"), dataSource: this._dataSource, itemTemplate: this._getTemplateByOption("menuItemTemplate"), grouped: this.option("menuGrouped"), groupTemplate: this._getTemplateByOption("menuGroupTemplate"), onItemRendered: this.option("onMenuItemRendered"), onGroupRendered: this.option("onMenuGroupRendered"), onContentReady: this._updateSlideOutView.bind(this) }); this._list.option("selectedIndex", this.option("selectedIndex")) }, _getGroupedOption: function() { return this.option("menuGrouped") }, _updateSlideOutView: function() { this._slideOutView._dimensionChanged() }, _renderItemClickAction: function() { this._itemClickAction = this._createActionByOption("onItemClick") }, _listItemClickHandler: function(e) { var selectedIndex = this._list.$element().find(".dx-list-item").index(e.itemElement); this.option("selectedIndex", selectedIndex); this._itemClickAction(e) }, _renderContentTemplate: function() { if (Object(_core_utils_type__WEBPACK_IMPORTED_MODULE_3__[/* isDefined */ "d"])(this._singleContent)) { return } var itemsLength = this._itemContainer().html().length; this._getTemplateByOption("contentTemplate").render({ container: Object(_core_element__WEBPACK_IMPORTED_MODULE_1__[/* getPublicElement */ "a"])(this._itemContainer()) }); this._singleContent = this._itemContainer().html().length !== itemsLength }, _itemClickHandler: _core_utils_common__WEBPACK_IMPORTED_MODULE_2__[/* noop */ "n"], _renderContentImpl: function() { if (this._singleContent) { return } var items = this.option("items"); var selectedIndex = this.option("selectedIndex"); if (items.length && selectedIndex > -1) { this._selectedItemContentRendered = true; var selectedItem = this._list.getItemByIndex(selectedIndex); this._renderItems([selectedItem]) } }, _renderItem: function(index, item) { this._itemContainer().find("." + SLIDEOUT_ITEM_CLASS).remove(); this.callBase(index, item) }, _selectedItemElement: function() { return this._itemElements().eq(0) }, _updateSelection: function() { this._prepareContent(); this._renderContent() }, _getListWidth: function() { return this._slideOutView._getMenuWidth() }, _changeMenuOption: function(name, value) { this._list.option(name, value); this._updateSlideOutView() }, _cleanItemContainer: function() { if (this._singleContent) { return } this.callBase() }, beginUpdate: function() { this.callBase(); this._list && this._list.beginUpdate() }, endUpdate: function() { this._list && this._list.endUpdate(); this.callBase() }, _optionChanged: function(args) { var name = args.name; var value = args.value; switch (name) { case "menuVisible": case "swipeEnabled": case "rtlEnabled": case "menuPosition": this._slideOutView.option(name, value); break; case "width": this.callBase(args); this._updateSlideOutView(); break; case "menuItemTemplate": this._changeMenuOption("itemTemplate", this._getTemplate(value)); break; case "items": this._changeMenuOption("items", this.option("items")); if (!this._selectedItemContentRendered) { this._updateSelection() } break; case "dataSource": case "selectedIndex": case "selectedItem": this._changeMenuOption(name, value); this.callBase(args); break; case "menuGrouped": this._initEditStrategy(); this._changeMenuOption("grouped", value); break; case "menuGroupTemplate": this._changeMenuOption("groupTemplate", this._getTemplate(value)); break; case "onMenuItemRendered": this._changeMenuOption("onItemRendered", value); break; case "onMenuGroupRendered": this._changeMenuOption("onGroupRendered", value); break; case "onItemClick": this._renderItemClickAction(); break; case "contentTemplate": this._singleContent = null; this._invalidate(); break; default: this.callBase(args) } }, showMenu: function() { return this._slideOutView.toggleMenuVisibility(true) }, hideMenu: function() { return this._slideOutView.toggleMenuVisibility(false) }, toggleMenuVisibility: function(showing) { return this._slideOutView.toggleMenuVisibility(showing) } }).include(_shared_grouped_data_converter_mixin__WEBPACK_IMPORTED_MODULE_12__[/* default */ "a"]); Object(_core_component_registrator__WEBPACK_IMPORTED_MODULE_4__[/* default */ "a"])("dxSlideOut", SlideOut); /* harmony default export */ __webpack_exports__["default"] = (SlideOut); /***/ }), /***/ "0081": /***/ (function(module, exports) { module.exports = function(hljs) { var STEP21_IDENT_RE = '[A-Z_][A-Z0-9_.]*'; var STEP21_KEYWORDS = { keyword: 'HEADER ENDSEC DATA' }; var STEP21_START = { className: 'meta', begin: 'ISO-10303-21;', relevance: 10 }; var STEP21_CLOSE = { className: 'meta', begin: 'END-ISO-10303-21;', relevance: 10 }; return { aliases: ['p21', 'step', 'stp'], case_insensitive: true, // STEP 21 is case insensitive in theory, in practice all non-comments are capitalized. lexemes: STEP21_IDENT_RE, keywords: STEP21_KEYWORDS, contains: [ STEP21_START, STEP21_CLOSE, hljs.C_LINE_COMMENT_MODE, hljs.C_BLOCK_COMMENT_MODE, hljs.COMMENT('/\\*\\*!', '\\*/'), hljs.C_NUMBER_MODE, hljs.inherit(hljs.APOS_STRING_MODE, {illegal: null}), hljs.inherit(hljs.QUOTE_STRING_MODE, {illegal: null}), { className: 'string', begin: "'", end: "'" }, { className: 'symbol', variants: [ { begin: '#', end: '\\d+', illegal: '\\W' } ] } ] }; }; /***/ }), /***/ "0096": /***/ (function(module, exports, __webpack_require__) { "use strict"; /*! * devextreme-vue * Version: 21.2.6 * Build date: Tue Mar 01 2022 * * Copyright (c) 2012 - 2022 Developer Express Inc. ALL RIGHTS RESERVED * * This software may be modified and distributed under the terms * of the MIT license. See the LICENSE file in the root of the project for details. * * https://github.com/DevExpress/devextreme-vue */ var __assign = (this && this.__assign) || function () { __assign = Object.assign || function(t) { for (var s, i = 1, n = arguments.length; i < n; i++) { s = arguments[i]; for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p]; } return t; }; return __assign.apply(this, arguments); }; Object.defineProperty(exports, "__esModule", { value: true }); exports.setEmitOptionChangedFunc = exports.bindOptionWatchers = void 0; var helpers_1 = __webpack_require__("a293"); var Configuration = /** @class */ (function () { function Configuration(updateFunc, name, initialValues, expectedChildren, isCollectionItem, collectionItemIndex, ownerConfig) { this._updateFunc = updateFunc; this._name = name; this._initialValues = initialValues ? initialValues : {}; this._nestedConfigurations = []; this._isCollectionItem = !!isCollectionItem; this._collectionItemIndex = collectionItemIndex; this._expectedChildren = expectedChildren || {}; this._ownerConfig = ownerConfig; this._componentChanges = []; this.updateValue = this.updateValue.bind(this); } Object.defineProperty(Configuration.prototype, "name", { get: function () { return this._name; }, enumerable: false, configurable: true }); Object.defineProperty(Configuration.prototype, "fullName", { get: function () { return this._name && this._isCollectionItem ? this._name + "[" + this._collectionItemIndex + "]" : this._name; }, enumerable: false, configurable: true }); Object.defineProperty(Configuration.prototype, "componentsCountChanged", { get: function () { return this._componentChanges; }, enumerable: false, configurable: true }); Configuration.prototype.cleanComponentsCountChanged = function () { this._componentChanges = []; }; Object.defineProperty(Configuration.prototype, "fullPath", { get: function () { return this._ownerConfig && this._ownerConfig.fullPath ? this._ownerConfig.fullPath + "." + this.fullName : this.fullName; }, enumerable: false, configurable: true }); Object.defineProperty(Configuration.prototype, "ownerConfig", { get: function () { return this._ownerConfig; }, enumerable: false, configurable: true }); Object.defineProperty(Configuration.prototype, "options", { get: function () { return this._options; }, enumerable: false, configurable: true }); Object.defineProperty(Configuration.prototype, "initialValues", { get: function () { return this._initialValues; }, enumerable: false, configurable: true }); Object.defineProperty(Configuration.prototype, "expectedChildren", { get: function () { return this._expectedChildren; }, enumerable: false, configurable: true }); Object.defineProperty(Configuration.prototype, "nested", { get: function () { return this._nestedConfigurations; }, enumerable: false, configurable: true }); Object.defineProperty(Configuration.prototype, "prevNestedOptions", { get: function () { return this._prevNestedConfigOptions; }, enumerable: false, configurable: true }); Object.defineProperty(Configuration.prototype, "collectionItemIndex", { get: function () { return this._collectionItemIndex; }, enumerable: false, configurable: true }); Object.defineProperty(Configuration.prototype, "isCollectionItem", { get: function () { return this._isCollectionItem; }, enumerable: false, configurable: true }); Object.defineProperty(Configuration.prototype, "updateFunc", { get: function () { return this._updateFunc; }, enumerable: false, configurable: true }); Configuration.prototype.init = function (options) { this._options = options ? options : []; }; Object.defineProperty(Configuration.prototype, "emitOptionChanged", { set: function (handler) { this._emitOptionChanged = handler; }, enumerable: false, configurable: true }); Configuration.prototype.setPrevNestedOptions = function (value) { this._prevNestedConfigOptions = value; }; Configuration.prototype.onOptionChanged = function (args) { if (helpers_1.isEqual(args.value, args.previousValue)) { return; } this._onOptionChanged(args.fullName.split("."), args); }; Configuration.prototype.cleanNested = function () { this._nestedConfigurations = []; }; Configuration.prototype.createNested = function (name, initialValues, isCollectionItem, expectedChildren) { var expected = this._expectedChildren[name]; var actualName = name; var actualIsCollectionItem = isCollectionItem; if (expected) { actualIsCollectionItem = expected.isCollectionItem; if (expected.optionName) { actualName = expected.optionName; } } var collectionItemIndex = -1; if (actualIsCollectionItem && actualName) { collectionItemIndex = this._nestedConfigurations.filter(function (c) { return c._name && c._name === actualName; }).length; } var configuration = new Configuration(this._updateFunc, actualName, initialValues, expectedChildren, actualIsCollectionItem, collectionItemIndex, this); this._nestedConfigurations.push(configuration); return configuration; }; Configuration.prototype.updateValue = function (nestedName, value) { var fullName = [this.fullPath, nestedName].filter(function (n) { return n; }).join("."); this._updateFunc(fullName, value); }; Configuration.prototype.getNestedOptionValues = function () { var values = {}; this._nestedConfigurations.forEach(function (o) { if (!o._name) { return; } var nestedValue = __assign(__assign({}, o.initialValues), o.getNestedOptionValues()); if (!nestedValue) { return; } if (!o._isCollectionItem) { values[o._name] = nestedValue; } else { var arr = values[o._name]; if (!arr || !Array.isArray(arr)) { arr = []; values[o._name] = arr; } arr.push(nestedValue); } }); return values; }; Configuration.prototype.getOptionsToWatch = function () { var blackList = {}; this._nestedConfigurations.forEach(function (c) { return c._name && (blackList[c._name] = true); }); return this._options.filter(function (o) { return !blackList[o]; }); }; Configuration.prototype._onOptionChanged = function (optionRelPath, args) { if (optionRelPath.length === 0) { return; } var optionInfo = helpers_1.getOptionInfo(optionRelPath[0]); if (optionInfo.isCollection || optionRelPath.length > 1) { var nestedConfig = this._getNestedConfig(optionInfo.fullName); if (nestedConfig) { nestedConfig._onOptionChanged(optionRelPath.slice(1), args); return; } this._tryEmitOptionChanged(optionInfo.name, args.component.option(this.fullPath ? this.fullPath + "." + optionInfo.name : optionInfo.name)); } else { this._tryEmitOptionChanged(optionInfo.name, args.value); } }; Configuration.prototype._getNestedConfig = function (fullName) { for (var _i = 0, _a = this._nestedConfigurations; _i < _a.length; _i++) { var nestedConfig = _a[_i]; if (nestedConfig.fullName === fullName) { return nestedConfig; } } return undefined; }; Configuration.prototype._tryEmitOptionChanged = function (name, value) { if (this._emitOptionChanged) { this._emitOptionChanged(name, value); } }; return Configuration; }()); function bindOptionWatchers(config, vueInstance, innerChanges) { var targets = config && config.getOptionsToWatch(); if (targets) { targets.forEach(function (optionName) { vueInstance.$watch(optionName, function (value) { if (!innerChanges.hasOwnProperty(optionName) || innerChanges[optionName] !== value) { config.updateValue(optionName, value); } delete innerChanges[optionName]; }); }); } } exports.bindOptionWatchers = bindOptionWatchers; function setEmitOptionChangedFunc(config, vueInstance, innerChanges) { config.emitOptionChanged = function (name, value) { if (!helpers_1.isEqual(value, vueInstance.$props[name])) { innerChanges[name] = value; vueInstance.$emit("update:" + name, value); } }; } exports.setEmitOptionChangedFunc = setEmitOptionChangedFunc; exports.default = Configuration; /***/ }), /***/ "00b1": /***/ (function(module, exports, __webpack_require__) { "use strict"; var utils = __webpack_require__("7e94"); /** * @deprecated * This function will be removed in a future version without replacement. */ exports.string2binary = function(str) { return utils.string2binary(str); }; /** * @deprecated * This function will be removed in a future version without replacement. */ exports.string2Uint8Array = function(str) { return utils.transformTo("uint8array", str); }; /** * @deprecated * This function will be removed in a future version without replacement. */ exports.uint8Array2String = function(array) { return utils.transformTo("string", array); }; /** * @deprecated * This function will be removed in a future version without replacement. */ exports.string2Blob = function(str) { var buffer = utils.transformTo("arraybuffer", str); return utils.arrayBuffer2Blob(buffer); }; /** * @deprecated * This function will be removed in a future version without replacement. */ exports.arrayBuffer2Blob = function(buffer) { return utils.arrayBuffer2Blob(buffer); }; /** * @deprecated * This function will be removed in a future version without replacement. */ exports.transformTo = function(outputType, input) { return utils.transformTo(outputType, input); }; /** * @deprecated * This function will be removed in a future version without replacement. */ exports.getTypeOf = function(input) { return utils.getTypeOf(input); }; /** * @deprecated * This function will be removed in a future version without replacement. */ exports.checkSupport = function(type) { return utils.checkSupport(type); }; /** * @deprecated * This value will be removed in a future version without replacement. */ exports.MAX_VALUE_16BITS = utils.MAX_VALUE_16BITS; /** * @deprecated * This value will be removed in a future version without replacement. */ exports.MAX_VALUE_32BITS = utils.MAX_VALUE_32BITS; /** * @deprecated * This function will be removed in a future version without replacement. */ exports.pretty = function(str) { return utils.pretty(str); }; /** * @deprecated * This function will be removed in a future version without replacement. */ exports.findCompression = function(compressionMethod) { return utils.findCompression(compressionMethod); }; /** * @deprecated * This function will be removed in a future version without replacement. */ exports.isRegExp = function (object) { return utils.isRegExp(object); }; /***/ }), /***/ "00b4": /***/ (function(module, exports, __webpack_require__) { "use strict"; // TODO: Remove from `core-js@4` since it's moved to entry points __webpack_require__("ac1f"); var $ = __webpack_require__("23e7"); var global = __webpack_require__("da84"); var call = __webpack_require__("c65b"); var uncurryThis = __webpack_require__("e330"); var isCallable = __webpack_require__("1626"); var isObject = __webpack_require__("861d"); var DELEGATES_TO_EXEC = function () { var execCalled = false; var re = /[ac]/; re.exec = function () { execCalled = true; return /./.exec.apply(this, arguments); }; return re.test('abc') === true && execCalled; }(); var Error = global.Error; var un$Test = uncurryThis(/./.test); // `RegExp.prototype.test` method // https://tc39.es/ecma262/#sec-regexp.prototype.test $({ target: 'RegExp', proto: true, forced: !DELEGATES_TO_EXEC }, { test: function (str) { var exec = this.exec; if (!isCallable(exec)) return un$Test(this, str); var result = call(exec, this, str); if (result !== null && !isObject(result)) { throw new Error('RegExp exec method returned something other than an Object or null'); } return !!result; } }); /***/ }), /***/ "00dc": /***/ (function(module, exports, __webpack_require__) { /* WEBPACK VAR INJECTION */(function(Buffer) {var generatePrime = __webpack_require__("58a2") var primes = __webpack_require__("c24d") var DH = __webpack_require__("561d") function getDiffieHellman (mod) { var prime = new Buffer(primes[mod].prime, 'hex') var gen = new Buffer(primes[mod].gen, 'hex') return new DH(prime, gen) } var ENCODINGS = { 'binary': true, 'hex': true, 'base64': true } function createDiffieHellman (prime, enc, generator, genc) { if (Buffer.isBuffer(enc) || ENCODINGS[enc] === undefined) { return createDiffieHellman(prime, 'binary', enc, generator) } enc = enc || 'binary' genc = genc || 'binary' generator = generator || new Buffer([2]) if (!Buffer.isBuffer(generator)) { generator = new Buffer(generator, genc) } if (typeof prime === 'number') { return new DH(generatePrime(prime, generator), generator, true) } if (!Buffer.isBuffer(prime)) { prime = new Buffer(prime, enc) } return new DH(prime, generator, true) } exports.DiffieHellmanGroup = exports.createDiffieHellmanGroup = exports.getDiffieHellman = getDiffieHellman exports.createDiffieHellman = exports.DiffieHellman = createDiffieHellman /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__("1c35").Buffer)) /***/ }), /***/ "00e9": /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; // CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"ed5b1108-vue-loader-template"}!./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/cache-loader/dist/cjs.js??ref--1-0!./node_modules/vue-loader/lib??vue-loader-options!./packages/components/CtosBiz/BaseModal.vue?vue&type=template&id=f613f2ba&scoped=true& var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',[(_vm.dialogModalType === 'drawer')?_c('a-drawer',{staticStyle:{"height":"calc(100% - 10px)","overflow":"auto"},attrs:{"title":_vm.dialogTitle,"maskClosable":true,"confirmLoading":_vm.confirmLoading,"width":_vm.dialogWidth,"placement":"right","closable":true,"visible":_vm.visible},on:{"close":_vm.handleCancel}},[_c('a-spin',{attrs:{"spinning":_vm.confirmLoading,"size":"large"}},[_c('k-form-build',{ref:"kfb",attrs:{"value":_vm.configJson,"dynamicData":_vm.dynamicData},on:{"logEvent":_vm.logEvent,"change":_vm.handleChange}})],1),(_vm.operateBizBtn.length === 0)?_c('div',{staticClass:"drawer-bootom-button"},[_c('a-popconfirm',{attrs:{"title":"确定放弃编辑?","okText":"确定","cancelText":"取消"},on:{"confirm":_vm.handleCancel}},[_c('a-button',{staticStyle:{"margin-right":"0.8rem"}},[_vm._v("取消")])],1),_c('a-button',{attrs:{"type":"primary","loading":_vm.confirmLoading},on:{"click":_vm.handleOk}},[_vm._v("确认")])],1):_vm._e(),(_vm.operateBizBtn.length > 0)?_c('div',{staticClass:"drawer-bootom-button"},[_vm._l((_vm.operateBizBtn),function(item,index){return [_c('a-button',{key:index,attrs:{"type":item.type ? item.type : 'primary',"icon":item.icon},on:{"click":function($event){return _vm.handleBusiness(item.operation, item)}}},[_vm._v(_vm._s(item.label))])]})],2):_vm._e()],1):_vm._e(),(_vm.dialogModalType === 'dialog')?_c('drag-modal',{staticStyle:{"top":"5%","height":"70%","overflow-y":"hidden"},attrs:{"title":_vm.dialogTitle,"width":_vm.dialogWidth,"visible":_vm.visible,"isFooter":_vm.operateBizBtn.length > 0 ? true : false,"confirmLoading":_vm.confirmLoading,"okText":"保存","cancelText":"关闭","wrapClassName":"ant-modal-cust-warp"},on:{"ok":_vm.handleOk,"cancel":_vm.handleCancel}},[_c('a-spin',{attrs:{"spinning":_vm.confirmLoading,"size":"large"}},[_c('k-form-build',{ref:"kfb",attrs:{"value":_vm.configJson,"dynamicData":_vm.dynamicData},on:{"logEvent":_vm.logEvent,"change":_vm.handleChange}})],1),_vm._l((_vm.operateBizBtn),function(item,index){return _c('template',{slot:"footer"},[_c('a-button',{key:index,attrs:{"type":item.type ? item.type : 'primary',"icon":item.icon},on:{"click":function($event){return _vm.handleBusiness(item.operation, item)}}},[_vm._v(_vm._s(item.label))])],1)})],2):_vm._e()],1)} var staticRenderFns = [] // CONCATENATED MODULE: ./packages/components/CtosBiz/BaseModal.vue?vue&type=template&id=f613f2ba&scoped=true& // EXTERNAL MODULE: ./node_modules/core-js/modules/es.object.assign.js var es_object_assign = __webpack_require__("cca6"); // EXTERNAL MODULE: ./node_modules/core-js/modules/es.object.to-string.js var es_object_to_string = __webpack_require__("d3b7"); // EXTERNAL MODULE: ./node_modules/core-js/modules/web.dom-collections.for-each.js var web_dom_collections_for_each = __webpack_require__("159b"); // EXTERNAL MODULE: ./node_modules/core-js/modules/es.promise.js var es_promise = __webpack_require__("e6cf"); // EXTERNAL MODULE: ./node_modules/core-js/modules/es.promise.finally.js var es_promise_finally = __webpack_require__("a79d"); // EXTERNAL MODULE: ./packages/api/manage.js var manage = __webpack_require__("5b4e"); // EXTERNAL MODULE: ./packages/utils/util.js + 3 modules var util = __webpack_require__("1ae5"); // 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/lib??vue-loader-options!./packages/components/CtosBiz/BaseModal.vue?vue&type=script&lang=js& // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // /* harmony default export */ var BaseModalvue_type_script_lang_js_ = ({ name: "BaseModal", props: { // 弹窗页面操作按钮'端接口' serviceName: { type: String, default: "codeService" }, //宽度'' width: { type: String, default: "40%" }, // 页面组件id'' pageId: { type: String, default: "" }, // 码表特殊处理'' baseCodeType: { type: String, default: "" }, //弹窗类型'' dialogType: { type: String, default: "dialog" }, //操作按钮后端方法 url: { type: Object, default: function _default() { return { add: "save", update: "updateById" }; } }, //弹窗操作按钮 operateBtn: { type: Array, default: function _default() { return []; } }, /* eslint-disable */ dynamicData: { type: Object }, confirm: { type: Boolean, default: false } }, data: function data() { return { visible: false, model: {}, dialogTitle: "新增", dialogServiceName: this.serviceName, dialogWidth: this.width, dialogBaseCodeType: this.baseCodeType, dialogModalType: this.dialogType, dialogUrl: { add: "save", update: "updateById" }, configJson: {}, disableSubmit: false, confirmLoading: false, pageIdTemp: "", enableList: [], disableList: [], ctos3CommonApi: manage["c" /* ctos3CommonApi */], packageRpcParam: util["o" /* packageRpcParam */], uploadUrl: "/api", operateBizBtn: this.operateBtn }; }, methods: { //新增方法 add: function add(record) { this.edit(record ? record : {}); }, //编辑初始化方法 edit: function edit(record) { this.visible = true; this.confirmLoading = true; this.dynamicData.commonFunc = this.commonFunc; this.model = Object.assign({}, record); this.dynamicData.record = record; if (this.model.hasOwnProperty("tailInfos")) { Object.assign(this.model, this.model["tailInfos"]); delete this.model.tailInfos; } this.initForm(record); }, // 初始化表单设计器的内容,数据维护在T_UM_FORM_CONFIG表中 initForm: function initForm(record) { var _this = this; var params = {}; params.serviceName = "formConfigService"; params.methodName = "searchFormConfigByPageId"; if (this.pageIdTemp) { params.rpcParams = [this.pageIdTemp]; this.confirmLoading = false; } else { if (record.pageId) { //排除表单配置的modal if (record.pageId && record.pageName) { params.rpcParams = [this.pageId]; } else { params.rpcParams = [record.pageId]; } } else { if (!this.pageId) { if (this.dialogBaseCodeType) { params.rpcParams = [Object(util["h" /* getPageIdByClassName */])(this.dialogBaseCodeType)]; } else { this.$message.error("未设置pageId!"); } } else { params.rpcParams = [this.pageId]; } } } Object(manage["b" /* ctos3Api */])(params).then(function (response) { if (response.responseData.statusCode === 0) { _this.operateBizBtn = []; var result = response.responseData.resultData; var config = JSON.parse(result.configJson); _this.configJson = config; if (result.formType === 2 && config.config.dialog) { _this.dialogTitle = config.config.dialog.dialogTitle; // this.dialogWidth = config.config.dialog.dialogWidth; _this.dialogServiceName = config.config.dialog.serviceName; _this.dialogBaseCodeType = config.config.dialog.baseCodeType; _this.dialogModalType = config.config.dialog.dialogType; if (config.config.dialog.add) { _this.dialogUrl.add = config.config.dialog.add; } if (config.config.dialog.update) { _this.dialogUrl.update = config.config.dialog.update; } } Object(util["A" /* useCodeEvent */])(_this.configJson.config, "callInMounted", _this)(manage["c" /* ctos3CommonApi */], util["o" /* packageRpcParam */], _this); var operateBizBtn = JSON.parse(result.operateConfigJson); if (operateBizBtn) { operateBizBtn.forEach(function (item) { if (item.operation && item.operation != "") { _this.operateBizBtn.push(item); } }); } if (_this.configJson.dialogWidth) { _this.width = _this.configJson.dialogWidth; } _this.$refs.kfb.setData(record); _this.$refs.kfb.disable(_this.disableList); _this.$refs.kfb.enable(_this.enableList); _this.disableList = []; _this.enableList = []; if (!record.id) { _this.$refs.kfb.reset(); } _this.confirmLoading = false; } else { _this.$message.error("加载动态列表头失败!"); } }).catch(function () {}); }, close: function close() { this.$emit("close"); this.visible = false; this.disableSubmit = false; }, /* 保存表单内容 */ handleOk: function handleOk() { var _this2 = this; var that = this; // 触发表单验证 this.$refs.kfb.getData().then(function (values) { that.confirmLoading = true; var formData = Object.assign(_this2.model, values); var params = {}; params.serviceName = _this2.dialogServiceName; if (_this2.dialogBaseCodeType) { params.rpcParams = [formData, _this2.dialogBaseCodeType]; } else { params.rpcParams = [formData]; } if (!_this2.model.id) { params.methodName = _this2.dialogUrl.add; } else { params.methodName = _this2.dialogUrl.update; } // 发起