@datarailsshared/datarailsshared 1.4.72 → 1.4.73
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/assets/styles/img/dr-icon-info.svg +3 -0
- package/bundles/datarailsshared-datarailsshared.umd.js +106 -6
- package/bundles/datarailsshared-datarailsshared.umd.js.map +1 -1
- package/datarailsshared-datarailsshared-1.4.73.tgz +0 -0
- package/datarailsshared-datarailsshared.d.ts +4 -0
- package/datarailsshared-datarailsshared.metadata.json +1 -1
- package/esm2015/datarailsshared-datarailsshared.js +5 -1
- package/esm2015/lib/dr-tooltip/components/tooltip-info/tooltip-info.component.js +18 -0
- package/esm2015/lib/dr-tooltip/components/tooltip-info-simple/tooltip-info-simple.component.js +18 -0
- package/esm2015/lib/dr-tooltip/components/tooltip-no-body/tooltip-no-body.component.js +20 -0
- package/esm2015/lib/dr-tooltip/components/tooltip-process-default/tooltip-process-default.component.js +34 -0
- package/esm2015/lib/dr-tooltip/dr-tooltip.module.js +16 -4
- package/esm2015/lib/dr-tooltip/enums/tooltip-position.enum.js +16 -0
- package/esm2015/lib/dr-tooltip/interfaces/tooltip-component-context.js +2 -0
- package/esm2015/public-api.js +3 -1
- package/fesm2015/datarailsshared-datarailsshared.js +111 -1
- package/fesm2015/datarailsshared-datarailsshared.js.map +1 -1
- package/lib/dr-tooltip/components/tooltip-info/tooltip-info.component.d.ts +5 -0
- package/lib/dr-tooltip/components/tooltip-info-simple/tooltip-info-simple.component.d.ts +5 -0
- package/lib/dr-tooltip/components/tooltip-no-body/tooltip-no-body.component.d.ts +6 -0
- package/lib/dr-tooltip/components/tooltip-process-default/tooltip-process-default.component.d.ts +4 -0
- package/lib/dr-tooltip/enums/tooltip-position.enum.d.ts +14 -0
- package/lib/dr-tooltip/interfaces/tooltip-component-context.d.ts +6 -0
- package/package.json +1 -1
- package/public-api.d.ts +2 -0
- package/datarailsshared-datarailsshared-1.4.72.tgz +0 -0
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
<svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
2
|
+
<path d="M8.00008 2.66669C5.05341 2.66669 2.66675 5.05335 2.66675 8.00002C2.66675 10.9467 5.05341 13.3334 8.00008 13.3334C10.9467 13.3334 13.3334 10.9467 13.3334 8.00002C13.3334 5.05335 10.9467 2.66669 8.00008 2.66669ZM8.53341 10.6667H7.46675V7.46669H8.53341V10.6667ZM8.53341 6.40002H7.46675V5.33335H8.53341V6.40002Z" fill="#7B61FF"/>
|
|
3
|
+
</svg>
|
|
@@ -3573,6 +3573,22 @@
|
|
|
3573
3573
|
label: [{ type: i0.Input }]
|
|
3574
3574
|
};
|
|
3575
3575
|
|
|
3576
|
+
exports.TooltipPosition = void 0;
|
|
3577
|
+
(function (TooltipPosition) {
|
|
3578
|
+
TooltipPosition["TOP"] = "top";
|
|
3579
|
+
TooltipPosition["BOTTOM"] = "bottom";
|
|
3580
|
+
TooltipPosition["LEFT"] = "left";
|
|
3581
|
+
TooltipPosition["RIGHT"] = "right";
|
|
3582
|
+
TooltipPosition["TOP_RIGHT"] = "top-right";
|
|
3583
|
+
TooltipPosition["TOP_LEFT"] = "top-left";
|
|
3584
|
+
TooltipPosition["BOTTOM_RIGHT"] = "bottom-right";
|
|
3585
|
+
TooltipPosition["BOTTOM_LEFT"] = "bottom-left";
|
|
3586
|
+
TooltipPosition["RIGHT_TOP"] = "right-top";
|
|
3587
|
+
TooltipPosition["RIGHT_BOTTOM"] = "right-bottom";
|
|
3588
|
+
TooltipPosition["LEFT_TOP"] = "left-top";
|
|
3589
|
+
TooltipPosition["LEFT_BOTTOM"] = "left-bottom";
|
|
3590
|
+
})(exports.TooltipPosition || (exports.TooltipPosition = {}));
|
|
3591
|
+
|
|
3576
3592
|
var DrModelDebounceChangeDirective = /** @class */ (function () {
|
|
3577
3593
|
function DrModelDebounceChangeDirective(ngModel) {
|
|
3578
3594
|
this.ngModel = ngModel;
|
|
@@ -4362,6 +4378,86 @@
|
|
|
4362
4378
|
},] }
|
|
4363
4379
|
];
|
|
4364
4380
|
|
|
4381
|
+
var TooltipInfoComponent = /** @class */ (function () {
|
|
4382
|
+
function TooltipInfoComponent() {
|
|
4383
|
+
}
|
|
4384
|
+
return TooltipInfoComponent;
|
|
4385
|
+
}());
|
|
4386
|
+
TooltipInfoComponent.decorators = [
|
|
4387
|
+
{ type: i0.Component, args: [{
|
|
4388
|
+
selector: 'dr-tooltip-info',
|
|
4389
|
+
template: "<div class=\"tooltip-info\">\n <i *ngIf=\"data?.icon else defaultIcon\" class=\"fa\" [class]=\"data.icon\" [style.fontSize.px]=\"14\"\n [style.margin.px]=\"12\" [style.color]=\"data?.iconColor || '#7B61FF'\"></i>\n <div class=\"tooltip-info-content-wrapper\">\n <div *ngIf=\"data?.title\" class=\"tooltip-info_header\">\n <span>{{data.title}}</span>\n </div>\n <div *ngIf=\"data?.description\" class=\"tooltip-info_description\"\n [class.tooltip-info_description-no-border]=\"!data.title\">\n <ng-container *ngIf=\"!data.title\"></ng-container>\n <span>{{data.description}}</span>\n </div>\n </div>\n</div>\n\n<ng-template #defaultIcon>\n <ng-container *ngIf=\"!data.icon\">\n <div class=\"default-icon\"></div>\n </ng-container>\n</ng-template>\n",
|
|
4390
|
+
changeDetection: i0.ChangeDetectionStrategy.OnPush,
|
|
4391
|
+
styles: [".tooltip-info{width:316px;display:flex}.tooltip-info-content-wrapper{display:flex;flex-direction:column;padding-top:10px}.tooltip-info_header{padding:0 16px 6px 0;font-weight:bold;font-size:14px;line-height:16px;letter-spacing:.25px;display:flex;justify-content:flex-start}.tooltip-info_header>i{margin-right:10px}.tooltip-info-content-wrapper{padding-top:10px}.tooltip-info_description{display:flex;align-items:flex-start;border-top:1px solid #AEB5BB;padding:12px 10px 10px 0;text-align:left;font-weight:normal;font-size:14px;line-height:22px}.tooltip-info_description-no-border{padding-top:0;border-top:none}.tooltip-info_description>i{margin-right:10px}:host.tooltip-info-medium .tooltip-info{max-width:272px}:host.tooltip-info-medium .tooltip-info-content-wrapper{padding-top:10px}:host.tooltip-info-medium .tooltip-info_header,:host.tooltip-info-medium .tooltip-info_description{min-height:unset;border-top:none;font-size:14px;line-height:22px}:host.tooltip-info-medium .tooltip-info_header{padding:10px 10px 0 0}:host.tooltip-info-medium .tooltip-info_description{padding:10px 12px 10px 0}:host.tooltip-info-medium .tooltip-info .default-icon:before{background:url(\"data:image/svg+xml,%3Csvg width%3D%2216%22 height%3D%2216%22 viewBox%3D%220 0 16 16%22 fill%3D%22none%22 xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%3Cpath d%3D%22M8.00008 2.66669C5.05341 2.66669 2.66675 5.05335 2.66675 8.00002C2.66675 10.9467 5.05341 13.3334 8.00008 13.3334C10.9467 13.3334 13.3334 10.9467 13.3334 8.00002C13.3334 5.05335 10.9467 2.66669 8.00008 2.66669ZM8.53341 10.6667H7.46675V7.46669H8.53341V10.6667ZM8.53341 6.40002H7.46675V5.33335H8.53341V6.40002Z%22 fill%3D%22%237B61FF%22%2F%3E%3C%2Fsvg%3E\") no-repeat;background-size:100% 100%;display:inline-block;height:20px;width:20px;content:\"\"}:host.tooltip-info-small .tooltip-info{width:auto}:host.tooltip-info-small .tooltip-info-content-wrapper{padding-top:10px}:host.tooltip-info-small .tooltip-info_header,:host.tooltip-info-small .tooltip-info_description{min-height:unset;border-top:none;font-size:14px;line-height:22px}:host.tooltip-info-small .tooltip-info_header{padding:0 10px 0 0}:host.tooltip-info-small .tooltip-info_description{padding:0 12px 10px 0}:host.tooltip-info-small .tooltip-info .default-icon:before{background:url(\"data:image/svg+xml,%3Csvg width%3D%2216%22 height%3D%2216%22 viewBox%3D%220 0 16 16%22 fill%3D%22none%22 xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%3Cpath d%3D%22M8.00008 2.66669C5.05341 2.66669 2.66675 5.05335 2.66675 8.00002C2.66675 10.9467 5.05341 13.3334 8.00008 13.3334C10.9467 13.3334 13.3334 10.9467 13.3334 8.00002C13.3334 5.05335 10.9467 2.66669 8.00008 2.66669ZM8.53341 10.6667H7.46675V7.46669H8.53341V10.6667ZM8.53341 6.40002H7.46675V5.33335H8.53341V6.40002Z%22 fill%3D%22%237B61FF%22%2F%3E%3C%2Fsvg%3E\") no-repeat;background-size:100% 100%;display:inline-block;height:20px;width:20px;content:\"\"}.default-icon{position:relative;width:18px;height:18px;margin:10px}.default-icon:before{background:url(\"data:image/svg+xml,%3Csvg width%3D%2216%22 height%3D%2216%22 viewBox%3D%220 0 16 16%22 fill%3D%22none%22 xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%3Cpath d%3D%22M8.00008 2.66669C5.05341 2.66669 2.66675 5.05335 2.66675 8.00002C2.66675 10.9467 5.05341 13.3334 8.00008 13.3334C10.9467 13.3334 13.3334 10.9467 13.3334 8.00002C13.3334 5.05335 10.9467 2.66669 8.00008 2.66669ZM8.53341 10.6667H7.46675V7.46669H8.53341V10.6667ZM8.53341 6.40002H7.46675V5.33335H8.53341V6.40002Z%22 fill%3D%22%237B61FF%22%2F%3E%3C%2Fsvg%3E\") no-repeat;background-size:100% 100%;display:inline-block;height:18px;width:18px;content:\"\"}\n"]
|
|
4392
|
+
},] }
|
|
4393
|
+
];
|
|
4394
|
+
TooltipInfoComponent.ctorParameters = function () { return []; };
|
|
4395
|
+
TooltipInfoComponent.propDecorators = {
|
|
4396
|
+
data: [{ type: i0.Input }]
|
|
4397
|
+
};
|
|
4398
|
+
|
|
4399
|
+
var TooltipInfoSimpleComponent = /** @class */ (function () {
|
|
4400
|
+
function TooltipInfoSimpleComponent() {
|
|
4401
|
+
}
|
|
4402
|
+
return TooltipInfoSimpleComponent;
|
|
4403
|
+
}());
|
|
4404
|
+
TooltipInfoSimpleComponent.decorators = [
|
|
4405
|
+
{ type: i0.Component, args: [{
|
|
4406
|
+
selector: 'dr-tooltip-info-simple',
|
|
4407
|
+
template: "<div class=\"tooltip-info-simple\">\n <div *ngIf=\"context?.title\" class=\"tooltip-info-simple__title\">{{context?.title}}</div>\n <div *ngIf=\"context?.description\" class=\"tooltip-info-simple__description\">{{context?.description}}</div>\n</div>\n",
|
|
4408
|
+
changeDetection: i0.ChangeDetectionStrategy.OnPush,
|
|
4409
|
+
styles: [".tooltip-info-simple{max-width:250px;font-size:14px;line-height:22px;padding:10px 12px;color:#0c142b}.tooltip-info-simple__title{font-weight:600;overflow:hidden;text-overflow:ellipsis}\n"]
|
|
4410
|
+
},] }
|
|
4411
|
+
];
|
|
4412
|
+
TooltipInfoSimpleComponent.ctorParameters = function () { return []; };
|
|
4413
|
+
TooltipInfoSimpleComponent.propDecorators = {
|
|
4414
|
+
context: [{ type: i0.Input }]
|
|
4415
|
+
};
|
|
4416
|
+
|
|
4417
|
+
var TooltipNoBodyComponent = /** @class */ (function () {
|
|
4418
|
+
function TooltipNoBodyComponent() {
|
|
4419
|
+
}
|
|
4420
|
+
TooltipNoBodyComponent.prototype.ngOnInit = function () {
|
|
4421
|
+
};
|
|
4422
|
+
return TooltipNoBodyComponent;
|
|
4423
|
+
}());
|
|
4424
|
+
TooltipNoBodyComponent.decorators = [
|
|
4425
|
+
{ type: i0.Component, args: [{
|
|
4426
|
+
selector: 'dr-tooltip-no-body',
|
|
4427
|
+
template: "<div class=\"tooltip-bold\" [ngClass]=\"{'tooltip-bold--icon': context?.icon}\">\n <div class=\"tooltip-bold__title\">\n <i *ngIf=\"context?.icon\" [class]=\"context?.icon\" [style.color]=\"context?.iconColor || 'black'\"></i>\n {{ context.title }}\n </div>\n <div class=\"tooltip-bold-text\">\n {{ context.text }}\n </div>\n</div>",
|
|
4428
|
+
changeDetection: i0.ChangeDetectionStrategy.OnPush,
|
|
4429
|
+
styles: [".tooltip-bold{position:relative;box-shadow:0 4px 8px 1px #00000040;border:1px solid #C3C4CE;border-radius:8px;font-size:14px;line-height:22px;padding:10px 12px;background-color:#fff}.tooltip-bold--icon{padding-left:44px}.tooltip-bold__title{font-weight:bold}.tooltip-bold__title>i{position:absolute;width:16px;height:16px;left:10px}\n"]
|
|
4430
|
+
},] }
|
|
4431
|
+
];
|
|
4432
|
+
TooltipNoBodyComponent.ctorParameters = function () { return []; };
|
|
4433
|
+
TooltipNoBodyComponent.propDecorators = {
|
|
4434
|
+
context: [{ type: i0.Input }]
|
|
4435
|
+
};
|
|
4436
|
+
|
|
4437
|
+
var TooltipProcessDefaultComponent = /** @class */ (function () {
|
|
4438
|
+
function TooltipProcessDefaultComponent() {
|
|
4439
|
+
}
|
|
4440
|
+
return TooltipProcessDefaultComponent;
|
|
4441
|
+
}());
|
|
4442
|
+
TooltipProcessDefaultComponent.decorators = [
|
|
4443
|
+
{ type: i0.Component, args: [{
|
|
4444
|
+
selector: 'dr-tooltip-process-default',
|
|
4445
|
+
template: "\n <div class=\"container\" [innerHTML]=\"text\"></div>\n ",
|
|
4446
|
+
changeDetection: i0.ChangeDetectionStrategy.OnPush,
|
|
4447
|
+
styles: ["\n .container {\n width: auto;\n max-width: 388px;\n text-align: start;\n font-size: 14px;\n line-height: 22px;\n padding: 10px 12px;\n color: #151B3F;\n background-color: #FFF;\n border-radius: 8px;\n box-shadow: 0px 4px 8px 1px rgba(0, 0, 0, 0.25);\n border: 1px solid #C3C4CE;\n }\n "]
|
|
4448
|
+
},] }
|
|
4449
|
+
];
|
|
4450
|
+
TooltipProcessDefaultComponent.ctorParameters = function () { return []; };
|
|
4451
|
+
TooltipProcessDefaultComponent.propDecorators = {
|
|
4452
|
+
text: [{ type: i0.Input }]
|
|
4453
|
+
};
|
|
4454
|
+
|
|
4455
|
+
var TOOLTIP_COMPONENTS = [
|
|
4456
|
+
TooltipInfoComponent,
|
|
4457
|
+
TooltipInfoSimpleComponent,
|
|
4458
|
+
TooltipNoBodyComponent,
|
|
4459
|
+
TooltipProcessDefaultComponent
|
|
4460
|
+
];
|
|
4365
4461
|
var DrTooltipModule = /** @class */ (function () {
|
|
4366
4462
|
function DrTooltipModule() {
|
|
4367
4463
|
}
|
|
@@ -4372,15 +4468,15 @@
|
|
|
4372
4468
|
imports: [
|
|
4373
4469
|
common.CommonModule
|
|
4374
4470
|
],
|
|
4375
|
-
exports: [
|
|
4471
|
+
exports: __spreadArray([
|
|
4376
4472
|
TooltipComponent,
|
|
4377
|
-
DrTooltipDirective
|
|
4378
|
-
],
|
|
4473
|
+
DrTooltipDirective
|
|
4474
|
+
], __read(TOOLTIP_COMPONENTS)),
|
|
4379
4475
|
providers: [],
|
|
4380
|
-
declarations: [
|
|
4476
|
+
declarations: __spreadArray([
|
|
4381
4477
|
TooltipComponent,
|
|
4382
|
-
DrTooltipDirective
|
|
4383
|
-
],
|
|
4478
|
+
DrTooltipDirective
|
|
4479
|
+
], __read(TOOLTIP_COMPONENTS)),
|
|
4384
4480
|
},] }
|
|
4385
4481
|
];
|
|
4386
4482
|
|
|
@@ -4632,6 +4728,10 @@
|
|
|
4632
4728
|
exports["ɵf"] = DrDatePickerFormatDirective;
|
|
4633
4729
|
exports["ɵg"] = DrDatePickerCustomHeaderComponent;
|
|
4634
4730
|
exports["ɵh"] = DrShowTimeframePipe;
|
|
4731
|
+
exports["ɵi"] = TooltipInfoComponent;
|
|
4732
|
+
exports["ɵj"] = TooltipInfoSimpleComponent;
|
|
4733
|
+
exports["ɵk"] = TooltipNoBodyComponent;
|
|
4734
|
+
exports["ɵl"] = TooltipProcessDefaultComponent;
|
|
4635
4735
|
|
|
4636
4736
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4637
4737
|
|