@awc-ui/react 1.1.0 → 1.3.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 (36) hide show
  1. package/dist/components/MdAreaChart.d.ts +4 -4
  2. package/dist/components/MdAreaChart.d.ts.map +1 -1
  3. package/dist/components/MdBarChart.d.ts +2 -2
  4. package/dist/components/MdBarChart.d.ts.map +1 -1
  5. package/dist/components/MdChartSeries.d.ts +10 -0
  6. package/dist/components/MdChartSeries.d.ts.map +1 -0
  7. package/dist/components/MdChartSeries.js +13 -0
  8. package/dist/components/MdChartSeries.js.map +1 -0
  9. package/dist/components/MdPieSlice.d.ts +10 -0
  10. package/dist/components/MdPieSlice.d.ts.map +1 -0
  11. package/dist/components/MdPieSlice.js +13 -0
  12. package/dist/components/MdPieSlice.js.map +1 -0
  13. package/dist/components/MdSparklinePoint.d.ts +10 -0
  14. package/dist/components/MdSparklinePoint.d.ts.map +1 -0
  15. package/dist/components/MdSparklinePoint.js +13 -0
  16. package/dist/components/MdSparklinePoint.js.map +1 -0
  17. package/dist/components.d.ts +3 -0
  18. package/dist/components.d.ts.map +1 -1
  19. package/dist/components.js +3 -0
  20. package/dist/components.js.map +1 -1
  21. package/dist/components.server.d.ts +14 -5
  22. package/dist/components.server.d.ts.map +1 -1
  23. package/dist/components.server.js +58 -0
  24. package/dist/components.server.js.map +1 -1
  25. package/dist/ssr-runtime.d.ts.map +1 -1
  26. package/dist/ssr-runtime.js +47 -1
  27. package/dist/ssr-runtime.js.map +1 -1
  28. package/package.json +3 -3
  29. package/src/components/MdAreaChart.ts +4 -4
  30. package/src/components/MdBarChart.ts +2 -2
  31. package/src/components/MdChartSeries.ts +25 -0
  32. package/src/components/MdPieSlice.ts +25 -0
  33. package/src/components/MdSparklinePoint.ts +25 -0
  34. package/src/components.server.ts +75 -5
  35. package/src/components.ts +3 -0
  36. package/src/ssr-runtime.ts +45 -1
@@ -10,7 +10,7 @@
10
10
  import type { EventName, StencilReactComponent } from '@stencil/react-output-target/runtime';
11
11
  import { createComponent, type HydrateModule, type SerializeShadowRootOptions } from './ssr-runtime.js';
12
12
 
