@osovitny/anatoly 2.0.10 → 2.0.11
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/bundles/osovitny-anatoly.umd.js +181 -226
- package/bundles/osovitny-anatoly.umd.js.map +1 -1
- package/bundles/osovitny-anatoly.umd.min.js +1 -1
- package/bundles/osovitny-anatoly.umd.min.js.map +1 -1
- package/esm2015/lib/core/go/base-go.service.js +38 -0
- package/esm2015/lib/core/index.js +6 -5
- package/esm2015/lib/ui/index.js +3 -4
- package/esm2015/lib/ui/ui.module.js +3 -6
- package/fesm2015/osovitny-anatoly.js +184 -227
- package/fesm2015/osovitny-anatoly.js.map +1 -1
- package/lib/core/index.d.ts +1 -1
- package/lib/ui/index.d.ts +1 -1
- package/package.json +1 -1
- package/esm2015/lib/core/services/base-go.service.js +0 -38
- package/esm2015/lib/ui/components/copy-2-clipboard/copy-2-clipboard.component.js +0 -45
- package/lib/ui/components/copy-2-clipboard/copy-2-clipboard.component.d.ts +0 -5
- /package/lib/core/{services → go}/base-go.service.d.ts +0 -0
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
<file>
|
|
3
3
|
Project:
|
|
4
4
|
@osovitny/anatoly
|
|
5
|
-
|
|
5
|
+
./go/base-go.service
|
|
6
6
|
Authors:
|
|
7
7
|
Vadim Osovitny
|
|
8
8
|
Anatoly Osovitny
|
|
@@ -20,11 +20,12 @@ export * from "./alerts";
|
|
|
20
20
|
export * from "./utils";
|
|
21
21
|
export * from "./subs";
|
|
22
22
|
export * from "./guid";
|
|
23
|
-
//
|
|
24
|
-
export * from "./
|
|
23
|
+
//Go
|
|
24
|
+
export * from "./go/base-go.service";
|
|
25
|
+
//Services
|
|
25
26
|
export * from "./services/appcontext.service";
|
|
26
27
|
export * from "./logging/logging.service";
|
|
27
28
|
export * from "./logging/globalErrorHandler";
|
|
28
|
-
//
|
|
29
|
+
//Module
|
|
29
30
|
export { AnatolyCoreModule } from "./core.module";
|
|
30
|
-
//# sourceMappingURL=data:application/json;base64,
|
|
31
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi9wcm9qZWN0cy9hbmF0b2x5L3NyYy9saWIvY29yZS9pbmRleC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQTs7Ozs7Ozs7Ozs7Ozs7Ozs7RUFpQkU7QUFFRixjQUFjLFVBQVUsQ0FBQztBQUN6QixjQUFjLFNBQVMsQ0FBQztBQUN4QixjQUFjLFFBQVEsQ0FBQztBQUN2QixjQUFjLFFBQVEsQ0FBQztBQUV2QixJQUFJO0FBQ0osY0FBYyxzQkFBc0IsQ0FBQztBQUVyQyxVQUFVO0FBQ1YsY0FBYywrQkFBK0IsQ0FBQztBQUM5QyxjQUFjLDJCQUEyQixDQUFDO0FBQzFDLGNBQWMsOEJBQThCLENBQUM7QUFFN0MsUUFBUTtBQUNSLE9BQU8sRUFBRSxpQkFBaUIsRUFBRSxNQUFNLGVBQWUsQ0FBQyIsInNvdXJjZXNDb250ZW50IjpbIi8qXHJcbjxmaWxlPlxyXG4gIFByb2plY3Q6XHJcbiAgICBAb3Nvdml0bnkvYW5hdG9seVxyXG4uL2dvL2Jhc2UtZ28uc2VydmljZVxyXG4gIEF1dGhvcnM6XHJcbiAgICBWYWRpbSBPc292aXRueVxyXG4gICAgQW5hdG9seSBPc292aXRueVxyXG5cclxuICBDcmVhdGVkOlxyXG4gICAgMjYgSnVuIDIwMjBcclxuXHJcbiAgVmVyc2lvbjpcclxuICAgIDEuMFxyXG5cclxuICBDb3B5cmlnaHQgKGMpIDIwMTYtMjAyMCBPc292aXRueSBJbmMuIEFsbCByaWdodHMgcmVzZXJ2ZWQuXHJcbjwvZmlsZT5cclxuKi9cclxuXHJcbmV4cG9ydCAqIGZyb20gXCIuL2FsZXJ0c1wiO1xyXG5leHBvcnQgKiBmcm9tIFwiLi91dGlsc1wiO1xyXG5leHBvcnQgKiBmcm9tIFwiLi9zdWJzXCI7XHJcbmV4cG9ydCAqIGZyb20gXCIuL2d1aWRcIjtcclxuXHJcbi8vR29cclxuZXhwb3J0ICogZnJvbSBcIi4vZ28vYmFzZS1nby5zZXJ2aWNlXCI7XHJcblxyXG4vL1NlcnZpY2VzXHJcbmV4cG9ydCAqIGZyb20gXCIuL3NlcnZpY2VzL2FwcGNvbnRleHQuc2VydmljZVwiO1xyXG5leHBvcnQgKiBmcm9tIFwiLi9sb2dnaW5nL2xvZ2dpbmcuc2VydmljZVwiO1xyXG5leHBvcnQgKiBmcm9tIFwiLi9sb2dnaW5nL2dsb2JhbEVycm9ySGFuZGxlclwiO1xyXG5cclxuLy9Nb2R1bGVcclxuZXhwb3J0IHsgQW5hdG9seUNvcmVNb2R1bGUgfSBmcm9tIFwiLi9jb3JlLm1vZHVsZVwiO1xyXG4iXX0=
|
package/esm2015/lib/ui/index.js
CHANGED
|
@@ -16,9 +16,6 @@
|
|
|
16
16
|
Copyright (c) 2016-2020 Osovitny Inc. All rights reserved.
|
|
17
17
|
</file>
|
|
18
18
|
*/
|
|
19
|
-
// Node
|
|
20
|
-
// Module
|
|
21
|
-
export { AnatolyUIModule } from "./ui.module";
|
|
22
19
|
// Billing
|
|
23
20
|
export * from "./components/billing/buyaccess-button.component";
|
|
24
21
|
export * from "./components/billing/subscribe-plan-button.component";
|
|
@@ -38,4 +35,6 @@ export * from "./components/validation/item-validation-summary.component";
|
|
|
38
35
|
//
|
|
39
36
|
export * from "./components/base.component";
|
|
40
37
|
export * from "./components/base-edit.component";
|
|
41
|
-
|
|
38
|
+
// Module
|
|
39
|
+
export { AnatolyUIModule } from "./ui.module";
|
|
40
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8u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Rpb24vZm9ybS12YWxpZGF0aW9uLXN1bW1hcnkuY29tcG9uZW50XCI7XHJcbmV4cG9ydCAqIGZyb20gXCIuL2NvbXBvbmVudHMvdmFsaWRhdGlvbi9pdGVtLXZhbGlkYXRpb24tc3VtbWFyeS5jb21wb25lbnRcIjtcclxuXHJcbi8vXHJcbmV4cG9ydCAqIGZyb20gXCIuL2NvbXBvbmVudHMvYmFzZS5jb21wb25lbnRcIjtcclxuZXhwb3J0ICogZnJvbSBcIi4vY29tcG9uZW50cy9iYXNlLWVkaXQuY29tcG9uZW50XCI7XHJcblxyXG4vLyBNb2R1bGVcclxuZXhwb3J0IHsgQW5hdG9seVVJTW9kdWxlIH0gZnJvbSBcIi4vdWkubW9kdWxlXCI7XHJcbiJdfQ==
|
|
@@ -39,7 +39,6 @@ import { HtmlEditorComponent } from "./components/html-editor/html-editor.compon
|
|
|
39
39
|
import { FormsHtmlEditorComponent } from "./components/html-editor/forms-html-editor.component";
|
|
40
40
|
//
|
|
41
41
|
import { ContentHeaderComponent } from "./components/content-header/content-header.component";
|
|
42
|
-
import { Copy2ClipboardComponent } from "./components/copy-2-clipboard/copy-2-clipboard.component";
|
|
43
42
|
export const FroalaEditorModuleWithProviders = FroalaEditorModule.forRoot();
|
|
44
43
|
export const FroalaViewModuleWithProviders = FroalaViewModule.forRoot();
|
|
45
44
|
export class AnatolyUIModule {
|
|
@@ -64,8 +63,7 @@ AnatolyUIModule.decorators = [
|
|
|
64
63
|
ItemValidationSummaryComponent,
|
|
65
64
|
HtmlEditorComponent,
|
|
66
65
|
FormsHtmlEditorComponent,
|
|
67
|
-
ContentHeaderComponent
|
|
68
|
-
Copy2ClipboardComponent,
|
|
66
|
+
ContentHeaderComponent
|
|
69
67
|
],
|
|
70
68
|
exports: [
|
|
71
69
|
SubscribePlanButtonComponent,
|
|
@@ -78,9 +76,8 @@ AnatolyUIModule.decorators = [
|
|
|
78
76
|
ItemValidationSummaryComponent,
|
|
79
77
|
HtmlEditorComponent,
|
|
80
78
|
FormsHtmlEditorComponent,
|
|
81
|
-
ContentHeaderComponent
|
|
82
|
-
Copy2ClipboardComponent,
|
|
79
|
+
ContentHeaderComponent
|
|
83
80
|
],
|
|
84
81
|
},] }
|
|
85
82
|
];
|
|
86
|
-
//# sourceMappingURL=data:application/json;base64,
|
|
83
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidWkubW9kdWxlLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vcHJvamVjdHMvYW5hdG9seS9zcmMvbGliL3VpL3VpLm1vZHVsZS50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQTs7Ozs7Ozs7Ozs7Ozs7Ozs7RUFpQkU7QUFFRixPQUFPO0FBQ1AsT0FBTyxFQUFFLFFBQVEsRUFBdUIsTUFBTSxlQUFlLENBQUM7QUFDOUQsT0FBTyxFQUFFLFlBQVksRUFBRSxNQUFNLGlCQUFpQixDQUFDO0FBQy9DLE9BQU8sRUFBRSxtQkFBbUIsRUFBRSxXQUFXLEVBQUUsTUFBTSxnQkFBZ0IsQ0FBQztBQUVsRSxRQUFRO0FBQ1IsT0FBTyxFQUFFLGtCQUFrQixFQUFFLGdCQUFnQixFQUFFLE1BQU0sd0JBQXdCLENBQUM7QUFFOUUsWUFBWTtBQUNaLFNBQVM7QUFDVCxPQUFPLEVBQUUsNEJBQTRCLEVBQUUsTUFBTSxzREFBc0QsQ0FBQztBQUNwRyxPQUFPLEVBQUUsMEJBQTBCLEVBQUUsTUFBTSxvREFBb0QsQ0FBQztBQUNoRyxPQUFPLEVBQUUsd0JBQXdCLEVBQUUsTUFBTSxpREFBaUQsQ0FBQztBQUUzRixXQUFXO0FBQ1gsT0FBTyxFQUFFLHFCQUFxQixFQUFFLE1BQU0sK0NBQStDLENBQUM7QUFDdEYsT0FBTyxFQUFFLHFCQUFxQixFQUFFLE1BQU0sK0NBQStDLENBQUM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udCxcclxuICAgIFNpZ25VcEJ1dHRvbkNvbXBvbmVudCxcclxuICAgIFNpZ25PdXRCdXR0b25Db21wb25lbnQsXHJcbiAgICBGb3JtVmFsaWRhdGlvblN1bW1hcnlDb21wb25lbnQsXHJcbiAgICBJdGVtVmFsaWRhdGlvblN1bW1hcnlDb21wb25lbnQsXHJcbiAgICBIdG1sRWRpdG9yQ29tcG9uZW50LFxyXG4gICAgRm9ybXNIdG1sRWRpdG9yQ29tcG9uZW50LFxyXG4gICAgQ29udGVudEhlYWRlckNvbXBvbmVudFxyXG4gIF0sXHJcbiAgZXhwb3J0czogW1xyXG4gICAgU3Vic2NyaWJlUGxhbkJ1dHRvbkNvbXBvbmVudCxcclxuICAgIFVwZ3JhZGVQbGFuQnV0dG9uQ29tcG9uZW50LFxyXG4gICAgQnV5QWNjZXNzQnV0dG9uQ29tcG9uZW50LFxyXG4gICAgU2lnbkluQnV0dG9uQ29tcG9uZW50LFxyXG4gICAgU2lnblVwQnV0dG9uQ29tcG9uZW50LFxyXG4gICAgU2lnbk91dEJ1dHRvbkNvbXBvbmVudCxcclxuICAgIEZvcm1WYWxpZGF0aW9uU3VtbWFyeUNvbXBvbmVudCxcclxuICAgIEl0ZW1WYWxpZGF0aW9uU3VtbWFyeUNvbXBvbmVudCxcclxuICAgIEh0bWxFZGl0b3JDb21wb25lbnQsXHJcbiAgICBGb3Jtc0h0bWxFZGl0b3JDb21wb25lbnQsXHJcbiAgICBDb250ZW50SGVhZGVyQ29tcG9uZW50XHJcbiAgXSxcclxufSlcclxuZXhwb3J0IGNsYXNzIEFuYXRvbHlVSU1vZHVsZSB7fVxyXG4iXX0=
|
|
@@ -574,7 +574,7 @@ AnatolyCoreModule.ctorParameters = () => [
|
|
|
574
574
|
<file>
|
|
575
575
|
Project:
|
|
576
576
|
@osovitny/anatoly
|
|
577
|
-
|
|
577
|
+
./go/base-go.service
|
|
578
578
|
Authors:
|
|
579
579
|
Vadim Osovitny
|
|
580
580
|
Anatoly Osovitny
|
|
@@ -826,6 +826,74 @@ AnatolyDataModule.decorators = [
|
|
|
826
826
|
</file>
|
|
827
827
|
*/
|
|
828
828
|
|
|
829
|
+
/*
|
|
830
|
+
<file>
|
|
831
|
+
Project:
|
|
832
|
+
@osovitny/anatoly
|
|
833
|
+
|
|
834
|
+
Authors:
|
|
835
|
+
Vadim Osovitny
|
|
836
|
+
Anatoly Osovitny
|
|
837
|
+
|
|
838
|
+
Created:
|
|
839
|
+
14 Aug 2018
|
|
840
|
+
|
|
841
|
+
Version:
|
|
842
|
+
1.0
|
|
843
|
+
|
|
844
|
+
Copyright (c) 2016-2020 Osovitny Inc. All rights reserved.
|
|
845
|
+
</file>
|
|
846
|
+
*/
|
|
847
|
+
class BuyAccessButtonComponent {
|
|
848
|
+
constructor(appcontext, api) {
|
|
849
|
+
this.appcontext = appcontext;
|
|
850
|
+
this.api = api;
|
|
851
|
+
this.contextUpdated = false;
|
|
852
|
+
this.isUserSignedIn = false;
|
|
853
|
+
this.currentPlan = 0;
|
|
854
|
+
this.currentPlanTitle = "";
|
|
855
|
+
}
|
|
856
|
+
ngOnInit() {
|
|
857
|
+
if (!this.appcontext.isUserSignedIn()) {
|
|
858
|
+
this.contextUpdated = true;
|
|
859
|
+
return;
|
|
860
|
+
}
|
|
861
|
+
this.appcontext.getCurrent((current) => {
|
|
862
|
+
this.isUserSignedIn = current.isUserSignedIn;
|
|
863
|
+
if (this.isUserSignedIn) {
|
|
864
|
+
this.currentPlan = current.account.billingPlan;
|
|
865
|
+
this.currentPlanTitle = current.account.billingPlanAsString;
|
|
866
|
+
}
|
|
867
|
+
this.contextUpdated = true;
|
|
868
|
+
});
|
|
869
|
+
}
|
|
870
|
+
onBuyPlan() {
|
|
871
|
+
const text = `Requested plan: ${this.plantitle} `;
|
|
872
|
+
const that = this;
|
|
873
|
+
Alerts.AreYouSure(text, "Buying access", "Confirm change", "Cancel", () => {
|
|
874
|
+
that.api.buyAccess(that.plan, () => {
|
|
875
|
+
Alerts.Success("Access Granted", null, () => {
|
|
876
|
+
window.location.reload();
|
|
877
|
+
});
|
|
878
|
+
});
|
|
879
|
+
});
|
|
880
|
+
}
|
|
881
|
+
}
|
|
882
|
+
BuyAccessButtonComponent.decorators = [
|
|
883
|
+
{ type: Component, args: [{
|
|
884
|
+
selector: "anatoly-buyaccess-button",
|
|
885
|
+
template: "<div *ngIf=\"contextUpdated\">\r\n <div *ngIf=\"!isUserSignedIn\">\r\n <anatoly-signup-button classbtn=\"btn btn-block btn-primary\"></anatoly-signup-button>\r\n </div>\r\n\r\n <div *ngIf=\"isUserSignedIn\">\r\n <button class=\"btn btn-block btn-success selectPlan\" *ngIf=\"plan == currentPlan\">\r\n Your Plan\r\n </button>\r\n\r\n <button class=\"btn btn-block btn-warning selectPlan\" *ngIf=\"plan != currentPlan && currentPlan == 1\" (click)=\"onBuyPlan()\">\r\n Buy Now\r\n </button>\r\n </div>\r\n</div>\r\n"
|
|
886
|
+
},] }
|
|
887
|
+
];
|
|
888
|
+
BuyAccessButtonComponent.ctorParameters = () => [
|
|
889
|
+
{ type: AppContextService },
|
|
890
|
+
{ type: BillingApiService }
|
|
891
|
+
];
|
|
892
|
+
BuyAccessButtonComponent.propDecorators = {
|
|
893
|
+
plan: [{ type: Input }],
|
|
894
|
+
plantitle: [{ type: Input }]
|
|
895
|
+
};
|
|
896
|
+
|
|
829
897
|
/*
|
|
830
898
|
<file>
|
|
831
899
|
Project:
|
|
@@ -945,7 +1013,7 @@ UpgradePlanButtonComponent.propDecorators = {
|
|
|
945
1013
|
Anatoly Osovitny
|
|
946
1014
|
|
|
947
1015
|
Created:
|
|
948
|
-
|
|
1016
|
+
4 Jul 2018
|
|
949
1017
|
|
|
950
1018
|
Version:
|
|
951
1019
|
1.0
|
|
@@ -953,54 +1021,18 @@ UpgradePlanButtonComponent.propDecorators = {
|
|
|
953
1021
|
Copyright (c) 2016-2020 Osovitny Inc. All rights reserved.
|
|
954
1022
|
</file>
|
|
955
1023
|
*/
|
|
956
|
-
class
|
|
957
|
-
constructor(
|
|
958
|
-
this.appcontext = appcontext;
|
|
959
|
-
this.api = api;
|
|
960
|
-
this.contextUpdated = false;
|
|
961
|
-
this.isUserSignedIn = false;
|
|
962
|
-
this.currentPlan = 0;
|
|
963
|
-
this.currentPlanTitle = "";
|
|
964
|
-
}
|
|
965
|
-
ngOnInit() {
|
|
966
|
-
if (!this.appcontext.isUserSignedIn()) {
|
|
967
|
-
this.contextUpdated = true;
|
|
968
|
-
return;
|
|
969
|
-
}
|
|
970
|
-
this.appcontext.getCurrent((current) => {
|
|
971
|
-
this.isUserSignedIn = current.isUserSignedIn;
|
|
972
|
-
if (this.isUserSignedIn) {
|
|
973
|
-
this.currentPlan = current.account.billingPlan;
|
|
974
|
-
this.currentPlanTitle = current.account.billingPlanAsString;
|
|
975
|
-
}
|
|
976
|
-
this.contextUpdated = true;
|
|
977
|
-
});
|
|
978
|
-
}
|
|
979
|
-
onBuyPlan() {
|
|
980
|
-
const text = `Requested plan: ${this.plantitle} `;
|
|
981
|
-
const that = this;
|
|
982
|
-
Alerts.AreYouSure(text, "Buying access", "Confirm change", "Cancel", () => {
|
|
983
|
-
that.api.buyAccess(that.plan, () => {
|
|
984
|
-
Alerts.Success("Access Granted", null, () => {
|
|
985
|
-
window.location.reload();
|
|
986
|
-
});
|
|
987
|
-
});
|
|
988
|
-
});
|
|
989
|
-
}
|
|
1024
|
+
class SignInButtonComponent {
|
|
1025
|
+
constructor() { }
|
|
990
1026
|
}
|
|
991
|
-
|
|
1027
|
+
SignInButtonComponent.decorators = [
|
|
992
1028
|
{ type: Component, args: [{
|
|
993
|
-
selector: "anatoly-
|
|
994
|
-
template: "<
|
|
1029
|
+
selector: "anatoly-signin-button",
|
|
1030
|
+
template: "<a href=\"identity/signIn\" class=\"{{classbtn}}\">Sign In</a>\r\n"
|
|
995
1031
|
},] }
|
|
996
1032
|
];
|
|
997
|
-
|
|
998
|
-
|
|
999
|
-
{ type:
|
|
1000
|
-
];
|
|
1001
|
-
BuyAccessButtonComponent.propDecorators = {
|
|
1002
|
-
plan: [{ type: Input }],
|
|
1003
|
-
plantitle: [{ type: Input }]
|
|
1033
|
+
SignInButtonComponent.ctorParameters = () => [];
|
|
1034
|
+
SignInButtonComponent.propDecorators = {
|
|
1035
|
+
classbtn: [{ type: Input }]
|
|
1004
1036
|
};
|
|
1005
1037
|
|
|
1006
1038
|
/*
|
|
@@ -1021,17 +1053,17 @@ BuyAccessButtonComponent.propDecorators = {
|
|
|
1021
1053
|
Copyright (c) 2016-2020 Osovitny Inc. All rights reserved.
|
|
1022
1054
|
</file>
|
|
1023
1055
|
*/
|
|
1024
|
-
class
|
|
1056
|
+
class SignOutButtonComponent {
|
|
1025
1057
|
constructor() { }
|
|
1026
1058
|
}
|
|
1027
|
-
|
|
1059
|
+
SignOutButtonComponent.decorators = [
|
|
1028
1060
|
{ type: Component, args: [{
|
|
1029
|
-
selector: "anatoly-
|
|
1030
|
-
template: "<a href=\"identity/
|
|
1061
|
+
selector: "anatoly-signout-button",
|
|
1062
|
+
template: "<a href=\"identity/signOut\" class=\"{{classbtn}}\">Sign Out</a>\r\n"
|
|
1031
1063
|
},] }
|
|
1032
1064
|
];
|
|
1033
|
-
|
|
1034
|
-
|
|
1065
|
+
SignOutButtonComponent.ctorParameters = () => [];
|
|
1066
|
+
SignOutButtonComponent.propDecorators = {
|
|
1035
1067
|
classbtn: [{ type: Input }]
|
|
1036
1068
|
};
|
|
1037
1069
|
|
|
@@ -1075,7 +1107,7 @@ SignUpButtonComponent.propDecorators = {
|
|
|
1075
1107
|
Anatoly Osovitny
|
|
1076
1108
|
|
|
1077
1109
|
Created:
|
|
1078
|
-
|
|
1110
|
+
23 Apr 2018
|
|
1079
1111
|
|
|
1080
1112
|
Version:
|
|
1081
1113
|
1.0
|
|
@@ -1083,18 +1115,21 @@ SignUpButtonComponent.propDecorators = {
|
|
|
1083
1115
|
Copyright (c) 2016-2020 Osovitny Inc. All rights reserved.
|
|
1084
1116
|
</file>
|
|
1085
1117
|
*/
|
|
1086
|
-
class
|
|
1087
|
-
|
|
1118
|
+
class ContentHeaderComponent {
|
|
1119
|
+
ngOnInit() {
|
|
1120
|
+
if (this.title == null) {
|
|
1121
|
+
this.title = "";
|
|
1122
|
+
}
|
|
1123
|
+
}
|
|
1088
1124
|
}
|
|
1089
|
-
|
|
1125
|
+
ContentHeaderComponent.decorators = [
|
|
1090
1126
|
{ type: Component, args: [{
|
|
1091
|
-
selector: "anatoly-
|
|
1092
|
-
template: "<
|
|
1127
|
+
selector: "anatoly-content-header",
|
|
1128
|
+
template: "<h2 class=\"page-header\">\r\n {{title}}\r\n <!--<small>Optional {{title}}</small>-->\r\n</h2>\r\n"
|
|
1093
1129
|
},] }
|
|
1094
1130
|
];
|
|
1095
|
-
|
|
1096
|
-
|
|
1097
|
-
classbtn: [{ type: Input }]
|
|
1131
|
+
ContentHeaderComponent.propDecorators = {
|
|
1132
|
+
title: [{ type: Input }]
|
|
1098
1133
|
};
|
|
1099
1134
|
|
|
1100
1135
|
/*
|
|
@@ -1199,142 +1234,6 @@ BaseEditComponent.propDecorators = {
|
|
|
1199
1234
|
formSubmitted: [{ type: Input }]
|
|
1200
1235
|
};
|
|
1201
1236
|
|
|
1202
|
-
/*
|
|
1203
|
-
<file>
|
|
1204
|
-
Project:
|
|
1205
|
-
@osovitny/anatoly
|
|
1206
|
-
|
|
1207
|
-
Authors:
|
|
1208
|
-
Vadim Osovitny
|
|
1209
|
-
Anatoly Osovitny
|
|
1210
|
-
|
|
1211
|
-
Created:
|
|
1212
|
-
8 Dec 2017
|
|
1213
|
-
|
|
1214
|
-
Version:
|
|
1215
|
-
1.0
|
|
1216
|
-
|
|
1217
|
-
Copyright (c) 2016-2020 Osovitny Inc. All rights reserved.
|
|
1218
|
-
</file>
|
|
1219
|
-
*/
|
|
1220
|
-
class ValidationSummaryComponent extends BaseEditComponent {
|
|
1221
|
-
constructor() {
|
|
1222
|
-
super();
|
|
1223
|
-
}
|
|
1224
|
-
getFormValidationMessages() {
|
|
1225
|
-
let messages = [];
|
|
1226
|
-
Object.keys(this.formGroup.controls).forEach((k) => {
|
|
1227
|
-
var control = this.formGroup.controls[k];
|
|
1228
|
-
if (control.controls != null) {
|
|
1229
|
-
Object.keys(control.controls).forEach((k) => {
|
|
1230
|
-
var child = control.controls[k];
|
|
1231
|
-
this.getValidationMessages(child, k).forEach((m) => messages.push(m));
|
|
1232
|
-
});
|
|
1233
|
-
}
|
|
1234
|
-
else {
|
|
1235
|
-
this.getValidationMessages(control, k).forEach((m) => messages.push(m));
|
|
1236
|
-
}
|
|
1237
|
-
});
|
|
1238
|
-
return messages;
|
|
1239
|
-
}
|
|
1240
|
-
getValidationMessages(state, thingName) {
|
|
1241
|
-
let thing = state.path || thingName;
|
|
1242
|
-
let messages = [];
|
|
1243
|
-
if (state.errors) {
|
|
1244
|
-
for (let errorName in state.errors) {
|
|
1245
|
-
if (state.errors.hasOwnProperty(errorName)) {
|
|
1246
|
-
switch (errorName) {
|
|
1247
|
-
case "required":
|
|
1248
|
-
messages.push(`${thing} is required`);
|
|
1249
|
-
break;
|
|
1250
|
-
case "minlength":
|
|
1251
|
-
messages.push(`${thing} must be at least ${state.errors["minlength"].requiredLength} characters`);
|
|
1252
|
-
break;
|
|
1253
|
-
case "pattern":
|
|
1254
|
-
messages.push(`${thing} contains illegal characters`);
|
|
1255
|
-
break;
|
|
1256
|
-
}
|
|
1257
|
-
}
|
|
1258
|
-
}
|
|
1259
|
-
}
|
|
1260
|
-
return messages;
|
|
1261
|
-
}
|
|
1262
|
-
}
|
|
1263
|
-
|
|
1264
|
-
/*
|
|
1265
|
-
<file>
|
|
1266
|
-
Project:
|
|
1267
|
-
@osovitny/anatoly
|
|
1268
|
-
|
|
1269
|
-
Authors:
|
|
1270
|
-
Vadim Osovitny
|
|
1271
|
-
Anatoly Osovitny
|
|
1272
|
-
|
|
1273
|
-
Created:
|
|
1274
|
-
7 Dec 2017
|
|
1275
|
-
|
|
1276
|
-
Version:
|
|
1277
|
-
1.0
|
|
1278
|
-
|
|
1279
|
-
Copyright (c) 2016-2020 Osovitny Inc. All rights reserved.
|
|
1280
|
-
</file>
|
|
1281
|
-
*/
|
|
1282
|
-
class FormValidationSummaryComponent extends ValidationSummaryComponent {
|
|
1283
|
-
constructor() {
|
|
1284
|
-
super();
|
|
1285
|
-
this.isVisible = false;
|
|
1286
|
-
}
|
|
1287
|
-
getErrors() {
|
|
1288
|
-
const messages = this.getFormValidationMessages();
|
|
1289
|
-
return messages;
|
|
1290
|
-
}
|
|
1291
|
-
}
|
|
1292
|
-
FormValidationSummaryComponent.decorators = [
|
|
1293
|
-
{ type: Component, args: [{
|
|
1294
|
-
selector: "anatoly-form-validation-summary",
|
|
1295
|
-
template: "<div class=\"callout callout-danger\" *ngIf=\"isVisible\">\r\n <h4 class=\"box-title\">There are problems with the form</h4>\r\n <p *ngFor=\"let error of getErrors()\">\r\n <span class=\"help-block\" style=\"color: white;\">{{ error }}</span>\r\n </p>\r\n</div>\r\n"
|
|
1296
|
-
},] }
|
|
1297
|
-
];
|
|
1298
|
-
FormValidationSummaryComponent.ctorParameters = () => [];
|
|
1299
|
-
FormValidationSummaryComponent.propDecorators = {
|
|
1300
|
-
isVisible: [{ type: Input }]
|
|
1301
|
-
};
|
|
1302
|
-
|
|
1303
|
-
/*
|
|
1304
|
-
<file>
|
|
1305
|
-
Project:
|
|
1306
|
-
@osovitny/anatoly
|
|
1307
|
-
|
|
1308
|
-
Authors:
|
|
1309
|
-
Vadim Osovitny
|
|
1310
|
-
Anatoly Osovitny
|
|
1311
|
-
|
|
1312
|
-
Created:
|
|
1313
|
-
6 Dec 2017
|
|
1314
|
-
|
|
1315
|
-
Version:
|
|
1316
|
-
1.0
|
|
1317
|
-
|
|
1318
|
-
Copyright (c) 2016-2020 Osovitny Inc. All rights reserved.
|
|
1319
|
-
</file>
|
|
1320
|
-
*/
|
|
1321
|
-
class ItemValidationSummaryComponent extends ValidationSummaryComponent {
|
|
1322
|
-
constructor() {
|
|
1323
|
-
super();
|
|
1324
|
-
}
|
|
1325
|
-
}
|
|
1326
|
-
ItemValidationSummaryComponent.decorators = [
|
|
1327
|
-
{ type: Component, args: [{
|
|
1328
|
-
selector: "anatoly-item-validation-summary",
|
|
1329
|
-
template: "<ul class=\"list-unstyled\" *ngIf=\"isItemInvalid(controlName)\">\r\n <li *ngFor=\"let error of getValidationMessages(formGroup.get(controlName), controlTitle)\">\r\n <span class=\"help-block\">{{ error }}</span>\r\n </li>\r\n</ul>\r\n"
|
|
1330
|
-
},] }
|
|
1331
|
-
];
|
|
1332
|
-
ItemValidationSummaryComponent.ctorParameters = () => [];
|
|
1333
|
-
ItemValidationSummaryComponent.propDecorators = {
|
|
1334
|
-
controlName: [{ type: Input }],
|
|
1335
|
-
controlTitle: [{ type: Input }]
|
|
1336
|
-
};
|
|
1337
|
-
|
|
1338
1237
|
/*
|
|
1339
1238
|
<file>
|
|
1340
1239
|
Project:
|
|
@@ -1617,7 +1516,7 @@ FormsHtmlEditorComponent.propDecorators = {
|
|
|
1617
1516
|
Anatoly Osovitny
|
|
1618
1517
|
|
|
1619
1518
|
Created:
|
|
1620
|
-
|
|
1519
|
+
8 Dec 2017
|
|
1621
1520
|
|
|
1622
1521
|
Version:
|
|
1623
1522
|
1.0
|
|
@@ -1625,21 +1524,87 @@ FormsHtmlEditorComponent.propDecorators = {
|
|
|
1625
1524
|
Copyright (c) 2016-2020 Osovitny Inc. All rights reserved.
|
|
1626
1525
|
</file>
|
|
1627
1526
|
*/
|
|
1628
|
-
class
|
|
1629
|
-
|
|
1630
|
-
|
|
1631
|
-
|
|
1527
|
+
class ValidationSummaryComponent extends BaseEditComponent {
|
|
1528
|
+
constructor() {
|
|
1529
|
+
super();
|
|
1530
|
+
}
|
|
1531
|
+
getFormValidationMessages() {
|
|
1532
|
+
let messages = [];
|
|
1533
|
+
Object.keys(this.formGroup.controls).forEach((k) => {
|
|
1534
|
+
var control = this.formGroup.controls[k];
|
|
1535
|
+
if (control.controls != null) {
|
|
1536
|
+
Object.keys(control.controls).forEach((k) => {
|
|
1537
|
+
var child = control.controls[k];
|
|
1538
|
+
this.getValidationMessages(child, k).forEach((m) => messages.push(m));
|
|
1539
|
+
});
|
|
1540
|
+
}
|
|
1541
|
+
else {
|
|
1542
|
+
this.getValidationMessages(control, k).forEach((m) => messages.push(m));
|
|
1543
|
+
}
|
|
1544
|
+
});
|
|
1545
|
+
return messages;
|
|
1546
|
+
}
|
|
1547
|
+
getValidationMessages(state, thingName) {
|
|
1548
|
+
let thing = state.path || thingName;
|
|
1549
|
+
let messages = [];
|
|
1550
|
+
if (state.errors) {
|
|
1551
|
+
for (let errorName in state.errors) {
|
|
1552
|
+
if (state.errors.hasOwnProperty(errorName)) {
|
|
1553
|
+
switch (errorName) {
|
|
1554
|
+
case "required":
|
|
1555
|
+
messages.push(`${thing} is required`);
|
|
1556
|
+
break;
|
|
1557
|
+
case "minlength":
|
|
1558
|
+
messages.push(`${thing} must be at least ${state.errors["minlength"].requiredLength} characters`);
|
|
1559
|
+
break;
|
|
1560
|
+
case "pattern":
|
|
1561
|
+
messages.push(`${thing} contains illegal characters`);
|
|
1562
|
+
break;
|
|
1563
|
+
}
|
|
1564
|
+
}
|
|
1565
|
+
}
|
|
1632
1566
|
}
|
|
1567
|
+
return messages;
|
|
1568
|
+
}
|
|
1569
|
+
}
|
|
1570
|
+
|
|
1571
|
+
/*
|
|
1572
|
+
<file>
|
|
1573
|
+
Project:
|
|
1574
|
+
@osovitny/anatoly
|
|
1575
|
+
|
|
1576
|
+
Authors:
|
|
1577
|
+
Vadim Osovitny
|
|
1578
|
+
Anatoly Osovitny
|
|
1579
|
+
|
|
1580
|
+
Created:
|
|
1581
|
+
7 Dec 2017
|
|
1582
|
+
|
|
1583
|
+
Version:
|
|
1584
|
+
1.0
|
|
1585
|
+
|
|
1586
|
+
Copyright (c) 2016-2020 Osovitny Inc. All rights reserved.
|
|
1587
|
+
</file>
|
|
1588
|
+
*/
|
|
1589
|
+
class FormValidationSummaryComponent extends ValidationSummaryComponent {
|
|
1590
|
+
constructor() {
|
|
1591
|
+
super();
|
|
1592
|
+
this.isVisible = false;
|
|
1593
|
+
}
|
|
1594
|
+
getErrors() {
|
|
1595
|
+
const messages = this.getFormValidationMessages();
|
|
1596
|
+
return messages;
|
|
1633
1597
|
}
|
|
1634
1598
|
}
|
|
1635
|
-
|
|
1599
|
+
FormValidationSummaryComponent.decorators = [
|
|
1636
1600
|
{ type: Component, args: [{
|
|
1637
|
-
selector: "anatoly-
|
|
1638
|
-
template: "<
|
|
1601
|
+
selector: "anatoly-form-validation-summary",
|
|
1602
|
+
template: "<div class=\"callout callout-danger\" *ngIf=\"isVisible\">\r\n <h4 class=\"box-title\">There are problems with the form</h4>\r\n <p *ngFor=\"let error of getErrors()\">\r\n <span class=\"help-block\" style=\"color: white;\">{{ error }}</span>\r\n </p>\r\n</div>\r\n"
|
|
1639
1603
|
},] }
|
|
1640
1604
|
];
|
|
1641
|
-
|
|
1642
|
-
|
|
1605
|
+
FormValidationSummaryComponent.ctorParameters = () => [];
|
|
1606
|
+
FormValidationSummaryComponent.propDecorators = {
|
|
1607
|
+
isVisible: [{ type: Input }]
|
|
1643
1608
|
};
|
|
1644
1609
|
|
|
1645
1610
|
/*
|
|
@@ -1652,7 +1617,7 @@ ContentHeaderComponent.propDecorators = {
|
|
|
1652
1617
|
Anatoly Osovitny
|
|
1653
1618
|
|
|
1654
1619
|
Created:
|
|
1655
|
-
|
|
1620
|
+
6 Dec 2017
|
|
1656
1621
|
|
|
1657
1622
|
Version:
|
|
1658
1623
|
1.0
|
|
@@ -1660,27 +1625,21 @@ ContentHeaderComponent.propDecorators = {
|
|
|
1660
1625
|
Copyright (c) 2016-2020 Osovitny Inc. All rights reserved.
|
|
1661
1626
|
</file>
|
|
1662
1627
|
*/
|
|
1663
|
-
class
|
|
1628
|
+
class ItemValidationSummaryComponent extends ValidationSummaryComponent {
|
|
1664
1629
|
constructor() {
|
|
1665
|
-
|
|
1666
|
-
this.text = "";
|
|
1667
|
-
}
|
|
1668
|
-
onCopy2Clipboard(event) {
|
|
1669
|
-
this.tooltip = "Copied";
|
|
1670
|
-
setTimeout(() => {
|
|
1671
|
-
this.tooltip = "Copy to clipboard";
|
|
1672
|
-
}, 1000);
|
|
1673
|
-
Utils.copyToClipBoard(event, this.text);
|
|
1630
|
+
super();
|
|
1674
1631
|
}
|
|
1675
1632
|
}
|
|
1676
|
-
|
|
1633
|
+
ItemValidationSummaryComponent.decorators = [
|
|
1677
1634
|
{ type: Component, args: [{
|
|
1678
|
-
selector: "anatoly-
|
|
1679
|
-
template: "<
|
|
1635
|
+
selector: "anatoly-item-validation-summary",
|
|
1636
|
+
template: "<ul class=\"list-unstyled\" *ngIf=\"isItemInvalid(controlName)\">\r\n <li *ngFor=\"let error of getValidationMessages(formGroup.get(controlName), controlTitle)\">\r\n <span class=\"help-block\">{{ error }}</span>\r\n </li>\r\n</ul>\r\n"
|
|
1680
1637
|
},] }
|
|
1681
1638
|
];
|
|
1682
|
-
|
|
1683
|
-
|
|
1639
|
+
ItemValidationSummaryComponent.ctorParameters = () => [];
|
|
1640
|
+
ItemValidationSummaryComponent.propDecorators = {
|
|
1641
|
+
controlName: [{ type: Input }],
|
|
1642
|
+
controlTitle: [{ type: Input }]
|
|
1684
1643
|
};
|
|
1685
1644
|
|
|
1686
1645
|
/*
|
|
@@ -1725,8 +1684,7 @@ AnatolyUIModule.decorators = [
|
|
|
1725
1684
|
ItemValidationSummaryComponent,
|
|
1726
1685
|
HtmlEditorComponent,
|
|
1727
1686
|
FormsHtmlEditorComponent,
|
|
1728
|
-
ContentHeaderComponent
|
|
1729
|
-
Copy2ClipboardComponent,
|
|
1687
|
+
ContentHeaderComponent
|
|
1730
1688
|
],
|
|
1731
1689
|
exports: [
|
|
1732
1690
|
SubscribePlanButtonComponent,
|
|
@@ -1739,8 +1697,7 @@ AnatolyUIModule.decorators = [
|
|
|
1739
1697
|
ItemValidationSummaryComponent,
|
|
1740
1698
|
HtmlEditorComponent,
|
|
1741
1699
|
FormsHtmlEditorComponent,
|
|
1742
|
-
ContentHeaderComponent
|
|
1743
|
-
Copy2ClipboardComponent,
|
|
1700
|
+
ContentHeaderComponent
|
|
1744
1701
|
],
|
|
1745
1702
|
},] }
|
|
1746
1703
|
];
|