angular-overflow-indicator 20.0.2 → 20.0.4

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 CHANGED
@@ -1,73 +1,73 @@
1
- # angular-overflow-indicator
2
-
3
- This library includes a simple and performant component that displays a given button if the content of the component overflows.
4
-
5
- ## Features
6
-
7
- ### Button that displays/hides accordingly
8
-
9
- ![Overflow indicator example](./example-overflow-indicator.gif)
10
-
11
- ### Observe the scroll state
12
-
13
- ![Overflow indicator example](./example-scroll-state.gif)
14
-
15
-
16
- ## Basic Usage
17
-
18
- **Step 1: Install the package**
19
-
20
- ```console
21
- yarn add angular-overflow-indicator
22
- ```
23
- or
24
- ```console
25
- npm install angular-overflow-indicator
26
- ```
27
-
28
- **Step 2: Install the package**
29
-
30
- ```ts
31
- import { ScrollViewWithIndicatorComponent } from 'angular-overflow-indicator';
32
- ```
33
-
34
- **Step 3: Create a container with a maximum/fixed size**
35
-
36
- ```html
37
- <div [style]="{ height: '300px', width: '500px' }">
38
- // ...
39
- </div>
40
- ```
41
-
42
- **Step 4: Add a template that includes the indicator-button**
43
-
44
- ```html
45
- <div [style]="{ height: '300px', width: '500px' }">
46
- <ng-template #customButton>
47
- <button (click)="view.scrollToBottom()">There is more below <i>👇</i></button>
48
- </ng-template>
49
-
50
- // ...
51
- </div>
52
- ```
53
-
54
- **Step 5: Add the overflow-indicator-component with a list larger than the outer container and pass the template reference of the indicator-button**
55
-
56
- ```html
57
-
58
- <div [style]="{ height: '300px', width: '500px' }">
59
- <ng-template #customButton>
60
- <button (click)="view.scrollToBottom()">There is more below <i>👇</i></button>
61
- </ng-template>
62
-
63
- <ng-scroll-view-with-indicator #view [indicatorButton]="customButton">
64
- <ul>
65
- @for (item of items(); track item) {
66
- <li>List item {{ item }}</li>
67
- }
68
- </ul>
69
- </ng-scroll-view-with-indicator>
70
- </div>
71
- ```
72
-
73
-
1
+ # angular-overflow-indicator
2
+
3
+ This library includes a simple and performant component that displays a given button if the content of the component overflows.
4
+
5
+ ## Features
6
+
7
+ ### Button that displays/hides accordingly
8
+
9
+ ![Overflow indicator example](./example-overflow-indicator.gif)
10
+
11
+ ### Observe the scroll state
12
+
13
+ ![Overflow indicator example](./example-scroll-state.gif)
14
+
15
+
16
+ ## Basic Usage
17
+
18
+ **Step 1: Install the package**
19
+
20
+ ```console
21
+ yarn add angular-overflow-indicator
22
+ ```
23
+ or
24
+ ```console
25
+ npm install angular-overflow-indicator
26
+ ```
27
+
28
+ **Step 2: Install the package**
29
+
30
+ ```ts
31
+ import { ScrollViewWithIndicatorComponent } from 'angular-overflow-indicator';
32
+ ```
33
+
34
+ **Step 3: Create a container with a maximum/fixed size**
35
+
36
+ ```html
37
+ <div [style]="{ height: '300px', width: '500px' }">
38
+ // ...
39
+ </div>
40
+ ```
41
+
42
+ **Step 4: Add a template that includes the indicator-button**
43
+
44
+ ```html
45
+ <div [style]="{ height: '300px', width: '500px' }">
46
+ <ng-template #customButton>
47
+ <button (click)="view.scrollToBottom()">There is more below <i>👇</i></button>
48
+ </ng-template>
49
+
50
+ // ...
51
+ </div>
52
+ ```
53
+
54
+ **Step 5: Add the overflow-indicator-component with a list larger than the outer container and pass the template reference of the indicator-button**
55
+
56
+ ```html
57
+
58
+ <div [style]="{ height: '300px', width: '500px' }">
59
+ <ng-template #customButton>
60
+ <button (click)="view.scrollToBottom()">There is more below <i>👇</i></button>
61
+ </ng-template>
62
+
63
+ <ng-scroll-view-with-indicator #view [indicatorButton]="customButton">
64
+ <ul>
65
+ @for (item of items(); track item) {
66
+ <li>List item {{ item }}</li>
67
+ }
68
+ </ul>
69
+ </ng-scroll-view-with-indicator>
70
+ </div>
71
+ ```
72
+
73
+
@@ -7,21 +7,21 @@ class DefaultIndicatorButtonComponent {
7
7
  constructor() {
8
8
  this.buttonClicked = output();
9
9
  }
10
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.2.4", ngImport: i0, type: DefaultIndicatorButtonComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
11
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "20.2.4", type: DefaultIndicatorButtonComponent, isStandalone: true, selector: "ng-scroll-view-default-indicator-button", outputs: { buttonClicked: "buttonClicked" }, ngImport: i0, template: `
12
- <button class="default-button" (click)="buttonClicked.emit()">
13
- <span>There is more content</span>
14
- </button>
10
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.15", ngImport: i0, type: DefaultIndicatorButtonComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
11
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "20.3.15", type: DefaultIndicatorButtonComponent, isStandalone: true, selector: "ng-scroll-view-default-indicator-button", outputs: { buttonClicked: "buttonClicked" }, ngImport: i0, template: `
12
+ <button class="default-button" (click)="buttonClicked.emit()">
13
+ <span>There is more content</span>
14
+ </button>
15
15
  `, isInline: true, styles: ["button{border:none;font-size:.8rem;font-weight:500;padding:.4rem .6rem;background-color:#444;color:#fff;border-radius:1rem;margin-bottom:.4rem}\n"], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
16
16
  }
17
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.2.4", ngImport: i0, type: DefaultIndicatorButtonComponent, decorators: [{
17
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.15", ngImport: i0, type: DefaultIndicatorButtonComponent, decorators: [{
18
18
  type: Component,
19
- args: [{ selector: 'ng-scroll-view-default-indicator-button', template: `
20
- <button class="default-button" (click)="buttonClicked.emit()">
21
- <span>There is more content</span>
22
- </button>
19
+ args: [{ selector: 'ng-scroll-view-default-indicator-button', template: `
20
+ <button class="default-button" (click)="buttonClicked.emit()">
21
+ <span>There is more content</span>
22
+ </button>
23
23
  `, changeDetection: ChangeDetectionStrategy.OnPush, styles: ["button{border:none;font-size:.8rem;font-weight:500;padding:.4rem .6rem;background-color:#444;color:#fff;border-radius:1rem;margin-bottom:.4rem}\n"] }]
24
- }] });
24
+ }], propDecorators: { buttonClicked: [{ type: i0.Output, args: ["buttonClicked"] }] } });
25
25
 
