@zhijiancloud/bpm 0.0.1 → 0.0.2
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/CHANGELOG.md +23 -0
- package/README.md +49 -5
- package/components/.DS_Store +0 -0
- package/components/css/bpmMulFile.less +54 -0
- package/components/css/bpmSelectCheckItem.less +4 -0
- package/components/css/bpmSelectFromForm.less +10 -0
- package/components/css/bpmSelectFromId.less +33 -0
- package/components/css/bpmText.less +49 -0
- package/components/css/demo2.less +3 -0
- package/components/css/index.less +3 -0
- package/components/lib/bpmDateTime/index.js +7 -0
- package/components/lib/bpmDateTime/src/main.vue +82 -0
- package/components/lib/bpmDateTime/src/part/editor.vue +124 -0
- package/components/lib/bpmDateTime/src/part/reader.vue +55 -0
- package/components/lib/bpmField/index.js +7 -0
- package/components/lib/bpmField/src/main.vue +173 -0
- package/components/lib/bpmMulFile/index.js +7 -0
- package/components/lib/bpmMulFile/src/main.vue +86 -0
- package/components/lib/bpmMulFile/src/part/editor.vue +433 -0
- package/components/lib/bpmMulFile/src/part/lib/compressImageUtils.js +226 -0
- package/components/lib/bpmMulFile/src/part/lib/utils.js +281 -0
- package/components/lib/bpmMulFile/src/part/reader.vue +303 -0
- package/components/lib/bpmMulImage/index.js +7 -0
- package/components/lib/bpmMulImage/src/main.vue +87 -0
- package/components/lib/bpmMulImage/src/part/editor.vue +439 -0
- package/components/lib/bpmMulImage/src/part/lib/compressImageUtils.js +226 -0
- package/components/lib/bpmMulImage/src/part/lib/utils.js +281 -0
- package/components/lib/bpmMulImage/src/part/reader.vue +171 -0
- package/components/lib/bpmNumber/index.js +7 -0
- package/components/lib/bpmNumber/src/main.vue +83 -0
- package/components/lib/bpmNumber/src/part/editor.vue +48 -0
- package/components/lib/bpmNumber/src/part/reader.vue +7 -0
- package/components/lib/bpmSelect/index.js +7 -0
- package/components/lib/bpmSelect/src/main.vue +90 -0
- package/components/lib/bpmSelect/src/part/editor.vue +75 -0
- package/components/lib/bpmSelect/src/part/reader.vue +44 -0
- package/components/lib/bpmSelectCheckItem/index.js +7 -0
- package/components/lib/bpmSelectCheckItem/src/main.vue +101 -0
- package/components/lib/bpmSelectCheckItem/src/part/editor.vue +94 -0
- package/components/lib/bpmSelectCheckItem/src/part/reader.vue +7 -0
- package/components/lib/bpmSelectFromField/index.js +7 -0
- package/components/lib/bpmSelectFromField/src/main.vue +97 -0
- package/components/lib/bpmSelectFromField/src/part/editor.vue +82 -0
- package/components/lib/bpmSelectFromField/src/part/reader.vue +7 -0
- package/components/lib/bpmSelectFromForm/index.js +7 -0
- package/components/lib/bpmSelectFromForm/src/main.vue +103 -0
- package/components/lib/bpmSelectFromForm/src/part/editor.vue +181 -0
- package/components/lib/bpmSelectFromForm/src/part/reader.vue +7 -0
- package/components/lib/bpmSelectFromId/index.js +7 -0
- package/components/lib/bpmSelectFromId/src/main.vue +102 -0
- package/components/lib/bpmSelectFromId/src/part/editor.vue +260 -0
- package/components/lib/bpmSelectFromId/src/part/reader.vue +7 -0
- package/components/lib/bpmSubForm/index.js +7 -0
- package/components/lib/bpmSubForm/src/main.vue +181 -0
- package/components/lib/bpmText/index.ts +13 -0
- package/components/lib/bpmText/src/main.vue +87 -0
- package/components/lib/bpmText/src/part/editor.vue +104 -0
- package/components/lib/bpmText/src/part/reader.vue +7 -0
- package/components/lib/bpmTime/index.js +7 -0
- package/components/lib/bpmTime/src/main.vue +83 -0
- package/components/lib/bpmTime/src/part/editor.vue +54 -0
- package/components/lib/bpmTime/src/part/reader.vue +24 -0
- package/components/lib/demo/index.js +7 -0
- package/components/{bpm2/lib → lib}/demo/src/main.vue +1 -1
- package/components/lib/demo2/index.js +7 -0
- package/components/lib/demo2/src/main.vue +11 -0
- package/components/lib/field-const.js +468 -0
- package/components/lib/index.ts +52 -0
- package/components/lib/mixins/RemoteSelectReader.vue +49 -0
- package/components/lib/mixins/TextReader.vue +22 -0
- package/components/lib/net.js +21 -0
- package/components/lib/utils.js +89 -0
- package/components/sfc.d.ts +27 -0
- package/dist/06c52960c6d2c0312a3e.woff +1 -0
- package/dist/0db1520f47986b6c755a.svg +1 -0
- package/dist/1e59d2330b4c6deb84b340635ed36249.ttf +0 -0
- package/dist/20fd1704ea223900efa9fd4e869efb08.woff2 +0 -0
- package/dist/4a2487b5cc6987c4f1de.woff2 +1 -0
- package/dist/4c6f1cd9993ba8a53b8e.ttf +1 -0
- package/dist/8b43027f47b20503057dfbbaa9401fef.eot +0 -0
- package/dist/bpmDateTime.umd.js +1 -0
- package/dist/bpmDateTime.umd.js.LICENSE.txt +38 -0
- package/dist/bpmField.umd.js +2 -0
- package/dist/bpmField.umd.js.LICENSE.txt +9 -0
- package/dist/bpmMulFile.umd.js +2 -0
- package/dist/bpmMulFile.umd.js.LICENSE.txt +9 -0
- package/dist/bpmMulImage.umd.js +2 -0
- package/dist/bpmMulImage.umd.js.LICENSE.txt +9 -0
- package/dist/bpmNumber.umd.js +1 -0
- package/dist/bpmNumber.umd.js.LICENSE.txt +38 -0
- package/dist/bpmSelect.umd.js +1 -0
- package/dist/bpmSelect.umd.js.LICENSE.txt +38 -0
- package/dist/bpmSelectCheckItem.umd.js +1 -0
- package/dist/bpmSelectFromField.umd.js +1 -0
- package/dist/bpmSelectFromForm.umd.js +1 -0
- package/dist/bpmSelectFromId.umd.js +1 -0
- package/dist/bpmSelectUser.umd.js +1 -0
- package/dist/bpmSubForm.umd.js +1 -0
- package/dist/bpmText.umd.js +1 -0
- package/dist/bpmText.umd.js.LICENSE.txt +38 -0
- package/dist/bpmTime.umd.js +1 -0
- package/dist/bpmTime.umd.js.LICENSE.txt +38 -0
- package/dist/c1e38fd9e0e74ba58f7a2b77ef29fdd3.svg +2671 -0
- package/dist/css/bpmMulFile.css +1 -0
- package/dist/css/bpmSelectCheckItem.css +1 -0
- package/dist/css/bpmSelectFromForm.css +1 -0
- package/dist/css/bpmSelectFromId.css +1 -0
- package/dist/css/bpmText.css +1 -0
- package/dist/css/demo2.css +1 -0
- package/dist/css/index.css +1 -0
- package/dist/demo.umd.js +1 -0
- package/dist/demo2.umd.js +1 -0
- package/dist/e5c0c62d732823225aaa.eot +1 -0
- package/dist/f691f37e57f04c152e2315ab7dbad881.woff +0 -0
- package/dist/index.umd.js +2 -0
- package/dist/index.umd.js.LICENSE.txt +9 -0
- package/package.json +66 -16
- package/components/bpm2/.DS_Store +0 -0
- package/components/bpm2/lib/demo/index.js +0 -18
- package/dist/favicon.ico +0 -0
- package/dist/index.html +0 -1
- package/dist/js/chunk-vendors.fad77a0a.js +0 -2
- package/dist/js/chunk-vendors.fad77a0a.js.map +0 -1
- package/dist/js/index.655afe85.js +0 -2
- package/dist/js/index.655afe85.js.map +0 -1
- package/dist/lib.umd.js +0 -1
- /package/components/{bpm2/css → css}/demo.less +0 -0
- /package/dist/css/{index.40a99d5f.css → demo.css} +0 -0
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* 告诉 TypeScript *.vue 后缀的文件可以交给 vue 模块来处理
|
|
3
|
+
* 而在代码中导入 *.vue 文件的时候,需要写上 .vue 后缀。
|
|
4
|
+
* 原因还是因为 TypeScript 默认只识别 *.ts 文件,不识别 *.vue 文件
|
|
5
|
+
*/
|
|
6
|
+
|
|
7
|
+
declare module "*.vue" {
|
|
8
|
+
import Vue from 'vue'
|
|
9
|
+
export default Vue
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
declare module 'vue/types/vue' {
|
|
13
|
+
interface VueConstructor {
|
|
14
|
+
install: any
|
|
15
|
+
}
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
declare var window: any
|
|
19
|
+
|
|
20
|
+
declare global {
|
|
21
|
+
interface Window {
|
|
22
|
+
zj: Object,
|
|
23
|
+
vm:Object
|
|
24
|
+
}
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export default __webpack_public_path__ + "f691f37e57f04c152e2315ab7dbad881.woff";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export default __webpack_public_path__ + "c1e38fd9e0e74ba58f7a2b77ef29fdd3.svg";
|
|
Binary file
|
|
Binary file
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export default __webpack_public_path__ + "20fd1704ea223900efa9fd4e869efb08.woff2";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export default __webpack_public_path__ + "1e59d2330b4c6deb84b340635ed36249.ttf";
|
|
Binary file
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t(require("lodash"),require("fecha"),require("qs")):"function"==typeof define&&define.amd?define(["lodash","fecha","qs"],t):"object"==typeof exports?exports.bpm2=t(require("lodash"),require("fecha"),require("qs")):e.bpm2=t(e.lodash,e.fecha,e.qs)}(self,(function(e,t,r){return function(){var n={4239:function(e,t,r){"use strict";function n(){for(var e=["iphone","ipod","ipad","android","mobile","blackberry","webos","incognito","webmate","bada","nokia","lg","ucweb","skyfire"],t=navigator.userAgent.toLowerCase(),r=!1,n=0,i=e.length;n<i;n++)-1!=t.indexOf(e[n])&&(r=!0);return r}r.d(t,{tq:function(){return n}}),r(467),r(6656)},1900:function(e,t,r){"use strict";function n(e,t,r,n,i,o,a,u){var l,s="function"==typeof e?e.options:e;if(t&&(s.render=t,s.staticRenderFns=r,s._compiled=!0),n&&(s.functional=!0),o&&(s._scopeId="data-v-"+o),a?(l=function(e){(e=e||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext)||"undefined"==typeof __VUE_SSR_CONTEXT__||(e=__VUE_SSR_CONTEXT__),i&&i.call(this,e),e&&e._registeredComponents&&e._registeredComponents.add(a)},s._ssrRegister=l):i&&(l=u?function(){i.call(this,(s.functional?this.parent:this).$root.$options.shadowRoot)}:i),l)if(s.functional){s._injectStyles=l;var c=s.render;s.render=function(e,t){return l.call(t),c(e,t)}}else{var f=s.beforeCreate;s.beforeCreate=f?[].concat(f,l):[l]}return{exports:e,options:s}}r.d(t,{Z:function(){return n}})},6981:function(e){e.exports=function(){return this.ELEMENT}()},3371:function(e){e.exports=function(){return this.Vue}()},1319:function(e){"use strict";e.exports=t},467:function(t){"use strict";t.exports=e},6656:function(e){"use strict";e.exports=r}},i={};function o(e){var t=i[e];if(void 0!==t)return t.exports;var r=i[e]={exports:{}};return n[e](r,r.exports,o),r.exports}o.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return o.d(t,{a:t}),t},o.d=function(e,t){for(var r in t)o.o(t,r)&&!o.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},o.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},o.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var a={};return function(){"use strict";o.r(a),o.d(a,{default:function(){return C}});var e=function(){var e=this,t=e.$createElement;return(e._self._c||t)(e.curComponent,e._g(e._b({tag:"component",staticClass:"bpm-select",attrs:{fieldConf:e.fieldConf,row:e.row,mode:e.mode,uiType:e.uiType},model:{value:e.curVal,callback:function(t){e.curVal=t},expression:"curVal"}},"component",e.$attrs,!1),e.$listeners))};e._withStripped=!0;var t=function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("div",{staticClass:"bpm-date-time-edit"},[r("el-date-picker",{attrs:{format:e.format,"picker-options":e.pickerOptions,"value-format":e.checkFormat,type:e.type,"default-value":e.defaultVal},model:{value:e.curVal,callback:function(t){e.curVal=t},expression:"curVal"}})],1)};t._withStripped=!0;var r=o(467),n=o.n(r),i=o(3371),u=o.n(i),l=o(6981);u().use(l.DatePicker);var s={data(){let e=this;return{curVal:"",pickerOptions:{disabledDate(t){return t.getTime()<=e.max&&t.getTime()>=e.min}}}},props:["value","fieldConf","row"],watch:{curVal(e){console.log("val",e,this.checkFormat),this.$emit("input",e)},value(){this.curVal=this.value}},computed:{type(){let e=n().toLower(n().get(this.fieldConf,"type"));return this.isMonth?"month":e},isMonth(){return"C1M"==n().get(this.fieldConf,"range_type")},format(){let e=n().get(this.fieldConf,"view.format");return e&&(e=e.replaceAll("Y","y"),e=e.replaceAll("D","d")),e},max(){return this.analyzeLimit("tmax")},min(){return this.analyzeLimit("tmin")},checkFormat(){let e=n().get(this.fieldConf,"check.format");return e&&(e=e.replaceAll("Y","y"),e=e.replaceAll("D","d")),e},defaultVal(){return new Date}},mounted(){this.curVal=this.value},methods:{analyzeLimit(e){let t=n().get(this.fieldConf,`check.${e}`);if(!t)return;let r=null,i=(new Date).getTime();switch(t.type){case"LimitDateOffset":var o=t.offset_days;r=this.deltaToDate(i,o);break;case"LimitDateOffsetByField":var a=t.offset_days,u=this.value;if(!u)return 0;r=this.deltaToDate(u,a);break;case"LimitDateByValue":var l=t.value;l=new Date(l).getTime(),this.deltaToDate(l,0)}return r},deltaToDate(e,t){let r=(e=new Date(e)).getDate()+t;return e.setDate(r),e}}},c=o(1900),f=(0,c.Z)(s,t,[],!1,null,null,null);f.options.__file="components/lib/bpmDateTime/src/part/editor.vue";var p=f.exports,d=function(){var e=this,t=e.$createElement;return(e._self._c||t)("span",{attrs:{title:e.dateTimeStr}},[e._v(e._s(e.dateTimeStr))])};d._withStripped=!0;var m=o(1319),h=o.n(m),v=o(4239),_={props:["value","fieldConf","row"],data(){return{dateTimeStr:""}},computed:{format(){return n().get(this.fieldConf,"view.format")}},watch:{value(){this.dateTimeStr=this.formatViewTime()}},mounted(){this.dateTimeStr=this.formatViewTime()},methods:{formatViewTime(){let e,t=this.value;return t?(n().isInteger(t)&&13!=n().toString(t).length&&(t*=1e3),(0,v.tq)()?(t=t.replace(/-/g,"/"),t=t.replace(/T/g," "),t=t.padEnd(10,"/01/01"),e=new Date(t).getTime()):e=new Date(t).getTime(),h().format(e,this.format)):""}}},y=(0,c.Z)(_,d,[],!1,null,null,null);y.options.__file="components/lib/bpmDateTime/src/part/reader.vue";var b=y.exports,g={name:"BpmDateTime",components:{editorComponent:p,readerComponent:b},props:{value:{type:[String,Number]},fieldConf:{type:Object,default(){return{}}},row:{type:Object,default(){return{}}},mode:{type:String,default(){return"view"}},uiType:{type:String,default(){return"default"}}},computed:{curComponent(){return"view"==this.mode?b:p}},data(){return{curVal:""}},watch:{curVal(e){this.$emit("input",e),this.$emit("change",e)},value(){this.curVal=this.value}},mounted(){this.curVal=this.value}},T=(0,c.Z)(g,e,[],!1,null,null,null);T.options.__file="components/lib/bpmDateTime/src/main.vue";var w=T.exports;w.install=function(e){e.component(w.name,w)};var C=w}(),a}()}));
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
/*!
|
|
2
|
+
* Vue.js v2.7.15
|
|
3
|
+
* (c) 2014-2023 Evan You
|
|
4
|
+
* Released under the MIT License.
|
|
5
|
+
*/
|
|
6
|
+
|
|
7
|
+
/**
|
|
8
|
+
* @license
|
|
9
|
+
* Lodash <https://lodash.com/>
|
|
10
|
+
* Copyright JS Foundation and other contributors <https://js.foundation/>
|
|
11
|
+
* Released under MIT license <https://lodash.com/license>
|
|
12
|
+
* Based on Underscore.js 1.8.3 <http://underscorejs.org/LICENSE>
|
|
13
|
+
* Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
|
|
14
|
+
*/
|
|
15
|
+
|
|
16
|
+
/**
|
|
17
|
+
* @license
|
|
18
|
+
* Lodash <https://lodash.com/>
|
|
19
|
+
* Copyright OpenJS Foundation and other contributors <https://openjsf.org/>
|
|
20
|
+
* Released under MIT license <https://lodash.com/license>
|
|
21
|
+
* Based on Underscore.js 1.8.3 <http://underscorejs.org/LICENSE>
|
|
22
|
+
* Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
|
|
23
|
+
*/
|
|
24
|
+
|
|
25
|
+
/**
|
|
26
|
+
* Checks if an event is supported in the current execution environment.
|
|
27
|
+
*
|
|
28
|
+
* NOTE: This will not work correctly for non-generic events such as `change`,
|
|
29
|
+
* `reset`, `load`, `error`, and `select`.
|
|
30
|
+
*
|
|
31
|
+
* Borrows from Modernizr.
|
|
32
|
+
*
|
|
33
|
+
* @param {string} eventNameSuffix Event name, e.g. "click".
|
|
34
|
+
* @param {?boolean} capture Check if the capture phase is supported.
|
|
35
|
+
* @return {boolean} True if the event is supported.
|
|
36
|
+
* @internal
|
|
37
|
+
* @license Modernizr 3.0.0pre (Custom Build) | MIT
|
|
38
|
+
*/
|