@operato/context 2.0.0-alpha.98 → 2.0.0-beta.0

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.
Files changed (67) hide show
  1. package/CHANGELOG.md +462 -0
  2. package/dist/src/layouts/ox-context-page-toolbar.js +15 -13
  3. package/dist/src/layouts/ox-context-page-toolbar.js.map +1 -1
  4. package/dist/src/layouts/ox-context-toolbar.js +21 -25
  5. package/dist/src/layouts/ox-context-toolbar.js.map +1 -1
  6. package/dist/src/tools/ox-page-action-context-bar.d.ts +3 -2
  7. package/dist/src/tools/ox-page-action-context-bar.js +74 -49
  8. package/dist/src/tools/ox-page-action-context-bar.js.map +1 -1
  9. package/dist/src/tools/ox-page-action-overlay-template.d.ts +1 -0
  10. package/dist/src/tools/ox-page-action-overlay-template.js +29 -21
  11. package/dist/src/tools/ox-page-action-overlay-template.js.map +1 -1
  12. package/dist/src/tools/ox-page-title-bar.js +9 -8
  13. package/dist/src/tools/ox-page-title-bar.js.map +1 -1
  14. package/dist/src/tools/ox-title-bar.js +13 -12
  15. package/dist/src/tools/ox-title-bar.js.map +1 -1
  16. package/dist/stories/ox-context-page-toolbar-select-buttons.stories.d.ts +5 -0
  17. package/dist/stories/ox-context-page-toolbar-select-buttons.stories.js +59 -30
  18. package/dist/stories/ox-context-page-toolbar-select-buttons.stories.js.map +1 -1
  19. package/dist/stories/ox-context-page-toolbar-select.stories.d.ts +5 -0
  20. package/dist/stories/ox-context-page-toolbar-select.stories.js +60 -25
  21. package/dist/stories/ox-context-page-toolbar-select.stories.js.map +1 -1
  22. package/dist/stories/ox-context-page-toolbar.stories.d.ts +5 -0
  23. package/dist/stories/ox-context-page-toolbar.stories.js +53 -26
  24. package/dist/stories/ox-context-page-toolbar.stories.js.map +1 -1
  25. package/dist/stories/ox-context-toolbar-complex.stories.d.ts +7 -1
  26. package/dist/stories/ox-context-toolbar-complex.stories.js +31 -8
  27. package/dist/stories/ox-context-toolbar-complex.stories.js.map +1 -1
  28. package/dist/stories/ox-context-toolbar-cooldown.stories.d.ts +18 -0
  29. package/dist/stories/ox-context-toolbar-cooldown.stories.js +100 -0
  30. package/dist/stories/ox-context-toolbar-cooldown.stories.js.map +1 -0
  31. package/dist/stories/ox-context-toolbar-empty.stories.d.ts +7 -2
  32. package/dist/stories/ox-context-toolbar-empty.stories.js +32 -18
  33. package/dist/stories/ox-context-toolbar-empty.stories.js.map +1 -1
  34. package/dist/stories/ox-context-toolbar-overflow.stories.d.ts +7 -1
  35. package/dist/stories/ox-context-toolbar-overflow.stories.js +35 -9
  36. package/dist/stories/ox-context-toolbar-overflow.stories.js.map +1 -1
  37. package/dist/stories/ox-context-toolbar.stories.d.ts +1 -0
  38. package/dist/stories/ox-context-toolbar.stories.js +32 -7
  39. package/dist/stories/ox-context-toolbar.stories.js.map +1 -1
  40. package/dist/tsconfig.tsbuildinfo +1 -1
  41. package/package.json +8 -8
  42. package/src/layouts/ox-context-page-toolbar.ts +15 -13
  43. package/src/layouts/ox-context-toolbar.ts +21 -25
  44. package/src/tools/ox-page-action-context-bar.ts +76 -48
  45. package/src/tools/ox-page-action-overlay-template.ts +30 -22
  46. package/src/tools/ox-page-title-bar.ts +9 -8
  47. package/src/tools/ox-title-bar.ts +13 -12
  48. package/stories/ox-context-page-toolbar-select-buttons.stories.ts +122 -91
  49. package/stories/ox-context-page-toolbar-select.stories.ts +93 -57
  50. package/stories/ox-context-page-toolbar.stories.ts +92 -63
  51. package/stories/ox-context-toolbar-complex.stories.ts +34 -9
  52. package/stories/ox-context-toolbar-cooldown.stories.ts +112 -0
  53. package/stories/ox-context-toolbar-empty.stories.ts +36 -19
  54. package/stories/ox-context-toolbar-overflow.stories.ts +38 -10
  55. package/stories/ox-context-toolbar.stories.ts +35 -8
  56. package/themes/dark-hc.css +51 -0
  57. package/themes/dark-mc.css +51 -0
  58. package/themes/dark.css +51 -0
  59. package/themes/light-hc.css +51 -0
  60. package/themes/light-mc.css +51 -0
  61. package/themes/light.css +57 -0
  62. package/themes/md-typescale-styles.css +100 -0
  63. package/themes/spacing.css +13 -0
  64. package/themes/state-color.css +6 -0
  65. package/themes/app-theme.css +0 -161
  66. package/themes/context-theme.css +0 -74
  67. package/themes/material-theme.css +0 -88
