UNPKG

geostyler

Version:
68 lines (67 loc) 2.11 kB
import { jsxs as a, jsx as e } from "react/jsx-runtime"; /* empty css */ import { Form as g, Divider as v } from "antd"; import { FieldContainer as y } from "../FieldContainer/FieldContainer.js"; import { NameField as b } from "../NameField/NameField.js"; import { MinScaleDenominator as S } from "../ScaleDenominator/MinScaleDenominator.js"; import { MaxScaleDenominator as x } from "../ScaleDenominator/MaxScaleDenominator.js"; import { Renderer as F } from "../Renderer/Renderer/Renderer.js"; import { useGeoStylerComposition as M, useGeoStylerLocale as N } from "../../context/GeoStylerContext/GeoStylerContext.js"; import { getFormItemConfig as R } from "../../Util/FormItemUtil.js"; const A = (t) => { const m = M("Rule"), s = { ...t, ...m }, { maxScale: c, maxScaleField: o, minScale: f, minScaleField: i, name: p, nameField: l, onMaxScaleChange: d = () => { }, onMinScaleChange: u = () => { }, onNameChange: h = () => { }, symbolizers: C = [] } = s, r = N("RuleFieldContainer"), n = R(); return /* @__PURE__ */ a(y, { className: "gs-rule-field-container", children: [ /* @__PURE__ */ a("div", { className: "gs-rule-field-container-header", children: [ (l == null ? void 0 : l.visibility) === !1 ? null : /* @__PURE__ */ e( g.Item, { ...n, label: r.nameFieldLabel, children: /* @__PURE__ */ e( b, { value: p, onChange: h, placeholder: r.nameFieldPlaceholder } ) } ), (i == null ? void 0 : i.visibility) === !1 ? null : /* @__PURE__ */ e( S, { value: f, onChange: u, ...n } ), (o == null ? void 0 : o.visibility) === !1 ? null : /* @__PURE__ */ e( x, { value: c, onChange: d, ...n } ) ] }), /* @__PURE__ */ e(v, { type: "vertical" }), /* @__PURE__ */ e(F, { symbolizers: C }) ] }); }; export { A as RuleFieldContainer };