@orangelogic/design-system 2.0.0-29DUO2-beta-1 → 2.0.0-29DUO2-beta-2

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 (125) hide show
  1. package/library/chunks/{asset.DRyD94KY.js → asset.CG_yXtWK.js} +1 -1
  2. package/library/chunks/{button.Dy5bRiPQ.js → button.KnE3mcyM.js} +1 -1
  3. package/library/chunks/{color-swatch-group.nog-pq8b.js → color-swatch-group.p3Sdqlat.js} +5 -5
  4. package/library/chunks/{color-swatch.CLHdvqso.js → color-swatch.C0oPHfOu.js} +1 -1
  5. package/library/chunks/{confirm-popover.B6BAaXeR.js → confirm-popover.DlN4hgLS.js} +3 -3
  6. package/library/chunks/content-builder.D_phDrlo.js +127 -0
  7. package/library/chunks/{dialog.DZGlXo8d.js → dialog.CKP1W_u1.js} +2 -2
  8. package/library/chunks/{dot-pagination.Cp57TPpZ.js → dot-pagination.COBkyhoJ.js} +1 -1
  9. package/library/chunks/{endpoints.CkJu-Ory.js → endpoints.B7lcoc1N.js} +178 -179
  10. package/library/chunks/{file-on-demand.DCn6zLyM.js → file-on-demand.DZtadqgL.js} +7 -7
  11. package/library/chunks/{folder-select.DTmBImnZ.js → folder-select.Bl_WkhVE.js} +4 -4
  12. package/library/chunks/{header.D_90t23Q.js → header.BduX6KJP.js} +1 -1
  13. package/library/chunks/{i18n.Bge6Wbrz.js → i18n.C0iakJkV.js} +12 -16
  14. package/library/chunks/{iframe.B0Z8DiDR.js → iframe.BPKV2K7z.js} +1 -1
  15. package/library/chunks/{image.CBjclAIZ.js → image.C9avagDq.js} +1 -1
  16. package/library/chunks/{index.Compqu8J.js → index.CwrqgSke.js} +83 -88
  17. package/library/chunks/{list-editor.Dl366-77.js → list-editor.C-0PQZX9.js} +8 -8
  18. package/library/chunks/{modal.U1QltQKe.js → modal.CG-kZq41.js} +1 -1
  19. package/library/chunks/{option.CiBFEqo6.js → option.DnpkE8Xi.js} +1 -1
  20. package/library/chunks/{pagination.CTKL1LBP.js → pagination.C30LoTya.js} +3 -3
  21. package/library/chunks/{responsive.CEZXXas3.js → responsive.CrX-HUow.js} +1 -1
  22. package/library/chunks/{tab-group.3eI4V3C7.js → tab-group.05PY0smt.js} +2 -2
  23. package/library/chunks/{tabbable.CcMz3mIL.js → tabbable.BwnZBHrm.js} +2 -2
  24. package/library/chunks/{table.ZGeb7I52.js → table.DNTm_GMS.js} +5 -5
  25. package/library/chunks/{tree.dSjb5nEi.js → tree.CeMLCbs-.js} +1 -1
  26. package/library/components/alert.js +1 -1
  27. package/library/components/asset-link-format.js +4 -4
  28. package/library/components/atoms.js +11 -11
  29. package/library/components/border-input-group.js +1 -1
  30. package/library/components/breadcrumb.js +1 -1
  31. package/library/components/button.js +2 -2
  32. package/library/components/color-picker.js +2 -2
  33. package/library/components/color-swatch-group.js +6 -6
  34. package/library/components/color-swatch.js +2 -2
  35. package/library/components/confirm-popover.js +4 -4
  36. package/library/components/copy-button.js +1 -1
  37. package/library/components/corner-position-input-group.js +2 -2
  38. package/library/components/details.js +1 -1
  39. package/library/components/dialog.js +3 -3
  40. package/library/components/dot-pagination.js +2 -2
  41. package/library/components/drawer.js +2 -2
  42. package/library/components/dropdown.js +2 -2
  43. package/library/components/dynamic-select.js +3 -3
  44. package/library/components/e-chart.js +1335 -1303
  45. package/library/components/element-clamp.js +2 -2
  46. package/library/components/file-on-demand.js +8 -8
  47. package/library/components/folder-select.js +4 -4
  48. package/library/components/format-bytes.js +1 -1
  49. package/library/components/format-date.js +1 -1
  50. package/library/components/format-number.js +1 -1
  51. package/library/components/format-time.js +1 -1
  52. package/library/components/header.js +2 -2
  53. package/library/components/icon-button.js +1 -1
  54. package/library/components/iframe.js +2 -2
  55. package/library/components/image-comparer.js +1 -1
  56. package/library/components/image.js +2 -2
  57. package/library/components/input.js +1 -1
  58. package/library/components/line-clamp.js +1 -1
  59. package/library/components/list-editor.js +6 -6
  60. package/library/components/masonry.js +1 -1
  61. package/library/components/menu-item.js +1 -1
  62. package/library/components/menu.js +1 -1
  63. package/library/components/molecules.js +4 -4
  64. package/library/components/option.js +2 -2
  65. package/library/components/organisms.js +2 -2
  66. package/library/components/pagination.js +4 -4
  67. package/library/components/popup.js +1 -1
  68. package/library/components/position-picker.js +1 -1
  69. package/library/components/progress-bar.js +1 -1
  70. package/library/components/progress-ring.js +1 -1
  71. package/library/components/range.js +1 -1
  72. package/library/components/rating.js +1 -1
  73. package/library/components/relative-time.js +1 -1
  74. package/library/components/select.js +2 -2
  75. package/library/components/share-option-list.js +1 -1
  76. package/library/components/size-input-group.js +1 -1
  77. package/library/components/spinner.js +1 -1
  78. package/library/components/split-panel.js +1 -1
  79. package/library/components/tab-group.js +3 -3
  80. package/library/components/tab.js +1 -1
  81. package/library/components/table.js +4 -4
  82. package/library/components/tag.js +1 -1
  83. package/library/components/tooltip.js +1 -1
  84. package/library/components/tree-item.js +2 -2
  85. package/library/components/tree.js +2 -2
  86. package/library/components/typeface.js +1 -1
  87. package/library/components/types.js +24386 -24383
  88. package/library/components/video.js +2 -2
  89. package/library/package.json +1 -1
  90. package/library/packages/atoms/src/components/e-chart/e-chart.d.ts +6 -1
  91. package/library/packages/events/src/cx-e-chart-drill-down.d.ts +16 -0
  92. package/library/packages/events/src/events.d.ts +1 -0
  93. package/library/packages/molecules/src/stat-card/stat-card.d.ts +4 -4
  94. package/library/packages/organisms/src/content-builder/configs/index.d.ts +0 -5
  95. package/library/packages/organisms/src/content-builder/configs-controller.d.ts +0 -28
  96. package/library/packages/organisms/src/content-builder/content-builder-config.d.ts +0 -15
  97. package/library/packages/organisms/src/content-builder/plugins/index.d.ts +0 -5
  98. package/library/packages/organisms/src/dashboard-filter/dashboard-filter.d.ts +83 -0
  99. package/library/packages/organisms/src/dashboard-filter/dashboard-filter.styles.d.ts +2 -0
  100. package/library/packages/organisms/src/dashboard-table/dashboard-table.d.ts +45 -0
  101. package/library/packages/organisms/src/dashboard-table/dashboard-table.styles.d.ts +2 -0
  102. package/library/packages/organisms/src/index.d.ts +3 -1
  103. package/library/packages/services/src/api/dashboard/dashboard.d.ts +1 -8
  104. package/library/packages/services/src/api/endpoints.d.ts +0 -9
  105. package/library/packages/types/src/content-builder.d.ts +1 -6
  106. package/library/packages/utils/src/custom-element/i18n.d.ts +0 -4
  107. package/library/packages/utils/src/object/object.d.ts +0 -1
  108. package/library/react-web-component.d.ts +91 -125
  109. package/library/utils.js +158 -159
  110. package/package.json +1 -1
  111. package/library/chunks/content-builder.ViUhoc1l.js +0 -127
  112. package/library/packages/organisms/src/content-builder/configs/dashboard-chart.d.ts +0 -13
  113. package/library/packages/organisms/src/content-builder/configs/dashboard-filter.d.ts +0 -17
  114. package/library/packages/organisms/src/content-builder/configs/dashboard-table.d.ts +0 -12
  115. package/library/packages/organisms/src/content-builder/configs/dashboard.d.ts +0 -10
  116. package/library/packages/organisms/src/content-builder/configs/stat-card.d.ts +0 -18
  117. package/library/packages/organisms/src/content-builder/plugins/dashboard-chart.d.ts +0 -5
  118. package/library/packages/organisms/src/content-builder/plugins/dashboard-filter.d.ts +0 -5
  119. package/library/packages/organisms/src/content-builder/plugins/dashboard-table.d.ts +0 -5
  120. package/library/packages/organisms/src/content-builder/plugins/dashboard.d.ts +0 -5
  121. package/library/packages/organisms/src/content-builder/plugins/stat-card.d.ts +0 -5
  122. package/library/packages/organisms/src/content-builder/components/{chart-plan.builder → chart-plan-builder}/chart-plan-builder.d.ts +0 -0
  123. package/library/packages/organisms/src/content-builder/components/{chart-plan.builder → chart-plan-builder}/chart-plan-builder.styles.d.ts +0 -0
  124. package/library/packages/organisms/src/content-builder/components/{chart-plan.builder → chart-plan-builder}/chart-plan-schema.d.ts +0 -0
  125. package/library/packages/types/src/{state-card.d.ts → stat-card.d.ts} +2 -2
