@wordpress/dataviews 12.0.1-next.v.202602091733.0 → 12.0.1
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 +39 -1
- package/README.md +3 -1
- package/build/components/dataform-controls/color.cjs +19 -30
- package/build/components/dataform-controls/color.cjs.map +3 -3
- package/build/components/dataform-controls/date.cjs.map +1 -1
- package/build/components/dataform-controls/datetime.cjs +12 -21
- package/build/components/dataform-controls/datetime.cjs.map +2 -2
- package/build/components/dataform-layouts/card/index.cjs +112 -164
- package/build/components/dataform-layouts/card/index.cjs.map +3 -3
- package/build/components/dataform-layouts/index.cjs +1 -1
- package/build/components/dataform-layouts/index.cjs.map +1 -1
- package/build/components/dataform-layouts/normalize-form.cjs +2 -1
- package/build/components/dataform-layouts/normalize-form.cjs.map +2 -2
- package/build/components/dataform-layouts/panel/dropdown.cjs +79 -65
- package/build/components/dataform-layouts/panel/dropdown.cjs.map +3 -3
- package/build/components/dataform-layouts/panel/index.cjs +13 -177
- package/build/components/dataform-layouts/panel/index.cjs.map +3 -3
- package/build/components/dataform-layouts/panel/modal.cjs +12 -9
- package/build/components/dataform-layouts/panel/modal.cjs.map +3 -3
- package/build/components/dataform-layouts/panel/summary-button.cjs +125 -56
- package/build/components/dataform-layouts/panel/summary-button.cjs.map +3 -3
- package/build/components/dataform-layouts/panel/utils/get-first-validation-error.cjs +59 -0
- package/build/components/dataform-layouts/panel/utils/get-first-validation-error.cjs.map +7 -0
- package/build/components/dataform-layouts/panel/utils/get-label-classname.cjs +45 -0
- package/build/components/dataform-layouts/panel/utils/get-label-classname.cjs.map +7 -0
- package/build/components/dataform-layouts/panel/utils/get-label-content.cjs +36 -0
- package/build/components/dataform-layouts/panel/utils/get-label-content.cjs.map +7 -0
- package/build/components/dataform-layouts/panel/utils/use-field-from-form-field.cjs +77 -0
- package/build/components/dataform-layouts/panel/utils/use-field-from-form-field.cjs.map +7 -0
- package/build/components/dataviews-bulk-actions/index.cjs +2 -2
- package/build/components/dataviews-bulk-actions/index.cjs.map +2 -2
- package/build/components/dataviews-context/index.cjs +1 -0
- package/build/components/dataviews-context/index.cjs.map +2 -2
- package/build/components/dataviews-filters/filter.cjs.map +1 -1
- package/build/components/dataviews-filters/search-widget.cjs +25 -11
- package/build/components/dataviews-filters/search-widget.cjs.map +2 -2
- package/build/components/dataviews-filters/toggle.cjs +6 -2
- package/build/components/dataviews-filters/toggle.cjs.map +2 -2
- package/build/components/dataviews-footer/index.cjs +28 -12
- package/build/components/dataviews-footer/index.cjs.map +3 -3
- package/build/components/dataviews-item-actions/index.cjs +0 -1
- package/build/components/dataviews-item-actions/index.cjs.map +2 -2
- package/build/components/dataviews-layout/index.cjs +12 -0
- package/build/components/dataviews-layout/index.cjs.map +2 -2
- package/build/components/dataviews-layouts/activity/index.cjs +41 -26
- package/build/components/dataviews-layouts/activity/index.cjs.map +3 -3
- package/build/components/dataviews-layouts/grid/composite-grid.cjs +2 -0
- package/build/components/dataviews-layouts/grid/composite-grid.cjs.map +2 -2
- package/build/components/dataviews-layouts/grid/index.cjs +19 -14
- package/build/components/dataviews-layouts/grid/index.cjs.map +3 -3
- package/build/components/dataviews-layouts/list/index.cjs +13 -9
- package/build/components/dataviews-layouts/list/index.cjs.map +2 -2
- package/build/components/dataviews-layouts/picker-table/index.cjs +1 -1
- package/build/components/dataviews-layouts/picker-table/index.cjs.map +2 -2
- package/build/components/dataviews-layouts/table/index.cjs +40 -19
- package/build/components/dataviews-layouts/table/index.cjs.map +2 -2
- package/build/dataviews/index.cjs +9 -2
- package/build/dataviews/index.cjs.map +3 -3
- package/build/dataviews-picker/index.cjs +1 -0
- package/build/dataviews-picker/index.cjs.map +2 -2
- package/build/hooks/use-data.cjs +46 -0
- package/build/hooks/use-data.cjs.map +7 -0
- package/build/hooks/use-delayed-loading.cjs +47 -0
- package/build/hooks/use-delayed-loading.cjs.map +7 -0
- package/build/types/dataform.cjs.map +1 -1
- package/build-module/components/dataform-controls/color.mjs +24 -31
- package/build-module/components/dataform-controls/color.mjs.map +2 -2
- package/build-module/components/dataform-controls/date.mjs.map +1 -1
- package/build-module/components/dataform-controls/datetime.mjs +13 -22
- package/build-module/components/dataform-controls/datetime.mjs.map +2 -2
- package/build-module/components/dataform-layouts/card/index.mjs +113 -161
- package/build-module/components/dataform-layouts/card/index.mjs.map +3 -3
- package/build-module/components/dataform-layouts/index.mjs +1 -1
- package/build-module/components/dataform-layouts/index.mjs.map +1 -1
- package/build-module/components/dataform-layouts/normalize-form.mjs +2 -1
- package/build-module/components/dataform-layouts/normalize-form.mjs.map +2 -2
- package/build-module/components/dataform-layouts/panel/dropdown.mjs +81 -67
- package/build-module/components/dataform-layouts/panel/dropdown.mjs.map +2 -2
- package/build-module/components/dataform-layouts/panel/index.mjs +14 -178
- package/build-module/components/dataform-layouts/panel/index.mjs.map +2 -2
- package/build-module/components/dataform-layouts/panel/modal.mjs +12 -9
- package/build-module/components/dataform-layouts/panel/modal.mjs.map +2 -2
- package/build-module/components/dataform-layouts/panel/summary-button.mjs +117 -58
- package/build-module/components/dataform-layouts/panel/summary-button.mjs.map +2 -2
- package/build-module/components/dataform-layouts/panel/utils/get-first-validation-error.mjs +38 -0
- package/build-module/components/dataform-layouts/panel/utils/get-first-validation-error.mjs.map +7 -0
- package/build-module/components/dataform-layouts/panel/utils/get-label-classname.mjs +14 -0
- package/build-module/components/dataform-layouts/panel/utils/get-label-classname.mjs.map +7 -0
- package/build-module/components/dataform-layouts/panel/utils/get-label-content.mjs +15 -0
- package/build-module/components/dataform-layouts/panel/utils/get-label-content.mjs.map +7 -0
- package/build-module/components/dataform-layouts/panel/utils/use-field-from-form-field.mjs +46 -0
- package/build-module/components/dataform-layouts/panel/utils/use-field-from-form-field.mjs.map +7 -0
- package/build-module/components/dataviews-bulk-actions/index.mjs +2 -2
- package/build-module/components/dataviews-bulk-actions/index.mjs.map +2 -2
- package/build-module/components/dataviews-context/index.mjs +1 -0
- package/build-module/components/dataviews-context/index.mjs.map +2 -2
- package/build-module/components/dataviews-filters/filter.mjs.map +1 -1
- package/build-module/components/dataviews-filters/search-widget.mjs +25 -11
- package/build-module/components/dataviews-filters/search-widget.mjs.map +2 -2
- package/build-module/components/dataviews-filters/toggle.mjs +6 -2
- package/build-module/components/dataviews-filters/toggle.mjs.map +2 -2
- package/build-module/components/dataviews-footer/index.mjs +28 -12
- package/build-module/components/dataviews-footer/index.mjs.map +2 -2
- package/build-module/components/dataviews-item-actions/index.mjs +0 -1
- package/build-module/components/dataviews-item-actions/index.mjs.map +2 -2
- package/build-module/components/dataviews-layout/index.mjs +12 -0
- package/build-module/components/dataviews-layout/index.mjs.map +2 -2
- package/build-module/components/dataviews-layouts/activity/index.mjs +41 -26
- package/build-module/components/dataviews-layouts/activity/index.mjs.map +2 -2
- package/build-module/components/dataviews-layouts/grid/composite-grid.mjs +2 -0
- package/build-module/components/dataviews-layouts/grid/composite-grid.mjs.map +2 -2
- package/build-module/components/dataviews-layouts/grid/index.mjs +19 -14
- package/build-module/components/dataviews-layouts/grid/index.mjs.map +2 -2
- package/build-module/components/dataviews-layouts/list/index.mjs +13 -9
- package/build-module/components/dataviews-layouts/list/index.mjs.map +2 -2
- package/build-module/components/dataviews-layouts/picker-table/index.mjs +1 -1
- package/build-module/components/dataviews-layouts/picker-table/index.mjs.map +2 -2
- package/build-module/components/dataviews-layouts/table/index.mjs +40 -19
- package/build-module/components/dataviews-layouts/table/index.mjs.map +2 -2
- package/build-module/dataviews/index.mjs +9 -2
- package/build-module/dataviews/index.mjs.map +2 -2
- package/build-module/dataviews-picker/index.mjs +1 -0
- package/build-module/dataviews-picker/index.mjs.map +2 -2
- package/build-module/hooks/use-data.mjs +25 -0
- package/build-module/hooks/use-data.mjs.map +7 -0
- package/build-module/hooks/use-delayed-loading.mjs +22 -0
- package/build-module/hooks/use-delayed-loading.mjs.map +7 -0
- package/build-style/style-rtl.css +190 -31
- package/build-style/style.css +190 -31
- package/build-types/components/dataform-controls/color.d.ts.map +1 -1
- package/build-types/components/dataform-controls/datetime.d.ts.map +1 -1
- package/build-types/components/dataform-controls/utils/use-disabled-date-matchers.d.ts +16 -0
- package/build-types/components/dataform-controls/utils/use-disabled-date-matchers.d.ts.map +1 -0
- package/build-types/components/dataform-layouts/card/index.d.ts +1 -10
- package/build-types/components/dataform-layouts/card/index.d.ts.map +1 -1
- package/build-types/components/dataform-layouts/normalize-form.d.ts.map +1 -1
- package/build-types/components/dataform-layouts/panel/dropdown.d.ts +2 -13
- package/build-types/components/dataform-layouts/panel/dropdown.d.ts.map +1 -1
- package/build-types/components/dataform-layouts/panel/index.d.ts +1 -1
- package/build-types/components/dataform-layouts/panel/index.d.ts.map +1 -1
- package/build-types/components/dataform-layouts/panel/modal.d.ts +2 -11
- package/build-types/components/dataform-layouts/panel/modal.d.ts.map +1 -1
- package/build-types/components/dataform-layouts/panel/summary-button.d.ts +6 -5
- package/build-types/components/dataform-layouts/panel/summary-button.d.ts.map +1 -1
- package/build-types/components/dataform-layouts/panel/utils/get-first-validation-error.d.ts +4 -0
- package/build-types/components/dataform-layouts/panel/utils/get-first-validation-error.d.ts.map +1 -0
- package/build-types/components/dataform-layouts/panel/utils/get-label-classname.d.ts +4 -0
- package/build-types/components/dataform-layouts/panel/utils/get-label-classname.d.ts.map +1 -0
- package/build-types/components/dataform-layouts/panel/utils/get-label-content.d.ts +3 -0
- package/build-types/components/dataform-layouts/panel/utils/get-label-content.d.ts.map +1 -0
- package/build-types/components/dataform-layouts/panel/utils/use-field-from-form-field.d.ts +23 -0
- package/build-types/components/dataform-layouts/panel/utils/use-field-from-form-field.d.ts.map +1 -0
- package/build-types/components/dataviews-context/index.d.ts +1 -0
- package/build-types/components/dataviews-context/index.d.ts.map +1 -1
- package/build-types/components/dataviews-filters/filter.d.ts +1 -1
- package/build-types/components/dataviews-filters/filter.d.ts.map +1 -1
- package/build-types/components/dataviews-filters/search-widget.d.ts.map +1 -1
- package/build-types/components/dataviews-filters/toggle.d.ts.map +1 -1
- package/build-types/components/dataviews-footer/index.d.ts +1 -1
- package/build-types/components/dataviews-footer/index.d.ts.map +1 -1
- package/build-types/components/dataviews-item-actions/index.d.ts.map +1 -1
- package/build-types/components/dataviews-layout/index.d.ts +1 -1
- package/build-types/components/dataviews-layout/index.d.ts.map +1 -1
- package/build-types/components/dataviews-layouts/activity/index.d.ts.map +1 -1
- package/build-types/components/dataviews-layouts/grid/composite-grid.d.ts +2 -1
- package/build-types/components/dataviews-layouts/grid/composite-grid.d.ts.map +1 -1
- package/build-types/components/dataviews-layouts/grid/index.d.ts.map +1 -1
- package/build-types/components/dataviews-layouts/list/index.d.ts.map +1 -1
- package/build-types/components/dataviews-layouts/picker-activity/index.d.ts +3 -0
- package/build-types/components/dataviews-layouts/picker-activity/index.d.ts.map +1 -0
- package/build-types/components/dataviews-layouts/table/index.d.ts.map +1 -1
- package/build-types/components/dataviews-layouts/table/use-scroll-state.d.ts +25 -0
- package/build-types/components/dataviews-layouts/table/use-scroll-state.d.ts.map +1 -0
- package/build-types/components/dataviews-layouts/utils/grid-config-options.d.ts +2 -0
- package/build-types/components/dataviews-layouts/utils/grid-config-options.d.ts.map +1 -0
- package/build-types/components/dataviews-layouts/utils/use-infinite-scroll.d.ts +22 -0
- package/build-types/components/dataviews-layouts/utils/use-infinite-scroll.d.ts.map +1 -0
- package/build-types/dataform/stories/index.story.d.ts +9 -1
- package/build-types/dataform/stories/index.story.d.ts.map +1 -1
- package/build-types/dataform/stories/layout-panel.d.ts +3 -1
- package/build-types/dataform/stories/layout-panel.d.ts.map +1 -1
- package/build-types/dataviews/index.d.ts.map +1 -1
- package/build-types/dataviews/stories/empty.d.ts.map +1 -1
- package/build-types/dataviews/stories/fixtures.d.ts +1 -0
- package/build-types/dataviews/stories/fixtures.d.ts.map +1 -1
- package/build-types/dataviews/stories/free-composition.d.ts.map +1 -1
- package/build-types/dataviews/stories/layout-table.d.ts.map +1 -1
- package/build-types/dataviews/stories/minimal-ui.d.ts.map +1 -1
- package/build-types/dataviews/stories/with-card.d.ts.map +1 -1
- package/build-types/dataviews-picker/index.d.ts.map +1 -1
- package/build-types/field-types/utils/is-valid-date-boundary.d.ts +7 -0
- package/build-types/field-types/utils/is-valid-date-boundary.d.ts.map +1 -0
- package/build-types/hooks/test/use-data.d.ts +2 -0
- package/build-types/hooks/test/use-data.d.ts.map +1 -0
- package/build-types/hooks/use-data.d.ts +12 -0
- package/build-types/hooks/use-data.d.ts.map +1 -0
- package/build-types/hooks/use-delayed-loading.d.ts +4 -0
- package/build-types/hooks/use-delayed-loading.d.ts.map +1 -0
- package/build-types/hooks/use-infinite-scroll.d.ts +21 -0
- package/build-types/hooks/use-infinite-scroll.d.ts.map +1 -0
- package/build-types/hooks/use-selected-items.d.ts +19 -0
- package/build-types/hooks/use-selected-items.d.ts.map +1 -0
- package/build-types/types/dataform.d.ts +3 -0
- package/build-types/types/dataform.d.ts.map +1 -1
- package/build-wp/index.js +2898 -2198
- package/package.json +21 -21
- package/src/components/dataform-controls/color.tsx +29 -36
- package/src/components/dataform-controls/date.tsx +2 -2
- package/src/components/dataform-controls/datetime.tsx +19 -34
- package/src/components/dataform-controls/style.scss +4 -0
- package/src/components/dataform-layouts/card/index.tsx +118 -185
- package/src/components/dataform-layouts/index.tsx +1 -1
- package/src/components/dataform-layouts/normalize-form.ts +1 -0
- package/src/components/dataform-layouts/panel/dropdown.tsx +95 -96
- package/src/components/dataform-layouts/panel/index.tsx +10 -245
- package/src/components/dataform-layouts/panel/modal.tsx +16 -20
- package/src/components/dataform-layouts/panel/style.scss +110 -27
- package/src/components/dataform-layouts/panel/summary-button.tsx +140 -62
- package/src/components/dataform-layouts/panel/utils/get-first-validation-error.ts +47 -0
- package/src/components/dataform-layouts/panel/utils/get-label-classname.ts +18 -0
- package/src/components/dataform-layouts/panel/utils/get-label-content.tsx +24 -0
- package/src/components/dataform-layouts/panel/utils/use-field-from-form-field.ts +78 -0
- package/src/components/dataform-layouts/regular/style.scss +7 -0
- package/src/components/dataform-layouts/test/normalize-form.ts +5 -0
- package/src/components/dataviews-bulk-actions/index.tsx +2 -2
- package/src/components/dataviews-context/index.ts +2 -0
- package/src/components/dataviews-filters/filter.tsx +1 -1
- package/src/components/dataviews-filters/search-widget.tsx +10 -2
- package/src/components/dataviews-filters/style.scss +8 -0
- package/src/components/dataviews-filters/toggle.tsx +10 -3
- package/src/components/dataviews-footer/index.tsx +39 -12
- package/src/components/dataviews-footer/style.scss +6 -1
- package/src/components/dataviews-item-actions/index.tsx +0 -3
- package/src/components/dataviews-item-actions/style.scss +7 -0
- package/src/components/dataviews-layout/index.tsx +24 -0
- package/src/components/dataviews-layouts/activity/index.tsx +29 -22
- package/src/components/dataviews-layouts/activity/style.scss +5 -0
- package/src/components/dataviews-layouts/grid/composite-grid.tsx +5 -1
- package/src/components/dataviews-layouts/grid/index.tsx +19 -22
- package/src/components/dataviews-layouts/grid/style.scss +5 -0
- package/src/components/dataviews-layouts/list/index.tsx +18 -18
- package/src/components/dataviews-layouts/list/style.scss +5 -0
- package/src/components/dataviews-layouts/picker-table/index.tsx +1 -1
- package/src/components/dataviews-layouts/table/index.tsx +48 -22
- package/src/components/dataviews-layouts/table/style.scss +8 -2
- package/src/dataform/stories/index.story.tsx +5 -0
- package/src/dataform/stories/layout-panel.tsx +19 -2
- package/src/dataform/test/dataform.tsx +2 -2
- package/src/dataviews/index.tsx +11 -3
- package/src/dataviews/stories/empty.tsx +1 -7
- package/src/dataviews/stories/fixtures.tsx +89 -0
- package/src/dataviews/stories/free-composition.tsx +0 -5
- package/src/dataviews/stories/layout-table.tsx +1 -7
- package/src/dataviews/stories/minimal-ui.tsx +0 -5
- package/src/dataviews/stories/with-card.tsx +1 -7
- package/src/dataviews/style.scss +25 -0
- package/src/dataviews-picker/index.tsx +2 -1
- package/src/hooks/use-data.ts +45 -0
- package/src/hooks/use-delayed-loading.ts +21 -0
- package/src/types/dataform.ts +4 -0
package/build-style/style.css
CHANGED
|
@@ -133,6 +133,25 @@
|
|
|
133
133
|
}
|
|
134
134
|
}
|
|
135
135
|
|
|
136
|
+
.dataviews-no-results.is-refreshing {
|
|
137
|
+
opacity: 0.5;
|
|
138
|
+
pointer-events: none;
|
|
139
|
+
}
|
|
140
|
+
@media not (prefers-reduced-motion) {
|
|
141
|
+
.dataviews-no-results.is-refreshing {
|
|
142
|
+
opacity: 1;
|
|
143
|
+
animation: dataviews-pulse 1s ease-in-out infinite;
|
|
144
|
+
}
|
|
145
|
+
}
|
|
146
|
+
|
|
147
|
+
@keyframes dataviews-pulse {
|
|
148
|
+
0%, 100% {
|
|
149
|
+
opacity: 1;
|
|
150
|
+
}
|
|
151
|
+
50% {
|
|
152
|
+
opacity: 0.5;
|
|
153
|
+
}
|
|
154
|
+
}
|
|
136
155
|
.dataviews-loading-more {
|
|
137
156
|
text-align: center;
|
|
138
157
|
}
|
|
@@ -396,6 +415,12 @@
|
|
|
396
415
|
border-color: var(--wp-admin-theme-color-darker-20, #183ad6);
|
|
397
416
|
background: var(--wp-admin-theme-color-darker-20, #183ad6);
|
|
398
417
|
}
|
|
418
|
+
.dataviews-filters__search-widget-listitem .dataviews-filters__search-widget-listitem-value {
|
|
419
|
+
overflow: hidden;
|
|
420
|
+
text-overflow: ellipsis;
|
|
421
|
+
white-space: nowrap;
|
|
422
|
+
min-width: 0;
|
|
423
|
+
}
|
|
399
424
|
.dataviews-filters__search-widget-listitem .dataviews-filters__search-widget-listitem-description {
|
|
400
425
|
display: block;
|
|
401
426
|
overflow: hidden;
|
|
@@ -484,6 +509,7 @@
|
|
|
484
509
|
}
|
|
485
510
|
.dataviews-filters__search-widget-listitem .dataviews-filters__search-widget-listitem-multi-selection {
|
|
486
511
|
--checkbox-size: 24px;
|
|
512
|
+
flex-shrink: 0;
|
|
487
513
|
border: 1px solid #1e1e1e;
|
|
488
514
|
margin-right: 12px;
|
|
489
515
|
transition: none;
|
|
@@ -734,18 +760,28 @@
|
|
|
734
760
|
.dataviews-footer {
|
|
735
761
|
z-index: 2;
|
|
736
762
|
}
|
|
763
|
+
.dataviews-footer .is-refreshing {
|
|
764
|
+
opacity: 0.5;
|
|
765
|
+
pointer-events: none;
|
|
766
|
+
}
|
|
767
|
+
@media not (prefers-reduced-motion) {
|
|
768
|
+
.dataviews-footer .is-refreshing {
|
|
769
|
+
opacity: 1;
|
|
770
|
+
animation: dataviews-pulse 1s ease-in-out infinite;
|
|
771
|
+
}
|
|
772
|
+
}
|
|
737
773
|
|
|
738
774
|
@container (max-width: 560px) {
|
|
739
|
-
.dataviews-
|
|
775
|
+
.dataviews-footer__content {
|
|
740
776
|
flex-direction: column !important;
|
|
741
777
|
}
|
|
742
|
-
.dataviews-
|
|
778
|
+
.dataviews-footer__content .dataviews-bulk-actions-footer__container {
|
|
743
779
|
width: 100%;
|
|
744
780
|
}
|
|
745
|
-
.dataviews-
|
|
781
|
+
.dataviews-footer__content .dataviews-bulk-actions-footer__item-count {
|
|
746
782
|
flex-grow: 1;
|
|
747
783
|
}
|
|
748
|
-
.dataviews-
|
|
784
|
+
.dataviews-footer__content .dataviews-pagination {
|
|
749
785
|
width: 100%;
|
|
750
786
|
justify-content: space-between;
|
|
751
787
|
}
|
|
@@ -766,6 +802,10 @@
|
|
|
766
802
|
z-index: 1000001;
|
|
767
803
|
}
|
|
768
804
|
|
|
805
|
+
.dataviews-item-actions .components-button:not(.dataviews-all-actions-button) {
|
|
806
|
+
padding: 0 4px;
|
|
807
|
+
}
|
|
808
|
+
|
|
769
809
|
.dataviews-selection-checkbox {
|
|
770
810
|
--checkbox-input-size: 24px;
|
|
771
811
|
}
|
|
@@ -1011,6 +1051,16 @@
|
|
|
1011
1051
|
.dataviews-view-grid .dataviews-view-grid__badge-fields:not(:empty) {
|
|
1012
1052
|
padding-bottom: 12px;
|
|
1013
1053
|
}
|
|
1054
|
+
.dataviews-view-grid.is-refreshing {
|
|
1055
|
+
opacity: 0.5;
|
|
1056
|
+
pointer-events: none;
|
|
1057
|
+
}
|
|
1058
|
+
@media not (prefers-reduced-motion) {
|
|
1059
|
+
.dataviews-view-grid.is-refreshing {
|
|
1060
|
+
opacity: 1;
|
|
1061
|
+
animation: dataviews-pulse 1s ease-in-out infinite;
|
|
1062
|
+
}
|
|
1063
|
+
}
|
|
1014
1064
|
|
|
1015
1065
|
.dataviews-view-grid__field-value:empty,
|
|
1016
1066
|
.dataviews-view-grid__field:empty {
|
|
@@ -1323,6 +1373,16 @@ div.dataviews-view-list {
|
|
|
1323
1373
|
min-height: 32px;
|
|
1324
1374
|
line-height: 24px;
|
|
1325
1375
|
}
|
|
1376
|
+
.dataviews-view-list.is-refreshing {
|
|
1377
|
+
opacity: 0.5;
|
|
1378
|
+
pointer-events: none;
|
|
1379
|
+
}
|
|
1380
|
+
@media not (prefers-reduced-motion) {
|
|
1381
|
+
.dataviews-view-list.is-refreshing {
|
|
1382
|
+
opacity: 1;
|
|
1383
|
+
animation: dataviews-pulse 1s ease-in-out infinite;
|
|
1384
|
+
}
|
|
1385
|
+
}
|
|
1326
1386
|
|
|
1327
1387
|
.dataviews-view-list__group-header {
|
|
1328
1388
|
font-size: 15px;
|
|
@@ -1449,10 +1509,10 @@ div.dataviews-view-list {
|
|
|
1449
1509
|
gap: 4px;
|
|
1450
1510
|
}
|
|
1451
1511
|
.dataviews-view-table thead th:has(.dataviews-view-table-header-button):first-child {
|
|
1452
|
-
padding-left:
|
|
1512
|
+
padding-left: 16px;
|
|
1453
1513
|
}
|
|
1454
1514
|
.dataviews-view-table thead th:has(.dataviews-view-table-header-button):last-child {
|
|
1455
|
-
padding-right:
|
|
1515
|
+
padding-right: 16px;
|
|
1456
1516
|
}
|
|
1457
1517
|
.dataviews-view-table tbody td {
|
|
1458
1518
|
vertical-align: top;
|
|
@@ -1465,6 +1525,7 @@ div.dataviews-view-list {
|
|
|
1465
1525
|
}
|
|
1466
1526
|
.dataviews-view-table tbody .dataviews-view-table__cell-content-wrapper.dataviews-view-table__cell-align-end {
|
|
1467
1527
|
justify-content: flex-end;
|
|
1528
|
+
font-variant-numeric: tabular-nums;
|
|
1468
1529
|
}
|
|
1469
1530
|
.dataviews-view-table tbody .dataviews-view-table__cell-content-wrapper.dataviews-view-table__cell-align-center {
|
|
1470
1531
|
justify-content: center;
|
|
@@ -1566,6 +1627,17 @@ div.dataviews-view-list {
|
|
|
1566
1627
|
width: 1%;
|
|
1567
1628
|
}
|
|
1568
1629
|
|
|
1630
|
+
.dataviews-view-table.is-refreshing {
|
|
1631
|
+
opacity: 0.5;
|
|
1632
|
+
pointer-events: none;
|
|
1633
|
+
}
|
|
1634
|
+
@media not (prefers-reduced-motion) {
|
|
1635
|
+
.dataviews-view-table.is-refreshing {
|
|
1636
|
+
opacity: 1;
|
|
1637
|
+
animation: dataviews-pulse 1s ease-in-out infinite;
|
|
1638
|
+
}
|
|
1639
|
+
}
|
|
1640
|
+
|
|
1569
1641
|
.dataviews-view-picker-grid .dataviews-view-picker-grid__card {
|
|
1570
1642
|
height: 100%;
|
|
1571
1643
|
justify-content: flex-start;
|
|
@@ -1892,6 +1964,16 @@ div.dataviews-view-list {
|
|
|
1892
1964
|
content: "";
|
|
1893
1965
|
background-color: #ddd;
|
|
1894
1966
|
}
|
|
1967
|
+
.dataviews-view-activity.is-refreshing {
|
|
1968
|
+
opacity: 0.5;
|
|
1969
|
+
pointer-events: none;
|
|
1970
|
+
}
|
|
1971
|
+
@media not (prefers-reduced-motion) {
|
|
1972
|
+
.dataviews-view-activity.is-refreshing {
|
|
1973
|
+
opacity: 1;
|
|
1974
|
+
animation: dataviews-pulse 1s ease-in-out infinite;
|
|
1975
|
+
}
|
|
1976
|
+
}
|
|
1895
1977
|
.dataviews-view-activity + .dataviews-pagination {
|
|
1896
1978
|
justify-content: space-between;
|
|
1897
1979
|
}
|
|
@@ -1925,6 +2007,10 @@ div.dataviews-view-list {
|
|
|
1925
2007
|
min-width: 0;
|
|
1926
2008
|
}
|
|
1927
2009
|
|
|
2010
|
+
.dataviews-controls__color-picker-dropdown {
|
|
2011
|
+
display: flex;
|
|
2012
|
+
}
|
|
2013
|
+
|
|
1928
2014
|
.dataviews-controls__date-preset {
|
|
1929
2015
|
border: 1px solid #ddd;
|
|
1930
2016
|
}
|
|
@@ -1932,35 +2018,101 @@ div.dataviews-view-list {
|
|
|
1932
2018
|
background-color: #000;
|
|
1933
2019
|
}
|
|
1934
2020
|
|
|
1935
|
-
.dataforms-layouts-panel__field {
|
|
2021
|
+
.dataforms-layouts-panel__field-trigger {
|
|
2022
|
+
position: relative;
|
|
2023
|
+
color: inherit;
|
|
2024
|
+
display: flex;
|
|
1936
2025
|
width: 100%;
|
|
1937
|
-
min-height:
|
|
1938
|
-
|
|
1939
|
-
align-items: flex-start
|
|
2026
|
+
min-height: 24px;
|
|
2027
|
+
cursor: pointer;
|
|
2028
|
+
align-items: flex-start;
|
|
2029
|
+
border-radius: 2px;
|
|
2030
|
+
isolation: isolate;
|
|
1940
2031
|
}
|
|
1941
|
-
.dataforms-layouts-panel__field--label-
|
|
1942
|
-
|
|
2032
|
+
.dataforms-layouts-panel__field-trigger--label-side {
|
|
2033
|
+
flex-direction: row;
|
|
2034
|
+
gap: var(--wpds-dimension-gap-md, 12px);
|
|
2035
|
+
}
|
|
2036
|
+
.dataforms-layouts-panel__field-trigger--label-top {
|
|
2037
|
+
display: grid;
|
|
2038
|
+
grid-template-columns: 1fr auto;
|
|
2039
|
+
}
|
|
2040
|
+
.dataforms-layouts-panel__field-trigger--label-none {
|
|
2041
|
+
align-items: center;
|
|
2042
|
+
}
|
|
2043
|
+
.dataforms-layouts-panel__field-trigger:not(.is-disabled):hover {
|
|
2044
|
+
color: var(--wp-admin-theme-color);
|
|
2045
|
+
}
|
|
2046
|
+
.dataforms-layouts-panel__field-trigger:not(.is-disabled):hover .dataforms-layouts-panel__field-trigger-icon {
|
|
2047
|
+
opacity: 1;
|
|
2048
|
+
}
|
|
2049
|
+
.dataforms-layouts-panel__field-trigger:not(.is-disabled):hover .dataforms-layouts-panel__field-label {
|
|
2050
|
+
color: var(--wp-admin-theme-color);
|
|
2051
|
+
}
|
|
2052
|
+
.dataforms-layouts-panel__field-trigger.is-disabled {
|
|
2053
|
+
cursor: default;
|
|
2054
|
+
}
|
|
2055
|
+
.dataforms-layouts-panel__field-trigger.is-disabled .dataforms-layouts-panel__field-control {
|
|
2056
|
+
color: #757575;
|
|
2057
|
+
font-weight: var(--wpds-font-weight-regular, 400);
|
|
2058
|
+
}
|
|
2059
|
+
|
|
2060
|
+
.dataforms-layouts-panel__field-trigger--edit-always .dataforms-layouts-panel__field-trigger-icon {
|
|
2061
|
+
opacity: 1;
|
|
2062
|
+
fill: currentColor;
|
|
2063
|
+
}
|
|
2064
|
+
.dataforms-layouts-panel__field-trigger--edit-always .dataforms-layouts-panel__field-trigger-icon:hover, .dataforms-layouts-panel__field-trigger--edit-always .dataforms-layouts-panel__field-trigger-icon:focus-visible {
|
|
2065
|
+
fill: var(--wp-admin-theme-color);
|
|
2066
|
+
}
|
|
2067
|
+
|
|
2068
|
+
.dataforms-layouts-panel__field-trigger-icon {
|
|
2069
|
+
padding: 0;
|
|
2070
|
+
color: var(--wp-admin-theme-color);
|
|
2071
|
+
flex: 0 0 auto;
|
|
2072
|
+
opacity: 0;
|
|
2073
|
+
border-radius: var(--wpds-border-radius-xs, 1px);
|
|
2074
|
+
}
|
|
2075
|
+
.dataforms-layouts-panel__field-trigger-icon:focus-visible {
|
|
2076
|
+
opacity: 1;
|
|
2077
|
+
outline: var(--wpds-border-width-focus, var(--wp-admin-border-width-focus, 2px)) solid var(--wp-admin-theme-color);
|
|
2078
|
+
}
|
|
2079
|
+
|
|
2080
|
+
.dataforms-layouts-panel__field-dropdown-anchor {
|
|
2081
|
+
width: 100%;
|
|
2082
|
+
}
|
|
2083
|
+
.dataforms-layouts-panel__field-dropdown-anchor .components-dropdown {
|
|
2084
|
+
width: 100%;
|
|
1943
2085
|
}
|
|
1944
2086
|
|
|
1945
2087
|
.dataforms-layouts-panel__field-label {
|
|
1946
2088
|
width: 38%;
|
|
1947
2089
|
flex-shrink: 0;
|
|
1948
|
-
min-height:
|
|
2090
|
+
min-height: 24px;
|
|
1949
2091
|
display: flex;
|
|
1950
2092
|
align-items: center;
|
|
1951
2093
|
line-height: 20px;
|
|
1952
2094
|
hyphens: auto;
|
|
2095
|
+
color: #757575;
|
|
2096
|
+
text-transform: capitalize;
|
|
1953
2097
|
}
|
|
1954
|
-
.dataforms-layouts-panel__field-label
|
|
1955
|
-
|
|
2098
|
+
.dataforms-layouts-panel__field-label .components-base-control__label {
|
|
2099
|
+
display: inline;
|
|
2100
|
+
margin-bottom: 0;
|
|
2101
|
+
line-height: inherit;
|
|
1956
2102
|
}
|
|
1957
2103
|
.dataforms-layouts-panel__field-label.has-error {
|
|
1958
2104
|
color: #cc1818;
|
|
1959
2105
|
}
|
|
1960
2106
|
|
|
1961
2107
|
.dataforms-layouts-panel__field-label-error-content {
|
|
2108
|
+
position: relative;
|
|
2109
|
+
z-index: 1;
|
|
1962
2110
|
cursor: help;
|
|
1963
2111
|
fill: #cc1818;
|
|
2112
|
+
display: inline-flex;
|
|
2113
|
+
flex-direction: row;
|
|
2114
|
+
align-items: center;
|
|
2115
|
+
gap: 4px;
|
|
1964
2116
|
}
|
|
1965
2117
|
.dataforms-layouts-panel__field-label-error-content svg {
|
|
1966
2118
|
fill: currentColor;
|
|
@@ -1968,23 +2120,29 @@ div.dataviews-view-list {
|
|
|
1968
2120
|
|
|
1969
2121
|
.dataforms-layouts-panel__field-control {
|
|
1970
2122
|
flex-grow: 1;
|
|
1971
|
-
min-
|
|
2123
|
+
min-width: 0;
|
|
2124
|
+
min-height: 24px;
|
|
2125
|
+
line-height: var(--wpds-font-line-height-md, 24px);
|
|
1972
2126
|
display: flex;
|
|
1973
2127
|
align-items: center;
|
|
2128
|
+
overflow: hidden;
|
|
2129
|
+
font-weight: var(--wpds-font-weight-medium, 499);
|
|
1974
2130
|
}
|
|
1975
|
-
.dataforms-layouts-panel__field-control
|
|
1976
|
-
|
|
1977
|
-
text-align: left;
|
|
1978
|
-
white-space: normal;
|
|
1979
|
-
text-wrap: balance;
|
|
1980
|
-
text-wrap: pretty;
|
|
1981
|
-
min-height: 32px;
|
|
2131
|
+
.dataforms-layouts-panel__field-control > * {
|
|
2132
|
+
min-width: 0;
|
|
1982
2133
|
}
|
|
1983
|
-
|
|
1984
|
-
|
|
2134
|
+
|
|
2135
|
+
.dataforms-layouts-panel__field-trigger--label-top .dataforms-layouts-panel__field-label {
|
|
2136
|
+
width: 100%;
|
|
1985
2137
|
}
|
|
1986
|
-
|
|
1987
|
-
|
|
2138
|
+
|
|
2139
|
+
.dataforms-layouts-panel__field-trigger--label-top .dataforms-layouts-panel__field-control {
|
|
2140
|
+
grid-column: 1/-1;
|
|
2141
|
+
}
|
|
2142
|
+
|
|
2143
|
+
.dataforms-layouts-panel__field-trigger--label-top .dataforms-layouts-panel__field-trigger-icon {
|
|
2144
|
+
grid-row: 1;
|
|
2145
|
+
grid-column: 2;
|
|
1988
2146
|
}
|
|
1989
2147
|
|
|
1990
2148
|
.dataforms-layouts-panel__field-dropdown .components-popover__content {
|
|
@@ -2004,16 +2162,17 @@ div.dataviews-view-list {
|
|
|
2004
2162
|
z-index: 159990;
|
|
2005
2163
|
}
|
|
2006
2164
|
|
|
2007
|
-
.dataforms-layouts-panel__summary-button:empty {
|
|
2008
|
-
min-width: 160px;
|
|
2009
|
-
}
|
|
2010
|
-
|
|
2011
2165
|
.dataforms-layouts-regular__field {
|
|
2012
2166
|
width: 100%;
|
|
2013
2167
|
min-height: 32px;
|
|
2014
2168
|
justify-content: flex-start !important;
|
|
2015
2169
|
align-items: flex-start !important;
|
|
2016
2170
|
}
|
|
2171
|
+
.dataforms-layouts-regular__field .components-base-control__label,
|
|
2172
|
+
.dataforms-layouts-regular__field .components-input-control__label,
|
|
2173
|
+
.dataforms-layouts-regular__field .components-form-token-field__label {
|
|
2174
|
+
color: #1e1e1e;
|
|
2175
|
+
}
|
|
2017
2176
|
|
|
2018
2177
|
.dataforms-layouts-regular__field-label {
|
|
2019
2178
|
width: 38%;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"color.d.ts","sourceRoot":"","sources":["../../../src/components/dataform-controls/color.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"color.d.ts","sourceRoot":"","sources":["../../../src/components/dataform-controls/color.tsx"],"names":[],"mappings":"AAoBA;;GAEG;AACH,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,aAAa,CAAC;AAwCxD,MAAM,CAAC,OAAO,UAAU,KAAK,CAAE,IAAI,EAAI,EACtC,IAAI,EACJ,KAAK,EACL,QAAQ,EACR,mBAAmB,EACnB,gBAAgB,EAChB,QAAQ,GACR,EAAE,oBAAoB,CAAE,IAAI,CAAE,+BAwC9B"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"datetime.d.ts","sourceRoot":"","sources":["../../../src/components/dataform-controls/datetime.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"datetime.d.ts","sourceRoot":"","sources":["../../../src/components/dataform-controls/datetime.tsx"],"names":[],"mappings":"AAYA;;GAEG;AACH,OAAO,KAAK,EAAE,oBAAoB,EAAkB,MAAM,aAAa,CAAC;AAsLxE,MAAM,CAAC,OAAO,UAAU,QAAQ,CAAE,IAAI,EAAI,EACzC,IAAI,EACJ,KAAK,EACL,QAAQ,EACR,mBAAmB,EACnB,gBAAgB,EAChB,QAAQ,EACR,QAAQ,GACR,EAAE,oBAAoB,CAAE,IAAI,CAAE,+BAwB9B"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Internal dependencies
|
|
3
|
+
*/
|
|
4
|
+
import type { NormalizedRules } from '../../../types';
|
|
5
|
+
type DateMatcher = {
|
|
6
|
+
before: Date;
|
|
7
|
+
} | {
|
|
8
|
+
after: Date;
|
|
9
|
+
};
|
|
10
|
+
export default function useDisabledDateMatchers<Item>(isValid: NormalizedRules<Item>, parseDateFn: (dateString?: string) => Date | null): {
|
|
11
|
+
minConstraint: string | undefined;
|
|
12
|
+
maxConstraint: string | undefined;
|
|
13
|
+
disabledMatchers: DateMatcher[] | undefined;
|
|
14
|
+
};
|
|
15
|
+
export {};
|
|
16
|
+
//# sourceMappingURL=use-disabled-date-matchers.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"use-disabled-date-matchers.d.ts","sourceRoot":"","sources":["../../../../src/components/dataform-controls/utils/use-disabled-date-matchers.ts"],"names":[],"mappings":"AAKA;;GAEG;AACH,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,gBAAgB,CAAC;AAEtD,KAAK,WAAW,GAAG;IAAE,MAAM,EAAE,IAAI,CAAA;CAAE,GAAG;IAAE,KAAK,EAAE,IAAI,CAAA;CAAE,CAAC;AAEtD,MAAM,CAAC,OAAO,UAAU,uBAAuB,CAAE,IAAI,EACpD,OAAO,EAAE,eAAe,CAAE,IAAI,CAAE,EAChC,WAAW,EAAE,CAAE,UAAU,CAAC,EAAE,MAAM,KAAM,IAAI,GAAG,IAAI,GACjD;IACF,aAAa,EAAE,MAAM,GAAG,SAAS,CAAC;IAClC,aAAa,EAAE,MAAM,GAAG,SAAS,CAAC;IAClC,gBAAgB,EAAE,WAAW,EAAE,GAAG,SAAS,CAAC;CAC5C,CA4BA"}
|
|
@@ -1,12 +1,3 @@
|
|
|
1
|
-
import type { FieldLayoutProps
|
|
2
|
-
export declare function useCardHeader(layout: NormalizedCardLayout): {
|
|
3
|
-
isOpen: boolean;
|
|
4
|
-
CardHeader: ({ children, ...props }: {
|
|
5
|
-
children: React.ReactNode;
|
|
6
|
-
[key: string]: any;
|
|
7
|
-
}) => import("react").JSX.Element;
|
|
8
|
-
touched: boolean;
|
|
9
|
-
setTouched: import("react").Dispatch<import("react").SetStateAction<boolean>>;
|
|
10
|
-
};
|
|
1
|
+
import type { FieldLayoutProps } from '../../../types';
|
|
11
2
|
export default function FormCardField<Item>({ data, field, onChange, hideLabelFromVision, markWhenOptional, validity, }: FieldLayoutProps<Item>): import("react").JSX.Element | null;
|
|
12
3
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/dataform-layouts/card/index.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/dataform-layouts/card/index.tsx"],"names":[],"mappings":"AA0BA,OAAO,KAAK,EACX,gBAAgB,EAKhB,MAAM,gBAAgB,CAAC;AA0DxB,MAAM,CAAC,OAAO,UAAU,aAAa,CAAE,IAAI,EAAI,EAC9C,IAAI,EACJ,KAAK,EACL,QAAQ,EACR,mBAAmB,EACnB,gBAAgB,EAChB,QAAQ,GACR,EAAE,gBAAgB,CAAE,IAAI,CAAE,sCAiM1B"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"normalize-form.d.ts","sourceRoot":"","sources":["../../../src/components/dataform-layouts/normalize-form.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,KAAK,EACX,IAAI,EAEJ,cAAc,EAEd,gBAAgB,EAQhB,MAAM,aAAa,CAAC;AAErB,eAAO,MAAM,cAAc,EAAE,gBAGD,CAAC;
|
|
1
|
+
{"version":3,"file":"normalize-form.d.ts","sourceRoot":"","sources":["../../../src/components/dataform-layouts/normalize-form.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,KAAK,EACX,IAAI,EAEJ,cAAc,EAEd,gBAAgB,EAQhB,MAAM,aAAa,CAAC;AAErB,eAAO,MAAM,cAAc,EAAE,gBAGD,CAAC;AAuF7B,iBAAS,aAAa,CAAE,IAAI,EAAE,IAAI,GAAI,cAAc,CAsCnD;AAED,eAAe,aAAa,CAAC"}
|
|
@@ -1,18 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Internal dependencies
|
|
3
3
|
*/
|
|
4
|
-
import type {
|
|
5
|
-
declare function PanelDropdown<Item>({ data, field, onChange, validity,
|
|
6
|
-
data: Item;
|
|
7
|
-
field: NormalizedFormField;
|
|
8
|
-
onChange: (value: any) => void;
|
|
9
|
-
validity?: FieldValidity;
|
|
10
|
-
labelPosition: 'side' | 'top' | 'none';
|
|
11
|
-
summaryFields: NormalizedField<Item>[];
|
|
12
|
-
fieldDefinition: NormalizedField<Item>;
|
|
13
|
-
popoverAnchor: HTMLElement | null;
|
|
14
|
-
onClose?: () => void;
|
|
15
|
-
touched: boolean;
|
|
16
|
-
}): import("react").JSX.Element;
|
|
4
|
+
import type { FieldLayoutProps } from '../../../types';
|
|
5
|
+
declare function PanelDropdown<Item>({ data, field, onChange, validity, }: FieldLayoutProps<Item>): import("react").JSX.Element | null;
|
|
17
6
|
export default PanelDropdown;
|
|
18
7
|
//# sourceMappingURL=dropdown.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"dropdown.d.ts","sourceRoot":"","sources":["../../../../src/components/dataform-layouts/panel/dropdown.tsx"],"names":[],"mappings":"AAeA;;GAEG;AACH,OAAO,KAAK,EACX,
|
|
1
|
+
{"version":3,"file":"dropdown.d.ts","sourceRoot":"","sources":["../../../../src/components/dataform-layouts/panel/dropdown.tsx"],"names":[],"mappings":"AAeA;;GAEG;AACH,OAAO,KAAK,EACX,gBAAgB,EAGhB,MAAM,gBAAgB,CAAC;AAoDxB,iBAAS,aAAa,CAAE,IAAI,EAAI,EAC/B,IAAI,EACJ,KAAK,EACL,QAAQ,EACR,QAAQ,GACR,EAAE,gBAAgB,CAAE,IAAI,CAAE,sCAqH1B;AAED,eAAe,aAAa,CAAC"}
|
|
@@ -2,5 +2,5 @@
|
|
|
2
2
|
* Internal dependencies
|
|
3
3
|
*/
|
|
4
4
|
import type { FieldLayoutProps } from '../../../types';
|
|
5
|
-
export default function FormPanelField<Item>({ data, field, onChange, validity, }: FieldLayoutProps<Item>): import("react").JSX.Element
|
|
5
|
+
export default function FormPanelField<Item>({ data, field, onChange, validity, }: FieldLayoutProps<Item>): import("react").JSX.Element;
|
|
6
6
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/dataform-layouts/panel/index.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/dataform-layouts/panel/index.tsx"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,KAAK,EAAE,gBAAgB,EAAyB,MAAM,gBAAgB,CAAC;AAI9E,MAAM,CAAC,OAAO,UAAU,cAAc,CAAE,IAAI,EAAI,EAC/C,IAAI,EACJ,KAAK,EACL,QAAQ,EACR,QAAQ,GACR,EAAE,gBAAgB,CAAE,IAAI,CAAE,+BAsB1B"}
|
|
@@ -1,16 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Internal dependencies
|
|
3
3
|
*/
|
|
4
|
-
import type {
|
|
5
|
-
declare function PanelModal<Item>({ data, field, onChange,
|
|
6
|
-
data: Item;
|
|
7
|
-
field: NormalizedFormField;
|
|
8
|
-
onChange: (value: any) => void;
|
|
9
|
-
labelPosition: 'side' | 'top' | 'none';
|
|
10
|
-
summaryFields: NormalizedField<Item>[];
|
|
11
|
-
fieldDefinition: NormalizedField<Item>;
|
|
12
|
-
onClose?: () => void;
|
|
13
|
-
touched: boolean;
|
|
14
|
-
}): import("react").JSX.Element;
|
|
4
|
+
import type { FieldLayoutProps } from '../../../types';
|
|
5
|
+
declare function PanelModal<Item>({ data, field, onChange, validity, }: FieldLayoutProps<Item>): import("react").JSX.Element | null;
|
|
15
6
|
export default PanelModal;
|
|
16
7
|
//# sourceMappingURL=modal.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"modal.d.ts","sourceRoot":"","sources":["../../../../src/components/dataform-layouts/panel/modal.tsx"],"names":[],"mappings":"AAkBA;;GAEG;AACH,OAAO,KAAK,
|
|
1
|
+
{"version":3,"file":"modal.d.ts","sourceRoot":"","sources":["../../../../src/components/dataform-layouts/panel/modal.tsx"],"names":[],"mappings":"AAkBA;;GAEG;AACH,OAAO,KAAK,EAIX,gBAAgB,EAChB,MAAM,gBAAgB,CAAC;AAyIxB,iBAAS,UAAU,CAAE,IAAI,EAAI,EAC5B,IAAI,EACJ,KAAK,EACL,QAAQ,EACR,QAAQ,GACR,EAAE,gBAAgB,CAAE,IAAI,CAAE,sCAyC1B;AAED,eAAe,UAAU,CAAC"}
|
|
@@ -1,15 +1,16 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Internal dependencies
|
|
3
3
|
*/
|
|
4
|
-
import type { NormalizedField } from '../../../types';
|
|
5
|
-
|
|
6
|
-
summaryFields: NormalizedField<Item>[];
|
|
4
|
+
import type { FieldValidity, NormalizedField, NormalizedFormField } from '../../../types';
|
|
5
|
+
export default function SummaryButton<Item>({ data, field, fieldLabel, summaryFields, validity, touched, disabled, onClick, 'aria-expanded': ariaExpanded, }: {
|
|
7
6
|
data: Item;
|
|
8
|
-
|
|
7
|
+
field: NormalizedFormField;
|
|
9
8
|
fieldLabel?: string;
|
|
9
|
+
summaryFields: NormalizedField<Item>[];
|
|
10
|
+
validity?: FieldValidity;
|
|
11
|
+
touched: boolean;
|
|
10
12
|
disabled?: boolean;
|
|
11
13
|
onClick: () => void;
|
|
12
14
|
'aria-expanded'?: boolean;
|
|
13
15
|
}): import("react").JSX.Element;
|
|
14
|
-
export default SummaryButton;
|
|
15
16
|
//# sourceMappingURL=summary-button.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"summary-button.d.ts","sourceRoot":"","sources":["../../../../src/components/dataform-layouts/panel/summary-button.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"summary-button.d.ts","sourceRoot":"","sources":["../../../../src/components/dataform-layouts/panel/summary-button.tsx"],"names":[],"mappings":"AAcA;;GAEG;AACH,OAAO,KAAK,EACX,aAAa,EACb,eAAe,EACf,mBAAmB,EAEnB,MAAM,gBAAgB,CAAC;AAKxB,MAAM,CAAC,OAAO,UAAU,aAAa,CAAE,IAAI,EAAI,EAC9C,IAAI,EACJ,KAAK,EACL,UAAU,EACV,aAAa,EACb,QAAQ,EACR,OAAO,EACP,QAAQ,EACR,OAAO,EACP,eAAe,EAAE,YAAY,GAC7B,EAAE;IACF,IAAI,EAAE,IAAI,CAAC;IACX,KAAK,EAAE,mBAAmB,CAAC;IAC3B,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,aAAa,EAAE,eAAe,CAAE,IAAI,CAAE,EAAE,CAAC;IACzC,QAAQ,CAAC,EAAE,aAAa,CAAC;IACzB,OAAO,EAAE,OAAO,CAAC;IACjB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,OAAO,EAAE,MAAM,IAAI,CAAC;IACpB,eAAe,CAAC,EAAE,OAAO,CAAC;CAC1B,+BA0HA"}
|
package/build-types/components/dataform-layouts/panel/utils/get-first-validation-error.d.ts.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"get-first-validation-error.d.ts","sourceRoot":"","sources":["../../../../../src/components/dataform-layouts/panel/utils/get-first-validation-error.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,mBAAmB,CAAC;AAEvD,iBAAS,uBAAuB,CAC/B,QAAQ,EAAE,aAAa,GAAG,SAAS,GACjC,MAAM,GAAG,SAAS,CAwCpB;AAED,eAAe,uBAAuB,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"get-label-classname.d.ts","sourceRoot":"","sources":["../../../../../src/components/dataform-layouts/panel/utils/get-label-classname.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,mBAAmB,CAAC;AAEvD,iBAAS,iBAAiB,CACzB,aAAa,EAAE,aAAa,EAC5B,SAAS,CAAC,EAAE,OAAO,UAOnB;AAED,eAAe,iBAAiB,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"get-label-content.d.ts","sourceRoot":"","sources":["../../../../../src/components/dataform-layouts/panel/utils/get-label-content.tsx"],"names":[],"mappings":"AAMA,iBAAS,eAAe,CACvB,SAAS,CAAC,EAAE,OAAO,EACnB,YAAY,CAAC,EAAE,MAAM,EACrB,UAAU,CAAC,EAAE,MAAM,oDAYnB;AAED,eAAe,eAAe,CAAC"}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Internal dependencies
|
|
3
|
+
*/
|
|
4
|
+
import type { NormalizedFormField, NormalizedField } from '../../../../types';
|
|
5
|
+
/**
|
|
6
|
+
* Determines the field definition and summary fields for a panel layout.
|
|
7
|
+
*
|
|
8
|
+
* Summary fields are determined with the following priority:
|
|
9
|
+
* 1. Use layout.summary fields if they exist
|
|
10
|
+
* 2. Fall back to the field definition that matches the form field's id
|
|
11
|
+
* 3. If the form field id doesn't exist, pick the first child field
|
|
12
|
+
* 4. If no field definition is found, return empty summary fields
|
|
13
|
+
*
|
|
14
|
+
* @param field The form field to get definition for
|
|
15
|
+
* @return Object containing fieldDefinition, fieldLabel, and summaryFields
|
|
16
|
+
*/
|
|
17
|
+
declare function useFieldFromFormField(field: NormalizedFormField): {
|
|
18
|
+
summaryFields: NormalizedField<any>[];
|
|
19
|
+
fieldDefinition: NormalizedField<any> | undefined;
|
|
20
|
+
fieldLabel: string | undefined;
|
|
21
|
+
};
|
|
22
|
+
export default useFieldFromFormField;
|
|
23
|
+
//# sourceMappingURL=use-field-from-form-field.d.ts.map
|
package/build-types/components/dataform-layouts/panel/utils/use-field-from-form-field.d.ts.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"use-field-from-form-field.d.ts","sourceRoot":"","sources":["../../../../../src/components/dataform-layouts/panel/utils/use-field-from-form-field.ts"],"names":[],"mappings":"AAKA;;GAEG;AACH,OAAO,KAAK,EACX,mBAAmB,EACnB,eAAe,EAEf,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AAE,CAAC;IACrC,cAAc,EAAE,gBAAgB,CAAC;IACjC,OAAO,EAAE,gBAAgB,EAAE,CAAC;IAC5B,eAAe,EAAE,OAAO,CAAC;IACzB,kBAAkB,EAAE,CAAE,KAAK,EAAE,OAAO,KAAM,IAAI,CAAC;IAC/C,MAAM,EAAE;QAAE,YAAY,EAAE,MAAM,EAAE,CAAA;KAAE,CAAC;IACnC,KAAK,CAAC,EAAE,SAAS,CAAC;IAClB,kBAAkB,CAAC,EAAE,OAAO,CAAC;IAC7B,wBAAwB,EAAE,OAAO,CAAC;IAClC,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,OAAO,CAAC,EAAE,CAAE,MAAM,IAAI,CAAE,GAAG,KAAK,CAAC;CACjC,CAAC;AAEF,QAAA,MAAM,gBAAgB,oDA4BnB,CAAC;AAIJ,eAAe,gBAAgB,CAAC"}
|
|
@@ -6,7 +6,7 @@ interface OperatorSelectorProps {
|
|
|
6
6
|
onChangeView: (view: View) => void;
|
|
7
7
|
}
|
|
8
8
|
interface FilterProps extends OperatorSelectorProps {
|
|
9
|
-
addFilterRef: RefObject<HTMLButtonElement>;
|
|
9
|
+
addFilterRef: RefObject<HTMLButtonElement | null>;
|
|
10
10
|
openedFilter: string | null;
|
|
11
11
|
fields: NormalizedField<any>[];
|
|
12
12
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"filter.d.ts","sourceRoot":"","sources":["../../../src/components/dataviews-filters/filter.tsx"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAuBvC,OAAO,KAAK,EAEX,eAAe,EACf,gBAAgB,EAGhB,IAAI,EACJ,MAAM,aAAa,CAAC;AAYrB,UAAU,qBAAqB;IAC9B,MAAM,EAAE,gBAAgB,CAAC;IACzB,IAAI,EAAE,IAAI,CAAC;IACX,YAAY,EAAE,CAAE,IAAI,EAAE,IAAI,KAAM,IAAI,CAAC;CACrC;AAED,UAAU,WAAY,SAAQ,qBAAqB;IAClD,YAAY,EAAE,SAAS,CAAE,iBAAiB,CAAE,CAAC;
|
|
1
|
+
{"version":3,"file":"filter.d.ts","sourceRoot":"","sources":["../../../src/components/dataviews-filters/filter.tsx"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAuBvC,OAAO,KAAK,EAEX,eAAe,EACf,gBAAgB,EAGhB,IAAI,EACJ,MAAM,aAAa,CAAC;AAYrB,UAAU,qBAAqB;IAC9B,MAAM,EAAE,gBAAgB,CAAC;IACzB,IAAI,EAAE,IAAI,CAAC;IACX,YAAY,EAAE,CAAE,IAAI,EAAE,IAAI,KAAM,IAAI,CAAC;CACrC;AAED,UAAU,WAAY,SAAQ,qBAAqB;IAClD,YAAY,EAAE,SAAS,CAAE,iBAAiB,GAAG,IAAI,CAAE,CAAC;IACpD,YAAY,EAAE,MAAM,GAAG,IAAI,CAAC;IAC5B,MAAM,EAAE,eAAe,CAAE,GAAG,CAAE,EAAE,CAAC;CACjC;AAoHD,MAAM,CAAC,OAAO,UAAU,MAAM,CAAE,EAC/B,YAAY,EACZ,YAAY,EACZ,MAAM,EACN,GAAG,WAAW,EACd,EAAE,WAAW,+BAgMb"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"search-widget.d.ts","sourceRoot":"","sources":["../../../src/components/dataviews-filters/search-widget.tsx"],"names":[],"mappings":"AA0BA,OAAO,KAAK,EAAU,gBAAgB,EAAE,IAAI,EAAE,MAAM,EAAE,MAAM,aAAa,CAAC;AAG1E,UAAU,iBAAiB;IAC1B,IAAI,EAAE,IAAI,CAAC;IACX,MAAM,EAAE,gBAAgB,GAAG;QAC1B,QAAQ,EAAE,MAAM,EAAE,CAAC;KACnB,CAAC;IACF,YAAY,EAAE,CAAE,IAAI,EAAE,IAAI,KAAM,IAAI,CAAC;CACrC;
|
|
1
|
+
{"version":3,"file":"search-widget.d.ts","sourceRoot":"","sources":["../../../src/components/dataviews-filters/search-widget.tsx"],"names":[],"mappings":"AA0BA,OAAO,KAAK,EAAU,gBAAgB,EAAE,IAAI,EAAE,MAAM,EAAE,MAAM,aAAa,CAAC;AAG1E,UAAU,iBAAiB;IAC1B,IAAI,EAAE,IAAI,CAAC;IACX,MAAM,EAAE,gBAAgB,GAAG;QAC1B,QAAQ,EAAE,MAAM,EAAE,CAAC;KACnB,CAAC;IACF,YAAY,EAAE,CAAE,IAAI,EAAE,IAAI,KAAM,IAAI,CAAC;CACrC;AA8SD,MAAM,CAAC,OAAO,UAAU,YAAY,CAAE,KAAK,EAAE,iBAAiB,+BAwB7D"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"toggle.d.ts","sourceRoot":"","sources":["../../../src/components/dataviews-filters/toggle.tsx"],"names":[],"mappings":"AAeA,iBAAS,aAAa,
|
|
1
|
+
{"version":3,"file":"toggle.d.ts","sourceRoot":"","sources":["../../../src/components/dataviews-filters/toggle.tsx"],"names":[],"mappings":"AAeA,iBAAS,aAAa,uCA+ErB;AA8BD,eAAe,aAAa,CAAC"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export default function DataViewsFooter(): false | import("react").JSX.Element | null;
|
|
1
|
+
export default function DataViewsFooter(): false | import("react").JSX.Element | null | undefined;
|
|
2
2
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/dataviews-footer/index.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/dataviews-footer/index.tsx"],"names":[],"mappings":"AAyBA,MAAM,CAAC,OAAO,UAAU,eAAe,2DAqDtC"}
|