@melodicdev/components 2.0.1 → 2.0.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.
@@ -830,10 +830,14 @@ var ComponentBase = class extends HTMLElement {
830
830
  }
831
831
  proto = Object.getPrototypeOf(proto);
832
832
  }
833
+ const getterOnly = [];
833
834
  const filtered = properties.filter((prop) => {
834
835
  if (prop.startsWith("_") || prop === "elementRef" || prop === "constructor") return false;
835
836
  const descriptor = this.getPropertyDescriptor(this._component, prop);
836
- if (descriptor && descriptor.get && !descriptor.set) return false;
837
+ if (descriptor && descriptor.get && !descriptor.set) {
838
+ getterOnly.push(prop);
839
+ return false;
840
+ }
837
841
  const value = this._component[prop];
838
842
  if (isSignal(value)) {
839
843
  this._reactiveSources.push(value);
@@ -885,6 +889,15 @@ var ComponentBase = class extends HTMLElement {
885
889
  configurable: true
886
890
  });
887
891
  }
892
+ for (const prop of getterOnly) {
893
+ if (Object.prototype.hasOwnProperty.call(this, prop)) continue;
894
+ Object.defineProperty(this, prop, {
895
+ get: () => this._component[prop],
896
+ set: () => {},
897
+ enumerable: true,
898
+ configurable: true
899
+ });
900
+ }
888
901
  }
889
902
  getPropertyDescriptor(target, prop) {
890
903
  let current = target;
@@ -14110,13 +14123,16 @@ const tableStyles = () => css`
14110
14123
  }
14111
14124
 
14112
14125
  /* ── Body rows ── */
14126
+ /* Divider rendered as an inset box-shadow (not border-bottom) so it never
14127
+ participates in layout — hover/selected/striped state changes can't
14128
+ collapse it and shift rows below by 1px. */
14113
14129
  .ml-table__row {
14114
- border-bottom: var(--ml-table-divider-width) solid var(--ml-table-divider-color);
14130
+ box-shadow: inset 0 calc(-1 * var(--ml-table-divider-width)) 0 var(--ml-table-divider-color);
14115
14131
  transition: background-color var(--ml-duration-150) var(--ml-ease-in-out);
14116
14132
  }
14117
14133
 
14118
14134
  .ml-table__row:last-child {
14119
- border-bottom: none;
14135
+ box-shadow: none;
14120
14136
  }
14121
14137
 
14122
14138
  .ml-table--hoverable .ml-table__row:hover {