Commit e4ee8b2
authored
moves widget operations to backend (#5111)
* moves widget operations to backend
* removes logs
* remove frontent operations, adds disabledIf
* uses native operations from backend in widget controls (only remove left)
* removes skipOperations
* uses cascades to remove edit widget operation in layout-widget, updates skipEdit computed
* adds remove to backend config, keep it standalone in frontend
* fixes widgets tests
* emit operation from widget control with name instead of each individual name
* disable and tooltip props for breadcrumb switch
* rework controls / breadcrumb
* breadcrumb switch must have a value even if no def (radio input)
* in area editor get index from payload object (more generic way to use an object)
* uses nativeAction
* action for switch layout
* listen to bus events directly in layout editor
* disabledIdData for layout switch
* renames disabledIfData, makes disable and tooltip "work" for switch choices
* removes breadcrumb switch general tooltip
* removes choiceTooltip
* remove control broken
* breadcrumb switch has null had default value
* uses same table / mobile values than in brekpoint preview
* adds disabled logic in normal widget operations, fix remove button, clean code
* removes useless labels from backend primary widget operations (only tooltip needed)
* removes logs
* moves breakpoint preview mode value into its own store (easy to retrieve, watch, compute etc)
* renames tinyWidgetContainer into tinyScreen
* in breadcrumb switch remove useless div, adds missing classes, reorganizes css
* adds translation key for disabled switch on tiny screen
* missing store update when switching layout mode
* readability
* if switch choice becomes disabled switch to another one or unset it
* styles when entire breadcrumb switch is disabled
* adds style for disabled breadcrumb switch choice
* global disabled for breadcrumb switch
* compare current mobile preview screen with layout-widget mobile and tablet breakpoint
* clean
* be sure table and/or mobile breakpoints are ok
* share operation disable and tooltip in lib file, support disable and disable tooltip on entire switch
* supports only two choices in breadcrumb operations
* passes tooltip for breadcrumb menu
* fixes widget operations native before separator
* removes unsused import
* gets back old tablet and mobile defaults
* fix move breadcrumb operation
* fixes widgets tests
* adds changelog1 parent a4cce8b commit e4ee8b2
18 files changed
Lines changed: 511 additions & 312 deletions
File tree
- modules/@apostrophecms
- admin-bar/ui/apos/components
- area/ui/apos
- components
- lib
- logic
- i18n/i18n
- layout-column-widget
- layout-widget
- ui/apos/components
- ui/ui/apos
- apps
- stores
- widget-type
- test
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
11 | 11 | | |
12 | 12 | | |
13 | 13 | | |
| 14 | + | |
14 | 15 | | |
15 | 16 | | |
16 | 17 | | |
17 | 18 | | |
18 | 19 | | |
19 | 20 | | |
20 | 21 | | |
| 22 | + | |
| 23 | + | |
21 | 24 | | |
22 | 25 | | |
23 | 26 | | |
| |||
Lines changed: 7 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
56 | 56 | | |
57 | 57 | | |
58 | 58 | | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
59 | 62 | | |
60 | 63 | | |
61 | 64 | | |
| |||
83 | 86 | | |
84 | 87 | | |
85 | 88 | | |
86 | | - | |
87 | 89 | | |
88 | 90 | | |
89 | 91 | | |
| |||
94 | 96 | | |
95 | 97 | | |
96 | 98 | | |
| 99 | + | |
97 | 100 | | |
98 | 101 | | |
99 | 102 | | |
| |||
154 | 157 | | |
155 | 158 | | |
156 | 159 | | |
| 160 | + | |
157 | 161 | | |
158 | 162 | | |
159 | 163 | | |
| |||
205 | 209 | | |
206 | 210 | | |
207 | 211 | | |
208 | | - | |
| 212 | + | |
209 | 213 | | |
210 | 214 | | |
211 | 215 | | |
| |||
249 | 253 | | |
250 | 254 | | |
251 | 255 | | |
252 | | - | |
| 256 | + | |
253 | 257 | | |
254 | 258 | | |
255 | 259 | | |
| |||
Lines changed: 35 additions & 15 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
80 | 80 | | |
81 | 81 | | |
82 | 82 | | |
| 83 | + | |
83 | 84 | | |
84 | 85 | | |
85 | 86 | | |
86 | 87 | | |
87 | 88 | | |
88 | 89 | | |
89 | | - | |
| 90 | + | |
90 | 91 | | |
91 | 92 | | |
92 | 93 | | |
| |||
128 | 129 | | |
129 | 130 | | |
130 | 131 | | |
| 132 | + | |
131 | 133 | | |
132 | 134 | | |
133 | 135 | | |
| |||
136 | 138 | | |
137 | 139 | | |
138 | 140 | | |
139 | | - | |
140 | | - | |
141 | | - | |
142 | | - | |
143 | | - | |
144 | | - | |
145 | | - | |
146 | 141 | | |
| 142 | + | |
147 | 143 | | |
148 | 144 | | |
149 | 145 | | |
| |||
211 | 207 | | |
212 | 208 | | |
213 | 209 | | |
214 | | - | |
| 210 | + | |
215 | 211 | | |
216 | 212 | | |
217 | 213 | | |
| |||
357 | 353 | | |
358 | 354 | | |
359 | 355 | | |
| 356 | + | |
360 | 357 | | |
361 | 358 | | |
362 | 359 | | |
| |||
402 | 399 | | |
403 | 400 | | |
404 | 401 | | |
405 | | - | |
| 402 | + | |
| 403 | + | |
406 | 404 | | |
407 | 405 | | |
408 | 406 | | |
| |||
451 | 449 | | |
452 | 450 | | |
453 | 451 | | |
454 | | - | |
| 452 | + | |
| 453 | + | |
| 454 | + | |
| 455 | + | |
| 456 | + | |
| 457 | + | |
| 458 | + | |
| 459 | + | |
| 460 | + | |
| 461 | + | |
| 462 | + | |
| 463 | + | |
| 464 | + | |
| 465 | + | |
| 466 | + | |
| 467 | + | |
| 468 | + | |
| 469 | + | |
| 470 | + | |
| 471 | + | |
| 472 | + | |
| 473 | + | |
| 474 | + | |
455 | 475 | | |
456 | 476 | | |
457 | 477 | | |
| |||
503 | 523 | | |
504 | 524 | | |
505 | 525 | | |
506 | | - | |
| 526 | + | |
507 | 527 | | |
508 | 528 | | |
509 | 529 | | |
| |||
524 | 544 | | |
525 | 545 | | |
526 | 546 | | |
527 | | - | |
528 | | - | |
529 | | - | |
| 547 | + | |
| 548 | + | |
| 549 | + | |
530 | 550 | | |
531 | 551 | | |
532 | 552 | | |
| |||
Lines changed: 48 additions & 21 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
48 | 48 | | |
49 | 49 | | |
50 | 50 | | |
51 | | - | |
52 | 51 | | |
| 52 | + | |
| 53 | + | |
53 | 54 | | |
54 | 55 | | |
55 | 56 | | |
| |||
58 | 59 | | |
59 | 60 | | |
60 | 61 | | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
61 | 66 | | |
62 | 67 | | |
63 | 68 | | |
| |||
159 | 164 | | |
160 | 165 | | |
161 | 166 | | |
| 167 | + | |
| 168 | + | |
| 169 | + | |
| 170 | + | |
| 171 | + | |
| 172 | + | |
162 | 173 | | |
163 | 174 | | |
164 | 175 | | |
165 | 176 | | |
166 | | - | |
| 177 | + | |
| 178 | + | |
167 | 179 | | |
168 | 180 | | |
169 | 181 | | |
170 | 182 | | |
| 183 | + | |
| 184 | + | |
| 185 | + | |
| 186 | + | |
| 187 | + | |
| 188 | + | |
| 189 | + | |
| 190 | + | |
| 191 | + | |
| 192 | + | |
| 193 | + | |
| 194 | + | |
171 | 195 | | |
172 | 196 | | |
173 | 197 | | |
174 | | - | |
| 198 | + | |
175 | 199 | | |
176 | | - | |
| 200 | + | |
| 201 | + | |
| 202 | + | |
177 | 203 | | |
178 | 204 | | |
179 | 205 | | |
| |||
183 | 209 | | |
184 | 210 | | |
185 | 211 | | |
186 | | - | |
187 | | - | |
| 212 | + | |
| 213 | + | |
| 214 | + | |
188 | 215 | | |
189 | 216 | | |
190 | 217 | | |
| |||
255 | 282 | | |
256 | 283 | | |
257 | 284 | | |
258 | | - | |
259 | | - | |
| 285 | + | |
| 286 | + | |
| 287 | + | |
| 288 | + | |
| 289 | + | |
| 290 | + | |
| 291 | + | |
| 292 | + | |
260 | 293 | | |
261 | | - | |
262 | | - | |
263 | | - | |
264 | | - | |
265 | | - | |
266 | | - | |
267 | | - | |
268 | | - | |
269 | | - | |
270 | | - | |
271 | | - | |
272 | | - | |
273 | | - | |
| 294 | + | |
| 295 | + | |
274 | 296 | | |
| 297 | + | |
| 298 | + | |
| 299 | + | |
| 300 | + | |
| 301 | + | |
275 | 302 | | |
276 | 303 | | |
277 | 304 | | |
| |||
0 commit comments