@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,
|
|
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: [{
|
|
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
|
-
],
|
|
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
|
-
`,
|
|
8661
|
+
`,
|
|
8662
|
+
}]
|
|
8654
8663
|
}], propDecorators: { options: [{
|
|
8655
8664
|
type: Input
|
|
8656
8665
|
}], disable: [{
|