package/CHANGELOG.md CHANGED
@@ -3,6 +3,468 @@
3
3
  All notable changes to this project will be documented in this file.
4
4
  See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
5
 
6
+ ## [2.0.0-beta.0](https://github.com/hatiolab/operato/compare/v2.0.0-alpha.158...v2.0.0-beta.0) (2024-06-01)
7
+
8
+ **Note:** Version bump only for package @operato/context
9
+
10
+
11
+
12
+
13
+
14
+ ## [2.0.0-alpha.158](https://github.com/hatiolab/operato/compare/v2.0.0-alpha.157...v2.0.0-alpha.158) (2024-06-01)
15
+
16
+ **Note:** Version bump only for package @operato/context
17
+
18
+
19
+
20
+
21
+
22
+ ## [2.0.0-alpha.157](https://github.com/hatiolab/operato/compare/v2.0.0-alpha.156...v2.0.0-alpha.157) (2024-06-01)
23
+
24
+
25
+ ### :bug: Bug Fix
26
+
27
+ * theming styles ([118fe71](https://github.com/hatiolab/operato/commit/118fe711fd86d89453f97320bf9fef1e51b4ac23))
28
+
29
+
30
+
31
+ ## [2.0.0-alpha.156](https://github.com/hatiolab/operato/compare/v2.0.0-alpha.155...v2.0.0-alpha.156) (2024-06-01)
32
+
33
+
34
+ ### :bug: Bug Fix
35
+
36
+ * theming styles ([3b282c2](https://github.com/hatiolab/operato/commit/3b282c21d93af03bacc5aa40027591e005f1a067))
37
+
38
+
39
+
40
+ ## [2.0.0-alpha.155](https://github.com/hatiolab/operato/compare/v2.0.0-alpha.154...v2.0.0-alpha.155) (2024-06-01)
41
+
42
+ **Note:** Version bump only for package @operato/context
43
+
44
+
45
+
46
+
47
+
48
+ ## [2.0.0-alpha.154](https://github.com/hatiolab/operato/compare/v2.0.0-alpha.153...v2.0.0-alpha.154) (2024-06-01)
49
+
50
+ **Note:** Version bump only for package @operato/context
51
+
52
+
53
+
54
+
55
+
56
+ ## [2.0.0-alpha.153](https://github.com/hatiolab/operato/compare/v2.0.0-alpha.152...v2.0.0-alpha.153) (2024-05-31)
57
+
58
+ **Note:** Version bump only for package @operato/context
59
+
60
+
61
+
62
+
63
+
64
+ ## [2.0.0-alpha.152](https://github.com/hatiolab/operato/compare/v2.0.0-alpha.151...v2.0.0-alpha.152) (2024-05-30)
65
+
66
+
67
+ ### :bug: Bug Fix
68
+
69
+ * theming style - background-color ([48a0fe4](https://github.com/hatiolab/operato/commit/48a0fe49a533ae1fbd7931a2951b6a68e9c39b01))
70
+
71
+
72
+
73
+ ## [2.0.0-alpha.151](https://github.com/hatiolab/operato/compare/v2.0.0-alpha.150...v2.0.0-alpha.151) (2024-05-30)
74
+
75
+
76
+ ### :bug: Bug Fix
77
+
78
+ * theming styles ([c5f59c2](https://github.com/hatiolab/operato/commit/c5f59c2e55a36eedf9056bcf2187c218556ded3e))
79
+
80
+
81
+
82
+ ## [2.0.0-alpha.150](https://github.com/hatiolab/operato/compare/v2.0.0-alpha.149...v2.0.0-alpha.150) (2024-05-30)
83
+
84
+ **Note:** Version bump only for package @operato/context
85
+
86
+
87
+
88
+
89
+
90
+ ## [2.0.0-alpha.149](https://github.com/hatiolab/operato/compare/v2.0.0-alpha.148...v2.0.0-alpha.149) (2024-05-30)
91
+
92
+
93
+ ### :bug: Bug Fix
94
+
95
+ * styles ([9ec269b](https://github.com/hatiolab/operato/commit/9ec269b18bc82a931083137214fb6e3017201107))
96
+
97
+
98
+
99
+ ## [2.0.0-alpha.148](https://github.com/hatiolab/operato/compare/v2.0.0-alpha.147...v2.0.0-alpha.148) (2024-05-30)
100
+
101
+
102
+ ### :rocket: New Features
103
+
104
+ * md3 ([2d85145](https://github.com/hatiolab/operato/commit/2d8514510e4dd88d3ff0652e0b22c9992cabce5c))
105
+ * md3 ([55b7496](https://github.com/hatiolab/operato/commit/55b7496ea46a6b65ac6ab71bc1be7c89d1ba91e5))
106
+
107
+
108
+ ### :bug: Bug Fix
109
+
110
+ * context style ([d3cac99](https://github.com/hatiolab/operato/commit/d3cac9909a61befa05ec30331a32e2de6d39ba5e))
111
+
112
+
113
+ ### :mega: Other
114
+
115
+ * context sample stories ([0e34d5a](https://github.com/hatiolab/operato/commit/0e34d5a40ff7cad78c8eda591d2bd0f88c80fcf4))
116
+
117
+
118
+
119
+ ## [2.0.0-alpha.146](https://github.com/hatiolab/operato/compare/v2.0.0-alpha.145...v2.0.0-alpha.146) (2024-05-29)
120
+
121
+ **Note:** Version bump only for package @operato/context
122
+
123
+
124
+
125
+
126
+
127
+ ## [2.0.0-alpha.145](https://github.com/hatiolab/operato/compare/v2.0.0-alpha.144...v2.0.0-alpha.145) (2024-05-28)
128
+
129
+ **Note:** Version bump only for package @operato/context
130
+
131
+
132
+
133
+
134
+
135
+ ## [2.0.0-alpha.143](https://github.com/hatiolab/operato/compare/v2.0.0-alpha.142...v2.0.0-alpha.143) (2024-05-23)
136
+
137
+ **Note:** Version bump only for package @operato/context
138
+
139
+
140
+
141
+
142
+
143
+ ## [2.0.0-alpha.142](https://github.com/hatiolab/operato/compare/v2.0.0-alpha.141...v2.0.0-alpha.142) (2024-05-21)
144
+
145
+ **Note:** Version bump only for package @operato/context
146
+
147
+
148
+
149
+
150
+
151
+ ## [2.0.0-alpha.141](https://github.com/hatiolab/operato/compare/v2.0.0-alpha.140...v2.0.0-alpha.141) (2024-05-17)
152
+
153
+ **Note:** Version bump only for package @operato/context
154
+
155
+
156
+
157
+
158
+
159
+ ## [2.0.0-alpha.140](https://github.com/hatiolab/operato/compare/v2.0.0-alpha.139...v2.0.0-alpha.140) (2024-05-17)
160
+
161
+ **Note:** Version bump only for package @operato/context
162
+
163
+
164
+
165
+
166
+
167
+ ## [2.0.0-alpha.139](https://github.com/hatiolab/operato/compare/v2.0.0-alpha.138...v2.0.0-alpha.139) (2024-05-16)
168
+
169
+ **Note:** Version bump only for package @operato/context
170
+
171
+
172
+
173
+
174
+
175
+ ## [2.0.0-alpha.138](https://github.com/hatiolab/operato/compare/v2.0.0-alpha.137...v2.0.0-alpha.138) (2024-05-15)
176
+
177
+ **Note:** Version bump only for package @operato/context
178
+
179
+
180
+
181
+
182
+
183
+ ## [2.0.0-alpha.137](https://github.com/hatiolab/operato/compare/v2.0.0-alpha.136...v2.0.0-alpha.137) (2024-05-15)
184
+
185
+ **Note:** Version bump only for package @operato/context
186
+
187
+
188
+
189
+
190
+
191
+ ## [2.0.0-alpha.136](https://github.com/hatiolab/operato/compare/v2.0.0-alpha.135...v2.0.0-alpha.136) (2024-05-14)
192
+
193
+ **Note:** Version bump only for package @operato/context
194
+
195
+
196
+
197
+
198
+
199
+ ## [2.0.0-alpha.135](https://github.com/hatiolab/operato/compare/v2.0.0-alpha.134...v2.0.0-alpha.135) (2024-05-14)
200
+
201
+
202
+ ### :bug: Bug Fix
203
+
204
+ * lit-element의 textContext 에 직접 값을 치환하는 경우 발생하는 문제 ([e614a69](https://github.com/hatiolab/operato/commit/e614a69194d18d582345bdbd5c4b101e4a531348))
205
+
206
+
207
+
208
+ ## [2.0.0-alpha.134](https://github.com/hatiolab/operato/compare/v2.0.0-alpha.133...v2.0.0-alpha.134) (2024-05-13)
209
+
210
+ **Note:** Version bump only for package @operato/context
211
+
212
+
213
+
214
+
215
+
216
+ ## [2.0.0-alpha.133](https://github.com/hatiolab/operato/compare/v2.0.0-alpha.132...v2.0.0-alpha.133) (2024-05-12)
217
+
218
+ **Note:** Version bump only for package @operato/context
219
+
220
+
221
+
222
+
223
+
224
+ ## [2.0.0-alpha.132](https://github.com/hatiolab/operato/compare/v2.0.0-alpha.131...v2.0.0-alpha.132) (2024-05-11)
225
+
226
+ **Note:** Version bump only for package @operato/context
227
+
228
+
229
+
230
+
231
+
232
+ ## [2.0.0-alpha.131](https://github.com/hatiolab/operato/compare/v2.0.0-alpha.130...v2.0.0-alpha.131) (2024-05-11)
233
+
234
+ **Note:** Version bump only for package @operato/context
235
+
236
+
237
+
238
+
239
+
240
+ ## [2.0.0-alpha.129](https://github.com/hatiolab/operato/compare/v2.0.0-alpha.128...v2.0.0-alpha.129) (2024-05-08)
241
+
242
+ **Note:** Version bump only for package @operato/context
243
+
244
+
245
+
246
+
247
+
248
+ ## [2.0.0-alpha.128](https://github.com/hatiolab/operato/compare/v2.0.0-alpha.127...v2.0.0-alpha.128) (2024-05-08)
249
+
250
+
251
+ ### :bug: Bug Fix
252
+
253
+ * add padding to ox-context-page-toolbar to accommodate button shadow ([79431a0](https://github.com/hatiolab/operato/commit/79431a03f01230a1bff2f9b62c031c38812d32b2))
254
+
255
+
256
+
257
+ ## [2.0.0-alpha.126](https://github.com/hatiolab/operato/compare/v2.0.0-alpha.125...v2.0.0-alpha.126) (2024-05-08)
258
+
259
+
260
+ ### :rocket: New Features
261
+
262
+ * prevent button reaction during executing previous user action ([fceb956](https://github.com/hatiolab/operato/commit/fceb95601e62e7fd3ff92231788a37dd3d57eb41))
263
+
264
+
265
+
266
+ ## [2.0.0-alpha.125](https://github.com/hatiolab/operato/compare/v2.0.0-alpha.124...v2.0.0-alpha.125) (2024-05-08)
267
+
268
+
269
+ ### :rocket: New Features
270
+
271
+ * prevent button reaction during executing previous user action ([d613706](https://github.com/hatiolab/operato/commit/d6137066f81c8598a9711e584ad8ead6e1cf1c5d))
272
+
273
+
274
+
275
+ ## [2.0.0-alpha.124](https://github.com/hatiolab/operato/compare/v2.0.0-alpha.123...v2.0.0-alpha.124) (2024-05-08)
276
+
277
+
278
+ ### :rocket: New Features
279
+
280
+ * prevent button reaction during executing previous user action ([370a6c5](https://github.com/hatiolab/operato/commit/370a6c57267ad2a127311996cc393c25ad0b424c))
281
+
282
+
283
+
284
+ ## [2.0.0-alpha.123](https://github.com/hatiolab/operato/compare/v2.0.0-alpha.122...v2.0.0-alpha.123) (2024-05-07)
285
+
286
+ **Note:** Version bump only for package @operato/context
287
+
288
+
289
+
290
+
291
+
292
+ ## [2.0.0-alpha.122](https://github.com/hatiolab/operato/compare/v2.0.0-alpha.121...v2.0.0-alpha.122) (2024-05-06)
293
+
294
+ **Note:** Version bump only for package @operato/context
295
+
296
+
297
+
298
+
299
+
300
+ ## [2.0.0-alpha.121](https://github.com/hatiolab/operato/compare/v2.0.0-alpha.120...v2.0.0-alpha.121) (2024-05-05)
301
+
302
+ **Note:** Version bump only for package @operato/context
303
+
304
+
305
+
306
+
307
+
308
+ ## [2.0.0-alpha.120](https://github.com/hatiolab/operato/compare/v2.0.0-alpha.119...v2.0.0-alpha.120) (2024-05-05)
309
+
310
+ **Note:** Version bump only for package @operato/context
311
+
312
+
313
+
314
+
315
+
316
+ ## [2.0.0-alpha.119](https://github.com/hatiolab/operato/compare/v2.0.0-alpha.118...v2.0.0-alpha.119) (2024-05-04)
317
+
318
+ **Note:** Version bump only for package @operato/context
319
+
320
+
321
+
322
+
323
+
324
+ ## [2.0.0-alpha.118](https://github.com/hatiolab/operato/compare/v2.0.0-alpha.117...v2.0.0-alpha.118) (2024-05-04)
325
+
326
+ **Note:** Version bump only for package @operato/context
327
+
328
+
329
+
330
+
331
+
332
+ ## [2.0.0-alpha.117](https://github.com/hatiolab/operato/compare/v2.0.0-alpha.116...v2.0.0-alpha.117) (2024-05-04)
333
+
334
+ **Note:** Version bump only for package @operato/context
335
+
336
+
337
+
338
+
339
+
340
+ ## [2.0.0-alpha.116](https://github.com/hatiolab/operato/compare/v2.0.0-alpha.115...v2.0.0-alpha.116) (2024-05-04)
341
+
342
+ **Note:** Version bump only for package @operato/context
343
+
344
+
345
+
346
+
347
+
348
+ ## [2.0.0-alpha.115](https://github.com/hatiolab/operato/compare/v2.0.0-alpha.114...v2.0.0-alpha.115) (2024-05-04)
349
+
350
+ **Note:** Version bump only for package @operato/context
351
+
352
+
353
+
354
+
355
+
356
+ ## [2.0.0-alpha.114](https://github.com/hatiolab/operato/compare/v2.0.0-alpha.113...v2.0.0-alpha.114) (2024-05-04)
357
+
358
+ **Note:** Version bump only for package @operato/context
359
+
360
+
361
+
362
+
363
+
364
+ ## [2.0.0-alpha.112](https://github.com/hatiolab/operato/compare/v2.0.0-alpha.111...v2.0.0-alpha.112) (2024-05-02)
365
+
366
+ **Note:** Version bump only for package @operato/context
367
+
368
+
369
+
370
+
371
+
372
+ ## [2.0.0-alpha.111](https://github.com/hatiolab/operato/compare/v2.0.0-alpha.110...v2.0.0-alpha.111) (2024-05-02)
373
+
374
+ **Note:** Version bump only for package @operato/context
375
+
376
+
377
+
378
+
379
+
380
+ ## [2.0.0-alpha.110](https://github.com/hatiolab/operato/compare/v2.0.0-alpha.109...v2.0.0-alpha.110) (2024-05-02)
381
+
382
+ **Note:** Version bump only for package @operato/context
383
+
384
+
385
+
386
+
387
+
388
+ ## [2.0.0-alpha.109](https://github.com/hatiolab/operato/compare/v2.0.0-alpha.108...v2.0.0-alpha.109) (2024-05-02)
389
+
390
+ **Note:** Version bump only for package @operato/context
391
+
392
+
393
+
394
+
395
+
396
+ ## [2.0.0-alpha.108](https://github.com/hatiolab/operato/compare/v2.0.0-alpha.107...v2.0.0-alpha.108) (2024-05-02)
397
+
398
+ **Note:** Version bump only for package @operato/context
399
+
400
+
401
+
402
+
403
+
404
+ ## [2.0.0-alpha.107](https://github.com/hatiolab/operato/compare/v2.0.0-alpha.106...v2.0.0-alpha.107) (2024-05-01)
405
+
406
+ **Note:** Version bump only for package @operato/context
407
+
408
+
409
+
410
+
411
+
412
+ ## [2.0.0-alpha.106](https://github.com/hatiolab/operato/compare/v2.0.0-alpha.105...v2.0.0-alpha.106) (2024-04-26)
413
+
414
+ **Note:** Version bump only for package @operato/context
415
+
416
+
417
+
418
+
419
+
420
+ ## [2.0.0-alpha.105](https://github.com/hatiolab/operato/compare/v2.0.0-alpha.104...v2.0.0-alpha.105) (2024-04-26)
421
+
422
+ **Note:** Version bump only for package @operato/context
423
+
424
+
425
+
426
+
427
+
428
+ ## [2.0.0-alpha.104](https://github.com/hatiolab/operato/compare/v2.0.0-alpha.103...v2.0.0-alpha.104) (2024-04-26)
429
+
430
+ **Note:** Version bump only for package @operato/context
431
+
432
+
433
+
434
+
435
+
436
+ ## [2.0.0-alpha.103](https://github.com/hatiolab/operato/compare/v2.0.0-alpha.102...v2.0.0-alpha.103) (2024-04-26)
437
+
438
+ **Note:** Version bump only for package @operato/context
439
+
440
+
441
+
442
+
443
+
444
+ ## [2.0.0-alpha.102](https://github.com/hatiolab/operato/compare/v2.0.0-alpha.101...v2.0.0-alpha.102) (2024-04-22)
445
+
446
+ **Note:** Version bump only for package @operato/context
447
+
448
+
449
+
450
+
451
+
452
+ ## [2.0.0-alpha.100](https://github.com/hatiolab/operato/compare/v2.0.0-alpha.99...v2.0.0-alpha.100) (2024-04-21)
453
+
454
+ **Note:** Version bump only for package @operato/context
455
+
456
+
457
+
458
+
459
+
460
+ ## [2.0.0-alpha.99](https://github.com/hatiolab/operato/compare/v2.0.0-alpha.98...v2.0.0-alpha.99) (2024-04-21)
461
+
462
+ **Note:** Version bump only for package @operato/context
463
+
464
+
465
+
466
+
467
+
6
468
  ## [2.0.0-alpha.98](https://github.com/hatiolab/operato/compare/v2.0.0-alpha.97...v2.0.0-alpha.98) (2024-04-21)
7
469
 
8
470
 
@@ -12,12 +12,14 @@ let ContextPageToolbar = class ContextPageToolbar extends connect(store)(LitElem
12
12
  :host {
13
13
  display: flex;
14
14
  flex-direction: row-reverse;
15
+ gap: var(--spacing-medium);
16
+
15
17
  position: relative;
16
18
 
17
19
  justify-content: end;
18
20
  align-items: center;
19
21
 
20
- --context-action-bar-button-margin: 0px;
22
+ --context-action-bar-button-margin: var(--spacing-none);
21
23
  --context-action-bar-more-button-border-radius: 2px;
22
24
 
23
25
  --md-icon-size: 20px;
@@ -28,29 +30,29 @@ let ContextPageToolbar = class ContextPageToolbar extends connect(store)(LitElem
28
30
  flex-direction: row;
29
31
 
30
32
  align-items: center;
31
- gap: var(--padding-narrow);
32
- }
33
-
34
- * {
35
- cursor: pointer;
33
+ gap: var(--spacing-small);
36
34
  }
37
35
 
38
36
  md-icon {
39
- background-color: var(--button-background-color, #fafbfc);
40
- border: 1px solid rgba(var(--primary-color-rgb), 0.5);
41
- border-radius: var(--button-border-radius);
42
- padding: var(--iconbtn-padding, 4px);
37
+ background-color: var(--md-sys-color-primary-container);
38
+ border: 1px solid var(--md-sys-color-outline);
39
+ border-radius: var(--md-sys-shape-corner-small);
40
+ padding: var(--spacing-small);
43
41
 
44
- color: var(--primary-color);
42
+ color: var(--md-sys-color-primary);
45
43
 
46
44
  &:hover {
47
- background-color: var(--primary-color);
45
+ background-color: var(--md-sys-color-primary);
48
46
 
49
- color: var(--theme-white-color);
47
+ color: var(--md-sys-color-secondary-container);
50
48
  }
51
49
  }
52
50
 
53
51
  @media screen and (max-width: 460px) {
52
+ :host {
53
+ gap: 0;
54
+ }
55
+
54
56
  :host > div {
55
57
  gap: 0;
56
58
  }
@@ -1 +1 @@
1
- {"version":3,"file":"ox-context-page-toolbar.js","sourceRoot":"","sources":["../../../src/layouts/ox-context-page-toolbar.ts"],"names":[],"mappings":";AAAA,OAAO,4BAA4B,CAAA;AAEnC,OAAO,EAAE,GAAG,EAAE,IAAI,EAAE,UAAU,EAAkB,OAAO,EAAE,MAAM,KAAK,CAAA;AACpE,OAAO,EAAE,aAAa,EAAE,QAAQ,EAAgB,MAAM,mBAAmB,CAAA;AACzE,OAAO,EAAE,OAAO,EAAE,MAAM,8BAA8B,CAAA;AAEtD,OAAO,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAA;AAC/C,OAAO,EAAE,KAAK,EAAE,MAAM,gBAAgB,CAAA;AAG/B,IAAM,kBAAkB,GAAxB,MAAM,kBAAmB,SAAQ,OAAO,CAAC,KAAK,CAAC,CAAC,UAAU,CAAC;IAChE,MAAM,KAAK,MAAM;QACf,OAAO;YACL,GAAG,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;OAmDF;SACF,CAAA;IACH,CAAC;IASD,MAAM;QACJ,IAAI,WAAW,GAAG,MAAM,CAAC,IAAI,CAAC,IA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B,kBAAkB,CAqG9B","sourcesContent":["import '@material/web/icon/icon.js'\n\nimport { css, html, LitElement, TemplateResult, nothing } from 'lit'\nimport { customElement, property, query, state } from 'lit/decorators.js'\nimport { connect } from 'pwa-helpers/connect-mixin.js'\n\nimport { TOOL_POSITION } from '@operato/layout'\nimport { store } from '@operato/shell'\n\n@customElement('ox-context-page-toolbar')\nexport class ContextPageToolbar extends connect(store)(LitElement) {\n static get styles() {\n return [\n css`\n :host {\n display: flex;\n flex-direction: row-reverse;\n position: relative;\n\n justify-content: end;\n align-items: center;\n\n --context-action-bar-button-margin: 0px;\n --context-action-bar-more-button-border-radius: 2px;\n\n --md-icon-size: 20px;\n }\n\n :host > div {\n display: flex;\n flex-direction: row;\n\n align-items: center;\n gap: var(--padding-narrow);\n }\n\n * {\n cursor: pointer;\n }\n\n md-icon {\n background-color: var(--button-background-color, #fafbfc);\n border: 1px solid rgba(var(--primary-color-rgb), 0.5);\n border-radius: var(--button-border-radius);\n padding: var(--iconbtn-padding, 4px);\n\n color: var(--primary-color);\n\n &:hover {\n background-color: var(--primary-color);\n\n color: var(--theme-white-color);\n }\n }\n\n @media screen and (max-width: 460px) {\n :host > div {\n gap: 0;\n }\n\n md-icon {\n border-radius: 0;\n }\n }\n `\n ]\n }\n\n @property({ type: Object }) context: any\n @property({ type: Array }) tools?: {\n position: TOOL_POSITION\n template: TemplateResult\n context?: string\n }[]\n\n render() {\n let contextKeys = Object.keys(this.context).filter(key => !!this.context[key])\n let tools = (this.tools || []).filter(tool => {\n if (!tool.context || contextKeys.includes(tool.context)) {\n return tool\n }\n })\n\n let frontEndTools = tools.filter(tool => tool.position == TOOL_POSITION.FRONT_END)\n let frontTools = tools.filter(tool => tool.position == TOOL_POSITION.FRONT)\n let centerTools = tools.filter(tool => tool.position == TOOL_POSITION.CENTER)\n let rearTools = tools.filter(tool => tool.position == TOOL_POSITION.REAR)\n let rearEndTools = tools.filter(tool => tool.position == TOOL_POSITION.REAR_END)\n\n return html`\n ${frontEndTools.length > 0\n ? html`<div id=\"front-end\">${frontEndTools.map(tool => html` ${tool.template} `)}</div>`\n : nothing}\n ${frontTools.length > 0\n ? html`<div id=\"front\">${frontTools.map(tool => html` ${tool.template} `)}</div>`\n : nothing}\n ${centerTools.length > 0\n ? html`<div id=\"center\">${centerTools.map(tool => html` ${tool.template} `)}</div>`\n : nothing}\n ${rearTools.length > 0 ? html`<div id=\"rear\">${rearTools.map(tool => html` ${tool.template} `)}</div>` : nothing}\n ${rearEndTools.length > 0\n ? html`<div id=\"rear-end\">${rearEndTools.map(tool => html` ${tool.template} `)}</div>`\n : nothing}\n `\n }\n\n stateChanged(state: any) {\n if (state.context) {\n this.tools = state.context?.tools\n }\n }\n}\n"]}
1
+ {"version":3,"file":"ox-context-page-toolbar.js","sourceRoot":"","sources":["../../../src/layouts/ox-context-page-toolbar.ts"],"names":[],"mappings":";AAAA,OAAO,4BAA4B,CAAA;AAEnC,OAAO,EAAE,GAAG,EAAE,IAAI,EAAE,UAAU,EAAkB,OAAO,EAAE,MAAM,KAAK,CAAA;AACpE,OAAO,EAAE,aAAa,EAAE,QAAQ,EAAgB,MAAM,mBAAmB,CAAA;AACzE,OAAO,EAAE,OAAO,EAAE,MAAM,8BAA8B,CAAA;AAEtD,OAAO,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAA;AAC/C,OAAO,EAAE,KAAK,EAAE,MAAM,gBAAgB,CAAA;AAG/B,IAAM,kBAAkB,GAAxB,MAAM,kBAAmB,SAAQ,OAAO,CAAC,KAAK,CAAC,CAAC,UAAU,CAAC;IAChE,MAAM,KAAK,MAAM;QACf,OAAO;YACL,GAAG,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;OAqDF;SACF,CAAA;IACH,CAAC;IASD,MAAM;QACJ,IAAI,WAAW,GAAG,MAAM,CAAC,IAAI,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC,MAAM,CAAC,GAAG,CAAC,EAAE,CAA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itElement, TemplateResult, nothing } from 'lit'\nimport { customElement, property, query, state } from 'lit/decorators.js'\nimport { connect } from 'pwa-helpers/connect-mixin.js'\n\nimport { TOOL_POSITION } from '@operato/layout'\nimport { store } from '@operato/shell'\n\n@customElement('ox-context-page-toolbar')\nexport class ContextPageToolbar extends connect(store)(LitElement) {\n static get styles() {\n return [\n css`\n :host {\n display: flex;\n flex-direction: row-reverse;\n gap: var(--spacing-medium);\n\n position: relative;\n\n justify-content: end;\n align-items: center;\n\n --context-action-bar-button-margin: var(--spacing-none);\n --context-action-bar-more-button-border-radius: 2px;\n\n --md-icon-size: 20px;\n }\n\n :host > div {\n display: flex;\n flex-direction: row;\n\n align-items: center;\n gap: var(--spacing-small);\n }\n\n md-icon {\n background-color: var(--md-sys-color-primary-container);\n border: 1px solid var(--md-sys-color-outline);\n border-radius: var(--md-sys-shape-corner-small);\n padding: var(--spacing-small);\n\n color: var(--md-sys-color-primary);\n\n &:hover {\n background-color: var(--md-sys-color-primary);\n\n color: var(--md-sys-color-secondary-container);\n }\n }\n\n @media screen and (max-width: 460px) {\n :host {\n gap: 0;\n }\n\n :host > div {\n gap: 0;\n }\n\n md-icon {\n border-radius: 0;\n }\n }\n `\n ]\n }\n\n @property({ type: Object }) context: any\n @property({ type: Array }) tools?: {\n position: TOOL_POSITION\n template: TemplateResult\n context?: string\n }[]\n\n render() {\n let contextKeys = Object.keys(this.context).filter(key => !!this.context[key])\n let tools = (this.tools || []).filter(tool => {\n if (!tool.context || contextKeys.includes(tool.context)) {\n return tool\n }\n })\n\n let frontEndTools = tools.filter(tool => tool.position == TOOL_POSITION.FRONT_END)\n let frontTools = tools.filter(tool => tool.position == TOOL_POSITION.FRONT)\n let centerTools = tools.filter(tool => tool.position == TOOL_POSITION.CENTER)\n let rearTools = tools.filter(tool => tool.position == TOOL_POSITION.REAR)\n let rearEndTools = tools.filter(tool => tool.position == TOOL_POSITION.REAR_END)\n\n return html`\n ${frontEndTools.length > 0\n ? html`<div id=\"front-end\">${frontEndTools.map(tool => html` ${tool.template} `)}</div>`\n : nothing}\n ${frontTools.length > 0\n ? html`<div id=\"front\">${frontTools.map(tool => html` ${tool.template} `)}</div>`\n : nothing}\n ${centerTools.length > 0\n ? html`<div id=\"center\">${centerTools.map(tool => html` ${tool.template} `)}</div>`\n : nothing}\n ${rearTools.length > 0 ? html`<div id=\"rear\">${rearTools.map(tool => html` ${tool.template} `)}</div>` : nothing}\n ${rearEndTools.length > 0\n ? html`<div id=\"rear-end\">${rearEndTools.map(tool => html` ${tool.template} `)}</div>`\n : nothing}\n `\n }\n\n stateChanged(state: any) {\n if (state.context) {\n this.tools = state.context?.tools\n }\n }\n}\n"]}
@@ -12,7 +12,8 @@ let ContextToolbar = class ContextToolbar extends connect(store)(LitElement) {
12
12
  :host {
13
13
  display: flex;
14
14
 
15
- background-color: var(--context-toolbar-background-color);
15
+ color: var(--context-toolbar-background-color, var(--md-sys-color-on-secondary-container));
16
+ background-color: var(--context-toolbar-background-color, var(--md-sys-color-secondary-container));
16
17
  box-shadow: var(--context-toolbar-shadow-line);
17
18
 
18
19
  padding: 0;
@@ -29,8 +30,8 @@ let ContextToolbar = class ContextToolbar extends connect(store)(LitElement) {
29
30
 
30
31
  justify-content: space-between;
31
32
 
32
- gap: var(--padding-narrow);
33
- padding: 6px 10px;
33
+ gap: var(--spacing-medium);
34
+ padding: var(--spacing-small) var(--spacing-medium);
34
35
 
35
36
  &:not(:has(> *)) {
36
37
  padding: 0;
@@ -48,33 +49,32 @@ let ContextToolbar = class ContextToolbar extends connect(store)(LitElement) {
48
49
 
49
50
  #front-end md-icon,
50
51
  #front md-icon {
51
- background-color: var(--context-toolbar-function-button-background-color);
52
- border: var(--context-toolbar-function-button-border);
53
- color: var(--context-toolbar-function-button-color);
52
+ background-color: var(--md-sys-color-secondary-container);
53
+ border: var(--context-toolbar-function-button-border, none);
54
+ color: var(--md-sys-color-secondary-fixed);
54
55
  }
55
56
 
56
57
  #front-end md-icon {
57
- background-color: var(--primary-color);
58
+ background-color: var(--md-sys-color-on-primary-container);
58
59
  }
59
60
  #front-end md-icon:hover {
60
- background-color: var(--context-toolbar-function-button-background-color);
61
+ background-color: var(--md-sys-color-primary);
61
62
  }
62
63
  #front md-icon:hover {
63
- background-color: var(--context-toolbar-function-button-hover-background-color);
64
+ background-color: var(--md-sys-color-secondary);
64
65
  }
65
66
 
66
67
  md-icon {
67
- background-color: var(--button-background-color, #fafbfc);
68
- border: 1px solid rgba(var(--primary-color-rgb), 0.5);
69
- border-radius: var(--button-border-radius);
70
- padding: var(--iconbtn-padding, 2px);
68
+ background-color: var(--md-sys-color-primary-container);
69
+ border: 1px solid var(--md-sys-color-outline);
70
+ border-radius: var(--md-sys-shape-corner-small);
71
+ padding: var(--spacing-small);
71
72
 
72
- color: var(--primary-color);
73
+ color: var(--md-sys-color-primary);
73
74
 
74
75
  &:hover {
75
- background-color: var(--primary-color);
76
-
77
- color: var(--theme-white-color);
76
+ background-color: var(--md-sys-color-primary);
77
+ color: var(--md-sys-color-secondary-container);
78
78
  }
79
79
  }
80
80
 
@@ -83,23 +83,19 @@ let ContextToolbar = class ContextToolbar extends connect(store)(LitElement) {
83
83
  }
84
84
 
85
85
  div md-icon:first-child {
86
- border-top-left-radius: var(--context-toolbar-function-button-radius);
87
- border-bottom-left-radius: var(--context-toolbar-function-button-radius);
86
+ border-top-left-radius: var(--md-sys-shape-corner-small);
87
+ border-bottom-left-radius: var(--md-sys-shape-corner-small);
88
88
  }
89
89
 
90
90
  div md-icon:last-child {
91
- border-top-right-radius: var(--context-toolbar-function-button-radius);
92
- border-bottom-right-radius: var(--context-toolbar-function-button-radius);
91
+ border-top-right-radius: var(--md-sys-shape-corner-small);
92
+ border-bottom-right-radius: var(--md-sys-shape-corner-small);
93
93
  }
94
94
 
95
95
  #center {
96
96
  flex: 1;
97
97
  justify-content: end;
98
98
  }
99
-
100
- * {
101
- cursor: pointer;
102
- }
103
99
  }
104
100
 
105
101
  @media only screen and (max-width: 460px) {