| 
1 | 1 | import { defaultBreakpoints, mediaQuery } from './utils/mediaquery.js';  | 
2 | 2 | import { fromESClass } from './utils/convert-class.js';  | 
 | 3 | +import * as licensing from './kendo.licensing.js';  | 
3 | 4 | 
 
  | 
4 | 5 | export const __meta__ = {  | 
5 | 6 |     id: "core",  | 
6 | 7 |     name: "Core",  | 
7 | 8 |     category: "framework",  | 
8 |  | -    description: "The core of the Kendo framework."  | 
 | 9 | +    description: "The core of the Kendo framework.",  | 
 | 10 | +    depends: ["licensing"],  | 
9 | 11 | };  | 
10 | 12 | 
 
  | 
11 |  | -var packageMetadata = {  | 
12 |  | -    name: '@progress/kendo-ui',  | 
13 |  | -    productName: 'Kendo UI',  | 
14 |  | -    productCodes: ['KENDOUICOMPLETE', 'KENDOUI', 'UIASPCORE', 'KENDOMVC', 'KENDOUIMVC'],  | 
15 |  | -    publishDate: 0,  | 
16 |  | -    version: '$KENDO_VERSION'.replace(/^\s+|\s+$/g, ''),  | 
17 |  | -    licensingDocsUrl: 'https://docs.telerik.com/kendo-ui/intro/installation/using-license-code?utm_medium=product&utm_source=kendojquery&utm_campaign=kendo-ui-jquery-purchase-license-keys-warning'  | 
18 |  | -};  | 
19 |  | - | 
20 |  | - | 
21 | 13 | (function($, window, undefined) {  | 
22 | 14 |     var kendo = window.kendo = window.kendo || { cultures: {} },  | 
23 | 15 |         extend = $.extend,  | 
@@ -3277,8 +3269,8 @@ function pad(number, digits, end) {  | 
3277 | 3269 |         init: function(element, options) {  | 
3278 | 3270 |             var that = this;  | 
3279 | 3271 | 
 
  | 
3280 |  | -            if (!validatePackage()) {  | 
3281 |  | -                that._showWatermarkOverlay = addWatermarkOverlay;  | 
 | 3272 | +            if (!licensing.validatePackage()) {  | 
 | 3273 | +                that._showWatermarkOverlay = licensing.addWatermarkOverlayAndBanner;  | 
3282 | 3274 |             }  | 
3283 | 3275 | 
 
  | 
3284 | 3276 |             that.element = kendo.jQuery(element).handler(that);  | 
@@ -5759,21 +5751,6 @@ function pad(number, digits, end) {  | 
5759 | 5751 |         };  | 
5760 | 5752 |     }());  | 
5761 | 5753 | 
 
  | 
5762 |  | -    var KendoLicensing = { validatePackage: function() { return true; },setScriptKey: function() {} };  | 
5763 |  | - | 
5764 |  | -    window.KendoLicensing = {  | 
5765 |  | -        setScriptKey: KendoLicensing.setScriptKey  | 
5766 |  | -    };  | 
5767 |  | - | 
5768 |  | -    function validatePackage() {  | 
5769 |  | -        return KendoLicensing.validatePackage(packageMetadata);  | 
5770 |  | -    }  | 
5771 |  | - | 
5772 |  | -    function addWatermarkOverlay(el) {  | 
5773 |  | -        KendoLicensing.addWatermarkOverlay && KendoLicensing.addWatermarkOverlay(el, packageMetadata);  | 
5774 |  | -        KendoLicensing.showBanner && KendoLicensing.showBanner(packageMetadata);  | 
5775 |  | -    }  | 
5776 |  | - | 
5777 | 5754 | })(jQuery, window);  | 
5778 | 5755 | 
 
  | 
5779 | 5756 | export { fromESClass };  | 
 | 
0 commit comments