@indigina/ui-kit 1.0.39 → 1.0.43

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.
Files changed (35) hide show
  1. package/bundles/indigina-ui-kit.umd.js +236 -178
  2. package/bundles/indigina-ui-kit.umd.js.map +1 -1
  3. package/bundles/indigina-ui-kit.umd.min.js +1 -1
  4. package/bundles/indigina-ui-kit.umd.min.js.map +1 -1
  5. package/esm2015/lib/components/kit-autocomplete/kit-autocomplete.component.js +29 -11
  6. package/esm2015/lib/components/kit-autocomplete/kit-autocomplete.module.js +3 -1
  7. package/esm2015/lib/components/kit-checkbox/kit-checkbox.component.js +85 -0
  8. package/esm2015/lib/components/kit-checkbox/kit-checkbox.module.js +25 -0
  9. package/esm2015/lib/components/kit-datetimepicker/kit-datetimepicker.component.js +4 -1
  10. package/esm2015/lib/components/kit-dropdown/kit-dropdown.component.js +14 -3
  11. package/esm2015/lib/components/kit-notification/kit-notification.component.js +4 -3
  12. package/esm2015/lib/components/kit-switch/kit-switch.component.js +21 -3
  13. package/esm2015/lib/components/kit-switch/kit-switch.module.js +3 -1
  14. package/esm2015/lib/components/kit-text-label/kit-text-label.component.js +14 -4
  15. package/esm2015/lib/components/kit-textarea/kit-textarea.component.js +14 -4
  16. package/esm2015/lib/components/kit-units-textbox/kit-units-textbox.component.js +14 -4
  17. package/esm2015/public-api.js +8 -8
  18. package/fesm2015/indigina-ui-kit.js +242 -175
  19. package/fesm2015/indigina-ui-kit.js.map +1 -1
  20. package/indigina-ui-kit.metadata.json +1 -1
  21. package/lib/components/kit-autocomplete/kit-autocomplete.component.d.ts +20 -7
  22. package/lib/components/kit-checkbox/kit-checkbox.component.d.ts +57 -0
  23. package/lib/components/kit-checkbox/kit-checkbox.module.d.ts +2 -0
  24. package/lib/components/kit-dropdown/kit-dropdown.component.d.ts +9 -0
  25. package/lib/components/kit-switch/kit-switch.component.d.ts +22 -0
  26. package/lib/components/kit-text-label/kit-text-label.component.d.ts +8 -0
  27. package/lib/components/kit-textarea/kit-textarea.component.d.ts +8 -0
  28. package/lib/components/kit-units-textbox/kit-units-textbox.component.d.ts +8 -0
  29. package/package.json +1 -1
  30. package/public-api.d.ts +6 -6
  31. package/styles/styles.scss +1 -0
  32. package/esm2015/lib/components/kit-header/kit-header.component.js +0 -103
  33. package/esm2015/lib/components/kit-header/kit-header.module.js +0 -27
  34. package/lib/components/kit-header/kit-header.component.d.ts +0 -81
  35. package/lib/components/kit-header/kit-header.module.d.ts +0 -2
@@ -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('rxjs'), require('initials'), require('@progress/kendo-angular-layout'), require('@angular/router'), require('@progress/kendo-angular-menu'), require('@angular/forms'), require('@progress/kendo-angular-inputs'), require('@progress/kendo-angular-label'), require('@progress/kendo-angular-dropdowns'), require('@angular/animations'), require('@progress/kendo-angular-dateinputs'), require('rxjs/operators')) :
3
- typeof define === 'function' && define.amd ? define('@indigina/ui-kit', ['exports', '@angular/core', '@angular/common', '@progress/kendo-angular-buttons', 'rxjs', 'initials', '@progress/kendo-angular-layout', '@angular/router', '@progress/kendo-angular-menu', '@angular/forms', '@progress/kendo-angular-inputs', '@progress/kendo-angular-label', '@progress/kendo-angular-dropdowns', '@angular/animations', '@progress/kendo-angular-dateinputs', 'rxjs/operators'], 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.rxjs, global.initials, global['@progress/kendo-angular-layout'], global.ng.router, global['@progress/kendo-angular-menu'], global.ng.forms, global['@progress/kendo-angular-inputs'], global['@progress/kendo-angular-label'], global['@progress/kendo-angular-dropdowns'], global.ng.animations, global['@progress/kendo-angular-dateinputs'], global.rxjs.operators));
5
- }(this, (function (exports, core, common, kendoAngularButtons, rxjs, initials, kendoAngularLayout, router, kendoAngularMenu, forms, kendoAngularInputs, kendoAngularLabel, kendoAngularDropdowns, animations, kendoAngularDateinputs, operators) { 'use strict';
2
+ typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('@angular/core'), require('@angular/common'), require('@progress/kendo-angular-buttons'), require('projects/ui-kit/src/lib/components/kit-input-message/kit-input-message.component'), require('projects/ui-kit/src/lib/components/kit-input-message/kit-input-message.module'), require('@angular/forms'), require('@progress/kendo-angular-inputs'), require('@progress/kendo-angular-label'), require('projects/ui-kit/src/lib/components/kit-autocomplete/kit-autocomplete.component'), require('@progress/kendo-angular-dropdowns'), require('@angular/animations'), require('@progress/kendo-angular-dateinputs'), require('rxjs'), require('initials'), require('@angular/router'), require('@progress/kendo-angular-menu'), require('@progress/kendo-angular-layout'), require('rxjs/operators')) :
3
+ typeof define === 'function' && define.amd ? define('@indigina/ui-kit', ['exports', '@angular/core', '@angular/common', '@progress/kendo-angular-buttons', 'projects/ui-kit/src/lib/components/kit-input-message/kit-input-message.component', 'projects/ui-kit/src/lib/components/kit-input-message/kit-input-message.module', '@angular/forms', '@progress/kendo-angular-inputs', '@progress/kendo-angular-label', 'projects/ui-kit/src/lib/components/kit-autocomplete/kit-autocomplete.component', '@progress/kendo-angular-dropdowns', '@angular/animations', '@progress/kendo-angular-dateinputs', 'rxjs', 'initials', '@angular/router', '@progress/kendo-angular-menu', '@progress/kendo-angular-layout', 'rxjs/operators'], 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.kitInputMessage_component, global.kitInputMessage_module, global.ng.forms, global['@progress/kendo-angular-inputs'], global['@progress/kendo-angular-label'], global.kitAutocomplete_component, global['@progress/kendo-angular-dropdowns'], global.ng.animations, global['@progress/kendo-angular-dateinputs'], global.rxjs, global.initials, global.ng.router, global['@progress/kendo-angular-menu'], global['@progress/kendo-angular-layout'], global.rxjs.operators));
5
+ }(this, (function (exports, core, common, kendoAngularButtons, kitInputMessage_component, kitInputMessage_module, forms, kendoAngularInputs, kendoAngularLabel, kitAutocomplete_component, kendoAngularDropdowns, animations, kendoAngularDateinputs, rxjs, initials, router, kendoAngularMenu, kendoAngularLayout, operators) { 'use strict';
6
6
 
7
7
  function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
8
8
 
@@ -134,151 +134,6 @@
134
134
  },] }
135
135
  ];
136
136
 
