@stackline/angular-multiselect-dropdown 2.0.5 → 5.0.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 +68 -26
- package/angular2-multiselect-dropdown.ts +1 -0
- package/gulpfile.js +68 -0
- package/inline-resources.js +119 -0
- package/multiselect.component.css +733 -0
- package/package.json +101 -74
- package/src/app/angular2-multiselect-dropdown/angular2-multiselect-dropdown.ts +6 -0
- package/src/app/angular2-multiselect-dropdown/clickOutside.ts +60 -0
- package/src/app/angular2-multiselect-dropdown/index.ts +6 -0
- package/src/app/angular2-multiselect-dropdown/list-filter.ts +29 -0
- package/src/app/angular2-multiselect-dropdown/menu-item.ts +55 -0
- package/src/app/angular2-multiselect-dropdown/multiselect.component.html +88 -0
- package/src/app/angular2-multiselect-dropdown/multiselect.component.scss +710 -0
- package/src/app/angular2-multiselect-dropdown/multiselect.component.ts +405 -0
- package/src/app/angular2-multiselect-dropdown/multiselect.interface.ts +22 -0
- package/src/app/angular2-multiselect-dropdown/multiselect.model.ts +13 -0
- package/themes/custom.theme.css +1 -0
- package/themes/default.theme.css +1 -0
- package/tsconfig-aot.json +32 -0
- package/tsconfig.json +36 -0
- package/webpack-test.config.ts +70 -0
- package/webpack-umd.config.ts +98 -0
- package/fesm2022/stackline-angular-multiselect-dropdown.mjs +0 -2468
- package/themes/dark.theme.scss +0 -113
- package/types/stackline-angular-multiselect-dropdown.d.ts +0 -431
|
@@ -0,0 +1,98 @@
|
|
|
1
|
+
import * as webpack from 'webpack';
|
|
2
|
+
import * as path from 'path';
|
|
3
|
+
import * as fs from 'fs';
|
|
4
|
+
import * as angularExternals from 'webpack-angular-externals';
|
|
5
|
+
import * as rxjsExternals from 'webpack-rxjs-externals';
|
|
6
|
+
|
|
7
|
+
const pkg = JSON.parse(fs.readFileSync('./package.json').toString());
|
|
8
|
+
|
|
9
|
+
export default {
|
|
10
|
+
entry: {
|
|
11
|
+
'index.umd': './src/app/angular2-multiselect-dropdown/index.ts',
|
|
12
|
+
'index.umd.min': './src/app/angular2-multiselect-dropdown/index.ts',
|
|
13
|
+
'angular2-multiselect-dropdown.umd': './src/app/angular2-multiselect-dropdown/angular2-multiselect-dropdown.ts',
|
|
14
|
+
'angular2-multiselect-dropdown.umd.min': './src/app/angular2-multiselect-dropdown/angular2-multiselect-dropdown.ts'
|
|
15
|
+
},
|
|
16
|
+
output: {
|
|
17
|
+
path: path.join(__dirname, 'dist'),
|
|
18
|
+
filename: '[name].js',
|
|
19
|
+
libraryTarget: 'umd',
|
|
20
|
+
library: 'ticktock'
|
|
21
|
+
},
|
|
22
|
+
resolve: {
|
|
23
|
+
extensions: [ '.ts', '.js', '.json' ]
|
|
24
|
+
},
|
|
25
|
+
externals: [
|
|
26
|
+
angularExternals(),
|
|
27
|
+
rxjsExternals()
|
|
28
|
+
],
|
|
29
|
+
devtool: 'source-map',
|
|
30
|
+
module: {
|
|
31
|
+
rules: [
|
|
32
|
+
{
|
|
33
|
+
test: /\.ts$/,
|
|
34
|
+
use: [
|
|
35
|
+
{
|
|
36
|
+
loader: 'awesome-typescript-loader',
|
|
37
|
+
options: {
|
|
38
|
+
configFileName: 'tsconfig.json'
|
|
39
|
+
}
|
|
40
|
+
},
|
|
41
|
+
{
|
|
42
|
+
loader: 'angular2-template-loader'
|
|
43
|
+
}
|
|
44
|
+
],
|
|
45
|
+
exclude: [
|
|
46
|
+
/node_modules/,
|
|
47
|
+
/\.(spec|e2e)\.ts$/
|
|
48
|
+
]
|
|
49
|
+
},
|
|
50
|
+
|
|
51
|
+
{
|
|
52
|
+
test: /\.json$/,
|
|
53
|
+
use: 'json-loader'
|
|
54
|
+
},
|
|
55
|
+
|
|
56
|
+
{
|
|
57
|
+
test: /\.css$/,
|
|
58
|
+
use: ['to-string-loader', 'css-loader']
|
|
59
|
+
},
|
|
60
|
+
|
|
61
|
+
{
|
|
62
|
+
test: /\.scss$/,
|
|
63
|
+
use: ['to-string-loader', 'css-loader', 'sass-loader']
|
|
64
|
+
},
|
|
65
|
+
|
|
66
|
+
{
|
|
67
|
+
test: /\.html$/,
|
|
68
|
+
use: 'raw-loader'
|
|
69
|
+
}
|
|
70
|
+
]
|
|
71
|
+
},
|
|
72
|
+
plugins: [
|
|
73
|
+
new webpack.ContextReplacementPlugin(
|
|
74
|
+
/angular(\\|\/)core(\\|\/)@angular/,
|
|
75
|
+
path.join(__dirname, 'src')
|
|
76
|
+
),
|
|
77
|
+
|
|
78
|
+
new webpack.optimize.UglifyJsPlugin({
|
|
79
|
+
include: /\.min\.js$/,
|
|
80
|
+
sourceMap: true
|
|
81
|
+
}),
|
|
82
|
+
|
|
83
|
+
new webpack.BannerPlugin({
|
|
84
|
+
banner: `
|
|
85
|
+
/**
|
|
86
|
+
* ${pkg.name} - ${pkg.description}
|
|
87
|
+
* @version v${pkg.version}
|
|
88
|
+
* @author ${pkg.author.name}
|
|
89
|
+
* @link ${pkg.homepage}
|
|
90
|
+
* @license ${pkg.license}
|
|
91
|
+
*/
|
|
92
|
+
`.trim(),
|
|
93
|
+
raw: true,
|
|
94
|
+
entryOnly: true
|
|
95
|
+
})
|
|
96
|
+
|
|
97
|
+
]
|
|
98
|
+
} as webpack.Configuration;
|