@coolon/angular-ui-powerups 12.4.0-alpha.25 → 12.4.0-alpha.27
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.
- package/assets/cards.scss +13 -0
- package/assets/styles.scss +2 -0
- package/bundles/coolon-angular-ui-powerups-cypress.umd.js +3 -0
- package/bundles/coolon-angular-ui-powerups-cypress.umd.js.map +1 -1
- package/bundles/coolon-angular-ui-powerups.umd.js +126 -6
- package/bundles/coolon-angular-ui-powerups.umd.js.map +1 -1
- package/coolon-angular-ui-powerups.metadata.json +1 -1
- package/cypress/components/aup-command.d.ts +1 -0
- package/cypress/coolon-angular-ui-powerups-cypress.metadata.json +1 -1
- package/esm2015/cypress/components/aup-command.js +3 -0
- package/esm2015/cypress/components/aup-command.js.map +1 -1
- package/esm2015/cypress/components/aup-command.metadata.json +1 -1
- package/esm2015/lib/angular-ui-powerups.module.ngfactory.js.map +1 -1
- package/esm2015/lib/components/card-container/card-container.component.js +7 -0
- package/esm2015/lib/components/card-container/card-container.component.js.map +1 -1
- package/esm2015/lib/components/card-container/card-container.component.metadata.json +1 -1
- package/esm2015/lib/interaction/components/activity-triggers/abstract-activity-trigger.component.js +4 -0
- package/esm2015/lib/interaction/components/activity-triggers/abstract-activity-trigger.component.js.map +1 -1
- package/esm2015/lib/interaction/components/activity-triggers/abstract-activity-trigger.component.metadata.json +1 -1
- package/esm2015/lib/interaction/components/activity-triggers/inline-activity-trigger/inline-activity-trigger.component.js +4 -1
- package/esm2015/lib/interaction/components/activity-triggers/inline-activity-trigger/inline-activity-trigger.component.js.map +1 -1
- package/esm2015/lib/interaction/components/activity-triggers/inline-activity-trigger/inline-activity-trigger.component.metadata.json +1 -1
- package/esm2015/lib/interaction/components/activity-triggers/modal-activity-trigger/modal-activity-trigger.component.js +4 -1
- package/esm2015/lib/interaction/components/activity-triggers/modal-activity-trigger/modal-activity-trigger.component.js.map +1 -1
- package/esm2015/lib/interaction/components/activity-triggers/modal-activity-trigger/modal-activity-trigger.component.metadata.json +1 -1
- package/esm2015/lib/interaction/components/activity-triggers/popup-activity-trigger/popup-activity-trigger.component.js +4 -1
- package/esm2015/lib/interaction/components/activity-triggers/popup-activity-trigger/popup-activity-trigger.component.js.map +1 -1
- package/esm2015/lib/interaction/components/activity-triggers/popup-activity-trigger/popup-activity-trigger.component.metadata.json +1 -1
- package/esm2015/lib/interaction/components/add-card-activity/add-card-activity.component.js +64 -0
- package/esm2015/lib/interaction/components/add-card-activity/add-card-activity.component.js.map +1 -0
- package/esm2015/lib/interaction/components/add-card-activity/add-card-activity.component.metadata.json +1 -0
- package/esm2015/lib/interaction/components/add-card-activity/add-card-activity.component.ngfactory.js.map +1 -0
- package/esm2015/lib/interaction/components/add-card-activity/add-card-activity.component.scss.shim.ngstyle.js.map +1 -0
- package/esm2015/lib/interaction/components/inplace-interaction-context/in-place-interaction-context.component.js +6 -2
- package/esm2015/lib/interaction/components/inplace-interaction-context/in-place-interaction-context.component.js.map +1 -1
- package/esm2015/lib/interaction/components/inplace-interaction-context/in-place-interaction-context.component.metadata.json +1 -1
- package/esm2015/lib/interaction/exports.js +1 -0
- package/esm2015/lib/interaction/exports.js.map +1 -1
- package/esm2015/lib/interaction/exports.metadata.json +1 -1
- package/esm2015/lib/interaction/interaction.module.js +5 -2
- package/esm2015/lib/interaction/interaction.module.js.map +1 -1
- package/esm2015/lib/interaction/interaction.module.metadata.json +1 -1
- package/esm2015/lib/interaction/interaction.module.ngfactory.js.map +1 -1
- package/fesm2015/coolon-angular-ui-powerups-cypress.js +3 -0
- package/fesm2015/coolon-angular-ui-powerups-cypress.js.map +1 -1
- package/fesm2015/coolon-angular-ui-powerups.js +91 -7
- package/fesm2015/coolon-angular-ui-powerups.js.map +1 -1
- package/lib/components/card-container/card-container.component.d.ts +7 -0
- package/lib/interaction/components/activity-triggers/abstract-activity-trigger.component.d.ts +1 -1
- package/lib/interaction/components/activity-triggers/inline-activity-trigger/inline-activity-trigger.component.d.ts +2 -1
- package/lib/interaction/components/activity-triggers/modal-activity-trigger/modal-activity-trigger.component.d.ts +2 -1
- package/lib/interaction/components/activity-triggers/popup-activity-trigger/popup-activity-trigger.component.d.ts +2 -1
- package/lib/interaction/components/add-card-activity/add-card-activity.component.d.ts +25 -0
- package/lib/interaction/components/inplace-interaction-context/in-place-interaction-context.component.d.ts +1 -0
- package/lib/interaction/exports.d.ts +1 -0
- package/package.json +1 -1
|
@@ -785,6 +785,13 @@
|
|
|
785
785
|
* <my-card *ngFor="..."></my-card>
|
|
786
786
|
* </aup-card-container>
|
|
787
787
|
*
|
|
788
|
+
* // use the aup-add-card-activity to display as the new card place holder and to run
|
|
789
|
+
* // the activity inside teh card
|
|
790
|
+
* <aup-card-container [addCardCommand]="addCard" [addCardFace]="i18n.addCard" >
|
|
791
|
+
* <my-card *ngFor="..."></my-card>
|
|
792
|
+
* <aup-add-card-activity type="inline" renderAs="card" [face]="i18n.commands.addModal" [activityClass]="AddCardActivity"></aup-add-card-activity>
|
|
793
|
+
* </aup-card-container>
|
|
794
|
+
*
|
|
788
795
|
* // adds an add card component using the specified template. The template
|
|
789
796
|
* // will fill it's container in the grid.
|
|
790
797
|
* <aup-card-container>
|
|
@@ -5616,6 +5623,13 @@
|
|
|
5616
5623
|
});
|
|
5617
5624
|
return _this;
|
|
5618
5625
|
}
|
|
5626
|
+
Object.defineProperty(AbstractActivityTriggerComponent.prototype, "interactionContext", {
|
|
5627
|
+
get: function () {
|
|
5628
|
+
return typescriptUtilities.lang.abstractMethod(this.constructor);
|
|
5629
|
+
},
|
|
5630
|
+
enumerable: false,
|
|
5631
|
+
configurable: true
|
|
5632
|
+
});
|
|
5619
5633
|
AbstractActivityTriggerComponent.prototype.ngOnInit = function () {
|
|
5620
5634
|
};
|
|
5621
5635
|
Object.defineProperty(AbstractActivityTriggerComponent.prototype, "isActive", {
|
|
@@ -5857,9 +5871,16 @@
|
|
|
5857
5871
|
__extends(ModalActivityTriggerComponent, _super);
|
|
5858
5872
|
function ModalActivityTriggerComponent(interactionService) {
|
|
5859
5873
|
var _this = _super.call(this) || this;
|
|
5860
|
-
_this.
|
|
5874
|
+
_this._interactionContext = interactionService.createModalInteractionContextDisposedWith(_this);
|
|
5861
5875
|
return _this;
|
|
5862
5876
|
}
|
|
5877
|
+
Object.defineProperty(ModalActivityTriggerComponent.prototype, "interactionContext", {
|
|
5878
|
+
get: function () {
|
|
5879
|
+
return this._interactionContext;
|
|
5880
|
+
},
|
|
5881
|
+
enumerable: false,
|
|
5882
|
+
configurable: true
|
|
5883
|
+
});
|
|
5863
5884
|
return ModalActivityTriggerComponent;
|
|
5864
5885
|
}(AbstractActivityTriggerComponent));
|
|
5865
5886
|
ModalActivityTriggerComponent.decorators = [
|
|
@@ -5905,6 +5926,13 @@
|
|
|
5905
5926
|
enumerable: false,
|
|
5906
5927
|
configurable: true
|
|
5907
5928
|
});
|
|
5929
|
+
Object.defineProperty(InPlaceInteractionContextComponent.prototype, "active", {
|
|
5930
|
+
get: function () {
|
|
5931
|
+
return this.isActive();
|
|
5932
|
+
},
|
|
5933
|
+
enumerable: false,
|
|
5934
|
+
configurable: true
|
|
5935
|
+
});
|
|
5908
5936
|
InPlaceInteractionContextComponent.prototype.ngAfterViewInit = function () {
|
|
5909
5937
|
this.interactionService.registerInplaceInteractionContext(this);
|
|
5910
5938
|
};
|
|
@@ -5954,7 +5982,82 @@
|
|
|
5954
5982
|
]; };
|
|
5955
5983
|
InPlaceInteractionContextComponent.propDecorators = {
|
|
5956
5984
|
activityContainerComponent: [{ type: i0.ViewChild, args: ['activityContainer', { static: true },] }],
|
|
5957
|
-
animateFirstActivity: [{ type: i0.Input }]
|
|
5985
|
+
animateFirstActivity: [{ type: i0.Input }],
|
|
5986
|
+
active: [{ type: i0.HostBinding, args: ["class.active",] }]
|
|
5987
|
+
};
|
|
5988
|
+
|
|
5989
|
+
/**
|
|
5990
|
+
*
|
|
5991
|
+
*/
|
|
5992
|
+
var AddCardActivityComponent = /** @class */ (function (_super) {
|
|
5993
|
+
__extends(AddCardActivityComponent, _super);
|
|
5994
|
+
function AddCardActivityComponent(interactionService) {
|
|
5995
|
+
var _this = _super.call(this) || this;
|
|
5996
|
+
_this.type = 'modal';
|
|
5997
|
+
_this.renderAs = 'card';
|
|
5998
|
+
var chain = pectin.Dsl.disposeWith(_this).chain;
|
|
5999
|
+
_this.modalInteractionContext = interactionService.createModalInteractionContextDisposedWith(_this);
|
|
6000
|
+
_this.faceList = chain(_this.faceModel).mapToList(function (face) { return [face]; });
|
|
6001
|
+
return _this;
|
|
6002
|
+
}
|
|
6003
|
+
Object.defineProperty(AddCardActivityComponent.prototype, "renderAsClass", {
|
|
6004
|
+
get: function () {
|
|
6005
|
+
return "render-as-" + this.renderAs;
|
|
6006
|
+
},
|
|
6007
|
+
enumerable: false,
|
|
6008
|
+
configurable: true
|
|
6009
|
+
});
|
|
6010
|
+
Object.defineProperty(AddCardActivityComponent.prototype, "activityTypeClass", {
|
|
6011
|
+
get: function () {
|
|
6012
|
+
return this.type + "-activity";
|
|
6013
|
+
},
|
|
6014
|
+
enumerable: false,
|
|
6015
|
+
configurable: true
|
|
6016
|
+
});
|
|
6017
|
+
AddCardActivityComponent.prototype.isRenderAsCard = function () {
|
|
6018
|
+
return this.renderAs === 'card';
|
|
6019
|
+
};
|
|
6020
|
+
AddCardActivityComponent.prototype.isRenderAsButton = function () {
|
|
6021
|
+
return this.renderAs === 'button';
|
|
6022
|
+
};
|
|
6023
|
+
AddCardActivityComponent.prototype.ngOnInit = function () {
|
|
6024
|
+
};
|
|
6025
|
+
Object.defineProperty(AddCardActivityComponent.prototype, "interactionContext", {
|
|
6026
|
+
get: function () {
|
|
6027
|
+
switch (this.type) {
|
|
6028
|
+
case 'inline':
|
|
6029
|
+
return this.inlineInteractionContext;
|
|
6030
|
+
default:
|
|
6031
|
+
return this.modalInteractionContext;
|
|
6032
|
+
}
|
|
6033
|
+
},
|
|
6034
|
+
enumerable: false,
|
|
6035
|
+
configurable: true
|
|
6036
|
+
});
|
|
6037
|
+
AddCardActivityComponent.prototype.isModal = function () {
|
|
6038
|
+
return this.type === 'modal';
|
|
6039
|
+
};
|
|
6040
|
+
AddCardActivityComponent.prototype.isInline = function () {
|
|
6041
|
+
return this.type === 'inline';
|
|
6042
|
+
};
|
|
6043
|
+
return AddCardActivityComponent;
|
|
6044
|
+
}(AbstractActivityTriggerComponent));
|
|
6045
|
+
AddCardActivityComponent.decorators = [
|
|
6046
|
+
{ type: i0.Component, args: [{
|
|
6047
|
+
selector: 'aup-add-card-activity',
|
|
6048
|
+
template: "<aup-in-place-interaction-context [animateFirstActivity]=\"false\" [pectinCommand]=\"startActivityCommand\">\n <aup-command *ngIf=\"isRenderAsButton()\" [command]=\"startActivityCommand\" [faceModel]=\"faceModel\" [alignFace]=\"alignFace\"></aup-command>\n <section *ngIf=\"isRenderAsCard()\" class=\"face-wrapper\">\n <aup-command-face class=\"mat-button\" [faces]=\"faceList.value\"></aup-command-face>\n </section>\n</aup-in-place-interaction-context>\n",
|
|
6049
|
+
styles: [":host{display:flex;flex-direction:column;align-items:stretch}:host[type=inline][renderas=card]:not(.active){box-sizing:border-box;border:2px dashed rgba(0,0,0,.1);border-radius:6px;font-weight:300;cursor:pointer;color:rgba(0,0,0,.54);background-color:hsla(0,0%,100%,.8);transition:all .28s cubic-bezier(.4,0,.2,1)}:host[type=inline][renderas=card]:not(.active):hover{transition:box-shadow .28s cubic-bezier(.4,0,.2,1);transition:all .28s cubic-bezier(.4,0,.2,1);border-color:transparent;background-color:#fff;color:rgba(0,0,0,.54)}:host[type=inline][renderas=card]:not(.active):hover:hover{box-shadow:0 2px 4px -1px rgba(0,0,0,.2),0 4px 5px 0 rgba(0,0,0,.14),0 1px 10px 0 rgba(0,0,0,.12)}:host[type=modal][renderas=card]{box-sizing:border-box;border:2px dashed rgba(0,0,0,.1);border-radius:6px;font-weight:300;cursor:pointer;color:rgba(0,0,0,.54);background-color:hsla(0,0%,100%,.8);transition:all .28s cubic-bezier(.4,0,.2,1)}:host[type=modal][renderas=card]:hover{transition:box-shadow .28s cubic-bezier(.4,0,.2,1);transition:all .28s cubic-bezier(.4,0,.2,1);border-color:transparent;background-color:#fff;color:rgba(0,0,0,.54)}:host[type=modal][renderas=card]:hover:hover{box-shadow:0 2px 4px -1px rgba(0,0,0,.2),0 4px 5px 0 rgba(0,0,0,.14),0 1px 10px 0 rgba(0,0,0,.12)}section.face-wrapper{flex:1;display:flex;flex-direction:column;align-items:center;justify-content:center}aup-in-place-interaction-context{flex:1}aup-in-place-interaction-context.active{border:3px solid #6273c7;border-radius:4px;overflow:hidden}"]
|
|
6050
|
+
},] }
|
|
6051
|
+
];
|
|
6052
|
+
AddCardActivityComponent.ctorParameters = function () { return [
|
|
6053
|
+
{ type: exports.InteractionService }
|
|
6054
|
+
]; };
|
|
6055
|
+
AddCardActivityComponent.propDecorators = {
|
|
6056
|
+
inlineInteractionContext: [{ type: i0.ViewChild, args: [InPlaceInteractionContextComponent, { static: true },] }],
|
|
6057
|
+
type: [{ type: i0.Input }],
|
|
6058
|
+
renderAs: [{ type: i0.Input }, { type: i0.HostBinding, args: ['class',] }],
|
|
6059
|
+
renderAsClass: [{ type: i0.HostBinding, args: ['class',] }],
|
|
6060
|
+
activityTypeClass: [{ type: i0.HostBinding, args: ['class',] }]
|
|
5958
6061
|
};
|
|
5959
6062
|
|
|
5960
6063
|
/**
|
|
@@ -6026,6 +6129,13 @@
|
|
|
6026
6129
|
function InlineActivityTriggerComponent() {
|
|
6027
6130
|
return _super.call(this) || this;
|
|
6028
6131
|
}
|
|
6132
|
+
Object.defineProperty(InlineActivityTriggerComponent.prototype, "interactionContext", {
|
|
6133
|
+
get: function () {
|
|
6134
|
+
return this._interactionContext;
|
|
6135
|
+
},
|
|
6136
|
+
enumerable: false,
|
|
6137
|
+
configurable: true
|
|
6138
|
+
});
|
|
6029
6139
|
return InlineActivityTriggerComponent;
|
|
6030
6140
|
}(AbstractActivityTriggerComponent));
|
|
6031
6141
|
InlineActivityTriggerComponent.decorators = [
|
|
@@ -6037,7 +6147,7 @@
|
|
|
6037
6147
|
];
|
|
6038
6148
|
InlineActivityTriggerComponent.ctorParameters = function () { return []; };
|
|
6039
6149
|
InlineActivityTriggerComponent.propDecorators = {
|
|
6040
|
-
|
|
6150
|
+
_interactionContext: [{ type: i0.ViewChild, args: [InPlaceInteractionContextComponent, { static: true },] }]
|
|
6041
6151
|
};
|
|
6042
6152
|
|
|
6043
6153
|
/**
|
|
@@ -6443,6 +6553,13 @@
|
|
|
6443
6553
|
_this.anchorY = 'bottom';
|
|
6444
6554
|
return _this;
|
|
6445
6555
|
}
|
|
6556
|
+
Object.defineProperty(PopupActivityTriggerComponent.prototype, "interactionContext", {
|
|
6557
|
+
get: function () {
|
|
6558
|
+
return this._interactionContext;
|
|
6559
|
+
},
|
|
6560
|
+
enumerable: false,
|
|
6561
|
+
configurable: true
|
|
6562
|
+
});
|
|
6446
6563
|
return PopupActivityTriggerComponent;
|
|
6447
6564
|
}(AbstractActivityTriggerComponent));
|
|
6448
6565
|
PopupActivityTriggerComponent.decorators = [
|
|
@@ -6456,7 +6573,7 @@
|
|
|
6456
6573
|
PopupActivityTriggerComponent.propDecorators = {
|
|
6457
6574
|
anchorX: [{ type: i0.Input }],
|
|
6458
6575
|
anchorY: [{ type: i0.Input }],
|
|
6459
|
-
|
|
6576
|
+
_interactionContext: [{ type: i0.ViewChild, args: [PopupInteractionContextComponent, { static: true },] }]
|
|
6460
6577
|
};
|
|
6461
6578
|
|
|
6462
6579
|
var InteractionModule = /** @class */ (function () {
|
|
@@ -6500,7 +6617,8 @@
|
|
|
6500
6617
|
AbstractActivityTriggerComponent,
|
|
6501
6618
|
PopupActivityTriggerComponent,
|
|
6502
6619
|
InlineActivityTriggerComponent,
|
|
6503
|
-
ModalActivityTriggerComponent
|
|
6620
|
+
ModalActivityTriggerComponent,
|
|
6621
|
+
AddCardActivityComponent,
|
|
6504
6622
|
],
|
|
6505
6623
|
exports: [
|
|
6506
6624
|
ActivityContainerComponent,
|
|
@@ -6516,7 +6634,8 @@
|
|
|
6516
6634
|
ActivityBodyComponent,
|
|
6517
6635
|
PopupActivityTriggerComponent,
|
|
6518
6636
|
InlineActivityTriggerComponent,
|
|
6519
|
-
ModalActivityTriggerComponent
|
|
6637
|
+
ModalActivityTriggerComponent,
|
|
6638
|
+
AddCardActivityComponent,
|
|
6520
6639
|
],
|
|
6521
6640
|
entryComponents: [
|
|
6522
6641
|
ActivityContainerComponent,
|
|
@@ -9820,6 +9939,7 @@
|
|
|
9820
9939
|
exports.ActivityOutletComponent = ActivityOutletComponent;
|
|
9821
9940
|
exports.ActivityRef = ActivityRef;
|
|
9822
9941
|
exports.ActivityTitleComponent = ActivityTitleComponent;
|
|
9942
|
+
exports.AddCardActivityComponent = AddCardActivityComponent;
|
|
9823
9943
|
exports.AddItemInteractionContextComponent = AddItemInteractionContextComponent;
|
|
9824
9944
|
exports.AlertDialogComponent = AlertDialogComponent;
|
|
9825
9945
|
exports.AngularUiPowerupsModule = AngularUiPowerupsModule;
|