@@ -1,11 +1,11 @@
1
1
  import { c as ps, a as kn } from "../chunks/_commonjsHelpers.DQNKXVTB.js";
2
2
  import { r as Ab } from "../chunks/___vite-browser-external_commonjs-proxy.C2tf3HsQ.js";
3
- import { r as Tb, C as Eb, R as wb } from "../chunks/image.CBjclAIZ.js";
3
+ import { r as Tb, C as Eb, R as wb } from "../chunks/image.C9avagDq.js";
4
4
  import Sb from "./resize-observer.js";
5
5
  import { c as Cb } from "../chunks/component.styles.DMSLciL5.js";
6
6
  import { b as Mb } from "../chunks/browser.BHOCIF_A.js";
7
7
  import { c as Db } from "../chunks/custom-element.L4WJXn1j.js";
8
- import { L as Pb } from "../chunks/i18n.Bge6Wbrz.js";
8
+ import { L as Pb } from "../chunks/i18n.C0iakJkV.js";
9
9
  import { w as Bn } from "../chunks/watch.q1sEjPWL.js";
10
10
  import { i as Lb, x as Kc } from "../chunks/lit-element.jLBm65_O.js";
11
11
  import { n as ki } from "../chunks/lib-cortex-element.CVMmyPMC.js";
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@orangelogic/design-system",
3
3
  "type": "module",
