@orangelogic/design-system 2.149.0 → 2.151.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (212) hide show
  1. package/library/chunks/{AxisLabelRadial.BVjTmOAK.js → AxisLabelRadial.lE2gKah-.js} +1 -1
  2. package/library/chunks/{BaseColumnSeries.CBs_QAAc.js → BaseColumnSeries.B57B3iHh.js} +1 -1
  3. package/library/chunks/{CandlestickSeries.Cx0wpT9T.js → CandlestickSeries.CmmI426l.js} +2 -2
  4. package/library/chunks/{Circle.CPg-MUlK.js → Circle.DAhHYhrc.js} +1 -1
  5. package/library/chunks/{ColumnSeries.CGSxIqPG.js → ColumnSeries.DBgXk-b4.js} +2 -2
  6. package/library/chunks/{EditableAxisLabel.BE0SAubP.js → EditableAxisLabel.C6H99qiS.js} +2 -2
  7. package/library/chunks/{EditableLabel.L5NEdtkw.js → EditableLabel.B7HB7Cu4.js} +1 -1
  8. package/library/chunks/{Gradient.oQ6wJQll.js → Gradient.DHhBnhFd.js} +1 -1
  9. package/library/chunks/{LinearGradient.CEimwU0Q.js → LinearGradient.CGx00O8B.js} +2 -2
  10. package/library/chunks/{Picture.BfLKhIYn.js → Picture.DYltTVSo.js} +1 -1
  11. package/library/chunks/{Polygon.iNK22k_h.js → Polygon.BCrxKagx.js} +1 -1
  12. package/library/chunks/{ProgressPie.Bcqzaeqx.js → ProgressPie.CXksPJFv.js} +5 -5
  13. package/library/chunks/{RadialLabel.a3toiXax.js → RadialLabel.BYH69FGU.js} +1 -1
  14. package/library/chunks/{Scrollbar.CAoY7xcW.js → Scrollbar.DEv50o4R.js} +1 -1
  15. package/library/chunks/{Slice.DLvisUPP.js → Slice.C5lVu2g_.js} +1 -1
  16. package/library/chunks/{Slider.syeHIyBN.js → Slider.BX8g2iGv.js} +1 -1
  17. package/library/chunks/{SpriteResizer.BDWAslnu.js → SpriteResizer.CfIBMSp3.js} +1 -1
  18. package/library/chunks/{Triangle.adLo6odq.js → Triangle.CNY8-QfL.js} +1 -1
  19. package/library/chunks/{ZoomTools.4NFU6RVT.js → ZoomTools.6jZrzA7x.js} +1 -1
  20. package/library/chunks/{_baseIteratee.CzjK3VFY.js → _baseIteratee.BdKyHJ5i.js} +2 -2
  21. package/library/chunks/{_baseUniq.CoXu-orP.js → _baseUniq.je-HWbb3.js} +1 -1
  22. package/library/chunks/{_baseXor.DRclcoaa.js → _baseXor.VohG8cOH.js} +4 -4
  23. package/library/chunks/{am-chart.Bf-o9SaR.js → am-chart.CqdmTS0P.js} +252 -252
  24. package/library/chunks/{animation.BSFdTpqz.js → animation.S74lUDDc.js} +1 -1
  25. package/library/chunks/{asset-link-format.Cfj8l9X6.js → asset-link-format.Bctc22QM.js} +208 -187
  26. package/library/chunks/{button.Dxb7AACZ.js → button.8syoJXYs.js} +4 -4
  27. package/library/chunks/{capitalize.DKzUtjlF.js → capitalize.BTYI3NfM.js} +1 -1
  28. package/library/chunks/{checkbox.aQnF4Zc3.js → checkbox.3i2j3PHc.js} +3 -3
  29. package/library/chunks/{color-swatch-group.CLoDU6aG.js → color-swatch-group.BX90sRwa.js} +2297 -2218
  30. package/library/chunks/{color-swatch.D1HqWocK.js → color-swatch.BhBZe8OE.js} +2 -2
  31. package/library/chunks/{colorPicker.fDJa_Rz5.js → colorPicker.GYgA76kc.js} +5 -5
  32. package/library/chunks/{confirm-popover.Cb-pC5oI.js → confirm-popover.BFBhjDQ9.js} +3 -3
  33. package/library/chunks/{content-builder.DZRw6hpX.js → content-builder.BU8X7I6V.js} +1 -1
  34. package/library/chunks/{dialog.DK0ZZQY3.js → dialog.DIXmnVis.js} +3 -3
  35. package/library/chunks/{document-viewer.Cr7ARRer.js → document-viewer.DzwB_FfN.js} +9 -9
  36. package/library/chunks/{dom.CU_mBy9D.js → dom.C5aVLhKS.js} +29 -22
  37. package/library/chunks/{dot-pagination.CjZm-pju.js → dot-pagination.BdZc-K0r.js} +2 -2
  38. package/library/chunks/{endpoints.Bn_YviaU.js → endpoints.CwgTrs4A.js} +88 -88
  39. package/library/chunks/{exporting.Co0vJIff.js → exporting.DQhKH1BX.js} +2 -2
  40. package/library/chunks/{flow.0ah2v6L5.js → flow.hz0UDjCb.js} +5 -5
  41. package/library/chunks/{folder-select.DHnp7EO0.js → folder-select.TPHiDGrX.js} +8 -8
  42. package/library/chunks/{form.BSqXLytJ.js → form.CP9KLGjF.js} +1 -1
  43. package/library/chunks/{gantt.CPSE8Grs.js → gantt.tu-w6fQ5.js} +8 -8
  44. package/library/chunks/{header.B4IwSY-l.js → header.DpBmcfR_.js} +2 -2
  45. package/library/chunks/{hierarchy.Dlq2MwWz.js → hierarchy.CTnBzzmQ.js} +5 -5
  46. package/library/chunks/{hub-connection.CIUZJBdQ.js → hub-connection.CA_wS_wh.js} +1 -1
  47. package/library/chunks/{i18n.S781IU3H.js → i18n.Bchq8v1d.js} +41 -5
  48. package/library/chunks/{icon-button.B-GBGmBo.js → icon-button.DbVIFgu7.js} +2 -2
  49. package/library/chunks/{icon.CsF1BoUl.js → icon.mxNZ85k0.js} +1 -1
  50. package/library/chunks/{iframe.BLb7TAM7.js → iframe.DcHjOcLG.js} +2 -2
  51. package/library/chunks/{image.C1a_eXtI.js → image.DYRVQgG1.js} +3 -3
  52. package/library/chunks/{index.q6xCNzcK.js → index.BVDhdCk-.js} +17 -17
  53. package/library/chunks/{input.eQ-tc3ew.js → input.BcyLZUmv.js} +4 -4
  54. package/library/chunks/{json.lgvYjT5K.js → json.D7WeFaJm.js} +3 -3
  55. package/library/chunks/{map.Cz4qZnZB.js → map.BjtxEozr.js} +2 -2
  56. package/library/chunks/{option.Bo4ryyg8.js → option.qN3aaqVI.js} +3 -3
  57. package/library/chunks/{pagination.vaTRiEs-.js → pagination.Cupa46TN.js} +6 -6
  58. package/library/chunks/{percent.TSAQO6y8.js → percent.D_CkaRGb.js} +3 -3
  59. package/library/chunks/{radar.mnUjkEJF.js → radar.BMKaNvJH.js} +4 -4
  60. package/library/chunks/{sliceGrouper.B9Hml2R8.js → sliceGrouper.C-t5ZRrz.js} +1 -1
  61. package/library/chunks/{stock.CSGPjDQK.js → stock.vF_pji1F.js} +9 -9
  62. package/library/chunks/{string.BmBJ_BLT.js → string.BhJ0Zogu.js} +104 -59
  63. package/library/chunks/{tab-group.Owu-XQzM.js → tab-group.kSg5_10g.js} +5 -5
  64. package/library/chunks/{timeline.CzbNFkA3.js → timeline.gWu0up6r.js} +5 -5
  65. package/library/chunks/{toString.bJgZMf_C.js → toString.Dcbz5jVT.js} +1 -1
  66. package/library/chunks/{toast.NfNkPs5d.js → toast.TDU3wVhq.js} +1 -1
  67. package/library/chunks/{tree.BYD88cAs.js → tree.BDAj1Xs2.js} +4 -4
  68. package/library/chunks/{venn.Cq0RJAER.js → venn.BVBe-JXs.js} +1 -1
  69. package/library/chunks/{watch.K-dbDP6P.js → watch.DOt4Mabe.js} +32 -31
  70. package/library/chunks/{wc.Cae1yJ4l.js → wc.DTNpfIc1.js} +1 -1
  71. package/library/chunks/{xy.CseMLD2I.js → xy.BNgyrwGD.js} +10 -10
  72. package/library/components/alert.js +3 -3
  73. package/library/components/am-chart.js +2 -2
  74. package/library/components/animated-image.js +2 -2
  75. package/library/components/animation.js +2 -2
  76. package/library/components/array-line-clamp.js +1 -1
  77. package/library/components/asset-link-format.js +4 -4
  78. package/library/components/atoms.js +20 -20
  79. package/library/components/audio.js +3 -3
  80. package/library/components/avatar.js +2 -2
  81. package/library/components/border-input-group.js +2 -2
  82. package/library/components/breadcrumb-item.js +1 -1
  83. package/library/components/breadcrumb.js +2 -2
  84. package/library/components/button.js +5 -5
  85. package/library/components/checkbox.js +4 -4
  86. package/library/components/color-picker.js +6 -6
  87. package/library/components/color-swatch-group.js +6 -6
  88. package/library/components/color-swatch.js +3 -3
  89. package/library/components/confirm-popover.js +4 -4
  90. package/library/components/copy-button.js +3 -3
  91. package/library/components/corner-position-input-group.js +3 -3
  92. package/library/components/date-calendar.js +1 -1
  93. package/library/components/details.js +3 -3
  94. package/library/components/dialog.js +4 -4
  95. package/library/components/diff.js +2 -2
  96. package/library/components/divider.js +1 -1
  97. package/library/components/document-viewer.js +4 -4
  98. package/library/components/dot-pagination.js +3 -3
  99. package/library/components/drawer.js +4 -4
  100. package/library/components/dropdown.js +3 -3
  101. package/library/components/dynamic-select.js +14 -11
  102. package/library/components/e-chart.js +2 -2
  103. package/library/components/element-clamp.js +3 -3
  104. package/library/components/file-on-demand.js +14 -14
  105. package/library/components/folder-select.js +7 -7
  106. package/library/components/format-bytes.js +1 -1
  107. package/library/components/format-date.js +1 -1
  108. package/library/components/format-number.js +1 -1
  109. package/library/components/format-time.js +2 -2
  110. package/library/components/grid-item.js +1 -1
  111. package/library/components/header.js +3 -3
  112. package/library/components/hub-connection.js +2 -2
  113. package/library/components/icon-button.js +3 -3
  114. package/library/components/icon.js +2 -2
  115. package/library/components/iframe.js +3 -3
  116. package/library/components/image-comparer.js +3 -3
  117. package/library/components/image.js +4 -4
  118. package/library/components/include.js +1 -1
  119. package/library/components/input.js +5 -5
  120. package/library/components/line-clamp.js +1 -1
  121. package/library/components/markdown.js +1 -1
  122. package/library/components/masonry.js +3 -3
  123. package/library/components/menu-item.js +3 -3
  124. package/library/components/menu.js +1 -1
  125. package/library/components/molecules.js +3 -3
  126. package/library/components/mutation-observer.js +1 -1
  127. package/library/components/option.js +4 -4
  128. package/library/components/organisms.js +2 -2
  129. package/library/components/padding-input-group.js +1 -1
  130. package/library/components/pagination.js +7 -7
  131. package/library/components/popup.js +1 -1
  132. package/library/components/position-picker.js +1 -1
  133. package/library/components/progress-bar.js +1 -1
  134. package/library/components/progress-ring.js +1 -1
  135. package/library/components/qr-code.js +1 -1
  136. package/library/components/radio-button.js +1 -1
  137. package/library/components/radio-card.js +1 -1
  138. package/library/components/radio-group.js +2 -2
  139. package/library/components/radio.js +2 -2
  140. package/library/components/range.js +3 -3
  141. package/library/components/rating.js +3 -3
  142. package/library/components/relative-time.js +1 -1
  143. package/library/components/resize-observer.js +1 -1
  144. package/library/components/select.js +5 -5
  145. package/library/components/shadow-input-group.js +1 -1
  146. package/library/components/share-option-list.js +4 -4
  147. package/library/components/sidebar.js +3 -3
  148. package/library/components/size-input-group.js +4 -4
  149. package/library/components/spinner.js +1 -1
  150. package/library/components/split-panel.js +2 -2
  151. package/library/components/step.js +1 -1
  152. package/library/components/stepper-wizard.js +1 -1
  153. package/library/components/stepper.js +1 -1
  154. package/library/components/switch.js +2 -2
  155. package/library/components/tab-group.js +6 -6
  156. package/library/components/tab-panel.js +1 -1
  157. package/library/components/tab.js +3 -3
  158. package/library/components/tag.js +2 -2
  159. package/library/components/textarea.js +2 -2
  160. package/library/components/timecode.js +2 -2
  161. package/library/components/tooltip.js +2 -2
  162. package/library/components/tree-item.js +5 -5
  163. package/library/components/tree.js +3 -3
  164. package/library/components/typeface.js +3 -3
  165. package/library/components/types.js +31532 -30154
  166. package/library/components/video.js +3 -3
  167. package/library/package.json +1 -1
  168. package/library/packages/events/src/cx-xml-editor-asset-type-change.d.ts +8 -0
  169. package/library/packages/events/src/cx-xml-editor-change.d.ts +8 -0
  170. package/library/packages/events/src/cx-xml-editor-element-action.d.ts +11 -0
  171. package/library/packages/events/src/cx-xml-editor-element-expand-toggle.d.ts +8 -0
  172. package/library/packages/events/src/cx-xml-editor-notify.d.ts +11 -0
  173. package/library/packages/events/src/cx-xml-editor-packet-change.d.ts +11 -0
  174. package/library/packages/events/src/events.d.ts +6 -0
  175. package/library/packages/hybrid/table-core/src/table/table-data-loader.d.ts +2 -2
  176. package/library/packages/hybrid/table-core/src/table/table.d.ts +8 -0
  177. package/library/packages/hybrid/table-core/src/tabulator-tables/core/TabulatorFull.d.ts +6 -1
  178. package/library/packages/molecules/src/annotator/annotator.d.ts +12 -0
  179. package/library/packages/molecules/src/dynamic-select/dynamic-select.d.ts +9 -0
  180. package/library/packages/molecules/src/index.d.ts +1 -0
  181. package/library/packages/molecules/src/type-subtype-select/type-subtype-select.d.ts +64 -0
  182. package/library/packages/molecules/src/type-subtype-select/type-subtype-select.styles.d.ts +2 -0
  183. package/library/packages/organisms/src/asset-link-format/asset-link-format.d.ts +6 -0
  184. package/library/packages/organisms/src/asset-link-format/components/asset-link-format-crop/asset-link-format-crop.d.ts +5 -4
  185. package/library/packages/organisms/src/asset-link-format/components/asset-link-format-resize/asset-link-format-resize.d.ts +8 -0
  186. package/library/packages/organisms/src/content-builder/components/config-form/config-form-controller.d.ts +2 -0
  187. package/library/packages/organisms/src/content-builder/components/config-form/config-form.d.ts +2 -0
  188. package/library/packages/organisms/src/content-builder/styleController.d.ts +5 -1
  189. package/library/packages/organisms/src/dam-custom-toolbar-buttons-editor/dam-custom-toolbar-buttons-editor.d.ts +4 -6
  190. package/library/packages/organisms/src/index.d.ts +1 -0
  191. package/library/packages/organisms/src/xml-editor/components/asset-type/asset-type.d.ts +38 -0
  192. package/library/packages/organisms/src/xml-editor/components/asset-type/asset-type.styles.d.ts +2 -0
  193. package/library/packages/organisms/src/xml-editor/components/element-tag/element-tag.d.ts +66 -0
  194. package/library/packages/organisms/src/xml-editor/components/element-tag/element-tag.styles.d.ts +2 -0
  195. package/library/packages/organisms/src/xml-editor/components/packet-editor/packet-editor.d.ts +78 -0
  196. package/library/packages/organisms/src/xml-editor/components/packet-editor/packet-editor.styles.d.ts +2 -0
  197. package/library/packages/organisms/src/xml-editor/components/viewer/viewer.d.ts +37 -0
  198. package/library/packages/organisms/src/xml-editor/components/viewer/viewer.styles.d.ts +2 -0
  199. package/library/packages/organisms/src/xml-editor/xml-editor.d.ts +75 -0
  200. package/library/packages/organisms/src/xml-editor/xml-editor.data.d.ts +23 -0
  201. package/library/packages/organisms/src/xml-editor/xml-editor.styles.d.ts +2 -0
  202. package/library/packages/services/src/api/endpoints.d.ts +3 -0
  203. package/library/packages/services/src/api/metadata/metadata.d.ts +14 -1
  204. package/library/packages/services/src/api/metadata/metadata.types.d.ts +37 -1
  205. package/library/packages/types/src/content-builder.d.ts +8 -1
  206. package/library/packages/types/src/xml-editor.d.ts +108 -0
  207. package/library/packages/utils/src/custom-element/i18n.d.ts +36 -0
  208. package/library/packages/utils/src/dom/dom.d.ts +3 -0
  209. package/library/packages/utils/src/string/string.d.ts +11 -0
  210. package/library/react-web-component.d.ts +73 -5
  211. package/library/utils.js +148 -144
  212. package/package.json +1 -1
