@coolon/angular-ui-powerups 1.11.1 → 1.11.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.
Files changed (29) hide show
  1. package/CHANGELOG.md +14 -0
  2. package/assets/form.scss +37 -0
  3. package/assets/interaction.scss +22 -0
  4. package/assets/mixins.scss +28 -0
  5. package/assets/router.scss +9 -0
  6. package/assets/table.scss +9 -0
  7. package/assets/tabs.scss +17 -0
  8. package/bundles/coolon-angular-ui-powerups.umd.js +93 -94
  9. package/bundles/coolon-angular-ui-powerups.umd.js.map +1 -1
  10. package/bundles/coolon-angular-ui-powerups.umd.min.js +1 -1
  11. package/bundles/coolon-angular-ui-powerups.umd.min.js.map +1 -1
  12. package/coolon-angular-ui-powerups.d.ts +18 -18
  13. package/coolon-angular-ui-powerups.metadata.json +1 -1
  14. package/esm2015/coolon-angular-ui-powerups.js +18 -18
  15. package/esm2015/coolon-angular-ui-powerups.js.map +1 -1
  16. package/esm2015/coolon-angular-ui-powerups.metadata.json +1 -1
  17. package/esm2015/lib/interaction/components/add-item-interaction-context/add-item-interaction-context.component.js +2 -2
  18. package/esm2015/lib/interaction/components/add-item-interaction-context/add-item-interaction-context.component.js.map +1 -1
  19. package/esm2015/lib/interaction/components/add-item-interaction-context/add-item-interaction-context.component.metadata.json +1 -1
  20. package/esm5/coolon-angular-ui-powerups.js +18 -18
  21. package/esm5/coolon-angular-ui-powerups.js.map +1 -1
  22. package/esm5/lib/interaction/components/add-item-interaction-context/add-item-interaction-context.component.js +2 -2
  23. package/esm5/lib/interaction/components/add-item-interaction-context/add-item-interaction-context.component.js.map +1 -1
  24. package/fesm2015/coolon-angular-ui-powerups.js +64 -64
  25. package/fesm2015/coolon-angular-ui-powerups.js.map +1 -1
  26. package/fesm5/coolon-angular-ui-powerups.js +71 -71
  27. package/fesm5/coolon-angular-ui-powerups.js.map +1 -1
  28. package/lib/interaction/components/add-item-interaction-context/add-item-interaction-context.component.d.ts +3 -2
  29. package/package.json +1 -1
package/CHANGELOG.md CHANGED
@@ -2,6 +2,20 @@
2
2
 
3
3
  All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines.
4
4
 
