cronapi-js 2.8.20 → 2.8.21

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/cronapi.js CHANGED
@@ -5360,7 +5360,7 @@ if (!window.fixedTimeZone) {
5360
5360
 
5361
5361
 
5362
5362
  /**
5363
- * @category CategoryType.SOCIAL
5363
+ * @category {{CategoryType.SOCIAL}}
5364
5364
  * @categoryTags login|social|network|facebook|github|google|linkedin
5365
5365
  */
5366
5366
  this.cronapi.social = {};
@@ -5834,7 +5834,7 @@ if (!window.fixedTimeZone) {
5834
5834
  };
5835
5835
 
5836
5836
  /**
5837
- * @category CategoryType.REGEX
5837
+ * @category {{CategoryType.REGEX}}
5838
5838
  * @categoryTags REGEX|regex
5839
5839
  */
5840
5840
 
@@ -5904,7 +5904,7 @@ if (!window.fixedTimeZone) {
5904
5904
  }
5905
5905
 
5906
5906
  /**
5907
- * @category Calendar
5907
+ * @category {{Calendar}}
5908
5908
  * @categoryTags calendar|calendário
5909
5909
  */
5910
5910
  this.cronapi.calendar = {};
@@ -6555,4 +6555,66 @@ if (!window.fixedTimeZone) {
6555
6555
 
6556
6556
  }
6557
6557
 
6558
+ /**
6559
+ * @category {{breadcrumb}}
6560
+ * @categoryTags breadcrumb|breadcrumbs
6561
+ */
6562
+ this.cronapi.breadcrumb = {};
6563
+
6564
+ /**
6565
+ * @type function
6566
+ * @name {{breadcrumb}}
6567
+ * @description {{breadcrumbDesc}}
6568
+ * @param {ObjectType.MAP} map {{breadcrumbParamMap}}
6569
+ * @returns {ObjectType.STRING}
6570
+ */
6571
+ this.cronapi.breadcrumb.jsonBreadcrumb = function (map) {
6572
+ let breadcrumb = [];
6573
+ map = Array.isArray(map) ? map : [map];
6574
+
6575
+ map.forEach(function (item) {
6576
+ breadcrumb.push(item)
6577
+ });
6578
+ return breadcrumb;
6579
+ };
6580
+
6581
+ /**
6582
+ * @type function
6583
+ * @name {{listBreadcrumb}}
6584
+ * @description {{listBreadcrumbDesc}}
6585
+ * @param {ObjectType.BOOLEAN} root {{listBreadcrumbRoot}}
6586
+ * @param {ObjectType.STRING} titulo {{listBreadcrumbTitulo}}
6587
+ * @param {ObjectType.STRING} icon {{listBreadcrumbIcon}}
6588
+ * @param {ObjectType.STRING} link {{listBreadcrumbLink}}
6589
+ * @returns {ObjectType.STRING}
6590
+ */
6591
+ this.cronapi.breadcrumb.listBreadcrumb = function ( /** @type {ObjectType.BOOLEAN} @description {{listBreadcrumbRoot}} @blockType util_dropdown @keys true|false @values {{yes}}|{{no}} */ root, /** @type {ObjectType.STRING} */ titulo, icon, /** @type {ObjectType.STATEMENT} @description {{listBreadcrumbLink}} */ link) {
6592
+
6593
+ let json = {};
6594
+
6595
+ if (root) {
6596
+ json.type = "rootitem"
6597
+ } else {
6598
+ json.type = "item"
6599
+ }
6600
+
6601
+ json.text = titulo;
6602
+ json.showText = true;
6603
+
6604
+ if (link) {
6605
+ json.href = link
6606
+ } else {
6607
+ json.href = "#"
6608
+ }
6609
+
6610
+ if (icon) {
6611
+ json.icon = icon
6612
+ json.showIcon = true
6613
+ } else {
6614
+ json.showIcon = false
6615
+ }
6616
+
6617
+ return json;
6618
+ };
6619
+
6558
6620
  }).bind(window)();
@@ -5,7 +5,7 @@
5
5
  #=text#
6
6
  </div>
7
7
  </div>
