@pisell/materials 1.0.1057 → 1.0.1059
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/build/lowcode/assets-daily.json +11 -11
- package/build/lowcode/assets-dev.json +2 -2
- package/build/lowcode/assets-prod.json +11 -11
- package/build/lowcode/index.js +1 -1
- package/build/lowcode/meta.js +3 -3
- package/build/lowcode/preview.js +9 -9
- package/build/lowcode/render/default/view.css +1 -1
- package/build/lowcode/render/default/view.js +20 -20
- package/build/lowcode/view.css +1 -1
- package/build/lowcode/view.js +23 -23
- package/es/components/PisellCards/index.d.ts +3 -0
- package/es/components/PisellCards/index.js +3 -1
- package/es/components/PisellContactBrief/PisellContactBrief.d.ts +13 -0
- package/es/components/PisellContactBrief/PisellContactBrief.js +223 -0
- package/es/components/PisellContactBrief/PisellContactBrief.less +192 -0
- package/es/components/PisellContactBrief/PisellContactBrief.stories.d.ts +31 -0
- package/es/components/PisellContactBrief/PisellContactBrief.stories.js +196 -0
- package/es/components/PisellContactBrief/components/ContactFormModal.d.ts +23 -0
- package/es/components/PisellContactBrief/components/ContactFormModal.js +177 -0
- package/es/components/PisellContactBrief/components/index.d.ts +5 -0
- package/es/components/PisellContactBrief/components/index.js +4 -0
- package/es/components/PisellContactBrief/index.d.ts +6 -0
- package/es/components/PisellContactBrief/index.js +5 -0
- package/es/components/PisellContactBrief/locales.d.ts +55 -0
- package/es/components/PisellContactBrief/locales.js +54 -0
- package/es/components/PisellContactBrief/types.d.ts +82 -0
- package/es/components/PisellContactBrief/types.js +1 -0
- package/es/components/dataSourceComponents/fields/Tabs/Tabs.less +8 -0
- package/es/components/pisellActionPanel/PisellActionPanel.d.ts +13 -0
- package/es/components/pisellActionPanel/PisellActionPanel.js +98 -0
- package/es/components/pisellActionPanel/PisellActionPanel.less +69 -0
- package/es/components/pisellActionPanel/PisellActionPanel.stories.d.ts +19 -0
- package/es/components/pisellActionPanel/PisellActionPanel.stories.js +208 -0
- package/es/components/pisellActionPanel/index.d.ts +6 -0
- package/es/components/pisellActionPanel/index.js +5 -0
- package/es/components/pisellActionPanel/types.d.ts +83 -0
- package/es/components/pisellActionPanel/types.js +1 -0
- package/es/components/pisellBaseCard/PisellBaseCard.d.ts +8 -0
- package/es/components/pisellBaseCard/PisellBaseCard.js +96 -0
- package/es/components/pisellBaseCard/PisellBaseCard.less +25 -0
- package/es/components/pisellBaseCard/PisellBaseCard.stories.d.ts +19 -0
- package/es/components/pisellBaseCard/PisellBaseCard.stories.js +99 -0
- package/es/components/pisellBaseCard/index.d.ts +5 -0
- package/es/components/pisellBaseCard/index.js +4 -0
- package/es/components/pisellBaseCard/types.d.ts +45 -0
- package/es/components/pisellBaseCard/types.js +1 -0
- package/es/components/pisellCurrency/PisellCurrency.js +18 -12
- package/es/components/pisellCurrency/PisellCurrency.less +0 -123
- package/es/components/pisellCustomerBrief/PisellCustomerBrief.d.ts +15 -0
- package/es/components/pisellCustomerBrief/PisellCustomerBrief.js +145 -0
- package/es/components/pisellCustomerBrief/PisellCustomerBrief.less +8 -0
- package/es/components/pisellCustomerBrief/PisellCustomerBrief.stories.d.ts +23 -0
- package/es/components/pisellCustomerBrief/PisellCustomerBrief.stories.js +193 -0
- package/es/components/pisellCustomerBrief/index.d.ts +6 -0
- package/es/components/pisellCustomerBrief/index.js +5 -0
- package/es/components/pisellCustomerBrief/types.d.ts +82 -0
- package/es/components/pisellCustomerBrief/types.js +1 -0
- package/es/components/pisellEmail/PisellEmail.js +48 -42
- package/es/components/pisellEmail/PisellEmail.less +0 -92
- package/es/components/pisellEntityCard/PisellEntityCard.d.ts +8 -0
- package/es/components/pisellEntityCard/PisellEntityCard.js +474 -0
- package/es/components/pisellEntityCard/PisellEntityCard.less +362 -0
- package/es/components/pisellEntityCard/PisellEntityCard.stories.d.ts +47 -0
- package/es/components/pisellEntityCard/PisellEntityCard.stories.js +450 -0
- package/es/components/pisellEntityCard/index.d.ts +5 -0
- package/es/components/pisellEntityCard/index.js +4 -0
- package/es/components/pisellEntityCard/types.d.ts +144 -0
- package/es/components/pisellEntityCard/types.js +1 -0
- package/es/components/pisellFloorMapLayout/PisellFloorMapLayout.js +32 -4
- package/es/components/pisellFloorMapLayout/PisellFloorMapLayout.stories.js +4 -2
- package/es/components/pisellFloorMapLayout/components/ViewControls.d.ts +4 -0
- package/es/components/pisellFloorMapLayout/components/ViewControls.js +12 -2
- package/es/components/pisellFloorMapLayout/types.d.ts +2 -0
- package/es/components/pisellLongText/PisellLongText.js +18 -12
- package/es/components/pisellLongText/PisellLongText.less +0 -67
- package/es/components/pisellLookup/PisellLookup.js +8 -1
- package/es/components/pisellMultipleSelect/PisellMultipleSelect.js +14 -6
- package/es/components/pisellMultipleSelect/PisellMultipleSelect.less +18 -139
- package/es/components/pisellMultipleSelect/components/EditView.js +1 -0
- package/es/components/pisellNumber/PisellNumber.js +18 -12
- package/es/components/pisellNumber/PisellNumber.less +0 -103
- package/es/components/pisellPhone/PisellPhone.js +18 -12
- package/es/components/pisellPhone/PisellPhone.less +0 -119
- package/es/components/pisellPhone/components/EditView.js +44 -33
- package/es/components/pisellPhone/constants/countryCodes.d.ts +1 -0
- package/es/components/pisellPhone/constants/countryCodes.js +26 -25
- package/es/components/pisellPhone/types.d.ts +2 -2
- package/es/components/pisellPhone/utils/countryCodeHelper.d.ts +4 -4
- package/es/components/pisellPhone/utils/countryCodeHelper.js +5 -5
- package/es/components/pisellRating/PisellRating.js +7 -3
- package/es/components/pisellSingleLineText/PisellSingleLineText.js +27 -20
- package/es/components/pisellSingleLineText/PisellSingleLineText.less +58 -201
- package/es/components/pisellSingleSelect/PisellSingleSelect.js +14 -5
- package/es/components/pisellSingleSelect/PisellSingleSelect.less +5 -106
- package/es/components/pisellUrl/PisellUrl.js +48 -42
- package/es/components/pisellWalletPassCard/index.js +2 -1
- package/es/index.d.ts +15 -4
- package/es/index.js +8 -4
- package/es/theme/pisell-components.d.ts +14 -0
- package/es/theme/pisell-components.js +74 -0
- package/lib/components/PisellCards/index.d.ts +3 -0
- package/lib/components/PisellCards/index.js +3 -1
- package/lib/components/PisellContactBrief/PisellContactBrief.d.ts +13 -0
- package/lib/components/PisellContactBrief/PisellContactBrief.js +231 -0
- package/lib/components/PisellContactBrief/PisellContactBrief.less +192 -0
- package/lib/components/PisellContactBrief/PisellContactBrief.stories.d.ts +31 -0
- package/lib/components/PisellContactBrief/PisellContactBrief.stories.js +188 -0
- package/lib/components/PisellContactBrief/components/ContactFormModal.d.ts +23 -0
- package/lib/components/PisellContactBrief/components/ContactFormModal.js +154 -0
- package/lib/components/PisellContactBrief/components/index.d.ts +5 -0
- package/lib/components/PisellContactBrief/components/index.js +29 -0
- package/lib/components/PisellContactBrief/index.d.ts +6 -0
- package/lib/components/PisellContactBrief/index.js +29 -0
- package/lib/components/PisellContactBrief/locales.d.ts +55 -0
- package/lib/components/PisellContactBrief/locales.js +74 -0
- package/lib/components/PisellContactBrief/types.d.ts +82 -0
- package/lib/components/PisellContactBrief/types.js +17 -0
- package/lib/components/dataSourceComponents/fields/Tabs/Tabs.less +8 -0
- package/lib/components/pisellActionPanel/PisellActionPanel.d.ts +13 -0
- package/lib/components/pisellActionPanel/PisellActionPanel.js +124 -0
- package/lib/components/pisellActionPanel/PisellActionPanel.less +69 -0
- package/lib/components/pisellActionPanel/PisellActionPanel.stories.d.ts +19 -0
- package/lib/components/pisellActionPanel/PisellActionPanel.stories.js +186 -0
- package/lib/components/pisellActionPanel/index.d.ts +6 -0
- package/lib/components/pisellActionPanel/index.js +29 -0
- package/lib/components/pisellActionPanel/types.d.ts +83 -0
- package/lib/components/pisellActionPanel/types.js +17 -0
- package/lib/components/pisellBaseCard/PisellBaseCard.d.ts +8 -0
- package/lib/components/pisellBaseCard/PisellBaseCard.js +124 -0
- package/lib/components/pisellBaseCard/PisellBaseCard.less +25 -0
- package/lib/components/pisellBaseCard/PisellBaseCard.stories.d.ts +19 -0
- package/lib/components/pisellBaseCard/PisellBaseCard.stories.js +107 -0
- package/lib/components/pisellBaseCard/index.d.ts +5 -0
- package/lib/components/pisellBaseCard/index.js +29 -0
- package/lib/components/pisellBaseCard/types.d.ts +45 -0
- package/lib/components/pisellBaseCard/types.js +17 -0
- package/lib/components/pisellCurrency/PisellCurrency.js +16 -10
- package/lib/components/pisellCurrency/PisellCurrency.less +0 -123
- package/lib/components/pisellCustomerBrief/PisellCustomerBrief.d.ts +15 -0
- package/lib/components/pisellCustomerBrief/PisellCustomerBrief.js +143 -0
- package/lib/components/pisellCustomerBrief/PisellCustomerBrief.less +8 -0
- package/lib/components/pisellCustomerBrief/PisellCustomerBrief.stories.d.ts +23 -0
- package/lib/components/pisellCustomerBrief/PisellCustomerBrief.stories.js +171 -0
- package/lib/components/pisellCustomerBrief/index.d.ts +6 -0
- package/lib/components/pisellCustomerBrief/index.js +29 -0
- package/lib/components/pisellCustomerBrief/types.d.ts +82 -0
- package/lib/components/pisellCustomerBrief/types.js +17 -0
- package/lib/components/pisellEmail/PisellEmail.js +16 -10
- package/lib/components/pisellEmail/PisellEmail.less +0 -92
- package/lib/components/pisellEntityCard/PisellEntityCard.d.ts +8 -0
- package/lib/components/pisellEntityCard/PisellEntityCard.js +426 -0
- package/lib/components/pisellEntityCard/PisellEntityCard.less +362 -0
- package/lib/components/pisellEntityCard/PisellEntityCard.stories.d.ts +47 -0
- package/lib/components/pisellEntityCard/PisellEntityCard.stories.js +349 -0
- package/lib/components/pisellEntityCard/index.d.ts +5 -0
- package/lib/components/pisellEntityCard/index.js +29 -0
- package/lib/components/pisellEntityCard/types.d.ts +144 -0
- package/lib/components/pisellEntityCard/types.js +17 -0
- package/lib/components/pisellFloorMapLayout/PisellFloorMapLayout.js +22 -3
- package/lib/components/pisellFloorMapLayout/PisellFloorMapLayout.stories.js +2 -2
- package/lib/components/pisellFloorMapLayout/components/ViewControls.d.ts +4 -0
- package/lib/components/pisellFloorMapLayout/components/ViewControls.js +11 -1
- package/lib/components/pisellFloorMapLayout/types.d.ts +2 -0
- package/lib/components/pisellLongText/PisellLongText.js +16 -10
- package/lib/components/pisellLongText/PisellLongText.less +0 -67
- package/lib/components/pisellLookup/PisellLookup.js +5 -1
- package/lib/components/pisellMultipleSelect/PisellMultipleSelect.js +62 -53
- package/lib/components/pisellMultipleSelect/PisellMultipleSelect.less +18 -139
- package/lib/components/pisellMultipleSelect/components/EditView.js +42 -30
- package/lib/components/pisellNumber/PisellNumber.js +16 -10
- package/lib/components/pisellNumber/PisellNumber.less +0 -103
- package/lib/components/pisellPhone/PisellPhone.js +16 -10
- package/lib/components/pisellPhone/PisellPhone.less +0 -119
- package/lib/components/pisellPhone/components/EditView.js +40 -24
- package/lib/components/pisellPhone/constants/countryCodes.d.ts +1 -0
- package/lib/components/pisellPhone/constants/countryCodes.js +24 -24
- package/lib/components/pisellPhone/types.d.ts +2 -2
- package/lib/components/pisellPhone/utils/countryCodeHelper.d.ts +4 -4
- package/lib/components/pisellPhone/utils/countryCodeHelper.js +1 -1
- package/lib/components/pisellRating/PisellRating.js +4 -2
- package/lib/components/pisellSingleLineText/PisellSingleLineText.js +16 -10
- package/lib/components/pisellSingleLineText/PisellSingleLineText.less +58 -201
- package/lib/components/pisellSingleSelect/PisellSingleSelect.js +34 -35
- package/lib/components/pisellSingleSelect/PisellSingleSelect.less +5 -106
- package/lib/components/pisellUrl/PisellUrl.js +16 -10
- package/lib/components/pisellWalletPassCard/index.js +1 -1
- package/lib/index.d.ts +15 -4
- package/lib/index.js +18 -3
- package/lib/theme/pisell-components.d.ts +14 -0
- package/lib/theme/pisell-components.js +89 -0
- package/lowcode/pisell-action-panel/meta.ts +146 -0
- package/lowcode/pisell-action-panel/snippets.ts +42 -0
- package/lowcode/pisell-base-card/meta.ts +98 -0
- package/lowcode/pisell-base-card/snippets.ts +13 -0
- package/lowcode/pisell-contact-brief/meta.ts +178 -0
- package/lowcode/pisell-contact-brief/snippets.ts +40 -0
- package/lowcode/pisell-customer-brief/meta.ts +262 -0
- package/lowcode/pisell-customer-brief/snippets.ts +46 -0
- package/lowcode/pisell-entity-card/meta.ts +296 -0
- package/lowcode/pisell-entity-card/snippets.ts +41 -0
- package/lowcode/pisell-floor-map-layout/meta.ts +37 -1
- package/package.json +4 -4
|
@@ -1,201 +1,58 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* PisellSingleLineText 组件样式
|
|
3
|
-
* 不依赖全局 antd token,使用内置样式
|
|
4
|
-
*/
|
|
5
|
-
|
|
6
|
-
.pisell-single-line-text {
|
|
7
|
-
&-edit {
|
|
8
|
-
position: relative;
|
|
9
|
-
width: 100%;
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
padding: 0 !important;
|
|
60
|
-
|
|
61
|
-
.ant-input-prefix {
|
|
62
|
-
margin-right: 8px;
|
|
63
|
-
margin-left: 16px;
|
|
64
|
-
color: #667085; // Gray/500
|
|
65
|
-
font-size: 16px;
|
|
66
|
-
}
|
|
67
|
-
|
|
68
|
-
.ant-input-suffix {
|
|
69
|
-
margin-left: 8px;
|
|
70
|
-
margin-right: 16px;
|
|
71
|
-
color: #667085; // Gray/500
|
|
72
|
-
font-size: 16px;
|
|
73
|
-
}
|
|
74
|
-
|
|
75
|
-
.ant-input {
|
|
76
|
-
padding: 12px 0 !important;
|
|
77
|
-
border: none !important;
|
|
78
|
-
box-shadow: none !important;
|
|
79
|
-
|
|
80
|
-
&:focus {
|
|
81
|
-
box-shadow: none !important;
|
|
82
|
-
}
|
|
83
|
-
}
|
|
84
|
-
}
|
|
85
|
-
|
|
86
|
-
// 前后置标签样式
|
|
87
|
-
.ant-input-group-wrapper {
|
|
88
|
-
.ant-input-group-addon {
|
|
89
|
-
background-color: #FFFFFF !important;
|
|
90
|
-
border: 1px solid #D0D5DD !important;
|
|
91
|
-
color: #344054 !important; // Gray/700
|
|
92
|
-
font-size: 16px !important;
|
|
93
|
-
padding: 12px 16px !important;
|
|
94
|
-
|
|
95
|
-
&:first-child {
|
|
96
|
-
border-right: none !important;
|
|
97
|
-
border-radius: 8px 0 0 8px !important;
|
|
98
|
-
}
|
|
99
|
-
|
|
100
|
-
&:last-child {
|
|
101
|
-
border-left: none !important;
|
|
102
|
-
border-radius: 0 8px 8px 0 !important;
|
|
103
|
-
}
|
|
104
|
-
}
|
|
105
|
-
|
|
106
|
-
.ant-input-wrapper {
|
|
107
|
-
.ant-input,
|
|
108
|
-
.ant-input-affix-wrapper {
|
|
109
|
-
border-radius: 0 !important;
|
|
110
|
-
|
|
111
|
-
&:first-child {
|
|
112
|
-
border-radius: 8px 0 0 8px !important;
|
|
113
|
-
}
|
|
114
|
-
|
|
115
|
-
&:last-child {
|
|
116
|
-
border-radius: 0 8px 8px 0 !important;
|
|
117
|
-
}
|
|
118
|
-
}
|
|
119
|
-
}
|
|
120
|
-
}
|
|
121
|
-
|
|
122
|
-
// 清空按钮样式
|
|
123
|
-
.ant-input-clear-icon {
|
|
124
|
-
color: #667085 !important; // Gray/500
|
|
125
|
-
font-size: 14px !important;
|
|
126
|
-
|
|
127
|
-
&:hover {
|
|
128
|
-
color: #344054 !important; // Gray/700
|
|
129
|
-
}
|
|
130
|
-
}
|
|
131
|
-
|
|
132
|
-
// 字数统计样式
|
|
133
|
-
.ant-input-show-count-suffix {
|
|
134
|
-
color: #667085 !important; // Gray/500
|
|
135
|
-
font-size: 14px !important;
|
|
136
|
-
}
|
|
137
|
-
|
|
138
|
-
// 错误状态样式
|
|
139
|
-
.ant-input-status-error,
|
|
140
|
-
.ant-input-affix-wrapper-status-error {
|
|
141
|
-
border-color: #FDA29B !important; // Error/300
|
|
142
|
-
|
|
143
|
-
&:focus,
|
|
144
|
-
&:focus-within {
|
|
145
|
-
border-color: #F97066 !important; // Error/400
|
|
146
|
-
box-shadow: 0 0 0 4px #FEE4E2 !important; // Error/100
|
|
147
|
-
}
|
|
148
|
-
|
|
149
|
-
&:hover:not(:focus):not(:focus-within) {
|
|
150
|
-
border-color: #F97066 !important; // Error/400
|
|
151
|
-
}
|
|
152
|
-
}
|
|
153
|
-
}
|
|
154
|
-
|
|
155
|
-
&-error {
|
|
156
|
-
margin-top: 4px;
|
|
157
|
-
font-size: 12px;
|
|
158
|
-
color: #D92D20; // Error/600
|
|
159
|
-
line-height: 1.5;
|
|
160
|
-
animation: fadeIn 0.3s ease-in-out;
|
|
161
|
-
}
|
|
162
|
-
|
|
163
|
-
&-read {
|
|
164
|
-
display: inline-block;
|
|
165
|
-
line-height: 1.5;
|
|
166
|
-
}
|
|
167
|
-
|
|
168
|
-
&-link {
|
|
169
|
-
transition: color 0.2s ease-in-out;
|
|
170
|
-
|
|
171
|
-
&:hover {
|
|
172
|
-
color: #6D48C4 !important; // 项目统一 hover 色
|
|
173
|
-
}
|
|
174
|
-
|
|
175
|
-
&:active {
|
|
176
|
-
color: #5F3DA8 !important; // 项目统一 active 色
|
|
177
|
-
}
|
|
178
|
-
|
|
179
|
-
&:focus {
|
|
180
|
-
outline: 2px solid rgba(127, 86, 218, 0.2);
|
|
181
|
-
outline-offset: 2px;
|
|
182
|
-
}
|
|
183
|
-
}
|
|
184
|
-
|
|
185
|
-
&-disabled {
|
|
186
|
-
opacity: 0.4;
|
|
187
|
-
cursor: not-allowed;
|
|
188
|
-
}
|
|
189
|
-
}
|
|
190
|
-
|
|
191
|
-
// 错误提示淡入动画
|
|
192
|
-
@keyframes fadeIn {
|
|
193
|
-
from {
|
|
194
|
-
opacity: 0;
|
|
195
|
-
transform: translateY(-4px);
|
|
196
|
-
}
|
|
197
|
-
to {
|
|
198
|
-
opacity: 1;
|
|
199
|
-
transform: translateY(0);
|
|
200
|
-
}
|
|
201
|
-
}
|
|
1
|
+
/**
|
|
2
|
+
* PisellSingleLineText 组件样式
|
|
3
|
+
* 不依赖全局 antd token,使用内置样式
|
|
4
|
+
*/
|
|
5
|
+
|
|
6
|
+
.pisell-single-line-text {
|
|
7
|
+
&-edit {
|
|
8
|
+
position: relative;
|
|
9
|
+
width: 100%;
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
&-error {
|
|
13
|
+
margin-top: 4px;
|
|
14
|
+
font-size: 12px;
|
|
15
|
+
color: #D92D20; // Error/600
|
|
16
|
+
line-height: 1.5;
|
|
17
|
+
animation: fadeIn 0.3s ease-in-out;
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
&-read {
|
|
21
|
+
display: inline-block;
|
|
22
|
+
line-height: 1.5;
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
&-link {
|
|
26
|
+
transition: color 0.2s ease-in-out;
|
|
27
|
+
|
|
28
|
+
&:hover {
|
|
29
|
+
color: #6D48C4 !important; // 项目统一 hover 色
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
&:active {
|
|
33
|
+
color: #5F3DA8 !important; // 项目统一 active 色
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
&:focus {
|
|
37
|
+
outline: 2px solid rgba(127, 86, 218, 0.2);
|
|
38
|
+
outline-offset: 2px;
|
|
39
|
+
}
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
&-disabled {
|
|
43
|
+
opacity: 0.4;
|
|
44
|
+
cursor: not-allowed;
|
|
45
|
+
}
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
// 错误提示淡入动画
|
|
49
|
+
@keyframes fadeIn {
|
|
50
|
+
from {
|
|
51
|
+
opacity: 0;
|
|
52
|
+
transform: translateY(-4px);
|
|
53
|
+
}
|
|
54
|
+
to {
|
|
55
|
+
opacity: 1;
|
|
56
|
+
transform: translateY(0);
|
|
57
|
+
}
|
|
58
|
+
}
|
|
@@ -38,41 +38,40 @@ var import_EditView = __toESM(require("./components/EditView"));
|
|
|
38
38
|
var import_DisabledView = __toESM(require("./components/DisabledView"));
|
|
39
39
|
var import_ReadOnlyView = __toESM(require("./components/ReadOnlyView"));
|
|
40
40
|
var import_PisellSingleSelect = require("./PisellSingleSelect.less");
|
|
41
|
-
var
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
onChange,
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
41
|
+
var import_pisell_components = require("../../theme/pisell-components");
|
|
42
|
+
var import_antd = require("antd");
|
|
43
|
+
var PisellSingleSelect = (0, import_react.forwardRef)(
|
|
44
|
+
(props, ref) => {
|
|
45
|
+
const { value, defaultValue, onChange, disabled, readOnly } = props;
|
|
46
|
+
const selectRef = (0, import_react.useRef)(null);
|
|
47
|
+
const state = (0, import_utils.useSelectState)({
|
|
48
|
+
value,
|
|
49
|
+
defaultValue,
|
|
50
|
+
onChange,
|
|
51
|
+
mode: "single"
|
|
52
|
+
});
|
|
53
|
+
(0, import_react.useImperativeHandle)(ref, () => ({
|
|
54
|
+
focus: () => {
|
|
55
|
+
var _a;
|
|
56
|
+
return (_a = selectRef.current) == null ? void 0 : _a.focus();
|
|
57
|
+
},
|
|
58
|
+
blur: () => {
|
|
59
|
+
var _a;
|
|
60
|
+
return (_a = selectRef.current) == null ? void 0 : _a.blur();
|
|
61
|
+
},
|
|
62
|
+
getValue: () => state.value ?? null,
|
|
63
|
+
setValue: (newValue) => state.setValue(newValue),
|
|
64
|
+
clearValue: () => state.clearValue()
|
|
65
|
+
}));
|
|
66
|
+
const theme = (0, import_pisell_components.getPisellComponentsThemeConfig)();
|
|
67
|
+
if (disabled) {
|
|
68
|
+
return /* @__PURE__ */ import_react.default.createElement(import_antd.ConfigProvider, { theme }, /* @__PURE__ */ import_react.default.createElement(import_DisabledView.default, { ...props, ref: selectRef }));
|
|
69
|
+
}
|
|
70
|
+
if (readOnly) {
|
|
71
|
+
return /* @__PURE__ */ import_react.default.createElement(import_antd.ConfigProvider, { theme }, /* @__PURE__ */ import_react.default.createElement(import_ReadOnlyView.default, { ...props }));
|
|
72
|
+
}
|
|
73
|
+
return /* @__PURE__ */ import_react.default.createElement(import_antd.ConfigProvider, { theme }, /* @__PURE__ */ import_react.default.createElement(import_EditView.default, { ...props, state, ref: selectRef }));
|
|
71
74
|
}
|
|
72
|
-
|
|
73
|
-
return /* @__PURE__ */ import_react.default.createElement(import_ReadOnlyView.default, { ...props });
|
|
74
|
-
}
|
|
75
|
-
return /* @__PURE__ */ import_react.default.createElement(import_EditView.default, { ...props, state, ref: selectRef });
|
|
76
|
-
});
|
|
75
|
+
);
|
|
77
76
|
PisellSingleSelect.displayName = "PisellSingleSelect";
|
|
78
77
|
var PisellSingleSelect_default = PisellSingleSelect;
|
|
@@ -4,9 +4,13 @@
|
|
|
4
4
|
*/
|
|
5
5
|
|
|
6
6
|
.pisell-single-select {
|
|
7
|
-
height: 48px !important;
|
|
8
7
|
width: 100%;
|
|
9
8
|
|
|
9
|
+
&.pisell-lowcode-select-focused .pisell-lowcode-select-selector {
|
|
10
|
+
border-color: #d6bbfb !important;
|
|
11
|
+
box-shadow: 0 0 0 4px #F4EBFF, 0 1px 2px rgba(16, 24, 40, 0.05) !important;
|
|
12
|
+
}
|
|
13
|
+
|
|
10
14
|
.pisell-lowcode-select-clear {
|
|
11
15
|
color: #667085;
|
|
12
16
|
display: inline-flex;
|
|
@@ -22,67 +26,11 @@
|
|
|
22
26
|
}
|
|
23
27
|
}
|
|
24
28
|
|
|
25
|
-
// Select 触发器(Figma 设计规范,与 Input 体系一致)
|
|
26
|
-
.pisell-lowcode-select:not(.pisell-lowcode-select-disabled):not(.pisell-lowcode-select-customize-input) {
|
|
27
|
-
.pisell-lowcode-select-selector {
|
|
28
|
-
font-size: 16px !important;
|
|
29
|
-
line-height: 24px !important;
|
|
30
|
-
border-radius: 8px !important;
|
|
31
|
-
border: 1px solid #d0d5dd !important; // Gray/300
|
|
32
|
-
padding: 12px 16px !important;
|
|
33
|
-
min-height: 48px !important;
|
|
34
|
-
color: #101828 !important; // Gray/900
|
|
35
|
-
background-color: #ffffff !important;
|
|
36
|
-
}
|
|
37
|
-
|
|
38
|
-
&.pisell-lowcode-select-open .pisell-lowcode-select-selector {
|
|
39
|
-
border-color: #d6bbfb !important; // Primary/300
|
|
40
|
-
box-shadow: 0 0 0 4px #f4ebff !important; // Primary/100
|
|
41
|
-
}
|
|
42
|
-
|
|
43
|
-
&:not(.pisell-lowcode-select-open):not(.pisell-lowcode-select-disabled)
|
|
44
|
-
.pisell-lowcode-select-selector:hover {
|
|
45
|
-
border-color: #b692f6 !important; // Primary/400
|
|
46
|
-
}
|
|
47
|
-
|
|
48
|
-
&.pisell-lowcode-select-disabled .pisell-lowcode-select-selector {
|
|
49
|
-
background-color: #f9fafb !important; // Gray/50
|
|
50
|
-
color: #98a2b3 !important; // Gray/400
|
|
51
|
-
border-color: #d0d5dd !important;
|
|
52
|
-
cursor: not-allowed !important;
|
|
53
|
-
}
|
|
54
|
-
|
|
55
|
-
.pisell-lowcode-select-selection-placeholder {
|
|
56
|
-
color: #667085 !important; // Gray/500
|
|
57
|
-
}
|
|
58
|
-
|
|
59
|
-
.pisell-lowcode-select-arrow {
|
|
60
|
-
color: #667085;
|
|
61
|
-
}
|
|
62
|
-
|
|
63
|
-
.pisell-lowcode-select-clear {
|
|
64
|
-
color: #667085;
|
|
65
|
-
|
|
66
|
-
&:hover {
|
|
67
|
-
color: #344054;
|
|
68
|
-
}
|
|
69
|
-
}
|
|
70
|
-
}
|
|
71
|
-
|
|
72
29
|
&-wrapper {
|
|
73
30
|
display: flex;
|
|
74
31
|
flex-direction: column;
|
|
75
32
|
gap: 8px;
|
|
76
33
|
position: relative;
|
|
77
|
-
|
|
78
|
-
// 下拉选项高度 48px(通过 getPopupContainer 挂到 wrapper 内)
|
|
79
|
-
.pisell-single-select-dropdown .pisell-lowcode-select-item {
|
|
80
|
-
min-height: 48px !important;
|
|
81
|
-
height: 48px !important;
|
|
82
|
-
line-height: 48px !important;
|
|
83
|
-
padding: 0 16px !important;
|
|
84
|
-
font-size: 16px !important;
|
|
85
|
-
}
|
|
86
34
|
}
|
|
87
35
|
|
|
88
36
|
&-label {
|
|
@@ -113,49 +61,6 @@
|
|
|
113
61
|
animation: pisell-single-select-fadeIn 0.3s ease-in-out;
|
|
114
62
|
}
|
|
115
63
|
|
|
116
|
-
&-option-content {
|
|
117
|
-
display: flex;
|
|
118
|
-
align-items: center;
|
|
119
|
-
justify-content: space-between;
|
|
120
|
-
width: 100%;
|
|
121
|
-
}
|
|
122
|
-
|
|
123
|
-
&-option-check {
|
|
124
|
-
color: #7f56d9; // Primary/600
|
|
125
|
-
font-size: 16px;
|
|
126
|
-
margin-left: 8px;
|
|
127
|
-
}
|
|
128
|
-
}
|
|
129
|
-
|
|
130
|
-
// 下拉框内的搜索框样式(Figma 设计)
|
|
131
|
-
:global {
|
|
132
|
-
.pisell-select-search-wrapper {
|
|
133
|
-
padding: 6px;
|
|
134
|
-
border-bottom: 1px solid #EAECF0;
|
|
135
|
-
}
|
|
136
|
-
|
|
137
|
-
.pisell-select-search-input {
|
|
138
|
-
padding: 9px 10px !important;
|
|
139
|
-
font-size: 14px;
|
|
140
|
-
|
|
141
|
-
.pisell-lowcode-input {
|
|
142
|
-
font-size: 14px !important;
|
|
143
|
-
color: #344054 !important;
|
|
144
|
-
|
|
145
|
-
&::placeholder {
|
|
146
|
-
color: #98A2B3 !important;
|
|
147
|
-
font-size: 12px !important;
|
|
148
|
-
}
|
|
149
|
-
}
|
|
150
|
-
|
|
151
|
-
&:hover,
|
|
152
|
-
&:focus-within {
|
|
153
|
-
background-color: transparent !important;
|
|
154
|
-
}
|
|
155
|
-
}
|
|
156
|
-
}
|
|
157
|
-
|
|
158
|
-
.pisell-single-select {
|
|
159
64
|
// 错误状态(Figma 设计体系 Error 色)
|
|
160
65
|
&-error {
|
|
161
66
|
.pisell-lowcode-select .pisell-lowcode-select-selector {
|
|
@@ -165,12 +70,6 @@
|
|
|
165
70
|
border-color: #f97066 !important; // Error/400
|
|
166
71
|
}
|
|
167
72
|
}
|
|
168
|
-
|
|
169
|
-
.pisell-lowcode-select.pisell-lowcode-select-focused .pisell-lowcode-select-selector,
|
|
170
|
-
.pisell-lowcode-select.pisell-lowcode-select-open .pisell-lowcode-select-selector {
|
|
171
|
-
border-color: #f97066 !important; // Error/400
|
|
172
|
-
box-shadow: 0 0 0 4px #fee4e2 !important; // Error/100
|
|
173
|
-
}
|
|
174
73
|
}
|
|
175
74
|
|
|
176
75
|
// 只读状态:仅展示 Tag,无 Select 无外框,Tag 使用与 disabled 一致的样式
|
|
@@ -34,24 +34,30 @@ __export(PisellUrl_exports, {
|
|
|
34
34
|
});
|
|
35
35
|
module.exports = __toCommonJS(PisellUrl_exports);
|
|
36
36
|
var import_react = __toESM(require("react"));
|
|
37
|
+
var import_antd = require("antd");
|
|
37
38
|
var import_utils = require("@pisell/utils");
|
|
38
39
|
var import_ReadOnlyView = __toESM(require("./components/ReadOnlyView"));
|
|
39
40
|
var import_EditView = __toESM(require("./components/EditView"));
|
|
40
41
|
var import_DisabledView = __toESM(require("./components/DisabledView"));
|
|
42
|
+
var import_pisell_components = require("../../theme/pisell-components");
|
|
41
43
|
var import_PisellUrl = require("./PisellUrl.less");
|
|
42
44
|
var PisellUrl = (props) => {
|
|
43
45
|
const { mode = "edit", disabled = false } = props;
|
|
44
46
|
const displayState = (0, import_utils.getDisplayState)(mode, disabled);
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
47
|
+
const render = () => {
|
|
48
|
+
switch (displayState) {
|
|
49
|
+
case "read":
|
|
50
|
+
return /* @__PURE__ */ import_react.default.createElement(import_ReadOnlyView.default, { ...props });
|
|
51
|
+
case "edit":
|
|
52
|
+
return /* @__PURE__ */ import_react.default.createElement(import_EditView.default, { ...props });
|
|
53
|
+
case "disabled":
|
|
54
|
+
return /* @__PURE__ */ import_react.default.createElement(import_DisabledView.default, { ...props });
|
|
55
|
+
default:
|
|
56
|
+
return null;
|
|
57
|
+
}
|
|
58
|
+
};
|
|
59
|
+
const theme = (0, import_pisell_components.getPisellComponentsThemeConfig)();
|
|
60
|
+
return /* @__PURE__ */ import_react.default.createElement(import_antd.ConfigProvider, { theme }, render());
|
|
55
61
|
};
|
|
56
62
|
var PisellUrl_default = import_react.default.memo(PisellUrl, (prevProps, nextProps) => {
|
|
57
63
|
return prevProps.value === nextProps.value && prevProps.mode === nextProps.mode && prevProps.disabled === nextProps.disabled && prevProps.autoCompleteProtocol === nextProps.autoCompleteProtocol;
|
|
@@ -694,7 +694,7 @@ var PisellWalletPassCard = (props) => {
|
|
|
694
694
|
showQrCode && !isMini && /* @__PURE__ */ import_react.default.createElement("div", { className: "pisell-card-qr-code" }, /* @__PURE__ */ import_react.default.createElement(import_pisellQrcode.default, { value: qrCode, size: 60 }))
|
|
695
695
|
),
|
|
696
696
|
checkedDom,
|
|
697
|
-
disabled && disabledReason && showDisabledReason && /* @__PURE__ */ import_react.default.createElement("div", { className: "pisell-card-warn-message" }, /* @__PURE__ */ import_react.default.createElement(
|
|
697
|
+
disabled && disabledReason && showDisabledReason && /* @__PURE__ */ import_react.default.createElement("div", { className: "pisell-card-warn-message", ref: warnMessageRef }, /* @__PURE__ */ import_react.default.createElement(
|
|
698
698
|
import_iconfont.default,
|
|
699
699
|
{
|
|
700
700
|
className: "pisell-card-icon",
|
package/lib/index.d.ts
CHANGED
|
@@ -33,10 +33,6 @@ export { default as Cascader } from './components/cascader';
|
|
|
33
33
|
export { default as Checkbox } from './components/checkbox';
|
|
34
34
|
export { default as Collapse } from './components/collapse';
|
|
35
35
|
export { default as ConfigProvider } from './components/config-provider';
|
|
36
|
-
export { default as DataSourceSubForm } from './components/dataSourceComponents/dataSourceSubForm';
|
|
37
|
-
export type { DataSourceSubFormProps } from './components/dataSourceComponents/dataSourceSubForm/types';
|
|
38
|
-
export { default as FormItemRecordListWrapper } from './components/dataSourceComponents/fields/RecordListWrapper';
|
|
39
|
-
export { default as FormItemTabs } from './components/dataSourceComponents/fields/Tabs';
|
|
40
36
|
export { default as DatePicker } from './components/date-picker';
|
|
41
37
|
export { default as Drawer } from './components/drawer';
|
|
42
38
|
export { default as Dropdown } from './components/dropdown';
|
|
@@ -89,6 +85,16 @@ export type { PisellWalletPassCardProps } from './components/pisellWalletPassCar
|
|
|
89
85
|
export { default as PisellGoodPassCard } from './components/pisellGoodPassCard';
|
|
90
86
|
export { default as PisellAppCard } from './components/pisellAppCard';
|
|
91
87
|
export type { PisellAppCardProps } from './components/pisellAppCard/types';
|
|
88
|
+
export { PisellBaseCard } from './components/pisellBaseCard';
|
|
89
|
+
export type { PisellBaseCardProps } from './components/pisellBaseCard';
|
|
90
|
+
export { PisellEntityCard } from './components/pisellEntityCard';
|
|
91
|
+
export type { PisellEntityCardProps, EntityCardDensity, EntityCardLayout, EntityCardWidth, EntityCardMediaType, EntityCardMediaConfig, EntityCardSecondaryItem, EntityCardTagItem, EntityCardActionItem, EntityCardTagPosition, } from './components/pisellEntityCard';
|
|
92
|
+
export { PisellContactBrief } from './components/PisellContactBrief';
|
|
93
|
+
export type { PisellContactBriefProps, PisellContactBriefCreateButtonProps, PisellContactBriefComponent, ContactFormValues, ContactBriefExtraField, } from './components/PisellContactBrief';
|
|
94
|
+
export { PisellCustomerBrief } from './components/pisellCustomerBrief';
|
|
95
|
+
export type { PisellCustomerBriefProps, CustomerBriefExtendedField, } from './components/pisellCustomerBrief';
|
|
96
|
+
export { PisellActionPanel } from './components/pisellActionPanel';
|
|
97
|
+
export type { PisellActionPanelProps, PisellActionPanelGroup, PisellActionPanelItem, ActionPanelLayout, ActionPanelAlign, ActionPanelOverflowStrategy, ActionPanelItemPriority, } from './components/pisellActionPanel';
|
|
92
98
|
export { default as PisellMetricCard } from './components/pisellMetricCard';
|
|
93
99
|
export { default as PisellDateTimeDisplay } from './components/pisellDateTimeDisplay';
|
|
94
100
|
export type { PisellDateTimeDisplayProps } from './components/pisellDateTimeDisplay';
|
|
@@ -115,6 +121,7 @@ export { default as Div } from './components/div';
|
|
|
115
121
|
export { default as PisellBasicGrid } from './components/PisellBasicGrid';
|
|
116
122
|
export { default as PisellScrollView } from './components/PisellScrollView';
|
|
117
123
|
export { PisellFloorMapLayout } from './components/pisellFloorMapLayout';
|
|
124
|
+
export type { FloorMapItemBase, FloorMapItemUnit, FloorMapLayerConfig, FloorMapZoomConfig, FloorMapPanConfig, FloorMapControlsConfig, FloorMapItemShape, FloorMapBackgroundType, FloorMapPanBoundary, FloorMapLayoutMode, FloorMapGridLayoutConfig, } from './components/pisellFloorMapLayout';
|
|
118
125
|
export { default as PisellViewGrid } from './components/pisellViewGrid';
|
|
119
126
|
export { default as Table } from './components/table';
|
|
120
127
|
export { default as PisellGridView } from './components/pisellGridPro/GridView';
|
|
@@ -172,6 +179,10 @@ export { default as FormItemTranslation } from './components/dataSourceComponent
|
|
|
172
179
|
export { default as FormItemUpload } from './components/dataSourceComponents/fields/Upload';
|
|
173
180
|
export { default as FormItemIconSelect } from './components/dataSourceComponents/fields/IconSelect';
|
|
174
181
|
export { default as BaseTranslation } from './components/dataSourceComponents/fields/Translation/BaseTranslation';
|
|
182
|
+
export { default as DataSourceSubForm } from './components/dataSourceComponents/dataSourceSubForm';
|
|
183
|
+
export type { DataSourceSubFormProps } from './components/dataSourceComponents/dataSourceSubForm/types';
|
|
184
|
+
export { default as FormItemRecordListWrapper } from './components/dataSourceComponents/fields/RecordListWrapper';
|
|
185
|
+
export { default as FormItemTabs } from './components/dataSourceComponents/fields/Tabs';
|
|
175
186
|
export { default as PisellMenu } from './components/pisellMenu';
|
|
176
187
|
export type { PisellMenuProps } from './components/pisellMenu/types';
|
|
177
188
|
export { default as PisellNavigationMenu } from './components/pisellNavigationMenu';
|