diff --git a/build/knockstrap.js b/build/knockstrap.js new file mode 100644 index 0000000..9c8b801 --- /dev/null +++ b/build/knockstrap.js @@ -0,0 +1,1010 @@ +/*! knockstrap 1.4.1 http://faulknercs.github.io/Knockstrap/ | (c) 2013-2020 Artem Stepanyuk | http://www.opensource.org/licenses/mit-license */ + +(function (factory) { + 'use strict'; + + if (typeof ko !== 'undefined' && typeof jQuery !== 'undefined') { + //global knockout and jQuery references already present, so use these regardless of whether this module has been included in CommonJS/AMD + factory(ko, jQuery); + } else if (typeof require === 'function' && typeof exports === 'object' && typeof module === 'object') { + // CommonJS/Node.js + factory(require('knockout'), require('jquery')); + } else if (typeof define === 'function' && define.amd) { + // AMD + define(['knockout', 'jquery'], factory); + } else { + throw new Error('Could not locate current context reference to knockout and jQuery in order to load Knockstrap'); + } + +})(function (ko, $) { + 'use strict'; + + ko.utils.uniqueId = (function () { + + var prefixesCounts = { + 'ks-unique-': 0 + }; + + return function (prefix) { + prefix = prefix || 'ks-unique-'; + + if (!prefixesCounts[prefix]) { + prefixesCounts[prefix] = 0; + } + + return prefix + prefixesCounts[prefix]++; + }; + })(); + ko.utils.unwrapProperties = ko.toJS; + + // inspired by http://www.knockmeout.net/2011/10/ko-13-preview-part-3-template-sources.html + (function () { + // storage of string templates for all instances of stringTemplateEngine + var templates = {}; + + templates['alert'] = '