Sha256: aef811f3ebfe47b931be7ac07b51a745cadc1bfac32938a47fed08da551b409f

Contents?: true

Size: 1.61 KB

Versions: 3

Compression:

Stored size: 1.61 KB

Contents

{"version":3,"file":"plugin.js","sources":["../../../../src/plugins/no_backspace_delete/plugin.ts"],"sourcesContent":["/**\n * Plugin: \"input_autogrow\" (Tom Select)\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\"); you may not use this\n * file except in compliance with the License. You may obtain a copy of the License at:\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software distributed under\n * the License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF\n * ANY KIND, either express or implied. See the License for the specific language\n * governing permissions and limitations under the License.\n *\n */\n\nimport TomSelect from '../../tom-select';\n\nexport default function(this:TomSelect) {\n\tvar self = this;\n\tvar orig_deleteSelection = self.deleteSelection;\n\n\tthis.hook('instead','deleteSelection',(evt:KeyboardEvent) => {\n\n\t\tif( self.activeItems.length ){\n\t\t\treturn orig_deleteSelection.call(self, evt);\n\t\t}\n\n\t\treturn false;\n\t});\n\n};\n"],"names":["self","orig_deleteSelection","deleteSelection","hook","evt","activeItems","length","call"],"mappings":";;;;;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAIe,eAAyB,IAAA;AACvC,EAAIA,IAAAA,IAAI,GAAG,IAAX,CAAA;AACA,EAAA,IAAIC,oBAAoB,GAAGD,IAAI,CAACE,eAAhC,CAAA;AAEA,EAAA,IAAA,CAAKC,IAAL,CAAU,SAAV,EAAoB,iBAApB,EAAuCC,GAAD,IAAuB;AAE5D,IAAA,IAAIJ,IAAI,CAACK,WAAL,CAAiBC,MAArB,EAA6B;AAC5B,MAAA,OAAOL,oBAAoB,CAACM,IAArB,CAA0BP,IAA1B,EAAgCI,GAAhC,CAAP,CAAA;AACA,KAAA;;AAED,IAAA,OAAO,KAAP,CAAA;AACA,GAPD,CAAA,CAAA;AASA;;;;"}

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
tom-select-rails-2.2.2 vendor/assets/javascripts/tom-select-rails/esm/plugins/no_backspace_delete/plugin.js.map
tom-select-rails-2.2.1 vendor/assets/javascripts/tom-select-rails/esm/plugins/no_backspace_delete/plugin.js.map
tom-select-rails-2.2.0 vendor/assets/javascripts/tom-select-rails/esm/plugins/no_backspace_delete/plugin.js.map