26
26
  class ScrollViewWithIndicatorComponent {
27
27
  constructor() {
@@ -67,16 +67,16 @@ class ScrollViewWithIndicatorComponent {
67
67
  this.isAtBottom.set(element.scrollTop + 1 >= maxScroll);
68
68
  this.scrollState.emit(Math.round((100 / maxScroll) * (element.scrollTop + 1)));
69
69
  }
70
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.2.4", ngImport: i0, type: ScrollViewWithIndicatorComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
71
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.2.4", type: ScrollViewWithIndicatorComponent, isStandalone: true, selector: "ng-scroll-view-with-indicator", inputs: { indicatorButton: { classPropertyName: "indicatorButton", publicName: "indicatorButton", isSignal: true, isRequired: true, transformFunction: null } }, outputs: { scrollState: "scrollState" }, viewQueries: [{ propertyName: "contentWrapper", first: true, predicate: ["contentWrapper"], descendants: true }], ngImport: i0, template: "<div class=\"content-wrapper\" #contentWrapper (scroll)=\"onScroll()\">\r\n <ng-content />\r\n</div>\r\n\r\n@if (isOverflowing() && !isAtBottom()) {\r\n <div class=\"scroll-indicator\">\r\n @if (indicatorButton()) {\r\n <ng-container [ngTemplateOutlet]=\"indicatorButton()\" />\r\n } @else {\r\n <ng-scroll-view-default-indicator-button (buttonClicked)=\"scrollToBottom()\" />\r\n }\r\n </div>\r\n}\r\n", styles: [":host{height:100%;max-height:100%;position:relative;min-height:0;display:flex}.content-wrapper{flex:1;max-height:100%;min-height:0;overflow-y:auto;box-sizing:border-box}.scroll-indicator{position:absolute;bottom:0;left:0;right:0;display:flex;justify-content:center}\n"], dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "directive", type: i1.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "component", type: DefaultIndicatorButtonComponent, selector: "ng-scroll-view-default-indicator-button", outputs: ["buttonClicked"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
70
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.15", ngImport: i0, type: ScrollViewWithIndicatorComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
71
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.3.15", type: ScrollViewWithIndicatorComponent, isStandalone: true, selector: "ng-scroll-view-with-indicator", inputs: { indicatorButton: { classPropertyName: "indicatorButton", publicName: "indicatorButton", isSignal: true, isRequired: true, transformFunction: null } }, outputs: { scrollState: "scrollState" }, viewQueries: [{ propertyName: "contentWrapper", first: true, predicate: ["contentWrapper"], descendants: true }], ngImport: i0, template: "<div class=\"content-wrapper\" #contentWrapper (scroll)=\"onScroll()\">\n <ng-content />\n</div>\n\n@if (isOverflowing() && !isAtBottom()) {\n <div class=\"scroll-indicator\">\n @if (indicatorButton()) {\n <ng-container [ngTemplateOutlet]=\"indicatorButton()\" />\n } @else {\n <ng-scroll-view-default-indicator-button (buttonClicked)=\"scrollToBottom()\" />\n }\n </div>\n}\n", styles: [":host{height:100%;max-height:100%;position:relative;min-height:0;display:flex}.content-wrapper{flex:1;max-height:100%;min-height:0;overflow-y:auto;box-sizing:border-box}.scroll-indicator{position:absolute;bottom:0;left:0;right:0;display:flex;justify-content:center}\n"], dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "directive", type: i1.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "component", type: DefaultIndicatorButtonComponent, selector: "ng-scroll-view-default-indicator-button", outputs: ["buttonClicked"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
72
72
  }
73
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.2.4", ngImport: i0, type: ScrollViewWithIndicatorComponent, decorators: [{
73
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.15", ngImport: i0, type: ScrollViewWithIndicatorComponent, decorators: [{
74
74
  type: Component,
75
- args: [{ selector: 'ng-scroll-view-with-indicator', imports: [CommonModule, DefaultIndicatorButtonComponent], changeDetection: ChangeDetectionStrategy.OnPush, template: "<div class=\"content-wrapper\" #contentWrapper (scroll)=\"onScroll()\">\r\n <ng-content />\r\n</div>\r\n\r\n@if (isOverflowing() && !isAtBottom()) {\r\n <div class=\"scroll-indicator\">\r\n @if (indicatorButton()) {\r\n <ng-container [ngTemplateOutlet]=\"indicatorButton()\" />\r\n } @else {\r\n <ng-scroll-view-default-indicator-button (buttonClicked)=\"scrollToBottom()\" />\r\n }\r\n </div>\r\n}\r\n", styles: [":host{height:100%;max-height:100%;position:relative;min-height:0;display:flex}.content-wrapper{flex:1;max-height:100%;min-height:0;overflow-y:auto;box-sizing:border-box}.scroll-indicator{position:absolute;bottom:0;left:0;right:0;display:flex;justify-content:center}\n"] }]
75
+ args: [{ selector: 'ng-scroll-view-with-indicator', imports: [CommonModule, DefaultIndicatorButtonComponent], changeDetection: ChangeDetectionStrategy.OnPush, template: "<div class=\"content-wrapper\" #contentWrapper (scroll)=\"onScroll()\">\n <ng-content />\n</div>\n\n@if (isOverflowing() && !isAtBottom()) {\n <div class=\"scroll-indicator\">\n @if (indicatorButton()) {\n <ng-container [ngTemplateOutlet]=\"indicatorButton()\" />\n } @else {\n <ng-scroll-view-default-indicator-button (buttonClicked)=\"scrollToBottom()\" />\n }\n </div>\n}\n", styles: [":host{height:100%;max-height:100%;position:relative;min-height:0;display:flex}.content-wrapper{flex:1;max-height:100%;min-height:0;overflow-y:auto;box-sizing:border-box}.scroll-indicator{position:absolute;bottom:0;left:0;right:0;display:flex;justify-content:center}\n"] }]
76
76
  }], propDecorators: { contentWrapper: [{
77
77
  type: ViewChild,
78
78
  args: ['contentWrapper']
79
- }] } });
79
+ }], scrollState: [{ type: i0.Output, args: ["scrollState"] }], indicatorButton: [{ type: i0.Input, args: [{ isSignal: true, alias: "indicatorButton", required: true }] }] } });
80
80
 