13
- import { type MdAccordionCustomEvent, type MdAccordionDragDetail, type MdAccordionItemCustomEvent, type MdAppBarCustomEvent, type MdAreaChartCustomEvent, type MdAutocompleteCustomEvent, type MdAvatarCustomEvent, type MdBarChartCustomEvent, type MdBottomSheetCustomEvent, type MdBreadcrumbItemCustomEvent, type MdBreadcrumbSelectDetail, type MdBreadcrumbsCustomEvent, type MdBreadcrumbsExpandDetail, type MdButtonChangeDetail, type MdButtonClickDetail, type MdButtonCustomEvent, type MdButtonGroupChangeDetail, type MdButtonGroupCustomEvent, type MdCardCustomEvent, type MdCardDragDetail, type MdChartAxisClickDetail, type MdChartClickDetail, type MdChartHoverDetail, type MdChartSeries, type MdChartXYSeries, type MdCheckboxCustomEvent, type MdChipCustomEvent, type MdColorPickerCustomEvent, type MdDatePickerChangeDetail, type MdDatePickerCustomEvent, type MdDatePickerMenuOpenDetail, type MdDatePickerMenuSelectDetail, type MdDatePickerModeChangeDetail, type MdDatePickerSelectedDetail, type MdDatePickerViewChangeDetail, type MdDialogCustomEvent, type MdFabCustomEvent, type MdFabMenuCustomEvent, type MdFabMenuItemCustomEvent, type MdIconButtonCustomEvent, type MdLineChartCustomEvent, type MdListCustomEvent, type MdListItemCustomEvent, type MdListItemExpandDetail, type MdListSelectDetail, type MdMenuCustomEvent, type MdMenuItemCustomEvent, type MdMultiSelectCustomEvent, type MdNavigationBarCustomEvent, type MdNavigationRailCustomEvent, type MdNavigationRailTabCustomEvent, type MdNavigationTabCustomEvent, type MdNumberFieldChangeDetail, type MdNumberFieldCustomEvent, type MdOrganizationChartCustomEvent, type MdOtpFieldCompleteDetail, type MdOtpFieldCustomEvent, type MdOtpFieldInvalidDetail, type MdOtpFieldValidityDetail, type MdPieChartCustomEvent, type MdPieDatum, type MdProgressIndicatorCustomEvent, type MdRadioCustomEvent, type MdRatingCustomEvent, type MdSearchCustomEvent, type MdSearchLeadingIconClickDetail, type MdSearchTrailingIconClickDetail, type MdSegmentedButtonCustomEvent, type MdSegmentedButtonSetCustomEvent, type MdSelectCustomEvent, type MdSelectOptionCustomEvent, type MdSideSheetCustomEvent, type MdSliderCustomEvent, type MdSliderDragDetail, type MdSliderThumbDetail, type MdSliderValueDetail, type MdSnackbarCustomEvent, type MdSparklineCustomEvent, type MdSplitButtonCustomEvent, type MdStepCustomEvent, type MdStepperCustomEvent, type MdSubMenuItemCustomEvent, type MdSwitchCustomEvent, type MdTabCustomEvent, type MdTableCustomEvent, type MdTablePaginationCustomEvent, type MdTableRowCustomEvent, type MdTableSelectionState, type MdTableSortLabelCustomEvent, type MdTableSortState, type MdTabsCustomEvent, type MdTextFieldCustomEvent, type MdTimePickerChangeDetail, type MdTimePickerCustomEvent, type MdTimePickerModeChangeDetail, type MdTooltipCustomEvent, type MdTransferListCustomEvent, type OrgChartSelectionChangeDetail, type OrgChartToggleDetail } from "@awc-ui/core";
13
+ import { type MdAccordionCustomEvent, type MdAccordionDragDetail, type MdAccordionItemCustomEvent, type MdAppBarCustomEvent, type MdAreaChartCustomEvent, type MdAutocompleteCustomEvent, type MdAvatarCustomEvent, type MdBarChartCustomEvent, type MdBottomSheetCustomEvent, type MdBreadcrumbItemCustomEvent, type MdBreadcrumbSelectDetail, type MdBreadcrumbsCustomEvent, type MdBreadcrumbsExpandDetail, type MdButtonChangeDetail, type MdButtonClickDetail, type MdButtonCustomEvent, type MdButtonGroupChangeDetail, type MdButtonGroupCustomEvent, type MdCardCustomEvent, type MdCardDragDetail, type MdChartAxisClickDetail, type MdChartClickDetail, type MdChartHoverDetail, type MdChartSeriesData, type MdChartXYSeries, type MdCheckboxCustomEvent, type MdChipCustomEvent, type MdColorPickerCustomEvent, type MdDatePickerChangeDetail, type MdDatePickerCustomEvent, type MdDatePickerMenuOpenDetail, type MdDatePickerMenuSelectDetail, type MdDatePickerModeChangeDetail, type MdDatePickerSelectedDetail, type MdDatePickerViewChangeDetail, type MdDialogCustomEvent, type MdFabCustomEvent, type MdFabMenuCustomEvent, type MdFabMenuItemCustomEvent, type MdIconButtonCustomEvent, type MdLineChartCustomEvent, type MdListCustomEvent, type MdListItemCustomEvent, type MdListItemExpandDetail, type MdListSelectDetail, type MdMenuCustomEvent, type MdMenuItemCustomEvent, type MdMultiSelectCustomEvent, type MdNavigationBarCustomEvent, type MdNavigationRailCustomEvent, type MdNavigationRailTabCustomEvent, type MdNavigationTabCustomEvent, type MdNumberFieldChangeDetail, type MdNumberFieldCustomEvent, type MdOrganizationChartCustomEvent, type MdOtpFieldCompleteDetail, type MdOtpFieldCustomEvent, type MdOtpFieldInvalidDetail, type MdOtpFieldValidityDetail, type MdPieChartCustomEvent, type MdPieDatum, type MdProgressIndicatorCustomEvent, type MdRadioCustomEvent, type MdRatingCustomEvent, type MdSearchCustomEvent, type MdSearchLeadingIconClickDetail, type MdSearchTrailingIconClickDetail, type MdSegmentedButtonCustomEvent, type MdSegmentedButtonSetCustomEvent, type MdSelectCustomEvent, type MdSelectOptionCustomEvent, type MdSideSheetCustomEvent, type MdSliderCustomEvent, type MdSliderDragDetail, type MdSliderThumbDetail, type MdSliderValueDetail, type MdSnackbarCustomEvent, type MdSparklineCustomEvent, type MdSplitButtonCustomEvent, type MdStepCustomEvent, type MdStepperCustomEvent, type MdSubMenuItemCustomEvent, type MdSwitchCustomEvent, type MdTabCustomEvent, type MdTableCustomEvent, type MdTablePaginationCustomEvent, type MdTableRowCustomEvent, type MdTableSelectionState, type MdTableSortLabelCustomEvent, type MdTableSortState, type MdTabsCustomEvent, type MdTextFieldCustomEvent, type MdTimePickerChangeDetail, type MdTimePickerCustomEvent, type MdTimePickerModeChangeDetail, type MdTooltipCustomEvent, type MdTransferListCustomEvent, type OrgChartSelectionChangeDetail, type OrgChartToggleDetail } from "@awc-ui/core";
14
14
  import type { Components } from "@awc-ui/core/dist/components";
