Skip to content

Commit

Permalink
Sync with Kendo UI Professional
Browse files Browse the repository at this point in the history
  • Loading branch information
kendo-bot committed Dec 9, 2024
1 parent 8778d2d commit 499d620
Show file tree
Hide file tree
Showing 13 changed files with 39 additions and 36 deletions.
1 change: 1 addition & 0 deletions .eslintignore
Original file line number Diff line number Diff line change
Expand Up @@ -23,3 +23,4 @@ src/pdf
src/spreadsheet
src/util
src-modules
core-files
3 changes: 2 additions & 1 deletion .eslintrc.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,8 @@
"globals": {
"define": "writable",
"kendo": "writable",
"jQuery": "readonly"
"jQuery": "readonly",
"KendoLicensing": "readonly"
},
"rules": {
"array-bracket-spacing": "off", //["error", "always"],
Expand Down
33 changes: 5 additions & 28 deletions src/kendo.core.js
Original file line number Diff line number Diff line change
@@ -1,23 +1,15 @@
import { defaultBreakpoints, mediaQuery } from './utils/mediaquery.js';
import { fromESClass } from './utils/convert-class.js';
import * as licensing from './kendo.licensing.js';

export const __meta__ = {
id: "core",
name: "Core",
category: "framework",
description: "The core of the Kendo framework."
description: "The core of the Kendo framework.",
depends: ["licensing"],
};

var packageMetadata = {
name: '@progress/kendo-ui',
productName: 'Kendo UI',
productCodes: ['KENDOUICOMPLETE', 'KENDOUI', 'UIASPCORE', 'KENDOMVC', 'KENDOUIMVC'],
publishDate: 0,
version: '$KENDO_VERSION'.replace(/^\s+|\s+$/g, ''),
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'
};


(function($, window, undefined) {
var kendo = window.kendo = window.kendo || { cultures: {} },
extend = $.extend,
Expand Down Expand Up @@ -3277,8 +3269,8 @@ function pad(number, digits, end) {
init: function(element, options) {
var that = this;

if (!validatePackage()) {
that._showWatermarkOverlay = addWatermarkOverlay;
if (!licensing.validatePackage()) {
that._showWatermarkOverlay = licensing.addWatermarkOverlayAndBanner;
}

that.element = kendo.jQuery(element).handler(that);
Expand Down Expand Up @@ -5759,21 +5751,6 @@ function pad(number, digits, end) {
};
}());

var KendoLicensing = { validatePackage: function() { return true; },setScriptKey: function() {} };

window.KendoLicensing = {
setScriptKey: KendoLicensing.setScriptKey
};

function validatePackage() {
return KendoLicensing.validatePackage(packageMetadata);
}

function addWatermarkOverlay(el) {
KendoLicensing.addWatermarkOverlay && KendoLicensing.addWatermarkOverlay(el, packageMetadata);
KendoLicensing.showBanner && KendoLicensing.showBanner(packageMetadata);
}

})(jQuery, window);

export { fromESClass };
Expand Down
3 changes: 2 additions & 1 deletion src/kendo.dateinput.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
// The current file development is no longer in active phase but the code will be kept as is.
// Please be advised that we have discontinued the sync for this file with the commercial version of Kendo UI for jQuery.
// To take advantage of new features please visit (https://www.telerik.com/kendo-jquery-ui) and consider upgrading to a commercial license.import "./kendo.core.js";
// To take advantage of new features please visit (https://www.telerik.com/kendo-jquery-ui) and consider upgrading to a commercial license.
import "./kendo.core.js";
import "./kendo.label.js";
import "./kendo.icons.js";

Expand Down
3 changes: 2 additions & 1 deletion src/kendo.datepicker.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
// The current file development is no longer in active phase but the code will be kept as is.
// Please be advised that we have discontinued the sync for this file with the commercial version of Kendo UI for jQuery.
// To take advantage of new features please visit (https://www.telerik.com/kendo-jquery-ui) and consider upgrading to a commercial license.import "./kendo.calendar.js";
// To take advantage of new features please visit (https://www.telerik.com/kendo-jquery-ui) and consider upgrading to a commercial license.
import "./kendo.calendar.js";
import "./kendo.popup.js";
import "./kendo.dateinput.js";
import "./kendo.html.button.js";
Expand Down
3 changes: 2 additions & 1 deletion src/kendo.datetimepicker.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
// The current file development is no longer in active phase but the code will be kept as is.
// Please be advised that we have discontinued the sync for this file with the commercial version of Kendo UI for jQuery.
// To take advantage of new features please visit (https://www.telerik.com/kendo-jquery-ui) and consider upgrading to a commercial license.import "./kendo.datepicker.js";
// To take advantage of new features please visit (https://www.telerik.com/kendo-jquery-ui) and consider upgrading to a commercial license.
import "./kendo.datepicker.js";
import "./kendo.timepicker.js";
import "./kendo.html.button.js";
import "./kendo.label.js";
Expand Down
3 changes: 2 additions & 1 deletion src/kendo.editable.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
// The current file development is no longer in active phase but the code will be kept as is.
// Please be advised that we have discontinued the sync for this file with the commercial version of Kendo UI for jQuery.
// To take advantage of new features please visit (https://www.telerik.com/kendo-jquery-ui) and consider upgrading to a commercial license.import "./kendo.checkbox.js";
// To take advantage of new features please visit (https://www.telerik.com/kendo-jquery-ui) and consider upgrading to a commercial license.
import "./kendo.checkbox.js";
import "./kendo.dropdownlist.js";
import "./kendo.datepicker.js";
import "./kendo.numerictextbox.js";
Expand Down
13 changes: 13 additions & 0 deletions src/kendo.licensing.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
// The current file development is no longer in active phase but the code will be kept as is.
// Please be advised that we have discontinued the sync for this file with the commercial version of Kendo UI for jQuery.
// To take advantage of new features please visit (https://www.telerik.com/kendo-jquery-ui) and consider upgrading to a commercial license.

export const __meta__ = {
id: "licensing",
name: "Licensing",
category: "framework",
description: "The licensing mechanism for Kendo UI for jQuery.",
depends: []
};
export const addWatermarkOverlayAndBanner = () => {};
export const validatePackage = () => {};
3 changes: 2 additions & 1 deletion src/kendo.listview.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
// The current file development is no longer in active phase but the code will be kept as is.
// Please be advised that we have discontinued the sync for this file with the commercial version of Kendo UI for jQuery.
// To take advantage of new features please visit (https://www.telerik.com/kendo-jquery-ui) and consider upgrading to a commercial license.import "./kendo.data.js";
// To take advantage of new features please visit (https://www.telerik.com/kendo-jquery-ui) and consider upgrading to a commercial license.
import "./kendo.data.js";
import "./kendo.editable.js";
import "./kendo.selectable.js";
import "./kendo.pager.js";
Expand Down
3 changes: 2 additions & 1 deletion src/kendo.timepicker.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
// The current file development is no longer in active phase but the code will be kept as is.
// Please be advised that we have discontinued the sync for this file with the commercial version of Kendo UI for jQuery.
// To take advantage of new features please visit (https://www.telerik.com/kendo-jquery-ui) and consider upgrading to a commercial license.import "./kendo.calendar.js";
// To take advantage of new features please visit (https://www.telerik.com/kendo-jquery-ui) and consider upgrading to a commercial license.
import "./kendo.calendar.js";
import "./kendo.popup.js";
import "./kendo.dateinput.js";
import "./kendo.html.button.js";
Expand Down
3 changes: 2 additions & 1 deletion src/kendo.ui.core.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
// The current file development is no longer in active phase but the code will be kept as is.
// Please be advised that we have discontinued the sync for this file with the commercial version of Kendo UI for jQuery.
// To take advantage of new features please visit (https://www.telerik.com/kendo-jquery-ui) and consider upgrading to a commercial license.import "./kendo.core.js";
// To take advantage of new features please visit (https://www.telerik.com/kendo-jquery-ui) and consider upgrading to a commercial license.
import "./kendo.core.js";
import "./kendo.router.js";
import "./kendo.touch.js";
import "./kendo.view.js";
Expand Down
2 changes: 2 additions & 0 deletions src/utils/dropdowns-loader.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
import "../kendo.core.js";

let $ = kendo.jQuery;

const LOADING = "k-loading",
Expand Down
2 changes: 2 additions & 0 deletions src/utils/valueMapper.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
import "../kendo.core.js";

let $ = kendo.jQuery;

export function valueMapperOptions(options, value, callback) {
Expand Down

0 comments on commit 499d620

Please sign in to comment.