@carbon/charts 1.10.2 → 1.10.4

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.
@@ -1,4 +1,4 @@
1
- import { b as B, a as r, c as dA, d as n } from "../index-becfb567.mjs";
1
+ import { b as c, a as r, c as dA, d as n } from "../index-becfb567.mjs";
2
2
  import { timeFormat as ZM } from "d3";
3
3
  var wM = {
4
4
  lessThanXSeconds: {
@@ -83,15 +83,15 @@ var xM = {
83
83
  medium: "{{date}}, {{time}}",
84
84
  short: "{{date}}, {{time}}"
85
85
  }, jM = {
86
- date: B({
86
+ date: c({
87
87
  formats: xM,
88
88
  defaultWidth: "full"
89
89
  }),
90
- time: B({
90
+ time: c({
91
91
  formats: XM,
92
92
  defaultWidth: "full"
93
93
  }),
94
- dateTime: B({
94
+ dateTime: c({
95
95
  formats: QM,
96
96
  defaultWidth: "full"
97
97
  })
@@ -369,15 +369,15 @@ var mE = {
369
369
  medium: "{{date}}, {{time}}",
370
370
  short: "{{date}}, {{time}}"
371
371
  }, gE = {
372
- date: B({
372
+ date: c({
373
373
  formats: mE,
374
374
  defaultWidth: "full"
375
375
  }),
376
- time: B({
376
+ time: c({
377
377
  formats: UE,
378
378
  defaultWidth: "full"
379
379
  }),
380
- dateTime: B({
380
+ dateTime: c({
381
381
  formats: GE,
382
382
  defaultWidth: "full"
383
383
  })
@@ -1296,7 +1296,7 @@ const pA = EN, mA = [
1296
1296
  numCharacter: 12
1297
1297
  }
1298
1298
  }
1299
- }, U = [
1299
+ }, G = [
1300
1300
  { group: "Qty", date: new Date(2019, 0, 1), value: 1e4 },
1301
1301
  { group: "More", date: new Date(2019, 0, 2), value: 65e3 },
1302
1302
  { group: "Sold", date: new Date(2019, 0, 3), value: 3e4 },
@@ -1331,7 +1331,7 @@ const pA = EN, mA = [
1331
1331
  scaleType: "time"
1332
1332
  }
1333
1333
  }
1334
- }, o_ = U, i_ = {
1334
+ }, o_ = G, i_ = {
1335
1335
  title: "Turkish locale (date-fns locales)",
1336
1336
  axes: {
1337
1337
  left: {
@@ -1367,7 +1367,7 @@ const pA = EN, mA = [
1367
1367
  },
1368
1368
  timeScale: { localeObject: pA },
1369
1369
  bars: { maxWidth: 200 }
1370
- }, R_ = U, F_ = [
1370
+ }, R_ = G, F_ = [
1371
1371
  { group: "Qty", date: new Date(2019, 0, 1), value: [1e4, 41e3] },
1372
1372
  { group: "More", date: new Date(2019, 0, 2), value: 65e3 },
1373
1373
  { group: "Sold", date: new Date(2019, 0, 3), value: 3e4 },
@@ -1732,7 +1732,7 @@ const pA = EN, mA = [
1732
1732
  simpleBarOptionsCustomTicks: S_,
1733
1733
  simpleBarSkeletonData: g_,
1734
1734
  simpleBarSkeletonOptions: K_,
1735
- simpleBarTimeSeriesData: U,
1735
+ simpleBarTimeSeriesData: G,
1736
1736
  simpleBarTimeSeriesDenseData: n_,
1737
1737
  simpleBarTimeSeriesDenseOptions: O_,
1738
1738
  simpleBarTimeSeriesOptions: SA,
@@ -1821,7 +1821,7 @@ const pA = EN, mA = [
1821
1821
  simpleBoxplotOptions: Se,
1822
1822
  simpleVerticalBoxplotData: Me,
1823
1823
  simpleVerticalBoxplotOptions: Ee
1824
- }, Symbol.toStringTag, { value: "Module" })), c = [
1824
+ }, Symbol.toStringTag, { value: "Module" })), d = [
1825
1825
  { group: "Dataset 1", key: "Qty", value: 34200 },
1826
1826
  { group: "Dataset 1", key: "More", value: 23500 },
1827
1827
  { group: "Dataset 1", key: "Sold", value: 53100 },
@@ -2277,7 +2277,7 @@ const pA = EN, mA = [
2277
2277
  dualLine: Be,
2278
2278
  lineCustomColorOptions: oe,
2279
2279
  lineCustomDomainOptions: De,
2280
- lineData: c,
2280
+ lineData: d,
2281
2281
  lineEmptyStateData: se,
2282
2282
  lineEmptyStateOptions: ue,
2283
2283
  lineLogAxisData: Ie,
@@ -45399,7 +45399,7 @@ const pA = EN, mA = [
45399
45399
  comboStackedAreaLineOptions: Ma,
45400
45400
  comboStackedData: we,
45401
45401
  comboStackedOptions: Je
45402
- }, Symbol.toStringTag, { value: "Module" })), G = [
45402
+ }, Symbol.toStringTag, { value: "Module" })), g = [
45403
45403
  { group: "2V2N 9KYPM version 1", value: 2e4 },
45404
45404
  { group: "L22I P66EP L22I P66EP L22I P66EP", value: 65e3 },
45405
45405
  { group: "JQAI 2M4L1", value: 75e3 },
@@ -45409,7 +45409,7 @@ const pA = EN, mA = [
45409
45409
  ], ta = {
45410
45410
  title: "Pie",
45411
45411
  resizable: !0
45412
- }, La = G, Da = {
45412
+ }, La = g, Da = {
45413
45413
  title: "Pie (centered)",
45414
45414
  resizable: !0,
45415
45415
  legend: {
@@ -45444,7 +45444,7 @@ const pA = EN, mA = [
45444
45444
  __proto__: null,
45445
45445
  pieCenteredData: La,
45446
45446
  pieCenteredOptions: Da,
45447
- pieData: G,
45447
+ pieData: g,
45448
45448
  pieDataMapsTo: oA,
45449
45449
  pieEmptyStateData: na,
45450
45450
  pieEmptyStateOptions: oa,
@@ -45452,7 +45452,7 @@ const pA = EN, mA = [
45452
45452
  pieOptions: ta,
45453
45453
  pieSkeletonData: ia,
45454
45454
  pieSkeletonOptions: Ca
45455
- }, Symbol.toStringTag, { value: "Module" })), Oa = G, Ra = {
45455
+ }, Symbol.toStringTag, { value: "Module" })), Oa = g, Ra = {
45456
45456
  title: "Donut",
45457
45457
  resizable: !0,
45458
45458
  donut: {
@@ -45460,7 +45460,7 @@ const pA = EN, mA = [
45460
45460
  label: "Browsers"
45461
45461
  }
45462
45462
  }
45463
- }, Fa = G, Ia = {
45463
+ }, Fa = g, Ia = {
45464
45464
  title: "Donut (centered)",
45465
45465
  resizable: !0,
45466
45466
  legend: {
@@ -46271,7 +46271,7 @@ const pA = EN, mA = [
46271
46271
  }, Symbol.toStringTag, { value: "Module" })), ES = Object.assign({}, tA, {
46272
46272
  title: "Step (discrete)",
46273
46273
  curve: "curveStepAfter"
46274
- }), NS = c, FA = Object.assign({}, s, {
46274
+ }), NS = d, FA = Object.assign({}, s, {
46275
46275
  title: "Step (time series)",
46276
46276
  curve: "curveStepAfter"
46277
46277
  }), IA = R, tS = [], LS = Object.assign({}, s, {
@@ -47626,7 +47626,7 @@ const pA = EN, mA = [
47626
47626
  }
47627
47627
  }), _), aM = H, SM = L(
47628
47628
  Object.assign({}, eA)
47629
- ), MM = U, EM = L(
47629
+ ), MM = G, EM = L(
47630
47630
  Object.assign({}, SA),
47631
47631
  { sliderView: !0 }
47632
47632
  ), NM = h, tM = L(
@@ -47734,7 +47734,7 @@ f.zoomBar.top.data = [
47734
47734
  value: 10
47735
47735
  }
47736
47736
  ];
47737
- const BM = [], g = L(
47737
+ const BM = [], K = L(
47738
47738
  Object.assign(
47739
47739
  {
47740
47740
  data: {
@@ -47745,9 +47745,9 @@ const BM = [], g = L(
47745
47745
  ),
47746
47746
  { includeDefinedZoomBarData: !0 }
47747
47747
  );
47748
- g.title = "Zoom bar (Locked)";
47749
- g.zoomBar.top.locked = !0;
47750
- g.zoomBar.top.initialZoomDomain = [new Date(2019, 0, 3), new Date(2019, 0, 15)];
47748
+ K.title = "Zoom bar (Locked)";
47749
+ K.zoomBar.top.locked = !0;
47750
+ K.zoomBar.top.initialZoomDomain = [new Date(2019, 0, 3), new Date(2019, 0, 15)];
47751
47751
  const cM = [], Z = L(
47752
47752
  Object.assign(
47753
47753
  {
@@ -47776,7 +47776,7 @@ const P3 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
47776
47776
  zoomBarLineTimeSeriesInitDomainOptions: k,
47777
47777
  zoomBarLineTimeSeriesOptions: OM,
47778
47778
  zoomBarLockedData: BM,
47779
- zoomBarLockedOptions: g,
47779
+ zoomBarLockedOptions: K,
47780
47780
  zoomBarScatterTimeSeriesData: RM,
47781
47781
  zoomBarScatterTimeSeriesOptions: FM,
47782
47782
  zoomBarSimpleBarTimeSeriesData: MM,
@@ -48162,7 +48162,7 @@ const P3 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
48162
48162
  boundedAreaTimeSeriesWithHighlightsOptions: TA,
48163
48163
  boundedAreaTimeSeriesWithHighlightsZoomOptions: HM,
48164
48164
  highlightBoundedAreaTimeSeriesData: AA
48165
- }, Symbol.toStringTag, { value: "Module" })), m = [
48165
+ }, Symbol.toStringTag, { value: "Module" })), U = [
48166
48166
  {
48167
48167
  letter: "A",
48168
48168
  month: "January",
@@ -48802,7 +48802,7 @@ const P3 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
48802
48802
  heatmap: {
48803
48803
  colorLegend: { title: "Legend title", type: "quantize" }
48804
48804
  }
48805
- }), bM = m.map((_) => ({
48805
+ }), bM = U.map((_) => ({
48806
48806
  ..._,
48807
48807
  value: _.value / 10 * (Math.round(Math.random()) ? -1 : 1)
48808
48808
  })), VM = {
@@ -49296,7 +49296,7 @@ const P3 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
49296
49296
  }
49297
49297
  }, d3 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
49298
49298
  __proto__: null,
49299
- heatmapData: m,
49299
+ heatmapData: U,
49300
49300
  heatmapDomainOptions: VM,
49301
49301
  heatmapMissingData: YM,
49302
49302
  heatmapMissingDataOptions: kM,
@@ -49304,7 +49304,7 @@ const P3 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
49304
49304
  heatmapPositiveNegativeData: bM,
49305
49305
  heatmapPositiveNegativeOptions: WM,
49306
49306
  heatmapQuantizeLegendOption: hM
49307
- }, Symbol.toStringTag, { value: "Module" })), RN = "@carbon/charts", FN = "1.10.2", IN = "Carbon Charts component library", lN = "./dist/index.mjs", sN = "./dist/index.js", uN = "./dist/index.d.ts", TN = {
49307
+ }, Symbol.toStringTag, { value: "Module" })), RN = "@carbon/charts", FN = "1.10.4", IN = "Carbon Charts component library", lN = "./dist/index.mjs", sN = "./dist/index.js", uN = "./dist/index.d.ts", TN = {
49308
49308
  "./package.json": "./package.json",
49309
49309
  "./styles.min.css": "./dist/styles.min.css",
49310
49310
  "./styles.css": "./dist/styles.css",
@@ -50143,19 +50143,19 @@ new Vue({
50143
50143
  </option>
50144
50144
  ${S ? Object.keys(S).map((T) => {
50145
50145
  const x = S ? S[T] : 0;
50146
- let d = `<optgroup class="cds--select-optgroup" label="${T} groups">`;
50146
+ let p = `<optgroup class="cds--select-optgroup" label="${T} groups">`;
50147
50147
  const P = parseInt(T);
50148
50148
  if (P !== 14)
50149
- for (let p = 1; p <= x; p++)
50150
- d += `
50151
- <option class="cds--select-option" ${C || P < D ? "disabled" : ""} value="${T}-option-${p}" ${u === `${P}-${p}` ? "selected" : ""}>
50152
- ${P}-color groups, option ${p}
50149
+ for (let m = 1; m <= x; m++)
50150
+ p += `
50151
+ <option class="cds--select-option" ${C || P < D ? "disabled" : ""} value="${T}-option-${m}" ${u === `${P}-${m}` ? "selected" : ""}>
50152
+ ${P}-color groups, option ${m}
50153
50153
  </option>`;
50154
50154
  else
50155
- d += `<option class="cds--select-option" value="14-color-option-1" ${u === "14-1" || C ? "selected" : ""}>
50155
+ p += `<option class="cds--select-option" value="14-color-option-1" ${u === "14-1" || C ? "selected" : ""}>
50156
50156
  Categorical palette
50157
50157
  </option>`;
50158
- return d;
50158
+ return p;
50159
50159
  }).join("") : ""}
50160
50160
  </select>
50161
50161
  <svg focusable="false" preserveAspectRatio="xMidYMid meet" style="will-change: transform;" xmlns="http://www.w3.org/2000/svg" class="cds--select__arrow" width="16" height="16" viewBox="0 0 16 16" aria-hidden="true"><path d="M8 11L3 6 3.7 5.3 8 9.6 12.3 5.3 13 6z"></path></svg>
@@ -50163,8 +50163,8 @@ new Vue({
50163
50163
  </div>
50164
50164
  </div>
50165
50165
  </div>`, (z = F == null ? void 0 : F.querySelector("#color-palette-select")) == null || z.addEventListener("change", (T) => {
50166
- const { value: x } = T.target, [d, P] = x.split("-color-option-");
50167
- M.color.pairing.numberOfVariants = d, M.color.pairing.option = P, e.model.setOptions(M);
50166
+ const { value: x } = T.target, [p, P] = x.split("-color-option-");
50167
+ M.color.pairing.numberOfVariants = p, M.color.pairing.option = P, e.model.setOptions(M);
50168
50168
  }), (BA = _ == null ? void 0 : _.querySelector("#charting-controls")) == null || BA.appendChild(F);
50169
50169
  }, p3 = (_, e, a, S = { colorPairingOptions: null }) => {
50170
50170
  var M, E;
@@ -50359,7 +50359,7 @@ new Vue({
50359
50359
  angular: "ibm-wordcloud-chart",
50360
50360
  vue: "CcvWordCloudChart"
50361
50361
  }
50362
- }, K = O.version, xN = O.dependencies.d3, XN = O.dependencies["@carbon/styles"], QN = [
50362
+ }, B = O.version, xN = O.dependencies.d3, XN = O.dependencies["@carbon/styles"], QN = [
50363
50363
  {
50364
50364
  title: "Axes",
50365
50365
  demos: [
@@ -50380,7 +50380,7 @@ new Vue({
50380
50380
  },
50381
50381
  {
50382
50382
  options: De,
50383
- data: c,
50383
+ data: d,
50384
50384
  chartType: A.LineChart
50385
50385
  },
50386
50386
  {
@@ -50485,7 +50485,7 @@ new Vue({
50485
50485
  },
50486
50486
  {
50487
50487
  options: oe,
50488
- data: c,
50488
+ data: d,
50489
50489
  chartType: A.LineChart
50490
50490
  },
50491
50491
  {
@@ -50530,7 +50530,7 @@ new Vue({
50530
50530
  },
50531
50531
  {
50532
50532
  options: ce,
50533
- data: c,
50533
+ data: d,
50534
50534
  chartType: A.LineChart
50535
50535
  }
50536
50536
  ]
@@ -50664,7 +50664,7 @@ new Vue({
50664
50664
  chartType: A.LineChart
50665
50665
  },
50666
50666
  {
50667
- options: g,
50667
+ options: K,
50668
50668
  data: BM,
50669
50669
  chartType: A.StackedBarChart
50670
50670
  },
@@ -50745,7 +50745,7 @@ new Vue({
50745
50745
  },
50746
50746
  {
50747
50747
  options: SA,
50748
- data: U,
50748
+ data: G,
50749
50749
  chartType: A.SimpleBarChart
50750
50750
  },
50751
50751
  {
@@ -51123,7 +51123,7 @@ new Vue({
51123
51123
  demos: [
51124
51124
  {
51125
51125
  options: tA,
51126
- data: c,
51126
+ data: d,
51127
51127
  chartType: A.LineChart
51128
51128
  },
51129
51129
  {
@@ -51175,7 +51175,7 @@ new Vue({
51175
51175
  demos: [
51176
51176
  {
51177
51177
  options: ta,
51178
- data: G,
51178
+ data: g,
51179
51179
  chartType: A.PieChart,
51180
51180
  mainDemo: !0
51181
51181
  },
@@ -51453,12 +51453,12 @@ new Vue({
51453
51453
  demos: [
51454
51454
  {
51455
51455
  options: PA,
51456
- data: m,
51456
+ data: U,
51457
51457
  chartType: A.HeatmapChart
51458
51458
  },
51459
51459
  {
51460
51460
  options: hM,
51461
- data: m,
51461
+ data: U,
51462
51462
  chartType: A.HeatmapChart
51463
51463
  },
51464
51464
  {
@@ -51473,7 +51473,7 @@ new Vue({
51473
51473
  },
51474
51474
  {
51475
51475
  options: VM,
51476
- data: m,
51476
+ data: U,
51477
51477
  chartType: A.HeatmapChart
51478
51478
  }
51479
51479
  ]
@@ -51516,7 +51516,7 @@ const cA = (_) => _.replace(/[^\w\s]/gi, "").replace(/\s\s+/g, " ").toLowerCase(
51516
51516
  template: "javascript",
51517
51517
  description: a.title,
51518
51518
  dependencies: {
51519
- "@carbon/charts": K,
51519
+ "@carbon/charts": B,
51520
51520
  "@carbon/styles": XN,
51521
51521
  d3: xN
51522
51522
  }
@@ -51528,8 +51528,8 @@ const cA = (_) => _.replace(/[^\w\s]/gi, "").replace(/\s\s+/g, " ").toLowerCase(
51528
51528
  title: "Carbon Charts Angular Example",
51529
51529
  dependencies: {
51530
51530
  ...S.dependencies,
51531
- "@carbon/charts": "next",
51532
- "@carbon/charts-angular": "next"
51531
+ "@carbon/charts": B,
51532
+ "@carbon/charts-angular": B
51533
51533
  }
51534
51534
  }, a.code.react = {
51535
51535
  ...S,
@@ -51538,7 +51538,7 @@ const cA = (_) => _.replace(/[^\w\s]/gi, "").replace(/\s\s+/g, " ").toLowerCase(
51538
51538
  title: "Carbon Charts React Example",
51539
51539
  dependencies: {
51540
51540
  ...S.dependencies,
51541
- "@carbon/charts-react": K
51541
+ "@carbon/charts-react": B
51542
51542
  }
51543
51543
  }, a.code.svelte = {
51544
51544
  ...S,
@@ -51547,7 +51547,7 @@ const cA = (_) => _.replace(/[^\w\s]/gi, "").replace(/\s\s+/g, " ").toLowerCase(
51547
51547
  title: "Carbon Charts Svelte Example",
51548
51548
  dependencies: {
51549
51549
  ...S.dependencies,
51550
- "@carbon/charts-svelte": K
51550
+ "@carbon/charts-svelte": B
51551
51551
  }
51552
51552
  }, a.code.vue = {
51553
51553
  ...S,
@@ -51556,7 +51556,7 @@ const cA = (_) => _.replace(/[^\w\s]/gi, "").replace(/\s\s+/g, " ").toLowerCase(
51556
51556
  title: "Carbon Charts Vue Example",
51557
51557
  dependencies: {
51558
51558
  ...S.dependencies,
51559
- "@carbon/charts-vue": K
51559
+ "@carbon/charts-vue": B
51560
51560
  }
51561
51561
  }, a;
51562
51562
  }), e));