@indigina/ui-kit 1.0.75 → 1.0.79

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.
@@ -1,8 +1,8 @@
1
1
  (function (global, factory) {
2
- typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('@angular/core'), require('@angular/common'), require('@progress/kendo-angular-buttons'), require('@angular/forms'), require('@progress/kendo-angular-inputs'), require('@progress/kendo-angular-label'), require('rxjs/operators'), require('@progress/kendo-angular-dropdowns'), require('@progress/kendo-angular-dateinputs'), require('@progress/kendo-angular-popup'), require('@progress/kendo-angular-tooltip')) :
3
- typeof define === 'function' && define.amd ? define('@indigina/ui-kit', ['exports', '@angular/core', '@angular/common', '@progress/kendo-angular-buttons', '@angular/forms', '@progress/kendo-angular-inputs', '@progress/kendo-angular-label', 'rxjs/operators', '@progress/kendo-angular-dropdowns', '@progress/kendo-angular-dateinputs', '@progress/kendo-angular-popup', '@progress/kendo-angular-tooltip'], factory) :
4
- (global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory((global.indigina = global.indigina || {}, global.indigina["ui-kit"] = {}), global.ng.core, global.ng.common, global["@progress/kendo-angular-buttons"], global.ng.forms, global["@progress/kendo-angular-inputs"], global["@progress/kendo-angular-label"], global.rxjs.operators, global["@progress/kendo-angular-dropdowns"], global["@progress/kendo-angular-dateinputs"], global["@progress/kendo-angular-popup"], global["@progress/kendo-angular-tooltip"]));
5
- })(this, (function (exports, core, common, kendoAngularButtons, forms, kendoAngularInputs, kendoAngularLabel, operators, kendoAngularDropdowns, kendoAngularDateinputs, kendoAngularPopup, kendoAngularTooltip) { 'use strict';
2
+ typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('@angular/core'), require('@angular/common'), require('@progress/kendo-angular-buttons'), require('@angular/forms'), require('@progress/kendo-angular-inputs'), require('@progress/kendo-angular-label'), require('rxjs/operators'), require('@progress/kendo-angular-dropdowns'), require('@progress/kendo-angular-dateinputs'), require('@progress/kendo-angular-popup'), require('@progress/kendo-angular-tooltip'), require('ngx-toastr')) :
3
+ typeof define === 'function' && define.amd ? define('@indigina/ui-kit', ['exports', '@angular/core', '@angular/common', '@progress/kendo-angular-buttons', '@angular/forms', '@progress/kendo-angular-inputs', '@progress/kendo-angular-label', 'rxjs/operators', '@progress/kendo-angular-dropdowns', '@progress/kendo-angular-dateinputs', '@progress/kendo-angular-popup', '@progress/kendo-angular-tooltip', 'ngx-toastr'], factory) :
4
+ (global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory((global.indigina = global.indigina || {}, global.indigina["ui-kit"] = {}), global.ng.core, global.ng.common, global["@progress/kendo-angular-buttons"], global.ng.forms, global["@progress/kendo-angular-inputs"], global["@progress/kendo-angular-label"], global.rxjs.operators, global["@progress/kendo-angular-dropdowns"], global["@progress/kendo-angular-dateinputs"], global["@progress/kendo-angular-popup"], global["@progress/kendo-angular-tooltip"], global["ngx-toastr"]));
5
+ })(this, (function (exports, core, common, kendoAngularButtons, forms, kendoAngularInputs, kendoAngularLabel, operators, kendoAngularDropdowns, kendoAngularDateinputs, kendoAngularPopup, kendoAngularTooltip, ngxToastr) { 'use strict';
6
6
 
7
7
  exports.KitButtonType = void 0;
8
8
  (function (KitButtonType) {
@@ -1493,332 +1493,6 @@
1493
1493
  },] }
1494
1494
  ];
1495
1495
 
1496
- var KitLocationStepperComponent = /** @class */ (function () {
1497
- function KitLocationStepperComponent() {
1498
- /**
1499
- * An items list to be shown as steps
1500
- */
1501
- this.items = [];
1502
- this.KitSvgIcon = exports.KitSvgIcon;
1503
- }
1504
- return KitLocationStepperComponent;
1505
- }());
1506
- KitLocationStepperComponent.decorators = [
1507
- { type: core.Component, args: [{
1508
- selector: 'kit-location-stepper',
1509
- template: "<ng-template #icon let-item=\"item\">\n <kit-svg-icon [icon]=\"item.icon\" class=\"display-block location-icon\"\n [title]=\"item.title\"\n ></kit-svg-icon>\n</ng-template>\n\n<ng-template #description let-item=\"item\">\n <div class=\"title\">{{ item.title }}</div>\n <div *ngIf=\"item.description\" class=\"caption\">{{ item.description }}</div>\n</ng-template>\n\n<ng-template #dates let-dates=\"dates\">\n <div *ngFor=\"let date of dates\" class=\"date display-flex\">\n <span class=\"date-description\">{{ date.description }}</span>\n <span>{{ date.value }}</span>\n </div>\n</ng-template>\n\n<div class=\"kit-location-stepper\">\n <div *ngFor=\"let item of items; let first = first; let last = last\" class=\"step {{ item.cssClass }}\"\n [class.first]=\"first\"\n [class.last]=\"last\"\n [class.has-sub-items]=\"!!item.subItems\">\n <div class=\"step-inner display-flex\">\n <div *ngIf=\"item.dates?.length\" class=\"dates\">\n <ng-container *ngTemplateOutlet=\"dates; context: { dates: item.dates }\"></ng-container>\n </div>\n\n <ng-container *ngTemplateOutlet=\"icon; context: { item: item }\"></ng-container>\n\n <div class=\"description\">\n <ng-container *ngTemplateOutlet=\"description; context: { item: item }\"></ng-container>\n </div>\n </div>\n <div *ngIf=\"item.subItems?.length\" class=\"sub-items\">\n <div *ngFor=\"let subItem of item.subItems\" class=\"sub-item display-flex {{ subItem.cssClass }}\">\n <div *ngIf=\"subItem.dates?.length\" class=\"dates\">\n <ng-container *ngTemplateOutlet=\"dates; context: { dates: subItem.dates }\"></ng-container>\n </div>\n\n <ng-container *ngTemplateOutlet=\"icon; context: { item: subItem }\"></ng-container>\n\n <div class=\"description\">\n <ng-container *ngTemplateOutlet=\"description; context: { item: subItem }\"></ng-container>\n </div>\n </div>\n </div>\n <div class=\"step-line\"></div>\n </div>\n</div>\n",
1510
- changeDetection: core.ChangeDetectionStrategy.OnPush,
1511
- encapsulation: core.ViewEncapsulation.None,
1512
- styles: [".display-flex{display:flex}.flex-align-items-center{align-items:center}.flex-justify-content-center{justify-content:center}.flex-justify-content-end{justify-content:flex-end}.display-block{display:block}.kit-location-stepper .step{position:relative}.kit-location-stepper .step:not(:first-child){margin-top:1px}.kit-location-stepper .step:last-child .step-line{display:none}.kit-location-stepper .step-line{position:absolute;top:24px;left:calc(198px - 2px / 2);width:2px;height:100%;background-color:#efefef}.kit-location-stepper .step-inner{position:relative;padding:20px 0 12px;z-index:2}.kit-location-stepper .caption{margin-top:6px;color:#002a3a;font-size:14px;font-weight:500}.kit-location-stepper .title{text-transform:uppercase;color:#00b0ad;font-size:12px;font-weight:500;letter-spacing:.2em}.kit-location-stepper .date:not(:first-child){margin-top:10px}.kit-location-stepper .description{margin-left:10px;flex:1 0}.kit-location-stepper .location-icon{width:24px;height:24px;background:#ffffff;stroke:#a9a8a8;fill:#fff;position:relative;z-index:1}.kit-location-stepper .last .location-icon{stroke:#4e4696}.kit-location-stepper .first .location-icon{stroke:#00b0ad}.kit-location-stepper .dates{padding-left:10px;min-width:176px;min-height:40px;color:#002a3a;font-size:13px}.kit-location-stepper .date-description{margin-right:18px;width:30px;color:#a9a8a8;font-weight:500;text-align:right}.kit-location-stepper .danger .step-inner{border:1px solid #ef3e42;border-radius:4px;background-color:#f8e0e0}.kit-location-stepper .danger .location-icon{fill:#f8e0e0;background-color:#f8e0e0}.kit-location-stepper .danger:not(:first-child){margin-top:20px}.kit-location-stepper .sub-item{position:relative;padding:14px 0 12px;z-index:1}.kit-location-stepper .sub-item .dates{margin-right:34px}.kit-location-stepper .sub-item .location-icon{background:#ffffff}.kit-location-stepper .sub-item .location-icon:before{content:\"\";position:absolute;left:calc(50% - 2px / 2);top:-18px;width:2px;height:18px;background-color:#efefef}.kit-location-stepper .sub-item .description{margin-left:6px}.kit-location-stepper .sub-item.danger{margin-top:20px;border:1px solid #ef3e42;border-radius:4px;background-color:#f8e0e0}.kit-location-stepper .sub-item.danger .location-icon{background-color:#f8e0e0}.kit-location-stepper .sub-item.danger .location-icon:before{display:none}\n"]
1513
- },] }
1514
- ];
1515
- KitLocationStepperComponent.propDecorators = {
1516
- items: [{ type: core.Input }]
1517
- };
1518
-
1519
- var KitLocationStepperModule = /** @class */ (function () {
1520
- function KitLocationStepperModule() {
1521
- }
1522
- return KitLocationStepperModule;
1523
- }());
1524
- KitLocationStepperModule.decorators = [
1525
- { type: core.NgModule, args: [{
1526
- imports: [
1527
- common.CommonModule,
1528
- KitSvgIconModule,
1529
- ],
1530
- declarations: [
1531
- KitLocationStepperComponent,
1532
- ],
1533
- exports: [
1534
- KitLocationStepperComponent,
1535
- ],
1536
- },] }
1537
- ];
1538
-
1539
- var KitAutocompleteModule = /** @class */ (function () {
1540
- function KitAutocompleteModule() {
1541
- }
1542
- return KitAutocompleteModule;
1543
- }());
1544
- KitAutocompleteModule.decorators = [
1545
- { type: core.NgModule, args: [{
1546
- declarations: [
1547
- KitAutocompleteComponent,
1548
- ],
1549
- imports: [
1550
- common.CommonModule,
1551
- kendoAngularDropdowns.DropDownsModule,
1552
- forms.FormsModule,
1553
- forms.ReactiveFormsModule,
1554
- kendoAngularLabel.LabelModule,
1555
- kendoAngularInputs.InputsModule,
1556
- KitInputMessageModule,
1557
- KitLoaderModule,
1558
- KitSvgIconModule,
1559
- ],
1560
- exports: [
1561
- KitAutocompleteComponent,
1562
- ],
1563
- },] }
1564
- ];
1565
-
1566
- exports.KitCheckboxState = void 0;
1567
- (function (KitCheckboxState) {
1568
- KitCheckboxState["REGULAR"] = "regular";
1569
- KitCheckboxState["DANGER"] = "danger";
1570
- })(exports.KitCheckboxState || (exports.KitCheckboxState = {}));
1571
- var KitCheckboxComponent = /** @class */ (function () {
1572
- function KitCheckboxComponent() {
1573
- /**
1574
- * States the component is disabled
1575
- */
1576
- this.disabled = false;
1577
- /**
1578
- * Defines a default value
1579
- */
1580
- this.defaultChecked = false;
1581
- /**
1582
- * Defines a particular state for the component
1583
- */
1584
- this.state = exports.KitCheckboxState.REGULAR;
1585
- /**
1586
- * Defines a value which going to be an info message type
1587
- */
1588
- this.messageType = exports.KitInputMessageType.DEFAULT;
1589
- /**
1590
- * Occurs as soon as input checked state is changed
1591
- */
1592
- this.changed = new core.EventEmitter();
1593
- /**
1594
- * Function that should be called every time the form control value changes
1595
- */
1596
- this.onChange = function (value) {
1597
- };
1598
- /**
1599
- * Function that should be called when input lost focus and changed form control state to "touched"
1600
- */
1601
- this.onTouched = function (value) {
1602
- };
1603
- }
1604
- KitCheckboxComponent.prototype.onInputStateChange = function (event) {
1605
- var target = event.target;
1606
- var checked = target.checked;
1607
- this.onChange(checked);
1608
- this.changed.emit(checked);
1609
- };
1610
- KitCheckboxComponent.prototype.registerOnChange = function (fn) {
1611
- this.onChange = fn;
1612
- };
1613
- KitCheckboxComponent.prototype.registerOnTouched = function (fn) {
1614
- this.onTouched = fn;
1615
- };
1616
- KitCheckboxComponent.prototype.writeValue = function (value) {
1617
- this.onChange(value);
1618
- this.defaultChecked = value;
1619
- };
1620
- KitCheckboxComponent.prototype.setDisabledState = function (disabled) {
1621
- this.disabled = disabled;
1622
- };
1623
- return KitCheckboxComponent;
1624
- }());
1625
- KitCheckboxComponent.decorators = [
1626
- { type: core.Component, args: [{
1627
- selector: 'kit-checkbox',
1628
- template: "<div class=\"kit-checkbox\"\n [class.disabled]=\"disabled\"\n [ngClass]=\"state\">\n <div class=\"display-flex flex-align-items-center\">\n <input kendoCheckBox #checkbox type=\"checkbox\" class=\"checkbox\"\n [checked]=\"defaultChecked\"\n [disabled]=\"disabled\"\n (change)=\"onInputStateChange($event)\" />\n <kendo-label class=\"label\" [text]=\"label\"\n [for]=\"checkbox\"\n ></kendo-label>\n </div>\n <kit-input-message *ngIf=\"messageText\"\n [type]=\"messageType\"\n [icon]=\"messageIcon\"\n [message]=\"messageText\"\n ></kit-input-message>\n</div>\n",
1629
- changeDetection: core.ChangeDetectionStrategy.OnPush,
1630
- providers: [{
1631
- provide: forms.NG_VALUE_ACCESSOR,
1632
- useExisting: core.forwardRef(function () { return KitCheckboxComponent; }),
1633
- multi: true,
1634
- }],
1635
- styles: [".display-flex{display:flex}.flex-align-items-center{align-items:center}.flex-justify-content-center{justify-content:center}.flex-justify-content-end{justify-content:flex-end}.display-block{display:block}.kit-checkbox .label{margin-left:8px;font-size:14px;font-weight:400;color:#27282a}.kit-checkbox .checkbox{width:20px;height:20px;border-radius:4px;border-color:#c1c7d0;opacity:1}.kit-checkbox .checkbox:checked{background:#006890;border-color:#006890}.kit-checkbox .checkbox:focus{box-shadow:0 0 0 3px #e7f4ec;border-color:#006890}.kit-checkbox .checkbox:hover{border-color:#006890}.kit-checkbox.disabled{pointer-events:none}.kit-checkbox.disabled .label{color:#9a9fa6}.kit-checkbox.disabled .checkbox{border-color:#cdd2d9;background-color:#fff}.kit-checkbox.danger .checkbox{border-color:#ef3e42;background:#f8e0e0}.kit-checkbox.danger .checkbox:before{color:#ef3e42}.kit-checkbox.disabled .checkbox:checked{background-color:#c1c7d0}.kit-checkbox.disabled.danger .checkbox{background-color:#f8e0e0;border-color:#cdd2d9}.kit-checkbox.disabled.danger .checkbox:before{color:#f3f4f6}\n"]
1636
- },] }
1637
- ];
1638
- KitCheckboxComponent.propDecorators = {
1639
- label: [{ type: core.Input }],
1640
- disabled: [{ type: core.Input }],
1641
- defaultChecked: [{ type: core.Input }],
1642
- state: [{ type: core.Input }],
1643
- messageIcon: [{ type: core.Input }],
1644
- messageText: [{ type: core.Input }],
1645
- messageType: [{ type: core.Input }],
1646
- changed: [{ type: core.Output }]
1647
- };
1648
-
1649
- var KitCheckboxModule = /** @class */ (function () {
1650
- function KitCheckboxModule() {
1651
- }
1652
- return KitCheckboxModule;
1653
- }());
1654
- KitCheckboxModule.decorators = [
1655
- { type: core.NgModule, args: [{
1656
- declarations: [
1657
- KitCheckboxComponent,
1658
- ],
1659
- exports: [
1660
- KitCheckboxComponent,
1661
- ],
1662
- imports: [
1663
- kendoAngularLabel.LabelModule,
1664
- kendoAngularInputs.CheckBoxModule,
1665
- common.CommonModule,
1666
- KitInputMessageModule,
1667
- ],
1668
- },] }
1669
- ];
1670
-
1671
- var KitToggleComponent = /** @class */ (function () {
1672
- function KitToggleComponent() {
1673
- /**
1674
- * Defines whether the component will be in disabled state
1675
- */
1676
- this.disabled = false;
1677
- /**
1678
- * Defines a default value
1679
- */
1680
- this.defaultChecked = false;
1681
- /**
1682
- * Defines a value which going to be an info message type
1683
- */
1684
- this.messageType = exports.KitInputMessageType.DEFAULT;
1685
- /**
1686
- * Occurs as soon as toggle state is changed
1687
- */
1688
- this.changed = new core.EventEmitter();
1689
- /**
1690
- * Function that should be called every time the form control value changes
1691
- */
1692
- this.onChange = function (value) {
1693
- };
1694
- /**
1695
- * Function that should be called when input lost focus and changed form control state to "touched"
1696
- */
1697
- this.onTouched = function () {
1698
- };
1699
- }
1700
- /**
1701
- * Function that is called when toggle state changed
1702
- */
1703
- KitToggleComponent.prototype.onInputStateChange = function (checked) {
1704
- this.onChange(checked);
1705
- this.changed.emit(checked);
1706
- };
1707
- KitToggleComponent.prototype.registerOnChange = function (fn) {
1708
- this.onChange = fn;
1709
- };
1710
- KitToggleComponent.prototype.registerOnTouched = function (fn) {
1711
- this.onTouched = fn;
1712
- };
1713
- KitToggleComponent.prototype.writeValue = function (value) {
1714
- this.onChange(value);
1715
- this.defaultChecked = value;
1716
- };
1717
- KitToggleComponent.prototype.setDisabledState = function (disabled) {
1718
- this.disabled = disabled;
1719
- };
1720
- return KitToggleComponent;
1721
- }());
1722
- KitToggleComponent.decorators = [
1723
- { type: core.Component, args: [{
1724
- selector: 'kit-toggle',
1725
- template: "<div class=\"kit-toggle\">\n <div class=\"display-flex flex-align-items-center\">\n <kendo-switch [checked]=\"defaultChecked\"\n [disabled]=\"disabled\"\n (valueChange)=\"onInputStateChange($event)\"\n ></kendo-switch>\n <kendo-label class=\"label\" [text]=\"label\"></kendo-label>\n </div>\n <kit-input-message *ngIf=\"messageText\"\n [type]=\"messageType\"\n [icon]=\"messageIcon\"\n [message]=\"messageText\"\n ></kit-input-message>\n</div>\n",
1726
- changeDetection: core.ChangeDetectionStrategy.OnPush,
1727
- encapsulation: core.ViewEncapsulation.None,
1728
- providers: [{
1729
- provide: forms.NG_VALUE_ACCESSOR,
1730
- useExisting: core.forwardRef(function () { return KitToggleComponent; }),
1731
- multi: true,
1732
- }],
1733
- styles: [".display-flex{display:flex}.flex-align-items-center{align-items:center}.flex-justify-content-center{justify-content:center}.flex-justify-content-end{justify-content:flex-end}.display-block{display:block}.kit-toggle .label{margin-left:20px;font-size:14px;font-weight:400;color:#27282a}.kit-toggle .k-switch-container{display:flex;align-items:center;width:100%;box-shadow:none;border-radius:20px;border:2px solid;background:#ffffff}.kit-toggle .k-switch-handle{width:8px;height:8px;border:none}.kit-toggle .k-switch-label-on,.kit-toggle .k-switch-label-off{display:none}.kit-toggle .k-state-focused .k-switch-container{box-shadow:none}.kit-toggle .k-switch-off .k-switch-container{border-color:#c1c7d0}.kit-toggle .k-switch-off .k-switch-handle{left:2px;background:#c1c7d0}.kit-toggle .k-switch-on .k-switch-container{border-color:#006890;background:#ffffff}.kit-toggle .k-switch-on .k-switch-handle{left:calc(100% - 10px);background:#006890}.kit-toggle .k-switch{width:32px;height:16px}.kit-toggle .k-switch .k-switch-container:hover{box-shadow:none}.kit-toggle .k-state-disabled{opacity:1}.kit-toggle .k-state-disabled.k-switch-off .k-switch-container{border-color:#e6e9ec}.kit-toggle .k-state-disabled.k-switch-off .k-switch-handle{background:#e6e9ec}.kit-toggle .k-state-disabled.k-switch-on .k-switch-container{border-color:#cce1e9}.kit-toggle .k-state-disabled.k-switch-on .k-switch-handle{background:#cce1e9}\n"]
1734
- },] }
1735
- ];
1736
- KitToggleComponent.propDecorators = {
1737
- label: [{ type: core.Input }],
1738
- disabled: [{ type: core.Input }],
1739
- defaultChecked: [{ type: core.Input }],
1740
- messageIcon: [{ type: core.Input }],
1741
- messageText: [{ type: core.Input }],
1742
- messageType: [{ type: core.Input }],
1743
- changed: [{ type: core.Output }]
1744
- };
1745
-
1746
- var KitToggleModule = /** @class */ (function () {
1747
- function KitToggleModule() {
1748
- }
1749
- return KitToggleModule;
1750
- }());
1751
- KitToggleModule.decorators = [
1752
- { type: core.NgModule, args: [{
1753
- declarations: [
1754
- KitToggleComponent,
1755
- ],
1756
- imports: [
1757
- common.CommonModule,
1758
- kendoAngularInputs.SwitchModule,
1759
- kendoAngularLabel.LabelModule,
1760
- KitInputMessageModule,
1761
- ],
1762
- exports: [
1763
- KitToggleComponent,
1764
- ],
1765
- },] }
1766
- ];
1767
-
1768
- var KitPillComponent = /** @class */ (function () {
1769
- function KitPillComponent() {
1770
- this.removable = false;
1771
- this.selectable = false;
1772
- this.selected = false;
1773
- this.clicked = new core.EventEmitter();
1774
- this.removed = new core.EventEmitter();
1775
- this.closeIcon = exports.KitSvgIcon.CROSS;
1776
- }
1777
- KitPillComponent.prototype.onComponentClick = function () {
1778
- if (!this.selectable) {
1779
- return;
1780
- }
1781
- this.clicked.emit(!this.selected);
1782
- };
1783
- return KitPillComponent;
1784
- }());
1785
- KitPillComponent.decorators = [
1786
- { type: core.Component, args: [{
1787
- selector: 'kit-pill',
1788
- template: "<div class=\"kit-pill display-flex flex-align-items-center\"\n [class.kit-pill-selectable]=\"selectable\"\n [class.kit-pill-selected]=\"selected\">\n <div class=\"kit-pill-content display-flex flex-align-items-center\">\n <ng-content\n ></ng-content>\n </div>\n <button *ngIf=\"removable\" class=\"kit-pill-button\" (click)=\"removed.next()\">\n <kit-svg-icon class=\"display-block kit-pill-button-icon\"\n [icon]=\"closeIcon\"\n ></kit-svg-icon>\n </button>\n</div>\n",
1789
- changeDetection: core.ChangeDetectionStrategy.OnPush,
1790
- styles: [".kit-pill{padding:5px 8px;background:#ffffff;border:1px solid #ebebe4;color:#9a9fa6;border-radius:20px;font-weight:400;font-size:12px;text-align:center}.kit-pill:not(.kit-pill-selectable),.kit-pill.kit-pill-selectable.kit-pill-selected{border:1px solid #a9a8a8;color:#002a3a}.kit-pill.kit-pill-selectable{cursor:pointer}.kit-pill.kit-pill-selectable:hover{background:#efefef}.kit-pill-button{margin-left:8px;cursor:pointer;background:none;outline:none;border:none;padding:0}.kit-pill-button-icon{height:14px;width:14px;stroke:#74777d}\n"]
1791
- },] }
1792
- ];
1793
- KitPillComponent.propDecorators = {
1794
- removable: [{ type: core.Input }],
1795
- selectable: [{ type: core.Input }],
1796
- selected: [{ type: core.Input }],
1797
- clicked: [{ type: core.Output }],
1798
- removed: [{ type: core.Output }],
1799
- onComponentClick: [{ type: core.HostListener, args: ['click',] }]
1800
- };
1801
-
1802
- var KitPillModule = /** @class */ (function () {
1803
- function KitPillModule() {
1804
- }
1805
- return KitPillModule;
1806
- }());
1807
- KitPillModule.decorators = [
1808
- { type: core.NgModule, args: [{
1809
- declarations: [
1810
- KitPillComponent,
1811
- ],
1812
- exports: [
1813
- KitPillComponent,
1814
- ],
1815
- imports: [
1816
- KitSvgIconModule,
1817
- common.CommonModule,
1818
- ],
1819
- },] }
1820
- ];
1821
-
1822
1496
  /*! *****************************************************************************
1823
1497
  Copyright (c) Microsoft Corporation.
1824
1498
 
@@ -2095,107 +1769,514 @@
2095
1769
  if (Object.defineProperty) {
2096
1770
  Object.defineProperty(cooked, "raw", { value: raw });
2097
1771
  }
2098
- else {
2099
- cooked.raw = raw;
1772
+ else {
1773
+ cooked.raw = raw;
1774
+ }
1775
+ return cooked;
1776
+ }
1777
+ ;
1778
+ var __setModuleDefault = Object.create ? (function (o, v) {
1779
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
1780
+ }) : function (o, v) {
1781
+ o["default"] = v;
1782
+ };
1783
+ function __importStar(mod) {
1784
+ if (mod && mod.__esModule)
1785
+ return mod;
1786
+ var result = {};
1787
+ if (mod != null)
1788
+ for (var k in mod)
1789
+ if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k))
1790
+ __createBinding(result, mod, k);
1791
+ __setModuleDefault(result, mod);
1792
+ return result;
1793
+ }
1794
+ function __importDefault(mod) {
1795
+ return (mod && mod.__esModule) ? mod : { default: mod };
1796
+ }
1797
+ function __classPrivateFieldGet(receiver, state, kind, f) {
1798
+ if (kind === "a" && !f)
1799
+ throw new TypeError("Private accessor was defined without a getter");
1800
+ if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver))
1801
+ throw new TypeError("Cannot read private member from an object whose class did not declare it");
1802
+ return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
1803
+ }
1804
+ function __classPrivateFieldSet(receiver, state, value, kind, f) {
1805
+ if (kind === "m")
1806
+ throw new TypeError("Private method is not writable");
1807
+ if (kind === "a" && !f)
1808
+ throw new TypeError("Private accessor was defined without a setter");
1809
+ if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver))
1810
+ throw new TypeError("Cannot write private member to an object whose class did not declare it");
1811
+ return (kind === "a" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value)), value;
1812
+ }
1813
+
1814
+ exports.KitTooltipPosition = void 0;
1815
+ (function (KitTooltipPosition) {
1816
+ KitTooltipPosition["TOP"] = "top";
1817
+ KitTooltipPosition["BOTTOM"] = "bottom";
1818
+ KitTooltipPosition["RIGHT"] = "right";
1819
+ KitTooltipPosition["LEFT"] = "left";
1820
+ })(exports.KitTooltipPosition || (exports.KitTooltipPosition = {}));
1821
+ var KitTooltipDirective = /** @class */ (function (_super) {
1822
+ __extends(KitTooltipDirective, _super);
1823
+ function KitTooltipDirective() {
1824
+ var _this = _super.apply(this, __spreadArray([], __read(arguments))) || this;
1825
+ _this.kitTooltipPosition = exports.KitTooltipPosition.BOTTOM;
1826
+ _this.kitTooltipFilter = '';
1827
+ return _this;
1828
+ }
1829
+ KitTooltipDirective.prototype.ngOnInit = function () {
1830
+ if (!this.kitTooltipTemplateRef) {
1831
+ return;
1832
+ }
1833
+ // we need this because assigning like "position = this.kitTooltipPosition" doesn't work because of inputs init latency
1834
+ // so we need to ensure inputs are set
1835
+ _super.prototype.ngOnInit.call(this);
1836
+ this.tooltipTemplate = this.kitTooltipTemplateRef;
1837
+ this.filter = this.kitTooltipFilter;
1838
+ this.position = this.kitTooltipPosition;
1839
+ };
1840
+ return KitTooltipDirective;
1841
+ }(kendoAngularTooltip.TooltipDirective));
1842
+ KitTooltipDirective.decorators = [
1843
+ { type: core.Directive, args: [{
1844
+ selector: '[kitTooltip]',
1845
+ providers: [
1846
+ kendoAngularPopup.PopupService,
1847
+ ],
1848
+ },] }
1849
+ ];
1850
+ KitTooltipDirective.propDecorators = {
1851
+ kitTooltipPosition: [{ type: core.Input }],
1852
+ kitTooltipFilter: [{ type: core.Input }],
1853
+ kitTooltipTemplateRef: [{ type: core.Input }]
1854
+ };
1855
+
1856
+ var KitLocationStepperComponent = /** @class */ (function () {
1857
+ function KitLocationStepperComponent() {
1858
+ /**
1859
+ * An items list to be shown as steps
1860
+ */
1861
+ this.items = [];
1862
+ this.toolTipPosition = exports.KitTooltipPosition.RIGHT;
1863
+ this.KitSvgIcon = exports.KitSvgIcon;
1864
+ }
1865
+ return KitLocationStepperComponent;
1866
+ }());
1867
+ KitLocationStepperComponent.decorators = [
1868
+ { type: core.Component, args: [{
1869
+ selector: 'kit-location-stepper',
1870
+ template: "<ng-template #icon let-item=\"item\">\n <kit-svg-icon [icon]=\"item.icon\" class=\"display-block location-icon\"\n [title]=\"item.title\"\n ></kit-svg-icon>\n</ng-template>\n\n<ng-template #description let-item=\"item\">\n <ng-template #toolTip>\n <span class=\"location-tooltip\">{{ item.toolTipText }}</span>\n </ng-template>\n <div *ngIf=\"item.toolTipText\" class=\"description-item\" kitTooltip\n kitTooltipFilter=\"div.description-item\"\n tooltipClass=\"location-tooltip-wrapper\"\n [kitTooltipTemplateRef]=\"toolTip\"\n [kitTooltipPosition]=\"toolTipPosition\">\n <div class=\"title\">{{ item.title }}</div>\n <div *ngIf=\"item.description\" class=\"caption\">{{ item.description }}</div>\n </div>\n\n <div *ngIf=\"!item.toolTipText\">\n <div class=\"title\">{{ item.title }}</div>\n <div *ngIf=\"item.description\" class=\"caption\">{{ item.description }}</div>\n </div>\n</ng-template>\n\n<ng-template #dates let-dates=\"dates\">\n <div *ngFor=\"let date of dates\" class=\"date display-flex\">\n <span class=\"date-description\">{{ date.description }}</span>\n <span>{{ date.value }}</span>\n </div>\n</ng-template>\n\n<div class=\"kit-location-stepper\">\n <div *ngFor=\"let item of items; let first = first; let last = last\" class=\"step {{ item.cssClass }}\"\n [class.first]=\"first\"\n [class.last]=\"last\"\n [class.has-sub-items]=\"!!item.subItems\">\n <div class=\"step-inner display-flex\">\n <div *ngIf=\"item.dates?.length\" class=\"dates\">\n <ng-container *ngTemplateOutlet=\"dates; context: { dates: item.dates }\"></ng-container>\n </div>\n\n <ng-container *ngTemplateOutlet=\"icon; context: { item: item }\"></ng-container>\n\n <div class=\"description\">\n <ng-container *ngTemplateOutlet=\"description; context: { item: item }\"></ng-container>\n </div>\n </div>\n <div *ngIf=\"item.subItems?.length\" class=\"sub-items\">\n <div *ngFor=\"let subItem of item.subItems\" class=\"sub-item display-flex {{ subItem.cssClass }}\">\n <div *ngIf=\"subItem.dates?.length\" class=\"dates\">\n <ng-container *ngTemplateOutlet=\"dates; context: { dates: subItem.dates }\"></ng-container>\n </div>\n\n <ng-container *ngTemplateOutlet=\"icon; context: { item: subItem }\"></ng-container>\n\n <div class=\"description\">\n <ng-container *ngTemplateOutlet=\"description; context: { item: subItem }\"></ng-container>\n </div>\n </div>\n </div>\n <div class=\"step-line\"></div>\n </div>\n</div>\n",
1871
+ changeDetection: core.ChangeDetectionStrategy.OnPush,
1872
+ encapsulation: core.ViewEncapsulation.None,
1873
+ styles: [".display-flex{display:flex}.flex-align-items-center{align-items:center}.flex-justify-content-center{justify-content:center}.flex-justify-content-end{justify-content:flex-end}.display-block{display:block}.kit-location-stepper .step{position:relative}.kit-location-stepper .step:not(:first-child){margin-top:1px}.kit-location-stepper .step:last-child .step-line{display:none}.kit-location-stepper .step-line{position:absolute;top:24px;left:calc(198px - 2px / 2);width:2px;height:100%;background-color:#efefef}.kit-location-stepper .step-inner{position:relative;padding:20px 0 12px;z-index:2}.kit-location-stepper .caption{margin-top:6px;color:#002a3a;font-size:14px;font-weight:500}.kit-location-stepper .title{text-transform:uppercase;color:#00b0ad;font-size:12px;font-weight:500;letter-spacing:.2em}.kit-location-stepper .date:not(:first-child){margin-top:10px}.kit-location-stepper .description{margin-left:10px;flex:1 0}.kit-location-stepper .description-item{display:inline-block}.kit-location-stepper .location-icon{width:24px;height:24px;background:#ffffff;stroke:#a9a8a8;fill:#fff;position:relative;z-index:1}.kit-location-stepper .last .location-icon{stroke:#4e4696}.kit-location-stepper .first .location-icon{stroke:#00b0ad}.kit-location-stepper .dates{padding-left:10px;min-width:176px;min-height:40px;color:#002a3a;font-size:13px}.kit-location-stepper .date-description{margin-right:18px;width:30px;color:#a9a8a8;font-weight:500;text-align:right}.kit-location-stepper .danger .step-inner{border:1px solid #ef3e42;border-radius:4px;background-color:#f8e0e0}.kit-location-stepper .danger .location-icon{fill:#f8e0e0;background-color:#f8e0e0}.kit-location-stepper .danger:not(:first-child){margin-top:20px}.kit-location-stepper .sub-item{position:relative;padding:14px 0 12px;z-index:1}.kit-location-stepper .sub-item .dates{margin-right:34px}.kit-location-stepper .sub-item .location-icon{background:#ffffff}.kit-location-stepper .sub-item .location-icon:before{content:\"\";position:absolute;left:calc(50% - 2px / 2);top:-18px;width:2px;height:18px;background-color:#efefef}.kit-location-stepper .sub-item .description{margin-left:6px}.kit-location-stepper .sub-item.danger{margin-top:20px;border:1px solid #ef3e42;border-radius:4px;background-color:#f8e0e0}.kit-location-stepper .sub-item.danger .location-icon{background-color:#f8e0e0}.kit-location-stepper .sub-item.danger .location-icon:before{display:none}.location-tooltip-wrapper .location-tooltip{white-space:pre-wrap}\n"]
1874
+ },] }
1875
+ ];
1876
+ KitLocationStepperComponent.propDecorators = {
1877
+ items: [{ type: core.Input }],
1878
+ toolTipPosition: [{ type: core.Input }]
1879
+ };
1880
+
1881
+ var KitTooltipModule = /** @class */ (function () {
1882
+ function KitTooltipModule() {
1883
+ }
1884
+ return KitTooltipModule;
1885
+ }());
1886
+ KitTooltipModule.decorators = [
1887
+ { type: core.NgModule, args: [{
1888
+ declarations: [
1889
+ KitTooltipDirective,
1890
+ ],
1891
+ exports: [
1892
+ KitTooltipDirective,
1893
+ kendoAngularTooltip.TooltipModule,
1894
+ ],
1895
+ },] }
1896
+ ];
1897
+
1898
+ var KitLocationStepperModule = /** @class */ (function () {
1899
+ function KitLocationStepperModule() {
1900
+ }
1901
+ return KitLocationStepperModule;
1902
+ }());
1903
+ KitLocationStepperModule.decorators = [
1904
+ { type: core.NgModule, args: [{
1905
+ imports: [
1906
+ common.CommonModule,
1907
+ KitSvgIconModule,
1908
+ KitTooltipModule,
1909
+ ],
1910
+ declarations: [
1911
+ KitLocationStepperComponent,
1912
+ ],
1913
+ exports: [
1914
+ KitLocationStepperComponent,
1915
+ ],
1916
+ },] }
1917
+ ];
1918
+
1919
+ var KitAutocompleteModule = /** @class */ (function () {
1920
+ function KitAutocompleteModule() {
1921
+ }
1922
+ return KitAutocompleteModule;
1923
+ }());
1924
+ KitAutocompleteModule.decorators = [
1925
+ { type: core.NgModule, args: [{
1926
+ declarations: [
1927
+ KitAutocompleteComponent,
1928
+ ],
1929
+ imports: [
1930
+ common.CommonModule,
1931
+ kendoAngularDropdowns.DropDownsModule,
1932
+ forms.FormsModule,
1933
+ forms.ReactiveFormsModule,
1934
+ kendoAngularLabel.LabelModule,
1935
+ kendoAngularInputs.InputsModule,
1936
+ KitInputMessageModule,
1937
+ KitLoaderModule,
1938
+ KitSvgIconModule,
1939
+ ],
1940
+ exports: [
1941
+ KitAutocompleteComponent,
1942
+ ],
1943
+ },] }
1944
+ ];
1945
+
1946
+ exports.KitCheckboxState = void 0;
1947
+ (function (KitCheckboxState) {
1948
+ KitCheckboxState["REGULAR"] = "regular";
1949
+ KitCheckboxState["DANGER"] = "danger";
1950
+ })(exports.KitCheckboxState || (exports.KitCheckboxState = {}));
1951
+ var KitCheckboxComponent = /** @class */ (function () {
1952
+ function KitCheckboxComponent() {
1953
+ /**
1954
+ * States the component is disabled
1955
+ */
1956
+ this.disabled = false;
1957
+ /**
1958
+ * Defines a default value
1959
+ */
1960
+ this.defaultChecked = false;
1961
+ /**
1962
+ * Defines a particular state for the component
1963
+ */
1964
+ this.state = exports.KitCheckboxState.REGULAR;
1965
+ /**
1966
+ * Defines a value which going to be an info message type
1967
+ */
1968
+ this.messageType = exports.KitInputMessageType.DEFAULT;
1969
+ /**
1970
+ * Occurs as soon as input checked state is changed
1971
+ */
1972
+ this.changed = new core.EventEmitter();
1973
+ /**
1974
+ * Function that should be called every time the form control value changes
1975
+ */
1976
+ this.onChange = function (value) {
1977
+ };
1978
+ /**
1979
+ * Function that should be called when input lost focus and changed form control state to "touched"
1980
+ */
1981
+ this.onTouched = function (value) {
1982
+ };
1983
+ }
1984
+ KitCheckboxComponent.prototype.onInputStateChange = function (event) {
1985
+ var target = event.target;
1986
+ var checked = target.checked;
1987
+ this.onChange(checked);
1988
+ this.changed.emit(checked);
1989
+ };
1990
+ KitCheckboxComponent.prototype.registerOnChange = function (fn) {
1991
+ this.onChange = fn;
1992
+ };
1993
+ KitCheckboxComponent.prototype.registerOnTouched = function (fn) {
1994
+ this.onTouched = fn;
1995
+ };
1996
+ KitCheckboxComponent.prototype.writeValue = function (value) {
1997
+ this.onChange(value);
1998
+ this.defaultChecked = value;
1999
+ };
2000
+ KitCheckboxComponent.prototype.setDisabledState = function (disabled) {
2001
+ this.disabled = disabled;
2002
+ };
2003
+ return KitCheckboxComponent;
2004
+ }());
2005
+ KitCheckboxComponent.decorators = [
2006
+ { type: core.Component, args: [{
2007
+ selector: 'kit-checkbox',
2008
+ template: "<div class=\"kit-checkbox\"\n [class.disabled]=\"disabled\"\n [ngClass]=\"state\">\n <div class=\"display-flex flex-align-items-center\">\n <input kendoCheckBox #checkbox type=\"checkbox\" class=\"checkbox\"\n [checked]=\"defaultChecked\"\n [disabled]=\"disabled\"\n (change)=\"onInputStateChange($event)\" />\n <kendo-label class=\"label\" [text]=\"label\"\n [for]=\"checkbox\"\n ></kendo-label>\n </div>\n <kit-input-message *ngIf=\"messageText\"\n [type]=\"messageType\"\n [icon]=\"messageIcon\"\n [message]=\"messageText\"\n ></kit-input-message>\n</div>\n",
2009
+ changeDetection: core.ChangeDetectionStrategy.OnPush,
2010
+ providers: [{
2011
+ provide: forms.NG_VALUE_ACCESSOR,
2012
+ useExisting: core.forwardRef(function () { return KitCheckboxComponent; }),
2013
+ multi: true,
2014
+ }],
2015
+ styles: [".display-flex{display:flex}.flex-align-items-center{align-items:center}.flex-justify-content-center{justify-content:center}.flex-justify-content-end{justify-content:flex-end}.display-block{display:block}.kit-checkbox .label{margin-left:8px;font-size:14px;font-weight:400;color:#27282a}.kit-checkbox .checkbox{width:20px;height:20px;border-radius:4px;border-color:#c1c7d0;opacity:1}.kit-checkbox .checkbox:checked{background:#006890;border-color:#006890}.kit-checkbox .checkbox:focus{box-shadow:0 0 0 3px #e7f4ec;border-color:#006890}.kit-checkbox .checkbox:hover{border-color:#006890}.kit-checkbox.disabled{pointer-events:none}.kit-checkbox.disabled .label{color:#9a9fa6}.kit-checkbox.disabled .checkbox{border-color:#cdd2d9;background-color:#fff}.kit-checkbox.danger .checkbox{border-color:#ef3e42;background:#f8e0e0}.kit-checkbox.danger .checkbox:before{color:#ef3e42}.kit-checkbox.disabled .checkbox:checked{background-color:#c1c7d0}.kit-checkbox.disabled.danger .checkbox{background-color:#f8e0e0;border-color:#cdd2d9}.kit-checkbox.disabled.danger .checkbox:before{color:#f3f4f6}\n"]
2016
+ },] }
2017
+ ];
2018
+ KitCheckboxComponent.propDecorators = {
2019
+ label: [{ type: core.Input }],
2020
+ disabled: [{ type: core.Input }],
2021
+ defaultChecked: [{ type: core.Input }],
2022
+ state: [{ type: core.Input }],
2023
+ messageIcon: [{ type: core.Input }],
2024
+ messageText: [{ type: core.Input }],
2025
+ messageType: [{ type: core.Input }],
2026
+ changed: [{ type: core.Output }]
2027
+ };
2028
+
2029
+ var KitCheckboxModule = /** @class */ (function () {
2030
+ function KitCheckboxModule() {
2031
+ }
2032
+ return KitCheckboxModule;
2033
+ }());
2034
+ KitCheckboxModule.decorators = [
2035
+ { type: core.NgModule, args: [{
2036
+ declarations: [
2037
+ KitCheckboxComponent,
2038
+ ],
2039
+ exports: [
2040
+ KitCheckboxComponent,
2041
+ ],
2042
+ imports: [
2043
+ kendoAngularLabel.LabelModule,
2044
+ kendoAngularInputs.CheckBoxModule,
2045
+ common.CommonModule,
2046
+ KitInputMessageModule,
2047
+ ],
2048
+ },] }
2049
+ ];
2050
+
2051
+ var KitToggleComponent = /** @class */ (function () {
2052
+ function KitToggleComponent() {
2053
+ /**
2054
+ * Defines whether the component will be in disabled state
2055
+ */
2056
+ this.disabled = false;
2057
+ /**
2058
+ * Defines a default value
2059
+ */
2060
+ this.defaultChecked = false;
2061
+ /**
2062
+ * Defines a value which going to be an info message type
2063
+ */
2064
+ this.messageType = exports.KitInputMessageType.DEFAULT;
2065
+ /**
2066
+ * Occurs as soon as toggle state is changed
2067
+ */
2068
+ this.changed = new core.EventEmitter();
2069
+ /**
2070
+ * Function that should be called every time the form control value changes
2071
+ */
2072
+ this.onChange = function (value) {
2073
+ };
2074
+ /**
2075
+ * Function that should be called when input lost focus and changed form control state to "touched"
2076
+ */
2077
+ this.onTouched = function () {
2078
+ };
2100
2079
  }
2101
- return cooked;
2102
- }
2103
- ;
2104
- var __setModuleDefault = Object.create ? (function (o, v) {
2105
- Object.defineProperty(o, "default", { enumerable: true, value: v });
2106
- }) : function (o, v) {
2107
- o["default"] = v;
2080
+ /**
2081
+ * Function that is called when toggle state changed
2082
+ */
2083
+ KitToggleComponent.prototype.onInputStateChange = function (checked) {
2084
+ this.onChange(checked);
2085
+ this.changed.emit(checked);
2086
+ };
2087
+ KitToggleComponent.prototype.registerOnChange = function (fn) {
2088
+ this.onChange = fn;
2089
+ };
2090
+ KitToggleComponent.prototype.registerOnTouched = function (fn) {
2091
+ this.onTouched = fn;
2092
+ };
2093
+ KitToggleComponent.prototype.writeValue = function (value) {
2094
+ this.onChange(value);
2095
+ this.defaultChecked = value;
2096
+ };
2097
+ KitToggleComponent.prototype.setDisabledState = function (disabled) {
2098
+ this.disabled = disabled;
2099
+ };
2100
+ return KitToggleComponent;
2101
+ }());
2102
+ KitToggleComponent.decorators = [
2103
+ { type: core.Component, args: [{
2104
+ selector: 'kit-toggle',
2105
+ template: "<div class=\"kit-toggle\">\n <div class=\"display-flex flex-align-items-center\">\n <kendo-switch [checked]=\"defaultChecked\"\n [disabled]=\"disabled\"\n (valueChange)=\"onInputStateChange($event)\"\n ></kendo-switch>\n <kendo-label class=\"label\" [text]=\"label\"></kendo-label>\n </div>\n <kit-input-message *ngIf=\"messageText\"\n [type]=\"messageType\"\n [icon]=\"messageIcon\"\n [message]=\"messageText\"\n ></kit-input-message>\n</div>\n",
2106
+ changeDetection: core.ChangeDetectionStrategy.OnPush,
2107
+ encapsulation: core.ViewEncapsulation.None,
2108
+ providers: [{
2109
+ provide: forms.NG_VALUE_ACCESSOR,
2110
+ useExisting: core.forwardRef(function () { return KitToggleComponent; }),
2111
+ multi: true,
2112
+ }],
2113
+ styles: [".display-flex{display:flex}.flex-align-items-center{align-items:center}.flex-justify-content-center{justify-content:center}.flex-justify-content-end{justify-content:flex-end}.display-block{display:block}.kit-toggle .label{margin-left:20px;font-size:14px;font-weight:400;color:#27282a}.kit-toggle .k-switch-container{display:flex;align-items:center;width:100%;box-shadow:none;border-radius:20px;border:2px solid;background:#ffffff}.kit-toggle .k-switch-handle{width:8px;height:8px;border:none}.kit-toggle .k-switch-label-on,.kit-toggle .k-switch-label-off{display:none}.kit-toggle .k-state-focused .k-switch-container{box-shadow:none}.kit-toggle .k-switch-off .k-switch-container{border-color:#c1c7d0}.kit-toggle .k-switch-off .k-switch-handle{left:2px;background:#c1c7d0}.kit-toggle .k-switch-on .k-switch-container{border-color:#006890;background:#ffffff}.kit-toggle .k-switch-on .k-switch-handle{left:calc(100% - 10px);background:#006890}.kit-toggle .k-switch{width:32px;height:16px}.kit-toggle .k-switch .k-switch-container:hover{box-shadow:none}.kit-toggle .k-state-disabled{opacity:1}.kit-toggle .k-state-disabled.k-switch-off .k-switch-container{border-color:#e6e9ec}.kit-toggle .k-state-disabled.k-switch-off .k-switch-handle{background:#e6e9ec}.kit-toggle .k-state-disabled.k-switch-on .k-switch-container{border-color:#cce1e9}.kit-toggle .k-state-disabled.k-switch-on .k-switch-handle{background:#cce1e9}\n"]
2114
+ },] }
2115
+ ];
2116
+ KitToggleComponent.propDecorators = {
2117
+ label: [{ type: core.Input }],
2118
+ disabled: [{ type: core.Input }],
2119
+ defaultChecked: [{ type: core.Input }],
2120
+ messageIcon: [{ type: core.Input }],
2121
+ messageText: [{ type: core.Input }],
2122
+ messageType: [{ type: core.Input }],
2123
+ changed: [{ type: core.Output }]
2108
2124
  };
2109
- function __importStar(mod) {
2110
- if (mod && mod.__esModule)
2111
- return mod;
2112
- var result = {};
2113
- if (mod != null)
2114
- for (var k in mod)
2115
- if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k))
2116
- __createBinding(result, mod, k);
2117
- __setModuleDefault(result, mod);
2118
- return result;
2119
- }
2120
- function __importDefault(mod) {
2121
- return (mod && mod.__esModule) ? mod : { default: mod };
2122
- }
2123
- function __classPrivateFieldGet(receiver, state, kind, f) {
2124
- if (kind === "a" && !f)
2125
- throw new TypeError("Private accessor was defined without a getter");
2126
- if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver))
2127
- throw new TypeError("Cannot read private member from an object whose class did not declare it");
2128
- return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
2129
- }
2130
- function __classPrivateFieldSet(receiver, state, value, kind, f) {
2131
- if (kind === "m")
2132
- throw new TypeError("Private method is not writable");
2133
- if (kind === "a" && !f)
2134
- throw new TypeError("Private accessor was defined without a setter");
2135
- if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver))
2136
- throw new TypeError("Cannot write private member to an object whose class did not declare it");
2137
- return (kind === "a" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value)), value;
2138
- }
2139
2125
 
