@vectoriox/iox-builder 1.2.1 → 1.2.3
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.
|
@@ -3604,11 +3604,9 @@ class BuilderButtonBlockComponent {
|
|
|
3604
3604
|
}
|
|
3605
3605
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.11", ngImport: i0, type: BuilderButtonBlockComponent, deps: [{ token: DragEngineService }, { token: i0.ChangeDetectorRef }], target: i0.ɵɵFactoryTarget.Component }); }
|
|
3606
3606
|
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "21.2.11", type: BuilderButtonBlockComponent, isStandalone: false, selector: "app-builder-button-block", inputs: { children: "children", style: "style", tag: "tag", href: "href", target: "target", type: "type", nodeId: "nodeId", dropListId: "dropListId" }, outputs: { childClick: "childClick", childMouseEnter: "childMouseEnter", childMouseLeave: "childMouseLeave" }, ngImport: i0, template: `
|
|
3607
|
-
<button
|
|
3608
|
-
class="button-block-root"
|
|
3607
|
+
<button class="button-block-root"
|
|
3609
3608
|
[ngClass]="'iox-node-' + nodeId"
|
|
3610
|
-
|
|
3611
|
-
(click)="$event.preventDefault()"
|
|
3609
|
+
type="button"
|
|
3612
3610
|
ioxDropzone
|
|
3613
3611
|
[ioxDropzoneId]="dropListId"
|
|
3614
3612
|
[ioxDropzoneData]="children"
|
|
@@ -3630,44 +3628,14 @@ class BuilderButtonBlockComponent {
|
|
|
3630
3628
|
</ng-container>
|
|
3631
3629
|
</div>
|
|
3632
3630
|
</button>
|
|
3633
|
-
|
|
3634
|
-
<a *ngIf="tag === 'a'"
|
|
3635
|
-
class="button-block-root"
|
|
3636
|
-
[ngClass]="'iox-node-' + nodeId"
|
|
3637
|
-
[attr.href]="href || null"
|
|
3638
|
-
[attr.target]="target || null"
|
|
3639
|
-
(click)="$event.preventDefault()"
|
|
3640
|
-
ioxDropzone
|
|
3641
|
-
[ioxDropzoneId]="dropListId"
|
|
3642
|
-
[ioxDropzoneData]="children"
|
|
3643
|
-
(ioxDrop)="onDrop($event)">
|
|
3644
|
-
<ng-container *ngIf="!children.length">
|
|
3645
|
-
<span class="button-block-placeholder">Button</span>
|
|
3646
|
-
</ng-container>
|
|
3647
|
-
<div *ngFor="let child of children"
|
|
3648
|
-
class="button-block-child"
|
|
3649
|
-
[ngClass]="'iox-outer-' + (child.styleId ?? child.id)"
|
|
3650
|
-
ioxDraggable
|
|
3651
|
-
[ioxDragData]="child"
|
|
3652
|
-
[ioxDragSourceId]="dropListId">
|
|
3653
|
-
<ng-container
|
|
3654
|
-
[ioxRender]="child"
|
|
3655
|
-
(onClick)="childClick.emit($event)"
|
|
3656
|
-
(onMouseEnter)="childMouseEnter.emit($event)"
|
|
3657
|
-
(onMouseLeave)="childMouseLeave.emit()">
|
|
3658
|
-
</ng-container>
|
|
3659
|
-
</div>
|
|
3660
|
-
</a>
|
|
3661
3631
|
`, isInline: true, styles: [".button-block-root{display:inline-flex;align-items:center;gap:8px;cursor:pointer;text-decoration:none;border:none;background:none;padding:0;font:inherit;color:inherit;box-sizing:border-box;width:100%;height:100%;position:relative}.button-block-placeholder{display:flex;align-items:center;justify-content:center;width:100%;color:#64748b80;font-size:12px;pointer-events:none;-webkit-user-select:none;user-select:none}.button-block-child{min-width:0}\n"], dependencies: [{ kind: "directive", type: i2.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: i2.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i2.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: RenderDirective, selector: "[ioxRender]", inputs: ["ioxRender"], outputs: ["onClick", "onMouseEnter", "onMouseLeave"] }, { kind: "directive", type: IoxDraggableDirective, selector: "[ioxDraggable]", inputs: ["ioxDragData", "ioxDragSourceId"] }, { kind: "directive", type: IoxDropzoneDirective, selector: "[ioxDropzone]", inputs: ["ioxDropzoneId", "ioxDropzoneData", "ioxDropzonePostDrop"], outputs: ["ioxDrop"] }] }); }
|
|
3662
3632
|
}
|
|
3663
3633
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.11", ngImport: i0, type: BuilderButtonBlockComponent, decorators: [{
|
|
3664
3634
|
type: Component,
|
|
3665
3635
|
args: [{ selector: 'app-builder-button-block', template: `
|
|
3666
|
-
<button
|
|
3667
|
-
class="button-block-root"
|
|
3636
|
+
<button class="button-block-root"
|
|
3668
3637
|
[ngClass]="'iox-node-' + nodeId"
|
|
3669
|
-
|
|
3670
|
-
(click)="$event.preventDefault()"
|
|
3638
|
+
type="button"
|
|
3671
3639
|
ioxDropzone
|
|
3672
3640
|
[ioxDropzoneId]="dropListId"
|
|
3673
3641
|
[ioxDropzoneData]="children"
|
|
@@ -3689,34 +3657,6 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.11", ngImpo
|
|
|
3689
3657
|
</ng-container>
|
|
3690
3658
|
</div>
|
|
3691
3659
|
</button>
|
|
3692
|
-
|
|
3693
|
-
<a *ngIf="tag === 'a'"
|
|
3694
|
-
class="button-block-root"
|
|
3695
|
-
[ngClass]="'iox-node-' + nodeId"
|
|
3696
|
-
[attr.href]="href || null"
|
|
3697
|
-
[attr.target]="target || null"
|
|
3698
|
-
(click)="$event.preventDefault()"
|
|
3699
|
-
ioxDropzone
|
|
3700
|
-
[ioxDropzoneId]="dropListId"
|
|
3701
|
-
[ioxDropzoneData]="children"
|
|
3702
|
-
(ioxDrop)="onDrop($event)">
|
|
3703
|
-
<ng-container *ngIf="!children.length">
|
|
3704
|
-
<span class="button-block-placeholder">Button</span>
|
|
3705
|
-
</ng-container>
|
|
3706
|
-
<div *ngFor="let child of children"
|
|
3707
|
-
class="button-block-child"
|
|
3708
|
-
[ngClass]="'iox-outer-' + (child.styleId ?? child.id)"
|
|
3709
|
-
ioxDraggable
|
|
3710
|
-
[ioxDragData]="child"
|
|
3711
|
-
[ioxDragSourceId]="dropListId">
|
|
3712
|
-
<ng-container
|
|
3713
|
-
[ioxRender]="child"
|
|
3714
|
-
(onClick)="childClick.emit($event)"
|
|
3715
|
-
(onMouseEnter)="childMouseEnter.emit($event)"
|
|
3716
|
-
(onMouseLeave)="childMouseLeave.emit()">
|
|
3717
|
-
</ng-container>
|
|
3718
|
-
</div>
|
|
3719
|
-
</a>
|
|
3720
3660
|
`, standalone: false, styles: [".button-block-root{display:inline-flex;align-items:center;gap:8px;cursor:pointer;text-decoration:none;border:none;background:none;padding:0;font:inherit;color:inherit;box-sizing:border-box;width:100%;height:100%;position:relative}.button-block-placeholder{display:flex;align-items:center;justify-content:center;width:100%;color:#64748b80;font-size:12px;pointer-events:none;-webkit-user-select:none;user-select:none}.button-block-child{min-width:0}\n"] }]
|
|
3721
3661
|
}], ctorParameters: () => [{ type: DragEngineService }, { type: i0.ChangeDetectorRef }], propDecorators: { children: [{
|
|
3722
3662
|
type: Input
|
|
@@ -4443,7 +4383,7 @@ class BuilderButtonComponentConfig extends ComponentConfig {
|
|
|
4443
4383
|
|
|
4444
4384
|
class ButtonBlockComponentConfig extends ComponentConfig {
|
|
4445
4385
|
constructor() {
|
|
4446
|
-
super('
|
|
4386
|
+
super('ButtonBlock', 'app-builder-button-block', 'ph-thin ph-cursor-click', 'Basic');
|
|
4447
4387
|
this.children = [];
|
|
4448
4388
|
this.inputs = {
|
|
4449
4389
|
tag: 'select',
|