@neovici/cosmoz-omnitable 18.7.0-beta.1 → 18.7.0-beta.2

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.
@@ -1 +1 @@
1
- {"version":3,"file":"cosmoz-omnitable-styles.d.ts","sourceRoot":"","sources":["../src/cosmoz-omnitable-styles.js"],"names":[],"mappings":"AAGA,8BAuEE"}
1
+ {"version":3,"file":"cosmoz-omnitable-styles.d.ts","sourceRoot":"","sources":["../src/cosmoz-omnitable-styles.js"],"names":[],"mappings":"AAGA,8BAoEE"}
@@ -14,7 +14,7 @@ export const checkbox = css `
14
14
  user-select: none;
15
15
  cursor: pointer;
16
16
  display: inline-block;
17
- box-shadow: var(--cz-shadow-xs-skeumorphic);
17
+ box-shadow: inset 0 0 0 2px var(--cz-color-border-primary);
18
18
  -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
19
19
  transition: background-color 140ms;
20
20
  margin: 1px calc(var(--cz-spacing) * 3);
@@ -23,7 +23,7 @@ export const checkbox = css `
23
23
 
24
24
  .checkbox:checked {
25
25
  background: rgb(
26
- from var(--cz-color-bg-brand-solid) r g b / calc(alpha * 0.55)
26
+ from var(--cz-color-bg-brand-solid) r g b / calc(alpha * 0.85)
27
27
  );
28
28
  box-shadow: none;
29
29
  }
@@ -56,7 +56,7 @@ export const checkbox = css `
56
56
  }
57
57
 
58
58
  .checkbox:checked:hover {
59
- box-shadow: 0 0 2px 6px #2021240f;
59
+ box-shadow: 0 0 2px 4px var(--cz-color-bg-quaternary);
60
60
  }
61
61
 
62
62
  .checkbox:indeterminate::before {
@@ -66,10 +66,7 @@ export const checkbox = css `
66
66
  height: 2px;
67
67
  left: 4px;
68
68
  top: 8px;
69
- background-color: var(
70
- --cosmoz-omnitable-checkbox-checked-color,
71
- var(--primary-color)
72
- );
69
+ background-color: var(--cz-color-text-brand);
73
70
  }
74
71
  `;
75
72
  export default css `
@@ -285,6 +282,18 @@ export default css `
285
282
  padding: 5px 4%;
286
283
  border-bottom: 1px var(--cz-color-border-secondary) solid;
287
284
  background-color: var(--cz-color-bg-disabled);
285
+ animation: expand-in 0.25s ease;
286
+ }
287
+
288
+ @keyframes expand-in {
289
+ from {
290
+ opacity: 0;
291
+ transform: translateY(-4px);
292
+ }
293
+ to {
294
+ opacity: 1;
295
+ transform: translateY(0);
296
+ }
288
297
  }
289
298
 
290
299
  cosmoz-omnitable-item-expand:not([expanded]) {
@@ -416,6 +425,10 @@ export default css `
416
425
  outline: none;
417
426
  color: var(--cz-color-text-primary);
418
427
  background: transparent;
428
+
429
+ &[hidden] {
430
+ display: none;
431
+ }
419
432
  }
420
433
 
421
434
  .groupRow .expand {
@@ -445,6 +458,7 @@ export default css `
445
458
  outline: none;
446
459
  color: inherit;
447
460
  padding: 0;
461
+ transition: transform 0.3s ease;
448
462
  }
449
463
  .sg span {
450
464
  display: none;
@@ -468,35 +482,42 @@ export default css `
468
482
  flex: auto;
469
483
  }
470
484
 
