@svgrid/grid-wc 3.0.0 → 3.0.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 (96) hide show
  1. package/README.md +130 -110
  2. package/dist/GridMenus-B1mC1aPp.js +1077 -0
  3. package/dist/SvChartMenu-CBMKm7Xb.js +413 -0
  4. package/dist/SvDateRangeInput-BrYTQEMM.js +197 -0
  5. package/dist/SvDateTimePicker-CnLlqNDQ.js +766 -0
  6. package/dist/SvField-Bmzp3ObZ.js +147 -0
  7. package/dist/SvGridCellEditor-B005dmV1.js +560 -0
  8. package/dist/SvGridChart-4TcL9Rj2.js +3702 -0
  9. package/dist/SvGridChartBuilder-C4OL4XYx.js +1165 -0
  10. package/dist/SvGridChartPanel-CfHA8Ioq.js +1743 -0
  11. package/dist/SvGridChartView-Ci-9_EJ0.js +45 -0
  12. package/dist/SvGridDropdown-BlA6iw9m.js +257 -0
  13. package/dist/angular/fesm2022/svgrid-grid-wc-angular.mjs +178 -7
  14. package/dist/angular/fesm2022/svgrid-grid-wc-angular.mjs.map +1 -1
  15. package/dist/angular/types/svgrid-grid-wc-angular.d.ts +77 -2
  16. package/dist/{shadow/cell-formatting-C0OsDmi_.js → cell-formatting-Eypm-id0.js} +1 -1
  17. package/dist/chart/SvChartMenu-C-sbGNk8.js +586 -0
  18. package/dist/chart/chart-export-BHGuh_kZ.js +127 -0
  19. package/dist/chart/chart-export-pdf-BjkkIEkE.js +104 -0
  20. package/dist/chart/chart-summary-B86RFA3M.js +137 -0
  21. package/dist/chart/chart-trend-DP6DSsBa.js +56 -0
  22. package/dist/chart/chart-validate-CD6ptiwg.js +180 -0
  23. package/dist/chart/client-BuB0wIgc.js +2757 -0
  24. package/dist/chart/sv-chart-element.d.ts +98 -0
  25. package/dist/chart/sv-chart-element.js +7282 -0
  26. package/dist/chart-DoqdUoGg.js +4398 -0
  27. package/dist/chart-export-pdf-BirUdchl.js +104 -0
  28. package/dist/chart-summary-BP9i-v8M.js +137 -0
  29. package/dist/chart-validate-CD6ptiwg.js +180 -0
  30. package/dist/{shadow/client-DjwUji8D.js → client-DEF0GRjE.js} +1 -1
  31. package/dist/{shadow/column-resize-DvCRUrN3.js → column-resize-DUPgynvc.js} +3 -3
  32. package/dist/date-format-DMTwV8NC.js +1128 -0
  33. package/dist/{export-format-B6FUgOll.js → export-format-uGayRKWM.js} +3 -3
  34. package/dist/focus-trap-DvlOlOGM.js +65 -0
  35. package/dist/list-option-DrRyivWp.js +82 -0
  36. package/dist/react/chart.d.ts +99 -0
  37. package/dist/react/chart.js +49 -0
  38. package/dist/react/index.d.ts +28 -0
  39. package/dist/react/index.js +4 -1
  40. package/dist/{row-resize-D-8s3cqT.js → row-resize-Cf8qPLbi.js} +44 -36
  41. package/dist/shadow/GridMenus-B1mC1aPp.js +1077 -0
  42. package/dist/shadow/SvChartMenu-CBMKm7Xb.js +413 -0
  43. package/dist/shadow/SvDateRangeInput-BrYTQEMM.js +197 -0
  44. package/dist/shadow/SvDateTimePicker-CnLlqNDQ.js +766 -0
  45. package/dist/shadow/SvField-Bmzp3ObZ.js +147 -0
  46. package/dist/shadow/SvGridCellEditor-B005dmV1.js +560 -0
  47. package/dist/shadow/SvGridChart-4TcL9Rj2.js +3702 -0
  48. package/dist/shadow/SvGridChartBuilder-C4OL4XYx.js +1165 -0
  49. package/dist/shadow/SvGridChartPanel-CfHA8Ioq.js +1743 -0
  50. package/dist/shadow/SvGridChartView-Ci-9_EJ0.js +45 -0
  51. package/dist/shadow/SvGridDropdown-BlA6iw9m.js +257 -0
  52. package/dist/{cell-formatting-C0OsDmi_.js → shadow/cell-formatting-Eypm-id0.js} +1 -1
  53. package/dist/shadow/chart-DoqdUoGg.js +4398 -0
  54. package/dist/shadow/chart-export-pdf-BirUdchl.js +104 -0
  55. package/dist/shadow/chart-summary-BP9i-v8M.js +137 -0
  56. package/dist/shadow/chart-validate-CD6ptiwg.js +180 -0
  57. package/dist/{client-DjwUji8D.js → shadow/client-DEF0GRjE.js} +1 -1
  58. package/dist/{column-resize-DvCRUrN3.js → shadow/column-resize-DUPgynvc.js} +3 -3
  59. package/dist/shadow/date-format-DMTwV8NC.js +1128 -0
  60. package/dist/shadow/{export-format-C8kZGZfz.js → export-format-DhdZREP1.js} +3 -3
  61. package/dist/shadow/focus-trap-DvlOlOGM.js +65 -0
  62. package/dist/shadow/list-option-DrRyivWp.js +82 -0
  63. package/dist/shadow/{row-resize-D-8s3cqT.js → row-resize-Cf8qPLbi.js} +44 -36
  64. package/dist/shadow/sv-grid-shadow-element.d.ts +15 -0
  65. package/dist/shadow/sv-grid-shadow-element.js +4853 -3626
  66. package/dist/shadow/{svelte-virtualizer.svelte-DZ9UcyfT.js → svelte-virtualizer.svelte-CnGhFGDc.js} +37 -34
  67. package/dist/sv-grid-element.d.ts +15 -0
  68. package/dist/sv-grid-element.js +4809 -3612
  69. package/dist/{svelte-virtualizer.svelte-DZ9UcyfT.js → svelte-virtualizer.svelte-CnGhFGDc.js} +37 -34
  70. package/dist/vue/chart.d.ts +64 -0
  71. package/dist/vue/chart.js +41 -0
  72. package/dist/vue/index.d.ts +11 -2
  73. package/dist/vue/index.js +4 -1
  74. package/package.json +18 -5
  75. package/dist/GridMenus-DpmS1pzo.js +0 -1121
  76. package/dist/SvDateRangeInput-u4ibte8S.js +0 -196
  77. package/dist/SvDateTimePicker-DVFiDxUq.js +0 -765
  78. package/dist/SvField-ChCI-O2O.js +0 -146
  79. package/dist/SvGridCellEditor-DvsQyE9a.js +0 -550
  80. package/dist/SvGridChart-yK5Zv85y.js +0 -1199
  81. package/dist/SvGridChartPanel-B38_VjXM.js +0 -584
  82. package/dist/SvGridChartView-ScXTF6t-.js +0 -50
  83. package/dist/SvGridDropdown-DnAESFDu.js +0 -256
  84. package/dist/chart-uvs3sFJA.js +0 -1220
  85. package/dist/date-format-CPHqTHN6.js +0 -1127
  86. package/dist/shadow/GridMenus-DpmS1pzo.js +0 -1121
  87. package/dist/shadow/SvDateRangeInput-u4ibte8S.js +0 -196
  88. package/dist/shadow/SvDateTimePicker-DVFiDxUq.js +0 -765
  89. package/dist/shadow/SvField-ChCI-O2O.js +0 -146
  90. package/dist/shadow/SvGridCellEditor-DvsQyE9a.js +0 -550
  91. package/dist/shadow/SvGridChart-yK5Zv85y.js +0 -1199
  92. package/dist/shadow/SvGridChartPanel-B38_VjXM.js +0 -584
  93. package/dist/shadow/SvGridChartView-ScXTF6t-.js +0 -50
  94. package/dist/shadow/SvGridDropdown-DnAESFDu.js +0 -256
  95. package/dist/shadow/chart-uvs3sFJA.js +0 -1220
  96. package/dist/shadow/date-format-CPHqTHN6.js +0 -1127