137
- (function (KitSvgIcon) {
138
- KitSvgIcon["LOGO"] = "logo";
139
- KitSvgIcon["CHEVRON_DOWN"] = "chevron-down";
140
- KitSvgIcon["CHEVRON_UP"] = "chevron-up";
141
- KitSvgIcon["CHEVRON_RIGHT"] = "chevron-right";
142
- KitSvgIcon["PLUS"] = "plus";
143
- KitSvgIcon["INFO"] = "info";
144
- KitSvgIcon["CALENDAR"] = "calendar";
145
- KitSvgIcon["WARNING"] = "warning";
146
- KitSvgIcon["ERROR"] = "error";
147
- KitSvgIcon["SUCCESS"] = "success";
148
- KitSvgIcon["EYE"] = "eye";
149
- KitSvgIcon["SEARCH"] = "search";
150
- KitSvgIcon["EDIT"] = "edit";
151
- KitSvgIcon["LOCATION"] = "location";
152
- KitSvgIcon["CROSS"] = "cross";
153
- KitSvgIcon["CHECK"] = "check";
154
- KitSvgIcon["DISKETTE"] = "diskette";
155
- KitSvgIcon["CLIPBOARD"] = "clipboard";
156
- KitSvgIcon["LAYERS"] = "layers";
157
- })(exports.KitSvgIcon || (exports.KitSvgIcon = {}));
158
-
159
- /**
160
- * This is needed in order to check whether this is the root menu item
161
- */
162
- var ROOT_MENU_ITEM_INDEX = '0';
163
- var getInitialsByName = function (name) {
164
- // we don't like reflexion but "initials" library returns union type
165
- // so we don't want to have union type in our app
166
- var result = initials__default['default'](name || '');
167
- return Array.isArray(result) && result.join() || result;
168
- };
169
- var ɵ0 = getInitialsByName;
170
- var KitHeaderComponent = /** @class */ (function () {
171
- function KitHeaderComponent() {
172
- /**
173
- * Defines a list of link that will be in the header as the main nav
174
- */
175
- this.links = [];
176
- /**
177
- * Menu items that will be under avatar dropdown
178
- */
179
- this.menuItems = [];
180
- /**
181
- * Needs to be used to extract initials for avatar and show it there
182
- */
183
- this.username = null;
184
- /**
185
- * States whether the menu is open
186
- * needed to control CSS class to rotate expand icon
187
- */
188
- this.menuOpen$ = new rxjs.BehaviorSubject(false);
189
- /**
190
- * An icon which will be used as a primary logotype in the header
191
- */
192
- this.SvgIconLogo = exports.KitSvgIcon.LOGO;
193
- /**
194
- * An icon which will be used as an expand icon next to avatar
195
- */
196
- this.SvgIconChevronDown = exports.KitSvgIcon.CHEVRON_DOWN;
197
- /**
198
- * This defines how menu will behave in case of menu opening
199
- */
200
- this.openOnClickSettings = {
201
- // "click" means that menu will be closed only in case of clicking outside of menu
202
- toggle: 'click',
203
- };
204
- }
205
- /**
206
- * Called once menu is opened
207
- */
208
- KitHeaderComponent.prototype.onMenuOpened = function () {
209
- this.menuOpen$.next(true);
210
- };
211
- /**
212
- * Called once menu is closed
213
- */
214
- KitHeaderComponent.prototype.onMenuClosed = function () {
215
- this.menuOpen$.next(false);
216
- };
217
- /**
218
- * Occurs when any menu item is selected
219
- * we need to check whether the item is not the root one
220
- */
221
- KitHeaderComponent.prototype.onMenuSelect = function (_a) {
222
- var index = _a.index, item = _a.item;
223
- if (index === ROOT_MENU_ITEM_INDEX) {
224
- return;
225
- }
226
- item.data.action();
227
- };
228
- /**
229
- * Builds an object to pass action though events
230
- */
231
- KitHeaderComponent.prototype.getMenuItemData = function (item) {
232
- return {
233
- action: item.action,
234
- };
235
- };
236
- KitHeaderComponent.prototype.getUsernameInitials = function () {
237
- return getInitialsByName(this.username);
238
- };
239
- return KitHeaderComponent;
240
- }());
241
- KitHeaderComponent.decorators = [
242
- { type: core.Component, args: [{
243
- selector: 'kit-header',
244
- template: "<header class=\"kit-header\">\n <a class=\"logo display-flex flex-justify-content-center\"\n [class.clickable]=\"logoLink\"\n [title]=\"caption\"\n [routerLink]=\"logoLink\">\n <kit-svg-icon class=\"icon\"\n [icon]=\"SvgIconLogo\"\n ></kit-svg-icon>\n\n <h1 class=\"caption\">{{ caption }}</h1>\n </a>\n\n <nav *ngIf=\"links.length\" class=\"display-flex\">\n <a *ngFor=\"let link of links; let index = index\"\n class=\"link\"\n routerLinkActive=\"active\"\n [class.disabled]=\"link.disabled && link.disabled()\"\n [routerLink]=\"link.link\"\n [tabIndex]=\"index\"\n [title]=\"link.title\"\n >{{ link.title }}</a>\n </nav>\n\n <div class=\"profile display-flex flex-align-items-center flex-justify-content-end\">\n <kendo-avatar class=\"avatar\"\n shape=\"circle\"\n [initials]=\"getUsernameInitials()\"\n ></kendo-avatar>\n\n <ng-container *ngIf=\"menuItems.length\">\n <kit-svg-icon class=\"expand-menu-icon\"\n [class.open]=\"menuOpen$ | async\"\n [icon]=\"SvgIconChevronDown\"\n ></kit-svg-icon>\n\n <kendo-menu [openOnClick]=\"openOnClickSettings\"\n [title]=\"username\"\n (open)=\"onMenuOpened()\"\n (select)=\"onMenuSelect($event)\"\n (close)=\"onMenuClosed()\">\n <kendo-menu-item>\n <kendo-menu-item *ngFor=\"let item of menuItems\"\n [data]=\"getMenuItemData(item)\"\n [text]=\"item.text\"\n [title]=\"item.text\"\n ></kendo-menu-item>\n </kendo-menu-item>\n </kendo-menu>\n </ng-container>\n </div>\n</header>\n",
245
- changeDetection: core.ChangeDetectionStrategy.OnPush,
246
- encapsulation: core.ViewEncapsulation.None,
247
- styles: [".kit-header{-ms-grid-columns:1fr 2fr 1fr;background-color:#fff;display:-ms-grid;display:grid;grid-template-columns:1fr 2fr 1fr}.kit-header .logo{align-items:flex-start;flex-flow:column;margin-left:20px;pointer-events:none;text-decoration:none}.kit-header .logo.clickable{pointer-events:auto}.kit-header .logo .icon{height:16px;width:20px}.kit-header .logo .caption{color:#74777d;font-size:14px;font-weight:700;margin:0;text-transform:uppercase}.kit-header .link{color:var(--theme-color-1,#006890);display:block;font-size:18px;font-weight:500;padding:28px 8px;position:relative;text-decoration:none}.kit-header .link:after{border-bottom:4px solid var(--theme-color-1,#006890);bottom:0;left:0;opacity:.3;position:absolute;right:0}.kit-header .link:hover{color:var(--theme-color-4,#003e56)}.kit-header .link:hover:after{content:\"\"}.kit-header .link.active{color:var(--theme-color-5,#002a3a)}.kit-header .link.active:after{border-color:var(--theme-color-4,#003e56);content:\"\";opacity:1}.kit-header .disabled{opacity:.2;pointer-events:none}.kit-header .profile{margin-right:20px}.kit-header .profile .avatar{background-color:#cce1e9;color:#27282a;flex-basis:44px;height:44px;width:44px}.kit-header .profile .avatar .k-avatar-text{font-size:16px}.kit-header .profile .k-menu{border-radius:50%;cursor:pointer;margin-left:-64px;outline:0;overflow:hidden}.kit-header .profile .k-menu .k-link{visibility:hidden}.kit-header .profile .k-menu .k-first{box-shadow:none;height:44px;padding-right:20px;width:44px}.kit-header .profile .expand-menu-icon{height:20px;width:20px}.kit-header .profile .expand-menu-icon.open .icon{transform:rotate(180deg)}.kit-header .profile .expand-menu-icon .chevron-down-icon{fill:#fff;stroke:#006890}@media screen and (max-width:768px){.kit-header .caption{display:none}}@media screen and (min-width:768px){.kit-header .link{margin:0 10px}}@media screen and (min-width:1080px){.kit-header .link{margin:0 16px}}@media screen and (min-width:1366px){.kit-header .link{margin:0 20px}}@media screen and (min-width:2000px){.kit-header .link{margin:0 30px}}@media screen and (min-width:2366px){.kit-header .link{margin:0 60px}}"]
248
- },] }
249
- ];
250
- KitHeaderComponent.propDecorators = {
251
- caption: [{ type: core.Input }],
252
- initials: [{ type: core.Input }],
253
- links: [{ type: core.Input }],
254
- menuItems: [{ type: core.Input }],
255
- username: [{ type: core.Input }],
256
- logoLink: [{ type: core.Input }]
257
- };
258
-
259
- var KitHeaderModule = /** @class */ (function () {
260
- function KitHeaderModule() {
261
- }
262
- return KitHeaderModule;
263
- }());
264
- KitHeaderModule.decorators = [
265
- { type: core.NgModule, args: [{
266
- declarations: [
267
- KitHeaderComponent,
268
- ],
269
- exports: [
270
- KitHeaderComponent,
271
- ],
272
- imports: [
273
- kendoAngularLayout.AvatarModule,
274
- common.CommonModule,
275
- router.RouterModule,
276
- KitSvgIconModule,
277
- kendoAngularMenu.MenuModule,
278
- ],
279
- },] }
280
- ];
281
-
282
137
  var KitSvgSpriteComponent = /** @class */ (function () {
283
138
  function KitSvgSpriteComponent() {
284
139
  }
@@ -312,6 +167,28 @@
312
167
  },] }
313
168
  ];
314
169
 
