cronapp-framework-js 2.8.31 → 2.8.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-enterprise-combobox-multiple.components.json +1 -1
- package/components/crn-enterprise-dynamic-combobox.components.json +1 -1
- package/components/crn-ordered-list.components.json +1 -0
- package/components/crn-ordered-sub-list.components.json +1 -0
- 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 +2 -2
- package/components/cron-ordered-list.components.json +152 -0
- package/components/templates/cron-breadcrumbs.template.html +5 -3
- package/components/templates/cron-ordered-list.template.html +7 -0
- package/css/themes/custom/material/components_css/crn-scheduler.css +1 -2
- package/dist/components/js/format.min.js +1 -1
- 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/cron-breadcrumbs.template.html +1 -1
- package/dist/components/templates/cron-ordered-list.template.html +1 -0
- package/dist/css/themes/custom/material/components_css/crn-scheduler.css +1 -1
- package/dist/js/LanguageSelectDirective.js +1 -1
- package/dist/js/LocaleService.js +1 -1
- package/dist/js/directives.js +1 -1
- package/dist/js/reports/parameters.controller.js +1 -1
- package/js/directives.js +88 -31
- package/package.json +3 -3
- package/v10.22.1 +0 -0
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(){
|
|
1
|
+
(function(){"use strict";function a(a,b,c,d,e){function f(a){c.openURLContent(a.data)}b.getDescription=function(a){var b=a.name;return a.description&&(b=a.description,-1<b.indexOf("{{")&&-1<b.indexOf("}}")&&(b=b.replace("{{","").replace("}}",""),b=window.cronapi.i18n.translate(b,[]))),b},b.cloneElement=function(a){return angular.copy(a)},b.isVisibleParam=function(a){if("DATA_LIMIT"==a.name)return!1;return!(""!==a.value)||!(""!=a.value)};var g=d.reportName.match(/\/(.*?)(.*?)(\.jrxml|\.report)/);b.report=d,b.report.name=g[2],b.htmlParameters=e,b.onPrint=function(){b.report.reportName.endsWith(".report")?c.openStimulsoftReport(b.report.contentData,b.report.parameters,b.report.datasourcesInBand):c.getPDFAsFile(b.report).then(f)},b.onCancel=function(){a.dismiss("cancel")}}angular.module("custom.controllers").controller("ParameterController",a).filter("trusted",["$sce",function(a){return function(b){return a.trustAsHtml(b)}}]).directive("compile",["$compile","$timeout",function(a,b){return{restrict:"A",link:function(c,d){b(function(){a(d.contents())(c)})}}}]).directive("formatDate",function(){return{require:"ngModel",link:function(a,b,c,d){d.$formatters.push(function(a){return a?new Date(a):null})}}}),a.$inject=["$modalInstance","$scope","ReportService","report","htmlParameters"]})();
|
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
|
-
var cronDisabled = attrs.cronDisabled
|
|
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;
|
|
@@ -3528,7 +3528,7 @@
|
|
|
3528
3528
|
var self = this;
|
|
3529
3529
|
var parentDS = {};
|
|
3530
3530
|
var textField = null;
|
|
3531
|
-
var cronDisabled = attrs.cronDisabled
|
|
3531
|
+
var cronDisabled = attrs.cronDisabled;
|
|
3532
3532
|
try {
|
|
3533
3533
|
select = JSON.parse(attrs.options);
|
|
3534
3534
|
parentDS = this.getActive(attrs.ngModel);
|
|
@@ -3912,7 +3912,7 @@
|
|
|
3912
3912
|
var modelGetter = $parse(attrs['ngModel']);
|
|
3913
3913
|
var modelSetter = modelGetter.assign;
|
|
3914
3914
|
var model = attrs['ngModel'];
|
|
3915
|
-
var cronDisabled = attrs.cronDisabled
|
|
3915
|
+
var cronDisabled = attrs.cronDisabled;
|
|
3916
3916
|
|
|
3917
3917
|
var _self = this;
|
|
3918
3918
|
var select = {};
|
|
@@ -4123,7 +4123,7 @@
|
|
|
4123
4123
|
options.select = attrs.ngSelect ? function (){scope.$eval(attrs.ngSelect);}: undefined;
|
|
4124
4124
|
var parent = element.parent();
|
|
4125
4125
|
var id = attrs.id ? ' id="' + attrs.id + '"' : '';
|
|
4126
|
-
var cronDisabled = attrs.cronDisabled
|
|
4126
|
+
var cronDisabled = attrs.cronDisabled;
|
|
4127
4127
|
var name = attrs.name ? ' name="' + attrs.name + '"' : '';
|
|
4128
4128
|
var validationmessage = attrs.validationmessage ? ' validationmessage="' + attrs.validationmessage + '"' : '';
|
|
4129
4129
|
var required = '';
|
|
@@ -4321,7 +4321,7 @@
|
|
|
4321
4321
|
});
|
|
4322
4322
|
resizeObserver.observe(slider.wrapper[0])
|
|
4323
4323
|
|
|
4324
|
-
if (attrs.ngRequired || attrs.required) {
|
|
4324
|
+
if (attrs.ngRequired === 'true' || attrs.required) {
|
|
4325
4325
|
var id = attrs.id ? ' id="input' + app.common.generateId() + '"' : '';
|
|
4326
4326
|
var name = attrs.name ? ' name="input' + app.common.generateId() + '"' : '';
|
|
4327
4327
|
var parent = element.parent();
|
|
@@ -4741,7 +4741,7 @@
|
|
|
4741
4741
|
let idMenu = attrs.idMenu;
|
|
4742
4742
|
|
|
4743
4743
|
// Capturar o json do menu
|
|
4744
|
-
let menuOptions = $(`#${idMenu}`)[0].
|
|
4744
|
+
let menuOptions = $(`#${idMenu}`)[0].parentElement.attributes['options'];
|
|
4745
4745
|
menuOptions = JSON.parse(menuOptions.value);
|
|
4746
4746
|
let subMenuOptions = menuOptions.subMenuOptions;
|
|
4747
4747
|
|
|
@@ -4758,9 +4758,9 @@
|
|
|
4758
4758
|
|
|
4759
4759
|
function inicio(items) {
|
|
4760
4760
|
let x = false;
|
|
4761
|
-
|
|
4761
|
+
|
|
4762
4762
|
for (let i in items) {
|
|
4763
|
-
|
|
4763
|
+
|
|
4764
4764
|
let action = items[i].action;
|
|
4765
4765
|
if (action && action != "") {
|
|
4766
4766
|
action = action.replace("cronapi.screen.changeView('", '');
|
|
@@ -4769,38 +4769,58 @@
|
|
|
4769
4769
|
} else {
|
|
4770
4770
|
action = null
|
|
4771
4771
|
}
|
|
4772
|
-
|
|
4773
|
-
if(items[i].level === 1){
|
|
4774
|
-
arrayPaiBreadcrumb = []
|
|
4772
|
+
|
|
4773
|
+
if (items[i].level === 1) {
|
|
4774
|
+
arrayPaiBreadcrumb = [];
|
|
4775
4775
|
}
|
|
4776
|
-
|
|
4777
|
-
|
|
4778
|
-
|
|
4779
|
-
|
|
4780
|
-
|
|
4781
|
-
|
|
4782
|
-
|
|
4783
|
-
|
|
4784
|
-
|
|
4785
|
-
|
|
4786
|
-
|
|
4787
|
-
|
|
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
|
+
}
|
|
4788
4808
|
}
|
|
4789
|
-
|
|
4809
|
+
|
|
4790
4810
|
if (items[i].menuItems.length > 0) {
|
|
4791
4811
|
inicio(items[i].menuItems);
|
|
4792
|
-
|
|
4812
|
+
|
|
4793
4813
|
} else {
|
|
4794
|
-
if(action){
|
|
4814
|
+
if (action) {
|
|
4795
4815
|
if (action[action.length - 1] === page[page.length - 1]) {
|
|
4796
|
-
x = true
|
|
4816
|
+
x = true;
|
|
4797
4817
|
}
|
|
4798
4818
|
}
|
|
4799
4819
|
}
|
|
4800
|
-
|
|
4820
|
+
|
|
4801
4821
|
if (x) {
|
|
4802
4822
|
for (let y in arrayPaiBreadcrumb) {
|
|
4803
|
-
|
|
4823
|
+
|
|
4804
4824
|
if (y == 0 && arrayPaiBreadcrumb[y].level == 1) {
|
|
4805
4825
|
breadcrumb.push({
|
|
4806
4826
|
type: "rootitem",
|
|
@@ -4822,11 +4842,12 @@
|
|
|
4822
4842
|
type: "item",
|
|
4823
4843
|
href: arrayPaiBreadcrumb[y].href,
|
|
4824
4844
|
text: arrayPaiBreadcrumb[y].title,
|
|
4825
|
-
showText: true
|
|
4845
|
+
showText: true,
|
|
4846
|
+
showIcon: false
|
|
4826
4847
|
})
|
|
4827
4848
|
}
|
|
4828
4849
|
}
|
|
4829
|
-
|
|
4850
|
+
|
|
4830
4851
|
return breadcrumb
|
|
4831
4852
|
}
|
|
4832
4853
|
}
|
|
@@ -5072,6 +5093,42 @@
|
|
|
5072
5093
|
}
|
|
5073
5094
|
})
|
|
5074
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
|
+
|
|
5075
5132
|
}(app));
|
|
5076
5133
|
|
|
5077
5134
|
function maskDirectiveAsDate($compile, $translate, $parse) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "cronapp-framework-js",
|
|
3
|
-
"version": "2.8.
|
|
3
|
+
"version": "2.8.35",
|
|
4
4
|
"description": "Javascript library for CronApp's projects",
|
|
5
5
|
"main": "cronapp.framework.js",
|
|
6
6
|
"scripts": {
|
|
@@ -41,13 +41,13 @@
|
|
|
41
41
|
"dependencies": {
|
|
42
42
|
"ng-mask": "3.0.12",
|
|
43
43
|
"pace": "HubSpot/pace#v0.7.8",
|
|
44
|
-
"raphael": "DmitryBaranovskiy/raphael#v2.
|
|
44
|
+
"raphael": "DmitryBaranovskiy/raphael#v2.3.0",
|
|
45
45
|
"ui-select-infinity": "hyzhak/ui-select-infinity#v0.1.5",
|
|
46
46
|
"angular-ui-router": "1.0.29",
|
|
47
47
|
"eonasdan-bootstrap-datetimepicker": "^4.17.49",
|
|
48
48
|
"natives": "1.1.6",
|
|
49
49
|
"angular": "1.8.2",
|
|
50
|
-
"angular-ui-bootstrap": "0.
|
|
50
|
+
"angular-ui-bootstrap": "0.14.0",
|
|
51
51
|
"angular-chart.js": "1.1.1",
|
|
52
52
|
"angular-cookies": "1.5.8",
|
|
53
53
|
"angular-dynamic-locale": "0.1.32",
|
package/v10.22.1
ADDED
|
File without changes
|