@enso-ui/select 3.0.14 → 3.0.15

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@enso-ui/select",
3
- "version": "3.0.14",
3
+ "version": "3.0.15",
4
4
  "description": "Select",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -29,7 +29,7 @@
29
29
  "@enso-ui/search-mode": "^3.0",
30
30
  "@fortawesome/fontawesome-free": "^5.2.0",
31
31
  "@fortawesome/fontawesome-svg-core": "^1.2.2",
32
- "@fortawesome/free-solid-svg-icons": "^5.2.0",
32
+ "@fortawesome/free-solid-svg-icons": "^5.11.2",
33
33
  "@fortawesome/vue-fontawesome": "3.0.0-5",
34
34
  "bulma": "^0.9.0",
35
35
  "lodash": "^4.17.10",
@@ -4,12 +4,14 @@
4
4
  <core-select v-bind="$attrs"
5
5
  ref="select">
6
6
  <template #default="{
7
- allowsSelection, canAddTag, clearControl, clearEvents, dropdownDisabled, disableClear,
8
- disabled, displayLabel, filterBindings, filterEvents, hasOptions, hasSelection,
9
- highlight, i18n, isSelected, itemEvents, modeSelector, modeBindings, modeEvents,
10
- multiple, needsSearch, noResults, reload, loading, options, query, reset,
11
- selection, selectionBindings, selectionEvents, taggable, taggableBindings,
12
- taggableEvents, trackBy,
7
+ allowsSelection, canAddTag, clearControl, clearEvents,
8
+ dropdownDisabled, disableClear, disabled, displayLabel,
9
+ filterBindings, filterEvents, hasOptions, hasSelection,
10
+ highlight, i18n, isSelected, itemEvents, modeSelector,
11
+ modeBindings, modeEvents, multiple, needsSearch, noResults,
12
+ reload, loading, options, query, reset, selection,
13
+ selectionBindings, selectionEvents, taggable,
14
+ taggableBindings, taggableEvents, trackBy,
13
15
  }">
14
16
  <dropdown :disabled="dropdownDisabled"
15
17
  :manual="multiple || canAddTag || !allowsSelection"
@@ -128,7 +130,7 @@
128
130
  import { FontAwesomeIcon as Fa } from '@fortawesome/vue-fontawesome';
129
131
  import { library } from '@fortawesome/fontawesome-svg-core';
130
132
  import { faCheck }
131
- from '@fortawesome/free-solid-svg-icons';
133
+ from '@fortawesome/free-solid-svg-icons';
132
134
  import { focus, clickOutside } from '@enso-ui/directives';
133
135
  import { Dropdown, DropdownItem } from '@enso-ui/dropdown/bulma';
134
136
  import DropdownIndicator from '@enso-ui/dropdown-indicator';
@@ -143,8 +145,6 @@ export default {
143
145
 
144
146
  directives: { focus, clickOutside },
145
147
 
146
- inheritAttrs: false,
147
-
148
148
  components: {
149
149
  CoreSelect,
150
150
  Dropdown,
@@ -155,6 +155,8 @@ export default {
155
155
  SearchMode,
156
156
  },
157
157
 
158
+ inheritAttrs: false,
159
+
158
160
  props: {
159
161
  hasError: {
160
162
  type: Boolean,
@@ -200,7 +202,6 @@ export default {
200
202
  };
201
203
  </script>
202
204
 
203
-
204
205
  <style lang="scss">
205
206
  @import 'bulma/sass/utilities/derived-variables';
206
207
 
@@ -5,11 +5,6 @@ import Modes from '@enso-ui/search-mode/src/modes';
5
5
  export default {
6
6
  name: 'CoreSelect',
7
7
 
8
- emits: [
9
- 'add-tag', 'clear', 'deselect', 'fetch', 'input', 'select',
10
- 'selection', 'update', 'update:modelValue',
11
- ],
12
-
13
8
  inheritAttrs: false,
14
9
 
15
10
  props: {
@@ -111,6 +106,11 @@ export default {
111
106
  },
112
107
  },
113
108
 
109
+ emits: [
110
+ 'add-tag', 'clear', 'deselect', 'fetch', 'input', 'select',
111
+ 'selection', 'update', 'update:modelValue',
112
+ ],
113
+
114
114
  data: v => ({
115
115
  allowsSelection: true,
116
116
  internalValue: null,
@@ -165,7 +165,7 @@ export default {
165
165
  ? this.optionList.filter(option => this.modelValue
166
166
  .some(val => this.valueMatchesOption(val, option)))
167
167
  : this.optionList
168
- .find(option => this.valueMatchesOption(this.modelValue, option)) || null;
168
+ .find(option => this.valueMatchesOption(this.modelValue, option)) || null;
169
169
  },
170
170
  serverSide() {
171
171
  return this.source !== null;
@@ -230,7 +230,7 @@ export default {
230
230
  },
231
231
 
232
232
  created() {
233
- if(!this.http && this.source !== null) {
233
+ if (!this.http && this.source !== null) {
234
234
  throw Error('Using the serverside mode requires providing a http client');
235
235
  }
236
236