@ebscn/ui 1.0.3-beta.3 → 1.0.3-beta.30
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/assets/images/delete_dark.png +0 -0
- package/assets/images/keybord_keybord_dark.png +0 -0
- package/assets/images/keybord_shift2.png +0 -0
- package/assets/images/keybord_shift2_dark.png +0 -0
- package/assets/images/keybord_shift_dark.png +0 -0
- package/assets/images/loading.gif +0 -0
- package/cjs/assets/images/delete_dark.png +0 -0
- package/cjs/assets/images/keybord_keybord_dark.png +0 -0
- package/cjs/assets/images/keybord_shift2.png +0 -0
- package/cjs/assets/images/keybord_shift2_dark.png +0 -0
- package/cjs/assets/images/keybord_shift_dark.png +0 -0
- package/cjs/assets/images/loading.gif +0 -0
- package/cjs/components/alphabet-keyboard/alphabet-keyboard.css +108 -43
- package/cjs/components/alphabet-keyboard/alphabet-keyboard.js +1 -2
- package/cjs/components/button/selectorButton.css +2 -0
- package/cjs/components/button/selectorButton.js +1 -5
- package/cjs/components/card/card.css +1 -1
- package/cjs/components/card/card.js +2 -2
- package/cjs/components/checkbox/checkbox.css +8 -2
- package/cjs/components/date-range-picker/date-range-picker.css +31 -7
- package/cjs/components/date-range-picker/date-range-picker.d.ts +1 -0
- package/cjs/components/date-range-picker/date-range-picker.js +18 -9
- package/cjs/components/divider/divider.css +4 -3
- package/cjs/components/header/header.css +7 -1
- package/cjs/components/header/header.js +4 -2
- package/cjs/components/icons/back-icon.js +1 -0
- package/cjs/components/icons/clear-icon.js +1 -0
- package/cjs/components/icons/close-icon.js +2 -1
- package/cjs/components/icons/down-icon.d.ts +4 -0
- package/cjs/components/icons/down-icon.js +26 -0
- package/cjs/components/icons/dustbin-icon.d.ts +4 -0
- package/cjs/components/icons/dustbin-icon.js +26 -0
- package/cjs/components/icons/index.d.ts +3 -0
- package/cjs/components/icons/index.js +21 -0
- package/cjs/components/icons/notice-icon.js +2 -2
- package/cjs/components/icons/right-icon.js +1 -0
- package/cjs/components/icons/search-icon.js +2 -1
- package/cjs/components/icons/up-icon.d.ts +4 -0
- package/cjs/components/icons/up-icon.js +26 -0
- package/cjs/components/icons/warning-icon.js +2 -1
- package/cjs/components/infinite-scroll/index.d.ts +4 -0
- package/cjs/components/infinite-scroll/index.js +9 -0
- package/cjs/components/infinite-scroll/infinite-scroll.css +27 -0
- package/cjs/components/infinite-scroll/infinite-scroll.d.ts +11 -0
- package/cjs/components/infinite-scroll/infinite-scroll.js +278 -0
- package/cjs/components/input/input.css +27 -27
- package/cjs/components/input/input.js +1 -1
- package/cjs/components/list/index.d.ts +16 -0
- package/cjs/components/list/index.js +13 -0
- package/cjs/components/list/list-item.d.ts +15 -0
- package/cjs/components/list/list-item.js +38 -0
- package/cjs/components/list/list.css +101 -0
- package/cjs/components/list/list.d.ts +20 -0
- package/cjs/components/list/list.js +38 -0
- package/cjs/components/number-keyboard/number-keyboard.css +55 -42
- package/cjs/components/number-keyboard/number-keyboard.d.ts +1 -0
- package/cjs/components/number-keyboard/number-keyboard.js +2 -1
- package/cjs/components/picker/picker.css +3 -0
- package/cjs/components/picker-view/picker-view.css +11 -2
- package/cjs/components/popover/arrow.d.ts +3 -0
- package/cjs/components/popover/arrow.js +19 -0
- package/cjs/components/popover/index.d.ts +31 -0
- package/cjs/components/popover/index.js +14 -0
- package/cjs/components/popover/normalize-placement.d.ts +2 -0
- package/cjs/components/popover/normalize-placement.js +20 -0
- package/cjs/components/popover/popover-menu.css +65 -0
- package/cjs/components/popover/popover-menu.d.ts +20 -0
- package/cjs/components/popover/popover-menu.js +74 -0
- package/cjs/components/popover/popover.css +68 -0
- package/cjs/components/popover/popover.d.ts +41 -0
- package/cjs/components/popover/popover.js +280 -0
- package/cjs/components/popover/wrapper.d.ts +10 -0
- package/cjs/components/popover/wrapper.js +53 -0
- package/cjs/components/popup/popup.css +4 -16
- package/cjs/components/protocol/protocol.js +1 -2
- package/cjs/components/pull-to-refresh/pull-to-refresh.css +10 -1
- package/cjs/components/pull-to-refresh/pull-to-refresh.d.ts +1 -1
- package/cjs/components/pull-to-refresh/pull-to-refresh.js +5 -5
- package/cjs/components/radio/radio.css +5 -0
- package/cjs/components/selector/selector.css +1 -1
- package/cjs/components/skeleton/skeleton.css +4 -4
- package/cjs/components/squared-grid/squared-grid.css +1 -2
- package/cjs/components/squared-grid/squared-grid.d.ts +2 -1
- package/cjs/components/squared-grid/squared-grid.js +11 -2
- package/cjs/components/stock-count-keyboard/stock-count-keyboard.css +48 -41
- package/cjs/components/stock-count-keyboard/stock-count-keyboard.js +1 -1
- package/cjs/components/stock-keyboard/alphabet-keyboard.css +186 -0
- package/cjs/components/stock-keyboard/alphabet-keyboard.d.ts +11 -0
- package/cjs/components/stock-keyboard/alphabet-keyboard.js +106 -0
- package/cjs/components/stock-keyboard/index.d.ts +1 -0
- package/cjs/components/stock-keyboard/index.js +1 -0
- package/cjs/components/stock-keyboard/stock-keyboard.css +135 -76
- package/cjs/components/stock-keyboard/stock-keyboard.d.ts +2 -2
- package/cjs/components/stock-keyboard/stock-keyboard.js +42 -10
- package/cjs/components/switch/switch.css +2 -3
- package/cjs/components/tabs/tabs.css +6 -4
- package/cjs/components/tabs/tabs.js +5 -5
- package/cjs/components/tabs/tabs.patch.css +1 -0
- package/cjs/components/toast/index.d.ts +9 -0
- package/cjs/components/toast/index.js +14 -0
- package/cjs/components/toast/methods.d.ts +8 -0
- package/cjs/components/toast/methods.js +72 -0
- package/cjs/components/toast/toast.css +45 -0
- package/cjs/components/toast/toast.d.ts +18 -0
- package/cjs/components/toast/toast.js +85 -0
- package/cjs/components/toast/toast.patch.css +11 -0
- package/cjs/global/global.css +20 -5
- package/cjs/global/theme-dark.css +11 -3
- package/cjs/global/theme-default.css +9 -2
- package/cjs/index.d.ts +4 -0
- package/cjs/index.js +33 -1
- package/es/assets/images/delete_dark.png +0 -0
- package/es/assets/images/keybord_keybord_dark.png +0 -0
- package/es/assets/images/keybord_shift2.png +0 -0
- package/es/assets/images/keybord_shift2_dark.png +0 -0
- package/es/assets/images/keybord_shift_dark.png +0 -0
- package/es/assets/images/loading.gif +0 -0
- package/es/components/alphabet-keyboard/alphabet-keyboard.css +108 -43
- package/es/components/alphabet-keyboard/alphabet-keyboard.js +2 -4
- package/es/components/button/selectorButton.css +2 -0
- package/es/components/button/selectorButton.js +1 -5
- package/es/components/card/card.css +1 -1
- package/es/components/card/card.js +2 -2
- package/es/components/checkbox/checkbox.css +8 -2
- package/es/components/date-range-picker/date-range-picker.css +31 -7
- package/es/components/date-range-picker/date-range-picker.d.ts +1 -0
- package/es/components/date-range-picker/date-range-picker.js +17 -9
- package/es/components/divider/divider.css +4 -3
- package/es/components/header/header.css +7 -1
- package/es/components/header/header.js +4 -2
- package/es/components/icons/back-icon.js +1 -0
- package/es/components/icons/clear-icon.js +1 -0
- package/es/components/icons/close-icon.js +2 -1
- package/es/components/icons/down-icon.d.ts +4 -0
- package/es/components/icons/down-icon.js +18 -0
- package/es/components/icons/dustbin-icon.d.ts +4 -0
- package/es/components/icons/dustbin-icon.js +18 -0
- package/es/components/icons/index.d.ts +3 -0
- package/es/components/icons/index.js +3 -0
- package/es/components/icons/notice-icon.js +2 -2
- package/es/components/icons/right-icon.js +1 -0
- package/es/components/icons/search-icon.js +2 -1
- package/es/components/icons/up-icon.d.ts +4 -0
- package/es/components/icons/up-icon.js +18 -0
- package/es/components/icons/warning-icon.js +2 -1
- package/es/components/infinite-scroll/index.d.ts +4 -0
- package/es/components/infinite-scroll/index.js +3 -0
- package/es/components/infinite-scroll/infinite-scroll.css +27 -0
- package/es/components/infinite-scroll/infinite-scroll.d.ts +11 -0
- package/es/components/infinite-scroll/infinite-scroll.js +268 -0
- package/es/components/input/input.css +27 -27
- package/es/components/input/input.js +1 -1
- package/es/components/list/index.d.ts +16 -0
- package/es/components/list/index.js +7 -0
- package/es/components/list/list-item.d.ts +15 -0
- package/es/components/list/list-item.js +30 -0
- package/es/components/list/list.css +101 -0
- package/es/components/list/list.d.ts +20 -0
- package/es/components/list/list.js +29 -0
- package/es/components/number-keyboard/number-keyboard.css +55 -42
- package/es/components/number-keyboard/number-keyboard.d.ts +1 -0
- package/es/components/number-keyboard/number-keyboard.js +2 -1
- package/es/components/picker/picker.css +3 -0
- package/es/components/picker-view/picker-view.css +11 -2
- package/es/components/popover/arrow.d.ts +3 -0
- package/es/components/popover/arrow.js +11 -0
- package/es/components/popover/index.d.ts +31 -0
- package/es/components/popover/index.js +8 -0
- package/es/components/popover/normalize-placement.d.ts +2 -0
- package/es/components/popover/normalize-placement.js +14 -0
- package/es/components/popover/popover-menu.css +65 -0
- package/es/components/popover/popover-menu.d.ts +20 -0
- package/es/components/popover/popover-menu.js +65 -0
- package/es/components/popover/popover.css +68 -0
- package/es/components/popover/popover.d.ts +41 -0
- package/es/components/popover/popover.js +271 -0
- package/es/components/popover/wrapper.d.ts +10 -0
- package/es/components/popover/wrapper.js +47 -0
- package/es/components/popup/popup.css +4 -16
- package/es/components/protocol/protocol.js +1 -2
- package/es/components/pull-to-refresh/pull-to-refresh.css +10 -1
- package/es/components/pull-to-refresh/pull-to-refresh.d.ts +1 -1
- package/es/components/pull-to-refresh/pull-to-refresh.js +5 -5
- package/es/components/radio/radio.css +5 -0
- package/es/components/selector/selector.css +1 -1
- package/es/components/skeleton/skeleton.css +4 -4
- package/es/components/squared-grid/squared-grid.css +1 -2
- package/es/components/squared-grid/squared-grid.d.ts +2 -1
- package/es/components/squared-grid/squared-grid.js +11 -2
- package/es/components/stock-count-keyboard/stock-count-keyboard.css +48 -41
- package/es/components/stock-count-keyboard/stock-count-keyboard.js +1 -1
- package/es/components/stock-keyboard/alphabet-keyboard.css +186 -0
- package/es/components/stock-keyboard/alphabet-keyboard.d.ts +11 -0
- package/es/components/stock-keyboard/alphabet-keyboard.js +98 -0
- package/es/components/stock-keyboard/index.d.ts +1 -0
- package/es/components/stock-keyboard/index.js +1 -0
- package/es/components/stock-keyboard/stock-keyboard.css +135 -76
- package/es/components/stock-keyboard/stock-keyboard.d.ts +2 -2
- package/es/components/stock-keyboard/stock-keyboard.js +44 -13
- package/es/components/switch/switch.css +2 -3
- package/es/components/tabs/tabs.css +6 -4
- package/es/components/tabs/tabs.js +5 -5
- package/es/components/tabs/tabs.patch.css +1 -0
- package/es/components/toast/index.d.ts +9 -0
- package/es/components/toast/index.js +8 -0
- package/es/components/toast/methods.d.ts +8 -0
- package/es/components/toast/methods.js +63 -0
- package/es/components/toast/toast.css +45 -0
- package/es/components/toast/toast.d.ts +18 -0
- package/es/components/toast/toast.js +75 -0
- package/es/components/toast/toast.patch.css +11 -0
- package/es/global/global.css +20 -5
- package/es/global/theme-dark.css +11 -3
- package/es/global/theme-default.css +9 -2
- package/es/index.d.ts +4 -0
- package/es/index.js +8 -4
- package/package.json +6 -12
|
@@ -1,111 +1,170 @@
|
|
|
1
|
+
html[data-prefers-color-scheme='dark'] .ebscn-stock-keyboard-bottom .ebscn-stock-keyboard-right-delete {
|
|
2
|
+
background: url(../../assets/images/delete_dark.png) var(--ebscn-color-keyboard-fckey-bg) no-repeat center;
|
|
3
|
+
background-size: 25px 25px;
|
|
4
|
+
background-color: var(--ebscn-color-keyboard-fckey-bg);
|
|
5
|
+
}
|
|
6
|
+
html[data-prefers-color-scheme='dark'] .ebscn-stock-keyboard-bottom .ebscn-stock-keyboard-right-delete:active {
|
|
7
|
+
background-color: var(--ebscn-color-keyboard-fckey-bg-active);
|
|
8
|
+
}
|
|
1
9
|
.ebscn-stock-keyboard {
|
|
2
10
|
transform: translateY(101%);
|
|
3
|
-
display: flex;
|
|
4
11
|
position: fixed;
|
|
5
12
|
bottom: 0;
|
|
13
|
+
left: 0;
|
|
6
14
|
flex-direction: row;
|
|
15
|
+
z-index: 999;
|
|
7
16
|
width: 100%;
|
|
8
|
-
height:
|
|
17
|
+
height: 262px;
|
|
9
18
|
transition: all 0.5s;
|
|
10
19
|
align-content: flex-start;
|
|
20
|
+
background-color: #fff;
|
|
21
|
+
background-color: var(--ebscn-color-keyboard-bg);
|
|
22
|
+
}
|
|
23
|
+
.ebscn-stock-keyboard-top {
|
|
24
|
+
padding: 11px 19px 6px 11px;
|
|
25
|
+
background-color: #fff;
|
|
26
|
+
background-color: var(--ebscn-color-background);
|
|
27
|
+
display: flex;
|
|
28
|
+
align-items: center;
|
|
29
|
+
font-size: 18px;
|
|
30
|
+
font-size: var(--ebscn-font-size-8);
|
|
31
|
+
}
|
|
32
|
+
.ebscn-stock-keyboard-top-item {
|
|
33
|
+
margin-right: 24px;
|
|
34
|
+
padding-bottom: 2px;
|
|
35
|
+
color: #666;
|
|
36
|
+
color: var(--ebscn-color-text-secondary);
|
|
37
|
+
line-height: 21px;
|
|
38
|
+
border-bottom: 2px solid transparent;
|
|
39
|
+
}
|
|
40
|
+
.ebscn-stock-keyboard-top-item-active {
|
|
41
|
+
color: #e84225;
|
|
42
|
+
color: var(--ebscn-color-primary);
|
|
43
|
+
position: relative;
|
|
44
|
+
}
|
|
45
|
+
.ebscn-stock-keyboard-top-item-active::after {
|
|
46
|
+
content: "";
|
|
47
|
+
position: absolute;
|
|
48
|
+
bottom: -2px;
|
|
49
|
+
left: 8px;
|
|
50
|
+
width: 14px;
|
|
51
|
+
/* 固定宽度 */
|
|
52
|
+
height: 2px;
|
|
53
|
+
background: var(--ebscn-color-primary);
|
|
54
|
+
border-radius: 1px;
|
|
11
55
|
}
|
|
12
|
-
.ebscn-stock-keyboard
|
|
56
|
+
.ebscn-stock-keyboard-bottom {
|
|
57
|
+
display: flex;
|
|
58
|
+
}
|
|
59
|
+
.ebscn-stock-keyboard-bottom .ebscn-stock-keyboard-right {
|
|
60
|
+
background-color: #d3d5d8;
|
|
61
|
+
background-color: var(--ebscn-color-keyboard-bg);
|
|
13
62
|
display: flex;
|
|
14
63
|
flex-wrap: wrap;
|
|
15
64
|
width: 80%;
|
|
16
|
-
height:
|
|
65
|
+
height: 223px;
|
|
17
66
|
transition: all 0.5s;
|
|
18
67
|
align-content: flex-start;
|
|
19
68
|
}
|
|
20
|
-
.ebscn-stock-keyboard .ebscn-stock-keyboard-right :last-child {
|
|
21
|
-
background:
|
|
22
|
-
color: var(--ebscn-color-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
font-weight: 300;
|
|
32
|
-
box-shadow: 0 0 0 1px var(--ebscn-color-light);
|
|
33
|
-
background: var(--ebscn-color-white);
|
|
34
|
-
}
|
|
35
|
-
.ebscn-stock-keyboard .ebscn-stock-keyboard-right-key:active {
|
|
36
|
-
width: 25%;
|
|
37
|
-
height: 54px;
|
|
38
|
-
line-height: 54px;
|
|
69
|
+
.ebscn-stock-keyboard-bottom .ebscn-stock-keyboard-right :last-child {
|
|
70
|
+
background-color: #e84225;
|
|
71
|
+
background-color: var(--ebscn-color-primary);
|
|
72
|
+
color: #fff;
|
|
73
|
+
}
|
|
74
|
+
.ebscn-stock-keyboard-bottom .ebscn-stock-keyboard-right-key {
|
|
75
|
+
width: calc(25% - 8.5px);
|
|
76
|
+
margin: 6px 3px 0 3px;
|
|
77
|
+
border-radius: 4px;
|
|
78
|
+
height: 46px;
|
|
79
|
+
line-height: 46px;
|
|
39
80
|
text-align: center;
|
|
40
|
-
font-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
81
|
+
font-weight: 400;
|
|
82
|
+
border: 0.5px solid #888;
|
|
83
|
+
border-color: var(--ebscn-color-keyboard-key-border);
|
|
84
|
+
color: #333;
|
|
85
|
+
color: var(--ebscn-color-text);
|
|
86
|
+
font-size: 23px;
|
|
87
|
+
background-color: #fff;
|
|
88
|
+
background-color: var(--ebscn-color-keyboard-key-bg);
|
|
89
|
+
}
|
|
90
|
+
.ebscn-stock-keyboard-bottom .ebscn-stock-keyboard-right-key:active {
|
|
91
|
+
background-color: #e5e5e5;
|
|
92
|
+
background-color: var(--ebscn-color-keyboard-key-bg-active);
|
|
93
|
+
}
|
|
94
|
+
.ebscn-stock-keyboard-bottom .ebscn-stock-keyboard-right-option {
|
|
95
|
+
font-size: 19px;
|
|
47
96
|
font-size: var(--ebscn-font-size-11);
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
97
|
+
color: #333;
|
|
98
|
+
color: var(--ebscn-color-text);
|
|
99
|
+
background-color: #adb3bd;
|
|
100
|
+
background-color: var(--ebscn-color-keyboard-fckey-bg);
|
|
101
|
+
border-color: var(--ebscn-color-keyboard-fckey-border);
|
|
102
|
+
}
|
|
103
|
+
.ebscn-stock-keyboard-bottom .ebscn-stock-keyboard-right-option:active {
|
|
104
|
+
background-color: #252525;
|
|
105
|
+
background-color: var(--ebscn-color-keyboard-fckey-bg-active);
|
|
106
|
+
}
|
|
107
|
+
.ebscn-stock-keyboard-bottom .ebscn-stock-keyboard-right-delete {
|
|
108
|
+
background: url(../../assets/images/delete.png) no-repeat center;
|
|
109
|
+
background-color: #adb3bd;
|
|
110
|
+
background-color: var(--ebscn-color-keyboard-fckey-bg);
|
|
111
|
+
background-size: 25px 25px;
|
|
112
|
+
border-color: var(--ebscn-color-keyboard-fckey-border);
|
|
113
|
+
}
|
|
114
|
+
.ebscn-stock-keyboard-bottom .ebscn-stock-keyboard-right-delete:active {
|
|
115
|
+
background: url(../../assets/images/delete.png) no-repeat center;
|
|
116
|
+
background-color: #252525;
|
|
117
|
+
background-color: var(--ebscn-color-keyboard-fckey-bg-active);
|
|
118
|
+
background-size: 25px 25px;
|
|
119
|
+
}
|
|
120
|
+
.ebscn-stock-keyboard-bottom .ebscn-stock-keyboard-right-confirmKey {
|
|
121
|
+
font-size: 19px;
|
|
51
122
|
font-size: var(--ebscn-font-size-11);
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
.ebscn-stock-keyboard .ebscn-stock-keyboard-right-delete {
|
|
55
|
-
background: url(../../assets/images/delete.png) #e1e3e8 no-repeat center;
|
|
56
|
-
background-size: 24px 24px;
|
|
57
|
-
}
|
|
58
|
-
.ebscn-stock-keyboard .ebscn-stock-keyboard-right-delete:active {
|
|
59
|
-
background: url(../../assets/images/delete.png) #CACBD0 no-repeat center;
|
|
60
|
-
background-size: 24px 24px;
|
|
61
|
-
}
|
|
62
|
-
.ebscn-stock-keyboard .ebscn-stock-keyboard-right-header {
|
|
63
|
-
padding-top: 24px;
|
|
64
|
-
padding-bottom: 16px;
|
|
65
|
-
font-size: var(--ebscn-font-size-10);
|
|
66
|
-
color: #333333;
|
|
67
|
-
text-align: center;
|
|
68
|
-
font-weight: 500;
|
|
69
|
-
}
|
|
70
|
-
.ebscn-stock-keyboard .ebscn-stock-keyboard-right-confirmKey {
|
|
123
|
+
width: calc(25% - 7.5px);
|
|
124
|
+
background-color: #e84225;
|
|
71
125
|
background-color: var(--ebscn-color-primary);
|
|
72
|
-
|
|
73
|
-
height: 54px;
|
|
74
|
-
line-height: 54px;
|
|
75
|
-
text-align: center;
|
|
76
|
-
font-size: var(--ebscn-font-size-11);
|
|
77
|
-
color: #000000;
|
|
78
|
-
font-weight: 300;
|
|
79
|
-
box-shadow: 0 0 0 1px var(--ebscn-color-light);
|
|
126
|
+
border-color: var(--ebscn-color-keyboard-fckey-border);
|
|
80
127
|
}
|
|
81
|
-
.ebscn-stock-keyboard .ebscn-stock-keyboard-right-confirmKey:active {
|
|
82
|
-
background-color: #
|
|
128
|
+
.ebscn-stock-keyboard-bottom .ebscn-stock-keyboard-right-confirmKey:active {
|
|
129
|
+
background-color: #d13c21;
|
|
130
|
+
color: #fff;
|
|
83
131
|
color: var(--ebscn-color-white);
|
|
84
132
|
}
|
|
85
|
-
.ebscn-stock-keyboard .ebscn-stock-keyboard-
|
|
133
|
+
.ebscn-stock-keyboard-bottom .ebscn-stock-keyboard-right-bottom-option {
|
|
134
|
+
font-size: 19px;
|
|
135
|
+
font-size: var(--ebscn-font-size-11);
|
|
136
|
+
}
|
|
137
|
+
.ebscn-stock-keyboard-bottom .ebscn-stock-keyboard-left {
|
|
86
138
|
width: 20%;
|
|
87
|
-
|
|
139
|
+
background-color: #d3d5d8;
|
|
140
|
+
background-color: var(--ebscn-color-keyboard-bg);
|
|
88
141
|
}
|
|
89
|
-
.ebscn-stock-keyboard .ebscn-stock-keyboard-left-key {
|
|
142
|
+
.ebscn-stock-keyboard-bottom .ebscn-stock-keyboard-left-key {
|
|
90
143
|
display: flex;
|
|
91
144
|
align-items: center;
|
|
92
145
|
justify-content: center;
|
|
93
|
-
|
|
146
|
+
border-radius: 4.17px;
|
|
147
|
+
height: 46px;
|
|
148
|
+
margin: 6px 3px 6px 6px;
|
|
149
|
+
font-size: 18px;
|
|
94
150
|
font-size: var(--ebscn-font-size-10);
|
|
95
151
|
font-weight: 400;
|
|
96
152
|
text-align: center;
|
|
97
|
-
color: #
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
background: #
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
153
|
+
color: #333;
|
|
154
|
+
color: var(--ebscn-color-text);
|
|
155
|
+
line-height: 46px;
|
|
156
|
+
background-color: #adb3bd;
|
|
157
|
+
background-color: var(--ebscn-color-keyboard-fckey-bg);
|
|
158
|
+
border: 0.5px solid #888;
|
|
159
|
+
border-color: var(--ebscn-color-keyboard-fckey-border);
|
|
160
|
+
}
|
|
161
|
+
.ebscn-stock-keyboard-bottom .ebscn-stock-keyboard-left-key:active {
|
|
162
|
+
background-color: #252525;
|
|
163
|
+
background: var(--ebscn-color-keyboard-fckey-bg-active);
|
|
105
164
|
}
|
|
106
165
|
@supports (bottom: env(safe-area-inset-bottom)) or (constant(safe-area-inset-bottom)) {
|
|
107
166
|
.ebscn-stock-keyboard {
|
|
108
|
-
height: calc(
|
|
109
|
-
height: calc(
|
|
167
|
+
height: calc(262px + env(safe-area-inset-bottom));
|
|
168
|
+
height: calc(262px + constant(safe-area-inset-bottom));
|
|
110
169
|
}
|
|
111
170
|
}
|
|
@@ -3,10 +3,10 @@ import { NativeProps } from '../../utils/native-props';
|
|
|
3
3
|
export type StockKeyboardProps = {
|
|
4
4
|
visible?: boolean;
|
|
5
5
|
onInput: Function;
|
|
6
|
-
onChangeKeyBoard: Function;
|
|
7
6
|
onDelete: Function;
|
|
8
7
|
onClose: Function;
|
|
9
8
|
onClean: Function;
|
|
10
|
-
onConfirm
|
|
9
|
+
onConfirm: Function;
|
|
10
|
+
onSelectCN: Function;
|
|
11
11
|
} & NativeProps;
|
|
12
12
|
export declare function StockKeyboard(p: StockKeyboardProps): JSX.Element;
|
|
@@ -8,6 +8,7 @@ var _classnames = _interopRequireDefault(require("classnames"));
|
|
|
8
8
|
var _react = _interopRequireWildcard(require("react"));
|
|
9
9
|
var _nativeProps = require("../../utils/native-props");
|
|
10
10
|
var _withDefaultProps = require("../../utils/with-default-props");
|
|
11
|
+
var _alphabetKeyboard = require("./alphabet-keyboard");
|
|
11
12
|
function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function (e) { return e ? t : r; })(e); }
|
|
12
13
|
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != typeof e && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && Object.prototype.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
|
|
13
14
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
@@ -24,13 +25,15 @@ function StockKeyboard(p) {
|
|
|
24
25
|
onClose = props.onClose,
|
|
25
26
|
onClean = props.onClean,
|
|
26
27
|
onConfirm = props.onConfirm,
|
|
27
|
-
|
|
28
|
-
var keys = [1, 2, 3, 'X', 4, 5, 6, '清除', 7, 8, 9, '隐藏', 'ABC', 0, '', '确定'];
|
|
29
|
-
var leftKeys = ['600', '601', '000', '
|
|
28
|
+
onSelectCN = props.onSelectCN;
|
|
29
|
+
var keys = [1, 2, 3, 'X', 4, 5, 6, '清除', 7, 8, 9, '隐藏', 'ABC', 0, '002', '确定'];
|
|
30
|
+
var leftKeys = ['600', '601', '000', '300'];
|
|
30
31
|
var hideTimer = (0, _react.useRef)(null);
|
|
31
32
|
var appearTimer = (0, _react.useRef)(null);
|
|
32
33
|
var lastVisible = (0, _react.useRef)(null);
|
|
33
|
-
var
|
|
34
|
+
var _a = (0, _react.useState)(1),
|
|
35
|
+
keyboardType = _a[0],
|
|
36
|
+
setKeyboardType = _a[1];
|
|
34
37
|
(0, _react.useEffect)(function () {
|
|
35
38
|
if (!visible) {
|
|
36
39
|
if (lastVisible.current) {
|
|
@@ -70,7 +73,9 @@ function StockKeyboard(p) {
|
|
|
70
73
|
case '确定':
|
|
71
74
|
return onConfirm === null || onConfirm === void 0 ? void 0 : onConfirm();
|
|
72
75
|
case 'ABC':
|
|
73
|
-
|
|
76
|
+
setKeyboardType(2);
|
|
77
|
+
return;
|
|
78
|
+
//return onChangeKeyBoard?.()
|
|
74
79
|
default:
|
|
75
80
|
return onInput === null || onInput === void 0 ? void 0 : onInput(key);
|
|
76
81
|
}
|
|
@@ -79,29 +84,56 @@ function StockKeyboard(p) {
|
|
|
79
84
|
ref: keyboardRef,
|
|
80
85
|
className: "".concat(classPrefix)
|
|
81
86
|
}, _react.default.createElement("div", {
|
|
87
|
+
className: "".concat(classPrefix, "-top")
|
|
88
|
+
}, _react.default.createElement("div", {
|
|
89
|
+
onClick: function () {
|
|
90
|
+
return setKeyboardType(1);
|
|
91
|
+
},
|
|
92
|
+
className: "".concat(classPrefix, "-top-item ").concat(keyboardType === 1 ? "".concat(classPrefix, "-top-item-active") : '')
|
|
93
|
+
}, "123"), _react.default.createElement("div", {
|
|
94
|
+
onClick: function () {
|
|
95
|
+
return setKeyboardType(2);
|
|
96
|
+
},
|
|
97
|
+
className: "".concat(classPrefix, "-top-item ").concat(keyboardType === 2 ? "".concat(classPrefix, "-top-item-active") : '')
|
|
98
|
+
}, "ABC"), _react.default.createElement("div", {
|
|
99
|
+
onClick: function () {
|
|
100
|
+
return onSelectCN();
|
|
101
|
+
},
|
|
102
|
+
className: "".concat(classPrefix, "-top-item")
|
|
103
|
+
}, "\u4E2D\u6587")), keyboardType === 1 ? _react.default.createElement("div", {
|
|
104
|
+
className: "".concat(classPrefix, "-bottom")
|
|
105
|
+
}, ' ', _react.default.createElement("div", {
|
|
82
106
|
className: "".concat(classPrefix, "-left")
|
|
83
107
|
}, leftKeys.map(function (item, index) {
|
|
84
108
|
return _react.default.createElement("div", {
|
|
85
109
|
key: item || index,
|
|
86
110
|
className: "".concat(classPrefix, "-left-key"),
|
|
87
|
-
|
|
111
|
+
onTouchStart: function () {
|
|
88
112
|
if (visible) {
|
|
89
113
|
onKeyPress(item);
|
|
90
114
|
}
|
|
91
115
|
}
|
|
92
116
|
}, item !== 'X' ? item : '');
|
|
93
117
|
})), _react.default.createElement("div", {
|
|
94
|
-
ref: keyboardRef,
|
|
95
118
|
className: "".concat(classPrefix, "-right")
|
|
96
119
|
}, keys.map(function (item, index) {
|
|
97
120
|
return _react.default.createElement("div", {
|
|
98
121
|
key: item || index,
|
|
99
|
-
className: (0, _classnames.default)(item !== '确定' ? "".concat(classPrefix, "-right-key")
|
|
100
|
-
|
|
122
|
+
className: (0, _classnames.default)("".concat(classPrefix, "-right-key"), item !== '确定' ? '' : "".concat(classPrefix, "-right-key ").concat(classPrefix, "-right-confirmKey"), item === 'ABC' || item === '002' ? "".concat(classPrefix, "-right-bottom-option") : '', typeof item !== 'number' && item !== 'ABC' && item !== '002' && item.length && item !== '.' && item !== '确定' ? "".concat(classPrefix, "-right-option") : item == '确定' ? "".concat(classPrefix, "-right-confirmKey") : "".concat(classPrefix, "-right-number-key"), item === 'X' && "".concat(classPrefix, "-right-delete")),
|
|
123
|
+
onTouchStart: function () {
|
|
101
124
|
if (visible) {
|
|
102
125
|
onKeyPress(item);
|
|
103
126
|
}
|
|
104
127
|
}
|
|
105
128
|
}, item !== 'X' ? item : '');
|
|
106
|
-
})))
|
|
129
|
+
}))) : _react.default.createElement(_alphabetKeyboard.AlphabetKeyboard, {
|
|
130
|
+
visible: true,
|
|
131
|
+
onConfirm: onConfirm,
|
|
132
|
+
onDelete: onDelete,
|
|
133
|
+
onClose: onClose,
|
|
134
|
+
onInput: onInput,
|
|
135
|
+
onChangeKeyBoard: function () {
|
|
136
|
+
return setKeyboardType(1);
|
|
137
|
+
}
|
|
138
|
+
})));
|
|
107
139
|
}
|
|
@@ -44,7 +44,7 @@
|
|
|
44
44
|
height: calc(var(--height) - 2 * var(--border-width));
|
|
45
45
|
border-radius: calc(var(--height) - 2 * var(--border-width));
|
|
46
46
|
box-sizing: border-box;
|
|
47
|
-
background: #
|
|
47
|
+
background: #d8d8d8;
|
|
48
48
|
z-index: 1;
|
|
49
49
|
transition: all 200ms;
|
|
50
50
|
transform: scale(1);
|
|
@@ -62,7 +62,6 @@
|
|
|
62
62
|
top: var(--border-width);
|
|
63
63
|
left: var(--border-width);
|
|
64
64
|
transition: all 200ms;
|
|
65
|
-
box-shadow: 0 0 2px 0 rgba(0, 0, 0, 0.2), 0 2px 11.5px 0 rgba(0, 0, 0, 0.08), -1px 2px 2px 0 rgba(0, 0, 0, 0.1);
|
|
66
65
|
color: var(--ebscn-color-primary);
|
|
67
66
|
}
|
|
68
67
|
.ebscn-switch-inner {
|
|
@@ -95,7 +94,7 @@
|
|
|
95
94
|
opacity: 0.4;
|
|
96
95
|
}
|
|
97
96
|
.ebscn-switch.ebscn-switch-disabled:before {
|
|
98
|
-
background-color: #
|
|
97
|
+
background-color: #e9e9ea;
|
|
99
98
|
}
|
|
100
99
|
.ebscn-switch-spin-icon {
|
|
101
100
|
width: 14px;
|
|
@@ -10,9 +10,9 @@
|
|
|
10
10
|
}
|
|
11
11
|
.ebscn-tabs-header {
|
|
12
12
|
position: relative;
|
|
13
|
-
border-bottom: solid 1px var(--ebscn-color-border);
|
|
14
13
|
}
|
|
15
14
|
.ebscn-tabs-tab-list {
|
|
15
|
+
padding: 0 6px;
|
|
16
16
|
display: flex;
|
|
17
17
|
flex-wrap: nowrap;
|
|
18
18
|
justify-content: flex-start;
|
|
@@ -25,22 +25,24 @@
|
|
|
25
25
|
display: none;
|
|
26
26
|
}
|
|
27
27
|
.ebscn-tabs-tab-wrapper {
|
|
28
|
-
padding: 0
|
|
28
|
+
padding: 0 10px;
|
|
29
29
|
}
|
|
30
30
|
.ebscn-tabs-tab-wrapper-stretch {
|
|
31
31
|
flex: auto;
|
|
32
32
|
}
|
|
33
33
|
.ebscn-tabs-tab {
|
|
34
34
|
white-space: nowrap;
|
|
35
|
-
padding: 8px 0
|
|
35
|
+
padding: 8px 0 5px;
|
|
36
36
|
width: -webkit-min-content;
|
|
37
37
|
width: min-content;
|
|
38
38
|
margin: 0 auto;
|
|
39
|
-
font-size:
|
|
39
|
+
font-size: 16px;
|
|
40
40
|
position: relative;
|
|
41
41
|
cursor: pointer;
|
|
42
|
+
color: var(--ebscn-color-text-secondary);
|
|
42
43
|
}
|
|
43
44
|
.ebscn-tabs-tab-active {
|
|
45
|
+
font-weight: 500;
|
|
44
46
|
color: var(--active-title-color);
|
|
45
47
|
}
|
|
46
48
|
.ebscn-tabs-tab-disabled {
|
|
@@ -27,7 +27,7 @@ var Tab = function () {
|
|
|
27
27
|
exports.Tab = Tab;
|
|
28
28
|
var defaultProps = {
|
|
29
29
|
activeMode: 'underline',
|
|
30
|
-
activeLineMode: '
|
|
30
|
+
activeLineMode: 'fixed',
|
|
31
31
|
stretch: true,
|
|
32
32
|
direction: 'ltr'
|
|
33
33
|
};
|
|
@@ -132,13 +132,13 @@ var Tabs = function (p) {
|
|
|
132
132
|
var x = 0;
|
|
133
133
|
var width = 0;
|
|
134
134
|
if (props.activeLineMode === 'auto') {
|
|
135
|
-
x = activeTabLeft;
|
|
135
|
+
x = activeTabLeft - 6;
|
|
136
136
|
width = activeTabWidth;
|
|
137
137
|
} else if (props.activeLineMode === 'full') {
|
|
138
|
-
x = activeTabWrapperLeft;
|
|
138
|
+
x = activeTabWrapperLeft - 6;
|
|
139
139
|
width = activeTabWrapperWidth;
|
|
140
140
|
} else {
|
|
141
|
-
x = activeTabLeft + (activeTabWidth - activeLineWidth) / 2;
|
|
141
|
+
x = activeTabLeft + (activeTabWidth - activeLineWidth) / 2 - 6;
|
|
142
142
|
}
|
|
143
143
|
if (isRTL) {
|
|
144
144
|
/**
|
|
@@ -252,7 +252,7 @@ var Tabs = function (p) {
|
|
|
252
252
|
ref: activeLineRef,
|
|
253
253
|
className: "".concat(classPrefix, "-tab-line"),
|
|
254
254
|
style: {
|
|
255
|
-
width: props.activeLineMode === 'fixed' ? 'var(--fixed-active-line-width,
|
|
255
|
+
width: props.activeLineMode === 'fixed' ? 'var(--fixed-active-line-width, 14px)' : width,
|
|
256
256
|
x: x
|
|
257
257
|
}
|
|
258
258
|
}), panes.map(function (pane) {
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.default = void 0;
|
|
7
|
+
require("./toast.css");
|
|
8
|
+
var _methods = require("./methods");
|
|
9
|
+
var Toast = {
|
|
10
|
+
show: _methods.show,
|
|
11
|
+
clear: _methods.clear,
|
|
12
|
+
config: _methods.config
|
|
13
|
+
};
|
|
14
|
+
var _default = exports.default = Toast;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { ToastProps } from './toast';
|
|
2
|
+
export type ToastShowProps = Omit<ToastProps, 'visible'>;
|
|
3
|
+
export type ToastHandler = {
|
|
4
|
+
close: () => void;
|
|
5
|
+
};
|
|
6
|
+
export declare function show(p: ToastShowProps | string): ToastHandler;
|
|
7
|
+
export declare function clear(): void;
|
|
8
|
+
export declare function config(val: Pick<ToastProps, 'duration' | 'position' | 'maskClickable'>): void;
|
|
@@ -0,0 +1,72 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.clear = clear;
|
|
7
|
+
exports.config = config;
|
|
8
|
+
exports.show = show;
|
|
9
|
+
var _react = _interopRequireDefault(require("react"));
|
|
10
|
+
var _toast = require("./toast");
|
|
11
|
+
var _withDefaultProps = require("../../utils/with-default-props");
|
|
12
|
+
var _renderImperatively = require("../../utils/render-imperatively");
|
|
13
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
14
|
+
var __assign = void 0 && (void 0).__assign || function () {
|
|
15
|
+
__assign = Object.assign || function (t) {
|
|
16
|
+
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
17
|
+
s = arguments[i];
|
|
18
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];
|
|
19
|
+
}
|
|
20
|
+
return t;
|
|
21
|
+
};
|
|
22
|
+
return __assign.apply(this, arguments);
|
|
23
|
+
};
|
|
24
|
+
var currentHandler = null;
|
|
25
|
+
var currentTimeout = null;
|
|
26
|
+
var defaultProps = {
|
|
27
|
+
duration: 2000,
|
|
28
|
+
position: 'center',
|
|
29
|
+
maskClickable: true
|
|
30
|
+
};
|
|
31
|
+
var ToastInner = function (props) {
|
|
32
|
+
return _react.default.createElement(_toast.InternalToast, __assign({}, props));
|
|
33
|
+
};
|
|
34
|
+
function show(p) {
|
|
35
|
+
var props = (0, _withDefaultProps.mergeProps)(defaultProps, typeof p === 'string' ? {
|
|
36
|
+
content: p
|
|
37
|
+
} : p);
|
|
38
|
+
var element = _react.default.createElement(ToastInner, __assign({}, props, {
|
|
39
|
+
onClose: function () {
|
|
40
|
+
currentHandler = null;
|
|
41
|
+
}
|
|
42
|
+
}));
|
|
43
|
+
if (currentHandler) {
|
|
44
|
+
currentHandler.replace(element);
|
|
45
|
+
} else {
|
|
46
|
+
currentHandler = (0, _renderImperatively.renderImperatively)(element);
|
|
47
|
+
}
|
|
48
|
+
if (currentTimeout) {
|
|
49
|
+
window.clearTimeout(currentTimeout);
|
|
50
|
+
}
|
|
51
|
+
if (props.duration !== 0) {
|
|
52
|
+
currentTimeout = window.setTimeout(function () {
|
|
53
|
+
clear();
|
|
54
|
+
}, props.duration);
|
|
55
|
+
}
|
|
56
|
+
return currentHandler;
|
|
57
|
+
}
|
|
58
|
+
function clear() {
|
|
59
|
+
currentHandler === null || currentHandler === void 0 ? void 0 : currentHandler.close();
|
|
60
|
+
currentHandler = null;
|
|
61
|
+
}
|
|
62
|
+
function config(val) {
|
|
63
|
+
if (val.duration !== undefined) {
|
|
64
|
+
defaultProps.duration = val.duration;
|
|
65
|
+
}
|
|
66
|
+
if (val.position !== undefined) {
|
|
67
|
+
defaultProps.position = val.position;
|
|
68
|
+
}
|
|
69
|
+
if (val.maskClickable !== undefined) {
|
|
70
|
+
defaultProps.maskClickable = val.maskClickable;
|
|
71
|
+
}
|
|
72
|
+
}
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
.ebscn-toast-mask .ebscn-toast-wrap {
|
|
2
|
+
position: fixed;
|
|
3
|
+
top: 0;
|
|
4
|
+
left: 0;
|
|
5
|
+
width: 100%;
|
|
6
|
+
height: 100%;
|
|
7
|
+
text-align: center;
|
|
8
|
+
}
|
|
9
|
+
.ebscn-toast-mask .ebscn-toast-main {
|
|
10
|
+
display: inline-block;
|
|
11
|
+
position: relative;
|
|
12
|
+
top: 50%;
|
|
13
|
+
transform: translateY(-50%);
|
|
14
|
+
width: auto;
|
|
15
|
+
max-width: 204px;
|
|
16
|
+
max-height: 70%;
|
|
17
|
+
overflow: auto;
|
|
18
|
+
color: white;
|
|
19
|
+
word-break: break-all;
|
|
20
|
+
background-color: rgba(0, 0, 0, 0.7);
|
|
21
|
+
border-radius: 8px;
|
|
22
|
+
pointer-events: all;
|
|
23
|
+
font-size: var(--ebscn-font-size-7);
|
|
24
|
+
line-height: 1.5;
|
|
25
|
+
box-sizing: border-box;
|
|
26
|
+
text-align: initial;
|
|
27
|
+
}
|
|
28
|
+
.ebscn-toast-mask .ebscn-toast-main-text {
|
|
29
|
+
padding: 12px;
|
|
30
|
+
min-width: 0px;
|
|
31
|
+
}
|
|
32
|
+
.ebscn-toast-mask .ebscn-toast-main-icon {
|
|
33
|
+
padding: 35px 12px;
|
|
34
|
+
min-width: 150px;
|
|
35
|
+
}
|
|
36
|
+
.ebscn-toast-mask .ebscn-toast-main-icon .ebscn-toast-icon {
|
|
37
|
+
text-align: center;
|
|
38
|
+
margin-bottom: 8px;
|
|
39
|
+
font-size: 36px;
|
|
40
|
+
line-height: 1;
|
|
41
|
+
}
|
|
42
|
+
.ebscn-toast-loading {
|
|
43
|
+
--size: 48px;
|
|
44
|
+
margin: 0 auto 8px;
|
|
45
|
+
}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import type { FC, ReactNode } from 'react';
|
|
2
|
+
import type { MaskProps } from '../mask';
|
|
3
|
+
import { PropagationEvent } from '../../utils/with-stop-propagation';
|
|
4
|
+
import { GetContainer } from '../../utils/render-to-container';
|
|
5
|
+
export interface ToastProps {
|
|
6
|
+
afterClose?: () => void;
|
|
7
|
+
maskStyle?: MaskProps['style'];
|
|
8
|
+
maskClassName?: string;
|
|
9
|
+
maskClickable?: boolean;
|
|
10
|
+
content?: ReactNode;
|
|
11
|
+
icon?: 'success' | 'fail' | ReactNode;
|
|
12
|
+
duration?: number;
|
|
13
|
+
position?: 'top' | 'bottom' | 'center';
|
|
14
|
+
visible?: boolean;
|
|
15
|
+
getContainer?: GetContainer;
|
|
16
|
+
stopPropagation?: PropagationEvent[];
|
|
17
|
+
}
|
|
18
|
+
export declare const InternalToast: FC<ToastProps>;
|