81
81
  /**
82
82
  * Generated bundle index. Do not edit.
@@ -1 +1 @@
1
- {"version":3,"file":"angular-overflow-indicator.mjs","sources":["../tmp-esm2022/lib/default-indicator-button/default-indicator-button.component.js","../tmp-esm2022/lib/scroll-view-with-indicator/scroll-view-with-indicator.component.js","../tmp-esm2022/angular-overflow-indicator.js"],"sourcesContent":["import { ChangeDetectionStrategy, Component, output } from '@angular/core';\nimport * as i0 from \"@angular/core\";\nexport class DefaultIndicatorButtonComponent {\n constructor() {\n this.buttonClicked = output();\n }\n static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"20.2.4\", ngImport: i0, type: DefaultIndicatorButtonComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }\n static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: \"14.0.0\", version: \"20.2.4\", type: DefaultIndicatorButtonComponent, isStandalone: true, selector: \"ng-scroll-view-default-indicator-button\", outputs: { buttonClicked: \"buttonClicked\" }, ngImport: i0, template: `\r\n <button class=\"default-button\" (click)=\"buttonClicked.emit()\">\r\n <span>There is more content</span>\r\n </button>\r\n `, isInline: true, styles: [\"button{border:none;font-size:.8rem;font-weight:500;padding:.4rem .6rem;background-color:#444;color:#fff;border-radius:1rem;margin-bottom:.4rem}\\n\"], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }\n}\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"20.2.4\", ngImport: i0, type: DefaultIndicatorButtonComponent, decorators: [{\n type: Component,\n args: [{ selector: 'ng-scroll-view-default-indicator-button', template: `\r\n <button class=\"default-button\" (click)=\"buttonClicked.emit()\">\r\n <span>There is more content</span>\r\n </button>\r\n `, changeDetection: ChangeDetectionStrategy.OnPush, styles: [\"button{border:none;font-size:.8rem;font-weight:500;padding:.4rem .6rem;background-color:#444;color:#fff;border-radius:1rem;margin-bottom:.4rem}\\n\"] }]\n }] });\n//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZGVmYXVsdC1pbmRpY2F0b3ItYnV0dG9uLmNvbXBvbmVudC5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uLy4uL2xpYnMvYW5ndWxhci1vdmVyZmxvdy1pbmRpY2F0b3Ivc3JjL2xpYi9kZWZhdWx0LWluZGljYXRvci1idXR0b24vZGVmYXVsdC1pbmRpY2F0b3ItYnV0dG9uLmNvbXBvbmVudC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxPQUFPLEVBQUUsdUJBQXVCLEVBQUUsU0FBUyxFQUFFLE1BQU0sRUFBRSxNQUFNLGVBQWUsQ0FBQzs7QUF1QjNFLE1BQU0sT0FBTywrQkFBK0I7SUFyQjVDO1FBc0JFLGtCQUFhLEdBQUcsTUFBTSxFQUFFLENBQUM7S0FDMUI7OEdBRlksK0JBQStCO2tHQUEvQiwrQkFBK0IsZ0pBbkJoQzs7OztHQUlUOzsyRkFlVSwrQkFBK0I7a0JBckIzQyxTQUFTOytCQUNFLHlDQUF5QyxZQUN6Qzs7OztHQUlULG1CQWFnQix1QkFBdUIsQ0FBQyxNQUFNIiwic291cmNlc0NvbnRlbnQiOlsiaW1wb3J0IHsgQ2hhbmdlRGV0ZWN0aW9uU3RyYXRlZ3ksIENvbXBvbmVudCwgb3V0cHV0IH0gZnJvbSAnQGFuZ3VsYXIvY29yZSc7XHJcblxyXG5AQ29tcG9uZW50KHtcclxuICBzZWxlY3RvcjogJ25nLXNjcm9sbC12aWV3LWRlZmF1bHQtaW5kaWNhdG9yLWJ1dHRvbicsXHJcbiAgdGVtcGxhdGU6IGBcclxuICAgIDxidXR0b24gY2xhc3M9XCJkZWZhdWx0LWJ1dHRvblwiIChjbGljayk9XCJidXR0b25DbGlja2VkLmVtaXQoKVwiPlxyXG4gICAgICA8c3Bhbj5UaGVyZSBpcyBtb3JlIGNvbnRlbnQ8L3NwYW4+XHJcbiAgICA8L2J1dHRvbj5cclxuICBgLFxyXG4gIHN0eWxlczogYFxyXG4gICAgYnV0dG9uIHtcclxuICAgICAgYm9yZGVyOiBub25lO1xyXG4gICAgICBmb250LXNpemU6IDAuOHJlbTtcclxuICAgICAgZm9udC13ZWlnaHQ6IDUwMDtcclxuICAgICAgcGFkZGluZzogMC40cmVtIDAuNnJlbTtcclxuICAgICAgYmFja2dyb3VuZC1jb2xvcjogIzQ0NDQ0NDtcclxuICAgICAgY29sb3I6ICNmZmZmZmY7XHJcbiAgICAgIGJvcmRlci1yYWRpdXM6IDFyZW07XHJcbiAgICAgIG1hcmdpbi1ib3R0b206IDAuNHJlbTtcclxuICAgIH1cclxuICBgLFxyXG4gIGNoYW5nZURldGVjdGlvbjogQ2hhbmdlRGV0ZWN0aW9uU3RyYXRlZ3kuT25QdXNoXHJcbn0pXHJcbmV4cG9ydCBjbGFzcyBEZWZhdWx0SW5kaWNhdG9yQnV0dG9uQ29tcG9uZW50IHtcclxuICBidXR0b25DbGlja2VkID0gb3V0cHV0KCk7XHJcbn1cclxuIl19","import { ChangeDetectionStrategy, ChangeDetectorRef, Component, ElementRef, inject, input, output, signal, ViewChild } from '@angular/core';\nimport { CommonModule } from '@angular/common';\nimport { DefaultIndicatorButtonComponent } from '../default-indicator-button';\nimport * as i0 from \"@angular/core\";\nimport * as i1 from \"@angular/common\";\nexport class ScrollViewWithIndicatorComponent {\n constructor() {\n this.scrollState = output();\n this.indicatorButton = input.required(...(ngDevMode ? [{ debugName: \"indicatorButton\" }] : []));\n this.isOverflowing = signal(false, ...(ngDevMode ? [{ debugName: \"isOverflowing\" }] : []));\n this.isAtBottom = signal(false, ...(ngDevMode ? [{ debugName: \"isAtBottom\" }] : []));\n this.cdr = inject(ChangeDetectorRef);\n this.resizeObserver = null;\n }\n ngAfterViewInit() {\n this.resizeObserver = new ResizeObserver(() => {\n this.updateOverflowState();\n this.updateScrollState();\n this.cdr.detectChanges();\n });\n this.resizeObserver.observe(this.contentWrapper.nativeElement);\n }\n ngOnDestroy() {\n this.resizeObserver?.disconnect();\n }\n /**\n * Manually scrolls the content-container to the bottom\n */\n scrollToBottom() {\n this.contentWrapper.nativeElement.scrollTop = this.contentWrapper.nativeElement.scrollHeight;\n }\n /**\n * If the user scrolled all the way to the end of the container,\n * the indicator button can be hidden\n */\n onScroll() {\n this.updateScrollState();\n }\n updateOverflowState() {\n const element = this.contentWrapper.nativeElement;\n const maxScroll = element.scrollHeight - element.offsetHeight;\n this.isOverflowing.set(element.offsetHeight < element.scrollHeight && element.scrollTop < maxScroll);\n }\n updateScrollState() {\n const element = this.contentWrapper.nativeElement;\n const maxScroll = element.scrollHeight - element.offsetHeight;\n this.isAtBottom.set(element.scrollTop + 1 >= maxScroll);\n this.scrollState.emit(Math.round((100 / maxScroll) * (element.scrollTop + 1)));\n }\n static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"20.2.4\", ngImport: i0, type: ScrollViewWithIndicatorComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }\n static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: \"17.0.0\", version: \"20.2.4\", type: ScrollViewWithIndicatorComponent, isStandalone: true, selector: \"ng-scroll-view-with-indicator\", inputs: { indicatorButton: { classPropertyName: \"indicatorButton\", publicName: \"indicatorButton\", isSignal: true, isRequired: true, transformFunction: null } }, outputs: { scrollState: \"scrollState\" }, viewQueries: [{ propertyName: \"contentWrapper\", first: true, predicate: [\"contentWrapper\"], descendants: true }], ngImport: i0, template: \"<div class=\\\"content-wrapper\\\" #contentWrapper (scroll)=\\\"onScroll()\\\">\\r\\n <ng-content />\\r\\n</div>\\r\\n\\r\\n@if (isOverflowing() && !isAtBottom()) {\\r\\n <div class=\\\"scroll-indicator\\\">\\r\\n @if (indicatorButton()) {\\r\\n <ng-container [ngTemplateOutlet]=\\\"indicatorButton()\\\" />\\r\\n } @else {\\r\\n <ng-scroll-view-default-indicator-button (buttonClicked)=\\\"scrollToBottom()\\\" />\\r\\n }\\r\\n </div>\\r\\n}\\r\\n\", styles: [\":host{height:100%;max-height:100%;position:relative;min-height:0;display:flex}.content-wrapper{flex:1;max-height:100%;min-height:0;overflow-y:auto;box-sizing:border-box}.scroll-indicator{position:absolute;bottom:0;left:0;right:0;display:flex;justify-content:center}\\n\"], dependencies: [{ kind: \"ngmodule\", type: CommonModule }, { kind: \"directive\", type: i1.NgTemplateOutlet, selector: \"[ngTemplateOutlet]\", inputs: [\"ngTemplateOutletContext\", \"ngTemplateOutlet\", \"ngTemplateOutletInjector\"] }, { kind: \"component\", type: DefaultIndicatorButtonComponent, selector: \"ng-scroll-view-default-indicator-button\", outputs: [\"buttonClicked\"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }\n}\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"20.2.4\", ngImport: i0, type: ScrollViewWithIndicatorComponent, decorators: [{\n type: Component,\n args: [{ selector: 'ng-scroll-view-with-indicator', imports: [CommonModule, DefaultIndicatorButtonComponent], changeDetection: ChangeDetectionStrategy.OnPush, template: \"<div class=\\\"content-wrapper\\\" #contentWrapper (scroll)=\\\"onScroll()\\\">\\r\\n <ng-content />\\r\\n</div>\\r\\n\\r\\n@if (isOverflowing() && !isAtBottom()) {\\r\\n <div class=\\\"scroll-indicator\\\">\\r\\n @if (indicatorButton()) {\\r\\n <ng-container [ngTemplateOutlet]=\\\"indicatorButton()\\\" />\\r\\n } @else {\\r\\n <ng-scroll-view-default-indicator-button (buttonClicked)=\\\"scrollToBottom()\\\" />\\r\\n }\\r\\n </div>\\r\\n}\\r\\n\", styles: [\":host{height:100%;max-height:100%;position:relative;min-height:0;display:flex}.content-wrapper{flex:1;max-height:100%;min-height:0;overflow-y:auto;box-sizing:border-box}.scroll-indicator{position:absolute;bottom:0;left:0;right:0;display:flex;justify-content:center}\\n\"] }]\n }], propDecorators: { contentWrapper: [{\n type: ViewChild,\n args: ['contentWrapper']\n }] } });\n//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoic2Nyb2xsLXZpZXctd2l0aC1pbmRpY2F0b3IuY29tcG9uZW50LmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vLi4vbGlicy9hbmd1bGFyLW92ZXJmbG93LWluZGljYXRvci9zcmMvbGliL3Njcm9sbC12aWV3LXdpdGgtaW5kaWNhdG9yL3Njcm9sbC12aWV3LXdpdGgtaW5kaWNhdG9yLmNvbXBvbmVudC50cyIsIi4uLy4uLy4uLy4uLy4uLy4uL2xpYnMvYW5ndWxhci1vdmVyZmxvdy1pbmRpY2F0b3Ivc3JjL2xpYi9zY3JvbGwtdmlldy13aXRoLWluZGljYXRvci9zY3JvbGwtdmlldy13aXRoLWluZGljYXRvci5jb21wb25lbnQuaHRtbCJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxPQUFPLEVBRUwsdUJBQXVCLEVBQ3ZCLGlCQUFpQixFQUNqQixTQUFTLEVBQ1QsVUFBVSxFQUNWLE1BQU0sRUFDTixLQUFLLEVBRUwsTUFBTSxFQUNOLE1BQU0sRUFFTixTQUFTLEVBQ1YsTUFBTSxlQUFlLENBQUM7QUFDdkIsT0FBTyxFQUFFLFlBQVksRUFBRSxNQUFNLGlCQUFpQixDQUFDO0FBQy9DLE9BQU8sRUFBRSwrQkFBK0IsRUFBRSxNQUFNLDZCQUE2QixDQUFDOzs7QUFTOUUsTUFBTSxPQUFPLGdDQUFnQztJQVA3QztRQVNFLGdCQUFXLEdBQUcsTUFBTSxFQUFVLENBQUM7UUFFdEIsb0JBQWUsR0FBRyxLQUFLLENBQU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XQoZWxlbWVudC5zY3JvbGxUb3AgKyAxID49IG1heFNjcm9sbCk7XHJcbiAgICB0aGlzLnNjcm9sbFN0YXRlLmVtaXQoTWF0aC5yb3VuZCgoMTAwIC8gbWF4U2Nyb2xsKSAqIChlbGVtZW50LnNjcm9sbFRvcCArIDEpKSk7XHJcbiAgfVxyXG59XHJcbiIsIjxkaXYgY2xhc3M9XCJjb250ZW50LXdyYXBwZXJcIiAjY29udGVudFdyYXBwZXIgKHNjcm9sbCk9XCJvblNjcm9sbCgpXCI+XHJcbiAgPG5nLWNvbnRlbnQgLz5cclxuPC9kaXY+XHJcblxyXG5AaWYgKGlzT3ZlcmZsb3dpbmcoKSAmJiAhaXNBdEJvdHRvbSgpKSB7XHJcbiAgPGRpdiBjbGFzcz1cInNjcm9sbC1pbmRpY2F0b3JcIj5cclxuICAgIEBpZiAoaW5kaWNhdG9yQnV0dG9uKCkpIHtcclxuICAgICAgPG5nLWNvbnRhaW5lciBbbmdUZW1wbGF0ZU91dGxldF09XCJpbmRpY2F0b3JCdXR0b24oKVwiIC8+XHJcbiAgICB9IEBlbHNlIHtcclxuICAgICAgPG5nLXNjcm9sbC12aWV3LWRlZmF1bHQtaW5kaWNhdG9yLWJ1dHRvbiAoYnV0dG9uQ2xpY2tlZCk9XCJzY3JvbGxUb0JvdHRvbSgpXCIgLz5cclxuICAgIH1cclxuICA8L2Rpdj5cclxufVxyXG4iXX0=","/**\n * Generated bundle index. Do not edit.\n */\nexport * from './index';\n//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiYW5ndWxhci1vdmVyZmxvdy1pbmRpY2F0b3IuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi9saWJzL2FuZ3VsYXItb3ZlcmZsb3ctaW5kaWNhdG9yL3NyYy9hbmd1bGFyLW92ZXJmbG93LWluZGljYXRvci50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQTs7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EAAE,CAAC,wBAAwB,CAAC,EAAE,UAAU,EAAE,QAAQ,EAAE,OAAO,EAAE,QAAQ,EAAE,QAAQ,EAAE,EAAE,EAAE,IAAI,EAAE,gCAAgC,EAAE,UAAU,EAAE,CAAC;AAC1I,YAAY,IAAI,EAAE,SAAS;AAC3B,YAAY,IAAI,EAAE,CAAC,EAAE,QAAQ,EAAE,+BAA+B,EAAE,OAAO,EAAE,CAAC,YAAY,EAAE,+BAA+B,CAAC,EAAE,eAAe,EAAE,uBAAuB,CAAC,MAAM,EAAE,QAAQ,EAAE,0aAA0a,EAAE,MAAM,EAAE,CAAC,6QAA6Q,CAAC,EAAE;AAC13B,SAAS,CAAC,EAAE,cAAc,EAAE,EAAE,cAAc,EAAE,CAAC;AAC/C,gBAAgB,IAAI,EAAE,SAAS;AAC/B,gBAAgB,IAAI,EAAE,CAAC,gBAAgB;AACvC,aAAa,CAAC,EAAE,EAAE,CAAC;;AC1DnB;AACA;AACA;;;;"}
1
+ {"version":3,"file":"angular-overflow-indicator.mjs","sources":["../../../../libs/angular-overflow-indicator/src/lib/default-indicator-button/default-indicator-button.component.ts","../../../../libs/angular-overflow-indicator/src/lib/scroll-view-with-indicator/scroll-view-with-indicator.component.ts","../../../../libs/angular-overflow-indicator/src/lib/scroll-view-with-indicator/scroll-view-with-indicator.component.html","../../../../libs/angular-overflow-indicator/src/angular-overflow-indicator.ts"],"sourcesContent":["import { ChangeDetectionStrategy, Component, output } from '@angular/core';\n\n@Component({\n selector: 'ng-scroll-view-default-indicator-button',\n template: `\n <button class=\"default-button\" (click)=\"buttonClicked.emit()\">\n <span>There is more content</span>\n </button>\n `,\n styles: `\n button {\n border: none;\n font-size: 0.8rem;\n font-weight: 500;\n padding: 0.4rem 0.6rem;\n background-color: #444444;\n color: #ffffff;\n border-radius: 1rem;\n margin-bottom: 0.4rem;\n }\n `,\n changeDetection: ChangeDetectionStrategy.OnPush\n})\nexport class DefaultIndicatorButtonComponent {\n buttonClicked = output();\n}\n","import {\n AfterViewInit,\n ChangeDetectionStrategy,\n ChangeDetectorRef,\n Component,\n ElementRef,\n inject,\n input,\n OnDestroy,\n output,\n signal,\n TemplateRef,\n ViewChild\n} from '@angular/core';\nimport { CommonModule } from '@angular/common';\nimport { DefaultIndicatorButtonComponent } from '../default-indicator-button';\n\n@Component({\n selector: 'ng-scroll-view-with-indicator',\n templateUrl: './scroll-view-with-indicator.component.html',\n styleUrls: ['./scroll-view-with-indicator.component.css'],\n imports: [CommonModule, DefaultIndicatorButtonComponent],\n changeDetection: ChangeDetectionStrategy.OnPush\n})\nexport class ScrollViewWithIndicatorComponent implements AfterViewInit, OnDestroy {\n @ViewChild('contentWrapper') contentWrapper!: ElementRef<HTMLDivElement>;\n scrollState = output<number>();\n\n readonly indicatorButton = input.required<TemplateRef<unknown>>();\n readonly isOverflowing = signal(false);\n readonly isAtBottom = signal(false);\n\n private readonly cdr = inject(ChangeDetectorRef);\n private resizeObserver: ResizeObserver | null = null;\n\n ngAfterViewInit(): void {\n this.resizeObserver = new ResizeObserver(() => {\n this.updateOverflowState();\n this.updateScrollState();\n this.cdr.detectChanges();\n });\n\n this.resizeObserver.observe(this.contentWrapper.nativeElement);\n }\n\n ngOnDestroy(): void {\n this.resizeObserver?.disconnect();\n }\n\n /**\n * Manually scrolls the content-container to the bottom\n */\n scrollToBottom(): void {\n this.contentWrapper.nativeElement.scrollTop = this.contentWrapper.nativeElement.scrollHeight;\n }\n\n /**\n * If the user scrolled all the way to the end of the container,\n * the indicator button can be hidden\n */\n onScroll(): void {\n this.updateScrollState();\n }\n\n private updateOverflowState(): void {\n const element = this.contentWrapper.nativeElement;\n const maxScroll = element.scrollHeight - element.offsetHeight;\n this.isOverflowing.set(element.offsetHeight < element.scrollHeight && element.scrollTop < maxScroll);\n }\n\n private updateScrollState(): void {\n const element = this.contentWrapper.nativeElement;\n const maxScroll = element.scrollHeight - element.offsetHeight;\n this.isAtBottom.set(element.scrollTop + 1 >= maxScroll);\n this.scrollState.emit(Math.round((100 / maxScroll) * (element.scrollTop + 1)));\n }\n}\n","<div class=\"content-wrapper\" #contentWrapper (scroll)=\"onScroll()\">\n <ng-content />\n</div>\n\n@if (isOverflowing() && !isAtBottom()) {\n <div class=\"scroll-indicator\">\n @if (indicatorButton()) {\n <ng-container [ngTemplateOutlet]=\"indicatorButton()\" />\n } @else {\n <ng-scroll-view-default-indicator-button (buttonClicked)=\"scrollToBottom()\" />\n }\n </div>\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;MAuBa,+BAA+B,CAAA;AArB5C,IAAA,WAAA,GAAA;QAsBE,IAAA,CAAA,aAAa,GAAG,MAAM,EAAE;AACzB,IAAA;+GAFY,+BAA+B,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA,CAAA;AAA/B,IAAA,SAAA,IAAA,CAAA,IAAA,GAAA,EAAA,CAAA,oBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,SAAA,EAAA,IAAA,EAAA,+BAA+B,EAAA,YAAA,EAAA,IAAA,EAAA,QAAA,EAAA,yCAAA,EAAA,OAAA,EAAA,EAAA,aAAA,EAAA,eAAA,EAAA,EAAA,QAAA,EAAA,EAAA,EAAA,QAAA,EAnBhC;;;;AAIT,EAAA,CAAA,EAAA,QAAA,EAAA,IAAA,EAAA,MAAA,EAAA,CAAA,mJAAA,CAAA,EAAA,eAAA,EAAA,EAAA,CAAA,uBAAA,CAAA,MAAA,EAAA,CAAA,CAAA;;4FAeU,+BAA+B,EAAA,UAAA,EAAA,CAAA;kBArB3C,SAAS;AACE,YAAA,IAAA,EAAA,CAAA,EAAA,QAAA,EAAA,yCAAyC,EAAA,QAAA,EACzC;;;;GAIT,EAAA,eAAA,EAagB,uBAAuB,CAAC,MAAM,EAAA,MAAA,EAAA,CAAA,mJAAA,CAAA,EAAA;;;MCGpC,gCAAgC,CAAA;AAP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AAE,+BAA+B,EAAA,QAAA,EAAA,yCAAA,EAAA,OAAA,EAAA,CAAA,eAAA,CAAA,EAAA,CAAA,EAAA,eAAA,EAAA,EAAA,CAAA,uBAAA,CAAA,MAAA,EAAA,CAAA,CAAA;;4FAG5C,gCAAgC,EAAA,UAAA,EAAA,CAAA;kBAP5C,SAAS;+BACE,+BAA+B,EAAA,OAAA,EAGhC,CAAC,YAAY,EAAE,+BAA+B,CAAC,EAAA,eAAA,EACvC,uBAAuB,CAAC,MAAM,EAAA,QAAA,EAAA,gZAAA,EAAA,MAAA,EAAA,CAAA,6QAAA,CAAA,EAAA;;sBAG9C,SAAS;uBAAC,gBAAgB;;;AEzB7B;;AAEG;;;;"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "angular-overflow-indicator",
3
- "version": "20.0.2",
3
+ "version": "20.0.4",
4
4
  "description": "A simple and performant component that displays a given button if the content of the component overflows",
5
5
  "license": "MIT",
6
6
  "repository": {