@datarailsshared/datarailsshared 1.3.10 → 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/bundles/datarailsshared-datarailsshared.umd.js +85 -9
- 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-popover/dr-popover.component.js +4 -5
- package/esm2015/lib/dr-popover/dr-popover.directive.js +4 -2
- 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/public-api.js +4 -1
- package/fesm2015/datarailsshared-datarailsshared.js +79 -7
- package/fesm2015/datarailsshared-datarailsshared.js.map +1 -1
- package/lib/dr-popover/dr-popover.component.d.ts +1 -0
- package/lib/dr-popover/dr-popover.directive.d.ts +1 -0
- 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/package.json +1 -1
- package/public-api.d.ts +3 -0
- package/datarailsshared-datarailsshared-1.3.10.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('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')) :
|
|
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'], 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));
|
|
5
|
-
}(this, (function (exports, i0, forms, core, materialMomentAdapter, momentImported, animations, overlay, portal, common, rxjs, operators, 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;
|
|
@@ -2220,9 +2220,6 @@
|
|
|
2220
2220
|
Object.assign(this.componentRef.instance, this.contentContext);
|
|
2221
2221
|
template.nativeElement.appendChild(this.componentRef.location.nativeElement);
|
|
2222
2222
|
}
|
|
2223
|
-
else {
|
|
2224
|
-
this.contentContext.closePopover = this.popoverRef.close.bind(this.popoverRef);
|
|
2225
|
-
}
|
|
2226
2223
|
this.cdr.detectChanges();
|
|
2227
2224
|
},
|
|
2228
2225
|
enumerable: false,
|
|
@@ -2236,7 +2233,8 @@
|
|
|
2236
2233
|
if (!isTargetHost
|
|
2237
2234
|
&& !isTargetInPopover
|
|
2238
2235
|
&& !isTargetInDatepicker
|
|
2239
|
-
&& !isTargetInSelect
|
|
2236
|
+
&& !isTargetInSelect
|
|
2237
|
+
&& !this.manualClosing) {
|
|
2240
2238
|
this.popoverRef.close();
|
|
2241
2239
|
}
|
|
2242
2240
|
};
|
|
@@ -2264,6 +2262,7 @@
|
|
|
2264
2262
|
contentContext: [{ type: i0.Input }],
|
|
2265
2263
|
class: [{ type: i0.Input }],
|
|
2266
2264
|
hostRef: [{ type: i0.Input }],
|
|
2265
|
+
manualClosing: [{ type: i0.Input }],
|
|
2267
2266
|
popoverContainer: [{ type: i0.ViewChild, args: ['popoverContainer', { read: i0.ElementRef },] }],
|
|
2268
2267
|
clickOutside: [{ type: i0.HostListener, args: ['document:mouseup', ['$event'],] }]
|
|
2269
2268
|
};
|
|
@@ -2325,8 +2324,9 @@
|
|
|
2325
2324
|
this.contentRef = this.overlayRef.attach(componentPortal);
|
|
2326
2325
|
this.drPopoverRef.componentRef = this.contentRef;
|
|
2327
2326
|
this.contentRef.instance.content = this.content;
|
|
2328
|
-
this.contentRef.instance.contentContext = this.contentContext;
|
|
2327
|
+
this.contentRef.instance.contentContext = Object.assign(Object.assign({}, this.contentContext), { closePopover: this.destroyPopover.bind(this) });
|
|
2329
2328
|
this.contentRef.instance.class = this.class + ' ' + this.position;
|
|
2329
|
+
this.contentRef.instance.manualClosing = this.manualClosing;
|
|
2330
2330
|
this.contentRef.instance.hostRef = this.elementRef;
|
|
2331
2331
|
};
|
|
2332
2332
|
DrPopoverDirective.prototype.createOverlay = function (config) {
|
|
@@ -2373,6 +2373,7 @@
|
|
|
2373
2373
|
position: [{ type: i0.Input, args: ['drPopoverPosition',] }],
|
|
2374
2374
|
class: [{ type: i0.Input, args: ['drPopoverClass',] }],
|
|
2375
2375
|
overlayConfig: [{ type: i0.Input, args: ['drPopoverOverlayConfig',] }],
|
|
2376
|
+
manualClosing: [{ type: i0.Input, args: ['drPopoverManualClosing',] }],
|
|
2376
2377
|
popoverClose: [{ type: i0.Output, args: ['drPopoverClose',] }],
|
|
2377
2378
|
showStateChange: [{ type: i0.Output, args: ['drPopoverShowStateChange',] }],
|
|
2378
2379
|
show: [{ type: i0.HostListener, args: ['click',] }]
|
|
@@ -2663,6 +2664,52 @@
|
|
|
2663
2664
|
},] }
|
|
2664
2665
|
];
|
|
2665
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
|
+
|
|
2666
2713
|
var components$2 = [DateTagComponent,
|
|
2667
2714
|
DayTagComponent,
|
|
2668
2715
|
WeekTagComponent,
|
|
@@ -2876,6 +2923,32 @@
|
|
|
2876
2923
|
},] }
|
|
2877
2924
|
];
|
|
2878
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
|
+
|
|
2879
2952
|
/* components */
|
|
2880
2953
|
|
|
2881
2954
|
/**
|
|
@@ -2908,6 +2981,9 @@
|
|
|
2908
2981
|
exports.DrSpinnerComponent = DrSpinnerComponent;
|
|
2909
2982
|
exports.DrSpinnerDirective = DrSpinnerDirective;
|
|
2910
2983
|
exports.DrSpinnerModule = DrSpinnerModule;
|
|
2984
|
+
exports.DrTabComponent = DrTabComponent;
|
|
2985
|
+
exports.DrTabsComponent = DrTabsComponent;
|
|
2986
|
+
exports.DrTabsModule = DrTabsModule;
|
|
2911
2987
|
exports.DrTagComponent = DrTagComponent;
|
|
2912
2988
|
exports.DrTagModule = DrTagModule;
|
|
2913
2989
|
exports.DrToggleComponent = DrToggleComponent;
|