@datarailsshared/datarailsshared 1.3.8 → 1.3.11
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/_datarailsshared.styles.css +4 -0
- package/assets/styles/_styles.scss +2 -0
- package/bundles/datarailsshared-datarailsshared.umd.js +217 -71
- package/bundles/datarailsshared-datarailsshared.umd.js.map +1 -1
- package/datarailsshared-datarailsshared-1.3.11.tgz +0 -0
- package/datarailsshared-datarailsshared.metadata.json +1 -1
- package/esm2015/lib/dr-avatar/dr-avatar.component.js +17 -10
- package/esm2015/lib/dr-dropdown/dr-dropdown.component.js +5 -3
- package/esm2015/lib/dr-inputs/dr-date-picker/dr-date-picker.component.js +2 -2
- package/esm2015/lib/dr-inputs/dr-input/dr-input.component.js +17 -21
- package/esm2015/lib/dr-inputs/dr-toggle/dr-toggle.component.js +2 -2
- package/esm2015/lib/dr-popover/dr-popover-ref.js +15 -0
- package/esm2015/lib/dr-popover/dr-popover.component.js +23 -20
- package/esm2015/lib/dr-popover/dr-popover.directive.js +65 -20
- package/esm2015/lib/dr-popover/dr-popover.module.js +4 -4
- package/esm2015/lib/dr-tabs/dr-tab.component.js +23 -0
- package/esm2015/lib/dr-tabs/dr-tabs.component.js +27 -0
- package/esm2015/lib/dr-tabs/dr-tabs.module.js +30 -0
- package/esm2015/lib/models/popover.js +2 -0
- package/esm2015/public-api.js +5 -1
- package/fesm2015/datarailsshared-datarailsshared.js +207 -71
- package/fesm2015/datarailsshared-datarailsshared.js.map +1 -1
- package/lib/dr-avatar/dr-avatar.component.d.ts +4 -2
- package/lib/dr-inputs/dr-input/dr-input.component.d.ts +11 -13
- package/lib/dr-inputs/dr-toggle/dr-toggle.component.d.ts +1 -1
- package/lib/dr-popover/dr-popover-ref.d.ts +12 -0
- package/lib/dr-popover/dr-popover.component.d.ts +8 -5
- package/lib/dr-popover/dr-popover.directive.d.ts +20 -9
- package/lib/dr-tabs/dr-tab.component.d.ts +8 -0
- package/lib/dr-tabs/dr-tabs.component.d.ts +10 -0
- package/lib/dr-tabs/dr-tabs.module.d.ts +2 -0
- package/lib/models/popover.d.ts +1 -0
- package/package.json +1 -1
- package/public-api.d.ts +4 -0
- package/datarailsshared-datarailsshared-1.3.8.tgz +0 -0
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
(function (global, factory) {
|
|
2
|
-
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('@angular/core'), require('@angular/forms'), require('@angular/material/core'), require('@angular/material-moment-adapter'), require('moment'), require('@angular/animations'), require('@angular/cdk/overlay'), require('@angular/cdk/portal'), require('@angular/common'), require('rxjs'), require('@angular/material/datepicker'), require('@angular/material/form-field'), require('@angular/material/input'), require('@angular/material/select'), require('@angular/material/button-toggle'), require('@ng-select/ng-select'), require('@angular/material/tooltip')) :
|
|
3
|
-
typeof define === 'function' && define.amd ? define('@datarailsshared/datarailsshared', ['exports', '@angular/core', '@angular/forms', '@angular/material/core', '@angular/material-moment-adapter', 'moment', '@angular/animations', '@angular/cdk/overlay', '@angular/cdk/portal', '@angular/common', 'rxjs', '@angular/material/datepicker', '@angular/material/form-field', '@angular/material/input', '@angular/material/select', '@angular/material/button-toggle', '@ng-select/ng-select', '@angular/material/tooltip'], factory) :
|
|
4
|
-
(global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory((global.datarailsshared = global.datarailsshared || {}, global.datarailsshared.datarailsshared = {}), global.ng.core, global.ng.forms, global.ng.material.core, global.ng.materialMomentAdapter, global.momentImported, global.ng.animations, global.ng.cdk.overlay, global.ng.cdk.portal, global.ng.common, global.rxjs, global.ng.material.datepicker, global.ng.material.formField, global.ng.material.input, global.ng.material.select, global.ng.material.buttonToggle, global.ngSelect, global.ng.material.tooltip));
|
|
5
|
-
}(this, (function (exports, i0, forms, core, materialMomentAdapter, momentImported, animations, overlay, portal, common, rxjs, datepicker, formField, input, select, buttonToggle, ngSelect, tooltip) { 'use strict';
|
|
2
|
+
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('@angular/core'), require('@angular/forms'), require('@angular/material/core'), require('@angular/material-moment-adapter'), require('moment'), require('@angular/animations'), require('@angular/cdk/overlay'), require('@angular/cdk/portal'), require('@angular/common'), require('rxjs'), require('rxjs/operators'), require('@angular/material/datepicker'), require('@angular/material/form-field'), require('@angular/material/input'), require('@angular/material/select'), require('@angular/material/button-toggle'), require('@ng-select/ng-select'), require('@angular/material/tooltip'), require('@angular/material/tabs')) :
|
|
3
|
+
typeof define === 'function' && define.amd ? define('@datarailsshared/datarailsshared', ['exports', '@angular/core', '@angular/forms', '@angular/material/core', '@angular/material-moment-adapter', 'moment', '@angular/animations', '@angular/cdk/overlay', '@angular/cdk/portal', '@angular/common', 'rxjs', 'rxjs/operators', '@angular/material/datepicker', '@angular/material/form-field', '@angular/material/input', '@angular/material/select', '@angular/material/button-toggle', '@ng-select/ng-select', '@angular/material/tooltip', '@angular/material/tabs'], factory) :
|
|
4
|
+
(global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory((global.datarailsshared = global.datarailsshared || {}, global.datarailsshared.datarailsshared = {}), global.ng.core, global.ng.forms, global.ng.material.core, global.ng.materialMomentAdapter, global.momentImported, global.ng.animations, global.ng.cdk.overlay, global.ng.cdk.portal, global.ng.common, global.rxjs, global.rxjs.operators, global.ng.material.datepicker, global.ng.material.formField, global.ng.material.input, global.ng.material.select, global.ng.material.buttonToggle, global.ngSelect, global.ng.material.tooltip, global.ng.material.tabs));
|
|
5
|
+
}(this, (function (exports, i0, forms, core, materialMomentAdapter, momentImported, animations, overlay, portal, common, rxjs, operators, datepicker, formField, input, select, buttonToggle, ngSelect, tooltip, tabs) { 'use strict';
|
|
6
6
|
|
|
7
7
|
function _interopNamespace(e) {
|
|
8
8
|
if (e && e.__esModule) return e;
|
|
@@ -1270,6 +1270,11 @@
|
|
|
1270
1270
|
this.elementRef = elementRef;
|
|
1271
1271
|
this.renderer = renderer;
|
|
1272
1272
|
this.cdr = cdr;
|
|
1273
|
+
this.type = 'string';
|
|
1274
|
+
this.placeholder = '';
|
|
1275
|
+
this.readonly = false;
|
|
1276
|
+
this.clearable = false;
|
|
1277
|
+
this.blur = new i0.EventEmitter();
|
|
1273
1278
|
this.value = null;
|
|
1274
1279
|
this._disabled = null;
|
|
1275
1280
|
this._elementClass = [];
|
|
@@ -1280,17 +1285,11 @@
|
|
|
1280
1285
|
checkFocusOut: function (target, element) { return true; },
|
|
1281
1286
|
text: 'Save'
|
|
1282
1287
|
};
|
|
1283
|
-
this.onChange = function () { };
|
|
1284
|
-
this.onTouched = function () { };
|
|
1285
|
-
this.type = 'string';
|
|
1286
|
-
this.placeholder = '';
|
|
1287
|
-
this.readonly = false;
|
|
1288
|
-
this.clearable = false;
|
|
1289
|
-
this.min = null;
|
|
1290
|
-
this.max = null;
|
|
1291
1288
|
this.searchHandler = new i0.EventEmitter();
|
|
1292
1289
|
this.buttonHandler = new i0.EventEmitter();
|
|
1293
1290
|
this.tabindex = -1;
|
|
1291
|
+
this.onChange = function () { };
|
|
1292
|
+
this.onTouched = function () { };
|
|
1294
1293
|
}
|
|
1295
1294
|
Object.defineProperty(DrInputComponent.prototype, "disabled", {
|
|
1296
1295
|
set: function (value) {
|
|
@@ -1299,7 +1298,6 @@
|
|
|
1299
1298
|
enumerable: false,
|
|
1300
1299
|
configurable: true
|
|
1301
1300
|
});
|
|
1302
|
-
;
|
|
1303
1301
|
Object.defineProperty(DrInputComponent.prototype, "buttonOptions", {
|
|
1304
1302
|
set: function (value) {
|
|
1305
1303
|
var _this = this;
|
|
@@ -1328,7 +1326,6 @@
|
|
|
1328
1326
|
enumerable: false,
|
|
1329
1327
|
configurable: true
|
|
1330
1328
|
});
|
|
1331
|
-
;
|
|
1332
1329
|
Object.defineProperty(DrInputComponent.prototype, "elementClass", {
|
|
1333
1330
|
get: function () {
|
|
1334
1331
|
return this._elementClass.join(' ');
|
|
@@ -1396,14 +1393,14 @@
|
|
|
1396
1393
|
DrInputComponent.decorators = [
|
|
1397
1394
|
{ type: i0.Component, args: [{
|
|
1398
1395
|
selector: 'dr-input',
|
|
1399
|
-
template: "<ng-content select=\"[prefixIcon]\"></ng-content>\r\n<input [(ngModel)]=\"value\"\r\n (ngModelChange)=\"updateChanges()\"\r\n (blur)=\"onTouched()\"\r\n [disabled]=\"_disabled\"\r\n [readonly]=\"readonly\"\r\n [type]=\"type\"\r\n [placeholder]=\"placeholder\"\r\n [
|
|
1396
|
+
template: "<ng-content select=\"[prefixIcon]\"></ng-content>\r\n<input [(ngModel)]=\"value\"\r\n (ngModelChange)=\"updateChanges()\"\r\n (blur)=\"blur.emit(value); onTouched()\"\r\n [disabled]=\"_disabled\"\r\n [readonly]=\"readonly\"\r\n [type]=\"type\"\r\n [placeholder]=\"placeholder\"\r\n [name]=\"name\"\r\n>\r\n<span class=\"clear-icon\" (click)=\"writeValue(null)\"></span>\r\n<span *ngIf=\"type === 'search'\" class=\"search-icon\" (click)=\"onSearchClicked($event)\"></span>\r\n<ng-content select=\"[suffixIcon]\"></ng-content>\r\n<button *ngIf=\"_buttonOptions.show || (_buttonOptions.showOnFocus && _buttonOptions.focusSet)\"\r\n (click)=\"onButtonClicked($event)\">\r\n {{_buttonOptions.text}}\r\n</button>\r\n",
|
|
1400
1397
|
providers: [{
|
|
1401
1398
|
provide: forms.NG_VALUE_ACCESSOR,
|
|
1402
1399
|
useExisting: i0.forwardRef(function () { return DrInputComponent; }),
|
|
1403
1400
|
multi: true
|
|
1404
1401
|
}],
|
|
1405
1402
|
changeDetection: i0.ChangeDetectionStrategy.OnPush,
|
|
1406
|
-
styles: [":host{position:relative;width:100%;display:flex;flex-direction:row;min-height:32px;height:32px;font-size:14px;font-family:\"Nunito Sans\",sans-serif;border:1px solid #C3C4CE;border-radius:6px;color:#85889c;padding:0 8px;overflow:hidden}:host:hover{border-color:#85889c}:host:focus-within{border-color:#21b8f1!important;color:#151b3f}:host.disabled{pointer-events:none;border:none;color:#85889c;background:#E5E6EA}:host.ng-valid.ng-dirty{border-color:#03a678}:host.ng-invalid.ng-dirty:not(:focus-within){border-color:#de2833!important}:host.ng-untouched.ng-valid{border-color:#c3c4ce}:host input{display:flex;flex-grow:1;height:100%;border:none;padding:4px 0;text-align:left}:host input:disabled{border:none;color:#85889c;background:transparent}:host input::-webkit-search-decoration,:host input::-webkit-search-cancel-button,:host input::-webkit-search-results-button,:host input::-webkit-search-results-decoration{-webkit-appearance:none}:host .clear-icon{visibility:hidden}:host.clearable .clear-icon,:host.ng-touched.ng-invalid .clear-icon{visibility:visible;content:url('data:image/svg+xml; utf8, <svg width=\"10\" height=\"10\" viewBox=\"0 0 10 10\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\"><path d=\"M5.91783 5.00001L9.03353 1.88395C9.11924 1.79818 9.16651 1.68374 9.16665 1.56171C9.16665 1.43962 9.11937 1.32504 9.03353 1.2394L8.76047 0.966415C8.67463 0.880433 8.56023 0.833344 8.43808 0.833344C8.31612 0.833344 8.20166 0.880433 8.11582 0.966415L5.00013 4.08227L1.88428 0.966415C1.79858 0.880433 1.68404 0.833344 1.56196 0.833344C1.44001 0.833344 1.32556 0.880433 1.23985 0.966415L0.966646 1.2394C0.788869 1.41719 0.788869 1.70637 0.966646 1.88395L4.08242 5.00001L0.966646 8.11593C0.880873 8.20184 0.833677 8.31628 0.833677 8.43831C0.833677 8.56034 0.880873 8.67478 0.966646 8.76062L1.23978 9.03361C1.32548 9.11952 1.44 9.16668 1.56188 9.16668C1.68397 9.16668 1.7985 9.11952 1.88421 9.03361L5.00005 5.91769L8.11575 9.03361C8.20159 9.11952 8.31605 9.16668 8.438 9.16668H8.43815C8.56017 9.16668 8.67456 9.11952 8.7604 9.03361L9.03346 8.76062C9.11916 8.67484 9.16643 8.56034 9.16643 8.43831C9.16643 8.31628 9.11916 8.20184 9.03346 8.116L5.91783 5.00001Z\" fill=\"%2351566F\"/></svg> ');margin:auto 8px;cursor:pointer}:host span+span,:host span+img{margin-left:0}:host.search-type{padding:0 16px;border-radius:16px}:host.search-type.ng-valid{border-color:#c3c4ce}:host.search-type .search-icon{content:url('data:image/svg+xml; utf8, <svg width=\"16\" height=\"16\" viewBox=\"0 0 16 16\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\"><path d=\"M11.5816 10.2097C11.4878 10.1157 11.3605 10.0629 11.2277 10.0629H10.8175C10.7473 10.0629 10.6799 10.035 10.6303 9.98534C10.5322 9.88724 10.527 9.73044 10.6132 9.62178C11.4154 8.6112 11.8925 7.33534 11.8925 5.94625C11.8925 2.66209 9.23042 0 5.94625 0C2.66209 0 0 2.66209 0 5.94625C0 9.23042 2.66209 11.8925 5.94625 11.8925C7.33523 11.8925 8.611 11.4155 9.62155 10.6172C9.7304 10.5312 9.88711 10.5366 9.9852 10.6347C10.0349 10.6845 10.0629 10.7519 10.0629 10.8223V11.2277C10.0629 11.3605 10.1157 11.4878 10.2097 11.5816L14.2834 15.6472C14.4787 15.8421 14.795 15.8419 14.9901 15.6468L15.6468 14.9901C15.8419 14.795 15.8421 14.4787 15.6472 14.2834L11.5816 10.2097ZM5.94625 10.0629C3.67296 10.0629 1.82962 8.21955 1.82962 5.94625C1.82962 3.67296 3.67296 1.82962 5.94625 1.82962C8.21955 1.82962 10.0629 3.67296 10.0629 5.94625C10.0629 8.21955 8.21955 10.0629 5.94625 10.0629Z\" fill=\"%23BCBCBC\"/></svg> ');margin:auto 0 auto 8px;cursor:pointer}:host.with-button{padding-right:0}:host.with-button button{color:#0061ff;background:#F6F7F8;height:100%;width:auto;padding:0 8px;display:flex;align-items:center;border:none;border-left:1px solid #C3C4CE}:host ::ng-deep img[prefixIcon],:host ::ng-deep img[suffixIcon],:host ::ng-deep i[prefixIcon],:host ::ng-deep i[suffixIcon]{position:relative;margin:auto 8px}:host ::ng-deep img[prefixIcon],:host ::ng-deep i[prefixIcon]{margin-left:0}:host ::ng-deep img[suffixIcon],:host ::ng-deep i[suffixIcon]{margin-right:0}\n"]
|
|
1403
|
+
styles: [":host{position:relative;width:100%;display:flex;flex-direction:row;min-height:32px;height:32px;font-size:14px;font-family:\"Nunito Sans\",sans-serif;border:1px solid #C3C4CE;border-radius:6px;color:#85889c;padding:0 8px;overflow:hidden;outline:none}:host:hover{border-color:#85889c}:host:focus-within{border-color:#21b8f1!important;color:#151b3f}:host.disabled{pointer-events:none;border:none;color:#85889c;background:#E5E6EA}:host.ng-valid.ng-dirty{border-color:#03a678}:host.ng-invalid.ng-dirty:not(:focus-within){border-color:#de2833!important}:host.ng-untouched.ng-valid{border-color:#c3c4ce}:host input{display:flex;flex-grow:1;height:100%;border:none;padding:4px 0;text-align:left}:host input:disabled{border:none;color:#85889c;background:transparent}:host input::-webkit-search-decoration,:host input::-webkit-search-cancel-button,:host input::-webkit-search-results-button,:host input::-webkit-search-results-decoration{-webkit-appearance:none}:host .clear-icon{visibility:hidden}:host.clearable .clear-icon,:host.ng-touched.ng-invalid .clear-icon{visibility:visible;content:url('data:image/svg+xml; utf8, <svg width=\"10\" height=\"10\" viewBox=\"0 0 10 10\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\"><path d=\"M5.91783 5.00001L9.03353 1.88395C9.11924 1.79818 9.16651 1.68374 9.16665 1.56171C9.16665 1.43962 9.11937 1.32504 9.03353 1.2394L8.76047 0.966415C8.67463 0.880433 8.56023 0.833344 8.43808 0.833344C8.31612 0.833344 8.20166 0.880433 8.11582 0.966415L5.00013 4.08227L1.88428 0.966415C1.79858 0.880433 1.68404 0.833344 1.56196 0.833344C1.44001 0.833344 1.32556 0.880433 1.23985 0.966415L0.966646 1.2394C0.788869 1.41719 0.788869 1.70637 0.966646 1.88395L4.08242 5.00001L0.966646 8.11593C0.880873 8.20184 0.833677 8.31628 0.833677 8.43831C0.833677 8.56034 0.880873 8.67478 0.966646 8.76062L1.23978 9.03361C1.32548 9.11952 1.44 9.16668 1.56188 9.16668C1.68397 9.16668 1.7985 9.11952 1.88421 9.03361L5.00005 5.91769L8.11575 9.03361C8.20159 9.11952 8.31605 9.16668 8.438 9.16668H8.43815C8.56017 9.16668 8.67456 9.11952 8.7604 9.03361L9.03346 8.76062C9.11916 8.67484 9.16643 8.56034 9.16643 8.43831C9.16643 8.31628 9.11916 8.20184 9.03346 8.116L5.91783 5.00001Z\" fill=\"%2351566F\"/></svg> ');margin:auto 8px;cursor:pointer}:host span+span,:host span+img{margin-left:0}:host.search-type{padding:0 16px;border-radius:16px}:host.search-type.ng-valid{border-color:#c3c4ce}:host.search-type .search-icon{content:url('data:image/svg+xml; utf8, <svg width=\"16\" height=\"16\" viewBox=\"0 0 16 16\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\"><path d=\"M11.5816 10.2097C11.4878 10.1157 11.3605 10.0629 11.2277 10.0629H10.8175C10.7473 10.0629 10.6799 10.035 10.6303 9.98534C10.5322 9.88724 10.527 9.73044 10.6132 9.62178C11.4154 8.6112 11.8925 7.33534 11.8925 5.94625C11.8925 2.66209 9.23042 0 5.94625 0C2.66209 0 0 2.66209 0 5.94625C0 9.23042 2.66209 11.8925 5.94625 11.8925C7.33523 11.8925 8.611 11.4155 9.62155 10.6172C9.7304 10.5312 9.88711 10.5366 9.9852 10.6347C10.0349 10.6845 10.0629 10.7519 10.0629 10.8223V11.2277C10.0629 11.3605 10.1157 11.4878 10.2097 11.5816L14.2834 15.6472C14.4787 15.8421 14.795 15.8419 14.9901 15.6468L15.6468 14.9901C15.8419 14.795 15.8421 14.4787 15.6472 14.2834L11.5816 10.2097ZM5.94625 10.0629C3.67296 10.0629 1.82962 8.21955 1.82962 5.94625C1.82962 3.67296 3.67296 1.82962 5.94625 1.82962C8.21955 1.82962 10.0629 3.67296 10.0629 5.94625C10.0629 8.21955 8.21955 10.0629 5.94625 10.0629Z\" fill=\"%23BCBCBC\"/></svg> ');margin:auto 0 auto 8px;cursor:pointer}:host.with-button{padding-right:0}:host.with-button button{color:#0061ff;background:#F6F7F8;height:100%;width:auto;padding:0 8px;display:flex;align-items:center;border:none;border-left:1px solid #C3C4CE}:host ::ng-deep img[prefixIcon],:host ::ng-deep img[suffixIcon],:host ::ng-deep i[prefixIcon],:host ::ng-deep i[suffixIcon]{position:relative;margin:auto 8px}:host ::ng-deep img[prefixIcon],:host ::ng-deep i[prefixIcon]{margin-left:0}:host ::ng-deep img[suffixIcon],:host ::ng-deep i[suffixIcon]{margin-right:0}\n"]
|
|
1407
1404
|
},] }
|
|
1408
1405
|
];
|
|
1409
1406
|
DrInputComponent.ctorParameters = function () { return [
|
|
@@ -1412,21 +1409,20 @@
|
|
|
1412
1409
|
{ type: i0.ChangeDetectorRef }
|
|
1413
1410
|
]; };
|
|
1414
1411
|
DrInputComponent.propDecorators = {
|
|
1412
|
+
disabled: [{ type: i0.Input }],
|
|
1413
|
+
buttonOptions: [{ type: i0.Input }],
|
|
1415
1414
|
type: [{ type: i0.Input }],
|
|
1415
|
+
name: [{ type: i0.Input }],
|
|
1416
1416
|
placeholder: [{ type: i0.Input }],
|
|
1417
1417
|
readonly: [{ type: i0.Input }],
|
|
1418
1418
|
clearable: [{ type: i0.Input }],
|
|
1419
|
-
|
|
1420
|
-
|
|
1421
|
-
matDatePicker: [{ type: i0.Input }],
|
|
1422
|
-
disabled: [{ type: i0.Input }],
|
|
1423
|
-
buttonOptions: [{ type: i0.Input }],
|
|
1419
|
+
blur: [{ type: i0.Output }],
|
|
1420
|
+
elementClass: [{ type: i0.HostBinding, args: ['class',] }],
|
|
1424
1421
|
searchHandler: [{ type: i0.Output }],
|
|
1425
1422
|
buttonHandler: [{ type: i0.Output }],
|
|
1426
1423
|
prefixIcon: [{ type: i0.ContentChild, args: ['prefix', { static: false },] }],
|
|
1427
1424
|
suffixIcon: [{ type: i0.ContentChild, args: ['suffix', { static: false },] }],
|
|
1428
|
-
tabindex: [{ type: i0.HostBinding, args: ['tabindex',] }]
|
|
1429
|
-
elementClass: [{ type: i0.HostBinding, args: ['class',] }]
|
|
1425
|
+
tabindex: [{ type: i0.HostBinding, args: ['tabindex',] }]
|
|
1430
1426
|
};
|
|
1431
1427
|
|
|
1432
1428
|
var DrSelectComponent = /** @class */ (function () {
|
|
@@ -1494,23 +1490,34 @@
|
|
|
1494
1490
|
|
|
1495
1491
|
var DrAvatarComponent = /** @class */ (function () {
|
|
1496
1492
|
function DrAvatarComponent() {
|
|
1497
|
-
this.users = [];
|
|
1498
1493
|
this.userClicked = new i0.EventEmitter();
|
|
1494
|
+
this.parsedUsers = [];
|
|
1499
1495
|
}
|
|
1496
|
+
Object.defineProperty(DrAvatarComponent.prototype, "users", {
|
|
1497
|
+
set: function (user) {
|
|
1498
|
+
if (user) {
|
|
1499
|
+
this.parsedUsers = this.parseUsers(user);
|
|
1500
|
+
}
|
|
1501
|
+
},
|
|
1502
|
+
enumerable: false,
|
|
1503
|
+
configurable: true
|
|
1504
|
+
});
|
|
1500
1505
|
DrAvatarComponent.prototype.ngOnChanges = function (changes) {
|
|
1501
1506
|
var _this = this;
|
|
1502
|
-
|
|
1503
|
-
|
|
1504
|
-
this.getFirstUsers().forEach(function (user, index) { return user.class = "icon-" + index; });
|
|
1507
|
+
if (changes.users) {
|
|
1508
|
+
this.getFirstUsers().forEach(function (user) { return user.class = "icon-" + _this.getRandomValue(5); });
|
|
1505
1509
|
this.getLastUsers().forEach(function (user) { return user.class = "icon-" + _this.getRandomValue(5); });
|
|
1506
1510
|
}
|
|
1507
1511
|
};
|
|
1512
|
+
DrAvatarComponent.prototype.parseUsers = function (value) {
|
|
1513
|
+
return Array.isArray(value) ? value : Array.of(value);
|
|
1514
|
+
};
|
|
1508
1515
|
DrAvatarComponent.prototype.getFirstUsers = function () {
|
|
1509
|
-
return this.
|
|
1516
|
+
return this.parsedUsers.slice(0, 2);
|
|
1510
1517
|
};
|
|
1511
1518
|
DrAvatarComponent.prototype.getLastUsers = function () {
|
|
1512
|
-
if (this.
|
|
1513
|
-
return this.
|
|
1519
|
+
if (this.parsedUsers.length > 2) {
|
|
1520
|
+
return this.parsedUsers.slice(2, this.parsedUsers.length - 1);
|
|
1514
1521
|
}
|
|
1515
1522
|
return [];
|
|
1516
1523
|
};
|
|
@@ -1522,7 +1529,7 @@
|
|
|
1522
1529
|
DrAvatarComponent.decorators = [
|
|
1523
1530
|
{ type: i0.Component, args: [{
|
|
1524
1531
|
selector: 'dr-avatar',
|
|
1525
|
-
template: "<div class=\"users-section\">\r\n <div class=\"users-section__user\"\r\n [class]=\"user.class\"\r\n *ngFor=\"let user of getFirstUsers()\"\r\n (click)=\"userClicked.emit()\"\r\n [matTooltip]=\"user.first_name + ' ' + user.last_name\"\r\n [matTooltipPosition]=\"'below'\">\r\n {{user.first_name[0] + user.last_name[0]}}\r\n </div>\r\n\r\n <div class=\"users-section__user icon-2\" *ngIf=\"
|
|
1532
|
+
template: "<div class=\"users-section\">\r\n <div class=\"users-section__user\"\r\n [class]=\"user.class\"\r\n *ngFor=\"let user of getFirstUsers()\"\r\n (click)=\"userClicked.emit()\"\r\n [matTooltip]=\"user.first_name + ' ' + user.last_name\"\r\n [matTooltipPosition]=\"'below'\">\r\n {{user.first_name[0] + user.last_name[0]}}\r\n </div>\r\n\r\n <div class=\"users-section__user icon-2\" *ngIf=\"parsedUsers.length > 2\"\r\n [drTooltip]=\"usersTemplate\"\r\n [drTooltipPosition]=\"'bottom'\">\r\n {{getLastUsers().length}}\r\n </div>\r\n</div>\r\n\r\n<ng-template #usersTemplate>\r\n <div *ngFor=\"let user of getLastUsers()\" class=\"users-popover-item\">\r\n <div class=\"users-section__user\"\r\n (click)=\"userClicked.emit()\"\r\n [class]=\"user.class\">\r\n {{user.first_name[0] + user.last_name[0]}}\r\n </div>\r\n <span class=\"username\">\r\n {{user.first_name + ' ' + user.last_name}}\r\n </span>\r\n </div>\r\n</ng-template>\r\n",
|
|
1526
1533
|
changeDetection: i0.ChangeDetectionStrategy.OnPush,
|
|
1527
1534
|
styles: [":host{width:auto}.users-section{display:flex;position:absolute;height:28px;top:5px}.users-popover-item{display:flex;align-items:center;margin:12px}.users-popover-item .username{color:#51566f;font-size:14px}.users-popover-item .users-section__user{margin-right:8px}.users-section__user{display:flex;justify-content:center;align-items:center;height:28px;width:28px;border-radius:14px;background:red;color:#fff;font-size:12px}.users-section__user.icon-0{background-color:#7b61ff}.users-section__user.icon-1{background-color:#21b8f1}.users-section__user.icon-2{background-color:#2969b0}.users-section__user.icon-3{background-color:#51566f}.users-section__user.icon-4{background-color:#0061ff}.users-section__user:hover{cursor:pointer}.users-section__user:not(:first-child){margin-left:4px}\n"]
|
|
1528
1535
|
},] }
|
|
@@ -1807,7 +1814,7 @@
|
|
|
1807
1814
|
{ provide: forms.NG_VALUE_ACCESSOR, useExisting: DrToggleComponent, multi: true }
|
|
1808
1815
|
],
|
|
1809
1816
|
changeDetection: i0.ChangeDetectionStrategy.OnPush,
|
|
1810
|
-
styles: [":host{display:flex;justify-content:space-between;align-items:center}:host .toggle-container.disabled{pointer-events:none}:host .toggle-container.disabled .toggle-body{background-color:#8f9bb329!important}:host .toggle-container.disabled .toggle-body i{background:rgba(143,155,179,.24)!important}:host .toggle-container.success input:checked+span.toggle-body{background-color:#03a678}:host .toggle-container input{display:none}:host .toggle-container input:checked+span.toggle-body>i,:host .toggle-container input:checked+span.toggle-body:active>i{margin-left:16px}:host .toggle-container input:checked+span.toggle-body{background-color:#579bf2}:host .toggle-container .toggle-body{cursor:pointer;display:block;width:30px;height:16px;margin:7px auto;border-radius:15px;transition:all .2s ease-in-out;-webkit-transition:all .2s ease-in-out;background-color:#aeb5bb}:host .toggle-container .toggle-body:active{background-color:#a6b9cb}:host .toggle-container .toggle-body-wrapper{display:flex;flex-direction:column}:host .toggle-container .toggle-body i{height:12px;width:12px;background:#fff;display:inline-block;border-radius:100px;margin-top:
|
|
1817
|
+
styles: [":host{display:flex;justify-content:space-between;align-items:center}:host .toggle-container.disabled{pointer-events:none}:host .toggle-container.disabled .toggle-body{background-color:#8f9bb329!important}:host .toggle-container.disabled .toggle-body i{background:rgba(143,155,179,.24)!important}:host .toggle-container.success input:checked+span.toggle-body{background-color:#03a678}:host .toggle-container input{display:none}:host .toggle-container input:checked+span.toggle-body>i,:host .toggle-container input:checked+span.toggle-body:active>i{margin-left:16px}:host .toggle-container input:checked+span.toggle-body{background-color:#579bf2}:host .toggle-container .toggle-body{cursor:pointer;display:block;width:30px;height:16px;margin:7px auto;border-radius:15px;transition:all .2s ease-in-out;-webkit-transition:all .2s ease-in-out;background-color:#aeb5bb;line-height:1}:host .toggle-container .toggle-body:active{background-color:#a6b9cb}:host .toggle-container .toggle-body-wrapper{display:flex;flex-direction:column}:host .toggle-container .toggle-body i{height:12px;width:12px;background:#fff;display:inline-block;border-radius:100px;margin-top:2px;margin-left:1.5px;transition:all .2s ease-in-out;-webkit-transition:all .2s ease-in-out;pointer-events:none}\n"]
|
|
1811
1818
|
},] }
|
|
1812
1819
|
];
|
|
1813
1820
|
DrToggleComponent.ctorParameters = function () { return [
|
|
@@ -2113,7 +2120,7 @@
|
|
|
2113
2120
|
DrDatePickerComponent.decorators = [
|
|
2114
2121
|
{ type: i0.Component, args: [{
|
|
2115
2122
|
selector: 'new-dr-date-picker',
|
|
2116
|
-
template: " <dr-input\r\n (click)=\"datePicker.open()\"\r\n [(ngModel)]=\"value\"\r\n [
|
|
2123
|
+
template: " <dr-input\r\n (click)=\"datePicker.open()\"\r\n [(ngModel)]=\"value\"\r\n [placeholder]=\"placeholder\"\r\n [drDatePickerFormat]=\"_format\"\r\n [readonly]=\"readonly\"\r\n ></dr-input>\r\n <mat-datepicker\r\n #datePicker startView=\"{{_lastView}}\"\r\n (yearSelected)=\"chosenYearHandler($event, datePicker)\"\r\n (monthSelected)=\"chosenMonthHandler($event, datePicker)\">\r\n </mat-datepicker>\r\n\r\n",
|
|
2117
2124
|
changeDetection: i0.ChangeDetectionStrategy.OnPush,
|
|
2118
2125
|
providers: [
|
|
2119
2126
|
{ provide: forms.NG_VALUE_ACCESSOR, useExisting: DrDatePickerComponent, multi: true }
|
|
@@ -2180,11 +2187,28 @@
|
|
|
2180
2187
|
datePickerFormat: [{ type: i0.Input, args: ['drDatePickerFormat',] }]
|
|
2181
2188
|
};
|
|
2182
2189
|
|
|
2190
|
+
var DrPopoverRef = /** @class */ (function () {
|
|
2191
|
+
function DrPopoverRef(overlayRef) {
|
|
2192
|
+
this.overlayRef = overlayRef;
|
|
2193
|
+
this.onClose$ = new rxjs.Subject();
|
|
2194
|
+
this.onClose = this.onClose$.asObservable();
|
|
2195
|
+
}
|
|
2196
|
+
DrPopoverRef.prototype.close = function (res) {
|
|
2197
|
+
this.overlayRef.detach();
|
|
2198
|
+
this.overlayRef.dispose();
|
|
2199
|
+
this.onClose$.next(res);
|
|
2200
|
+
this.onClose$.complete();
|
|
2201
|
+
};
|
|
2202
|
+
return DrPopoverRef;
|
|
2203
|
+
}());
|
|
2204
|
+
|
|
2183
2205
|
var DrPopoverComponent = /** @class */ (function () {
|
|
2184
|
-
function DrPopoverComponent(cdr, componentFactoryResolver, elementRef) {
|
|
2206
|
+
function DrPopoverComponent(cdr, componentFactoryResolver, viewContainerRef, elementRef, popoverRef) {
|
|
2185
2207
|
this.cdr = cdr;
|
|
2186
2208
|
this.componentFactoryResolver = componentFactoryResolver;
|
|
2209
|
+
this.viewContainerRef = viewContainerRef;
|
|
2187
2210
|
this.elementRef = elementRef;
|
|
2211
|
+
this.popoverRef = popoverRef;
|
|
2188
2212
|
this.class = '';
|
|
2189
2213
|
this.isContentTemplate = false;
|
|
2190
2214
|
}
|
|
@@ -2192,28 +2216,26 @@
|
|
|
2192
2216
|
set: function (template) {
|
|
2193
2217
|
this.isContentTemplate = this.content instanceof i0.TemplateRef;
|
|
2194
2218
|
if (!this.isContentTemplate) {
|
|
2195
|
-
this.componentRef =
|
|
2196
|
-
this.componentRef.instance
|
|
2197
|
-
|
|
2198
|
-
this.componentRef.instance[key] = this.contentContext[key];
|
|
2199
|
-
}
|
|
2200
|
-
}
|
|
2201
|
-
else {
|
|
2202
|
-
this.contentContext.closePopover = this.closePopover;
|
|
2219
|
+
this.componentRef = this.viewContainerRef.createComponent(this.componentFactoryResolver.resolveComponentFactory(this.content));
|
|
2220
|
+
Object.assign(this.componentRef.instance, this.contentContext);
|
|
2221
|
+
template.nativeElement.appendChild(this.componentRef.location.nativeElement);
|
|
2203
2222
|
}
|
|
2204
2223
|
this.cdr.detectChanges();
|
|
2205
2224
|
},
|
|
2206
2225
|
enumerable: false,
|
|
2207
2226
|
configurable: true
|
|
2208
2227
|
});
|
|
2209
|
-
|
|
2210
|
-
|
|
2211
|
-
var isTargetHost = this.hostRef.nativeElement === e.target;
|
|
2228
|
+
DrPopoverComponent.prototype.clickOutside = function (e) {
|
|
2229
|
+
var isTargetHost = this.hostRef.nativeElement === e.target || this.hostRef.nativeElement.contains(e.target);
|
|
2212
2230
|
var isTargetInPopover = this.elementRef.nativeElement.contains(e.target);
|
|
2213
2231
|
var isTargetInDatepicker = e.target.closest('mat-datepicker-popup');
|
|
2214
2232
|
var isTargetInSelect = e.target.closest('ng-dropdown-panel');
|
|
2215
|
-
if (!isTargetHost
|
|
2216
|
-
|
|
2233
|
+
if (!isTargetHost
|
|
2234
|
+
&& !isTargetInPopover
|
|
2235
|
+
&& !isTargetInDatepicker
|
|
2236
|
+
&& !isTargetInSelect
|
|
2237
|
+
&& !this.manualClosing) {
|
|
2238
|
+
this.popoverRef.close();
|
|
2217
2239
|
}
|
|
2218
2240
|
};
|
|
2219
2241
|
return DrPopoverComponent;
|
|
@@ -2225,56 +2247,63 @@
|
|
|
2225
2247
|
animations: [
|
|
2226
2248
|
animations.trigger('popover', POPUP_ANIMATION),
|
|
2227
2249
|
],
|
|
2228
|
-
styles: [".dr-popover{display:flex;background:#fff;border:1px solid #E5E5E5;border-radius:5px;box-sizing:border-box;box-shadow:0 4px 14px #0003;font-size:12px;color:#545a6b;max-height:100vh;max-width:100vw}\n"]
|
|
2250
|
+
styles: [".dr-popover{display:flex;background:#fff;border:1px solid #E5E5E5;border-radius:5px;box-sizing:border-box;box-shadow:0 4px 14px #0003;font-size:12px;color:#545a6b;max-height:100vh;max-width:100vw;overflow:auto}\n"]
|
|
2229
2251
|
},] }
|
|
2230
2252
|
];
|
|
2231
2253
|
DrPopoverComponent.ctorParameters = function () { return [
|
|
2232
2254
|
{ type: i0.ChangeDetectorRef },
|
|
2233
2255
|
{ type: i0.ComponentFactoryResolver },
|
|
2234
|
-
{ type: i0.
|
|
2256
|
+
{ type: i0.ViewContainerRef },
|
|
2257
|
+
{ type: i0.ElementRef },
|
|
2258
|
+
{ type: DrPopoverRef }
|
|
2235
2259
|
]; };
|
|
2236
2260
|
DrPopoverComponent.propDecorators = {
|
|
2237
2261
|
content: [{ type: i0.Input }],
|
|
2238
2262
|
contentContext: [{ type: i0.Input }],
|
|
2239
2263
|
class: [{ type: i0.Input }],
|
|
2240
2264
|
hostRef: [{ type: i0.Input }],
|
|
2241
|
-
|
|
2242
|
-
popoverContainer: [{ type: i0.ViewChild, args: ['popoverContainer', { read: i0.
|
|
2243
|
-
|
|
2265
|
+
manualClosing: [{ type: i0.Input }],
|
|
2266
|
+
popoverContainer: [{ type: i0.ViewChild, args: ['popoverContainer', { read: i0.ElementRef },] }],
|
|
2267
|
+
clickOutside: [{ type: i0.HostListener, args: ['document:mouseup', ['$event'],] }]
|
|
2244
2268
|
};
|
|
2245
2269
|
|
|
2246
2270
|
var DrPopoverDirective = /** @class */ (function () {
|
|
2247
|
-
function DrPopoverDirective(overlay,
|
|
2271
|
+
function DrPopoverDirective(overlay, overlayPositionBuilder, elementRef, injector) {
|
|
2248
2272
|
this.overlay = overlay;
|
|
2249
|
-
this.vcRef = vcRef;
|
|
2250
|
-
this.resolver = resolver;
|
|
2251
2273
|
this.overlayPositionBuilder = overlayPositionBuilder;
|
|
2252
2274
|
this.elementRef = elementRef;
|
|
2275
|
+
this.injector = injector;
|
|
2253
2276
|
this.contentContext = {};
|
|
2254
2277
|
this.position = 'bottom';
|
|
2255
2278
|
this.class = '';
|
|
2279
|
+
this.overlayConfig = {};
|
|
2280
|
+
this.popoverClose = new i0.EventEmitter();
|
|
2281
|
+
this.showStateChange = new i0.EventEmitter();
|
|
2256
2282
|
}
|
|
2257
2283
|
DrPopoverDirective.prototype.show = function () {
|
|
2284
|
+
var _a;
|
|
2258
2285
|
if (this.overlayRef) {
|
|
2259
2286
|
this.destroyPopover();
|
|
2260
2287
|
}
|
|
2261
2288
|
else {
|
|
2262
2289
|
this.renderPopover();
|
|
2290
|
+
this.showStateChange.emit({ isShown: (_a = this.overlayRef) === null || _a === void 0 ? void 0 : _a.hasAttached() });
|
|
2263
2291
|
}
|
|
2264
2292
|
};
|
|
2265
2293
|
DrPopoverDirective.prototype.renderPopover = function () {
|
|
2294
|
+
var _this = this;
|
|
2266
2295
|
var _a;
|
|
2267
|
-
|
|
2268
|
-
|
|
2269
|
-
this.overlayRef = this.
|
|
2270
|
-
|
|
2271
|
-
|
|
2272
|
-
|
|
2273
|
-
|
|
2274
|
-
|
|
2275
|
-
|
|
2276
|
-
|
|
2277
|
-
|
|
2296
|
+
if (((_a = this.overlayRef) === null || _a === void 0 ? void 0 : _a.hasAttached()) || !this.content)
|
|
2297
|
+
return;
|
|
2298
|
+
this.overlayRef = this.createOverlay(this.overlayConfig || {});
|
|
2299
|
+
this.drPopoverRef = new DrPopoverRef(this.overlayRef);
|
|
2300
|
+
this.drPopoverRef.onClose.pipe(operators.first()).subscribe(function (res) {
|
|
2301
|
+
var _a;
|
|
2302
|
+
_this.destroyPopover();
|
|
2303
|
+
_this.popoverClose.emit(res);
|
|
2304
|
+
_this.showStateChange.emit({ isShown: !!((_a = _this.overlayRef) === null || _a === void 0 ? void 0 : _a.hasAttached()) });
|
|
2305
|
+
});
|
|
2306
|
+
this.attachOverlayContainer();
|
|
2278
2307
|
};
|
|
2279
2308
|
DrPopoverDirective.prototype.destroyPopover = function () {
|
|
2280
2309
|
if (this.overlayRef) {
|
|
@@ -2285,6 +2314,42 @@
|
|
|
2285
2314
|
this.contentRef.destroy();
|
|
2286
2315
|
this.contentRef = null;
|
|
2287
2316
|
}
|
|
2317
|
+
if (this.drPopoverRef) {
|
|
2318
|
+
this.drPopoverRef.close();
|
|
2319
|
+
this.drPopoverRef = null;
|
|
2320
|
+
}
|
|
2321
|
+
};
|
|
2322
|
+
DrPopoverDirective.prototype.attachOverlayContainer = function () {
|
|
2323
|
+
var componentPortal = new portal.ComponentPortal(DrPopoverComponent, null, this.createInjector(this.drPopoverRef));
|
|
2324
|
+
this.contentRef = this.overlayRef.attach(componentPortal);
|
|
2325
|
+
this.drPopoverRef.componentRef = this.contentRef;
|
|
2326
|
+
this.contentRef.instance.content = this.content;
|
|
2327
|
+
this.contentRef.instance.contentContext = Object.assign(Object.assign({}, this.contentContext), { closePopover: this.destroyPopover.bind(this) });
|
|
2328
|
+
this.contentRef.instance.class = this.class + ' ' + this.position;
|
|
2329
|
+
this.contentRef.instance.manualClosing = this.manualClosing;
|
|
2330
|
+
this.contentRef.instance.hostRef = this.elementRef;
|
|
2331
|
+
};
|
|
2332
|
+
DrPopoverDirective.prototype.createOverlay = function (config) {
|
|
2333
|
+
var overlayConfig = this.getOverlayConfig(config);
|
|
2334
|
+
return this.overlay.create(overlayConfig);
|
|
2335
|
+
};
|
|
2336
|
+
DrPopoverDirective.prototype.getOverlayConfig = function (config) {
|
|
2337
|
+
var positionStrategy = this.overlayPositionBuilder
|
|
2338
|
+
.flexibleConnectedTo(this.elementRef)
|
|
2339
|
+
.withPositions([POPUP_POSITIONS[this.position]]);
|
|
2340
|
+
var overlayConfig = new overlay.OverlayConfig({
|
|
2341
|
+
hasBackdrop: false,
|
|
2342
|
+
panelClass: config === null || config === void 0 ? void 0 : config.panelClass,
|
|
2343
|
+
scrollStrategy: this.overlay.scrollStrategies.noop(),
|
|
2344
|
+
positionStrategy: positionStrategy,
|
|
2345
|
+
});
|
|
2346
|
+
return overlayConfig;
|
|
2347
|
+
};
|
|
2348
|
+
DrPopoverDirective.prototype.createInjector = function (previewOverlayRef) {
|
|
2349
|
+
var injectionTokens = [
|
|
2350
|
+
{ provide: DrPopoverRef, useValue: previewOverlayRef },
|
|
2351
|
+
];
|
|
2352
|
+
return i0.Injector.create({ providers: injectionTokens, parent: this.injector });
|
|
2288
2353
|
};
|
|
2289
2354
|
DrPopoverDirective.prototype.ngOnDestroy = function () {
|
|
2290
2355
|
this.destroyPopover();
|
|
@@ -2298,16 +2363,19 @@
|
|
|
2298
2363
|
];
|
|
2299
2364
|
DrPopoverDirective.ctorParameters = function () { return [
|
|
2300
2365
|
{ type: overlay.Overlay },
|
|
2301
|
-
{ type: i0.ViewContainerRef },
|
|
2302
|
-
{ type: i0.ComponentFactoryResolver },
|
|
2303
2366
|
{ type: overlay.OverlayPositionBuilder },
|
|
2304
|
-
{ type: i0.ElementRef }
|
|
2367
|
+
{ type: i0.ElementRef },
|
|
2368
|
+
{ type: i0.Injector }
|
|
2305
2369
|
]; };
|
|
2306
2370
|
DrPopoverDirective.propDecorators = {
|
|
2307
2371
|
content: [{ type: i0.Input, args: ['drPopover',] }],
|
|
2308
2372
|
contentContext: [{ type: i0.Input, args: ['drPopoverContext',] }],
|
|
2309
2373
|
position: [{ type: i0.Input, args: ['drPopoverPosition',] }],
|
|
2310
2374
|
class: [{ type: i0.Input, args: ['drPopoverClass',] }],
|
|
2375
|
+
overlayConfig: [{ type: i0.Input, args: ['drPopoverOverlayConfig',] }],
|
|
2376
|
+
manualClosing: [{ type: i0.Input, args: ['drPopoverManualClosing',] }],
|
|
2377
|
+
popoverClose: [{ type: i0.Output, args: ['drPopoverClose',] }],
|
|
2378
|
+
showStateChange: [{ type: i0.Output, args: ['drPopoverShowStateChange',] }],
|
|
2311
2379
|
show: [{ type: i0.HostListener, args: ['click',] }]
|
|
2312
2380
|
};
|
|
2313
2381
|
|
|
@@ -2387,8 +2455,10 @@
|
|
|
2387
2455
|
}
|
|
2388
2456
|
};
|
|
2389
2457
|
DrDropdownComponent.prototype.tooltipToShow = function (act) {
|
|
2390
|
-
|
|
2391
|
-
|
|
2458
|
+
if (act.toolTipIfDisabled || this.disabled(act) || !act.toolTip) {
|
|
2459
|
+
return '';
|
|
2460
|
+
}
|
|
2461
|
+
return act.toolTip ? act.toolTip : act.title;
|
|
2392
2462
|
};
|
|
2393
2463
|
DrDropdownComponent.prototype.action = function (act) {
|
|
2394
2464
|
if (!this.disabled(act)) {
|
|
@@ -2594,6 +2664,52 @@
|
|
|
2594
2664
|
},] }
|
|
2595
2665
|
];
|
|
2596
2666
|
|
|
2667
|
+
var DrTabComponent = /** @class */ (function () {
|
|
2668
|
+
function DrTabComponent() {
|
|
2669
|
+
}
|
|
2670
|
+
DrTabComponent.prototype.ngOnInit = function () {
|
|
2671
|
+
};
|
|
2672
|
+
return DrTabComponent;
|
|
2673
|
+
}());
|
|
2674
|
+
DrTabComponent.decorators = [
|
|
2675
|
+
{ type: i0.Component, args: [{
|
|
2676
|
+
selector: 'dr-tab',
|
|
2677
|
+
template: "\n <ng-template>\n <ng-content></ng-content>\n </ng-template>\n "
|
|
2678
|
+
},] }
|
|
2679
|
+
];
|
|
2680
|
+
DrTabComponent.ctorParameters = function () { return []; };
|
|
2681
|
+
DrTabComponent.propDecorators = {
|
|
2682
|
+
label: [{ type: i0.Input }],
|
|
2683
|
+
disabled: [{ type: i0.Input }],
|
|
2684
|
+
contentTemplate: [{ type: i0.ViewChild, args: [i0.TemplateRef,] }]
|
|
2685
|
+
};
|
|
2686
|
+
|
|
2687
|
+
var DrTabsComponent = /** @class */ (function () {
|
|
2688
|
+
function DrTabsComponent() {
|
|
2689
|
+
this.selectedTab = 0;
|
|
2690
|
+
this.selectedTabChange = new i0.EventEmitter();
|
|
2691
|
+
}
|
|
2692
|
+
DrTabsComponent.prototype.selectedIndexChange = function ($event) {
|
|
2693
|
+
this.selectedTab = $event;
|
|
2694
|
+
this.selectedTabChange.emit($event);
|
|
2695
|
+
};
|
|
2696
|
+
return DrTabsComponent;
|
|
2697
|
+
}());
|
|
2698
|
+
DrTabsComponent.decorators = [
|
|
2699
|
+
{ type: i0.Component, args: [{
|
|
2700
|
+
selector: 'dr-tabs',
|
|
2701
|
+
template: "<mat-tab-group disableRipple [selectedIndex]=\"selectedTab\"\r\n (selectedIndexChange)=\"selectedIndexChange($event)\"\r\n [class.with-radio]=\"withRadio\">\r\n <mat-tab *ngFor=\"let tab of tabsContentList; let index = index\" label=\"{{tab.label}}\" [disabled]=\"tab.disabled\" >\r\n <ng-container *ngIf=\"withRadio\">\r\n <ng-template mat-tab-label>\r\n <dr-radio-button [value]=\"index\"\r\n [(ngModel)]=\"selectedTab\">\r\n </dr-radio-button>\r\n {{tab.label}}\r\n </ng-template>\r\n </ng-container>\r\n\r\n <ng-container *ngTemplateOutlet=\"tab.contentTemplate\" ></ng-container>\r\n </mat-tab>\r\n</mat-tab-group>\r\n",
|
|
2702
|
+
styles: [":host{width:100%}:host ::ng-deep .mat-tab-group,:host ::ng-deep .mat-tab-body-wrapper{height:100%}:host ::ng-deep .mat-tab-nav-bar,:host ::ng-deep .mat-tab-header{border-bottom:1px solid #D5DAE5}:host ::ng-deep .mat-tab-labels{padding:0 17px}:host ::ng-deep .mat-tab-label{padding:0 8px;min-width:0;height:38px;opacity:1}:host ::ng-deep .mat-tab-label:not(:last-child){margin-right:21px}:host ::ng-deep .mat-tab-label-active .mat-tab-label-content{color:#579bf2;font-weight:700}:host ::ng-deep .mat-tab-label-content{font-weight:400;font-size:14px;line-height:22px;color:#51566f;font-family:\"Nunito Sans\",sans-serif}:host ::ng-deep .mat-ink-bar{height:3px;border-radius:5px;background-color:#579bf2!important}:host ::ng-deep .with-radio .mat-tab-labels{padding:0;margin-bottom:8px}:host ::ng-deep .with-radio .mat-tab-label{padding:8px 16px;min-width:0;flex-grow:1;justify-content:start;height:38px;opacity:1}:host ::ng-deep .with-radio .mat-tab-label:not(:last-child){margin-right:8px}:host ::ng-deep .with-radio .mat-tab-label-active{background:#F6F7F8;border-radius:3px}:host ::ng-deep .with-radio .mat-tab-label-active .mat-tab-label-content{color:#0c142b;font-weight:600}:host ::ng-deep .with-radio .mat-ink-bar{display:none!important}\n"]
|
|
2703
|
+
},] }
|
|
2704
|
+
];
|
|
2705
|
+
DrTabsComponent.ctorParameters = function () { return []; };
|
|
2706
|
+
DrTabsComponent.propDecorators = {
|
|
2707
|
+
selectedTab: [{ type: i0.Input }],
|
|
2708
|
+
withRadio: [{ type: i0.Input }],
|
|
2709
|
+
selectedTabChange: [{ type: i0.Output }],
|
|
2710
|
+
tabsContentList: [{ type: i0.ContentChildren, args: [DrTabComponent,] }]
|
|
2711
|
+
};
|
|
2712
|
+
|
|
2597
2713
|
var components$2 = [DateTagComponent,
|
|
2598
2714
|
DayTagComponent,
|
|
2599
2715
|
WeekTagComponent,
|
|
@@ -2807,6 +2923,32 @@
|
|
|
2807
2923
|
},] }
|
|
2808
2924
|
];
|
|
2809
2925
|
|
|
2926
|
+
var DrTabsModule = /** @class */ (function () {
|
|
2927
|
+
function DrTabsModule() {
|
|
2928
|
+
}
|
|
2929
|
+
return DrTabsModule;
|
|
2930
|
+
}());
|
|
2931
|
+
DrTabsModule.decorators = [
|
|
2932
|
+
{ type: i0.NgModule, args: [{
|
|
2933
|
+
imports: [
|
|
2934
|
+
common.CommonModule,
|
|
2935
|
+
tabs.MatTabsModule,
|
|
2936
|
+
forms.FormsModule,
|
|
2937
|
+
forms.ReactiveFormsModule,
|
|
2938
|
+
DrInputsModule
|
|
2939
|
+
],
|
|
2940
|
+
exports: [
|
|
2941
|
+
DrTabsComponent,
|
|
2942
|
+
DrTabComponent
|
|
2943
|
+
],
|
|
2944
|
+
providers: [],
|
|
2945
|
+
declarations: [
|
|
2946
|
+
DrTabsComponent,
|
|
2947
|
+
DrTabComponent
|
|
2948
|
+
],
|
|
2949
|
+
},] }
|
|
2950
|
+
];
|
|
2951
|
+
|
|
2810
2952
|
/* components */
|
|
2811
2953
|
|
|
2812
2954
|
/**
|
|
@@ -2834,10 +2976,14 @@
|
|
|
2834
2976
|
exports.DrPopoverComponent = DrPopoverComponent;
|
|
2835
2977
|
exports.DrPopoverDirective = DrPopoverDirective;
|
|
2836
2978
|
exports.DrPopoverModule = DrPopoverModule;
|
|
2979
|
+
exports.DrPopoverRef = DrPopoverRef;
|
|
2837
2980
|
exports.DrSelectComponent = DrSelectComponent;
|
|
2838
2981
|
exports.DrSpinnerComponent = DrSpinnerComponent;
|
|
2839
2982
|
exports.DrSpinnerDirective = DrSpinnerDirective;
|
|
2840
2983
|
exports.DrSpinnerModule = DrSpinnerModule;
|
|
2984
|
+
exports.DrTabComponent = DrTabComponent;
|
|
2985
|
+
exports.DrTabsComponent = DrTabsComponent;
|
|
2986
|
+
exports.DrTabsModule = DrTabsModule;
|
|
2841
2987
|
exports.DrTagComponent = DrTagComponent;
|
|
2842
2988
|
exports.DrTagModule = DrTagModule;
|
|
2843
2989
|
exports.DrToggleComponent = DrToggleComponent;
|