fastman2 0.0.5 → 0.0.8-beta.1

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.
Files changed (92) hide show
  1. package/.iversion +1 -0
  2. package/README.en.md +36 -0
  3. package/README.md +0 -149
  4. package/actionsheetman.d.ts +1 -1
  5. package/actionsheetman.js +1 -10
  6. package/alertman.d.ts +3 -2
  7. package/alertman.js +1 -10
  8. package/annotationman.d.ts +53 -0
  9. package/annotationman.js +17 -2570
  10. package/baseman.js +1 -10
  11. package/blankpageman.d.ts +1 -1
  12. package/blankpageman.js +1 -10
  13. package/bootstrap/index.d.ts +45 -24
  14. package/bootstrap/index.js +121 -6
  15. package/cascadepickerman.d.ts +1 -1
  16. package/cascadepickerman.js +1 -10
  17. package/confirmman.d.ts +1 -1
  18. package/confirmman.js +1 -10
  19. package/coreman.js +3 -11
  20. package/cryptoman.js +1 -19
  21. package/datetimepickerman.d.ts +5 -4
  22. package/datetimepickerman.js +1 -10
  23. package/domman.js +1 -10
  24. package/eventemitterman.js +1 -10
  25. package/fastman3-miniprogram-bridge/fastman3-miniprogram-bridge-1.0.0.js +1 -0
  26. package/fileuploadman.d.ts +1 -1
  27. package/fileuploadman.js +0 -9
  28. package/formvalidateman.d.ts +2 -2
  29. package/formvalidateman.js +1 -10
  30. package/jsbridgeGJman.js +1 -0
  31. package/jsbridgeman.d.ts +9 -0
  32. package/jsbridgeman.js +1 -10
  33. package/lazyloadman.js +1 -10
  34. package/loadingman.d.ts +4 -1
  35. package/loadingman.js +1 -10
  36. package/modalman.js +1 -10
  37. package/model/index.d.ts +5 -0
  38. package/model/index.js +18 -0
  39. package/mutation/index.d.ts +8 -3
  40. package/mutation/index.js +16 -0
  41. package/mutationobserverman.js +1 -10
  42. package/oem-jsbridge/oem-jsbridge-1.0.js +1545 -0
  43. package/package.json +1 -1
  44. package/passguardman.d.ts +1 -1
  45. package/passguardman.js +1 -10
  46. package/persistman.js +1 -10
  47. package/pickerman.d.ts +1 -1
  48. package/pickerman.js +1 -10
  49. package/popupman.js +1 -10
  50. package/postman.js +1 -10
  51. package/preloadman.js +1 -10
  52. package/resultpageman.js +1 -10
  53. package/routerman.js +1 -10
  54. package/scrollman-infiniteRefresh.js +1 -10
  55. package/scrollman-pullDownRefresh.js +1 -10
  56. package/scrollman.js +2 -11
  57. package/storeman.js +1 -10
  58. package/styles/fastman-UIdesign-passGuard.js +1 -1
  59. package/styles/fastman-UIdesign.js +1 -1
  60. package/swiperman.js +0 -9
  61. package/swiperoldman.js +0 -9
  62. package/tabman.js +1 -10
  63. package/third-jsbridge/dfgj-jsbridge-1.0.js +2367 -0
  64. package/third-jsbridge/dfzq-jsbridge-1.0.js +882 -0
  65. package/third-jsbridge/dfzq-jsbridge-1.1.js +881 -0
  66. package/third-jsbridge/dfzq-jsbridge-1.10.js +1255 -0
  67. package/third-jsbridge/dfzq-jsbridge-1.11.js +1274 -0
  68. package/third-jsbridge/dfzq-jsbridge-1.12.js +1944 -0
  69. package/third-jsbridge/dfzq-jsbridge-1.2.js +1032 -0
  70. package/third-jsbridge/dfzq-jsbridge-1.3.js +1042 -0
  71. package/third-jsbridge/dfzq-jsbridge-1.4.js +1112 -0
  72. package/third-jsbridge/dfzq-jsbridge-1.5.js +1136 -0
  73. package/third-jsbridge/dfzq-jsbridge-1.6.js +1191 -0
  74. package/third-jsbridge/dfzq-jsbridge-1.7.js +1212 -0
  75. package/third-jsbridge/dfzq-jsbridge-1.8.js +1234 -0
  76. package/third-jsbridge/dfzq-jsbridge-1.9.js +1253 -0
  77. package/third-jsbridge/jsbridgeman.js +642 -0
  78. package/third-jsbridge/tools.js +409 -0
  79. package/third-jsbridge/wxPay.js +259 -0
  80. package/tipman.d.ts +1 -1
  81. package/tipman.js +1 -10
  82. package/toastman.d.ts +1 -1
  83. package/toastman.js +1 -10
  84. package/toolman.js +1 -10
  85. package/types.d.ts +3 -0
  86. package/types.js +2 -0
  87. package/view/index.d.ts +7 -6
  88. package/view/index.jsx +1 -0
  89. package/webpackJsonp.js +153 -0
  90. package/whenman.js +1 -10
  91. package/wsman.js +1 -10
  92. package/routerman.js.map +0 -1
