← All changes
|
assets/js/packages/editor-editing-panel/editor-editing-panel.js
+17
-4
4.3.0-beta1
→
trunk
View file →
| @@ -1180,9 +1180,9 @@ | ||
| 1180 | 1180 | icon: /* @__PURE__ */ react.createElement(_elementor_icons.AlertTriangleFilledIcon, { fontSize: "tiny" }), |
| 1181 | 1181 | sx: { mt: 1 } |
| 1182 | 1182 | }, /* @__PURE__ */ react.createElement(_elementor_ui.AlertTitle, null, (0, _wordpress_i18n.__)("Some classes are missing", "elementor")), /* @__PURE__ */ react.createElement(_elementor_ui.Typography, { |
| 1183 | 1183 | variant: "caption", |
| 1184 | - textColor: "primary" | |
| 1184 | + color: "primary" | |
| 1185 | 1185 | }, (0, _wordpress_i18n.__)("A class was removed from your site and is no longer active on this element", "elementor"))); |
| 1186 | 1186 | } |
| 1187 | 1187 | |
| 1188 | 1188 | //#endregion |
| @@ -5949,10 +5949,17 @@ | ||
| 5949 | 5949 | sx: { minHeight: 20 }, |
| 5950 | 5950 | direction: "row", |
| 5951 | 5951 | alignItems: "center", |
| 5952 | 5952 | gap: 1.5 |
| 5953 | - }, /* @__PURE__ */ react.createElement("span", null, value?.title)); | |
| 5953 | + }, value.id ? /* @__PURE__ */ react.createElement(AccordionItemRepeaterLabel, { | |
| 5954 | + elementId: value.id, | |
| 5955 | + fallbackTitle: value.title | |
| 5956 | + }) : /* @__PURE__ */ react.createElement("span", null, value?.title)); | |
| 5954 | 5957 | }, "ItemLabel"); |
| 5958 | + var AccordionItemRepeaterLabel = ({ elementId, fallbackTitle }) => { | |
| 5959 | + const label = (0, _elementor_editor_elements.useElementEditorSettings)(elementId)?.title ?? fallbackTitle ?? ""; | |
| 5960 | + return /* @__PURE__ */ react.createElement("span", null, label); | |
| 5961 | + }; | |
| 5955 | 5962 | var ItemContent$2 = /* @__PURE__ */ __name(({ value }) => { |
| 5956 | 5963 | if (!value.id) return null; |
| 5957 | 5964 | return /* @__PURE__ */ react.createElement(_elementor_ui.Stack, { |
| 5958 | 5965 | p: 2, |
| @@ -6405,15 +6412,21 @@ | ||
| 6405 | 6412 | } |
| 6406 | 6413 | }); |
| 6407 | 6414 | }; |
| 6408 | 6415 | var ItemLabel = ({ value, index }) => { |
| 6409 | - const elementTitle = value?.title; | |
| 6410 | 6416 | return /* @__PURE__ */ react.createElement(_elementor_ui.Stack, { |
| 6411 | 6417 | sx: { minHeight: 20 }, |
| 6412 | 6418 | direction: "row", |
| 6413 | 6419 | alignItems: "center", |
| 6414 | 6420 | gap: 1.5 |
| 6415 | - }, /* @__PURE__ */ react.createElement("span", null, elementTitle), /* @__PURE__ */ react.createElement(ItemDefaultTab, { index })); | |
| 6421 | + }, value.id ? /* @__PURE__ */ react.createElement(TabRepeaterLabel, { | |
| 6422 | + elementId: value.id, | |
| 6423 | + fallbackTitle: value.title | |
| 6424 | + }) : /* @__PURE__ */ react.createElement("span", null, value?.title), /* @__PURE__ */ react.createElement(ItemDefaultTab, { index })); | |
| 6425 | + }; | |
| 6426 | + var TabRepeaterLabel = ({ elementId, fallbackTitle }) => { | |
| 6427 | + const label = (0, _elementor_editor_elements.useElementEditorSettings)(elementId)?.title ?? fallbackTitle ?? ""; | |
| 6428 | + return /* @__PURE__ */ react.createElement("span", null, label); | |
| 6416 | 6429 | }; |
| 6417 | 6430 | var ItemDefaultTab = ({ index }) => { |
| 6418 | 6431 | const { value: defaultItem } = (0, _elementor_editor_controls.useBoundProp)(_elementor_editor_props.numberPropTypeUtil); |
| 6419 | 6432 | if (!(defaultItem === index)) return null; |