4
- "version": "2.0.0-29DUO2-beta-1",
4
+ "version": "2.0.0-29DUO2-beta-2",
5
5
  "license": "UNLICENSED",
6
6
  "types": "library/types.d.ts",
7
7
  "scripts": {
@@ -6,6 +6,9 @@ import { ChartSpec } from './e-chart-controller';
6
6
 
7
7
  /**
8
8
  * @summary CxEChart
9
+ *
10
+ * @event cx-e-chart-rendered - Emitted when the chart finishes rendering new data or spec.
11
+ * @event {{ type, raw, seriesName, name, value, data, chart }} cx-e-chart-drill-down - Emitted when the user clicks on a data point.
9
12
  */
10
13
  export default class CxEChart extends CortexElement {
11
14
  #private;
@@ -17,13 +20,15 @@ export default class CxEChart extends CortexElement {
17
20
  private readonly localize;
18
21
  private readonly eChartController;
19
22
  private readonly chartDiv;
20
- data: any[];
23
+ data: Array<Record<string, unknown>>;
21
24
  spec: ChartSpec | undefined;
22
25
  loading: boolean | undefined;
26
+ constructor();
23
27
  connectedUpdatedCallback(): void;
24
28
  disconnectedCallback(): void;
25
29
  handleUpdate(): void;
26
30
  private handleResize;
31
+ private handleChartDrillDown;
27
32
  render(): import('lit').TemplateResult<1>;
28
33
  }
29
34
  declare global {
@@ -0,0 +1,16 @@
1
+ import { ECharts } from 'echarts';
2
+
3
+ export type CxEChartDrillDownEvent = CustomEvent<{
4
+ chart: ECharts | null;
5
+ data: unknown;
6
+ name: string | undefined;
7
+ raw: unknown;
8
+ seriesName: string | undefined;
9
+ type: string | undefined;
10
+ value: unknown;
11
+ }>;
12
+ declare global {
13
+ interface GlobalEventHandlersEventMap {
14
+ 'cx-e-chart-drill-down': CxEChartDrillDownEvent;
15
+ }
16
+ }
@@ -54,6 +54,7 @@ export * from './cx-download-format-picker-select';
54
54
  export * from './cx-download-format-request-status';
55
55
  export * from './cx-drag-end';
56
56
  export * from './cx-drag-start';
57
+ export * from './cx-e-chart-drill-down';
57
58
  export * from './cx-enter';
58
59
  export * from './cx-error';
59
60
  export * from './cx-expand';
@@ -3,12 +3,12 @@ import { default as CxFormatBytes } from '../../../atoms/src/components/format-b
3
3
  import { default as CxFormatNumber } from '../../../atoms/src/components/format-number/format-number.ts';
4
4
  import { default as CxFormatTime } from '../../../atoms/src/components/format-time/format-time.ts';
5
5
  import { default as CxIcon } from '../../../atoms/src/components/icon/icon.ts';
6
- import { default as CxSkeleton } from '../../../atoms/src/components/skeleton/skeleton.ts';
7
6
  import { default as CxSpace } from '../../../atoms/src/components/space/space.ts';
7
+ import { default as CxSpinner } from '../../../atoms/src/components/spinner/spinner.ts';
8
8
  import { default as CxTypography } from '../../../atoms/src/components/typography/typography.ts';
9
9
  import { default as CortexElement } from '../../../base/src/cortex-element.ts';
10
10
  import { FormatNumberType } from '../../../types/src/format-number';
11
- import { StatCardDisplayType, TitleFormat, ValueFormat } from '../../../types/src/state-card';
11
+ import { StatCardDisplayType, TitleFormat, ValueFormat } from '../../../types/src/stat-card';
12
12
  import { CSSResultGroup } from 'lit';
13
13
 
14
14
  /**
@@ -30,8 +30,8 @@ export default class CxStatCard extends CortexElement {
30
30
  'cx-format-number': typeof CxFormatNumber;
31
31
  'cx-format-time': typeof CxFormatTime;
32
32
  'cx-icon': typeof CxIcon;
33
- 'cx-skeleton': typeof CxSkeleton;
34
33
  'cx-space': typeof CxSpace;
34
+ 'cx-spinner': typeof CxSpinner;
35
35
  'cx-typography': typeof CxTypography;
36
36
  };
37
37
  /**
@@ -55,7 +55,7 @@ export default class CxStatCard extends CortexElement {
55
55
  */
56
56
  valueFormat: ValueFormat;
57
57
  /**
58
- * Whether the stat card is loading (value area shows skeletons).
58
+ * Whether the stat card is loading (value area shows a spinner).
59
59
  */
60
60
  loading: boolean;
61
61
  /**
@@ -4,10 +4,6 @@ export { default as carousel } from './carousel';
4
4
  export { default as colorSwatches } from './color-swatches';
5
5
  export { default as column } from './column';
6
6
  export { default as columnGroup } from './column-group';
7
- export { default as dashboard } from './dashboard';
8
- export { default as dashboardChart } from './dashboard-chart';
9
- export { default as dashboardFilter } from './dashboard-filter';
10
- export { default as dashboardTable } from './dashboard-table';
11
7
  export { default as divider } from './divider';
12
8
  export { default as fontKit } from './font-kit';
13
9
  export { default as gallery } from './gallery';
@@ -16,7 +12,6 @@ export { default as analytics } from './analytics';
16
12
  export { default as image } from './image';
17
13
  export { default as richText } from './rich-text';
18
14
  export { default as searchBox } from './search-box';
19
- export { default as statCard } from './stat-card';
20
15
  export { default as tabGroup } from './tab-group';
21
16
  export { default as text } from './text';
22
17
  export { default as timeline } from './timeline';
@@ -81,18 +81,6 @@ export default class ConfigsController {
81
81
  }>[] | import('../../../types/src/content-builder').PropertyConfig<{
82
82
  'data-constraints': boolean;
83
83
  'width-type': import('../../../types/src/column').ColumnWidthType;
84
- }>[] | import('../../../types/src/content-builder').PropertyConfig<{
85
- data: string;
86
- 'data-type': string;
87
- }>[] | import('../../../types/src/content-builder').PropertyConfig<{
88
- controls: string;
89
- 'default-value': string;
90
- 'no-controls-label': string;
91
- 'panel-title': string;
92
- 'show-reset-button': boolean;
93
- value: string;
94
- }>[] | import('../../../types/src/content-builder').PropertyConfig<{
95
- 'data-type': string;
96
84
  }>[] | import('../../../types/src/content-builder').PropertyConfig<{
97
85
  'use-padding': boolean;
98
86
  }>[] | import('../../../types/src/content-builder').PropertyConfig<{
@@ -207,13 +195,6 @@ export default class ConfigsController {
207
195
  placeholder: import('../../../molecules/src/index.ts').CxSearchBox["placeholder"];
208
196
  size: import('../../../molecules/src/index.ts').CxSearchBox["size"];
209
197
  'width-type': import('../../../types/src/search-box').SearchBoxWidthType;
210
- }>[] | import('../../../types/src/content-builder').PropertyConfig<{
211
- 'card-title': string;
212
- 'card-title-format': import('../../../types/src/state-card').TitleFormat;
213
- 'data-type': string;
214
- icon: string;
215
- value: string;
216
- 'value-format': import('../../../types/src/state-card').ValueFormat;
217
198
  }>[] | import('../../../types/src/content-builder').PropertyConfig<{
218
199
  data: string;
219
200
  'data-constraints': boolean;
@@ -339,15 +320,6 @@ export default class ConfigsController {
339
320
  trigger: string;
340
321
  'width-type': import('../../../types/src/column').ColumnWidthType;
341
322
  }> | {
342
- controls: string;
343
- 'default-value': string;
344
- 'no-controls-label': string;
345
- 'panel-title': string;
346
- 'show-reset-button': boolean;
347
- value: string;
348
- } | {
349
- 'data-type': string;
350
- } | {
351
323
  'use-padding': boolean;
352
324
  } | Partial<{
353
325
  'download-appearance': import('./blocks/font-kit/font-kit').default["downloadAppearance"];
@@ -26,18 +26,6 @@ export declare const defaultBlockValue: {
26
26
  BlockColumns: {
27
27
  components: undefined;
28
28
  };
29
- BlockDashboard: {
30
- components: undefined;
31
- };
32
- BlockDashboardChart: {
33
- components: undefined;
34
- };
35
- BlockDashboardFilter: {
36
- components: undefined;
37
- };
38
- BlockDashboardTable: {
39
- components: undefined;
40
- };
41
29
  BlockDivider: {
42
30
  components: undefined;
43
31
  };
@@ -59,9 +47,6 @@ export declare const defaultBlockValue: {
59
47
  BlockSearchBox: {
60
48
  components: undefined;
61
49
  };
62
- BlockStatCard: {
63
- components: undefined;
64
- };
65
50
  BlockTabs: {
66
51
  components: undefined;
67
52
  };
@@ -6,10 +6,6 @@ export { default as ColumnPlugin } from './column';
6
6
  export { default as ColumnGroupPlugin } from './column-group';
7
7
  export { default as CorePlugin } from './core';
8
8
  export { default as InjectCustomFrameAbilityForGrapesJS } from './custom-frame';
9
- export { default as DashboardPlugin } from './dashboard';
10
- export { default as DashboardChartPlugin } from './dashboard-chart';
11
- export { default as DashboardFilterPlugin } from './dashboard-filter';
12
- export { default as DashboardTablePlugin } from './dashboard-table';
13
9
  export { default as DividerPlugin } from './divider';
14
10
  export { default as FontKitPlugin } from './font-kit';
15
11
  export { default as GalleryPlugin } from './gallery';
@@ -19,7 +15,6 @@ export { default as ImagePlugin } from './image';
19
15
  export { default as RichTextEditorPlugin } from './rich-text-editor';
20
16
  export * from './rich-text-editor/components';
21
17
  export { default as SearchBoxPlugin } from './search-box';
22
- export { default as StatCardPlugin } from './stat-card';
23
18
  export { default as TabsPlugin } from './tab-group';
24
19
  export { default as TextPlugin } from './text';
25
20
  export { default as TimelinePlugin } from './timeline';
@@ -0,0 +1,83 @@
1
+ import { default as CxButton } from '../../../atoms/src/components/button/button.ts';
2
+ import { default as CxCard } from '../../../atoms/src/components/card/card.ts';
3
+ import { default as CxGrid } from '../../../atoms/src/components/grid/grid.ts';
4
+ import { default as CxGridItem } from '../../../atoms/src/components/grid-item/grid-item.ts';
5
+ import { default as CxIcon } from '../../../atoms/src/components/icon/icon.ts';
6
+ import { default as CxInput } from '../../../atoms/src/components/input/input.ts';
7
+ import { default as CxOption } from '../../../atoms/src/components/option/option.ts';
8
+ import { default as CxSelect } from '../../../atoms/src/components/select/select.ts';
9
+ import { default as CxSpace } from '../../../atoms/src/components/space/space.ts';
10
+ import { default as CxTypography } from '../../../atoms/src/components/typography/typography.ts';
11
+ import { default as CortexElement } from '../../../base/src/cortex-element.ts';
12
+ import { CSSResultGroup, TemplateResult } from 'lit';
13
+
14
+ export type DashboardFilterOption = {
15
+ disabled?: boolean;
16
+ label: string;
17
+ value: string;
18
+ };
19
+ /** Raw option row keyed by source column names (used when {@link DashboardFilterControl.optionColumnMapping} is set). */
20
+ export type DashboardFilterOptionRow = Record<string, unknown>;
21
+ export type DashboardFilterControl = {
22
+ controlId: string;
23
+ controlType: string;
24
+ /**
25
+ * ID generated by cx-table
26
+ */
27
+ id: string;
28
+ label: string;
29
+ maxOptionsVisible?: number;
30
+ /**
31
+ * Maps option fields to column names on each {@link DashboardFilterControl.options} row.
32
+ * Omitted keys fall back to columns named `disabled`, `label`, and `value`.
33
+ */
34
+ optionColumnMapping: Partial<Record<keyof DashboardFilterOption, string>>;
35
+ /** Pre-shaped options, or raw rows when `optionColumnMapping` is non-empty. */
36
+ options?: DashboardFilterOption[] | DashboardFilterOptionRow[];
37
+ placeholder?: string;
38
+ type?: string;
39
+ };
40
+ /**
41
+ * @summary Dashboard filter panel (Filters & Controls) with date range, category, status and actions.
42
+ *
43
+ * @event cx-dashboard-filter-change - Emitted when the user applies filters.
44
+ * @event cx-dashboard-filter-reset - Emitted when the user resets filters.
45
+ */
46
+ export default class CxDashboardFilter extends CortexElement {
47
+ static readonly styles: CSSResultGroup;
48
+ static readonly dependencies: {
49
+ 'cx-button': typeof CxButton;
50
+ 'cx-card': typeof CxCard;
51
+ 'cx-grid': typeof CxGrid;
52
+ 'cx-grid-item': typeof CxGridItem;
53
+ 'cx-icon': typeof CxIcon;
54
+ 'cx-input': typeof CxInput;
55
+ 'cx-option': typeof CxOption;
56
+ 'cx-select': typeof CxSelect;
57
+ 'cx-space': typeof CxSpace;
58
+ 'cx-typography': typeof CxTypography;
59
+ };
60
+ private readonly localize;
61
+ private readonly hasSlotController;
62
+ /** Title of the filter panel. */
63
+ panelTitle: string;
64
+ /** Controls to show in the filter panel. */
65
+ controls: DashboardFilterControl[];
66
+ /** Whether to show the reset button. */
67
+ showResetButton: boolean;
68
+ noControlsLabel: string;
69
+ /** Default value for the filter panel. */
70
+ defaultValue: Record<string, unknown>;
71
+ /** Data for the filter panel. */
72
+ value: Record<string, unknown>;
73
+ runFirstUpdated(): void;
74
+ private handleChange;
75
+ private handleReset;
76
+ private handleApply;
77
+ render(): TemplateResult;
78
+ }
79
+ declare global {
80
+ interface HTMLElementTagNameMap {
81
+ 'cx-dashboard-filter': CxDashboardFilter;
82
+ }
83
+ }
@@ -0,0 +1,2 @@
1
+ declare const _default: import('lit').CSSResult;
2
+ export default _default;
@@ -0,0 +1,45 @@
1
+ import { default as CxButton } from '../../../atoms/src/components/button/button.ts';
2
+ import { default as CxSpace } from '../../../atoms/src/components/space/space.ts';
3
+ import { default as CxTable } from '../../../atoms/src/components/table/table.ts';
4
+ import { default as CortexElement } from '../../../base/src/cortex-element.ts';
5
+ import { Options, OptionsColumns } from '../../../types/src/table';
6
+
7
+ /**
8
+ * @summary Dashboard table block: wraps `cx-table` with column helpers (e.g. epoch formatters), and optional load-more control that notifies the host via event.
9
+ *
10
+ * @event {{ paginationSize?: number }} cx-dashboard-table-load-more - Fired when the user activates load more; the container should fetch and update `data`.
11
+ */
12
+ export default class CxDashboardTable extends CortexElement {
13
+ #private;
14
+ static readonly styles: import('lit').CSSResult[];
15
+ static readonly dependencies: {
16
+ 'cx-button': typeof CxButton;
17
+ 'cx-space': typeof CxSpace;
18
+ 'cx-table': typeof CxTable;
19
+ };
20
+ data: Options['data'];
21
+ columns: OptionsColumns['columns'];
22
+ loading: boolean;
23
+ /** Tabulator layout mode passed to `cx-table`. */
24
+ layout: NonNullable<OptionsColumns['layout']>;
25
+ /** Row height in px for `cx-table`. */
26
+ rowHeight: number;
27
+ pagination: boolean;
28
+ paginationSize: number | undefined;
29
+ canSearch: boolean;
30
+ searchFields: string[];
31
+ /** Sets CSS `--table-height` on `cx-table` when defined. */
32
+ tableHeight?: string;
33
+ /** Shows the load-more button; clicks emit `cx-dashboard-table-load-more`. */
34
+ showLoadMore: boolean;
35
+ loadMoreLabel: string;
36
+ private transformedColumns;
37
+ handleColumnsChange(): void;
38
+ handleLoadMoreClick(): void;
39
+ render(): import('lit').TemplateResult<1>;
40
+ }
41
+ declare global {
42
+ interface HTMLElementTagNameMap {
43
+ 'cx-dashboard-table': CxDashboardTable;
44
+ }
45
+ }
@@ -0,0 +1,2 @@
1
+ declare const _default: import('lit').CSSResult;
2
+ export default _default;
@@ -1,8 +1,10 @@
1
1
  export { default as CxAssetLinkFormat } from './asset-link-format/asset-link-format';
2
+ export { default as CxDashboardFilter } from './dashboard-filter/dashboard-filter';
3
+ export { default as CxDashboardTable } from './dashboard-table/dashboard-table';
2
4
  export { default as CxBentoGrid } from './bento-grid/bento-grid';
3
5
  export { default as CxCarousel } from './carousel/carousel';
4
6
  export { default as CxChatbot } from './chatbot/chatbot';
5
- export { default as CxChartPlanBuilder } from './content-builder/components/chart-plan.builder/chart-plan-builder';
7
+ export { default as CxChartPlanBuilder } from './content-builder/components/chart-plan-builder/chart-plan-builder';
6
8
  export { default as CxClusterManagement } from './cluster-management/cluster-management';
7
9
  export { default as CxColorSwatchGroup } from './color-swatch-group/color-swatch-group';
8
10
  export { default as CxComment } from './comment/comment';
@@ -1,14 +1,7 @@
1
- import { GetDashboardChartTypeListResponse, GetDashboardFilterControlListResponse, GetDashboardListResponse, GetDashboardTableTypeListResponse, GetStatCardTypeListResponse } from './dashboard.types';
1
+ import { GetDashboardListResponse } from './dashboard.types';
2
2
 
3
3
  export declare function apiGetDashboardList(): Promise<never[] | GetDashboardListResponse>;
4
4
  export declare function apiGetDashboardEmbeddedUrl({ dashboardId, pageId, }: {
5
5
  dashboardId: string;
6
6
  pageId: string;
7
7
  }): Promise<string>;
8
- export declare function apiGetStatCardTypeList(): Promise<GetStatCardTypeListResponse>;
9
- export declare function apiGetDashboardFilterControlList(): Promise<GetDashboardFilterControlListResponse | {
10
- data: never[];
11
- hasMore: boolean;
12
- }>;
13
- export declare function apiGetDashboardChartTypeList(): Promise<GetDashboardChartTypeListResponse>;
14
- export declare function apiGetDashboardTableTypeList(): Promise<GetDashboardTableTypeListResponse>;
@@ -20,15 +20,6 @@ export declare enum AUTOCOMPLETE_API_ENDPOINT {
20
20
  GET_AUTOCOMPLETE_ITEMS_WITH_QUERY = "webapi/ui/autocompletion/executequery_4JD_v1-alpha",
21
21
  GET_AUTOCOMPLETE_ITEMS_WITH_SERVICE = "webapi/ui/autocompletion/callservice_41s5_v1-alpha"
22
22
  }
23
- /**
24
- * TODO: Change to correct endpoints
25
- */
26
- export declare enum NEW_DASHBOARD_API_ENDPOINT {
27
- GET_DASHBOARD_CHART_TYPE_LIST = "webapi/extensibility/integrations/businessintelligence/getdashboardcharttypelist_41JJ_v1",
28
- GET_DASHBOARD_FILTER_CONTROL_LIST = "webapi/extensibility/integrations/businessintelligence/getdashboardfiltercontrollist_41JJ_v1",
29
- GET_DASHBOARD_TABLE_TYPE_LIST = "webapi/extensibility/integrations/businessintelligence/getdashboardtabletypelist_41JJ_v1",
30
- GET_STAT_CARD_TYPE_LIST = "webapi/extensibility/integrations/businessintelligence/getstatcardtypelist_41JJ_v1"
31
- }
32
23
  export declare enum DASHBOARD_API_ENDPOINT {
33
24
  GET_DASHBOARD_EMBEDDED_URL = "webapi/extensibility/integrations/businessintelligence/getdashboardembededurl_41JJ_v1",
34
25
  GET_DASHBOARD_LIST = "webapi/extensibility/integrations/businessintelligence/getlistdashboards_41JI_v1"
@@ -235,10 +235,6 @@ export declare enum BlockType {
235
235
  ColorSwatches = "BlockColorSwatches",
236
236
  Column = "BlockCell",
237
237
  ColumnGroup = "BlockColumns",
238
- Dashboard = "BlockDashboard",
239
- DashboardChart = "BlockDashboardChart",
240
- DashboardFilter = "BlockDashboardFilter",
241
- DashboardTable = "BlockDashboardTable",
242
238
  Divider = "BlockDivider",
243
239
  FontKit = "BlockFontKit",
244
240
  Gallery = "BlockGallery",
@@ -246,13 +242,12 @@ export declare enum BlockType {
246
242
  Image = "BlockImage",
247
243
  RichText = "BlockRichText",
248
244
  SearchBox = "BlockSearchBox",
249
- StatCard = "BlockStatCard",
250
245
  TabGroup = "BlockTabs",
251
246
  Text = "BlockText",
252
247
  Timeline = "BlockTimeline",
253
248
  Video = "BlockVideo"
254
249
  }
255
- export declare const BLOCK_DROPPABLE_BLOCKS: (BlockType.Accordion | BlockType.Analytics | BlockType.Button | BlockType.Carousel | BlockType.ColorSwatches | BlockType.ColumnGroup | BlockType.Dashboard | BlockType.DashboardChart | BlockType.DashboardFilter | BlockType.DashboardTable | BlockType.Divider | BlockType.FontKit | BlockType.Gallery | BlockType.Header | BlockType.Image | BlockType.RichText | BlockType.SearchBox | BlockType.StatCard | BlockType.TabGroup | BlockType.Text | BlockType.Timeline | BlockType.Video)[];
250
+ export declare const BLOCK_DROPPABLE_BLOCKS: (BlockType.Accordion | BlockType.Analytics | BlockType.Button | BlockType.Carousel | BlockType.ColorSwatches | BlockType.ColumnGroup | BlockType.Divider | BlockType.FontKit | BlockType.Gallery | BlockType.Header | BlockType.Image | BlockType.RichText | BlockType.SearchBox | BlockType.TabGroup | BlockType.Text | BlockType.Timeline | BlockType.Video)[];
256
251
  export declare enum DialogType {
257
252
  Carousel = "carousel",
258
253
  Gallery = "gallery"
@@ -209,9 +209,6 @@ export interface Translation extends DefaultTranslation {
209
209
  darkModeImage: string;
210
210
  dashSpacing: string;
211
211
  dashWidth: string;
212
- dashboardChart: string;
213
- dashboardFilter: string;
214
- dashboardTable: string;
215
212
  dashed: string;
216
213
  dateFormat: string;
217
214
  default: string;
@@ -657,7 +654,6 @@ export interface Translation extends DefaultTranslation {
657
654
  splitIntoMultipleScreens: string;
658
655
  splitIntoMultipleScreensHelpText: string;
659
656
  start: string;
660
- statCard: string;
661
657
  status: string;
662
658
  statusDate: string;
663
659
  stop: string;
@@ -2,4 +2,3 @@ export declare function omit<T extends object, K extends keyof T>(obj: T, keys:
2
2
  export declare function pick<T extends object, K extends keyof T>(obj: T, keys: K[]): {
3
3
  [P in K]: T[P];
4
4
  };
5
- export declare function retrieve<T>(obj: unknown, key: string): T | undefined;