@@ -1,4 +1,4 @@
1
- import { R as e, X as t, Z as n } from "./client-DjwUji8D.js";
1
+ import { Q as e, R as t, Z as n } from "./client-DEF0GRjE.js";
2
2
  //#region ../grid/dist/sv-grid-scrollbar.js
3
3
  var r = 16, i = 280, a = 50, o = "http://www.w3.org/2000/svg";
4
4
  function s() {
@@ -343,44 +343,47 @@ function x(e, t) {
343
343
  if (e.totalSize !== t.totalSize || e.startIndex !== t.startIndex || e.endIndex !== t.endIndex || e.viewportHeight !== t.viewportHeight || e.items.length !== t.items.length) return !1;
344
344
  for (let n = 0; n < e.items.length; n += 1) {
345
345
  let r = e.items[n], i = t.items[n];
346
- if (r.index !== i.index || r.start !== i.start || r.size !== i.size) return !1;
346
+ if (r.index !== i.index || r.start !== i.start || r.size !== i.size || r.key !== i.key) return !1;
347
347
  }
348
348
  return !0;
349
349
  }
350
- function S(e, t, n) {
351
- let r = [];
352
- for (let i = e; i <= t; i += 1) {
353
- let t = i * n;
350
+ function S(e, t) {
351
+ return `virtual_slot_${e % t}`;
352
+ }
353
+ function C(e, t, n) {
354
+ let r = [], i = t - e + 1;
355
+ for (let a = e; a <= t; a += 1) {
356
+ let e = a * n;
354
357
  r.push({
355
- index: i,
356
- start: t,
358
+ index: a,
359
+ start: e,
357
360
  size: n,
358
- end: t + n,
359
- key: `virtual_slot_${i - e}`
361
+ end: e + n,
362
+ key: S(a, i)
360
363
  });
361
364
  }
362
365
  return r;
363
366
  }
364
- function C(e, t, n, r) {
367
+ function w(e, t, n, r) {
365
368
  if (e <= 0) return [];
366
- let i = Math.max(t, 1), a = Math.ceil(Math.max(n, 0) / i), o = Math.min(a + Math.max(r, 0), e - 1);
367
- return S(0, Math.max(o, 0), i);
369
+ let i = Math.max(t, 1), a = Math.ceil(Math.max(n, 0) / i);
370
+ return C(0, Math.max(Math.min(a + Math.max(r, 0), e - 1), 0), i);
368
371
  }
369
- function w(e, t, n) {
370
- let r = [];
371
- for (let i = e; i <= t; i += 1) {
372
- let t = n[i] ?? 0, a = n[i + 1] ?? t;
372
+ function T(e, t, n) {
373
+ let r = [], i = t - e + 1;
374
+ for (let a = e; a <= t; a += 1) {
375
+ let e = n[a] ?? 0, t = n[a + 1] ?? e;
373
376
  r.push({
374
- index: i,
375
- start: t,
376
- size: a - t,
377
- end: a,
378
- key: `virtual_slot_${i - e}`
377
+ index: a,
378
+ start: e,
379
+ size: t - e,
380
+ end: t,
381
+ key: S(a, i)
379
382
  });
380
383
  }
381
384
  return r;
382
385
  }
383
- function T(e, t) {
386
+ function E(e, t) {
384
387
  let n = Math.max(e.count, 0), r = Math.max(e.overscan ?? 6, 0), i = Math.max(e.viewportHeight, 0);
385
388
  if (typeof e.estimateSize == "function" && t) {
386
389
  let a = t[n] ?? 0, o = Math.max(a - i, 0), s = y(e.scrollOffset ?? 0, 0, o), c = 0, l = n;
@@ -395,7 +398,7 @@ function T(e, t) {
395
398
  }
396
399
  let f = Math.max(c - 1, u), p = n === 0 ? 0 : y(u - r, 0, n - 1), m = n === 0 ? -1 : y(f + r, 0, n - 1);
397
400
  return {
398
- items: m >= p ? w(p, m, t) : [],
401
+ items: m >= p ? T(p, m, t) : [],
399
402
  totalSize: a,
400
403
  startIndex: p,
401
404
  endIndex: m,
@@ -405,7 +408,7 @@ function T(e, t) {
405
408
  }
406
409
  let a = Math.max(typeof e.estimateSize == "number" ? e.estimateSize : 1, 1), o = n * a, s = Math.max(o - i, 0), c = y(e.scrollOffset ?? 0, 0, s), l = Math.floor(c / a), u = Math.ceil(i / a), d = Math.min(l + u, Math.max(n - 1, 0)), f = n === 0 ? 0 : y(l - r, 0, n - 1), p = n === 0 ? -1 : y(d + r, 0, n - 1);
407
410
  return {
408
- items: p >= f ? S(f, p, a) : [],
411
+ items: p >= f ? C(f, p, a) : [],
409
412
  totalSize: o,
410
413
  startIndex: f,
411
414
  endIndex: p,
@@ -413,7 +416,7 @@ function T(e, t) {
413
416
  viewportHeight: i
414
417
  };
415
418
  }
416
- function E(e) {
419
+ function D(e) {
417
420
  let t = e, n = null;
418
421
  function r() {
419
422
  if (typeof t.estimateSize != "function") return null;
@@ -421,19 +424,19 @@ function E(e) {
421
424
  if (n && n.fn === t.estimateSize && n.count === e) return n.offsets;
422
425
  let r = t.estimateSize, i = Array(e + 1);
423
426
  i[0] = 0;
424
- for (let t = 0; t < e; t += 1) i[t + 1] = i[t] + Math.max(r(t), 1);
427
+ for (let t = 0; t < e; t += 1) i[t + 1] = i[t] + Math.max(r(t), 0);
425
428
  return n = {
426
429
  fn: r,
427
430
  count: e,
428
431
  offsets: i
429
432
  }, i;
430
433
  }
431
- let i = T(t, r()), a = /* @__PURE__ */ new Set();
434
+ let i = E(t, r()), a = /* @__PURE__ */ new Set();
432
435
  function o() {
433
436
  a.forEach((e) => e());
434
437
  }
435
438
  function s() {
436
- let e = T(t, r());
439
+ let e = E(t, r());
437
440
  x(i, e) || (i = e, o());
438
441
  }
439
442
  return {
@@ -504,13 +507,13 @@ function E(e) {
504
507
  }
505
508
  //#endregion
506
509
  //#region ../grid/dist/virtualization/svelte-virtualizer.svelte.js
507
- function D(r) {
508
- let i = E(r), a = n(0);
510
+ function O(r) {
511
+ let i = D(r), a = e(0);
509
512
  return i.subscribe(() => {
510
- t(a, e(a) + 1);
513
+ n(a, t(a) + 1);
511
514
  }), {
512
515
  get version() {
513
- return e(a);
516
+ return t(a);
514
517
  },
515
518
  setOptions: i.setOptions,
516
519
  setScrollOffset: i.setScrollOffset,
@@ -524,4 +527,4 @@ function D(r) {
524
527
  };
525
528
  }
526
529
  //#endregion
527
- export { h as a, g as c, v as i, C as n, f as o, E as r, m as s, D as t };
530
+ export { h as a, g as c, v as i, w as n, f as o, D as r, m as s, O as t };
@@ -135,9 +135,17 @@ export interface SvGridElement extends HTMLElement {
135
135
  /** attribute `copy-headers-to-clipboard` */
136
136
  copyHeadersToClipboard: boolean
137
137
  /** property only - an attribute cannot hold this */
138
+ processCellForFill: unknown
139
+ /** property only - an attribute cannot hold this */
138
140
  processCellForClipboard: unknown
141
+ /** property only - an attribute cannot hold this */
142
+ clipboardHtml: unknown
143
+ /** property only - an attribute cannot hold this */
144
+ processCellFromClipboard: unknown
139
145
  /** attribute `enable-inline-editing` */
140
146
  enableInlineEditing: boolean
147
+ /** attribute `edit-on-second-click` */
148
+ editOnSecondClick: boolean
141
149
  /** attribute `full-row-editing` */
142
150
  fullRowEditing: boolean
143
151
  /** attribute `enable-row-summaries` */
@@ -192,6 +200,10 @@ export interface SvGridElement extends HTMLElement {
192
200
  serverFilterValues: unknown
193
201
  /** property only - an attribute cannot hold this */
194
202
  pinnedTopRows: readonly unknown[]
203
+ /** attribute `frozen-rows` */
204
+ frozenRows: number
205
+ /** property only - an attribute cannot hold this */
206
+ mergedCells: readonly unknown[]
195
207
  /** property only - an attribute cannot hold this */
196
208
  pinnedBottomRows: readonly unknown[]
197
209
  /** attribute `enable-column-reorder` */
@@ -223,6 +235,9 @@ declare global {
223
235
  pivotmodechange: CustomEvent<unknown>
224
236
  expandedchange: CustomEvent<unknown>
225
237
  paginationchange: CustomEvent<unknown>
238
+ columnresize: CustomEvent<unknown>
239
+ rowresize: CustomEvent<unknown>
240
+ pasteclipboard: CustomEvent<unknown>
226
241
  apiready: CustomEvent<unknown>
227
242
  rowselectionchange: CustomEvent<unknown>
228
243
  cellselectionchange: CustomEvent<unknown>