cloud-ide-element 1.1.131 → 1.1.132

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.
@@ -14667,13 +14667,11 @@ class CideEleJsonEditorComponent {
14667
14667
  label;
14668
14668
  helperText;
14669
14669
  required = false;
14670
- set disabled(value) {
14671
- this._disabledSignal = value;
14672
- }
14673
- get disabled() {
14674
- return this._disabledSignal;
14675
- }
14676
- _disabledSignal = signal(false, ...(ngDevMode ? [{ debugName: "_disabledSignal" }] : []));
14670
+ disabled = input(false, ...(ngDevMode ? [{ debugName: "disabled" }] : []));
14671
+ // Internal writable signal for ControlValueAccessor setDisabledState
14672
+ _disabledInternal = signal(false, ...(ngDevMode ? [{ debugName: "_disabledInternal" }] : []));
14673
+ // Computed signal that combines input and internal state (if either is true, component is disabled)
14674
+ disabledInput = computed(() => this._disabledInternal() || this.disabled(), ...(ngDevMode ? [{ debugName: "disabledInput" }] : []));
14677
14675
  showCharacterCount = false;
14678
14676
  config = {};
14679
14677
  configSignal = signal({}, ...(ngDevMode ? [{ debugName: "configSignal" }] : []));
@@ -14700,7 +14698,7 @@ class CideEleJsonEditorComponent {
14700
14698
  }, ...(ngDevMode ? [{ debugName: "lineNumbers" }] : []));
