@coolon/angular-ui-powerups 12.4.0-alpha.24 → 12.4.0-alpha.26

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 (75) hide show
  1. package/assets/cards.scss +13 -0
  2. package/assets/styles.scss +2 -0
  3. package/bundles/coolon-angular-ui-powerups-cypress.umd.js +30 -27
  4. package/bundles/coolon-angular-ui-powerups-cypress.umd.js.map +1 -1
  5. package/bundles/coolon-angular-ui-powerups.umd.js +126 -6
  6. package/bundles/coolon-angular-ui-powerups.umd.js.map +1 -1
  7. package/coolon-angular-ui-powerups.metadata.json +1 -1
  8. package/cypress/{builder.d.ts → component-builder.d.ts} +15 -15
  9. package/cypress/components/aup-abstract-activity.d.ts +2 -2
  10. package/cypress/components/aup-command.d.ts +1 -0
  11. package/cypress/coolon-angular-ui-powerups-cypress.metadata.json +1 -1
  12. package/cypress/exports.d.ts +1 -1
  13. package/cypress/page-builder.d.ts +5 -5
  14. package/cypress/page.d.ts +3 -3
  15. package/esm2015/cypress/{builder.js → component-builder.js} +7 -7
  16. package/esm2015/cypress/component-builder.js.map +1 -0
  17. package/esm2015/cypress/component-builder.metadata.json +1 -0
  18. package/esm2015/cypress/components/aup-abstract-activity.js +2 -2
  19. package/esm2015/cypress/components/aup-abstract-activity.js.map +1 -1
  20. package/esm2015/cypress/components/aup-command.js +3 -0
  21. package/esm2015/cypress/components/aup-command.js.map +1 -1
  22. package/esm2015/cypress/components/aup-command.metadata.json +1 -1
  23. package/esm2015/cypress/exports.js +1 -1
  24. package/esm2015/cypress/exports.js.map +1 -1
  25. package/esm2015/cypress/exports.metadata.json +1 -1
  26. package/esm2015/cypress/page-builder.js +2 -2
  27. package/esm2015/cypress/page-builder.js.map +1 -1
  28. package/esm2015/cypress/page-builder.metadata.json +1 -1
  29. package/esm2015/cypress/page.js.map +1 -1
  30. package/esm2015/lib/angular-ui-powerups.module.ngfactory.js.map +1 -1
  31. package/esm2015/lib/components/card-container/card-container.component.js +7 -0
  32. package/esm2015/lib/components/card-container/card-container.component.js.map +1 -1
  33. package/esm2015/lib/components/card-container/card-container.component.metadata.json +1 -1
  34. package/esm2015/lib/interaction/components/activity-triggers/abstract-activity-trigger.component.js +4 -0
  35. package/esm2015/lib/interaction/components/activity-triggers/abstract-activity-trigger.component.js.map +1 -1
  36. package/esm2015/lib/interaction/components/activity-triggers/abstract-activity-trigger.component.metadata.json +1 -1
  37. package/esm2015/lib/interaction/components/activity-triggers/inline-activity-trigger/inline-activity-trigger.component.js +4 -1
  38. package/esm2015/lib/interaction/components/activity-triggers/inline-activity-trigger/inline-activity-trigger.component.js.map +1 -1
  39. package/esm2015/lib/interaction/components/activity-triggers/inline-activity-trigger/inline-activity-trigger.component.metadata.json +1 -1
  40. package/esm2015/lib/interaction/components/activity-triggers/modal-activity-trigger/modal-activity-trigger.component.js +4 -1
  41. package/esm2015/lib/interaction/components/activity-triggers/modal-activity-trigger/modal-activity-trigger.component.js.map +1 -1
  42. package/esm2015/lib/interaction/components/activity-triggers/modal-activity-trigger/modal-activity-trigger.component.metadata.json +1 -1
  43. package/esm2015/lib/interaction/components/activity-triggers/popup-activity-trigger/popup-activity-trigger.component.js +4 -1
  44. package/esm2015/lib/interaction/components/activity-triggers/popup-activity-trigger/popup-activity-trigger.component.js.map +1 -1
  45. package/esm2015/lib/interaction/components/activity-triggers/popup-activity-trigger/popup-activity-trigger.component.metadata.json +1 -1
  46. package/esm2015/lib/interaction/components/add-card-activity/add-card-activity.component.js +64 -0
  47. package/esm2015/lib/interaction/components/add-card-activity/add-card-activity.component.js.map +1 -0
  48. package/esm2015/lib/interaction/components/add-card-activity/add-card-activity.component.metadata.json +1 -0
  49. package/esm2015/lib/interaction/components/add-card-activity/add-card-activity.component.ngfactory.js.map +1 -0
  50. package/esm2015/lib/interaction/components/add-card-activity/add-card-activity.component.scss.shim.ngstyle.js.map +1 -0
  51. package/esm2015/lib/interaction/components/inplace-interaction-context/in-place-interaction-context.component.js +6 -2
  52. package/esm2015/lib/interaction/components/inplace-interaction-context/in-place-interaction-context.component.js.map +1 -1
  53. package/esm2015/lib/interaction/components/inplace-interaction-context/in-place-interaction-context.component.metadata.json +1 -1
  54. package/esm2015/lib/interaction/exports.js +1 -0
  55. package/esm2015/lib/interaction/exports.js.map +1 -1
  56. package/esm2015/lib/interaction/exports.metadata.json +1 -1
  57. package/esm2015/lib/interaction/interaction.module.js +5 -2
  58. package/esm2015/lib/interaction/interaction.module.js.map +1 -1
  59. package/esm2015/lib/interaction/interaction.module.metadata.json +1 -1
  60. package/esm2015/lib/interaction/interaction.module.ngfactory.js.map +1 -1
  61. package/fesm2015/coolon-angular-ui-powerups-cypress.js +12 -9
  62. package/fesm2015/coolon-angular-ui-powerups-cypress.js.map +1 -1
  63. package/fesm2015/coolon-angular-ui-powerups.js +91 -7
  64. package/fesm2015/coolon-angular-ui-powerups.js.map +1 -1
  65. package/lib/components/card-container/card-container.component.d.ts +7 -0
  66. package/lib/interaction/components/activity-triggers/abstract-activity-trigger.component.d.ts +1 -1
  67. package/lib/interaction/components/activity-triggers/inline-activity-trigger/inline-activity-trigger.component.d.ts +2 -1
  68. package/lib/interaction/components/activity-triggers/modal-activity-trigger/modal-activity-trigger.component.d.ts +2 -1
  69. package/lib/interaction/components/activity-triggers/popup-activity-trigger/popup-activity-trigger.component.d.ts +2 -1
  70. package/lib/interaction/components/add-card-activity/add-card-activity.component.d.ts +25 -0
  71. package/lib/interaction/components/inplace-interaction-context/in-place-interaction-context.component.d.ts +1 -0
  72. package/lib/interaction/exports.d.ts +1 -0
  73. package/package.json +1 -1
  74. package/esm2015/cypress/builder.js.map +0 -1
  75. package/esm2015/cypress/builder.metadata.json +0 -1
