@pumpkin-tech/pumpkin-tech-ng 0.2.60 → 0.2.61
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.
|
@@ -9613,6 +9613,7 @@ class PtechPopoverComponent {
|
|
|
9613
9613
|
contentTemplate;
|
|
9614
9614
|
position = 'auto';
|
|
9615
9615
|
trigger = 'click';
|
|
9616
|
+
align = 'start';
|
|
9616
9617
|
dark = false;
|
|
9617
9618
|
opened = false;
|
|
9618
9619
|
open() { this.opened = true; }
|
|
@@ -9631,7 +9632,7 @@ class PtechPopoverComponent {
|
|
|
9631
9632
|
this.close();
|
|
9632
9633
|
}
|
|
9633
9634
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: PtechPopoverComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
9634
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "20.3.16", type: PtechPopoverComponent, isStandalone: true, selector: "ptech-popover", inputs: { position: "position", trigger: "trigger", dark: "dark", opened: "opened" }, queries: [{ propertyName: "contentTemplate", first: true, predicate: ["content"], descendants: true }], ngImport: i0, template: `
|
|
9635
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "20.3.16", type: PtechPopoverComponent, isStandalone: true, selector: "ptech-popover", inputs: { position: "position", trigger: "trigger", align: "align", dark: "dark", opened: "opened" }, queries: [{ propertyName: "contentTemplate", first: true, predicate: ["content"], descendants: true }], ngImport: i0, template: `
|
|
9635
9636
|
<span class="anchor"
|
|
9636
9637
|
(click)="onClick()"
|
|
9637
9638
|
(mouseenter)="onMouseEnter()"
|
|
@@ -9643,13 +9644,16 @@ class PtechPopoverComponent {
|
|
|
9643
9644
|
[class.top]="position === 'top'"
|
|
9644
9645
|
[class.bottom]="position === 'bottom' || position === 'auto'"
|
|
9645
9646
|
[class.left]="position === 'left'"
|
|
9646
|
-
[class.right]="position === 'right'"
|
|
9647
|
+
[class.right]="position === 'right'"
|
|
9648
|
+
[class.align-start]="align === 'start'"
|
|
9649
|
+
[class.align-center]="align === 'center'"
|
|
9650
|
+
[class.align-end]="align === 'end'">
|
|
9647
9651
|
<ng-container *ngIf="contentTemplate; else projected"
|
|
9648
9652
|
[ngTemplateOutlet]="contentTemplate"></ng-container>
|
|
9649
9653
|
<ng-template #projected><ng-content></ng-content></ng-template>
|
|
9650
9654
|
</span>
|
|
9651
9655
|
</span>
|
|
9652
|
-
`, isInline: true, styles: [":host{display:inline-block;position:relative}.anchor{position:relative;display:inline-flex}.panel{position:absolute;z-index:1000;min-width:180px;max-width:min(360px,
|
|
9656
|
+
`, isInline: true, styles: [":host{display:inline-block;position:relative}.anchor{position:relative;display:inline-flex}.panel{position:absolute;z-index:1000;min-width:180px;max-width:min(360px,calc(100vw - 24px));padding:10px 12px;border-radius:8px;background:var(--app-surface, #fff);color:var(--app-text, inherit);border:1px solid var(--app-border-color, rgba(0,0,0,.12));box-shadow:0 14px 36px #0000002e}.panel.dark{background:#1f2937;color:#fff;border-color:#ffffff1f}.bottom{top:calc(100% + 8px);left:0}.top{bottom:calc(100% + 8px);left:0}.left{right:calc(100% + 8px);top:0}.right{left:calc(100% + 8px);top:0}.bottom.align-end,.top.align-end{left:auto;right:0}.bottom.align-center,.top.align-center{left:50%;transform:translate(-50%)}\n"], dependencies: [{ kind: "ngmodule", type: CoreMaterialModule }, { kind: "directive", type: i1$1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i1$1.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
9653
9657
|
}
|
|
9654
9658
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: PtechPopoverComponent, decorators: [{
|
|
9655
9659
|
type: Component,
|
|
@@ -9665,13 +9669,16 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImpo
|
|
|
9665
9669
|
[class.top]="position === 'top'"
|
|
9666
9670
|
[class.bottom]="position === 'bottom' || position === 'auto'"
|
|
9667
9671
|
[class.left]="position === 'left'"
|
|
9668
|
-
[class.right]="position === 'right'"
|
|
9672
|
+
[class.right]="position === 'right'"
|
|
9673
|
+
[class.align-start]="align === 'start'"
|
|
9674
|
+
[class.align-center]="align === 'center'"
|
|
9675
|
+
[class.align-end]="align === 'end'">
|
|
9669
9676
|
<ng-container *ngIf="contentTemplate; else projected"
|
|
9670
9677
|
[ngTemplateOutlet]="contentTemplate"></ng-container>
|
|
9671
9678
|
<ng-template #projected><ng-content></ng-content></ng-template>
|
|
9672
9679
|
</span>
|
|
9673
9680
|
</span>
|
|
9674
|
-
`, changeDetection: ChangeDetectionStrategy.OnPush, styles: [":host{display:inline-block;position:relative}.anchor{position:relative;display:inline-flex}.panel{position:absolute;z-index:1000;min-width:180px;max-width:min(360px,
|
|
9681
|
+
`, changeDetection: ChangeDetectionStrategy.OnPush, styles: [":host{display:inline-block;position:relative}.anchor{position:relative;display:inline-flex}.panel{position:absolute;z-index:1000;min-width:180px;max-width:min(360px,calc(100vw - 24px));padding:10px 12px;border-radius:8px;background:var(--app-surface, #fff);color:var(--app-text, inherit);border:1px solid var(--app-border-color, rgba(0,0,0,.12));box-shadow:0 14px 36px #0000002e}.panel.dark{background:#1f2937;color:#fff;border-color:#ffffff1f}.bottom{top:calc(100% + 8px);left:0}.top{bottom:calc(100% + 8px);left:0}.left{right:calc(100% + 8px);top:0}.right{left:calc(100% + 8px);top:0}.bottom.align-end,.top.align-end{left:auto;right:0}.bottom.align-center,.top.align-center{left:50%;transform:translate(-50%)}\n"] }]
|
|
9675
9682
|
}], propDecorators: { contentTemplate: [{
|
|
9676
9683
|
type: ContentChild,
|
|
9677
9684
|
args: ['content', { static: false }]
|
|
@@ -9679,6 +9686,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImpo
|
|
|
9679
9686
|
type: Input
|
|
9680
9687
|
}], trigger: [{
|
|
9681
9688
|
type: Input
|
|
9689
|
+
}], align: [{
|
|
9690
|
+
type: Input
|
|
9682
9691
|
}], dark: [{
|
|
9683
9692
|
type: Input
|
|
9684
9693
|
}], opened: [{
|