@enso-ui/typeahead 3.0.14 → 4.0.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.
package/LICENSE CHANGED
@@ -1,6 +1,6 @@
1
1
  MIT License
2
2
 
3
- Copyright (c) 2017 laravel-enso
3
+ Copyright (c) 2026 laravel-enso
4
4
 
5
5
  Permission is hereby granted, free of charge, to any person obtaining a copy
6
6
  of this software and associated documentation files (the "Software"), to deal
package/README.md CHANGED
@@ -28,4 +28,4 @@ Thank you to all the people who already contributed to Enso!
28
28
 
29
29
  ## License
30
30
 
31
- [ISC](https://opensource.org/licenses/ISC)
31
+ [MIT](https://opensource.org/licenses/MIT)
package/package.json CHANGED
@@ -1,11 +1,8 @@
1
1
  {
2
2
  "name": "@enso-ui/typeahead",
3
- "version": "3.0.14",
3
+ "version": "4.0.0",
4
4
  "description": "Vue Typeahead",
5
5
  "main": "index.js",
6
- "scripts": {
7
- "test": "echo \"Error: no test specified\" && exit 1"
8
- },
9
6
  "repository": {
10
7
  "type": "git",
11
8
  "url": "git+https://github.com/enso-ui/typeahead.git"
@@ -16,7 +13,7 @@
16
13
  "vue"
17
14
  ],
18
15
  "author": "Adrian Ocneanu <aocneanu@gmail.com>",
19
- "license": "ISC",
16
+ "license": "MIT",
20
17
  "bugs": {
21
18
  "url": "https://github.com/enso-ui/typeahead/issues"
22
19
  },
@@ -24,21 +21,10 @@
24
21
  "dependencies": {
25
22
  "@enso-ui/dropdown": "^3.0",
26
23
  "@enso-ui/search-mode": "^3.0",
27
- "@fortawesome/fontawesome-svg-core": "^1.2.2",
28
- "@fortawesome/free-solid-svg-icons": "^5.11.2",
29
- "@fortawesome/vue-fontawesome": "3.0.0-5",
24
+ "@fortawesome/fontawesome-svg-core": "^7.2.0",
25
+ "@fortawesome/free-solid-svg-icons": "^7.2.0",
26
+ "@fortawesome/vue-fontawesome": "3.1.3",
30
27
  "lodash": "^4.17.10",
31
28
  "vue": "^3.0"
32
- },
33
- "devDependencies": {
34
- "@vue/cli-plugin-babel": "5.0.0-beta.6",
35
- "@vue/cli-plugin-eslint": "5.0.0-beta.6",
36
- "@vue/eslint-config-airbnb": "^5.0.0",
37
- "autoprefixer": "^9.6.1",
38
- "babel-eslint": "^10.0.1",
39
- "cross-env": "^6.0.0",
40
- "eslint": "^7.0.0",
41
- "eslint-import-resolver-alias": "^1.1.2",
42
- "eslint-plugin-vue": "^8.0.0"
43
29
  }
44
30
  }
@@ -14,7 +14,7 @@
14
14
  :disable-controls="items.length === 0"
15
15
  manual>
16
16
  <template #trigger="{ show, hide, selection }">
17
- <div class="field has-addons has-addons-right">
17
+ <div class="field has-addons has-addons-right mt-0">
18
18
  <div class="control is-expanded has-icons-left has-icons-right"
19
19
  :class="{ 'is-loading': loading }">
20
20
  <input class="input is-fullwidth"
@@ -32,7 +32,7 @@
32
32
  v-on="inputEvents(selection)"
33
33
  ref="input">
34
34
  <span class="icon is-small is-left">
35
- <fa icon="search"/>
35
+ <fa :icon="faSearch"/>
36
36
  </span>
37
37
  <search-mode class="is-right is-small search-mode"
38
38
  v-bind="modeBindings"
@@ -52,7 +52,7 @@
52
52
  {{ i18n('Add') }}
53
53
  </span>
54
54
  <span class="icon is-small">
55
- <fa icon="plus"/>
55
+ <fa :icon="faPlus"/>
56
56
  </span>
57
57
  </a>
58
58
  </div>
@@ -101,13 +101,11 @@
101
101
 
102
102
  <script>
103
103
  import { FontAwesomeIcon as Fa } from '@fortawesome/vue-fontawesome';
104
- import { library } from '@fortawesome/fontawesome-svg-core';
105
104
  import { faPlus, faSearch } from '@fortawesome/free-solid-svg-icons';
106
105
  import { Dropdown, DropdownItem } from '@enso-ui/dropdown/bulma';
107
106
  import SearchMode from '@enso-ui/search-mode/bulma';
108
107
  import CoreTypeahead from '../renderless/CoreTypeahead.vue';
109
108
 
110
- library.add(faPlus, faSearch);
111
109
  export default {
112
110
  name: 'Typeahead',
113
111
 
@@ -115,6 +113,11 @@ export default {
115
113
  CoreTypeahead, Dropdown, DropdownItem, Fa, SearchMode,
116
114
  },
117
115
 
116
+ data: () => ({
117
+ faPlus,
118
+ faSearch,
119
+ }),
120
+
118
121
  props: {
119
122
  hasError: {
120
123
  type: Boolean,
@@ -162,6 +165,15 @@ export default {
162
165
  .dropdown-trigger {
163
166
  width: 100%;
164
167
 
168
+ .input {
169
+ background-color: var(--enso-filter-control-surface);
170
+ color: var(--bulma-input-color);
171
+
172
+ &::placeholder {
173
+ color: var(--bulma-text-light);
174
+ }
175
+ }
176
+
165
177
  .search-mode {
166
178
  pointer-events: all;
167
179
  right: 1.6em;