diff --git a/README.md b/README.md index 22797a1..328416d 100644 --- a/README.md +++ b/README.md @@ -173,9 +173,7 @@ kit.pm.register('UserDashboard', { | Метод | Аргументы | Вернет | Описание | |:------------|:--------------------------------|:-------:|:--------------------------------------------------------------------------------------------------------------------------------------| | **require** | `pluginId, callback` | * | Вызывает метод `callback` после установки `pluginId`. Возвращает модуль, если плагин установлен. | -| **get** | `pluginId, callback` | * | Вызывает метод `callback` после установки `pluginId`. Возвращает модуль, если плагин установлен. | | **define** | `deps, callback` | Promise | Организаует вызов метода в стиле https://requirejs.org/. В качестве аргументов в метод `callback` будут проброшены экспорты плагинов. | -| **require** | `deps, callback` | Promise | Организаует вызов метода в стиле https://requirejs.org/. В качестве аргументов в метод `callback` будут проброшены экспорты плагинов. | | **ready** | `deps, callback` | Promise | Вызывает метод `callback` после установки зависимостей `deps` и отработки события `document.DOMContentLoaded`. | | **exec** | `deps, callback, args, context` | Promise | Вызывает метод `callback` после установки зависимостей `deps`. | | **loaded** | `deps, callback` | Promise | Вызывает метод `callback` после установки зависимостей `deps` и отработки события `window.load`. | @@ -188,6 +186,13 @@ kit.pm.register('UserDashboard', { ```js kit.exec(deps, callback, argArr, context) ``` + +```js +kit.require('UserAPI', function() { + let api = new kit.UserAPI; +}); +``` + ```js kit.define(['UserAPI', 'Logger'], function(api, log) { log.info('Start'); @@ -197,7 +202,7 @@ kit.define(['UserAPI', 'Logger'], function(api, log) { ```js kit.ready(['UserAPI', 'Logger'], function() { kit.logger.info('Start'); - kit.require('UserAPI').do(); + let api = new kit.require('UserAPI'); }); ``` @@ -208,7 +213,7 @@ kit.exec(['UserAPI', 'Logger'], function() { ``` ```js -kit.require('Product').then(function(){ +kit.ready('Product').then(function(){ kit.Product.make(productId).then(function(product){ product.setXData('.catalog-page'); kit.require('alpine'); diff --git a/assets/core/core.plugins.config.js b/assets/core/core.plugins.config.js index de8b388..bb77e43 100644 --- a/assets/core/core.plugins.config.js +++ b/assets/core/core.plugins.config.js @@ -315,16 +315,18 @@ var __PluginManagerConfigHandler__ = function() { lightGallery: { path: root + '/lightGallery', css: '/css/lightgallery.css', - js: '/lightgallery.min.js', + module: '/lightgallery.min.js', + js: [], type: 'UMD', - deps: ['jQuery'], + deps: [], }, 'lightGallery.video': { path: root + '/lightGallery', css: '/css/lg-video.css', - js: '/plugins/video/lg-video.min.js', + module: '/plugins/video/lg-video.min.js', type: 'UMD', deps: ['lightGallery'], + alias: ['lgVideo'], }, owlCarousel: { path: root + '/owlCarousel', diff --git a/assets/core/core.plugins.config.min.js b/assets/core/core.plugins.config.min.js index d9eff37..1ca2537 100644 --- a/assets/core/core.plugins.config.min.js +++ b/assets/core/core.plugins.config.min.js @@ -1 +1 @@ -var __PluginManagerConfigHandler__=function(){var root=__pmConfig__.assetsPath;var hasJQuery=function(){return window.hasOwnProperty("jQuery")&&window.jQuery.hasOwnProperty("fn")};return{menu:{path:root+"/menu",module:"/menu.js",css:["/menu.css"],type:"HMD",deps:["lib","align","dataStructures","animations","userAction","Collection","support","ActionCollection","Action","Viewer"]},lib:{path:root+"/lib",module:"/lib.js",type:"HMD"},align:{path:root+"/align",module:"/align.js",type:"HMD",deps:["support"]},flexKit:{path:root+"/flex-kit",css:"/flex-kit.css"},support:{path:root+"/support",module:"/support.min.js",type:"HMD"},jQueryProxy:{path:root+"/jquery/proxy",js:"/jquery-proxy.min.js",type:"HMD",alias:[],deps:[],onInstall:function(plugin){var jQueryPlugin=__pmGlobal__.pm.plugins.jQuery;if(jQueryPlugin.isInstalled()){}}},jQuery:{path:root+"/jquery",module:"/jquery.min.js",type:"UMD",alias:["$","jquery"],onRegister:function(plugin){if(hasJQuery()){plugin.module.exports=window.jQuery;plugin.config.module=""}else{var jQueryProxyPlugin=__pmGlobal__.pm.plugins.jQueryProxy;if(jQueryProxyPlugin.isInstalled()){jQueryProxyPlugin.module.exports.onJQueryRegister(plugin)}}},onInstall:function(plugin){var jQueryProxyPlugin=__pmGlobal__.pm.plugins.jQueryProxy;if(jQueryProxyPlugin.isInstalled()){jQueryProxyPlugin.module.exports.onJQueryInstall(plugin)}}},popper:{path:root+"/popper",alias:"popper.js",module:"/popper.js",type:"HMD",css:"/popper.css"},bsCore:{path:root+"/bsCore",module:"/bsCore.min.js",type:"HMD",css:["/bsCore.css"]},bsToast:{path:root+"/bsToast",module:"/bsToast.js",type:"HMD",deps:["bsCore"]},bsToastService:{path:root+"/bsToastService",module:"/bsToastService.js",type:"HMD",css:["/bsToastService.css"],deps:["bsToast","support","Collection"]},Tooltip:{path:root+"/tooltip",module:"/tooltip.js",type:"HMD",css:"/tooltip.css",onInstall:function(plugin){var tooltipTriggerList=[].slice.call(document.querySelectorAll('[data-bs-toggle="tooltip"]'));var tooltipList=tooltipTriggerList.map(function(tooltipTriggerEl){return __pmGlobal__.Tooltip.getOrCreateInstance(tooltipTriggerEl,{sanitize:false})})},deps:["popper","bsCore"]},Tooltip2:{path:root+"/tooltip2",module:"/tooltip2.js",type:"HMD",css:"/tooltip2.css",onInstall:function(plugin){document.addEventListener("mouseover",function(event){if(!(event.target&&event.target.dataset.kitTooltip2==="autoload")){return}if(kit.support.getNodeData(event.target,"tooltip2")){return}var tooltip=new __pmGlobal__.Tooltip2(event.target);tooltip.run();tooltip.show()})},deps:["Viewer","support","ActionCollection","Action","userAction","align","Collection","animations"]},Popover:{path:root+"/popover",module:"/popover.js",type:"HMD",css:"/popover.css",onInstall:function(){var popoverTriggerList=[].slice.call(document.querySelectorAll('[data-bs-toggle="popover"]'));var popoverList=popoverTriggerList.map(function(popoverTriggerEl){return new __pmGlobal__.Popover(popoverTriggerEl)})},deps:["popper","bsCore","Tooltip"]},mask:{path:root+"/mask",module:"/mask.js",type:"HMD",deps:["jQuery"]},toolkit:{path:root+"/toolkit",module:"/toolkit.min.js",type:"HMD",css:["/toolkit.css"],deps:["jQuery","mask","support"]},Modal:{path:root+"/modal",module:"/modal.min.js",type:"HMD",css:["/modal.css"],deps:["bsCore"],onRegister:function(plugin){plugin.onLoadConditionHandler=function(event){if(event.target&&event.target.dataset&&event.target.dataset.bsTarget&&event.target.dataset.bsToggle==="modal"){kit.exec(plugin.id,function(){var newEvent=new Event("click");event.target.dispatchEvent(newEvent)})}};window.addEventListener("click",plugin.onLoadConditionHandler,false)},onInstall:function(plugin){if(plugin.onLoadConditionHandler){window.removeEventListener("click",plugin.onLoadConditionHandler,false)}}},collapse:{path:root+"/collapse",module:"/collapse.min.js",type:"HMD",css:["/collapse.css"],deps:["bsCore"]},datepicker:{path:root+"/datepicker",module:"/js/datepicker.js",type:"HMD",css:["/css/datepicker.css"],deps:["jQuery"]},cookie:{path:root+"/cookie",module:"/cookie.min.js",type:"HMD"},animations:{path:root+"/animations",css:"/animations.css",module:"/animations.js",type:"HMD"},Collection:{path:root+"/Collection",module:"/Collection.js",type:"HMD",deps:["support"]},dataStructures:{path:root+"/dataStructures",module:"/dataStructures.min.js",type:"HMD"},userAction:{path:root+"/userAction",module:"/userAction.js",type:"HMD",deps:["support","ActionCollection","Action","Viewer"]},Viewer:{path:root+"/Viewer",module:"/Viewer.js",type:"HMD",deps:["Collection","support","ActionCollection","Action"]},ActionCollection:{path:root+"/ActionCollection",module:"/ActionCollection.js",type:"HMD",deps:["Collection","support","Action"]},Action:{path:root+"/Action",module:"/Action.js",type:"HMD",deps:["support"]},date:{path:root+"/date",module:"/date.js",type:"HMD",deps:[]},testing:{path:root+"/testing",module:"/testing.js",type:"HMD",deps:["log"]},log:{path:root+"/log",module:"/log.js",css:"/log.css",type:"HMD",deps:["support","Collection","lib"]},fancybox2:{path:root+"/fancybox/v2",module:"",js:["/jquery.fancybox.pack.js"],css:["/jquery.fancybox.css"],type:"default",alias:["jQuery.Fancybox2"],deps:["jQuery"]},fancybox3:{path:root+"/fancybox/v3",module:"",js:["/jquery.fancybox.min.js"],css:["/jquery.fancybox.min.css"],type:"default",alias:["jQuery.Fancybox3"],deps:["jQuery"]},fancybox4:{path:root+"/fancybox/v4",module:"/fancybox.umd.js",js:[],css:["/fancybox.css"],type:"UMD",alias:[]},fancybox5:{path:root+"/fancybox/v5",module:"/fancybox.umd.js",js:[],css:["/fancybox.css"],type:"UMD",alias:["fancybox"]},lightGallery:{path:root+"/lightGallery",css:"/css/lightgallery.css",js:"/lightgallery.min.js",type:"UMD",deps:["jQuery"]},"lightGallery.video":{path:root+"/lightGallery",css:"/css/lg-video.css",js:"/plugins/video/lg-video.min.js",type:"UMD",deps:["lightGallery"]},owlCarousel:{path:root+"/owlCarousel",css:"/owlCarousel.css",js:"/owlCarousel.js",deps:["jQuery"]},"jQuery.Chosen":{path:root+"/jquery/chosen",css:"/chosen.css",js:"/chosen.jquery.js",type:"HMD",alias:["jquery-chosen","chosen","harvesthq/chosen"],deps:["jQuery"]},makeCSSAnimations:{path:root+"/makeCSSAnimations",js:"/makeCSSAnimations.js",deps:["jQuery","support"]},mCustomScrollbar:{path:root+"/mCustomScrollbar",alias:"malihu-custom-scrollbar-plugin",js:"/mCustomScrollbar.js",css:"/jquery.mCustomScrollbar.css",deps:["jQuery","jqueryMousewheel"],onInstall:function(plugin){plugin.module.exports(kit.require("jQuery"))}},"jQuery.Mousewheel":{path:root+"/jquery/Mousewheel",module:"/jquery.mousewheel.min.js",type:"UMD",alias:["jquery-mousewheel","jqueryMousewheel"],deps:["jQuery"],onInstall:function(plugin){plugin.module.exports(kit.require("jQuery"))}},"jQuery.Lazy":{path:root+"/jquery/Lazy",alias:["jquery-lazy","jqueryLazy"],js:["/jquery.lazy.min.js","/jquery.lazy.plugins.min.js"],deps:["jQuery"]},slickCarousel:{path:root+"/slickCarousel",alias:["slick","slick-carousel"],js:"/slick.min.js",css:["/slick.css","/slick-theme.css"],deps:["jQuery"]},mustache:{path:root+"/mustache",alias:["mustache.js"],js:"/mustache.js",deps:[]},bxSlider:{path:root+"/bxSlider",module:"/jquery.bxslider.min.js",css:["/jquery.bxslider.min.css"],type:"default",deps:["jQuery"]},"jQuery.Selectric":{path:root+"/jquery/Selectric",module:"/jquery.selectric.min.js",css:["/selectric.css"],type:"UMD",alias:["jquerySelectric","selectric"],deps:["jQuery"]},"jQuery.jBox":{path:root+"/jquery/jBox",module:"/jBox.min.js",css:["/jBox.min.css"],type:"default",alias:["jBox"],deps:["jQuery"]},intlTelInput:{path:root+"/intl-tel-input",module:"/js/intlTelInputWithUtils.min.js",css:["/css/intlTelInput.min.css"],type:"UMD",alias:["intl-tel-input"]},intlTelInputI18n:{path:root+"/intl-tel-input",module:"/js/i18n/index2.js",type:"ES",alias:["intl-tel-input-i18n"]},autoComplete:{path:root+"/autoComplete",module:"/autoComplete.min.js",css:["/css/autoComplete.css"],type:"HMD"},"jQuery.FlexSlider":{path:root+"/jquery/FlexSlider",module:"",js:["/jquery.flexslider-min.js"],css:["/flexslider.css"],alias:["jquery.flexslider","FlexSlider","flexslider"],type:"default",deps:["jQuery"]},"jQuery.Actual":{path:root+"/jquery/actual",module:"",js:["/jquery.actual.js"],css:[],alias:["jquery.actual"],type:"default",deps:["jQuery"]},"jQuery.jqModal":{path:root+"/jquery/jqModal",module:"/jqModal.js",js:[],css:[],alias:["jqmodal","jqModal"],type:"UMD",deps:["jQuery"]},"jQuery.History":{path:root+"/jquery/history",module:"",js:["/jquery.history.min.js"],css:[],alias:["jquery.history"],type:"default",deps:["jQuery"]},"jQuery.Validation":{path:root+"/jquery/validation",module:"/jquery.validate.min.js",js:["/localization/messages_ru.js"],css:[],loadJsAfterModule:true,alias:["jquery-validation","jquery.validation","jquery.validate"],type:"UMD",deps:["jQuery"]},"jQuery.Inputmask":{path:root+"/jquery/inputmask",module:"/min/jquery.inputmask.bundle.min.js",js:[],css:[],alias:["jquery.inputmask"],type:"default",deps:["jQuery"]},"jQuery.Easing":{path:root+"/jquery/easing",module:"/jquery.easing.min.js",js:[],css:[],alias:["jquery.easing"],type:"default",deps:["jQuery"]},"jQuery.Sly":{path:root+"/jquery/sly",module:"/sly.min.js",js:[],css:[],alias:["jquery.sly","sly"],type:"default",deps:["jQuery"]},"jQuery.Equalize":{path:root+"/jquery/equalize.js",module:"/js/equalize.min.js",js:[],css:[],alias:["equalize","equalize.js","jquery.equalize"],type:"default",deps:["jQuery"]},"jQuery.Alphanumeric":{path:root+"/jquery/alphanumeric",module:"/jquery.alphanumeric.pack.js",js:[],css:[],alias:["jquery.alphanumeric"],type:"default",deps:["jQuery"]},"jQuery.Cookie":{path:root+"/jquery/cookie",module:"/src/jquery.cookie.js",js:[],css:[],alias:["jquery.cookie"],type:"UMD",deps:["jQuery"]},"jQuery.Plugin":{path:root+"/jquery/plugin",module:"/jquery.plugin.min.js",js:[],css:[],alias:["jquery.plugin","kbw-plugin"],type:"default",deps:["jQuery"]},"jQuery.JustifiedGallery":{path:root+"/jquery/JustifiedGallery",module:"/js/jquery.justifiedGallery.min.js",js:[],css:["/css/justifiedGallery.min.css"],alias:[],type:"UMD",deps:["jQuery"]}}}; \ No newline at end of file +var __PluginManagerConfigHandler__=function(){var root=__pmConfig__.assetsPath;var hasJQuery=function(){return window.hasOwnProperty("jQuery")&&window.jQuery.hasOwnProperty("fn")};return{menu:{path:root+"/menu",module:"/menu.js",css:["/menu.css"],type:"HMD",deps:["lib","align","dataStructures","animations","userAction","Collection","support","ActionCollection","Action","Viewer"]},lib:{path:root+"/lib",module:"/lib.js",type:"HMD"},align:{path:root+"/align",module:"/align.js",type:"HMD",deps:["support"]},flexKit:{path:root+"/flex-kit",css:"/flex-kit.css"},support:{path:root+"/support",module:"/support.min.js",type:"HMD"},jQueryProxy:{path:root+"/jquery/proxy",js:"/jquery-proxy.min.js",type:"HMD",alias:[],deps:[],onInstall:function(plugin){var jQueryPlugin=__pmGlobal__.pm.plugins.jQuery;if(jQueryPlugin.isInstalled()){}}},jQuery:{path:root+"/jquery",module:"/jquery.min.js",type:"UMD",alias:["$","jquery"],onRegister:function(plugin){if(hasJQuery()){plugin.module.exports=window.jQuery;plugin.config.module=""}else{var jQueryProxyPlugin=__pmGlobal__.pm.plugins.jQueryProxy;if(jQueryProxyPlugin.isInstalled()){jQueryProxyPlugin.module.exports.onJQueryRegister(plugin)}}},onInstall:function(plugin){var jQueryProxyPlugin=__pmGlobal__.pm.plugins.jQueryProxy;if(jQueryProxyPlugin.isInstalled()){jQueryProxyPlugin.module.exports.onJQueryInstall(plugin)}}},popper:{path:root+"/popper",alias:"popper.js",module:"/popper.js",type:"HMD",css:"/popper.css"},bsCore:{path:root+"/bsCore",module:"/bsCore.min.js",type:"HMD",css:["/bsCore.css"]},bsToast:{path:root+"/bsToast",module:"/bsToast.js",type:"HMD",deps:["bsCore"]},bsToastService:{path:root+"/bsToastService",module:"/bsToastService.js",type:"HMD",css:["/bsToastService.css"],deps:["bsToast","support","Collection"]},Tooltip:{path:root+"/tooltip",module:"/tooltip.js",type:"HMD",css:"/tooltip.css",onInstall:function(plugin){var tooltipTriggerList=[].slice.call(document.querySelectorAll('[data-bs-toggle="tooltip"]'));var tooltipList=tooltipTriggerList.map(function(tooltipTriggerEl){return __pmGlobal__.Tooltip.getOrCreateInstance(tooltipTriggerEl,{sanitize:false})})},deps:["popper","bsCore"]},Tooltip2:{path:root+"/tooltip2",module:"/tooltip2.js",type:"HMD",css:"/tooltip2.css",onInstall:function(plugin){document.addEventListener("mouseover",function(event){if(!(event.target&&event.target.dataset.kitTooltip2==="autoload")){return}if(kit.support.getNodeData(event.target,"tooltip2")){return}var tooltip=new __pmGlobal__.Tooltip2(event.target);tooltip.run();tooltip.show()})},deps:["Viewer","support","ActionCollection","Action","userAction","align","Collection","animations"]},Popover:{path:root+"/popover",module:"/popover.js",type:"HMD",css:"/popover.css",onInstall:function(){var popoverTriggerList=[].slice.call(document.querySelectorAll('[data-bs-toggle="popover"]'));var popoverList=popoverTriggerList.map(function(popoverTriggerEl){return new __pmGlobal__.Popover(popoverTriggerEl)})},deps:["popper","bsCore","Tooltip"]},mask:{path:root+"/mask",module:"/mask.js",type:"HMD",deps:["jQuery"]},toolkit:{path:root+"/toolkit",module:"/toolkit.min.js",type:"HMD",css:["/toolkit.css"],deps:["jQuery","mask","support"]},Modal:{path:root+"/modal",module:"/modal.min.js",type:"HMD",css:["/modal.css"],deps:["bsCore"],onRegister:function(plugin){plugin.onLoadConditionHandler=function(event){if(event.target&&event.target.dataset&&event.target.dataset.bsTarget&&event.target.dataset.bsToggle==="modal"){kit.exec(plugin.id,function(){var newEvent=new Event("click");event.target.dispatchEvent(newEvent)})}};window.addEventListener("click",plugin.onLoadConditionHandler,false)},onInstall:function(plugin){if(plugin.onLoadConditionHandler){window.removeEventListener("click",plugin.onLoadConditionHandler,false)}}},collapse:{path:root+"/collapse",module:"/collapse.min.js",type:"HMD",css:["/collapse.css"],deps:["bsCore"]},datepicker:{path:root+"/datepicker",module:"/js/datepicker.js",type:"HMD",css:["/css/datepicker.css"],deps:["jQuery"]},cookie:{path:root+"/cookie",module:"/cookie.min.js",type:"HMD"},animations:{path:root+"/animations",css:"/animations.css",module:"/animations.js",type:"HMD"},Collection:{path:root+"/Collection",module:"/Collection.js",type:"HMD",deps:["support"]},dataStructures:{path:root+"/dataStructures",module:"/dataStructures.min.js",type:"HMD"},userAction:{path:root+"/userAction",module:"/userAction.js",type:"HMD",deps:["support","ActionCollection","Action","Viewer"]},Viewer:{path:root+"/Viewer",module:"/Viewer.js",type:"HMD",deps:["Collection","support","ActionCollection","Action"]},ActionCollection:{path:root+"/ActionCollection",module:"/ActionCollection.js",type:"HMD",deps:["Collection","support","Action"]},Action:{path:root+"/Action",module:"/Action.js",type:"HMD",deps:["support"]},date:{path:root+"/date",module:"/date.js",type:"HMD",deps:[]},testing:{path:root+"/testing",module:"/testing.js",type:"HMD",deps:["log"]},log:{path:root+"/log",module:"/log.js",css:"/log.css",type:"HMD",deps:["support","Collection","lib"]},fancybox2:{path:root+"/fancybox/v2",module:"",js:["/jquery.fancybox.pack.js"],css:["/jquery.fancybox.css"],type:"default",alias:["jQuery.Fancybox2"],deps:["jQuery"]},fancybox3:{path:root+"/fancybox/v3",module:"",js:["/jquery.fancybox.min.js"],css:["/jquery.fancybox.min.css"],type:"default",alias:["jQuery.Fancybox3"],deps:["jQuery"]},fancybox4:{path:root+"/fancybox/v4",module:"/fancybox.umd.js",js:[],css:["/fancybox.css"],type:"UMD",alias:[]},fancybox5:{path:root+"/fancybox/v5",module:"/fancybox.umd.js",js:[],css:["/fancybox.css"],type:"UMD",alias:["fancybox"]},lightGallery:{path:root+"/lightGallery",css:"/css/lightgallery.css",module:"/lightgallery.min.js",js:[],type:"UMD",deps:[]},"lightGallery.video":{path:root+"/lightGallery",css:"/css/lg-video.css",module:"/plugins/video/lg-video.min.js",type:"UMD",deps:["lightGallery"],alias:["lgVideo"]},owlCarousel:{path:root+"/owlCarousel",css:"/owlCarousel.css",js:"/owlCarousel.js",deps:["jQuery"]},"jQuery.Chosen":{path:root+"/jquery/chosen",css:"/chosen.css",js:"/chosen.jquery.js",type:"HMD",alias:["jquery-chosen","chosen","harvesthq/chosen"],deps:["jQuery"]},makeCSSAnimations:{path:root+"/makeCSSAnimations",js:"/makeCSSAnimations.js",deps:["jQuery","support"]},mCustomScrollbar:{path:root+"/mCustomScrollbar",alias:"malihu-custom-scrollbar-plugin",js:"/mCustomScrollbar.js",css:"/jquery.mCustomScrollbar.css",deps:["jQuery","jqueryMousewheel"],onInstall:function(plugin){plugin.module.exports(kit.require("jQuery"))}},"jQuery.Mousewheel":{path:root+"/jquery/Mousewheel",module:"/jquery.mousewheel.min.js",type:"UMD",alias:["jquery-mousewheel","jqueryMousewheel"],deps:["jQuery"],onInstall:function(plugin){plugin.module.exports(kit.require("jQuery"))}},"jQuery.Lazy":{path:root+"/jquery/Lazy",alias:["jquery-lazy","jqueryLazy"],js:["/jquery.lazy.min.js","/jquery.lazy.plugins.min.js"],deps:["jQuery"]},slickCarousel:{path:root+"/slickCarousel",alias:["slick","slick-carousel"],js:"/slick.min.js",css:["/slick.css","/slick-theme.css"],deps:["jQuery"]},mustache:{path:root+"/mustache",alias:["mustache.js"],js:"/mustache.js",deps:[]},bxSlider:{path:root+"/bxSlider",module:"/jquery.bxslider.min.js",css:["/jquery.bxslider.min.css"],type:"default",deps:["jQuery"]},"jQuery.Selectric":{path:root+"/jquery/Selectric",module:"/jquery.selectric.min.js",css:["/selectric.css"],type:"UMD",alias:["jquerySelectric","selectric"],deps:["jQuery"]},"jQuery.jBox":{path:root+"/jquery/jBox",module:"/jBox.min.js",css:["/jBox.min.css"],type:"default",alias:["jBox"],deps:["jQuery"]},intlTelInput:{path:root+"/intl-tel-input",module:"/js/intlTelInputWithUtils.min.js",css:["/css/intlTelInput.min.css"],type:"UMD",alias:["intl-tel-input"]},intlTelInputI18n:{path:root+"/intl-tel-input",module:"/js/i18n/index2.js",type:"ES",alias:["intl-tel-input-i18n"]},autoComplete:{path:root+"/autoComplete",module:"/autoComplete.min.js",css:["/css/autoComplete.css"],type:"HMD"},"jQuery.FlexSlider":{path:root+"/jquery/FlexSlider",module:"",js:["/jquery.flexslider-min.js"],css:["/flexslider.css"],alias:["jquery.flexslider","FlexSlider","flexslider"],type:"default",deps:["jQuery"]},"jQuery.Actual":{path:root+"/jquery/actual",module:"",js:["/jquery.actual.js"],css:[],alias:["jquery.actual"],type:"default",deps:["jQuery"]},"jQuery.jqModal":{path:root+"/jquery/jqModal",module:"/jqModal.js",js:[],css:[],alias:["jqmodal","jqModal"],type:"UMD",deps:["jQuery"]},"jQuery.History":{path:root+"/jquery/history",module:"",js:["/jquery.history.min.js"],css:[],alias:["jquery.history"],type:"default",deps:["jQuery"]},"jQuery.Validation":{path:root+"/jquery/validation",module:"/jquery.validate.min.js",js:["/localization/messages_ru.js"],css:[],loadJsAfterModule:true,alias:["jquery-validation","jquery.validation","jquery.validate"],type:"UMD",deps:["jQuery"]},"jQuery.Inputmask":{path:root+"/jquery/inputmask",module:"/min/jquery.inputmask.bundle.min.js",js:[],css:[],alias:["jquery.inputmask"],type:"default",deps:["jQuery"]},"jQuery.Easing":{path:root+"/jquery/easing",module:"/jquery.easing.min.js",js:[],css:[],alias:["jquery.easing"],type:"default",deps:["jQuery"]},"jQuery.Sly":{path:root+"/jquery/sly",module:"/sly.min.js",js:[],css:[],alias:["jquery.sly","sly"],type:"default",deps:["jQuery"]},"jQuery.Equalize":{path:root+"/jquery/equalize.js",module:"/js/equalize.min.js",js:[],css:[],alias:["equalize","equalize.js","jquery.equalize"],type:"default",deps:["jQuery"]},"jQuery.Alphanumeric":{path:root+"/jquery/alphanumeric",module:"/jquery.alphanumeric.pack.js",js:[],css:[],alias:["jquery.alphanumeric"],type:"default",deps:["jQuery"]},"jQuery.Cookie":{path:root+"/jquery/cookie",module:"/src/jquery.cookie.js",js:[],css:[],alias:["jquery.cookie"],type:"UMD",deps:["jQuery"]},"jQuery.Plugin":{path:root+"/jquery/plugin",module:"/jquery.plugin.min.js",js:[],css:[],alias:["jquery.plugin","kbw-plugin"],type:"default",deps:["jQuery"]},"jQuery.JustifiedGallery":{path:root+"/jquery/JustifiedGallery",module:"/js/jquery.justifiedGallery.min.js",js:[],css:["/css/justifiedGallery.min.css"],alias:[],type:"UMD",deps:["jQuery"]}}}; \ No newline at end of file diff --git a/assets/flex-kit/flex-kit.css b/assets/flex-kit/flex-kit.css index c10ed86..d188320 100644 --- a/assets/flex-kit/flex-kit.css +++ b/assets/flex-kit/flex-kit.css @@ -102,7 +102,7 @@ script, style { } .flex-list-item { --col-width: calc(100% / var(--col-count) * var(--col-span)); - --line-height: calc(100% / var(--line-count) * var(--line-span, 1)); + --line-height: calc(100% / var(--line-count, 1) * var(--line-span, 1)); box-sizing: border-box; } .flex-list > .flex-list-item { diff --git a/assets/flex-kit/flex-kit.min.css b/assets/flex-kit/flex-kit.min.css index 442096e..5554aea 100644 --- a/assets/flex-kit/flex-kit.min.css +++ b/assets/flex-kit/flex-kit.min.css @@ -1 +1 @@ -script,style{display:none!important}:root{--gap:10px;--gap-section:30px;--gap-wrapper:30px;--col-span:1;--line-clamp:3;--line-clamp-height:1.3em;--width-wrapper:1200px;--flex-aspect-ratio:1;--aspect-ratio:1;--font-ratio-height:.9;--font-ratio-bottom:.1}.kit-wrapper{box-sizing:border-box;width:var(--width-wrapper);max-width:100%;padding:0 var(--gap-wrapper);margin-left:auto;margin-right:auto;position:relative}.kit-sections{box-sizing:border-box;padding-top:var(--gap-section);position:relative}.kit-section{box-sizing:border-box;margin-bottom:var(--gap-section);position:relative}.kit-line-clamp{line-height:var(--line-clamp-height);max-height:calc(var(--line-clamp-height) * var(--line-clamp));word-wrap:break-word;text-overflow:-o-ellipsis-lastline;text-overflow:ellipsis;-webkit-line-clamp:var(--line-clamp);word-break:break-word;white-space:normal;-webkit-box-orient:vertical;display:-webkit-box;overflow:hidden}.flex-list{box-sizing:border-box;--col-span:1;--col-count:4;--gap-row:var(--gap);--flex-list-width:calc(100%);flex-flow:wrap;align-content:flex-start;justify-content:flex-start;align-items:stretch;display:flex;position:relative}.flex-list:not(.owl-loaded){margin-left:calc(var(--gap) / -2)!important;margin-right:calc(var(--gap) / -2)!important;margin-top:calc(var(--gap-row) / -2)!important;margin-bottom:calc(var(--gap-row) / -2)!important}.flex-list:before,.flex-list:after{content:""}.flex-list:not(:is(.owl-loaded,.slick-slider))>*{padding-left:calc(var(--gap) / 2);padding-right:calc(var(--gap) / 2);padding-top:calc(var(--gap-row) / 2);padding-bottom:calc(var(--gap-row) / 2);position:relative}.flex-list-item{--col-width:calc(100% / var(--col-count) * var(--col-span));--line-height:calc(100% / var(--line-count) * var(--line-span,1));box-sizing:border-box}.flex-list>.flex-list-item{width:var(--col-width)!important;max-width:var(--col-width)!important;flex-basis:var(--col-width)!important}.flex-list-item:before,.flex-list-item:after{content:""}.flex-list-item-delimiter{flex:1 0 0;width:0;height:0}.flex-list--static{--line-count:1}.flex-list--static .flex-list-item{height:var(--line-height)!important;max-height:var(--line-height)!important}.flex-aspect-ratio:not(.owl-loaded)>:not(.flex-cell-aspect-auto)>img{object-fit:contain;height:auto}.flex-aspect-ratio:not(.owl-loaded)>:not(.flex-cell-aspect-auto),.flex-aspect-ratio.owl-loaded>.owl-stage-outer>.owl-stage>.owl-item>:not(.flex-cell-aspect-auto){padding:0;position:relative}.flex-aspect-ratio:not(.owl-loaded):not(.flex-list)>:not(.flex-cell-aspect-auto):before,.flex-aspect-ratio.owl-loaded:not(.flex-list)>.owl-stage-outer>.owl-stage>.owl-item>:not(.flex-cell-aspect-auto):before{content:"";width:100%;padding-bottom:calc(100% / (var(--flex-aspect-ratio)));display:block}.flex-aspect-ratio.flex-list:not(.owl-loaded)>:not(.flex-cell-aspect-auto):before{content:"";width:100%;padding-bottom:calc((100% / var(--col-span,1) - 0 * var(--gap,10px)) / var(--flex-aspect-ratio));display:block}.flex-aspect-ratio.flex-list.owl-loaded>.owl-stage-outer>.owl-stage>.owl-item>:not(.flex-cell-aspect-auto):before{content:"";width:100%;padding-bottom:calc(100% / (var(--flex-aspect-ratio)));display:block}.flex-aspect-ratio:not(.owl-loaded)>:not(.flex-cell-aspect-auto)>:first-child,.flex-aspect-ratio.owl-loaded>.owl-stage-outer>.owl-stage>.owl-item>:not(.flex-cell-aspect-auto)>:first-child{object-fit:contain;width:100%;height:100%;position:absolute;top:0;left:0}.flex-aspect-ratio:not(.owl-loaded)>:not(.flex-cell-aspect-auto)>:first-child>picture,.flex-aspect-ratio.owl-loaded>.owl-stage-outer>.owl-stage>.owl-item>:not(.flex-cell-aspect-auto)>:first-child>picture{width:100%;height:100%}.flex-aspect-ratio:not(.owl-loaded)>:not(.flex-cell-aspect-auto)>:first-child>picture>img,.flex-aspect-ratio.owl-loaded>.owl-stage-outer>.owl-stage>.owl-item>:not(.flex-cell-aspect-auto)>:first-child>picture>img{object-fit:contain;width:100%;height:100%}.flex-list.flex-aspect-ratio:not(.owl-loaded)>*>:first-child,.flex-list-item.aspect-ratio>:first-child{padding:calc(var(--gap) / 2)}@supports (--aspect-ratio:0){.aspect-ratio{width:100%;position:relative}.aspect-ratio>img{object-fit:contain;height:auto}.aspect-ratio:before{content:"";width:100%;padding-bottom:calc(100% / (var(--aspect-ratio)));pointer-events:none;display:block}.aspect-ratio>:first-child{object-fit:contain;width:100%;height:100%;position:absolute;top:0;left:0}}.kit-icon picture,.kit-icon img,.kit-icon svg,.kit-picture picture,.kit-picture img,.kit-picture svg{fill:currentColor;object-fit:contain;object-position:center;width:100%;max-width:100%;height:100%;max-height:100%;transition:inherit;display:block}.kit-picture-line,.kit-icon-line{margin-bottom:calc(-1em * var(--font-ratio-bottom,.2));display:inline-block}.kit-picture-line svg,.kit-picture-line picture,.kit-picture-line img,.kit-icon-line svg,.kit-icon-line picture,.kit-icon-line img{height:calc(1em * var(--font-ratio-height,1));vertical-align:baseline;fill:currentColor;object-fit:contain;object-position:center;width:auto;max-width:100%;max-height:100%;margin:auto;transition:inherit;display:block} \ No newline at end of file +script,style{display:none!important}:root{--gap:10px;--gap-section:30px;--gap-wrapper:30px;--col-span:1;--line-clamp:3;--line-clamp-height:1.3em;--width-wrapper:1200px;--flex-aspect-ratio:1;--aspect-ratio:1;--font-ratio-height:.9;--font-ratio-bottom:.1}.kit-wrapper{box-sizing:border-box;width:var(--width-wrapper);max-width:100%;padding:0 var(--gap-wrapper);margin-left:auto;margin-right:auto;position:relative}.kit-sections{box-sizing:border-box;padding-top:var(--gap-section);position:relative}.kit-section{box-sizing:border-box;margin-bottom:var(--gap-section);position:relative}.kit-line-clamp{line-height:var(--line-clamp-height);max-height:calc(var(--line-clamp-height) * var(--line-clamp));word-wrap:break-word;text-overflow:-o-ellipsis-lastline;text-overflow:ellipsis;-webkit-line-clamp:var(--line-clamp);word-break:break-word;white-space:normal;-webkit-box-orient:vertical;display:-webkit-box;overflow:hidden}.flex-list{box-sizing:border-box;--col-span:1;--col-count:4;--gap-row:var(--gap);--flex-list-width:calc(100%);flex-flow:wrap;align-content:flex-start;justify-content:flex-start;align-items:stretch;display:flex;position:relative}.flex-list:not(.owl-loaded){margin-left:calc(var(--gap) / -2)!important;margin-right:calc(var(--gap) / -2)!important;margin-top:calc(var(--gap-row) / -2)!important;margin-bottom:calc(var(--gap-row) / -2)!important}.flex-list:before,.flex-list:after{content:""}.flex-list:not(:is(.owl-loaded,.slick-slider))>*{padding-left:calc(var(--gap) / 2);padding-right:calc(var(--gap) / 2);padding-top:calc(var(--gap-row) / 2);padding-bottom:calc(var(--gap-row) / 2);position:relative}.flex-list-item{--col-width:calc(100% / var(--col-count) * var(--col-span));--line-height:calc(100% / var(--line-count,1) * var(--line-span,1));box-sizing:border-box}.flex-list>.flex-list-item{width:var(--col-width)!important;max-width:var(--col-width)!important;flex-basis:var(--col-width)!important}.flex-list-item:before,.flex-list-item:after{content:""}.flex-list-item-delimiter{flex:1 0 0;width:0;height:0}.flex-list--static{--line-count:1}.flex-list--static .flex-list-item{height:var(--line-height)!important;max-height:var(--line-height)!important}.flex-aspect-ratio:not(.owl-loaded)>:not(.flex-cell-aspect-auto)>img{object-fit:contain;height:auto}.flex-aspect-ratio:not(.owl-loaded)>:not(.flex-cell-aspect-auto),.flex-aspect-ratio.owl-loaded>.owl-stage-outer>.owl-stage>.owl-item>:not(.flex-cell-aspect-auto){padding:0;position:relative}.flex-aspect-ratio:not(.owl-loaded):not(.flex-list)>:not(.flex-cell-aspect-auto):before,.flex-aspect-ratio.owl-loaded:not(.flex-list)>.owl-stage-outer>.owl-stage>.owl-item>:not(.flex-cell-aspect-auto):before{content:"";width:100%;padding-bottom:calc(100% / (var(--flex-aspect-ratio)));display:block}.flex-aspect-ratio.flex-list:not(.owl-loaded)>:not(.flex-cell-aspect-auto):before{content:"";width:100%;padding-bottom:calc((100% / var(--col-span,1) - 0 * var(--gap,10px)) / var(--flex-aspect-ratio));display:block}.flex-aspect-ratio.flex-list.owl-loaded>.owl-stage-outer>.owl-stage>.owl-item>:not(.flex-cell-aspect-auto):before{content:"";width:100%;padding-bottom:calc(100% / (var(--flex-aspect-ratio)));display:block}.flex-aspect-ratio:not(.owl-loaded)>:not(.flex-cell-aspect-auto)>:first-child,.flex-aspect-ratio.owl-loaded>.owl-stage-outer>.owl-stage>.owl-item>:not(.flex-cell-aspect-auto)>:first-child{object-fit:contain;width:100%;height:100%;position:absolute;top:0;left:0}.flex-aspect-ratio:not(.owl-loaded)>:not(.flex-cell-aspect-auto)>:first-child>picture,.flex-aspect-ratio.owl-loaded>.owl-stage-outer>.owl-stage>.owl-item>:not(.flex-cell-aspect-auto)>:first-child>picture{width:100%;height:100%}.flex-aspect-ratio:not(.owl-loaded)>:not(.flex-cell-aspect-auto)>:first-child>picture>img,.flex-aspect-ratio.owl-loaded>.owl-stage-outer>.owl-stage>.owl-item>:not(.flex-cell-aspect-auto)>:first-child>picture>img{object-fit:contain;width:100%;height:100%}.flex-list.flex-aspect-ratio:not(.owl-loaded)>*>:first-child,.flex-list-item.aspect-ratio>:first-child{padding:calc(var(--gap) / 2)}@supports (--aspect-ratio:0){.aspect-ratio{width:100%;position:relative}.aspect-ratio>img{object-fit:contain;height:auto}.aspect-ratio:before{content:"";width:100%;padding-bottom:calc(100% / (var(--aspect-ratio)));pointer-events:none;display:block}.aspect-ratio>:first-child{object-fit:contain;width:100%;height:100%;position:absolute;top:0;left:0}}.kit-icon picture,.kit-icon img,.kit-icon svg,.kit-picture picture,.kit-picture img,.kit-picture svg{fill:currentColor;object-fit:contain;object-position:center;width:100%;max-width:100%;height:100%;max-height:100%;transition:inherit;display:block}.kit-picture-line,.kit-icon-line{margin-bottom:calc(-1em * var(--font-ratio-bottom,.2));display:inline-block}.kit-picture-line svg,.kit-picture-line picture,.kit-picture-line img,.kit-icon-line svg,.kit-icon-line picture,.kit-icon-line img{height:calc(1em * var(--font-ratio-height,1));vertical-align:baseline;fill:currentColor;object-fit:contain;object-position:center;width:auto;max-width:100%;max-height:100%;margin:auto;transition:inherit;display:block} \ No newline at end of file