cronapp-framework-js 2.8.32 → 2.8.33
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-carousel.components.json +1 -1
- package/components/crn-eight-four-container.components.json +2 -2
- package/components/crn-enterprise-autocomplete.components.json +8 -0
- package/components/crn-enterprise-combobox-multiple.components.json +7 -0
- package/components/crn-enterprise-combobox.components.json +7 -0
- package/components/crn-enterprise-dynamic-autocomplete.components.json +35 -27
- package/components/crn-enterprise-dynamic-combobox.components.json +7 -0
- package/components/crn-four-eight-container.components.json +2 -2
- package/components/crn-one-container.components.json +2 -2
- package/components/crn-ordered-list.components.json +1 -0
- package/components/crn-ordered-sub-list.components.json +1 -0
- package/components/crn-radioOption.components.json +8 -0
- package/components/crn-textarea.components.json +8 -0
- package/components/crn-textinput.components.json +8 -0
- package/components/crn-textinputbutton.components.json +8 -0
- package/components/crn-textinputicon.components.json +8 -0
- package/components/crn-three-container.components.json +2 -2
- package/components/crn-trhee-six-three-container.components.json +2 -2
- package/components/crn-two-container.components.json +2 -2
- package/components/crn-unordered-list.components.json +1 -0
- package/components/crn-unordered-sub-list.components.json +1 -0
- package/components/cron-breadcrumbs.components.json +64 -0
- package/components/cron-ordered-list.components.json +152 -0
- package/components/templates/carousel.template.html +3 -3
- package/components/templates/cron-breadcrumbs.designtime.html +11 -0
- package/components/templates/cron-breadcrumbs.template.html +5 -0
- package/components/templates/cron-ordered-list.template.html +7 -0
- package/components/templates/tabs.template.html +4 -4
- package/css/app.css +7 -0
- package/dist/components/css/font-size.css +1 -0
- package/dist/components/css/image.css +1 -0
- package/dist/components/js/jquery.inputmask.bundle.js +1 -1
- package/dist/components/js/jquery.mask.min.js +1 -1
- package/dist/components/js/qrcode.js +1 -1
- package/dist/components/templates/carousel.template.html +1 -1
- package/dist/components/templates/cron-breadcrumbs.designtime.html +1 -0
- package/dist/components/templates/cron-breadcrumbs.template.html +1 -0
- package/dist/components/templates/cron-ordered-list.template.html +1 -0
- package/dist/components/templates/evaluation.template.html +1 -0
- package/dist/components/templates/tabs.template.html +1 -1
- package/dist/components/templates/text.template.html +1 -0
- package/dist/components/templates/textinputbutton.html +1 -0
- package/dist/css/app.css +1 -1
- package/dist/img/cron-icon/cron-breadrumb.svg +1 -0
- package/dist/js/LanguageSelectDirective.js +1 -1
- package/dist/js/LocaleService.js +1 -1
- package/dist/js/app.authentication.js +1 -0
- package/dist/js/app.js +1 -1
- package/dist/js/controllers.authentication.js +1 -0
- package/dist/js/directives.js +1 -1
- package/dist/js/reports/parameters.controller.js +1 -1
- package/img/cron-icon/cron-breadrumb.svg +638 -0
- package/js/app.js +12 -13
- package/js/directives.js +198 -5
- package/package.json +1 -1
package/js/app.js
CHANGED
|
@@ -233,18 +233,6 @@ var app = (function() {
|
|
|
233
233
|
}
|
|
234
234
|
}
|
|
235
235
|
|
|
236
|
-
//Components personalization jquery
|
|
237
|
-
$scope.registerComponentScripts = function() {
|
|
238
|
-
//carousel slider
|
|
239
|
-
$('.carousel-indicators li').on('click', function() {
|
|
240
|
-
var currentCarousel = '#' + $(this).parent().parent().parent().attr('id');
|
|
241
|
-
var index = $(currentCarousel + ' .carousel-indicators li').index(this);
|
|
242
|
-
$(currentCarousel + ' #carousel-example-generic').carousel(index);
|
|
243
|
-
});
|
|
244
|
-
};
|
|
245
|
-
|
|
246
|
-
$scope.registerComponentScripts();
|
|
247
|
-
|
|
248
236
|
try {
|
|
249
237
|
var contextAfterPageController = $controller('AfterPageController', { $scope: $scope });
|
|
250
238
|
app.copyContext(contextAfterPageController, this, 'AfterPageController');
|
|
@@ -333,6 +321,7 @@ var app = (function() {
|
|
|
333
321
|
}
|
|
334
322
|
|
|
335
323
|
$rootScope.renderFinished = true;
|
|
324
|
+
registerComponentScripts();
|
|
336
325
|
});
|
|
337
326
|
};
|
|
338
327
|
|
|
@@ -536,4 +525,14 @@ const keyCodeFormActions = {
|
|
|
536
525
|
handle: (e) => !keyCodeFormActions[e.keyCode || e.which] || keyCodeFormActions[e.keyCode || e.which](e),
|
|
537
526
|
13: (e) => e.preventDefault()
|
|
538
527
|
};
|
|
539
|
-
keyCodeFormActions.initialize();
|
|
528
|
+
keyCodeFormActions.initialize();
|
|
529
|
+
|
|
530
|
+
//Components personalization jquery
|
|
531
|
+
var registerComponentScripts = function() {
|
|
532
|
+
//carousel slider
|
|
533
|
+
$('.carousel-indicators li').on('click', function() {
|
|
534
|
+
var currentCarousel = '#' + $(this).parent().parent().parent().attr('id');
|
|
535
|
+
var index = $(currentCarousel + ' .carousel-indicators li').index(this);
|
|
536
|
+
$(currentCarousel + ' > div').carousel(index);
|
|
537
|
+
});
|
|
538
|
+
};
|
package/js/directives.js
CHANGED
|
@@ -3373,7 +3373,7 @@
|
|
|
3373
3373
|
var parent = element.parent();
|
|
3374
3374
|
$(parent).append('<input style="width: 100%;" '+ id + name + ' class="cronSelect"/>');
|
|
3375
3375
|
var $element = $(parent).find('input.cronSelect');
|
|
3376
|
-
|
|
3376
|
+
var cronDisabled = attrs.cronDisabled;
|
|
3377
3377
|
var options = await app.kendoHelper.getConfigCombobox(select, scope);
|
|
3378
3378
|
options.close = attrs.ngClose ? function (){scope.$eval(attrs.ngClose)}: undefined;
|
|
3379
3379
|
options.dataBound = attrs.ngDataBound ? function (){scope.$eval(attrs.ngDataBound)}: undefined;
|
|
@@ -3423,7 +3423,11 @@
|
|
|
3423
3423
|
}
|
|
3424
3424
|
};
|
|
3425
3425
|
initializeAttrAndEvents();
|
|
3426
|
-
|
|
3426
|
+
if (cronDisabled) {
|
|
3427
|
+
combobox.enable(false);
|
|
3428
|
+
} else {
|
|
3429
|
+
combobox.enable(true);
|
|
3430
|
+
}
|
|
3427
3431
|
|
|
3428
3432
|
var _scope = scope;
|
|
3429
3433
|
var _ngModelCtrl = ngModelCtrl;
|
|
@@ -3524,6 +3528,7 @@
|
|
|
3524
3528
|
var self = this;
|
|
3525
3529
|
var parentDS = {};
|
|
3526
3530
|
var textField = null;
|
|
3531
|
+
var cronDisabled = attrs.cronDisabled;
|
|
3527
3532
|
try {
|
|
3528
3533
|
select = JSON.parse(attrs.options);
|
|
3529
3534
|
parentDS = this.getActive(attrs.ngModel);
|
|
@@ -3887,7 +3892,13 @@
|
|
|
3887
3892
|
_compileAngular(scope, combobox.ul);
|
|
3888
3893
|
|
|
3889
3894
|
$(element).remove();
|
|
3890
|
-
|
|
3895
|
+
|
|
3896
|
+
if(cronDisabled){
|
|
3897
|
+
combobox.enable(false);
|
|
3898
|
+
} else {
|
|
3899
|
+
combobox.enable(true);
|
|
3900
|
+
}
|
|
3901
|
+
|
|
3891
3902
|
$("[aria-owns='" + `${attrs.id}_listbox` + "']").attr('aria-label', $translate.instant('template.crud.search'));
|
|
3892
3903
|
}
|
|
3893
3904
|
};
|
|
@@ -3901,6 +3912,7 @@
|
|
|
3901
3912
|
var modelGetter = $parse(attrs['ngModel']);
|
|
3902
3913
|
var modelSetter = modelGetter.assign;
|
|
3903
3914
|
var model = attrs['ngModel'];
|
|
3915
|
+
var cronDisabled = attrs.cronDisabled;
|
|
3904
3916
|
|
|
3905
3917
|
var _self = this;
|
|
3906
3918
|
var select = {};
|
|
@@ -4037,7 +4049,11 @@
|
|
|
4037
4049
|
deselect = attrs.ngDeselect ? function (){_scope.$eval(attrs.ngDeselect)}: undefined;
|
|
4038
4050
|
|
|
4039
4051
|
var combobox = $element.kendoMultiSelect(options).data('kendoMultiSelect');
|
|
4040
|
-
|
|
4052
|
+
if(cronDisabled){
|
|
4053
|
+
combobox.enable(false);
|
|
4054
|
+
}else {
|
|
4055
|
+
combobox.enable(true);
|
|
4056
|
+
}
|
|
4041
4057
|
app.kendoHelper.receivePushData(combobox);
|
|
4042
4058
|
|
|
4043
4059
|
$("[aria-describedby='" + `${attrs.id}_taglist` + "']").attr('id', `${attrs.id}-container`);
|
|
@@ -4107,6 +4123,7 @@
|
|
|
4107
4123
|
options.select = attrs.ngSelect ? function (){scope.$eval(attrs.ngSelect);}: undefined;
|
|
4108
4124
|
var parent = element.parent();
|
|
4109
4125
|
var id = attrs.id ? ' id="' + attrs.id + '"' : '';
|
|
4126
|
+
var cronDisabled = attrs.cronDisabled;
|
|
4110
4127
|
var name = attrs.name ? ' name="' + attrs.name + '"' : '';
|
|
4111
4128
|
var validationmessage = attrs.validationmessage ? ' validationmessage="' + attrs.validationmessage + '"' : '';
|
|
4112
4129
|
var required = '';
|
|
@@ -4138,7 +4155,12 @@
|
|
|
4138
4155
|
}
|
|
4139
4156
|
|
|
4140
4157
|
var autoComplete = $element.kendoAutoComplete(options).data('kendoAutoComplete');
|
|
4141
|
-
|
|
4158
|
+
|
|
4159
|
+
if(cronDisabled){
|
|
4160
|
+
autoComplete.enable(false);
|
|
4161
|
+
} else {
|
|
4162
|
+
autoComplete.enable(true);
|
|
4163
|
+
}
|
|
4142
4164
|
|
|
4143
4165
|
if (ngModelCtrl) {
|
|
4144
4166
|
ngModelCtrl.$formatters.push(function (value) {
|
|
@@ -4707,6 +4729,141 @@
|
|
|
4707
4729
|
}
|
|
4708
4730
|
}])
|
|
4709
4731
|
|
|
4732
|
+
.directive('cronBreadcrumbs', function () {
|
|
4733
|
+
'use strict';
|
|
4734
|
+
return {
|
|
4735
|
+
restrict: 'E',
|
|
4736
|
+
replace: true,
|
|
4737
|
+
link: function (scope, element, attrs) {
|
|
4738
|
+
setTimeout(() => {
|
|
4739
|
+
|
|
4740
|
+
let crnDelimiterIcon = attrs.crnDelimiterIcon;
|
|
4741
|
+
let idMenu = attrs.idMenu;
|
|
4742
|
+
|
|
4743
|
+
// Capturar o json do menu
|
|
4744
|
+
let menuOptions = $(`#${idMenu}`)[0].children[0].attributes['options'];
|
|
4745
|
+
menuOptions = JSON.parse(menuOptions.value);
|
|
4746
|
+
let subMenuOptions = menuOptions.subMenuOptions;
|
|
4747
|
+
|
|
4748
|
+
// Capturar a url da pagina
|
|
4749
|
+
let page = document.location.hash;
|
|
4750
|
+
page = page.split("/");
|
|
4751
|
+
|
|
4752
|
+
let idBreadcrumb = attrs.id;
|
|
4753
|
+
|
|
4754
|
+
let breadcrumb = [];
|
|
4755
|
+
let arrayPaiBreadcrumb = [];
|
|
4756
|
+
|
|
4757
|
+
inicio(subMenuOptions);
|
|
4758
|
+
|
|
4759
|
+
function inicio(items) {
|
|
4760
|
+
let x = false;
|
|
4761
|
+
|
|
4762
|
+
for (let i in items) {
|
|
4763
|
+
|
|
4764
|
+
let action = items[i].action;
|
|
4765
|
+
if (action && action != "") {
|
|
4766
|
+
action = action.replace("cronapi.screen.changeView('", '');
|
|
4767
|
+
action = action.replace("', [])", '')
|
|
4768
|
+
action = action.split("/");
|
|
4769
|
+
} else {
|
|
4770
|
+
action = null
|
|
4771
|
+
}
|
|
4772
|
+
|
|
4773
|
+
if (items[i].level === 1) {
|
|
4774
|
+
arrayPaiBreadcrumb = [];
|
|
4775
|
+
}
|
|
4776
|
+
|
|
4777
|
+
if (arrayPaiBreadcrumb.length != 0 && items[i].level === arrayPaiBreadcrumb[arrayPaiBreadcrumb.length - 1].level) {
|
|
4778
|
+
if (!action) {
|
|
4779
|
+
arrayPaiBreadcrumb[arrayPaiBreadcrumb.length - 1] = {
|
|
4780
|
+
level: items[i].level,
|
|
4781
|
+
title: items[i].title,
|
|
4782
|
+
href: '#'
|
|
4783
|
+
};
|
|
4784
|
+
|
|
4785
|
+
} else if (action) {
|
|
4786
|
+
arrayPaiBreadcrumb[arrayPaiBreadcrumb.length - 1] = {
|
|
4787
|
+
level: items[i].level,
|
|
4788
|
+
title: items[i].title,
|
|
4789
|
+
href: document.location.origin + '/' + action.join("/")
|
|
4790
|
+
};
|
|
4791
|
+
|
|
4792
|
+
}
|
|
4793
|
+
|
|
4794
|
+
} else {
|
|
4795
|
+
if (!action) {
|
|
4796
|
+
arrayPaiBreadcrumb.push({
|
|
4797
|
+
level: items[i].level,
|
|
4798
|
+
title: items[i].title,
|
|
4799
|
+
href: '#'
|
|
4800
|
+
});
|
|
4801
|
+
} else if (action) {
|
|
4802
|
+
arrayPaiBreadcrumb.push({
|
|
4803
|
+
level: items[i].level,
|
|
4804
|
+
title: items[i].title,
|
|
4805
|
+
href: document.location.origin + '/' + action.join("/")
|
|
4806
|
+
});
|
|
4807
|
+
}
|
|
4808
|
+
}
|
|
4809
|
+
|
|
4810
|
+
if (items[i].menuItems.length > 0) {
|
|
4811
|
+
inicio(items[i].menuItems);
|
|
4812
|
+
|
|
4813
|
+
} else {
|
|
4814
|
+
if (action) {
|
|
4815
|
+
if (action[action.length - 1] === page[page.length - 1]) {
|
|
4816
|
+
x = true;
|
|
4817
|
+
}
|
|
4818
|
+
}
|
|
4819
|
+
}
|
|
4820
|
+
|
|
4821
|
+
if (x) {
|
|
4822
|
+
for (let y in arrayPaiBreadcrumb) {
|
|
4823
|
+
|
|
4824
|
+
if (y == 0 && arrayPaiBreadcrumb[y].level == 1) {
|
|
4825
|
+
breadcrumb.push({
|
|
4826
|
+
type: "rootitem",
|
|
4827
|
+
href: arrayPaiBreadcrumb[y].href,
|
|
4828
|
+
text: arrayPaiBreadcrumb[y].title,
|
|
4829
|
+
showText: true,
|
|
4830
|
+
showIcon: false
|
|
4831
|
+
})
|
|
4832
|
+
} else if (y == 0 && arrayPaiBreadcrumb[y].level != 1) {
|
|
4833
|
+
breadcrumb.push({
|
|
4834
|
+
type: "rootitem",
|
|
4835
|
+
href: arrayPaiBreadcrumb[y].href,
|
|
4836
|
+
text: arrayPaiBreadcrumb[y].title,
|
|
4837
|
+
showText: true,
|
|
4838
|
+
showIcon: false
|
|
4839
|
+
})
|
|
4840
|
+
} else {
|
|
4841
|
+
breadcrumb.push({
|
|
4842
|
+
type: "item",
|
|
4843
|
+
href: arrayPaiBreadcrumb[y].href,
|
|
4844
|
+
text: arrayPaiBreadcrumb[y].title,
|
|
4845
|
+
showText: true,
|
|
4846
|
+
showIcon: false
|
|
4847
|
+
})
|
|
4848
|
+
}
|
|
4849
|
+
}
|
|
4850
|
+
|
|
4851
|
+
return breadcrumb
|
|
4852
|
+
}
|
|
4853
|
+
}
|
|
4854
|
+
}
|
|
4855
|
+
|
|
4856
|
+
$(`#${idBreadcrumb}`).kendoBreadcrumb({
|
|
4857
|
+
items: breadcrumb,
|
|
4858
|
+
delimiterIcon: crnDelimiterIcon,
|
|
4859
|
+
navigational: true
|
|
4860
|
+
});
|
|
4861
|
+
|
|
4862
|
+
}, 800);
|
|
4863
|
+
}
|
|
4864
|
+
}
|
|
4865
|
+
})
|
|
4866
|
+
|
|
4710
4867
|
.directive('ngInitialValue', function($parse) {
|
|
4711
4868
|
return {
|
|
4712
4869
|
restrict: 'A',
|
|
@@ -4936,6 +5093,42 @@
|
|
|
4936
5093
|
}
|
|
4937
5094
|
})
|
|
4938
5095
|
|
|
5096
|
+
.directive('cronOrderedList', function ($compile, $sce, $parse) {
|
|
5097
|
+
'use strict';
|
|
5098
|
+
return {
|
|
5099
|
+
restrict: 'EA',
|
|
5100
|
+
replace: true,
|
|
5101
|
+
link: function (scope, element, attrs, ngModelCtrl) {
|
|
5102
|
+
|
|
5103
|
+
let attributeValue = attrs.attributeValue;
|
|
5104
|
+
let orderedAttributeValue = attrs.orderedAttributeValue
|
|
5105
|
+
let listType = attrs.listType;
|
|
5106
|
+
let content = element[0].children[0].children;
|
|
5107
|
+
content = $(content);
|
|
5108
|
+
let templateDyn = '';
|
|
5109
|
+
let contentUL = '';
|
|
5110
|
+
|
|
5111
|
+
$.each(content, function (i, item) {
|
|
5112
|
+
contentUL = contentUL + item.outerHTML;
|
|
5113
|
+
});
|
|
5114
|
+
|
|
5115
|
+
switch (listType) {
|
|
5116
|
+
case 'numbered-list':
|
|
5117
|
+
templateDyn = `<ol style="list-style-type: ${attributeValue}">${contentUL}</ol>`
|
|
5118
|
+
break
|
|
5119
|
+
|
|
5120
|
+
case 'ordered-list':
|
|
5121
|
+
templateDyn = `<ul style="list-style-type: ${orderedAttributeValue}">${contentUL}</ul>`
|
|
5122
|
+
break
|
|
5123
|
+
}
|
|
5124
|
+
|
|
5125
|
+
templateDyn = $(templateDyn);
|
|
5126
|
+
$(element).replaceWith(templateDyn);
|
|
5127
|
+
$compile(templateDyn)(scope);
|
|
5128
|
+
}
|
|
5129
|
+
}
|
|
5130
|
+
})
|
|
5131
|
+
|
|
4939
5132
|
}(app));
|
|
4940
5133
|
|
|
4941
5134
|
function maskDirectiveAsDate($compile, $translate, $parse) {
|