@bit.rhplus/ui2.module-dropdown-list 0.1.110 → 0.1.112
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/dist/index.d.ts +14 -1
- package/dist/index.js +403 -121
- package/dist/index.js.map +1 -1
- package/index.jsx +653 -351
- package/package.json +7 -8
- package/ModuleInput.css +0 -259
- package/dist/ModuleInput.css +0 -259
- package/dist/store/recentItemsStore.d.ts +0 -11
- package/dist/store/recentItemsStore.js +0 -29
- package/dist/store/recentItemsStore.js.map +0 -1
- package/dist/useModuleDropdownList.d.ts +0 -26
- package/dist/useModuleDropdownList.js +0 -171
- package/dist/useModuleDropdownList.js.map +0 -1
- package/store/recentItemsStore.js +0 -37
- package/useModuleDropdownList.js +0 -198
- /package/dist/{preview-1773828129212.js → preview-1774279607741.js} +0 -0
package/package.json
CHANGED
|
@@ -1,24 +1,23 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@bit.rhplus/ui2.module-dropdown-list",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.112",
|
|
4
4
|
"homepage": "https://bit.cloud/remote-scope/ui2/module-dropdown-list",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"componentId": {
|
|
7
7
|
"scope": "remote-scope",
|
|
8
8
|
"name": "ui2/module-dropdown-list",
|
|
9
|
-
"version": "0.1.
|
|
9
|
+
"version": "0.1.112"
|
|
10
10
|
},
|
|
11
11
|
"dependencies": {
|
|
12
12
|
"@ant-design/icons": "^5.4.0",
|
|
13
|
+
"@axa-fr/react-oidc": "7.25.13",
|
|
14
|
+
"ag-grid-react": "^35.0.0",
|
|
13
15
|
"antd": "^5.20.6",
|
|
14
|
-
"
|
|
15
|
-
"@
|
|
16
|
-
"@bit.rhplus/ag-grid": "0.0.116",
|
|
17
|
-
"@bit.rhplus/draggable-modal": "0.0.16",
|
|
18
|
-
"@bit.rhplus/data": "0.0.87"
|
|
16
|
+
"@bit.rhplus/data": "0.0.89",
|
|
17
|
+
"@bit.rhplus/draggable-modal": "0.0.17"
|
|
19
18
|
},
|
|
20
19
|
"devDependencies": {
|
|
21
|
-
"@bitdev/react.react-env": "
|
|
20
|
+
"@bitdev/react.react-env": "5.0.5"
|
|
22
21
|
},
|
|
23
22
|
"peerDependencies": {
|
|
24
23
|
"react": "^17.0.0 || ^18.0.0 || ^19.0.0"
|
package/ModuleInput.css
DELETED
|
@@ -1,259 +0,0 @@
|
|
|
1
|
-
/* Obaluji všechny styly do .module-input-container pro lokální scope */
|
|
2
|
-
.module-input-container {
|
|
3
|
-
width: 100%;
|
|
4
|
-
position: relative;
|
|
5
|
-
}
|
|
6
|
-
|
|
7
|
-
/* Nový základní styl pro kontejner */
|
|
8
|
-
.module-input-container .simple-select-container {
|
|
9
|
-
display: flex;
|
|
10
|
-
width: 100%;
|
|
11
|
-
border-radius: 4px;
|
|
12
|
-
overflow: visible;
|
|
13
|
-
}
|
|
14
|
-
|
|
15
|
-
/* Stylování select komponenty */
|
|
16
|
-
.module-input-container .simple-select {
|
|
17
|
-
flex: 1;
|
|
18
|
-
min-width: 0;
|
|
19
|
-
max-width: calc(100% - 40px);
|
|
20
|
-
}
|
|
21
|
-
|
|
22
|
-
/* Odstraňuje výchozí okraje antd select */
|
|
23
|
-
.module-input-container .simple-select .ant-select-selector {
|
|
24
|
-
border-right: none !important;
|
|
25
|
-
border-top-right-radius: 0 !important;
|
|
26
|
-
border-bottom-right-radius: 0 !important;
|
|
27
|
-
}
|
|
28
|
-
|
|
29
|
-
/* Stylování tlačítka vyhledávání */
|
|
30
|
-
.module-input-container .search-button {
|
|
31
|
-
min-width: 40px;
|
|
32
|
-
height: 32px;
|
|
33
|
-
display: flex;
|
|
34
|
-
align-items: center;
|
|
35
|
-
justify-content: center;
|
|
36
|
-
border-radius: 0 4px 4px 0;
|
|
37
|
-
margin-left: -1px; /* Překrytí hranice selectu */
|
|
38
|
-
}
|
|
39
|
-
|
|
40
|
-
/* Vlastní styl pro šipku dolů */
|
|
41
|
-
.module-input-container .ant-select-arrow {
|
|
42
|
-
color: #bfbfbf;
|
|
43
|
-
right: 11px;
|
|
44
|
-
display: flex;
|
|
45
|
-
align-items: center;
|
|
46
|
-
justify-content: center;
|
|
47
|
-
}
|
|
48
|
-
|
|
49
|
-
/* Přidána specifická třída pro naši šipku */
|
|
50
|
-
.select-arrow-icon {
|
|
51
|
-
transition: transform 0.3s ease;
|
|
52
|
-
width: 12px;
|
|
53
|
-
height: 12px;
|
|
54
|
-
}
|
|
55
|
-
|
|
56
|
-
/* Rotace šipky při otevření selectu - přímější cílení na naši konkrétní ikonu */
|
|
57
|
-
.module-input-container .ant-select.ant-select-open .select-arrow-icon {
|
|
58
|
-
transform: rotate(180deg);
|
|
59
|
-
}
|
|
60
|
-
|
|
61
|
-
/* Přidání explicitní polohy pro zavřený stav pro lepší kompatibilitu */
|
|
62
|
-
.module-input-container .ant-select:not(.ant-select-open) .select-arrow-icon {
|
|
63
|
-
transform: rotate(0deg);
|
|
64
|
-
}
|
|
65
|
-
|
|
66
|
-
/* Styly pro dropdown */
|
|
67
|
-
.select-dropdown-container {
|
|
68
|
-
padding-bottom: 8px;
|
|
69
|
-
font-size: 13px;
|
|
70
|
-
}
|
|
71
|
-
|
|
72
|
-
.search-box {
|
|
73
|
-
padding: 8px;
|
|
74
|
-
border-bottom: 1px solid #f0f0f0;
|
|
75
|
-
}
|
|
76
|
-
|
|
77
|
-
.dropdown-search-input {
|
|
78
|
-
border-radius: 4px;
|
|
79
|
-
font-size: 13px;
|
|
80
|
-
}
|
|
81
|
-
|
|
82
|
-
/* Styl pro položky v dropdownu */
|
|
83
|
-
.option-item {
|
|
84
|
-
display: flex;
|
|
85
|
-
align-items: center;
|
|
86
|
-
padding: 4px 0;
|
|
87
|
-
font-size: 13px;
|
|
88
|
-
}
|
|
89
|
-
|
|
90
|
-
.option-avatar {
|
|
91
|
-
width: 48px;
|
|
92
|
-
height: 48px;
|
|
93
|
-
background-color: #e9ebf3;
|
|
94
|
-
color: #9da1ba;
|
|
95
|
-
border-radius: 50%;
|
|
96
|
-
display: flex;
|
|
97
|
-
align-items: center;
|
|
98
|
-
justify-content: center;
|
|
99
|
-
font-weight: bold;
|
|
100
|
-
margin-right: 12px;
|
|
101
|
-
font-size: 13px;
|
|
102
|
-
}
|
|
103
|
-
|
|
104
|
-
.option-content {
|
|
105
|
-
display: flex;
|
|
106
|
-
flex-direction: column;
|
|
107
|
-
}
|
|
108
|
-
|
|
109
|
-
.option-name {
|
|
110
|
-
font-weight: 500;
|
|
111
|
-
font-size: 13px;
|
|
112
|
-
}
|
|
113
|
-
|
|
114
|
-
.option-email {
|
|
115
|
-
font-size: 12px;
|
|
116
|
-
color: #666;
|
|
117
|
-
}
|
|
118
|
-
|
|
119
|
-
/* New Customer položka */
|
|
120
|
-
.new-customer-item {
|
|
121
|
-
display: flex;
|
|
122
|
-
align-items: center;
|
|
123
|
-
padding-left: 8px;
|
|
124
|
-
padding-top: 7px;
|
|
125
|
-
padding-bottom: 0px;
|
|
126
|
-
cursor: pointer;
|
|
127
|
-
border-top: 1px solid #f0f0f0;
|
|
128
|
-
color: #1890ff;
|
|
129
|
-
font-size: 13px;
|
|
130
|
-
}
|
|
131
|
-
|
|
132
|
-
.new-customer-item:hover {
|
|
133
|
-
background-color: #f5f5f5;
|
|
134
|
-
}
|
|
135
|
-
|
|
136
|
-
.plus-icon {
|
|
137
|
-
margin-right: 8px;
|
|
138
|
-
font-weight: bold;
|
|
139
|
-
font-size: 16px;
|
|
140
|
-
}
|
|
141
|
-
|
|
142
|
-
/* Ant Form styly - necháváme je globální, protože jsou součástí Ant Design */
|
|
143
|
-
.ant-form-item-label {
|
|
144
|
-
text-align: left;
|
|
145
|
-
margin-bottom: 4px;
|
|
146
|
-
}
|
|
147
|
-
|
|
148
|
-
/* Styling for ag-grid - necháváme je globální, protože jsou součástí ag-grid */
|
|
149
|
-
.ag-theme-alpine {
|
|
150
|
-
--ag-header-height: 40px;
|
|
151
|
-
--ag-header-foreground-color: #333;
|
|
152
|
-
--ag-header-background-color: #f5f5f5;
|
|
153
|
-
--ag-row-hover-color: #f0f8ff;
|
|
154
|
-
--ag-selected-row-background-color: rgba(24, 144, 255, 0.1);
|
|
155
|
-
}
|
|
156
|
-
|
|
157
|
-
.ag-theme-alpine .ag-header-cell {
|
|
158
|
-
font-weight: 600;
|
|
159
|
-
}
|
|
160
|
-
|
|
161
|
-
.ag-theme-alpine .ag-row-hover {
|
|
162
|
-
cursor: pointer;
|
|
163
|
-
}
|
|
164
|
-
|
|
165
|
-
/* Nastavení globální velikosti písma pro Ant Design komponenty v rámci našeho kontejneru */
|
|
166
|
-
.module-input-container .ant-select-dropdown {
|
|
167
|
-
font-size: 13px;
|
|
168
|
-
}
|
|
169
|
-
|
|
170
|
-
/* Aplikace velikosti písma 13px na všechny Ant Select komponenty */
|
|
171
|
-
.module-input-container .ant-select,
|
|
172
|
-
.module-input-container .ant-select-dropdown,
|
|
173
|
-
.module-input-container .ant-select-item,
|
|
174
|
-
.module-input-container .ant-select-item-option-content {
|
|
175
|
-
font-size: 13px;
|
|
176
|
-
}
|
|
177
|
-
|
|
178
|
-
/* Obecné pomocné třídy */
|
|
179
|
-
.module-input-container .text-align-center {
|
|
180
|
-
text-align: center;
|
|
181
|
-
}
|
|
182
|
-
|
|
183
|
-
.module-input-container .padding {
|
|
184
|
-
padding: 16px;
|
|
185
|
-
}
|
|
186
|
-
|
|
187
|
-
.module-input-container .ant-select-selection-item {
|
|
188
|
-
white-space: nowrap;
|
|
189
|
-
overflow: hidden;
|
|
190
|
-
text-overflow: ellipsis;
|
|
191
|
-
display: inline-block !important;
|
|
192
|
-
line-height: 30px !important;
|
|
193
|
-
max-width: 100% !important;
|
|
194
|
-
}
|
|
195
|
-
|
|
196
|
-
.module-input-container .ant-select-selector {
|
|
197
|
-
overflow: hidden !important;
|
|
198
|
-
}
|
|
199
|
-
|
|
200
|
-
.module-input-container .simple-select {
|
|
201
|
-
width: 100% !important;
|
|
202
|
-
max-width: 100% !important;
|
|
203
|
-
}
|
|
204
|
-
|
|
205
|
-
/* Zajištění, že text v Select se zkrátí s ellipsis */
|
|
206
|
-
.module-input-container .ant-select-single .ant-select-selector .ant-select-selection-item {
|
|
207
|
-
white-space: nowrap !important;
|
|
208
|
-
overflow: hidden !important;
|
|
209
|
-
text-overflow: ellipsis !important;
|
|
210
|
-
max-width: 100% !important;
|
|
211
|
-
display: block !important;
|
|
212
|
-
}
|
|
213
|
-
|
|
214
|
-
/* Zajištění, že celý selector má fixní šířku */
|
|
215
|
-
.module-input-container .ant-select-single .ant-select-selector {
|
|
216
|
-
width: 100% !important;
|
|
217
|
-
overflow: hidden !important;
|
|
218
|
-
}
|
|
219
|
-
|
|
220
|
-
.module-input-container .ant-select-selection-item,
|
|
221
|
-
.ant-select-selection-item,
|
|
222
|
-
.ant-select .ant-select-selection-item,
|
|
223
|
-
.ant-select-single .ant-select-selection-item,
|
|
224
|
-
.ant-select-single:not(.ant-select-customize-input) .ant-select-selection-item {
|
|
225
|
-
font-size: 13px !important;
|
|
226
|
-
}
|
|
227
|
-
|
|
228
|
-
/* Nastavení barvy pozadí pro vybranou položku v dropdown menu */
|
|
229
|
-
.module-input-container .ant-select-item-option-selected,
|
|
230
|
-
.ant-select-dropdown .ant-select-item-option-selected {
|
|
231
|
-
background-color: #e9ebf3 !important;
|
|
232
|
-
}
|
|
233
|
-
|
|
234
|
-
/* Může být potřeba upravit barvu textu pro lepší čitelnost */
|
|
235
|
-
.module-input-container .ant-select-item-option-selected .option-name,
|
|
236
|
-
.module-input-container .ant-select-item-option-selected .option-email {
|
|
237
|
-
color: #333; /* nebo jiná barva dle vašeho designu */
|
|
238
|
-
}
|
|
239
|
-
|
|
240
|
-
/* Nastavení barvy pozadí při najetí myší na položku v dropdown menu */
|
|
241
|
-
.module-input-container .ant-select-item-option:hover,
|
|
242
|
-
.ant-select-dropdown .ant-select-item-option:hover {
|
|
243
|
-
background-color: #408dfb !important;
|
|
244
|
-
}
|
|
245
|
-
|
|
246
|
-
/* Pro lepší čitelnost textu na modrém pozadí můžete změnit barvu textu na bílou */
|
|
247
|
-
.module-input-container .ant-select-item-option:hover .option-name,
|
|
248
|
-
.module-input-container .ant-select-item-option:hover .option-email,
|
|
249
|
-
.ant-select-dropdown .ant-select-item-option:hover .option-name,
|
|
250
|
-
.ant-select-dropdown .ant-select-item-option:hover .option-email {
|
|
251
|
-
color: white !important;
|
|
252
|
-
}
|
|
253
|
-
|
|
254
|
-
/* Případně i barvu avataru můžete upravit pro lepší kontrast */
|
|
255
|
-
.module-input-container .ant-select-item-option:hover .option-avatar,
|
|
256
|
-
.ant-select-dropdown .ant-select-item-option:hover .option-avatar {
|
|
257
|
-
background-color: rgba(255, 255, 255, 0.2) !important;
|
|
258
|
-
color: white !important;
|
|
259
|
-
}
|
package/dist/ModuleInput.css
DELETED
|
@@ -1,259 +0,0 @@
|
|
|
1
|
-
/* Obaluji všechny styly do .module-input-container pro lokální scope */
|
|
2
|
-
.module-input-container {
|
|
3
|
-
width: 100%;
|
|
4
|
-
position: relative;
|
|
5
|
-
}
|
|
6
|
-
|
|
7
|
-
/* Nový základní styl pro kontejner */
|
|
8
|
-
.module-input-container .simple-select-container {
|
|
9
|
-
display: flex;
|
|
10
|
-
width: 100%;
|
|
11
|
-
border-radius: 4px;
|
|
12
|
-
overflow: visible;
|
|
13
|
-
}
|
|
14
|
-
|
|
15
|
-
/* Stylování select komponenty */
|
|
16
|
-
.module-input-container .simple-select {
|
|
17
|
-
flex: 1;
|
|
18
|
-
min-width: 0;
|
|
19
|
-
max-width: calc(100% - 40px);
|
|
20
|
-
}
|
|
21
|
-
|
|
22
|
-
/* Odstraňuje výchozí okraje antd select */
|
|
23
|
-
.module-input-container .simple-select .ant-select-selector {
|
|
24
|
-
border-right: none !important;
|
|
25
|
-
border-top-right-radius: 0 !important;
|
|
26
|
-
border-bottom-right-radius: 0 !important;
|
|
27
|
-
}
|
|
28
|
-
|
|
29
|
-
/* Stylování tlačítka vyhledávání */
|
|
30
|
-
.module-input-container .search-button {
|
|
31
|
-
min-width: 40px;
|
|
32
|
-
height: 32px;
|
|
33
|
-
display: flex;
|
|
34
|
-
align-items: center;
|
|
35
|
-
justify-content: center;
|
|
36
|
-
border-radius: 0 4px 4px 0;
|
|
37
|
-
margin-left: -1px; /* Překrytí hranice selectu */
|
|
38
|
-
}
|
|
39
|
-
|
|
40
|
-
/* Vlastní styl pro šipku dolů */
|
|
41
|
-
.module-input-container .ant-select-arrow {
|
|
42
|
-
color: #bfbfbf;
|
|
43
|
-
right: 11px;
|
|
44
|
-
display: flex;
|
|
45
|
-
align-items: center;
|
|
46
|
-
justify-content: center;
|
|
47
|
-
}
|
|
48
|
-
|
|
49
|
-
/* Přidána specifická třída pro naši šipku */
|
|
50
|
-
.select-arrow-icon {
|
|
51
|
-
transition: transform 0.3s ease;
|
|
52
|
-
width: 12px;
|
|
53
|
-
height: 12px;
|
|
54
|
-
}
|
|
55
|
-
|
|
56
|
-
/* Rotace šipky při otevření selectu - přímější cílení na naši konkrétní ikonu */
|
|
57
|
-
.module-input-container .ant-select.ant-select-open .select-arrow-icon {
|
|
58
|
-
transform: rotate(180deg);
|
|
59
|
-
}
|
|
60
|
-
|
|
61
|
-
/* Přidání explicitní polohy pro zavřený stav pro lepší kompatibilitu */
|
|
62
|
-
.module-input-container .ant-select:not(.ant-select-open) .select-arrow-icon {
|
|
63
|
-
transform: rotate(0deg);
|
|
64
|
-
}
|
|
65
|
-
|
|
66
|
-
/* Styly pro dropdown */
|
|
67
|
-
.select-dropdown-container {
|
|
68
|
-
padding-bottom: 8px;
|
|
69
|
-
font-size: 13px;
|
|
70
|
-
}
|
|
71
|
-
|
|
72
|
-
.search-box {
|
|
73
|
-
padding: 8px;
|
|
74
|
-
border-bottom: 1px solid #f0f0f0;
|
|
75
|
-
}
|
|
76
|
-
|
|
77
|
-
.dropdown-search-input {
|
|
78
|
-
border-radius: 4px;
|
|
79
|
-
font-size: 13px;
|
|
80
|
-
}
|
|
81
|
-
|
|
82
|
-
/* Styl pro položky v dropdownu */
|
|
83
|
-
.option-item {
|
|
84
|
-
display: flex;
|
|
85
|
-
align-items: center;
|
|
86
|
-
padding: 4px 0;
|
|
87
|
-
font-size: 13px;
|
|
88
|
-
}
|
|
89
|
-
|
|
90
|
-
.option-avatar {
|
|
91
|
-
width: 48px;
|
|
92
|
-
height: 48px;
|
|
93
|
-
background-color: #e9ebf3;
|
|
94
|
-
color: #9da1ba;
|
|
95
|
-
border-radius: 50%;
|
|
96
|
-
display: flex;
|
|
97
|
-
align-items: center;
|
|
98
|
-
justify-content: center;
|
|
99
|
-
font-weight: bold;
|
|
100
|
-
margin-right: 12px;
|
|
101
|
-
font-size: 13px;
|
|
102
|
-
}
|
|
103
|
-
|
|
104
|
-
.option-content {
|
|
105
|
-
display: flex;
|
|
106
|
-
flex-direction: column;
|
|
107
|
-
}
|
|
108
|
-
|
|
109
|
-
.option-name {
|
|
110
|
-
font-weight: 500;
|
|
111
|
-
font-size: 13px;
|
|
112
|
-
}
|
|
113
|
-
|
|
114
|
-
.option-email {
|
|
115
|
-
font-size: 12px;
|
|
116
|
-
color: #666;
|
|
117
|
-
}
|
|
118
|
-
|
|
119
|
-
/* New Customer položka */
|
|
120
|
-
.new-customer-item {
|
|
121
|
-
display: flex;
|
|
122
|
-
align-items: center;
|
|
123
|
-
padding-left: 8px;
|
|
124
|
-
padding-top: 7px;
|
|
125
|
-
padding-bottom: 0px;
|
|
126
|
-
cursor: pointer;
|
|
127
|
-
border-top: 1px solid #f0f0f0;
|
|
128
|
-
color: #1890ff;
|
|
129
|
-
font-size: 13px;
|
|
130
|
-
}
|
|
131
|
-
|
|
132
|
-
.new-customer-item:hover {
|
|
133
|
-
background-color: #f5f5f5;
|
|
134
|
-
}
|
|
135
|
-
|
|
136
|
-
.plus-icon {
|
|
137
|
-
margin-right: 8px;
|
|
138
|
-
font-weight: bold;
|
|
139
|
-
font-size: 16px;
|
|
140
|
-
}
|
|
141
|
-
|
|
142
|
-
/* Ant Form styly - necháváme je globální, protože jsou součástí Ant Design */
|
|
143
|
-
.ant-form-item-label {
|
|
144
|
-
text-align: left;
|
|
145
|
-
margin-bottom: 4px;
|
|
146
|
-
}
|
|
147
|
-
|
|
148
|
-
/* Styling for ag-grid - necháváme je globální, protože jsou součástí ag-grid */
|
|
149
|
-
.ag-theme-alpine {
|
|
150
|
-
--ag-header-height: 40px;
|
|
151
|
-
--ag-header-foreground-color: #333;
|
|
152
|
-
--ag-header-background-color: #f5f5f5;
|
|
153
|
-
--ag-row-hover-color: #f0f8ff;
|
|
154
|
-
--ag-selected-row-background-color: rgba(24, 144, 255, 0.1);
|
|
155
|
-
}
|
|
156
|
-
|
|
157
|
-
.ag-theme-alpine .ag-header-cell {
|
|
158
|
-
font-weight: 600;
|
|
159
|
-
}
|
|
160
|
-
|
|
161
|
-
.ag-theme-alpine .ag-row-hover {
|
|
162
|
-
cursor: pointer;
|
|
163
|
-
}
|
|
164
|
-
|
|
165
|
-
/* Nastavení globální velikosti písma pro Ant Design komponenty v rámci našeho kontejneru */
|
|
166
|
-
.module-input-container .ant-select-dropdown {
|
|
167
|
-
font-size: 13px;
|
|
168
|
-
}
|
|
169
|
-
|
|
170
|
-
/* Aplikace velikosti písma 13px na všechny Ant Select komponenty */
|
|
171
|
-
.module-input-container .ant-select,
|
|
172
|
-
.module-input-container .ant-select-dropdown,
|
|
173
|
-
.module-input-container .ant-select-item,
|
|
174
|
-
.module-input-container .ant-select-item-option-content {
|
|
175
|
-
font-size: 13px;
|
|
176
|
-
}
|
|
177
|
-
|
|
178
|
-
/* Obecné pomocné třídy */
|
|
179
|
-
.module-input-container .text-align-center {
|
|
180
|
-
text-align: center;
|
|
181
|
-
}
|
|
182
|
-
|
|
183
|
-
.module-input-container .padding {
|
|
184
|
-
padding: 16px;
|
|
185
|
-
}
|
|
186
|
-
|
|
187
|
-
.module-input-container .ant-select-selection-item {
|
|
188
|
-
white-space: nowrap;
|
|
189
|
-
overflow: hidden;
|
|
190
|
-
text-overflow: ellipsis;
|
|
191
|
-
display: inline-block !important;
|
|
192
|
-
line-height: 30px !important;
|
|
193
|
-
max-width: 100% !important;
|
|
194
|
-
}
|
|
195
|
-
|
|
196
|
-
.module-input-container .ant-select-selector {
|
|
197
|
-
overflow: hidden !important;
|
|
198
|
-
}
|
|
199
|
-
|
|
200
|
-
.module-input-container .simple-select {
|
|
201
|
-
width: 100% !important;
|
|
202
|
-
max-width: 100% !important;
|
|
203
|
-
}
|
|
204
|
-
|
|
205
|
-
/* Zajištění, že text v Select se zkrátí s ellipsis */
|
|
206
|
-
.module-input-container .ant-select-single .ant-select-selector .ant-select-selection-item {
|
|
207
|
-
white-space: nowrap !important;
|
|
208
|
-
overflow: hidden !important;
|
|
209
|
-
text-overflow: ellipsis !important;
|
|
210
|
-
max-width: 100% !important;
|
|
211
|
-
display: block !important;
|
|
212
|
-
}
|
|
213
|
-
|
|
214
|
-
/* Zajištění, že celý selector má fixní šířku */
|
|
215
|
-
.module-input-container .ant-select-single .ant-select-selector {
|
|
216
|
-
width: 100% !important;
|
|
217
|
-
overflow: hidden !important;
|
|
218
|
-
}
|
|
219
|
-
|
|
220
|
-
.module-input-container .ant-select-selection-item,
|
|
221
|
-
.ant-select-selection-item,
|
|
222
|
-
.ant-select .ant-select-selection-item,
|
|
223
|
-
.ant-select-single .ant-select-selection-item,
|
|
224
|
-
.ant-select-single:not(.ant-select-customize-input) .ant-select-selection-item {
|
|
225
|
-
font-size: 13px !important;
|
|
226
|
-
}
|
|
227
|
-
|
|
228
|
-
/* Nastavení barvy pozadí pro vybranou položku v dropdown menu */
|
|
229
|
-
.module-input-container .ant-select-item-option-selected,
|
|
230
|
-
.ant-select-dropdown .ant-select-item-option-selected {
|
|
231
|
-
background-color: #e9ebf3 !important;
|
|
232
|
-
}
|
|
233
|
-
|
|
234
|
-
/* Může být potřeba upravit barvu textu pro lepší čitelnost */
|
|
235
|
-
.module-input-container .ant-select-item-option-selected .option-name,
|
|
236
|
-
.module-input-container .ant-select-item-option-selected .option-email {
|
|
237
|
-
color: #333; /* nebo jiná barva dle vašeho designu */
|
|
238
|
-
}
|
|
239
|
-
|
|
240
|
-
/* Nastavení barvy pozadí při najetí myší na položku v dropdown menu */
|
|
241
|
-
.module-input-container .ant-select-item-option:hover,
|
|
242
|
-
.ant-select-dropdown .ant-select-item-option:hover {
|
|
243
|
-
background-color: #408dfb !important;
|
|
244
|
-
}
|
|
245
|
-
|
|
246
|
-
/* Pro lepší čitelnost textu na modrém pozadí můžete změnit barvu textu na bílou */
|
|
247
|
-
.module-input-container .ant-select-item-option:hover .option-name,
|
|
248
|
-
.module-input-container .ant-select-item-option:hover .option-email,
|
|
249
|
-
.ant-select-dropdown .ant-select-item-option:hover .option-name,
|
|
250
|
-
.ant-select-dropdown .ant-select-item-option:hover .option-email {
|
|
251
|
-
color: white !important;
|
|
252
|
-
}
|
|
253
|
-
|
|
254
|
-
/* Případně i barvu avataru můžete upravit pro lepší kontrast */
|
|
255
|
-
.module-input-container .ant-select-item-option:hover .option-avatar,
|
|
256
|
-
.ant-select-dropdown .ant-select-item-option:hover .option-avatar {
|
|
257
|
-
background-color: rgba(255, 255, 255, 0.2) !important;
|
|
258
|
-
color: white !important;
|
|
259
|
-
}
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Atom family pro uchovávání posledních vybraných položek pro každý typ modulu
|
|
3
|
-
* Používá localStorage pro persistenci dat mezi reloady stránky
|
|
4
|
-
*/
|
|
5
|
-
export const recentItemsAtomFamily: import("jotai/vanilla/utils/atomFamily").AtomFamily<any, import("jotai").WritableAtom<any[], [any[] | typeof import("jotai/utils").RESET | ((prev: any[]) => any[] | typeof import("jotai/utils").RESET)], void>>;
|
|
6
|
-
export function clearRecentItems(moduleType: string, setAtom: Function): void;
|
|
7
|
-
/**
|
|
8
|
-
* Helper atom pro vývojářské účely - seznam všech typů modulů,
|
|
9
|
-
* které mají uložené nedávné položky
|
|
10
|
-
*/
|
|
11
|
-
export const moduleTypesWithRecentItemsAtom: import("jotai").Atom<string[]>;
|
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
import { atom } from 'jotai';
|
|
2
|
-
import { atomFamily, atomWithStorage } from 'jotai/utils';
|
|
3
|
-
/**
|
|
4
|
-
* Atom family pro uchovávání posledních vybraných položek pro každý typ modulu
|
|
5
|
-
* Používá localStorage pro persistenci dat mezi reloady stránky
|
|
6
|
-
*/
|
|
7
|
-
export const recentItemsAtomFamily = atomFamily((moduleType) => atomWithStorage(`recent-items-${moduleType}`, []), (a, b) => a === b);
|
|
8
|
-
/**
|
|
9
|
-
* Helper funkce pro vymazání všech uložených posledních položek
|
|
10
|
-
* pro konkrétní modul
|
|
11
|
-
*
|
|
12
|
-
* @param {string} moduleType - Typ modulu
|
|
13
|
-
* @param {Function} setAtom - Setter funkce pro daný atom
|
|
14
|
-
*/
|
|
15
|
-
export const clearRecentItems = (moduleType, setAtom) => {
|
|
16
|
-
setAtom(recentItemsAtomFamily(moduleType), []);
|
|
17
|
-
};
|
|
18
|
-
/**
|
|
19
|
-
* Helper atom pro vývojářské účely - seznam všech typů modulů,
|
|
20
|
-
* které mají uložené nedávné položky
|
|
21
|
-
*/
|
|
22
|
-
export const moduleTypesWithRecentItemsAtom = atom((get) => {
|
|
23
|
-
// Tato funkce by v produkční verzi potřebovala skutečný seznam
|
|
24
|
-
// všech modulů, což by bylo potřeba implementovat dle
|
|
25
|
-
// konkrétních požadavků aplikace
|
|
26
|
-
const moduleTypes = ['products', 'contracts'];
|
|
27
|
-
return moduleTypes.filter(moduleType => get(recentItemsAtomFamily(moduleType)).length > 0);
|
|
28
|
-
});
|
|
29
|
-
//# sourceMappingURL=recentItemsStore.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"recentItemsStore.js","sourceRoot":"","sources":["../../store/recentItemsStore.js"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,OAAO,CAAC;AAC7B,OAAO,EAAE,UAAU,EAAE,eAAe,EAAE,MAAM,aAAa,CAAC;AAE1D;;;GAGG;AACH,MAAM,CAAC,MAAM,qBAAqB,GAAG,UAAU,CAC7C,CAAC,UAAU,EAAE,EAAE,CAAC,eAAe,CAAC,gBAAgB,UAAU,EAAE,EAAE,EAAE,CAAC,EACjE,CAAC,CAAC,EAAE,CAAC,EAAE,EAAE,CAAC,CAAC,KAAK,CAAC,CAClB,CAAC;AAEF;;;;;;GAMG;AACH,MAAM,CAAC,MAAM,gBAAgB,GAAG,CAAC,UAAU,EAAE,OAAO,EAAE,EAAE;IACtD,OAAO,CAAC,qBAAqB,CAAC,UAAU,CAAC,EAAE,EAAE,CAAC,CAAC;AACjD,CAAC,CAAC;AAEF;;;GAGG;AACH,MAAM,CAAC,MAAM,8BAA8B,GAAG,IAAI,CAAC,CAAC,GAAG,EAAE,EAAE;IACzD,+DAA+D;IAC/D,sDAAsD;IACtD,iCAAiC;IACjC,MAAM,WAAW,GAAG,CAAC,UAAU,EAAE,WAAW,CAAC,CAAC;IAE9C,OAAO,WAAW,CAAC,MAAM,CAAC,UAAU,CAAC,EAAE,CACrC,GAAG,CAAC,qBAAqB,CAAC,UAAU,CAAC,CAAC,CAAC,MAAM,GAAG,CAAC,CAClD,CAAC;AACJ,CAAC,CAAC,CAAC"}
|
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
export function useModuleDropdownList({ moduleDefinition, value, displayMode }: {
|
|
2
|
-
moduleDefinition: any;
|
|
3
|
-
value: any;
|
|
4
|
-
displayMode?: string;
|
|
5
|
-
}): {
|
|
6
|
-
moduleDefinition: any;
|
|
7
|
-
modalOpen: boolean;
|
|
8
|
-
searchQuery: string;
|
|
9
|
-
dropdownSearchQuery: string;
|
|
10
|
-
selectedItem: any;
|
|
11
|
-
rowData: any;
|
|
12
|
-
fullListData: any;
|
|
13
|
-
isLoading: false;
|
|
14
|
-
isFullListLoading: false;
|
|
15
|
-
isDetailLoading: false;
|
|
16
|
-
openModal: () => void;
|
|
17
|
-
closeModal: () => void;
|
|
18
|
-
handleSearchChange: (query: any) => void;
|
|
19
|
-
handleDropdownSearchChange: (query: any) => void;
|
|
20
|
-
handleItemSelect: (item: any) => any;
|
|
21
|
-
clearSelection: () => void;
|
|
22
|
-
getDisplayValue: () => any;
|
|
23
|
-
moduleListQuery: import("@tanstack/react-query").DefinedUseQueryResult<unknown, Error>;
|
|
24
|
-
moduleFullListQuery: import("@tanstack/react-query").DefinedUseQueryResult<unknown, Error>;
|
|
25
|
-
moduleDetailQuery: import("@tanstack/react-query").DefinedUseQueryResult<unknown, Error>;
|
|
26
|
-
};
|