cronapp-lib-js 2.8.4 → 2.8.7
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.
|
@@ -26,6 +26,8 @@
|
|
|
26
26
|
//FIX_025 - CRONAPP-2964 [Câmara] Número 00 não aparece na grade
|
|
27
27
|
//FIX_026 - CRONAPP-4565 Checkbox acionado ao clicar em botão customizado
|
|
28
28
|
//FIX_027 - CRONAPP-4621 Permitir validação reativa
|
|
29
|
+
//FIX_028 - CRONAPP-4939 Criar componente breadcumb (Adicionado componente breadcrumb)
|
|
30
|
+
//FIX_029 - CRONAPP-5473 Erro no componente Caixa de checagem
|
|
29
31
|
|
|
30
32
|
/**
|
|
31
33
|
* Kendo UI v2019.1.220 (http://www.telerik.com/kendo-ui)
|
|
@@ -24250,10 +24252,25 @@
|
|
|
24250
24252
|
inputParent.find('.k-tooltip').hide();
|
|
24251
24253
|
});
|
|
24252
24254
|
//END FIX_014
|
|
24255
|
+
|
|
24256
|
+
//BEGIN FIX_029
|
|
24257
|
+
//OLD
|
|
24258
|
+
/*
|
|
24253
24259
|
return {
|
|
24254
24260
|
valid: false,
|
|
24255
24261
|
key: rule
|
|
24256
24262
|
};
|
|
24263
|
+
*/
|
|
24264
|
+
//NEW
|
|
24265
|
+
let validResult = false;
|
|
24266
|
+
if (($(input[0]).attr('type')==='checkbox' && $(input[0]).closest('form').length)) {
|
|
24267
|
+
validResult = true;
|
|
24268
|
+
}
|
|
24269
|
+
return {
|
|
24270
|
+
valid: validResult,
|
|
24271
|
+
key: rule
|
|
24272
|
+
};
|
|
24273
|
+
//END FIX_029
|
|
24257
24274
|
}
|
|
24258
24275
|
}
|
|
24259
24276
|
return { valid: true };
|
|
@@ -28824,6 +28841,376 @@
|
|
|
28824
28841
|
}, typeof define == 'function' && define.amd ? define : function (a1, a2, a3) {
|
|
28825
28842
|
(a3 || a2)();
|
|
28826
28843
|
}));
|
|
28844
|
+
|
|
28845
|
+
//BEGIN FIX_028
|
|
28846
|
+
(function (f, define) {
|
|
28847
|
+
define('kendo.breadcrumb', ['kendo.core'], f);
|
|
28848
|
+
}(function () {
|
|
28849
|
+
var __meta__ = {
|
|
28850
|
+
id: 'breadcrumb',
|
|
28851
|
+
name: 'Breadcrumb',
|
|
28852
|
+
category: 'web',
|
|
28853
|
+
description: 'The Breadcrumb widget displays navigation breadcrumb.',
|
|
28854
|
+
depends: ['core']
|
|
28855
|
+
};
|
|
28856
|
+
(function ($, undefined) {
|
|
28857
|
+
var kendo = window.kendo, Widget = kendo.ui.Widget, extend = $.extend, isPlainObject = $.isPlainObject, proxy = $.proxy, BREADCRUMB = '.kendoBreadcrumb', ARIA_HIDDEN = 'aria-hidden', ARIA_LABEL = 'aria-label', CLICK = 'click', FOCUS = 'focus', BLUR = 'blur', KEYDOWN = 'keydown', CHANGE = 'change', DOT = '.';
|
|
28858
|
+
var breadcrumbStyles = {
|
|
28859
|
+
widget: 'k-widget k-breadcrumb',
|
|
28860
|
+
overlay: 'k-breadcrumb-container',
|
|
28861
|
+
textbox: 'k-textbox',
|
|
28862
|
+
link: 'k-breadcrumb-link',
|
|
28863
|
+
item: 'k-breadcrumb-item',
|
|
28864
|
+
delimiter: 'k-breadcrumb-delimiter-icon',
|
|
28865
|
+
rootItem: 'k-breadcrumb-root-item',
|
|
28866
|
+
rootLink: 'k-breadcrumb-root-link',
|
|
28867
|
+
overflowIcon: 'k-breadcrumb-overflow-icon',
|
|
28868
|
+
focused: 'k-state-focused',
|
|
28869
|
+
hidden: 'k-hidden',
|
|
28870
|
+
inputWrapper: 'k-breadcrumb-input-container'
|
|
28871
|
+
};
|
|
28872
|
+
var Breadcrumb = Widget.extend({
|
|
28873
|
+
init: function (element, options) {
|
|
28874
|
+
var that = this;
|
|
28875
|
+
options = options || {};
|
|
28876
|
+
Widget.fn.init.call(that, element, options);
|
|
28877
|
+
that._wrapper();
|
|
28878
|
+
if (options.editable) {
|
|
28879
|
+
that._editable();
|
|
28880
|
+
that._tabindex();
|
|
28881
|
+
}
|
|
28882
|
+
that.wrapper.on(CLICK + BREADCRUMB, 'a:not(.k-state-disabled)', proxy(that._click, that));
|
|
28883
|
+
if (options.value || options.bindToLocation || !options.items) {
|
|
28884
|
+
that._value();
|
|
28885
|
+
} else if (options.items) {
|
|
28886
|
+
that.items(options.items);
|
|
28887
|
+
}
|
|
28888
|
+
that._resizeHandler = kendo.onResize(function () {
|
|
28889
|
+
that.resize(true);
|
|
28890
|
+
});
|
|
28891
|
+
},
|
|
28892
|
+
options: {
|
|
28893
|
+
editable: false,
|
|
28894
|
+
navigational: false,
|
|
28895
|
+
bindToLocation: false,
|
|
28896
|
+
items: null,
|
|
28897
|
+
name: 'Breadcrumb',
|
|
28898
|
+
gap: 0,
|
|
28899
|
+
rootIcon: 'home',
|
|
28900
|
+
delimiterIcon: 'arrow-chevron-right',
|
|
28901
|
+
messages: { rootTitle: 'Go to root' }
|
|
28902
|
+
},
|
|
28903
|
+
events: [
|
|
28904
|
+
CHANGE,
|
|
28905
|
+
CLICK
|
|
28906
|
+
],
|
|
28907
|
+
destroy: function () {
|
|
28908
|
+
var that = this;
|
|
28909
|
+
Widget.fn.destroy.call(that);
|
|
28910
|
+
kendo.unbindResize(that._resizeHandler);
|
|
28911
|
+
that.wrapper.add(that.wrapper.find('input')).add(that.wrapper.find('a')).off(BREADCRUMB);
|
|
28912
|
+
},
|
|
28913
|
+
items: function (items) {
|
|
28914
|
+
var that = this;
|
|
28915
|
+
if (items === undefined) {
|
|
28916
|
+
return that.options.items;
|
|
28917
|
+
}
|
|
28918
|
+
that.options.items = items;
|
|
28919
|
+
that._segments = items;
|
|
28920
|
+
that.refresh();
|
|
28921
|
+
},
|
|
28922
|
+
_update: function (val) {
|
|
28923
|
+
var that = this;
|
|
28924
|
+
if (val !== that.value()) {
|
|
28925
|
+
that._generateSegments(val);
|
|
28926
|
+
that.refresh();
|
|
28927
|
+
that.trigger(CHANGE, {
|
|
28928
|
+
sender: this,
|
|
28929
|
+
value: val
|
|
28930
|
+
});
|
|
28931
|
+
}
|
|
28932
|
+
},
|
|
28933
|
+
_generateSegments: function (value) {
|
|
28934
|
+
var that = this, options = that.options, items = options.items, path, segments;
|
|
28935
|
+
segments = that._split(value);
|
|
28936
|
+
if (!items) {
|
|
28937
|
+
that.options.items = that._segments = segments;
|
|
28938
|
+
return;
|
|
28939
|
+
}
|
|
28940
|
+
that._segments = [];
|
|
28941
|
+
for (var i = 0; i < segments.length; i++) {
|
|
28942
|
+
path = that._path(items.slice(0, i + 1));
|
|
28943
|
+
if (path !== '' && value.indexOf(path) > -1 && items[i] && items[i].text === segments[i]) {
|
|
28944
|
+
that._segments.push(items[i]);
|
|
28945
|
+
} else {
|
|
28946
|
+
that._segments.push(segments[i]);
|
|
28947
|
+
}
|
|
28948
|
+
}
|
|
28949
|
+
},
|
|
28950
|
+
_click: function (e) {
|
|
28951
|
+
var that = this, options = that.options, item = $(e.target).closest(DOT + breadcrumbStyles.item), previousDomItems = item.prevAll().addBack(), previousItems = that._getItems(previousDomItems), path = that._path(previousItems), segment = that._segments[item.index()];
|
|
28952
|
+
if (!options.navigational) {
|
|
28953
|
+
e.preventDefault();
|
|
28954
|
+
}
|
|
28955
|
+
if (!that.trigger(CLICK, {
|
|
28956
|
+
sender: that,
|
|
28957
|
+
originalEvent: e,
|
|
28958
|
+
isRoot: segment.type === 'rootitem',
|
|
28959
|
+
item: segment
|
|
28960
|
+
})) {
|
|
28961
|
+
that._update(path);
|
|
28962
|
+
}
|
|
28963
|
+
},
|
|
28964
|
+
_getItems: function (items) {
|
|
28965
|
+
var that = this;
|
|
28966
|
+
return $.map(items, function (item) {
|
|
28967
|
+
return that._segments[$(item).index()] || item.innerText;
|
|
28968
|
+
});
|
|
28969
|
+
},
|
|
28970
|
+
_edit: function () {
|
|
28971
|
+
var that = this, input = that.input;
|
|
28972
|
+
that.oldValue = that.value();
|
|
28973
|
+
that.inputWrapper.css('height', that.wrapper.height());
|
|
28974
|
+
that.overlay.hide();
|
|
28975
|
+
that.input.val(that.value());
|
|
28976
|
+
that.input.attr(ARIA_HIDDEN, false);
|
|
28977
|
+
that.inputWrapper.show();
|
|
28978
|
+
setTimeout(function () {
|
|
28979
|
+
input.select();
|
|
28980
|
+
});
|
|
28981
|
+
},
|
|
28982
|
+
_blur: function (shouldRestoreValue) {
|
|
28983
|
+
var that = this, input = that.input, inputWrapper = that.inputWrapper, wrapper = that.wrapper, overlay = that.overlay, val = input.val().replace(/\/{2,}/g, '/');
|
|
28984
|
+
if (overlay.is(':visible')) {
|
|
28985
|
+
return;
|
|
28986
|
+
}
|
|
28987
|
+
if (shouldRestoreValue) {
|
|
28988
|
+
val = that.oldValue;
|
|
28989
|
+
}
|
|
28990
|
+
input.attr(ARIA_HIDDEN, true);
|
|
28991
|
+
inputWrapper.hide();
|
|
28992
|
+
overlay.show();
|
|
28993
|
+
input.val('');
|
|
28994
|
+
that._update(val);
|
|
28995
|
+
wrapper.removeClass(breadcrumbStyles.focused);
|
|
28996
|
+
},
|
|
28997
|
+
_keydown: function (e) {
|
|
28998
|
+
var that = this, key = e.keyCode, isEnter = key === kendo.keys.ENTER, isEsc = key === kendo.keys.ESC;
|
|
28999
|
+
if (isEnter || isEsc) {
|
|
29000
|
+
that._blur(isEsc);
|
|
29001
|
+
setTimeout(function () {
|
|
29002
|
+
that.overlay.find('a').first().trigger('focus');
|
|
29003
|
+
});
|
|
29004
|
+
}
|
|
29005
|
+
},
|
|
29006
|
+
isNavigational: function (target) {
|
|
29007
|
+
var canNavigate = target.hasClass(breadcrumbStyles.textbox) || target.closest(DOT + breadcrumbStyles.item);
|
|
29008
|
+
if (target[0] === this.wrapper[0]) {
|
|
29009
|
+
return false;
|
|
29010
|
+
}
|
|
29011
|
+
return canNavigate && !target.hasClass('k-breadcrumb-last-item');
|
|
29012
|
+
},
|
|
29013
|
+
_wrapperKeydown: function (ev) {
|
|
29014
|
+
var that = this, target = $(ev.target), isNavigational = that.isNavigational(target);
|
|
29015
|
+
if (ev.keyCode === kendo.keys.ENTER && !isNavigational) {
|
|
29016
|
+
that._edit();
|
|
29017
|
+
}
|
|
29018
|
+
},
|
|
29019
|
+
_wrapperClick: function (ev) {
|
|
29020
|
+
var that = this, target = $(ev.target), isNavigational = that.isNavigational(target);
|
|
29021
|
+
if (!isNavigational) {
|
|
29022
|
+
this._edit();
|
|
29023
|
+
}
|
|
29024
|
+
},
|
|
29025
|
+
_wrapperFocus: function (ev) {
|
|
29026
|
+
$(ev.target).addClass(breadcrumbStyles.focused);
|
|
29027
|
+
},
|
|
29028
|
+
_wrapperBlur: function (ev) {
|
|
29029
|
+
$(ev.target).removeClass(breadcrumbStyles.focused);
|
|
29030
|
+
},
|
|
29031
|
+
_wrapper: function () {
|
|
29032
|
+
var that = this, element = this.element, elementIsInput = element.is('input');
|
|
29033
|
+
that.wrapper = elementIsInput ? element.wrap($('<nav />')).parent() : element;
|
|
29034
|
+
if (elementIsInput) {
|
|
29035
|
+
that.element.wrap($('<div />').addClass(breadcrumbStyles.inputWrapper)).addClass(breadcrumbStyles.textbox).parent().hide();
|
|
29036
|
+
that.inputWrapper = that.wrapper.find(DOT + breadcrumbStyles.inputWrapper);
|
|
29037
|
+
} else {
|
|
29038
|
+
that.inputWrapper = that.wrapper.append($('<div />').addClass(breadcrumbStyles.inputWrapper)).find(DOT + breadcrumbStyles.inputWrapper).hide();
|
|
29039
|
+
}
|
|
29040
|
+
that.wrapper.addClass(breadcrumbStyles.widget);
|
|
29041
|
+
that.wrapper.attr(ARIA_LABEL, 'Breadcrumb');
|
|
29042
|
+
that.overlay = that.wrapper.append($('<ol />').addClass(breadcrumbStyles.overlay)).find(DOT + breadcrumbStyles.overlay);
|
|
29043
|
+
},
|
|
29044
|
+
_editable: function () {
|
|
29045
|
+
var that = this, element = that.element, elementIsInput = element.is('input');
|
|
29046
|
+
if (elementIsInput) {
|
|
29047
|
+
that.input = that.element;
|
|
29048
|
+
} else {
|
|
29049
|
+
that.input = $('<input />');
|
|
29050
|
+
}
|
|
29051
|
+
that.inputWrapper.append(that.input);
|
|
29052
|
+
that.input.addClass(breadcrumbStyles.textbox).attr(ARIA_HIDDEN, true);
|
|
29053
|
+
that.input.on(BLUR + BREADCRUMB, proxy(that._blur, that, false)).on(KEYDOWN + BREADCRUMB, proxy(that._keydown, that));
|
|
29054
|
+
that.wrapper.on(FOCUS + BREADCRUMB, proxy(that._wrapperFocus, that)).on(BLUR + BREADCRUMB, proxy(that._wrapperBlur, that)).on(KEYDOWN + BREADCRUMB, proxy(that._wrapperKeydown, that)).on(CLICK + BREADCRUMB, proxy(that._wrapperClick, that));
|
|
29055
|
+
},
|
|
29056
|
+
_value: function () {
|
|
29057
|
+
var that = this, options = that.options;
|
|
29058
|
+
if (options.value) {
|
|
29059
|
+
that.value(options.value);
|
|
29060
|
+
} else if (options.bindToLocation) {
|
|
29061
|
+
that.value(window.location.href.replace(/http(s?):\/\//, '').replace(/\/$/, ''));
|
|
29062
|
+
} else {
|
|
29063
|
+
that.value('');
|
|
29064
|
+
}
|
|
29065
|
+
},
|
|
29066
|
+
_split: function (value) {
|
|
29067
|
+
return value.split('/').filter(function (item, index) {
|
|
29068
|
+
if (index > 0 && item === '') {
|
|
29069
|
+
return false;
|
|
29070
|
+
}
|
|
29071
|
+
return true;
|
|
29072
|
+
});
|
|
29073
|
+
},
|
|
29074
|
+
isRtl: function () {
|
|
29075
|
+
return kendo.support.isRtl(this.wrapper);
|
|
29076
|
+
},
|
|
29077
|
+
refresh: function () {
|
|
29078
|
+
var that = this, options = that.options, messages = options.messages, delimiterIcon = that.options.delimiterIcon, html = '', href = '', isOnlyRoot = that.value() === '', segments = that._segments, segment, idx, length, isLastSegment;
|
|
29079
|
+
if (delimiterIcon == 'arrow-chevron-right' && that.isRtl()) {
|
|
29080
|
+
delimiterIcon = 'arrow-chevron-left';
|
|
29081
|
+
}
|
|
29082
|
+
for (idx = 0, length = segments.length; idx < length; idx++) {
|
|
29083
|
+
segment = segments[idx];
|
|
29084
|
+
isLastSegment = idx === segments.length - 1;
|
|
29085
|
+
if (segment !== undefined) {
|
|
29086
|
+
if (!html) {
|
|
29087
|
+
href = '/';
|
|
29088
|
+
} else {
|
|
29089
|
+
href += segment.text || segment || '';
|
|
29090
|
+
}
|
|
29091
|
+
if (typeof segment === 'string') {
|
|
29092
|
+
segment = {
|
|
29093
|
+
type: !html ? 'rootitem' : 'item',
|
|
29094
|
+
href: options.navigational ? href : '#',
|
|
29095
|
+
text: segment,
|
|
29096
|
+
showIcon: !html,
|
|
29097
|
+
showText: !!html,
|
|
29098
|
+
icon: !html ? options.rootIcon : '',
|
|
29099
|
+
itemClass: !html ? 'k-breadcrumb-root-item' : '',
|
|
29100
|
+
linkClass: !html ? breadcrumbStyles.rootLink : '',
|
|
29101
|
+
delimiterIcon: delimiterIcon,
|
|
29102
|
+
renderDelimiter: !isLastSegment && !isOnlyRoot,
|
|
29103
|
+
lastSegment: isLastSegment,
|
|
29104
|
+
iconClass: ''
|
|
29105
|
+
};
|
|
29106
|
+
that._segments.splice(idx, 1, segment);
|
|
29107
|
+
} else if (isPlainObject(segment)) {
|
|
29108
|
+
segment = extend({}, segment, { type: segment.type ? segment.type.toLowerCase() : 'item' });
|
|
29109
|
+
segment = extend({}, segment, {
|
|
29110
|
+
text: segment.text || '',
|
|
29111
|
+
title: segment.text || '',
|
|
29112
|
+
icon: segment.icon || (segment.type === 'rootitem' ? options.rootIcon : ''),
|
|
29113
|
+
iconClass: segment.iconClass || '',
|
|
29114
|
+
lastSegment: isLastSegment,
|
|
29115
|
+
renderDelimiter: !isLastSegment && segments.length > 1,
|
|
29116
|
+
href: options.navigational ? segment.href : '#',
|
|
29117
|
+
delimiterIcon: delimiterIcon,
|
|
29118
|
+
itemClass: segment.itemClass || '',
|
|
29119
|
+
linkClass: segment.linkClass || '',
|
|
29120
|
+
showIcon: segment.showIcon === undefined ? segment.type === 'rootitem' && segment.type !== 'item' : segment.showIcon,
|
|
29121
|
+
showText: segment.showText === undefined ? segment.type === 'item' && segment.type !== 'rootitem' : segment.showText
|
|
29122
|
+
});
|
|
29123
|
+
if (segment.type === 'rootitem') {
|
|
29124
|
+
segment.itemClass += ' k-breadcrumb-root-item';
|
|
29125
|
+
segment.linkClass += ' ' + breadcrumbStyles.rootLink;
|
|
29126
|
+
}
|
|
29127
|
+
}
|
|
29128
|
+
if (segment.type === 'rootitem' && segment.text === '') {
|
|
29129
|
+
segment.title = messages.rootTitle;
|
|
29130
|
+
}
|
|
29131
|
+
href += href.match(/\/$/) ? '' : '/';
|
|
29132
|
+
html += kendo.template(this.itemTemplate)(segment);
|
|
29133
|
+
}
|
|
29134
|
+
}
|
|
29135
|
+
this.overlay.empty().append($(html));
|
|
29136
|
+
this.resize(true);
|
|
29137
|
+
},
|
|
29138
|
+
itemTemplate: '<li class="k-breadcrumb-item #:itemClass# #if(lastSegment){#k-breadcrumb-last-item#}#">' + '<a href="#:href#" class="#:linkClass# ' + '#if(type !== "rootitem"){# k-breadcrumb-link#}#' + '#if(showText && showIcon){# k-breadcrumb-icontext-link#}#' + '#if(showIcon && !showText){# k-breadcrumb-icon-link#}#' + '#if(lastSegment && type !== "rootitem"){# k-state-disabled#}#"' + '#if(lastSegment){# aria-current="page"#}# title="#:text || title#">' + '#if(showIcon) {#' + '<span class="#if(icon){#k-icon k-i-#:icon##}# #:iconClass#"></span>' + '#}#' + '#if(showText) {#' + '#:text#' + '#}#' + '</a>' + '#if(renderDelimiter) {#' + '<span class="k-breadcrumb-delimiter-icon k-icon k-i-#:delimiterIcon#" aria-hidden="true"></span>' + '#}#' + '#if(type === "rootitem" && renderDelimiter) {#' + '<span class="k-breadcrumb-delimiter-icon k-hidden k-icon k-i-#:delimiterIcon#" aria-hidden="true"></span>' + '#}#' + '</li>',
|
|
29139
|
+
_displayOverflowIcons: function (visible) {
|
|
29140
|
+
var that = this, rootItem = that.wrapper.find(DOT + breadcrumbStyles.rootItem);
|
|
29141
|
+
if (visible) {
|
|
29142
|
+
rootItem.find(DOT + breadcrumbStyles.delimiter).addClass(breadcrumbStyles.overflowIcon).removeClass(breadcrumbStyles.hidden);
|
|
29143
|
+
} else {
|
|
29144
|
+
rootItem.find(DOT + breadcrumbStyles.overflowIcon).removeClass(breadcrumbStyles.overflowIcon).last().addClass(breadcrumbStyles.hidden);
|
|
29145
|
+
}
|
|
29146
|
+
},
|
|
29147
|
+
_shrinkItems: function () {
|
|
29148
|
+
var that = this, wrapper = that.wrapper, overlay = that.overlay, items = that.overlay.find(DOT + breadcrumbStyles.item + ':visible:not(.k-breadcrumb-root-item)'), availableWidth = wrapper.width() - that.options.gap, item;
|
|
29149
|
+
if (items.length == 1) {
|
|
29150
|
+
return;
|
|
29151
|
+
}
|
|
29152
|
+
for (var i = 0; i < items.length; i += 1) {
|
|
29153
|
+
item = $(items[i]);
|
|
29154
|
+
if (kendo._outerWidth(overlay) >= availableWidth) {
|
|
29155
|
+
if (i == items.length - 1) {
|
|
29156
|
+
break;
|
|
29157
|
+
}
|
|
29158
|
+
item.hide();
|
|
29159
|
+
that._displayOverflowIcons(true);
|
|
29160
|
+
}
|
|
29161
|
+
}
|
|
29162
|
+
},
|
|
29163
|
+
_showItem: function (item, overlayWidth, availableWidth) {
|
|
29164
|
+
if (item.length && availableWidth > overlayWidth + kendo._outerWidth(item, true)) {
|
|
29165
|
+
item.show();
|
|
29166
|
+
return true;
|
|
29167
|
+
}
|
|
29168
|
+
return false;
|
|
29169
|
+
},
|
|
29170
|
+
_stretchItems: function () {
|
|
29171
|
+
var that = this, wrapper = that.wrapper, overlay = that.overlay, items = that.overlay.find(DOT + breadcrumbStyles.item + ':hidden:not(.k-breadcrumb-root-item)'), availableWidth = wrapper.width() - that.options.gap, item, overlayWidth;
|
|
29172
|
+
if (!items.length) {
|
|
29173
|
+
that._displayOverflowIcons(false);
|
|
29174
|
+
}
|
|
29175
|
+
for (var i = items.length - 1; i >= 0; i--) {
|
|
29176
|
+
item = $(items[i]);
|
|
29177
|
+
overlayWidth = kendo._outerWidth(overlay);
|
|
29178
|
+
if (overlayWidth > availableWidth || !this._showItem(item, overlayWidth, availableWidth)) {
|
|
29179
|
+
break;
|
|
29180
|
+
}
|
|
29181
|
+
}
|
|
29182
|
+
},
|
|
29183
|
+
_resize: function () {
|
|
29184
|
+
this._shrinkItems();
|
|
29185
|
+
this._stretchItems();
|
|
29186
|
+
},
|
|
29187
|
+
getSize: function () {
|
|
29188
|
+
return kendo.dimensions(this.wrapper);
|
|
29189
|
+
},
|
|
29190
|
+
value: function (val) {
|
|
29191
|
+
var that = this;
|
|
29192
|
+
if (val !== undefined) {
|
|
29193
|
+
that._generateSegments(val);
|
|
29194
|
+
that.refresh();
|
|
29195
|
+
return;
|
|
29196
|
+
}
|
|
29197
|
+
return that._path(that._segments);
|
|
29198
|
+
},
|
|
29199
|
+
_path: function (trail) {
|
|
29200
|
+
return $.map(trail, function (b) {
|
|
29201
|
+
var text = isPlainObject(b) ? b.text : b;
|
|
29202
|
+
return text === '/' ? '' : text;
|
|
29203
|
+
}).join('/');
|
|
29204
|
+
}
|
|
29205
|
+
});
|
|
29206
|
+
kendo.ui.plugin(Breadcrumb);
|
|
29207
|
+
}(window.kendo.jQuery));
|
|
29208
|
+
return window.kendo;
|
|
29209
|
+
}, typeof define == 'function' && define.amd ? define : function (a1, a2, a3) {
|
|
29210
|
+
(a3 || a2)();
|
|
29211
|
+
}));
|
|
29212
|
+
//END FIX_028
|
|
29213
|
+
|
|
28827
29214
|
(function (f, define) {
|
|
28828
29215
|
define('kendo.switch', ['kendo.core'], f);
|
|
28829
29216
|
}(function () {
|