@kne/react-filter 0.1.27 → 1.0.0
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/README.md +1492 -316
- package/dist/index.css +703 -59
- package/dist/index.css.map +1 -1
- package/dist/index.js +2247 -897
- package/dist/index.js.map +1 -1
- package/dist/index.modern.js +2186 -835
- package/dist/index.modern.js.map +1 -1
- package/dist/locale/en-US.js +31 -0
- package/dist/locale/en-US.js.map +1 -0
- package/dist/locale/en-US.modern.js +31 -0
- package/dist/locale/en-US.modern.js.map +1 -0
- package/dist/locale/react-filter.js +65 -0
- package/dist/locale/react-filter.js.map +1 -0
- package/dist/locale/react-filter.modern.js +65 -0
- package/dist/locale/react-filter.modern.js.map +1 -0
- package/dist/locale/zh-CN.js +31 -0
- package/dist/locale/zh-CN.js.map +1 -0
- package/dist/locale/zh-CN.modern.js +31 -0
- package/dist/locale/zh-CN.modern.js.map +1 -0
- package/package.json +56 -37
- package/LICENSE +0 -21
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
const message = {
|
|
2
|
+
filterText: 'Filter',
|
|
3
|
+
moreText: 'More',
|
|
4
|
+
selectedText: 'Selected',
|
|
5
|
+
clearAllText: 'Clear All',
|
|
6
|
+
toggleUpText: 'Pack Up',
|
|
7
|
+
selectedTextAdvanced: 'Selected',
|
|
8
|
+
clearText: 'Clear Filter',
|
|
9
|
+
otherText: 'Other',
|
|
10
|
+
cancelText: 'Cancel',
|
|
11
|
+
determineText: 'Determine',
|
|
12
|
+
year: 'year',
|
|
13
|
+
over: 'over {count} {unit}s',
|
|
14
|
+
lessThan: 'less than {count} {unit}s',
|
|
15
|
+
inputPlaceholder: 'Please enter {label}',
|
|
16
|
+
pleaseInput: 'Please enter ',
|
|
17
|
+
defaultInputPlaceholder: 'Please enter {label}',
|
|
18
|
+
maxSelectedCount: 'Select up to {count} items',
|
|
19
|
+
customTime: 'Custom Time',
|
|
20
|
+
monthly: 'Monthly',
|
|
21
|
+
weekly: 'Weekly',
|
|
22
|
+
last7Days: 'Last 7 Days',
|
|
23
|
+
thisMonth: 'This Month',
|
|
24
|
+
last3Months: 'Last 3 Months',
|
|
25
|
+
thisYear: 'Year to Date',
|
|
26
|
+
fullYear: 'Full Year',
|
|
27
|
+
pleaseSelect: 'Please Select'
|
|
28
|
+
};
|
|
29
|
+
|
|
30
|
+
export { message as default };
|
|
31
|
+
//# sourceMappingURL=en-US.modern.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"en-US.modern.js","sources":["../../src/locale/en-US.js"],"sourcesContent":["const message = {\n filterText: 'Filter',\n moreText: 'More',\n selectedText: 'Selected',\n clearAllText: 'Clear All',\n toggleUpText: 'Pack Up',\n selectedTextAdvanced: 'Selected',\n clearText: 'Clear Filter',\n otherText: 'Other',\n cancelText: 'Cancel',\n determineText: 'Determine',\n year: 'year',\n over: 'over {count} {unit}s',\n lessThan: 'less than {count} {unit}s',\n inputPlaceholder: 'Please enter {label}',\n pleaseInput: 'Please enter ',\n defaultInputPlaceholder: 'Please enter {label}',\n maxSelectedCount: 'Select up to {count} items',\n customTime: 'Custom Time',\n monthly: 'Monthly',\n weekly: 'Weekly',\n last7Days: 'Last 7 Days',\n thisMonth: 'This Month',\n last3Months: 'Last 3 Months',\n thisYear: 'Year to Date',\n fullYear: 'Full Year',\n pleaseSelect: 'Please Select'\n};\n\nexport default message;\n"],"names":["message","filterText","moreText","selectedText","clearAllText","toggleUpText","selectedTextAdvanced","clearText","otherText","cancelText","determineText","year","over","lessThan","inputPlaceholder","pleaseInput","defaultInputPlaceholder","maxSelectedCount","customTime","monthly","weekly","last7Days","thisMonth","last3Months","thisYear","fullYear","pleaseSelect"],"mappings":"AAAA,MAAMA,OAAO,GAAG;AACdC,EAAAA,UAAU,EAAE,QAAQ;AACpBC,EAAAA,QAAQ,EAAE,MAAM;AAChBC,EAAAA,YAAY,EAAE,UAAU;AACxBC,EAAAA,YAAY,EAAE,WAAW;AACzBC,EAAAA,YAAY,EAAE,SAAS;AACvBC,EAAAA,oBAAoB,EAAE,UAAU;AAChCC,EAAAA,SAAS,EAAE,cAAc;AACzBC,EAAAA,SAAS,EAAE,OAAO;AAClBC,EAAAA,UAAU,EAAE,QAAQ;AACpBC,EAAAA,aAAa,EAAE,WAAW;AAC1BC,EAAAA,IAAI,EAAE,MAAM;AACZC,EAAAA,IAAI,EAAE,sBAAsB;AAC5BC,EAAAA,QAAQ,EAAE,2BAA2B;AACrCC,EAAAA,gBAAgB,EAAE,sBAAsB;AACxCC,EAAAA,WAAW,EAAE,eAAe;AAC5BC,EAAAA,uBAAuB,EAAE,sBAAsB;AAC/CC,EAAAA,gBAAgB,EAAE,4BAA4B;AAC9CC,EAAAA,UAAU,EAAE,aAAa;AACzBC,EAAAA,OAAO,EAAE,SAAS;AAClBC,EAAAA,MAAM,EAAE,QAAQ;AAChBC,EAAAA,SAAS,EAAE,aAAa;AACxBC,EAAAA,SAAS,EAAE,YAAY;AACvBC,EAAAA,WAAW,EAAE,eAAe;AAC5BC,EAAAA,QAAQ,EAAE,cAAc;AACxBC,EAAAA,QAAQ,EAAE,WAAW;AACrBC,EAAAA,YAAY,EAAE,eAAA;AAChB;;;;"}
|
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
const message$1 = {
|
|
2
|
+
filterText: '筛选',
|
|
3
|
+
moreText: '更多',
|
|
4
|
+
selectedText: '您已选择',
|
|
5
|
+
clearAllText: '清空全部',
|
|
6
|
+
toggleUpText: '收起',
|
|
7
|
+
selectedTextAdvanced: '已选',
|
|
8
|
+
clearText: '清空筛选',
|
|
9
|
+
otherText: '其他',
|
|
10
|
+
cancelText: '取消',
|
|
11
|
+
determineText: '确定',
|
|
12
|
+
year: '年',
|
|
13
|
+
over: '{count}{unit}以上',
|
|
14
|
+
lessThan: '{count}{unit}以下',
|
|
15
|
+
inputPlaceholder: '请输入{label}',
|
|
16
|
+
pleaseInput: '请输入',
|
|
17
|
+
defaultInputPlaceholder: '请输入{label}',
|
|
18
|
+
maxSelectedCount: '最多选择{count}项',
|
|
19
|
+
customTime: '自定义时间',
|
|
20
|
+
monthly: '按月',
|
|
21
|
+
weekly: '按周',
|
|
22
|
+
last7Days: '近7天',
|
|
23
|
+
thisMonth: '本月',
|
|
24
|
+
last3Months: '近三个月',
|
|
25
|
+
thisYear: '当年',
|
|
26
|
+
fullYear: '本年度',
|
|
27
|
+
pleaseSelect: '请选择'
|
|
28
|
+
};
|
|
29
|
+
|
|
30
|
+
const message = {
|
|
31
|
+
filterText: 'Filter',
|
|
32
|
+
moreText: 'More',
|
|
33
|
+
selectedText: 'Selected',
|
|
34
|
+
clearAllText: 'Clear All',
|
|
35
|
+
toggleUpText: 'Pack Up',
|
|
36
|
+
selectedTextAdvanced: 'Selected',
|
|
37
|
+
clearText: 'Clear Filter',
|
|
38
|
+
otherText: 'Other',
|
|
39
|
+
cancelText: 'Cancel',
|
|
40
|
+
determineText: 'Determine',
|
|
41
|
+
year: 'year',
|
|
42
|
+
over: 'over {count} {unit}s',
|
|
43
|
+
lessThan: 'less than {count} {unit}s',
|
|
44
|
+
inputPlaceholder: 'Please enter {label}',
|
|
45
|
+
pleaseInput: 'Please enter ',
|
|
46
|
+
defaultInputPlaceholder: 'Please enter {label}',
|
|
47
|
+
maxSelectedCount: 'Select up to {count} items',
|
|
48
|
+
customTime: 'Custom Time',
|
|
49
|
+
monthly: 'Monthly',
|
|
50
|
+
weekly: 'Weekly',
|
|
51
|
+
last7Days: 'Last 7 Days',
|
|
52
|
+
thisMonth: 'This Month',
|
|
53
|
+
last3Months: 'Last 3 Months',
|
|
54
|
+
thisYear: 'Year to Date',
|
|
55
|
+
fullYear: 'Full Year',
|
|
56
|
+
pleaseSelect: 'Please Select'
|
|
57
|
+
};
|
|
58
|
+
|
|
59
|
+
var index = {
|
|
60
|
+
'zh-CN': message$1,
|
|
61
|
+
'en-US': message
|
|
62
|
+
};
|
|
63
|
+
|
|
64
|
+
module.exports = index;
|
|
65
|
+
//# sourceMappingURL=react-filter.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"react-filter.js","sources":["../../src/locale/zh-CN.js","../../src/locale/en-US.js","../../src/locale/index.js"],"sourcesContent":["const message = {\n filterText: '筛选',\n moreText: '更多',\n selectedText: '您已选择',\n clearAllText: '清空全部',\n toggleUpText: '收起',\n selectedTextAdvanced: '已选',\n clearText: '清空筛选',\n otherText: '其他',\n cancelText: '取消',\n determineText: '确定',\n year: '年',\n over: '{count}{unit}以上',\n lessThan: '{count}{unit}以下',\n inputPlaceholder: '请输入{label}',\n pleaseInput: '请输入',\n defaultInputPlaceholder: '请输入{label}',\n maxSelectedCount: '最多选择{count}项',\n customTime: '自定义时间',\n monthly: '按月',\n weekly: '按周',\n last7Days: '近7天',\n thisMonth: '本月',\n last3Months: '近三个月',\n thisYear: '当年',\n fullYear: '本年度',\n pleaseSelect: '请选择'\n};\n\nexport default message;\n","const message = {\n filterText: 'Filter',\n moreText: 'More',\n selectedText: 'Selected',\n clearAllText: 'Clear All',\n toggleUpText: 'Pack Up',\n selectedTextAdvanced: 'Selected',\n clearText: 'Clear Filter',\n otherText: 'Other',\n cancelText: 'Cancel',\n determineText: 'Determine',\n year: 'year',\n over: 'over {count} {unit}s',\n lessThan: 'less than {count} {unit}s',\n inputPlaceholder: 'Please enter {label}',\n pleaseInput: 'Please enter ',\n defaultInputPlaceholder: 'Please enter {label}',\n maxSelectedCount: 'Select up to {count} items',\n customTime: 'Custom Time',\n monthly: 'Monthly',\n weekly: 'Weekly',\n last7Days: 'Last 7 Days',\n thisMonth: 'This Month',\n last3Months: 'Last 3 Months',\n thisYear: 'Year to Date',\n fullYear: 'Full Year',\n pleaseSelect: 'Please Select'\n};\n\nexport default message;\n","import zhCN from './zh-CN';\nimport enUS from './en-US';\n\nexport default {\n 'zh-CN': zhCN,\n 'en-US': enUS\n};\n"],"names":["message","filterText","moreText","selectedText","clearAllText","toggleUpText","selectedTextAdvanced","clearText","otherText","cancelText","determineText","year","over","lessThan","inputPlaceholder","pleaseInput","defaultInputPlaceholder","maxSelectedCount","customTime","monthly","weekly","last7Days","thisMonth","last3Months","thisYear","fullYear","pleaseSelect","zhCN","enUS"],"mappings":"AAAA,MAAMA,SAAO,GAAG;AACdC,EAAAA,UAAU,EAAE,IAAI;AAChBC,EAAAA,QAAQ,EAAE,IAAI;AACdC,EAAAA,YAAY,EAAE,MAAM;AACpBC,EAAAA,YAAY,EAAE,MAAM;AACpBC,EAAAA,YAAY,EAAE,IAAI;AAClBC,EAAAA,oBAAoB,EAAE,IAAI;AAC1BC,EAAAA,SAAS,EAAE,MAAM;AACjBC,EAAAA,SAAS,EAAE,IAAI;AACfC,EAAAA,UAAU,EAAE,IAAI;AAChBC,EAAAA,aAAa,EAAE,IAAI;AACnBC,EAAAA,IAAI,EAAE,GAAG;AACTC,EAAAA,IAAI,EAAE,iBAAiB;AACvBC,EAAAA,QAAQ,EAAE,iBAAiB;AAC3BC,EAAAA,gBAAgB,EAAE,YAAY;AAC9BC,EAAAA,WAAW,EAAE,KAAK;AAClBC,EAAAA,uBAAuB,EAAE,YAAY;AACrCC,EAAAA,gBAAgB,EAAE,cAAc;AAChCC,EAAAA,UAAU,EAAE,OAAO;AACnBC,EAAAA,OAAO,EAAE,IAAI;AACbC,EAAAA,MAAM,EAAE,IAAI;AACZC,EAAAA,SAAS,EAAE,KAAK;AAChBC,EAAAA,SAAS,EAAE,IAAI;AACfC,EAAAA,WAAW,EAAE,MAAM;AACnBC,EAAAA,QAAQ,EAAE,IAAI;AACdC,EAAAA,QAAQ,EAAE,KAAK;AACfC,EAAAA,YAAY,EAAE,KAAA;AAChB,CAAC;;AC3BD,MAAM1B,OAAO,GAAG;AACdC,EAAAA,UAAU,EAAE,QAAQ;AACpBC,EAAAA,QAAQ,EAAE,MAAM;AAChBC,EAAAA,YAAY,EAAE,UAAU;AACxBC,EAAAA,YAAY,EAAE,WAAW;AACzBC,EAAAA,YAAY,EAAE,SAAS;AACvBC,EAAAA,oBAAoB,EAAE,UAAU;AAChCC,EAAAA,SAAS,EAAE,cAAc;AACzBC,EAAAA,SAAS,EAAE,OAAO;AAClBC,EAAAA,UAAU,EAAE,QAAQ;AACpBC,EAAAA,aAAa,EAAE,WAAW;AAC1BC,EAAAA,IAAI,EAAE,MAAM;AACZC,EAAAA,IAAI,EAAE,sBAAsB;AAC5BC,EAAAA,QAAQ,EAAE,2BAA2B;AACrCC,EAAAA,gBAAgB,EAAE,sBAAsB;AACxCC,EAAAA,WAAW,EAAE,eAAe;AAC5BC,EAAAA,uBAAuB,EAAE,sBAAsB;AAC/CC,EAAAA,gBAAgB,EAAE,4BAA4B;AAC9CC,EAAAA,UAAU,EAAE,aAAa;AACzBC,EAAAA,OAAO,EAAE,SAAS;AAClBC,EAAAA,MAAM,EAAE,QAAQ;AAChBC,EAAAA,SAAS,EAAE,aAAa;AACxBC,EAAAA,SAAS,EAAE,YAAY;AACvBC,EAAAA,WAAW,EAAE,eAAe;AAC5BC,EAAAA,QAAQ,EAAE,cAAc;AACxBC,EAAAA,QAAQ,EAAE,WAAW;AACrBC,EAAAA,YAAY,EAAE,eAAA;AAChB,CAAC;;ACxBD,YAAe;AACb,EAAA,OAAO,EAAEC,SAAI;AACb,EAAA,OAAO,EAAEC,OAAAA;AACX,CAAC;;;;"}
|
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
const message$1 = {
|
|
2
|
+
filterText: '筛选',
|
|
3
|
+
moreText: '更多',
|
|
4
|
+
selectedText: '您已选择',
|
|
5
|
+
clearAllText: '清空全部',
|
|
6
|
+
toggleUpText: '收起',
|
|
7
|
+
selectedTextAdvanced: '已选',
|
|
8
|
+
clearText: '清空筛选',
|
|
9
|
+
otherText: '其他',
|
|
10
|
+
cancelText: '取消',
|
|
11
|
+
determineText: '确定',
|
|
12
|
+
year: '年',
|
|
13
|
+
over: '{count}{unit}以上',
|
|
14
|
+
lessThan: '{count}{unit}以下',
|
|
15
|
+
inputPlaceholder: '请输入{label}',
|
|
16
|
+
pleaseInput: '请输入',
|
|
17
|
+
defaultInputPlaceholder: '请输入{label}',
|
|
18
|
+
maxSelectedCount: '最多选择{count}项',
|
|
19
|
+
customTime: '自定义时间',
|
|
20
|
+
monthly: '按月',
|
|
21
|
+
weekly: '按周',
|
|
22
|
+
last7Days: '近7天',
|
|
23
|
+
thisMonth: '本月',
|
|
24
|
+
last3Months: '近三个月',
|
|
25
|
+
thisYear: '当年',
|
|
26
|
+
fullYear: '本年度',
|
|
27
|
+
pleaseSelect: '请选择'
|
|
28
|
+
};
|
|
29
|
+
|
|
30
|
+
const message = {
|
|
31
|
+
filterText: 'Filter',
|
|
32
|
+
moreText: 'More',
|
|
33
|
+
selectedText: 'Selected',
|
|
34
|
+
clearAllText: 'Clear All',
|
|
35
|
+
toggleUpText: 'Pack Up',
|
|
36
|
+
selectedTextAdvanced: 'Selected',
|
|
37
|
+
clearText: 'Clear Filter',
|
|
38
|
+
otherText: 'Other',
|
|
39
|
+
cancelText: 'Cancel',
|
|
40
|
+
determineText: 'Determine',
|
|
41
|
+
year: 'year',
|
|
42
|
+
over: 'over {count} {unit}s',
|
|
43
|
+
lessThan: 'less than {count} {unit}s',
|
|
44
|
+
inputPlaceholder: 'Please enter {label}',
|
|
45
|
+
pleaseInput: 'Please enter ',
|
|
46
|
+
defaultInputPlaceholder: 'Please enter {label}',
|
|
47
|
+
maxSelectedCount: 'Select up to {count} items',
|
|
48
|
+
customTime: 'Custom Time',
|
|
49
|
+
monthly: 'Monthly',
|
|
50
|
+
weekly: 'Weekly',
|
|
51
|
+
last7Days: 'Last 7 Days',
|
|
52
|
+
thisMonth: 'This Month',
|
|
53
|
+
last3Months: 'Last 3 Months',
|
|
54
|
+
thisYear: 'Year to Date',
|
|
55
|
+
fullYear: 'Full Year',
|
|
56
|
+
pleaseSelect: 'Please Select'
|
|
57
|
+
};
|
|
58
|
+
|
|
59
|
+
var index = {
|
|
60
|
+
'zh-CN': message$1,
|
|
61
|
+
'en-US': message
|
|
62
|
+
};
|
|
63
|
+
|
|
64
|
+
export { index as default };
|
|
65
|
+
//# sourceMappingURL=react-filter.modern.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"react-filter.modern.js","sources":["../../src/locale/zh-CN.js","../../src/locale/en-US.js","../../src/locale/index.js"],"sourcesContent":["const message = {\n filterText: '筛选',\n moreText: '更多',\n selectedText: '您已选择',\n clearAllText: '清空全部',\n toggleUpText: '收起',\n selectedTextAdvanced: '已选',\n clearText: '清空筛选',\n otherText: '其他',\n cancelText: '取消',\n determineText: '确定',\n year: '年',\n over: '{count}{unit}以上',\n lessThan: '{count}{unit}以下',\n inputPlaceholder: '请输入{label}',\n pleaseInput: '请输入',\n defaultInputPlaceholder: '请输入{label}',\n maxSelectedCount: '最多选择{count}项',\n customTime: '自定义时间',\n monthly: '按月',\n weekly: '按周',\n last7Days: '近7天',\n thisMonth: '本月',\n last3Months: '近三个月',\n thisYear: '当年',\n fullYear: '本年度',\n pleaseSelect: '请选择'\n};\n\nexport default message;\n","const message = {\n filterText: 'Filter',\n moreText: 'More',\n selectedText: 'Selected',\n clearAllText: 'Clear All',\n toggleUpText: 'Pack Up',\n selectedTextAdvanced: 'Selected',\n clearText: 'Clear Filter',\n otherText: 'Other',\n cancelText: 'Cancel',\n determineText: 'Determine',\n year: 'year',\n over: 'over {count} {unit}s',\n lessThan: 'less than {count} {unit}s',\n inputPlaceholder: 'Please enter {label}',\n pleaseInput: 'Please enter ',\n defaultInputPlaceholder: 'Please enter {label}',\n maxSelectedCount: 'Select up to {count} items',\n customTime: 'Custom Time',\n monthly: 'Monthly',\n weekly: 'Weekly',\n last7Days: 'Last 7 Days',\n thisMonth: 'This Month',\n last3Months: 'Last 3 Months',\n thisYear: 'Year to Date',\n fullYear: 'Full Year',\n pleaseSelect: 'Please Select'\n};\n\nexport default message;\n","import zhCN from './zh-CN';\nimport enUS from './en-US';\n\nexport default {\n 'zh-CN': zhCN,\n 'en-US': enUS\n};\n"],"names":["message","filterText","moreText","selectedText","clearAllText","toggleUpText","selectedTextAdvanced","clearText","otherText","cancelText","determineText","year","over","lessThan","inputPlaceholder","pleaseInput","defaultInputPlaceholder","maxSelectedCount","customTime","monthly","weekly","last7Days","thisMonth","last3Months","thisYear","fullYear","pleaseSelect","zhCN","enUS"],"mappings":"AAAA,MAAMA,SAAO,GAAG;AACdC,EAAAA,UAAU,EAAE,IAAI;AAChBC,EAAAA,QAAQ,EAAE,IAAI;AACdC,EAAAA,YAAY,EAAE,MAAM;AACpBC,EAAAA,YAAY,EAAE,MAAM;AACpBC,EAAAA,YAAY,EAAE,IAAI;AAClBC,EAAAA,oBAAoB,EAAE,IAAI;AAC1BC,EAAAA,SAAS,EAAE,MAAM;AACjBC,EAAAA,SAAS,EAAE,IAAI;AACfC,EAAAA,UAAU,EAAE,IAAI;AAChBC,EAAAA,aAAa,EAAE,IAAI;AACnBC,EAAAA,IAAI,EAAE,GAAG;AACTC,EAAAA,IAAI,EAAE,iBAAiB;AACvBC,EAAAA,QAAQ,EAAE,iBAAiB;AAC3BC,EAAAA,gBAAgB,EAAE,YAAY;AAC9BC,EAAAA,WAAW,EAAE,KAAK;AAClBC,EAAAA,uBAAuB,EAAE,YAAY;AACrCC,EAAAA,gBAAgB,EAAE,cAAc;AAChCC,EAAAA,UAAU,EAAE,OAAO;AACnBC,EAAAA,OAAO,EAAE,IAAI;AACbC,EAAAA,MAAM,EAAE,IAAI;AACZC,EAAAA,SAAS,EAAE,KAAK;AAChBC,EAAAA,SAAS,EAAE,IAAI;AACfC,EAAAA,WAAW,EAAE,MAAM;AACnBC,EAAAA,QAAQ,EAAE,IAAI;AACdC,EAAAA,QAAQ,EAAE,KAAK;AACfC,EAAAA,YAAY,EAAE,KAAA;AAChB,CAAC;;AC3BD,MAAM1B,OAAO,GAAG;AACdC,EAAAA,UAAU,EAAE,QAAQ;AACpBC,EAAAA,QAAQ,EAAE,MAAM;AAChBC,EAAAA,YAAY,EAAE,UAAU;AACxBC,EAAAA,YAAY,EAAE,WAAW;AACzBC,EAAAA,YAAY,EAAE,SAAS;AACvBC,EAAAA,oBAAoB,EAAE,UAAU;AAChCC,EAAAA,SAAS,EAAE,cAAc;AACzBC,EAAAA,SAAS,EAAE,OAAO;AAClBC,EAAAA,UAAU,EAAE,QAAQ;AACpBC,EAAAA,aAAa,EAAE,WAAW;AAC1BC,EAAAA,IAAI,EAAE,MAAM;AACZC,EAAAA,IAAI,EAAE,sBAAsB;AAC5BC,EAAAA,QAAQ,EAAE,2BAA2B;AACrCC,EAAAA,gBAAgB,EAAE,sBAAsB;AACxCC,EAAAA,WAAW,EAAE,eAAe;AAC5BC,EAAAA,uBAAuB,EAAE,sBAAsB;AAC/CC,EAAAA,gBAAgB,EAAE,4BAA4B;AAC9CC,EAAAA,UAAU,EAAE,aAAa;AACzBC,EAAAA,OAAO,EAAE,SAAS;AAClBC,EAAAA,MAAM,EAAE,QAAQ;AAChBC,EAAAA,SAAS,EAAE,aAAa;AACxBC,EAAAA,SAAS,EAAE,YAAY;AACvBC,EAAAA,WAAW,EAAE,eAAe;AAC5BC,EAAAA,QAAQ,EAAE,cAAc;AACxBC,EAAAA,QAAQ,EAAE,WAAW;AACrBC,EAAAA,YAAY,EAAE,eAAA;AAChB,CAAC;;ACxBD,YAAe;AACb,EAAA,OAAO,EAAEC,SAAI;AACb,EAAA,OAAO,EAAEC,OAAAA;AACX,CAAC;;;;"}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
const message = {
|
|
2
|
+
filterText: '筛选',
|
|
3
|
+
moreText: '更多',
|
|
4
|
+
selectedText: '您已选择',
|
|
5
|
+
clearAllText: '清空全部',
|
|
6
|
+
toggleUpText: '收起',
|
|
7
|
+
selectedTextAdvanced: '已选',
|
|
8
|
+
clearText: '清空筛选',
|
|
9
|
+
otherText: '其他',
|
|
10
|
+
cancelText: '取消',
|
|
11
|
+
determineText: '确定',
|
|
12
|
+
year: '年',
|
|
13
|
+
over: '{count}{unit}以上',
|
|
14
|
+
lessThan: '{count}{unit}以下',
|
|
15
|
+
inputPlaceholder: '请输入{label}',
|
|
16
|
+
pleaseInput: '请输入',
|
|
17
|
+
defaultInputPlaceholder: '请输入{label}',
|
|
18
|
+
maxSelectedCount: '最多选择{count}项',
|
|
19
|
+
customTime: '自定义时间',
|
|
20
|
+
monthly: '按月',
|
|
21
|
+
weekly: '按周',
|
|
22
|
+
last7Days: '近7天',
|
|
23
|
+
thisMonth: '本月',
|
|
24
|
+
last3Months: '近三个月',
|
|
25
|
+
thisYear: '当年',
|
|
26
|
+
fullYear: '本年度',
|
|
27
|
+
pleaseSelect: '请选择'
|
|
28
|
+
};
|
|
29
|
+
|
|
30
|
+
module.exports = message;
|
|
31
|
+
//# sourceMappingURL=zh-CN.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"zh-CN.js","sources":["../../src/locale/zh-CN.js"],"sourcesContent":["const message = {\n filterText: '筛选',\n moreText: '更多',\n selectedText: '您已选择',\n clearAllText: '清空全部',\n toggleUpText: '收起',\n selectedTextAdvanced: '已选',\n clearText: '清空筛选',\n otherText: '其他',\n cancelText: '取消',\n determineText: '确定',\n year: '年',\n over: '{count}{unit}以上',\n lessThan: '{count}{unit}以下',\n inputPlaceholder: '请输入{label}',\n pleaseInput: '请输入',\n defaultInputPlaceholder: '请输入{label}',\n maxSelectedCount: '最多选择{count}项',\n customTime: '自定义时间',\n monthly: '按月',\n weekly: '按周',\n last7Days: '近7天',\n thisMonth: '本月',\n last3Months: '近三个月',\n thisYear: '当年',\n fullYear: '本年度',\n pleaseSelect: '请选择'\n};\n\nexport default message;\n"],"names":["message","filterText","moreText","selectedText","clearAllText","toggleUpText","selectedTextAdvanced","clearText","otherText","cancelText","determineText","year","over","lessThan","inputPlaceholder","pleaseInput","defaultInputPlaceholder","maxSelectedCount","customTime","monthly","weekly","last7Days","thisMonth","last3Months","thisYear","fullYear","pleaseSelect"],"mappings":"AAAA,MAAMA,OAAO,GAAG;AACdC,EAAAA,UAAU,EAAE,IAAI;AAChBC,EAAAA,QAAQ,EAAE,IAAI;AACdC,EAAAA,YAAY,EAAE,MAAM;AACpBC,EAAAA,YAAY,EAAE,MAAM;AACpBC,EAAAA,YAAY,EAAE,IAAI;AAClBC,EAAAA,oBAAoB,EAAE,IAAI;AAC1BC,EAAAA,SAAS,EAAE,MAAM;AACjBC,EAAAA,SAAS,EAAE,IAAI;AACfC,EAAAA,UAAU,EAAE,IAAI;AAChBC,EAAAA,aAAa,EAAE,IAAI;AACnBC,EAAAA,IAAI,EAAE,GAAG;AACTC,EAAAA,IAAI,EAAE,iBAAiB;AACvBC,EAAAA,QAAQ,EAAE,iBAAiB;AAC3BC,EAAAA,gBAAgB,EAAE,YAAY;AAC9BC,EAAAA,WAAW,EAAE,KAAK;AAClBC,EAAAA,uBAAuB,EAAE,YAAY;AACrCC,EAAAA,gBAAgB,EAAE,cAAc;AAChCC,EAAAA,UAAU,EAAE,OAAO;AACnBC,EAAAA,OAAO,EAAE,IAAI;AACbC,EAAAA,MAAM,EAAE,IAAI;AACZC,EAAAA,SAAS,EAAE,KAAK;AAChBC,EAAAA,SAAS,EAAE,IAAI;AACfC,EAAAA,WAAW,EAAE,MAAM;AACnBC,EAAAA,QAAQ,EAAE,IAAI;AACdC,EAAAA,QAAQ,EAAE,KAAK;AACfC,EAAAA,YAAY,EAAE,KAAA;AAChB;;;;"}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
const message = {
|
|
2
|
+
filterText: '筛选',
|
|
3
|
+
moreText: '更多',
|
|
4
|
+
selectedText: '您已选择',
|
|
5
|
+
clearAllText: '清空全部',
|
|
6
|
+
toggleUpText: '收起',
|
|
7
|
+
selectedTextAdvanced: '已选',
|
|
8
|
+
clearText: '清空筛选',
|
|
9
|
+
otherText: '其他',
|
|
10
|
+
cancelText: '取消',
|
|
11
|
+
determineText: '确定',
|
|
12
|
+
year: '年',
|
|
13
|
+
over: '{count}{unit}以上',
|
|
14
|
+
lessThan: '{count}{unit}以下',
|
|
15
|
+
inputPlaceholder: '请输入{label}',
|
|
16
|
+
pleaseInput: '请输入',
|
|
17
|
+
defaultInputPlaceholder: '请输入{label}',
|
|
18
|
+
maxSelectedCount: '最多选择{count}项',
|
|
19
|
+
customTime: '自定义时间',
|
|
20
|
+
monthly: '按月',
|
|
21
|
+
weekly: '按周',
|
|
22
|
+
last7Days: '近7天',
|
|
23
|
+
thisMonth: '本月',
|
|
24
|
+
last3Months: '近三个月',
|
|
25
|
+
thisYear: '当年',
|
|
26
|
+
fullYear: '本年度',
|
|
27
|
+
pleaseSelect: '请选择'
|
|
28
|
+
};
|
|
29
|
+
|
|
30
|
+
export { message as default };
|
|
31
|
+
//# sourceMappingURL=zh-CN.modern.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"zh-CN.modern.js","sources":["../../src/locale/zh-CN.js"],"sourcesContent":["const message = {\n filterText: '筛选',\n moreText: '更多',\n selectedText: '您已选择',\n clearAllText: '清空全部',\n toggleUpText: '收起',\n selectedTextAdvanced: '已选',\n clearText: '清空筛选',\n otherText: '其他',\n cancelText: '取消',\n determineText: '确定',\n year: '年',\n over: '{count}{unit}以上',\n lessThan: '{count}{unit}以下',\n inputPlaceholder: '请输入{label}',\n pleaseInput: '请输入',\n defaultInputPlaceholder: '请输入{label}',\n maxSelectedCount: '最多选择{count}项',\n customTime: '自定义时间',\n monthly: '按月',\n weekly: '按周',\n last7Days: '近7天',\n thisMonth: '本月',\n last3Months: '近三个月',\n thisYear: '当年',\n fullYear: '本年度',\n pleaseSelect: '请选择'\n};\n\nexport default message;\n"],"names":["message","filterText","moreText","selectedText","clearAllText","toggleUpText","selectedTextAdvanced","clearText","otherText","cancelText","determineText","year","over","lessThan","inputPlaceholder","pleaseInput","defaultInputPlaceholder","maxSelectedCount","customTime","monthly","weekly","last7Days","thisMonth","last3Months","thisYear","fullYear","pleaseSelect"],"mappings":"AAAA,MAAMA,OAAO,GAAG;AACdC,EAAAA,UAAU,EAAE,IAAI;AAChBC,EAAAA,QAAQ,EAAE,IAAI;AACdC,EAAAA,YAAY,EAAE,MAAM;AACpBC,EAAAA,YAAY,EAAE,MAAM;AACpBC,EAAAA,YAAY,EAAE,IAAI;AAClBC,EAAAA,oBAAoB,EAAE,IAAI;AAC1BC,EAAAA,SAAS,EAAE,MAAM;AACjBC,EAAAA,SAAS,EAAE,IAAI;AACfC,EAAAA,UAAU,EAAE,IAAI;AAChBC,EAAAA,aAAa,EAAE,IAAI;AACnBC,EAAAA,IAAI,EAAE,GAAG;AACTC,EAAAA,IAAI,EAAE,iBAAiB;AACvBC,EAAAA,QAAQ,EAAE,iBAAiB;AAC3BC,EAAAA,gBAAgB,EAAE,YAAY;AAC9BC,EAAAA,WAAW,EAAE,KAAK;AAClBC,EAAAA,uBAAuB,EAAE,YAAY;AACrCC,EAAAA,gBAAgB,EAAE,cAAc;AAChCC,EAAAA,UAAU,EAAE,OAAO;AACnBC,EAAAA,OAAO,EAAE,IAAI;AACbC,EAAAA,MAAM,EAAE,IAAI;AACZC,EAAAA,SAAS,EAAE,KAAK;AAChBC,EAAAA,SAAS,EAAE,IAAI;AACfC,EAAAA,WAAW,EAAE,MAAM;AACnBC,EAAAA,QAAQ,EAAE,IAAI;AACdC,EAAAA,QAAQ,EAAE,KAAK;AACfC,EAAAA,YAAY,EAAE,KAAA;AAChB;;;;"}
|
package/package.json
CHANGED
|
@@ -1,34 +1,32 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@kne/react-filter",
|
|
3
|
-
"version": "0.
|
|
4
|
-
"description": "
|
|
5
|
-
"main": "dist/index.js",
|
|
6
|
-
"module": "dist/index.modern.js",
|
|
3
|
+
"version": "1.0.0",
|
|
4
|
+
"description": "A React filter component library",
|
|
7
5
|
"syntax": {
|
|
8
6
|
"esmodules": true
|
|
9
7
|
},
|
|
8
|
+
"main": "dist/index.js",
|
|
9
|
+
"module": "dist/index.modern.js",
|
|
10
10
|
"source": "src/index.js",
|
|
11
11
|
"scripts": {
|
|
12
|
-
"init": "
|
|
12
|
+
"init": "husky && npm run init-example",
|
|
13
13
|
"start": "run-p start:lib start:md start:example",
|
|
14
14
|
"build": "run-s build:lib build:md build:example",
|
|
15
|
-
"
|
|
16
|
-
"build:md": "
|
|
17
|
-
"start:md": "
|
|
18
|
-
"
|
|
19
|
-
"
|
|
15
|
+
"init-example": "modules-dev-libs-init",
|
|
16
|
+
"build:md": "npx @kne/md-doc",
|
|
17
|
+
"start:md": "npx @kne/md-doc --watch",
|
|
18
|
+
"build:locale": "microbundle src/locale/*.js -o dist/locale --no-compress --format modern,cjs ",
|
|
19
|
+
"build:lib-main": "microbundle --no-compress --format modern,cjs --jsxImportSource react --jsx React.createElement --jsxFragment React.Fragment",
|
|
20
|
+
"build:lib": "run-s build:locale build:lib-main",
|
|
21
|
+
"start:lib": "microbundle watch --no-compress --format modern,cjs --jsxImportSource react --jsx React.createElement --jsxFragment React.Fragment",
|
|
22
|
+
"build:example": "cd example && npm run build",
|
|
23
|
+
"start:example": "cd example && npm run start",
|
|
20
24
|
"test:build": "run-s build",
|
|
21
25
|
"test:lint": "eslint .",
|
|
22
26
|
"test:unit": "cross-env CI=1 react-scripts test --env=jsdom",
|
|
23
27
|
"test:watch": "react-scripts test --env=jsdom",
|
|
24
|
-
"
|
|
25
|
-
"
|
|
26
|
-
"deploy": "gh-pages -d example/build",
|
|
27
|
-
"prettier": "prettier --config .prettierrc --write 'src/**/*.{js,jsx,ts,tsx,json,css,scss,md}'"
|
|
28
|
-
},
|
|
29
|
-
"repository": {
|
|
30
|
-
"type": "git",
|
|
31
|
-
"url": "git+https://github.com/kne-union/react-filter.git"
|
|
28
|
+
"prettier": "prettier --config .prettierrc --write '{src/**/*,index,prompts}.{js,jsx,ts,tsx,json,css,scss}'",
|
|
29
|
+
"lint-staged": "npx lint-staged"
|
|
32
30
|
},
|
|
33
31
|
"husky": {
|
|
34
32
|
"hooks": {
|
|
@@ -44,38 +42,59 @@
|
|
|
44
42
|
"files": [
|
|
45
43
|
"dist"
|
|
46
44
|
],
|
|
45
|
+
"repository": {
|
|
46
|
+
"type": "git",
|
|
47
|
+
"url": "git+https://github.com/kne-union/react-filter.git"
|
|
48
|
+
},
|
|
49
|
+
"keywords": [],
|
|
47
50
|
"author": "linzp",
|
|
48
51
|
"license": "ISC",
|
|
49
52
|
"bugs": {
|
|
50
53
|
"url": "https://github.com/kne-union/react-filter/issues"
|
|
51
54
|
},
|
|
52
|
-
"homepage": "https://github.com/kne-union/react-filter
|
|
55
|
+
"homepage": "https://github.com/kne-union/react-filter",
|
|
56
|
+
"eslintConfig": {
|
|
57
|
+
"extends": [
|
|
58
|
+
"react-app",
|
|
59
|
+
"react-app/jest"
|
|
60
|
+
]
|
|
61
|
+
},
|
|
62
|
+
"browserslist": {
|
|
63
|
+
"production": [
|
|
64
|
+
">0.2%",
|
|
65
|
+
"not dead",
|
|
66
|
+
"not op_mini all"
|
|
67
|
+
],
|
|
68
|
+
"development": [
|
|
69
|
+
"last 1 chrome version",
|
|
70
|
+
"last 1 firefox version",
|
|
71
|
+
"last 1 safari version"
|
|
72
|
+
]
|
|
73
|
+
},
|
|
53
74
|
"peerDependencies": {
|
|
54
|
-
"@kne/
|
|
55
|
-
"
|
|
56
|
-
"
|
|
57
|
-
"
|
|
58
|
-
"react": "
|
|
75
|
+
"@kne/super-select": "^0.1.0",
|
|
76
|
+
"@kne/super-select-plus": "^0.1.0",
|
|
77
|
+
"react": "*",
|
|
78
|
+
"react-dom": "*",
|
|
79
|
+
"react-router-dom": "*",
|
|
80
|
+
"antd": ">=5.0.0"
|
|
59
81
|
},
|
|
60
82
|
"devDependencies": {
|
|
61
|
-
"@kne/
|
|
62
|
-
"@kne/
|
|
63
|
-
"@kne/react-city-select": "^0.1.6",
|
|
64
|
-
"antd": "^4.18.9",
|
|
83
|
+
"@kne/microbundle": "^0.15.5",
|
|
84
|
+
"@kne/modules-dev": "^2.3.3",
|
|
65
85
|
"cross-env": "^7.0.3",
|
|
66
|
-
"
|
|
67
|
-
"husky": "^7.0.4",
|
|
68
|
-
"node-sass": "^7.0.1",
|
|
86
|
+
"husky": "^9.0.11",
|
|
69
87
|
"npm-run-all": "^4.1.5",
|
|
70
|
-
"prettier": "^2.5
|
|
88
|
+
"prettier": "^3.2.5",
|
|
71
89
|
"react": "^18.2.0",
|
|
72
|
-
"react-dom": "^18.2.0"
|
|
73
|
-
"react-scripts": "^5.0.0"
|
|
90
|
+
"react-dom": "^18.2.0"
|
|
74
91
|
},
|
|
75
92
|
"dependencies": {
|
|
76
|
-
"@kne/
|
|
77
|
-
"@kne/
|
|
78
|
-
"
|
|
93
|
+
"@kne/react-intl": "^0.1.9",
|
|
94
|
+
"@kne/super-select": "^0.1.34",
|
|
95
|
+
"@kne/super-select-plus": "^0.1.0",
|
|
96
|
+
"classnames": "^2.3.2",
|
|
97
|
+
"dayjs": "^1.11.10",
|
|
79
98
|
"lodash": "^4.17.21"
|
|
80
99
|
}
|
|
81
100
|
}
|
package/LICENSE
DELETED
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
MIT License
|
|
2
|
-
|
|
3
|
-
Copyright (c) 2022 zhipenglin
|
|
4
|
-
|
|
5
|
-
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
-
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
-
in the Software without restriction, including without limitation the rights
|
|
8
|
-
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
-
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
-
furnished to do so, subject to the following conditions:
|
|
11
|
-
|
|
12
|
-
The above copyright notice and this permission notice shall be included in all
|
|
13
|
-
copies or substantial portions of the Software.
|
|
14
|
-
|
|
15
|
-
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
-
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
-
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
-
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
-
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
-
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
-
SOFTWARE.
|