Skip to content

Commit 499d620

Browse files
committed
Sync with Kendo UI Professional
1 parent 8778d2d commit 499d620

13 files changed

+39
-36
lines changed

.eslintignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,3 +23,4 @@ src/pdf
2323
src/spreadsheet
2424
src/util
2525
src-modules
26+
core-files

.eslintrc.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,8 @@
1313
"globals": {
1414
"define": "writable",
1515
"kendo": "writable",
16-
"jQuery": "readonly"
16+
"jQuery": "readonly",
17+
"KendoLicensing": "readonly"
1718
},
1819
"rules": {
1920
"array-bracket-spacing": "off", //["error", "always"],

src/kendo.core.js

Lines changed: 5 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,15 @@
11
import { defaultBreakpoints, mediaQuery } from './utils/mediaquery.js';
22
import { fromESClass } from './utils/convert-class.js';
3+
import * as licensing from './kendo.licensing.js';
34

45
export const __meta__ = {
56
id: "core",
67
name: "Core",
78
category: "framework",
8-
description: "The core of the Kendo framework."
9+
description: "The core of the Kendo framework.",
10+
depends: ["licensing"],
911
};
1012

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-
2113
(function($, window, undefined) {
2214
var kendo = window.kendo = window.kendo || { cultures: {} },
2315
extend = $.extend,
@@ -3277,8 +3269,8 @@ function pad(number, digits, end) {
32773269
init: function(element, options) {
32783270
var that = this;
32793271

3280-
if (!validatePackage()) {
3281-
that._showWatermarkOverlay = addWatermarkOverlay;
3272+
if (!licensing.validatePackage()) {
3273+
that._showWatermarkOverlay = licensing.addWatermarkOverlayAndBanner;
32823274
}
32833275

32843276
that.element = kendo.jQuery(element).handler(that);
@@ -5759,21 +5751,6 @@ function pad(number, digits, end) {
57595751
};
57605752
}());
57615753

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-
57775754
})(jQuery, window);
57785755

57795756
export { fromESClass };

src/kendo.dateinput.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
// The current file development is no longer in active phase but the code will be kept as is.
22
// Please be advised that we have discontinued the sync for this file with the commercial version of Kendo UI for jQuery.
3-
// 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";
3+
// To take advantage of new features please visit (https://www.telerik.com/kendo-jquery-ui) and consider upgrading to a commercial license.
4+
import "./kendo.core.js";
45
import "./kendo.label.js";
56
import "./kendo.icons.js";
67

src/kendo.datepicker.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
// The current file development is no longer in active phase but the code will be kept as is.
22
// Please be advised that we have discontinued the sync for this file with the commercial version of Kendo UI for jQuery.
3-
// 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";
3+
// To take advantage of new features please visit (https://www.telerik.com/kendo-jquery-ui) and consider upgrading to a commercial license.
4+
import "./kendo.calendar.js";
45
import "./kendo.popup.js";
56
import "./kendo.dateinput.js";
67
import "./kendo.html.button.js";

src/kendo.datetimepicker.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
// The current file development is no longer in active phase but the code will be kept as is.
22
// Please be advised that we have discontinued the sync for this file with the commercial version of Kendo UI for jQuery.
3-
// 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";
3+
// To take advantage of new features please visit (https://www.telerik.com/kendo-jquery-ui) and consider upgrading to a commercial license.
4+
import "./kendo.datepicker.js";
45
import "./kendo.timepicker.js";
56
import "./kendo.html.button.js";
67
import "./kendo.label.js";

src/kendo.editable.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
// The current file development is no longer in active phase but the code will be kept as is.
22
// Please be advised that we have discontinued the sync for this file with the commercial version of Kendo UI for jQuery.
3-
// 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";
3+
// To take advantage of new features please visit (https://www.telerik.com/kendo-jquery-ui) and consider upgrading to a commercial license.
4+
import "./kendo.checkbox.js";
45
import "./kendo.dropdownlist.js";
56
import "./kendo.datepicker.js";
67
import "./kendo.numerictextbox.js";

src/kendo.licensing.js

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
// The current file development is no longer in active phase but the code will be kept as is.
2+
// Please be advised that we have discontinued the sync for this file with the commercial version of Kendo UI for jQuery.
3+
// To take advantage of new features please visit (https://www.telerik.com/kendo-jquery-ui) and consider upgrading to a commercial license.
4+
5+
export const __meta__ = {
6+
id: "licensing",
7+
name: "Licensing",
8+
category: "framework",
9+
description: "The licensing mechanism for Kendo UI for jQuery.",
10+
depends: []
11+
};
12+
export const addWatermarkOverlayAndBanner = () => {};
13+
export const validatePackage = () => {};

src/kendo.listview.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
// The current file development is no longer in active phase but the code will be kept as is.
22
// Please be advised that we have discontinued the sync for this file with the commercial version of Kendo UI for jQuery.
3-
// 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";
3+
// To take advantage of new features please visit (https://www.telerik.com/kendo-jquery-ui) and consider upgrading to a commercial license.
4+
import "./kendo.data.js";
45
import "./kendo.editable.js";
56
import "./kendo.selectable.js";
67
import "./kendo.pager.js";

src/kendo.timepicker.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
// The current file development is no longer in active phase but the code will be kept as is.
22
// Please be advised that we have discontinued the sync for this file with the commercial version of Kendo UI for jQuery.
3-
// 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";
3+
// To take advantage of new features please visit (https://www.telerik.com/kendo-jquery-ui) and consider upgrading to a commercial license.
4+
import "./kendo.calendar.js";
45
import "./kendo.popup.js";
56
import "./kendo.dateinput.js";
67
import "./kendo.html.button.js";

0 commit comments

Comments
 (0)