14701
14699
  containerClass = computed(() => {
14702
14700
  const classes = ['tw-w-full'];
14703
- if (this.disabled()) {
14701
+ if (this.disabledInput()) {
14704
14702
  classes.push('tw-opacity-50');
14705
14703
  }
14706
14704
  return classes.join(' ');
@@ -14919,12 +14917,12 @@ class CideEleJsonEditorComponent {
14919
14917
  this.onTouched = fn;
14920
14918
  }
14921
14919
  setDisabledState(isDisabled) {
14922
- this.disabled.set(isDisabled);
14920
+ this._disabledInternal.set(isDisabled);
14923
14921
  }
14924
14922
  onChange = () => { };
14925
14923
  onTouched = () => { };
14926
14924
  static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.15", ngImport: i0, type: CideEleJsonEditorComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
14927
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.3.15", type: CideEleJsonEditorComponent, isStandalone: true, selector: "cide-ele-json-editor", inputs: { label: "label", helperText: "helperText", required: "required", disabled: "disabled", showCharacterCount: "showCharacterCount", config: "config" }, outputs: { valueChange: "valueChange", objectChange: "objectChange", errorsChange: "errorsChange", validChange: "validChange" }, providers: [
14925
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.3.15", type: CideEleJsonEditorComponent, isStandalone: true, selector: "cide-ele-json-editor", inputs: { label: { classPropertyName: "label", publicName: "label", isSignal: false, isRequired: false, transformFunction: null }, helperText: { classPropertyName: "helperText", publicName: "helperText", isSignal: false, isRequired: false, transformFunction: null }, required: { classPropertyName: "required", publicName: "required", isSignal: false, isRequired: false, transformFunction: null }, disabled: { classPropertyName: "disabled", publicName: "disabled", isSignal: true, isRequired: false, transformFunction: null }, showCharacterCount: { classPropertyName: "showCharacterCount", publicName: "showCharacterCount", isSignal: false, isRequired: false, transformFunction: null }, config: { classPropertyName: "config", publicName: "config", isSignal: false, isRequired: false, transformFunction: null } }, outputs: { valueChange: "valueChange", objectChange: "objectChange", errorsChange: "errorsChange", validChange: "validChange" }, providers: [
14928
14926
  {
14929
14927
  provide: NG_VALUE_ACCESSOR,
14930
14928
  useExisting: forwardRef(() => CideEleJsonEditorComponent),
@@ -14953,8 +14951,8 @@ class CideEleJsonEditorComponent {
14953
14951
  [class.tw-focus-within:tw-border-blue-500]="!hasErrors()"
14954
14952
  [class.tw-focus-within:tw-ring-1]="!hasErrors()"
14955
14953
  [class.tw-focus-within:tw-ring-blue-500]="!hasErrors()"
14956
- [class.tw-opacity-50]="disabled()"
14957
- [class.tw-cursor-not-allowed]="disabled()">
14954
+ [class.tw-opacity-50]="disabledInput()"
14955
+ [class.tw-cursor-not-allowed]="disabledInput()">
14958
14956
 
14959
14957
  <!-- Line Numbers -->
14960
14958
  @if (configSignal().showLineNumbers) {
@@ -14984,8 +14982,8 @@ class CideEleJsonEditorComponent {
14984
14982
  (input)="onInput($event)"
14985
14983
  (blur)="onBlur()"
14986
14984
  [placeholder]="configSignal().placeholder || 'Enter JSON configuration...'"
14987
- [readonly]="configSignal().readOnly || disabled()"
14988
- [disabled]="disabled()"
14985
+ [readonly]="configSignal().readOnly || disabledInput()"
14986
+ [disabled]="disabledInput()"
14989
14987
  class="tw-w-full tw-p-3 tw-text-sm tw-font-mono tw-leading-relaxed tw-resize-none tw-outline-none tw-bg-transparent"
14990
14988
  [class.tw-pl-12]="configSignal().showLineNumbers"
14991
14989
  [class.tw-text-gray-900]="configSignal().theme === 'light'"
@@ -14998,7 +14996,7 @@ class CideEleJsonEditorComponent {
14998
14996
  </textarea>
14999
14997
 
15000
14998
  <!-- Format Button -->
15001
- @if (!configSignal().readOnly && !disabled()) {
14999
+ @if (!configSignal().readOnly && !disabledInput()) {
15002
15000
  <button
15003
15001
  type="button"
15004
15002
  (click)="formatJson()"
@@ -15068,8 +15066,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.15", ngImpo
15068
15066
  [class.tw-focus-within:tw-border-blue-500]="!hasErrors()"
15069
15067
  [class.tw-focus-within:tw-ring-1]="!hasErrors()"
15070
15068
  [class.tw-focus-within:tw-ring-blue-500]="!hasErrors()"
15071
- [class.tw-opacity-50]="disabled()"
15072
- [class.tw-cursor-not-allowed]="disabled()">
15069
+ [class.tw-opacity-50]="disabledInput()"
15070
+ [class.tw-cursor-not-allowed]="disabledInput()">
15073
15071
 
15074
15072
  <!-- Line Numbers -->
15075
15073
  @if (configSignal().showLineNumbers) {
@@ -15099,8 +15097,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.15", ngImpo
15099
15097
  (input)="onInput($event)"
15100
15098
  (blur)="onBlur()"
15101
15099
  [placeholder]="configSignal().placeholder || 'Enter JSON configuration...'"
15102
- [readonly]="configSignal().readOnly || disabled()"
15103
- [disabled]="disabled()"
15100
+ [readonly]="configSignal().readOnly || disabledInput()"
15101
+ [disabled]="disabledInput()"
15104
15102
  class="tw-w-full tw-p-3 tw-text-sm tw-font-mono tw-leading-relaxed tw-resize-none tw-outline-none tw-bg-transparent"
15105
15103
  [class.tw-pl-12]="configSignal().showLineNumbers"
15106
15104
  [class.tw-text-gray-900]="configSignal().theme === 'light'"
@@ -15113,7 +15111,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.15", ngImpo
15113
15111
  </textarea>
15114
15112
 
15115
15113
  <!-- Format Button -->
15116
- @if (!configSignal().readOnly && !disabled()) {
15114
+ @if (!configSignal().readOnly && !disabledInput()) {
15117
15115
  <button
15118
15116
  type="button"
15119
15117
  (click)="formatJson()"
@@ -15169,9 +15167,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.15", ngImpo
15169
15167
  type: Input
15170
15168
  }], required: [{
15171
15169
  type: Input
15172
- }], disabled: [{
15173
- type: Input
15174
- }], showCharacterCount: [{
15170
+ }], disabled: [{ type: i0.Input, args: [{ isSignal: true, alias: "disabled", required: false }] }], showCharacterCount: [{
15175
15171
  type: Input
15176
15172
  }], config: [{
15177
15173
  type: Input