slim-select 2.0.2 → 2.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (66) hide show
  1. package/README.md +8 -0
  2. package/dist/index.d.ts +1 -1
  3. package/dist/render.d.ts +10 -3
  4. package/dist/select.d.ts +6 -6
  5. package/dist/settings.d.ts +0 -3
  6. package/dist/slimselect.cjs.js +202 -67
  7. package/dist/slimselect.css +1 -1
  8. package/dist/slimselect.css.map +1 -1
  9. package/dist/slimselect.es.js +202 -67
  10. package/dist/slimselect.global.js +202 -67
  11. package/dist/slimselect.js +202 -67
  12. package/dist/slimselect.min.js +1 -1
  13. package/dist/slimselect.umd.js +202 -67
  14. package/dist/slimselect.umd.min.js +1 -1
  15. package/dist/store.d.ts +5 -0
  16. package/docs/assets/data.js +7 -3
  17. package/docs/assets/home.css +1 -1
  18. package/docs/assets/home.js +1 -1
  19. package/docs/assets/index.css +1 -1
  20. package/docs/assets/index.js +7 -7
  21. package/docs/assets/index2.js +119 -35
  22. package/docs/assets/index3.js +39 -23
  23. package/docs/assets/index4.js +1 -1
  24. package/docs/assets/index5.js +147 -9
  25. package/docs/assets/install.js +4 -4
  26. package/docs/assets/selects.js +1 -1
  27. package/package.json +11 -3
  28. package/src/docs/app.vue +6 -5
  29. package/src/docs/{images → assets/images}/check-mark.svg +0 -0
  30. package/src/docs/{images → assets/images}/chrome.svg +0 -0
  31. package/src/docs/{images → assets/images}/firefox.svg +0 -0
  32. package/src/docs/{images → assets/images}/github.png +0 -0
  33. package/src/docs/{images → assets/images}/ie.svg +0 -0
  34. package/src/docs/{images → assets/images}/npm.png +0 -0
  35. package/src/docs/{images → assets/images}/opera.svg +0 -0
  36. package/src/docs/{images → assets/images}/safari.svg +0 -0
  37. package/src/docs/assets/scss/misc.scss +7 -0
  38. package/src/docs/env.d.ts +1 -0
  39. package/src/docs/pages/data.vue +4 -0
  40. package/src/docs/pages/events/addable.vue +22 -6
  41. package/src/docs/pages/events/before_after_change.vue +15 -1
  42. package/src/docs/pages/events/search.vue +31 -16
  43. package/src/docs/pages/frameworks/vue.vue +375 -7
  44. package/src/docs/pages/home.vue +104 -57
  45. package/src/docs/pages/methods/get_data.vue +2 -1
  46. package/src/docs/pages/methods/open_close.vue +1 -1
  47. package/src/docs/pages/settings/closable.vue +128 -0
  48. package/src/docs/pages/settings/index.vue +6 -3
  49. package/src/docs/pages/settings/select_all.vue +88 -0
  50. package/src/slim-select/index.ts +4 -2
  51. package/src/slim-select/render.ts +247 -59
  52. package/src/slim-select/rollup.config.mjs +5 -0
  53. package/src/slim-select/select.ts +48 -31
  54. package/src/slim-select/settings.ts +0 -4
  55. package/src/slim-select/slimselect.scss +112 -11
  56. package/src/slim-select/store.ts +19 -1
  57. package/src/vue/README.md +48 -0
  58. package/src/vue/dist/slimselectvue.es.js +1752 -0
  59. package/src/vue/dist/slimselectvue.global.js +1755 -0
  60. package/src/vue/dist/slimselectvue.ssr.js +1754 -0
  61. package/src/vue/hello.ts +5 -0
  62. package/src/vue/package.json +28 -0
  63. package/src/vue/rollup.config.mjs +44 -0
  64. package/src/vue/slimselect.vue +39 -5
  65. package/src/vue/tsconfig.json +14 -0
  66. package/src/docs/pages/settings/select_by_group.vue +0 -46
