@rozie-ui/data-table-lit 0.7.0 → 0.7.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.
package/dist/index.cjs CHANGED
@@ -4848,6 +4848,18 @@ let DataTable = class DataTable extends (0, _lit_labs_preact_signals.SignalWatch
4848
4848
  queueMicrotask(() => {
4849
4849
  if (this.isConnected || this._rozieTornDown) return;
4850
4850
  this._rozieTornDown = true;
4851
+ (() => {
4852
+ if (this.docPointerDown && typeof document !== "undefined") {
4853
+ document.removeEventListener("pointerdown", this.docPointerDown, true);
4854
+ this.docPointerDown = null;
4855
+ }
4856
+ if (this.virtualizerCleanup) this.virtualizerCleanup();
4857
+ if (this.colVirtualizerCleanup) this.colVirtualizerCleanup();
4858
+ this.teardownColRtlWatch();
4859
+ this.teardownRemeasure();
4860
+ this.teardownFillDrag();
4861
+ this.teardownRangeDrag();
4862
+ })();
4851
4863
  for (const fn of this._disconnectCleanups) fn();
4852
4864
  this._disconnectCleanups = [];
4853
4865
  });
@@ -5882,6 +5894,12 @@ ${this.groupable ? lit.html`<div class="rdt-group-bar-host" data-rozie-s-d5dcab4
5882
5894
  set columnPinning(v) {
5883
5895
  this._columnPinningControllable.notifyPropertyWrite(v);
5884
5896
  }
5897
+ addEventListener(type, listener, options) {
5898
+ super.addEventListener(type, listener, options);
5899
+ }
5900
+ removeEventListener(type, listener, options) {
5901
+ super.removeEventListener(type, listener, options);
5902
+ }
5885
5903
  };
5886
5904
  __decorate([(0, lit_decorators_js.property)({
5887
5905
  type: Array,
@@ -5890,7 +5908,8 @@ __decorate([(0, lit_decorators_js.property)({
5890
5908
  __decorate([(0, lit_decorators_js.property)({ type: Array })], DataTable.prototype, "columns", void 0);
5891
5909
  __decorate([(0, lit_decorators_js.property)({
5892
5910
  type: String,
5893
- reflect: true
5911
+ reflect: true,
5912
+ attribute: "selection-mode"
5894
5913
  })], DataTable.prototype, "selectionMode", void 0);
5895
5914
  __decorate([(0, lit_decorators_js.property)({
5896
5915
  type: Array,
@@ -5914,11 +5933,13 @@ __decorate([(0, lit_decorators_js.property)({
5914
5933
  })], DataTable.prototype, "manual", void 0);
5915
5934
  __decorate([(0, lit_decorators_js.property)({
5916
5935
  type: Number,
5917
- reflect: true
5936
+ reflect: true,
5937
+ attribute: "row-count"
5918
5938
  })], DataTable.prototype, "rowCount", void 0);
5919
5939
  __decorate([(0, lit_decorators_js.property)({
5920
5940
  type: Number,
5921
- reflect: true
5941
+ reflect: true,
5942
+ attribute: "page-count"
5922
5943
  })], DataTable.prototype, "pageCount", void 0);
5923
5944
  __decorate([(0, lit_decorators_js.property)({
5924
5945
  type: Boolean,
@@ -5928,8 +5949,14 @@ __decorate([(0, lit_decorators_js.property)({
5928
5949
  type: Object,
5929
5950
  attribute: "expanded"
5930
5951
  })], DataTable.prototype, "_expanded_attr", void 0);
5931
- __decorate([(0, lit_decorators_js.property)({ type: Function })], DataTable.prototype, "getRowId", void 0);
5932
- __decorate([(0, lit_decorators_js.property)({ type: Function })], DataTable.prototype, "getSubRows", void 0);
5952
+ __decorate([(0, lit_decorators_js.property)({
5953
+ type: Function,
5954
+ attribute: "get-row-id"
5955
+ })], DataTable.prototype, "getRowId", void 0);
5956
+ __decorate([(0, lit_decorators_js.property)({
5957
+ type: Function,
5958
+ attribute: "get-sub-rows"
5959
+ })], DataTable.prototype, "getSubRows", void 0);
5933
5960
  __decorate([(0, lit_decorators_js.property)({
5934
5961
  type: Boolean,
5935
5962
  reflect: true
@@ -5960,15 +5987,18 @@ __decorate([(0, lit_decorators_js.property)({
5960
5987
  })], DataTable.prototype, "_columnPinning_attr", void 0);
5961
5988
  __decorate([(0, lit_decorators_js.property)({
5962
5989
  type: Boolean,
5963
- reflect: true
5990
+ reflect: true,
5991
+ attribute: "sticky-header"
5964
5992
  })], DataTable.prototype, "stickyHeader", void 0);
5965
5993
  __decorate([(0, lit_decorators_js.property)({
5966
5994
  type: String,
5967
- reflect: true
5995
+ reflect: true,
5996
+ attribute: "interaction-mode"
5968
5997
  })], DataTable.prototype, "interactionMode", void 0);
5969
5998
  __decorate([(0, lit_decorators_js.property)({
5970
5999
  type: Boolean,
5971
- reflect: true
6000
+ reflect: true,
6001
+ attribute: "single-click-edit"
5972
6002
  })], DataTable.prototype, "singleClickEdit", void 0);
5973
6003
  __decorate([(0, lit_decorators_js.property)({
5974
6004
  type: Boolean,
@@ -5976,20 +6006,24 @@ __decorate([(0, lit_decorators_js.property)({
5976
6006
  })], DataTable.prototype, "undoable", void 0);
5977
6007
  __decorate([(0, lit_decorators_js.property)({
5978
6008
  type: Number,
5979
- reflect: true
6009
+ reflect: true,
6010
+ attribute: "undo-limit"
5980
6011
  })], DataTable.prototype, "undoLimit", void 0);
5981
6012
  __decorate([(0, lit_decorators_js.property)({ converter: { fromAttribute: (v) => v === null ? false : v === "true" ? true : v === "false" ? false : v === "" ? true : v } })], DataTable.prototype, "virtual", void 0);
5982
6013
  __decorate([(0, lit_decorators_js.property)({
5983
6014
  type: Number,
5984
- reflect: true
6015
+ reflect: true,
6016
+ attribute: "estimate-row-height"
5985
6017
  })], DataTable.prototype, "estimateRowHeight", void 0);
5986
6018
  __decorate([(0, lit_decorators_js.property)({
5987
6019
  type: Boolean,
5988
- reflect: true
6020
+ reflect: true,
6021
+ attribute: "auto-measure"
5989
6022
  })], DataTable.prototype, "autoMeasure", void 0);
5990
6023
  __decorate([(0, lit_decorators_js.property)({
5991
6024
  type: String,
5992
- reflect: true
6025
+ reflect: true,
6026
+ attribute: "max-height"
5993
6027
  })], DataTable.prototype, "maxHeight", void 0);
5994
6028
  __decorate([(0, lit_decorators_js.query)("[data-rozie-ref=\"__rozieRoot\"]")], DataTable.prototype, "_ref__rozieRoot", void 0);
5995
6029
  __decorate([(0, lit_decorators_js.state)()], DataTable.prototype, "_hasSlotDefault", void 0);
@@ -6179,7 +6213,7 @@ __decorate([(0, lit_decorators_js.property)({
6179
6213
  type: String,
6180
6214
  reflect: true
6181
6215
  })], Column.prototype, "pinned", void 0);
6182
- __decorate([(0, lit_decorators_js.property)({ type: String })], Column.prototype, "width", void 0);
6216
+ __decorate([(0, lit_decorators_js.property)({ converter: { fromAttribute: _rozie_runtime_lit.rozieNumberOrStringAttr } })], Column.prototype, "width", void 0);
6183
6217
  __decorate([(0, lit_decorators_js.property)({
6184
6218
  type: Boolean,
6185
6219
  reflect: true
@@ -6188,7 +6222,10 @@ __decorate([(0, lit_decorators_js.property)({
6188
6222
  type: Boolean,
6189
6223
  reflect: true
6190
6224
  })], Column.prototype, "groupable", void 0);
6191
- __decorate([(0, lit_decorators_js.property)({ type: String })], Column.prototype, "aggregationFn", void 0);
6225
+ __decorate([(0, lit_decorators_js.property)({
6226
+ type: String,
6227
+ attribute: "aggregation-fn"
6228
+ })], Column.prototype, "aggregationFn", void 0);
6192
6229
  __decorate([(0, lit_decorators_js.property)({
6193
6230
  type: Boolean,
6194
6231
  reflect: true
@@ -6197,7 +6234,10 @@ __decorate([(0, lit_decorators_js.property)({
6197
6234
  type: String,
6198
6235
  reflect: true
6199
6236
  })], Column.prototype, "editor", void 0);
6200
- __decorate([(0, lit_decorators_js.property)({ type: Array })], Column.prototype, "editorOptions", void 0);
6237
+ __decorate([(0, lit_decorators_js.property)({
6238
+ type: Array,
6239
+ attribute: "editor-options"
6240
+ })], Column.prototype, "editorOptions", void 0);
6201
6241
  __decorate([(0, lit_decorators_js.property)({ type: Function })], Column.prototype, "validate", void 0);
6202
6242
  Column = __decorate([(0, lit_decorators_js.customElement)("rozie-column")], Column);
6203
6243
  var Column_default = Column;
@@ -6284,7 +6324,8 @@ let EditorText = class EditorText extends (0, _lit_labs_preact_signals.SignalWat
6284
6324
  };
6285
6325
  __decorate([(0, lit_decorators_js.property)({
6286
6326
  type: String,
6287
- reflect: true
6327
+ reflect: true,
6328
+ attribute: "column-id"
6288
6329
  })], EditorText.prototype, "columnId", void 0);
6289
6330
  __decorate([(0, lit_decorators_js.property)({ type: Object })], EditorText.prototype, "column", void 0);
6290
6331
  __decorate([(0, lit_decorators_js.property)({ type: Object })], EditorText.prototype, "row", void 0);
@@ -6297,7 +6338,8 @@ __decorate([(0, lit_decorators_js.property)({
6297
6338
  })], EditorText.prototype, "autofocus", void 0);
6298
6339
  __decorate([(0, lit_decorators_js.property)({
6299
6340
  type: String,
6300
- reflect: true
6341
+ reflect: true,
6342
+ attribute: "column-label"
6301
6343
  })], EditorText.prototype, "columnLabel", void 0);
6302
6344
  __decorate([(0, lit_decorators_js.query)("[data-rozie-ref=\"inputEl\"]")], EditorText.prototype, "_refInputEl", void 0);
6303
6345
  EditorText = __decorate([(0, lit_decorators_js.customElement)("rozie-editor-text")], EditorText);
@@ -6392,7 +6434,8 @@ let EditorNumber = class EditorNumber extends (0, _lit_labs_preact_signals.Signa
6392
6434
  };
6393
6435
  __decorate([(0, lit_decorators_js.property)({
6394
6436
  type: String,
6395
- reflect: true
6437
+ reflect: true,
6438
+ attribute: "column-id"
6396
6439
  })], EditorNumber.prototype, "columnId", void 0);
6397
6440
  __decorate([(0, lit_decorators_js.property)({ type: Object })], EditorNumber.prototype, "column", void 0);
6398
6441
  __decorate([(0, lit_decorators_js.property)({ type: Object })], EditorNumber.prototype, "row", void 0);
@@ -6405,7 +6448,8 @@ __decorate([(0, lit_decorators_js.property)({
6405
6448
  })], EditorNumber.prototype, "autofocus", void 0);
6406
6449
  __decorate([(0, lit_decorators_js.property)({
6407
6450
  type: String,
6408
- reflect: true
6451
+ reflect: true,
6452
+ attribute: "column-label"
6409
6453
  })], EditorNumber.prototype, "columnLabel", void 0);
6410
6454
  __decorate([(0, lit_decorators_js.query)("[data-rozie-ref=\"inputEl\"]")], EditorNumber.prototype, "_refInputEl", void 0);
6411
6455
  EditorNumber = __decorate([(0, lit_decorators_js.customElement)("rozie-editor-number")], EditorNumber);
@@ -6496,7 +6540,8 @@ let EditorSelect = class EditorSelect extends (0, _lit_labs_preact_signals.Signa
6496
6540
  };
6497
6541
  __decorate([(0, lit_decorators_js.property)({
6498
6542
  type: String,
6499
- reflect: true
6543
+ reflect: true,
6544
+ attribute: "column-id"
6500
6545
  })], EditorSelect.prototype, "columnId", void 0);
6501
6546
  __decorate([(0, lit_decorators_js.property)({ type: Object })], EditorSelect.prototype, "column", void 0);
6502
6547
  __decorate([(0, lit_decorators_js.property)({ type: Object })], EditorSelect.prototype, "row", void 0);
@@ -6510,7 +6555,8 @@ __decorate([(0, lit_decorators_js.property)({
6510
6555
  })], EditorSelect.prototype, "autofocus", void 0);
6511
6556
  __decorate([(0, lit_decorators_js.property)({
6512
6557
  type: String,
6513
- reflect: true
6558
+ reflect: true,
6559
+ attribute: "column-label"
6514
6560
  })], EditorSelect.prototype, "columnLabel", void 0);
6515
6561
  __decorate([(0, lit_decorators_js.query)("[data-rozie-ref=\"selectEl\"]")], EditorSelect.prototype, "_refSelectEl", void 0);
6516
6562
  EditorSelect = __decorate([(0, lit_decorators_js.customElement)("rozie-editor-select")], EditorSelect);
@@ -6580,7 +6626,8 @@ let EditorCheckbox = class EditorCheckbox extends (0, _lit_labs_preact_signals.S
6580
6626
  };
6581
6627
  __decorate([(0, lit_decorators_js.property)({
6582
6628
  type: String,
6583
- reflect: true
6629
+ reflect: true,
6630
+ attribute: "column-id"
6584
6631
  })], EditorCheckbox.prototype, "columnId", void 0);
6585
6632
  __decorate([(0, lit_decorators_js.property)({ type: Object })], EditorCheckbox.prototype, "column", void 0);
6586
6633
  __decorate([(0, lit_decorators_js.property)({ type: Object })], EditorCheckbox.prototype, "row", void 0);
@@ -6593,7 +6640,8 @@ __decorate([(0, lit_decorators_js.property)({
6593
6640
  })], EditorCheckbox.prototype, "autofocus", void 0);
6594
6641
  __decorate([(0, lit_decorators_js.property)({
6595
6642
  type: String,
6596
- reflect: true
6643
+ reflect: true,
6644
+ attribute: "column-label"
6597
6645
  })], EditorCheckbox.prototype, "columnLabel", void 0);
6598
6646
  __decorate([(0, lit_decorators_js.query)("[data-rozie-ref=\"inputEl\"]")], EditorCheckbox.prototype, "_refInputEl", void 0);
6599
6647
  EditorCheckbox = __decorate([(0, lit_decorators_js.customElement)("rozie-editor-checkbox")], EditorCheckbox);
@@ -6720,7 +6768,8 @@ let EditorDate = class EditorDate extends (0, _lit_labs_preact_signals.SignalWat
6720
6768
  };
6721
6769
  __decorate([(0, lit_decorators_js.property)({
6722
6770
  type: String,
6723
- reflect: true
6771
+ reflect: true,
6772
+ attribute: "column-id"
6724
6773
  })], EditorDate.prototype, "columnId", void 0);
6725
6774
  __decorate([(0, lit_decorators_js.property)({ type: Object })], EditorDate.prototype, "column", void 0);
6726
6775
  __decorate([(0, lit_decorators_js.property)({ type: Object })], EditorDate.prototype, "row", void 0);
@@ -6733,7 +6782,8 @@ __decorate([(0, lit_decorators_js.property)({
6733
6782
  })], EditorDate.prototype, "autofocus", void 0);
6734
6783
  __decorate([(0, lit_decorators_js.property)({
6735
6784
  type: String,
6736
- reflect: true
6785
+ reflect: true,
6786
+ attribute: "column-label"
6737
6787
  })], EditorDate.prototype, "columnLabel", void 0);
6738
6788
  __decorate([(0, lit_decorators_js.query)("[data-rozie-ref=\"inputEl\"]")], EditorDate.prototype, "_refInputEl", void 0);
6739
6789
  EditorDate = __decorate([(0, lit_decorators_js.customElement)("rozie-editor-date")], EditorDate);
@@ -6818,14 +6868,19 @@ let FilterText = class FilterText extends (0, _lit_labs_preact_signals.SignalWat
6818
6868
  };
6819
6869
  __decorate([(0, lit_decorators_js.property)({
6820
6870
  type: String,
6821
- reflect: true
6871
+ reflect: true,
6872
+ attribute: "column-id"
6822
6873
  })], FilterText.prototype, "columnId", void 0);
6823
6874
  __decorate([(0, lit_decorators_js.property)({ type: Object })], FilterText.prototype, "column", void 0);
6824
6875
  __decorate([(0, lit_decorators_js.property)({ type: Object })], FilterText.prototype, "value", void 0);
6825
- __decorate([(0, lit_decorators_js.property)({ type: Function })], FilterText.prototype, "setFilter", void 0);
6876
+ __decorate([(0, lit_decorators_js.property)({
6877
+ type: Function,
6878
+ attribute: "set-filter"
6879
+ })], FilterText.prototype, "setFilter", void 0);
6826
6880
  __decorate([(0, lit_decorators_js.property)({
6827
6881
  type: String,
6828
- reflect: true
6882
+ reflect: true,
6883
+ attribute: "column-label"
6829
6884
  })], FilterText.prototype, "columnLabel", void 0);
6830
6885
  FilterText = __decorate([(0, lit_decorators_js.customElement)("rozie-filter-text")], FilterText);
6831
6886
  var FilterText_default = FilterText;
@@ -6925,15 +6980,23 @@ let FilterNumberRange = class FilterNumberRange extends (0, _lit_labs_preact_sig
6925
6980
  };
6926
6981
  __decorate([(0, lit_decorators_js.property)({
6927
6982
  type: String,
6928
- reflect: true
6983
+ reflect: true,
6984
+ attribute: "column-id"
6929
6985
  })], FilterNumberRange.prototype, "columnId", void 0);
6930
6986
  __decorate([(0, lit_decorators_js.property)({ type: Object })], FilterNumberRange.prototype, "column", void 0);
6931
6987
  __decorate([(0, lit_decorators_js.property)({ type: Object })], FilterNumberRange.prototype, "value", void 0);
6932
- __decorate([(0, lit_decorators_js.property)({ type: Function })], FilterNumberRange.prototype, "setFilter", void 0);
6933
- __decorate([(0, lit_decorators_js.property)({ type: Object })], FilterNumberRange.prototype, "minMax", void 0);
6988
+ __decorate([(0, lit_decorators_js.property)({
6989
+ type: Function,
6990
+ attribute: "set-filter"
6991
+ })], FilterNumberRange.prototype, "setFilter", void 0);
6992
+ __decorate([(0, lit_decorators_js.property)({
6993
+ type: Object,
6994
+ attribute: "min-max"
6995
+ })], FilterNumberRange.prototype, "minMax", void 0);
6934
6996
  __decorate([(0, lit_decorators_js.property)({
6935
6997
  type: String,
6936
- reflect: true
6998
+ reflect: true,
6999
+ attribute: "column-label"
6937
7000
  })], FilterNumberRange.prototype, "columnLabel", void 0);
6938
7001
  FilterNumberRange = __decorate([(0, lit_decorators_js.customElement)("rozie-filter-number-range")], FilterNumberRange);
6939
7002
  var FilterNumberRange_default = FilterNumberRange;
@@ -6988,15 +7051,23 @@ let FilterSelect = class FilterSelect extends (0, _lit_labs_preact_signals.Signa
6988
7051
  };
6989
7052
  __decorate([(0, lit_decorators_js.property)({
6990
7053
  type: String,
6991
- reflect: true
7054
+ reflect: true,
7055
+ attribute: "column-id"
6992
7056
  })], FilterSelect.prototype, "columnId", void 0);
6993
7057
  __decorate([(0, lit_decorators_js.property)({ type: Object })], FilterSelect.prototype, "column", void 0);
6994
7058
  __decorate([(0, lit_decorators_js.property)({ type: Object })], FilterSelect.prototype, "value", void 0);
6995
- __decorate([(0, lit_decorators_js.property)({ type: Function })], FilterSelect.prototype, "setFilter", void 0);
6996
- __decorate([(0, lit_decorators_js.property)({ type: Array })], FilterSelect.prototype, "uniqueValues", void 0);
7059
+ __decorate([(0, lit_decorators_js.property)({
7060
+ type: Function,
7061
+ attribute: "set-filter"
7062
+ })], FilterSelect.prototype, "setFilter", void 0);
7063
+ __decorate([(0, lit_decorators_js.property)({
7064
+ type: Array,
7065
+ attribute: "unique-values"
7066
+ })], FilterSelect.prototype, "uniqueValues", void 0);
6997
7067
  __decorate([(0, lit_decorators_js.property)({
6998
7068
  type: String,
6999
- reflect: true
7069
+ reflect: true,
7070
+ attribute: "column-label"
7000
7071
  })], FilterSelect.prototype, "columnLabel", void 0);
7001
7072
  FilterSelect = __decorate([(0, lit_decorators_js.customElement)("rozie-filter-select")], FilterSelect);
7002
7073
  var FilterSelect_default = FilterSelect;
@@ -7251,9 +7322,18 @@ let GroupBar = class GroupBar extends (0, _lit_labs_preact_signals.SignalWatcher
7251
7322
  }
7252
7323
  };
7253
7324
  __decorate([(0, lit_decorators_js.property)({ type: Array })], GroupBar.prototype, "grouping", void 0);
7254
- __decorate([(0, lit_decorators_js.property)({ type: Array })], GroupBar.prototype, "groupableColumns", void 0);
7255
- __decorate([(0, lit_decorators_js.property)({ type: Function })], GroupBar.prototype, "applyGrouping", void 0);
7256
- __decorate([(0, lit_decorators_js.property)({ type: Function })], GroupBar.prototype, "clearGrouping", void 0);
7325
+ __decorate([(0, lit_decorators_js.property)({
7326
+ type: Array,
7327
+ attribute: "groupable-columns"
7328
+ })], GroupBar.prototype, "groupableColumns", void 0);
7329
+ __decorate([(0, lit_decorators_js.property)({
7330
+ type: Function,
7331
+ attribute: "apply-grouping"
7332
+ })], GroupBar.prototype, "applyGrouping", void 0);
7333
+ __decorate([(0, lit_decorators_js.property)({
7334
+ type: Function,
7335
+ attribute: "clear-grouping"
7336
+ })], GroupBar.prototype, "clearGrouping", void 0);
7257
7337
  GroupBar = __decorate([(0, lit_decorators_js.customElement)("rozie-group-bar")], GroupBar);
7258
7338
  var GroupBar_default = GroupBar;
7259
7339
  //#endregion