8
- </div>`);kendo.chat.Templates.kendoChatHtmlTemplate||kendo.chat.registerTemplate("kendoChatHtmlTemplate",l);let d=[];if(Array.isArray(n))for(let t in n){let a={contentType:"kendoChatHtmlTemplate",content:{text:s(n[t])}};d.push(a)}else{let t={contentType:"kendoChatHtmlTemplate",content:{text:s(n)}};d.push(t)}getChat(t).then(t=>{if(t)t.renderAttachments({attachments:d,attachmentLayout:o},a),r();else{let t=this.cronapi.$translate.instant("chatElementNotPresent");this.cronapi.$scope.Notification.error(t),c(t)}})},this.cronapi.chat.renderChatSuggestedActions=function(t,a,n,o){getChat(t).then(t=>{if(t)t.renderSuggestedActions(Array.isArray(a)?a:[a]),n();else{let t=this.cronapi.$translate.instant("chatElementNotPresent");this.cronapi.$scope.Notification.error(t),o(t)}})},this.cronapi.chat.renderChatUserTypingIndicator=function(t,a,n,o){getChat(t).then(t=>{if(t)t.renderUserTypingIndicator(a),n();else{let t=this.cronapi.$translate.instant("chatElementNotPresent");this.cronapi.$scope.Notification.error(t),o(t)}})},this.cronapi.chat.clearChatUserTypingIndicator=function(t,a,n,o){getChat(t).then(t=>{if(t)t.clearUserTypingIndicator(a),n();else{let t=this.cronapi.$translate.instant("chatElementNotPresent");this.cronapi.$scope.Notification.error(t),o(t)}})},this.cronapi.chat.removeChatTypingIndicator=function(t,a,n){getChat(t).then(t=>{if(t)t.removeTypingIndicator(),a();else{let t=this.cronapi.$translate.instant("chatElementNotPresent");this.cronapi.$scope.Notification.error(t),n(t)}})},this.cronapi.util.setCookie=function(t,a,n,o){function r(t){return"seconds"===t?l=1e3:"minutes"===t?l=6e4:"hours"===t?l=36e5:"days"==t&&(l=864e5),l}let c=new Date,s=new Date,l=0;this.cronapi.logic.isNullOrEmpty(o)||0==o?s.setTime(c.getTime()+86400000):s.setTime(c.getTime()+parseInt(o*r(n))),document.cookie=encodeURIComponent(t)+"="+encodeURIComponent(a)+"; expires="+s.toGMTString()},this.cronapi.util.getCookie=function(t){const a=function(){return document.cookie.split("; ")}(),n=function(t,a){return t.find(t=>t.startsWith(a+"="))}(a,t);return function(t){return"undefined"==typeof t?null:t.split("=").pop()}(n)}}.bind(window)();
8
+ </div>`);kendo.chat.Templates.kendoChatHtmlTemplate||kendo.chat.registerTemplate("kendoChatHtmlTemplate",l);let d=[];if(Array.isArray(n))for(let t in n){let a={contentType:"kendoChatHtmlTemplate",content:{text:s(n[t])}};d.push(a)}else{let t={contentType:"kendoChatHtmlTemplate",content:{text:s(n)}};d.push(t)}getChat(t).then(t=>{if(t)t.renderAttachments({attachments:d,attachmentLayout:o},a),r();else{let t=this.cronapi.$translate.instant("chatElementNotPresent");this.cronapi.$scope.Notification.error(t),c(t)}})},this.cronapi.chat.renderChatSuggestedActions=function(t,a,n,o){getChat(t).then(t=>{if(t)t.renderSuggestedActions(Array.isArray(a)?a:[a]),n();else{let t=this.cronapi.$translate.instant("chatElementNotPresent");this.cronapi.$scope.Notification.error(t),o(t)}})},this.cronapi.chat.renderChatUserTypingIndicator=function(t,a,n,o){getChat(t).then(t=>{if(t)t.renderUserTypingIndicator(a),n();else{let t=this.cronapi.$translate.instant("chatElementNotPresent");this.cronapi.$scope.Notification.error(t),o(t)}})},this.cronapi.chat.clearChatUserTypingIndicator=function(t,a,n,o){getChat(t).then(t=>{if(t)t.clearUserTypingIndicator(a),n();else{let t=this.cronapi.$translate.instant("chatElementNotPresent");this.cronapi.$scope.Notification.error(t),o(t)}})},this.cronapi.chat.removeChatTypingIndicator=function(t,a,n){getChat(t).then(t=>{if(t)t.removeTypingIndicator(),a();else{let t=this.cronapi.$translate.instant("chatElementNotPresent");this.cronapi.$scope.Notification.error(t),n(t)}})},this.cronapi.util.setCookie=function(t,a,n,o){function r(t){return"seconds"===t?l=1e3:"minutes"===t?l=6e4:"hours"===t?l=36e5:"days"==t&&(l=864e5),l}let c=new Date,s=new Date,l=0;this.cronapi.logic.isNullOrEmpty(o)||0==o?s.setTime(c.getTime()+86400000):s.setTime(c.getTime()+parseInt(o*r(n))),document.cookie=encodeURIComponent(t)+"="+encodeURIComponent(a)+"; expires="+s.toGMTString()},this.cronapi.util.getCookie=function(t){const a=function(){return document.cookie.split("; ")}(),n=function(t,a){return t.find(t=>t.startsWith(a+"="))}(a,t);return function(t){return"undefined"==typeof t?null:t.split("=").pop()}(n)},this.cronapi.breadcrumb={},this.cronapi.breadcrumb.jsonBreadcrumb=function(t){let a=[];return t=Array.isArray(t)?t:[t],t.forEach(function(t){a.push(t)}),a},this.cronapi.breadcrumb.listBreadcrumb=function(t,a,n,o){let r={};return r.type=t?"rootitem":"item",r.text=a,r.showText=!0,r.href=o?o:"#",n?(r.icon=n,r.showIcon=!0):r.showIcon=!1,r}}.bind(window)();
9
9
  !function(t,e){"object"==typeof exports&&"undefined"!=typeof module?e(exports):"function"==typeof define&&define.amd?define(["exports"],e):e((t="undefined"!=typeof globalThis?globalThis:t||self).ZXing={})}(this,(function(t){"use strict";
10
10
  /*! *****************************************************************************
11
11
  Copyright (c) Microsoft Corporation. All rights reserved.
@@ -75,6 +75,9 @@
75
75
  "autoHide": "Hide notification automatically",
76
76
  "back": "Back to previous Form",
77
77
  "backDescription": "Returns to previously opened Form",
78
+ "breadcrumb": "Breadcrumb",
79
+ "breadcrumbDesc": "Create a navigation structure presented in a playful interface",
80
+ "breadcrumbParamMap": "Route",
78
81
  "blocklyWithFunction": "Blockly name",
79
82
  "bottom": "Bottom",
80
83
  "buttonConfirmDialogAlert": "Modal button",
@@ -453,6 +456,12 @@
453
456
  "lastRecordName": "Go to Last Record",
454
457
  "lastRecordParam0": "Datasource",
455
458
  "left": "Left",
459
+ "listBreadcrumb": "Breadcrumb Item",
460
+ "listBreadcrumbDesc": "Creates a breadcrumb path item",
461
+ "listBreadcrumbTitle": "Title",
462
+ "listBreadcrumbLink": "URL",
463
+ "listBreadcrumbIcon": "Icon",
464
+ "listBreadcrumbRoot": "Main item?",
456
465
  "loadMoreName": "Load more itens",
457
466
  "loadMoreNameDescription": "Function that invokes the next page from the selected datasource",
458
467
  "logoutDescription": "Function that logout an user",
@@ -82,6 +82,9 @@
82
82
  "buttonConfirmDialogAlert.primaryButton": "Botão de destaque",
83
83
  "buttonConfirmDialogAlert.value": "Ação do botão",
84
84
  "buttonConfirmDialogAlertDescription": "Função que define as caracteristicas do(s) botão(ões).",
85
+ "breadcrumb": "Breadcrumb",
86
+ "breadcrumbDesc": "Criar uma estrutura de navegação apresentada em uma interface lúdica",
87
+ "breadcrumbParamMap": "Rota",
85
88
  "calendarElementNotPresent": "O componente de calendário não está presente na página.",
86
89
  "calendarView": "Visão do calendário",
87
90
  "callServerBlockly": "Chamar Bloco",
@@ -456,6 +459,12 @@
456
459
  "lastRecordName": "Ir para Último registro",
457
460
  "lastRecordParam0": "Fonte de dados",
458
461
  "left": "Esquerda",
462
+ "listBreadcrumb": "Item do breadcrumb",
463
+ "listBreadcrumbDesc": "Cria um item do caminho do breadcrumb",
464
+ "listBreadcrumbTitulo": "Título",
465
+ "listBreadcrumbLink": "URL",
466
+ "listBreadcrumbIcon": "Ícone",
467
+ "listBreadcrumbRoot": "Item principal?",
459
468
  "loadMoreName": "Carregar mais registros",
460
469
  "loadMoreNameDescription": "Função que chama a próxima página de registros do datasource",
461
470
  "logoutDescription": "Função que faz o logout do usuário",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "cronapi-js",
3
- "version": "2.8.20",
3
+ "version": "2.8.21",
4
4
  "description": "Public library for CronApp's users",
5
5
  "main": "cronapi.js",
6
6
  "scripts": {