views.static.BootstrapUiModule.js.bootstrapui.js.map Maven / Gradle / Ivy
The newest version!
{"version":3,"sources":["webpack:///webpack/bootstrap","webpack:///external \"jQuery\"","webpack:///./src/js/controls/support/bootstrap-ui-control-event.ts","webpack:///./src/js/controls/support/base-control-adapter.ts","webpack:///./src/js/controls/support/bootstrap-ui-control-value-holder.ts","webpack:///./src/js/controls/support/bootstrap-ui-attributes.ts","webpack:///./src/js/controls/support/control-adapter-factory.ts","webpack:///./src/js/controls/select/select-control-adapter.ts","webpack:///./src/js/bootstrapui.js","webpack:///./src/js/controls/autosuggest/autosuggest-control-adapter.ts","webpack:///./src/js/controls/datepicker/date-picker-control-adapter.ts","webpack:///./src/js/controls/input/basic-control-adapter.ts","webpack:///./src/js/controls/numeric/numeric-control-adapter.ts","webpack:///./src/js/controls/select/bootstrap-select-control-adapter.ts","webpack:///./src/js/controls/checkbox/checkbox-control-adapter.ts","webpack:///./src/js/controls/container/container-control-adapter.ts"],"names":["installedModules","__webpack_require__","moduleId","exports","module","i","l","modules","call","m","c","d","name","getter","o","Object","defineProperty","enumerable","get","r","Symbol","toStringTag","value","t","mode","__esModule","ns","create","key","bind","n","object","property","prototype","hasOwnProperty","p","s","jQuery","BootstrapUiControlEvent","BaseControlAdapter","target","this","triggerChange","getTarget","trigger","CHANGE","triggerSubmit","SUBMIT","createControlValueHolder","label","context","BootstrapUiAttributes","ControlAdapterFactoryObject","controlAdapterRegistrars","Map","register","type","initializer","set","initializeControlAdapters","node","_this","$","each","index","element","adapterType","data","CONTROL_ADAPTER_TYPE","initializeControlAdapter","force","has","CONTROL_ADAPTER","adapter","ControlAdapterFactory","extendStatics","__extends","b","setPrototypeOf","__proto__","Array","__","constructor","SelectControlAdapter","_super","initialValue","val","initializeEventTriggers","on","event","getValue","selected","find","push","html","reset","selectValue","newValue","createSelectControlAdapter","bootstrapUiModule","window","BootstrapUiModule","Controls","documentInitialized","initializers","registerInitializer","callback","callIfAlreadyInitialized","undefined","initializeFormElements","length","refTarget","recurse","ref","map","ix","targetId","attr","document","ready","createAutosuggestControlAdapter","createDatePickerControlAdapter","createBasicControlAdapter","createNumericControlAdapter","createBootstrapSelectControlAdapter","createCheckboxControlAdapter","createContainerControlAdapter","AutosuggestControlAdapter","wrapper","typeahead","valueHolder","typeaheadValue","DatePickerControlAdapter","exportFormat","getDateTimePicker","date","formattedValue","format","configuration","BasicControlAdapter","NumericControlAdapter","getAutoNumeric","toString","BootstrapSelectControlAdapter","selectpicker","CheckboxControlAdapter","is","isUnwrapped","isSelected","change","labelElement","CSS","escape","id","getLabelElement","text","isChecked","prop","ContainerControlAdapter","controlElements","not","stopPropagation","adapters","concat","apply","forEach","select","Error"],"mappings":"aACE,IAAIA,EAAmB,GAGvB,SAASC,EAAoBC,GAG5B,GAAGF,EAAiBE,GACnB,OAAOF,EAAiBE,GAAUC,QAGnC,IAAIC,EAASJ,EAAiBE,GAAY,CACzCG,EAAGH,EACHI,GAAG,EACHH,QAAS,IAUV,OANAI,EAAQL,GAAUM,KAAKJ,EAAOD,QAASC,EAAQA,EAAOD,QAASF,GAG/DG,EAAOE,GAAI,EAGJF,EAAOD,QAKfF,EAAoBQ,EAAIF,EAGxBN,EAAoBS,EAAIV,EAGxBC,EAAoBU,EAAI,SAASR,EAASS,EAAMC,GAC3CZ,EAAoBa,EAAEX,EAASS,IAClCG,OAAOC,eAAeb,EAASS,EAAM,CAAEK,YAAY,EAAMC,IAAKL,KAKhEZ,EAAoBkB,EAAI,SAAShB,GACX,oBAAXiB,QAA0BA,OAAOC,aAC1CN,OAAOC,eAAeb,EAASiB,OAAOC,YAAa,CAAEC,MAAO,WAE7DP,OAAOC,eAAeb,EAAS,aAAc,CAAEmB,OAAO,KAQvDrB,EAAoBsB,EAAI,SAASD,EAAOE,GAEvC,GADU,EAAPA,IAAUF,EAAQrB,EAAoBqB,IAC/B,EAAPE,EAAU,OAAOF,EACpB,GAAW,EAAPE,GAA8B,iBAAVF,GAAsBA,GAASA,EAAMG,WAAY,OAAOH,E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EAAwB7H,UAAU+D,YAAc,SAAUsE,GACtD,MAAM,IAAIC,MAAM,2EAEbT,EAhCiC,CAiC1C,KAQK,SAAShC,EAA8BlE,GAE1C,OADA,wBAAsBD,0BAA0BC,GACzC,IAAIkG,EAAwBlG,GATxB,a","file":"js/bootstrapui.js","sourcesContent":[" \t// The module cache\n \tvar installedModules = {};\n\n \t// The require function\n \tfunction __webpack_require__(moduleId) {\n\n \t\t// Check if module is in cache\n \t\tif(installedModules[moduleId]) {\n \t\t\treturn installedModules[moduleId].exports;\n \t\t}\n \t\t// Create a new module (and put it into the cache)\n \t\tvar module = installedModules[moduleId] = {\n \t\t\ti: moduleId,\n \t\t\tl: false,\n \t\t\texports: {}\n \t\t};\n\n \t\t// Execute the module function\n \t\tmodules[moduleId].call(module.exports, module, module.exports, __webpack_require__);\n\n \t\t// Flag the module as loaded\n \t\tmodule.l = true;\n\n \t\t// Return the exports of the module\n \t\treturn module.exports;\n \t}\n\n\n \t// expose the modules object (__webpack_modules__)\n \t__webpack_require__.m = modules;\n\n \t// expose the module cache\n \t__webpack_require__.c = installedModules;\n\n \t// define getter function for harmony exports\n \t__webpack_require__.d = function(exports, name, getter) {\n \t\tif(!__webpack_require__.o(exports, name)) {\n \t\t\tObject.defineProperty(exports, name, { enumerable: true, get: getter });\n \t\t}\n \t};\n\n \t// define __esModule on exports\n \t__webpack_require__.r = function(exports) {\n \t\tif(typeof Symbol !== 'undefined' && Symbol.toStringTag) {\n \t\t\tObject.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });\n \t\t}\n \t\tObject.defineProperty(exports, '__esModule', { value: true });\n \t};\n\n \t// create a fake namespace object\n \t// mode & 1: value is a module id, require it\n \t// mode & 2: merge all properties of value into the ns\n \t// mode & 4: return value when already ns object\n \t// mode & 8|1: behave like require\n \t__webpack_require__.t = function(value, mode) {\n \t\tif(mode & 1) value = __webpack_require__(value);\n \t\tif(mode & 8) return value;\n \t\tif((mode & 4) && typeof value === 'object' && value && value.__esModule) return value;\n \t\tvar ns = Object.create(null);\n \t\t__webpack_require__.r(ns);\n \t\tObject.defineProperty(ns, 'default', { enumerable: true, value: value });\n \t\tif(mode & 2 && typeof value != 'string') for(var key in value) __webpack_require__.d(ns, key, function(key) { return value[key]; }.bind(null, key));\n \t\treturn ns;\n \t};\n\n \t// getDefaultExport function for compatibility with non-harmony modules\n \t__webpack_require__.n = function(module) {\n \t\tvar getter = module && module.__esModule ?\n \t\t\tfunction getDefault() { return module['default']; } :\n \t\t\tfunction getModuleExports() { return module; };\n \t\t__webpack_require__.d(getter, 'a', getter);\n \t\treturn getter;\n \t};\n\n \t// Object.prototype.hasOwnProperty.call\n \t__webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); };\n\n \t// __webpack_public_path__\n \t__webpack_require__.p = \"\";\n\n\n \t// Load entry module and return exports\n \treturn __webpack_require__(__webpack_require__.s = 6);\n","module.exports = jQuery;","/*\n * Copyright 2019 the original author or authors\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\nvar BootstrapUiControlEvent;\n(function (BootstrapUiControlEvent) {\n BootstrapUiControlEvent[\"CHANGE\"] = \"bootstrapui.change\";\n BootstrapUiControlEvent[\"SUBMIT\"] = \"bootstrapui.submit\";\n})(BootstrapUiControlEvent || (BootstrapUiControlEvent = {}));\nexport default BootstrapUiControlEvent;\n","/*\n * Copyright 2019 the original author or authors\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\nimport * as $ from 'jquery';\nimport BootstrapUiControlEvent from './bootstrap-ui-control-event';\n/**\n * Base implementation for a {@link BootstrapUiControlAdapter} that fires {@link BootstrapUiControlEvent}s on the target element.\n */\nvar BaseControlAdapter = /** @class */ (function () {\n function BaseControlAdapter(target) {\n this.target = target;\n }\n BaseControlAdapter.prototype.triggerChange = function () {\n $(this.getTarget()).trigger(BootstrapUiControlEvent.CHANGE, [this]);\n };\n BaseControlAdapter.prototype.triggerSubmit = function () {\n $(this.getTarget()).trigger(BootstrapUiControlEvent.SUBMIT, [this]);\n };\n BaseControlAdapter.prototype.getTarget = function () {\n return this.target;\n };\n return BaseControlAdapter;\n}());\nexport default BaseControlAdapter;\n","/*\n * Copyright 2014 the original author or authors\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\nexport function createControlValueHolder(label, value, context) {\n return { label: label, value: value, context: context };\n}\n","/*\n * Copyright 2019 the original author or authors\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\nvar BootstrapUiAttributes;\n(function (BootstrapUiAttributes) {\n BootstrapUiAttributes[\"CONTROL_ADAPTER\"] = \"bootstrapui-adapter\";\n BootstrapUiAttributes[\"CONTROL_ADAPTER_TYPE\"] = \"bootstrapui-adapter-type\";\n})(BootstrapUiAttributes || (BootstrapUiAttributes = {}));\nexport default BootstrapUiAttributes;\n","/*\n * Copyright 2019 the original author or authors\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\nimport BootstrapUiAttributes from './bootstrap-ui-attributes';\n/**\n * Holds a registry of {@link ControlAdapterInitializer}s to initialize {@link BootstrapUiControlAdapter}s for types.\n */\nvar ControlAdapterFactoryObject = /** @class */ (function () {\n function ControlAdapterFactoryObject() {\n this.controlAdapterRegistrars = new Map();\n }\n /**\n * Registers an initializer for a given {@code type} of control.\n * The type of the control should be specified as a {@link BootstrapUiAttributes.CONTROL_ADAPTER_TYPE} data attribute on the element.\n *\n * @param type for which the initializer applies.\n * @param initializer the initializer of the control adapter.\n */\n ControlAdapterFactoryObject.prototype.register = function (type, initializer) {\n this.controlAdapterRegistrars.set(type, initializer);\n };\n /**\n * Initializes all child nodes that have a {@code bootstrapui-adapter-type} data attribute with a {@link BaseControlAdapter}\n * if one is available for that type.\n *\n * @param node for which to initialize the child nodes\n */\n ControlAdapterFactoryObject.prototype.initializeControlAdapters = function (node) {\n var _this = this;\n $('[data-bootstrapui-adapter-type]', node)\n .each(function (index, element) {\n var adapterType = $(element).data(BootstrapUiAttributes.CONTROL_ADAPTER_TYPE);\n _this.initializeControlAdapter(adapterType, element);\n });\n };\n /**\n * Initializes a node with a {@link BaseControlAdapter} if it has not yet been initialized and an initializer for the type is available.\n *\n * @param type of {@link ControlAdapterInitializer} that should be used\n * @param node to create a {@link BootstrapUiControlAdapter} for\n * @param force whether the {@link BootstrapUiControlAdapter} must be overridden\n */\n ControlAdapterFactoryObject.prototype.initializeControlAdapter = function (type, node, force) {\n if (this.controlAdapterRegistrars.has(type)) {\n if (!$(node).data(BootstrapUiAttributes.CONTROL_ADAPTER) || force) {\n var adapter = this.controlAdapterRegistrars.get(type)(node);\n $(node).data(BootstrapUiAttributes.CONTROL_ADAPTER, adapter);\n }\n }\n };\n return ControlAdapterFactoryObject;\n}());\nexport { ControlAdapterFactoryObject };\n// tslint:disable-next-line:variable-name\nexport var ControlAdapterFactory = new ControlAdapterFactoryObject();\n","/*\n * Copyright 2019 the original author or authors\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\nvar __extends = (this && this.__extends) || (function () {\n var extendStatics = function (d, b) {\n extendStatics = Object.setPrototypeOf ||\n ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||\n function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };\n return extendStatics(d, b);\n };\n return function (d, b) {\n extendStatics(d, b);\n function __() { this.constructor = d; }\n d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n };\n})();\nimport BaseControlAdapter from '../support/base-control-adapter';\nimport { createControlValueHolder } from '../support/bootstrap-ui-control-value-holder';\n/**\n * {@link BootstrapUiControlAdapter} for select elements.\n * The target of the control adapter is the node on which it is registered.\n */\nvar SelectControlAdapter = /** @class */ (function (_super) {\n __extends(SelectControlAdapter, _super);\n function SelectControlAdapter(target) {\n var _this = _super.call(this, target) || this;\n _this.initialValue = $(_this.getTarget()).val();\n _this.initializeEventTriggers();\n return _this;\n }\n SelectControlAdapter.prototype.initializeEventTriggers = function () {\n var _this = this;\n $(this.getTarget()).on('change', function (event) { return _this.triggerChange(); });\n // TODO configure 'bootstrapui.submit' event\n // prevent opening the element on enter, but see it as 'submitting' the value instead.\n // $( this.getTarget() ).keypress( this, ( event ) => {\n // if ( event.key === 'Enter' ) {\n // event.preventDefault();\n // this.triggerSubmit();\n // }\n // } );\n };\n SelectControlAdapter.prototype.getValue = function () {\n var selected = [];\n var selectedOptions = $(this.getTarget()).find('option:checked');\n selectedOptions.each(function () {\n var element = $(this);\n selected.push(createControlValueHolder(element.html(), element.val(), this));\n });\n return selected;\n };\n SelectControlAdapter.prototype.reset = function () {\n this.selectValue(this.initialValue);\n };\n SelectControlAdapter.prototype.selectValue = function (newValue) {\n $(this.getTarget()).val(newValue);\n };\n return SelectControlAdapter;\n}(BaseControlAdapter));\nexport default SelectControlAdapter;\n/**\n * Initializes a {@link SelectControlAdapter} for a given node.\n *\n * @param node to initialize\n */\nexport function createSelectControlAdapter(node) {\n return new SelectControlAdapter(node);\n}\n","/*\n * Copyright 2014 the original author or authors\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\n// Exposes infrastructure for form initialization logic\nimport {ControlAdapterFactory} from \"./controls/support/control-adapter-factory\";\nimport {createAutosuggestControlAdapter} from \"./controls/autosuggest/autosuggest-control-adapter\";\nimport {createDatePickerControlAdapter} from \"./controls/datepicker/date-picker-control-adapter\";\nimport {createBasicControlAdapter} from \"./controls/input/basic-control-adapter\";\nimport {createNumericControlAdapter} from \"./controls/numeric/numeric-control-adapter\";\nimport {createBootstrapSelectControlAdapter} from \"./controls/select/bootstrap-select-control-adapter\";\nimport {createSelectControlAdapter} from \"./controls/select/select-control-adapter\";\nimport {createCheckboxControlAdapter} from \"./controls/checkbox/checkbox-control-adapter\";\nimport {createContainerControlAdapter} from \"./controls/container/container-control-adapter\";\n\nwindow.BootstrapUiModule = (function ( $ ) {\n var bootstrapUiModule = {\n ControlAdapterFactory: ControlAdapterFactory,\n Controls: {},\n documentInitialized: false,\n initializers: [],\n\n /**\n * Register an additional initializer that should execute when running initializeFormElements.\n * An initializer is a callback function that will optionally receive the container node as argument.\n *\n * @param callback function to execute\n * @param callIfAlreadyInitialized should the initializer execute immediately if document has been initialized already - defaults to true\n */\n registerInitializer: function ( callback, callIfAlreadyInitialized ) {\n this.initializers.push( callback );\n\n var shouldExecute = (callIfAlreadyInitialized === undefined || true === callIfAlreadyInitialized) && this.documentInitialized;\n\n if ( shouldExecute ) {\n callback();\n }\n },\n\n /**\n * Run form element initializers.\n *\n * @param node optional parent to limit the scan\n */\n initializeFormElements: function ( node ) {\n if ( node === undefined && !this.documentInitialized ) {\n this.documentInitialized = true;\n }\n\n // Dispatch to initializers\n for ( var i = 0; i < this.initializers.length; i++ ) {\n this.initializers[i]( node );\n }\n },\n\n /**\n * Retrieve a the target node that the current node represents.\n * If the node passed in has a 'data-bum-ref-id' attribute,\n * it will be replaced by the element having the same id as the attribute value.\n *\n * @param node\n * @param recurse should the target in turn be checked for reference id\n */\n refTarget: function ( node, recurse ) {\n if ( node ) {\n var ref = this;\n return $( node ).map( function ( ix, n ) {\n var candidate = $( n );\n var targetId = candidate.attr( 'data-bum-ref-id' );\n if ( targetId ) {\n var target = $( '#' + targetId );\n return recurse ? ref.refTarget( target, recurse ).get() : target.get();\n }\n return n;\n } )\n }\n return node;\n }\n };\n\n $( document ).ready( function () {\n bootstrapUiModule.initializeFormElements();\n } );\n\n // Register the default control adapters\n bootstrapUiModule.ControlAdapterFactory.register( 'autosuggest', createAutosuggestControlAdapter );\n bootstrapUiModule.ControlAdapterFactory.register( 'datetime', createDatePickerControlAdapter );\n bootstrapUiModule.ControlAdapterFactory.register( 'basic', createBasicControlAdapter );\n bootstrapUiModule.ControlAdapterFactory.register( 'numeric', createNumericControlAdapter );\n bootstrapUiModule.ControlAdapterFactory.register( 'bootstrap-select', createBootstrapSelectControlAdapter );\n bootstrapUiModule.ControlAdapterFactory.register( 'select', createSelectControlAdapter );\n bootstrapUiModule.ControlAdapterFactory.register( 'checkbox', createCheckboxControlAdapter );\n bootstrapUiModule.ControlAdapterFactory.register( 'container', createContainerControlAdapter );\n\n return bootstrapUiModule;\n}( jQuery ));\n","var __extends = (this && this.__extends) || (function () {\n var extendStatics = function (d, b) {\n extendStatics = Object.setPrototypeOf ||\n ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||\n function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };\n return extendStatics(d, b);\n };\n return function (d, b) {\n extendStatics(d, b);\n function __() { this.constructor = d; }\n d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n };\n})();\n/*\n * Copyright 2019 the original author or authors\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n/**\n * @author Steven Gentens\n * @since 2.2.0\n */\nimport BaseControlAdapter from '../support/base-control-adapter';\nimport { createControlValueHolder } from '../support/bootstrap-ui-control-value-holder';\nimport * as $ from 'jquery';\n/**\n * {@link BootstrapUiControlAdapter} for typeahead autosuggest elements.\n * The target of the control adapter is the typeahead initialized node.\n *\n * To prevent a value being present when no value is effectively selected, the value of the control will be cleared when the suggestion list is shown.\n * This will ensure that a {@link BootstrapUiControlAdapter#CHANGE} event is triggered without a value (but with a label), but not whilst the user is refining his search.\n *\n * @see autosuggestInitializer\n */\nvar AutosuggestControlAdapter = /** @class */ (function (_super) {\n __extends(AutosuggestControlAdapter, _super);\n function AutosuggestControlAdapter(wrapper) {\n var _this = this;\n var typeahead = $(wrapper).find('.js-typeahead.tt-input');\n _this = _super.call(this, typeahead[0]) || this;\n $(typeahead).on('typeahead:change', function (event) { return _this.triggerChange(); });\n $(typeahead).on('typeahead:open', function (event) {\n $(_this.valueHolder).val(null);\n _this.triggerChange();\n });\n $(typeahead).on('typeahead:select', function (event) { return _this.triggerChange(); });\n // TODO configure 'bootstrapui.submit' event\n // $( typeahead ).keypress( this, ( event ) => {\n // if ( event.key === 'Enter' ) {\n // // event.preventDefault();\n // this.triggerSubmit();\n // }\n // } );\n var typeaheadValue = $(wrapper).find('.js-typeahead-value');\n _this.valueHolder = typeaheadValue[0];\n _this.initialValue = { label: typeahead.typeahead('val'), value: typeaheadValue.val() };\n return _this;\n }\n AutosuggestControlAdapter.prototype.getValue = function () {\n var label = $(this.getTarget()).typeahead('val');\n var value = $(this.valueHolder).val();\n return [createControlValueHolder(label, value, { typeahead: this.getTarget(), typeaheadValue: this.valueHolder })];\n };\n AutosuggestControlAdapter.prototype.reset = function () {\n this.selectValue(this.initialValue);\n };\n AutosuggestControlAdapter.prototype.selectValue = function (newValue) {\n $(this.getTarget()).typeahead('val', newValue.label);\n $(this.valueHolder).val(newValue.value);\n };\n return AutosuggestControlAdapter;\n}(BaseControlAdapter));\nexport default AutosuggestControlAdapter;\n/**\n * Initializes a {@link AutosuggestControlAdapter} for a given node.\n *\n * @param node to initialize\n */\nexport function createAutosuggestControlAdapter(node) {\n return new AutosuggestControlAdapter(node);\n}\n","var __extends = (this && this.__extends) || (function () {\n var extendStatics = function (d, b) {\n extendStatics = Object.setPrototypeOf ||\n ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||\n function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };\n return extendStatics(d, b);\n };\n return function (d, b) {\n extendStatics(d, b);\n function __() { this.constructor = d; }\n d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n };\n})();\n/*\n * Copyright 2019 the original author or authors\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n/**\n * @author Steven Gentens\n * @since 2.2.0\n */\nimport BaseControlAdapter from '../support/base-control-adapter';\nimport { createControlValueHolder } from '../support/bootstrap-ui-control-value-holder';\n/**\n * {@link BootstrapUiControlAdapter} for Eonasdan Bootstrap datepicker elements.\n * The target of the control adapter is the node on which it is registered.\n *\n * @see initializeDateTimePickers\n */\nvar DatePickerControlAdapter = /** @class */ (function (_super) {\n __extends(DatePickerControlAdapter, _super);\n function DatePickerControlAdapter(target, exportFormat) {\n var _this = _super.call(this, target) || this;\n _this.exportFormat = exportFormat;\n _this.initialValue = _this.getDateTimePicker().date();\n _this.valueHolder = $('input[type=hidden]', target)[0];\n $(target).on('change.datetimepicker', function (event) { return _this.triggerChange(); });\n return _this;\n // TODO configure 'bootstrapui.submit' event\n // $( target ).find( 'input[type=\"text\"]' ).keyup( this, ( event ) => {\n // if ( event.key === 'Enter' ) {\n // // event.preventDefault();\n // this.triggerSubmit();\n // }\n // } );\n }\n DatePickerControlAdapter.prototype.getValue = function () {\n var date = this.getDateTimePicker().date();\n var formattedValue = date ? date.format(this.exportFormat) : null;\n var value = $(this.valueHolder).val();\n return [createControlValueHolder(formattedValue, value, this.getTarget())];\n };\n DatePickerControlAdapter.prototype.reset = function () {\n this.selectValue(this.initialValue);\n };\n DatePickerControlAdapter.prototype.selectValue = function (newValue) {\n this.getDateTimePicker().date(newValue);\n };\n DatePickerControlAdapter.prototype.getDateTimePicker = function () {\n return $(this.getTarget()).data('datetimepicker');\n };\n return DatePickerControlAdapter;\n}(BaseControlAdapter));\nexport default DatePickerControlAdapter;\n/**\n * Initializes a {@link DatePickerControlAdapter} for a given node.\n *\n * @param node to initialize\n */\nexport function createDatePickerControlAdapter(node) {\n var element = $(node);\n var configuration = $(element).data('bootstrapui-datetimepicker');\n var exportFormat;\n if (configuration) {\n exportFormat = configuration.exportFormat;\n }\n return new DatePickerControlAdapter(node, exportFormat);\n}\n","var __extends = (this && this.__extends) || (function () {\n var extendStatics = function (d, b) {\n extendStatics = Object.setPrototypeOf ||\n ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||\n function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };\n return extendStatics(d, b);\n };\n return function (d, b) {\n extendStatics(d, b);\n function __() { this.constructor = d; }\n d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n };\n})();\n/*\n * Copyright 2019 the original author or authors\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n/**\n * @author Steven Gentens\n * @since 2.2.0\n */\nimport BaseControlAdapter from '../support/base-control-adapter';\nimport { createControlValueHolder } from '../support/bootstrap-ui-control-value-holder';\n/**\n * {@link BootstrapUiControlAdapter} for basic html elements.\n * This adapter sets and retrieves the value using jquery's val method.\n * The target of the control adapter is the node on which it is registered.\n *\n * @see initializeDateTimePickers\n */\nvar BasicControlAdapter = /** @class */ (function (_super) {\n __extends(BasicControlAdapter, _super);\n function BasicControlAdapter(target) {\n var _this = _super.call(this, target) || this;\n _this.initialValue = $(_this.getTarget()).val();\n $(target).on('change', function (event) { return _this.triggerChange(); });\n return _this;\n // TODO configure 'bootstrapui.submit' event\n // prevent opening the element on enter, but see it as 'submitting' the value instead.\n // $( target ).keypress( this, ( event ) => {\n // if ( event.key === 'Enter' ) {\n // this.triggerSubmit();\n // }\n // } );\n }\n BasicControlAdapter.prototype.getValue = function () {\n var value = $(this.getTarget()).val();\n return [createControlValueHolder(value, value, this.getTarget())];\n };\n BasicControlAdapter.prototype.reset = function () {\n this.selectValue(this.initialValue);\n };\n BasicControlAdapter.prototype.selectValue = function (newValue) {\n $(this.getTarget()).val(newValue);\n };\n return BasicControlAdapter;\n}(BaseControlAdapter));\nexport default BasicControlAdapter;\n/**\n * Initializes a {@link BasicControlAdapter} for a given node.\n *\n * @param node to initialize\n */\nexport function createBasicControlAdapter(node) {\n return new BasicControlAdapter(node);\n}\n","var __extends = (this && this.__extends) || (function () {\n var extendStatics = function (d, b) {\n extendStatics = Object.setPrototypeOf ||\n ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||\n function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };\n return extendStatics(d, b);\n };\n return function (d, b) {\n extendStatics(d, b);\n function __() { this.constructor = d; }\n d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n };\n})();\n/*\n * Copyright 2019 the original author or authors\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n/**\n * @author Steven Gentens\n * @since 2.2.0\n */\nimport BaseControlAdapter from '../support/base-control-adapter';\nimport { createControlValueHolder } from '../support/bootstrap-ui-control-value-holder';\n/**\n * {@link BootstrapUiControlAdapter} for autonumeric elements.\n * The target of the control adapter is the node on which it is registered.\n *\n * @see numericInitializer\n */\nvar NumericControlAdapter = /** @class */ (function (_super) {\n __extends(NumericControlAdapter, _super);\n function NumericControlAdapter(target) {\n var _this = _super.call(this, target) || this;\n _this.initialValue = _this.getAutoNumeric().get();\n $(target).on('change', function (event) { return _this.triggerChange(); });\n return _this;\n // TODO configure 'bootstrapui.submit' event\n // prevent opening the element on enter, but see it as 'submitting' the value instead.\n // $( target ).on( 'keypress', ( event ) => {\n // if ( event.key === 'Enter' ) {\n // this.triggerSubmit();\n // }\n // } );\n }\n NumericControlAdapter.prototype.getValue = function () {\n var label = $(this.getTarget()).val().toString();\n var value = this.getAutoNumeric().get();\n return [createControlValueHolder(label, value, this.getTarget())];\n };\n NumericControlAdapter.prototype.reset = function () {\n this.selectValue(this.initialValue);\n };\n NumericControlAdapter.prototype.selectValue = function (newValue) {\n this.getAutoNumeric().set(newValue);\n };\n NumericControlAdapter.prototype.getAutoNumeric = function () {\n return $(this.getTarget()).data('autoNumeric');\n };\n return NumericControlAdapter;\n}(BaseControlAdapter));\nexport default NumericControlAdapter;\n/**\n * Initializes a {@link NumericControlAdapter} for a given node.\n *\n * @param node to initialize\n */\nexport function createNumericControlAdapter(node) {\n return new NumericControlAdapter(node);\n}\n","var __extends = (this && this.__extends) || (function () {\n var extendStatics = function (d, b) {\n extendStatics = Object.setPrototypeOf ||\n ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||\n function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };\n return extendStatics(d, b);\n };\n return function (d, b) {\n extendStatics(d, b);\n function __() { this.constructor = d; }\n d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n };\n})();\n/*\n * Copyright 2019 the original author or authors\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n/**\n * @author Steven Gentens\n * @since 2.2.0\n */\nimport SelectControlAdapter from './select-control-adapter';\n/**\n * {@link BootstrapUiControlAdapter} for bootstrap-select elements.\n * The target of the control adapter is the node on which it is registered.\n */\nvar BootstrapSelectControlAdapter = /** @class */ (function (_super) {\n __extends(BootstrapSelectControlAdapter, _super);\n function BootstrapSelectControlAdapter(target) {\n return _super.call(this, target) || this;\n }\n BootstrapSelectControlAdapter.prototype.initializeEventTriggers = function () {\n var _this = this;\n $(this.getTarget()).on('changed.bs.select', function (event) { return _this.triggerChange(); });\n // TODO configure 'bootstrapui.submit' event\n // prevent opening the element on enter, but see it as 'submitting' the value instead.\n // $( this.getTarget() ).closest( '.bootstrap-select' )\n // .find( 'button' )\n // .keypress( this, ( event ) => {\n // if ( event.key === 'Enter' ) {\n // // event.preventDefault();\n // this.triggerSubmit();\n // }\n // } );\n };\n BootstrapSelectControlAdapter.prototype.selectValue = function (newValue) {\n $(this.getTarget()).selectpicker('val', newValue);\n };\n return BootstrapSelectControlAdapter;\n}(SelectControlAdapter));\nexport default BootstrapSelectControlAdapter;\n/**\n * Initializes a {@link BootstrapSelectControlAdapter} for a given node.\n *\n * @param node to initialize\n */\nexport function createBootstrapSelectControlAdapter(node) {\n return new BootstrapSelectControlAdapter(node);\n}\n","var __extends = (this && this.__extends) || (function () {\n var extendStatics = function (d, b) {\n extendStatics = Object.setPrototypeOf ||\n ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||\n function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };\n return extendStatics(d, b);\n };\n return function (d, b) {\n extendStatics(d, b);\n function __() { this.constructor = d; }\n d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n };\n})();\n/*\n * Copyright 2019 the original author or authors\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n/**\n * @author Steven Gentens\n * @since 2.2.0\n */\nimport BaseControlAdapter from '../support/base-control-adapter';\nimport { createControlValueHolder } from '../support/bootstrap-ui-control-value-holder';\nfunction isUnwrapped(target) {\n return $(target).is('input[type=\"checkbox\"]') || $(target).is('input[type=\"radio\"]');\n}\nfunction getLabelElement(target) {\n return $(\"label[for=\" + CSS.escape(target.id) + \"]\");\n}\n/**\n * {@link BootstrapUiControlAdapter} for checkbox elements. The target of the control adapter is the input control.\n */\nvar CheckboxControlAdapter = /** @class */ (function (_super) {\n __extends(CheckboxControlAdapter, _super);\n function CheckboxControlAdapter(target) {\n var _this = this;\n var element = isUnwrapped(target) ? target : $(target).find('input[type=checkbox], input[type=radio]')[0];\n _this = _super.call(this, element) || this;\n _this.initialValue = _this.isSelected();\n $(element).change(function (event) { return _this.triggerChange(); });\n return _this;\n // TODO configure 'bootstrapui.submit' event\n // prevent opening the element on enter, but see it as 'submitting' the value instead.\n // $( element ).keypress( this, ( event ) => {\n // if ( event.key === 'Enter' ) {\n // this.triggerSubmit();\n // }\n // } );\n }\n CheckboxControlAdapter.prototype.getValue = function () {\n var target = $(this.getTarget());\n if (this.isSelected()) {\n var labelElement = getLabelElement(this.getTarget());\n return [createControlValueHolder(labelElement.length > 0 ? labelElement.text() : undefined, target.attr('value'), this.getTarget())];\n }\n return [];\n };\n CheckboxControlAdapter.prototype.reset = function () {\n this.selectValue(this.initialValue);\n };\n CheckboxControlAdapter.prototype.selectValue = function (isChecked) {\n $(this.getTarget()).prop('checked', isChecked);\n };\n CheckboxControlAdapter.prototype.isSelected = function () {\n return $(this.getTarget()).is(':checked');\n };\n return CheckboxControlAdapter;\n}(BaseControlAdapter));\nexport default CheckboxControlAdapter;\n/**\n * Initializes a {@link CheckboxControlAdapter} for a given node.\n *\n * @param node to initialize\n */\nexport function createCheckboxControlAdapter(node) {\n return new CheckboxControlAdapter(node);\n}\n","var __extends = (this && this.__extends) || (function () {\n var extendStatics = function (d, b) {\n extendStatics = Object.setPrototypeOf ||\n ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||\n function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };\n return extendStatics(d, b);\n };\n return function (d, b) {\n extendStatics(d, b);\n function __() { this.constructor = d; }\n d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n };\n})();\n/*\n * Copyright 2019 the original author or authors\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n/**\n * @author Steven Gentens\n * @since 2.2.0\n */\nimport BaseControlAdapter from '../support/base-control-adapter';\nimport BootstrapUiAttributes from '../support/bootstrap-ui-attributes';\nimport { ControlAdapterFactory } from '../support/control-adapter-factory';\n/**\n * {@link BootstrapUiControlAdapter} for elements whose state depends on the state of its children.\n * The target of the control adapter is the node on which the control adapter is registered.\n *\n * A container adapters state depends on the state of its nested {@link BootstrapUiControlAdapter}s.\n * When registering event listeners on it is advised to check whether the currentTarget of the event is equal to the target of the control adapter\n * as (some) events bubble up.\n */\nvar ContainerControlAdapter = /** @class */ (function (_super) {\n __extends(ContainerControlAdapter, _super);\n function ContainerControlAdapter(target) {\n var _this = _super.call(this, target) || this;\n var controlElements = [];\n $(target).find(\"[data-\" + BootstrapUiAttributes.CONTROL_ADAPTER_TYPE + \"]\")\n .not(\"[data-\" + BootstrapUiAttributes.CONTROL_ADAPTER_TYPE + \"=\\\"container\\\"]\")\n .each(function (index, element) {\n var adapter = $(element).data(BootstrapUiAttributes.CONTROL_ADAPTER);\n controlElements.push(adapter);\n $(adapter.getTarget()).on('bootstrapui.change', function (event) {\n event.stopPropagation();\n _this.triggerChange();\n });\n // TODO configure 'bootstrapui.submit' event\n // $( adapter.getTarget() ).on( 'bootstrapui.submit', ( event ) => {\n // event.stopPropagation();\n // this.triggerSubmit();\n // } );\n });\n _this.adapters = controlElements;\n return _this;\n }\n ContainerControlAdapter.prototype.getValue = function () {\n return [].concat([].concat.apply([], this.adapters.map(function (adapter) { return adapter.getValue(); })));\n };\n ContainerControlAdapter.prototype.reset = function () {\n this.adapters.forEach(function (adapter) { return adapter.reset(); });\n };\n ContainerControlAdapter.prototype.selectValue = function (select) {\n throw new Error('Selecting values is currently not support on ContainerControlAdapters.');\n };\n return ContainerControlAdapter;\n}(BaseControlAdapter));\nexport default ContainerControlAdapter;\n/**\n * Initializes a {@link ContainerControlAdapter} for a given node.\n * Before initializing the container node, potentially underlying nodes will be initialized as well.\n *\n * @param node to initialize\n */\nexport function createContainerControlAdapter(node) {\n ControlAdapterFactory.initializeControlAdapters(node);\n return new ContainerControlAdapter(node);\n}\n"],"sourceRoot":""}