@@ -0,0 +1,13 @@
1
+ @use "~@angular/material" as mat;
2
+ @use "sass:map";
3
+
4
+ @mixin apply-theme($color-config, $typography-config) {
5
+ aup-add-card-activity {
6
+ aup-command-face {
7
+ // this isn't working... need to dig deeper
8
+ //@include mat.button-typography($typography-config);
9
+ //@include mat.button-theme($color-config);
10
+ //color: black;
11
+ }
12
+ }
13
+ }
@@ -2,6 +2,7 @@
2
2
 
3
3
  @use "./mixins";
4
4
  @use "./activities";
5
+ @use "./cards";
5
6
  @use "./router";
6
7
  @use "./tabs";
7
8
  @use "./interaction";
@@ -27,6 +28,7 @@
27
28
  $color-config: ng.mat-get-color-config($theme);
28
29
 
29
30
  @include activities.apply-theme($color-config, $typography);
31
+ @include cards.apply-theme($color-config, $typography);
30
32
 
31
33
  :root {
32
34
  --aup-default-padding: var(--default-padding, 16px);
@@ -446,6 +446,9 @@
446
446
  AupCommand.prototype.shouldBeDisabled = function () {
447
447
  this.getButton().should('be.disabled');
448
448
  };
449
+ AupCommand.prototype.shouldBeEnabled = function () {
450
+ this.getButton().should('not.be.disabled');
451
+ };
449
452
  AupCommand.prototype.getButton = function () {
450
453
  return this.dom().find('button');
451
454
  };
@@ -888,65 +891,65 @@
888
891
  return MatCheckbox;
889
892
  }(FormElementMixin(PageElement)));
