cronapp-framework-js 3.0.0-SP.33 → 3.0.0-SP.35
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/components/crn-dynamic-file.components.json +4 -1
- package/components/crn-navbar.components.json +25 -0
- package/components/templates/cron-grid.designtime.html +2 -2
- package/components/templates/dynamicfile.designtime.html +5 -0
- package/css/themes/custom/lumen/button-lumen.css +16 -16
- package/css/themes/custom/lumen/custom-lumen.css +237 -30
- package/css/themes/custom/lumen/navbar-lumen.css +5 -6
- package/css/themes/custom/lumen/panel-lumen.css +11 -11
- package/css/themes/custom/paper/custom-paper.css +283 -27
- package/css/themes/custom/readable/button-readable.css +61 -1
- package/css/themes/custom/readable/custom-readable.css +241 -26
- package/css/themes/custom/readable/navbar-readable.css +1 -2
- package/css/themes/custom/readable/panel-readable.css +6 -8
- package/css/themes/custom/sandstone/button-sandstone.css +12 -0
- package/css/themes/custom/superhero/button-superhero.css +1 -1
- package/css/themes/custom/superhero/custom-superhero.css +347 -45
- package/css/themes/custom/superhero/navbar-superhero.css +5 -1
- package/css/themes/custom/superhero/panel-superhero.css +4 -5
- package/css/themes/custom/superhero/tabs-superhero.css +1 -1
- package/css/themes/custom/theme-general/menu.css +0 -4
- package/css/themes/custom/theme-general/table-grid.css +3 -2
- package/dist/components/templates/cron-grid.designtime.html +1 -1
- package/dist/components/templates/dynamicfile.designtime.html +1 -0
- package/dist/css/themes/custom/lumen/button-lumen.css +1 -1
- package/dist/css/themes/custom/lumen/custom-lumen.css +1 -1
- package/dist/css/themes/custom/lumen/navbar-lumen.css +1 -1
- package/dist/css/themes/custom/lumen/panel-lumen.css +1 -1
- package/dist/css/themes/custom/paper/custom-paper.css +1 -1
- package/dist/css/themes/custom/readable/button-readable.css +1 -1
- package/dist/css/themes/custom/readable/custom-readable.css +1 -1
- package/dist/css/themes/custom/readable/navbar-readable.css +1 -1
- package/dist/css/themes/custom/readable/panel-readable.css +1 -1
- package/dist/css/themes/custom/sandstone/button-sandstone.css +1 -1
- package/dist/css/themes/custom/superhero/button-superhero.css +1 -1
- package/dist/css/themes/custom/superhero/custom-superhero.css +1 -1
- package/dist/css/themes/custom/superhero/navbar-superhero.css +1 -1
- package/dist/css/themes/custom/superhero/panel-superhero.css +1 -1
- package/dist/css/themes/custom/superhero/tabs-superhero.css +1 -1
- package/dist/css/themes/custom/theme-general/menu.css +1 -1
- package/dist/css/themes/custom/theme-general/table-grid.css +1 -1
- package/dist/js/directives.js +9 -9
- package/js/directives.js +87 -4
- package/package.json +1 -1
package/js/directives.js
CHANGED
|
@@ -2818,7 +2818,7 @@
|
|
|
2818
2818
|
className = 'k-custom-command' + (label ? ' k-button-with-label' : '');
|
|
2819
2819
|
}
|
|
2820
2820
|
if (column.theme)
|
|
2821
|
-
className += ' ' + column.theme;
|
|
2821
|
+
className += ' btn ' + column.theme;
|
|
2822
2822
|
|
|
2823
2823
|
var tooltip = '';
|
|
2824
2824
|
if (column.tooltip && column.tooltip.length)
|
|
@@ -2830,9 +2830,14 @@
|
|
|
2830
2830
|
className += ' ' + classForTooltip;
|
|
2831
2831
|
}
|
|
2832
2832
|
|
|
2833
|
+
let width = column.width;
|
|
2834
|
+
if (width) {
|
|
2835
|
+
width += 'px';
|
|
2836
|
+
}
|
|
2837
|
+
|
|
2833
2838
|
let idForCommand = app.common.generateId();
|
|
2834
2839
|
let ariaLabel = tooltip || label || idForCommand;
|
|
2835
|
-
let template = `<a href class='k-button ${className} k-grid-${idForCommand}' aria-label='${ariaLabel}'><span class='${column.iconClass}'></span>${label}</a>`;
|
|
2840
|
+
let template = `<a href class='k-button ${className} k-grid-${idForCommand}' aria-label='${ariaLabel}' style='width:${width}'><span class='${column.iconClass}'></span>${label}</a>`;
|
|
2836
2841
|
|
|
2837
2842
|
var addColumn = {
|
|
2838
2843
|
command: [{
|
|
@@ -2863,7 +2868,7 @@
|
|
|
2863
2868
|
|
|
2864
2869
|
let className = 'k-custom-command' + (label ? ' k-button-with-label' : '');
|
|
2865
2870
|
if (buttonColumn.theme)
|
|
2866
|
-
className += ' ' + buttonColumn.theme;
|
|
2871
|
+
className += ' btn ' + buttonColumn.theme;
|
|
2867
2872
|
|
|
2868
2873
|
let tooltip = '';
|
|
2869
2874
|
if (buttonColumn.tooltip && buttonColumn.tooltip.length)
|
|
@@ -2875,9 +2880,14 @@
|
|
|
2875
2880
|
className += ' ' + classForTooltip;
|
|
2876
2881
|
}
|
|
2877
2882
|
|
|
2883
|
+
let width = buttonColumn.width;
|
|
2884
|
+
if (width) {
|
|
2885
|
+
width += 'px';
|
|
2886
|
+
}
|
|
2887
|
+
|
|
2878
2888
|
let idForCommand = app.common.generateId();
|
|
2879
2889
|
let ariaLabel = tooltip || label || idForCommand;
|
|
2880
|
-
let template = `<a href class='k-button ${className} k-grid-${idForCommand}' aria-label='${ariaLabel}'><span class='${buttonColumn.iconClass}'></span>${label}</a>`;
|
|
2890
|
+
let template = `<a href class='k-button ${className} k-grid-${idForCommand}' aria-label='${ariaLabel}' style='width:${width}'><span class='${buttonColumn.iconClass}'></span>${label}</a>`;
|
|
2881
2891
|
|
|
2882
2892
|
let command = {
|
|
2883
2893
|
name: idForCommand,
|
|
@@ -5399,6 +5409,79 @@
|
|
|
5399
5409
|
mainView.classList.add("main-view-retratil");
|
|
5400
5410
|
}
|
|
5401
5411
|
});
|
|
5412
|
+
|
|
5413
|
+
let baseNav = element.closest('nav');
|
|
5414
|
+
if (baseNav && baseNav.length) {
|
|
5415
|
+
|
|
5416
|
+
let subMenuOnHover = !baseNav.hasClass('submenu-click');
|
|
5417
|
+
let baseNavId = baseNav.attr('id');
|
|
5418
|
+
|
|
5419
|
+
if (!baseNavId) {
|
|
5420
|
+
baseNavId = app.common.generateId();
|
|
5421
|
+
baseNav.attr('id', baseNavId);
|
|
5422
|
+
}
|
|
5423
|
+
|
|
5424
|
+
if (subMenuOnHover) {
|
|
5425
|
+
let alreadyHooked = $(`#${baseNavId} .dropdown-submenu`).data('hooked');
|
|
5426
|
+
if (!alreadyHooked) {
|
|
5427
|
+
$(`#${baseNavId} .dropdown-submenu`).on('mouseenter', function (e) {
|
|
5428
|
+
$(this).children('.dropdown-menu').addClass('show');
|
|
5429
|
+
}).on('mouseleave', function (e) {
|
|
5430
|
+
$(this).children('.dropdown-menu').removeClass('show');
|
|
5431
|
+
});
|
|
5432
|
+
$(`#${baseNavId} .dropdown-submenu`).data('hooked', true);
|
|
5433
|
+
}
|
|
5434
|
+
|
|
5435
|
+
}
|
|
5436
|
+
else {
|
|
5437
|
+
let alreayHooked = $(`#${baseNavId} .dropdown-menu a.dropdown-toggle`).data('hooked');
|
|
5438
|
+
if (!alreayHooked) {
|
|
5439
|
+
$(`#${baseNavId} .dropdown-menu a.dropdown-toggle`).on('click', function(e) {
|
|
5440
|
+
if (!$(this).next().hasClass('show')) {
|
|
5441
|
+
$(this).parents('.dropdown-menu').first().find('.show').removeClass('show');
|
|
5442
|
+
}
|
|
5443
|
+
var $subMenu = $(this).next('.dropdown-menu');
|
|
5444
|
+
$subMenu.toggleClass('show');
|
|
5445
|
+
|
|
5446
|
+
$(this).parents('li.nav-item.dropdown.show').on('hidden.bs.dropdown', function(e) {
|
|
5447
|
+
$('.dropdown-submenu .show').removeClass('show');
|
|
5448
|
+
});
|
|
5449
|
+
|
|
5450
|
+
if ($subMenu.length) {
|
|
5451
|
+
return false;
|
|
5452
|
+
}
|
|
5453
|
+
else {
|
|
5454
|
+
$('.dropdown-menu').removeClass('show');
|
|
5455
|
+
}
|
|
5456
|
+
});
|
|
5457
|
+
$(`#${baseNavId} .dropdown-menu a.dropdown-toggle`).data('hooked', true);
|
|
5458
|
+
}
|
|
5459
|
+
|
|
5460
|
+
let alreadyHookedBs = $(`#${baseNavId} .dropdown.nav-item`).data('hooked');
|
|
5461
|
+
if (!alreadyHookedBs) {
|
|
5462
|
+
$(`#${baseNavId} .dropdown.nav-item`).on('hidden.bs.dropdown', function (e) {
|
|
5463
|
+
$('.dropdown-submenu .show').removeClass("show");
|
|
5464
|
+
$('.dropdown-menu .show').removeClass('show');
|
|
5465
|
+
});
|
|
5466
|
+
$(`#${baseNavId} .dropdown.nav-item`).data('hooked', true);
|
|
5467
|
+
}
|
|
5468
|
+
|
|
5469
|
+
}
|
|
5470
|
+
|
|
5471
|
+
}
|
|
5472
|
+
else {
|
|
5473
|
+
let menuWihtoutNavBar_id = $(element).find('ul:first').attr('id')
|
|
5474
|
+
let alreadyHooked = $(`#${menuWihtoutNavBar_id} .dropdown-submenu`).data('hooked');
|
|
5475
|
+
if (!alreadyHooked) {
|
|
5476
|
+
$(`#${menuWihtoutNavBar_id} .dropdown-submenu`).on('mouseenter', function (e) {
|
|
5477
|
+
$(this).children('.dropdown-menu').addClass('show');
|
|
5478
|
+
}).on('mouseleave', function (e) {
|
|
5479
|
+
$(this).children('.dropdown-menu').removeClass('show');
|
|
5480
|
+
});
|
|
5481
|
+
$(`#${menuWihtoutNavBar_id} .dropdown-submenu`).data('hooked', true);
|
|
5482
|
+
}
|
|
5483
|
+
}
|
|
5484
|
+
|
|
5402
5485
|
});
|
|
5403
5486
|
});
|
|
5404
5487
|
}
|