@gravitee/ui-particles-angular 4.13.0 → 5.0.0
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/{esm2015/gravitee-ui-particles-angular.js → esm2020/gravitee-ui-particles-angular.mjs} +0 -0
- package/{esm2015/lib/gio-avatar/gio-avatar.component.js → esm2020/lib/gio-avatar/gio-avatar.component.mjs} +5 -9
- package/{esm2015/lib/gio-avatar/gio-avatar.module.js → esm2020/lib/gio-avatar/gio-avatar.module.mjs} +5 -6
- package/{esm2015/lib/gio-avatar/index.js → esm2020/lib/gio-avatar/index.mjs} +0 -0
- package/esm2020/lib/gio-banner/gio-banner.component.mjs +101 -0
- package/{esm2015/lib/gio-banner/gio-banner.module.js → esm2020/lib/gio-banner/gio-banner.module.mjs} +5 -12
- package/{esm2015/lib/gio-breadcrumb/gio-breadcrumb-item.directive.js → esm2020/lib/gio-breadcrumb/gio-breadcrumb-item.directive.mjs} +3 -3
- package/esm2020/lib/gio-breadcrumb/gio-breadcrumb.component.mjs +32 -0
- package/{esm2015/lib/gio-breadcrumb/gio-breadcrumb.module.js → esm2020/lib/gio-breadcrumb/gio-breadcrumb.module.mjs} +5 -6
- package/{esm2015/lib/gio-breadcrumb/index.js → esm2020/lib/gio-breadcrumb/index.mjs} +0 -0
- package/esm2020/lib/gio-confirm-and-validate-dialog/gio-confirm-and-validate-dialog.component.mjs +55 -0
- package/esm2020/lib/gio-confirm-and-validate-dialog/gio-confirm-and-validate-dialog.harness.mjs +40 -0
- package/{esm2015/lib/gio-confirm-and-validate-dialog/gio-confirm-and-validate-dialog.module.js → esm2020/lib/gio-confirm-and-validate-dialog/gio-confirm-and-validate-dialog.module.mjs} +5 -6
- package/esm2020/lib/gio-confirm-dialog/gio-confirm-dialog.component.mjs +40 -0
- package/esm2020/lib/gio-confirm-dialog/gio-confirm-dialog.harness.mjs +34 -0
- package/{esm2015/lib/gio-confirm-dialog/gio-confirm-dialog.module.js → esm2020/lib/gio-confirm-dialog/gio-confirm-dialog.module.mjs} +5 -6
- package/esm2020/lib/gio-form-file-picker/gio-form-file-picker-add-button/gio-form-file-picker-add-button.component.mjs +29 -0
- package/esm2020/lib/gio-form-file-picker/gio-form-file-picker-empty/gio-form-file-picker-empty.component.mjs +27 -0
- package/esm2020/lib/gio-form-file-picker/gio-form-file-picker-label/gio-form-file-picker-label.component.mjs +26 -0
- package/esm2020/lib/gio-form-file-picker/gio-form-file-picker.component.harness.mjs +95 -0
- package/esm2020/lib/gio-form-file-picker/gio-form-file-picker.component.mjs +167 -0
- package/{esm2015/lib/gio-form-file-picker/gio-form-file-picker.model.js → esm2020/lib/gio-form-file-picker/gio-form-file-picker.model.mjs} +0 -0
- package/{esm2015/lib/gio-form-file-picker/gio-form-file-picker.module.js → esm2020/lib/gio-form-file-picker/gio-form-file-picker.module.mjs} +4 -4
- package/{esm2015/lib/gio-form-file-picker/index.js → esm2020/lib/gio-form-file-picker/index.mjs} +0 -0
- package/esm2020/lib/gio-form-headers/gio-form-headers.component.mjs +233 -0
- package/esm2020/lib/gio-form-headers/gio-form-headers.harness.mjs +65 -0
- package/{esm2015/lib/gio-form-headers/gio-form-headers.module.js → esm2020/lib/gio-form-headers/gio-form-headers.module.mjs} +5 -6
- package/esm2020/lib/gio-form-tags-input/gio-form-tags-input.component.mjs +243 -0
- package/esm2020/lib/gio-form-tags-input/gio-form-tags-input.harness.mjs +67 -0
- package/{esm2015/lib/gio-form-tags-input/gio-form-tags-input.module.js → esm2020/lib/gio-form-tags-input/gio-form-tags-input.module.mjs} +5 -6
- package/{esm2015/lib/gio-icons/gio-icons.module.js → esm2020/lib/gio-icons/gio-icons.module.mjs} +5 -6
- package/esm2020/lib/gio-menu/gio-menu-footer/gio-menu-footer.component.mjs +26 -0
- package/esm2020/lib/gio-menu/gio-menu-header/gio-menu-header.component.mjs +26 -0
- package/{esm2015/lib/gio-menu/gio-menu-item/gio-menu-item.component.js → esm2020/lib/gio-menu/gio-menu-item/gio-menu-item.component.mjs} +5 -9
- package/esm2020/lib/gio-menu/gio-menu-list/gio-menu-list.component.mjs +26 -0
- package/esm2020/lib/gio-menu/gio-menu-selector/gio-menu-selector.component.mjs +53 -0
- package/esm2020/lib/gio-menu/gio-menu-selector/gio-menu-selector.harness.mjs +41 -0
- package/esm2020/lib/gio-menu/gio-menu.component.mjs +50 -0
- package/{esm2015/lib/gio-menu/gio-menu.module.js → esm2020/lib/gio-menu/gio-menu.module.mjs} +4 -4
- package/{esm2015/lib/gio-menu/gio-menu.service.js → esm2020/lib/gio-menu/gio-menu.service.mjs} +3 -3
- package/{esm2015/lib/gio-menu/index.js → esm2020/lib/gio-menu/index.mjs} +0 -0
- package/esm2020/lib/gio-save-bar/gio-save-bar.component.mjs +129 -0
- package/esm2020/lib/gio-save-bar/gio-save-bar.harness.mjs +49 -0
- package/{esm2015/lib/gio-save-bar/gio-save-bar.module.js → esm2020/lib/gio-save-bar/gio-save-bar.module.mjs} +5 -6
- package/esm2020/lib/gio-submenu/gio-submenu-group/gio-submenu-group.component.mjs +31 -0
- package/esm2020/lib/gio-submenu/gio-submenu-item/gio-submenu-item.component.mjs +42 -0
- package/{esm2015/lib/gio-submenu/gio-submenu.component.js → esm2020/lib/gio-submenu/gio-submenu.component.mjs} +9 -13
- package/{esm2015/lib/gio-submenu/gio-submenu.module.js → esm2020/lib/gio-submenu/gio-submenu.module.mjs} +4 -4
- package/{esm2015/lib/gio-submenu/index.js → esm2020/lib/gio-submenu/index.mjs} +0 -0
- package/esm2020/lib/gio-top-bar/gio-top-bar-content/gio-top-bar-content.component.mjs +35 -0
- package/esm2020/lib/gio-top-bar/gio-top-bar-link/gio-top-bar-link.component.mjs +35 -0
- package/{esm2015/lib/gio-top-bar/gio-top-bar-link/gio-top-bar-link.module.js → esm2020/lib/gio-top-bar/gio-top-bar-link/gio-top-bar-link.module.mjs} +4 -4
- package/esm2020/lib/gio-top-bar/gio-top-bar-menu/gio-top-bar-menu.component.mjs +26 -0
- package/{esm2015/lib/gio-top-bar/gio-top-bar-menu/gio-top-bar-menu.module.js → esm2020/lib/gio-top-bar/gio-top-bar-menu/gio-top-bar-menu.module.mjs} +4 -4
- package/esm2020/lib/gio-top-bar/gio-top-bar.component.mjs +34 -0
- package/{esm2015/lib/gio-top-bar/gio-top-bar.module.js → esm2020/lib/gio-top-bar/gio-top-bar.module.mjs} +4 -4
- package/{esm2015/lib/gio-top-bar/index.js → esm2020/lib/gio-top-bar/index.mjs} +0 -0
- package/{esm2015/lib/public-api.js → esm2020/lib/public-api.mjs} +0 -0
- package/{esm2015/public-api.js → esm2020/public-api.mjs} +0 -0
- package/fesm2015/{gravitee-ui-particles-angular.js → gravitee-ui-particles-angular.mjs} +223 -413
- package/fesm2015/gravitee-ui-particles-angular.mjs.map +1 -0
- package/fesm2020/gravitee-ui-particles-angular.mjs +2754 -0
- package/fesm2020/gravitee-ui-particles-angular.mjs.map +1 -0
- package/package.json +25 -12
- package/bundles/gravitee-ui-particles-angular.umd.js +0 -3727
- package/bundles/gravitee-ui-particles-angular.umd.js.map +0 -1
- package/esm2015/lib/gio-banner/gio-banner.component.js +0 -121
- package/esm2015/lib/gio-breadcrumb/gio-breadcrumb.component.js +0 -36
- package/esm2015/lib/gio-confirm-and-validate-dialog/gio-confirm-and-validate-dialog.component.js +0 -60
- package/esm2015/lib/gio-confirm-and-validate-dialog/gio-confirm-and-validate-dialog.harness.js +0 -45
- package/esm2015/lib/gio-confirm-dialog/gio-confirm-dialog.component.js +0 -45
- package/esm2015/lib/gio-confirm-dialog/gio-confirm-dialog.harness.js +0 -39
- package/esm2015/lib/gio-form-file-picker/gio-form-file-picker-add-button/gio-form-file-picker-add-button.component.js +0 -34
- package/esm2015/lib/gio-form-file-picker/gio-form-file-picker-empty/gio-form-file-picker-empty.component.js +0 -31
- package/esm2015/lib/gio-form-file-picker/gio-form-file-picker-label/gio-form-file-picker-label.component.js +0 -31
- package/esm2015/lib/gio-form-file-picker/gio-form-file-picker.component.harness.js +0 -114
- package/esm2015/lib/gio-form-file-picker/gio-form-file-picker.component.js +0 -177
- package/esm2015/lib/gio-form-headers/gio-form-headers.component.js +0 -237
- package/esm2015/lib/gio-form-headers/gio-form-headers.harness.js +0 -76
- package/esm2015/lib/gio-form-tags-input/gio-form-tags-input.component.js +0 -255
- package/esm2015/lib/gio-form-tags-input/gio-form-tags-input.harness.js +0 -78
- package/esm2015/lib/gio-menu/gio-menu-footer/gio-menu-footer.component.js +0 -30
- package/esm2015/lib/gio-menu/gio-menu-header/gio-menu-header.component.js +0 -30
- package/esm2015/lib/gio-menu/gio-menu-list/gio-menu-list.component.js +0 -30
- package/esm2015/lib/gio-menu/gio-menu-selector/gio-menu-selector.component.js +0 -57
- package/esm2015/lib/gio-menu/gio-menu-selector/gio-menu-selector.harness.js +0 -48
- package/esm2015/lib/gio-menu/gio-menu.component.js +0 -55
- package/esm2015/lib/gio-save-bar/gio-save-bar.component.js +0 -135
- package/esm2015/lib/gio-save-bar/gio-save-bar.harness.js +0 -60
- package/esm2015/lib/gio-submenu/gio-submenu-group/gio-submenu-group.component.js +0 -35
- package/esm2015/lib/gio-submenu/gio-submenu-item/gio-submenu-item.component.js +0 -47
- package/esm2015/lib/gio-top-bar/gio-top-bar-content/gio-top-bar-content.component.js +0 -39
- package/esm2015/lib/gio-top-bar/gio-top-bar-link/gio-top-bar-link.component.js +0 -39
- package/esm2015/lib/gio-top-bar/gio-top-bar-menu/gio-top-bar-menu.component.js +0 -30
- package/esm2015/lib/gio-top-bar/gio-top-bar.component.js +0 -38
- package/fesm2015/gravitee-ui-particles-angular.js.map +0 -1
|
@@ -1,3727 +0,0 @@
|
|
|
1
|
-
(function (global, factory) {
|
|
2
|
-
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('@angular/animations'), require('@angular/core'), require('rxjs'), require('@angular/material/card'), require('@angular/material/button'), require('@angular/common'), require('@angular/cdk/testing'), require('@angular/cdk/coercion'), require('@angular/material/form-field'), require('lodash'), require('rxjs/operators'), require('@angular/forms'), require('@angular/cdk/a11y'), require('@angular/material/chips'), require('@angular/material/icon'), require('@angular/material/autocomplete'), require('@angular/material/core'), require('@angular/material/input'), require('@angular/material/select'), require('@angular/material/autocomplete/testing'), require('@angular/material/chips/testing'), require('@angular/common/http'), require('@angular/platform-browser'), require('@angular/material/dialog'), require('@angular/material/button/testing'), require('@angular/material/input/testing'), require('@angular/cdk/text-field'), require('ngx-file-helpers'), require('@angular/material/select/testing'), require('jdenticon')) :
|
|
3
|
-
typeof define === 'function' && define.amd ? define('@gravitee/ui-particles-angular', ['exports', '@angular/animations', '@angular/core', 'rxjs', '@angular/material/card', '@angular/material/button', '@angular/common', '@angular/cdk/testing', '@angular/cdk/coercion', '@angular/material/form-field', 'lodash', 'rxjs/operators', '@angular/forms', '@angular/cdk/a11y', '@angular/material/chips', '@angular/material/icon', '@angular/material/autocomplete', '@angular/material/core', '@angular/material/input', '@angular/material/select', '@angular/material/autocomplete/testing', '@angular/material/chips/testing', '@angular/common/http', '@angular/platform-browser', '@angular/material/dialog', '@angular/material/button/testing', '@angular/material/input/testing', '@angular/cdk/text-field', 'ngx-file-helpers', '@angular/material/select/testing', 'jdenticon'], factory) :
|
|
4
|
-
(global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory((global.gravitee = global.gravitee || {}, global.gravitee["ui-particles-angular"] = {}), global.ng.animations, global.ng.core, global.rxjs, global.ng.material.card, global.ng.material.button, global.ng.common, global.ng.cdk.testing, global.ng.cdk.coercion, global.ng.material.formField, global.lodash, global.rxjs.operators, global.ng.forms, global.ng.cdk.a11y, global.ng.material.chips, global.ng.material.icon, global.ng.material.autocomplete, global.ng.material.core, global.ng.material.input, global.ng.material.select, global.ng.material.autocomplete.testing, global.ng.material.chips.testing, global.ng.common.http, global.ng.platformBrowser, global.ng.material.dialog, global.ng.material.button.testing, global.ng.material.input.testing, global.ng.cdk.textField, global.i6$2, global.ng.material.select.testing, global.jdenticon));
|
|
5
|
-
})(this, (function (exports, animations, i0, rxjs, i1, i2, i2$1, testing, coercion, i3, lodash, operators, i7, i2$2, i3$1, i1$1, i5, i6, i6$1, i2$3, testing$2, testing$1, http, i2$4, i1$2, testing$3, testing$4, i10, i6$2, testing$5, jdenticon) { 'use strict';
|
|
6
|
-
|
|
7
|
-
function _interopNamespace(e) {
|
|
8
|
-
if (e && e.__esModule) return e;
|
|
9
|
-
var n = Object.create(null);
|
|
10
|
-
if (e) {
|
|
11
|
-
Object.keys(e).forEach(function (k) {
|
|
12
|
-
if (k !== 'default') {
|
|
13
|
-
var d = Object.getOwnPropertyDescriptor(e, k);
|
|
14
|
-
Object.defineProperty(n, k, d.get ? d : {
|
|
15
|
-
enumerable: true,
|
|
16
|
-
get: function () { return e[k]; }
|
|
17
|
-
});
|
|
18
|
-
}
|
|
19
|
-
});
|
|
20
|
-
}
|
|
21
|
-
n["default"] = e;
|
|
22
|
-
return Object.freeze(n);
|
|
23
|
-
}
|
|
24
|
-
|
|
25
|
-
var i0__namespace = /*#__PURE__*/_interopNamespace(i0);
|
|
26
|
-
var i1__namespace = /*#__PURE__*/_interopNamespace(i1);
|
|
27
|
-
var i2__namespace = /*#__PURE__*/_interopNamespace(i2);
|
|
28
|
-
var i2__namespace$1 = /*#__PURE__*/_interopNamespace(i2$1);
|
|
29
|
-
var i3__namespace$1 = /*#__PURE__*/_interopNamespace(i3);
|
|
30
|
-
var i7__namespace = /*#__PURE__*/_interopNamespace(i7);
|
|
31
|
-
var i2__namespace$2 = /*#__PURE__*/_interopNamespace(i2$2);
|
|
32
|
-
var i3__namespace = /*#__PURE__*/_interopNamespace(i3$1);
|
|
33
|
-
var i1__namespace$1 = /*#__PURE__*/_interopNamespace(i1$1);
|
|
34
|
-
var i5__namespace = /*#__PURE__*/_interopNamespace(i5);
|
|
35
|
-
var i6__namespace = /*#__PURE__*/_interopNamespace(i6);
|
|
36
|
-
var i6__namespace$1 = /*#__PURE__*/_interopNamespace(i6$1);
|
|
37
|
-
var i2__namespace$4 = /*#__PURE__*/_interopNamespace(i2$3);
|
|
38
|
-
var i2__namespace$3 = /*#__PURE__*/_interopNamespace(i2$4);
|
|
39
|
-
var i1__namespace$2 = /*#__PURE__*/_interopNamespace(i1$2);
|
|
40
|
-
var i10__namespace = /*#__PURE__*/_interopNamespace(i10);
|
|
41
|
-
var i6__namespace$2 = /*#__PURE__*/_interopNamespace(i6$2);
|
|
42
|
-
|
|
43
|
-
/*
|
|
44
|
-
* Copyright (C) 2015 The Gravitee team (http://gravitee.io)
|
|
45
|
-
*
|
|
46
|
-
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
47
|
-
* you may not use this file except in compliance with the License.
|
|
48
|
-
* You may obtain a copy of the License at
|
|
49
|
-
*
|
|
50
|
-
* http://www.apache.org/licenses/LICENSE-2.0
|
|
51
|
-
*
|
|
52
|
-
* Unless required by applicable law or agreed to in writing, software
|
|
53
|
-
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
54
|
-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
55
|
-
* See the License for the specific language governing permissions and
|
|
56
|
-
* limitations under the License.
|
|
57
|
-
*/
|
|
58
|
-
var GioSaveBarComponent = /** @class */ (function () {
|
|
59
|
-
function GioSaveBarComponent() {
|
|
60
|
-
this.isSubmitted = false;
|
|
61
|
-
this.opened = false;
|
|
62
|
-
/**
|
|
63
|
-
* When true, the submit button have invalidate display
|
|
64
|
-
* And on submit clicked the output event is emit on submitInvalidState (and not on submit)
|
|
65
|
-
*/
|
|
66
|
-
this.invalidState = false;
|
|
67
|
-
this.creationMode = false;
|
|
68
|
-
this.hasSubmitLock = true;
|
|
69
|
-
this.resetClicked = new i0.EventEmitter();
|
|
70
|
-
this.submitted = new i0.EventEmitter();
|
|
71
|
-
this.submittedInvalidState = new i0.EventEmitter();
|
|
72
|
-
}
|
|
73
|
-
Object.defineProperty(GioSaveBarComponent.prototype, "isSticky", {
|
|
74
|
-
get: function () {
|
|
75
|
-
return !this.creationMode;
|
|
76
|
-
},
|
|
77
|
-
enumerable: false,
|
|
78
|
-
configurable: true
|
|
79
|
-
});
|
|
80
|
-
Object.defineProperty(GioSaveBarComponent.prototype, "isOpen", {
|
|
81
|
-
get: function () {
|
|
82
|
-
if (this.creationMode) {
|
|
83
|
-
return true;
|
|
84
|
-
}
|
|
85
|
-
if (this.form) {
|
|
86
|
-
return this.form.dirty;
|
|
87
|
-
}
|
|
88
|
-
return this.opened;
|
|
89
|
-
},
|
|
90
|
-
enumerable: false,
|
|
91
|
-
configurable: true
|
|
92
|
-
});
|
|
93
|
-
GioSaveBarComponent.prototype.onResetClicked = function () {
|
|
94
|
-
if (this.form) {
|
|
95
|
-
this.form.reset(this.formInitialValues);
|
|
96
|
-
this.form.markAsPristine();
|
|
97
|
-
}
|
|
98
|
-
this.resetClicked.emit();
|
|
99
|
-
};
|
|
100
|
-
GioSaveBarComponent.prototype.onDisableSubmitLock = function () {
|
|
101
|
-
this.hasSubmitLock = false;
|
|
102
|
-
};
|
|
103
|
-
GioSaveBarComponent.prototype.onSubmitClicked = function () {
|
|
104
|
-
var _this = this;
|
|
105
|
-
var _a;
|
|
106
|
-
if ((this.form && this.form.invalid) || this.invalidState) {
|
|
107
|
-
(_a = this.form) === null || _a === void 0 ? void 0 : _a.markAllAsTouched();
|
|
108
|
-
this.submittedInvalidState.emit();
|
|
109
|
-
return;
|
|
110
|
-
}
|
|
111
|
-
if (this.isSubmitted) {
|
|
112
|
-
return;
|
|
113
|
-
}
|
|
114
|
-
this.submitted.emit();
|
|
115
|
-
if (this.hasSubmitLock) {
|
|
116
|
-
this.isSubmitted = true;
|
|
117
|
-
rxjs.timer(2000).subscribe(function () { return (_this.isSubmitted = false); });
|
|
118
|
-
}
|
|
119
|
-
};
|
|
120
|
-
return GioSaveBarComponent;
|
|
121
|
-
}());
|
|
122
|
-
GioSaveBarComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: GioSaveBarComponent, deps: [], target: i0__namespace.ɵɵFactoryTarget.Component });
|
|
123
|
-
GioSaveBarComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.15", type: GioSaveBarComponent, selector: "gio-save-bar", inputs: { opened: "opened", invalidState: "invalidState", creationMode: "creationMode", form: "form", formInitialValues: "formInitialValues" }, outputs: { resetClicked: "resetClicked", submitted: "submitted", submittedInvalidState: "submittedInvalidState" }, host: { listeners: { "disable-submit-lock": "onDisableSubmitLock()" }, properties: { "class.save-bar-sticky": "this.isSticky", "class.is-open": "this.isOpen" } }, ngImport: i0__namespace, template: "<!--\n\n Copyright (C) 2015 The Gravitee team (http://gravitee.io)\n\n Licensed under the Apache License, Version 2.0 (the \"License\");\n you may not use this file except in compliance with the License.\n You may obtain a copy of the License at\n\n http://www.apache.org/licenses/LICENSE-2.0\n\n Unless required by applicable law or agreed to in writing, software\n distributed under the License is distributed on an \"AS IS\" BASIS,\n WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n See the License for the specific language governing permissions and\n limitations under the License.\n\n-->\n\n<div *ngIf=\"isOpen\" [@slideUpDown] [@.disabled]=\"creationMode\">\n <mat-card class=\"save-bar__content\" [class.mat-elevation-z3]=\"creationMode\" [class.mat-elevation-z6]=\"!creationMode\">\n <div class=\"save-bar__content__label\">{{ creationMode ? '' : 'You have unsaved changes' }}</div>\n <div>\n <button *ngIf=\"!creationMode\" class=\"save-bar__content__reset-button\" mat-button type=\"button\" (click)=\"onResetClicked()\">\n Discard\n </button>\n <button\n class=\"save-bar__content__submit-button\"\n [class.invalid]=\"(form && form.invalid) || invalidState\"\n mat-flat-button\n color=\"primary\"\n [type]=\"form ? 'submit' : 'button'\"\n (click)=\"onSubmitClicked()\"\n >\n {{ creationMode ? 'Create' : 'Save' }}\n </button>\n </div>\n </mat-card>\n</div>\n", styles: [":host{z-index:1000;display:block;height:68px;margin-top:32px;visibility:hidden}:host.is-open{visibility:visible}:host(.save-bar-sticky){position:sticky;bottom:0;margin-right:-16px;margin-left:-16px}.save-bar__content{display:flex;height:100%;align-items:center;justify-content:space-between;padding:16px 24px}.save-bar__content__label{font:400 14px / 20px \"Golos UI\",Roboto,\"Helvetica Neue\",sans-serif;letter-spacing:.4px}.save-bar__content__reset-button{margin-right:16px}.save-bar__content__submit-button.invalid{background-color:#d6ffff;color:#000}.save-bar__content__submit-button.invalid:hover:enabled{background-color:#099;color:#fff}\n"], components: [{ type: i1__namespace.MatCard, selector: "mat-card", exportAs: ["matCard"] }, { type: i2__namespace.MatButton, selector: "button[mat-button], button[mat-raised-button], button[mat-icon-button], button[mat-fab], button[mat-mini-fab], button[mat-stroked-button], button[mat-flat-button]", inputs: ["disabled", "disableRipple", "color"], exportAs: ["matButton"] }], directives: [{ type: i2__namespace$1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }], animations: [
|
|
124
|
-
animations.trigger('slideUpDown', [
|
|
125
|
-
animations.transition(':enter', [
|
|
126
|
-
animations.style({ transform: 'translateY(40vh)', opacity: '0' }),
|
|
127
|
-
animations.animate('300ms cubic-bezier(0.4, 0.0, 0.2, 1)', animations.style({ transform: 'translateY(0)', opacity: '1' })),
|
|
128
|
-
]),
|
|
129
|
-
animations.transition(':leave', [
|
|
130
|
-
animations.style({ transform: 'translateY(0)', opacity: '1' }),
|
|
131
|
-
animations.animate('300ms cubic-bezier(0.4, 0.0, 0.2, 1)', animations.style({ transform: 'translateY(40vh)', opacity: '0' })),
|
|
132
|
-
]),
|
|
133
|
-
]),
|
|
134
|
-
] });
|
|
135
|
-
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: GioSaveBarComponent, decorators: [{
|
|
136
|
-
type: i0.Component,
|
|
137
|
-
args: [{
|
|
138
|
-
selector: 'gio-save-bar',
|
|
139
|
-
templateUrl: './gio-save-bar.component.html',
|
|
140
|
-
styleUrls: ['./gio-save-bar.component.scss'],
|
|
141
|
-
animations: [
|
|
142
|
-
animations.trigger('slideUpDown', [
|
|
143
|
-
animations.transition(':enter', [
|
|
144
|
-
animations.style({ transform: 'translateY(40vh)', opacity: '0' }),
|
|
145
|
-
animations.animate('300ms cubic-bezier(0.4, 0.0, 0.2, 1)', animations.style({ transform: 'translateY(0)', opacity: '1' })),
|
|
146
|
-
]),
|
|
147
|
-
animations.transition(':leave', [
|
|
148
|
-
animations.style({ transform: 'translateY(0)', opacity: '1' }),
|
|
149
|
-
animations.animate('300ms cubic-bezier(0.4, 0.0, 0.2, 1)', animations.style({ transform: 'translateY(40vh)', opacity: '0' })),
|
|
150
|
-
]),
|
|
151
|
-
]),
|
|
152
|
-
],
|
|
153
|
-
}]
|
|
154
|
-
}], propDecorators: { isSticky: [{
|
|
155
|
-
type: i0.HostBinding,
|
|
156
|
-
args: ['class.save-bar-sticky']
|
|
157
|
-
}], opened: [{
|
|
158
|
-
type: i0.Input
|
|
159
|
-
}], invalidState: [{
|
|
160
|
-
type: i0.Input
|
|
161
|
-
}], creationMode: [{
|
|
162
|
-
type: i0.Input
|
|
163
|
-
}], form: [{
|
|
164
|
-
type: i0.Input
|
|
165
|
-
}], formInitialValues: [{
|
|
166
|
-
type: i0.Input
|
|
167
|
-
}], resetClicked: [{
|
|
168
|
-
type: i0.Output
|
|
169
|
-
}], submitted: [{
|
|
170
|
-
type: i0.Output
|
|
171
|
-
}], submittedInvalidState: [{
|
|
172
|
-
type: i0.Output
|
|
173
|
-
}], isOpen: [{
|
|
174
|
-
type: i0.HostBinding,
|
|
175
|
-
args: ['class.is-open']
|
|
176
|
-
}], onDisableSubmitLock: [{
|
|
177
|
-
type: i0.HostListener,
|
|
178
|
-
args: ['disable-submit-lock']
|
|
179
|
-
}] } });
|
|
180
|
-
|
|
181
|
-
/*
|
|
182
|
-
* Copyright (C) 2015 The Gravitee team (http://gravitee.io)
|
|
183
|
-
*
|
|
184
|
-
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
185
|
-
* you may not use this file except in compliance with the License.
|
|
186
|
-
* You may obtain a copy of the License at
|
|
187
|
-
*
|
|
188
|
-
* http://www.apache.org/licenses/LICENSE-2.0
|
|
189
|
-
*
|
|
190
|
-
* Unless required by applicable law or agreed to in writing, software
|
|
191
|
-
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
192
|
-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
193
|
-
* See the License for the specific language governing permissions and
|
|
194
|
-
* limitations under the License.
|
|
195
|
-
*/
|
|
196
|
-
var GioSaveBarModule = /** @class */ (function () {
|
|
197
|
-
function GioSaveBarModule() {
|
|
198
|
-
}
|
|
199
|
-
return GioSaveBarModule;
|
|
200
|
-
}());
|
|
201
|
-
GioSaveBarModule.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: GioSaveBarModule, deps: [], target: i0__namespace.ɵɵFactoryTarget.NgModule });
|
|
202
|
-
GioSaveBarModule.ɵmod = i0__namespace.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: GioSaveBarModule, declarations: [GioSaveBarComponent], imports: [i2$1.CommonModule, i1.MatCardModule, i2.MatButtonModule], exports: [GioSaveBarComponent] });
|
|
203
|
-
GioSaveBarModule.ɵinj = i0__namespace.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: GioSaveBarModule, imports: [[i2$1.CommonModule, i1.MatCardModule, i2.MatButtonModule]] });
|
|
204
|
-
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: GioSaveBarModule, decorators: [{
|
|
205
|
-
type: i0.NgModule,
|
|
206
|
-
args: [{
|
|
207
|
-
imports: [i2$1.CommonModule, i1.MatCardModule, i2.MatButtonModule],
|
|
208
|
-
declarations: [GioSaveBarComponent],
|
|
209
|
-
exports: [GioSaveBarComponent],
|
|
210
|
-
entryComponents: [GioSaveBarComponent],
|
|
211
|
-
}]
|
|
212
|
-
}] });
|
|
213
|
-
|
|
214
|
-
/*! *****************************************************************************
|
|
215
|
-
Copyright (c) Microsoft Corporation.
|
|
216
|
-
|
|
217
|
-
Permission to use, copy, modify, and/or distribute this software for any
|
|
218
|
-
purpose with or without fee is hereby granted.
|
|
219
|
-
|
|
220
|
-
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
|
|
221
|
-
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
|
|
222
|
-
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
|
|
223
|
-
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
|
|
224
|
-
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
|
225
|
-
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
226
|
-
PERFORMANCE OF THIS SOFTWARE.
|
|
227
|
-
***************************************************************************** */
|
|
228
|
-
/* global Reflect, Promise */
|
|
229
|
-
var extendStatics = function (d, b) {
|
|
230
|
-
extendStatics = Object.setPrototypeOf ||
|
|
231
|
-
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
232
|
-
function (d, b) { for (var p in b)
|
|
233
|
-
if (Object.prototype.hasOwnProperty.call(b, p))
|
|
234
|
-
d[p] = b[p]; };
|
|
235
|
-
return extendStatics(d, b);
|
|
236
|
-
};
|
|
237
|
-
function __extends(d, b) {
|
|
238
|
-
if (typeof b !== "function" && b !== null)
|
|
239
|
-
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
|
|
240
|
-
extendStatics(d, b);
|
|
241
|
-
function __() { this.constructor = d; }
|
|
242
|
-
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
243
|
-
}
|
|
244
|
-
var __assign = function () {
|
|
245
|
-
__assign = Object.assign || function __assign(t) {
|
|
246
|
-
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
247
|
-
s = arguments[i];
|
|
248
|
-
for (var p in s)
|
|
249
|
-
if (Object.prototype.hasOwnProperty.call(s, p))
|
|
250
|
-
t[p] = s[p];
|
|
251
|
-
}
|
|
252
|
-
return t;
|
|
253
|
-
};
|
|
254
|
-
return __assign.apply(this, arguments);
|
|
255
|
-
};
|
|
256
|
-
function __rest(s, e) {
|
|
257
|
-
var t = {};
|
|
258
|
-
for (var p in s)
|
|
259
|
-
if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
|
260
|
-
t[p] = s[p];
|
|
261
|
-
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
|
262
|
-
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
263
|
-
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
|
264
|
-
t[p[i]] = s[p[i]];
|
|
265
|
-
}
|
|
266
|
-
return t;
|
|
267
|
-
}
|
|
268
|
-
function __decorate(decorators, target, key, desc) {
|
|
269
|
-
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
270
|
-
if (typeof Reflect === "object" && typeof Reflect.decorate === "function")
|
|
271
|
-
r = Reflect.decorate(decorators, target, key, desc);
|
|
272
|
-
else
|
|
273
|
-
for (var i = decorators.length - 1; i >= 0; i--)
|
|
274
|
-
if (d = decorators[i])
|
|
275
|
-
r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
276
|
-
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
277
|
-
}
|
|
278
|
-
function __param(paramIndex, decorator) {
|
|
279
|
-
return function (target, key) { decorator(target, key, paramIndex); };
|
|
280
|
-
}
|
|
281
|
-
function __metadata(metadataKey, metadataValue) {
|
|
282
|
-
if (typeof Reflect === "object" && typeof Reflect.metadata === "function")
|
|
283
|
-
return Reflect.metadata(metadataKey, metadataValue);
|
|
284
|
-
}
|
|
285
|
-
function __awaiter(thisArg, _arguments, P, generator) {
|
|
286
|
-
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
287
|
-
return new (P || (P = Promise))(function (resolve, reject) {
|
|
288
|
-
function fulfilled(value) { try {
|
|
289
|
-
step(generator.next(value));
|
|
290
|
-
}
|
|
291
|
-
catch (e) {
|
|
292
|
-
reject(e);
|
|
293
|
-
} }
|
|
294
|
-
function rejected(value) { try {
|
|
295
|
-
step(generator["throw"](value));
|
|
296
|
-
}
|
|
297
|
-
catch (e) {
|
|
298
|
-
reject(e);
|
|
299
|
-
} }
|
|
300
|
-
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
301
|
-
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
302
|
-
});
|
|
303
|
-
}
|
|
304
|
-
function __generator(thisArg, body) {
|
|
305
|
-
var _ = { label: 0, sent: function () { if (t[0] & 1)
|
|
306
|
-
throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
|
|
307
|
-
return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function () { return this; }), g;
|
|
308
|
-
function verb(n) { return function (v) { return step([n, v]); }; }
|
|
309
|
-
function step(op) {
|
|
310
|
-
if (f)
|
|
311
|
-
throw new TypeError("Generator is already executing.");
|
|
312
|
-
while (_)
|
|
313
|
-
try {
|
|
314
|
-
if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done)
|
|
315
|
-
return t;
|
|
316
|
-
if (y = 0, t)
|
|
317
|
-
op = [op[0] & 2, t.value];
|
|
318
|
-
switch (op[0]) {
|
|
319
|
-
case 0:
|
|
320
|
-
case 1:
|
|
321
|
-
t = op;
|
|
322
|
-
break;
|
|
323
|
-
case 4:
|
|
324
|
-
_.label++;
|
|
325
|
-
return { value: op[1], done: false };
|
|
326
|
-
case 5:
|
|
327
|
-
_.label++;
|
|
328
|
-
y = op[1];
|
|
329
|
-
op = [0];
|
|
330
|
-
continue;
|
|
331
|
-
case 7:
|
|
332
|
-
op = _.ops.pop();
|
|
333
|
-
_.trys.pop();
|
|
334
|
-
continue;
|
|
335
|
-
default:
|
|
336
|
-
if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) {
|
|
337
|
-
_ = 0;
|
|
338
|
-
continue;
|
|
339
|
-
}
|
|
340
|
-
if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) {
|
|
341
|
-
_.label = op[1];
|
|
342
|
-
break;
|
|
343
|
-
}
|
|
344
|
-
if (op[0] === 6 && _.label < t[1]) {
|
|
345
|
-
_.label = t[1];
|
|
346
|
-
t = op;
|
|
347
|
-
break;
|
|
348
|
-
}
|
|
349
|
-
if (t && _.label < t[2]) {
|
|
350
|
-
_.label = t[2];
|
|
351
|
-
_.ops.push(op);
|
|
352
|
-
break;
|
|
353
|
-
}
|
|
354
|
-
if (t[2])
|
|
355
|
-
_.ops.pop();
|
|
356
|
-
_.trys.pop();
|
|
357
|
-
continue;
|
|
358
|
-
}
|
|
359
|
-
op = body.call(thisArg, _);
|
|
360
|
-
}
|
|
361
|
-
catch (e) {
|
|
362
|
-
op = [6, e];
|
|
363
|
-
y = 0;
|
|
364
|
-
}
|
|
365
|
-
finally {
|
|
366
|
-
f = t = 0;
|
|
367
|
-
}
|
|
368
|
-
if (op[0] & 5)
|
|
369
|
-
throw op[1];
|
|
370
|
-
return { value: op[0] ? op[1] : void 0, done: true };
|
|
371
|
-
}
|
|
372
|
-
}
|
|
373
|
-
var __createBinding = Object.create ? (function (o, m, k, k2) {
|
|
374
|
-
if (k2 === undefined)
|
|
375
|
-
k2 = k;
|
|
376
|
-
Object.defineProperty(o, k2, { enumerable: true, get: function () { return m[k]; } });
|
|
377
|
-
}) : (function (o, m, k, k2) {
|
|
378
|
-
if (k2 === undefined)
|
|
379
|
-
k2 = k;
|
|
380
|
-
o[k2] = m[k];
|
|
381
|
-
});
|
|
382
|
-
function __exportStar(m, o) {
|
|
383
|
-
for (var p in m)
|
|
384
|
-
if (p !== "default" && !Object.prototype.hasOwnProperty.call(o, p))
|
|
385
|
-
__createBinding(o, m, p);
|
|
386
|
-
}
|
|
387
|
-
function __values(o) {
|
|
388
|
-
var s = typeof Symbol === "function" && Symbol.iterator, m = s && o[s], i = 0;
|
|
389
|
-
if (m)
|
|
390
|
-
return m.call(o);
|
|
391
|
-
if (o && typeof o.length === "number")
|
|
392
|
-
return {
|
|
393
|
-
next: function () {
|
|
394
|
-
if (o && i >= o.length)
|
|
395
|
-
o = void 0;
|
|
396
|
-
return { value: o && o[i++], done: !o };
|
|
397
|
-
}
|
|
398
|
-
};
|
|
399
|
-
throw new TypeError(s ? "Object is not iterable." : "Symbol.iterator is not defined.");
|
|
400
|
-
}
|
|
401
|
-
function __read(o, n) {
|
|
402
|
-
var m = typeof Symbol === "function" && o[Symbol.iterator];
|
|
403
|
-
if (!m)
|
|
404
|
-
return o;
|
|
405
|
-
var i = m.call(o), r, ar = [], e;
|
|
406
|
-
try {
|
|
407
|
-
while ((n === void 0 || n-- > 0) && !(r = i.next()).done)
|
|
408
|
-
ar.push(r.value);
|
|
409
|
-
}
|
|
410
|
-
catch (error) {
|
|
411
|
-
e = { error: error };
|
|
412
|
-
}
|
|
413
|
-
finally {
|
|
414
|
-
try {
|
|
415
|
-
if (r && !r.done && (m = i["return"]))
|
|
416
|
-
m.call(i);
|
|
417
|
-
}
|
|
418
|
-
finally {
|
|
419
|
-
if (e)
|
|
420
|
-
throw e.error;
|
|
421
|
-
}
|
|
422
|
-
}
|
|
423
|
-
return ar;
|
|
424
|
-
}
|
|
425
|
-
/** @deprecated */
|
|
426
|
-
function __spread() {
|
|
427
|
-
for (var ar = [], i = 0; i < arguments.length; i++)
|
|
428
|
-
ar = ar.concat(__read(arguments[i]));
|
|
429
|
-
return ar;
|
|
430
|
-
}
|
|
431
|
-
/** @deprecated */
|
|
432
|
-
function __spreadArrays() {
|
|
433
|
-
for (var s = 0, i = 0, il = arguments.length; i < il; i++)
|
|
434
|
-
s += arguments[i].length;
|
|
435
|
-
for (var r = Array(s), k = 0, i = 0; i < il; i++)
|
|
436
|
-
for (var a = arguments[i], j = 0, jl = a.length; j < jl; j++, k++)
|
|
437
|
-
r[k] = a[j];
|
|
438
|
-
return r;
|
|
439
|
-
}
|
|
440
|
-
function __spreadArray(to, from, pack) {
|
|
441
|
-
if (pack || arguments.length === 2)
|
|
442
|
-
for (var i = 0, l = from.length, ar; i < l; i++) {
|
|
443
|
-
if (ar || !(i in from)) {
|
|
444
|
-
if (!ar)
|
|
445
|
-
ar = Array.prototype.slice.call(from, 0, i);
|
|
446
|
-
ar[i] = from[i];
|
|
447
|
-
}
|
|
448
|
-
}
|
|
449
|
-
return to.concat(ar || Array.prototype.slice.call(from));
|
|
450
|
-
}
|
|
451
|
-
function __await(v) {
|
|
452
|
-
return this instanceof __await ? (this.v = v, this) : new __await(v);
|
|
453
|
-
}
|
|
454
|
-
function __asyncGenerator(thisArg, _arguments, generator) {
|
|
455
|
-
if (!Symbol.asyncIterator)
|
|
456
|
-
throw new TypeError("Symbol.asyncIterator is not defined.");
|
|
457
|
-
var g = generator.apply(thisArg, _arguments || []), i, q = [];
|
|
458
|
-
return i = {}, verb("next"), verb("throw"), verb("return"), i[Symbol.asyncIterator] = function () { return this; }, i;
|
|
459
|
-
function verb(n) { if (g[n])
|
|
460
|
-
i[n] = function (v) { return new Promise(function (a, b) { q.push([n, v, a, b]) > 1 || resume(n, v); }); }; }
|
|
461
|
-
function resume(n, v) { try {
|
|
462
|
-
step(g[n](v));
|
|
463
|
-
}
|
|
464
|
-
catch (e) {
|
|
465
|
-
settle(q[0][3], e);
|
|
466
|
-
} }
|
|
467
|
-
function step(r) { r.value instanceof __await ? Promise.resolve(r.value.v).then(fulfill, reject) : settle(q[0][2], r); }
|
|
468
|
-
function fulfill(value) { resume("next", value); }
|
|
469
|
-
function reject(value) { resume("throw", value); }
|
|
470
|
-
function settle(f, v) { if (f(v), q.shift(), q.length)
|
|
471
|
-
resume(q[0][0], q[0][1]); }
|
|
472
|
-
}
|
|
473
|
-
function __asyncDelegator(o) {
|
|
474
|
-
var i, p;
|
|
475
|
-
return i = {}, verb("next"), verb("throw", function (e) { throw e; }), verb("return"), i[Symbol.iterator] = function () { return this; }, i;
|
|
476
|
-
function verb(n, f) { i[n] = o[n] ? function (v) { return (p = !p) ? { value: __await(o[n](v)), done: n === "return" } : f ? f(v) : v; } : f; }
|
|
477
|
-
}
|
|
478
|
-
function __asyncValues(o) {
|
|
479
|
-
if (!Symbol.asyncIterator)
|
|
480
|
-
throw new TypeError("Symbol.asyncIterator is not defined.");
|
|
481
|
-
var m = o[Symbol.asyncIterator], i;
|
|
482
|
-
return m ? m.call(o) : (o = typeof __values === "function" ? __values(o) : o[Symbol.iterator](), i = {}, verb("next"), verb("throw"), verb("return"), i[Symbol.asyncIterator] = function () { return this; }, i);
|
|
483
|
-
function verb(n) { i[n] = o[n] && function (v) { return new Promise(function (resolve, reject) { v = o[n](v), settle(resolve, reject, v.done, v.value); }); }; }
|
|
484
|
-
function settle(resolve, reject, d, v) { Promise.resolve(v).then(function (v) { resolve({ value: v, done: d }); }, reject); }
|
|
485
|
-
}
|
|
486
|
-
function __makeTemplateObject(cooked, raw) {
|
|
487
|
-
if (Object.defineProperty) {
|
|
488
|
-
Object.defineProperty(cooked, "raw", { value: raw });
|
|
489
|
-
}
|
|
490
|
-
else {
|
|
491
|
-
cooked.raw = raw;
|
|
492
|
-
}
|
|
493
|
-
return cooked;
|
|
494
|
-
}
|
|
495
|
-
;
|
|
496
|
-
var __setModuleDefault = Object.create ? (function (o, v) {
|
|
497
|
-
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
498
|
-
}) : function (o, v) {
|
|
499
|
-
o["default"] = v;
|
|
500
|
-
};
|
|
501
|
-
function __importStar(mod) {
|
|
502
|
-
if (mod && mod.__esModule)
|
|
503
|
-
return mod;
|
|
504
|
-
var result = {};
|
|
505
|
-
if (mod != null)
|
|
506
|
-
for (var k in mod)
|
|
507
|
-
if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k))
|
|
508
|
-
__createBinding(result, mod, k);
|
|
509
|
-
__setModuleDefault(result, mod);
|
|
510
|
-
return result;
|
|
511
|
-
}
|
|
512
|
-
function __importDefault(mod) {
|
|
513
|
-
return (mod && mod.__esModule) ? mod : { default: mod };
|
|
514
|
-
}
|
|
515
|
-
function __classPrivateFieldGet(receiver, state, kind, f) {
|
|
516
|
-
if (kind === "a" && !f)
|
|
517
|
-
throw new TypeError("Private accessor was defined without a getter");
|
|
518
|
-
if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver))
|
|
519
|
-
throw new TypeError("Cannot read private member from an object whose class did not declare it");
|
|
520
|
-
return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
|
|
521
|
-
}
|
|
522
|
-
function __classPrivateFieldSet(receiver, state, value, kind, f) {
|
|
523
|
-
if (kind === "m")
|
|
524
|
-
throw new TypeError("Private method is not writable");
|
|
525
|
-
if (kind === "a" && !f)
|
|
526
|
-
throw new TypeError("Private accessor was defined without a setter");
|
|
527
|
-
if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver))
|
|
528
|
-
throw new TypeError("Cannot write private member to an object whose class did not declare it");
|
|
529
|
-
return (kind === "a" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value)), value;
|
|
530
|
-
}
|
|
531
|
-
|
|
532
|
-
var GioSaveBarHarness = /** @class */ (function (_super) {
|
|
533
|
-
__extends(GioSaveBarHarness, _super);
|
|
534
|
-
function GioSaveBarHarness() {
|
|
535
|
-
var _this = _super.apply(this, __spreadArray([], __read(arguments))) || this;
|
|
536
|
-
_this.resetButtonSelector = '.save-bar__content__reset-button';
|
|
537
|
-
_this.submitButtonSelector = '.save-bar__content__submit-button';
|
|
538
|
-
_this.getSubmitButton = _this.locatorFor(_this.submitButtonSelector);
|
|
539
|
-
_this.getResetButton = _this.locatorFor(_this.resetButtonSelector);
|
|
540
|
-
return _this;
|
|
541
|
-
}
|
|
542
|
-
GioSaveBarHarness.prototype.isVisible = function () {
|
|
543
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
544
|
-
var submitButton;
|
|
545
|
-
return __generator(this, function (_a) {
|
|
546
|
-
switch (_a.label) {
|
|
547
|
-
case 0: return [4 /*yield*/, this.locatorForOptional(this.submitButtonSelector)()];
|
|
548
|
-
case 1:
|
|
549
|
-
submitButton = _a.sent();
|
|
550
|
-
return [2 /*return*/, submitButton !== null];
|
|
551
|
-
}
|
|
552
|
-
});
|
|
553
|
-
});
|
|
554
|
-
};
|
|
555
|
-
GioSaveBarHarness.prototype.clickSubmit = function () {
|
|
556
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
557
|
-
var host, submitButton;
|
|
558
|
-
return __generator(this, function (_a) {
|
|
559
|
-
switch (_a.label) {
|
|
560
|
-
case 0: return [4 /*yield*/, this.host()];
|
|
561
|
-
case 1:
|
|
562
|
-
host = _a.sent();
|
|
563
|
-
return [4 /*yield*/, host.dispatchEvent('disable-submit-lock')];
|
|
564
|
-
case 2:
|
|
565
|
-
_a.sent();
|
|
566
|
-
return [4 /*yield*/, this.getSubmitButton()];
|
|
567
|
-
case 3:
|
|
568
|
-
submitButton = _a.sent();
|
|
569
|
-
return [2 /*return*/, submitButton.click()];
|
|
570
|
-
}
|
|
571
|
-
});
|
|
572
|
-
});
|
|
573
|
-
};
|
|
574
|
-
GioSaveBarHarness.prototype.isSubmitButtonInvalid = function () {
|
|
575
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
576
|
-
var submitButton;
|
|
577
|
-
return __generator(this, function (_a) {
|
|
578
|
-
switch (_a.label) {
|
|
579
|
-
case 0: return [4 /*yield*/, this.getSubmitButton()];
|
|
580
|
-
case 1:
|
|
581
|
-
submitButton = _a.sent();
|
|
582
|
-
return [2 /*return*/, submitButton.hasClass('invalid')];
|
|
583
|
-
}
|
|
584
|
-
});
|
|
585
|
-
});
|
|
586
|
-
};
|
|
587
|
-
GioSaveBarHarness.prototype.isResetButtonVisible = function () {
|
|
588
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
589
|
-
var submitButton;
|
|
590
|
-
return __generator(this, function (_a) {
|
|
591
|
-
switch (_a.label) {
|
|
592
|
-
case 0: return [4 /*yield*/, this.locatorForOptional(this.resetButtonSelector)()];
|
|
593
|
-
case 1:
|
|
594
|
-
submitButton = _a.sent();
|
|
595
|
-
return [2 /*return*/, submitButton !== null];
|
|
596
|
-
}
|
|
597
|
-
});
|
|
598
|
-
});
|
|
599
|
-
};
|
|
600
|
-
GioSaveBarHarness.prototype.clickReset = function () {
|
|
601
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
602
|
-
var resetButton;
|
|
603
|
-
return __generator(this, function (_a) {
|
|
604
|
-
switch (_a.label) {
|
|
605
|
-
case 0: return [4 /*yield*/, this.getResetButton()];
|
|
606
|
-
case 1:
|
|
607
|
-
resetButton = _a.sent();
|
|
608
|
-
return [2 /*return*/, resetButton.click()];
|
|
609
|
-
}
|
|
610
|
-
});
|
|
611
|
-
});
|
|
612
|
-
};
|
|
613
|
-
return GioSaveBarHarness;
|
|
614
|
-
}(testing.ComponentHarness));
|
|
615
|
-
GioSaveBarHarness.hostSelector = 'gio-save-bar';
|
|
616
|
-
|
|
617
|
-
var GioFormTagsInputComponent = /** @class */ (function () {
|
|
618
|
-
function GioFormTagsInputComponent(
|
|
619
|
-
// From ControlValueAccessor interface
|
|
620
|
-
ngControl, elRef, fm, changeDetectorRef) {
|
|
621
|
-
var _this = this;
|
|
622
|
-
this.ngControl = ngControl;
|
|
623
|
-
this.elRef = elRef;
|
|
624
|
-
this.fm = fm;
|
|
625
|
-
this.changeDetectorRef = changeDetectorRef;
|
|
626
|
-
this._onChange = function () { return ({}); };
|
|
627
|
-
this._onTouched = function () { return ({}); };
|
|
628
|
-
this.touched = false;
|
|
629
|
-
this.ariaLabel = '';
|
|
630
|
-
this.addOnBlur = true;
|
|
631
|
-
/**
|
|
632
|
-
* Function called each time a tag is added, it can be used to hook inside the
|
|
633
|
-
* addition process to, for instance, have custom validation in the components
|
|
634
|
-
* using `gio-form-tags-input`.
|
|
635
|
-
*
|
|
636
|
-
* Parameters are:
|
|
637
|
-
* - `tag`: The value of the tag to add
|
|
638
|
-
* - `validationCb`: The callback function to call when validation is done. If
|
|
639
|
-
* called with `true` it will add the tag, otherwise it will just ignore it
|
|
640
|
-
*/
|
|
641
|
-
this.tagValidationHook = undefined;
|
|
642
|
-
this._tagInput = null;
|
|
643
|
-
this._value = null;
|
|
644
|
-
// From ControlValueAccessor interface
|
|
645
|
-
this.stateChanges = new rxjs.Subject();
|
|
646
|
-
// From ControlValueAccessor interface
|
|
647
|
-
this.id = "gio-form-tags-input-" + GioFormTagsInputComponent.nextId++;
|
|
648
|
-
this._placeholder = '';
|
|
649
|
-
// From ControlValueAccessor interface
|
|
650
|
-
this.focused = false;
|
|
651
|
-
this._required = false;
|
|
652
|
-
this._disabled = false;
|
|
653
|
-
// From ControlValueAccessor interface
|
|
654
|
-
this.describedBy = '';
|
|
655
|
-
// Replace the provider from above with this.
|
|
656
|
-
if (this.ngControl != null) {
|
|
657
|
-
// Setting the value accessor directly (instead of using
|
|
658
|
-
// the providers) to avoid running into a circular import.
|
|
659
|
-
this.ngControl.valueAccessor = this;
|
|
660
|
-
}
|
|
661
|
-
fm.monitor(elRef.nativeElement, true).subscribe(function (origin) {
|
|
662
|
-
_this.focused = !!origin;
|
|
663
|
-
_this._onTouched();
|
|
664
|
-
_this.touched = true;
|
|
665
|
-
_this.stateChanges.next();
|
|
666
|
-
});
|
|
667
|
-
}
|
|
668
|
-
Object.defineProperty(GioFormTagsInputComponent.prototype, "autocompleteOptions", {
|
|
669
|
-
set: function (v) {
|
|
670
|
-
this._autocompleteOptions = v;
|
|
671
|
-
this.initAutocomplete();
|
|
672
|
-
},
|
|
673
|
-
enumerable: false,
|
|
674
|
-
configurable: true
|
|
675
|
-
});
|
|
676
|
-
Object.defineProperty(GioFormTagsInputComponent.prototype, "tagInput", {
|
|
677
|
-
set: function (v) {
|
|
678
|
-
this._tagInput = v;
|
|
679
|
-
this.initAutocomplete();
|
|
680
|
-
},
|
|
681
|
-
enumerable: false,
|
|
682
|
-
configurable: true
|
|
683
|
-
});
|
|
684
|
-
Object.defineProperty(GioFormTagsInputComponent.prototype, "value", {
|
|
685
|
-
// From ControlValueAccessor interface
|
|
686
|
-
get: function () {
|
|
687
|
-
return this._value;
|
|
688
|
-
},
|
|
689
|
-
set: function (_tags) {
|
|
690
|
-
this._value = _tags;
|
|
691
|
-
this._onChange(_tags);
|
|
692
|
-
this.stateChanges.next();
|
|
693
|
-
},
|
|
694
|
-
enumerable: false,
|
|
695
|
-
configurable: true
|
|
696
|
-
});
|
|
697
|
-
Object.defineProperty(GioFormTagsInputComponent.prototype, "placeholder", {
|
|
698
|
-
// From ControlValueAccessor interface
|
|
699
|
-
get: function () {
|
|
700
|
-
return this._placeholder;
|
|
701
|
-
},
|
|
702
|
-
set: function (plh) {
|
|
703
|
-
this._placeholder = plh;
|
|
704
|
-
this.stateChanges.next();
|
|
705
|
-
},
|
|
706
|
-
enumerable: false,
|
|
707
|
-
configurable: true
|
|
708
|
-
});
|
|
709
|
-
Object.defineProperty(GioFormTagsInputComponent.prototype, "empty", {
|
|
710
|
-
// From ControlValueAccessor interface
|
|
711
|
-
get: function () {
|
|
712
|
-
var _a, _b;
|
|
713
|
-
return lodash.isEmpty(this.value) && lodash.isEmpty((_b = (_a = this._tagInput) === null || _a === void 0 ? void 0 : _a.nativeElement) === null || _b === void 0 ? void 0 : _b.value);
|
|
714
|
-
},
|
|
715
|
-
enumerable: false,
|
|
716
|
-
configurable: true
|
|
717
|
-
});
|
|
718
|
-
Object.defineProperty(GioFormTagsInputComponent.prototype, "shouldLabelFloat", {
|
|
719
|
-
// From ControlValueAccessor interface
|
|
720
|
-
get: function () {
|
|
721
|
-
return this.focused || !this.empty;
|
|
722
|
-
},
|
|
723
|
-
enumerable: false,
|
|
724
|
-
configurable: true
|
|
725
|
-
});
|
|
726
|
-
Object.defineProperty(GioFormTagsInputComponent.prototype, "required", {
|
|
727
|
-
// From ControlValueAccessor interface
|
|
728
|
-
get: function () {
|
|
729
|
-
return this._required;
|
|
730
|
-
},
|
|
731
|
-
set: function (req) {
|
|
732
|
-
this._required = coercion.coerceBooleanProperty(req);
|
|
733
|
-
this.stateChanges.next();
|
|
734
|
-
},
|
|
735
|
-
enumerable: false,
|
|
736
|
-
configurable: true
|
|
737
|
-
});
|
|
738
|
-
Object.defineProperty(GioFormTagsInputComponent.prototype, "disabled", {
|
|
739
|
-
// From ControlValueAccessor interface
|
|
740
|
-
get: function () {
|
|
741
|
-
return this._disabled || (this.ngControl && this.ngControl.disabled === true);
|
|
742
|
-
},
|
|
743
|
-
set: function (dis) {
|
|
744
|
-
this._disabled = coercion.coerceBooleanProperty(dis);
|
|
745
|
-
this.stateChanges.next();
|
|
746
|
-
},
|
|
747
|
-
enumerable: false,
|
|
748
|
-
configurable: true
|
|
749
|
-
});
|
|
750
|
-
Object.defineProperty(GioFormTagsInputComponent.prototype, "errorState", {
|
|
751
|
-
// From ControlValueAccessor interface
|
|
752
|
-
get: function () {
|
|
753
|
-
return (this.touched &&
|
|
754
|
-
// if required check if is empty
|
|
755
|
-
((this.required && this.empty) ||
|
|
756
|
-
// if there is a touched control check if there is an error
|
|
757
|
-
(this.ngControl && this.ngControl.touched === true && !!this.ngControl.errors)));
|
|
758
|
-
},
|
|
759
|
-
enumerable: false,
|
|
760
|
-
configurable: true
|
|
761
|
-
});
|
|
762
|
-
GioFormTagsInputComponent.prototype.ngDoCheck = function () {
|
|
763
|
-
// sync control touched with local touched
|
|
764
|
-
if (this.ngControl != null && this.touched !== this.ngControl.touched) {
|
|
765
|
-
this.touched = this.ngControl.touched === true;
|
|
766
|
-
this.stateChanges.next();
|
|
767
|
-
}
|
|
768
|
-
};
|
|
769
|
-
GioFormTagsInputComponent.prototype.ngOnDestroy = function () {
|
|
770
|
-
this.stateChanges.complete();
|
|
771
|
-
this.fm.stopMonitoring(this.elRef.nativeElement);
|
|
772
|
-
};
|
|
773
|
-
// From ControlValueAccessor interface
|
|
774
|
-
GioFormTagsInputComponent.prototype.writeValue = function (value) {
|
|
775
|
-
this._value = value;
|
|
776
|
-
};
|
|
777
|
-
// From ControlValueAccessor interface
|
|
778
|
-
GioFormTagsInputComponent.prototype.registerOnChange = function (fn) {
|
|
779
|
-
this._onChange = fn;
|
|
780
|
-
};
|
|
781
|
-
// From ControlValueAccessor interface
|
|
782
|
-
GioFormTagsInputComponent.prototype.registerOnTouched = function (fn) {
|
|
783
|
-
this._onTouched = fn;
|
|
784
|
-
};
|
|
785
|
-
GioFormTagsInputComponent.prototype.setDescribedByIds = function (ids) {
|
|
786
|
-
this.describedBy = ids.join(' ');
|
|
787
|
-
};
|
|
788
|
-
// From ControlValueAccessor interface
|
|
789
|
-
// eslint-disable-next-line @typescript-eslint/no-unused-vars, @typescript-eslint/no-empty-function
|
|
790
|
-
GioFormTagsInputComponent.prototype.onContainerClick = function (_event) { };
|
|
791
|
-
GioFormTagsInputComponent.prototype.addChipToFormControl = function (event) {
|
|
792
|
-
var _this = this;
|
|
793
|
-
var _a, _b, _c;
|
|
794
|
-
var input = (_a = this._tagInput) === null || _a === void 0 ? void 0 : _a.nativeElement;
|
|
795
|
-
var tagToAdd = ((_b = event.value) !== null && _b !== void 0 ? _b : '').trim();
|
|
796
|
-
if (lodash.isEmpty(tagToAdd)) {
|
|
797
|
-
return;
|
|
798
|
-
}
|
|
799
|
-
// Add the tag only if shouldAddTag in validationCb return true
|
|
800
|
-
// Set default callback if not defined
|
|
801
|
-
var tagValidationHook = (_c = this.tagValidationHook) !== null && _c !== void 0 ? _c : (function (_, validationCb) { return validationCb(true); });
|
|
802
|
-
var validationCb = function (shouldAddTag) {
|
|
803
|
-
var _a;
|
|
804
|
-
// Add new Tag in form control
|
|
805
|
-
if (shouldAddTag) {
|
|
806
|
-
// Delete Tag if already existing
|
|
807
|
-
var formControlValue = __spreadArray([], __read(((_a = _this.value) !== null && _a !== void 0 ? _a : []))).filter(function (v) { return v !== tagToAdd; });
|
|
808
|
-
_this.value = __spreadArray(__spreadArray([], __read(formControlValue)), [tagToAdd]);
|
|
809
|
-
}
|
|
810
|
-
};
|
|
811
|
-
// Reset the input value
|
|
812
|
-
if (input) {
|
|
813
|
-
input.value = '';
|
|
814
|
-
}
|
|
815
|
-
tagValidationHook(tagToAdd, validationCb);
|
|
816
|
-
};
|
|
817
|
-
GioFormTagsInputComponent.prototype.removeChipToFormControl = function (tag) {
|
|
818
|
-
var _a;
|
|
819
|
-
this.value = __spreadArray([], __read(((_a = this.value) !== null && _a !== void 0 ? _a : []))).filter(function (v) { return v !== tag; });
|
|
820
|
-
};
|
|
821
|
-
GioFormTagsInputComponent.prototype.onAutocompleteSelect = function (event) {
|
|
822
|
-
this.addChipToFormControl({ value: event.option.value });
|
|
823
|
-
};
|
|
824
|
-
GioFormTagsInputComponent.prototype.onMatChipTokenEnd = function () {
|
|
825
|
-
var _this = this;
|
|
826
|
-
// Give priority to the `onAutocompleteSelect` when validating with the blur event
|
|
827
|
-
setTimeout(function () {
|
|
828
|
-
var _a, _b;
|
|
829
|
-
_this.addChipToFormControl({ value: (_b = (_a = _this._tagInput) === null || _a === void 0 ? void 0 : _a.nativeElement.value) !== null && _b !== void 0 ? _b : '' });
|
|
830
|
-
}, 100);
|
|
831
|
-
};
|
|
832
|
-
GioFormTagsInputComponent.prototype.initAutocomplete = function () {
|
|
833
|
-
var _this = this;
|
|
834
|
-
var _a;
|
|
835
|
-
if (this._autocompleteOptions && ((_a = this._tagInput) === null || _a === void 0 ? void 0 : _a.nativeElement)) {
|
|
836
|
-
this.autocompleteFilteredOptions$ = rxjs.fromEvent(this._tagInput.nativeElement, 'keyup').pipe(operators.startWith([]), operators.map(function () {
|
|
837
|
-
var _a;
|
|
838
|
-
return ((_a = _this._autocompleteOptions) !== null && _a !== void 0 ? _a : []).filter(function (defaultHeader) { var _a, _b; return defaultHeader.toLowerCase().includes(((_b = (_a = _this._tagInput) === null || _a === void 0 ? void 0 : _a.nativeElement.value) !== null && _b !== void 0 ? _b : '').toLowerCase()); });
|
|
839
|
-
}), operators.distinctUntilChanged());
|
|
840
|
-
this.changeDetectorRef.detectChanges();
|
|
841
|
-
}
|
|
842
|
-
};
|
|
843
|
-
return GioFormTagsInputComponent;
|
|
844
|
-
}());
|
|
845
|
-
GioFormTagsInputComponent.nextId = 0;
|
|
846
|
-
GioFormTagsInputComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: GioFormTagsInputComponent, deps: [{ token: i7__namespace.NgControl, optional: true, self: true }, { token: i0__namespace.ElementRef }, { token: i2__namespace$2.FocusMonitor }, { token: i0__namespace.ChangeDetectorRef }], target: i0__namespace.ɵɵFactoryTarget.Component });
|
|
847
|
-
GioFormTagsInputComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.15", type: GioFormTagsInputComponent, selector: "gio-form-tags-input", inputs: { ariaLabel: ["aria-label", "ariaLabel"], addOnBlur: "addOnBlur", tagValidationHook: "tagValidationHook", autocompleteOptions: "autocompleteOptions", placeholder: "placeholder", required: "required", disabled: "disabled" }, host: { properties: { "id": "this.id", "class.floating": "this.shouldLabelFloat", "attr.aria-describedby": "this.describedBy" } }, providers: [
|
|
848
|
-
{
|
|
849
|
-
provide: i3.MatFormFieldControl,
|
|
850
|
-
useExisting: GioFormTagsInputComponent,
|
|
851
|
-
},
|
|
852
|
-
], viewQueries: [{ propertyName: "tagInput", first: true, predicate: ["tagInput"], descendants: true }], ngImport: i0__namespace, template: "<!--\n\n Copyright (C) 2015 The Gravitee team (http://gravitee.io)\n\n Licensed under the Apache License, Version 2.0 (the \"License\");\n you may not use this file except in compliance with the License.\n You may obtain a copy of the License at\n\n http://www.apache.org/licenses/LICENSE-2.0\n\n Unless required by applicable law or agreed to in writing, software\n distributed under the License is distributed on an \"AS IS\" BASIS,\n WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n See the License for the specific language governing permissions and\n limitations under the License.\n\n-->\n<mat-chip-list #tagChipList [attr.aria-label]=\"ariaLabel\" multiple [disabled]=\"disabled\">\n <mat-chip *ngFor=\"let tag of value\" [selectable]=\"false\" [removable]=\"!disabled\" (removed)=\"removeChipToFormControl(tag)\">\n {{ tag }}\n <mat-icon matChipRemove>cancel</mat-icon>\n </mat-chip>\n <input\n *ngIf=\"!disabled\"\n #tagInput\n [matAutocompleteDisabled]=\"!_autocompleteOptions\"\n [matAutocomplete]=\"auto\"\n [placeholder]=\"placeholder\"\n [matChipInputFor]=\"tagChipList\"\n [matChipInputAddOnBlur]=\"addOnBlur\"\n (matChipInputTokenEnd)=\"onMatChipTokenEnd()\"\n />\n <mat-autocomplete #auto=\"matAutocomplete\" (optionSelected)=\"onAutocompleteSelect($event)\">\n <mat-option *ngFor=\"let value of autocompleteFilteredOptions$ | async\" [value]=\"value\">\n {{ value }}\n </mat-option>\n </mat-autocomplete>\n</mat-chip-list>\n", styles: [""], components: [{ type: i3__namespace.MatChipList, selector: "mat-chip-list", inputs: ["aria-orientation", "multiple", "compareWith", "value", "required", "placeholder", "disabled", "selectable", "tabIndex", "errorStateMatcher"], outputs: ["change", "valueChange"], exportAs: ["matChipList"] }, { type: i1__namespace$1.MatIcon, selector: "mat-icon", inputs: ["color", "inline", "svgIcon", "fontSet", "fontIcon"], exportAs: ["matIcon"] }, { type: i5__namespace.MatAutocomplete, selector: "mat-autocomplete", inputs: ["disableRipple"], exportAs: ["matAutocomplete"] }, { type: i6__namespace.MatOption, selector: "mat-option", exportAs: ["matOption"] }], directives: [{ type: i2__namespace$1.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { type: i3__namespace.MatChip, selector: "mat-basic-chip, [mat-basic-chip], mat-chip, [mat-chip]", inputs: ["color", "disableRipple", "tabIndex", "selected", "value", "selectable", "disabled", "removable"], outputs: ["selectionChange", "destroyed", "removed"], exportAs: ["matChip"] }, { type: i3__namespace.MatChipRemove, selector: "[matChipRemove]" }, { type: i2__namespace$1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i5__namespace.MatAutocompleteTrigger, selector: "input[matAutocomplete], textarea[matAutocomplete]", exportAs: ["matAutocompleteTrigger"] }, { type: i3__namespace.MatChipInput, selector: "input[matChipInputFor]", inputs: ["matChipInputSeparatorKeyCodes", "placeholder", "id", "matChipInputFor", "matChipInputAddOnBlur", "disabled"], outputs: ["matChipInputTokenEnd"], exportAs: ["matChipInput", "matChipInputFor"] }], pipes: { "async": i2__namespace$1.AsyncPipe } });
|
|
853
|
-
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: GioFormTagsInputComponent, decorators: [{
|
|
854
|
-
type: i0.Component,
|
|
855
|
-
args: [{
|
|
856
|
-
selector: 'gio-form-tags-input',
|
|
857
|
-
templateUrl: './gio-form-tags-input.component.html',
|
|
858
|
-
styleUrls: ['./gio-form-tags-input.component.scss'],
|
|
859
|
-
providers: [
|
|
860
|
-
{
|
|
861
|
-
provide: i3.MatFormFieldControl,
|
|
862
|
-
useExisting: GioFormTagsInputComponent,
|
|
863
|
-
},
|
|
864
|
-
],
|
|
865
|
-
}]
|
|
866
|
-
}], ctorParameters: function () {
|
|
867
|
-
return [{ type: i7__namespace.NgControl, decorators: [{
|
|
868
|
-
type: i0.Optional
|
|
869
|
-
}, {
|
|
870
|
-
type: i0.Self
|
|
871
|
-
}] }, { type: i0__namespace.ElementRef }, { type: i2__namespace$2.FocusMonitor }, { type: i0__namespace.ChangeDetectorRef }];
|
|
872
|
-
}, propDecorators: { ariaLabel: [{
|
|
873
|
-
type: i0.Input,
|
|
874
|
-
args: ['aria-label']
|
|
875
|
-
}], addOnBlur: [{
|
|
876
|
-
type: i0.Input
|
|
877
|
-
}], tagValidationHook: [{
|
|
878
|
-
type: i0.Input
|
|
879
|
-
}], autocompleteOptions: [{
|
|
880
|
-
type: i0.Input
|
|
881
|
-
}], tagInput: [{
|
|
882
|
-
type: i0.ViewChild,
|
|
883
|
-
args: ['tagInput']
|
|
884
|
-
}], id: [{
|
|
885
|
-
type: i0.HostBinding,
|
|
886
|
-
args: ['id']
|
|
887
|
-
}], placeholder: [{
|
|
888
|
-
type: i0.Input
|
|
889
|
-
}], shouldLabelFloat: [{
|
|
890
|
-
type: i0.HostBinding,
|
|
891
|
-
args: ['class.floating']
|
|
892
|
-
}], required: [{
|
|
893
|
-
type: i0.Input
|
|
894
|
-
}], disabled: [{
|
|
895
|
-
type: i0.Input
|
|
896
|
-
}], describedBy: [{
|
|
897
|
-
type: i0.HostBinding,
|
|
898
|
-
args: ['attr.aria-describedby']
|
|
899
|
-
}] } });
|
|
900
|
-
|
|
901
|
-
/*
|
|
902
|
-
* Copyright (C) 2015 The Gravitee team (http://gravitee.io)
|
|
903
|
-
*
|
|
904
|
-
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
905
|
-
* you may not use this file except in compliance with the License.
|
|
906
|
-
* You may obtain a copy of the License at
|
|
907
|
-
*
|
|
908
|
-
* http://www.apache.org/licenses/LICENSE-2.0
|
|
909
|
-
*
|
|
910
|
-
* Unless required by applicable law or agreed to in writing, software
|
|
911
|
-
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
912
|
-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
913
|
-
* See the License for the specific language governing permissions and
|
|
914
|
-
* limitations under the License.
|
|
915
|
-
*/
|
|
916
|
-
var GioFormTagsInputModule = /** @class */ (function () {
|
|
917
|
-
function GioFormTagsInputModule() {
|
|
918
|
-
}
|
|
919
|
-
return GioFormTagsInputModule;
|
|
920
|
-
}());
|
|
921
|
-
GioFormTagsInputModule.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: GioFormTagsInputModule, deps: [], target: i0__namespace.ɵɵFactoryTarget.NgModule });
|
|
922
|
-
GioFormTagsInputModule.ɵmod = i0__namespace.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: GioFormTagsInputModule, declarations: [GioFormTagsInputComponent], imports: [i2$1.CommonModule, i2$2.A11yModule, i3$1.MatChipsModule, i6$1.MatInputModule, i7.FormsModule, i1$1.MatIconModule, i5.MatAutocompleteModule, i2$3.MatSelectModule], exports: [GioFormTagsInputComponent] });
|
|
923
|
-
GioFormTagsInputModule.ɵinj = i0__namespace.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: GioFormTagsInputModule, imports: [[i2$1.CommonModule, i2$2.A11yModule, i3$1.MatChipsModule, i6$1.MatInputModule, i7.FormsModule, i1$1.MatIconModule, i5.MatAutocompleteModule, i2$3.MatSelectModule]] });
|
|
924
|
-
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: GioFormTagsInputModule, decorators: [{
|
|
925
|
-
type: i0.NgModule,
|
|
926
|
-
args: [{
|
|
927
|
-
imports: [i2$1.CommonModule, i2$2.A11yModule, i3$1.MatChipsModule, i6$1.MatInputModule, i7.FormsModule, i1$1.MatIconModule, i5.MatAutocompleteModule, i2$3.MatSelectModule],
|
|
928
|
-
declarations: [GioFormTagsInputComponent],
|
|
929
|
-
exports: [GioFormTagsInputComponent],
|
|
930
|
-
entryComponents: [GioFormTagsInputComponent],
|
|
931
|
-
}]
|
|
932
|
-
}] });
|
|
933
|
-
|
|
934
|
-
var GioFormTagsInputHarness = /** @class */ (function (_super) {
|
|
935
|
-
__extends(GioFormTagsInputHarness, _super);
|
|
936
|
-
function GioFormTagsInputHarness() {
|
|
937
|
-
var _this = _super.apply(this, __spreadArray([], __read(arguments))) || this;
|
|
938
|
-
_this.getMatChipListHarness = _this.locatorFor(testing$1.MatChipListHarness);
|
|
939
|
-
return _this;
|
|
940
|
-
}
|
|
941
|
-
/**
|
|
942
|
-
* Gets a `HarnessPredicate` that can be used to search for a `GioFormColorInputHarness` that meets
|
|
943
|
-
* certain criteria.
|
|
944
|
-
*
|
|
945
|
-
* @param options Options for filtering which input instances are considered a match.
|
|
946
|
-
* @return a `HarnessPredicate` configured with the given options.
|
|
947
|
-
*/
|
|
948
|
-
GioFormTagsInputHarness.with = function (options) {
|
|
949
|
-
if (options === void 0) { options = {}; }
|
|
950
|
-
return new testing.HarnessPredicate(GioFormTagsInputHarness, options);
|
|
951
|
-
};
|
|
952
|
-
GioFormTagsInputHarness.prototype.isDisabled = function () {
|
|
953
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
954
|
-
var matChipList;
|
|
955
|
-
return __generator(this, function (_a) {
|
|
956
|
-
switch (_a.label) {
|
|
957
|
-
case 0: return [4 /*yield*/, this.getMatChipListHarness()];
|
|
958
|
-
case 1:
|
|
959
|
-
matChipList = _a.sent();
|
|
960
|
-
return [2 /*return*/, matChipList.isDisabled()];
|
|
961
|
-
}
|
|
962
|
-
});
|
|
963
|
-
});
|
|
964
|
-
};
|
|
965
|
-
GioFormTagsInputHarness.prototype.getTags = function () {
|
|
966
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
967
|
-
var matChipList, chips;
|
|
968
|
-
var _this = this;
|
|
969
|
-
return __generator(this, function (_a) {
|
|
970
|
-
switch (_a.label) {
|
|
971
|
-
case 0: return [4 /*yield*/, this.getMatChipListHarness()];
|
|
972
|
-
case 1:
|
|
973
|
-
matChipList = _a.sent();
|
|
974
|
-
return [4 /*yield*/, matChipList.getChips()];
|
|
975
|
-
case 2:
|
|
976
|
-
chips = _a.sent();
|
|
977
|
-
return [2 /*return*/, testing.parallel(function () { return chips.map(function (chip) { return __awaiter(_this, void 0, void 0, function () { return __generator(this, function (_a) {
|
|
978
|
-
switch (_a.label) {
|
|
979
|
-
case 0: return [4 /*yield*/, chip.getText()];
|
|
980
|
-
case 1: return [2 /*return*/, _a.sent()];
|
|
981
|
-
}
|
|
982
|
-
}); }); }); })];
|
|
983
|
-
}
|
|
984
|
-
});
|
|
985
|
-
});
|
|
986
|
-
};
|
|
987
|
-
GioFormTagsInputHarness.prototype.addTag = function (tag, separatorKey) {
|
|
988
|
-
if (separatorKey === void 0) { separatorKey = testing.TestKey.ENTER; }
|
|
989
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
990
|
-
var matChipList, chipInput;
|
|
991
|
-
return __generator(this, function (_a) {
|
|
992
|
-
switch (_a.label) {
|
|
993
|
-
case 0: return [4 /*yield*/, this.getMatChipListHarness()];
|
|
994
|
-
case 1:
|
|
995
|
-
matChipList = _a.sent();
|
|
996
|
-
return [4 /*yield*/, matChipList.getInput()];
|
|
997
|
-
case 2:
|
|
998
|
-
chipInput = _a.sent();
|
|
999
|
-
return [4 /*yield*/, chipInput.setValue(tag)];
|
|
1000
|
-
case 3:
|
|
1001
|
-
_a.sent();
|
|
1002
|
-
if (!(separatorKey === 'blur')) return [3 /*break*/, 5];
|
|
1003
|
-
return [4 /*yield*/, chipInput.blur()];
|
|
1004
|
-
case 4:
|
|
1005
|
-
_a.sent();
|
|
1006
|
-
return [3 /*break*/, 7];
|
|
1007
|
-
case 5: return [4 /*yield*/, chipInput.sendSeparatorKey(separatorKey)];
|
|
1008
|
-
case 6:
|
|
1009
|
-
_a.sent();
|
|
1010
|
-
_a.label = 7;
|
|
1011
|
-
case 7: return [2 /*return*/];
|
|
1012
|
-
}
|
|
1013
|
-
});
|
|
1014
|
-
});
|
|
1015
|
-
};
|
|
1016
|
-
GioFormTagsInputHarness.prototype.removeTag = function (tag) {
|
|
1017
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
1018
|
-
var matChipList, chips;
|
|
1019
|
-
return __generator(this, function (_a) {
|
|
1020
|
-
switch (_a.label) {
|
|
1021
|
-
case 0: return [4 /*yield*/, this.getMatChipListHarness()];
|
|
1022
|
-
case 1:
|
|
1023
|
-
matChipList = _a.sent();
|
|
1024
|
-
return [4 /*yield*/, matChipList.getChips({ text: tag })];
|
|
1025
|
-
case 2:
|
|
1026
|
-
chips = _a.sent();
|
|
1027
|
-
if (!chips[0]) return [3 /*break*/, 4];
|
|
1028
|
-
return [4 /*yield*/, chips[0].remove()];
|
|
1029
|
-
case 3:
|
|
1030
|
-
_a.sent();
|
|
1031
|
-
_a.label = 4;
|
|
1032
|
-
case 4: return [2 /*return*/];
|
|
1033
|
-
}
|
|
1034
|
-
});
|
|
1035
|
-
});
|
|
1036
|
-
};
|
|
1037
|
-
GioFormTagsInputHarness.prototype.getMatAutocompleteHarness = function () {
|
|
1038
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
1039
|
-
var matAutocompleteHarness;
|
|
1040
|
-
return __generator(this, function (_a) {
|
|
1041
|
-
switch (_a.label) {
|
|
1042
|
-
case 0: return [4 /*yield*/, this.locatorForOptional(testing$2.MatAutocompleteHarness)()];
|
|
1043
|
-
case 1:
|
|
1044
|
-
matAutocompleteHarness = _a.sent();
|
|
1045
|
-
return [2 /*return*/, matAutocompleteHarness];
|
|
1046
|
-
}
|
|
1047
|
-
});
|
|
1048
|
-
});
|
|
1049
|
-
};
|
|
1050
|
-
return GioFormTagsInputHarness;
|
|
1051
|
-
}(testing.ComponentHarness));
|
|
1052
|
-
GioFormTagsInputHarness.hostSelector = 'gio-form-tags-input';
|
|
1053
|
-
|
|
1054
|
-
var GioBannerComponent = /** @class */ (function () {
|
|
1055
|
-
function GioBannerComponent() {
|
|
1056
|
-
this.type = 'info';
|
|
1057
|
-
}
|
|
1058
|
-
return GioBannerComponent;
|
|
1059
|
-
}());
|
|
1060
|
-
GioBannerComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: GioBannerComponent, deps: [], target: i0__namespace.ɵɵFactoryTarget.Component });
|
|
1061
|
-
GioBannerComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.15", type: GioBannerComponent, selector: "gio-banner", inputs: { type: "type" }, ngImport: i0__namespace, template: "<!--\n\n Copyright (C) 2015 The Gravitee team (http://gravitee.io)\n\n Licensed under the Apache License, Version 2.0 (the \"License\");\n you may not use this file except in compliance with the License.\n You may obtain a copy of the License at\n\n http://www.apache.org/licenses/LICENSE-2.0\n\n Unless required by applicable law or agreed to in writing, software\n distributed under the License is distributed on an \"AS IS\" BASIS,\n WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n See the License for the specific language governing permissions and\n limitations under the License.\n\n-->\n<div\n class=\"banner\"\n [class.info]=\"type === 'info'\"\n [class.error]=\"type === 'error'\"\n [class.warning]=\"type === 'warning'\"\n [class.success]=\"type === 'success'\"\n>\n <div class=\"banner__wrapper\">\n <div class=\"banner__wrapper__icon\" [ngSwitch]=\"type\">\n <mat-icon *ngSwitchCase=\"'info'\" svgIcon=\"gio:chat-lines\"></mat-icon>\n <mat-icon *ngSwitchCase=\"'error'\" svgIcon=\"gio:chat-bubble-error\"></mat-icon>\n <mat-icon *ngSwitchCase=\"'warning'\" svgIcon=\"gio:chat-bubble-warning\"></mat-icon>\n <mat-icon *ngSwitchCase=\"'success'\" svgIcon=\"gio:chat-bubble-check\"></mat-icon>\n </div>\n <div class=\"banner__wrapper__head\">\n <div class=\"banner__wrapper__title\">\n <ng-content></ng-content>\n </div>\n <div #body class=\"banner__wrapper__body\" [class.hide]=\"!body.children.length\">\n <ng-content select=\"[gioBannerBody]\"></ng-content>\n </div>\n </div>\n <div #action class=\"banner__wrapper__action\" [class.hide]=\"!action.children.length\">\n <ng-content select=\"[gioBannerAction]\"></ng-content>\n </div>\n </div>\n</div>\n", styles: [":host{display:block;margin:8px 0}.banner{display:flex;flex-direction:column;align-items:stretch;padding:12px 16px;background-color:#fff;border-radius:8px}.banner.error{border:3px solid #ec4899;color:#2c0015}.banner.error .mat-icon{color:#ec4899}.banner.error ::ng-deep a{color:inherit}.banner.info{border:3px solid #009999;color:#001f1f}.banner.info .mat-icon{color:#099}.banner.info ::ng-deep a{color:inherit}.banner.success{border:3px solid #0de598;color:#002c1c}.banner.success .mat-icon{color:#0de598}.banner.success ::ng-deep a{color:inherit}.banner.warning{border:3px solid #fe733f;color:#2c0c01}.banner.warning .mat-icon{color:#fe733f}.banner.warning ::ng-deep a{color:inherit}.banner__wrapper{position:relative;display:flex;align-items:center;font:600 14px / 20px \"Golos UI\",Roboto,\"Helvetica Neue\",sans-serif;letter-spacing:.4px}.banner__wrapper__icon{display:flex;align-self:flex-start;margin-right:16px}.banner__wrapper__head{display:flex;flex:1 1 auto;flex-direction:column;line-height:normal}.banner__wrapper__title{display:flex;flex:1;align-items:center;padding:4px 0}.banner__wrapper__action{align-self:flex-start;padding-left:16px}.banner__wrapper__body{font:400 14px / 20px \"Golos UI\",Roboto,\"Helvetica Neue\",sans-serif;letter-spacing:.4px}.banner__wrapper .hide{display:none}\n"], components: [{ type: i1__namespace$1.MatIcon, selector: "mat-icon", inputs: ["color", "inline", "svgIcon", "fontSet", "fontIcon"], exportAs: ["matIcon"] }], directives: [{ type: i2__namespace$1.NgSwitch, selector: "[ngSwitch]", inputs: ["ngSwitch"] }, { type: i2__namespace$1.NgSwitchCase, selector: "[ngSwitchCase]", inputs: ["ngSwitchCase"] }] });
|
|
1062
|
-
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: GioBannerComponent, decorators: [{
|
|
1063
|
-
type: i0.Component,
|
|
1064
|
-
args: [{
|
|
1065
|
-
selector: 'gio-banner',
|
|
1066
|
-
templateUrl: './gio-banner.component.html',
|
|
1067
|
-
styleUrls: ['./gio-banner.component.scss'],
|
|
1068
|
-
}]
|
|
1069
|
-
}], propDecorators: { type: [{
|
|
1070
|
-
type: i0.Input
|
|
1071
|
-
}] } });
|
|
1072
|
-
var GioBannerBodyDirective = /** @class */ (function () {
|
|
1073
|
-
function GioBannerBodyDirective() {
|
|
1074
|
-
}
|
|
1075
|
-
return GioBannerBodyDirective;
|
|
1076
|
-
}());
|
|
1077
|
-
GioBannerBodyDirective.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: GioBannerBodyDirective, deps: [], target: i0__namespace.ɵɵFactoryTarget.Directive });
|
|
1078
|
-
GioBannerBodyDirective.ɵdir = i0__namespace.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "12.2.15", type: GioBannerBodyDirective, selector: "[gioBannerBody]", ngImport: i0__namespace });
|
|
1079
|
-
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: GioBannerBodyDirective, decorators: [{
|
|
1080
|
-
type: i0.Directive,
|
|
1081
|
-
args: [{
|
|
1082
|
-
selector: '[gioBannerBody]',
|
|
1083
|
-
}]
|
|
1084
|
-
}] });
|
|
1085
|
-
var GioBannerActionDirective = /** @class */ (function () {
|
|
1086
|
-
function GioBannerActionDirective() {
|
|
1087
|
-
}
|
|
1088
|
-
return GioBannerActionDirective;
|
|
1089
|
-
}());
|
|
1090
|
-
GioBannerActionDirective.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: GioBannerActionDirective, deps: [], target: i0__namespace.ɵɵFactoryTarget.Directive });
|
|
1091
|
-
GioBannerActionDirective.ɵdir = i0__namespace.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "12.2.15", type: GioBannerActionDirective, selector: "[gioBannerAction]", ngImport: i0__namespace });
|
|
1092
|
-
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: GioBannerActionDirective, decorators: [{
|
|
1093
|
-
type: i0.Directive,
|
|
1094
|
-
args: [{
|
|
1095
|
-
selector: '[gioBannerAction]',
|
|
1096
|
-
}]
|
|
1097
|
-
}] });
|
|
1098
|
-
var GioBannerErrorComponent = /** @class */ (function (_super) {
|
|
1099
|
-
__extends(GioBannerErrorComponent, _super);
|
|
1100
|
-
function GioBannerErrorComponent() {
|
|
1101
|
-
var _this = _super.apply(this, __spreadArray([], __read(arguments))) || this;
|
|
1102
|
-
_this.type = 'error';
|
|
1103
|
-
return _this;
|
|
1104
|
-
}
|
|
1105
|
-
return GioBannerErrorComponent;
|
|
1106
|
-
}(GioBannerComponent));
|
|
1107
|
-
GioBannerErrorComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: GioBannerErrorComponent, deps: null, target: i0__namespace.ɵɵFactoryTarget.Component });
|
|
1108
|
-
GioBannerErrorComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.15", type: GioBannerErrorComponent, selector: "gio-banner-error", usesInheritance: true, ngImport: i0__namespace, template: "<!--\n\n Copyright (C) 2015 The Gravitee team (http://gravitee.io)\n\n Licensed under the Apache License, Version 2.0 (the \"License\");\n you may not use this file except in compliance with the License.\n You may obtain a copy of the License at\n\n http://www.apache.org/licenses/LICENSE-2.0\n\n Unless required by applicable law or agreed to in writing, software\n distributed under the License is distributed on an \"AS IS\" BASIS,\n WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n See the License for the specific language governing permissions and\n limitations under the License.\n\n-->\n<div\n class=\"banner\"\n [class.info]=\"type === 'info'\"\n [class.error]=\"type === 'error'\"\n [class.warning]=\"type === 'warning'\"\n [class.success]=\"type === 'success'\"\n>\n <div class=\"banner__wrapper\">\n <div class=\"banner__wrapper__icon\" [ngSwitch]=\"type\">\n <mat-icon *ngSwitchCase=\"'info'\" svgIcon=\"gio:chat-lines\"></mat-icon>\n <mat-icon *ngSwitchCase=\"'error'\" svgIcon=\"gio:chat-bubble-error\"></mat-icon>\n <mat-icon *ngSwitchCase=\"'warning'\" svgIcon=\"gio:chat-bubble-warning\"></mat-icon>\n <mat-icon *ngSwitchCase=\"'success'\" svgIcon=\"gio:chat-bubble-check\"></mat-icon>\n </div>\n <div class=\"banner__wrapper__head\">\n <div class=\"banner__wrapper__title\">\n <ng-content></ng-content>\n </div>\n <div #body class=\"banner__wrapper__body\" [class.hide]=\"!body.children.length\">\n <ng-content select=\"[gioBannerBody]\"></ng-content>\n </div>\n </div>\n <div #action class=\"banner__wrapper__action\" [class.hide]=\"!action.children.length\">\n <ng-content select=\"[gioBannerAction]\"></ng-content>\n </div>\n </div>\n</div>\n", styles: [":host{display:block;margin:8px 0}.banner{display:flex;flex-direction:column;align-items:stretch;padding:12px 16px;background-color:#fff;border-radius:8px}.banner.error{border:3px solid #ec4899;color:#2c0015}.banner.error .mat-icon{color:#ec4899}.banner.error ::ng-deep a{color:inherit}.banner.info{border:3px solid #009999;color:#001f1f}.banner.info .mat-icon{color:#099}.banner.info ::ng-deep a{color:inherit}.banner.success{border:3px solid #0de598;color:#002c1c}.banner.success .mat-icon{color:#0de598}.banner.success ::ng-deep a{color:inherit}.banner.warning{border:3px solid #fe733f;color:#2c0c01}.banner.warning .mat-icon{color:#fe733f}.banner.warning ::ng-deep a{color:inherit}.banner__wrapper{position:relative;display:flex;align-items:center;font:600 14px / 20px \"Golos UI\",Roboto,\"Helvetica Neue\",sans-serif;letter-spacing:.4px}.banner__wrapper__icon{display:flex;align-self:flex-start;margin-right:16px}.banner__wrapper__head{display:flex;flex:1 1 auto;flex-direction:column;line-height:normal}.banner__wrapper__title{display:flex;flex:1;align-items:center;padding:4px 0}.banner__wrapper__action{align-self:flex-start;padding-left:16px}.banner__wrapper__body{font:400 14px / 20px \"Golos UI\",Roboto,\"Helvetica Neue\",sans-serif;letter-spacing:.4px}.banner__wrapper .hide{display:none}\n"], components: [{ type: i1__namespace$1.MatIcon, selector: "mat-icon", inputs: ["color", "inline", "svgIcon", "fontSet", "fontIcon"], exportAs: ["matIcon"] }], directives: [{ type: i2__namespace$1.NgSwitch, selector: "[ngSwitch]", inputs: ["ngSwitch"] }, { type: i2__namespace$1.NgSwitchCase, selector: "[ngSwitchCase]", inputs: ["ngSwitchCase"] }] });
|
|
1109
|
-
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: GioBannerErrorComponent, decorators: [{
|
|
1110
|
-
type: i0.Component,
|
|
1111
|
-
args: [{
|
|
1112
|
-
selector: 'gio-banner-error',
|
|
1113
|
-
templateUrl: './gio-banner.component.html',
|
|
1114
|
-
styleUrls: ['./gio-banner.component.scss'],
|
|
1115
|
-
}]
|
|
1116
|
-
}] });
|
|
1117
|
-
var GioBannerInfoComponent = /** @class */ (function (_super) {
|
|
1118
|
-
__extends(GioBannerInfoComponent, _super);
|
|
1119
|
-
function GioBannerInfoComponent() {
|
|
1120
|
-
var _this = _super.apply(this, __spreadArray([], __read(arguments))) || this;
|
|
1121
|
-
_this.type = 'info';
|
|
1122
|
-
return _this;
|
|
1123
|
-
}
|
|
1124
|
-
return GioBannerInfoComponent;
|
|
1125
|
-
}(GioBannerComponent));
|
|
1126
|
-
GioBannerInfoComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: GioBannerInfoComponent, deps: null, target: i0__namespace.ɵɵFactoryTarget.Component });
|
|
1127
|
-
GioBannerInfoComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.15", type: GioBannerInfoComponent, selector: "gio-banner-info", usesInheritance: true, ngImport: i0__namespace, template: "<!--\n\n Copyright (C) 2015 The Gravitee team (http://gravitee.io)\n\n Licensed under the Apache License, Version 2.0 (the \"License\");\n you may not use this file except in compliance with the License.\n You may obtain a copy of the License at\n\n http://www.apache.org/licenses/LICENSE-2.0\n\n Unless required by applicable law or agreed to in writing, software\n distributed under the License is distributed on an \"AS IS\" BASIS,\n WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n See the License for the specific language governing permissions and\n limitations under the License.\n\n-->\n<div\n class=\"banner\"\n [class.info]=\"type === 'info'\"\n [class.error]=\"type === 'error'\"\n [class.warning]=\"type === 'warning'\"\n [class.success]=\"type === 'success'\"\n>\n <div class=\"banner__wrapper\">\n <div class=\"banner__wrapper__icon\" [ngSwitch]=\"type\">\n <mat-icon *ngSwitchCase=\"'info'\" svgIcon=\"gio:chat-lines\"></mat-icon>\n <mat-icon *ngSwitchCase=\"'error'\" svgIcon=\"gio:chat-bubble-error\"></mat-icon>\n <mat-icon *ngSwitchCase=\"'warning'\" svgIcon=\"gio:chat-bubble-warning\"></mat-icon>\n <mat-icon *ngSwitchCase=\"'success'\" svgIcon=\"gio:chat-bubble-check\"></mat-icon>\n </div>\n <div class=\"banner__wrapper__head\">\n <div class=\"banner__wrapper__title\">\n <ng-content></ng-content>\n </div>\n <div #body class=\"banner__wrapper__body\" [class.hide]=\"!body.children.length\">\n <ng-content select=\"[gioBannerBody]\"></ng-content>\n </div>\n </div>\n <div #action class=\"banner__wrapper__action\" [class.hide]=\"!action.children.length\">\n <ng-content select=\"[gioBannerAction]\"></ng-content>\n </div>\n </div>\n</div>\n", styles: [":host{display:block;margin:8px 0}.banner{display:flex;flex-direction:column;align-items:stretch;padding:12px 16px;background-color:#fff;border-radius:8px}.banner.error{border:3px solid #ec4899;color:#2c0015}.banner.error .mat-icon{color:#ec4899}.banner.error ::ng-deep a{color:inherit}.banner.info{border:3px solid #009999;color:#001f1f}.banner.info .mat-icon{color:#099}.banner.info ::ng-deep a{color:inherit}.banner.success{border:3px solid #0de598;color:#002c1c}.banner.success .mat-icon{color:#0de598}.banner.success ::ng-deep a{color:inherit}.banner.warning{border:3px solid #fe733f;color:#2c0c01}.banner.warning .mat-icon{color:#fe733f}.banner.warning ::ng-deep a{color:inherit}.banner__wrapper{position:relative;display:flex;align-items:center;font:600 14px / 20px \"Golos UI\",Roboto,\"Helvetica Neue\",sans-serif;letter-spacing:.4px}.banner__wrapper__icon{display:flex;align-self:flex-start;margin-right:16px}.banner__wrapper__head{display:flex;flex:1 1 auto;flex-direction:column;line-height:normal}.banner__wrapper__title{display:flex;flex:1;align-items:center;padding:4px 0}.banner__wrapper__action{align-self:flex-start;padding-left:16px}.banner__wrapper__body{font:400 14px / 20px \"Golos UI\",Roboto,\"Helvetica Neue\",sans-serif;letter-spacing:.4px}.banner__wrapper .hide{display:none}\n"], components: [{ type: i1__namespace$1.MatIcon, selector: "mat-icon", inputs: ["color", "inline", "svgIcon", "fontSet", "fontIcon"], exportAs: ["matIcon"] }], directives: [{ type: i2__namespace$1.NgSwitch, selector: "[ngSwitch]", inputs: ["ngSwitch"] }, { type: i2__namespace$1.NgSwitchCase, selector: "[ngSwitchCase]", inputs: ["ngSwitchCase"] }] });
|
|
1128
|
-
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: GioBannerInfoComponent, decorators: [{
|
|
1129
|
-
type: i0.Component,
|
|
1130
|
-
args: [{
|
|
1131
|
-
selector: 'gio-banner-info',
|
|
1132
|
-
templateUrl: './gio-banner.component.html',
|
|
1133
|
-
styleUrls: ['./gio-banner.component.scss'],
|
|
1134
|
-
}]
|
|
1135
|
-
}] });
|
|
1136
|
-
var GioBannerSuccessComponent = /** @class */ (function (_super) {
|
|
1137
|
-
__extends(GioBannerSuccessComponent, _super);
|
|
1138
|
-
function GioBannerSuccessComponent() {
|
|
1139
|
-
var _this = _super.apply(this, __spreadArray([], __read(arguments))) || this;
|
|
1140
|
-
_this.type = 'success';
|
|
1141
|
-
return _this;
|
|
1142
|
-
}
|
|
1143
|
-
return GioBannerSuccessComponent;
|
|
1144
|
-
}(GioBannerComponent));
|
|
1145
|
-
GioBannerSuccessComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: GioBannerSuccessComponent, deps: null, target: i0__namespace.ɵɵFactoryTarget.Component });
|
|
1146
|
-
GioBannerSuccessComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.15", type: GioBannerSuccessComponent, selector: "gio-banner-success", usesInheritance: true, ngImport: i0__namespace, template: "<!--\n\n Copyright (C) 2015 The Gravitee team (http://gravitee.io)\n\n Licensed under the Apache License, Version 2.0 (the \"License\");\n you may not use this file except in compliance with the License.\n You may obtain a copy of the License at\n\n http://www.apache.org/licenses/LICENSE-2.0\n\n Unless required by applicable law or agreed to in writing, software\n distributed under the License is distributed on an \"AS IS\" BASIS,\n WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n See the License for the specific language governing permissions and\n limitations under the License.\n\n-->\n<div\n class=\"banner\"\n [class.info]=\"type === 'info'\"\n [class.error]=\"type === 'error'\"\n [class.warning]=\"type === 'warning'\"\n [class.success]=\"type === 'success'\"\n>\n <div class=\"banner__wrapper\">\n <div class=\"banner__wrapper__icon\" [ngSwitch]=\"type\">\n <mat-icon *ngSwitchCase=\"'info'\" svgIcon=\"gio:chat-lines\"></mat-icon>\n <mat-icon *ngSwitchCase=\"'error'\" svgIcon=\"gio:chat-bubble-error\"></mat-icon>\n <mat-icon *ngSwitchCase=\"'warning'\" svgIcon=\"gio:chat-bubble-warning\"></mat-icon>\n <mat-icon *ngSwitchCase=\"'success'\" svgIcon=\"gio:chat-bubble-check\"></mat-icon>\n </div>\n <div class=\"banner__wrapper__head\">\n <div class=\"banner__wrapper__title\">\n <ng-content></ng-content>\n </div>\n <div #body class=\"banner__wrapper__body\" [class.hide]=\"!body.children.length\">\n <ng-content select=\"[gioBannerBody]\"></ng-content>\n </div>\n </div>\n <div #action class=\"banner__wrapper__action\" [class.hide]=\"!action.children.length\">\n <ng-content select=\"[gioBannerAction]\"></ng-content>\n </div>\n </div>\n</div>\n", styles: [":host{display:block;margin:8px 0}.banner{display:flex;flex-direction:column;align-items:stretch;padding:12px 16px;background-color:#fff;border-radius:8px}.banner.error{border:3px solid #ec4899;color:#2c0015}.banner.error .mat-icon{color:#ec4899}.banner.error ::ng-deep a{color:inherit}.banner.info{border:3px solid #009999;color:#001f1f}.banner.info .mat-icon{color:#099}.banner.info ::ng-deep a{color:inherit}.banner.success{border:3px solid #0de598;color:#002c1c}.banner.success .mat-icon{color:#0de598}.banner.success ::ng-deep a{color:inherit}.banner.warning{border:3px solid #fe733f;color:#2c0c01}.banner.warning .mat-icon{color:#fe733f}.banner.warning ::ng-deep a{color:inherit}.banner__wrapper{position:relative;display:flex;align-items:center;font:600 14px / 20px \"Golos UI\",Roboto,\"Helvetica Neue\",sans-serif;letter-spacing:.4px}.banner__wrapper__icon{display:flex;align-self:flex-start;margin-right:16px}.banner__wrapper__head{display:flex;flex:1 1 auto;flex-direction:column;line-height:normal}.banner__wrapper__title{display:flex;flex:1;align-items:center;padding:4px 0}.banner__wrapper__action{align-self:flex-start;padding-left:16px}.banner__wrapper__body{font:400 14px / 20px \"Golos UI\",Roboto,\"Helvetica Neue\",sans-serif;letter-spacing:.4px}.banner__wrapper .hide{display:none}\n"], components: [{ type: i1__namespace$1.MatIcon, selector: "mat-icon", inputs: ["color", "inline", "svgIcon", "fontSet", "fontIcon"], exportAs: ["matIcon"] }], directives: [{ type: i2__namespace$1.NgSwitch, selector: "[ngSwitch]", inputs: ["ngSwitch"] }, { type: i2__namespace$1.NgSwitchCase, selector: "[ngSwitchCase]", inputs: ["ngSwitchCase"] }] });
|
|
1147
|
-
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: GioBannerSuccessComponent, decorators: [{
|
|
1148
|
-
type: i0.Component,
|
|
1149
|
-
args: [{
|
|
1150
|
-
selector: 'gio-banner-success',
|
|
1151
|
-
templateUrl: './gio-banner.component.html',
|
|
1152
|
-
styleUrls: ['./gio-banner.component.scss'],
|
|
1153
|
-
}]
|
|
1154
|
-
}] });
|
|
1155
|
-
var GioBannerWarningComponent = /** @class */ (function (_super) {
|
|
1156
|
-
__extends(GioBannerWarningComponent, _super);
|
|
1157
|
-
function GioBannerWarningComponent() {
|
|
1158
|
-
var _this = _super.apply(this, __spreadArray([], __read(arguments))) || this;
|
|
1159
|
-
_this.type = 'warning';
|
|
1160
|
-
return _this;
|
|
1161
|
-
}
|
|
1162
|
-
return GioBannerWarningComponent;
|
|
1163
|
-
}(GioBannerComponent));
|
|
1164
|
-
GioBannerWarningComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: GioBannerWarningComponent, deps: null, target: i0__namespace.ɵɵFactoryTarget.Component });
|
|
1165
|
-
GioBannerWarningComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.15", type: GioBannerWarningComponent, selector: "gio-banner-warning", usesInheritance: true, ngImport: i0__namespace, template: "<!--\n\n Copyright (C) 2015 The Gravitee team (http://gravitee.io)\n\n Licensed under the Apache License, Version 2.0 (the \"License\");\n you may not use this file except in compliance with the License.\n You may obtain a copy of the License at\n\n http://www.apache.org/licenses/LICENSE-2.0\n\n Unless required by applicable law or agreed to in writing, software\n distributed under the License is distributed on an \"AS IS\" BASIS,\n WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n See the License for the specific language governing permissions and\n limitations under the License.\n\n-->\n<div\n class=\"banner\"\n [class.info]=\"type === 'info'\"\n [class.error]=\"type === 'error'\"\n [class.warning]=\"type === 'warning'\"\n [class.success]=\"type === 'success'\"\n>\n <div class=\"banner__wrapper\">\n <div class=\"banner__wrapper__icon\" [ngSwitch]=\"type\">\n <mat-icon *ngSwitchCase=\"'info'\" svgIcon=\"gio:chat-lines\"></mat-icon>\n <mat-icon *ngSwitchCase=\"'error'\" svgIcon=\"gio:chat-bubble-error\"></mat-icon>\n <mat-icon *ngSwitchCase=\"'warning'\" svgIcon=\"gio:chat-bubble-warning\"></mat-icon>\n <mat-icon *ngSwitchCase=\"'success'\" svgIcon=\"gio:chat-bubble-check\"></mat-icon>\n </div>\n <div class=\"banner__wrapper__head\">\n <div class=\"banner__wrapper__title\">\n <ng-content></ng-content>\n </div>\n <div #body class=\"banner__wrapper__body\" [class.hide]=\"!body.children.length\">\n <ng-content select=\"[gioBannerBody]\"></ng-content>\n </div>\n </div>\n <div #action class=\"banner__wrapper__action\" [class.hide]=\"!action.children.length\">\n <ng-content select=\"[gioBannerAction]\"></ng-content>\n </div>\n </div>\n</div>\n", styles: [":host{display:block;margin:8px 0}.banner{display:flex;flex-direction:column;align-items:stretch;padding:12px 16px;background-color:#fff;border-radius:8px}.banner.error{border:3px solid #ec4899;color:#2c0015}.banner.error .mat-icon{color:#ec4899}.banner.error ::ng-deep a{color:inherit}.banner.info{border:3px solid #009999;color:#001f1f}.banner.info .mat-icon{color:#099}.banner.info ::ng-deep a{color:inherit}.banner.success{border:3px solid #0de598;color:#002c1c}.banner.success .mat-icon{color:#0de598}.banner.success ::ng-deep a{color:inherit}.banner.warning{border:3px solid #fe733f;color:#2c0c01}.banner.warning .mat-icon{color:#fe733f}.banner.warning ::ng-deep a{color:inherit}.banner__wrapper{position:relative;display:flex;align-items:center;font:600 14px / 20px \"Golos UI\",Roboto,\"Helvetica Neue\",sans-serif;letter-spacing:.4px}.banner__wrapper__icon{display:flex;align-self:flex-start;margin-right:16px}.banner__wrapper__head{display:flex;flex:1 1 auto;flex-direction:column;line-height:normal}.banner__wrapper__title{display:flex;flex:1;align-items:center;padding:4px 0}.banner__wrapper__action{align-self:flex-start;padding-left:16px}.banner__wrapper__body{font:400 14px / 20px \"Golos UI\",Roboto,\"Helvetica Neue\",sans-serif;letter-spacing:.4px}.banner__wrapper .hide{display:none}\n"], components: [{ type: i1__namespace$1.MatIcon, selector: "mat-icon", inputs: ["color", "inline", "svgIcon", "fontSet", "fontIcon"], exportAs: ["matIcon"] }], directives: [{ type: i2__namespace$1.NgSwitch, selector: "[ngSwitch]", inputs: ["ngSwitch"] }, { type: i2__namespace$1.NgSwitchCase, selector: "[ngSwitchCase]", inputs: ["ngSwitchCase"] }] });
|
|
1166
|
-
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: GioBannerWarningComponent, decorators: [{
|
|
1167
|
-
type: i0.Component,
|
|
1168
|
-
args: [{
|
|
1169
|
-
selector: 'gio-banner-warning',
|
|
1170
|
-
templateUrl: './gio-banner.component.html',
|
|
1171
|
-
styleUrls: ['./gio-banner.component.scss'],
|
|
1172
|
-
}]
|
|
1173
|
-
}] });
|
|
1174
|
-
|
|
1175
|
-
/*
|
|
1176
|
-
* Copyright (C) 2015 The Gravitee team (http://gravitee.io)
|
|
1177
|
-
*
|
|
1178
|
-
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
1179
|
-
* you may not use this file except in compliance with the License.
|
|
1180
|
-
* You may obtain a copy of the License at
|
|
1181
|
-
*
|
|
1182
|
-
* http://www.apache.org/licenses/LICENSE-2.0
|
|
1183
|
-
*
|
|
1184
|
-
* Unless required by applicable law or agreed to in writing, software
|
|
1185
|
-
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
1186
|
-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
1187
|
-
* See the License for the specific language governing permissions and
|
|
1188
|
-
* limitations under the License.
|
|
1189
|
-
*/
|
|
1190
|
-
var GioIconsModule = /** @class */ (function () {
|
|
1191
|
-
function GioIconsModule(matIconRegistry, sanitizer) {
|
|
1192
|
-
matIconRegistry.addSvgIconSetInNamespace('gio', sanitizer.bypassSecurityTrustResourceUrl('assets/gio-icons.svg'));
|
|
1193
|
-
}
|
|
1194
|
-
return GioIconsModule;
|
|
1195
|
-
}());
|
|
1196
|
-
GioIconsModule.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: GioIconsModule, deps: [{ token: i1__namespace$1.MatIconRegistry }, { token: i2__namespace$3.DomSanitizer }], target: i0__namespace.ɵɵFactoryTarget.NgModule });
|
|
1197
|
-
GioIconsModule.ɵmod = i0__namespace.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: GioIconsModule, imports: [i2$1.CommonModule, http.HttpClientModule, i1$1.MatIconModule], exports: [i1$1.MatIconModule] });
|
|
1198
|
-
GioIconsModule.ɵinj = i0__namespace.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: GioIconsModule, imports: [[i2$1.CommonModule, http.HttpClientModule, i1$1.MatIconModule], i1$1.MatIconModule] });
|
|
1199
|
-
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: GioIconsModule, decorators: [{
|
|
1200
|
-
type: i0.NgModule,
|
|
1201
|
-
args: [{
|
|
1202
|
-
imports: [i2$1.CommonModule, http.HttpClientModule, i1$1.MatIconModule],
|
|
1203
|
-
exports: [i1$1.MatIconModule],
|
|
1204
|
-
entryComponents: [],
|
|
1205
|
-
}]
|
|
1206
|
-
}], ctorParameters: function () { return [{ type: i1__namespace$1.MatIconRegistry }, { type: i2__namespace$3.DomSanitizer }]; } });
|
|
1207
|
-
|
|
1208
|
-
/*
|
|
1209
|
-
* Copyright (C) 2015 The Gravitee team (http://gravitee.io)
|
|
1210
|
-
*
|
|
1211
|
-
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
1212
|
-
* you may not use this file except in compliance with the License.
|
|
1213
|
-
* You may obtain a copy of the License at
|
|
1214
|
-
*
|
|
1215
|
-
* http://www.apache.org/licenses/LICENSE-2.0
|
|
1216
|
-
*
|
|
1217
|
-
* Unless required by applicable law or agreed to in writing, software
|
|
1218
|
-
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
1219
|
-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
1220
|
-
* See the License for the specific language governing permissions and
|
|
1221
|
-
* limitations under the License.
|
|
1222
|
-
*/
|
|
1223
|
-
var GioBannerModule = /** @class */ (function () {
|
|
1224
|
-
function GioBannerModule() {
|
|
1225
|
-
}
|
|
1226
|
-
return GioBannerModule;
|
|
1227
|
-
}());
|
|
1228
|
-
GioBannerModule.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: GioBannerModule, deps: [], target: i0__namespace.ɵɵFactoryTarget.NgModule });
|
|
1229
|
-
GioBannerModule.ɵmod = i0__namespace.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: GioBannerModule, declarations: [GioBannerComponent,
|
|
1230
|
-
GioBannerErrorComponent,
|
|
1231
|
-
GioBannerInfoComponent,
|
|
1232
|
-
GioBannerSuccessComponent,
|
|
1233
|
-
GioBannerWarningComponent,
|
|
1234
|
-
GioBannerBodyDirective,
|
|
1235
|
-
GioBannerActionDirective], imports: [i2$1.CommonModule, i1$1.MatIconModule, GioIconsModule], exports: [GioBannerComponent,
|
|
1236
|
-
GioBannerErrorComponent,
|
|
1237
|
-
GioBannerInfoComponent,
|
|
1238
|
-
GioBannerSuccessComponent,
|
|
1239
|
-
GioBannerWarningComponent,
|
|
1240
|
-
GioBannerBodyDirective,
|
|
1241
|
-
GioBannerActionDirective] });
|
|
1242
|
-
GioBannerModule.ɵinj = i0__namespace.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: GioBannerModule, imports: [[i2$1.CommonModule, i1$1.MatIconModule, GioIconsModule]] });
|
|
1243
|
-
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: GioBannerModule, decorators: [{
|
|
1244
|
-
type: i0.NgModule,
|
|
1245
|
-
args: [{
|
|
1246
|
-
imports: [i2$1.CommonModule, i1$1.MatIconModule, GioIconsModule],
|
|
1247
|
-
declarations: [
|
|
1248
|
-
GioBannerComponent,
|
|
1249
|
-
GioBannerErrorComponent,
|
|
1250
|
-
GioBannerInfoComponent,
|
|
1251
|
-
GioBannerSuccessComponent,
|
|
1252
|
-
GioBannerWarningComponent,
|
|
1253
|
-
GioBannerBodyDirective,
|
|
1254
|
-
GioBannerActionDirective,
|
|
1255
|
-
],
|
|
1256
|
-
exports: [
|
|
1257
|
-
GioBannerComponent,
|
|
1258
|
-
GioBannerErrorComponent,
|
|
1259
|
-
GioBannerInfoComponent,
|
|
1260
|
-
GioBannerSuccessComponent,
|
|
1261
|
-
GioBannerWarningComponent,
|
|
1262
|
-
GioBannerBodyDirective,
|
|
1263
|
-
GioBannerActionDirective,
|
|
1264
|
-
],
|
|
1265
|
-
entryComponents: [
|
|
1266
|
-
GioBannerComponent,
|
|
1267
|
-
GioBannerErrorComponent,
|
|
1268
|
-
GioBannerInfoComponent,
|
|
1269
|
-
GioBannerSuccessComponent,
|
|
1270
|
-
GioBannerWarningComponent,
|
|
1271
|
-
],
|
|
1272
|
-
}]
|
|
1273
|
-
}] });
|
|
1274
|
-
|
|
1275
|
-
/*
|
|
1276
|
-
* Copyright (C) 2015 The Gravitee team (http://gravitee.io)
|
|
1277
|
-
*
|
|
1278
|
-
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
1279
|
-
* you may not use this file except in compliance with the License.
|
|
1280
|
-
* You may obtain a copy of the License at
|
|
1281
|
-
*
|
|
1282
|
-
* http://www.apache.org/licenses/LICENSE-2.0
|
|
1283
|
-
*
|
|
1284
|
-
* Unless required by applicable law or agreed to in writing, software
|
|
1285
|
-
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
1286
|
-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
1287
|
-
* See the License for the specific language governing permissions and
|
|
1288
|
-
* limitations under the License.
|
|
1289
|
-
*/
|
|
1290
|
-
var GioConfirmDialogComponent = /** @class */ (function () {
|
|
1291
|
-
function GioConfirmDialogComponent(dialogRef, confirmDialogData) {
|
|
1292
|
-
var _a, _b, _c;
|
|
1293
|
-
this.dialogRef = dialogRef;
|
|
1294
|
-
this.title = (_a = confirmDialogData === null || confirmDialogData === void 0 ? void 0 : confirmDialogData.title) !== null && _a !== void 0 ? _a : 'Are you sure?';
|
|
1295
|
-
this.content = confirmDialogData === null || confirmDialogData === void 0 ? void 0 : confirmDialogData.content;
|
|
1296
|
-
this.confirmButton = (_b = confirmDialogData === null || confirmDialogData === void 0 ? void 0 : confirmDialogData.confirmButton) !== null && _b !== void 0 ? _b : 'Confirm';
|
|
1297
|
-
this.cancelButton = (_c = confirmDialogData === null || confirmDialogData === void 0 ? void 0 : confirmDialogData.cancelButton) !== null && _c !== void 0 ? _c : 'Cancel';
|
|
1298
|
-
}
|
|
1299
|
-
return GioConfirmDialogComponent;
|
|
1300
|
-
}());
|
|
1301
|
-
GioConfirmDialogComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: GioConfirmDialogComponent, deps: [{ token: i1__namespace$2.MatDialogRef }, { token: i1$2.MAT_DIALOG_DATA }], target: i0__namespace.ɵɵFactoryTarget.Component });
|
|
1302
|
-
GioConfirmDialogComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.15", type: GioConfirmDialogComponent, selector: "gio-confirm-dialog", ngImport: i0__namespace, template: "<!--\n\n Copyright (C) 2015 The Gravitee team (http://gravitee.io)\n\n Licensed under the Apache License, Version 2.0 (the \"License\");\n you may not use this file except in compliance with the License.\n You may obtain a copy of the License at\n\n http://www.apache.org/licenses/LICENSE-2.0\n\n Unless required by applicable law or agreed to in writing, software\n distributed under the License is distributed on an \"AS IS\" BASIS,\n WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n See the License for the specific language governing permissions and\n limitations under the License.\n\n-->\n<h2 mat-dialog-title class=\"confirm-dialog__title\">{{ title }}</h2>\n\n<mat-dialog-content *ngIf=\"content\" class=\"confirm-dialog__content\">\n <p [innerHTML]=\"content\"></p>\n</mat-dialog-content>\n\n<mat-dialog-actions align=\"end\" class=\"confirm-dialog__actions\">\n <button class=\"confirm-dialog__cancel-button\" mat-flat-button [mat-dialog-close]=\"false\">\n {{ cancelButton }}\n </button>\n <button\n class=\"confirm-dialog__confirm-button\"\n color=\"warn\"\n mat-raised-button\n [mat-dialog-close]=\"true\"\n cdkFocusInitial\n data-testid=\"confirm-dialog\"\n >\n {{ confirmButton }}\n </button>\n</mat-dialog-actions>\n", styles: [".confirm-dialog__content{color:#606274}\n"], components: [{ type: i2__namespace.MatButton, selector: "button[mat-button], button[mat-raised-button], button[mat-icon-button], button[mat-fab], button[mat-mini-fab], button[mat-stroked-button], button[mat-flat-button]", inputs: ["disabled", "disableRipple", "color"], exportAs: ["matButton"] }], directives: [{ type: i1__namespace$2.MatDialogTitle, selector: "[mat-dialog-title], [matDialogTitle]", inputs: ["id"], exportAs: ["matDialogTitle"] }, { type: i2__namespace$1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i1__namespace$2.MatDialogContent, selector: "[mat-dialog-content], mat-dialog-content, [matDialogContent]" }, { type: i1__namespace$2.MatDialogActions, selector: "[mat-dialog-actions], mat-dialog-actions, [matDialogActions]" }, { type: i1__namespace$2.MatDialogClose, selector: "[mat-dialog-close], [matDialogClose]", inputs: ["type", "mat-dialog-close", "aria-label", "matDialogClose"], exportAs: ["matDialogClose"] }] });
|
|
1303
|
-
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: GioConfirmDialogComponent, decorators: [{
|
|
1304
|
-
type: i0.Component,
|
|
1305
|
-
args: [{
|
|
1306
|
-
selector: 'gio-confirm-dialog',
|
|
1307
|
-
templateUrl: './gio-confirm-dialog.component.html',
|
|
1308
|
-
styleUrls: ['./gio-confirm-dialog.component.scss'],
|
|
1309
|
-
}]
|
|
1310
|
-
}], ctorParameters: function () {
|
|
1311
|
-
return [{ type: i1__namespace$2.MatDialogRef }, { type: undefined, decorators: [{
|
|
1312
|
-
type: i0.Inject,
|
|
1313
|
-
args: [i1$2.MAT_DIALOG_DATA]
|
|
1314
|
-
}] }];
|
|
1315
|
-
} });
|
|
1316
|
-
|
|
1317
|
-
/*
|
|
1318
|
-
* Copyright (C) 2015 The Gravitee team (http://gravitee.io)
|
|
1319
|
-
*
|
|
1320
|
-
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
1321
|
-
* you may not use this file except in compliance with the License.
|
|
1322
|
-
* You may obtain a copy of the License at
|
|
1323
|
-
*
|
|
1324
|
-
* http://www.apache.org/licenses/LICENSE-2.0
|
|
1325
|
-
*
|
|
1326
|
-
* Unless required by applicable law or agreed to in writing, software
|
|
1327
|
-
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
1328
|
-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
1329
|
-
* See the License for the specific language governing permissions and
|
|
1330
|
-
* limitations under the License.
|
|
1331
|
-
*/
|
|
1332
|
-
var GioConfirmDialogModule = /** @class */ (function () {
|
|
1333
|
-
function GioConfirmDialogModule() {
|
|
1334
|
-
}
|
|
1335
|
-
return GioConfirmDialogModule;
|
|
1336
|
-
}());
|
|
1337
|
-
GioConfirmDialogModule.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: GioConfirmDialogModule, deps: [], target: i0__namespace.ɵɵFactoryTarget.NgModule });
|
|
1338
|
-
GioConfirmDialogModule.ɵmod = i0__namespace.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: GioConfirmDialogModule, declarations: [GioConfirmDialogComponent], imports: [i2$1.CommonModule, i2.MatButtonModule, i1$2.MatDialogModule, i2$2.A11yModule], exports: [GioConfirmDialogComponent] });
|
|
1339
|
-
GioConfirmDialogModule.ɵinj = i0__namespace.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: GioConfirmDialogModule, imports: [[i2$1.CommonModule, i2.MatButtonModule, i1$2.MatDialogModule, i2$2.A11yModule]] });
|
|
1340
|
-
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: GioConfirmDialogModule, decorators: [{
|
|
1341
|
-
type: i0.NgModule,
|
|
1342
|
-
args: [{
|
|
1343
|
-
imports: [i2$1.CommonModule, i2.MatButtonModule, i1$2.MatDialogModule, i2$2.A11yModule],
|
|
1344
|
-
declarations: [GioConfirmDialogComponent],
|
|
1345
|
-
exports: [GioConfirmDialogComponent],
|
|
1346
|
-
entryComponents: [GioConfirmDialogComponent],
|
|
1347
|
-
}]
|
|
1348
|
-
}] });
|
|
1349
|
-
|
|
1350
|
-
var GioConfirmDialogHarness = /** @class */ (function (_super) {
|
|
1351
|
-
__extends(GioConfirmDialogHarness, _super);
|
|
1352
|
-
function GioConfirmDialogHarness() {
|
|
1353
|
-
var _this = _super.apply(this, __spreadArray([], __read(arguments))) || this;
|
|
1354
|
-
_this.getConfirmBtn = _this.locatorFor(testing$3.MatButtonHarness.with({ selector: '.confirm-dialog__confirm-button' }));
|
|
1355
|
-
_this.getCancelBtn = _this.locatorFor(testing$3.MatButtonHarness.with({ selector: '.confirm-dialog__cancel-button' }));
|
|
1356
|
-
return _this;
|
|
1357
|
-
}
|
|
1358
|
-
GioConfirmDialogHarness.prototype.confirm = function () {
|
|
1359
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
1360
|
-
var button;
|
|
1361
|
-
return __generator(this, function (_a) {
|
|
1362
|
-
switch (_a.label) {
|
|
1363
|
-
case 0: return [4 /*yield*/, this.getConfirmBtn()];
|
|
1364
|
-
case 1:
|
|
1365
|
-
button = _a.sent();
|
|
1366
|
-
return [4 /*yield*/, button.click()];
|
|
1367
|
-
case 2:
|
|
1368
|
-
_a.sent();
|
|
1369
|
-
return [2 /*return*/];
|
|
1370
|
-
}
|
|
1371
|
-
});
|
|
1372
|
-
});
|
|
1373
|
-
};
|
|
1374
|
-
GioConfirmDialogHarness.prototype.cancel = function () {
|
|
1375
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
1376
|
-
var button;
|
|
1377
|
-
return __generator(this, function (_a) {
|
|
1378
|
-
switch (_a.label) {
|
|
1379
|
-
case 0: return [4 /*yield*/, this.getCancelBtn()];
|
|
1380
|
-
case 1:
|
|
1381
|
-
button = _a.sent();
|
|
1382
|
-
return [4 /*yield*/, button.click()];
|
|
1383
|
-
case 2:
|
|
1384
|
-
_a.sent();
|
|
1385
|
-
return [2 /*return*/];
|
|
1386
|
-
}
|
|
1387
|
-
});
|
|
1388
|
-
});
|
|
1389
|
-
};
|
|
1390
|
-
return GioConfirmDialogHarness;
|
|
1391
|
-
}(testing.ComponentHarness));
|
|
1392
|
-
GioConfirmDialogHarness.hostSelector = 'gio-confirm-dialog';
|
|
1393
|
-
|
|
1394
|
-
/*
|
|
1395
|
-
* Copyright (C) 2015 The Gravitee team (http://gravitee.io)
|
|
1396
|
-
*
|
|
1397
|
-
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
1398
|
-
* you may not use this file except in compliance with the License.
|
|
1399
|
-
* You may obtain a copy of the License at
|
|
1400
|
-
*
|
|
1401
|
-
* http://www.apache.org/licenses/LICENSE-2.0
|
|
1402
|
-
*
|
|
1403
|
-
* Unless required by applicable law or agreed to in writing, software
|
|
1404
|
-
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
1405
|
-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
1406
|
-
* See the License for the specific language governing permissions and
|
|
1407
|
-
* limitations under the License.
|
|
1408
|
-
*/
|
|
1409
|
-
var GioConfirmAndValidateDialogComponent = /** @class */ (function () {
|
|
1410
|
-
function GioConfirmAndValidateDialogComponent(dialogRef, confirmDialogData) {
|
|
1411
|
-
var _a, _b, _c, _d, _e;
|
|
1412
|
-
this.dialogRef = dialogRef;
|
|
1413
|
-
this.isValid = false;
|
|
1414
|
-
this.title = (_a = confirmDialogData === null || confirmDialogData === void 0 ? void 0 : confirmDialogData.title) !== null && _a !== void 0 ? _a : 'Are you sure?';
|
|
1415
|
-
this.warning = confirmDialogData === null || confirmDialogData === void 0 ? void 0 : confirmDialogData.warning;
|
|
1416
|
-
this.content = confirmDialogData === null || confirmDialogData === void 0 ? void 0 : confirmDialogData.content;
|
|
1417
|
-
this.validationMessage = extendValidationMessage((_b = confirmDialogData === null || confirmDialogData === void 0 ? void 0 : confirmDialogData.validationMessage) !== null && _b !== void 0 ? _b : 'Please, type <code>confirm</code> to confirm.');
|
|
1418
|
-
this.validationValue = (_c = confirmDialogData === null || confirmDialogData === void 0 ? void 0 : confirmDialogData.validationValue) !== null && _c !== void 0 ? _c : 'confirm';
|
|
1419
|
-
this.confirmButton = (_d = confirmDialogData === null || confirmDialogData === void 0 ? void 0 : confirmDialogData.confirmButton) !== null && _d !== void 0 ? _d : 'Confirm';
|
|
1420
|
-
this.cancelButton = (_e = confirmDialogData === null || confirmDialogData === void 0 ? void 0 : confirmDialogData.cancelButton) !== null && _e !== void 0 ? _e : 'Cancel';
|
|
1421
|
-
}
|
|
1422
|
-
GioConfirmAndValidateDialogComponent.prototype.onConfirmChange = function (confirmValue) {
|
|
1423
|
-
this.isValid = lodash.toLower(confirmValue) === lodash.toLower(this.validationValue);
|
|
1424
|
-
};
|
|
1425
|
-
return GioConfirmAndValidateDialogComponent;
|
|
1426
|
-
}());
|
|
1427
|
-
GioConfirmAndValidateDialogComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: GioConfirmAndValidateDialogComponent, deps: [{ token: i1__namespace$2.MatDialogRef }, { token: i1$2.MAT_DIALOG_DATA }], target: i0__namespace.ɵɵFactoryTarget.Component });
|
|
1428
|
-
GioConfirmAndValidateDialogComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.15", type: GioConfirmAndValidateDialogComponent, selector: "gio-confirm-and-validate-dialog", ngImport: i0__namespace, template: "<!--\n\n Copyright (C) 2015 The Gravitee team (http://gravitee.io)\n\n Licensed under the Apache License, Version 2.0 (the \"License\");\n you may not use this file except in compliance with the License.\n You may obtain a copy of the License at\n\n http://www.apache.org/licenses/LICENSE-2.0\n\n Unless required by applicable law or agreed to in writing, software\n distributed under the License is distributed on an \"AS IS\" BASIS,\n WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n See the License for the specific language governing permissions and\n limitations under the License.\n\n-->\n<h2 mat-dialog-title class=\"confirm-dialog__title\">{{ title }}</h2>\n\n<mat-dialog-content class=\"confirm-dialog__body\">\n <gio-banner-warning *ngIf=\"warning\"><span [innerHTML]=\"warning\"></span></gio-banner-warning>\n <p class=\"confirm-dialog__body__content\" *ngIf=\"content\" [innerHTML]=\"content\"></p>\n <p class=\"confirm-dialog__body__validate-message\" [innerHTML]=\"validationMessage\"></p>\n <mat-form-field class=\"confirm-dialog__body__validate-input\" appearance=\"outline\" floatLabel=\"always\">\n <mat-label>Confirm</mat-label>\n <input\n matInput\n cdkFocusInitial\n type=\"text\"\n [placeholder]=\"validationValue\"\n [ngModel]=\"confirmValue\"\n (ngModelChange)=\"onConfirmChange($event)\"\n required\n data-testid=\"confirm-input-dialog\"\n />\n </mat-form-field>\n</mat-dialog-content>\n\n<mat-dialog-actions align=\"end\" class=\"confirm-dialog__actions\">\n <button\n class=\"confirm-dialog__confirm-button\"\n [disabled]=\"!isValid\"\n color=\"warn\"\n mat-raised-button\n [mat-dialog-close]=\"true\"\n data-testid=\"confirm-dialog\"\n >\n {{ confirmButton }}\n </button>\n <button class=\"confirm-dialog__cancel-button\" mat-flat-button [mat-dialog-close]=\"false\">\n {{ cancelButton }}\n </button>\n</mat-dialog-actions>\n", styles: [".confirm-dialog__body__content{color:#606274}.confirm-dialog__body__validate-message{margin-bottom:8px}.confirm-dialog__body__validate-input{overflow:hidden;width:100%;height:62px;padding-top:4px}.confirm-dialog__actions{display:flex;flex-direction:row-reverse;justify-content:flex-start}\n"], components: [{ type: GioBannerWarningComponent, selector: "gio-banner-warning" }, { type: i3__namespace$1.MatFormField, selector: "mat-form-field", inputs: ["color", "floatLabel", "appearance", "hideRequiredMarker", "hintLabel"], exportAs: ["matFormField"] }, { type: i2__namespace.MatButton, selector: "button[mat-button], button[mat-raised-button], button[mat-icon-button], button[mat-fab], button[mat-mini-fab], button[mat-stroked-button], button[mat-flat-button]", inputs: ["disabled", "disableRipple", "color"], exportAs: ["matButton"] }], directives: [{ type: i1__namespace$2.MatDialogTitle, selector: "[mat-dialog-title], [matDialogTitle]", inputs: ["id"], exportAs: ["matDialogTitle"] }, { type: i1__namespace$2.MatDialogContent, selector: "[mat-dialog-content], mat-dialog-content, [matDialogContent]" }, { type: i2__namespace$1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i3__namespace$1.MatLabel, selector: "mat-label" }, { type: i6__namespace$1.MatInput, selector: "input[matInput], textarea[matInput], select[matNativeControl], input[matNativeControl], textarea[matNativeControl]", inputs: ["id", "disabled", "required", "type", "value", "readonly", "placeholder", "errorStateMatcher", "aria-describedby"], exportAs: ["matInput"] }, { type: i7__namespace.DefaultValueAccessor, selector: "input:not([type=checkbox])[formControlName],textarea[formControlName],input:not([type=checkbox])[formControl],textarea[formControl],input:not([type=checkbox])[ngModel],textarea[ngModel],[ngDefaultControl]" }, { type: i7__namespace.RequiredValidator, selector: ":not([type=checkbox])[required][formControlName],:not([type=checkbox])[required][formControl],:not([type=checkbox])[required][ngModel]", inputs: ["required"] }, { type: i7__namespace.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { type: i7__namespace.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { type: i1__namespace$2.MatDialogActions, selector: "[mat-dialog-actions], mat-dialog-actions, [matDialogActions]" }, { type: i1__namespace$2.MatDialogClose, selector: "[mat-dialog-close], [matDialogClose]", inputs: ["type", "mat-dialog-close", "aria-label", "matDialogClose"], exportAs: ["matDialogClose"] }] });
|
|
1429
|
-
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: GioConfirmAndValidateDialogComponent, decorators: [{
|
|
1430
|
-
type: i0.Component,
|
|
1431
|
-
args: [{
|
|
1432
|
-
selector: 'gio-confirm-and-validate-dialog',
|
|
1433
|
-
templateUrl: './gio-confirm-and-validate-dialog.component.html',
|
|
1434
|
-
styleUrls: ['./gio-confirm-and-validate-dialog.component.scss'],
|
|
1435
|
-
}]
|
|
1436
|
-
}], ctorParameters: function () {
|
|
1437
|
-
return [{ type: i1__namespace$2.MatDialogRef }, { type: undefined, decorators: [{
|
|
1438
|
-
type: i0.Inject,
|
|
1439
|
-
args: [i1$2.MAT_DIALOG_DATA]
|
|
1440
|
-
}] }];
|
|
1441
|
-
} });
|
|
1442
|
-
var extendValidationMessage = function (validationMessage) {
|
|
1443
|
-
return validationMessage.replace('<code>', '<code class="gio-badge-warning">');
|
|
1444
|
-
};
|
|
1445
|
-
|
|
1446
|
-
/*
|
|
1447
|
-
* Copyright (C) 2015 The Gravitee team (http://gravitee.io)
|
|
1448
|
-
*
|
|
1449
|
-
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
1450
|
-
* you may not use this file except in compliance with the License.
|
|
1451
|
-
* You may obtain a copy of the License at
|
|
1452
|
-
*
|
|
1453
|
-
* http://www.apache.org/licenses/LICENSE-2.0
|
|
1454
|
-
*
|
|
1455
|
-
* Unless required by applicable law or agreed to in writing, software
|
|
1456
|
-
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
1457
|
-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
1458
|
-
* See the License for the specific language governing permissions and
|
|
1459
|
-
* limitations under the License.
|
|
1460
|
-
*/
|
|
1461
|
-
var GioConfirmAndValidateDialogModule = /** @class */ (function () {
|
|
1462
|
-
function GioConfirmAndValidateDialogModule() {
|
|
1463
|
-
}
|
|
1464
|
-
return GioConfirmAndValidateDialogModule;
|
|
1465
|
-
}());
|
|
1466
|
-
GioConfirmAndValidateDialogModule.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: GioConfirmAndValidateDialogModule, deps: [], target: i0__namespace.ɵɵFactoryTarget.NgModule });
|
|
1467
|
-
GioConfirmAndValidateDialogModule.ɵmod = i0__namespace.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: GioConfirmAndValidateDialogModule, declarations: [GioConfirmAndValidateDialogComponent], imports: [i2$1.CommonModule, i7.FormsModule, i2.MatButtonModule, i1$2.MatDialogModule, i6$1.MatInputModule, i3.MatFormFieldModule, i2$2.A11yModule, GioBannerModule], exports: [GioConfirmAndValidateDialogComponent] });
|
|
1468
|
-
GioConfirmAndValidateDialogModule.ɵinj = i0__namespace.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: GioConfirmAndValidateDialogModule, imports: [[i2$1.CommonModule, i7.FormsModule, i2.MatButtonModule, i1$2.MatDialogModule, i6$1.MatInputModule, i3.MatFormFieldModule, i2$2.A11yModule, GioBannerModule]] });
|
|
1469
|
-
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: GioConfirmAndValidateDialogModule, decorators: [{
|
|
1470
|
-
type: i0.NgModule,
|
|
1471
|
-
args: [{
|
|
1472
|
-
imports: [i2$1.CommonModule, i7.FormsModule, i2.MatButtonModule, i1$2.MatDialogModule, i6$1.MatInputModule, i3.MatFormFieldModule, i2$2.A11yModule, GioBannerModule],
|
|
1473
|
-
declarations: [GioConfirmAndValidateDialogComponent],
|
|
1474
|
-
exports: [GioConfirmAndValidateDialogComponent],
|
|
1475
|
-
entryComponents: [GioConfirmAndValidateDialogComponent],
|
|
1476
|
-
}]
|
|
1477
|
-
}] });
|
|
1478
|
-
|
|
1479
|
-
var GioConfirmAndValidateDialogHarness = /** @class */ (function (_super) {
|
|
1480
|
-
__extends(GioConfirmAndValidateDialogHarness, _super);
|
|
1481
|
-
function GioConfirmAndValidateDialogHarness() {
|
|
1482
|
-
var _this = _super.apply(this, __spreadArray([], __read(arguments))) || this;
|
|
1483
|
-
_this.getConfirmBtn = _this.locatorFor(testing$3.MatButtonHarness.with({ selector: '.confirm-dialog__confirm-button' }));
|
|
1484
|
-
_this.getCancelBtn = _this.locatorFor(testing$3.MatButtonHarness.with({ selector: '.confirm-dialog__cancel-button' }));
|
|
1485
|
-
_this.getConfirmInput = _this.locatorFor(testing$4.MatInputHarness);
|
|
1486
|
-
return _this;
|
|
1487
|
-
}
|
|
1488
|
-
GioConfirmAndValidateDialogHarness.prototype.confirm = function () {
|
|
1489
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
1490
|
-
var confirmInput, _a, _b, button;
|
|
1491
|
-
return __generator(this, function (_c) {
|
|
1492
|
-
switch (_c.label) {
|
|
1493
|
-
case 0: return [4 /*yield*/, this.getConfirmInput()];
|
|
1494
|
-
case 1:
|
|
1495
|
-
confirmInput = _c.sent();
|
|
1496
|
-
_b = (_a = confirmInput).setValue;
|
|
1497
|
-
return [4 /*yield*/, confirmInput.getPlaceholder()];
|
|
1498
|
-
case 2: return [4 /*yield*/, _b.apply(_a, [_c.sent()])];
|
|
1499
|
-
case 3:
|
|
1500
|
-
_c.sent();
|
|
1501
|
-
return [4 /*yield*/, this.getConfirmBtn()];
|
|
1502
|
-
case 4:
|
|
1503
|
-
button = _c.sent();
|
|
1504
|
-
return [4 /*yield*/, button.isDisabled()];
|
|
1505
|
-
case 5:
|
|
1506
|
-
if (!!(_c.sent())) return [3 /*break*/, 7];
|
|
1507
|
-
return [4 /*yield*/, button.click()];
|
|
1508
|
-
case 6:
|
|
1509
|
-
_c.sent();
|
|
1510
|
-
_c.label = 7;
|
|
1511
|
-
case 7: return [2 /*return*/];
|
|
1512
|
-
}
|
|
1513
|
-
});
|
|
1514
|
-
});
|
|
1515
|
-
};
|
|
1516
|
-
GioConfirmAndValidateDialogHarness.prototype.cancel = function () {
|
|
1517
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
1518
|
-
var button;
|
|
1519
|
-
return __generator(this, function (_a) {
|
|
1520
|
-
switch (_a.label) {
|
|
1521
|
-
case 0: return [4 /*yield*/, this.getCancelBtn()];
|
|
1522
|
-
case 1:
|
|
1523
|
-
button = _a.sent();
|
|
1524
|
-
return [4 /*yield*/, button.click()];
|
|
1525
|
-
case 2:
|
|
1526
|
-
_a.sent();
|
|
1527
|
-
return [2 /*return*/];
|
|
1528
|
-
}
|
|
1529
|
-
});
|
|
1530
|
-
});
|
|
1531
|
-
};
|
|
1532
|
-
return GioConfirmAndValidateDialogHarness;
|
|
1533
|
-
}(testing.ComponentHarness));
|
|
1534
|
-
GioConfirmAndValidateDialogHarness.hostSelector = 'gio-confirm-and-validate-dialog';
|
|
1535
|
-
|
|
1536
|
-
var HEADER_NAMES = [
|
|
1537
|
-
'Accept',
|
|
1538
|
-
'Accept-Charset',
|
|
1539
|
-
'Accept-Encoding',
|
|
1540
|
-
'Accept-Language',
|
|
1541
|
-
'Accept-Ranges',
|
|
1542
|
-
'Access-Control-Allow-Credentials',
|
|
1543
|
-
'Access-Control-Allow-Headers',
|
|
1544
|
-
'Access-Control-Allow-Methods',
|
|
1545
|
-
'Access-Control-Allow-Origin',
|
|
1546
|
-
'Access-Control-Expose-Headers',
|
|
1547
|
-
'Access-Control-Max-Age',
|
|
1548
|
-
'Access-Control-Request-Headers',
|
|
1549
|
-
'Access-Control-Request-Method',
|
|
1550
|
-
'Age',
|
|
1551
|
-
'Allow',
|
|
1552
|
-
'Authorization',
|
|
1553
|
-
'Cache-Control',
|
|
1554
|
-
'Connection',
|
|
1555
|
-
'Content-Disposition',
|
|
1556
|
-
'Content-Encoding',
|
|
1557
|
-
'Content-ID',
|
|
1558
|
-
'Content-Language',
|
|
1559
|
-
'Content-Length',
|
|
1560
|
-
'Content-Location',
|
|
1561
|
-
'Content-MD5',
|
|
1562
|
-
'Content-Range',
|
|
1563
|
-
'Content-Type',
|
|
1564
|
-
'Cookie',
|
|
1565
|
-
'Date',
|
|
1566
|
-
'ETag',
|
|
1567
|
-
'Expires',
|
|
1568
|
-
'Expect',
|
|
1569
|
-
'Forwarded',
|
|
1570
|
-
'From',
|
|
1571
|
-
'Host',
|
|
1572
|
-
'If-Match',
|
|
1573
|
-
'If-Modified-Since',
|
|
1574
|
-
'If-None-Match',
|
|
1575
|
-
'If-Unmodified-Since',
|
|
1576
|
-
'Keep-Alive',
|
|
1577
|
-
'Last-Modified',
|
|
1578
|
-
'Location',
|
|
1579
|
-
'Link',
|
|
1580
|
-
'Max-Forwards',
|
|
1581
|
-
'MIME-Version',
|
|
1582
|
-
'Origin',
|
|
1583
|
-
'Pragma',
|
|
1584
|
-
'Proxy-Authenticate',
|
|
1585
|
-
'Proxy-Authorization',
|
|
1586
|
-
'Proxy-Connection',
|
|
1587
|
-
'Range',
|
|
1588
|
-
'Referer',
|
|
1589
|
-
'Retry-After',
|
|
1590
|
-
'Server',
|
|
1591
|
-
'Set-Cookie',
|
|
1592
|
-
'Set-Cookie2',
|
|
1593
|
-
'TE',
|
|
1594
|
-
'Trailer',
|
|
1595
|
-
'Transfer-Encoding',
|
|
1596
|
-
'Upgrade',
|
|
1597
|
-
'User-Agent',
|
|
1598
|
-
'Vary',
|
|
1599
|
-
'Via',
|
|
1600
|
-
'Warning',
|
|
1601
|
-
'WWW-Authenticate',
|
|
1602
|
-
'X-Forwarded-For',
|
|
1603
|
-
'X-Forwarded-Proto',
|
|
1604
|
-
'X-Forwarded-Server',
|
|
1605
|
-
'X-Forwarded-Host',
|
|
1606
|
-
'X-Forwarded-Port',
|
|
1607
|
-
'X-Forwarded-Prefix',
|
|
1608
|
-
];
|
|
1609
|
-
var GioFormHeadersComponent = /** @class */ (function () {
|
|
1610
|
-
function GioFormHeadersComponent(fm, elRef) {
|
|
1611
|
-
this.fm = fm;
|
|
1612
|
-
this.elRef = elRef;
|
|
1613
|
-
this.headersFormArray = new i7.FormArray([
|
|
1614
|
-
new i7.FormGroup({
|
|
1615
|
-
key: new i7.FormControl(''),
|
|
1616
|
-
value: new i7.FormControl(''),
|
|
1617
|
-
}),
|
|
1618
|
-
]);
|
|
1619
|
-
this.disabled = false;
|
|
1620
|
-
this.headers = [];
|
|
1621
|
-
this._onChange = function () { return ({}); };
|
|
1622
|
-
this._onTouched = function () { return ({}); };
|
|
1623
|
-
this.filteredHeaderNames = [];
|
|
1624
|
-
this.mainForm = new i7.FormGroup({
|
|
1625
|
-
headers: this.headersFormArray,
|
|
1626
|
-
});
|
|
1627
|
-
}
|
|
1628
|
-
// From ControlValueAccessor interface
|
|
1629
|
-
GioFormHeadersComponent.prototype.writeValue = function (value) {
|
|
1630
|
-
if (!value) {
|
|
1631
|
-
return;
|
|
1632
|
-
}
|
|
1633
|
-
this.headers = value !== null && value !== void 0 ? value : [];
|
|
1634
|
-
this.initHeadersForm();
|
|
1635
|
-
};
|
|
1636
|
-
// From ControlValueAccessor interface
|
|
1637
|
-
GioFormHeadersComponent.prototype.registerOnChange = function (fn) {
|
|
1638
|
-
this._onChange = fn;
|
|
1639
|
-
};
|
|
1640
|
-
// From ControlValueAccessor interface
|
|
1641
|
-
GioFormHeadersComponent.prototype.registerOnTouched = function (fn) {
|
|
1642
|
-
this._onTouched = fn;
|
|
1643
|
-
};
|
|
1644
|
-
// From ControlValueAccessor interface
|
|
1645
|
-
GioFormHeadersComponent.prototype.setDisabledState = function (isDisabled) {
|
|
1646
|
-
if (isDisabled === this.disabled) {
|
|
1647
|
-
// do nothing if the disabled state is not changed
|
|
1648
|
-
return;
|
|
1649
|
-
}
|
|
1650
|
-
this.disabled = isDisabled;
|
|
1651
|
-
if (isDisabled) {
|
|
1652
|
-
this.headersFormArray.disable({ emitEvent: false });
|
|
1653
|
-
this.removeLastHeader();
|
|
1654
|
-
return;
|
|
1655
|
-
}
|
|
1656
|
-
this.headersFormArray.enable({ emitEvent: false });
|
|
1657
|
-
this.addEmptyHeader();
|
|
1658
|
-
};
|
|
1659
|
-
GioFormHeadersComponent.prototype.ngOnInit = function () {
|
|
1660
|
-
var _this = this;
|
|
1661
|
-
var _a;
|
|
1662
|
-
// When user start to complete last header add new empty one a the end
|
|
1663
|
-
(_a = this.headersFormArray) === null || _a === void 0 ? void 0 : _a.valueChanges.pipe(operators.tap(function (headers) { return headers.length > 0 && _this._onChange(removeLastEmptyHeader(headers)); }), operators.tap(function (headers) {
|
|
1664
|
-
if (headers.length > 0 && (headers[headers.length - 1].key !== '' || headers[headers.length - 1].value !== '')) {
|
|
1665
|
-
_this.addEmptyHeader();
|
|
1666
|
-
}
|
|
1667
|
-
})).subscribe();
|
|
1668
|
-
this.fm.monitor(this.elRef.nativeElement, true).subscribe(function () {
|
|
1669
|
-
_this._onTouched();
|
|
1670
|
-
});
|
|
1671
|
-
};
|
|
1672
|
-
GioFormHeadersComponent.prototype.initHeadersForm = function () {
|
|
1673
|
-
var _this = this;
|
|
1674
|
-
// Clear all previous headers
|
|
1675
|
-
this.headersFormArray.clear();
|
|
1676
|
-
// Populate headers array from headers
|
|
1677
|
-
this.headers.forEach(function (_b, headerIndex) {
|
|
1678
|
-
var key = _b.key, value = _b.value;
|
|
1679
|
-
_this.headersFormArray.push(new i7.FormGroup({
|
|
1680
|
-
key: _this.initKeyFormControl(key, headerIndex),
|
|
1681
|
-
value: new i7.FormControl({ value: value, disabled: _this.disabled }),
|
|
1682
|
-
}), {
|
|
1683
|
-
emitEvent: false,
|
|
1684
|
-
});
|
|
1685
|
-
});
|
|
1686
|
-
// add one empty header a the end
|
|
1687
|
-
this.addEmptyHeader();
|
|
1688
|
-
};
|
|
1689
|
-
GioFormHeadersComponent.prototype.getFilteredHeaderNames = function (headerIndex, header) {
|
|
1690
|
-
var _this = this;
|
|
1691
|
-
if (!this.filteredHeaderNames[headerIndex]) {
|
|
1692
|
-
return this.filteredHeaderNames[headerIndex];
|
|
1693
|
-
}
|
|
1694
|
-
if (header.key != null && header.key != '') {
|
|
1695
|
-
this.filteredHeaderNames[headerIndex] = rxjs.of(header.key).pipe(operators.map(function (value) { return _this._filter(value); }));
|
|
1696
|
-
return this.filteredHeaderNames[headerIndex];
|
|
1697
|
-
}
|
|
1698
|
-
return rxjs.of(HEADER_NAMES);
|
|
1699
|
-
};
|
|
1700
|
-
GioFormHeadersComponent.prototype.initKeyFormControl = function (key, headerIndex) {
|
|
1701
|
-
var _this = this;
|
|
1702
|
-
var control = new i7.FormControl({ value: key, disabled: this.disabled });
|
|
1703
|
-
var filteredKeys = control.valueChanges.pipe(operators.startWith(''), operators.map(function (value) { return _this._filter(value); }));
|
|
1704
|
-
this.filteredHeaderNames.splice(headerIndex, 0, filteredKeys);
|
|
1705
|
-
return control;
|
|
1706
|
-
};
|
|
1707
|
-
GioFormHeadersComponent.prototype.onDeleteHeader = function (headerIndex) {
|
|
1708
|
-
this._onTouched();
|
|
1709
|
-
this.headersFormArray.removeAt(headerIndex);
|
|
1710
|
-
};
|
|
1711
|
-
GioFormHeadersComponent.prototype.addEmptyHeader = function () {
|
|
1712
|
-
if (this.disabled) {
|
|
1713
|
-
return;
|
|
1714
|
-
}
|
|
1715
|
-
this.headersFormArray.push(new i7.FormGroup({
|
|
1716
|
-
key: this.initKeyFormControl('', this.headersFormArray.length),
|
|
1717
|
-
value: new i7.FormControl(''),
|
|
1718
|
-
}), { emitEvent: false });
|
|
1719
|
-
};
|
|
1720
|
-
GioFormHeadersComponent.prototype.removeLastHeader = function () {
|
|
1721
|
-
this.headersFormArray.removeAt(this.headersFormArray.length - 1, { emitEvent: false });
|
|
1722
|
-
};
|
|
1723
|
-
GioFormHeadersComponent.prototype._filter = function (value) {
|
|
1724
|
-
var filterValue = value.toLowerCase();
|
|
1725
|
-
return HEADER_NAMES.filter(function (option) { return option.toLowerCase().includes(filterValue); });
|
|
1726
|
-
};
|
|
1727
|
-
return GioFormHeadersComponent;
|
|
1728
|
-
}());
|
|
1729
|
-
GioFormHeadersComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: GioFormHeadersComponent, deps: [{ token: i2__namespace$2.FocusMonitor }, { token: i0__namespace.ElementRef }], target: i0__namespace.ɵɵFactoryTarget.Component });
|
|
1730
|
-
GioFormHeadersComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.15", type: GioFormHeadersComponent, selector: "gio-form-headers", host: { properties: { "class.disabled": "this.disabled" } }, providers: [
|
|
1731
|
-
{
|
|
1732
|
-
provide: i7.NG_VALUE_ACCESSOR,
|
|
1733
|
-
useExisting: i0.forwardRef(function () { return GioFormHeadersComponent; }),
|
|
1734
|
-
multi: true,
|
|
1735
|
-
},
|
|
1736
|
-
], ngImport: i0__namespace, template: "<!--\n\n Copyright (C) 2015 The Gravitee team (http://gravitee.io)\n\n Licensed under the Apache License, Version 2.0 (the \"License\");\n you may not use this file except in compliance with the License.\n You may obtain a copy of the License at\n\n http://www.apache.org/licenses/LICENSE-2.0\n\n Unless required by applicable law or agreed to in writing, software\n distributed under the License is distributed on an \"AS IS\" BASIS,\n WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n See the License for the specific language governing permissions and\n limitations under the License.\n\n-->\n<table class=\"gio-form-headers__table gio-table-light\" [formGroup]=\"mainForm\">\n <thead>\n <tr>\n <th>KEY</th>\n <th>VALUE</th>\n </tr>\n </thead>\n <tbody formArrayName=\"headers\">\n <tr\n *ngFor=\"let control of headersFormArray.controls; index as headerIndex\"\n class=\"gio-form-headers__table__header-row\"\n [formGroupName]=\"headerIndex\"\n >\n <td class=\"gio-form-headers__table__header-row__td-key\">\n <mat-form-field class=\"gio-form-headers__table__header-row__td-key__field\" [floatLabel]=\"'never'\">\n <textarea\n formControlName=\"key\"\n matInput\n placeholder=\"Name...\"\n cdkTextareaAutosize\n cdkAutosizeMinRows=\"1\"\n [matAutocomplete]=\"headerNamesAutocomplete\"\n ></textarea>\n </mat-form-field>\n <mat-autocomplete #headerNamesAutocomplete=\"matAutocomplete\">\n <mat-option *ngFor=\"let headerName of getFilteredHeaderNames(headerIndex, control.value) | async\" [value]=\"headerName\">{{\n headerName\n }}</mat-option>\n </mat-autocomplete>\n </td>\n <td class=\"gio-form-headers__table__header-row__td-value\">\n <mat-form-field class=\"gio-form-headers__table__header-row__td-value__field\" [floatLabel]=\"'never'\">\n <textarea formControlName=\"value\" matInput placeholder=\"Value...\" cdkTextareaAutosize cdkAutosizeMinRows=\"1\"></textarea>\n </mat-form-field>\n <button\n class=\"gio-form-headers__table__header-row__td-value__button\"\n *ngIf=\"headersFormArray.controls.length - 1 !== headerIndex\"\n mat-icon-button\n aria-label=\"Delete\"\n (click)=\"onDeleteHeader(headerIndex)\"\n >\n <mat-icon svgIcon=\"gio:cancel\"></mat-icon>\n </button>\n </td>\n </tr>\n </tbody>\n</table>\n", styles: [":host{display:block;overflow:hidden}.gio-form-headers__table{width:100%}.gio-form-headers__table__header-row__td-key,.gio-form-headers__table__header-row__td-value{position:relative;width:50%}.gio-form-headers__table__header-row__td-key__field,.gio-form-headers__table__header-row__td-value__field{display:flex;overflow:hidden;width:100%;max-height:32px;flex-direction:column;justify-content:center;padding-bottom:0}.gio-form-headers__table__header-row__td-key__field *,.gio-form-headers__table__header-row__td-value__field *{top:0;overflow:hidden;max-height:32px}.gio-form-headers__table__header-row__td-key__field:focus-within,.gio-form-headers__table__header-row__td-value__field:focus-within{z-index:100;height:auto;background-color:#fff}.gio-form-headers__table__header-row__td-key__field:focus-within *,.gio-form-headers__table__header-row__td-value__field:focus-within *{max-height:none}.gio-form-headers__table__header-row__td-key__button,.gio-form-headers__table__header-row__td-value__button{position:absolute;top:3px;right:3px;display:none}.gio-form-headers__table__header-row__td-remove{width:32px;height:32px;padding:0}.gio-form-headers__table__header-row:hover .gio-form-headers__table__header-row__td-value__button{z-index:110;display:block;background-color:#fff;opacity:.9}::ng-deep gio-form-headers .gio-form-headers__table__header-row .mat-form-field-infix{width:inherit}\n"], components: [{ type: i3__namespace$1.MatFormField, selector: "mat-form-field", inputs: ["color", "floatLabel", "appearance", "hideRequiredMarker", "hintLabel"], exportAs: ["matFormField"] }, { type: i5__namespace.MatAutocomplete, selector: "mat-autocomplete", inputs: ["disableRipple"], exportAs: ["matAutocomplete"] }, { type: i6__namespace.MatOption, selector: "mat-option", exportAs: ["matOption"] }, { type: i2__namespace.MatButton, selector: "button[mat-button], button[mat-raised-button], button[mat-icon-button], button[mat-fab], button[mat-mini-fab], button[mat-stroked-button], button[mat-flat-button]", inputs: ["disabled", "disableRipple", "color"], exportAs: ["matButton"] }, { type: i1__namespace$1.MatIcon, selector: "mat-icon", inputs: ["color", "inline", "svgIcon", "fontSet", "fontIcon"], exportAs: ["matIcon"] }], directives: [{ type: i7__namespace.NgControlStatusGroup, selector: "[formGroupName],[formArrayName],[ngModelGroup],[formGroup],form:not([ngNoForm]),[ngForm]" }, { type: i7__namespace.FormGroupDirective, selector: "[formGroup]", inputs: ["formGroup"], outputs: ["ngSubmit"], exportAs: ["ngForm"] }, { type: i7__namespace.FormArrayName, selector: "[formArrayName]", inputs: ["formArrayName"] }, { type: i2__namespace$1.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { type: i7__namespace.FormGroupName, selector: "[formGroupName]", inputs: ["formGroupName"] }, { type: i7__namespace.DefaultValueAccessor, selector: "input:not([type=checkbox])[formControlName],textarea[formControlName],input:not([type=checkbox])[formControl],textarea[formControl],input:not([type=checkbox])[ngModel],textarea[ngModel],[ngDefaultControl]" }, { type: i6__namespace$1.MatInput, selector: "input[matInput], textarea[matInput], select[matNativeControl], input[matNativeControl], textarea[matNativeControl]", inputs: ["id", "disabled", "required", "type", "value", "readonly", "placeholder", "errorStateMatcher", "aria-describedby"], exportAs: ["matInput"] }, { type: i10__namespace.CdkTextareaAutosize, selector: "textarea[cdkTextareaAutosize]", inputs: ["cdkAutosizeMinRows", "cdkAutosizeMaxRows", "cdkTextareaAutosize", "placeholder"], exportAs: ["cdkTextareaAutosize"] }, { type: i5__namespace.MatAutocompleteTrigger, selector: "input[matAutocomplete], textarea[matAutocomplete]", exportAs: ["matAutocompleteTrigger"] }, { type: i7__namespace.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { type: i7__namespace.FormControlName, selector: "[formControlName]", inputs: ["disabled", "formControlName", "ngModel"], outputs: ["ngModelChange"] }, { type: i2__namespace$1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }], pipes: { "async": i2__namespace$1.AsyncPipe } });
|
|
1737
|
-
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: GioFormHeadersComponent, decorators: [{
|
|
1738
|
-
type: i0.Component,
|
|
1739
|
-
args: [{
|
|
1740
|
-
selector: 'gio-form-headers',
|
|
1741
|
-
templateUrl: './gio-form-headers.component.html',
|
|
1742
|
-
styleUrls: ['./gio-form-headers.component.scss'],
|
|
1743
|
-
providers: [
|
|
1744
|
-
{
|
|
1745
|
-
provide: i7.NG_VALUE_ACCESSOR,
|
|
1746
|
-
useExisting: i0.forwardRef(function () { return GioFormHeadersComponent; }),
|
|
1747
|
-
multi: true,
|
|
1748
|
-
},
|
|
1749
|
-
],
|
|
1750
|
-
}]
|
|
1751
|
-
}], ctorParameters: function () { return [{ type: i2__namespace$2.FocusMonitor }, { type: i0__namespace.ElementRef }]; }, propDecorators: { disabled: [{
|
|
1752
|
-
type: i0.HostBinding,
|
|
1753
|
-
args: ['class.disabled']
|
|
1754
|
-
}] } });
|
|
1755
|
-
var removeLastEmptyHeader = function (headers) {
|
|
1756
|
-
var lastHeader = headers[headers.length - 1];
|
|
1757
|
-
if (lastHeader && lodash.isEmpty(lastHeader.key) && lodash.isEmpty(lastHeader.value)) {
|
|
1758
|
-
return lodash.dropRight(headers);
|
|
1759
|
-
}
|
|
1760
|
-
return headers;
|
|
1761
|
-
};
|
|
1762
|
-
|
|
1763
|
-
/*
|
|
1764
|
-
* Copyright (C) 2015 The Gravitee team (http://gravitee.io)
|
|
1765
|
-
*
|
|
1766
|
-
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
1767
|
-
* you may not use this file except in compliance with the License.
|
|
1768
|
-
* You may obtain a copy of the License at
|
|
1769
|
-
*
|
|
1770
|
-
* http://www.apache.org/licenses/LICENSE-2.0
|
|
1771
|
-
*
|
|
1772
|
-
* Unless required by applicable law or agreed to in writing, software
|
|
1773
|
-
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
1774
|
-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
1775
|
-
* See the License for the specific language governing permissions and
|
|
1776
|
-
* limitations under the License.
|
|
1777
|
-
*/
|
|
1778
|
-
var GioFormHeadersModule = /** @class */ (function () {
|
|
1779
|
-
function GioFormHeadersModule() {
|
|
1780
|
-
}
|
|
1781
|
-
return GioFormHeadersModule;
|
|
1782
|
-
}());
|
|
1783
|
-
GioFormHeadersModule.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: GioFormHeadersModule, deps: [], target: i0__namespace.ɵɵFactoryTarget.NgModule });
|
|
1784
|
-
GioFormHeadersModule.ɵmod = i0__namespace.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: GioFormHeadersModule, declarations: [GioFormHeadersComponent], imports: [i2$1.CommonModule,
|
|
1785
|
-
i6$1.MatInputModule,
|
|
1786
|
-
i3.MatFormFieldModule,
|
|
1787
|
-
i7.ReactiveFormsModule,
|
|
1788
|
-
GioIconsModule,
|
|
1789
|
-
i2.MatButtonModule,
|
|
1790
|
-
i5.MatAutocompleteModule,
|
|
1791
|
-
i6.MatOptionModule], exports: [GioFormHeadersComponent] });
|
|
1792
|
-
GioFormHeadersModule.ɵinj = i0__namespace.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: GioFormHeadersModule, imports: [[
|
|
1793
|
-
i2$1.CommonModule,
|
|
1794
|
-
i6$1.MatInputModule,
|
|
1795
|
-
i3.MatFormFieldModule,
|
|
1796
|
-
i7.ReactiveFormsModule,
|
|
1797
|
-
GioIconsModule,
|
|
1798
|
-
i2.MatButtonModule,
|
|
1799
|
-
i5.MatAutocompleteModule,
|
|
1800
|
-
i6.MatOptionModule,
|
|
1801
|
-
]] });
|
|
1802
|
-
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: GioFormHeadersModule, decorators: [{
|
|
1803
|
-
type: i0.NgModule,
|
|
1804
|
-
args: [{
|
|
1805
|
-
imports: [
|
|
1806
|
-
i2$1.CommonModule,
|
|
1807
|
-
i6$1.MatInputModule,
|
|
1808
|
-
i3.MatFormFieldModule,
|
|
1809
|
-
i7.ReactiveFormsModule,
|
|
1810
|
-
GioIconsModule,
|
|
1811
|
-
i2.MatButtonModule,
|
|
1812
|
-
i5.MatAutocompleteModule,
|
|
1813
|
-
i6.MatOptionModule,
|
|
1814
|
-
],
|
|
1815
|
-
declarations: [GioFormHeadersComponent],
|
|
1816
|
-
exports: [GioFormHeadersComponent],
|
|
1817
|
-
entryComponents: [GioFormHeadersComponent],
|
|
1818
|
-
}]
|
|
1819
|
-
}] });
|
|
1820
|
-
|
|
1821
|
-
var GioFormHeadersHarness = /** @class */ (function (_super) {
|
|
1822
|
-
__extends(GioFormHeadersHarness, _super);
|
|
1823
|
-
function GioFormHeadersHarness() {
|
|
1824
|
-
var _this = _super.apply(this, __spreadArray([], __read(arguments))) || this;
|
|
1825
|
-
_this.getHeaderRowsElement = _this.locatorForAll('tr.gio-form-headers__table__header-row');
|
|
1826
|
-
_this.getHeaderRowInputKey = function (rowIndex) { return _this.locatorFor(testing$4.MatInputHarness.with({ ancestor: "[ng-reflect-name=\"" + rowIndex + "\"]", selector: '[formControlName=key]' })); };
|
|
1827
|
-
_this.getHeaderRowInputKeyAutocomplete = function (rowIndex) { return _this.locatorFor(testing$2.MatAutocompleteHarness.with({ ancestor: "tr[ng-reflect-name=\"" + rowIndex + "\"]", selector: '.mat-autocomplete-trigger' })); };
|
|
1828
|
-
_this.getHeaderRowInputValue = function (rowIndex) { return _this.locatorFor(testing$4.MatInputHarness.with({ ancestor: "tr[ng-reflect-name=\"" + rowIndex + "\"]", selector: '[formControlName=value]' })); };
|
|
1829
|
-
_this.getHeaderRowRemoveButton = function (rowIndex) { return _this.locatorForOptional(testing$3.MatButtonHarness.with({ ancestor: "tr[ng-reflect-name=\"" + rowIndex + "\"]", selector: '[aria-label="Delete"]' })); };
|
|
1830
|
-
return _this;
|
|
1831
|
-
}
|
|
1832
|
-
/**
|
|
1833
|
-
* Gets a `HarnessPredicate` that can be used to search for a `GioFormColorInputHarness` that meets
|
|
1834
|
-
* certain criteria.
|
|
1835
|
-
*
|
|
1836
|
-
* @param options Options for filtering which input instances are considered a match.
|
|
1837
|
-
* @return a `HarnessPredicate` configured with the given options.
|
|
1838
|
-
*/
|
|
1839
|
-
GioFormHeadersHarness.with = function (options) {
|
|
1840
|
-
if (options === void 0) { options = {}; }
|
|
1841
|
-
return new testing.HarnessPredicate(GioFormHeadersHarness, options);
|
|
1842
|
-
};
|
|
1843
|
-
GioFormHeadersHarness.prototype.getHeaderRows = function () {
|
|
1844
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
1845
|
-
var rows;
|
|
1846
|
-
var _this = this;
|
|
1847
|
-
return __generator(this, function (_a) {
|
|
1848
|
-
switch (_a.label) {
|
|
1849
|
-
case 0: return [4 /*yield*/, this.getHeaderRowsElement()];
|
|
1850
|
-
case 1:
|
|
1851
|
-
rows = _a.sent();
|
|
1852
|
-
return [2 /*return*/, Promise.all(rows.map(function (_, rowIndex) { return __awaiter(_this, void 0, void 0, function () {
|
|
1853
|
-
var _a;
|
|
1854
|
-
return __generator(this, function (_b) {
|
|
1855
|
-
switch (_b.label) {
|
|
1856
|
-
case 0:
|
|
1857
|
-
_a = {};
|
|
1858
|
-
return [4 /*yield*/, this.getHeaderRowInputKey(rowIndex)()];
|
|
1859
|
-
case 1:
|
|
1860
|
-
_a.keyInput = _b.sent();
|
|
1861
|
-
return [4 /*yield*/, this.getHeaderRowInputKeyAutocomplete(rowIndex)()];
|
|
1862
|
-
case 2:
|
|
1863
|
-
_a.keyAutocomplete = _b.sent();
|
|
1864
|
-
return [4 /*yield*/, this.getHeaderRowInputValue(rowIndex)()];
|
|
1865
|
-
case 3:
|
|
1866
|
-
_a.valueInput = _b.sent();
|
|
1867
|
-
return [4 /*yield*/, this.getHeaderRowRemoveButton(rowIndex)()];
|
|
1868
|
-
case 4: return [2 /*return*/, (_a.removeButton = _b.sent(),
|
|
1869
|
-
_a)];
|
|
1870
|
-
}
|
|
1871
|
-
});
|
|
1872
|
-
}); }))];
|
|
1873
|
-
}
|
|
1874
|
-
});
|
|
1875
|
-
});
|
|
1876
|
-
};
|
|
1877
|
-
GioFormHeadersHarness.prototype.getLastHeaderRow = function () {
|
|
1878
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
1879
|
-
var rows, _a;
|
|
1880
|
-
return __generator(this, function (_b) {
|
|
1881
|
-
switch (_b.label) {
|
|
1882
|
-
case 0: return [4 /*yield*/, this.getHeaderRowsElement()];
|
|
1883
|
-
case 1:
|
|
1884
|
-
rows = _b.sent();
|
|
1885
|
-
_a = {};
|
|
1886
|
-
return [4 /*yield*/, this.getHeaderRowInputKey(rows.length - 1)()];
|
|
1887
|
-
case 2:
|
|
1888
|
-
_a.keyInput = _b.sent();
|
|
1889
|
-
return [4 /*yield*/, this.getHeaderRowInputValue(rows.length - 1)()];
|
|
1890
|
-
case 3: return [2 /*return*/, (_a.valueInput = _b.sent(),
|
|
1891
|
-
_a)];
|
|
1892
|
-
}
|
|
1893
|
-
});
|
|
1894
|
-
});
|
|
1895
|
-
};
|
|
1896
|
-
GioFormHeadersHarness.prototype.addHeader = function (_a) {
|
|
1897
|
-
var key = _a.key, value = _a.value;
|
|
1898
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
1899
|
-
var _a, keyInput, valueInput;
|
|
1900
|
-
return __generator(this, function (_b) {
|
|
1901
|
-
switch (_b.label) {
|
|
1902
|
-
case 0: return [4 /*yield*/, this.getLastHeaderRow()];
|
|
1903
|
-
case 1:
|
|
1904
|
-
_a = _b.sent(), keyInput = _a.keyInput, valueInput = _a.valueInput;
|
|
1905
|
-
return [4 /*yield*/, keyInput.setValue(key)];
|
|
1906
|
-
case 2:
|
|
1907
|
-
_b.sent();
|
|
1908
|
-
return [4 /*yield*/, valueInput.setValue(value)];
|
|
1909
|
-
case 3:
|
|
1910
|
-
_b.sent();
|
|
1911
|
-
return [2 /*return*/];
|
|
1912
|
-
}
|
|
1913
|
-
});
|
|
1914
|
-
});
|
|
1915
|
-
};
|
|
1916
|
-
GioFormHeadersHarness.prototype.isDisabled = function () {
|
|
1917
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
1918
|
-
return __generator(this, function (_a) {
|
|
1919
|
-
switch (_a.label) {
|
|
1920
|
-
case 0: return [4 /*yield*/, this.host()];
|
|
1921
|
-
case 1: return [2 /*return*/, (_a.sent()).hasClass('disabled')];
|
|
1922
|
-
}
|
|
1923
|
-
});
|
|
1924
|
-
});
|
|
1925
|
-
};
|
|
1926
|
-
return GioFormHeadersHarness;
|
|
1927
|
-
}(testing.ComponentHarness));
|
|
1928
|
-
GioFormHeadersHarness.hostSelector = 'gio-form-headers';
|
|
1929
|
-
|
|
1930
|
-
/*
|
|
1931
|
-
* Copyright (C) 2015 The Gravitee team (http://gravitee.io)
|
|
1932
|
-
*
|
|
1933
|
-
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
1934
|
-
* you may not use this file except in compliance with the License.
|
|
1935
|
-
* You may obtain a copy of the License at
|
|
1936
|
-
*
|
|
1937
|
-
* http://www.apache.org/licenses/LICENSE-2.0
|
|
1938
|
-
*
|
|
1939
|
-
* Unless required by applicable law or agreed to in writing, software
|
|
1940
|
-
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
1941
|
-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
1942
|
-
* See the License for the specific language governing permissions and
|
|
1943
|
-
* limitations under the License.
|
|
1944
|
-
*/
|
|
1945
|
-
var GioFormFilePickerAddButtonComponent = /** @class */ (function () {
|
|
1946
|
-
function GioFormFilePickerAddButtonComponent() {
|
|
1947
|
-
}
|
|
1948
|
-
return GioFormFilePickerAddButtonComponent;
|
|
1949
|
-
}());
|
|
1950
|
-
GioFormFilePickerAddButtonComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: GioFormFilePickerAddButtonComponent, deps: [], target: i0__namespace.ɵɵFactoryTarget.Component });
|
|
1951
|
-
GioFormFilePickerAddButtonComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.15", type: GioFormFilePickerAddButtonComponent, selector: "gio-form-file-picker-add-button", ngImport: i0__namespace, template: "<!--\n\n Copyright (C) 2015 The Gravitee team (http://gravitee.io)\n \n Licensed under the Apache License, Version 2.0 (the \"License\");\n you may not use this file except in compliance with the License.\n You may obtain a copy of the License at\n \n http://www.apache.org/licenses/LICENSE-2.0\n \n Unless required by applicable law or agreed to in writing, software\n distributed under the License is distributed on an \"AS IS\" BASIS,\n WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n See the License for the specific language governing permissions and\n limitations under the License.\n\n-->\n<div class=\"add-button\" matRipple>\n <div #content><ng-content></ng-content></div>\n <span *ngIf=\"!content.children.length\">\n <mat-icon class=\"add-button__image\" svgIcon=\"gio:upload\"></mat-icon>\n <span class=\"add-button__content\">Drag your file</span>\n </span>\n</div>\n", styles: [":host{display:flex;flex-direction:column}.file-picker{display:flex;flex:1 1 auto;flex-flow:row wrap;padding:4px}.file-picker__add-button{border:2px dashed #606274;margin:4px;border-radius:6px;cursor:pointer}.file-picker__add-button:hover,.file-picker__add-button.drag-hover{border:2px dashed #876fec;background-color:#0000000a}.file-picker__add-button.drag-hover{pointer-events:none}.file-picker__add-button.complete{padding:6px;border:none}.file-picker__add-button.error{border:2px dashed #ec4899}.file-picker__preview,.file-picker__preview-empty{position:relative;display:flex;min-width:130px;min-height:130px;flex:0 0 130px;flex-flow:column nowrap;justify-content:space-between;padding:6px;border:2px solid #606274;margin:4px;border-radius:6px;inline-size:-moz-fit-content;inline-size:fit-content}.file-picker__preview.drag-hover,.file-picker__preview-empty.drag-hover{pointer-events:none}.file-picker__preview__image,.file-picker__preview-empty__image{width:100%;height:100%;background-position-x:center;background-position-y:center;background-repeat:no-repeat;background-size:contain}.file-picker__preview__file,.file-picker__preview-empty__file{display:flex;flex:1 1 auto;flex-direction:column;align-content:center;align-items:center;justify-content:center;text-align:center;font:400 12px / 16px \"Golos UI\",Roboto,\"Helvetica Neue\",sans-serif;letter-spacing:normal}.file-picker__preview__file code,.file-picker__preview-empty__file code{font:400 12px / 16px \"Golos UI\",Roboto,\"Helvetica Neue\",sans-serif;letter-spacing:normal}.file-picker__preview.disabled,.file-picker__preview-empty.disabled{border:2px solid #e0e0e0}.file-picker__preview.error{border:2px solid #ec4899}.file-picker__preview__delete{position:absolute;z-index:200;top:0;right:0;width:24px;height:24px;background-color:#f7f8fdb3;border-radius:3px;color:#100c27;cursor:pointer}.file-picker__preview__delete:hover{color:#fe733f}.file-picker__preview-empty__default{text-align:center}:host{display:block;width:130px;height:130px}.add-button{height:100%;padding:6px;text-align:center}.add-button__image{width:100%;height:54px}.add-button__content{font:400 12px / 16px \"Golos UI\",Roboto,\"Helvetica Neue\",sans-serif;letter-spacing:normal}\n"], components: [{ type: i1__namespace$1.MatIcon, selector: "mat-icon", inputs: ["color", "inline", "svgIcon", "fontSet", "fontIcon"], exportAs: ["matIcon"] }], directives: [{ type: i6__namespace.MatRipple, selector: "[mat-ripple], [matRipple]", inputs: ["matRippleRadius", "matRippleDisabled", "matRippleTrigger", "matRippleColor", "matRippleUnbounded", "matRippleCentered", "matRippleAnimation"], exportAs: ["matRipple"] }, { type: i2__namespace$1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }], changeDetection: i0__namespace.ChangeDetectionStrategy.OnPush });
|
|
1952
|
-
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: GioFormFilePickerAddButtonComponent, decorators: [{
|
|
1953
|
-
type: i0.Component,
|
|
1954
|
-
args: [{
|
|
1955
|
-
selector: 'gio-form-file-picker-add-button',
|
|
1956
|
-
templateUrl: './gio-form-file-picker-add-button.component.html',
|
|
1957
|
-
styleUrls: ['./gio-form-file-picker-add-button.component.scss'],
|
|
1958
|
-
changeDetection: i0.ChangeDetectionStrategy.OnPush,
|
|
1959
|
-
}]
|
|
1960
|
-
}] });
|
|
1961
|
-
|
|
1962
|
-
/*
|
|
1963
|
-
* Copyright (C) 2015 The Gravitee team (http://gravitee.io)
|
|
1964
|
-
*
|
|
1965
|
-
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
1966
|
-
* you may not use this file except in compliance with the License.
|
|
1967
|
-
* You may obtain a copy of the License at
|
|
1968
|
-
*
|
|
1969
|
-
* http://www.apache.org/licenses/LICENSE-2.0
|
|
1970
|
-
*
|
|
1971
|
-
* Unless required by applicable law or agreed to in writing, software
|
|
1972
|
-
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
1973
|
-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
1974
|
-
* See the License for the specific language governing permissions and
|
|
1975
|
-
* limitations under the License.
|
|
1976
|
-
*/
|
|
1977
|
-
var GioFormFilePickerEmptyComponent = /** @class */ (function () {
|
|
1978
|
-
function GioFormFilePickerEmptyComponent() {
|
|
1979
|
-
}
|
|
1980
|
-
return GioFormFilePickerEmptyComponent;
|
|
1981
|
-
}());
|
|
1982
|
-
GioFormFilePickerEmptyComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: GioFormFilePickerEmptyComponent, deps: [], target: i0__namespace.ɵɵFactoryTarget.Component });
|
|
1983
|
-
GioFormFilePickerEmptyComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.15", type: GioFormFilePickerEmptyComponent, selector: "gio-form-file-picker-empty", ngImport: i0__namespace, template: "<!--\n\n Copyright (C) 2015 The Gravitee team (http://gravitee.io)\n \n Licensed under the Apache License, Version 2.0 (the \"License\");\n you may not use this file except in compliance with the License.\n You may obtain a copy of the License at\n \n http://www.apache.org/licenses/LICENSE-2.0\n \n Unless required by applicable law or agreed to in writing, software\n distributed under the License is distributed on an \"AS IS\" BASIS,\n WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n See the License for the specific language governing permissions and\n limitations under the License.\n\n-->\n<div #content><ng-content></ng-content></div>\n<span *ngIf=\"!content.children.length\"> No file defined </span>\n", directives: [{ type: i2__namespace$1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }], changeDetection: i0__namespace.ChangeDetectionStrategy.OnPush });
|
|
1984
|
-
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: GioFormFilePickerEmptyComponent, decorators: [{
|
|
1985
|
-
type: i0.Component,
|
|
1986
|
-
args: [{
|
|
1987
|
-
selector: 'gio-form-file-picker-empty',
|
|
1988
|
-
templateUrl: './gio-form-file-picker-empty.component.html',
|
|
1989
|
-
changeDetection: i0.ChangeDetectionStrategy.OnPush,
|
|
1990
|
-
}]
|
|
1991
|
-
}] });
|
|
1992
|
-
|
|
1993
|
-
/*
|
|
1994
|
-
* Copyright (C) 2015 The Gravitee team (http://gravitee.io)
|
|
1995
|
-
*
|
|
1996
|
-
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
1997
|
-
* you may not use this file except in compliance with the License.
|
|
1998
|
-
* You may obtain a copy of the License at
|
|
1999
|
-
*
|
|
2000
|
-
* http://www.apache.org/licenses/LICENSE-2.0
|
|
2001
|
-
*
|
|
2002
|
-
* Unless required by applicable law or agreed to in writing, software
|
|
2003
|
-
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
2004
|
-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
2005
|
-
* See the License for the specific language governing permissions and
|
|
2006
|
-
* limitations under the License.
|
|
2007
|
-
*/
|
|
2008
|
-
var GioFormFilePickerLabelComponent = /** @class */ (function () {
|
|
2009
|
-
function GioFormFilePickerLabelComponent() {
|
|
2010
|
-
}
|
|
2011
|
-
return GioFormFilePickerLabelComponent;
|
|
2012
|
-
}());
|
|
2013
|
-
GioFormFilePickerLabelComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: GioFormFilePickerLabelComponent, deps: [], target: i0__namespace.ɵɵFactoryTarget.Component });
|
|
2014
|
-
GioFormFilePickerLabelComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.15", type: GioFormFilePickerLabelComponent, selector: "gio-form-file-picker-label", ngImport: i0__namespace, template: "<!--\n\n Copyright (C) 2015 The Gravitee team (http://gravitee.io)\n \n Licensed under the Apache License, Version 2.0 (the \"License\");\n you may not use this file except in compliance with the License.\n You may obtain a copy of the License at\n \n http://www.apache.org/licenses/LICENSE-2.0\n \n Unless required by applicable law or agreed to in writing, software\n distributed under the License is distributed on an \"AS IS\" BASIS,\n WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n See the License for the specific language governing permissions and\n limitations under the License.\n\n-->\n<div class=\"mat-caption\"><ng-content></ng-content></div>\n", styles: [":host{padding-left:8px;margin-bottom:-4px}\n"], changeDetection: i0__namespace.ChangeDetectionStrategy.OnPush });
|
|
2015
|
-
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: GioFormFilePickerLabelComponent, decorators: [{
|
|
2016
|
-
type: i0.Component,
|
|
2017
|
-
args: [{
|
|
2018
|
-
selector: 'gio-form-file-picker-label',
|
|
2019
|
-
templateUrl: './gio-form-file-picker-label.component.html',
|
|
2020
|
-
styleUrls: ['./gio-form-file-picker-label.component.scss'],
|
|
2021
|
-
changeDetection: i0.ChangeDetectionStrategy.OnPush,
|
|
2022
|
-
}]
|
|
2023
|
-
}] });
|
|
2024
|
-
|
|
2025
|
-
/*
|
|
2026
|
-
* Copyright (C) 2015 The Gravitee team (http://gravitee.io)
|
|
2027
|
-
*
|
|
2028
|
-
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
2029
|
-
* you may not use this file except in compliance with the License.
|
|
2030
|
-
* You may obtain a copy of the License at
|
|
2031
|
-
*
|
|
2032
|
-
* http://www.apache.org/licenses/LICENSE-2.0
|
|
2033
|
-
*
|
|
2034
|
-
* Unless required by applicable law or agreed to in writing, software
|
|
2035
|
-
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
2036
|
-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
2037
|
-
* See the License for the specific language governing permissions and
|
|
2038
|
-
* limitations under the License.
|
|
2039
|
-
*/
|
|
2040
|
-
var NewFile = /** @class */ (function () {
|
|
2041
|
-
function NewFile(name, dataUrl, file) {
|
|
2042
|
-
this.name = name;
|
|
2043
|
-
this.dataUrl = dataUrl;
|
|
2044
|
-
this.file = file;
|
|
2045
|
-
}
|
|
2046
|
-
return NewFile;
|
|
2047
|
-
}());
|
|
2048
|
-
|
|
2049
|
-
var GioFormFilePickerComponent = /** @class */ (function () {
|
|
2050
|
-
function GioFormFilePickerComponent(changeDetectorRef, ngControl) {
|
|
2051
|
-
this.changeDetectorRef = changeDetectorRef;
|
|
2052
|
-
this.ngControl = ngControl;
|
|
2053
|
-
this.multiple = false;
|
|
2054
|
-
this.accept = '*';
|
|
2055
|
-
this.fileValues = [];
|
|
2056
|
-
this.readMode = i6$2.ReadMode.dataURL;
|
|
2057
|
-
this.dragHover = false;
|
|
2058
|
-
this.isDisabled = false;
|
|
2059
|
-
// eslint-disable-next-line @typescript-eslint/no-empty-function
|
|
2060
|
-
this.onChangeCallback = function () { };
|
|
2061
|
-
// eslint-disable-next-line @typescript-eslint/no-empty-function
|
|
2062
|
-
this.onTouchedCallback = function () { };
|
|
2063
|
-
if (ngControl) {
|
|
2064
|
-
// Setting the value accessor directly (instead of using
|
|
2065
|
-
// the providers `NG_VALUE_ACCESSOR`) to avoid running into a circular import.
|
|
2066
|
-
ngControl.valueAccessor = this;
|
|
2067
|
-
}
|
|
2068
|
-
}
|
|
2069
|
-
Object.defineProperty(GioFormFilePickerComponent.prototype, "disabled", {
|
|
2070
|
-
set: function (disabled) {
|
|
2071
|
-
this.setDisabledState(disabled);
|
|
2072
|
-
},
|
|
2073
|
-
enumerable: false,
|
|
2074
|
-
configurable: true
|
|
2075
|
-
});
|
|
2076
|
-
GioFormFilePickerComponent.prototype.ngOnInit = function () {
|
|
2077
|
-
var _this = this;
|
|
2078
|
-
if (this.ngControl && this.ngControl.statusChanges) {
|
|
2079
|
-
// As the change detection is OnPush we have to markForCheck the component after a validation change because no input/output or values have changed
|
|
2080
|
-
this.ngControl.statusChanges.pipe(operators.tap(function () { return _this.changeDetectorRef.markForCheck(); })).subscribe();
|
|
2081
|
-
}
|
|
2082
|
-
};
|
|
2083
|
-
Object.defineProperty(GioFormFilePickerComponent.prototype, "isComplete", {
|
|
2084
|
-
get: function () {
|
|
2085
|
-
return (!this.multiple && this.fileValues.length === 1) || false;
|
|
2086
|
-
},
|
|
2087
|
-
enumerable: false,
|
|
2088
|
-
configurable: true
|
|
2089
|
-
});
|
|
2090
|
-
Object.defineProperty(GioFormFilePickerComponent.prototype, "isValid", {
|
|
2091
|
-
get: function () {
|
|
2092
|
-
return !this.ngControl || !this.ngControl.touched || this.ngControl.valid;
|
|
2093
|
-
},
|
|
2094
|
-
enumerable: false,
|
|
2095
|
-
configurable: true
|
|
2096
|
-
});
|
|
2097
|
-
// implement by ControlValueAccessor
|
|
2098
|
-
GioFormFilePickerComponent.prototype.writeValue = function (inputs) {
|
|
2099
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
2100
|
-
var _a;
|
|
2101
|
-
var _this = this;
|
|
2102
|
-
return __generator(this, function (_b) {
|
|
2103
|
-
switch (_b.label) {
|
|
2104
|
-
case 0:
|
|
2105
|
-
if (lodash.isNil(inputs) || !lodash.isArray(inputs)) {
|
|
2106
|
-
this.fileValues = [];
|
|
2107
|
-
return [2 /*return*/, Promise.resolve()];
|
|
2108
|
-
}
|
|
2109
|
-
_a = this;
|
|
2110
|
-
return [4 /*yield*/, Promise.all(inputs.map(function (input) { return __awaiter(_this, void 0, void 0, function () {
|
|
2111
|
-
var _a;
|
|
2112
|
-
return __generator(this, function (_b) {
|
|
2113
|
-
switch (_b.label) {
|
|
2114
|
-
case 0:
|
|
2115
|
-
_a = {
|
|
2116
|
-
isNew: false,
|
|
2117
|
-
name: input,
|
|
2118
|
-
dataUrl: input
|
|
2119
|
-
};
|
|
2120
|
-
return [4 /*yield*/, isImgUrl(input)];
|
|
2121
|
-
case 1: return [2 /*return*/, (_a.isImage = _b.sent(),
|
|
2122
|
-
_a)];
|
|
2123
|
-
}
|
|
2124
|
-
});
|
|
2125
|
-
}); }))];
|
|
2126
|
-
case 1:
|
|
2127
|
-
_a.fileValues = _b.sent();
|
|
2128
|
-
this.changeDetectorRef.markForCheck();
|
|
2129
|
-
return [2 /*return*/];
|
|
2130
|
-
}
|
|
2131
|
-
});
|
|
2132
|
-
});
|
|
2133
|
-
};
|
|
2134
|
-
// implement by ControlValueAccessor
|
|
2135
|
-
GioFormFilePickerComponent.prototype.registerOnChange = function (fn) {
|
|
2136
|
-
this.onChangeCallback = fn;
|
|
2137
|
-
};
|
|
2138
|
-
// implement by ControlValueAccessor
|
|
2139
|
-
GioFormFilePickerComponent.prototype.registerOnTouched = function (fn) {
|
|
2140
|
-
this.onTouchedCallback = fn;
|
|
2141
|
-
};
|
|
2142
|
-
// implement by ControlValueAccessor
|
|
2143
|
-
GioFormFilePickerComponent.prototype.setDisabledState = function (isDisabled) {
|
|
2144
|
-
this.isDisabled = isDisabled;
|
|
2145
|
-
};
|
|
2146
|
-
GioFormFilePickerComponent.prototype.onFilePicked = function (event) {
|
|
2147
|
-
this.handleReceivedFileEvent(event);
|
|
2148
|
-
};
|
|
2149
|
-
GioFormFilePickerComponent.prototype.onFileDropped = function (event) {
|
|
2150
|
-
this.handleReceivedFileEvent(event);
|
|
2151
|
-
};
|
|
2152
|
-
GioFormFilePickerComponent.prototype.onRemoveFile = function (file) {
|
|
2153
|
-
this.onTouchedCallback();
|
|
2154
|
-
this.dragHover = false;
|
|
2155
|
-
lodash.remove(this.fileValues, { name: file.name });
|
|
2156
|
-
this.emitFileValue();
|
|
2157
|
-
};
|
|
2158
|
-
GioFormFilePickerComponent.prototype.onTouched = function () {
|
|
2159
|
-
this.onTouchedCallback();
|
|
2160
|
-
this.dragHover = false;
|
|
2161
|
-
};
|
|
2162
|
-
GioFormFilePickerComponent.prototype.onDragEnter = function ($event) {
|
|
2163
|
-
var el = $event.target;
|
|
2164
|
-
if (el) {
|
|
2165
|
-
this.dragHover = true;
|
|
2166
|
-
this.onTouchedCallback();
|
|
2167
|
-
}
|
|
2168
|
-
};
|
|
2169
|
-
GioFormFilePickerComponent.prototype.onDragOver = function ($event) {
|
|
2170
|
-
var el = $event.target;
|
|
2171
|
-
if (el) {
|
|
2172
|
-
this.dragHover = false;
|
|
2173
|
-
this.onTouchedCallback();
|
|
2174
|
-
}
|
|
2175
|
-
};
|
|
2176
|
-
GioFormFilePickerComponent.prototype.handleReceivedFileEvent = function (event) {
|
|
2177
|
-
this.onTouchedCallback();
|
|
2178
|
-
this.dragHover = false;
|
|
2179
|
-
if (!this.multiple) {
|
|
2180
|
-
this.fileValues = [];
|
|
2181
|
-
}
|
|
2182
|
-
this.fileValues.push({
|
|
2183
|
-
name: event.name,
|
|
2184
|
-
isNew: true,
|
|
2185
|
-
dataUrl: event.content,
|
|
2186
|
-
file: event.underlyingFile,
|
|
2187
|
-
isImage: event.type.startsWith('image/'),
|
|
2188
|
-
});
|
|
2189
|
-
this.emitFileValue();
|
|
2190
|
-
};
|
|
2191
|
-
GioFormFilePickerComponent.prototype.emitFileValue = function () {
|
|
2192
|
-
this.onChangeCallback(this.fileValues.map(function (fileValue) { return fileValue.isNew ? new NewFile(fileValue.name, fileValue.dataUrl, fileValue.file) : fileValue.dataUrl; }));
|
|
2193
|
-
};
|
|
2194
|
-
return GioFormFilePickerComponent;
|
|
2195
|
-
}());
|
|
2196
|
-
GioFormFilePickerComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: GioFormFilePickerComponent, deps: [{ token: i0__namespace.ChangeDetectorRef }, { token: i7__namespace.NgControl, optional: true, self: true }], target: i0__namespace.ɵɵFactoryTarget.Component });
|
|
2197
|
-
GioFormFilePickerComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.15", type: GioFormFilePickerComponent, selector: "gio-form-file-picker", inputs: { multiple: "multiple", accept: "accept", disabled: "disabled" }, ngImport: i0__namespace, template: "<!--\n\n Copyright (C) 2015 The Gravitee team (http://gravitee.io)\n \n Licensed under the Apache License, Version 2.0 (the \"License\");\n you may not use this file except in compliance with the License.\n You may obtain a copy of the License at\n \n http://www.apache.org/licenses/LICENSE-2.0\n \n Unless required by applicable law or agreed to in writing, software\n distributed under the License is distributed on an \"AS IS\" BASIS,\n WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n See the License for the specific language governing permissions and\n limitations under the License.\n\n-->\n<ng-content select=\"gio-form-file-picker-label\"></ng-content>\n<div\n *ngIf=\"!isDisabled; else disabledTpl\"\n class=\"file-picker\"\n ngxFileDropzone\n [readMode]=\"readMode\"\n (fileDrop)=\"onFileDropped($event)\"\n (dragenter)=\"onDragEnter($event)\"\n (dragleave)=\"onDragOver($event)\"\n (blur)=\"dragHover = false\"\n>\n <div\n *ngIf=\"!isComplete\"\n class=\"file-picker__add-button\"\n [class.complete]=\"isComplete\"\n [class.error]=\"!isValid\"\n [class.drag-hover]=\"dragHover\"\n ngxFilePicker\n [accept]=\"accept\"\n [readMode]=\"readMode\"\n [multiple]=\"multiple\"\n (filePick)=\"onFilePicked($event)\"\n (click)=\"onTouched()\"\n >\n <div #addButton class=\"file-picker__add-button__content\"><ng-content select=\"gio-form-file-picker-add-button\"></ng-content></div>\n <gio-form-file-picker-add-button *ngIf=\"addButton.children.length === 0\"></gio-form-file-picker-add-button>\n </div>\n <div *ngFor=\"let fileValue of fileValues\" class=\"file-picker__preview\" [class.drag-hover]=\"dragHover\" [class.error]=\"!isValid\">\n <a class=\"file-picker__preview__delete\" (click)=\"onRemoveFile(fileValue)\">\n <mat-icon svgIcon=\"gio:cancel\"></mat-icon>\n </a>\n\n <ng-container *ngTemplateOutlet=\"filePreview; context: { fileValue: this.fileValue }\"></ng-container>\n </div>\n</div>\n\n<ng-template #disabledTpl>\n <div class=\"file-picker disabled\">\n <ng-container *ngIf=\"fileValues.length === 0\">\n <span #previewEmpty class=\"file-picker__preview-empty disabled\">\n <ng-content select=\"gio-form-file-picker-empty\"></ng-content>\n <gio-form-file-picker-empty\n *ngIf=\"previewEmpty.children.length === 0\"\n class=\"file-picker__preview-empty__default\"\n ></gio-form-file-picker-empty>\n </span>\n </ng-container>\n\n <div class=\"file-picker__preview disabled\" *ngFor=\"let fileValue of fileValues\">\n <ng-container *ngTemplateOutlet=\"filePreview; context: { fileValue: this.fileValue }\"></ng-container>\n </div>\n </div>\n</ng-template>\n\n<ng-template #filePreview let-fileValue=\"fileValue\">\n <div class=\"file-picker__preview__image\" *ngIf=\"fileValue.isImage\" [style.background-image]=\"'url(' + fileValue.dataUrl + ')'\"></div>\n <div class=\"file-picker__preview__file\" *ngIf=\"!fileValue.isImage\">\n <p>{{ fileValue.name }}</p>\n </div>\n</ng-template>\n", styles: [":host{display:flex;flex-direction:column}.file-picker{display:flex;flex:1 1 auto;flex-flow:row wrap;padding:4px}.file-picker__add-button{border:2px dashed #606274;margin:4px;border-radius:6px;cursor:pointer}.file-picker__add-button:hover,.file-picker__add-button.drag-hover{border:2px dashed #876fec;background-color:#0000000a}.file-picker__add-button.drag-hover{pointer-events:none}.file-picker__add-button.complete{padding:6px;border:none}.file-picker__add-button.error{border:2px dashed #ec4899}.file-picker__preview,.file-picker__preview-empty{position:relative;display:flex;min-width:130px;min-height:130px;flex:0 0 130px;flex-flow:column nowrap;justify-content:space-between;padding:6px;border:2px solid #606274;margin:4px;border-radius:6px;inline-size:-moz-fit-content;inline-size:fit-content}.file-picker__preview.drag-hover,.file-picker__preview-empty.drag-hover{pointer-events:none}.file-picker__preview__image,.file-picker__preview-empty__image{width:100%;height:100%;background-position-x:center;background-position-y:center;background-repeat:no-repeat;background-size:contain}.file-picker__preview__file,.file-picker__preview-empty__file{display:flex;flex:1 1 auto;flex-direction:column;align-content:center;align-items:center;justify-content:center;text-align:center;font:400 12px / 16px \"Golos UI\",Roboto,\"Helvetica Neue\",sans-serif;letter-spacing:normal}.file-picker__preview__file code,.file-picker__preview-empty__file code{font:400 12px / 16px \"Golos UI\",Roboto,\"Helvetica Neue\",sans-serif;letter-spacing:normal}.file-picker__preview.disabled,.file-picker__preview-empty.disabled{border:2px solid #e0e0e0}.file-picker__preview.error{border:2px solid #ec4899}.file-picker__preview__delete{position:absolute;z-index:200;top:0;right:0;width:24px;height:24px;background-color:#f7f8fdb3;border-radius:3px;color:#100c27;cursor:pointer}.file-picker__preview__delete:hover{color:#fe733f}.file-picker__preview-empty__default{text-align:center}\n"], components: [{ type: GioFormFilePickerAddButtonComponent, selector: "gio-form-file-picker-add-button" }, { type: i1__namespace$1.MatIcon, selector: "mat-icon", inputs: ["color", "inline", "svgIcon", "fontSet", "fontIcon"], exportAs: ["matIcon"] }, { type: GioFormFilePickerEmptyComponent, selector: "gio-form-file-picker-empty" }], directives: [{ type: i2__namespace$1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i6__namespace$2.FileDropzoneDirective, selector: "[ngxFileDropzone]", outputs: ["fileDrop"], exportAs: ["ngxFileDropzone"] }, { type: i6__namespace$2.FilePickerDirective, selector: "[ngxFilePicker]", inputs: ["accept", "multiple"], outputs: ["filePick"], exportAs: ["ngxFilePicker"] }, { type: i2__namespace$1.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { type: i2__namespace$1.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet"] }], changeDetection: i0__namespace.ChangeDetectionStrategy.OnPush });
|
|
2198
|
-
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: GioFormFilePickerComponent, decorators: [{
|
|
2199
|
-
type: i0.Component,
|
|
2200
|
-
args: [{
|
|
2201
|
-
selector: 'gio-form-file-picker',
|
|
2202
|
-
templateUrl: './gio-form-file-picker.component.html',
|
|
2203
|
-
styleUrls: ['./gio-form-file-picker.component.scss'],
|
|
2204
|
-
changeDetection: i0.ChangeDetectionStrategy.OnPush,
|
|
2205
|
-
}]
|
|
2206
|
-
}], ctorParameters: function () {
|
|
2207
|
-
return [{ type: i0__namespace.ChangeDetectorRef }, { type: i7__namespace.NgControl, decorators: [{
|
|
2208
|
-
type: i0.Self
|
|
2209
|
-
}, {
|
|
2210
|
-
type: i0.Optional
|
|
2211
|
-
}] }];
|
|
2212
|
-
}, propDecorators: { multiple: [{
|
|
2213
|
-
type: i0.Input
|
|
2214
|
-
}], accept: [{
|
|
2215
|
-
type: i0.Input
|
|
2216
|
-
}], disabled: [{
|
|
2217
|
-
type: i0.Input
|
|
2218
|
-
}] } });
|
|
2219
|
-
var isImgUrl = function (url) {
|
|
2220
|
-
try {
|
|
2221
|
-
var img_1 = new Image();
|
|
2222
|
-
img_1.src = url;
|
|
2223
|
-
return new Promise(function (resolve) {
|
|
2224
|
-
img_1.onerror = function () { return resolve(false); };
|
|
2225
|
-
img_1.onload = function () { return resolve(true); };
|
|
2226
|
-
});
|
|
2227
|
-
}
|
|
2228
|
-
catch (error) {
|
|
2229
|
-
return Promise.resolve(false);
|
|
2230
|
-
}
|
|
2231
|
-
};
|
|
2232
|
-
|
|
2233
|
-
/*
|
|
2234
|
-
* Copyright (C) 2015 The Gravitee team (http://gravitee.io)
|
|
2235
|
-
*
|
|
2236
|
-
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
2237
|
-
* you may not use this file except in compliance with the License.
|
|
2238
|
-
* You may obtain a copy of the License at
|
|
2239
|
-
*
|
|
2240
|
-
* http://www.apache.org/licenses/LICENSE-2.0
|
|
2241
|
-
*
|
|
2242
|
-
* Unless required by applicable law or agreed to in writing, software
|
|
2243
|
-
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
2244
|
-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
2245
|
-
* See the License for the specific language governing permissions and
|
|
2246
|
-
* limitations under the License.
|
|
2247
|
-
*/
|
|
2248
|
-
var GioFormFilePickerModule = /** @class */ (function () {
|
|
2249
|
-
function GioFormFilePickerModule() {
|
|
2250
|
-
}
|
|
2251
|
-
return GioFormFilePickerModule;
|
|
2252
|
-
}());
|
|
2253
|
-
GioFormFilePickerModule.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: GioFormFilePickerModule, deps: [], target: i0__namespace.ɵɵFactoryTarget.NgModule });
|
|
2254
|
-
GioFormFilePickerModule.ɵmod = i0__namespace.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: GioFormFilePickerModule, declarations: [GioFormFilePickerComponent,
|
|
2255
|
-
GioFormFilePickerAddButtonComponent,
|
|
2256
|
-
GioFormFilePickerEmptyComponent,
|
|
2257
|
-
GioFormFilePickerLabelComponent], imports: [i2$1.CommonModule, i7.ReactiveFormsModule, i6$2.NgxFileHelpersModule, i6.MatRippleModule, i1$1.MatIconModule, GioIconsModule], exports: [GioFormFilePickerComponent,
|
|
2258
|
-
GioFormFilePickerAddButtonComponent,
|
|
2259
|
-
GioFormFilePickerEmptyComponent,
|
|
2260
|
-
GioFormFilePickerLabelComponent] });
|
|
2261
|
-
GioFormFilePickerModule.ɵinj = i0__namespace.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: GioFormFilePickerModule, imports: [[i2$1.CommonModule, i7.ReactiveFormsModule, i6$2.NgxFileHelpersModule, i6.MatRippleModule, i1$1.MatIconModule, GioIconsModule]] });
|
|
2262
|
-
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: GioFormFilePickerModule, decorators: [{
|
|
2263
|
-
type: i0.NgModule,
|
|
2264
|
-
args: [{
|
|
2265
|
-
declarations: [
|
|
2266
|
-
GioFormFilePickerComponent,
|
|
2267
|
-
GioFormFilePickerAddButtonComponent,
|
|
2268
|
-
GioFormFilePickerEmptyComponent,
|
|
2269
|
-
GioFormFilePickerLabelComponent,
|
|
2270
|
-
],
|
|
2271
|
-
exports: [
|
|
2272
|
-
GioFormFilePickerComponent,
|
|
2273
|
-
GioFormFilePickerAddButtonComponent,
|
|
2274
|
-
GioFormFilePickerEmptyComponent,
|
|
2275
|
-
GioFormFilePickerLabelComponent,
|
|
2276
|
-
],
|
|
2277
|
-
imports: [i2$1.CommonModule, i7.ReactiveFormsModule, i6$2.NgxFileHelpersModule, i6.MatRippleModule, i1$1.MatIconModule, GioIconsModule],
|
|
2278
|
-
}]
|
|
2279
|
-
}] });
|
|
2280
|
-
|
|
2281
|
-
var GioFormFilePickerInputHarness = /** @class */ (function (_super) {
|
|
2282
|
-
__extends(GioFormFilePickerInputHarness, _super);
|
|
2283
|
-
function GioFormFilePickerInputHarness() {
|
|
2284
|
-
var _this = _super.apply(this, __spreadArray([], __read(arguments))) || this;
|
|
2285
|
-
_this._mainDiv = _this.locatorFor('.file-picker__add-button');
|
|
2286
|
-
_this._hasErrorClass = _this.locatorForOptional('[class="file-picker__add-button error"]');
|
|
2287
|
-
_this._inputFile = _this.locatorFor('input[type="file"]');
|
|
2288
|
-
_this._getDisabledElement = _this.locatorForOptional('.disabled');
|
|
2289
|
-
return _this;
|
|
2290
|
-
}
|
|
2291
|
-
GioFormFilePickerInputHarness.with = function (options) {
|
|
2292
|
-
return new testing.HarnessPredicate(GioFormFilePickerInputHarness, options).addOption('formControlName', options.formControlName, function (harness, text) { return testing.HarnessPredicate.stringMatches(harness.getFormControlName(), text); });
|
|
2293
|
-
};
|
|
2294
|
-
/**
|
|
2295
|
-
* Hack force onload on Image Object
|
|
2296
|
-
* GioFormFilePickerComponent use a Image Object to check if the file is an image.
|
|
2297
|
-
* This method allow to force onload event on the Image Object.
|
|
2298
|
-
* @param excludeSrc call onerror instead of onload for this src
|
|
2299
|
-
*/
|
|
2300
|
-
GioFormFilePickerInputHarness.forceImageOnload = function (excludeSrc) {
|
|
2301
|
-
if (excludeSrc === void 0) { excludeSrc = []; }
|
|
2302
|
-
Object.defineProperties(Image.prototype, {
|
|
2303
|
-
src: {
|
|
2304
|
-
get: function () {
|
|
2305
|
-
return this._src;
|
|
2306
|
-
},
|
|
2307
|
-
set: function (src) {
|
|
2308
|
-
this._src = src;
|
|
2309
|
-
},
|
|
2310
|
-
},
|
|
2311
|
-
onload: {
|
|
2312
|
-
get: function () {
|
|
2313
|
-
return this._onload;
|
|
2314
|
-
},
|
|
2315
|
-
set: function (fn) {
|
|
2316
|
-
this._onload = fn;
|
|
2317
|
-
excludeSrc.includes(this._src) ? this.onerror() : this.onload();
|
|
2318
|
-
},
|
|
2319
|
-
},
|
|
2320
|
-
});
|
|
2321
|
-
};
|
|
2322
|
-
GioFormFilePickerInputHarness.prototype.getFormControlName = function () {
|
|
2323
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
2324
|
-
var filePickerInputHarness;
|
|
2325
|
-
return __generator(this, function (_a) {
|
|
2326
|
-
switch (_a.label) {
|
|
2327
|
-
case 0: return [4 /*yield*/, this.host()];
|
|
2328
|
-
case 1:
|
|
2329
|
-
filePickerInputHarness = _a.sent();
|
|
2330
|
-
return [2 /*return*/, filePickerInputHarness.getAttribute('formControlName')];
|
|
2331
|
-
}
|
|
2332
|
-
});
|
|
2333
|
-
});
|
|
2334
|
-
};
|
|
2335
|
-
GioFormFilePickerInputHarness.prototype.hasErrorClass = function () {
|
|
2336
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
2337
|
-
return __generator(this, function (_a) {
|
|
2338
|
-
switch (_a.label) {
|
|
2339
|
-
case 0: return [4 /*yield*/, this._hasErrorClass()];
|
|
2340
|
-
case 1: return [2 /*return*/, !!(_a.sent())];
|
|
2341
|
-
}
|
|
2342
|
-
});
|
|
2343
|
-
});
|
|
2344
|
-
};
|
|
2345
|
-
GioFormFilePickerInputHarness.prototype.clickInside = function () {
|
|
2346
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
2347
|
-
return __generator(this, function (_a) {
|
|
2348
|
-
switch (_a.label) {
|
|
2349
|
-
case 0: return [4 /*yield*/, this._mainDiv()];
|
|
2350
|
-
case 1: return [4 /*yield*/, (_a.sent()).click()];
|
|
2351
|
-
case 2:
|
|
2352
|
-
_a.sent();
|
|
2353
|
-
return [2 /*return*/];
|
|
2354
|
-
}
|
|
2355
|
-
});
|
|
2356
|
-
});
|
|
2357
|
-
};
|
|
2358
|
-
GioFormFilePickerInputHarness.prototype.getInputFileAccept = function () {
|
|
2359
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
2360
|
-
return __generator(this, function (_a) {
|
|
2361
|
-
switch (_a.label) {
|
|
2362
|
-
case 0: return [4 /*yield*/, this._inputFile()];
|
|
2363
|
-
case 1: return [4 /*yield*/, (_a.sent()).getAttribute('accept')];
|
|
2364
|
-
case 2: return [2 /*return*/, _a.sent()];
|
|
2365
|
-
}
|
|
2366
|
-
});
|
|
2367
|
-
});
|
|
2368
|
-
};
|
|
2369
|
-
GioFormFilePickerInputHarness.prototype.getPreviews = function () {
|
|
2370
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
2371
|
-
var previewImages, previewFiles;
|
|
2372
|
-
return __generator(this, function (_a) {
|
|
2373
|
-
switch (_a.label) {
|
|
2374
|
-
case 0: return [4 /*yield*/, this.locatorForAll('.file-picker__preview__image')()];
|
|
2375
|
-
case 1:
|
|
2376
|
-
previewImages = _a.sent();
|
|
2377
|
-
return [4 /*yield*/, this.locatorForAll('.file-picker__preview__file')()];
|
|
2378
|
-
case 2:
|
|
2379
|
-
previewFiles = _a.sent();
|
|
2380
|
-
return [2 /*return*/, Promise.all(__spreadArray(__spreadArray([], __read(previewImages.map(function (previewImage) { return previewImage.getAttribute('style'); }))), __read(previewFiles.map(function (previewFile) { return previewFile.text(); }))))];
|
|
2381
|
-
}
|
|
2382
|
-
});
|
|
2383
|
-
});
|
|
2384
|
-
};
|
|
2385
|
-
GioFormFilePickerInputHarness.prototype.isAddButtonPresent = function () {
|
|
2386
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
2387
|
-
return __generator(this, function (_a) {
|
|
2388
|
-
switch (_a.label) {
|
|
2389
|
-
case 0: return [4 /*yield*/, this.locatorForOptional('gio-form-file-picker-add-button')()];
|
|
2390
|
-
case 1: return [2 /*return*/, (_a.sent()) !== null];
|
|
2391
|
-
}
|
|
2392
|
-
});
|
|
2393
|
-
});
|
|
2394
|
-
};
|
|
2395
|
-
GioFormFilePickerInputHarness.prototype.isDisabled = function () {
|
|
2396
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
2397
|
-
return __generator(this, function (_a) {
|
|
2398
|
-
switch (_a.label) {
|
|
2399
|
-
case 0: return [4 /*yield*/, this._getDisabledElement()];
|
|
2400
|
-
case 1: return [2 /*return*/, !!(_a.sent())];
|
|
2401
|
-
}
|
|
2402
|
-
});
|
|
2403
|
-
});
|
|
2404
|
-
};
|
|
2405
|
-
GioFormFilePickerInputHarness.prototype.deleteFile = function (fileIndex) {
|
|
2406
|
-
if (fileIndex === void 0) { fileIndex = 0; }
|
|
2407
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
2408
|
-
var deleteButtons;
|
|
2409
|
-
return __generator(this, function (_a) {
|
|
2410
|
-
switch (_a.label) {
|
|
2411
|
-
case 0: return [4 /*yield*/, this.locatorForAll('.file-picker__preview__delete')()];
|
|
2412
|
-
case 1:
|
|
2413
|
-
deleteButtons = _a.sent();
|
|
2414
|
-
return [2 /*return*/, deleteButtons[fileIndex].click()];
|
|
2415
|
-
}
|
|
2416
|
-
});
|
|
2417
|
-
});
|
|
2418
|
-
};
|
|
2419
|
-
GioFormFilePickerInputHarness.prototype.dropFiles = function (files) {
|
|
2420
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
2421
|
-
var filePickerDropZone;
|
|
2422
|
-
return __generator(this, function (_a) {
|
|
2423
|
-
switch (_a.label) {
|
|
2424
|
-
case 0: return [4 /*yield*/, this.locatorFor('.file-picker')()];
|
|
2425
|
-
case 1:
|
|
2426
|
-
filePickerDropZone = _a.sent();
|
|
2427
|
-
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
2428
|
-
return [4 /*yield*/, filePickerDropZone.dispatchEvent('drop', { dataTransfer: { files: files } })];
|
|
2429
|
-
case 2:
|
|
2430
|
-
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
2431
|
-
_a.sent();
|
|
2432
|
-
// Wait event is dispatched
|
|
2433
|
-
return [4 /*yield*/, new Promise(function (resolve) { return setTimeout(resolve, 50); })];
|
|
2434
|
-
case 3:
|
|
2435
|
-
// Wait event is dispatched
|
|
2436
|
-
_a.sent();
|
|
2437
|
-
return [2 /*return*/];
|
|
2438
|
-
}
|
|
2439
|
-
});
|
|
2440
|
-
});
|
|
2441
|
-
};
|
|
2442
|
-
return GioFormFilePickerInputHarness;
|
|
2443
|
-
}(testing.ComponentHarness));
|
|
2444
|
-
GioFormFilePickerInputHarness.hostSelector = 'gio-form-file-picker';
|
|
2445
|
-
|
|
2446
|
-
/*
|
|
2447
|
-
* Copyright (C) 2015 The Gravitee team (http://gravitee.io)
|
|
2448
|
-
*
|
|
2449
|
-
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
2450
|
-
* you may not use this file except in compliance with the License.
|
|
2451
|
-
* You may obtain a copy of the License at
|
|
2452
|
-
*
|
|
2453
|
-
* http://www.apache.org/licenses/LICENSE-2.0
|
|
2454
|
-
*
|
|
2455
|
-
* Unless required by applicable law or agreed to in writing, software
|
|
2456
|
-
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
2457
|
-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
2458
|
-
* See the License for the specific language governing permissions and
|
|
2459
|
-
* limitations under the License.
|
|
2460
|
-
*/
|
|
2461
|
-
|
|
2462
|
-
/*
|
|
2463
|
-
* Copyright (C) 2022 The Gravitee team (http://gravitee.io)
|
|
2464
|
-
*
|
|
2465
|
-
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
2466
|
-
* you may not use this file except in compliance with the License.
|
|
2467
|
-
* You may obtain a copy of the License at
|
|
2468
|
-
*
|
|
2469
|
-
* http://www.apache.org/licenses/LICENSE-2.0
|
|
2470
|
-
*
|
|
2471
|
-
* Unless required by applicable law or agreed to in writing, software
|
|
2472
|
-
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
2473
|
-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
2474
|
-
* See the License for the specific language governing permissions and
|
|
2475
|
-
* limitations under the License.
|
|
2476
|
-
*/
|
|
2477
|
-
var GioMenuService = /** @class */ (function () {
|
|
2478
|
-
function GioMenuService() {
|
|
2479
|
-
this.reduceSource = new rxjs.BehaviorSubject(false);
|
|
2480
|
-
this.overlaySource = new rxjs.BehaviorSubject({ open: false });
|
|
2481
|
-
this.reduce = this.reduceSource.asObservable();
|
|
2482
|
-
this.overlayObservable = this.overlaySource.asObservable().pipe(operators.distinctUntilChanged(function (prev, curr) { return prev.open === curr.open; }), operators.debounce(function (overlayOptions) { return rxjs.timer(overlayOptions.open ? 150 : 500); }));
|
|
2483
|
-
}
|
|
2484
|
-
GioMenuService.prototype.reduced = function (reduced) {
|
|
2485
|
-
this.reduceSource.next(reduced);
|
|
2486
|
-
};
|
|
2487
|
-
GioMenuService.prototype.overlay = function (overlayOptions) {
|
|
2488
|
-
this.overlaySource.next(overlayOptions);
|
|
2489
|
-
};
|
|
2490
|
-
return GioMenuService;
|
|
2491
|
-
}());
|
|
2492
|
-
GioMenuService.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: GioMenuService, deps: [], target: i0__namespace.ɵɵFactoryTarget.Injectable });
|
|
2493
|
-
GioMenuService.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: GioMenuService, providedIn: 'root' });
|
|
2494
|
-
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: GioMenuService, decorators: [{
|
|
2495
|
-
type: i0.Injectable,
|
|
2496
|
-
args: [{ providedIn: 'root' }]
|
|
2497
|
-
}] });
|
|
2498
|
-
|
|
2499
|
-
/*
|
|
2500
|
-
* Copyright (C) 2015 The Gravitee team (http://gravitee.io)
|
|
2501
|
-
*
|
|
2502
|
-
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
2503
|
-
* you may not use this file except in compliance with the License.
|
|
2504
|
-
* You may obtain a copy of the License at
|
|
2505
|
-
*
|
|
2506
|
-
* http://www.apache.org/licenses/LICENSE-2.0
|
|
2507
|
-
*
|
|
2508
|
-
* Unless required by applicable law or agreed to in writing, software
|
|
2509
|
-
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
2510
|
-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
2511
|
-
* See the License for the specific language governing permissions and
|
|
2512
|
-
* limitations under the License.
|
|
2513
|
-
*/
|
|
2514
|
-
var GioMenuItemComponent = /** @class */ (function () {
|
|
2515
|
-
function GioMenuItemComponent(gioMenuService) {
|
|
2516
|
-
this.gioMenuService = gioMenuService;
|
|
2517
|
-
this.icon = '';
|
|
2518
|
-
this.active = false;
|
|
2519
|
-
this.outlined = false;
|
|
2520
|
-
this.unsubscribe$ = new rxjs.Subject();
|
|
2521
|
-
}
|
|
2522
|
-
GioMenuItemComponent.prototype.ngOnDestroy = function () {
|
|
2523
|
-
this.unsubscribe$.next();
|
|
2524
|
-
this.unsubscribe$.unsubscribe();
|
|
2525
|
-
};
|
|
2526
|
-
GioMenuItemComponent.prototype.onMouseLeave = function () {
|
|
2527
|
-
if (this.active) {
|
|
2528
|
-
this.gioMenuService.overlay({ open: false });
|
|
2529
|
-
}
|
|
2530
|
-
};
|
|
2531
|
-
GioMenuItemComponent.prototype.onMouseEnter = function ($event) {
|
|
2532
|
-
if (this.active) {
|
|
2533
|
-
var menuItem = $event.target;
|
|
2534
|
-
this.gioMenuService.overlay({ open: true, top: menuItem.getBoundingClientRect().top, parent: menuItem });
|
|
2535
|
-
}
|
|
2536
|
-
};
|
|
2537
|
-
GioMenuItemComponent.prototype.onClick = function ($event) {
|
|
2538
|
-
var _this = this;
|
|
2539
|
-
rxjs.of(true)
|
|
2540
|
-
.pipe(operators.takeUntil(this.unsubscribe$), operators.delay(0), operators.tap(function () { return _this.onMouseEnter($event); }))
|
|
2541
|
-
.subscribe();
|
|
2542
|
-
};
|
|
2543
|
-
GioMenuItemComponent.prototype.onKeydownHandler = function ($event) {
|
|
2544
|
-
var _this = this;
|
|
2545
|
-
rxjs.of($event.key === 'Enter' && $event.target)
|
|
2546
|
-
.pipe(operators.takeUntil(this.unsubscribe$), operators.filter(function (enterKey) { return !!enterKey; }), operators.switchMap(function () { return rxjs.of($event.target); }), operators.tap(function (menuItem) {
|
|
2547
|
-
_this.gioMenuService.overlay({ open: false });
|
|
2548
|
-
if (_this.active) {
|
|
2549
|
-
_this.gioMenuService.overlay({ open: true, top: menuItem.getBoundingClientRect().top, parent: menuItem, focus: true });
|
|
2550
|
-
}
|
|
2551
|
-
else {
|
|
2552
|
-
menuItem.click();
|
|
2553
|
-
}
|
|
2554
|
-
}))
|
|
2555
|
-
.subscribe();
|
|
2556
|
-
};
|
|
2557
|
-
return GioMenuItemComponent;
|
|
2558
|
-
}());
|
|
2559
|
-
GioMenuItemComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: GioMenuItemComponent, deps: [{ token: GioMenuService }], target: i0__namespace.ɵɵFactoryTarget.Component });
|
|
2560
|
-
GioMenuItemComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.15", type: GioMenuItemComponent, selector: "gio-menu-item", inputs: { icon: "icon", active: "active", outlined: "outlined" }, host: { listeners: { "click": "onClick($event)", "keydown": "onKeydownHandler($event)" } }, ngImport: i0__namespace, template: "<!--\n\n Copyright (C) 2022 The Gravitee team (http://gravitee.io)\n\n Licensed under the Apache License, Version 2.0 (the \"License\");\n you may not use this file except in compliance with the License.\n You may obtain a copy of the License at\n\n http://www.apache.org/licenses/LICENSE-2.0\n\n Unless required by applicable law or agreed to in writing, software\n distributed under the License is distributed on an \"AS IS\" BASIS,\n WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n See the License for the specific language governing permissions and\n limitations under the License.\n\n-->\n<div\n class=\"gio-menu-item\"\n [class.gio-menu-item__active]=\"active\"\n [class.gio-menu-item__outlined]=\"outlined\"\n (click)=\"onClick($event)\"\n (mouseenter)=\"onMouseEnter($event)\"\n (mouseleave)=\"onMouseLeave()\"\n>\n <mat-icon *ngIf=\"icon\" class=\"gio-menu-item__icon\" [svgIcon]=\"icon\"></mat-icon>\n <span class=\"gio-menu-item__title\"><ng-content></ng-content></span>\n</div>\n", styles: [":host{display:block}.gio-menu-item{display:flex;width:192px;height:36px;flex:none;flex-direction:row;flex-grow:0;align-items:center;padding:16px;margin:4px 0;background:#1c1e39;border-radius:4px;color:#f7f8fd;cursor:pointer}.gio-menu-item__active{background:#494b61}.gio-menu-item__outlined{border:1px solid #606274;border-radius:4px}.gio-menu-item__icon{position:absolute;width:20px;height:20px}.gio-menu-item__title:not(:first-child){margin:18px 0 18px 32px}:host-context(.gio-menu__reduced) .gio-menu-item{width:44px;justify-content:center;padding:0;margin:8px 0}:host-context(.gio-menu__reduced) .gio-menu-item__title{display:none}:host-context(.gio-menu__reduced .gio-menu-footer) .gio-menu-item{margin:20px 0}:host-context(.gio-menu__reduced .gio-menu-footer) .gio-menu-item__outlined{margin:20px 0}.gio-menu-item:hover:not(.gio-menu-item__active){background:#33354d}\n"], components: [{ type: i1__namespace$1.MatIcon, selector: "mat-icon", inputs: ["color", "inline", "svgIcon", "fontSet", "fontIcon"], exportAs: ["matIcon"] }], directives: [{ type: i2__namespace$1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }] });
|
|
2561
|
-
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: GioMenuItemComponent, decorators: [{
|
|
2562
|
-
type: i0.Component,
|
|
2563
|
-
args: [{
|
|
2564
|
-
selector: 'gio-menu-item',
|
|
2565
|
-
templateUrl: './gio-menu-item.component.html',
|
|
2566
|
-
styleUrls: ['./gio-menu-item.component.scss'],
|
|
2567
|
-
}]
|
|
2568
|
-
}], ctorParameters: function () { return [{ type: GioMenuService }]; }, propDecorators: { icon: [{
|
|
2569
|
-
type: i0.Input
|
|
2570
|
-
}], active: [{
|
|
2571
|
-
type: i0.Input
|
|
2572
|
-
}], outlined: [{
|
|
2573
|
-
type: i0.Input
|
|
2574
|
-
}], onClick: [{
|
|
2575
|
-
type: i0.HostListener,
|
|
2576
|
-
args: ['click', ['$event']]
|
|
2577
|
-
}], onKeydownHandler: [{
|
|
2578
|
-
type: i0.HostListener,
|
|
2579
|
-
args: ['keydown', ['$event']]
|
|
2580
|
-
}] } });
|
|
2581
|
-
|
|
2582
|
-
/*
|
|
2583
|
-
* Copyright (C) 2015 The Gravitee team (http://gravitee.io)
|
|
2584
|
-
*
|
|
2585
|
-
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
2586
|
-
* you may not use this file except in compliance with the License.
|
|
2587
|
-
* You may obtain a copy of the License at
|
|
2588
|
-
*
|
|
2589
|
-
* http://www.apache.org/licenses/LICENSE-2.0
|
|
2590
|
-
*
|
|
2591
|
-
* Unless required by applicable law or agreed to in writing, software
|
|
2592
|
-
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
2593
|
-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
2594
|
-
* See the License for the specific language governing permissions and
|
|
2595
|
-
* limitations under the License.
|
|
2596
|
-
*/
|
|
2597
|
-
var GioMenuFooterComponent = /** @class */ (function () {
|
|
2598
|
-
function GioMenuFooterComponent() {
|
|
2599
|
-
}
|
|
2600
|
-
return GioMenuFooterComponent;
|
|
2601
|
-
}());
|
|
2602
|
-
GioMenuFooterComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: GioMenuFooterComponent, deps: [], target: i0__namespace.ɵɵFactoryTarget.Component });
|
|
2603
|
-
GioMenuFooterComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.15", type: GioMenuFooterComponent, selector: "gio-menu-footer", ngImport: i0__namespace, template: "<!--\n\n Copyright (C) 2022 The Gravitee team (http://gravitee.io)\n \n Licensed under the Apache License, Version 2.0 (the \"License\");\n you may not use this file except in compliance with the License.\n You may obtain a copy of the License at\n \n http://www.apache.org/licenses/LICENSE-2.0\n \n Unless required by applicable law or agreed to in writing, software\n distributed under the License is distributed on an \"AS IS\" BASIS,\n WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n See the License for the specific language governing permissions and\n limitations under the License.\n\n-->\n<div class=\"gio-menu-footer\">\n <div class=\"gio-menu-footer__content\">\n <ng-content></ng-content>\n </div>\n</div>\n", styles: [":host{flex-grow:0}.gio-menu-footer{padding:16px;border-top:1px solid #606274}:host-context(.gio-menu__reduced) .gio-menu-footer{padding:0 16px}\n"] });
|
|
2604
|
-
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: GioMenuFooterComponent, decorators: [{
|
|
2605
|
-
type: i0.Component,
|
|
2606
|
-
args: [{
|
|
2607
|
-
selector: 'gio-menu-footer',
|
|
2608
|
-
templateUrl: './gio-menu-footer.component.html',
|
|
2609
|
-
styleUrls: ['./gio-menu-footer.component.scss'],
|
|
2610
|
-
}]
|
|
2611
|
-
}] });
|
|
2612
|
-
|
|
2613
|
-
/*
|
|
2614
|
-
* Copyright (C) 2015 The Gravitee team (http://gravitee.io)
|
|
2615
|
-
*
|
|
2616
|
-
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
2617
|
-
* you may not use this file except in compliance with the License.
|
|
2618
|
-
* You may obtain a copy of the License at
|
|
2619
|
-
*
|
|
2620
|
-
* http://www.apache.org/licenses/LICENSE-2.0
|
|
2621
|
-
*
|
|
2622
|
-
* Unless required by applicable law or agreed to in writing, software
|
|
2623
|
-
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
2624
|
-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
2625
|
-
* See the License for the specific language governing permissions and
|
|
2626
|
-
* limitations under the License.
|
|
2627
|
-
*/
|
|
2628
|
-
var GioMenuComponent = /** @class */ (function () {
|
|
2629
|
-
function GioMenuComponent(gioMenuService) {
|
|
2630
|
-
this.gioMenuService = gioMenuService;
|
|
2631
|
-
this.reduced = false;
|
|
2632
|
-
}
|
|
2633
|
-
GioMenuComponent.prototype.ngOnInit = function () {
|
|
2634
|
-
this.gioMenuService.reduced(this.reduced);
|
|
2635
|
-
};
|
|
2636
|
-
GioMenuComponent.prototype.reduceMenu = function () {
|
|
2637
|
-
this.reduced = !this.reduced;
|
|
2638
|
-
this.gioMenuService.reduced(this.reduced);
|
|
2639
|
-
};
|
|
2640
|
-
GioMenuComponent.prototype.getCollapseButtonIcon = function () {
|
|
2641
|
-
return this.reduced ? 'gio:expande' : 'gio:collapse';
|
|
2642
|
-
};
|
|
2643
|
-
GioMenuComponent.prototype.onMouseLeave = function () {
|
|
2644
|
-
if (this.reduced) {
|
|
2645
|
-
this.gioMenuService.overlay({ open: false });
|
|
2646
|
-
}
|
|
2647
|
-
};
|
|
2648
|
-
return GioMenuComponent;
|
|
2649
|
-
}());
|
|
2650
|
-
GioMenuComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: GioMenuComponent, deps: [{ token: GioMenuService }], target: i0__namespace.ɵɵFactoryTarget.Component });
|
|
2651
|
-
GioMenuComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.15", type: GioMenuComponent, selector: "gio-menu", inputs: { reduced: "reduced" }, ngImport: i0__namespace, template: "<!--\n\n Copyright (C) 2022 The Gravitee team (http://gravitee.io)\n\n Licensed under the Apache License, Version 2.0 (the \"License\");\n you may not use this file except in compliance with the License.\n You may obtain a copy of the License at\n\n http://www.apache.org/licenses/LICENSE-2.0\n\n Unless required by applicable law or agreed to in writing, software\n distributed under the License is distributed on an \"AS IS\" BASIS,\n WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n See the License for the specific language governing permissions and\n limitations under the License.\n\n-->\n<div class=\"gio-menu\" [class.gio-menu__reduced]=\"reduced\" (mouseleave)=\"onMouseLeave()\">\n <ng-content select=\"gio-menu-header\"></ng-content>\n <ng-content select=\"gio-menu-list\"></ng-content>\n <ng-content select=\"gio-menu-footer\"></ng-content>\n <gio-menu-footer>\n <gio-menu-item\n tabIndex=\"1\"\n type=\"button\"\n class=\"gio-menu-footer__collapse\"\n [icon]=\"getCollapseButtonIcon()\"\n (click)=\"reduceMenu()\"\n [outlined]=\"true\"\n >Collapse menu</gio-menu-item\n >\n </gio-menu-footer>\n</div>\n", styles: [".gio-menu{display:flex;width:224px;height:100%;flex-direction:column;justify-content:flex-start;padding:16px 0 0;background:#1c1e39;box-shadow:0 0 0 1px #0000001a,0 5px 10px #0003,0 15px 40px #0006}.gio-menu__reduced{width:76px}\n"], components: [{ type: GioMenuFooterComponent, selector: "gio-menu-footer" }, { type: GioMenuItemComponent, selector: "gio-menu-item", inputs: ["icon", "active", "outlined"] }], encapsulation: i0__namespace.ViewEncapsulation.None });
|
|
2652
|
-
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: GioMenuComponent, decorators: [{
|
|
2653
|
-
type: i0.Component,
|
|
2654
|
-
args: [{
|
|
2655
|
-
selector: 'gio-menu',
|
|
2656
|
-
templateUrl: './gio-menu.component.html',
|
|
2657
|
-
styleUrls: ['./gio-menu.component.scss'],
|
|
2658
|
-
encapsulation: i0.ViewEncapsulation.None,
|
|
2659
|
-
}]
|
|
2660
|
-
}], ctorParameters: function () { return [{ type: GioMenuService }]; }, propDecorators: { reduced: [{
|
|
2661
|
-
type: i0.Input
|
|
2662
|
-
}] } });
|
|
2663
|
-
|
|
2664
|
-
/*
|
|
2665
|
-
* Copyright (C) 2015 The Gravitee team (http://gravitee.io)
|
|
2666
|
-
*
|
|
2667
|
-
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
2668
|
-
* you may not use this file except in compliance with the License.
|
|
2669
|
-
* You may obtain a copy of the License at
|
|
2670
|
-
*
|
|
2671
|
-
* http://www.apache.org/licenses/LICENSE-2.0
|
|
2672
|
-
*
|
|
2673
|
-
* Unless required by applicable law or agreed to in writing, software
|
|
2674
|
-
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
2675
|
-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
2676
|
-
* See the License for the specific language governing permissions and
|
|
2677
|
-
* limitations under the License.
|
|
2678
|
-
*/
|
|
2679
|
-
var GioMenuListComponent = /** @class */ (function () {
|
|
2680
|
-
function GioMenuListComponent() {
|
|
2681
|
-
}
|
|
2682
|
-
return GioMenuListComponent;
|
|
2683
|
-
}());
|
|
2684
|
-
GioMenuListComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: GioMenuListComponent, deps: [], target: i0__namespace.ɵɵFactoryTarget.Component });
|
|
2685
|
-
GioMenuListComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.15", type: GioMenuListComponent, selector: "gio-menu-list", ngImport: i0__namespace, template: "<!--\n\n Copyright (C) 2022 The Gravitee team (http://gravitee.io)\n \n Licensed under the Apache License, Version 2.0 (the \"License\");\n you may not use this file except in compliance with the License.\n You may obtain a copy of the License at\n \n http://www.apache.org/licenses/LICENSE-2.0\n \n Unless required by applicable law or agreed to in writing, software\n distributed under the License is distributed on an \"AS IS\" BASIS,\n WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n See the License for the specific language governing permissions and\n limitations under the License.\n\n-->\n<div class=\"gio-menu-list\">\n <ng-content></ng-content>\n</div>\n", styles: [":host{flex-grow:1}.gio-menu-list{padding:0 16px}\n"] });
|
|
2686
|
-
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: GioMenuListComponent, decorators: [{
|
|
2687
|
-
type: i0.Component,
|
|
2688
|
-
args: [{
|
|
2689
|
-
selector: 'gio-menu-list',
|
|
2690
|
-
templateUrl: './gio-menu-list.component.html',
|
|
2691
|
-
styleUrls: ['./gio-menu-list.component.scss'],
|
|
2692
|
-
}]
|
|
2693
|
-
}] });
|
|
2694
|
-
|
|
2695
|
-
/*
|
|
2696
|
-
* Copyright (C) 2015 The Gravitee team (http://gravitee.io)
|
|
2697
|
-
*
|
|
2698
|
-
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
2699
|
-
* you may not use this file except in compliance with the License.
|
|
2700
|
-
* You may obtain a copy of the License at
|
|
2701
|
-
*
|
|
2702
|
-
* http://www.apache.org/licenses/LICENSE-2.0
|
|
2703
|
-
*
|
|
2704
|
-
* Unless required by applicable law or agreed to in writing, software
|
|
2705
|
-
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
2706
|
-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
2707
|
-
* See the License for the specific language governing permissions and
|
|
2708
|
-
* limitations under the License.
|
|
2709
|
-
*/
|
|
2710
|
-
var GioMenuSelectorComponent = /** @class */ (function () {
|
|
2711
|
-
function GioMenuSelectorComponent() {
|
|
2712
|
-
this.selectorTitle = '';
|
|
2713
|
-
this.selectorItems = [];
|
|
2714
|
-
this.selectedItemValue = '';
|
|
2715
|
-
this.tabIndex = 1;
|
|
2716
|
-
this.selectChange = new i0.EventEmitter();
|
|
2717
|
-
}
|
|
2718
|
-
GioMenuSelectorComponent.prototype.onSelectionChange = function ($event) {
|
|
2719
|
-
this.selectChange.emit($event.value);
|
|
2720
|
-
};
|
|
2721
|
-
GioMenuSelectorComponent.prototype.isDisabled = function () {
|
|
2722
|
-
return this.selectorItems.length <= 1;
|
|
2723
|
-
};
|
|
2724
|
-
return GioMenuSelectorComponent;
|
|
2725
|
-
}());
|
|
2726
|
-
GioMenuSelectorComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: GioMenuSelectorComponent, deps: [], target: i0__namespace.ɵɵFactoryTarget.Component });
|
|
2727
|
-
GioMenuSelectorComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.15", type: GioMenuSelectorComponent, selector: "gio-menu-selector", inputs: { selectorTitle: "selectorTitle", selectorItems: "selectorItems", selectedItemValue: "selectedItemValue", tabIndex: "tabIndex" }, outputs: { selectChange: "selectChange" }, ngImport: i0__namespace, template: "<!--\n\n Copyright (C) 2022 The Gravitee team (http://gravitee.io)\n\n Licensed under the Apache License, Version 2.0 (the \"License\");\n you may not use this file except in compliance with the License.\n You may obtain a copy of the License at\n\n http://www.apache.org/licenses/LICENSE-2.0\n\n Unless required by applicable law or agreed to in writing, software\n distributed under the License is distributed on an \"AS IS\" BASIS,\n WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n See the License for the specific language governing permissions and\n limitations under the License.\n\n-->\n<div class=\"gio-menu-selector\">\n <mat-form-field class=\"gio-menu-selector__mat-form-field\">\n <mat-label>{{ selectorTitle }}</mat-label>\n <mat-select [tabIndex]=\"tabIndex\" [value]=\"selectedItemValue\" (selectionChange)=\"onSelectionChange($event)\" [disabled]=\"isDisabled()\">\n <mat-option *ngFor=\"let item of selectorItems\" [value]=\"item.value\">\n {{ item.displayValue }}\n </mat-option>\n </mat-select>\n </mat-form-field>\n</div>\n", styles: [".gio-menu-selector{width:192px;padding:10px 14px 0;border-style:solid;border-color:#606274;margin-bottom:8px;border-radius:4px;color:#f7f8fd}.gio-menu-selector__mat-form-field{padding-bottom:0}::ng-deep gio-menu-selector .gio-menu-selector>*{display:block}::ng-deep gio-menu-selector .gio-menu-selector .mat-select-value{color:#fff}::ng-deep gio-menu-selector .gio-menu-selector .mat-select-placeholder{color:#ffffff80}::ng-deep gio-menu-selector .gio-menu-selector .mat-select-disabled .mat-select-value{color:#ffffff80}::ng-deep gio-menu-selector .gio-menu-selector .mat-select-arrow{color:#ffffffb3}::ng-deep gio-menu-selector .gio-menu-selector .mat-select-panel{background:#424242}::ng-deep gio-menu-selector .gio-menu-selector .mat-select-panel:not([class*=mat-elevation-z]){box-shadow:0 2px 4px -1px #0003,0 4px 5px #00000024,0 1px 10px #0000001f}::ng-deep gio-menu-selector .gio-menu-selector .mat-select-panel .mat-option.mat-selected:not(.mat-option-multiple){background:rgba(255,255,255,.12)}::ng-deep gio-menu-selector .gio-menu-selector .mat-form-field.mat-focused.mat-primary .mat-select-arrow{color:#099}::ng-deep gio-menu-selector .gio-menu-selector .mat-form-field.mat-focused.mat-accent .mat-select-arrow{color:#876fec}::ng-deep gio-menu-selector .gio-menu-selector .mat-form-field.mat-focused.mat-warn .mat-select-arrow{color:#ec4899}::ng-deep gio-menu-selector .gio-menu-selector .mat-form-field .mat-select.mat-select-invalid .mat-select-arrow{color:#ec4899}::ng-deep gio-menu-selector .gio-menu-selector .mat-form-field .mat-select.mat-select-disabled .mat-select-arrow{color:#ffffff80}::ng-deep gio-menu-selector .gio-menu-selector .mat-form-field-label{color:#ffffffb3}::ng-deep gio-menu-selector .gio-menu-selector .mat-hint{color:#ffffffb3}::ng-deep gio-menu-selector .gio-menu-selector .mat-form-field.mat-focused .mat-form-field-label{color:#099}::ng-deep gio-menu-selector .gio-menu-selector .mat-form-field.mat-focused .mat-form-field-label.mat-accent{color:#876fec}::ng-deep gio-menu-selector .gio-menu-selector .mat-form-field.mat-focused .mat-form-field-label.mat-warn{color:#ec4899}::ng-deep gio-menu-selector .gio-menu-selector .mat-focused .mat-form-field-required-marker{color:#876fec}::ng-deep gio-menu-selector .gio-menu-selector .mat-form-field-ripple{background-color:#fff}::ng-deep gio-menu-selector .gio-menu-selector .mat-form-field.mat-focused .mat-form-field-ripple{background-color:#099}::ng-deep gio-menu-selector .gio-menu-selector .mat-form-field.mat-focused .mat-form-field-ripple.mat-accent{background-color:#876fec}::ng-deep gio-menu-selector .gio-menu-selector .mat-form-field.mat-focused .mat-form-field-ripple.mat-warn{background-color:#ec4899}::ng-deep gio-menu-selector .gio-menu-selector .mat-form-field-type-mat-native-select.mat-focused:not(.mat-form-field-invalid) .mat-form-field-infix:after{color:#099}::ng-deep gio-menu-selector .gio-menu-selector .mat-form-field-type-mat-native-select.mat-focused:not(.mat-form-field-invalid).mat-accent .mat-form-field-infix:after{color:#876fec}::ng-deep gio-menu-selector .gio-menu-selector .mat-form-field-type-mat-native-select.mat-focused:not(.mat-form-field-invalid).mat-warn .mat-form-field-infix:after{color:#ec4899}::ng-deep gio-menu-selector .gio-menu-selector .mat-form-field.mat-form-field-invalid .mat-form-field-label{color:#ec4899}::ng-deep gio-menu-selector .gio-menu-selector .mat-form-field.mat-form-field-invalid .mat-form-field-label.mat-accent,::ng-deep gio-menu-selector .gio-menu-selector .mat-form-field.mat-form-field-invalid .mat-form-field-label .mat-form-field-required-marker{color:#ec4899}::ng-deep gio-menu-selector .gio-menu-selector .mat-form-field.mat-form-field-invalid .mat-form-field-ripple,::ng-deep gio-menu-selector .gio-menu-selector .mat-form-field.mat-form-field-invalid .mat-form-field-ripple.mat-accent{background-color:#ec4899}::ng-deep gio-menu-selector .gio-menu-selector .mat-error{color:#ec4899}::ng-deep gio-menu-selector .gio-menu-selector .mat-form-field-appearance-legacy .mat-form-field-label{color:#ffffffb3}::ng-deep gio-menu-selector .gio-menu-selector .mat-form-field-appearance-legacy .mat-hint{color:#ffffffb3}::ng-deep gio-menu-selector .gio-menu-selector .mat-form-field-appearance-legacy .mat-form-field-underline{background-color:#ffffffb3}::ng-deep gio-menu-selector .gio-menu-selector .mat-form-field-appearance-legacy.mat-form-field-disabled .mat-form-field-underline{background-image:linear-gradient(to right,rgba(255,255,255,.7) 0%,rgba(255,255,255,.7) 33%,transparent 0%);background-size:4px 100%;background-repeat:repeat-x}::ng-deep gio-menu-selector .gio-menu-selector .mat-form-field-appearance-standard .mat-form-field-underline{background-color:#ffffffb3}::ng-deep gio-menu-selector .gio-menu-selector .mat-form-field-appearance-standard.mat-form-field-disabled .mat-form-field-underline{background-image:linear-gradient(to right,rgba(255,255,255,.7) 0%,rgba(255,255,255,.7) 33%,transparent 0%);background-size:4px 100%;background-repeat:repeat-x}::ng-deep gio-menu-selector .gio-menu-selector .mat-form-field-appearance-fill .mat-form-field-flex{background-color:#ffffff1a}::ng-deep gio-menu-selector .gio-menu-selector .mat-form-field-appearance-fill.mat-form-field-disabled .mat-form-field-flex{background-color:#ffffff0d}::ng-deep gio-menu-selector .gio-menu-selector .mat-form-field-appearance-fill .mat-form-field-underline:before{background-color:#ffffff80}::ng-deep gio-menu-selector .gio-menu-selector .mat-form-field-appearance-fill.mat-form-field-disabled .mat-form-field-label{color:#ffffff80}::ng-deep gio-menu-selector .gio-menu-selector .mat-form-field-appearance-fill.mat-form-field-disabled .mat-form-field-underline:before{background-color:transparent}::ng-deep gio-menu-selector .gio-menu-selector .mat-form-field-appearance-outline .mat-form-field-outline{color:#ffffff4d}::ng-deep gio-menu-selector .gio-menu-selector .mat-form-field-appearance-outline .mat-form-field-outline-thick{color:#fff}::ng-deep gio-menu-selector .gio-menu-selector .mat-form-field-appearance-outline.mat-focused .mat-form-field-outline-thick{color:#099}::ng-deep gio-menu-selector .gio-menu-selector .mat-form-field-appearance-outline.mat-focused.mat-accent .mat-form-field-outline-thick{color:#876fec}::ng-deep gio-menu-selector .gio-menu-selector .mat-form-field-appearance-outline.mat-focused.mat-warn .mat-form-field-outline-thick{color:#ec4899}::ng-deep gio-menu-selector .gio-menu-selector .mat-form-field-appearance-outline.mat-form-field-invalid.mat-form-field-invalid .mat-form-field-outline-thick{color:#ec4899}::ng-deep gio-menu-selector .gio-menu-selector .mat-form-field-appearance-outline.mat-form-field-disabled .mat-form-field-label{color:#ffffff80}::ng-deep gio-menu-selector .gio-menu-selector .mat-form-field-appearance-outline.mat-form-field-disabled .mat-form-field-outline{color:#ffffff26}::ng-deep gio-menu-selector .gio-menu-selector .mat-app-background,::ng-deep gio-menu-selector .gio-menu-selector.mat-app-background{background-color:#303030;color:#fff}::ng-deep gio-menu-selector .gio-menu-selector .mat-elevation-z0{box-shadow:0 0 #0003,0 0 #00000024,0 0 #0000001f}::ng-deep gio-menu-selector .gio-menu-selector .mat-elevation-z1{box-shadow:0 2px 1px -1px #0003,0 1px 1px #00000024,0 1px 3px #0000001f}::ng-deep gio-menu-selector .gio-menu-selector .mat-elevation-z2{box-shadow:0 3px 1px -2px #0003,0 2px 2px #00000024,0 1px 5px #0000001f}::ng-deep gio-menu-selector .gio-menu-selector .mat-elevation-z3{box-shadow:0 3px 3px -2px #0003,0 3px 4px #00000024,0 1px 8px #0000001f}::ng-deep gio-menu-selector .gio-menu-selector .mat-elevation-z4{box-shadow:0 2px 4px -1px #0003,0 4px 5px #00000024,0 1px 10px #0000001f}::ng-deep gio-menu-selector .gio-menu-selector .mat-elevation-z5{box-shadow:0 3px 5px -1px #0003,0 5px 8px #00000024,0 1px 14px #0000001f}::ng-deep gio-menu-selector .gio-menu-selector .mat-elevation-z6{box-shadow:0 3px 5px -1px #0003,0 6px 10px #00000024,0 1px 18px #0000001f}::ng-deep gio-menu-selector .gio-menu-selector .mat-elevation-z7{box-shadow:0 4px 5px -2px #0003,0 7px 10px 1px #00000024,0 2px 16px 1px #0000001f}::ng-deep gio-menu-selector .gio-menu-selector .mat-elevation-z8{box-shadow:0 5px 5px -3px #0003,0 8px 10px 1px #00000024,0 3px 14px 2px #0000001f}::ng-deep gio-menu-selector .gio-menu-selector .mat-elevation-z9{box-shadow:0 5px 6px -3px #0003,0 9px 12px 1px #00000024,0 3px 16px 2px #0000001f}::ng-deep gio-menu-selector .gio-menu-selector .mat-elevation-z10{box-shadow:0 6px 6px -3px #0003,0 10px 14px 1px #00000024,0 4px 18px 3px #0000001f}::ng-deep gio-menu-selector .gio-menu-selector .mat-elevation-z11{box-shadow:0 6px 7px -4px #0003,0 11px 15px 1px #00000024,0 4px 20px 3px #0000001f}::ng-deep gio-menu-selector .gio-menu-selector .mat-elevation-z12{box-shadow:0 7px 8px -4px #0003,0 12px 17px 2px #00000024,0 5px 22px 4px #0000001f}::ng-deep gio-menu-selector .gio-menu-selector .mat-elevation-z13{box-shadow:0 7px 8px -4px #0003,0 13px 19px 2px #00000024,0 5px 24px 4px #0000001f}::ng-deep gio-menu-selector .gio-menu-selector .mat-elevation-z14{box-shadow:0 7px 9px -4px #0003,0 14px 21px 2px #00000024,0 5px 26px 4px #0000001f}::ng-deep gio-menu-selector .gio-menu-selector .mat-elevation-z15{box-shadow:0 8px 9px -5px #0003,0 15px 22px 2px #00000024,0 6px 28px 5px #0000001f}::ng-deep gio-menu-selector .gio-menu-selector .mat-elevation-z16{box-shadow:0 8px 10px -5px #0003,0 16px 24px 2px #00000024,0 6px 30px 5px #0000001f}::ng-deep gio-menu-selector .gio-menu-selector .mat-elevation-z17{box-shadow:0 8px 11px -5px #0003,0 17px 26px 2px #00000024,0 6px 32px 5px #0000001f}::ng-deep gio-menu-selector .gio-menu-selector .mat-elevation-z18{box-shadow:0 9px 11px -5px #0003,0 18px 28px 2px #00000024,0 7px 34px 6px #0000001f}::ng-deep gio-menu-selector .gio-menu-selector .mat-elevation-z19{box-shadow:0 9px 12px -6px #0003,0 19px 29px 2px #00000024,0 7px 36px 6px #0000001f}::ng-deep gio-menu-selector .gio-menu-selector .mat-elevation-z20{box-shadow:0 10px 13px -6px #0003,0 20px 31px 3px #00000024,0 8px 38px 7px #0000001f}::ng-deep gio-menu-selector .gio-menu-selector .mat-elevation-z21{box-shadow:0 10px 13px -6px #0003,0 21px 33px 3px #00000024,0 8px 40px 7px #0000001f}::ng-deep gio-menu-selector .gio-menu-selector .mat-elevation-z22{box-shadow:0 10px 14px -6px #0003,0 22px 35px 3px #00000024,0 8px 42px 7px #0000001f}::ng-deep gio-menu-selector .gio-menu-selector .mat-elevation-z23{box-shadow:0 11px 14px -7px #0003,0 23px 36px 3px #00000024,0 9px 44px 8px #0000001f}::ng-deep gio-menu-selector .gio-menu-selector .mat-elevation-z24{box-shadow:0 11px 15px -7px #0003,0 24px 38px 3px #00000024,0 9px 46px 8px #0000001f}.mat-theme-loaded-marker{display:none}::ng-deep .mat-form-field-appearance-legacy .mat-form-field-wrapper{padding-bottom:6px}::ng-deep .mat-form-field-underline{display:none}\n"], components: [{ type: i3__namespace$1.MatFormField, selector: "mat-form-field", inputs: ["color", "floatLabel", "appearance", "hideRequiredMarker", "hintLabel"], exportAs: ["matFormField"] }, { type: i2__namespace$4.MatSelect, selector: "mat-select", inputs: ["disabled", "disableRipple", "tabIndex"], exportAs: ["matSelect"] }, { type: i6__namespace.MatOption, selector: "mat-option", exportAs: ["matOption"] }], directives: [{ type: i3__namespace$1.MatLabel, selector: "mat-label" }, { type: i2__namespace$1.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }] });
|
|
2728
|
-
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: GioMenuSelectorComponent, decorators: [{
|
|
2729
|
-
type: i0.Component,
|
|
2730
|
-
args: [{
|
|
2731
|
-
selector: 'gio-menu-selector',
|
|
2732
|
-
templateUrl: './gio-menu-selector.component.html',
|
|
2733
|
-
styleUrls: ['./gio-menu-selector.component.scss'],
|
|
2734
|
-
}]
|
|
2735
|
-
}], propDecorators: { selectorTitle: [{
|
|
2736
|
-
type: i0.Input
|
|
2737
|
-
}], selectorItems: [{
|
|
2738
|
-
type: i0.Input
|
|
2739
|
-
}], selectedItemValue: [{
|
|
2740
|
-
type: i0.Input
|
|
2741
|
-
}], tabIndex: [{
|
|
2742
|
-
type: i0.Input
|
|
2743
|
-
}], selectChange: [{
|
|
2744
|
-
type: i0.Output
|
|
2745
|
-
}] } });
|
|
2746
|
-
|
|
2747
|
-
/*
|
|
2748
|
-
* Copyright (C) 2015 The Gravitee team (http://gravitee.io)
|
|
2749
|
-
*
|
|
2750
|
-
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
2751
|
-
* you may not use this file except in compliance with the License.
|
|
2752
|
-
* You may obtain a copy of the License at
|
|
2753
|
-
*
|
|
2754
|
-
* http://www.apache.org/licenses/LICENSE-2.0
|
|
2755
|
-
*
|
|
2756
|
-
* Unless required by applicable law or agreed to in writing, software
|
|
2757
|
-
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
2758
|
-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
2759
|
-
* See the License for the specific language governing permissions and
|
|
2760
|
-
* limitations under the License.
|
|
2761
|
-
*/
|
|
2762
|
-
var GioMenuHeaderComponent = /** @class */ (function () {
|
|
2763
|
-
function GioMenuHeaderComponent() {
|
|
2764
|
-
}
|
|
2765
|
-
return GioMenuHeaderComponent;
|
|
2766
|
-
}());
|
|
2767
|
-
GioMenuHeaderComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: GioMenuHeaderComponent, deps: [], target: i0__namespace.ɵɵFactoryTarget.Component });
|
|
2768
|
-
GioMenuHeaderComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.15", type: GioMenuHeaderComponent, selector: "gio-menu-header", ngImport: i0__namespace, template: "<!--\n\n Copyright (C) 2022 The Gravitee team (http://gravitee.io)\n \n Licensed under the Apache License, Version 2.0 (the \"License\");\n you may not use this file except in compliance with the License.\n You may obtain a copy of the License at\n \n http://www.apache.org/licenses/LICENSE-2.0\n \n Unless required by applicable law or agreed to in writing, software\n distributed under the License is distributed on an \"AS IS\" BASIS,\n WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n See the License for the specific language governing permissions and\n limitations under the License.\n\n-->\n<div class=\"gio-menu-header\">\n <ng-content></ng-content>\n</div>\n", styles: [":host{flex-grow:0}.gio-menu-header{padding:0 16px}:host-context(.gio-menu__reduced) .gio-menu-header{display:none}\n"] });
|
|
2769
|
-
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: GioMenuHeaderComponent, decorators: [{
|
|
2770
|
-
type: i0.Component,
|
|
2771
|
-
args: [{
|
|
2772
|
-
selector: 'gio-menu-header',
|
|
2773
|
-
templateUrl: './gio-menu-header.component.html',
|
|
2774
|
-
styleUrls: ['./gio-menu-header.component.scss'],
|
|
2775
|
-
}]
|
|
2776
|
-
}] });
|
|
2777
|
-
|
|
2778
|
-
/*
|
|
2779
|
-
* Copyright (C) 2015 The Gravitee team (http://gravitee.io)
|
|
2780
|
-
*
|
|
2781
|
-
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
2782
|
-
* you may not use this file except in compliance with the License.
|
|
2783
|
-
* You may obtain a copy of the License at
|
|
2784
|
-
*
|
|
2785
|
-
* http://www.apache.org/licenses/LICENSE-2.0
|
|
2786
|
-
*
|
|
2787
|
-
* Unless required by applicable law or agreed to in writing, software
|
|
2788
|
-
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
2789
|
-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
2790
|
-
* See the License for the specific language governing permissions and
|
|
2791
|
-
* limitations under the License.
|
|
2792
|
-
*/
|
|
2793
|
-
var GioMenuModule = /** @class */ (function () {
|
|
2794
|
-
function GioMenuModule() {
|
|
2795
|
-
}
|
|
2796
|
-
return GioMenuModule;
|
|
2797
|
-
}());
|
|
2798
|
-
GioMenuModule.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: GioMenuModule, deps: [], target: i0__namespace.ɵɵFactoryTarget.NgModule });
|
|
2799
|
-
GioMenuModule.ɵmod = i0__namespace.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: GioMenuModule, declarations: [GioMenuComponent,
|
|
2800
|
-
GioMenuItemComponent,
|
|
2801
|
-
GioMenuFooterComponent,
|
|
2802
|
-
GioMenuListComponent,
|
|
2803
|
-
GioMenuHeaderComponent,
|
|
2804
|
-
GioMenuSelectorComponent], imports: [i2$1.CommonModule, i1$1.MatIconModule, GioIconsModule, i2$3.MatSelectModule], exports: [GioMenuComponent,
|
|
2805
|
-
GioMenuItemComponent,
|
|
2806
|
-
GioMenuFooterComponent,
|
|
2807
|
-
GioMenuListComponent,
|
|
2808
|
-
GioMenuHeaderComponent,
|
|
2809
|
-
GioMenuSelectorComponent] });
|
|
2810
|
-
GioMenuModule.ɵinj = i0__namespace.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: GioMenuModule, imports: [[i2$1.CommonModule, i1$1.MatIconModule, GioIconsModule, i2$3.MatSelectModule]] });
|
|
2811
|
-
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: GioMenuModule, decorators: [{
|
|
2812
|
-
type: i0.NgModule,
|
|
2813
|
-
args: [{
|
|
2814
|
-
declarations: [
|
|
2815
|
-
GioMenuComponent,
|
|
2816
|
-
GioMenuItemComponent,
|
|
2817
|
-
GioMenuFooterComponent,
|
|
2818
|
-
GioMenuListComponent,
|
|
2819
|
-
GioMenuHeaderComponent,
|
|
2820
|
-
GioMenuSelectorComponent,
|
|
2821
|
-
],
|
|
2822
|
-
exports: [
|
|
2823
|
-
GioMenuComponent,
|
|
2824
|
-
GioMenuItemComponent,
|
|
2825
|
-
GioMenuFooterComponent,
|
|
2826
|
-
GioMenuListComponent,
|
|
2827
|
-
GioMenuHeaderComponent,
|
|
2828
|
-
GioMenuSelectorComponent,
|
|
2829
|
-
],
|
|
2830
|
-
imports: [i2$1.CommonModule, i1$1.MatIconModule, GioIconsModule, i2$3.MatSelectModule],
|
|
2831
|
-
}]
|
|
2832
|
-
}] });
|
|
2833
|
-
|
|
2834
|
-
var GioMenuSelectorHarness = /** @class */ (function (_super) {
|
|
2835
|
-
__extends(GioMenuSelectorHarness, _super);
|
|
2836
|
-
function GioMenuSelectorHarness() {
|
|
2837
|
-
var _this = _super.apply(this, __spreadArray([], __read(arguments))) || this;
|
|
2838
|
-
_this.getSelect = _this.locatorFor(testing$5.MatSelectHarness);
|
|
2839
|
-
return _this;
|
|
2840
|
-
}
|
|
2841
|
-
GioMenuSelectorHarness.prototype.availableOptions = function () {
|
|
2842
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
2843
|
-
var select, options;
|
|
2844
|
-
return __generator(this, function (_a) {
|
|
2845
|
-
switch (_a.label) {
|
|
2846
|
-
case 0: return [4 /*yield*/, this.getSelect()];
|
|
2847
|
-
case 1:
|
|
2848
|
-
select = _a.sent();
|
|
2849
|
-
return [4 /*yield*/, select.open()];
|
|
2850
|
-
case 2:
|
|
2851
|
-
_a.sent();
|
|
2852
|
-
return [4 /*yield*/, select.getOptions()];
|
|
2853
|
-
case 3:
|
|
2854
|
-
options = _a.sent();
|
|
2855
|
-
return [2 /*return*/, Promise.all(options.map(function (o) { return o.getText(); }))];
|
|
2856
|
-
}
|
|
2857
|
-
});
|
|
2858
|
-
});
|
|
2859
|
-
};
|
|
2860
|
-
GioMenuSelectorHarness.prototype.selectedOption = function () {
|
|
2861
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
2862
|
-
var select;
|
|
2863
|
-
return __generator(this, function (_a) {
|
|
2864
|
-
switch (_a.label) {
|
|
2865
|
-
case 0: return [4 /*yield*/, this.getSelect()];
|
|
2866
|
-
case 1:
|
|
2867
|
-
select = _a.sent();
|
|
2868
|
-
return [2 /*return*/, select.getValueText()];
|
|
2869
|
-
}
|
|
2870
|
-
});
|
|
2871
|
-
});
|
|
2872
|
-
};
|
|
2873
|
-
GioMenuSelectorHarness.prototype.selectOptionByIndex = function (index) {
|
|
2874
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
2875
|
-
var select, options;
|
|
2876
|
-
return __generator(this, function (_a) {
|
|
2877
|
-
switch (_a.label) {
|
|
2878
|
-
case 0: return [4 /*yield*/, this.getSelect()];
|
|
2879
|
-
case 1:
|
|
2880
|
-
select = _a.sent();
|
|
2881
|
-
return [4 /*yield*/, select.open()];
|
|
2882
|
-
case 2:
|
|
2883
|
-
_a.sent();
|
|
2884
|
-
return [4 /*yield*/, select.getOptions()];
|
|
2885
|
-
case 3:
|
|
2886
|
-
options = _a.sent();
|
|
2887
|
-
return [2 /*return*/, options[index].click()];
|
|
2888
|
-
}
|
|
2889
|
-
});
|
|
2890
|
-
});
|
|
2891
|
-
};
|
|
2892
|
-
return GioMenuSelectorHarness;
|
|
2893
|
-
}(testing.ComponentHarness));
|
|
2894
|
-
GioMenuSelectorHarness.hostSelector = 'gio-menu-selector';
|
|
2895
|
-
|
|
2896
|
-
/*
|
|
2897
|
-
* Copyright (C) 2015 The Gravitee team (http://gravitee.io)
|
|
2898
|
-
*
|
|
2899
|
-
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
2900
|
-
* you may not use this file except in compliance with the License.
|
|
2901
|
-
* You may obtain a copy of the License at
|
|
2902
|
-
*
|
|
2903
|
-
* http://www.apache.org/licenses/LICENSE-2.0
|
|
2904
|
-
*
|
|
2905
|
-
* Unless required by applicable law or agreed to in writing, software
|
|
2906
|
-
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
2907
|
-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
2908
|
-
* See the License for the specific language governing permissions and
|
|
2909
|
-
* limitations under the License.
|
|
2910
|
-
*/
|
|
2911
|
-
|
|
2912
|
-
/*
|
|
2913
|
-
* Copyright (C) 2015 The Gravitee team (http://gravitee.io)
|
|
2914
|
-
*
|
|
2915
|
-
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
2916
|
-
* you may not use this file except in compliance with the License.
|
|
2917
|
-
* You may obtain a copy of the License at
|
|
2918
|
-
*
|
|
2919
|
-
* http://www.apache.org/licenses/LICENSE-2.0
|
|
2920
|
-
*
|
|
2921
|
-
* Unless required by applicable law or agreed to in writing, software
|
|
2922
|
-
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
2923
|
-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
2924
|
-
* See the License for the specific language governing permissions and
|
|
2925
|
-
* limitations under the License.
|
|
2926
|
-
*/
|
|
2927
|
-
var GioSubmenuTitleDirective = /** @class */ (function () {
|
|
2928
|
-
function GioSubmenuTitleDirective() {
|
|
2929
|
-
}
|
|
2930
|
-
return GioSubmenuTitleDirective;
|
|
2931
|
-
}());
|
|
2932
|
-
GioSubmenuTitleDirective.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: GioSubmenuTitleDirective, deps: [], target: i0__namespace.ɵɵFactoryTarget.Directive });
|
|
2933
|
-
GioSubmenuTitleDirective.ɵdir = i0__namespace.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "12.2.15", type: GioSubmenuTitleDirective, selector: "[gioSubmenuTitle]", ngImport: i0__namespace });
|
|
2934
|
-
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: GioSubmenuTitleDirective, decorators: [{
|
|
2935
|
-
type: i0.Directive,
|
|
2936
|
-
args: [{
|
|
2937
|
-
selector: '[gioSubmenuTitle]',
|
|
2938
|
-
}]
|
|
2939
|
-
}] });
|
|
2940
|
-
var GioSubmenuComponent = /** @class */ (function () {
|
|
2941
|
-
function GioSubmenuComponent(gioMenuService) {
|
|
2942
|
-
this.gioMenuService = gioMenuService;
|
|
2943
|
-
this.reduced = false;
|
|
2944
|
-
this.loaded = false;
|
|
2945
|
-
this.overlayOptions = { open: false };
|
|
2946
|
-
this.hover = false;
|
|
2947
|
-
this.unsubscribe$ = new rxjs.Subject();
|
|
2948
|
-
}
|
|
2949
|
-
GioSubmenuComponent.prototype.ngAfterViewInit = function () {
|
|
2950
|
-
var _this = this;
|
|
2951
|
-
this.gioMenuService.reduce
|
|
2952
|
-
.pipe(operators.takeUntil(this.unsubscribe$), operators.filter(function (reduced) { return reduced; }), operators.tap(function () {
|
|
2953
|
-
_this.reduced = true;
|
|
2954
|
-
_this.loaded = true;
|
|
2955
|
-
}), operators.switchMap(function () { return _this.gioMenuService.overlayObservable; }), operators.tap(function (overlayOptions) {
|
|
2956
|
-
var top = overlayOptions.top || 0;
|
|
2957
|
-
_this.overlayOptions = overlayOptions;
|
|
2958
|
-
_this.gioSubmenu.nativeElement.style.top = top + "px";
|
|
2959
|
-
_this.gioSubmenu.nativeElement.style.height = 'auto';
|
|
2960
|
-
_this.gioSubmenu.nativeElement.style.maxHeight = "calc(100vh - " + (top + 8) + "px)";
|
|
2961
|
-
}), operators.filter(function (overlayOptions) { return !!overlayOptions.focus; }), operators.delay(200), operators.switchMap(function () { return rxjs.of(_this.gioSubmenu.nativeElement.querySelectorAll('gio-submenu-item')); }), operators.filter(function (submenuItems) { return submenuItems.length > 0; }), operators.tap(function (submenuItems) { return submenuItems[0].focus(); }))
|
|
2962
|
-
.subscribe();
|
|
2963
|
-
this.gioMenuService.reduce
|
|
2964
|
-
.pipe(operators.takeUntil(this.unsubscribe$), operators.filter(function (reduced) { return !reduced; }), operators.tap(function () {
|
|
2965
|
-
_this.reduced = false;
|
|
2966
|
-
_this.loaded = true;
|
|
2967
|
-
_this.gioSubmenu.nativeElement.style.height = '100%';
|
|
2968
|
-
_this.gioSubmenu.nativeElement.style.maxHeight = 'none';
|
|
2969
|
-
}))
|
|
2970
|
-
.subscribe();
|
|
2971
|
-
};
|
|
2972
|
-
GioSubmenuComponent.prototype.ngOnDestroy = function () {
|
|
2973
|
-
this.unsubscribe$.next();
|
|
2974
|
-
this.unsubscribe$.unsubscribe();
|
|
2975
|
-
};
|
|
2976
|
-
GioSubmenuComponent.prototype.onMouseEnter = function () {
|
|
2977
|
-
this.hover = true;
|
|
2978
|
-
this.gioMenuService.overlay(this.overlayOptions);
|
|
2979
|
-
};
|
|
2980
|
-
GioSubmenuComponent.prototype.onMouseLeave = function () {
|
|
2981
|
-
this.hover = false;
|
|
2982
|
-
this.gioMenuService.overlay({ open: false });
|
|
2983
|
-
};
|
|
2984
|
-
GioSubmenuComponent.prototype.onKeydownHandler = function (event) {
|
|
2985
|
-
var _this = this;
|
|
2986
|
-
rxjs.of(this.reduced && event.key === 'Escape')
|
|
2987
|
-
.pipe(operators.filter(function (reducedAndEcape) { return reducedAndEcape; }), operators.tap(function () { return _this.gioMenuService.overlay({ open: false }); }), operators.delay(100), operators.tap(function () { var _a; return (_a = _this.overlayOptions.parent) === null || _a === void 0 ? void 0 : _a.focus(); }))
|
|
2988
|
-
.subscribe();
|
|
2989
|
-
};
|
|
2990
|
-
return GioSubmenuComponent;
|
|
2991
|
-
}());
|
|
2992
|
-
GioSubmenuComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: GioSubmenuComponent, deps: [{ token: GioMenuService }], target: i0__namespace.ɵɵFactoryTarget.Component });
|
|
2993
|
-
GioSubmenuComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.15", type: GioSubmenuComponent, selector: "gio-submenu", host: { listeners: { "keydown": "onKeydownHandler($event)" } }, viewQueries: [{ propertyName: "gioSubmenu", first: true, predicate: ["gioSubmenu"], descendants: true }], ngImport: i0__namespace, template: "<!--\n\n Copyright (C) 2022 The Gravitee team (http://gravitee.io)\n\n Licensed under the Apache License, Version 2.0 (the \"License\");\n you may not use this file except in compliance with the License.\n You may obtain a copy of the License at\n\n http://www.apache.org/licenses/LICENSE-2.0\n\n Unless required by applicable law or agreed to in writing, software\n distributed under the License is distributed on an \"AS IS\" BASIS,\n WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n See the License for the specific language governing permissions and\n limitations under the License.\n\n-->\n<div\n #gioSubmenu\n class=\"gio-submenu\"\n [class.gio-submenu__loaded]=\"loaded\"\n [class.gio-submenu__reduced]=\"reduced\"\n [class.gio-submenu__overlay]=\"overlayOptions.open\"\n (mouseenter)=\"onMouseEnter()\"\n (mouseleave)=\"onMouseLeave()\"\n>\n <div #title class=\"gio-submenu__title\" [class.hide]=\"!title.children.length || reduced\">\n <ng-content select=\"[gioSubmenuTitle]\"></ng-content>\n </div>\n <ng-content></ng-content>\n</div>\n", styles: [":host{z-index:100}.gio-submenu{display:none;width:266px;height:100%;flex:none;flex-direction:column;flex-grow:0;justify-content:flex-start;padding:16px;background:#100c27}.gio-submenu__reduced{position:absolute;overflow:auto;margin:0 0 0 8px;border-radius:8px;opacity:0;visibility:hidden}.gio-submenu__loaded{display:flex}.gio-submenu__overlay,.gio-submenu:hover{opacity:1;transition:opacity .15s,visibility .15s;visibility:visible}.gio-submenu__title{padding-bottom:8px;color:#fff}.gio-submenu .hide{display:none}\n"] });
|
|
2994
|
-
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: GioSubmenuComponent, decorators: [{
|
|
2995
|
-
type: i0.Component,
|
|
2996
|
-
args: [{
|
|
2997
|
-
selector: 'gio-submenu',
|
|
2998
|
-
templateUrl: './gio-submenu.component.html',
|
|
2999
|
-
styleUrls: ['./gio-submenu.component.scss'],
|
|
3000
|
-
}]
|
|
3001
|
-
}], ctorParameters: function () { return [{ type: GioMenuService }]; }, propDecorators: { gioSubmenu: [{
|
|
3002
|
-
type: i0.ViewChild,
|
|
3003
|
-
args: ['gioSubmenu', { static: false }]
|
|
3004
|
-
}], onKeydownHandler: [{
|
|
3005
|
-
type: i0.HostListener,
|
|
3006
|
-
args: ['keydown', ['$event']]
|
|
3007
|
-
}] } });
|
|
3008
|
-
|
|
3009
|
-
/*
|
|
3010
|
-
* Copyright (C) 2015 The Gravitee team (http://gravitee.io)
|
|
3011
|
-
*
|
|
3012
|
-
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
3013
|
-
* you may not use this file except in compliance with the License.
|
|
3014
|
-
* You may obtain a copy of the License at
|
|
3015
|
-
*
|
|
3016
|
-
* http://www.apache.org/licenses/LICENSE-2.0
|
|
3017
|
-
*
|
|
3018
|
-
* Unless required by applicable law or agreed to in writing, software
|
|
3019
|
-
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
3020
|
-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
3021
|
-
* See the License for the specific language governing permissions and
|
|
3022
|
-
* limitations under the License.
|
|
3023
|
-
*/
|
|
3024
|
-
var GioSubmenuGroupComponent = /** @class */ (function () {
|
|
3025
|
-
function GioSubmenuGroupComponent() {
|
|
3026
|
-
this.title = '';
|
|
3027
|
-
}
|
|
3028
|
-
return GioSubmenuGroupComponent;
|
|
3029
|
-
}());
|
|
3030
|
-
GioSubmenuGroupComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: GioSubmenuGroupComponent, deps: [], target: i0__namespace.ɵɵFactoryTarget.Component });
|
|
3031
|
-
GioSubmenuGroupComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.15", type: GioSubmenuGroupComponent, selector: "gio-submenu-group", inputs: { title: "title" }, ngImport: i0__namespace, template: "<!--\n\n Copyright (C) 2022 The Gravitee team (http://gravitee.io)\n \n Licensed under the Apache License, Version 2.0 (the \"License\");\n you may not use this file except in compliance with the License.\n You may obtain a copy of the License at\n \n http://www.apache.org/licenses/LICENSE-2.0\n \n Unless required by applicable law or agreed to in writing, software\n distributed under the License is distributed on an \"AS IS\" BASIS,\n WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n See the License for the specific language governing permissions and\n limitations under the License.\n\n-->\n<div class=\"gio-submenu-group\">\n <div class=\"gio-submenu-group__title\">{{ title }}</div>\n <ng-content></ng-content>\n</div>\n", styles: [".gio-submenu-group{display:flex;flex-direction:column;margin-top:8px}.gio-submenu-group__title{height:36px;padding:8px 12px;margin:1px 0;border-radius:4px;color:#8e8f9c;letter-spacing:.4px}\n"] });
|
|
3032
|
-
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: GioSubmenuGroupComponent, decorators: [{
|
|
3033
|
-
type: i0.Component,
|
|
3034
|
-
args: [{
|
|
3035
|
-
selector: 'gio-submenu-group',
|
|
3036
|
-
templateUrl: './gio-submenu-group.component.html',
|
|
3037
|
-
styleUrls: ['./gio-submenu-group.component.scss'],
|
|
3038
|
-
}]
|
|
3039
|
-
}], propDecorators: { title: [{
|
|
3040
|
-
type: i0.Input
|
|
3041
|
-
}] } });
|
|
3042
|
-
|
|
3043
|
-
/*
|
|
3044
|
-
* Copyright (C) 2015 The Gravitee team (http://gravitee.io)
|
|
3045
|
-
*
|
|
3046
|
-
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
3047
|
-
* you may not use this file except in compliance with the License.
|
|
3048
|
-
* You may obtain a copy of the License at
|
|
3049
|
-
*
|
|
3050
|
-
* http://www.apache.org/licenses/LICENSE-2.0
|
|
3051
|
-
*
|
|
3052
|
-
* Unless required by applicable law or agreed to in writing, software
|
|
3053
|
-
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
3054
|
-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
3055
|
-
* See the License for the specific language governing permissions and
|
|
3056
|
-
* limitations under the License.
|
|
3057
|
-
*/
|
|
3058
|
-
var GioSubmenuItemComponent = /** @class */ (function () {
|
|
3059
|
-
function GioSubmenuItemComponent() {
|
|
3060
|
-
this.active = false;
|
|
3061
|
-
}
|
|
3062
|
-
GioSubmenuItemComponent.prototype.onKeydownHandler = function (event) {
|
|
3063
|
-
var _a;
|
|
3064
|
-
if (event.key === 'Enter') {
|
|
3065
|
-
(_a = this.gioSubmenuItem) === null || _a === void 0 ? void 0 : _a.nativeElement.click();
|
|
3066
|
-
}
|
|
3067
|
-
};
|
|
3068
|
-
return GioSubmenuItemComponent;
|
|
3069
|
-
}());
|
|
3070
|
-
GioSubmenuItemComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: GioSubmenuItemComponent, deps: [], target: i0__namespace.ɵɵFactoryTarget.Component });
|
|
3071
|
-
GioSubmenuItemComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.15", type: GioSubmenuItemComponent, selector: "gio-submenu-item", inputs: { active: "active" }, host: { listeners: { "keydown": "onKeydownHandler($event)" } }, viewQueries: [{ propertyName: "gioSubmenuItem", first: true, predicate: ["gioSubmenuItem"], descendants: true }], ngImport: i0__namespace, template: "<!--\n\n Copyright (C) 2022 The Gravitee team (http://gravitee.io)\n\n Licensed under the Apache License, Version 2.0 (the \"License\");\n you may not use this file except in compliance with the License.\n You may obtain a copy of the License at\n\n http://www.apache.org/licenses/LICENSE-2.0\n\n Unless required by applicable law or agreed to in writing, software\n distributed under the License is distributed on an \"AS IS\" BASIS,\n WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n See the License for the specific language governing permissions and\n limitations under the License.\n\n-->\n<div #gioSubmenuItem class=\"gio-submenu-item\" [class.gio-submenu-item__active]=\"active\">\n <span class=\"gio-submenu-item__title\"><ng-content></ng-content></span>\n</div>\n", styles: [":host{display:block}.gio-submenu-item{width:234px;height:36px;flex:none;flex-grow:0;order:2;padding:8px 12px;margin:1px 0;border-radius:4px;cursor:pointer}.gio-submenu-item__active{background:#494b61}.gio-submenu-item__title{width:37px;height:20px;flex:none;flex-grow:0;color:#fff;letter-spacing:.4px}:host-context(.gio-submenu-group) .gio-submenu-item{padding:8px 20px}.gio-submenu-item:hover:not(.gio-submenu-item__active){background:#33354d}\n"] });
|
|
3072
|
-
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: GioSubmenuItemComponent, decorators: [{
|
|
3073
|
-
type: i0.Component,
|
|
3074
|
-
args: [{
|
|
3075
|
-
selector: 'gio-submenu-item',
|
|
3076
|
-
templateUrl: './gio-submenu-item.component.html',
|
|
3077
|
-
styleUrls: ['./gio-submenu-item.component.scss'],
|
|
3078
|
-
}]
|
|
3079
|
-
}], propDecorators: { active: [{
|
|
3080
|
-
type: i0.Input
|
|
3081
|
-
}], gioSubmenuItem: [{
|
|
3082
|
-
type: i0.ViewChild,
|
|
3083
|
-
args: ['gioSubmenuItem', { static: false }]
|
|
3084
|
-
}], onKeydownHandler: [{
|
|
3085
|
-
type: i0.HostListener,
|
|
3086
|
-
args: ['keydown', ['$event']]
|
|
3087
|
-
}] } });
|
|
3088
|
-
|
|
3089
|
-
/*
|
|
3090
|
-
* Copyright (C) 2015 The Gravitee team (http://gravitee.io)
|
|
3091
|
-
*
|
|
3092
|
-
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
3093
|
-
* you may not use this file except in compliance with the License.
|
|
3094
|
-
* You may obtain a copy of the License at
|
|
3095
|
-
*
|
|
3096
|
-
* http://www.apache.org/licenses/LICENSE-2.0
|
|
3097
|
-
*
|
|
3098
|
-
* Unless required by applicable law or agreed to in writing, software
|
|
3099
|
-
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
3100
|
-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
3101
|
-
* See the License for the specific language governing permissions and
|
|
3102
|
-
* limitations under the License.
|
|
3103
|
-
*/
|
|
3104
|
-
var GioSubmenuModule = /** @class */ (function () {
|
|
3105
|
-
function GioSubmenuModule() {
|
|
3106
|
-
}
|
|
3107
|
-
return GioSubmenuModule;
|
|
3108
|
-
}());
|
|
3109
|
-
GioSubmenuModule.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: GioSubmenuModule, deps: [], target: i0__namespace.ɵɵFactoryTarget.NgModule });
|
|
3110
|
-
GioSubmenuModule.ɵmod = i0__namespace.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: GioSubmenuModule, declarations: [GioSubmenuComponent, GioSubmenuGroupComponent, GioSubmenuItemComponent, GioSubmenuTitleDirective], imports: [i2$1.CommonModule, i1$1.MatIconModule, GioIconsModule], exports: [GioSubmenuComponent, GioSubmenuGroupComponent, GioSubmenuItemComponent, GioSubmenuTitleDirective] });
|
|
3111
|
-
GioSubmenuModule.ɵinj = i0__namespace.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: GioSubmenuModule, imports: [[i2$1.CommonModule, i1$1.MatIconModule, GioIconsModule]] });
|
|
3112
|
-
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: GioSubmenuModule, decorators: [{
|
|
3113
|
-
type: i0.NgModule,
|
|
3114
|
-
args: [{
|
|
3115
|
-
declarations: [GioSubmenuComponent, GioSubmenuGroupComponent, GioSubmenuItemComponent, GioSubmenuTitleDirective],
|
|
3116
|
-
exports: [GioSubmenuComponent, GioSubmenuGroupComponent, GioSubmenuItemComponent, GioSubmenuTitleDirective],
|
|
3117
|
-
imports: [i2$1.CommonModule, i1$1.MatIconModule, GioIconsModule],
|
|
3118
|
-
}]
|
|
3119
|
-
}] });
|
|
3120
|
-
|
|
3121
|
-
/*
|
|
3122
|
-
* Copyright (C) 2015 The Gravitee team (http://gravitee.io)
|
|
3123
|
-
*
|
|
3124
|
-
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
3125
|
-
* you may not use this file except in compliance with the License.
|
|
3126
|
-
* You may obtain a copy of the License at
|
|
3127
|
-
*
|
|
3128
|
-
* http://www.apache.org/licenses/LICENSE-2.0
|
|
3129
|
-
*
|
|
3130
|
-
* Unless required by applicable law or agreed to in writing, software
|
|
3131
|
-
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
3132
|
-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
3133
|
-
* See the License for the specific language governing permissions and
|
|
3134
|
-
* limitations under the License.
|
|
3135
|
-
*/
|
|
3136
|
-
|
|
3137
|
-
/*
|
|
3138
|
-
* Copyright (C) 2015 The Gravitee team (http://gravitee.io)
|
|
3139
|
-
*
|
|
3140
|
-
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
3141
|
-
* you may not use this file except in compliance with the License.
|
|
3142
|
-
* You may obtain a copy of the License at
|
|
3143
|
-
*
|
|
3144
|
-
* http://www.apache.org/licenses/LICENSE-2.0
|
|
3145
|
-
*
|
|
3146
|
-
* Unless required by applicable law or agreed to in writing, software
|
|
3147
|
-
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
3148
|
-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
3149
|
-
* See the License for the specific language governing permissions and
|
|
3150
|
-
* limitations under the License.
|
|
3151
|
-
*/
|
|
3152
|
-
var GioTopBarComponent = /** @class */ (function () {
|
|
3153
|
-
function GioTopBarComponent() {
|
|
3154
|
-
this.type = 'am';
|
|
3155
|
-
this.productName = '';
|
|
3156
|
-
}
|
|
3157
|
-
return GioTopBarComponent;
|
|
3158
|
-
}());
|
|
3159
|
-
GioTopBarComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: GioTopBarComponent, deps: [], target: i0__namespace.ɵɵFactoryTarget.Component });
|
|
3160
|
-
GioTopBarComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.15", type: GioTopBarComponent, selector: "gio-top-bar", inputs: { type: "type", productName: "productName" }, ngImport: i0__namespace, template: "<!--\n\n Copyright (C) 2022 The Gravitee team (http://gravitee.io)\n\n Licensed under the Apache License, Version 2.0 (the \"License\");\n you may not use this file except in compliance with the License.\n You may obtain a copy of the License at\n\n http://www.apache.org/licenses/LICENSE-2.0\n\n Unless required by applicable law or agreed to in writing, software\n distributed under the License is distributed on an \"AS IS\" BASIS,\n WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n See the License for the specific language governing permissions and\n limitations under the License.\n\n-->\n<div class=\"gio-top-bar\">\n <ng-content></ng-content>\n</div>\n", styles: [":host{width:100%}::ng-deep gio-top-bar .mat-icon-button{width:36px;height:36px;border-radius:4px;line-height:36px}::ng-deep gio-top-bar .mat-icon-button:hover{background:#33354d}.gio-top-bar{display:flex;align-items:center;padding:16px;background:#1c1e39;color:#f7f8fd;grid-gap:18px;gap:18px}\n"] });
|
|
3161
|
-
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: GioTopBarComponent, decorators: [{
|
|
3162
|
-
type: i0.Component,
|
|
3163
|
-
args: [{
|
|
3164
|
-
selector: 'gio-top-bar',
|
|
3165
|
-
templateUrl: './gio-top-bar.component.html',
|
|
3166
|
-
styleUrls: ['./gio-top-bar.component.scss'],
|
|
3167
|
-
}]
|
|
3168
|
-
}], propDecorators: { type: [{
|
|
3169
|
-
type: i0.Input
|
|
3170
|
-
}], productName: [{
|
|
3171
|
-
type: i0.Input
|
|
3172
|
-
}] } });
|
|
3173
|
-
|
|
3174
|
-
/*
|
|
3175
|
-
* Copyright (C) 2015 The Gravitee team (http://gravitee.io)
|
|
3176
|
-
*
|
|
3177
|
-
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
3178
|
-
* you may not use this file except in compliance with the License.
|
|
3179
|
-
* You may obtain a copy of the License at
|
|
3180
|
-
*
|
|
3181
|
-
* http://www.apache.org/licenses/LICENSE-2.0
|
|
3182
|
-
*
|
|
3183
|
-
* Unless required by applicable law or agreed to in writing, software
|
|
3184
|
-
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
3185
|
-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
3186
|
-
* See the License for the specific language governing permissions and
|
|
3187
|
-
* limitations under the License.
|
|
3188
|
-
*/
|
|
3189
|
-
var GioTopBarContentComponent = /** @class */ (function () {
|
|
3190
|
-
function GioTopBarContentComponent() {
|
|
3191
|
-
this.type = 'am';
|
|
3192
|
-
this.productName = 'Access Management';
|
|
3193
|
-
}
|
|
3194
|
-
return GioTopBarContentComponent;
|
|
3195
|
-
}());
|
|
3196
|
-
GioTopBarContentComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: GioTopBarContentComponent, deps: [], target: i0__namespace.ɵɵFactoryTarget.Component });
|
|
3197
|
-
GioTopBarContentComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.15", type: GioTopBarContentComponent, selector: "gio-top-bar-content", inputs: { type: "type", productName: "productName" }, ngImport: i0__namespace, template: "<!--\n\n Copyright (C) 2022 The Gravitee team (http://gravitee.io)\n\n Licensed under the Apache License, Version 2.0 (the \"License\");\n you may not use this file except in compliance with the License.\n You may obtain a copy of the License at\n\n http://www.apache.org/licenses/LICENSE-2.0\n\n Unless required by applicable law or agreed to in writing, software\n distributed under the License is distributed on an \"AS IS\" BASIS,\n WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n See the License for the specific language governing permissions and\n limitations under the License.\n\n-->\n<div class=\"gio-top-bar-content\" [class]=\"type\">\n <mat-icon [svgIcon]=\"'gio:product-' + type\"></mat-icon>\n <span>{{ productName }}</span>\n</div>\n", styles: [".gio-top-bar-content{display:flex;height:36px;align-items:center;padding:8px 12px;border-radius:4px;grid-gap:12px;gap:12px;font:600 14px / 20px \"Golos UI\",Roboto,\"Helvetica Neue\",sans-serif;letter-spacing:.4px}.gio-top-bar-content.am{background:rgba(236,72,153,.4);color:#fff}.gio-top-bar-content.apim{background:rgba(0,111,185,.5);color:#fff}.gio-top-bar-content.cockpit{background:rgba(135,111,236,.4);color:#fff}\n"], components: [{ type: i1__namespace$1.MatIcon, selector: "mat-icon", inputs: ["color", "inline", "svgIcon", "fontSet", "fontIcon"], exportAs: ["matIcon"] }] });
|
|
3198
|
-
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: GioTopBarContentComponent, decorators: [{
|
|
3199
|
-
type: i0.Component,
|
|
3200
|
-
args: [{
|
|
3201
|
-
selector: 'gio-top-bar-content',
|
|
3202
|
-
templateUrl: './gio-top-bar-content.component.html',
|
|
3203
|
-
styleUrls: ['./gio-top-bar-content.component.scss'],
|
|
3204
|
-
}]
|
|
3205
|
-
}], propDecorators: { type: [{
|
|
3206
|
-
type: i0.Input
|
|
3207
|
-
}], productName: [{
|
|
3208
|
-
type: i0.Input
|
|
3209
|
-
}] } });
|
|
3210
|
-
|
|
3211
|
-
/*
|
|
3212
|
-
* Copyright (C) 2015 The Gravitee team (http://gravitee.io)
|
|
3213
|
-
*
|
|
3214
|
-
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
3215
|
-
* you may not use this file except in compliance with the License.
|
|
3216
|
-
* You may obtain a copy of the License at
|
|
3217
|
-
*
|
|
3218
|
-
* http://www.apache.org/licenses/LICENSE-2.0
|
|
3219
|
-
*
|
|
3220
|
-
* Unless required by applicable law or agreed to in writing, software
|
|
3221
|
-
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
3222
|
-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
3223
|
-
* See the License for the specific language governing permissions and
|
|
3224
|
-
* limitations under the License.
|
|
3225
|
-
*/
|
|
3226
|
-
var GioTopBarModule = /** @class */ (function () {
|
|
3227
|
-
function GioTopBarModule() {
|
|
3228
|
-
}
|
|
3229
|
-
return GioTopBarModule;
|
|
3230
|
-
}());
|
|
3231
|
-
GioTopBarModule.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: GioTopBarModule, deps: [], target: i0__namespace.ɵɵFactoryTarget.NgModule });
|
|
3232
|
-
GioTopBarModule.ɵmod = i0__namespace.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: GioTopBarModule, declarations: [GioTopBarComponent, GioTopBarContentComponent], imports: [i2$1.CommonModule, i1$1.MatIconModule, GioIconsModule], exports: [GioTopBarComponent, GioTopBarContentComponent] });
|
|
3233
|
-
GioTopBarModule.ɵinj = i0__namespace.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: GioTopBarModule, imports: [[i2$1.CommonModule, i1$1.MatIconModule, GioIconsModule]] });
|
|
3234
|
-
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: GioTopBarModule, decorators: [{
|
|
3235
|
-
type: i0.NgModule,
|
|
3236
|
-
args: [{
|
|
3237
|
-
declarations: [GioTopBarComponent, GioTopBarContentComponent],
|
|
3238
|
-
exports: [GioTopBarComponent, GioTopBarContentComponent],
|
|
3239
|
-
imports: [i2$1.CommonModule, i1$1.MatIconModule, GioIconsModule],
|
|
3240
|
-
}]
|
|
3241
|
-
}] });
|
|
3242
|
-
|
|
3243
|
-
/*
|
|
3244
|
-
* Copyright (C) 2015 The Gravitee team (http://gravitee.io)
|
|
3245
|
-
*
|
|
3246
|
-
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
3247
|
-
* you may not use this file except in compliance with the License.
|
|
3248
|
-
* You may obtain a copy of the License at
|
|
3249
|
-
*
|
|
3250
|
-
* http://www.apache.org/licenses/LICENSE-2.0
|
|
3251
|
-
*
|
|
3252
|
-
* Unless required by applicable law or agreed to in writing, software
|
|
3253
|
-
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
3254
|
-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
3255
|
-
* See the License for the specific language governing permissions and
|
|
3256
|
-
* limitations under the License.
|
|
3257
|
-
*/
|
|
3258
|
-
var GioTopBarMenuComponent = /** @class */ (function () {
|
|
3259
|
-
function GioTopBarMenuComponent() {
|
|
3260
|
-
}
|
|
3261
|
-
return GioTopBarMenuComponent;
|
|
3262
|
-
}());
|
|
3263
|
-
GioTopBarMenuComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: GioTopBarMenuComponent, deps: [], target: i0__namespace.ɵɵFactoryTarget.Component });
|
|
3264
|
-
GioTopBarMenuComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.15", type: GioTopBarMenuComponent, selector: "gio-top-bar-menu", ngImport: i0__namespace, template: "<!--\n\n Copyright (C) 2022 The Gravitee team (http://gravitee.io)\n \n Licensed under the Apache License, Version 2.0 (the \"License\");\n you may not use this file except in compliance with the License.\n You may obtain a copy of the License at\n \n http://www.apache.org/licenses/LICENSE-2.0\n \n Unless required by applicable law or agreed to in writing, software\n distributed under the License is distributed on an \"AS IS\" BASIS,\n WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n See the License for the specific language governing permissions and\n limitations under the License.\n\n-->\n<div class=\"gio-top-bar-menu\">\n <ng-content></ng-content>\n</div>\n", styles: [":host{flex-grow:1}.gio-top-bar-menu{display:flex;flex-direction:row;align-items:center;justify-content:flex-end;grid-gap:8px;gap:8px}\n"] });
|
|
3265
|
-
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: GioTopBarMenuComponent, decorators: [{
|
|
3266
|
-
type: i0.Component,
|
|
3267
|
-
args: [{
|
|
3268
|
-
selector: 'gio-top-bar-menu',
|
|
3269
|
-
templateUrl: './gio-top-bar-menu.component.html',
|
|
3270
|
-
styleUrls: ['./gio-top-bar-menu.component.scss'],
|
|
3271
|
-
}]
|
|
3272
|
-
}] });
|
|
3273
|
-
|
|
3274
|
-
/*
|
|
3275
|
-
* Copyright (C) 2015 The Gravitee team (http://gravitee.io)
|
|
3276
|
-
*
|
|
3277
|
-
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
3278
|
-
* you may not use this file except in compliance with the License.
|
|
3279
|
-
* You may obtain a copy of the License at
|
|
3280
|
-
*
|
|
3281
|
-
* http://www.apache.org/licenses/LICENSE-2.0
|
|
3282
|
-
*
|
|
3283
|
-
* Unless required by applicable law or agreed to in writing, software
|
|
3284
|
-
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
3285
|
-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
3286
|
-
* See the License for the specific language governing permissions and
|
|
3287
|
-
* limitations under the License.
|
|
3288
|
-
*/
|
|
3289
|
-
var GioTopBarMenuModule = /** @class */ (function () {
|
|
3290
|
-
function GioTopBarMenuModule() {
|
|
3291
|
-
}
|
|
3292
|
-
return GioTopBarMenuModule;
|
|
3293
|
-
}());
|
|
3294
|
-
GioTopBarMenuModule.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: GioTopBarMenuModule, deps: [], target: i0__namespace.ɵɵFactoryTarget.NgModule });
|
|
3295
|
-
GioTopBarMenuModule.ɵmod = i0__namespace.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: GioTopBarMenuModule, declarations: [GioTopBarMenuComponent], imports: [i2$1.CommonModule], exports: [GioTopBarMenuComponent] });
|
|
3296
|
-
GioTopBarMenuModule.ɵinj = i0__namespace.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: GioTopBarMenuModule, imports: [[i2$1.CommonModule]] });
|
|
3297
|
-
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: GioTopBarMenuModule, decorators: [{
|
|
3298
|
-
type: i0.NgModule,
|
|
3299
|
-
args: [{
|
|
3300
|
-
declarations: [GioTopBarMenuComponent],
|
|
3301
|
-
exports: [GioTopBarMenuComponent],
|
|
3302
|
-
imports: [i2$1.CommonModule],
|
|
3303
|
-
}]
|
|
3304
|
-
}] });
|
|
3305
|
-
|
|
3306
|
-
/*
|
|
3307
|
-
* Copyright (C) 2015 The Gravitee team (http://gravitee.io)
|
|
3308
|
-
*
|
|
3309
|
-
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
3310
|
-
* you may not use this file except in compliance with the License.
|
|
3311
|
-
* You may obtain a copy of the License at
|
|
3312
|
-
*
|
|
3313
|
-
* http://www.apache.org/licenses/LICENSE-2.0
|
|
3314
|
-
*
|
|
3315
|
-
* Unless required by applicable law or agreed to in writing, software
|
|
3316
|
-
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
3317
|
-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
3318
|
-
* See the License for the specific language governing permissions and
|
|
3319
|
-
* limitations under the License.
|
|
3320
|
-
*/
|
|
3321
|
-
var GioTopBarLinkComponent = /** @class */ (function () {
|
|
3322
|
-
function GioTopBarLinkComponent() {
|
|
3323
|
-
this.url = '';
|
|
3324
|
-
this.name = '';
|
|
3325
|
-
}
|
|
3326
|
-
return GioTopBarLinkComponent;
|
|
3327
|
-
}());
|
|
3328
|
-
GioTopBarLinkComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: GioTopBarLinkComponent, deps: [], target: i0__namespace.ɵɵFactoryTarget.Component });
|
|
3329
|
-
GioTopBarLinkComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.15", type: GioTopBarLinkComponent, selector: "gio-top-bar-link", inputs: { url: "url", name: "name" }, ngImport: i0__namespace, template: "<!--\n\n Copyright (C) 2022 The Gravitee team (http://gravitee.io)\n \n Licensed under the Apache License, Version 2.0 (the \"License\");\n you may not use this file except in compliance with the License.\n You may obtain a copy of the License at\n \n http://www.apache.org/licenses/LICENSE-2.0\n \n Unless required by applicable law or agreed to in writing, software\n distributed under the License is distributed on an \"AS IS\" BASIS,\n WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n See the License for the specific language governing permissions and\n limitations under the License.\n\n-->\n<a mat-button [href]=\"url\" target=\"_blank\" class=\"gio-top-bar-link\">\n <div class=\"gio-top-bar-link__content\">\n <span>{{ name }}</span>\n <mat-icon svgIcon=\"gio:external-link\"></mat-icon>\n </div>\n</a>\n", styles: [":host{display:block}.gio-top-bar-link{font:600 14px / 20px \"Golos UI\",Roboto,\"Helvetica Neue\",sans-serif;height:20px;color:#f7f8fd;letter-spacing:.4px;text-decoration:none}.gio-top-bar-link__content{display:flex;align-items:center;grid-gap:8px;gap:8px}.gio-top-bar-link__content mat-icon{width:12px}\n"], components: [{ type: i1__namespace$1.MatIcon, selector: "mat-icon", inputs: ["color", "inline", "svgIcon", "fontSet", "fontIcon"], exportAs: ["matIcon"] }] });
|
|
3330
|
-
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: GioTopBarLinkComponent, decorators: [{
|
|
3331
|
-
type: i0.Component,
|
|
3332
|
-
args: [{
|
|
3333
|
-
selector: 'gio-top-bar-link',
|
|
3334
|
-
templateUrl: './gio-top-bar-link.component.html',
|
|
3335
|
-
styleUrls: ['./gio-top-bar-link.component.scss'],
|
|
3336
|
-
}]
|
|
3337
|
-
}], propDecorators: { url: [{
|
|
3338
|
-
type: i0.Input
|
|
3339
|
-
}], name: [{
|
|
3340
|
-
type: i0.Input
|
|
3341
|
-
}] } });
|
|
3342
|
-
|
|
3343
|
-
/*
|
|
3344
|
-
* Copyright (C) 2015 The Gravitee team (http://gravitee.io)
|
|
3345
|
-
*
|
|
3346
|
-
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
3347
|
-
* you may not use this file except in compliance with the License.
|
|
3348
|
-
* You may obtain a copy of the License at
|
|
3349
|
-
*
|
|
3350
|
-
* http://www.apache.org/licenses/LICENSE-2.0
|
|
3351
|
-
*
|
|
3352
|
-
* Unless required by applicable law or agreed to in writing, software
|
|
3353
|
-
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
3354
|
-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
3355
|
-
* See the License for the specific language governing permissions and
|
|
3356
|
-
* limitations under the License.
|
|
3357
|
-
*/
|
|
3358
|
-
var GioTopBarLinkModule = /** @class */ (function () {
|
|
3359
|
-
function GioTopBarLinkModule() {
|
|
3360
|
-
}
|
|
3361
|
-
return GioTopBarLinkModule;
|
|
3362
|
-
}());
|
|
3363
|
-
GioTopBarLinkModule.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: GioTopBarLinkModule, deps: [], target: i0__namespace.ɵɵFactoryTarget.NgModule });
|
|
3364
|
-
GioTopBarLinkModule.ɵmod = i0__namespace.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: GioTopBarLinkModule, declarations: [GioTopBarLinkComponent], imports: [i2$1.CommonModule, i1$1.MatIconModule, GioIconsModule], exports: [GioTopBarLinkComponent] });
|
|
3365
|
-
GioTopBarLinkModule.ɵinj = i0__namespace.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: GioTopBarLinkModule, imports: [[i2$1.CommonModule, i1$1.MatIconModule, GioIconsModule]] });
|
|
3366
|
-
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: GioTopBarLinkModule, decorators: [{
|
|
3367
|
-
type: i0.NgModule,
|
|
3368
|
-
args: [{
|
|
3369
|
-
declarations: [GioTopBarLinkComponent],
|
|
3370
|
-
exports: [GioTopBarLinkComponent],
|
|
3371
|
-
imports: [i2$1.CommonModule, i1$1.MatIconModule, GioIconsModule],
|
|
3372
|
-
}]
|
|
3373
|
-
}] });
|
|
3374
|
-
|
|
3375
|
-
/*
|
|
3376
|
-
* Copyright (C) 2015 The Gravitee team (http://gravitee.io)
|
|
3377
|
-
*
|
|
3378
|
-
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
3379
|
-
* you may not use this file except in compliance with the License.
|
|
3380
|
-
* You may obtain a copy of the License at
|
|
3381
|
-
*
|
|
3382
|
-
* http://www.apache.org/licenses/LICENSE-2.0
|
|
3383
|
-
*
|
|
3384
|
-
* Unless required by applicable law or agreed to in writing, software
|
|
3385
|
-
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
3386
|
-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
3387
|
-
* See the License for the specific language governing permissions and
|
|
3388
|
-
* limitations under the License.
|
|
3389
|
-
*/
|
|
3390
|
-
|
|
3391
|
-
/*
|
|
3392
|
-
* Copyright (C) 2015 The Gravitee team (http://gravitee.io)
|
|
3393
|
-
*
|
|
3394
|
-
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
3395
|
-
* you may not use this file except in compliance with the License.
|
|
3396
|
-
* You may obtain a copy of the License at
|
|
3397
|
-
*
|
|
3398
|
-
* http://www.apache.org/licenses/LICENSE-2.0
|
|
3399
|
-
*
|
|
3400
|
-
* Unless required by applicable law or agreed to in writing, software
|
|
3401
|
-
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
3402
|
-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
3403
|
-
* See the License for the specific language governing permissions and
|
|
3404
|
-
* limitations under the License.
|
|
3405
|
-
*/
|
|
3406
|
-
var GioAvatarComponent = /** @class */ (function () {
|
|
3407
|
-
function GioAvatarComponent(hostEl) {
|
|
3408
|
-
this.hostEl = hostEl;
|
|
3409
|
-
this.imgSrc = null;
|
|
3410
|
-
this.name = '';
|
|
3411
|
-
this.roundedBorder = false;
|
|
3412
|
-
this.width = this.size;
|
|
3413
|
-
this.height = this.size;
|
|
3414
|
-
this.defaultSize = Math.min(Number(this.hostEl.nativeElement.offsetWidth), Number(this.hostEl.nativeElement.offsetHeight)) || 110;
|
|
3415
|
-
}
|
|
3416
|
-
Object.defineProperty(GioAvatarComponent.prototype, "src", {
|
|
3417
|
-
set: function (src) {
|
|
3418
|
-
this.imgSrc = src || null;
|
|
3419
|
-
},
|
|
3420
|
-
enumerable: false,
|
|
3421
|
-
configurable: true
|
|
3422
|
-
});
|
|
3423
|
-
GioAvatarComponent.prototype.ngOnChanges = function () {
|
|
3424
|
-
this.finalSize = this.size || this.defaultSize;
|
|
3425
|
-
};
|
|
3426
|
-
GioAvatarComponent.prototype.ngAfterViewInit = function () {
|
|
3427
|
-
if (this.imgSrc != null) {
|
|
3428
|
-
return;
|
|
3429
|
-
}
|
|
3430
|
-
if (this.avatarContainerEleRef) {
|
|
3431
|
-
this.avatarContainerEleRef.nativeElement.innerHTML = jdenticon.toSvg(this.name, this.finalSize, { backColor: '#FFF', padding: 0 });
|
|
3432
|
-
}
|
|
3433
|
-
};
|
|
3434
|
-
GioAvatarComponent.prototype.onImgError = function () {
|
|
3435
|
-
this.imgSrc = null;
|
|
3436
|
-
this.ngAfterViewInit();
|
|
3437
|
-
};
|
|
3438
|
-
return GioAvatarComponent;
|
|
3439
|
-
}());
|
|
3440
|
-
GioAvatarComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: GioAvatarComponent, deps: [{ token: i0__namespace.ElementRef }], target: i0__namespace.ɵɵFactoryTarget.Component });
|
|
3441
|
-
GioAvatarComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.15", type: GioAvatarComponent, selector: "gio-avatar", inputs: { src: "src", name: "name", size: "size", roundedBorder: "roundedBorder" }, host: { properties: { "style.width.px": "this.width", "style.height.px": "this.height" } }, viewQueries: [{ propertyName: "avatarContainerEleRef", first: true, predicate: ["avatarContainer"], descendants: true }], usesOnChanges: true, ngImport: i0__namespace, template: "<!--\n\n Copyright (C) 2015 The Gravitee team (http://gravitee.io)\n\n Licensed under the Apache License, Version 2.0 (the \"License\");\n you may not use this file except in compliance with the License.\n You may obtain a copy of the License at\n\n http://www.apache.org/licenses/LICENSE-2.0\n\n Unless required by applicable law or agreed to in writing, software\n distributed under the License is distributed on an \"AS IS\" BASIS,\n WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n See the License for the specific language governing permissions and\n limitations under the License.\n\n-->\n<div #avatarContainer class=\"gio-avatar\" [class.rounded]=\"roundedBorder\">\n <img *ngIf=\"imgSrc\" class=\"gio-avatar__img\" [src]=\"imgSrc\" alt=\"Avatar picture\" [width]=\"finalSize\" (error)=\"onImgError()\" />\n</div>\n", styles: [":host{position:relative;display:block}.rounded{border-radius:50%}.gio-avatar{width:100%;height:100%}.gio-avatar.rounded img{border-radius:50%;object-fit:cover}::ng-deep gio-avatar .gio-avatar.rounded svg{border-radius:50%}\n"], directives: [{ type: i2__namespace$1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }] });
|
|
3442
|
-
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: GioAvatarComponent, decorators: [{
|
|
3443
|
-
type: i0.Component,
|
|
3444
|
-
args: [{
|
|
3445
|
-
selector: 'gio-avatar',
|
|
3446
|
-
templateUrl: './gio-avatar.component.html',
|
|
3447
|
-
styleUrls: ['./gio-avatar.component.scss'],
|
|
3448
|
-
}]
|
|
3449
|
-
}], ctorParameters: function () { return [{ type: i0__namespace.ElementRef }]; }, propDecorators: { src: [{
|
|
3450
|
-
type: i0.Input
|
|
3451
|
-
}], name: [{
|
|
3452
|
-
type: i0.Input
|
|
3453
|
-
}], size: [{
|
|
3454
|
-
type: i0.Input
|
|
3455
|
-
}], roundedBorder: [{
|
|
3456
|
-
type: i0.Input
|
|
3457
|
-
}], avatarContainerEleRef: [{
|
|
3458
|
-
type: i0.ViewChild,
|
|
3459
|
-
args: ['avatarContainer']
|
|
3460
|
-
}], width: [{
|
|
3461
|
-
type: i0.HostBinding,
|
|
3462
|
-
args: ['style.width.px']
|
|
3463
|
-
}], height: [{
|
|
3464
|
-
type: i0.HostBinding,
|
|
3465
|
-
args: ['style.height.px']
|
|
3466
|
-
}] } });
|
|
3467
|
-
|
|
3468
|
-
/*
|
|
3469
|
-
* Copyright (C) 2015 The Gravitee team (http://gravitee.io)
|
|
3470
|
-
*
|
|
3471
|
-
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
3472
|
-
* you may not use this file except in compliance with the License.
|
|
3473
|
-
* You may obtain a copy of the License at
|
|
3474
|
-
*
|
|
3475
|
-
* http://www.apache.org/licenses/LICENSE-2.0
|
|
3476
|
-
*
|
|
3477
|
-
* Unless required by applicable law or agreed to in writing, software
|
|
3478
|
-
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
3479
|
-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
3480
|
-
* See the License for the specific language governing permissions and
|
|
3481
|
-
* limitations under the License.
|
|
3482
|
-
*/
|
|
3483
|
-
var GioAvatarModule = /** @class */ (function () {
|
|
3484
|
-
function GioAvatarModule() {
|
|
3485
|
-
}
|
|
3486
|
-
return GioAvatarModule;
|
|
3487
|
-
}());
|
|
3488
|
-
GioAvatarModule.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: GioAvatarModule, deps: [], target: i0__namespace.ɵɵFactoryTarget.NgModule });
|
|
3489
|
-
GioAvatarModule.ɵmod = i0__namespace.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: GioAvatarModule, declarations: [GioAvatarComponent], imports: [i2$1.CommonModule], exports: [GioAvatarComponent] });
|
|
3490
|
-
GioAvatarModule.ɵinj = i0__namespace.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: GioAvatarModule, imports: [[i2$1.CommonModule]] });
|
|
3491
|
-
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: GioAvatarModule, decorators: [{
|
|
3492
|
-
type: i0.NgModule,
|
|
3493
|
-
args: [{
|
|
3494
|
-
imports: [i2$1.CommonModule],
|
|
3495
|
-
declarations: [GioAvatarComponent],
|
|
3496
|
-
exports: [GioAvatarComponent],
|
|
3497
|
-
entryComponents: [GioAvatarComponent],
|
|
3498
|
-
}]
|
|
3499
|
-
}] });
|
|
3500
|
-
|
|
3501
|
-
/*
|
|
3502
|
-
* Copyright (C) 2015 The Gravitee team (http://gravitee.io)
|
|
3503
|
-
*
|
|
3504
|
-
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
3505
|
-
* you may not use this file except in compliance with the License.
|
|
3506
|
-
* You may obtain a copy of the License at
|
|
3507
|
-
*
|
|
3508
|
-
* http://www.apache.org/licenses/LICENSE-2.0
|
|
3509
|
-
*
|
|
3510
|
-
* Unless required by applicable law or agreed to in writing, software
|
|
3511
|
-
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
3512
|
-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
3513
|
-
* See the License for the specific language governing permissions and
|
|
3514
|
-
* limitations under the License.
|
|
3515
|
-
*/
|
|
3516
|
-
|
|
3517
|
-
/*
|
|
3518
|
-
* Copyright (C) 2022 The Gravitee team (http://gravitee.io)
|
|
3519
|
-
*
|
|
3520
|
-
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
3521
|
-
* you may not use this file except in compliance with the License.
|
|
3522
|
-
* You may obtain a copy of the License at
|
|
3523
|
-
*
|
|
3524
|
-
* http://www.apache.org/licenses/LICENSE-2.0
|
|
3525
|
-
*
|
|
3526
|
-
* Unless required by applicable law or agreed to in writing, software
|
|
3527
|
-
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
3528
|
-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
3529
|
-
* See the License for the specific language governing permissions and
|
|
3530
|
-
* limitations under the License.
|
|
3531
|
-
*/
|
|
3532
|
-
var GioBreadcrumbItemDirective = /** @class */ (function () {
|
|
3533
|
-
function GioBreadcrumbItemDirective(templateRef) {
|
|
3534
|
-
this.templateRef = templateRef;
|
|
3535
|
-
}
|
|
3536
|
-
return GioBreadcrumbItemDirective;
|
|
3537
|
-
}());
|
|
3538
|
-
GioBreadcrumbItemDirective.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: GioBreadcrumbItemDirective, deps: [{ token: i0__namespace.TemplateRef }], target: i0__namespace.ɵɵFactoryTarget.Directive });
|
|
3539
|
-
GioBreadcrumbItemDirective.ɵdir = i0__namespace.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "12.2.15", type: GioBreadcrumbItemDirective, selector: "[gioBreadcrumbItem]", ngImport: i0__namespace });
|
|
3540
|
-
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: GioBreadcrumbItemDirective, decorators: [{
|
|
3541
|
-
type: i0.Directive,
|
|
3542
|
-
args: [{
|
|
3543
|
-
selector: '[gioBreadcrumbItem]',
|
|
3544
|
-
}]
|
|
3545
|
-
}], ctorParameters: function () { return [{ type: i0__namespace.TemplateRef }]; } });
|
|
3546
|
-
|
|
3547
|
-
/*
|
|
3548
|
-
* Copyright (C) 2022 The Gravitee team (http://gravitee.io)
|
|
3549
|
-
*
|
|
3550
|
-
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
3551
|
-
* you may not use this file except in compliance with the License.
|
|
3552
|
-
* You may obtain a copy of the License at
|
|
3553
|
-
*
|
|
3554
|
-
* http://www.apache.org/licenses/LICENSE-2.0
|
|
3555
|
-
*
|
|
3556
|
-
* Unless required by applicable law or agreed to in writing, software
|
|
3557
|
-
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
3558
|
-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
3559
|
-
* See the License for the specific language governing permissions and
|
|
3560
|
-
* limitations under the License.
|
|
3561
|
-
*/
|
|
3562
|
-
var GioBreadcrumbComponent = /** @class */ (function () {
|
|
3563
|
-
function GioBreadcrumbComponent() {
|
|
3564
|
-
}
|
|
3565
|
-
return GioBreadcrumbComponent;
|
|
3566
|
-
}());
|
|
3567
|
-
GioBreadcrumbComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: GioBreadcrumbComponent, deps: [], target: i0__namespace.ɵɵFactoryTarget.Component });
|
|
3568
|
-
GioBreadcrumbComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.15", type: GioBreadcrumbComponent, selector: "gio-breadcrumb", queries: [{ propertyName: "itemDirectives", predicate: GioBreadcrumbItemDirective }], ngImport: i0__namespace, template: "<!--\n\n Copyright (C) 2022 The Gravitee team (http://gravitee.io)\n\n Licensed under the Apache License, Version 2.0 (the \"License\");\n you may not use this file except in compliance with the License.\n You may obtain a copy of the License at\n\n http://www.apache.org/licenses/LICENSE-2.0\n\n Unless required by applicable law or agreed to in writing, software\n distributed under the License is distributed on an \"AS IS\" BASIS,\n WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n See the License for the specific language governing permissions and\n limitations under the License.\n\n-->\n<div class=\"gio-breadcrumb\">\n <ng-container *ngFor=\"let item of itemDirectives; let first = first\">\n <mat-icon *ngIf=\"!first\" svgIcon=\"gio:nav-arrow-right\" class=\"gio-breadcrumb__icon\"></mat-icon>\n <ng-container *ngTemplateOutlet=\"item.templateRef\"></ng-container>\n </ng-container>\n</div>\n", styles: [".gio-breadcrumb{display:flex;flex-flow:wrap;align-items:center;margin:2px}.gio-breadcrumb__content{display:flex;align-items:center;color:#606274}.gio-breadcrumb__content:last-child{font-weight:bold}.gio-breadcrumb__icon{width:12px;height:12px;margin:0 6px;color:#bbbcc4;line-height:12px}\n"], components: [{ type: i1__namespace$1.MatIcon, selector: "mat-icon", inputs: ["color", "inline", "svgIcon", "fontSet", "fontIcon"], exportAs: ["matIcon"] }], directives: [{ type: i2__namespace$1.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { type: i2__namespace$1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i2__namespace$1.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet"] }] });
|
|
3569
|
-
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: GioBreadcrumbComponent, decorators: [{
|
|
3570
|
-
type: i0.Component,
|
|
3571
|
-
args: [{
|
|
3572
|
-
selector: 'gio-breadcrumb',
|
|
3573
|
-
templateUrl: './gio-breadcrumb.component.html',
|
|
3574
|
-
styleUrls: ['./gio-breadcrumb.component.scss'],
|
|
3575
|
-
}]
|
|
3576
|
-
}], propDecorators: { itemDirectives: [{
|
|
3577
|
-
type: i0.ContentChildren,
|
|
3578
|
-
args: [GioBreadcrumbItemDirective]
|
|
3579
|
-
}] } });
|
|
3580
|
-
|
|
3581
|
-
/*
|
|
3582
|
-
* Copyright (C) 2015 The Gravitee team (http://gravitee.io)
|
|
3583
|
-
*
|
|
3584
|
-
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
3585
|
-
* you may not use this file except in compliance with the License.
|
|
3586
|
-
* You may obtain a copy of the License at
|
|
3587
|
-
*
|
|
3588
|
-
* http://www.apache.org/licenses/LICENSE-2.0
|
|
3589
|
-
*
|
|
3590
|
-
* Unless required by applicable law or agreed to in writing, software
|
|
3591
|
-
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
3592
|
-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
3593
|
-
* See the License for the specific language governing permissions and
|
|
3594
|
-
* limitations under the License.
|
|
3595
|
-
*/
|
|
3596
|
-
var GioBreadcrumbModule = /** @class */ (function () {
|
|
3597
|
-
function GioBreadcrumbModule() {
|
|
3598
|
-
}
|
|
3599
|
-
return GioBreadcrumbModule;
|
|
3600
|
-
}());
|
|
3601
|
-
GioBreadcrumbModule.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: GioBreadcrumbModule, deps: [], target: i0__namespace.ɵɵFactoryTarget.NgModule });
|
|
3602
|
-
GioBreadcrumbModule.ɵmod = i0__namespace.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: GioBreadcrumbModule, declarations: [GioBreadcrumbComponent, GioBreadcrumbItemDirective], imports: [i2$1.CommonModule, GioIconsModule], exports: [GioBreadcrumbComponent, GioBreadcrumbItemDirective] });
|
|
3603
|
-
GioBreadcrumbModule.ɵinj = i0__namespace.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: GioBreadcrumbModule, imports: [[i2$1.CommonModule, GioIconsModule]] });
|
|
3604
|
-
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: GioBreadcrumbModule, decorators: [{
|
|
3605
|
-
type: i0.NgModule,
|
|
3606
|
-
args: [{
|
|
3607
|
-
imports: [i2$1.CommonModule, GioIconsModule],
|
|
3608
|
-
declarations: [GioBreadcrumbComponent, GioBreadcrumbItemDirective],
|
|
3609
|
-
exports: [GioBreadcrumbComponent, GioBreadcrumbItemDirective],
|
|
3610
|
-
entryComponents: [GioBreadcrumbComponent],
|
|
3611
|
-
}]
|
|
3612
|
-
}] });
|
|
3613
|
-
|
|
3614
|
-
/*
|
|
3615
|
-
* Copyright (C) 2015 The Gravitee team (http://gravitee.io)
|
|
3616
|
-
*
|
|
3617
|
-
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
3618
|
-
* you may not use this file except in compliance with the License.
|
|
3619
|
-
* You may obtain a copy of the License at
|
|
3620
|
-
*
|
|
3621
|
-
* http://www.apache.org/licenses/LICENSE-2.0
|
|
3622
|
-
*
|
|
3623
|
-
* Unless required by applicable law or agreed to in writing, software
|
|
3624
|
-
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
3625
|
-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
3626
|
-
* See the License for the specific language governing permissions and
|
|
3627
|
-
* limitations under the License.
|
|
3628
|
-
*/
|
|
3629
|
-
|
|
3630
|
-
/*
|
|
3631
|
-
* Copyright (C) 2021 The Gravitee team (http://gravitee.io)
|
|
3632
|
-
*
|
|
3633
|
-
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
3634
|
-
* you may not use this file except in compliance with the License.
|
|
3635
|
-
* You may obtain a copy of the License at
|
|
3636
|
-
*
|
|
3637
|
-
* http://www.apache.org/licenses/LICENSE-2.0
|
|
3638
|
-
*
|
|
3639
|
-
* Unless required by applicable law or agreed to in writing, software
|
|
3640
|
-
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
3641
|
-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
3642
|
-
* See the License for the specific language governing permissions and
|
|
3643
|
-
* limitations under the License.
|
|
3644
|
-
*/
|
|
3645
|
-
|
|
3646
|
-
/*
|
|
3647
|
-
* Copyright (C) 2021 The Gravitee team (http://gravitee.io)
|
|
3648
|
-
*
|
|
3649
|
-
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
3650
|
-
* you may not use this file except in compliance with the License.
|
|
3651
|
-
* You may obtain a copy of the License at
|
|
3652
|
-
*
|
|
3653
|
-
* http://www.apache.org/licenses/LICENSE-2.0
|
|
3654
|
-
*
|
|
3655
|
-
* Unless required by applicable law or agreed to in writing, software
|
|
3656
|
-
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
3657
|
-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
3658
|
-
* See the License for the specific language governing permissions and
|
|
3659
|
-
* limitations under the License.
|
|
3660
|
-
*/
|
|
3661
|
-
|
|
3662
|
-
/**
|
|
3663
|
-
* Generated bundle index. Do not edit.
|
|
3664
|
-
*/
|
|
3665
|
-
|
|
3666
|
-
exports.GioAvatarComponent = GioAvatarComponent;
|
|
3667
|
-
exports.GioAvatarModule = GioAvatarModule;
|
|
3668
|
-
exports.GioBannerActionDirective = GioBannerActionDirective;
|
|
3669
|
-
exports.GioBannerBodyDirective = GioBannerBodyDirective;
|
|
3670
|
-
exports.GioBannerComponent = GioBannerComponent;
|
|
3671
|
-
exports.GioBannerErrorComponent = GioBannerErrorComponent;
|
|
3672
|
-
exports.GioBannerInfoComponent = GioBannerInfoComponent;
|
|
3673
|
-
exports.GioBannerModule = GioBannerModule;
|
|
3674
|
-
exports.GioBannerSuccessComponent = GioBannerSuccessComponent;
|
|
3675
|
-
exports.GioBannerWarningComponent = GioBannerWarningComponent;
|
|
3676
|
-
exports.GioBreadcrumbComponent = GioBreadcrumbComponent;
|
|
3677
|
-
exports.GioBreadcrumbItemDirective = GioBreadcrumbItemDirective;
|
|
3678
|
-
exports.GioBreadcrumbModule = GioBreadcrumbModule;
|
|
3679
|
-
exports.GioConfirmAndValidateDialogComponent = GioConfirmAndValidateDialogComponent;
|
|
3680
|
-
exports.GioConfirmAndValidateDialogHarness = GioConfirmAndValidateDialogHarness;
|
|
3681
|
-
exports.GioConfirmAndValidateDialogModule = GioConfirmAndValidateDialogModule;
|
|
3682
|
-
exports.GioConfirmDialogComponent = GioConfirmDialogComponent;
|
|
3683
|
-
exports.GioConfirmDialogHarness = GioConfirmDialogHarness;
|
|
3684
|
-
exports.GioConfirmDialogModule = GioConfirmDialogModule;
|
|
3685
|
-
exports.GioFormFilePickerAddButtonComponent = GioFormFilePickerAddButtonComponent;
|
|
3686
|
-
exports.GioFormFilePickerComponent = GioFormFilePickerComponent;
|
|
3687
|
-
exports.GioFormFilePickerEmptyComponent = GioFormFilePickerEmptyComponent;
|
|
3688
|
-
exports.GioFormFilePickerInputHarness = GioFormFilePickerInputHarness;
|
|
3689
|
-
exports.GioFormFilePickerLabelComponent = GioFormFilePickerLabelComponent;
|
|
3690
|
-
exports.GioFormFilePickerModule = GioFormFilePickerModule;
|
|
3691
|
-
exports.GioFormHeadersComponent = GioFormHeadersComponent;
|
|
3692
|
-
exports.GioFormHeadersHarness = GioFormHeadersHarness;
|
|
3693
|
-
exports.GioFormHeadersModule = GioFormHeadersModule;
|
|
3694
|
-
exports.GioFormTagsInputComponent = GioFormTagsInputComponent;
|
|
3695
|
-
exports.GioFormTagsInputHarness = GioFormTagsInputHarness;
|
|
3696
|
-
exports.GioFormTagsInputModule = GioFormTagsInputModule;
|
|
3697
|
-
exports.GioIconsModule = GioIconsModule;
|
|
3698
|
-
exports.GioMenuComponent = GioMenuComponent;
|
|
3699
|
-
exports.GioMenuFooterComponent = GioMenuFooterComponent;
|
|
3700
|
-
exports.GioMenuHeaderComponent = GioMenuHeaderComponent;
|
|
3701
|
-
exports.GioMenuItemComponent = GioMenuItemComponent;
|
|
3702
|
-
exports.GioMenuListComponent = GioMenuListComponent;
|
|
3703
|
-
exports.GioMenuModule = GioMenuModule;
|
|
3704
|
-
exports.GioMenuSelectorComponent = GioMenuSelectorComponent;
|
|
3705
|
-
exports.GioMenuSelectorHarness = GioMenuSelectorHarness;
|
|
3706
|
-
exports.GioMenuService = GioMenuService;
|
|
3707
|
-
exports.GioSaveBarComponent = GioSaveBarComponent;
|
|
3708
|
-
exports.GioSaveBarHarness = GioSaveBarHarness;
|
|
3709
|
-
exports.GioSaveBarModule = GioSaveBarModule;
|
|
3710
|
-
exports.GioSubmenuComponent = GioSubmenuComponent;
|
|
3711
|
-
exports.GioSubmenuGroupComponent = GioSubmenuGroupComponent;
|
|
3712
|
-
exports.GioSubmenuItemComponent = GioSubmenuItemComponent;
|
|
3713
|
-
exports.GioSubmenuModule = GioSubmenuModule;
|
|
3714
|
-
exports.GioSubmenuTitleDirective = GioSubmenuTitleDirective;
|
|
3715
|
-
exports.GioTopBarComponent = GioTopBarComponent;
|
|
3716
|
-
exports.GioTopBarContentComponent = GioTopBarContentComponent;
|
|
3717
|
-
exports.GioTopBarLinkComponent = GioTopBarLinkComponent;
|
|
3718
|
-
exports.GioTopBarLinkModule = GioTopBarLinkModule;
|
|
3719
|
-
exports.GioTopBarMenuComponent = GioTopBarMenuComponent;
|
|
3720
|
-
exports.GioTopBarMenuModule = GioTopBarMenuModule;
|
|
3721
|
-
exports.GioTopBarModule = GioTopBarModule;
|
|
3722
|
-
exports.NewFile = NewFile;
|
|
3723
|
-
|
|
3724
|
-
Object.defineProperty(exports, '__esModule', { value: true });
|
|
3725
|
-
|
|
3726
|
-
}));
|
|
3727
|
-
//# sourceMappingURL=gravitee-ui-particles-angular.umd.js.map
|