@wordpress/dataviews 17.0.1-next.v.202606191442.0 → 17.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 +3 -1
- package/build/components/dataform-layouts/panel/dropdown.cjs +2 -2
- package/build/components/dataform-layouts/panel/dropdown.cjs.map +2 -2
- package/build/components/dataform-layouts/panel/modal.cjs +1 -1
- package/build/components/dataform-layouts/panel/modal.cjs.map +2 -2
- package/build/components/dataform-layouts/panel/summary-button.cjs +7 -6
- package/build/components/dataform-layouts/panel/summary-button.cjs.map +2 -2
- package/build-module/components/dataform-layouts/panel/dropdown.mjs +2 -2
- package/build-module/components/dataform-layouts/panel/dropdown.mjs.map +2 -2
- package/build-module/components/dataform-layouts/panel/modal.mjs +1 -1
- package/build-module/components/dataform-layouts/panel/modal.mjs.map +2 -2
- package/build-module/components/dataform-layouts/panel/summary-button.mjs +7 -6
- package/build-module/components/dataform-layouts/panel/summary-button.mjs.map +2 -2
- package/build-style/style-rtl.css +29 -32
- package/build-style/style.css +29 -32
- package/build-types/components/dataform-layouts/panel/summary-button.d.ts +2 -2
- package/build-types/components/dataform-layouts/panel/summary-button.d.ts.map +1 -1
- package/build-wp/index.js +416 -353
- package/package.json +16 -16
- package/src/components/dataform-layouts/panel/dropdown.tsx +1 -1
- package/src/components/dataform-layouts/panel/modal.tsx +1 -1
- package/src/components/dataform-layouts/panel/style.scss +1 -4
- package/src/components/dataform-layouts/panel/summary-button.tsx +17 -7
- package/src/components/dataviews-filters/style.scss +1 -1
- package/src/components/dataviews-layouts/activity/style.scss +8 -8
- package/src/components/dataviews-layouts/grid/style.scss +7 -1
- package/src/components/dataviews-layouts/list/style.scss +15 -6
- package/src/components/dataviews-layouts/picker-activity/style.scss +8 -8
- package/src/components/dataviews-layouts/picker-grid/style.scss +8 -2
- package/src/components/dataviews-layouts/picker-table/style.scss +3 -1
- package/src/dataviews/style.scss +1 -1
package/build-wp/index.js
CHANGED
|
@@ -5,7 +5,7 @@ var __export = (target, all) => {
|
|
|
5
5
|
};
|
|
6
6
|
|
|
7
7
|
// src/dataviews/index.tsx
|
|
8
|
-
import
|
|
8
|
+
import clsx52 from "clsx";
|
|
9
9
|
|
|
10
10
|
// ../element/build-module/react.mjs
|
|
11
11
|
import {
|
|
@@ -1159,6 +1159,10 @@ function useEvent(callback) {
|
|
|
1159
1159
|
);
|
|
1160
1160
|
}
|
|
1161
1161
|
|
|
1162
|
+
// ../compose/build-module/hooks/use-isomorphic-layout-effect/index.mjs
|
|
1163
|
+
var useIsomorphicLayoutEffect = typeof window !== "undefined" ? useLayoutEffect : useEffect;
|
|
1164
|
+
var use_isomorphic_layout_effect_default = useIsomorphicLayoutEffect;
|
|
1165
|
+
|
|
1162
1166
|
// ../keycodes/build-module/index.mjs
|
|
1163
1167
|
import { __ } from "@wordpress/i18n";
|
|
1164
1168
|
|
|
@@ -1754,7 +1758,6 @@ var Icon = forwardRef(function Icon2({ icon, size: size3 = 24, ...restProps }, r
|
|
|
1754
1758
|
SVG,
|
|
1755
1759
|
{
|
|
1756
1760
|
ref,
|
|
1757
|
-
fill: "currentColor",
|
|
1758
1761
|
...icon.props,
|
|
1759
1762
|
...restProps,
|
|
1760
1763
|
width: size3,
|
|
@@ -2259,139 +2262,139 @@ var icon_default = forwardRef(
|
|
|
2259
2262
|
|
|
2260
2263
|
// ../icons/build-module/library/arrow-down.mjs
|
|
2261
2264
|
import { jsx as jsx10 } from "react/jsx-runtime";
|
|
2262
|
-
var arrow_down_default = /* @__PURE__ */ jsx10(SVG, { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 24 24", children: /* @__PURE__ */ jsx10(Path, { d: "m16.5 13.5-3.7 3.7V4h-1.5v13.2l-3.8-3.7-1 1 5.5 5.6 5.5-5.6z" }) });
|
|
2265
|
+
var arrow_down_default = /* @__PURE__ */ jsx10(SVG, { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 24 24", fill: "currentColor", children: /* @__PURE__ */ jsx10(Path, { d: "m16.5 13.5-3.7 3.7V4h-1.5v13.2l-3.8-3.7-1 1 5.5 5.6 5.5-5.6z" }) });
|
|
2263
2266
|
|
|
2264
2267
|
// ../icons/build-module/library/arrow-left.mjs
|
|
2265
2268
|
import { jsx as jsx11 } from "react/jsx-runtime";
|
|
2266
|
-
var arrow_left_default = /* @__PURE__ */ jsx11(SVG, { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 24 24", children: /* @__PURE__ */ jsx11(Path, { d: "M20 11.2H6.8l3.7-3.7-1-1L3.9 12l5.6 5.5 1-1-3.7-3.7H20z" }) });
|
|
2269
|
+
var arrow_left_default = /* @__PURE__ */ jsx11(SVG, { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 24 24", fill: "currentColor", children: /* @__PURE__ */ jsx11(Path, { d: "M20 11.2H6.8l3.7-3.7-1-1L3.9 12l5.6 5.5 1-1-3.7-3.7H20z" }) });
|
|
2267
2270
|
|
|
2268
2271
|
// ../icons/build-module/library/arrow-right.mjs
|
|
2269
2272
|
import { jsx as jsx12 } from "react/jsx-runtime";
|
|
2270
|
-
var arrow_right_default = /* @__PURE__ */ jsx12(SVG, { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 24 24", children: /* @__PURE__ */ jsx12(Path, { d: "m14.5 6.5-1 1 3.7 3.7H4v1.6h13.2l-3.7 3.7 1 1 5.6-5.5z" }) });
|
|
2273
|
+
var arrow_right_default = /* @__PURE__ */ jsx12(SVG, { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 24 24", fill: "currentColor", children: /* @__PURE__ */ jsx12(Path, { d: "m14.5 6.5-1 1 3.7 3.7H4v1.6h13.2l-3.7 3.7 1 1 5.6-5.5z" }) });
|
|
2271
2274
|
|
|
2272
2275
|
// ../icons/build-module/library/arrow-up.mjs
|
|
2273
2276
|
import { jsx as jsx13 } from "react/jsx-runtime";
|
|
2274
|
-
var arrow_up_default = /* @__PURE__ */ jsx13(SVG, { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 24 24", children: /* @__PURE__ */ jsx13(Path, { d: "M12 3.9 6.5 9.5l1 1 3.8-3.7V20h1.5V6.8l3.7 3.7 1-1z" }) });
|
|
2277
|
+
var arrow_up_default = /* @__PURE__ */ jsx13(SVG, { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 24 24", fill: "currentColor", children: /* @__PURE__ */ jsx13(Path, { d: "M12 3.9 6.5 9.5l1 1 3.8-3.7V20h1.5V6.8l3.7 3.7 1-1z" }) });
|
|
2275
2278
|
|
|
2276
2279
|
// ../icons/build-module/library/block-table.mjs
|
|
2277
2280
|
import { jsx as jsx14 } from "react/jsx-runtime";
|
|
2278
|
-
var block_table_default = /* @__PURE__ */ jsx14(SVG, { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 24 24", children: /* @__PURE__ */ jsx14(Path, { d: "M19 3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zM5 4.5h14c.3 0 .5.2.5.5v3.5h-15V5c0-.3.2-.5.5-.5zm8 5.5h6.5v3.5H13V10zm-1.5 3.5h-7V10h7v3.5zm-7 5.5v-4h7v4.5H5c-.3 0-.5-.2-.5-.5zm14.5.5h-6V15h6.5v4c0 .3-.2.5-.5.5z" }) });
|
|
2281
|
+
var block_table_default = /* @__PURE__ */ jsx14(SVG, { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 24 24", fill: "currentColor", children: /* @__PURE__ */ jsx14(Path, { d: "M19 3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zM5 4.5h14c.3 0 .5.2.5.5v3.5h-15V5c0-.3.2-.5.5-.5zm8 5.5h6.5v3.5H13V10zm-1.5 3.5h-7V10h7v3.5zm-7 5.5v-4h7v4.5H5c-.3 0-.5-.2-.5-.5zm14.5.5h-6V15h6.5v4c0 .3-.2.5-.5.5z" }) });
|
|
2279
2282
|
|
|
2280
2283
|
// ../icons/build-module/library/category.mjs
|
|
2281
2284
|
import { jsx as jsx15 } from "react/jsx-runtime";
|
|
2282
|
-
var category_default = /* @__PURE__ */ jsx15(SVG, { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 24 24", children: /* @__PURE__ */ jsx15(Path, { fillRule: "evenodd", clipRule: "evenodd", d: "M6 5.5h3a.5.5 0 01.5.5v3a.5.5 0 01-.5.5H6a.5.5 0 01-.5-.5V6a.5.5 0 01.5-.5zM4 6a2 2 0 012-2h3a2 2 0 012 2v3a2 2 0 01-2 2H6a2 2 0 01-2-2V6zm11-.5h3a.5.5 0 01.5.5v3a.5.5 0 01-.5.5h-3a.5.5 0 01-.5-.5V6a.5.5 0 01.5-.5zM13 6a2 2 0 012-2h3a2 2 0 012 2v3a2 2 0 01-2 2h-3a2 2 0 01-2-2V6zm5 8.5h-3a.5.5 0 00-.5.5v3a.5.5 0 00.5.5h3a.5.5 0 00.5-.5v-3a.5.5 0 00-.5-.5zM15 13a2 2 0 00-2 2v3a2 2 0 002 2h3a2 2 0 002-2v-3a2 2 0 00-2-2h-3zm-9 1.5h3a.5.5 0 01.5.5v3a.5.5 0 01-.5.5H6a.5.5 0 01-.5-.5v-3a.5.5 0 01.5-.5zM4 15a2 2 0 012-2h3a2 2 0 012 2v3a2 2 0 01-2 2H6a2 2 0 01-2-2v-3z" }) });
|
|
2285
|
+
var category_default = /* @__PURE__ */ jsx15(SVG, { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 24 24", fill: "currentColor", children: /* @__PURE__ */ jsx15(Path, { fillRule: "evenodd", clipRule: "evenodd", d: "M6 5.5h3a.5.5 0 01.5.5v3a.5.5 0 01-.5.5H6a.5.5 0 01-.5-.5V6a.5.5 0 01.5-.5zM4 6a2 2 0 012-2h3a2 2 0 012 2v3a2 2 0 01-2 2H6a2 2 0 01-2-2V6zm11-.5h3a.5.5 0 01.5.5v3a.5.5 0 01-.5.5h-3a.5.5 0 01-.5-.5V6a.5.5 0 01.5-.5zM13 6a2 2 0 012-2h3a2 2 0 012 2v3a2 2 0 01-2 2h-3a2 2 0 01-2-2V6zm5 8.5h-3a.5.5 0 00-.5.5v3a.5.5 0 00.5.5h3a.5.5 0 00.5-.5v-3a.5.5 0 00-.5-.5zM15 13a2 2 0 00-2 2v3a2 2 0 002 2h3a2 2 0 002-2v-3a2 2 0 00-2-2h-3zm-9 1.5h3a.5.5 0 01.5.5v3a.5.5 0 01-.5.5H6a.5.5 0 01-.5-.5v-3a.5.5 0 01.5-.5zM4 15a2 2 0 012-2h3a2 2 0 012 2v3a2 2 0 01-2 2H6a2 2 0 01-2-2v-3z" }) });
|
|
2283
2286
|
|
|
2284
2287
|
// ../icons/build-module/library/caution.mjs
|
|
2285
2288
|
import { jsx as jsx16 } from "react/jsx-runtime";
|
|
2286
|
-
var caution_default = /* @__PURE__ */ jsx16(SVG, { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 24 24", children: /* @__PURE__ */ jsx16(Path, { fillRule: "evenodd", clipRule: "evenodd", d: "M5.5 12a6.5 6.5 0 1 0 13 0 6.5 6.5 0 0 0-13 0ZM12 4a8 8 0 1 0 0 16 8 8 0 0 0 0-16Zm-.75 12v-1.5h1.5V16h-1.5Zm0-8v5h1.5V8h-1.5Z" }) });
|
|
2289
|
+
var caution_default = /* @__PURE__ */ jsx16(SVG, { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 24 24", fill: "currentColor", children: /* @__PURE__ */ jsx16(Path, { fillRule: "evenodd", clipRule: "evenodd", d: "M5.5 12a6.5 6.5 0 1 0 13 0 6.5 6.5 0 0 0-13 0ZM12 4a8 8 0 1 0 0 16 8 8 0 0 0 0-16Zm-.75 12v-1.5h1.5V16h-1.5Zm0-8v5h1.5V8h-1.5Z" }) });
|
|
2287
2290
|
|
|
2288
2291
|
// ../icons/build-module/library/check.mjs
|
|
2289
2292
|
import { jsx as jsx17 } from "react/jsx-runtime";
|
|
2290
|
-
var check_default = /* @__PURE__ */ jsx17(SVG, { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 24 24", children: /* @__PURE__ */ jsx17(Path, { d: "M16.5 7.5 10 13.9l-2.5-2.4-1 1 3.5 3.6 7.5-7.6z" }) });
|
|
2293
|
+
var check_default = /* @__PURE__ */ jsx17(SVG, { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 24 24", fill: "currentColor", children: /* @__PURE__ */ jsx17(Path, { d: "M16.5 7.5 10 13.9l-2.5-2.4-1 1 3.5 3.6 7.5-7.6z" }) });
|
|
2291
2294
|
|
|
2292
2295
|
// ../icons/build-module/library/chevron-down.mjs
|
|
2293
2296
|
import { jsx as jsx18 } from "react/jsx-runtime";
|
|
2294
|
-
var chevron_down_default = /* @__PURE__ */ jsx18(SVG, { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 24 24", children: /* @__PURE__ */ jsx18(Path, { d: "M17.5 11.6L12 16l-5.5-4.4.9-1.2L12 14l4.5-3.6 1 1.2z" }) });
|
|
2297
|
+
var chevron_down_default = /* @__PURE__ */ jsx18(SVG, { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 24 24", fill: "currentColor", children: /* @__PURE__ */ jsx18(Path, { d: "M17.5 11.6L12 16l-5.5-4.4.9-1.2L12 14l4.5-3.6 1 1.2z" }) });
|
|
2295
2298
|
|
|
2296
2299
|
// ../icons/build-module/library/chevron-right-small.mjs
|
|
2297
2300
|
import { jsx as jsx19 } from "react/jsx-runtime";
|
|
2298
|
-
var chevron_right_small_default = /* @__PURE__ */ jsx19(SVG, { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 24 24", children: /* @__PURE__ */ jsx19(Path, { d: "M10.8622 8.04053L14.2805 12.0286L10.8622 16.0167L9.72327 15.0405L12.3049 12.0286L9.72327 9.01672L10.8622 8.04053Z" }) });
|
|
2301
|
+
var chevron_right_small_default = /* @__PURE__ */ jsx19(SVG, { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 24 24", fill: "currentColor", children: /* @__PURE__ */ jsx19(Path, { d: "M10.8622 8.04053L14.2805 12.0286L10.8622 16.0167L9.72327 15.0405L12.3049 12.0286L9.72327 9.01672L10.8622 8.04053Z" }) });
|
|
2299
2302
|
|
|
2300
2303
|
// ../icons/build-module/library/chevron-right.mjs
|
|
2301
2304
|
import { jsx as jsx20 } from "react/jsx-runtime";
|
|
2302
|
-
var chevron_right_default = /* @__PURE__ */ jsx20(SVG, { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 24 24", children: /* @__PURE__ */ jsx20(Path, { d: "M10.6 6L9.4 7l4.6 5-4.6 5 1.2 1 5.4-6z" }) });
|
|
2305
|
+
var chevron_right_default = /* @__PURE__ */ jsx20(SVG, { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 24 24", fill: "currentColor", children: /* @__PURE__ */ jsx20(Path, { d: "M10.6 6L9.4 7l4.6 5-4.6 5 1.2 1 5.4-6z" }) });
|
|
2303
2306
|
|
|
2304
2307
|
// ../icons/build-module/library/close-small.mjs
|
|
2305
2308
|
import { jsx as jsx21 } from "react/jsx-runtime";
|
|
2306
|
-
var close_small_default = /* @__PURE__ */ jsx21(SVG, { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 24 24", children: /* @__PURE__ */ jsx21(Path, { d: "M12 13.06l3.712 3.713 1.061-1.06L13.061 12l3.712-3.712-1.06-1.06L12 10.938 8.288 7.227l-1.061 1.06L10.939 12l-3.712 3.712 1.06 1.061L12 13.061z" }) });
|
|
2309
|
+
var close_small_default = /* @__PURE__ */ jsx21(SVG, { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 24 24", fill: "currentColor", children: /* @__PURE__ */ jsx21(Path, { d: "M12 13.06l3.712 3.713 1.061-1.06L13.061 12l3.712-3.712-1.06-1.06L12 10.938 8.288 7.227l-1.061 1.06L10.939 12l-3.712 3.712 1.06 1.061L12 13.061z" }) });
|
|
2307
2310
|
|
|
2308
2311
|
// ../icons/build-module/library/close.mjs
|
|
2309
2312
|
import { jsx as jsx22 } from "react/jsx-runtime";
|
|
2310
|
-
var close_default = /* @__PURE__ */ jsx22(SVG, { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 24 24", children: /* @__PURE__ */ jsx22(Path, { d: "m13.06 12 6.47-6.47-1.06-1.06L12 10.94 5.53 4.47 4.47 5.53 10.94 12l-6.47 6.47 1.06 1.06L12 13.06l6.47 6.47 1.06-1.06L13.06 12Z" }) });
|
|
2313
|
+
var close_default = /* @__PURE__ */ jsx22(SVG, { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 24 24", fill: "currentColor", children: /* @__PURE__ */ jsx22(Path, { d: "m13.06 12 6.47-6.47-1.06-1.06L12 10.94 5.53 4.47 4.47 5.53 10.94 12l-6.47 6.47 1.06 1.06L12 13.06l6.47 6.47 1.06-1.06L13.06 12Z" }) });
|
|
2311
2314
|
|
|
2312
2315
|
// ../icons/build-module/library/cog.mjs
|
|
2313
2316
|
import { jsx as jsx23 } from "react/jsx-runtime";
|
|
2314
|
-
var cog_default = /* @__PURE__ */ jsx23(SVG, { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 24 24", children: /* @__PURE__ */ jsx23(Path, { fillRule: "evenodd", clipRule: "evenodd", d: "M10.289 4.836A1 1 0 0111.275 4h1.306a1 1 0 01.987.836l.244 1.466c.787.26 1.503.679 2.108 1.218l1.393-.522a1 1 0 011.216.437l.653 1.13a1 1 0 01-.23 1.273l-1.148.944a6.025 6.025 0 010 2.435l1.149.946a1 1 0 01.23 1.272l-.653 1.13a1 1 0 01-1.216.437l-1.394-.522c-.605.54-1.32.958-2.108 1.218l-.244 1.466a1 1 0 01-.987.836h-1.306a1 1 0 01-.986-.836l-.244-1.466a5.995 5.995 0 01-2.108-1.218l-1.394.522a1 1 0 01-1.217-.436l-.653-1.131a1 1 0 01.23-1.272l1.149-.946a6.026 6.026 0 010-2.435l-1.148-.944a1 1 0 01-.23-1.272l.653-1.131a1 1 0 011.217-.437l1.393.522a5.994 5.994 0 012.108-1.218l.244-1.466zM14.929 12a3 3 0 11-6 0 3 3 0 016 0z" }) });
|
|
2317
|
+
var cog_default = /* @__PURE__ */ jsx23(SVG, { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 24 24", fill: "currentColor", children: /* @__PURE__ */ jsx23(Path, { fillRule: "evenodd", clipRule: "evenodd", d: "M10.289 4.836A1 1 0 0111.275 4h1.306a1 1 0 01.987.836l.244 1.466c.787.26 1.503.679 2.108 1.218l1.393-.522a1 1 0 011.216.437l.653 1.13a1 1 0 01-.23 1.273l-1.148.944a6.025 6.025 0 010 2.435l1.149.946a1 1 0 01.23 1.272l-.653 1.13a1 1 0 01-1.216.437l-1.394-.522c-.605.54-1.32.958-2.108 1.218l-.244 1.466a1 1 0 01-.987.836h-1.306a1 1 0 01-.986-.836l-.244-1.466a5.995 5.995 0 01-2.108-1.218l-1.394.522a1 1 0 01-1.217-.436l-.653-1.131a1 1 0 01.23-1.272l1.149-.946a6.026 6.026 0 010-2.435l-1.148-.944a1 1 0 01-.23-1.272l.653-1.131a1 1 0 011.217-.437l1.393.522a5.994 5.994 0 012.108-1.218l.244-1.466zM14.929 12a3 3 0 11-6 0 3 3 0 016 0z" }) });
|
|
2315
2318
|
|
|
2316
2319
|
// ../icons/build-module/library/copy.mjs
|
|
2317
2320
|
import { jsx as jsx24 } from "react/jsx-runtime";
|
|
2318
|
-
var copy_default = /* @__PURE__ */ jsx24(SVG, { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 24 24", children: /* @__PURE__ */ jsx24(Path, { fillRule: "evenodd", clipRule: "evenodd", d: "M5 4.5h11a.5.5 0 0 1 .5.5v11a.5.5 0 0 1-.5.5H5a.5.5 0 0 1-.5-.5V5a.5.5 0 0 1 .5-.5ZM3 5a2 2 0 0 1 2-2h11a2 2 0 0 1 2 2v11a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V5Zm17 3v10.75c0 .69-.56 1.25-1.25 1.25H6v1.5h12.75a2.75 2.75 0 0 0 2.75-2.75V8H20Z" }) });
|
|
2321
|
+
var copy_default = /* @__PURE__ */ jsx24(SVG, { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 24 24", fill: "currentColor", children: /* @__PURE__ */ jsx24(Path, { fillRule: "evenodd", clipRule: "evenodd", d: "M5 4.5h11a.5.5 0 0 1 .5.5v11a.5.5 0 0 1-.5.5H5a.5.5 0 0 1-.5-.5V5a.5.5 0 0 1 .5-.5ZM3 5a2 2 0 0 1 2-2h11a2 2 0 0 1 2 2v11a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V5Zm17 3v10.75c0 .69-.56 1.25-1.25 1.25H6v1.5h12.75a2.75 2.75 0 0 0 2.75-2.75V8H20Z" }) });
|
|
2319
2322
|
|
|
2320
2323
|
// ../icons/build-module/library/envelope.mjs
|
|
2321
2324
|
import { jsx as jsx25 } from "react/jsx-runtime";
|
|
2322
|
-
var envelope_default = /* @__PURE__ */ jsx25(SVG, { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 24 24", children: /* @__PURE__ */ jsx25(Path, { fillRule: "evenodd", clipRule: "evenodd", d: "M3 7c0-1.1.9-2 2-2h14a2 2 0 0 1 2 2v10a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V7Zm2-.5h14c.3 0 .5.2.5.5v1L12 13.5 4.5 7.9V7c0-.3.2-.5.5-.5Zm-.5 3.3V17c0 .3.2.5.5.5h14c.3 0 .5-.2.5-.5V9.8L12 15.4 4.5 9.8Z" }) });
|
|
2325
|
+
var envelope_default = /* @__PURE__ */ jsx25(SVG, { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 24 24", fill: "currentColor", children: /* @__PURE__ */ jsx25(Path, { fillRule: "evenodd", clipRule: "evenodd", d: "M3 7c0-1.1.9-2 2-2h14a2 2 0 0 1 2 2v10a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V7Zm2-.5h14c.3 0 .5.2.5.5v1L12 13.5 4.5 7.9V7c0-.3.2-.5.5-.5Zm-.5 3.3V17c0 .3.2.5.5.5h14c.3 0 .5-.2.5-.5V9.8L12 15.4 4.5 9.8Z" }) });
|
|
2323
2326
|
|
|
2324
2327
|
// ../icons/build-module/library/error.mjs
|
|
2325
2328
|
import { jsx as jsx26 } from "react/jsx-runtime";
|
|
2326
|
-
var error_default = /* @__PURE__ */ jsx26(SVG, { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 24 24", children: /* @__PURE__ */ jsx26(Path, { fillRule: "evenodd", clipRule: "evenodd", d: "M12.218 5.377a.25.25 0 0 0-.436 0l-7.29 12.96a.25.25 0 0 0 .218.373h14.58a.25.25 0 0 0 .218-.372l-7.29-12.96Zm-1.743-.735c.669-1.19 2.381-1.19 3.05 0l7.29 12.96a1.75 1.75 0 0 1-1.525 2.608H4.71a1.75 1.75 0 0 1-1.525-2.608l7.29-12.96ZM12.75 17.46h-1.5v-1.5h1.5v1.5Zm-1.5-3h1.5v-5h-1.5v5Z" }) });
|
|
2329
|
+
var error_default = /* @__PURE__ */ jsx26(SVG, { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 24 24", fill: "currentColor", children: /* @__PURE__ */ jsx26(Path, { fillRule: "evenodd", clipRule: "evenodd", d: "M12.218 5.377a.25.25 0 0 0-.436 0l-7.29 12.96a.25.25 0 0 0 .218.373h14.58a.25.25 0 0 0 .218-.372l-7.29-12.96Zm-1.743-.735c.669-1.19 2.381-1.19 3.05 0l7.29 12.96a1.75 1.75 0 0 1-1.525 2.608H4.71a1.75 1.75 0 0 1-1.525-2.608l7.29-12.96ZM12.75 17.46h-1.5v-1.5h1.5v1.5Zm-1.5-3h1.5v-5h-1.5v5Z" }) });
|
|
2327
2330
|
|
|
2328
2331
|
// ../icons/build-module/library/format-list-bullets-rtl.mjs
|
|
2329
2332
|
import { jsx as jsx27 } from "react/jsx-runtime";
|
|
2330
|
-
var format_list_bullets_rtl_default = /* @__PURE__ */ jsx27(SVG, { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 24 24", children: /* @__PURE__ */ jsx27(Path, { d: "M4 8.8h8.9V7.2H4v1.6zm0 7h8.9v-1.5H4v1.5zM18 13c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm0-3c1.1 0 2-.9 2-2s-.9-2-2-2-2 .9-2 2 .9 2 2 2z" }) });
|
|
2333
|
+
var format_list_bullets_rtl_default = /* @__PURE__ */ jsx27(SVG, { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 24 24", fill: "currentColor", children: /* @__PURE__ */ jsx27(Path, { d: "M4 8.8h8.9V7.2H4v1.6zm0 7h8.9v-1.5H4v1.5zM18 13c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm0-3c1.1 0 2-.9 2-2s-.9-2-2-2-2 .9-2 2 .9 2 2 2z" }) });
|
|
2331
2334
|
|
|
2332
2335
|
// ../icons/build-module/library/format-list-bullets.mjs
|
|
2333
2336
|
import { jsx as jsx28 } from "react/jsx-runtime";
|
|
2334
|
-
var format_list_bullets_default = /* @__PURE__ */ jsx28(SVG, { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 24 24", children: /* @__PURE__ */ jsx28(Path, { d: "M11.1 15.8H20v-1.5h-8.9v1.5zm0-8.6v1.5H20V7.2h-8.9zM6 13c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm0-7c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2z" }) });
|
|
2337
|
+
var format_list_bullets_default = /* @__PURE__ */ jsx28(SVG, { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 24 24", fill: "currentColor", children: /* @__PURE__ */ jsx28(Path, { d: "M11.1 15.8H20v-1.5h-8.9v1.5zm0-8.6v1.5H20V7.2h-8.9zM6 13c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm0-7c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2z" }) });
|
|
2335
2338
|
|
|
2336
2339
|
// ../icons/build-module/library/funnel.mjs
|
|
2337
2340
|
import { jsx as jsx29 } from "react/jsx-runtime";
|
|
2338
|
-
var funnel_default = /* @__PURE__ */ jsx29(SVG, { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 24 24", children: /* @__PURE__ */ jsx29(Path, { d: "M10 17.5H14V16H10V17.5ZM6 6V7.5H18V6H6ZM8 12.5H16V11H8V12.5Z" }) });
|
|
2341
|
+
var funnel_default = /* @__PURE__ */ jsx29(SVG, { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 24 24", fill: "currentColor", children: /* @__PURE__ */ jsx29(Path, { d: "M10 17.5H14V16H10V17.5ZM6 6V7.5H18V6H6ZM8 12.5H16V11H8V12.5Z" }) });
|
|
2339
2342
|
|
|
2340
2343
|
// ../icons/build-module/library/info.mjs
|
|
2341
2344
|
import { jsx as jsx30 } from "react/jsx-runtime";
|
|
2342
|
-
var info_default = /* @__PURE__ */ jsx30(SVG, { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 24 24", children: /* @__PURE__ */ jsx30(Path, { fillRule: "evenodd", clipRule: "evenodd", d: "M5.5 12a6.5 6.5 0 1 0 13 0 6.5 6.5 0 0 0-13 0ZM12 4a8 8 0 1 0 0 16 8 8 0 0 0 0-16Zm.75 4v1.5h-1.5V8h1.5Zm0 8v-5h-1.5v5h1.5Z" }) });
|
|
2345
|
+
var info_default = /* @__PURE__ */ jsx30(SVG, { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 24 24", fill: "currentColor", children: /* @__PURE__ */ jsx30(Path, { fillRule: "evenodd", clipRule: "evenodd", d: "M5.5 12a6.5 6.5 0 1 0 13 0 6.5 6.5 0 0 0-13 0ZM12 4a8 8 0 1 0 0 16 8 8 0 0 0 0-16Zm.75 4v1.5h-1.5V8h1.5Zm0 8v-5h-1.5v5h1.5Z" }) });
|
|
2343
2346
|
|
|
2344
2347
|
// ../icons/build-module/library/link.mjs
|
|
2345
2348
|
import { jsx as jsx31 } from "react/jsx-runtime";
|
|
2346
|
-
var link_default = /* @__PURE__ */ jsx31(SVG, { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 24 24", children: /* @__PURE__ */ jsx31(Path, { d: "M10 17.389H8.444A5.194 5.194 0 1 1 8.444 7H10v1.5H8.444a3.694 3.694 0 0 0 0 7.389H10v1.5ZM14 7h1.556a5.194 5.194 0 0 1 0 10.39H14v-1.5h1.556a3.694 3.694 0 0 0 0-7.39H14V7Zm-4.5 6h5v-1.5h-5V13Z" }) });
|
|
2349
|
+
var link_default = /* @__PURE__ */ jsx31(SVG, { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 24 24", fill: "currentColor", children: /* @__PURE__ */ jsx31(Path, { d: "M10 17.389H8.444A5.194 5.194 0 1 1 8.444 7H10v1.5H8.444a3.694 3.694 0 0 0 0 7.389H10v1.5ZM14 7h1.556a5.194 5.194 0 0 1 0 10.39H14v-1.5h1.556a3.694 3.694 0 0 0 0-7.39H14V7Zm-4.5 6h5v-1.5h-5V13Z" }) });
|
|
2347
2350
|
|
|
2348
2351
|
// ../icons/build-module/library/mobile.mjs
|
|
2349
2352
|
import { jsx as jsx32 } from "react/jsx-runtime";
|
|
2350
|
-
var mobile_default = /* @__PURE__ */ jsx32(SVG, { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 24 24", children: /* @__PURE__ */ jsx32(Path, { d: "M15 4H9c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h6c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2zm.5 14c0 .3-.2.5-.5.5H9c-.3 0-.5-.2-.5-.5V6c0-.3.2-.5.5-.5h6c.3 0 .5.2.5.5v12zm-4.5-.5h2V16h-2v1.5z" }) });
|
|
2353
|
+
var mobile_default = /* @__PURE__ */ jsx32(SVG, { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 24 24", fill: "currentColor", children: /* @__PURE__ */ jsx32(Path, { d: "M15 4H9c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h6c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2zm.5 14c0 .3-.2.5-.5.5H9c-.3 0-.5-.2-.5-.5V6c0-.3.2-.5.5-.5h6c.3 0 .5.2.5.5v12zm-4.5-.5h2V16h-2v1.5z" }) });
|
|
2351
2354
|
|
|
2352
2355
|
// ../icons/build-module/library/more-vertical.mjs
|
|
2353
2356
|
import { jsx as jsx33 } from "react/jsx-runtime";
|
|
2354
|
-
var more_vertical_default = /* @__PURE__ */ jsx33(SVG, { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 24 24", children: /* @__PURE__ */ jsx33(Path, { d: "M13 19h-2v-2h2v2zm0-6h-2v-2h2v2zm0-6h-2V5h2v2z" }) });
|
|
2357
|
+
var more_vertical_default = /* @__PURE__ */ jsx33(SVG, { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 24 24", fill: "currentColor", children: /* @__PURE__ */ jsx33(Path, { d: "M13 19h-2v-2h2v2zm0-6h-2v-2h2v2zm0-6h-2V5h2v2z" }) });
|
|
2355
2358
|
|
|
2356
2359
|
// ../icons/build-module/library/next.mjs
|
|
2357
2360
|
import { jsx as jsx34 } from "react/jsx-runtime";
|
|
2358
|
-
var next_default = /* @__PURE__ */ jsx34(SVG, { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 24 24", children: /* @__PURE__ */ jsx34(Path, { d: "M6.6 6L5.4 7l4.5 5-4.5 5 1.1 1 5.5-6-5.4-6zm6 0l-1.1 1 4.5 5-4.5 5 1.1 1 5.5-6-5.5-6z" }) });
|
|
2361
|
+
var next_default = /* @__PURE__ */ jsx34(SVG, { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 24 24", fill: "currentColor", children: /* @__PURE__ */ jsx34(Path, { d: "M6.6 6L5.4 7l4.5 5-4.5 5 1.1 1 5.5-6-5.4-6zm6 0l-1.1 1 4.5 5-4.5 5 1.1 1 5.5-6-5.5-6z" }) });
|
|
2359
2362
|
|
|
2360
2363
|
// ../icons/build-module/library/pencil.mjs
|
|
2361
2364
|
import { jsx as jsx35 } from "react/jsx-runtime";
|
|
2362
|
-
var pencil_default = /* @__PURE__ */ jsx35(SVG, { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 24 24", children: /* @__PURE__ */ jsx35(Path, { d: "m19 7-3-3-8.5 8.5-1 4 4-1L19 7Zm-7 11.5H5V20h7v-1.5Z" }) });
|
|
2365
|
+
var pencil_default = /* @__PURE__ */ jsx35(SVG, { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 24 24", fill: "currentColor", children: /* @__PURE__ */ jsx35(Path, { d: "m19 7-3-3-8.5 8.5-1 4 4-1L19 7Zm-7 11.5H5V20h7v-1.5Z" }) });
|
|
2363
2366
|
|
|
2364
2367
|
// ../icons/build-module/library/plus.mjs
|
|
2365
2368
|
import { jsx as jsx36 } from "react/jsx-runtime";
|
|
2366
|
-
var plus_default = /* @__PURE__ */ jsx36(SVG, { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 24 24", children: /* @__PURE__ */ jsx36(Path, { d: "M11 12.5V17.5H12.5V12.5H17.5V11H12.5V6H11V11H6V12.5H11Z" }) });
|
|
2369
|
+
var plus_default = /* @__PURE__ */ jsx36(SVG, { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 24 24", fill: "currentColor", children: /* @__PURE__ */ jsx36(Path, { d: "M11 12.5V17.5H12.5V12.5H17.5V11H12.5V6H11V11H6V12.5H11Z" }) });
|
|
2367
2370
|
|
|
2368
2371
|
// ../icons/build-module/library/previous.mjs
|
|
2369
2372
|
import { jsx as jsx37 } from "react/jsx-runtime";
|
|
2370
|
-
var previous_default = /* @__PURE__ */ jsx37(SVG, { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 24 24", children: /* @__PURE__ */ jsx37(Path, { d: "M11.6 7l-1.1-1L5 12l5.5 6 1.1-1L7 12l4.6-5zm6 0l-1.1-1-5.5 6 5.5 6 1.1-1-4.6-5 4.6-5z" }) });
|
|
2373
|
+
var previous_default = /* @__PURE__ */ jsx37(SVG, { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 24 24", fill: "currentColor", children: /* @__PURE__ */ jsx37(Path, { d: "M11.6 7l-1.1-1L5 12l5.5 6 1.1-1L7 12l4.6-5zm6 0l-1.1-1-5.5 6 5.5 6 1.1-1-4.6-5 4.6-5z" }) });
|
|
2371
2374
|
|
|
2372
2375
|
// ../icons/build-module/library/published.mjs
|
|
2373
2376
|
import { jsx as jsx38 } from "react/jsx-runtime";
|
|
2374
|
-
var published_default = /* @__PURE__ */ jsx38(SVG, { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 24 24", children: /* @__PURE__ */ jsx38(Path, { fillRule: "evenodd", clipRule: "evenodd", d: "M12 18.5a6.5 6.5 0 1 1 0-13 6.5 6.5 0 0 1 0 13ZM4 12a8 8 0 1 1 16 0 8 8 0 0 1-16 0Zm11.53-1.47-1.06-1.06L11 12.94l-1.47-1.47-1.06 1.06L11 15.06l4.53-4.53Z" }) });
|
|
2377
|
+
var published_default = /* @__PURE__ */ jsx38(SVG, { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 24 24", fill: "currentColor", children: /* @__PURE__ */ jsx38(Path, { fillRule: "evenodd", clipRule: "evenodd", d: "M12 18.5a6.5 6.5 0 1 1 0-13 6.5 6.5 0 0 1 0 13ZM4 12a8 8 0 1 1 16 0 8 8 0 0 1-16 0Zm11.53-1.47-1.06-1.06L11 12.94l-1.47-1.47-1.06 1.06L11 15.06l4.53-4.53Z" }) });
|
|
2375
2378
|
|
|
2376
2379
|
// ../icons/build-module/library/reset.mjs
|
|
2377
2380
|
import { jsx as jsx39 } from "react/jsx-runtime";
|
|
2378
|
-
var reset_default = /* @__PURE__ */ jsx39(SVG, { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 24 24", children: /* @__PURE__ */ jsx39(Path, { d: "M7 11.5h10V13H7z" }) });
|
|
2381
|
+
var reset_default = /* @__PURE__ */ jsx39(SVG, { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 24 24", fill: "currentColor", children: /* @__PURE__ */ jsx39(Path, { d: "M7 11.5h10V13H7z" }) });
|
|
2379
2382
|
|
|
2380
2383
|
// ../icons/build-module/library/scheduled.mjs
|
|
2381
2384
|
import { jsx as jsx40 } from "react/jsx-runtime";
|
|
2382
|
-
var scheduled_default = /* @__PURE__ */ jsx40(SVG, { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 24 24", children: /* @__PURE__ */ jsx40(Path, { fillRule: "evenodd", clipRule: "evenodd", d: "M12 18.5a6.5 6.5 0 1 1 0-13 6.5 6.5 0 0 1 0 13ZM4 12a8 8 0 1 1 16 0 8 8 0 0 1-16 0Zm9 1V8h-1.5v3.5h-2V13H13Z" }) });
|
|
2385
|
+
var scheduled_default = /* @__PURE__ */ jsx40(SVG, { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 24 24", fill: "currentColor", children: /* @__PURE__ */ jsx40(Path, { fillRule: "evenodd", clipRule: "evenodd", d: "M12 18.5a6.5 6.5 0 1 1 0-13 6.5 6.5 0 0 1 0 13ZM4 12a8 8 0 1 1 16 0 8 8 0 0 1-16 0Zm9 1V8h-1.5v3.5h-2V13H13Z" }) });
|
|
2383
2386
|
|
|
2384
2387
|
// ../icons/build-module/library/search.mjs
|
|
2385
2388
|
import { jsx as jsx41 } from "react/jsx-runtime";
|
|
2386
|
-
var search_default = /* @__PURE__ */ jsx41(SVG, { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 24 24", children: /* @__PURE__ */ jsx41(Path, { d: "M13 5c-3.3 0-6 2.7-6 6 0 1.4.5 2.7 1.3 3.7l-3.8 3.8 1.1 1.1 3.8-3.8c1 .8 2.3 1.3 3.7 1.3 3.3 0 6-2.7 6-6S16.3 5 13 5zm0 10.5c-2.5 0-4.5-2-4.5-4.5s2-4.5 4.5-4.5 4.5 2 4.5 4.5-2 4.5-4.5 4.5z" }) });
|
|
2389
|
+
var search_default = /* @__PURE__ */ jsx41(SVG, { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 24 24", fill: "currentColor", children: /* @__PURE__ */ jsx41(Path, { d: "M13 5c-3.3 0-6 2.7-6 6 0 1.4.5 2.7 1.3 3.7l-3.8 3.8 1.1 1.1 3.8-3.8c1 .8 2.3 1.3 3.7 1.3 3.3 0 6-2.7 6-6S16.3 5 13 5zm0 10.5c-2.5 0-4.5-2-4.5-4.5s2-4.5 4.5-4.5 4.5 2 4.5 4.5-2 4.5-4.5 4.5z" }) });
|
|
2387
2390
|
|
|
2388
2391
|
// ../icons/build-module/library/seen.mjs
|
|
2389
2392
|
import { jsx as jsx42 } from "react/jsx-runtime";
|
|
2390
|
-
var seen_default = /* @__PURE__ */ jsx42(SVG, { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 24 24", children: /* @__PURE__ */ jsx42(Path, { d: "M3.99961 13C4.67043 13.3354 4.6703 13.3357 4.67017 13.3359L4.67298 13.3305C4.67621 13.3242 4.68184 13.3135 4.68988 13.2985C4.70595 13.2686 4.7316 13.2218 4.76695 13.1608C4.8377 13.0385 4.94692 12.8592 5.09541 12.6419C5.39312 12.2062 5.84436 11.624 6.45435 11.0431C7.67308 9.88241 9.49719 8.75 11.9996 8.75C14.502 8.75 16.3261 9.88241 17.5449 11.0431C18.1549 11.624 18.6061 12.2062 18.9038 12.6419C19.0523 12.8592 19.1615 13.0385 19.2323 13.1608C19.2676 13.2218 19.2933 13.2686 19.3093 13.2985C19.3174 13.3135 19.323 13.3242 19.3262 13.3305L19.3291 13.3359C19.3289 13.3357 19.3288 13.3354 19.9996 13C20.6704 12.6646 20.6703 12.6643 20.6701 12.664L20.6697 12.6632L20.6688 12.6614L20.6662 12.6563L20.6583 12.6408C20.6517 12.6282 20.6427 12.6108 20.631 12.5892C20.6078 12.5459 20.5744 12.4852 20.5306 12.4096C20.4432 12.2584 20.3141 12.0471 20.1423 11.7956C19.7994 11.2938 19.2819 10.626 18.5794 9.9569C17.1731 8.61759 14.9972 7.25 11.9996 7.25C9.00203 7.25 6.82614 8.61759 5.41987 9.9569C4.71736 10.626 4.19984 11.2938 3.85694 11.7956C3.68511 12.0471 3.55605 12.2584 3.4686 12.4096C3.42484 12.4852 3.39142 12.5459 3.36818 12.5892C3.35656 12.6108 3.34748 12.6282 3.34092 12.6408L3.33297 12.6563L3.33041 12.6614L3.32948 12.6632L3.32911 12.664C3.32894 12.6643 3.32879 12.6646 3.99961 13ZM11.9996 16C13.9326 16 15.4996 14.433 15.4996 12.5C15.4996 10.567 13.9326 9 11.9996 9C10.0666 9 8.49961 10.567 8.49961 12.5C8.49961 14.433 10.0666 16 11.9996 16Z" }) });
|
|
2393
|
+
var seen_default = /* @__PURE__ */ jsx42(SVG, { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 24 24", fill: "currentColor", children: /* @__PURE__ */ jsx42(Path, { d: "M3.99961 13C4.67043 13.3354 4.6703 13.3357 4.67017 13.3359L4.67298 13.3305C4.67621 13.3242 4.68184 13.3135 4.68988 13.2985C4.70595 13.2686 4.7316 13.2218 4.76695 13.1608C4.8377 13.0385 4.94692 12.8592 5.09541 12.6419C5.39312 12.2062 5.84436 11.624 6.45435 11.0431C7.67308 9.88241 9.49719 8.75 11.9996 8.75C14.502 8.75 16.3261 9.88241 17.5449 11.0431C18.1549 11.624 18.6061 12.2062 18.9038 12.6419C19.0523 12.8592 19.1615 13.0385 19.2323 13.1608C19.2676 13.2218 19.2933 13.2686 19.3093 13.2985C19.3174 13.3135 19.323 13.3242 19.3262 13.3305L19.3291 13.3359C19.3289 13.3357 19.3288 13.3354 19.9996 13C20.6704 12.6646 20.6703 12.6643 20.6701 12.664L20.6697 12.6632L20.6688 12.6614L20.6662 12.6563L20.6583 12.6408C20.6517 12.6282 20.6427 12.6108 20.631 12.5892C20.6078 12.5459 20.5744 12.4852 20.5306 12.4096C20.4432 12.2584 20.3141 12.0471 20.1423 11.7956C19.7994 11.2938 19.2819 10.626 18.5794 9.9569C17.1731 8.61759 14.9972 7.25 11.9996 7.25C9.00203 7.25 6.82614 8.61759 5.41987 9.9569C4.71736 10.626 4.19984 11.2938 3.85694 11.7956C3.68511 12.0471 3.55605 12.2584 3.4686 12.4096C3.42484 12.4852 3.39142 12.5459 3.36818 12.5892C3.35656 12.6108 3.34748 12.6282 3.34092 12.6408L3.33297 12.6563L3.33041 12.6614L3.32948 12.6632L3.32911 12.664C3.32894 12.6643 3.32879 12.6646 3.99961 13ZM11.9996 16C13.9326 16 15.4996 14.433 15.4996 12.5C15.4996 10.567 13.9326 9 11.9996 9C10.0666 9 8.49961 10.567 8.49961 12.5C8.49961 14.433 10.0666 16 11.9996 16Z" }) });
|
|
2391
2394
|
|
|
2392
2395
|
// ../icons/build-module/library/unseen.mjs
|
|
2393
2396
|
import { jsx as jsx43 } from "react/jsx-runtime";
|
|
2394
|
-
var unseen_default = /* @__PURE__ */ jsx43(SVG, { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 24 24", children: /* @__PURE__ */ jsx43(Path, { d: "M20.7 12.7s0-.1-.1-.2c0-.2-.2-.4-.4-.6-.3-.5-.9-1.2-1.6-1.8-.7-.6-1.5-1.3-2.6-1.8l-.6 1.4c.9.4 1.6 1 2.1 1.5.6.6 1.1 1.2 1.4 1.6.1.2.3.4.3.5v.1l.7-.3.7-.3Zm-5.2-9.3-1.8 4c-.5-.1-1.1-.2-1.7-.2-3 0-5.2 1.4-6.6 2.7-.7.7-1.2 1.3-1.6 1.8-.2.3-.3.5-.4.6 0 0 0 .1-.1.2s0 0 .7.3l.7.3V13c0-.1.2-.3.3-.5.3-.4.7-1 1.4-1.6 1.2-1.2 3-2.3 5.5-2.3H13v.3c-.4 0-.8-.1-1.1-.1-1.9 0-3.5 1.6-3.5 3.5s.6 2.3 1.6 2.9l-2 4.4.9.4 7.6-16.2-.9-.4Zm-3 12.6c1.7-.2 3-1.7 3-3.5s-.2-1.4-.6-1.9L12.4 16Z" }) });
|
|
2397
|
+
var unseen_default = /* @__PURE__ */ jsx43(SVG, { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 24 24", fill: "currentColor", children: /* @__PURE__ */ jsx43(Path, { d: "M20.7 12.7s0-.1-.1-.2c0-.2-.2-.4-.4-.6-.3-.5-.9-1.2-1.6-1.8-.7-.6-1.5-1.3-2.6-1.8l-.6 1.4c.9.4 1.6 1 2.1 1.5.6.6 1.1 1.2 1.4 1.6.1.2.3.4.3.5v.1l.7-.3.7-.3Zm-5.2-9.3-1.8 4c-.5-.1-1.1-.2-1.7-.2-3 0-5.2 1.4-6.6 2.7-.7.7-1.2 1.3-1.6 1.8-.2.3-.3.5-.4.6 0 0 0 .1-.1.2s0 0 .7.3l.7.3V13c0-.1.2-.3.3-.5.3-.4.7-1 1.4-1.6 1.2-1.2 3-2.3 5.5-2.3H13v.3c-.4 0-.8-.1-1.1-.1-1.9 0-3.5 1.6-3.5 3.5s.6 2.3 1.6 2.9l-2 4.4.9.4 7.6-16.2-.9-.4Zm-3 12.6c1.7-.2 3-1.7 3-3.5s-.2-1.4-.6-1.9L12.4 16Z" }) });
|
|
2395
2398
|
|
|
2396
2399
|
// ../ui/build-module/collapsible-card/context.mjs
|
|
2397
2400
|
var HeaderDescriptionIdContext = createContext({
|
|
@@ -2490,7 +2493,7 @@ if (typeof process === "undefined" || true) {
|
|
|
2490
2493
|
}
|
|
2491
2494
|
var global_css_defense_default2 = { "button": "_6defc79820e382c6__button", "input": "d2cff2e5dea83bd1__input", "textarea": "_547d86373d02e108__textarea", "div": "_8c15fd0ed9f28ba4__div", "p": "_43cec3e1eec1066d__p", "heading": "e97669c6d9a38497__heading", "a": "_2c0831b0499dbd6e__a" };
|
|
2492
2495
|
if (typeof process === "undefined" || true) {
|
|
2493
|
-
registerStyle7("
|
|
2496
|
+
registerStyle7("5f8e7aa0bc", "@layer wp-ui{@layer utilities, components, compositions, overrides;@layer utilities{._08e8a2e44959f892__outset-ring--focus:focus,._970d04df7376df67__outset-ring--focus-within-except-active:focus-within:not(:has(:active)),.c5cb3ee4bddaa8e4__outset-ring--focus-within-visible:focus-within:has(:focus-visible),.cd83dfc2126a0846__outset-ring--focus-within:focus-within,.d0541bc9dd9dc7b6__outset-ring--focus-visible:focus-visible,.e25b2bdd7aa21721__outset-ring--focus-except-active:focus:not(:active),:focus-visible .ecadb9e080e2dfa5__outset-ring--focus-parent-visible{--_gcd-a-outline:var(--wpds-border-width-focus,var(--wp-admin-border-width-focus,2px)) solid var(--wpds-color-stroke-focus,var(--wp-admin-theme-color,#3858e9));--_gcd-div-outline:var(--wpds-border-width-focus,var(--wp-admin-border-width-focus,2px)) solid var(--wpds-color-stroke-focus,var(--wp-admin-theme-color,#3858e9));outline:var(--wpds-border-width-focus,var(--wp-admin-border-width-focus,2px)) solid var(--wpds-color-stroke-focus,var(--wp-admin-theme-color,#3858e9));outline-offset:var(--wpds-border-width-focus,var(--wp-admin-border-width-focus,2px))}}}");
|
|
2494
2497
|
}
|
|
2495
2498
|
var focus_default = { "outset-ring--focus": "_08e8a2e44959f892__outset-ring--focus", "outset-ring--focus-except-active": "e25b2bdd7aa21721__outset-ring--focus-except-active", "outset-ring--focus-visible": "d0541bc9dd9dc7b6__outset-ring--focus-visible", "outset-ring--focus-within": "cd83dfc2126a0846__outset-ring--focus-within", "outset-ring--focus-within-except-active": "_970d04df7376df67__outset-ring--focus-within-except-active", "outset-ring--focus-within-visible": "c5cb3ee4bddaa8e4__outset-ring--focus-within-visible", "outset-ring--focus-parent-visible": "ecadb9e080e2dfa5__outset-ring--focus-parent-visible" };
|
|
2496
2499
|
var Header2 = forwardRef(
|
|
@@ -2690,6 +2693,18 @@ var Content2 = forwardRef(
|
|
|
2690
2693
|
}
|
|
2691
2694
|
);
|
|
2692
2695
|
|
|
2696
|
+
// ../ui/build-module/utils/render-slot-with-children.mjs
|
|
2697
|
+
function renderSlotWithChildren(slot, defaultSlot, children) {
|
|
2698
|
+
return cloneElement(slot ?? defaultSlot, { children });
|
|
2699
|
+
}
|
|
2700
|
+
|
|
2701
|
+
// ../theme/build-module/index.mjs
|
|
2702
|
+
var build_module_exports = {};
|
|
2703
|
+
__export(build_module_exports, {
|
|
2704
|
+
ThemeProvider: () => ThemeProvider,
|
|
2705
|
+
privateApis: () => privateApis
|
|
2706
|
+
});
|
|
2707
|
+
|
|
2693
2708
|
// ../theme/build-module/lock-unlock.mjs
|
|
2694
2709
|
var { lock: lock2, unlock: unlock2 } = __dangerousOptInToUnstableAPIsOnlyForCoreModules(
|
|
2695
2710
|
"I acknowledge private features are not for use in themes or plugins and doing so will break in the next version of WordPress.",
|
|
@@ -3957,7 +3972,7 @@ function useThemeProviderStyles({
|
|
|
3957
3972
|
}
|
|
3958
3973
|
|
|
3959
3974
|
// ../theme/build-module/theme-provider.mjs
|
|
3960
|
-
import {
|
|
3975
|
+
import { jsx as jsx47 } from "react/jsx-runtime";
|
|
3961
3976
|
var STYLE_HASH_ATTRIBUTE9 = "data-wp-hash";
|
|
3962
3977
|
function getRuntime9() {
|
|
3963
3978
|
const globalScope = globalThis;
|
|
@@ -4042,24 +4057,7 @@ if (typeof process === "undefined" || true) {
|
|
|
4042
4057
|
registerStyle9("f4e6e06c6a", ".dba930ea7a9438fd__root{display:contents}");
|
|
4043
4058
|
}
|
|
4044
4059
|
var style_default9 = { "root": "dba930ea7a9438fd__root" };
|
|
4045
|
-
|
|
4046
|
-
return Object.entries(values).map(([key, value]) => `${key}: ${value};`).join("");
|
|
4047
|
-
}
|
|
4048
|
-
function generateCSSSelector({
|
|
4049
|
-
instanceId,
|
|
4050
|
-
isRoot
|
|
4051
|
-
}) {
|
|
4052
|
-
const rootSel = `[data-wpds-root-provider="true"]`;
|
|
4053
|
-
const instanceIdSel = `[data-wpds-theme-provider-id="${instanceId}"]`;
|
|
4054
|
-
const selectors = [];
|
|
4055
|
-
if (isRoot) {
|
|
4056
|
-
selectors.push(
|
|
4057
|
-
`:root:has(.${style_default9.root}${rootSel}${instanceIdSel})`
|
|
4058
|
-
);
|
|
4059
|
-
}
|
|
4060
|
-
selectors.push(`.${style_default9.root}.${style_default9.root}${instanceIdSel}`);
|
|
4061
|
-
return selectors.join(",");
|
|
4062
|
-
}
|
|
4060
|
+
var rootProviderCountByDocument = /* @__PURE__ */ new WeakMap();
|
|
4063
4061
|
var ThemeProvider = ({
|
|
4064
4062
|
children,
|
|
4065
4063
|
color = {},
|
|
@@ -4067,7 +4065,6 @@ var ThemeProvider = ({
|
|
|
4067
4065
|
cornerRadius,
|
|
4068
4066
|
isRoot = false
|
|
4069
4067
|
}) => {
|
|
4070
|
-
const instanceId = useId();
|
|
4071
4068
|
const { themeProviderStyles, resolvedSettings } = useThemeProviderStyles({
|
|
4072
4069
|
color,
|
|
4073
4070
|
cursor,
|
|
@@ -4080,42 +4077,117 @@ var ThemeProvider = ({
|
|
|
4080
4077
|
}),
|
|
4081
4078
|
[resolvedSettings]
|
|
4082
4079
|
);
|
|
4083
|
-
|
|
4084
|
-
|
|
4085
|
-
|
|
4086
|
-
|
|
4087
|
-
}
|
|
4088
|
-
|
|
4089
|
-
|
|
4090
|
-
|
|
4091
|
-
|
|
4092
|
-
|
|
4093
|
-
|
|
4094
|
-
|
|
4095
|
-
|
|
4080
|
+
const wrapperRef = useRef(null);
|
|
4081
|
+
use_isomorphic_layout_effect_default(() => {
|
|
4082
|
+
if (!isRoot) {
|
|
4083
|
+
return;
|
|
4084
|
+
}
|
|
4085
|
+
const doc = wrapperRef.current?.ownerDocument;
|
|
4086
|
+
if (!doc) {
|
|
4087
|
+
return;
|
|
4088
|
+
}
|
|
4089
|
+
const root = doc.documentElement;
|
|
4090
|
+
if (true) {
|
|
4091
|
+
const active = rootProviderCountByDocument.get(doc) ?? 0;
|
|
4092
|
+
if (active > 0) {
|
|
4093
|
+
console.warn(
|
|
4094
|
+
"ThemeProvider: More than one root provider (`isRoot`) is mounted on the same document. Their forwarded document-level styles conflict, and unmounting one can reset the others. Render a single root provider per document."
|
|
4095
|
+
);
|
|
4096
4096
|
}
|
|
4097
|
-
|
|
4098
|
-
|
|
4097
|
+
rootProviderCountByDocument.set(doc, active + 1);
|
|
4098
|
+
}
|
|
4099
|
+
const previous = /* @__PURE__ */ new Map();
|
|
4100
|
+
const applied = [];
|
|
4101
|
+
for (const [rawKey, rawValue] of Object.entries(
|
|
4102
|
+
themeProviderStyles
|
|
4103
|
+
)) {
|
|
4104
|
+
if (!rawKey.startsWith("--") || rawValue === null || rawValue === void 0) {
|
|
4105
|
+
continue;
|
|
4106
|
+
}
|
|
4107
|
+
previous.set(rawKey, root.style.getPropertyValue(rawKey));
|
|
4108
|
+
root.style.setProperty(rawKey, String(rawValue));
|
|
4109
|
+
applied.push(rawKey);
|
|
4110
|
+
}
|
|
4111
|
+
return () => {
|
|
4112
|
+
if (true) {
|
|
4113
|
+
const active = rootProviderCountByDocument.get(doc) ?? 1;
|
|
4114
|
+
if (active <= 1) {
|
|
4115
|
+
rootProviderCountByDocument.delete(doc);
|
|
4116
|
+
} else {
|
|
4117
|
+
rootProviderCountByDocument.set(doc, active - 1);
|
|
4118
|
+
}
|
|
4119
|
+
}
|
|
4120
|
+
for (const key of applied) {
|
|
4121
|
+
const prev = previous.get(key);
|
|
4122
|
+
if (prev) {
|
|
4123
|
+
root.style.setProperty(key, prev);
|
|
4124
|
+
} else {
|
|
4125
|
+
root.style.removeProperty(key);
|
|
4126
|
+
}
|
|
4127
|
+
}
|
|
4128
|
+
};
|
|
4129
|
+
}, [isRoot, themeProviderStyles]);
|
|
4130
|
+
return /* @__PURE__ */ jsx47(
|
|
4131
|
+
"div",
|
|
4132
|
+
{
|
|
4133
|
+
ref: wrapperRef,
|
|
4134
|
+
"data-wpds-root-provider": isRoot || void 0,
|
|
4135
|
+
"data-wpds-corner-radius": cornerRadiusPreset,
|
|
4136
|
+
className: style_default9.root,
|
|
4137
|
+
style: themeProviderStyles,
|
|
4138
|
+
children: /* @__PURE__ */ jsx47(ThemeContext.Provider, { value: contextValue, children })
|
|
4139
|
+
}
|
|
4140
|
+
);
|
|
4099
4141
|
};
|
|
4100
4142
|
|
|
4101
4143
|
// ../theme/build-module/private-apis.mjs
|
|
4144
|
+
function warnPrivateApi(apiName, options2 = {}) {
|
|
4145
|
+
deprecated(`\`privateApis.${apiName}\` from \`@wordpress/theme\``, {
|
|
4146
|
+
since: "7.1",
|
|
4147
|
+
version: "7.3",
|
|
4148
|
+
...options2
|
|
4149
|
+
});
|
|
4150
|
+
}
|
|
4102
4151
|
var privateApis = {};
|
|
4103
4152
|
lock2(privateApis, {
|
|
4104
|
-
ThemeProvider
|
|
4105
|
-
|
|
4153
|
+
get ThemeProvider() {
|
|
4154
|
+
warnPrivateApi("ThemeProvider", {
|
|
4155
|
+
alternative: "`ThemeProvider` from `@wordpress/theme`"
|
|
4156
|
+
});
|
|
4157
|
+
return ThemeProvider;
|
|
4158
|
+
},
|
|
4159
|
+
get useThemeProviderStyles() {
|
|
4160
|
+
warnPrivateApi("useThemeProviderStyles", {
|
|
4161
|
+
alternative: "`ThemeProvider` from `@wordpress/theme` for supported theming use cases",
|
|
4162
|
+
hint: "`useThemeProviderStyles` has no public replacement."
|
|
4163
|
+
});
|
|
4164
|
+
return useThemeProviderStyles;
|
|
4165
|
+
}
|
|
4106
4166
|
});
|
|
4107
4167
|
|
|
4108
|
-
// ../ui/build-module/utils/render-slot-with-children.mjs
|
|
4109
|
-
function renderSlotWithChildren(slot, defaultSlot, children) {
|
|
4110
|
-
return cloneElement(slot ?? defaultSlot, { children });
|
|
4111
|
-
}
|
|
4112
|
-
|
|
4113
4168
|
// ../ui/build-module/lock-unlock.mjs
|
|
4114
4169
|
var { lock: lock3, unlock: unlock3 } = __dangerousOptInToUnstableAPIsOnlyForCoreModules(
|
|
4115
4170
|
"I acknowledge private features are not for use in themes or plugins and doing so will break in the next version of WordPress.",
|
|
4116
4171
|
"@wordpress/ui"
|
|
4117
4172
|
);
|
|
4118
4173
|
|
|
4174
|
+
// ../ui/build-module/utils/theme-provider.mjs
|
|
4175
|
+
function getThemeProvider() {
|
|
4176
|
+
const themePackage = build_module_exports;
|
|
4177
|
+
if (themePackage.ThemeProvider) {
|
|
4178
|
+
return themePackage.ThemeProvider;
|
|
4179
|
+
}
|
|
4180
|
+
if (!themePackage.privateApis) {
|
|
4181
|
+
throw new Error(
|
|
4182
|
+
"@wordpress/ui: @wordpress/theme must expose `ThemeProvider` or `privateApis.ThemeProvider`."
|
|
4183
|
+
);
|
|
4184
|
+
}
|
|
4185
|
+
return unlock3(
|
|
4186
|
+
themePackage.privateApis
|
|
4187
|
+
).ThemeProvider;
|
|
4188
|
+
}
|
|
4189
|
+
var ThemeProvider2 = getThemeProvider();
|
|
4190
|
+
|
|
4119
4191
|
// ../ui/build-module/stack/stack.mjs
|
|
4120
4192
|
import { useRender as useRender7, mergeProps as mergeProps7 } from "@base-ui/react";
|
|
4121
4193
|
var STYLE_HASH_ATTRIBUTE10 = "data-wp-hash";
|
|
@@ -4594,7 +4666,6 @@ if (typeof process === "undefined" || true) {
|
|
|
4594
4666
|
registerStyle13("789467362f", '@layer wp-ui{@layer utilities, components, compositions, overrides;@layer components{._480b748dd3510e64__positioner{z-index:var(--wp-ui-tooltip-z-index,initial)}._50096b232db7709d__popup{background-color:var(--wpds-color-background-surface-neutral-strong,#fff);border-radius:var(--wpds-border-radius-md,4px);box-shadow:var(--wpds-elevation-sm,0 1px 2px 0 #0000000d,0 2px 3px 0 #0000000a,0 6px 6px 0 #00000008,0 8px 8px 0 #00000005);color:var(--wpds-color-foreground-content-neutral,#1e1e1e);font-family:var(--wpds-typography-font-family-body,-apple-system,system-ui,"Segoe UI","Roboto","Oxygen-Sans","Ubuntu","Cantarell","Helvetica Neue",sans-serif);font-size:var(--wpds-typography-font-size-sm,12px);line-height:1.4;padding:var(--wpds-dimension-padding-xs,4px) var(--wpds-dimension-padding-sm,8px);@media (forced-colors:active){border-bottom-color:CanvasText;border-bottom-style:solid;border-bottom-width:1px;border-left-color:CanvasText;border-left-style:solid;border-left-width:1px;border-right-color:CanvasText;border-right-style:solid;border-right-width:1px;border-top-color:CanvasText;border-top-style:solid;border-top-width:1px}}}}');
|
|
4595
4667
|
}
|
|
4596
4668
|
var style_default12 = { "positioner": "_480b748dd3510e64__positioner", "popup": "_50096b232db7709d__popup" };
|
|
4597
|
-
var ThemeProvider2 = unlock3(privateApis).ThemeProvider;
|
|
4598
4669
|
var POPUP_COLOR = { background: "#1e1e1e" };
|
|
4599
4670
|
var Popup = forwardRef(function TooltipPopup({ portal, positioner, children, className: className2, ...props }, ref) {
|
|
4600
4671
|
const popupContent = /* @__PURE__ */ jsx50(ThemeProvider2, { color: POPUP_COLOR, children: /* @__PURE__ */ jsx50(
|
|
@@ -4826,7 +4897,7 @@ var dataviews_context_default = DataViewsContext;
|
|
|
4826
4897
|
import { __ as __36, isRTL as isRTL12 } from "@wordpress/i18n";
|
|
4827
4898
|
|
|
4828
4899
|
// src/components/dataviews-layouts/table/index.tsx
|
|
4829
|
-
import
|
|
4900
|
+
import clsx37 from "clsx";
|
|
4830
4901
|
import { __ as __23, sprintf as sprintf6, isRTL as isRTL10 } from "@wordpress/i18n";
|
|
4831
4902
|
|
|
4832
4903
|
// ../components/build-module/composite/index.mjs
|
|
@@ -13817,13 +13888,12 @@ SearchControl.displayName = "SearchControl";
|
|
|
13817
13888
|
var search_control_default = SearchControl;
|
|
13818
13889
|
|
|
13819
13890
|
// ../components/build-module/text-control/index.mjs
|
|
13820
|
-
import clsx32 from "clsx";
|
|
13821
13891
|
import { jsx as _jsx82 } from "react/jsx-runtime";
|
|
13822
13892
|
function UnforwardedTextControl(props, ref) {
|
|
13823
13893
|
const {
|
|
13824
|
-
// Prevent passing
|
|
13894
|
+
// Prevent passing legacy props to `input`.
|
|
13825
13895
|
__nextHasNoMarginBottom: _,
|
|
13826
|
-
__next40pxDefaultSize
|
|
13896
|
+
__next40pxDefaultSize: __62,
|
|
13827
13897
|
label,
|
|
13828
13898
|
hideLabelFromVision,
|
|
13829
13899
|
value,
|
|
@@ -13836,11 +13906,6 @@ function UnforwardedTextControl(props, ref) {
|
|
|
13836
13906
|
} = props;
|
|
13837
13907
|
const id = use_instance_id_default(TextControl, "inspector-text-control", idProp);
|
|
13838
13908
|
const onChangeValue = (event) => onChange(event.target.value);
|
|
13839
|
-
maybeWarnDeprecated36pxSize({
|
|
13840
|
-
componentName: "TextControl",
|
|
13841
|
-
size: void 0,
|
|
13842
|
-
__next40pxDefaultSize
|
|
13843
|
-
});
|
|
13844
13909
|
return /* @__PURE__ */ _jsx82(base_control_default, {
|
|
13845
13910
|
label,
|
|
13846
13911
|
hideLabelFromVision,
|
|
@@ -13848,9 +13913,7 @@ function UnforwardedTextControl(props, ref) {
|
|
|
13848
13913
|
help,
|
|
13849
13914
|
className: className2,
|
|
13850
13915
|
children: /* @__PURE__ */ _jsx82("input", {
|
|
13851
|
-
className:
|
|
13852
|
-
"is-next-40px-default-size": __next40pxDefaultSize
|
|
13853
|
-
}),
|
|
13916
|
+
className: "components-text-control__input",
|
|
13854
13917
|
type,
|
|
13855
13918
|
id,
|
|
13856
13919
|
value,
|
|
@@ -13866,7 +13929,7 @@ TextControl.displayName = "TextControl";
|
|
|
13866
13929
|
var text_control_default = TextControl;
|
|
13867
13930
|
|
|
13868
13931
|
// ../components/build-module/textarea-control/index.mjs
|
|
13869
|
-
import
|
|
13932
|
+
import clsx32 from "clsx";
|
|
13870
13933
|
|
|
13871
13934
|
// ../components/build-module/textarea-control/styles/textarea-control-styles.mjs
|
|
13872
13935
|
import _styled14 from "@emotion/styled/base";
|
|
@@ -13898,7 +13961,7 @@ function UnforwardedTextareaControl(props, ref) {
|
|
|
13898
13961
|
const instanceId = use_instance_id_default(TextareaControl);
|
|
13899
13962
|
const id = `inspector-textarea-control-${instanceId}`;
|
|
13900
13963
|
const onChangeValue = (event) => onChange(event.target.value);
|
|
13901
|
-
const classes =
|
|
13964
|
+
const classes = clsx32("components-textarea-control", className2);
|
|
13902
13965
|
return /* @__PURE__ */ _jsx83(base_control_default, {
|
|
13903
13966
|
label,
|
|
13904
13967
|
hideLabelFromVision,
|
|
@@ -13922,7 +13985,7 @@ TextareaControl.displayName = "TextareaControl";
|
|
|
13922
13985
|
var textarea_control_default = TextareaControl;
|
|
13923
13986
|
|
|
13924
13987
|
// ../components/build-module/toggle-control/index.mjs
|
|
13925
|
-
import
|
|
13988
|
+
import clsx33 from "clsx";
|
|
13926
13989
|
import { jsx as _jsx84, jsxs as _jsxs24 } from "react/jsx-runtime";
|
|
13927
13990
|
function UnforwardedToggleControl({
|
|
13928
13991
|
label,
|
|
@@ -13959,7 +14022,7 @@ function UnforwardedToggleControl({
|
|
|
13959
14022
|
className: "components-toggle-control__help",
|
|
13960
14023
|
children: helpLabel
|
|
13961
14024
|
}),
|
|
13962
|
-
className:
|
|
14025
|
+
className: clsx33("components-toggle-control", className2),
|
|
13963
14026
|
children: /* @__PURE__ */ _jsxs24(component_default9, {
|
|
13964
14027
|
justify: "flex-start",
|
|
13965
14028
|
spacing: 2,
|
|
@@ -13974,7 +14037,7 @@ function UnforwardedToggleControl({
|
|
|
13974
14037
|
}), /* @__PURE__ */ _jsx84(component_default5, {
|
|
13975
14038
|
as: "label",
|
|
13976
14039
|
htmlFor: id,
|
|
13977
|
-
className:
|
|
14040
|
+
className: clsx33("components-toggle-control__label", {
|
|
13978
14041
|
"is-disabled": disabled
|
|
13979
14042
|
}),
|
|
13980
14043
|
children: label
|
|
@@ -14810,7 +14873,7 @@ var Tab3 = forwardRef(function Tab22({
|
|
|
14810
14873
|
|
|
14811
14874
|
// ../components/build-module/tabs/tablist.mjs
|
|
14812
14875
|
import { useStoreState as useStoreState4 } from "@ariakit/react";
|
|
14813
|
-
import
|
|
14876
|
+
import clsx34 from "clsx";
|
|
14814
14877
|
|
|
14815
14878
|
// ../components/build-module/tabs/use-track-overflow.mjs
|
|
14816
14879
|
function useTrackOverflow(parent, children) {
|
|
@@ -14940,7 +15003,7 @@ var TabList2 = forwardRef(function TabList22({
|
|
|
14940
15003
|
}),
|
|
14941
15004
|
"data-select-on-move": selectOnMove ? "true" : "false",
|
|
14942
15005
|
...otherProps,
|
|
14943
|
-
className:
|
|
15006
|
+
className: clsx34(overflow.first && "is-overflowing-first", overflow.last && "is-overflowing-last", otherProps.className),
|
|
14944
15007
|
children
|
|
14945
15008
|
});
|
|
14946
15009
|
});
|
|
@@ -15049,7 +15112,7 @@ var Tabs = Object.assign(function Tabs2({
|
|
|
15049
15112
|
});
|
|
15050
15113
|
|
|
15051
15114
|
// ../components/build-module/badge/index.mjs
|
|
15052
|
-
import
|
|
15115
|
+
import clsx35 from "clsx";
|
|
15053
15116
|
import { jsx as _jsx102, jsxs as _jsxs30 } from "react/jsx-runtime";
|
|
15054
15117
|
function contextBasedIcon(intent = "default") {
|
|
15055
15118
|
switch (intent) {
|
|
@@ -15074,7 +15137,7 @@ function Badge3({
|
|
|
15074
15137
|
const icon = contextBasedIcon(intent);
|
|
15075
15138
|
const hasIcon = !!icon;
|
|
15076
15139
|
return /* @__PURE__ */ _jsx102("span", {
|
|
15077
|
-
className:
|
|
15140
|
+
className: clsx35("components-badge", className2, {
|
|
15078
15141
|
[`is-${intent}`]: intent,
|
|
15079
15142
|
"has-icon": hasIcon
|
|
15080
15143
|
}),
|
|
@@ -15552,7 +15615,7 @@ var DateRangeCalendar = ({
|
|
|
15552
15615
|
import { __ as __17 } from "@wordpress/i18n";
|
|
15553
15616
|
|
|
15554
15617
|
// ../components/build-module/validated-form-controls/validity-indicator.mjs
|
|
15555
|
-
import
|
|
15618
|
+
import clsx36 from "clsx";
|
|
15556
15619
|
import { jsx as _jsx106, jsxs as _jsxs32 } from "react/jsx-runtime";
|
|
15557
15620
|
function ValidityIndicator({
|
|
15558
15621
|
id,
|
|
@@ -15565,7 +15628,7 @@ function ValidityIndicator({
|
|
|
15565
15628
|
};
|
|
15566
15629
|
return /* @__PURE__ */ _jsxs32("p", {
|
|
15567
15630
|
id,
|
|
15568
|
-
className:
|
|
15631
|
+
className: clsx36("components-validated-control__indicator", `is-${type}`),
|
|
15569
15632
|
children: [type === "validating" ? /* @__PURE__ */ _jsx106(spinner_default, {
|
|
15570
15633
|
className: "components-validated-control__indicator-spinner"
|
|
15571
15634
|
}) : /* @__PURE__ */ _jsx106(icon_default2, {
|
|
@@ -15961,7 +16024,6 @@ var UnforwardedValidatedTextControl = ({
|
|
|
15961
16024
|
customValidity,
|
|
15962
16025
|
getValidityTarget: () => validityTargetRef.current,
|
|
15963
16026
|
children: /* @__PURE__ */ _jsx115(text_control_default, {
|
|
15964
|
-
__next40pxDefaultSize: true,
|
|
15965
16027
|
ref: mergedRefs,
|
|
15966
16028
|
...restProps
|
|
15967
16029
|
})
|
|
@@ -16136,7 +16198,7 @@ var { lock: lock5, unlock: unlock5 } = __dangerousOptInToUnstableAPIsOnlyForCore
|
|
|
16136
16198
|
);
|
|
16137
16199
|
|
|
16138
16200
|
// src/components/dataviews-item-actions/index.tsx
|
|
16139
|
-
import { Fragment as
|
|
16201
|
+
import { Fragment as Fragment2, jsx as jsx55, jsxs as jsxs2 } from "react/jsx-runtime";
|
|
16140
16202
|
var { Menu: Menu4, kebabCase: kebabCase3 } = unlock5(privateApis2);
|
|
16141
16203
|
function ButtonTrigger({
|
|
16142
16204
|
action,
|
|
@@ -16220,7 +16282,7 @@ function ActionsMenuGroup({
|
|
|
16220
16282
|
},
|
|
16221
16283
|
action.id
|
|
16222
16284
|
));
|
|
16223
|
-
return /* @__PURE__ */
|
|
16285
|
+
return /* @__PURE__ */ jsxs2(Menu4.Group, { children: [
|
|
16224
16286
|
renderActionGroup(primaryActions),
|
|
16225
16287
|
renderActionGroup(regularActions)
|
|
16226
16288
|
] });
|
|
@@ -16255,7 +16317,7 @@ function ItemActions({
|
|
|
16255
16317
|
}
|
|
16256
16318
|
);
|
|
16257
16319
|
}
|
|
16258
|
-
return /* @__PURE__ */
|
|
16320
|
+
return /* @__PURE__ */ jsxs2(
|
|
16259
16321
|
Stack,
|
|
16260
16322
|
{
|
|
16261
16323
|
direction: "row",
|
|
@@ -16297,8 +16359,8 @@ function CompactItemActions({
|
|
|
16297
16359
|
const [activeModalAction, setActiveModalAction] = useState(
|
|
16298
16360
|
null
|
|
16299
16361
|
);
|
|
16300
|
-
return /* @__PURE__ */
|
|
16301
|
-
/* @__PURE__ */
|
|
16362
|
+
return /* @__PURE__ */ jsxs2(Fragment2, { children: [
|
|
16363
|
+
/* @__PURE__ */ jsxs2(Menu4, { placement: "bottom-end", children: [
|
|
16302
16364
|
/* @__PURE__ */ jsx55(
|
|
16303
16365
|
Menu4.TriggerButton,
|
|
16304
16366
|
{
|
|
@@ -16349,7 +16411,7 @@ function PrimaryActions({
|
|
|
16349
16411
|
if (!Array.isArray(actions) || actions.length === 0) {
|
|
16350
16412
|
return null;
|
|
16351
16413
|
}
|
|
16352
|
-
return /* @__PURE__ */
|
|
16414
|
+
return /* @__PURE__ */ jsxs2(Fragment2, { children: [
|
|
16353
16415
|
actions.map((action) => /* @__PURE__ */ jsx55(
|
|
16354
16416
|
ButtonTrigger,
|
|
16355
16417
|
{
|
|
@@ -16407,7 +16469,7 @@ function getFooterMessage(selectionCount, itemsCount, totalItems, onlyTotalCount
|
|
|
16407
16469
|
}
|
|
16408
16470
|
|
|
16409
16471
|
// src/components/dataviews-bulk-actions/index.tsx
|
|
16410
|
-
import { Fragment as
|
|
16472
|
+
import { Fragment as Fragment3, jsx as jsx56, jsxs as jsxs3 } from "react/jsx-runtime";
|
|
16411
16473
|
function ActionWithModal({
|
|
16412
16474
|
action,
|
|
16413
16475
|
items,
|
|
@@ -16421,7 +16483,7 @@ function ActionWithModal({
|
|
|
16421
16483
|
},
|
|
16422
16484
|
items
|
|
16423
16485
|
};
|
|
16424
|
-
return /* @__PURE__ */
|
|
16486
|
+
return /* @__PURE__ */ jsxs3(Fragment3, { children: [
|
|
16425
16487
|
/* @__PURE__ */ jsx56(ActionTriggerComponent, { ...actionTriggerProps }),
|
|
16426
16488
|
isModalOpen && /* @__PURE__ */ jsx56(
|
|
16427
16489
|
ActionModal,
|
|
@@ -16584,7 +16646,7 @@ function renderFooterContent(data, actions, getItemId, isInfiniteScroll, selecti
|
|
|
16584
16646
|
paginationInfo.totalItems,
|
|
16585
16647
|
isInfiniteScroll
|
|
16586
16648
|
);
|
|
16587
|
-
return /* @__PURE__ */
|
|
16649
|
+
return /* @__PURE__ */ jsxs3(
|
|
16588
16650
|
Stack,
|
|
16589
16651
|
{
|
|
16590
16652
|
direction: "row",
|
|
@@ -16604,7 +16666,7 @@ function renderFooterContent(data, actions, getItemId, isInfiniteScroll, selecti
|
|
|
16604
16666
|
}
|
|
16605
16667
|
),
|
|
16606
16668
|
/* @__PURE__ */ jsx56("span", { className: "dataviews-bulk-actions-footer__item-count", children: message }),
|
|
16607
|
-
/* @__PURE__ */
|
|
16669
|
+
/* @__PURE__ */ jsxs3(
|
|
16608
16670
|
Stack,
|
|
16609
16671
|
{
|
|
16610
16672
|
direction: "row",
|
|
@@ -16757,10 +16819,10 @@ function getHideableFields(view, fields) {
|
|
|
16757
16819
|
}
|
|
16758
16820
|
|
|
16759
16821
|
// src/components/dataviews-layouts/table/column-header-menu.tsx
|
|
16760
|
-
import { jsx as jsx57, jsxs as
|
|
16822
|
+
import { jsx as jsx57, jsxs as jsxs4 } from "react/jsx-runtime";
|
|
16761
16823
|
var { Menu: Menu5 } = unlock5(privateApis2);
|
|
16762
16824
|
function WithMenuSeparators({ children }) {
|
|
16763
|
-
return Children.toArray(children).filter(Boolean).map((child, i) => /* @__PURE__ */
|
|
16825
|
+
return Children.toArray(children).filter(Boolean).map((child, i) => /* @__PURE__ */ jsxs4(Fragment, { children: [
|
|
16764
16826
|
i > 0 && /* @__PURE__ */ jsx57(Menu5.Separator, {}),
|
|
16765
16827
|
child
|
|
16766
16828
|
] }, i));
|
|
@@ -16801,8 +16863,8 @@ var _HeaderMenu = forwardRef(function HeaderMenu({
|
|
|
16801
16863
|
);
|
|
16802
16864
|
const canInsert = (canInsertLeft || canInsertRight) && !!hiddenFields.length;
|
|
16803
16865
|
const isRtl = isRTL8();
|
|
16804
|
-
return /* @__PURE__ */
|
|
16805
|
-
/* @__PURE__ */
|
|
16866
|
+
return /* @__PURE__ */ jsxs4(Menu5, { children: [
|
|
16867
|
+
/* @__PURE__ */ jsxs4(
|
|
16806
16868
|
Menu5.TriggerButton,
|
|
16807
16869
|
{
|
|
16808
16870
|
render: /* @__PURE__ */ jsx57(
|
|
@@ -16820,7 +16882,7 @@ var _HeaderMenu = forwardRef(function HeaderMenu({
|
|
|
16820
16882
|
]
|
|
16821
16883
|
}
|
|
16822
16884
|
),
|
|
16823
|
-
/* @__PURE__ */ jsx57(Menu5.Popover, { style: { minWidth: "240px" }, children: /* @__PURE__ */
|
|
16885
|
+
/* @__PURE__ */ jsx57(Menu5.Popover, { style: { minWidth: "240px" }, children: /* @__PURE__ */ jsxs4(WithMenuSeparators, { children: [
|
|
16824
16886
|
isSortable && /* @__PURE__ */ jsx57(Menu5.Group, { children: SORTING_DIRECTIONS.map(
|
|
16825
16887
|
(direction) => {
|
|
16826
16888
|
const isChecked = view.sort && isSorted && view.sort.direction === direction;
|
|
@@ -16870,7 +16932,7 @@ var _HeaderMenu = forwardRef(function HeaderMenu({
|
|
|
16870
16932
|
children: /* @__PURE__ */ jsx57(Menu5.ItemLabel, { children: __21("Add filter") })
|
|
16871
16933
|
}
|
|
16872
16934
|
) }),
|
|
16873
|
-
(canMove || isHidable || canInsert) && field && /* @__PURE__ */
|
|
16935
|
+
(canMove || isHidable || canInsert) && field && /* @__PURE__ */ jsxs4(Menu5.Group, { children: [
|
|
16874
16936
|
canMove && /* @__PURE__ */ jsx57(
|
|
16875
16937
|
Menu5.Item,
|
|
16876
16938
|
{
|
|
@@ -16919,7 +16981,7 @@ var _HeaderMenu = forwardRef(function HeaderMenu({
|
|
|
16919
16981
|
children: /* @__PURE__ */ jsx57(Menu5.ItemLabel, { children: __21("Move right") })
|
|
16920
16982
|
}
|
|
16921
16983
|
),
|
|
16922
|
-
canInsertLeft && !!hiddenFields.length && /* @__PURE__ */
|
|
16984
|
+
canInsertLeft && !!hiddenFields.length && /* @__PURE__ */ jsxs4(Menu5, { children: [
|
|
16923
16985
|
/* @__PURE__ */ jsx57(Menu5.SubmenuTriggerItem, { children: /* @__PURE__ */ jsx57(Menu5.ItemLabel, { children: __21("Insert left") }) }),
|
|
16924
16986
|
/* @__PURE__ */ jsx57(Menu5.Popover, { children: hiddenFields.map((hiddenField) => {
|
|
16925
16987
|
const insertIndex = isRtl ? index + 1 : index;
|
|
@@ -16947,7 +17009,7 @@ var _HeaderMenu = forwardRef(function HeaderMenu({
|
|
|
16947
17009
|
);
|
|
16948
17010
|
}) })
|
|
16949
17011
|
] }),
|
|
16950
|
-
canInsertRight && !!hiddenFields.length && /* @__PURE__ */
|
|
17012
|
+
canInsertRight && !!hiddenFields.length && /* @__PURE__ */ jsxs4(Menu5, { children: [
|
|
16951
17013
|
/* @__PURE__ */ jsx57(Menu5.SubmenuTriggerItem, { children: /* @__PURE__ */ jsx57(Menu5.ItemLabel, { children: __21("Insert right") }) }),
|
|
16952
17014
|
/* @__PURE__ */ jsx57(Menu5.Popover, { children: hiddenFields.map((hiddenField) => {
|
|
16953
17015
|
const insertIndex = isRtl ? index : index + 1;
|
|
@@ -17071,7 +17133,7 @@ function ItemClickWrapper({
|
|
|
17071
17133
|
}
|
|
17072
17134
|
|
|
17073
17135
|
// src/components/dataviews-layouts/table/column-primary.tsx
|
|
17074
|
-
import { jsx as jsx59, jsxs as
|
|
17136
|
+
import { jsx as jsx59, jsxs as jsxs5 } from "react/jsx-runtime";
|
|
17075
17137
|
function ColumnPrimary({
|
|
17076
17138
|
item: item2,
|
|
17077
17139
|
level,
|
|
@@ -17082,7 +17144,7 @@ function ColumnPrimary({
|
|
|
17082
17144
|
renderItemLink,
|
|
17083
17145
|
isItemClickable: isItemClickable2
|
|
17084
17146
|
}) {
|
|
17085
|
-
return /* @__PURE__ */
|
|
17147
|
+
return /* @__PURE__ */ jsxs5(Stack, { direction: "row", gap: "md", align: "flex-start", justify: "flex-start", children: [
|
|
17086
17148
|
mediaField && /* @__PURE__ */ jsx59(
|
|
17087
17149
|
ItemClickWrapper,
|
|
17088
17150
|
{
|
|
@@ -17102,14 +17164,14 @@ function ColumnPrimary({
|
|
|
17102
17164
|
)
|
|
17103
17165
|
}
|
|
17104
17166
|
),
|
|
17105
|
-
/* @__PURE__ */
|
|
17167
|
+
/* @__PURE__ */ jsxs5(
|
|
17106
17168
|
Stack,
|
|
17107
17169
|
{
|
|
17108
17170
|
direction: "column",
|
|
17109
17171
|
align: "flex-start",
|
|
17110
17172
|
className: "dataviews-view-table__primary-column-content",
|
|
17111
17173
|
children: [
|
|
17112
|
-
titleField && /* @__PURE__ */
|
|
17174
|
+
titleField && /* @__PURE__ */ jsxs5(
|
|
17113
17175
|
ItemClickWrapper,
|
|
17114
17176
|
{
|
|
17115
17177
|
item: item2,
|
|
@@ -17118,7 +17180,7 @@ function ColumnPrimary({
|
|
|
17118
17180
|
renderItemLink,
|
|
17119
17181
|
className: "dataviews-view-table__cell-content-wrapper dataviews-title-field",
|
|
17120
17182
|
children: [
|
|
17121
|
-
level !== void 0 && level > 0 && /* @__PURE__ */
|
|
17183
|
+
level !== void 0 && level > 0 && /* @__PURE__ */ jsxs5("span", { className: "dataviews-view-table__level", children: [
|
|
17122
17184
|
Array(level).fill("\u2014").join(" "),
|
|
17123
17185
|
"\xA0"
|
|
17124
17186
|
] }),
|
|
@@ -17196,13 +17258,13 @@ function getDataByGroup(data, groupByField) {
|
|
|
17196
17258
|
|
|
17197
17259
|
// src/components/dataviews-view-config/properties-section.tsx
|
|
17198
17260
|
import { __ as __22 } from "@wordpress/i18n";
|
|
17199
|
-
import { jsx as jsx60, jsxs as
|
|
17261
|
+
import { jsx as jsx60, jsxs as jsxs6 } from "react/jsx-runtime";
|
|
17200
17262
|
function FieldItem({
|
|
17201
17263
|
field,
|
|
17202
17264
|
isVisible: isVisible2,
|
|
17203
17265
|
onToggleVisibility
|
|
17204
17266
|
}) {
|
|
17205
|
-
return /* @__PURE__ */ jsx60(component_default17, { onClick: field.enableHiding ? onToggleVisibility : void 0, children: /* @__PURE__ */
|
|
17267
|
+
return /* @__PURE__ */ jsx60(component_default17, { onClick: field.enableHiding ? onToggleVisibility : void 0, children: /* @__PURE__ */ jsxs6(Stack, { direction: "row", gap: "sm", justify: "flex-start", align: "center", children: [
|
|
17206
17268
|
/* @__PURE__ */ jsx60("div", { style: { height: 24, width: 24 }, children: isVisible2 && /* @__PURE__ */ jsx60(icon_default2, { icon: check_default }) }),
|
|
17207
17269
|
/* @__PURE__ */ jsx60("span", { className: "dataviews-view-config__label", children: field.label })
|
|
17208
17270
|
] }) });
|
|
@@ -17249,14 +17311,14 @@ function PropertiesSection({
|
|
|
17249
17311
|
);
|
|
17250
17312
|
const totalVisibleFields = visibleLockedFields.length + visibleRegularFieldsCount;
|
|
17251
17313
|
const isSingleVisibleLockedField = totalVisibleFields === 1 && visibleLockedFields.length === 1;
|
|
17252
|
-
return /* @__PURE__ */
|
|
17314
|
+
return /* @__PURE__ */ jsxs6(Stack, { direction: "column", className: "dataviews-field-control", children: [
|
|
17253
17315
|
showLabel && /* @__PURE__ */ jsx60(base_control_default.VisualLabel, { children: __22("Properties") }),
|
|
17254
17316
|
/* @__PURE__ */ jsx60(
|
|
17255
17317
|
Stack,
|
|
17256
17318
|
{
|
|
17257
17319
|
direction: "column",
|
|
17258
17320
|
className: "dataviews-view-config__properties",
|
|
17259
|
-
children: /* @__PURE__ */
|
|
17321
|
+
children: /* @__PURE__ */ jsxs6(component_default18, { isBordered: true, isSeparated: true, size: "medium", children: [
|
|
17260
17322
|
lockedFields.map(({ field, isVisibleFlag }) => {
|
|
17261
17323
|
const isVisible2 = view[isVisibleFlag] ?? true;
|
|
17262
17324
|
const fieldToRender = isSingleVisibleLockedField && isVisible2 ? { ...field, enableHiding: false } : field;
|
|
@@ -17320,7 +17382,7 @@ function useDelayedLoading(isLoading, options2 = { delay: 400 }) {
|
|
|
17320
17382
|
}
|
|
17321
17383
|
|
|
17322
17384
|
// src/components/dataviews-layouts/table/index.tsx
|
|
17323
|
-
import { Fragment as
|
|
17385
|
+
import { Fragment as Fragment4, jsx as jsx61, jsxs as jsxs7 } from "react/jsx-runtime";
|
|
17324
17386
|
function getEffectiveAlign(explicitAlign, fieldType) {
|
|
17325
17387
|
if (explicitAlign) {
|
|
17326
17388
|
return explicitAlign;
|
|
@@ -17340,7 +17402,7 @@ function TableColumnField({
|
|
|
17340
17402
|
if (!field) {
|
|
17341
17403
|
return null;
|
|
17342
17404
|
}
|
|
17343
|
-
const className2 =
|
|
17405
|
+
const className2 = clsx37("dataviews-view-table__cell-content-wrapper", {
|
|
17344
17406
|
"dataviews-view-table__cell-align-end": align === "end",
|
|
17345
17407
|
"dataviews-view-table__cell-align-center": align === "center"
|
|
17346
17408
|
});
|
|
@@ -17378,10 +17440,10 @@ function TableRow({
|
|
|
17378
17440
|
const isTouchDeviceRef = useRef(false);
|
|
17379
17441
|
const columns = view.fields ?? [];
|
|
17380
17442
|
const hasPrimaryColumn = titleField && showTitle || mediaField && showMedia || descriptionField && showDescription;
|
|
17381
|
-
return /* @__PURE__ */
|
|
17443
|
+
return /* @__PURE__ */ jsxs7(
|
|
17382
17444
|
"tr",
|
|
17383
17445
|
{
|
|
17384
|
-
className:
|
|
17446
|
+
className: clsx37("dataviews-view-table__row", {
|
|
17385
17447
|
"is-selected": hasPossibleBulkAction && isSelected,
|
|
17386
17448
|
"has-bulk-actions": hasPossibleBulkAction
|
|
17387
17449
|
}),
|
|
@@ -17466,7 +17528,7 @@ function TableRow({
|
|
|
17466
17528
|
/* @__PURE__ */ jsx61(
|
|
17467
17529
|
"td",
|
|
17468
17530
|
{
|
|
17469
|
-
className:
|
|
17531
|
+
className: clsx37("dataviews-view-table__actions-column", {
|
|
17470
17532
|
"dataviews-view-table__actions-column--sticky": true,
|
|
17471
17533
|
"dataviews-view-table__actions-column--stuck": isActionsColumnSticky
|
|
17472
17534
|
}),
|
|
@@ -17571,7 +17633,7 @@ function ViewTable({
|
|
|
17571
17633
|
return /* @__PURE__ */ jsx61(
|
|
17572
17634
|
"div",
|
|
17573
17635
|
{
|
|
17574
|
-
className:
|
|
17636
|
+
className: clsx37("dataviews-no-results", {
|
|
17575
17637
|
"is-refreshing": isDelayedLoading
|
|
17576
17638
|
}),
|
|
17577
17639
|
id: tableNoticeId,
|
|
@@ -17579,11 +17641,11 @@ function ViewTable({
|
|
|
17579
17641
|
}
|
|
17580
17642
|
);
|
|
17581
17643
|
}
|
|
17582
|
-
return /* @__PURE__ */
|
|
17583
|
-
/* @__PURE__ */
|
|
17644
|
+
return /* @__PURE__ */ jsxs7(Fragment4, { children: [
|
|
17645
|
+
/* @__PURE__ */ jsxs7(
|
|
17584
17646
|
"table",
|
|
17585
17647
|
{
|
|
17586
|
-
className:
|
|
17648
|
+
className: clsx37("dataviews-view-table", className2, {
|
|
17587
17649
|
[`has-${view.layout?.density}-density`]: view.layout?.density && ["compact", "comfortable"].includes(
|
|
17588
17650
|
view.layout.density
|
|
17589
17651
|
),
|
|
@@ -17595,13 +17657,13 @@ function ViewTable({
|
|
|
17595
17657
|
role: isInfiniteScroll ? "feed" : void 0,
|
|
17596
17658
|
inert: !isInfiniteScroll && isLoading ? "true" : void 0,
|
|
17597
17659
|
children: [
|
|
17598
|
-
/* @__PURE__ */
|
|
17660
|
+
/* @__PURE__ */ jsxs7("colgroup", { children: [
|
|
17599
17661
|
hasBulkActions && /* @__PURE__ */ jsx61("col", { className: "dataviews-view-table__col-checkbox" }),
|
|
17600
17662
|
hasPrimaryColumn && /* @__PURE__ */ jsx61("col", { className: "dataviews-view-table__col-first-data" }),
|
|
17601
17663
|
columns.map((column, index) => /* @__PURE__ */ jsx61(
|
|
17602
17664
|
"col",
|
|
17603
17665
|
{
|
|
17604
|
-
className:
|
|
17666
|
+
className: clsx37(
|
|
17605
17667
|
`dataviews-view-table__col-${column}`,
|
|
17606
17668
|
{
|
|
17607
17669
|
"dataviews-view-table__col-expand": !hasPrimaryColumn && index === columns.length - 1
|
|
@@ -17624,11 +17686,11 @@ function ViewTable({
|
|
|
17624
17686
|
/* @__PURE__ */ jsx61(
|
|
17625
17687
|
"thead",
|
|
17626
17688
|
{
|
|
17627
|
-
className:
|
|
17689
|
+
className: clsx37({
|
|
17628
17690
|
"dataviews-view-table__thead--stuck": isVerticallyScrolled
|
|
17629
17691
|
}),
|
|
17630
17692
|
onContextMenu: handleHeaderContextMenu,
|
|
17631
|
-
children: /* @__PURE__ */
|
|
17693
|
+
children: /* @__PURE__ */ jsxs7("tr", { className: "dataviews-view-table__row", children: [
|
|
17632
17694
|
hasBulkActions && /* @__PURE__ */ jsx61(
|
|
17633
17695
|
"th",
|
|
17634
17696
|
{
|
|
@@ -17708,7 +17770,7 @@ function ViewTable({
|
|
|
17708
17770
|
!!actions?.length && /* @__PURE__ */ jsx61(
|
|
17709
17771
|
"th",
|
|
17710
17772
|
{
|
|
17711
|
-
className:
|
|
17773
|
+
className: clsx37(
|
|
17712
17774
|
"dataviews-view-table__actions-column",
|
|
17713
17775
|
{
|
|
17714
17776
|
"dataviews-view-table__actions-column--sticky": true,
|
|
@@ -17722,7 +17784,7 @@ function ViewTable({
|
|
|
17722
17784
|
}
|
|
17723
17785
|
),
|
|
17724
17786
|
hasData && groupField && dataByGroup ? Array.from(dataByGroup.entries()).map(
|
|
17725
|
-
([groupName, groupItems]) => /* @__PURE__ */
|
|
17787
|
+
([groupName, groupItems]) => /* @__PURE__ */ jsxs7("tbody", { children: [
|
|
17726
17788
|
/* @__PURE__ */ jsx61("tr", { className: "dataviews-view-table__group-header-row", children: /* @__PURE__ */ jsx61(
|
|
17727
17789
|
"td",
|
|
17728
17790
|
{
|
|
@@ -17793,11 +17855,11 @@ function ViewTable({
|
|
|
17793
17855
|
var table_default = ViewTable;
|
|
17794
17856
|
|
|
17795
17857
|
// src/components/dataviews-layouts/grid/index.tsx
|
|
17796
|
-
import
|
|
17858
|
+
import clsx40 from "clsx";
|
|
17797
17859
|
import { __ as __26, sprintf as sprintf8 } from "@wordpress/i18n";
|
|
17798
17860
|
|
|
17799
17861
|
// src/components/dataviews-layouts/grid/composite-grid.tsx
|
|
17800
|
-
import
|
|
17862
|
+
import clsx39 from "clsx";
|
|
17801
17863
|
import { __ as __25, sprintf as sprintf7 } from "@wordpress/i18n";
|
|
17802
17864
|
|
|
17803
17865
|
// src/components/dataviews-layouts/grid/preview-size-picker.tsx
|
|
@@ -17848,14 +17910,14 @@ function useGridColumns() {
|
|
|
17848
17910
|
}
|
|
17849
17911
|
|
|
17850
17912
|
// src/components/dataviews-layouts/utils/grid-items.tsx
|
|
17851
|
-
import
|
|
17913
|
+
import clsx38 from "clsx";
|
|
17852
17914
|
import { jsx as jsx63 } from "react/jsx-runtime";
|
|
17853
17915
|
var GridItems = forwardRef(({ className: className2, previewSize, ...props }, ref) => {
|
|
17854
17916
|
return /* @__PURE__ */ jsx63(
|
|
17855
17917
|
"div",
|
|
17856
17918
|
{
|
|
17857
17919
|
ref,
|
|
17858
|
-
className:
|
|
17920
|
+
className: clsx38("dataviews-view-grid-items", className2),
|
|
17859
17921
|
style: {
|
|
17860
17922
|
gridTemplateColumns: previewSize && `repeat(auto-fill, minmax(${previewSize}px, 1fr))`
|
|
17861
17923
|
},
|
|
@@ -17885,7 +17947,7 @@ function usePlaceholdersNeeded(data, isInfiniteScroll, gridColumns) {
|
|
|
17885
17947
|
}
|
|
17886
17948
|
|
|
17887
17949
|
// src/components/dataviews-layouts/grid/composite-grid.tsx
|
|
17888
|
-
import { Fragment as
|
|
17950
|
+
import { Fragment as Fragment5, jsx as jsx64, jsxs as jsxs8 } from "react/jsx-runtime";
|
|
17889
17951
|
var { Badge: WCBadge } = unlock5(privateApis2);
|
|
17890
17952
|
function chunk(array, size3) {
|
|
17891
17953
|
const chunks = [];
|
|
@@ -17965,7 +18027,7 @@ var GridItem = forwardRef(
|
|
|
17965
18027
|
};
|
|
17966
18028
|
}
|
|
17967
18029
|
}
|
|
17968
|
-
return /* @__PURE__ */
|
|
18030
|
+
return /* @__PURE__ */ jsxs8(
|
|
17969
18031
|
Stack,
|
|
17970
18032
|
{
|
|
17971
18033
|
direction: "column",
|
|
@@ -17973,7 +18035,7 @@ var GridItem = forwardRef(
|
|
|
17973
18035
|
ref: setRefs,
|
|
17974
18036
|
"aria-setsize": setsize,
|
|
17975
18037
|
"aria-posinset": posinset,
|
|
17976
|
-
className:
|
|
18038
|
+
className: clsx39(
|
|
17977
18039
|
props.className,
|
|
17978
18040
|
"dataviews-view-grid__row__gridcell",
|
|
17979
18041
|
"dataviews-view-grid__card",
|
|
@@ -18004,7 +18066,7 @@ var GridItem = forwardRef(
|
|
|
18004
18066
|
isItemClickable: isItemClickable2,
|
|
18005
18067
|
onClickItem,
|
|
18006
18068
|
renderItemLink,
|
|
18007
|
-
className:
|
|
18069
|
+
className: clsx39("dataviews-view-grid__media", {
|
|
18008
18070
|
"dataviews-view-grid__media--placeholder": !rendersMediaField
|
|
18009
18071
|
}),
|
|
18010
18072
|
...mediaA11yProps,
|
|
@@ -18046,7 +18108,7 @@ var GridItem = forwardRef(
|
|
|
18046
18108
|
children: renderedTitleField
|
|
18047
18109
|
}
|
|
18048
18110
|
) }),
|
|
18049
|
-
/* @__PURE__ */
|
|
18111
|
+
/* @__PURE__ */ jsxs8(Stack, { direction: "column", gap: "xs", children: [
|
|
18050
18112
|
showDescription && descriptionField?.render && /* @__PURE__ */ jsx64(
|
|
18051
18113
|
descriptionField.render,
|
|
18052
18114
|
{
|
|
@@ -18097,8 +18159,8 @@ var GridItem = forwardRef(
|
|
|
18097
18159
|
expanded: true,
|
|
18098
18160
|
style: { height: "auto" },
|
|
18099
18161
|
direction: "row",
|
|
18100
|
-
children: /* @__PURE__ */
|
|
18101
|
-
/* @__PURE__ */
|
|
18162
|
+
children: /* @__PURE__ */ jsxs8(Fragment5, { children: [
|
|
18163
|
+
/* @__PURE__ */ jsxs8(tooltip_exports.Root, { children: [
|
|
18102
18164
|
/* @__PURE__ */ jsx64(
|
|
18103
18165
|
tooltip_exports.Trigger,
|
|
18104
18166
|
{
|
|
@@ -18182,16 +18244,16 @@ function CompositeGrid({
|
|
|
18182
18244
|
isInfiniteScroll,
|
|
18183
18245
|
gridColumns
|
|
18184
18246
|
);
|
|
18185
|
-
return /* @__PURE__ */
|
|
18247
|
+
return /* @__PURE__ */ jsxs8(Fragment5, {
|
|
18186
18248
|
// Render infinite scroll layout (no rows, feed semantics)
|
|
18187
18249
|
children: [
|
|
18188
|
-
isInfiniteScroll && /* @__PURE__ */
|
|
18250
|
+
isInfiniteScroll && /* @__PURE__ */ jsxs8(
|
|
18189
18251
|
Composite2,
|
|
18190
18252
|
{
|
|
18191
18253
|
render: /* @__PURE__ */ jsx64(
|
|
18192
18254
|
GridItems,
|
|
18193
18255
|
{
|
|
18194
|
-
className:
|
|
18256
|
+
className: clsx39(
|
|
18195
18257
|
"dataviews-view-grid-infinite-scroll",
|
|
18196
18258
|
className2,
|
|
18197
18259
|
{
|
|
@@ -18275,7 +18337,7 @@ function CompositeGrid({
|
|
|
18275
18337
|
Composite2,
|
|
18276
18338
|
{
|
|
18277
18339
|
role: "grid",
|
|
18278
|
-
className:
|
|
18340
|
+
className: clsx39("dataviews-view-grid", className2, {
|
|
18279
18341
|
[`has-${view.layout?.density}-density`]: view.layout?.density && ["compact", "comfortable"].includes(
|
|
18280
18342
|
view.layout.density
|
|
18281
18343
|
)
|
|
@@ -18349,7 +18411,7 @@ function CompositeGrid({
|
|
|
18349
18411
|
}
|
|
18350
18412
|
|
|
18351
18413
|
// src/components/dataviews-layouts/grid/index.tsx
|
|
18352
|
-
import { Fragment as
|
|
18414
|
+
import { Fragment as Fragment6, jsx as jsx65, jsxs as jsxs9 } from "react/jsx-runtime";
|
|
18353
18415
|
function ViewGrid({
|
|
18354
18416
|
actions,
|
|
18355
18417
|
data,
|
|
@@ -18374,7 +18436,7 @@ function ViewGrid({
|
|
|
18374
18436
|
return /* @__PURE__ */ jsx65(
|
|
18375
18437
|
"div",
|
|
18376
18438
|
{
|
|
18377
|
-
className:
|
|
18439
|
+
className: clsx40("dataviews-no-results", {
|
|
18378
18440
|
"is-refreshing": isDelayedLoading
|
|
18379
18441
|
}),
|
|
18380
18442
|
children: empty
|
|
@@ -18382,7 +18444,7 @@ function ViewGrid({
|
|
|
18382
18444
|
);
|
|
18383
18445
|
}
|
|
18384
18446
|
const gridProps = {
|
|
18385
|
-
className:
|
|
18447
|
+
className: clsx40(className2, {
|
|
18386
18448
|
"is-refreshing": !isInfiniteScroll && isDelayedLoading
|
|
18387
18449
|
}),
|
|
18388
18450
|
inert: !isInfiniteScroll && !!isLoading ? "true" : void 0,
|
|
@@ -18397,11 +18459,11 @@ function ViewGrid({
|
|
|
18397
18459
|
getItemId,
|
|
18398
18460
|
actions
|
|
18399
18461
|
};
|
|
18400
|
-
return /* @__PURE__ */
|
|
18462
|
+
return /* @__PURE__ */ jsxs9(Fragment6, {
|
|
18401
18463
|
// Render multiple groups.
|
|
18402
18464
|
children: [
|
|
18403
18465
|
hasData && groupField && dataByGroup && /* @__PURE__ */ jsx65(Stack, { direction: "column", gap: "lg", children: Array.from(dataByGroup.entries()).map(
|
|
18404
|
-
([groupName, groupItems]) => /* @__PURE__ */
|
|
18466
|
+
([groupName, groupItems]) => /* @__PURE__ */ jsxs9(
|
|
18405
18467
|
Stack,
|
|
18406
18468
|
{
|
|
18407
18469
|
direction: "column",
|
|
@@ -18442,10 +18504,10 @@ function ViewGrid({
|
|
|
18442
18504
|
var grid_default = ViewGrid;
|
|
18443
18505
|
|
|
18444
18506
|
// src/components/dataviews-layouts/list/index.tsx
|
|
18445
|
-
import
|
|
18507
|
+
import clsx41 from "clsx";
|
|
18446
18508
|
import { __ as __27, sprintf as sprintf9 } from "@wordpress/i18n";
|
|
18447
18509
|
import { useRegistry as useRegistry3 } from "@wordpress/data";
|
|
18448
|
-
import { Fragment as
|
|
18510
|
+
import { Fragment as Fragment7, jsx as jsx66, jsxs as jsxs10 } from "react/jsx-runtime";
|
|
18449
18511
|
var { Menu: Menu6 } = unlock5(privateApis2);
|
|
18450
18512
|
function generateItemWrapperCompositeId(idPrefix) {
|
|
18451
18513
|
return `${idPrefix}-item-wrapper`;
|
|
@@ -18576,7 +18638,7 @@ function ListItem({
|
|
|
18576
18638
|
const renderedTitleField = showTitle && titleField?.render ? /* @__PURE__ */ jsx66(titleField.render, { item: item2, field: titleField }) : null;
|
|
18577
18639
|
const renderDescription = showDescription && descriptionField?.render;
|
|
18578
18640
|
const hasOnlyMediaAndTitle = !!renderedMediaField && !renderDescription && !otherFields.length;
|
|
18579
|
-
const usedActions = eligibleActions?.length > 0 && /* @__PURE__ */
|
|
18641
|
+
const usedActions = eligibleActions?.length > 0 && /* @__PURE__ */ jsxs10(
|
|
18580
18642
|
Stack,
|
|
18581
18643
|
{
|
|
18582
18644
|
direction: "row",
|
|
@@ -18591,8 +18653,8 @@ function ListItem({
|
|
|
18591
18653
|
item: item2
|
|
18592
18654
|
}
|
|
18593
18655
|
),
|
|
18594
|
-
!hasOnlyOnePrimaryAction && /* @__PURE__ */
|
|
18595
|
-
/* @__PURE__ */
|
|
18656
|
+
!hasOnlyOnePrimaryAction && /* @__PURE__ */ jsxs10("div", { role: "gridcell", children: [
|
|
18657
|
+
/* @__PURE__ */ jsxs10(Menu6, { placement: "bottom-end", children: [
|
|
18596
18658
|
/* @__PURE__ */ jsx66(
|
|
18597
18659
|
Menu6.TriggerButton,
|
|
18598
18660
|
{
|
|
@@ -18654,13 +18716,13 @@ function ListItem({
|
|
|
18654
18716
|
)
|
|
18655
18717
|
),
|
|
18656
18718
|
role: infiniteScrollEnabled ? "article" : "row",
|
|
18657
|
-
className:
|
|
18719
|
+
className: clsx41({
|
|
18658
18720
|
"is-selected": isSelected,
|
|
18659
18721
|
"is-hovered": isHovered
|
|
18660
18722
|
}),
|
|
18661
18723
|
onMouseEnter: handleHover,
|
|
18662
18724
|
onMouseLeave: handleHover,
|
|
18663
|
-
children: /* @__PURE__ */
|
|
18725
|
+
children: /* @__PURE__ */ jsxs10(
|
|
18664
18726
|
Stack,
|
|
18665
18727
|
{
|
|
18666
18728
|
direction: "row",
|
|
@@ -18677,7 +18739,7 @@ function ListItem({
|
|
|
18677
18739
|
onClick: () => onSelect(item2)
|
|
18678
18740
|
}
|
|
18679
18741
|
) }),
|
|
18680
|
-
/* @__PURE__ */
|
|
18742
|
+
/* @__PURE__ */ jsxs10(
|
|
18681
18743
|
Stack,
|
|
18682
18744
|
{
|
|
18683
18745
|
direction: "row",
|
|
@@ -18687,14 +18749,14 @@ function ListItem({
|
|
|
18687
18749
|
style: { flex: 1, minWidth: 0 },
|
|
18688
18750
|
children: [
|
|
18689
18751
|
renderedMediaField,
|
|
18690
|
-
/* @__PURE__ */
|
|
18752
|
+
/* @__PURE__ */ jsxs10(
|
|
18691
18753
|
Stack,
|
|
18692
18754
|
{
|
|
18693
18755
|
direction: "column",
|
|
18694
18756
|
gap: "xs",
|
|
18695
18757
|
className: "dataviews-view-list__field-wrapper",
|
|
18696
18758
|
children: [
|
|
18697
|
-
/* @__PURE__ */
|
|
18759
|
+
/* @__PURE__ */ jsxs10(Stack, { direction: "row", align: "center", children: [
|
|
18698
18760
|
/* @__PURE__ */ jsx66(
|
|
18699
18761
|
"div",
|
|
18700
18762
|
{
|
|
@@ -18717,7 +18779,7 @@ function ListItem({
|
|
|
18717
18779
|
{
|
|
18718
18780
|
className: "dataviews-view-list__fields",
|
|
18719
18781
|
id: descriptionId,
|
|
18720
|
-
children: otherFields.map((field) => /* @__PURE__ */
|
|
18782
|
+
children: otherFields.map((field) => /* @__PURE__ */ jsxs10(
|
|
18721
18783
|
"div",
|
|
18722
18784
|
{
|
|
18723
18785
|
className: "dataviews-view-list__field",
|
|
@@ -18869,7 +18931,7 @@ function ViewList(props) {
|
|
|
18869
18931
|
return /* @__PURE__ */ jsx66(
|
|
18870
18932
|
"div",
|
|
18871
18933
|
{
|
|
18872
|
-
className:
|
|
18934
|
+
className: clsx41("dataviews-no-results", {
|
|
18873
18935
|
"is-refreshing": isDelayedLoading
|
|
18874
18936
|
}),
|
|
18875
18937
|
children: empty
|
|
@@ -18892,9 +18954,9 @@ function ViewList(props) {
|
|
|
18892
18954
|
{
|
|
18893
18955
|
direction: "column",
|
|
18894
18956
|
gap: "lg",
|
|
18895
|
-
className:
|
|
18957
|
+
className: clsx41("dataviews-view-list", className2),
|
|
18896
18958
|
children: Array.from(dataByGroup.entries()).map(
|
|
18897
|
-
([groupName, groupItems]) => /* @__PURE__ */
|
|
18959
|
+
([groupName, groupItems]) => /* @__PURE__ */ jsxs10(
|
|
18898
18960
|
Stack,
|
|
18899
18961
|
{
|
|
18900
18962
|
direction: "column",
|
|
@@ -18936,14 +18998,14 @@ function ViewList(props) {
|
|
|
18936
18998
|
}
|
|
18937
18999
|
);
|
|
18938
19000
|
}
|
|
18939
|
-
return /* @__PURE__ */
|
|
19001
|
+
return /* @__PURE__ */ jsxs10(Fragment7, { children: [
|
|
18940
19002
|
/* @__PURE__ */ jsx66(
|
|
18941
19003
|
Composite2,
|
|
18942
19004
|
{
|
|
18943
19005
|
ref: compositeRef,
|
|
18944
19006
|
id: baseId,
|
|
18945
19007
|
render: /* @__PURE__ */ jsx66("div", {}),
|
|
18946
|
-
className:
|
|
19008
|
+
className: clsx41("dataviews-view-list", className2, {
|
|
18947
19009
|
[`has-${view.layout?.density}-density`]: view.layout?.density && ["compact", "comfortable"].includes(
|
|
18948
19010
|
view.layout.density
|
|
18949
19011
|
),
|
|
@@ -18981,11 +19043,11 @@ function ViewList(props) {
|
|
|
18981
19043
|
}
|
|
18982
19044
|
|
|
18983
19045
|
// src/components/dataviews-layouts/activity/index.tsx
|
|
18984
|
-
import
|
|
19046
|
+
import clsx43 from "clsx";
|
|
18985
19047
|
|
|
18986
19048
|
// src/components/dataviews-layouts/activity/activity-group.tsx
|
|
18987
19049
|
import { __ as __28, sprintf as sprintf10 } from "@wordpress/i18n";
|
|
18988
|
-
import { jsx as jsx67, jsxs as
|
|
19050
|
+
import { jsx as jsx67, jsxs as jsxs11 } from "react/jsx-runtime";
|
|
18989
19051
|
function ActivityGroup({
|
|
18990
19052
|
groupName,
|
|
18991
19053
|
groupData,
|
|
@@ -19006,7 +19068,7 @@ function ActivityGroup({
|
|
|
19006
19068
|
)
|
|
19007
19069
|
}
|
|
19008
19070
|
) : /* @__PURE__ */ jsx67(groupField.render, { item: groupData[0], field: groupField });
|
|
19009
|
-
return /* @__PURE__ */
|
|
19071
|
+
return /* @__PURE__ */ jsxs11(
|
|
19010
19072
|
Stack,
|
|
19011
19073
|
{
|
|
19012
19074
|
direction: "column",
|
|
@@ -19021,9 +19083,9 @@ function ActivityGroup({
|
|
|
19021
19083
|
}
|
|
19022
19084
|
|
|
19023
19085
|
// src/components/dataviews-layouts/activity/activity-item.tsx
|
|
19024
|
-
import
|
|
19086
|
+
import clsx42 from "clsx";
|
|
19025
19087
|
import { useRegistry as useRegistry4 } from "@wordpress/data";
|
|
19026
|
-
import { jsx as jsx68, jsxs as
|
|
19088
|
+
import { jsx as jsx68, jsxs as jsxs12 } from "react/jsx-runtime";
|
|
19027
19089
|
function ActivityItem(props) {
|
|
19028
19090
|
const {
|
|
19029
19091
|
view,
|
|
@@ -19094,13 +19156,13 @@ function ActivityItem(props) {
|
|
|
19094
19156
|
role: infiniteScrollEnabled ? "article" : void 0,
|
|
19095
19157
|
"aria-posinset": posinset,
|
|
19096
19158
|
"aria-setsize": infiniteScrollEnabled ? paginationInfo.totalItems : void 0,
|
|
19097
|
-
className:
|
|
19159
|
+
className: clsx42(
|
|
19098
19160
|
"dataviews-view-activity__item",
|
|
19099
19161
|
density === "compact" && "is-compact",
|
|
19100
19162
|
density === "balanced" && "is-balanced",
|
|
19101
19163
|
density === "comfortable" && "is-comfortable"
|
|
19102
19164
|
),
|
|
19103
|
-
children: /* @__PURE__ */
|
|
19165
|
+
children: /* @__PURE__ */ jsxs12(Stack, { direction: "row", gap: "lg", justify: "start", align: "flex-start", children: [
|
|
19104
19166
|
/* @__PURE__ */ jsx68(
|
|
19105
19167
|
Stack,
|
|
19106
19168
|
{
|
|
@@ -19111,7 +19173,7 @@ function ActivityItem(props) {
|
|
|
19111
19173
|
children: renderedMediaField
|
|
19112
19174
|
}
|
|
19113
19175
|
),
|
|
19114
|
-
/* @__PURE__ */
|
|
19176
|
+
/* @__PURE__ */ jsxs12(
|
|
19115
19177
|
Stack,
|
|
19116
19178
|
{
|
|
19117
19179
|
direction: "column",
|
|
@@ -19137,7 +19199,7 @@ function ActivityItem(props) {
|
|
|
19137
19199
|
field: descriptionField
|
|
19138
19200
|
}
|
|
19139
19201
|
) }),
|
|
19140
|
-
/* @__PURE__ */ jsx68("div", { className: "dataviews-view-activity__item-fields", children: otherFields.map((field) => /* @__PURE__ */
|
|
19202
|
+
/* @__PURE__ */ jsx68("div", { className: "dataviews-view-activity__item-fields", children: otherFields.map((field) => /* @__PURE__ */ jsxs12(
|
|
19141
19203
|
"div",
|
|
19142
19204
|
{
|
|
19143
19205
|
className: "dataviews-view-activity__item-field",
|
|
@@ -19221,7 +19283,7 @@ function ActivityItems(props) {
|
|
|
19221
19283
|
}
|
|
19222
19284
|
|
|
19223
19285
|
// src/components/dataviews-layouts/activity/index.tsx
|
|
19224
|
-
import { Fragment as
|
|
19286
|
+
import { Fragment as Fragment8, jsx as jsx69, jsxs as jsxs13 } from "react/jsx-runtime";
|
|
19225
19287
|
function ViewActivity(props) {
|
|
19226
19288
|
const { empty, data, fields, isLoading, view, className: className2 } = props;
|
|
19227
19289
|
const isDelayedLoading = useDelayedLoading(!!isLoading);
|
|
@@ -19233,7 +19295,7 @@ function ViewActivity(props) {
|
|
|
19233
19295
|
return /* @__PURE__ */ jsx69(
|
|
19234
19296
|
"div",
|
|
19235
19297
|
{
|
|
19236
|
-
className:
|
|
19298
|
+
className: clsx43("dataviews-no-results", {
|
|
19237
19299
|
"is-refreshing": isDelayedLoading
|
|
19238
19300
|
}),
|
|
19239
19301
|
children: empty
|
|
@@ -19241,7 +19303,7 @@ function ViewActivity(props) {
|
|
|
19241
19303
|
);
|
|
19242
19304
|
}
|
|
19243
19305
|
const isInert = !isInfiniteScroll && !!isLoading;
|
|
19244
|
-
const wrapperClassName =
|
|
19306
|
+
const wrapperClassName = clsx43("dataviews-view-activity", className2, {
|
|
19245
19307
|
"is-refreshing": !isInfiniteScroll && isDelayedLoading
|
|
19246
19308
|
});
|
|
19247
19309
|
const groupedEntries = dataByGroup ? Array.from(dataByGroup.entries()) : [];
|
|
@@ -19275,7 +19337,7 @@ function ViewActivity(props) {
|
|
|
19275
19337
|
}
|
|
19276
19338
|
);
|
|
19277
19339
|
}
|
|
19278
|
-
return /* @__PURE__ */
|
|
19340
|
+
return /* @__PURE__ */ jsxs13(Fragment8, { children: [
|
|
19279
19341
|
/* @__PURE__ */ jsx69(
|
|
19280
19342
|
"div",
|
|
19281
19343
|
{
|
|
@@ -19290,7 +19352,7 @@ function ViewActivity(props) {
|
|
|
19290
19352
|
}
|
|
19291
19353
|
|
|
19292
19354
|
// src/components/dataviews-layouts/picker-grid/index.tsx
|
|
19293
|
-
import
|
|
19355
|
+
import clsx44 from "clsx";
|
|
19294
19356
|
import { __ as __31, sprintf as sprintf12 } from "@wordpress/i18n";
|
|
19295
19357
|
|
|
19296
19358
|
// src/components/dataviews-picker-footer/index.tsx
|
|
@@ -19299,7 +19361,7 @@ import { __ as __30 } from "@wordpress/i18n";
|
|
|
19299
19361
|
|
|
19300
19362
|
// src/components/dataviews-pagination/index.tsx
|
|
19301
19363
|
import { sprintf as sprintf11, __ as __29, _x, isRTL as isRTL11 } from "@wordpress/i18n";
|
|
19302
|
-
import { jsx as jsx70, jsxs as
|
|
19364
|
+
import { jsx as jsx70, jsxs as jsxs14 } from "react/jsx-runtime";
|
|
19303
19365
|
function DataViewsPagination() {
|
|
19304
19366
|
const {
|
|
19305
19367
|
view,
|
|
@@ -19325,7 +19387,7 @@ function DataViewsPagination() {
|
|
|
19325
19387
|
};
|
|
19326
19388
|
}
|
|
19327
19389
|
);
|
|
19328
|
-
return !!totalItems && totalPages !== 1 && /* @__PURE__ */
|
|
19390
|
+
return !!totalItems && totalPages !== 1 && /* @__PURE__ */ jsxs14(
|
|
19329
19391
|
Stack,
|
|
19330
19392
|
{
|
|
19331
19393
|
direction: "row",
|
|
@@ -19375,7 +19437,7 @@ function DataViewsPagination() {
|
|
|
19375
19437
|
)
|
|
19376
19438
|
}
|
|
19377
19439
|
),
|
|
19378
|
-
/* @__PURE__ */
|
|
19440
|
+
/* @__PURE__ */ jsxs14(Stack, { direction: "row", gap: "xs", align: "center", children: [
|
|
19379
19441
|
/* @__PURE__ */ jsx70(
|
|
19380
19442
|
button_default,
|
|
19381
19443
|
{
|
|
@@ -19413,7 +19475,7 @@ function DataViewsPagination() {
|
|
|
19413
19475
|
var dataviews_pagination_default = memo(DataViewsPagination);
|
|
19414
19476
|
|
|
19415
19477
|
// src/components/dataviews-picker-footer/index.tsx
|
|
19416
|
-
import { jsx as jsx71, jsxs as
|
|
19478
|
+
import { jsx as jsx71, jsxs as jsxs15 } from "react/jsx-runtime";
|
|
19417
19479
|
var EMPTY_ARRAY2 = [];
|
|
19418
19480
|
function useIsMultiselectPicker(actions) {
|
|
19419
19481
|
return useMemo(() => {
|
|
@@ -19534,7 +19596,7 @@ function PickerBulkSelectionInfo() {
|
|
|
19534
19596
|
paginationInfo.totalItems,
|
|
19535
19597
|
!!view.infiniteScrollEnabled
|
|
19536
19598
|
);
|
|
19537
|
-
return /* @__PURE__ */
|
|
19599
|
+
return /* @__PURE__ */ jsxs15(
|
|
19538
19600
|
Stack,
|
|
19539
19601
|
{
|
|
19540
19602
|
direction: "row",
|
|
@@ -19582,7 +19644,7 @@ function PickerActions() {
|
|
|
19582
19644
|
) });
|
|
19583
19645
|
}
|
|
19584
19646
|
function DataViewsPickerBulkActionToolbar() {
|
|
19585
|
-
return /* @__PURE__ */
|
|
19647
|
+
return /* @__PURE__ */ jsxs15(Stack, { direction: "row", gap: "md", align: "center", children: [
|
|
19586
19648
|
/* @__PURE__ */ jsx71(PickerBulkSelectionInfo, {}),
|
|
19587
19649
|
/* @__PURE__ */ jsx71(PickerActions, {})
|
|
19588
19650
|
] });
|
|
@@ -19597,7 +19659,7 @@ function DataViewsPickerFooter() {
|
|
|
19597
19659
|
if (!actions.length && !hasPagination) {
|
|
19598
19660
|
return null;
|
|
19599
19661
|
}
|
|
19600
|
-
return /* @__PURE__ */
|
|
19662
|
+
return /* @__PURE__ */ jsxs15(
|
|
19601
19663
|
Stack,
|
|
19602
19664
|
{
|
|
19603
19665
|
direction: "row",
|
|
@@ -19615,7 +19677,7 @@ function DataViewsPickerFooter() {
|
|
|
19615
19677
|
}
|
|
19616
19678
|
|
|
19617
19679
|
// src/components/dataviews-layouts/picker-grid/index.tsx
|
|
19618
|
-
import { Fragment as
|
|
19680
|
+
import { Fragment as Fragment9, jsx as jsx72, jsxs as jsxs16 } from "react/jsx-runtime";
|
|
19619
19681
|
var { Badge: WCBadge2 } = unlock5(privateApis2);
|
|
19620
19682
|
function GridItem3({
|
|
19621
19683
|
view,
|
|
@@ -19647,7 +19709,7 @@ function GridItem3({
|
|
|
19647
19709
|
}
|
|
19648
19710
|
) : null;
|
|
19649
19711
|
const renderedTitleField = showTitle && titleField?.render ? /* @__PURE__ */ jsx72(titleField.render, { item: item2, field: titleField }) : null;
|
|
19650
|
-
return /* @__PURE__ */
|
|
19712
|
+
return /* @__PURE__ */ jsxs16(
|
|
19651
19713
|
Composite2.Item,
|
|
19652
19714
|
{
|
|
19653
19715
|
ref: elementRef,
|
|
@@ -19656,7 +19718,7 @@ function GridItem3({
|
|
|
19656
19718
|
role: "option",
|
|
19657
19719
|
"aria-posinset": posinset,
|
|
19658
19720
|
"aria-setsize": setsize,
|
|
19659
|
-
className:
|
|
19721
|
+
className: clsx44("dataviews-view-picker-grid__card", {
|
|
19660
19722
|
"is-selected": isSelected
|
|
19661
19723
|
}),
|
|
19662
19724
|
"aria-selected": isSelected,
|
|
@@ -19694,7 +19756,7 @@ function GridItem3({
|
|
|
19694
19756
|
children: /* @__PURE__ */ jsx72("div", { className: "dataviews-view-picker-grid__title-field dataviews-title-field", children: renderedTitleField })
|
|
19695
19757
|
}
|
|
19696
19758
|
),
|
|
19697
|
-
/* @__PURE__ */
|
|
19759
|
+
/* @__PURE__ */ jsxs16(Stack, { direction: "column", gap: "xs", children: [
|
|
19698
19760
|
showDescription && descriptionField?.render && /* @__PURE__ */ jsx72(
|
|
19699
19761
|
descriptionField.render,
|
|
19700
19762
|
{
|
|
@@ -19745,7 +19807,7 @@ function GridItem3({
|
|
|
19745
19807
|
expanded: true,
|
|
19746
19808
|
style: { height: "auto" },
|
|
19747
19809
|
direction: "row",
|
|
19748
|
-
children: /* @__PURE__ */
|
|
19810
|
+
children: /* @__PURE__ */ jsxs16(Fragment9, { children: [
|
|
19749
19811
|
/* @__PURE__ */ jsx72(component_default4, { className: "dataviews-view-picker-grid__field-name", children: field.header }),
|
|
19750
19812
|
/* @__PURE__ */ jsx72(
|
|
19751
19813
|
component_default4,
|
|
@@ -19784,7 +19846,7 @@ function GridGroup({
|
|
|
19784
19846
|
GridGroup,
|
|
19785
19847
|
"dataviews-view-picker-grid-group__header"
|
|
19786
19848
|
);
|
|
19787
|
-
return /* @__PURE__ */
|
|
19849
|
+
return /* @__PURE__ */ jsxs16(
|
|
19788
19850
|
Stack,
|
|
19789
19851
|
{
|
|
19790
19852
|
direction: "column",
|
|
@@ -19862,7 +19924,7 @@ function ViewPickerGrid({
|
|
|
19862
19924
|
isInfiniteScroll,
|
|
19863
19925
|
gridColumns
|
|
19864
19926
|
);
|
|
19865
|
-
return /* @__PURE__ */
|
|
19927
|
+
return /* @__PURE__ */ jsxs16(Fragment9, {
|
|
19866
19928
|
// Render multiple groups.
|
|
19867
19929
|
children: [
|
|
19868
19930
|
hasData && groupField && dataByGroup && /* @__PURE__ */ jsx72(
|
|
@@ -19872,7 +19934,7 @@ function ViewPickerGrid({
|
|
|
19872
19934
|
orientation: "horizontal",
|
|
19873
19935
|
role: "listbox",
|
|
19874
19936
|
"aria-multiselectable": isMultiselect,
|
|
19875
|
-
className:
|
|
19937
|
+
className: clsx44(
|
|
19876
19938
|
"dataviews-view-picker-grid",
|
|
19877
19939
|
className2,
|
|
19878
19940
|
{
|
|
@@ -19941,13 +20003,13 @@ function ViewPickerGrid({
|
|
|
19941
20003
|
}
|
|
19942
20004
|
),
|
|
19943
20005
|
// Render a single grid with all data.
|
|
19944
|
-
hasData && !dataByGroup && /* @__PURE__ */
|
|
20006
|
+
hasData && !dataByGroup && /* @__PURE__ */ jsxs16(
|
|
19945
20007
|
Composite2,
|
|
19946
20008
|
{
|
|
19947
20009
|
render: /* @__PURE__ */ jsx72(
|
|
19948
20010
|
GridItems,
|
|
19949
20011
|
{
|
|
19950
|
-
className:
|
|
20012
|
+
className: clsx44(
|
|
19951
20013
|
"dataviews-view-picker-grid",
|
|
19952
20014
|
className2,
|
|
19953
20015
|
{
|
|
@@ -20020,7 +20082,7 @@ function ViewPickerGrid({
|
|
|
20020
20082
|
!hasData && /* @__PURE__ */ jsx72(
|
|
20021
20083
|
"div",
|
|
20022
20084
|
{
|
|
20023
|
-
className:
|
|
20085
|
+
className: clsx44({
|
|
20024
20086
|
"dataviews-loading": isLoading,
|
|
20025
20087
|
"dataviews-no-results": !isLoading
|
|
20026
20088
|
}),
|
|
@@ -20034,9 +20096,9 @@ function ViewPickerGrid({
|
|
|
20034
20096
|
var picker_grid_default = ViewPickerGrid;
|
|
20035
20097
|
|
|
20036
20098
|
// src/components/dataviews-layouts/picker-table/index.tsx
|
|
20037
|
-
import
|
|
20099
|
+
import clsx45 from "clsx";
|
|
20038
20100
|
import { __ as __32, sprintf as sprintf13 } from "@wordpress/i18n";
|
|
20039
|
-
import { Fragment as
|
|
20101
|
+
import { Fragment as Fragment10, jsx as jsx73, jsxs as jsxs17 } from "react/jsx-runtime";
|
|
20040
20102
|
function TableColumnField2({
|
|
20041
20103
|
item: item2,
|
|
20042
20104
|
fields,
|
|
@@ -20047,7 +20109,7 @@ function TableColumnField2({
|
|
|
20047
20109
|
if (!field) {
|
|
20048
20110
|
return null;
|
|
20049
20111
|
}
|
|
20050
|
-
const className2 =
|
|
20112
|
+
const className2 = clsx45("dataviews-view-table__cell-content-wrapper", {
|
|
20051
20113
|
"dataviews-view-table__cell-align-end": align === "end",
|
|
20052
20114
|
"dataviews-view-table__cell-align-center": align === "center"
|
|
20053
20115
|
});
|
|
@@ -20086,14 +20148,14 @@ function TableRow2({
|
|
|
20086
20148
|
};
|
|
20087
20149
|
const columns = view.fields ?? [];
|
|
20088
20150
|
const hasPrimaryColumn = titleField && showTitle || mediaField && showMedia || descriptionField && showDescription;
|
|
20089
|
-
return /* @__PURE__ */
|
|
20151
|
+
return /* @__PURE__ */ jsxs17(
|
|
20090
20152
|
Composite2.Item,
|
|
20091
20153
|
{
|
|
20092
20154
|
ref: elementRef,
|
|
20093
20155
|
render: ({ children, ...props }) => /* @__PURE__ */ jsx73(
|
|
20094
20156
|
"tr",
|
|
20095
20157
|
{
|
|
20096
|
-
className:
|
|
20158
|
+
className: clsx45("dataviews-view-table__row", {
|
|
20097
20159
|
"is-selected": isSelected,
|
|
20098
20160
|
"is-hovered": isHovered
|
|
20099
20161
|
}),
|
|
@@ -20248,11 +20310,11 @@ function ViewPickerTable({
|
|
|
20248
20310
|
headerMenuRefs.current.delete(column);
|
|
20249
20311
|
}
|
|
20250
20312
|
};
|
|
20251
|
-
return /* @__PURE__ */
|
|
20252
|
-
/* @__PURE__ */
|
|
20313
|
+
return /* @__PURE__ */ jsxs17(Fragment10, { children: [
|
|
20314
|
+
/* @__PURE__ */ jsxs17(
|
|
20253
20315
|
"table",
|
|
20254
20316
|
{
|
|
20255
|
-
className:
|
|
20317
|
+
className: clsx45(
|
|
20256
20318
|
"dataviews-view-table",
|
|
20257
20319
|
"dataviews-view-picker-table",
|
|
20258
20320
|
className2,
|
|
@@ -20266,7 +20328,7 @@ function ViewPickerTable({
|
|
|
20266
20328
|
"aria-describedby": tableNoticeId,
|
|
20267
20329
|
role: isInfiniteScroll ? "feed" : "listbox",
|
|
20268
20330
|
children: [
|
|
20269
|
-
/* @__PURE__ */ jsx73("thead", { role: "presentation", children: /* @__PURE__ */
|
|
20331
|
+
/* @__PURE__ */ jsx73("thead", { role: "presentation", children: /* @__PURE__ */ jsxs17(
|
|
20270
20332
|
"tr",
|
|
20271
20333
|
{
|
|
20272
20334
|
className: "dataviews-view-table__row",
|
|
@@ -20333,7 +20395,7 @@ function ViewPickerTable({
|
|
|
20333
20395
|
}
|
|
20334
20396
|
) }),
|
|
20335
20397
|
hasData && groupField && dataByGroup ? Array.from(dataByGroup.entries()).map(
|
|
20336
|
-
([groupName, groupItems]) => /* @__PURE__ */
|
|
20398
|
+
([groupName, groupItems]) => /* @__PURE__ */ jsxs17(
|
|
20337
20399
|
Composite2,
|
|
20338
20400
|
{
|
|
20339
20401
|
virtualFocus: true,
|
|
@@ -20415,10 +20477,10 @@ function ViewPickerTable({
|
|
|
20415
20477
|
]
|
|
20416
20478
|
}
|
|
20417
20479
|
),
|
|
20418
|
-
/* @__PURE__ */
|
|
20480
|
+
/* @__PURE__ */ jsxs17(
|
|
20419
20481
|
"div",
|
|
20420
20482
|
{
|
|
20421
|
-
className:
|
|
20483
|
+
className: clsx45({
|
|
20422
20484
|
"dataviews-loading": isLoading,
|
|
20423
20485
|
"dataviews-no-results": !hasData && !isLoading
|
|
20424
20486
|
}),
|
|
@@ -20434,9 +20496,9 @@ function ViewPickerTable({
|
|
|
20434
20496
|
var picker_table_default = ViewPickerTable;
|
|
20435
20497
|
|
|
20436
20498
|
// src/components/dataviews-layouts/picker-activity/index.tsx
|
|
20437
|
-
import
|
|
20499
|
+
import clsx46 from "clsx";
|
|
20438
20500
|
import { __ as __33, sprintf as sprintf14 } from "@wordpress/i18n";
|
|
20439
|
-
import { Fragment as
|
|
20501
|
+
import { Fragment as Fragment11, jsx as jsx74, jsxs as jsxs18 } from "react/jsx-runtime";
|
|
20440
20502
|
function isDefined5(item2) {
|
|
20441
20503
|
return !!item2;
|
|
20442
20504
|
}
|
|
@@ -20496,7 +20558,7 @@ function PickerActivityItem({
|
|
|
20496
20558
|
"aria-posinset": posinset,
|
|
20497
20559
|
"aria-setsize": setsize,
|
|
20498
20560
|
"aria-selected": isSelected,
|
|
20499
|
-
className:
|
|
20561
|
+
className: clsx46(
|
|
20500
20562
|
"dataviews-view-picker-activity__item",
|
|
20501
20563
|
density === "compact" && "is-compact",
|
|
20502
20564
|
density === "balanced" && "is-balanced",
|
|
@@ -20514,7 +20576,7 @@ function PickerActivityItem({
|
|
|
20514
20576
|
}
|
|
20515
20577
|
},
|
|
20516
20578
|
render: /* @__PURE__ */ jsx74("div", {}),
|
|
20517
|
-
children: /* @__PURE__ */
|
|
20579
|
+
children: /* @__PURE__ */ jsxs18(Stack, { direction: "row", gap: "lg", justify: "start", align: "flex-start", children: [
|
|
20518
20580
|
/* @__PURE__ */ jsx74(
|
|
20519
20581
|
Stack,
|
|
20520
20582
|
{
|
|
@@ -20525,7 +20587,7 @@ function PickerActivityItem({
|
|
|
20525
20587
|
children: renderedMediaField
|
|
20526
20588
|
}
|
|
20527
20589
|
),
|
|
20528
|
-
/* @__PURE__ */
|
|
20590
|
+
/* @__PURE__ */ jsxs18(
|
|
20529
20591
|
Stack,
|
|
20530
20592
|
{
|
|
20531
20593
|
direction: "column",
|
|
@@ -20535,7 +20597,7 @@ function PickerActivityItem({
|
|
|
20535
20597
|
children: [
|
|
20536
20598
|
renderedTitleField && /* @__PURE__ */ jsx74("div", { className: "dataviews-view-picker-activity__item-title", children: renderedTitleField }),
|
|
20537
20599
|
renderedDescriptionField && /* @__PURE__ */ jsx74("div", { className: "dataviews-view-picker-activity__item-description", children: renderedDescriptionField }),
|
|
20538
|
-
/* @__PURE__ */ jsx74("div", { className: "dataviews-view-picker-activity__item-fields", children: otherFields.map((field) => /* @__PURE__ */
|
|
20600
|
+
/* @__PURE__ */ jsx74("div", { className: "dataviews-view-picker-activity__item-fields", children: otherFields.map((field) => /* @__PURE__ */ jsxs18(
|
|
20539
20601
|
"div",
|
|
20540
20602
|
{
|
|
20541
20603
|
className: "dataviews-view-picker-activity__item-field",
|
|
@@ -20576,7 +20638,7 @@ function PickerActivityGroup({
|
|
|
20576
20638
|
PickerActivityGroup,
|
|
20577
20639
|
"dataviews-view-picker-activity-group__header"
|
|
20578
20640
|
);
|
|
20579
|
-
return /* @__PURE__ */
|
|
20641
|
+
return /* @__PURE__ */ jsxs18(
|
|
20580
20642
|
Stack,
|
|
20581
20643
|
{
|
|
20582
20644
|
direction: "column",
|
|
@@ -20654,7 +20716,7 @@ function ViewPickerActivity({
|
|
|
20654
20716
|
return /* @__PURE__ */ jsx74(
|
|
20655
20717
|
"div",
|
|
20656
20718
|
{
|
|
20657
|
-
className:
|
|
20719
|
+
className: clsx46({
|
|
20658
20720
|
"dataviews-loading": isLoading,
|
|
20659
20721
|
"dataviews-no-results": !isLoading
|
|
20660
20722
|
}),
|
|
@@ -20662,7 +20724,7 @@ function ViewPickerActivity({
|
|
|
20662
20724
|
}
|
|
20663
20725
|
);
|
|
20664
20726
|
}
|
|
20665
|
-
return /* @__PURE__ */
|
|
20727
|
+
return /* @__PURE__ */ jsxs18(Fragment11, { children: [
|
|
20666
20728
|
/* @__PURE__ */ jsx74(
|
|
20667
20729
|
Composite2,
|
|
20668
20730
|
{
|
|
@@ -20673,7 +20735,7 @@ function ViewPickerActivity({
|
|
|
20673
20735
|
"aria-label": itemListLabel,
|
|
20674
20736
|
"aria-busy": isLoading,
|
|
20675
20737
|
render: isGrouped ? /* @__PURE__ */ jsx74(Stack, { direction: "column", gap: "sm" }) : void 0,
|
|
20676
|
-
className:
|
|
20738
|
+
className: clsx46(
|
|
20677
20739
|
"dataviews-view-picker-activity",
|
|
20678
20740
|
className2
|
|
20679
20741
|
),
|
|
@@ -20697,11 +20759,11 @@ function ViewPickerActivity({
|
|
|
20697
20759
|
|
|
20698
20760
|
// src/components/dataviews-layouts/utils/density-picker.tsx
|
|
20699
20761
|
import { __ as __34, _x as _x2 } from "@wordpress/i18n";
|
|
20700
|
-
import { jsx as jsx75, jsxs as
|
|
20762
|
+
import { jsx as jsx75, jsxs as jsxs19 } from "react/jsx-runtime";
|
|
20701
20763
|
function DensityPicker() {
|
|
20702
20764
|
const context = useContext(dataviews_context_default);
|
|
20703
20765
|
const view = context.view;
|
|
20704
|
-
return /* @__PURE__ */
|
|
20766
|
+
return /* @__PURE__ */ jsxs19(
|
|
20705
20767
|
component_default10,
|
|
20706
20768
|
{
|
|
20707
20769
|
size: "__unstable-large",
|
|
@@ -20821,9 +20883,9 @@ function PreviewSizePicker() {
|
|
|
20821
20883
|
}
|
|
20822
20884
|
|
|
20823
20885
|
// src/components/dataviews-layouts/utils/grid-config-options.tsx
|
|
20824
|
-
import { Fragment as
|
|
20886
|
+
import { Fragment as Fragment12, jsx as jsx77, jsxs as jsxs20 } from "react/jsx-runtime";
|
|
20825
20887
|
function GridConfigOptions() {
|
|
20826
|
-
return /* @__PURE__ */
|
|
20888
|
+
return /* @__PURE__ */ jsxs20(Fragment12, { children: [
|
|
20827
20889
|
/* @__PURE__ */ jsx77(DensityPicker, {}),
|
|
20828
20890
|
/* @__PURE__ */ jsx77(PreviewSizePicker, {})
|
|
20829
20891
|
] });
|
|
@@ -20886,13 +20948,13 @@ var VIEW_LAYOUTS = [
|
|
|
20886
20948
|
];
|
|
20887
20949
|
|
|
20888
20950
|
// src/components/dataviews-filters/filter.tsx
|
|
20889
|
-
import
|
|
20951
|
+
import clsx48 from "clsx";
|
|
20890
20952
|
import { __ as __39, sprintf as sprintf17 } from "@wordpress/i18n";
|
|
20891
20953
|
|
|
20892
20954
|
// src/components/dataviews-filters/search-widget.tsx
|
|
20893
20955
|
import * as Ariakit20 from "@ariakit/react";
|
|
20894
20956
|
import removeAccents2 from "remove-accents";
|
|
20895
|
-
import
|
|
20957
|
+
import clsx47 from "clsx";
|
|
20896
20958
|
import { __ as __37, sprintf as sprintf15 } from "@wordpress/i18n";
|
|
20897
20959
|
|
|
20898
20960
|
// src/components/dataviews-filters/utils.ts
|
|
@@ -20951,7 +21013,7 @@ function useElements({
|
|
|
20951
21013
|
}
|
|
20952
21014
|
|
|
20953
21015
|
// src/components/dataviews-filters/search-widget.tsx
|
|
20954
|
-
import { jsx as jsx78, jsxs as
|
|
21016
|
+
import { jsx as jsx78, jsxs as jsxs21 } from "react/jsx-runtime";
|
|
20955
21017
|
function normalizeSearchInput(input = "") {
|
|
20956
21018
|
return removeAccents2(input.trim().toLowerCase());
|
|
20957
21019
|
}
|
|
@@ -20971,7 +21033,7 @@ var MultiSelectionOption = ({ selected }) => {
|
|
|
20971
21033
|
return /* @__PURE__ */ jsx78(
|
|
20972
21034
|
"span",
|
|
20973
21035
|
{
|
|
20974
|
-
className:
|
|
21036
|
+
className: clsx47(
|
|
20975
21037
|
"dataviews-filters__search-widget-listitem-multi-selection",
|
|
20976
21038
|
{ "is-selected": selected }
|
|
20977
21039
|
),
|
|
@@ -20983,7 +21045,7 @@ var SingleSelectionOption = ({ selected }) => {
|
|
|
20983
21045
|
return /* @__PURE__ */ jsx78(
|
|
20984
21046
|
"span",
|
|
20985
21047
|
{
|
|
20986
|
-
className:
|
|
21048
|
+
className: clsx47(
|
|
20987
21049
|
"dataviews-filters__search-widget-listitem-single-selection",
|
|
20988
21050
|
{ "is-selected": selected }
|
|
20989
21051
|
)
|
|
@@ -21030,7 +21092,7 @@ function ListBox({ view, filter, onChangeView }) {
|
|
|
21030
21092
|
}
|
|
21031
21093
|
},
|
|
21032
21094
|
render: /* @__PURE__ */ jsx78(Composite2.Typeahead, {}),
|
|
21033
|
-
children: filter.elements.map((element) => /* @__PURE__ */
|
|
21095
|
+
children: filter.elements.map((element) => /* @__PURE__ */ jsxs21(
|
|
21034
21096
|
Composite2.Hover,
|
|
21035
21097
|
{
|
|
21036
21098
|
render: /* @__PURE__ */ jsx78(
|
|
@@ -21127,7 +21189,7 @@ function ComboboxList2({ view, filter, onChangeView }) {
|
|
|
21127
21189
|
(item2) => normalizeSearchInput(item2.label).includes(normalizedSearch)
|
|
21128
21190
|
);
|
|
21129
21191
|
}, [filter.elements, deferredSearchValue]);
|
|
21130
|
-
return /* @__PURE__ */
|
|
21192
|
+
return /* @__PURE__ */ jsxs21(
|
|
21131
21193
|
Ariakit20.ComboboxProvider,
|
|
21132
21194
|
{
|
|
21133
21195
|
selectedValue: currentValue,
|
|
@@ -21159,7 +21221,7 @@ function ComboboxList2({ view, filter, onChangeView }) {
|
|
|
21159
21221
|
},
|
|
21160
21222
|
setValue: setSearchValue,
|
|
21161
21223
|
children: [
|
|
21162
|
-
/* @__PURE__ */
|
|
21224
|
+
/* @__PURE__ */ jsxs21("div", { className: "dataviews-filters__search-widget-filter-combobox__wrapper", children: [
|
|
21163
21225
|
/* @__PURE__ */ jsx78(VisuallyHidden, { render: /* @__PURE__ */ jsx78(Ariakit20.ComboboxLabel, {}), children: __37("Search items") }),
|
|
21164
21226
|
/* @__PURE__ */ jsx78(
|
|
21165
21227
|
Ariakit20.Combobox,
|
|
@@ -21171,14 +21233,14 @@ function ComboboxList2({ view, filter, onChangeView }) {
|
|
|
21171
21233
|
),
|
|
21172
21234
|
/* @__PURE__ */ jsx78("div", { className: "dataviews-filters__search-widget-filter-combobox__icon", children: /* @__PURE__ */ jsx78(icon_default2, { icon: search_default }) })
|
|
21173
21235
|
] }),
|
|
21174
|
-
/* @__PURE__ */
|
|
21236
|
+
/* @__PURE__ */ jsxs21(
|
|
21175
21237
|
Ariakit20.ComboboxList,
|
|
21176
21238
|
{
|
|
21177
21239
|
className: "dataviews-filters__search-widget-filter-combobox-list",
|
|
21178
21240
|
alwaysVisible: true,
|
|
21179
21241
|
children: [
|
|
21180
21242
|
matches.map((element) => {
|
|
21181
|
-
return /* @__PURE__ */
|
|
21243
|
+
return /* @__PURE__ */ jsxs21(
|
|
21182
21244
|
Ariakit20.ComboboxItem,
|
|
21183
21245
|
{
|
|
21184
21246
|
resetValueOnSelect: false,
|
|
@@ -21202,7 +21264,7 @@ function ComboboxList2({ view, filter, onChangeView }) {
|
|
|
21202
21264
|
)
|
|
21203
21265
|
}
|
|
21204
21266
|
),
|
|
21205
|
-
/* @__PURE__ */
|
|
21267
|
+
/* @__PURE__ */ jsxs21(
|
|
21206
21268
|
"span",
|
|
21207
21269
|
{
|
|
21208
21270
|
className: "dataviews-filters__search-widget-listitem-value",
|
|
@@ -21880,7 +21942,7 @@ var isSingleSelectionOperator = (name) => OPERATORS.filter((op) => op.selection
|
|
|
21880
21942
|
var isRegisteredOperator = (name) => OPERATORS.some((op) => op.name === name);
|
|
21881
21943
|
|
|
21882
21944
|
// src/components/dataviews-filters/filter.tsx
|
|
21883
|
-
import { jsx as jsx81, jsxs as
|
|
21945
|
+
import { jsx as jsx81, jsxs as jsxs22 } from "react/jsx-runtime";
|
|
21884
21946
|
var ENTER = "Enter";
|
|
21885
21947
|
var SPACE = " ";
|
|
21886
21948
|
var FilterText = ({
|
|
@@ -21914,7 +21976,7 @@ function OperatorSelector({
|
|
|
21914
21976
|
(_filter) => _filter.field === filter.field
|
|
21915
21977
|
);
|
|
21916
21978
|
const value = currentFilter?.operator || filter.operators[0];
|
|
21917
|
-
return operatorOptions.length > 1 && /* @__PURE__ */
|
|
21979
|
+
return operatorOptions.length > 1 && /* @__PURE__ */ jsxs22(
|
|
21918
21980
|
Stack,
|
|
21919
21981
|
{
|
|
21920
21982
|
direction: "row",
|
|
@@ -22060,15 +22122,15 @@ function Filter({
|
|
|
22060
22122
|
onClose: () => {
|
|
22061
22123
|
toggleRef.current?.focus();
|
|
22062
22124
|
},
|
|
22063
|
-
renderToggle: ({ isOpen, onToggle }) => /* @__PURE__ */
|
|
22064
|
-
/* @__PURE__ */
|
|
22125
|
+
renderToggle: ({ isOpen, onToggle }) => /* @__PURE__ */ jsxs22("div", { className: "dataviews-filters__summary-chip-container", children: [
|
|
22126
|
+
/* @__PURE__ */ jsxs22(tooltip_exports.Root, { children: [
|
|
22065
22127
|
/* @__PURE__ */ jsx81(
|
|
22066
22128
|
tooltip_exports.Trigger,
|
|
22067
22129
|
{
|
|
22068
22130
|
render: /* @__PURE__ */ jsx81(
|
|
22069
22131
|
"div",
|
|
22070
22132
|
{
|
|
22071
|
-
className:
|
|
22133
|
+
className: clsx48(
|
|
22072
22134
|
"dataviews-filters__summary-chip",
|
|
22073
22135
|
{
|
|
22074
22136
|
"has-reset": canResetOrRemove,
|
|
@@ -22113,14 +22175,14 @@ function Filter({
|
|
|
22113
22175
|
filter.name.toLowerCase()
|
|
22114
22176
|
) })
|
|
22115
22177
|
] }),
|
|
22116
|
-
canResetOrRemove && /* @__PURE__ */
|
|
22178
|
+
canResetOrRemove && /* @__PURE__ */ jsxs22(tooltip_exports.Root, { children: [
|
|
22117
22179
|
/* @__PURE__ */ jsx81(
|
|
22118
22180
|
tooltip_exports.Trigger,
|
|
22119
22181
|
{
|
|
22120
22182
|
render: /* @__PURE__ */ jsx81(
|
|
22121
22183
|
"button",
|
|
22122
22184
|
{
|
|
22123
|
-
className:
|
|
22185
|
+
className: clsx48(
|
|
22124
22186
|
"dataviews-filters__summary-chip-remove",
|
|
22125
22187
|
{ "has-values": hasValues }
|
|
22126
22188
|
),
|
|
@@ -22148,7 +22210,7 @@ function Filter({
|
|
|
22148
22210
|
] })
|
|
22149
22211
|
] }),
|
|
22150
22212
|
renderContent: () => {
|
|
22151
|
-
return /* @__PURE__ */
|
|
22213
|
+
return /* @__PURE__ */ jsxs22(Stack, { direction: "column", justify: "flex-start", children: [
|
|
22152
22214
|
/* @__PURE__ */ jsx81(OperatorSelector, { ...commonProps }),
|
|
22153
22215
|
commonProps.filter.hasElements ? /* @__PURE__ */ jsx81(
|
|
22154
22216
|
SearchWidget,
|
|
@@ -22168,7 +22230,7 @@ function Filter({
|
|
|
22168
22230
|
|
|
22169
22231
|
// src/components/dataviews-filters/add-filter.tsx
|
|
22170
22232
|
import { __ as __40 } from "@wordpress/i18n";
|
|
22171
|
-
import { jsx as jsx82, jsxs as
|
|
22233
|
+
import { jsx as jsx82, jsxs as jsxs23 } from "react/jsx-runtime";
|
|
22172
22234
|
var { Menu: Menu7 } = unlock5(privateApis2);
|
|
22173
22235
|
function AddFilterMenu({
|
|
22174
22236
|
filters,
|
|
@@ -22178,7 +22240,7 @@ function AddFilterMenu({
|
|
|
22178
22240
|
triggerProps
|
|
22179
22241
|
}) {
|
|
22180
22242
|
const inactiveFilters = filters.filter((filter) => !filter.isVisible);
|
|
22181
|
-
return /* @__PURE__ */
|
|
22243
|
+
return /* @__PURE__ */ jsxs23(Menu7, { children: [
|
|
22182
22244
|
/* @__PURE__ */ jsx82(Menu7.TriggerButton, { ...triggerProps }),
|
|
22183
22245
|
/* @__PURE__ */ jsx82(Menu7.Popover, { children: inactiveFilters.map((filter) => {
|
|
22184
22246
|
return /* @__PURE__ */ jsx82(
|
|
@@ -22385,7 +22447,7 @@ var filters_default = memo(Filters);
|
|
|
22385
22447
|
|
|
22386
22448
|
// src/components/dataviews-filters/toggle.tsx
|
|
22387
22449
|
import { __ as __42, _x as _x3 } from "@wordpress/i18n";
|
|
22388
|
-
import { Fragment as
|
|
22450
|
+
import { Fragment as Fragment13, jsx as jsx85, jsxs as jsxs24 } from "react/jsx-runtime";
|
|
22389
22451
|
function FiltersToggle() {
|
|
22390
22452
|
const {
|
|
22391
22453
|
filters,
|
|
@@ -22467,7 +22529,7 @@ function FilterVisibilityToggle({
|
|
|
22467
22529
|
},
|
|
22468
22530
|
[buttonRef]
|
|
22469
22531
|
);
|
|
22470
|
-
return /* @__PURE__ */
|
|
22532
|
+
return /* @__PURE__ */ jsxs24(Fragment13, { children: [
|
|
22471
22533
|
children,
|
|
22472
22534
|
!!filtersCount && /* @__PURE__ */ jsx85("span", { className: "dataviews-filters-toggle__count", children: filtersCount })
|
|
22473
22535
|
] });
|
|
@@ -22545,8 +22607,8 @@ function DataViewsLayout({ className: className2 }) {
|
|
|
22545
22607
|
}
|
|
22546
22608
|
|
|
22547
22609
|
// src/components/dataviews-footer/index.tsx
|
|
22548
|
-
import
|
|
22549
|
-
import { jsx as jsx88, jsxs as
|
|
22610
|
+
import clsx49 from "clsx";
|
|
22611
|
+
import { jsx as jsx88, jsxs as jsxs25 } from "react/jsx-runtime";
|
|
22550
22612
|
var EMPTY_ARRAY5 = [];
|
|
22551
22613
|
function DataViewsFooter() {
|
|
22552
22614
|
const {
|
|
@@ -22568,13 +22630,13 @@ function DataViewsFooter() {
|
|
|
22568
22630
|
{
|
|
22569
22631
|
className: "dataviews-footer",
|
|
22570
22632
|
inert: isRefreshing ? "true" : void 0,
|
|
22571
|
-
children: /* @__PURE__ */
|
|
22633
|
+
children: /* @__PURE__ */ jsxs25(
|
|
22572
22634
|
Stack,
|
|
22573
22635
|
{
|
|
22574
22636
|
direction: "row",
|
|
22575
22637
|
justify: "end",
|
|
22576
22638
|
align: "center",
|
|
22577
|
-
className:
|
|
22639
|
+
className: clsx49("dataviews-footer__content", {
|
|
22578
22640
|
"is-refreshing": isDelayedRefreshing
|
|
22579
22641
|
}),
|
|
22580
22642
|
gap: "sm",
|
|
@@ -22634,7 +22696,7 @@ var dataviews_search_default = DataViewsSearch;
|
|
|
22634
22696
|
|
|
22635
22697
|
// src/components/dataviews-view-config/index.tsx
|
|
22636
22698
|
import { __ as __45, _x as _x4 } from "@wordpress/i18n";
|
|
22637
|
-
import { Fragment as
|
|
22699
|
+
import { Fragment as Fragment14, jsx as jsx90, jsxs as jsxs26 } from "react/jsx-runtime";
|
|
22638
22700
|
var { Menu: Menu8 } = unlock5(privateApis2);
|
|
22639
22701
|
var DATAVIEWS_CONFIG_POPOVER_PROPS = {
|
|
22640
22702
|
className: "dataviews-config__popover",
|
|
@@ -22648,7 +22710,7 @@ function ViewTypeMenu() {
|
|
|
22648
22710
|
return null;
|
|
22649
22711
|
}
|
|
22650
22712
|
const activeView = VIEW_LAYOUTS.find((v) => view.type === v.type);
|
|
22651
|
-
return /* @__PURE__ */
|
|
22713
|
+
return /* @__PURE__ */ jsxs26(Menu8, { children: [
|
|
22652
22714
|
/* @__PURE__ */ jsx90(
|
|
22653
22715
|
Menu8.TriggerButton,
|
|
22654
22716
|
{
|
|
@@ -22865,7 +22927,7 @@ function DataviewsViewConfigDropdown() {
|
|
|
22865
22927
|
id: popoverId
|
|
22866
22928
|
},
|
|
22867
22929
|
renderToggle: ({ onToggle, isOpen }) => {
|
|
22868
|
-
return /* @__PURE__ */
|
|
22930
|
+
return /* @__PURE__ */ jsxs26("div", { className: "dataviews-view-config__toggle-wrapper", children: [
|
|
22869
22931
|
/* @__PURE__ */ jsx90(
|
|
22870
22932
|
button_default,
|
|
22871
22933
|
{
|
|
@@ -22888,14 +22950,14 @@ function DataviewsViewConfigDropdown() {
|
|
|
22888
22950
|
{
|
|
22889
22951
|
paddingSize: "medium",
|
|
22890
22952
|
className: "dataviews-config__popover-content-wrapper",
|
|
22891
|
-
children: /* @__PURE__ */
|
|
22953
|
+
children: /* @__PURE__ */ jsxs26(
|
|
22892
22954
|
Stack,
|
|
22893
22955
|
{
|
|
22894
22956
|
direction: "column",
|
|
22895
22957
|
className: "dataviews-view-config",
|
|
22896
22958
|
gap: "xl",
|
|
22897
22959
|
children: [
|
|
22898
|
-
/* @__PURE__ */
|
|
22960
|
+
/* @__PURE__ */ jsxs26(
|
|
22899
22961
|
Stack,
|
|
22900
22962
|
{
|
|
22901
22963
|
direction: "row",
|
|
@@ -22915,8 +22977,8 @@ function DataviewsViewConfigDropdown() {
|
|
|
22915
22977
|
]
|
|
22916
22978
|
}
|
|
22917
22979
|
),
|
|
22918
|
-
/* @__PURE__ */
|
|
22919
|
-
/* @__PURE__ */
|
|
22980
|
+
/* @__PURE__ */ jsxs26(Stack, { direction: "column", gap: "lg", children: [
|
|
22981
|
+
/* @__PURE__ */ jsxs26(
|
|
22920
22982
|
Stack,
|
|
22921
22983
|
{
|
|
22922
22984
|
direction: "row",
|
|
@@ -22941,7 +23003,7 @@ function DataviewsViewConfigDropdown() {
|
|
|
22941
23003
|
);
|
|
22942
23004
|
}
|
|
22943
23005
|
function _DataViewsViewConfig() {
|
|
22944
|
-
return /* @__PURE__ */
|
|
23006
|
+
return /* @__PURE__ */ jsxs26(Fragment14, { children: [
|
|
22945
23007
|
/* @__PURE__ */ jsx90(ViewTypeMenu, {}),
|
|
22946
23008
|
/* @__PURE__ */ jsx90(DataviewsViewConfigDropdown, {})
|
|
22947
23009
|
] });
|
|
@@ -23052,9 +23114,9 @@ import { __ as __47 } from "@wordpress/i18n";
|
|
|
23052
23114
|
import { dateI18n, getDate as getDate3, getSettings } from "@wordpress/date";
|
|
23053
23115
|
|
|
23054
23116
|
// src/components/dataform-controls/utils/relative-date-control.tsx
|
|
23055
|
-
import
|
|
23117
|
+
import clsx50 from "clsx";
|
|
23056
23118
|
import { __ as __46 } from "@wordpress/i18n";
|
|
23057
|
-
import { jsx as jsx93, jsxs as
|
|
23119
|
+
import { jsx as jsx93, jsxs as jsxs27 } from "react/jsx-runtime";
|
|
23058
23120
|
var TIME_UNITS_OPTIONS = {
|
|
23059
23121
|
[OPERATOR_IN_THE_PAST]: [
|
|
23060
23122
|
{ value: "days", label: __46("Days") },
|
|
@@ -23104,11 +23166,11 @@ function RelativeDateControl({
|
|
|
23104
23166
|
base_control_default,
|
|
23105
23167
|
{
|
|
23106
23168
|
id,
|
|
23107
|
-
className:
|
|
23169
|
+
className: clsx50(className2, "dataviews-controls__relative-date"),
|
|
23108
23170
|
label,
|
|
23109
23171
|
hideLabelFromVision,
|
|
23110
23172
|
help: description,
|
|
23111
|
-
children: /* @__PURE__ */
|
|
23173
|
+
children: /* @__PURE__ */ jsxs27(Stack, { direction: "row", gap: "sm", children: [
|
|
23112
23174
|
/* @__PURE__ */ jsx93(
|
|
23113
23175
|
number_control_default,
|
|
23114
23176
|
{
|
|
@@ -23175,7 +23237,7 @@ function parseDateTime(dateTimeString) {
|
|
|
23175
23237
|
}
|
|
23176
23238
|
|
|
23177
23239
|
// src/components/dataform-controls/datetime.tsx
|
|
23178
|
-
import { jsx as jsx94, jsxs as
|
|
23240
|
+
import { jsx as jsx94, jsxs as jsxs28 } from "react/jsx-runtime";
|
|
23179
23241
|
var { DateCalendar: DateCalendar2, ValidatedInputControl: ValidatedInputControl2 } = unlock5(privateApis2);
|
|
23180
23242
|
var formatDateTime = (value) => {
|
|
23181
23243
|
if (!value) {
|
|
@@ -23283,7 +23345,7 @@ function CalendarDateTimeControl({
|
|
|
23283
23345
|
label: displayLabel,
|
|
23284
23346
|
help: description,
|
|
23285
23347
|
hideLabelFromVision,
|
|
23286
|
-
children: /* @__PURE__ */
|
|
23348
|
+
children: /* @__PURE__ */ jsxs28(Stack, { direction: "column", gap: "lg", children: [
|
|
23287
23349
|
/* @__PURE__ */ jsx94(
|
|
23288
23350
|
ValidatedInputControl2,
|
|
23289
23351
|
{
|
|
@@ -23356,7 +23418,7 @@ function DateTime({
|
|
|
23356
23418
|
}
|
|
23357
23419
|
|
|
23358
23420
|
// src/components/dataform-controls/date.tsx
|
|
23359
|
-
import
|
|
23421
|
+
import clsx51 from "clsx";
|
|
23360
23422
|
import {
|
|
23361
23423
|
format,
|
|
23362
23424
|
isValid as isValidDate2,
|
|
@@ -23368,7 +23430,7 @@ import {
|
|
|
23368
23430
|
} from "date-fns";
|
|
23369
23431
|
import { __ as __48 } from "@wordpress/i18n";
|
|
23370
23432
|
import { getDate as getDate4, getSettings as getSettings2 } from "@wordpress/date";
|
|
23371
|
-
import { jsx as jsx95, jsxs as
|
|
23433
|
+
import { jsx as jsx95, jsxs as jsxs29 } from "react/jsx-runtime";
|
|
23372
23434
|
var { DateCalendar: DateCalendar3, DateRangeCalendar: DateRangeCalendar2 } = unlock5(privateApis2);
|
|
23373
23435
|
var DATE_PRESETS = [
|
|
23374
23436
|
{
|
|
@@ -23526,12 +23588,12 @@ function ValidatedDateControl({
|
|
|
23526
23588
|
setIsTouched(true);
|
|
23527
23589
|
}
|
|
23528
23590
|
};
|
|
23529
|
-
return /* @__PURE__ */
|
|
23591
|
+
return /* @__PURE__ */ jsxs29("div", { onBlur, children: [
|
|
23530
23592
|
children,
|
|
23531
|
-
/* @__PURE__ */ jsx95("div", { "aria-live": "polite", children: customValidity && /* @__PURE__ */
|
|
23593
|
+
/* @__PURE__ */ jsx95("div", { "aria-live": "polite", children: customValidity && /* @__PURE__ */ jsxs29(
|
|
23532
23594
|
"p",
|
|
23533
23595
|
{
|
|
23534
|
-
className:
|
|
23596
|
+
className: clsx51(
|
|
23535
23597
|
"components-validated-control__indicator",
|
|
23536
23598
|
customValidity.type === "invalid" ? "is-invalid" : void 0
|
|
23537
23599
|
),
|
|
@@ -23645,8 +23707,8 @@ function CalendarDateControl({
|
|
|
23645
23707
|
label: displayLabel,
|
|
23646
23708
|
help: description,
|
|
23647
23709
|
hideLabelFromVision,
|
|
23648
|
-
children: /* @__PURE__ */
|
|
23649
|
-
/* @__PURE__ */
|
|
23710
|
+
children: /* @__PURE__ */ jsxs29(Stack, { direction: "column", gap: "lg", children: [
|
|
23711
|
+
/* @__PURE__ */ jsxs29(
|
|
23650
23712
|
Stack,
|
|
23651
23713
|
{
|
|
23652
23714
|
direction: "row",
|
|
@@ -23851,8 +23913,8 @@ function CalendarDateRangeControl({
|
|
|
23851
23913
|
label: displayLabel,
|
|
23852
23914
|
help: description,
|
|
23853
23915
|
hideLabelFromVision,
|
|
23854
|
-
children: /* @__PURE__ */
|
|
23855
|
-
/* @__PURE__ */
|
|
23916
|
+
children: /* @__PURE__ */ jsxs29(Stack, { direction: "column", gap: "lg", children: [
|
|
23917
|
+
/* @__PURE__ */ jsxs29(
|
|
23856
23918
|
Stack,
|
|
23857
23919
|
{
|
|
23858
23920
|
direction: "row",
|
|
@@ -23892,7 +23954,7 @@ function CalendarDateRangeControl({
|
|
|
23892
23954
|
]
|
|
23893
23955
|
}
|
|
23894
23956
|
),
|
|
23895
|
-
/* @__PURE__ */
|
|
23957
|
+
/* @__PURE__ */ jsxs29(
|
|
23896
23958
|
Stack,
|
|
23897
23959
|
{
|
|
23898
23960
|
direction: "row",
|
|
@@ -24195,7 +24257,7 @@ function Url({
|
|
|
24195
24257
|
|
|
24196
24258
|
// src/components/dataform-controls/utils/validated-number.tsx
|
|
24197
24259
|
import { __ as __49 } from "@wordpress/i18n";
|
|
24198
|
-
import { jsx as jsx102, jsxs as
|
|
24260
|
+
import { jsx as jsx102, jsxs as jsxs30 } from "react/jsx-runtime";
|
|
24199
24261
|
var { ValidatedNumberControl: ValidatedNumberControl2 } = unlock5(privateApis2);
|
|
24200
24262
|
function toNumberOrEmpty(value) {
|
|
24201
24263
|
if (value === "" || value === void 0) {
|
|
@@ -24223,7 +24285,7 @@ function BetweenControls({
|
|
|
24223
24285
|
base_control_default,
|
|
24224
24286
|
{
|
|
24225
24287
|
help: __49("The max. value must be greater than the min. value."),
|
|
24226
|
-
children: /* @__PURE__ */
|
|
24288
|
+
children: /* @__PURE__ */ jsxs30(component_default3, { direction: "row", gap: 4, children: [
|
|
24227
24289
|
/* @__PURE__ */ jsx102(
|
|
24228
24290
|
number_control_default,
|
|
24229
24291
|
{
|
|
@@ -25621,7 +25683,7 @@ var telephone_default = {
|
|
|
25621
25683
|
// src/field-types/color.tsx
|
|
25622
25684
|
import { colord as colord8 } from "colord";
|
|
25623
25685
|
import { __ as __57 } from "@wordpress/i18n";
|
|
25624
|
-
import { jsx as jsx115, jsxs as
|
|
25686
|
+
import { jsx as jsx115, jsxs as jsxs31 } from "react/jsx-runtime";
|
|
25625
25687
|
function render4({ item: item2, field }) {
|
|
25626
25688
|
if (field.hasElements) {
|
|
25627
25689
|
return /* @__PURE__ */ jsx115(RenderFromElements, { item: item2, field });
|
|
@@ -25630,7 +25692,7 @@ function render4({ item: item2, field }) {
|
|
|
25630
25692
|
if (!value || !colord8(value).isValid()) {
|
|
25631
25693
|
return value;
|
|
25632
25694
|
}
|
|
25633
|
-
return /* @__PURE__ */
|
|
25695
|
+
return /* @__PURE__ */ jsxs31("div", { style: { display: "flex", alignItems: "center", gap: "8px" }, children: [
|
|
25634
25696
|
/* @__PURE__ */ jsx115(
|
|
25635
25697
|
"div",
|
|
25636
25698
|
{
|
|
@@ -26248,7 +26310,7 @@ function useInfiniteScroll({
|
|
|
26248
26310
|
}
|
|
26249
26311
|
|
|
26250
26312
|
// src/dataviews/index.tsx
|
|
26251
|
-
import { Fragment as
|
|
26313
|
+
import { Fragment as Fragment15, jsx as jsx116, jsxs as jsxs32 } from "react/jsx-runtime";
|
|
26252
26314
|
var defaultGetItemId = (item2) => item2.id;
|
|
26253
26315
|
var defaultIsItemClickable = () => true;
|
|
26254
26316
|
var EMPTY_ARRAY6 = [];
|
|
@@ -26263,19 +26325,19 @@ function DefaultUI({
|
|
|
26263
26325
|
}) {
|
|
26264
26326
|
const { view } = useContext(dataviews_context_default);
|
|
26265
26327
|
const isInfiniteScroll = view.infiniteScrollEnabled;
|
|
26266
|
-
return /* @__PURE__ */
|
|
26267
|
-
/* @__PURE__ */
|
|
26328
|
+
return /* @__PURE__ */ jsxs32(Fragment15, { children: [
|
|
26329
|
+
/* @__PURE__ */ jsxs32(
|
|
26268
26330
|
Stack,
|
|
26269
26331
|
{
|
|
26270
26332
|
direction: "row",
|
|
26271
26333
|
align: "top",
|
|
26272
26334
|
justify: "space-between",
|
|
26273
|
-
className:
|
|
26335
|
+
className: clsx52("dataviews__view-actions", {
|
|
26274
26336
|
"dataviews__view-actions--infinite-scroll": isInfiniteScroll
|
|
26275
26337
|
}),
|
|
26276
26338
|
gap: "xs",
|
|
26277
26339
|
children: [
|
|
26278
|
-
/* @__PURE__ */
|
|
26340
|
+
/* @__PURE__ */ jsxs32(
|
|
26279
26341
|
Stack,
|
|
26280
26342
|
{
|
|
26281
26343
|
direction: "row",
|
|
@@ -26288,7 +26350,7 @@ function DefaultUI({
|
|
|
26288
26350
|
]
|
|
26289
26351
|
}
|
|
26290
26352
|
),
|
|
26291
|
-
/* @__PURE__ */
|
|
26353
|
+
/* @__PURE__ */ jsxs32(Stack, { direction: "row", gap: "xs", style: { flexShrink: 0 }, children: [
|
|
26292
26354
|
/* @__PURE__ */ jsx116(dataviews_view_config_default, {}),
|
|
26293
26355
|
header
|
|
26294
26356
|
] })
|
|
@@ -26466,8 +26528,8 @@ DataViewsSubComponents.Footer = DataViewsFooter;
|
|
|
26466
26528
|
var dataviews_default = DataViewsSubComponents;
|
|
26467
26529
|
|
|
26468
26530
|
// src/dataviews-picker/index.tsx
|
|
26469
|
-
import
|
|
26470
|
-
import { Fragment as
|
|
26531
|
+
import clsx53 from "clsx";
|
|
26532
|
+
import { Fragment as Fragment16, jsx as jsx117, jsxs as jsxs33 } from "react/jsx-runtime";
|
|
26471
26533
|
var isItemClickable = () => false;
|
|
26472
26534
|
var dataViewsPickerLayouts = VIEW_LAYOUTS.filter(
|
|
26473
26535
|
(viewLayout) => viewLayout.isPicker
|
|
@@ -26484,19 +26546,19 @@ function DefaultUI2({
|
|
|
26484
26546
|
}) {
|
|
26485
26547
|
const { view } = useContext(dataviews_context_default);
|
|
26486
26548
|
const isInfiniteScroll = view.infiniteScrollEnabled;
|
|
26487
|
-
return /* @__PURE__ */
|
|
26488
|
-
/* @__PURE__ */
|
|
26549
|
+
return /* @__PURE__ */ jsxs33(Fragment16, { children: [
|
|
26550
|
+
/* @__PURE__ */ jsxs33(
|
|
26489
26551
|
Stack,
|
|
26490
26552
|
{
|
|
26491
26553
|
direction: "row",
|
|
26492
26554
|
align: "top",
|
|
26493
26555
|
justify: "space-between",
|
|
26494
|
-
className:
|
|
26556
|
+
className: clsx53("dataviews__view-actions", {
|
|
26495
26557
|
"dataviews__view-actions--infinite-scroll": isInfiniteScroll
|
|
26496
26558
|
}),
|
|
26497
26559
|
gap: "xs",
|
|
26498
26560
|
children: [
|
|
26499
|
-
/* @__PURE__ */
|
|
26561
|
+
/* @__PURE__ */ jsxs33(
|
|
26500
26562
|
Stack,
|
|
26501
26563
|
{
|
|
26502
26564
|
direction: "row",
|
|
@@ -26665,7 +26727,7 @@ function DataFormProvider({
|
|
|
26665
26727
|
var dataform_context_default = DataFormContext;
|
|
26666
26728
|
|
|
26667
26729
|
// src/components/dataform-layouts/regular/index.tsx
|
|
26668
|
-
import
|
|
26730
|
+
import clsx54 from "clsx";
|
|
26669
26731
|
|
|
26670
26732
|
// src/components/dataform-layouts/normalize-form.ts
|
|
26671
26733
|
import { __ as __58 } from "@wordpress/i18n";
|
|
@@ -26786,7 +26848,7 @@ function normalizeForm(form) {
|
|
|
26786
26848
|
var normalize_form_default = normalizeForm;
|
|
26787
26849
|
|
|
26788
26850
|
// src/components/dataform-layouts/regular/index.tsx
|
|
26789
|
-
import { Fragment as
|
|
26851
|
+
import { Fragment as Fragment17, jsx as jsx119, jsxs as jsxs34 } from "react/jsx-runtime";
|
|
26790
26852
|
function Header3({ title }) {
|
|
26791
26853
|
return /* @__PURE__ */ jsx119(
|
|
26792
26854
|
Stack,
|
|
@@ -26816,7 +26878,7 @@ function FormRegularField({
|
|
|
26816
26878
|
[field]
|
|
26817
26879
|
);
|
|
26818
26880
|
if (!!field.children) {
|
|
26819
|
-
return /* @__PURE__ */
|
|
26881
|
+
return /* @__PURE__ */ jsxs34(Fragment17, { children: [
|
|
26820
26882
|
!hideLabelFromVision && field.label && /* @__PURE__ */ jsx119(Header3, { title: field.label }),
|
|
26821
26883
|
/* @__PURE__ */ jsx119(
|
|
26822
26884
|
DataFormLayout,
|
|
@@ -26837,7 +26899,7 @@ function FormRegularField({
|
|
|
26837
26899
|
return null;
|
|
26838
26900
|
}
|
|
26839
26901
|
if (labelPosition === "side") {
|
|
26840
|
-
return /* @__PURE__ */
|
|
26902
|
+
return /* @__PURE__ */ jsxs34(
|
|
26841
26903
|
Stack,
|
|
26842
26904
|
{
|
|
26843
26905
|
direction: "row",
|
|
@@ -26847,7 +26909,7 @@ function FormRegularField({
|
|
|
26847
26909
|
/* @__PURE__ */ jsx119(
|
|
26848
26910
|
"div",
|
|
26849
26911
|
{
|
|
26850
|
-
className:
|
|
26912
|
+
className: clsx54(
|
|
26851
26913
|
"dataforms-layouts-regular__field-label",
|
|
26852
26914
|
`dataforms-layouts-regular__field-label--label-position-${labelPosition}`
|
|
26853
26915
|
),
|
|
@@ -26876,7 +26938,7 @@ function FormRegularField({
|
|
|
26876
26938
|
}
|
|
26877
26939
|
);
|
|
26878
26940
|
}
|
|
26879
|
-
return /* @__PURE__ */ jsx119("div", { className: "dataforms-layouts-regular__field", children: fieldDefinition.readOnly === true ? /* @__PURE__ */ jsx119(
|
|
26941
|
+
return /* @__PURE__ */ jsx119("div", { className: "dataforms-layouts-regular__field", children: fieldDefinition.readOnly === true ? /* @__PURE__ */ jsx119(Fragment17, { children: /* @__PURE__ */ jsxs34(Fragment17, { children: [
|
|
26880
26942
|
!hideLabelFromVision && labelPosition !== "none" && /* @__PURE__ */ jsx119(base_control_default.VisualLabel, { children: fieldDefinition.label }),
|
|
26881
26943
|
/* @__PURE__ */ jsx119(
|
|
26882
26944
|
fieldDefinition.render,
|
|
@@ -26902,13 +26964,13 @@ function FormRegularField({
|
|
|
26902
26964
|
import deepMerge2 from "deepmerge";
|
|
26903
26965
|
|
|
26904
26966
|
// src/components/dataform-layouts/panel/summary-button.tsx
|
|
26905
|
-
import
|
|
26967
|
+
import clsx56 from "clsx";
|
|
26906
26968
|
import { sprintf as sprintf18, _x as _x5 } from "@wordpress/i18n";
|
|
26907
26969
|
|
|
26908
26970
|
// src/components/dataform-layouts/panel/utils/get-label-classname.ts
|
|
26909
|
-
import
|
|
26971
|
+
import clsx55 from "clsx";
|
|
26910
26972
|
function getLabelClassName(labelPosition, showError) {
|
|
26911
|
-
return
|
|
26973
|
+
return clsx55(
|
|
26912
26974
|
"dataforms-layouts-panel__field-label",
|
|
26913
26975
|
`dataforms-layouts-panel__field-label--label-position-${labelPosition}`,
|
|
26914
26976
|
{ "has-error": showError }
|
|
@@ -26917,15 +26979,15 @@ function getLabelClassName(labelPosition, showError) {
|
|
|
26917
26979
|
var get_label_classname_default = getLabelClassName;
|
|
26918
26980
|
|
|
26919
26981
|
// src/components/dataform-layouts/panel/utils/get-label-content.tsx
|
|
26920
|
-
import { jsx as jsx120, jsxs as
|
|
26982
|
+
import { jsx as jsx120, jsxs as jsxs35 } from "react/jsx-runtime";
|
|
26921
26983
|
function getLabelContent(showError, errorMessage, fieldLabel) {
|
|
26922
|
-
return showError ? /* @__PURE__ */
|
|
26984
|
+
return showError ? /* @__PURE__ */ jsxs35(tooltip_exports.Root, { children: [
|
|
26923
26985
|
/* @__PURE__ */ jsx120(
|
|
26924
26986
|
tooltip_exports.Trigger,
|
|
26925
26987
|
{
|
|
26926
|
-
render: /* @__PURE__ */
|
|
26988
|
+
render: /* @__PURE__ */ jsxs35("span", { className: "dataforms-layouts-panel__field-label-error-content", children: [
|
|
26927
26989
|
/* @__PURE__ */ jsx120(icon_default2, { icon: error_default, size: 16 }),
|
|
26928
|
-
/* @__PURE__ */
|
|
26990
|
+
/* @__PURE__ */ jsxs35(VisuallyHidden, { children: [
|
|
26929
26991
|
errorMessage,
|
|
26930
26992
|
": "
|
|
26931
26993
|
] }),
|
|
@@ -26974,7 +27036,7 @@ function getFirstValidationError(validity) {
|
|
|
26974
27036
|
var get_first_validation_error_default = getFirstValidationError;
|
|
26975
27037
|
|
|
26976
27038
|
// src/components/dataform-layouts/panel/summary-button.tsx
|
|
26977
|
-
import { jsx as jsx121, jsxs as
|
|
27039
|
+
import { jsx as jsx121, jsxs as jsxs36 } from "react/jsx-runtime";
|
|
26978
27040
|
function SummaryButton({
|
|
26979
27041
|
data,
|
|
26980
27042
|
field,
|
|
@@ -26983,15 +27045,15 @@ function SummaryButton({
|
|
|
26983
27045
|
validity,
|
|
26984
27046
|
touched,
|
|
26985
27047
|
disabled,
|
|
26986
|
-
|
|
26987
|
-
|
|
27048
|
+
isOpen,
|
|
27049
|
+
onClick
|
|
26988
27050
|
}) {
|
|
26989
27051
|
const { labelPosition, editVisibility } = field.layout;
|
|
26990
27052
|
const errorMessage = get_first_validation_error_default(validity);
|
|
26991
27053
|
const showError = touched && !!errorMessage;
|
|
26992
27054
|
const labelClassName = get_label_classname_default(labelPosition, showError);
|
|
26993
27055
|
const labelContent = get_label_content_default(showError, errorMessage, fieldLabel);
|
|
26994
|
-
const className2 =
|
|
27056
|
+
const className2 = clsx56(
|
|
26995
27057
|
"dataforms-layouts-panel__field-trigger",
|
|
26996
27058
|
`dataforms-layouts-panel__field-trigger--label-${labelPosition}`,
|
|
26997
27059
|
{
|
|
@@ -27013,9 +27075,9 @@ function SummaryButton({
|
|
|
27013
27075
|
fieldLabel || ""
|
|
27014
27076
|
);
|
|
27015
27077
|
const rowRef = useRef(null);
|
|
27016
|
-
const
|
|
27017
|
-
|
|
27018
|
-
if (
|
|
27078
|
+
const editButtonRef = useRef(null);
|
|
27079
|
+
const handleRowClick = (event) => {
|
|
27080
|
+
if (!isOpen && event.detail < 2 && !editButtonRef.current?.contains(event.target) && rowRef.current?.ownerDocument.defaultView?.getSelection()?.toString()) {
|
|
27019
27081
|
return;
|
|
27020
27082
|
}
|
|
27021
27083
|
onClick();
|
|
@@ -27026,7 +27088,7 @@ function SummaryButton({
|
|
|
27026
27088
|
onClick();
|
|
27027
27089
|
}
|
|
27028
27090
|
};
|
|
27029
|
-
return /* @__PURE__ */
|
|
27091
|
+
return /* @__PURE__ */ jsxs36(
|
|
27030
27092
|
"div",
|
|
27031
27093
|
{
|
|
27032
27094
|
ref: rowRef,
|
|
@@ -27035,7 +27097,7 @@ function SummaryButton({
|
|
|
27035
27097
|
onKeyDown: !disabled ? handleKeyDown : void 0,
|
|
27036
27098
|
children: [
|
|
27037
27099
|
labelPosition !== "none" && /* @__PURE__ */ jsx121("span", { className: labelClassName, children: labelContent }),
|
|
27038
|
-
labelPosition === "none" && showError && /* @__PURE__ */
|
|
27100
|
+
labelPosition === "none" && showError && /* @__PURE__ */ jsxs36(tooltip_exports.Root, { children: [
|
|
27039
27101
|
/* @__PURE__ */ jsx121(
|
|
27040
27102
|
tooltip_exports.Trigger,
|
|
27041
27103
|
{
|
|
@@ -27095,11 +27157,12 @@ function SummaryButton({
|
|
|
27095
27157
|
!disabled && /* @__PURE__ */ jsx121(
|
|
27096
27158
|
button_default,
|
|
27097
27159
|
{
|
|
27160
|
+
ref: editButtonRef,
|
|
27098
27161
|
className: "dataforms-layouts-panel__field-trigger-icon",
|
|
27099
27162
|
label: ariaLabel,
|
|
27100
27163
|
icon: pencil_default,
|
|
27101
27164
|
size: "small",
|
|
27102
|
-
"aria-expanded":
|
|
27165
|
+
"aria-expanded": isOpen,
|
|
27103
27166
|
"aria-haspopup": "dialog",
|
|
27104
27167
|
"aria-describedby": `${controlId}`
|
|
27105
27168
|
}
|
|
@@ -27679,7 +27742,7 @@ function useFieldFromFormField(field) {
|
|
|
27679
27742
|
var use_field_from_form_field_default = useFieldFromFormField;
|
|
27680
27743
|
|
|
27681
27744
|
// src/components/dataform-layouts/panel/modal.tsx
|
|
27682
|
-
import { Fragment as
|
|
27745
|
+
import { Fragment as Fragment18, jsx as jsx122, jsxs as jsxs37 } from "react/jsx-runtime";
|
|
27683
27746
|
function ModalContent({
|
|
27684
27747
|
data,
|
|
27685
27748
|
field,
|
|
@@ -27736,7 +27799,7 @@ function ModalContent({
|
|
|
27736
27799
|
const contentRef = useRef(null);
|
|
27737
27800
|
const mergedRef = useMergeRefs([focusOnMountRef, contentRef]);
|
|
27738
27801
|
useReportValidity(contentRef, touched);
|
|
27739
|
-
return /* @__PURE__ */
|
|
27802
|
+
return /* @__PURE__ */ jsxs37(
|
|
27740
27803
|
modal_default,
|
|
27741
27804
|
{
|
|
27742
27805
|
className: "dataforms-layouts-panel__modal",
|
|
@@ -27766,7 +27829,7 @@ function ModalContent({
|
|
|
27766
27829
|
)
|
|
27767
27830
|
}
|
|
27768
27831
|
) }),
|
|
27769
|
-
/* @__PURE__ */
|
|
27832
|
+
/* @__PURE__ */ jsxs37(
|
|
27770
27833
|
Stack,
|
|
27771
27834
|
{
|
|
27772
27835
|
direction: "row",
|
|
@@ -27815,7 +27878,7 @@ function PanelModal({
|
|
|
27815
27878
|
setIsOpen(false);
|
|
27816
27879
|
setTouched(true);
|
|
27817
27880
|
};
|
|
27818
|
-
return /* @__PURE__ */
|
|
27881
|
+
return /* @__PURE__ */ jsxs37(Fragment18, { children: [
|
|
27819
27882
|
/* @__PURE__ */ jsx122(
|
|
27820
27883
|
SummaryButton,
|
|
27821
27884
|
{
|
|
@@ -27827,7 +27890,7 @@ function PanelModal({
|
|
|
27827
27890
|
touched,
|
|
27828
27891
|
disabled: fieldDefinition.readOnly === true,
|
|
27829
27892
|
onClick: () => setIsOpen(true),
|
|
27830
|
-
|
|
27893
|
+
isOpen
|
|
27831
27894
|
}
|
|
27832
27895
|
),
|
|
27833
27896
|
isOpen && /* @__PURE__ */ jsx122(
|
|
@@ -27847,7 +27910,7 @@ var modal_default2 = PanelModal;
|
|
|
27847
27910
|
|
|
27848
27911
|
// src/components/dataform-layouts/panel/dropdown.tsx
|
|
27849
27912
|
import { __ as __60 } from "@wordpress/i18n";
|
|
27850
|
-
import { jsx as jsx123, jsxs as
|
|
27913
|
+
import { jsx as jsx123, jsxs as jsxs38 } from "react/jsx-runtime";
|
|
27851
27914
|
function DropdownHeader({
|
|
27852
27915
|
title,
|
|
27853
27916
|
onClose
|
|
@@ -27858,7 +27921,7 @@ function DropdownHeader({
|
|
|
27858
27921
|
direction: "column",
|
|
27859
27922
|
className: "dataforms-layouts-panel__dropdown-header",
|
|
27860
27923
|
gap: "lg",
|
|
27861
|
-
children: /* @__PURE__ */
|
|
27924
|
+
children: /* @__PURE__ */ jsxs38(Stack, { direction: "row", gap: "sm", align: "center", children: [
|
|
27862
27925
|
title && /* @__PURE__ */ jsx123(component_default16, { level: 2, size: 13, children: title }),
|
|
27863
27926
|
/* @__PURE__ */ jsx123(component_default6, { style: { flex: 1 } }),
|
|
27864
27927
|
onClose && /* @__PURE__ */ jsx123(
|
|
@@ -27955,11 +28018,11 @@ function PanelDropdown({
|
|
|
27955
28018
|
validity,
|
|
27956
28019
|
touched,
|
|
27957
28020
|
disabled: fieldDefinition.readOnly === true,
|
|
27958
|
-
|
|
27959
|
-
|
|
28021
|
+
isOpen,
|
|
28022
|
+
onClick: onToggle
|
|
27960
28023
|
}
|
|
27961
28024
|
),
|
|
27962
|
-
renderContent: ({ onClose }) => /* @__PURE__ */ jsx123(DropdownContentWithValidation, { touched, children: /* @__PURE__ */
|
|
28025
|
+
renderContent: ({ onClose }) => /* @__PURE__ */ jsx123(DropdownContentWithValidation, { touched, children: /* @__PURE__ */ jsxs38("div", { ref: dialogRef, ...dialogProps, children: [
|
|
27963
28026
|
/* @__PURE__ */ jsx123(
|
|
27964
28027
|
DropdownHeader,
|
|
27965
28028
|
{
|
|
@@ -28070,7 +28133,7 @@ function ValidationBadge({
|
|
|
28070
28133
|
}
|
|
28071
28134
|
|
|
28072
28135
|
// src/components/dataform-layouts/card/index.tsx
|
|
28073
|
-
import { Fragment as
|
|
28136
|
+
import { Fragment as Fragment19, jsx as jsx126, jsxs as jsxs39 } from "react/jsx-runtime";
|
|
28074
28137
|
function isSummaryFieldVisible(summaryField, summaryConfig, isOpen) {
|
|
28075
28138
|
if (!summaryConfig || Array.isArray(summaryConfig) && summaryConfig.length === 0) {
|
|
28076
28139
|
return false;
|
|
@@ -28111,7 +28174,7 @@ function HeaderContent({
|
|
|
28111
28174
|
);
|
|
28112
28175
|
const hasBadge = touched && layout.isCollapsible;
|
|
28113
28176
|
const hasSummary = visibleSummaryFields.length > 0 && layout.withHeader;
|
|
28114
|
-
return /* @__PURE__ */
|
|
28177
|
+
return /* @__PURE__ */ jsxs39(
|
|
28115
28178
|
Stack,
|
|
28116
28179
|
{
|
|
28117
28180
|
align: "center",
|
|
@@ -28119,7 +28182,7 @@ function HeaderContent({
|
|
|
28119
28182
|
className: "dataforms-layouts-card__field-header-content",
|
|
28120
28183
|
children: [
|
|
28121
28184
|
/* @__PURE__ */ jsx126(card_exports.Title, { children: label }),
|
|
28122
|
-
(hasBadge || hasSummary) && /* @__PURE__ */
|
|
28185
|
+
(hasBadge || hasSummary) && /* @__PURE__ */ jsxs39(collapsible_card_exports.HeaderDescription, { className: "dataforms-layouts-card__field-header-content-description", children: [
|
|
28123
28186
|
hasBadge && /* @__PURE__ */ jsx126(ValidationBadge, { validity }),
|
|
28124
28187
|
hasSummary && /* @__PURE__ */ jsx126("div", { className: "dataforms-layouts-card__field-summary", children: visibleSummaryFields.map((summaryField) => /* @__PURE__ */ jsx126(
|
|
28125
28188
|
summaryField.render,
|
|
@@ -28145,7 +28208,7 @@ function BodyContent({
|
|
|
28145
28208
|
withHeader
|
|
28146
28209
|
}) {
|
|
28147
28210
|
if (field.children) {
|
|
28148
|
-
return /* @__PURE__ */
|
|
28211
|
+
return /* @__PURE__ */ jsxs39(Fragment19, { children: [
|
|
28149
28212
|
field.description && /* @__PURE__ */ jsx126("div", { className: "dataforms-layouts-card__field-description", children: field.description }),
|
|
28150
28213
|
/* @__PURE__ */ jsx126(
|
|
28151
28214
|
DataFormLayout,
|
|
@@ -28251,7 +28314,7 @@ function FormCardField({
|
|
|
28251
28314
|
}
|
|
28252
28315
|
);
|
|
28253
28316
|
if (withHeader && isCollapsible) {
|
|
28254
|
-
return /* @__PURE__ */
|
|
28317
|
+
return /* @__PURE__ */ jsxs39(
|
|
28255
28318
|
collapsible_card_exports.Root,
|
|
28256
28319
|
{
|
|
28257
28320
|
className: "dataforms-layouts-card__field",
|
|
@@ -28271,14 +28334,14 @@ function FormCardField({
|
|
|
28271
28334
|
}
|
|
28272
28335
|
);
|
|
28273
28336
|
}
|
|
28274
|
-
return /* @__PURE__ */
|
|
28337
|
+
return /* @__PURE__ */ jsxs39(card_exports.Root, { className: "dataforms-layouts-card__field", children: [
|
|
28275
28338
|
withHeader && /* @__PURE__ */ jsx126(card_exports.Header, { children: headerContent }),
|
|
28276
28339
|
/* @__PURE__ */ jsx126(card_exports.Content, { ref: contentRef, onBlur: handleBlur, children: bodyContent })
|
|
28277
28340
|
] });
|
|
28278
28341
|
}
|
|
28279
28342
|
|
|
28280
28343
|
// src/components/dataform-layouts/row/index.tsx
|
|
28281
|
-
import { Fragment as
|
|
28344
|
+
import { Fragment as Fragment20, jsx as jsx127, jsxs as jsxs40 } from "react/jsx-runtime";
|
|
28282
28345
|
function Header4({ title }) {
|
|
28283
28346
|
return /* @__PURE__ */ jsx127(
|
|
28284
28347
|
Stack,
|
|
@@ -28290,7 +28353,7 @@ function Header4({ title }) {
|
|
|
28290
28353
|
}
|
|
28291
28354
|
);
|
|
28292
28355
|
}
|
|
28293
|
-
var EMPTY_WRAPPER = ({ children }) => /* @__PURE__ */ jsx127(
|
|
28356
|
+
var EMPTY_WRAPPER = ({ children }) => /* @__PURE__ */ jsx127(Fragment20, { children });
|
|
28294
28357
|
function FormRowField({
|
|
28295
28358
|
data,
|
|
28296
28359
|
field,
|
|
@@ -28305,7 +28368,7 @@ function FormRowField({
|
|
|
28305
28368
|
layout: DEFAULT_LAYOUT,
|
|
28306
28369
|
fields: field.children
|
|
28307
28370
|
};
|
|
28308
|
-
return /* @__PURE__ */
|
|
28371
|
+
return /* @__PURE__ */ jsxs40("div", { className: "dataforms-layouts-row__field", children: [
|
|
28309
28372
|
!hideLabelFromVision && field.label && /* @__PURE__ */ jsx127(Header4, { title: field.label }),
|
|
28310
28373
|
/* @__PURE__ */ jsx127(Stack, { direction: "row", align: layout.alignment, gap: "lg", children: /* @__PURE__ */ jsx127(
|
|
28311
28374
|
DataFormLayout,
|
|
@@ -28342,7 +28405,7 @@ function FormRowField({
|
|
|
28342
28405
|
if (!RegularLayout) {
|
|
28343
28406
|
return null;
|
|
28344
28407
|
}
|
|
28345
|
-
return /* @__PURE__ */ jsx127(
|
|
28408
|
+
return /* @__PURE__ */ jsx127(Fragment20, { children: /* @__PURE__ */ jsx127("div", { className: "dataforms-layouts-row__field-control", children: /* @__PURE__ */ jsx127(
|
|
28346
28409
|
RegularLayout,
|
|
28347
28410
|
{
|
|
28348
28411
|
data,
|
|
@@ -28356,7 +28419,7 @@ function FormRowField({
|
|
|
28356
28419
|
|
|
28357
28420
|
// src/components/dataform-layouts/details/index.tsx
|
|
28358
28421
|
import { __ as __61 } from "@wordpress/i18n";
|
|
28359
|
-
import { jsx as jsx128, jsxs as
|
|
28422
|
+
import { jsx as jsx128, jsxs as jsxs41 } from "react/jsx-runtime";
|
|
28360
28423
|
function FormDetailsField({
|
|
28361
28424
|
data,
|
|
28362
28425
|
field,
|
|
@@ -28407,13 +28470,13 @@ function FormDetailsField({
|
|
|
28407
28470
|
} else {
|
|
28408
28471
|
summaryContent = field.label || __61("More details");
|
|
28409
28472
|
}
|
|
28410
|
-
return /* @__PURE__ */
|
|
28473
|
+
return /* @__PURE__ */ jsxs41(
|
|
28411
28474
|
"details",
|
|
28412
28475
|
{
|
|
28413
28476
|
ref: detailsRef,
|
|
28414
28477
|
className: "dataforms-layouts-details__details",
|
|
28415
28478
|
children: [
|
|
28416
|
-
/* @__PURE__ */ jsx128("summary", { className: "dataforms-layouts-details__summary", children: /* @__PURE__ */
|
|
28479
|
+
/* @__PURE__ */ jsx128("summary", { className: "dataforms-layouts-details__summary", children: /* @__PURE__ */ jsxs41(
|
|
28417
28480
|
Stack,
|
|
28418
28481
|
{
|
|
28419
28482
|
direction: "row",
|