@aplus-frontend/ui 0.4.11 → 0.4.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/es/src/ap-field/date-range/index.vue.mjs +65 -57
- package/es/src/ap-field/hooks/use-default-presets.d.ts +7 -4
- package/es/src/ap-field/hooks/use-default-presets.mjs +24 -13
- package/es/src/business/ap-ladder/ApLadder.vue.d.ts +2 -0
- package/es/src/business/ap-ladder/ApLadder.vue2.mjs +109 -127
- package/es/src/business/ap-ladder/index.d.ts +1 -0
- package/es/src/business/ap-ladder/useWatchEllipsis.d.ts +3 -0
- package/es/src/business/ap-ladder/useWatchEllipsis.mjs +35 -0
- package/es/src/config-provider/hooks/use-locale.mjs +7 -7
- package/es/src/full-screen/index.vue.d.ts +2 -2
- package/es/src/full-screen/index.vue.mjs +19 -18
- package/es/src/hooks/useFullScreen.mjs +12 -11
- package/es/src/utils/data-range-persets.d.ts +23 -40
- package/es/src/utils/data-range-persets.mjs +95 -102
- package/lib/src/ap-field/date-range/index.vue.js +1 -1
- package/lib/src/ap-field/hooks/use-default-presets.d.ts +7 -4
- package/lib/src/ap-field/hooks/use-default-presets.js +1 -1
- package/lib/src/business/ap-ladder/ApLadder.vue.d.ts +2 -0
- package/lib/src/business/ap-ladder/ApLadder.vue2.js +1 -1
- package/lib/src/business/ap-ladder/index.d.ts +1 -0
- package/lib/src/business/ap-ladder/useWatchEllipsis.d.ts +3 -0
- package/lib/src/business/ap-ladder/useWatchEllipsis.js +1 -0
- package/lib/src/config-provider/hooks/use-locale.js +1 -1
- package/lib/src/full-screen/index.vue.d.ts +2 -2
- package/lib/src/full-screen/index.vue.js +1 -1
- package/lib/src/hooks/useFullScreen.js +1 -1
- package/lib/src/utils/data-range-persets.d.ts +23 -40
- package/lib/src/utils/data-range-persets.js +1 -1
- package/package.json +2 -2
- package/theme/ap-form/ap-form-item.css +1 -1
- package/theme/ap-form/ap-form-item.less +1 -1
- package/theme/ap-form/index.css +4 -1
- package/theme/ap-form/search-form.css +4 -1
- package/theme/ap-form/search-form.less +5 -0
- package/theme/ap-table/ap-table.css +4 -1
- package/theme/ap-table-modal/index.css +4 -1
- package/theme/editable-table/index.css +4 -1
- package/theme/index.css +4 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const f=require("@aplus-frontend/utils"),n=require("dayjs"),a=(t,s=n().valueOf())=>n(f.getTimeFormatToZone(s,t??f.userTimezone)),o=(t,s)=>{const e=a(t,s);return[e.startOf("day"),e.endOf("day")]},y=(t,s)=>{const e=a(t,s);return[e.startOf("day").subtract(1,"day").startOf("day"),e.endOf("day").subtract(1,"day").endOf("day")]},l=(t,s)=>{const e=a(t,s);return[e.startOf("week").startOf("day"),e.endOf("week").endOf("day")]},O=(t,s)=>{const e=a(t,s);return[e.subtract(1,"week").startOf("week").startOf("day"),e.subtract(1,"week").endOf("week").endOf("day")]},p=(t,s)=>{const e=a(t,s);return[e.startOf("month").startOf("day"),e.endOf("month").endOf("day")]},u=(t,s)=>{const e=a(t,s);return[e.subtract(1,"month").startOf("month").startOf("day"),e.subtract(1,"month").endOf("month").endOf("day")]},i=(t,s)=>{const e=a(t,s);return[e.startOf("year").startOf("day"),e.endOf("year").endOf("day")]},c=(t,s)=>{const e=a(t,s);return[e.subtract(1,"year").startOf("year").startOf("day"),e.subtract(1,"year").endOf("year").endOf("day")]},r=(t,s,e)=>{const d=a(s,e);return[d.subtract(t-1,"day").startOf("day"),d.endOf("day")]},m=(t,s,e)=>[{label:e?e("ap.field.today"):"今天",value:o(t,s)},{label:e?e("ap.field.yesterday"):"昨天",value:y(t,s)},{label:e?e("ap.field.thisWeek"):"本周",value:l(t,s)},{label:e?e("ap.field.lastWeek"):"上周",value:O(t,s)},{label:e?e("ap.field.thisMonth"):"本月",value:p(t,s)},{label:e?e("ap.field.lastMonth"):"上月",value:u(t,s)},{label:e?e("ap.field.lastXDays",{day:7}):"近7天",value:r(7,t,s)},{label:e?e("ap.field.lastXDays",{day:30}):"近30天",value:r(30,t,s)}];exports.presetsDefault=m;exports.presetsGetLastMonth=u;exports.presetsGetLastWeek=O;exports.presetsGetLastXDays=r;exports.presetsGetLastYear=c;exports.presetsGetThisMonth=p;exports.presetsGetThisWeek=l;exports.presetsGetThisYear=i;exports.presetsGetTimezoneFormat=a;exports.presetsGetToday=o;exports.presetsGetYesterday=y;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aplus-frontend/ui",
|
|
3
|
-
"version": "0.4.
|
|
3
|
+
"version": "0.4.12",
|
|
4
4
|
"main": "./lib/index.js",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"files": [
|
|
@@ -66,7 +66,7 @@
|
|
|
66
66
|
"vue-virtual-scroller": "2.0.0-beta.8",
|
|
67
67
|
"vuedraggable": "^4.1.0",
|
|
68
68
|
"@aplus-frontend/hooks": "1.0.7",
|
|
69
|
-
"@aplus-frontend/utils": "1.0.
|
|
69
|
+
"@aplus-frontend/utils": "1.0.49"
|
|
70
70
|
},
|
|
71
71
|
"peerDependencies": {
|
|
72
72
|
"@aplus-frontend/antdv": "^1.0.11",
|
|
@@ -30,7 +30,7 @@
|
|
|
30
30
|
.aplus-ap-form-item--bordered .ant-select-single .ant-select-selector {
|
|
31
31
|
height: 30px !important;
|
|
32
32
|
}
|
|
33
|
-
.aplus-ap-form-item--bordered:has(.ant-select
|
|
33
|
+
.aplus-ap-form-item--bordered:has(.ant-select) {
|
|
34
34
|
padding-right: 0px;
|
|
35
35
|
}
|
|
36
36
|
.aplus-ap-form-item--bordered .ant-form-item-label > label {
|
package/theme/ap-form/index.css
CHANGED
|
@@ -39,7 +39,7 @@
|
|
|
39
39
|
.aplus-ap-form-item--bordered .ant-select-single .ant-select-selector {
|
|
40
40
|
height: 30px !important;
|
|
41
41
|
}
|
|
42
|
-
.aplus-ap-form-item--bordered:has(.ant-select
|
|
42
|
+
.aplus-ap-form-item--bordered:has(.ant-select) {
|
|
43
43
|
padding-right: 0px;
|
|
44
44
|
}
|
|
45
45
|
.aplus-ap-form-item--bordered .ant-form-item-label > label {
|
|
@@ -119,6 +119,9 @@
|
|
|
119
119
|
.aplus-ap-form-search-form .ant-form-item-control .ant-picker {
|
|
120
120
|
display: flex;
|
|
121
121
|
}
|
|
122
|
+
.aplus-ap-form-search-form .ant-form-item-control .ant-input-group .ant-picker {
|
|
123
|
+
flex: 1;
|
|
124
|
+
}
|
|
122
125
|
.aplus-ap-form-search-form .ant-form-item-control .ant-input-number {
|
|
123
126
|
width: 100%;
|
|
124
127
|
}
|
|
@@ -30,7 +30,7 @@
|
|
|
30
30
|
.aplus-ap-form-item--bordered .ant-select-single .ant-select-selector {
|
|
31
31
|
height: 30px !important;
|
|
32
32
|
}
|
|
33
|
-
.aplus-ap-form-item--bordered:has(.ant-select
|
|
33
|
+
.aplus-ap-form-item--bordered:has(.ant-select) {
|
|
34
34
|
padding-right: 0px;
|
|
35
35
|
}
|
|
36
36
|
.aplus-ap-form-item--bordered .ant-form-item-label > label {
|
|
@@ -74,6 +74,9 @@
|
|
|
74
74
|
.aplus-ap-form-search-form .ant-form-item-control .ant-picker {
|
|
75
75
|
display: flex;
|
|
76
76
|
}
|
|
77
|
+
.aplus-ap-form-search-form .ant-form-item-control .ant-input-group .ant-picker {
|
|
78
|
+
flex: 1;
|
|
79
|
+
}
|
|
77
80
|
.aplus-ap-form-search-form .ant-form-item-control .ant-input-number {
|
|
78
81
|
width: 100%;
|
|
79
82
|
}
|
|
@@ -225,7 +225,7 @@
|
|
|
225
225
|
.aplus-ap-form-item--bordered .ant-select-single .ant-select-selector {
|
|
226
226
|
height: 30px !important;
|
|
227
227
|
}
|
|
228
|
-
.aplus-ap-form-item--bordered:has(.ant-select
|
|
228
|
+
.aplus-ap-form-item--bordered:has(.ant-select) {
|
|
229
229
|
padding-right: 0px;
|
|
230
230
|
}
|
|
231
231
|
.aplus-ap-form-item--bordered .ant-form-item-label > label {
|
|
@@ -305,6 +305,9 @@
|
|
|
305
305
|
.aplus-ap-form-search-form .ant-form-item-control .ant-picker {
|
|
306
306
|
display: flex;
|
|
307
307
|
}
|
|
308
|
+
.aplus-ap-form-search-form .ant-form-item-control .ant-input-group .ant-picker {
|
|
309
|
+
flex: 1;
|
|
310
|
+
}
|
|
308
311
|
.aplus-ap-form-search-form .ant-form-item-control .ant-input-number {
|
|
309
312
|
width: 100%;
|
|
310
313
|
}
|
|
@@ -225,7 +225,7 @@
|
|
|
225
225
|
.aplus-ap-form-item--bordered .ant-select-single .ant-select-selector {
|
|
226
226
|
height: 30px !important;
|
|
227
227
|
}
|
|
228
|
-
.aplus-ap-form-item--bordered:has(.ant-select
|
|
228
|
+
.aplus-ap-form-item--bordered:has(.ant-select) {
|
|
229
229
|
padding-right: 0px;
|
|
230
230
|
}
|
|
231
231
|
.aplus-ap-form-item--bordered .ant-form-item-label > label {
|
|
@@ -305,6 +305,9 @@
|
|
|
305
305
|
.aplus-ap-form-search-form .ant-form-item-control .ant-picker {
|
|
306
306
|
display: flex;
|
|
307
307
|
}
|
|
308
|
+
.aplus-ap-form-search-form .ant-form-item-control .ant-input-group .ant-picker {
|
|
309
|
+
flex: 1;
|
|
310
|
+
}
|
|
308
311
|
.aplus-ap-form-search-form .ant-form-item-control .ant-input-number {
|
|
309
312
|
width: 100%;
|
|
310
313
|
}
|
|
@@ -39,7 +39,7 @@
|
|
|
39
39
|
.aplus-ap-form-item--bordered .ant-select-single .ant-select-selector {
|
|
40
40
|
height: 30px !important;
|
|
41
41
|
}
|
|
42
|
-
.aplus-ap-form-item--bordered:has(.ant-select
|
|
42
|
+
.aplus-ap-form-item--bordered:has(.ant-select) {
|
|
43
43
|
padding-right: 0px;
|
|
44
44
|
}
|
|
45
45
|
.aplus-ap-form-item--bordered .ant-form-item-label > label {
|
|
@@ -119,6 +119,9 @@
|
|
|
119
119
|
.aplus-ap-form-search-form .ant-form-item-control .ant-picker {
|
|
120
120
|
display: flex;
|
|
121
121
|
}
|
|
122
|
+
.aplus-ap-form-search-form .ant-form-item-control .ant-input-group .ant-picker {
|
|
123
|
+
flex: 1;
|
|
124
|
+
}
|
|
122
125
|
.aplus-ap-form-search-form .ant-form-item-control .ant-input-number {
|
|
123
126
|
width: 100%;
|
|
124
127
|
}
|
package/theme/index.css
CHANGED
|
@@ -389,7 +389,7 @@
|
|
|
389
389
|
.aplus-ap-form-item--bordered .ant-select-single .ant-select-selector {
|
|
390
390
|
height: 30px !important;
|
|
391
391
|
}
|
|
392
|
-
.aplus-ap-form-item--bordered:has(.ant-select
|
|
392
|
+
.aplus-ap-form-item--bordered:has(.ant-select) {
|
|
393
393
|
padding-right: 0px;
|
|
394
394
|
}
|
|
395
395
|
.aplus-ap-form-item--bordered .ant-form-item-label > label {
|
|
@@ -469,6 +469,9 @@
|
|
|
469
469
|
.aplus-ap-form-search-form .ant-form-item-control .ant-picker {
|
|
470
470
|
display: flex;
|
|
471
471
|
}
|
|
472
|
+
.aplus-ap-form-search-form .ant-form-item-control .ant-input-group .ant-picker {
|
|
473
|
+
flex: 1;
|
|
474
|
+
}
|
|
472
475
|
.aplus-ap-form-search-form .ant-form-item-control .ant-input-number {
|
|
473
476
|
width: 100%;
|
|
474
477
|
}
|