@@ -1,4 +1,4 @@
1
- import{d as l,S as o,_ as i,o as a,c,a as e,f as t,b as v,g as r,h as p}from"./index.js";const j=l({name:"AlwaysOpen",mounted(){new o({select:this.$refs.alwaysOpenSingle,settings:{alwaysOpen:!0,contentLocation:this.$refs.alwaysOpenSingleContent,contentPosition:"relative"}}),new o({select:this.$refs.alwaysOpenMultiple,settings:{alwaysOpen:!0,contentLocation:this.$refs.alwaysOpenMultipleContent,contentPosition:"relative"}})}}),L={id:"alwaysOpen",class:"content"},G=e("h2",{class:"header"},"alwaysOpen",-1),A=e("p",null," alwaysOpen option is used to keep the select open at all times. This is useful for when you want to display the options at all times. ",-1),I={class:"row"},R={style:{height:"auto"}},k={ref:"alwaysOpenSingle"},q=e("option",{value:"value1"},"Value 1",-1),N=e("option",{value:"value2"},"Value 2",-1),U=e("option",{value:"value3"},"Value 3",-1),W=[q,N,U],Y={ref:"alwaysOpenSingleContent"},F={style:{height:"auto"}},z={ref:"alwaysOpenMultiple",multiple:""},J=e("option",{value:"value1"},"Value 1",-1),K=e("option",{value:"value2"},"Value 2",-1),Q=e("option",{value:"value3"},"Value 3",-1),X=e("option",{value:"value4"},"Value 4",-1),Z=[J,K,Q,X],ee={ref:"alwaysOpenMultipleContent"},te=e("pre",null,[t(" "),e("code",{class:"language-javascript"},`
1
+ import{d as s,S as o,_ as a,o as i,c,a as e,f as t,e as v,r,b as h}from"./index.js";const E=s({name:"AlwaysOpen",mounted(){new o({select:this.$refs.alwaysOpenSingle,settings:{alwaysOpen:!0,contentLocation:this.$refs.alwaysOpenSingleContent,contentPosition:"relative"}}),new o({select:this.$refs.alwaysOpenMultiple,settings:{alwaysOpen:!0,contentLocation:this.$refs.alwaysOpenMultipleContent,contentPosition:"relative"}})}}),j={id:"alwaysOpen",class:"content"},q=e("h2",{class:"header"},"alwaysOpen",-1),I=e("p",null," alwaysOpen option is used to keep the select open at all times. This is useful for when you want to display the options at all times. ",-1),R={class:"row"},k={style:{height:"auto"}},G={ref:"alwaysOpenSingle"},N=e("option",{value:"value1"},"Value 1",-1),U=e("option",{value:"value2"},"Value 2",-1),Y=e("option",{value:"value3"},"Value 3",-1),W=[N,U,Y],F={ref:"alwaysOpenSingleContent"},z={style:{height:"auto"}},J={ref:"alwaysOpenMultiple",multiple:""},K=e("option",{value:"value1"},"Value 1",-1),Q=e("option",{value:"value2"},"Value 2",-1),X=e("option",{value:"value3"},"Value 3",-1),Z=e("option",{value:"value4"},"Value 4",-1),ee=[K,Q,X,Z],te={ref:"alwaysOpenMultipleContent"},oe=e("pre",null,[t(" "),e("code",{class:"language-javascript"},`
2
2
  new SlimSelect({
3
3
  select: '#selectElement',
4
4
  settings: {
@@ -11,7 +11,7 @@ import{d as l,S as o,_ as i,o as a,c,a as e,f as t,b as v,g as r,h as p}from"./i
11
11
  }
12
12
  })
13
13
  `),t(`
14
- `)],-1),oe=e("pre",null,[t(" "),e("code",{class:"language-html"},`
14
+ `)],-1),le=e("pre",null,[t(" "),e("code",{class:"language-html"},`
15
15
  <select id="selectElement">
16
16
  <option value="value1">Value 1</option>
17
17
  <option value="value2">Value 2</option>
@@ -21,7 +21,60 @@ import{d as l,S as o,_ as i,o as a,c,a as e,f as t,b as v,g as r,h as p}from"./i
21
21
  <!-- The content will go in this div -->
22
22
  <div id="local"></div>
23
23
  `),t(`
24
- `)],-1);function se(s,n,u,d,_,h){return a(),c("div",L,[G,A,e("div",I,[e("div",R,[e("select",k,W,512),e("div",Y,null,512)]),e("div",F,[e("select",z,Z,512),e("div",ee,null,512)])]),te,oe])}const ne=i(j,[["render",se]]),le=l({name:"CloseOnSelect",mounted(){new o({select:this.$refs.closeOnSelectSingle,settings:{closeOnSelect:!1}}),new o({select:this.$refs.closeOnSelectMultiple,settings:{closeOnSelect:!1,selectByGroup:!0}})}}),ie={id:"closeOnSelect",class:"content"},ae=e("h2",{class:"header"},"closeOnSelect",-1),ce=e("p",null," closeOnSelect is a boolean value in which determines whether or not to close the content area upon selecting a value. ",-1),ue={class:"row"},de={ref:"closeOnSelectSingle"},_e=v('<option value="value1">Value 1</option><option value="value2">Value 2</option><option value="value3">Value 3</option><optgroup label="Super Values"><option value="value11">Value 1</option><option value="value22">Value 2</option><option value="value33">Value 3</option></optgroup>',4),he=[_e],re={ref:"closeOnSelectMultiple",multiple:""},pe=v('<option value="value1">Value 1</option><option value="value2">Value 2</option><option value="value3">Value 3</option><optgroup label="Super Values"><option value="value11">Value 1</option><option value="value22">Value 2</option><option value="value33">Value 3</option></optgroup>',4),ve=[pe],$e=e("pre",null,[t(" "),e("code",{class:"language-javascript"},`
24
+ `)],-1);function ne(l,n,u,d,p,_){return i(),c("div",j,[q,I,e("div",R,[e("div",k,[e("select",G,W,512),e("div",F,null,512)]),e("div",z,[e("select",J,ee,512),e("div",te,null,512)])]),oe,le])}const se=a(E,[["render",ne]]),ae=s({name:"Closable",mounted(){new o({select:this.$refs.closableSingle}),new o({select:this.$refs.closableMultiple})}}),ie={id:"closable",class:"content"},ce=v('<h2 class="header">closable</h2><p>closable is a optgroup settings that adds the ability to have closable optgroup options.</p><p>Values: <strong>&quot;off&quot;</strong> | <strong>&quot;open&quot;</strong> | <strong>&quot;close&quot;</strong></p><p>Default: <strong>&quot;off&quot;</strong></p><div class="alert info">You can set closable either by data or by html dataset added to the optgroup element</div>',5),ue={class:"row"},de={ref:"closableSingle"},pe=v('<optgroup label="Label 1" data-closable="off"><option value="value1">Value 1</option><option value="value2">Value 2</option><option value="value3">Value 3</option></optgroup><optgroup label="Label 2" data-closable="open"><option value="value4">Value 4</option><option value="value5">Value 5</option><option value="value6">Value 6</option></optgroup><optgroup label="Label 3" data-closable="close"><option value="value7">Value 7</option><option value="value8">Value 8</option><option value="value9">Value 9</option></optgroup>',3),_e=[pe],re={ref:"closableMultiple",multiple:""},he=v('<optgroup label="Label 1" data-selectall="true" data-closable="off"><option value="value1">Value 1</option><option value="value2">Value 2</option><option value="value3">Value 3</option></optgroup><optgroup label="Label 2" data-selectall="true" data-closable="open"><option value="value4">Value 4</option><option value="value5">Value 5</option><option value="value6">Value 6</option></optgroup><optgroup label="Label 3" data-selectall="true" data-closable="close"><option value="value7">Value 7</option><option value="value8">Value 8</option><option value="value9">Value 9</option></optgroup>',3),ve=[he],$e=e("br",null,null,-1),me=e("h3",null,"Via data",-1),ge=e("pre",null,[t(" "),e("code",{class:"language-javascript"},`
25
+ new SlimSelect({
26
+ select: '#selectElement',
27
+ data: [
28
+ {
29
+ label: 'Label 1',
30
+ closable: 'off',
31
+ options: [
32
+ { text: 'Option 1', value: '1' },
33
+ { text: 'Option 2', value: '2' },
34
+ { text: 'Option 3', value: '3' },
35
+ ],
36
+ },
37
+ {
38
+ label: 'Label 2',
39
+ closable: 'open',
40
+ options: [
41
+ { text: 'Option 4', value: '4' },
42
+ { text: 'Option 5', value: '5' },
43
+ { text: 'Option 6', value: '6' },
44
+ ],
45
+ },
46
+ {
47
+ label: 'Label 3',
48
+ closable: 'close',
49
+ options: [
50
+ { text: 'Option 7', value: '7' },
51
+ { text: 'Option 8', value: '8' },
52
+ { text: 'Option 9', value: '9' },
53
+ ],
54
+ },
55
+ ],
56
+ })
57
+ `),t(`
58
+ `)],-1),fe=e("br",null,null,-1),we=e("h3",null,"Via html",-1),Se=e("pre",null,[t(" "),e("code",{class:"language-html"},`
59
+ <select ref="closable" multiple>
60
+ <optgroup label="Label 1" data-closable="off">
61
+ <option value="value1">Value 1</option>
62
+ <option value="value2">Value 2</option>
63
+ <option value="value3">Value 3</option>
64
+ </optgroup>
65
+ <optgroup label="Label 2" data-closable="open">
66
+ <option value="value4">Value 4</option>
67
+ <option value="value5">Value 5</option>
68
+ <option value="value6">Value 6</option>
69
+ </optgroup>
70
+ <optgroup label="Label 3" data-closable="close">
71
+ <option value="value7">Value 7</option>
72
+ <option value="value8">Value 8</option>
73
+ <option value="value9">Value 9</option>
74
+ </optgroup>
75
+ </select>
76
+ `),t(`
77
+ `)],-1);function be(l,n,u,d,p,_){return i(),c("div",ie,[ce,e("div",ue,[e("select",de,_e,512),e("select",re,ve,512)]),$e,me,ge,fe,we,Se])}const ye=a(ae,[["render",be]]),Ve=s({name:"CloseOnSelect",mounted(){new o({select:this.$refs.closeOnSelectSingle,settings:{closeOnSelect:!1}}),new o({select:this.$refs.closeOnSelectMultiple,settings:{closeOnSelect:!1,selectByGroup:!0}})}}),xe={id:"closeOnSelect",class:"content"},Oe=e("h2",{class:"header"},"closeOnSelect",-1),Me=e("p",null," closeOnSelect is a boolean value in which determines whether or not to close the content area upon selecting a value. ",-1),De={class:"row"},Pe={ref:"closeOnSelectSingle"},Te=v('<option value="value1">Value 1</option><option value="value2">Value 2</option><option value="value3">Value 3</option><optgroup label="Super Values"><option value="value11">Value 1</option><option value="value22">Value 2</option><option value="value33">Value 3</option></optgroup>',4),Ce=[Te],Le={ref:"closeOnSelectMultiple",multiple:""},Be=v('<option value="value1">Value 1</option><option value="value2">Value 2</option><option value="value3">Value 3</option><optgroup label="Super Values"><option value="value11">Value 1</option><option value="value22">Value 2</option><option value="value33">Value 3</option></optgroup>',4),Ae=[Be],He=e("pre",null,[t(" "),e("code",{class:"language-javascript"},`
25
78
  new SlimSelect({
26
79
  select: '#search',
27
80
  settings: {
@@ -29,7 +82,7 @@ import{d as l,S as o,_ as i,o as a,c,a as e,f as t,b as v,g as r,h as p}from"./i
29
82
  },
30
83
  })
31
84
  `),t(`
32
- `)],-1);function me(s,n,u,d,_,h){return a(),c("div",ie,[ae,ce,e("div",ue,[e("select",de,he,512),e("select",re,ve,512)]),$e])}const ge=i(le,[["render",me]]),fe=l({name:"ContentLocation",mounted(){new o({select:this.$refs.contentLocation,settings:{contentLocation:this.$refs.local}})}}),we={id:"contentLocation",class:"content"},Se=e("h2",{class:"header"},"contentLocation",-1),ye=e("p",null," contentLocation will allow you to set the location of where the content section of slim select. By default every content div is appended to the body. ",-1),Ve=e("p",null," The content container is the bottom half of slim select. This includes the search input field and available options ",-1),be={class:"row"},xe={ref:"contentLocation",style:{width:"50%"}},Me=e("option",{value:"value1"},"Value 1",-1),De=e("option",{value:"value2"},"Value 2",-1),Oe=e("option",{value:"value3"},"Value 3",-1),Pe=[Me,De,Oe],Be={ref:"local"},Te=e("pre",null,[t(" "),e("code",{class:"language-javascript"},`
85
+ `)],-1);function Ee(l,n,u,d,p,_){return i(),c("div",xe,[Oe,Me,e("div",De,[e("select",Pe,Ce,512),e("select",Le,Ae,512)]),He])}const je=a(Ve,[["render",Ee]]),qe=s({name:"ContentLocation",mounted(){new o({select:this.$refs.contentLocation,settings:{contentLocation:this.$refs.local}})}}),Ie={id:"contentLocation",class:"content"},Re=e("h2",{class:"header"},"contentLocation",-1),ke=e("p",null," contentLocation will allow you to set the location of where the content section of slim select. By default every content div is appended to the body. ",-1),Ge=e("p",null," The content container is the bottom half of slim select. This includes the search input field and available options ",-1),Ne={class:"row"},Ue={ref:"contentLocation",style:{width:"50%"}},Ye=e("option",{value:"value1"},"Value 1",-1),We=e("option",{value:"value2"},"Value 2",-1),Fe=e("option",{value:"value3"},"Value 3",-1),ze=[Ye,We,Fe],Je={ref:"local"},Ke=e("pre",null,[t(" "),e("code",{class:"language-javascript"},`
33
86
  new SlimSelect({
34
87
  select: '#selectElement',
35
88
  settings: {
@@ -37,7 +90,7 @@ import{d as l,S as o,_ as i,o as a,c,a as e,f as t,b as v,g as r,h as p}from"./i
37
90
  }
38
91
  })
39
92
  `),t(`
40
- `)],-1),Ce=e("pre",null,[t(" "),e("code",{class:"language-html"},`
93
+ `)],-1),Qe=e("pre",null,[t(" "),e("code",{class:"language-html"},`
41
94
  <select id="contentLocation">
42
95
  <option value="value1">Value 1</option>
43
96
  <option value="value2">Value 2</option>
@@ -47,7 +100,7 @@ import{d as l,S as o,_ as i,o as a,c,a as e,f as t,b as v,g as r,h as p}from"./i
47
100
  <!-- The content will go in this div -->
48
101
  <div id="local"></div>
49
102
  `),t(`
50
- `)],-1);function He(s,n,u,d,_,h){return a(),c("div",we,[Se,ye,Ve,e("div",be,[e("select",xe,Pe,512),e("div",Be,null,512)]),Te,Ce])}const Ee=i(fe,[["render",He]]),je=l({name:"ContentPosition",mounted(){new o({select:this.$refs.contentPositionRelative,settings:{contentPosition:"relative",contentLocation:this.$refs.contentPositionRelativeContent}}),new o({select:this.$refs.contentPositionAbsolute,settings:{contentPosition:"absolute"}})}});const Le={id:"contentPosition",class:"content"},Ge=e("h2",{class:"header"},"contentPosition",-1),Ae=e("p",null,[t("contentPosition will set the css position to either relative. Default is "),e("b",null,"'absolute'")],-1),Ie=e("div",{class:"alert info"}," If you do use relative position be sure to set the contentLocation to an element that will work best for your use case. Otherwise SlimSelect will add you content to the body of the html. See example usage below. ",-1),Re={class:"row"},ke={ref:"contentPositionRelative",class:"relative"},qe=e("option",{"data-placeholder":"true"},"Relative",-1),Ne=e("option",{value:"value1"},"Value 1",-1),Ue=e("option",{value:"value2"},"Value 2",-1),We=e("option",{value:"value3"},"Value 3",-1),Ye=[qe,Ne,Ue,We],Fe={ref:"contentPositionRelativeContent"},ze={ref:"contentPositionAbsolute",class:"absolute"},Je=e("option",{"data-placeholder":"true"},"Absolute",-1),Ke=e("option",{value:"value1"},"Value 1",-1),Qe=e("option",{value:"value2"},"Value 2",-1),Xe=e("option",{value:"value3"},"Value 3",-1),Ze=[Je,Ke,Qe,Xe],et=e("pre",null,[t(" "),e("code",{class:"language-javascript"},`
103
+ `)],-1);function Xe(l,n,u,d,p,_){return i(),c("div",Ie,[Re,ke,Ge,e("div",Ne,[e("select",Ue,ze,512),e("div",Je,null,512)]),Ke,Qe])}const Ze=a(qe,[["render",Xe]]),et=s({name:"ContentPosition",mounted(){new o({select:this.$refs.contentPositionRelative,settings:{contentPosition:"relative",contentLocation:this.$refs.contentPositionRelativeContent}}),new o({select:this.$refs.contentPositionAbsolute,settings:{contentPosition:"absolute"}})}});const tt={id:"contentPosition",class:"content"},ot=e("h2",{class:"header"},"contentPosition",-1),lt=e("p",null,[t("contentPosition will set the css position to either relative. Default is "),e("b",null,"'absolute'")],-1),nt=e("div",{class:"alert info"}," If you do use relative position be sure to set the contentLocation to an element that will work best for your use case. Otherwise SlimSelect will add you content to the body of the html. See example usage below. ",-1),st={class:"row"},at={ref:"contentPositionRelative",class:"relative"},it=e("option",{"data-placeholder":"true"},"Relative",-1),ct=e("option",{value:"value1"},"Value 1",-1),ut=e("option",{value:"value2"},"Value 2",-1),dt=e("option",{value:"value3"},"Value 3",-1),pt=[it,ct,ut,dt],_t={ref:"contentPositionRelativeContent"},rt={ref:"contentPositionAbsolute",class:"absolute"},ht=e("option",{"data-placeholder":"true"},"Absolute",-1),vt=e("option",{value:"value1"},"Value 1",-1),$t=e("option",{value:"value2"},"Value 2",-1),mt=e("option",{value:"value3"},"Value 3",-1),gt=[ht,vt,$t,mt],ft=e("pre",null,[t(" "),e("code",{class:"language-javascript"},`
51
104
  new SlimSelect({
52
105
  select: '#selectElement',
53
106
  settings: {
@@ -59,14 +112,14 @@ import{d as l,S as o,_ as i,o as a,c,a as e,f as t,b as v,g as r,h as p}from"./i
59
112
  }
60
113
  })
61
114
  `),t(`
62
- `)],-1);function tt(s,n,u,d,_,h){return a(),c("div",Le,[Ge,Ae,Ie,e("div",Re,[e("select",ke,Ye,512),e("div",Fe,null,512),e("select",ze,Ze,512)]),et])}const ot=i(je,[["render",tt]]),st=l({name:"Css",mounted(){new o({select:this.$refs.selectClass}),new o({select:this.$refs.optionClass})}});const nt={id:"cssClass",class:"content"},lt=e("h2",{class:"header"},"css class",-1),it=e("p",null," Slim select will inherit any classes that were added to the original select element. This includes options as well. ",-1),at={class:"row"},ct={ref:"selectClass",class:"select-class"},ut=e("option",{value:"value1"},"Value 1",-1),dt=e("option",{value:"value2"},"Value 2",-1),_t=e("option",{value:"value3"},"Value 3",-1),ht=[ut,dt,_t],rt={ref:"optionClass",class:"option-class"},pt=e("option",{class:"red",value:"value1"},"Red",-1),vt=e("option",{class:"green",value:"value2"},"Green",-1),$t=e("option",{class:"blue",value:"value3"},"Blue",-1),mt=[pt,vt,$t],gt=e("pre",null,[t(" "),e("code",{class:"language-html"},`
115
+ `)],-1);function wt(l,n,u,d,p,_){return i(),c("div",tt,[ot,lt,nt,e("div",st,[e("select",at,pt,512),e("div",_t,null,512),e("select",rt,gt,512)]),ft])}const St=a(et,[["render",wt]]),bt=s({name:"Css",mounted(){new o({select:this.$refs.selectClass}),new o({select:this.$refs.optionClass})}});const yt={id:"cssClass",class:"content"},Vt=e("h2",{class:"header"},"css class",-1),xt=e("p",null," Slim select will inherit any classes that were added to the original select element. This includes options as well. ",-1),Ot={class:"row"},Mt={ref:"selectClass",class:"select-class"},Dt=e("option",{value:"value1"},"Value 1",-1),Pt=e("option",{value:"value2"},"Value 2",-1),Tt=e("option",{value:"value3"},"Value 3",-1),Ct=[Dt,Pt,Tt],Lt={ref:"optionClass",class:"option-class"},Bt=e("option",{class:"red",value:"value1"},"Red",-1),At=e("option",{class:"green",value:"value2"},"Green",-1),Ht=e("option",{class:"blue",value:"value3"},"Blue",-1),Et=[Bt,At,Ht],jt=e("pre",null,[t(" "),e("code",{class:"language-html"},`
63
116
  <select id="select-class" class="classItems">
64
117
  <option class="red" value="value1">Value 1</option>
65
118
  <option class="green" value="value2">Value 2</option>
66
119
  <option class="blue" value="value3">Value 3</option>
67
120
  </select>
68
121
  `),t(`
69
- `)],-1);function ft(s,n,u,d,_,h){return a(),c("div",nt,[lt,it,e("div",at,[e("select",ct,ht,512),e("select",rt,mt,512)]),gt])}const wt=i(st,[["render",ft]]),St=l({name:"DataAttributes",mounted(){new o({select:this.$refs.optionsSingle}),new o({select:this.$refs.optionsMultiple})}}),yt={id:"dataAttributes",class:"content"},Vt=e("h2",{class:"header"},"Data Attributes",-1),bt=e("p",null," Slim select will take on attributes of the original as best as possible. Below are example usages of attributes added to the underlining select options that slim select picked up and used ",-1),xt={class:"row"},Mt={ref:"optionsSingle"},Dt=v('<option data-placeholder="true"></option><option value="value1" data-info="Here is info">Data Attributes</option><option value="value2" disabled>Disabled Option</option><option value="value3" class="green">Class Green</option><option value="value4" style="color:purple;">Inline Style</option>',5),Ot=[Dt],Pt={ref:"optionsMultiple",multiple:""},Bt=e("option",{value:"value1","data-info":"Here is info"},"Data Attributes",-1),Tt=e("option",{value:"value2",disabled:""},"Disabled Option",-1),Ct=e("option",{value:"value3",class:"green"},"Class Green",-1),Ht=e("option",{value:"value4",style:{color:"purple"}},"Inline Style",-1),Et=[Bt,Tt,Ct,Ht];function jt(s,n,u,d,_,h){return a(),c("div",yt,[Vt,bt,e("div",xt,[e("select",Mt,Ot,512),e("select",Pt,Et,512)])])}const Lt=i(St,[["render",jt]]),Gt=l({name:"Deselect",mounted(){new o({select:this.$refs.allowDeselectSingle,settings:{allowDeselect:!0}}),new o({select:this.$refs.allowDeselectMultiple,settings:{allowDeselect:!0}})}}),At={id:"allowDeselect",class:"content"},It=e("h2",{class:"header"},"allowDeselect",-1),Rt=e("p",null,"This will allow you to deselect a value on a single/multiple select dropdown.",-1),kt=e("p",null,"Be sure to have an empty option data placeholder so slim select has an empty string value to select.",-1),qt={class:"row"},Nt={ref:"allowDeselectSingle"},Ut=e("option",{"data-placeholder":"true"},null,-1),Wt=e("option",{value:"value1"},"Value 1",-1),Yt=e("option",{value:"value2"},"Value 2",-1),Ft=e("option",{value:"value3"},"Value 3",-1),zt=[Ut,Wt,Yt,Ft],Jt={ref:"allowDeselectMultiple",multiple:""},Kt=e("option",{"data-placeholder":"true"},null,-1),Qt=e("option",{value:"value1"},"Value 1",-1),Xt=e("option",{value:"value2"},"Value 2",-1),Zt=e("option",{value:"value3"},"Value 3",-1),eo=[Kt,Qt,Xt,Zt],to=e("pre",null,[t(" "),e("code",{class:"language-javascript"},`
122
+ `)],-1);function qt(l,n,u,d,p,_){return i(),c("div",yt,[Vt,xt,e("div",Ot,[e("select",Mt,Ct,512),e("select",Lt,Et,512)]),jt])}const It=a(bt,[["render",qt]]),Rt=s({name:"DataAttributes",mounted(){new o({select:this.$refs.optionsSingle}),new o({select:this.$refs.optionsMultiple})}}),kt={id:"dataAttributes",class:"content"},Gt=e("h2",{class:"header"},"Data Attributes",-1),Nt=e("p",null," Slim select will take on attributes of the original as best as possible. Below are example usages of attributes added to the underlining select options that slim select picked up and used ",-1),Ut={class:"row"},Yt={ref:"optionsSingle"},Wt=v('<option data-placeholder="true"></option><option value="value1" data-info="Here is info">Data Attributes</option><option value="value2" disabled>Disabled Option</option><option value="value3" class="green">Class Green</option><option value="value4" style="color:purple;">Inline Style</option>',5),Ft=[Wt],zt={ref:"optionsMultiple",multiple:""},Jt=e("option",{value:"value1","data-info":"Here is info"},"Data Attributes",-1),Kt=e("option",{value:"value2",disabled:""},"Disabled Option",-1),Qt=e("option",{value:"value3",class:"green"},"Class Green",-1),Xt=e("option",{value:"value4",style:{color:"purple"}},"Inline Style",-1),Zt=[Jt,Kt,Qt,Xt];function eo(l,n,u,d,p,_){return i(),c("div",kt,[Gt,Nt,e("div",Ut,[e("select",Yt,Ft,512),e("select",zt,Zt,512)])])}const to=a(Rt,[["render",eo]]),oo=s({name:"Deselect",mounted(){new o({select:this.$refs.allowDeselectSingle,settings:{allowDeselect:!0}}),new o({select:this.$refs.allowDeselectMultiple,settings:{allowDeselect:!0}})}}),lo={id:"allowDeselect",class:"content"},no=e("h2",{class:"header"},"allowDeselect",-1),so=e("p",null,"This will allow you to deselect a value on a single/multiple select dropdown.",-1),ao=e("p",null,"Be sure to have an empty option data placeholder so slim select has an empty string value to select.",-1),io={class:"row"},co={ref:"allowDeselectSingle"},uo=e("option",{"data-placeholder":"true"},null,-1),po=e("option",{value:"value1"},"Value 1",-1),_o=e("option",{value:"value2"},"Value 2",-1),ro=e("option",{value:"value3"},"Value 3",-1),ho=[uo,po,_o,ro],vo={ref:"allowDeselectMultiple",multiple:""},$o=e("option",{"data-placeholder":"true"},null,-1),mo=e("option",{value:"value1"},"Value 1",-1),go=e("option",{value:"value2"},"Value 2",-1),fo=e("option",{value:"value3"},"Value 3",-1),wo=[$o,mo,go,fo],So=e("pre",null,[t(" "),e("code",{class:"language-javascript"},`
70
123
  new SlimSelect({
71
124
  select: '#selectElement',
72
125
  settings: {
@@ -74,7 +127,7 @@ import{d as l,S as o,_ as i,o as a,c,a as e,f as t,b as v,g as r,h as p}from"./i
74
127
  }
75
128
  })
76
129
  `),t(`
77
- `)],-1),oo=e("pre",null,[t(" "),e("code",{class:"language-html"},`
130
+ `)],-1),bo=e("pre",null,[t(" "),e("code",{class:"language-html"},`
78
131
  <!-- Requires emtpy data-placeholder option -->
79
132
  <select id="allowDeselect">
80
133
  <option data-placeholder="true"></option>
@@ -83,7 +136,7 @@ import{d as l,S as o,_ as i,o as a,c,a as e,f as t,b as v,g as r,h as p}from"./i
83
136
  <option value="value3">Value 3</option>
84
137
  </select>
85
138
  `),t(`
86
- `)],-1);function so(s,n,u,d,_,h){return a(),c("div",At,[It,Rt,kt,e("div",qt,[e("select",Nt,zt,512),e("select",Jt,eo,512)]),to,oo])}const no=i(Gt,[["render",so]]),lo=l({name:"Display",mounted(){const s=new o({select:this.$refs.selectdisplay}),n=[{value:"value1",text:"Value 1",display:!1},{value:"value2",text:"Value 2"},{value:"value3",text:"Value 3"}];s.setData(n),s.setSelected(["value1","value3"]),new o({select:this.$refs.selectdisplay2})}}),io={id:"display",class:"content"},ao=e("h2",{class:"header"},"display",-1),co=e("p",null,"Allows to hide elements of selected values.",-1),uo={class:"row"},_o={ref:"selectdisplay",multiple:""},ho=e("pre",null,[t(" "),e("code",{class:"language-javascript"},`
139
+ `)],-1);function yo(l,n,u,d,p,_){return i(),c("div",lo,[no,so,ao,e("div",io,[e("select",co,ho,512),e("select",vo,wo,512)]),So,bo])}const Vo=a(oo,[["render",yo]]),xo=s({name:"Display",mounted(){const l=new o({select:this.$refs.selectdisplay}),n=[{value:"value1",text:"Value 1",display:!1},{value:"value2",text:"Value 2"},{value:"value3",text:"Value 3"}];l.setData(n),l.setSelected(["value1","value3"]),new o({select:this.$refs.selectdisplay2})}}),Oo={id:"display",class:"content"},Mo=e("h2",{class:"header"},"display",-1),Do=e("p",null,"Allows to hide elements of selected values.",-1),Po={class:"row"},To={ref:"selectdisplay",multiple:""},Co=e("pre",null,[t(" "),e("code",{class:"language-javascript"},`
87
140
  const displaySelect = new SlimSelect({
88
141
  select: '#selectElement'
89
142
  })
@@ -97,22 +150,22 @@ import{d as l,S as o,_ as i,o as a,c,a as e,f as t,b as v,g as r,h as p}from"./i
97
150
  displaySelect.setData(displayData)
98
151
  displaySelect.set(['value1', 'value3'])
99
152
  `),t(`
100
- `)],-1),ro=e("pre",null,[t(" "),e("code",{class:"language-html"},`
153
+ `)],-1),Lo=e("pre",null,[t(" "),e("code",{class:"language-html"},`
101
154
  <select id="selectMultiMandatory" multiple></select>
102
155
  `),t(`
103
- `)],-1),po=e("p",null,"Or",-1),vo={class:"row"},$o={ref:"selectdisplay2",multiple:""},mo=e("option",{value:"value1",style:{display:"none"},selected:""},"Value 1",-1),go=e("option",{value:"value2",selected:""},"Value 2",-1),fo=e("option",{value:"value3"},"Value 3",-1),wo=[mo,go,fo],So=e("pre",null,[t(" "),e("code",{class:"language-javascript"},`
156
+ `)],-1),Bo=e("p",null,"Or",-1),Ao={class:"row"},Ho={ref:"selectdisplay2",multiple:""},Eo=e("option",{value:"value1",style:{display:"none"},selected:""},"Value 1",-1),jo=e("option",{value:"value2",selected:""},"Value 2",-1),qo=e("option",{value:"value3"},"Value 3",-1),Io=[Eo,jo,qo],Ro=e("pre",null,[t(" "),e("code",{class:"language-javascript"},`
104
157
  const slim = new SlimSelect({
105
158
  select: '#selectElement'
106
159
  });
107
160
  `),t(`
108
- `)],-1),yo=e("pre",null,[t(" "),e("code",{class:"language-html"},`
161
+ `)],-1),ko=e("pre",null,[t(" "),e("code",{class:"language-html"},`
109
162
  <select id="selectdisplay2" multiple>
110
163
  <option value="value1" style="display: none;" selected>Value 1</option>
111
164
  <option value="value2" selected>Value 2</option>
112
165
  <option value="value3">Value 3</option>
113
166
  </select>
114
167
  `),t(`
115
- `)],-1);function Vo(s,n,u,d,_,h){return a(),c("div",io,[ao,co,e("div",uo,[e("select",_o,null,512)]),ho,ro,po,e("div",vo,[e("select",$o,wo,512)]),So,yo])}const bo=i(lo,[["render",Vo]]),xo=l({name:"HideSelected",mounted(){new o({select:this.$refs.hideSelectedSingle,settings:{hideSelected:!0}}),new o({select:this.$refs.hideSelectedMultiple,settings:{hideSelected:!0}})}}),Mo={id:"hideSelected",class:"content"},Do=e("h2",{class:"header"},"hideSelected",-1),Oo=e("p",null,"hideSelected setting is used to hide the current selected option in the options dropdown.",-1),Po={class:"row"},Bo={ref:"hideSelectedSingle"},To=e("option",{"data-placeholder":"true"},null,-1),Co=e("option",{value:"value1"},"Value 1",-1),Ho=e("option",{value:"value2"},"Value 2",-1),Eo=e("option",{value:"value3"},"Value 3",-1),jo=[To,Co,Ho,Eo],Lo={ref:"hideSelectedMultiple",multiple:""},Go=e("option",{value:"value1"},"Value 1",-1),Ao=e("option",{value:"value2"},"Value 2",-1),Io=e("option",{value:"value3"},"Value 3",-1),Ro=[Go,Ao,Io],ko=e("pre",null,[t(" "),e("code",{class:"language-javascript"},`
168
+ `)],-1);function Go(l,n,u,d,p,_){return i(),c("div",Oo,[Mo,Do,e("div",Po,[e("select",To,null,512)]),Co,Lo,Bo,e("div",Ao,[e("select",Ho,Io,512)]),Ro,ko])}const No=a(xo,[["render",Go]]),Uo=s({name:"HideSelected",mounted(){new o({select:this.$refs.hideSelectedSingle,settings:{hideSelected:!0}}),new o({select:this.$refs.hideSelectedMultiple,settings:{hideSelected:!0}})}}),Yo={id:"hideSelected",class:"content"},Wo=e("h2",{class:"header"},"hideSelected",-1),Fo=e("p",null,"hideSelected setting is used to hide the current selected option in the options dropdown.",-1),zo={class:"row"},Jo={ref:"hideSelectedSingle"},Ko=e("option",{"data-placeholder":"true"},null,-1),Qo=e("option",{value:"value1"},"Value 1",-1),Xo=e("option",{value:"value2"},"Value 2",-1),Zo=e("option",{value:"value3"},"Value 3",-1),el=[Ko,Qo,Xo,Zo],tl={ref:"hideSelectedMultiple",multiple:""},ol=e("option",{value:"value1"},"Value 1",-1),ll=e("option",{value:"value2"},"Value 2",-1),nl=e("option",{value:"value3"},"Value 3",-1),sl=[ol,ll,nl],al=e("pre",null,[t(" "),e("code",{class:"language-javascript"},`
116
169
  new SlimSelect({
117
170
  select: '#selectElement',
118
171
  settings: {
@@ -120,7 +173,7 @@ import{d as l,S as o,_ as i,o as a,c,a as e,f as t,b as v,g as r,h as p}from"./i
120
173
  }
121
174
  })
122
175
  `),t(`
123
- `)],-1),qo=e("pre",null,[t(" "),e("code",{class:"language-html"},`
176
+ `)],-1),il=e("pre",null,[t(" "),e("code",{class:"language-html"},`
124
177
  <select id="hideSelectedSingle">
125
178
  <option data-placeholder="true"></option>
126
179
  <option value="value1">Value 1</option>
@@ -134,7 +187,7 @@ import{d as l,S as o,_ as i,o as a,c,a as e,f as t,b as v,g as r,h as p}from"./i
134
187
  <option value="value3">Value 3</option>
135
188
  </select>
136
189
  `),t(`
137
- `)],-1);function No(s,n,u,d,_,h){return a(),c("div",Mo,[Do,Oo,e("div",Po,[e("select",Bo,jo,512),e("select",Lo,Ro,512)]),ko,qo])}const Uo=i(xo,[["render",No]]),Wo=l({name:"Html",mounted(){new o({select:this.$refs.selectHtmlSingle,settings:{searchHighlight:!0},data:[{html:"<b>Bold Text</b>",text:"Bold Text",value:"bold text"},{html:"<i>Slim Select you are awesome</i>",text:"Slim Select awesome"},{html:'<div style="border: solid 1px #666666;">Border</div>',text:"Border",value:"border"}]}),new o({select:this.$refs.selectHtmlMulti,settings:{searchHighlight:!0},data:[{html:"<b>Bold Text</b>",text:"Bold Text",value:"bold text"},{html:"<i>Slim Select you are awesome</i>",text:"Slim Select awesome"},{html:'<div style="border: solid 1px #666666;">Border</div>',text:"Border",value:"border"}]})}}),Yo={id:"html",class:"content"},Fo=e("h2",{class:"header"},"html",-1),zo=e("p",null," Slim select has the ability to set custom html for the selected values and options dropdown. By default if the html field is set it will use that for the selected values and the options dropdown. For a multiple select selected values it will always use the text field. ",-1),Jo={class:"row"},Ko={ref:"selectHtmlSingle"},Qo={ref:"selectHtmlMulti",multiple:""},Xo=e("pre",null,[t(" "),e("code",{class:"language-javascript"},`
190
+ `)],-1);function cl(l,n,u,d,p,_){return i(),c("div",Yo,[Wo,Fo,e("div",zo,[e("select",Jo,el,512),e("select",tl,sl,512)]),al,il])}const ul=a(Uo,[["render",cl]]),dl=s({name:"Html",mounted(){new o({select:this.$refs.selectHtmlSingle,settings:{searchHighlight:!0},data:[{html:"<b>Bold Text</b>",text:"Bold Text",value:"bold text"},{html:"<i>Slim Select you are awesome</i>",text:"Slim Select awesome"},{html:'<div style="border: solid 1px #666666;">Border</div>',text:"Border",value:"border"}]}),new o({select:this.$refs.selectHtmlMulti,settings:{searchHighlight:!0},data:[{html:"<b>Bold Text</b>",text:"Bold Text",value:"bold text"},{html:"<i>Slim Select you are awesome</i>",text:"Slim Select awesome"},{html:'<div style="border: solid 1px #666666;">Border</div>',text:"Border",value:"border"}]})}}),pl={id:"html",class:"content"},_l=e("h2",{class:"header"},"html",-1),rl=e("p",null," Slim select has the ability to set custom html for the selected values and options dropdown. By default if the html field is set it will use that for the selected values and the options dropdown. For a multiple select selected values it will always use the text field. ",-1),hl={class:"row"},vl={ref:"selectHtmlSingle"},$l={ref:"selectHtmlMulti",multiple:""},ml=e("pre",null,[t(" "),e("code",{class:"language-javascript"},`
138
191
  var select = new SlimSelect({
139
192
  select: '#selectElement',
140
193
  data: [
@@ -145,7 +198,7 @@ import{d as l,S as o,_ as i,o as a,c,a as e,f as t,b as v,g as r,h as p}from"./i
145
198
  ]
146
199
  })
147
200
  `),t(`
148
- `)],-1);function Zo(s,n,u,d,_,h){return a(),c("div",Yo,[Fo,zo,e("div",Jo,[e("select",Ko,null,512),e("select",Qo,null,512)]),Xo])}const es=i(Wo,[["render",Zo]]),ts=l({name:"Mandatory",mounted(){const s=new o({select:this.$refs.selectMultiMandatory}),n=[{value:"value1",text:"Value 1",mandatory:!0},{value:"value2",text:"Value 2"},{value:"value3",text:"Value 3"}];s.setData(n),s.setSelected(["value1","value3"]),new o({select:this.$refs.selectMultiMandatory2})}}),os={id:"mandatory",class:"content"},ss=e("h2",{class:"header"},"mandatory",-1),ns=e("p",null," When using multi select you can set a mandatory on the option to prevent capability to deselect particular option. Note options with mandatory flag is not selected by default, you need select them yourselfs. ",-1),ls={class:"row"},is={ref:"selectMultiMandatory",multiple:""},as=e("pre",null,[t(" "),e("code",{class:"language-javascript"},`
201
+ `)],-1);function gl(l,n,u,d,p,_){return i(),c("div",pl,[_l,rl,e("div",hl,[e("select",vl,null,512),e("select",$l,null,512)]),ml])}const fl=a(dl,[["render",gl]]),wl=s({name:"Mandatory",mounted(){const l=new o({select:this.$refs.selectMultiMandatory}),n=[{value:"value1",text:"Value 1",mandatory:!0},{value:"value2",text:"Value 2"},{value:"value3",text:"Value 3"}];l.setData(n),l.setSelected(["value1","value3"]),new o({select:this.$refs.selectMultiMandatory2})}}),Sl={id:"mandatory",class:"content"},bl=e("h2",{class:"header"},"mandatory",-1),yl=e("p",null," When using multi select you can set a mandatory on the option to prevent capability to deselect particular option. Note options with mandatory flag is not selected by default, you need select them yourselfs. ",-1),Vl={class:"row"},xl={ref:"selectMultiMandatory",multiple:""},Ol=e("pre",null,[t(" "),e("code",{class:"language-javascript"},`
149
202
  const slim = new SlimSelect({
150
203
  select: '#selectElement'
151
204
  });
@@ -159,22 +212,22 @@ import{d as l,S as o,_ as i,o as a,c,a as e,f as t,b as v,g as r,h as p}from"./i
159
212
  slim.setData(data)
160
213
  slim.set(["value1", "value3"])
161
214
  `),t(`
162
- `)],-1),cs=e("pre",null,[t(" "),e("code",{class:"language-html"},`
215
+ `)],-1),Ml=e("pre",null,[t(" "),e("code",{class:"language-html"},`
163
216
  <select id="selectMultiMandatory" multiple></select>
164
217
  `),t(`
165
- `)],-1),us=e("p",null,"Or",-1),ds={class:"row"},_s={ref:"selectMultiMandatory2",multiple:""},hs=e("option",{value:"value1","data-mandatory":"true",selected:""},"Value 1",-1),rs=e("option",{value:"value2",selected:""},"Value 2",-1),ps=e("option",{value:"value3"},"Value 3",-1),vs=[hs,rs,ps],$s=e("pre",null,[t(" "),e("code",{class:"language-javascript"},`
218
+ `)],-1),Dl=e("p",null,"Or",-1),Pl={class:"row"},Tl={ref:"selectMultiMandatory2",multiple:""},Cl=e("option",{value:"value1","data-mandatory":"true",selected:""},"Value 1",-1),Ll=e("option",{value:"value2",selected:""},"Value 2",-1),Bl=e("option",{value:"value3"},"Value 3",-1),Al=[Cl,Ll,Bl],Hl=e("pre",null,[t(" "),e("code",{class:"language-javascript"},`
166
219
  const slim = new SlimSelect({
167
220
  select: '#selectElement'
168
221
  });
169
222
  `),t(`
170
- `)],-1),ms=e("pre",null,[t(" "),e("code",{class:"language-html"},`
223
+ `)],-1),El=e("pre",null,[t(" "),e("code",{class:"language-html"},`
171
224
  <select id="selectMultiMandatory" multiple>
172
225
  <option value="value1" data-mandatory="true" selected>Value 1</option>
173
226
  <option value="value2" selected>Value 2</option>
174
227
  <option value="value3">Value 3</option>
175
228
  </select>
176
229
  `),t(`
177
- `)],-1);function gs(s,n,u,d,_,h){return a(),c("div",os,[ss,ns,e("div",ls,[e("select",is,null,512)]),as,cs,us,e("div",ds,[e("select",_s,vs,512)]),$s,ms])}const fs=i(ts,[["render",gs]]),ws=l({name:"MinMax",mounted(){new o({select:this.$refs.selectMultiMax,settings:{minSelected:2,maxSelected:5}})}}),Ss={id:"minmax",class:"content"},ys=e("h2",{class:"header"},"Min/Max Selected",-1),Vs=e("p",null,"When using multi select you can set a min and/or max on the amount of selections you can have.",-1),bs={class:"row"},xs={ref:"selectMultiMax",multiple:""},Ms=v('<option value="value1">Value 1</option><option value="value2">Value 2</option><option value="value3">Value 3</option><option value="value4">Value 4</option><option value="value5">Value 5</option><option value="value6">Value 6</option>',6),Ds=[Ms],Os=e("pre",null,[t(" "),e("code",{class:"language-javascript"},`
230
+ `)],-1);function jl(l,n,u,d,p,_){return i(),c("div",Sl,[bl,yl,e("div",Vl,[e("select",xl,null,512)]),Ol,Ml,Dl,e("div",Pl,[e("select",Tl,Al,512)]),Hl,El])}const ql=a(wl,[["render",jl]]),Il=s({name:"MinMax",mounted(){new o({select:this.$refs.selectMultiMax,settings:{minSelected:2,maxSelected:5}})}}),Rl={id:"minmax",class:"content"},kl=e("h2",{class:"header"},"Min/Max Selected",-1),Gl=e("p",null,"When using multi select you can set a min and/or max on the amount of selections you can have.",-1),Nl={class:"row"},Ul={ref:"selectMultiMax",multiple:""},Yl=v('<option value="value1">Value 1</option><option value="value2">Value 2</option><option value="value3">Value 3</option><option value="value4">Value 4</option><option value="value5">Value 5</option><option value="value6">Value 6</option>',6),Wl=[Yl],Fl=e("pre",null,[t(" "),e("code",{class:"language-javascript"},`
178
231
  let slim = new SlimSelect({
179
232
  select: '#selectElement',
180
233
  settings: {
@@ -183,7 +236,7 @@ import{d as l,S as o,_ as i,o as a,c,a as e,f as t,b as v,g as r,h as p}from"./i
183
236
  },
184
237
  })
185
238
  `),t(`
186
- `)],-1),Ps=e("pre",null,[t(" "),e("code",{class:"language-html"},`
239
+ `)],-1),zl=e("pre",null,[t(" "),e("code",{class:"language-html"},`
187
240
  <select id="selectMultiMax" multiple>
188
241
  <option value="value1">Value 1</option>
189
242
  <option value="value2">Value 2</option>
@@ -193,7 +246,7 @@ import{d as l,S as o,_ as i,o as a,c,a as e,f as t,b as v,g as r,h as p}from"./i
193
246
  <option value="value6">Value 6</option>
194
247
  </select>
195
248
  `),t(`
196
- `)],-1);function Bs(s,n,u,d,_,h){return a(),c("div",Ss,[ys,Vs,e("div",bs,[e("select",xs,Ds,512)]),Os,Ps])}const Ts=i(ws,[["render",Bs]]),Cs=l({name:"OpenPosition",mounted(){new o({select:this.$refs.openPositionUp,settings:{openPosition:"up"}}),new o({select:this.$refs.openPositionDown,settings:{openPosition:"down"}})}}),Hs={id:"openPosition",class:"content"},Es=e("h2",{class:"header"},"openPosition",-1),js=e("p",null," openPosition is a string value that will decide where to show your content when it comes out. By default slim select will try to put the content where it can without going off screen. But you may want to always show it in one direction. ",-1),Ls=e("p",null,[t("Possible Options: "),e("b",null,"'auto', 'up' or 'down'"),t(". Default is "),e("b",null,"'auto'")],-1),Gs={class:"row"},As={ref:"openPositionUp"},Is=e("option",{value:"up1"},"Up 1",-1),Rs=e("option",{value:"up2"},"Up 2",-1),ks=e("option",{value:"up3"},"Up 3",-1),qs=[Is,Rs,ks],Ns={ref:"openPositionDown"},Us=e("option",{value:"down1"},"Down 1",-1),Ws=e("option",{value:"down2"},"Down 2",-1),Ys=e("option",{value:"down3"},"Down 3",-1),Fs=[Us,Ws,Ys],zs=e("pre",null,[t(" "),e("code",{class:"language-javascript"},`
249
+ `)],-1);function Jl(l,n,u,d,p,_){return i(),c("div",Rl,[kl,Gl,e("div",Nl,[e("select",Ul,Wl,512)]),Fl,zl])}const Kl=a(Il,[["render",Jl]]),Ql=s({name:"OpenPosition",mounted(){new o({select:this.$refs.openPositionUp,settings:{openPosition:"up"}}),new o({select:this.$refs.openPositionDown,settings:{openPosition:"down"}})}}),Xl={id:"openPosition",class:"content"},Zl=e("h2",{class:"header"},"openPosition",-1),en=e("p",null," openPosition is a string value that will decide where to show your content when it comes out. By default slim select will try to put the content where it can without going off screen. But you may want to always show it in one direction. ",-1),tn=e("p",null,[t("Possible Options: "),e("b",null,"'auto', 'up' or 'down'"),t(". Default is "),e("b",null,"'auto'")],-1),on={class:"row"},ln={ref:"openPositionUp"},nn=e("option",{value:"up1"},"Up 1",-1),sn=e("option",{value:"up2"},"Up 2",-1),an=e("option",{value:"up3"},"Up 3",-1),cn=[nn,sn,an],un={ref:"openPositionDown"},dn=e("option",{value:"down1"},"Down 1",-1),pn=e("option",{value:"down2"},"Down 2",-1),_n=e("option",{value:"down3"},"Down 3",-1),rn=[dn,pn,_n],hn=e("pre",null,[t(" "),e("code",{class:"language-javascript"},`
197
250
  new SlimSelect({
198
251
  select: '#selectElement',
199
252
  settings: {
@@ -201,7 +254,7 @@ import{d as l,S as o,_ as i,o as a,c,a as e,f as t,b as v,g as r,h as p}from"./i
201
254
  }
202
255
  })
203
256
  `),t(`
204
- `)],-1);function Js(s,n,u,d,_,h){return a(),c("div",Hs,[Es,js,Ls,e("div",Gs,[e("select",As,qs,512),e("select",Ns,Fs,512)]),zs])}const Ks=i(Cs,[["render",Js]]),Qs=l({name:"Placeholder",mounted(){new o({select:this.$refs.placeholderSingle,settings:{placeholderText:"Custom Placeholder Text"}}),new o({select:this.$refs.placeholderMultiple,settings:{placeholderText:"Custom Placeholder Text"}})}}),Xs={id:"placeholder",class:"content"},Zs=e("h2",{class:"header"},"placeholderText",-1),en=e("p",null,' Placeholders consists of setting the placeholder option value. The only difference is single selects require an empty option with data-placeholder set to true. Default value is "Select Value". ',-1),tn={class:"row"},on={ref:"placeholderSingle"},sn=e("option",{"data-placeholder":"true"},null,-1),nn=e("option",{value:"value1"},"Value 1",-1),ln=e("option",{value:"value2"},"Value 2",-1),an=e("option",{value:"value3"},"Value 3",-1),cn=[sn,nn,ln,an],un={ref:"placeholderMultiple",multiple:""},dn=e("option",{value:"value1"},"Value 1",-1),_n=e("option",{value:"value2"},"Value 2",-1),hn=e("option",{value:"value3"},"Value 3",-1),rn=[dn,_n,hn],pn=e("pre",null,[t(" "),e("code",{class:"language-javascript"},`
257
+ `)],-1);function vn(l,n,u,d,p,_){return i(),c("div",Xl,[Zl,en,tn,e("div",on,[e("select",ln,cn,512),e("select",un,rn,512)]),hn])}const $n=a(Ql,[["render",vn]]),mn=s({name:"Placeholder",mounted(){new o({select:this.$refs.placeholderSingle,settings:{placeholderText:"Custom Placeholder Text"}}),new o({select:this.$refs.placeholderMultiple,settings:{placeholderText:"Custom Placeholder Text"}})}}),gn={id:"placeholder",class:"content"},fn=e("h2",{class:"header"},"placeholderText",-1),wn=e("p",null,' Placeholders consists of setting the placeholder option value. The only difference is single selects require an empty option with data-placeholder set to true. Default value is "Select Value". ',-1),Sn={class:"row"},bn={ref:"placeholderSingle"},yn=e("option",{"data-placeholder":"true"},null,-1),Vn=e("option",{value:"value1"},"Value 1",-1),xn=e("option",{value:"value2"},"Value 2",-1),On=e("option",{value:"value3"},"Value 3",-1),Mn=[yn,Vn,xn,On],Dn={ref:"placeholderMultiple",multiple:""},Pn=e("option",{value:"value1"},"Value 1",-1),Tn=e("option",{value:"value2"},"Value 2",-1),Cn=e("option",{value:"value3"},"Value 3",-1),Ln=[Pn,Tn,Cn],Bn=e("pre",null,[t(" "),e("code",{class:"language-javascript"},`
205
258
  new SlimSelect({
206
259
  select: '#placeholder',
207
260
  settings: {
@@ -209,7 +262,7 @@ import{d as l,S as o,_ as i,o as a,c,a as e,f as t,b as v,g as r,h as p}from"./i
209
262
  }
210
263
  })
211
264
  `),t(`
212
- `)],-1),vn=e("pre",null,[t(" "),e("code",{class:"language-html"},`
265
+ `)],-1),An=e("pre",null,[t(" "),e("code",{class:"language-html"},`
213
266
  <!-- Set empty option with data-placeholder if you to have placeholder -->
214
267
  <!-- text for single select, otherwise first option will be selected -->
215
268
  <select id="placeholderSingle">
@@ -219,7 +272,7 @@ import{d as l,S as o,_ as i,o as a,c,a as e,f as t,b as v,g as r,h as p}from"./i
219
272
  <option value="value3">Value 3</option>
220
273
  </select>
221
274
  `),t(`
222
- `)],-1);function $n(s,n,u,d,_,h){return a(),c("div",Xs,[Zs,en,e("div",tn,[e("select",on,cn,512),e("select",un,rn,512)]),pn,vn])}const mn=i(Qs,[["render",$n]]),gn=l({name:"Search",mounted(){new o({select:this.$refs.showSearchSingle,settings:{showSearch:!1}}),new o({select:this.$refs.searchTextSingle,settings:{searchText:"Sorry, nothing to see here"}}),new o({select:this.$refs.searchPlaceholderSingle,settings:{searchPlaceholder:"Search for the good stuff!"}}),new o({select:this.$refs.searchHighlightSingle,settings:{searchHighlight:!0}}),new o({select:this.$refs.showSearchMulti,settings:{showSearch:!1}}),new o({select:this.$refs.searchTextMulti,settings:{searchText:"Sorry nothing to see here"}}),new o({select:this.$refs.searchPlaceholderMulti,settings:{searchPlaceholder:"Search for the good stuff!"}}),new o({select:this.$refs.searchHighlightMulti,settings:{searchHighlight:!0}})}}),fn={id:"search",class:"content"},wn=v('<h2 class="header">showSearch / searchText / searchingText / searchHighlight</h2><p><b>showSearch</b> - is a boolean value that will decide whether or not to show the search. Default is true.</p><p><b>searchText</b> - is a string value that will show in the event there are no results. Default is &#39;No Results&#39;. </p><p><b>searchingText</b> - is a string value that will show during an fetch search request. Default is &#39;Searching...&#39;. </p><p><b>searchPlaceholder</b> - is a string value that will set the value of the input search placeholder text. Default is &#39;Search&#39;. </p><p><b>searchHighlight</b> - is a boolean value that will highlight search results. Default is false.</p>',6),Sn={class:"row",style:{padding:"0 0 var(--spacing-half) 0"}},yn={ref:"showSearchSingle"},Vn=e("option",{value:"dog"},"Dog",-1),bn=e("option",{value:"cat"},"Cat",-1),xn=e("option",{value:"bird"},"Bird",-1),Mn=[Vn,bn,xn],Dn={ref:"searchTextSingle"},On=e("option",{value:"dog"},"Dog",-1),Pn=e("option",{value:"cat"},"Cat",-1),Bn=e("option",{value:"bird"},"Bird",-1),Tn=[On,Pn,Bn],Cn={ref:"searchPlaceholderSingle"},Hn=e("option",{value:"dog"},"Dog",-1),En=e("option",{value:"cat"},"Cat",-1),jn=e("option",{value:"bird"},"Bird",-1),Ln=[Hn,En,jn],Gn={ref:"searchHighlightSingle"},An=e("option",{value:"dog"},"Dog",-1),In=e("option",{value:"cat"},"Cat",-1),Rn=e("option",{value:"bird"},"Bird",-1),kn=[An,In,Rn],qn={class:"row"},Nn={ref:"showSearchMulti",multiple:""},Un=e("option",{value:"dog"},"Dog",-1),Wn=e("option",{value:"cat"},"Cat",-1),Yn=e("option",{value:"bird"},"Bird",-1),Fn=[Un,Wn,Yn],zn={ref:"searchTextMulti",multiple:""},Jn=e("option",{value:"dog"},"Dog",-1),Kn=e("option",{value:"cat"},"Cat",-1),Qn=e("option",{value:"bird"},"Bird",-1),Xn=[Jn,Kn,Qn],Zn={ref:"searchPlaceholderMulti",multiple:""},el=e("option",{value:"dog"},"Dog",-1),tl=e("option",{value:"cat"},"Cat",-1),ol=e("option",{value:"bird"},"Bird",-1),sl=[el,tl,ol],nl={ref:"searchHighlightMulti",multiple:""},ll=e("option",{value:"dog"},"Dog",-1),il=e("option",{value:"cat"},"Cat",-1),al=e("option",{value:"bird"},"Bird",-1),cl=[ll,il,al],ul=e("pre",null,[t(" "),e("code",{class:"language-javascript"},`
275
+ `)],-1);function Hn(l,n,u,d,p,_){return i(),c("div",gn,[fn,wn,e("div",Sn,[e("select",bn,Mn,512),e("select",Dn,Ln,512)]),Bn,An])}const En=a(mn,[["render",Hn]]),jn=s({name:"Search",mounted(){new o({select:this.$refs.showSearchSingle,settings:{showSearch:!1}}),new o({select:this.$refs.searchTextSingle,settings:{searchText:"Sorry, nothing to see here"}}),new o({select:this.$refs.searchPlaceholderSingle,settings:{searchPlaceholder:"Search for the good stuff!"}}),new o({select:this.$refs.searchHighlightSingle,settings:{searchHighlight:!0}}),new o({select:this.$refs.showSearchMulti,settings:{showSearch:!1}}),new o({select:this.$refs.searchTextMulti,settings:{searchText:"Sorry nothing to see here"}}),new o({select:this.$refs.searchPlaceholderMulti,settings:{searchPlaceholder:"Search for the good stuff!"}}),new o({select:this.$refs.searchHighlightMulti,settings:{searchHighlight:!0}})}}),qn={id:"search",class:"content"},In=v('<h2 class="header">showSearch / searchText / searchingText / searchHighlight</h2><p><b>showSearch</b> - is a boolean value that will decide whether or not to show the search. Default is true.</p><p><b>searchText</b> - is a string value that will show in the event there are no results. Default is &#39;No Results&#39;. </p><p><b>searchingText</b> - is a string value that will show during an fetch search request. Default is &#39;Searching...&#39;. </p><p><b>searchPlaceholder</b> - is a string value that will set the value of the input search placeholder text. Default is &#39;Search&#39;. </p><p><b>searchHighlight</b> - is a boolean value that will highlight search results. Default is false.</p>',6),Rn={class:"row",style:{padding:"0 0 var(--spacing-half) 0"}},kn={ref:"showSearchSingle"},Gn=e("option",{value:"dog"},"Dog",-1),Nn=e("option",{value:"cat"},"Cat",-1),Un=e("option",{value:"bird"},"Bird",-1),Yn=[Gn,Nn,Un],Wn={ref:"searchTextSingle"},Fn=e("option",{value:"dog"},"Dog",-1),zn=e("option",{value:"cat"},"Cat",-1),Jn=e("option",{value:"bird"},"Bird",-1),Kn=[Fn,zn,Jn],Qn={ref:"searchPlaceholderSingle"},Xn=e("option",{value:"dog"},"Dog",-1),Zn=e("option",{value:"cat"},"Cat",-1),es=e("option",{value:"bird"},"Bird",-1),ts=[Xn,Zn,es],os={ref:"searchHighlightSingle"},ls=e("option",{value:"dog"},"Dog",-1),ns=e("option",{value:"cat"},"Cat",-1),ss=e("option",{value:"bird"},"Bird",-1),as=[ls,ns,ss],is={class:"row"},cs={ref:"showSearchMulti",multiple:""},us=e("option",{value:"dog"},"Dog",-1),ds=e("option",{value:"cat"},"Cat",-1),ps=e("option",{value:"bird"},"Bird",-1),_s=[us,ds,ps],rs={ref:"searchTextMulti",multiple:""},hs=e("option",{value:"dog"},"Dog",-1),vs=e("option",{value:"cat"},"Cat",-1),$s=e("option",{value:"bird"},"Bird",-1),ms=[hs,vs,$s],gs={ref:"searchPlaceholderMulti",multiple:""},fs=e("option",{value:"dog"},"Dog",-1),ws=e("option",{value:"cat"},"Cat",-1),Ss=e("option",{value:"bird"},"Bird",-1),bs=[fs,ws,Ss],ys={ref:"searchHighlightMulti",multiple:""},Vs=e("option",{value:"dog"},"Dog",-1),xs=e("option",{value:"cat"},"Cat",-1),Os=e("option",{value:"bird"},"Bird",-1),Ms=[Vs,xs,Os],Ds=e("pre",null,[t(" "),e("code",{class:"language-javascript"},`
223
276
  let slim = new SlimSelect({
224
277
  select: '#selectElement',
225
278
  settings: {
@@ -230,7 +283,7 @@ import{d as l,S as o,_ as i,o as a,c,a as e,f as t,b as v,g as r,h as p}from"./i
230
283
  }
231
284
  })
232
285
  `),t(`
233
- `)],-1);function dl(s,n,u,d,_,h){return a(),c("div",fn,[wn,e("div",Sn,[e("select",yn,Mn,512),e("select",Dn,Tn,512),e("select",Cn,Ln,512),e("select",Gn,kn,512)]),e("div",qn,[e("select",Nn,Fn,512),e("select",zn,Xn,512),e("select",Zn,sl,512),e("select",nl,cl,512)]),ul])}const _l=i(gn,[["render",dl]]),hl=l({name:"Select"}),rl={id:"select",class:"content"},pl=e("h2",{class:"header"},"select",-1),vl=e("p",null," The select field is used to identify the select element that will be used to create slim select. You can use any value you normally would in a querySelector or pass the element directly. ",-1),$l=e("pre",null,[t(" "),e("code",{class:"language-javascript"},`
286
+ `)],-1);function Ps(l,n,u,d,p,_){return i(),c("div",qn,[In,e("div",Rn,[e("select",kn,Yn,512),e("select",Wn,Kn,512),e("select",Qn,ts,512),e("select",os,as,512)]),e("div",is,[e("select",cs,_s,512),e("select",rs,ms,512),e("select",gs,bs,512),e("select",ys,Ms,512)]),Ds])}const Ts=a(jn,[["render",Ps]]),Cs=s({name:"Select"}),Ls={id:"select",class:"content"},Bs=e("h2",{class:"header"},"select",-1),As=e("p",null," The select field is used to identify the select element that will be used to create slim select. You can use any value you normally would in a querySelector or pass the element directly. ",-1),Hs=e("pre",null,[t(" "),e("code",{class:"language-javascript"},`
234
287
  new SlimSelect({
235
288
  select: '#selectElement',
236
289
  // or
@@ -242,15 +295,46 @@ import{d as l,S as o,_ as i,o as a,c,a as e,f as t,b as v,g as r,h as p}from"./i
242
295
  let el = document.querySelector('#selectElement')
243
296
  el.slim.open() // Or any other options/methods
244
297
  `),t(`
245
- `)],-1),ml=[pl,vl,$l];function gl(s,n,u,d,_,h){return a(),c("div",rl,ml)}const fl=i(hl,[["render",gl]]),wl=l({name:"SelectByGroup",mounted(){new o({select:this.$refs.selectByGroup,settings:{selectByGroup:!0}})}}),Sl={id:"selectByGroup",class:"content"},yl=e("h2",{class:"header"},"selectByGroup",-1),Vl=e("p",null," selectByGroup option is used to enable the selection of all options under a specific group by clicking that option group's label. ",-1),bl={ref:"selectByGroup",multiple:""},xl=e("optgroup",{label:"Label 1"},[e("option",{value:"value1"},"Value 1"),e("option",{value:"value2"},"Value 2"),e("option",{value:"value3"},"Value 3")],-1),Ml=[xl],Dl=e("pre",null,[t(" "),e("code",{class:"language-javascript"},`
298
+ `)],-1),Es=[Bs,As,Hs];function js(l,n,u,d,p,_){return i(),c("div",Ls,Es)}const qs=a(Cs,[["render",js]]),Is=s({name:"SelectAll",mounted(){new o({select:this.$refs.selectAll})}}),Rs={id:"selectAll",class:"content"},ks=e("h2",{class:"header"},"selectAll",-1),Gs=e("p",null," selectAll is a setting that can be used to add a select all action to an optgroup. This setting can be set to true or false. If set to true, a select all option will be added to the top of the selected values. If set to false or not set at all, no select all action will be added to the optgroup. ",-1),Ns=e("div",{class:"alert info"},"You can set selectAll either by data or by html dataset added to the optgroup element",-1),Us={ref:"selectAll",multiple:""},Ys=v('<optgroup label="Label 1" data-selectall="true"><option value="value1">Value 1</option><option value="value2">Value 2</option><option value="value3">Value 3</option></optgroup><optgroup label="Label 2"><option value="value4">Value 4</option><option value="value5">Value 5</option><option value="value6">Value 6</option></optgroup>',2),Ws=[Ys],Fs=e("br",null,null,-1),zs=e("h3",null,"Via data",-1),Js=e("pre",null,[t(" "),e("code",{class:"language-javascript"},`
246
299
  new SlimSelect({
247
- select: '#selectByGroup',
248
- settings: {
249
- selectByGroup: true
250
- }
300
+ select: '#selectElement',
301
+ data: [
302
+ {
303
+ label: 'Label 1',
304
+ selectAll: true,
305
+ options: [
306
+ { text: 'Option 1', value: '1' },
307
+ { text: 'Option 2', value: '2' },
308
+ { text: 'Option 3', value: '3' },
309
+ ],
310
+ },
311
+ {
312
+ label: 'Label 2',
313
+ selectAll: false,
314
+ options: [
315
+ { text: 'Option 4', value: '4' },
316
+ { text: 'Option 5', value: '5' },
317
+ { text: 'Option 6', value: '6' },
318
+ ],
319
+ },
320
+ ],
251
321
  })
252
322
  `),t(`
253
- `)],-1);function Ol(s,n,u,d,_,h){return a(),c("div",Sl,[yl,Vl,e("select",bl,Ml,512),Dl])}const Pl=i(wl,[["render",Ol]]),Bl=l({name:"ShowTooltip",mounted(){new o({select:this.$refs.showOptionTooltips,settings:{showOptionTooltips:!0}})}}),Tl={id:"showOptionTooltips",class:"content"},Cl=e("h2",{class:"header"},"showOptionTooltips",-1),Hl=e("p",null," showOptionTooltips option is used to active displaying the on-hover tooltips for select options. The tooltip text is equal to the option text content. ",-1),El={ref:"showOptionTooltips"},jl=e("option",{value:"value1"},"Value 1",-1),Ll=e("option",{value:"value2"},"Value 2",-1),Gl=e("option",{value:"value3"},"Value 3",-1),Al=[jl,Ll,Gl],Il=e("pre",null,[t(" "),e("code",{class:"language-javascript"},`
323
+ `)],-1),Ks=e("br",null,null,-1),Qs=e("h3",null,"Via html",-1),Xs=e("pre",null,[t(" "),e("code",{class:"language-html"},`
324
+ <select ref="selectAll" multiple>
325
+ <optgroup label="Label 1" data-selectall="true">
326
+ <option value="value1">Value 1</option>
327
+ <option value="value2">Value 2</option>
328
+ <option value="value3">Value 3</option>
329
+ </optgroup>
330
+ <optgroup label="Label 2">
331
+ <option value="value4">Value 4</option>
332
+ <option value="value5">Value 5</option>
333
+ <option value="value6">Value 6</option>
334
+ </optgroup>
335
+ </select>
336
+ `),t(`
337
+ `)],-1);function Zs(l,n,u,d,p,_){return i(),c("div",Rs,[ks,Gs,Ns,e("select",Us,Ws,512),Fs,zs,Js,Ks,Qs,Xs])}const ea=a(Is,[["render",Zs]]),ta=s({name:"ShowTooltip",mounted(){new o({select:this.$refs.showOptionTooltips,settings:{showOptionTooltips:!0}})}}),oa={id:"showOptionTooltips",class:"content"},la=e("h2",{class:"header"},"showOptionTooltips",-1),na=e("p",null," showOptionTooltips option is used to active displaying the on-hover tooltips for select options. The tooltip text is equal to the option text content. ",-1),sa={ref:"showOptionTooltips"},aa=e("option",{value:"value1"},"Value 1",-1),ia=e("option",{value:"value2"},"Value 2",-1),ca=e("option",{value:"value3"},"Value 3",-1),ua=[aa,ia,ca],da=e("pre",null,[t(" "),e("code",{class:"language-javascript"},`
254
338
  new SlimSelect({
255
339
  select: '#selectElement',
256
340
  settings: {
@@ -258,7 +342,7 @@ import{d as l,S as o,_ as i,o as a,c,a as e,f as t,b as v,g as r,h as p}from"./i
258
342
  }
259
343
  })
260
344
  `),t(`
261
- `)],-1);function Rl(s,n,u,d,_,h){return a(),c("div",Tl,[Cl,Hl,e("select",El,Al,512),Il])}const kl=i(Bl,[["render",Rl]]),ql=l({name:"Styles",mounted(){new o({select:this.$refs.selectStyle}),new o({select:this.$refs.optionStyle})}}),Nl={id:"inlineStyles",class:"content"},Ul=e("h2",{class:"header"},"inline styles",-1),Wl=e("p",null," Slim select will inherit any styles that were added to the original select element. This includes options as well. ",-1),Yl={class:"row"},Fl={ref:"selectStyle",style:{color:"red"}},zl=e("option",{value:"value1"},"Value 1",-1),Jl=e("option",{value:"value2"},"Value 2",-1),Kl=e("option",{value:"value3"},"Value 3",-1),Ql=[zl,Jl,Kl],Xl={ref:"optionStyle"},Zl=e("option",{style:{color:"red"},value:"value1"},"Red",-1),ei=e("option",{style:{color:"green"}},"Green",-1),ti=e("option",{style:{color:"blue"}},"Blue",-1),oi=[Zl,ei,ti],si=e("pre",null,[t(" "),e("code",{class:"language-html"},`
345
+ `)],-1);function pa(l,n,u,d,p,_){return i(),c("div",oa,[la,na,e("select",sa,ua,512),da])}const _a=a(ta,[["render",pa]]),ra=s({name:"Styles",mounted(){new o({select:this.$refs.selectStyle}),new o({select:this.$refs.optionStyle})}}),ha={id:"inlineStyles",class:"content"},va=e("h2",{class:"header"},"inline styles",-1),$a=e("p",null," Slim select will inherit any styles that were added to the original select element. This includes options as well. ",-1),ma={class:"row"},ga={ref:"selectStyle",style:{color:"red"}},fa=e("option",{value:"value1"},"Value 1",-1),wa=e("option",{value:"value2"},"Value 2",-1),Sa=e("option",{value:"value3"},"Value 3",-1),ba=[fa,wa,Sa],ya={ref:"optionStyle"},Va=e("option",{style:{color:"red"},value:"value1"},"Red",-1),xa=e("option",{style:{color:"green"}},"Green",-1),Oa=e("option",{style:{color:"blue"}},"Blue",-1),Ma=[Va,xa,Oa],Da=e("pre",null,[t(" "),e("code",{class:"language-html"},`
262
346
  <select id="select-style" style="color: red;">
263
347
  <option value="value1">Value 1</option>
264
348
  <option value="value2">Value 2</option>
@@ -271,4 +355,4 @@ import{d as l,S as o,_ as i,o as a,c,a as e,f as t,b as v,g as r,h as p}from"./i
271
355
  <option style="color: blue;">Blue</option>
272
356
  </select>
273
357
  `),t(`
274
- `)],-1);function ni(s,n,u,d,_,h){return a(),c("div",Nl,[Ul,Wl,e("div",Yl,[e("select",Fl,Ql,512),e("select",Xl,oi,512)]),si])}const li=i(ql,[["render",ni]]),ii=l({name:"Settings",components:{Select:fl,AlwaysOpen:ne,ContentLocation:Ee,ContentPosition:ot,OpenPosition:Ks,Placeholder:mn,Deselect:no,Display:bo,Mandatory:fs,MinMax:Ts,DataAttributes:Lt,Css:wt,Styles:li,Html:es,Search:_l,CloseOnSelect:ge,ShowTooltip:kl,SelectByGroup:Pl,HideSelected:Uo}}),ai={id:"settings",class:"contents"};function ci(s,n,u,d,_,h){const $=r("Select"),m=r("AlwaysOpen"),g=r("ContentLocation"),f=r("ContentPosition"),w=r("OpenPosition"),S=r("Placeholder"),y=r("Deselect"),V=r("Display"),b=r("Mandatory"),x=r("MinMax"),M=r("DataAttributes"),D=r("Css"),O=r("Styles"),P=r("Html"),B=r("Search"),T=r("CloseOnSelect"),C=r("ShowTooltip"),H=r("SelectByGroup"),E=r("HideSelected");return a(),c("div",ai,[p($),p(m),p(g),p(f),p(w),p(S),p(y),p(V),p(b),p(x),p(M),p(D),p(O),p(P),p(B),p(T),p(C),p(H),p(E)])}const di=i(ii,[["render",ci]]);export{di as default};
358
+ `)],-1);function Pa(l,n,u,d,p,_){return i(),c("div",ha,[va,$a,e("div",ma,[e("select",ga,ba,512),e("select",ya,Ma,512)]),Da])}const Ta=a(ra,[["render",Pa]]),Ca=s({name:"Settings",components:{Select:qs,AlwaysOpen:se,ContentLocation:Ze,ContentPosition:St,OpenPosition:$n,Placeholder:En,Deselect:Vo,Display:No,Mandatory:ql,MinMax:Kl,DataAttributes:to,Css:It,Styles:Ta,Html:fl,Search:Ts,CloseOnSelect:je,ShowTooltip:_a,SelectAll:ea,Closable:ye,HideSelected:ul}}),La={id:"settings",class:"contents"};function Ba(l,n,u,d,p,_){const $=r("Select"),m=r("AlwaysOpen"),g=r("ContentLocation"),f=r("ContentPosition"),w=r("OpenPosition"),S=r("Placeholder"),b=r("Deselect"),y=r("Display"),V=r("Mandatory"),x=r("MinMax"),O=r("DataAttributes"),M=r("Css"),D=r("Styles"),P=r("Html"),T=r("Search"),C=r("CloseOnSelect"),L=r("ShowTooltip"),B=r("SelectAll"),A=r("Closable"),H=r("HideSelected");return i(),c("div",La,[h($),h(m),h(g),h(f),h(w),h(S),h(b),h(y),h(V),h(x),h(O),h(M),h(D),h(P),h(T),h(C),h(L),h(B),h(A),h(H)])}const Ha=a(Ca,[["render",Ba]]);export{Ha as default};