890
893
 
891
- exports.Builder = /** @class */ (function () {
892
- function Builder(parentPageElement) {
894
+ exports.ComponentBuilder = /** @class */ (function () {
895
+ function ComponentBuilder(parentPageElement) {
893
896
  this.parentPageElement = parentPageElement;
894
897
  }
895
- Builder.prototype.find = function (selector) {
898
+ ComponentBuilder.prototype.find = function (selector) {
896
899
  return new PageElement(this.parentPageElement, selector);
897
900
  };
898
- Builder.prototype.section = function (selector, builder) {
901
+ ComponentBuilder.prototype.section = function (selector, builder) {
899
902
  return this.component(PageElement, selector, builder);
900
903
  };
901
- Builder.prototype.contains = function (text) {
904
+ ComponentBuilder.prototype.contains = function (text) {
902
905
  return new PageElement(this.parentPageElement, exports.ElementLocator.findByTextContent(text));
903
906
  };
904
- Builder.prototype.button = function (text) {
907
+ ComponentBuilder.prototype.button = function (text) {
905
908
  return new Button(this.parentPageElement, text);
906
909
  };
907
- Builder.prototype.matCheckbox = function (text) {
910
+ ComponentBuilder.prototype.matCheckbox = function (text) {
908
911
  return new MatCheckbox(this.parentPageElement, text);
909
912
  };
910
- Builder.prototype.aupStringInput = function (selector) {
913
+ ComponentBuilder.prototype.aupStringInput = function (selector) {
911
914
  return new exports.AupInput.HtmlInput(this.parentPageElement, selector !== null && selector !== void 0 ? selector : 'aup-string-input');
912
915
  };
913
- Builder.prototype.aupTextInput = function (selector) {
916
+ ComponentBuilder.prototype.aupTextInput = function (selector) {
914
917
  return new exports.AupInput.TextAreaInput(this.parentPageElement, selector !== null && selector !== void 0 ? selector : 'aup-text-input');
915
918
  };
916
- Builder.prototype.aupPasswordInput = function (selector) {
919
+ ComponentBuilder.prototype.aupPasswordInput = function (selector) {
917
920
  return new exports.AupInput.HtmlInput(this.parentPageElement, selector !== null && selector !== void 0 ? selector : 'aup-password-input');
918
921
  };
919
- Builder.prototype.aupNumberInput = function (selector) {
922
+ ComponentBuilder.prototype.aupNumberInput = function (selector) {
920
923
  return new exports.AupInput.HtmlInput(this.parentPageElement, selector !== null && selector !== void 0 ? selector : 'aup-number-input');
921
924
  };
922
- Builder.prototype.aupCommand = function (faceOrSelector) {
925
+ ComponentBuilder.prototype.aupCommand = function (faceOrSelector) {
923
926
  return new AupCommand(this.parentPageElement, faceOrSelector);
924
927
  };
925
- Builder.prototype.aupTabbedNavigation = function () {
928
+ ComponentBuilder.prototype.aupTabbedNavigation = function () {
926
929
  return new AupNavigation(this.parentPageElement, 'aup-tabbed-place-navigation');
927
930
  };
928
- Builder.prototype.aupSideNavigation = function () {
931
+ ComponentBuilder.prototype.aupSideNavigation = function () {
929
932
  return new AupNavigation(this.parentPageElement, 'aup-list-place-nav');
930
933
  };
931
- Builder.prototype.aupMoreMenu = function (selector) {
934
+ ComponentBuilder.prototype.aupMoreMenu = function (selector) {
932
935
  return AupMoreMenu.create(this.parentPageElement, selector);
933
936
  };
934
- Builder.prototype.aupTable = function (selectorOrBuilder, optionalBuilder) {
937
+ ComponentBuilder.prototype.aupTable = function (selectorOrBuilder, optionalBuilder) {
935
938
  return this.component(AupTable, selectorOrBuilder, optionalBuilder);
936
939
  };
937
- Builder.prototype.aupTreeTable = function (selectorOrBuilder, optionalBuilder) {
940
+ ComponentBuilder.prototype.aupTreeTable = function (selectorOrBuilder, optionalBuilder) {
938
941
  return this.component(exports.AupTreeTable, selectorOrBuilder, optionalBuilder);
939
942
  };
940
- Builder.prototype.aupEmptyState = function (selectorOrBuilder, optionalBuilder) {
943
+ ComponentBuilder.prototype.aupEmptyState = function (selectorOrBuilder, optionalBuilder) {
941
944
  return this.component(AupEmptyState, selectorOrBuilder, optionalBuilder);
942
945
  };
943
- Builder.prototype.component = function (klass, selectorOrBuilder, optionalBuilder) {
946
+ ComponentBuilder.prototype.component = function (klass, selectorOrBuilder, optionalBuilder) {
944
947
  var selector = ___namespace.isString(selectorOrBuilder) ? selectorOrBuilder : undefined;
945
948
  var builder = ___namespace.isFunction(selectorOrBuilder) ? selectorOrBuilder : optionalBuilder;
946
949
  var element = new klass(this.parentPageElement, selector);
947
950
  if (builder) {
948
951
  // create the B&E type that the builder has access to
949
- var decoratedElement = typescriptUtilities.Mixin.createProxy(element, new Builder(element));
952
+ var decoratedElement = typescriptUtilities.Mixin.createProxy(element, new ComponentBuilder(element));
950
953
  // create final type that has the E & T type
951
954
  return typescriptUtilities.Mixin.createProxy(decoratedElement, builder(decoratedElement));
952
955
  }
@@ -954,9 +957,9 @@
954
957
  return element;
955
958
  }
956
959
  };
957
- return Builder;
960
+ return ComponentBuilder;
958
961
  }());
959
- (function (Builder) {
962
+ (function (ComponentBuilder) {
960
963
  function Mixin(Base) {
961
964
  return /** @class */ (function (_super) {
962
965
  __extends(class_1, _super);
@@ -966,14 +969,14 @@
966
969
  args[_i] = arguments[_i];
967
970
  }
968
971
  var _this = _super.apply(this, __spreadArray([], __read(args))) || this;
969
- _this.builder = new Builder(_this);
972
+ _this.builder = new ComponentBuilder(_this);
970
973
  return _this;
971
974
  }
972
975
  return class_1;
973
976
  }(Base));
974
977
  }
975
- Builder.Mixin = Mixin;
976
- })(exports.Builder || (exports.Builder = {}));
978
+ ComponentBuilder.Mixin = Mixin;
979
+ })(exports.ComponentBuilder || (exports.ComponentBuilder = {}));
977
980
 
978
981
  var AupAbstractActivity = /** @class */ (function (_super) {
979
982
  __extends(AupAbstractActivity, _super);
@@ -987,7 +990,7 @@
987
990
  return _this;
988
991
  }
989
992
  return AupAbstractActivity;
990
- }(exports.Builder.Mixin(PageElement)));
993
+ }(exports.ComponentBuilder.Mixin(PageElement)));
991
994
 
992
995
  var AupAlert = /** @class */ (function (_super) {
993
996
  __extends(AupAlert, _super);
@@ -1121,7 +1124,7 @@
1121
1124
  return this.component(AupConfirmDialog, builder);
1122
1125
  };
1123
1126
  return PageBuilder;
1124
- }(exports.Builder));
1127
+ }(exports.ComponentBuilder));
1125
1128
 
1126
1129
  var urlSerialiser = new router.DefaultUrlSerializer();
1127
1130
  exports.Path = /** @class */ (function () {