cronapp-framework-mobile-js 2.8.9
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/LICENSE +21 -0
- package/README.md +1 -0
- package/components/crn-QRCode.components.json +54 -0
- package/components/crn-anchor.components.json +89 -0
- package/components/crn-button-bar.components.json +64 -0
- package/components/crn-button.components.json +316 -0
- package/components/crn-card.components.json +95 -0
- package/components/crn-chart.components.json +56 -0
- package/components/crn-chat.components.json +8 -0
- package/components/crn-checkbox.components.json +184 -0
- package/components/crn-complex-search.components.json +43 -0
- package/components/crn-container.components.json +21 -0
- package/components/crn-cron-crud.components.json +21 -0
- package/components/crn-datasource.components.json +181 -0
- package/components/crn-dynamic-file.components.json +85 -0
- package/components/crn-dynamic-image.components.json +151 -0
- package/components/crn-dynamic-select.components.json +111 -0
- package/components/crn-evaluation.components.json +64 -0
- package/components/crn-filter-button.components.json +305 -0
- package/components/crn-form-template.components.json +11 -0
- package/components/crn-header-button.components.json +63 -0
- package/components/crn-heading.components.json +109 -0
- package/components/crn-icon.components.json +249 -0
- package/components/crn-image.components.json +121 -0
- package/components/crn-infinite-scroll.components.json +32 -0
- package/components/crn-input-button.components.json +189 -0
- package/components/crn-input-floating.components.json +179 -0
- package/components/crn-input-icon.components.json +171 -0
- package/components/crn-input-inline.components.json +182 -0
- package/components/crn-input.components.json +169 -0
- package/components/crn-ion-content.components.json +24 -0
- package/components/crn-ion-footer-bar.components.json +351 -0
- package/components/crn-ion-header-bar.components.json +211 -0
- package/components/crn-ion-list.components.json +163 -0
- package/components/crn-ion-nav-buttons.components.json +63 -0
- package/components/crn-ion-segment-item.components.json +65 -0
- package/components/crn-ion-segment.components.json +974 -0
- package/components/crn-ion-tab-item.components.json +50 -0
- package/components/crn-ion-tab.components.json +138 -0
- package/components/crn-item-options.components.json +26 -0
- package/components/crn-item-select.components.json +69 -0
- package/components/crn-item-swipe.components.json +62 -0
- package/components/crn-kendo-chat.components.json +88 -0
- package/components/crn-label.components.json +113 -0
- package/components/crn-list-avatar.components.json +260 -0
- package/components/crn-list-icon.components.json +249 -0
- package/components/crn-list-item-avatar.components.json +236 -0
- package/components/crn-list-item-icon.components.json +260 -0
- package/components/crn-list-item-thumbnail.components.json +226 -0
- package/components/crn-list-item.components.json +160 -0
- package/components/crn-list-simple.components.json +180 -0
- package/components/crn-list-swipe.components.json +105 -0
- package/components/crn-list-thumbnail.components.json +248 -0
- package/components/crn-list.components.json +75 -0
- package/components/crn-map.components.json +55 -0
- package/components/crn-mobile-menu.components.json +32 -0
- package/components/crn-multiselect.components.json +110 -0
- package/components/crn-navbar.components.json +105 -0
- package/components/crn-option-button.components.json +72 -0
- package/components/crn-paragraph.components.json +110 -0
- package/components/crn-radio.components.json +90 -0
- package/components/crn-radioOption.components.json +23 -0
- package/components/crn-range.components.json +106 -0
- package/components/crn-rating.components.json +189 -0
- package/components/crn-search.components.json +210 -0
- package/components/crn-select-options.components.json +17 -0
- package/components/crn-select.components.json +93 -0
- package/components/crn-slider-item.components.json +137 -0
- package/components/crn-slider.components.json +105 -0
- package/components/crn-spacer.components.json +21 -0
- package/components/crn-start.components.json +10 -0
- package/components/crn-tabs-icon-only-item.components.json +85 -0
- package/components/crn-tabs-icon-only.components.json +382 -0
- package/components/crn-tabs.components.json +36 -0
- package/components/crn-textarea.components.json +96 -0
- package/components/crn-toggle.components.json +161 -0
- package/components/crn-video.components.json +67 -0
- package/components/css/app.css +66 -0
- package/components/css/background-color.css +121 -0
- package/components/css/chatStyle.css +221 -0
- package/components/css/color-default.css +83 -0
- package/components/css/crn-ion-segment.css +786 -0
- package/components/css/icon-size.css +15 -0
- package/components/css/multiselect-editor.css +119 -0
- package/components/css/tabs-color.css +248 -0
- package/components/js/format.min.js +2 -0
- package/components/js/jquery.inputmask.bundle.js +3883 -0
- package/components/js/jquery.mask.min.js +19 -0
- package/components/js/pouchdb.cordova-sqlite.js +5540 -0
- package/components/js/qrcode.js +1319 -0
- package/components/reports/BOOLEAN.parameter.html +10 -0
- package/components/reports/DATE.parameter.html +4 -0
- package/components/reports/DOUBLE.parameter.html +4 -0
- package/components/reports/FLOAT.parameter.html +4 -0
- package/components/reports/INTEGER.parameter.html +4 -0
- package/components/reports/LONG.parameter.html +5 -0
- package/components/reports/STRING.parameter.html +5 -0
- package/components/reports/reports.parameters.html +20 -0
- package/components/templates/advanced.list.designtime.html +57 -0
- package/components/templates/advanced.list.template.html +1 -0
- package/components/templates/anchor.template.html +1 -0
- package/components/templates/button-bar.template.html +5 -0
- package/components/templates/button-report.template.html +1 -0
- package/components/templates/button.template.html +4 -0
- package/components/templates/card.template.html +7 -0
- package/components/templates/chat.template.html +39 -0
- package/components/templates/checkbox.template.html +9 -0
- package/components/templates/combobox.designtime.html +12 -0
- package/components/templates/combobox.template.html +8 -0
- package/components/templates/complexsearch.template.html +7 -0
- package/components/templates/crn-ion-segment-item.template.html +6 -0
- package/components/templates/crn-ion-segment.template.html +27 -0
- package/components/templates/cron-crud.template.html +7 -0
- package/components/templates/cron-mobile-menu.designtime.html +10 -0
- package/components/templates/div.horizontal.template.html +27 -0
- package/components/templates/div.vertical.template.html +11 -0
- package/components/templates/dynamic-combobox.template.html +6 -0
- package/components/templates/dynamicfile.template.html +8 -0
- package/components/templates/dynamicimage.designtime.html +11 -0
- package/components/templates/dynamicimage.template.html +9 -0
- package/components/templates/evaluation.designtime.html +7 -0
- package/components/templates/evaluation.template.html +1 -0
- package/components/templates/filterbutton.template.html +3 -0
- package/components/templates/floattextinput.designtime.html +4 -0
- package/components/templates/floattextinput.template.html +4 -0
- package/components/templates/form.template.html +5 -0
- package/components/templates/header.template.html +3 -0
- package/components/templates/icontextinput.template.html +4 -0
- package/components/templates/image.template.html +18 -0
- package/components/templates/inlinetextinput.template.html +4 -0
- package/components/templates/ion-footer-bar.template.html +9 -0
- package/components/templates/ion-header-bar.template.html +13 -0
- package/components/templates/ion-tab-item.designtime.html +5 -0
- package/components/templates/ion-tab.template.html +8 -0
- package/components/templates/item.avatar.template.html +5 -0
- package/components/templates/item.icon.template.html +4 -0
- package/components/templates/item.options.template.html +14 -0
- package/components/templates/item.slider.template.html +4 -0
- package/components/templates/item.swipe.template.html +14 -0
- package/components/templates/item.template.html +5 -0
- package/components/templates/item.thumbnail.template.html +5 -0
- package/components/templates/kendo-chat.designtime.html +20 -0
- package/components/templates/kendo-chat.template.html +75 -0
- package/components/templates/list.avatar.template.html +7 -0
- package/components/templates/list.icon.template.html +6 -0
- package/components/templates/list.swipe.template.html +16 -0
- package/components/templates/list.template.html +5 -0
- package/components/templates/list.thumbnail.template.html +7 -0
- package/components/templates/maps.designtime.html +1 -0
- package/components/templates/maps.template.html +1 -0
- package/components/templates/menu.template.html +21 -0
- package/components/templates/multiselect.template.html +5 -0
- package/components/templates/nav.bar.template.html +5 -0
- package/components/templates/publicMenu.template.html +14 -0
- package/components/templates/radiogroup-dynamic.template.html +15 -0
- package/components/templates/radiogroup.template.html +21 -0
- package/components/templates/range.template.html +5 -0
- package/components/templates/rating.template.html +9 -0
- package/components/templates/search.template.html +6 -0
- package/components/templates/slider.template.html +24 -0
- package/components/templates/tabs-icon-only.template.html +16 -0
- package/components/templates/tabs.template.html +5 -0
- package/components/templates/textarea.template.html +1 -0
- package/components/templates/textinput.template.html +3 -0
- package/components/templates/textinputbutton.template.html +12 -0
- package/components/templates/title.template.html +1 -0
- package/components/templates/toggle-dynamic.template.html +11 -0
- package/components/templates/toggle.template.html +9 -0
- package/components/templates/video.designtime.html +2 -0
- package/components/templates/video.template.html +1 -0
- package/components/templates/views/public/home.view.html +16 -0
- package/components/templates/views/public/menu.view.html +20 -0
- package/components/upload/upload.html +41 -0
- package/cronapp-framework-mobile-js.iml +9 -0
- package/css/app.css +306 -0
- package/css/cronos.css +55 -0
- package/css/custom-ionic.css +195 -0
- package/css/groupingOfCss/checkbox.css +75 -0
- package/css/groupingOfCss/col.css +728 -0
- package/css/groupingOfCss/dynamicImage.css +24 -0
- package/css/groupingOfCss/import_groupingOfCss.css +6 -0
- package/css/groupingOfCss/login.css +260 -0
- package/css/groupingOfCss/qrCodeCronapp.css +4 -0
- package/css/groupingOfCss/upload-image.css +68 -0
- package/css/old/modal.css +133 -0
- package/dist/components/css/app.css +1 -0
- package/dist/components/css/background-color.css +1 -0
- package/dist/components/css/chatStyle.css +1 -0
- package/dist/components/css/color-default.css +1 -0
- package/dist/components/css/crn-ion-segment.css +1 -0
- package/dist/components/css/icon-size.css +1 -0
- package/dist/components/css/multiselect-editor.css +1 -0
- package/dist/components/css/tabs-color.css +1 -0
- package/dist/components/js/format.min.js +1 -0
- package/dist/components/js/jquery.inputmask.bundle.js +3 -0
- package/dist/components/js/jquery.mask.min.js +1 -0
- package/dist/components/js/pouchdb.cordova-sqlite.js +2 -0
- package/dist/components/js/qrcode.js +1 -0
- package/dist/components/templates/advanced.list.designtime.html +1 -0
- package/dist/components/templates/advanced.list.template.html +1 -0
- package/dist/components/templates/anchor.template.html +1 -0
- package/dist/components/templates/button-bar.template.html +1 -0
- package/dist/components/templates/button-report.template.html +1 -0
- package/dist/components/templates/button.template.html +1 -0
- package/dist/components/templates/card.template.html +1 -0
- package/dist/components/templates/chat.template.html +1 -0
- package/dist/components/templates/checkbox.template.html +1 -0
- package/dist/components/templates/combobox.designtime.html +1 -0
- package/dist/components/templates/combobox.template.html +1 -0
- package/dist/components/templates/complexsearch.template.html +1 -0
- package/dist/components/templates/crn-ion-segment-item.template.html +1 -0
- package/dist/components/templates/crn-ion-segment.template.html +1 -0
- package/dist/components/templates/cron-crud.template.html +1 -0
- package/dist/components/templates/cron-mobile-menu.designtime.html +1 -0
- package/dist/components/templates/div.horizontal.template.html +1 -0
- package/dist/components/templates/div.vertical.template.html +1 -0
- package/dist/components/templates/dynamic-combobox.template.html +1 -0
- package/dist/components/templates/dynamicfile.template.html +1 -0
- package/dist/components/templates/dynamicimage.designtime.html +1 -0
- package/dist/components/templates/dynamicimage.template.html +1 -0
- package/dist/components/templates/evaluation.designtime.html +1 -0
- package/dist/components/templates/evaluation.template.html +1 -0
- package/dist/components/templates/filterbutton.template.html +1 -0
- package/dist/components/templates/floattextinput.designtime.html +1 -0
- package/dist/components/templates/floattextinput.template.html +1 -0
- package/dist/components/templates/form.template.html +1 -0
- package/dist/components/templates/header.template.html +1 -0
- package/dist/components/templates/iconinput.template.html +1 -0
- package/dist/components/templates/icontextinput.template.html +1 -0
- package/dist/components/templates/image.template.html +1 -0
- package/dist/components/templates/inlinetextinput.template.html +1 -0
- package/dist/components/templates/ion-footer-bar.template.html +1 -0
- package/dist/components/templates/ion-header-bar.template.html +1 -0
- package/dist/components/templates/ion-tab-item.designtime.html +1 -0
- package/dist/components/templates/ion-tab.designtime.html +1 -0
- package/dist/components/templates/ion-tab.template.html +1 -0
- package/dist/components/templates/item.avatar.template.html +1 -0
- package/dist/components/templates/item.icon.template.html +1 -0
- package/dist/components/templates/item.options.template.html +1 -0
- package/dist/components/templates/item.slider.template.html +1 -0
- package/dist/components/templates/item.swipe.template.html +1 -0
- package/dist/components/templates/item.template.html +1 -0
- package/dist/components/templates/item.thumbnail.template.html +1 -0
- package/dist/components/templates/kendo-chat.designtime.html +1 -0
- package/dist/components/templates/kendo-chat.template.html +1 -0
- package/dist/components/templates/list.avatar.template.html +1 -0
- package/dist/components/templates/list.icon.template.html +1 -0
- package/dist/components/templates/list.swipe.template.html +1 -0
- package/dist/components/templates/list.template.html +1 -0
- package/dist/components/templates/list.thumbnail.template.html +1 -0
- package/dist/components/templates/maps.designtime.html +1 -0
- package/dist/components/templates/maps.template.html +1 -0
- package/dist/components/templates/menu.template.html +1 -0
- package/dist/components/templates/multiselect.template.html +1 -0
- package/dist/components/templates/nav.bar.template.html +1 -0
- package/dist/components/templates/publicMenu.template.html +1 -0
- package/dist/components/templates/radiogroup-dynamic.template.html +1 -0
- package/dist/components/templates/radiogroup.template.html +1 -0
- package/dist/components/templates/range.template.html +1 -0
- package/dist/components/templates/rating.template.html +1 -0
- package/dist/components/templates/search.template.html +1 -0
- package/dist/components/templates/slider.template.html +1 -0
- package/dist/components/templates/tabs-icon-only.template.html +1 -0
- package/dist/components/templates/tabs.template.html +1 -0
- package/dist/components/templates/textarea.template.html +1 -0
- package/dist/components/templates/textinput.template.html +1 -0
- package/dist/components/templates/textinputbutton.template.html +1 -0
- package/dist/components/templates/title.template.html +1 -0
- package/dist/components/templates/toggle-dynamic.template.html +1 -0
- package/dist/components/templates/toggle.template.html +1 -0
- package/dist/components/templates/video.designtime.html +1 -0
- package/dist/components/templates/video.template.html +1 -0
- package/dist/components/templates/views/public/home.view.html +1 -0
- package/dist/components/templates/views/public/menu.view.html +1 -0
- package/dist/css/app.css +1 -0
- package/dist/css/cronos.css +1 -0
- package/dist/css/custom-ionic.css +1 -0
- package/dist/css/groupingOfCss/checkbox.css +1 -0
- package/dist/css/groupingOfCss/col.css +1 -0
- package/dist/css/groupingOfCss/dynamicImage.css +1 -0
- package/dist/css/groupingOfCss/import_groupingOfCss.css +1 -0
- package/dist/css/groupingOfCss/login.css +1 -0
- package/dist/css/groupingOfCss/qrCodeCronapp.css +1 -0
- package/dist/css/groupingOfCss/upload-image.css +1 -0
- package/dist/css/old/modal.css +1 -0
- package/dist/i18n/locale_en_us.json +126 -0
- package/dist/i18n/locale_pt_br.json +126 -0
- package/dist/img/cron-icon/crn-QRCode.svg +1 -0
- package/dist/img/cron-icon/crn-anchor.svg +1 -0
- package/dist/img/cron-icon/crn-button-bar.svg +1 -0
- package/dist/img/cron-icon/crn-button.svg +1 -0
- package/dist/img/cron-icon/crn-card.svg +1 -0
- package/dist/img/cron-icon/crn-carousel.svg +1 -0
- package/dist/img/cron-icon/crn-chart.svg +1 -0
- package/dist/img/cron-icon/crn-checkbox.svg +1 -0
- package/dist/img/cron-icon/crn-container.svg +1 -0
- package/dist/img/cron-icon/crn-cron-crud.svg +1 -0
- package/dist/img/cron-icon/crn-datasource.svg +1 -0
- package/dist/img/cron-icon/crn-dynamic-file.svg +1 -0
- package/dist/img/cron-icon/crn-dynamic-image.svg +1 -0
- package/dist/img/cron-icon/crn-enterprise-dynamic-combobox.svg +1 -0
- package/dist/img/cron-icon/crn-evaluation.svg +1 -0
- package/dist/img/cron-icon/crn-form.svg +1 -0
- package/dist/img/cron-icon/crn-header.svg +1 -0
- package/dist/img/cron-icon/crn-icon.svg +1 -0
- package/dist/img/cron-icon/crn-image.svg +1 -0
- package/dist/img/cron-icon/crn-infinite-scroll.svg +1 -0
- package/dist/img/cron-icon/crn-input-floating.svg +1 -0
- package/dist/img/cron-icon/crn-input-inline.svg +1 -0
- package/dist/img/cron-icon/crn-ion-footer-bar.svg +1 -0
- package/dist/img/cron-icon/crn-ion-list.svg +1 -0
- package/dist/img/cron-icon/crn-item-swipe.svg +1 -0
- package/dist/img/cron-icon/crn-kendo-chat.svg +1 -0
- package/dist/img/cron-icon/crn-label.svg +1 -0
- package/dist/img/cron-icon/crn-list-avatar.svg +1 -0
- package/dist/img/cron-icon/crn-list-icon.svg +1 -0
- package/dist/img/cron-icon/crn-list-item-avatar.svg +1 -0
- package/dist/img/cron-icon/crn-list-item-icon.svg +1 -0
- package/dist/img/cron-icon/crn-list-item-thumbnail.svg +1 -0
- package/dist/img/cron-icon/crn-list-item.svg +1 -0
- package/dist/img/cron-icon/crn-list-swipe.svg +1 -0
- package/dist/img/cron-icon/crn-list-thumbnail.svg +1 -0
- package/dist/img/cron-icon/crn-list.svg +1 -0
- package/dist/img/cron-icon/crn-map.svg +1 -0
- package/dist/img/cron-icon/crn-multiselect.svg +1 -0
- package/dist/img/cron-icon/crn-paragraph.svg +1 -0
- package/dist/img/cron-icon/crn-plugin.svg +1 -0
- package/dist/img/cron-icon/crn-radio.svg +1 -0
- package/dist/img/cron-icon/crn-radiogroup.svg +1 -0
- package/dist/img/cron-icon/crn-range.svg +1 -0
- package/dist/img/cron-icon/crn-rating.svg +1 -0
- package/dist/img/cron-icon/crn-select.svg +1 -0
- package/dist/img/cron-icon/crn-spacer.svg +1 -0
- package/dist/img/cron-icon/crn-tabs-icon-only.svg +1 -0
- package/dist/img/cron-icon/crn-tabs.svg +1 -0
- package/dist/img/cron-icon/crn-text-component.svg +1 -0
- package/dist/img/cron-icon/crn-textarea.svg +1 -0
- package/dist/img/cron-icon/crn-textinput.svg +1 -0
- package/dist/img/cron-icon/crn-textinputbutton.svg +1 -0
- package/dist/img/cron-icon/crn-textinputicon.svg +1 -0
- package/dist/img/cron-icon/crn-toggle.svg +1 -0
- package/dist/img/cron-icon/crn-video.svg +1 -0
- package/dist/img/placehold-100x100.png +0 -0
- package/dist/img/placehold-900x500.png +0 -0
- package/dist/img/qr-code.png +0 -0
- package/dist/img/svg-charts.svg +1 -0
- package/dist/img/user.svg +1 -0
- package/dist/js/LanguageSelectDirective.js +1 -0
- package/dist/js/LocaleService.js +1 -0
- package/dist/js/app.authentication.js +1 -0
- package/dist/js/app.js +1 -0
- package/dist/js/controllers.authentication.js +1 -0
- package/dist/js/controllers.js +1 -0
- package/dist/js/custom.controllers.js +1 -0
- package/dist/js/customModules.js +1 -0
- package/dist/js/customStateProvider.js +0 -0
- package/dist/js/directives.js +1 -0
- package/dist/js/filters.js +1 -0
- package/dist/js/local-dateformat.directive.js +1 -0
- package/dist/js/reports/parameters.controller.js +1 -0
- package/dist/js/reports/reports.service.js +1 -0
- package/dist/js/services.js +1 -0
- package/dist/js/upload.service.js +1 -0
- package/gulpfile.js +73 -0
- package/i18n/locale_en_us.json +126 -0
- package/i18n/locale_pt_br.json +126 -0
- package/img/cron-icon/crn-QRCode.svg +38 -0
- package/img/cron-icon/crn-anchor.svg +29 -0
- package/img/cron-icon/crn-button-bar.svg +1 -0
- package/img/cron-icon/crn-button.svg +24 -0
- package/img/cron-icon/crn-card.svg +1 -0
- package/img/cron-icon/crn-carousel.svg +26 -0
- package/img/cron-icon/crn-chart.svg +19 -0
- package/img/cron-icon/crn-checkbox.svg +15 -0
- package/img/cron-icon/crn-container.svg +1 -0
- package/img/cron-icon/crn-cron-crud.svg +28 -0
- package/img/cron-icon/crn-datasource.svg +27 -0
- package/img/cron-icon/crn-dynamic-file.svg +1 -0
- package/img/cron-icon/crn-dynamic-image.svg +25 -0
- package/img/cron-icon/crn-enterprise-dynamic-combobox.svg +27 -0
- package/img/cron-icon/crn-evaluation.svg +1 -0
- package/img/cron-icon/crn-form.svg +24 -0
- package/img/cron-icon/crn-header.svg +18 -0
- package/img/cron-icon/crn-icon.svg +23 -0
- package/img/cron-icon/crn-image.svg +20 -0
- package/img/cron-icon/crn-infinite-scroll.svg +1 -0
- package/img/cron-icon/crn-input-floating.svg +1 -0
- package/img/cron-icon/crn-input-inline.svg +1 -0
- package/img/cron-icon/crn-ion-footer-bar.svg +1 -0
- package/img/cron-icon/crn-ion-list.svg +1 -0
- package/img/cron-icon/crn-item-swipe.svg +15 -0
- package/img/cron-icon/crn-kendo-chat.svg +1 -0
- package/img/cron-icon/crn-label.svg +1 -0
- package/img/cron-icon/crn-list-avatar.svg +1 -0
- package/img/cron-icon/crn-list-icon.svg +1 -0
- package/img/cron-icon/crn-list-item-avatar.svg +1 -0
- package/img/cron-icon/crn-list-item-icon.svg +1 -0
- package/img/cron-icon/crn-list-item-thumbnail.svg +1 -0
- package/img/cron-icon/crn-list-item.svg +1 -0
- package/img/cron-icon/crn-list-swipe.svg +17 -0
- package/img/cron-icon/crn-list-thumbnail.svg +17 -0
- package/img/cron-icon/crn-list.svg +16 -0
- package/img/cron-icon/crn-map.svg +1 -0
- package/img/cron-icon/crn-multiselect.svg +1 -0
- package/img/cron-icon/crn-paragraph.svg +1 -0
- package/img/cron-icon/crn-plugin.svg +44 -0
- package/img/cron-icon/crn-radio.svg +21 -0
- package/img/cron-icon/crn-radiogroup.svg +25 -0
- package/img/cron-icon/crn-range.svg +1 -0
- package/img/cron-icon/crn-rating.svg +20 -0
- package/img/cron-icon/crn-select.svg +1 -0
- package/img/cron-icon/crn-spacer.svg +1 -0
- package/img/cron-icon/crn-tabs-icon-only.svg +24 -0
- package/img/cron-icon/crn-tabs.svg +17 -0
- package/img/cron-icon/crn-text-component.svg +22 -0
- package/img/cron-icon/crn-textarea.svg +22 -0
- package/img/cron-icon/crn-textinput.svg +23 -0
- package/img/cron-icon/crn-textinputbutton.svg +33 -0
- package/img/cron-icon/crn-textinputicon.svg +29 -0
- package/img/cron-icon/crn-toggle.svg +1 -0
- package/img/cron-icon/crn-video.svg +1 -0
- package/img/placehold-100x100.png +0 -0
- package/img/placehold-900x500.png +0 -0
- package/img/qr-code.png +0 -0
- package/img/svg-charts.svg +1 -0
- package/img/user.svg +18 -0
- package/js/LanguageSelectDirective.js +30 -0
- package/js/LocaleService.js +59 -0
- package/js/app.authentication.js +594 -0
- package/js/app.js +349 -0
- package/js/controllers.authentication.js +540 -0
- package/js/controllers.js +90 -0
- package/js/custom.controllers.js +11 -0
- package/js/customModules.js +1 -0
- package/js/customStateProvider.js +107 -0
- package/js/directives.js +2426 -0
- package/js/filters.js +47 -0
- package/js/local-dateformat.directive.js +15 -0
- package/js/reports/parameters.controller.js +86 -0
- package/js/reports/reports.service.js +466 -0
- package/js/services.js +5 -0
- package/js/upload.service.js +165 -0
- package/lib/ionic/css/ionic.css +9802 -0
- package/lib/ionic/css/ionic.min.css +23 -0
- package/lib/ionic/fonts/ionicons.eot +0 -0
- package/lib/ionic/fonts/ionicons.svg +2230 -0
- package/lib/ionic/fonts/ionicons.ttf +0 -0
- package/lib/ionic/fonts/ionicons.woff +0 -0
- package/lib/ionic/js/angular/angular-animate.js +4115 -0
- package/lib/ionic/js/angular/angular-animate.min.js +56 -0
- package/lib/ionic/js/angular/angular-resource.js +768 -0
- package/lib/ionic/js/angular/angular-resource.min.js +15 -0
- package/lib/ionic/js/angular/angular-sanitize.js +717 -0
- package/lib/ionic/js/angular/angular-sanitize.min.js +15 -0
- package/lib/ionic/js/angular/angular.js +30714 -0
- package/lib/ionic/js/angular/angular.min.js +311 -0
- package/lib/ionic/js/angular-ui/angular-ui-router.js +4232 -0
- package/lib/ionic/js/angular-ui/angular-ui-router.min.js +7 -0
- package/lib/ionic/js/ionic-angular.js +14391 -0
- package/lib/ionic/js/ionic-angular.min.js +18 -0
- package/lib/ionic/js/ionic.bundle.js +67590 -0
- package/lib/ionic/js/ionic.bundle.min.js +472 -0
- package/lib/ionic/js/ionic.js +13356 -0
- package/lib/ionic/js/ionic.min.js +20 -0
- package/lib/ionic/scss/_action-sheet.scss +170 -0
- package/lib/ionic/scss/_animations.scss +48 -0
- package/lib/ionic/scss/_backdrop.scss +24 -0
- package/lib/ionic/scss/_badge.scss +62 -0
- package/lib/ionic/scss/_bar.scss +417 -0
- package/lib/ionic/scss/_button-bar.scss +92 -0
- package/lib/ionic/scss/_button.scss +252 -0
- package/lib/ionic/scss/_checkbox.scss +180 -0
- package/lib/ionic/scss/_form.scss +327 -0
- package/lib/ionic/scss/_grid.scss +159 -0
- package/lib/ionic/scss/_items.scss +825 -0
- package/lib/ionic/scss/_list.scss +125 -0
- package/lib/ionic/scss/_loading.scss +51 -0
- package/lib/ionic/scss/_menu.scss +70 -0
- package/lib/ionic/scss/_mixins.scss +642 -0
- package/lib/ionic/scss/_modal.scss +102 -0
- package/lib/ionic/scss/_platform.scss +77 -0
- package/lib/ionic/scss/_popover.scss +168 -0
- package/lib/ionic/scss/_popup.scss +110 -0
- package/lib/ionic/scss/_progress.scss +11 -0
- package/lib/ionic/scss/_radio.scss +47 -0
- package/lib/ionic/scss/_range.scss +160 -0
- package/lib/ionic/scss/_refresher.scss +113 -0
- package/lib/ionic/scss/_reset.scss +365 -0
- package/lib/ionic/scss/_scaffolding.scss +291 -0
- package/lib/ionic/scss/_select.scss +142 -0
- package/lib/ionic/scss/_slide-box.scss +71 -0
- package/lib/ionic/scss/_slides.scss +529 -0
- package/lib/ionic/scss/_spinner.scss +100 -0
- package/lib/ionic/scss/_tabs.scss +542 -0
- package/lib/ionic/scss/_toggle.scss +198 -0
- package/lib/ionic/scss/_transitions.scss +188 -0
- package/lib/ionic/scss/_type.scss +166 -0
- package/lib/ionic/scss/_util.scss +296 -0
- package/lib/ionic/scss/_variables.scss +764 -0
- package/lib/ionic/scss/ionic.scss +54 -0
- package/lib/ionic/scss/ionicons/_ionicons-font.scss +28 -0
- package/lib/ionic/scss/ionicons/_ionicons-icons.scss +1473 -0
- package/lib/ionic/scss/ionicons/_ionicons-variables.scss +741 -0
- package/lib/ionic/scss/ionicons/ionicons.scss +16 -0
- package/lib/ionic/version.json +6 -0
- package/lib/kendo/kendo.all.min.js +125 -0
- package/lib/kendo/kendo.default-v2.min.css +10 -0
- package/lib/notification-mobile.js +57 -0
- package/package.json +62 -0
- package/postupdate.json +407 -0
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
<?xml version="1.0" encoding="utf-8"?>
|
|
2
|
+
<!-- Generator: Adobe Illustrator 25.3.1, SVG Export Plug-In . SVG Version: 6.00 Build 0) -->
|
|
3
|
+
<svg version="1.1" id="Camada_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px"
|
|
4
|
+
viewBox="0 0 24 24" style="enable-background:new 0 0 24 24;" xml:space="preserve">
|
|
5
|
+
<style type="text/css">
|
|
6
|
+
.st0{fill:#C9C9C9;}
|
|
7
|
+
</style>
|
|
8
|
+
<g id="Camada_1_1_">
|
|
9
|
+
<g>
|
|
10
|
+
<path class="st0" d="M4,8h16c2.2,0,4-1.8,4-4s-1.8-4-4-4H4C1.8,0,0,1.8,0,4S1.8,8,4,8z M15,2h5c1.1,0,2,0.9,2,2s-0.9,2-2,2h-5
|
|
11
|
+
c-1.1,0-2-0.9-2-2S13.9,2,15,2z M4,2h5c1.1,0,2,0.9,2,2s-0.9,2-2,2H4C2.9,6,2,5.1,2,4S2.9,2,4,2z"/>
|
|
12
|
+
<path class="st0" d="M4,24h16c2.2,0,4-1.8,4-4v-6c0-2.2-1.8-4-4-4H4c-2.2,0-4,1.8-4,4v6C0,22.2,1.8,24,4,24z"/>
|
|
13
|
+
</g>
|
|
14
|
+
</g>
|
|
15
|
+
<g id="Camada_2_1_">
|
|
16
|
+
</g>
|
|
17
|
+
</svg>
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
<?xml version="1.0" encoding="utf-8"?>
|
|
2
|
+
<!-- Generator: Adobe Illustrator 25.3.1, SVG Export Plug-In . SVG Version: 6.00 Build 0) -->
|
|
3
|
+
<svg version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px"
|
|
4
|
+
viewBox="0 0 24 24" style="enable-background:new 0 0 24 24;" xml:space="preserve">
|
|
5
|
+
<style type="text/css">
|
|
6
|
+
.st0{fill:#C9C9C9;}
|
|
7
|
+
</style>
|
|
8
|
+
<g id="Camada_1">
|
|
9
|
+
</g>
|
|
10
|
+
<g id="Camada_3">
|
|
11
|
+
</g>
|
|
12
|
+
<g id="Camada_4">
|
|
13
|
+
</g>
|
|
14
|
+
<g id="Camada_2">
|
|
15
|
+
<g>
|
|
16
|
+
<path class="st0" d="M16,6H8C7.45,6,7,6.45,7,7v2c0,0.55,0.45,1,1,1h8c0.55,0,1-0.45,1-1V7C17,6.45,16.55,6,16,6z"/>
|
|
17
|
+
<path class="st0" d="M20,0H4C1.8,0,0,1.8,0,4v16c0,2.2,1.8,4,4,4h16c2.2,0,4-1.8,4-4V4C24,1.8,22.2,0,20,0z M20.45,8.89l1.11,2.21
|
|
18
|
+
C21.8,11.6,21.55,12,21,12H3c-0.55,0-0.8-0.4-0.55-0.89l1.11-2.21c0.25-0.49,0.25-1.3,0-1.79L2.45,4.89C2.2,4.4,2.45,4,3,4h18
|
|
19
|
+
c0.55,0,0.8,0.4,0.55,0.89l-1.11,2.21C20.2,7.6,20.2,8.4,20.45,8.89z"/>
|
|
20
|
+
</g>
|
|
21
|
+
</g>
|
|
22
|
+
</svg>
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
<?xml version="1.0" encoding="utf-8"?>
|
|
2
|
+
<!-- Generator: Adobe Illustrator 25.3.1, SVG Export Plug-In . SVG Version: 6.00 Build 0) -->
|
|
3
|
+
<svg version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px"
|
|
4
|
+
viewBox="0 0 24 24" style="enable-background:new 0 0 24 24;" xml:space="preserve">
|
|
5
|
+
<style type="text/css">
|
|
6
|
+
.st0{fill:#C9C9C9;}
|
|
7
|
+
</style>
|
|
8
|
+
<g id="Camada_1">
|
|
9
|
+
</g>
|
|
10
|
+
<g id="Camada_3">
|
|
11
|
+
</g>
|
|
12
|
+
<g id="Camada_4">
|
|
13
|
+
</g>
|
|
14
|
+
<g id="Camada_2">
|
|
15
|
+
<g>
|
|
16
|
+
<path class="st0" d="M20,0H4C1.8,0,0,1.8,0,4v16c0,2.2,1.8,4,4,4h16c2.2,0,4-1.8,4-4V4C24,1.8,22.2,0,20,0z M13.5,18H15
|
|
17
|
+
c0.55,0,1,0.45,1,1c0,0.55-0.45,1-1,1H9c-0.55,0-1-0.45-1-1c0-0.55,0.45-1,1-1h1.5c0.28,0,0.5-0.22,0.5-0.5v-11
|
|
18
|
+
C11,6.22,10.78,6,10.5,6H9C8.45,6,8,5.55,8,5c0-0.55,0.45-1,1-1h6c0.55,0,1,0.45,1,1c0,0.55-0.45,1-1,1h-1.5
|
|
19
|
+
C13.22,6,13,6.22,13,6.5v11C13,17.78,13.22,18,13.5,18z"/>
|
|
20
|
+
</g>
|
|
21
|
+
</g>
|
|
22
|
+
</svg>
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
<?xml version="1.0" encoding="utf-8"?>
|
|
2
|
+
<!-- Generator: Adobe Illustrator 25.3.1, SVG Export Plug-In . SVG Version: 6.00 Build 0) -->
|
|
3
|
+
<svg version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px"
|
|
4
|
+
viewBox="0 0 24 24" style="enable-background:new 0 0 24 24;" xml:space="preserve">
|
|
5
|
+
<style type="text/css">
|
|
6
|
+
.st0{fill:#C9C9C9;}
|
|
7
|
+
</style>
|
|
8
|
+
<g id="Camada_1">
|
|
9
|
+
</g>
|
|
10
|
+
<g id="Camada_3">
|
|
11
|
+
</g>
|
|
12
|
+
<g id="Camada_4">
|
|
13
|
+
</g>
|
|
14
|
+
<g id="Camada_2">
|
|
15
|
+
<g>
|
|
16
|
+
<path class="st0" d="M9.01,8H2c-1.1,0-2,0.9-2,2v4c0,1.1,0.9,2,2,2h7.01V8z"/>
|
|
17
|
+
<path class="st0" d="M22,8h-7.01v8H22c1.1,0,2-0.9,2-2v-4C24,8.9,23.1,8,22,8z"/>
|
|
18
|
+
<path class="st0" d="M15,18h-1.5c-0.28,0-0.5-0.22-0.5-0.5v-11C13,6.22,13.22,6,13.5,6H15c0.55,0,1-0.45,1-1c0-0.55-0.45-1-1-1H9
|
|
19
|
+
C8.45,4,8,4.45,8,5c0,0.55,0.45,1,1,1h1.5C10.78,6,11,6.22,11,6.5v11c0,0.28-0.22,0.5-0.5,0.5H9c-0.55,0-1,0.45-1,1
|
|
20
|
+
c0,0.55,0.45,1,1,1h6c0.55,0,1-0.45,1-1C16,18.45,15.55,18,15,18z"/>
|
|
21
|
+
</g>
|
|
22
|
+
</g>
|
|
23
|
+
</svg>
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
<?xml version="1.0" encoding="utf-8"?>
|
|
2
|
+
<!-- Generator: Adobe Illustrator 25.3.1, SVG Export Plug-In . SVG Version: 6.00 Build 0) -->
|
|
3
|
+
<svg version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px"
|
|
4
|
+
viewBox="0 0 24 24" style="enable-background:new 0 0 24 24;" xml:space="preserve">
|
|
5
|
+
<style type="text/css">
|
|
6
|
+
.st0{fill:#C9C9C9;}
|
|
7
|
+
</style>
|
|
8
|
+
<g id="Camada_1">
|
|
9
|
+
</g>
|
|
10
|
+
<g id="Camada_3">
|
|
11
|
+
</g>
|
|
12
|
+
<g id="Camada_4">
|
|
13
|
+
</g>
|
|
14
|
+
<g id="Camada_2">
|
|
15
|
+
<g>
|
|
16
|
+
<path class="st0" d="M3.01,16V8H2c-1.1,0-2,0.9-2,2v4c0,1.1,0.9,2,2,2H3.01z"/>
|
|
17
|
+
<path class="st0" d="M10,8H8.99v8H10c1.1,0,2-0.9,2-2v-4C12,8.9,11.1,8,10,8z"/>
|
|
18
|
+
<path class="st0" d="M9,18H7.5C7.22,18,7,17.78,7,17.5v-11C7,6.22,7.22,6,7.5,6H9c0.55,0,1-0.45,1-1c0-0.55-0.45-1-1-1H3
|
|
19
|
+
C2.45,4,2,4.45,2,5c0,0.55,0.45,1,1,1h1.5C4.78,6,5,6.22,5,6.5v11C5,17.78,4.78,18,4.5,18H3c-0.55,0-1,0.45-1,1c0,0.55,0.45,1,1,1
|
|
20
|
+
h6c0.55,0,1-0.45,1-1C10,18.45,9.55,18,9,18z"/>
|
|
21
|
+
<path class="st0" d="M21.75,15.17c-0.14-0.14-0.32-0.22-0.53-0.22c-0.41,0-0.75,0.34-0.75,0.75v-0.5c0-0.21-0.08-0.39-0.22-0.53
|
|
22
|
+
s-0.32-0.22-0.53-0.22c-0.31,0-0.58,0.19-0.69,0.46c-0.04,0.09-0.06,0.19-0.06,0.29v-0.5v0c0-0.21-0.08-0.39-0.22-0.53
|
|
23
|
+
s-0.32-0.22-0.53-0.22c-0.1,0-0.2,0.02-0.29,0.06c-0.27,0.11-0.46,0.38-0.46,0.69v-3c0-0.21-0.08-0.39-0.22-0.53
|
|
24
|
+
s-0.32-0.22-0.53-0.22c-0.31,0-0.58,0.19-0.69,0.46c-0.04,0.09-0.06,0.19-0.06,0.29V16v0.95l-0.72-0.72
|
|
25
|
+
c-0.29-0.29-0.77-0.29-1.06,0c-0.29,0.29-0.29,0.77,0,1.06l1.63,1.63c0,0,0,0,0,0l0.53,0.53l0,0c0.28,0.31,0.67,0.5,1.11,0.5h3
|
|
26
|
+
c0.83,0,1.5-0.68,1.5-1.5V18.2v-0.75V16v-0.3v0c0-0.17-0.07-0.33-0.17-0.45C21.78,15.22,21.77,15.19,21.75,15.17z"/>
|
|
27
|
+
<path class="st0" d="M22,8h-6c-1.1,0-2,0.9-2,2v4c0,0.39,0.12,0.75,0.31,1.06c0.13-0.03,0.27-0.05,0.41-0.05
|
|
28
|
+
c0.08,0,0.17,0.01,0.25,0.02V11.7c0-0.97,0.79-1.75,1.75-1.75s1.75,0.79,1.75,1.75v1.27c0.39,0.06,0.73,0.24,0.99,0.5
|
|
29
|
+
c0.08-0.01,0.17-0.02,0.26-0.02c0.49,0,0.93,0.2,1.24,0.52c0.08-0.01,0.17-0.02,0.26-0.02c0.97,0,1.75,0.79,1.75,1.75v0.04
|
|
30
|
+
C23.58,15.39,24,14.75,24,14v-4C24,8.9,23.1,8,22,8z"/>
|
|
31
|
+
</g>
|
|
32
|
+
</g>
|
|
33
|
+
</svg>
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
<?xml version="1.0" encoding="utf-8"?>
|
|
2
|
+
<!-- Generator: Adobe Illustrator 25.3.1, SVG Export Plug-In . SVG Version: 6.00 Build 0) -->
|
|
3
|
+
<svg version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px"
|
|
4
|
+
viewBox="0 0 24 24" style="enable-background:new 0 0 24 24;" xml:space="preserve">
|
|
5
|
+
<style type="text/css">
|
|
6
|
+
.st0{fill:#C9C9C9;}
|
|
7
|
+
</style>
|
|
8
|
+
<g id="Camada_1">
|
|
9
|
+
</g>
|
|
10
|
+
<g id="Camada_3">
|
|
11
|
+
</g>
|
|
12
|
+
<g id="Camada_4">
|
|
13
|
+
</g>
|
|
14
|
+
<g id="Camada_2">
|
|
15
|
+
<g>
|
|
16
|
+
<path class="st0" d="M15.01,16V8H14c-1.1,0-2,0.9-2,2v4c0,1.1,0.9,2,2,2H15.01z"/>
|
|
17
|
+
<path class="st0" d="M22,8h-1.01v8H22c1.1,0,2-0.9,2-2v-4C24,8.9,23.1,8,22,8z"/>
|
|
18
|
+
<path class="st0" d="M21,18h-1.5c-0.28,0-0.5-0.22-0.5-0.5v-11C19,6.22,19.22,6,19.5,6H21c0.55,0,1-0.45,1-1c0-0.55-0.45-1-1-1h-6
|
|
19
|
+
c-0.55,0-1,0.45-1,1c0,0.55,0.45,1,1,1h1.5C16.78,6,17,6.22,17,6.5v11c0,0.28-0.22,0.5-0.5,0.5H15c-0.55,0-1,0.45-1,1
|
|
20
|
+
c0,0.55,0.45,1,1,1h6c0.55,0,1-0.45,1-1C22,18.45,21.55,18,21,18z"/>
|
|
21
|
+
<path class="st0" d="M9.63,11.51l-0.59-0.33c-0.48-0.27-0.75-0.93-0.6-1.46l0.18-0.65c0.15-0.53-0.17-0.84-0.7-0.7L7.28,8.55
|
|
22
|
+
C6.75,8.7,6.09,8.43,5.82,7.95L5.49,7.36c-0.27-0.48-0.71-0.48-0.99,0L4.17,7.95C3.9,8.43,3.25,8.7,2.72,8.55L2.07,8.37
|
|
23
|
+
c-0.53-0.15-0.84,0.17-0.7,0.7l0.18,0.65c0.15,0.53-0.12,1.19-0.6,1.46l-0.59,0.33c-0.48,0.27-0.48,0.71,0,0.99l0.59,0.33
|
|
24
|
+
c0.48,0.27,0.75,0.93,0.6,1.46l-0.18,0.65c-0.15,0.53,0.17,0.84,0.7,0.7l0.65-0.18c0.53-0.15,1.19,0.12,1.46,0.6l0.33,0.59
|
|
25
|
+
c0.27,0.48,0.71,0.48,0.99,0l0.33-0.59c0.27-0.48,0.93-0.75,1.46-0.6l0.65,0.18c0.53,0.15,0.84-0.17,0.7-0.7l-0.18-0.65
|
|
26
|
+
c-0.15-0.53,0.12-1.19,0.6-1.46l0.59-0.33C10.11,12.22,10.11,11.78,9.63,11.51z"/>
|
|
27
|
+
</g>
|
|
28
|
+
</g>
|
|
29
|
+
</svg>
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
<svg id="Camada_1" data-name="Camada 1" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><defs><style>.cls-1{fill:#c9c9c9;}</style></defs><path class="cls-1" d="M18,6H6A6,6,0,0,0,6,18H18A6,6,0,0,0,18,6ZM6,16a4,4,0,1,1,4-4A4,4,0,0,1,6,16Z"/></svg>
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
<svg id="Camada_1" data-name="Camada 1" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><defs><style>.cls-1{fill:#c9c9c9;}</style></defs><path class="cls-1" d="M12,0A12,12,0,1,0,24,12,12,12,0,0,0,12,0Zm3.64,12.36-4.78,4.78a.5.5,0,0,1-.86-.36V7.22a.5.5,0,0,1,.86-.36l4.78,4.78A.51.51,0,0,1,15.64,12.36Z"/></svg>
|
|
Binary file
|
|
Binary file
|
package/img/qr-code.png
ADDED
|
Binary file
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
<svg id="Camada_1" data-name="Camada 1" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1133.86 849.86"><defs><style>.cls-1{fill:#616160;}</style></defs><title>svg-charts</title><path class="cls-1" d="M1106.45,705.91a24.74,24.74,0,0,1,7.48,18.16v85.47a25.54,25.54,0,0,1-25.64,25.64H45.57a24.74,24.74,0,0,1-18.16-7.48,24.72,24.72,0,0,1-7.48-18.16V40.32a24.7,24.7,0,0,1,7.48-18.16,24.7,24.7,0,0,1,18.16-7.48H131a24.7,24.7,0,0,1,18.16,7.48,24.7,24.7,0,0,1,7.48,18.16V698.43h931.61A24.72,24.72,0,0,1,1106.45,705.91ZM635.3,339.46,453.68,95.88q-8.55-10.69-22.43-9.62T411,98L225.05,407.84V630.05h820.51L853.25,228.35q-4.28-10.68-16-13.89t-20.3,5.34v-2.13Z"/></svg>
|
package/img/user.svg
ADDED
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
<?xml version="1.0" encoding="utf-8"?>
|
|
2
|
+
<!-- Generator: Adobe Illustrator 25.2.1, SVG Export Plug-In . SVG Version: 6.00 Build 0) -->
|
|
3
|
+
<svg version="1.1" id="Camada_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px"
|
|
4
|
+
viewBox="0 0 80 80" style="enable-background:new 0 0 80 80;" xml:space="preserve">
|
|
5
|
+
<style type="text/css">
|
|
6
|
+
.st0{fill:#323232;}
|
|
7
|
+
.st1{fill:#FBFBFB;}
|
|
8
|
+
</style>
|
|
9
|
+
<g>
|
|
10
|
+
<path class="st0" d="M9.3,79.5c-4.7-1.5-8-4.3-9.3-9.1C0,50.2,0,29.9,0,9.7c2.9-7.1,5.8-9.2,13.3-9.2c17.6,0,35.2,0,52.8,0
|
|
11
|
+
c8.3,0,11.5,2.4,13.9,10.3c0,19.5,0,39,0,58.6c-1.2,5.7-4.6,9.1-10.4,10.2C49.5,79.6,29.4,79.5,9.3,79.5z"/>
|
|
12
|
+
<path class="st1" d="M39.6,67.4c-4.8,0-9.5,0.1-14.3,0c-5.6-0.1-9.1-3.4-9-8.7c0-8,3.9-14.5,8.8-20.4c2-2.4,4.9-2.1,7.5-0.6
|
|
13
|
+
c4.7,2.6,9.4,2.5,14.1,0.1c4.3-2.2,7.4-0.9,9.9,3c3.3,5,6.1,10.1,6.8,16.1c0.8,6.7-2.7,10.6-9.5,10.7
|
|
14
|
+
C49.1,67.4,44.4,67.4,39.6,67.4z"/>
|
|
15
|
+
<path class="st1" d="M50.4,24.6c0,6.8-4.5,11.8-10.6,11.7c-5.8-0.1-10.2-5-10.3-11.6c-0.1-6.6,4.6-12,10.4-12.1
|
|
16
|
+
C45.7,12.7,50.4,18,50.4,24.6z"/>
|
|
17
|
+
</g>
|
|
18
|
+
</svg>
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
angular.module('MyApp')
|
|
2
|
+
.directive('ngTranslateLanguageSelect', function(LocaleService) {
|
|
3
|
+
'use strict';
|
|
4
|
+
return {
|
|
5
|
+
restrict: 'A',
|
|
6
|
+
replace: true,
|
|
7
|
+
template: '' +
|
|
8
|
+
'<div class="language-select" ng-if="visible">' +
|
|
9
|
+
'<label>' +
|
|
10
|
+
'<select ' +
|
|
11
|
+
'ng-init="currentLocaleDisplayName = localesDisplayNames[0]"' +
|
|
12
|
+
'ng-model="currentLocaleDisplayName" ' +
|
|
13
|
+
'ng-options="localesDisplayName for localesDisplayName in localesDisplayNames" ' +
|
|
14
|
+
'ng-change="changeLanguage(currentLocaleDisplayName)">' +
|
|
15
|
+
'aria-label="Language Selector"' +
|
|
16
|
+
'</select>' +
|
|
17
|
+
'</label>' +
|
|
18
|
+
'</div>' +
|
|
19
|
+
'',
|
|
20
|
+
controller: function($scope) {
|
|
21
|
+
$scope.currentLocaleDisplayName = LocaleService.getLocaleDisplayName();
|
|
22
|
+
$scope.localesDisplayNames = LocaleService.getLocalesDisplayNames();
|
|
23
|
+
$scope.visible = $scope.localesDisplayNames &&
|
|
24
|
+
$scope.localesDisplayNames.length > 1;
|
|
25
|
+
$scope.changeLanguage = function(locale) {
|
|
26
|
+
LocaleService.setLocaleByDisplayName(locale);
|
|
27
|
+
};
|
|
28
|
+
}
|
|
29
|
+
};
|
|
30
|
+
});
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
angular.module('MyApp').service('LocaleService', function($translate, LOCALES, $rootScope, tmhDynamicLocale) {
|
|
2
|
+
'use strict';
|
|
3
|
+
// PREPARING LOCALES INFO
|
|
4
|
+
var localesObj = LOCALES.locales;
|
|
5
|
+
|
|
6
|
+
// locales and locales display names
|
|
7
|
+
var _LOCALES = Object.keys(localesObj);
|
|
8
|
+
if (!_LOCALES || _LOCALES.length === 0) {
|
|
9
|
+
console.error('There are no _LOCALES provided');
|
|
10
|
+
}
|
|
11
|
+
var _LOCALES_DISPLAY_NAMES = [];
|
|
12
|
+
_LOCALES.forEach(function(locale) {
|
|
13
|
+
_LOCALES_DISPLAY_NAMES.push(localesObj[locale]);
|
|
14
|
+
});
|
|
15
|
+
|
|
16
|
+
// STORING CURRENT LOCALE
|
|
17
|
+
var currentLocale = $translate.proposedLanguage(); // because of async loading
|
|
18
|
+
|
|
19
|
+
// METHODS
|
|
20
|
+
var checkLocaleIsValid = function(locale) {
|
|
21
|
+
return _LOCALES.indexOf(locale) !== -1;
|
|
22
|
+
};
|
|
23
|
+
|
|
24
|
+
var setLocale = function(locale) {
|
|
25
|
+
if (!checkLocaleIsValid(locale)) {
|
|
26
|
+
console.error('Locale name "' + locale + '" is invalid');
|
|
27
|
+
return;
|
|
28
|
+
}
|
|
29
|
+
currentLocale = locale; // updating current locale
|
|
30
|
+
|
|
31
|
+
// asking angular-translate to load and apply proper translations
|
|
32
|
+
$translate.use(locale);
|
|
33
|
+
};
|
|
34
|
+
|
|
35
|
+
// EVENTS
|
|
36
|
+
// on successful applying translations by angular-translate
|
|
37
|
+
$rootScope.$on('$translateChangeSuccess', function(event, data) {
|
|
38
|
+
document.documentElement.setAttribute('lang', data.language); // sets "lang" attribute to html
|
|
39
|
+
|
|
40
|
+
// asking angular-dynamic-locale to load and apply proper AngularJS $locale setting
|
|
41
|
+
tmhDynamicLocale.set(data.language.toLowerCase().replace(/_/g, '-'));
|
|
42
|
+
});
|
|
43
|
+
|
|
44
|
+
return {
|
|
45
|
+
getLocaleDisplayName: function() {
|
|
46
|
+
return localesObj[currentLocale];
|
|
47
|
+
},
|
|
48
|
+
setLocaleByDisplayName: function(localeDisplayName) {
|
|
49
|
+
setLocale(
|
|
50
|
+
_LOCALES[
|
|
51
|
+
_LOCALES_DISPLAY_NAMES.indexOf(localeDisplayName) // get locale index
|
|
52
|
+
]
|
|
53
|
+
);
|
|
54
|
+
},
|
|
55
|
+
getLocalesDisplayNames: function() {
|
|
56
|
+
return _LOCALES_DISPLAY_NAMES;
|
|
57
|
+
}
|
|
58
|
+
};
|
|
59
|
+
});
|
|
@@ -0,0 +1,594 @@
|
|
|
1
|
+
var cronappModules = [
|
|
2
|
+
'ionic',
|
|
3
|
+
'ui.router',
|
|
4
|
+
'ngResource',
|
|
5
|
+
'ngSanitize',
|
|
6
|
+
'custom.controllers',
|
|
7
|
+
'custom.services',
|
|
8
|
+
'ui.bootstrap',
|
|
9
|
+
'report.services',
|
|
10
|
+
'datasourcejs',
|
|
11
|
+
'pascalprecht.translate',
|
|
12
|
+
'tmh.dynamicLocale',
|
|
13
|
+
'ui-notification',
|
|
14
|
+
'ngFileUpload',
|
|
15
|
+
'angularMoment',
|
|
16
|
+
'upload.services',
|
|
17
|
+
'ngAria',
|
|
18
|
+
'ngCookies'
|
|
19
|
+
];
|
|
20
|
+
|
|
21
|
+
if (window.customModules) {
|
|
22
|
+
cronappModules = cronappModules.concat(window.customModules);
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
window.paceOptions = {
|
|
26
|
+
document: true,
|
|
27
|
+
eventLag: true,
|
|
28
|
+
restartOnPushState: true,
|
|
29
|
+
restartOnRequestAfter: true,
|
|
30
|
+
ajax: {
|
|
31
|
+
trackMethods: [ "PUT", "POST" , "GET"]
|
|
32
|
+
}
|
|
33
|
+
};
|
|
34
|
+
|
|
35
|
+
var app = (function() {
|
|
36
|
+
|
|
37
|
+
return angular.module('MyApp', cronappModules)
|
|
38
|
+
.constant('LOCALES', {
|
|
39
|
+
'locales': {
|
|
40
|
+
'pt_br': 'Portugues (Brasil)',
|
|
41
|
+
'en_us': 'English'
|
|
42
|
+
},
|
|
43
|
+
'preferredLocale': 'pt_br'
|
|
44
|
+
})
|
|
45
|
+
.run(function($ionicPlatform) {
|
|
46
|
+
$ionicPlatform.ready(function() {
|
|
47
|
+
// Remove splash screen
|
|
48
|
+
setTimeout(function() {
|
|
49
|
+
if (navigator.splashscreen) {
|
|
50
|
+
navigator.splashscreen.hide();
|
|
51
|
+
}
|
|
52
|
+
}, 100);
|
|
53
|
+
// Hide the accessory bar by default (remove this to show the accessory bar above the keyboard
|
|
54
|
+
// for form inputs)
|
|
55
|
+
if (window.cordova &&
|
|
56
|
+
window.cordova.plugins && window.cordova.plugins.Keyboard) {
|
|
57
|
+
cordova.plugins.Keyboard
|
|
58
|
+
.hideKeyboardAccessoryBar(true);
|
|
59
|
+
cordova.plugins.Keyboard.disableScroll(true);
|
|
60
|
+
|
|
61
|
+
}
|
|
62
|
+
if (window.StatusBar) {
|
|
63
|
+
// org.apache.cordova.statusbar required
|
|
64
|
+
StatusBar.styleDefault();
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
// Fix for iPhone X/XS screen rotation issue
|
|
68
|
+
// https://stackoverflow.com/questions/53290178/cordova-iphone-x-safe-area-after-layout-orientation-changes
|
|
69
|
+
if(ionic.Platform.is('ios')){
|
|
70
|
+
window.addEventListener("orientationchange", function() {
|
|
71
|
+
var originalMarginTop = document.body.style.marginTop;
|
|
72
|
+
document.body.style.marginTop = "1px";
|
|
73
|
+
setTimeout(function () {
|
|
74
|
+
document.body.style.marginTop = originalMarginTop;
|
|
75
|
+
}, 100);
|
|
76
|
+
}, false);
|
|
77
|
+
}
|
|
78
|
+
});
|
|
79
|
+
})
|
|
80
|
+
.config(['$httpProvider', '$compileProvider', function ($httpProvider, $compileProvider) {
|
|
81
|
+
$compileProvider.imgSrcSanitizationWhitelist(/^\s*(https?|ftp|file|blob|ionic):|data:image/);
|
|
82
|
+
var interceptor = [
|
|
83
|
+
'$q',
|
|
84
|
+
'$rootScope',
|
|
85
|
+
'$injector',
|
|
86
|
+
function ($q, $rootScope, $injector) {
|
|
87
|
+
var service = {
|
|
88
|
+
request: function (config) {
|
|
89
|
+
var _u = JSON.parse(localStorage.getItem('_u'));
|
|
90
|
+
if (_u && _u.token) {
|
|
91
|
+
config.headers['X-AUTH-TOKEN'] = _u.token;
|
|
92
|
+
window.uToken = _u.token;
|
|
93
|
+
}
|
|
94
|
+
return config;
|
|
95
|
+
},
|
|
96
|
+
responseError: function (error) {
|
|
97
|
+
if (error.status === 500) {
|
|
98
|
+
// Verify if token is still valid
|
|
99
|
+
let $state = $injector.get('$state');
|
|
100
|
+
let $http = $injector.get('$http');
|
|
101
|
+
let Notification = $injector.get('Notification');
|
|
102
|
+
window.refreshToken(Notification, $http, () => {
|
|
103
|
+
}, (e) => {
|
|
104
|
+
if (e.status !== 404) {
|
|
105
|
+
localStorage.removeItem("_u")
|
|
106
|
+
$state.go("login");
|
|
107
|
+
}
|
|
108
|
+
});
|
|
109
|
+
}
|
|
110
|
+
return $q.reject(error);
|
|
111
|
+
}
|
|
112
|
+
};
|
|
113
|
+
return service;
|
|
114
|
+
}
|
|
115
|
+
];
|
|
116
|
+
$httpProvider.interceptors.push(interceptor);
|
|
117
|
+
}
|
|
118
|
+
])
|
|
119
|
+
.config(function($stateProvider, $urlRouterProvider, $ionicConfigProvider) {
|
|
120
|
+
$ionicConfigProvider.navBar.alignTitle('center');
|
|
121
|
+
$ionicConfigProvider.tabs.position('bottom');
|
|
122
|
+
if(ionic.Platform.isIOS()) {
|
|
123
|
+
$ionicConfigProvider.scrolling.jsScrolling(false);
|
|
124
|
+
}
|
|
125
|
+
})
|
|
126
|
+
.config(function($stateProvider, $urlRouterProvider, NotificationProvider) {
|
|
127
|
+
NotificationProvider.setOptions({
|
|
128
|
+
delay: 5000,
|
|
129
|
+
startTop: 20,
|
|
130
|
+
startRight: 10,
|
|
131
|
+
verticalSpacing: 20,
|
|
132
|
+
horizontalSpacing: 20,
|
|
133
|
+
positionX: 'right',
|
|
134
|
+
positionY: 'top'
|
|
135
|
+
});
|
|
136
|
+
if (window.customStateProvider) {
|
|
137
|
+
window.customStateProvider($stateProvider);
|
|
138
|
+
}
|
|
139
|
+
else {
|
|
140
|
+
// Set up the states
|
|
141
|
+
$stateProvider
|
|
142
|
+
|
|
143
|
+
.state('main', {
|
|
144
|
+
url: "",
|
|
145
|
+
cache: false,
|
|
146
|
+
controller: 'InitialController',
|
|
147
|
+
templateUrl: function (urlattr) {
|
|
148
|
+
if(navigator.app){
|
|
149
|
+
// The code bellow is causing force close on devices running chromium WebView
|
|
150
|
+
// navigator.app.exitApp();
|
|
151
|
+
}
|
|
152
|
+
return '';
|
|
153
|
+
}
|
|
154
|
+
})
|
|
155
|
+
|
|
156
|
+
.state('login', {
|
|
157
|
+
url: "/app/login",
|
|
158
|
+
cache: false,
|
|
159
|
+
controller: 'LoginController',
|
|
160
|
+
templateUrl: 'views/login.view.html'
|
|
161
|
+
})
|
|
162
|
+
|
|
163
|
+
.state('publicRoot', {
|
|
164
|
+
url: "/public/{name:.*}",
|
|
165
|
+
cache: false,
|
|
166
|
+
controller: 'PageController',
|
|
167
|
+
templateUrl: function (urlattr) {
|
|
168
|
+
return 'views/public/' + urlattr.name + '.view.html';
|
|
169
|
+
}
|
|
170
|
+
})
|
|
171
|
+
|
|
172
|
+
.state('public', {
|
|
173
|
+
url: "/app/public",
|
|
174
|
+
cache: false,
|
|
175
|
+
controller: 'PublicMenuController',
|
|
176
|
+
templateUrl: 'node_modules/cronapp-framework-mobile-js/components/templates/publicMenu.template.html'
|
|
177
|
+
})
|
|
178
|
+
|
|
179
|
+
.state('public.pages', {
|
|
180
|
+
url: "/{name:.*}",
|
|
181
|
+
cache: false,
|
|
182
|
+
views: {
|
|
183
|
+
'menuContent': {
|
|
184
|
+
controller: 'PageController',
|
|
185
|
+
templateUrl: function (urlattr) {
|
|
186
|
+
return 'views/public/' + urlattr.name + '.view.html';
|
|
187
|
+
}
|
|
188
|
+
}
|
|
189
|
+
}
|
|
190
|
+
})
|
|
191
|
+
|
|
192
|
+
.state('app', {
|
|
193
|
+
url: "/app/logged",
|
|
194
|
+
cache: false,
|
|
195
|
+
controller: 'MenuController',
|
|
196
|
+
templateUrl: 'node_modules/cronapp-framework-mobile-js/components/templates/menu.template.html'
|
|
197
|
+
})
|
|
198
|
+
|
|
199
|
+
.state('app.home', {
|
|
200
|
+
url: "/home",
|
|
201
|
+
cache: false,
|
|
202
|
+
views: {
|
|
203
|
+
'menuContent': {
|
|
204
|
+
controller: 'PageController',
|
|
205
|
+
templateUrl: 'views/logged/home.view.html'
|
|
206
|
+
}
|
|
207
|
+
},
|
|
208
|
+
resolve: {
|
|
209
|
+
data: function ($translate) {
|
|
210
|
+
$translate.refresh();
|
|
211
|
+
}
|
|
212
|
+
}
|
|
213
|
+
})
|
|
214
|
+
|
|
215
|
+
.state('app.pages', {
|
|
216
|
+
url: "/{name:.*}",
|
|
217
|
+
cache: false,
|
|
218
|
+
views: {
|
|
219
|
+
'menuContent': {
|
|
220
|
+
controller: 'PageController',
|
|
221
|
+
templateUrl: function (urlattr) {
|
|
222
|
+
return 'views/logged/' + urlattr.name + '.view.html';
|
|
223
|
+
}
|
|
224
|
+
}
|
|
225
|
+
}
|
|
226
|
+
})
|
|
227
|
+
|
|
228
|
+
.state('404', {
|
|
229
|
+
url: "/error/404",
|
|
230
|
+
cache: false,
|
|
231
|
+
controller: 'PageController',
|
|
232
|
+
templateUrl: function (urlattr) {
|
|
233
|
+
return 'views/error/404.view.html';
|
|
234
|
+
}
|
|
235
|
+
})
|
|
236
|
+
|
|
237
|
+
.state('403', {
|
|
238
|
+
url: "/error/403",
|
|
239
|
+
cache: false,
|
|
240
|
+
controller: 'PageController',
|
|
241
|
+
templateUrl: function (urlattr) {
|
|
242
|
+
return 'views/error/403.view.html';
|
|
243
|
+
}
|
|
244
|
+
});
|
|
245
|
+
}
|
|
246
|
+
// For any unmatched url, redirect to /state1
|
|
247
|
+
$urlRouterProvider.otherwise("/error/404");
|
|
248
|
+
})
|
|
249
|
+
|
|
250
|
+
.config(function($translateProvider, tmhDynamicLocaleProvider) {
|
|
251
|
+
$translateProvider.uniformLanguageTag('bcp47');
|
|
252
|
+
$translateProvider.useLoader('customTranslateLoader', {
|
|
253
|
+
files: [
|
|
254
|
+
{
|
|
255
|
+
prefix: 'i18n/locale_',
|
|
256
|
+
suffix: '.json'
|
|
257
|
+
},
|
|
258
|
+
{
|
|
259
|
+
prefix: 'node_modules/cronapp-framework-mobile-js/i18n/locale_',
|
|
260
|
+
suffix: '.json'
|
|
261
|
+
}
|
|
262
|
+
]
|
|
263
|
+
});
|
|
264
|
+
|
|
265
|
+
$translateProvider
|
|
266
|
+
.registerAvailableLanguageKeys(
|
|
267
|
+
window.translations.localesKeys,
|
|
268
|
+
window.translations.localesRef
|
|
269
|
+
);
|
|
270
|
+
var locale = (window.navigator.userLanguage || window.navigator.language).replace('-', '_').toLowerCase();
|
|
271
|
+
$translateProvider.use(locale);
|
|
272
|
+
$translateProvider.useSanitizeValueStrategy('escaped');
|
|
273
|
+
|
|
274
|
+
tmhDynamicLocaleProvider.localeLocationPattern('node_modules/angular-i18n/angular-locale_{{locale}}.js');
|
|
275
|
+
})
|
|
276
|
+
.config(function($sceProvider) {
|
|
277
|
+
$sceProvider.enabled(false);
|
|
278
|
+
})
|
|
279
|
+
|
|
280
|
+
.directive('crnValue', ['$parse', function($parse) {
|
|
281
|
+
return {
|
|
282
|
+
restrict: 'A',
|
|
283
|
+
require: '^ngModel',
|
|
284
|
+
link: function(scope, element, attr, ngModelCtrl) {
|
|
285
|
+
var evaluatedValue;
|
|
286
|
+
if (attr.value) {
|
|
287
|
+
evaluatedValue = attr.value;
|
|
288
|
+
} else {
|
|
289
|
+
evaluatedValue = $parse(attr.crnValue)(scope);
|
|
290
|
+
}
|
|
291
|
+
|
|
292
|
+
element.attr("data-evaluated", JSON.stringify(evaluatedValue));
|
|
293
|
+
element.bind("click", function(event) {
|
|
294
|
+
scope.$apply(function() {
|
|
295
|
+
ngModelCtrl.$setViewValue(evaluatedValue);
|
|
296
|
+
$(element).data('changed', true);
|
|
297
|
+
}.bind(element));
|
|
298
|
+
});
|
|
299
|
+
|
|
300
|
+
scope.$watch(function(){return ngModelCtrl.$modelValue}, function(value, old){
|
|
301
|
+
if (value !== old) {
|
|
302
|
+
var dataEvaluated = element.attr("data-evaluated");
|
|
303
|
+
var changed = $(element).data('changed');
|
|
304
|
+
$(element).data('changed', false);
|
|
305
|
+
if (!changed) {
|
|
306
|
+
if (value && JSON.stringify(''+value) == dataEvaluated) {
|
|
307
|
+
$(element)[0].children[0].checked = true
|
|
308
|
+
} else {
|
|
309
|
+
$(element)[0].children[0].checked = false;
|
|
310
|
+
}
|
|
311
|
+
}
|
|
312
|
+
}
|
|
313
|
+
});
|
|
314
|
+
}
|
|
315
|
+
};
|
|
316
|
+
}])
|
|
317
|
+
|
|
318
|
+
.decorator("$xhrFactory", [
|
|
319
|
+
"$delegate", "$injector",
|
|
320
|
+
function($delegate, $injector) {
|
|
321
|
+
return function(method, url) {
|
|
322
|
+
var xhr = $delegate(method, url);
|
|
323
|
+
var $http = $injector.get("$http");
|
|
324
|
+
var callConfig = $http.pendingRequests[$http.pendingRequests.length - 1];
|
|
325
|
+
if (angular.isFunction(callConfig.onProgress))
|
|
326
|
+
xhr.upload.addEventListener("progress",callConfig.onProgress);
|
|
327
|
+
return xhr;
|
|
328
|
+
};
|
|
329
|
+
}
|
|
330
|
+
])
|
|
331
|
+
|
|
332
|
+
.run(function($rootScope, $state, $stateParams, $timeout, $injector) {
|
|
333
|
+
// It's very handy to add references to $state and $stateParams to the $rootScope
|
|
334
|
+
// so that you can access them from any scope within your applications.For example,
|
|
335
|
+
// <li ng-class="{ active: $state.includes('contacts.list') }"> will set the <li>
|
|
336
|
+
// to active whenever 'contacts.list' or one of its decendents is active.
|
|
337
|
+
$rootScope.$state = $state;
|
|
338
|
+
$rootScope.$stateParams = $stateParams;
|
|
339
|
+
|
|
340
|
+
$rootScope.$on('$stateChangeError', function() {
|
|
341
|
+
if (arguments.length >= 6) {
|
|
342
|
+
var requestObj = arguments[5];
|
|
343
|
+
if (requestObj.status === 404 || requestObj.status === 403 || requestObj.status === 401) {
|
|
344
|
+
localStorage.removeItem('_u');
|
|
345
|
+
$state.go('login').catch(function(){
|
|
346
|
+
$state.go('404');
|
|
347
|
+
});
|
|
348
|
+
}
|
|
349
|
+
} else {
|
|
350
|
+
$state.go('404');
|
|
351
|
+
}
|
|
352
|
+
});
|
|
353
|
+
$rootScope.$on('$stateChangeSuccess', function(event, currentRoute, previousRoute) {
|
|
354
|
+
|
|
355
|
+
let $http = $injector.get('$http');
|
|
356
|
+
let Notification = $injector.get('Notification');
|
|
357
|
+
app.isPublicRoute(currentRoute) || window.refreshToken(Notification, $http, ()=>{}, (e)=>{
|
|
358
|
+
if (e.status !== 404) {
|
|
359
|
+
localStorage.removeItem("_u");
|
|
360
|
+
$state.go("login");
|
|
361
|
+
}
|
|
362
|
+
});
|
|
363
|
+
|
|
364
|
+
$timeout(() => {
|
|
365
|
+
let ionViewTitle = $('ion-view ion-header-bar .title').last().text();
|
|
366
|
+
let splitedHash = window.location.hash ? window.location.hash.split('\/') : null;
|
|
367
|
+
let pageName = splitedHash?splitedHash[splitedHash.length-1]:null;
|
|
368
|
+
let prettyPageName = window.camelCaseToSentenceCase(window.toCamelCase(pageName));
|
|
369
|
+
$rootScope.ionViewTitle = ionViewTitle || prettyPageName || currentRoute.name;
|
|
370
|
+
});
|
|
371
|
+
|
|
372
|
+
setTimeout(function() {
|
|
373
|
+
$($('.icon.ion-plus-round').parent()).off('click');
|
|
374
|
+
$($('.icon.ion-plus-round').parent()).on('click',function() {
|
|
375
|
+
$('[required]').removeClass('input-validation-error');
|
|
376
|
+
$('input:invalid').removeClass('input-validation-error');
|
|
377
|
+
});
|
|
378
|
+
|
|
379
|
+
$($('.icon.ion-checkmark').parent()).off('click');
|
|
380
|
+
$($('.icon.ion-checkmark').parent()).on('click',function() {
|
|
381
|
+
$('[required].ng-invalid-required, [required].ng-invalid, [required].ng-empty').addClass('input-validation-error');
|
|
382
|
+
$('input:invalid').addClass('input-validation-error');
|
|
383
|
+
});
|
|
384
|
+
|
|
385
|
+
$('input').off('keydown')
|
|
386
|
+
$('input').on('keydown', function() {
|
|
387
|
+
$(this).removeClass('input-validation-error');
|
|
388
|
+
});
|
|
389
|
+
|
|
390
|
+
}, 300);
|
|
391
|
+
|
|
392
|
+
});
|
|
393
|
+
setInterval(() => $('ion-nav-view[name="menuContent"] .button.button-clear.hide').removeClass('hide'), 300);
|
|
394
|
+
});
|
|
395
|
+
|
|
396
|
+
}(window));
|
|
397
|
+
|
|
398
|
+
app.userEvents = {};
|
|
399
|
+
|
|
400
|
+
//Configuration
|
|
401
|
+
app.config = {};
|
|
402
|
+
app.config.datasourceApiVersion = 2;
|
|
403
|
+
app.config.defaultRoute = "/app";
|
|
404
|
+
|
|
405
|
+
app.publicRoutes = ["publicRoot", "public", "public.pages", "main"];
|
|
406
|
+
app.isPublicRoute = route => { return app.publicRoutes.includes(route.name); };
|
|
407
|
+
|
|
408
|
+
app.bindScope = function($scope, obj) {
|
|
409
|
+
var newObj = {};
|
|
410
|
+
|
|
411
|
+
for (var x in obj) {
|
|
412
|
+
// var name = parentName+'.'+x;
|
|
413
|
+
// console.log(name);
|
|
414
|
+
if (typeof obj[x] == 'string' || typeof obj[x] == 'boolean')
|
|
415
|
+
newObj[x] = obj[x];
|
|
416
|
+
else if (typeof obj[x] == 'function')
|
|
417
|
+
newObj[x] = obj[x].bind($scope);
|
|
418
|
+
else {
|
|
419
|
+
newObj[x] = app.bindScope($scope, obj[x]);
|
|
420
|
+
}
|
|
421
|
+
}
|
|
422
|
+
|
|
423
|
+
return newObj;
|
|
424
|
+
};
|
|
425
|
+
|
|
426
|
+
app.registerEventsCronapi = function($scope, $translate, $ionicModal, $ionicLoading) {
|
|
427
|
+
for (var x in app.userEvents)
|
|
428
|
+
$scope[x] = app.userEvents[x].bind($scope);
|
|
429
|
+
|
|
430
|
+
$scope.vars = {};
|
|
431
|
+
$scope.$evt = $evt;
|
|
432
|
+
|
|
433
|
+
try {
|
|
434
|
+
if (cronapi) {
|
|
435
|
+
$scope['cronapi'] = app.bindScope($scope, cronapi);
|
|
436
|
+
$scope['cronapi'].$scope = $scope;
|
|
437
|
+
$scope['cronapi'].$scope.$ionicModal = $ionicModal;
|
|
438
|
+
$scope['cronapi'].$scope.$ionicLoading = $ionicLoading;
|
|
439
|
+
|
|
440
|
+
$scope.safeApply = safeApply;
|
|
441
|
+
if ($translate) {
|
|
442
|
+
$scope['cronapi'].$translate = $translate;
|
|
443
|
+
}
|
|
444
|
+
}
|
|
445
|
+
} catch (e) {
|
|
446
|
+
console.info('Not loaded cronapi functions');
|
|
447
|
+
console.info(e);
|
|
448
|
+
}
|
|
449
|
+
try {
|
|
450
|
+
if (blockly) {
|
|
451
|
+
blockly.cronapi = cronapi;
|
|
452
|
+
$scope['blockly'] = app.bindScope($scope, blockly);
|
|
453
|
+
}
|
|
454
|
+
} catch (e) {
|
|
455
|
+
console.info('Not loaded blockly functions');
|
|
456
|
+
console.info(e);
|
|
457
|
+
}
|
|
458
|
+
};
|
|
459
|
+
|
|
460
|
+
app.copyContext = function(fromContext, toContext, controllerName) {
|
|
461
|
+
if (fromContext) {
|
|
462
|
+
for (var item in fromContext) {
|
|
463
|
+
if (!toContext[item])
|
|
464
|
+
toContext[item] = fromContext[item];
|
|
465
|
+
else
|
|
466
|
+
toContext[item+controllerName] = fromContext[item];
|
|
467
|
+
}
|
|
468
|
+
}
|
|
469
|
+
};
|
|
470
|
+
|
|
471
|
+
app.factory('customTranslateLoader', function ($http, $q) {
|
|
472
|
+
|
|
473
|
+
return function (options) {
|
|
474
|
+
|
|
475
|
+
if (!options || (!angular.isArray(options.files) && (!angular.isString(options.prefix) || !angular.isString(options.suffix)))) {
|
|
476
|
+
throw new Error('Couldn\'t load static files, no files and prefix or suffix specified!');
|
|
477
|
+
}
|
|
478
|
+
|
|
479
|
+
if (!options.files) {
|
|
480
|
+
options.files = [{
|
|
481
|
+
prefix: options.prefix,
|
|
482
|
+
suffix: options.suffix
|
|
483
|
+
}];
|
|
484
|
+
}
|
|
485
|
+
|
|
486
|
+
var load = function (file) {
|
|
487
|
+
if (!file || (!angular.isString(file.prefix) || !angular.isString(file.suffix))) {
|
|
488
|
+
throw new Error('Couldn\'t load static file, no prefix or suffix specified!');
|
|
489
|
+
}
|
|
490
|
+
|
|
491
|
+
var deferred = $q.defer();
|
|
492
|
+
|
|
493
|
+
$http(angular.extend({
|
|
494
|
+
url: [
|
|
495
|
+
file.prefix,
|
|
496
|
+
options.key,
|
|
497
|
+
file.suffix
|
|
498
|
+
].join(''),
|
|
499
|
+
method: 'GET',
|
|
500
|
+
params: ''
|
|
501
|
+
}, options.$http)).success(function (data) {
|
|
502
|
+
deferred.resolve(data);
|
|
503
|
+
}).error(function () {
|
|
504
|
+
deferred.resolve({});
|
|
505
|
+
});
|
|
506
|
+
|
|
507
|
+
return deferred.promise;
|
|
508
|
+
};
|
|
509
|
+
|
|
510
|
+
var deferred = $q.defer(),
|
|
511
|
+
promises = [],
|
|
512
|
+
length = options.files.length;
|
|
513
|
+
|
|
514
|
+
for (var i = 0; i < length; i++) {
|
|
515
|
+
promises.push(load({
|
|
516
|
+
prefix: options.files[i].prefix,
|
|
517
|
+
key: options.key,
|
|
518
|
+
suffix: options.files[i].suffix
|
|
519
|
+
}));
|
|
520
|
+
}
|
|
521
|
+
|
|
522
|
+
$q.all(promises).then(function (data) {
|
|
523
|
+
var length = data.length,
|
|
524
|
+
mergedData = {};
|
|
525
|
+
|
|
526
|
+
for (var i = 0; i < length; i++) {
|
|
527
|
+
for (var key in data[i]) {
|
|
528
|
+
mergedData[key] = data[i][key];
|
|
529
|
+
}
|
|
530
|
+
}
|
|
531
|
+
|
|
532
|
+
deferred.resolve(mergedData);
|
|
533
|
+
}, function (data) {
|
|
534
|
+
deferred.reject(data);
|
|
535
|
+
});
|
|
536
|
+
|
|
537
|
+
return deferred.promise;
|
|
538
|
+
};
|
|
539
|
+
|
|
540
|
+
});
|
|
541
|
+
|
|
542
|
+
window.safeApply = function(fn) {
|
|
543
|
+
var phase = this.$root.$$phase;
|
|
544
|
+
if (phase == '$apply' || phase == '$digest') {
|
|
545
|
+
if (fn && (typeof(fn) === 'function')) {
|
|
546
|
+
fn();
|
|
547
|
+
}
|
|
548
|
+
} else {
|
|
549
|
+
this.$apply(fn);
|
|
550
|
+
}
|
|
551
|
+
};
|
|
552
|
+
|
|
553
|
+
window.toCamelCase = function(str) {
|
|
554
|
+
// Lower cases the string
|
|
555
|
+
return str.toLowerCase()
|
|
556
|
+
// Replaces any - or _ or . characters with a space
|
|
557
|
+
.replace( /[-_\.]+/g, ' ')
|
|
558
|
+
// Removes any non alphanumeric characters
|
|
559
|
+
.replace( /[^\w\s]/g, '')
|
|
560
|
+
// Uppercases the first character in each group immediately following a space
|
|
561
|
+
// (delimited by spaces)
|
|
562
|
+
.replace( / (.)/g, function($1) { return $1.toUpperCase(); })
|
|
563
|
+
// Removes spaces
|
|
564
|
+
.replace( / /g, '' );
|
|
565
|
+
};
|
|
566
|
+
|
|
567
|
+
window.camelCaseToSentenceCase = function(str){
|
|
568
|
+
let result = str.replace( /([A-Z])/g, " $1" );
|
|
569
|
+
return result.charAt(0).toUpperCase() + result.slice(1); // capitalize the first letter - as an example.
|
|
570
|
+
};
|
|
571
|
+
|
|
572
|
+
// refresh token
|
|
573
|
+
window.refreshToken = function(Notification, $http, success, err) {
|
|
574
|
+
if(window.hostApp) {
|
|
575
|
+
$http({
|
|
576
|
+
method: 'GET',
|
|
577
|
+
url: window.hostApp + 'auth/refresh'
|
|
578
|
+
}).success(function (data, status, headers, config) {
|
|
579
|
+
// Store data response on local storage
|
|
580
|
+
console.log('revive :', new Date(data.expires));
|
|
581
|
+
localStorage.setItem("_u", JSON.stringify(data));
|
|
582
|
+
// Recussive
|
|
583
|
+
setTimeout(function () {
|
|
584
|
+
window.refreshToken(Notification, $http, success, err);
|
|
585
|
+
// refresh time
|
|
586
|
+
}, (1800 * 1000));
|
|
587
|
+
success();
|
|
588
|
+
}).error(function (e) {
|
|
589
|
+
err(e);
|
|
590
|
+
});
|
|
591
|
+
}else{
|
|
592
|
+
Notification.error("HostApp is required to refresh token!");
|
|
593
|
+
}
|
|
594
|
+
};
|