@breadstone/mosaik-elements-svelte 0.0.241 → 0.0.243

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 (3) hide show
  1. package/CHANGELOG.md +20 -0
  2. package/index.mjs +60 -8
  3. package/package.json +3 -3
package/CHANGELOG.md CHANGED
@@ -1,3 +1,23 @@
1
+ ## 0.0.243 (2026-04-30)
2
+
3
+ ### 🚀 Features
4
+
5
+ - **data-table:** add events for table selection and editor state changes ([eb94167184](https://github.com/RueDeRennes/mosaik/commit/eb94167184))
6
+
7
+ ### 🩹 Fixes
8
+
9
+ - **api:** update event detail definitions and add value property to table components ([2610ad2acb](https://github.com/RueDeRennes/mosaik/commit/2610ad2acb))
10
+
11
+ ## 0.0.242 (2026-04-30)
12
+
13
+ ### 🚀 Features
14
+
15
+ - **release:** update release commands to use version from mosaik-themes package ([89c563205d](https://github.com/RueDeRennes/mosaik/commit/89c563205d))
16
+
17
+ ### 🩹 Fixes
18
+
19
+ - **release:** update changelog command to use version from mosaik-themes package ([cbe25acac5](https://github.com/RueDeRennes/mosaik/commit/cbe25acac5))
20
+
1
21
  ## 0.0.241 (2026-04-30)
2
22
 
3
23
  This was a version bump only for mosaik-elements-svelte to align it with other projects, there were no code changes.
package/index.mjs CHANGED
@@ -103736,6 +103736,12 @@ function GU() {
103736
103736
  right: 0;
103737
103737
  }
103738
103738
 
103739
+ :host [part="summary"] ::slotted(mosaik-paginator) {
103740
+ flex-direction: row-reverse;
103741
+ align-items: center;
103742
+ display: flex;
103743
+ }
103744
+
103739
103745
  :host([appearance="plain"]) {
103740
103746
  --table-border-width: 0px;
103741
103747
  }
@@ -103871,6 +103877,12 @@ function KU() {
103871
103877
  right: 0;
103872
103878
  }
103873
103879
 
103880
+ :host [part="summary"] ::slotted(mosaik-paginator) {
103881
+ flex-direction: row-reverse;
103882
+ align-items: center;
103883
+ display: flex;
103884
+ }
103885
+
103874
103886
  :host([appearance="plain"]) {
103875
103887
  --table-border-width: 0px;
103876
103888
  }
@@ -104017,6 +104029,12 @@ function qU() {
104017
104029
  right: 0;
104018
104030
  }
104019
104031
 
104032
+ :host [part="summary"] ::slotted(mosaik-paginator) {
104033
+ flex-direction: row-reverse;
104034
+ align-items: center;
104035
+ display: flex;
104036
+ }
104037
+
104020
104038
  :host([appearance="plain"]) {
104021
104039
  --table-border-width: 0px;
104022
104040
  }
@@ -104131,6 +104149,8 @@ var JU = function(e, t, n, r) {
104131
104149
  this._selectedRows = [], t || (e.select(), this._selectedRows = [e]);
104132
104150
  } else this._selectionMode === BU.Multiple && (t ? (e.deselect(), this._selectedRows = this._selectedRows.filter((t) => t !== e)) : (e.select(), this._selectedRows = [...this._selectedRows, e]));
104133
104151
  this._tableSelectionChanged.emit({
104152
+ selectionMode: this._selectionMode,
104153
+ selectionType: this._selectionType,
104134
104154
  selectedRows: [...this._selectedRows],
104135
104155
  selectedCells: []
104136
104156
  });
@@ -104143,6 +104163,8 @@ var JU = function(e, t, n, r) {
104143
104163
  this._selectedCells = [], t || (e.select(), this._selectedCells = [e]);
104144
104164
  } else this._selectionMode === BU.Multiple && (t ? (e.deselect(), this._selectedCells = this._selectedCells.filter((t) => t !== e)) : (e.select(), this._selectedCells = [...this._selectedCells, e]));
104145
104165
  this._tableSelectionChanged.emit({
104166
+ selectionMode: this._selectionMode,
104167
+ selectionType: this._selectionType,
104146
104168
  selectedRows: [],
104147
104169
  selectedCells: [...this._selectedCells]
104148
104170
  });
@@ -204851,7 +204873,7 @@ var r5 = function(e, t, n, r) {
204851
204873
  return i > 3 && a && Object.defineProperty(t, n, a), a;
204852
204874
  }, i5 = function(e, t) {
204853
204875
  if (typeof Reflect == "object" && typeof Reflect.metadata == "function") return Reflect.metadata(e, t);
204854
- }, a5 = class extends F(BN(t5)) {
204876
+ }, a5 = class extends F(fS(BN(t5))) {
204855
204877
  _inheritance = ax(this, { context: WU });
204856
204878
  _selectionClickSubscription;
204857
204879
  _table;
@@ -205312,7 +205334,7 @@ var aCe = function(e, t, n, r) {
205312
205334
  return i > 3 && a && Object.defineProperty(t, n, a), a;
205313
205335
  }, oCe = function(e, t) {
205314
205336
  if (typeof Reflect == "object" && typeof Reflect.metadata == "function") return Reflect.metadata(e, t);
205315
- }, s5 = class extends F(BN(o5)) {
205337
+ }, s5 = class extends F(fS(BN(o5))) {
205316
205338
  _inheritance = ax(this, { context: WU });
205317
205339
  _clickSubscription;
205318
205340
  _lastSelectionMode;
@@ -207084,6 +207106,7 @@ function CCe(e) {
207084
207106
  ?resizable="${e.resizable}"
207085
207107
  ?alternating="${e.alternating}"
207086
207108
  @columnsChanged="${e.onColumnsChanged}"
207109
+ @tableSelectionChanged="${(t) => e.onTableSelectionChanged(t)}"
207087
207110
  @tableChooseColumns="${() => e.openEditor()}">
207088
207111
  <slot name="caption" slot="caption"></slot>
207089
207112
  ${U(e.allColumnsHidden, () => V`
@@ -207136,10 +207159,12 @@ function CCe(e) {
207136
207159
  </mosaik-table-header>
207137
207160
  <mosaik-table-body>
207138
207161
  ${Qy(e.sortedSource, (e) => e, (t) => V`
207139
- <mosaik-table-body-row ?disabled="${e.disabled}">
207162
+ <mosaik-table-body-row .value="${t}"
207163
+ ?disabled="${e.disabled}">
207140
207164
  ${Qy(e.getColumns().filter((e) => !e.hidden), (e) => e.key, (n) => {
207141
207165
  let r = wCe(t, n);
207142
- return V`<mosaik-table-body-cell .text="${n.cellTemplate ? "" : r}"
207166
+ return V`<mosaik-table-body-cell .value="${r}"
207167
+ .text="${n.cellTemplate ? "" : r}"
207143
207168
  ?disabled="${e.disabled}">${U(n.cellTemplate, () => n.cellTemplate(t, n, r))}</mosaik-table-body-cell>`;
207144
207169
  })}
207145
207170
  </mosaik-table-body-row>
@@ -207531,6 +207556,9 @@ var h5 = function(e, t, n, r) {
207531
207556
  if (typeof Reflect == "object" && typeof Reflect.metadata == "function") return Reflect.metadata(e, t);
207532
207557
  }, _5 = class extends F(J(R(V8))) {
207533
207558
  _intl;
207559
+ _tableSelectionChanged;
207560
+ _dataTableEditorOpened;
207561
+ _dataTableEditorClosed;
207534
207562
  _alternating;
207535
207563
  _autoGenerateColumns;
207536
207564
  _caption;
@@ -207551,7 +207579,7 @@ var h5 = function(e, t, n, r) {
207551
207579
  _columnWidths;
207552
207580
  _suppressColumnsChanged;
207553
207581
  constructor() {
207554
- super(), this._intl = wI(this, { factory: () => new HU() }), this._alternating = !1, this._autoGenerateColumns = !1, this._caption = "", this._columnDefinitions = [], this._selectionType = VU.Row, this._selectionMode = BU.None, this._resizable = !1, this._sortable = !1, this._pinable = !1, this._hideable = !1, this._autoSizeable = !1, this._columnChoosable = !1, this._reorderable = !1, this._sortMode = "single", this._editorOpened = !1, this._sorted = !1, this._suppressColumnsChanged = !1, this._sortedSource = [], this._columnWidths = /* @__PURE__ */ new Map();
207582
+ super(), this._intl = wI(this, { factory: () => new HU() }), this._alternating = !1, this._autoGenerateColumns = !1, this._caption = "", this._columnDefinitions = [], this._selectionType = VU.Row, this._selectionMode = BU.None, this._resizable = !1, this._sortable = !1, this._pinable = !1, this._hideable = !1, this._autoSizeable = !1, this._columnChoosable = !1, this._reorderable = !1, this._sortMode = "single", this._editorOpened = !1, this._sorted = !1, this._suppressColumnsChanged = !1, this._sortedSource = [], this._columnWidths = /* @__PURE__ */ new Map(), this._tableSelectionChanged = new E(this, "tableSelectionChanged"), this._dataTableEditorOpened = new E(this, "dataTableEditorOpened"), this._dataTableEditorClosed = new E(this, "dataTableEditorClosed");
207555
207583
  }
207556
207584
  static get is() {
207557
207585
  return "mosaik-data-table";
@@ -207652,6 +207680,15 @@ var h5 = function(e, t, n, r) {
207652
207680
  get sortedSource() {
207653
207681
  return this._sorted ? this._sortedSource : this.source;
207654
207682
  }
207683
+ get tableSelectionChanged() {
207684
+ return this._tableSelectionChanged;
207685
+ }
207686
+ get dataTableEditorOpened() {
207687
+ return this._dataTableEditorOpened;
207688
+ }
207689
+ get dataTableEditorClosed() {
207690
+ return this._dataTableEditorClosed;
207691
+ }
207655
207692
  get allColumnsHidden() {
207656
207693
  let e = this.getColumns();
207657
207694
  return e.length > 0 && e.every((e) => e.hidden === !0);
@@ -207699,10 +207736,13 @@ var h5 = function(e, t, n, r) {
207699
207736
  key: e.key,
207700
207737
  title: e.title ?? e.key,
207701
207738
  visible: e.hidden !== !0
207702
- }))), this._editorOpened = !0, this.requestUpdate("editorOpened");
207739
+ }))), this._editorOpened = !0, this.requestUpdate("editorOpened"), this._dataTableEditorOpened.emit({});
207703
207740
  }
207704
207741
  closeEditor() {
207705
- this._editorOpened = !1, this.requestUpdate("editorOpened");
207742
+ this._editorOpened = !1, this.requestUpdate("editorOpened"), this._dataTableEditorClosed.emit({});
207743
+ }
207744
+ onTableSelectionChanged(e) {
207745
+ this._tableSelectionChanged.emit(e.detail);
207706
207746
  }
207707
207747
  applyColumnEditorChanges(e) {
207708
207748
  this._autoGenerateColumns &&= (this._columnDefinitions = this.getColumns(), !1), this.snapshotColumnWidthsFromDom();
@@ -207881,7 +207921,19 @@ h5([
207881
207921
  P({ type: Array }),
207882
207922
  g5("design:type", Array),
207883
207923
  g5("design:paramtypes", [])
207884
- ], _5.prototype, "sortedSource", null), _5 = h5([H({
207924
+ ], _5.prototype, "sortedSource", null), h5([
207925
+ k({ eventName: "tableSelectionChanged" }),
207926
+ g5("design:type", Object),
207927
+ g5("design:paramtypes", [])
207928
+ ], _5.prototype, "tableSelectionChanged", null), h5([
207929
+ k({ eventName: "dataTableEditorOpened" }),
207930
+ g5("design:type", Object),
207931
+ g5("design:paramtypes", [])
207932
+ ], _5.prototype, "dataTableEditorOpened", null), h5([
207933
+ k({ eventName: "dataTableEditorClosed" }),
207934
+ g5("design:type", Object),
207935
+ g5("design:paramtypes", [])
207936
+ ], _5.prototype, "dataTableEditorClosed", null), _5 = h5([H({
207885
207937
  selector: "mosaik-data-table",
207886
207938
  template: CCe,
207887
207939
  themes: {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@breadstone/mosaik-elements-svelte",
3
- "version": "0.0.241",
3
+ "version": "0.0.243",
4
4
  "description": "Mosaik elements for Svelte.",
5
5
  "license": "MIT",
6
6
  "author": "andre.wehlert <awehlert@breadstone.de> (https://www.breadstone.de)",
@@ -15,8 +15,8 @@
15
15
  "vite": "*"
16
16
  },
17
17
  "dependencies": {
18
- "@breadstone/mosaik-elements": "^0.0.241",
19
- "@breadstone/mosaik-elements-foundation": "^0.0.241"
18
+ "@breadstone/mosaik-elements": "^0.0.243",
19
+ "@breadstone/mosaik-elements-foundation": "^0.0.243"
20
20
  },
21
21
  "exports": {
22
22
  ".": {