fastman2 0.0.38 → 0.0.40

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 (117) hide show
  1. package/.iversion +1 -1
  2. package/actionsheetman.d.ts +1 -1
  3. package/actionsheetman.js +1 -106
  4. package/alertman.d.ts +3 -2
  5. package/alertman.js +1 -85
  6. package/annotationman.js +17 -2609
  7. package/baseman.js +1 -125
  8. package/blankpageman.d.ts +1 -1
  9. package/blankpageman.js +1 -181
  10. package/bootstrap/index.d.ts +15 -4
  11. package/bootstrap/index.js +114 -16
  12. package/cascadepickerman.d.ts +1 -1
  13. package/cascadepickerman.js +1 -332
  14. package/confirmman.d.ts +1 -1
  15. package/confirmman.js +1 -94
  16. package/coreman.js +3 -1998
  17. package/cryptoman.js +7 -7577
  18. package/datetimepickerman.d.ts +5 -4
  19. package/datetimepickerman.js +1 -190
  20. package/domman.js +1 -2702
  21. package/eventemitterman.js +1 -122
  22. package/fileuploadman.d.ts +1 -1
  23. package/fileuploadman.js +1 -2920
  24. package/formvalidateman.d.ts +2 -2
  25. package/formvalidateman.js +1 -345
  26. package/jsbridgeGJman.js +1 -0
  27. package/jsbridgeman.d.ts +9 -0
  28. package/jsbridgeman.js +1 -612
  29. package/lazyloadman.js +1 -143
  30. package/loadingman.d.ts +4 -1
  31. package/loadingman.js +1 -62
  32. package/modalman.js +1 -274
  33. package/model/index.js +1 -1
  34. package/mutation/index.js +1 -2
  35. package/mutationobserverman.js +1 -366
  36. package/package.json +1 -1
  37. package/passguardman.d.ts +1 -1
  38. package/passguardman.js +1 -1727
  39. package/persistman.js +1 -70
  40. package/pickerman.d.ts +1 -1
  41. package/pickerman.js +1 -690
  42. package/popupman.js +1 -71
  43. package/postman.js +1 -1405
  44. package/preloadman.js +2 -8754
  45. package/resultpageman.js +1 -162
  46. package/routerman.js +1 -1138
  47. package/scrollman-infiniteRefresh.js +1 -127
  48. package/scrollman-pullDownRefresh.js +1 -312
  49. package/scrollman.js +2 -2577
  50. package/storeman.js +1 -559
  51. package/styles/fastman-UIdesign-passGuard.js +1 -1
  52. package/styles/fastman-UIdesign.js +1 -1
  53. package/swiperman.js +1 -4711
  54. package/swiperoldman.js +1 -3014
  55. package/tabman.js +1 -155
  56. package/tipman.d.ts +1 -1
  57. package/tipman.js +1 -120
  58. package/toastman.d.ts +1 -1
  59. package/toastman.js +1 -88
  60. package/toolman.js +1 -32
  61. package/view/index.jsx +1 -0
  62. package/webpackJsonp.js +0 -9
  63. package/whenman.js +1 -784
  64. package/wsman.js +1 -8287
  65. package/actionsheetman.js.map +0 -1
  66. package/alertman.js.map +0 -1
  67. package/annotationman.js.map +0 -1
  68. package/baseman.js.map +0 -1
  69. package/blankpageman.js.map +0 -1
  70. package/cascadepickerman.js.map +0 -1
  71. package/confirmman.js.map +0 -1
  72. package/coreman.js.map +0 -1
  73. package/cryptoman.js.map +0 -1
  74. package/datetimepickerman.js.map +0 -1
  75. package/domman.js.map +0 -1
  76. package/eventemitterman.js.map +0 -1
  77. package/formvalidateman.js.map +0 -1
  78. package/lazyloadman.js.map +0 -1
  79. package/loadingman.js.map +0 -1
  80. package/modalman.js.map +0 -1
  81. package/mutationobserverman.js.map +0 -1
  82. package/persistman.js.map +0 -1
  83. package/pickerman.js.map +0 -1
  84. package/popupman.js.map +0 -1
  85. package/postman.js.map +0 -1
  86. package/resultpageman.js.map +0 -1
  87. package/routerman.js.map +0 -1
  88. package/scrollman-infiniteRefresh.js.map +0 -1
  89. package/scrollman-pullDownRefresh.js.map +0 -1
  90. package/scrollman.js.map +0 -1
  91. package/storeman.js.map +0 -1
  92. package/tabman.js.map +0 -1
  93. package/third-jsbridge/dfzq-jsbridge-1.0.js +0 -844
  94. package/third-jsbridge/dfzq-jsbridge-1.0.js.map +0 -1
  95. package/third-jsbridge/dfzq-jsbridge-1.1.js +0 -843
  96. package/third-jsbridge/dfzq-jsbridge-1.1.js.map +0 -1
  97. package/third-jsbridge/dfzq-jsbridge-1.2.js +0 -991
  98. package/third-jsbridge/dfzq-jsbridge-1.2.js.map +0 -1
  99. package/third-jsbridge/dfzq-jsbridge-1.3.js +0 -1006
  100. package/third-jsbridge/dfzq-jsbridge-1.3.js.map +0 -1
  101. package/third-jsbridge/dfzq-jsbridge-1.4.js +0 -1077
  102. package/third-jsbridge/dfzq-jsbridge-1.4.js.map +0 -1
  103. package/third-jsbridge/dfzq-jsbridge-1.5.js +0 -1102
  104. package/third-jsbridge/dfzq-jsbridge-1.5.js.map +0 -1
  105. package/third-jsbridge/dfzq-jsbridge-1.6.js +0 -1148
  106. package/third-jsbridge/dfzq-jsbridge-1.6.js.map +0 -1
  107. package/third-jsbridge/jsbridgeman.js +0 -609
  108. package/third-jsbridge/jsbridgeman.js.map +0 -1
  109. package/third-jsbridge/tools.js +0 -419
  110. package/third-jsbridge/tools.js.map +0 -1
  111. package/third-jsbridge/wxPay.js +0 -269
  112. package/third-jsbridge/wxPay.js.map +0 -1
  113. package/tipman.js.map +0 -1
  114. package/toastman.js.map +0 -1
  115. package/toolman.js.map +0 -1
  116. package/whenman.js.map +0 -1
  117. package/wsman.js.map +0 -1
