slim-select 2.2.0 → 2.2.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/helpers.d.ts +1 -0
- package/dist/index.d.ts +1 -1
- package/dist/select.d.ts +1 -1
- package/dist/slimselect.cjs.js +62 -40
- package/dist/slimselect.es.js +62 -40
- package/dist/slimselect.global.js +62 -40
- package/dist/slimselect.js +62 -40
- package/dist/slimselect.min.js +1 -1
- package/dist/slimselect.umd.js +62 -40
- package/dist/slimselect.umd.min.js +1 -1
- package/package.json +1 -3
- package/src/slim-select/helpers.ts +4 -0
- package/src/slim-select/index.ts +26 -2
- package/src/slim-select/render.ts +5 -3
- package/src/slim-select/select.ts +12 -3
- package/src/vue/dist/slim-select/helpers.d.ts +5 -0
- package/src/vue/dist/slim-select/index.d.ts +45 -0
- package/src/vue/dist/slim-select/render.d.ts +116 -0
- package/src/vue/dist/slim-select/select.d.ts +33 -0
- package/src/vue/dist/slim-select/settings.d.ts +30 -0
- package/src/vue/dist/slim-select/store.d.ts +76 -0
- package/src/vue/dist/slimselectvue.es.js +114 -43
- package/src/vue/dist/slimselectvue.global.js +114 -43
- package/src/vue/dist/slimselectvue.ssr.js +114 -43
- package/src/vue/dist/vue/hello.d.ts +2 -0
- package/src/vue/dist/vue/slimselect.vue.d.ts +309 -0
- package/src/vue/package.json +2 -3
- package/src/vue/slimselect.vue +66 -2
- package/src/vue/tsconfig.json +3 -3
- package/tsconfig.json +9 -2
- package/.github/FUNDING.yml +0 -12
- package/.github/ISSUE_TEMPLATE/issue-report.md +0 -14
- package/.vscode/extensions.json +0 -3
- package/.vscode/settings.json +0 -17
- package/docs/404.html +0 -42
- package/docs/CNAME +0 -1
- package/docs/assets/check-mark.svg +0 -6
- package/docs/assets/data.js +0 -63
- package/docs/assets/home.css +0 -1
- package/docs/assets/home.js +0 -1
- package/docs/assets/index.css +0 -1
- package/docs/assets/index.js +0 -16
- package/docs/assets/index2.js +0 -358
- package/docs/assets/index3.js +0 -142
- package/docs/assets/index4.js +0 -60
- package/docs/assets/index5.js +0 -149
- package/docs/assets/install.js +0 -34
- package/docs/assets/selects.js +0 -55
- package/docs/favicon.ico +0 -0
- package/docs/index.html +0 -36
- package/public/404.html +0 -42
- package/public/CNAME +0 -1
- package/public/favicon.ico +0 -0
- package/slimselect.gif +0 -0
- package/src/docs/app.vue +0 -228
- package/src/docs/assets/images/check-mark.svg +0 -6
- package/src/docs/assets/images/chrome.svg +0 -22
- package/src/docs/assets/images/firefox.svg +0 -58
- package/src/docs/assets/images/github.png +0 -0
- package/src/docs/assets/images/ie.svg +0 -11
- package/src/docs/assets/images/npm.png +0 -0
- package/src/docs/assets/images/opera.svg +0 -15
- package/src/docs/assets/images/safari.svg +0 -22
- package/src/docs/assets/scss/_variables.scss +0 -26
- package/src/docs/assets/scss/alert.scss +0 -12
- package/src/docs/assets/scss/animations.scss +0 -8
- package/src/docs/assets/scss/button.scss +0 -21
- package/src/docs/assets/scss/index.scss +0 -8
- package/src/docs/assets/scss/input.scss +0 -3
- package/src/docs/assets/scss/layout.scss +0 -250
- package/src/docs/assets/scss/misc.scss +0 -162
- package/src/docs/assets/scss/prism.scss +0 -157
- package/src/docs/env.d.ts +0 -13
- package/src/docs/main.ts +0 -27
- package/src/docs/pages/data.vue +0 -134
- package/src/docs/pages/events/addable.vue +0 -95
- package/src/docs/pages/events/before_after_change.vue +0 -154
- package/src/docs/pages/events/before_after_open_close.vue +0 -122
- package/src/docs/pages/events/error.vue +0 -59
- package/src/docs/pages/events/index.vue +0 -33
- package/src/docs/pages/events/search.vue +0 -169
- package/src/docs/pages/events/search_filter.vue +0 -45
- package/src/docs/pages/frameworks/index.vue +0 -18
- package/src/docs/pages/frameworks/vue.vue +0 -407
- package/src/docs/pages/home.vue +0 -241
- package/src/docs/pages/install.vue +0 -105
- package/src/docs/pages/methods/destroy.vue +0 -66
- package/src/docs/pages/methods/enable_disable.vue +0 -70
- package/src/docs/pages/methods/get_data.vue +0 -82
- package/src/docs/pages/methods/get_selected.vue +0 -78
- package/src/docs/pages/methods/index.vue +0 -36
- package/src/docs/pages/methods/open_close.vue +0 -63
- package/src/docs/pages/methods/search.vue +0 -62
- package/src/docs/pages/methods/set_data.vue +0 -106
- package/src/docs/pages/methods/set_selected.vue +0 -70
- package/src/docs/pages/selects.vue +0 -213
- package/src/docs/pages/settings/always_open.vue +0 -88
- package/src/docs/pages/settings/closable.vue +0 -128
- package/src/docs/pages/settings/close_on_select.vue +0 -69
- package/src/docs/pages/settings/content_location.vue +0 -64
- package/src/docs/pages/settings/content_position.vue +0 -86
- package/src/docs/pages/settings/css.vue +0 -73
- package/src/docs/pages/settings/data_attributes.vue +0 -39
- package/src/docs/pages/settings/deselect.vue +0 -69
- package/src/docs/pages/settings/display.vue +0 -88
- package/src/docs/pages/settings/hide_selected.vue +0 -73
- package/src/docs/pages/settings/html.vue +0 -86
- package/src/docs/pages/settings/index.vue +0 -76
- package/src/docs/pages/settings/mandatory.vue +0 -91
- package/src/docs/pages/settings/min_max.vue +0 -61
- package/src/docs/pages/settings/open_position.vue +0 -60
- package/src/docs/pages/settings/placeholder.vue +0 -72
- package/src/docs/pages/settings/search.vue +0 -140
- package/src/docs/pages/settings/select.vue +0 -32
- package/src/docs/pages/settings/select_all.vue +0 -88
- package/src/docs/pages/settings/show_tooltip.vue +0 -44
- package/src/docs/pages/settings/styles.vue +0 -51
- package/src/docs/router.ts +0 -50
package/docs/assets/index2.js
DELETED
|
@@ -1,358 +0,0 @@
|
|
|
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
|
-
new SlimSelect({
|
|
3
|
-
select: '#selectElement',
|
|
4
|
-
settings: {
|
|
5
|
-
alwaysOpen: true,
|
|
6
|
-
|
|
7
|
-
// In various situations it may be useful to set the contentLocation
|
|
8
|
-
// to an element that will display best
|
|
9
|
-
contentLocation: document.getElementById('local'), ,
|
|
10
|
-
contentPosition: 'relative',
|
|
11
|
-
}
|
|
12
|
-
})
|
|
13
|
-
`),t(`
|
|
14
|
-
`)],-1),le=e("pre",null,[t(" "),e("code",{class:"language-html"},`
|
|
15
|
-
<select id="selectElement">
|
|
16
|
-
<option value="value1">Value 1</option>
|
|
17
|
-
<option value="value2">Value 2</option>
|
|
18
|
-
<option value="value3">Value 3</option>
|
|
19
|
-
</select>
|
|
20
|
-
|
|
21
|
-
<!-- The content will go in this div -->
|
|
22
|
-
<div id="local"></div>
|
|
23
|
-
`),t(`
|
|
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>"off"</strong> | <strong>"open"</strong> | <strong>"close"</strong></p><p>Default: <strong>"off"</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"},`
|
|
78
|
-
new SlimSelect({
|
|
79
|
-
select: '#search',
|
|
80
|
-
settings: {
|
|
81
|
-
closeOnSelect: false,
|
|
82
|
-
},
|
|
83
|
-
})
|
|
84
|
-
`),t(`
|
|
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"},`
|
|
86
|
-
new SlimSelect({
|
|
87
|
-
select: '#selectElement',
|
|
88
|
-
settings: {
|
|
89
|
-
contentLocation: document.getElementById('local')
|
|
90
|
-
}
|
|
91
|
-
})
|
|
92
|
-
`),t(`
|
|
93
|
-
`)],-1),Qe=e("pre",null,[t(" "),e("code",{class:"language-html"},`
|
|
94
|
-
<select id="contentLocation">
|
|
95
|
-
<option value="value1">Value 1</option>
|
|
96
|
-
<option value="value2">Value 2</option>
|
|
97
|
-
<option value="value3">Value 3</option>
|
|
98
|
-
</select>
|
|
99
|
-
|
|
100
|
-
<!-- The content will go in this div -->
|
|
101
|
-
<div id="local"></div>
|
|
102
|
-
`),t(`
|
|
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"},`
|
|
104
|
-
new SlimSelect({
|
|
105
|
-
select: '#selectElement',
|
|
106
|
-
settings: {
|
|
107
|
-
contentPosition: 'relative' // 'absolute' or 'relative'
|
|
108
|
-
|
|
109
|
-
// To help with relative positioning
|
|
110
|
-
// you can set the contentLocation
|
|
111
|
-
contentLocation: document.getElementById('local')
|
|
112
|
-
}
|
|
113
|
-
})
|
|
114
|
-
`),t(`
|
|
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"},`
|
|
116
|
-
<select id="select-class" class="classItems">
|
|
117
|
-
<option class="red" value="value1">Value 1</option>
|
|
118
|
-
<option class="green" value="value2">Value 2</option>
|
|
119
|
-
<option class="blue" value="value3">Value 3</option>
|
|
120
|
-
</select>
|
|
121
|
-
`),t(`
|
|
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"},`
|
|
123
|
-
new SlimSelect({
|
|
124
|
-
select: '#selectElement',
|
|
125
|
-
settings: {
|
|
126
|
-
allowDeselect: true
|
|
127
|
-
}
|
|
128
|
-
})
|
|
129
|
-
`),t(`
|
|
130
|
-
`)],-1),bo=e("pre",null,[t(" "),e("code",{class:"language-html"},`
|
|
131
|
-
<!-- Requires emtpy data-placeholder option -->
|
|
132
|
-
<select id="allowDeselect">
|
|
133
|
-
<option data-placeholder="true"></option>
|
|
134
|
-
<option value="value1">Value 1</option>
|
|
135
|
-
<option value="value2">Value 2</option>
|
|
136
|
-
<option value="value3">Value 3</option>
|
|
137
|
-
</select>
|
|
138
|
-
`),t(`
|
|
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"},`
|
|
140
|
-
const displaySelect = new SlimSelect({
|
|
141
|
-
select: '#selectElement'
|
|
142
|
-
})
|
|
143
|
-
|
|
144
|
-
const displayData = [
|
|
145
|
-
{ value: 'value1', text: 'Value 1', display: false },
|
|
146
|
-
{ value: 'value2', text: 'Value 2' },
|
|
147
|
-
{ value: 'value3', text: 'Value 3' },
|
|
148
|
-
]
|
|
149
|
-
|
|
150
|
-
displaySelect.setData(displayData)
|
|
151
|
-
displaySelect.set(['value1', 'value3'])
|
|
152
|
-
`),t(`
|
|
153
|
-
`)],-1),Lo=e("pre",null,[t(" "),e("code",{class:"language-html"},`
|
|
154
|
-
<select id="selectMultiMandatory" multiple></select>
|
|
155
|
-
`),t(`
|
|
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"},`
|
|
157
|
-
const slim = new SlimSelect({
|
|
158
|
-
select: '#selectElement'
|
|
159
|
-
});
|
|
160
|
-
`),t(`
|
|
161
|
-
`)],-1),ko=e("pre",null,[t(" "),e("code",{class:"language-html"},`
|
|
162
|
-
<select id="selectdisplay2" multiple>
|
|
163
|
-
<option value="value1" style="display: none;" selected>Value 1</option>
|
|
164
|
-
<option value="value2" selected>Value 2</option>
|
|
165
|
-
<option value="value3">Value 3</option>
|
|
166
|
-
</select>
|
|
167
|
-
`),t(`
|
|
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"},`
|
|
169
|
-
new SlimSelect({
|
|
170
|
-
select: '#selectElement',
|
|
171
|
-
settings: {
|
|
172
|
-
hideSelected: true,
|
|
173
|
-
}
|
|
174
|
-
})
|
|
175
|
-
`),t(`
|
|
176
|
-
`)],-1),il=e("pre",null,[t(" "),e("code",{class:"language-html"},`
|
|
177
|
-
<select id="hideSelectedSingle">
|
|
178
|
-
<option data-placeholder="true"></option>
|
|
179
|
-
<option value="value1">Value 1</option>
|
|
180
|
-
<option value="value2">Value 2</option>
|
|
181
|
-
<option value="value3">Value 3</option>
|
|
182
|
-
</select>
|
|
183
|
-
|
|
184
|
-
<select id="hideSelectedMultiple">
|
|
185
|
-
<option value="value1">Value 1</option>
|
|
186
|
-
<option value="value2">Value 2</option>
|
|
187
|
-
<option value="value3">Value 3</option>
|
|
188
|
-
</select>
|
|
189
|
-
`),t(`
|
|
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"},`
|
|
191
|
-
var select = new SlimSelect({
|
|
192
|
-
select: '#selectElement',
|
|
193
|
-
data: [
|
|
194
|
-
{html: '<img height="30" width="30" src="http://lorempixel.com/30/30" />\xA0Image', text: 'Image', value: 'image'},
|
|
195
|
-
{html: '<b>Bold Text</b>', text: 'Bold Text', value: 'bold text'},
|
|
196
|
-
{html: '<div style="border: solid 1px #666666;">Border</div>', text: 'Border', value: 'border'},
|
|
197
|
-
{html: '<i>Slim Select you are awesome</i>', text: 'Slim Select awesome'}
|
|
198
|
-
]
|
|
199
|
-
})
|
|
200
|
-
`),t(`
|
|
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"},`
|
|
202
|
-
const slim = new SlimSelect({
|
|
203
|
-
select: '#selectElement'
|
|
204
|
-
});
|
|
205
|
-
|
|
206
|
-
const data = [
|
|
207
|
-
{ value: 'value1', text: 'Value 1', mandatory: true },
|
|
208
|
-
{ value: 'value2', text: 'Value 2' },
|
|
209
|
-
{ value: 'value3', text: 'Value 3' },
|
|
210
|
-
]
|
|
211
|
-
|
|
212
|
-
slim.setData(data)
|
|
213
|
-
slim.set(["value1", "value3"])
|
|
214
|
-
`),t(`
|
|
215
|
-
`)],-1),Ml=e("pre",null,[t(" "),e("code",{class:"language-html"},`
|
|
216
|
-
<select id="selectMultiMandatory" multiple></select>
|
|
217
|
-
`),t(`
|
|
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"},`
|
|
219
|
-
const slim = new SlimSelect({
|
|
220
|
-
select: '#selectElement'
|
|
221
|
-
});
|
|
222
|
-
`),t(`
|
|
223
|
-
`)],-1),El=e("pre",null,[t(" "),e("code",{class:"language-html"},`
|
|
224
|
-
<select id="selectMultiMandatory" multiple>
|
|
225
|
-
<option value="value1" data-mandatory="true" selected>Value 1</option>
|
|
226
|
-
<option value="value2" selected>Value 2</option>
|
|
227
|
-
<option value="value3">Value 3</option>
|
|
228
|
-
</select>
|
|
229
|
-
`),t(`
|
|
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"},`
|
|
231
|
-
let slim = new SlimSelect({
|
|
232
|
-
select: '#selectElement',
|
|
233
|
-
settings: {
|
|
234
|
-
minSelected: 2,
|
|
235
|
-
maxSelected: 5,
|
|
236
|
-
},
|
|
237
|
-
})
|
|
238
|
-
`),t(`
|
|
239
|
-
`)],-1),zl=e("pre",null,[t(" "),e("code",{class:"language-html"},`
|
|
240
|
-
<select id="selectMultiMax" multiple>
|
|
241
|
-
<option value="value1">Value 1</option>
|
|
242
|
-
<option value="value2">Value 2</option>
|
|
243
|
-
<option value="value3">Value 3</option>
|
|
244
|
-
<option value="value4">Value 4</option>
|
|
245
|
-
<option value="value5">Value 5</option>
|
|
246
|
-
<option value="value6">Value 6</option>
|
|
247
|
-
</select>
|
|
248
|
-
`),t(`
|
|
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"},`
|
|
250
|
-
new SlimSelect({
|
|
251
|
-
select: '#selectElement',
|
|
252
|
-
settings: {
|
|
253
|
-
openPosition: 'auto' // 'auto', 'up' or 'down'
|
|
254
|
-
}
|
|
255
|
-
})
|
|
256
|
-
`),t(`
|
|
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"},`
|
|
258
|
-
new SlimSelect({
|
|
259
|
-
select: '#placeholder',
|
|
260
|
-
settings: {
|
|
261
|
-
placeholderText: 'Custom Placeholder Text',
|
|
262
|
-
}
|
|
263
|
-
})
|
|
264
|
-
`),t(`
|
|
265
|
-
`)],-1),An=e("pre",null,[t(" "),e("code",{class:"language-html"},`
|
|
266
|
-
<!-- Set empty option with data-placeholder if you to have placeholder -->
|
|
267
|
-
<!-- text for single select, otherwise first option will be selected -->
|
|
268
|
-
<select id="placeholderSingle">
|
|
269
|
-
<option data-placeholder="true"></option>
|
|
270
|
-
<option value="value1">Value 1</option>
|
|
271
|
-
<option value="value2">Value 2</option>
|
|
272
|
-
<option value="value3">Value 3</option>
|
|
273
|
-
</select>
|
|
274
|
-
`),t(`
|
|
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 'No Results'. </p><p><b>searchingText</b> - is a string value that will show during an fetch search request. Default is 'Searching...'. </p><p><b>searchPlaceholder</b> - is a string value that will set the value of the input search placeholder text. Default is 'Search'. </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"},`
|
|
276
|
-
let slim = new SlimSelect({
|
|
277
|
-
select: '#selectElement',
|
|
278
|
-
settings: {
|
|
279
|
-
showSearch: false,
|
|
280
|
-
searchText: 'Sorry nothing to see here',
|
|
281
|
-
searchPlaceholder: 'Search for the good stuff!',
|
|
282
|
-
searchHighlight: true
|
|
283
|
-
}
|
|
284
|
-
})
|
|
285
|
-
`),t(`
|
|
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"},`
|
|
287
|
-
new SlimSelect({
|
|
288
|
-
select: '#selectElement',
|
|
289
|
-
// or
|
|
290
|
-
select: document.querySelector('#selectElement')
|
|
291
|
-
})
|
|
292
|
-
|
|
293
|
-
// If you already have a currenlty running SlimSelect but lost the reference to it.
|
|
294
|
-
// You can access from the original select element.
|
|
295
|
-
let el = document.querySelector('#selectElement')
|
|
296
|
-
el.slim.open() // Or any other options/methods
|
|
297
|
-
`),t(`
|
|
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"},`
|
|
299
|
-
new SlimSelect({
|
|
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
|
-
],
|
|
321
|
-
})
|
|
322
|
-
`),t(`
|
|
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"},`
|
|
338
|
-
new SlimSelect({
|
|
339
|
-
select: '#selectElement',
|
|
340
|
-
settings: {
|
|
341
|
-
showOptionTooltips: true,
|
|
342
|
-
}
|
|
343
|
-
})
|
|
344
|
-
`),t(`
|
|
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"},`
|
|
346
|
-
<select id="select-style" style="color: red;">
|
|
347
|
-
<option value="value1">Value 1</option>
|
|
348
|
-
<option value="value2">Value 2</option>
|
|
349
|
-
<option value="value3">Value 3</option>
|
|
350
|
-
</select>
|
|
351
|
-
|
|
352
|
-
<select id="option-style">
|
|
353
|
-
<option style="color: red;" value="value1">Red</option>
|
|
354
|
-
<option style="color: green;">Green</option>
|
|
355
|
-
<option style="color: blue;">Blue</option>
|
|
356
|
-
</select>
|
|
357
|
-
`),t(`
|
|
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};
|
package/docs/assets/index3.js
DELETED
|
@@ -1,142 +0,0 @@
|
|
|
1
|
-
import{d as _,S as i,_ as g,o as l,c as r,f as s,t as d,i as v,a as e,F as y,j as O,k as V,O as M,r as p,b as f}from"./index.js";const A=_({name:"Error",data(){return{errorSingle:null,errMsg:""}},mounted(){this.errorSingle=new i({select:this.$refs.errorSingle,events:{error:t=>{this.errMsg=t.message}}})}}),k={id:"error",class:"content"},j=e("h2",{class:"header"},"error",-1),F=e("p",null,"The error event is fired when an error occurs. The error message is passed as the first argument.",-1),T=e("div",{class:"alert info"}," If you are are having issues with slim select finding the select element. Try delaying new SlimSelect() call as the select dom element might not be available yet. ",-1),E={key:0},x=e("b",null,"Error:",-1),B={class:"row"},D={ref:"notError"},L=e("option",{value:"1"},"Option 1",-1),N=e("option",{value:"2"},"Option 2",-1),P=e("option",{value:"3"},"Option 3",-1),R=[L,N,P],H=e("pre",null,[s(" "),e("code",{class:"language-javascript"},`
|
|
2
|
-
var select = new SlimSelect({
|
|
3
|
-
select: '#selectElement',
|
|
4
|
-
events: {
|
|
5
|
-
error: function(err) {
|
|
6
|
-
console.error(err)
|
|
7
|
-
}
|
|
8
|
-
}
|
|
9
|
-
})
|
|
10
|
-
`),s(`
|
|
11
|
-
`)],-1);function I(t,n,c,h,u,o){return l(),r("div",k,[j,F,T,t.errMsg!==""?(l(),r("div",E,[x,s(" "+d(t.errMsg),1)])):v("",!0),e("div",B,[e("select",D,R,512)]),H])}const J=g(A,[["render",I]]),U=_({name:"BeforeAfterChange",data(){return{beforeChangeSingle:[],beforeChangeMultiple:[],afterChangeSingle:[],afterChangeMultiple:[]}},mounted(){new i({select:this.$refs.beforeChangeSingle,settings:{allowDeselect:!0},events:{beforeChange:(t,n)=>(this.beforeChangeSingle=n,!0)}}),new i({select:this.$refs.beforeChangeMultiple,events:{beforeChange:(t,n)=>(this.beforeChangeMultiple=n,!0)}}),new i({select:this.$refs.afterChangeSingle,settings:{allowDeselect:!0},events:{afterChange:t=>{this.afterChangeSingle=t}}}),new i({select:this.$refs.afterChangeMultiple,events:{afterChange:t=>{this.afterChangeMultiple=t}}})}}),z={id:"beforeChange",class:"content"},q=e("h2",{class:"header"},"beforeChange",-1),G=e("p",null," beforeOnChange will trigger a callback on an option click and will allow you the ability to halt if the value it produces isnt to your liking. In order to stop the change from happening just return false on the callback. Returning nothing or true will allow it to continue as normal. ",-1),K=e("div",{class:"alert info"}," Be sure to return true to allow for the change to happen. False or nothing to cancel change. ",-1),Q={key:0},W={ref:"beforeChangeSingle"},X=e("option",{"data-placeholder":"true"},"Select Option",-1),Y=e("option",{value:"value1"},"Value 1",-1),Z=e("option",{value:"value2"},"Value 2",-1),ee=e("option",{value:"value3"},"Value 3",-1),te=[X,Y,Z,ee],ne=e("br",null,null,-1),se={key:1},oe={ref:"beforeChangeMultiple",multiple:""},ae=e("option",{value:"value1",selected:""},"Value 1",-1),le=e("option",{value:"value2"},"Value 2",-1),re=e("option",{value:"value3"},"Value 3",-1),ie=[ae,le,re],ce=e("pre",null,[s(" "),e("code",{class:"language-javascript"},`
|
|
12
|
-
new SlimSelect({
|
|
13
|
-
select: '#selectElement',
|
|
14
|
-
events: {
|
|
15
|
-
beforeChange: (newVal, oldVal) => {
|
|
16
|
-
console.log(newVal)
|
|
17
|
-
return false // this will stop the change from happening
|
|
18
|
-
}
|
|
19
|
-
}
|
|
20
|
-
})
|
|
21
|
-
`),s(`
|
|
22
|
-
`)],-1),he={id:"afterChange",class:"content"},ue=e("h2",{class:"header"},"afterChange",-1),de=e("p",null,"afterChange will trigger a callback after the value of the select dropdown has changed.",-1),_e={key:0},pe={ref:"afterChangeSingle"},fe=e("option",{"data-placeholder":"true"},"Select Option",-1),ge=e("option",{value:"value1"},"Value 1",-1),ve=e("option",{value:"value2"},"Value 2",-1),me=e("option",{value:"value3"},"Value 3",-1),$e=[fe,ge,ve,me],be=e("br",null,null,-1),Se={key:1},Ce={ref:"afterChangeMultiple",multiple:""},we=e("option",{value:"value1",selected:""},"Value 1",-1),Oe=e("option",{value:"value2"},"Value 2",-1),ye=e("option",{value:"value3"},"Value 3",-1),Ve=[we,Oe,ye],Me=e("pre",null,[s(" "),e("code",{class:"language-javascript"},`
|
|
23
|
-
new SlimSelect({
|
|
24
|
-
select: '#selectElement',
|
|
25
|
-
events: {
|
|
26
|
-
afterChange: (newVal) => {
|
|
27
|
-
console.log(newVal)
|
|
28
|
-
}
|
|
29
|
-
}
|
|
30
|
-
})
|
|
31
|
-
`),s(`
|
|
32
|
-
`)],-1);function Ae(t,n,c,h,u,o){return l(),r(y,null,[e("div",z,[q,G,K,t.beforeChangeSingle?(l(),r("div",Q,[e("strong",null,"Before change: "+d(t.beforeChangeSingle),1)])):v("",!0),e("select",W,te,512),ne,t.beforeChangeMultiple?(l(),r("div",se,[e("strong",null,"Before change: "+d(t.beforeChangeMultiple),1)])):v("",!0),e("select",oe,ie,512),ce]),e("div",he,[ue,de,t.afterChangeSingle?(l(),r("div",_e,[e("strong",null,"After change: "+d(t.afterChangeSingle),1)])):v("",!0),e("select",pe,$e,512),be,t.afterChangeMultiple?(l(),r("div",Se,[e("strong",null,"After change: "+d(t.afterChangeMultiple),1)])):v("",!0),e("select",Ce,Ve,512),Me])],64)}const ke=g(U,[["render",Ae]]),je=_({name:"BeForeAfterOpenClose",data(){return{beforeAfterOpenCloseSingle:null,singleState:"",beforeAfterOpenCloseMultiple:null,multipleState:""}},mounted(){this.beforeAfterOpenCloseSingle=new i({select:this.$refs.beforeAfterOpenCloseSingle,events:{beforeOpen:()=>{this.setState("single","beforeOpen")},afterOpen:()=>{this.setState("single","afterOpen")},beforeClose:()=>{this.setState("single","beforeClose")},afterClose:()=>{this.setState("single","afterClose")}}}),this.beforeAfterOpenCloseMultiple=new i({select:this.$refs.beforeAfterOpenCloseMultiple,events:{beforeOpen:()=>{this.setState("multiple","beforeOpen")},afterOpen:()=>{this.setState("multiple","afterOpen")},beforeClose:()=>{this.setState("multiple","beforeClose")},afterClose:()=>{this.setState("multiple","afterClose")}}})},methods:{setState(t,n){t==="single"?this.singleState=n:this.multipleState=n,setTimeout(()=>{t==="single"?this.singleState="":this.multipleState=""},1e3)}}}),Fe={id:"open",class:"content"},Te=e("h2",{class:"header"},"beforeOpen / afterOpen / beforeClose / afterClose",-1),Ee=e("p",null," The beforeOpen, afterOpen, beforeClose, and afterClose events will fire before and after the select is opened and closed. ",-1),xe={class:"row"},Be={ref:"beforeAfterOpenCloseSingle"},De=e("option",{value:"value1"},"Value 1",-1),Le=e("option",{value:"value2"},"Value 2",-1),Ne=e("option",{value:"value3"},"Value 3",-1),Pe=[De,Le,Ne],Re={ref:"beforeAfterOpenCloseMultiple",multiple:""},He=e("option",{value:"value1"},"Value 1",-1),Ie=e("option",{value:"value2"},"Value 2",-1),Je=e("option",{value:"value3"},"Value 3",-1),Ue=[He,Ie,Je],ze=e("pre",null,[s(" "),e("code",{class:"language-javascript"},`
|
|
33
|
-
var select = new SlimSelect({
|
|
34
|
-
select: '#selectElement',
|
|
35
|
-
events: {
|
|
36
|
-
beforeOpen: () => {
|
|
37
|
-
console.log('before open')
|
|
38
|
-
},
|
|
39
|
-
afterOpen: () => {
|
|
40
|
-
console.log('after open')
|
|
41
|
-
},
|
|
42
|
-
beforeClose: () => {
|
|
43
|
-
console.log('before close')
|
|
44
|
-
},
|
|
45
|
-
afterClose: () => {
|
|
46
|
-
console.log('after close')
|
|
47
|
-
},
|
|
48
|
-
},
|
|
49
|
-
})
|
|
50
|
-
`),s(`
|
|
51
|
-
`)],-1);function qe(t,n,c,h,u,o){return l(),r("div",Fe,[Te,Ee,e("div",xe,[e("div",null,[e("div",null,"State: "+d(t.singleState),1),e("select",Be,Pe,512)]),e("div",null,[e("div",null,"State: "+d(t.multipleState),1),e("select",Re,Ue,512)])]),ze])}const Ge=g(je,[["render",qe]]),Ke={id:"search",class:"content"},Qe=e("h2",{class:"header"},"search",-1),We=e("p",null,[s(" Slim select allows you to syncronize result values from your promise response."),e("br"),s(" Call callback() method with slimselect data, false or string with specific string. ")],-1),Xe={class:"row"},Ye=e("pre",null,[s(" "),e("code",{class:"language-javascript"},`
|
|
52
|
-
new SlimSelect({
|
|
53
|
-
select: '#selectElement',
|
|
54
|
-
events: {
|
|
55
|
-
search: (search, currentData) => {
|
|
56
|
-
return new Promise((resolve, reject) => {
|
|
57
|
-
if (search.length < 2) {
|
|
58
|
-
return reject('Search must be at least 2 characters')
|
|
59
|
-
}
|
|
60
|
-
|
|
61
|
-
// Fetch random first and last name data
|
|
62
|
-
fetch('https://api.gofakeit.com/json', {
|
|
63
|
-
method: 'POST',
|
|
64
|
-
headers: {
|
|
65
|
-
'Content-Type': 'application/json',
|
|
66
|
-
},
|
|
67
|
-
body: JSON.stringify({
|
|
68
|
-
type: 'array',
|
|
69
|
-
rowcount: 10,
|
|
70
|
-
indent: false,
|
|
71
|
-
fields: [
|
|
72
|
-
{ name: 'first_name', function: 'firstname', params: {} },
|
|
73
|
-
{ name: 'last_name', function: 'lastname', params: {} },
|
|
74
|
-
],
|
|
75
|
-
}),
|
|
76
|
-
})
|
|
77
|
-
.then((response) => response.json())
|
|
78
|
-
.then((data) => {
|
|
79
|
-
// Take the data and create an array of options
|
|
80
|
-
// excluding any that are already selected in currentData
|
|
81
|
-
const options = data
|
|
82
|
-
.filter((person) => {
|
|
83
|
-
return !currentData.some((optionData) => {
|
|
84
|
-
return optionData.value === \`\${person.first_name} \${person.last_name}\`
|
|
85
|
-
})
|
|
86
|
-
})
|
|
87
|
-
.map((person) => {
|
|
88
|
-
return {
|
|
89
|
-
text: \`\${person.first_name} \${person.last_name}\`,
|
|
90
|
-
value: \`\${person.first_name} \${person.last_name}\`,
|
|
91
|
-
}
|
|
92
|
-
})
|
|
93
|
-
|
|
94
|
-
resolve(options)
|
|
95
|
-
})
|
|
96
|
-
})
|
|
97
|
-
}
|
|
98
|
-
}
|
|
99
|
-
})
|
|
100
|
-
`),s(`
|
|
101
|
-
`)],-1),Ze=_({__name:"search",setup(t){let n=[],c=O(null),h=O(null);fetch("https://api.gofakeit.com/json",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({type:"array",rowcount:1e3,indent:!1,fields:[{name:"first_name",function:"firstname",params:{}},{name:"last_name",function:"lastname",params:{}}]})}).then(o=>o.json()).then(o=>{n=o}),V(()=>{new i({select:c.value,settings:{placeholderText:"Search First or Last Name",searchingText:"Searching Users...",searchHighlight:!0},events:{search:u}}),new i({select:h.value,settings:{placeholderText:"Search First or Last Name",searchingText:"Searching Users...",searchHighlight:!0},events:{search:u}})});function u(o,m){return new Promise((S,$)=>{if(o.length<2)return $("Search must be at least 2 characters");const b=n.filter(a=>a.first_name.toLowerCase().includes(o.toLowerCase())||a.last_name.toLowerCase().includes(o.toLowerCase()));if(b.length===0)return $("No results found");const C=b.filter(a=>!m.some(w=>w instanceof M&&w.value===`${a.first_name} ${a.last_name}`)).map(a=>({text:`${a.first_name} ${a.last_name}`,value:`${a.first_name} ${a.last_name}`}));setTimeout(()=>{S(C)},300)})}return(o,m)=>(l(),r("div",Ke,[Qe,We,e("div",Xe,[e("select",{ref_key:"searchSingle",ref:c},null,512),e("select",{ref_key:"searchMultiple",ref:h,multiple:""},null,512)]),Ye]))}}),et=_({name:"SearchFilter",mounted(){new i({select:this.$refs.searchFilter,events:{searchFilter:(t,n)=>t.text.substr(0,n.length)===n}})}}),tt={id:"searchFilter",class:"content"},nt=e("h2",{class:"header"},"searchFilter",-1),st=e("p",null,"searchFilter event is used to replace the default matching algorithm.",-1),ot=e("p",null,[s("See Data for the proper object interface of "),e("em",null,"option"),s(".")],-1),at={ref:"searchFilter"},lt=e("option",{value:"apple"},"Apple",-1),rt=e("option",{value:"orange"},"Orange",-1),it=e("option",{value:"pineapple"},"Pineapple",-1),ct=[lt,rt,it],ht=e("pre",null,[s(" "),e("code",{class:"language-javascript"},`
|
|
102
|
-
new SlimSelect({
|
|
103
|
-
select: '#selectElement',
|
|
104
|
-
events: {
|
|
105
|
-
// Exact case sensitive start of string match
|
|
106
|
-
searchFilter: (option, search) => {
|
|
107
|
-
return option.text.substr(0, search.length) === search
|
|
108
|
-
}
|
|
109
|
-
}
|
|
110
|
-
})
|
|
111
|
-
`),s(`
|
|
112
|
-
`)],-1);function ut(t,n,c,h,u,o){return l(),r("div",tt,[nt,st,ot,e("select",at,ct,512),ht])}const dt=g(et,[["render",ut]]),_t=_({name:"Addable",mounted(){new i({select:this.$refs.addableSingle,events:{addable:t=>({text:t,value:t.toLowerCase()})}}),new i({select:this.$refs.addableMultiple,events:{addable:t=>new Promise(n=>{setTimeout(()=>{n({text:t,value:t})},100)})}})}}),pt={id:"addable",class:"content"},ft=e("h2",{class:"header"},"addable",-1),gt=e("p",null,"Slim select has the ability to dynamically add options via the search input field",-1),vt=e("p",null," addable is a callback which takes a function parameter. The return value can either be a string or an option object. ",-1),mt={class:"row"},$t={ref:"addableSingle"},bt=e("option",{value:"value1"},"Value 1",-1),St=e("option",{value:"value2"},"Value 2",-1),Ct=e("option",{value:"value3"},"Value 3",-1),wt=[bt,St,Ct],Ot={ref:"addableMultiple",multiple:""},yt=e("option",{value:"value1"},"Value 1",-1),Vt=e("option",{value:"value2"},"Value 2",-1),Mt=e("option",{value:"value3"},"Value 3",-1),At=[yt,Vt,Mt],kt=e("pre",null,[s(" "),e("code",{class:"language-javascript"},`
|
|
113
|
-
new SlimSelect({
|
|
114
|
-
select: '#selectElement',
|
|
115
|
-
|
|
116
|
-
events: {
|
|
117
|
-
addable: function (value) {
|
|
118
|
-
// return false or null if you do not want to allow value to be submitted
|
|
119
|
-
if (value === 'bad') {return false}
|
|
120
|
-
|
|
121
|
-
// Return the value string
|
|
122
|
-
return value // Optional - value alteration // ex: value.toLowerCase()
|
|
123
|
-
|
|
124
|
-
// Optional - Return a valid data object.
|
|
125
|
-
// See methods/setData for list of valid options
|
|
126
|
-
return {
|
|
127
|
-
text: value,
|
|
128
|
-
value: value.toLowerCase()
|
|
129
|
-
}
|
|
130
|
-
|
|
131
|
-
// Optional - Return a promise with either a string or data object
|
|
132
|
-
return new Promise((resolve) => {
|
|
133
|
-
resolve({
|
|
134
|
-
text: value,
|
|
135
|
-
value: value,
|
|
136
|
-
})
|
|
137
|
-
})
|
|
138
|
-
}
|
|
139
|
-
}
|
|
140
|
-
})
|
|
141
|
-
`),s(`
|
|
142
|
-
`)],-1);function jt(t,n,c,h,u,o){return l(),r("div",pt,[ft,gt,vt,e("div",mt,[e("select",$t,wt,512),e("select",Ot,At,512)]),kt])}const Ft=g(_t,[["render",jt]]),Tt=_({name:"Events",components:{Error:J,BeforeAfterChange:ke,BeforeAfterOpenClose:Ge,Search:Ze,SearchFilter:dt,Addable:Ft}}),Et={id:"events",class:"contents"};function xt(t,n,c,h,u,o){const m=p("Error"),S=p("BeforeAfterChange"),$=p("BeforeAfterOpenClose"),b=p("Search"),C=p("SearchFilter"),a=p("Addable");return l(),r("div",Et,[f(m),f(S),f($),f(b),f(C),f(a)])}const Dt=g(Tt,[["render",xt]]);export{Dt as default};
|