slim-select 2.3.0 → 2.3.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.
@@ -79,7 +79,7 @@ var SlimSelectVue = (function (vue) {
79
79
  this.contentLocation = settings.contentLocation || document.body;
80
80
  this.contentPosition = settings.contentPosition || 'absolute';
81
81
  this.openPosition = settings.openPosition || 'auto';
82
- this.placeholderText = settings.placeholderText || 'Select Value';
82
+ this.placeholderText = settings.placeholderText !== undefined ? settings.placeholderText : 'Select Value';
83
83
  this.allowDeselect = settings.allowDeselect !== undefined ? settings.allowDeselect : false;
84
84
  this.hideSelected = settings.hideSelected !== undefined ? settings.hideSelected : false;
85
85
  this.showOptionTooltips = settings.showOptionTooltips !== undefined ? settings.showOptionTooltips : false;
@@ -346,6 +346,7 @@ var SlimSelectVue = (function (vue) {
346
346
  this.callbacks = callbacks;
347
347
  this.main = this.mainDiv();
348
348
  this.content = this.contentDiv();
349
+ this.updateClassStyles();
349
350
  this.settings.contentLocation.appendChild(this.content.main);
350
351
  }
351
352
  enable() {
@@ -360,8 +361,6 @@ var SlimSelectVue = (function (vue) {
360
361
  this.main.arrow.path.setAttribute('d', this.classes.arrowOpen);
361
362
  this.main.main.classList.add(this.settings.openPosition === 'up' ? this.classes.openAbove : this.classes.openBelow);
362
363
  this.moveContent();
363
- this.renderOptions(this.store.getData());
364
- this.moveContent();
365
364
  const selectedOptions = this.store.getSelectedOptions();
366
365
  if (selectedOptions.length) {
367
366
  const selectedId = selectedOptions[selectedOptions.length - 1].id;
@@ -378,20 +377,32 @@ var SlimSelectVue = (function (vue) {
378
377
  this.content.main.classList.remove(this.classes.openBelow);
379
378
  this.main.arrow.path.setAttribute('d', this.classes.arrowClose);
380
379
  }
381
- mainDiv() {
382
- const main = document.createElement('div');
383
- main.tabIndex = 0;
384
- main.style.cssText = this.settings.style !== '' ? this.settings.style : '';
385
- main.className = '';
386
- main.classList.add(this.settings.id);
387
- main.classList.add(this.classes.main);
388
- if (this.settings.class) {
380
+ updateClassStyles() {
381
+ this.main.main.className = '';
382
+ this.main.main.removeAttribute('style');
383
+ this.content.main.className = '';
384
+ this.content.main.removeAttribute('style');
385
+ this.main.main.classList.add(this.classes.main);
386
+ this.content.main.classList.add(this.classes.content);
387
+ if (this.settings.style !== '') {
388
+ this.content.main.style.cssText = this.settings.style;
389
+ }
390
+ if (this.settings.class.length) {
389
391
  for (const c of this.settings.class) {
390
392
  if (c.trim() !== '') {
391
- main.classList.add(c.trim());
393
+ this.main.main.classList.add(c.trim());
394
+ this.content.main.classList.add(c.trim());
392
395
  }
393
396
  }
394
397
  }
398
+ if (this.settings.contentPosition === 'relative') {
399
+ this.content.main.classList.add('ss-' + this.settings.contentPosition);
400
+ }
401
+ }
402
+ mainDiv() {
403
+ const main = document.createElement('div');
404
+ main.dataset.id = this.settings.id;
405
+ main.tabIndex = 0;
395
406
  main.onfocus = () => {
396
407
  if (this.settings.triggerFocus) {
397
408
  this.callbacks.open();
@@ -444,7 +455,7 @@ var SlimSelectVue = (function (vue) {
444
455
  shouldDelete = this.callbacks.beforeChange(after, before) === true;
445
456
  }
446
457
  if (shouldDelete) {
447
- this.callbacks.setSelected(['']);
458
+ this.callbacks.setSelected([''], false);
448
459
  if (this.settings.closeOnSelect) {
449
460
  this.callbacks.close();
450
461
  }
@@ -643,7 +654,7 @@ var SlimSelectVue = (function (vue) {
643
654
  selectedValues.push(o.value);
644
655
  }
645
656
  }
646
- this.callbacks.setSelected(selectedValues);
657
+ this.callbacks.setSelected(selectedValues, false);
647
658
  if (this.settings.closeOnSelect) {
648
659
  this.callbacks.close();
649
660
  }
@@ -664,21 +675,7 @@ var SlimSelectVue = (function (vue) {
664
675
  }
665
676
  contentDiv() {
666
677
  const main = document.createElement('div');
667
- main.classList.add(this.classes.content);
668
678
  main.dataset.id = this.settings.id;
669
- if (this.settings.style !== '') {
670
- main.style.cssText = this.settings.style;
671
- }
672
- if (this.settings.contentPosition === 'relative') {
673
- main.classList.add('ss-' + this.settings.contentPosition);
674
- }
675
- if (this.settings.class.length) {
676
- for (const c of this.settings.class) {
677
- if (c.trim() !== '') {
678
- main.classList.add(c.trim());
679
- }
680
- }
681
- }
682
679
  const search = this.searchDiv();
683
680
  main.appendChild(search.main);
684
681
  const list = this.listDiv();
@@ -790,10 +787,10 @@ var SlimSelectVue = (function (vue) {
790
787
  if (this.settings.isMultiple) {
791
788
  let values = this.store.getSelected();
792
789
  values.push(newOption.value);
793
- this.callbacks.setSelected(values);
790
+ this.callbacks.setSelected(values, true);
794
791
  }
795
792
  else {
796
- this.callbacks.setSelected([newOption.value]);
793
+ this.callbacks.setSelected([newOption.value], true);
797
794
  }
798
795
  this.callbacks.search('');
799
796
  if (this.settings.closeOnSelect) {
@@ -975,12 +972,12 @@ var SlimSelectVue = (function (vue) {
975
972
  }
976
973
  return true;
977
974
  });
978
- this.callbacks.setSelected(newSelected);
975
+ this.callbacks.setSelected(newSelected, true);
979
976
  return;
980
977
  }
981
978
  else {
982
979
  const newSelected = currentSelected.concat(d.options.map((o) => o.value));
983
- this.callbacks.setSelected(newSelected);
980
+ this.callbacks.setSelected(newSelected, true);
984
981
  }
985
982
  });
986
983
  optgroupActions.appendChild(selectAll);
@@ -1064,6 +1061,9 @@ var SlimSelectVue = (function (vue) {
1064
1061
  if (this.settings.showOptionTooltips && optionEl.textContent) {
1065
1062
  optionEl.setAttribute('title', optionEl.textContent);
1066
1063
  }
1064
+ if (!option.display) {
1065
+ optionEl.classList.add(this.classes.hide);
1066
+ }
1067
1067
  if (option.disabled) {
1068
1068
  optionEl.classList.add(this.classes.disabled);
1069
1069
  }
@@ -1123,7 +1123,7 @@ var SlimSelectVue = (function (vue) {
1123
1123
  if (!this.store.getOptionByID(elementID)) {
1124
1124
  this.callbacks.addOption(option);
1125
1125
  }
1126
- this.callbacks.setSelected(after.map((o) => o.value));
1126
+ this.callbacks.setSelected(after.map((o) => o.value), false);
1127
1127
  if (this.settings.closeOnSelect) {
1128
1128
  this.callbacks.close();
1129
1129
  }
@@ -1259,6 +1259,7 @@ var SlimSelectVue = (function (vue) {
1259
1259
  if (!this.listen) {
1260
1260
  return;
1261
1261
  }
1262
+ let classChanged = false;
1262
1263
  let disabledChanged = false;
1263
1264
  let optgroupOptionChanged = false;
1264
1265
  for (const m of mutations) {
@@ -1266,11 +1267,17 @@ var SlimSelectVue = (function (vue) {
1266
1267
  if (m.attributeName === 'disabled') {
1267
1268
  disabledChanged = true;
1268
1269
  }
1270
+ if (m.attributeName === 'class') {
1271
+ classChanged = true;
1272
+ }
1269
1273
  }
1270
1274
  if (m.target.nodeName === 'OPTGROUP' || m.target.nodeName === 'OPTION') {
1271
1275
  optgroupOptionChanged = true;
1272
1276
  }
1273
1277
  }
1278
+ if (classChanged && this.onClassChange) {
1279
+ this.onClassChange(this.select.className.split(' '));
1280
+ }
1274
1281
  if (disabledChanged && this.onDisabledChange) {
1275
1282
  this.changeListen(false);
1276
1283
  this.onDisabledChange(this.select.disabled);
@@ -1375,7 +1382,7 @@ var SlimSelectVue = (function (vue) {
1375
1382
  updateSelect(id, style, classes) {
1376
1383
  this.changeListen(false);
1377
1384
  if (id) {
1378
- this.select.id = id;
1385
+ this.select.dataset.id = id;
1379
1386
  }
1380
1387
  if (style) {
1381
1388
  this.select.style.cssText = style;
@@ -1463,6 +1470,7 @@ var SlimSelectVue = (function (vue) {
1463
1470
  this.observer.disconnect();
1464
1471
  this.observer = null;
1465
1472
  }
1473
+ delete this.select.dataset.id;
1466
1474
  this.showUI();
1467
1475
  }
1468
1476
  }
@@ -1520,8 +1528,15 @@ var SlimSelectVue = (function (vue) {
1520
1528
  this.destroy();
1521
1529
  }
1522
1530
  this.settings = new Settings(config.settings);
1531
+ const debounceEvents = ['afterChange', 'beforeOpen', 'afterOpen', 'beforeClose', 'afterClose'];
1523
1532
  for (const key in config.events) {
1524
- if (config.events.hasOwnProperty(key)) {
1533
+ if (!config.events.hasOwnProperty(key)) {
1534
+ continue;
1535
+ }
1536
+ if (debounceEvents.indexOf(key) !== -1) {
1537
+ this.events[key] = debounce(config.events[key], 100);
1538
+ }
1539
+ else {
1525
1540
  this.events[key] = config.events[key];
1526
1541
  }
1527
1542
  }
@@ -1535,6 +1550,10 @@ var SlimSelectVue = (function (vue) {
1535
1550
  this.select.onValueChange = (values) => {
1536
1551
  this.setSelected(values);
1537
1552
  };
1553
+ this.select.onClassChange = (classes) => {
1554
+ this.settings.class = classes;
1555
+ this.render.updateClassStyles();
1556
+ };
1538
1557
  this.select.onDisabledChange = (disabled) => {
1539
1558
  if (disabled) {
1540
1559
  this.disable();
@@ -1613,7 +1632,7 @@ var SlimSelectVue = (function (vue) {
1613
1632
  getSelected() {
1614
1633
  return this.store.getSelected();
1615
1634
  }
1616
- setSelected(value) {
1635
+ setSelected(value, runAfterChange = true) {
1617
1636
  const selected = this.store.getSelected();
1618
1637
  this.store.setSelectedBy('value', Array.isArray(value) ? value : [value]);
1619
1638
  const data = this.store.getData();
@@ -1625,7 +1644,7 @@ var SlimSelectVue = (function (vue) {
1625
1644
  else {
1626
1645
  this.render.renderOptions(data);
1627
1646
  }
1628
- if (this.events.afterChange && !isEqual(selected, this.store.getSelected())) {
1647
+ if (runAfterChange && this.events.afterChange && !isEqual(selected, this.store.getSelected())) {
1629
1648
  this.events.afterChange(this.store.getSelectedOptions());
1630
1649
  }
1631
1650
  }
@@ -1672,7 +1691,9 @@ var SlimSelectVue = (function (vue) {
1672
1691
  this.events.beforeClose();
1673
1692
  }
1674
1693
  this.render.close();
1675
- this.search('');
1694
+ if (this.render.content.search.input.value !== '') {
1695
+ this.search('');
1696
+ }
1676
1697
  this.render.mainFocus(false);
1677
1698
  setTimeout(() => {
1678
1699
  if (this.events.afterClose) {
@@ -80,7 +80,7 @@ class Settings {
80
80
  this.contentLocation = settings.contentLocation || document.body;
81
81
  this.contentPosition = settings.contentPosition || 'absolute';
82
82
  this.openPosition = settings.openPosition || 'auto';
83
- this.placeholderText = settings.placeholderText || 'Select Value';
83
+ this.placeholderText = settings.placeholderText !== undefined ? settings.placeholderText : 'Select Value';
84
84
  this.allowDeselect = settings.allowDeselect !== undefined ? settings.allowDeselect : false;
85
85
  this.hideSelected = settings.hideSelected !== undefined ? settings.hideSelected : false;
86
86
  this.showOptionTooltips = settings.showOptionTooltips !== undefined ? settings.showOptionTooltips : false;
@@ -347,6 +347,7 @@ class Render {
347
347
  this.callbacks = callbacks;
348
348
  this.main = this.mainDiv();
349
349
  this.content = this.contentDiv();
350
+ this.updateClassStyles();
350
351
  this.settings.contentLocation.appendChild(this.content.main);
351
352
  }
352
353
  enable() {
@@ -361,8 +362,6 @@ class Render {
361
362
  this.main.arrow.path.setAttribute('d', this.classes.arrowOpen);
362
363
  this.main.main.classList.add(this.settings.openPosition === 'up' ? this.classes.openAbove : this.classes.openBelow);
363
364
  this.moveContent();
364
- this.renderOptions(this.store.getData());
365
- this.moveContent();
366
365
  const selectedOptions = this.store.getSelectedOptions();
367
366
  if (selectedOptions.length) {
368
367
  const selectedId = selectedOptions[selectedOptions.length - 1].id;
@@ -379,20 +378,32 @@ class Render {
379
378
  this.content.main.classList.remove(this.classes.openBelow);
380
379
  this.main.arrow.path.setAttribute('d', this.classes.arrowClose);
381
380
  }
382
- mainDiv() {
383
- const main = document.createElement('div');
384
- main.tabIndex = 0;
385
- main.style.cssText = this.settings.style !== '' ? this.settings.style : '';
386
- main.className = '';
387
- main.classList.add(this.settings.id);
388
- main.classList.add(this.classes.main);
389
- if (this.settings.class) {
381
+ updateClassStyles() {
382
+ this.main.main.className = '';
383
+ this.main.main.removeAttribute('style');
384
+ this.content.main.className = '';
385
+ this.content.main.removeAttribute('style');
386
+ this.main.main.classList.add(this.classes.main);
387
+ this.content.main.classList.add(this.classes.content);
388
+ if (this.settings.style !== '') {
389
+ this.content.main.style.cssText = this.settings.style;
390
+ }
391
+ if (this.settings.class.length) {
390
392
  for (const c of this.settings.class) {
391
393
  if (c.trim() !== '') {
392
- main.classList.add(c.trim());
394
+ this.main.main.classList.add(c.trim());
395
+ this.content.main.classList.add(c.trim());
393
396
  }
394
397
  }
395
398
  }
399
+ if (this.settings.contentPosition === 'relative') {
400
+ this.content.main.classList.add('ss-' + this.settings.contentPosition);
401
+ }
402
+ }
403
+ mainDiv() {
404
+ const main = document.createElement('div');
405
+ main.dataset.id = this.settings.id;
406
+ main.tabIndex = 0;
396
407
  main.onfocus = () => {
397
408
  if (this.settings.triggerFocus) {
398
409
  this.callbacks.open();
@@ -445,7 +456,7 @@ class Render {
445
456
  shouldDelete = this.callbacks.beforeChange(after, before) === true;
446
457
  }
447
458
  if (shouldDelete) {
448
- this.callbacks.setSelected(['']);
459
+ this.callbacks.setSelected([''], false);
449
460
  if (this.settings.closeOnSelect) {
450
461
  this.callbacks.close();
451
462
  }
@@ -644,7 +655,7 @@ class Render {
644
655
  selectedValues.push(o.value);
645
656
  }
646
657
  }
647
- this.callbacks.setSelected(selectedValues);
658
+ this.callbacks.setSelected(selectedValues, false);
648
659
  if (this.settings.closeOnSelect) {
649
660
  this.callbacks.close();
650
661
  }
@@ -665,21 +676,7 @@ class Render {
665
676
  }
666
677
  contentDiv() {
667
678
  const main = document.createElement('div');
668
- main.classList.add(this.classes.content);
669
679
  main.dataset.id = this.settings.id;
670
- if (this.settings.style !== '') {
671
- main.style.cssText = this.settings.style;
672
- }
673
- if (this.settings.contentPosition === 'relative') {
674
- main.classList.add('ss-' + this.settings.contentPosition);
675
- }
676
- if (this.settings.class.length) {
677
- for (const c of this.settings.class) {
678
- if (c.trim() !== '') {
679
- main.classList.add(c.trim());
680
- }
681
- }
682
- }
683
680
  const search = this.searchDiv();
684
681
  main.appendChild(search.main);
685
682
  const list = this.listDiv();
@@ -791,10 +788,10 @@ class Render {
791
788
  if (this.settings.isMultiple) {
792
789
  let values = this.store.getSelected();
793
790
  values.push(newOption.value);
794
- this.callbacks.setSelected(values);
791
+ this.callbacks.setSelected(values, true);
795
792
  }
796
793
  else {
797
- this.callbacks.setSelected([newOption.value]);
794
+ this.callbacks.setSelected([newOption.value], true);
798
795
  }
799
796
  this.callbacks.search('');
800
797
  if (this.settings.closeOnSelect) {
@@ -976,12 +973,12 @@ class Render {
976
973
  }
977
974
  return true;
978
975
  });
979
- this.callbacks.setSelected(newSelected);
976
+ this.callbacks.setSelected(newSelected, true);
980
977
  return;
981
978
  }
982
979
  else {
983
980
  const newSelected = currentSelected.concat(d.options.map((o) => o.value));
984
- this.callbacks.setSelected(newSelected);
981
+ this.callbacks.setSelected(newSelected, true);
985
982
  }
986
983
  });
987
984
  optgroupActions.appendChild(selectAll);
@@ -1065,6 +1062,9 @@ class Render {
1065
1062
  if (this.settings.showOptionTooltips && optionEl.textContent) {
1066
1063
  optionEl.setAttribute('title', optionEl.textContent);
1067
1064
  }
1065
+ if (!option.display) {
1066
+ optionEl.classList.add(this.classes.hide);
1067
+ }
1068
1068
  if (option.disabled) {
1069
1069
  optionEl.classList.add(this.classes.disabled);
1070
1070
  }
@@ -1124,7 +1124,7 @@ class Render {
1124
1124
  if (!this.store.getOptionByID(elementID)) {
1125
1125
  this.callbacks.addOption(option);
1126
1126
  }
1127
- this.callbacks.setSelected(after.map((o) => o.value));
1127
+ this.callbacks.setSelected(after.map((o) => o.value), false);
1128
1128
  if (this.settings.closeOnSelect) {
1129
1129
  this.callbacks.close();
1130
1130
  }
@@ -1260,6 +1260,7 @@ class Select {
1260
1260
  if (!this.listen) {
1261
1261
  return;
1262
1262
  }
1263
+ let classChanged = false;
1263
1264
  let disabledChanged = false;
1264
1265
  let optgroupOptionChanged = false;
1265
1266
  for (const m of mutations) {
@@ -1267,11 +1268,17 @@ class Select {
1267
1268
  if (m.attributeName === 'disabled') {
1268
1269
  disabledChanged = true;
1269
1270
  }
1271
+ if (m.attributeName === 'class') {
1272
+ classChanged = true;
1273
+ }
1270
1274
  }
1271
1275
  if (m.target.nodeName === 'OPTGROUP' || m.target.nodeName === 'OPTION') {
1272
1276
  optgroupOptionChanged = true;
1273
1277
  }
1274
1278
  }
1279
+ if (classChanged && this.onClassChange) {
1280
+ this.onClassChange(this.select.className.split(' '));
1281
+ }
1275
1282
  if (disabledChanged && this.onDisabledChange) {
1276
1283
  this.changeListen(false);
1277
1284
  this.onDisabledChange(this.select.disabled);
@@ -1376,7 +1383,7 @@ class Select {
1376
1383
  updateSelect(id, style, classes) {
1377
1384
  this.changeListen(false);
1378
1385
  if (id) {
1379
- this.select.id = id;
1386
+ this.select.dataset.id = id;
1380
1387
  }
1381
1388
  if (style) {
1382
1389
  this.select.style.cssText = style;
@@ -1464,6 +1471,7 @@ class Select {
1464
1471
  this.observer.disconnect();
1465
1472
  this.observer = null;
1466
1473
  }
1474
+ delete this.select.dataset.id;
1467
1475
  this.showUI();
1468
1476
  }
1469
1477
  }
@@ -1521,8 +1529,15 @@ class SlimSelect {
1521
1529
  this.destroy();
1522
1530
  }
1523
1531
  this.settings = new Settings(config.settings);
1532
+ const debounceEvents = ['afterChange', 'beforeOpen', 'afterOpen', 'beforeClose', 'afterClose'];
1524
1533
  for (const key in config.events) {
1525
- if (config.events.hasOwnProperty(key)) {
1534
+ if (!config.events.hasOwnProperty(key)) {
1535
+ continue;
1536
+ }
1537
+ if (debounceEvents.indexOf(key) !== -1) {
1538
+ this.events[key] = debounce(config.events[key], 100);
1539
+ }
1540
+ else {
1526
1541
  this.events[key] = config.events[key];
1527
1542
  }
1528
1543
  }
@@ -1536,6 +1551,10 @@ class SlimSelect {
1536
1551
  this.select.onValueChange = (values) => {
1537
1552
  this.setSelected(values);
1538
1553
  };
1554
+ this.select.onClassChange = (classes) => {
1555
+ this.settings.class = classes;
1556
+ this.render.updateClassStyles();
1557
+ };
1539
1558
  this.select.onDisabledChange = (disabled) => {
1540
1559
  if (disabled) {
1541
1560
  this.disable();
@@ -1614,7 +1633,7 @@ class SlimSelect {
1614
1633
  getSelected() {
1615
1634
  return this.store.getSelected();
1616
1635
  }
1617
- setSelected(value) {
1636
+ setSelected(value, runAfterChange = true) {
1618
1637
  const selected = this.store.getSelected();
1619
1638
  this.store.setSelectedBy('value', Array.isArray(value) ? value : [value]);
1620
1639
  const data = this.store.getData();
@@ -1626,7 +1645,7 @@ class SlimSelect {
1626
1645
  else {
1627
1646
  this.render.renderOptions(data);
1628
1647
  }
1629
- if (this.events.afterChange && !isEqual(selected, this.store.getSelected())) {
1648
+ if (runAfterChange && this.events.afterChange && !isEqual(selected, this.store.getSelected())) {
1630
1649
  this.events.afterChange(this.store.getSelectedOptions());
1631
1650
  }
1632
1651
  }
@@ -1673,7 +1692,9 @@ class SlimSelect {
1673
1692
  this.events.beforeClose();
1674
1693
  }
1675
1694
  this.render.close();
1676
- this.search('');
1695
+ if (this.render.content.search.input.value !== '') {
1696
+ this.search('');
1697
+ }
1677
1698
  this.render.mainFocus(false);
1678
1699
  setTimeout(() => {
1679
1700
  if (this.events.afterClose) {
@@ -67,6 +67,7 @@ declare const _default: import("vue").DefineComponent<{
67
67
  select: {
68
68
  select: HTMLSelectElement;
69
69
  onValueChange?: ((value: string[]) => void) | undefined;
70
+ onClassChange?: ((classes: string[]) => void) | undefined;
70
71
  onDisabledChange?: ((disabled: boolean) => void) | undefined;
71
72
  onOptionsChange?: ((data: DataArrayPartial) => void) | undefined;
72
73
  listen: boolean;
@@ -161,7 +162,7 @@ declare const _default: import("vue").DefineComponent<{
161
162
  open: () => void;
162
163
  close: () => void;
163
164
  addable?: ((value: string) => string | import("../slim-select/store").OptionOptional | Promise<string | import("../slim-select/store").OptionOptional>) | undefined;
164
- setSelected: (value: string[]) => void;
165
+ setSelected: (value: string[], runAfterChange: boolean) => void;
165
166
  addOption: (option: Option) => void;
166
167
  search: (search: string) => void;
167
168
  beforeChange?: ((newVal: Option[], oldVal: Option[]) => boolean | void) | undefined;
@@ -239,6 +240,7 @@ declare const _default: import("vue").DefineComponent<{
239
240
  disable: () => void;
240
241
  open: () => void;
241
242
  close: () => void;
243
+ updateClassStyles: () => void;
242
244
  mainDiv: () => import("../slim-select/render").Main;
243
245
  mainFocus: (trigger: boolean) => void;
244
246
  placeholder: () => HTMLDivElement;
@@ -278,7 +280,7 @@ declare const _default: import("vue").DefineComponent<{
278
280
  getData: () => import("../slim-select/store").DataArray;
279
281
  setData: (data: DataArrayPartial) => void;
280
282
  getSelected: () => string[];
281
- setSelected: (value: string | string[]) => void;
283
+ setSelected: (value: string | string[], runAfterChange?: boolean) => void;
282
284
  addOption: (option: import("../slim-select/store").OptionOptional) => void;
283
285
  open: () => void;
284
286
  close: () => void;
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@slim-select/vue",
3
3
  "private": false,
4
- "version": "1.3.0",
4
+ "version": "1.3.2",
5
5
  "description": "Vue integration",
6
6
  "repository": {
7
7
  "type": "git",