471
- :host([mini]) .itemRow .expand,
472
- :host([mini]) cosmoz-omnitable-item-expand {
473
- display: none;
474
- }
475
-
476
485
  .itemRow-minis {
477
486
  display: flex;
478
487
  justify-content: space-between;
479
488
  margin: 14px 12px 12px 12px;
480
- color: var(--cosmoz-omnitable-mini-color, #000);
489
+ color: var(--cz-color-text-primary);
481
490
  }
482
491
 
483
- :host([mini]) .itemRow {
484
- border-radius: 12px;
485
- border: 1px solid var(--cosmoz-omnitable-border-color, #e1e2e5);
486
- margin: 4px 8px;
487
- padding-top: 2px;
492
+ :host([mini]) {
493
+ --checkbox-offset: calc(var(--cz-spacing) * 2);
488
494
  }
489
495
 
490
- :host([mini]) .itemRow:not([selected]) {
491
- background: var(--cosmoz-omnitable-mini-item-background, #fdfdfd);
496
+ :host([mini]) .itemRow .expand,
497
+ :host([mini]) cosmoz-omnitable-item-expand {
498
+ display: none;
492
499
  }
493
500
 
494
- :host([mini]) .itemRow:hover {
495
- box-shadow: none;
501
+ :host([mini]) .header > cosmoz-omnitable-header-row {
502
+ flex: 0;
503
+ }
504
+
505
+ :host([mini]) .groupRow {
506
+ padding-left: var(--checkbox-offset);
496
507
  }
497
508
 
498
509
  :host([mini]) .header {
499
- margin: 0 8px;
510
+ padding-left: var(--checkbox-offset);
511
+ justify-content: space-between;
512
+ }
513
+
514
+ :host([mini]) .itemRow {
515
+ border-radius: 12px;
516
+ box-shadow: inset 0 0 0 2px var(--cz-color-border-tertiary);
517
+ margin-block: var(--checkbox-offset);
518
+ margin-inline: var(--checkbox-offset);
519
+ padding-block: 4px;
520
+ border: none;
500
521
  }
501
522
 
502
523
  :host([mini]) .tableContent {
@@ -516,7 +537,7 @@ export default css `
516
537
  }
517
538
 
518
539
  :host([mini]) .tableContent-scroller:hover::-webkit-scrollbar-thumb {
519
- background: var(--cosmoz-omnitable-mini-scrollbar-thumb-bg, #aaa);
540
+ background: var(--cz-color-bg-tertiary);
520
541
  }
521
542
 
522
543
  :host([mini]) .tableContent-scroller::-webkit-scrollbar-button:decrement,
@@ -1 +1 @@
1
- {"version":3,"file":"cosmoz-omnitable-styles.js","sourceRoot":"","sources":["../src/cosmoz-omnitable-styles.js"],"names":[],"mappings":"AAAA,8BAA8B;AAC9B,OAAO,EAAE,MAAM,IAAI,GAAG,EAAE,MAAM,uBAAuB,CAAC;AAEtD,MAAM,CAAC,MAAM,QAAQ,GAAG,GAAG,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAuE1B,CAAC;AAEF,eAAe,GAAG,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA2JV,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"style.css.d.ts","sourceRoot":"","sources":["../../../src/lib/settings/style.css.js"],"names":[],"mappings":";;AAkLA,8BAqDE"}
1
+ {"version":3,"file":"style.css.d.ts","sourceRoot":"","sources":["../../../src/lib/settings/style.css.js"],"names":[],"mappings":";;AAiLA,8BAoDE"}
@@ -34,14 +34,13 @@ export default css `
34
34
  scrollbar-width: 2px;
35
35
  scrollbar-gutter: stable;
36
36
  text-transform: uppercase;
37
- font-size: 12px;
38
37
  color: var(--cz-color-text-primary);
39
38
  }
40
39
  .contents::-webkit-scrollbar {
41
- width: 2px;
40
+ width: 3px;
42
41
  }
43
42
  .contents::-webkit-scrollbar-thumb {
44
- background: rgba(0, 0, 0, 0.5);
43
+ background: var(--cz-color-bg-brand-solid);
45
44
  }
46
45
  .contents::-webkit-scrollbar-track-piece:start,
47
46
  .contents::-webkit-scrollbar-track-piece:end {
@@ -49,7 +48,7 @@ export default css `
49
48
  }
50
49
 
51
50
  .heading {
52
- box-shadow: inset 0px -1px 0px rgba(0, 0, 0, 0.15);
51
+ box-shadow: inset 0px -1px 0px var(--cz-color-border-primary);
53
52
  font-weight: var(--cz-font-weight-medium);
54
53
  font-size: var(--cz-text-xs);
55
54
  line-height: var(--cz-text-xs-line-height);
@@ -68,8 +67,8 @@ export default css `
68
67
  }
69
68
  cosmoz-collapse[opened] + .heading {
70
69
  box-shadow:
71
- inset 0px -1px 0px rgba(0, 0, 0, 0.15),
72
- inset 0px 1px 0px rgba(0, 0, 0, 0.15);
70
+ inset 0px -1px 0px var(--cz-color-border-primary),
71
+ inset 0px 1px 0px var(--cz-color-border-primary);
73
72
  }
74
73
 
75
74
  .list {
@@ -97,10 +96,7 @@ export default css `
97
96
  background: transparent;
98
97
  cursor: move;
99
98
  margin-right: 12px;
100
- color: var(
101
- --cosmoz-omnitable-settings-pull-color,
102
- var(--cz-color-muted, #c4c4c4)
103
- );
99
+ color: var(--cz-color-bg-brand-solid);
104
100
  }
105
101
  .title {
106
102
  flex: auto;
@@ -123,7 +119,7 @@ export default css `
123
119
  display: flex;
124
120
  gap: 8px;
125
121
  padding: 12px 14px;
126
- box-shadow: inset 0px 1px 0px rgba(0, 0, 0, 0.15);
122
+ box-shadow: inset 0px 1px 0px var(--cz-color-border-primary);
127
123
 
128
124
  & cosmoz-button {
129
125
  flex: 1;
@@ -141,8 +137,9 @@ export default css `
141
137
  }
142
138
  .sg {
143
139
  color: inherit;
144
- border: 1px solid rgba(0, 0, 0, 0.2);
145
- border-radius: 6px;
140
+ box-shadow: inset 0 0 0 2px var(--cz-color-border-primary);
141
+ border: none;
142
+ border-radius: var(--cz-radius-sm);
146
143
  font-size: var(--cz-text-xs);
147
144
  line-height: var(--cz-text-xs-line-height);
148
145
  text-transform: uppercase;
@@ -153,21 +150,23 @@ export default css `
153
150
  display: flex;
154
151
  align-items: center;
155
152
  justify-content: space-between;
153
+ transition:
154
+ background 0.3s ease,
155
+ box-shadow 0.3s ease;
156
156
  }
157
157
  .sg span {
158
158
  overflow: hidden;
159
159
  text-overflow: ellipsis;
160
160
  }
161
161
  .sg[data-on] {
162
- background: var(
163
- --cosmoz-omnitable-checkbox-checked-color,
164
- var(--primary-color)
165
- );
162
+ background: var(--cz-color-bg-brand-secondary);
163
+ box-shadow: none;
166
164
  }
167
165
  .sg svg {
168
166
  margin-left: 4px;
169
167
  flex: none;
170
168
  vertical-align: middle;
169
+ transition: transform 0.3s ease;
171
170
  }
172
171
 
173
172
  .sg:not([data-on='desc']) svg {
@@ -197,6 +196,10 @@ export const dropdown = css `
197
196
  color: inherit;
198
197
  width: 40px;
199
198
  height: 40px;
199
+ transition: color 0.3s ease;
200
+ }
201
+ cosmoz-dropdown::part(button):hover {
202
+ color: var(--cz-color-text-primary);
200
203
  }
201
204
  cosmoz-dropdown::part(anchor) {
202
205
  display: inline-block;
@@ -204,22 +207,17 @@ export const dropdown = css `
204
207
  .badge {
205
208
  position: absolute;
206
209
  top: 1px;
207
- right: -4px;
208
- background-color: var(
209
- --cosmoz-omnitable-checkbox-checked-color,
210
- var(--primary-color)
211
- );
210
+ right: 1px;
211
+ background-color: var(--cz-color-bg-brand-solid);
212
212
  width: 8px;
213
213
  height: 8px;
214
214
  border-radius: 100%;
215
215
  }
216
216
  .headerDots {
217
217
  align-items: center;
218
- color: var(--cosmoz-input-color);
218
+ color: var(--cz-color-text-primary);
219
219
  display: flex;
220
220
  font-size: 20px;
221
- height: 42px;
222
- justify-content: center;
223
221
  margin-left: 12px;
224
222
  min-width: 30px;
225
223
  transform: rotate(90deg);
@@ -1 +1 @@
1
- {"version":3,"file":"style.css.js","sourceRoot":"","sources":["../../../src/lib/settings/style.css.js"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,IAAI,GAAG,EAAE,MAAM,uBAAuB,CAAC;AACtD,OAAO,EAAE,QAAQ,EAAE,MAAM,+BAA+B,CAAC;AAEzD,eAAe,GAAG,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAkHf,QAAQ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA2DV,CAAC;AAEF,MAAM,CAAC,MAAM,QAAQ,GAAG,GAAG,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAqD1B,CAAC"}
1
+ {"version":3,"file":"style.css.js","sourceRoot":"","sources":["../../../src/lib/settings/style.css.js"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,IAAI,GAAG,EAAE,MAAM,uBAAuB,CAAC;AACtD,OAAO,EAAE,QAAQ,EAAE,MAAM,+BAA+B,CAAC;AAEzD,eAAe,GAAG,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA8Gf,QAAQ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA8DV,CAAC;AAEF,MAAM,CAAC,MAAM,QAAQ,GAAG,GAAG,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAoD1B,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@neovici/cosmoz-omnitable",
3
- "version": "18.7.0-beta.1",
3
+ "version": "18.7.0-beta.2",
4
4
  "description": "[![Build Status](https://travis-ci.org/Neovici/cosmoz-omnitable.svg?branch=master)](https://travis-ci.org/Neovici/cosmoz-omnitable)",
5
5
  "keywords": [
6
6
  "web-components"