jsl-ui 9.18.3 → 9.18.4
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/lib/components/IntervalComponent.d.ts +17 -0
- package/lib/components/IntervalComponent.js +68 -0
- package/lib/components/auto-suggest/AutoSuggestComponent.d.ts +22 -0
- package/lib/components/auto-suggest/AutoSuggestComponent.js +49 -0
- package/lib/components/button/ButtonComponent.d.ts +18 -0
- package/lib/components/button/ButtonComponent.js +46 -0
- package/lib/components/checkbox/CheckBoxComponent.d.ts +28 -0
- package/lib/components/checkbox/CheckBoxComponent.js +94 -0
- package/lib/components/checkbox/CheckBoxStyle.scss +86 -0
- package/lib/components/date/DateComponent.d.ts +32 -0
- package/lib/components/date/DateComponent.js +106 -0
- package/lib/components/date-range/DateRangeComponent.d.ts +35 -0
- package/lib/components/date-range/DateRangeComponent.js +136 -0
- package/lib/components/date-range/DateRangeStyle.scss +12 -0
- package/lib/components/date-time/DateTimeComponent.d.ts +15 -0
- package/lib/components/date-time/DateTimeComponent.js +53 -0
- package/lib/components/date-time/DateTimeStyle.scss +7 -0
- package/lib/components/dialog/DialogComponent.d.ts +67 -0
- package/lib/components/dialog/DialogComponent.js +242 -0
- package/lib/components/drop-down/DropDownComponent.d.ts +27 -0
- package/lib/components/drop-down/DropDownComponent.js +74 -0
- package/lib/components/expander/ExpanderComponent.d.ts +27 -0
- package/lib/components/expander/ExpanderComponent.js +90 -0
- package/lib/components/expander/ExpanderStyle.scss +47 -0
- package/lib/components/expander/OldExpanderStyle.scss +37 -0
- package/lib/components/form-field/FormComponent.d.ts +12 -0
- package/lib/components/form-field/FormComponent.js +26 -0
- package/lib/components/form-field/FormFieldComponent.d.ts +38 -0
- package/lib/components/form-field/FormFieldComponent.js +139 -0
- package/lib/components/form-field/FormFieldStyle.scss +87 -0
- package/lib/components/grid/GridComponent.d.ts +26 -0
- package/lib/components/grid/GridComponent.js +116 -0
- package/lib/components/input/InputComponent.d.ts +33 -0
- package/lib/components/input/InputComponent.js +144 -0
- package/lib/components/loading/LoadingComponent.d.ts +8 -0
- package/lib/components/loading/LoadingComponent.js +22 -0
- package/lib/components/loading/LoadingStyle.css +29 -0
- package/lib/components/navigation/NavigationComponent.d.ts +34 -0
- package/lib/components/navigation/NavigationComponent.js +70 -0
- package/lib/components/navigation/NavigationStyle.scss +226 -0
- package/lib/components/notification/Notification.d.ts +17 -0
- package/lib/components/notification/Notification.js +56 -0
- package/lib/components/notification/Notification.scss +19 -0
- package/lib/components/number/NumberComponent.d.ts +25 -0
- package/lib/components/number/NumberComponent.js +87 -0
- package/lib/components/overlay/OverlayComponent.d.ts +27 -0
- package/lib/components/overlay/OverlayComponent.js +149 -0
- package/lib/components/overlay/overlay.css +57 -0
- package/lib/components/progress/ProgressComponent.d.ts +18 -0
- package/lib/components/progress/ProgressComponent.js +42 -0
- package/lib/components/progress/ProgressStyle.scss +15 -0
- package/lib/components/ribbon-menu/RibbonMenuComponent.d.ts +12 -0
- package/lib/components/ribbon-menu/RibbonMenuComponent.js +34 -0
- package/lib/components/ribbon-menu/RibbonMenuStyle.scss +76 -0
- package/lib/components/select/SelectComponent.d.ts +79 -0
- package/lib/components/select/SelectComponent.js +362 -0
- package/lib/components/select/SelectDDAreaComponent.d.ts +32 -0
- package/lib/components/select/SelectDDAreaComponent.js +317 -0
- package/lib/components/select/SelectStyle.scss +187 -0
- package/lib/components/slider/nouislider.css +310 -0
- package/lib/components/slider/nouislider.d.ts +44 -0
- package/lib/components/slider/nouislider.js +2158 -0
- package/lib/components/stack-panel/SplitterComponent.d.ts +21 -0
- package/lib/components/stack-panel/SplitterComponent.js +126 -0
- package/lib/components/stack-panel/SplitterStyle.scss +45 -0
- package/lib/components/stack-panel/StackPanelComponent.d.ts +20 -0
- package/lib/components/stack-panel/StackPanelComponent.js +64 -0
- package/lib/components/stack-panel/StackPanelStyle.scss +53 -0
- package/lib/components/tabs/TabsComponent.d.ts +39 -0
- package/lib/components/tabs/TabsComponent.js +177 -0
- package/lib/components/tabs/TabsStyle.scss +76 -0
- package/lib/components/time/TimeComponent.d.ts +29 -0
- package/lib/components/time/TimeComponent.js +113 -0
- package/lib/components/time/TimeComponent.scss +4 -0
- package/lib/components/tree-view/TreeViewComponent.d.ts +23 -0
- package/lib/components/tree-view/TreeViewComponent.js +45 -0
- package/lib/components/tree-view/TreeViewStyle.scss +96 -0
- package/lib/components/virtual-render/VirtualRenderComponent.d.ts +30 -0
- package/lib/components/virtual-render/VirtualRenderComponent.js +104 -0
- package/lib/components/virtual-render/VirtualRenderStyle.scss +9 -0
- package/lib/core/culture.d.ts +5 -0
- package/lib/core/culture.js +385 -0
- package/lib/core/date.d.ts +14 -0
- package/lib/core/date.js +350 -0
- package/lib/core/helper.d.ts +12 -0
- package/lib/core/helper.js +101 -0
- package/lib/core/jq.d.ts +37 -0
- package/lib/core/jq.js +371 -0
- package/lib/core/lang.d.ts +24 -0
- package/lib/core/lang.js +28 -0
- package/lib/core/numeric.d.ts +7 -0
- package/lib/core/numeric.js +143 -0
- package/lib/core/polyfills.d.ts +0 -0
- package/lib/core/polyfills.js +22 -0
- package/lib/core.d.ts +6 -0
- package/lib/core.js +6 -0
- package/lib/grid/controls/slick.columnpicker.css +46 -0
- package/lib/grid/controls/slick.draggablegrouping.css +52 -0
- package/lib/grid/controls/slick.gridmenu.css +127 -0
- package/lib/grid/controls/slick.pager.css +41 -0
- package/lib/grid/examples/examples.css +203 -0
- package/lib/grid/filterDialogs/dateRangeFilter.d.ts +7 -0
- package/lib/grid/filterDialogs/dateRangeFilter.js +156 -0
- package/lib/grid/filterDialogs/excelFilter.d.ts +9 -0
- package/lib/grid/filterDialogs/excelFilter.js +313 -0
- package/lib/grid/plugins/ext.overlay.css +28 -0
- package/lib/grid/plugins/ext.overlay.d.ts +2 -0
- package/lib/grid/plugins/ext.overlay.js +291 -0
- package/lib/grid/plugins/slick.cellrangedecorator.d.ts +12 -0
- package/lib/grid/plugins/slick.cellrangedecorator.js +68 -0
- package/lib/grid/plugins/slick.cellrangeselector.d.ts +1 -0
- package/lib/grid/plugins/slick.cellrangeselector.js +144 -0
- package/lib/grid/plugins/slick.cellselectionmodel.d.ts +1 -0
- package/lib/grid/plugins/slick.cellselectionmodel.js +194 -0
- package/lib/grid/plugins/slick.headerbuttons.css +40 -0
- package/lib/grid/plugins/slick.headerbuttons.d.ts +55 -0
- package/lib/grid/plugins/slick.headerbuttons.js +156 -0
- package/lib/grid/plugins/slick.headermenu.css +101 -0
- package/lib/grid/plugins/slick.headermenu.d.ts +74 -0
- package/lib/grid/plugins/slick.headermenu.js +260 -0
- package/lib/grid/plugins/slick.rowdetailview.css +37 -0
- package/lib/grid/plugins/slick.rowmovemanager.css +8 -0
- package/lib/grid/plugins/slick.rowmovemanager.d.ts +18 -0
- package/lib/grid/plugins/slick.rowmovemanager.js +249 -0
- package/lib/grid/plugins/slick.rowselectionmodel.d.ts +1 -0
- package/lib/grid/plugins/slick.rowselectionmodel.js +167 -0
- package/lib/grid/slick-default-theme.css +154 -0
- package/lib/grid/slick.core.d.ts +90 -0
- package/lib/grid/slick.core.js +574 -0
- package/lib/grid/slick.creator.d.ts +80 -0
- package/lib/grid/slick.creator.js +723 -0
- package/lib/grid/slick.dataview.d.ts +71 -0
- package/lib/grid/slick.dataview.js +1080 -0
- package/lib/grid/slick.editors.core.d.ts +4 -0
- package/lib/grid/slick.editors.core.js +232 -0
- package/lib/grid/slick.editors.date.d.ts +2 -0
- package/lib/grid/slick.editors.date.js +125 -0
- package/lib/grid/slick.editors.lookup.d.ts +14 -0
- package/lib/grid/slick.editors.lookup.js +353 -0
- package/lib/grid/slick.editors.nav.d.ts +6 -0
- package/lib/grid/slick.editors.nav.js +22 -0
- package/lib/grid/slick.formatters.d.ts +17 -0
- package/lib/grid/slick.formatters.js +137 -0
- package/lib/grid/slick.grid.css +325 -0
- package/lib/grid/slick.grid.d.ts +284 -0
- package/lib/grid/slick.grid.js +5395 -0
- package/lib/grid/slick.groupitemmetadataprovider.d.ts +39 -0
- package/lib/grid/slick.groupitemmetadataprovider.js +165 -0
- package/lib/grid/slick.tree.css +20 -0
- package/lib/grid/slick.tree.d.ts +33 -0
- package/lib/grid/slick.tree.js +220 -0
- package/lib/grid.d.ts +13 -0
- package/lib/grid.js +13 -0
- package/lib/index.css +2576 -0
- package/lib/index.css.map +1 -1
- package/lib/index.d.ts +56 -0
- package/lib/index.js +61 -10198
- package/lib/index.js.map +1 -1
- package/lib/interaction/dataconverter.d.ts +4 -0
- package/lib/interaction/dataconverter.js +1 -0
- package/lib/interaction/eventhandler.d.ts +13 -0
- package/lib/interaction/eventhandler.js +42 -0
- package/lib/interaction/moveable.css +0 -0
- package/lib/interaction/moveable.d.ts +39 -0
- package/lib/interaction/moveable.js +172 -0
- package/lib/interaction/resizable.css +33 -0
- package/lib/interaction/resizable.d.ts +37 -0
- package/lib/interaction/resizable.js +123 -0
- package/lib/ui/auto.suggest.css +14 -0
- package/lib/ui/auto.suggest.d.ts +17 -0
- package/lib/ui/auto.suggest.js +255 -0
- package/lib/ui/base.css +150 -0
- package/lib/ui/date.picker/css/date-range-picker.css +87 -0
- package/lib/ui/date.picker/css/tiny-date-picker.css +326 -0
- package/lib/ui/date.picker/date-picker-options.d.ts +11 -0
- package/lib/ui/date.picker/date-picker-options.js +76 -0
- package/lib/ui/date.picker/lib/date-manip.d.ts +74 -0
- package/lib/ui/date.picker/lib/date-manip.js +120 -0
- package/lib/ui/date.picker/lib/dom.d.ts +23 -0
- package/lib/ui/date.picker/lib/dom.js +28 -0
- package/lib/ui/date.picker/lib/emitter.d.ts +13 -0
- package/lib/ui/date.picker/lib/emitter.js +49 -0
- package/lib/ui/date.picker/lib/fns.d.ts +23 -0
- package/lib/ui/date.picker/lib/fns.js +43 -0
- package/lib/ui/date.picker/mode/base-mode.d.ts +26 -0
- package/lib/ui/date.picker/mode/base-mode.js +248 -0
- package/lib/ui/date.picker/mode/dropdown-mode.d.ts +28 -0
- package/lib/ui/date.picker/mode/dropdown-mode.js +50 -0
- package/lib/ui/date.picker/mode/index.d.ts +28 -0
- package/lib/ui/date.picker/mode/index.js +18 -0
- package/lib/ui/date.picker/mode/modal-mode.d.ts +25 -0
- package/lib/ui/date.picker/mode/modal-mode.js +17 -0
- package/lib/ui/date.picker/mode/permanent-mode.d.ts +29 -0
- package/lib/ui/date.picker/mode/permanent-mode.js +19 -0
- package/lib/ui/date.picker/views/day-picker.d.ts +40 -0
- package/lib/ui/date.picker/views/day-picker.js +155 -0
- package/lib/ui/date.picker/views/month-picker.d.ts +26 -0
- package/lib/ui/date.picker/views/month-picker.js +65 -0
- package/lib/ui/date.picker/views/year-picker.d.ts +20 -0
- package/lib/ui/date.picker/views/year-picker.js +66 -0
- package/lib/ui/date.picker.d.ts +66 -0
- package/lib/ui/date.picker.js +32 -0
- package/lib/ui/dialog.css +109 -0
- package/lib/ui/dialog.d.ts +22 -0
- package/lib/ui/dialog.js +113 -0
- package/lib/ui/drop.down.css +472 -0
- package/lib/ui/drop.down.d.ts +52 -0
- package/lib/ui/drop.down.js +2112 -0
- package/lib/ui/number.input.css +3 -0
- package/lib/ui/number.input.d.ts +12 -0
- package/lib/ui/number.input.js +64 -0
- package/lib/ui/tabs.css +53 -0
- package/package.json +1 -1
|
@@ -0,0 +1,472 @@
|
|
|
1
|
+
/*!
|
|
2
|
+
* Selectr 2.4.12
|
|
3
|
+
* http://mobius.ovh/docs/selectr
|
|
4
|
+
*
|
|
5
|
+
* Released under the MIT license
|
|
6
|
+
*/
|
|
7
|
+
.jsl-container {
|
|
8
|
+
position: relative;
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
.jsl-container li {
|
|
12
|
+
list-style: none;
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
.jsl-hidden {
|
|
16
|
+
position: absolute;
|
|
17
|
+
overflow: hidden;
|
|
18
|
+
clip: rect(0px, 0px, 0px, 0px);
|
|
19
|
+
width: 1px;
|
|
20
|
+
height: 1px;
|
|
21
|
+
margin: -1px;
|
|
22
|
+
padding: 0;
|
|
23
|
+
border: 0 none;
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
.jsl-visible {
|
|
27
|
+
position: absolute;
|
|
28
|
+
left: 0;
|
|
29
|
+
top: 0;
|
|
30
|
+
width: 100%;
|
|
31
|
+
height: 100%;
|
|
32
|
+
opacity: 0;
|
|
33
|
+
z-index: 11;
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
.jsl-desktop.multiple .jsl-visible {
|
|
37
|
+
display: none;
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
.jsl-desktop.multiple.native-open .jsl-visible {
|
|
41
|
+
top: 100%;
|
|
42
|
+
min-height: 200px !important;
|
|
43
|
+
height: auto;
|
|
44
|
+
opacity: 1;
|
|
45
|
+
display: block;
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
.jsl-container.multiple.jsl-mobile .jsl-selected {
|
|
49
|
+
z-index: 0;
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
.jsl-selected {
|
|
53
|
+
position: relative;
|
|
54
|
+
z-index: 1;
|
|
55
|
+
box-sizing: border-box;
|
|
56
|
+
width: 100%;
|
|
57
|
+
padding: 4px 22px 4px 4px;
|
|
58
|
+
cursor: pointer;
|
|
59
|
+
border: 1px solid #999;
|
|
60
|
+
border-radius: 2px;
|
|
61
|
+
background-color: #fff;
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
.jsl-selected::before {
|
|
65
|
+
position: absolute;
|
|
66
|
+
top: 50%;
|
|
67
|
+
right: 10px;
|
|
68
|
+
width: 0;
|
|
69
|
+
height: 0;
|
|
70
|
+
content: '';
|
|
71
|
+
-o-transform: rotate(0deg) translate3d(0px, -50%, 0px);
|
|
72
|
+
-ms-transform: rotate(0deg) translate3d(0px, -50%, 0px);
|
|
73
|
+
-moz-transform: rotate(0deg) translate3d(0px, -50%, 0px);
|
|
74
|
+
-webkit-transform: rotate(0deg) translate3d(0px, -50%, 0px);
|
|
75
|
+
transform: rotate(0deg) translate3d(0px, -50%, 0px);
|
|
76
|
+
border-width: 4px 4px 0 4px;
|
|
77
|
+
border-style: solid;
|
|
78
|
+
border-color: #6c7a86 transparent transparent;
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
.jsl-container.open .jsl-selected::before,
|
|
82
|
+
.jsl-container.native-open .jsl-selected::before {
|
|
83
|
+
border-width: 0 4px 4px 4px;
|
|
84
|
+
border-style: solid;
|
|
85
|
+
border-color: transparent transparent #6c7a86;
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
.jsl-label {
|
|
89
|
+
display: none;
|
|
90
|
+
overflow: hidden;
|
|
91
|
+
width: 100%;
|
|
92
|
+
white-space: nowrap;
|
|
93
|
+
text-overflow: ellipsis;
|
|
94
|
+
}
|
|
95
|
+
|
|
96
|
+
.jsl-placeholder {
|
|
97
|
+
color: #6c7a86;
|
|
98
|
+
}
|
|
99
|
+
|
|
100
|
+
.jsl-tags {
|
|
101
|
+
margin: 0;
|
|
102
|
+
padding: 0;
|
|
103
|
+
white-space: normal;
|
|
104
|
+
}
|
|
105
|
+
|
|
106
|
+
.has-selected .jsl-tags {
|
|
107
|
+
margin: 0 0 -2px;
|
|
108
|
+
}
|
|
109
|
+
|
|
110
|
+
.jsl-tag {
|
|
111
|
+
list-style: none;
|
|
112
|
+
position: relative;
|
|
113
|
+
float: left;
|
|
114
|
+
padding: 0px 25px 0px 8px;
|
|
115
|
+
margin: 0 2px 2px 0;
|
|
116
|
+
cursor: default;
|
|
117
|
+
color: #fff;
|
|
118
|
+
border: medium none;
|
|
119
|
+
border-radius: 10px;
|
|
120
|
+
background: #acb7bf none repeat scroll 0 0;
|
|
121
|
+
}
|
|
122
|
+
|
|
123
|
+
.jsl-container.multiple.has-selected .jsl-selected {
|
|
124
|
+
padding: 2px 28px 2px 2px;
|
|
125
|
+
}
|
|
126
|
+
|
|
127
|
+
.jsl-options-container {
|
|
128
|
+
position: absolute;
|
|
129
|
+
z-index: 10000;
|
|
130
|
+
top: calc(100% - 1px);
|
|
131
|
+
left: 0;
|
|
132
|
+
display: none;
|
|
133
|
+
box-sizing: border-box;
|
|
134
|
+
width: 100%;
|
|
135
|
+
border-width: 0 1px 1px;
|
|
136
|
+
border-style: solid;
|
|
137
|
+
border-color: transparent #999 #999;
|
|
138
|
+
border-radius: 0 0 3px 3px;
|
|
139
|
+
background-color: #fff;
|
|
140
|
+
}
|
|
141
|
+
|
|
142
|
+
.jsl-container.open .jsl-options-container {
|
|
143
|
+
display: block;
|
|
144
|
+
}
|
|
145
|
+
|
|
146
|
+
.jsl-input-container {
|
|
147
|
+
position: relative;
|
|
148
|
+
display: none;
|
|
149
|
+
}
|
|
150
|
+
|
|
151
|
+
.jsl-clear,
|
|
152
|
+
.jsl-input-clear,
|
|
153
|
+
.jsl-tag-remove {
|
|
154
|
+
position: absolute;
|
|
155
|
+
top: 50%;
|
|
156
|
+
right: 22px;
|
|
157
|
+
width: 20px;
|
|
158
|
+
height: 20px;
|
|
159
|
+
padding: 0;
|
|
160
|
+
cursor: pointer;
|
|
161
|
+
-o-transform: translate3d(0px, -50%, 0px);
|
|
162
|
+
-ms-transform: translate3d(0px, -50%, 0px);
|
|
163
|
+
-moz-transform: translate3d(0px, -50%, 0px);
|
|
164
|
+
-webkit-transform: translate3d(0px, -50%, 0px);
|
|
165
|
+
transform: translate3d(0px, -50%, 0px);
|
|
166
|
+
border: medium none;
|
|
167
|
+
background-color: transparent;
|
|
168
|
+
z-index: 11;
|
|
169
|
+
}
|
|
170
|
+
|
|
171
|
+
.jsl-clear,
|
|
172
|
+
.jsl-input-clear {
|
|
173
|
+
display: none;
|
|
174
|
+
}
|
|
175
|
+
|
|
176
|
+
.jsl-container.has-selected .jsl-clear,
|
|
177
|
+
.jsl-input-container.active .jsl-input-clear {
|
|
178
|
+
display: block;
|
|
179
|
+
}
|
|
180
|
+
|
|
181
|
+
.jsl-selected .jsl-tag-remove {
|
|
182
|
+
right: 2px;
|
|
183
|
+
}
|
|
184
|
+
|
|
185
|
+
.jsl-clear::before,
|
|
186
|
+
.jsl-clear::after,
|
|
187
|
+
.jsl-input-clear::before,
|
|
188
|
+
.jsl-input-clear::after,
|
|
189
|
+
.jsl-tag-remove::before,
|
|
190
|
+
.jsl-tag-remove::after {
|
|
191
|
+
position: absolute;
|
|
192
|
+
top: 5px;
|
|
193
|
+
left: 9px;
|
|
194
|
+
width: 2px;
|
|
195
|
+
height: 10px;
|
|
196
|
+
content: ' ';
|
|
197
|
+
background-color: #6c7a86;
|
|
198
|
+
}
|
|
199
|
+
|
|
200
|
+
.jsl-tag-remove::before,
|
|
201
|
+
.jsl-tag-remove::after {
|
|
202
|
+
top: 4px;
|
|
203
|
+
width: 3px;
|
|
204
|
+
height: 12px;
|
|
205
|
+
background-color: #fff;
|
|
206
|
+
}
|
|
207
|
+
|
|
208
|
+
.jsl-clear:before,
|
|
209
|
+
.jsl-input-clear::before,
|
|
210
|
+
.jsl-tag-remove::before {
|
|
211
|
+
-o-transform: rotate(45deg);
|
|
212
|
+
-ms-transform: rotate(45deg);
|
|
213
|
+
-moz-transform: rotate(45deg);
|
|
214
|
+
-webkit-transform: rotate(45deg);
|
|
215
|
+
transform: rotate(45deg);
|
|
216
|
+
}
|
|
217
|
+
|
|
218
|
+
.jsl-clear:after,
|
|
219
|
+
.jsl-input-clear::after,
|
|
220
|
+
.jsl-tag-remove::after {
|
|
221
|
+
-o-transform: rotate(-45deg);
|
|
222
|
+
-ms-transform: rotate(-45deg);
|
|
223
|
+
-moz-transform: rotate(-45deg);
|
|
224
|
+
-webkit-transform: rotate(-45deg);
|
|
225
|
+
transform: rotate(-45deg);
|
|
226
|
+
}
|
|
227
|
+
|
|
228
|
+
.jsl-input-container.active,
|
|
229
|
+
.jsl-input-container.active .jsl-clear {
|
|
230
|
+
display: block;
|
|
231
|
+
}
|
|
232
|
+
|
|
233
|
+
.jsl-input {
|
|
234
|
+
top: 5px;
|
|
235
|
+
left: 5px;
|
|
236
|
+
box-sizing: border-box;
|
|
237
|
+
width: calc(100% - 30px);
|
|
238
|
+
margin: 4px 5px;
|
|
239
|
+
padding: 7px 30px 7px 9px;
|
|
240
|
+
border: 1px solid #999;
|
|
241
|
+
border-radius: 3px;
|
|
242
|
+
}
|
|
243
|
+
|
|
244
|
+
.jsl-notice {
|
|
245
|
+
display: none;
|
|
246
|
+
box-sizing: border-box;
|
|
247
|
+
width: 100%;
|
|
248
|
+
padding: 8px 16px;
|
|
249
|
+
border-top: 1px solid #999;
|
|
250
|
+
border-radius: 0 0 3px 3px;
|
|
251
|
+
background-color: #fff;
|
|
252
|
+
}
|
|
253
|
+
|
|
254
|
+
.jsl-container.notice .jsl-notice {
|
|
255
|
+
display: block;
|
|
256
|
+
}
|
|
257
|
+
|
|
258
|
+
.jsl-container.notice .jsl-selected {
|
|
259
|
+
border-radius: 3px 3px 0 0;
|
|
260
|
+
}
|
|
261
|
+
|
|
262
|
+
.jsl-options {
|
|
263
|
+
position: relative;
|
|
264
|
+
top: calc(100% + 2px);
|
|
265
|
+
display: none;
|
|
266
|
+
overflow-x: auto;
|
|
267
|
+
overflow-y: auto;
|
|
268
|
+
max-height: 200px;
|
|
269
|
+
margin: 0;
|
|
270
|
+
padding: 0;
|
|
271
|
+
}
|
|
272
|
+
|
|
273
|
+
.jsl-container.open .jsl-options,
|
|
274
|
+
.jsl-container.open .jsl-input-container,
|
|
275
|
+
.jsl-container.notice .jsl-options-container {
|
|
276
|
+
display: block;
|
|
277
|
+
}
|
|
278
|
+
|
|
279
|
+
.jsl-option {
|
|
280
|
+
position: relative;
|
|
281
|
+
display: block;
|
|
282
|
+
padding: 3px 4px 4px 2px;
|
|
283
|
+
list-style: outside none none;
|
|
284
|
+
cursor: pointer;
|
|
285
|
+
font-weight: normal;
|
|
286
|
+
}
|
|
287
|
+
|
|
288
|
+
.jsl-options.optgroups > .jsl-option {
|
|
289
|
+
padding-left: 25px;
|
|
290
|
+
}
|
|
291
|
+
|
|
292
|
+
.jsl-optgroup {
|
|
293
|
+
font-weight: bold;
|
|
294
|
+
padding: 0;
|
|
295
|
+
}
|
|
296
|
+
|
|
297
|
+
.jsl-optgroup--label {
|
|
298
|
+
font-weight: bold;
|
|
299
|
+
margin-top: 10px;
|
|
300
|
+
padding: 5px 15px;
|
|
301
|
+
}
|
|
302
|
+
|
|
303
|
+
.jsl-match {
|
|
304
|
+
text-decoration: underline;
|
|
305
|
+
}
|
|
306
|
+
|
|
307
|
+
.jsl-option.selected {
|
|
308
|
+
background-color: #ddd;
|
|
309
|
+
}
|
|
310
|
+
|
|
311
|
+
.jsl-option.active {
|
|
312
|
+
color: #fff;
|
|
313
|
+
background-color: #5897fb;
|
|
314
|
+
}
|
|
315
|
+
|
|
316
|
+
.jsl-option.disabled {
|
|
317
|
+
opacity: 0.4;
|
|
318
|
+
}
|
|
319
|
+
|
|
320
|
+
.jsl-option.excluded {
|
|
321
|
+
display: none;
|
|
322
|
+
}
|
|
323
|
+
|
|
324
|
+
.jsl-container.open .jsl-selected {
|
|
325
|
+
border-color: #999 #999 transparent #999;
|
|
326
|
+
border-radius: 3px 3px 0 0;
|
|
327
|
+
}
|
|
328
|
+
|
|
329
|
+
.jsl-container.open .jsl-selected::after {
|
|
330
|
+
-o-transform: rotate(180deg) translate3d(0px, 50%, 0px);
|
|
331
|
+
-ms-transform: rotate(180deg) translate3d(0px, 50%, 0px);
|
|
332
|
+
-moz-transform: rotate(180deg) translate3d(0px, 50%, 0px);
|
|
333
|
+
-webkit-transform: rotate(180deg) translate3d(0px, 50%, 0px);
|
|
334
|
+
transform: rotate(180deg) translate3d(0px, 50%, 0px);
|
|
335
|
+
}
|
|
336
|
+
|
|
337
|
+
.jsl-disabled {
|
|
338
|
+
opacity: .6;
|
|
339
|
+
}
|
|
340
|
+
|
|
341
|
+
.jsl-empty,
|
|
342
|
+
.has-selected .jsl-placeholder {
|
|
343
|
+
display: none;
|
|
344
|
+
}
|
|
345
|
+
|
|
346
|
+
.has-selected .jsl-label {
|
|
347
|
+
display: block;
|
|
348
|
+
}
|
|
349
|
+
|
|
350
|
+
/* TAGGABLE */
|
|
351
|
+
.taggable .jsl-selected {
|
|
352
|
+
padding: 4px 28px 4px 4px;
|
|
353
|
+
}
|
|
354
|
+
|
|
355
|
+
.taggable .jsl-selected::after {
|
|
356
|
+
display: table;
|
|
357
|
+
content: " ";
|
|
358
|
+
clear: both;
|
|
359
|
+
}
|
|
360
|
+
|
|
361
|
+
.taggable .jsl-label {
|
|
362
|
+
width: auto;
|
|
363
|
+
}
|
|
364
|
+
|
|
365
|
+
.taggable .jsl-tags {
|
|
366
|
+
float: left;
|
|
367
|
+
display: block;
|
|
368
|
+
}
|
|
369
|
+
|
|
370
|
+
.taggable .jsl-placeholder {
|
|
371
|
+
display: none;
|
|
372
|
+
}
|
|
373
|
+
|
|
374
|
+
.input-tag {
|
|
375
|
+
float: left;
|
|
376
|
+
min-width: 90px;
|
|
377
|
+
width: auto;
|
|
378
|
+
}
|
|
379
|
+
|
|
380
|
+
.jsl-tag-input {
|
|
381
|
+
border: medium none;
|
|
382
|
+
padding: 3px 10px;
|
|
383
|
+
width: 100%;
|
|
384
|
+
font-family: inherit;
|
|
385
|
+
font-weight: inherit;
|
|
386
|
+
font-size: inherit;
|
|
387
|
+
}
|
|
388
|
+
|
|
389
|
+
.jsl-input-container.loading::after {
|
|
390
|
+
position: absolute;
|
|
391
|
+
top: 50%;
|
|
392
|
+
right: 20px;
|
|
393
|
+
width: 20px;
|
|
394
|
+
height: 20px;
|
|
395
|
+
content: '';
|
|
396
|
+
-o-transform: translate3d(0px, -50%, 0px);
|
|
397
|
+
-ms-transform: translate3d(0px, -50%, 0px);
|
|
398
|
+
-moz-transform: translate3d(0px, -50%, 0px);
|
|
399
|
+
-webkit-transform: translate3d(0px, -50%, 0px);
|
|
400
|
+
transform: translate3d(0px, -50%, 0px);
|
|
401
|
+
|
|
402
|
+
-o-transform-origin: 50% 0 0;
|
|
403
|
+
-ms-transform-origin: 50% 0 0;
|
|
404
|
+
-moz-transform-origin: 50% 0 0;
|
|
405
|
+
-webkit-transform-origin: 50% 0 0;
|
|
406
|
+
transform-origin: 50% 0 0;
|
|
407
|
+
|
|
408
|
+
-moz-animation: 500ms linear 0s normal forwards infinite running spin;
|
|
409
|
+
-webkit-animation: 500ms linear 0s normal forwards infinite running spin;
|
|
410
|
+
animation: 500ms linear 0s normal forwards infinite running spin;
|
|
411
|
+
border-width: 3px;
|
|
412
|
+
border-style: solid;
|
|
413
|
+
border-color: #aaa #ddd #ddd;
|
|
414
|
+
border-radius: 50%;
|
|
415
|
+
}
|
|
416
|
+
|
|
417
|
+
@-webkit-keyframes spin {
|
|
418
|
+
0% {
|
|
419
|
+
-webkit-transform: rotate(0deg) translate3d(0px, -50%, 0px);
|
|
420
|
+
transform: rotate(0deg) translate3d(0px, -50%, 0px);
|
|
421
|
+
}
|
|
422
|
+
100% {
|
|
423
|
+
-webkit-transform: rotate(360deg) translate3d(0px, -50%, 0px);
|
|
424
|
+
transform: rotate(360deg) translate3d(0px, -50%, 0px);
|
|
425
|
+
}
|
|
426
|
+
}
|
|
427
|
+
@keyframes spin {
|
|
428
|
+
0% {
|
|
429
|
+
-webkit-transform: rotate(0deg) translate3d(0px, -50%, 0px);
|
|
430
|
+
transform: rotate(0deg) translate3d(0px, -50%, 0px);
|
|
431
|
+
}
|
|
432
|
+
100% {
|
|
433
|
+
-webkit-transform: rotate(360deg) translate3d(0px, -50%, 0px);
|
|
434
|
+
transform: rotate(360deg) translate3d(0px, -50%, 0px);
|
|
435
|
+
}
|
|
436
|
+
}
|
|
437
|
+
.jsl-container.open.inverted .jsl-selected {
|
|
438
|
+
border-color: transparent #999 #999;
|
|
439
|
+
border-radius: 0 0 3px 3px;
|
|
440
|
+
}
|
|
441
|
+
|
|
442
|
+
.jsl-container.inverted .jsl-options-container {
|
|
443
|
+
border-width: 1px 1px 0;
|
|
444
|
+
border-color: #999 #999 transparent;
|
|
445
|
+
border-radius: 3px 3px 0 0;
|
|
446
|
+
background-color: #fff;
|
|
447
|
+
}
|
|
448
|
+
|
|
449
|
+
.jsl-container.inverted .jsl-options-container {
|
|
450
|
+
top: auto;
|
|
451
|
+
bottom: calc(100% - 1px);
|
|
452
|
+
}
|
|
453
|
+
|
|
454
|
+
.jsl-container ::-webkit-input-placeholder {
|
|
455
|
+
color: #6c7a86;
|
|
456
|
+
opacity: 1;
|
|
457
|
+
}
|
|
458
|
+
|
|
459
|
+
.jsl-container ::-moz-placeholder {
|
|
460
|
+
color: #6c7a86;
|
|
461
|
+
opacity: 1;
|
|
462
|
+
}
|
|
463
|
+
|
|
464
|
+
.jsl-container :-ms-input-placeholder {
|
|
465
|
+
color: #6c7a86;
|
|
466
|
+
opacity: 1;
|
|
467
|
+
}
|
|
468
|
+
|
|
469
|
+
.jsl-container ::placeholder {
|
|
470
|
+
color: #6c7a86;
|
|
471
|
+
opacity: 1;
|
|
472
|
+
}
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
/*!
|
|
2
|
+
* Selectr 2.4.12
|
|
3
|
+
* http://mobius.ovh/docs/selectr
|
|
4
|
+
*
|
|
5
|
+
* Released under the MIT license
|
|
6
|
+
*/
|
|
7
|
+
import "./drop.down.css";
|
|
8
|
+
export interface IDropDown {
|
|
9
|
+
setValue: (value: string | string[]) => void;
|
|
10
|
+
getValue: (toObject?: boolean, toJson?: boolean) => string | string[];
|
|
11
|
+
add: (data: {
|
|
12
|
+
value: string;
|
|
13
|
+
text: string;
|
|
14
|
+
} | Array<{
|
|
15
|
+
value: string;
|
|
16
|
+
text: string;
|
|
17
|
+
}>, skipDuplicate?: boolean) => void;
|
|
18
|
+
remove: (element: number | string | any[]) => void;
|
|
19
|
+
removeAll: () => void;
|
|
20
|
+
serialize: (toJson?: boolean) => any;
|
|
21
|
+
open: () => void;
|
|
22
|
+
close: () => void;
|
|
23
|
+
toggle: () => void;
|
|
24
|
+
clear: () => void;
|
|
25
|
+
disable: (submitValue?: boolean) => void;
|
|
26
|
+
enable: () => void;
|
|
27
|
+
destroy: () => void;
|
|
28
|
+
}
|
|
29
|
+
export interface IDropDownOptions {
|
|
30
|
+
defaultSelected?: boolean;
|
|
31
|
+
multiple?: boolean;
|
|
32
|
+
data?: any[];
|
|
33
|
+
pagination?: number;
|
|
34
|
+
sortSelected?: boolean;
|
|
35
|
+
searchable?: boolean;
|
|
36
|
+
clearable?: boolean;
|
|
37
|
+
allowDeselect?: boolean;
|
|
38
|
+
width?: number | string;
|
|
39
|
+
placeholder?: string;
|
|
40
|
+
taggable?: boolean;
|
|
41
|
+
maxSelections?: number;
|
|
42
|
+
tagSeperators?: string[];
|
|
43
|
+
tagPlaceholder?: string;
|
|
44
|
+
renderOption?: (option: any) => string;
|
|
45
|
+
renderSelection?: (option: any) => string;
|
|
46
|
+
closeOnScroll?: boolean;
|
|
47
|
+
customClass?: string;
|
|
48
|
+
messages?: {
|
|
49
|
+
[index: string]: string;
|
|
50
|
+
};
|
|
51
|
+
}
|
|
52
|
+
export declare let DropDown: (input: string | HTMLElement, config?: IDropDownOptions) => IDropDown;
|