diff --git a/README.md b/README.md
index 9a83887..0d5081e 100644
--- a/README.md
+++ b/README.md
@@ -25,21 +25,21 @@ npm i ng-select2-component --save
| Version | For **Angular** | Notes |
| --------- | --------------- | ----------------- |
-| `7.3.1` | 7, 8 and 9 | View Engine |
-| `8.1.0` | 10, 11 and 12 | View Engine |
-| `9.0.0` | 13 | Ivy |
-| `10.0.0` | 14 | Ivy |
-| `11.1.0` | 15 | Ivy |
-| `12.1.0` | 16 | Ivy |
-| `13.0.12` | 16.1 | Ivy |
-| `14.0.1` | 17 | Ivy |
-| `15.3.0` | 18 | Ivy |
-| `16.0.0` | 19 | Ivy / Module |
| `17.0.0` | 19 and more | Ivy / Stand-alone |
+| `16.0.0` | 19 | Ivy / Module |
+| `15.3.0` | 18 | Ivy |
+| `14.0.1` | 17 | Ivy |
+| `13.0.12` | 16.1 | Ivy |
+| `12.1.0` | 16 | Ivy |
+| `11.1.0` | 15 | Ivy |
+| `10.0.0` | 14 | Ivy |
+| `9.0.0` | 13 | Ivy |
+| `8.1.0` | 10, 11 and 12 | View Engine |
+| `7.3.1` | 7, 8 and 9 | View Engine |
## Demo
-[See a demo](https://harvest-dev.github.io/ng-select2/dist/ng-select2/browser).
+[See a demo and code generator](https://harvest-dev.github.io/ng-select2/dist/ng-select2/browser).
## Features
@@ -57,6 +57,7 @@ npm i ng-select2-component --save
- material style
- form binding
- templating
+- etc.
## Usage
@@ -82,58 +83,51 @@ class MyComponent {}
### properties and events of the component
-| name | type | status | default | description | required |
-| ------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------ | -------- | -------------------- | ----------------------------------------------------------------------------------------------------------------------- | ------------------------------------ |
-| `data` | [`Select2Data`](#select2-data-structure) | required | | the data of the select2 | |
-| `value` | [`Select2Value`](#select2-data-structure) | | | initial value | |
-| `minCharForSearch` | `number` | | `0` | start the search when the number of characters is reached (`0` = unlimited) | |
-| `minCountForSearch` | `number` | | `6` | hide search box if `options.length < minCountForSearch` | |
-| `displaySearchStatus` | `'default'` `'hidden'` `'always'` | | `'default'` | display the search box (`default` : is based on `minCountForSearch`) | |
-| `placeholder` | `string` | | | the placeholder string if nothing selected | |
-| `noResultMessage` | `string` | | | the message string if no results when using the search field | |
-| `customSearchEnabled` | `boolean` | | `false` | will trigger `search` event, and disable inside filter | |
-| `multiple` | `boolean` | | `false` | select multiple options | |
-| `resettable` | `boolean` | | `false` | add a button to reset value | not `multiple` |
-| `resetSelectedValue` | `any` | | `undefined` | selected option when × is clicked | not `multiple` and with `resettable` |
-| `autoCreate` | `boolean` | | `false` | gives the possibility to add elements not present in the list. | |
-| `limitSelection` | `number` | | `0` | to limit multiple selection (`0` = unlimited) | |
-| `hideSelectedItems` | `boolean` | | `false` | remove selected values | with `multiple` |
-| `resultMaxHeight` | `string` | | `'200px'` | change the height size of results | |
-| `maxResults` | `number` | | `0` | maximum results limit (`0` = unlimited) | |
-| `maxResultsMessage` | `string` | | `'Too much result…'` | message when maximum result | |
-| `grid` | `number` or `string` | | | option by line in grid layout (empty or `0` = no grid layout) `number`: item by line `string`: minimal item width | |
-| `listPosition` | `'below'` `'above'` `'auto'` ¹ | | `'below'` | the position for the dropdown list | ¹ `'auto'`: only with `overlay` |
-| `infiniteScroll` | `boolean` | | `false` | active infiniteScroll on dropdown list | with `ngx-infinite-scroll` |
-| `infiniteScrollDistance` | `number` | | `1.5` | infiniteScroll distance | with `ngx-infinite-scroll` |
-| `infiniteScrollThrottle` | `number` | | `150` | infiniteScroll throttle | |
-| `overlay` | `boolean` | | `false` | active an overlay mode for dropdown list (with angular cdk). (See [Overlay](#overlay)) | |
-| `styleMode` | `'default'` `'material'` `'noStyle'` `'borderless'` | | `'default'` | change style for material style or remove border and background color | |
-| `templates` | `TemplateRef` `{option?: TemplateRef, group?: TemplateRef}` etc. (see ”possible object” in [Templating](#templating)) | | | use templates for formatting content (see [Templating](#templating)) | |
-| `templateSelection` | `TemplateRef` | | | use templates for formatting content (see [Templating](#templating)) | |
-| `noLabelTemplate` | `boolean` | | `false` | do not use the template in the selection, stay in text mode | |
-| `selectionOverride` | `string` or function ([`Select2SelectionOverride`](#select2-data-structure)) | | | Replace selection by a text `string`: `%size%` = total selected options `function`: juste show the string | |
-| `selectionNoWrap` | `boolean` | | `false` | Force selection on one line | |
-| `showSelectAll` | `boolean` | | `false` | Add an option to select all options | with `multiple` |
-| `selectAllText` | `string` | | `'Select all'` | Text when all options as not selected | with `multiple` |
-| `removeAllText` | `string` | | `'Remove all'` | Text when all options as selected | with `multiple` |
-| `editPattern` | `(str: string) => string` | | | use it for change the pattern of the filter search | |
-| `ngModel` `id` `required` `disabled` `readonly` `tabIndex` | | | | just like a `select` control | |
-| `(update)` | `(event: `[`Select2UpdateEvent`](#select2-data-structure)`) => void` | event | | triggered when user select an option | |
-| `(open)` | `(event: Select2) => void` | event | | triggered when user open the options | |
-| `(close)` | `(event: Select2) => void` | event | | triggered when user close the options | |
-| `(focus)` | `(event: Select2) => void` | event | | triggered when user enters the component | |
-| `(blur)` | `(event: Select2) => void` | event | | triggered when user leaves the component | |
-| `(search)` | `(event: `[`Select2SearchEvent`](#select2-data-structure)`) => void` | event | | triggered when search text changed | with `customSearchEnabled` |
-| `(scroll)` | `(event: `[`Select2ScrollEvent`](#select2-data-structure)`) => void` | event | | triggered when infiniteScroll is on `up` or `down` position | with `ngx-infinite-scroll` |
-| `(removeOption)` | `(event: `[`Select2RemoveEvent`](#select2-data-structure)`) => void` | event | | triggered when an option is removed from the list of selected options options list | with `multiple` |
-| `(autoCreateItem)` | `(event: `[`Select2AutoCreateEvent`](#select2-data-structure)`) => void` | event | | triggered when a new item has been added | with `autoCreate` |
-
- @Input() selectionOverride: Select2SelectionOverride;
-
- /** force selection on one line */
- @HostBinding('class.select2-selection-nowrap')
- @Input({ transform: booleanAttribute })
- selectionNoWrap = false;
+| name | type | default | description | required |
+| ------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------- | -------------------- | ----------------------------------------------------------------------------------------------------------------------- | ------------------------------- |
+| `data` (required) | [`Select2Data`](#select2-data-structure) | | the data of the select2 | |
+| `value` | [`Select2Value`](#select2-data-structure) | | initial value | |
+| `minCharForSearch` | `number` | `0` | start the search when the number of characters is reached (`0` = unlimited) | |
+| `minCountForSearch` | `number` | `6` | hide search box if `options.length < minCountForSearch` | |
+| `displaySearchStatus` | `'default'` `'hidden'` `'always'` | `'default'` | display the search box (`default` : is based on `minCountForSearch`) | |
+| `placeholder` | `string` | | the placeholder string if nothing selected | |
+| `noResultMessage` | `string` | | the message string if no results when using the search field | |
+| `customSearchEnabled` | `boolean` | `false` | will trigger `search` event, and disable inside filter | |
+| `multiple` | `boolean` | `false` | select multiple options | |
+| `resettable` | `boolean` | `false` | add a button to reset value | |
+| `resetSelectedValue` | `any` | `undefined` | selected option when × is clicked | |
+| `autoCreate` | `boolean` | `false` | gives the possibility to add elements not present in the list. | |
+| `limitSelection` | `number` | `0` | to limit multiple selection (`0` = unlimited) | |
+| `hideSelectedItems` | `boolean` | `false` | remove selected values | with `multiple` |
+| `resultMaxHeight` | `string` | `'200px'` | change the height size of results | |
+| `maxResults` | `number` | `0` | maximum results limit (`0` = unlimited) | |
+| `maxResultsMessage` | `string` | `'Too much result…'` | message when maximum result | |
+| `grid` | `number` or `string` | | option by line in grid layout (empty or `0` = no grid layout) `number`: item by line `string`: minimal item width | |
+| `listPosition` | `'below'` `'above'` `'auto'` ¹ | `'below'` | the position for the dropdown list | ¹ `'auto'`: only with `overlay` |
+| `infiniteScroll` | `boolean` | `false` | active infiniteScroll on dropdown list | with `ngx-infinite-scroll` |
+| `infiniteScrollDistance` | `number` | `1.5` | infiniteScroll distance | with `ngx-infinite-scroll` |
+| `infiniteScrollThrottle` | `number` | `150` | infiniteScroll throttle | |
+| `overlay` | `boolean` | `false` | active an overlay mode for dropdown list (with angular cdk). (See [Overlay](#overlay)) | |
+| `styleMode` | `'default'` `'material'` `'noStyle'` `'borderless'` | `'default'` | change style for material style or remove border and background color | |
+| `templates` | [`Select2Template`](#select2-data-structure) (see ”possible object” in [Templating](#templating)) | | use templates for formatting content (see [Templating](#templating)) | |
+| `templateSelection` | `TemplateRef` | | use templates for formatting content (see [Templating](#templating)) | |
+| `noLabelTemplate` | `boolean` | `false` | do not use the template in the selection, stay in text mode | |
+| `selectionOverride` | [`Select2SelectionOverride`](#select2-data-structure) | | Replace selection by a text `string`: `%size%` = total selected options `function`: juste show the string | |
+| `selectionNoWrap` | `boolean` | `false` | Force selection on one line | |
+| `showSelectAll` | `boolean` | `false` | Add an option to select all options | with `multiple` |
+| `selectAllText` | `string` | `'Select all'` | Text when all options as not selected | with `multiple` |
+| `removeAllText` | `string` | `'Remove all'` | Text when all options as selected | with `multiple` |
+| `editPattern` | `(str: string) => string` | | use it for change the pattern of the filter search | |
+| `ngModel` `id` `required` `disabled` `readonly` `tabIndex` | | | just like a `select` control | |
+| `(update)` | `(event: `[`Select2UpdateEvent`](#select2-data-structure)`) => void` | | triggered when user select an option | |
+| `(open)` | `(event: Select2) => void` | | triggered when user open the options | |
+| `(close)` | `(event: Select2) => void` | | triggered when user close the options | |
+| `(focus)` | `(event: Select2) => void` | | triggered when user enters the component | |
+| `(blur)` | `(event: Select2) => void` | | triggered when user leaves the component | |
+| `(search)` | `(event: `[`Select2SearchEvent`](#select2-data-structure)`) => void` | | triggered when search text changed | with `customSearchEnabled` |
+| `(scroll)` | `(event: `[`Select2ScrollEvent`](#select2-data-structure)`) => void` | | triggered when infiniteScroll is on `up` or `down` position | with `ngx-infinite-scroll` |
+| `(removeOption)` | `(event: `[`Select2RemoveEvent`](#select2-data-structure)`) => void` | | triggered when an option is removed from the list of selected options options list | with `multiple` |
+| `(autoCreateItem)` | `(event: `[`Select2AutoCreateEvent`](#select2-data-structure)`) => void` | | triggered when a new item has been added | with `autoCreate` |
### select2 data structure
@@ -145,7 +139,7 @@ export interface Select2Group {
options: Select2Option[];
/** add classes */
classes?: string;
- /** template id */
+ /** template id dropdown & selection if no templateSelectionId */
templateId?: string;
/** template data */
data?: any;
@@ -162,17 +156,19 @@ export interface Select2Option {
id?: string;
/** add classes */
classes?: string;
- /** template id */
+ /** template id dropdown & selection if no templateSelectionId */
templateId?: string;
+ /** template id for selection */
+ templateSelectionId?: string;
/** template data */
data?: any;
/** hide this option */
hide?: boolean;
}
-export type Select2Value = string | number | boolean | object;
+export type Select2Value = string | number | boolean | object | null | undefined;
-export type Select2UpdateValue = Select2Value | Select2Value[];
+export type Select2UpdateValue = Select2Value | Select2Value[] | undefined | null;
export type Select2Data = (Select2Group | Select2Option)[];
@@ -180,9 +176,9 @@ export interface Select2UpdateEvent
/** component */
readonly component: Select2;
/** current selected value */
- readonly value: U;
+ readonly value: U | null;
/** selected option */
- readonly options: Select2Option[];
+ readonly options: Select2Option[] | null;
}
export interface Select2AutoCreateEvent {
@@ -191,14 +187,14 @@ export interface Select2AutoCreateEvent {
/** component */
readonly component: Select2;
/** current selected value */
- readonly value: U;
+ readonly value: U | null;
/** search text */
readonly search: string;
/** current data source */
@@ -228,6 +224,8 @@ export interface Select2ScrollEvent {
}
export type Select2SelectionOverride = string | ((params: { size: number; options: Select2Option[] | null }) => string);
+
+export type Select2Template = TemplateRef | { [key: string]: TemplateRef } | undefined;
```
### Templating
@@ -293,6 +291,14 @@ const data: Select2Data = [
];
```
+#### Template for change the selection
+
+```html
+
+ {{ data?.color }} ({{ data?.name }})
+
+```
+
#### Possible object
- `TemplateRef`
diff --git a/dist/ng-select2/browser/chunk-4DT2245S.js b/dist/ng-select2/browser/chunk-2APTA5VP.js
similarity index 97%
rename from dist/ng-select2/browser/chunk-4DT2245S.js
rename to dist/ng-select2/browser/chunk-2APTA5VP.js
index 0426eeb..cbbe251 100644
--- a/dist/ng-select2/browser/chunk-4DT2245S.js
+++ b/dist/ng-select2/browser/chunk-2APTA5VP.js
@@ -1 +1 @@
-import{a as S}from"./chunk-JZQVIJ3O.js";import"./chunk-4FOF4764.js";import{c as I,v as x,w as B}from"./chunk-IUSK23HG.js";import"./chunk-KWVA3REN.js";import{x as u,y as E}from"./chunk-7IHFBV5J.js";import{Cb as i,Db as a,Eb as f,Sa as t,Sb as l,Tb as r,Ub as b,db as m,ec as o,fc as n,hb as y,ka as v,ub as d}from"./chunk-S5UJW4WF.js";import"./chunk-EQDQRRRY.js";var R=(()=>{class p extends S{constructor(){super(...arguments),this.data3=I}static{this.\u0275fac=(()=>{let s;return function(e){return(s||(s=v(p)))(e||p)}})()}static{this.\u0275cmp=m({type:p,selectors:[["examples-wai"]],features:[y],decls:37,vars:43,consts:[[1,"container"],[1,"row"],[1,"col-6"],["id","select2-0a","title","title",3,"overlay","data"],["id","select2-0b-custom-label"],["id","select2-0b-description"],["id","select2-0b","title","title","ariaLabelledby","select2-0b-custom-label","ariaDescribedby","select2-0b-description",3,"overlay","styleMode","data"],["id","select2-0c","ariaInvalid","",3,"overlay","data"],["id","select2-0d","required","",3,"overlay","data"],["id","select2-0e","readonly","","value","foo",3,"overlay","data"],["id","select2-0f","disabled","","value","foo",3,"overlay","data"],["id","select2-0g","resettable","","value","foo","ariaResetButtonDescription","Clear the field",3,"overlay","styleMode","data"]],template:function(c,e){c&1&&(i(0,"h2"),l(1),o(2,"transloco"),a(),i(3,"div",0)(4,"div",1)(5,"div",2)(6,"select2",3)(7,"select2-label"),l(8),o(9,"transloco"),a()(),i(10,"div",4),l(11),o(12,"transloco"),a(),i(13,"div",5),l(14),o(15,"transloco"),a(),f(16,"select2",6),i(17,"select2",7)(18,"select2-label"),l(19),o(20,"transloco"),a()(),i(21,"select2",8)(22,"select2-label"),l(23),o(24,"transloco"),a()(),i(25,"select2",9)(26,"select2-label"),l(27),o(28,"transloco"),a()(),i(29,"select2",10)(30,"select2-label"),l(31),o(32,"transloco"),a()(),i(33,"select2",11)(34,"select2-label"),l(35),o(36,"transloco"),a()()()()()),c&2&&(t(),b("WAI - ",n(2,25,"Accessibility"),""),t(5),d("overlay",e.overlay)("data",e.data3),t(2),r(n(9,27,"Label")),t(3),r(n(12,29,"External label")),t(3),r(n(15,31,"External description")),t(2),d("overlay",e.overlay)("styleMode",e.styleMode)("data",e.data3),t(),d("overlay",e.overlay)("data",e.data3),t(2),r(n(20,33,"Invalid field")),t(2),d("overlay",e.overlay)("data",e.data3),t(2),r(n(24,35,"Required field")),t(2),d("overlay",e.overlay)("data",e.data3),t(2),r(n(28,37,"Readonly field")),t(2),d("overlay",e.overlay)("data",e.data3),t(2),r(n(32,39,"Disabled field")),t(2),d("overlay",e.overlay)("styleMode",e.styleMode)("data",e.data3),t(2),r(n(36,41,"Resettable field")))},dependencies:[B,x,E,u],encapsulation:2})}}return p})();export{R as ExemplesWaiComponent};
+import{a as S}from"./chunk-WJI5FBHD.js";import"./chunk-4FOF4764.js";import{c as I,v as x,w as B}from"./chunk-IUSK23HG.js";import"./chunk-KWVA3REN.js";import{x as u,y as E}from"./chunk-7IHFBV5J.js";import{Cb as i,Db as a,Eb as f,Sa as t,Sb as l,Tb as r,Ub as b,db as m,ec as o,fc as n,hb as y,ka as v,ub as d}from"./chunk-S5UJW4WF.js";import"./chunk-EQDQRRRY.js";var R=(()=>{class p extends S{constructor(){super(...arguments),this.data3=I}static{this.\u0275fac=(()=>{let s;return function(e){return(s||(s=v(p)))(e||p)}})()}static{this.\u0275cmp=m({type:p,selectors:[["examples-wai"]],features:[y],decls:37,vars:43,consts:[[1,"container"],[1,"row"],[1,"col-6"],["id","select2-0a","title","title",3,"overlay","data"],["id","select2-0b-custom-label"],["id","select2-0b-description"],["id","select2-0b","title","title","ariaLabelledby","select2-0b-custom-label","ariaDescribedby","select2-0b-description",3,"overlay","styleMode","data"],["id","select2-0c","ariaInvalid","",3,"overlay","data"],["id","select2-0d","required","",3,"overlay","data"],["id","select2-0e","readonly","","value","foo",3,"overlay","data"],["id","select2-0f","disabled","","value","foo",3,"overlay","data"],["id","select2-0g","resettable","","value","foo","ariaResetButtonDescription","Clear the field",3,"overlay","styleMode","data"]],template:function(c,e){c&1&&(i(0,"h2"),l(1),o(2,"transloco"),a(),i(3,"div",0)(4,"div",1)(5,"div",2)(6,"select2",3)(7,"select2-label"),l(8),o(9,"transloco"),a()(),i(10,"div",4),l(11),o(12,"transloco"),a(),i(13,"div",5),l(14),o(15,"transloco"),a(),f(16,"select2",6),i(17,"select2",7)(18,"select2-label"),l(19),o(20,"transloco"),a()(),i(21,"select2",8)(22,"select2-label"),l(23),o(24,"transloco"),a()(),i(25,"select2",9)(26,"select2-label"),l(27),o(28,"transloco"),a()(),i(29,"select2",10)(30,"select2-label"),l(31),o(32,"transloco"),a()(),i(33,"select2",11)(34,"select2-label"),l(35),o(36,"transloco"),a()()()()()),c&2&&(t(),b("WAI - ",n(2,25,"Accessibility"),""),t(5),d("overlay",e.overlay)("data",e.data3),t(2),r(n(9,27,"Label")),t(3),r(n(12,29,"External label")),t(3),r(n(15,31,"External description")),t(2),d("overlay",e.overlay)("styleMode",e.styleMode)("data",e.data3),t(),d("overlay",e.overlay)("data",e.data3),t(2),r(n(20,33,"Invalid field")),t(2),d("overlay",e.overlay)("data",e.data3),t(2),r(n(24,35,"Required field")),t(2),d("overlay",e.overlay)("data",e.data3),t(2),r(n(28,37,"Readonly field")),t(2),d("overlay",e.overlay)("data",e.data3),t(2),r(n(32,39,"Disabled field")),t(2),d("overlay",e.overlay)("styleMode",e.styleMode)("data",e.data3),t(2),r(n(36,41,"Resettable field")))},dependencies:[B,x,E,u],encapsulation:2})}}return p})();export{R as ExemplesWaiComponent};
diff --git a/dist/ng-select2/browser/chunk-HZ3GTPNO.js b/dist/ng-select2/browser/chunk-3YFZRU3P.js
similarity index 98%
rename from dist/ng-select2/browser/chunk-HZ3GTPNO.js
rename to dist/ng-select2/browser/chunk-3YFZRU3P.js
index 9ff8dd1..24bc41a 100644
--- a/dist/ng-select2/browser/chunk-HZ3GTPNO.js
+++ b/dist/ng-select2/browser/chunk-3YFZRU3P.js
@@ -1 +1 @@
-import{a as M}from"./chunk-JZQVIJ3O.js";import"./chunk-4FOF4764.js";import{a as b,b as h,s as x,t as S,w as B}from"./chunk-IUSK23HG.js";import"./chunk-KWVA3REN.js";import{x as E,y as f}from"./chunk-7IHFBV5J.js";import{Cb as i,Db as a,Ec as C,Ib as u,Sa as t,Sb as l,Tb as r,db as y,ec as o,fc as p,hb as I,ka as _,ub as m}from"./chunk-S5UJW4WF.js";import"./chunk-EQDQRRRY.js";var z=(()=>{class s extends M{constructor(){super(...arguments),this.data34=h,this.data34b=b,this.data35=x,this.data35b=S,this.value34="",this.value34b="",this.value35="",this.value35b=""}static{this.\u0275fac=(()=>{let v;return function(e){return(v||(v=_(s)))(e||s)}})()}static{this.\u0275cmp=y({type:s,selectors:[["examples-grid"]],features:[I],decls:53,vars:55,consts:[[1,"container"],[1,"row"],["id","ex-34b",1,"col-12"],["id","select2-34","grid","4",1,"col-6",3,"autoCreateItem","update","overlay","styleMode","data","value"],[1,"col-12","value"],["grid","4","id","select2-34b",1,"col-6",3,"autoCreateItem","update","overlay","styleMode","data","value"],["id","ex-35",1,"col-12"],["id","select2-35","grid","35px",1,"col-6",3,"autoCreateItem","update","overlay","styleMode","data","value"],["id","ex-35b",1,"col-12"],["multiple","","id","select2-35b","grid","35px",1,"col-6",3,"autoCreateItem","update","overlay","styleMode","data","value"]],template:function(c,e){c&1&&(i(0,"h2"),l(1),o(2,"transloco"),a(),i(3,"div",0)(4,"div",1)(5,"h3",2),l(6),o(7,"transloco"),a(),i(8,"select2",3),u("autoCreateItem",function(n){return e.autoCreateItem("value34",n)})("update",function(n){return e.update("value34",n)}),a(),i(9,"div",4)(10,"div")(11,"span"),l(12),o(13,"transloco"),a(),i(14,"code"),l(15),o(16,"json"),a()()(),i(17,"h3",2),l(18),o(19,"transloco"),a(),i(20,"select2",5),u("autoCreateItem",function(n){return e.autoCreateItem("value34b",n)})("update",function(n){return e.update("value34b",n)}),a(),i(21,"div",4)(22,"div")(23,"span"),l(24),o(25,"transloco"),a(),i(26,"code"),l(27),o(28,"json"),a()()(),i(29,"h3",6),l(30),o(31,"transloco"),a(),i(32,"select2",7),u("autoCreateItem",function(n){return e.autoCreateItem("value35",n)})("update",function(n){return e.update("value35",n)}),a(),i(33,"div",4)(34,"div")(35,"span"),l(36),o(37,"transloco"),a(),i(38,"code"),l(39),o(40,"json"),a()()(),i(41,"h3",8),l(42),o(43,"transloco"),a(),i(44,"select2",9),u("autoCreateItem",function(n){return e.autoCreateItem("value35b",n)})("update",function(n){return e.update("value35b",n)}),a(),i(45,"div",4)(46,"div")(47,"span"),l(48),o(49,"transloco"),a(),i(50,"code"),l(51),o(52,"json"),a()()()()()),c&2&&(t(),r(p(2,29,"Grid list")),t(5),r(p(7,31,"Basic (4 per line)")),t(2),m("overlay",e.overlay)("styleMode",e.styleMode)("data",e.data34)("value",e.value34),t(4),r(p(13,33,"value:")),t(3),r(p(16,35,e.value34)),t(3),r(p(19,37,"With sub-group (4 per line)")),t(2),m("overlay",e.overlay)("styleMode",e.styleMode)("data",e.data34b)("value",e.value34b),t(4),r(p(25,39,"value:")),t(3),r(p(28,41,e.value34b)),t(3),r(p(31,43,"Grid with cell size (min 35px par item)")),t(2),m("overlay",e.overlay)("styleMode",e.styleMode)("data",e.data35)("value",e.value35),t(4),r(p(37,45,"value:")),t(3),r(p(40,47,e.value35)),t(3),r(p(43,49,"Grid with cell size & sub-group (min 35px par item)")),t(2),m("overlay",e.overlay)("styleMode",e.styleMode)("data",e.data35b)("value",e.value35b),t(4),r(p(49,51,"value:")),t(3),r(p(52,53,e.value35b)))},dependencies:[B,C,f,E],encapsulation:2})}}return s})();export{z as ExemplesGridComponent};
+import{a as M}from"./chunk-WJI5FBHD.js";import"./chunk-4FOF4764.js";import{a as b,b as h,s as x,t as S,w as B}from"./chunk-IUSK23HG.js";import"./chunk-KWVA3REN.js";import{x as E,y as f}from"./chunk-7IHFBV5J.js";import{Cb as i,Db as a,Ec as C,Ib as u,Sa as t,Sb as l,Tb as r,db as y,ec as o,fc as p,hb as I,ka as _,ub as m}from"./chunk-S5UJW4WF.js";import"./chunk-EQDQRRRY.js";var z=(()=>{class s extends M{constructor(){super(...arguments),this.data34=h,this.data34b=b,this.data35=x,this.data35b=S,this.value34="",this.value34b="",this.value35="",this.value35b=""}static{this.\u0275fac=(()=>{let v;return function(e){return(v||(v=_(s)))(e||s)}})()}static{this.\u0275cmp=y({type:s,selectors:[["examples-grid"]],features:[I],decls:53,vars:55,consts:[[1,"container"],[1,"row"],["id","ex-34b",1,"col-12"],["id","select2-34","grid","4",1,"col-6",3,"autoCreateItem","update","overlay","styleMode","data","value"],[1,"col-12","value"],["grid","4","id","select2-34b",1,"col-6",3,"autoCreateItem","update","overlay","styleMode","data","value"],["id","ex-35",1,"col-12"],["id","select2-35","grid","35px",1,"col-6",3,"autoCreateItem","update","overlay","styleMode","data","value"],["id","ex-35b",1,"col-12"],["multiple","","id","select2-35b","grid","35px",1,"col-6",3,"autoCreateItem","update","overlay","styleMode","data","value"]],template:function(c,e){c&1&&(i(0,"h2"),l(1),o(2,"transloco"),a(),i(3,"div",0)(4,"div",1)(5,"h3",2),l(6),o(7,"transloco"),a(),i(8,"select2",3),u("autoCreateItem",function(n){return e.autoCreateItem("value34",n)})("update",function(n){return e.update("value34",n)}),a(),i(9,"div",4)(10,"div")(11,"span"),l(12),o(13,"transloco"),a(),i(14,"code"),l(15),o(16,"json"),a()()(),i(17,"h3",2),l(18),o(19,"transloco"),a(),i(20,"select2",5),u("autoCreateItem",function(n){return e.autoCreateItem("value34b",n)})("update",function(n){return e.update("value34b",n)}),a(),i(21,"div",4)(22,"div")(23,"span"),l(24),o(25,"transloco"),a(),i(26,"code"),l(27),o(28,"json"),a()()(),i(29,"h3",6),l(30),o(31,"transloco"),a(),i(32,"select2",7),u("autoCreateItem",function(n){return e.autoCreateItem("value35",n)})("update",function(n){return e.update("value35",n)}),a(),i(33,"div",4)(34,"div")(35,"span"),l(36),o(37,"transloco"),a(),i(38,"code"),l(39),o(40,"json"),a()()(),i(41,"h3",8),l(42),o(43,"transloco"),a(),i(44,"select2",9),u("autoCreateItem",function(n){return e.autoCreateItem("value35b",n)})("update",function(n){return e.update("value35b",n)}),a(),i(45,"div",4)(46,"div")(47,"span"),l(48),o(49,"transloco"),a(),i(50,"code"),l(51),o(52,"json"),a()()()()()),c&2&&(t(),r(p(2,29,"Grid list")),t(5),r(p(7,31,"Basic (4 per line)")),t(2),m("overlay",e.overlay)("styleMode",e.styleMode)("data",e.data34)("value",e.value34),t(4),r(p(13,33,"value:")),t(3),r(p(16,35,e.value34)),t(3),r(p(19,37,"With sub-group (4 per line)")),t(2),m("overlay",e.overlay)("styleMode",e.styleMode)("data",e.data34b)("value",e.value34b),t(4),r(p(25,39,"value:")),t(3),r(p(28,41,e.value34b)),t(3),r(p(31,43,"Grid with cell size (min 35px par item)")),t(2),m("overlay",e.overlay)("styleMode",e.styleMode)("data",e.data35)("value",e.value35),t(4),r(p(37,45,"value:")),t(3),r(p(40,47,e.value35)),t(3),r(p(43,49,"Grid with cell size & sub-group (min 35px par item)")),t(2),m("overlay",e.overlay)("styleMode",e.styleMode)("data",e.data35b)("value",e.value35b),t(4),r(p(49,51,"value:")),t(3),r(p(52,53,e.value35b)))},dependencies:[B,C,f,E],encapsulation:2})}}return s})();export{z as ExemplesGridComponent};
diff --git a/dist/ng-select2/browser/chunk-UOKO6XB5.js b/dist/ng-select2/browser/chunk-6LMUDKFC.js
similarity index 96%
rename from dist/ng-select2/browser/chunk-UOKO6XB5.js
rename to dist/ng-select2/browser/chunk-6LMUDKFC.js
index 57cc30b..8ce3f6a 100644
--- a/dist/ng-select2/browser/chunk-UOKO6XB5.js
+++ b/dist/ng-select2/browser/chunk-6LMUDKFC.js
@@ -1 +1 @@
-import{a as x}from"./chunk-JZQVIJ3O.js";import"./chunk-4FOF4764.js";import{n as _,w as E}from"./chunk-IUSK23HG.js";import"./chunk-KWVA3REN.js";import{x as S,y as I}from"./chunk-7IHFBV5J.js";import{Cb as o,Db as r,Ec as y,Ib as h,Sa as l,Sb as a,Tb as s,db as u,ec as p,fc as c,hb as f,ka as m,ub as v}from"./chunk-S5UJW4WF.js";import"./chunk-EQDQRRRY.js";var P=(()=>{class n extends x{constructor(){super(...arguments),this.data26=_,this.value26=""}scroll26(t){if(console.log("scroll26",t),t.way==="down"&&!t.search){let i=this.data26.length;for(let e=1+i;e<=50+i;e++)this.data26.push({value:e,label:">"+e})}}static{this.\u0275fac=(()=>{let t;return function(e){return(t||(t=m(n)))(e||n)}})()}static{this.\u0275cmp=u({type:n,selectors:[["examples-infinite-scroll"]],features:[f],decls:14,vars:13,consts:[[1,"container"],[1,"row"],["infiniteScroll","","infiniteScrollDistance","1.5","infiniteScrollThrottle","150","id","select2-26",1,"col-6",3,"update","scroll","overlay","styleMode","data","value"],[1,"col-12","value"]],template:function(i,e){i&1&&(o(0,"h2"),a(1),p(2,"transloco"),r(),o(3,"div",0)(4,"div",1)(5,"select2",2),h("update",function(d){return e.update("value26",d)})("scroll",function(d){return e.scroll26(d)}),r(),o(6,"div",3)(7,"div")(8,"span"),a(9),p(10,"transloco"),r(),o(11,"code"),a(12),p(13,"json"),r()()()()()),i&2&&(l(),s(c(2,7,"Infinite scroll")),l(4),v("overlay",e.overlay)("styleMode",e.styleMode)("data",e.data26)("value",e.value26),l(4),s(c(10,9,"value:")),l(3),s(c(13,11,e.value26)))},dependencies:[E,y,I,S],encapsulation:2})}}return n})();export{P as ExemplesInfiniteScrollComponent};
+import{a as x}from"./chunk-WJI5FBHD.js";import"./chunk-4FOF4764.js";import{n as _,w as E}from"./chunk-IUSK23HG.js";import"./chunk-KWVA3REN.js";import{x as S,y as I}from"./chunk-7IHFBV5J.js";import{Cb as o,Db as r,Ec as y,Ib as h,Sa as l,Sb as a,Tb as s,db as u,ec as p,fc as c,hb as f,ka as m,ub as v}from"./chunk-S5UJW4WF.js";import"./chunk-EQDQRRRY.js";var P=(()=>{class n extends x{constructor(){super(...arguments),this.data26=_,this.value26=""}scroll26(t){if(console.log("scroll26",t),t.way==="down"&&!t.search){let i=this.data26.length;for(let e=1+i;e<=50+i;e++)this.data26.push({value:e,label:">"+e})}}static{this.\u0275fac=(()=>{let t;return function(e){return(t||(t=m(n)))(e||n)}})()}static{this.\u0275cmp=u({type:n,selectors:[["examples-infinite-scroll"]],features:[f],decls:14,vars:13,consts:[[1,"container"],[1,"row"],["infiniteScroll","","infiniteScrollDistance","1.5","infiniteScrollThrottle","150","id","select2-26",1,"col-6",3,"update","scroll","overlay","styleMode","data","value"],[1,"col-12","value"]],template:function(i,e){i&1&&(o(0,"h2"),a(1),p(2,"transloco"),r(),o(3,"div",0)(4,"div",1)(5,"select2",2),h("update",function(d){return e.update("value26",d)})("scroll",function(d){return e.scroll26(d)}),r(),o(6,"div",3)(7,"div")(8,"span"),a(9),p(10,"transloco"),r(),o(11,"code"),a(12),p(13,"json"),r()()()()()),i&2&&(l(),s(c(2,7,"Infinite scroll")),l(4),v("overlay",e.overlay)("styleMode",e.styleMode)("data",e.data26)("value",e.value26),l(4),s(c(10,9,"value:")),l(3),s(c(13,11,e.value26)))},dependencies:[E,y,I,S],encapsulation:2})}}return n})();export{P as ExemplesInfiniteScrollComponent};
diff --git a/dist/ng-select2/browser/chunk-BRLML4ML.js b/dist/ng-select2/browser/chunk-DOB45RO3.js
similarity index 72%
rename from dist/ng-select2/browser/chunk-BRLML4ML.js
rename to dist/ng-select2/browser/chunk-DOB45RO3.js
index 26379aa..577175c 100644
--- a/dist/ng-select2/browser/chunk-BRLML4ML.js
+++ b/dist/ng-select2/browser/chunk-DOB45RO3.js
@@ -1 +1 @@
-import{a}from"./chunk-FMHQTHM6.js";import"./chunk-TWHHM5EC.js";import"./chunk-PBM5R43U.js";import"./chunk-IUSK23HG.js";import"./chunk-7IHFBV5J.js";import"./chunk-S5UJW4WF.js";import"./chunk-EQDQRRRY.js";export{a as AppGenComponent};
+import{a}from"./chunk-RBPPVKZZ.js";import"./chunk-TWHHM5EC.js";import"./chunk-PBM5R43U.js";import"./chunk-IUSK23HG.js";import"./chunk-7IHFBV5J.js";import"./chunk-S5UJW4WF.js";import"./chunk-EQDQRRRY.js";export{a as AppGenComponent};
diff --git a/dist/ng-select2/browser/chunk-DXCSQGGJ.js b/dist/ng-select2/browser/chunk-DXCSQGGJ.js
deleted file mode 100644
index 70ab1e3..0000000
--- a/dist/ng-select2/browser/chunk-DXCSQGGJ.js
+++ /dev/null
@@ -1 +0,0 @@
-import{d as p}from"./chunk-33O7KYOH.js";import{W as o,eb as n}from"./chunk-S5UJW4WF.js";var i=[{path:"",loadComponent:()=>import("./chunk-GP6E3DHO.js").then(t=>t.AppExamplesComponent),children:[{path:"basic",loadComponent:()=>import("./chunk-6ZLHFEQ7.js").then(t=>t.ExemplesBasicComponent)},{path:"basic",loadComponent:()=>import("./chunk-6ZLHFEQ7.js").then(t=>t.ExemplesBasicComponent)},{path:"multiple",loadComponent:()=>import("./chunk-4UWBWT6E.js").then(t=>t.ExemplesMultipleComponent)},{path:"limits",loadComponent:()=>import("./chunk-34UD4EAA.js").then(t=>t.ExamplesLimitsComponent)},{path:"style",loadComponent:()=>import("./chunk-YJLUGMWE.js").then(t=>t.ExamplesStyleComponent)},{path:"tags",loadComponent:()=>import("./chunk-QOV7JGXO.js").then(t=>t.ExemplesTagsComponent)},{path:"events",loadComponent:()=>import("./chunk-Q7CAUWNS.js").then(t=>t.ExemplesEventsComponent)},{path:"form-control",loadComponent:()=>import("./chunk-LEOFHWHP.js").then(t=>t.ExemplesFormControlComponent)},{path:"resettable",loadComponent:()=>import("./chunk-SSVTG4U4.js").then(t=>t.ExemplesResettableComponent)},{path:"auto-create",loadComponent:()=>import("./chunk-K4YWEWM2.js").then(t=>t.ExemplesAutoCreateComponent)},{path:"wai",loadComponent:()=>import("./chunk-4DT2245S.js").then(t=>t.ExemplesWaiComponent)},{path:"infinite-scroll",loadComponent:()=>import("./chunk-UOKO6XB5.js").then(t=>t.ExemplesInfiniteScrollComponent)},{path:"position",loadComponent:()=>import("./chunk-EQ4CBNNC.js").then(t=>t.ExemplesPositionComponent)},{path:"template",loadComponent:()=>import("./chunk-6SFR6TT5.js").then(t=>t.ExemplesTemplateComponent)},{path:"grid",loadComponent:()=>import("./chunk-HZ3GTPNO.js").then(t=>t.ExemplesGridComponent)},{path:"selection-override",loadComponent:()=>import("./chunk-BXGSGBGL.js").then(t=>t.ExemplesSelectionOverrideComponent)},{path:"selection-nowrap",loadComponent:()=>import("./chunk-3YIRHEQZ.js").then(t=>t.ExemplesSelectionNowrapComponent)},{path:"select-all",loadComponent:()=>import("./chunk-U6TNTJVN.js").then(t=>t.ExemplesSelectAllComponent)},{path:"others",loadComponent:()=>import("./chunk-Z6EV3XQD.js").then(t=>t.ExemplesOthersComponent)},{path:"**",redirectTo:"basic"}]}],l=(()=>{class t{static{this.\u0275fac=function(e){return new(e||t)}}static{this.\u0275mod=n({type:t})}static{this.\u0275inj=o({imports:[p.forChild(i),p]})}}return t})(),s=(()=>{class t{static{this.\u0275fac=function(e){return new(e||t)}}static{this.\u0275mod=n({type:t})}static{this.\u0275inj=o({imports:[l]})}}return t})();export{l as a,s as b};
diff --git a/dist/ng-select2/browser/chunk-ELAWHMJV.js b/dist/ng-select2/browser/chunk-ELAWHMJV.js
new file mode 100644
index 0000000..877659d
--- /dev/null
+++ b/dist/ng-select2/browser/chunk-ELAWHMJV.js
@@ -0,0 +1 @@
+import{d as p}from"./chunk-33O7KYOH.js";import{W as o,eb as n}from"./chunk-S5UJW4WF.js";var i=[{path:"",loadComponent:()=>import("./chunk-MQGWZGK4.js").then(t=>t.AppExamplesComponent),children:[{path:"basic",loadComponent:()=>import("./chunk-WXQ3IEYU.js").then(t=>t.ExemplesBasicComponent)},{path:"basic",loadComponent:()=>import("./chunk-WXQ3IEYU.js").then(t=>t.ExemplesBasicComponent)},{path:"multiple",loadComponent:()=>import("./chunk-ONYMUYHY.js").then(t=>t.ExemplesMultipleComponent)},{path:"limits",loadComponent:()=>import("./chunk-NAFGEXTH.js").then(t=>t.ExamplesLimitsComponent)},{path:"style",loadComponent:()=>import("./chunk-RSV6SVCA.js").then(t=>t.ExamplesStyleComponent)},{path:"tags",loadComponent:()=>import("./chunk-NQCZBFKU.js").then(t=>t.ExemplesTagsComponent)},{path:"events",loadComponent:()=>import("./chunk-RC3XBXH4.js").then(t=>t.ExemplesEventsComponent)},{path:"form-control",loadComponent:()=>import("./chunk-GOCJEUX3.js").then(t=>t.ExemplesFormControlComponent)},{path:"resettable",loadComponent:()=>import("./chunk-TSJ4YU72.js").then(t=>t.ExemplesResettableComponent)},{path:"auto-create",loadComponent:()=>import("./chunk-JRL6NANE.js").then(t=>t.ExemplesAutoCreateComponent)},{path:"wai",loadComponent:()=>import("./chunk-2APTA5VP.js").then(t=>t.ExemplesWaiComponent)},{path:"infinite-scroll",loadComponent:()=>import("./chunk-6LMUDKFC.js").then(t=>t.ExemplesInfiniteScrollComponent)},{path:"position",loadComponent:()=>import("./chunk-JTQKMXDZ.js").then(t=>t.ExemplesPositionComponent)},{path:"template",loadComponent:()=>import("./chunk-TCRQ57XT.js").then(t=>t.ExemplesTemplateComponent)},{path:"grid",loadComponent:()=>import("./chunk-3YFZRU3P.js").then(t=>t.ExemplesGridComponent)},{path:"selection-override",loadComponent:()=>import("./chunk-YQYOKVC7.js").then(t=>t.ExemplesSelectionOverrideComponent)},{path:"selection-nowrap",loadComponent:()=>import("./chunk-HKDAXAFU.js").then(t=>t.ExemplesSelectionNowrapComponent)},{path:"select-all",loadComponent:()=>import("./chunk-SGHNQMD2.js").then(t=>t.ExemplesSelectAllComponent)},{path:"others",loadComponent:()=>import("./chunk-PHMPVTQ2.js").then(t=>t.ExemplesOthersComponent)},{path:"**",redirectTo:"basic"}]}],l=(()=>{class t{static{this.\u0275fac=function(e){return new(e||t)}}static{this.\u0275mod=n({type:t})}static{this.\u0275inj=o({imports:[p.forChild(i),p]})}}return t})(),s=(()=>{class t{static{this.\u0275fac=function(e){return new(e||t)}}static{this.\u0275mod=n({type:t})}static{this.\u0275inj=o({imports:[l]})}}return t})();export{l as a,s as b};
diff --git a/dist/ng-select2/browser/chunk-LEOFHWHP.js b/dist/ng-select2/browser/chunk-GOCJEUX3.js
similarity index 98%
rename from dist/ng-select2/browser/chunk-LEOFHWHP.js
rename to dist/ng-select2/browser/chunk-GOCJEUX3.js
index 3a0caf4..feea4bb 100644
--- a/dist/ng-select2/browser/chunk-LEOFHWHP.js
+++ b/dist/ng-select2/browser/chunk-GOCJEUX3.js
@@ -1 +1 @@
-import{a as U}from"./chunk-JZQVIJ3O.js";import"./chunk-4FOF4764.js";import{a as _,w as V}from"./chunk-IUSK23HG.js";import"./chunk-KWVA3REN.js";import{c as N,e as B,f as I,g as M,i as v,k as b,m as T,n as k,s as w,t as D,u as G,x as J,y as O}from"./chunk-7IHFBV5J.js";import{Cb as i,Db as n,Ec as x,Ib as d,Sa as t,Sb as o,Ta as C,Tb as a,Ub as h,Wb as S,Xb as y,Yb as E,db as g,ec as r,fc as l,hb as F,ub as s}from"./chunk-S5UJW4WF.js";import"./chunk-EQDQRRRY.js";var K=(()=>{class u extends U{constructor(m){super(),this.fb=m,this.data9=JSON.parse(JSON.stringify(_)),this.data11=JSON.parse(JSON.stringify(_)),this.data32=JSON.parse(JSON.stringify(_)),this.value11="",this.fg=new M({state:new v}),this.ctrlForm=this.fb.group({test11:new v(null,N.required)}),this.ctrlForm3=this.fb.group({test33:new v(null)}),this.fg.patchValue(this.formData())}reset(){this.ctrlForm3.reset()}reset11(){let m=this.ctrlForm.get("test11");m&&m.reset()}change11(){let m=this.ctrlForm.get("test11");m&&m.setValue("UT")}resetForm(){this.fg.reset(this.formData())}print(){console.log("FormControl",this.fg.value)}formData(){return{state:["CA","NV"]}}static{this.\u0275fac=function(f){return new(f||u)(C(w))}}static{this.\u0275cmp=g({type:u,selectors:[["examples-form-control"]],features:[F],decls:62,vars:49,consts:[[1,"container"],[1,"row"],["id","ex-11",1,"col-12"],[1,"col-6",3,"formGroup"],["formControlName","test11","placeholder","Select a state","id","select2-11",3,"ngModelChange","overlay","ngModel","data"],[1,"col-12"],[3,"click"],[1,"col-12","value"],["id","ex-33"],["formControlName","test33","multiple","true","id","select2-33",3,"update","data"],["id","ex-14",1,"col-12"],["multiple","true","id","select2-14","formControlName","state",1,"col-6",3,"update","overlay","styleMode","data"]],template:function(f,e){if(f&1&&(i(0,"h2"),o(1),r(2,"transloco"),n(),i(3,"div",0)(4,"div",1)(5,"h3",2),o(6,"ngModel"),n(),i(7,"form",3)(8,"select2",4),E("ngModelChange",function(c){return y(e.value11,c)||(e.value11=c),c}),n()(),i(9,"div",5)(10,"button",6),d("click",function(){return e.reset11()}),o(11),r(12,"transloco"),n(),i(13,"button",6),d("click",function(){return e.change11()}),o(14,"Utah"),n()(),i(15,"div",7)(16,"div")(17,"span"),o(18),r(19,"transloco"),n(),i(20,"code"),o(21),r(22,"json"),n()()(),i(23,"h3",8),o(24),r(25,"transloco"),n(),i(26,"form",3)(27,"select2",9),d("update",function(c){return e.update("value33",c)}),n()(),i(28,"div",5)(29,"button",6),d("click",function(){return e.reset()}),o(30),r(31,"transloco"),n()(),i(32,"div",7)(33,"div")(34,"span"),o(35),r(36,"transloco"),n(),i(37,"code"),o(38),r(39,"json"),n()()(),i(40,"h3",10),o(41),r(42,"transloco"),n(),i(43,"form",3)(44,"select2",11),d("update",function(c){return e.update("value14",c)}),n()(),i(45,"div",5)(46,"button",6),d("click",function(){return e.print()}),o(47),r(48,"transloco"),n(),i(49,"button",6),d("click",function(){return e.resetForm()}),o(50),r(51,"transloco"),i(52,"code"),o(53,"['CA', 'NV']"),n()()(),i(54,"div",7)(55,"div")(56,"span"),o(57),r(58,"transloco"),n(),i(59,"code"),o(60),r(61,"json"),n()()()()()),f&2){let p;t(),a(l(2,23,"Form Control")),t(6),s("formGroup",e.ctrlForm),t(),s("overlay",e.overlay),S("ngModel",e.value11),s("data",e.data11),t(3),a(l(12,25,"Reset")),t(7),a(l(19,27,"value:")),t(3),a(l(22,29,e.value11)),t(3),a(l(25,31,"FormControl & reset form multiple")),t(2),s("formGroup",e.ctrlForm3),t(),s("data",e.data32),t(3),a(l(31,33,"Reset")),t(5),a(l(36,35,"value:")),t(3),a(l(39,37,(p=e.ctrlForm3.get("test33"))==null?null:p.value)),t(3),a(l(42,39,"FormControl & reset a specific value")),t(2),s("formGroup",e.fg),t(),s("overlay",e.overlay)("styleMode",e.styleMode)("data",e.data9),t(3),a(l(48,41,"Selection log (See F12)")),t(3),h("",l(51,43,"Reset form to value:")," "),t(7),a(l(58,45,"value:")),t(3),a(l(61,47,e.fg.get("state").value))}},dependencies:[D,b,B,I,G,T,k,V,x,O,J],encapsulation:2})}}return u})();export{K as ExemplesFormControlComponent};
+import{a as U}from"./chunk-WJI5FBHD.js";import"./chunk-4FOF4764.js";import{a as _,w as V}from"./chunk-IUSK23HG.js";import"./chunk-KWVA3REN.js";import{c as N,e as B,f as I,g as M,i as v,k as b,m as T,n as k,s as w,t as D,u as G,x as J,y as O}from"./chunk-7IHFBV5J.js";import{Cb as i,Db as n,Ec as x,Ib as d,Sa as t,Sb as o,Ta as C,Tb as a,Ub as h,Wb as S,Xb as y,Yb as E,db as g,ec as r,fc as l,hb as F,ub as s}from"./chunk-S5UJW4WF.js";import"./chunk-EQDQRRRY.js";var K=(()=>{class u extends U{constructor(m){super(),this.fb=m,this.data9=JSON.parse(JSON.stringify(_)),this.data11=JSON.parse(JSON.stringify(_)),this.data32=JSON.parse(JSON.stringify(_)),this.value11="",this.fg=new M({state:new v}),this.ctrlForm=this.fb.group({test11:new v(null,N.required)}),this.ctrlForm3=this.fb.group({test33:new v(null)}),this.fg.patchValue(this.formData())}reset(){this.ctrlForm3.reset()}reset11(){let m=this.ctrlForm.get("test11");m&&m.reset()}change11(){let m=this.ctrlForm.get("test11");m&&m.setValue("UT")}resetForm(){this.fg.reset(this.formData())}print(){console.log("FormControl",this.fg.value)}formData(){return{state:["CA","NV"]}}static{this.\u0275fac=function(f){return new(f||u)(C(w))}}static{this.\u0275cmp=g({type:u,selectors:[["examples-form-control"]],features:[F],decls:62,vars:49,consts:[[1,"container"],[1,"row"],["id","ex-11",1,"col-12"],[1,"col-6",3,"formGroup"],["formControlName","test11","placeholder","Select a state","id","select2-11",3,"ngModelChange","overlay","ngModel","data"],[1,"col-12"],[3,"click"],[1,"col-12","value"],["id","ex-33"],["formControlName","test33","multiple","true","id","select2-33",3,"update","data"],["id","ex-14",1,"col-12"],["multiple","true","id","select2-14","formControlName","state",1,"col-6",3,"update","overlay","styleMode","data"]],template:function(f,e){if(f&1&&(i(0,"h2"),o(1),r(2,"transloco"),n(),i(3,"div",0)(4,"div",1)(5,"h3",2),o(6,"ngModel"),n(),i(7,"form",3)(8,"select2",4),E("ngModelChange",function(c){return y(e.value11,c)||(e.value11=c),c}),n()(),i(9,"div",5)(10,"button",6),d("click",function(){return e.reset11()}),o(11),r(12,"transloco"),n(),i(13,"button",6),d("click",function(){return e.change11()}),o(14,"Utah"),n()(),i(15,"div",7)(16,"div")(17,"span"),o(18),r(19,"transloco"),n(),i(20,"code"),o(21),r(22,"json"),n()()(),i(23,"h3",8),o(24),r(25,"transloco"),n(),i(26,"form",3)(27,"select2",9),d("update",function(c){return e.update("value33",c)}),n()(),i(28,"div",5)(29,"button",6),d("click",function(){return e.reset()}),o(30),r(31,"transloco"),n()(),i(32,"div",7)(33,"div")(34,"span"),o(35),r(36,"transloco"),n(),i(37,"code"),o(38),r(39,"json"),n()()(),i(40,"h3",10),o(41),r(42,"transloco"),n(),i(43,"form",3)(44,"select2",11),d("update",function(c){return e.update("value14",c)}),n()(),i(45,"div",5)(46,"button",6),d("click",function(){return e.print()}),o(47),r(48,"transloco"),n(),i(49,"button",6),d("click",function(){return e.resetForm()}),o(50),r(51,"transloco"),i(52,"code"),o(53,"['CA', 'NV']"),n()()(),i(54,"div",7)(55,"div")(56,"span"),o(57),r(58,"transloco"),n(),i(59,"code"),o(60),r(61,"json"),n()()()()()),f&2){let p;t(),a(l(2,23,"Form Control")),t(6),s("formGroup",e.ctrlForm),t(),s("overlay",e.overlay),S("ngModel",e.value11),s("data",e.data11),t(3),a(l(12,25,"Reset")),t(7),a(l(19,27,"value:")),t(3),a(l(22,29,e.value11)),t(3),a(l(25,31,"FormControl & reset form multiple")),t(2),s("formGroup",e.ctrlForm3),t(),s("data",e.data32),t(3),a(l(31,33,"Reset")),t(5),a(l(36,35,"value:")),t(3),a(l(39,37,(p=e.ctrlForm3.get("test33"))==null?null:p.value)),t(3),a(l(42,39,"FormControl & reset a specific value")),t(2),s("formGroup",e.fg),t(),s("overlay",e.overlay)("styleMode",e.styleMode)("data",e.data9),t(3),a(l(48,41,"Selection log (See F12)")),t(3),h("",l(51,43,"Reset form to value:")," "),t(7),a(l(58,45,"value:")),t(3),a(l(61,47,e.fg.get("state").value))}},dependencies:[D,b,B,I,G,T,k,V,x,O,J],encapsulation:2})}}return u})();export{K as ExemplesFormControlComponent};
diff --git a/dist/ng-select2/browser/chunk-3YIRHEQZ.js b/dist/ng-select2/browser/chunk-HKDAXAFU.js
similarity index 97%
rename from dist/ng-select2/browser/chunk-3YIRHEQZ.js
rename to dist/ng-select2/browser/chunk-HKDAXAFU.js
index 836d7d2..ef4574c 100644
--- a/dist/ng-select2/browser/chunk-3YIRHEQZ.js
+++ b/dist/ng-select2/browser/chunk-HKDAXAFU.js
@@ -1 +1 @@
-import{a as T}from"./chunk-JZQVIJ3O.js";import"./chunk-4FOF4764.js";import{a as h,w as B}from"./chunk-IUSK23HG.js";import"./chunk-KWVA3REN.js";import{a as _,e as M,j as C,t as w,x as I,y as x}from"./chunk-7IHFBV5J.js";import{Cb as n,Db as t,Ec as E,Ib as v,Sa as i,Sb as l,Tb as a,Wb as f,Xb as N,Yb as y,db as W,ec as r,fc as p,hb as g,ka as S,ub as u}from"./chunk-S5UJW4WF.js";import"./chunk-EQDQRRRY.js";var J=(()=>{class d extends T{constructor(){super(...arguments),this.value36mf=["NY","NC","RI","WV","VT","VA","AR","IA"],this.value10=["NY","NC","RI","WV","VT","VA","AR","IA"],this.data36mf=h,this.data10=JSON.parse(JSON.stringify(h)),this.selectionNoWrap=!0,this.selectionNoWrap2=!0,this.selectionOverride=s=>`Selection (${s.size}${(s.options?.length||0)>0?": "+s.options.map(m=>m.label).join(", "):""}) `}static{this.\u0275fac=(()=>{let s;return function(e){return(s||(s=S(d)))(e||d)}})()}static{this.\u0275cmp=W({type:d,selectors:[["examples-selection-nowrap"]],features:[g],decls:33,vars:34,consts:[[1,"container"],[1,"row"],["id","ex-10",1,"col-12"],[1,"col-12"],["id","no-wrap","type","checkbox",3,"ngModelChange","ngModel"],["multiple","true","hideSelectedItems","true","id","select2-10",1,"col-6",3,"update","overlay","styleMode","data","value","selectionNoWrap"],[1,"col-12","value"],["id","ex-36mf",1,"col-12"],["id","select2-36-mf","multiple","",1,"col-6",3,"update","selectionOverride","selectionNoWrap","overlay","styleMode","data","value"]],template:function(m,e){m&1&&(n(0,"h2"),l(1),r(2,"transloco"),t(),n(3,"div",0)(4,"div",1)(5,"h3",2),l(6),r(7,"transloco"),t(),n(8,"label",3)(9,"input",4),y("ngModelChange",function(o){return N(e.selectionNoWrap2,o)||(e.selectionNoWrap2=o),o}),t(),l(10," selectionNoWrap"),t(),n(11,"select2",5),v("update",function(o){return e.update("value10",o)}),t(),n(12,"div",6)(13,"span"),l(14),r(15,"transloco"),t(),n(16,"code"),l(17),r(18,"json"),t()(),n(19,"h3",7),l(20),r(21,"transloco"),t(),n(22,"label",3)(23,"input",4),y("ngModelChange",function(o){return N(e.selectionNoWrap,o)||(e.selectionNoWrap=o),o}),t(),l(24," selectionNoWrap"),t(),n(25,"select2",8),v("update",function(o){return e.update("value36mf",o)}),t(),n(26,"div",6)(27,"span"),l(28),r(29,"transloco"),t(),n(30,"code"),l(31),r(32,"json"),t()()()()),m&2&&(i(),a(p(2,20,"Selection no wrap")),i(5),a(p(7,22,"With hide selected items")),i(3),f("ngModel",e.selectionNoWrap2),i(2),u("overlay",e.overlay)("styleMode",e.styleMode)("data",e.data10)("value",e.value10)("selectionNoWrap",e.selectionNoWrap2),i(3),a(p(15,24,"value:")),i(3),a(p(18,26,e.value10)),i(3),a(p(21,28,"In multiple mode with function override")),i(3),f("ngModel",e.selectionNoWrap),i(2),u("selectionOverride",e.selectionOverride)("selectionNoWrap",e.selectionNoWrap)("overlay",e.overlay)("styleMode",e.styleMode)("data",e.data36mf)("value",e.value36mf),i(3),a(p(29,30,"value:")),i(3),a(p(32,32,e.value36mf)))},dependencies:[w,_,M,C,B,E,x,I],encapsulation:2})}}return d})();export{J as ExemplesSelectionNowrapComponent};
+import{a as T}from"./chunk-WJI5FBHD.js";import"./chunk-4FOF4764.js";import{a as h,w as B}from"./chunk-IUSK23HG.js";import"./chunk-KWVA3REN.js";import{a as _,e as M,j as C,t as w,x as I,y as x}from"./chunk-7IHFBV5J.js";import{Cb as n,Db as t,Ec as E,Ib as v,Sa as i,Sb as l,Tb as a,Wb as f,Xb as N,Yb as y,db as W,ec as r,fc as p,hb as g,ka as S,ub as u}from"./chunk-S5UJW4WF.js";import"./chunk-EQDQRRRY.js";var J=(()=>{class d extends T{constructor(){super(...arguments),this.value36mf=["NY","NC","RI","WV","VT","VA","AR","IA"],this.value10=["NY","NC","RI","WV","VT","VA","AR","IA"],this.data36mf=h,this.data10=JSON.parse(JSON.stringify(h)),this.selectionNoWrap=!0,this.selectionNoWrap2=!0,this.selectionOverride=s=>`Selection (${s.size}${(s.options?.length||0)>0?": "+s.options.map(m=>m.label).join(", "):""}) `}static{this.\u0275fac=(()=>{let s;return function(e){return(s||(s=S(d)))(e||d)}})()}static{this.\u0275cmp=W({type:d,selectors:[["examples-selection-nowrap"]],features:[g],decls:33,vars:34,consts:[[1,"container"],[1,"row"],["id","ex-10",1,"col-12"],[1,"col-12"],["id","no-wrap","type","checkbox",3,"ngModelChange","ngModel"],["multiple","true","hideSelectedItems","true","id","select2-10",1,"col-6",3,"update","overlay","styleMode","data","value","selectionNoWrap"],[1,"col-12","value"],["id","ex-36mf",1,"col-12"],["id","select2-36-mf","multiple","",1,"col-6",3,"update","selectionOverride","selectionNoWrap","overlay","styleMode","data","value"]],template:function(m,e){m&1&&(n(0,"h2"),l(1),r(2,"transloco"),t(),n(3,"div",0)(4,"div",1)(5,"h3",2),l(6),r(7,"transloco"),t(),n(8,"label",3)(9,"input",4),y("ngModelChange",function(o){return N(e.selectionNoWrap2,o)||(e.selectionNoWrap2=o),o}),t(),l(10," selectionNoWrap"),t(),n(11,"select2",5),v("update",function(o){return e.update("value10",o)}),t(),n(12,"div",6)(13,"span"),l(14),r(15,"transloco"),t(),n(16,"code"),l(17),r(18,"json"),t()(),n(19,"h3",7),l(20),r(21,"transloco"),t(),n(22,"label",3)(23,"input",4),y("ngModelChange",function(o){return N(e.selectionNoWrap,o)||(e.selectionNoWrap=o),o}),t(),l(24," selectionNoWrap"),t(),n(25,"select2",8),v("update",function(o){return e.update("value36mf",o)}),t(),n(26,"div",6)(27,"span"),l(28),r(29,"transloco"),t(),n(30,"code"),l(31),r(32,"json"),t()()()()),m&2&&(i(),a(p(2,20,"Selection no wrap")),i(5),a(p(7,22,"With hide selected items")),i(3),f("ngModel",e.selectionNoWrap2),i(2),u("overlay",e.overlay)("styleMode",e.styleMode)("data",e.data10)("value",e.value10)("selectionNoWrap",e.selectionNoWrap2),i(3),a(p(15,24,"value:")),i(3),a(p(18,26,e.value10)),i(3),a(p(21,28,"In multiple mode with function override")),i(3),f("ngModel",e.selectionNoWrap),i(2),u("selectionOverride",e.selectionOverride)("selectionNoWrap",e.selectionNoWrap)("overlay",e.overlay)("styleMode",e.styleMode)("data",e.data36mf)("value",e.value36mf),i(3),a(p(29,30,"value:")),i(3),a(p(32,32,e.value36mf)))},dependencies:[w,_,M,C,B,E,x,I],encapsulation:2})}}return d})();export{J as ExemplesSelectionNowrapComponent};
diff --git a/dist/ng-select2/browser/chunk-K4YWEWM2.js b/dist/ng-select2/browser/chunk-JRL6NANE.js
similarity index 97%
rename from dist/ng-select2/browser/chunk-K4YWEWM2.js
rename to dist/ng-select2/browser/chunk-JRL6NANE.js
index 8408934..a3cadbb 100644
--- a/dist/ng-select2/browser/chunk-K4YWEWM2.js
+++ b/dist/ng-select2/browser/chunk-JRL6NANE.js
@@ -1 +1 @@
-import{a as M}from"./chunk-JZQVIJ3O.js";import"./chunk-4FOF4764.js";import{a as x,c as y,w as I}from"./chunk-IUSK23HG.js";import"./chunk-KWVA3REN.js";import{x as _,y as h}from"./chunk-7IHFBV5J.js";import{Cb as i,Db as a,Ec as E,Ib as u,Sa as t,Sb as n,Tb as l,db as C,ec as o,fc as r,hb as S,ka as f,ub as s}from"./chunk-S5UJW4WF.js";import"./chunk-EQDQRRRY.js";var N=(()=>{class d extends M{constructor(){super(...arguments),this.data29=JSON.parse(JSON.stringify(y)),this.data29b=JSON.parse(JSON.stringify(x)),this.data32=JSON.parse(JSON.stringify(y)),this.value29=[],this.value29b=[],this.value32=""}static{this.\u0275fac=(()=>{let m;return function(e){return(m||(m=f(d)))(e||d)}})()}static{this.\u0275cmp=C({type:d,selectors:[["examples-auto-create"]],features:[S],decls:41,vars:42,consts:[[1,"container"],[1,"row"],["id","ex-32",1,"col-12"],["resettable","","autoCreate","","resetSelectedValue","CA","id","select2-32",1,"col-6",3,"autoCreateItem","update","overlay","styleMode","data","value"],[1,"col-12","value"],["id","ex-29",1,"col-12"],["multiple","","autoCreate","","id","select2-29",1,"col-6",3,"update","overlay","styleMode","data","value"],["id","ex-29b",1,"col-12"],["multiple","","autoCreate","","id","select2-29b",1,"col-6",3,"update","overlay","styleMode","data","value"]],template:function(v,e){v&1&&(i(0,"h2"),n(1),o(2,"transloco"),a(),i(3,"div",0)(4,"div",1)(5,"h3",2),n(6),o(7,"transloco"),a(),i(8,"select2",3),u("autoCreateItem",function(p){return e.autoCreateItem("value32",p)})("update",function(p){return e.update("value32",p)}),a(),i(9,"div",4)(10,"div")(11,"span"),n(12),o(13,"transloco"),a(),i(14,"code"),n(15),o(16,"json"),a()()(),i(17,"h3",5),n(18),o(19,"transloco"),a(),i(20,"select2",6),u("update",function(p){return e.update("value29",p)}),a(),i(21,"div",4)(22,"div")(23,"span"),n(24),o(25,"transloco"),a(),i(26,"code"),n(27),o(28,"json"),a()()(),i(29,"h3",7),n(30),o(31,"transloco"),a(),i(32,"select2",8),u("update",function(p){return e.update("value29b",p)}),a(),i(33,"div",4)(34,"div")(35,"span"),n(36),o(37,"transloco"),a(),i(38,"code"),n(39),o(40,"json"),a()()()()()),v&2&&(t(),l(r(2,22,"Auto create")),t(5),l(r(7,24,"Single for create new item with search box & resettable")),t(2),s("overlay",e.overlay)("styleMode",e.styleMode)("data",e.data32)("value",e.value32),t(4),l(r(13,26,"value:")),t(3),l(r(16,28,e.value32)),t(3),l(r(19,30,"Multiple with input for create new item in selection zone")),t(2),s("overlay",e.overlay)("styleMode",e.styleMode)("data",e.data29)("value",e.value29),t(4),l(r(25,32,"value:")),t(3),l(r(28,34,e.value29)),t(3),l(r(31,36,"Multiple for create new item with search box")),t(2),s("overlay",e.overlay)("styleMode",e.styleMode)("data",e.data29b)("value",e.value29b),t(4),l(r(37,38,"value:")),t(3),l(r(40,40,e.value29b)))},dependencies:[I,E,h,_],encapsulation:2})}}return d})();export{N as ExemplesAutoCreateComponent};
+import{a as M}from"./chunk-WJI5FBHD.js";import"./chunk-4FOF4764.js";import{a as x,c as y,w as I}from"./chunk-IUSK23HG.js";import"./chunk-KWVA3REN.js";import{x as _,y as h}from"./chunk-7IHFBV5J.js";import{Cb as i,Db as a,Ec as E,Ib as u,Sa as t,Sb as n,Tb as l,db as C,ec as o,fc as r,hb as S,ka as f,ub as s}from"./chunk-S5UJW4WF.js";import"./chunk-EQDQRRRY.js";var N=(()=>{class d extends M{constructor(){super(...arguments),this.data29=JSON.parse(JSON.stringify(y)),this.data29b=JSON.parse(JSON.stringify(x)),this.data32=JSON.parse(JSON.stringify(y)),this.value29=[],this.value29b=[],this.value32=""}static{this.\u0275fac=(()=>{let m;return function(e){return(m||(m=f(d)))(e||d)}})()}static{this.\u0275cmp=C({type:d,selectors:[["examples-auto-create"]],features:[S],decls:41,vars:42,consts:[[1,"container"],[1,"row"],["id","ex-32",1,"col-12"],["resettable","","autoCreate","","resetSelectedValue","CA","id","select2-32",1,"col-6",3,"autoCreateItem","update","overlay","styleMode","data","value"],[1,"col-12","value"],["id","ex-29",1,"col-12"],["multiple","","autoCreate","","id","select2-29",1,"col-6",3,"update","overlay","styleMode","data","value"],["id","ex-29b",1,"col-12"],["multiple","","autoCreate","","id","select2-29b",1,"col-6",3,"update","overlay","styleMode","data","value"]],template:function(v,e){v&1&&(i(0,"h2"),n(1),o(2,"transloco"),a(),i(3,"div",0)(4,"div",1)(5,"h3",2),n(6),o(7,"transloco"),a(),i(8,"select2",3),u("autoCreateItem",function(p){return e.autoCreateItem("value32",p)})("update",function(p){return e.update("value32",p)}),a(),i(9,"div",4)(10,"div")(11,"span"),n(12),o(13,"transloco"),a(),i(14,"code"),n(15),o(16,"json"),a()()(),i(17,"h3",5),n(18),o(19,"transloco"),a(),i(20,"select2",6),u("update",function(p){return e.update("value29",p)}),a(),i(21,"div",4)(22,"div")(23,"span"),n(24),o(25,"transloco"),a(),i(26,"code"),n(27),o(28,"json"),a()()(),i(29,"h3",7),n(30),o(31,"transloco"),a(),i(32,"select2",8),u("update",function(p){return e.update("value29b",p)}),a(),i(33,"div",4)(34,"div")(35,"span"),n(36),o(37,"transloco"),a(),i(38,"code"),n(39),o(40,"json"),a()()()()()),v&2&&(t(),l(r(2,22,"Auto create")),t(5),l(r(7,24,"Single for create new item with search box & resettable")),t(2),s("overlay",e.overlay)("styleMode",e.styleMode)("data",e.data32)("value",e.value32),t(4),l(r(13,26,"value:")),t(3),l(r(16,28,e.value32)),t(3),l(r(19,30,"Multiple with input for create new item in selection zone")),t(2),s("overlay",e.overlay)("styleMode",e.styleMode)("data",e.data29)("value",e.value29),t(4),l(r(25,32,"value:")),t(3),l(r(28,34,e.value29)),t(3),l(r(31,36,"Multiple for create new item with search box")),t(2),s("overlay",e.overlay)("styleMode",e.styleMode)("data",e.data29b)("value",e.value29b),t(4),l(r(37,38,"value:")),t(3),l(r(40,40,e.value29b)))},dependencies:[I,E,h,_],encapsulation:2})}}return d})();export{N as ExemplesAutoCreateComponent};
diff --git a/dist/ng-select2/browser/chunk-EQ4CBNNC.js b/dist/ng-select2/browser/chunk-JTQKMXDZ.js
similarity index 96%
rename from dist/ng-select2/browser/chunk-EQ4CBNNC.js
rename to dist/ng-select2/browser/chunk-JTQKMXDZ.js
index 759dcc8..0295426 100644
--- a/dist/ng-select2/browser/chunk-EQ4CBNNC.js
+++ b/dist/ng-select2/browser/chunk-JTQKMXDZ.js
@@ -1 +1 @@
-import{a as x}from"./chunk-JZQVIJ3O.js";import"./chunk-4FOF4764.js";import{b as _,h as M,w as P}from"./chunk-IUSK23HG.js";import"./chunk-KWVA3REN.js";import{x as h,y as E}from"./chunk-7IHFBV5J.js";import{Cb as i,Db as o,Ib as c,Sa as t,Sb as n,Tb as l,db as y,ec as r,fc as s,hb as f,ka as v,ub as u}from"./chunk-S5UJW4WF.js";import"./chunk-EQDQRRRY.js";var F=(()=>{class a extends x{constructor(){super(...arguments),this.data2=_,this.data19=M,this.value19="",this.value2=""}static{this.\u0275fac=(()=>{let p;return function(e){return(p||(p=v(a)))(e||a)}})()}static{this.\u0275cmp=y({type:a,selectors:[["examples-position"]],features:[f],decls:13,vars:17,consts:[[1,"container"],[1,"row"],["id","ex-19",1,"col-12"],["listPosition","above","id","select2-19",1,"col-6",3,"update","overlay","styleMode","data","value"],["id","ex-27",1,"col-12"],["listPosition","auto","id","select2-27",1,"col-6",3,"update","overlay","styleMode","data","value"]],template:function(d,e){d&1&&(i(0,"h2"),n(1),r(2,"transloco"),o(),i(3,"div",0)(4,"div",1)(5,"h3",2),n(6),r(7,"transloco"),o(),i(8,"select2",3),c("update",function(m){return e.update("value19",m)}),o(),i(9,"h3",4),n(10),r(11,"transloco"),o(),i(12,"select2",5),c("update",function(m){return e.update("value2",m)}),o()()()),d&2&&(t(),l(s(2,11,"Position")),t(5),l(s(7,13,"Dropdown list position: above")),t(2),u("overlay",e.overlay)("styleMode",e.styleMode)("data",e.data19)("value",e.value19),t(2),l(s(11,15,"Position auto (overlay only)")),t(2),u("overlay",e.overlay)("styleMode",e.styleMode)("data",e.data2)("value",e.value2))},dependencies:[P,E,h],encapsulation:2})}}return a})();export{F as ExemplesPositionComponent};
+import{a as x}from"./chunk-WJI5FBHD.js";import"./chunk-4FOF4764.js";import{b as _,h as M,w as P}from"./chunk-IUSK23HG.js";import"./chunk-KWVA3REN.js";import{x as h,y as E}from"./chunk-7IHFBV5J.js";import{Cb as i,Db as o,Ib as c,Sa as t,Sb as n,Tb as l,db as y,ec as r,fc as s,hb as f,ka as v,ub as u}from"./chunk-S5UJW4WF.js";import"./chunk-EQDQRRRY.js";var F=(()=>{class a extends x{constructor(){super(...arguments),this.data2=_,this.data19=M,this.value19="",this.value2=""}static{this.\u0275fac=(()=>{let p;return function(e){return(p||(p=v(a)))(e||a)}})()}static{this.\u0275cmp=y({type:a,selectors:[["examples-position"]],features:[f],decls:13,vars:17,consts:[[1,"container"],[1,"row"],["id","ex-19",1,"col-12"],["listPosition","above","id","select2-19",1,"col-6",3,"update","overlay","styleMode","data","value"],["id","ex-27",1,"col-12"],["listPosition","auto","id","select2-27",1,"col-6",3,"update","overlay","styleMode","data","value"]],template:function(d,e){d&1&&(i(0,"h2"),n(1),r(2,"transloco"),o(),i(3,"div",0)(4,"div",1)(5,"h3",2),n(6),r(7,"transloco"),o(),i(8,"select2",3),c("update",function(m){return e.update("value19",m)}),o(),i(9,"h3",4),n(10),r(11,"transloco"),o(),i(12,"select2",5),c("update",function(m){return e.update("value2",m)}),o()()()),d&2&&(t(),l(s(2,11,"Position")),t(5),l(s(7,13,"Dropdown list position: above")),t(2),u("overlay",e.overlay)("styleMode",e.styleMode)("data",e.data19)("value",e.value19),t(2),l(s(11,15,"Position auto (overlay only)")),t(2),u("overlay",e.overlay)("styleMode",e.styleMode)("data",e.data2)("value",e.value2))},dependencies:[P,E,h],encapsulation:2})}}return a})();export{F as ExemplesPositionComponent};
diff --git a/dist/ng-select2/browser/chunk-JZQVIJ3O.js b/dist/ng-select2/browser/chunk-JZQVIJ3O.js
deleted file mode 100644
index 934f002..0000000
--- a/dist/ng-select2/browser/chunk-JZQVIJ3O.js
+++ /dev/null
@@ -1 +0,0 @@
-import{a as i}from"./chunk-KWVA3REN.js";import{$ as t,fb as l}from"./chunk-S5UJW4WF.js";var p=(()=>{class s{constructor(){this.examplesService=t(i),this.overlay=!1,this.styleMode="default",this.overlay=this.examplesService.overlay??!1,this.styleMode=this.examplesService.styleMode,this.examplesService.updateOverlay.subscribe(e=>this.overlay=e),this.examplesService.updateStyleMode.subscribe(e=>this.styleMode=e)}open(e,o){console.log(e,o)}close(e,o){console.log(e,o)}focus(e,o){console.log(e,o)}blur(e,o){console.log(e,o)}change(e,o){console.log(e,o)}search(e,o){console.log(e,o)}update(e,o){console.log("update",e,o.component.id(),o.value),this[e]=o.value}autoCreateItem(e,o){console.log("autoCreateItem",e,o.component.id(),o.value)}static{this.\u0275fac=function(o){return new(o||s)}}static{this.\u0275dir=l({type:s})}}return s})();export{p as a};
diff --git a/dist/ng-select2/browser/chunk-GP6E3DHO.js b/dist/ng-select2/browser/chunk-MQGWZGK4.js
similarity index 98%
rename from dist/ng-select2/browser/chunk-GP6E3DHO.js
rename to dist/ng-select2/browser/chunk-MQGWZGK4.js
index d93c2a9..490cfbe 100644
--- a/dist/ng-select2/browser/chunk-GP6E3DHO.js
+++ b/dist/ng-select2/browser/chunk-MQGWZGK4.js
@@ -1 +1 @@
-import{a as W}from"./chunk-DXCSQGGJ.js";import{a as b,b as P,c as w,d as T}from"./chunk-33O7KYOH.js";import"./chunk-PBM5R43U.js";import{a as R}from"./chunk-KWVA3REN.js";import{a as C,e as E,j as y,o as _,p as A,q as f,t as h,u as B,x as O,y as I}from"./chunk-7IHFBV5J.js";import{$ as M,Cb as e,Db as t,Eb as L,Ib as v,Sa as n,Sb as i,Tb as r,Ub as u,Wb as g,Xb as x,Yb as S,db as k,ec as o,fc as a}from"./chunk-S5UJW4WF.js";import"./chunk-EQDQRRRY.js";var U=(()=>{class d{constructor(){this.examplesService=M(R),this.overlay=!1,this.styleMode="default"}changeOverlay(c){this.examplesService.changeOverlay(c)}changeStyleMode(c){this.examplesService.changeStyleMode(c)}static{this.\u0275fac=function(m){return new(m||d)}}static{this.\u0275cmp=k({type:d,selectors:[["app-root"]],decls:102,vars:65,consts:[[1,"container"],[1,"row"],[1,"col-3"],["routerLink","./basic","routerLinkActive","active"],["routerLink","./multiple","routerLinkActive","active"],["routerLink","./tags","routerLinkActive","active"],["routerLink","./events","routerLinkActive","active"],["routerLink","./limits","routerLinkActive","active"],["routerLink","./form-control","routerLinkActive","active"],["routerLink","./resettable","routerLinkActive","active"],["routerLink","./auto-create","routerLinkActive","active"],["routerLink","./infinite-scroll","routerLinkActive","active"],["routerLink","./position","routerLinkActive","active"],["routerLink","./template","routerLinkActive","active"],["routerLink","./grid","routerLinkActive","active"],["routerLink","./selection-override","routerLinkActive","active"],["routerLink","./selection-nowrap","routerLinkActive","active"],["routerLink","./select-all","routerLinkActive","active"],["routerLink","./style","routerLinkActive","active"],["routerLink","./wai","routerLinkActive","active"],["routerLink","./others","routerLinkActive","active"],[1,"col-9","container"],[1,"row","options"],["for","disabled"],["id","disabled","type","checkbox",3,"ngModelChange","ngModel"],[1,"col-4"],["id","disabled",3,"ngModelChange","ngModel"],["selected",""],[1,"main"]],template:function(m,p){m&1&&(e(0,"div",0)(1,"div",1)(2,"nav",2)(3,"div")(4,"h2"),i(5),o(6,"transloco"),t(),e(7,"ul")(8,"li")(9,"a",3),i(10),o(11,"transloco"),t()(),e(12,"li")(13,"a",4),i(14),o(15,"transloco"),t()(),e(16,"li")(17,"a",5),i(18),o(19,"transloco"),t()(),e(20,"li")(21,"a",6),i(22),o(23,"transloco"),t()(),e(24,"li")(25,"a",7),i(26),o(27,"transloco"),t()(),e(28,"li")(29,"a",8),i(30),o(31,"transloco"),t()(),e(32,"li")(33,"a",9),i(34),o(35,"transloco"),t()(),e(36,"li")(37,"a",10),i(38),o(39,"transloco"),t()(),e(40,"li")(41,"a",11),i(42),o(43,"transloco"),t()(),e(44,"li")(45,"a",12),i(46),o(47,"transloco"),t()(),e(48,"li")(49,"a",13),i(50),o(51,"transloco"),t()(),e(52,"li")(53,"a",14),i(54),o(55,"transloco"),t()(),e(56,"li")(57,"a",15),i(58),o(59,"transloco"),t()(),e(60,"li")(61,"a",16),i(62),o(63,"transloco"),t()(),e(64,"li")(65,"a",17),i(66),o(67,"transloco"),t()(),e(68,"li")(69,"a",18),i(70),o(71,"transloco"),t()(),e(72,"li")(73,"a",19),i(74),o(75,"transloco"),t()(),e(76,"li")(77,"a",20),i(78),o(79,"transloco"),t()()()()(),e(80,"div",21)(81,"div",22)(82,"div",2)(83,"label",23),i(84),o(85,"transloco"),t(),e(86,"input",24),S("ngModelChange",function(l){return x(p.overlay,l)||(p.overlay=l),l}),v("ngModelChange",function(l){return p.changeOverlay(l)}),t()(),e(87,"div",25)(88,"label",23),i(89),o(90,"transloco"),t(),e(91,"select",26),S("ngModelChange",function(l){return x(p.styleMode,l)||(p.styleMode=l),l}),v("ngModelChange",function(l){return p.changeStyleMode(l)}),e(92,"option",27),i(93,"default"),t(),e(94,"option"),i(95,"material"),t(),e(96,"option"),i(97,"noStyle"),t(),e(98,"option"),i(99,"borderless"),t()()()(),e(100,"div",28),L(101,"router-outlet"),t()()()()),m&2&&(n(5),r(a(6,23,"Examples")),n(5),r(a(11,25,"Basic")),n(4),r(a(15,27,"Multiple")),n(4),r(a(19,29,"Tags")),n(4),r(a(23,31,"Events")),n(4),r(a(27,33,"Limits")),n(4),r(a(31,35,"Form Control")),n(4),r(a(35,37,"Resettable")),n(4),r(a(39,39,"Auto create")),n(4),r(a(43,41,"Infinite scroll")),n(4),r(a(47,43,"Position")),n(4),r(a(51,45,"Template")),n(4),r(a(55,47,"Grid")),n(4),r(a(59,49,"Selection override")),n(4),r(a(63,51,"Selection no wrap")),n(4),r(a(67,53,"Select All")),n(4),r(a(71,55,"Style")),n(4),r(a(75,57,"Accessibility")),n(4),r(a(79,59,"Others")),n(6),u("",a(85,61,"Angular CDK Overlay:")," "),n(2),g("ngModel",p.overlay),n(3),u("",a(90,63,"Style mode:")," "),n(2),g("ngModel",p.styleMode))},dependencies:[h,A,f,C,_,E,y,B,I,O,W,b,P,w,T],styles:["nav[_ngcontent-%COMP%]{position:sticky;top:62px;align-self:flex-start;background-color:transparent}nav[_ngcontent-%COMP%] li[_ngcontent-%COMP%]{margin:2px 0}nav[_ngcontent-%COMP%] li[_ngcontent-%COMP%] [_ngcontent-%COMP%]:hover, nav[_ngcontent-%COMP%] li[_ngcontent-%COMP%] .active[_ngcontent-%COMP%]{background-color:#eee}nav[_ngcontent-%COMP%] li[_ngcontent-%COMP%] a[_ngcontent-%COMP%]{display:block}.options[_ngcontent-%COMP%]{margin-top:10px;border-bottom:1px solid #888;padding-bottom:10px}.main[_ngcontent-%COMP%]{padding-bottom:300px}"]})}}return d})();export{U as AppExamplesComponent};
+import{a as W}from"./chunk-ELAWHMJV.js";import{a as b,b as P,c as w,d as T}from"./chunk-33O7KYOH.js";import"./chunk-PBM5R43U.js";import{a as R}from"./chunk-KWVA3REN.js";import{a as C,e as E,j as y,o as _,p as A,q as f,t as h,u as B,x as O,y as I}from"./chunk-7IHFBV5J.js";import{$ as M,Cb as e,Db as t,Eb as L,Ib as v,Sa as n,Sb as i,Tb as r,Ub as u,Wb as g,Xb as x,Yb as S,db as k,ec as o,fc as a}from"./chunk-S5UJW4WF.js";import"./chunk-EQDQRRRY.js";var U=(()=>{class d{constructor(){this.examplesService=M(R),this.overlay=!1,this.styleMode="default"}changeOverlay(c){this.examplesService.changeOverlay(c)}changeStyleMode(c){this.examplesService.changeStyleMode(c)}static{this.\u0275fac=function(m){return new(m||d)}}static{this.\u0275cmp=k({type:d,selectors:[["app-root"]],decls:102,vars:65,consts:[[1,"container"],[1,"row"],[1,"col-3"],["routerLink","./basic","routerLinkActive","active"],["routerLink","./multiple","routerLinkActive","active"],["routerLink","./tags","routerLinkActive","active"],["routerLink","./events","routerLinkActive","active"],["routerLink","./limits","routerLinkActive","active"],["routerLink","./form-control","routerLinkActive","active"],["routerLink","./resettable","routerLinkActive","active"],["routerLink","./auto-create","routerLinkActive","active"],["routerLink","./infinite-scroll","routerLinkActive","active"],["routerLink","./position","routerLinkActive","active"],["routerLink","./template","routerLinkActive","active"],["routerLink","./grid","routerLinkActive","active"],["routerLink","./selection-override","routerLinkActive","active"],["routerLink","./selection-nowrap","routerLinkActive","active"],["routerLink","./select-all","routerLinkActive","active"],["routerLink","./style","routerLinkActive","active"],["routerLink","./wai","routerLinkActive","active"],["routerLink","./others","routerLinkActive","active"],[1,"col-9","container"],[1,"row","options"],["for","disabled"],["id","disabled","type","checkbox",3,"ngModelChange","ngModel"],[1,"col-4"],["id","disabled",3,"ngModelChange","ngModel"],["selected",""],[1,"main"]],template:function(m,p){m&1&&(e(0,"div",0)(1,"div",1)(2,"nav",2)(3,"div")(4,"h2"),i(5),o(6,"transloco"),t(),e(7,"ul")(8,"li")(9,"a",3),i(10),o(11,"transloco"),t()(),e(12,"li")(13,"a",4),i(14),o(15,"transloco"),t()(),e(16,"li")(17,"a",5),i(18),o(19,"transloco"),t()(),e(20,"li")(21,"a",6),i(22),o(23,"transloco"),t()(),e(24,"li")(25,"a",7),i(26),o(27,"transloco"),t()(),e(28,"li")(29,"a",8),i(30),o(31,"transloco"),t()(),e(32,"li")(33,"a",9),i(34),o(35,"transloco"),t()(),e(36,"li")(37,"a",10),i(38),o(39,"transloco"),t()(),e(40,"li")(41,"a",11),i(42),o(43,"transloco"),t()(),e(44,"li")(45,"a",12),i(46),o(47,"transloco"),t()(),e(48,"li")(49,"a",13),i(50),o(51,"transloco"),t()(),e(52,"li")(53,"a",14),i(54),o(55,"transloco"),t()(),e(56,"li")(57,"a",15),i(58),o(59,"transloco"),t()(),e(60,"li")(61,"a",16),i(62),o(63,"transloco"),t()(),e(64,"li")(65,"a",17),i(66),o(67,"transloco"),t()(),e(68,"li")(69,"a",18),i(70),o(71,"transloco"),t()(),e(72,"li")(73,"a",19),i(74),o(75,"transloco"),t()(),e(76,"li")(77,"a",20),i(78),o(79,"transloco"),t()()()()(),e(80,"div",21)(81,"div",22)(82,"div",2)(83,"label",23),i(84),o(85,"transloco"),t(),e(86,"input",24),S("ngModelChange",function(l){return x(p.overlay,l)||(p.overlay=l),l}),v("ngModelChange",function(l){return p.changeOverlay(l)}),t()(),e(87,"div",25)(88,"label",23),i(89),o(90,"transloco"),t(),e(91,"select",26),S("ngModelChange",function(l){return x(p.styleMode,l)||(p.styleMode=l),l}),v("ngModelChange",function(l){return p.changeStyleMode(l)}),e(92,"option",27),i(93,"default"),t(),e(94,"option"),i(95,"material"),t(),e(96,"option"),i(97,"noStyle"),t(),e(98,"option"),i(99,"borderless"),t()()()(),e(100,"div",28),L(101,"router-outlet"),t()()()()),m&2&&(n(5),r(a(6,23,"Examples")),n(5),r(a(11,25,"Basic")),n(4),r(a(15,27,"Multiple")),n(4),r(a(19,29,"Tags")),n(4),r(a(23,31,"Events")),n(4),r(a(27,33,"Limits")),n(4),r(a(31,35,"Form Control")),n(4),r(a(35,37,"Resettable")),n(4),r(a(39,39,"Auto create")),n(4),r(a(43,41,"Infinite scroll")),n(4),r(a(47,43,"Position")),n(4),r(a(51,45,"Template")),n(4),r(a(55,47,"Grid")),n(4),r(a(59,49,"Selection override")),n(4),r(a(63,51,"Selection no wrap")),n(4),r(a(67,53,"Select All")),n(4),r(a(71,55,"Style")),n(4),r(a(75,57,"Accessibility")),n(4),r(a(79,59,"Others")),n(6),u("",a(85,61,"Angular CDK Overlay:")," "),n(2),g("ngModel",p.overlay),n(3),u("",a(90,63,"Style mode:")," "),n(2),g("ngModel",p.styleMode))},dependencies:[h,A,f,C,_,E,y,B,I,O,W,b,P,w,T],styles:["nav[_ngcontent-%COMP%]{position:sticky;top:62px;align-self:flex-start;background-color:transparent}nav[_ngcontent-%COMP%] li[_ngcontent-%COMP%]{margin:2px 0}nav[_ngcontent-%COMP%] li[_ngcontent-%COMP%] [_ngcontent-%COMP%]:hover, nav[_ngcontent-%COMP%] li[_ngcontent-%COMP%] .active[_ngcontent-%COMP%]{background-color:#eee}nav[_ngcontent-%COMP%] li[_ngcontent-%COMP%] a[_ngcontent-%COMP%]{display:block}.options[_ngcontent-%COMP%]{margin-top:10px;border-bottom:1px solid #888;padding-bottom:10px}.main[_ngcontent-%COMP%]{padding-bottom:300px}"]})}}return d})();export{U as AppExamplesComponent};
diff --git a/dist/ng-select2/browser/chunk-34UD4EAA.js b/dist/ng-select2/browser/chunk-NAFGEXTH.js
similarity index 98%
rename from dist/ng-select2/browser/chunk-34UD4EAA.js
rename to dist/ng-select2/browser/chunk-NAFGEXTH.js
index 8a08323..488e095 100644
--- a/dist/ng-select2/browser/chunk-34UD4EAA.js
+++ b/dist/ng-select2/browser/chunk-NAFGEXTH.js
@@ -1 +1 @@
-import{a as $}from"./chunk-JZQVIJ3O.js";import"./chunk-4FOF4764.js";import{a as q,c as H,d as K,e as Q,g as X,o as Y,w as Z}from"./chunk-IUSK23HG.js";import"./chunk-KWVA3REN.js";import{b as F,c as b,e as N,f as L,i as T,j,k as O,l as k,m as D,n as J,p as R,q as G,s as P,t as A,u as W,x as z,y as U}from"./chunk-7IHFBV5J.js";import{Cb as i,Db as a,Eb as x,Ec as V,Gb as w,Ib as v,Rb as E,Sa as t,Sb as n,Ta as _,Tb as r,Ub as S,Wb as M,Xb as g,Yb as B,db as I,ec as l,fc as o,hb as C,ia as m,ja as u,ub as c}from"./chunk-S5UJW4WF.js";import"./chunk-EQDQRRRY.js";var de=(()=>{class y extends ${constructor(h){super(),this.fb=h,this.data5=K,this.data6=Q,this.data7=JSON.parse(JSON.stringify(H)),this.data9=JSON.parse(JSON.stringify(q)),this.data18=X,this.data28=Y,this.value5=0,this.value6="foo3",this.value7="",this.value9=[],this.value18="",this.value28="",this.minCountForSearch=1/0,this.limitSelection=0,this.ctrlForm2=this.fb.group({test5:new T(0,b.required)})}addItem(){let h=this.data6.length+1;this.data6.push({value:"foo"+h,label:"foo"+h})}removeItem(){this.data6.pop()}static{this.\u0275fac=function(f){return new(f||y)(_(P))}}static{this.\u0275cmp=I({type:y,selectors:[["examples-limits"]],features:[C],decls:97,vars:90,consts:[["limit",""],["status",""],[1,"container"],[1,"row"],["id","ex-5",1,"col-12"],[1,"col-6",3,"formGroup"],["formControlName","test5","id","select2-5",3,"update","overlay","styleMode","data","minCountForSearch"],[1,"col-12","value"],["id","ex-6",1,"col-12"],["size","3","value","7"],[1,"col-12"],["selected",""],["type","button",3,"click"],["id","select2-6",1,"col-6",3,"update","overlay","styleMode","data","value","minCountForSearch","displaySearchStatus"],["id","ex-9",1,"col-12"],["type","number","size","3",3,"ngModelChange","ngModel"],["multiple","true","customSearchEnabled","","id","select2-9",1,"col-6",3,"overlay","data","value","limitSelection"],["id","ex-28",1,"col-12"],["listPosition","auto","id","select2-28","maxResults","50",1,"col-6",3,"update","overlay","styleMode","data","value","maxResultsMessage"],["id","ex-18",1,"col-12"],["minCharForSearch","3","id","select2-18",1,"col-6",3,"update","overlay","data","value"]],template:function(f,e){if(f&1){let d=w();i(0,"h2"),n(1),l(2,"transloco"),a(),i(3,"div",2)(4,"div",3)(5,"h3",4),n(6),l(7,"transloco"),i(8,"code"),n(9,"infinity"),a(),n(10),a(),i(11,"form",5)(12,"select2",6),v("update",function(p){return m(d),u(e.update("value5",p))}),a()(),i(13,"div",7)(14,"div")(15,"span"),n(16),l(17,"transloco"),a(),i(18,"code"),n(19),l(20,"json"),a()()(),i(21,"h3",8),n(22),l(23,"transloco"),x(24,"input",9,0),n(26),l(27,"transloco"),a(),i(28,"div",10)(29,"select",null,1)(31,"option",11),n(32,"default"),a(),i(33,"option"),n(34,"hidden"),a(),i(35,"option"),n(36,"always"),a()(),n(37," - "),i(38,"button",12),v("click",function(){return m(d),u(e.addItem())}),n(39),l(40,"transloco"),a(),i(41,"button",12),v("click",function(){return m(d),u(e.removeItem())}),n(42),l(43,"transloco"),a()(),i(44,"select2",13),v("update",function(p){return m(d),u(e.update("value6",p))}),a(),i(45,"div",7)(46,"div")(47,"span"),n(48),l(49,"transloco"),a(),i(50,"code"),n(51),l(52,"json"),a()()(),i(53,"h3",14),n(54),l(55,"transloco"),a(),i(56,"div")(57,"label"),n(58),l(59,"transloco"),i(60,"input",15),B("ngModelChange",function(p){return m(d),g(e.limitSelection,p)||(e.limitSelection=p),u(p)}),a()(),n(61),l(62,"transloco"),a(),x(63,"select2",16),i(64,"div",7)(65,"div")(66,"span"),n(67),l(68,"transloco"),a(),i(69,"code"),n(70),l(71,"json"),a()()(),i(72,"h3",17),n(73),l(74,"transloco"),a(),i(75,"select2",18),l(76,"transloco"),v("update",function(p){return m(d),u(e.update("value28",p))}),a(),i(77,"div",7)(78,"div")(79,"span"),n(80),l(81,"transloco"),a(),i(82,"code"),n(83),l(84,"json"),a()()(),i(85,"h3",19),n(86),l(87,"transloco"),a(),i(88,"select2",20),v("update",function(p){return m(d),u(e.update("value18",p))}),a(),i(89,"div",7)(90,"div")(91,"span"),n(92),l(93,"transloco"),a(),i(94,"code"),n(95),l(96,"json"),a()()()()()}if(f&2){let d=E(25),s=E(30);t(),r(o(2,46,"Limits")),t(5),S(" ",o(7,48,"Search box always show")," (minCountForSearch = "),t(4),S(") (",e.value5,") "),t(),c("formGroup",e.ctrlForm2),t(),c("overlay",e.overlay)("styleMode",e.styleMode)("data",e.data5)("minCountForSearch",e.minCountForSearch),t(4),r(o(17,50,"value:")),t(3),r(o(20,52,e.value5)),t(3),S(" ",o(23,54,"Search box limit to "),""),t(4),S("",o(27,56," / display status")," "),t(13),r(o(40,58,"Add item")),t(3),r(o(43,60,"Remove item")),t(2),c("overlay",e.overlay)("styleMode",e.styleMode)("data",e.data6)("value",e.value6)("minCountForSearch",d.value)("displaySearchStatus",s.value),t(4),r(o(49,62,"value:")),t(3),r(o(52,64,e.value6)),t(3),r(o(55,66,"Multiple with limited selection")),t(4),S("",o(59,68,"Limit:")," "),t(2),M("ngModel",e.limitSelection),t(),S(" ",o(62,70,"(0 = no limit)")," "),t(2),c("overlay",e.overlay)("data",e.data9)("value",e.value9)("limitSelection",e.limitSelection),t(4),r(o(68,72,"value:")),t(3),r(o(71,74,e.value9)),t(3),r(o(74,76,"Max results (50)")),t(2),c("overlay",e.overlay)("styleMode",e.styleMode)("data",e.data28)("value",e.value28)("maxResultsMessage",o(76,78,"Too much results in this list.")),t(5),r(o(81,80,"value:")),t(3),r(o(84,82,e.value28)),t(3),r(o(87,84,"Search starts with 3 chars")),t(2),c("overlay",e.overlay)("data",e.data18)("value",e.value18),t(4),r(o(93,86,"value:")),t(3),r(o(96,88,e.value18))}},dependencies:[A,O,R,G,F,k,N,L,j,W,D,J,Z,U,z,V],encapsulation:2})}}return y})();export{de as ExamplesLimitsComponent};
+import{a as $}from"./chunk-WJI5FBHD.js";import"./chunk-4FOF4764.js";import{a as q,c as H,d as K,e as Q,g as X,o as Y,w as Z}from"./chunk-IUSK23HG.js";import"./chunk-KWVA3REN.js";import{b as F,c as b,e as N,f as L,i as T,j,k as O,l as k,m as D,n as J,p as R,q as G,s as P,t as A,u as W,x as z,y as U}from"./chunk-7IHFBV5J.js";import{Cb as i,Db as a,Eb as x,Ec as V,Gb as w,Ib as v,Rb as E,Sa as t,Sb as n,Ta as _,Tb as r,Ub as S,Wb as M,Xb as g,Yb as B,db as I,ec as l,fc as o,hb as C,ia as m,ja as u,ub as c}from"./chunk-S5UJW4WF.js";import"./chunk-EQDQRRRY.js";var de=(()=>{class y extends ${constructor(h){super(),this.fb=h,this.data5=K,this.data6=Q,this.data7=JSON.parse(JSON.stringify(H)),this.data9=JSON.parse(JSON.stringify(q)),this.data18=X,this.data28=Y,this.value5=0,this.value6="foo3",this.value7="",this.value9=[],this.value18="",this.value28="",this.minCountForSearch=1/0,this.limitSelection=0,this.ctrlForm2=this.fb.group({test5:new T(0,b.required)})}addItem(){let h=this.data6.length+1;this.data6.push({value:"foo"+h,label:"foo"+h})}removeItem(){this.data6.pop()}static{this.\u0275fac=function(f){return new(f||y)(_(P))}}static{this.\u0275cmp=I({type:y,selectors:[["examples-limits"]],features:[C],decls:97,vars:90,consts:[["limit",""],["status",""],[1,"container"],[1,"row"],["id","ex-5",1,"col-12"],[1,"col-6",3,"formGroup"],["formControlName","test5","id","select2-5",3,"update","overlay","styleMode","data","minCountForSearch"],[1,"col-12","value"],["id","ex-6",1,"col-12"],["size","3","value","7"],[1,"col-12"],["selected",""],["type","button",3,"click"],["id","select2-6",1,"col-6",3,"update","overlay","styleMode","data","value","minCountForSearch","displaySearchStatus"],["id","ex-9",1,"col-12"],["type","number","size","3",3,"ngModelChange","ngModel"],["multiple","true","customSearchEnabled","","id","select2-9",1,"col-6",3,"overlay","data","value","limitSelection"],["id","ex-28",1,"col-12"],["listPosition","auto","id","select2-28","maxResults","50",1,"col-6",3,"update","overlay","styleMode","data","value","maxResultsMessage"],["id","ex-18",1,"col-12"],["minCharForSearch","3","id","select2-18",1,"col-6",3,"update","overlay","data","value"]],template:function(f,e){if(f&1){let d=w();i(0,"h2"),n(1),l(2,"transloco"),a(),i(3,"div",2)(4,"div",3)(5,"h3",4),n(6),l(7,"transloco"),i(8,"code"),n(9,"infinity"),a(),n(10),a(),i(11,"form",5)(12,"select2",6),v("update",function(p){return m(d),u(e.update("value5",p))}),a()(),i(13,"div",7)(14,"div")(15,"span"),n(16),l(17,"transloco"),a(),i(18,"code"),n(19),l(20,"json"),a()()(),i(21,"h3",8),n(22),l(23,"transloco"),x(24,"input",9,0),n(26),l(27,"transloco"),a(),i(28,"div",10)(29,"select",null,1)(31,"option",11),n(32,"default"),a(),i(33,"option"),n(34,"hidden"),a(),i(35,"option"),n(36,"always"),a()(),n(37," - "),i(38,"button",12),v("click",function(){return m(d),u(e.addItem())}),n(39),l(40,"transloco"),a(),i(41,"button",12),v("click",function(){return m(d),u(e.removeItem())}),n(42),l(43,"transloco"),a()(),i(44,"select2",13),v("update",function(p){return m(d),u(e.update("value6",p))}),a(),i(45,"div",7)(46,"div")(47,"span"),n(48),l(49,"transloco"),a(),i(50,"code"),n(51),l(52,"json"),a()()(),i(53,"h3",14),n(54),l(55,"transloco"),a(),i(56,"div")(57,"label"),n(58),l(59,"transloco"),i(60,"input",15),B("ngModelChange",function(p){return m(d),g(e.limitSelection,p)||(e.limitSelection=p),u(p)}),a()(),n(61),l(62,"transloco"),a(),x(63,"select2",16),i(64,"div",7)(65,"div")(66,"span"),n(67),l(68,"transloco"),a(),i(69,"code"),n(70),l(71,"json"),a()()(),i(72,"h3",17),n(73),l(74,"transloco"),a(),i(75,"select2",18),l(76,"transloco"),v("update",function(p){return m(d),u(e.update("value28",p))}),a(),i(77,"div",7)(78,"div")(79,"span"),n(80),l(81,"transloco"),a(),i(82,"code"),n(83),l(84,"json"),a()()(),i(85,"h3",19),n(86),l(87,"transloco"),a(),i(88,"select2",20),v("update",function(p){return m(d),u(e.update("value18",p))}),a(),i(89,"div",7)(90,"div")(91,"span"),n(92),l(93,"transloco"),a(),i(94,"code"),n(95),l(96,"json"),a()()()()()}if(f&2){let d=E(25),s=E(30);t(),r(o(2,46,"Limits")),t(5),S(" ",o(7,48,"Search box always show")," (minCountForSearch = "),t(4),S(") (",e.value5,") "),t(),c("formGroup",e.ctrlForm2),t(),c("overlay",e.overlay)("styleMode",e.styleMode)("data",e.data5)("minCountForSearch",e.minCountForSearch),t(4),r(o(17,50,"value:")),t(3),r(o(20,52,e.value5)),t(3),S(" ",o(23,54,"Search box limit to "),""),t(4),S("",o(27,56," / display status")," "),t(13),r(o(40,58,"Add item")),t(3),r(o(43,60,"Remove item")),t(2),c("overlay",e.overlay)("styleMode",e.styleMode)("data",e.data6)("value",e.value6)("minCountForSearch",d.value)("displaySearchStatus",s.value),t(4),r(o(49,62,"value:")),t(3),r(o(52,64,e.value6)),t(3),r(o(55,66,"Multiple with limited selection")),t(4),S("",o(59,68,"Limit:")," "),t(2),M("ngModel",e.limitSelection),t(),S(" ",o(62,70,"(0 = no limit)")," "),t(2),c("overlay",e.overlay)("data",e.data9)("value",e.value9)("limitSelection",e.limitSelection),t(4),r(o(68,72,"value:")),t(3),r(o(71,74,e.value9)),t(3),r(o(74,76,"Max results (50)")),t(2),c("overlay",e.overlay)("styleMode",e.styleMode)("data",e.data28)("value",e.value28)("maxResultsMessage",o(76,78,"Too much results in this list.")),t(5),r(o(81,80,"value:")),t(3),r(o(84,82,e.value28)),t(3),r(o(87,84,"Search starts with 3 chars")),t(2),c("overlay",e.overlay)("data",e.data18)("value",e.value18),t(4),r(o(93,86,"value:")),t(3),r(o(96,88,e.value18))}},dependencies:[A,O,R,G,F,k,N,L,j,W,D,J,Z,U,z,V],encapsulation:2})}}return y})();export{de as ExamplesLimitsComponent};
diff --git a/dist/ng-select2/browser/chunk-QOV7JGXO.js b/dist/ng-select2/browser/chunk-NQCZBFKU.js
similarity index 97%
rename from dist/ng-select2/browser/chunk-QOV7JGXO.js
rename to dist/ng-select2/browser/chunk-NQCZBFKU.js
index 9348bf5..2706a8e 100644
--- a/dist/ng-select2/browser/chunk-QOV7JGXO.js
+++ b/dist/ng-select2/browser/chunk-NQCZBFKU.js
@@ -1 +1 @@
-import{a as g}from"./chunk-JZQVIJ3O.js";import"./chunk-4FOF4764.js";import{b as c,u as M,v as T,w as b}from"./chunk-IUSK23HG.js";import"./chunk-KWVA3REN.js";import{t as E,u as I,x as _,y as B}from"./chunk-7IHFBV5J.js";import{Cb as i,Db as a,Ec as x,Ib as m,Sa as t,Sb as n,Tb as l,db as S,ec as o,fc as p,hb as h,ka as f,ub as s}from"./chunk-S5UJW4WF.js";import"./chunk-EQDQRRRY.js";var W=(()=>{class r extends g{constructor(){super(...arguments),this.data15=c,this.data16=c,this.data16b=c,this.value15="",this.value16="",this.value16b=""}static{this.\u0275fac=(()=>{let u;return function(e){return(u||(u=f(r)))(e||r)}})()}static{this.\u0275cmp=S({type:r,selectors:[["examples-tags"]],features:[h],decls:47,vars:51,consts:[[1,"container"],[1,"row"],["id","ex-15",1,"col-12"],["id","select2-15",1,"col-6",3,"update","overlay","styleMode","data","value"],[1,"col-12","value"],["id","ex-16",1,"col-12"],["required","","id","select2-16",1,"col-6",3,"update","overlay","styleMode","data","value"],["id","select2-16",1,"col-6",3,"update","overlay","styleMode","data","value"]],template:function(v,e){v&1&&(i(0,"h2"),n(1),o(2,"transloco"),a(),i(3,"div",0)(4,"div",1)(5,"h3",2),n(6),o(7,"transloco"),a(),i(8,"select2",3),m("update",function(d){return e.update("value15",d)}),i(9,"select2-label"),n(10),o(11,"transloco"),a()(),i(12,"div",4)(13,"span"),n(14),o(15,"transloco"),a(),i(16,"code"),n(17),o(18,"json"),a()(),i(19,"h3",5),n(20),o(21,"transloco"),a(),i(22,"select2",6),m("update",function(d){return e.update("value16",d)}),i(23,"select2-label"),n(24),o(25,"transloco"),a()(),i(26,"div",4)(27,"span"),n(28),o(29,"transloco"),a(),i(30,"code"),n(31),o(32,"json"),a()(),i(33,"h3",5),n(34),o(35,"transloco"),a(),i(36,"select2",7),m("update",function(d){return e.update("value16b",d)}),i(37,"select2-hint"),n(38),o(39,"transloco"),a()(),i(40,"div",4)(41,"span"),n(42),o(43,"transloco"),a(),i(44,"code"),n(45),o(46,"json"),a()()()()),v&2&&(t(),l(p(2,25,"Tags")),t(5),l(p(7,27,"With label")),t(2),s("overlay",e.overlay)("styleMode",e.styleMode)("data",e.data15)("value",e.value15),t(2),l(p(11,29,"Select a state")),t(4),l(p(15,31,"value:")),t(3),l(p(18,33,e.value15)),t(3),l(p(21,35,"Required with label")),t(2),s("overlay",e.overlay)("styleMode",e.styleMode)("data",e.data16)("value",e.value16),t(2),l(p(25,37,"Select a state")),t(4),l(p(29,39,"value:")),t(3),l(p(32,41,e.value16)),t(3),l(p(35,43,"With hint")),t(2),s("overlay",e.overlay)("styleMode",e.styleMode)("data",e.data16b)("value",e.value16b),t(2),l(p(39,45,"Description in hint")),t(4),l(p(43,47,"value:")),t(3),l(p(46,49,e.value16b)))},dependencies:[E,I,b,T,M,x,B,_],encapsulation:2})}}return r})();export{W as ExemplesTagsComponent};
+import{a as g}from"./chunk-WJI5FBHD.js";import"./chunk-4FOF4764.js";import{b as c,u as M,v as T,w as b}from"./chunk-IUSK23HG.js";import"./chunk-KWVA3REN.js";import{t as E,u as I,x as _,y as B}from"./chunk-7IHFBV5J.js";import{Cb as i,Db as a,Ec as x,Ib as m,Sa as t,Sb as n,Tb as l,db as S,ec as o,fc as p,hb as h,ka as f,ub as s}from"./chunk-S5UJW4WF.js";import"./chunk-EQDQRRRY.js";var W=(()=>{class r extends g{constructor(){super(...arguments),this.data15=c,this.data16=c,this.data16b=c,this.value15="",this.value16="",this.value16b=""}static{this.\u0275fac=(()=>{let u;return function(e){return(u||(u=f(r)))(e||r)}})()}static{this.\u0275cmp=S({type:r,selectors:[["examples-tags"]],features:[h],decls:47,vars:51,consts:[[1,"container"],[1,"row"],["id","ex-15",1,"col-12"],["id","select2-15",1,"col-6",3,"update","overlay","styleMode","data","value"],[1,"col-12","value"],["id","ex-16",1,"col-12"],["required","","id","select2-16",1,"col-6",3,"update","overlay","styleMode","data","value"],["id","select2-16",1,"col-6",3,"update","overlay","styleMode","data","value"]],template:function(v,e){v&1&&(i(0,"h2"),n(1),o(2,"transloco"),a(),i(3,"div",0)(4,"div",1)(5,"h3",2),n(6),o(7,"transloco"),a(),i(8,"select2",3),m("update",function(d){return e.update("value15",d)}),i(9,"select2-label"),n(10),o(11,"transloco"),a()(),i(12,"div",4)(13,"span"),n(14),o(15,"transloco"),a(),i(16,"code"),n(17),o(18,"json"),a()(),i(19,"h3",5),n(20),o(21,"transloco"),a(),i(22,"select2",6),m("update",function(d){return e.update("value16",d)}),i(23,"select2-label"),n(24),o(25,"transloco"),a()(),i(26,"div",4)(27,"span"),n(28),o(29,"transloco"),a(),i(30,"code"),n(31),o(32,"json"),a()(),i(33,"h3",5),n(34),o(35,"transloco"),a(),i(36,"select2",7),m("update",function(d){return e.update("value16b",d)}),i(37,"select2-hint"),n(38),o(39,"transloco"),a()(),i(40,"div",4)(41,"span"),n(42),o(43,"transloco"),a(),i(44,"code"),n(45),o(46,"json"),a()()()()),v&2&&(t(),l(p(2,25,"Tags")),t(5),l(p(7,27,"With label")),t(2),s("overlay",e.overlay)("styleMode",e.styleMode)("data",e.data15)("value",e.value15),t(2),l(p(11,29,"Select a state")),t(4),l(p(15,31,"value:")),t(3),l(p(18,33,e.value15)),t(3),l(p(21,35,"Required with label")),t(2),s("overlay",e.overlay)("styleMode",e.styleMode)("data",e.data16)("value",e.value16),t(2),l(p(25,37,"Select a state")),t(4),l(p(29,39,"value:")),t(3),l(p(32,41,e.value16)),t(3),l(p(35,43,"With hint")),t(2),s("overlay",e.overlay)("styleMode",e.styleMode)("data",e.data16b)("value",e.value16b),t(2),l(p(39,45,"Description in hint")),t(4),l(p(43,47,"value:")),t(3),l(p(46,49,e.value16b)))},dependencies:[E,I,b,T,M,x,B,_],encapsulation:2})}}return r})();export{W as ExemplesTagsComponent};
diff --git a/dist/ng-select2/browser/chunk-4UWBWT6E.js b/dist/ng-select2/browser/chunk-ONYMUYHY.js
similarity index 97%
rename from dist/ng-select2/browser/chunk-4UWBWT6E.js
rename to dist/ng-select2/browser/chunk-ONYMUYHY.js
index 766d680..24b8518 100644
--- a/dist/ng-select2/browser/chunk-4UWBWT6E.js
+++ b/dist/ng-select2/browser/chunk-ONYMUYHY.js
@@ -1 +1 @@
-import{a as b}from"./chunk-JZQVIJ3O.js";import"./chunk-4FOF4764.js";import{a as u,w as I}from"./chunk-IUSK23HG.js";import"./chunk-KWVA3REN.js";import{t as M,u as x,x as _,y as B}from"./chunk-7IHFBV5J.js";import{Cb as i,Db as a,Ec as E,Ib as m,Sa as t,Sb as l,Tb as n,db as S,ec as o,fc as p,hb as h,ka as f,ub as s}from"./chunk-S5UJW4WF.js";import"./chunk-EQDQRRRY.js";var D=(()=>{class r extends b{constructor(){super(...arguments),this.data10a=JSON.parse(JSON.stringify(u)),this.data10=JSON.parse(JSON.stringify(u)),this.data10b=JSON.parse(JSON.stringify(u)),this.value10a="",this.value10="",this.value10b=""}static{this.\u0275fac=(()=>{let v;return function(e){return(v||(v=f(r)))(e||r)}})()}static{this.\u0275cmp=S({type:r,selectors:[["examples-multiple"]],features:[h],decls:38,vars:42,consts:[[1,"container"],[1,"row"],["id","ex-10a",1,"col-12"],["multiple","true","id","select2-10a",1,"col-6",3,"update","overlay","styleMode","data","value"],[1,"col-12","value"],["id","ex-10",1,"col-12"],["multiple","true","hideSelectedItems","true","id","select2-10",1,"col-6",3,"update","overlay","styleMode","data","value"],["id","ex-10b",1,"col-12"],["placeholder","select items","multiple","true","id","select2-10b",1,"col-6",3,"update","overlay","styleMode","data","value"]],template:function(c,e){c&1&&(i(0,"h2"),l(1),o(2,"transloco"),a(),i(3,"div",0)(4,"div",1)(5,"h3",2),l(6),o(7,"transloco"),a(),i(8,"select2",3),m("update",function(d){return e.update("value10a",d)}),a(),i(9,"div",4)(10,"span"),l(11),o(12,"transloco"),a(),i(13,"code"),l(14),o(15,"json"),a()(),i(16,"h3",5),l(17),o(18,"transloco"),a(),i(19,"select2",6),m("update",function(d){return e.update("value10",d)}),a(),i(20,"div",4)(21,"span"),l(22),o(23,"transloco"),a(),i(24,"code"),l(25),o(26,"json"),a()(),i(27,"h3",7),l(28),o(29,"transloco"),a(),i(30,"select2",8),m("update",function(d){return e.update("value10b",d)}),a(),i(31,"div",4)(32,"span"),l(33),o(34,"transloco"),a(),i(35,"code"),l(36),o(37,"json"),a()()()()),c&2&&(t(),n(p(2,22,"Events")),t(5),n(p(7,24,"Basic usage")),t(2),s("overlay",e.overlay)("styleMode",e.styleMode)("data",e.data10a)("value",e.value10a),t(3),n(p(12,26,"value:")),t(3),n(p(15,28,e.value10a)),t(3),n(p(18,30,"With hide selected items")),t(2),s("overlay",e.overlay)("styleMode",e.styleMode)("data",e.data10)("value",e.value10),t(3),n(p(23,32,"value:")),t(3),n(p(26,34,e.value10)),t(3),n(p(29,36,"Basic with placeholder")),t(2),s("overlay",e.overlay)("styleMode",e.styleMode)("data",e.data10b)("value",e.value10b),t(3),n(p(34,38,"value:")),t(3),n(p(37,40,e.value10b)))},dependencies:[M,x,I,E,B,_],encapsulation:2})}}return r})();export{D as ExemplesMultipleComponent};
+import{a as b}from"./chunk-WJI5FBHD.js";import"./chunk-4FOF4764.js";import{a as u,w as I}from"./chunk-IUSK23HG.js";import"./chunk-KWVA3REN.js";import{t as M,u as x,x as _,y as B}from"./chunk-7IHFBV5J.js";import{Cb as i,Db as a,Ec as E,Ib as m,Sa as t,Sb as l,Tb as n,db as S,ec as o,fc as p,hb as h,ka as f,ub as s}from"./chunk-S5UJW4WF.js";import"./chunk-EQDQRRRY.js";var D=(()=>{class r extends b{constructor(){super(...arguments),this.data10a=JSON.parse(JSON.stringify(u)),this.data10=JSON.parse(JSON.stringify(u)),this.data10b=JSON.parse(JSON.stringify(u)),this.value10a="",this.value10="",this.value10b=""}static{this.\u0275fac=(()=>{let v;return function(e){return(v||(v=f(r)))(e||r)}})()}static{this.\u0275cmp=S({type:r,selectors:[["examples-multiple"]],features:[h],decls:38,vars:42,consts:[[1,"container"],[1,"row"],["id","ex-10a",1,"col-12"],["multiple","true","id","select2-10a",1,"col-6",3,"update","overlay","styleMode","data","value"],[1,"col-12","value"],["id","ex-10",1,"col-12"],["multiple","true","hideSelectedItems","true","id","select2-10",1,"col-6",3,"update","overlay","styleMode","data","value"],["id","ex-10b",1,"col-12"],["placeholder","select items","multiple","true","id","select2-10b",1,"col-6",3,"update","overlay","styleMode","data","value"]],template:function(c,e){c&1&&(i(0,"h2"),l(1),o(2,"transloco"),a(),i(3,"div",0)(4,"div",1)(5,"h3",2),l(6),o(7,"transloco"),a(),i(8,"select2",3),m("update",function(d){return e.update("value10a",d)}),a(),i(9,"div",4)(10,"span"),l(11),o(12,"transloco"),a(),i(13,"code"),l(14),o(15,"json"),a()(),i(16,"h3",5),l(17),o(18,"transloco"),a(),i(19,"select2",6),m("update",function(d){return e.update("value10",d)}),a(),i(20,"div",4)(21,"span"),l(22),o(23,"transloco"),a(),i(24,"code"),l(25),o(26,"json"),a()(),i(27,"h3",7),l(28),o(29,"transloco"),a(),i(30,"select2",8),m("update",function(d){return e.update("value10b",d)}),a(),i(31,"div",4)(32,"span"),l(33),o(34,"transloco"),a(),i(35,"code"),l(36),o(37,"json"),a()()()()),c&2&&(t(),n(p(2,22,"Events")),t(5),n(p(7,24,"Basic usage")),t(2),s("overlay",e.overlay)("styleMode",e.styleMode)("data",e.data10a)("value",e.value10a),t(3),n(p(12,26,"value:")),t(3),n(p(15,28,e.value10a)),t(3),n(p(18,30,"With hide selected items")),t(2),s("overlay",e.overlay)("styleMode",e.styleMode)("data",e.data10)("value",e.value10),t(3),n(p(23,32,"value:")),t(3),n(p(26,34,e.value10)),t(3),n(p(29,36,"Basic with placeholder")),t(2),s("overlay",e.overlay)("styleMode",e.styleMode)("data",e.data10b)("value",e.value10b),t(3),n(p(34,38,"value:")),t(3),n(p(37,40,e.value10b)))},dependencies:[M,x,I,E,B,_],encapsulation:2})}}return r})();export{D as ExemplesMultipleComponent};
diff --git a/dist/ng-select2/browser/chunk-Z6EV3XQD.js b/dist/ng-select2/browser/chunk-PHMPVTQ2.js
similarity index 98%
rename from dist/ng-select2/browser/chunk-Z6EV3XQD.js
rename to dist/ng-select2/browser/chunk-PHMPVTQ2.js
index b17b73b..182fdeb 100644
--- a/dist/ng-select2/browser/chunk-Z6EV3XQD.js
+++ b/dist/ng-select2/browser/chunk-PHMPVTQ2.js
@@ -1 +1 @@
-import{a as L}from"./chunk-JZQVIJ3O.js";import"./chunk-4FOF4764.js";import{h as P,p as f,q as U,r as J,w as W}from"./chunk-IUSK23HG.js";import"./chunk-KWVA3REN.js";import{e as B,j as I,p as T,q as k,t as D,u as N,x as F,y as j}from"./chunk-7IHFBV5J.js";import{Cb as t,Db as i,Eb as M,Ec as O,Gb as w,Ib as m,Rb as C,Sa as n,Sb as a,Tb as l,Wb as V,Xb as x,Yb as b,db as E,ec as r,fc as o,hb as S,ia as s,ja as d,ka as g,ub as h}from"./chunk-S5UJW4WF.js";import"./chunk-EQDQRRRY.js";var Y=(()=>{class v extends L{constructor(){super(...arguments),this.data21=JSON.parse(JSON.stringify(P)),this.data31=f,this.value21="",this.value31="",this.value31m=[],this.value31b=""}changeData31(_){switch(_){case"english":this.data31=f;break;case"french":this.data31=U;break;case"japanese":this.data31=J;break}}static{this.\u0275fac=(()=>{let _;return function(e){return(_||(_=g(v)))(e||v)}})()}static{this.\u0275cmp=E({type:v,selectors:[["examples-others"]],features:[S],decls:55,vars:55,consts:[["select31",""],[1,"container"],[1,"row"],["id","ex-31",1,"col-12"],[1,"col-6"],[3,"change"],["value","english"],["value","french"],["value","japanese"],["id","select2-31",3,"update","overlay","styleMode","data","value"],["id","select2-31-m","multiple","",3,"update","overlay","styleMode","data","value"],["id","select2-31b",3,"ngModelChange","update","overlay","styleMode","data","ngModel"],["id","ex-21",1,"col-12"],["listPosition","above","id","select2-21",3,"update","overlay","styleMode","data","value"],[1,"col-12","value"],[1,"col-12"],[3,"click"]],template:function(y,e){if(y&1){let u=w();t(0,"h2"),a(1),r(2,"transloco"),i(),t(3,"div",1)(4,"div",2)(5,"h3",3),a(6),r(7,"transloco"),i(),t(8,"div",4)(9,"select",5,0),m("change",function(){s(u);let p=C(10);return d(e.changeData31(p.value))}),t(11,"option",6),a(12),r(13,"transloco"),i(),t(14,"option",7),a(15),r(16,"transloco"),i(),t(17,"option",8),a(18),r(19,"transloco"),i()(),t(20,"div"),a(21),r(22,"transloco"),i(),t(23,"select2",9),m("update",function(p){return s(u),d(e.update("value31",p))}),i(),t(24,"div"),a(25),r(26,"transloco"),i(),t(27,"select2",10),m("update",function(p){return s(u),d(e.update("value31m",p))}),i(),M(28,"br"),t(29,"div"),a(30,"NgModel:"),i(),t(31,"select2",11),b("ngModelChange",function(p){return s(u),x(e.value31b,p)||(e.value31b=p),d(p)}),m("update",function(p){return s(u),d(e.update("value31b",p))}),i()(),t(32,"h3",12),a(33),r(34,"transloco"),i(),t(35,"div",4)(36,"select2",13),m("update",function(p){return s(u),d(e.update("value21",p))}),i()(),t(37,"div",14)(38,"div")(39,"span"),a(40),r(41,"transloco"),i(),t(42,"code"),a(43),r(44,"json"),i()()(),t(45,"div",15)(46,"button",16),m("click",function(){return s(u),d(e.value21="")}),a(47),r(48,"transloco"),i(),t(49,"button",16),m("click",function(){return s(u),d(e.value21=null)}),a(50),r(51,"transloco"),i(),t(52,"button",16),m("click",function(){return s(u),d(e.value21=void 0)}),a(53),r(54,"transloco"),i()()()()}y&2&&(n(),l(o(2,29,"Others")),n(5),l(o(7,31,"Change list")),n(6),l(o(13,33,"english")),n(3),l(o(16,35,"french")),n(3),l(o(19,37,"japanese")),n(3),l(o(22,39,"Single value:")),n(2),h("overlay",e.overlay)("styleMode",e.styleMode)("data",e.data31)("value",e.value31),n(2),l(o(26,41,"Multiple value:")),n(2),h("overlay",e.overlay)("styleMode",e.styleMode)("data",e.data31)("value",e.value31m),n(4),h("overlay",e.overlay)("styleMode",e.styleMode)("data",e.data31),V("ngModel",e.value31b),n(2),l(o(34,43,"Update to empty/null/undefined")),n(3),h("overlay",e.overlay)("styleMode",e.styleMode)("data",e.data21)("value",e.value21),n(4),l(o(41,45,"value:")),n(3),l(o(44,47,e.value21)),n(4),l(o(48,49,"Update value to empty \u201Cstring\u201D")),n(3),l(o(51,51,"Update value to \u201Cnull\u201D")),n(3),l(o(54,53,"Update value to \u201Cundefined\u201D")))},dependencies:[D,T,k,B,I,N,W,O,j,F],encapsulation:2})}}return v})();export{Y as ExemplesOthersComponent};
+import{a as L}from"./chunk-WJI5FBHD.js";import"./chunk-4FOF4764.js";import{h as P,p as f,q as U,r as J,w as W}from"./chunk-IUSK23HG.js";import"./chunk-KWVA3REN.js";import{e as B,j as I,p as T,q as k,t as D,u as N,x as F,y as j}from"./chunk-7IHFBV5J.js";import{Cb as t,Db as i,Eb as M,Ec as O,Gb as w,Ib as m,Rb as C,Sa as n,Sb as a,Tb as l,Wb as V,Xb as x,Yb as b,db as E,ec as r,fc as o,hb as S,ia as s,ja as d,ka as g,ub as h}from"./chunk-S5UJW4WF.js";import"./chunk-EQDQRRRY.js";var Y=(()=>{class v extends L{constructor(){super(...arguments),this.data21=JSON.parse(JSON.stringify(P)),this.data31=f,this.value21="",this.value31="",this.value31m=[],this.value31b=""}changeData31(_){switch(_){case"english":this.data31=f;break;case"french":this.data31=U;break;case"japanese":this.data31=J;break}}static{this.\u0275fac=(()=>{let _;return function(e){return(_||(_=g(v)))(e||v)}})()}static{this.\u0275cmp=E({type:v,selectors:[["examples-others"]],features:[S],decls:55,vars:55,consts:[["select31",""],[1,"container"],[1,"row"],["id","ex-31",1,"col-12"],[1,"col-6"],[3,"change"],["value","english"],["value","french"],["value","japanese"],["id","select2-31",3,"update","overlay","styleMode","data","value"],["id","select2-31-m","multiple","",3,"update","overlay","styleMode","data","value"],["id","select2-31b",3,"ngModelChange","update","overlay","styleMode","data","ngModel"],["id","ex-21",1,"col-12"],["listPosition","above","id","select2-21",3,"update","overlay","styleMode","data","value"],[1,"col-12","value"],[1,"col-12"],[3,"click"]],template:function(y,e){if(y&1){let u=w();t(0,"h2"),a(1),r(2,"transloco"),i(),t(3,"div",1)(4,"div",2)(5,"h3",3),a(6),r(7,"transloco"),i(),t(8,"div",4)(9,"select",5,0),m("change",function(){s(u);let p=C(10);return d(e.changeData31(p.value))}),t(11,"option",6),a(12),r(13,"transloco"),i(),t(14,"option",7),a(15),r(16,"transloco"),i(),t(17,"option",8),a(18),r(19,"transloco"),i()(),t(20,"div"),a(21),r(22,"transloco"),i(),t(23,"select2",9),m("update",function(p){return s(u),d(e.update("value31",p))}),i(),t(24,"div"),a(25),r(26,"transloco"),i(),t(27,"select2",10),m("update",function(p){return s(u),d(e.update("value31m",p))}),i(),M(28,"br"),t(29,"div"),a(30,"NgModel:"),i(),t(31,"select2",11),b("ngModelChange",function(p){return s(u),x(e.value31b,p)||(e.value31b=p),d(p)}),m("update",function(p){return s(u),d(e.update("value31b",p))}),i()(),t(32,"h3",12),a(33),r(34,"transloco"),i(),t(35,"div",4)(36,"select2",13),m("update",function(p){return s(u),d(e.update("value21",p))}),i()(),t(37,"div",14)(38,"div")(39,"span"),a(40),r(41,"transloco"),i(),t(42,"code"),a(43),r(44,"json"),i()()(),t(45,"div",15)(46,"button",16),m("click",function(){return s(u),d(e.value21="")}),a(47),r(48,"transloco"),i(),t(49,"button",16),m("click",function(){return s(u),d(e.value21=null)}),a(50),r(51,"transloco"),i(),t(52,"button",16),m("click",function(){return s(u),d(e.value21=void 0)}),a(53),r(54,"transloco"),i()()()()}y&2&&(n(),l(o(2,29,"Others")),n(5),l(o(7,31,"Change list")),n(6),l(o(13,33,"english")),n(3),l(o(16,35,"french")),n(3),l(o(19,37,"japanese")),n(3),l(o(22,39,"Single value:")),n(2),h("overlay",e.overlay)("styleMode",e.styleMode)("data",e.data31)("value",e.value31),n(2),l(o(26,41,"Multiple value:")),n(2),h("overlay",e.overlay)("styleMode",e.styleMode)("data",e.data31)("value",e.value31m),n(4),h("overlay",e.overlay)("styleMode",e.styleMode)("data",e.data31),V("ngModel",e.value31b),n(2),l(o(34,43,"Update to empty/null/undefined")),n(3),h("overlay",e.overlay)("styleMode",e.styleMode)("data",e.data21)("value",e.value21),n(4),l(o(41,45,"value:")),n(3),l(o(44,47,e.value21)),n(4),l(o(48,49,"Update value to empty \u201Cstring\u201D")),n(3),l(o(51,51,"Update value to \u201Cnull\u201D")),n(3),l(o(54,53,"Update value to \u201Cundefined\u201D")))},dependencies:[D,T,k,B,I,N,W,O,j,F],encapsulation:2})}}return v})();export{Y as ExemplesOthersComponent};
diff --git a/dist/ng-select2/browser/chunk-Q7CAUWNS.js b/dist/ng-select2/browser/chunk-Q7CAUWNS.js
deleted file mode 100644
index d070dcb..0000000
--- a/dist/ng-select2/browser/chunk-Q7CAUWNS.js
+++ /dev/null
@@ -1 +0,0 @@
-import{a as B}from"./chunk-JZQVIJ3O.js";import"./chunk-4FOF4764.js";import{f as _,w as j}from"./chunk-IUSK23HG.js";import"./chunk-KWVA3REN.js";import{t as T,u as I,x as P,y as O}from"./chunk-7IHFBV5J.js";import{Ab as x,Bb as S,Cb as a,Db as p,Eb as b,Ec as M,Ib as v,Oa as f,Sa as i,Sb as r,Tb as u,Vb as y,db as E,ec as c,fc as m,hb as C,ka as h,ub as d,zb as g}from"./chunk-S5UJW4WF.js";import"./chunk-EQDQRRRY.js";function D(s,F){if(s&1&&(a(0,"code")(1,"div"),r(2),p(),a(3,"pre"),r(4),c(5,"json"),p()()),s&2){let e=F.$implicit;i(2),y("",e.key," - ",e.type,""),i(2),u(m(5,3,e.event))}}var V=(()=>{class s extends B{constructor(){super(...arguments),this.data8=_,this.value8="",this.event=[]}open(e,t){super.open(e,t),this.event.push({key:e,type:"Select2",event:"[object: Select2]"}),this.data8=_}close(e,t){super.close(e,t),this.event.push({key:e,type:"Select2",event:"[object: Select2]"})}focus(e,t){super.focus(e,t),this.event.push({key:e,type:"Select2",event:"[object: Select2]"})}blur(e,t){super.blur(e,t),this.event.push({key:e,type:"Select2",event:"[object: Select2]"})}change(e,t){super.change(e,t),this.event.push({key:e,type:"Event",event:t})}search(e,t){super.search(e,t),this.event.push({key:e,type:"Select2SearchEvent",event:{component:"[object: Select2]",value:t.value,search:t.search,data:t.data,filteredData:null}})}autoCreate(e,t){this.event.push({key:e,type:"Select2AutoCreateEvent",event:{component:"[object: Select2]",value:t.value,options:t.options}})}update(e,t){super.update(e,t),this.event.push({key:e,type:"Select2UpdateEvent",event:{component:"[object: Select2]",value:t.value,options:t.options}}),this.value8=t.value}static{this.\u0275fac=(()=>{let e;return function(n){return(e||(e=h(s)))(n||s)}})()}static{this.\u0275cmp=E({type:s,selectors:[["examples-events"]],features:[C],decls:24,vars:21,consts:[[1,"container"],[1,"row"],["id","ex-8",1,"col-12",3,"innerHTML"],["autoCreate","","id","select2-8",1,"col-6",3,"update","change","blur","focus","open","close","search","autoCreateItem","overlay","styleMode","data"],[1,"col-12","value"],[3,"click"],[1,"events"]],template:function(t,n){t&1&&(a(0,"h2"),r(1),c(2,"transloco"),p(),a(3,"div",0)(4,"div",1),b(5,"h3",2),c(6,"transloco"),a(7,"select2",3),v("update",function(o){return n.update("update",o)})("change",function(o){return n.change("change",o)})("blur",function(o){return n.blur("blur",o)})("focus",function(o){return n.focus("focus",o)})("open",function(o){return n.open("open",o)})("close",function(o){return n.close("close",o)})("search",function(o){return n.search("search",o)})("autoCreateItem",function(o){return n.autoCreate("autoCreateItem",o)}),p(),a(8,"div",4)(9,"span"),r(10),c(11,"transloco"),p(),a(12,"code"),r(13),c(14,"json"),p()()(),a(15,"button",5),v("click",function(){return n.event=[]}),r(16),c(17,"transloco"),p(),a(18,"div",6)(19,"h4"),r(20),c(21,"transloco"),p(),x(22,D,6,5,"code",null,g),p()()),t&2&&(i(),u(m(2,9,"Events")),i(4),d("innerHTML",m(6,11,"List events"),f),i(2),d("overlay",n.overlay)("styleMode",n.styleMode)("data",n.data8),i(3),u(m(11,13,"value:")),i(3),u(m(14,15,n.value8)),i(3),u(m(17,17,"Clear events")),i(4),u(m(21,19,"Events:")),i(2),S(n.event))},dependencies:[T,I,j,M,O,P],styles:[".events[_ngcontent-%COMP%]{margin:20px auto;border:1px solid #888;padding:5px}.events[_ngcontent-%COMP%] h4[_ngcontent-%COMP%]{margin:0;padding:0}.events[_ngcontent-%COMP%] code[_ngcontent-%COMP%]{display:block;margin-bottom:5px;background:#ddd}.events[_ngcontent-%COMP%] code[_ngcontent-%COMP%] div[_ngcontent-%COMP%]{border-bottom:1px solid #aaa;font-weight:bolder}.events[_ngcontent-%COMP%] code[_ngcontent-%COMP%] pre[_ngcontent-%COMP%]{margin:0;max-height:100px;overflow:auto;font-size:14px}"]})}}return s})();export{V as ExemplesEventsComponent};
diff --git a/dist/ng-select2/browser/chunk-FMHQTHM6.js b/dist/ng-select2/browser/chunk-RBPPVKZZ.js
similarity index 55%
rename from dist/ng-select2/browser/chunk-FMHQTHM6.js
rename to dist/ng-select2/browser/chunk-RBPPVKZZ.js
index 510294e..6f44e47 100644
--- a/dist/ng-select2/browser/chunk-FMHQTHM6.js
+++ b/dist/ng-select2/browser/chunk-RBPPVKZZ.js
@@ -1,6 +1,6 @@
-import{d as he}from"./chunk-TWHHM5EC.js";import{m as Se,u as be,v as _e,w as xe}from"./chunk-IUSK23HG.js";import{a as te,b as ne,e as ie,f as re,i as S,l as le,m as oe,n as ae,o as se,p as ce,q as ue,r as de,s as me,t as pe,u as fe,x as ge,y as ve}from"./chunk-7IHFBV5J.js";import{Cb as d,Db as a,Eb as b,Gb as X,Ib as Y,Jb as A,Oa as W,Rb as F,Sa as _,Sb as u,Ta as J,Tb as y,Ub as C,Zb as ee,db as K,ec as w,fc as E,gc as O,ia as P,ja as N,jb as k,tb as Z,ub as B,wb as L,yb as I}from"./chunk-S5UJW4WF.js";import{d as Ee,e as Ae}from"./chunk-EQDQRRRY.js";var Me=Ee((G,z)=>{"use strict";(function(f,c){typeof G=="object"&&typeof z=="object"?z.exports=c():typeof define=="function"&&define.amd?define([],c):typeof G=="object"?G.bowser=c():f.bowser=c()})(G,function(){return function(f){var c={};function i(s){if(c[s])return c[s].exports;var n=c[s]={i:s,l:!1,exports:{}};return f[s].call(n.exports,n,n.exports,i),n.l=!0,n.exports}return i.m=f,i.c=c,i.d=function(s,n,l){i.o(s,n)||Object.defineProperty(s,n,{enumerable:!0,get:l})},i.r=function(s){typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(s,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(s,"__esModule",{value:!0})},i.t=function(s,n){if(1&n&&(s=i(s)),8&n||4&n&&typeof s=="object"&&s&&s.__esModule)return s;var l=Object.create(null);if(i.r(l),Object.defineProperty(l,"default",{enumerable:!0,value:s}),2&n&&typeof s!="string")for(var m in s)i.d(l,m,function(e){return s[e]}.bind(null,m));return l},i.n=function(s){var n=s&&s.__esModule?function(){return s.default}:function(){return s};return i.d(n,"a",n),n},i.o=function(s,n){return Object.prototype.hasOwnProperty.call(s,n)},i.p="",i(i.s=90)}({17:function(f,c,i){"use strict";c.__esModule=!0,c.default=void 0;var s=i(18),n=function(){function l(){}return l.getFirstMatch=function(m,e){var t=e.match(m);return t&&t.length>0&&t[1]||""},l.getSecondMatch=function(m,e){var t=e.match(m);return t&&t.length>1&&t[2]||""},l.matchAndReturnConst=function(m,e,t){if(m.test(e))return t},l.getWindowsVersionName=function(m){switch(m){case"NT":return"NT";case"XP":return"XP";case"NT 5.0":return"2000";case"NT 5.1":return"XP";case"NT 5.2":return"2003";case"NT 6.0":return"Vista";case"NT 6.1":return"7";case"NT 6.2":return"8";case"NT 6.3":return"8.1";case"NT 10.0":return"10";default:return}},l.getMacOSVersionName=function(m){var e=m.split(".").splice(0,2).map(function(t){return parseInt(t,10)||0});if(e.push(0),e[0]===10)switch(e[1]){case 5:return"Leopard";case 6:return"Snow Leopard";case 7:return"Lion";case 8:return"Mountain Lion";case 9:return"Mavericks";case 10:return"Yosemite";case 11:return"El Capitan";case 12:return"Sierra";case 13:return"High Sierra";case 14:return"Mojave";case 15:return"Catalina";default:return}},l.getAndroidVersionName=function(m){var e=m.split(".").splice(0,2).map(function(t){return parseInt(t,10)||0});if(e.push(0),!(e[0]===1&&e[1]<5))return e[0]===1&&e[1]<6?"Cupcake":e[0]===1&&e[1]>=6?"Donut":e[0]===2&&e[1]<2?"Eclair":e[0]===2&&e[1]===2?"Froyo":e[0]===2&&e[1]>2?"Gingerbread":e[0]===3?"Honeycomb":e[0]===4&&e[1]<1?"Ice Cream Sandwich":e[0]===4&&e[1]<4?"Jelly Bean":e[0]===4&&e[1]>=4?"KitKat":e[0]===5?"Lollipop":e[0]===6?"Marshmallow":e[0]===7?"Nougat":e[0]===8?"Oreo":e[0]===9?"Pie":void 0},l.getVersionPrecision=function(m){return m.split(".").length},l.compareVersions=function(m,e,t){t===void 0&&(t=!1);var r=l.getVersionPrecision(m),g=l.getVersionPrecision(e),p=Math.max(r,g),o=0,h=l.map([m,e],function(v){var x=p-l.getVersionPrecision(v),M=v+new Array(x+1).join(".0");return l.map(M.split("."),function(R){return new Array(20-R.length).join("0")+R}).reverse()});for(t&&(o=p-Math.min(r,g)),p-=1;p>=o;){if(h[0][p]>h[1][p])return 1;if(h[0][p]===h[1][p]){if(p===o)return 0;p-=1}else if(h[0][p]1?g-1:0),o=1;o0){var V=Object.keys(v),H=e.default.find(V,function(T){return h.isOS(T)});if(H){var q=this.satisfies(v[H]);if(q!==void 0)return q}var D=e.default.find(V,function(T){return h.isPlatform(T)});if(D){var Q=this.satisfies(v[D]);if(Q!==void 0)return Q}}if(R>0){var we=Object.keys(M),U=e.default.find(we,function(T){return h.isBrowser(T,!0)});if(U!==void 0)return this.compareVersion(M[U])}},p.isBrowser=function(o,h){h===void 0&&(h=!1);var v=this.getBrowserName().toLowerCase(),x=o.toLowerCase(),M=e.default.getBrowserTypeByAlias(x);return h&&M&&(x=M.toLowerCase()),x===v},p.compareVersion=function(o){var h=[0],v=o,x=!1,M=this.getBrowserVersion();if(typeof M=="string")return o[0]===">"||o[0]==="<"?(v=o.substr(1),o[1]==="="?(x=!0,v=o.substr(2)):h=[],o[0]===">"?h.push(1):h.push(-1)):o[0]==="="?v=o.substr(1):o[0]==="~"&&(x=!0,v=o.substr(1)),h.indexOf(e.default.compareVersions(M,v,x))>-1},p.isOS=function(o){return this.getOSName(!0)===String(o).toLowerCase()},p.isPlatform=function(o){return this.getPlatformType(!0)===String(o).toLowerCase()},p.isEngine=function(o){return this.getEngineName(!0)===String(o).toLowerCase()},p.is=function(o,h){return h===void 0&&(h=!1),this.isBrowser(o,h)||this.isOS(o)||this.isPlatform(o)},p.some=function(o){var h=this;return o===void 0&&(o=[]),o.some(function(v){return h.is(v)})},g}();c.default=r,f.exports=c.default},92:function(f,c,i){"use strict";c.__esModule=!0,c.default=void 0;var s,n=(s=i(17))&&s.__esModule?s:{default:s},l=/version\/(\d+(\.?_?\d+)+)/i,m=[{test:[/googlebot/i],describe:function(e){var t={name:"Googlebot"},r=n.default.getFirstMatch(/googlebot\/(\d+(\.\d+))/i,e)||n.default.getFirstMatch(l,e);return r&&(t.version=r),t}},{test:[/opera/i],describe:function(e){var t={name:"Opera"},r=n.default.getFirstMatch(l,e)||n.default.getFirstMatch(/(?:opera)[\s/](\d+(\.?_?\d+)+)/i,e);return r&&(t.version=r),t}},{test:[/opr\/|opios/i],describe:function(e){var t={name:"Opera"},r=n.default.getFirstMatch(/(?:opr|opios)[\s/](\S+)/i,e)||n.default.getFirstMatch(l,e);return r&&(t.version=r),t}},{test:[/SamsungBrowser/i],describe:function(e){var t={name:"Samsung Internet for Android"},r=n.default.getFirstMatch(l,e)||n.default.getFirstMatch(/(?:SamsungBrowser)[\s/](\d+(\.?_?\d+)+)/i,e);return r&&(t.version=r),t}},{test:[/Whale/i],describe:function(e){var t={name:"NAVER Whale Browser"},r=n.default.getFirstMatch(l,e)||n.default.getFirstMatch(/(?:whale)[\s/](\d+(?:\.\d+)+)/i,e);return r&&(t.version=r),t}},{test:[/MZBrowser/i],describe:function(e){var t={name:"MZ Browser"},r=n.default.getFirstMatch(/(?:MZBrowser)[\s/](\d+(?:\.\d+)+)/i,e)||n.default.getFirstMatch(l,e);return r&&(t.version=r),t}},{test:[/focus/i],describe:function(e){var t={name:"Focus"},r=n.default.getFirstMatch(/(?:focus)[\s/](\d+(?:\.\d+)+)/i,e)||n.default.getFirstMatch(l,e);return r&&(t.version=r),t}},{test:[/swing/i],describe:function(e){var t={name:"Swing"},r=n.default.getFirstMatch(/(?:swing)[\s/](\d+(?:\.\d+)+)/i,e)||n.default.getFirstMatch(l,e);return r&&(t.version=r),t}},{test:[/coast/i],describe:function(e){var t={name:"Opera Coast"},r=n.default.getFirstMatch(l,e)||n.default.getFirstMatch(/(?:coast)[\s/](\d+(\.?_?\d+)+)/i,e);return r&&(t.version=r),t}},{test:[/opt\/\d+(?:.?_?\d+)+/i],describe:function(e){var t={name:"Opera Touch"},r=n.default.getFirstMatch(/(?:opt)[\s/](\d+(\.?_?\d+)+)/i,e)||n.default.getFirstMatch(l,e);return r&&(t.version=r),t}},{test:[/yabrowser/i],describe:function(e){var t={name:"Yandex Browser"},r=n.default.getFirstMatch(/(?:yabrowser)[\s/](\d+(\.?_?\d+)+)/i,e)||n.default.getFirstMatch(l,e);return r&&(t.version=r),t}},{test:[/ucbrowser/i],describe:function(e){var t={name:"UC Browser"},r=n.default.getFirstMatch(l,e)||n.default.getFirstMatch(/(?:ucbrowser)[\s/](\d+(\.?_?\d+)+)/i,e);return r&&(t.version=r),t}},{test:[/Maxthon|mxios/i],describe:function(e){var t={name:"Maxthon"},r=n.default.getFirstMatch(l,e)||n.default.getFirstMatch(/(?:Maxthon|mxios)[\s/](\d+(\.?_?\d+)+)/i,e);return r&&(t.version=r),t}},{test:[/epiphany/i],describe:function(e){var t={name:"Epiphany"},r=n.default.getFirstMatch(l,e)||n.default.getFirstMatch(/(?:epiphany)[\s/](\d+(\.?_?\d+)+)/i,e);return r&&(t.version=r),t}},{test:[/puffin/i],describe:function(e){var t={name:"Puffin"},r=n.default.getFirstMatch(l,e)||n.default.getFirstMatch(/(?:puffin)[\s/](\d+(\.?_?\d+)+)/i,e);return r&&(t.version=r),t}},{test:[/sleipnir/i],describe:function(e){var t={name:"Sleipnir"},r=n.default.getFirstMatch(l,e)||n.default.getFirstMatch(/(?:sleipnir)[\s/](\d+(\.?_?\d+)+)/i,e);return r&&(t.version=r),t}},{test:[/k-meleon/i],describe:function(e){var t={name:"K-Meleon"},r=n.default.getFirstMatch(l,e)||n.default.getFirstMatch(/(?:k-meleon)[\s/](\d+(\.?_?\d+)+)/i,e);return r&&(t.version=r),t}},{test:[/micromessenger/i],describe:function(e){var t={name:"WeChat"},r=n.default.getFirstMatch(/(?:micromessenger)[\s/](\d+(\.?_?\d+)+)/i,e)||n.default.getFirstMatch(l,e);return r&&(t.version=r),t}},{test:[/qqbrowser/i],describe:function(e){var t={name:/qqbrowserlite/i.test(e)?"QQ Browser Lite":"QQ Browser"},r=n.default.getFirstMatch(/(?:qqbrowserlite|qqbrowser)[/](\d+(\.?_?\d+)+)/i,e)||n.default.getFirstMatch(l,e);return r&&(t.version=r),t}},{test:[/msie|trident/i],describe:function(e){var t={name:"Internet Explorer"},r=n.default.getFirstMatch(/(?:msie |rv:)(\d+(\.?_?\d+)+)/i,e);return r&&(t.version=r),t}},{test:[/\sedg\//i],describe:function(e){var t={name:"Microsoft Edge"},r=n.default.getFirstMatch(/\sedg\/(\d+(\.?_?\d+)+)/i,e);return r&&(t.version=r),t}},{test:[/edg([ea]|ios)/i],describe:function(e){var t={name:"Microsoft Edge"},r=n.default.getSecondMatch(/edg([ea]|ios)\/(\d+(\.?_?\d+)+)/i,e);return r&&(t.version=r),t}},{test:[/vivaldi/i],describe:function(e){var t={name:"Vivaldi"},r=n.default.getFirstMatch(/vivaldi\/(\d+(\.?_?\d+)+)/i,e);return r&&(t.version=r),t}},{test:[/seamonkey/i],describe:function(e){var t={name:"SeaMonkey"},r=n.default.getFirstMatch(/seamonkey\/(\d+(\.?_?\d+)+)/i,e);return r&&(t.version=r),t}},{test:[/sailfish/i],describe:function(e){var t={name:"Sailfish"},r=n.default.getFirstMatch(/sailfish\s?browser\/(\d+(\.\d+)?)/i,e);return r&&(t.version=r),t}},{test:[/silk/i],describe:function(e){var t={name:"Amazon Silk"},r=n.default.getFirstMatch(/silk\/(\d+(\.?_?\d+)+)/i,e);return r&&(t.version=r),t}},{test:[/phantom/i],describe:function(e){var t={name:"PhantomJS"},r=n.default.getFirstMatch(/phantomjs\/(\d+(\.?_?\d+)+)/i,e);return r&&(t.version=r),t}},{test:[/slimerjs/i],describe:function(e){var t={name:"SlimerJS"},r=n.default.getFirstMatch(/slimerjs\/(\d+(\.?_?\d+)+)/i,e);return r&&(t.version=r),t}},{test:[/blackberry|\bbb\d+/i,/rim\stablet/i],describe:function(e){var t={name:"BlackBerry"},r=n.default.getFirstMatch(l,e)||n.default.getFirstMatch(/blackberry[\d]+\/(\d+(\.?_?\d+)+)/i,e);return r&&(t.version=r),t}},{test:[/(web|hpw)[o0]s/i],describe:function(e){var t={name:"WebOS Browser"},r=n.default.getFirstMatch(l,e)||n.default.getFirstMatch(/w(?:eb)?[o0]sbrowser\/(\d+(\.?_?\d+)+)/i,e);return r&&(t.version=r),t}},{test:[/bada/i],describe:function(e){var t={name:"Bada"},r=n.default.getFirstMatch(/dolfin\/(\d+(\.?_?\d+)+)/i,e);return r&&(t.version=r),t}},{test:[/tizen/i],describe:function(e){var t={name:"Tizen"},r=n.default.getFirstMatch(/(?:tizen\s?)?browser\/(\d+(\.?_?\d+)+)/i,e)||n.default.getFirstMatch(l,e);return r&&(t.version=r),t}},{test:[/qupzilla/i],describe:function(e){var t={name:"QupZilla"},r=n.default.getFirstMatch(/(?:qupzilla)[\s/](\d+(\.?_?\d+)+)/i,e)||n.default.getFirstMatch(l,e);return r&&(t.version=r),t}},{test:[/firefox|iceweasel|fxios/i],describe:function(e){var t={name:"Firefox"},r=n.default.getFirstMatch(/(?:firefox|iceweasel|fxios)[\s/](\d+(\.?_?\d+)+)/i,e);return r&&(t.version=r),t}},{test:[/electron/i],describe:function(e){var t={name:"Electron"},r=n.default.getFirstMatch(/(?:electron)\/(\d+(\.?_?\d+)+)/i,e);return r&&(t.version=r),t}},{test:[/MiuiBrowser/i],describe:function(e){var t={name:"Miui"},r=n.default.getFirstMatch(/(?:MiuiBrowser)[\s/](\d+(\.?_?\d+)+)/i,e);return r&&(t.version=r),t}},{test:[/chromium/i],describe:function(e){var t={name:"Chromium"},r=n.default.getFirstMatch(/(?:chromium)[\s/](\d+(\.?_?\d+)+)/i,e)||n.default.getFirstMatch(l,e);return r&&(t.version=r),t}},{test:[/chrome|crios|crmo/i],describe:function(e){var t={name:"Chrome"},r=n.default.getFirstMatch(/(?:chrome|crios|crmo)\/(\d+(\.?_?\d+)+)/i,e);return r&&(t.version=r),t}},{test:[/GSA/i],describe:function(e){var t={name:"Google Search"},r=n.default.getFirstMatch(/(?:GSA)\/(\d+(\.?_?\d+)+)/i,e);return r&&(t.version=r),t}},{test:function(e){var t=!e.test(/like android/i),r=e.test(/android/i);return t&&r},describe:function(e){var t={name:"Android Browser"},r=n.default.getFirstMatch(l,e);return r&&(t.version=r),t}},{test:[/playstation 4/i],describe:function(e){var t={name:"PlayStation 4"},r=n.default.getFirstMatch(l,e);return r&&(t.version=r),t}},{test:[/safari|applewebkit/i],describe:function(e){var t={name:"Safari"},r=n.default.getFirstMatch(l,e);return r&&(t.version=r),t}},{test:[/.*/i],describe:function(e){var t=e.search("\\(")!==-1?/^(.*)\/(.*)[ \t]\((.*)/:/^(.*)\/(.*) /;return{name:n.default.getFirstMatch(t,e),version:n.default.getSecondMatch(t,e)}}}];c.default=m,f.exports=c.default},93:function(f,c,i){"use strict";c.__esModule=!0,c.default=void 0;var s,n=(s=i(17))&&s.__esModule?s:{default:s},l=i(18),m=[{test:[/Roku\/DVP/],describe:function(e){var t=n.default.getFirstMatch(/Roku\/DVP-(\d+\.\d+)/i,e);return{name:l.OS_MAP.Roku,version:t}}},{test:[/windows phone/i],describe:function(e){var t=n.default.getFirstMatch(/windows phone (?:os)?\s?(\d+(\.\d+)*)/i,e);return{name:l.OS_MAP.WindowsPhone,version:t}}},{test:[/windows /i],describe:function(e){var t=n.default.getFirstMatch(/Windows ((NT|XP)( \d\d?.\d)?)/i,e),r=n.default.getWindowsVersionName(t);return{name:l.OS_MAP.Windows,version:t,versionName:r}}},{test:[/Macintosh(.*?) FxiOS(.*?)\//],describe:function(e){var t={name:l.OS_MAP.iOS},r=n.default.getSecondMatch(/(Version\/)(\d[\d.]+)/,e);return r&&(t.version=r),t}},{test:[/macintosh/i],describe:function(e){var t=n.default.getFirstMatch(/mac os x (\d+(\.?_?\d+)+)/i,e).replace(/[_\s]/g,"."),r=n.default.getMacOSVersionName(t),g={name:l.OS_MAP.MacOS,version:t};return r&&(g.versionName=r),g}},{test:[/(ipod|iphone|ipad)/i],describe:function(e){var t=n.default.getFirstMatch(/os (\d+([_\s]\d+)*) like mac os x/i,e).replace(/[_\s]/g,".");return{name:l.OS_MAP.iOS,version:t}}},{test:function(e){var t=!e.test(/like android/i),r=e.test(/android/i);return t&&r},describe:function(e){var t=n.default.getFirstMatch(/android[\s/-](\d+(\.\d+)*)/i,e),r=n.default.getAndroidVersionName(t),g={name:l.OS_MAP.Android,version:t};return r&&(g.versionName=r),g}},{test:[/(web|hpw)[o0]s/i],describe:function(e){var t=n.default.getFirstMatch(/(?:web|hpw)[o0]s\/(\d+(\.\d+)*)/i,e),r={name:l.OS_MAP.WebOS};return t&&t.length&&(r.version=t),r}},{test:[/blackberry|\bbb\d+/i,/rim\stablet/i],describe:function(e){var t=n.default.getFirstMatch(/rim\stablet\sos\s(\d+(\.\d+)*)/i,e)||n.default.getFirstMatch(/blackberry\d+\/(\d+([_\s]\d+)*)/i,e)||n.default.getFirstMatch(/\bbb(\d+)/i,e);return{name:l.OS_MAP.BlackBerry,version:t}}},{test:[/bada/i],describe:function(e){var t=n.default.getFirstMatch(/bada\/(\d+(\.\d+)*)/i,e);return{name:l.OS_MAP.Bada,version:t}}},{test:[/tizen/i],describe:function(e){var t=n.default.getFirstMatch(/tizen[/\s](\d+(\.\d+)*)/i,e);return{name:l.OS_MAP.Tizen,version:t}}},{test:[/linux/i],describe:function(){return{name:l.OS_MAP.Linux}}},{test:[/CrOS/],describe:function(){return{name:l.OS_MAP.ChromeOS}}},{test:[/PlayStation 4/],describe:function(e){var t=n.default.getFirstMatch(/PlayStation 4[/\s](\d+(\.\d+)*)/i,e);return{name:l.OS_MAP.PlayStation4,version:t}}}];c.default=m,f.exports=c.default},94:function(f,c,i){"use strict";c.__esModule=!0,c.default=void 0;var s,n=(s=i(17))&&s.__esModule?s:{default:s},l=i(18),m=[{test:[/googlebot/i],describe:function(){return{type:"bot",vendor:"Google"}}},{test:[/huawei/i],describe:function(e){var t=n.default.getFirstMatch(/(can-l01)/i,e)&&"Nova",r={type:l.PLATFORMS_MAP.mobile,vendor:"Huawei"};return t&&(r.model=t),r}},{test:[/nexus\s*(?:7|8|9|10).*/i],describe:function(){return{type:l.PLATFORMS_MAP.tablet,vendor:"Nexus"}}},{test:[/ipad/i],describe:function(){return{type:l.PLATFORMS_MAP.tablet,vendor:"Apple",model:"iPad"}}},{test:[/Macintosh(.*?) FxiOS(.*?)\//],describe:function(){return{type:l.PLATFORMS_MAP.tablet,vendor:"Apple",model:"iPad"}}},{test:[/kftt build/i],describe:function(){return{type:l.PLATFORMS_MAP.tablet,vendor:"Amazon",model:"Kindle Fire HD 7"}}},{test:[/silk/i],describe:function(){return{type:l.PLATFORMS_MAP.tablet,vendor:"Amazon"}}},{test:[/tablet(?! pc)/i],describe:function(){return{type:l.PLATFORMS_MAP.tablet}}},{test:function(e){var t=e.test(/ipod|iphone/i),r=e.test(/like (ipod|iphone)/i);return t&&!r},describe:function(e){var t=n.default.getFirstMatch(/(ipod|iphone)/i,e);return{type:l.PLATFORMS_MAP.mobile,vendor:"Apple",model:t}}},{test:[/nexus\s*[0-6].*/i,/galaxy nexus/i],describe:function(){return{type:l.PLATFORMS_MAP.mobile,vendor:"Nexus"}}},{test:[/[^-]mobi/i],describe:function(){return{type:l.PLATFORMS_MAP.mobile}}},{test:function(e){return e.getBrowserName(!0)==="blackberry"},describe:function(){return{type:l.PLATFORMS_MAP.mobile,vendor:"BlackBerry"}}},{test:function(e){return e.getBrowserName(!0)==="bada"},describe:function(){return{type:l.PLATFORMS_MAP.mobile}}},{test:function(e){return e.getBrowserName()==="windows phone"},describe:function(){return{type:l.PLATFORMS_MAP.mobile,vendor:"Microsoft"}}},{test:function(e){var t=Number(String(e.getOSVersion()).split(".")[0]);return e.getOSName(!0)==="android"&&t>=3},describe:function(){return{type:l.PLATFORMS_MAP.tablet}}},{test:function(e){return e.getOSName(!0)==="android"},describe:function(){return{type:l.PLATFORMS_MAP.mobile}}},{test:function(e){return e.getOSName(!0)==="macos"},describe:function(){return{type:l.PLATFORMS_MAP.desktop,vendor:"Apple"}}},{test:function(e){return e.getOSName(!0)==="windows"},describe:function(){return{type:l.PLATFORMS_MAP.desktop}}},{test:function(e){return e.getOSName(!0)==="linux"},describe:function(){return{type:l.PLATFORMS_MAP.desktop}}},{test:function(e){return e.getOSName(!0)==="playstation 4"},describe:function(){return{type:l.PLATFORMS_MAP.tv}}},{test:function(e){return e.getOSName(!0)==="roku"},describe:function(){return{type:l.PLATFORMS_MAP.tv}}}];c.default=m,f.exports=c.default},95:function(f,c,i){"use strict";c.__esModule=!0,c.default=void 0;var s,n=(s=i(17))&&s.__esModule?s:{default:s},l=i(18),m=[{test:function(e){return e.getBrowserName(!0)==="microsoft edge"},describe:function(e){if(/\sedg\//i.test(e))return{name:l.ENGINE_MAP.Blink};var t=n.default.getFirstMatch(/edge\/(\d+(\.?_?\d+)+)/i,e);return{name:l.ENGINE_MAP.EdgeHTML,version:t}}},{test:[/trident/i],describe:function(e){var t={name:l.ENGINE_MAP.Trident},r=n.default.getFirstMatch(/trident\/(\d+(\.?_?\d+)+)/i,e);return r&&(t.version=r),t}},{test:function(e){return e.test(/presto/i)},describe:function(e){var t={name:l.ENGINE_MAP.Presto},r=n.default.getFirstMatch(/presto\/(\d+(\.?_?\d+)+)/i,e);return r&&(t.version=r),t}},{test:function(e){var t=e.test(/gecko/i),r=e.test(/like gecko/i);return t&&!r},describe:function(e){var t={name:l.ENGINE_MAP.Gecko},r=n.default.getFirstMatch(/gecko\/(\d+(\.?_?\d+)+)/i,e);return r&&(t.version=r),t}},{test:[/(apple)?webkit\/537\.36/i],describe:function(){return{name:l.ENGINE_MAP.Blink}}},{test:[/(apple)?webkit/i],describe:function(e){var t={name:l.ENGINE_MAP.WebKit},r=n.default.getFirstMatch(/webkit\/(\d+(\.?_?\d+)+)/i,e);return r&&(t.version=r),t}}];c.default=m,f.exports=c.default}})})});var j=class{json;options={spaceType:"space",spaceLength:4,spaceBase:0,maxLength:0,attrPosition:"alignFirstAttr",wrapAttrNumber:1,type:"html",formatting:"multiline",indent:!0,xmlDefaultTag:"span",noContentTags:["area","base","br","col","command","embed","hr","img","input","keygen","link","meta","param","source","track","wbr"],removeOptionalEndTags:!1,optionalEndTags:["colgroup","dd","dt","li","optgroup","option","p","rb","rt","rtc","rp","td","th","thead","tbody","tfoot","tr"]};constructor(c,i={}){this.json=c,Object.assign(this.options,i)}toString(){let c="",i=this.options.formatting==="inline";return Array.isArray(this.json)?this.json.forEach((s,n)=>{c+=`${n>0&&!i?`
+import{d as he}from"./chunk-TWHHM5EC.js";import{m as Se,u as be,v as _e,w as xe}from"./chunk-IUSK23HG.js";import{a as te,b as ne,e as ie,f as re,i as S,l as le,m as oe,n as ae,o as se,p as ce,q as ue,r as de,s as me,t as pe,u as fe,x as ge,y as ve}from"./chunk-7IHFBV5J.js";import{Cb as d,Db as a,Eb as b,Gb as X,Ib as Y,Jb as A,Oa as $,Rb as F,Sa as _,Sb as u,Ta as J,Tb as y,Ub as C,Zb as ee,db as K,ec as w,fc as E,gc as O,ia as P,ja as N,jb as B,tb as Z,ub as R,wb as j,yb as k}from"./chunk-S5UJW4WF.js";import{d as Ee,e as Ae}from"./chunk-EQDQRRRY.js";var Me=Ee((G,z)=>{"use strict";(function(p,c){typeof G=="object"&&typeof z=="object"?z.exports=c():typeof define=="function"&&define.amd?define([],c):typeof G=="object"?G.bowser=c():p.bowser=c()})(G,function(){return function(p){var c={};function i(s){if(c[s])return c[s].exports;var n=c[s]={i:s,l:!1,exports:{}};return p[s].call(n.exports,n,n.exports,i),n.l=!0,n.exports}return i.m=p,i.c=c,i.d=function(s,n,l){i.o(s,n)||Object.defineProperty(s,n,{enumerable:!0,get:l})},i.r=function(s){typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(s,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(s,"__esModule",{value:!0})},i.t=function(s,n){if(1&n&&(s=i(s)),8&n||4&n&&typeof s=="object"&&s&&s.__esModule)return s;var l=Object.create(null);if(i.r(l),Object.defineProperty(l,"default",{enumerable:!0,value:s}),2&n&&typeof s!="string")for(var m in s)i.d(l,m,function(e){return s[e]}.bind(null,m));return l},i.n=function(s){var n=s&&s.__esModule?function(){return s.default}:function(){return s};return i.d(n,"a",n),n},i.o=function(s,n){return Object.prototype.hasOwnProperty.call(s,n)},i.p="",i(i.s=90)}({17:function(p,c,i){"use strict";c.__esModule=!0,c.default=void 0;var s=i(18),n=function(){function l(){}return l.getFirstMatch=function(m,e){var t=e.match(m);return t&&t.length>0&&t[1]||""},l.getSecondMatch=function(m,e){var t=e.match(m);return t&&t.length>1&&t[2]||""},l.matchAndReturnConst=function(m,e,t){if(m.test(e))return t},l.getWindowsVersionName=function(m){switch(m){case"NT":return"NT";case"XP":return"XP";case"NT 5.0":return"2000";case"NT 5.1":return"XP";case"NT 5.2":return"2003";case"NT 6.0":return"Vista";case"NT 6.1":return"7";case"NT 6.2":return"8";case"NT 6.3":return"8.1";case"NT 10.0":return"10";default:return}},l.getMacOSVersionName=function(m){var e=m.split(".").splice(0,2).map(function(t){return parseInt(t,10)||0});if(e.push(0),e[0]===10)switch(e[1]){case 5:return"Leopard";case 6:return"Snow Leopard";case 7:return"Lion";case 8:return"Mountain Lion";case 9:return"Mavericks";case 10:return"Yosemite";case 11:return"El Capitan";case 12:return"Sierra";case 13:return"High Sierra";case 14:return"Mojave";case 15:return"Catalina";default:return}},l.getAndroidVersionName=function(m){var e=m.split(".").splice(0,2).map(function(t){return parseInt(t,10)||0});if(e.push(0),!(e[0]===1&&e[1]<5))return e[0]===1&&e[1]<6?"Cupcake":e[0]===1&&e[1]>=6?"Donut":e[0]===2&&e[1]<2?"Eclair":e[0]===2&&e[1]===2?"Froyo":e[0]===2&&e[1]>2?"Gingerbread":e[0]===3?"Honeycomb":e[0]===4&&e[1]<1?"Ice Cream Sandwich":e[0]===4&&e[1]<4?"Jelly Bean":e[0]===4&&e[1]>=4?"KitKat":e[0]===5?"Lollipop":e[0]===6?"Marshmallow":e[0]===7?"Nougat":e[0]===8?"Oreo":e[0]===9?"Pie":void 0},l.getVersionPrecision=function(m){return m.split(".").length},l.compareVersions=function(m,e,t){t===void 0&&(t=!1);var r=l.getVersionPrecision(m),g=l.getVersionPrecision(e),f=Math.max(r,g),o=0,h=l.map([m,e],function(v){var x=f-l.getVersionPrecision(v),M=v+new Array(x+1).join(".0");return l.map(M.split("."),function(L){return new Array(20-L.length).join("0")+L}).reverse()});for(t&&(o=f-Math.min(r,g)),f-=1;f>=o;){if(h[0][f]>h[1][f])return 1;if(h[0][f]===h[1][f]){if(f===o)return 0;f-=1}else if(h[0][f]1?g-1:0),o=1;o0){var I=Object.keys(v),H=e.default.find(I,function(T){return h.isOS(T)});if(H){var q=this.satisfies(v[H]);if(q!==void 0)return q}var D=e.default.find(I,function(T){return h.isPlatform(T)});if(D){var Q=this.satisfies(v[D]);if(Q!==void 0)return Q}}if(L>0){var we=Object.keys(M),U=e.default.find(we,function(T){return h.isBrowser(T,!0)});if(U!==void 0)return this.compareVersion(M[U])}},f.isBrowser=function(o,h){h===void 0&&(h=!1);var v=this.getBrowserName().toLowerCase(),x=o.toLowerCase(),M=e.default.getBrowserTypeByAlias(x);return h&&M&&(x=M.toLowerCase()),x===v},f.compareVersion=function(o){var h=[0],v=o,x=!1,M=this.getBrowserVersion();if(typeof M=="string")return o[0]===">"||o[0]==="<"?(v=o.substr(1),o[1]==="="?(x=!0,v=o.substr(2)):h=[],o[0]===">"?h.push(1):h.push(-1)):o[0]==="="?v=o.substr(1):o[0]==="~"&&(x=!0,v=o.substr(1)),h.indexOf(e.default.compareVersions(M,v,x))>-1},f.isOS=function(o){return this.getOSName(!0)===String(o).toLowerCase()},f.isPlatform=function(o){return this.getPlatformType(!0)===String(o).toLowerCase()},f.isEngine=function(o){return this.getEngineName(!0)===String(o).toLowerCase()},f.is=function(o,h){return h===void 0&&(h=!1),this.isBrowser(o,h)||this.isOS(o)||this.isPlatform(o)},f.some=function(o){var h=this;return o===void 0&&(o=[]),o.some(function(v){return h.is(v)})},g}();c.default=r,p.exports=c.default},92:function(p,c,i){"use strict";c.__esModule=!0,c.default=void 0;var s,n=(s=i(17))&&s.__esModule?s:{default:s},l=/version\/(\d+(\.?_?\d+)+)/i,m=[{test:[/googlebot/i],describe:function(e){var t={name:"Googlebot"},r=n.default.getFirstMatch(/googlebot\/(\d+(\.\d+))/i,e)||n.default.getFirstMatch(l,e);return r&&(t.version=r),t}},{test:[/opera/i],describe:function(e){var t={name:"Opera"},r=n.default.getFirstMatch(l,e)||n.default.getFirstMatch(/(?:opera)[\s/](\d+(\.?_?\d+)+)/i,e);return r&&(t.version=r),t}},{test:[/opr\/|opios/i],describe:function(e){var t={name:"Opera"},r=n.default.getFirstMatch(/(?:opr|opios)[\s/](\S+)/i,e)||n.default.getFirstMatch(l,e);return r&&(t.version=r),t}},{test:[/SamsungBrowser/i],describe:function(e){var t={name:"Samsung Internet for Android"},r=n.default.getFirstMatch(l,e)||n.default.getFirstMatch(/(?:SamsungBrowser)[\s/](\d+(\.?_?\d+)+)/i,e);return r&&(t.version=r),t}},{test:[/Whale/i],describe:function(e){var t={name:"NAVER Whale Browser"},r=n.default.getFirstMatch(l,e)||n.default.getFirstMatch(/(?:whale)[\s/](\d+(?:\.\d+)+)/i,e);return r&&(t.version=r),t}},{test:[/MZBrowser/i],describe:function(e){var t={name:"MZ Browser"},r=n.default.getFirstMatch(/(?:MZBrowser)[\s/](\d+(?:\.\d+)+)/i,e)||n.default.getFirstMatch(l,e);return r&&(t.version=r),t}},{test:[/focus/i],describe:function(e){var t={name:"Focus"},r=n.default.getFirstMatch(/(?:focus)[\s/](\d+(?:\.\d+)+)/i,e)||n.default.getFirstMatch(l,e);return r&&(t.version=r),t}},{test:[/swing/i],describe:function(e){var t={name:"Swing"},r=n.default.getFirstMatch(/(?:swing)[\s/](\d+(?:\.\d+)+)/i,e)||n.default.getFirstMatch(l,e);return r&&(t.version=r),t}},{test:[/coast/i],describe:function(e){var t={name:"Opera Coast"},r=n.default.getFirstMatch(l,e)||n.default.getFirstMatch(/(?:coast)[\s/](\d+(\.?_?\d+)+)/i,e);return r&&(t.version=r),t}},{test:[/opt\/\d+(?:.?_?\d+)+/i],describe:function(e){var t={name:"Opera Touch"},r=n.default.getFirstMatch(/(?:opt)[\s/](\d+(\.?_?\d+)+)/i,e)||n.default.getFirstMatch(l,e);return r&&(t.version=r),t}},{test:[/yabrowser/i],describe:function(e){var t={name:"Yandex Browser"},r=n.default.getFirstMatch(/(?:yabrowser)[\s/](\d+(\.?_?\d+)+)/i,e)||n.default.getFirstMatch(l,e);return r&&(t.version=r),t}},{test:[/ucbrowser/i],describe:function(e){var t={name:"UC Browser"},r=n.default.getFirstMatch(l,e)||n.default.getFirstMatch(/(?:ucbrowser)[\s/](\d+(\.?_?\d+)+)/i,e);return r&&(t.version=r),t}},{test:[/Maxthon|mxios/i],describe:function(e){var t={name:"Maxthon"},r=n.default.getFirstMatch(l,e)||n.default.getFirstMatch(/(?:Maxthon|mxios)[\s/](\d+(\.?_?\d+)+)/i,e);return r&&(t.version=r),t}},{test:[/epiphany/i],describe:function(e){var t={name:"Epiphany"},r=n.default.getFirstMatch(l,e)||n.default.getFirstMatch(/(?:epiphany)[\s/](\d+(\.?_?\d+)+)/i,e);return r&&(t.version=r),t}},{test:[/puffin/i],describe:function(e){var t={name:"Puffin"},r=n.default.getFirstMatch(l,e)||n.default.getFirstMatch(/(?:puffin)[\s/](\d+(\.?_?\d+)+)/i,e);return r&&(t.version=r),t}},{test:[/sleipnir/i],describe:function(e){var t={name:"Sleipnir"},r=n.default.getFirstMatch(l,e)||n.default.getFirstMatch(/(?:sleipnir)[\s/](\d+(\.?_?\d+)+)/i,e);return r&&(t.version=r),t}},{test:[/k-meleon/i],describe:function(e){var t={name:"K-Meleon"},r=n.default.getFirstMatch(l,e)||n.default.getFirstMatch(/(?:k-meleon)[\s/](\d+(\.?_?\d+)+)/i,e);return r&&(t.version=r),t}},{test:[/micromessenger/i],describe:function(e){var t={name:"WeChat"},r=n.default.getFirstMatch(/(?:micromessenger)[\s/](\d+(\.?_?\d+)+)/i,e)||n.default.getFirstMatch(l,e);return r&&(t.version=r),t}},{test:[/qqbrowser/i],describe:function(e){var t={name:/qqbrowserlite/i.test(e)?"QQ Browser Lite":"QQ Browser"},r=n.default.getFirstMatch(/(?:qqbrowserlite|qqbrowser)[/](\d+(\.?_?\d+)+)/i,e)||n.default.getFirstMatch(l,e);return r&&(t.version=r),t}},{test:[/msie|trident/i],describe:function(e){var t={name:"Internet Explorer"},r=n.default.getFirstMatch(/(?:msie |rv:)(\d+(\.?_?\d+)+)/i,e);return r&&(t.version=r),t}},{test:[/\sedg\//i],describe:function(e){var t={name:"Microsoft Edge"},r=n.default.getFirstMatch(/\sedg\/(\d+(\.?_?\d+)+)/i,e);return r&&(t.version=r),t}},{test:[/edg([ea]|ios)/i],describe:function(e){var t={name:"Microsoft Edge"},r=n.default.getSecondMatch(/edg([ea]|ios)\/(\d+(\.?_?\d+)+)/i,e);return r&&(t.version=r),t}},{test:[/vivaldi/i],describe:function(e){var t={name:"Vivaldi"},r=n.default.getFirstMatch(/vivaldi\/(\d+(\.?_?\d+)+)/i,e);return r&&(t.version=r),t}},{test:[/seamonkey/i],describe:function(e){var t={name:"SeaMonkey"},r=n.default.getFirstMatch(/seamonkey\/(\d+(\.?_?\d+)+)/i,e);return r&&(t.version=r),t}},{test:[/sailfish/i],describe:function(e){var t={name:"Sailfish"},r=n.default.getFirstMatch(/sailfish\s?browser\/(\d+(\.\d+)?)/i,e);return r&&(t.version=r),t}},{test:[/silk/i],describe:function(e){var t={name:"Amazon Silk"},r=n.default.getFirstMatch(/silk\/(\d+(\.?_?\d+)+)/i,e);return r&&(t.version=r),t}},{test:[/phantom/i],describe:function(e){var t={name:"PhantomJS"},r=n.default.getFirstMatch(/phantomjs\/(\d+(\.?_?\d+)+)/i,e);return r&&(t.version=r),t}},{test:[/slimerjs/i],describe:function(e){var t={name:"SlimerJS"},r=n.default.getFirstMatch(/slimerjs\/(\d+(\.?_?\d+)+)/i,e);return r&&(t.version=r),t}},{test:[/blackberry|\bbb\d+/i,/rim\stablet/i],describe:function(e){var t={name:"BlackBerry"},r=n.default.getFirstMatch(l,e)||n.default.getFirstMatch(/blackberry[\d]+\/(\d+(\.?_?\d+)+)/i,e);return r&&(t.version=r),t}},{test:[/(web|hpw)[o0]s/i],describe:function(e){var t={name:"WebOS Browser"},r=n.default.getFirstMatch(l,e)||n.default.getFirstMatch(/w(?:eb)?[o0]sbrowser\/(\d+(\.?_?\d+)+)/i,e);return r&&(t.version=r),t}},{test:[/bada/i],describe:function(e){var t={name:"Bada"},r=n.default.getFirstMatch(/dolfin\/(\d+(\.?_?\d+)+)/i,e);return r&&(t.version=r),t}},{test:[/tizen/i],describe:function(e){var t={name:"Tizen"},r=n.default.getFirstMatch(/(?:tizen\s?)?browser\/(\d+(\.?_?\d+)+)/i,e)||n.default.getFirstMatch(l,e);return r&&(t.version=r),t}},{test:[/qupzilla/i],describe:function(e){var t={name:"QupZilla"},r=n.default.getFirstMatch(/(?:qupzilla)[\s/](\d+(\.?_?\d+)+)/i,e)||n.default.getFirstMatch(l,e);return r&&(t.version=r),t}},{test:[/firefox|iceweasel|fxios/i],describe:function(e){var t={name:"Firefox"},r=n.default.getFirstMatch(/(?:firefox|iceweasel|fxios)[\s/](\d+(\.?_?\d+)+)/i,e);return r&&(t.version=r),t}},{test:[/electron/i],describe:function(e){var t={name:"Electron"},r=n.default.getFirstMatch(/(?:electron)\/(\d+(\.?_?\d+)+)/i,e);return r&&(t.version=r),t}},{test:[/MiuiBrowser/i],describe:function(e){var t={name:"Miui"},r=n.default.getFirstMatch(/(?:MiuiBrowser)[\s/](\d+(\.?_?\d+)+)/i,e);return r&&(t.version=r),t}},{test:[/chromium/i],describe:function(e){var t={name:"Chromium"},r=n.default.getFirstMatch(/(?:chromium)[\s/](\d+(\.?_?\d+)+)/i,e)||n.default.getFirstMatch(l,e);return r&&(t.version=r),t}},{test:[/chrome|crios|crmo/i],describe:function(e){var t={name:"Chrome"},r=n.default.getFirstMatch(/(?:chrome|crios|crmo)\/(\d+(\.?_?\d+)+)/i,e);return r&&(t.version=r),t}},{test:[/GSA/i],describe:function(e){var t={name:"Google Search"},r=n.default.getFirstMatch(/(?:GSA)\/(\d+(\.?_?\d+)+)/i,e);return r&&(t.version=r),t}},{test:function(e){var t=!e.test(/like android/i),r=e.test(/android/i);return t&&r},describe:function(e){var t={name:"Android Browser"},r=n.default.getFirstMatch(l,e);return r&&(t.version=r),t}},{test:[/playstation 4/i],describe:function(e){var t={name:"PlayStation 4"},r=n.default.getFirstMatch(l,e);return r&&(t.version=r),t}},{test:[/safari|applewebkit/i],describe:function(e){var t={name:"Safari"},r=n.default.getFirstMatch(l,e);return r&&(t.version=r),t}},{test:[/.*/i],describe:function(e){var t=e.search("\\(")!==-1?/^(.*)\/(.*)[ \t]\((.*)/:/^(.*)\/(.*) /;return{name:n.default.getFirstMatch(t,e),version:n.default.getSecondMatch(t,e)}}}];c.default=m,p.exports=c.default},93:function(p,c,i){"use strict";c.__esModule=!0,c.default=void 0;var s,n=(s=i(17))&&s.__esModule?s:{default:s},l=i(18),m=[{test:[/Roku\/DVP/],describe:function(e){var t=n.default.getFirstMatch(/Roku\/DVP-(\d+\.\d+)/i,e);return{name:l.OS_MAP.Roku,version:t}}},{test:[/windows phone/i],describe:function(e){var t=n.default.getFirstMatch(/windows phone (?:os)?\s?(\d+(\.\d+)*)/i,e);return{name:l.OS_MAP.WindowsPhone,version:t}}},{test:[/windows /i],describe:function(e){var t=n.default.getFirstMatch(/Windows ((NT|XP)( \d\d?.\d)?)/i,e),r=n.default.getWindowsVersionName(t);return{name:l.OS_MAP.Windows,version:t,versionName:r}}},{test:[/Macintosh(.*?) FxiOS(.*?)\//],describe:function(e){var t={name:l.OS_MAP.iOS},r=n.default.getSecondMatch(/(Version\/)(\d[\d.]+)/,e);return r&&(t.version=r),t}},{test:[/macintosh/i],describe:function(e){var t=n.default.getFirstMatch(/mac os x (\d+(\.?_?\d+)+)/i,e).replace(/[_\s]/g,"."),r=n.default.getMacOSVersionName(t),g={name:l.OS_MAP.MacOS,version:t};return r&&(g.versionName=r),g}},{test:[/(ipod|iphone|ipad)/i],describe:function(e){var t=n.default.getFirstMatch(/os (\d+([_\s]\d+)*) like mac os x/i,e).replace(/[_\s]/g,".");return{name:l.OS_MAP.iOS,version:t}}},{test:function(e){var t=!e.test(/like android/i),r=e.test(/android/i);return t&&r},describe:function(e){var t=n.default.getFirstMatch(/android[\s/-](\d+(\.\d+)*)/i,e),r=n.default.getAndroidVersionName(t),g={name:l.OS_MAP.Android,version:t};return r&&(g.versionName=r),g}},{test:[/(web|hpw)[o0]s/i],describe:function(e){var t=n.default.getFirstMatch(/(?:web|hpw)[o0]s\/(\d+(\.\d+)*)/i,e),r={name:l.OS_MAP.WebOS};return t&&t.length&&(r.version=t),r}},{test:[/blackberry|\bbb\d+/i,/rim\stablet/i],describe:function(e){var t=n.default.getFirstMatch(/rim\stablet\sos\s(\d+(\.\d+)*)/i,e)||n.default.getFirstMatch(/blackberry\d+\/(\d+([_\s]\d+)*)/i,e)||n.default.getFirstMatch(/\bbb(\d+)/i,e);return{name:l.OS_MAP.BlackBerry,version:t}}},{test:[/bada/i],describe:function(e){var t=n.default.getFirstMatch(/bada\/(\d+(\.\d+)*)/i,e);return{name:l.OS_MAP.Bada,version:t}}},{test:[/tizen/i],describe:function(e){var t=n.default.getFirstMatch(/tizen[/\s](\d+(\.\d+)*)/i,e);return{name:l.OS_MAP.Tizen,version:t}}},{test:[/linux/i],describe:function(){return{name:l.OS_MAP.Linux}}},{test:[/CrOS/],describe:function(){return{name:l.OS_MAP.ChromeOS}}},{test:[/PlayStation 4/],describe:function(e){var t=n.default.getFirstMatch(/PlayStation 4[/\s](\d+(\.\d+)*)/i,e);return{name:l.OS_MAP.PlayStation4,version:t}}}];c.default=m,p.exports=c.default},94:function(p,c,i){"use strict";c.__esModule=!0,c.default=void 0;var s,n=(s=i(17))&&s.__esModule?s:{default:s},l=i(18),m=[{test:[/googlebot/i],describe:function(){return{type:"bot",vendor:"Google"}}},{test:[/huawei/i],describe:function(e){var t=n.default.getFirstMatch(/(can-l01)/i,e)&&"Nova",r={type:l.PLATFORMS_MAP.mobile,vendor:"Huawei"};return t&&(r.model=t),r}},{test:[/nexus\s*(?:7|8|9|10).*/i],describe:function(){return{type:l.PLATFORMS_MAP.tablet,vendor:"Nexus"}}},{test:[/ipad/i],describe:function(){return{type:l.PLATFORMS_MAP.tablet,vendor:"Apple",model:"iPad"}}},{test:[/Macintosh(.*?) FxiOS(.*?)\//],describe:function(){return{type:l.PLATFORMS_MAP.tablet,vendor:"Apple",model:"iPad"}}},{test:[/kftt build/i],describe:function(){return{type:l.PLATFORMS_MAP.tablet,vendor:"Amazon",model:"Kindle Fire HD 7"}}},{test:[/silk/i],describe:function(){return{type:l.PLATFORMS_MAP.tablet,vendor:"Amazon"}}},{test:[/tablet(?! pc)/i],describe:function(){return{type:l.PLATFORMS_MAP.tablet}}},{test:function(e){var t=e.test(/ipod|iphone/i),r=e.test(/like (ipod|iphone)/i);return t&&!r},describe:function(e){var t=n.default.getFirstMatch(/(ipod|iphone)/i,e);return{type:l.PLATFORMS_MAP.mobile,vendor:"Apple",model:t}}},{test:[/nexus\s*[0-6].*/i,/galaxy nexus/i],describe:function(){return{type:l.PLATFORMS_MAP.mobile,vendor:"Nexus"}}},{test:[/[^-]mobi/i],describe:function(){return{type:l.PLATFORMS_MAP.mobile}}},{test:function(e){return e.getBrowserName(!0)==="blackberry"},describe:function(){return{type:l.PLATFORMS_MAP.mobile,vendor:"BlackBerry"}}},{test:function(e){return e.getBrowserName(!0)==="bada"},describe:function(){return{type:l.PLATFORMS_MAP.mobile}}},{test:function(e){return e.getBrowserName()==="windows phone"},describe:function(){return{type:l.PLATFORMS_MAP.mobile,vendor:"Microsoft"}}},{test:function(e){var t=Number(String(e.getOSVersion()).split(".")[0]);return e.getOSName(!0)==="android"&&t>=3},describe:function(){return{type:l.PLATFORMS_MAP.tablet}}},{test:function(e){return e.getOSName(!0)==="android"},describe:function(){return{type:l.PLATFORMS_MAP.mobile}}},{test:function(e){return e.getOSName(!0)==="macos"},describe:function(){return{type:l.PLATFORMS_MAP.desktop,vendor:"Apple"}}},{test:function(e){return e.getOSName(!0)==="windows"},describe:function(){return{type:l.PLATFORMS_MAP.desktop}}},{test:function(e){return e.getOSName(!0)==="linux"},describe:function(){return{type:l.PLATFORMS_MAP.desktop}}},{test:function(e){return e.getOSName(!0)==="playstation 4"},describe:function(){return{type:l.PLATFORMS_MAP.tv}}},{test:function(e){return e.getOSName(!0)==="roku"},describe:function(){return{type:l.PLATFORMS_MAP.tv}}}];c.default=m,p.exports=c.default},95:function(p,c,i){"use strict";c.__esModule=!0,c.default=void 0;var s,n=(s=i(17))&&s.__esModule?s:{default:s},l=i(18),m=[{test:function(e){return e.getBrowserName(!0)==="microsoft edge"},describe:function(e){if(/\sedg\//i.test(e))return{name:l.ENGINE_MAP.Blink};var t=n.default.getFirstMatch(/edge\/(\d+(\.?_?\d+)+)/i,e);return{name:l.ENGINE_MAP.EdgeHTML,version:t}}},{test:[/trident/i],describe:function(e){var t={name:l.ENGINE_MAP.Trident},r=n.default.getFirstMatch(/trident\/(\d+(\.?_?\d+)+)/i,e);return r&&(t.version=r),t}},{test:function(e){return e.test(/presto/i)},describe:function(e){var t={name:l.ENGINE_MAP.Presto},r=n.default.getFirstMatch(/presto\/(\d+(\.?_?\d+)+)/i,e);return r&&(t.version=r),t}},{test:function(e){var t=e.test(/gecko/i),r=e.test(/like gecko/i);return t&&!r},describe:function(e){var t={name:l.ENGINE_MAP.Gecko},r=n.default.getFirstMatch(/gecko\/(\d+(\.?_?\d+)+)/i,e);return r&&(t.version=r),t}},{test:[/(apple)?webkit\/537\.36/i],describe:function(){return{name:l.ENGINE_MAP.Blink}}},{test:[/(apple)?webkit/i],describe:function(e){var t={name:l.ENGINE_MAP.WebKit},r=n.default.getFirstMatch(/webkit\/(\d+(\.?_?\d+)+)/i,e);return r&&(t.version=r),t}}];c.default=m,p.exports=c.default}})})});var W=class{json;options={spaceType:"space",spaceLength:4,spaceBase:0,maxLength:0,attrPosition:"alignFirstAttr",wrapAttrNumber:1,type:"html",formatting:"multiline",indent:!0,xmlDefaultTag:"span",noContentTags:["area","base","br","col","command","embed","hr","img","input","keygen","link","meta","param","source","track","wbr"],removeOptionalEndTags:!1,optionalEndTags:["colgroup","dd","dt","li","optgroup","option","p","rb","rt","rtc","rp","td","th","thead","tbody","tfoot","tr"]};constructor(c,i={}){this.json=c,Object.assign(this.options,i)}toString(){let c="",i=this.options.formatting==="inline";return Array.isArray(this.json)?this.json.forEach((s,n)=>{c+=`${n>0&&!i?`
`:""}${this._getSpacing(0)}${this._generate(0,s,i)}`}):c=`${this._getSpacing(0)}${this._generate(0,this.json,i)}`,c}_generate(c,i,s=!1){let n=!this.options.noContentTags.includes(i.tag.toLowerCase()),l=(!n||i.autoclose)&&this._modeXML()?"/":"",m=`<${i.tag}${this._generateAttrs(c,i,s||i.inline)}${l}>`;if(n&&!i.autoclose){let e=this._generateBody(c,i,s||i.inline);e&&this._hasMultiline()&&!(s||i.inline)&&(e=`${e}
-${this._getSpacing(c)}`),m+=e,(!this.options.removeOptionalEndTags||this._modeXML()||this.options.removeOptionalEndTags&&!this.options.optionalEndTags.includes(i.tag.toLowerCase()))&&(m+=`${i.tag}>`)}return m}_generateAttrs(c,i,s){let n="",l=i.attrs;if(l&&Object.keys(l).length){let m=Object.values(i.attrs).filter(g=>g!==void 0).length,e=(this.options.wrapAttrNumber??1){let h=l[g];if(h!==void 0){let v=`${g}${h!==null||h?`="${String(h).replace(/"/g,""e;")}"`:""}`,x="",M="",[R,V]=e.split(" ");switch(R){case"inline":if(!this.options.maxLength||(t.replace(/\n/g,"")+(r>1?" ":"")+v+(p===o.length-1?">":"")).length`)}return m}_generateAttrs(c,i,s){let n="",l=i.attrs;if(l&&Object.keys(l).length){let m=Object.values(i.attrs).filter(g=>g!==void 0).length,e=(this.options.wrapAttrNumber??1){let h=l[g];if(h!==void 0){let v=`${g}${h!==null||h?`="${String(h).replace(/"/g,""e;")}"`:""}`,x="",M="",[L,I]=e.split(" ");switch(L){case"inline":if(!this.options.maxLength||(t.replace(/\n/g,"")+(r>1?" ":"")+v+(f===o.length-1?">":"")).lengththis.options.maxLength){let r=e.split(" ");for(let g of r)(l+t+(t?" ":"")+g).length{class f{constructor(i){this.fb=i,this.data=Se,this.html="",this.selectionOverride=s=>`Selection (${s.size}${(s.options?.length??0)>0?": "+s.options.map(n=>n.label).join(", "):""}) `,this.ctrlForm=this.fb.group({json:new S(JSON.stringify(this.data,null,2)),label:new S,hint:new S,disabled:new S,readonly:new S,overlay:new S,minCharForSearch:new S,minCountForSearch:new S,displaySearchStatus:new S,placeholder:new S,multiple:new S,autoCreate:new S,resettable:new S,resetSelectedValue:new S,limitSelection:new S,hideSelectedItems:new S,resultMaxHeight:new S,listPosition:new S,infiniteScroll:new S,infiniteScrollDistance:new S,infiniteScrollThrottle:new S,styleMode:new S,noResultMessage:new S,maxResults:new S,maxResultsMessage:new S,grid:new S,selectionOverrideString:new S,selectionOverrideFunction:new S,selectionNoWrap:new S,showSelectAll:new S,removeAllText:new S,selectAllText:new S,template:new S,templateSelection:new S,noLabelTemplate:new S,guideLineName:new S,update:new S,open:new S,close:new S,focus:new S,blur:new S,search:new S,scroll:new S,removeOption:new S}),this.ctrlForm.valueChanges.subscribe(()=>{let s=this.ctrlForm.value;console.log(s)}),this.ctrlForm.valueChanges.subscribe(s=>this.codeGeneration()),this.ctrlForm.get("json")?.valueChanges.subscribe(s=>this.changeJson(s))}ngAfterContentInit(){this.codeGeneration()}getTemplate(i,s,n,l,m,e,t,r){switch(this.ctrlForm.value.template){case"ref":return this.ctrlForm.value.templateSelection==="option"?{template:i,optionSelection:e}:this.ctrlForm.value.templateSelection==="templateId"?{template:i,template2Selection:t,template3Selection:r}:i;case"option-group":return this.ctrlForm.value.templateSelection==="option"?{option:s,group:n,optionSelection:e}:this.ctrlForm.value.templateSelection==="templateId"?{option:s,group:n,template2Selection:t,template3Selection:r}:{option:s,group:n};case"templateId":return this.ctrlForm.value.templateSelection==="option"?{template1:l,template2:m,optionSelection:e}:this.ctrlForm.value.templateSelection==="templateId"?{template1:l,template2:m,template2Selection:t,template3Selection:r}:{template1:l,template2:m};default:if(this.ctrlForm.value.templateSelection==="option")return{optionSelection:e};if(this.ctrlForm.value.templateSelection==="templateId")return{template2Selection:t,template3Selection:r}}}getTemplateSelection(i){switch(this.ctrlForm.value.templateSelection){case"ref":return i}}_event(i,s){this.ctrlForm.value&&this.ctrlForm.value[i]&&console.log("Event",i,s)}codeGeneration(){let i=this.ctrlForm.value,s={tag:i.guideLineName?"ng-select2":"select2",attrs:{"[data]":"data"},body:[]},n=s.attrs,l=s.body;i.label&&l.push({tag:i.guideLineName?"ng-select2-label":"select2-label",body:i.label,inline:!0}),i.hint&&l.push({tag:i.guideLineName?"ng-select2-hint":"select2-hint",body:i.hint,inline:!0}),i.disabled&&(n.disabled=this._testBoolean(i.disabled)),i.readonly&&(n.readonly=this._testBoolean(i.readonly)),i.overlay&&(n.overlay=this._testBoolean(i.overlay)),i.minCharForSearch&&(n.minCharForSearch=i.minCharForSearch),i.minCountForSearch&&(n.minCountForSearch=i.minCountForSearch),i.displaySearchStatus&&(n.displaySearchStatus=i.displaySearchStatus),i.placeholder&&(n.placeholder=i.placeholder),i.search&&(n.customSearchEnabled=this._testBoolean(i.search)),i.multiple?n.multiple=this._testBoolean(i.multiple):(i.resettable&&(n.resettable=this._testBoolean(i.resettable)),i.resetSelectedValue&&(n.resetSelectedValue=i.resetSelectedValue)),i.autoCreate&&(n.autoCreate=this._testBoolean(i.autoCreate)),i.limitSelection&&(n.limitSelection=i.limitSelection),i.hideSelectedItems&&(n.hideSelectedItems=this._testBoolean(i.hideSelectedItems)),i.resultMaxHeight&&(n.resultMaxHeight=i.resultMaxHeight),i.listPosition&&(n.listPosition=i.listPosition),i.infiniteScroll&&(n.infiniteScroll=this._testBoolean(i.infiniteScroll)),i.infiniteScrollDistance&&(n.infiniteScrollDistance=i.infiniteScrollDistance),i.infiniteScrollThrottle&&(n.infiniteScrollThrottle=i.infiniteScrollThrottle),i.grid&&(n.grid=i.grid),i.styleMode&&(n.styleMode=i.styleMode),i.noResultMessage&&(n.noResultMessage=i.noResultMessage),i.maxResultsMessage&&(n.maxResultsMessage=i.maxResultsMessage),i.maxResults&&(n.maxResults=i.maxResults),i.noLabelTemplate&&(n.noLabelTemplate=this._testBoolean(i.noLabelTemplate)),i.noLabelTemplate&&(n.noLabelTemplate=this._testBoolean(i.noLabelTemplate)),i.selectionOverrideFunction?n["[selectionOverride]"]="selectionOverride":i.selectionOverrideString&&(n.selectionOverride=i.selectionOverrideString),i.selectionNoWrap&&(n.selectionNoWrap=this._testBoolean(i.selectionNoWrap)),i.showSelectAll&&(n.showSelectAll=this._testBoolean(i.showSelectAll),i.removeAllText&&(n.removeAllText=this._testBoolean(i.removeAllText)),i.removeAllText&&(n.selectAllText=this._testBoolean(i.selectAllText)));let m="",e="";switch(i.template){case"ref":n["[templates]"]="template",l.push({tag:"ng-template",attrs:{"#template":null,"let-data":"data"},body:`
+`+l:"")+(t||e)}}return n||i}_hasMultiline(){return this.options.formatting==="multiline"}_modeXML(){return this.options.type==="xml"}_getSpacing(c,i=0){return this.options.indent?(this.options.spaceType==="space"?" ":" ").repeat((c+ +this.options.spaceBase)*+this.options.spaceLength)+" ".repeat(i):""}};var ye=Ae(Me());function Ce(p,c){p&1&&(d(0,"div")(1,"label",108),u(2,"resetSelectedValue"),a(),d(3,"select",109)(4,"option",110),u(5,"undefined"),a(),d(6,"option",110),u(7,"null"),a(),d(8,"option",111),u(9,"hibiscus"),a(),d(10,"option",112),u(11,"marigold"),a(),d(12,"option",113),u(13,"sunflower"),a(),d(14,"option",114),u(15,"heliotrope"),a(),d(16,"option",115),u(17,"lily"),a(),d(18,"option",116),u(19,"petunia"),a()()()),p&2&&(_(4),R("value",void 0),_(2),R("value",null))}function Fe(p,c){p&1&&(d(0,"div")(1,"label",117),u(2,"hideSelectedItems"),a(),b(3,"input",118),a())}function Oe(p,c){p&1&&(d(0,"div")(1,"label",121),u(2,"selectAllText"),a(),b(3,"input",122),a(),d(4,"div")(5,"label",123),u(6,"removeAllText"),a(),b(7,"input",124),a())}function Te(p,c){if(p&1&&(d(0,"h5"),u(1),w(2,"transloco"),a(),d(3,"div")(4,"label",119),u(5,"showSelectAll"),a(),b(6,"input",120),a(),B(7,Oe,8,0)),p&2){let i=A();_(),y(E(2,2,"Select all")),_(6),k(i.ctrlForm.value!=null&&i.ctrlForm.value.showSelectAll?7:-1)}}function Pe(p,c){if(p&1&&(d(0,"strong"),u(1),a(),u(2,": ")),p&2){let i=A().data;_(),y(i==null?null:i.color)}}function Ne(p,c){if(p&1&&(B(0,Pe,3,1),u(1)),p&2){let i=c.data;k(i!=null&&i.color?0:-1),_(),C(" ",i==null?null:i.name," ")}}function Be(p,c){if(p&1&&(d(0,"em"),u(1),a()),p&2){let i=A().data;_(),y(i==null?null:i.color)}}function Re(p,c){if(p&1&&(B(0,Be,2,1,"em"),u(1)),p&2){let i=c.data;k(i!=null&&i.color?0:-1),_(),C(" #",i==null?null:i.name," ")}}function ke(p,c){if(p&1&&u(0),p&2){let i=c.data;C("Option: ",i==null?null:i.name,"")}}function Le(p,c){if(p&1&&u(0),p&2){let i=c.label;C("Group: ",i,"")}}function Ie(p,c){if(p&1&&u(0),p&2){let i=c.data;C("[",i==null?null:i.name,"]")}}function Ge(p,c){if(p&1&&u(0),p&2){let i=c.data;y(i==null?null:i.name)}}function Ve(p,c){if(p&1&&(u(0),d(1,"strong"),u(2),a()),p&2){let i=c.label,s=c.data;C(" ",i," ~ "),_(2),y(s==null?null:s.color)}}function $e(p,c){if(p&1&&(u(0),d(1,"em"),u(2),a()),p&2){let i=c.label,s=c.data;C(" ",i," * "),_(2),y(s==null?null:s.color)}}function We(p,c){if(p&1&&(u(0),d(1,"em"),u(2),a()),p&2){let i=c.label,s=c.data;C(" ",i," = "),_(2),y(s==null?null:s.color)}}function je(p,c){if(p&1){let i=X();ee(0),d(1,"select2",125),Y("update",function(n){P(i);let l=A();return N(l._event("update",n))})("open",function(n){P(i);let l=A();return N(l._event("open",n))})("close",function(n){P(i);let l=A();return N(l._event("close",n))})("focus",function(n){P(i);let l=A();return N(l._event("focus",n))})("blur",function(n){P(i);let l=A();return N(l._event("blur",n))})("search",function(n){P(i);let l=A();return N(l._event("search",n))})("scroll",function(n){P(i);let l=A();return N(l._event("scroll",n))})("removeOption",function(n){P(i);let l=A();return N(l._event("removeOption",n))}),b(2,"select2-label",126)(3,"select2-hint",126),B(4,Ne,2,2,"ng-template",null,0,O)(6,Re,2,2,"ng-template",null,1,O)(8,ke,1,1,"ng-template",null,2,O)(10,Le,1,1,"ng-template",null,3,O)(12,Ie,1,1,"ng-template",null,4,O)(14,Ge,1,1,"ng-template",null,5,O)(16,Ve,3,2,"ng-template",null,6,O)(18,$e,3,2,"ng-template",null,7,O)(20,We,3,2,"ng-template",null,8,O),a()}if(p&2){let i=F(5),s=F(7),n=F(9),l=F(11),m=F(13),e=F(15),t=F(17),r=F(19),g=F(21),f=A(),o=f.ctrlForm.value;_(),R("data",f.data)("overlay",o==null?null:o.overlay)("disabled",o==null?null:o.disabled)("readonly",o==null?null:o.readonly)("minCharForSearch",(o==null?null:o.minCharForSearch)||0)("minCountForSearch",o==null?null:o.minCountForSearch)("displaySearchStatus",o==null?null:o.displaySearchStatus)("placeholder",o==null?null:o.placeholder)("customSearchEnabled",o==null?null:o.search)("multiple",o==null?null:o.multiple)("resettable",o==null?null:o.resettable)("resetSelectedValue",o==null?null:o.resetSelectedValue)("autoCreate",o==null?null:o.autoCreate)("limitSelection",(o==null?null:o.limitSelection)||0)("hideSelectedItems",o==null?null:o.hideSelectedItems)("resultMaxHeight",(o==null?null:o.resultMaxHeight)||"200px")("maxResults",(o==null?null:o.maxResults)||0)("maxResultsMessage",(o==null?null:o.maxResultsMessage)||"Too many results\u2026")("listPosition",o==null?null:o.listPosition)("infiniteScroll",o==null?null:o.infiniteScroll)("infiniteScrollDistance",(o==null?null:o.infiniteScrollDistance)||1.5)("infiniteScrollThrottle",(o==null?null:o.infiniteScrollThrottle)||150)("styleMode",o==null?null:o.styleMode)("noResultMessage",o==null?null:o.noResultMessage)("grid",o==null?null:o.grid)("noLabelTemplate",o==null?null:o.noLabelTemplate)("selectionOverride",o!=null&&o.selectionOverrideFunction?f.selectionOverride:o==null?null:o.selectionOverrideString)("selectionNoWrap",o==null?null:o.selectionNoWrap)("showSelectAll",o==null?null:o.showSelectAll)("removeAllText",(o==null?null:o.removeAllText)||"Remove all")("selectAllText",(o==null?null:o.selectAllText)||"Select all")("templates",f.getTemplate(i,n,l,e,t,m,r,g))("templateSelection",f.getTemplateSelection(s)),_(),R("innerHTML",f.ctrlForm.value==null?null:f.ctrlForm.value.label,$),_(),R("innerHTML",f.ctrlForm.value==null?null:f.ctrlForm.value.hint,$)}}var tt=(()=>{class p{constructor(i){this.fb=i,this.data=Se,this.html="",this.selectionOverride=s=>`Selection (${s.size}${(s.options?.length??0)>0?": "+s.options.map(n=>n.label).join(", "):""}) `,this.ctrlForm=this.fb.group({json:new S(JSON.stringify(this.data,null,2)),label:new S,hint:new S,disabled:new S,readonly:new S,overlay:new S,minCharForSearch:new S,minCountForSearch:new S,displaySearchStatus:new S,placeholder:new S,multiple:new S,autoCreate:new S,resettable:new S,resetSelectedValue:new S,limitSelection:new S,hideSelectedItems:new S,resultMaxHeight:new S,listPosition:new S,infiniteScroll:new S,infiniteScrollDistance:new S,infiniteScrollThrottle:new S,styleMode:new S,noResultMessage:new S,maxResults:new S,maxResultsMessage:new S,grid:new S,selectionOverrideString:new S,selectionOverrideFunction:new S,selectionNoWrap:new S,showSelectAll:new S,removeAllText:new S,selectAllText:new S,template:new S,templateSelection:new S,noLabelTemplate:new S,guideLineName:new S,update:new S,open:new S,close:new S,focus:new S,blur:new S,search:new S,scroll:new S,removeOption:new S}),this.ctrlForm.valueChanges.subscribe(()=>{let s=this.ctrlForm.value;console.log(s)}),this.ctrlForm.valueChanges.subscribe(s=>this.codeGeneration()),this.ctrlForm.get("json")?.valueChanges.subscribe(s=>this.changeJson(s))}ngAfterContentInit(){this.codeGeneration()}getTemplate(i,s,n,l,m,e,t,r){switch(this.ctrlForm.value.template){case"ref":return this.ctrlForm.value.templateSelection==="option"?{template:i,optionSelection:e}:this.ctrlForm.value.templateSelection==="templateId"?{template:i,template2Selection:t,template3Selection:r}:i;case"option-group":return this.ctrlForm.value.templateSelection==="option"?{option:s,group:n,optionSelection:e}:this.ctrlForm.value.templateSelection==="templateId"?{option:s,group:n,template2Selection:t,template3Selection:r}:{option:s,group:n};case"templateId":return this.ctrlForm.value.templateSelection==="option"?{template1:l,template2:m,optionSelection:e}:this.ctrlForm.value.templateSelection==="templateId"?{template1:l,template2:m,template2Selection:t,template3Selection:r}:{template1:l,template2:m};default:if(this.ctrlForm.value.templateSelection==="option")return{optionSelection:e};if(this.ctrlForm.value.templateSelection==="templateId")return{template2Selection:t,template3Selection:r}}}getTemplateSelection(i){switch(this.ctrlForm.value.templateSelection){case"ref":return i}}_event(i,s){this.ctrlForm.value&&this.ctrlForm.value[i]&&console.log("Event",i,s)}codeGeneration(){let i=this.ctrlForm.value,s={tag:i.guideLineName?"ng-select2":"select2",attrs:{"[data]":"data"},body:[]},n=s.attrs,l=s.body;i.label&&l.push({tag:i.guideLineName?"ng-select2-label":"select2-label",body:i.label,inline:!0}),i.hint&&l.push({tag:i.guideLineName?"ng-select2-hint":"select2-hint",body:i.hint,inline:!0}),i.disabled&&(n.disabled=this._testBoolean(i.disabled)),i.readonly&&(n.readonly=this._testBoolean(i.readonly)),i.overlay&&(n.overlay=this._testBoolean(i.overlay)),i.minCharForSearch&&(n.minCharForSearch=i.minCharForSearch),i.minCountForSearch&&(n.minCountForSearch=i.minCountForSearch),i.displaySearchStatus&&(n.displaySearchStatus=i.displaySearchStatus),i.placeholder&&(n.placeholder=i.placeholder),i.search&&(n.customSearchEnabled=this._testBoolean(i.search)),i.multiple?n.multiple=this._testBoolean(i.multiple):(i.resettable&&(n.resettable=this._testBoolean(i.resettable)),i.resetSelectedValue&&(n.resetSelectedValue=i.resetSelectedValue)),i.autoCreate&&(n.autoCreate=this._testBoolean(i.autoCreate)),i.limitSelection&&(n.limitSelection=i.limitSelection),i.hideSelectedItems&&(n.hideSelectedItems=this._testBoolean(i.hideSelectedItems)),i.resultMaxHeight&&(n.resultMaxHeight=i.resultMaxHeight),i.listPosition&&(n.listPosition=i.listPosition),i.infiniteScroll&&(n.infiniteScroll=this._testBoolean(i.infiniteScroll)),i.infiniteScrollDistance&&(n.infiniteScrollDistance=i.infiniteScrollDistance),i.infiniteScrollThrottle&&(n.infiniteScrollThrottle=i.infiniteScrollThrottle),i.grid&&(n.grid=i.grid),i.styleMode&&(n.styleMode=i.styleMode),i.noResultMessage&&(n.noResultMessage=i.noResultMessage),i.maxResultsMessage&&(n.maxResultsMessage=i.maxResultsMessage),i.maxResults&&(n.maxResults=i.maxResults),i.noLabelTemplate&&(n.noLabelTemplate=this._testBoolean(i.noLabelTemplate)),i.noLabelTemplate&&(n.noLabelTemplate=this._testBoolean(i.noLabelTemplate)),i.selectionOverrideFunction?n["[selectionOverride]"]="selectionOverride":i.selectionOverrideString&&(n.selectionOverride=i.selectionOverrideString),i.selectionNoWrap&&(n.selectionNoWrap=this._testBoolean(i.selectionNoWrap)),i.showSelectAll&&(n.showSelectAll=this._testBoolean(i.showSelectAll),i.removeAllText&&(n.removeAllText=this._testBoolean(i.removeAllText)),i.removeAllText&&(n.selectAllText=this._testBoolean(i.selectAllText)));let m="",e="";switch(i.template){case"ref":n["[templates]"]="template",l.push({tag:"ng-template",attrs:{"#template":null,"let-data":"data"},body:`
@if (data?.color) {
{{ data?.color }}:
}
@@ -20,6 +20,6 @@ ${this._getSpacing(c+1)}`),!s&&this._modeXML()&&typeof i=="string"&&(i={tag:this
@if (data?.color) {
{{ data?.color }}
}
- #{{ data?.name }}`});break;case"option":e+="optionSelection : optionSelection",l.push({tag:"ng-template",attrs:{"#optionSelection":null,"let-data":"data"},body:"[{{ data?.name }}]"});break;case"templateId":e+="template2Selection : template2Selection, template3Selection: template3Selection",l.push({tag:"ng-template",attrs:{"#template2Selection":null,"let-data":"data"},body:"{{ label }} * {{ data?.color }}"},{tag:"ng-template",attrs:{"#template3Selection":null,"let-data":"data"},body:"{{ label }} = {{ data?.color }}"});break}n["[templates]"]&&e?n["[templates]"]=`{template: template, ${e}}`:e&&m?n["[templates]"]=`{${m}, ${e}}`:m?n["[templates]"]=`{${m}}`:e&&(n["[templates]"]=`{${e}}`),i.update&&(n["(update)"]="_update($event)"),i.open&&(n["(open)"]="_open($event)"),i.close&&(n["(close)"]="_close($event)"),i.focus&&(n["(focus)"]="_focus($event)"),i.blur&&(n["(blur)"]="_blur($event)"),i.search&&(n["(search)"]="_search($event)"),this.html=new j(s).toString()}changeJson(i){this.jsonError="";try{this.data=JSON.parse(i)}catch(s){this.jsonError=this._parseJsonError(i,s)}}_parseJsonError(i,s){let n="",l=s.message.match(/[^\n]+/)[0],m=ye.getParser(window.navigator.userAgent).getResult();if(m.browser.name==="Chrome")if(l.match(/at position/)){let e=parseInt(l.match(/at position (\d+)/)[1],10),t=i.split(/\n/),r=1;for(let g of t)if(g){if(r+g.length>=e){n=l+"