@ctrliq/quantic-components 1.61.0 → 1.61.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.
@@ -55195,7 +55195,15 @@
55195
55195
  this.invalid = false;
55196
55196
  this.lineNumbers = false;
55197
55197
  this.stretch = false;
55198
+ this.tabIndent = false;
55198
55199
  this.lineCount = 1;
55200
+ this.handleKeydown = (e) => {
55201
+ if (this.tabIndent && e.key === 'Tab' && !this.disabled && !this.readOnly) {
55202
+ e.preventDefault();
55203
+ document.execCommand('insertText', false, '\t');
55204
+ }
55205
+ this.forwardNative(e);
55206
+ };
55199
55207
  this.internals = this.attachInternals();
55200
55208
  }
55201
55209
  updated(changedProperties) {
@@ -55309,7 +55317,7 @@
55309
55317
  @change=${this.forwardNative}
55310
55318
  @focus=${this.forwardNative}
55311
55319
  @blur=${this.forwardNative}
55312
- @keydown=${this.forwardNative}
55320
+ @keydown=${this.handleKeydown}
55313
55321
  @keyup=${this.forwardNative}
55314
55322
  @keypress=${this.forwardNative}
55315
55323
  @scroll=${this.handleScroll}
@@ -55560,6 +55568,9 @@
55560
55568
  __decorate([
55561
55569
  prop({ type: 'boolean', default: 'false', reflect: true, description: 'Makes the editor fill the height of its container. Overrides rows.' })
55562
55570
  ], exports.CodeInput.prototype, "stretch", void 0);
55571
+ __decorate([
55572
+ prop({ type: 'boolean', default: 'false', reflect: true, description: 'Inserts a tab character when pressing Tab instead of moving focus. Disabled by default to preserve keyboard navigation.', attribute: 'tab-indent' })
55573
+ ], exports.CodeInput.prototype, "tabIndent", void 0);
55563
55574
  __decorate([
55564
55575
  e$5('.line-numbers')
55565
55576
  ], exports.CodeInput.prototype, "lineNumbersEl", void 0);
@@ -55616,8 +55627,10 @@
55616
55627
  const input = this.renderRoot.querySelector('input');
55617
55628
  if (input) {
55618
55629
  input.indeterminate = this.indeterminate;
55630
+ if (args.has('checked')) {
55631
+ input.checked = this.checked;
55632
+ }
55619
55633
  }
55620
- // Sync form value when checked changes
55621
55634
  if (args.has('checked')) {
55622
55635
  this.internals.setFormValue(this.checked ? 'on' : null);
55623
55636
  }