@wordpress/dataviews 4.2.0 → 4.3.1-next.1f6eadc42.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.
- package/CHANGELOG.md +2 -0
- package/README.md +47 -7
- package/build/components/dataviews/index.js +3 -5
- package/build/components/dataviews/index.js.map +1 -1
- package/build/components/dataviews-bulk-actions/index.js +145 -141
- package/build/components/dataviews-bulk-actions/index.js.map +1 -1
- package/build/components/dataviews-filters/add-filter.js +4 -6
- package/build/components/dataviews-filters/add-filter.js.map +1 -1
- package/build/components/dataviews-filters/search-widget.js +27 -25
- package/build/components/dataviews-filters/search-widget.js.map +1 -1
- package/build/components/dataviews-footer/index.js +45 -0
- package/build/components/dataviews-footer/index.js.map +1 -0
- package/build/components/dataviews-item-actions/index.js +5 -8
- package/build/components/dataviews-item-actions/index.js.map +1 -1
- package/build/components/dataviews-pagination/index.js +4 -4
- package/build/components/dataviews-pagination/index.js.map +1 -1
- package/build/components/dataviews-view-config/index.js +171 -32
- package/build/components/dataviews-view-config/index.js.map +1 -1
- package/build/dataforms-layouts/panel/index.js +4 -1
- package/build/dataforms-layouts/panel/index.js.map +1 -1
- package/build/dataviews-layouts/index.js +48 -2
- package/build/dataviews-layouts/index.js.map +1 -1
- package/build/dataviews-layouts/list/index.js +131 -91
- package/build/dataviews-layouts/list/index.js.map +1 -1
- package/build/dataviews-layouts/table/column-header-menu.js +52 -54
- package/build/dataviews-layouts/table/column-header-menu.js.map +1 -1
- package/build/dataviews-layouts/table/index.js +7 -35
- package/build/dataviews-layouts/table/index.js.map +1 -1
- package/build/normalize-fields.js +4 -2
- package/build/normalize-fields.js.map +1 -1
- package/build/types.js.map +1 -1
- package/build-module/components/dataviews/index.js +3 -5
- package/build-module/components/dataviews/index.js.map +1 -1
- package/build-module/components/dataviews-bulk-actions/index.js +145 -143
- package/build-module/components/dataviews-bulk-actions/index.js.map +1 -1
- package/build-module/components/dataviews-filters/add-filter.js +4 -6
- package/build-module/components/dataviews-filters/add-filter.js.map +1 -1
- package/build-module/components/dataviews-filters/search-widget.js +27 -25
- package/build-module/components/dataviews-filters/search-widget.js.map +1 -1
- package/build-module/components/dataviews-footer/index.js +38 -0
- package/build-module/components/dataviews-footer/index.js.map +1 -0
- package/build-module/components/dataviews-item-actions/index.js +5 -8
- package/build-module/components/dataviews-item-actions/index.js.map +1 -1
- package/build-module/components/dataviews-pagination/index.js +5 -5
- package/build-module/components/dataviews-pagination/index.js.map +1 -1
- package/build-module/components/dataviews-view-config/index.js +177 -38
- package/build-module/components/dataviews-view-config/index.js.map +1 -1
- package/build-module/dataforms-layouts/panel/index.js +4 -1
- package/build-module/dataforms-layouts/panel/index.js.map +1 -1
- package/build-module/dataviews-layouts/index.js +45 -1
- package/build-module/dataviews-layouts/index.js.map +1 -1
- package/build-module/dataviews-layouts/list/index.js +132 -90
- package/build-module/dataviews-layouts/list/index.js.map +1 -1
- package/build-module/dataviews-layouts/table/column-header-menu.js +52 -54
- package/build-module/dataviews-layouts/table/column-header-menu.js.map +1 -1
- package/build-module/dataviews-layouts/table/index.js +9 -37
- package/build-module/dataviews-layouts/table/index.js.map +1 -1
- package/build-module/normalize-fields.js +4 -2
- package/build-module/normalize-fields.js.map +1 -1
- package/build-module/types.js.map +1 -1
- package/build-style/style-rtl.css +79 -67
- package/build-style/style.css +79 -67
- package/build-types/components/dataviews/index.d.ts.map +1 -1
- package/build-types/components/dataviews/stories/fixtures.d.ts +27 -131
- package/build-types/components/dataviews/stories/fixtures.d.ts.map +1 -1
- package/build-types/components/dataviews/stories/index.story.d.ts +13 -53
- package/build-types/components/dataviews/stories/index.story.d.ts.map +1 -1
- package/build-types/components/dataviews-bulk-actions/index.d.ts +11 -1
- package/build-types/components/dataviews-bulk-actions/index.d.ts.map +1 -1
- package/build-types/components/dataviews-filters/add-filter.d.ts.map +1 -1
- package/build-types/components/dataviews-filters/search-widget.d.ts +3 -0
- package/build-types/components/dataviews-filters/search-widget.d.ts.map +1 -1
- package/build-types/components/dataviews-footer/index.d.ts +2 -0
- package/build-types/components/dataviews-footer/index.d.ts.map +1 -0
- package/build-types/components/dataviews-item-actions/index.d.ts.map +1 -1
- package/build-types/components/dataviews-view-config/index.d.ts.map +1 -1
- package/build-types/dataforms-layouts/panel/index.d.ts.map +1 -1
- package/build-types/dataviews-layouts/index.d.ts +4 -2
- package/build-types/dataviews-layouts/index.d.ts.map +1 -1
- package/build-types/dataviews-layouts/list/index.d.ts.map +1 -1
- package/build-types/dataviews-layouts/table/column-header-menu.d.ts.map +1 -1
- package/build-types/dataviews-layouts/table/index.d.ts.map +1 -1
- package/build-types/normalize-fields.d.ts.map +1 -1
- package/build-types/types.d.ts +2 -0
- package/build-types/types.d.ts.map +1 -1
- package/package.json +11 -11
- package/src/components/dataviews/index.tsx +2 -6
- package/src/components/dataviews/stories/fixtures.tsx +698 -0
- package/src/components/dataviews/stories/index.story.tsx +186 -0
- package/src/components/dataviews/stories/style.css +4 -0
- package/src/components/dataviews/style.scss +2 -0
- package/src/components/dataviews-bulk-actions/index.tsx +264 -213
- package/src/components/dataviews-bulk-actions/style.scss +9 -4
- package/src/components/dataviews-filters/add-filter.tsx +7 -11
- package/src/components/dataviews-filters/search-widget.tsx +44 -29
- package/src/components/dataviews-filters/style.scss +12 -2
- package/src/components/dataviews-footer/index.tsx +50 -0
- package/src/components/dataviews-footer/style.scss +40 -0
- package/src/components/dataviews-item-actions/index.tsx +8 -14
- package/src/components/dataviews-pagination/index.tsx +5 -5
- package/src/components/dataviews-pagination/style.scss +0 -19
- package/src/components/dataviews-view-config/index.tsx +252 -53
- package/src/components/dataviews-view-config/style.scss +25 -0
- package/src/dataforms-layouts/panel/index.tsx +2 -0
- package/src/dataviews-layouts/grid/style.scss +1 -1
- package/src/dataviews-layouts/index.ts +63 -2
- package/src/dataviews-layouts/list/index.tsx +210 -139
- package/src/dataviews-layouts/list/style.scss +10 -4
- package/src/dataviews-layouts/table/column-header-menu.tsx +85 -87
- package/src/dataviews-layouts/table/index.tsx +8 -65
- package/src/dataviews-layouts/table/style.scss +0 -9
- package/src/normalize-fields.ts +2 -0
- package/src/style.scss +1 -1
- package/src/types.ts +2 -0
- package/tsconfig.tsbuildinfo +1 -1
- package/build/components/dataviews-bulk-actions-toolbar/index.js +0 -207
- package/build/components/dataviews-bulk-actions-toolbar/index.js.map +0 -1
- package/build-module/components/dataviews-bulk-actions-toolbar/index.js +0 -201
- package/build-module/components/dataviews-bulk-actions-toolbar/index.js.map +0 -1
- package/build-types/components/dataviews-bulk-actions-toolbar/index.d.ts +0 -2
- package/build-types/components/dataviews-bulk-actions-toolbar/index.d.ts.map +0 -1
- package/src/components/dataviews/stories/fixtures.js +0 -250
- package/src/components/dataviews/stories/index.story.js +0 -71
- package/src/components/dataviews-bulk-actions-toolbar/index.tsx +0 -288
- package/src/components/dataviews-bulk-actions-toolbar/style.scss +0 -45
|
@@ -116,6 +116,8 @@
|
|
|
116
116
|
container: dataviews-wrapper/inline-size;
|
|
117
117
|
display: flex;
|
|
118
118
|
flex-direction: column;
|
|
119
|
+
font-size: 13px;
|
|
120
|
+
line-height: 1.4;
|
|
119
121
|
}
|
|
120
122
|
|
|
121
123
|
.dataviews__view-actions,
|
|
@@ -217,53 +219,16 @@
|
|
|
217
219
|
padding-left: 24px;
|
|
218
220
|
}
|
|
219
221
|
}
|
|
220
|
-
.dataviews-bulk-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
flex-shrink: 0;
|
|
222
|
+
.dataviews-bulk-actions-footer__item-count {
|
|
223
|
+
color: #1e1e1e;
|
|
224
|
+
font-weight: 500;
|
|
225
|
+
font-size: 11px;
|
|
226
|
+
text-transform: uppercase;
|
|
226
227
|
}
|
|
227
228
|
|
|
228
|
-
.dataviews-bulk-actions-
|
|
229
|
-
position: sticky;
|
|
230
|
-
display: flex;
|
|
231
|
-
flex-direction: column;
|
|
232
|
-
align-content: center;
|
|
233
|
-
flex-wrap: wrap;
|
|
234
|
-
width: -moz-fit-content;
|
|
235
|
-
width: fit-content;
|
|
236
|
-
margin-right: auto;
|
|
229
|
+
.dataviews-bulk-actions-footer__container {
|
|
237
230
|
margin-left: auto;
|
|
238
|
-
|
|
239
|
-
z-index: 2;
|
|
240
|
-
}
|
|
241
|
-
.dataviews-bulk-actions-toolbar .components-accessible-toolbar {
|
|
242
|
-
border-color: #ddd;
|
|
243
|
-
box-shadow: 0 0.7px 1px rgba(0, 0, 0, 0.1), 0 1.2px 1.7px -0.2px rgba(0, 0, 0, 0.1), 0 2.3px 3.3px -0.5px rgba(0, 0, 0, 0.1);
|
|
244
|
-
}
|
|
245
|
-
.dataviews-bulk-actions-toolbar .components-accessible-toolbar .components-toolbar-group {
|
|
246
|
-
border-color: #e0e0e0;
|
|
247
|
-
}
|
|
248
|
-
.dataviews-bulk-actions-toolbar .components-accessible-toolbar .components-toolbar-group:last-child {
|
|
249
|
-
border: 0;
|
|
250
|
-
}
|
|
251
|
-
.dataviews-bulk-actions-toolbar .dataviews-bulk-actions-toolbar__selection-count {
|
|
252
|
-
display: flex;
|
|
253
|
-
align-items: center;
|
|
254
|
-
margin: 0 8px 0 8px;
|
|
255
|
-
}
|
|
256
|
-
|
|
257
|
-
.dataviews-bulk-actions-toolbar__wrapper {
|
|
258
|
-
display: flex;
|
|
259
|
-
flex-grow: 1;
|
|
260
|
-
width: 100%;
|
|
261
|
-
}
|
|
262
|
-
.dataviews-bulk-actions-toolbar__wrapper .components-toolbar-group {
|
|
263
|
-
align-items: center;
|
|
264
|
-
}
|
|
265
|
-
.dataviews-bulk-actions-toolbar__wrapper .components-button.is-busy {
|
|
266
|
-
max-height: 36px;
|
|
231
|
+
min-height: 32px;
|
|
267
232
|
}
|
|
268
233
|
|
|
269
234
|
.dataviews-filters__button {
|
|
@@ -281,11 +246,17 @@
|
|
|
281
246
|
opacity: 1;
|
|
282
247
|
}
|
|
283
248
|
|
|
249
|
+
.dataviews-filters__summary-popover {
|
|
250
|
+
font-size: 13px;
|
|
251
|
+
line-height: 1.4;
|
|
252
|
+
}
|
|
284
253
|
.dataviews-filters__summary-popover .components-popover__content {
|
|
285
254
|
width: 230px;
|
|
286
|
-
padding: 0;
|
|
287
255
|
border-radius: 4px;
|
|
288
256
|
}
|
|
257
|
+
.dataviews-filters__summary-popover.components-dropdown__content .components-popover__content {
|
|
258
|
+
padding: 0;
|
|
259
|
+
}
|
|
289
260
|
|
|
290
261
|
.dataviews-filters__summary-operators-container {
|
|
291
262
|
padding: 8px 8px 0;
|
|
@@ -316,6 +287,7 @@
|
|
|
316
287
|
position: relative;
|
|
317
288
|
display: flex;
|
|
318
289
|
align-items: center;
|
|
290
|
+
box-sizing: border-box;
|
|
319
291
|
}
|
|
320
292
|
.dataviews-filters__summary-chip-container .dataviews-filters__summary-chip.has-reset {
|
|
321
293
|
padding-inline-end: 28px;
|
|
@@ -527,6 +499,7 @@
|
|
|
527
499
|
font-size: 11px;
|
|
528
500
|
outline: var(--wp-admin-border-width-focus) solid #fff;
|
|
529
501
|
color: #fff;
|
|
502
|
+
box-sizing: border-box;
|
|
530
503
|
}
|
|
531
504
|
|
|
532
505
|
.dataviews-search {
|
|
@@ -534,7 +507,7 @@
|
|
|
534
507
|
width: fit-content;
|
|
535
508
|
}
|
|
536
509
|
|
|
537
|
-
.dataviews-
|
|
510
|
+
.dataviews-footer {
|
|
538
511
|
position: sticky;
|
|
539
512
|
bottom: 0;
|
|
540
513
|
right: 0;
|
|
@@ -543,14 +516,37 @@
|
|
|
543
516
|
border-top: 1px solid #f0f0f0;
|
|
544
517
|
flex-shrink: 0;
|
|
545
518
|
transition: padding ease-out 0.1s;
|
|
519
|
+
z-index: 2;
|
|
546
520
|
}
|
|
547
521
|
@media (prefers-reduced-motion: reduce) {
|
|
548
|
-
.dataviews-
|
|
522
|
+
.dataviews-footer {
|
|
549
523
|
transition-duration: 0s;
|
|
550
524
|
transition-delay: 0s;
|
|
551
525
|
}
|
|
552
526
|
}
|
|
553
527
|
|
|
528
|
+
/* stylelint-disable-next-line scss/at-rule-no-unknown -- '@container' not globally permitted */
|
|
529
|
+
@container (max-width: 430px) {
|
|
530
|
+
.dataviews-footer {
|
|
531
|
+
padding: 12px 24px;
|
|
532
|
+
}
|
|
533
|
+
}
|
|
534
|
+
/* stylelint-disable-next-line scss/at-rule-no-unknown -- '@container' not globally permitted */
|
|
535
|
+
@container (max-width: 560px) {
|
|
536
|
+
.dataviews-footer {
|
|
537
|
+
flex-direction: column !important;
|
|
538
|
+
}
|
|
539
|
+
.dataviews-footer .dataviews-bulk-actions-footer__container {
|
|
540
|
+
width: 100%;
|
|
541
|
+
}
|
|
542
|
+
.dataviews-footer .dataviews-bulk-actions-footer__item-count {
|
|
543
|
+
flex-grow: 1;
|
|
544
|
+
}
|
|
545
|
+
.dataviews-footer .dataviews-pagination {
|
|
546
|
+
width: 100%;
|
|
547
|
+
justify-content: space-between;
|
|
548
|
+
}
|
|
549
|
+
}
|
|
554
550
|
.dataviews-pagination__page-select {
|
|
555
551
|
font-size: 11px;
|
|
556
552
|
font-weight: 500;
|
|
@@ -563,12 +559,6 @@
|
|
|
563
559
|
}
|
|
564
560
|
}
|
|
565
561
|
|
|
566
|
-
/* stylelint-disable-next-line scss/at-rule-no-unknown -- '@container' not globally permitted */
|
|
567
|
-
@container (max-width: 430px) {
|
|
568
|
-
.dataviews-pagination {
|
|
569
|
-
padding: 12px 24px;
|
|
570
|
-
}
|
|
571
|
-
}
|
|
572
562
|
.dataviews-action-modal {
|
|
573
563
|
z-index: 1000001;
|
|
574
564
|
}
|
|
@@ -592,6 +582,8 @@
|
|
|
592
582
|
/* stylelint-disable-next-line property-no-unknown -- the linter needs to be updated to accepted the container-type property */
|
|
593
583
|
container-type: inline-size;
|
|
594
584
|
padding: 16px;
|
|
585
|
+
font-size: 13px;
|
|
586
|
+
line-height: 1.4;
|
|
595
587
|
}
|
|
596
588
|
|
|
597
589
|
.dataviews-view-config__sort-direction .components-toggle-group-control-option-base {
|
|
@@ -619,6 +611,10 @@
|
|
|
619
611
|
grid-column: span 4;
|
|
620
612
|
}
|
|
621
613
|
|
|
614
|
+
.dataviews-settings-section:has(.dataviews-settings-section__content:empty) {
|
|
615
|
+
display: none;
|
|
616
|
+
}
|
|
617
|
+
|
|
622
618
|
/* stylelint-disable-next-line scss/at-rule-no-unknown -- '@container' not globally permitted */
|
|
623
619
|
@container (max-width: 500px) {
|
|
624
620
|
.dataviews-settings-section.dataviews-settings-section {
|
|
@@ -631,6 +627,25 @@
|
|
|
631
627
|
grid-column: span 2;
|
|
632
628
|
}
|
|
633
629
|
}
|
|
630
|
+
.dataviews-field-control__field {
|
|
631
|
+
height: 32px;
|
|
632
|
+
}
|
|
633
|
+
|
|
634
|
+
.dataviews-field-control__actions {
|
|
635
|
+
position: absolute;
|
|
636
|
+
top: -9999em;
|
|
637
|
+
}
|
|
638
|
+
|
|
639
|
+
.dataviews-field-control__actions.dataviews-field-control__actions {
|
|
640
|
+
gap: 4px;
|
|
641
|
+
}
|
|
642
|
+
|
|
643
|
+
.dataviews-field-control__field:hover .dataviews-field-control__actions,
|
|
644
|
+
.dataviews-field-control__field:focus-within .dataviews-field-control__actions {
|
|
645
|
+
position: unset;
|
|
646
|
+
top: unset;
|
|
647
|
+
}
|
|
648
|
+
|
|
634
649
|
.dataviews-view-grid {
|
|
635
650
|
margin-bottom: auto;
|
|
636
651
|
grid-template-rows: max-content;
|
|
@@ -780,6 +795,10 @@
|
|
|
780
795
|
top: 8px;
|
|
781
796
|
}
|
|
782
797
|
|
|
798
|
+
ul.dataviews-view-list {
|
|
799
|
+
list-style-type: none;
|
|
800
|
+
}
|
|
801
|
+
|
|
783
802
|
.dataviews-view-list {
|
|
784
803
|
margin: 0 0 auto;
|
|
785
804
|
}
|
|
@@ -833,12 +852,13 @@
|
|
|
833
852
|
.dataviews-view-list li:not(.is-selected) .dataviews-view-list__primary-field {
|
|
834
853
|
color: #1e1e1e;
|
|
835
854
|
}
|
|
836
|
-
.dataviews-view-list li:not(.is-selected):hover, .dataviews-view-list li:not(.is-selected):focus-within {
|
|
855
|
+
.dataviews-view-list li:not(.is-selected):hover, .dataviews-view-list li:not(.is-selected).is-hovered, .dataviews-view-list li:not(.is-selected):focus-within {
|
|
837
856
|
color: var(--wp-admin-theme-color);
|
|
838
857
|
background-color: #f8f8f8;
|
|
839
858
|
}
|
|
840
859
|
.dataviews-view-list li:not(.is-selected):hover .dataviews-view-list__primary-field,
|
|
841
|
-
.dataviews-view-list li:not(.is-selected):hover .dataviews-view-list__fields, .dataviews-view-list li:not(.is-selected)
|
|
860
|
+
.dataviews-view-list li:not(.is-selected):hover .dataviews-view-list__fields, .dataviews-view-list li:not(.is-selected).is-hovered .dataviews-view-list__primary-field,
|
|
861
|
+
.dataviews-view-list li:not(.is-selected).is-hovered .dataviews-view-list__fields, .dataviews-view-list li:not(.is-selected):focus-within .dataviews-view-list__primary-field,
|
|
842
862
|
.dataviews-view-list li:not(.is-selected):focus-within .dataviews-view-list__fields {
|
|
843
863
|
color: var(--wp-admin-theme-color);
|
|
844
864
|
}
|
|
@@ -854,6 +874,7 @@
|
|
|
854
874
|
color: var(--wp-admin-theme-color);
|
|
855
875
|
}
|
|
856
876
|
.dataviews-view-list .dataviews-view-list__item {
|
|
877
|
+
box-sizing: border-box;
|
|
857
878
|
padding: 16px 24px;
|
|
858
879
|
width: 100%;
|
|
859
880
|
scroll-margin: 8px 0;
|
|
@@ -861,7 +882,7 @@
|
|
|
861
882
|
.dataviews-view-list .dataviews-view-list__item:focus-visible::before {
|
|
862
883
|
position: absolute;
|
|
863
884
|
content: "";
|
|
864
|
-
top:
|
|
885
|
+
top: var(--wp-admin-border-width-focus);
|
|
865
886
|
left: var(--wp-admin-border-width-focus);
|
|
866
887
|
bottom: var(--wp-admin-border-width-focus);
|
|
867
888
|
right: var(--wp-admin-border-width-focus);
|
|
@@ -898,8 +919,8 @@
|
|
|
898
919
|
border-radius: 4px;
|
|
899
920
|
}
|
|
900
921
|
.dataviews-view-list .dataviews-view-list__media-placeholder {
|
|
901
|
-
|
|
902
|
-
height:
|
|
922
|
+
width: 52px;
|
|
923
|
+
height: 52px;
|
|
903
924
|
background-color: #e0e0e0;
|
|
904
925
|
}
|
|
905
926
|
.dataviews-view-list .dataviews-view-list__field-wrapper {
|
|
@@ -938,11 +959,6 @@
|
|
|
938
959
|
color: #757575;
|
|
939
960
|
margin-bottom: auto;
|
|
940
961
|
}
|
|
941
|
-
.dataviews-view-table a {
|
|
942
|
-
text-decoration: none;
|
|
943
|
-
color: #1e1e1e;
|
|
944
|
-
font-weight: 500;
|
|
945
|
-
}
|
|
946
962
|
.dataviews-view-table th {
|
|
947
963
|
text-align: right;
|
|
948
964
|
color: #1e1e1e;
|
|
@@ -1075,10 +1091,6 @@
|
|
|
1075
1091
|
opacity: 1;
|
|
1076
1092
|
}
|
|
1077
1093
|
|
|
1078
|
-
.dataviews-view-table__cell-content-wrapper:empty {
|
|
1079
|
-
display: none;
|
|
1080
|
-
}
|
|
1081
|
-
|
|
1082
1094
|
/* stylelint-disable-next-line scss/at-rule-no-unknown -- '@container' not globally permitted */
|
|
1083
1095
|
@container (max-width: 430px) {
|
|
1084
1096
|
.dataviews-view-table tr td:first-child,
|
package/build-style/style.css
CHANGED
|
@@ -116,6 +116,8 @@
|
|
|
116
116
|
container: dataviews-wrapper/inline-size;
|
|
117
117
|
display: flex;
|
|
118
118
|
flex-direction: column;
|
|
119
|
+
font-size: 13px;
|
|
120
|
+
line-height: 1.4;
|
|
119
121
|
}
|
|
120
122
|
|
|
121
123
|
.dataviews__view-actions,
|
|
@@ -217,53 +219,16 @@
|
|
|
217
219
|
padding-right: 24px;
|
|
218
220
|
}
|
|
219
221
|
}
|
|
220
|
-
.dataviews-bulk-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
flex-shrink: 0;
|
|
222
|
+
.dataviews-bulk-actions-footer__item-count {
|
|
223
|
+
color: #1e1e1e;
|
|
224
|
+
font-weight: 500;
|
|
225
|
+
font-size: 11px;
|
|
226
|
+
text-transform: uppercase;
|
|
226
227
|
}
|
|
227
228
|
|
|
228
|
-
.dataviews-bulk-actions-
|
|
229
|
-
position: sticky;
|
|
230
|
-
display: flex;
|
|
231
|
-
flex-direction: column;
|
|
232
|
-
align-content: center;
|
|
233
|
-
flex-wrap: wrap;
|
|
234
|
-
width: -moz-fit-content;
|
|
235
|
-
width: fit-content;
|
|
236
|
-
margin-left: auto;
|
|
229
|
+
.dataviews-bulk-actions-footer__container {
|
|
237
230
|
margin-right: auto;
|
|
238
|
-
|
|
239
|
-
z-index: 2;
|
|
240
|
-
}
|
|
241
|
-
.dataviews-bulk-actions-toolbar .components-accessible-toolbar {
|
|
242
|
-
border-color: #ddd;
|
|
243
|
-
box-shadow: 0 0.7px 1px rgba(0, 0, 0, 0.1), 0 1.2px 1.7px -0.2px rgba(0, 0, 0, 0.1), 0 2.3px 3.3px -0.5px rgba(0, 0, 0, 0.1);
|
|
244
|
-
}
|
|
245
|
-
.dataviews-bulk-actions-toolbar .components-accessible-toolbar .components-toolbar-group {
|
|
246
|
-
border-color: #e0e0e0;
|
|
247
|
-
}
|
|
248
|
-
.dataviews-bulk-actions-toolbar .components-accessible-toolbar .components-toolbar-group:last-child {
|
|
249
|
-
border: 0;
|
|
250
|
-
}
|
|
251
|
-
.dataviews-bulk-actions-toolbar .dataviews-bulk-actions-toolbar__selection-count {
|
|
252
|
-
display: flex;
|
|
253
|
-
align-items: center;
|
|
254
|
-
margin: 0 8px 0 8px;
|
|
255
|
-
}
|
|
256
|
-
|
|
257
|
-
.dataviews-bulk-actions-toolbar__wrapper {
|
|
258
|
-
display: flex;
|
|
259
|
-
flex-grow: 1;
|
|
260
|
-
width: 100%;
|
|
261
|
-
}
|
|
262
|
-
.dataviews-bulk-actions-toolbar__wrapper .components-toolbar-group {
|
|
263
|
-
align-items: center;
|
|
264
|
-
}
|
|
265
|
-
.dataviews-bulk-actions-toolbar__wrapper .components-button.is-busy {
|
|
266
|
-
max-height: 36px;
|
|
231
|
+
min-height: 32px;
|
|
267
232
|
}
|
|
268
233
|
|
|
269
234
|
.dataviews-filters__button {
|
|
@@ -281,11 +246,17 @@
|
|
|
281
246
|
opacity: 1;
|
|
282
247
|
}
|
|
283
248
|
|
|
249
|
+
.dataviews-filters__summary-popover {
|
|
250
|
+
font-size: 13px;
|
|
251
|
+
line-height: 1.4;
|
|
252
|
+
}
|
|
284
253
|
.dataviews-filters__summary-popover .components-popover__content {
|
|
285
254
|
width: 230px;
|
|
286
|
-
padding: 0;
|
|
287
255
|
border-radius: 4px;
|
|
288
256
|
}
|
|
257
|
+
.dataviews-filters__summary-popover.components-dropdown__content .components-popover__content {
|
|
258
|
+
padding: 0;
|
|
259
|
+
}
|
|
289
260
|
|
|
290
261
|
.dataviews-filters__summary-operators-container {
|
|
291
262
|
padding: 8px 8px 0;
|
|
@@ -316,6 +287,7 @@
|
|
|
316
287
|
position: relative;
|
|
317
288
|
display: flex;
|
|
318
289
|
align-items: center;
|
|
290
|
+
box-sizing: border-box;
|
|
319
291
|
}
|
|
320
292
|
.dataviews-filters__summary-chip-container .dataviews-filters__summary-chip.has-reset {
|
|
321
293
|
padding-inline-end: 28px;
|
|
@@ -527,6 +499,7 @@
|
|
|
527
499
|
font-size: 11px;
|
|
528
500
|
outline: var(--wp-admin-border-width-focus) solid #fff;
|
|
529
501
|
color: #fff;
|
|
502
|
+
box-sizing: border-box;
|
|
530
503
|
}
|
|
531
504
|
|
|
532
505
|
.dataviews-search {
|
|
@@ -534,7 +507,7 @@
|
|
|
534
507
|
width: fit-content;
|
|
535
508
|
}
|
|
536
509
|
|
|
537
|
-
.dataviews-
|
|
510
|
+
.dataviews-footer {
|
|
538
511
|
position: sticky;
|
|
539
512
|
bottom: 0;
|
|
540
513
|
left: 0;
|
|
@@ -543,14 +516,37 @@
|
|
|
543
516
|
border-top: 1px solid #f0f0f0;
|
|
544
517
|
flex-shrink: 0;
|
|
545
518
|
transition: padding ease-out 0.1s;
|
|
519
|
+
z-index: 2;
|
|
546
520
|
}
|
|
547
521
|
@media (prefers-reduced-motion: reduce) {
|
|
548
|
-
.dataviews-
|
|
522
|
+
.dataviews-footer {
|
|
549
523
|
transition-duration: 0s;
|
|
550
524
|
transition-delay: 0s;
|
|
551
525
|
}
|
|
552
526
|
}
|
|
553
527
|
|
|
528
|
+
/* stylelint-disable-next-line scss/at-rule-no-unknown -- '@container' not globally permitted */
|
|
529
|
+
@container (max-width: 430px) {
|
|
530
|
+
.dataviews-footer {
|
|
531
|
+
padding: 12px 24px;
|
|
532
|
+
}
|
|
533
|
+
}
|
|
534
|
+
/* stylelint-disable-next-line scss/at-rule-no-unknown -- '@container' not globally permitted */
|
|
535
|
+
@container (max-width: 560px) {
|
|
536
|
+
.dataviews-footer {
|
|
537
|
+
flex-direction: column !important;
|
|
538
|
+
}
|
|
539
|
+
.dataviews-footer .dataviews-bulk-actions-footer__container {
|
|
540
|
+
width: 100%;
|
|
541
|
+
}
|
|
542
|
+
.dataviews-footer .dataviews-bulk-actions-footer__item-count {
|
|
543
|
+
flex-grow: 1;
|
|
544
|
+
}
|
|
545
|
+
.dataviews-footer .dataviews-pagination {
|
|
546
|
+
width: 100%;
|
|
547
|
+
justify-content: space-between;
|
|
548
|
+
}
|
|
549
|
+
}
|
|
554
550
|
.dataviews-pagination__page-select {
|
|
555
551
|
font-size: 11px;
|
|
556
552
|
font-weight: 500;
|
|
@@ -563,12 +559,6 @@
|
|
|
563
559
|
}
|
|
564
560
|
}
|
|
565
561
|
|
|
566
|
-
/* stylelint-disable-next-line scss/at-rule-no-unknown -- '@container' not globally permitted */
|
|
567
|
-
@container (max-width: 430px) {
|
|
568
|
-
.dataviews-pagination {
|
|
569
|
-
padding: 12px 24px;
|
|
570
|
-
}
|
|
571
|
-
}
|
|
572
562
|
.dataviews-action-modal {
|
|
573
563
|
z-index: 1000001;
|
|
574
564
|
}
|
|
@@ -592,6 +582,8 @@
|
|
|
592
582
|
/* stylelint-disable-next-line property-no-unknown -- the linter needs to be updated to accepted the container-type property */
|
|
593
583
|
container-type: inline-size;
|
|
594
584
|
padding: 16px;
|
|
585
|
+
font-size: 13px;
|
|
586
|
+
line-height: 1.4;
|
|
595
587
|
}
|
|
596
588
|
|
|
597
589
|
.dataviews-view-config__sort-direction .components-toggle-group-control-option-base {
|
|
@@ -619,6 +611,10 @@
|
|
|
619
611
|
grid-column: span 4;
|
|
620
612
|
}
|
|
621
613
|
|
|
614
|
+
.dataviews-settings-section:has(.dataviews-settings-section__content:empty) {
|
|
615
|
+
display: none;
|
|
616
|
+
}
|
|
617
|
+
|
|
622
618
|
/* stylelint-disable-next-line scss/at-rule-no-unknown -- '@container' not globally permitted */
|
|
623
619
|
@container (max-width: 500px) {
|
|
624
620
|
.dataviews-settings-section.dataviews-settings-section {
|
|
@@ -631,6 +627,25 @@
|
|
|
631
627
|
grid-column: span 2;
|
|
632
628
|
}
|
|
633
629
|
}
|
|
630
|
+
.dataviews-field-control__field {
|
|
631
|
+
height: 32px;
|
|
632
|
+
}
|
|
633
|
+
|
|
634
|
+
.dataviews-field-control__actions {
|
|
635
|
+
position: absolute;
|
|
636
|
+
top: -9999em;
|
|
637
|
+
}
|
|
638
|
+
|
|
639
|
+
.dataviews-field-control__actions.dataviews-field-control__actions {
|
|
640
|
+
gap: 4px;
|
|
641
|
+
}
|
|
642
|
+
|
|
643
|
+
.dataviews-field-control__field:hover .dataviews-field-control__actions,
|
|
644
|
+
.dataviews-field-control__field:focus-within .dataviews-field-control__actions {
|
|
645
|
+
position: unset;
|
|
646
|
+
top: unset;
|
|
647
|
+
}
|
|
648
|
+
|
|
634
649
|
.dataviews-view-grid {
|
|
635
650
|
margin-bottom: auto;
|
|
636
651
|
grid-template-rows: max-content;
|
|
@@ -780,6 +795,10 @@
|
|
|
780
795
|
top: 8px;
|
|
781
796
|
}
|
|
782
797
|
|
|
798
|
+
ul.dataviews-view-list {
|
|
799
|
+
list-style-type: none;
|
|
800
|
+
}
|
|
801
|
+
|
|
783
802
|
.dataviews-view-list {
|
|
784
803
|
margin: 0 0 auto;
|
|
785
804
|
}
|
|
@@ -833,12 +852,13 @@
|
|
|
833
852
|
.dataviews-view-list li:not(.is-selected) .dataviews-view-list__primary-field {
|
|
834
853
|
color: #1e1e1e;
|
|
835
854
|
}
|
|
836
|
-
.dataviews-view-list li:not(.is-selected):hover, .dataviews-view-list li:not(.is-selected):focus-within {
|
|
855
|
+
.dataviews-view-list li:not(.is-selected):hover, .dataviews-view-list li:not(.is-selected).is-hovered, .dataviews-view-list li:not(.is-selected):focus-within {
|
|
837
856
|
color: var(--wp-admin-theme-color);
|
|
838
857
|
background-color: #f8f8f8;
|
|
839
858
|
}
|
|
840
859
|
.dataviews-view-list li:not(.is-selected):hover .dataviews-view-list__primary-field,
|
|
841
|
-
.dataviews-view-list li:not(.is-selected):hover .dataviews-view-list__fields, .dataviews-view-list li:not(.is-selected)
|
|
860
|
+
.dataviews-view-list li:not(.is-selected):hover .dataviews-view-list__fields, .dataviews-view-list li:not(.is-selected).is-hovered .dataviews-view-list__primary-field,
|
|
861
|
+
.dataviews-view-list li:not(.is-selected).is-hovered .dataviews-view-list__fields, .dataviews-view-list li:not(.is-selected):focus-within .dataviews-view-list__primary-field,
|
|
842
862
|
.dataviews-view-list li:not(.is-selected):focus-within .dataviews-view-list__fields {
|
|
843
863
|
color: var(--wp-admin-theme-color);
|
|
844
864
|
}
|
|
@@ -854,6 +874,7 @@
|
|
|
854
874
|
color: var(--wp-admin-theme-color);
|
|
855
875
|
}
|
|
856
876
|
.dataviews-view-list .dataviews-view-list__item {
|
|
877
|
+
box-sizing: border-box;
|
|
857
878
|
padding: 16px 24px;
|
|
858
879
|
width: 100%;
|
|
859
880
|
scroll-margin: 8px 0;
|
|
@@ -861,7 +882,7 @@
|
|
|
861
882
|
.dataviews-view-list .dataviews-view-list__item:focus-visible::before {
|
|
862
883
|
position: absolute;
|
|
863
884
|
content: "";
|
|
864
|
-
top:
|
|
885
|
+
top: var(--wp-admin-border-width-focus);
|
|
865
886
|
right: var(--wp-admin-border-width-focus);
|
|
866
887
|
bottom: var(--wp-admin-border-width-focus);
|
|
867
888
|
left: var(--wp-admin-border-width-focus);
|
|
@@ -898,8 +919,8 @@
|
|
|
898
919
|
border-radius: 4px;
|
|
899
920
|
}
|
|
900
921
|
.dataviews-view-list .dataviews-view-list__media-placeholder {
|
|
901
|
-
|
|
902
|
-
height:
|
|
922
|
+
width: 52px;
|
|
923
|
+
height: 52px;
|
|
903
924
|
background-color: #e0e0e0;
|
|
904
925
|
}
|
|
905
926
|
.dataviews-view-list .dataviews-view-list__field-wrapper {
|
|
@@ -938,11 +959,6 @@
|
|
|
938
959
|
color: #757575;
|
|
939
960
|
margin-bottom: auto;
|
|
940
961
|
}
|
|
941
|
-
.dataviews-view-table a {
|
|
942
|
-
text-decoration: none;
|
|
943
|
-
color: #1e1e1e;
|
|
944
|
-
font-weight: 500;
|
|
945
|
-
}
|
|
946
962
|
.dataviews-view-table th {
|
|
947
963
|
text-align: left;
|
|
948
964
|
color: #1e1e1e;
|
|
@@ -1075,10 +1091,6 @@
|
|
|
1075
1091
|
opacity: 1;
|
|
1076
1092
|
}
|
|
1077
1093
|
|
|
1078
|
-
.dataviews-view-table__cell-content-wrapper:empty {
|
|
1079
|
-
display: none;
|
|
1080
|
-
}
|
|
1081
|
-
|
|
1082
1094
|
/* stylelint-disable-next-line scss/at-rule-no-unknown -- '@container' not globally permitted */
|
|
1083
1095
|
@container (max-width: 430px) {
|
|
1084
1096
|
.dataviews-view-table tr td:first-child,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/dataviews/index.tsx"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/dataviews/index.tsx"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAsBvC,OAAO,KAAK,EAAE,MAAM,EAAE,KAAK,EAAE,IAAI,EAAE,gBAAgB,EAAE,MAAM,aAAa,CAAC;AAGzE,KAAK,UAAU,GAAG;IAAE,EAAE,EAAE,MAAM,CAAA;CAAE,CAAC;AAEjC,KAAK,cAAc,CAAE,IAAI,IAAK;IAC7B,IAAI,EAAE,IAAI,CAAC;IACX,YAAY,EAAE,CAAE,IAAI,EAAE,IAAI,KAAM,IAAI,CAAC;IACrC,MAAM,EAAE,KAAK,CAAE,IAAI,CAAE,EAAE,CAAC;IACxB,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,OAAO,CAAC,EAAE,MAAM,CAAE,IAAI,CAAE,EAAE,CAAC;IAC3B,IAAI,EAAE,IAAI,EAAE,CAAC;IACb,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,cAAc,EAAE;QACf,UAAU,EAAE,MAAM,CAAC;QACnB,UAAU,EAAE,MAAM,CAAC;KACnB,CAAC;IACF,cAAc,EAAE,gBAAgB,CAAC;IACjC,SAAS,CAAC,EAAE,MAAM,EAAE,CAAC;IACrB,iBAAiB,CAAC,EAAE,CAAE,KAAK,EAAE,MAAM,EAAE,KAAM,IAAI,CAAC;IAChD,MAAM,CAAC,EAAE,SAAS,CAAC;CACnB,GAAG,CAAE,IAAI,SAAS,UAAU,GAC1B;IAAE,SAAS,CAAC,EAAE,CAAE,IAAI,EAAE,IAAI,KAAM,MAAM,CAAA;CAAE,GACxC;IAAE,SAAS,EAAE,CAAE,IAAI,EAAE,IAAI,KAAM,MAAM,CAAA;CAAE,CAAE,CAAC;AAI7C,MAAM,CAAC,OAAO,UAAU,SAAS,CAAE,IAAI,EAAI,EAC1C,IAAI,EACJ,YAAY,EACZ,MAAM,EACN,MAAa,EACb,WAAuB,EACvB,OAAY,EACZ,IAAI,EACJ,SAA4B,EAC5B,SAAiB,EACjB,cAAc,EACd,cAAc,EACd,SAAS,EAAE,iBAAiB,EAC5B,iBAAiB,EACjB,MAAM,GACN,EAAE,cAAc,CAAE,IAAI,CAAE,+BAwFxB"}
|