15
15
  import { MdAccordionItem as MdAccordionItemElement } from "@awc-ui/core/dist/components/md-accordion-item.js";
16
16
  import { MdAccordion as MdAccordionElement } from "@awc-ui/core/dist/components/md-accordion.js";
@@ -26,6 +26,7 @@ import { MdBreadcrumbs as MdBreadcrumbsElement } from "@awc-ui/core/dist/compone
26
26
  import { MdButtonGroup as MdButtonGroupElement } from "@awc-ui/core/dist/components/md-button-group.js";
27
27
  import { MdButton as MdButtonElement } from "@awc-ui/core/dist/components/md-button.js";
28
28
  import { MdCard as MdCardElement } from "@awc-ui/core/dist/components/md-card.js";
29
+ import { MdChartSeries as MdChartSeriesElement } from "@awc-ui/core/dist/components/md-chart-series.js";
29
30
  import { MdCheckbox as MdCheckboxElement } from "@awc-ui/core/dist/components/md-checkbox.js";
30
31
  import { MdChip as MdChipElement } from "@awc-ui/core/dist/components/md-chip.js";
31
32
  import { MdColorPicker as MdColorPickerElement } from "@awc-ui/core/dist/components/md-color-picker.js";
@@ -53,6 +54,7 @@ import { MdNumberField as MdNumberFieldElement } from "@awc-ui/core/dist/compone
53
54
  import { MdOrganizationChart as MdOrganizationChartElement } from "@awc-ui/core/dist/components/md-organization-chart.js";
54
55
  import { MdOtpField as MdOtpFieldElement } from "@awc-ui/core/dist/components/md-otp-field.js";
55
56
  import { MdPieChart as MdPieChartElement } from "@awc-ui/core/dist/components/md-pie-chart.js";