5
+ ### [1.11.3](https://bitbucket.org/coolon/angular-ui-powerups/compare/v1.11.2...v1.11.3) (2020-06-10)
6
+
7
+
8
+ ### Bug Fixes
9
+
10
+ * updated imports to not use the barrel file ([de431a1](https://bitbucket.org/coolon/angular-ui-powerups/commit/de431a1b95a1de236dad3447db7d70226a40cb0e))
11
+
12
+ ### [1.11.2](https://bitbucket.org/coolon/angular-ui-powerups/compare/v1.11.1...v1.11.2) (2020-06-10)
13
+
14
+
15
+ ### Bug Fixes
16
+
17
+ * updated build to package all styles sheets ([71c4298](https://bitbucket.org/coolon/angular-ui-powerups/commit/71c4298425a5a7a878b01f7ef22011d570ac9ef8))
18
+
5
19
  ### [1.11.1](https://bitbucket.org/coolon/angular-ui-powerups/compare/v1.11.0...v1.11.1) (2020-06-10)
6
20
 
7
21
 
@@ -0,0 +1,37 @@
1
+ .aup-input-component {
2
+
3
+ display: block;
4
+
5
+ mat-form-field, input {
6
+ width: 100%;
7
+
8
+ mat-hint.faux-error {
9
+ color: mat-color(mat-palette($mat-red));
10
+ }
11
+ }
12
+ }
13
+
14
+ aup-table-cell-renderer > .aup-input-component {
15
+
16
+ // TODO: enter/exit animations for the editor size.
17
+
18
+ .mat-form-field-flex {
19
+ padding-top: 0;
20
+ }
21
+
22
+ .mat-form-field-infix {
23
+ width: 0; // ensure it doesn't expand the cell.
24
+ //border-top: none; // remove label space
25
+ }
26
+
27
+ .mat-form-field-label-wrapper { // hide the label
28
+ display: none;
29
+ }
30
+
31
+ .mat-form-field-subscript-wrapper {
32
+
33
+ }
34
+ }
35
+
36
+
37
+
@@ -0,0 +1,22 @@
1
+ .dialog-interaction-context {
2
+ max-width: 95vw !important;
3
+ max-height: 95vh !important;
4
+
5
+ mat-dialog-container {
6
+ max-width: 95vw !important;
7
+ max-height: 95vh !important;
8
+ padding: 0;
9
+ }
10
+ }
11
+
12
+
13
+ .aup-popup-interaction-panel {
14
+ background: var(--aup-default-background, white);
15
+ @include mat-elevation(1);
16
+ @include mat-elevation-transition;
17
+ }
18
+
19
+ .aup-input-activity {
20
+ padding: calc(var(--aup-default-padding)/2);
21
+ }
22
+
@@ -0,0 +1,28 @@
1
+ @mixin elevate-on-hover($height:2) {
2
+ @include mat-elevation-transition;
3
+ //@include mat-elevation(2);
4
+ &:hover {
5
+ @include mat-elevation($height);
6
+ }
7
+ }
8
+
9
+ @mixin new-card-placeholder-style($color: rgba(0,0,0,0.54), $background-color: rgba(255,255,255,0.8), $hover-color: $color, $background-hover-color: white) {
10
+ box-sizing: border-box;
11
+ border: 2px dashed rgba(0, 0, 0, 0.1);
12
+ border-radius: 6px;
13
+
14
+ font-weight: 300;
15
+ cursor: pointer;
16
+ color: $color;
17
+ background-color: $background-color;
18
+ transition: all $mat-elevation-transition-duration $mat-elevation-transition-timing-function;
19
+
20
+ &:hover {
21
+ @include elevate-on-hover(4);
22
+ transition: all $mat-elevation-transition-duration $mat-elevation-transition-timing-function;
23
+ border-color: transparent;
24
+ background-color: $background-hover-color;
25
+ color: $hover-color;
26
+ }
27
+ }
28
+
@@ -0,0 +1,9 @@
1
+ .router-outlet-container {
2
+ > * {
3
+ position: absolute;
4
+ top: 0;
5
+ left: 0;
6
+ bottom: 0;
7
+ right: 0;
8
+ }
9
+ }
@@ -0,0 +1,9 @@
1
+ aup-table {
2
+ --default-column-gap: var(--column-gap, 24px);
3
+
4
+ aup-table-cell-renderer, aup-table-header-cell-renderer {
5
+ &:not(.first-column) {
6
+ padding-left: var(--default-column-gap);
7
+ }
8
+ }
9
+ }
@@ -0,0 +1,17 @@
1
+ [no-tab-header] {
2
+ > mat-tab-header {
3
+ display: none;
4
+ }
5
+ }
6
+
7
+ [full-height-tabs], mat-tab-group.full-height-tabs {
8
+ .mat-tab-body-wrapper {
9
+ flex: 1;
10
+ mat-tab-body, .mat-tab-body-content {
11
+ display: flex;
12
+ flex-direction: column;
13
+ justify-content: stretch;
14
+ }
15
+ }
16
+ }
17
+
@@ -1316,76 +1316,6 @@
1316
1316
  return ActivityContainerComponent;
1317
1317
  }(AbstractInteractionContext));
1318
1318
 
1319
- var AddItemInteractionContextComponent = /** @class */ (function (_super) {
1320
- __extends(AddItemInteractionContextComponent, _super);
1321
- function AddItemInteractionContextComponent() {
1322
- var _this = _super.call(this) || this;
1323
- _this.tabindex = 0;
1324
- _this.clickCommand = pectin.Command.create(function (context) {
1325
- if (_this.activityClass) {
1326
- _this.startActivity(_this.activityClass, _this.activityData).catch(function (e) {
1327
- // don't care.
1328
- });
1329
- }
1330
- else {
1331
- _this.addCommand.withContext(context).execute();
1332
- }
1333
- });
1334
- return _this;
1335
- }
1336
- Object.defineProperty(AddItemInteractionContextComponent.prototype, "active", {
1337
- get: function () {
1338
- return this.interactionContext ? this.interactionContext.isActive() : false;
1339
- },
1340
- enumerable: true,
1341
- configurable: true
1342
- });
1343
- AddItemInteractionContextComponent.prototype.startActivity = function (activityType, data) {
1344
- return this.interactionContext.startActivity(activityType, data);
1345
- };
1346
- AddItemInteractionContextComponent.prototype.ngOnInit = function () {
1347
- };
1348
- __decorate([
1349
- core.Input(),
1350
- __metadata("design:type", String)
1351
- ], AddItemInteractionContextComponent.prototype, "label", void 0);
1352
- __decorate([
1353
- core.Input(),
1354
- __metadata("design:type", Object)
1355
- ], AddItemInteractionContextComponent.prototype, "activityClass", void 0);
1356
- __decorate([
1357
- core.Input(),
1358
- __metadata("design:type", Object)
1359
- ], AddItemInteractionContextComponent.prototype, "activityData", void 0);
1360
- __decorate([
1361
- core.Input(),
1362
- pectin.TrackExternal(),
1363
- __metadata("design:type", pectin.Command)
1364
- ], AddItemInteractionContextComponent.prototype, "addCommand", void 0);
1365
- __decorate([
1366
- core.ViewChild(InPlaceInteractionContextComponent),
1367
- __metadata("design:type", InPlaceInteractionContextComponent)
1368
- ], AddItemInteractionContextComponent.prototype, "interactionContext", void 0);
1369
- __decorate([
1370
- core.HostBinding('class.interaction-active'),
1371
- __metadata("design:type", Boolean),
1372
- __metadata("design:paramtypes", [])
1373
- ], AddItemInteractionContextComponent.prototype, "active", null);
1374
- __decorate([
1375
- core.HostBinding('tabindex'),
1376
- __metadata("design:type", Object)
1377
- ], AddItemInteractionContextComponent.prototype, "tabindex", void 0);
1378
- AddItemInteractionContextComponent = __decorate([
1379
- core.Component({
1380
- selector: 'aup-add-item-interaction-context',
1381
- template: "<aup-in-place-interaction-context #interactionContext [animateFirstActivity]=\"false\">\n <a part=\"link\" class=\"link\" [pectinCommand]=\"clickCommand\"><mat-icon>add</mat-icon> {{label}}</a>\n</aup-in-place-interaction-context>\n",
1382
- styles: [":host{--def-link-color:var(--link-color, currentColor);--def-link-backgound:var(--link-background, rgba(0, 0, 0, 0.05));--def-link-border-radius:var(--link-border-radius, 4px);--def-link-padding:var(--link-padding, calc(var(--aup-default-padding) / 2));display:flex;flex-direction:column;border-radius:var(--def-link-border-radius);box-sizing:border-box;outline:0}:host:hover{--link-background:rgba(0,0,0,0.1)}aup-in-place-interaction-context{border-radius:var(--def-link-border-radius)}a.link{display:flex;flex-direction:row;align-items:center;border-radius:var(--def-link-border-radius);color:var(--def-link-color);background:var(--def-link-backgound);padding:var(--def-link-padding);cursor:pointer;text-decoration:none}a.link mat-icon{margin-right:8px}"]
1383
- }),
1384
- __metadata("design:paramtypes", [])
1385
- ], AddItemInteractionContextComponent);
1386
- return AddItemInteractionContextComponent;
1387
- }(DisposableComponent));
1388
-
1389
1319
  var InteractionServiceRoutingAdapter = /** @class */ (function () {
1390
1320
  function InteractionServiceRoutingAdapter(activeInteractionContextIds, activeModalContext, createExclusiveInteractionContext) {
1391
1321
  this.activeInteractionContextIds = activeInteractionContextIds;
@@ -1649,6 +1579,76 @@
1649
1579
  return InPlaceInteractionContextComponent;
1650
1580
  }(DisposableComponent));
1651
1581
 
1582
+ var AddItemInteractionContextComponent = /** @class */ (function (_super) {
1583
+ __extends(AddItemInteractionContextComponent, _super);
1584
+ function AddItemInteractionContextComponent() {
1585
+ var _this = _super.call(this) || this;
1586
+ _this.tabindex = 0;
1587
+ _this.clickCommand = pectin.Command.create(function (context) {
1588
+ if (_this.activityClass) {
1589
+ _this.startActivity(_this.activityClass, _this.activityData).catch(function (e) {
1590
+ // don't care.
1591
+ });
1592
+ }
1593
+ else {
1594
+ _this.addCommand.withContext(context).execute();
1595
+ }
1596
+ });
1597
+ return _this;
1598
+ }
1599
+ Object.defineProperty(AddItemInteractionContextComponent.prototype, "active", {
1600
+ get: function () {
1601
+ return this.interactionContext ? this.interactionContext.isActive() : false;
1602
+ },
1603
+ enumerable: true,
1604
+ configurable: true
1605
+ });
1606
+ AddItemInteractionContextComponent.prototype.startActivity = function (activityType, data) {
1607
+ return this.interactionContext.startActivity(activityType, data);
1608
+ };
1609
+ AddItemInteractionContextComponent.prototype.ngOnInit = function () {
1610
+ };
1611
+ __decorate([
1612
+ core.Input(),
1613
+ __metadata("design:type", String)
1614
+ ], AddItemInteractionContextComponent.prototype, "label", void 0);
1615
+ __decorate([
1616
+ core.Input(),
1617
+ __metadata("design:type", Object)
1618
+ ], AddItemInteractionContextComponent.prototype, "activityClass", void 0);
1619
+ __decorate([
1620
+ core.Input(),
1621
+ __metadata("design:type", Object)
1622
+ ], AddItemInteractionContextComponent.prototype, "activityData", void 0);
1623
+ __decorate([
1624
+ core.Input(),
1625
+ pectin.TrackExternal(),
1626
+ __metadata("design:type", pectin.Command)
1627
+ ], AddItemInteractionContextComponent.prototype, "addCommand", void 0);
1628
+ __decorate([
1629
+ core.ViewChild(InPlaceInteractionContextComponent),
1630
+ __metadata("design:type", InPlaceInteractionContextComponent)
1631
+ ], AddItemInteractionContextComponent.prototype, "interactionContext", void 0);
1632
+ __decorate([
1633
+ core.HostBinding('class.interaction-active'),
1634
+ __metadata("design:type", Boolean),
1635
+ __metadata("design:paramtypes", [])
1636
+ ], AddItemInteractionContextComponent.prototype, "active", null);
1637
+ __decorate([
1638
+ core.HostBinding('tabindex'),
1639
+ __metadata("design:type", Object)
1640
+ ], AddItemInteractionContextComponent.prototype, "tabindex", void 0);
1641
+ AddItemInteractionContextComponent = __decorate([
1642
+ core.Component({
1643
+ selector: 'aup-add-item-interaction-context',
1644
+ template: "<aup-in-place-interaction-context #interactionContext [animateFirstActivity]=\"false\">\n <a part=\"link\" class=\"link\" [pectinCommand]=\"clickCommand\"><mat-icon>add</mat-icon> {{label}}</a>\n</aup-in-place-interaction-context>\n",
1645
+ styles: [":host{--def-link-color:var(--link-color, currentColor);--def-link-backgound:var(--link-background, rgba(0, 0, 0, 0.05));--def-link-border-radius:var(--link-border-radius, 4px);--def-link-padding:var(--link-padding, calc(var(--aup-default-padding) / 2));display:flex;flex-direction:column;border-radius:var(--def-link-border-radius);box-sizing:border-box;outline:0}:host:hover{--link-background:rgba(0,0,0,0.1)}aup-in-place-interaction-context{border-radius:var(--def-link-border-radius)}a.link{display:flex;flex-direction:row;align-items:center;border-radius:var(--def-link-border-radius);color:var(--def-link-color);background:var(--def-link-backgound);padding:var(--def-link-padding);cursor:pointer;text-decoration:none}a.link mat-icon{margin-right:8px}"]
1646
+ }),
1647
+ __metadata("design:paramtypes", [])
1648
+ ], AddItemInteractionContextComponent);
1649
+ return AddItemInteractionContextComponent;
1650
+ }(DisposableComponent));
1651
+
1652
1652
  var PopupInteractionContextComponent = /** @class */ (function (_super) {
1653
1653
  __extends(PopupInteractionContextComponent, _super);
1654
1654
  function PopupInteractionContextComponent(_element, _overlay) {
@@ -4631,7 +4631,7 @@
4631
4631
  return PopStateNavigation;
4632
4632
  }(AbstractPopStateNavigation));
4633
4633
 
4634
- exports.ɵco = /** @class */ (function () {
4634
+ exports.ɵcn = /** @class */ (function () {
4635
4635
  function PlaceHistory() {
4636
4636
  this._archive = new Map();
4637
4637
  this.placeHistoryDepth = 4;
@@ -4768,7 +4768,7 @@
4768
4768
  // }
4769
4769
  //
4770
4770
  // }
4771
- })(exports.ɵco || (exports.ɵco = {}));
4771
+ })(exports.ɵcn || (exports.ɵcn = {}));
4772
4772
 
4773
4773
  exports.UrlSnapshot = /** @class */ (function () {
4774
4774
  // TODO: Update this accept a url Parser so it can be immutable and generate new trees on mutation using toString() are parseUrl.
@@ -5293,9 +5293,9 @@
5293
5293
  { type: common.Location },
5294
5294
  { type: exports.ɵbw },
5295
5295
  { type: UrlService },
5296
- { type: exports.ɵco }
5296
+ { type: exports.ɵcn }
5297
5297
  ]; };
5298
- PlaceRouter.ɵprov = core.ɵɵdefineInjectable({ factory: function PlaceRouter_Factory() { return new PlaceRouter(core.ɵɵinject(router.Router), core.ɵɵinject(common.Location), core.ɵɵinject(exports.ɵbw), core.ɵɵinject(UrlService), core.ɵɵinject(exports.ɵco)); }, token: PlaceRouter, providedIn: "root" });
5298
+ PlaceRouter.ɵprov = core.ɵɵdefineInjectable({ factory: function PlaceRouter_Factory() { return new PlaceRouter(core.ɵɵinject(router.Router), core.ɵɵinject(common.Location), core.ɵɵinject(exports.ɵbw), core.ɵɵinject(UrlService), core.ɵɵinject(exports.ɵcn)); }, token: PlaceRouter, providedIn: "root" });
5299
5299
  __decorate([
5300
5300
  pectin.Trace(),
5301
5301
  __metadata("design:type", Function),
@@ -5310,7 +5310,7 @@
5310
5310
  common.Location,
5311
5311
  exports.ɵbw,
5312
5312
  UrlService,
5313
- exports.ɵco])
5313
+ exports.ɵcn])
5314
5314
  ], PlaceRouter);
5315
5315
  return PlaceRouter;
5316
5316
  }(pectin.GarbageCollector));
