From b3d21f9f6744e7e49e7e0728cfb1b81641d10425 Mon Sep 17 00:00:00 2001 From: Halil ibrahim Kalkan Date: Thu, 14 Jun 2018 15:46:48 +0300 Subject: [PATCH] Added select2 standard npm package. --- .../abp.resourcemapping.js | 3 ++- npm/packs/aspnetcore.mvc.ui.theme.shared/package.json | 3 ++- npm/packs/select2/abp.resourcemapping.js | 11 +++++++++++ npm/packs/select2/package.json | 11 +++++++++++ 4 files changed, 26 insertions(+), 2 deletions(-) create mode 100644 npm/packs/select2/abp.resourcemapping.js create mode 100644 npm/packs/select2/package.json diff --git a/npm/packs/aspnetcore.mvc.ui.theme.shared/abp.resourcemapping.js b/npm/packs/aspnetcore.mvc.ui.theme.shared/abp.resourcemapping.js index fe1c1218af..2c924839fb 100644 --- a/npm/packs/aspnetcore.mvc.ui.theme.shared/abp.resourcemapping.js +++ b/npm/packs/aspnetcore.mvc.ui.theme.shared/abp.resourcemapping.js @@ -8,7 +8,8 @@ "../toastr/abp.resourcemapping.js", "../datatables.net-bs4/abp.resourcemapping.js", "../lodash/abp.resourcemapping.js", - "../timeago/abp.resourcemapping.js" + "../timeago/abp.resourcemapping.js", + "../select2/abp.resourcemapping.js" ], mappings: { diff --git a/npm/packs/aspnetcore.mvc.ui.theme.shared/package.json b/npm/packs/aspnetcore.mvc.ui.theme.shared/package.json index 61a2b687fb..badf42a1a1 100644 --- a/npm/packs/aspnetcore.mvc.ui.theme.shared/package.json +++ b/npm/packs/aspnetcore.mvc.ui.theme.shared/package.json @@ -14,6 +14,7 @@ "@abp/sweetalert": "^0.3.1", "@abp/toastr": "^0.3.1", "@abp/lodash": "^0.3.1", - "@abp/timeago": "^0.3.1" + "@abp/timeago": "^0.3.1", + "@abp/select2": "^0.3.1" } } diff --git a/npm/packs/select2/abp.resourcemapping.js b/npm/packs/select2/abp.resourcemapping.js new file mode 100644 index 0000000000..8f188e081d --- /dev/null +++ b/npm/packs/select2/abp.resourcemapping.js @@ -0,0 +1,11 @@ +module.exports = { + imports: [ + "../core/abp.resourcemapping.js" + ], + mappings: { + "@node_modules/select2/dist/css/select2.min.css": "@libs/select2/css/", + "@node_modules/select2/dist/js/select2.min.js": "@libs/select2/js/", + "@node_modules/select2/dist/js/select2.full.min.js": "@libs/select2/js/", + "@node_modules/select2/dist/js/i18n/*.js": "@libs/select2/js/i18n/" + } +} \ No newline at end of file diff --git a/npm/packs/select2/package.json b/npm/packs/select2/package.json new file mode 100644 index 0000000000..887f80828c --- /dev/null +++ b/npm/packs/select2/package.json @@ -0,0 +1,11 @@ +{ + "version": "0.3.1", + "name": "@abp/select2", + "publishConfig": { + "access": "public" + }, + "dependencies": { + "@abp/core": "^0.3.1", + "select2": "^4.0.5" + } +}