57
+ import { MdPieSlice as MdPieSliceElement } from "@awc-ui/core/dist/components/md-pie-slice.js";
56
58
  import { MdProgressIndicator as MdProgressIndicatorElement } from "@awc-ui/core/dist/components/md-progress-indicator.js";
57
59
  import { MdRadio as MdRadioElement } from "@awc-ui/core/dist/components/md-radio.js";
58
60
  import { MdRating as MdRatingElement } from "@awc-ui/core/dist/components/md-rating.js";
@@ -66,6 +68,7 @@ import { MdSideSheet as MdSideSheetElement } from "@awc-ui/core/dist/components/
66
68
  import { MdSkeleton as MdSkeletonElement } from "@awc-ui/core/dist/components/md-skeleton.js";
67
69
  import { MdSlider as MdSliderElement } from "@awc-ui/core/dist/components/md-slider.js";
68
70
  import { MdSnackbar as MdSnackbarElement } from "@awc-ui/core/dist/components/md-snackbar.js";
71
+ import { MdSparklinePoint as MdSparklinePointElement } from "@awc-ui/core/dist/components/md-sparkline-point.js";
69
72
  import { MdSparkline as MdSparklineElement } from "@awc-ui/core/dist/components/md-sparkline.js";
70
73
  import { MdSplitButton as MdSplitButtonElement } from "@awc-ui/core/dist/components/md-split-button.js";
71
74
  import { MdStatusDot as MdStatusDotElement } from "@awc-ui/core/dist/components/md-status-dot.js";
@@ -183,9 +186,9 @@ export const MdAppBar: StencilReactComponent<MdAppBarElement, MdAppBarEvents, Co
183
186
  });
184
187
 
185
188
  export type MdAreaChartEvents = {
186
- onMdMarkerClick: EventName<MdAreaChartCustomEvent<MdChartClickDetail<MdChartSeries>>>,
187
- onMdLineClick: EventName<MdAreaChartCustomEvent<MdChartClickDetail<MdChartSeries>>>,
188
- onMdAreaClick: EventName<MdAreaChartCustomEvent<MdChartClickDetail<MdChartSeries>>>,
189
+ onMdMarkerClick: EventName<MdAreaChartCustomEvent<MdChartClickDetail<MdChartSeriesData>>>,
190
+ onMdLineClick: EventName<MdAreaChartCustomEvent<MdChartClickDetail<MdChartSeriesData>>>,
191
+ onMdAreaClick: EventName<MdAreaChartCustomEvent<MdChartClickDetail<MdChartSeriesData>>>,
189
192
  onMdAxisClick: EventName<MdAreaChartCustomEvent<MdChartAxisClickDetail>>,
190
193
  onMdLegendClick: EventName<MdAreaChartCustomEvent<{ seriesIndex: number; seriesId?: string; selected: boolean }>>,
191
194
  onMdHover: EventName<MdAreaChartCustomEvent<MdChartHoverDetail>>,
@@ -334,7 +337,7 @@ export const MdBadge: StencilReactComponent<MdBadgeElement, MdBadgeEvents, Compo
334
337
  });
335
338
 
336
339
  export type MdBarChartEvents = {
337
- onMdBarClick: EventName<MdBarChartCustomEvent<MdChartClickDetail<MdChartSeries>>>,
340
+ onMdBarClick: EventName<MdBarChartCustomEvent<MdChartClickDetail<MdChartSeriesData>>>,
338
341
  onMdLegendClick: EventName<MdBarChartCustomEvent<{ seriesIndex: number; seriesId?: string; selected: boolean }>>,
339
342
  onMdHover: EventName<MdBarChartCustomEvent<MdChartHoverDetail>>,
340
343
  onMdReady: EventName<MdBarChartCustomEvent<void>>,
@@ -530,6 +533,41 @@ export const MdCard: StencilReactComponent<MdCardElement, MdCardEvents, Componen
530
533
  serializeShadowRoot
531
534
  });