@@ -6351,7 +6351,7 @@
6351
6351
  exports.PlaceComponentDeactivationHandler = PlaceComponentDeactivationHandler;
6352
6352
  exports.PlaceDefinition = PlaceDefinition;
6353
6353
  exports.PlaceGuard = PlaceGuard;
6354
- exports.PlaceHistory = exports.ɵco;
6354
+ exports.PlaceHistory = exports.ɵcn;
6355
6355
  exports.PlaceModule = PlaceModule;
6356
6356
  exports.PlaceOutletComponent = PlaceOutletComponent;
6357
6357
  exports.PlaceRouter = PlaceRouter;
@@ -6418,25 +6418,24 @@
6418
6418
  exports.ɵbv = InPlaceInteractionContextComponent;
6419
6419
  exports.ɵbx = ModalInteractionContextFactory;
6420
6420
  exports.ɵby = AddItemInteractionContextComponent;
6421
- exports.ɵbz = DisposableComponent;
6421
+ exports.ɵbz = ActivityActionsComponent;
6422
6422
  exports.ɵc = FocusBindingDirective;
6423
- exports.ɵca = InPlaceInteractionContextComponent;
6424
- exports.ɵcb = ActivityActionsComponent;
6425
- exports.ɵcc = PopupInteractionContextComponent;
6426
- exports.ɵcd = InteractionContextTriggerFor;
6427
- exports.ɵce = PlaceModule;
6428
- exports.ɵcf = EmptyStateComponent;
6429
- exports.ɵcg = BusyOverlayComponent;
6430
- exports.ɵch = PlaceOutletComponent;
6431
- exports.ɵci = leftRightPlaceAnimation;
6432
- exports.ɵcj = LEFT_RIGHT_PLACE_ANIMATION;
6433
- exports.ɵck = AUP_PLACE_CONFIG;
6434
- exports.ɵcm = PlaceRouter;
6435
- exports.ɵcn = UrlService;
6436
- exports.ɵcp = TabbedPlaceNavigationComponent;
6437
- exports.ɵcq = AbstractPlaceNavigationComponent;
6438
- exports.ɵcr = ListPlaceNavComponent;
6439
- exports.ɵcs = SidePlaceNavigationComponent;
6423
+ exports.ɵca = DisposableComponent;
6424
+ exports.ɵcb = PopupInteractionContextComponent;
6425
+ exports.ɵcc = InteractionContextTriggerFor;
6426
+ exports.ɵcd = PlaceModule;
6427
+ exports.ɵce = EmptyStateComponent;
6428
+ exports.ɵcf = BusyOverlayComponent;
6429
+ exports.ɵcg = PlaceOutletComponent;
6430
+ exports.ɵch = leftRightPlaceAnimation;
6431
+ exports.ɵci = LEFT_RIGHT_PLACE_ANIMATION;
6432
+ exports.ɵcj = AUP_PLACE_CONFIG;
6433
+ exports.ɵcl = PlaceRouter;
6434
+ exports.ɵcm = UrlService;
6435
+ exports.ɵco = TabbedPlaceNavigationComponent;
6436
+ exports.ɵcp = AbstractPlaceNavigationComponent;
6437
+ exports.ɵcq = ListPlaceNavComponent;
6438
+ exports.ɵcr = SidePlaceNavigationComponent;
6440
6439
  exports.ɵd = DisposableComponent;
6441
6440
  exports.ɵe = FocusBindingFactory;
6442
6441
  exports.ɵf = ComponentsModule;