@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.
- package/assets/cards.scss +13 -0
- package/assets/styles.scss +2 -0
- package/bundles/coolon-angular-ui-powerups-cypress.umd.js +30 -27
- 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/{builder.d.ts → component-builder.d.ts} +15 -15
- package/cypress/components/aup-abstract-activity.d.ts +2 -2
- package/cypress/components/aup-command.d.ts +1 -0
- package/cypress/coolon-angular-ui-powerups-cypress.metadata.json +1 -1
- package/cypress/exports.d.ts +1 -1
- package/cypress/page-builder.d.ts +5 -5
- package/cypress/page.d.ts +3 -3
- package/esm2015/cypress/{builder.js → component-builder.js} +7 -7
- package/esm2015/cypress/component-builder.js.map +1 -0
- package/esm2015/cypress/component-builder.metadata.json +1 -0
- package/esm2015/cypress/components/aup-abstract-activity.js +2 -2
- package/esm2015/cypress/components/aup-abstract-activity.js.map +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/cypress/exports.js +1 -1
- package/esm2015/cypress/exports.js.map +1 -1
- package/esm2015/cypress/exports.metadata.json +1 -1
- package/esm2015/cypress/page-builder.js +2 -2
- package/esm2015/cypress/page-builder.js.map +1 -1
- package/esm2015/cypress/page-builder.metadata.json +1 -1
- package/esm2015/cypress/page.js.map +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 +12 -9
- 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
- package/esm2015/cypress/builder.js.map +0 -1
- 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
|
+
}
|
package/assets/styles.scss
CHANGED
|
@@ -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.
|
|
892
|
-
function
|
|
894
|
+
exports.ComponentBuilder = /** @class */ (function () {
|
|
895
|
+
function ComponentBuilder(parentPageElement) {
|
|
893
896
|
this.parentPageElement = parentPageElement;
|
|
894
897
|
}
|
|
895
|
-
|
|
898
|
+
ComponentBuilder.prototype.find = function (selector) {
|
|
896
899
|
return new PageElement(this.parentPageElement, selector);
|
|
897
900
|
};
|
|
898
|
-
|
|
901
|
+
ComponentBuilder.prototype.section = function (selector, builder) {
|
|
899
902
|
return this.component(PageElement, selector, builder);
|
|
900
903
|
};
|
|
901
|
-
|
|
904
|
+
ComponentBuilder.prototype.contains = function (text) {
|
|
902
905
|
return new PageElement(this.parentPageElement, exports.ElementLocator.findByTextContent(text));
|
|
903
906
|
};
|
|
904
|
-
|
|
907
|
+
ComponentBuilder.prototype.button = function (text) {
|
|
905
908
|
return new Button(this.parentPageElement, text);
|
|
906
909
|
};
|
|
907
|
-
|
|
910
|
+
ComponentBuilder.prototype.matCheckbox = function (text) {
|
|
908
911
|
return new MatCheckbox(this.parentPageElement, text);
|
|
909
912
|
};
|
|
910
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
925
|
+
ComponentBuilder.prototype.aupCommand = function (faceOrSelector) {
|
|
923
926
|
return new AupCommand(this.parentPageElement, faceOrSelector);
|
|
924
927
|
};
|
|
925
|
-
|
|
928
|
+
ComponentBuilder.prototype.aupTabbedNavigation = function () {
|
|
926
929
|
return new AupNavigation(this.parentPageElement, 'aup-tabbed-place-navigation');
|
|
927
930
|
};
|
|
928
|
-
|
|
931
|
+
ComponentBuilder.prototype.aupSideNavigation = function () {
|
|
929
932
|
return new AupNavigation(this.parentPageElement, 'aup-list-place-nav');
|
|
930
933
|
};
|
|
931
|
-
|
|
934
|
+
ComponentBuilder.prototype.aupMoreMenu = function (selector) {
|
|
932
935
|
return AupMoreMenu.create(this.parentPageElement, selector);
|
|
933
936
|
};
|
|
934
|
-
|
|
937
|
+
ComponentBuilder.prototype.aupTable = function (selectorOrBuilder, optionalBuilder) {
|
|
935
938
|
return this.component(AupTable, selectorOrBuilder, optionalBuilder);
|
|
936
939
|
};
|
|
937
|
-
|
|
940
|
+
ComponentBuilder.prototype.aupTreeTable = function (selectorOrBuilder, optionalBuilder) {
|
|
938
941
|
return this.component(exports.AupTreeTable, selectorOrBuilder, optionalBuilder);
|
|
939
942
|
};
|
|
940
|
-
|
|
943
|
+
ComponentBuilder.prototype.aupEmptyState = function (selectorOrBuilder, optionalBuilder) {
|
|
941
944
|
return this.component(AupEmptyState, selectorOrBuilder, optionalBuilder);
|
|
942
945
|
};
|
|
943
|
-
|
|
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
|
|
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
|
|
960
|
+
return ComponentBuilder;
|
|
958
961
|
}());
|
|
959
|
-
(function (
|
|
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
|
|
972
|
+
_this.builder = new ComponentBuilder(_this);
|
|
970
973
|
return _this;
|
|
971
974
|
}
|
|
972
975
|
return class_1;
|
|
973
976
|
}(Base));
|
|
974
977
|
}
|
|
975
|
-
|
|
976
|
-
})(exports.
|
|
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.
|
|
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.
|
|
1127
|
+
}(exports.ComponentBuilder));
|
|
1125
1128
|
|
|
1126
1129
|
var urlSerialiser = new router.DefaultUrlSerializer();
|
|
1127
1130
|
exports.Path = /** @class */ (function () {
|