@@ -0,0 +1,37 @@
1
+ import { default as CxIconButton } from '../../../../../atoms/src/components/icon-button/icon-button.ts';
2
+ import { default as CxTooltip } from '../../../../../atoms/src/components/tooltip/tooltip.ts';
3
+ import { default as CxTypography } from '../../../../../atoms/src/components/typography/typography.ts';
4
+ import { default as CortexElement } from '../../../../../base/src/cortex-element.ts';
5
+ import { XmlEditorTreeNode } from '../../../../../types/src/xml-editor';
6
+ import { CSSResultGroup } from 'lit';
7
+
8
+ /**
9
+ * @summary Read-only debug preview of the current Fetch Rules tree as raw XML, with a pretty-print / minify toggle.
10
+ */
11
+ export default class CxXmlEditorViewer extends CortexElement {
12
+ #private;
13
+ static readonly styles: CSSResultGroup;
14
+ static readonly dependencies: {
15
+ 'cx-icon-button': typeof CxIconButton;
16
+ 'cx-tooltip': typeof CxTooltip;
17
+ 'cx-typography': typeof CxTypography;
18
+ };
19
+ /** Serializes a `XmlEditorTreeNode` to a single-line (minified) XML string, the sibling of `convertToIndentXMLForDownload`. */
20
+ private static convertToXMLForDownload;
21
+ /**
22
+ * Serializes a `XmlEditorTreeNode` back to a pretty-printed XML string. Also called by `cx-xml-editor` (persisted
23
+ * `value` / clipboard copy), which is why this stays `static` rather than an instance-only method.
24
+ */
25
+ static convertToIndentXMLForDownload(data: XmlEditorTreeNode, xml: string[], indent: string): string[];
26
+ private readonly localize;
27
+ /** The Fetch Rules tree to preview. */
28
+ xml: XmlEditorTreeNode;
29
+ /** Whether the preview is pretty-printed (indented) rather than minified. */
30
+ private indented;
31
+ render(): import('lit').TemplateResult<1>;
32
+ }
33
+ declare global {
34
+ interface HTMLElementTagNameMap {
35
+ 'cx-xml-editor-viewer': CxXmlEditorViewer;
36
+ }
37
+ }
@@ -0,0 +1,2 @@
1
+ declare const _default: import('lit').CSSResult;
2
+ export default _default;
@@ -0,0 +1,75 @@
1
+ import { default as CortexElement } from '../../../base/src/cortex-element.ts';
2
+ import { XmlEditorElement, XmlEditorNodeType, XmlEditorTreeNode } from '../../../types/src/xml-editor';
3
+ import { CSSResultGroup, TemplateResult } from 'lit';
4
+ import { default as CxXmlEditorElementTag } from './components/element-tag/element-tag';
5
+ import { default as CxXmlEditorPacketEditor } from './components/packet-editor/packet-editor';
6
+ import { default as CxXmlEditorViewer } from './components/viewer/viewer';
7
+
8
+ /**
9
+ * @summary Structured tree editor for the `<FetchRules>` XML rule schema: expand/collapse, add/copy/paste/delete
10
+ * elements, edit `Packet` search rules, and preview the resulting XML. Replaces the legacy React `orangelogic-react-xmleditor`
11
+ * component; the host page owns persistence and listens for `cx-xml-editor-change`.
12
+ *
13
+ * @event cx-xml-editor-change - Emitted with the serialized XML string after every tree mutation.
14
+ * @event cx-xml-editor-notify - Emitted with a short user-facing message (e.g. after copying a node to the clipboard).
15
+ */
16
+ export default class CxXmlEditor extends CortexElement {
17
+ #private;
18
+ static readonly styles: CSSResultGroup;
19
+ static readonly dependencies: {
20
+ 'cx-xml-editor-element-tag': typeof CxXmlEditorElementTag;
21
+ 'cx-xml-editor-packet-editor': typeof CxXmlEditorPacketEditor;
22
+ 'cx-xml-editor-viewer': typeof CxXmlEditorViewer;
23
+ };
24
+ /** Tags whose direct text content becomes a `Text`-node child, mirroring the ported schema's `TEXT_TAGS` set. */
25
+ private static readonly TEXT_TAGS;
26
+ static findElementIndex(parent: XmlEditorElement, key: string, value: XmlEditorElement): number;
27
+ static getNewElement(key: string, type: XmlEditorNodeType, attributes?: {
28
+ [id: string]: string;
29
+ }): XmlEditorElement;
30
+ static deleteElement(parent: XmlEditorElement, key: string, value: XmlEditorElement): XmlEditorTreeNode | null;
31
+ /** Parses a Fetch Rules XML string into a `XmlEditorTreeNode`, or `null` if `xmlString` is empty or malformed. */
32
+ static loadXML(xmlString: string): XmlEditorTreeNode | null;
33
+ private static isTextTag;
34
+ private static getDirectParentName;
35
+ private static traverseXMLElements;
36
+ private static appendTextNode;
37
+ private static appendElementNode;
38
+ private static removeEmptyElements;
39
+ private apiGetAllAliasFields;
40
+ private apiGetAllSearchableFieldsForCurrentUser;
41
+ private apiGetEnabledRelations;
42
+ private apiGetSortOrders;
43
+ private apiGetSubTypesWithWildcard;
44
+ /** The initial Fetch Rules XML. Subsequent edits are reported via `cx-xml-editor-change`, not by re-setting this. */
45
+ value: string;
46
+ /** Shows the raw-XML debug preview below the tree when true. */
47
+ debug: boolean;
48
+ /** The parsed Fetch Rules tree currently rendered. `null` until the initial XML has been parsed. */
49
+ private tree;
50
+ /** The node most recently copied via the tree's hover menu, available for a single paste. */
51
+ private copiedNode;
52
+ private referenceDataLoading;
53
+ private enabledRelations;
54
+ private sortOrders;
55
+ private subTypes;
56
+ private subTypesMap;
57
+ private metadataFields;
58
+ private sameFields;
59
+ connectedCallback(): void;
60
+ /**
61
+ * Parses `value` into `tree` — both for the initial render and whenever a host reassigns `value` after connection
62
+ * (e.g. once async data finishes loading). Deliberately not `waitUntilFirstUpdate`: a host that sets `value`
63
+ * synchronously right after creating the element (still before this element's first Lit update flushes) needs
64
+ * that assignment picked up on the first update too, not skipped as though it were the property's own default.
65
+ */
66
+ handleValueChange(): void;
67
+ private updateTree;
68
+ private refreshTree;
69
+ render(): TemplateResult<1>;
70
+ }
71
+ declare global {
72
+ interface HTMLElementTagNameMap {
73
+ 'cx-xml-editor': CxXmlEditor;
74
+ }
75
+ }
@@ -0,0 +1,23 @@
1
+ import { XmlEditorElement, XmlEditorElementActionKind, XmlEditorTag } from '../../../types/src/xml-editor';
2
+
3
+ export declare const Default: {
4
+ ElementName: string;
5
+ Tab: string;
6
+ TextName: string;
7
+ XML: Record<string, XmlEditorElement>;
8
+ };
9
+ export declare const DefaultXMLString = "\n<FetchRules>\n <Generation>\n <Packet>\n <Relations>\n </Relations>\n </Packet>\n </Generation>\n</FetchRules>\n";
10
+ export declare const TagMap: {
11
+ [id in XmlEditorTag]?: {
12
+ attributes?: string[];
13
+ children?: XmlEditorTag[];
14
+ };
15
+ };
16
+ export declare const AttributeDefaultValue: {
17
+ [key: string]: string[];
18
+ };
19
+ export declare const TagActionMap: {
20
+ [id in XmlEditorTag]?: {
21
+ [action in XmlEditorElementActionKind]?: true;
22
+ };
23
+ };
@@ -0,0 +1,2 @@
1
+ declare const _default: import('lit').CSSResult;
2
+ export default _default;
@@ -25,6 +25,9 @@ export declare enum DASHBOARD_API_ENDPOINT {
25
25
  GET_DASHBOARD_LIST = "webapi/extensibility/integrations/businessintelligence/getlistdashboards_41JI_v1"
26
26
  }
