@rozie-ui/data-table-lit 0.7.1 → 0.7.3

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.
@@ -36,7 +36,9 @@ export default class FilterNumberRange extends SignalWatcher(LitElement) {
36
36
  private _minDraft = signal('');
37
37
  private _maxDraft = signal('');
38
38
  private _touched = signal(false);
39
+ private __rozieWatchPrev_0: unknown;
39
40
  private __rozieWatchInitial_0 = true;
41
+ private __rozieFirstUpdateDone = false;
40
42
 
41
43
  private _disconnectCleanups: Array<() => void> = [];
42
44
  // Re-parenting guard: set true once the deferred teardown has actually
@@ -44,11 +46,18 @@ private __rozieWatchInitial_0 = true;
44
46
  private _rozieTornDown = false;
45
47
 
46
48
  firstUpdated(): void {
47
- this._disconnectCleanups.push(effect(() => { const __watchVal = (() => Array.isArray(this.value) ? String(this.value[0]) + '\u0000' + String(this.value[1]) : '')(); untracked(() => { if (this.__rozieWatchInitial_0) { this.__rozieWatchInitial_0 = false; return; } (() => {
49
+ this._disconnectCleanups.push(effect(() => { const __watchVal = (() => Array.isArray(this.value) ? String(this.value[0]) + '\u0000' + String(this.value[1]) : '')(); untracked(() => { this.__rozieWatchPrev_0 = __watchVal; if (this.__rozieWatchInitial_0) { this.__rozieWatchInitial_0 = false; return; } (() => {
48
50
  this._touched.value = false;
49
51
  })(); }); }));
50
52
  }
51
53
 
54
+ updated(changedProperties: Map<string, unknown>): void {
55
+ if (this.__rozieFirstUpdateDone && (changedProperties.has('value'))) { const __watchVal = untracked(() => Array.isArray(this.value) ? String(this.value[0]) + '\u0000' + String(this.value[1]) : ''); if (!Object.is(__watchVal, this.__rozieWatchPrev_0)) { this.__rozieWatchPrev_0 = __watchVal; untracked(() => (() => {
56
+ this._touched.value = false;
57
+ })()); } }
58
+ this.__rozieFirstUpdateDone = true;
59
+ }
60
+
52
61
  disconnectedCallback(): void {
53
62
  super.disconnectedCallback();
54
63
  queueMicrotask(() => {
package/src/index.ts CHANGED
@@ -11,3 +11,5 @@ export { default as FilterNumberRange } from './FilterNumberRange';
11
11
  export { default as FilterSelect } from './FilterSelect';
12
12
  export { default as GroupBar } from './GroupBar';
13
13
  export { default as DetailPanel } from './DetailPanel';
14
+ export type { RozieDataTableEventMap } from './DataTable';
15
+ export type * from './DataTable';