@indigina/kendo 2.0.30 → 2.0.32
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/assets/styles/Site.scss
CHANGED
|
@@ -348,7 +348,9 @@ html .km-pane-wrapper .k-header {
|
|
|
348
348
|
}
|
|
349
349
|
|
|
350
350
|
.k-state-selected,
|
|
351
|
-
.k-
|
|
351
|
+
.k-selected,
|
|
352
|
+
.k-list > .k-state-selected,
|
|
353
|
+
.k-list > .k-selected {
|
|
352
354
|
background-color: #dce4f0 !important;
|
|
353
355
|
color: #333333 !important;
|
|
354
356
|
border: 0 none;
|
|
@@ -490,16 +492,24 @@ html .km-pane-wrapper .k-header {
|
|
|
490
492
|
/*end*/
|
|
491
493
|
|
|
492
494
|
.k-state-selected,
|
|
495
|
+
.k-selected,
|
|
493
496
|
.k-state-selected:link,
|
|
497
|
+
.k-selected:link,
|
|
494
498
|
.k-state-selected:visited,
|
|
499
|
+
.k-selected:visited,
|
|
495
500
|
.k-list > .k-state-selected,
|
|
501
|
+
.k-list > .k-selected,
|
|
496
502
|
.k-list > .k-state-highlight,
|
|
497
503
|
.k-panel > .k-state-selected,
|
|
504
|
+
.k-panel > .k-selected,
|
|
498
505
|
.k-ghost-splitbar-vertical,
|
|
499
506
|
.k-ghost-splitbar-horizontal,
|
|
500
507
|
.k-draghandle.k-state-selected:hover,
|
|
508
|
+
.k-draghandle.k-selected:hover,
|
|
501
509
|
.k-scheduler .k-scheduler-toolbar .k-state-selected,
|
|
510
|
+
.k-scheduler .k-scheduler-toolbar .k-selected,
|
|
502
511
|
.k-scheduler .k-today.k-state-selected,
|
|
512
|
+
.k-scheduler .k-today.k-selected,
|
|
503
513
|
.k-marquee-color {
|
|
504
514
|
background-color: #e5daf8;
|
|
505
515
|
border-color: #e5daf8;
|
|
@@ -578,14 +588,21 @@ html .km-pane-wrapper .k-header {
|
|
|
578
588
|
|
|
579
589
|
/*Arrows*/
|
|
580
590
|
|
|
581
|
-
.k-pager-wrap .k-link:link
|
|
591
|
+
.k-pager-wrap .k-link:link,
|
|
592
|
+
.k-pager-wrap .k-button,
|
|
593
|
+
.k-pager-numbers .k-button {
|
|
582
594
|
color: #5f5f5f !important;
|
|
595
|
+
background-color: transparent;
|
|
596
|
+
border-color: transparent;
|
|
583
597
|
}
|
|
584
598
|
|
|
585
|
-
.k-pager-wrap .k-link:hover
|
|
599
|
+
.k-pager-wrap .k-link:hover,
|
|
600
|
+
.k-pager-wrap .k-button:hover,
|
|
601
|
+
.k-pager-numbers .k-button:hover {
|
|
586
602
|
border-color: transparent;
|
|
587
603
|
color: #9766af;
|
|
588
604
|
border-radius: 3px;
|
|
605
|
+
background-color: transparent;
|
|
589
606
|
}
|
|
590
607
|
|
|
591
608
|
/*table header arrows*/
|
|
@@ -2677,7 +2677,8 @@ body.mini-navbar .navbar-static-side.open {
|
|
|
2677
2677
|
border: 1px solid #36517e;
|
|
2678
2678
|
}
|
|
2679
2679
|
/* Kendo overrides */
|
|
2680
|
-
.k-pager-numbers .k-state-selected
|
|
2680
|
+
.k-pager-numbers .k-state-selected,
|
|
2681
|
+
.k-pager-numbers .k-selected {
|
|
2681
2682
|
border-color: #dce4f0;
|
|
2682
2683
|
background-color: #dce4f0 !important;
|
|
2683
2684
|
color: #486da9;
|
|
@@ -15,7 +15,7 @@ import * as i2$1 from '@progress/kendo-angular-inputs';
|
|
|
15
15
|
import { InputsModule } from '@progress/kendo-angular-inputs';
|
|
16
16
|
import * as i3$1 from '@progress/kendo-angular-label';
|
|
17
17
|
import { LabelModule } from '@progress/kendo-angular-label';
|
|
18
|
-
import { BehaviorSubject, Subject, of, throwError, map as map$1, from, tap as tap$1,
|
|
18
|
+
import { BehaviorSubject, Subject, of, throwError, map as map$1, from, tap as tap$1, switchMap, takeUntil } from 'rxjs';
|
|
19
19
|
import { map, mergeMap, debounceTime, catchError, tap, filter, take, finalize } from 'rxjs/operators';
|
|
20
20
|
import { toODataString, distinct, filterBy } from '@progress/kendo-data-query';
|
|
21
21
|
import * as i1$1 from 'ngx-toastr';
|
|
@@ -3302,12 +3302,27 @@ class FieldMultiSelectComponent extends FieldComponent {
|
|
|
3302
3302
|
this.autoClose = false;
|
|
3303
3303
|
this.changed = new EventEmitter();
|
|
3304
3304
|
this.destroy$ = new Subject();
|
|
3305
|
+
this.reload$ = new BehaviorSubject(undefined);
|
|
3305
3306
|
this.textField = this.textField ?? 'name';
|
|
3306
3307
|
this.valueField = this.valueField ?? 'id';
|
|
3307
3308
|
}
|
|
3308
3309
|
ngOnInit() {
|
|
3309
3310
|
super.ngOnInit();
|
|
3310
|
-
this.
|
|
3311
|
+
this.data$ = this.reload$.pipe(switchMap(() => this.loadData()), takeUntil(this.destroy$));
|
|
3312
|
+
}
|
|
3313
|
+
loadData() {
|
|
3314
|
+
if (this.data) {
|
|
3315
|
+
return of(this.data);
|
|
3316
|
+
}
|
|
3317
|
+
return this.getData().pipe(tap$1((page) => this.updateControlValue(page)), map$1((page) => page.data));
|
|
3318
|
+
}
|
|
3319
|
+
updateControlValue(page) {
|
|
3320
|
+
const data = page.data;
|
|
3321
|
+
const currentValue = this.control.value || [];
|
|
3322
|
+
const filteredValue = currentValue.filter((x) => data.some((d) => d.id === x));
|
|
3323
|
+
if (currentValue.length !== filteredValue.length) {
|
|
3324
|
+
this.control.setValue(filteredValue, { emitEvent: false });
|
|
3325
|
+
}
|
|
3311
3326
|
}
|
|
3312
3327
|
ngOnChanges() {
|
|
3313
3328
|
super.ngOnChanges();
|
|
@@ -3318,16 +3333,7 @@ class FieldMultiSelectComponent extends FieldComponent {
|
|
|
3318
3333
|
this.destroy$.complete();
|
|
3319
3334
|
}
|
|
3320
3335
|
setData() {
|
|
3321
|
-
|
|
3322
|
-
let dataSubject = new BehaviorSubject(this.data);
|
|
3323
|
-
this.data$ = dataSubject.asObservable();
|
|
3324
|
-
}
|
|
3325
|
-
else {
|
|
3326
|
-
this.data$ = this.getData().pipe(tap$1((page) => {
|
|
3327
|
-
let data = page.data;
|
|
3328
|
-
this.control.setValue(this.control.value.filter((x) => data.some((d) => d.id === x)));
|
|
3329
|
-
}), map$1((page) => page.data), takeUntil(this.destroy$));
|
|
3330
|
-
}
|
|
3336
|
+
this.reload$.next();
|
|
3331
3337
|
}
|
|
3332
3338
|
onPopupOpen(event) {
|
|
3333
3339
|
if (!this.singleMode) {
|