ng-select2-component 8.0.5 → 9.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/CHANGELOG.md +30 -0
- package/README.md +44 -36
- package/{esm2015/lib/select2-const.js → esm2020/lib/select2-const.mjs} +48 -57
- package/esm2020/lib/select2-hint.component.mjs +11 -0
- package/esm2020/lib/select2-interfaces.mjs +2 -0
- package/esm2020/lib/select2-label.component.mjs +11 -0
- package/esm2020/lib/select2-utils.mjs +280 -0
- package/esm2020/lib/select2.component.mjs +871 -0
- package/esm2020/lib/select2.module.mjs +23 -0
- package/esm2020/ng-select2-component.mjs +5 -0
- package/esm2020/public_api.mjs +12 -0
- package/fesm2015/ng-select2-component.mjs +1241 -0
- package/fesm2015/ng-select2-component.mjs.map +1 -0
- package/fesm2020/ng-select2-component.mjs +1242 -0
- package/fesm2020/ng-select2-component.mjs.map +1 -0
- package/lib/select2-const.d.ts +8 -7
- package/lib/select2-const.d.ts.map +1 -0
- package/lib/select2-hint.component.d.ts +6 -2
- package/lib/select2-hint.component.d.ts.map +1 -0
- package/lib/select2-interfaces.d.ts +55 -54
- package/lib/select2-interfaces.d.ts.map +1 -0
- package/lib/select2-label.component.d.ts +6 -2
- package/lib/select2-label.component.d.ts.map +1 -0
- package/lib/select2-utils.d.ts +25 -20
- package/lib/select2-utils.d.ts.map +1 -0
- package/lib/select2.component.d.ts +225 -215
- package/lib/select2.component.d.ts.map +1 -0
- package/lib/select2.module.d.ts +14 -2
- package/lib/select2.module.d.ts.map +1 -0
- package/ng-select2-component.d.ts +6 -4
- package/ng-select2-component.d.ts.map +1 -0
- package/package.json +25 -13
- package/public_api.d.ts +9 -8
- package/public_api.d.ts.map +1 -0
- package/bundles/ng-select2-component.umd.js +0 -2577
- package/bundles/ng-select2-component.umd.js.map +0 -1
- package/bundles/ng-select2-component.umd.min.js +0 -2
- package/bundles/ng-select2-component.umd.min.js.map +0 -1
- package/esm2015/lib/select2-hint.component.js +0 -12
- package/esm2015/lib/select2-interfaces.js +0 -134
- package/esm2015/lib/select2-label.component.js +0 -12
- package/esm2015/lib/select2-utils.js +0 -388
- package/esm2015/lib/select2.component.js +0 -1494
- package/esm2015/lib/select2.module.js +0 -23
- package/esm2015/ng-select2-component.js +0 -10
- package/esm2015/public_api.js +0 -17
- package/fesm2015/ng-select2-component.js +0 -2124
- package/fesm2015/ng-select2-component.js.map +0 -1
- package/ng-select2-component.metadata.json +0 -1
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"ng-select2-component.umd.js","sources":["../../../projects/ng-select2-component/src/lib/select2-const.ts","../../../node_modules/tslib/tslib.es6.js","../../../projects/ng-select2-component/src/lib/select2-utils.ts","../../../projects/ng-select2-component/src/lib/select2.component.ts","../../../projects/ng-select2-component/src/lib/select2-hint.component.ts","../../../projects/ng-select2-component/src/lib/select2-label.component.ts","../../../projects/ng-select2-component/src/lib/select2.module.ts"],"sourcesContent":["export const timeout = 200;\n\nexport const unicodePatterns: { l: string; s: RegExp }[] = [\n { l: 'a', s: /[âï½áºÃ áâầấẫẩãÄÄằắẵẳȧǡäÇảåǻÇÈÈạáºáº·á¸Ä
â±¥É]/gi },\n { l: 'aa', s: /ê³/gi },\n { l: 'ae', s: /[æǽǣ]/gi },\n { l: 'ao', s: /êµ/gi },\n { l: 'au', s: /ê·/gi },\n { l: 'av', s: /[ê¹ê»]/gi },\n { l: 'ay', s: /ê½/gi },\n { l: 'b', s: /[âï½á¸á¸
á¸ÆÆÉ]/gi },\n { l: 'c', s: /[âï½ÄÄÄÄÃ§á¸ÆÈ¼ê¿â]/gi },\n { l: 'd', s: /[âï½á¸Äá¸á¸á¸á¸ÄÆÉÉêº]/gi },\n { l: 'dz', s: /[dzÇ]/gi },\n { l: 'e', s: /[âï½
èéêá»áº¿á»
á»áº½Äá¸á¸ÄÄëẻÄÈ
Èẹá»È©á¸Äá¸á¸ÉÉÇ]/gi },\n { l: 'f', s: /[âï½á¸Æê¼]/gi },\n { l: 'g', s: /[âï½ÇµÄḡÄÄ¡Ç§Ä£Ç¥É ê¡áµ¹ê¿]/gi },\n { l: 'h', s: /[âï½Ä¥á¸£á¸§ÈḥḩḫáºÄ§â±¨â±¶É¥]/gi },\n { l: 'hv', s: /Æ/gi },\n { l: 'i', s: /[âï½Ã¬ÃîĩīÄİïḯá»ÇÈÈá»Ä¯á¸É¨Ä±]/gi },\n { l: 'j', s: /[âï½ÄµÇ°É]/gi },\n { l: 'k', s: /[âï½á¸±Ç©á¸³Ä·á¸µÆâ±ªêêê
ê£]/gi },\n { l: 'l', s: /[âï½ÅÄºÄ¾á¸·á¸¹Ä¼á¸½á¸»Å¿ÅÆÉ«â±¡êêêê]/gi },\n { l: 'lj', s: /Ç/gi },\n { l: 'm', s: /[âï½á¸¿á¹á¹É±É¯]/gi },\n { l: 'n', s: /[âï½Ç¹Åñá¹
Åá¹Åá¹á¹ÆÉ²Åêê¥]/gi },\n { l: 'nj', s: /Ç/gi },\n { l: 'o', s: /[âï½Ã²Ã³Ã´á»á»á»á»Ãµá¹Èá¹Åá¹á¹Åȯȱöȫá»ÅÇÈÈÆ¡á»á»á»¡á»á»£á»á»Ç«ÇÃ¸Ç¿ÉÆêêɵ]/gi },\n { l: 'oi', s: /Æ£/gi },\n { l: 'oe', s: /Å/gi },\n { l: 'oo', s: /ê/gi },\n { l: 'ou', s: /È£/gi },\n { l: 'p', s: /[âï½á¹á¹Æ¥áµ½êêê]/gi },\n { l: 'q', s: /[â ï½Éêê]/gi },\n { l: 'r', s: /[â¡ï½Åá¹ÅÈÈá¹á¹Åá¹Éɽêê§ê]/gi },\n { l: 's', s: /[â¢ï½ÃáºÅá¹¥ÅṡšṧṣṩÈÅÈ¿ê©ê
áº]/gi },\n { l: 't', s: /[â£ï½á¹«áºÅ¥á¹ÈţṱṯŧÆÊⱦê]/gi },\n { l: 'tz', s: /ê©/gi },\n { l: 'u', s: /[â¤ï½Ã¹ÃºÃ»Å©á¹¹Å«á¹»ÅüÇÇÇÇủůűÇÈÈÆ°á»«á»©á»¯á»á»±á»¥á¹³Å³á¹·á¹µÊ]/gi },\n { l: 'v', s: /[â¥ï½á¹½á¹¿ÊêÊ]/gi },\n { l: 'vy', s: /ê¡/gi },\n { l: 'w', s: /[â¦ï½áºáºÅµáºáº
áºáºâ±³]/gi },\n { l: 'x', s: /[â§ï½áºáº]/gi },\n { l: 'y', s: /[â¨ï½á»³Ã½Å·á»¹È³áºÃ¿á»·áºá»µÆ´Éỿ]/gi },\n { l: 'z', s: /[â©ï½ÅºáºÅ¼Å¾áºáºÆ¶È¥Éⱬê£]/gi },\n];\n\nexport const defaultMinCountForSearch = 6;\n\nexport const protectRegexp = new RegExp('[\\\\-\\\\[\\\\]\\\\/\\\\{\\\\}\\\\(\\\\)\\\\*\\\\+\\\\?\\\\.\\\\\\\\\\\\^\\\\$\\\\|]', 'g');\n","/*! *****************************************************************************\r\nCopyright (c) Microsoft Corporation.\r\n\r\nPermission to use, copy, modify, and/or distribute this software for any\r\npurpose with or without fee is hereby granted.\r\n\r\nTHE SOFTWARE IS PROVIDED \"AS IS\" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH\r\nREGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY\r\nAND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,\r\nINDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM\r\nLOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR\r\nOTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR\r\nPERFORMANCE OF THIS SOFTWARE.\r\n***************************************************************************** */\r\n/* global Reflect, Promise */\r\n\r\nvar extendStatics = function(d, b) {\r\n extendStatics = Object.setPrototypeOf ||\r\n ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||\r\n function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };\r\n return extendStatics(d, b);\r\n};\r\n\r\nexport function __extends(d, b) {\r\n if (typeof b !== \"function\" && b !== null)\r\n throw new TypeError(\"Class extends value \" + String(b) + \" is not a constructor or null\");\r\n extendStatics(d, b);\r\n function __() { this.constructor = d; }\r\n d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\r\n}\r\n\r\nexport var __assign = function() {\r\n __assign = Object.assign || function __assign(t) {\r\n for (var s, i = 1, n = arguments.length; i < n; i++) {\r\n s = arguments[i];\r\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];\r\n }\r\n return t;\r\n }\r\n return __assign.apply(this, arguments);\r\n}\r\n\r\nexport function __rest(s, e) {\r\n var t = {};\r\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)\r\n t[p] = s[p];\r\n if (s != null && typeof Object.getOwnPropertySymbols === \"function\")\r\n for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {\r\n if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))\r\n t[p[i]] = s[p[i]];\r\n }\r\n return t;\r\n}\r\n\r\nexport function __decorate(decorators, target, key, desc) {\r\n var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;\r\n if (typeof Reflect === \"object\" && typeof Reflect.decorate === \"function\") r = Reflect.decorate(decorators, target, key, desc);\r\n else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;\r\n return c > 3 && r && Object.defineProperty(target, key, r), r;\r\n}\r\n\r\nexport function __param(paramIndex, decorator) {\r\n return function (target, key) { decorator(target, key, paramIndex); }\r\n}\r\n\r\nexport function __metadata(metadataKey, metadataValue) {\r\n if (typeof Reflect === \"object\" && typeof Reflect.metadata === \"function\") return Reflect.metadata(metadataKey, metadataValue);\r\n}\r\n\r\nexport function __awaiter(thisArg, _arguments, P, generator) {\r\n function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }\r\n return new (P || (P = Promise))(function (resolve, reject) {\r\n function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }\r\n function rejected(value) { try { step(generator[\"throw\"](value)); } catch (e) { reject(e); } }\r\n function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }\r\n step((generator = generator.apply(thisArg, _arguments || [])).next());\r\n });\r\n}\r\n\r\nexport function __generator(thisArg, body) {\r\n var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;\r\n return g = { next: verb(0), \"throw\": verb(1), \"return\": verb(2) }, typeof Symbol === \"function\" && (g[Symbol.iterator] = function() { return this; }), g;\r\n function verb(n) { return function (v) { return step([n, v]); }; }\r\n function step(op) {\r\n if (f) throw new TypeError(\"Generator is already executing.\");\r\n while (_) try {\r\n if (f = 1, y && (t = op[0] & 2 ? y[\"return\"] : op[0] ? y[\"throw\"] || ((t = y[\"return\"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;\r\n if (y = 0, t) op = [op[0] & 2, t.value];\r\n switch (op[0]) {\r\n case 0: case 1: t = op; break;\r\n case 4: _.label++; return { value: op[1], done: false };\r\n case 5: _.label++; y = op[1]; op = [0]; continue;\r\n case 7: op = _.ops.pop(); _.trys.pop(); continue;\r\n default:\r\n if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }\r\n if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }\r\n if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }\r\n if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }\r\n if (t[2]) _.ops.pop();\r\n _.trys.pop(); continue;\r\n }\r\n op = body.call(thisArg, _);\r\n } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }\r\n if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };\r\n }\r\n}\r\n\r\nexport var __createBinding = Object.create ? (function(o, m, k, k2) {\r\n if (k2 === undefined) k2 = k;\r\n Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });\r\n}) : (function(o, m, k, k2) {\r\n if (k2 === undefined) k2 = k;\r\n o[k2] = m[k];\r\n});\r\n\r\nexport function __exportStar(m, o) {\r\n for (var p in m) if (p !== \"default\" && !Object.prototype.hasOwnProperty.call(o, p)) __createBinding(o, m, p);\r\n}\r\n\r\nexport function __values(o) {\r\n var s = typeof Symbol === \"function\" && Symbol.iterator, m = s && o[s], i = 0;\r\n if (m) return m.call(o);\r\n if (o && typeof o.length === \"number\") return {\r\n next: function () {\r\n if (o && i >= o.length) o = void 0;\r\n return { value: o && o[i++], done: !o };\r\n }\r\n };\r\n throw new TypeError(s ? \"Object is not iterable.\" : \"Symbol.iterator is not defined.\");\r\n}\r\n\r\nexport function __read(o, n) {\r\n var m = typeof Symbol === \"function\" && o[Symbol.iterator];\r\n if (!m) return o;\r\n var i = m.call(o), r, ar = [], e;\r\n try {\r\n while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);\r\n }\r\n catch (error) { e = { error: error }; }\r\n finally {\r\n try {\r\n if (r && !r.done && (m = i[\"return\"])) m.call(i);\r\n }\r\n finally { if (e) throw e.error; }\r\n }\r\n return ar;\r\n}\r\n\r\n/** @deprecated */\r\nexport function __spread() {\r\n for (var ar = [], i = 0; i < arguments.length; i++)\r\n ar = ar.concat(__read(arguments[i]));\r\n return ar;\r\n}\r\n\r\n/** @deprecated */\r\nexport function __spreadArrays() {\r\n for (var s = 0, i = 0, il = arguments.length; i < il; i++) s += arguments[i].length;\r\n for (var r = Array(s), k = 0, i = 0; i < il; i++)\r\n for (var a = arguments[i], j = 0, jl = a.length; j < jl; j++, k++)\r\n r[k] = a[j];\r\n return r;\r\n}\r\n\r\nexport function __spreadArray(to, from, pack) {\r\n if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) {\r\n if (ar || !(i in from)) {\r\n if (!ar) ar = Array.prototype.slice.call(from, 0, i);\r\n ar[i] = from[i];\r\n }\r\n }\r\n return to.concat(ar || from);\r\n}\r\n\r\nexport function __await(v) {\r\n return this instanceof __await ? (this.v = v, this) : new __await(v);\r\n}\r\n\r\nexport function __asyncGenerator(thisArg, _arguments, generator) {\r\n if (!Symbol.asyncIterator) throw new TypeError(\"Symbol.asyncIterator is not defined.\");\r\n var g = generator.apply(thisArg, _arguments || []), i, q = [];\r\n return i = {}, verb(\"next\"), verb(\"throw\"), verb(\"return\"), i[Symbol.asyncIterator] = function () { return this; }, i;\r\n function verb(n) { if (g[n]) i[n] = function (v) { return new Promise(function (a, b) { q.push([n, v, a, b]) > 1 || resume(n, v); }); }; }\r\n function resume(n, v) { try { step(g[n](v)); } catch (e) { settle(q[0][3], e); } }\r\n function step(r) { r.value instanceof __await ? Promise.resolve(r.value.v).then(fulfill, reject) : settle(q[0][2], r); }\r\n function fulfill(value) { resume(\"next\", value); }\r\n function reject(value) { resume(\"throw\", value); }\r\n function settle(f, v) { if (f(v), q.shift(), q.length) resume(q[0][0], q[0][1]); }\r\n}\r\n\r\nexport function __asyncDelegator(o) {\r\n var i, p;\r\n return i = {}, verb(\"next\"), verb(\"throw\", function (e) { throw e; }), verb(\"return\"), i[Symbol.iterator] = function () { return this; }, i;\r\n function verb(n, f) { i[n] = o[n] ? function (v) { return (p = !p) ? { value: __await(o[n](v)), done: n === \"return\" } : f ? f(v) : v; } : f; }\r\n}\r\n\r\nexport function __asyncValues(o) {\r\n if (!Symbol.asyncIterator) throw new TypeError(\"Symbol.asyncIterator is not defined.\");\r\n var m = o[Symbol.asyncIterator], i;\r\n return m ? m.call(o) : (o = typeof __values === \"function\" ? __values(o) : o[Symbol.iterator](), i = {}, verb(\"next\"), verb(\"throw\"), verb(\"return\"), i[Symbol.asyncIterator] = function () { return this; }, i);\r\n function verb(n) { i[n] = o[n] && function (v) { return new Promise(function (resolve, reject) { v = o[n](v), settle(resolve, reject, v.done, v.value); }); }; }\r\n function settle(resolve, reject, d, v) { Promise.resolve(v).then(function(v) { resolve({ value: v, done: d }); }, reject); }\r\n}\r\n\r\nexport function __makeTemplateObject(cooked, raw) {\r\n if (Object.defineProperty) { Object.defineProperty(cooked, \"raw\", { value: raw }); } else { cooked.raw = raw; }\r\n return cooked;\r\n};\r\n\r\nvar __setModuleDefault = Object.create ? (function(o, v) {\r\n Object.defineProperty(o, \"default\", { enumerable: true, value: v });\r\n}) : function(o, v) {\r\n o[\"default\"] = v;\r\n};\r\n\r\nexport function __importStar(mod) {\r\n if (mod && mod.__esModule) return mod;\r\n var result = {};\r\n if (mod != null) for (var k in mod) if (k !== \"default\" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);\r\n __setModuleDefault(result, mod);\r\n return result;\r\n}\r\n\r\nexport function __importDefault(mod) {\r\n return (mod && mod.__esModule) ? mod : { default: mod };\r\n}\r\n\r\nexport function __classPrivateFieldGet(receiver, state, kind, f) {\r\n if (kind === \"a\" && !f) throw new TypeError(\"Private accessor was defined without a getter\");\r\n if (typeof state === \"function\" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError(\"Cannot read private member from an object whose class did not declare it\");\r\n return kind === \"m\" ? f : kind === \"a\" ? f.call(receiver) : f ? f.value : state.get(receiver);\r\n}\r\n\r\nexport function __classPrivateFieldSet(receiver, state, value, kind, f) {\r\n if (kind === \"m\") throw new TypeError(\"Private method is not writable\");\r\n if (kind === \"a\" && !f) throw new TypeError(\"Private accessor was defined without a setter\");\r\n if (typeof state === \"function\" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError(\"Cannot write private member to an object whose class did not declare it\");\r\n return (kind === \"a\" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value)), value;\r\n}\r\n","import { defaultMinCountForSearch, protectRegexp, unicodePatterns } from './select2-const';\nimport { Select2Data, Select2Group, Select2Option, Select2UpdateValue, Select2Value } from './select2-interfaces';\n\nexport class Select2Utils {\n static getOptionByValue(data: Select2Data, value: Select2Value | null | undefined) {\n if (Array.isArray(data)) {\n for (const groupOrOption of data) {\n const options = (groupOrOption as Select2Group).options;\n if (options) {\n for (const option of options) {\n if (option.value === value) {\n return option;\n }\n }\n } else {\n if ((groupOrOption as Select2Option).value === value) {\n return groupOrOption as Select2Option;\n }\n }\n }\n }\n return null;\n }\n\n static getOptionsByValue(\n data: Select2Data,\n value: Select2UpdateValue | null | undefined,\n multiple: boolean | null | undefined,\n ) {\n if (multiple) {\n const values: Select2Value[] = Array.isArray(value) ? value : [];\n const result: Select2Option[] = [];\n for (const v of values) {\n const option = Select2Utils.getOptionByValue(data, v);\n if (option) {\n result.push(option);\n }\n }\n return result;\n }\n return Select2Utils.getOptionByValue(data, value as Select2Value | null | undefined);\n }\n\n static getFirstAvailableOption(data: Select2Data) {\n if (Array.isArray(data)) {\n for (const groupOrOption of data) {\n const options = (groupOrOption as Select2Group).options;\n if (options) {\n for (const option of options) {\n if (!option.disabled) {\n return option.value;\n }\n }\n } else {\n const option = groupOrOption as Select2Option;\n if (!option.disabled) {\n return option.value;\n }\n }\n }\n }\n return null;\n }\n\n private static getOptionsCount(data: Select2Data) {\n let count = 0;\n if (Array.isArray(data)) {\n for (const groupOrOption of data) {\n const options = (groupOrOption as Select2Group).options;\n if (options) {\n count += options.length;\n } else {\n count++;\n }\n }\n }\n return count;\n }\n\n static valueIsNotInFilteredData(filteredData: Select2Data, value: Select2Value | null | undefined) {\n if (Select2Utils.isNullOrUndefined(value)) {\n return true;\n }\n for (const groupOrOption of filteredData) {\n const options = (groupOrOption as Select2Group).options;\n if (options) {\n for (const option of options) {\n if (option.value === value) {\n return false;\n }\n }\n } else {\n if ((groupOrOption as Select2Option).value === value) {\n return false;\n }\n }\n }\n return true;\n }\n\n // tslint:disable-next-line:cognitive-complexity\n static getPreviousOption(filteredData: Select2Data, hoveringValue: Select2Value | null | undefined) {\n let findIt = Select2Utils.isNullOrUndefined(hoveringValue);\n for (let i = filteredData.length - 1; i >= 0; i--) {\n const groupOrOption = filteredData[i];\n const options = (groupOrOption as Select2Group).options;\n if (options) {\n for (let j = options.length - 1; j >= 0; j--) {\n const option = options[j];\n if (findIt) {\n if (!option.disabled && !option.hide) {\n return option;\n }\n }\n if (!findIt) {\n findIt = option.value === hoveringValue;\n }\n }\n } else {\n const option = groupOrOption as Select2Option;\n if (findIt) {\n if (!option.disabled && !option.hide) {\n return option;\n }\n }\n if (!findIt) {\n findIt = option.value === hoveringValue;\n }\n }\n }\n return null;\n }\n // tslint:disable-next-line:cognitive-complexity\n static getNextOption(filteredData: Select2Data, hoveringValue: Select2Value | null | undefined) {\n let findIt = Select2Utils.isNullOrUndefined(hoveringValue);\n for (const groupOrOption of filteredData) {\n const options = (groupOrOption as Select2Group).options;\n if (options) {\n for (const option of options) {\n if (findIt) {\n if (!option.disabled && !option.hide) {\n return option;\n }\n } else if (!findIt) {\n findIt = option.value === hoveringValue;\n }\n }\n } else {\n const option = groupOrOption as Select2Option;\n if (findIt) {\n if (!option.disabled && !option.hide) {\n return option;\n }\n } else if (!findIt) {\n findIt = option.value === hoveringValue;\n }\n }\n }\n return null;\n }\n\n private static isNullOrUndefined(value: any) {\n return value === null || value === undefined;\n }\n\n private static containSearchText(\n label: string,\n searchText: string | null,\n editPattern: ((str: string) => string) | undefined,\n ): boolean {\n return searchText\n ? Select2Utils.formatSansUnicode(label).match(\n new RegExp(Select2Utils.formatPattern(searchText, editPattern), 'i'),\n ) !== null\n : true;\n }\n\n private static protectPattern(str: string): string {\n return str.replace(protectRegexp, '\\\\$&');\n }\n\n private static formatSansUnicode(str: string): string {\n for (const unicodePattern of unicodePatterns) {\n str = str.replace(unicodePattern.s, unicodePattern.l);\n }\n return str;\n }\n\n private static formatPattern(str: string, editPattern: ((str: string) => string) | undefined): string {\n str = Select2Utils.formatSansUnicode(Select2Utils.protectPattern(str));\n\n if (editPattern && typeof editPattern === 'function') {\n str = editPattern(str);\n }\n return str;\n }\n\n static getFilteredData(\n data: Select2Data,\n searchText: string | null,\n editPattern?: (str: string) => string,\n ): Select2Data {\n if (searchText) {\n const result: Select2Data = [];\n for (const groupOrOption of data) {\n const options = (groupOrOption as Select2Group).options;\n if (options) {\n if (options.some(group => Select2Utils.containSearchText(group.label, searchText, editPattern))) {\n const filteredOptions = options.filter(group =>\n Select2Utils.containSearchText(group.label, searchText, editPattern),\n );\n result.push({\n label: groupOrOption.label,\n options: filteredOptions,\n });\n }\n } else if (Select2Utils.containSearchText(groupOrOption.label, searchText, editPattern)) {\n result.push(groupOrOption);\n }\n }\n return result;\n } else {\n return data;\n }\n }\n\n static getFilteredSelectedData(\n data: Select2Data,\n selectedOptions: Select2Option | Select2Option[] | null,\n ): Select2Data {\n const result: Select2Data = [];\n for (const groupOrOption of data) {\n const options = (groupOrOption as Select2Group).options;\n if (options) {\n const filteredOptions = options.filter(\n group => Select2Utils.isSelected(selectedOptions, group, true) === 'false',\n );\n if (filteredOptions.length) {\n result.push({\n label: groupOrOption.label,\n options: filteredOptions,\n });\n }\n } else if (Select2Utils.isSelected(selectedOptions, groupOrOption as Select2Option, true) === 'false') {\n result.push(groupOrOption);\n }\n }\n return result;\n }\n\n static isSearchboxHiddex(data: Select2Data, minCountForSearch?: number | string): boolean {\n if (\n minCountForSearch === '' ||\n minCountForSearch === undefined ||\n minCountForSearch === null ||\n isNaN(+minCountForSearch)\n ) {\n minCountForSearch = defaultMinCountForSearch;\n }\n const optionCount = Select2Utils.getOptionsCount(data);\n return optionCount < +minCountForSearch;\n }\n\n static isSelected(\n options: Select2Option | Select2Option[] | null,\n option: Select2Option,\n multiple: boolean | null | undefined,\n ) {\n return multiple\n ? options && (options as Select2Option[]).some(op => op.value === option.value)\n ? 'true'\n : 'false'\n : options && option.value === (options as Select2Option).value\n ? 'true'\n : 'false';\n }\n\n static removeSelection(options: Select2Option | Select2Option[] | null, option: Select2Option) {\n for (let i = 0; i < (options as Select2Option[]).length; i++) {\n if ((options as Select2Option[])[i].value === option.value) {\n (options as Select2Option[]).splice(i, 1);\n return;\n }\n }\n }\n}\n","import {\n CdkConnectedOverlay, ConnectedOverlayPositionChange, ConnectedPosition, VerticalConnectionPos,\n} from '@angular/cdk/overlay';\nimport { ViewportRuler } from '@angular/cdk/scrolling';\nimport type { ElementRef, QueryList } from '@angular/core';\nimport {\n AfterViewInit, Attribute, ChangeDetectorRef, Component, DoCheck, EventEmitter, HostBinding, Input, OnDestroy,\n OnInit, Optional, Output, Self, TemplateRef, ViewChild, ViewChildren,\n} from '@angular/core';\nimport { ControlValueAccessor, FormGroupDirective, NgControl, NgForm } from '@angular/forms';\n\nimport { Subject } from 'rxjs';\n\nimport { timeout } from './select2-const';\nimport {\n Select2Data, Select2Group, Select2Option, Select2RemoveEvent, Select2ScrollEvent, Select2SearchEvent,\n Select2UpdateEvent, Select2UpdateValue, Select2Value,\n} from './select2-interfaces';\nimport { Select2Utils } from './select2-utils';\n\nlet nextUniqueId = 0;\n\nconst displaySearchStatusList = ['default', 'hidden', 'always'];\n\n@Component({\n selector: 'select2',\n templateUrl: './select2.component.html',\n styleUrls: ['./select2.component.scss'],\n})\nexport class Select2 implements ControlValueAccessor, OnInit, OnDestroy, DoCheck, AfterViewInit {\n /** data of options & optiongrps */\n @Input() data!: Select2Data;\n @Input() minCharForSearch = 0;\n @Input() displaySearchStatus: 'default' | 'hidden' | 'always';\n @Input() placeholder: string;\n @Input() customSearchEnabled: boolean;\n @Input() limitSelection = 0;\n @Input() listPosition: 'above' | 'below' | 'auto' = 'below';\n\n @Input()\n get multiple(): any {\n return this._multiple;\n }\n set multiple(value: any) {\n this._multiple = this._coerceBooleanProperty(value);\n this.ngOnInit();\n }\n\n /** use the material style */\n @Input()\n get overlay(): any {\n return this._overlay;\n }\n set overlay(value: any) {\n this._overlay = this._coerceBooleanProperty(value);\n }\n\n /** use the material style */\n @Input() styleMode: 'material' | 'noStyle' | 'default' = 'default';\n\n /** message when no result */\n @Input() noResultMessage: string;\n\n /** infinite scroll distance */\n @Input() infiniteScrollDistance = 1.5;\n\n /** infinite scroll distance */\n @Input() infiniteScrollThrottle = 150;\n\n /** infinite scroll activated */\n @Input()\n get infiniteScroll(): any {\n return this._infiniteScroll;\n }\n set infiniteScroll(value: any) {\n this._infiniteScroll = this._coerceBooleanProperty(value);\n }\n\n /** use it for change the pattern of the filter search */\n @Input() editPattern: (str: string) => string;\n\n /** template for formating */\n @Input() templates: TemplateRef<any> | { [key: string]: TemplateRef<any> };\n\n /** the max height of the results container when opening the select */\n @Input() resultMaxHeight = '200px';\n\n @Output() update = new EventEmitter<Select2UpdateEvent<Select2UpdateValue>>();\n @Output() open = new EventEmitter<Select2>();\n @Output() close = new EventEmitter<Select2>();\n @Output() focus = new EventEmitter<Select2>();\n @Output() blur = new EventEmitter<Select2>();\n @Output() search = new EventEmitter<Select2SearchEvent<Select2UpdateValue>>();\n @Output() scroll = new EventEmitter<Select2ScrollEvent>();\n @Output() removeOption = new EventEmitter<Select2RemoveEvent<Select2UpdateValue>>();\n\n option: Select2Option | Select2Option[] | null = null;\n isOpen = false;\n searchStyle: string;\n\n /** Whether the element is focused or not. */\n focused = false;\n\n filteredData: Select2Data;\n\n get select2Options() {\n return this.multiple ? (this.option as Select2Option[]) : null;\n }\n\n get select2Option() {\n return this.multiple ? null : (this.option as Select2Option);\n }\n\n get searchText() {\n return this.innerSearchText;\n }\n\n set searchText(text: string) {\n if (this.customSearchEnabled) {\n this.search.emit({\n component: this,\n value: this._value,\n search: text,\n });\n }\n this.innerSearchText = text;\n }\n\n /** minimal data of show the search field */\n @Input()\n get minCountForSearch(): number | string {\n return this._minCountForSearch;\n }\n\n set minCountForSearch(value: number | string) {\n this._minCountForSearch = value;\n this.updateSearchBox();\n }\n\n /** Unique id of the element. */\n @Input()\n @HostBinding('id')\n get id() {\n return this._id;\n }\n set id(value: string) {\n this._id = value || this._uid;\n }\n\n /** Whether the element is required. */\n @Input()\n get required() {\n return this._required;\n }\n set required(value: any) {\n this._required = this._coerceBooleanProperty(value);\n }\n\n /** Whether selected items should be hidden. */\n @Input()\n get disabled() {\n return this._control ? this._control.disabled : this._disabled;\n }\n set disabled(value: any) {\n this._disabled = this._coerceBooleanProperty(value);\n }\n\n /** Whether items are hidden when has. */\n @Input()\n get hideSelectedItems() {\n return this._hideSelectedItems;\n }\n set hideSelectedItems(value: any) {\n this._hideSelectedItems = this._coerceBooleanProperty(value);\n }\n\n /** Whether the element is readonly. */\n @Input()\n get readonly() {\n return this._readonly;\n }\n set readonly(value: any) {\n this._readonly = this._coerceBooleanProperty(value);\n }\n\n /** The input element's value. */\n @Input()\n get value() {\n return this._value;\n }\n\n set value(value: Select2UpdateValue) {\n if (this.testValueChange(this._value, value)) {\n setTimeout(() => {\n this._value = value;\n this.writeValue(value);\n }, 10);\n }\n }\n\n /** Tab index for the select2 element. */\n @Input()\n get tabIndex(): number {\n return this.disabled ? -1 : this._tabIndex;\n }\n\n set tabIndex(value: number) {\n if (typeof value !== 'undefined') {\n this._tabIndex = value;\n }\n }\n\n /** reset with no selected value */\n @Input()\n get resettable() {\n return this._resettable;\n }\n set resettable(value: any) {\n this._resettable = this._coerceBooleanProperty(value);\n }\n\n @HostBinding('attr.aria-invalid')\n get ariaInvalid(): boolean {\n return this._isErrorState();\n }\n\n @HostBinding('class.material')\n get classMaterial(): boolean {\n return this.styleMode === 'material';\n }\n\n @HostBinding('class.nostyle')\n get classNostyle(): boolean {\n return this.styleMode === 'noStyle';\n }\n\n @HostBinding('class.select2-above')\n get select2above(): boolean {\n return !this.overlay ? this.listPosition === 'above' : this._isAbobeOverlay();\n }\n\n overlayWidth: number;\n overlayHeight: number;\n _triggerRect: ClientRect;\n _dropdownRect: ClientRect;\n\n get _positions(): ConnectedPosition[] {\n if (this.listPosition === 'auto') {\n [\n {\n originX: 'start',\n originY: 'bottom',\n overlayX: 'start',\n overlayY: 'bottom',\n },\n {\n originX: 'start',\n originY: 'top',\n overlayX: 'start',\n overlayY: 'top',\n },\n ];\n } else {\n return null;\n }\n }\n private _minCountForSearch?: number | string;\n\n @ViewChild(CdkConnectedOverlay)\n private cdkConnectedOverlay: CdkConnectedOverlay;\n\n @ViewChild('selection', { static: true })\n private selection: ElementRef<HTMLElement>;\n @ViewChild('results') private resultContainer: ElementRef<HTMLElement>;\n @ViewChildren('result') private results: QueryList<ElementRef>;\n @ViewChild('searchInput') private searchInput: ElementRef<HTMLElement>;\n @ViewChild('dropdown') private dropdown: ElementRef<HTMLElement>;\n\n private hoveringValue: Select2Value | null | undefined = null;\n private innerSearchText = '';\n private isSearchboxHidden: boolean;\n\n private selectionElement: HTMLElement;\n\n private get resultsElement(): HTMLElement {\n return this.resultContainer?.nativeElement;\n }\n\n private _stateChanges = new Subject<void>();\n\n /** Tab index for the element. */\n private _tabIndex: number;\n\n private _disabled = false;\n private _required = false;\n private _readonly = false;\n private _multiple = false;\n private _overlay = false;\n private _resettable = false;\n private _hideSelectedItems = false;\n private _clickDetection = false;\n private _clickDetectionFc: (e: MouseEvent) => void;\n private _id: string;\n private _uid = `select2-${nextUniqueId++}`;\n private _value: Select2UpdateValue;\n private _previousNativeValue: Select2UpdateValue;\n private _infiniteScroll = true;\n private _overlayPosition: VerticalConnectionPos;\n\n constructor(\n protected _viewportRuler: ViewportRuler,\n private _changeDetectorRef: ChangeDetectorRef,\n @Optional() private _parentForm: NgForm,\n @Optional() private _parentFormGroup: FormGroupDirective,\n @Self() @Optional() public _control: NgControl,\n @Attribute('tabindex') tabIndex: string,\n ) {\n this.id = this.id;\n this._tabIndex = parseInt(tabIndex, 10) || 0;\n\n if (this._control) {\n this._control.valueAccessor = this;\n }\n\n this._clickDetectionFc = this.clickDetection.bind(this);\n }\n\n /** View -> model callback called when select has been touched */\n private _onTouched = () => {\n // do nothing\n };\n\n /** View -> model callback called when value changes */\n private _onChange: (value: any) => void = () => {\n // do nothing\n };\n\n ngOnInit() {\n this._viewportRuler.change(100).subscribe(() => {\n if (this.isOpen) {\n this.triggerRect();\n }\n });\n\n const option = Select2Utils.getOptionsByValue(\n this.data,\n this._control ? this._control.value : this.value,\n this.multiple,\n );\n if (option !== null) {\n this.option = option;\n }\n if (!Array.isArray(option)) {\n this.hoveringValue = this.value as string | undefined;\n }\n this.updateSearchBox();\n }\n\n ngAfterViewInit() {\n this.cdkConnectedOverlay.positionChange.subscribe((posChange: ConnectedOverlayPositionChange) => {\n if (\n this.listPosition === 'auto' &&\n posChange.connectionPair?.originY &&\n this._overlayPosition !== posChange.connectionPair.originY\n ) {\n this.triggerRect();\n this._overlayPosition = posChange.connectionPair.originY;\n this._changeDetectorRef.detectChanges();\n }\n });\n\n this.selectionElement = this.selection.nativeElement;\n this.triggerRect();\n }\n\n ngDoCheck() {\n this.updateSearchBox();\n this._dirtyCheckNativeValue();\n if (this._triggerRect) {\n if (this.overlayWidth !== this._triggerRect.width) {\n this.overlayWidth = this._triggerRect.width;\n }\n if (this._dropdownRect?.height > 0 && this.overlayHeight !== this._dropdownRect.height) {\n this.overlayHeight = this.listPosition === 'auto' ? this._dropdownRect.height : 0;\n }\n }\n }\n\n ngOnDestroy() {\n window.document.body.removeEventListener('click', this._clickDetectionFc);\n }\n\n updateSearchBox() {\n const hidden = this.customSearchEnabled\n ? false\n : Select2Utils.isSearchboxHiddex(this.data, this._minCountForSearch);\n if (this.isSearchboxHidden !== hidden) {\n this.isSearchboxHidden = hidden;\n }\n }\n\n hideSearch(): boolean {\n const displaySearchStatus =\n displaySearchStatusList.indexOf(this.displaySearchStatus) > -1 ? this.displaySearchStatus : 'default';\n return (displaySearchStatus === 'default' && this.isSearchboxHidden) || displaySearchStatus === 'hidden';\n }\n\n getOptionStyle(option: Select2Option) {\n return (\n 'select2-results__option ' +\n (option.hide ? 'select2-results__option--hide ' : '') +\n (option.value === this.hoveringValue ? 'select2-results__option--highlighted ' : '') +\n (option.classes || '')\n );\n }\n\n mouseenter(option: Select2Option) {\n if (!option.disabled) {\n this.hoveringValue = option.value;\n }\n }\n\n click(option: Select2Option) {\n if (this.testSelection(option)) {\n this.select(option);\n }\n }\n\n reset(e: MouseEvent) {\n this.select(null);\n\n e.preventDefault();\n e.stopPropagation();\n }\n\n prevChange(event: Event) {\n event.stopPropagation();\n }\n\n toggleOpenAndClose() {\n if (this.disabled) {\n return;\n }\n this._focus(true);\n this.isOpen = !this.isOpen;\n\n if (this.isOpen) {\n this.innerSearchText = '';\n this.updateFilteredData();\n this._focusSearchboxOrResultsElement();\n\n setTimeout(() => {\n if (this.option) {\n const option: Select2Option = this.option instanceof Array ? this.option[0] : this.option;\n this.updateScrollFromOption(option);\n } else if (this.resultsElement) {\n this.resultsElement.scrollTop = 0;\n }\n setTimeout(() => {\n this.triggerRect();\n this.cdkConnectedOverlay?.overlayRef?.updatePosition();\n }, 100);\n });\n this.open.emit(this);\n } else {\n this.close.emit(this);\n }\n\n if (this.isOpen && !this._clickDetection) {\n setTimeout(() => {\n window.document.body.addEventListener('click', this._clickDetectionFc, false);\n this._clickDetection = true;\n }, timeout);\n }\n\n this._changeDetectorRef.markForCheck();\n }\n\n hasTemplate(option: Select2Option | Select2Group, defaut: string) {\n return (\n this.templates instanceof TemplateRef ||\n this.templates?.[option.templateId] instanceof TemplateRef ||\n this.templates?.[defaut] instanceof TemplateRef\n );\n }\n\n getTemplate(option: Select2Option | Select2Group, defaut: string) {\n return this.hasTemplate(option, defaut)\n ? this.templates[option.templateId] || this.templates[defaut] || this.templates\n : undefined;\n }\n\n triggerRect() {\n this._triggerRect = this.selectionElement.getBoundingClientRect();\n this._dropdownRect = this.dropdown?.nativeElement\n ? this.dropdown.nativeElement.getBoundingClientRect()\n : undefined;\n }\n\n private testSelection(option: Select2Option) {\n if (option.disabled) {\n return false;\n }\n\n if (\n !this.multiple ||\n !this.limitSelection ||\n (Array.isArray(this._value) && this._value.length < this.limitSelection)\n ) {\n return true;\n }\n return false;\n }\n\n private testValueChange(value1: Select2UpdateValue, value2: Select2UpdateValue) {\n if (\n ((value1 === null || value1 === undefined) && (value2 === null || value2 === undefined)) ||\n value1 === value2\n ) {\n return false;\n }\n if (\n this.multiple &&\n (value1 as Select2Value[])?.length &&\n (value2 as Select2Value[])?.length &&\n (value1 as Select2Value[]).length === (value2 as Select2Value[]).length\n ) {\n for (const e1 of value1 as Select2Value[]) {\n const test = (value2 as Select2Value[]).indexOf(e1) > -1;\n if (!test) {\n return true;\n }\n }\n return false;\n }\n return true;\n }\n\n private updateFilteredData() {\n setTimeout(() => {\n let result = this.data;\n if (this.multiple && this.hideSelectedItems) {\n result = Select2Utils.getFilteredSelectedData(result, this.option);\n }\n\n if (!this.customSearchEnabled && this.searchText && this.searchText.length >= +this.minCharForSearch) {\n result = Select2Utils.getFilteredData(result, this.searchText, this.editPattern);\n }\n\n if (Select2Utils.valueIsNotInFilteredData(result, this.hoveringValue)) {\n this.hoveringValue = Select2Utils.getFirstAvailableOption(result);\n }\n\n this.filteredData = result;\n this._changeDetectorRef.markForCheck();\n });\n }\n\n private clickDetection(e: MouseEvent) {\n if (!this.ifParentContainsClass(e.target as HTMLElement, 'selection')) {\n if (this.isOpen && !this.ifParentContainsClass(e.target as HTMLElement, 'select2-dropdown')) {\n this.toggleOpenAndClose();\n }\n if (!this.ifParentContainsId(e.target as HTMLElement, this._id)) {\n this.clickExit();\n }\n } else if (this.isOpen && !this.ifParentContainsId(e.target as HTMLElement, this._id)) {\n this.toggleOpenAndClose();\n this.clickExit();\n }\n }\n\n private clickExit() {\n this._focus(false);\n window.document.body.removeEventListener('click', this._clickDetectionFc);\n this._clickDetection = false;\n }\n\n private ifParentContainsClass(element: HTMLElement, cssClass: string): boolean {\n return this.getParentElementByClass(element, cssClass) !== null;\n }\n\n private ifParentContainsId(element: HTMLElement, id: string): boolean {\n return this.getParentElementById(element, id) !== null;\n }\n\n private getParentElementByClass(element: HTMLElement, cssClass: string): HTMLElement | null {\n if (this.containClasses(element, cssClass.trim().split(/\\s+/))) {\n return element;\n }\n return element.parentElement ? this.getParentElementByClass(element.parentElement, cssClass) : null;\n }\n\n private getParentElementById(element: HTMLElement, id: string): HTMLElement | null {\n if (element.id === id) {\n return element;\n }\n return element.parentElement ? this.getParentElementById(element.parentElement, id) : null;\n }\n\n private containClasses(element: HTMLElement, cssClasses: string[]): boolean {\n if (!element.classList) {\n return false;\n }\n for (const cssClass of cssClasses) {\n if (!element.classList.contains(cssClass)) {\n return false;\n }\n }\n return true;\n }\n\n focusin() {\n if (this.disabled) {\n return;\n }\n this._focus(true);\n }\n\n focusout() {\n if (this.selectionElement && !this.selectionElement.classList.contains('select2-focused')) {\n this._focus(false);\n this._onTouched();\n }\n }\n\n private moveUp() {\n this.updateScrollFromOption(Select2Utils.getPreviousOption(this.filteredData, this.hoveringValue));\n }\n\n private moveDown() {\n this.updateScrollFromOption(Select2Utils.getNextOption(this.filteredData, this.hoveringValue));\n }\n\n private updateScrollFromOption(option: Select2Option) {\n if (option) {\n this.hoveringValue = option.value;\n const domElement = this.results.find(r => r.nativeElement.innerText.trim() === option.label);\n if (domElement && this.resultsElement) {\n this.resultsElement.scrollTop = 0;\n const listClientRect = this.resultsElement.getBoundingClientRect();\n const optionClientRect = domElement.nativeElement.getBoundingClientRect();\n this.resultsElement.scrollTop = optionClientRect.top - listClientRect.top;\n }\n }\n }\n\n private selectByEnter() {\n if (this.hoveringValue) {\n const option = Select2Utils.getOptionByValue(this.data, this.hoveringValue);\n this.select(option);\n }\n }\n\n select(option: Select2Option | null) {\n let value: any;\n if (option !== null) {\n if (this.multiple) {\n const options = this.option as Select2Option[];\n const index = options.findIndex(op => op.value === option.value);\n if (index === -1) {\n options.push(option);\n } else {\n options.splice(index, 1);\n }\n value = (this.option as Select2Option[]).map(op => op.value);\n } else {\n this.option = option;\n if (this.isOpen) {\n this.isOpen = false;\n this.close.emit(this);\n if (this.selectionElement) {\n this.selectionElement.focus();\n }\n }\n value = this.option.value;\n }\n } else {\n this.option = null;\n }\n\n if (this.multiple && this.hideSelectedItems) {\n this.updateFilteredData();\n }\n\n if (this._control) {\n this._onChange(value);\n } else {\n this._value = value;\n }\n\n this.update.emit({\n component: this,\n value: value,\n options: Array.isArray(this.option) ? this.option : this.option ? [this.option] : null,\n });\n }\n\n keyDown(e: KeyboardEvent) {\n if (this._testKey(e, ['ArrowDown', 40])) {\n this.moveDown();\n e.preventDefault();\n } else if (this._testKey(e, ['ArrowUp', 38])) {\n this.moveUp();\n e.preventDefault();\n } else if (this._testKey(e, ['Enter', 13])) {\n this.selectByEnter();\n e.preventDefault();\n } else if (this._testKey(e, ['Escape', 'Tab', 9, 27]) && this.isOpen) {\n this.toggleOpenAndClose();\n this._focus(false);\n }\n }\n\n openKey(e: KeyboardEvent) {\n if (this._testKey(e, ['ArrowDown', 'ArrowUp', 'Enter', 40, 38, 13])) {\n this.toggleOpenAndClose();\n e.preventDefault();\n } else if (this._testKey(e, ['Escape', 'Tab', 9, 27])) {\n this._focus(false);\n this._onTouched();\n }\n }\n\n trackBy(_index: number, item: Select2Option): any {\n return item.value;\n }\n\n searchUpdate(e: Event) {\n this.searchText = (e.target as HTMLInputElement).value;\n this.updateFilteredData();\n }\n\n isSelected(option: Select2Option) {\n return Select2Utils.isSelected(this.option, option, this.multiple);\n }\n\n isDisabled(option: Select2Option) {\n return option.disabled ? 'true' : 'false';\n }\n\n removeSelection(e: MouseEvent, option: Select2Option) {\n Select2Utils.removeSelection(this.option, option);\n\n if (this.multiple && this.hideSelectedItems) {\n this.updateFilteredData();\n }\n\n const value = (this.option as Select2Option[]).map(op => op.value);\n\n if (this._control) {\n this._onChange(value);\n } else {\n this._value = value;\n }\n\n this.update.emit({\n component: this,\n value: value,\n options: Array.isArray(this.option) ? this.option : this.option ? [this.option] : null,\n });\n this.removeOption.emit({\n component: this,\n value: value,\n removedOption: option,\n });\n\n e.preventDefault();\n e.stopPropagation();\n\n if (this.isOpen) {\n this._focusSearchboxOrResultsElement();\n }\n }\n\n /**\n * Sets the model value. Implemented as part of ControlValueAccessor.\n * @param value\n */\n writeValue(value: any) {\n this._setSelectionByValue(value);\n }\n\n /**\n * Saves a callback function to be invoked when the select's value\n * changes from user input. Part of the ControlValueAccessor interface\n * required to integrate with Angular's core forms API.\n *\n * @param fn Callback to be triggered when the value changes.\n */\n registerOnChange(fn: (value: any) => void): void {\n this._onChange = fn;\n }\n\n /**\n * Saves a callback function to be invoked when the select is blurred\n * by the user. Part of the ControlValueAccessor interface required\n * to integrate with Angular's core forms API.\n *\n * @param fn Callback to be triggered when the component has been touched.\n */\n registerOnTouched(fn: () => {}): void {\n this._onTouched = fn;\n }\n\n /**\n * Sets whether the component should be disabled.\n * Implemented as part of ControlValueAccessor.\n * @param isDisabled\n */\n setDisabledState(isDisabled: boolean) {\n this.disabled = isDisabled;\n }\n\n onScroll(way: 'up' | 'down') {\n this.scroll.emit({\n component: this,\n way,\n search: this.innerSearchText,\n });\n }\n\n _isErrorState(): boolean {\n const isInvalid = this._control && this._control.invalid;\n const isTouched = this._control && this._control.touched;\n const isSubmitted =\n (this._parentFormGroup && this._parentFormGroup.submitted) ||\n (this._parentForm && this._parentForm.submitted);\n\n return !!(isInvalid && (isTouched || isSubmitted));\n }\n\n private _testKey(event: KeyboardEvent, refs: (number | string)[] = []): boolean {\n return this._isKey(this._getKey(event), refs);\n }\n\n private _getKey(event: KeyboardEvent): number | string {\n let code: number | string;\n\n if (event.key !== undefined) {\n code = event.key;\n } else if (event['keyIdentifier'] !== undefined) {\n code = event['keyIdentifier'];\n } else if (event['keyCode'] !== undefined) {\n code = event['keyCode'];\n } else {\n event.preventDefault();\n }\n\n return code;\n }\n\n private _isKey(code: number | string, refs: (number | string)[] = []): boolean {\n return refs && refs.length > 0 ? refs.indexOf(code) !== -1 : false;\n }\n\n /**\n * Sets the selected option based on a value. If no option can be\n * found with the designated value, the select trigger is cleared.\n */\n private _setSelectionByValue(value: any | any[]): void {\n if (this.option || (value !== undefined && value !== null)) {\n const isArray = Array.isArray(value);\n if (this.multiple && value && !isArray) {\n throw new Error('Non array value.');\n } else if (this.data) {\n if (this.multiple) {\n this.option = []; // if value is null, then empty option and return\n if (isArray) {\n // value is not null. Preselect value\n const selectedValues: any = Select2Utils.getOptionsByValue(this.data, value, this.multiple);\n selectedValues.map(item => this.select(item));\n }\n } else {\n this.select(Select2Utils.getOptionByValue(this.data, value));\n }\n } else if (this._control) {\n this._control.viewToModelUpdate(value);\n }\n\n this._changeDetectorRef.markForCheck();\n }\n }\n\n /** Does some manual dirty checking on the native input `value` property. */\n private _dirtyCheckNativeValue() {\n const newValue = this.value;\n\n if (this._previousNativeValue !== newValue) {\n this._previousNativeValue = newValue;\n this._stateChanges.next();\n }\n }\n\n private _coerceBooleanProperty(value: any): boolean {\n return value != null && `${value}` !== 'false';\n }\n\n private _focusSearchboxOrResultsElement() {\n if (!this.isSearchboxHidden) {\n setTimeout(() => {\n if (this.searchInput && this.searchInput.nativeElement) {\n this.searchInput.nativeElement.focus();\n }\n });\n } else if (this.resultsElement) {\n this.resultsElement.focus();\n }\n }\n\n private _focus(state: boolean) {\n if (!state && this.focused) {\n this.focused = state;\n this.blur.emit(this);\n } else if (state && !this.focused) {\n this.focused = state;\n this.focus.emit(this);\n }\n }\n\n private _isAbobeOverlay(): boolean {\n return this.overlay && this._overlayPosition && this.listPosition === 'auto'\n ? this._overlayPosition === 'top'\n : this.listPosition === 'above';\n }\n}\n","import { Directive } from '@angular/core';\n\n@Directive({ selector: 'select2-hint' })\nexport class Select2Hint {}\n","import { Directive } from '@angular/core';\n\n@Directive({ selector: 'select2-label' })\nexport class Select2Label {}\n","import { OverlayModule } from '@angular/cdk/overlay';\nimport { CommonModule } from '@angular/common';\nimport { NgModule } from '@angular/core';\nimport { FormsModule, ReactiveFormsModule } from '@angular/forms';\n\nimport { InfiniteScrollModule } from 'ngx-infinite-scroll';\n\nimport { Select2Hint } from './select2-hint.component';\nimport { Select2Label } from './select2-label.component';\nimport { Select2 } from './select2.component';\n\n@NgModule({\n imports: [CommonModule, FormsModule, OverlayModule, ReactiveFormsModule, InfiniteScrollModule],\n declarations: [Select2Hint, Select2Label, Select2],\n exports: [FormsModule, ReactiveFormsModule, Select2Hint, Select2Label, Select2],\n})\nexport class Select2Module {}\n"],"names":["EventEmitter","Subject","TemplateRef","Component","ViewportRuler","ChangeDetectorRef","NgForm","Optional","FormGroupDirective","NgControl","Self","Attribute","Input","Output","HostBinding","ViewChild","CdkConnectedOverlay","ViewChildren","Directive","NgModule","CommonModule","FormsModule","OverlayModule","ReactiveFormsModule","InfiniteScrollModule"],"mappings":";;;;;;;;;;;;QAAa,OAAO,GAAG;;QAEV,eAAe,GAA+B;QACvD,EAAE,CAAC,EAAE,GAAG,EAAE,CAAC,EAAE,wCAAwC,EAAE;QACvD,EAAE,CAAC,EAAE,IAAI,EAAE,CAAC,EAAE,KAAK,EAAE;QACrB,EAAE,CAAC,EAAE,IAAI,EAAE,CAAC,EAAE,SAAS,EAAE;QACzB,EAAE,CAAC,EAAE,IAAI,EAAE,CAAC,EAAE,KAAK,EAAE;QACrB,EAAE,CAAC,EAAE,IAAI,EAAE,CAAC,EAAE,KAAK,EAAE;QACrB,EAAE,CAAC,EAAE,IAAI,EAAE,CAAC,EAAE,QAAQ,EAAE;QACxB,EAAE,CAAC,EAAE,IAAI,EAAE,CAAC,EAAE,KAAK,EAAE;QACrB,EAAE,CAAC,EAAE,GAAG,EAAE,CAAC,EAAE,cAAc,EAAE;QAC7B,EAAE,CAAC,EAAE,GAAG,EAAE,CAAC,EAAE,kBAAkB,EAAE;QACjC,EAAE,CAAC,EAAE,GAAG,EAAE,CAAC,EAAE,mBAAmB,EAAE;QAClC,EAAE,CAAC,EAAE,IAAI,EAAE,CAAC,EAAE,QAAQ,EAAE;QACxB,EAAE,CAAC,EAAE,GAAG,EAAE,CAAC,EAAE,oCAAoC,EAAE;QACnD,EAAE,CAAC,EAAE,GAAG,EAAE,CAAC,EAAE,WAAW,EAAE;QAC1B,EAAE,CAAC,EAAE,GAAG,EAAE,CA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sC;;;;;QAMtC,gCAA4C;;;;;;QAG5C,4BAA0B;;;;;QAE1B,4BAA0B;;;;;QAC1B,4BAA0B;;;;;QAC1B,4BAA0B;;;;;QAC1B,4BAA0B;;;;;QAC1B,2BAAyB;;;;;QACzB,8BAA4B;;;;;QAC5B,qCAAmC;;;;;QACnC,kCAAgC;;;;;QAChC,oCAAmD;;;;;QACnD,sBAAoB;;;;;QACpB,uBAA2C;;;;;QAC3C,yBAAmC;;;;;QACnC,uCAAiD;;;;;QACjD,kCAA+B;;;;;QAC/B,mCAAgD;;;;;;QAqBhD,6BAEE;;;;;;QAGF,4BAEE;;;;;QAzBE,iCAAuC;;;;;QACvC,qCAA6C;;;;;QAC7C,8BAAuC;;;;;QACvC,mCAAwD;;QACxD,2BAA8C;;;;;;;;;QCvTtD;;;;;gBADCG,cAAS,SAAC,EAAE,QAAQ,EAAE,cAAc,EAAE;;;;;;;;;QCCvC;;;;;gBADCA,cAAS,SAAC,EAAE,QAAQ,EAAE,eAAe,EAAE;;;;;;;;;QCcxC;;;;;gBALCC,aAAQ,SAAC;oBACN,OAAO,EAAE,CAACC,mBAAY,EAAEC,iBAAW,EAAEC,qBAAa,EAAEC,yBAAmB,EAAEC,sCAAoB,CAAC;oBAC9F,YAAY,EAAE,CAAC,WAAW,EAAE,YAAY,EAAE,OAAO,CAAC;oBAClD,OAAO,EAAE,CAACH,iBAAW,EAAEE,yBAAmB,EAAE,WAAW,EAAE,YAAY,EAAE,OAAO,CAAC;iBAClF;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports,require("@angular/cdk/overlay"),require("@angular/cdk/scrolling"),require("@angular/core"),require("@angular/forms"),require("rxjs"),require("@angular/common"),require("ngx-infinite-scroll")):"function"==typeof define&&define.amd?define("ng-select2-component",["exports","@angular/cdk/overlay","@angular/cdk/scrolling","@angular/core","@angular/forms","rxjs","@angular/common","ngx-infinite-scroll"],t):t((e="undefined"!=typeof globalThis?globalThis:e||self)["ng-select2-component"]={},e.ng.cdk.overlay,e.ng.cdk.scrolling,e.ng.core,e.ng.forms,e.rxjs,e.ng.common,e.ngxInfiniteScroll)}(this,(function(e,t,n,o,i,l,r,s){"use strict";var a=[{l:"a",s:/[ⓐaẚàáâầấẫẩãāăằắẵẳȧǡäǟảåǻǎȁȃạậặḁąⱥɐ]/gi},{l:"aa",s:/ꜳ/gi},{l:"ae",s:/[æǽǣ]/gi},{l:"ao",s:/ꜵ/gi},{l:"au",s:/ꜷ/gi},{l:"av",s:/[ꜹꜻ]/gi},{l:"ay",s:/ꜽ/gi},{l:"b",s:/[ⓑbḃḅḇƀƃɓ]/gi},{l:"c",s:/[ⓒcćĉċčçḉƈȼꜿↄ]/gi},{l:"d",s:/[ⓓdḋďḍḑḓḏđƌɖɗꝺ]/gi},{l:"dz",s:/[dzdž]/gi},{l:"e",s:/[ⓔeèéêềếễểẽēḕḗĕėëẻěȅȇẹệȩḝęḙḛɇɛǝ]/gi},{l:"f",s:/[ⓕfḟƒꝼ]/gi},{l:"g",s:/[ⓖgǵĝḡğġǧģǥɠꞡᵹꝿ]/gi},{l:"h",s:/[ⓗhĥḣḧȟḥḩḫẖħⱨⱶɥ]/gi},{l:"hv",s:/ƕ/gi},{l:"i",s:/[ⓘiìíîĩīĭİïḯỉǐȉȋịįḭɨı]/gi},{l:"j",s:/[ⓙjĵǰɉ]/gi},{l:"k",s:/[ⓚkḱǩḳķḵƙⱪꝁꝃꝅꞣ]/gi},{l:"l",s:/[ⓛlŀĺľḷḹļḽḻſłƚɫⱡꝉꞁꝇꝆ]/gi},{l:"lj",s:/lj/gi},{l:"m",s:/[ⓜmḿṁṃɱɯ]/gi},{l:"n",s:/[ⓝnǹńñṅňṇņṋṉƞɲʼnꞑꞥ]/gi},{l:"nj",s:/nj/gi},{l:"o",s:/[ⓞoòóôồốỗổõṍȭṏōṑṓŏȯȱöȫỏőǒȍȏơờớỡởợọộǫǭøǿɔƟꝋꝍɵ]/gi},{l:"oi",s:/ƣ/gi},{l:"oe",s:/œ/gi},{l:"oo",s:/ꝏ/gi},{l:"ou",s:/ȣ/gi},{l:"p",s:/[ⓟpṕṗƥᵽꝑꝓꝕ]/gi},{l:"q",s:/[ⓠqɋꝗꝙ]/gi},{l:"r",s:/[ⓡrŕṙřȑȓṛṝŗṟɍɽꝛꞧꞃ]/gi},{l:"s",s:/[ⓢsßẞśṥŝṡšṧṣṩșşȿꞩꞅẛ]/gi},{l:"t",s:/[ⓣtṫẗťṭțţṱṯŧƭʈⱦꞇ]/gi},{l:"tz",s:/ꜩ/gi},{l:"u",s:/[ⓤuùúûũṹūṻŭüǜǘǖǚủůűǔȕȗưừứữửựụṳųṷṵʉ]/gi},{l:"v",s:/[ⓥvṽṿʋꝟʌ]/gi},{l:"vy",s:/ꝡ/gi},{l:"w",s:/[ⓦwẁẃŵẇẅẘẉⱳ]/gi},{l:"x",s:/[ⓧxẋẍ]/gi},{l:"y",s:/[ⓨyỳýŷỹȳẏÿỷẙỵƴɏỿ]/gi},{l:"z",s:/[ⓩzźẑżžẓẕƶȥɀⱬꝣ]/gi}],c=new RegExp("[\\-\\[\\]\\/\\{\\}\\(\\)\\*\\+\\?\\.\\\\\\^\\$\\|]","g");Object.create;function p(e){var t="function"==typeof Symbol&&Symbol.iterator,n=t&&e[t],o=0;if(n)return n.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&o>=e.length&&(e=void 0),{value:e&&e[o++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}Object.create;var u=function(){function e(){}return e.getOptionByValue=function(e,t){var n,o,i,l;if(Array.isArray(e))try{for(var r=p(e),s=r.next();!s.done;s=r.next()){var a=s.value,c=a.options;if(c)try{for(var u=(i=void 0,p(c)),d=u.next();!d.done;d=u.next()){var h=d.value;if(h.value===t)return h}}catch(e){i={error:e}}finally{try{d&&!d.done&&(l=u.return)&&l.call(u)}finally{if(i)throw i.error}}else if(a.value===t)return a}}catch(e){n={error:e}}finally{try{s&&!s.done&&(o=r.return)&&o.call(r)}finally{if(n)throw n.error}}return null},e.getOptionsByValue=function(t,n,o){var i,l;if(o){var r=Array.isArray(n)?n:[],s=[];try{for(var a=p(r),c=a.next();!c.done;c=a.next()){var u=c.value,d=e.getOptionByValue(t,u);d&&s.push(d)}}catch(e){i={error:e}}finally{try{c&&!c.done&&(l=a.return)&&l.call(a)}finally{if(i)throw i.error}}return s}return e.getOptionByValue(t,n)},e.getFirstAvailableOption=function(e){var t,n,o,i;if(Array.isArray(e))try{for(var l=p(e),r=l.next();!r.done;r=l.next()){var s=r.value,a=s.options;if(a)try{for(var c=(o=void 0,p(a)),u=c.next();!u.done;u=c.next()){var d;if(!(d=u.value).disabled)return d.value}}catch(e){o={error:e}}finally{try{u&&!u.done&&(i=c.return)&&i.call(c)}finally{if(o)throw o.error}}else if(!(d=s).disabled)return d.value}}catch(e){t={error:e}}finally{try{r&&!r.done&&(n=l.return)&&n.call(l)}finally{if(t)throw t.error}}return null},e.getOptionsCount=function(e){var t,n,o=0;if(Array.isArray(e))try{for(var i=p(e),l=i.next();!l.done;l=i.next()){var r=l.value.options;r?o+=r.length:o++}}catch(e){t={error:e}}finally{try{l&&!l.done&&(n=i.return)&&n.call(i)}finally{if(t)throw t.error}}return o},e.valueIsNotInFilteredData=function(t,n){var o,i,l,r;if(e.isNullOrUndefined(n))return!0;try{for(var s=p(t),a=s.next();!a.done;a=s.next()){var c=a.value,u=c.options;if(u)try{for(var d=(l=void 0,p(u)),h=d.next();!h.done;h=d.next()){if(h.value.value===n)return!1}}catch(e){l={error:e}}finally{try{h&&!h.done&&(r=d.return)&&r.call(d)}finally{if(l)throw l.error}}else if(c.value===n)return!1}}catch(e){o={error:e}}finally{try{a&&!a.done&&(i=s.return)&&i.call(s)}finally{if(o)throw o.error}}return!0},e.getPreviousOption=function(t,n){for(var o=e.isNullOrUndefined(n),i=t.length-1;i>=0;i--){var l=t[i],r=l.options;if(r)for(var s=r.length-1;s>=0;s--){var a=r[s];if(o&&!a.disabled&&!a.hide)return a;o||(o=a.value===n)}else{a=l;if(o&&!a.disabled&&!a.hide)return a;o||(o=a.value===n)}}return null},e.getNextOption=function(t,n){var o,i,l,r,s=e.isNullOrUndefined(n);try{for(var a=p(t),c=a.next();!c.done;c=a.next()){var u=c.value,d=u.options;if(d)try{for(var h=(l=void 0,p(d)),f=h.next();!f.done;f=h.next()){var g=f.value;if(s){if(!g.disabled&&!g.hide)return g}else s||(s=g.value===n)}}catch(e){l={error:e}}finally{try{f&&!f.done&&(r=h.return)&&r.call(h)}finally{if(l)throw l.error}}else{g=u;if(s){if(!g.disabled&&!g.hide)return g}else s||(s=g.value===n)}}}catch(e){o={error:e}}finally{try{c&&!c.done&&(i=a.return)&&i.call(a)}finally{if(o)throw o.error}}return null},e.isNullOrUndefined=function(e){return null==e},e.containSearchText=function(t,n,o){return!n||null!==e.formatSansUnicode(t).match(new RegExp(e.formatPattern(n,o),"i"))},e.protectPattern=function(e){return e.replace(c,"\\$&")},e.formatSansUnicode=function(e){var t,n;try{for(var o=p(a),i=o.next();!i.done;i=o.next()){var l=i.value;e=e.replace(l.s,l.l)}}catch(e){t={error:e}}finally{try{i&&!i.done&&(n=o.return)&&n.call(o)}finally{if(t)throw t.error}}return e},e.formatPattern=function(t,n){return t=e.formatSansUnicode(e.protectPattern(t)),n&&"function"==typeof n&&(t=n(t)),t},e.getFilteredData=function(t,n,o){var i,l;if(n){var r=[];try{for(var s=p(t),a=s.next();!a.done;a=s.next()){var c=a.value,u=c.options;if(u){if(u.some((function(t){return e.containSearchText(t.label,n,o)}))){var d=u.filter((function(t){return e.containSearchText(t.label,n,o)}));r.push({label:c.label,options:d})}}else e.containSearchText(c.label,n,o)&&r.push(c)}}catch(e){i={error:e}}finally{try{a&&!a.done&&(l=s.return)&&l.call(s)}finally{if(i)throw i.error}}return r}return t},e.getFilteredSelectedData=function(t,n){var o,i,l=[];try{for(var r=p(t),s=r.next();!s.done;s=r.next()){var a=s.value,c=a.options;if(c){var u=c.filter((function(t){return"false"===e.isSelected(n,t,!0)}));u.length&&l.push({label:a.label,options:u})}else"false"===e.isSelected(n,a,!0)&&l.push(a)}}catch(e){o={error:e}}finally{try{s&&!s.done&&(i=r.return)&&i.call(r)}finally{if(o)throw o.error}}return l},e.isSearchboxHiddex=function(t,n){return(""===n||null==n||isNaN(+n))&&(n=6),e.getOptionsCount(t)<+n},e.isSelected=function(e,t,n){return n?e&&e.some((function(e){return e.value===t.value}))?"true":"false":e&&t.value===e.value?"true":"false"},e.removeSelection=function(e,t){for(var n=0;n<e.length;n++)if(e[n].value===t.value)return void e.splice(n,1)},e}(),d=0,h=["default","hidden","always"],f=function(){function e(e,t,n,i,r,s){this._viewportRuler=e,this._changeDetectorRef=t,this._parentForm=n,this._parentFormGroup=i,this._control=r,this.minCharForSearch=0,this.limitSelection=0,this.listPosition="below",this.styleMode="default",this.infiniteScrollDistance=1.5,this.infiniteScrollThrottle=150,this.resultMaxHeight="200px",this.update=new o.EventEmitter,this.open=new o.EventEmitter,this.close=new o.EventEmitter,this.focus=new o.EventEmitter,this.blur=new o.EventEmitter,this.search=new o.EventEmitter,this.scroll=new o.EventEmitter,this.removeOption=new o.EventEmitter,this.option=null,this.isOpen=!1,this.focused=!1,this.hoveringValue=null,this.innerSearchText="",this._stateChanges=new l.Subject,this._disabled=!1,this._required=!1,this._readonly=!1,this._multiple=!1,this._overlay=!1,this._resettable=!1,this._hideSelectedItems=!1,this._clickDetection=!1,this._uid="select2-"+d++,this._infiniteScroll=!0,this._onTouched=function(){},this._onChange=function(){},this.id=this.id,this._tabIndex=parseInt(s,10)||0,this._control&&(this._control.valueAccessor=this),this._clickDetectionFc=this.clickDetection.bind(this)}return Object.defineProperty(e.prototype,"multiple",{get:function(){return this._multiple},set:function(e){this._multiple=this._coerceBooleanProperty(e),this.ngOnInit()},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"overlay",{get:function(){return this._overlay},set:function(e){this._overlay=this._coerceBooleanProperty(e)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"infiniteScroll",{get:function(){return this._infiniteScroll},set:function(e){this._infiniteScroll=this._coerceBooleanProperty(e)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"select2Options",{get:function(){return this.multiple?this.option:null},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"select2Option",{get:function(){return this.multiple?null:this.option},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"searchText",{get:function(){return this.innerSearchText},set:function(e){this.customSearchEnabled&&this.search.emit({component:this,value:this._value,search:e}),this.innerSearchText=e},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"minCountForSearch",{get:function(){return this._minCountForSearch},set:function(e){this._minCountForSearch=e,this.updateSearchBox()},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"id",{get:function(){return this._id},set:function(e){this._id=e||this._uid},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"required",{get:function(){return this._required},set:function(e){this._required=this._coerceBooleanProperty(e)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"disabled",{get:function(){return this._control?this._control.disabled:this._disabled},set:function(e){this._disabled=this._coerceBooleanProperty(e)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"hideSelectedItems",{get:function(){return this._hideSelectedItems},set:function(e){this._hideSelectedItems=this._coerceBooleanProperty(e)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"readonly",{get:function(){return this._readonly},set:function(e){this._readonly=this._coerceBooleanProperty(e)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"value",{get:function(){return this._value},set:function(e){var t=this;this.testValueChange(this._value,e)&&setTimeout((function(){t._value=e,t.writeValue(e)}),10)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"tabIndex",{get:function(){return this.disabled?-1:this._tabIndex},set:function(e){void 0!==e&&(this._tabIndex=e)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"resettable",{get:function(){return this._resettable},set:function(e){this._resettable=this._coerceBooleanProperty(e)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"ariaInvalid",{get:function(){return this._isErrorState()},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"classMaterial",{get:function(){return"material"===this.styleMode},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"classNostyle",{get:function(){return"noStyle"===this.styleMode},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"select2above",{get:function(){return this.overlay?this._isAbobeOverlay():"above"===this.listPosition},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"_positions",{get:function(){if("auto"!==this.listPosition)return null},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"resultsElement",{get:function(){var e;return null===(e=this.resultContainer)||void 0===e?void 0:e.nativeElement},enumerable:!1,configurable:!0}),e.prototype.ngOnInit=function(){var e=this;this._viewportRuler.change(100).subscribe((function(){e.isOpen&&e.triggerRect()}));var t=u.getOptionsByValue(this.data,this._control?this._control.value:this.value,this.multiple);null!==t&&(this.option=t),Array.isArray(t)||(this.hoveringValue=this.value),this.updateSearchBox()},e.prototype.ngAfterViewInit=function(){var e=this;this.cdkConnectedOverlay.positionChange.subscribe((function(t){var n;"auto"===e.listPosition&&(null===(n=t.connectionPair)||void 0===n?void 0:n.originY)&&e._overlayPosition!==t.connectionPair.originY&&(e.triggerRect(),e._overlayPosition=t.connectionPair.originY,e._changeDetectorRef.detectChanges())})),this.selectionElement=this.selection.nativeElement,this.triggerRect()},e.prototype.ngDoCheck=function(){var e;this.updateSearchBox(),this._dirtyCheckNativeValue(),this._triggerRect&&(this.overlayWidth!==this._triggerRect.width&&(this.overlayWidth=this._triggerRect.width),(null===(e=this._dropdownRect)||void 0===e?void 0:e.height)>0&&this.overlayHeight!==this._dropdownRect.height&&(this.overlayHeight="auto"===this.listPosition?this._dropdownRect.height:0))},e.prototype.ngOnDestroy=function(){window.document.body.removeEventListener("click",this._clickDetectionFc)},e.prototype.updateSearchBox=function(){var e=!this.customSearchEnabled&&u.isSearchboxHiddex(this.data,this._minCountForSearch);this.isSearchboxHidden!==e&&(this.isSearchboxHidden=e)},e.prototype.hideSearch=function(){var e=h.indexOf(this.displaySearchStatus)>-1?this.displaySearchStatus:"default";return"default"===e&&this.isSearchboxHidden||"hidden"===e},e.prototype.getOptionStyle=function(e){return"select2-results__option "+(e.hide?"select2-results__option--hide ":"")+(e.value===this.hoveringValue?"select2-results__option--highlighted ":"")+(e.classes||"")},e.prototype.mouseenter=function(e){e.disabled||(this.hoveringValue=e.value)},e.prototype.click=function(e){this.testSelection(e)&&this.select(e)},e.prototype.reset=function(e){this.select(null),e.preventDefault(),e.stopPropagation()},e.prototype.prevChange=function(e){e.stopPropagation()},e.prototype.toggleOpenAndClose=function(){var e=this;this.disabled||(this._focus(!0),this.isOpen=!this.isOpen,this.isOpen?(this.innerSearchText="",this.updateFilteredData(),this._focusSearchboxOrResultsElement(),setTimeout((function(){if(e.option){var t=e.option instanceof Array?e.option[0]:e.option;e.updateScrollFromOption(t)}else e.resultsElement&&(e.resultsElement.scrollTop=0);setTimeout((function(){var t,n;e.triggerRect(),null===(n=null===(t=e.cdkConnectedOverlay)||void 0===t?void 0:t.overlayRef)||void 0===n||n.updatePosition()}),100)})),this.open.emit(this)):this.close.emit(this),this.isOpen&&!this._clickDetection&&setTimeout((function(){window.document.body.addEventListener("click",e._clickDetectionFc,!1),e._clickDetection=!0}),200),this._changeDetectorRef.markForCheck())},e.prototype.hasTemplate=function(e,t){var n,i;return this.templates instanceof o.TemplateRef||(null===(n=this.templates)||void 0===n?void 0:n[e.templateId])instanceof o.TemplateRef||(null===(i=this.templates)||void 0===i?void 0:i[t])instanceof o.TemplateRef},e.prototype.getTemplate=function(e,t){return this.hasTemplate(e,t)?this.templates[e.templateId]||this.templates[t]||this.templates:void 0},e.prototype.triggerRect=function(){var e;this._triggerRect=this.selectionElement.getBoundingClientRect(),this._dropdownRect=(null===(e=this.dropdown)||void 0===e?void 0:e.nativeElement)?this.dropdown.nativeElement.getBoundingClientRect():void 0},e.prototype.testSelection=function(e){return!e.disabled&&!(this.multiple&&this.limitSelection&&!(Array.isArray(this._value)&&this._value.length<this.limitSelection))},e.prototype.testValueChange=function(e,t){var n,o,i,l;if(null==e&&null==t||e===t)return!1;if(this.multiple&&(null===(i=e)||void 0===i?void 0:i.length)&&(null===(l=t)||void 0===l?void 0:l.length)&&e.length===t.length){try{for(var r=p(e),s=r.next();!s.done;s=r.next()){var a=s.value;if(!(t.indexOf(a)>-1))return!0}}catch(e){n={error:e}}finally{try{s&&!s.done&&(o=r.return)&&o.call(r)}finally{if(n)throw n.error}}return!1}return!0},e.prototype.updateFilteredData=function(){var e=this;setTimeout((function(){var t=e.data;e.multiple&&e.hideSelectedItems&&(t=u.getFilteredSelectedData(t,e.option)),!e.customSearchEnabled&&e.searchText&&e.searchText.length>=+e.minCharForSearch&&(t=u.getFilteredData(t,e.searchText,e.editPattern)),u.valueIsNotInFilteredData(t,e.hoveringValue)&&(e.hoveringValue=u.getFirstAvailableOption(t)),e.filteredData=t,e._changeDetectorRef.markForCheck()}))},e.prototype.clickDetection=function(e){this.ifParentContainsClass(e.target,"selection")?this.isOpen&&!this.ifParentContainsId(e.target,this._id)&&(this.toggleOpenAndClose(),this.clickExit()):(this.isOpen&&!this.ifParentContainsClass(e.target,"select2-dropdown")&&this.toggleOpenAndClose(),this.ifParentContainsId(e.target,this._id)||this.clickExit())},e.prototype.clickExit=function(){this._focus(!1),window.document.body.removeEventListener("click",this._clickDetectionFc),this._clickDetection=!1},e.prototype.ifParentContainsClass=function(e,t){return null!==this.getParentElementByClass(e,t)},e.prototype.ifParentContainsId=function(e,t){return null!==this.getParentElementById(e,t)},e.prototype.getParentElementByClass=function(e,t){return this.containClasses(e,t.trim().split(/\s+/))?e:e.parentElement?this.getParentElementByClass(e.parentElement,t):null},e.prototype.getParentElementById=function(e,t){return e.id===t?e:e.parentElement?this.getParentElementById(e.parentElement,t):null},e.prototype.containClasses=function(e,t){var n,o;if(!e.classList)return!1;try{for(var i=p(t),l=i.next();!l.done;l=i.next()){var r=l.value;if(!e.classList.contains(r))return!1}}catch(e){n={error:e}}finally{try{l&&!l.done&&(o=i.return)&&o.call(i)}finally{if(n)throw n.error}}return!0},e.prototype.focusin=function(){this.disabled||this._focus(!0)},e.prototype.focusout=function(){this.selectionElement&&!this.selectionElement.classList.contains("select2-focused")&&(this._focus(!1),this._onTouched())},e.prototype.moveUp=function(){this.updateScrollFromOption(u.getPreviousOption(this.filteredData,this.hoveringValue))},e.prototype.moveDown=function(){this.updateScrollFromOption(u.getNextOption(this.filteredData,this.hoveringValue))},e.prototype.updateScrollFromOption=function(e){if(e){this.hoveringValue=e.value;var t=this.results.find((function(t){return t.nativeElement.innerText.trim()===e.label}));if(t&&this.resultsElement){this.resultsElement.scrollTop=0;var n=this.resultsElement.getBoundingClientRect(),o=t.nativeElement.getBoundingClientRect();this.resultsElement.scrollTop=o.top-n.top}}},e.prototype.selectByEnter=function(){if(this.hoveringValue){var e=u.getOptionByValue(this.data,this.hoveringValue);this.select(e)}},e.prototype.select=function(e){var t;if(null!==e)if(this.multiple){var n=this.option,o=n.findIndex((function(t){return t.value===e.value}));-1===o?n.push(e):n.splice(o,1),t=this.option.map((function(e){return e.value}))}else this.option=e,this.isOpen&&(this.isOpen=!1,this.close.emit(this),this.selectionElement&&this.selectionElement.focus()),t=this.option.value;else this.option=null;this.multiple&&this.hideSelectedItems&&this.updateFilteredData(),this._control?this._onChange(t):this._value=t,this.update.emit({component:this,value:t,options:Array.isArray(this.option)?this.option:this.option?[this.option]:null})},e.prototype.keyDown=function(e){this._testKey(e,["ArrowDown",40])?(this.moveDown(),e.preventDefault()):this._testKey(e,["ArrowUp",38])?(this.moveUp(),e.preventDefault()):this._testKey(e,["Enter",13])?(this.selectByEnter(),e.preventDefault()):this._testKey(e,["Escape","Tab",9,27])&&this.isOpen&&(this.toggleOpenAndClose(),this._focus(!1))},e.prototype.openKey=function(e){this._testKey(e,["ArrowDown","ArrowUp","Enter",40,38,13])?(this.toggleOpenAndClose(),e.preventDefault()):this._testKey(e,["Escape","Tab",9,27])&&(this._focus(!1),this._onTouched())},e.prototype.trackBy=function(e,t){return t.value},e.prototype.searchUpdate=function(e){this.searchText=e.target.value,this.updateFilteredData()},e.prototype.isSelected=function(e){return u.isSelected(this.option,e,this.multiple)},e.prototype.isDisabled=function(e){return e.disabled?"true":"false"},e.prototype.removeSelection=function(e,t){u.removeSelection(this.option,t),this.multiple&&this.hideSelectedItems&&this.updateFilteredData();var n=this.option.map((function(e){return e.value}));this._control?this._onChange(n):this._value=n,this.update.emit({component:this,value:n,options:Array.isArray(this.option)?this.option:this.option?[this.option]:null}),this.removeOption.emit({component:this,value:n,removedOption:t}),e.preventDefault(),e.stopPropagation(),this.isOpen&&this._focusSearchboxOrResultsElement()},e.prototype.writeValue=function(e){this._setSelectionByValue(e)},e.prototype.registerOnChange=function(e){this._onChange=e},e.prototype.registerOnTouched=function(e){this._onTouched=e},e.prototype.setDisabledState=function(e){this.disabled=e},e.prototype.onScroll=function(e){this.scroll.emit({component:this,way:e,search:this.innerSearchText})},e.prototype._isErrorState=function(){var e=this._control&&this._control.invalid,t=this._control&&this._control.touched,n=this._parentFormGroup&&this._parentFormGroup.submitted||this._parentForm&&this._parentForm.submitted;return!(!e||!t&&!n)},e.prototype._testKey=function(e,t){return void 0===t&&(t=[]),this._isKey(this._getKey(e),t)},e.prototype._getKey=function(e){var t;return void 0!==e.key?t=e.key:void 0!==e.keyIdentifier?t=e.keyIdentifier:void 0!==e.keyCode?t=e.keyCode:e.preventDefault(),t},e.prototype._isKey=function(e,t){return void 0===t&&(t=[]),!!(t&&t.length>0)&&-1!==t.indexOf(e)},e.prototype._setSelectionByValue=function(e){var t=this;if(this.option||null!=e){var n=Array.isArray(e);if(this.multiple&&e&&!n)throw new Error("Non array value.");this.data?this.multiple?(this.option=[],n&&u.getOptionsByValue(this.data,e,this.multiple).map((function(e){return t.select(e)}))):this.select(u.getOptionByValue(this.data,e)):this._control&&this._control.viewToModelUpdate(e),this._changeDetectorRef.markForCheck()}},e.prototype._dirtyCheckNativeValue=function(){var e=this.value;this._previousNativeValue!==e&&(this._previousNativeValue=e,this._stateChanges.next())},e.prototype._coerceBooleanProperty=function(e){return null!=e&&""+e!="false"},e.prototype._focusSearchboxOrResultsElement=function(){var e=this;this.isSearchboxHidden?this.resultsElement&&this.resultsElement.focus():setTimeout((function(){e.searchInput&&e.searchInput.nativeElement&&e.searchInput.nativeElement.focus()}))},e.prototype._focus=function(e){!e&&this.focused?(this.focused=e,this.blur.emit(this)):e&&!this.focused&&(this.focused=e,this.focus.emit(this))},e.prototype._isAbobeOverlay=function(){return this.overlay&&this._overlayPosition&&"auto"===this.listPosition?"top"===this._overlayPosition:"above"===this.listPosition},e}();f.decorators=[{type:o.Component,args:[{selector:"select2",template:'<div class="select2-label" (click)="toggleOpenAndClose()">\n <ng-content select="select2-label"></ng-content>\n <span *ngIf="required" class="select2-required"></span>\n</div>\n<div\n class="select2 select2-container select2-container--default select2-container--focus"\n [class.select2-container--below]="!select2above"\n [class.select2-container--above]="select2above"\n [class.select2-container--open]="isOpen"\n [class.select2-container--disabled]="disabled"\n>\n <div\n class="selection"\n #selection\n #trigger="cdkOverlayOrigin"\n [attr.tabindex]="!this.isOpen ? tabIndex : \'-1\'"\n (click)="toggleOpenAndClose()"\n (focus)="focusin()"\n (blur)="focusout()"\n (keydown)="openKey($event)"\n cdkOverlayOrigin\n [class.select2-focused]="focused"\n >\n <div\n class="select2-selection"\n [class.select2-selection--multiple]="multiple"\n [class.select2-selection--single]="!multiple"\n role="combobox"\n >\n <span *ngIf="!multiple" class="select2-selection__rendered" [title]="select2Option?.label || \'\'">\n <span *ngIf="!select2Option"> </span>\n <span *ngIf="select2Option" [innerHTML]="select2Option.label"></span>\n <span [class.select2-selection__placeholder__option]="option" class="select2-selection__placeholder">{{\n placeholder\n }}</span>\n </span>\n <span\n (click)="reset($event)"\n *ngIf="!multiple && resettable && select2Option"\n class="select2-selection__reset"\n role="presentation"\n >×</span\n >\n <span *ngIf="!multiple" class="select2-selection__arrow" role="presentation"> </span>\n <ul *ngIf="multiple" class="select2-selection__rendered">\n <span\n [class.select2-selection__placeholder__option]="select2Options?.length > 0"\n class="select2-selection__placeholder"\n >{{ placeholder }}</span\n >\n <li *ngFor="let op of option; trackBy: trackBy" class="select2-selection__choice" [title]="op.label">\n <span\n (click)="removeSelection($event, op)"\n class="select2-selection__choice__remove"\n role="presentation"\n >×</span\n >\n <span [innerHTML]="op.label"></span>\n </li>\n </ul>\n </div>\n </div>\n <ng-container *ngIf="!overlay">\n <ng-container *ngTemplateOutlet="containerTemplate"></ng-container>\n </ng-container>\n\n <div class="select2-subscript-wrapper">\n <ng-content select="select2-hint"></ng-content>\n </div>\n</div>\n\n<ng-template\n cdkConnectedOverlay\n cdkConnectedOverlayHasBackdrop\n cdkConnectedOverlayBackdropClass="select2-overlay-backdrop"\n [cdkConnectedOverlayOrigin]="trigger"\n [cdkConnectedOverlayOpen]="this.isOpen && overlay"\n [cdkConnectedOverlayMinWidth]="overlayWidth"\n [cdkConnectedOverlayHeight]="overlayHeight"\n [cdkConnectedOverlayPositions]="_positions"\n (backdropClick)="toggleOpenAndClose()"\n>\n <ng-container *ngTemplateOutlet="containerTemplate"></ng-container>\n</ng-template>\n\n<ng-template #containerTemplate>\n <div\n class="select2-container select2-container--default select2-container-dropdown"\n [class.select2-container--open]="isOpen"\n [class.select2-overlay]="overlay"\n [class.select2-position-auto]="listPosition === \'auto\'"\n >\n <div\n #dropdown\n class="select2-dropdown"\n [class.select2-dropdown--below]="!select2above"\n [class.select2-dropdown--above]="select2above"\n >\n <div class="select2-search select2-search--dropdown" [class.select2-search--hide]="hideSearch()">\n <input\n #searchInput\n [id]="id + \'-search-field\'"\n [value]="searchText"\n (keydown)="keyDown($event)"\n (keyup)="searchUpdate($event)"\n (change)="prevChange($event)"\n class="select2-search__field"\n type="search"\n role="textbox"\n autocomplete="off"\n autocorrect="off"\n autocapitalize="off"\n spellcheck="false"\n [attr.tabindex]="this.isOpen ? tabIndex : \'-1\'"\n />\n </div>\n <div class="select2-results">\n <ul\n #results\n class="select2-results__options"\n [style.max-height]="resultMaxHeight"\n role="tree"\n tabindex="-1"\n infiniteScroll\n [infiniteScrollDisabled]="!infiniteScroll && !isOpen"\n [infiniteScrollDistance]="infiniteScrollDistance"\n [infiniteScrollThrottle]="infiniteScrollThrottle"\n [infiniteScrollContainer]="results"\n (scrolled)="onScroll(\'down\')"\n (scrolledUp)="onScroll(\'up\')"\n (keydown)="keyDown($event)"\n >\n <ng-container *ngFor="let groupOrOption of filteredData; index as i; trackBy: trackBy">\n <li *ngIf="groupOrOption.options" class="select2-results__option" role="group">\n <strong\n *ngIf="!hasTemplate(groupOrOption, \'group\'); else optGroup"\n [attr.class]="\n \'select2-results__group\' +\n (groupOrOption.classes ? \' \' + groupOrOption.classes : \'\')\n "\n [innerHTML]="groupOrOption.label"\n ></strong>\n <ng-template #optGroup>\n <ng-container\n *ngTemplateOutlet="getTemplate(groupOrOption, \'group\'); context: groupOrOption"\n >\n </ng-container>\n </ng-template>\n\n <ul class="select2-results__options select2-results__options--nested">\n <li\n *ngFor="let option of groupOrOption.options; index as j; trackBy: trackBy"\n #result\n [id]="option.id || id + \'-option-\' + i + \'-\' + j"\n [class]="getOptionStyle(option)"\n role="treeitem"\n [attr.aria-selected]="isSelected(option)"\n [attr.aria-disabled]="isDisabled(option)"\n (mouseenter)="mouseenter(option)"\n (click)="click(option)"\n >\n <div\n *ngIf="!hasTemplate(option, \'option\'); else liGroup"\n class="select2-label-content"\n [innerHTML]="option.label"\n ></div>\n <ng-template #liGroup>\n <ng-container\n *ngTemplateOutlet="getTemplate(option, \'option\'); context: option"\n >\n </ng-container>\n </ng-template>\n </li>\n </ul>\n </li>\n <li\n *ngIf="!groupOrOption.options"\n #result\n [id]="groupOrOption.id || id + \'-option-\' + i"\n [class]="getOptionStyle(groupOrOption)"\n role="treeitem"\n [attr.aria-selected]="isSelected(groupOrOption)"\n [attr.aria-disabled]="isDisabled(groupOrOption)"\n (mouseenter)="mouseenter(groupOrOption)"\n (click)="click(groupOrOption)"\n >\n <div\n *ngIf="!hasTemplate(groupOrOption, \'option\'); else li"\n [innerHTML]="groupOrOption.label"\n class="select2-label-content"\n ></div>\n <ng-template #li>\n <ng-container\n *ngTemplateOutlet="getTemplate(groupOrOption, \'option\'); context: groupOrOption"\n >\n </ng-container>\n </ng-template>\n </li>\n </ng-container>\n <li\n class="select2-no-result select2-results__option"\n *ngIf="!filteredData?.length && noResultMessage"\n [innerHTML]="noResultMessage"\n ></li>\n </ul>\n </div>\n </div>\n </div>\n</ng-template>\n',styles:['.select2-label{color:#000;color:var(--select2-label-text-color,#000)}.select2-container{box-sizing:border-box;display:inline-block;margin:0;position:relative;vertical-align:middle;width:100%}.select2-container .select2-container-dropdown{opacity:0;position:absolute;width:0}.select2-container .select2-selection--single{-moz-user-select:none;-ms-user-select:none;-webkit-user-select:none;box-sizing:border-box;cursor:pointer;display:block;height:28px;user-select:none}.select2-container .select2-selection--single .select2-selection__rendered{display:block;flex:1 1 auto;overflow:hidden;padding:0 0 0 8px;text-overflow:ellipsis;white-space:nowrap}.select2-container .select2-selection--single .select2-selection__clear{position:relative}.select2-container .select2-selection--multiple{-moz-user-select:none;-ms-user-select:none;-webkit-user-select:none;box-sizing:border-box;cursor:pointer;display:block;min-height:32px;user-select:none}.select2-container .select2-selection--multiple .select2-selection__rendered{display:inline-block;overflow:hidden;padding-left:8px;text-overflow:ellipsis;white-space:nowrap}.select2-container .select2-search--inline{float:left}.select2-container .select2-search--inline .select2-search__field{border:none;box-sizing:border-box;font-size:100%;margin-top:5px;padding:0}.select2-container .select2-search--inline .select2-search__field::-webkit-search-cancel-button{-webkit-appearance:none}.select2-dropdown{background:#fff;background:var(--select2-dropdown-background,#fff);border:1px solid #aaa;border:1px solid var(--select2-dropdown-border-color,#aaa);border-radius:4px;border-radius:var(--select2-selection-border-radius,4px);box-sizing:border-box;display:block;height:0;overflow:hidden;position:absolute;width:100%;z-index:1051}.select2-dropdown .select2-label-content{display:contents}.select2-results{display:block}.select2-results__options{list-style:none;margin:0;padding:0}.select2-results__option{-moz-user-select:none;-ms-user-select:none;-webkit-user-select:none;color:#000;color:var(--select2-option-text-color,#000);padding:6px;user-select:none}.select2-results__option[aria-selected]{cursor:pointer}.select2-container.select2-container-dropdown.select2-container--open{opacity:1;width:100%}.select2-container--open .select2-dropdown{height:auto;overflow:auto}.select2-container--open .select2-dropdown--above{border-bottom:none;border-bottom-left-radius:0;border-bottom-right-radius:0;bottom:27px;display:flex;flex-direction:column-reverse}.select2-container--open .select2-dropdown--below{border-top:none;border-top-left-radius:0;border-top-right-radius:0}.select2-search--dropdown{display:block;padding:4px}.select2-search--dropdown .select2-search__field{box-sizing:border-box;padding:4px;width:100%}.select2-search--dropdown .select2-search__field::-webkit-search-cancel-button{-webkit-appearance:none}.select2-search--dropdown.select2-search--hide{display:none}.select2-close-mask{background:#fff;border:0;display:block;filter:alpha(opacity=0);height:auto;left:0;margin:0;min-height:100%;min-width:100%;opacity:0;padding:0;position:fixed;top:0;width:auto;z-index:99}.select2-required:before{color:red;color:var(--select2-required-color,red);content:"*"}.select2-hidden-accessible{border:0!important;clip:rect(0 0 0 0)!important;height:1px!important;margin:-1px!important;overflow:hidden!important;padding:0!important;position:absolute!important;width:1px!important}.select2-container--default .select2-selection--single{background:#fff;background:var(--select2-selection-background,#fff);border:1px solid #aaa;border:1px solid var(--select2-selection-border-color,#aaa);border-radius:4px;border-radius:var(--select2-selection-border-radius,4px);display:flex}.select2-container--default .select2-selection--single .select2-selection__rendered{color:#444;color:var(--select2-selection-text-color,#444);line-height:28px}.select2-container--default .select2-selection--single .select2-selection__clear{cursor:pointer;float:right;font-weight:700}.select2-container--default .select2-selection--single .select2-selection__placeholder{color:#999;color:var(--select2-placeholder-color,#999)}.select2-container--default .select2-selection--single .select2-selection__placeholder span{overflow:hidden;text-overflow:ellipsis;text-overflow:var(--select2-placeholder-overflow,ellipsis);white-space:nowrap}.select2-container--default .select2-selection--single .select2-selection__placeholder__option{display:none}.select2-container--default .select2-selection--single .select2-selection__arrow,.select2-container--default .select2-selection--single .select2-selection__reset{align-items:center;display:flex;justify-content:center;width:20px}.select2-container--default .select2-selection--single .select2-selection__arrow:before{border-bottom:0 solid var(--select2-arrow-color,#888);border-color:#888 transparent;border-left:4px solid transparent;border-right:4px solid transparent;border-top:5px solid var(--select2-arrow-color,#888);content:" ";height:0;width:0}.select2-container--default .select2-selection--single .select2-selection__reset{color:#999;color:var(--select2-reset-color,#999)}.select2-container--default.select2-container--disabled .select2-selection--single{background:#eee;background:var(--select2-selection-disabled-background,#eee);cursor:default}.select2-container--default.select2-container--disabled .select2-selection--single .select2-selection__clear{display:none}.select2-container--default.select2-container--open .select2-selection--single .select2-selection__arrow:before{border-bottom-color:var(--select2-arrow-color,#888);border-color:transparent transparent #888;border-right-color:transparent;border-top-color:transparent;border-width:0 4px 5px}.select2-container--default .select2-selection--multiple{background:#fff;background:var(--select2-selection-background,#fff);border:1px solid #aaa;border:1px solid var(--select2-selection-border-color,#aaa);border-radius:4px;border-radius:var(--select2-selection-border-radius,4px);cursor:text}.select2-container--default .select2-selection--multiple .select2-selection__rendered{box-sizing:border-box;flex:1 1 auto;list-style:none;margin:0;padding:0 5px;width:100%}.select2-container--default .select2-selection--multiple .select2-selection__rendered li{list-style:none}.select2-container--default .select2-selection--multiple .select2-selection__placeholder{color:#999;color:var(--select2-placeholder-color,#999);display:block;float:left;margin-top:5px;overflow:hidden;text-overflow:ellipsis;text-overflow:var(--select2-placeholder-overflow,ellipsis);white-space:nowrap;width:100%}.select2-container--default .select2-selection--multiple .select2-selection__placeholder__option{display:none}.select2-container--default .select2-selection--multiple .select2-selection__clear{cursor:pointer;float:right;font-weight:700;margin-right:10px;margin-top:5px}.select2-container--default .select2-selection--multiple .select2-selection__choice{background:#e4e4e4;background:var(--select2-selection-choice-background,#e4e4e4);border:1px solid #aaa;border:1px solid var(--select2-selection-choice-border-color,#aaa);border-radius:4px;border-radius:var(--select2-selection-border-radius,4px);color:#000;color:var(--select2-selection-choice-text-color,#000);cursor:default;float:left;margin-right:5px;margin-top:5px;padding:0 5px}.select2-container--default .select2-selection--multiple .select2-selection__choice__remove{color:#999;color:var(--select2-selection-choice-close-color,#999);cursor:pointer;display:inline-block;font-weight:700;margin-right:2px}.select2-container--default .select2-selection--multiple .select2-selection__choice__remove:hover{color:#333;color:var(--select2-selection-choice-hover-close-color,#333)}.select2-container--default.select2-container--focused .select2-selection--multiple,.select2-container--default:not(.select2-container--open) .select2-focused .select2-selection--multiple,.select2-container--default:not(.select2-container--open) .select2-focused .select2-selection--single{border:1px solid #000;border:1px solid var(--select2-selection-focus-border-color,#000);outline:none}.select2-container--default.select2-container--disabled .select2-selection--multiple{background:#eee;background:var(--select2-selection-disabled-background,#eee);cursor:default}.select2-container--default.select2-container--disabled .select2-selection__choice__remove{display:none}.select2-container--default.select2-container--open.select2-container--above .select2-selection--multiple,.select2-container--default.select2-container--open.select2-container--above .select2-selection--single{border-top-left-radius:0;border-top-right-radius:0}.select2-container--default.select2-container--open.select2-container--below .select2-selection--multiple,.select2-container--default.select2-container--open.select2-container--below .select2-selection--single{border-bottom-left-radius:0;border-bottom-right-radius:0}.select2-container--default .select2-search--dropdown .select2-search__field{background:#fff;background:1px solid var(--select2-search-background,#fff);border:1px solid #aaa;border:1px solid var(--select2-search-border-color,#aaa);border-radius:0;border-radius:var(--select2-search-border-radius,0)}.select2-container--default .select2-search--inline .select2-search__field{-webkit-appearance:textfield;background:transparent;border:none;box-shadow:none;outline:none}.select2-container--default .select2-results>.select2-results__options{overflow-y:auto}.select2-container--default .select2-results__option[role=group]{padding:0}.select2-container--default .select2-results__option[aria-disabled=true]{background:transparent;background:var(--select2-option-disabled-background,transparent);color:#999;color:var(--select2-option-disabled-text-color,#999)}.select2-container--default .select2-results__option[aria-selected=true]{background:#ddd;background:var(--select2-option-selected-background,#ddd);color:#000;color:var(--select2-option-selected-text-color,#000)}.select2-container--default .select2-results__option .select2-results__option{padding-left:1em}.select2-container--default .select2-results__option .select2-results__option .select2-results__group{padding-left:0}.select2-container--default .select2-results__option .select2-results__option .select2-results__option{margin-left:-1em;padding-left:2em}.select2-container--default .select2-results__option .select2-results__option .select2-results__option .select2-results__option{margin-left:-2em;padding-left:3em}.select2-container--default .select2-results__option .select2-results__option .select2-results__option .select2-results__option .select2-results__option{margin-left:-3em;padding-left:4em}.select2-container--default .select2-results__option .select2-results__option .select2-results__option .select2-results__option .select2-results__option .select2-results__option{margin-left:-4em;padding-left:5em}.select2-container--default .select2-results__option .select2-results__option .select2-results__option .select2-results__option .select2-results__option .select2-results__option .select2-results__option{margin-left:-5em;padding-left:6em}.select2-container--default .select2-results__option--highlighted[aria-selected]{background:#5897fb;background:var(--select2-option-highlighted-background,#5897fb);color:#fff;color:var(--select2-option-highlighted-text-color,#fff)}.select2-container--default .select2-results__option--hide{display:none}.select2-container--default .select2-results__group{background:transparent;background:var(--select2-option-group-background,transparent);color:grey;color:var(--select2-option-group-text-color,grey);cursor:default;display:block;padding:6px}.select2-no-result{color:#888;color:var(--select2-no-result-color,#888);font-style:italic;font-style:var(--select2-font-style-color,italic)}:host.nostyle .select2-dropdown{border-color:transparent}:host.nostyle .select2-container--default .select2-focused .select2-selection--multiple,:host.nostyle .select2-container--default .select2-focused .select2-selection--single,:host.nostyle .select2-container--default:not(.select2-container--open) .select2-focused .select2-selection--multiple,:host.nostyle .select2-container--default:not(.select2-container--open) .select2-focused .select2-selection--single,:host.nostyle .select2-selection--multiple,:host.nostyle .select2-selection--single{background:transparent;border-color:transparent}:host.material{display:inline-block;width:300px}:host.material>.select2-container{padding-bottom:1.29688em;vertical-align:inherit}:host.material>.select2-container .selection{align-items:baseline;border-top:.84375em solid transparent;display:inline-flex;height:auto;padding:.4375em 0;width:100%}:host.material .select2-container--default .select2-selection--multiple,:host.material .select2-container--default .select2-selection--single{border:0;border-radius:0;box-sizing:border-box;height:24px;width:100%}:host.material .select2-container--default .select2-selection--multiple:before,:host.material .select2-container--default .select2-selection--single:before{background:#ddd;background:var(--select2-material-underline,#ddd);bottom:1.65em;content:" ";display:block;height:1px;position:absolute;width:100%}:host.material .select2-container--default .select2-selection--multiple:after,:host.material .select2-container--default .select2-selection--single:after{background:#5a419e;background:var(--select2-material-underline-active,#5a419e);bottom:1.63em;content:" ";display:block;height:2px;left:50%;position:absolute;transition:none;width:0}:host.material .select2-container--default .select2-selection--multiple .select2-selection__rendered,:host.material .select2-container--default .select2-selection--single .select2-selection__rendered{line-height:inherit;padding-left:1px}:host.material .select2-container--default .select2-selection--multiple .select2-selection__placeholder,:host.material .select2-container--default .select2-selection--single .select2-selection__placeholder{color:rgba(0,0,0,.38);color:var(--select2-material-placeholder-color,rgba(0,0,0,.38));display:block;left:0;position:absolute;top:20px;transform-origin:0 21px;transition:transform .3s}:host.material .select2-container--default .select2-container--open{bottom:1.6em;left:0}:host.material .select2-container--default .select2-selection__placeholder__option{transform:translateY(-1.5em) scale(.75) perspective(100px) translateZ(.001px);width:133.33333%}:host.material .select2-container--default .select2-selection__arrow{top:20px}:host.material .select2-container--default.select2-container--open .select2-selection--multiple:after,:host.material .select2-container--default.select2-container--open .select2-selection--single:after,:host.material .select2-container--default .select2-focused .select2-selection--multiple:after,:host.material .select2-container--default .select2-focused .select2-selection--single:after{left:0;transition:width .3s cubic-bezier(.12,1,.77,1),left .3s cubic-bezier(.12,1,.77,1);width:100%}:host.material .select2-container--default .select2-dropdown{border:0;border-radius:0;box-shadow:0 5px 5px rgba(0,0,0,.5)}:host.material .select2-container--default .select2-results__option--highlighted[aria-selected],:host.material .select2-container--default .select2-results__option[aria-selected=true]{background:rgba(0,0,0,.04);background:var(--select2-material-option-selected-background,rgba(0,0,0,.04));color:#000;color:var(--select2-material-option-highlighted-text-color,#000)}:host.material .select2-container--default .select2-results__option[aria-selected=true]{color:#ff5722;color:var(--select2-material-option-selected-text-color,#ff5722)}:host.material .select2-container--default.select2-container--disabled .select2-selection--multiple,:host.material .select2-container--default.select2-container--disabled .select2-selection--single{background:transparent}:host.material .select2-container--default.select2-container--disabled .select2-selection--multiple:before,:host.material .select2-container--default.select2-container--disabled .select2-selection--single:before{background:linear-gradient(90deg,rgba(0,0,0,.26) 0,rgba(0,0,0,.26) 33%,transparent 0);background:var(--select2-material-underline-disabled,linear-gradient(90deg,rgba(0,0,0,.26) 0,rgba(0,0,0,.26) 33%,transparent 0));background-position:0 bottom;background-repeat:repeat-x;background-size:4px 1px}:host.material.ng-invalid.ng-touched .select2-container--default .select2-selection--multiple:after,:host.material.ng-invalid.ng-touched .select2-container--default .select2-selection--multiple:before,:host.material.ng-invalid.ng-touched .select2-container--default .select2-selection--single:after,:host.material.ng-invalid.ng-touched .select2-container--default .select2-selection--single:before{background:red;background:var(--select2-material-underline-invalid,red)}:host.material:not(.select2-container--open) .select2-focused .select2-selection--multiple,:host.material:not(.select2-container--open) .select2-focused .select2-selection--single{border:0}:host.material .select2-subscript-wrapper{color:#888;color:var(--select2-hint-text-color,#888);font-size:75%;position:absolute;top:calc(100% - 1.72917em)}::ng-deep .select2-overlay-backdrop{background:rgba(0,0,0,.32);background:var(--select2-overlay-backdrop,transparent)}::ng-deep .cdk-overlay-container .select2-container .select2-dropdown.select2-dropdown--above{bottom:28px}::ng-deep .cdk-overlay-container .select2-container--open.select2-position-auto .select2-dropdown{margin-bottom:28px}::ng-deep .cdk-overlay-container .select2-container--open.select2-position-auto .select2-dropdown.select2-dropdown--above{bottom:0;margin-bottom:0;margin-top:28px}@supports (-moz-appearance:none){select2.material .select2-container--default .select2-selection--multiple,select2.material .select2-container--default .select2-selection--single{height:26px}}@supports (-ms-scroll-limit:0){select2.material .select2-container--default .select2-selection--multiple,select2.material .select2-container--default .select2-selection--single{height:25px}}']}]}],f.ctorParameters=function(){return[{type:n.ViewportRuler},{type:o.ChangeDetectorRef},{type:i.NgForm,decorators:[{type:o.Optional}]},{type:i.FormGroupDirective,decorators:[{type:o.Optional}]},{type:i.NgControl,decorators:[{type:o.Self},{type:o.Optional}]},{type:String,decorators:[{type:o.Attribute,args:["tabindex"]}]}]},f.propDecorators={data:[{type:o.Input}],minCharForSearch:[{type:o.Input}],displaySearchStatus:[{type:o.Input}],placeholder:[{type:o.Input}],customSearchEnabled:[{type:o.Input}],limitSelection:[{type:o.Input}],listPosition:[{type:o.Input}],multiple:[{type:o.Input}],overlay:[{type:o.Input}],styleMode:[{type:o.Input}],noResultMessage:[{type:o.Input}],infiniteScrollDistance:[{type:o.Input}],infiniteScrollThrottle:[{type:o.Input}],infiniteScroll:[{type:o.Input}],editPattern:[{type:o.Input}],templates:[{type:o.Input}],resultMaxHeight:[{type:o.Input}],update:[{type:o.Output}],open:[{type:o.Output}],close:[{type:o.Output}],focus:[{type:o.Output}],blur:[{type:o.Output}],search:[{type:o.Output}],scroll:[{type:o.Output}],removeOption:[{type:o.Output}],minCountForSearch:[{type:o.Input}],id:[{type:o.Input},{type:o.HostBinding,args:["id"]}],required:[{type:o.Input}],disabled:[{type:o.Input}],hideSelectedItems:[{type:o.Input}],readonly:[{type:o.Input}],value:[{type:o.Input}],tabIndex:[{type:o.Input}],resettable:[{type:o.Input}],ariaInvalid:[{type:o.HostBinding,args:["attr.aria-invalid"]}],classMaterial:[{type:o.HostBinding,args:["class.material"]}],classNostyle:[{type:o.HostBinding,args:["class.nostyle"]}],select2above:[{type:o.HostBinding,args:["class.select2-above"]}],cdkConnectedOverlay:[{type:o.ViewChild,args:[t.CdkConnectedOverlay]}],selection:[{type:o.ViewChild,args:["selection",{static:!0}]}],resultContainer:[{type:o.ViewChild,args:["results"]}],results:[{type:o.ViewChildren,args:["result"]}],searchInput:[{type:o.ViewChild,args:["searchInput"]}],dropdown:[{type:o.ViewChild,args:["dropdown"]}]};var g=function(){};g.decorators=[{type:o.Directive,args:[{selector:"select2-hint"}]}];var b=function(){};b.decorators=[{type:o.Directive,args:[{selector:"select2-label"}]}];var v=function(){};v.decorators=[{type:o.NgModule,args:[{imports:[r.CommonModule,i.FormsModule,t.OverlayModule,i.ReactiveFormsModule,s.InfiniteScrollModule],declarations:[g,b,f],exports:[i.FormsModule,i.ReactiveFormsModule,g,b,f]}]}],e.Select2=f,e.Select2Hint=g,e.Select2Label=b,e.Select2Module=v,e.Select2Utils=u,e.defaultMinCountForSearch=6,e.protectRegexp=c,e.timeout=200,e.unicodePatterns=a,Object.defineProperty(e,"__esModule",{value:!0})}));
|
|
2
|
-
//# sourceMappingURL=ng-select2-component.umd.min.js.map
|