532
535
 
536
+ export type MdChartSeriesEvents = NonNullable<unknown>;
537
+
538
+ export const MdChartSeries: StencilReactComponent<MdChartSeriesElement, MdChartSeriesEvents, Components.MdChartSeries> = /*@__PURE__*/ createComponent<MdChartSeriesElement, MdChartSeriesEvents, Components.MdChartSeries>({
539
+ tagName: 'md-chart-series',
540
+ properties: {
541
+ label: 'label',
542
+ data: 'data',
543
+ stroke: 'stroke',
544
+ fill: 'fill',
545
+ range: 'range',
546
+ color: 'color',
547
+ stack: 'stack',
548
+ curve: 'curve',
549
+ dash: 'dash',
550
+ seriesHidden: 'series-hidden',
551
+ connectNulls: 'connect-nulls',
552
+ showMarks: 'show-marks',
553
+ symbol: 'symbol',
554
+ pointSymbols: 'point-symbols',
555
+ pointColors: 'point-colors',
556
+ pointWidths: 'point-widths',
557
+ overlay: 'overlay',
558
+ widthRatio: 'width-ratio',
559
+ seriesId: 'series-id',
560
+ yAxisIndex: 'y-axis-index',
561
+ dashAfter: 'dash-after',
562
+ hollow: 'hollow',
563
+ lineWidth: 'line-width',
564
+ markSize: 'mark-size'
565
+ },
566
+ hydrateModule: typeof window === 'undefined' ? (import('@awc-ui/core/hydrate') as Promise<HydrateModule>) : undefined,
567
+ clientModule: clientComponents.MdChartSeries as StencilReactComponent<MdChartSeriesElement, MdChartSeriesEvents, Components.MdChartSeries>,
568
+ serializeShadowRoot
569
+ });
570
+
533
571
  export type MdCheckboxEvents = {
534
572
  onMdChange: EventName<MdCheckboxCustomEvent<{ checked: boolean; indeterminate: boolean }>>,
535
573
  onMdValidityChange: EventName<MdCheckboxCustomEvent<{ valid: boolean; validationMessage: string; flags: Record<string, boolean>; }>>
@@ -1341,6 +1379,25 @@ export const MdPieChart: StencilReactComponent<MdPieChartElement, MdPieChartEven
1341
1379
  serializeShadowRoot
1342
1380
  });
1343
1381
 
1382
+ export type MdPieSliceEvents = NonNullable<unknown>;
1383
+
1384
+ export const MdPieSlice: StencilReactComponent<MdPieSliceElement, MdPieSliceEvents, Components.MdPieSlice> = /*@__PURE__*/ createComponent<MdPieSliceElement, MdPieSliceEvents, Components.MdPieSlice>({
1385
+ tagName: 'md-pie-slice',
1386
+ properties: {
1387
+ label: 'label',
1388
+ value: 'value',
1389
+ color: 'color',
1390
+ selected: 'selected',
1391
+ radius: 'radius',
1392
+ sliceId: 'slice-id',
1393
+ sliceHidden: 'slice-hidden',
1394
+ childSlices: 'child-slices'
1395
+ },
1396
+ hydrateModule: typeof window === 'undefined' ? (import('@awc-ui/core/hydrate') as Promise<HydrateModule>) : undefined,
1397
+ clientModule: clientComponents.MdPieSlice as StencilReactComponent<MdPieSliceElement, MdPieSliceEvents, Components.MdPieSlice>,
1398
+ serializeShadowRoot
1399
+ });
1400
+
1344
1401
  export type MdProgressIndicatorEvents = { onMdComplete: EventName<MdProgressIndicatorCustomEvent<void>> };
1345
1402
 