package/.iversion ADDED
@@ -0,0 +1 @@
1
+ 0.0.39
package/README.en.md ADDED
@@ -0,0 +1,36 @@
1
+ # fastman-lib-os
2
+
3
+ #### Description
4
+ {**When you're done, you can delete the content in this README and update the file with details for others getting started with your repository**}
5
+
6
+ #### Software Architecture
7
+ Software architecture description
8
+
9
+ #### Installation
10
+
11
+ 1. xxxx
12
+ 2. xxxx
13
+ 3. xxxx
14
+
15
+ #### Instructions
16
+
17
+ 1. xxxx
18
+ 2. xxxx
19
+ 3. xxxx
20
+
21
+ #### Contribution
22
+
23
+ 1. Fork the repository
24
+ 2. Create Feat_xxx branch
25
+ 3. Commit your code
26
+ 4. Create Pull Request
27
+
28
+
29
+ #### Gitee Feature
30
+
31
+ 1. You can use Readme\_XXX.md to support different languages, such as Readme\_en.md, Readme\_zh.md
32
+ 2. Gitee blog [blog.gitee.com](https://blog.gitee.com)
33
+ 3. Explore open source project [https://gitee.com/explore](https://gitee.com/explore)
34
+ 4. The most valuable open source project [GVP](https://gitee.com/gvp)
35
+ 5. The manual of Gitee [https://gitee.com/help](https://gitee.com/help)
36
+ 6. The most popular members [https://gitee.com/gitee-stars/](https://gitee.com/gitee-stars/)
package/README.md CHANGED
@@ -3,152 +3,3 @@
3
3
  A Hybird APP Framework From Orient Securities Company
4
4
 
5
5
  > V1 is uniformly managed by the company's internal Gitbucket, but V2 that we decided to managed by NPM.
6
-
7
- ## Change Log
8
-
9
- ### v2.0.0 (2019/07/11)
10
- - 全新架构,全新模式,全新设计理念,从现在起开发者可以开始拥抱V2
11
-
12
- ### v2.0.1 (2019/07/16)
13
- - 对部分命名空间的命名做了更为语义化的调整,以及部分文件目录结构做了调整
14
- - 调整mutation的构建方式
15
- - 增加component、plugin和js-sdk的类型声明文件(d.ts),现在开发者可直接通过IDE智能识别各种API语法
16
-
17
- ### v1.2.0 (2019/06/26)
18
- - 打包模式全新升级,代码执行效率提升20%
19
- - 支持自动代码规范检查和自动美化功能
20
- - 将jsbridgeman移入主sdk库中;将swiperman和passguardman样式库移入主UI样式库中;将superman改名为domman,去除了deprecated版本的不再维护的swiper组件,未来开发者请使用全新的swiper组件来开发
21
- - 新增build:fastman-optimize打包指令,用于编译出基于全新构建模式下的基础库sdk
22
- - 现在开发者可以无约束的使用TC39所有新语法特性,底层框架会自动进行按需polyfill
23
- - 现在开发者不再需要定义页面模板,请采用新的方式来定义业务组件,具体请查看[<声明式方式>](./others/package-capacity-declaration.md)
24
- - 调整了注册程序的namespace声明方式,可具体关注[<注册程序-namespace>](./framework/app-service/register.md)
25
- - 新增了基于@annotation注解方式的若干个声明方式
26
-
27
- ### v1.1.4 (2019/06/23)
28
- - 桥接脚本增加开发者模式
29
- - 新增第三方框架React/Vue使用桥接的示例
30
-
31
- ### v1.1.3 (2018/07/30)
32
- - 扩展了request=1时的桥接指令,支持多系统登录的权限限制逻辑(可通过入参fundtype来加以控制)
33
- - 第三方桥接脚本新增onLoginEnhance指令
34
-
35
- ### v1.1.2 (2018/05/19)
36
- - 基础组件alert、confirm、toast支持函数对象式的方式来声明
37
- - 新增业务组件:结果页(ResultPage)
38
- - postman新增xhrFields,用以扩展xhr自身的属性及特性支持
39
- - 新增基础组件:级联选择器(CascadePicker)
40
-
41
- ### v1.1.1 (2018/03/14)
42
- - 新增preload组件,可实现静态资源的预加载
43
- - 实现资源缓存(包括js和css)的后台自动刷新(默认30秒检查一次,发现服务端变化则自动下载新资源)
44
- - 增加更新model状态的通用函数:actions.model.setState()
45
- - 增加更新model模型中对象数据状态的通用函数:actions.model.setObjectState()
46
- - 移除ios11上fastclick特性,否则会造成点击事件的偶发失灵
47
- - 修复了router路由模块中版本判断错误的bug
48
-
49
- ### v1.1.0 (2018/02/14)
50
- - 第三方桥接脚本新增微信支付
51
- - 第三方桥接脚本新增视图出现回调函数
52
- - 新增data-sysfont特性(该特性支持开启或关闭页面不随着系统字体的大小变化而变化)
53
-
54
- ### v1.0.9 (2018/01/21)
55
- - 新增swiper回调函数
56
- - 扩展swiper的分页导航功能
57
- - 规范boilerplate模板
58
- - 新增verticalSwiper插件和标签(继承与swiperman)
59
- - 解决lazyloadman无法触发viewport回调的bug
60
-
61
- ### v1.0.8 (2018/01/15)
62
- - 新增swiper组件
63
-
64
- ### v1.0.7 (2018/01/11)
65
- - 修复下拉刷新组件在刷新中没有显示图标的bug
66
- - 优化了tip组件的UI样式
67
-
68
- ### v1.0.6 (2018/01/08)
69
- - 增加blankPage组件的fontScale和iconScale扩展属性
70
- - 优化了部分组件的UI样式
71
- - 重构了lazyload组件
72
-
73
- ### v1.0.5 (2018/01/02)
74
- - 重构loading组件
75
- - 重构blankpage组件,支持适配不同大小的容器
76
-
77
- ### v1.0.4 (2017/12/24)
78
- - jsbridge.notify()指令增加浏览器容器内的订阅模式,通过fastman实现的eventEmitter插件来实现
79
- - eventEmitter插件增加once函数
80
- - 调整了jsbridge.request中针对非app端对于payload的处理,payload中的参数将统一通过get方式传递
81
-
82
- ### v1.0.3 (2017/12/21)
83
- - 完善了插件的使用和调用方式
84
- - 增加懒加载lazyLoad插件
85
- - 增加事件处理器eventEmitter插件
86
-
87
- ### v1.0.2 (2017/12/20)
88
- - HistoryStack插件新增destory事件
89
- - jsbridge.push()统一修改成pushState机制,不在区分不同端的特殊处理
90
-
91
- ### v1.0.1 (2017/10/20)
92
- - JS-SDK 1.2版新增onNavigateNativeTo和onNavigateBar指令,可用于原生页面跳转和原生导航头动态设置
93
-
94
- ### v1.0.0 (2017/10/18)
95
- - 新增通过连接池获取对应网关的连接实例方式
96
- - 新增websocket注册订阅模式(主推)
97
-
98
- ### v0.9.2 (2017/10/12)
99
- - 新增第三方调用中台接口方式
100
-
101
- ### v0.9.1 (2017/09/22)
102
- - 支持单元测试
103
-
104
- ### v0.9.0 (2017/09/18)
105
- - 打包批处理文件可打包出具有websocket特性的API
106
- - 通讯层同时支持http和websocket
107
-
108
- ### v0.8.6 (2017/08/20)
109
- - 新增第三方桥接脚本1.0
110
-
111
- ### v0.8.5 (2017/08/17)
112
- - 新增subscribe指令
113
-
114
- ### v0.8.4 (2017/08/14)
115
- - 新增mutationObserverMan插件,解决DOM在屏幕可见范围内进行回调
116
-
117
- ### v0.8.3 (2017/08/10)
118
- - 新增router插件,用来解决路由前进和后退问题
119
- - jsbridge插件新增push事件,用于解决多页情况下跳转后,多页后退的阻塞扩展
120
-
121
- ### v0.8.2 (2017/08/08)
122
- - 新增historyStack插件,用来解决浏览器后退问题
123
-
124
- ### v0.8.1 (2017/08/02)
125
- - 新增noBfCache插件,用来禁用部分支持bfcache功能的浏览器
126
-
127
- ### v0.8.0 (2017/06/26)
128
- - 增加环境Profile动态配置,现在可以根据不同的开发模式、不同环境的参数配置文件以及业务功能模块进行打包
129
-
130
- ### v0.7.1 (2017/06/21)
131
- - 桥接程序增加notify指令
132
-
133
- ### v0.7.0 (2017/06/13)
134
- - 对state模型结构增加持久化特性
135
-
136
- ### v0.6.0-beta.1 (2017/05/15)
137
- - 新增jsBridge插件,实现桥接程序的构建
138
-
139
- ### v0.5.0-beta.1 (2017/05/13)
140
- - 新增应用程序自动更新的能力
141
-
142
- ### v0.4.0-beta.1 (2017/04/10)
143
- - 基础组件新增"自定义模态窗口"
144
-
145
- ### v0.3.0-beta.1 (2017/04/09)
146
- - 增加boilerplate-html、boilerplate-view模板文件规范
147
- - 对公共模块进行统一抽取,便于实现application-cache
148
-
149
- ### v0.2.0-beta.1 (2017/04/07)
150
- - 基础组件新增"密码卫士"
151
- - 新增webpack + grunt打包发布命令
152
-
153
- ### v0.1.0-beta.1 (2017/04/04)
154
- - [里程碑]完成第一阶段所有功能模块的详细设计、编码开发以及Demo编写
@@ -4,7 +4,7 @@
4
4
  // Definitions: https://github.com/borisyankov/DefinitelyTyped
5
5
  /**
6
6
  * 打开一个actionsheet操作表组件
7
- * @param btns 具体options参数请查看http://itest.dfzq.com.cn/document/fastman-v2/component/actionsheet.html
7
+ * @param btns 具体options参数请查看文档
8
8
  */
9
9
  export default function actionSheet(btns: Array<actionSheetItemsType>)
10
10
 
package/actionsheetman.js CHANGED
@@ -1,10 +1 @@
1
- /*!
2
- * /*!
3
- * * ============================================================
4
- * *
5
- * * Orientsec fastman By ShenZhiWei - http://www.dfzq.com.cn/
6
- * *
7
- * * ============================================================
8
- *
9
- */
10
- !function(o,n){"object"==typeof exports&&"object"==typeof module?module.exports=n():"function"==typeof define&&define.amd?define([],n):"object"==typeof exports?exports.fastman=n():o.fastman=n()}(this,function(){return webpackJsonpfastman([29],{198:function(o,n,e){o.exports=e(79)},79:function(o,n,e){"use strict";Object.defineProperty(n,"__esModule",{value:!0});var t=e(9),a=document.createElement("div");n.default=function(o){var n,e,l,c=o;c=c||[],c.length>0&&!$.isArray(c[0])&&(c=[c]);for(var i,d="",s=0;s<c.length;s++)for(var r=0;r<c[s].length;r++){0===r&&(d+='<div class="actions-modal-group">');var f=c[s][r],u=f.label?"actions-modal-label":"actions-modal-button";f.bold&&(u+=" actions-modal-button-bold"),f.color&&(u+=" color-"+f.color),f.bg&&(u+=" bg-"+f.bg),f.disabled&&(u+=" disabled"),d+='<span class="'+u+'">'+f.text+"</span>",r===c[s].length-1&&(d+="</div>")}return i='<div class="actions-modal">'+d+"</div>",a.innerHTML=i,n=$(a).children(),$(t.defaults.modalContainer).append(n[0]),e=".actions-modal-group",l=".actions-modal-button",n.find(e).each(function(o,e){var a=o;$(e).children().each(function(o,e){var i,d=o,s=c[a][d];$(e).is(l)&&(i=$(e)),i&&i.on("click",function(o){!1!==s.close&&(0,t.closeModal)(n),s.onClick&&s.onClick(n,o)})})}),(0,t.openModal)(n),n[0]}}},[198])});
1
+ !function(o,n){"object"==typeof exports&&"object"==typeof module?module.exports=n():"function"==typeof define&&define.amd?define([],n):"object"==typeof exports?exports.fastman=n():o.fastman=n()}(this,function(){return webpackJsonpfastman([29],{197:function(o,n,e){o.exports=e(75)},75:function(o,n,e){"use strict";Object.defineProperty(n,"__esModule",{value:!0});var t=e(8),a=document.createElement("div");n.default=function(o){var n,e,l,c=o;c=c||[],c.length>0&&!$.isArray(c[0])&&(c=[c]);for(var i,d="",s=0;s<c.length;s++)for(var r=0;r<c[s].length;r++){0===r&&(d+='<div class="actions-modal-group">');var f=c[s][r],u=f.label?"actions-modal-label":"actions-modal-button";f.bold&&(u+=" actions-modal-button-bold"),f.color&&(u+=" color-"+f.color),f.bg&&(u+=" bg-"+f.bg),f.disabled&&(u+=" disabled"),d+='<span class="'+u+'">'+f.text+"</span>",r===c[s].length-1&&(d+="</div>")}return i='<div class="actions-modal">'+d+"</div>",a.innerHTML=i,n=$(a).children(),$(t.defaults.modalContainer).append(n[0]),e=".actions-modal-group",l=".actions-modal-button",n.find(e).each(function(o,e){var a=o;$(e).children().each(function(o,e){var i,d=o,s=c[a][d];$(e).is(l)&&(i=$(e)),i&&i.on("click",function(o){!1!==s.close&&(0,t.closeModal)(n),s.onClick&&s.onClick(n,o)})})}),(0,t.openModal)(n),n[0]}}},[197])});
package/alertman.d.ts CHANGED
@@ -28,11 +28,12 @@ export default function alert(text : string, allowClose ?: boolean) : void;
28
28
 
29
29
  /**
30
30
  * 声明式方式打开一个alert提示框
31
- * @param options 具体options参数请查看http://itest.dfzq.com.cn/document/fastman-v2/component/alert.html
31
+ * @param options 具体options参数请查看文档
32
32
  */
33
33
  export default function alert(options: {
34
34
  text: string,
35
35
  title?: string,
36
36
  onClick?: ()=>void,
37
- allowClose?: boolean
37
+ allowClose?: boolean,
38
+ modalButtonOk?: string
38
39
  }): void;
package/alertman.js CHANGED
@@ -1,10 +1 @@
1
- /*!
2
- * /*!
3
- * * ============================================================
4
- * *
5
- * * Orientsec fastman By ShenZhiWei - http://www.dfzq.com.cn/
6
- * *
7
- * * ============================================================
8
- *
9
- */
10
- !function(t,o){"object"==typeof exports&&"object"==typeof module?module.exports=o():"function"==typeof define&&define.amd?define([],o):"object"==typeof exports?exports.fastman=o():t.fastman=o()}(this,function(){return webpackJsonpfastman([28],{199:function(t,o,e){t.exports=e(80)},80:function(t,o,e){"use strict";Object.defineProperty(o,"__esModule",{value:!0});var n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},l=e(9);o.default=function(t,o,e,i){if("function"==typeof o)e=o,o=void 0;else if("object"===(void 0===t?"undefined":n(t))){var f=t.text,s=void 0===f?"":f,u=t.title,d=void 0===u?l.defaults.modalTitle:u,r=t.allowClose,a=void 0!==r&&r,c=t.onClick;return(0,l.modal)({text:s,title:d,buttons:[{text:l.defaults.modalButtonOk,bold:!0,onClick:c}],isClose:a,extraClass:"remove-on-close"})}return(0,l.modal)({text:t||"",title:void 0===o?l.defaults.modalTitle:o,buttons:[{text:l.defaults.modalButtonOk,bold:!0,onClick:e}],isClose:i||!1,extraClass:"remove-on-close"})}}},[199])});
1
+ !function(t,o){"object"==typeof exports&&"object"==typeof module?module.exports=o():"function"==typeof define&&define.amd?define([],o):"object"==typeof exports?exports.fastman=o():t.fastman=o()}(this,function(){return webpackJsonpfastman([28],{198:function(t,o,e){t.exports=e(76)},76:function(t,o,e){"use strict";Object.defineProperty(o,"__esModule",{value:!0});var n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},l=e(8);o.default=function(t,o,e,i){if("function"==typeof o)e=o,o=void 0;else if("object"===(void 0===t?"undefined":n(t))){var f=t.text,s=void 0===f?"":f,u=t.title,d=void 0===u?l.defaults.modalTitle:u,a=t.allowClose,r=void 0!==a&&a,c=t.onClick,m=t.modalButtonOk;return(0,l.modal)({text:s,title:d,buttons:[{text:m||l.defaults.modalButtonOk,bold:!0,onClick:c}],isClose:r,extraClass:"remove-on-close"})}return(0,l.modal)({text:t||"",title:void 0===o?l.defaults.modalTitle:o,buttons:[{text:l.defaults.modalButtonOk,bold:!0,onClick:e}],isClose:i||!1,extraClass:"remove-on-close"})}}},[198])});
@@ -0,0 +1,53 @@
1
+ /*
2
+ * @Author: shenzhiwei
3
+ * @Date: 2019-07-18 11:23:51
4
+ * @LastEditors: Please set LastEditors
5
+ * @LastEditTime: 2019-08-08 14:46:06
6
+ * @Description: 解决tsc编译不通过问题
7
+ */
8
+ export const container;
9
+ export const bind;
10
+ /**
11
+ * Decorator JsonProperty
12
+ */
13
+ export declare function JsonProperty(args?: string | {
14
+ name?: string;
15
+ type: Function;
16
+ } | {
17
+ name?: string;
18
+ predicate: Function;
19
+ }): Function;
20
+ /**
21
+ * Decorator Serializable
22
+ */
23
+ export declare function Serializable(baseClassName?: string): Function;
24
+ /**
25
+ * Function to deserialize json into a class
26
+ */
27
+ export declare function deserialize<T>(json: any, type: new (...params: Array<any>) => T): T;
28
+ /**
29
+ * Function to serialize a class into json
30
+ */
31
+ export declare function serialize(instance: any, removeUndefined?: boolean): any;
32
+ declare enum Type {
33
+ Array = "array",
34
+ Boolean = "boolean",
35
+ Date = "date",
36
+ Number = "number",
37
+ String = "string"
38
+ }
39
+ export default Type;
40
+
41
+ /**
42
+ * 注入接口的注入器
43
+ * @param interfaceName 接口名
44
+ */
45
+ export function inject(interfaceName: string);
46
+
47
+ export function injectable();
48
+
49
+ export function exportAction();
50
+
51
+ export function singleton();
52
+
53
+ export function action();