170
+ (function (KitSvgIcon) {
171
+ KitSvgIcon["LOGO"] = "logo";
172
+ KitSvgIcon["CHEVRON_DOWN"] = "chevron-down";
173
+ KitSvgIcon["CHEVRON_UP"] = "chevron-up";
174
+ KitSvgIcon["CHEVRON_RIGHT"] = "chevron-right";
175
+ KitSvgIcon["PLUS"] = "plus";
176
+ KitSvgIcon["INFO"] = "info";
177
+ KitSvgIcon["CALENDAR"] = "calendar";
178
+ KitSvgIcon["WARNING"] = "warning";
179
+ KitSvgIcon["ERROR"] = "error";
180
+ KitSvgIcon["SUCCESS"] = "success";
181
+ KitSvgIcon["EYE"] = "eye";
182
+ KitSvgIcon["SEARCH"] = "search";
183
+ KitSvgIcon["EDIT"] = "edit";
184
+ KitSvgIcon["LOCATION"] = "location";
185
+ KitSvgIcon["CROSS"] = "cross";
186
+ KitSvgIcon["CHECK"] = "check";
187
+ KitSvgIcon["DISKETTE"] = "diskette";
188
+ KitSvgIcon["CLIPBOARD"] = "clipboard";
189
+ KitSvgIcon["LAYERS"] = "layers";
190
+ })(exports.KitSvgIcon || (exports.KitSvgIcon = {}));
191
+
315
192
  var KitLoaderComponent = /** @class */ (function () {
316
193
  function KitLoaderComponent() {
317
194
  /**
@@ -353,6 +230,10 @@
353
230
  KitSwitchMode["SINGLE"] = "single";
354
231
  KitSwitchMode["MULTI"] = "multiple";
355
232
  })(exports.KitSwitchMode || (exports.KitSwitchMode = {}));
233
+ (function (KitSwitchState) {
234
+ KitSwitchState["REGULAR"] = "regular";
235
+ KitSwitchState["DANGER"] = "danger";
236
+ })(exports.KitSwitchState || (exports.KitSwitchState = {}));
356
237
  var KitSwitchComponent = /** @class */ (function () {
357
238
  function KitSwitchComponent() {
358
239
  /**
@@ -364,6 +245,14 @@
364
245
  * defines whether it will be possible to choose several options at time
365
246
  */
366
247
  this.mode = exports.KitSwitchMode.SINGLE;
248
+ /**
249
+ * Defines a value which going to be an info message type
250
+ */
251
+ this.messageType = kitInputMessage_component.KitInputMessageType.DEFAULT;
252
+ /**
253
+ * Defines a particular state for the component
254
+ */
255
+ this.state = exports.KitSwitchState.REGULAR;
367
256
  /**
368
257
  * emits when an items has been selected
369
258
  */
@@ -407,10 +296,10 @@
407
296
  KitSwitchComponent.decorators = [
408
297
  { type: core.Component, args: [{
409
298
  selector: 'kit-switch',
410
- template: "<div class=\"kit-switch\">\n <ng-container *ngIf=\"items.length\">\n <label *ngIf=\"label\" class=\"label display-block\"\n [title]=\"label\"\n >{{ label }}</label>\n\n <kendo-buttongroup look=\"outline\" class=\"button-group\"\n [selection]=\"mode\"\n [class.disabled]=\"disabled\">\n <button *ngFor=\"let item of items\" class=\"button\" kendoButton\n [selected]=\"isItemSelected(item)\"\n [togglable]=\"true\"\n [disabled]=\"item.disabled && item.disabled(item)\"\n (selectedChange)=\"onItemSelect($event, item)\">\n <ng-container *ngIf=\"item.title; else icon\">\n {{ item.title }}\n </ng-container>\n\n <ng-template #icon>\n <kit-svg-icon class=\"icon-wrapper\"\n [icon]=\"item.icon\"\n ></kit-svg-icon>\n </ng-template>\n </button>\n </kendo-buttongroup>\n </ng-container>\n</div>\n",
299
+ template: "<div class=\"kit-switch {{ state }}\">\n <ng-container *ngIf=\"items.length\">\n <label *ngIf=\"label\" class=\"label display-block\"\n [title]=\"label\"\n >{{ label }}</label>\n\n <kendo-buttongroup look=\"outline\" class=\"button-group\"\n [selection]=\"mode\"\n [class.disabled]=\"disabled\">\n <button *ngFor=\"let item of items\" class=\"button\" kendoButton\n [selected]=\"isItemSelected(item)\"\n [togglable]=\"true\"\n [disabled]=\"item.disabled && item.disabled(item)\"\n (selectedChange)=\"onItemSelect($event, item)\">\n <ng-container *ngIf=\"item.title; else icon\">\n {{ item.title }}\n </ng-container>\n\n <ng-template #icon>\n <kit-svg-icon class=\"icon-wrapper\"\n [icon]=\"item.icon\"\n ></kit-svg-icon>\n </ng-template>\n </button>\n </kendo-buttongroup>\n <kit-input-message *ngIf=\"messageText\"\n [type]=\"messageType\"\n [icon]=\"messageIcon\"\n [message]=\"messageText\"\n ></kit-input-message>\n </ng-container>\n</div>\n",
411
300
  changeDetection: core.ChangeDetectionStrategy.OnPush,
412
301
  encapsulation: core.ViewEncapsulation.None,
413
- 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-switch .label{color:#27282a;font-size:13px;font-weight:500;margin-bottom:4px}.kit-switch .button-group{background:#fff;border:1px solid #c1c7d0;border-radius:4px;overflow:hidden}.kit-switch .button-group.disabled{color:#fff;pointer-events:none}.kit-switch .button-group.disabled .button{color:#c1c7d0}.kit-switch .button-group.disabled .icon{stroke:#c1c7d0}.kit-switch .button-group.disabled .button.k-state-selected{background-color:#abcad6;color:#fff}.kit-switch .button.k-button{border:0;border-radius:4px;box-shadow:none;color:var(--theme-color-1,#006890);opacity:1;padding:8px}.kit-switch .button.k-button .icon{fill:none;stroke:var(--theme-color-1,#006890)}.kit-switch .button.k-button.k-state-hover,.kit-switch .button.k-button.k-state-selected,.kit-switch .button.k-button:hover{background-color:var(--theme-color-5,#002a3a);color:#fff}.kit-switch .button.k-button.k-state-hover .icon,.kit-switch .button.k-button.k-state-selected .icon,.kit-switch .button.k-button:hover .icon{stroke:#fff}.kit-switch .button.k-button.k-state-disabled{color:#c1c7d0}.kit-switch .button.k-button.k-state-selected.k-state-disabled{background-color:#abcad6;color:#fff}.kit-switch .icon-wrapper{height:16px;width:16px}"]
302
+ 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-switch .label{color:#27282a;font-size:13px;font-weight:500;margin-bottom:4px}.kit-switch .button-group{background:#fff;border:1px solid #c1c7d0;border-radius:4px;overflow:hidden}.kit-switch .button-group.disabled{color:#fff;pointer-events:none}.kit-switch .button-group.disabled .button{color:#c1c7d0}.kit-switch .button-group.disabled .icon{stroke:#c1c7d0}.kit-switch .button-group.disabled .button.k-state-selected{background-color:#abcad6;color:#fff}.kit-switch .button.k-button{border:0;border-radius:4px;box-shadow:none;color:var(--theme-color-1,#006890);opacity:1;padding:8px}.kit-switch .button.k-button .icon{fill:none;stroke:var(--theme-color-1,#006890)}.kit-switch .button.k-button.k-state-hover,.kit-switch .button.k-button.k-state-selected,.kit-switch .button.k-button:hover{background-color:var(--theme-color-5,#002a3a);color:#fff}.kit-switch .button.k-button.k-state-hover .icon,.kit-switch .button.k-button.k-state-selected .icon,.kit-switch .button.k-button:hover .icon{stroke:#fff}.kit-switch .button.k-button.k-state-disabled{color:#c1c7d0}.kit-switch .button.k-button.k-state-selected.k-state-disabled{background-color:#abcad6;color:#fff}.kit-switch .icon-wrapper{height:16px;width:16px}.kit-switch.danger .k-button-group{background:#f8e0e0;border-color:#ef3e42}"]
414
303
  },] }
415
304
  ];
416
305
  KitSwitchComponent.propDecorators = {
@@ -419,6 +308,10 @@
419
308
  label: [{ type: core.Input }],
420
309
  disabled: [{ type: core.Input }],
421
310
  selection: [{ type: core.Input }],
311
+ messageIcon: [{ type: core.Input }],
312
+ messageText: [{ type: core.Input }],
313
+ messageType: [{ type: core.Input }],
314
+ state: [{ type: core.Input }],
422
315
  selected: [{ type: core.Output }]
423
316
  };
424
317
 
@@ -440,6 +333,7 @@
440
333
  kendoAngularButtons.ButtonModule,
441
334
  common.CommonModule,
442
335
  KitSvgIconModule,
336
+ kitInputMessage_module.KitInputMessageModule,
443
337
  ],
444
338
  },] }
445
339
  ];
@@ -718,6 +612,10 @@
718
612
  },] }
719
613
  ];
720
614
 
615
+ (function (KitDropdownState) {
616
+ KitDropdownState["REGULAR"] = "regular";
617
+ KitDropdownState["DANGER"] = "danger";
618
+ })(exports.KitDropdownState || (exports.KitDropdownState = {}));
721
619
  var KitDropdownComponent = /** @class */ (function () {
722
620
  function KitDropdownComponent() {
723
621
  /**
@@ -728,6 +626,10 @@
728
626
  * Defines a value which going to be an info message type
729
627
  */
730
628
  this.messageType = exports.KitInputMessageType.DEFAULT;
629
+ /**
630
+ * Defines a particular state for the component
631
+ */
632
+ this.state = kitAutocomplete_component.KitAutocompleteState.REGULAR;
731
633
  /**
732
634
  * occurs once an item in the dropdown is selected
733
635
  */
@@ -777,7 +679,7 @@
777
679
  KitDropdownComponent.decorators = [
778
680
  { type: core.Component, args: [{
779
681
  selector: 'kit-dropdown',
780
- template: "<div class=\"kit-dropdown\" [class.disabled]=\"disabled\">\n <kendo-label *ngIf=\"label\" class=\"label display-block\"\n [text]=\"label\"\n [for]=\"dropdown\"\n ></kendo-label>\n <kendo-dropdownlist #dropdown valueField=\"value\" textField=\"text\" class=\"dropdown\"\n [data]=\"items\"\n [value]=\"selectedItem\"\n [valuePrimitive]=\"true\"\n [disabled]=\"disabled\"\n [popupSettings]=\"dropdownPopupSettings\"\n [itemDisabled]=\"onItemDisabled()\"\n (selectionChange)=\"onItemSelect($event)\"\n ></kendo-dropdownlist>\n <kit-input-message *ngIf=\"messageText\"\n [type]=\"messageType\"\n [icon]=\"messageIcon\"\n [message]=\"messageText\"\n ></kit-input-message>\n</div>\n",
682
+ template: "<div class=\"kit-dropdown {{ state }}\" [class.disabled]=\"disabled\">\n <kendo-label *ngIf=\"label\" class=\"label display-block\"\n [text]=\"label\"\n [for]=\"dropdown\"\n ></kendo-label>\n <kendo-dropdownlist #dropdown valueField=\"value\" textField=\"text\" class=\"dropdown\"\n [data]=\"items\"\n [value]=\"selectedItem\"\n [valuePrimitive]=\"true\"\n [disabled]=\"disabled\"\n [popupSettings]=\"dropdownPopupSettings\"\n [itemDisabled]=\"onItemDisabled()\"\n (selectionChange)=\"onItemSelect($event)\"\n ></kendo-dropdownlist>\n <kit-input-message *ngIf=\"messageText\"\n [type]=\"messageType\"\n [icon]=\"messageIcon\"\n [message]=\"messageText\"\n ></kit-input-message>\n</div>\n",
781
683
  changeDetection: core.ChangeDetectionStrategy.OnPush,
782
684
  encapsulation: core.ViewEncapsulation.None,
783
685
  providers: [{
@@ -785,7 +687,7 @@
785
687
  useExisting: core.forwardRef(function () { return KitDropdownComponent; }),
786
688
  multi: true,
787
689
  }],
788
- styles: ["@charset \"UTF-8\";.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-dropdown .label{color:#27282a;font-size:13px;font-weight:500;margin-bottom:4px}.kit-dropdown .k-state-disabled{background-color:#f3f4f6}.kit-dropdown .k-input{color:#27282a;font-size:14px;font-weight:400;height:100%}.kit-dropdown .k-icon:before{color:#000;content:\"\uE015\"}.kit-dropdown .k-dropdown{height:34px;width:100%}.kit-dropdown .k-dropdown-wrap{background-color:#fff;border:1px solid #c1c7d0;border-radius:4px}.kit-dropdown .k-dropdown-wrap:hover{background-color:#fff}.kit-dropdown .k-dropdown-wrap.k-state-focused{box-shadow:none}.kit-dropdown:focus-within .k-dropdown-wrap{border:1px solid #006890}.kit-dropdown:focus-within .k-dropdown-wrap .k-icon:before{color:#006890}.kit-dropdown.disabled .label{color:#74777d}.kit-dropdown-popup.k-popup{background-color:#f3f4f6;border:1px solid #c1c7d0;border-radius:4px;box-shadow:0 0 8px rgba(0,62,86,.5);margin-top:4px;padding:4px}.kit-dropdown-popup.k-popup .k-item{background-color:#fff;border-radius:2px;box-shadow:none!important;color:#27282a;font-size:13px;font-weight:500;line-height:1}.kit-dropdown-popup.k-popup .k-item:not(:last-of-type){margin-bottom:4px}.kit-dropdown-popup.k-popup .k-item.k-state-focused:hover,.kit-dropdown-popup.k-popup .k-item:hover{background-color:#f3f5fa;color:#006890}.kit-dropdown-popup.k-popup .k-item.k-state-selected{background-color:#006890;color:#fff}.kit-dropdown-popup.k-popup .k-item.k-state-disabled{background-color:#f3f4f6;color:#9a9fa6}"]
690
+ styles: ["@charset \"UTF-8\";.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-dropdown .label{color:#27282a;font-size:13px;font-weight:500;margin-bottom:4px}.kit-dropdown .k-state-disabled{background-color:#f3f4f6}.kit-dropdown .k-input{color:#27282a;font-size:14px;font-weight:400;height:100%}.kit-dropdown .k-icon:before{color:#000;content:\"\uE015\"}.kit-dropdown .k-dropdown{height:34px;width:100%}.kit-dropdown .k-dropdown-wrap{background-color:#fff;border:1px solid #c1c7d0;border-radius:4px}.kit-dropdown .k-dropdown-wrap:hover{background-color:#fff}.kit-dropdown .k-dropdown-wrap.k-state-focused{box-shadow:none}.kit-dropdown:focus-within .k-dropdown-wrap{border:1px solid #006890}.kit-dropdown:focus-within .k-dropdown-wrap .k-icon:before{color:#006890}.kit-dropdown.disabled .label{color:#74777d}.kit-dropdown.danger .k-dropdown-wrap{background:#f8e0e0;border-color:#ef3e42}.kit-dropdown-popup.k-popup{background-color:#f3f4f6;border:1px solid #c1c7d0;border-radius:4px;box-shadow:0 0 8px rgba(0,62,86,.5);margin-top:4px;padding:4px}.kit-dropdown-popup.k-popup .k-item{background-color:#fff;border-radius:2px;box-shadow:none!important;color:#27282a;font-size:13px;font-weight:500;line-height:1}.kit-dropdown-popup.k-popup .k-item:not(:last-of-type){margin-bottom:4px}.kit-dropdown-popup.k-popup .k-item.k-state-focused:hover,.kit-dropdown-popup.k-popup .k-item:hover{background-color:#f3f5fa;color:#006890}.kit-dropdown-popup.k-popup .k-item.k-state-selected{background-color:#006890;color:#fff}.kit-dropdown-popup.k-popup .k-item.k-state-disabled{background-color:#f3f4f6;color:#9a9fa6}"]
789
691
  },] }
790
692
  ];
791
693
  KitDropdownComponent.propDecorators = {
@@ -796,6 +698,7 @@
796
698
  messageIcon: [{ type: core.Input }],
797
699
  messageText: [{ type: core.Input }],
798
700
  messageType: [{ type: core.Input }],
701
+ state: [{ type: core.Input }],
799
702
  selected: [{ type: core.Output }]
800
703
  };
801
704
 
@@ -822,6 +725,10 @@
822
725
  },] }
