@carbon/charts 1.10.3 → 1.10.5

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.3", 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.5", 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",
@@ -49350,6 +49350,8 @@ const P3 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
49350
49350
  }, PN = [
49351
49351
  "dist",
49352
49352
  "scss",
49353
+ "styles.css",
49354
+ "styles.min.css",
49353
49355
  "CHANGELOG.md"
49354
49356
  ], BN = {
49355
49357
  postinstall: "carbon-telemetry collect --install",
@@ -49358,7 +49360,7 @@ const P3 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
49358
49360
  "file:css:demo": "sass scss/demos.scss dist/demo/styles.css --load-path=./node_modules --load-path=../../node_modules",
49359
49361
  "file:downlevel:dts": "downlevel-dts dist dist",
49360
49362
  postbundle: 'concurrently "yarn:file:*"',
49361
- "build:package": "vite build && yarn postbundle",
49363
+ "build:package": "vite build && yarn postbundle && cp dist/styles*.css ./",
49362
49364
  "demo:docs": "typedoc ./src/index.ts --out ./demo/bundle/documentation",
49363
49365
  "demo:storybook": "storybook build -o demo/bundle --quiet",
49364
49366
  "build:demo": 'concurrently "yarn:demo:*"',
@@ -50143,19 +50145,19 @@ new Vue({
50143
50145
  </option>
50144
50146
  ${S ? Object.keys(S).map((T) => {
50145
50147
  const x = S ? S[T] : 0;
50146
- let d = `<optgroup class="cds--select-optgroup" label="${T} groups">`;
50148
+ let p = `<optgroup class="cds--select-optgroup" label="${T} groups">`;
50147
50149
  const P = parseInt(T);
50148
50150
  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}
50151
+ for (let m = 1; m <= x; m++)
50152
+ p += `
50153
+ <option class="cds--select-option" ${C || P < D ? "disabled" : ""} value="${T}-option-${m}" ${u === `${P}-${m}` ? "selected" : ""}>
50154
+ ${P}-color groups, option ${m}
50153
50155
  </option>`;
50154
50156
  else
50155
- d += `<option class="cds--select-option" value="14-color-option-1" ${u === "14-1" || C ? "selected" : ""}>
50157
+ p += `<option class="cds--select-option" value="14-color-option-1" ${u === "14-1" || C ? "selected" : ""}>
50156
50158
  Categorical palette
50157
50159
  </option>`;
50158
- return d;
50160
+ return p;
50159
50161
  }).join("") : ""}
50160
50162
  </select>
50161
50163
  <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 +50165,8 @@ new Vue({
50163
50165
  </div>
50164
50166
  </div>
50165
50167
  </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);
50168
+ const { value: x } = T.target, [p, P] = x.split("-color-option-");
50169
+ M.color.pairing.numberOfVariants = p, M.color.pairing.option = P, e.model.setOptions(M);
50168
50170
  }), (BA = _ == null ? void 0 : _.querySelector("#charting-controls")) == null || BA.appendChild(F);
50169
50171
  }, p3 = (_, e, a, S = { colorPairingOptions: null }) => {
50170
50172
  var M, E;
@@ -50359,7 +50361,7 @@ new Vue({
50359
50361
  angular: "ibm-wordcloud-chart",
50360
50362
  vue: "CcvWordCloudChart"
50361
50363
  }
50362
- }, K = O.version, xN = O.dependencies.d3, XN = O.dependencies["@carbon/styles"], QN = [
50364
+ }, B = O.version, xN = O.dependencies.d3, XN = O.dependencies["@carbon/styles"], QN = [
50363
50365
  {
50364
50366
  title: "Axes",
50365
50367
  demos: [
@@ -50380,7 +50382,7 @@ new Vue({
50380
50382
  },
50381
50383
  {
50382
50384
  options: De,
50383
- data: c,
50385
+ data: d,
50384
50386
  chartType: A.LineChart
50385
50387
  },
50386
50388
  {
@@ -50485,7 +50487,7 @@ new Vue({
50485
50487
  },
50486
50488
  {
50487
50489
  options: oe,
50488
- data: c,
50490
+ data: d,
50489
50491
  chartType: A.LineChart
50490
50492
  },
50491
50493
  {
@@ -50530,7 +50532,7 @@ new Vue({
50530
50532
  },
50531
50533
  {
50532
50534
  options: ce,
50533
- data: c,
50535
+ data: d,
50534
50536
  chartType: A.LineChart
50535
50537
  }
50536
50538
  ]
@@ -50664,7 +50666,7 @@ new Vue({
50664
50666
  chartType: A.LineChart
50665
50667
  },
50666
50668
  {
50667
- options: g,
50669
+ options: K,
50668
50670
  data: BM,
50669
50671
  chartType: A.StackedBarChart
50670
50672
  },
@@ -50745,7 +50747,7 @@ new Vue({
50745
50747
  },
50746
50748
  {
50747
50749
  options: SA,
50748
- data: U,
50750
+ data: G,
50749
50751
  chartType: A.SimpleBarChart
50750
50752
  },
50751
50753
  {
@@ -51123,7 +51125,7 @@ new Vue({
51123
51125
  demos: [
51124
51126
  {
51125
51127
  options: tA,
51126
- data: c,
51128
+ data: d,
51127
51129
  chartType: A.LineChart
51128
51130
  },
51129
51131
  {
@@ -51175,7 +51177,7 @@ new Vue({
51175
51177
  demos: [
51176
51178
  {
51177
51179
  options: ta,
51178
- data: G,
51180
+ data: g,
51179
51181
  chartType: A.PieChart,
51180
51182
  mainDemo: !0
51181
51183
  },
@@ -51453,12 +51455,12 @@ new Vue({
51453
51455
  demos: [
51454
51456
  {
51455
51457
  options: PA,
51456
- data: m,
51458
+ data: U,
51457
51459
  chartType: A.HeatmapChart
51458
51460
  },
51459
51461
  {
51460
51462
  options: hM,
51461
- data: m,
51463
+ data: U,
51462
51464
  chartType: A.HeatmapChart
51463
51465
  },
51464
51466
  {
@@ -51473,7 +51475,7 @@ new Vue({
51473
51475
  },
51474
51476
  {
51475
51477
  options: VM,
51476
- data: m,
51478
+ data: U,
51477
51479
  chartType: A.HeatmapChart
51478
51480
  }
51479
51481
  ]
@@ -51516,7 +51518,7 @@ const cA = (_) => _.replace(/[^\w\s]/gi, "").replace(/\s\s+/g, " ").toLowerCase(
51516
51518
  template: "javascript",
51517
51519
  description: a.title,
51518
51520
  dependencies: {
51519
- "@carbon/charts": K,
51521
+ "@carbon/charts": B,
51520
51522
  "@carbon/styles": XN,
51521
51523
  d3: xN
51522
51524
  }
@@ -51528,8 +51530,8 @@ const cA = (_) => _.replace(/[^\w\s]/gi, "").replace(/\s\s+/g, " ").toLowerCase(
51528
51530
  title: "Carbon Charts Angular Example",
51529
51531
  dependencies: {
51530
51532
  ...S.dependencies,
51531
- "@carbon/charts": "next",
51532
- "@carbon/charts-angular": "next"
51533
+ "@carbon/charts": B,
51534
+ "@carbon/charts-angular": B
51533
51535
  }
51534
51536
  }, a.code.react = {
51535
51537
  ...S,
@@ -51538,7 +51540,7 @@ const cA = (_) => _.replace(/[^\w\s]/gi, "").replace(/\s\s+/g, " ").toLowerCase(
51538
51540
  title: "Carbon Charts React Example",
51539
51541
  dependencies: {
51540
51542
  ...S.dependencies,
51541
- "@carbon/charts-react": K
51543
+ "@carbon/charts-react": B
51542
51544
  }
51543
51545
  }, a.code.svelte = {
51544
51546
  ...S,
@@ -51547,7 +51549,7 @@ const cA = (_) => _.replace(/[^\w\s]/gi, "").replace(/\s\s+/g, " ").toLowerCase(
51547
51549
  title: "Carbon Charts Svelte Example",
51548
51550
  dependencies: {
51549
51551
  ...S.dependencies,
51550
- "@carbon/charts-svelte": K
51552
+ "@carbon/charts-svelte": B
51551
51553
  }
51552
51554
  }, a.code.vue = {
51553
51555
  ...S,
@@ -51556,7 +51558,7 @@ const cA = (_) => _.replace(/[^\w\s]/gi, "").replace(/\s\s+/g, " ").toLowerCase(
51556
51558
  title: "Carbon Charts Vue Example",
51557
51559
  dependencies: {
51558
51560
  ...S.dependencies,
51559
- "@carbon/charts-vue": K
51561
+ "@carbon/charts-vue": B
51560
51562
  }
51561
51563
  }, a;
51562
51564
  }), e));