@apipass/containers 0.1.6-alpha.4
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/README.md +33 -0
- package/apipass-containers.d.ts +5 -0
- package/assets/css/buttons.scss +112 -0
- package/assets/css/colors.scss +31 -0
- package/assets/css/fonts.scss +24 -0
- package/assets/css/inputs.scss +197 -0
- package/assets/css/pt_sans.scss +144 -0
- package/assets/css/spacing.scss +28 -0
- package/assets/css/texts.scss +18 -0
- package/bundles/apipass-containers.umd.js +298 -0
- package/bundles/apipass-containers.umd.js.map +1 -0
- package/bundles/apipass-containers.umd.min.js +2 -0
- package/bundles/apipass-containers.umd.min.js.map +1 -0
- package/centralized-container/centralized-container.component.d.ts +13 -0
- package/configuration-page-content/configuration-page.component.d.ts +21 -0
- package/containers.module.d.ts +17 -0
- package/esm2015/apipass-containers.js +5 -0
- package/esm2015/centralized-container/centralized-container.component.js +80 -0
- package/esm2015/configuration-page-content/configuration-page.component.js +120 -0
- package/esm2015/containers.module.js +71 -0
- package/esm2015/public-api.js +5 -0
- package/fesm2015/apipass-containers.js +258 -0
- package/fesm2015/apipass-containers.js.map +1 -0
- package/package.json +29 -0
- package/public-api.d.ts +4 -0
|
@@ -0,0 +1,298 @@
|
|
|
1
|
+
(function (global, factory) {
|
|
2
|
+
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('@angular/core'), require('@angular/common'), require('@angular/router'), require('@ngx-translate/core'), require('@angular/forms'), require('ngx-scrollbar'), require('@angular/material/form-field'), require('@angular/material/input'), require('@angular/material/icon'), require('rxjs'), require('rxjs/operators'), require('@apipass/icons'), require('@apipass/buttons')) :
|
|
3
|
+
typeof define === 'function' && define.amd ? define('@apipass/containers', ['exports', '@angular/core', '@angular/common', '@angular/router', '@ngx-translate/core', '@angular/forms', 'ngx-scrollbar', '@angular/material/form-field', '@angular/material/input', '@angular/material/icon', 'rxjs', 'rxjs/operators', '@apipass/icons', '@apipass/buttons'], factory) :
|
|
4
|
+
(global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory((global.apipass = global.apipass || {}, global.apipass.containers = {}), global.ng.core, global.ng.common, global.ng.router, global.core, global.ng.forms, global.i2, global.ng.material.formField, global.ng.material.input, global.ng.material.icon, global.rxjs, global.rxjs.operators, global.icons, global.buttons));
|
|
5
|
+
}(this, (function (exports, i0, i1, router, core, i5, i2, i3, i4, i6, rxjs, operators, icons, buttons) { 'use strict';
|
|
6
|
+
|
|
7
|
+
function CentralizedContainerComponent_div_3_Template(rf, ctx) {
|
|
8
|
+
if (rf & 1) {
|
|
9
|
+
var _r2_1 = i0.ɵɵgetCurrentView();
|
|
10
|
+
i0.ɵɵelementStart(0, "div", 4);
|
|
11
|
+
i0.ɵɵelementStart(1, "mat-form-field");
|
|
12
|
+
i0.ɵɵelementStart(2, "input", 5);
|
|
13
|
+
i0.ɵɵlistener("ngModelChange", function CentralizedContainerComponent_div_3_Template_input_ngModelChange_2_listener($event) { i0.ɵɵrestoreView(_r2_1); var ctx_r1 = i0.ɵɵnextContext(); return ctx_r1.searchTerm = $event; })("ngModelChange", function CentralizedContainerComponent_div_3_Template_input_ngModelChange_2_listener() { i0.ɵɵrestoreView(_r2_1); var ctx_r3 = i0.ɵɵnextContext(); return ctx_r3.searchTermChanged(); });
|
|
14
|
+
i0.ɵɵelementEnd();
|
|
15
|
+
i0.ɵɵelementStart(3, "mat-icon", 6);
|
|
16
|
+
i0.ɵɵtext(4, "search");
|
|
17
|
+
i0.ɵɵelementEnd();
|
|
18
|
+
i0.ɵɵelementEnd();
|
|
19
|
+
i0.ɵɵelementEnd();
|
|
20
|
+
}
|
|
21
|
+
if (rf & 2) {
|
|
22
|
+
var ctx_r0 = i0.ɵɵnextContext();
|
|
23
|
+
i0.ɵɵadvance(2);
|
|
24
|
+
i0.ɵɵproperty("ngModel", ctx_r0.searchTerm);
|
|
25
|
+
}
|
|
26
|
+
}
|
|
27
|
+
var _c0 = function (a0) { return { "centralized-container-zoom": a0 }; };
|
|
28
|
+
var _c1 = ["*"];
|
|
29
|
+
var CentralizedContainerComponent = /** @class */ (function () {
|
|
30
|
+
function CentralizedContainerComponent() {
|
|
31
|
+
this.searchTerm = '';
|
|
32
|
+
this.hasSearch = true;
|
|
33
|
+
this.ignoreZoom = false;
|
|
34
|
+
this.searchChanged = new i0.EventEmitter();
|
|
35
|
+
}
|
|
36
|
+
CentralizedContainerComponent.prototype.searchTermChanged = function () {
|
|
37
|
+
this.searchChanged.emit(this.searchTerm);
|
|
38
|
+
};
|
|
39
|
+
return CentralizedContainerComponent;
|
|
40
|
+
}());
|
|
41
|
+
CentralizedContainerComponent.ɵfac = function CentralizedContainerComponent_Factory(t) { return new (t || CentralizedContainerComponent)(); };
|
|
42
|
+
CentralizedContainerComponent.ɵcmp = i0.ɵɵdefineComponent({ type: CentralizedContainerComponent, selectors: [["centralized-container"]], viewQuery: function CentralizedContainerComponent_Query(rf, ctx) {
|
|
43
|
+
if (rf & 1) {
|
|
44
|
+
i0.ɵɵstaticViewQuery(i2.NgScrollbar, true);
|
|
45
|
+
}
|
|
46
|
+
if (rf & 2) {
|
|
47
|
+
var _t;
|
|
48
|
+
i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.scrollbarRef = _t.first);
|
|
49
|
+
}
|
|
50
|
+
}, inputs: { hasSearch: "hasSearch", ignoreZoom: "ignoreZoom" }, outputs: { searchChanged: "searchChanged" }, ngContentSelectors: _c1, decls: 5, vars: 5, consts: [[1, "centralized-container", 3, "ngClass"], [3, "visibility"], [1, "list-content"], ["class", "list-search", 4, "ngIf"], [1, "list-search"], ["matInput", "", "type", "search", 3, "ngModel", "ngModelChange"], ["matSuffix", "", 1, "search-icon"]], template: function CentralizedContainerComponent_Template(rf, ctx) {
|
|
51
|
+
if (rf & 1) {
|
|
52
|
+
i0.ɵɵprojectionDef();
|
|
53
|
+
i0.ɵɵelementStart(0, "div", 0);
|
|
54
|
+
i0.ɵɵelementStart(1, "ng-scrollbar", 1);
|
|
55
|
+
i0.ɵɵelementStart(2, "div", 2);
|
|
56
|
+
i0.ɵɵtemplate(3, CentralizedContainerComponent_div_3_Template, 5, 1, "div", 3);
|
|
57
|
+
i0.ɵɵprojection(4);
|
|
58
|
+
i0.ɵɵelementEnd();
|
|
59
|
+
i0.ɵɵelementEnd();
|
|
60
|
+
i0.ɵɵelementEnd();
|
|
61
|
+
}
|
|
62
|
+
if (rf & 2) {
|
|
63
|
+
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(3, _c0, !ctx.ignoreZoom));
|
|
64
|
+
i0.ɵɵadvance(1);
|
|
65
|
+
i0.ɵɵproperty("visibility", "hover");
|
|
66
|
+
i0.ɵɵadvance(2);
|
|
67
|
+
i0.ɵɵproperty("ngIf", ctx.hasSearch);
|
|
68
|
+
}
|
|
69
|
+
}, directives: [i1.NgClass, i2.NgScrollbar, i1.NgIf, i3.MatFormField, i4.MatInput, i5.DefaultValueAccessor, i5.NgControlStatus, i5.NgModel, i6.MatIcon, i3.MatSuffix], styles: [".centralized-container[_ngcontent-%COMP%]{display:flex;height:calc(100% - 70px);padding-left:15px;padding-right:15px}.centralized-container.centralized-container-zoom[_ngcontent-%COMP%]{font-size:62.5%}.centralized-container[_ngcontent-%COMP%] > ng-scrollbar[_ngcontent-%COMP%]{width:100%}.centralized-container[_ngcontent-%COMP%] .list-content[_ngcontent-%COMP%]{box-sizing:border-box;display:flex;flex-direction:column;height:100%;padding:30px 25px 25px}.centralized-container[_ngcontent-%COMP%] .list-content[_ngcontent-%COMP%] .list-search[_ngcontent-%COMP%]{font-size:1.4em;place-self:flex-end;position:absolute;width:21%}.centralized-container[_ngcontent-%COMP%] .list-content[_ngcontent-%COMP%] .list-search[_ngcontent-%COMP%] mat-form-field[_ngcontent-%COMP%]{width:100%}.centralized-container[_ngcontent-%COMP%] .list-content[_ngcontent-%COMP%] .list-search[_ngcontent-%COMP%] mat-form-field[_ngcontent-%COMP%] .search-icon[_ngcontent-%COMP%]{font-size:1.8rem;opacity:.5}[_nghost-%COMP%] .list-search mat-form-field.mat-form-field-appearance-legacy .mat-form-field-wrapper .mat-form-field-underline{background-color:var(--color-tertiary)}"] });
|
|
70
|
+
/*@__PURE__*/ (function () {
|
|
71
|
+
i0.ɵsetClassMetadata(CentralizedContainerComponent, [{
|
|
72
|
+
type: i0.Component,
|
|
73
|
+
args: [{
|
|
74
|
+
selector: 'centralized-container',
|
|
75
|
+
templateUrl: 'centralized-container.component.html',
|
|
76
|
+
styleUrls: ['centralized-container.component.scss']
|
|
77
|
+
}]
|
|
78
|
+
}], null, { hasSearch: [{
|
|
79
|
+
type: i0.Input
|
|
80
|
+
}], ignoreZoom: [{
|
|
81
|
+
type: i0.Input
|
|
82
|
+
}], searchChanged: [{
|
|
83
|
+
type: i0.Output
|
|
84
|
+
}], scrollbarRef: [{
|
|
85
|
+
type: i0.ViewChild,
|
|
86
|
+
args: [i2.NgScrollbar, { static: true }]
|
|
87
|
+
}] });
|
|
88
|
+
})();
|
|
89
|
+
|
|
90
|
+
function ConfigurationPageComponent_div_3_mat_label_2_Template(rf, ctx) {
|
|
91
|
+
if (rf & 1) {
|
|
92
|
+
i0.ɵɵelementStart(0, "mat-label");
|
|
93
|
+
i0.ɵɵtext(1);
|
|
94
|
+
i0.ɵɵelementEnd();
|
|
95
|
+
}
|
|
96
|
+
if (rf & 2) {
|
|
97
|
+
var ctx_r1 = i0.ɵɵnextContext(2);
|
|
98
|
+
i0.ɵɵadvance(1);
|
|
99
|
+
i0.ɵɵtextInterpolate(ctx_r1.searchLabel);
|
|
100
|
+
}
|
|
101
|
+
}
|
|
102
|
+
var _c0$1 = function (a0) { return { "label-input": a0 }; };
|
|
103
|
+
function ConfigurationPageComponent_div_3_Template(rf, ctx) {
|
|
104
|
+
if (rf & 1) {
|
|
105
|
+
var _r3_1 = i0.ɵɵgetCurrentView();
|
|
106
|
+
i0.ɵɵelementStart(0, "div", 5);
|
|
107
|
+
i0.ɵɵelementStart(1, "mat-form-field", 6);
|
|
108
|
+
i0.ɵɵtemplate(2, ConfigurationPageComponent_div_3_mat_label_2_Template, 2, 1, "mat-label", 7);
|
|
109
|
+
i0.ɵɵelementStart(3, "input", 8);
|
|
110
|
+
i0.ɵɵlistener("ngModelChange", function ConfigurationPageComponent_div_3_Template_input_ngModelChange_3_listener($event) { i0.ɵɵrestoreView(_r3_1); var ctx_r2 = i0.ɵɵnextContext(); return ctx_r2.searchTerm = $event; })("ngModelChange", function ConfigurationPageComponent_div_3_Template_input_ngModelChange_3_listener() { i0.ɵɵrestoreView(_r3_1); var ctx_r4 = i0.ɵɵnextContext(); return ctx_r4.searchTermChanged(); });
|
|
111
|
+
i0.ɵɵelementEnd();
|
|
112
|
+
i0.ɵɵelementStart(4, "mat-icon", 9);
|
|
113
|
+
i0.ɵɵlistener("click", function ConfigurationPageComponent_div_3_Template_mat_icon_click_4_listener() { i0.ɵɵrestoreView(_r3_1); var ctx_r5 = i0.ɵɵnextContext(); return ctx_r5.searchIconClick(); });
|
|
114
|
+
i0.ɵɵtext(5, "search");
|
|
115
|
+
i0.ɵɵelementEnd();
|
|
116
|
+
i0.ɵɵelementEnd();
|
|
117
|
+
i0.ɵɵelementEnd();
|
|
118
|
+
}
|
|
119
|
+
if (rf & 2) {
|
|
120
|
+
var ctx_r0 = i0.ɵɵnextContext();
|
|
121
|
+
i0.ɵɵadvance(1);
|
|
122
|
+
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(3, _c0$1, ctx_r0.searchLabel));
|
|
123
|
+
i0.ɵɵadvance(1);
|
|
124
|
+
i0.ɵɵproperty("ngIf", ctx_r0.searchLabel);
|
|
125
|
+
i0.ɵɵadvance(1);
|
|
126
|
+
i0.ɵɵproperty("ngModel", ctx_r0.searchTerm);
|
|
127
|
+
}
|
|
128
|
+
}
|
|
129
|
+
var _c1$1 = function (a0) { return { "footer-paginator": a0 }; };
|
|
130
|
+
var _c2 = function (a0) { return { "vertical-separate": a0 }; };
|
|
131
|
+
var _c3 = ["*"];
|
|
132
|
+
var ConfigurationPageComponent = /** @class */ (function () {
|
|
133
|
+
function ConfigurationPageComponent() {
|
|
134
|
+
var _this = this;
|
|
135
|
+
this.searchTerm = '';
|
|
136
|
+
this.verticalSeparate = false;
|
|
137
|
+
this.footerPaginator = false;
|
|
138
|
+
this.hasSearch = true;
|
|
139
|
+
this.searchDebounceTime = 1000;
|
|
140
|
+
this.searchLabel = '';
|
|
141
|
+
this.txtQueryChanged = new rxjs.Subject();
|
|
142
|
+
this.searchChanged = new i0.EventEmitter();
|
|
143
|
+
this.searchClick = new i0.EventEmitter();
|
|
144
|
+
this.txtQueryChanged.pipe(operators.debounceTime(this.searchDebounceTime), operators.distinctUntilChanged()).subscribe(function (model) { return _this.searchChanged.next(model); });
|
|
145
|
+
}
|
|
146
|
+
ConfigurationPageComponent.prototype.searchTermChanged = function () {
|
|
147
|
+
this.txtQueryChanged.next(this.searchTerm);
|
|
148
|
+
};
|
|
149
|
+
ConfigurationPageComponent.prototype.searchIconClick = function () {
|
|
150
|
+
this.searchClick.next(this.searchTerm);
|
|
151
|
+
};
|
|
152
|
+
return ConfigurationPageComponent;
|
|
153
|
+
}());
|
|
154
|
+
ConfigurationPageComponent.ɵfac = function ConfigurationPageComponent_Factory(t) { return new (t || ConfigurationPageComponent)(); };
|
|
155
|
+
ConfigurationPageComponent.ɵcmp = i0.ɵɵdefineComponent({ type: ConfigurationPageComponent, selectors: [["configuration-page-container"]], viewQuery: function ConfigurationPageComponent_Query(rf, ctx) {
|
|
156
|
+
if (rf & 1) {
|
|
157
|
+
i0.ɵɵstaticViewQuery(i2.NgScrollbar, true);
|
|
158
|
+
}
|
|
159
|
+
if (rf & 2) {
|
|
160
|
+
var _t;
|
|
161
|
+
i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.scrollbarRef = _t.first);
|
|
162
|
+
}
|
|
163
|
+
}, inputs: { verticalSeparate: "verticalSeparate", footerPaginator: "footerPaginator", hasSearch: "hasSearch", searchDebounceTime: "searchDebounceTime", searchLabel: "searchLabel" }, outputs: { searchChanged: "searchChanged", searchClick: "searchClick" }, ngContentSelectors: _c3, decls: 6, vars: 8, consts: [[1, "configuration-page-container", 3, "ngClass"], [3, "visibility"], [1, "list-content"], ["class", "list-search", 4, "ngIf"], [1, "container-content", 3, "ngClass"], [1, "list-search"], ["appearance", "fill", 1, "apipass-search-input-text", "search-input-item", "small-text", 3, "ngClass"], [4, "ngIf"], ["matInput", "", "type", "search", 1, "search-input", 3, "ngModel", "ngModelChange"], ["matSuffix", "", 1, "search-icon", 3, "click"]], template: function ConfigurationPageComponent_Template(rf, ctx) {
|
|
164
|
+
if (rf & 1) {
|
|
165
|
+
i0.ɵɵprojectionDef();
|
|
166
|
+
i0.ɵɵelementStart(0, "div", 0);
|
|
167
|
+
i0.ɵɵelementStart(1, "ng-scrollbar", 1);
|
|
168
|
+
i0.ɵɵelementStart(2, "div", 2);
|
|
169
|
+
i0.ɵɵtemplate(3, ConfigurationPageComponent_div_3_Template, 6, 5, "div", 3);
|
|
170
|
+
i0.ɵɵelementStart(4, "div", 4);
|
|
171
|
+
i0.ɵɵprojection(5);
|
|
172
|
+
i0.ɵɵelementEnd();
|
|
173
|
+
i0.ɵɵelementEnd();
|
|
174
|
+
i0.ɵɵelementEnd();
|
|
175
|
+
i0.ɵɵelementEnd();
|
|
176
|
+
}
|
|
177
|
+
if (rf & 2) {
|
|
178
|
+
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(4, _c1$1, ctx.footerPaginator));
|
|
179
|
+
i0.ɵɵadvance(1);
|
|
180
|
+
i0.ɵɵproperty("visibility", "hover");
|
|
181
|
+
i0.ɵɵadvance(2);
|
|
182
|
+
i0.ɵɵproperty("ngIf", ctx.hasSearch);
|
|
183
|
+
i0.ɵɵadvance(1);
|
|
184
|
+
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(6, _c2, ctx.verticalSeparate));
|
|
185
|
+
}
|
|
186
|
+
}, directives: [i1.NgClass, i2.NgScrollbar, i1.NgIf, i3.MatFormField, i4.MatInput, i5.DefaultValueAccessor, i5.NgControlStatus, i5.NgModel, i6.MatIcon, i3.MatSuffix, i3.MatLabel], styles: ["[_ngcontent-%COMP%]:root{--color-body-light:#fff;--color-fonts-tertiary:#777;--color-inputs-background:#fff;--color-inputs-border:#ddd;--color-primary:#222d57;--color-primary-active:#29376a;--color-primary-hover:#18203d;--color-red:red;--color-secondary:#d3d921;--color-secondary-active:#dce13f;--color-secondary-hover:#b3b81c;--color-tertiary:#efefef;--color-tertiary-active:#f1f1f1;--color-tertiary-hover:#cbcbcb;--color_components_light:#fff;--color_disabled:#e0e0e0;--color_graph_error:#eb5757;--color_graph_error_hover:#c91717;--color_graph_primary:#1643ef;--color_graph_primary_hover:#0a2692;--color_icon_remove:var(--color-red);--color_icon_success:#070;--limit-plan-color:#ff6c00}.configuration-page-container[_ngcontent-%COMP%]{border:1px solid var(--color-tertiary);display:flex;height:100%}.configuration-page-container.footer-paginator[_ngcontent-%COMP%]{height:calc(100% - 50px)}.configuration-page-container[_ngcontent-%COMP%] ng-scrollbar[_ngcontent-%COMP%]{width:100%}.configuration-page-container[_ngcontent-%COMP%] ng-scrollbar[_ngcontent-%COMP%] .ng-scroll-content[_ngcontent-%COMP%]{height:100%}.configuration-page-container[_ngcontent-%COMP%] ng-scrollbar[_ngcontent-%COMP%] .list-content[_ngcontent-%COMP%]{box-sizing:border-box;display:flex;flex-direction:column;height:100%;width:100%}.configuration-page-container[_ngcontent-%COMP%] ng-scrollbar[_ngcontent-%COMP%] .list-content[_ngcontent-%COMP%] .list-search[_ngcontent-%COMP%]{padding-right:15px;padding-top:15px;place-self:flex-end;width:30%}.configuration-page-container[_ngcontent-%COMP%] ng-scrollbar[_ngcontent-%COMP%] .list-content[_ngcontent-%COMP%] .list-search[_ngcontent-%COMP%] mat-form-field[_ngcontent-%COMP%]{width:100%}.configuration-page-container[_ngcontent-%COMP%] ng-scrollbar[_ngcontent-%COMP%] .list-content[_ngcontent-%COMP%] .list-search[_ngcontent-%COMP%] mat-form-field[_ngcontent-%COMP%] .search-icon[_ngcontent-%COMP%]{cursor:pointer;font-size:1.8rem;opacity:.5}.configuration-page-container[_ngcontent-%COMP%] .container-content[_ngcontent-%COMP%]{height:100%;width:100%}.configuration-page-container[_ngcontent-%COMP%] .container-content.vertical-separate[_ngcontent-%COMP%]{display:flex;flex-direction:column;justify-content:space-between}"] });
|
|
187
|
+
/*@__PURE__*/ (function () {
|
|
188
|
+
i0.ɵsetClassMetadata(ConfigurationPageComponent, [{
|
|
189
|
+
type: i0.Component,
|
|
190
|
+
args: [{
|
|
191
|
+
selector: 'configuration-page-container',
|
|
192
|
+
templateUrl: 'configuration-page.component.html',
|
|
193
|
+
styleUrls: ['configuration-page.component.scss']
|
|
194
|
+
}]
|
|
195
|
+
}], function () { return []; }, { verticalSeparate: [{
|
|
196
|
+
type: i0.Input
|
|
197
|
+
}], footerPaginator: [{
|
|
198
|
+
type: i0.Input
|
|
199
|
+
}], hasSearch: [{
|
|
200
|
+
type: i0.Input
|
|
201
|
+
}], searchDebounceTime: [{
|
|
202
|
+
type: i0.Input
|
|
203
|
+
}], searchLabel: [{
|
|
204
|
+
type: i0.Input
|
|
205
|
+
}], searchChanged: [{
|
|
206
|
+
type: i0.Output
|
|
207
|
+
}], searchClick: [{
|
|
208
|
+
type: i0.Output
|
|
209
|
+
}], scrollbarRef: [{
|
|
210
|
+
type: i0.ViewChild,
|
|
211
|
+
args: [i2.NgScrollbar, { static: true }]
|
|
212
|
+
}] });
|
|
213
|
+
})();
|
|
214
|
+
|
|
215
|
+
var ContainersModule = /** @class */ (function () {
|
|
216
|
+
function ContainersModule() {
|
|
217
|
+
}
|
|
218
|
+
return ContainersModule;
|
|
219
|
+
}());
|
|
220
|
+
ContainersModule.ɵmod = i0.ɵɵdefineNgModule({ type: ContainersModule });
|
|
221
|
+
ContainersModule.ɵinj = i0.ɵɵdefineInjector({ factory: function ContainersModule_Factory(t) { return new (t || ContainersModule)(); }, providers: [], imports: [[
|
|
222
|
+
i1.CommonModule,
|
|
223
|
+
router.RouterModule,
|
|
224
|
+
core.TranslateModule,
|
|
225
|
+
i5.FormsModule,
|
|
226
|
+
i5.ReactiveFormsModule,
|
|
227
|
+
icons.IconsModule,
|
|
228
|
+
buttons.ButtonsModule,
|
|
229
|
+
i2.NgScrollbarModule,
|
|
230
|
+
i3.MatFormFieldModule,
|
|
231
|
+
i6.MatIconModule,
|
|
232
|
+
i4.MatInputModule
|
|
233
|
+
]] });
|
|
234
|
+
(function () {
|
|
235
|
+
(typeof ngJitMode === "undefined" || ngJitMode) && i0.ɵɵsetNgModuleScope(ContainersModule, { declarations: [CentralizedContainerComponent,
|
|
236
|
+
ConfigurationPageComponent], imports: [i1.CommonModule,
|
|
237
|
+
router.RouterModule,
|
|
238
|
+
core.TranslateModule,
|
|
239
|
+
i5.FormsModule,
|
|
240
|
+
i5.ReactiveFormsModule,
|
|
241
|
+
icons.IconsModule,
|
|
242
|
+
buttons.ButtonsModule,
|
|
243
|
+
i2.NgScrollbarModule,
|
|
244
|
+
i3.MatFormFieldModule,
|
|
245
|
+
i6.MatIconModule,
|
|
246
|
+
i4.MatInputModule], exports: [CentralizedContainerComponent,
|
|
247
|
+
ConfigurationPageComponent] });
|
|
248
|
+
})();
|
|
249
|
+
/*@__PURE__*/ (function () {
|
|
250
|
+
i0.ɵsetClassMetadata(ContainersModule, [{
|
|
251
|
+
type: i0.NgModule,
|
|
252
|
+
args: [{
|
|
253
|
+
imports: [
|
|
254
|
+
i1.CommonModule,
|
|
255
|
+
router.RouterModule,
|
|
256
|
+
core.TranslateModule,
|
|
257
|
+
i5.FormsModule,
|
|
258
|
+
i5.ReactiveFormsModule,
|
|
259
|
+
icons.IconsModule,
|
|
260
|
+
buttons.ButtonsModule,
|
|
261
|
+
i2.NgScrollbarModule,
|
|
262
|
+
i3.MatFormFieldModule,
|
|
263
|
+
i6.MatIconModule,
|
|
264
|
+
i4.MatInputModule
|
|
265
|
+
],
|
|
266
|
+
declarations: [
|
|
267
|
+
CentralizedContainerComponent,
|
|
268
|
+
ConfigurationPageComponent
|
|
269
|
+
],
|
|
270
|
+
exports: [
|
|
271
|
+
CentralizedContainerComponent,
|
|
272
|
+
ConfigurationPageComponent
|
|
273
|
+
],
|
|
274
|
+
providers: []
|
|
275
|
+
}]
|
|
276
|
+
}], null, null);
|
|
277
|
+
})();
|
|
278
|
+
|
|
279
|
+
/**
|
|
280
|
+
* Generated bundle index. Do not edit.
|
|
281
|
+
*/
|
|
282
|
+
|
|
283
|
+
Object.keys(i2).forEach(function (k) {
|
|
284
|
+
if (k !== 'default') Object.defineProperty(exports, k, {
|
|
285
|
+
enumerable: true,
|
|
286
|
+
get: function () {
|
|
287
|
+
return i2[k];
|
|
288
|
+
}
|
|
289
|
+
});
|
|
290
|
+
});
|
|
291
|
+
exports.CentralizedContainerComponent = CentralizedContainerComponent;
|
|
292
|
+
exports.ConfigurationPageComponent = ConfigurationPageComponent;
|
|
293
|
+
exports.ContainersModule = ContainersModule;
|
|
294
|
+
|
|
295
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
296
|
+
|
|
297
|
+
})));
|
|
298
|
+
//# sourceMappingURL=apipass-containers.umd.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"apipass-containers.umd.js","sources":["../../../projects/containers/src/centralized-container/centralized-container.component.html","../../../projects/containers/src/centralized-container/centralized-container.component.ts","../../../projects/containers/src/configuration-page-content/configuration-page.component.html","../../../projects/containers/src/configuration-page-content/configuration-page.component.ts","../../../projects/containers/src/containers.module.ts","../../../projects/containers/src/apipass-containers.ts"],"sourcesContent":["<div class=\"centralized-container\" [ngClass]=\"{'centralized-container-zoom': !ignoreZoom}\">\n <ng-scrollbar [visibility]=\"'hover'\">\n <div class=\"list-content\">\n <div class=\"list-search\" *ngIf=\"hasSearch\">\n <mat-form-field>\n <input matInput type=\"search\" [(ngModel)]=\"searchTerm\" (ngModelChange)=\"searchTermChanged()\" />\n <mat-icon class=\"search-icon\" matSuffix>search</mat-icon>\n </mat-form-field>\n </div>\n <ng-content></ng-content>\n </div>\n </ng-scrollbar>\n</div>\n","import {Component, EventEmitter, Input, Output, ViewChild} from '@angular/core';\nimport {NgScrollbar} from 'ngx-scrollbar';\n\n@Component({\n selector: 'centralized-container',\n templateUrl: 'centralized-container.component.html',\n styleUrls: ['centralized-container.component.scss']\n})\nexport class CentralizedContainerComponent {\n\n public searchTerm = '';\n\n @Input() public hasSearch = true;\n @Input() public ignoreZoom = false;\n\n @Output()\n public searchChanged = new EventEmitter<string>();\n\n @ViewChild(NgScrollbar, { static: true })\n public scrollbarRef: NgScrollbar | undefined;\n\n public searchTermChanged(): void {\n this.searchChanged.emit(this.searchTerm);\n }\n\n}\n","<div class=\"configuration-page-container\" [ngClass]=\"{'footer-paginator': footerPaginator}\">\n <ng-scrollbar [visibility]=\"'hover'\">\n <div class=\"list-content\">\n <div class=\"list-search\" *ngIf=\"hasSearch\">\n <mat-form-field class=\"apipass-search-input-text search-input-item small-text\"\n [ngClass]=\"{'label-input': searchLabel}\"\n appearance=\"fill\">\n <mat-label *ngIf=\"searchLabel\">{{searchLabel}}</mat-label>\n <input matInput type=\"search\" class=\"search-input\"\n [(ngModel)]=\"searchTerm\"\n (ngModelChange)=\"searchTermChanged()\"\n />\n <mat-icon class=\"search-icon\" matSuffix (click)=\"searchIconClick()\">search</mat-icon>\n </mat-form-field>\n </div>\n\n <div class=\"container-content\" [ngClass]=\"{'vertical-separate': verticalSeparate}\">\n <ng-content></ng-content>\n </div>\n </div>\n </ng-scrollbar>\n</div>\n","import {Component, EventEmitter, Input, Output, ViewChild} from '@angular/core';\nimport {NgScrollbar} from 'ngx-scrollbar';\nimport {Subject} from 'rxjs';\nimport {debounceTime, distinctUntilChanged} from 'rxjs/operators';\n\n@Component({\n selector: 'configuration-page-container',\n templateUrl: 'configuration-page.component.html',\n styleUrls: ['configuration-page.component.scss']\n})\nexport class ConfigurationPageComponent {\n\n public searchTerm = '';\n\n @Input() public verticalSeparate = false;\n @Input() public footerPaginator = false;\n @Input() public hasSearch = true;\n @Input() public searchDebounceTime = 1000;\n @Input() public searchLabel = '';\n\n txtQueryChanged: Subject<string> = new Subject<string>();\n\n @Output() public searchChanged = new EventEmitter<string>();\n @Output() public searchClick = new EventEmitter<string>();\n\n @ViewChild(NgScrollbar, { static: true })\n public scrollbarRef: NgScrollbar | undefined;\n\n constructor() {\n this.txtQueryChanged.pipe(\n debounceTime(this.searchDebounceTime),\n distinctUntilChanged()).subscribe(model =>\n this.searchChanged.next(model)\n );\n }\n\n public searchTermChanged(): void {\n this.txtQueryChanged.next(this.searchTerm);\n }\n\n public searchIconClick(): void {\n this.searchClick.next(this.searchTerm);\n }\n\n}\n","import {NgModule} from '@angular/core';\nimport {CommonModule} from '@angular/common';\nimport {RouterModule} from '@angular/router';\nimport {TranslateModule} from '@ngx-translate/core';\nimport {FormsModule, ReactiveFormsModule} from '@angular/forms';\nimport {CentralizedContainerComponent} from './centralized-container/centralized-container.component';\nimport {ConfigurationPageComponent} from './configuration-page-content/configuration-page.component';\nimport {NgScrollbarModule} from 'ngx-scrollbar';\nimport {MatFormFieldModule} from '@angular/material/form-field';\nimport {MatIconModule} from '@angular/material/icon';\nimport {MatInputModule} from '@angular/material/input';\nimport {IconsModule} from '@apipass/icons';\nimport {ButtonsModule} from '@apipass/buttons';\n\n@NgModule({\n imports: [\n CommonModule,\n RouterModule,\n TranslateModule,\n FormsModule,\n ReactiveFormsModule,\n IconsModule,\n ButtonsModule,\n NgScrollbarModule,\n MatFormFieldModule,\n MatIconModule,\n MatInputModule\n ],\n declarations: [\n CentralizedContainerComponent,\n ConfigurationPageComponent\n ],\n exports: [\n CentralizedContainerComponent,\n ConfigurationPageComponent\n ],\n providers: []\n})\nexport class ContainersModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":["i0.ɵɵelementStart","i0.ɵɵlistener","i0.ɵɵelementEnd","i0.ɵɵtext","i0.ɵɵadvance","i0.ɵɵproperty","EventEmitter","NgScrollbar","i0.ɵɵtemplate","i0.ɵɵprojection","Component","Input","Output","ViewChild","i0.ɵɵtextInterpolate","Subject","debounceTime","distinctUntilChanged","CommonModule","RouterModule","TranslateModule","FormsModule","ReactiveFormsModule","IconsModule","ButtonsModule","NgScrollbarModule","MatFormFieldModule","MatIconModule","MatInputModule","NgModule"],"mappings":";;;;;;;;;YAGMA,8BACE;YAAAA,sCACE;YAAAA,gCACA;YAD8BC,6NAAwB,0MAAA;YAAtDC,iBACA;YAAAF,mCAAwC;YAAAG,sBAAM;YAAAD,iBAAW;YAC3DA,iBAAiB;YACnBA,iBAAM;;;;YAH4BE,eAAwB;YAAxBC,2CAAwB;;;;;;QCFhE;YAOS,eAAU,GAAG,EAAE,CAAC;YAEP,cAAS,GAAG,IAAI,CAAC;YACjB,eAAU,GAAG,KAAK,CAAC;YAG5B,kBAAa,GAAG,IAAIC,eAAY,EAAU,CAAC;SASnD;QAJQ,yDAAiB,GAAjB;YACL,IAAI,CAAC,aAAa,CAAC,IAAI,CAAC,IAAI,CAAC,UAAU,CAAC,CAAC;SAC1C;;;8GAfU,6BAA6B;sEAA7B,6BAA6B;;qCAU7BC,cAAW;;;;;;;;;gBDlBxBP,8BACE;gBAAAA,uCACE;gBAAAA,8BACE;gBAAAQ,8EACE;gBAKFC,kBAAY;gBACdP,iBAAM;gBACRA,iBAAe;gBACjBA,iBAAM;;;gBAZ6BG,qEAAuD;gBAC1ED,eAAsB;gBAAtBC,oCAAsB;gBAEPD,eAAiB;gBAAjBC,oCAAiB;;;;6BCKnC,6BAA6B;sBALzCK,YAAS;uBAAC;wBACT,QAAQ,EAAE,uBAAuB;wBACjC,WAAW,EAAE,sCAAsC;wBACnD,SAAS,EAAE,CAAC,sCAAsC,CAAC;qBACpD;wBAKiB,SAAS;0BAAxBC,QAAK;oBACU,UAAU;0BAAzBA,QAAK;oBAGC,aAAa;0BADnBC,SAAM;oBAIA,YAAY;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;;6BAIjB,gBAAgB;sBAxB5BC,WAAQ;uBAAC;wBACR,OAAO,EAAE;4BACPX,eAAY;4BACZC,mBAAY;4BACZC,oBAAe;4BACfC,cAAW;4BACXC,sBAAmB;4BACnBC,iBAAW;4BACXC,qBAAa;4BACbC,oBAAiB;4BACjBC,qBAAkB;4BAClBC,gBAAa;4BACbC,iBAAc;yBACf;wBACD,YAAY,EAAE;4BACZ,6BAA6B;4BAC7B,0BAA0B;yBAC3B;wBACD,OAAO,EAAE;4BACP,6BAA6B;4BAC7B,0BAA0B;yBAC3B;wBACD,SAAS,EAAE,EAAE;qBACd;;;;ICrCD;;;;;;;;;;;;;;;;;;;;;;;;"}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
!function(e,n){"object"==typeof exports&&"undefined"!=typeof module?n(exports,require("@angular/core"),require("@angular/common"),require("@angular/router"),require("@ngx-translate/core"),require("@angular/forms"),require("ngx-scrollbar"),require("@angular/material/form-field"),require("@angular/material/input"),require("@angular/material/icon"),require("rxjs"),require("rxjs/operators"),require("@apipass/icons"),require("@apipass/buttons")):"function"==typeof define&&define.amd?define("@apipass/containers",["exports","@angular/core","@angular/common","@angular/router","@ngx-translate/core","@angular/forms","ngx-scrollbar","@angular/material/form-field","@angular/material/input","@angular/material/icon","rxjs","rxjs/operators","@apipass/icons","@apipass/buttons"],n):n(((e="undefined"!=typeof globalThis?globalThis:e||self).apipass=e.apipass||{},e.apipass.containers={}),e.ng.core,e.ng.common,e.ng.router,e.core,e.ng.forms,e.i2,e.ng.material.formField,e.ng.material.input,e.ng.material.icon,e.rxjs,e.rxjs.operators,e.icons,e.buttons)}(this,(function(e,n,t,r,o,a,i,c,l,s,g,u,d,p){"use strict";function f(e,t){if(1&e){var r=n.ɵɵgetCurrentView();n.ɵɵelementStart(0,"div",4),n.ɵɵelementStart(1,"mat-form-field"),n.ɵɵelementStart(2,"input",5),n.ɵɵlistener("ngModelChange",(function(e){return n.ɵɵrestoreView(r),n.ɵɵnextContext().searchTerm=e}))("ngModelChange",(function(){return n.ɵɵrestoreView(r),n.ɵɵnextContext().searchTermChanged()})),n.ɵɵelementEnd(),n.ɵɵelementStart(3,"mat-icon",6),n.ɵɵtext(4,"search"),n.ɵɵelementEnd(),n.ɵɵelementEnd(),n.ɵɵelementEnd()}if(2&e){var o=n.ɵɵnextContext();n.ɵɵadvance(2),n.ɵɵproperty("ngModel",o.searchTerm)}}var h=function(e){return{"centralized-container-zoom":e}},m=function(){function e(){this.searchTerm="",this.hasSearch=!0,this.ignoreZoom=!1,this.searchChanged=new n.EventEmitter}return e.prototype.searchTermChanged=function(){this.searchChanged.emit(this.searchTerm)},e}();function C(e,t){if(1&e&&(n.ɵɵelementStart(0,"mat-label"),n.ɵɵtext(1),n.ɵɵelementEnd()),2&e){var r=n.ɵɵnextContext(2);n.ɵɵadvance(1),n.ɵɵtextInterpolate(r.searchLabel)}}m.ɵfac=function(e){return new(e||m)},m.ɵcmp=n.ɵɵdefineComponent({type:m,selectors:[["centralized-container"]],viewQuery:function(e,t){var r;(1&e&&n.ɵɵstaticViewQuery(i.NgScrollbar,!0),2&e)&&(n.ɵɵqueryRefresh(r=n.ɵɵloadQuery())&&(t.scrollbarRef=r.first))},inputs:{hasSearch:"hasSearch",ignoreZoom:"ignoreZoom"},outputs:{searchChanged:"searchChanged"},ngContentSelectors:["*"],decls:5,vars:5,consts:[[1,"centralized-container",3,"ngClass"],[3,"visibility"],[1,"list-content"],["class","list-search",4,"ngIf"],[1,"list-search"],["matInput","","type","search",3,"ngModel","ngModelChange"],["matSuffix","",1,"search-icon"]],template:function(e,t){1&e&&(n.ɵɵprojectionDef(),n.ɵɵelementStart(0,"div",0),n.ɵɵelementStart(1,"ng-scrollbar",1),n.ɵɵelementStart(2,"div",2),n.ɵɵtemplate(3,f,5,1,"div",3),n.ɵɵprojection(4),n.ɵɵelementEnd(),n.ɵɵelementEnd(),n.ɵɵelementEnd()),2&e&&(n.ɵɵproperty("ngClass",n.ɵɵpureFunction1(3,h,!t.ignoreZoom)),n.ɵɵadvance(1),n.ɵɵproperty("visibility","hover"),n.ɵɵadvance(2),n.ɵɵproperty("ngIf",t.hasSearch))},directives:[t.NgClass,i.NgScrollbar,t.NgIf,c.MatFormField,l.MatInput,a.DefaultValueAccessor,a.NgControlStatus,a.NgModel,s.MatIcon,c.MatSuffix],styles:[".centralized-container[_ngcontent-%COMP%]{display:flex;height:calc(100% - 70px);padding-left:15px;padding-right:15px}.centralized-container.centralized-container-zoom[_ngcontent-%COMP%]{font-size:62.5%}.centralized-container[_ngcontent-%COMP%] > ng-scrollbar[_ngcontent-%COMP%]{width:100%}.centralized-container[_ngcontent-%COMP%] .list-content[_ngcontent-%COMP%]{box-sizing:border-box;display:flex;flex-direction:column;height:100%;padding:30px 25px 25px}.centralized-container[_ngcontent-%COMP%] .list-content[_ngcontent-%COMP%] .list-search[_ngcontent-%COMP%]{font-size:1.4em;place-self:flex-end;position:absolute;width:21%}.centralized-container[_ngcontent-%COMP%] .list-content[_ngcontent-%COMP%] .list-search[_ngcontent-%COMP%] mat-form-field[_ngcontent-%COMP%]{width:100%}.centralized-container[_ngcontent-%COMP%] .list-content[_ngcontent-%COMP%] .list-search[_ngcontent-%COMP%] mat-form-field[_ngcontent-%COMP%] .search-icon[_ngcontent-%COMP%]{font-size:1.8rem;opacity:.5}[_nghost-%COMP%] .list-search mat-form-field.mat-form-field-appearance-legacy .mat-form-field-wrapper .mat-form-field-underline{background-color:var(--color-tertiary)}"]});var M=function(e){return{"label-input":e}};function b(e,t){if(1&e){var r=n.ɵɵgetCurrentView();n.ɵɵelementStart(0,"div",5),n.ɵɵelementStart(1,"mat-form-field",6),n.ɵɵtemplate(2,C,2,1,"mat-label",7),n.ɵɵelementStart(3,"input",8),n.ɵɵlistener("ngModelChange",(function(e){return n.ɵɵrestoreView(r),n.ɵɵnextContext().searchTerm=e}))("ngModelChange",(function(){return n.ɵɵrestoreView(r),n.ɵɵnextContext().searchTermChanged()})),n.ɵɵelementEnd(),n.ɵɵelementStart(4,"mat-icon",9),n.ɵɵlistener("click",(function(){return n.ɵɵrestoreView(r),n.ɵɵnextContext().searchIconClick()})),n.ɵɵtext(5,"search"),n.ɵɵelementEnd(),n.ɵɵelementEnd(),n.ɵɵelementEnd()}if(2&e){var o=n.ɵɵnextContext();n.ɵɵadvance(1),n.ɵɵproperty("ngClass",n.ɵɵpureFunction1(3,M,o.searchLabel)),n.ɵɵadvance(1),n.ɵɵproperty("ngIf",o.searchLabel),n.ɵɵadvance(1),n.ɵɵproperty("ngModel",o.searchTerm)}}var x=function(e){return{"footer-paginator":e}},y=function(e){return{"vertical-separate":e}},v=function(){function e(){var e=this;this.searchTerm="",this.verticalSeparate=!1,this.footerPaginator=!1,this.hasSearch=!0,this.searchDebounceTime=1e3,this.searchLabel="",this.txtQueryChanged=new g.Subject,this.searchChanged=new n.EventEmitter,this.searchClick=new n.EventEmitter,this.txtQueryChanged.pipe(u.debounceTime(this.searchDebounceTime),u.distinctUntilChanged()).subscribe((function(n){return e.searchChanged.next(n)}))}return e.prototype.searchTermChanged=function(){this.txtQueryChanged.next(this.searchTerm)},e.prototype.searchIconClick=function(){this.searchClick.next(this.searchTerm)},e}();v.ɵfac=function(e){return new(e||v)},v.ɵcmp=n.ɵɵdefineComponent({type:v,selectors:[["configuration-page-container"]],viewQuery:function(e,t){var r;(1&e&&n.ɵɵstaticViewQuery(i.NgScrollbar,!0),2&e)&&(n.ɵɵqueryRefresh(r=n.ɵɵloadQuery())&&(t.scrollbarRef=r.first))},inputs:{verticalSeparate:"verticalSeparate",footerPaginator:"footerPaginator",hasSearch:"hasSearch",searchDebounceTime:"searchDebounceTime",searchLabel:"searchLabel"},outputs:{searchChanged:"searchChanged",searchClick:"searchClick"},ngContentSelectors:["*"],decls:6,vars:8,consts:[[1,"configuration-page-container",3,"ngClass"],[3,"visibility"],[1,"list-content"],["class","list-search",4,"ngIf"],[1,"container-content",3,"ngClass"],[1,"list-search"],["appearance","fill",1,"apipass-search-input-text","search-input-item","small-text",3,"ngClass"],[4,"ngIf"],["matInput","","type","search",1,"search-input",3,"ngModel","ngModelChange"],["matSuffix","",1,"search-icon",3,"click"]],template:function(e,t){1&e&&(n.ɵɵprojectionDef(),n.ɵɵelementStart(0,"div",0),n.ɵɵelementStart(1,"ng-scrollbar",1),n.ɵɵelementStart(2,"div",2),n.ɵɵtemplate(3,b,6,5,"div",3),n.ɵɵelementStart(4,"div",4),n.ɵɵprojection(5),n.ɵɵelementEnd(),n.ɵɵelementEnd(),n.ɵɵelementEnd(),n.ɵɵelementEnd()),2&e&&(n.ɵɵproperty("ngClass",n.ɵɵpureFunction1(4,x,t.footerPaginator)),n.ɵɵadvance(1),n.ɵɵproperty("visibility","hover"),n.ɵɵadvance(2),n.ɵɵproperty("ngIf",t.hasSearch),n.ɵɵadvance(1),n.ɵɵproperty("ngClass",n.ɵɵpureFunction1(6,y,t.verticalSeparate)))},directives:[t.NgClass,i.NgScrollbar,t.NgIf,c.MatFormField,l.MatInput,a.DefaultValueAccessor,a.NgControlStatus,a.NgModel,s.MatIcon,c.MatSuffix,c.MatLabel],styles:["[_ngcontent-%COMP%]:root{--color-body-light:#fff;--color-fonts-tertiary:#777;--color-inputs-background:#fff;--color-inputs-border:#ddd;--color-primary:#222d57;--color-primary-active:#29376a;--color-primary-hover:#18203d;--color-red:red;--color-secondary:#d3d921;--color-secondary-active:#dce13f;--color-secondary-hover:#b3b81c;--color-tertiary:#efefef;--color-tertiary-active:#f1f1f1;--color-tertiary-hover:#cbcbcb;--color_components_light:#fff;--color_disabled:#e0e0e0;--color_graph_error:#eb5757;--color_graph_error_hover:#c91717;--color_graph_primary:#1643ef;--color_graph_primary_hover:#0a2692;--color_icon_remove:var(--color-red);--color_icon_success:#070;--limit-plan-color:#ff6c00}.configuration-page-container[_ngcontent-%COMP%]{border:1px solid var(--color-tertiary);display:flex;height:100%}.configuration-page-container.footer-paginator[_ngcontent-%COMP%]{height:calc(100% - 50px)}.configuration-page-container[_ngcontent-%COMP%] ng-scrollbar[_ngcontent-%COMP%]{width:100%}.configuration-page-container[_ngcontent-%COMP%] ng-scrollbar[_ngcontent-%COMP%] .ng-scroll-content[_ngcontent-%COMP%]{height:100%}.configuration-page-container[_ngcontent-%COMP%] ng-scrollbar[_ngcontent-%COMP%] .list-content[_ngcontent-%COMP%]{box-sizing:border-box;display:flex;flex-direction:column;height:100%;width:100%}.configuration-page-container[_ngcontent-%COMP%] ng-scrollbar[_ngcontent-%COMP%] .list-content[_ngcontent-%COMP%] .list-search[_ngcontent-%COMP%]{padding-right:15px;padding-top:15px;place-self:flex-end;width:30%}.configuration-page-container[_ngcontent-%COMP%] ng-scrollbar[_ngcontent-%COMP%] .list-content[_ngcontent-%COMP%] .list-search[_ngcontent-%COMP%] mat-form-field[_ngcontent-%COMP%]{width:100%}.configuration-page-container[_ngcontent-%COMP%] ng-scrollbar[_ngcontent-%COMP%] .list-content[_ngcontent-%COMP%] .list-search[_ngcontent-%COMP%] mat-form-field[_ngcontent-%COMP%] .search-icon[_ngcontent-%COMP%]{cursor:pointer;font-size:1.8rem;opacity:.5}.configuration-page-container[_ngcontent-%COMP%] .container-content[_ngcontent-%COMP%]{height:100%;width:100%}.configuration-page-container[_ngcontent-%COMP%] .container-content.vertical-separate[_ngcontent-%COMP%]{display:flex;flex-direction:column;justify-content:space-between}"]});var _=function(){};_.ɵmod=n.ɵɵdefineNgModule({type:_}),_.ɵinj=n.ɵɵdefineInjector({factory:function(e){return new(e||_)},providers:[],imports:[[t.CommonModule,r.RouterModule,o.TranslateModule,a.FormsModule,a.ReactiveFormsModule,d.IconsModule,p.ButtonsModule,i.NgScrollbarModule,c.MatFormFieldModule,s.MatIconModule,l.MatInputModule]]}),("undefined"==typeof ngJitMode||ngJitMode)&&n.ɵɵsetNgModuleScope(_,{declarations:[m,v],imports:[t.CommonModule,r.RouterModule,o.TranslateModule,a.FormsModule,a.ReactiveFormsModule,d.IconsModule,p.ButtonsModule,i.NgScrollbarModule,c.MatFormFieldModule,s.MatIconModule,l.MatInputModule],exports:[m,v]}),Object.keys(i).forEach((function(n){"default"!==n&&Object.defineProperty(e,n,{enumerable:!0,get:function(){return i[n]}})})),e.CentralizedContainerComponent=m,e.ConfigurationPageComponent=v,e.ContainersModule=_,Object.defineProperty(e,"__esModule",{value:!0})}));
|
|
2
|
+
//# sourceMappingURL=apipass-containers.umd.min.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../../projects/containers/src/centralized-container/centralized-container.component.html","../../../projects/containers/src/centralized-container/centralized-container.component.ts","../../../projects/containers/src/configuration-page-content/configuration-page.component.html","../../../projects/containers/src/configuration-page-content/configuration-page.component.ts","../../../projects/containers/src/containers.module.ts"],"names":["i0.ɵɵelementStart","i0.ɵɵlistener","i0","ɵɵrestoreView","_r2_1","ɵɵnextContext","searchTermChanged","i0.ɵɵelementEnd","i0.ɵɵtext","i0.ɵɵadvance","i0.ɵɵproperty","CentralizedContainerComponent","this","searchTerm","hasSearch","ignoreZoom","searchChanged","EventEmitter","prototype","emit","i0.ɵɵtextInterpolate","selectors","viewQuery","rf","ctx","NgScrollbar","i0.ɵɵtemplate","i0.ɵɵprojection","_r3_1","ConfigurationPageComponent","_this","verticalSeparate","footerPaginator","searchDebounceTime","searchLabel","txtQueryChanged","Subject","searchClick","pipe","debounceTime","distinctUntilChanged","subscribe","model","next","searchIconClick","ContainersModule","providers","imports","CommonModule","RouterModule","TranslateModule","FormsModule","ReactiveFormsModule","IconsModule","ButtonsModule","NgScrollbarModule","MatFormFieldModule","MatIconModule","MatInputModule","declarations","exports"],"mappings":"goCAGMA,EAAAA,eAAAA,EAAAA,MAAAA,GACEA,EAAAA,eAAAA,EAAAA,kBACEA,EAAAA,eAAAA,EAAAA,QAAAA,GAA8BC,EAAAA,WAAAA,iBAAAA,SAAAA,GAAAA,OAAAA,EAAAA,cAAAA,GAAAA,EAAAA,gBAAAA,WAAAA,IAAAA,CAAwB,iBAAA,WAAA,OAAAC,EAAAC,cAAAC,GAAAF,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MAAAA,GACEA,EAAAA,eAAAA,EAAAA,eAAAA,GACEA,EAAAA,eAAAA,EAAAA,MAAAA,GACE0B,EAAAA,WAAAA,EAAAA,EAAAA,EAAAA,EAAAA,MAAAA,GAaA1B,EAAAA,eAAAA,EAAAA,MAAAA,GACE2B,EAAAA,aAAAA,GACFpB,EAAAA,eACFA,EAAAA,eACFA,EAAAA,eACFA,EAAAA,sBArB0CG,EAAAA,WAAAA,UAAAA,EAAAA,gBAAAA,EAAAA,EAAAA,EAAAA,kBAC1BD,EAAAA,UAAAA,GAAAC,EAAAA,WAAAA,aAAAA,SAEeD,EAAAA,UAAAA,GAAAC,EAAAA,WAAAA,OAAAA,EAAAA,WAaMD,EAAAA,UAAAA,GAAAC,EAAAA,WAAAA,UAAAA,EAAAA,gBAAAA,EAAAA,EAAAA,EAAAA,g7EEsBrC,6CAAamC,iEAAAA,IAAgBC,UAFhB,GAAEC,QAAA,CArBJ,CACPC,EAAAA,aACAC,EAAAA,aACAC,EAAAA,gBACAC,EAAAA,YACAC,EAAAA,oBACAC,EAAAA,YACAC,EAAAA,cACAC,EAAAA,kBACAC,EAAAA,mBACAC,EAAAA,cACAC,EAAAA,oFAYSb,EAAgB,CAAAc,aAAA,CATzBhD,EACAkB,GAA0BkB,QAAA,CAd1BC,EAAAA,aACAC,EAAAA,aACAC,EAAAA,gBACAC,EAAAA,YACAC,EAAAA,oBACAC,EAAAA,YACAC,EAAAA,cACAC,EAAAA,kBACAC,EAAAA,mBACAC,EAAAA,cACAC,EAAAA,gBAAcE,QAAA,CAOdjD,EACAkB","sourcesContent":["<div class=\"centralized-container\" [ngClass]=\"{'centralized-container-zoom': !ignoreZoom}\">\n <ng-scrollbar [visibility]=\"'hover'\">\n <div class=\"list-content\">\n <div class=\"list-search\" *ngIf=\"hasSearch\">\n <mat-form-field>\n <input matInput type=\"search\" [(ngModel)]=\"searchTerm\" (ngModelChange)=\"searchTermChanged()\" />\n <mat-icon class=\"search-icon\" matSuffix>search</mat-icon>\n </mat-form-field>\n </div>\n <ng-content></ng-content>\n </div>\n </ng-scrollbar>\n</div>\n","import {Component, EventEmitter, Input, Output, ViewChild} from '@angular/core';\nimport {NgScrollbar} from 'ngx-scrollbar';\n\n@Component({\n selector: 'centralized-container',\n templateUrl: 'centralized-container.component.html',\n styleUrls: ['centralized-container.component.scss']\n})\nexport class CentralizedContainerComponent {\n\n public searchTerm = '';\n\n @Input() public hasSearch = true;\n @Input() public ignoreZoom = false;\n\n @Output()\n public searchChanged = new EventEmitter<string>();\n\n @ViewChild(NgScrollbar, { static: true })\n public scrollbarRef: NgScrollbar | undefined;\n\n public searchTermChanged(): void {\n this.searchChanged.emit(this.searchTerm);\n }\n\n}\n","<div class=\"configuration-page-container\" [ngClass]=\"{'footer-paginator': footerPaginator}\">\n <ng-scrollbar [visibility]=\"'hover'\">\n <div class=\"list-content\">\n <div class=\"list-search\" *ngIf=\"hasSearch\">\n <mat-form-field class=\"apipass-search-input-text search-input-item small-text\"\n [ngClass]=\"{'label-input': searchLabel}\"\n appearance=\"fill\">\n <mat-label *ngIf=\"searchLabel\">{{searchLabel}}</mat-label>\n <input matInput type=\"search\" class=\"search-input\"\n [(ngModel)]=\"searchTerm\"\n (ngModelChange)=\"searchTermChanged()\"\n />\n <mat-icon class=\"search-icon\" matSuffix (click)=\"searchIconClick()\">search</mat-icon>\n </mat-form-field>\n </div>\n\n <div class=\"container-content\" [ngClass]=\"{'vertical-separate': verticalSeparate}\">\n <ng-content></ng-content>\n </div>\n </div>\n </ng-scrollbar>\n</div>\n","import {Component, EventEmitter, Input, Output, ViewChild} from '@angular/core';\nimport {NgScrollbar} from 'ngx-scrollbar';\nimport {Subject} from 'rxjs';\nimport {debounceTime, distinctUntilChanged} from 'rxjs/operators';\n\n@Component({\n selector: 'configuration-page-container',\n templateUrl: 'configuration-page.component.html',\n styleUrls: ['configuration-page.component.scss']\n})\nexport class ConfigurationPageComponent {\n\n public searchTerm = '';\n\n @Input() public verticalSeparate = false;\n @Input() public footerPaginator = false;\n @Input() public hasSearch = true;\n @Input() public searchDebounceTime = 1000;\n @Input() public searchLabel = '';\n\n txtQueryChanged: Subject<string> = new Subject<string>();\n\n @Output() public searchChanged = new EventEmitter<string>();\n @Output() public searchClick = new EventEmitter<string>();\n\n @ViewChild(NgScrollbar, { static: true })\n public scrollbarRef: NgScrollbar | undefined;\n\n constructor() {\n this.txtQueryChanged.pipe(\n debounceTime(this.searchDebounceTime),\n distinctUntilChanged()).subscribe(model =>\n this.searchChanged.next(model)\n );\n }\n\n public searchTermChanged(): void {\n this.txtQueryChanged.next(this.searchTerm);\n }\n\n public searchIconClick(): void {\n this.searchClick.next(this.searchTerm);\n }\n\n}\n","import {NgModule} from '@angular/core';\nimport {CommonModule} from '@angular/common';\nimport {RouterModule} from '@angular/router';\nimport {TranslateModule} from '@ngx-translate/core';\nimport {FormsModule, ReactiveFormsModule} from '@angular/forms';\nimport {CentralizedContainerComponent} from './centralized-container/centralized-container.component';\nimport {ConfigurationPageComponent} from './configuration-page-content/configuration-page.component';\nimport {NgScrollbarModule} from 'ngx-scrollbar';\nimport {MatFormFieldModule} from '@angular/material/form-field';\nimport {MatIconModule} from '@angular/material/icon';\nimport {MatInputModule} from '@angular/material/input';\nimport {IconsModule} from '@apipass/icons';\nimport {ButtonsModule} from '@apipass/buttons';\n\n@NgModule({\n imports: [\n CommonModule,\n RouterModule,\n TranslateModule,\n FormsModule,\n ReactiveFormsModule,\n IconsModule,\n ButtonsModule,\n NgScrollbarModule,\n MatFormFieldModule,\n MatIconModule,\n MatInputModule\n ],\n declarations: [\n CentralizedContainerComponent,\n ConfigurationPageComponent\n ],\n exports: [\n CentralizedContainerComponent,\n ConfigurationPageComponent\n ],\n providers: []\n})\nexport class ContainersModule {}\n"]}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { EventEmitter } from '@angular/core';
|
|
2
|
+
import { NgScrollbar } from 'ngx-scrollbar';
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
4
|
+
export declare class CentralizedContainerComponent {
|
|
5
|
+
searchTerm: string;
|
|
6
|
+
hasSearch: boolean;
|
|
7
|
+
ignoreZoom: boolean;
|
|
8
|
+
searchChanged: EventEmitter<string>;
|
|
9
|
+
scrollbarRef: NgScrollbar | undefined;
|
|
10
|
+
searchTermChanged(): void;
|
|
11
|
+
static ɵfac: i0.ɵɵFactoryDef<CentralizedContainerComponent, never>;
|
|
12
|
+
static ɵcmp: i0.ɵɵComponentDefWithMeta<CentralizedContainerComponent, "centralized-container", never, { "hasSearch": "hasSearch"; "ignoreZoom": "ignoreZoom"; }, { "searchChanged": "searchChanged"; }, never, ["*"]>;
|
|
13
|
+
}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { EventEmitter } from '@angular/core';
|
|
2
|
+
import { NgScrollbar } from 'ngx-scrollbar';
|
|
3
|
+
import { Subject } from 'rxjs';
|
|
4
|
+
import * as i0 from "@angular/core";
|
|
5
|
+
export declare class ConfigurationPageComponent {
|
|
6
|
+
searchTerm: string;
|
|
7
|
+
verticalSeparate: boolean;
|
|
8
|
+
footerPaginator: boolean;
|
|
9
|
+
hasSearch: boolean;
|
|
10
|
+
searchDebounceTime: number;
|
|
11
|
+
searchLabel: string;
|
|
12
|
+
txtQueryChanged: Subject<string>;
|
|
13
|
+
searchChanged: EventEmitter<string>;
|
|
14
|
+
searchClick: EventEmitter<string>;
|
|
15
|
+
scrollbarRef: NgScrollbar | undefined;
|
|
16
|
+
constructor();
|
|
17
|
+
searchTermChanged(): void;
|
|
18
|
+
searchIconClick(): void;
|
|
19
|
+
static ɵfac: i0.ɵɵFactoryDef<ConfigurationPageComponent, never>;
|
|
20
|
+
static ɵcmp: i0.ɵɵComponentDefWithMeta<ConfigurationPageComponent, "configuration-page-container", never, { "verticalSeparate": "verticalSeparate"; "footerPaginator": "footerPaginator"; "hasSearch": "hasSearch"; "searchDebounceTime": "searchDebounceTime"; "searchLabel": "searchLabel"; }, { "searchChanged": "searchChanged"; "searchClick": "searchClick"; }, never, ["*"]>;
|
|
21
|
+
}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import * as i0 from "@angular/core";
|
|
2
|
+
import * as i1 from "./centralized-container/centralized-container.component";
|
|
3
|
+
import * as i2 from "./configuration-page-content/configuration-page.component";
|
|
4
|
+
import * as i3 from "@angular/common";
|
|
5
|
+
import * as i4 from "@angular/router";
|
|
6
|
+
import * as i5 from "@ngx-translate/core";
|
|
7
|
+
import * as i6 from "@angular/forms";
|
|
8
|
+
import * as i7 from "@apipass/icons";
|
|
9
|
+
import * as i8 from "@apipass/buttons";
|
|
10
|
+
import * as i9 from "ngx-scrollbar";
|
|
11
|
+
import * as i10 from "@angular/material/form-field";
|
|
12
|
+
import * as i11 from "@angular/material/icon";
|
|
13
|
+
import * as i12 from "@angular/material/input";
|
|
14
|
+
export declare class ContainersModule {
|
|
15
|
+
static ɵmod: i0.ɵɵNgModuleDefWithMeta<ContainersModule, [typeof i1.CentralizedContainerComponent, typeof i2.ConfigurationPageComponent], [typeof i3.CommonModule, typeof i4.RouterModule, typeof i5.TranslateModule, typeof i6.FormsModule, typeof i6.ReactiveFormsModule, typeof i7.IconsModule, typeof i8.ButtonsModule, typeof i9.NgScrollbarModule, typeof i10.MatFormFieldModule, typeof i11.MatIconModule, typeof i12.MatInputModule], [typeof i1.CentralizedContainerComponent, typeof i2.ConfigurationPageComponent]>;
|
|
16
|
+
static ɵinj: i0.ɵɵInjectorDef<ContainersModule>;
|
|
17
|
+
}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Generated bundle index. Do not edit.
|
|
3
|
+
*/
|
|
4
|
+
export * from './public-api';
|
|
5
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiYXBpcGFzcy1jb250YWluZXJzLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vcHJvamVjdHMvY29udGFpbmVycy9zcmMvYXBpcGFzcy1jb250YWluZXJzLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBOztHQUVHO0FBRUgsY0FBYyxjQUFjLENBQUMiLCJzb3VyY2VzQ29udGVudCI6WyIvKipcbiAqIEdlbmVyYXRlZCBidW5kbGUgaW5kZXguIERvIG5vdCBlZGl0LlxuICovXG5cbmV4cG9ydCAqIGZyb20gJy4vcHVibGljLWFwaSc7XG4iXX0=
|
|
@@ -0,0 +1,80 @@
|
|
|
1
|
+
import { Component, EventEmitter, Input, Output, ViewChild } from '@angular/core';
|
|
2
|
+
import { NgScrollbar } from 'ngx-scrollbar';
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
4
|
+
import * as i1 from "@angular/common";
|
|
5
|
+
import * as i2 from "ngx-scrollbar";
|
|
6
|
+
import * as i3 from "@angular/material/form-field";
|
|
7
|
+
import * as i4 from "@angular/material/input";
|
|
8
|
+
import * as i5 from "@angular/forms";
|
|
9
|
+
import * as i6 from "@angular/material/icon";
|
|
10
|
+
function CentralizedContainerComponent_div_3_Template(rf, ctx) { if (rf & 1) {
|
|
11
|
+
const _r2 = i0.ɵɵgetCurrentView();
|
|
12
|
+
i0.ɵɵelementStart(0, "div", 4);
|
|
13
|
+
i0.ɵɵelementStart(1, "mat-form-field");
|
|
14
|
+
i0.ɵɵelementStart(2, "input", 5);
|
|
15
|
+
i0.ɵɵlistener("ngModelChange", function CentralizedContainerComponent_div_3_Template_input_ngModelChange_2_listener($event) { i0.ɵɵrestoreView(_r2); const ctx_r1 = i0.ɵɵnextContext(); return ctx_r1.searchTerm = $event; })("ngModelChange", function CentralizedContainerComponent_div_3_Template_input_ngModelChange_2_listener() { i0.ɵɵrestoreView(_r2); const ctx_r3 = i0.ɵɵnextContext(); return ctx_r3.searchTermChanged(); });
|
|
16
|
+
i0.ɵɵelementEnd();
|
|
17
|
+
i0.ɵɵelementStart(3, "mat-icon", 6);
|
|
18
|
+
i0.ɵɵtext(4, "search");
|
|
19
|
+
i0.ɵɵelementEnd();
|
|
20
|
+
i0.ɵɵelementEnd();
|
|
21
|
+
i0.ɵɵelementEnd();
|
|
22
|
+
} if (rf & 2) {
|
|
23
|
+
const ctx_r0 = i0.ɵɵnextContext();
|
|
24
|
+
i0.ɵɵadvance(2);
|
|
25
|
+
i0.ɵɵproperty("ngModel", ctx_r0.searchTerm);
|
|
26
|
+
} }
|
|
27
|
+
const _c0 = function (a0) { return { "centralized-container-zoom": a0 }; };
|
|
28
|
+
const _c1 = ["*"];
|
|
29
|
+
export class CentralizedContainerComponent {
|
|
30
|
+
constructor() {
|
|
31
|
+
this.searchTerm = '';
|
|
32
|
+
this.hasSearch = true;
|
|
33
|
+
this.ignoreZoom = false;
|
|
34
|
+
this.searchChanged = new EventEmitter();
|
|
35
|
+
}
|
|
36
|
+
searchTermChanged() {
|
|
37
|
+
this.searchChanged.emit(this.searchTerm);
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
|
+
CentralizedContainerComponent.ɵfac = function CentralizedContainerComponent_Factory(t) { return new (t || CentralizedContainerComponent)(); };
|
|
41
|
+
CentralizedContainerComponent.ɵcmp = i0.ɵɵdefineComponent({ type: CentralizedContainerComponent, selectors: [["centralized-container"]], viewQuery: function CentralizedContainerComponent_Query(rf, ctx) { if (rf & 1) {
|
|
42
|
+
i0.ɵɵstaticViewQuery(NgScrollbar, true);
|
|
43
|
+
} if (rf & 2) {
|
|
44
|
+
var _t;
|
|
45
|
+
i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.scrollbarRef = _t.first);
|
|
46
|
+
} }, inputs: { hasSearch: "hasSearch", ignoreZoom: "ignoreZoom" }, outputs: { searchChanged: "searchChanged" }, ngContentSelectors: _c1, decls: 5, vars: 5, consts: [[1, "centralized-container", 3, "ngClass"], [3, "visibility"], [1, "list-content"], ["class", "list-search", 4, "ngIf"], [1, "list-search"], ["matInput", "", "type", "search", 3, "ngModel", "ngModelChange"], ["matSuffix", "", 1, "search-icon"]], template: function CentralizedContainerComponent_Template(rf, ctx) { if (rf & 1) {
|
|
47
|
+
i0.ɵɵprojectionDef();
|
|
48
|
+
i0.ɵɵelementStart(0, "div", 0);
|
|
49
|
+
i0.ɵɵelementStart(1, "ng-scrollbar", 1);
|
|
50
|
+
i0.ɵɵelementStart(2, "div", 2);
|
|
51
|
+
i0.ɵɵtemplate(3, CentralizedContainerComponent_div_3_Template, 5, 1, "div", 3);
|
|
52
|
+
i0.ɵɵprojection(4);
|
|
53
|
+
i0.ɵɵelementEnd();
|
|
54
|
+
i0.ɵɵelementEnd();
|
|
55
|
+
i0.ɵɵelementEnd();
|
|
56
|
+
} if (rf & 2) {
|
|
57
|
+
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(3, _c0, !ctx.ignoreZoom));
|
|
58
|
+
i0.ɵɵadvance(1);
|
|
59
|
+
i0.ɵɵproperty("visibility", "hover");
|
|
60
|
+
i0.ɵɵadvance(2);
|
|
61
|
+
i0.ɵɵproperty("ngIf", ctx.hasSearch);
|
|
62
|
+
} }, directives: [i1.NgClass, i2.NgScrollbar, i1.NgIf, i3.MatFormField, i4.MatInput, i5.DefaultValueAccessor, i5.NgControlStatus, i5.NgModel, i6.MatIcon, i3.MatSuffix], styles: [".centralized-container[_ngcontent-%COMP%]{display:flex;height:calc(100% - 70px);padding-left:15px;padding-right:15px}.centralized-container.centralized-container-zoom[_ngcontent-%COMP%]{font-size:62.5%}.centralized-container[_ngcontent-%COMP%] > ng-scrollbar[_ngcontent-%COMP%]{width:100%}.centralized-container[_ngcontent-%COMP%] .list-content[_ngcontent-%COMP%]{box-sizing:border-box;display:flex;flex-direction:column;height:100%;padding:30px 25px 25px}.centralized-container[_ngcontent-%COMP%] .list-content[_ngcontent-%COMP%] .list-search[_ngcontent-%COMP%]{font-size:1.4em;place-self:flex-end;position:absolute;width:21%}.centralized-container[_ngcontent-%COMP%] .list-content[_ngcontent-%COMP%] .list-search[_ngcontent-%COMP%] mat-form-field[_ngcontent-%COMP%]{width:100%}.centralized-container[_ngcontent-%COMP%] .list-content[_ngcontent-%COMP%] .list-search[_ngcontent-%COMP%] mat-form-field[_ngcontent-%COMP%] .search-icon[_ngcontent-%COMP%]{font-size:1.8rem;opacity:.5}[_nghost-%COMP%] .list-search mat-form-field.mat-form-field-appearance-legacy .mat-form-field-wrapper .mat-form-field-underline{background-color:var(--color-tertiary)}"] });
|
|
63
|
+
/*@__PURE__*/ (function () { i0.ɵsetClassMetadata(CentralizedContainerComponent, [{
|
|
64
|
+
type: Component,
|
|
65
|
+
args: [{
|
|
66
|
+
selector: 'centralized-container',
|
|
67
|
+
templateUrl: 'centralized-container.component.html',
|
|
68
|
+
styleUrls: ['centralized-container.component.scss']
|
|
69
|
+
}]
|
|
70
|
+
}], null, { hasSearch: [{
|
|
71
|
+
type: Input
|
|
72
|
+
}], ignoreZoom: [{
|
|
73
|
+
type: Input
|
|
74
|
+
}], searchChanged: [{
|
|
75
|
+
type: Output
|
|
76
|
+
}], scrollbarRef: [{
|
|
77
|
+
type: ViewChild,
|
|
78
|
+
args: [NgScrollbar, { static: true }]
|
|
79
|
+
}] }); })();
|
|
80
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiY2VudHJhbGl6ZWQtY29udGFpbmVyLmNvbXBvbmVudC5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uL3Byb2plY3RzL2NvbnRhaW5lcnMvc3JjL2NlbnRyYWxpemVkLWNvbnRhaW5lci9jZW50cmFsaXplZC1jb250YWluZXIuY29tcG9uZW50LnRzIiwiLi4vLi4vLi4vLi4vcHJvamVjdHMvY29udGFpbmVycy9zcmMvY2VudHJhbGl6ZWQtY29udGFpbmVyL2NlbnRyYWxpemVkLWNvbnRhaW5lci5jb21wb25lbnQuaHRtbCJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxPQUFPLEVBQUMsU0FBUyxFQUFFLFlBQVksRUFBRSxLQUFLL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