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+=``)}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+"
"+g+`
+        #{{ 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 W(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+"
"+g+`
 `+" ".repeat(e-r+1)+"^
";break}r+=g.length+1}}else n=l;else if(m.browser.name==="Firefox")if(l.match(/at line/)){let[,e,t]=l.match(/at line (\d+) column (\d+)/),r=i.split(/\n/);r[+e-1]?n=l+"
"+r[+e-1]+`
-`+" ".repeat(+t-1)+"^
":n=l}else n=l;else n=l;return n}_testBoolean(i){return i?null:void 0}static{this.\u0275fac=function(s){return new(s||f)(J(me))}}static{this.\u0275cmp=K({type:f,selectors:[["app-gen"]],decls:273,vars:60,consts:[["template",""],["templateSelection",""],["option",""],["group",""],["optionSelection",""],["template1",""],["template2",""],["template2Selection",""],["template3Selection",""],[1,"cols"],[3,"formGroup"],["for","json"],["formControlName","json","id","json"],[1,"error",3,"innerHTML"],["for","label"],["type","text","formControlName","label","id","label"],["for","hint"],["type","text","formControlName","hint","id","hint"],["for","disabled"],["type","checkbox","formControlName","disabled","id","disabled"],["for","readonly"],["type","checkbox","formControlName","readonly","id","readonly"],["for","overlay"],["type","checkbox","formControlName","overlay","id","overlay"],["for","minCharForSearch"],["type","number","formControlName","minCharForSearch","id","minCharForSearch","min","0"],["for","minCountForSearch"],["type","number","formControlName","minCountForSearch","id","minCountForSearch","min","0"],["for","displaySearchStatus"],["formControlName","displaySearchStatus","id","displaySearchStatus"],["value","default"],["value","hidden"],["value","always"],["for","placeholder"],["type","text","formControlName","placeholder","id","placeholder"],["for","noResultMessage"],["type","text","formControlName","noResultMessage","id","noResultMessage"],["for","multiple"],["type","checkbox","formControlName","multiple","id","multiple"],["for","resettable"],["type","checkbox","formControlName","resettable","id","resettable"],["for","resetSelectedValue"],["formControlName","resetSelectedValue","id","resetSelectedValue"],[3,"value"],["value","hibiscus"],["value","marigold"],["value","sunflower"],["value","heliotrope"],["value","lily"],["value","petunia"],["for","autoCreate"],["type","checkbox","formControlName","autoCreate","id","autoCreate"],["for","limitSelection"],["type","number","formControlName","limitSelection","id","limitSelection"],["for","grid"],["type","string","formControlName","grid","id","grid"],["for","hideSelectedItems"],["type","checkbox","formControlName","hideSelectedItems","id","hideSelectedItems"],["for","resultMaxHeight"],["type","text","formControlName","resultMaxHeight","id","resultMaxHeight"],["for","maxResults"],["type","text","formControlName","maxResults","id","maxResults"],["for","maxResultsMessage"],["type","text","formControlName","maxResultsMessage","id","maxResultsMessage"],["for","listPosition"],["formControlName","listPosition","id","listPosition"],["value","below"],["value","above"],["for","infiniteScroll"],["type","checkbox","formControlName","infiniteScroll","id","infiniteScroll"],["for","infiniteScrollDistance"],["type","number","formControlName","infiniteScrollDistance","id","infiniteScrollDistance"],["for","infiniteScrollThrottle"],["type","number","formControlName","infiniteScrollThrottle","id","infiniteScrollThrottle"],["for","styleMode"],["formControlName","styleMode","id","listPstyleModeosition"],["value",""],["value","material"],["value","noStyle"],["value","borderless"],["for","selectionOverrideFunction"],["type","checkbox","formControlName","selectionOverrideFunction","id","selectionOverrideFunction"],["for","selectionOverrideString"],["type","text","formControlName","selectionOverrideString","id","selectionOverrideString"],["for","selectionNoWrap"],["type","checkbox","formControlName","selectionNoWrap","id","selectionNoWrap"],["for","template"],["formControlName","template","id","template"],["value","none"],["value","ref"],["value","option-group"],["value","templateId"],["for","templateSelection"],["formControlName","templateSelection","id","templateSelection"],["value","option"],["for","noLabelTemplate"],["type","checkbox","formControlName","noLabelTemplate","id","noLabelTemplate"],["for","guideLineName"],["type","checkbox","formControlName","guideLineName","id","guideLineName"],["for","update"],["type","checkbox","formControlName","update","id","update"],["for","open"],["type","checkbox","formControlName","open","id","open"],["for","close"],["type","checkbox","formControlName","close","id","close"],["for","focus"],["type","checkbox","formControlName","focus","id","focus"],["for","blur"],["type","checkbox","formControlName","blur","id","blur"],["for","search"],["type","checkbox","formControlName","search","id","search"],["for","scroll"],["type","checkbox","formControlName","scroll","id","scroll"],["for","removeOption"],["type","checkbox","formControlName","removeOption","id","removeOption"],[1,"result"],[3,"data","overlay","disabled","readonly","minCharForSearch","minCountForSearch","displaySearchStatus","placeholder","customSearchEnabled","multiple","resettable","resetSelectedValue","autoCreate","limitSelection","hideSelectedItems","resultMaxHeight","maxResults","maxResultsMessage","listPosition","infiniteScroll","infiniteScrollDistance","infiniteScrollThrottle","styleMode","noResultMessage","grid","noLabelTemplate","selectionOverride","selectionNoWrap","showSelectAll","removeAllText","selectAllText","templates","templateSelection"],[1,"code"],["language","html",3,"highlight"],["for","showSelectAll"],["type","checkbox","formControlName","showSelectAll","id","showSelectAll"],["for","selectAllText"],["type","text","formControlName","selectAllText","id","selectAllText"],["for","removeAllText"],["type","text","formControlName","removeAllText","id","removeAllText"],[3,"update","open","close","focus","blur","search","scroll","removeOption","data","overlay","disabled","readonly","minCharForSearch","minCountForSearch","displaySearchStatus","placeholder","customSearchEnabled","multiple","resettable","resetSelectedValue","autoCreate","limitSelection","hideSelectedItems","resultMaxHeight","maxResults","maxResultsMessage","listPosition","infiniteScroll","infiniteScrollDistance","infiniteScrollThrottle","styleMode","noResultMessage","grid","noLabelTemplate","selectionOverride","selectionNoWrap","showSelectAll","removeAllText","selectAllText","templates","templateSelection"],[3,"innerHTML"]],template:function(s,n){if(s&1&&(d(0,"h2"),u(1,"Generator"),a(),d(2,"div",9)(3,"div",10)(4,"h4"),u(5),w(6,"transloco"),a(),d(7,"div")(8,"label",11),u(9,"json (for "),d(10,"code"),u(11,"[data]"),a(),u(12,")"),a(),b(13,"textarea",12)(14,"div",13),a(),d(15,"h4"),u(16),w(17,"transloco"),a(),d(18,"div")(19,"label",14),u(20,"label"),a(),b(21,"input",15),a(),d(22,"div")(23,"label",16),u(24,"hint"),a(),b(25,"input",17),a(),d(26,"h4"),u(27),w(28,"transloco"),a(),d(29,"div")(30,"label",18),u(31,"disabled"),a(),b(32,"input",19),a(),d(33,"div")(34,"label",20),u(35,"readonly"),a(),b(36,"input",21),a(),d(37,"div")(38,"label",22),u(39,"overlay"),a(),b(40,"input",23),a(),d(41,"div")(42,"label",24),u(43,"minCharForSearch (0)"),a(),b(44,"input",25),a(),d(45,"div")(46,"label",26),u(47,"minCountForSearch (6)"),a(),b(48,"input",27),a(),d(49,"div")(50,"label",28),u(51,"displaySearchStatus :"),a(),d(52,"select",29)(53,"option",30),u(54,"default"),a(),d(55,"option",31),u(56,"hidden"),a(),d(57,"option",32),u(58,"always"),a()()(),d(59,"div")(60,"label",33),u(61,"placeholder"),a(),b(62,"input",34),a(),d(63,"div")(64,"label",35),u(65,"noResultMessage"),a(),b(66,"input",36),a(),d(67,"div")(68,"label",37),u(69,"multiple"),a(),b(70,"input",38),a(),d(71,"div")(72,"label",39),u(73,"resettable"),a(),b(74,"input",40),a(),d(75,"div")(76,"label",41),u(77,"resetSelectedValue"),a(),d(78,"select",42)(79,"option",43),u(80,"undefined"),a(),d(81,"option",43),u(82,"null"),a(),d(83,"option",44),u(84,"hibiscus"),a(),d(85,"option",45),u(86,"marigold"),a(),d(87,"option",46),u(88,"sunflower"),a(),d(89,"option",47),u(90,"heliotrope"),a(),d(91,"option",48),u(92,"lily"),a(),d(93,"option",49),u(94,"petunia"),a()()(),d(95,"div")(96,"label",50),u(97,"autoCreate"),a(),b(98,"input",51),a(),d(99,"div")(100,"label",52),u(101,"limitSelection (0)"),a(),b(102,"input",53),a(),d(103,"div")(104,"label",54),u(105),w(106,"transloco"),a(),b(107,"input",55),a(),d(108,"div")(109,"label",56),u(110,"hideSelectedItems"),a(),b(111,"input",57),a(),d(112,"div")(113,"label",58),u(114,"resultMaxHeight ('200px')"),a(),b(115,"input",59),a(),d(116,"div")(117,"label",60),u(118),w(119,"transloco"),a(),b(120,"input",61),a(),d(121,"div")(122,"label",62),u(123,"maxResultsMessage ('Too much result...')"),a(),b(124,"input",63),a(),d(125,"div")(126,"label",64),u(127,"listPosition :"),a(),d(128,"select",65),b(129,"option"),d(130,"option",66),u(131,"below"),a(),d(132,"option",67),u(133,"above"),a()()(),d(134,"div")(135,"label",68),u(136,"infiniteScroll"),a(),b(137,"input",69),a(),d(138,"div")(139,"label",70),u(140,"infiniteScrollDistance (1.5)"),a(),b(141,"input",71),a(),d(142,"div")(143,"label",72),u(144,"infiniteScrollThrottle (150)"),a(),b(145,"input",73),a(),d(146,"div")(147,"label",74),u(148,"styleMode"),a(),d(149,"select",75)(150,"option",76),u(151,"default"),a(),d(152,"option",77),u(153,"material"),a(),d(154,"option",78),u(155,"noStyle"),a(),d(156,"option",79),u(157,"borderless"),a()()(),d(158,"h5"),u(159),w(160,"transloco"),a(),d(161,"div"),u(162,"selectionOverride"),a(),d(163,"div")(164,"label",80),u(165," - function"),a(),b(166,"input",81),a(),d(167,"div")(168,"label",82),u(169," - string: "),b(170,"br"),d(171,"small")(172,"code"),u(173,"%size%"),a(),u(174),w(175,"transloco"),a()(),b(176,"input",83),a(),d(177,"div")(178,"label",84),u(179,"selectionOverride"),a(),b(180,"input",85),a(),k(181,Fe,8,4),d(182,"h5"),u(183),w(184,"transloco"),a(),d(185,"div")(186,"label",86),u(187,"template style"),a(),d(188,"select",87)(189,"option",88),u(190,"None"),a(),d(191,"option",89),u(192,"Unique template"),a(),d(193,"option",90),u(194,"Template group & option"),a(),d(195,"option",91),u(196,"Template by templateId"),a()()(),d(197,"div")(198,"label",92),u(199,"template selection style"),a(),d(200,"select",93)(201,"option",88),u(202,"None"),a(),d(203,"option",89),u(204,"Unique template"),a(),d(205,"option",94),u(206,"Template option"),a(),d(207,"option",91),u(208,"Template by templateId"),a()()(),d(209,"div")(210,"label",95),u(211,"noLabelTemplate"),a(),b(212,"input",96),a(),d(213,"h5"),u(214),w(215,"transloco"),a(),d(216,"div")(217,"label",97),u(218),w(219,"transloco"),a(),b(220,"input",98),a(),d(221,"h4"),u(222),w(223,"transloco"),a(),d(224,"div")(225,"label",99),u(226,"update"),a(),b(227,"input",100),a(),d(228,"div")(229,"label",101),u(230,"open"),a(),b(231,"input",102),a(),d(232,"div")(233,"label",103),u(234,"close"),a(),b(235,"input",104),a(),d(236,"div")(237,"label",105),u(238,"focus"),a(),b(239,"input",106),a(),d(240,"div")(241,"label",107),u(242,"blur"),a(),b(243,"input",108),a(),d(244,"div")(245,"label",109),u(246,"search"),a(),b(247,"input",110),u(248),w(249,"transloco"),d(250,"code"),u(251,"customSearchEnabled"),a(),u(252,") "),a(),d(253,"div")(254,"label",111),u(255,"scroll"),a(),b(256,"input",112),a(),d(257,"div")(258,"label",113),u(259,"removeOption"),a(),b(260,"input",114),a()(),d(261,"div")(262,"div",115)(263,"h4"),u(264),w(265,"transloco"),a(),k(266,$e,22,35,"select2",116),d(267,"h4"),u(268),w(269,"transloco"),a(),d(270,"div",117)(271,"code"),b(272,"pre",118),a()()()()()),s&2){let l;_(3),B("formGroup",n.ctrlForm),_(2),y(E(6,32,"Data")),_(9),B("innerHTML",n.jsonError,W),_(2),y(E(17,34,"Tags")),_(11),y(E(28,36,"Parameters")),_(44),L("hide",(l=n.ctrlForm.value==null?null:n.ctrlForm.value.multiple)!==null&&l!==void 0?l:!1),_(4),L("hide",n.ctrlForm.value==null?null:n.ctrlForm.value.multiple),_(4),B("value",void 0),_(2),B("value",null),_(24),C("grid (",E(106,38,"4 or '100px'"),")"),_(3),L("hide",!(n.ctrlForm.value!=null&&n.ctrlForm.value.multiple)),_(10),C("maxResults (",E(119,40,"0 = infinity"),")"),_(20),L("hide",!(n.ctrlForm.value!=null&&n.ctrlForm.value.infiniteScrollDistance)),_(4),L("hide",!(n.ctrlForm.value!=null&&n.ctrlForm.value.infiniteScroll)),_(17),y(E(160,42,"Selection")),_(15),C(" = ",E(175,44,"selected item count")," "),_(2),Z("disabled",(n.ctrlForm.value==null?null:n.ctrlForm.value.selectionOverrideFunction)===!0?"disabled":null),_(5),I(n.ctrlForm.value!=null&&n.ctrlForm.value.multiple?181:-1),_(2),y(E(184,46,"Templates")),_(31),y(E(215,48,"HTML standard")),_(4),y(E(219,50,"Web Component guide line name")),_(4),y(E(223,52,"Events")),_(26),C(" (",E(249,54,"Required:"),""),_(16),y(E(265,56,"HTML render")),_(2),I(n.ctrlForm.value?266:-1),_(2),y(E(269,58,"HTML Code")),_(4),B("highlight",n.html)}},dependencies:[pe,ce,ue,ne,le,te,se,ie,re,de,fe,oe,ae,xe,_e,be,he,ve,ge],styles:["label[_ngcontent-%COMP%]{display:inline-block;width:250px}.cols[_ngcontent-%COMP%]{display:flex;max-width:100%}.cols[_ngcontent-%COMP%] > *[_ngcontent-%COMP%]{flex:1 0 50%;max-width:50%}.code[_ngcontent-%COMP%]{overflow:auto}.error[_ngcontent-%COMP%]{color:red}textarea#json[_ngcontent-%COMP%]{box-sizing:border-box;width:calc(100% - 15px);height:200px;resize:vertical}.hide[_ngcontent-%COMP%]{display:none}.result[_ngcontent-%COMP%]{position:sticky;top:90px}"]})}}return f})();export{Ye as a}; +`+" ".repeat(+t-1)+"^
":n=l}else n=l;else n=l;return n}_testBoolean(i){return i?null:void 0}static{this.\u0275fac=function(s){return new(s||p)(J(me))}}static{this.\u0275cmp=K({type:p,selectors:[["app-gen"]],decls:251,vars:54,consts:[["template",""],["templateSelection",""],["option",""],["group",""],["optionSelection",""],["template1",""],["template2",""],["template2Selection",""],["template3Selection",""],[1,"cols"],[3,"formGroup"],["for","json"],["formControlName","json","id","json"],[1,"error",3,"innerHTML"],["for","label"],["type","text","formControlName","label","id","label"],["for","hint"],["type","text","formControlName","hint","id","hint"],["for","disabled"],["type","checkbox","formControlName","disabled","id","disabled"],["for","readonly"],["type","checkbox","formControlName","readonly","id","readonly"],["for","overlay"],["type","checkbox","formControlName","overlay","id","overlay"],["for","minCharForSearch"],["type","number","formControlName","minCharForSearch","id","minCharForSearch","min","0"],["for","minCountForSearch"],["type","number","formControlName","minCountForSearch","id","minCountForSearch","min","0"],["for","displaySearchStatus"],["formControlName","displaySearchStatus","id","displaySearchStatus"],["value","default"],["value","hidden"],["value","always"],["for","placeholder"],["type","text","formControlName","placeholder","id","placeholder"],["for","noResultMessage"],["type","text","formControlName","noResultMessage","id","noResultMessage"],["for","multiple"],["type","checkbox","formControlName","multiple","id","multiple"],["for","resettable"],["type","checkbox","formControlName","resettable","id","resettable"],["for","autoCreate"],["type","checkbox","formControlName","autoCreate","id","autoCreate"],["for","limitSelection"],["type","number","formControlName","limitSelection","id","limitSelection"],["for","grid"],["type","string","formControlName","grid","id","grid"],["for","resultMaxHeight"],["type","text","formControlName","resultMaxHeight","id","resultMaxHeight"],["for","maxResults"],["type","text","formControlName","maxResults","id","maxResults"],["for","maxResultsMessage"],["type","text","formControlName","maxResultsMessage","id","maxResultsMessage"],["for","listPosition"],["formControlName","listPosition","id","listPosition"],["value","below"],["value","above"],["for","infiniteScroll"],["type","checkbox","formControlName","infiniteScroll","id","infiniteScroll"],["for","infiniteScrollDistance"],["type","number","formControlName","infiniteScrollDistance","id","infiniteScrollDistance"],["for","infiniteScrollThrottle"],["type","number","formControlName","infiniteScrollThrottle","id","infiniteScrollThrottle"],["for","styleMode"],["formControlName","styleMode","id","listPstyleModeosition"],["value",""],["value","material"],["value","noStyle"],["value","borderless"],["for","selectionOverrideFunction"],["type","checkbox","formControlName","selectionOverrideFunction","id","selectionOverrideFunction"],["for","selectionOverrideString"],["type","text","formControlName","selectionOverrideString","id","selectionOverrideString"],["for","selectionNoWrap"],["type","checkbox","formControlName","selectionNoWrap","id","selectionNoWrap"],["for","template"],["formControlName","template","id","template"],["value","none"],["value","ref"],["value","option-group"],["value","templateId"],["for","templateSelection"],["formControlName","templateSelection","id","templateSelection"],["value","option"],["for","noLabelTemplate"],["type","checkbox","formControlName","noLabelTemplate","id","noLabelTemplate"],["for","guideLineName"],["type","checkbox","formControlName","guideLineName","id","guideLineName"],["for","update"],["type","checkbox","formControlName","update","id","update"],["for","open"],["type","checkbox","formControlName","open","id","open"],["for","close"],["type","checkbox","formControlName","close","id","close"],["for","focus"],["type","checkbox","formControlName","focus","id","focus"],["for","blur"],["type","checkbox","formControlName","blur","id","blur"],["for","search"],["type","checkbox","formControlName","search","id","search"],["for","scroll"],["type","checkbox","formControlName","scroll","id","scroll"],["for","removeOption"],["type","checkbox","formControlName","removeOption","id","removeOption"],[1,"result"],[3,"data","overlay","disabled","readonly","minCharForSearch","minCountForSearch","displaySearchStatus","placeholder","customSearchEnabled","multiple","resettable","resetSelectedValue","autoCreate","limitSelection","hideSelectedItems","resultMaxHeight","maxResults","maxResultsMessage","listPosition","infiniteScroll","infiniteScrollDistance","infiniteScrollThrottle","styleMode","noResultMessage","grid","noLabelTemplate","selectionOverride","selectionNoWrap","showSelectAll","removeAllText","selectAllText","templates","templateSelection"],[1,"code"],["language","html",3,"highlight"],["for","resetSelectedValue"],["formControlName","resetSelectedValue","id","resetSelectedValue"],[3,"value"],["value","hibiscus"],["value","marigold"],["value","sunflower"],["value","heliotrope"],["value","lily"],["value","petunia"],["for","hideSelectedItems"],["type","checkbox","formControlName","hideSelectedItems","id","hideSelectedItems"],["for","showSelectAll"],["type","checkbox","formControlName","showSelectAll","id","showSelectAll"],["for","selectAllText"],["type","text","formControlName","selectAllText","id","selectAllText"],["for","removeAllText"],["type","text","formControlName","removeAllText","id","removeAllText"],[3,"update","open","close","focus","blur","search","scroll","removeOption","data","overlay","disabled","readonly","minCharForSearch","minCountForSearch","displaySearchStatus","placeholder","customSearchEnabled","multiple","resettable","resetSelectedValue","autoCreate","limitSelection","hideSelectedItems","resultMaxHeight","maxResults","maxResultsMessage","listPosition","infiniteScroll","infiniteScrollDistance","infiniteScrollThrottle","styleMode","noResultMessage","grid","noLabelTemplate","selectionOverride","selectionNoWrap","showSelectAll","removeAllText","selectAllText","templates","templateSelection"],[3,"innerHTML"]],template:function(s,n){s&1&&(d(0,"h2"),u(1,"Generator"),a(),d(2,"div",9)(3,"div",10)(4,"h4"),u(5),w(6,"transloco"),a(),d(7,"div")(8,"label",11),u(9,"json (for "),d(10,"code"),u(11,"[data]"),a(),u(12,")"),a(),b(13,"textarea",12)(14,"div",13),a(),d(15,"h4"),u(16),w(17,"transloco"),a(),d(18,"div")(19,"label",14),u(20,"label"),a(),b(21,"input",15),a(),d(22,"div")(23,"label",16),u(24,"hint"),a(),b(25,"input",17),a(),d(26,"h4"),u(27),w(28,"transloco"),a(),d(29,"div")(30,"label",18),u(31,"disabled"),a(),b(32,"input",19),a(),d(33,"div")(34,"label",20),u(35,"readonly"),a(),b(36,"input",21),a(),d(37,"div")(38,"label",22),u(39,"overlay"),a(),b(40,"input",23),a(),d(41,"div")(42,"label",24),u(43,"minCharForSearch (0)"),a(),b(44,"input",25),a(),d(45,"div")(46,"label",26),u(47,"minCountForSearch (6)"),a(),b(48,"input",27),a(),d(49,"div")(50,"label",28),u(51,"displaySearchStatus :"),a(),d(52,"select",29)(53,"option",30),u(54,"default"),a(),d(55,"option",31),u(56,"hidden"),a(),d(57,"option",32),u(58,"always"),a()()(),d(59,"div")(60,"label",33),u(61,"placeholder"),a(),b(62,"input",34),a(),d(63,"div")(64,"label",35),u(65,"noResultMessage"),a(),b(66,"input",36),a(),d(67,"div")(68,"label",37),u(69,"multiple"),a(),b(70,"input",38),a(),d(71,"div")(72,"label",39),u(73,"resettable"),a(),b(74,"input",40),a(),B(75,Ce,20,2,"div"),d(76,"div")(77,"label",41),u(78,"autoCreate"),a(),b(79,"input",42),a(),d(80,"div")(81,"label",43),u(82,"limitSelection (0)"),a(),b(83,"input",44),a(),d(84,"div")(85,"label",45),u(86),w(87,"transloco"),a(),b(88,"input",46),a(),B(89,Fe,4,0,"div"),d(90,"div")(91,"label",47),u(92,"resultMaxHeight ('200px')"),a(),b(93,"input",48),a(),d(94,"div")(95,"label",49),u(96),w(97,"transloco"),a(),b(98,"input",50),a(),d(99,"div")(100,"label",51),u(101,"maxResultsMessage ('Too much result...')"),a(),b(102,"input",52),a(),d(103,"div")(104,"label",53),u(105,"listPosition :"),a(),d(106,"select",54),b(107,"option"),d(108,"option",55),u(109,"below"),a(),d(110,"option",56),u(111,"above"),a()()(),d(112,"div")(113,"label",57),u(114,"infiniteScroll"),a(),b(115,"input",58),a(),d(116,"div")(117,"label",59),u(118,"infiniteScrollDistance (1.5)"),a(),b(119,"input",60),a(),d(120,"div")(121,"label",61),u(122,"infiniteScrollThrottle (150)"),a(),b(123,"input",62),a(),d(124,"div")(125,"label",63),u(126,"styleMode"),a(),d(127,"select",64)(128,"option",65),u(129,"default"),a(),d(130,"option",66),u(131,"material"),a(),d(132,"option",67),u(133,"noStyle"),a(),d(134,"option",68),u(135,"borderless"),a()()(),d(136,"h5"),u(137),w(138,"transloco"),a(),d(139,"div"),u(140,"selectionOverride"),a(),d(141,"div")(142,"label",69),u(143," - function"),a(),b(144,"input",70),a(),d(145,"div")(146,"label",71),u(147," - string: "),b(148,"br"),d(149,"small")(150,"code"),u(151,"%size%"),a(),u(152),w(153,"transloco"),a()(),b(154,"input",72),a(),d(155,"div")(156,"label",73),u(157,"selectionOverride"),a(),b(158,"input",74),a(),B(159,Te,8,4),d(160,"h5"),u(161),w(162,"transloco"),a(),d(163,"div")(164,"label",75),u(165,"template style"),a(),d(166,"select",76)(167,"option",77),u(168,"None"),a(),d(169,"option",78),u(170,"Unique template"),a(),d(171,"option",79),u(172,"Template group & option"),a(),d(173,"option",80),u(174,"Template by templateId"),a()()(),d(175,"div")(176,"label",81),u(177,"template selection style"),a(),d(178,"select",82)(179,"option",77),u(180,"None"),a(),d(181,"option",78),u(182,"Unique template"),a(),d(183,"option",83),u(184,"Template option"),a(),d(185,"option",80),u(186,"Template by templateId"),a()()(),d(187,"div")(188,"label",84),u(189,"noLabelTemplate"),a(),b(190,"input",85),a(),d(191,"h5"),u(192),w(193,"transloco"),a(),d(194,"div")(195,"label",86),u(196),w(197,"transloco"),a(),b(198,"input",87),a(),d(199,"h4"),u(200),w(201,"transloco"),a(),d(202,"div")(203,"label",88),u(204,"update"),a(),b(205,"input",89),a(),d(206,"div")(207,"label",90),u(208,"open"),a(),b(209,"input",91),a(),d(210,"div")(211,"label",92),u(212,"close"),a(),b(213,"input",93),a(),d(214,"div")(215,"label",94),u(216,"focus"),a(),b(217,"input",95),a(),d(218,"div")(219,"label",96),u(220,"blur"),a(),b(221,"input",97),a(),d(222,"div")(223,"label",98),u(224,"search"),a(),b(225,"input",99),u(226),w(227,"transloco"),d(228,"code"),u(229,"customSearchEnabled"),a(),u(230,") "),a(),d(231,"div")(232,"label",100),u(233,"scroll"),a(),b(234,"input",101),a(),d(235,"div")(236,"label",102),u(237,"removeOption"),a(),b(238,"input",103),a()(),d(239,"div")(240,"div",104)(241,"h4"),u(242),w(243,"transloco"),a(),B(244,je,22,35,"select2",105),d(245,"h4"),u(246),w(247,"transloco"),a(),d(248,"div",106)(249,"code"),b(250,"pre",107),a()()()()()),s&2&&(_(3),R("formGroup",n.ctrlForm),_(2),y(E(6,26,"Data")),_(9),R("innerHTML",n.jsonError,$),_(2),y(E(17,28,"Tags")),_(11),y(E(28,30,"Parameters")),_(48),k(n.ctrlForm.value!=null&&n.ctrlForm.value.multiple?-1:75),_(11),C("grid (",E(87,32,"4 or '100px'"),")"),_(3),k(n.ctrlForm.value!=null&&n.ctrlForm.value.multiple?89:-1),_(7),C("maxResults (",E(97,34,"0 = infinity"),")"),_(20),j("hide",!(n.ctrlForm.value!=null&&n.ctrlForm.value.infiniteScrollDistance)),_(4),j("hide",!(n.ctrlForm.value!=null&&n.ctrlForm.value.infiniteScroll)),_(17),y(E(138,36,"Selection")),_(15),C(" = ",E(153,38,"selected item count")," "),_(2),Z("disabled",(n.ctrlForm.value==null?null:n.ctrlForm.value.selectionOverrideFunction)===!0?"disabled":null),_(5),k(n.ctrlForm.value!=null&&n.ctrlForm.value.multiple?159:-1),_(2),y(E(162,40,"Templates")),_(31),y(E(193,42,"HTML standard")),_(4),y(E(197,44,"Web Component guide line name")),_(4),y(E(201,46,"Events")),_(26),C(" (",E(227,48,"Required:"),""),_(16),y(E(243,50,"HTML render")),_(2),k(n.ctrlForm.value?244:-1),_(2),y(E(247,52,"HTML Code")),_(4),R("highlight",n.html))},dependencies:[pe,ce,ue,ne,le,te,se,ie,re,de,fe,oe,ae,xe,_e,be,he,ve,ge],styles:["label[_ngcontent-%COMP%]{display:inline-block;width:250px}.cols[_ngcontent-%COMP%]{display:flex;max-width:100%}.cols[_ngcontent-%COMP%] > *[_ngcontent-%COMP%]{flex:1 0 50%;max-width:50%}.code[_ngcontent-%COMP%]{overflow:auto}.error[_ngcontent-%COMP%]{color:red}textarea#json[_ngcontent-%COMP%]{box-sizing:border-box;width:calc(100% - 15px);height:200px;resize:vertical}.hide[_ngcontent-%COMP%]{display:none}.result[_ngcontent-%COMP%]{position:sticky;top:90px}"]})}}return p})();export{tt as a}; diff --git a/dist/ng-select2/browser/chunk-RC3XBXH4.js b/dist/ng-select2/browser/chunk-RC3XBXH4.js new file mode 100644 index 0000000..42ca2c5 --- /dev/null +++ b/dist/ng-select2/browser/chunk-RC3XBXH4.js @@ -0,0 +1 @@ +import{a as B}from"./chunk-WJI5FBHD.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 S,Bb as g,Cb as a,Db as l,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 s,fc as c,hb as C,ka as h,ub as d,zb as x}from"./chunk-S5UJW4WF.js";import"./chunk-EQDQRRRY.js";function D(p,F){if(p&1&&(a(0,"code")(1,"div"),r(2),l(),a(3,"pre"),r(4),s(5,"json"),l()()),p&2){let e=F.$implicit;i(2),y("",e.key," - ",e.type,""),i(2),u(c(5,3,e.event))}}var R=(()=>{class p 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]"})}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(p)))(n||p)}})()}static{this.\u0275cmp=E({type:p,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","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),s(2,"transloco"),l(),a(3,"div",0)(4,"div",1),b(5,"h3",2),s(6,"transloco"),a(7,"select2",3),v("update",function(o){return n.update("update",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)}),l(),a(8,"div",4)(9,"span"),r(10),s(11,"transloco"),l(),a(12,"code"),r(13),s(14,"json"),l()()(),a(15,"button",5),v("click",function(){return n.event=[]}),r(16),s(17,"transloco"),l(),a(18,"div",6)(19,"h4"),r(20),s(21,"transloco"),l(),S(22,D,6,5,"code",null,x),l()()),t&2&&(i(),u(c(2,9,"Events")),i(4),d("innerHTML",c(6,11,"List events"),f),i(2),d("overlay",n.overlay)("styleMode",n.styleMode)("data",n.data8),i(3),u(c(11,13,"value:")),i(3),u(c(14,15,n.value8)),i(3),u(c(17,17,"Clear events")),i(4),u(c(21,19,"Events:")),i(2),g(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 p})();export{R as ExemplesEventsComponent}; diff --git a/dist/ng-select2/browser/chunk-YJLUGMWE.js b/dist/ng-select2/browser/chunk-RSV6SVCA.js similarity index 97% rename from dist/ng-select2/browser/chunk-YJLUGMWE.js rename to dist/ng-select2/browser/chunk-RSV6SVCA.js index f9e1f0f..a4cf84c 100644 --- a/dist/ng-select2/browser/chunk-YJLUGMWE.js +++ b/dist/ng-select2/browser/chunk-RSV6SVCA.js @@ -1 +1 @@ -import{a as C}from"./chunk-JZQVIJ3O.js";import"./chunk-4FOF4764.js";import{j as S,k as _,w}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 n,Ec as x,Ib as u,Sa as t,Sb as a,Tb as l,db as f,ec as o,fc as r,hb as y,ka as v,ub as m}from"./chunk-S5UJW4WF.js";import"./chunk-EQDQRRRY.js";var O=(()=>{class p extends C{constructor(){super(...arguments),this.data17=S,this.data22=_,this.value17="",this.value22=""}static{this.\u0275fac=(()=>{let s;return function(e){return(s||(s=v(p)))(e||p)}})()}static{this.\u0275cmp=f({type:p,selectors:[["examples-style"]],features:[y],decls:27,vars:27,consts:[[1,"container"],[1,"row"],["id","ex-17",1,"col-12"],["id","select2-17",1,"col-6",3,"update","overlay","data","value"],[1,"col-12","value"],["id","ex-22",1,"col-12"],["listPosition","auto","id","select2-22",1,"col-6","flower-list",3,"update","overlay","data","value"]],template:function(d,e){d&1&&(i(0,"h2"),a(1),o(2,"transloco"),n(),i(3,"div",0)(4,"div",1)(5,"h3",2),a(6),o(7,"transloco"),n(),i(8,"select2",3),u("update",function(c){return e.update("value17",c)}),n(),i(9,"div",4)(10,"span"),a(11),o(12,"transloco"),n(),i(13,"code"),a(14),o(15,"json"),n()(),i(16,"h3",5),a(17),o(18,"transloco"),n(),i(19,"select2",6),u("update",function(c){return e.update("value22",c)}),n(),i(20,"div",4)(21,"span"),a(22),o(23,"transloco"),n(),i(24,"code"),a(25),o(26,"json"),n()()()()),d&2&&(t(),l(r(2,13,"Tags")),t(5),l(r(7,15,"With two labels per option")),t(2),m("overlay",e.overlay)("data",e.data17)("value",e.value17),t(3),l(r(12,17,"value:")),t(3),l(r(15,19,e.value17)),t(3),l(r(18,21,"With classes and id for items")),t(2),m("overlay",e.overlay)("data",e.data22)("value",e.value22),t(3),l(r(23,23,"value:")),t(3),l(r(26,25,e.value22)))},dependencies:[E,h,w,x],styles:['@charset "UTF-8";#select2-17[_ngcontent-%COMP%] .select2-multiple-labels{display:flex;justify-content:space-between}.flower-list[_ngcontent-%COMP%] .flower.white:before{content:"\\1f33c "}.flower-list[_ngcontent-%COMP%] .flower.red:before{content:"\\1f339 "}.flower-list[_ngcontent-%COMP%] .flower.yellow:before{content:"\\1f33b "}']})}}return p})();export{O as ExamplesStyleComponent}; +import{a as C}from"./chunk-WJI5FBHD.js";import"./chunk-4FOF4764.js";import{j as S,k as _,w}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 n,Ec as x,Ib as u,Sa as t,Sb as a,Tb as l,db as f,ec as o,fc as r,hb as y,ka as v,ub as m}from"./chunk-S5UJW4WF.js";import"./chunk-EQDQRRRY.js";var O=(()=>{class p extends C{constructor(){super(...arguments),this.data17=S,this.data22=_,this.value17="",this.value22=""}static{this.\u0275fac=(()=>{let s;return function(e){return(s||(s=v(p)))(e||p)}})()}static{this.\u0275cmp=f({type:p,selectors:[["examples-style"]],features:[y],decls:27,vars:27,consts:[[1,"container"],[1,"row"],["id","ex-17",1,"col-12"],["id","select2-17",1,"col-6",3,"update","overlay","data","value"],[1,"col-12","value"],["id","ex-22",1,"col-12"],["listPosition","auto","id","select2-22",1,"col-6","flower-list",3,"update","overlay","data","value"]],template:function(d,e){d&1&&(i(0,"h2"),a(1),o(2,"transloco"),n(),i(3,"div",0)(4,"div",1)(5,"h3",2),a(6),o(7,"transloco"),n(),i(8,"select2",3),u("update",function(c){return e.update("value17",c)}),n(),i(9,"div",4)(10,"span"),a(11),o(12,"transloco"),n(),i(13,"code"),a(14),o(15,"json"),n()(),i(16,"h3",5),a(17),o(18,"transloco"),n(),i(19,"select2",6),u("update",function(c){return e.update("value22",c)}),n(),i(20,"div",4)(21,"span"),a(22),o(23,"transloco"),n(),i(24,"code"),a(25),o(26,"json"),n()()()()),d&2&&(t(),l(r(2,13,"Tags")),t(5),l(r(7,15,"With two labels per option")),t(2),m("overlay",e.overlay)("data",e.data17)("value",e.value17),t(3),l(r(12,17,"value:")),t(3),l(r(15,19,e.value17)),t(3),l(r(18,21,"With classes and id for items")),t(2),m("overlay",e.overlay)("data",e.data22)("value",e.value22),t(3),l(r(23,23,"value:")),t(3),l(r(26,25,e.value22)))},dependencies:[E,h,w,x],styles:['@charset "UTF-8";#select2-17[_ngcontent-%COMP%] .select2-multiple-labels{display:flex;justify-content:space-between}.flower-list[_ngcontent-%COMP%] .flower.white:before{content:"\\1f33c "}.flower-list[_ngcontent-%COMP%] .flower.red:before{content:"\\1f339 "}.flower-list[_ngcontent-%COMP%] .flower.yellow:before{content:"\\1f33b "}']})}}return p})();export{O as ExamplesStyleComponent}; diff --git a/dist/ng-select2/browser/chunk-U6TNTJVN.js b/dist/ng-select2/browser/chunk-SGHNQMD2.js similarity index 95% rename from dist/ng-select2/browser/chunk-U6TNTJVN.js rename to dist/ng-select2/browser/chunk-SGHNQMD2.js index bdba238..a5a64c0 100644 --- a/dist/ng-select2/browser/chunk-U6TNTJVN.js +++ b/dist/ng-select2/browser/chunk-SGHNQMD2.js @@ -1 +1 @@ -import{a as C}from"./chunk-JZQVIJ3O.js";import"./chunk-4FOF4764.js";import{a as x,w as E}from"./chunk-IUSK23HG.js";import"./chunk-KWVA3REN.js";import{x as S,y as h}from"./chunk-7IHFBV5J.js";import{Cb as l,Db as a,Ec as y,Ib as f,Sa as i,Sb as n,Tb as o,db as c,ec as r,fc as p,hb as u,ka as m,ub as v}from"./chunk-S5UJW4WF.js";import"./chunk-EQDQRRRY.js";var w=(()=>{class t extends C{constructor(){super(...arguments),this.data37=x,this.value37=["AK","NY","NC","RI"]}static{this.\u0275fac=(()=>{let s;return function(e){return(s||(s=m(t)))(e||t)}})()}static{this.\u0275cmp=c({type:t,selectors:[["examples-select-all"]],features:[u],decls:13,vars:13,consts:[[1,"container"],[1,"row"],["showSelectAll","","id","select2-select-all","multiple","",1,"col-6",3,"update","overlay","styleMode","data","value"],[1,"col-12","value"]],template:function(d,e){d&1&&(l(0,"h2"),n(1),r(2,"transloco"),a(),l(3,"div",0)(4,"div",1)(5,"select2",2),f("update",function(I){return e.update("value37",I)}),a(),l(6,"div",3)(7,"span"),n(8),r(9,"transloco"),a(),l(10,"code"),n(11),r(12,"json"),a()()()()),d&2&&(i(),o(p(2,7,"Select all")),i(4),v("overlay",e.overlay)("styleMode",e.styleMode)("data",e.data37)("value",e.value37),i(3),o(p(9,9,"value:")),i(3),o(p(12,11,e.value37)))},dependencies:[E,y,h,S],encapsulation:2})}}return t})();export{w as ExemplesSelectAllComponent}; +import{a as C}from"./chunk-WJI5FBHD.js";import"./chunk-4FOF4764.js";import{a as x,w as E}from"./chunk-IUSK23HG.js";import"./chunk-KWVA3REN.js";import{x as S,y as h}from"./chunk-7IHFBV5J.js";import{Cb as l,Db as a,Ec as y,Ib as f,Sa as i,Sb as n,Tb as o,db as c,ec as r,fc as p,hb as u,ka as m,ub as v}from"./chunk-S5UJW4WF.js";import"./chunk-EQDQRRRY.js";var w=(()=>{class t extends C{constructor(){super(...arguments),this.data37=x,this.value37=["AK","NY","NC","RI"]}static{this.\u0275fac=(()=>{let s;return function(e){return(s||(s=m(t)))(e||t)}})()}static{this.\u0275cmp=c({type:t,selectors:[["examples-select-all"]],features:[u],decls:13,vars:13,consts:[[1,"container"],[1,"row"],["showSelectAll","","id","select2-select-all","multiple","",1,"col-6",3,"update","overlay","styleMode","data","value"],[1,"col-12","value"]],template:function(d,e){d&1&&(l(0,"h2"),n(1),r(2,"transloco"),a(),l(3,"div",0)(4,"div",1)(5,"select2",2),f("update",function(I){return e.update("value37",I)}),a(),l(6,"div",3)(7,"span"),n(8),r(9,"transloco"),a(),l(10,"code"),n(11),r(12,"json"),a()()()()),d&2&&(i(),o(p(2,7,"Select all")),i(4),v("overlay",e.overlay)("styleMode",e.styleMode)("data",e.data37)("value",e.value37),i(3),o(p(9,9,"value:")),i(3),o(p(12,11,e.value37)))},dependencies:[E,y,h,S],encapsulation:2})}}return t})();export{w as ExemplesSelectAllComponent}; diff --git a/dist/ng-select2/browser/chunk-6SFR6TT5.js b/dist/ng-select2/browser/chunk-TCRQ57XT.js similarity index 98% rename from dist/ng-select2/browser/chunk-6SFR6TT5.js rename to dist/ng-select2/browser/chunk-TCRQ57XT.js index 9f729c7..9a9e911 100644 --- a/dist/ng-select2/browser/chunk-6SFR6TT5.js +++ b/dist/ng-select2/browser/chunk-TCRQ57XT.js @@ -1 +1 @@ -import{a as D}from"./chunk-JZQVIJ3O.js";import"./chunk-4FOF4764.js";import{l as I,m as P,w as j}from"./chunk-IUSK23HG.js";import"./chunk-KWVA3REN.js";import{x as R,y as V}from"./chunk-7IHFBV5J.js";import{Cb as i,Db as o,Ec as F,Gb as B,Ib as T,Rb as d,Sa as n,Sb as l,Tb as r,Ub as f,cc as O,db as C,dc as b,ec as m,fc as s,gc as c,hb as h,ia as x,ja as E,jb as g,ka as w,ub as y,vb as M}from"./chunk-S5UJW4WF.js";import"./chunk-EQDQRRRY.js";var U=(t,p)=>({option:t,group:p}),W=(t,p,e)=>({template1:t,template2:p,template3:e});function q(t,p){if(t&1&&(i(0,"strong"),l(1),o(),l(2)),t&2){let e=p.data;n(),r(e==null?null:e.color),n(),f(": ",e==null?null:e.name,"")}}function z(t,p){if(t&1&&(i(0,"strong"),l(1),o(),l(2)),t&2){let e=p.data;n(),r(e==null?null:e.color),n(),f(" (",e==null?null:e.name,")")}}function A(t,p){if(t&1&&(i(0,"strong"),l(1),o(),l(2)),t&2){let e=p.data;n(),r(e==null?null:e.color),n(),f(": ",e==null?null:e.name,"")}}function H(t,p){if(t&1&&(i(0,"strong"),l(1),o()),t&2){let e=p.label;n(),f("(",e,")")}}function K(t,p){if(t&1&&(i(0,"span"),l(1),o()),t&2){let e=p.data;M("background",e==null?null:e.color),n(),r(e==null?null:e.name)}}function L(t,p){if(t&1&&(i(0,"strong"),l(1),o(),l(2)),t&2){let e=p.data;n(),r(e==null?null:e.color),n(),f(": ",e==null?null:e.name,"")}}function Q(t,p){if(t&1&&(l(0),m(1,"json")),t&2){let e=p.data;r(s(1,1,e))}}var le=(()=>{class t extends D{constructor(){super(...arguments),this.data23=I,this.data24=P,this.data25=JSON.parse(JSON.stringify(I)),this.value23="",this.value24="",this.value25=""}static{this.\u0275fac=(()=>{let e;return function(a){return(e||(e=w(t)))(a||t)}})()}static{this.\u0275cmp=C({type:t,selectors:[["examples-template"]],features:[h],decls:55,vars:53,consts:[["template",""],["templateSelection",""],["templateOption",""],["templateGroup",""],["template1",""],["template2",""],["template3",""],[1,"container"],[1,"row"],["id","ex-23",1,"col-12"],["id","select2-23",1,"col-6","flower-list",3,"update","overlay","styleMode","data","value","templates","templateSelection"],[1,"col-12","value"],["id","ex-24",1,"col-12"],["id","select2-24",1,"col-6","flower-list",3,"update","overlay","styleMode","data","value","templates"],["id","ex-25"],["id","select2-25",1,"col-6","flower-list",3,"update","overlay","styleMode","data","value","templates"]],template:function(S,a){if(S&1){let v=B();i(0,"h2"),l(1),m(2,"transloco"),o(),i(3,"div",7)(4,"div",8)(5,"h3",9),l(6),m(7,"transloco"),o(),i(8,"select2",10),T("update",function(u){return x(v),E(a.update("value23",u))}),g(9,q,3,2,"ng-template",null,0,c)(11,z,3,2,"ng-template",null,1,c),o(),i(13,"div",11)(14,"div")(15,"span"),l(16),m(17,"transloco"),o(),i(18,"code"),l(19),m(20,"json"),o()()(),i(21,"h3",12),l(22),m(23,"transloco"),o(),i(24,"select2",13),T("update",function(u){return x(v),E(a.update("value24",u))}),g(25,A,3,2,"ng-template",null,2,c)(27,H,2,1,"ng-template",null,3,c),o(),i(29,"div",11)(30,"div")(31,"span"),l(32),m(33,"transloco"),o(),i(34,"code"),l(35),m(36,"json"),o()()(),i(37,"h3",14),l(38),m(39,"transloco"),o(),i(40,"select2",15),T("update",function(u){return x(v),E(a.update("value25",u))}),g(41,K,2,3,"ng-template",null,4,c)(43,L,3,2,"ng-template",null,5,c)(45,Q,2,3,"ng-template",null,6,c),o(),i(47,"div",11)(48,"div")(49,"span"),l(50),m(51,"transloco"),o(),i(52,"code"),l(53),m(54,"json"),o()()()()()}if(S&2){let v=d(10),_=d(12),u=d(26),J=d(28),G=d(42),N=d(44),k=d(46);n(),r(s(2,26,"Template")),n(5),r(s(7,28,"Only one template for options/groups & one for selection")),n(2),y("overlay",a.overlay)("styleMode",a.styleMode)("data",a.data23)("value",a.value23)("templates",v)("templateSelection",_),n(8),r(s(17,30,"value:")),n(3),r(s(20,32,a.value23)),n(3),r(s(23,34,"Templates for options & groups")),n(2),y("overlay",a.overlay)("styleMode",a.styleMode)("data",a.data24)("value",a.value24)("templates",O(46,U,u,J)),n(8),r(s(33,36,"value:")),n(3),r(s(36,38,a.value24)),n(3),r(s(39,40,"With templates Ids")),n(2),y("overlay",a.overlay)("styleMode",a.styleMode)("data",a.data25)("value",a.value25)("templates",b(49,W,G,N,k)),n(10),r(s(51,42,"value:")),n(3),r(s(54,44,a.value25))}},dependencies:[j,F,V,R],styles:['@charset "UTF-8";.flower-list[_ngcontent-%COMP%] .flower.white:before{content:"\\1f33c "}.flower-list[_ngcontent-%COMP%] .flower.red:before{content:"\\1f339 "}.flower-list[_ngcontent-%COMP%] .flower.yellow:before{content:"\\1f33b "}']})}}return t})();export{le as ExemplesTemplateComponent}; +import{a as D}from"./chunk-WJI5FBHD.js";import"./chunk-4FOF4764.js";import{l as I,m as P,w as j}from"./chunk-IUSK23HG.js";import"./chunk-KWVA3REN.js";import{x as R,y as V}from"./chunk-7IHFBV5J.js";import{Cb as i,Db as o,Ec as F,Gb as B,Ib as T,Rb as d,Sa as n,Sb as l,Tb as r,Ub as f,cc as O,db as C,dc as b,ec as m,fc as s,gc as c,hb as h,ia as x,ja as E,jb as g,ka as w,ub as y,vb as M}from"./chunk-S5UJW4WF.js";import"./chunk-EQDQRRRY.js";var U=(t,p)=>({option:t,group:p}),W=(t,p,e)=>({template1:t,template2:p,template3:e});function q(t,p){if(t&1&&(i(0,"strong"),l(1),o(),l(2)),t&2){let e=p.data;n(),r(e==null?null:e.color),n(),f(": ",e==null?null:e.name,"")}}function z(t,p){if(t&1&&(i(0,"strong"),l(1),o(),l(2)),t&2){let e=p.data;n(),r(e==null?null:e.color),n(),f(" (",e==null?null:e.name,")")}}function A(t,p){if(t&1&&(i(0,"strong"),l(1),o(),l(2)),t&2){let e=p.data;n(),r(e==null?null:e.color),n(),f(": ",e==null?null:e.name,"")}}function H(t,p){if(t&1&&(i(0,"strong"),l(1),o()),t&2){let e=p.label;n(),f("(",e,")")}}function K(t,p){if(t&1&&(i(0,"span"),l(1),o()),t&2){let e=p.data;M("background",e==null?null:e.color),n(),r(e==null?null:e.name)}}function L(t,p){if(t&1&&(i(0,"strong"),l(1),o(),l(2)),t&2){let e=p.data;n(),r(e==null?null:e.color),n(),f(": ",e==null?null:e.name,"")}}function Q(t,p){if(t&1&&(l(0),m(1,"json")),t&2){let e=p.data;r(s(1,1,e))}}var le=(()=>{class t extends D{constructor(){super(...arguments),this.data23=I,this.data24=P,this.data25=JSON.parse(JSON.stringify(I)),this.value23="",this.value24="",this.value25=""}static{this.\u0275fac=(()=>{let e;return function(a){return(e||(e=w(t)))(a||t)}})()}static{this.\u0275cmp=C({type:t,selectors:[["examples-template"]],features:[h],decls:55,vars:53,consts:[["template",""],["templateSelection",""],["templateOption",""],["templateGroup",""],["template1",""],["template2",""],["template3",""],[1,"container"],[1,"row"],["id","ex-23",1,"col-12"],["id","select2-23",1,"col-6","flower-list",3,"update","overlay","styleMode","data","value","templates","templateSelection"],[1,"col-12","value"],["id","ex-24",1,"col-12"],["id","select2-24",1,"col-6","flower-list",3,"update","overlay","styleMode","data","value","templates"],["id","ex-25"],["id","select2-25",1,"col-6","flower-list",3,"update","overlay","styleMode","data","value","templates"]],template:function(S,a){if(S&1){let v=B();i(0,"h2"),l(1),m(2,"transloco"),o(),i(3,"div",7)(4,"div",8)(5,"h3",9),l(6),m(7,"transloco"),o(),i(8,"select2",10),T("update",function(u){return x(v),E(a.update("value23",u))}),g(9,q,3,2,"ng-template",null,0,c)(11,z,3,2,"ng-template",null,1,c),o(),i(13,"div",11)(14,"div")(15,"span"),l(16),m(17,"transloco"),o(),i(18,"code"),l(19),m(20,"json"),o()()(),i(21,"h3",12),l(22),m(23,"transloco"),o(),i(24,"select2",13),T("update",function(u){return x(v),E(a.update("value24",u))}),g(25,A,3,2,"ng-template",null,2,c)(27,H,2,1,"ng-template",null,3,c),o(),i(29,"div",11)(30,"div")(31,"span"),l(32),m(33,"transloco"),o(),i(34,"code"),l(35),m(36,"json"),o()()(),i(37,"h3",14),l(38),m(39,"transloco"),o(),i(40,"select2",15),T("update",function(u){return x(v),E(a.update("value25",u))}),g(41,K,2,3,"ng-template",null,4,c)(43,L,3,2,"ng-template",null,5,c)(45,Q,2,3,"ng-template",null,6,c),o(),i(47,"div",11)(48,"div")(49,"span"),l(50),m(51,"transloco"),o(),i(52,"code"),l(53),m(54,"json"),o()()()()()}if(S&2){let v=d(10),_=d(12),u=d(26),J=d(28),G=d(42),N=d(44),k=d(46);n(),r(s(2,26,"Template")),n(5),r(s(7,28,"Only one template for options/groups & one for selection")),n(2),y("overlay",a.overlay)("styleMode",a.styleMode)("data",a.data23)("value",a.value23)("templates",v)("templateSelection",_),n(8),r(s(17,30,"value:")),n(3),r(s(20,32,a.value23)),n(3),r(s(23,34,"Templates for options & groups")),n(2),y("overlay",a.overlay)("styleMode",a.styleMode)("data",a.data24)("value",a.value24)("templates",O(46,U,u,J)),n(8),r(s(33,36,"value:")),n(3),r(s(36,38,a.value24)),n(3),r(s(39,40,"With templates Ids")),n(2),y("overlay",a.overlay)("styleMode",a.styleMode)("data",a.data25)("value",a.value25)("templates",b(49,W,G,N,k)),n(10),r(s(51,42,"value:")),n(3),r(s(54,44,a.value25))}},dependencies:[j,F,V,R],styles:['@charset "UTF-8";.flower-list[_ngcontent-%COMP%] .flower.white:before{content:"\\1f33c "}.flower-list[_ngcontent-%COMP%] .flower.red:before{content:"\\1f339 "}.flower-list[_ngcontent-%COMP%] .flower.yellow:before{content:"\\1f33b "}']})}}return t})();export{le as ExemplesTemplateComponent}; diff --git a/dist/ng-select2/browser/chunk-SSVTG4U4.js b/dist/ng-select2/browser/chunk-TSJ4YU72.js similarity index 97% rename from dist/ng-select2/browser/chunk-SSVTG4U4.js rename to dist/ng-select2/browser/chunk-TSJ4YU72.js index a556d18..bfa33c4 100644 --- a/dist/ng-select2/browser/chunk-SSVTG4U4.js +++ b/dist/ng-select2/browser/chunk-TSJ4YU72.js @@ -1 +1 @@ -import{a as I}from"./chunk-JZQVIJ3O.js";import"./chunk-4FOF4764.js";import{a as u,w as _}from"./chunk-IUSK23HG.js";import"./chunk-KWVA3REN.js";import{x as b,y as x}from"./chunk-7IHFBV5J.js";import{Cb as i,Db as a,Ec as h,Ib as m,Sa as t,Sb as n,Tb as l,db as S,ec as o,fc as p,hb as E,ka as f,ub as s}from"./chunk-S5UJW4WF.js";import"./chunk-EQDQRRRY.js";var N=(()=>{class r extends I{constructor(){super(...arguments),this.data30=JSON.parse(JSON.stringify(u)),this.data30a=JSON.parse(JSON.stringify(u)),this.data30b=JSON.parse(JSON.stringify(u)),this.value30="",this.value30a="",this.value30b=""}static{this.\u0275fac=(()=>{let v;return function(e){return(v||(v=f(r)))(e||r)}})()}static{this.\u0275cmp=S({type:r,selectors:[["examples-resettable"]],features:[E],decls:44,vars:45,consts:[[1,"container"],[1,"row"],["id","ex-30",1,"col-12"],["resettable","","id","select2-30",1,"col-6",3,"update","overlay","styleMode","data","value"],[1,"col-12","value"],["resettable","","multiple","","id","select2-30a",1,"col-6",3,"update","overlay","styleMode","data","value"],["id","ex-30b",1,"col-12"],["resettable","","resetSelectedValue","CA","id","select2-30b",1,"col-6",3,"update","overlay","styleMode","data","value"],[1,"col-12"]],template:function(c,e){c&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("value30",d)}),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",2),n(18),o(19,"transloco"),a(),i(20,"select2",5),m("update",function(d){return e.update("value30a",d)}),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",6),n(30),o(31,"transloco"),a(),i(32,"select2",7),m("update",function(d){return e.update("value30b",d)}),a(),i(33,"div",4)(34,"div")(35,"span"),n(36),o(37,"transloco"),a(),i(38,"code"),n(39),o(40,"json"),a()()(),i(41,"div",8),n(42),o(43,"transloco"),a()()()),c&2&&(t(),l(p(2,23,"Resettable")),t(5),l(p(7,25,"Reset value when \xD7 is clicked")),t(2),s("overlay",e.overlay)("styleMode",e.styleMode)("data",e.data30)("value",e.value30),t(4),l(p(13,27,"value:")),t(3),l(p(16,29,e.value30)),t(3),l(p(19,31,"Reset value when \xD7 is clicked in multiple")),t(2),s("overlay",e.overlay)("styleMode",e.styleMode)("data",e.data30a)("value",e.value30a),t(4),l(p(25,33,"value:")),t(3),l(p(28,35,e.value30a)),t(3),l(p(31,37,"Selected a default option when \xD7 is clicked")),t(2),s("overlay",e.overlay)("styleMode",e.styleMode)("data",e.data30b)("value",e.value30b),t(4),l(p(37,39,"value:")),t(3),l(p(40,41,e.value30b)),t(3),l(p(43,43,"In this example, \u201CCA\u201D is the default value")))},dependencies:[_,h,x,b],encapsulation:2})}}return r})();export{N as ExemplesResettableComponent}; +import{a as I}from"./chunk-WJI5FBHD.js";import"./chunk-4FOF4764.js";import{a as u,w as _}from"./chunk-IUSK23HG.js";import"./chunk-KWVA3REN.js";import{x as b,y as x}from"./chunk-7IHFBV5J.js";import{Cb as i,Db as a,Ec as h,Ib as m,Sa as t,Sb as n,Tb as l,db as S,ec as o,fc as p,hb as E,ka as f,ub as s}from"./chunk-S5UJW4WF.js";import"./chunk-EQDQRRRY.js";var N=(()=>{class r extends I{constructor(){super(...arguments),this.data30=JSON.parse(JSON.stringify(u)),this.data30a=JSON.parse(JSON.stringify(u)),this.data30b=JSON.parse(JSON.stringify(u)),this.value30="",this.value30a="",this.value30b=""}static{this.\u0275fac=(()=>{let v;return function(e){return(v||(v=f(r)))(e||r)}})()}static{this.\u0275cmp=S({type:r,selectors:[["examples-resettable"]],features:[E],decls:44,vars:45,consts:[[1,"container"],[1,"row"],["id","ex-30",1,"col-12"],["resettable","","id","select2-30",1,"col-6",3,"update","overlay","styleMode","data","value"],[1,"col-12","value"],["resettable","","multiple","","id","select2-30a",1,"col-6",3,"update","overlay","styleMode","data","value"],["id","ex-30b",1,"col-12"],["resettable","","resetSelectedValue","CA","id","select2-30b",1,"col-6",3,"update","overlay","styleMode","data","value"],[1,"col-12"]],template:function(c,e){c&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("value30",d)}),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",2),n(18),o(19,"transloco"),a(),i(20,"select2",5),m("update",function(d){return e.update("value30a",d)}),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",6),n(30),o(31,"transloco"),a(),i(32,"select2",7),m("update",function(d){return e.update("value30b",d)}),a(),i(33,"div",4)(34,"div")(35,"span"),n(36),o(37,"transloco"),a(),i(38,"code"),n(39),o(40,"json"),a()()(),i(41,"div",8),n(42),o(43,"transloco"),a()()()),c&2&&(t(),l(p(2,23,"Resettable")),t(5),l(p(7,25,"Reset value when \xD7 is clicked")),t(2),s("overlay",e.overlay)("styleMode",e.styleMode)("data",e.data30)("value",e.value30),t(4),l(p(13,27,"value:")),t(3),l(p(16,29,e.value30)),t(3),l(p(19,31,"Reset value when \xD7 is clicked in multiple")),t(2),s("overlay",e.overlay)("styleMode",e.styleMode)("data",e.data30a)("value",e.value30a),t(4),l(p(25,33,"value:")),t(3),l(p(28,35,e.value30a)),t(3),l(p(31,37,"Selected a default option when \xD7 is clicked")),t(2),s("overlay",e.overlay)("styleMode",e.styleMode)("data",e.data30b)("value",e.value30b),t(4),l(p(37,39,"value:")),t(3),l(p(40,41,e.value30b)),t(3),l(p(43,43,"In this example, \u201CCA\u201D is the default value")))},dependencies:[_,h,x,b],encapsulation:2})}}return r})();export{N as ExemplesResettableComponent}; diff --git a/dist/ng-select2/browser/chunk-WJI5FBHD.js b/dist/ng-select2/browser/chunk-WJI5FBHD.js new file mode 100644 index 0000000..0952b34 --- /dev/null +++ b/dist/ng-select2/browser/chunk-WJI5FBHD.js @@ -0,0 +1 @@ +import{a as i}from"./chunk-KWVA3REN.js";import{$ as s,fb as l}from"./chunk-S5UJW4WF.js";var u=(()=>{class t{constructor(){this.examplesService=s(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)}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||t)}}static{this.\u0275dir=l({type:t})}}return t})();export{u as a}; diff --git a/dist/ng-select2/browser/chunk-6ZLHFEQ7.js b/dist/ng-select2/browser/chunk-WXQ3IEYU.js similarity index 98% rename from dist/ng-select2/browser/chunk-6ZLHFEQ7.js rename to dist/ng-select2/browser/chunk-WXQ3IEYU.js index cd509cf..d964b0e 100644 --- a/dist/ng-select2/browser/chunk-6ZLHFEQ7.js +++ b/dist/ng-select2/browser/chunk-WXQ3IEYU.js @@ -1 +1 @@ -import{a as g}from"./chunk-JZQVIJ3O.js";import"./chunk-4FOF4764.js";import{a as _,b as M,c as m,i as C,w as b}from"./chunk-IUSK23HG.js";import"./chunk-KWVA3REN.js";import{x,y as I}from"./chunk-7IHFBV5J.js";import{Cb as i,Db as a,Eb as E,Ec as f,Ib as v,Sa as t,Sb as n,Tb as l,db as S,ec as o,fc as d,hb as h,ka as B,ub as r}from"./chunk-S5UJW4WF.js";import"./chunk-EQDQRRRY.js";var P=(()=>{class s extends g{constructor(){super(...arguments),this.data1=_,this.data2=M,this.data3=m,this.data4=JSON.parse(JSON.stringify(m)),this.data7=JSON.parse(JSON.stringify(m)),this.data13=C,this.value1="CA",this.value2="CA",this.value3="foo",this.value4="bar",this.value7="",this.value13=!0}static{this.\u0275fac=(()=>{let c;return function(e){return(c||(c=B(s)))(e||s)}})()}static{this.\u0275cmp=S({type:s,selectors:[["examples-basic"]],features:[h],decls:74,vars:80,consts:[[1,"container"],[1,"row"],["id","ex-2",1,"col-12"],["id","select2-2",1,"col-6",3,"update","overlay","styleMode","data","value"],[1,"col-12","value"],["id","ex-1",1,"col-12"],["resettable","","customSearchEnabled","","id","select2-1",1,"col-6",3,"overlay","styleMode","data","value"],["id","ex-3",1,"col-12"],["id","select2-3",1,"col-6",3,"update","overlay","styleMode","data","value"],["id","ex-4",1,"col-12"],["id","select2-4",1,"col-6",3,"overlay","data","value","disabled"],["id","ex-7",1,"col-12"],["placeholder","select an item","id","select2-7",1,"col-6",3,"update","overlay","styleMode","data"],["id","ex-13",1,"col-12"],["id","select2-13",1,"col-6",3,"update","overlay","styleMode","data","value"]],template:function(u,e){u&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),v("update",function(p){return e.update("value2",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(),E(20,"select2",6),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),v("update",function(p){return e.update("value3",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()()(),i(41,"h3",9),n(42),o(43,"transloco"),a(),E(44,"select2",10),i(45,"div",4)(46,"span"),n(47),o(48,"transloco"),a(),i(49,"code"),n(50),o(51,"json"),a()(),i(52,"h3",11),n(53),o(54,"transloco"),a(),i(55,"select2",12),v("update",function(p){return e.update("value7",p)}),a(),i(56,"div",4)(57,"span"),n(58),o(59,"transloco"),a(),i(60,"code"),n(61),o(62,"json"),a()(),i(63,"h3",13),n(64),o(65,"transloco"),a(),i(66,"select2",14),v("update",function(p){return e.update("value13",p)}),a(),i(67,"div",4)(68,"span"),n(69),o(70,"transloco"),a(),i(71,"code"),n(72),o(73,"json"),a()()()()),u&2&&(t(),l(d(2,42,"Basic")),t(5),l(d(7,44,"Basic list of options")),t(2),r("overlay",e.overlay)("styleMode",e.styleMode)("data",e.data2)("value",e.value2),t(4),l(d(13,46,"value:")),t(3),l(d(16,48,e.value2)),t(3),l(d(19,50,"Basic list with groups")),t(2),r("overlay",e.overlay)("styleMode",e.styleMode)("data",e.data1)("value",e.value1),t(4),l(d(25,52,"value:")),t(3),l(d(28,54,e.value1)),t(3),l(d(31,56,"Less options")),t(2),r("overlay",e.overlay)("styleMode",e.styleMode)("data",e.data3)("value",e.value3),t(4),l(d(37,58,"value:")),t(3),l(d(40,60,e.value3)),t(3),l(d(43,62,"Disabled")),t(2),r("overlay",e.overlay)("data",e.data4)("value",e.value4)("disabled",!0),t(3),l(d(48,64,"value:")),t(3),l(d(51,66,e.value4)),t(3),l(d(54,68,"Placeholder")),t(2),r("overlay",e.overlay)("styleMode",e.styleMode)("data",e.data7),t(3),l(d(59,70,"value:")),t(3),l(d(62,72,e.value7)),t(3),l(d(65,74,"Boolean value")),t(2),r("overlay",e.overlay)("styleMode",e.styleMode)("data",e.data13)("value",e.value13),t(3),l(d(70,76,"value:")),t(3),l(d(73,78,e.value13)))},dependencies:[b,f,I,x],encapsulation:2})}}return s})();export{P as ExemplesBasicComponent}; +import{a as g}from"./chunk-WJI5FBHD.js";import"./chunk-4FOF4764.js";import{a as _,b as M,c as m,i as C,w as b}from"./chunk-IUSK23HG.js";import"./chunk-KWVA3REN.js";import{x,y as I}from"./chunk-7IHFBV5J.js";import{Cb as i,Db as a,Eb as E,Ec as f,Ib as v,Sa as t,Sb as n,Tb as l,db as S,ec as o,fc as d,hb as h,ka as B,ub as r}from"./chunk-S5UJW4WF.js";import"./chunk-EQDQRRRY.js";var P=(()=>{class s extends g{constructor(){super(...arguments),this.data1=_,this.data2=M,this.data3=m,this.data4=JSON.parse(JSON.stringify(m)),this.data7=JSON.parse(JSON.stringify(m)),this.data13=C,this.value1="CA",this.value2="CA",this.value3="foo",this.value4="bar",this.value7="",this.value13=!0}static{this.\u0275fac=(()=>{let c;return function(e){return(c||(c=B(s)))(e||s)}})()}static{this.\u0275cmp=S({type:s,selectors:[["examples-basic"]],features:[h],decls:74,vars:80,consts:[[1,"container"],[1,"row"],["id","ex-2",1,"col-12"],["id","select2-2",1,"col-6",3,"update","overlay","styleMode","data","value"],[1,"col-12","value"],["id","ex-1",1,"col-12"],["resettable","","customSearchEnabled","","id","select2-1",1,"col-6",3,"overlay","styleMode","data","value"],["id","ex-3",1,"col-12"],["id","select2-3",1,"col-6",3,"update","overlay","styleMode","data","value"],["id","ex-4",1,"col-12"],["id","select2-4",1,"col-6",3,"overlay","data","value","disabled"],["id","ex-7",1,"col-12"],["placeholder","select an item","id","select2-7",1,"col-6",3,"update","overlay","styleMode","data"],["id","ex-13",1,"col-12"],["id","select2-13",1,"col-6",3,"update","overlay","styleMode","data","value"]],template:function(u,e){u&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),v("update",function(p){return e.update("value2",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(),E(20,"select2",6),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),v("update",function(p){return e.update("value3",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()()(),i(41,"h3",9),n(42),o(43,"transloco"),a(),E(44,"select2",10),i(45,"div",4)(46,"span"),n(47),o(48,"transloco"),a(),i(49,"code"),n(50),o(51,"json"),a()(),i(52,"h3",11),n(53),o(54,"transloco"),a(),i(55,"select2",12),v("update",function(p){return e.update("value7",p)}),a(),i(56,"div",4)(57,"span"),n(58),o(59,"transloco"),a(),i(60,"code"),n(61),o(62,"json"),a()(),i(63,"h3",13),n(64),o(65,"transloco"),a(),i(66,"select2",14),v("update",function(p){return e.update("value13",p)}),a(),i(67,"div",4)(68,"span"),n(69),o(70,"transloco"),a(),i(71,"code"),n(72),o(73,"json"),a()()()()),u&2&&(t(),l(d(2,42,"Basic")),t(5),l(d(7,44,"Basic list of options")),t(2),r("overlay",e.overlay)("styleMode",e.styleMode)("data",e.data2)("value",e.value2),t(4),l(d(13,46,"value:")),t(3),l(d(16,48,e.value2)),t(3),l(d(19,50,"Basic list with groups")),t(2),r("overlay",e.overlay)("styleMode",e.styleMode)("data",e.data1)("value",e.value1),t(4),l(d(25,52,"value:")),t(3),l(d(28,54,e.value1)),t(3),l(d(31,56,"Less options")),t(2),r("overlay",e.overlay)("styleMode",e.styleMode)("data",e.data3)("value",e.value3),t(4),l(d(37,58,"value:")),t(3),l(d(40,60,e.value3)),t(3),l(d(43,62,"Disabled")),t(2),r("overlay",e.overlay)("data",e.data4)("value",e.value4)("disabled",!0),t(3),l(d(48,64,"value:")),t(3),l(d(51,66,e.value4)),t(3),l(d(54,68,"Placeholder")),t(2),r("overlay",e.overlay)("styleMode",e.styleMode)("data",e.data7),t(3),l(d(59,70,"value:")),t(3),l(d(62,72,e.value7)),t(3),l(d(65,74,"Boolean value")),t(2),r("overlay",e.overlay)("styleMode",e.styleMode)("data",e.data13)("value",e.value13),t(3),l(d(70,76,"value:")),t(3),l(d(73,78,e.value13)))},dependencies:[b,f,I,x],encapsulation:2})}}return s})();export{P as ExemplesBasicComponent}; diff --git a/dist/ng-select2/browser/chunk-2VMRQMZD.js b/dist/ng-select2/browser/chunk-X725EX6V.js similarity index 68% rename from dist/ng-select2/browser/chunk-2VMRQMZD.js rename to dist/ng-select2/browser/chunk-X725EX6V.js index 9bfce47..2b969dc 100644 --- a/dist/ng-select2/browser/chunk-2VMRQMZD.js +++ b/dist/ng-select2/browser/chunk-X725EX6V.js @@ -1 +1 @@ -import{a,b}from"./chunk-DXCSQGGJ.js";import"./chunk-33O7KYOH.js";import"./chunk-PBM5R43U.js";import"./chunk-S5UJW4WF.js";import"./chunk-EQDQRRRY.js";export{b as ExamplesModule,a as ExamplesRoutingModule}; +import{a,b}from"./chunk-ELAWHMJV.js";import"./chunk-33O7KYOH.js";import"./chunk-PBM5R43U.js";import"./chunk-S5UJW4WF.js";import"./chunk-EQDQRRRY.js";export{b as ExamplesModule,a as ExamplesRoutingModule}; diff --git a/dist/ng-select2/browser/chunk-BXGSGBGL.js b/dist/ng-select2/browser/chunk-YQYOKVC7.js similarity index 97% rename from dist/ng-select2/browser/chunk-BXGSGBGL.js rename to dist/ng-select2/browser/chunk-YQYOKVC7.js index ac7eed1..d042f8b 100644 --- a/dist/ng-select2/browser/chunk-BXGSGBGL.js +++ b/dist/ng-select2/browser/chunk-YQYOKVC7.js @@ -1 +1 @@ -import{a as _}from"./chunk-JZQVIJ3O.js";import"./chunk-4FOF4764.js";import{a as u,w as M}from"./chunk-IUSK23HG.js";import"./chunk-KWVA3REN.js";import{t as E,x,y as I}from"./chunk-7IHFBV5J.js";import{Cb as i,Db as n,Ec as h,Ib as v,Sa as t,Sb as a,Tb as l,db as y,ec as o,fc as r,hb as S,ka as f,ub as c}from"./chunk-S5UJW4WF.js";import"./chunk-EQDQRRRY.js";var A=(()=>{class d extends _{constructor(){super(...arguments),this.value36="",this.value36m=["NY","NC","RI","WV","VT","VA","AR","IA"],this.data36=u,this.data36m=u,this.selectionOverride=p=>`Selection (${p.size}${(p.options?.length||0)>0?": "+p.options.map(s=>s.label).join(", "):""}) `}static{this.\u0275fac=(()=>{let p;return function(e){return(p||(p=f(d)))(e||d)}})()}static{this.\u0275cmp=y({type:d,selectors:[["examples-selection-override"]],features:[S],decls:27,vars:29,consts:[[1,"container"],[1,"row"],["id","ex-34b",1,"col-12"],["selectionOverride","Test (%size%)","resettable","","id","select2-36",1,"col-6",3,"update","overlay","styleMode","data","value"],[1,"col-12","value"],["id","ex-36m",1,"col-12"],["selectionOverride","Test (%size%)","resettable","","id","select2-36-m","multiple","",1,"col-6",3,"update","overlay","styleMode","data","value"]],template:function(s,e){s&1&&(i(0,"h2"),a(1),o(2,"transloco"),n(),i(3,"div",0)(4,"div",1)(5,"h3",2),a(6),o(7,"transloco"),n(),i(8,"select2",3),v("update",function(m){return e.update("value36",m)}),n(),i(9,"div",4)(10,"span"),a(11),o(12,"transloco"),n(),i(13,"code"),a(14),o(15,"json"),n()(),i(16,"h3",5),a(17),o(18,"transloco"),n(),i(19,"select2",6),v("update",function(m){return e.update("value36m",m)}),n(),i(20,"div",4)(21,"span"),a(22),o(23,"transloco"),n(),i(24,"code"),a(25),o(26,"json"),n()()()()),s&2&&(t(),l(r(2,15,"Selection override")),t(5),l(r(7,17,"Simple & resettable")),t(2),c("overlay",e.overlay)("styleMode",e.styleMode)("data",e.data36)("value",e.value36),t(3),l(r(12,19,"value:")),t(3),l(r(15,21,e.value36)),t(3),l(r(18,23,"With multiple & resettable")),t(2),c("overlay",e.overlay)("styleMode",e.styleMode)("data",e.data36m)("value",e.value36m),t(3),l(r(23,25,"value:")),t(3),l(r(26,27,e.value36m)))},dependencies:[E,M,h,I,x],encapsulation:2})}}return d})();export{A as ExemplesSelectionOverrideComponent}; +import{a as _}from"./chunk-WJI5FBHD.js";import"./chunk-4FOF4764.js";import{a as u,w as M}from"./chunk-IUSK23HG.js";import"./chunk-KWVA3REN.js";import{t as E,x,y as I}from"./chunk-7IHFBV5J.js";import{Cb as i,Db as n,Ec as h,Ib as v,Sa as t,Sb as a,Tb as l,db as y,ec as o,fc as r,hb as S,ka as f,ub as c}from"./chunk-S5UJW4WF.js";import"./chunk-EQDQRRRY.js";var A=(()=>{class d extends _{constructor(){super(...arguments),this.value36="",this.value36m=["NY","NC","RI","WV","VT","VA","AR","IA"],this.data36=u,this.data36m=u,this.selectionOverride=p=>`Selection (${p.size}${(p.options?.length||0)>0?": "+p.options.map(s=>s.label).join(", "):""}) `}static{this.\u0275fac=(()=>{let p;return function(e){return(p||(p=f(d)))(e||d)}})()}static{this.\u0275cmp=y({type:d,selectors:[["examples-selection-override"]],features:[S],decls:27,vars:29,consts:[[1,"container"],[1,"row"],["id","ex-34b",1,"col-12"],["selectionOverride","Test (%size%)","resettable","","id","select2-36",1,"col-6",3,"update","overlay","styleMode","data","value"],[1,"col-12","value"],["id","ex-36m",1,"col-12"],["selectionOverride","Test (%size%)","resettable","","id","select2-36-m","multiple","",1,"col-6",3,"update","overlay","styleMode","data","value"]],template:function(s,e){s&1&&(i(0,"h2"),a(1),o(2,"transloco"),n(),i(3,"div",0)(4,"div",1)(5,"h3",2),a(6),o(7,"transloco"),n(),i(8,"select2",3),v("update",function(m){return e.update("value36",m)}),n(),i(9,"div",4)(10,"span"),a(11),o(12,"transloco"),n(),i(13,"code"),a(14),o(15,"json"),n()(),i(16,"h3",5),a(17),o(18,"transloco"),n(),i(19,"select2",6),v("update",function(m){return e.update("value36m",m)}),n(),i(20,"div",4)(21,"span"),a(22),o(23,"transloco"),n(),i(24,"code"),a(25),o(26,"json"),n()()()()),s&2&&(t(),l(r(2,15,"Selection override")),t(5),l(r(7,17,"Simple & resettable")),t(2),c("overlay",e.overlay)("styleMode",e.styleMode)("data",e.data36)("value",e.value36),t(3),l(r(12,19,"value:")),t(3),l(r(15,21,e.value36)),t(3),l(r(18,23,"With multiple & resettable")),t(2),c("overlay",e.overlay)("styleMode",e.styleMode)("data",e.data36m)("value",e.value36m),t(3),l(r(23,25,"value:")),t(3),l(r(26,27,e.value36m)))},dependencies:[E,M,h,I,x],encapsulation:2})}}return d})();export{A as ExemplesSelectionOverrideComponent}; diff --git a/dist/ng-select2/browser/index.html b/dist/ng-select2/browser/index.html index 8ff339e..67f32b6 100644 --- a/dist/ng-select2/browser/index.html +++ b/dist/ng-select2/browser/index.html @@ -11,5 +11,5 @@ - + diff --git a/dist/ng-select2/browser/main-3LGZAJW4.js b/dist/ng-select2/browser/main-3LGZAJW4.js deleted file mode 100644 index 49c12e7..0000000 --- a/dist/ng-select2/browser/main-3LGZAJW4.js +++ /dev/null @@ -1,16 +0,0 @@ -import{a as q}from"./chunk-FMHQTHM6.js";import{a as I,e as R}from"./chunk-TWHHM5EC.js";import{a as D,b as P,c as V,d as v}from"./chunk-33O7KYOH.js";import{a as C,b as _,c as L,d as A}from"./chunk-PBM5R43U.js";import"./chunk-IUSK23HG.js";import{e as S,j as H,o as N,p as T,q as E,t as z,w as F,x as B,y as G,z as O}from"./chunk-7IHFBV5J.js";import{$ as d,Cb as i,Db as r,Eb as b,Ib as k,Sa as c,Sb as a,Tb as m,V as x,W as l,Wb as j,Xb as w,Yb as M,db as y,eb as n,ec as u,fc as h}from"./chunk-S5UJW4WF.js";import"./chunk-EQDQRRRY.js";var W=(()=>{class e{constructor(){this.translate=d(F),this.language="en"}changeLanguage(o){this.translate.load(o).subscribe(()=>{this.translate.setActiveLang(o)}),document.documentElement.setAttribute("lang",o)}static{this.\u0275fac=function(t){return new(t||e)}}static{this.\u0275cmp=y({type:e,selectors:[["app-root"]],standalone:!1,decls:29,vars:10,consts:[["href","https://github.com/Harvest-Dev/ng-select2"],["decoding","async","width","149","height","149","src","https://github.blog/wp-content/uploads/2008/12/forkme_right_gray_6d6d6d.png","alt","Fork me on GitHub","loading","lazy",1,"attachment-full","size-full"],[1,"container"],[1,"row"],[1,"col-md-10"],[1,"col-2"],["routerLink","/","routerLinkActive","home"],["routerLink","/examples","routerLinkActive","active"],[1,"col-4"],["routerLink","/generator","routerLinkActive","active"],[1,"col-md-2"],["id","language",3,"ngModelChange","ngModel"],["value","en"],["value","fr"],[1,"col"]],template:function(t,p){t&1&&(i(0,"nav")(1,"a",0),b(2,"img",1),r(),i(3,"div",2)(4,"div",3)(5,"div",4)(6,"ul",3)(7,"li",5)(8,"a",6),a(9),u(10,"transloco"),r()(),i(11,"li",5)(12,"a",7),a(13),u(14,"transloco"),r()(),i(15,"li",8)(16,"a",9),a(17),u(18,"transloco"),r()()()(),i(19,"div",10)(20,"select",11),M("ngModelChange",function(s){return w(p.language,s)||(p.language=s),s}),k("ngModelChange",function(s){return p.changeLanguage(s)}),i(21,"option",12),a(22,"English"),r(),i(23,"option",13),a(24,"Fran\xE7ais"),r()()()()()(),i(25,"main",2)(26,"div",3)(27,"div",14),b(28,"router-outlet"),r()()()),t&2&&(c(9),m(h(10,4,"Home")),c(4),m(h(14,6,"Examples")),c(4),m(h(18,8,"Code generator")),c(3),j("ngModel",p.language))},dependencies:[D,P,V,T,E,N,S,H,B],styles:[`.cdk-overlay-container,.cdk-global-overlay-wrapper{pointer-events:none;top:0;left:0;height:100%;width:100%}.cdk-overlay-container{position:fixed;z-index:1000}.cdk-overlay-container:empty{display:none}.cdk-global-overlay-wrapper{display:flex;position:absolute;z-index:1000}.cdk-overlay-pane{position:absolute;pointer-events:auto;box-sizing:border-box;display:flex;max-width:100%;max-height:100%;z-index:1000}.cdk-overlay-backdrop{position:absolute;inset:0;pointer-events:auto;-webkit-tap-highlight-color:rgba(0,0,0,0);opacity:0;z-index:1000;transition:opacity .4s cubic-bezier(.25,.8,.25,1)}.cdk-overlay-backdrop-showing{opacity:1}@media (forced-colors: active){.cdk-overlay-backdrop-showing{opacity:.6}}.cdk-overlay-dark-backdrop{background:#00000052}.cdk-overlay-transparent-backdrop{transition:visibility 1ms linear,opacity 1ms linear;visibility:hidden;opacity:1}.cdk-overlay-transparent-backdrop.cdk-overlay-backdrop-showing,.cdk-high-contrast-active .cdk-overlay-transparent-backdrop{opacity:0;visibility:visible}.cdk-overlay-backdrop-noop-animation{transition:none}.cdk-overlay-connected-position-bounding-box{position:absolute;display:flex;flex-direction:column;min-width:1px;min-height:1px;z-index:1000}.cdk-global-scrollblock{position:fixed;width:100%;overflow-y:scroll}pre code.hljs{display:block;overflow-x:auto;padding:1em}code.hljs{padding:3px 5px}.hljs{color:#24292e;background:#fff}.hljs-doctag,.hljs-keyword,.hljs-meta .hljs-keyword,.hljs-template-tag,.hljs-template-variable,.hljs-type,.hljs-variable.language_{color:#d73a49}.hljs-title,.hljs-title.class_,.hljs-title.class_.inherited__,.hljs-title.function_{color:#6f42c1}.hljs-attr,.hljs-attribute,.hljs-literal,.hljs-meta,.hljs-number,.hljs-operator,.hljs-variable,.hljs-selector-attr,.hljs-selector-class,.hljs-selector-id{color:#005cc5}.hljs-regexp,.hljs-string,.hljs-meta .hljs-string{color:#032f62}.hljs-built_in,.hljs-symbol{color:#e36209}.hljs-comment,.hljs-code,.hljs-formula{color:#6a737d}.hljs-name,.hljs-quote,.hljs-selector-tag,.hljs-selector-pseudo{color:#22863a}.hljs-subst{color:#24292e}.hljs-section{color:#005cc5;font-weight:700}.hljs-bullet{color:#735c0f}.hljs-emphasis{color:#24292e;font-style:italic}.hljs-strong{color:#24292e;font-weight:700}.hljs-addition{color:#22863a;background-color:#f0fff4}.hljs-deletion{color:#b31d28;background-color:#ffeef0}:root{--select2-single-height: 28px;--select2-multiple-height: 28px;--select2-label-text-color: #000;--select2-required-color: red;--select2-selection-border-radius: 4px;--select2-selection-background: #fff;--select2-selection-disabled-background: #eee;--select2-selection-border-color: #aaa;--select2-selection-focus-border-color: #000;--select2-selection-text-color: #111;--select2-selection-line-height: 28px;--select2-selection-padding: 0 0 0 8px;--select2-selection-multiple-gap: 2px 5px;--select2-selection-multiple-padding: 2px 5px;--select2-selection-choice-background: #e4e4e4;--select2-selection-choice-text-color: #000;--select2-selection-choice-border-color: #aaa;--select2-selection-choice-close-color: #999;--select2-selection-choice-hover-close-color: #333;--select2-placeholder-color: #999;--select2-placeholder-overflow: ellipsis;--select2-no-result-color: #888;--select2-no-result-font-style: italic;--select2-too-much-result-color: #888;--select2-too-much-result-style: italic;--select2-reset-color: #999;--select2-arrow-color: #888;--select2-dropdown-background: #fff;--select2-dropdown-border-color: #aaa;--select2-overlay-backdrop: transparent;--select2-search-border-color: #aaa;--select2-search-background: #fff;--select2-search-border-radius: 0px;--select2-option-text-color: #000;--select2-option-disabled-text-color: #999;--select2-option-disabled-background: transparent;--select2-option-selected-text-color: #000;--select2-option-selected-background: #ddd;--select2-option-highlighted-text-color: #fff;--select2-option-highlighted-background: #5897fb;--select2-option-group-text-color: gray;--select2-option-group-background: transparent;--select2-option-padding: 6px;--select2-hint-text-color: #888;--select2-material-underline: #ddd;--select2-material-underline-active: #5a419e;--select2-material-underline-disabled: linear-gradient( to right, rgba(0, 0, 0, .26) 0, rgba(0, 0, 0, .26) 33%, transparent 0 );--select2-material-underline-invalid: red;--select2-material-placeholder-color: rgba(0, 0, 0, .38);--select2-material-selection-background: #ddd;--select2-material-option-selected-background: rgba(0, 0, 0, .04);--select2-material-option-highlighted-text-color: #000;--select2-material-option-selected-text-color: #ff5722}nav{position:sticky;top:0;z-index:1000;background-color:#ddd;padding:15px}nav ul{margin-bottom:5px;padding:0;font-size:20px;list-style:none}.attachment-full{position:fixed;top:0;right:0;z-index:100000}h3{margin:1em 0!important} -/*! Bundled license information: - -highlight.js/styles/github.css: - (*! - Theme: GitHub - Description: Light theme as seen on github.com - Author: github.com - Maintainer: @Hirse - Updated: 2021-05-15 - - Outdated base version: https://github.com/primer/github-syntax-light - Current colors taken from GitHub's CSS - *) -*/ -`],encapsulation:2})}}return e})();var Y=[{path:"home",loadComponent:()=>import("./chunk-KVQ6ZFMV.js").then(e=>e.AppHomeComponent)},{path:"examples",loadChildren:()=>import("./chunk-2VMRQMZD.js").then(e=>e.ExamplesModule)},{path:"generator",loadComponent:()=>import("./chunk-BRLML4ML.js").then(e=>e.AppGenComponent)},{path:"**",loadComponent:()=>import("./chunk-KVQ6ZFMV.js").then(e=>e.AppHomeComponent)}],U=(()=>{class e{static{this.\u0275fac=function(t){return new(t||e)}}static{this.\u0275mod=n({type:e})}static{this.\u0275inj=l({imports:[v.forRoot(Y,{useHash:!0}),v]})}}return e})();var J=(()=>{class e{constructor(){this.http=d(C)}getTranslation(o){return this.http.get(`./assets/i18n/${o}.json`)}static{this.\u0275fac=function(t){return new(t||e)}}static{this.\u0275prov=x({token:e,factory:e.\u0275fac,providedIn:"root"})}}return e})();var f={production:!0};var K=(()=>{class e{static{this.\u0275fac=function(t){return new(t||e)}}static{this.\u0275mod=n({type:e})}static{this.\u0275inj=l({providers:[O({config:{availableLangs:["en","fr"],defaultLang:"en",reRenderOnLangChange:!0,prodMode:f.production},loader:J})],imports:[G]})}}return e})();var Q=(()=>{class e{static{this.\u0275fac=function(t){return new(t||e)}}static{this.\u0275mod=n({type:e,bootstrap:[W]})}static{this.\u0275inj=l({providers:[_(),{provide:I,useValue:{coreLibraryLoader:()=>import("./chunk-C4C7V2FM.js"),lineNumbersLoader:()=>import("./chunk-PEU7JX63.js"),languages:{typescript:()=>import("./chunk-CYBYOOKK.js"),javascript:()=>import("./chunk-DBVJGVXE.js"),css:()=>import("./chunk-IMETLJPW.js"),xml:()=>import("./chunk-DOUVPFV5.js")}}}],imports:[A,U,z,R,K,q]})}}return e})();f.production&&void 0;L().bootstrapModule(Q).catch(e=>console.log(e)); diff --git a/dist/ng-select2/browser/main-IVZVN7XH.js b/dist/ng-select2/browser/main-IVZVN7XH.js new file mode 100644 index 0000000..b84089a --- /dev/null +++ b/dist/ng-select2/browser/main-IVZVN7XH.js @@ -0,0 +1,16 @@ +import{a as q}from"./chunk-RBPPVKZZ.js";import{a as I,e as R}from"./chunk-TWHHM5EC.js";import{a as D,b as P,c as V,d as v}from"./chunk-33O7KYOH.js";import{a as C,b as _,c as L,d as A}from"./chunk-PBM5R43U.js";import"./chunk-IUSK23HG.js";import{e as S,j as H,o as N,p as T,q as E,t as z,w as F,x as B,y as G,z as O}from"./chunk-7IHFBV5J.js";import{$ as d,Cb as i,Db as r,Eb as b,Ib as k,Sa as c,Sb as a,Tb as m,V as x,W as l,Wb as j,Xb as w,Yb as M,db as y,eb as n,ec as u,fc as h}from"./chunk-S5UJW4WF.js";import"./chunk-EQDQRRRY.js";var W=(()=>{class e{constructor(){this.translate=d(F),this.language="en"}changeLanguage(o){this.translate.load(o).subscribe(()=>{this.translate.setActiveLang(o)}),document.documentElement.setAttribute("lang",o)}static{this.\u0275fac=function(t){return new(t||e)}}static{this.\u0275cmp=y({type:e,selectors:[["app-root"]],standalone:!1,decls:29,vars:10,consts:[["href","https://github.com/Harvest-Dev/ng-select2"],["decoding","async","width","149","height","149","src","https://github.blog/wp-content/uploads/2008/12/forkme_right_gray_6d6d6d.png","alt","Fork me on GitHub","loading","lazy",1,"attachment-full","size-full"],[1,"container"],[1,"row"],[1,"col-md-10"],[1,"col-2"],["routerLink","/","routerLinkActive","home"],["routerLink","/examples/basic","routerLinkActive","active"],[1,"col-4"],["routerLink","/generator","routerLinkActive","active"],[1,"col-md-2"],["id","language",3,"ngModelChange","ngModel"],["value","en"],["value","fr"],[1,"col"]],template:function(t,p){t&1&&(i(0,"nav")(1,"a",0),b(2,"img",1),r(),i(3,"div",2)(4,"div",3)(5,"div",4)(6,"ul",3)(7,"li",5)(8,"a",6),a(9),u(10,"transloco"),r()(),i(11,"li",5)(12,"a",7),a(13),u(14,"transloco"),r()(),i(15,"li",8)(16,"a",9),a(17),u(18,"transloco"),r()()()(),i(19,"div",10)(20,"select",11),M("ngModelChange",function(s){return w(p.language,s)||(p.language=s),s}),k("ngModelChange",function(s){return p.changeLanguage(s)}),i(21,"option",12),a(22,"English"),r(),i(23,"option",13),a(24,"Fran\xE7ais"),r()()()()()(),i(25,"main",2)(26,"div",3)(27,"div",14),b(28,"router-outlet"),r()()()),t&2&&(c(9),m(h(10,4,"Home")),c(4),m(h(14,6,"Examples")),c(4),m(h(18,8,"Code generator")),c(3),j("ngModel",p.language))},dependencies:[D,P,V,T,E,N,S,H,B],styles:[`.cdk-overlay-container,.cdk-global-overlay-wrapper{pointer-events:none;top:0;left:0;height:100%;width:100%}.cdk-overlay-container{position:fixed;z-index:1000}.cdk-overlay-container:empty{display:none}.cdk-global-overlay-wrapper{display:flex;position:absolute;z-index:1000}.cdk-overlay-pane{position:absolute;pointer-events:auto;box-sizing:border-box;display:flex;max-width:100%;max-height:100%;z-index:1000}.cdk-overlay-backdrop{position:absolute;inset:0;pointer-events:auto;-webkit-tap-highlight-color:rgba(0,0,0,0);opacity:0;z-index:1000;transition:opacity .4s cubic-bezier(.25,.8,.25,1)}.cdk-overlay-backdrop-showing{opacity:1}@media (forced-colors: active){.cdk-overlay-backdrop-showing{opacity:.6}}.cdk-overlay-dark-backdrop{background:#00000052}.cdk-overlay-transparent-backdrop{transition:visibility 1ms linear,opacity 1ms linear;visibility:hidden;opacity:1}.cdk-overlay-transparent-backdrop.cdk-overlay-backdrop-showing,.cdk-high-contrast-active .cdk-overlay-transparent-backdrop{opacity:0;visibility:visible}.cdk-overlay-backdrop-noop-animation{transition:none}.cdk-overlay-connected-position-bounding-box{position:absolute;display:flex;flex-direction:column;min-width:1px;min-height:1px;z-index:1000}.cdk-global-scrollblock{position:fixed;width:100%;overflow-y:scroll}pre code.hljs{display:block;overflow-x:auto;padding:1em}code.hljs{padding:3px 5px}.hljs{color:#24292e;background:#fff}.hljs-doctag,.hljs-keyword,.hljs-meta .hljs-keyword,.hljs-template-tag,.hljs-template-variable,.hljs-type,.hljs-variable.language_{color:#d73a49}.hljs-title,.hljs-title.class_,.hljs-title.class_.inherited__,.hljs-title.function_{color:#6f42c1}.hljs-attr,.hljs-attribute,.hljs-literal,.hljs-meta,.hljs-number,.hljs-operator,.hljs-variable,.hljs-selector-attr,.hljs-selector-class,.hljs-selector-id{color:#005cc5}.hljs-regexp,.hljs-string,.hljs-meta .hljs-string{color:#032f62}.hljs-built_in,.hljs-symbol{color:#e36209}.hljs-comment,.hljs-code,.hljs-formula{color:#6a737d}.hljs-name,.hljs-quote,.hljs-selector-tag,.hljs-selector-pseudo{color:#22863a}.hljs-subst{color:#24292e}.hljs-section{color:#005cc5;font-weight:700}.hljs-bullet{color:#735c0f}.hljs-emphasis{color:#24292e;font-style:italic}.hljs-strong{color:#24292e;font-weight:700}.hljs-addition{color:#22863a;background-color:#f0fff4}.hljs-deletion{color:#b31d28;background-color:#ffeef0}:root{--select2-single-height: 28px;--select2-multiple-height: 28px;--select2-label-text-color: #000;--select2-required-color: red;--select2-selection-border-radius: 4px;--select2-selection-background: #fff;--select2-selection-disabled-background: #eee;--select2-selection-border-color: #aaa;--select2-selection-focus-border-color: #000;--select2-selection-text-color: #111;--select2-selection-line-height: 28px;--select2-selection-padding: 0 0 0 8px;--select2-selection-multiple-gap: 2px 5px;--select2-selection-multiple-padding: 2px 5px;--select2-selection-choice-background: #e4e4e4;--select2-selection-choice-text-color: #000;--select2-selection-choice-border-color: #aaa;--select2-selection-choice-close-color: #999;--select2-selection-choice-hover-close-color: #333;--select2-placeholder-color: #999;--select2-placeholder-overflow: ellipsis;--select2-no-result-color: #888;--select2-no-result-font-style: italic;--select2-too-much-result-color: #888;--select2-too-much-result-style: italic;--select2-reset-color: #999;--select2-arrow-color: #888;--select2-dropdown-background: #fff;--select2-dropdown-border-color: #aaa;--select2-overlay-backdrop: transparent;--select2-search-border-color: #aaa;--select2-search-background: #fff;--select2-search-border-radius: 0px;--select2-option-text-color: #000;--select2-option-disabled-text-color: #999;--select2-option-disabled-background: transparent;--select2-option-selected-text-color: #000;--select2-option-selected-background: #ddd;--select2-option-highlighted-text-color: #fff;--select2-option-highlighted-background: #5897fb;--select2-option-group-text-color: gray;--select2-option-group-background: transparent;--select2-option-padding: 6px;--select2-hint-text-color: #888;--select2-material-underline: #ddd;--select2-material-underline-active: #5a419e;--select2-material-underline-disabled: linear-gradient( to right, rgba(0, 0, 0, .26) 0, rgba(0, 0, 0, .26) 33%, transparent 0 );--select2-material-underline-invalid: red;--select2-material-placeholder-color: rgba(0, 0, 0, .38);--select2-material-selection-background: #ddd;--select2-material-option-selected-background: rgba(0, 0, 0, .04);--select2-material-option-highlighted-text-color: #000;--select2-material-option-selected-text-color: #ff5722}nav{position:sticky;top:0;z-index:1000;background-color:#ddd;padding:15px}nav ul{margin-bottom:5px;padding:0;font-size:20px;list-style:none}.attachment-full{position:fixed;top:0;right:0;z-index:100000}h3{margin:1em 0!important} +/*! Bundled license information: + +highlight.js/styles/github.css: + (*! + Theme: GitHub + Description: Light theme as seen on github.com + Author: github.com + Maintainer: @Hirse + Updated: 2021-05-15 + + Outdated base version: https://github.com/primer/github-syntax-light + Current colors taken from GitHub's CSS + *) +*/ +`],encapsulation:2})}}return e})();var Y=[{path:"home",loadComponent:()=>import("./chunk-KVQ6ZFMV.js").then(e=>e.AppHomeComponent)},{path:"examples",loadChildren:()=>import("./chunk-X725EX6V.js").then(e=>e.ExamplesModule)},{path:"generator",loadComponent:()=>import("./chunk-DOB45RO3.js").then(e=>e.AppGenComponent)},{path:"**",loadComponent:()=>import("./chunk-KVQ6ZFMV.js").then(e=>e.AppHomeComponent)}],U=(()=>{class e{static{this.\u0275fac=function(t){return new(t||e)}}static{this.\u0275mod=n({type:e})}static{this.\u0275inj=l({imports:[v.forRoot(Y,{useHash:!0}),v]})}}return e})();var J=(()=>{class e{constructor(){this.http=d(C)}getTranslation(o){return this.http.get(`./assets/i18n/${o}.json`)}static{this.\u0275fac=function(t){return new(t||e)}}static{this.\u0275prov=x({token:e,factory:e.\u0275fac,providedIn:"root"})}}return e})();var f={production:!0};var K=(()=>{class e{static{this.\u0275fac=function(t){return new(t||e)}}static{this.\u0275mod=n({type:e})}static{this.\u0275inj=l({providers:[O({config:{availableLangs:["en","fr"],defaultLang:"en",reRenderOnLangChange:!0,prodMode:f.production},loader:J})],imports:[G]})}}return e})();var Q=(()=>{class e{static{this.\u0275fac=function(t){return new(t||e)}}static{this.\u0275mod=n({type:e,bootstrap:[W]})}static{this.\u0275inj=l({providers:[_(),{provide:I,useValue:{coreLibraryLoader:()=>import("./chunk-C4C7V2FM.js"),lineNumbersLoader:()=>import("./chunk-PEU7JX63.js"),languages:{typescript:()=>import("./chunk-CYBYOOKK.js"),javascript:()=>import("./chunk-DBVJGVXE.js"),css:()=>import("./chunk-IMETLJPW.js"),xml:()=>import("./chunk-DOUVPFV5.js")}}}],imports:[A,U,z,R,K,q]})}}return e})();f.production&&void 0;L().bootstrapModule(Q).catch(e=>console.log(e)); diff --git a/src/app/app-gen.component.html b/src/app/app-gen.component.html index c889ffe..13d5944 100644 --- a/src/app/app-gen.component.html +++ b/src/app/app-gen.component.html @@ -58,23 +58,25 @@

{{ 'Parameters' | transloco }}

-
+
-
- - -
+ @if (!ctrlForm.value?.multiple) { +
+ + +
+ }
@@ -87,16 +89,18 @@

{{ 'Parameters' | transloco }}

-
- - -
+ @if (ctrlForm.value?.multiple) { +
+ + +
+ }
- +
diff --git a/src/app/app.component.html b/src/app/app.component.html index 67ffceb..c6257fd 100644 --- a/src/app/app.component.html +++ b/src/app/app.component.html @@ -14,7 +14,7 @@ diff --git a/src/app/examples/examples-events.component.html b/src/app/examples/examples-events.component.html index 9f66bb4..3afc754 100644 --- a/src/app/examples/examples-events.component.html +++ b/src/app/examples/examples-events.component.html @@ -2,7 +2,7 @@

{{ 'Events' | transloco }}

-

+

[data]="data8" autoCreate (update)="update('update', $event)" - (change)="change('change', $event)" (blur)="blur('blur', $event)" (focus)="focus('focus', $event)" (open)="open('open', $event)" diff --git a/src/app/examples/examples-events.component.ts b/src/app/examples/examples-events.component.ts index f8df943..00c5a40 100644 --- a/src/app/examples/examples-events.component.ts +++ b/src/app/examples/examples-events.component.ts @@ -50,11 +50,6 @@ export class ExemplesEventsComponent extends Examples { this.event.push({ key, type: 'Select2', event: '[object: Select2]' }); } - override change(key: string, event: Event) { - super.change(key, event); - this.event.push({ key, type: 'Event', event: event }); - } - override search(key: string, event: Select2SearchEvent) { super.search(key, event); this.event.push({ diff --git a/src/app/examples/examples.ts b/src/app/examples/examples.ts index 22887f5..e6ad207 100644 --- a/src/app/examples/examples.ts +++ b/src/app/examples/examples.ts @@ -40,10 +40,6 @@ export class Examples { console.log(key, event); } - change(key: string, event: Event) { - console.log(key, event); - } - search(key: string, event: Select2SearchEvent) { console.log(key, event); }