@fuentis/phoenix-ui 0.0.9-alpha.547 → 0.0.9-alpha.548

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.
@@ -8531,10 +8531,9 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImpo
8531
8531
  }] } });
8532
8532
 
8533
8533
  class MetaCheckboxColorPickerV2Component {
8534
- /** 2D grid boja, npr. [['#ff0000','#00ff00'],['#0000ff','#ffff00']] */
8535
8534
  options = [];
8536
- /** optional hard-disable from parent */
8537
8535
  disable = false;
8536
+ cdr = inject(ChangeDetectorRef);
8538
8537
  value = null;
8539
8538
  focusedColor = null;
8540
8539
  isDisabled = false;
@@ -8544,6 +8543,7 @@ class MetaCheckboxColorPickerV2Component {
8544
8543
  writeValue(v) {
8545
8544
  this.value = v ?? null;
8546
8545
  this.focusedColor = this.value;
8546
+ this.cdr.markForCheck();
8547
8547
  }
8548
8548
  registerOnChange(fn) {
8549
8549
  this.onChange = fn;
@@ -8553,6 +8553,7 @@ class MetaCheckboxColorPickerV2Component {
8553
8553
  }
8554
8554
  setDisabledState(isDisabled) {
8555
8555
  this.isDisabled = isDisabled;
8556
+ this.cdr.markForCheck();
8556
8557
  }
8557
8558
  get disabled() {
8558
8559
  return this.disable || this.isDisabled;
@@ -8571,6 +8572,7 @@ class MetaCheckboxColorPickerV2Component {
8571
8572
  this.value = color;
8572
8573
  this.onChange(color);
8573
8574
  this.onTouched();
8575
+ this.cdr.markForCheck();
8574
8576
  popover.hide();
8575
8577
  }
8576
8578
  static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: MetaCheckboxColorPickerV2Component, deps: [], target: i0.ɵɵFactoryTarget.Component });
@@ -8610,17 +8612,23 @@ class MetaCheckboxColorPickerV2Component {
8610
8612
  (click)="toggle(popover, $event)"
8611
8613
  aria-label="Select color"
8612
8614
  ></button>
8613
- `, isInline: true, styles: [":host ::ng-deep .p-popover-content{padding:0!important}.color-picker{display:flex;flex-direction:column;padding:10px}.color-row{display:flex;justify-content:center;gap:8px}.mb-2{margin-bottom:8px}.color-box{margin:2px;width:30px;height:30px;cursor:pointer;border-radius:4px;border:0;padding:0;background:transparent}.color-box:hover:not(:disabled){transform:scale(1.1);opacity:.9;box-shadow:0 0 5px #0003}.color-box:disabled{cursor:not-allowed;opacity:.6}.selected-color{width:35px;height:35px;border:2px solid #ccc;cursor:pointer;border-radius:6px;padding:0;background:transparent}.selected-color:disabled{cursor:not-allowed;opacity:.6}\n"], dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "ngmodule", type: FormsModule }, { kind: "ngmodule", type: PopoverModule }, { kind: "component", type: i2$1.Popover, selector: "p-popover", inputs: ["ariaLabel", "ariaLabelledBy", "dismissable", "style", "styleClass", "appendTo", "autoZIndex", "ariaCloseLabel", "baseZIndex", "focusOnShow", "showTransitionOptions", "hideTransitionOptions"], outputs: ["onShow", "onHide"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
8615
+ `, isInline: true, dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "ngmodule", type: FormsModule }, { kind: "ngmodule", type: PopoverModule }, { kind: "component", type: i2$1.Popover, selector: "p-popover", inputs: ["ariaLabel", "ariaLabelledBy", "dismissable", "style", "styleClass", "appendTo", "autoZIndex", "ariaCloseLabel", "baseZIndex", "focusOnShow", "showTransitionOptions", "hideTransitionOptions"], outputs: ["onShow", "onHide"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
8614
8616
  }
8615
8617
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: MetaCheckboxColorPickerV2Component, decorators: [{
8616
8618
  type: Component,
8617
- args: [{ selector: 'phoenix-meta-checkbox-color-picker-v2', standalone: true, changeDetection: ChangeDetectionStrategy.OnPush, imports: [CommonModule, FormsModule, PopoverModule], providers: [
8619
+ args: [{
8620
+ selector: 'phoenix-meta-checkbox-color-picker-v2',
8621
+ standalone: true,
8622
+ changeDetection: ChangeDetectionStrategy.OnPush,
8623
+ imports: [CommonModule, FormsModule, PopoverModule],
8624
+ providers: [
8618
8625
  {
8619
8626
  provide: NG_VALUE_ACCESSOR,
8620
8627
  useExisting: forwardRef(() => MetaCheckboxColorPickerV2Component),
8621
8628
  multi: true,
8622
8629
  },
8623
- ], template: `
8630
+ ],
8631
+ template: `
8624
8632
  <p-popover #popover>
8625
8633
  <div class="color-picker">
8626
8634
  @for (row of options; track $index; let last = $last) {
@@ -8650,7 +8658,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImpo
8650
8658
  (click)="toggle(popover, $event)"
8651
8659
  aria-label="Select color"
8652
8660
  ></button>
8653
- `, styles: [":host ::ng-deep .p-popover-content{padding:0!important}.color-picker{display:flex;flex-direction:column;padding:10px}.color-row{display:flex;justify-content:center;gap:8px}.mb-2{margin-bottom:8px}.color-box{margin:2px;width:30px;height:30px;cursor:pointer;border-radius:4px;border:0;padding:0;background:transparent}.color-box:hover:not(:disabled){transform:scale(1.1);opacity:.9;box-shadow:0 0 5px #0003}.color-box:disabled{cursor:not-allowed;opacity:.6}.selected-color{width:35px;height:35px;border:2px solid #ccc;cursor:pointer;border-radius:6px;padding:0;background:transparent}.selected-color:disabled{cursor:not-allowed;opacity:.6}\n"] }]
8661
+ `,
8662
+ }]
8654
8663
  }], propDecorators: { options: [{
8655
8664
  type: Input
8656
8665
  }], disable: [{