@king-design/intact 2.0.10 → 2.0.12
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/components/cascader/styles.ts +1 -1
- package/components/dialog/demos/block.md +4 -4
- package/components/dialog/useEscClosable.ts +1 -1
- package/components/form/demos/basic.md +1 -1
- package/components/form/index.md +7 -4
- package/components/form/methods.ts +2 -1
- package/components/table/table.ts +0 -1
- package/components/table/useResizeObserver.ts +22 -0
- package/components/table/useStickyScrollbar.ts +2 -8
- package/components/table/useWidth.ts +4 -18
- package/es/components/cascader/styles.js +1 -1
- package/es/components/dialog/useEscClosable.js +1 -1
- package/es/components/form/methods.d.ts +2 -1
- package/es/components/table/table.js +1 -1
- package/es/components/table/useResizeObserver.d.ts +2 -0
- package/es/components/table/useResizeObserver.js +20 -0
- package/es/components/table/useStickyScrollbar.d.ts +1 -1
- package/es/components/table/useStickyScrollbar.js +4 -9
- package/es/components/table/useWidth.js +5 -15
- package/es/index.d.ts +2 -2
- package/es/index.js +2 -2
- package/es/packages/kpc-react/__tests__/components/drawer.spec.js +43 -20
- package/es/site/data/components/dialog/demos/block/react.js +4 -4
- package/index.ts +2 -2
- package/package.json +3 -3
- package/dist/fonts/ionicons.eot +0 -0
- package/dist/fonts/ionicons.svg +0 -2230
- package/dist/fonts/ionicons.ttf +0 -0
- package/dist/fonts/ionicons.woff +0 -0
- package/dist/i18n/en-US.js +0 -218
- package/dist/i18n/en-US.min.js +0 -1
- package/dist/kpc.css +0 -3
- package/dist/kpc.js +0 -39860
- package/dist/kpc.min.js +0 -1
- package/dist/kpc.react.js +0 -90483
- package/dist/kpc.react.min.js +0 -1
- package/dist/kpc.vue.js +0 -48096
- package/dist/kpc.vue.min.js +0 -1
- package/dist/ksyun.css +0 -3
package/dist/fonts/ionicons.ttf
DELETED
|
Binary file
|
package/dist/fonts/ionicons.woff
DELETED
|
Binary file
|
package/dist/i18n/en-US.js
DELETED
|
@@ -1,218 +0,0 @@
|
|
|
1
|
-
(function webpackUniversalModuleDefinition(root, factory) {
|
|
2
|
-
if(typeof exports === 'object' && typeof module === 'object')
|
|
3
|
-
module.exports = factory();
|
|
4
|
-
else if(typeof define === 'function' && define.amd)
|
|
5
|
-
define([], factory);
|
|
6
|
-
else if(typeof exports === 'object')
|
|
7
|
-
exports["i18n"] = factory();
|
|
8
|
-
else
|
|
9
|
-
root["i18n"] = factory();
|
|
10
|
-
})(typeof self !== 'undefined' ? self : this, function() {
|
|
11
|
-
return /******/ (function(modules) { // webpackBootstrap
|
|
12
|
-
/******/ // The module cache
|
|
13
|
-
/******/ var installedModules = {};
|
|
14
|
-
/******/
|
|
15
|
-
/******/ // The require function
|
|
16
|
-
/******/ function __webpack_require__(moduleId) {
|
|
17
|
-
/******/
|
|
18
|
-
/******/ // Check if module is in cache
|
|
19
|
-
/******/ if(installedModules[moduleId]) {
|
|
20
|
-
/******/ return installedModules[moduleId].exports;
|
|
21
|
-
/******/ }
|
|
22
|
-
/******/ // Create a new module (and put it into the cache)
|
|
23
|
-
/******/ var module = installedModules[moduleId] = {
|
|
24
|
-
/******/ i: moduleId,
|
|
25
|
-
/******/ l: false,
|
|
26
|
-
/******/ exports: {}
|
|
27
|
-
/******/ };
|
|
28
|
-
/******/
|
|
29
|
-
/******/ // Execute the module function
|
|
30
|
-
/******/ modules[moduleId].call(module.exports, module, module.exports, __webpack_require__);
|
|
31
|
-
/******/
|
|
32
|
-
/******/ // Flag the module as loaded
|
|
33
|
-
/******/ module.l = true;
|
|
34
|
-
/******/
|
|
35
|
-
/******/ // Return the exports of the module
|
|
36
|
-
/******/ return module.exports;
|
|
37
|
-
/******/ }
|
|
38
|
-
/******/
|
|
39
|
-
/******/
|
|
40
|
-
/******/ // expose the modules object (__webpack_modules__)
|
|
41
|
-
/******/ __webpack_require__.m = modules;
|
|
42
|
-
/******/
|
|
43
|
-
/******/ // expose the module cache
|
|
44
|
-
/******/ __webpack_require__.c = installedModules;
|
|
45
|
-
/******/
|
|
46
|
-
/******/ // define getter function for harmony exports
|
|
47
|
-
/******/ __webpack_require__.d = function(exports, name, getter) {
|
|
48
|
-
/******/ if(!__webpack_require__.o(exports, name)) {
|
|
49
|
-
/******/ Object.defineProperty(exports, name, {
|
|
50
|
-
/******/ configurable: false,
|
|
51
|
-
/******/ enumerable: true,
|
|
52
|
-
/******/ get: getter
|
|
53
|
-
/******/ });
|
|
54
|
-
/******/ }
|
|
55
|
-
/******/ };
|
|
56
|
-
/******/
|
|
57
|
-
/******/ // getDefaultExport function for compatibility with non-harmony modules
|
|
58
|
-
/******/ __webpack_require__.n = function(module) {
|
|
59
|
-
/******/ var getter = module && module.__esModule ?
|
|
60
|
-
/******/ function getDefault() { return module['default']; } :
|
|
61
|
-
/******/ function getModuleExports() { return module; };
|
|
62
|
-
/******/ __webpack_require__.d(getter, 'a', getter);
|
|
63
|
-
/******/ return getter;
|
|
64
|
-
/******/ };
|
|
65
|
-
/******/
|
|
66
|
-
/******/ // Object.prototype.hasOwnProperty.call
|
|
67
|
-
/******/ __webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); };
|
|
68
|
-
/******/
|
|
69
|
-
/******/ // __webpack_public_path__
|
|
70
|
-
/******/ __webpack_require__.p = "";
|
|
71
|
-
/******/
|
|
72
|
-
/******/ // Load entry module and return exports
|
|
73
|
-
/******/ return __webpack_require__(__webpack_require__.s = 0);
|
|
74
|
-
/******/ })
|
|
75
|
-
/************************************************************************/
|
|
76
|
-
/******/ ([
|
|
77
|
-
/* 0 */
|
|
78
|
-
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
79
|
-
|
|
80
|
-
"use strict";
|
|
81
|
-
Object.defineProperty(__webpack_exports__, "__esModule", { value: true });
|
|
82
|
-
/* WEBPACK VAR INJECTION */(function(global) {var i18n = {
|
|
83
|
-
// datepicker
|
|
84
|
-
'yearMonthFormat': 'MM YYYY',
|
|
85
|
-
'请选择日期和时间': 'Please select date and time',
|
|
86
|
-
'请选择日期': 'Please select date',
|
|
87
|
-
'开始时间 ~ 结束时间': 'Begin time ~ End time',
|
|
88
|
-
'开始日期 ~ 结束日期': 'Begin date ~ End date',
|
|
89
|
-
'请选择年份': 'Please select year',
|
|
90
|
-
'请选择月份': 'Please select month',
|
|
91
|
-
'1月': 'Jan',
|
|
92
|
-
'2月': 'Feb',
|
|
93
|
-
'3月': 'Mar',
|
|
94
|
-
'4月': 'Apr',
|
|
95
|
-
'5月': 'May',
|
|
96
|
-
'6月': 'Jun',
|
|
97
|
-
'7月': 'Jul',
|
|
98
|
-
'8月': 'Aug',
|
|
99
|
-
'9月': 'Sep',
|
|
100
|
-
'10月': 'Oct',
|
|
101
|
-
'11月': 'Nov',
|
|
102
|
-
'12月': 'Dec',
|
|
103
|
-
'日': 'Sun',
|
|
104
|
-
'一': 'Mon',
|
|
105
|
-
'二': 'Tue',
|
|
106
|
-
'三': 'Wed',
|
|
107
|
-
'四': 'Thu',
|
|
108
|
-
'五': 'Fri',
|
|
109
|
-
'六': 'Sat',
|
|
110
|
-
'{n}年': '{n}',
|
|
111
|
-
'今天': 'Today',
|
|
112
|
-
'昨天': 'Yesterday',
|
|
113
|
-
'明天': 'Tomorrow',
|
|
114
|
-
'一周后': 'After one week',
|
|
115
|
-
'一月后': 'After one month',
|
|
116
|
-
'三月后': 'After three months',
|
|
117
|
-
'一周前': 'Before one week',
|
|
118
|
-
'一月前': 'Before one month',
|
|
119
|
-
'三月前': 'Before three months',
|
|
120
|
-
'上一周': 'Last week',
|
|
121
|
-
'下一周': 'Next week',
|
|
122
|
-
'上一个月': 'Last month',
|
|
123
|
-
'下一个月': 'Next month',
|
|
124
|
-
'前三个月': 'Last three months',
|
|
125
|
-
'后三个月': 'Next three months',
|
|
126
|
-
// timepicker
|
|
127
|
-
'请选择时间': 'Please select time',
|
|
128
|
-
'开始时间': 'Begin Time',
|
|
129
|
-
'结束时间': 'End Time',
|
|
130
|
-
// dialog
|
|
131
|
-
'提示': 'Tip',
|
|
132
|
-
'确定': 'OK',
|
|
133
|
-
'取消': 'Cancel',
|
|
134
|
-
'关闭': 'Close',
|
|
135
|
-
// editable
|
|
136
|
-
'编辑': 'Edit',
|
|
137
|
-
// validator
|
|
138
|
-
'必须填写': 'This field is required.',
|
|
139
|
-
'请输入数字': 'Please enter only digits.',
|
|
140
|
-
'请输入正确的邮箱地址': 'Please enter a valid email address.',
|
|
141
|
-
'请输入正确的网址': 'Please enter a valid URL.',
|
|
142
|
-
'请输入正确的日期': 'Please enter a valid date.',
|
|
143
|
-
'请输入正确的日期 (YYYY-MM-DD)': 'Please enter a valid date (ISO).',
|
|
144
|
-
'请输入正确的数': 'Please enter a valid number.',
|
|
145
|
-
'请输入不大于 {n} 的数': 'Please enter a value less than or equal to {n}.',
|
|
146
|
-
'请输入不小于 {n} 的数': 'Please enter a value greater than or equal to {n}.',
|
|
147
|
-
'请输入 {n[0]} 到 {n[1]} 之间的数': 'Please enter a value between {n[0]} and {n[1]}.',
|
|
148
|
-
'请输入步长为 {n} 的数': 'Please enter a number which should be a multipe of {n}',
|
|
149
|
-
'两次输入不一致': 'Please enter the same value again.',
|
|
150
|
-
'两': '2',
|
|
151
|
-
'最多选择 {n} 项': 'Please select no more than {n} item{s:n}.',
|
|
152
|
-
'最多输入 {n} 个字符': 'Please enter no more than {n} character{s:n}.',
|
|
153
|
-
'最少选择 {n} 项': 'Please select at least {n} item{s:n}.',
|
|
154
|
-
'最少输入 {n} 个字符': 'Please enter at least {n} character{s:n}.',
|
|
155
|
-
'请选择 {n} 到 {m} 项': 'Please select {n}~{m} item{s:m}.',
|
|
156
|
-
'请输入 {n} 到 {m} 个字符': 'Please enter {n}~{m} character{s:m}.',
|
|
157
|
-
// pagination
|
|
158
|
-
'{n} 条 / 页': '{n} / page',
|
|
159
|
-
'跳至': 'Goto',
|
|
160
|
-
'页': '',
|
|
161
|
-
'共 {n} 条': 'Total {n}',
|
|
162
|
-
// table
|
|
163
|
-
'/(ㄒoㄒ)/~~ 没有找到亲要的数据哦~': '/(ㄒoㄒ)/~~ No data to display.',
|
|
164
|
-
// transfer
|
|
165
|
-
'请输入': 'Please enter',
|
|
166
|
-
'请选择': 'Please select',
|
|
167
|
-
'已选择': 'Selected',
|
|
168
|
-
'全选': 'Select all',
|
|
169
|
-
'清空': 'Clear all',
|
|
170
|
-
// select
|
|
171
|
-
'请输入或选择': 'Please enter or select',
|
|
172
|
-
// upload
|
|
173
|
-
'点击上传': 'Click to Upload',
|
|
174
|
-
'将文件拖到此处,或点击上传': 'Drag file to this area or click to upload',
|
|
175
|
-
'查看图片': 'View Image',
|
|
176
|
-
'超出文件数量最大限制:{limit}': 'Exceed the maximum limit of the number of files: {limit}',
|
|
177
|
-
'"{name}" 超出文件最大限制:{maxSize}kb': '"{name}" exceeds the maximum size of file: {maxSize}kb',
|
|
178
|
-
'"{name}" 文件类型不合法': '"{name}" invalid file type',
|
|
179
|
-
// search
|
|
180
|
-
'请输入关键字': 'Please enter keywords'
|
|
181
|
-
};
|
|
182
|
-
/* harmony default export */ __webpack_exports__["default"] = (i18n);
|
|
183
|
-
|
|
184
|
-
if (typeof global.Kpc !== 'undefined') {
|
|
185
|
-
Kpc.utils.localize(i18n);
|
|
186
|
-
}
|
|
187
|
-
/* WEBPACK VAR INJECTION */}.call(__webpack_exports__, __webpack_require__(1)))
|
|
188
|
-
|
|
189
|
-
/***/ }),
|
|
190
|
-
/* 1 */
|
|
191
|
-
/***/ (function(module, exports) {
|
|
192
|
-
|
|
193
|
-
var g;
|
|
194
|
-
|
|
195
|
-
// This works in non-strict mode
|
|
196
|
-
g = (function() {
|
|
197
|
-
return this;
|
|
198
|
-
})();
|
|
199
|
-
|
|
200
|
-
try {
|
|
201
|
-
// This works if eval is allowed (see CSP)
|
|
202
|
-
g = g || Function("return this")() || (1,eval)("this");
|
|
203
|
-
} catch(e) {
|
|
204
|
-
// This works if the window reference is available
|
|
205
|
-
if(typeof window === "object")
|
|
206
|
-
g = window;
|
|
207
|
-
}
|
|
208
|
-
|
|
209
|
-
// g can still be undefined, but nothing to do about it...
|
|
210
|
-
// We return undefined, instead of nothing here, so it's
|
|
211
|
-
// easier to handle this case. if(!global) { ...}
|
|
212
|
-
|
|
213
|
-
module.exports = g;
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
/***/ })
|
|
217
|
-
/******/ ]);
|
|
218
|
-
});
|
package/dist/i18n/en-US.min.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports.i18n=t():e.i18n=t()}("undefined"!=typeof self?self:this,function(){return function(n){var a={};function r(e){if(a[e])return a[e].exports;var t=a[e]={i:e,l:!1,exports:{}};return n[e].call(t.exports,t,t.exports,r),t.l=!0,t.exports}return r.m=n,r.c=a,r.d=function(e,t,n){r.o(e,t)||Object.defineProperty(e,t,{configurable:!1,enumerable:!0,get:n})},r.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return r.d(t,"a",t),t},r.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},r.p="",r(r.s=0)}([function(e,n,t){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),function(e){var t={yearMonthFormat:"MM YYYY","请选择日期和时间":"Please select date and time","请选择日期":"Please select date","开始时间 ~ 结束时间":"Begin time ~ End time","开始日期 ~ 结束日期":"Begin date ~ End date","请选择年份":"Please select year","请选择月份":"Please select month","1月":"Jan","2月":"Feb","3月":"Mar","4月":"Apr","5月":"May","6月":"Jun","7月":"Jul","8月":"Aug","9月":"Sep","10月":"Oct","11月":"Nov","12月":"Dec","日":"Sun","一":"Mon","二":"Tue","三":"Wed","四":"Thu","五":"Fri","六":"Sat","{n}年":"{n}","今天":"Today","昨天":"Yesterday","明天":"Tomorrow","一周后":"After one week","一月后":"After one month","三月后":"After three months","一周前":"Before one week","一月前":"Before one month","三月前":"Before three months","上一周":"Last week","下一周":"Next week","上一个月":"Last month","下一个月":"Next month","前三个月":"Last three months","后三个月":"Next three months","请选择时间":"Please select time","开始时间":"Begin Time","结束时间":"End Time","提示":"Tip","确定":"OK","取消":"Cancel","关闭":"Close","编辑":"Edit","必须填写":"This field is required.","请输入数字":"Please enter only digits.","请输入正确的邮箱地址":"Please enter a valid email address.","请输入正确的网址":"Please enter a valid URL.","请输入正确的日期":"Please enter a valid date.","请输入正确的日期 (YYYY-MM-DD)":"Please enter a valid date (ISO).","请输入正确的数":"Please enter a valid number.","请输入不大于 {n} 的数":"Please enter a value less than or equal to {n}.","请输入不小于 {n} 的数":"Please enter a value greater than or equal to {n}.","请输入 {n[0]} 到 {n[1]} 之间的数":"Please enter a value between {n[0]} and {n[1]}.","请输入步长为 {n} 的数":"Please enter a number which should be a multipe of {n}","两次输入不一致":"Please enter the same value again.","两":"2","最多选择 {n} 项":"Please select no more than {n} item{s:n}.","最多输入 {n} 个字符":"Please enter no more than {n} character{s:n}.","最少选择 {n} 项":"Please select at least {n} item{s:n}.","最少输入 {n} 个字符":"Please enter at least {n} character{s:n}.","请选择 {n} 到 {m} 项":"Please select {n}~{m} item{s:m}.","请输入 {n} 到 {m} 个字符":"Please enter {n}~{m} character{s:m}.","{n} 条 / 页":"{n} / page","跳至":"Goto","页":"","共 {n} 条":"Total {n}","/(ㄒoㄒ)/~~ 没有找到亲要的数据哦~":"/(ㄒoㄒ)/~~ No data to display.","请输入":"Please enter","请选择":"Please select","已选择":"Selected","全选":"Select all","清空":"Clear all","请输入或选择":"Please enter or select","点击上传":"Click to Upload","将文件拖到此处,或点击上传":"Drag file to this area or click to upload","查看图片":"View Image","超出文件数量最大限制:{limit}":"Exceed the maximum limit of the number of files: {limit}",'"{name}" 超出文件最大限制:{maxSize}kb':'"{name}" exceeds the maximum size of file: {maxSize}kb','"{name}" 文件类型不合法':'"{name}" invalid file type',"请输入关键字":"Please enter keywords"};n.default=t,void 0!==e.Kpc&&Kpc.utils.localize(t)}.call(n,t(1))},function(w,x){var y;y=function(){return this}();try{y=y||Function("return this")()||eval("this")}catch(e){"object"==typeof window&&(y=window)}w.exports=y}])});
|