27
27
  export declare enum METADATA_API_ENDPOINT {
28
+ GET_ALL_ALIAS_FIELDS = "webapi/objectmanagement/metadata/fields/getallaliasfields_4C3_v1",
29
+ GET_ALL_SEARCHABLE_FIELDS_FOR_CURRENT_USER = "webapi/objectmanagement/metadata/fields/getallsearchablefieldsforcurrentuser_241_v1",
30
+ GET_ENABLED_RELATIONS = "webapi/objectmanagement/relations/getenabledrelations_49S_v1",
28
31
  GET_SEARCHABLE_FIELDS = "webapi/objectmanagement/metadata/fields/getallobjectfieldsforcurrentuser_4C2_v2",
29
32
  GET_SORT_ORDERS = "webapi/objectmanagement/sortorders_49V_v1",
30
33
  GET_SUBTYPES_WITH_WILDCARD = "webapi/document/doctype/subtypeswithwildcard_4A5_v1"
@@ -1,5 +1,18 @@
1
- import { GetSearchableFieldListResponse, GetSortOrdersResponse, GetSubTypesWithWildcardResponse } from './metadata.types';
1
+ import { GetAllAliasFieldsResponse, GetAllSearchableFieldsForCurrentUserResponse, GetEnabledRelationsResponse, GetSearchableFieldListResponse, GetSortOrdersResponse, GetSubTypesWithWildcardResponse } from './metadata.types';
2
2
 
3
3
  export declare function apiGetSearchableFieldList(): Promise<never[] | GetSearchableFieldListResponse>;
4
4
  export declare function apiGetSortOrders(): Promise<GetSortOrdersResponse>;
5
+ /**
6
+ * Derives both shapes the UI needs from a single pass over the same `subtypeswithwildcard` payload: `grouped` for
7
+ * the cascading Type -> Subtype selects, `flat` for flows that need a plain fully-qualified list (e.g. picking the
8
+ * first wildcard subtype for a new TypeFilters row). Previously these were two separate requests to the same URL,
9
+ * which required distinct axios-cache-interceptor request ids to avoid the cache treating them as one.
10
+ */
5
11
  export declare function apiGetSubTypesWithWildcard(): Promise<GetSubTypesWithWildcardResponse>;
12
+ export declare function apiGetAllAliasFields(): Promise<GetAllAliasFieldsResponse>;
13
+ /**
14
+ * Mirrors the React `mapSameFields` transform (`{ value, text }[]` -> `{ id, label }[]`). Not to be confused with
15
+ * `apiGetSearchableFieldList`, which hits the unrelated `getallobjectfieldsforcurrentuser_4C2_v2` endpoint.
16
+ */
17
+ export declare function apiGetAllSearchableFieldsForCurrentUser(): Promise<GetAllSearchableFieldsForCurrentUserResponse>;
18
+ export declare function apiGetEnabledRelations(): Promise<GetEnabledRelationsResponse>;
@@ -32,7 +32,16 @@ export type SubTypeOption = {
32
32
  * Outer key: `typeLabel` with spaces replaced by underscores (e.g. `Machine_learning_model`).
33
33
  * Inner key: `label` with spaces replaced by underscores (e.g. `All_Folders`).
34
34
  */
35
- export type GetSubTypesWithWildcardResponse = Record<string, Record<string, SubTypeOption>>;
35
+ export type GroupedSubTypes = Record<string, Record<string, SubTypeOption>>;
36
+ /**
37
+ * Both shapes derived from the same `subtypeswithwildcard` payload in a single pass: `grouped` for the cascading
38
+ * Type -> Subtype selects, `flat` (fully-qualified `DO_DOCUMENTS.<typeDbBOName>.<value>` paths, mirroring the React
39
+ * `concatSubTypes` transform) for flows that need a plain list, e.g. picking the first wildcard subtype.
40
+ */
41
+ export type GetSubTypesWithWildcardResponse = {
42
+ flat: SubTypeData[];
43
+ grouped: GroupedSubTypes;
44
+ };
36
45
  export type SortOrderDto = {
37
46
  description: string;
38
47
  id: string;
@@ -51,3 +60,30 @@ export type GetSortOrdersRawResponse = {
51
60
  sortOrders: SortOrderDto[];
52
61
  };
53
62
  export type GetSortOrdersResponse = SortOrderDto[];
63
+ export type GetAllAliasFieldsRawResponse = {
64
+ listFields: string[];
65
+ };
66
+ export type GetAllAliasFieldsResponse = string[];
67
+ export type GetAllSearchableFieldsForCurrentUserRawResponse = {
68
+ listFields: Array<{
69
+ text: string;
70
+ value: string;
71
+ }>;
72
+ };
73
+ export type GetAllSearchableFieldsForCurrentUserResponse = Array<{
74
+ id: string;
75
+ label: string;
76
+ }>;
77
+ export type EnabledRelationDto = {
78
+ childRole: string;
79
+ childType: string;
80
+ description: string;
81
+ id: string;
82
+ linkType: string;
83
+ parentRole: string;
84
+ parentType: string;
85
+ };
86
+ export type GetEnabledRelationsRawResponse = {
87
+ enabledRelations: EnabledRelationDto[];
88
+ };
89
+ export type GetEnabledRelationsResponse = EnabledRelationDto[];
@@ -5,6 +5,7 @@ import { DownloadDocType } from './download-format-picker';
5
5
  import { FolderSelectApi, FolderSelectVariant } from './folder-select';
6
6
  import { FontTypeface } from './font-picker';
7
7
  import { TableSelectColumn } from './table-select';
8
+ import { TypeSubtypeOption } from './type-subtype-select';
8
9
 
9
10
  export declare const SPACE_DEFAULT_FONT_FAMILY = "space-default";
10
11
  export declare enum DeviceType {
@@ -80,7 +81,7 @@ export type PropertyConfig<T = Record<string, any>> = Omit<TraitProperties, 'opt
80
81
  checkedValue?: string | boolean;
81
82
  children?: PropertyConfig[];
82
83
  clearable?: boolean;
83
- controlType: 'asset-transformation' | 'bicolor-picker' | 'border-input-group' | 'button-group' | 'checkbox' | 'checkbox-group' | 'color-swatch-picker' | 'corner-position-input-group' | 'dam-custom-toolbar-buttons' | 'download-format-picker' | 'file' | 'folder-picker' | 'gallery-picker' | 'group' | 'group-heading' | 'icon-picker' | 'image-picker' | 'info-text' | 'input' | 'list-editor' | 'all-picker' | 'other-picker' | 'padding-input-group' | 'page-picker' | 'placeholder' | 'position-picker' | 'radio-card-group' | 'radio-group' | 'select' | 'shadow-input-group' | 'size-input-group' | 'switch' | 'table' | 'text' | 'audio-picker' | 'asset-format-picker' | 'font-picker' | 'video-picker';
84
+ controlType: 'asset-transformation' | 'bicolor-picker' | 'border-input-group' | 'button-group' | 'checkbox' | 'checkbox-group' | 'color-swatch-picker' | 'corner-position-input-group' | 'dam-custom-toolbar-buttons' | 'download-format-picker' | 'file' | 'folder-picker' | 'gallery-picker' | 'group' | 'group-heading' | 'icon-picker' | 'image-picker' | 'info-text' | 'input' | 'list-editor' | 'all-picker' | 'other-picker' | 'padding-input-group' | 'page-picker' | 'placeholder' | 'position-picker' | 'radio-card-group' | 'radio-group' | 'select' | 'shadow-input-group' | 'size-input-group' | 'switch' | 'table' | 'text' | 'type-subtype-select' | 'audio-picker' | 'asset-format-picker' | 'font-picker' | 'video-picker';
84
85
  cornerStyleKey?: {
85
86
  offsetX: string;
86
87
  offsetY: string;
@@ -190,6 +191,12 @@ export type PropertyConfig<T = Record<string, any>> = Omit<TraitProperties, 'opt
190
191
  translatable?: boolean;
191
192
  translateGroup?: string;
192
193
  type: 'attribute' | 'property' | 'style' | 'decorative';
194
+ typeSubtypeSelectConfigs?: {
195
+ /** Resolves the available type/subtype options. Fetched once and cached by trait id. */
196
+ api: () => Promise<TypeSubtypeOption[]>;
197
+ /** Whether multiple type/subtype rows can be added (space-separated subtype values). */
198
+ multiple?: boolean;
199
+ };
193
200
  uncheckedValue?: string | boolean;
194
201
  useSearchTerm?: boolean;
195
202
  width?: ((record: Record<string, unknown>) => string | number) | string | number;
@@ -0,0 +1,108 @@
1
+ /** Discriminates whether a Fetch Rules tree node is a nested element or a text leaf. */
2
+ export declare enum XmlEditorNodeType {
3
+ Element = "Element",
4
+ Text = "Text"
5
+ }
6
+ /** Internal dispatch protocol used by `packet-editor` to describe a Packet mutation to the host `cx-xml-editor`. */
7
+ export declare enum XmlEditorPacketActionType {
8
+ AddElement = "ADD_ELEMENT",
9
+ AddText = "ADD_TEXT",
10
+ DeleteElement = "DELETE_ELEMENT",
11
+ UpdateElement = "UPDATE_ELEMENT",
12
+ UpdateRelation = "UPDATE_RELATION"
13
+ }
14
+ /** Closed set of tree-row actions surfaced by `element-tag`'s hover menu, keyed off `TagActionMap`. */
15
+ export declare enum XmlEditorElementActionKind {
16
+ AddElement = "ADD_ELEMENT",
17
+ Copy = "COPY",
18
+ Delete = "DELETE",
19
+ EditElement = "EDIT_ELEMENT",
20
+ Paste = "PASTE"
21
+ }
22
+ /** Relation direction, reused both as the `Relation` element's `direction` attribute and as a Packet grouping key. */
23
+ export declare enum XmlEditorRelationDirection {
24
+ Both = "Both",
25
+ Children = "Children",
26
+ Parents = "Parents"
27
+ }
28
+ /** Notification severity forwarded via `cx-xml-editor-notify`, replacing the legacy `Matrix3.ShowNotification` call. */
29
+ export declare enum XmlEditorNotifyType {
30
+ Error = "error",
31
+ Info = "info",
32
+ Success = "success",
33
+ Warning = "warning"
34
+ }
35
+ /**
36
+ * Closed set of Fetch Rules tag names. Kept as a string-literal union (not an enum) because it is used pervasively
37
+ * as record keys and index-signature values across `TagMap`, `TagActionMap`, `AttributeDefaultValue`, and the tree
38
+ * mutation helpers — an enum would force `String(Tag.X)` conversions at every one of those call sites.
39
+ */
40
+ export type XmlEditorTag = 'Ancestors' | 'Descendants' | 'DescendantsSeeThru' | 'ExtraFilters' | 'FetchRules' | 'Generation' | 'LexicallySimilar' | 'Limit' | 'OrderBy' | 'Packet' | 'Relation' | 'Relations' | 'SameFieldValue' | 'SemanticallySimilar' | 'Self' | 'TypeFilters';
41
+ /** One Fetch Rules tree element (an `Element` node or a text leaf). */
42
+ export type XmlEditorElement = {
43
+ attributes?: {
44
+ [id: string]: string;
45
+ };
46
+ elements?: XmlEditorTreeNode[];
47
+ expand: boolean;
48
+ id?: string;
49
+ name?: XmlEditorTag;
50
+ type: XmlEditorNodeType;
51
+ };
52
+ /** A single-key record mapping a tag/text name to its `XmlEditorElement` payload — the tree's recursive unit. */
53
+ export type XmlEditorTreeNode = {
54
+ [id: string]: XmlEditorElement;
55
+ };
56
+ export type XmlEditorRelationData = {
57
+ childRole: string;
58
+ childType: string;
59
+ description: string;
60
+ id: string;
61
+ linkType: string;
62
+ parentRole: string;
63
+ parentType: string;
64
+ };
65
+ export type XmlEditorSortOrderData = {
66
+ description: string;
67
+ id: string;
68
+ legacyValue: string;
69
+ name: string;
70
+ sortDirection: string;
71
+ };
72
+ export type XmlEditorSubTypeData = {
73
+ label: string;
74
+ subTypeValue: string;
75
+ typeDbBOName: string;
76
+ typeLabel: string;
77
+ };
78
+ export type XmlEditorSameFieldData = {
79
+ id: string;
80
+ label: string;
81
+ };
82
+ /** Reference data self-loaded by `cx-xml-editor` and threaded down to `packet-editor` / `asset-type`. */
83
+ export type XmlEditorReferenceData = {
84
+ enabledRelations: XmlEditorRelationData[];
85
+ metadataFields: string[];
86
+ sameFields: XmlEditorSameFieldData[];
87
+ subTypes: XmlEditorSubTypeData[];
88
+ subTypesMap: Record<string, Record<string, {
89
+ subTypeValue: string;
90
+ typeDbBOName: string;
91
+ }>>;
92
+ };
93
+ /** Internal payload shape for `cx-xml-editor-packet-change`, mirroring the React `PacketPayload` protocol. */
94
+ export type XmlEditorPacketPayload = {
95
+ attributes?: {
96
+ [id: string]: string;
97
+ };
98
+ key?: string;
99
+ newValue?: boolean | number | string;
100
+ parent?: XmlEditorElement;
101
+ self?: XmlEditorElement | XmlEditorTreeNode;
102
+ toDelete?: boolean;
103
+ value?: XmlEditorElement | XmlEditorTreeNode;
104
+ };
105
+ export type XmlEditorPacketChangeDetail = {
106
+ payload: XmlEditorPacketPayload;
107
+ type: XmlEditorPacketActionType;
108
+ };
@@ -27,6 +27,7 @@ export interface Translation extends DefaultTranslation {
27
27
  addARectangle: string;
28
28
  addAnArrow: string;
29
29
  addAssetCard: string;
30
+ addAssetTypeFilter: string;
30
31
  addBlock: string;
31
32
  addButton: string;
32
33
  addCard: string;
@@ -107,6 +108,7 @@ export interface Translation extends DefaultTranslation {
107
108
  assetStatuses: string;
108
109
  assetTypes: string;
109
110
  assets: string;
111
+ assetsShareSameValueOnField: string;
110
112
  attachment: string;
111
113
  audio: string;
112
114
  audioFile: string;
@@ -210,6 +212,9 @@ export interface Translation extends DefaultTranslation {
210
212
  characterFormat: string;
211
213
  checkSpelling: string;
212
214
  checkbox: string;
215
+ childRole: string;
216
+ childType: string;
217
+ children: string;
213
218
  choose: string;
214
219
  chooseExistingPaletteOrCreateNew: string;
215
220
  chooseTableSize: string;
@@ -228,6 +233,7 @@ export interface Translation extends DefaultTranslation {
228
233
  close: string;
229
234
  code: string;
230
235
  codeSample: string;
236
+ collapse: string;
231
237
  collapseButtonText: string;
232
238
  collapseMenu: string;
233
239
  collapsedByDefault: string;
@@ -321,6 +327,7 @@ export interface Translation extends DefaultTranslation {
321
327
  details: string;
322
328
  detailsSourceField: string;
323
329
  dimensions: string;
330
+ directRelationOnRelation: (label: string) => string;
324
331
  disabledHeightInputHelpText: string;
325
332
  discardAllPendingEffects: string;
326
333
  disconnect: string;
@@ -361,6 +368,7 @@ export interface Translation extends DefaultTranslation {
361
368
  easing: string;
362
369
  edit: string;
363
370
  editAssetCard: string;
371
+ editAttributes: string;
364
372
  editButton: string;
365
373
  editCard: string;
366
374
  editCellProperties: string;
@@ -402,6 +410,7 @@ export interface Translation extends DefaultTranslation {
402
410
  emptyVideo: string;
403
411
  enableCaption: string;
404
412
  enterPasswordToOpenFile: string;
413
+ enterValueForSelectedField: string;
405
414
  enterYourSiteUrlToConnect: string;
406
415
  environment: string;
407
416
  error: string;
@@ -414,10 +423,12 @@ export interface Translation extends DefaultTranslation {
414
423
  executeACommand: string;
415
424
  executeWorkflow: string;
416
425
  exitFullscreen: string;
426
+ expand: string;
417
427
  expandAssetInFullScreen: string;
418
428
  expandButtonText: string;
419
429
  expandMenu: string;
420
430
  expandedFolders: string;
431
+ explore: string;
421
432
  expo: string;
422
433
  export: string;
423
434
  exportAsCsv: string;
@@ -431,6 +442,7 @@ export interface Translation extends DefaultTranslation {
431
442
  favorites: string;
432
443
  favoritesSync: string;
433
444
  female: string;
445
+ fieldName: string;
434
446
  file: string;
435
447
  fileOnDemandSyncErrorMessage: string;
436
448
  fill: string;
@@ -487,6 +499,7 @@ export interface Translation extends DefaultTranslation {
487
499
  generateResponse: string;
488
500
  getLinkToThisAsset: string;
489
501
  goToAsset: string;
502
+ goToAssetButton: string;
490
503
  goToFirstPage: string;
491
504
  goToLastPage: string;
492
505
  goToSlide: (slide: number, count: number) => string;
@@ -580,13 +593,17 @@ export interface Translation extends DefaultTranslation {
580
593
  letterSpacing: string;
581
594
  level: string;
582
595
  levelOfAccess: string;
596
+ limitToAssetTypes: string;
597
+ limitToFirst: string;
583
598
  lineAppearance: string;
584
599
  lineColor: string;
585
600
  lineHeight: string;
586
601
  lineWidth: string;
602
+ lineageLibraryFolderSubfolder: string;
587
603
  linear: string;
588
604
  link: string;
589
605
  linkHelpText: string;
606
+ linkType: string;
590
607
  listOfColors: string;
591
608
  listOfControls: string;
592
609
  listOfFonts: string;
@@ -625,6 +642,7 @@ export interface Translation extends DefaultTranslation {
625
642
  min: string;
626
643
  minHeight: string;
627
644
  minWidth: string;
645
+ minify: string;
628
646
  minimize: string;
629
647
  minute: string;
630
648
  mobile: string;
@@ -701,6 +719,7 @@ export interface Translation extends DefaultTranslation {
701
719
  openPage: string;
702
720
  openSpace: string;
703
721
  options: string;
722
+ orderBy: string;
704
723
  orderedList: string;
705
724
  outdent: string;
706
725
  overflow: string;
@@ -724,6 +743,9 @@ export interface Translation extends DefaultTranslation {
724
743
  paragraph: string;
725
744
  paragraphSpacing: string;
726
745
  parameters: string;
746
+ parentRole: string;
747
+ parentType: string;
748
+ parents: string;
727
749
  password: string;
728
750
  passwordEmpty: string;
729
751
  paste: string;
@@ -766,6 +788,7 @@ export interface Translation extends DefaultTranslation {
766
788
  presetThisYear: string;
767
789
  presetToday: string;
768
790
  pressEnterOrCtrlCToCopy: string;
791
+ prettyPrint: string;
769
792
  preview: string;
770
793
  previewText: string;
771
794
  previewTooltip: string;
@@ -790,6 +813,9 @@ export interface Translation extends DefaultTranslation {
790
813
  recent: string;
791
814
  redo: string;
792
815
  refresh: string;
816
+ relationDirectionChildren: string;
817
+ relationDirectionChildrenAndParents: string;
818
+ relationDirectionParents: string;
793
819
  relative: string;
794
820
  rememberCollapsedState: string;
795
821
  remove: string;
@@ -846,6 +872,7 @@ export interface Translation extends DefaultTranslation {
846
872
  scrollToEnd: string;
847
873
  scrollToStart: string;
848
874
  search: string;
875
+ searchApiQuery: string;
849
876
  searchBox: string;
850
877
  searchDownloads: string;
851
878
  searchFolders: string;
@@ -859,8 +886,11 @@ export interface Translation extends DefaultTranslation {
859
886
  sectionTitles: string;
860
887
  securityPoint: string;
861
888
  seeThru: string;
889
+ seeThruOnRealFolderOnly: string;
890
+ seeThruOnVirtualFolder: string;
862
891
  selectAColor: string;
863
892
  selectAColorFromTheScreen: string;
893
+ selectARelationship: string;
864
894
  selectAll: string;
865
895
  selectFolder: string;
866
896
  selectFolders: string;
@@ -895,6 +925,8 @@ export interface Translation extends DefaultTranslation {
895
925
  showRightSidePanel: string;
896
926
  siblingsFadeOut: string;
897
927
  sidePanels: string;
928
+ similarAssetsBasedOnSemantics: string;
929
+ similarAssetsBasedOnText: string;
898
930
  siteSearch: string;
899
931
  size: string;
900
932
  slide: string;
@@ -911,6 +943,7 @@ export interface Translation extends DefaultTranslation {
911
943
  solid: string;
912
944
  solidBullet: string;
913
945
  sort: string;
946
+ sortDirection: string;
914
947
  source: string;
915
948
  space: string;
916
949
  spaceDefault: string;
@@ -938,14 +971,17 @@ export interface Translation extends DefaultTranslation {
938
971
  styling: string;
939
972
  subfolders: string;
940
973
  subscript: string;
974
+ subtype: string;
941
975
  suggestDeletion: string;
942
976
  suggestedEdits: string;
943
977
  superscript: string;
978
+ supportsSearchApiSyntaxPlaceholder: string;
944
979
  switchToPresentationMode: string;
945
980
  switchToReadingMode: string;
946
981
  syncCanceled: string;
947
982
  syncFailed: string;
948
983
  syncing: string;
984
+ systemName: string;
949
985
  tabBackground: string;
950
986
  table: string;
951
987
  tableProperties: string;
@@ -29,4 +29,7 @@ export declare function getCurrentZIndex(): any;
29
29
  export declare function getCortexPopupLayer(): HTMLElement;
30
30
  export declare function getElementFromTemplate<T extends HTMLElement>(template: TemplateResult): T;
31
31
  export declare function getElementFromHTMLString<T extends HTMLElement>(htmlString: string): T | null;
32
+ export declare function getAttributes(attributes: NamedNodeMap): {
33
+ [id: string]: string;
34
+ };
32
35
  export declare function isElementInHorizontalView(container: HTMLElement, el: HTMLElement, offset?: number): boolean;
@@ -154,3 +154,14 @@ export declare function emptyToSpace(value: any): string;
154
154
  export declare function isGalleryItemCardType(value: unknown): value is GalleryItemCardType;
155
155
  export declare function safeExtension(ext: string | null | undefined): string;
156
156
  export declare function parseBooleanString(boolString: string | null | undefined): boolean;
157
+ /** Escapes the 5 reserved XML characters (`<`, `>`, `&`, `'`, `"`) into their entity form. */
158
+ export declare function escapeXML(value: string): string;
159
+ /** Reverses {@link escapeXML}: converts the 5 reserved XML entities back into their literal characters. */
160
+ export declare function unescapeXML(value: string): string;
161
+ /**
162
+ * Builds a leading-space-prefixed ` key="value"` attribute string for an XML/HTML start tag, skipping the `value`
163
+ * key (reserved for element text content in the caller's schema). Returns `''` when there are no attributes.
164
+ */
165
+ export declare function getAttributesString(attributes?: {
166
+ [id: string]: string;
167
+ }): string;