@oat-sa/tao-core-ui 1.58.1 → 1.58.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.
- package/dist/actionbar.js +386 -395
- package/dist/adder.js +21 -19
- package/dist/animable/absorbable/absorbable.js +204 -213
- package/dist/animable/absorbable/css/absorb.css +1 -0
- package/dist/animable/absorbable/css/absorb.css.map +1 -1
- package/dist/animable/pulsable/pulsable.js +168 -177
- package/dist/autocomplete/css/autocomplete.css +1 -0
- package/dist/autocomplete/css/autocomplete.css.map +1 -1
- package/dist/autocomplete.js +68 -66
- package/dist/badge/badge.js +188 -197
- package/dist/badge/css/badge.css +1 -0
- package/dist/badge/css/badge.css.map +1 -1
- package/dist/breadcrumbs.js +275 -284
- package/dist/btngrouper.js +5 -5
- package/dist/bulkActionPopup.js +490 -495
- package/dist/button.js +283 -291
- package/dist/cascadingComboBox.js +249 -258
- package/dist/ckeditor/ckConfigurator.js +26 -19
- package/dist/ckeditor/dtdHandler.js +11 -9
- package/dist/class/selector.js +441 -450
- package/dist/component/resizable.js +1 -1
- package/dist/component/windowed.js +285 -294
- package/dist/component.js +419 -428
- package/dist/contextualPopup.js +417 -426
- package/dist/dashboard.js +300 -309
- package/dist/datalist.js +753 -762
- package/dist/datatable/filterStrategy/multiple.js +1 -1
- package/dist/datatable/filterStrategy/single.js +1 -1
- package/dist/datatable.js +1527 -1550
- package/dist/dateRange/dateRange.js +393 -402
- package/dist/datetime/picker.js +665 -672
- package/dist/deleter.js +368 -377
- package/dist/destination/selector.js +286 -295
- package/dist/dialog/alert.js +3 -3
- package/dist/dialog/confirm.js +1 -1
- package/dist/dialog/confirmDelete.js +216 -225
- package/dist/dialog.js +650 -654
- package/dist/disabler.js +8 -8
- package/dist/documentViewer/providers/pdfViewer/fallback/viewer.js +166 -175
- package/dist/documentViewer/providers/pdfViewer/pdfjs/findBar.js +518 -527
- package/dist/documentViewer/providers/pdfViewer/pdfjs/pageView.js +380 -389
- package/dist/documentViewer/providers/pdfViewer/pdfjs/searchEngine.js +539 -548
- package/dist/documentViewer/providers/pdfViewer/pdfjs/viewer.js +369 -378
- package/dist/documentViewer/providers/pdfViewer.js +184 -193
- package/dist/documentViewer.js +292 -301
- package/dist/dropdown.js +383 -392
- package/dist/durationer.js +5 -5
- package/dist/dynamicComponent.js +597 -598
- package/dist/feedback.js +356 -362
- package/dist/figure/FigureStateActive.js +117 -108
- package/dist/filesender.js +2 -2
- package/dist/filter.js +230 -239
- package/dist/form/dropdownForm.js +355 -357
- package/dist/form/form.js +919 -690
- package/dist/form/simpleForm.js +1 -1
- package/dist/form/validator/renderer.js +233 -235
- package/dist/form/validator/validator.js +257 -189
- package/dist/form/widget/definitions.js +1 -1
- package/dist/form/widget/providers/checkBox.js +254 -259
- package/dist/form/widget/providers/comboBox.js +187 -192
- package/dist/form/widget/providers/default.js +8 -9
- package/dist/form/widget/providers/hidden.js +170 -179
- package/dist/form/widget/providers/hiddenBox.js +262 -267
- package/dist/form/widget/providers/radioBox.js +216 -225
- package/dist/form/widget/providers/textArea.js +187 -196
- package/dist/form/widget/providers/textBox.js +2 -3
- package/dist/form/widget/widget.js +473 -475
- package/dist/formValidator/formValidator.js +1 -1
- package/dist/formValidator/highlighters/message.js +1 -1
- package/dist/generis/form/form.js +314 -323
- package/dist/generis/validator/validator.js +209 -218
- package/dist/generis/widget/checkBox/checkBox.js +218 -227
- package/dist/generis/widget/comboBox/comboBox.js +179 -188
- package/dist/generis/widget/hiddenBox/hiddenBox.js +220 -229
- package/dist/generis/widget/textBox/textBox.js +169 -178
- package/dist/generis/widget/widget.js +246 -255
- package/dist/groupedComboBox.js +222 -231
- package/dist/groupvalidator.js +2 -2
- package/dist/highlighter.js +967 -958
- package/dist/image/ImgStateActive/helper.js +7 -5
- package/dist/image/ImgStateActive/initHelper.js +49 -43
- package/dist/image/ImgStateActive/initMediaEditor.js +24 -20
- package/dist/image/ImgStateActive/mediaSizer.js +14 -12
- package/dist/image/ImgStateActive.js +72 -70
- package/dist/incrementer.js +6 -6
- package/dist/inplacer.js +6 -6
- package/dist/itemButtonList/css/item-button-list.css +1 -0
- package/dist/itemButtonList/css/item-button-list.css.map +1 -1
- package/dist/itemButtonList.js +439 -435
- package/dist/keyNavigation/navigableDomElement.js +51 -38
- package/dist/keyNavigation/navigator.js +85 -70
- package/dist/listbox.js +460 -469
- package/dist/liststyler.js +8 -8
- package/dist/loadingButton/loadingButton.js +209 -218
- package/dist/lock.js +476 -485
- package/dist/login/login.js +475 -484
- package/dist/maths/calculator/basicCalculator.js +235 -244
- package/dist/maths/calculator/calculatorComponent.js +3 -3
- package/dist/maths/calculator/core/board.js +772 -781
- package/dist/maths/calculator/core/expression.js +476 -485
- package/dist/maths/calculator/core/labels.js +228 -237
- package/dist/maths/calculator/core/tokenizer.js +1 -1
- package/dist/maths/calculator/core/tokens.js +163 -170
- package/dist/maths/calculator/plugins/keyboard/templateKeyboard/templateKeyboard.js +244 -253
- package/dist/maths/calculator/plugins/screen/simpleScreen/simpleScreen.js +279 -288
- package/dist/maths/calculator/scientificCalculator.js +327 -336
- package/dist/mediaEditor/mediaEditorComponent.js +238 -245
- package/dist/mediaEditor/plugins/mediaAlignment/helper.js +7 -7
- package/dist/mediaEditor/plugins/mediaAlignment/mediaAlignmentComponent.js +229 -235
- package/dist/mediaEditor/plugins/mediaDimension/mediaDimensionComponent.js +580 -589
- package/dist/mediaplayer/players/html5.js +666 -675
- package/dist/mediaplayer/players/youtube.js +419 -424
- package/dist/mediaplayer/support.js +11 -10
- package/dist/mediaplayer/utils/reminder.js +14 -13
- package/dist/mediaplayer/utils/timeObserver.js +10 -11
- package/dist/mediaplayer/youtubeManager.js +164 -145
- package/dist/mediaplayer.js +1565 -1520
- package/dist/mediasizer.js +669 -678
- package/dist/modal.js +10 -17
- package/dist/pageSizeSelector.js +219 -228
- package/dist/pagination/providers/pages.js +280 -289
- package/dist/pagination/providers/simple.js +192 -201
- package/dist/previewer.js +30 -30
- package/dist/progressbar.js +4 -4
- package/dist/report.js +347 -356
- package/dist/resource/filters.js +271 -280
- package/dist/resource/list.js +1264 -1273
- package/dist/resource/selector.js +865 -874
- package/dist/resource/tree.js +1483 -1492
- package/dist/resourcemgr/fileBrowser.js +564 -569
- package/dist/resourcemgr/filePreview.js +16 -16
- package/dist/resourcemgr/fileSelector.js +515 -524
- package/dist/resourcemgr/util/updatePermissions.js +2 -2
- package/dist/resourcemgr.js +306 -315
- package/dist/searchModal/advancedSearch.js +796 -767
- package/dist/searchModal.js +114 -91
- package/dist/switch/switch.js +298 -307
- package/dist/tabs.js +598 -575
- package/dist/taskQueue/status.js +312 -321
- package/dist/taskQueue/table.js +375 -384
- package/dist/taskQueue/taskQueueModel.js +488 -472
- package/dist/taskQueueButton/taskable.js +264 -273
- package/dist/taskQueueButton/treeButton.js +189 -198
- package/dist/themeLoader.js +24 -23
- package/dist/themes.js +1 -1
- package/dist/toggler.js +3 -3
- package/dist/tooltip.js +295 -304
- package/dist/transformer.js +2 -2
- package/dist/tristateCheckboxGroup.js +311 -320
- package/dist/uploader.js +687 -696
- package/dist/validator/Report.js +1 -1
- package/dist/validator/Validator.js +3 -3
- package/dist/validator/validators.js +9 -9
- package/dist/validator.js +240 -230
- package/dist/waitForMedia.js +1 -1
- package/package.json +3 -3
- package/src/animable/absorbable/css/absorb.css +1 -0
- package/src/animable/absorbable/css/absorb.css.map +1 -1
- package/src/autocomplete/css/autocomplete.css +1 -0
- package/src/autocomplete/css/autocomplete.css.map +1 -1
- package/src/badge/css/badge.css +1 -0
- package/src/badge/css/badge.css.map +1 -1
- package/src/ckeditor/ckConfigurator.js +4 -0
- package/src/itemButtonList/css/item-button-list.css +1 -0
- package/src/itemButtonList/css/item-button-list.css.map +1 -1
- package/src/.DS_Store +0 -0
- package/src/css/basic.css +0 -7826
- package/src/css/basic.css.map +0 -1
- package/src/css/ckeditor/skins/tao/css/dialog.css +0 -950
- package/src/css/ckeditor/skins/tao/css/dialog.css.map +0 -1
- package/src/css/ckeditor/skins/tao/css/editor.css +0 -1850
- package/src/css/ckeditor/skins/tao/css/editor.css.map +0 -1
- package/src/scss/.DS_Store +0 -0
- package/src/scss/basic.scss +0 -16
- package/src/scss/ckeditor/skins/tao/scss/dialog.scss +0 -763
- package/src/scss/ckeditor/skins/tao/scss/editor.scss +0 -111
- package/src/scss/ckeditor/skins/tao/scss/inc/_ck-icons.scss +0 -59
- package/src/scss/ckeditor/skins/tao/scss/inc/_colorpanel.scss +0 -118
- package/src/scss/ckeditor/skins/tao/scss/inc/_elementspath.scss +0 -69
- package/src/scss/ckeditor/skins/tao/scss/inc/_mainui.scss +0 -194
- package/src/scss/ckeditor/skins/tao/scss/inc/_menu.scss +0 -181
- package/src/scss/ckeditor/skins/tao/scss/inc/_panel.scss +0 -200
- package/src/scss/ckeditor/skins/tao/scss/inc/_presets.scss +0 -32
- package/src/scss/ckeditor/skins/tao/scss/inc/_reset.scss +0 -101
- package/src/scss/ckeditor/skins/tao/scss/inc/_richcombo.scss +0 -213
- package/src/scss/ckeditor/skins/tao/scss/inc/_tao.scss +0 -59
- package/src/scss/ckeditor/skins/tao/scss/inc/_toolbar.scss +0 -301
- package/src/scss/font/source-sans-pro/source-sans-pro-italic.eot +0 -0
- package/src/scss/font/source-sans-pro/source-sans-pro-italic.eot.b64 +0 -1
- package/src/scss/font/source-sans-pro/source-sans-pro-italic.woff +0 -0
- package/src/scss/font/source-sans-pro/source-sans-pro-italic.woff.b64 +0 -1
- package/src/scss/font/source-sans-pro/source-sans-pro-regular.eot +0 -0
- package/src/scss/font/source-sans-pro/source-sans-pro-regular.eot.b64 +0 -1
- package/src/scss/font/source-sans-pro/source-sans-pro-regular.woff +0 -0
- package/src/scss/font/source-sans-pro/source-sans-pro-regular.woff.b64 +0 -1
- package/src/scss/font/source-sans-pro/source-sans-pro-semibold-italic.eot +0 -0
- package/src/scss/font/source-sans-pro/source-sans-pro-semibold-italic.eot.b64 +0 -1
- package/src/scss/font/source-sans-pro/source-sans-pro-semibold-italic.woff +0 -0
- package/src/scss/font/source-sans-pro/source-sans-pro-semibold-italic.woff.b64 +0 -1
- package/src/scss/font/source-sans-pro/source-sans-pro-semibold.eot +0 -0
- package/src/scss/font/source-sans-pro/source-sans-pro-semibold.eot.b64 +0 -1
- package/src/scss/font/source-sans-pro/source-sans-pro-semibold.woff +0 -0
- package/src/scss/font/source-sans-pro/source-sans-pro-semibold.woff.b64 +0 -1
- package/src/scss/font/tao/tao.eot +0 -0
- package/src/scss/font/tao/tao.svg +0 -235
- package/src/scss/font/tao/tao.ttf +0 -0
- package/src/scss/font/tao/tao.woff +0 -0
- package/src/scss/inc/_base.scss +0 -496
- package/src/scss/inc/_bootstrap.scss +0 -6
- package/src/scss/inc/_buttons.scss +0 -114
- package/src/scss/inc/_colors.scss +0 -88
- package/src/scss/inc/_feedback.scss +0 -150
- package/src/scss/inc/_flex-grid.scss +0 -15
- package/src/scss/inc/_fonts.scss +0 -4
- package/src/scss/inc/_forms.scss +0 -827
- package/src/scss/inc/_functions.scss +0 -283
- package/src/scss/inc/_grid.scss +0 -66
- package/src/scss/inc/_jquery.nouislider.scss +0 -254
- package/src/scss/inc/_normalize.scss +0 -528
- package/src/scss/inc/_report.scss +0 -68
- package/src/scss/inc/_secondary-properties.scss +0 -89
- package/src/scss/inc/_select2.scss +0 -634
- package/src/scss/inc/_toolbars.scss +0 -155
- package/src/scss/inc/_tooltip.scss +0 -312
- package/src/scss/inc/_variables.scss +0 -21
- package/src/scss/inc/base/_highlight.scss +0 -5
- package/src/scss/inc/base/_list-style.scss +0 -59
- package/src/scss/inc/base/_svg.scss +0 -3
- package/src/scss/inc/base/_table.scss +0 -63
- package/src/scss/inc/fonts/_source-sans-pro.scss +0 -29
- package/src/scss/inc/fonts/_tao-icon-classes.scss +0 -226
- package/src/scss/inc/fonts/_tao-icon-def.scss +0 -12
- package/src/scss/inc/fonts/_tao-icon-vars.scss +0 -240
package/dist/autocomplete.js
CHANGED
|
@@ -224,7 +224,7 @@ define(['jquery', 'lodash', 'i18n', 'util/capitalize', 'ui/tooltip', 'jquery.aut
|
|
|
224
224
|
* The complete list of plugin options can be found at: https://github.com/devbridge/jQuery-Autocomplete
|
|
225
225
|
* @returns {autocompleter} this
|
|
226
226
|
*/
|
|
227
|
-
init: function (element, options) {
|
|
227
|
+
init: function init(element, options) {
|
|
228
228
|
// fetch the element to handle, we need an input element
|
|
229
229
|
this.$element = $(element);
|
|
230
230
|
|
|
@@ -252,7 +252,7 @@ define(['jquery', 'lodash', 'i18n', 'util/capitalize', 'ui/tooltip', 'jquery.aut
|
|
|
252
252
|
* The value is conserved.
|
|
253
253
|
* @returns {autocompleter} this
|
|
254
254
|
*/
|
|
255
|
-
destroy: function () {
|
|
255
|
+
destroy: function destroy() {
|
|
256
256
|
this.applyPlugin('dispose');
|
|
257
257
|
|
|
258
258
|
if (this.$element) {
|
|
@@ -272,7 +272,7 @@ define(['jquery', 'lodash', 'i18n', 'util/capitalize', 'ui/tooltip', 'jquery.aut
|
|
|
272
272
|
* The complete list of plugin options can be found at: https://github.com/devbridge/jQuery-Autocomplete
|
|
273
273
|
* @returns {Object} Returns the list of plugin options and their values.
|
|
274
274
|
*/
|
|
275
|
-
parseOptions: function (options) {
|
|
275
|
+
parseOptions: function parseOptions(options) {
|
|
276
276
|
var self = this;
|
|
277
277
|
var pluginOptions = {}; // filter the options
|
|
278
278
|
|
|
@@ -323,7 +323,7 @@ define(['jquery', 'lodash', 'i18n', 'util/capitalize', 'ui/tooltip', 'jquery.aut
|
|
|
323
323
|
* The complete list of plugin options can be found at: https://github.com/devbridge/jQuery-Autocomplete
|
|
324
324
|
* @returns {autocompleter} this
|
|
325
325
|
*/
|
|
326
|
-
setOptions: function (options) {
|
|
326
|
+
setOptions: function setOptions(options) {
|
|
327
327
|
this.applyPlugin('setOptions', [this.parseOptions(options)]);
|
|
328
328
|
return this;
|
|
329
329
|
},
|
|
@@ -334,7 +334,7 @@ define(['jquery', 'lodash', 'i18n', 'util/capitalize', 'ui/tooltip', 'jquery.aut
|
|
|
334
334
|
* @param {Array} [params] A list of optional params to pass to the called method
|
|
335
335
|
* @returns {*} Returns the callee result
|
|
336
336
|
*/
|
|
337
|
-
applyElement: function (action, params) {
|
|
337
|
+
applyElement: function applyElement(action, params) {
|
|
338
338
|
var $element = this.$element;
|
|
339
339
|
|
|
340
340
|
if ($element) {
|
|
@@ -348,7 +348,7 @@ define(['jquery', 'lodash', 'i18n', 'util/capitalize', 'ui/tooltip', 'jquery.aut
|
|
|
348
348
|
* @param {Array} [params] A list of optional params to pass to the called method
|
|
349
349
|
* @returns {*} Returns the callee result
|
|
350
350
|
*/
|
|
351
|
-
applyPlugin: function (action, params) {
|
|
351
|
+
applyPlugin: function applyPlugin(action, params) {
|
|
352
352
|
var $element = this.$element;
|
|
353
353
|
var $plugin = $element && $element[this.pluginName]();
|
|
354
354
|
|
|
@@ -360,7 +360,7 @@ define(['jquery', 'lodash', 'i18n', 'util/capitalize', 'ui/tooltip', 'jquery.aut
|
|
|
360
360
|
/**
|
|
361
361
|
* Shows the tooltip displayed when the server returns less records than available
|
|
362
362
|
*/
|
|
363
|
-
showTooltipTooMany: function () {
|
|
363
|
+
showTooltipTooMany: function showTooltipTooMany() {
|
|
364
364
|
if (this.$element) {
|
|
365
365
|
this.tooltip.show();
|
|
366
366
|
}
|
|
@@ -369,7 +369,7 @@ define(['jquery', 'lodash', 'i18n', 'util/capitalize', 'ui/tooltip', 'jquery.aut
|
|
|
369
369
|
/**
|
|
370
370
|
* Hides the tooltip displayed when the server returns less records than available
|
|
371
371
|
*/
|
|
372
|
-
hideTooltipTooMany: function () {
|
|
372
|
+
hideTooltipTooMany: function hideTooltipTooMany() {
|
|
373
373
|
if (this.$element) {
|
|
374
374
|
this.tooltip.hide();
|
|
375
375
|
}
|
|
@@ -381,7 +381,7 @@ define(['jquery', 'lodash', 'i18n', 'util/capitalize', 'ui/tooltip', 'jquery.aut
|
|
|
381
381
|
* @param {Array} [params] A list of optional parameters
|
|
382
382
|
* @returns {*} Returns the call result
|
|
383
383
|
*/
|
|
384
|
-
trigger: function (eventName, params) {
|
|
384
|
+
trigger: function trigger(eventName, params) {
|
|
385
385
|
return this.applyElement('triggerHandler', [adjustEventName(eventName), params]);
|
|
386
386
|
},
|
|
387
387
|
|
|
@@ -391,7 +391,7 @@ define(['jquery', 'lodash', 'i18n', 'util/capitalize', 'ui/tooltip', 'jquery.aut
|
|
|
391
391
|
* @param {Function } callback The function called back when the event occurs
|
|
392
392
|
* @returns {autocompleter} this
|
|
393
393
|
*/
|
|
394
|
-
on: function (eventName, callback) {
|
|
394
|
+
on: function on(eventName, callback) {
|
|
395
395
|
this.applyElement('on', [adjustEventName(eventName), callback]);
|
|
396
396
|
return this;
|
|
397
397
|
},
|
|
@@ -402,7 +402,7 @@ define(['jquery', 'lodash', 'i18n', 'util/capitalize', 'ui/tooltip', 'jquery.aut
|
|
|
402
402
|
* @param {Function } [callback] The callback provided at install
|
|
403
403
|
* @returns {autocompleter} this
|
|
404
404
|
*/
|
|
405
|
-
off: function (eventName, callback) {
|
|
405
|
+
off: function off(eventName, callback) {
|
|
406
406
|
this.applyElement('off', [adjustEventName(eventName), callback]);
|
|
407
407
|
return this;
|
|
408
408
|
},
|
|
@@ -411,7 +411,7 @@ define(['jquery', 'lodash', 'i18n', 'util/capitalize', 'ui/tooltip', 'jquery.aut
|
|
|
411
411
|
* Gets the nested element on which the component is installed.
|
|
412
412
|
* @returns {*|jQuery|HTMLElement}
|
|
413
413
|
*/
|
|
414
|
-
getElement: function () {
|
|
414
|
+
getElement: function getElement() {
|
|
415
415
|
return this.$element;
|
|
416
416
|
},
|
|
417
417
|
|
|
@@ -419,7 +419,7 @@ define(['jquery', 'lodash', 'i18n', 'util/capitalize', 'ui/tooltip', 'jquery.aut
|
|
|
419
419
|
* Checks if the server can provide more suggestions than displayed for the current query
|
|
420
420
|
* @returns {Boolean}
|
|
421
421
|
*/
|
|
422
|
-
hasTooManySuggestions: function () {
|
|
422
|
+
hasTooManySuggestions: function hasTooManySuggestions() {
|
|
423
423
|
return !!this.tooManySuggestions;
|
|
424
424
|
},
|
|
425
425
|
|
|
@@ -427,7 +427,7 @@ define(['jquery', 'lodash', 'i18n', 'util/capitalize', 'ui/tooltip', 'jquery.aut
|
|
|
427
427
|
* Gets the field value.
|
|
428
428
|
* @returns {String}
|
|
429
429
|
*/
|
|
430
|
-
getValue: function () {
|
|
430
|
+
getValue: function getValue() {
|
|
431
431
|
return this.value;
|
|
432
432
|
},
|
|
433
433
|
|
|
@@ -437,7 +437,7 @@ define(['jquery', 'lodash', 'i18n', 'util/capitalize', 'ui/tooltip', 'jquery.aut
|
|
|
437
437
|
* @param {String} label The label to display inside the field
|
|
438
438
|
* @returns {autocompleter} this
|
|
439
439
|
*/
|
|
440
|
-
setValue: function (value, label) {
|
|
440
|
+
setValue: function setValue(value, label) {
|
|
441
441
|
this.value = value;
|
|
442
442
|
|
|
443
443
|
if (!_.isUndefined(label)) {
|
|
@@ -451,7 +451,7 @@ define(['jquery', 'lodash', 'i18n', 'util/capitalize', 'ui/tooltip', 'jquery.aut
|
|
|
451
451
|
* Gets the displayed label.
|
|
452
452
|
* @returns {String}
|
|
453
453
|
*/
|
|
454
|
-
getLabel: function () {
|
|
454
|
+
getLabel: function getLabel() {
|
|
455
455
|
return this.label;
|
|
456
456
|
},
|
|
457
457
|
|
|
@@ -460,7 +460,7 @@ define(['jquery', 'lodash', 'i18n', 'util/capitalize', 'ui/tooltip', 'jquery.aut
|
|
|
460
460
|
* @param {String} label The label to display inside the field
|
|
461
461
|
* @returns {autocompleter} this
|
|
462
462
|
*/
|
|
463
|
-
setLabel: function (label) {
|
|
463
|
+
setLabel: function setLabel(label) {
|
|
464
464
|
this.label = label;
|
|
465
465
|
|
|
466
466
|
if (this.$element) {
|
|
@@ -474,7 +474,7 @@ define(['jquery', 'lodash', 'i18n', 'util/capitalize', 'ui/tooltip', 'jquery.aut
|
|
|
474
474
|
* Gets the URI of the target ontology.
|
|
475
475
|
* @returns {String}
|
|
476
476
|
*/
|
|
477
|
-
getOntology: function () {
|
|
477
|
+
getOntology: function getOntology() {
|
|
478
478
|
return this.ontology;
|
|
479
479
|
},
|
|
480
480
|
|
|
@@ -483,7 +483,7 @@ define(['jquery', 'lodash', 'i18n', 'util/capitalize', 'ui/tooltip', 'jquery.aut
|
|
|
483
483
|
* @param {String} ontology
|
|
484
484
|
* @returns {autocompleter} this
|
|
485
485
|
*/
|
|
486
|
-
setOntology: function (ontology) {
|
|
486
|
+
setOntology: function setOntology(ontology) {
|
|
487
487
|
this.ontology = ontology;
|
|
488
488
|
return this;
|
|
489
489
|
},
|
|
@@ -492,7 +492,7 @@ define(['jquery', 'lodash', 'i18n', 'util/capitalize', 'ui/tooltip', 'jquery.aut
|
|
|
492
492
|
* Gets the name of the field containing the value within the received data.
|
|
493
493
|
* @returns {String}
|
|
494
494
|
*/
|
|
495
|
-
getValueField: function () {
|
|
495
|
+
getValueField: function getValueField() {
|
|
496
496
|
return this.valueField;
|
|
497
497
|
},
|
|
498
498
|
|
|
@@ -501,7 +501,7 @@ define(['jquery', 'lodash', 'i18n', 'util/capitalize', 'ui/tooltip', 'jquery.aut
|
|
|
501
501
|
* @param {String} valueField
|
|
502
502
|
* @returns {autocompleter} this
|
|
503
503
|
*/
|
|
504
|
-
setValueField: function (valueField) {
|
|
504
|
+
setValueField: function setValueField(valueField) {
|
|
505
505
|
this.valueField = valueField;
|
|
506
506
|
return this;
|
|
507
507
|
},
|
|
@@ -510,7 +510,7 @@ define(['jquery', 'lodash', 'i18n', 'util/capitalize', 'ui/tooltip', 'jquery.aut
|
|
|
510
510
|
* Gets the name of the field containing the label within the received data.
|
|
511
511
|
* @returns {String}
|
|
512
512
|
*/
|
|
513
|
-
getLabelField: function () {
|
|
513
|
+
getLabelField: function getLabelField() {
|
|
514
514
|
return this.labelField;
|
|
515
515
|
},
|
|
516
516
|
|
|
@@ -519,7 +519,7 @@ define(['jquery', 'lodash', 'i18n', 'util/capitalize', 'ui/tooltip', 'jquery.aut
|
|
|
519
519
|
* @param {String} labelField
|
|
520
520
|
* @returns {autocompleter} this
|
|
521
521
|
*/
|
|
522
|
-
setLabelField: function (labelField) {
|
|
522
|
+
setLabelField: function setLabelField(labelField) {
|
|
523
523
|
this.labelField = labelField;
|
|
524
524
|
return this;
|
|
525
525
|
},
|
|
@@ -532,7 +532,7 @@ define(['jquery', 'lodash', 'i18n', 'util/capitalize', 'ui/tooltip', 'jquery.aut
|
|
|
532
532
|
* has to take care of the selected value and to add it in its own list.
|
|
533
533
|
* @returns {Boolean}
|
|
534
534
|
*/
|
|
535
|
-
getIsProvider: function () {
|
|
535
|
+
getIsProvider: function getIsProvider() {
|
|
536
536
|
return this.isProvider;
|
|
537
537
|
},
|
|
538
538
|
|
|
@@ -545,7 +545,7 @@ define(['jquery', 'lodash', 'i18n', 'util/capitalize', 'ui/tooltip', 'jquery.aut
|
|
|
545
545
|
* @param {Boolean} isProvider
|
|
546
546
|
* @returns {autocompleter} this
|
|
547
547
|
*/
|
|
548
|
-
setIsProvider: function (isProvider) {
|
|
548
|
+
setIsProvider: function setIsProvider(isProvider) {
|
|
549
549
|
this.isProvider = toBoolean(isProvider);
|
|
550
550
|
return this;
|
|
551
551
|
},
|
|
@@ -555,7 +555,7 @@ define(['jquery', 'lodash', 'i18n', 'util/capitalize', 'ui/tooltip', 'jquery.aut
|
|
|
555
555
|
* When set to true the component prevents auto submit when the user hit enter on the text box.
|
|
556
556
|
* @returns {Boolean}
|
|
557
557
|
*/
|
|
558
|
-
getPreventSubmit: function () {
|
|
558
|
+
getPreventSubmit: function getPreventSubmit() {
|
|
559
559
|
return this.preventSubmit;
|
|
560
560
|
},
|
|
561
561
|
|
|
@@ -565,7 +565,7 @@ define(['jquery', 'lodash', 'i18n', 'util/capitalize', 'ui/tooltip', 'jquery.aut
|
|
|
565
565
|
* @param {Boolean} preventSubmit
|
|
566
566
|
* @returns {autocompleter} this
|
|
567
567
|
*/
|
|
568
|
-
setPreventSubmit: function (preventSubmit) {
|
|
568
|
+
setPreventSubmit: function setPreventSubmit(preventSubmit) {
|
|
569
569
|
this.preventSubmit = toBoolean(preventSubmit);
|
|
570
570
|
return this;
|
|
571
571
|
},
|
|
@@ -575,7 +575,7 @@ define(['jquery', 'lodash', 'i18n', 'util/capitalize', 'ui/tooltip', 'jquery.aut
|
|
|
575
575
|
* When provided, all the search params are wrapped under the same root.
|
|
576
576
|
* @returns {String}
|
|
577
577
|
*/
|
|
578
|
-
getParamsRoot: function () {
|
|
578
|
+
getParamsRoot: function getParamsRoot() {
|
|
579
579
|
return this.paramsRoot;
|
|
580
580
|
},
|
|
581
581
|
|
|
@@ -585,7 +585,7 @@ define(['jquery', 'lodash', 'i18n', 'util/capitalize', 'ui/tooltip', 'jquery.aut
|
|
|
585
585
|
* @param {String} paramsRoot
|
|
586
586
|
* @returns {autocompleter} this
|
|
587
587
|
*/
|
|
588
|
-
setParamsRoot: function (paramsRoot) {
|
|
588
|
+
setParamsRoot: function setParamsRoot(paramsRoot) {
|
|
589
589
|
this.paramsRoot = paramsRoot;
|
|
590
590
|
return this;
|
|
591
591
|
},
|
|
@@ -594,7 +594,9 @@ define(['jquery', 'lodash', 'i18n', 'util/capitalize', 'ui/tooltip', 'jquery.aut
|
|
|
594
594
|
* Gets the list of extra params to be sent with the query.
|
|
595
595
|
* @returns {Object}
|
|
596
596
|
*/
|
|
597
|
-
getParams: function () {
|
|
597
|
+
getParams: function getParams() {
|
|
598
|
+
var _this = this;
|
|
599
|
+
|
|
598
600
|
var params = _.merge({}, this.params || {});
|
|
599
601
|
|
|
600
602
|
var searchParams = params;
|
|
@@ -608,8 +610,8 @@ define(['jquery', 'lodash', 'i18n', 'util/capitalize', 'ui/tooltip', 'jquery.aut
|
|
|
608
610
|
if (!Array.isArray(this.ontologyParam)) {
|
|
609
611
|
searchParams[this.ontologyParam] = this.ontology;
|
|
610
612
|
} else {
|
|
611
|
-
this.ontologyParam.forEach(p
|
|
612
|
-
searchParams[p] =
|
|
613
|
+
this.ontologyParam.forEach(function (p) {
|
|
614
|
+
searchParams[p] = _this.ontology;
|
|
613
615
|
});
|
|
614
616
|
}
|
|
615
617
|
}
|
|
@@ -622,7 +624,7 @@ define(['jquery', 'lodash', 'i18n', 'util/capitalize', 'ui/tooltip', 'jquery.aut
|
|
|
622
624
|
* @param {Object} params
|
|
623
625
|
* @returns {autocompleter} this
|
|
624
626
|
*/
|
|
625
|
-
setParams: function (params) {
|
|
627
|
+
setParams: function setParams(params) {
|
|
626
628
|
this.params = params;
|
|
627
629
|
return this;
|
|
628
630
|
},
|
|
@@ -632,7 +634,7 @@ define(['jquery', 'lodash', 'i18n', 'util/capitalize', 'ui/tooltip', 'jquery.aut
|
|
|
632
634
|
* If paramsRoot has been defined, the param name will be wrapped.
|
|
633
635
|
* @returns {String}
|
|
634
636
|
*/
|
|
635
|
-
getQueryParam: function () {
|
|
637
|
+
getQueryParam: function getQueryParam() {
|
|
636
638
|
return this.adjustParam(this.queryParam);
|
|
637
639
|
},
|
|
638
640
|
|
|
@@ -641,7 +643,7 @@ define(['jquery', 'lodash', 'i18n', 'util/capitalize', 'ui/tooltip', 'jquery.aut
|
|
|
641
643
|
* @param {String} queryParam
|
|
642
644
|
* @returns {autocompleter} this
|
|
643
645
|
*/
|
|
644
|
-
setQueryParam: function (queryParam) {
|
|
646
|
+
setQueryParam: function setQueryParam(queryParam) {
|
|
645
647
|
this.queryParam = queryParam;
|
|
646
648
|
return this;
|
|
647
649
|
},
|
|
@@ -651,8 +653,8 @@ define(['jquery', 'lodash', 'i18n', 'util/capitalize', 'ui/tooltip', 'jquery.aut
|
|
|
651
653
|
* If paramsRoot has been defined, the param name will be wrapped.
|
|
652
654
|
* @returns {String}
|
|
653
655
|
*/
|
|
654
|
-
getOntologyParam: function () {
|
|
655
|
-
|
|
656
|
+
getOntologyParam: function getOntologyParam() {
|
|
657
|
+
var p = Array.isArray(this.ontologyParam) ? this.ontologyParam[0] : this.ontologyParam;
|
|
656
658
|
return this.adjustParam(p);
|
|
657
659
|
},
|
|
658
660
|
|
|
@@ -661,7 +663,7 @@ define(['jquery', 'lodash', 'i18n', 'util/capitalize', 'ui/tooltip', 'jquery.aut
|
|
|
661
663
|
* @param {String} ontologyParam
|
|
662
664
|
* @returns {autocompleter} this
|
|
663
665
|
*/
|
|
664
|
-
setOntologyParam: function (ontologyParam) {
|
|
666
|
+
setOntologyParam: function setOntologyParam(ontologyParam) {
|
|
665
667
|
this.ontologyParam = ontologyParam;
|
|
666
668
|
return this;
|
|
667
669
|
},
|
|
@@ -670,7 +672,7 @@ define(['jquery', 'lodash', 'i18n', 'util/capitalize', 'ui/tooltip', 'jquery.aut
|
|
|
670
672
|
* Gets the URL to data source
|
|
671
673
|
* @returns {String}
|
|
672
674
|
*/
|
|
673
|
-
getUrl: function () {
|
|
675
|
+
getUrl: function getUrl() {
|
|
674
676
|
return this.url;
|
|
675
677
|
},
|
|
676
678
|
|
|
@@ -679,7 +681,7 @@ define(['jquery', 'lodash', 'i18n', 'util/capitalize', 'ui/tooltip', 'jquery.aut
|
|
|
679
681
|
* @param {String} url
|
|
680
682
|
* @returns {autocompleter} this
|
|
681
683
|
*/
|
|
682
|
-
setUrl: function (url) {
|
|
684
|
+
setUrl: function setUrl(url) {
|
|
683
685
|
this.url = url;
|
|
684
686
|
return this;
|
|
685
687
|
},
|
|
@@ -688,7 +690,7 @@ define(['jquery', 'lodash', 'i18n', 'util/capitalize', 'ui/tooltip', 'jquery.aut
|
|
|
688
690
|
* Gets the request method. Can be either GET or POST, default to GET.
|
|
689
691
|
* @returns {String}
|
|
690
692
|
*/
|
|
691
|
-
getType: function () {
|
|
693
|
+
getType: function getType() {
|
|
692
694
|
return this.type || 'GET';
|
|
693
695
|
},
|
|
694
696
|
|
|
@@ -697,7 +699,7 @@ define(['jquery', 'lodash', 'i18n', 'util/capitalize', 'ui/tooltip', 'jquery.aut
|
|
|
697
699
|
* @param {String} type
|
|
698
700
|
* @returns {autocompleter} this
|
|
699
701
|
*/
|
|
700
|
-
setType: function (type) {
|
|
702
|
+
setType: function setType(type) {
|
|
701
703
|
this.type = type;
|
|
702
704
|
return this;
|
|
703
705
|
},
|
|
@@ -706,7 +708,7 @@ define(['jquery', 'lodash', 'i18n', 'util/capitalize', 'ui/tooltip', 'jquery.aut
|
|
|
706
708
|
* Gets the number of miliseconds to defer ajax request.
|
|
707
709
|
* @returns {number}
|
|
708
710
|
*/
|
|
709
|
-
getDelay: function () {
|
|
711
|
+
getDelay: function getDelay() {
|
|
710
712
|
return this.delay;
|
|
711
713
|
},
|
|
712
714
|
|
|
@@ -715,7 +717,7 @@ define(['jquery', 'lodash', 'i18n', 'util/capitalize', 'ui/tooltip', 'jquery.aut
|
|
|
715
717
|
* @param {Number} delay
|
|
716
718
|
* @returns {autocompleter}
|
|
717
719
|
*/
|
|
718
|
-
setDelay: function (delay) {
|
|
720
|
+
setDelay: function setDelay(delay) {
|
|
719
721
|
this.delay = Math.max(0, Number(delay));
|
|
720
722
|
return this;
|
|
721
723
|
},
|
|
@@ -724,7 +726,7 @@ define(['jquery', 'lodash', 'i18n', 'util/capitalize', 'ui/tooltip', 'jquery.aut
|
|
|
724
726
|
* Gets the minimum number of characters required to trigger the ajax request.
|
|
725
727
|
* @returns {number}
|
|
726
728
|
*/
|
|
727
|
-
getMinChars: function () {
|
|
729
|
+
getMinChars: function getMinChars() {
|
|
728
730
|
return this.minChars;
|
|
729
731
|
},
|
|
730
732
|
|
|
@@ -733,7 +735,7 @@ define(['jquery', 'lodash', 'i18n', 'util/capitalize', 'ui/tooltip', 'jquery.aut
|
|
|
733
735
|
* @param {Number} minChars
|
|
734
736
|
* @returns {autocompleter} this
|
|
735
737
|
*/
|
|
736
|
-
setMinChars: function (minChars) {
|
|
738
|
+
setMinChars: function setMinChars(minChars) {
|
|
737
739
|
this.minChars = Math.max(1, Number(minChars));
|
|
738
740
|
return this;
|
|
739
741
|
},
|
|
@@ -742,7 +744,7 @@ define(['jquery', 'lodash', 'i18n', 'util/capitalize', 'ui/tooltip', 'jquery.aut
|
|
|
742
744
|
* Activates the component if it was deactivated before.
|
|
743
745
|
* @returns {autocompleter} this
|
|
744
746
|
*/
|
|
745
|
-
enable: function () {
|
|
747
|
+
enable: function enable() {
|
|
746
748
|
this.applyPlugin('enable');
|
|
747
749
|
return this;
|
|
748
750
|
},
|
|
@@ -751,7 +753,7 @@ define(['jquery', 'lodash', 'i18n', 'util/capitalize', 'ui/tooltip', 'jquery.aut
|
|
|
751
753
|
* Deactivates the component.
|
|
752
754
|
* @returns {autocompleter} this
|
|
753
755
|
*/
|
|
754
|
-
disable: function () {
|
|
756
|
+
disable: function disable() {
|
|
755
757
|
this.applyPlugin('disable');
|
|
756
758
|
return this;
|
|
757
759
|
},
|
|
@@ -760,7 +762,7 @@ define(['jquery', 'lodash', 'i18n', 'util/capitalize', 'ui/tooltip', 'jquery.aut
|
|
|
760
762
|
* Hides suggestions.
|
|
761
763
|
* @returns {autocompleter} this
|
|
762
764
|
*/
|
|
763
|
-
hide: function () {
|
|
765
|
+
hide: function hide() {
|
|
764
766
|
this.applyPlugin('hide');
|
|
765
767
|
return this;
|
|
766
768
|
},
|
|
@@ -769,7 +771,7 @@ define(['jquery', 'lodash', 'i18n', 'util/capitalize', 'ui/tooltip', 'jquery.aut
|
|
|
769
771
|
* Clears suggestion cache and current suggestions.
|
|
770
772
|
* @returns {autocompleter} this
|
|
771
773
|
*/
|
|
772
|
-
clear: function () {
|
|
774
|
+
clear: function clear() {
|
|
773
775
|
this.tooManySuggestions = false;
|
|
774
776
|
this.applyPlugin('clear');
|
|
775
777
|
return this;
|
|
@@ -779,7 +781,7 @@ define(['jquery', 'lodash', 'i18n', 'util/capitalize', 'ui/tooltip', 'jquery.aut
|
|
|
779
781
|
* Clears suggestion cache.
|
|
780
782
|
* @returns {autocompleter} this
|
|
781
783
|
*/
|
|
782
|
-
clearCache: function () {
|
|
784
|
+
clearCache: function clearCache() {
|
|
783
785
|
this.applyPlugin('clearCache');
|
|
784
786
|
return this;
|
|
785
787
|
},
|
|
@@ -791,7 +793,7 @@ define(['jquery', 'lodash', 'i18n', 'util/capitalize', 'ui/tooltip', 'jquery.aut
|
|
|
791
793
|
* - hides suggestions.
|
|
792
794
|
* @returns {autocompleter} this
|
|
793
795
|
*/
|
|
794
|
-
reset: function () {
|
|
796
|
+
reset: function reset() {
|
|
795
797
|
this.setValue(null, '');
|
|
796
798
|
this.clear();
|
|
797
799
|
this.applyPlugin('hide');
|
|
@@ -803,7 +805,7 @@ define(['jquery', 'lodash', 'i18n', 'util/capitalize', 'ui/tooltip', 'jquery.aut
|
|
|
803
805
|
* @param {Event} event
|
|
804
806
|
* @private
|
|
805
807
|
*/
|
|
806
|
-
_onKeyEvent: function (event) {
|
|
808
|
+
_onKeyEvent: function _onKeyEvent(event) {
|
|
807
809
|
// prevent auto submit when the option preventSubmit is enabled
|
|
808
810
|
if (this.preventSubmit && 13 === event.which) {
|
|
809
811
|
event.preventDefault();
|
|
@@ -815,7 +817,7 @@ define(['jquery', 'lodash', 'i18n', 'util/capitalize', 'ui/tooltip', 'jquery.aut
|
|
|
815
817
|
* @param {Object} suggestion
|
|
816
818
|
* @private
|
|
817
819
|
*/
|
|
818
|
-
_onSelect: function (suggestion) {
|
|
820
|
+
_onSelect: function _onSelect(suggestion) {
|
|
819
821
|
var value = suggestion && suggestion.data;
|
|
820
822
|
var label = suggestion && suggestion.value;
|
|
821
823
|
|
|
@@ -839,7 +841,7 @@ define(['jquery', 'lodash', 'i18n', 'util/capitalize', 'ui/tooltip', 'jquery.aut
|
|
|
839
841
|
* @param {Object} params The list of params which will be bound the query
|
|
840
842
|
* @private
|
|
841
843
|
*/
|
|
842
|
-
_onSearchStart: function (params) {
|
|
844
|
+
_onSearchStart: function _onSearchStart(params) {
|
|
843
845
|
var queryParam = this.getQueryParam();
|
|
844
846
|
var query;
|
|
845
847
|
|
|
@@ -864,7 +866,7 @@ define(['jquery', 'lodash', 'i18n', 'util/capitalize', 'ui/tooltip', 'jquery.aut
|
|
|
864
866
|
* @param {Object} suggestions An array containing the results.
|
|
865
867
|
* @private
|
|
866
868
|
*/
|
|
867
|
-
_onSearchComplete: function (query, suggestions) {
|
|
869
|
+
_onSearchComplete: function _onSearchComplete(query, suggestions) {
|
|
868
870
|
// clear cache when the query returns no records :
|
|
869
871
|
// this avoids to have to reload the page when the server has a temporary failure
|
|
870
872
|
if (!suggestions || !suggestions.length) {
|
|
@@ -882,7 +884,7 @@ define(['jquery', 'lodash', 'i18n', 'util/capitalize', 'ui/tooltip', 'jquery.aut
|
|
|
882
884
|
* @param {Exception} errorThrown
|
|
883
885
|
* @private
|
|
884
886
|
*/
|
|
885
|
-
_onSearchError: function (query, jqXHR, textStatus, errorThrown) {
|
|
887
|
+
_onSearchError: function _onSearchError(query, jqXHR, textStatus, errorThrown) {
|
|
886
888
|
return this.trigger('searchError', [query, jqXHR, textStatus, errorThrown, this]);
|
|
887
889
|
},
|
|
888
890
|
|
|
@@ -890,7 +892,7 @@ define(['jquery', 'lodash', 'i18n', 'util/capitalize', 'ui/tooltip', 'jquery.aut
|
|
|
890
892
|
* Fired when input is altered after selection has been made.
|
|
891
893
|
* @private
|
|
892
894
|
*/
|
|
893
|
-
_onInvalidateSelection: function () {
|
|
895
|
+
_onInvalidateSelection: function _onInvalidateSelection() {
|
|
894
896
|
return this.trigger('invalidateSelection', [this]);
|
|
895
897
|
},
|
|
896
898
|
|
|
@@ -900,7 +902,7 @@ define(['jquery', 'lodash', 'i18n', 'util/capitalize', 'ui/tooltip', 'jquery.aut
|
|
|
900
902
|
* @param {jQuery} $container
|
|
901
903
|
* @private
|
|
902
904
|
*/
|
|
903
|
-
_onBeforeRender: function ($container) {
|
|
905
|
+
_onBeforeRender: function _onBeforeRender($container) {
|
|
904
906
|
this.trigger('beforeRender', [$container, this]);
|
|
905
907
|
},
|
|
906
908
|
|
|
@@ -909,7 +911,7 @@ define(['jquery', 'lodash', 'i18n', 'util/capitalize', 'ui/tooltip', 'jquery.aut
|
|
|
909
911
|
* @param {Event} event
|
|
910
912
|
* @private
|
|
911
913
|
*/
|
|
912
|
-
_onFocus: function (event) {
|
|
914
|
+
_onFocus: function _onFocus(event) {
|
|
913
915
|
if (this.hasTooManySuggestions()) {
|
|
914
916
|
this.showTooltipTooMany();
|
|
915
917
|
}
|
|
@@ -920,7 +922,7 @@ define(['jquery', 'lodash', 'i18n', 'util/capitalize', 'ui/tooltip', 'jquery.aut
|
|
|
920
922
|
* @param {Event} event
|
|
921
923
|
* @private
|
|
922
924
|
*/
|
|
923
|
-
_onBlur: function (event) {
|
|
925
|
+
_onBlur: function _onBlur(event) {
|
|
924
926
|
this.hideTooltipTooMany();
|
|
925
927
|
},
|
|
926
928
|
|
|
@@ -929,7 +931,7 @@ define(['jquery', 'lodash', 'i18n', 'util/capitalize', 'ui/tooltip', 'jquery.aut
|
|
|
929
931
|
* @param response
|
|
930
932
|
* @returns {{suggestions: Array}}
|
|
931
933
|
*/
|
|
932
|
-
_transformResult: function (response) {
|
|
934
|
+
_transformResult: function _transformResult(response) {
|
|
933
935
|
var self = this;
|
|
934
936
|
var results = {
|
|
935
937
|
suggestions: []
|
|
@@ -965,7 +967,7 @@ define(['jquery', 'lodash', 'i18n', 'util/capitalize', 'ui/tooltip', 'jquery.aut
|
|
|
965
967
|
* @param {String} param
|
|
966
968
|
* @returns {String}
|
|
967
969
|
*/
|
|
968
|
-
adjustParam: function (param) {
|
|
970
|
+
adjustParam: function adjustParam(param) {
|
|
969
971
|
if (this.paramsRoot) {
|
|
970
972
|
param = this.paramsRoot + '[' + param + ']';
|
|
971
973
|
}
|
|
@@ -979,7 +981,7 @@ define(['jquery', 'lodash', 'i18n', 'util/capitalize', 'ui/tooltip', 'jquery.aut
|
|
|
979
981
|
* @returns {string}
|
|
980
982
|
*/
|
|
981
983
|
|
|
982
|
-
var adjustEventName = function (eventName) {
|
|
984
|
+
var adjustEventName = function adjustEventName(eventName) {
|
|
983
985
|
var names = _(eventName.split(' ')).map(function (name) {
|
|
984
986
|
name = name.toLowerCase();
|
|
985
987
|
|
|
@@ -999,7 +1001,7 @@ define(['jquery', 'lodash', 'i18n', 'util/capitalize', 'ui/tooltip', 'jquery.aut
|
|
|
999
1001
|
*/
|
|
1000
1002
|
|
|
1001
1003
|
|
|
1002
|
-
var toBoolean = function (value) {
|
|
1004
|
+
var toBoolean = function toBoolean(value) {
|
|
1003
1005
|
if (_.isString(value)) {
|
|
1004
1006
|
if ('false' === value.toLowerCase() || '0' === value) {
|
|
1005
1007
|
value = false;
|
|
@@ -1016,7 +1018,7 @@ define(['jquery', 'lodash', 'i18n', 'util/capitalize', 'ui/tooltip', 'jquery.aut
|
|
|
1016
1018
|
*/
|
|
1017
1019
|
|
|
1018
1020
|
|
|
1019
|
-
var autocompleteFactory = function (element, options) {
|
|
1021
|
+
var autocompleteFactory = function autocompleteFactory(element, options) {
|
|
1020
1022
|
var autocomplete = _.clone(autocompleter, true);
|
|
1021
1023
|
|
|
1022
1024
|
_.defaults(autocomplete, defaults);
|