1346
1403
  export const MdProgressIndicator: StencilReactComponent<MdProgressIndicatorElement, MdProgressIndicatorEvents, Components.MdProgressIndicator> = /*@__PURE__*/ createComponent<MdProgressIndicatorElement, MdProgressIndicatorEvents, Components.MdProgressIndicator>({
@@ -1734,6 +1791,19 @@ export const MdSparkline: StencilReactComponent<MdSparklineElement, MdSparklineE
1734
1791
  serializeShadowRoot
1735
1792
  });
1736
1793
 
1794
+ export type MdSparklinePointEvents = NonNullable<unknown>;
1795
+
1796
+ export const MdSparklinePoint: StencilReactComponent<MdSparklinePointElement, MdSparklinePointEvents, Components.MdSparklinePoint> = /*@__PURE__*/ createComponent<MdSparklinePointElement, MdSparklinePointEvents, Components.MdSparklinePoint>({
1797
+ tagName: 'md-sparkline-point',
1798
+ properties: {
1799
+ value: 'value',
1800
+ label: 'label'
1801
+ },
1802
+ hydrateModule: typeof window === 'undefined' ? (import('@awc-ui/core/hydrate') as Promise<HydrateModule>) : undefined,
1803
+ clientModule: clientComponents.MdSparklinePoint as StencilReactComponent<MdSparklinePointElement, MdSparklinePointEvents, Components.MdSparklinePoint>,
1804
+ serializeShadowRoot
1805
+ });
1806
+
1737
1807
  export type MdSplitButtonEvents = {
1738
1808
  onMdLeadingClick: EventName<MdSplitButtonCustomEvent<void>>,
1739
1809
  onMdTrailingClick: EventName<MdSplitButtonCustomEvent<{ checked: boolean }>>
package/src/components.ts CHANGED
@@ -21,6 +21,7 @@ export * from './components/MdBreadcrumbs.js';
21
21
  export * from './components/MdButton.js';
22
22
  export * from './components/MdButtonGroup.js';
23
23
  export * from './components/MdCard.js';
24
+ export * from './components/MdChartSeries.js';
24
25
  export * from './components/MdCheckbox.js';
25
26
  export * from './components/MdChip.js';
26
27
  export * from './components/MdColorPicker.js';
@@ -48,6 +49,7 @@ export * from './components/MdNumberField.js';
48
49
  export * from './components/MdOrganizationChart.js';
49
50
  export * from './components/MdOtpField.js';
50
51
  export * from './components/MdPieChart.js';
52
+ export * from './components/MdPieSlice.js';
51
53
  export * from './components/MdProgressIndicator.js';
52
54
  export * from './components/MdRadio.js';
53
55
  export * from './components/MdRating.js';
@@ -62,6 +64,7 @@ export * from './components/MdSkeleton.js';
62
64
  export * from './components/MdSlider.js';
63
65
  export * from './components/MdSnackbar.js';
64
66
  export * from './components/MdSparkline.js';
67
+ export * from './components/MdSparklinePoint.js';
65
68
  export * from './components/MdSplitButton.js';
66
69
  export * from './components/MdStatusDot.js';
67
70
  export * from './components/MdStep.js';
@@ -23,6 +23,28 @@ const jsonArrayAttributes: Record<string, string | undefined> = {
23
23
  "md-transfer-list": "items",
24
24
  };
25
25
 
26
+ // Nonvisual chart descriptors must retain their data while a parent wrapper
27
+ // resolves and re-renders its children. The Core resolver reads these JSON forms.
28
+ const chartDescriptorJsonAttributes: Record<string, Record<string, string | undefined> | undefined> = {
29
+ 'md-chart-series': {
30
+ data: 'data', range: 'range', pointSymbols: 'point-symbols',
31
+ pointColors: 'point-colors', pointWidths: 'point-widths',
32
+ },
33
+ 'md-pie-slice': { childSlices: 'child-slices' },
34
+ };
35
+ const chartDescriptorTags = new Set(['md-chart-series', 'md-pie-slice', 'md-sparkline-point']);
36
+
37
+ // Every authored label uses the envelope, including strings that happen to
38
+ // resemble it. Plain HTML labels remain ordinary text in Core's deserializer.
39
+ function sparklineLabelAttribute(value: unknown) {
40
+ if (value === null) return { $awcPointLabel: 'null', value: null };
41
+ if (value instanceof Date && Number.isFinite(value.getTime())) {
42
+ return { $awcPointLabel: 'date', value: value.toISOString() };
43
+ }
44
+ if (typeof value === 'number' && Number.isFinite(value)) return { $awcPointLabel: 'number', value };
45
+ return { $awcPointLabel: 'string', value: String(value) };
46
+ }
47
+
26
48
  function getSsrArrayAttribute(tag: string, attribute: string, value: unknown[]) {
27
49
  if (jsonArrayAttributes[tag] === attribute) return attribute;
28
50
  if (attribute === "value" && (tag === "md-autocomplete" || tag === "md-multi-select") &&
@@ -335,6 +357,20 @@ const E = {
335
357
  if (a === "ref" || a === "key" || /^on/i.test(a)) continue;
336
358
  const componentProperty = Object.prototype.hasOwnProperty.call(e.properties, a);
337
359
  if (componentProperty) i[a] = o;
360
+ if (e.tagName === 'md-sparkline-point' && a === 'label' && o !== undefined) {
361
+ r += ` label="${escapeAttribute(JSON.stringify(sparklineLabelAttribute(o)))}"`;
362
+ continue;
363
+ }
364
+ if (e.tagName === 'md-sparkline-point' && a === 'value' && o === null) {
365
+ r += ' value="null"';
366
+ continue;
367
+ }
368
+ const descriptorAttribute = chartDescriptorJsonAttributes[e.tagName]?.[a];
369
+ if (descriptorAttribute && (typeof o === 'object' && o !== null || e.tagName === 'md-pie-slice' && o === null)) {
370
+ i[a] = o;
371
+ r += ` ${descriptorAttribute}="${escapeAttribute(JSON.stringify(o))}"`;
372
+ continue;
373
+ }
338
374
  if (o == null) continue;
339
375
  const c = e.properties[a] || E[a] || a;
340
376
  if (!/^[^\s"'<>/=]+$/.test(c)) continue;
@@ -355,9 +391,13 @@ const E = {
355
391
  }
356
392
  }
357
393
  let s = "";
394
+ let descriptorChildren = t;
358
395
  const p = e.transformTag ? e.transformTag(e.tagName) : e.tagName, x = `<${p}${r} suppressHydrationWarning="true">`;
359
396
  try {
360
397
  const a = await k(t), { renderToString: o } = await import("react-dom/server");
398
+ // A recursive pie descriptor must not reintroduce unresolved async
399
+ // children when its parent serializes the already-resolved descriptor.
400
+ if (chartDescriptorTags.has(e.tagName)) descriptorChildren = a;
361
401
  s = o(a).replace(/\n\s+/g, "");
362
402
  } catch (a) {
363
403
  if (process.env.STENCIL_SSR_DEBUG) {
@@ -426,7 +466,7 @@ const E = {
426
466
  suppressHydrationWarning: !0,
427
467
  dangerouslySetInnerHTML: { __html: $ + T }
428
468
  }
429
- ), t);
469
+ ), descriptorChildren);
430
470
  }
431
471
  }
432
472
  });
@@ -476,6 +516,10 @@ const S = async (e, t) => {
476
516
  return e;
477
517
  typeof e != "object" && (n = await e(t));
478
518
  }
519
+ // Keep the descriptor's serialized props when a parent resolves its children.
520
+ // Rebuilding this tag from the original React props drops arrays/maps and
521
+ // dashed aliases before the parent's hydrate pass reads the series.
522
+ if (l.isValidElement(n) && typeof n.type === 'string' && chartDescriptorTags.has(n.type)) return n;
479
523
  return !h(n) && !u(n) && l.isValidElement(n) && (n = await S(n.type, t)), n;
480
524
  };
481
525
  let y = null;