@indigina/ui-kit 1.0.75 → 1.0.76

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('@angular/platform-browser/animations')) :
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', '@angular/platform-browser/animations'], 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.ng.platformBrowser.animations));
5
+ })(this, (function (exports, core, common, kendoAngularButtons, forms, kendoAngularInputs, kendoAngularLabel, operators, kendoAngularDropdowns, kendoAngularDateinputs, kendoAngularPopup, kendoAngularTooltip, animations) { '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,103 +1769,433 @@
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
+ animations.BrowserAnimationsModule,
1910
+ ],
1911
+ declarations: [
1912
+ KitLocationStepperComponent,
1913
+ ],
1914
+ exports: [
1915
+ KitLocationStepperComponent,
1916
+ ],
1917
+ },] }
1918
+ ];
1919
+
1920
+ var KitAutocompleteModule = /** @class */ (function () {
1921
+ function KitAutocompleteModule() {
1922
+ }
1923
+ return KitAutocompleteModule;
1924
+ }());
1925
+ KitAutocompleteModule.decorators = [
1926
+ { type: core.NgModule, args: [{
1927
+ declarations: [
1928
+ KitAutocompleteComponent,
1929
+ ],
1930
+ imports: [
1931
+ common.CommonModule,
1932
+ kendoAngularDropdowns.DropDownsModule,
1933
+ forms.FormsModule,
1934
+ forms.ReactiveFormsModule,
1935
+ kendoAngularLabel.LabelModule,
1936
+ kendoAngularInputs.InputsModule,
1937
+ KitInputMessageModule,
1938
+ KitLoaderModule,
1939
+ KitSvgIconModule,
1940
+ ],
1941
+ exports: [
1942
+ KitAutocompleteComponent,
1943
+ ],
1944
+ },] }
1945
+ ];
1946
+
1947
+ exports.KitCheckboxState = void 0;
1948
+ (function (KitCheckboxState) {
1949
+ KitCheckboxState["REGULAR"] = "regular";
1950
+ KitCheckboxState["DANGER"] = "danger";
1951
+ })(exports.KitCheckboxState || (exports.KitCheckboxState = {}));
1952
+ var KitCheckboxComponent = /** @class */ (function () {
1953
+ function KitCheckboxComponent() {
1954
+ /**
1955
+ * States the component is disabled
1956
+ */
1957
+ this.disabled = false;
1958
+ /**
1959
+ * Defines a default value
1960
+ */
1961
+ this.defaultChecked = false;
1962
+ /**
1963
+ * Defines a particular state for the component
1964
+ */
1965
+ this.state = exports.KitCheckboxState.REGULAR;
1966
+ /**
1967
+ * Defines a value which going to be an info message type
1968
+ */
1969
+ this.messageType = exports.KitInputMessageType.DEFAULT;
1970
+ /**
1971
+ * Occurs as soon as input checked state is changed
1972
+ */
1973
+ this.changed = new core.EventEmitter();
1974
+ /**
1975
+ * Function that should be called every time the form control value changes
1976
+ */
1977
+ this.onChange = function (value) {
1978
+ };
1979
+ /**
1980
+ * Function that should be called when input lost focus and changed form control state to "touched"
1981
+ */
1982
+ this.onTouched = function (value) {
1983
+ };
1984
+ }
1985
+ KitCheckboxComponent.prototype.onInputStateChange = function (event) {
1986
+ var target = event.target;
1987
+ var checked = target.checked;
1988
+ this.onChange(checked);
1989
+ this.changed.emit(checked);
1990
+ };
1991
+ KitCheckboxComponent.prototype.registerOnChange = function (fn) {
1992
+ this.onChange = fn;
1993
+ };
1994
+ KitCheckboxComponent.prototype.registerOnTouched = function (fn) {
1995
+ this.onTouched = fn;
1996
+ };
1997
+ KitCheckboxComponent.prototype.writeValue = function (value) {
1998
+ this.onChange(value);
1999
+ this.defaultChecked = value;
2000
+ };
2001
+ KitCheckboxComponent.prototype.setDisabledState = function (disabled) {
2002
+ this.disabled = disabled;
2003
+ };
2004
+ return KitCheckboxComponent;
2005
+ }());
2006
+ KitCheckboxComponent.decorators = [
2007
+ { type: core.Component, args: [{
2008
+ selector: 'kit-checkbox',
2009
+ 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",
2010
+ changeDetection: core.ChangeDetectionStrategy.OnPush,
2011
+ providers: [{
2012
+ provide: forms.NG_VALUE_ACCESSOR,
2013
+ useExisting: core.forwardRef(function () { return KitCheckboxComponent; }),
2014
+ multi: true,
2015
+ }],
2016
+ 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"]
2017
+ },] }
2018
+ ];
2019
+ KitCheckboxComponent.propDecorators = {
2020
+ label: [{ type: core.Input }],
2021
+ disabled: [{ type: core.Input }],
2022
+ defaultChecked: [{ type: core.Input }],
2023
+ state: [{ type: core.Input }],
2024
+ messageIcon: [{ type: core.Input }],
2025
+ messageText: [{ type: core.Input }],
2026
+ messageType: [{ type: core.Input }],
2027
+ changed: [{ type: core.Output }]
2028
+ };
2029
+
2030
+ var KitCheckboxModule = /** @class */ (function () {
2031
+ function KitCheckboxModule() {
2032
+ }
2033
+ return KitCheckboxModule;
2034
+ }());
2035
+ KitCheckboxModule.decorators = [
2036
+ { type: core.NgModule, args: [{
2037
+ declarations: [
2038
+ KitCheckboxComponent,
2039
+ ],
2040
+ exports: [
2041
+ KitCheckboxComponent,
2042
+ ],
2043
+ imports: [
2044
+ kendoAngularLabel.LabelModule,
2045
+ kendoAngularInputs.CheckBoxModule,
2046
+ common.CommonModule,
2047
+ KitInputMessageModule,
2048
+ ],
2049
+ },] }
2050
+ ];
2051
+
2052
+ var KitToggleComponent = /** @class */ (function () {
2053
+ function KitToggleComponent() {
2054
+ /**
2055
+ * Defines whether the component will be in disabled state
2056
+ */
2057
+ this.disabled = false;
2058
+ /**
2059
+ * Defines a default value
2060
+ */
2061
+ this.defaultChecked = false;
2062
+ /**
2063
+ * Defines a value which going to be an info message type
2064
+ */
2065
+ this.messageType = exports.KitInputMessageType.DEFAULT;
2066
+ /**
2067
+ * Occurs as soon as toggle state is changed
2068
+ */
2069
+ this.changed = new core.EventEmitter();
2070
+ /**
2071
+ * Function that should be called every time the form control value changes
2072
+ */
2073
+ this.onChange = function (value) {
2074
+ };
2075
+ /**
2076
+ * Function that should be called when input lost focus and changed form control state to "touched"
2077
+ */
2078
+ this.onTouched = function () {
2079
+ };
2100
2080
  }
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;
2081
+ /**
2082
+ * Function that is called when toggle state changed
2083
+ */
2084
+ KitToggleComponent.prototype.onInputStateChange = function (checked) {
2085
+ this.onChange(checked);
2086
+ this.changed.emit(checked);
2087
+ };
2088
+ KitToggleComponent.prototype.registerOnChange = function (fn) {
2089
+ this.onChange = fn;
2090
+ };
2091
+ KitToggleComponent.prototype.registerOnTouched = function (fn) {
2092
+ this.onTouched = fn;
2093
+ };
2094
+ KitToggleComponent.prototype.writeValue = function (value) {
2095
+ this.onChange(value);
2096
+ this.defaultChecked = value;
2097
+ };
2098
+ KitToggleComponent.prototype.setDisabledState = function (disabled) {
2099
+ this.disabled = disabled;
2100
+ };
2101
+ return KitToggleComponent;
2102
+ }());
2103
+ KitToggleComponent.decorators = [
2104
+ { type: core.Component, args: [{
2105
+ selector: 'kit-toggle',
2106
+ 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",
2107
+ changeDetection: core.ChangeDetectionStrategy.OnPush,
2108
+ encapsulation: core.ViewEncapsulation.None,
2109
+ providers: [{
2110
+ provide: forms.NG_VALUE_ACCESSOR,
2111
+ useExisting: core.forwardRef(function () { return KitToggleComponent; }),
2112
+ multi: true,
2113
+ }],
2114
+ 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"]
2115
+ },] }
2116
+ ];
2117
+ KitToggleComponent.propDecorators = {
2118
+ label: [{ type: core.Input }],
2119
+ disabled: [{ type: core.Input }],
2120
+ defaultChecked: [{ type: core.Input }],
2121
+ messageIcon: [{ type: core.Input }],
2122
+ messageText: [{ type: core.Input }],
2123
+ messageType: [{ type: core.Input }],
2124
+ changed: [{ type: core.Output }]
2108
2125
  };
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
2126
 
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;
2127
+ var KitToggleModule = /** @class */ (function () {
2128
+ function KitToggleModule() {
2154
2129
  }
2155
- KitTooltipDirective.prototype.ngOnInit = function () {
2156
- if (!this.kitTooltipTemplateRef) {
2130
+ return KitToggleModule;
2131
+ }());
2132
+ KitToggleModule.decorators = [
2133
+ { type: core.NgModule, args: [{
2134
+ declarations: [
2135
+ KitToggleComponent,
2136
+ ],
2137
+ imports: [
2138
+ common.CommonModule,
2139
+ kendoAngularInputs.SwitchModule,
2140
+ kendoAngularLabel.LabelModule,
2141
+ KitInputMessageModule,
2142
+ ],
2143
+ exports: [
2144
+ KitToggleComponent,
2145
+ ],
2146
+ },] }
2147
+ ];
2148
+
2149
+ var KitPillComponent = /** @class */ (function () {
2150
+ function KitPillComponent() {
2151
+ this.removable = false;
2152
+ this.selectable = false;
2153
+ this.selected = false;
2154
+ this.clicked = new core.EventEmitter();
2155
+ this.removed = new core.EventEmitter();
2156
+ this.closeIcon = exports.KitSvgIcon.CROSS;
2157
+ }
2158
+ KitPillComponent.prototype.onComponentClick = function () {
2159
+ if (!this.selectable) {
2157
2160
  return;
2158
2161
  }
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;
2162
+ this.clicked.emit(!this.selected);
2165
2163
  };
2166
- return KitTooltipDirective;
2167
- }(kendoAngularTooltip.TooltipDirective));
2168
- KitTooltipDirective.decorators = [
2169
- { type: core.Directive, args: [{
2170
- selector: '[kitTooltip]',
2171
- providers: [
2172
- kendoAngularPopup.PopupService,
2173
- ],
2164
+ return KitPillComponent;
2165
+ }());
2166
+ KitPillComponent.decorators = [
2167
+ { type: core.Component, args: [{
2168
+ selector: 'kit-pill',
2169
+ 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",
2170
+ changeDetection: core.ChangeDetectionStrategy.OnPush,
2171
+ 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
2172
  },] }
2175
2173
  ];
2176
- KitTooltipDirective.propDecorators = {
2177
- kitTooltipPosition: [{ type: core.Input }],
2178
- kitTooltipFilter: [{ type: core.Input }],
2179
- kitTooltipTemplateRef: [{ type: core.Input }]
2174
+ KitPillComponent.propDecorators = {
2175
+ removable: [{ type: core.Input }],
2176
+ selectable: [{ type: core.Input }],
2177
+ selected: [{ type: core.Input }],
2178
+ clicked: [{ type: core.Output }],
2179
+ removed: [{ type: core.Output }],
2180
+ onComponentClick: [{ type: core.HostListener, args: ['click',] }]
2180
2181
  };
2181
2182
 
2182
- var KitTooltipModule = /** @class */ (function () {
2183
- function KitTooltipModule() {
2183
+ var KitPillModule = /** @class */ (function () {
2184
+ function KitPillModule() {
2184
2185
  }
2185
- return KitTooltipModule;
2186
+ return KitPillModule;
2186
2187
  }());
2187
- KitTooltipModule.decorators = [
2188
+ KitPillModule.decorators = [
2188
2189
  { type: core.NgModule, args: [{
2189
2190
  declarations: [
2190
- KitTooltipDirective,
2191
+ KitPillComponent,
2191
2192
  ],
2192
2193
  exports: [
2193
- KitTooltipDirective,
2194
- kendoAngularTooltip.TooltipModule,
2194
+ KitPillComponent,
2195
+ ],
2196
+ imports: [
2197
+ KitSvgIconModule,
2198
+ common.CommonModule,
2195
2199
  ],
2196
2200
  },] }
2197
2201
  ];