New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

ngx-nested-ellipsis

Package Overview
Dependencies
Maintainers
1
Versions
19
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

ngx-nested-ellipsis - npm Package Compare versions

Comparing version

to
2.1.0

1

lib/enums/ellipsis-resize-detection.enum.d.ts

@@ -8,3 +8,2 @@ /**

* See https://developer.mozilla.org/en-US/docs/Web/API/ResizeObserver
* and https://github.com/juggle/resize-observer
*/

@@ -11,0 +10,0 @@ ResizeObserver = "resize-observer",

3

package.json
{
"name": "ngx-nested-ellipsis",
"version": "2.0.3",
"version": "2.1.0",
"description": "Nested multiline html with ellipsis for angular 12+",

@@ -17,3 +17,2 @@ "author": "Florian Lentsch",

"dependencies": {
"@juggle/resize-observer": "*",
"tslib": "^2.0.0"

@@ -20,0 +19,0 @@ },

@@ -56,3 +56,3 @@ # ngx-nested-ellipsis

| __nestedEllipsisMayTruncateAtFn__ | Function that lets you specify whether the contents may be truncated at a certain point or not. (see [callback API](#nestedellipsismaytruncateatfn-api)) |
| __nestedEllipsisResizeDetection__ | How resize events should be detected - these are the possible values: <ul><li>__resize-observer__: _default_ Use native ResizeObserver or a ponyfill if not implemented by the browser (See [Web/API/ResizeObserver](https://developer.mozilla.org/en-US/docs/Web/API/ResizeObserver) and [@juggle/resize-observer](https://github.com/juggle/resize-observer))</li><li>__window__: Only listen if the whole window has been resized/changed orientation (Possibly better performance, but obviously won't trigger on resize caused directly or indirectly by javascript.)</li><li>__manual__: Ellipsis is never applied automatically. Instead the consuming app may use `#ell="ngxNestedEllipsis"` in the template and `this.ell.applyEllipsis()` in the component code.</li></ul> |
| __nestedEllipsisResizeDetection__ | How resize events should be detected - these are the possible values: <ul><li>__resize-observer__: _default_ Use native ResizeObserver (See [Web/API/ResizeObserver](https://developer.mozilla.org/en-US/docs/Web/API/ResizeObserver))</li><li>__window__: Only listen if the whole window has been resized/changed orientation (Possibly better performance, but obviously won't trigger on resize caused directly or indirectly by javascript.)</li><li>__manual__: Ellipsis is never applied automatically. Instead the consuming app may use `#ell="ngxNestedEllipsis"` in the template and `this.ell.applyEllipsis()` in the component code.</li></ul> |
| __nestedEllipsisChange__ | Event emitter - Will be emitted whenever the ellipsis has been recalculated (depending on `nestedEllipsisResizeDetection`). If the text had to be truncated the position of the last visible character will be emitted, else `null`.|

@@ -76,6 +76,5 @@

1. Run `npm ci`
1. Adept version and author in `./projects/ngx-nested-ellipsis/package.json` and commit the changes to your fork.
1. Adept version and author in `./projects/ngx-nested-ellipsis/package.json` and `./README` and commit the changes to your fork.
1. Run `npm run build-lib` which outputs the build to `./dist/ngx-nested-ellipsis`.
1. Copy README.md to `./dist/ngx-nested-ellipsis` and modify it accordingly.
1. Run `cd ./dist/ngx-nested-ellipsis && npm publish`.
1. To publish your build, run `npm run release-lib`.

@@ -87,8 +86,4 @@

## Thank you...
- ... __Tremayne Christ__ for writing the [@juggle/resize-observer](https://github.com/juggle/resize-observer) package which is internally used by this module.
## License
MIT

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet