ngx-drag-to-select
Advanced tools
Comparing version 5.0.0 to 5.0.1
{ | ||
"name": "ngx-drag-to-select", | ||
"version": "5.0.0", | ||
"version": "5.0.1", | ||
"description": "A lightweight, fast, configurable and reactive drag-to-select component for Angular 8 and beyond", | ||
@@ -11,2 +11,19 @@ "sideEffects": false, | ||
}, | ||
"exports": { | ||
".": { | ||
"sass": "./scss/ngx-drag-to-select.scss", | ||
"types": "./ngx-drag-to-select.d.ts", | ||
"esm2020": "./esm2020/ngx-drag-to-select.mjs", | ||
"es2020": "./fesm2020/ngx-drag-to-select.mjs", | ||
"es2015": "./fesm2015/ngx-drag-to-select.mjs", | ||
"node": "./fesm2015/ngx-drag-to-select.mjs", | ||
"default": "./fesm2020/ngx-drag-to-select.mjs" | ||
}, | ||
"./ngx-drag-to-select.css": { | ||
"style": "./ngx-drag-to-select.css" | ||
}, | ||
"./package.json": { | ||
"default": "./package.json" | ||
} | ||
}, | ||
"repository": { | ||
@@ -40,16 +57,3 @@ "type": "git", | ||
"fesm2015": "fesm2015/ngx-drag-to-select.mjs", | ||
"typings": "ngx-drag-to-select.d.ts", | ||
"exports": { | ||
"./package.json": { | ||
"default": "./package.json" | ||
}, | ||
".": { | ||
"types": "./ngx-drag-to-select.d.ts", | ||
"esm2020": "./esm2020/ngx-drag-to-select.mjs", | ||
"es2020": "./fesm2020/ngx-drag-to-select.mjs", | ||
"es2015": "./fesm2015/ngx-drag-to-select.mjs", | ||
"node": "./fesm2015/ngx-drag-to-select.mjs", | ||
"default": "./fesm2020/ngx-drag-to-select.mjs" | ||
} | ||
} | ||
"typings": "ngx-drag-to-select.d.ts" | ||
} |
@@ -10,2 +10,4 @@ # ngx-drag-to-select | ||
> ⚠️ If your application does **not** use Angular >= v13.x then please use `ngx-drag-to-select@4.x`. Version 5 only supports the new package format which removes ViewEngine specific metadata. For more information check out the [FAQ](#versionOverview). | ||
## Demo | ||
@@ -77,27 +79,18 @@ | ||
If you are using sass you can import the css as follows: | ||
It's not recommended, and not supported, to load the CSS in your SCSS files. Instead, if you don't need to customize | ||
the styles, and you're using the [Angular CLI](https://github.com/angular/angular-cli) you can add it to your `angular.json`: | ||
```scss | ||
@import '~ngx-drag-to-select/ngx-drag-to-select.css'; | ||
``` | ||
If you are using the [Angular CLI](https://github.com/angular/angular-cli) you can add it to your `angular.json`: | ||
```json | ||
```diff | ||
"styles": [ | ||
{ | ||
"input": "src/styles.scss" | ||
}, | ||
{ | ||
"input": "node_modules/ngx-drag-to-select/ngx-drag-to-select.css" | ||
} | ||
"src/styles.scss", | ||
+ "node_modules/ngx-drag-to-select/ngx-drag-to-select.css" | ||
] | ||
``` | ||
**Using the sass package** | ||
**Using Sass** | ||
If you're using sass you can simply import the sass package. This allows you to [override the default variables](#overriding-sass-variables) to customize the library to your needs. | ||
If you're using Sass you can simply import `ngx-drag-to-select` into `src/styles.scss`. This allows you to [override the default variables](#overriding-sass-variables) to customize the library to your needs. | ||
```scss | ||
@import '~ngx-drag-to-select/scss/ngx-drag-to-select'; | ||
@import 'ngx-drag-to-select'; | ||
``` | ||
@@ -110,3 +103,3 @@ | ||
```ts | ||
import { DragToSelectModule } from 'ngx-drag-to-select'; | ||
import { value DragToSelectModule } from 'ngx-drag-to-select'; | ||
@@ -202,3 +195,3 @@ @NgModule({ | ||
```ts | ||
import { DragToSelectModule } from 'ngx-drag-to-select'; | ||
import { value DragToSelectModule } from 'ngx-drag-to-select'; | ||
@@ -520,3 +513,3 @@ @NgModule({ | ||
### Can I use this library with an older version of Angular? | ||
### <a id="versionOverview"></a> Can I use this library with an older version of Angular? | ||
@@ -523,0 +516,0 @@ Yep you totally can! But this also means you won't be able to use the latest features. We are not back porting new features due to the maintenance overhead it would create. Severe bugs and security issues, however, are back ported. |
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
409304
0
581