@flusys/ng-ui 7.0.0 → 7.0.2
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.
|
@@ -3132,9 +3132,6 @@ class DatePickerComponent {
|
|
|
3132
3132
|
this._open.set(false);
|
|
3133
3133
|
}
|
|
3134
3134
|
}
|
|
3135
|
-
onInputClick(event) {
|
|
3136
|
-
this.toggleCalendar(event);
|
|
3137
|
-
}
|
|
3138
3135
|
onInputKeyDown(event) {
|
|
3139
3136
|
if (this.disabled() || this.readonly())
|
|
3140
3137
|
return;
|
|
@@ -3469,7 +3466,7 @@ class DatePickerComponent {
|
|
|
3469
3466
|
[placeholder]="placeholder()"
|
|
3470
3467
|
[attr.aria-invalid]="invalid() ? true : null"
|
|
3471
3468
|
[attr.aria-readonly]="readonly() ? true : null"
|
|
3472
|
-
(click)="
|
|
3469
|
+
(click)="toggleCalendar($event)"
|
|
3473
3470
|
(keydown)="onInputKeyDown($event)"
|
|
3474
3471
|
(change)="onInputChange($any($event.target).value)"
|
|
3475
3472
|
/>
|
|
@@ -3864,7 +3861,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.6", ngImpor
|
|
|
3864
3861
|
[placeholder]="placeholder()"
|
|
3865
3862
|
[attr.aria-invalid]="invalid() ? true : null"
|
|
3866
3863
|
[attr.aria-readonly]="readonly() ? true : null"
|
|
3867
|
-
(click)="
|
|
3864
|
+
(click)="toggleCalendar($event)"
|
|
3868
3865
|
(keydown)="onInputKeyDown($event)"
|
|
3869
3866
|
(change)="onInputChange($any($event.target).value)"
|
|
3870
3867
|
/>
|
|
@@ -5346,9 +5343,6 @@ class ScrollerComponent {
|
|
|
5346
5343
|
else
|
|
5347
5344
|
el.scrollTo({ top: pos, behavior });
|
|
5348
5345
|
}
|
|
5349
|
-
scrollToTop(behavior = 'auto') {
|
|
5350
|
-
this.scrollToIndex(0, behavior);
|
|
5351
|
-
}
|
|
5352
5346
|
ngAfterViewInit() {
|
|
5353
5347
|
const el = this.viewportRef()?.nativeElement;
|
|
5354
5348
|
if (!el)
|
|
@@ -11471,9 +11465,6 @@ class TreeTableComponent {
|
|
|
11471
11465
|
return;
|
|
11472
11466
|
this.onLazyLoad.emit(this.buildLazyEvent(event.first, event.last - event.first));
|
|
11473
11467
|
}
|
|
11474
|
-
onFilterInput(v) {
|
|
11475
|
-
this.filterGlobal(v);
|
|
11476
|
-
}
|
|
11477
11468
|
filterGlobal(value) {
|
|
11478
11469
|
this._filterText.set(value);
|
|
11479
11470
|
this._currentFirst.set(0);
|
|
@@ -11822,7 +11813,7 @@ class TreeTableComponent {
|
|
|
11822
11813
|
class="flex-1 text-sm bg-transparent focus:outline-none text-(--f-text-color) placeholder:text-(--f-form-field-placeholder-color)"
|
|
11823
11814
|
placeholder="Search..."
|
|
11824
11815
|
[value]="filterText()"
|
|
11825
|
-
(input)="
|
|
11816
|
+
(input)="filterGlobal($any($event.target).value)"
|
|
11826
11817
|
/>
|
|
11827
11818
|
</div>
|
|
11828
11819
|
}
|
|
@@ -12009,7 +12000,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.6", ngImpor
|
|
|
12009
12000
|
class="flex-1 text-sm bg-transparent focus:outline-none text-(--f-text-color) placeholder:text-(--f-form-field-placeholder-color)"
|
|
12010
12001
|
placeholder="Search..."
|
|
12011
12002
|
[value]="filterText()"
|
|
12012
|
-
(input)="
|
|
12003
|
+
(input)="filterGlobal($any($event.target).value)"
|
|
12013
12004
|
/>
|
|
12014
12005
|
</div>
|
|
12015
12006
|
}
|
|
@@ -12370,7 +12361,7 @@ class TableComponent {
|
|
|
12370
12361
|
this.onLazyLoad.emit(this.buildLazyEvent(this.first(), this.rows()));
|
|
12371
12362
|
}
|
|
12372
12363
|
}
|
|
12373
|
-
|
|
12364
|
+
filterGlobal(v) {
|
|
12374
12365
|
this._filterText.set(v);
|
|
12375
12366
|
clearTimeout(this.filterInputTimeout);
|
|
12376
12367
|
this.filterInputTimeout = setTimeout(() => {
|
|
@@ -12380,9 +12371,6 @@ class TableComponent {
|
|
|
12380
12371
|
}
|
|
12381
12372
|
}, this.filterDelay());
|
|
12382
12373
|
}
|
|
12383
|
-
filterGlobal(value) {
|
|
12384
|
-
this.onFilterInput(value);
|
|
12385
|
-
}
|
|
12386
12374
|
filter(value, field, matchMode = 'contains') {
|
|
12387
12375
|
clearTimeout(this.filterInputTimeout);
|
|
12388
12376
|
this.filterInputTimeout = setTimeout(() => this.applyFilter(value, field, matchMode), this.filterDelay());
|
|
@@ -12694,7 +12682,7 @@ class TableComponent {
|
|
|
12694
12682
|
class="flex-1 text-sm bg-transparent focus:outline-none text-(--f-text-color) placeholder:text-(--f-form-field-placeholder-color)"
|
|
12695
12683
|
placeholder="Search..."
|
|
12696
12684
|
[value]="filterText()"
|
|
12697
|
-
(input)="
|
|
12685
|
+
(input)="filterGlobal($any($event.target).value)"
|
|
12698
12686
|
/>
|
|
12699
12687
|
</div>
|
|
12700
12688
|
}
|
|
@@ -12900,7 +12888,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.6", ngImpor
|
|
|
12900
12888
|
class="flex-1 text-sm bg-transparent focus:outline-none text-(--f-text-color) placeholder:text-(--f-form-field-placeholder-color)"
|
|
12901
12889
|
placeholder="Search..."
|
|
12902
12890
|
[value]="filterText()"
|
|
12903
|
-
(input)="
|
|
12891
|
+
(input)="filterGlobal($any($event.target).value)"
|
|
12904
12892
|
/>
|
|
12905
12893
|
</div>
|
|
12906
12894
|
}
|
|
@@ -22817,9 +22805,6 @@ class TreeComponent {
|
|
|
22817
22805
|
}
|
|
22818
22806
|
this.clearDragState();
|
|
22819
22807
|
}
|
|
22820
|
-
onDragEnd() {
|
|
22821
|
-
this.clearDragState();
|
|
22822
|
-
}
|
|
22823
22808
|
clearDragState() {
|
|
22824
22809
|
this._dragKey.set(null);
|
|
22825
22810
|
this._dropTargetKey.set(null);
|
|
@@ -22999,7 +22984,7 @@ class TreeComponent {
|
|
|
22999
22984
|
(dragover)="onDragOver($event, row)"
|
|
23000
22985
|
(dragleave)="onDragLeave($event, row)"
|
|
23001
22986
|
(drop)="onDrop($event, row)"
|
|
23002
|
-
(dragend)="
|
|
22987
|
+
(dragend)="clearDragState()"
|
|
23003
22988
|
>
|
|
23004
22989
|
@if (!row.leaf) {
|
|
23005
22990
|
<button type="button" class="inline-flex items-center justify-center w-5 h-5 rounded-md hover:bg-(--f-content-hover-background) shrink-0 cursor-pointer" (click)="toggleExpand($event, row.key)">
|
|
@@ -23112,7 +23097,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.6", ngImpor
|
|
|
23112
23097
|
(dragover)="onDragOver($event, row)"
|
|
23113
23098
|
(dragleave)="onDragLeave($event, row)"
|
|
23114
23099
|
(drop)="onDrop($event, row)"
|
|
23115
|
-
(dragend)="
|
|
23100
|
+
(dragend)="clearDragState()"
|
|
23116
23101
|
>
|
|
23117
23102
|
@if (!row.leaf) {
|
|
23118
23103
|
<button type="button" class="inline-flex items-center justify-center w-5 h-5 rounded-md hover:bg-(--f-content-hover-background) shrink-0 cursor-pointer" (click)="toggleExpand($event, row.key)">
|
|
@@ -23646,7 +23631,6 @@ class CarouselComponent {
|
|
|
23646
23631
|
else if (this.circular())
|
|
23647
23632
|
this.setPage(0);
|
|
23648
23633
|
}
|
|
23649
|
-
goToPage(i) { this.setPage(i); }
|
|
23650
23634
|
onKeydown(event) {
|
|
23651
23635
|
const forwardKey = this.isVertical() ? 'ArrowDown' : 'ArrowRight';
|
|
23652
23636
|
const backwardKey = this.isVertical() ? 'ArrowUp' : 'ArrowLeft';
|
|
@@ -23670,7 +23654,7 @@ class CarouselComponent {
|
|
|
23670
23654
|
if (!button || !li?.parentElement)
|
|
23671
23655
|
return;
|
|
23672
23656
|
const index = Array.from(li.parentElement.children).indexOf(sibling);
|
|
23673
|
-
this.
|
|
23657
|
+
this.setPage(index);
|
|
23674
23658
|
button.focus();
|
|
23675
23659
|
}
|
|
23676
23660
|
onTouchStart(event) {
|
|
@@ -23777,7 +23761,7 @@ class CarouselComponent {
|
|
|
23777
23761
|
[tabindex]="i === page() ? 0 : -1"
|
|
23778
23762
|
class="w-2 h-2 rounded-full transition-colors cursor-pointer"
|
|
23779
23763
|
[class]="i === page() ? 'bg-primary' : 'bg-(--f-content-border-color)'"
|
|
23780
|
-
(click)="
|
|
23764
|
+
(click)="setPage(i)"
|
|
23781
23765
|
></button>
|
|
23782
23766
|
</li>
|
|
23783
23767
|
}
|
|
@@ -23870,7 +23854,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.6", ngImpor
|
|
|
23870
23854
|
[tabindex]="i === page() ? 0 : -1"
|
|
23871
23855
|
class="w-2 h-2 rounded-full transition-colors cursor-pointer"
|
|
23872
23856
|
[class]="i === page() ? 'bg-primary' : 'bg-(--f-content-border-color)'"
|
|
23873
|
-
(click)="
|
|
23857
|
+
(click)="setPage(i)"
|
|
23874
23858
|
></button>
|
|
23875
23859
|
</li>
|
|
23876
23860
|
}
|
|
@@ -23982,9 +23966,6 @@ class ScrollPanelComponent {
|
|
|
23982
23966
|
clientHeight: el.clientHeight,
|
|
23983
23967
|
});
|
|
23984
23968
|
}
|
|
23985
|
-
refresh() {
|
|
23986
|
-
this.updateBars();
|
|
23987
|
-
}
|
|
23988
23969
|
scrollTop(value) {
|
|
23989
23970
|
const el = this.contentRef()?.nativeElement;
|
|
23990
23971
|
if (!el)
|
|
@@ -24529,8 +24510,6 @@ class PickListComponent {
|
|
|
24529
24510
|
return next;
|
|
24530
24511
|
});
|
|
24531
24512
|
}
|
|
24532
|
-
toggleSourceSelect(item) { this.toggleSelect('source', item); }
|
|
24533
|
-
toggleTargetSelect(item) { this.toggleSelect('target', item); }
|
|
24534
24513
|
moveToTarget() {
|
|
24535
24514
|
const moving = [...this.sourceSelected()];
|
|
24536
24515
|
if (!moving.length)
|
|
@@ -24678,7 +24657,6 @@ class PickListComponent {
|
|
|
24678
24657
|
}
|
|
24679
24658
|
this.clearDragState();
|
|
24680
24659
|
}
|
|
24681
|
-
onDragEnd() { this.clearDragState(); }
|
|
24682
24660
|
clearDragState() {
|
|
24683
24661
|
this._dragItem.set(null);
|
|
24684
24662
|
this._dragZone.set(null);
|
|
@@ -24762,7 +24740,7 @@ class PickListComponent {
|
|
|
24762
24740
|
(dragover)="onDragOver($event, item, 'source')"
|
|
24763
24741
|
(dragleave)="onDragLeave($event, item)"
|
|
24764
24742
|
(drop)="onDrop($event, item, 'source')"
|
|
24765
|
-
(dragend)="
|
|
24743
|
+
(dragend)="clearDragState()"
|
|
24766
24744
|
>
|
|
24767
24745
|
@if (itemTpl()) {
|
|
24768
24746
|
<ng-container [ngTemplateOutlet]="itemTpl()" [ngTemplateOutletContext]="{ $implicit: item, index: i, selected: sourceSelected().has(item) }" />
|
|
@@ -24814,7 +24792,7 @@ class PickListComponent {
|
|
|
24814
24792
|
(dragover)="onDragOver($event, item, 'target')"
|
|
24815
24793
|
(dragleave)="onDragLeave($event, item)"
|
|
24816
24794
|
(drop)="onDrop($event, item, 'target')"
|
|
24817
|
-
(dragend)="
|
|
24795
|
+
(dragend)="clearDragState()"
|
|
24818
24796
|
>
|
|
24819
24797
|
@if (itemTpl()) {
|
|
24820
24798
|
<ng-container [ngTemplateOutlet]="itemTpl()" [ngTemplateOutletContext]="{ $implicit: item, index: i, selected: targetSelected().has(item) }" />
|
|
@@ -24869,7 +24847,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.6", ngImpor
|
|
|
24869
24847
|
(dragover)="onDragOver($event, item, 'source')"
|
|
24870
24848
|
(dragleave)="onDragLeave($event, item)"
|
|
24871
24849
|
(drop)="onDrop($event, item, 'source')"
|
|
24872
|
-
(dragend)="
|
|
24850
|
+
(dragend)="clearDragState()"
|
|
24873
24851
|
>
|
|
24874
24852
|
@if (itemTpl()) {
|
|
24875
24853
|
<ng-container [ngTemplateOutlet]="itemTpl()" [ngTemplateOutletContext]="{ $implicit: item, index: i, selected: sourceSelected().has(item) }" />
|
|
@@ -24921,7 +24899,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.6", ngImpor
|
|
|
24921
24899
|
(dragover)="onDragOver($event, item, 'target')"
|
|
24922
24900
|
(dragleave)="onDragLeave($event, item)"
|
|
24923
24901
|
(drop)="onDrop($event, item, 'target')"
|
|
24924
|
-
(dragend)="
|
|
24902
|
+
(dragend)="clearDragState()"
|
|
24925
24903
|
>
|
|
24926
24904
|
@if (itemTpl()) {
|
|
24927
24905
|
<ng-container [ngTemplateOutlet]="itemTpl()" [ngTemplateOutletContext]="{ $implicit: item, index: i, selected: targetSelected().has(item) }" />
|
|
@@ -25196,7 +25174,6 @@ class OrderListComponent {
|
|
|
25196
25174
|
}
|
|
25197
25175
|
this.clearDragState();
|
|
25198
25176
|
}
|
|
25199
|
-
onDragEnd() { this.clearDragState(); }
|
|
25200
25177
|
clearDragState() {
|
|
25201
25178
|
this._dragItem.set(null);
|
|
25202
25179
|
this._dropTarget.set(null);
|
|
@@ -25247,7 +25224,7 @@ class OrderListComponent {
|
|
|
25247
25224
|
(dragover)="onDragOver($event, item)"
|
|
25248
25225
|
(dragleave)="onDragLeave($event, item)"
|
|
25249
25226
|
(drop)="onDrop($event, item)"
|
|
25250
|
-
(dragend)="
|
|
25227
|
+
(dragend)="clearDragState()"
|
|
25251
25228
|
>
|
|
25252
25229
|
@if (itemTpl()) {
|
|
25253
25230
|
<ng-container [ngTemplateOutlet]="itemTpl()" [ngTemplateOutletContext]="{ $implicit: item, index: i, selected: isSelected(item) }" />
|
|
@@ -25326,7 +25303,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.6", ngImpor
|
|
|
25326
25303
|
(dragover)="onDragOver($event, item)"
|
|
25327
25304
|
(dragleave)="onDragLeave($event, item)"
|
|
25328
25305
|
(drop)="onDrop($event, item)"
|
|
25329
|
-
(dragend)="
|
|
25306
|
+
(dragend)="clearDragState()"
|
|
25330
25307
|
>
|
|
25331
25308
|
@if (itemTpl()) {
|
|
25332
25309
|
<ng-container [ngTemplateOutlet]="itemTpl()" [ngTemplateOutletContext]="{ $implicit: item, index: i, selected: isSelected(item) }" />
|
|
@@ -25466,9 +25443,6 @@ class GalleriaComponent {
|
|
|
25466
25443
|
else if (this.circular())
|
|
25467
25444
|
this.setIndex(len - 1);
|
|
25468
25445
|
}
|
|
25469
|
-
selectIndex(i) {
|
|
25470
|
-
this.setIndex(i);
|
|
25471
|
-
}
|
|
25472
25446
|
onKeydown(event) {
|
|
25473
25447
|
if (event.key === 'ArrowRight') {
|
|
25474
25448
|
event.preventDefault();
|
|
@@ -25578,7 +25552,7 @@ class GalleriaComponent {
|
|
|
25578
25552
|
[attr.aria-selected]="i === activeIndex()"
|
|
25579
25553
|
class="w-2 h-2 rounded-full transition-colors cursor-pointer"
|
|
25580
25554
|
[class]="i === activeIndex() ? 'bg-white' : 'bg-white/40'"
|
|
25581
|
-
(click)="
|
|
25555
|
+
(click)="setIndex(i)"
|
|
25582
25556
|
></button>
|
|
25583
25557
|
}
|
|
25584
25558
|
</div>
|
|
@@ -25639,7 +25613,7 @@ class GalleriaComponent {
|
|
|
25639
25613
|
[attr.aria-current]="
|
|
25640
25614
|
$index === activeIndex() ? 'true' : null
|
|
25641
25615
|
"
|
|
25642
|
-
(click)="
|
|
25616
|
+
(click)="setIndex($index)"
|
|
25643
25617
|
>
|
|
25644
25618
|
@if (thumbnailTpl()) {
|
|
25645
25619
|
<ng-container
|
|
@@ -25760,7 +25734,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.6", ngImpor
|
|
|
25760
25734
|
[attr.aria-selected]="i === activeIndex()"
|
|
25761
25735
|
class="w-2 h-2 rounded-full transition-colors cursor-pointer"
|
|
25762
25736
|
[class]="i === activeIndex() ? 'bg-white' : 'bg-white/40'"
|
|
25763
|
-
(click)="
|
|
25737
|
+
(click)="setIndex(i)"
|
|
25764
25738
|
></button>
|
|
25765
25739
|
}
|
|
25766
25740
|
</div>
|
|
@@ -25821,7 +25795,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.6", ngImpor
|
|
|
25821
25795
|
[attr.aria-current]="
|
|
25822
25796
|
$index === activeIndex() ? 'true' : null
|
|
25823
25797
|
"
|
|
25824
|
-
(click)="
|
|
25798
|
+
(click)="setIndex($index)"
|
|
25825
25799
|
>
|
|
25826
25800
|
@if (thumbnailTpl()) {
|
|
25827
25801
|
<ng-container
|