2140
- exports.KitTooltipPosition = void 0;
2141
- (function (KitTooltipPosition) {
2142
- KitTooltipPosition["TOP"] = "top";
2143
- KitTooltipPosition["BOTTOM"] = "bottom";
2144
- KitTooltipPosition["RIGHT"] = "right";
2145
- KitTooltipPosition["LEFT"] = "left";
2146
- })(exports.KitTooltipPosition || (exports.KitTooltipPosition = {}));
2147
- var KitTooltipDirective = /** @class */ (function (_super) {
2148
- __extends(KitTooltipDirective, _super);
2149
- function KitTooltipDirective() {
2150
- var _this = _super.apply(this, __spreadArray([], __read(arguments))) || this;
2151
- _this.kitTooltipPosition = exports.KitTooltipPosition.BOTTOM;
2152
- _this.kitTooltipFilter = '';
2153
- return _this;
2126
+ var KitToggleModule = /** @class */ (function () {
2127
+ function KitToggleModule() {
2154
2128
  }
2155
- KitTooltipDirective.prototype.ngOnInit = function () {
2156
- if (!this.kitTooltipTemplateRef) {
2129
+ return KitToggleModule;
2130
+ }());
2131
+ KitToggleModule.decorators = [
2132
+ { type: core.NgModule, args: [{
2133
+ declarations: [
2134
+ KitToggleComponent,
2135
+ ],
2136
+ imports: [
2137
+ common.CommonModule,
2138
+ kendoAngularInputs.SwitchModule,
2139
+ kendoAngularLabel.LabelModule,
2140
+ KitInputMessageModule,
2141
+ ],
2142
+ exports: [
2143
+ KitToggleComponent,
2144
+ ],
2145
+ },] }
2146
+ ];
2147
+
2148
+ var KitPillComponent = /** @class */ (function () {
2149
+ function KitPillComponent() {
2150
+ this.removable = false;
2151
+ this.selectable = false;
2152
+ this.selected = false;
2153
+ this.clicked = new core.EventEmitter();
2154
+ this.removed = new core.EventEmitter();
2155
+ this.closeIcon = exports.KitSvgIcon.CROSS;
2156
+ }
2157
+ KitPillComponent.prototype.onComponentClick = function () {
2158
+ if (!this.selectable) {
2157
2159
  return;
2158
2160
  }
2159
- // we need this because assigning like "position = this.kitTooltipPosition" doesn't work because of inputs init latency
2160
- // so we need to ensure inputs are set
2161
- _super.prototype.ngOnInit.call(this);
2162
- this.tooltipTemplate = this.kitTooltipTemplateRef;
2163
- this.filter = this.kitTooltipFilter;
2164
- this.position = this.kitTooltipPosition;
2161
+ this.clicked.emit(!this.selected);
2165
2162
  };
2166
- return KitTooltipDirective;
2167
- }(kendoAngularTooltip.TooltipDirective));
2168
- KitTooltipDirective.decorators = [
2169
- { type: core.Directive, args: [{
2170
- selector: '[kitTooltip]',
2171
- providers: [
2172
- kendoAngularPopup.PopupService,
2173
- ],
2163
+ return KitPillComponent;
2164
+ }());
2165
+ KitPillComponent.decorators = [
2166
+ { type: core.Component, args: [{
2167
+ selector: 'kit-pill',
2168
+ template: "<div class=\"kit-pill display-flex flex-align-items-center\"\n [class.kit-pill-selectable]=\"selectable\"\n [class.kit-pill-selected]=\"selected\">\n <div class=\"kit-pill-content display-flex flex-align-items-center\">\n <ng-content\n ></ng-content>\n </div>\n <button *ngIf=\"removable\" class=\"kit-pill-button\" (click)=\"removed.next()\">\n <kit-svg-icon class=\"display-block kit-pill-button-icon\"\n [icon]=\"closeIcon\"\n ></kit-svg-icon>\n </button>\n</div>\n",
2169
+ changeDetection: core.ChangeDetectionStrategy.OnPush,
2170
+ styles: [".kit-pill{padding:5px 8px;background:#ffffff;border:1px solid #ebebe4;color:#9a9fa6;border-radius:20px;font-weight:400;font-size:12px;text-align:center}.kit-pill:not(.kit-pill-selectable),.kit-pill.kit-pill-selectable.kit-pill-selected{border:1px solid #a9a8a8;color:#002a3a}.kit-pill.kit-pill-selectable{cursor:pointer}.kit-pill.kit-pill-selectable:hover{background:#efefef}.kit-pill-button{margin-left:8px;cursor:pointer;background:none;outline:none;border:none;padding:0}.kit-pill-button-icon{height:14px;width:14px;stroke:#74777d}\n"]
2174
2171
  },] }
2175
2172
  ];
2176
- KitTooltipDirective.propDecorators = {
2177
- kitTooltipPosition: [{ type: core.Input }],
2178
- kitTooltipFilter: [{ type: core.Input }],
2179
- kitTooltipTemplateRef: [{ type: core.Input }]
2173
+ KitPillComponent.propDecorators = {
2174
+ removable: [{ type: core.Input }],
2175
+ selectable: [{ type: core.Input }],
2176
+ selected: [{ type: core.Input }],
2177
+ clicked: [{ type: core.Output }],
2178
+ removed: [{ type: core.Output }],
2179
+ onComponentClick: [{ type: core.HostListener, args: ['click',] }]
2180
2180
  };
2181
2181
 
2182
- var KitTooltipModule = /** @class */ (function () {
2183
- function KitTooltipModule() {
2182
+ var KitPillModule = /** @class */ (function () {
2183
+ function KitPillModule() {
2184
2184
  }
2185
- return KitTooltipModule;
2185
+ return KitPillModule;
2186
2186
  }());
2187
- KitTooltipModule.decorators = [
2187
+ KitPillModule.decorators = [
2188
2188
  { type: core.NgModule, args: [{
2189
2189
  declarations: [
2190
- KitTooltipDirective,
2190
+ KitPillComponent,
2191
2191
  ],
2192
2192
  exports: [
2193
- KitTooltipDirective,
2194
- kendoAngularTooltip.TooltipModule,
2193
+ KitPillComponent,
2194
+ ],
2195
+ imports: [
2196
+ KitSvgIconModule,
2197
+ common.CommonModule,
2198
+ ],
2199
+ },] }
2200
+ ];
2201
+
2202
+ var KitToastrModule = /** @class */ (function () {
2203
+ function KitToastrModule() {
2204
+ }
2205
+ return KitToastrModule;
2206
+ }());
2207
+ KitToastrModule.decorators = [
2208
+ { type: core.NgModule, args: [{
2209
+ imports: [
2210
+ ngxToastr.ToastrModule.forRoot(),
2195
2211
  ],
2196
2212
  },] }
2197
2213
  ];
2198
2214
 
2215
+ var DEFAULT_TOASTR_CLASS = 'ngx-toastr display-block kit-toastr';
2216
+ var ACTIVE_OVERLAY_CLASS = 'kit-overlay-container';
2217
+ exports.KitToastrType = void 0;
2218
+ (function (KitToastrType) {
2219
+ KitToastrType["ERROR"] = "toast-error";
2220
+ KitToastrType["INFO"] = "toast-info";
2221
+ KitToastrType["SUCCESS"] = "toast-success";
2222
+ KitToastrType["WARNING"] = "toast-warning";
2223
+ })(exports.KitToastrType || (exports.KitToastrType = {}));
2224
+ var KitToastrService = /** @class */ (function () {
2225
+ function KitToastrService(toastrService, rendererFactory2) {
2226
+ this.toastrService = toastrService;
2227
+ this.rendererFactory2 = rendererFactory2;
2228
+ this.renderer2 = this.rendererFactory2.createRenderer(null, null);
2229
+ }
2230
+ KitToastrService.prototype.show = function (config) {
2231
+ var _this = this;
2232
+ var toastr = this.toastrService.show(config.message, config.title, this.getConfig(config));
2233
+ this.addOverlayContainerClass();
2234
+ // "onTap" occurs whenever toastr has been clicked up
2235
+ // so we need to remove them only if "dismissible" is set
2236
+ if (config.dismissible) {
2237
+ // we need this because "toast-container" has styles for modal appearance
2238
+ // otherwise, we have an empty black container which prevents any actions
2239
+ toastr.onTap.subscribe(function () { return _this.removeOverlayContainerClassIfToastsEmpty(toastr); });
2240
+ }
2241
+ return toastr;
2242
+ };
2243
+ KitToastrService.prototype.getConfig = function (baseConfig) {
2244
+ var tapToDismissClass = baseConfig.dismissible && 'kit-toastr-dismissible' || '';
2245
+ return {
2246
+ positionClass: 'toast-top-center',
2247
+ disableTimeOut: true,
2248
+ tapToDismiss: baseConfig.dismissible,
2249
+ toastClass: DEFAULT_TOASTR_CLASS + " " + baseConfig.type + " " + tapToDismissClass,
2250
+ };
2251
+ };
2252
+ KitToastrService.prototype.removeOverlayContainerClassIfToastsEmpty = function (toastr) {
2253
+ // this prevents removing "toast-container" if toast are still on display
2254
+ // that's why we need to "remove" toasts one by one
2255
+ this.toastrService.remove(toastr.toastId);
2256
+ var toasts = this.toastrService.toasts;
2257
+ if (!toasts.length) {
2258
+ this.removeOverlayContainerClass();
2259
+ }
2260
+ };
2261
+ KitToastrService.prototype.addOverlayContainerClass = function () {
2262
+ this.renderer2.addClass(this.getOverlayContainer(), ACTIVE_OVERLAY_CLASS);
2263
+ };
2264
+ KitToastrService.prototype.removeOverlayContainerClass = function () {
2265
+ this.renderer2.removeClass(this.getOverlayContainer(), ACTIVE_OVERLAY_CLASS);
2266
+ };
2267
+ KitToastrService.prototype.getOverlayContainer = function () {
2268
+ return this.renderer2.selectRootElement('.overlay-container', true);
2269
+ };
2270
+ return KitToastrService;
2271
+ }());
2272
+ KitToastrService.decorators = [
2273
+ { type: core.Injectable }
2274
+ ];
2275
+ KitToastrService.ctorParameters = function () { return [
2276
+ { type: ngxToastr.ToastrService },
2277
+ { type: core.RendererFactory2 }
2278
+ ]; };
2279
+
2199
2280
  // KitButton
2200
2281
 
2201
2282
  /**
@@ -2237,6 +2318,8 @@
2237
2318
  exports.KitTextareaModule = KitTextareaModule;
2238
2319
  exports.KitTextboxComponent = KitTextboxComponent;
2239
2320
  exports.KitTextboxModule = KitTextboxModule;
2321
+ exports.KitToastrModule = KitToastrModule;
2322
+ exports.KitToastrService = KitToastrService;
2240
2323
  exports.KitToggleComponent = KitToggleComponent;
2241
2324
  exports.KitToggleModule = KitToggleModule;
2242
2325
  exports.KitTooltipDirective = KitTooltipDirective;