@orangelogic/design-system 2.142.0 → 2.143.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 (222) hide show
  1. package/library/chunks/{AxisLabelRadial.C4AH2ZWx.js → AxisLabelRadial.D-dnNhId.js} +1 -1
  2. package/library/chunks/{BaseColumnSeries.BV8sY1Da.js → BaseColumnSeries.DuJGGHnE.js} +1 -1
  3. package/library/chunks/{CandlestickSeries.C8BE8OT-.js → CandlestickSeries.Dvk4WnlG.js} +2 -2
  4. package/library/chunks/{Circle.BaJWdg6Z.js → Circle.CSPkPGZR.js} +1 -1
  5. package/library/chunks/{ColumnSeries.BGUw3nLY.js → ColumnSeries.BgqnNaWx.js} +2 -2
  6. package/library/chunks/{EditableAxisLabel.CsgqEVmA.js → EditableAxisLabel.htXPpq9V.js} +2 -2
  7. package/library/chunks/{EditableLabel.gd9mjKfA.js → EditableLabel.BVdITrjV.js} +1 -1
  8. package/library/chunks/{Gradient.Sa3COx_2.js → Gradient.Bw8LaBZS.js} +1 -1
  9. package/library/chunks/{LinearGradient.BM0pPmvI.js → LinearGradient.DryVGwkQ.js} +2 -2
  10. package/library/chunks/{Picture.DVyGQOmS.js → Picture.GEGxHvQB.js} +1 -1
  11. package/library/chunks/{Polygon.Du2DRvxU.js → Polygon.B7Vu5sIv.js} +1 -1
  12. package/library/chunks/{ProgressPie.D3FRfVo5.js → ProgressPie.C2sMNGxC.js} +5 -5
  13. package/library/chunks/{RadialLabel.Dgipjivh.js → RadialLabel.DCE1UsLn.js} +1 -1
  14. package/library/chunks/{Scrollbar.BDbLJ_xZ.js → Scrollbar.DoQ3emzl.js} +1 -1
  15. package/library/chunks/{Slice.BIXpM75a.js → Slice.BtEmJlKG.js} +1 -1
  16. package/library/chunks/{Slider.BZNFS2HS.js → Slider.BkWEJjkG.js} +1 -1
  17. package/library/chunks/{SpriteResizer.awVrrc-n.js → SpriteResizer.CkJ6wMt2.js} +1 -1
  18. package/library/chunks/{Triangle.DW7bUiPK.js → Triangle.DRbqqwUv.js} +1 -1
  19. package/library/chunks/{ZoomTools.CSBkRpSo.js → ZoomTools.B2lVZ7om.js} +1 -1
  20. package/library/chunks/{_baseIteratee.DpzDid58.js → _baseIteratee.Dhw-0WrS.js} +12 -12
  21. package/library/chunks/{_baseUniq.HFKneygy.js → _baseUniq.DP9Qak6V.js} +1 -1
  22. package/library/chunks/_baseXor.DY_sP7af.js +116 -0
  23. package/library/chunks/{am-chart.sBfZlJdc.js → am-chart.DaqbO8CU.js} +252 -252
  24. package/library/chunks/{animation.hpY88RxG.js → animation.DYTPen16.js} +1 -1
  25. package/library/chunks/{asset-link-format.Du63EIst.js → asset-link-format.BVoE-GrD.js} +12 -12
  26. package/library/chunks/{button.C6-GrLyD.js → button.Bja8HrmJ.js} +4 -4
  27. package/library/chunks/button.styles.CATjjP1T.js +5 -0
  28. package/library/chunks/{capitalize.i-sHIcnm.js → capitalize.WZm6pIpy.js} +1 -1
  29. package/library/chunks/{checkbox.i5dgRvaf.js → checkbox.kdSMUgR1.js} +2 -2
  30. package/library/chunks/{color-swatch-group.BqJHjmG5.js → color-swatch-group.CwHdAKQv.js} +5444 -4076
  31. package/library/chunks/{color-swatch.DimFgBSf.js → color-swatch.DCePblYs.js} +34 -34
  32. package/library/chunks/{colorPicker.r8zsh6Oj.js → colorPicker.B1c_VK97.js} +5 -5
  33. package/library/chunks/{confirm-popover.CTdjw4Mi.js → confirm-popover.CQm_rVIt.js} +4 -4
  34. package/library/chunks/{content-builder.BGzxZUgi.js → content-builder.D-_Ou8sw.js} +14 -12
  35. package/library/chunks/dialog.0TzzxNXE.js +1820 -0
  36. package/library/chunks/{document-viewer.DQXvmHvo.js → document-viewer.Bb1M9uJ-.js} +9 -9
  37. package/library/chunks/{dot-pagination.CoG0XmAq.js → dot-pagination.BwSugdZk.js} +2 -2
  38. package/library/chunks/{endpoints.ASL1clzd.js → endpoints.Bn_YviaU.js} +1 -1
  39. package/library/chunks/{exporting.B3VErmmW.js → exporting.C47Rlm_F.js} +2 -2
  40. package/library/chunks/{flow.gWPD-GN_.js → flow.DhXYaDTn.js} +5 -5
  41. package/library/chunks/{folder-select.BudMvcEM.js → folder-select.5f4e8jqB.js} +7 -7
  42. package/library/chunks/{gantt.D_6T9w75.js → gantt.B-KoNU00.js} +8 -8
  43. package/library/chunks/{header.zCbb-t6m.js → header.BZKaF_-o.js} +35 -35
  44. package/library/chunks/{hierarchy.BeJLXp9N.js → hierarchy.DZcTzpNv.js} +5 -5
  45. package/library/chunks/{hub-connection.Dri0ZNfh.js → hub-connection.C9j9Ce_a.js} +1 -1
  46. package/library/chunks/{i18n.DeUAP8n2.js → i18n.C4wPyPTR.js} +10 -0
  47. package/library/chunks/{icon-button.LhIEmHNF.js → icon-button.Ce2tPGuf.js} +2 -2
  48. package/library/chunks/{icon.DnBh6-56.js → icon.-k4fR0bD.js} +1 -1
  49. package/library/chunks/{iframe.c0IPEUiJ.js → iframe.CnG8EcG1.js} +2 -2
  50. package/library/chunks/{image.B3vsXGrN.js → image.C2acLx6g.js} +3 -3
  51. package/library/chunks/{index.CnBD7_1u.js → index.B7KpCL4Q.js} +17 -17
  52. package/library/chunks/{input.ClJ4MEsk.js → input.BAvin1Qu.js} +3 -3
  53. package/library/chunks/{json.BTCD_bjV.js → json.CYp1GBUl.js} +3 -3
  54. package/library/chunks/{map.HWubaOh9.js → map.DCp6R-yn.js} +2 -2
  55. package/library/chunks/{option.n6PDuSs1.js → option.DT-6HmoC.js} +4 -4
  56. package/library/chunks/{pagination.CNeaChqP.js → pagination.KvDdhXZL.js} +7 -7
  57. package/library/chunks/{percent.0CeOGNP1.js → percent.C253sJzT.js} +3 -3
  58. package/library/chunks/{radar.CDUzjkcg.js → radar.Bh033jVx.js} +4 -4
  59. package/library/chunks/{sliceGrouper.nPe6eWIh.js → sliceGrouper.BOB7t0KC.js} +1 -1
  60. package/library/chunks/{stock.CmWtnkxv.js → stock.rKM7Pn6U.js} +9 -9
  61. package/library/chunks/{tab-group.COQGzlw4.js → tab-group.DyInpwMz.js} +4 -4
  62. package/library/chunks/{timeline.DDCHQ84a.js → timeline.8Dbc5Mzg.js} +5 -5
  63. package/library/chunks/{toString.CAY8lys2.js → toString.BDhOhZPZ.js} +1 -1
  64. package/library/chunks/{toast.Bz-j7zP2.js → toast.BYVF5TVe.js} +4 -4
  65. package/library/chunks/{tree.DeIv5gWv.js → tree.BpSudcAI.js} +4 -4
  66. package/library/chunks/typography.IqHbnd3C.js +52 -0
  67. package/library/chunks/{venn.BZgn9wxo.js → venn.9MIxwncF.js} +1 -1
  68. package/library/chunks/{watch.CThbualB.js → watch.CkGTlwIo.js} +10 -10
  69. package/library/chunks/{wc.BUEDSaz-.js → wc.s24RZyr1.js} +1 -1
  70. package/library/chunks/{xy.Wbux-yPv.js → xy.QPSrxL0Q.js} +10 -10
  71. package/library/components/alert.js +3 -3
  72. package/library/components/am-chart.js +2 -2
  73. package/library/components/animated-image.js +2 -2
  74. package/library/components/animation.js +2 -2
  75. package/library/components/array-line-clamp.js +1 -1
  76. package/library/components/asset-link-format.js +5 -5
  77. package/library/components/atoms.js +21 -21
  78. package/library/components/audio.js +4 -4
  79. package/library/components/avatar.js +2 -2
  80. package/library/components/border-input-group.js +2 -2
  81. package/library/components/breadcrumb-item.js +1 -1
  82. package/library/components/breadcrumb.js +2 -2
  83. package/library/components/button.js +5 -5
  84. package/library/components/checkbox.js +3 -3
  85. package/library/components/color-picker.js +5 -5
  86. package/library/components/color-swatch-group.js +7 -7
  87. package/library/components/color-swatch.js +4 -4
  88. package/library/components/confirm-popover.js +5 -5
  89. package/library/components/copy-button.js +3 -3
  90. package/library/components/corner-position-input-group.js +3 -3
  91. package/library/components/date-calendar.js +1 -1
  92. package/library/components/details.js +32 -32
  93. package/library/components/dialog.js +5 -6
  94. package/library/components/diff.js +1 -1
  95. package/library/components/divider.js +1 -1
  96. package/library/components/document-viewer.js +5 -5
  97. package/library/components/dot-pagination.js +3 -3
  98. package/library/components/drawer.js +4 -4
  99. package/library/components/dropdown.js +3 -3
  100. package/library/components/dynamic-select.js +7 -7
  101. package/library/components/e-chart.js +2 -2
  102. package/library/components/element-clamp.js +3 -3
  103. package/library/components/file-on-demand.js +1872 -36
  104. package/library/components/folder-select.js +7 -7
  105. package/library/components/format-bytes.js +1 -1
  106. package/library/components/format-date.js +1 -1
  107. package/library/components/format-number.js +1 -1
  108. package/library/components/format-time.js +2 -2
  109. package/library/components/grid-item.js +1 -1
  110. package/library/components/header.js +3 -3
  111. package/library/components/hub-connection.js +2 -2
  112. package/library/components/icon-button.js +3 -3
  113. package/library/components/icon.js +2 -2
  114. package/library/components/iframe.js +3 -3
  115. package/library/components/image-comparer.js +3 -3
  116. package/library/components/image.js +4 -4
  117. package/library/components/include.js +1 -1
  118. package/library/components/input.js +4 -4
  119. package/library/components/line-clamp.js +1 -1
  120. package/library/components/markdown.js +1 -1
  121. package/library/components/masonry.js +3 -3
  122. package/library/components/menu-item.js +3 -3
  123. package/library/components/menu.js +1 -1
  124. package/library/components/molecules.js +3 -3
  125. package/library/components/mutation-observer.js +1 -1
  126. package/library/components/option.js +4 -4
  127. package/library/components/organisms.js +6 -6
  128. package/library/components/padding-input-group.js +1 -1
  129. package/library/components/pagination.js +8 -8
  130. package/library/components/popup.js +1 -1
  131. package/library/components/position-picker.js +1 -1
  132. package/library/components/progress-bar.js +1 -1
  133. package/library/components/progress-ring.js +1 -1
  134. package/library/components/qr-code.js +1 -1
  135. package/library/components/radio-button.js +2 -2
  136. package/library/components/radio-card.js +1 -1
  137. package/library/components/radio-group.js +1 -1
  138. package/library/components/radio.js +2 -2
  139. package/library/components/range.js +2 -2
  140. package/library/components/rating.js +3 -3
  141. package/library/components/relative-time.js +1 -1
  142. package/library/components/resize-observer.js +1 -1
  143. package/library/components/select.js +5 -5
  144. package/library/components/shadow-input-group.js +1 -1
  145. package/library/components/share-option-list.js +4 -4
  146. package/library/components/sidebar.js +3 -3
  147. package/library/components/size-input-group.js +4 -4
  148. package/library/components/spinner.js +1 -1
  149. package/library/components/split-panel.js +2 -2
  150. package/library/components/step.js +1 -1
  151. package/library/components/stepper-wizard.js +1 -1
  152. package/library/components/stepper.js +1 -1
  153. package/library/components/switch.js +1 -1
  154. package/library/components/tab-group.js +5 -5
  155. package/library/components/tab-panel.js +1 -1
  156. package/library/components/tab.js +6 -6
  157. package/library/components/tag.js +2 -2
  158. package/library/components/textarea.js +1 -1
  159. package/library/components/timecode.js +2 -2
  160. package/library/components/tooltip.js +2 -2
  161. package/library/components/tree-item.js +5 -5
  162. package/library/components/tree.js +3 -3
  163. package/library/components/typeface.js +4 -4
  164. package/library/components/types.js +27435 -27778
  165. package/library/components/typography.js +1 -1
  166. package/library/components/video.js +3 -3
  167. package/library/package.json +1 -1
  168. package/library/packages/atoms/src/components/header/header.d.ts +1 -1
  169. package/library/packages/events/src/cx-board-change.d.ts +12 -0
  170. package/library/packages/events/src/cx-board-selected-change.d.ts +10 -0
  171. package/library/packages/events/src/cx-font-picker-change.d.ts +9 -0
  172. package/library/packages/events/src/cx-multi-select-change.d.ts +11 -0
  173. package/library/packages/events/src/cx-multi-select-configure.d.ts +8 -0
  174. package/library/packages/events/src/cx-table-column-editor-apply.d.ts +8 -0
  175. package/library/packages/events/src/cx-table-column-editor-cancel.d.ts +6 -0
  176. package/library/packages/events/src/cx-table-column-visibility-change.d.ts +9 -0
  177. package/library/packages/events/src/cx-table-columns-change.d.ts +8 -0
  178. package/library/packages/events/src/cx-table-edit-columns.d.ts +8 -0
  179. package/library/packages/events/src/cx-table-header-menu-close.d.ts +6 -0
  180. package/library/packages/events/src/cx-table-header-menu-select.d.ts +11 -0
  181. package/library/packages/events/src/events.d.ts +12 -0
  182. package/library/packages/hybrid/table-core/src/table/components/index.d.ts +2 -0
  183. package/library/packages/hybrid/table-core/src/table/components/table-column-editor/table-column-editor.d.ts +45 -0
  184. package/library/packages/hybrid/table-core/src/table/components/table-column-editor/table-column-editor.styles.d.ts +2 -0
  185. package/library/packages/hybrid/table-core/src/table/components/table-header-menu/table-header-menu.d.ts +55 -0
  186. package/library/packages/hybrid/table-core/src/table/components/table-header-menu/table-header-menu.styles.d.ts +2 -0
  187. package/library/packages/hybrid/table-core/src/table/table.d.ts +41 -1
  188. package/library/packages/molecules/src/font-picker/font-picker.d.ts +74 -0
  189. package/library/packages/molecules/src/font-picker/font-picker.styles.d.ts +2 -0
  190. package/library/packages/molecules/src/index.d.ts +1 -0
  191. package/library/packages/molecules/src/multi-select/components/board/board.d.ts +39 -14
  192. package/library/packages/molecules/src/multi-select/components/board-list-item/board-list-item.d.ts +1 -10
  193. package/library/packages/molecules/src/multi-select/multi-select.d.ts +7 -15
  194. package/library/packages/organisms/src/content-builder/components/config-form/config-form-controller.d.ts +2 -0
  195. package/library/packages/organisms/src/content-builder/components/config-form/config-form.d.ts +2 -1
  196. package/library/packages/organisms/src/content-builder/components/config-manager/config-manager.d.ts +5 -0
  197. package/library/packages/organisms/src/content-builder/configs/accordion.d.ts +2 -2
  198. package/library/packages/organisms/src/content-builder/configs/button.d.ts +2 -2
  199. package/library/packages/organisms/src/content-builder/configs/color-swatches.d.ts +3 -2
  200. package/library/packages/organisms/src/content-builder/configs/font-kit.d.ts +2 -2
  201. package/library/packages/organisms/src/content-builder/configs/header.d.ts +4 -4
  202. package/library/packages/organisms/src/content-builder/configs/text.d.ts +2 -2
  203. package/library/packages/organisms/src/content-builder/configs-controller.d.ts +4 -2
  204. package/library/packages/organisms/src/content-builder/content-builder.d.ts +6 -0
  205. package/library/packages/organisms/src/content-builder/content-builder.utils.d.ts +26 -0
  206. package/library/packages/organisms/src/content-builder/styleController.d.ts +21 -2
  207. package/library/packages/services/src/api/endpoints.d.ts +1 -0
  208. package/library/packages/services/src/api/teamspace/teamspace.d.ts +2 -0
  209. package/library/packages/types/src/content-builder.d.ts +14 -1
  210. package/library/packages/types/src/font-picker.d.ts +21 -0
  211. package/library/packages/types/src/table-column-editor.d.ts +12 -0
  212. package/library/packages/types/src/table.d.ts +5 -0
  213. package/library/packages/utils/src/custom-element/i18n.d.ts +10 -0
  214. package/library/packages/utils/src/font/font.d.ts +16 -0
  215. package/library/react-web-component.d.ts +71 -5
  216. package/library/utils.js +258 -242
  217. package/package.json +1 -1
  218. package/library/chunks/button.styles.Cz4EELcL.js +0 -5
  219. package/library/chunks/dialog.C79Kd2S4.js +0 -379
  220. package/library/chunks/file-on-demand.Bve3SdQJ.js +0 -1985
  221. package/library/chunks/overlayscrollbars.BMav4RQ4.js +0 -1445
  222. package/library/chunks/typography.DJC_UXgs.js +0 -52
