tom-select-rails 2.2.0 → 2.2.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (89) hide show
  1. checksums.yaml +4 -4
  2. data/lib/tom-select-rails/version.rb +1 -1
  3. data/vendor/assets/javascripts/tom-select-rails/cjs/tom-select.complete.js +77 -39
  4. data/vendor/assets/javascripts/tom-select-rails/cjs/tom-select.complete.js.map +1 -1
  5. data/vendor/assets/javascripts/tom-select-rails/cjs/tom-select.js +77 -39
  6. data/vendor/assets/javascripts/tom-select-rails/cjs/tom-select.js.map +1 -1
  7. data/vendor/assets/javascripts/tom-select-rails/cjs/tom-select.popular.js +77 -39
  8. data/vendor/assets/javascripts/tom-select-rails/cjs/tom-select.popular.js.map +1 -1
  9. data/vendor/assets/javascripts/tom-select-rails/cjs/utils.js +2 -2
  10. data/vendor/assets/javascripts/tom-select-rails/cjs/utils.js.map +1 -1
  11. data/vendor/assets/javascripts/tom-select-rails/esm/plugins/caret_position/plugin.js +57 -8
  12. data/vendor/assets/javascripts/tom-select-rails/esm/plugins/caret_position/plugin.js.map +1 -1
  13. data/vendor/assets/javascripts/tom-select-rails/esm/plugins/change_listener/plugin.js +2 -2
  14. data/vendor/assets/javascripts/tom-select-rails/esm/plugins/change_listener/plugin.js.map +1 -1
  15. data/vendor/assets/javascripts/tom-select-rails/esm/plugins/checkbox_options/plugin.js +57 -8
  16. data/vendor/assets/javascripts/tom-select-rails/esm/plugins/checkbox_options/plugin.js.map +1 -1
  17. data/vendor/assets/javascripts/tom-select-rails/esm/plugins/clear_button/plugin.js +57 -8
  18. data/vendor/assets/javascripts/tom-select-rails/esm/plugins/clear_button/plugin.js.map +1 -1
  19. data/vendor/assets/javascripts/tom-select-rails/esm/plugins/drag_drop/plugin.js +1 -1
  20. data/vendor/assets/javascripts/tom-select-rails/esm/plugins/dropdown_header/plugin.js +57 -8
  21. data/vendor/assets/javascripts/tom-select-rails/esm/plugins/dropdown_header/plugin.js.map +1 -1
  22. data/vendor/assets/javascripts/tom-select-rails/esm/plugins/dropdown_input/plugin.js +58 -9
  23. data/vendor/assets/javascripts/tom-select-rails/esm/plugins/dropdown_input/plugin.js.map +1 -1
  24. data/vendor/assets/javascripts/tom-select-rails/esm/plugins/input_autogrow/plugin.js +2 -2
  25. data/vendor/assets/javascripts/tom-select-rails/esm/plugins/input_autogrow/plugin.js.map +1 -1
  26. data/vendor/assets/javascripts/tom-select-rails/esm/plugins/no_active_items/plugin.js +1 -1
  27. data/vendor/assets/javascripts/tom-select-rails/esm/plugins/no_backspace_delete/plugin.js +1 -1
  28. data/vendor/assets/javascripts/tom-select-rails/esm/plugins/optgroup_columns/plugin.js +57 -8
  29. data/vendor/assets/javascripts/tom-select-rails/esm/plugins/optgroup_columns/plugin.js.map +1 -1
  30. data/vendor/assets/javascripts/tom-select-rails/esm/plugins/remove_button/plugin.js +58 -9
  31. data/vendor/assets/javascripts/tom-select-rails/esm/plugins/remove_button/plugin.js.map +1 -1
  32. data/vendor/assets/javascripts/tom-select-rails/esm/plugins/restore_on_backspace/plugin.js +1 -1
  33. data/vendor/assets/javascripts/tom-select-rails/esm/plugins/virtual_scroll/plugin.js +57 -8
  34. data/vendor/assets/javascripts/tom-select-rails/esm/plugins/virtual_scroll/plugin.js.map +1 -1
  35. data/vendor/assets/javascripts/tom-select-rails/esm/tom-select.complete.js +77 -39
  36. data/vendor/assets/javascripts/tom-select-rails/esm/tom-select.complete.js.map +1 -1
  37. data/vendor/assets/javascripts/tom-select-rails/esm/tom-select.js +77 -39
  38. data/vendor/assets/javascripts/tom-select-rails/esm/tom-select.js.map +1 -1
  39. data/vendor/assets/javascripts/tom-select-rails/esm/tom-select.popular.js +77 -39
  40. data/vendor/assets/javascripts/tom-select-rails/esm/tom-select.popular.js.map +1 -1
  41. data/vendor/assets/javascripts/tom-select-rails/esm/utils.js +2 -2
  42. data/vendor/assets/javascripts/tom-select-rails/esm/utils.js.map +1 -1
  43. data/vendor/assets/javascripts/tom-select-rails/js/plugins/caret_position.js +57 -8
  44. data/vendor/assets/javascripts/tom-select-rails/js/plugins/caret_position.js.map +1 -1
  45. data/vendor/assets/javascripts/tom-select-rails/js/plugins/change_listener.js +2 -2
  46. data/vendor/assets/javascripts/tom-select-rails/js/plugins/change_listener.js.map +1 -1
  47. data/vendor/assets/javascripts/tom-select-rails/js/plugins/checkbox_options.js +57 -8
  48. data/vendor/assets/javascripts/tom-select-rails/js/plugins/checkbox_options.js.map +1 -1
  49. data/vendor/assets/javascripts/tom-select-rails/js/plugins/clear_button.js +57 -8
  50. data/vendor/assets/javascripts/tom-select-rails/js/plugins/clear_button.js.map +1 -1
  51. data/vendor/assets/javascripts/tom-select-rails/js/plugins/drag_drop.js +1 -1
  52. data/vendor/assets/javascripts/tom-select-rails/js/plugins/dropdown_header.js +57 -8
  53. data/vendor/assets/javascripts/tom-select-rails/js/plugins/dropdown_header.js.map +1 -1
  54. data/vendor/assets/javascripts/tom-select-rails/js/plugins/dropdown_input.js +58 -9
  55. data/vendor/assets/javascripts/tom-select-rails/js/plugins/dropdown_input.js.map +1 -1
  56. data/vendor/assets/javascripts/tom-select-rails/js/plugins/input_autogrow.js +2 -2
  57. data/vendor/assets/javascripts/tom-select-rails/js/plugins/input_autogrow.js.map +1 -1
  58. data/vendor/assets/javascripts/tom-select-rails/js/plugins/no_active_items.js +1 -1
  59. data/vendor/assets/javascripts/tom-select-rails/js/plugins/no_backspace_delete.js +1 -1
  60. data/vendor/assets/javascripts/tom-select-rails/js/plugins/optgroup_columns.js +57 -8
  61. data/vendor/assets/javascripts/tom-select-rails/js/plugins/optgroup_columns.js.map +1 -1
  62. data/vendor/assets/javascripts/tom-select-rails/js/plugins/remove_button.js +58 -9
  63. data/vendor/assets/javascripts/tom-select-rails/js/plugins/remove_button.js.map +1 -1
  64. data/vendor/assets/javascripts/tom-select-rails/js/plugins/restore_on_backspace.js +1 -1
  65. data/vendor/assets/javascripts/tom-select-rails/js/plugins/virtual_scroll.js +57 -8
  66. data/vendor/assets/javascripts/tom-select-rails/js/plugins/virtual_scroll.js.map +1 -1
  67. data/vendor/assets/javascripts/tom-select-rails/js/tom-select.base.js +77 -39
  68. data/vendor/assets/javascripts/tom-select-rails/js/tom-select.base.js.map +1 -1
  69. data/vendor/assets/javascripts/tom-select-rails/js/tom-select.base.min.js +132 -133
  70. data/vendor/assets/javascripts/tom-select-rails/js/tom-select.base.min.js.map +1 -1
  71. data/vendor/assets/javascripts/tom-select-rails/js/tom-select.complete.js +77 -39
  72. data/vendor/assets/javascripts/tom-select-rails/js/tom-select.complete.js.map +1 -1
  73. data/vendor/assets/javascripts/tom-select-rails/js/tom-select.complete.min.js +157 -158
  74. data/vendor/assets/javascripts/tom-select-rails/js/tom-select.complete.min.js.map +1 -1
  75. data/vendor/assets/javascripts/tom-select-rails/js/tom-select.popular.js +77 -39
  76. data/vendor/assets/javascripts/tom-select-rails/js/tom-select.popular.js.map +1 -1
  77. data/vendor/assets/javascripts/tom-select-rails/js/tom-select.popular.min.js +144 -145
  78. data/vendor/assets/javascripts/tom-select-rails/js/tom-select.popular.min.js.map +1 -1
  79. data/vendor/assets/javascripts/tom-select-rails/types/getSettings.d.ts +2 -2
  80. data/vendor/assets/javascripts/tom-select-rails/types/tom-select.d.ts +2 -2
  81. data/vendor/assets/javascripts/tom-select-rails/types/types/core.d.ts +3 -0
  82. data/vendor/assets/javascripts/tom-select-rails/types/utils.d.ts +1 -1
  83. data/vendor/assets/stylesheets/tom-select-rails/css/tom-select.bootstrap4.css +1 -1
  84. data/vendor/assets/stylesheets/tom-select-rails/css/tom-select.bootstrap5.css +1 -1
  85. data/vendor/assets/stylesheets/tom-select-rails/css/tom-select.css +1 -1
  86. data/vendor/assets/stylesheets/tom-select-rails/css/tom-select.default.css +1 -1
  87. data/vendor/assets/stylesheets/tom-select-rails/scss/plugins/clear_button.scss +2 -8
  88. data/vendor/assets/stylesheets/tom-select-rails/scss/tom-select.scss +2 -2
  89. metadata +1 -1