823
726
  ];
824
727
 
728
+ (function (KitTextareaState) {
729
+ KitTextareaState["REGULAR"] = "regular";
730
+ KitTextareaState["DANGER"] = "danger";
731
+ })(exports.KitTextareaState || (exports.KitTextareaState = {}));
825
732
  var KitTextareaComponent = /** @class */ (function () {
826
733
  function KitTextareaComponent() {
827
734
  /**
@@ -832,6 +739,10 @@
832
739
  * Defines a state whether the textarea will be disabled or not
833
740
  */
834
741
  this.disabled = false;
742
+ /**
743
+ * Defines a particular state for the component
744
+ */
745
+ this.state = exports.KitTextareaState.REGULAR;
835
746
  /**
836
747
  * An action which is emitted when textarea field received focus
837
748
  */
@@ -905,7 +816,7 @@
905
816
  KitTextareaComponent.decorators = [
906
817
  { type: core.Component, args: [{
907
818
  selector: 'kit-textarea',
908
- template: "<div class=\"kit-textarea\" [class.textarea-disabled]=\"disabled\">\n <kendo-label *ngIf=\"label\" [text]=\"label\" [for]=\"textarea\"></kendo-label>\n <textarea autoresize #textarea class=\"k-input\"\n [attr.placeholder]=\"placeholder\"\n [style.min-height.px]=\"minHeight\"\n [style.max-height.px]=\"maxHeight\"\n [attr.maxlength]=\"maxlength\"\n [disabled]=\"disabled\"\n [value]=\"defaultValue\"\n (focus)=\"onTextareaFocus()\"\n (blur)=\"onTextareaBlur()\"\n (input)=\"onTextareaChange($event)\"\n ></textarea>\n <kit-input-message *ngIf=\"messageText\"\n [icon]=\"messageIcon\"\n [message]=\"messageText\"\n ></kit-input-message>\n</div>\n",
819
+ template: "<div class=\"kit-textarea {{ state }}\" [class.textarea-disabled]=\"disabled\">\n <kendo-label *ngIf=\"label\" [text]=\"label\" [for]=\"textarea\"></kendo-label>\n <textarea autoresize #textarea class=\"k-input\"\n [attr.placeholder]=\"placeholder\"\n [style.min-height.px]=\"minHeight\"\n [style.max-height.px]=\"maxHeight\"\n [attr.maxlength]=\"maxlength\"\n [disabled]=\"disabled\"\n [value]=\"defaultValue\"\n (focus)=\"onTextareaFocus()\"\n (blur)=\"onTextareaBlur()\"\n (input)=\"onTextareaChange($event)\"\n ></textarea>\n <kit-input-message *ngIf=\"messageText\"\n [icon]=\"messageIcon\"\n [message]=\"messageText\"\n ></kit-input-message>\n</div>\n",
909
820
  changeDetection: core.ChangeDetectionStrategy.OnPush,
910
821
  encapsulation: core.ViewEncapsulation.None,
911
822
  providers: [{
@@ -913,7 +824,7 @@
913
824
  useExisting: core.forwardRef(function () { return KitTextareaComponent; }),
914
825
  multi: true,
915
826
  }],
916
- 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-textarea .k-label{color:#27282a;display:block;font-size:13px;font-weight:500;margin-bottom:4px}.kit-textarea .k-input{background:#fff;border:1px solid #c1c7d0;border-radius:4px;box-sizing:border-box;color:#27282a;font-size:14px;line-height:1.2;min-height:34px;overflow:auto;padding:8px;resize:none;width:100%}.kit-textarea .k-input::-moz-placeholder{color:#74777d}.kit-textarea .k-input:-ms-input-placeholder{color:#74777d}.kit-textarea .k-input::placeholder{color:#74777d}.kit-textarea .k-input:focus{border-color:#006890}.kit-textarea .k-input:disabled{background:#f3f4f6;color:#9a9fa6}.kit-textarea .k-input:disabled::-moz-placeholder{color:#9a9fa6}.kit-textarea .k-input:disabled:-ms-input-placeholder{color:#9a9fa6}.kit-textarea .k-input:disabled::placeholder{color:#9a9fa6}.kit-textarea.textarea-disabled .k-label{color:#74777d}"]
827
+ 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-textarea .k-label{color:#27282a;display:block;font-size:13px;font-weight:500;margin-bottom:4px}.kit-textarea .k-input{background:#fff;border:1px solid #c1c7d0;border-radius:4px;box-sizing:border-box;color:#27282a;font-size:14px;line-height:1.2;min-height:34px;overflow:auto;padding:8px;resize:none;width:100%}.kit-textarea .k-input::-moz-placeholder{color:#74777d}.kit-textarea .k-input:-ms-input-placeholder{color:#74777d}.kit-textarea .k-input::placeholder{color:#74777d}.kit-textarea .k-input:focus{border-color:#006890}.kit-textarea .k-input:disabled{background:#f3f4f6;color:#9a9fa6}.kit-textarea .k-input:disabled::-moz-placeholder{color:#9a9fa6}.kit-textarea .k-input:disabled:-ms-input-placeholder{color:#9a9fa6}.kit-textarea .k-input:disabled::placeholder{color:#9a9fa6}.kit-textarea.textarea-disabled .k-label{color:#74777d}.kit-textarea.danger .k-input{background:#f8e0e0;border-color:#ef3e42}"]
917
828
  },] }
918
829
  ];
919
830
  KitTextareaComponent.propDecorators = {
@@ -926,6 +837,7 @@
926
837
  disabled: [{ type: core.Input }],
927
838
  messageIcon: [{ type: core.Input }],
928
839
  messageText: [{ type: core.Input }],
840
+ state: [{ type: core.Input }],
929
841
  focused: [{ type: core.Output }],
930
842
  blured: [{ type: core.Output }],
931
843
  changed: [{ type: core.Output }]
@@ -985,6 +897,11 @@
985
897
  },] }
986
898
  ];
987
899
 
900
+ var KitTextLabelState;
901
+ (function (KitTextLabelState) {
902
+ KitTextLabelState["REGULAR"] = "regular";
903
+ KitTextLabelState["DANGER"] = "danger";
904
+ })(KitTextLabelState || (KitTextLabelState = {}));
988
905
  var KitTextLabelComponent = /** @class */ (function () {
989
906
  function KitTextLabelComponent() {
990
907
  /**
@@ -1003,16 +920,20 @@
1003
920
  * Defines a value which going to be an info message type
1004
921
  */
1005
922
  this.messageType = exports.KitInputMessageType.HINT;
923
+ /**
924
+ * Defines a particular state for the component
925
+ */
926
+ this.state = KitTextLabelState.REGULAR;
1006
927
  }
1007
928
  return KitTextLabelComponent;
1008
929
  }());
1009
930
  KitTextLabelComponent.decorators = [
1010
931
  { type: core.Component, args: [{
1011
932
  selector: 'kit-text-label',
1012
- template: "<div class=\"kit-text-label\" tabindex=\"0\" [class.text-label-empty]=\"!value\">\n <kendo-label *ngIf=\"value\" [text]=\"label\"></kendo-label>\n <kendo-label *ngIf=\"!value\" [text]=\"noValueMessage || label\"></kendo-label>\n <div *ngIf=\"!htmlMode; else htmlModeTemplate\" class=\"value\">{{ value }}</div>\n <ng-template #htmlModeTemplate>\n <div class=\"value\" [innerHTML]=\"value\"></div>\n </ng-template>\n <kit-input-message *ngIf=\"messageText && value\"\n [type]=\"messageType\"\n [message]=\"messageText\"\n ></kit-input-message>\n</div>\n",
933
+ template: "<div class=\"kit-text-label {{ state }}\" tabindex=\"0\" [class.text-label-empty]=\"!value\">\n <kendo-label *ngIf=\"value\" [text]=\"label\"></kendo-label>\n <kendo-label *ngIf=\"!value\" [text]=\"noValueMessage || label\"></kendo-label>\n <div *ngIf=\"!htmlMode; else htmlModeTemplate\" class=\"value\">{{ value }}</div>\n <ng-template #htmlModeTemplate>\n <div class=\"value\" [innerHTML]=\"value\"></div>\n </ng-template>\n <kit-input-message *ngIf=\"messageText && value\"\n [type]=\"messageType\"\n [message]=\"messageText\"\n ></kit-input-message>\n</div>\n",
1013
934
  changeDetection: core.ChangeDetectionStrategy.OnPush,
1014
935
  encapsulation: core.ViewEncapsulation.None,
1015
- 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-text-label{background:#fff;border:1px solid transparent;border-radius:4px;display:inline-block;outline:none;padding:6px 4px 4px}.kit-text-label:focus{border-color:#006890;box-shadow:0 0 0 3px #e7f4ec}.kit-text-label .k-label{color:#27282a;display:block;font-size:13px;font-weight:500;margin-bottom:4px}.kit-text-label .value{border-radius:4px;color:#27282a;font-size:14px;font-weight:400}.kit-text-label.text-label-empty .value{background:#f3f4f6;height:22px;min-width:112px}"]
936
+ 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-text-label{background:#fff;border:1px solid transparent;border-radius:4px;display:inline-block;outline:none;padding:6px 4px 4px}.kit-text-label:focus{border-color:#006890;box-shadow:0 0 0 3px #e7f4ec}.kit-text-label .k-label{color:#27282a;display:block;font-size:13px;font-weight:500;margin-bottom:4px}.kit-text-label .value{border-radius:4px;color:#27282a;font-size:14px;font-weight:400}.kit-text-label.text-label-empty .value{background:#f3f4f6;height:22px;min-width:112px}.kit-text-label.danger{background:#f8e0e0;border-color:#ef3e42}"]
1016
937
  },] }
1017
938
  ];
1018
939
  KitTextLabelComponent.propDecorators = {
@@ -1021,7 +942,8 @@
1021
942
  htmlMode: [{ type: core.Input }],
1022
943
  noValueMessage: [{ type: core.Input }],
1023
944
  messageText: [{ type: core.Input }],
1024
- messageType: [{ type: core.Input }]
945
+ messageType: [{ type: core.Input }],
946
+ state: [{ type: core.Input }]
1025
947
  };
1026
948
 
1027
949
  var KitTextLabelModule = /** @class */ (function () {
@@ -1184,6 +1106,11 @@
1184
1106
  KitUnitsTextboxType["TEXT"] = "text";
1185
1107
  KitUnitsTextboxType["NUMBER"] = "number";
1186
1108
  })(exports.KitUnitsTextboxType || (exports.KitUnitsTextboxType = {}));
1109
+ var KitUnitsTextboxState;
1110
+ (function (KitUnitsTextboxState) {
1111
+ KitUnitsTextboxState["REGULAR"] = "regular";
1112
+ KitUnitsTextboxState["DANGER"] = "danger";
1113
+ })(KitUnitsTextboxState || (KitUnitsTextboxState = {}));
1187
1114
  var KitUnitsTextboxComponent = /** @class */ (function () {
1188
1115
  function KitUnitsTextboxComponent() {
1189
1116
  /**
@@ -1214,6 +1141,10 @@
1214
1141
  * Defines a value which used to set type ot he textbox field
1215
1142
  */
1216
1143
  this.textboxType = exports.KitUnitsTextboxType.TEXT;
1144
+ /**
1145
+ * Defines a particular state for the component
1146
+ */
1147
+ this.state = KitUnitsTextboxState.REGULAR;
1217
1148
  /**
1218
1149
  * Occurs once an item in the dropdown is selected
1219
1150
  */
@@ -1275,10 +1206,10 @@
1275
1206
  KitUnitsTextboxComponent.decorators = [
1276
1207
  { type: core.Component, args: [{
1277
1208
  selector: 'kit-units-textbox',
1278
- template: "<div class=\"kit-units-textbox\" [class.textbox-disabled]=\"disabledTextBox\"\n [class.dropdown-disabled]=\"disabledDropdown\"\n [class.units-left]=\"dropdownPosition === KitUnitsTextboxDropdownPosition.LEFT\">\n <kendo-label *ngIf=\"label\" class=\"label display-block\"\n [text]=\"label\"\n ></kendo-label>\n <div class=\"units-textbox-wrap\">\n <kendo-textbox *ngIf=\"textboxType === KitUnitsTextboxType.TEXT; else numericTextboxTemplate\"\n [placeholder]=\"placeholder\"\n [value]=\"textBoxFormControl.value || textBoxValue\"\n [disabled]=\"disabledTextBox\"\n (blur)=\"onInputBlur()\"\n (valueChange)=\"onInputChange($event)\"\n ></kendo-textbox>\n <ng-template #numericTextboxTemplate>\n <kendo-numerictextbox [placeholder]=\"placeholder\"\n [value]=\"textBoxFormControl.value || textBoxValue\"\n [decimals]=\"decimals\"\n [min]=\"min\"\n [max]=\"max\"\n [maxlength]=\"maxlength\"\n [format]=\"format\"\n [autoCorrect]=\"true\"\n [spinners]=\"false\"\n [selectOnFocus]=\"false\"\n [disabled]=\"disabledTextBox\"\n (blur)=\"onInputBlur()\"\n (valueChange)=\"onInputChange($event)\"\n ></kendo-numerictextbox>\n </ng-template>\n <kendo-dropdownlist valueField=\"value\" textField=\"text\"\n [data]=\"dropdownItems\"\n [value]=\"dropdownFormControl.value || selectedDropdownItem\"\n [valuePrimitive]=\"true\"\n [disabled]=\"disabledDropdown\"\n [popupSettings]=\"dropdownPopupSettings\"\n [itemDisabled]=\"onItemDisabled()\"\n (selectionChange)=\"onItemSelect($event)\"\n (blur)=\"onDropdownBlur()\"\n ></kendo-dropdownlist>\n </div>\n <kit-input-message *ngIf=\"messageText\"\n [type]=\"messageType\"\n [icon]=\"messageIcon\"\n [message]=\"messageText\"\n ></kit-input-message>\n</div>\n",
1209
+ template: "<div class=\"kit-units-textbox {{ state }}\" [class.textbox-disabled]=\"disabledTextBox\"\n [class.dropdown-disabled]=\"disabledDropdown\"\n [class.units-left]=\"dropdownPosition === KitUnitsTextboxDropdownPosition.LEFT\">\n <kendo-label *ngIf=\"label\" class=\"label display-block\"\n [text]=\"label\"\n ></kendo-label>\n <div class=\"units-textbox-wrap\">\n <kendo-textbox *ngIf=\"textboxType === KitUnitsTextboxType.TEXT; else numericTextboxTemplate\"\n [placeholder]=\"placeholder\"\n [value]=\"textBoxFormControl.value || textBoxValue\"\n [disabled]=\"disabledTextBox\"\n (blur)=\"onInputBlur()\"\n (valueChange)=\"onInputChange($event)\"\n ></kendo-textbox>\n <ng-template #numericTextboxTemplate>\n <kendo-numerictextbox [placeholder]=\"placeholder\"\n [value]=\"textBoxFormControl.value || textBoxValue\"\n [decimals]=\"decimals\"\n [min]=\"min\"\n [max]=\"max\"\n [maxlength]=\"maxlength\"\n [format]=\"format\"\n [autoCorrect]=\"true\"\n [spinners]=\"false\"\n [selectOnFocus]=\"false\"\n [disabled]=\"disabledTextBox\"\n (blur)=\"onInputBlur()\"\n (valueChange)=\"onInputChange($event)\"\n ></kendo-numerictextbox>\n </ng-template>\n <kendo-dropdownlist valueField=\"value\" textField=\"text\"\n [data]=\"dropdownItems\"\n [value]=\"dropdownFormControl.value || selectedDropdownItem\"\n [valuePrimitive]=\"true\"\n [disabled]=\"disabledDropdown\"\n [popupSettings]=\"dropdownPopupSettings\"\n [itemDisabled]=\"onItemDisabled()\"\n (selectionChange)=\"onItemSelect($event)\"\n (blur)=\"onDropdownBlur()\"\n ></kendo-dropdownlist>\n </div>\n <kit-input-message *ngIf=\"messageText\"\n [type]=\"messageType\"\n [icon]=\"messageIcon\"\n [message]=\"messageText\"\n ></kit-input-message>\n</div>\n",
1279
1210
  changeDetection: core.ChangeDetectionStrategy.OnPush,
1280
1211
  encapsulation: core.ViewEncapsulation.None,
1281
- styles: ["@charset \"UTF-8\";.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-units-textbox .label{color:#27282a;font-size:13px;font-weight:500;margin-bottom:4px}.kit-units-textbox .units-textbox-wrap{background:#fff;border:1px solid #c1c7d0;border-radius:4px;box-sizing:border-box;display:flex;height:34px}.kit-units-textbox .k-numerictextbox,.kit-units-textbox .k-textbox{flex-grow:1}.kit-units-textbox .k-numerictextbox .k-input,.kit-units-textbox .k-textbox .k-input{color:#27282a;font-size:14px;height:100%;padding:0 8px}.kit-units-textbox .k-dropdown{width:auto}.kit-units-textbox .k-dropdown .k-input{color:#74777d;font-size:13px;font-weight:500;height:100%;justify-content:flex-end;padding:0}.kit-units-textbox .k-dropdown .k-icon:before{color:#000;content:\"\uE015\"}.kit-units-textbox:focus-within .units-textbox-wrap{border:1px solid #006890}.kit-units-textbox .k-dropdown-wrap{background:none;border:none}.kit-units-textbox .k-dropdown-wrap.k-state-focused{box-shadow:none}.kit-units-textbox .k-dropdown-wrap.k-state-focused .k-icon:before,.kit-units-textbox .k-dropdown-wrap.k-state-focused .k-input{color:#006890}.kit-units-textbox .k-dropdown-wrap:hover{background:none}.kit-units-textbox .k-animation-container{left:auto!important;right:0!important}.kit-units-textbox .kit-dropdown-popup{background-color:#f3f4f6;border:1px solid #c1c7d0;border-radius:4px;box-shadow:0 0 8px rgba(0,62,86,.5);margin-top:8px;min-width:75px;padding:4px}.kit-units-textbox .kit-dropdown-popup .k-item{background-color:#fff;border-radius:2px;box-shadow:none!important;color:#27282a;font-size:13px;font-weight:500;justify-content:flex-end;line-height:1;text-align:right}.kit-units-textbox .kit-dropdown-popup .k-item:not(:last-of-type){margin-bottom:4px}.kit-units-textbox .kit-dropdown-popup .k-item.k-state-focused{background-color:#fff;color:#27282a}.kit-units-textbox .kit-dropdown-popup .k-item.k-state-focused:hover,.kit-units-textbox .kit-dropdown-popup .k-item:hover{background-color:#f3f5fa;color:#006890}.kit-units-textbox .kit-dropdown-popup .k-item.k-state-selected{background-color:#006890;color:#fff}.kit-units-textbox .kit-dropdown-popup .k-item.k-state-disabled{background-color:#f3f4f6;color:#9a9fa6}.kit-units-textbox.textbox-disabled .label{color:#74777d}.kit-units-textbox.textbox-disabled .units-textbox-wrap{background-color:#f3f4f6;border-color:#c1c7d0;box-shadow:none}.kit-units-textbox.textbox-disabled .k-textbox .k-input{color:#9a9fa6}.kit-units-textbox.units-left .units-textbox-wrap{flex-direction:row-reverse}.kit-units-textbox.units-left .k-textbox{-ms-grid-column:2;-ms-grid-row:1;grid-column:2;grid-row:1}.kit-units-textbox.units-left .k-textbox .k-input{padding-left:0}.kit-units-textbox.units-left .k-dropdown{-ms-grid-column:1;grid-column:1}.kit-units-textbox.units-left .k-dropdown .k-input{padding-left:10px;width:auto}.kit-units-textbox.units-left .k-animation-container{left:0!important;right:auto!important}.kit-units-textbox.units-left .kit-dropdown-popup .k-item{justify-content:flex-start;text-align:left}.kit-units-textbox .k-input-prefix,.kit-units-textbox .k-input-suffix{height:0}.kit-units-textbox.dropdown-disabled .k-dropdown-wrap .k-icon:before,.kit-units-textbox.dropdown-disabled .k-dropdown-wrap .k-input{color:#9a9fa6}"]
1212
+ styles: ["@charset \"UTF-8\";.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-units-textbox .label{color:#27282a;font-size:13px;font-weight:500;margin-bottom:4px}.kit-units-textbox .units-textbox-wrap{background:#fff;border:1px solid #c1c7d0;border-radius:4px;box-sizing:border-box;display:flex;height:34px}.kit-units-textbox .k-numerictextbox,.kit-units-textbox .k-textbox{flex-grow:1}.kit-units-textbox .k-numerictextbox .k-input,.kit-units-textbox .k-textbox .k-input{color:#27282a;font-size:14px;height:100%;padding:0 8px}.kit-units-textbox .k-dropdown{width:auto}.kit-units-textbox .k-dropdown .k-input{color:#74777d;font-size:13px;font-weight:500;height:100%;justify-content:flex-end;padding:0}.kit-units-textbox .k-dropdown .k-icon:before{color:#000;content:\"\uE015\"}.kit-units-textbox:focus-within .units-textbox-wrap{border:1px solid #006890}.kit-units-textbox .k-dropdown-wrap{background:none;border:none}.kit-units-textbox .k-dropdown-wrap.k-state-focused{box-shadow:none}.kit-units-textbox .k-dropdown-wrap.k-state-focused .k-icon:before,.kit-units-textbox .k-dropdown-wrap.k-state-focused .k-input{color:#006890}.kit-units-textbox .k-dropdown-wrap:hover{background:none}.kit-units-textbox .k-animation-container{left:auto!important;right:0!important}.kit-units-textbox .kit-dropdown-popup{background-color:#f3f4f6;border:1px solid #c1c7d0;border-radius:4px;box-shadow:0 0 8px rgba(0,62,86,.5);margin-top:8px;min-width:75px;padding:4px}.kit-units-textbox .kit-dropdown-popup .k-item{background-color:#fff;border-radius:2px;box-shadow:none!important;color:#27282a;font-size:13px;font-weight:500;justify-content:flex-end;line-height:1;text-align:right}.kit-units-textbox .kit-dropdown-popup .k-item:not(:last-of-type){margin-bottom:4px}.kit-units-textbox .kit-dropdown-popup .k-item.k-state-focused{background-color:#fff;color:#27282a}.kit-units-textbox .kit-dropdown-popup .k-item.k-state-focused:hover,.kit-units-textbox .kit-dropdown-popup .k-item:hover{background-color:#f3f5fa;color:#006890}.kit-units-textbox .kit-dropdown-popup .k-item.k-state-selected{background-color:#006890;color:#fff}.kit-units-textbox .kit-dropdown-popup .k-item.k-state-disabled{background-color:#f3f4f6;color:#9a9fa6}.kit-units-textbox.textbox-disabled .label{color:#74777d}.kit-units-textbox.textbox-disabled .units-textbox-wrap{background-color:#f3f4f6;border-color:#c1c7d0;box-shadow:none}.kit-units-textbox.textbox-disabled .k-textbox .k-input{color:#9a9fa6}.kit-units-textbox.units-left .units-textbox-wrap{flex-direction:row-reverse}.kit-units-textbox.units-left .k-textbox{-ms-grid-column:2;-ms-grid-row:1;grid-column:2;grid-row:1}.kit-units-textbox.units-left .k-textbox .k-input{padding-left:0}.kit-units-textbox.units-left .k-dropdown{-ms-grid-column:1;grid-column:1}.kit-units-textbox.units-left .k-dropdown .k-input{padding-left:10px;width:auto}.kit-units-textbox.units-left .k-animation-container{left:0!important;right:auto!important}.kit-units-textbox.units-left .kit-dropdown-popup .k-item{justify-content:flex-start;text-align:left}.kit-units-textbox .k-input-prefix,.kit-units-textbox .k-input-suffix{height:0}.kit-units-textbox.dropdown-disabled .k-dropdown-wrap .k-icon:before,.kit-units-textbox.dropdown-disabled .k-dropdown-wrap .k-input{color:#9a9fa6}.kit-units-textbox.danger .units-textbox-wrap{background:#f8e0e0;border-color:#ef3e42}"]
1282
1213
  },] }
1283
1214
  ];
1284
1215
  KitUnitsTextboxComponent.propDecorators = {
@@ -1301,6 +1232,7 @@
1301
1232
  max: [{ type: core.Input }],
1302
1233
  maxlength: [{ type: core.Input }],
1303
1234
  format: [{ type: core.Input }],
1235
+ state: [{ type: core.Input }],
1304
1236
  selected: [{ type: core.Output }],
1305
1237
  changed: [{ type: core.Output }]
1306
1238
  };
@@ -1427,6 +1359,9 @@
1427
1359
  this.onChange(value);
1428
1360
  };
1429
1361
  KitDatetimepickerComponent.prototype.writeValue = function (value) {
1362
+ if (!value) {
1363
+ return;
1364
+ }
1430
1365
  this.onChange(new Date(value));
1431
1366
  this.defaultDate = new Date(value);
1432
1367
  };
@@ -1516,7 +1451,8 @@
1516
1451
  { type: core.Component, args: [{
1517
1452
  selector: 'kit-notification',
1518
1453
  template: "<div class=\"kit-notification notification-{{ type }}\">\n <kit-svg-icon class=\"notification-icon\"\n [icon]=\"type\"\n ></kit-svg-icon>\n <div class=\"notification-text\">{{ message }}</div>\n</div>\n",
1519
- 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-notification{align-items:center;display:flex;padding:12px}.kit-notification .notification-icon{fill:none;height:20px;margin-right:10px;width:20px}.kit-notification .notification-text{color:#000;font-size:14px;font-weight:400;line-height:1.26;white-space:pre-wrap}.kit-notification.notification-info{background-color:#fff8e0}.kit-notification.notification-warning{background-color:#ffeee5}.kit-notification.notification-error{background-color:#f8e0e0}.kit-notification.notification-success{background-color:#e7f4ec}"]
1454
+ changeDetection: core.ChangeDetectionStrategy.OnPush,
1455
+ 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-notification{align-items:center;display:flex;padding:12px}.kit-notification .notification-icon{fill:none;flex-shrink:0;height:20px;margin-right:10px;width:20px}.kit-notification .notification-text{color:#000;font-size:14px;font-weight:400;line-height:1.26;white-space:pre-wrap}.kit-notification.notification-info{background-color:#fff8e0}.kit-notification.notification-warning{background-color:#ffeee5}.kit-notification.notification-error{background-color:#f8e0e0}.kit-notification.notification-success{background-color:#e7f4ec}"]
1520
1456
  },] }
1521
1457
  ];
1522
1458
  KitNotificationComponent.propDecorators = {
@@ -1547,14 +1483,14 @@
1547
1483
  /**
1548
1484
  * This is needed in order to check whether this is the root menu item
1549
1485
  */
1550
- var ROOT_MENU_ITEM_INDEX$1 = '0';
1551
- var getInitialsByName$1 = function (name) {
1486
+ var ROOT_MENU_ITEM_INDEX = '0';
1487
+ var getInitialsByName = function (name) {
1552
1488
  // we don't like reflexion but "initials" library returns union type
1553
1489
  // so we don't want to have union type in our app
1554
1490
  var result = initials__default['default'](name || '');
1555
1491
  return Array.isArray(result) && result.join() || result;
1556
1492
  };
1557
- var ɵ0$1 = getInitialsByName$1;
1493
+ var ɵ0 = getInitialsByName;
1558
1494
  var KitNavbarComponent = /** @class */ (function () {
1559
1495
  function KitNavbarComponent() {
1560
1496
  /**
@@ -1604,7 +1540,7 @@
1604
1540
  */
1605
1541
  KitNavbarComponent.prototype.onMenuSelect = function (_a) {
1606
1542
  var index = _a.index, item = _a.item;
1607
- if (index === ROOT_MENU_ITEM_INDEX$1) {
1543
+ if (index === ROOT_MENU_ITEM_INDEX) {
1608
1544
  return;
1609
1545
  }
1610
1546
  item.data.action();
@@ -1618,7 +1554,7 @@
1618
1554
  };
1619
1555
  };
1620
1556
  KitNavbarComponent.prototype.getUsernameInitials = function () {
1621
- return getInitialsByName$1(this.username);
1557
+ return getInitialsByName(this.username);
1622
1558
  };
1623
1559
  return KitNavbarComponent;
1624
1560
  }());
@@ -1706,6 +1642,10 @@
1706
1642
  },] }
1707
1643
  ];
1708
1644
 
1645
+ (function (KitAutocompleteState) {
1646
+ KitAutocompleteState["REGULAR"] = "regular";
1647
+ KitAutocompleteState["DANGER"] = "danger";
1648
+ })(exports.KitAutocompleteState || (exports.KitAutocompleteState = {}));
1709
1649
  var KitAutocompleteComponent = /** @class */ (function () {
1710
1650
  function KitAutocompleteComponent(elementRef) {
1711
1651
  var _this = this;
@@ -1722,6 +1662,10 @@
1722
1662
  * Defines a value which going to be an info message type
1723
1663
  */
1724
1664
  this.messageType = exports.KitInputMessageType.DEFAULT;
1665
+ /**
1666
+ * Defines a particular state for the component
1667
+ */
1668
+ this.state = exports.KitAutocompleteState.REGULAR;
1725
1669
  /**
1726
1670
  * An action which is emitted when input value changed
1727
1671
  */
@@ -1731,18 +1675,17 @@
1731
1675
  */
1732
1676
  this.selected = new core.EventEmitter();
1733
1677
  /**
1734
- * Defines a value of the current selected dropdown list item
1678
+ * An action which is emitted when input lost focus
1735
1679
  */
1736
- this.selectedValue = null;
1680
+ this.blured = new core.EventEmitter();
1737
1681
  /**
1738
1682
  * Function that emit normalized selected dropdown list item in case when
1739
1683
  * inputted data changed and component lost focus
1740
1684
  */
1741
1685
  this.normalizedSelectedValue$ = function (text$) { return text$.pipe(operators.map(function (content) {
1742
- var _a;
1743
- _this.selectedValue = content ? _this.selectedValue : null;
1686
+ _this.selectedValue = content && _this.selectedValue || null;
1744
1687
  _this.selected.emit(_this.selectedValue);
1745
- _this.onChange(((_a = _this.selectedValue) === null || _a === void 0 ? void 0 : _a.value) || null);
1688
+ _this.onChange(_this.selectedValue || null);
1746
1689
  return _this.selectedValue;
1747
1690
  })); };
1748
1691
  /**
@@ -1763,6 +1706,12 @@
1763
1706
  this.onTouched = function () {
1764
1707
  };
1765
1708
  }
1709
+ /**
1710
+ * Callback function that return dropdown list item text
1711
+ */
1712
+ KitAutocompleteComponent.prototype.getOptionText = function (item) {
1713
+ return item.getText && item.getText() || item.text;
1714
+ };
1766
1715
  /**
1767
1716
  * Function that is called when input value changed
1768
1717
  */
@@ -1778,13 +1727,14 @@
1778
1727
  }
1779
1728
  this.selectedValue = item;
1780
1729
  this.selected.emit(this.selectedValue);
1781
- this.onChange(this.selectedValue.value);
1730
+ this.onChange(this.selectedValue);
1782
1731
  };
1783
1732
  /**
1784
1733
  * Function that is called when input field lost focus
1785
1734
  */
1786
1735
  KitAutocompleteComponent.prototype.onBlur = function () {
1787
1736
  this.onTouched();
1737
+ this.blured.emit();
1788
1738
  };
1789
1739
  /**
1790
1740
  * Function that is called when input field get focus
@@ -1794,6 +1744,7 @@
1794
1744
  };
1795
1745
  KitAutocompleteComponent.prototype.writeValue = function (value) {
1796
1746
  this.onChange(value);
1747
+ this.selectedValue = value;
1797
1748
  };
1798
1749
  KitAutocompleteComponent.prototype.registerOnChange = function (fn) {
1799
1750
  this.onChange = fn;
@@ -1809,7 +1760,7 @@
1809
1760
  KitAutocompleteComponent.decorators = [
1810
1761
  { type: core.Component, args: [{
1811
1762
  selector: 'kit-autocomplete',
1812
- template: "<div class=\"kit-autocomplete\"\n [class.autocomplete-empty]=\"!items || !items.length\"\n [class.autocomplete-disabled]=\"disabled\"\n [class.autocomplete-loading]=\"loaderVisible\">\n <kendo-label *ngIf=\"label\" class=\"label display-block\"\n [text]=\"label\"\n [for]=\"combobox\">\n </kendo-label>\n <kendo-combobox #combobox textField=\"value\" valueField=\"value\"\n kendoDropDownFilter\n [data]=\"items\"\n [placeholder]=\"placeholder\"\n [filterable]=\"true\"\n [disabled]=\"disabled\"\n [clearButton]=\"false\"\n [value]=\"defaultValue\"\n [allowCustom]=\"true\"\n [valueNormalizer]=\"normalizedSelectedValue$\"\n [popupSettings]=\"dropdownPopupSettings\"\n (focus)=\"onFocus()\"\n (blur)=\"onBlur()\"\n (selectionChange)=\"onValueSelect($event)\"\n (filterChange)=\"onFilterChange($event)\"\n >\n <ng-template kendoAutoCompleteNoDataTemplate></ng-template>\n <ng-template kendoComboBoxHeaderTemplate>\n <kit-loader *ngIf=\"loaderVisible\" class=\"loader\"></kit-loader>\n </ng-template>\n <ng-template kendoComboBoxItemTemplate let-item>\n <span class=\"template\">{{ item.text }}</span>\n </ng-template>\n </kendo-combobox>\n <kit-input-message *ngIf=\"messageText\"\n [type]=\"messageType\"\n [icon]=\"messageIcon\"\n [message]=\"messageText\"\n ></kit-input-message>\n</div>\n",
1763
+ template: "<div class=\"kit-autocomplete {{ state }}\"\n [class.autocomplete-empty]=\"!items || !items.length\"\n [class.autocomplete-disabled]=\"disabled\"\n [class.autocomplete-loading]=\"loaderVisible\">\n <kendo-label *ngIf=\"label\" class=\"label display-block\"\n [text]=\"label\"\n [for]=\"combobox\">\n </kendo-label>\n <div class=\"autocomplete-wrap\">\n <kendo-combobox #combobox textField=\"text\" valueField=\"value\"\n kendoDropDownFilter\n [data]=\"items\"\n [placeholder]=\"placeholder\"\n [filterable]=\"true\"\n [disabled]=\"disabled\"\n [clearButton]=\"false\"\n [value]=\"selectedValue\"\n [allowCustom]=\"true\"\n [valueNormalizer]=\"normalizedSelectedValue$\"\n [popupSettings]=\"dropdownPopupSettings\"\n (focus)=\"onFocus()\"\n (blur)=\"onBlur()\"\n (selectionChange)=\"onValueSelect($event)\"\n (filterChange)=\"onFilterChange($event)\"\n >\n <ng-template kendoAutoCompleteNoDataTemplate></ng-template>\n <ng-template kendoComboBoxHeaderTemplate>\n <kit-loader *ngIf=\"loaderVisible\" class=\"loader\"></kit-loader>\n </ng-template>\n <ng-template kendoComboBoxItemTemplate let-item>\n <span class=\"template\">{{ getOptionText(item) }}</span>\n </ng-template>\n </kendo-combobox>\n <kit-svg-icon class=\"input-icon\" icon=\"search\"></kit-svg-icon>\n </div>\n <kit-input-message *ngIf=\"messageText\"\n [type]=\"messageType\"\n [icon]=\"messageIcon\"\n [message]=\"messageText\"\n ></kit-input-message>\n</div>\n",
1813
1764
  changeDetection: core.ChangeDetectionStrategy.OnPush,
1814
1765
  encapsulation: core.ViewEncapsulation.None,
1815
1766
  providers: [{
@@ -1817,7 +1768,7 @@
1817
1768
  useExisting: core.forwardRef(function () { return KitAutocompleteComponent; }),
1818
1769
  multi: true,
1819
1770
  }],
1820
- 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-autocomplete .label{color:#27282a;font-size:13px;font-weight:500;margin-bottom:4px}.kit-autocomplete .k-select{display:none}.kit-autocomplete .k-combobox{width:100%}.kit-autocomplete .k-dropdown-wrap{background:#fff;border:1px solid #c1c7d0;border-radius:4px;height:34px}.kit-autocomplete .k-dropdown-wrap.k-state-focused{box-shadow:none}.kit-autocomplete .k-input{color:#27282a;font-size:14px;height:100%;padding:0 8px}.kit-autocomplete .k-input::-moz-selection{background:#006890}.kit-autocomplete .k-input::selection{background:#006890}.kit-autocomplete .kit-loader,.kit-autocomplete .kit-loader>div,.kit-autocomplete .loader{height:100%}.kit-autocomplete .kit-autocomplete-popup{background-color:#f3f4f6;border:1px solid #c1c7d0;border-radius:4px;box-shadow:0 0 5px rgba(0,62,86,.5);margin-top:4px;padding:4px}.kit-autocomplete .kit-autocomplete-popup .k-item{background-color:#fff;border-radius:2px;box-shadow:none;color:#27282a;font-size:13px;font-weight:500;line-height:1.26;min-height:auto;padding:8px}.kit-autocomplete .kit-autocomplete-popup .k-item:not(:last-of-type){margin-bottom:4px}.kit-autocomplete .kit-autocomplete-popup .k-item:hover{background-color:#f3f5fa;color:#006890}.kit-autocomplete:focus-within .k-dropdown-wrap{border-color:#006890}.kit-autocomplete.autocomplete-loading .kit-autocomplete-popup{height:200px}.kit-autocomplete.autocomplete-empty .kit-autocomplete-popup,.kit-autocomplete.autocomplete-loading .kit-autocomplete-popup .k-list-scroller,.kit-autocomplete.autocomplete-loading .kit-autocomplete-popup .k-nodata{display:none}.kit-autocomplete.autocomplete-disabled .label{color:#74777d}"]
1771
+ 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-autocomplete .label{color:#27282a;font-size:13px;font-weight:500;margin-bottom:4px}.kit-autocomplete .autocomplete-wrap{align-items:center;display:flex;position:relative}.kit-autocomplete .k-select{display:none}.kit-autocomplete .k-combobox{width:100%}.kit-autocomplete .k-dropdown-wrap{background:#fff;border:1px solid #c1c7d0;border-radius:4px;height:34px}.kit-autocomplete .k-dropdown-wrap.k-state-focused{box-shadow:none}.kit-autocomplete .k-input{color:#27282a;font-size:14px;height:100%;padding:0 32px 0 8px}.kit-autocomplete .k-input::-moz-selection{background:#006890}.kit-autocomplete .k-input::selection{background:#006890}.kit-autocomplete .kit-loader,.kit-autocomplete .kit-loader>div,.kit-autocomplete .loader{height:100%}.kit-autocomplete .input-icon{fill:#fff;height:16px;position:absolute;right:8px;stroke:#000;width:16px}.kit-autocomplete .kit-autocomplete-popup{background-color:#f3f4f6;border:1px solid #c1c7d0;border-radius:4px;box-shadow:0 0 5px rgba(0,62,86,.5);margin-top:4px;padding:4px}.kit-autocomplete .kit-autocomplete-popup .k-item{background-color:#fff;border-radius:2px;box-shadow:none;color:#27282a;font-size:13px;font-weight:500;line-height:1.26;min-height:auto;padding:8px}.kit-autocomplete .kit-autocomplete-popup .k-item:not(:last-of-type){margin-bottom:4px}.kit-autocomplete .kit-autocomplete-popup .k-item:hover{background-color:#f3f5fa;color:#006890}.kit-autocomplete:focus-within .k-dropdown-wrap{border-color:#006890}.kit-autocomplete.autocomplete-loading .kit-autocomplete-popup{height:200px}.kit-autocomplete.autocomplete-empty .kit-autocomplete-popup,.kit-autocomplete.autocomplete-loading .kit-autocomplete-popup .k-list-scroller,.kit-autocomplete.autocomplete-loading .kit-autocomplete-popup .k-nodata{display:none}.kit-autocomplete.autocomplete-disabled .label{color:#74777d}.kit-autocomplete.danger .k-dropdown-wrap{background:#f8e0e0;border-color:#ef3e42}.kit-autocomplete.danger .input-icon{fill:#f8e0e0}"]
1821
1772
  },] }
1822
1773
  ];
1823
1774
  KitAutocompleteComponent.ctorParameters = function () { return [
@@ -1827,14 +1778,16 @@
1827
1778
  label: [{ type: core.Input }],
1828
1779
  placeholder: [{ type: core.Input }],
1829
1780
  items: [{ type: core.Input }],
1830
- defaultValue: [{ type: core.Input }],
1781
+ selectedValue: [{ type: core.Input }],
1831
1782
  disabled: [{ type: core.Input }],
1832
1783
  loaderVisible: [{ type: core.Input }],
1833
1784
  messageIcon: [{ type: core.Input }],
1834
1785
  messageText: [{ type: core.Input }],
1835
1786
  messageType: [{ type: core.Input }],
1787
+ state: [{ type: core.Input }],
1836
1788
  changed: [{ type: core.Output }],
1837
- selected: [{ type: core.Output }]
1789
+ selected: [{ type: core.Output }],
1790
+ blured: [{ type: core.Output }]
1838
1791
  };
1839
1792
 
1840
1793
  var KitAutocompleteModule = /** @class */ (function () {
@@ -1856,6 +1809,7 @@
1856
1809
  kendoAngularInputs.InputsModule,
1857
1810
  KitInputMessageModule,
1858
1811
  KitLoaderModule,
1812
+ KitSvgIconModule,
1859
1813
  ],
1860
1814
  exports: [
1861
1815
  KitAutocompleteComponent,
@@ -1863,6 +1817,110 @@
1863
1817
  },] }
1864
1818
  ];
1865
1819
 
1820
+ (function (KitCheckboxState) {
1821
+ KitCheckboxState["REGULAR"] = "regular";
1822
+ KitCheckboxState["DANGER"] = "danger";
1823
+ })(exports.KitCheckboxState || (exports.KitCheckboxState = {}));
1824
+ var KitCheckboxComponent = /** @class */ (function () {
1825
+ function KitCheckboxComponent() {
1826
+ /**
1827
+ * States the component is disabled
1828
+ */
1829
+ this.disabled = false;
1830
+ /**
1831
+ * Defines a default value
1832
+ */
1833
+ this.defaultChecked = false;
1834
+ /**
1835
+ * Defines a particular state for the component
1836
+ */
1837
+ this.state = exports.KitCheckboxState.REGULAR;
1838
+ /**
1839
+ * Defines a value which going to be an info message type
1840
+ */
1841
+ this.messageType = kitInputMessage_component.KitInputMessageType.DEFAULT;
1842
+ /**
1843
+ * Occurs as soon as input checked state is changed
1844
+ */
1845
+ this.changed = new core.EventEmitter();
1846
+ /**
1847
+ * Function that should be called every time the form control value changes
1848
+ */
1849
+ this.onChange = function (value) {
1850
+ };
1851
+ /**
1852
+ * Function that should be called when input lost focus and changed form control state to "touched"
1853
+ */
1854
+ this.onTouched = function (value) {
1855
+ };
1856
+ }
1857
+ KitCheckboxComponent.prototype.onInputStateChange = function (event) {
1858
+ var target = event.target;
1859
+ var checked = target.checked;
1860
+ this.onChange(checked);
1861
+ this.changed.emit(checked);
1862
+ };
1863
+ KitCheckboxComponent.prototype.registerOnChange = function (fn) {
1864
+ this.onChange = fn;
1865
+ };
1866
+ KitCheckboxComponent.prototype.registerOnTouched = function (fn) {
1867
+ this.onTouched = fn;
1868
+ };
1869
+ KitCheckboxComponent.prototype.writeValue = function (value) {
1870
+ this.onChange(value);
1871
+ this.defaultChecked = value;
1872
+ };
1873
+ KitCheckboxComponent.prototype.setDisabledState = function (disabled) {
1874
+ this.disabled = disabled;
1875
+ };
1876
+ return KitCheckboxComponent;
1877
+ }());
1878
+ KitCheckboxComponent.decorators = [
1879
+ { type: core.Component, args: [{
1880
+ selector: 'kit-checkbox',
1881
+ 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",
1882
+ changeDetection: core.ChangeDetectionStrategy.OnPush,
1883
+ providers: [{
1884
+ provide: forms.NG_VALUE_ACCESSOR,
1885
+ useExisting: core.forwardRef(function () { return KitCheckboxComponent; }),
1886
+ multi: true,
1887
+ }],
1888
+ 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{color:#27282a;font-size:14px;font-weight:400;margin-left:8px}.kit-checkbox .checkbox{border-color:#c1c7d0;border-radius:4px;height:20px;opacity:1;width:20px}.kit-checkbox .checkbox:checked{background:#006890;border-color:#006890}.kit-checkbox .checkbox:focus{border-color:#006890;box-shadow:0 0 0 3px #e7f4ec}.kit-checkbox .checkbox:hover{border-color:#006890}.kit-checkbox.disabled{pointer-events:none}.kit-checkbox.disabled .label{color:#9a9fa6}.kit-checkbox.disabled .checkbox{background-color:#fff;border-color:#cdd2d9}.kit-checkbox.danger .checkbox{background:#f8e0e0;border-color:#ef3e42}.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}"]
1889
+ },] }
1890
+ ];
1891
+ KitCheckboxComponent.propDecorators = {
1892
+ label: [{ type: core.Input }],
1893
+ disabled: [{ type: core.Input }],
1894
+ defaultChecked: [{ type: core.Input }],
1895
+ state: [{ type: core.Input }],
1896
+ messageIcon: [{ type: core.Input }],
1897
+ messageText: [{ type: core.Input }],
1898
+ messageType: [{ type: core.Input }],
1899
+ changed: [{ type: core.Output }]
1900
+ };
1901
+
1902
+ var KitCheckboxModule = /** @class */ (function () {
1903
+ function KitCheckboxModule() {
1904
+ }
1905
+ return KitCheckboxModule;
1906
+ }());
1907
+ KitCheckboxModule.decorators = [
1908
+ { type: core.NgModule, args: [{
1909
+ declarations: [
1910
+ KitCheckboxComponent,
1911
+ ],
1912
+ exports: [
1913
+ KitCheckboxComponent,
1914
+ ],
1915
+ imports: [
1916
+ kendoAngularLabel.LabelModule,
1917
+ kendoAngularInputs.CheckBoxModule,
1918
+ common.CommonModule,
1919
+ kitInputMessage_module.KitInputMessageModule,
1920
+ ],
1921
+ },] }
1922
+ ];
1923
+
1866
1924
  // KitButton
1867
1925
 
1868
1926
  /**
@@ -1873,6 +1931,8 @@
1873
1931
  exports.KitAutocompleteModule = KitAutocompleteModule;
1874
1932
  exports.KitButtonComponent = KitButtonComponent;
1875
1933
  exports.KitButtonModule = KitButtonModule;
1934
+ exports.KitCheckboxComponent = KitCheckboxComponent;
1935
+ exports.KitCheckboxModule = KitCheckboxModule;
1876
1936
  exports.KitCtaPanelComponent = KitCtaPanelComponent;
1877
1937
  exports.KitCtaPanelModule = KitCtaPanelModule;
1878
1938
  exports.KitDatetimepickerComponent = KitDatetimepickerComponent;
@@ -1883,8 +1943,6 @@
1883
1943
  exports.KitEntityCardModule = KitEntityCardModule;
1884
1944
  exports.KitExpandablePanelComponent = KitExpandablePanelComponent;
1885
1945
  exports.KitExpandablePanelModule = KitExpandablePanelModule;
1886
- exports.KitHeaderComponent = KitHeaderComponent;
1887
- exports.KitHeaderModule = KitHeaderModule;
1888
1946
  exports.KitInputMessageComponent = KitInputMessageComponent;
1889
1947
  exports.KitInputMessageModule = KitInputMessageModule;
1890
1948
  exports.KitLoaderComponent = KitLoaderComponent;