@@ -1,6 +1,6 @@
1
1
  import "../chunks/lib-cortex-element.CVMmyPMC.js";
2
2
  import "../chunks/component.styles.CRO4Odto.js";
3
- import { C as a } from "../chunks/typography.DJC_UXgs.js";
3
+ import { C as a } from "../chunks/typography.IqHbnd3C.js";
4
4
  import "../chunks/custom-element.L4WJXn1j.js";
5
5
  import "../chunks/lit-element.jLBm65_O.js";
6
6
  export {
@@ -1,14 +1,14 @@
1
1
  import { _ as kd, a as Sa, b as Be, c as Je } from "../chunks/inheritsLoose.BuSn_CvZ.js";
2
2
  import { c as ps, a as Bn } from "../chunks/_commonjsHelpers.DQNKXVTB.js";
3
3
  import { r as Sb } from "../chunks/___vite-browser-external_commonjs-proxy.C2tf3HsQ.js";
4
- import { C as Cb } from "../chunks/image.B3vsXGrN.js";
4
+ import { C as Cb } from "../chunks/image.C2acLx6g.js";
5
5
  import Mb from "./resize-observer.js";
6
6
  import { r as Db, R as Pb, a as Rp, b as Lb } from "../chunks/resizable-component.styles.CAfXABBc.js";
7
7
  import { c as Rb } from "../chunks/component.styles.CRO4Odto.js";
8
8
  import { b as Ib } from "../chunks/browser.BHOCIF_A.js";
9
9
  import { c as Ob } from "../chunks/custom-element.L4WJXn1j.js";
10
- import { L as kb } from "../chunks/i18n.DeUAP8n2.js";
11
- import { w as Ki } from "../chunks/watch.CThbualB.js";
10
+ import { L as kb } from "../chunks/i18n.C4wPyPTR.js";
11
+ import { w as Ki } from "../chunks/watch.CkGTlwIo.js";
12
12
  import { i as Bb, x as Qc } from "../chunks/lit-element.jLBm65_O.js";
13
13
  import { n as Ri } from "../chunks/lib-cortex-element.CVMmyPMC.js";
14
14
  import { r as yn } from "../chunks/state.CSDxrqLd.js";
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@orangelogic/design-system",
3
3
  "type": "module",
4
- "version": "2.142.0",
4
+ "version": "2.143.0",
5
5
  "license": "UNLICENSED",
6
6
  "types": "library/types.d.ts",
7
7
  "scripts": {
@@ -71,7 +71,7 @@ export default class CxHeader extends CortexElement {
71
71
  addSlotElement(): void;
72
72
  handleHeadingChange(): void;
73
73
  private handleCopyButtonClick;
74
- renderHeading(content: TemplateResult): TemplateResult;
74
+ renderHeading(): TemplateResult;
75
75
  render(): TemplateResult;
76
76
  }
77
77
  declare global {
@@ -0,0 +1,12 @@
1
+ export type CxBoardChangeEvent = CustomEvent<{
2
+ id: string;
3
+ isMultiDrag?: boolean;
4
+ items: string[];
5
+ newIndex?: number;
6
+ type: string;
7
+ }>;
8
+ declare global {
9
+ interface GlobalEventHandlersEventMap {
10
+ 'cx-board-change': CxBoardChangeEvent;
11
+ }
12
+ }
@@ -0,0 +1,10 @@
1
+ export type CxBoardSelectedChangeEvent = CustomEvent<{
2
+ id: string;
3
+ items: string[];
4
+ type?: string;
5
+ }>;
6
+ declare global {
7
+ interface GlobalEventHandlersEventMap {
8
+ 'cx-board-selected-change': CxBoardSelectedChangeEvent;
9
+ }
10
+ }
@@ -0,0 +1,9 @@
1
+ export type CxFontPickerChangeEvent = CustomEvent<{
2
+ family: string;
3
+ style: string;
4
+ }>;
5
+ declare global {
6
+ interface GlobalEventHandlersEventMap {
7
+ 'cx-font-picker-change': CxFontPickerChangeEvent;
8
+ }
9
+ }
@@ -0,0 +1,11 @@
1
+ import { BoardItem } from '../../types/src/board';
2
+
3
+ export type CxMultiSelectChangeEvent = CustomEvent<{
4
+ id: string;
5
+ items: BoardItem[];
6
+ }>;
7
+ declare global {
8
+ interface GlobalEventHandlersEventMap {
9
+ 'cx-multi-select-change': CxMultiSelectChangeEvent;
10
+ }
11
+ }
@@ -0,0 +1,8 @@
1
+ export type CxMultiSelectConfigureEvent = CustomEvent<{
2
+ id: string;
3
+ }>;
4
+ declare global {
5
+ interface GlobalEventHandlersEventMap {
6
+ 'cx-multi-select-configure': CxMultiSelectConfigureEvent;
7
+ }
8
+ }
@@ -0,0 +1,8 @@
1
+ export type CxTableColumnEditorApplyEvent = CustomEvent<{
2
+ visibleFields: string[];
3
+ }>;
4
+ declare global {
5
+ interface GlobalEventHandlersEventMap {
6
+ 'cx-table-column-editor-apply': CxTableColumnEditorApplyEvent;
7
+ }
8
+ }
@@ -0,0 +1,6 @@
1
+ export type CxTableColumnEditorCancelEvent = CustomEvent<Record<PropertyKey, never>>;
2
+ declare global {
3
+ interface GlobalEventHandlersEventMap {
4
+ 'cx-table-column-editor-cancel': CxTableColumnEditorCancelEvent;
5
+ }
6
+ }
@@ -0,0 +1,9 @@
1
+ export type CxTableColumnVisibilityChangeEvent = CustomEvent<{
2
+ field: string;
3
+ visible: boolean;
4
+ }>;
5
+ declare global {
6
+ interface GlobalEventHandlersEventMap {
7
+ 'cx-table-column-visibility-change': CxTableColumnVisibilityChangeEvent;
8
+ }
9
+ }
@@ -0,0 +1,8 @@
1
+ export type CxTableColumnsChangeEvent = CustomEvent<{
2
+ visibleFields: string[];
3
+ }>;
4
+ declare global {
5
+ interface GlobalEventHandlersEventMap {
6
+ 'cx-table-columns-change': CxTableColumnsChangeEvent;
7
+ }
8
+ }
@@ -0,0 +1,8 @@
1
+ export type CxTableEditColumnsEvent = CustomEvent<{
2
+ field: string;
3
+ }>;
4
+ declare global {
5
+ interface GlobalEventHandlersEventMap {
6
+ 'cx-table-edit-columns': CxTableEditColumnsEvent;
7
+ }
8
+ }
@@ -0,0 +1,6 @@
1
+ export type CxTableHeaderMenuCloseEvent = CustomEvent<Record<PropertyKey, never>>;
2
+ declare global {
3
+ interface GlobalEventHandlersEventMap {
4
+ 'cx-table-header-menu-close': CxTableHeaderMenuCloseEvent;
5
+ }
6
+ }
@@ -0,0 +1,11 @@
1
+ import { TableHeaderMenuAction } from '../../types/src/table';
2
+
3
+ export type CxTableHeaderMenuSelectEvent = CustomEvent<{
4
+ action: TableHeaderMenuAction;
5
+ field: string;
6
+ }>;
7
+ declare global {
8
+ interface GlobalEventHandlersEventMap {
9
+ 'cx-table-header-menu-select': CxTableHeaderMenuSelectEvent;
10
+ }
11
+ }
@@ -23,6 +23,8 @@ export * from './cx-bento-range-change';
23
23
  export * from './cx-bento-resize';
24
24
  export * from './cx-bicolor-picker-change';
25
25
  export * from './cx-blur';
26
+ export * from './cx-board-change';
27
+ export * from './cx-board-selected-change';
26
28
  export * from './cx-book-reader-event';
27
29
  export * from './cx-border-input-group-change';
28
30
  export * from './cx-cancel';
@@ -83,6 +85,7 @@ export * from './cx-focus';
83
85
  export * from './cx-folder-select-children-loaded';
84
86
  export * from './cx-folder-select-search-term-change';
85
87
  export * from './cx-folder-select-selection-seeded';
88
+ export * from './cx-font-picker-change';
86
89
  export * from './cx-gallery-chunk-request';
87
90
  export * from './cx-gallery-config-save';
88
91
  export * from './cx-gallery-item-click';
@@ -122,6 +125,8 @@ export * from './cx-marker-create';
122
125
  export * from './cx-marker-delete';
123
126
  export * from './cx-masonry-select';
124
127
  export * from './cx-mount-request-asset';
128
+ export * from './cx-multi-select-change';
129
+ export * from './cx-multi-select-configure';
125
130
  export * from './cx-mutation';
126
131
  export * from './cx-open-cache-location';
127
132
  export * from './cx-open-drive';
@@ -189,10 +194,17 @@ export * from './cx-swatch-add';
189
194
  export * from './cx-tab-hide';
190
195
  export * from './cx-tab-show';
191
196
  export * from './cx-table-advanced-search-click';
197
+ export * from './cx-table-column-editor-apply';
198
+ export * from './cx-table-column-editor-cancel';
199
+ export * from './cx-table-column-visibility-change';
200
+ export * from './cx-table-columns-change';
192
201
  export * from './cx-table-data-load';
193
202
  export * from './cx-table-dropdown-filter-change';
203
+ export * from './cx-table-edit-columns';
194
204
  export * from './cx-table-export';
195
205
  export * from './cx-table-group-by-change';
206
+ export * from './cx-table-header-menu-close';
207
+ export * from './cx-table-header-menu-select';
196
208
  export * from './cx-table-row-action-click';
197
209
  export * from './cx-table-save-search-select';
198
210
  export * from './cx-table-select-all-change';
@@ -1,3 +1,5 @@
1
+ export { default as CxTableColumnEditor } from './table-column-editor/table-column-editor';
1
2
  export { default as CxTableFooter } from './table-footer/table-footer';
3
+ export { default as CxTableHeaderMenu } from './table-header-menu/table-header-menu';
2
4
  export { default as CxTableRowActions } from './table-row-actions/table-row-actions';
3
5
  export { default as CxTableToolbar } from './table-toolbar/table-toolbar';
@@ -0,0 +1,45 @@
1
+ import { default as CxButton } from '../../../../../../atoms/src/components/button/button.ts';
2
+ import { default as CxDialog } from '../../../../../../atoms/src/components/dialog/dialog.ts';
3
+ import { default as CortexElement } from '../../../../../../base/src/cortex-element.ts';
4
+ import { default as CxMultiSelect } from '../../../../../../molecules/src/multi-select/multi-select.ts';
5
+ import { TableColumnEditorEntry } from '../../../../../../types/src/table-column-editor';
6
+ import { CSSResultGroup } from 'lit';
7
+
8
+ /**
9
+ * @summary Bulk "Edit columns" editor for `cx-table`. Opens a modal dialog containing a
10
+ * `cx-multi-select`: left list is available (hidden) columns, right list is visible columns,
11
+ * reorderable via drag. Frozen columns are shown locked and pinned first in the visible list.
12
+ *
13
+ * @event {{ visibleFields: string[] }} cx-table-column-editor-apply - Emitted when the user confirms a new visible column set/order.
14
+ * @event cx-table-column-editor-cancel - Emitted when the user dismisses the editor without applying.
15
+ */
16
+ export default class CxTableColumnEditor extends CortexElement {
17
+ static readonly styles: CSSResultGroup;
18
+ static readonly dependencies: {
19
+ 'cx-button': typeof CxButton;
20
+ 'cx-dialog': typeof CxDialog;
21
+ 'cx-multi-select': typeof CxMultiSelect;
22
+ };
23
+ private readonly localize;
24
+ private readonly dialogEl;
25
+ /** Whether the editor dialog is open. */
26
+ open: boolean;
27
+ /** Snapshot of columns (in current render order) to edit. Set by `cx-table`. */
28
+ entries: TableColumnEditorEntry[];
29
+ private firstColumnData;
30
+ private secondColumnData;
31
+ /** Current order of the visible ("selected") board, including frozen fields. */
32
+ private visibleFields;
33
+ private get canApply();
34
+ handleEntriesChange(): void;
35
+ private handleMultiSelectChange;
36
+ private handleApply;
37
+ private handleCancel;
38
+ private handleDialogRequestClose;
39
+ render(): import('lit').TemplateResult<1>;
40
+ }
41
+ declare global {
42
+ interface HTMLElementTagNameMap {
43
+ 'cx-table-column-editor': CxTableColumnEditor;
44
+ }
45
+ }
@@ -0,0 +1,2 @@
1
+ declare const _default: import('lit').CSSResult;
2
+ export default _default;
@@ -0,0 +1,55 @@
1
+ import { default as CxIcon } from '../../../../../../atoms/src/components/icon/icon.ts';
2
+ import { default as CxMenu } from '../../../../../../atoms/src/components/menu/menu.ts';
3
+ import { default as CxMenuItem } from '../../../../../../atoms/src/components/menu-item/menu-item.ts';
4
+ import { default as CxPopup } from '../../../../../../atoms/src/components/popup/popup.ts';
5
+ import { default as CortexElement } from '../../../../../../base/src/cortex-element.ts';
6
+ import { CSSResultGroup } from 'lit';
7
+
8
+ /**
9
+ * @summary Right-click context menu for `cx-table` column headers, offering "Edit columns" (extension point) and
10
+ * "Hide column" actions.
11
+ *
12
+ * @description Anchored to the cursor position via a `VirtualElement`. Dismisses on outside click, a second
13
+ * right-click outside the menu, or `Escape`.
14
+ *
15
+ * @event {{ action: TableHeaderMenuAction, field: string }} cx-table-header-menu-select - Emitted when a menu item is selected.
16
+ * @event cx-table-header-menu-close - Emitted when the menu should be closed (outside interaction or Escape).
17
+ */
18
+ export default class CxTableHeaderMenu extends CortexElement {
19
+ static readonly styles: CSSResultGroup;
20
+ static readonly dependencies: {
21
+ 'cx-icon': typeof CxIcon;
22
+ 'cx-menu': typeof CxMenu;
23
+ 'cx-menu-item': typeof CxMenuItem;
24
+ 'cx-popup': typeof CxPopup;
25
+ };
26
+ private readonly localize;
27
+ private readonly virtualAnchor;
28
+ private readonly firstMenuItem;
29
+ /** Whether the menu is open. */
30
+ open: boolean;
31
+ /** The cursor's x position (viewport coordinates) the menu is anchored to. */
32
+ pointX: number;
33
+ /** The cursor's y position (viewport coordinates) the menu is anchored to. */
34
+ pointY: number;
35
+ /** The field of the column the menu was opened for. */
36
+ field: string;
37
+ /** Disables the "Hide column" item, e.g. when only one visible data column remains. */
38
+ hideDisabled: boolean;
39
+ constructor();
40
+ connectedCallback(): void;
41
+ disconnectedCallback(): void;
42
+ handleOpenChange(): void;
43
+ private handlePopupOpened;
44
+ private removeDocumentListeners;
45
+ private handleDocumentMouseDown;
46
+ private handleDocumentKeyDown;
47
+ private emitClose;
48
+ private handleMenuSelect;
49
+ render(): import('lit').TemplateResult<1>;
50
+ }
51
+ declare global {
52
+ interface HTMLElementTagNameMap {
53
+ 'cx-table-header-menu': CxTableHeaderMenu;
54
+ }
55
+ }
@@ -0,0 +1,2 @@
1
+ declare const _default: import('lit').CSSResult;
2
+ export default _default;
@@ -14,7 +14,7 @@ import { DateFilterCompareFormat, HoverMenuOptions, HttpMethod, PaginationPlacem
14
14
  import { SavedSearchItem, TableDropdownFilterData, TableGroupByOption } from '../../../../types/src/table-toolbar';
15
15
  import { CSSResultGroup, TemplateResult } from 'lit';
16
16
  import { RowComponent, TabulatorFull as Tabulator } from '../tabulator-tables';
17
- import { CxTableFooter, CxTableRowActions, CxTableToolbar } from './components';
17
+ import { CxTableColumnEditor, CxTableFooter, CxTableHeaderMenu, CxTableRowActions, CxTableToolbar } from './components';
18
18
 
19
19
  /**
20
20
  * @summary Tables are used to display data in a structured format.
@@ -71,6 +71,8 @@ import { CxTableFooter, CxTableRowActions, CxTableToolbar } from './components';
71
71
  * @event {{ url: string, format: string, rowCount: number }} cx-table-data-load - Emitted when data is successfully loaded from dataUrl.
72
72
  * @event {{ url: string, error: unknown }} cx-table-data-load-error - Emitted when fetching or parsing data from dataUrl fails.
73
73
  * @event {{ invalidCellCount: number, invalidCells: ICellComponent[] }} cx-table-validation-change - Emitted when the set of cells failing column `validator` rules changes (edit, load validation, or programmatic validate).
74
+ * @event {{ field: string, visible: boolean }} cx-table-column-visibility-change - Emitted after a column's visibility changes via the header right-click "Hide column" action.
75
+ * @event {{ field: string }} cx-table-edit-columns - Emitted when "Edit columns" is chosen from the header right-click menu. Extension point for a future manage-columns panel; no built-in panel is shown.
74
76
  */
75
77
  export default class CxTable extends CortexElement {
76
78
  #private;
@@ -87,7 +89,9 @@ export default class CxTable extends CortexElement {
87
89
  'cx-select': typeof CxSelect;
88
90
  'cx-space': typeof CxSpace;
89
91
  'cx-spinner': typeof CxSpinner;
92
+ 'cx-table-column-editor': typeof CxTableColumnEditor;
90
93
  'cx-table-footer': typeof CxTableFooter;
94
+ 'cx-table-header-menu': typeof CxTableHeaderMenu;
91
95
  'cx-table-row-actions': typeof CxTableRowActions;
92
96
  'cx-table-toolbar': typeof CxTableToolbar;
93
97
  'cx-tooltip': typeof CxTooltip;
@@ -213,6 +217,11 @@ export default class CxTable extends CortexElement {
213
217
  * The columnDefaults option allows you to set default configs for all columns in the table.
214
218
  */
215
219
  columnDefaults: Partial<ColumnDefinition>;
220
+ /**
221
+ * Enables the right-click context menu on column headers, offering "Edit columns" and "Hide column" actions.
222
+ * Disabled by default.
223
+ */
224
+ headerContextMenu: boolean;
216
225
  /**
217
226
  * Whether to display a search box
218
227
  */
@@ -798,6 +807,20 @@ export default class CxTable extends CortexElement {
798
807
  private dataUrlRequestId;
799
808
  /** True when facets are available — either from facet-config or from an AJAX response. Controls toolbar visibility. */
800
809
  hasFacets: boolean;
810
+ /** Whether the column-header right-click context menu is open. */
811
+ private headerMenuOpen;
812
+ /** The field of the column the header context menu was opened for. */
813
+ private headerMenuField;
814
+ /** The cursor's x position (viewport coordinates) the header context menu is anchored to. */
815
+ private headerMenuPointX;
816
+ /** The cursor's y position (viewport coordinates) the header context menu is anchored to. */
817
+ private headerMenuPointY;
818
+ /** Whether "Hide column" is disabled because hiding it would leave no visible data columns. */
819
+ private headerMenuHideDisabled;
820
+ /** Whether the bulk "Edit columns" editor dialog is open. */
821
+ private columnEditorOpen;
822
+ /** Snapshot of columns (in current render order) handed to the editor when it opens. */
823
+ private columnEditorEntries;
801
824
  get initialized(): boolean | undefined;
802
825
  get searchValue(): string;
803
826
  get isBottomPlacement(): boolean;
@@ -899,6 +922,23 @@ export default class CxTable extends CortexElement {
899
922
  private handleTabulatorAjaxResponse;
900
923
  private renderToolbar;
901
924
  private renderPaginationFooter;
925
+ /** Opens the column-header right-click context menu, anchored to the cursor position. */
926
+ private handleHeaderContextMenu;
927
+ private handleHeaderMenuSelect;
928
+ private handleHeaderMenuClose;
929
+ private handleColumnEditorApply;
930
+ private handleColumnEditorCancel;
931
+ /** Counts visible data columns (columns with a `field`) to decide whether "Hide column" should be disabled. */
932
+ private getVisibleDataColumnCount;
933
+ /** Builds the "Edit columns" editor model from current data columns, in current render order. */
934
+ private getColumnEditorModel;
935
+ /**
936
+ * Applies the "Edit columns" editor result: shows/hides non-frozen data columns to match
937
+ * `orderedVisibleFields`, reorders them to match, then emits the public change event. Frozen
938
+ * columns are never hidden or moved — they stay pinned, matching the engine's own
939
+ * MoveColumns guard against dragging frozen columns.
940
+ */
941
+ applyColumnEditor(orderedVisibleFields: string[]): void;
902
942
  render(): TemplateResult;
903
943
  }
904
944
  declare global {
@@ -0,0 +1,74 @@
1
+ import { default as CxDivider } from '../../../atoms/src/components/divider/divider.ts';
2
+ import { default as CxGrid } from '../../../atoms/src/components/grid/grid.ts';
3
+ import { default as CxGridItem } from '../../../atoms/src/components/grid-item/grid-item.ts';
4
+ import { default as CxMenuLabel } from '../../../atoms/src/components/menu-label/menu-label.ts';
5
+ import { default as CxOption } from '../../../atoms/src/components/option/option.ts';
6
+ import { default as CxSelect } from '../../../atoms/src/components/select/select.ts';
7
+ import { default as CxSpace } from '../../../atoms/src/components/space/space.ts';
8
+ import { default as CxTypography } from '../../../atoms/src/components/typography/typography.ts';
9
+ import { default as CortexElement } from '../../../base/src/cortex-element.ts';
10
+ import { FontPickerLayout, FontTypeface, FontTypefaceGroup } from '../../../types/src/font-picker';
11
+ import { CSSResultGroup, TemplateResult } from 'lit';
12
+
13
+ /**
14
+ * @summary A picker that allows selecting a typeface and its font family variant.
15
+ *
16
+ * @event {{ family: string; style: string }} cx-font-picker-change - Emitted when the selected typeface or font family changes.
17
+ *
18
+ * @csspart base - The component's base wrapper.
19
+ * @csspart family - The typeface select.
20
+ * @csspart style - The font-family select.
21
+ *
22
+ */
23
+ export default class CxFontPicker extends CortexElement {
24
+ static readonly styles: CSSResultGroup;
25
+ private readonly localize;
26
+ static readonly dependencies: {
27
+ 'cx-divider': typeof CxDivider;
28
+ 'cx-grid': typeof CxGrid;
29
+ 'cx-grid-item': typeof CxGridItem;
30
+ 'cx-menu-label': typeof CxMenuLabel;
31
+ 'cx-option': typeof CxOption;
32
+ 'cx-select': typeof CxSelect;
33
+ 'cx-space': typeof CxSpace;
34
+ 'cx-typography': typeof CxTypography;
35
+ };
36
+ /** The list of available typefaces, each containing font family variants. */
37
+ fontTypefaces: FontTypeface[];
38
+ /** The list of typeface groups, each with a label and typefaces. Takes precedence over fontTypefaces when non-empty. */
39
+ fontTypefaceGroups: FontTypefaceGroup[];
40
+ /** The selected typeface value. */
41
+ familyValue: string;
42
+ /** The selected font family value. Empty string means no family selected. */
43
+ styleValue: string;
44
+ /** Controls how the two selects are arranged. */
45
+ layout: FontPickerLayout;
46
+ /** Label text for the typeface select. */
47
+ labelFamily: string;
48
+ /** Label text for the font family select. */
49
+ labelStyle: string;
50
+ /** Marks both selects as required for form validation. */
51
+ required: boolean;
52
+ /**
53
+ * Single normalized representation of the input: an ungrouped `fontTypefaces`
54
+ * list becomes one unlabeled group, so the template has a single render path.
55
+ * Grouped input (`fontTypefaceGroups`) takes precedence when provided.
56
+ */
57
+ private get typefaceGroups();
58
+ private get allTypefaces();
59
+ private get selectedTypeface();
60
+ private get availableFamilies();
61
+ /** Whether the selected typeface exposes any style/variant options. */
62
+ private get hasStyleOptions();
63
+ private handleFamilyChange;
64
+ private handleStyleChange;
65
+ private renderTypefaceOptions;
66
+ private renderFamilySelect;
67
+ private renderStyleSelect;
68
+ render(): TemplateResult;
69
+ }
70
+ declare global {
71
+ interface HTMLElementTagNameMap {
72
+ 'cx-font-picker': CxFontPicker;
73
+ }
74
+ }
@@ -0,0 +1,2 @@
1
+ declare const _default: import('lit').CSSResult;
2
+ export default _default;
@@ -20,6 +20,7 @@ export { default as CxFacetDateRange } from './faceted-filter/components/facet-d
20
20
  export { default as CxFacetedFilter } from './faceted-filter/faceted-filter';
21
21
  export { default as CxFacetedFilterFacet } from './faceted-filter/components/facet/facet';
22
22
  export { default as CxFolderSelect } from './folder-select/folder-select';
23
+ export { default as CxFontPicker } from './font-picker/font-picker';
23
24
  export { default as CxGalleryItem } from './gallery-item/gallery-item';
24
25
  export { default as CxGraphView } from './graph-view/graph-view';
25
26
  export { default as CxIconPicker } from './icon-picker/icon-picker';
@@ -7,18 +7,6 @@ import { BoardItem } from '../../../../../types/src/board';
7
7
  import { default as Sortable } from 'sortablejs';
8
8
  import { default as CxBoardListItem } from '../board-list-item/board-list-item';
9
9
 
10
- export type CxBoardChangeEvent = CustomEvent<Record<PropertyKey, unknown>>;
11
- export type CxBoardSelectedChangeEvent = CustomEvent<Record<PropertyKey, unknown>>;
12
- export type CxBoardItemAddedEvent = CustomEvent<Record<PropertyKey, unknown>>;
13
- export type CxBoardItemRemovedEvent = CustomEvent<Record<PropertyKey, unknown>>;
14
- declare global {
15
- interface GlobalEventHandlersEventMap {
16
- 'cx-board-change': CxBoardChangeEvent;
17
- 'cx-board-item-added': CxBoardItemAddedEvent;
18
- 'cx-board-item-removed': CxBoardItemRemovedEvent;
19
- 'cx-board-selected-change': CxBoardSelectedChangeEvent;
20
- }
21
- }
22
10
  /**
23
11
  * @summary Board is a list of items that can be reordered by dragging and dropping them.
24
12
  *
@@ -80,12 +68,17 @@ export default class CxBoard extends CortexElement {
80
68
  get selectedCount(): number;
81
69
  get isAllSelected(): boolean;
82
70
  get isPartiallySelected(): boolean;
71
+ /**
72
+ * Rows counted toward "select all" (excludes synthetic group headers, disabled, and
73
+ * ignored-type items). `ignoreTypes` only gates this bulk select-all set — an ignored-type
74
+ * item can still be selected individually via click, keyboard, or shift-range.
75
+ */
76
+ get selectableItems(): BoardItem[];
83
77
  constructor();
84
78
  private resetSelectedItems;
85
79
  /** Handles the update of items in the board. */
86
80
  private handleUpdateEvent;
87
81
  private handleSelectedChange;
88
- private handleItemConfigure;
89
82
  private handleListScroll;
90
83
  private handleSearchChange;
91
84
  private handleSearchClear;
@@ -98,12 +91,44 @@ export default class CxBoard extends CortexElement {
98
91
  handleDefaultSelect(item: CxBoardListItem): void;
99
92
  handleShiftSelect(item: CxBoardListItem): void;
100
93
  handleSelect(evt: MouseEvent): void;
94
+ /**
95
+ * Whether a row is a real, individually-selectable item (not a synthetic group header, not
96
+ * disabled). Deliberately excludes the `ignoreTypes` check — an ignored type only opts an
97
+ * item out of the "select all" bulk set (see `selectableItems`), not out of individual
98
+ * click/keyboard/shift selection.
99
+ */
100
+ private isSelectableItem;
101
+ /**
102
+ * Selects only `boardItem`, deselecting all others (or deselects everything if it was already
103
+ * the sole selection) — the same single-item selection behavior as a plain (non-modifier,
104
+ * non-checkbox) click, reused by the row's `Enter`/`Space` keyboard handler.
105
+ */
106
+ private selectSingleItem;
107
+ private handleItemKeydown;
101
108
  handleStart(evt: Sortable.SortableEvent): void;
102
109
  handleUpdate(evt: Sortable.SortableEvent): void;
110
+ /**
111
+ * Keeps disabled (`readonly`) rows fixed relative to each other when other rows are reordered.
112
+ * `readonly` on `draggable` only stops a disabled row from being dragged itself — Sortable can
113
+ * still drop an enabled row before/between disabled rows, which would indirectly move the
114
+ * disabled item and break the not-movable contract (and the frozen-column prefix). Only allow a
115
+ * drop next to a readonly row when it lands immediately after the last readonly row in a
116
+ * contiguous readonly block; reject every other position touching a readonly row.
117
+ */
118
+ handleMove(evt: Sortable.MoveEvent): boolean | undefined;
103
119
  deselectAll(force?: boolean): void;
104
120
  selectAll(): void;
105
121
  handleSelectAll(): void;
106
- onAllChanged(): void;
122
+ private handleSelectAllKeydown;
123
+ /** Index in `this.items` immediately after the last real (non-header) visible row. */
124
+ private indexAfterLastVisibleRealItem;
125
+ /**
126
+ * Maps a drop position expressed as an index into the (filtered/grouped) visible list to an
127
+ * insertion index within the full `this.items` array. Group headers are skipped forward to the
128
+ * nearest real item; a drop at or past the end resolves to immediately after the last visible
129
+ * real item.
130
+ */
131
+ private resolveRealInsertIndex;
107
132
  private initSortable;
108
133
  /** Initializes the sortable functionality for the list element. */
109
134
  runFirstUpdated(): void;
@@ -5,16 +5,6 @@ import { default as CxTooltip } from '../../../../../atoms/src/components/toolti
5
5
  import { default as CortexElement } from '../../../../../base/src/cortex-element.ts';
6
6
  import { TemplateResult } from 'lit';
7
7
 
8
- export type CxMultiSelectConfigureEvent = CustomEvent<Record<PropertyKey, string>>;
9
- export type CxBoardItemLabelClickEvent = CustomEvent<Record<PropertyKey, string>>;
10
- export type CxBoardItemCheckboxClickEvent = CustomEvent<Record<PropertyKey, string>>;
11
- declare global {
12
- interface GlobalEventHandlersEventMap {
13
- 'cx-board-item-checkbox-click': CxBoardItemCheckboxClickEvent;
14
- 'cx-board-item-label-click': CxBoardItemLabelClickEvent;
15
- 'cx-multi-select-configure': CxMultiSelectConfigureEvent;
16
- }
17
- }
18
8
  export default class CxBoardListItem extends CortexElement {
19
9
  static readonly styles: import('lit').CSSResult[];
20
10
  static readonly dependencies: {
@@ -23,6 +13,7 @@ export default class CxBoardListItem extends CortexElement {
23
13
  'cx-line-clamp': typeof CxLineClamp;
24
14
  'cx-tooltip': typeof CxTooltip;
25
15
  };
16
+ private readonly localize;
26
17
  configButton: CxIconButton;
27
18
  textElement: HTMLElement;
28
19
  tooltipElement: CxTooltip;