@@ -1,3 +1,3 @@
1
- import { TomSettings } from './types/index';
1
+ import { TomSettings, RecursivePartial } from './types/index';
2
2
  import { TomInput } from './types/index';
3
- export default function getSettings(input: TomInput, settings_user: Partial<TomSettings>): TomSettings;
3
+ export default function getSettings(input: TomInput, settings_user: RecursivePartial<TomSettings>): TomSettings;
@@ -1,5 +1,5 @@
1
1
  import { Sifter } from '@orchidjs/sifter';
2
- import { TomInput, TomArgObject, TomOption, TomOptions, TomCreateCallback, TomItem, TomSettings, TomTemplateNames, TomClearFilter } from './types/index';
2
+ import { TomInput, TomArgObject, TomOption, TomOptions, TomCreateCallback, TomItem, TomSettings, TomTemplateNames, TomClearFilter, RecursivePartial } from './types/index';
3
3
  declare const TomSelect_base: {
4
4
  new (): {
5
5
  [x: string]: any;
@@ -67,7 +67,7 @@ export default class TomSelect extends TomSelect_base {
67
67
  [key: string]: boolean;
68
68
  };
69
69
  items: string[];
70
- constructor(input_arg: string | TomInput, user_settings: Partial<TomSettings>);
70
+ constructor(input_arg: string | TomInput, user_settings: RecursivePartial<TomSettings>);
71
71
  /**
72
72
  * set up event bindings.
73
73
  *
@@ -43,3 +43,6 @@ export declare type TomTemplates = {
43
43
  };
44
44
  export declare type TomTemplateNames = keyof TomTemplates;
45
45
  export declare type TomClearFilter = (option: TomOption, value: string) => boolean;
46
+ export declare type RecursivePartial<T> = {
47
+ [P in keyof T]?: RecursivePartial<T[P]>;
48
+ };
@@ -49,7 +49,7 @@ export declare const getSelection: (input: HTMLInputElement) => {
49
49
  */
50
50
  export declare const preventDefault: (evt?: Event, stop?: boolean) => void;
51
51
  /**
52
- * Prevent default
52
+ * Add event helper
53
53
  *
54
54
  */
55
55
  export declare const addEvent: (target: EventTarget, type: string, callback: EventListenerOrEventListenerObject, options?: object) => void;
@@ -2,7 +2,7 @@
2
2
  * Tom Select bootstrap 4
3
3
  */
4
4
  /**
5
- * tom-select.css (v2.2.0)
5
+ * tom-select.css (v2.2.2)
6
6
  * Copyright (c) contributors
7
7
  *
8
8
  * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this
@@ -2,7 +2,7 @@
2
2
  * Tom Select bootstrap 5
3
3
  */
4
4
  /**
5
- * tom-select.css (v2.2.0)
5
+ * tom-select.css (v2.2.2)
6
6
  * Copyright (c) contributors
7
7
  *
8
8
  * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this
@@ -1,5 +1,5 @@
1
1
  /**
2
- * tom-select.css (v2.2.0)
2
+ * tom-select.css (v2.2.2)
3
3
  * Copyright (c) contributors
4
4
  *
5
5
  * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this
@@ -1,5 +1,5 @@
1
1
  /**
2
- * tom-select.css (v2.2.0)
2
+ * tom-select.css (v2.2.2)
3
3
  * Copyright (c) contributors
4
4
  *
5
5
  * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this
@@ -1,9 +1,6 @@
1
-
2
1
  .plugin-clear_button{
3
-
4
2
  --ts-pr-clear-button: 1em;
5
3
 
6
-
7
4
  .clear-button{
8
5
  opacity: 0;
9
6
  position: absolute;
@@ -20,10 +17,10 @@
20
17
  &.single .clear-button{
21
18
 
22
19
  @if variable-exists(select-padding-dropdown-item-x) {
23
- right: max( var(--ts-pr-caret), #{$select-padding-dropdown-item-x});
20
+ right: Max( var(--ts-pr-caret), #{$select-padding-dropdown-item-x});
24
21
  }
25
22
  @else{
26
- right: max( var(--ts-pr-caret), calc(#{$select-padding-x} - #{$select-padding-item-x}) );
23
+ right: Max( var(--ts-pr-caret), calc(#{$select-padding-x} - #{$select-padding-item-x}) );
27
24
  }
28
25
  }
29
26
 
@@ -31,7 +28,4 @@
31
28
  &:not(.disabled):hover.has-items .clear-button{
32
29
  opacity: 1;
33
30
  }
34
-
35
-
36
-
37
31
  }
@@ -1,5 +1,5 @@
1
1
  /**
2
- * tom-select.css (v2.2.0)
2
+ * tom-select.css (v2.2.2)
3
3
  * Copyright (c) contributors
4
4
  *
5
5
  * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this
@@ -99,7 +99,7 @@ $select-spinner-border-color: $select-color-border !default;
99
99
  }
100
100
 
101
101
  .#{$select-ns}-control {
102
- padding-right: max( var(--ts-pr-min), calc( var(--ts-pr-clear-button) + var(--ts-pr-caret)) ) !important;
102
+ padding-right: Max( var(--ts-pr-min), calc( var(--ts-pr-clear-button) + var(--ts-pr-caret)) ) !important;
103
103
  }
104
104
 
105
105
  @mixin ts-caret(){
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: tom-select-rails
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.2.0
4
+ version: 2.2.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Tyson Gach