package/.iversion CHANGED
@@ -1 +1 @@
1
- 0.0.37
1
+ 0.0.39
@@ -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,106 +1 @@
1
- /*!
2
- * /*!
3
- * * ============================================================
4
- * *
5
- * * Orientsec fastman By ShenZhiWei - http://www.dfzq.com.cn/
6
- * *
7
- * * ============================================================
8
- *
9
- */
10
- (function webpackUniversalModuleDefinition(root, factory) {
11
- if(typeof exports === 'object' && typeof module === 'object')
12
- module.exports = factory();
13
- else if(typeof define === 'function' && define.amd)
14
- define([], factory);
15
- else if(typeof exports === 'object')
16
- exports["fastman"] = factory();
17
- else
18
- root["fastman"] = factory();
19
- })(this, function() {
20
- return webpackJsonpfastman([30],{
21
-
22
- /***/ 199:
23
- /***/ (function(module, exports, __webpack_require__) {
24
-
25
- module.exports = __webpack_require__(77);
26
-
27
-
28
- /***/ }),
29
-
30
- /***/ 77:
31
- /***/ (function(module, exports, __webpack_require__) {
32
-
33
- "use strict";
34
-
35
-
36
- Object.defineProperty(exports, "__esModule", {
37
- value: true
38
- });
39
-
40
- var _modal = __webpack_require__(11);
41
-
42
- var _modalTemplateTempDiv = document.createElement('div');
43
-
44
- // 从下往上需要在Element上添加"actions-modal"样式
45
- /**
46
- * Created by dfzq on 2017/3/21.
47
- */
48
-
49
- exports.default = function (buttons) {
50
- var params = buttons;
51
-
52
- var modal, groupSelector, buttonSelector;
53
- params = params || [];
54
-
55
- if (params.length > 0 && !$.isArray(params[0])) {
56
- params = [params];
57
- }
58
- var modalHTML;
59
- var buttonsHTML = '';
60
- for (var i = 0; i < params.length; i++) {
61
- for (var j = 0; j < params[i].length; j++) {
62
- if (j === 0) buttonsHTML += '<div class="actions-modal-group">';
63
- var button = params[i][j];
64
- var buttonClass = button.label ? 'actions-modal-label' : 'actions-modal-button';
65
- if (button.bold) buttonClass += ' actions-modal-button-bold';
66
- if (button.color) buttonClass += ' color-' + button.color;
67
- if (button.bg) buttonClass += ' bg-' + button.bg;
68
- if (button.disabled) buttonClass += ' disabled';
69
- buttonsHTML += '<span class="' + buttonClass + '">' + button.text + '</span>';
70
- if (j === params[i].length - 1) buttonsHTML += '</div>';
71
- }
72
- }
73
- modalHTML = '<div class="actions-modal">' + buttonsHTML + '</div>';
74
- _modalTemplateTempDiv.innerHTML = modalHTML;
75
- modal = $(_modalTemplateTempDiv).children();
76
- $(_modal.defaults.modalContainer).append(modal[0]);
77
- groupSelector = '.actions-modal-group';
78
- buttonSelector = '.actions-modal-button';
79
-
80
- var groups = modal.find(groupSelector);
81
- groups.each(function (index, el) {
82
- var groupIndex = index;
83
- $(el).children().each(function (index, el) {
84
- var buttonIndex = index;
85
- var buttonParams = params[groupIndex][buttonIndex];
86
- var clickTarget;
87
- if ($(el).is(buttonSelector)) clickTarget = $(el);
88
- // if (toPopover && $(el).find(buttonSelector).length > 0) clickTarget = $(el).find(buttonSelector);
89
-
90
- if (clickTarget) {
91
- clickTarget.on('click', function (e) {
92
- if (buttonParams.close !== false) (0, _modal.closeModal)(modal);
93
- if (buttonParams.onClick) buttonParams.onClick(modal, e);
94
- });
95
- }
96
- });
97
- });
98
- (0, _modal.openModal)(modal);
99
- return modal[0];
100
- };
101
-
102
- /***/ })
103
-
104
- },[199]);
105
- });
106
- //# sourceMappingURL=actionsheetman.js.map
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([30],{214:function(o,n,e){o.exports=e(82)},82:function(o,n,e){"use strict";Object.defineProperty(n,"__esModule",{value:!0});var t=e(10),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]}}},[214])});
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,85 +1 @@
1
- /*!
2
- * /*!
3
- * * ============================================================
4
- * *
5
- * * Orientsec fastman By ShenZhiWei - http://www.dfzq.com.cn/
6
- * *
7
- * * ============================================================
8
- *
9
- */
10
- (function webpackUniversalModuleDefinition(root, factory) {
11
- if(typeof exports === 'object' && typeof module === 'object')
12
- module.exports = factory();
13
- else if(typeof define === 'function' && define.amd)
14
- define([], factory);
15
- else if(typeof exports === 'object')
16
- exports["fastman"] = factory();
17
- else
18
- root["fastman"] = factory();
19
- })(this, function() {
20
- return webpackJsonpfastman([29],{
21
-
22
- /***/ 200:
23
- /***/ (function(module, exports, __webpack_require__) {
24
-
25
- module.exports = __webpack_require__(78);
26
-
27
-
28
- /***/ }),
29
-
30
- /***/ 78:
31
- /***/ (function(module, exports, __webpack_require__) {
32
-
33
- "use strict";
34
-
35
-
36
- Object.defineProperty(exports, "__esModule", {
37
- value: true
38
- });
39
-
40
- var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; /**
41
- * Created by linyiqing on 2017/3/21.
42
- */
43
-
44
-
45
- var _modal = __webpack_require__(11);
46
-
47
- exports.default = function (_text, title, callbackOk, allowClose) {
48
- // 表达式声明
49
- if (typeof title === 'function') {
50
- callbackOk = title;
51
- title = undefined;
52
- }
53
- // 函数对象式声明
54
- else if ((typeof _text === 'undefined' ? 'undefined' : _typeof(_text)) === 'object') {
55
- var _text$text = _text.text,
56
- text = _text$text === undefined ? '' : _text$text,
57
- _text$title = _text.title,
58
- _title = _text$title === undefined ? _modal.defaults.modalTitle : _text$title,
59
- _text$allowClose = _text.allowClose,
60
- _allowClose = _text$allowClose === undefined ? false : _text$allowClose,
61
- onClick = _text.onClick;
62
-
63
- return (0, _modal.modal)({
64
- text: text,
65
- title: _title,
66
- buttons: [{ text: _modal.defaults.modalButtonOk, bold: true, onClick: onClick }],
67
- isClose: _allowClose,
68
- extraClass: 'remove-on-close'
69
- });
70
- }
71
-
72
- return (0, _modal.modal)({
73
- text: _text || '',
74
- title: typeof title === 'undefined' ? _modal.defaults.modalTitle : title,
75
- buttons: [{ text: _modal.defaults.modalButtonOk, bold: true, onClick: callbackOk }],
76
- isClose: allowClose || false,
77
- extraClass: 'remove-on-close'
78
- });
79
- };
80
-
81
- /***/ })
82
-
83
- },[200]);
84
- });
85
- //# sourceMappingURL=alertman.js.map
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([29],{215:function(t,o,e){t.exports=e(83)},83: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(10);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"})}}},[215])});