@anguless/angulux 22.0.0-rc.0 → 22.2.0
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/README.md +291 -0
- package/fesm2022/anguless-angulux-api.mjs +40 -82
- package/fesm2022/anguless-angulux-api.mjs.map +1 -1
- package/fesm2022/anguless-angulux-autofocus.mjs +7 -7
- package/fesm2022/anguless-angulux-avatar.mjs +10 -10
- package/fesm2022/anguless-angulux-avatargroup.mjs +10 -10
- package/fesm2022/anguless-angulux-badge.mjs +13 -13
- package/fesm2022/anguless-angulux-base.mjs +3 -3
- package/fesm2022/anguless-angulux-basecomponent.mjs +6 -6
- package/fesm2022/anguless-angulux-baseeditableholder.mjs +3 -3
- package/fesm2022/anguless-angulux-baseinput.mjs +3 -3
- package/fesm2022/anguless-angulux-basemodelholder.mjs +3 -3
- package/fesm2022/anguless-angulux-bind.mjs +7 -7
- package/fesm2022/anguless-angulux-button.mjs +43 -74
- package/fesm2022/anguless-angulux-button.mjs.map +1 -1
- package/fesm2022/anguless-angulux-card.mjs +42 -102
- package/fesm2022/anguless-angulux-card.mjs.map +1 -1
- package/fesm2022/anguless-angulux-chart.mjs +10 -10
- package/fesm2022/anguless-angulux-checkbox.mjs +18 -38
- package/fesm2022/anguless-angulux-checkbox.mjs.map +1 -1
- package/fesm2022/anguless-angulux-chip.mjs +20 -40
- package/fesm2022/anguless-angulux-chip.mjs.map +1 -1
- package/fesm2022/anguless-angulux-colorpicker.mjs +10 -10
- package/fesm2022/anguless-angulux-config.mjs +6 -6
- package/fesm2022/anguless-angulux-confirmdialog.mjs +52 -117
- package/fesm2022/anguless-angulux-confirmdialog.mjs.map +1 -1
- package/fesm2022/anguless-angulux-datepicker.mjs +104 -212
- package/fesm2022/anguless-angulux-datepicker.mjs.map +1 -1
- package/fesm2022/anguless-angulux-dialog.mjs +50 -114
- package/fesm2022/anguless-angulux-dialog.mjs.map +1 -1
- package/fesm2022/anguless-angulux-divider.mjs +10 -10
- package/fesm2022/anguless-angulux-dom.mjs +7 -0
- package/fesm2022/anguless-angulux-dom.mjs.map +1 -1
- package/fesm2022/anguless-angulux-drawer.mjs +34 -82
- package/fesm2022/anguless-angulux-drawer.mjs.map +1 -1
- package/fesm2022/anguless-angulux-fileupload.mjs +83 -159
- package/fesm2022/anguless-angulux-fileupload.mjs.map +1 -1
- package/fesm2022/anguless-angulux-fluid.mjs +10 -10
- package/fesm2022/anguless-angulux-focustrap.mjs +7 -7
- package/fesm2022/anguless-angulux-iconfield.mjs +10 -10
- package/fesm2022/anguless-angulux-icons-angledoubledown.mjs +3 -3
- package/fesm2022/anguless-angulux-icons-angledoubleleft.mjs +3 -3
- package/fesm2022/anguless-angulux-icons-angledoubleright.mjs +3 -3
- package/fesm2022/anguless-angulux-icons-angledoubleup.mjs +3 -3
- package/fesm2022/anguless-angulux-icons-angledown.mjs +3 -3
- package/fesm2022/anguless-angulux-icons-angleleft.mjs +3 -3
- package/fesm2022/anguless-angulux-icons-angleright.mjs +3 -3
- package/fesm2022/anguless-angulux-icons-angleup.mjs +3 -3
- package/fesm2022/anguless-angulux-icons-arrowdown.mjs +3 -3
- package/fesm2022/anguless-angulux-icons-arrowdownleft.mjs +3 -3
- package/fesm2022/anguless-angulux-icons-arrowdownright.mjs +3 -3
- package/fesm2022/anguless-angulux-icons-arrowleft.mjs +3 -3
- package/fesm2022/anguless-angulux-icons-arrowright.mjs +3 -3
- package/fesm2022/anguless-angulux-icons-arrowup.mjs +3 -3
- package/fesm2022/anguless-angulux-icons-ban.mjs +3 -3
- package/fesm2022/anguless-angulux-icons-bars.mjs +3 -3
- package/fesm2022/anguless-angulux-icons-baseicon.mjs +6 -6
- package/fesm2022/anguless-angulux-icons-blank.mjs +3 -3
- package/fesm2022/anguless-angulux-icons-calendar.mjs +3 -3
- package/fesm2022/anguless-angulux-icons-caretleft.mjs +3 -3
- package/fesm2022/anguless-angulux-icons-caretright.mjs +3 -3
- package/fesm2022/anguless-angulux-icons-check.mjs +3 -3
- package/fesm2022/anguless-angulux-icons-chevrondown.mjs +3 -3
- package/fesm2022/anguless-angulux-icons-chevronleft.mjs +3 -3
- package/fesm2022/anguless-angulux-icons-chevronright.mjs +3 -3
- package/fesm2022/anguless-angulux-icons-chevronup.mjs +3 -3
- package/fesm2022/anguless-angulux-icons-exclamationtriangle.mjs +3 -3
- package/fesm2022/anguless-angulux-icons-eye.mjs +3 -3
- package/fesm2022/anguless-angulux-icons-eyeslash.mjs +3 -3
- package/fesm2022/anguless-angulux-icons-filter.mjs +3 -3
- package/fesm2022/anguless-angulux-icons-filterfill.mjs +3 -3
- package/fesm2022/anguless-angulux-icons-filterslash.mjs +3 -3
- package/fesm2022/anguless-angulux-icons-home.mjs +3 -3
- package/fesm2022/anguless-angulux-icons-infocircle.mjs +3 -3
- package/fesm2022/anguless-angulux-icons-minus.mjs +3 -3
- package/fesm2022/anguless-angulux-icons-pencil.mjs +3 -3
- package/fesm2022/anguless-angulux-icons-plus.mjs +3 -3
- package/fesm2022/anguless-angulux-icons-refresh.mjs +3 -3
- package/fesm2022/anguless-angulux-icons-search.mjs +3 -3
- package/fesm2022/anguless-angulux-icons-searchminus.mjs +3 -3
- package/fesm2022/anguless-angulux-icons-searchplus.mjs +3 -3
- package/fesm2022/anguless-angulux-icons-sortalt.mjs +3 -3
- package/fesm2022/anguless-angulux-icons-sortamountdown.mjs +3 -3
- package/fesm2022/anguless-angulux-icons-sortamountupalt.mjs +3 -3
- package/fesm2022/anguless-angulux-icons-spinner.mjs +3 -3
- package/fesm2022/anguless-angulux-icons-star.mjs +3 -3
- package/fesm2022/anguless-angulux-icons-starfill.mjs +3 -3
- package/fesm2022/anguless-angulux-icons-thlarge.mjs +3 -3
- package/fesm2022/anguless-angulux-icons-times.mjs +3 -3
- package/fesm2022/anguless-angulux-icons-timescircle.mjs +3 -3
- package/fesm2022/anguless-angulux-icons-trash.mjs +3 -3
- package/fesm2022/anguless-angulux-icons-undo.mjs +3 -3
- package/fesm2022/anguless-angulux-icons-upload.mjs +3 -3
- package/fesm2022/anguless-angulux-icons-windowmaximize.mjs +3 -3
- package/fesm2022/anguless-angulux-icons-windowminimize.mjs +3 -3
- package/fesm2022/anguless-angulux-inputicon.mjs +10 -10
- package/fesm2022/anguless-angulux-inputnumber.mjs +38 -69
- package/fesm2022/anguless-angulux-inputnumber.mjs.map +1 -1
- package/fesm2022/anguless-angulux-inputtext.mjs +10 -10
- package/fesm2022/anguless-angulux-menu.mjs +44 -90
- package/fesm2022/anguless-angulux-menu.mjs.map +1 -1
- package/fesm2022/anguless-angulux-message.mjs +30 -61
- package/fesm2022/anguless-angulux-message.mjs.map +1 -1
- package/fesm2022/anguless-angulux-motion.mjs +13 -13
- package/fesm2022/anguless-angulux-multiselect.mjs +103 -248
- package/fesm2022/anguless-angulux-multiselect.mjs.map +1 -1
- package/fesm2022/anguless-angulux-overlay.mjs +18 -39
- package/fesm2022/anguless-angulux-overlay.mjs.map +1 -1
- package/fesm2022/anguless-angulux-paginator.mjs +57 -103
- package/fesm2022/anguless-angulux-paginator.mjs.map +1 -1
- package/fesm2022/anguless-angulux-password.mjs +49 -104
- package/fesm2022/anguless-angulux-password.mjs.map +1 -1
- package/fesm2022/anguless-angulux-popover.mjs +16 -33
- package/fesm2022/anguless-angulux-popover.mjs.map +1 -1
- package/fesm2022/anguless-angulux-progressbar.mjs +18 -37
- package/fesm2022/anguless-angulux-progressbar.mjs.map +1 -1
- package/fesm2022/anguless-angulux-progressspinner.mjs +10 -10
- package/fesm2022/anguless-angulux-radiobutton.mjs +13 -13
- package/fesm2022/anguless-angulux-ripple.mjs +10 -10
- package/fesm2022/anguless-angulux-scroller.mjs +36 -77
- package/fesm2022/anguless-angulux-scroller.mjs.map +1 -1
- package/fesm2022/anguless-angulux-select.mjs +85 -225
- package/fesm2022/anguless-angulux-select.mjs.map +1 -1
- package/fesm2022/anguless-angulux-selectbutton.mjs +18 -35
- package/fesm2022/anguless-angulux-selectbutton.mjs.map +1 -1
- package/fesm2022/anguless-angulux-skeleton.mjs +10 -10
- package/fesm2022/anguless-angulux-splitbutton.mjs +23 -50
- package/fesm2022/anguless-angulux-splitbutton.mjs.map +1 -1
- package/fesm2022/anguless-angulux-table.mjs +332 -638
- package/fesm2022/anguless-angulux-table.mjs.map +1 -1
- package/fesm2022/anguless-angulux-tabs.mjs +47 -71
- package/fesm2022/anguless-angulux-tabs.mjs.map +1 -1
- package/fesm2022/anguless-angulux-tag.mjs +20 -37
- package/fesm2022/anguless-angulux-tag.mjs.map +1 -1
- package/fesm2022/anguless-angulux-textarea.mjs +10 -10
- package/fesm2022/anguless-angulux-tieredmenu.mjs +28 -55
- package/fesm2022/anguless-angulux-tieredmenu.mjs.map +1 -1
- package/fesm2022/anguless-angulux-timeline.mjs +24 -55
- package/fesm2022/anguless-angulux-timeline.mjs.map +1 -1
- package/fesm2022/anguless-angulux-toast.mjs +24 -49
- package/fesm2022/anguless-angulux-toast.mjs.map +1 -1
- package/fesm2022/anguless-angulux-togglebutton.mjs +23 -50
- package/fesm2022/anguless-angulux-togglebutton.mjs.map +1 -1
- package/fesm2022/anguless-angulux-toggleswitch.mjs +18 -38
- package/fesm2022/anguless-angulux-toggleswitch.mjs.map +1 -1
- package/fesm2022/anguless-angulux-tooltip.mjs +10 -10
- package/fesm2022/anguless-angulux-treetable.mjs +229 -428
- package/fesm2022/anguless-angulux-treetable.mjs.map +1 -1
- package/fesm2022/anguless-angulux-usestyle.mjs +3 -3
- package/package.json +6 -6
- package/types/anguless-angulux-api.d.ts +17 -21
- package/types/anguless-angulux-button.d.ts +6 -12
- package/types/anguless-angulux-card.d.ts +8 -17
- package/types/anguless-angulux-checkbox.d.ts +4 -8
- package/types/anguless-angulux-chip.d.ts +4 -8
- package/types/anguless-angulux-confirmdialog.d.ts +19 -29
- package/types/anguless-angulux-datepicker.d.ts +27 -42
- package/types/anguless-angulux-dialog.d.ts +10 -20
- package/types/anguless-angulux-drawer.d.ts +8 -16
- package/types/anguless-angulux-fileupload.d.ts +27 -38
- package/types/anguless-angulux-inputnumber.d.ts +6 -12
- package/types/anguless-angulux-menu.d.ts +27 -39
- package/types/anguless-angulux-message.d.ts +6 -12
- package/types/anguless-angulux-multiselect.d.ts +20 -41
- package/types/anguless-angulux-overlay.d.ts +4 -7
- package/types/anguless-angulux-paginator.d.ts +17 -25
- package/types/anguless-angulux-password.d.ts +30 -38
- package/types/anguless-angulux-popover.d.ts +4 -7
- package/types/anguless-angulux-progressbar.d.ts +4 -8
- package/types/anguless-angulux-scroller.d.ts +7 -13
- package/types/anguless-angulux-select.d.ts +16 -49
- package/types/anguless-angulux-selectbutton.d.ts +4 -8
- package/types/anguless-angulux-splitbutton.d.ts +17 -21
- package/types/anguless-angulux-table.d.ts +42 -93
- package/types/anguless-angulux-tabs.d.ts +4 -9
- package/types/anguless-angulux-tag.d.ts +4 -8
- package/types/anguless-angulux-tieredmenu.d.ts +5 -9
- package/types/anguless-angulux-timeline.d.ts +5 -11
- package/types/anguless-angulux-toast.d.ts +22 -26
- package/types/anguless-angulux-togglebutton.d.ts +5 -11
- package/types/anguless-angulux-toggleswitch.d.ts +4 -8
- package/types/anguless-angulux-treetable.d.ts +40 -62
|
@@ -2,9 +2,9 @@ export * from '@anguless/angulux/types/scroller';
|
|
|
2
2
|
import * as i2 from '@angular/common';
|
|
3
3
|
import { isPlatformBrowser, CommonModule } from '@angular/common';
|
|
4
4
|
import * as i0 from '@angular/core';
|
|
5
|
-
import { Injectable, InjectionToken, inject, EventEmitter,
|
|
5
|
+
import { Injectable, InjectionToken, inject, EventEmitter, contentChild, HostBinding, ViewChild, Output, Input, ViewEncapsulation, ChangeDetectionStrategy, Component, NgModule } from '@angular/core';
|
|
6
6
|
import { isVisible, getWidth, getHeight, findSingle, isTouchDevice } from '@anguless/angulux-utils';
|
|
7
|
-
import { SharedModule
|
|
7
|
+
import { SharedModule } from '@anguless/angulux/api';
|
|
8
8
|
import { BaseComponent, PARENT_INSTANCE } from '@anguless/angulux/basecomponent';
|
|
9
9
|
import * as i1 from '@anguless/angulux/bind';
|
|
10
10
|
import { Bind } from '@anguless/angulux/bind';
|
|
@@ -84,7 +84,7 @@ const classes = {
|
|
|
84
84
|
loader: ({ instance }) => [
|
|
85
85
|
'p-virtualscroller-loader',
|
|
86
86
|
{
|
|
87
|
-
'p-virtualscroller-loader-mask': !instance.loaderTemplate
|
|
87
|
+
'p-virtualscroller-loader-mask': !instance.loaderTemplate()
|
|
88
88
|
}
|
|
89
89
|
],
|
|
90
90
|
loadingIcon: 'p-virtualscroller-loading-icon'
|
|
@@ -93,10 +93,10 @@ class ScrollerStyle extends BaseStyle {
|
|
|
93
93
|
name = 'virtualscroller';
|
|
94
94
|
css = css;
|
|
95
95
|
classes = classes;
|
|
96
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.
|
|
97
|
-
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "22.
|
|
96
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.1", ngImport: i0, type: ScrollerStyle, deps: null, target: i0.ɵɵFactoryTarget.Injectable });
|
|
97
|
+
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "22.1.1", ngImport: i0, type: ScrollerStyle });
|
|
98
98
|
}
|
|
99
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.
|
|
99
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.1", ngImport: i0, type: ScrollerStyle, decorators: [{
|
|
100
100
|
type: Injectable
|
|
101
101
|
}] });
|
|
102
102
|
/**
|
|
@@ -450,33 +450,28 @@ class Scroller extends BaseComponent {
|
|
|
450
450
|
* @see {@link ScrollerContentTemplateContext}
|
|
451
451
|
* @group Templates
|
|
452
452
|
*/
|
|
453
|
-
contentTemplate;
|
|
453
|
+
contentTemplate = contentChild('content', { ...(ngDevMode ? { debugName: "contentTemplate" } : /* istanbul ignore next */ {}), descendants: false });
|
|
454
454
|
/**
|
|
455
455
|
* Item template of the component.
|
|
456
456
|
* @param {ScrollerItemTemplateContext} context - item context.
|
|
457
457
|
* @see {@link ScrollerItemTemplateContext}
|
|
458
458
|
* @group Templates
|
|
459
459
|
*/
|
|
460
|
-
itemTemplate;
|
|
460
|
+
itemTemplate = contentChild('item', { ...(ngDevMode ? { debugName: "itemTemplate" } : /* istanbul ignore next */ {}), descendants: false });
|
|
461
461
|
/**
|
|
462
462
|
* Loader template of the component.
|
|
463
463
|
* @param {ScrollerLoaderTemplateContext} context - loader context.
|
|
464
464
|
* @see {@link ScrollerLoaderTemplateContext}
|
|
465
465
|
* @group Templates
|
|
466
466
|
*/
|
|
467
|
-
loaderTemplate;
|
|
467
|
+
loaderTemplate = contentChild('loader', { ...(ngDevMode ? { debugName: "loaderTemplate" } : /* istanbul ignore next */ {}), descendants: false });
|
|
468
468
|
/**
|
|
469
469
|
* Loader icon template of the component.
|
|
470
470
|
* @param {ScrollerLoaderIconTemplateContext} context - loader icon context.
|
|
471
471
|
* @see {@link ScrollerLoaderIconTemplateContext}
|
|
472
472
|
* @group Templates
|
|
473
473
|
*/
|
|
474
|
-
loaderIconTemplate;
|
|
475
|
-
templates;
|
|
476
|
-
_contentTemplate;
|
|
477
|
-
_itemTemplate;
|
|
478
|
-
_loaderTemplate;
|
|
479
|
-
_loaderIconTemplate;
|
|
474
|
+
loaderIconTemplate = contentChild('loadericon', { ...(ngDevMode ? { debugName: "loaderIconTemplate" } : /* istanbul ignore next */ {}), descendants: false });
|
|
480
475
|
first = 0;
|
|
481
476
|
last = 0;
|
|
482
477
|
page = 0;
|
|
@@ -588,27 +583,6 @@ class Scroller extends BaseComponent {
|
|
|
588
583
|
}
|
|
589
584
|
}
|
|
590
585
|
}
|
|
591
|
-
onAfterContentInit() {
|
|
592
|
-
this.templates.forEach((item) => {
|
|
593
|
-
switch (item.getType()) {
|
|
594
|
-
case 'content':
|
|
595
|
-
this._contentTemplate = item.template;
|
|
596
|
-
break;
|
|
597
|
-
case 'item':
|
|
598
|
-
this._itemTemplate = item.template;
|
|
599
|
-
break;
|
|
600
|
-
case 'loader':
|
|
601
|
-
this._loaderTemplate = item.template;
|
|
602
|
-
break;
|
|
603
|
-
case 'loadericon':
|
|
604
|
-
this._loaderIconTemplate = item.template;
|
|
605
|
-
break;
|
|
606
|
-
default:
|
|
607
|
-
this._itemTemplate = item.template;
|
|
608
|
-
break;
|
|
609
|
-
}
|
|
610
|
-
});
|
|
611
|
-
}
|
|
612
586
|
onAfterViewInit() {
|
|
613
587
|
Promise.resolve().then(() => {
|
|
614
588
|
this.viewInit();
|
|
@@ -1118,27 +1092,27 @@ class Scroller extends BaseComponent {
|
|
|
1118
1092
|
...extOptions
|
|
1119
1093
|
};
|
|
1120
1094
|
}
|
|
1121
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.
|
|
1122
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "
|
|
1095
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.1", ngImport: i0, type: Scroller, deps: [{ token: i0.NgZone }], target: i0.ɵɵFactoryTarget.Component });
|
|
1096
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.2.0", version: "22.1.1", type: Scroller, isStandalone: true, selector: "agl-scroller, agl-virtualscroller, agl-virtual-scroller, agl-virtualScroller", inputs: { hostName: "hostName", id: "id", style: "style", styleClass: "styleClass", tabindex: "tabindex", items: "items", itemSize: "itemSize", scrollHeight: "scrollHeight", scrollWidth: "scrollWidth", orientation: "orientation", step: "step", delay: "delay", resizeDelay: "resizeDelay", appendOnly: "appendOnly", inline: "inline", lazy: "lazy", disabled: "disabled", loaderDisabled: "loaderDisabled", columns: "columns", showSpacer: "showSpacer", showLoader: "showLoader", numToleratedItems: "numToleratedItems", loading: "loading", autoSize: "autoSize", trackBy: "trackBy", options: "options" }, outputs: { onLazyLoad: "onLazyLoad", onScroll: "onScroll", onScrollIndexChange: "onScrollIndexChange" }, host: { properties: { "style.height": "this.height" } }, providers: [ScrollerStyle, { provide: SCROLLER_INSTANCE, useExisting: Scroller }, { provide: PARENT_INSTANCE, useExisting: Scroller }], queries: [{ propertyName: "contentTemplate", first: true, predicate: ["content"], isSignal: true }, { propertyName: "itemTemplate", first: true, predicate: ["item"], isSignal: true }, { propertyName: "loaderTemplate", first: true, predicate: ["loader"], isSignal: true }, { propertyName: "loaderIconTemplate", first: true, predicate: ["loadericon"], isSignal: true }], viewQueries: [{ propertyName: "elementViewChild", first: true, predicate: ["element"], descendants: true }, { propertyName: "contentViewChild", first: true, predicate: ["content"], descendants: true }], usesInheritance: true, hostDirectives: [{ directive: i1.Bind }], ngImport: i0, template: `
|
|
1123
1097
|
<ng-container *ngIf="!_disabled; else disabledContainer">
|
|
1124
1098
|
<div #element [attr.id]="_id" [attr.tabindex]="tabindex" [ngStyle]="_style" [class]="cn(cx('root'), styleClass)" (scroll)="onContainerScroll($event)" [aglBind]="ptm('root')">
|
|
1125
|
-
<ng-container *ngIf="contentTemplate
|
|
1126
|
-
<ng-container *ngTemplateOutlet="contentTemplate
|
|
1099
|
+
<ng-container *ngIf="contentTemplate(); else buildInContent">
|
|
1100
|
+
<ng-container *ngTemplateOutlet="contentTemplate(); context: { $implicit: loadedItems, options: getContentOptions() }"></ng-container>
|
|
1127
1101
|
</ng-container>
|
|
1128
1102
|
<ng-template #buildInContent>
|
|
1129
1103
|
<div #content [class]="cn(cx('content'), contentStyleClass)" [style]="contentStyle" [aglBind]="ptm('content')">
|
|
1130
1104
|
<ng-container *ngFor="let item of loadedItems; let index = index; trackBy: _trackBy">
|
|
1131
|
-
<ng-container *ngTemplateOutlet="itemTemplate
|
|
1105
|
+
<ng-container *ngTemplateOutlet="itemTemplate(); context: { $implicit: item, options: getOptions(index) }"></ng-container>
|
|
1132
1106
|
</ng-container>
|
|
1133
1107
|
</div>
|
|
1134
1108
|
</ng-template>
|
|
1135
1109
|
<div *ngIf="_showSpacer" [class]="cx('spacer')" [ngStyle]="spacerStyle" [aglBind]="ptm('spacer')"></div>
|
|
1136
1110
|
<div *ngIf="!loaderDisabled && _showLoader && d_loading" [class]="cx('loader')" [aglBind]="ptm('loader')">
|
|
1137
|
-
<ng-container *ngIf="loaderTemplate
|
|
1111
|
+
<ng-container *ngIf="loaderTemplate(); else buildInLoader">
|
|
1138
1112
|
<ng-container *ngFor="let item of loaderArr; let index = index">
|
|
1139
1113
|
<ng-container
|
|
1140
1114
|
*ngTemplateOutlet="
|
|
1141
|
-
loaderTemplate
|
|
1115
|
+
loaderTemplate();
|
|
1142
1116
|
context: {
|
|
1143
1117
|
options: getLoaderOptions(index, both && { numCols: numItemsInViewport.cols })
|
|
1144
1118
|
}
|
|
@@ -1147,8 +1121,8 @@ class Scroller extends BaseComponent {
|
|
|
1147
1121
|
</ng-container>
|
|
1148
1122
|
</ng-container>
|
|
1149
1123
|
<ng-template #buildInLoader>
|
|
1150
|
-
<ng-container *ngIf="loaderIconTemplate
|
|
1151
|
-
<ng-container *ngTemplateOutlet="loaderIconTemplate
|
|
1124
|
+
<ng-container *ngIf="loaderIconTemplate(); else buildInLoaderIcon">
|
|
1125
|
+
<ng-container *ngTemplateOutlet="loaderIconTemplate(); context: { options: { styleClass: 'p-virtualscroller-loading-icon' } }"></ng-container>
|
|
1152
1126
|
</ng-container>
|
|
1153
1127
|
<ng-template #buildInLoaderIcon>
|
|
1154
1128
|
<svg data-p-icon="spinner" [class]="cx('loadingIcon')" [spin]="true" [aglBind]="ptm('loadingIcon')" />
|
|
@@ -1159,13 +1133,13 @@ class Scroller extends BaseComponent {
|
|
|
1159
1133
|
</ng-container>
|
|
1160
1134
|
<ng-template #disabledContainer>
|
|
1161
1135
|
<ng-content></ng-content>
|
|
1162
|
-
<ng-container *ngIf="contentTemplate
|
|
1163
|
-
<ng-container *ngTemplateOutlet="contentTemplate
|
|
1136
|
+
<ng-container *ngIf="contentTemplate()">
|
|
1137
|
+
<ng-container *ngTemplateOutlet="contentTemplate(); context: { $implicit: items, options: { rows: _items, columns: loadedColumns } }"></ng-container>
|
|
1164
1138
|
</ng-container>
|
|
1165
1139
|
</ng-template>
|
|
1166
1140
|
`, isInline: true, dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "directive", type: i2.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i2.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i2.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "directive", type: i2.NgStyle, selector: "[ngStyle]", inputs: ["ngStyle"] }, { kind: "component", type: SpinnerIcon, selector: "[data-p-icon=\"spinner\"]" }, { kind: "ngmodule", type: SharedModule }, { kind: "directive", type: Bind, selector: "[aglBind]", inputs: ["aglBind"] }], changeDetection: i0.ChangeDetectionStrategy.Eager, encapsulation: i0.ViewEncapsulation.None });
|
|
1167
1141
|
}
|
|
1168
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.
|
|
1142
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.1", ngImport: i0, type: Scroller, decorators: [{
|
|
1169
1143
|
type: Component,
|
|
1170
1144
|
args: [{
|
|
1171
1145
|
selector: 'agl-scroller, agl-virtualscroller, agl-virtual-scroller, agl-virtualScroller',
|
|
@@ -1174,23 +1148,23 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.8", ngImpor
|
|
|
1174
1148
|
template: `
|
|
1175
1149
|
<ng-container *ngIf="!_disabled; else disabledContainer">
|
|
1176
1150
|
<div #element [attr.id]="_id" [attr.tabindex]="tabindex" [ngStyle]="_style" [class]="cn(cx('root'), styleClass)" (scroll)="onContainerScroll($event)" [aglBind]="ptm('root')">
|
|
1177
|
-
<ng-container *ngIf="contentTemplate
|
|
1178
|
-
<ng-container *ngTemplateOutlet="contentTemplate
|
|
1151
|
+
<ng-container *ngIf="contentTemplate(); else buildInContent">
|
|
1152
|
+
<ng-container *ngTemplateOutlet="contentTemplate(); context: { $implicit: loadedItems, options: getContentOptions() }"></ng-container>
|
|
1179
1153
|
</ng-container>
|
|
1180
1154
|
<ng-template #buildInContent>
|
|
1181
1155
|
<div #content [class]="cn(cx('content'), contentStyleClass)" [style]="contentStyle" [aglBind]="ptm('content')">
|
|
1182
1156
|
<ng-container *ngFor="let item of loadedItems; let index = index; trackBy: _trackBy">
|
|
1183
|
-
<ng-container *ngTemplateOutlet="itemTemplate
|
|
1157
|
+
<ng-container *ngTemplateOutlet="itemTemplate(); context: { $implicit: item, options: getOptions(index) }"></ng-container>
|
|
1184
1158
|
</ng-container>
|
|
1185
1159
|
</div>
|
|
1186
1160
|
</ng-template>
|
|
1187
1161
|
<div *ngIf="_showSpacer" [class]="cx('spacer')" [ngStyle]="spacerStyle" [aglBind]="ptm('spacer')"></div>
|
|
1188
1162
|
<div *ngIf="!loaderDisabled && _showLoader && d_loading" [class]="cx('loader')" [aglBind]="ptm('loader')">
|
|
1189
|
-
<ng-container *ngIf="loaderTemplate
|
|
1163
|
+
<ng-container *ngIf="loaderTemplate(); else buildInLoader">
|
|
1190
1164
|
<ng-container *ngFor="let item of loaderArr; let index = index">
|
|
1191
1165
|
<ng-container
|
|
1192
1166
|
*ngTemplateOutlet="
|
|
1193
|
-
loaderTemplate
|
|
1167
|
+
loaderTemplate();
|
|
1194
1168
|
context: {
|
|
1195
1169
|
options: getLoaderOptions(index, both && { numCols: numItemsInViewport.cols })
|
|
1196
1170
|
}
|
|
@@ -1199,8 +1173,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.8", ngImpor
|
|
|
1199
1173
|
</ng-container>
|
|
1200
1174
|
</ng-container>
|
|
1201
1175
|
<ng-template #buildInLoader>
|
|
1202
|
-
<ng-container *ngIf="loaderIconTemplate
|
|
1203
|
-
<ng-container *ngTemplateOutlet="loaderIconTemplate
|
|
1176
|
+
<ng-container *ngIf="loaderIconTemplate(); else buildInLoaderIcon">
|
|
1177
|
+
<ng-container *ngTemplateOutlet="loaderIconTemplate(); context: { options: { styleClass: 'p-virtualscroller-loading-icon' } }"></ng-container>
|
|
1204
1178
|
</ng-container>
|
|
1205
1179
|
<ng-template #buildInLoaderIcon>
|
|
1206
1180
|
<svg data-p-icon="spinner" [class]="cx('loadingIcon')" [spin]="true" [aglBind]="ptm('loadingIcon')" />
|
|
@@ -1211,8 +1185,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.8", ngImpor
|
|
|
1211
1185
|
</ng-container>
|
|
1212
1186
|
<ng-template #disabledContainer>
|
|
1213
1187
|
<ng-content></ng-content>
|
|
1214
|
-
<ng-container *ngIf="contentTemplate
|
|
1215
|
-
<ng-container *ngTemplateOutlet="contentTemplate
|
|
1188
|
+
<ng-container *ngIf="contentTemplate()">
|
|
1189
|
+
<ng-container *ngTemplateOutlet="contentTemplate(); context: { $implicit: items, options: { rows: _items, columns: loadedColumns } }"></ng-container>
|
|
1216
1190
|
</ng-container>
|
|
1217
1191
|
</ng-template>
|
|
1218
1192
|
`,
|
|
@@ -1288,28 +1262,13 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.8", ngImpor
|
|
|
1288
1262
|
}], height: [{
|
|
1289
1263
|
type: HostBinding,
|
|
1290
1264
|
args: ['style.height']
|
|
1291
|
-
}], contentTemplate: [{
|
|
1292
|
-
type: ContentChild,
|
|
1293
|
-
args: ['content', { descendants: false }]
|
|
1294
|
-
}], itemTemplate: [{
|
|
1295
|
-
type: ContentChild,
|
|
1296
|
-
args: ['item', { descendants: false }]
|
|
1297
|
-
}], loaderTemplate: [{
|
|
1298
|
-
type: ContentChild,
|
|
1299
|
-
args: ['loader', { descendants: false }]
|
|
1300
|
-
}], loaderIconTemplate: [{
|
|
1301
|
-
type: ContentChild,
|
|
1302
|
-
args: ['loadericon', { descendants: false }]
|
|
1303
|
-
}], templates: [{
|
|
1304
|
-
type: ContentChildren,
|
|
1305
|
-
args: [AglTemplate]
|
|
1306
|
-
}] } });
|
|
1265
|
+
}], contentTemplate: [{ type: i0.ContentChild, args: ['content', { ...{ descendants: false }, isSignal: true }] }], itemTemplate: [{ type: i0.ContentChild, args: ['item', { ...{ descendants: false }, isSignal: true }] }], loaderTemplate: [{ type: i0.ContentChild, args: ['loader', { ...{ descendants: false }, isSignal: true }] }], loaderIconTemplate: [{ type: i0.ContentChild, args: ['loadericon', { ...{ descendants: false }, isSignal: true }] }] } });
|
|
1307
1266
|
class ScrollerModule {
|
|
1308
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.
|
|
1309
|
-
static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "22.
|
|
1310
|
-
static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "22.
|
|
1267
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.1", ngImport: i0, type: ScrollerModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
1268
|
+
static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "22.1.1", ngImport: i0, type: ScrollerModule, imports: [Scroller, SharedModule], exports: [Scroller, SharedModule] });
|
|
1269
|
+
static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "22.1.1", ngImport: i0, type: ScrollerModule, imports: [Scroller, SharedModule, SharedModule] });
|
|
1311
1270
|
}
|
|
1312
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.
|
|
1271
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.1", ngImport: i0, type: ScrollerModule, decorators: [{
|
|
1313
1272
|
type: NgModule,
|
|
1314
1273
|
args: [{
|
|
1315
1274
|
imports: [Scroller, SharedModule],
|