@progress/telerik-jquery-report-viewer 31.26.1007 → 32.26.1110
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/exportDialog.js +613 -93
- package/dist/cjs/history.js +19 -1
- package/dist/cjs/mainMenu.js +4 -5
- package/dist/cjs/parameters.js +20 -15
- package/dist/cjs/reportViewer.js +17 -2
- package/dist/cjs/sendEmail.js +2 -2
- package/dist/cjs/sideMenu.js +4 -5
- package/dist/cjs/sr.js +19 -3
- package/dist/cjs/toolbar.js +1 -1
- package/dist/cjs/utils.js +11 -0
- package/dist/js/telerikReportViewer.js +3913 -2909
- package/dist/js/telerikReportViewer.kendo.js +214 -0
- package/dist/js/telerikReportViewer.kendo.min.js +1 -1
- package/dist/js/telerikReportViewer.min.js +3 -1
- package/dist/js/telerikReportViewer.stringResources.js +236 -3
- package/dist/styles/telerikReportViewer.css +4 -4
- package/dist/styles/telerikReportViewer.min.css +4 -4
- package/dist/templates/telerikReportViewerTemplate.html +5 -4
- package/package.json +1 -1
|
@@ -45758,6 +45758,220 @@
|
|
|
45758
45758
|
kendo.ui.plugin(Drawer);
|
|
45759
45759
|
})(window.kendo.jQuery);
|
|
45760
45760
|
kendo;
|
|
45761
|
+
(function($, undefined) {
|
|
45762
|
+
var kendo = window.kendo, ui = kendo.ui, NS = ".kendoSwitch", Widget = ui.Widget, support = kendo.support, CHANGE = "change", KENDO_KEYDOWN = "kendoKeydown", switchStyles = {
|
|
45763
|
+
widget: "k-switch",
|
|
45764
|
+
track: "k-switch-track",
|
|
45765
|
+
thumbWrapper: "k-switch-thumb-wrap",
|
|
45766
|
+
thumb: "k-switch-thumb",
|
|
45767
|
+
checked: "k-switch-on",
|
|
45768
|
+
checkedLabel: "k-switch-label-on",
|
|
45769
|
+
unchecked: "k-switch-off",
|
|
45770
|
+
uncheckedLabel: "k-switch-label-off",
|
|
45771
|
+
disabled: "k-disabled",
|
|
45772
|
+
readonly: "k-readonly",
|
|
45773
|
+
active: "k-active"
|
|
45774
|
+
}, DISABLED = "disabled", ARIA_DISABLED = "aria-disabled", READONLY = "readonly", ARIA_READONLY = "aria-readonly", ARIA_CHECKED = "aria-checked", ARIA_HIDDEN = "aria-hidden", CHECKED = "checked", CLICK = support.click + NS, TOUCHEND = support.pointers ? "pointerup" : "touchend", KEYDOWN = "keydown" + NS, LABELIDPART = "_label", DOT = ".", encode = kendo.htmlEncode;
|
|
45775
|
+
var SWITCH_TEMPLATE = kendo.template(({ styles }) => `<span class="${styles.widget}" role="switch"></span>`);
|
|
45776
|
+
var SWITCH_TRACK_TEMPLATE = kendo.template(({ styles, checked, unchecked }) => `<span class='${styles.track}'><span class='${styles.checkedLabel}'>${encode(checked)}</span><span class='${styles.uncheckedLabel}'>${encode(unchecked)}</span></span>`);
|
|
45777
|
+
var SWITCH_THUMB_TEMPLATE = kendo.template(({ styles }) => `<span class='${styles.thumbWrapper}'><span class='${styles.thumb}'></span></span>`);
|
|
45778
|
+
var Switch = Widget.extend({
|
|
45779
|
+
init: function(element, options) {
|
|
45780
|
+
var that = this;
|
|
45781
|
+
Widget.fn.init.call(that, element, options);
|
|
45782
|
+
that._wrapper();
|
|
45783
|
+
that._initSettings();
|
|
45784
|
+
that._aria();
|
|
45785
|
+
that._attachEvents();
|
|
45786
|
+
kendo.notify(that, kendo.ui);
|
|
45787
|
+
Widget.fn.endInit.call(that);
|
|
45788
|
+
},
|
|
45789
|
+
_wrapper: function() {
|
|
45790
|
+
var that = this, options = that.options, element = that.element[0], wrapper = $(SWITCH_TEMPLATE({ styles: switchStyles }));
|
|
45791
|
+
element.type = "checkbox";
|
|
45792
|
+
that.wrapper = that.element.wrap(wrapper).parent();
|
|
45793
|
+
that.wrapper[0].style.cssText = that.element[0].style.cssText;
|
|
45794
|
+
that.element.hide();
|
|
45795
|
+
that.wrapper.append($(SWITCH_TRACK_TEMPLATE({
|
|
45796
|
+
styles: switchStyles,
|
|
45797
|
+
checked: options.messages.checked,
|
|
45798
|
+
unchecked: options.messages.unchecked
|
|
45799
|
+
}))).append($(SWITCH_THUMB_TEMPLATE({ styles: switchStyles }))).addClass(element.className).removeClass("input-validation-error");
|
|
45800
|
+
that.options.rounded = that.options.trackRounded;
|
|
45801
|
+
that._applyCssClasses();
|
|
45802
|
+
that._applyRoundedClasses();
|
|
45803
|
+
},
|
|
45804
|
+
_applyRoundedClasses: function(action) {
|
|
45805
|
+
var that = this, options = that.options, trackRounded = kendo.cssProperties.getValidClass({
|
|
45806
|
+
widget: options.name,
|
|
45807
|
+
propName: "rounded",
|
|
45808
|
+
value: options.trackRounded
|
|
45809
|
+
}), thumbRounded = kendo.cssProperties.getValidClass({
|
|
45810
|
+
widget: options.name,
|
|
45811
|
+
propName: "rounded",
|
|
45812
|
+
value: options.thumbRounded
|
|
45813
|
+
});
|
|
45814
|
+
action = action || "addClass";
|
|
45815
|
+
that.wrapper.find(DOT + switchStyles.track)[action](trackRounded);
|
|
45816
|
+
that.wrapper.find(DOT + switchStyles.thumb)[action](thumbRounded);
|
|
45817
|
+
},
|
|
45818
|
+
_attachEvents: function() {
|
|
45819
|
+
var that = this;
|
|
45820
|
+
that.wrapper.on(CLICK, that._click.bind(that)).on(TOUCHEND, that._touchEnd.bind(that)).on(KEYDOWN, that, that._keydown.bind(that));
|
|
45821
|
+
},
|
|
45822
|
+
setOptions: function(options) {
|
|
45823
|
+
let that = this, messages = options.messages, checkedLabel, uncheckedLabel;
|
|
45824
|
+
that._clearCssClasses(options);
|
|
45825
|
+
that._applyRoundedClasses("removeClass");
|
|
45826
|
+
that.options = $.extend(that.options, options);
|
|
45827
|
+
if (messages && messages.checked !== undefined) {
|
|
45828
|
+
checkedLabel = that.wrapper.find(DOT + switchStyles.checkedLabel);
|
|
45829
|
+
checkedLabel.text(encode(messages.checked));
|
|
45830
|
+
}
|
|
45831
|
+
if (messages && messages.unchecked !== undefined) {
|
|
45832
|
+
uncheckedLabel = that.wrapper.find(DOT + switchStyles.uncheckedLabel);
|
|
45833
|
+
uncheckedLabel.text(encode(messages.unchecked));
|
|
45834
|
+
}
|
|
45835
|
+
if (options.width) that.wrapper.css({ width: options.width });
|
|
45836
|
+
if (options.enabled !== undefined) that.enable(options.enabled);
|
|
45837
|
+
if (options.readonly !== undefined) that.readonly(options.readonly);
|
|
45838
|
+
that.check(options.checked);
|
|
45839
|
+
that.options.rounded = that.options.trackRounded;
|
|
45840
|
+
that._applyCssClasses();
|
|
45841
|
+
that._applyRoundedClasses();
|
|
45842
|
+
},
|
|
45843
|
+
_initSettings: function() {
|
|
45844
|
+
var that = this, element = that.element[0], options = that.options;
|
|
45845
|
+
if (options.enabled) that._tabindex();
|
|
45846
|
+
if (options.width) that.wrapper.css({ width: options.width });
|
|
45847
|
+
if (options.checked === null) options.checked = element.checked;
|
|
45848
|
+
that.check(options.checked);
|
|
45849
|
+
options.enabled = options.enabled && !that.element.attr(DISABLED);
|
|
45850
|
+
that.enable(options.enabled);
|
|
45851
|
+
options.readonly = options.readonly || !!that.element.attr(READONLY);
|
|
45852
|
+
that.readonly(options.readonly);
|
|
45853
|
+
},
|
|
45854
|
+
_aria: function() {
|
|
45855
|
+
var that = this, element = that.element, wrapper = that.wrapper, id = element.attr("id"), labelFor = $("label[for=\"" + id + "\"]"), ariaLabel = element.attr("aria-label"), ariaLabelledBy = element.attr("aria-labelledby");
|
|
45856
|
+
if (ariaLabel) wrapper.attr("aria-label", ariaLabel);
|
|
45857
|
+
else if (ariaLabelledBy) wrapper.attr("aria-labelledby", ariaLabelledBy);
|
|
45858
|
+
else if (labelFor.length) {
|
|
45859
|
+
var labelId = labelFor.attr("id");
|
|
45860
|
+
if (!labelId) {
|
|
45861
|
+
labelId = (id || kendo.guid()) + LABELIDPART;
|
|
45862
|
+
labelFor.attr("id", labelId);
|
|
45863
|
+
}
|
|
45864
|
+
wrapper.attr("aria-labelledby", labelId);
|
|
45865
|
+
}
|
|
45866
|
+
},
|
|
45867
|
+
events: [CHANGE, KENDO_KEYDOWN],
|
|
45868
|
+
options: {
|
|
45869
|
+
name: "Switch",
|
|
45870
|
+
messages: {
|
|
45871
|
+
checked: "On",
|
|
45872
|
+
unchecked: "Off"
|
|
45873
|
+
},
|
|
45874
|
+
width: null,
|
|
45875
|
+
checked: null,
|
|
45876
|
+
enabled: true,
|
|
45877
|
+
readonly: false,
|
|
45878
|
+
size: undefined,
|
|
45879
|
+
rounded: undefined,
|
|
45880
|
+
trackRounded: undefined,
|
|
45881
|
+
thumbRounded: undefined
|
|
45882
|
+
},
|
|
45883
|
+
check: function(checked) {
|
|
45884
|
+
var that = this, element = that.element[0];
|
|
45885
|
+
if (checked === undefined) return element.checked;
|
|
45886
|
+
if (element.checked !== checked) that.options.checked = element.checked = checked;
|
|
45887
|
+
that.wrapper.attr(ARIA_CHECKED, checked).toggleClass(switchStyles.checked, checked).toggleClass(switchStyles.unchecked, !checked).find("[aria-hidden='true']").removeAttr(ARIA_HIDDEN);
|
|
45888
|
+
if (checked) {
|
|
45889
|
+
that.element.attr(CHECKED, CHECKED);
|
|
45890
|
+
that.wrapper.find(DOT + switchStyles.uncheckedLabel).attr(ARIA_HIDDEN, true);
|
|
45891
|
+
} else {
|
|
45892
|
+
that.element.prop(CHECKED, false);
|
|
45893
|
+
that.wrapper.find(DOT + switchStyles.checkedLabel).attr(ARIA_HIDDEN, true);
|
|
45894
|
+
}
|
|
45895
|
+
},
|
|
45896
|
+
value: function(value) {
|
|
45897
|
+
if (typeof value === "string") value = value === "true";
|
|
45898
|
+
else if (value === null) value = false;
|
|
45899
|
+
return this.check.apply(this, [value]);
|
|
45900
|
+
},
|
|
45901
|
+
destroy: function() {
|
|
45902
|
+
Widget.fn.destroy.call(this);
|
|
45903
|
+
this.wrapper.off(NS);
|
|
45904
|
+
},
|
|
45905
|
+
toggle: function() {
|
|
45906
|
+
var that = this;
|
|
45907
|
+
that.check(!that.element[0].checked);
|
|
45908
|
+
},
|
|
45909
|
+
enable: function(enable) {
|
|
45910
|
+
var element = this.element, wrapper = this.wrapper;
|
|
45911
|
+
if (typeof enable == "undefined") enable = true;
|
|
45912
|
+
this.options.enabled = enable;
|
|
45913
|
+
if (enable) {
|
|
45914
|
+
element.prop(DISABLED, false);
|
|
45915
|
+
wrapper.removeAttr(ARIA_DISABLED);
|
|
45916
|
+
} else {
|
|
45917
|
+
element.attr(DISABLED, DISABLED);
|
|
45918
|
+
wrapper.attr(ARIA_DISABLED, true);
|
|
45919
|
+
}
|
|
45920
|
+
wrapper.toggleClass(switchStyles.disabled, !enable);
|
|
45921
|
+
},
|
|
45922
|
+
readonly: function(readonly) {
|
|
45923
|
+
var that = this, element = that.element, wrapper = that.wrapper;
|
|
45924
|
+
if (typeof readonly == "undefined") readonly = true;
|
|
45925
|
+
that.options.readonly = readonly;
|
|
45926
|
+
if (readonly) {
|
|
45927
|
+
element.attr(READONLY, true);
|
|
45928
|
+
wrapper.attr(ARIA_READONLY, true);
|
|
45929
|
+
} else {
|
|
45930
|
+
element.prop(READONLY, false);
|
|
45931
|
+
wrapper.removeAttr(ARIA_READONLY);
|
|
45932
|
+
}
|
|
45933
|
+
wrapper.toggleClass(switchStyles.readonly, readonly);
|
|
45934
|
+
},
|
|
45935
|
+
_check: function() {
|
|
45936
|
+
var that = this, checked = that.element[0].checked = !that.element[0].checked;
|
|
45937
|
+
that.wrapper.trigger("focus");
|
|
45938
|
+
if (!that.options.enabled || that.options.readonly || that.trigger(CHANGE, { checked })) {
|
|
45939
|
+
that.element[0].checked = !checked;
|
|
45940
|
+
return;
|
|
45941
|
+
}
|
|
45942
|
+
that.check(checked);
|
|
45943
|
+
},
|
|
45944
|
+
_keydown: function(e) {
|
|
45945
|
+
if (e.keyCode === kendo.keys.SPACEBAR) {
|
|
45946
|
+
this._check();
|
|
45947
|
+
e.preventDefault();
|
|
45948
|
+
e.stopPropagation();
|
|
45949
|
+
}
|
|
45950
|
+
},
|
|
45951
|
+
_isTouch: function(event) {
|
|
45952
|
+
return /touch/.test(event.type) || event.originalEvent && /touch/.test(event.originalEvent.pointerType);
|
|
45953
|
+
},
|
|
45954
|
+
_click: function(e) {
|
|
45955
|
+
if (!this._isTouch(e) && e.which === 1) {
|
|
45956
|
+
if (e.target === this.element[0]) this.element[0].checked = !this.element[0].checked;
|
|
45957
|
+
this._check();
|
|
45958
|
+
}
|
|
45959
|
+
},
|
|
45960
|
+
_touchEnd: function(e) {
|
|
45961
|
+
if (this._isTouch(e)) {
|
|
45962
|
+
this._check();
|
|
45963
|
+
e.preventDefault();
|
|
45964
|
+
}
|
|
45965
|
+
}
|
|
45966
|
+
});
|
|
45967
|
+
kendo.cssProperties.registerPrefix("Switch", "k-switch-");
|
|
45968
|
+
kendo.cssProperties.registerValues("Switch", [{
|
|
45969
|
+
prop: "rounded",
|
|
45970
|
+
values: kendo.cssProperties.roundedValues.concat([["full", "full"]])
|
|
45971
|
+
}]);
|
|
45972
|
+
ui.plugin(Switch);
|
|
45973
|
+
})(window.kendo.jQuery);
|
|
45974
|
+
kendo;
|
|
45761
45975
|
(function($, undefined) {
|
|
45762
45976
|
var kendo = window.kendo, encode = kendo.htmlEncode, ui = kendo.ui, html = kendo.html, List = ui.List, Select = ui.Select, support = kendo.support, activeElement = kendo._activeElement, ObservableObject = kendo.data.ObservableObject, keys = kendo.keys, ns = ".kendoDropDownList", nsFocusEvent = ns + "FocusEvent", DISABLED = "disabled", READONLY = "readonly", CHANGE = "change", FOCUSED = "k-focus", STATEDISABLED = "k-disabled", ARIA_DISABLED = "aria-disabled", ARIA_READONLY = "aria-readonly", CLICKEVENTS = "click" + ns + " touchend" + ns, HOVEREVENTS = "mouseenter" + ns + " mouseleave" + ns, TABINDEX = "tabindex", STATE_FILTER = "filter", STATE_ACCEPT = "accept", MSG_INVALID_OPTION_LABEL = "The `optionLabel` option is not valid due to missing fields. Define a custom optionLabel as shown here http://docs.telerik.com/kendo-ui/api/javascript/ui/dropdownlist#configuration-optionLabel", OPEN = "open", CLOSE = "close";
|
|
45763
45977
|
var DropDownList = Select.extend({
|