classcard-ui 0.2.184 → 0.2.188

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": "classcard-ui",
3
- "version": "0.2.184",
3
+ "version": "0.2.188",
4
4
  "main": "dist/classcard-ui.common.js",
5
5
  "scripts": {
6
6
  "serve": "vue-cli-service serve",
@@ -30,6 +30,11 @@
30
30
  </svg>
31
31
  </span>
32
32
  </template>
33
+ <!-- eslint-disable-next-line vue/no-unused-vars -->
34
+ <template #no-options="{ search, searching, loading }">
35
+ <span v-if="search.length < 1">Start typing to search for options...</span>
36
+ <span v-else>No options found, try searching something else.</span>
37
+ </template>
33
38
  <template slot="option" slot-scope="option">
34
39
  <slot name="custom-option" v-bind:option="option"></slot>
35
40
  </template>
@@ -299,22 +299,22 @@ export default {
299
299
  },
300
300
  // array of rows after drag and drop
301
301
  rearrange(oldIndex, newIndex) {
302
- var reorderedArray = [];
303
- this.rows.forEach(function (row) {
304
- reorderedArray.push({ oldID: row.id });
305
- });
302
+ // var reorderedArray = [];
303
+ // this.rows.forEach(function (row) {
304
+ // reorderedArray.push({ oldSortOrder: row.id });
305
+ // });
306
306
  const movedItem = this.rows.find((item, index) => index === oldIndex);
307
307
  const remainingItems = this.rows.filter((item, index) => index !== oldIndex);
308
-
309
308
  const reorderedItems = [
310
309
  ...remainingItems.slice(0, newIndex),
311
310
  movedItem,
312
311
  ...remainingItems.slice(newIndex),
313
312
  ];
314
- reorderedItems.forEach(function (row, index) {
315
- reorderedArray[index].newID = row.id;
316
- });
317
- return reorderedArray;
313
+ // reorderedItems.forEach(function (row, index) {
314
+ // reorderedArray[index].newSortOrder = row.id;
315
+ // });
316
+ this.$emit('reordered', reorderedItems);
317
+ return reorderedItems;
318
318
  },
319
319
  // listing functions
320
320
  sortChange(params) {
package/src/icons.js CHANGED
@@ -99,6 +99,7 @@ export default {
99
99
  'globe-alt-solid' : 'M4.083 9h1.946c.089-1.546.383-2.97.837-4.118A6.004 6.004 0 004.083 9zM10 2a8 8 0 100 16 8 8 0 000-16zm0 2c-.076 0-.232.032-.465.262-.238.234-.497.623-.737 1.182-.389.907-.673 2.142-.766 3.556h3.936c-.093-1.414-.377-2.649-.766-3.556-.24-.56-.5-.948-.737-1.182C10.232 4.032 10.076 4 10 4zm3.971 5c-.089-1.546-.383-2.97-.837-4.118A6.004 6.004 0 0115.917 9h-1.946zm-2.003 2H8.032c.093 1.414.377 2.649.766 3.556.24.56.5.948.737 1.182.233.23.389.262.465.262.076 0 .232-.032.465-.262.238-.234.498-.623.737-1.182.389-.907.673-2.142.766-3.556zm1.166 4.118c.454-1.147.748-2.572.837-4.118h1.946a6.004 6.004 0 01-2.783 4.118zm-6.268 0C6.412 13.97 6.118 12.546 6.03 11H4.083a6.004 6.004 0 002.783 4.118z',
100
100
  'x-circle-solid': 'M10 18a8 8 0 100-16 8 8 0 000 16zM8.707 7.293a1 1 0 00-1.414 1.414L8.586 10l-1.293 1.293a1 1 0 101.414 1.414L10 11.414l1.293 1.293a1 1 0 001.414-1.414L11.414 10l1.293-1.293a1 1 0 00-1.414-1.414L10 8.586 8.707 7.293z',
101
101
  'x-circle-outline': 'M10 14l2-2m0 0l2-2m-2 2l-2-2m2 2l2 2m7-2a9 9 0 11-18 0 9 9 0 0118 0z',
102
- 'check-circle-outline':'M9 12l2 2 4-4m6 2a9 9 0 11-18 0 9 9 0 0118 0z'
102
+ 'check-circle-outline':'M9 12l2 2 4-4m6 2a9 9 0 11-18 0 9 9 0 0118 0z',
103
+ 'play-solid':'M10 18a8 8 0 100-16 8 8 0 000 16zM9.555 7.168A1 1 0 008 8v4a1 1 0 001.555.832l3-2a1 1 0 000-1.664l-3-2z'
103
104
 
104
105
  }