From fbd50137f32a1154a8d04324ea6f8147e206b422 Mon Sep 17 00:00:00 2001 From: Peter Maquiran Date: Tue, 24 Jan 2023 15:56:47 +0100 Subject: [PATCH] merge --- report.20230116.142547.31280.0.001.json | 465 ++++++++++++++ src/app/app-routing.module.ts | 549 ++++++++--------- src/app/guards/login.guard.ts | 6 +- src/app/home/home.page.html | 2 +- src/app/home/home.page.ts | 1 - .../document-set-up-meeting.page.html | 4 +- .../document-set-up-meeting.page.ts | 66 +- .../edit-profile/edit-profile.page.html | 8 +- src/app/modals/profile/profile.page.html | 9 +- src/app/modals/profile/profile.page.ts | 12 +- .../view-document/view-document.page.ts | 29 +- src/app/modals/view-event/view-event.page.ts | 4 +- src/app/models/beast-orm.ts | 3 +- src/app/models/chatMethod.ts | 1 + src/app/models/message.model.ts | 1 + src/app/models/notifications.ts | 3 +- src/app/pages/agenda/agenda.page.html | 27 +- src/app/pages/agenda/agenda.page.scss | 11 +- src/app/pages/agenda/agenda.page.ts | 18 +- .../agenda/new-event/new-event.page.html | 2 +- .../pages/agenda/new-event/new-event.page.ts | 64 +- src/app/pages/chat/chat.page.ts | 12 +- .../group-messages/group-messages.page.html | 35 +- .../pages/chat/messages/messages.page.html | 52 +- src/app/pages/chat/messages/messages.page.ts | 25 +- .../pages/events/attendees/attendees.page.ts | 19 +- src/app/pages/events/events.page.html | 2 +- .../book-meeting-modal.page.html | 4 +- .../book-meeting-modal.page.ts | 63 +- .../gabinete-digital.page.html | 13 +- .../gabinete-digital/gabinete-digital.page.ts | 178 +++--- src/app/pages/gabinete-digital/list.worker.js | 10 + src/app/pages/inactivity/inactivity.page.html | 4 +- src/app/pages/login/login.page.html | 4 +- src/app/pages/login/login.page.ts | 1 + .../edit-action/edit-action.page.ts | 2 +- .../new-action/new-action.page.html | 4 +- .../new-action/new-action.page.ts | 48 +- .../new-publication/new-publication.page.ts | 2 +- .../pages/publications/publications.page.html | 2 +- .../pages/publications/publications.page.ts | 15 +- src/app/pages/search/search.page.html | 31 +- src/app/pages/search/search.page.ts | 201 +++++- src/app/pipes/expediente-task.pipe.ts | 2 +- src/app/services/attachments.service.ts | 18 +- src/app/services/auth.service.ts | 8 +- src/app/services/chat/chat-methods.service.ts | 1 + src/app/services/chat/chat-system.service.ts | 33 +- src/app/services/chat/message.service.ts | 44 +- .../chat/rochet-chat-connector.service.ts | 57 ++ src/app/services/chat/room.service.ts | 30 +- .../services/chat/viewed-message.service.ts | 8 +- src/app/services/contacts.service.ts | 14 +- src/app/services/events.service.ts | 148 ++--- src/app/services/first-enter.service.ts | 1 - src/app/services/notifications.service.ts | 213 ++++--- src/app/services/organic-entity.service.ts | 14 +- src/app/services/publications.service.ts | 14 +- src/app/services/search.service.ts | 42 +- .../edit-event-to-approve.page.ts | 2 +- .../agenda/new-event/new-event.page.html | 2 +- .../shared/agenda/new-event/new-event.page.ts | 38 +- .../group-messages/group-messages.page.html | 35 +- .../group-messages/group-messages.page.ts | 2 + .../shared/chat/messages/messages.page.html | 37 +- .../shared/chat/messages/messages.page.scss | 5 + src/app/shared/chat/messages/messages.page.ts | 4 + .../attendee-modal/attendee-modal.page.html | 2 +- .../attendee-modal/attendee-modal.page.ts | 7 +- .../all-processes/all-processes.page.html | 9 +- .../all-processes/all-processes.page.ts | 24 +- .../edit-event-to-approve/edit-event.page.ts | 10 +- src/app/shared/header/header.page.html | 30 +- .../chat-options-popover.page.html | 3 +- .../chat-options-popover.page.ts | 25 +- .../event-details-documents-options.page.html | 2 +- .../opts-expediente/opts-expediente.page.html | 2 - .../opts-expediente/opts-expediente.page.ts | 14 +- .../edit-action/edit-action.page.ts | 2 +- .../new-action/new-action.page.html | 4 +- .../publication/new-action/new-action.page.ts | 45 +- src/app/store/localstore.service.ts | 22 + src/assets/images/theme/blue/search.svg | 1 + src/assets/images/theme/gov/search.svg | 1 + src/assets/images/theme/tribunal/search.svg | 1 + src/environments/environment.prod.ts | 10 +- src/environments/environment.ts | 10 +- src/global.scss | 8 + src/index.html | 2 +- src/main.ts | 7 - src/plugin/src/connection/dbSwtich.d.ts | 5 + src/plugin/src/connection/dbSwtich.js | 29 + .../src/connection/indexedDb/connector.d.ts | 7 + .../src/connection/indexedDb/connector.js | 57 ++ .../connection/indexedDb/dynamicChange.d.ts | 3 + .../src/connection/indexedDb/dynamicChange.js | 31 + .../src/connection/indexedDb/indexedb.d.ts | 39 ++ .../src/connection/indexedDb/indexedb.js | 366 +++++++++++ src/plugin/src/connection/intreface.d.ts | 2 + src/plugin/src/connection/intreface.js | 1 + src/plugin/src/connection/worker.d.ts | 1 + src/plugin/src/connection/worker.js | 17 + src/plugin/src/connection/worker.queue.d.ts | 19 + src/plugin/src/connection/worker.queue.js | 51 ++ src/plugin/src/index.d.ts | 27 + src/plugin/src/index.js | 9 + src/plugin/src/models/field/allFields.d.ts | 140 +++++ src/plugin/src/models/field/allFields.js | 253 ++++++++ src/plugin/src/models/field/field.d.ts | 17 + src/plugin/src/models/field/field.js | 32 + src/plugin/src/models/field/fields.d.ts | 19 + .../src/models/field/fields.interface.d.ts | 10 + .../src/models/field/fields.interface.js | 33 + src/plugin/src/models/field/fields.js | 40 ++ src/plugin/src/models/field/interface.d.ts | 97 +++ src/plugin/src/models/field/interface.js | 1 + src/plugin/src/models/mode-migrations.d.ts | 8 + src/plugin/src/models/mode-migrations.js | 31 + src/plugin/src/models/model-from.d.ts | 0 src/plugin/src/models/model-from.js | 0 src/plugin/src/models/model-manager.d.ts | 14 + src/plugin/src/models/model-manager.js | 39 ++ src/plugin/src/models/model.d.ts | 49 ++ src/plugin/src/models/model.interface.d.ts | 10 + src/plugin/src/models/model.interface.js | 11 + src/plugin/src/models/model.js | 305 ++++++++++ src/plugin/src/models/model.reader.d.ts | 11 + src/plugin/src/models/model.reader.js | 34 ++ src/plugin/src/models/register-model.d.ts | 29 + src/plugin/src/models/register-model.js | 277 +++++++++ .../Operators/Object-condition-operator.d.ts | 10 + .../Operators/Object-condition-operator.js | 33 + .../src/sql/Operators/args-attributes.d.ts | 22 + .../src/sql/Operators/args-attributes.js | 118 ++++ .../src/sql/Operators/object-operator.d.ts | 478 +++++++++++++++ .../src/sql/Operators/object-operator.js | 107 ++++ src/plugin/src/sql/Operators/operators.d.ts | 258 ++++++++ src/plugin/src/sql/Operators/operators.js | 576 ++++++++++++++++++ .../src/sql/Operators/query-bulder.d.ts | 0 src/plugin/src/sql/Operators/query-bulder.js | 0 src/plugin/src/sql/methods/filter.d.ts | 11 + src/plugin/src/sql/methods/filter.js | 28 + src/plugin/src/sql/methods/methods.d.ts | 14 + src/plugin/src/sql/methods/methods.js | 7 + src/plugin/src/sql/query/interface.d.ts | 12 + src/plugin/src/sql/query/interface.js | 14 + src/plugin/src/sql/sqlObject/sql.d.ts | 3 + src/plugin/src/sql/sqlObject/sql.js | 3 + src/plugin/src/sql/sqlObject/sqlObject.d.ts | 17 + src/plugin/src/sql/sqlObject/sqlObject.js | 31 + src/plugin/src/utils.d.ts | 7 + src/plugin/src/utils.js | 34 ++ version/git-version.ts | 18 +- 153 files changed, 5997 insertions(+), 953 deletions(-) create mode 100644 report.20230116.142547.31280.0.001.json create mode 100644 src/app/pages/gabinete-digital/list.worker.js create mode 100644 src/assets/images/theme/blue/search.svg create mode 100644 src/assets/images/theme/gov/search.svg create mode 100644 src/assets/images/theme/tribunal/search.svg create mode 100644 src/plugin/src/connection/dbSwtich.d.ts create mode 100644 src/plugin/src/connection/dbSwtich.js create mode 100644 src/plugin/src/connection/indexedDb/connector.d.ts create mode 100644 src/plugin/src/connection/indexedDb/connector.js create mode 100644 src/plugin/src/connection/indexedDb/dynamicChange.d.ts create mode 100644 src/plugin/src/connection/indexedDb/dynamicChange.js create mode 100644 src/plugin/src/connection/indexedDb/indexedb.d.ts create mode 100644 src/plugin/src/connection/indexedDb/indexedb.js create mode 100644 src/plugin/src/connection/intreface.d.ts create mode 100644 src/plugin/src/connection/intreface.js create mode 100644 src/plugin/src/connection/worker.d.ts create mode 100644 src/plugin/src/connection/worker.js create mode 100644 src/plugin/src/connection/worker.queue.d.ts create mode 100644 src/plugin/src/connection/worker.queue.js create mode 100644 src/plugin/src/index.d.ts create mode 100644 src/plugin/src/index.js create mode 100644 src/plugin/src/models/field/allFields.d.ts create mode 100644 src/plugin/src/models/field/allFields.js create mode 100644 src/plugin/src/models/field/field.d.ts create mode 100644 src/plugin/src/models/field/field.js create mode 100644 src/plugin/src/models/field/fields.d.ts create mode 100644 src/plugin/src/models/field/fields.interface.d.ts create mode 100644 src/plugin/src/models/field/fields.interface.js create mode 100644 src/plugin/src/models/field/fields.js create mode 100644 src/plugin/src/models/field/interface.d.ts create mode 100644 src/plugin/src/models/field/interface.js create mode 100644 src/plugin/src/models/mode-migrations.d.ts create mode 100644 src/plugin/src/models/mode-migrations.js create mode 100644 src/plugin/src/models/model-from.d.ts create mode 100644 src/plugin/src/models/model-from.js create mode 100644 src/plugin/src/models/model-manager.d.ts create mode 100644 src/plugin/src/models/model-manager.js create mode 100644 src/plugin/src/models/model.d.ts create mode 100644 src/plugin/src/models/model.interface.d.ts create mode 100644 src/plugin/src/models/model.interface.js create mode 100644 src/plugin/src/models/model.js create mode 100644 src/plugin/src/models/model.reader.d.ts create mode 100644 src/plugin/src/models/model.reader.js create mode 100644 src/plugin/src/models/register-model.d.ts create mode 100644 src/plugin/src/models/register-model.js create mode 100644 src/plugin/src/sql/Operators/Object-condition-operator.d.ts create mode 100644 src/plugin/src/sql/Operators/Object-condition-operator.js create mode 100644 src/plugin/src/sql/Operators/args-attributes.d.ts create mode 100644 src/plugin/src/sql/Operators/args-attributes.js create mode 100644 src/plugin/src/sql/Operators/object-operator.d.ts create mode 100644 src/plugin/src/sql/Operators/object-operator.js create mode 100644 src/plugin/src/sql/Operators/operators.d.ts create mode 100644 src/plugin/src/sql/Operators/operators.js create mode 100644 src/plugin/src/sql/Operators/query-bulder.d.ts create mode 100644 src/plugin/src/sql/Operators/query-bulder.js create mode 100644 src/plugin/src/sql/methods/filter.d.ts create mode 100644 src/plugin/src/sql/methods/filter.js create mode 100644 src/plugin/src/sql/methods/methods.d.ts create mode 100644 src/plugin/src/sql/methods/methods.js create mode 100644 src/plugin/src/sql/query/interface.d.ts create mode 100644 src/plugin/src/sql/query/interface.js create mode 100644 src/plugin/src/sql/sqlObject/sql.d.ts create mode 100644 src/plugin/src/sql/sqlObject/sql.js create mode 100644 src/plugin/src/sql/sqlObject/sqlObject.d.ts create mode 100644 src/plugin/src/sql/sqlObject/sqlObject.js create mode 100644 src/plugin/src/utils.d.ts create mode 100644 src/plugin/src/utils.js diff --git a/report.20230116.142547.31280.0.001.json b/report.20230116.142547.31280.0.001.json new file mode 100644 index 000000000..ddf61ca87 --- /dev/null +++ b/report.20230116.142547.31280.0.001.json @@ -0,0 +1,465 @@ + +{ + "header": { + "reportVersion": 1, + "event": "Allocation failed - JavaScript heap out of memory", + "trigger": "FatalError", + "filename": "report.20230116.142547.31280.0.001.json", + "dumpEventTime": "2023-01-16T14:25:47Z", + "dumpEventTimeStamp": "1673875547220", + "processId": 31280, + "cwd": "C:\\Users\\peter.maquiran\\Documents\\project\\gabinete-digital-fo", + "commandLine": [ + "node", + "C:\\Users\\peter.maquiran\\Documents\\project\\gabinete-digital-fo\\node_modules\\.bin\\\\..\\@angular\\cli\\bin\\ng", + "run", + "app:serve:production", + "--host=localhost", + "--port=8101" + ], + "nodejsVersion": "v12.14.1", + "wordSize": 64, + "arch": "x64", + "platform": "win32", + "componentVersions": { + "node": "12.14.1", + "v8": "7.7.299.13-node.16", + "uv": "1.33.1", + "zlib": "1.2.11", + "brotli": "1.0.7", + "ares": "1.15.0", + "modules": "72", + "nghttp2": "1.40.0", + "napi": "5", + "llhttp": "2.0.1", + "http_parser": "2.8.0", + "openssl": "1.1.1d", + "cldr": "35.1", + "icu": "64.2", + "tz": "2019c", + "unicode": "12.1" + }, + "release": { + "name": "node", + "lts": "Erbium", + "headersUrl": "https://nodejs.org/download/release/v12.14.1/node-v12.14.1-headers.tar.gz", + "sourceUrl": "https://nodejs.org/download/release/v12.14.1/node-v12.14.1.tar.gz", + "libUrl": "https://nodejs.org/download/release/v12.14.1/win-x64/node.lib" + }, + "osName": "Windows_NT", + "osRelease": "10.0.18363", + "osVersion": "Windows 10 Pro", + "osMachine": "x86_64", + "cpus": [ + { + "model": "Intel(R) Core(TM) i7-8565U CPU @ 1.80GHz", + "speed": 1992, + "user": 11330625, + "nice": 0, + "sys": 14678953, + "idle": 150967375, + "irq": 5472781 + }, + { + "model": "Intel(R) Core(TM) i7-8565U CPU @ 1.80GHz", + "speed": 1992, + "user": 7800796, + "nice": 0, + "sys": 5484906, + "idle": 163690671, + "irq": 306109 + }, + { + "model": "Intel(R) Core(TM) i7-8565U CPU @ 1.80GHz", + "speed": 1992, + "user": 12714203, + "nice": 0, + "sys": 8063375, + "idle": 156198781, + "irq": 161593 + }, + { + "model": "Intel(R) Core(TM) i7-8565U CPU @ 1.80GHz", + "speed": 1992, + "user": 9228578, + "nice": 0, + "sys": 5652046, + "idle": 162095734, + "irq": 117578 + }, + { + "model": "Intel(R) Core(TM) i7-8565U CPU @ 1.80GHz", + "speed": 1992, + "user": 11003906, + "nice": 0, + "sys": 7387171, + "idle": 158585281, + "irq": 182406 + }, + { + "model": "Intel(R) Core(TM) i7-8565U CPU @ 1.80GHz", + "speed": 1992, + "user": 7991453, + "nice": 0, + "sys": 5380921, + "idle": 163603984, + "irq": 125500 + }, + { + "model": "Intel(R) Core(TM) i7-8565U CPU @ 1.80GHz", + "speed": 1992, + "user": 11477265, + "nice": 0, + "sys": 7271046, + "idle": 158228046, + "irq": 171921 + }, + { + "model": "Intel(R) Core(TM) i7-8565U CPU @ 1.80GHz", + "speed": 1992, + "user": 8419921, + "nice": 0, + "sys": 5617531, + "idle": 162938906, + "irq": 116265 + } + ], + "networkInterfaces": [ + { + "name": "vEthernet (Wifi)", + "internal": false, + "mac": "74:d8:3e:d0:3c:bb", + "address": "fe80::2c4a:fffd:f4ea:f439", + "netmask": "ffff:ffff:ffff:ffff::", + "family": "IPv6", + "scopeid": 23 + }, + { + "name": "vEthernet (Wifi)", + "internal": false, + "mac": "74:d8:3e:d0:3c:bb", + "address": "192.168.0.58", + "netmask": "255.255.255.0", + "family": "IPv4" + }, + { + "name": "Loopback Pseudo-Interface 1", + "internal": true, + "mac": "00:00:00:00:00:00", + "address": "::1", + "netmask": "ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff", + "family": "IPv6", + "scopeid": 0 + }, + { + "name": "Loopback Pseudo-Interface 1", + "internal": true, + "mac": "00:00:00:00:00:00", + "address": "127.0.0.1", + "netmask": "255.0.0.0", + "family": "IPv4" + }, + { + "name": "vEthernet (Default Switch)", + "internal": false, + "mac": "00:15:5d:0a:6a:e5", + "address": "fe80::a5a5:d9f3:9284:7c1c", + "netmask": "ffff:ffff:ffff:ffff::", + "family": "IPv6", + "scopeid": 36 + }, + { + "name": "vEthernet (Default Switch)", + "internal": false, + "mac": "00:15:5d:0a:6a:e5", + "address": "192.168.188.97", + "netmask": "255.255.255.240", + "family": "IPv4" + } + ], + "host": "LAPTOP-66" + }, + "javascriptStack": { + "message": "No stack.", + "stack": [ + "Unavailable." + ] + }, + "nativeStack": [ + { + "pc": "0x00007ff6d4561759", + "symbol": "std::basic_ostream >::operator<<+10873" + }, + { + "pc": "0x00007ff6d4565b7c", + "symbol": "std::basic_ostream >::operator<<+28316" + }, + { + "pc": "0x00007ff6d4564b38", + "symbol": "std::basic_ostream >::operator<<+24152" + }, + { + "pc": "0x00007ff6d465433b", + "symbol": "v8::base::CPU::has_sse+37723" + }, + { + "pc": "0x00007ff6d4e58c5e", + "symbol": "v8::Isolate::ReportExternalAllocationLimitReached+94" + }, + { + "pc": "0x00007ff6d4e40ca1", + "symbol": "v8::SharedArrayBuffer::Externalize+833" + }, + { + "pc": "0x00007ff6d4d0e56c", + "symbol": "v8::internal::Heap::EphemeronKeyWriteBarrierFromCode+1436" + }, + { + "pc": "0x00007ff6d4d19910", + "symbol": "v8::internal::Heap::ProtectUnprotectedMemoryChunks+1312" + }, + { + "pc": "0x00007ff6d4d16444", + "symbol": "v8::internal::Heap::PageFlagsAreConsistent+3204" + }, + { + "pc": "0x00007ff6d4d0bcd3", + "symbol": "v8::internal::Heap::CollectGarbage+1283" + }, + { + "pc": "0x00007ff6d4d0a4a4", + "symbol": "v8::internal::Heap::AddRetainedMap+2356" + }, + { + "pc": "0x00007ff6d4d2b775", + "symbol": "v8::internal::Factory::NewFillerObject+53" + }, + { + "pc": "0x00007ff6d4a97a49", + "symbol": "v8::internal::interpreter::JumpTableTargetOffsets::iterator::operator=+4057" + }, + { + "pc": "0x00007ff6d528463d", + "symbol": "v8::internal::SetupIsolateDelegate::SetupHeap+567949" + }, + { + "pc": "0x000002be85bcfe95", + "symbol": "" + } + ], + "javascriptHeap": { + "totalMemory": 2167566336, + "totalCommittedMemory": 2167566336, + "usedMemory": 2064602904, + "availableMemory": 72200776, + "memoryLimit": 2197815296, + "heapSpaces": { + "read_only_space": { + "memorySize": 262144, + "committedMemory": 262144, + "capacity": 261872, + "used": 32296, + "available": 229576 + }, + "new_space": { + "memorySize": 33554432, + "committedMemory": 33554432, + "capacity": 16759808, + "used": 3605840, + "available": 13153968 + }, + "old_space": { + "memorySize": 1884401664, + "committedMemory": 1884401664, + "capacity": 1839520176, + "used": 1829345824, + "available": 10174352 + }, + "code_space": { + "memorySize": 15892480, + "committedMemory": 15892480, + "capacity": 15142912, + "used": 13508800, + "available": 1634112 + }, + "map_space": { + "memorySize": 19402752, + "committedMemory": 19402752, + "capacity": 5107360, + "used": 5107360, + "available": 0 + }, + "large_object_space": { + "memorySize": 213430272, + "committedMemory": 213430272, + "capacity": 212452384, + "used": 212452384, + "available": 0 + }, + "code_large_object_space": { + "memorySize": 622592, + "committedMemory": 622592, + "capacity": 550400, + "used": 550400, + "available": 0 + }, + "new_large_object_space": { + "memorySize": 0, + "committedMemory": 0, + "capacity": 16759808, + "used": 0, + "available": 16759808 + } + } + }, + "resourceUsage": { + "userCpuSeconds": 1784.05, + "kernelCpuSeconds": 125.39, + "cpuConsumptionPercent": 29.3579, + "maxRss": 2669527040, + "pageFaults": { + "IORequired": 3606280, + "IONotRequired": 0 + }, + "fsActivity": { + "reads": 48626, + "writes": 7136 + } + }, + "libuv": [ + ], + "environmentVariables": { + " c:\\program files\\nodejs\\node_modules\\npm": "npm", + "=C:": "C:\\Users\\peter.maquiran\\Documents\\project\\gabinete-digital-fo", + "allusersprofile": "C:\\ProgramData", + "android_sdk_root": "C:\\Users\\peter.maquiran\\Documents\\android-sdk", + "appdata": "C:\\Users\\peter.maquiran\\AppData\\Roaming", + "asl.log": "Destination=file", + "brb": "C:\\Program Files\\HP\\Sure Click\\bin", + "BROWSERSLIST_IGNORE_OLD_DATA": "1", + "brs": "C:\\Program Files\\HP\\Sure Click\\servers", + "chocolateyinstall": "C:\\ProgramData\\chocolatey", + "chocolateylastpathupdate": "132689116989769711", + "chrome_crashpad_pipe_name": "\\\\.\\pipe\\LOCAL\\crashpad_456_JCFUHUHYVFNGTFZP", + "colorterm": "truecolor", + "commonprogramfiles": "C:\\Program Files\\Common Files", + "commonprogramfiles(x86)": "C:\\Program Files (x86)\\Common Files", + "commonprogramw6432": "C:\\Program Files\\Common Files", + "computername": "LAPTOP-66", + "comspec": "C:\\windows\\system32\\cmd.exe", + "dp0": "C:\\Users\\peter.maquiran\\Documents\\project\\gabinete-digital-fo\\node_modules\\.bin\\", + "driverdata": "C:\\Windows\\System32\\Drivers\\DriverData", + "exepath": "C:\\Program Files\\Git\\bin", + "force_color": "1", + "fps_browser_app_profile_string": "Internet Explorer", + "fps_browser_user_profile_string": "Default", + "grandle_home": "C:\\Gradle\\gradle-7.6\\bin", + "home": "C:\\Users\\peter.maquiran", + "homedrive": "C:", + "homepath": "\\Users\\peter.maquiran", + "ionic_cli_bin": "C:\\Users\\peter.maquiran\\AppData\\Roaming\\npm\\node_modules\\@ionic\\cli\\bin\\ionic", + "ionic_cli_lib": "C:\\Users\\peter.maquiran\\AppData\\Roaming\\npm\\node_modules\\@ionic\\cli", + "ionic_cli_local_error": "LOCAL_CLI_NOT_FOUND", + "java_home": "C:\\Program Files\\Java\\jdk-11.0.8", + "jre_home": "C:\\Program Files\\Java\\jre-11.0.8.10-hotspot", + "lang": "en_US.UTF-8", + "localappdata": "C:\\Users\\peter.maquiran\\AppData\\Local", + "logonserver": "\\\\VM-SRV-01", + "msystem": "MINGW64", + "number_of_processors": "8", + "nvm_home": "C:\\Users\\peter.maquiran\\AppData\\Roaming\\nvm", + "nvm_symlink": "C:\\Program Files\\nodejs", + "onedrive": "C:\\Users\\peter.maquiran\\OneDrive", + "onlineservices": "Online Services", + "original_xdg_current_desktop": "undefined", + "os": "Windows_NT", + "path": "C:\\Users\\peter.maquiran\\Documents\\project\\gabinete-digital-fo\\node_modules\\.bin;C:\\Program Files\\Git\\mingw64\\bin;C:\\Program Files\\Git\\usr\\bin;C:\\Users\\peter.maquiran\\bin;C:\\Program Files\\java\\jre-11.0.8.10-hotspot\\bin;C:\\Users\\peter.maquiran\\AppData\\Roaming\\nvm;C:\\Program Files\\nodejs;C:\\Users\\peter.maquiran\\AppData\\Local\\Programs\\Python\\Python39\\Scripts;C:\\Users\\peter.maquiran\\AppData\\Local\\Programs\\Python\\Python39;C:\\Users\\peter.maquiran\\AppData\\Local\\Microsoft\\WindowsApps;C:\\Users\\peter.maquiran\\AppData\\Local\\Programs\\Microsoft VS Code\\bin;C:\\Program Files\\wkhtmltopdf\\bin;C:\\Program Files\\heroku\\bin;C:\\Program Files\\TestProject Agent;C:\\Program Files (x86)\\Android\\android-sdk;C:\\Users\\peter.maquiran\\Documents\\flutter_windows_2.2.3-stable\\flutter\\bin;C:\\Program Files\\php-7.3.33;C:\\Users\\peter.maquiran\\AppData\\Local\\ComposerSetup\\bin;C:\\Users\\peter.maquiran\\AppData\\Roaming\\Composer\\vendor\\bin;C:\\Users\\peter.maquiran\\.dotnet\\tools;C:\\Program Files\\Azure Data Studio\\bin;C:\\Gradle\\gradle-7.6\\bin;C:\\Users\\peter.maquiran\\AppData\\Roaming\\npm;C:\\Users\\peter.maquiran\\AppData\\Roaming\\nvm;C:\\Program Files\\nodejs;C:\\Program Files\\Java\\jdk-11.0.8\\bin", + "pathext": ".COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JSE;.WSF;.WSH;.MSC;.PY;.PYW", + "platformcode": "AN", + "plink_protocol": "ssh", + "processor_architecture": "AMD64", + "processor_identifier": "Intel64 Family 6 Model 142 Stepping 12, GenuineIntel", + "processor_level": "6", + "processor_revision": "8e0c", + "programdata": "C:\\ProgramData", + "programfiles": "C:\\Program Files", + "programfiles(x86)": "C:\\Program Files (x86)", + "programw6432": "C:\\Program Files", + "PROMPT": "$P$G", + "psmodulepath": "C:\\Program Files\\WindowsPowerShell\\Modules;C:\\windows\\system32\\WindowsPowerShell\\v1.0\\Modules;C:\\Program Files (x86)\\Microsoft SQL Server\\150\\Tools\\PowerShell\\Modules\\;C:\\Program Files\\Veeam\\Backup and Replication\\Explorers\\Exchange\\;C:\\Program Files\\Veeam\\Backup and Replication\\Explorers\\SQL\\;C:\\Program Files\\Veeam\\Backup and Replication\\Explorers\\ActiveDirectory\\;C:\\Program Files\\Veeam\\Backup and Replication\\Explorers\\Oracle\\;C:\\Program Files\\Veeam\\Backup and Replication\\Explorers\\SharePoint\\", + "ptsminstallpath": "c:\\Program Files\\HP\\HP ProtectTools Security Manager\\Bin\\", + "ptsminstallpath_x86": "c:\\Program Files (x86)\\HP\\HP ProtectTools Security Manager\\Bin\\", + "public": "C:\\Users\\Public", + "pwd": "C:/Users/peter.maquiran/Documents/project/gabinete-digital-fo", + "regioncode": "EMEA", + "sessionname": "Console", + "shlvl": "1", + "systemdrive": "C:", + "systemroot": "C:\\windows", + "temp": "C:\\Users\\PETER~1.MAQ\\AppData\\Local\\Temp", + "term": "xterm-256color", + "term_program": "vscode", + "term_program_version": "1.74.3", + "tmp": "C:\\Users\\PETER~1.MAQ\\AppData\\Local\\Temp", + "userdnsdomain": "EQUILIBRIUM.LOCAL", + "userdomain": "EQUILIBRIUM", + "userdomain_roamingprofile": "EQUILIBRIUM", + "username": "peter.maquiran", + "userprofile": "C:\\Users\\peter.maquiran", + "vs110comntools": "C:\\Program Files (x86)\\Microsoft Visual Studio 11.0\\Common7\\Tools\\", + "vs120comntools": "C:\\Program Files (x86)\\Microsoft Visual Studio 12.0\\Common7\\Tools\\", + "vs140comntools": "C:\\Program Files (x86)\\Microsoft Visual Studio 14.0\\Common7\\Tools\\", + "vscode_git_ipc_handle": "\\\\.\\pipe\\vscode-git-763e312aff-sock", + "WEBPACK_DEV_SERVER": "true", + "windir": "C:\\windows", + "_prog": "node" + }, + "sharedObjects": [ + "C:\\Program Files\\nodejs\\node.exe", + "C:\\windows\\SYSTEM32\\ntdll.dll", + "C:\\windows\\System32\\KERNEL32.DLL", + "C:\\windows\\System32\\KERNELBASE.dll", + "C:\\windows\\System32\\WS2_32.dll", + "C:\\windows\\System32\\RPCRT4.dll", + "C:\\windows\\SYSTEM32\\dbghelp.dll", + "C:\\windows\\System32\\ADVAPI32.dll", + "C:\\windows\\System32\\msvcrt.dll", + "C:\\windows\\System32\\ucrtbase.dll", + "C:\\windows\\System32\\sechost.dll", + "C:\\windows\\System32\\USER32.dll", + "C:\\windows\\System32\\win32u.dll", + "C:\\windows\\System32\\GDI32.dll", + "C:\\windows\\System32\\gdi32full.dll", + "C:\\windows\\System32\\msvcp_win.dll", + "C:\\windows\\System32\\PSAPI.DLL", + "C:\\windows\\System32\\CRYPT32.dll", + "C:\\windows\\System32\\MSASN1.dll", + "C:\\windows\\System32\\bcrypt.dll", + "C:\\windows\\SYSTEM32\\IPHLPAPI.DLL", + "C:\\windows\\SYSTEM32\\USERENV.dll", + "C:\\windows\\System32\\profapi.dll", + "C:\\windows\\SYSTEM32\\WINMM.dll", + "C:\\windows\\SYSTEM32\\winmmbase.dll", + "C:\\windows\\System32\\cfgmgr32.dll", + "C:\\windows\\System32\\bcryptPrimitives.dll", + "C:\\windows\\System32\\IMM32.DLL", + "C:\\windows\\System32\\powrprof.dll", + "C:\\windows\\System32\\UMPDC.dll", + "C:\\windows\\SYSTEM32\\CRYPTBASE.DLL", + "C:\\windows\\system32\\uxtheme.dll", + "C:\\windows\\System32\\combase.dll", + "C:\\windows\\system32\\mswsock.dll", + "C:\\windows\\System32\\kernel.appcore.dll", + "C:\\windows\\System32\\NSI.dll", + "C:\\windows\\SYSTEM32\\dhcpcsvc6.DLL", + "C:\\windows\\SYSTEM32\\dhcpcsvc.DLL", + "C:\\windows\\SYSTEM32\\DNSAPI.dll", + "C:\\Windows\\System32\\rasadhlp.dll", + "C:\\windows\\System32\\fwpuclnt.dll", + "C:\\windows\\system32\\napinsp.dll", + "C:\\windows\\system32\\pnrpnsp.dll", + "C:\\windows\\System32\\winrnr.dll", + "C:\\windows\\system32\\NLAapi.dll", + "C:\\windows\\system32\\wshbth.dll" + ] +} \ No newline at end of file diff --git a/src/app/app-routing.module.ts b/src/app/app-routing.module.ts index b9e22b1b0..8bb4acc3d 100644 --- a/src/app/app-routing.module.ts +++ b/src/app/app-routing.module.ts @@ -1,255 +1,256 @@ -import { NgModule } from '@angular/core'; -import { PreloadAllModules, RouterModule, Routes } from '@angular/router'; - -const routes = [ - { - path: '', - loadChildren: () => import('./index/index.module').then(m => m.IndexPageModule) - }, - { - path: '', - loadChildren: () => import('./home/home.module').then( m => m.HomePageModule) - }, - { - path: 'empty-chat', - loadChildren: () => import('./shared/chat/empty-chat/empty-chat.module').then( m => m.EmptyChatPageModule) - }, - { - path: 'empty-container', - loadChildren: () => import('./shared/empty-container/empty-container.module').then( m => m.EmptyContainerPageModule) - }, - { - path: 'events-to-approve', - loadChildren: () => import('./shared/gabinete-digital/events-to-approve/events-to-approve.module').then( m => m.EventsToApprovePageModule) - }, - { - path: 'expedients', - loadChildren: () => import('./shared/gabinete-digital/expedients/expedients.module').then( m => m.ExpedientsPageModule) - }, - { - path: 'document-detail', - loadChildren: () => import('./modals/document-detail/document-detail.module').then( m => m.DocumentDetailPageModule) - }, - { - path: 'edit-group', - loadChildren: () => import('./shared/chat/edit-group/edit-group.module').then( m => m.EditGroupPageModule) - }, - { - path: 'pedidos', - loadChildren: () => import('./shared/gabinete-digital/pedidos/pedidos.module').then( m => m.PedidosPageModule) - }, - { - path: 'event-list', - loadChildren: () => import('./pages/gabinete-digital/event-list/event-list.module').then(m =>m.EventListPageModule) - }, - { - path: 'despachos', - loadChildren: () => import('./shared/gabinete-digital/despachos/despachos.module').then( m => m.DespachosPageModule) - }, - { - path: 'create-process', - loadChildren: () => import('./modals/create-process/create-process.module').then( m => m.CreateProcessPageModule) - }, - { - path: 'pendentes', - loadChildren: () => import('./shared/gabinete-digital/pendentes/pendentes.module').then( m => m.PendentesPageModule) - }, - { - path: 'delegar', - loadChildren: () => import('./modals/delegar/delegar.module').then( m => m.DelegarPageModule) - }, - { - path: 'add-note', - loadChildren: () => import('./modals/add-note/add-note.module').then( m => m.AddNotePageModule) - }, - { - path: 'dar-parecer', - loadChildren: () => import('./modals/dar-parecer/dar-parecer.module').then( m => m.DarParecerPageModule) - }, - { - path: 'opts-expediente', - loadChildren: () => import('./shared/popover/opts-expediente/opts-expediente.module').then( m => m.OptsExpedientePageModule) - }, - { - path: 'despachos-pr', - loadChildren: () => import('./shared/gabinete-digital/despachos-pr/despachos-pr.module').then( m => m.DespachosPrPageModule) - }, - { - path: 'diplomas', - loadChildren: () => import('./shared/gabinete-digital/diplomas/diplomas.module').then( m => m.DiplomasPageModule) - }, - { - path: 'expedientes-pr', - loadChildren: () => import('./shared/gabinete-digital/expedientes-pr/expedientes-pr.module').then( m => m.ExpedientesPrPageModule) - }, - { - path: 'diplomas-assinar', - loadChildren: () => import('./shared/gabinete-digital/diplomas-assinar/diplomas-assinar.module').then( m => m.DiplomasAssinarPageModule) - }, - { - path: 'opts-expediente-pr', - loadChildren: () => import('./shared/popover/opts-expediente-pr/opts-expediente-pr.module').then( m => m.OptsExpedientePrPageModule) - }, - { - path: 'despachos-options', - loadChildren: () => import('./shared/popover/despachos-options/despachos-options.module').then( m => m.DespachosOptionsPageModule) - }, - { - path: 'despachos-pr-options', - loadChildren: () => import('./shared/popover/despachos-pr-options/despachos-pr-options.module').then( m => m.DespachosPrOptionsPageModule) - }, - { - path: 'deploma-options', - loadChildren: () => import('./shared/popover/deploma-options/deploma-options.module').then( m => m.DeplomaOptionsPageModule) - }, - { - path: 'pin', - loadChildren: () => import('./shared/pin/pin.module').then( m => m.PinPageModule) - }, - { - path: 'fingerprint', - loadChildren: () => import('./shared/fingerprint/fingerprint.module').then( m => m.FingerprintPageModule) - }, - { - path: 'new-event', - loadChildren: () => import('./shared/agenda/new-event/new-event.module').then( m => m.NewEventPageModule) - }, - { - path: 'event-list', - loadChildren: () => import('./shared/agenda/event-list/event-list.module').then( m => m.EventListPageModule) - }, - { - path: 'approve-event', - loadChildren: () => import('./shared/agenda/approve-event/approve-event.module').then( m => m.ApproveEventPageModule) - }, - { - path: 'bad-request', - loadChildren: () => import('./shared/popover/bad-request/bad-request.module').then( m => m.BadRequestPageModule) - }, - { - path: 'success-message', - loadChildren: () => import('./shared/popover/success-message/success-message.module').then( m => m.SuccessMessagePageModule) - }, - { - path: 'forward', - loadChildren: () => import('./modals/forward/forward.module').then( m => m.ForwardPageModule) - }, - { - path: 'edit-event-to-approve', - loadChildren: () => import('./shared/agenda/edit-event-to-approve/edit-event-to-approve.module').then( m => m.EditEventToApprovePageModule) - }, - { - path: 'actions-options', - loadChildren: () => import('./shared/popover/actions-options/actions-options.module').then( m => m.ActionsOptionsPageModule) - }, - { - path: 'edit-action', - loadChildren: () => import('./shared/publication/edit-action/edit-action.module').then( m => m.EditActionPageModule) - }, - { - path: 'eliminate-event', - loadChildren: () => import('./modals/eliminate-event/eliminate-event.module').then( m => m.EliminateEventPageModule) - }, - { - path: 'inactivity', - loadChildren: () => import('./pages/inactivity/inactivity.module').then( m => m.InactivityPageModule) - }, - { - path: 'document-set-up-meeting', - loadChildren: () => import('./modals/document-set-up-meeting/document-set-up-meeting.module').then( m => m.DocumentSetUpMeetingPageModule) - }, - { - path: 'profile', - loadChildren: () => import('./modals/profile/profile.module').then( m => m.ProfilePageModule) - }, - { - path: 'all-processes', - loadChildren: () => import('./shared/gabinete-digital/all-processes/all-processes.module').then( m => m.AllProcessesPageModule) - }, - { - path: 'searched-document-options', - loadChildren: () => import('./shared/popover/searched-document-options/searched-document-options.module').then( m => m.SearchedDocumentOptionsPageModule) - }, - { - path: 'task-list', - loadChildren: () => import('./shared/gabinete-digital/generic/task-list/task-list.module').then( m => m.TaskListPageModule) - }, - { - path: 'task-list', - loadChildren: () => import('./shared/gabinete-digital/generic/task-list/task-list.module').then( m => m.TaskListPageModule) - }, - { - path: 'task-detailde', - loadChildren: () => import('./shared/gabinete-digital/generic/task-detailde/task-detailde.module').then( m => m.TaskDetaildePageModule) - }, - { - path: 'task-details', - loadChildren: () => import('./shared/gabinete-digital/generic/task-details/task-details.module').then( m => m.TaskDetailsPageModule) - }, - { - path: 'chat-options-features', - loadChildren: () => import('./modals/chat-options-features/chat-options-features.module').then( m => m.ChatOptionsFeaturesPageModule) - }, - { - path: 'document-viewer', - loadChildren: () => import('./modals/document-viewer/document-viewer.module').then( m => m.DocumentViewerPageModule) - }, - { - path: 'view-document', - loadChildren: () => import('./modals/view-document/view-document.module').then( m => m.ViewDocumentPageModule) - }, - { - path: 'event-details-documents-options', - loadChildren: () => import('./shared/popover/event-details-documents-options/event-details-documents-options.module').then( m => m.EventDetailsDocumentsOptionsPageModule) - }, - { - path: 'preview-camera', - loadChildren: () => import('./modals/preview-camera/preview-camera.module').then( m => m.PreviewCameraPageModule) - }, - { - path: 'group-icons', - loadChildren: () => import('./modals/group-icons/group-icons.module').then( m => m.GroupIconsPageModule) - }, - { - path: 'video-allowed', - loadChildren: () => import('./modals/video-allowed/video-allowed.module').then( m => m.VideoAllowedPageModule) - }, - { - path: 'preview-photo', - loadChildren: () => import('./modals/preview-photo/preview-photo.module').then( m => m.PreviewPhotoPageModule) - }, - { - path: 'custom-image-cache', - loadChildren: () => import('./services/file/custom-image-cache/custom-image-cache.module').then( m => m.CustomImageCachePageModule) - }, - { - path: 'view-media', - loadChildren: () => import('./modals/view-media/view-media.module').then( m => m.ViewMediaPageModule) - }, - { - path: 'view-event', - loadChildren: () => import('./modals/view-event/view-event.module').then( m => m.ViewEventPageModule) - }, - { - path: 'previewer', - loadChildren: () => import('./modals/previewer/previewer.module').then( m => m.PreviewerPageModule) - }, - { - path: 'set-room-owner', - loadChildren: () => import('./modals/set-room-owner/set-room-owner.module').then( m => m.SetRoomOwnerPageModule) - }, - { - path: 'diplomas-gerar', - loadChildren: () => import('./shared/gabinete-digital/diplomas-gerar/diplomas-gerar.module').then( m => m.DiplomasGerarPageModule) - }, - { - path: 'diplomas-gerar-options', - loadChildren: () => import('./shared/popover/diplomas-gerar-options/diplomas-gerar-options.module').then( m => m.DiplomasGerarOptionsPageModule) - }, - { - path: 'chat-debugging', - loadChildren: () => import('./shared/popover/chat-debugging/chat-debugging.module').then( m => m.ChatDebuggingPageModule) - }, { +import { NgModule } from '@angular/core'; +import { PreloadAllModules, RouterModule, Routes } from '@angular/router'; + +const routes = [ + { + path: '', + loadChildren: () => import('./index/index.module').then(m => m.IndexPageModule) + }, + { + path: '', + loadChildren: () => import('./home/home.module').then( m => m.HomePageModule) + }, + { + path: 'empty-chat', + loadChildren: () => import('./shared/chat/empty-chat/empty-chat.module').then( m => m.EmptyChatPageModule) + }, + { + path: 'empty-container', + loadChildren: () => import('./shared/empty-container/empty-container.module').then( m => m.EmptyContainerPageModule) + }, + { + path: 'events-to-approve', + loadChildren: () => import('./shared/gabinete-digital/events-to-approve/events-to-approve.module').then( m => m.EventsToApprovePageModule) + }, + { + path: 'expedients', + loadChildren: () => import('./shared/gabinete-digital/expedients/expedients.module').then( m => m.ExpedientsPageModule) + }, + { + path: 'document-detail', + loadChildren: () => import('./modals/document-detail/document-detail.module').then( m => m.DocumentDetailPageModule) + }, + { + path: 'edit-group', + loadChildren: () => import('./shared/chat/edit-group/edit-group.module').then( m => m.EditGroupPageModule) + }, + { + path: 'pedidos', + loadChildren: () => import('./shared/gabinete-digital/pedidos/pedidos.module').then( m => m.PedidosPageModule) + }, + { + path: 'event-list', + loadChildren: () => import('./pages/gabinete-digital/event-list/event-list.module').then(m =>m.EventListPageModule) + }, + { + path: 'despachos', + loadChildren: () => import('./shared/gabinete-digital/despachos/despachos.module').then( m => m.DespachosPageModule) + }, + { + path: 'create-process', + loadChildren: () => import('./modals/create-process/create-process.module').then( m => m.CreateProcessPageModule) + }, + { + path: 'pendentes', + loadChildren: () => import('./shared/gabinete-digital/pendentes/pendentes.module').then( m => m.PendentesPageModule) + }, + { + path: 'delegar', + loadChildren: () => import('./modals/delegar/delegar.module').then( m => m.DelegarPageModule) + }, + { + path: 'add-note', + loadChildren: () => import('./modals/add-note/add-note.module').then( m => m.AddNotePageModule) + }, + { + path: 'dar-parecer', + loadChildren: () => import('./modals/dar-parecer/dar-parecer.module').then( m => m.DarParecerPageModule) + }, + { + path: 'opts-expediente', + loadChildren: () => import('./shared/popover/opts-expediente/opts-expediente.module').then( m => m.OptsExpedientePageModule) + }, + { + path: 'despachos-pr', + loadChildren: () => import('./shared/gabinete-digital/despachos-pr/despachos-pr.module').then( m => m.DespachosPrPageModule) + }, + { + path: 'diplomas', + loadChildren: () => import('./shared/gabinete-digital/diplomas/diplomas.module').then( m => m.DiplomasPageModule) + }, + { + path: 'expedientes-pr', + loadChildren: () => import('./shared/gabinete-digital/expedientes-pr/expedientes-pr.module').then( m => m.ExpedientesPrPageModule) + }, + { + path: 'diplomas-assinar', + loadChildren: () => import('./shared/gabinete-digital/diplomas-assinar/diplomas-assinar.module').then( m => m.DiplomasAssinarPageModule) + }, + { + path: 'opts-expediente-pr', + loadChildren: () => import('./shared/popover/opts-expediente-pr/opts-expediente-pr.module').then( m => m.OptsExpedientePrPageModule) + }, + { + path: 'despachos-options', + loadChildren: () => import('./shared/popover/despachos-options/despachos-options.module').then( m => m.DespachosOptionsPageModule) + }, + { + path: 'despachos-pr-options', + loadChildren: () => import('./shared/popover/despachos-pr-options/despachos-pr-options.module').then( m => m.DespachosPrOptionsPageModule) + }, + { + path: 'deploma-options', + loadChildren: () => import('./shared/popover/deploma-options/deploma-options.module').then( m => m.DeplomaOptionsPageModule) + }, + { + path: 'pin', + loadChildren: () => import('./shared/pin/pin.module').then( m => m.PinPageModule) + }, + { + path: 'fingerprint', + loadChildren: () => import('./shared/fingerprint/fingerprint.module').then( m => m.FingerprintPageModule) + }, + { + path: 'new-event', + loadChildren: () => import('./shared/agenda/new-event/new-event.module').then( m => m.NewEventPageModule) + }, + { + path: 'event-list', + loadChildren: () => import('./shared/agenda/event-list/event-list.module').then( m => m.EventListPageModule) + }, + { + path: 'approve-event', + loadChildren: () => import('./shared/agenda/approve-event/approve-event.module').then( m => m.ApproveEventPageModule) + }, + { + path: 'bad-request', + loadChildren: () => import('./shared/popover/bad-request/bad-request.module').then( m => m.BadRequestPageModule) + }, + { + path: 'success-message', + loadChildren: () => import('./shared/popover/success-message/success-message.module').then( m => m.SuccessMessagePageModule) + }, + { + path: 'forward', + loadChildren: () => import('./modals/forward/forward.module').then( m => m.ForwardPageModule) + }, + { + path: 'edit-event-to-approve', + loadChildren: () => import('./shared/agenda/edit-event-to-approve/edit-event-to-approve.module').then( m => m.EditEventToApprovePageModule) + }, + { + path: 'actions-options', + loadChildren: () => import('./shared/popover/actions-options/actions-options.module').then( m => m.ActionsOptionsPageModule) + }, + { + path: 'edit-action', + loadChildren: () => import('./shared/publication/edit-action/edit-action.module').then( m => m.EditActionPageModule) + }, + { + path: 'eliminate-event', + loadChildren: () => import('./modals/eliminate-event/eliminate-event.module').then( m => m.EliminateEventPageModule) + }, + { + path: 'inactivity', + loadChildren: () => import('./pages/inactivity/inactivity.module').then( m => m.InactivityPageModule) + }, + { + path: 'document-set-up-meeting', + loadChildren: () => import('./modals/document-set-up-meeting/document-set-up-meeting.module').then( m => m.DocumentSetUpMeetingPageModule) + }, + { + path: 'profile', + loadChildren: () => import('./modals/profile/profile.module').then( m => m.ProfilePageModule) + }, + { + path: 'all-processes', + loadChildren: () => import('./shared/gabinete-digital/all-processes/all-processes.module').then( m => m.AllProcessesPageModule) + }, + { + path: 'searched-document-options', + loadChildren: () => import('./shared/popover/searched-document-options/searched-document-options.module').then( m => m.SearchedDocumentOptionsPageModule) + }, + { + path: 'task-list', + loadChildren: () => import('./shared/gabinete-digital/generic/task-list/task-list.module').then( m => m.TaskListPageModule) + }, + { + path: 'task-list', + loadChildren: () => import('./shared/gabinete-digital/generic/task-list/task-list.module').then( m => m.TaskListPageModule) + }, + { + path: 'task-detailde', + loadChildren: () => import('./shared/gabinete-digital/generic/task-detailde/task-detailde.module').then( m => m.TaskDetaildePageModule) + }, + { + path: 'task-details', + loadChildren: () => import('./shared/gabinete-digital/generic/task-details/task-details.module').then( m => m.TaskDetailsPageModule) + }, + { + path: 'chat-options-features', + loadChildren: () => import('./modals/chat-options-features/chat-options-features.module').then( m => m.ChatOptionsFeaturesPageModule) + }, + { + path: 'document-viewer', + loadChildren: () => import('./modals/document-viewer/document-viewer.module').then( m => m.DocumentViewerPageModule) + }, + { + path: 'view-document', + loadChildren: () => import('./modals/view-document/view-document.module').then( m => m.ViewDocumentPageModule) + }, + { + path: 'event-details-documents-options', + loadChildren: () => import('./shared/popover/event-details-documents-options/event-details-documents-options.module').then( m => m.EventDetailsDocumentsOptionsPageModule) + }, + { + path: 'preview-camera', + loadChildren: () => import('./modals/preview-camera/preview-camera.module').then( m => m.PreviewCameraPageModule) + }, + { + path: 'group-icons', + loadChildren: () => import('./modals/group-icons/group-icons.module').then( m => m.GroupIconsPageModule) + }, + { + path: 'video-allowed', + loadChildren: () => import('./modals/video-allowed/video-allowed.module').then( m => m.VideoAllowedPageModule) + }, + { + path: 'preview-photo', + loadChildren: () => import('./modals/preview-photo/preview-photo.module').then( m => m.PreviewPhotoPageModule) + }, + { + path: 'custom-image-cache', + loadChildren: () => import('./services/file/custom-image-cache/custom-image-cache.module').then( m => m.CustomImageCachePageModule) + }, + { + path: 'view-media', + loadChildren: () => import('./modals/view-media/view-media.module').then( m => m.ViewMediaPageModule) + }, + { + path: 'view-event', + loadChildren: () => import('./modals/view-event/view-event.module').then( m => m.ViewEventPageModule) + }, + { + path: 'previewer', + loadChildren: () => import('./modals/previewer/previewer.module').then( m => m.PreviewerPageModule) + }, + { + path: 'set-room-owner', + loadChildren: () => import('./modals/set-room-owner/set-room-owner.module').then( m => m.SetRoomOwnerPageModule) + }, + { + path: 'diplomas-gerar', + loadChildren: () => import('./shared/gabinete-digital/diplomas-gerar/diplomas-gerar.module').then( m => m.DiplomasGerarPageModule) + }, + { + path: 'diplomas-gerar-options', + loadChildren: () => import('./shared/popover/diplomas-gerar-options/diplomas-gerar-options.module').then( m => m.DiplomasGerarOptionsPageModule) + }, + { + path: 'chat-debugging', + loadChildren: () => import('./shared/popover/chat-debugging/chat-debugging.module').then( m => m.ChatDebuggingPageModule) + }, + { path: 'chat-message-debugging', loadChildren: () => import('./shared/popover/chat-message-debugging/chat-message-debugging.module').then( m => m.ChatMessageDebuggingPageModule) }, @@ -260,25 +261,29 @@ const routes = [ { path: 'information', loadChildren: () => import('./modals/information/information.module').then( m => m.InformationPageModule) + }, + { + path: 'chat-options-popover', + loadChildren:() => import('./shared/popover/chat-options-popover/chat-options-popover.module').then( m => m.ChatOptionsPopoverPageModule) } - - /* - path: 'chat', - component: ChatPage - } */ - - /* - path: 'chat', - component: ChatPage - } */ - -]; -@NgModule({ - imports: [ - RouterModule.forRoot(routes, - { preloadingStrategy: PreloadAllModules }) - ], - exports: [RouterModule] -}) -export class AppRoutingModule {} + + /* + path: 'chat', + component: ChatPage + } */ + + /* + path: 'chat', + component: ChatPage + } */ + +]; +@NgModule({ + imports: [ + RouterModule.forRoot(routes, + { preloadingStrategy: PreloadAllModules }) + ], + exports: [RouterModule] +}) +export class AppRoutingModule {} diff --git a/src/app/guards/login.guard.ts b/src/app/guards/login.guard.ts index 2987806a8..a8f1790f3 100644 --- a/src/app/guards/login.guard.ts +++ b/src/app/guards/login.guard.ts @@ -4,6 +4,7 @@ import { Observable } from 'rxjs'; import { SessionStore } from '../store/session.service'; import { Platform } from '@ionic/angular'; import { RouteService } from 'src/app/services/route.service' +import { FirstEnterService } from 'src/app/services/first-enter.service' @Injectable({ providedIn: 'root' @@ -12,7 +13,8 @@ export class LoginGuard implements CanActivate { constructor( private router:Router, private platform: Platform, - private RouteService: RouteService ) { + private RouteService: RouteService, + private FirstEnterService: FirstEnterService ) { } canActivate( @@ -24,7 +26,7 @@ export class LoginGuard implements CanActivate { if(SessionStore.exist && SessionStore.user.Inactivity && SessionStore.user.LoginPreference != 'Pin' ) { // enter app - this.router.navigate(['/home/events']); + this.FirstEnterService.enter() return false } else if(SessionStore.exist && !SessionStore.user.Inactivity && SessionStore.user.LoginPreference == 'Pin' && SessionStore.forceToLoginWithForceToLogInWithPassword && this.platform.is('mobile')) { // login with password while has pin diff --git a/src/app/home/home.page.html b/src/app/home/home.page.html index 508ad8347..f4287e966 100644 --- a/src/app/home/home.page.html +++ b/src/app/home/home.page.html @@ -27,7 +27,7 @@ - Ações + Acções diff --git a/src/app/home/home.page.ts b/src/app/home/home.page.ts index 954089660..f9d675478 100644 --- a/src/app/home/home.page.ts +++ b/src/app/home/home.page.ts @@ -39,7 +39,6 @@ export class HomePage implements OnInit { toDayEventStorage = ToDayEventStorage totalDocumentStore = TotalDocumentStore expedienteGdStore = ExpedienteGdStore - adding: "intervenient" | "CC" = "intervenient"; mobileComponent = { showAddNewEvent: false, diff --git a/src/app/modals/document-set-up-meeting/document-set-up-meeting.page.html b/src/app/modals/document-set-up-meeting/document-set-up-meeting.page.html index 5c9718ad4..c6f63a9d0 100644 --- a/src/app/modals/document-set-up-meeting/document-set-up-meeting.page.html +++ b/src/app/modals/document-set-up-meeting/document-set-up-meeting.page.html @@ -171,7 +171,7 @@ [(ngModel)]="postData.StartDate" [disabled]="disabled" > - + - + 52 ? (hours === 23 ? 0 : ++hours) : hours; + + if (m == 0) { + if(minutes > m){ + m = m + 15; + } + timeToReturn.setHours(h); + timeToReturn.setMinutes(m); + }else{ + if(minutes > m){ + + m = m + 15; + + timeToReturn.setHours(h); + timeToReturn.setMinutes(m); + }else { + timeToReturn.setHours(h); + timeToReturn.setMinutes(m); + } + } + + // console.log("AFTER IF MINUTES: " +m); + // console.log("AFTER HOURS: " +h); + + return timeToReturn; + } + + setStartDate(){ + this.postData.StartDate = this.roundTimeQuarterHour(); + } + + setEndDate(){ + this.postData.EndDate = this.postData.StartDate; + } + } diff --git a/src/app/modals/profile/edit-profile/edit-profile.page.html b/src/app/modals/profile/edit-profile/edit-profile.page.html index 26565e73d..a48593245 100644 --- a/src/app/modals/profile/edit-profile/edit-profile.page.html +++ b/src/app/modals/profile/edit-profile/edit-profile.page.html @@ -3,14 +3,14 @@
diff --git a/src/app/pages/chat/messages/messages.page.html b/src/app/pages/chat/messages/messages.page.html index 6a26f2b97..f626c951b 100644 --- a/src/app/pages/chat/messages/messages.page.html +++ b/src/app/pages/chat/messages/messages.page.html @@ -60,10 +60,12 @@ - - - - + Enviado + + + + + Lido
Tentar
@@ -97,10 +99,12 @@ image - - - - + Enviado + + + + + Lido
Tentar
@@ -160,13 +164,13 @@ - - - - - - - + + Enviado + + + + + Lido
Tentar
@@ -194,24 +198,6 @@ -
-
- {{msg.u.name}} criou esta reunião
-
- - De {{showDateDuration(msg.file.start_date)}} a - {{showDateDuration(msg.file.end_date)}} -
- - - {{msg.file.venue}} -
-
- {{last ? scrollToBottom() : ''}} -
-
Apagou a mensagem
diff --git a/src/app/pages/chat/messages/messages.page.ts b/src/app/pages/chat/messages/messages.page.ts index fb0689084..dae0950b1 100644 --- a/src/app/pages/chat/messages/messages.page.ts +++ b/src/app/pages/chat/messages/messages.page.ts @@ -11,7 +11,6 @@ import { ChatService } from 'src/app/services/chat.service'; import { FileService } from 'src/app/services/functions/file.service'; import { ProcessesService } from 'src/app/services/processes.service'; import { ToastService } from 'src/app/services/toast.service'; -import { NewEventPage } from 'src/app/shared/agenda/new-event/new-event.page'; import { ChatOptionsPopoverPage } from 'src/app/shared/popover/chat-options-popover/chat-options-popover.page'; import { MessagesOptionsPage } from 'src/app/shared/popover/messages-options/messages-options.page'; import { ChatMessageStore } from 'src/app/store/chat/chat-message.service'; @@ -41,6 +40,7 @@ import { ViewMediaPage } from 'src/app/modals/view-media/view-media.page'; import { File } from '@awesome-cordova-plugins/file/ngx'; import { FileOpener } from '@awesome-cordova-plugins/file-opener/ngx'; import { Filesystem, Directory } from '@capacitor/filesystem'; +import { NewEventPage } from '../../agenda/new-event/new-event.page'; const IMAGE_DIR = 'stored-images'; @@ -331,6 +331,8 @@ export class MessagesPage implements OnInit, AfterViewInit, OnDestroy { async goToEvent(event: any) { + // console.log(event) + let classs; if (window.innerWidth < 701) { classs = 'modal modal-desktop' @@ -584,7 +586,7 @@ export class MessagesPage implements OnInit, AfterViewInit, OnDestroy { } async bookMeeting() { - this.attendees = this.members.map((val) => { + let attendees = this.ChatSystemService.getDmRoom(this.roomId).members.map((val) => { return { Name: val.name, EmailAddress: val.username + "@" + environment.domain, @@ -597,15 +599,30 @@ export class MessagesPage implements OnInit, AfterViewInit, OnDestroy { const modal = await this.modalController.create({ component: NewEventPage, componentProps: { - attendees: this.attendees, + attendees: attendees, + roomId: this.roomId }, cssClass: 'modal modal-desktop', backdropDismiss: false }); await modal.present(); modal.onDidDismiss().then((data) => { - if (data) { + if (data?.data && data.data.id) { + // const roomId = this.roomId + + // this.ChatSystemService.getDmRoom(roomId).send({ + // file: { + // "type": "application/meeting", + // "subject": data.data.Subject, + // "start_date": data.data.StartDate, + // "end_date": data.data.EndDate, + // "venue": data.data.venue, + // "id": data.data.id, + // "calendarId": data.data.CalendarId + // }, + // temporaryData: {} + // }) } }); } diff --git a/src/app/pages/events/attendees/attendees.page.ts b/src/app/pages/events/attendees/attendees.page.ts index e00eb85f4..8689d453a 100644 --- a/src/app/pages/events/attendees/attendees.page.ts +++ b/src/app/pages/events/attendees/attendees.page.ts @@ -81,9 +81,9 @@ export class AttendeesPageModal implements OnInit { } - remove(itm: EventPerson){ + remove(itm: EventPerson) { - if(this.adding == "intervenient"){ + if(this.adding == "intervenient") { this.taskParticipants = this.taskParticipants.filter((contact, index) =>{ @@ -135,10 +135,23 @@ export class AttendeesPageModal implements OnInit { }); } - this.contacts = result; + this.contacts = this.sort(result as any); this.showLoader = false; } ); } + + sort(data: []) { + return data.sort(function (a: any, b: any) { + if (a.Name > b.Name) { + return -1; + } + if (b.Name > a.Name) { + return 1; + } + return 0; + }).reverse() + } + } \ No newline at end of file diff --git a/src/app/pages/events/events.page.html b/src/app/pages/events/events.page.html index f74da62f6..527beb5dc 100644 --- a/src/app/pages/events/events.page.html +++ b/src/app/pages/events/events.page.html @@ -125,7 +125,7 @@ (click)="goToExpediente(task.SerialNumber)">
-
{{task.taskStartDate | date: 'dd-MM-yyyy'}}
+
{{task.taskStartDate | date: 'dd-MM-yy'}}
{{task.taskStartDate | date: 'HH:mm'}}
diff --git a/src/app/pages/gabinete-digital/expediente/book-meeting-modal/book-meeting-modal.page.html b/src/app/pages/gabinete-digital/expediente/book-meeting-modal/book-meeting-modal.page.html index 68058bd0c..4e7d0f496 100644 --- a/src/app/pages/gabinete-digital/expediente/book-meeting-modal/book-meeting-modal.page.html +++ b/src/app/pages/gabinete-digital/expediente/book-meeting-modal/book-meeting-modal.page.html @@ -147,7 +147,7 @@ [min]="minDate" [disabled]="disabled" > - + - + 52 ? (hours === 23 ? 0 : ++hours) : hours; + + if (m == 0) { + if(minutes > m){ + m = m + 15; + } + timeToReturn.setHours(h); + timeToReturn.setMinutes(m); + }else{ + if(minutes > m){ + + m = m + 15; + + timeToReturn.setHours(h); + timeToReturn.setMinutes(m); + }else { + timeToReturn.setHours(h); + timeToReturn.setMinutes(m); + } + } + + // console.log("AFTER IF MINUTES: " +m); + // console.log("AFTER HOURS: " +h); + + return timeToReturn; + } + + setStartDate(){ + this.postData.StartDate = this.roundTimeQuarterHour(); + } + + setEndDate(){ + this.postData.EndDate = this.postData.StartDate; + } + } diff --git a/src/app/pages/gabinete-digital/gabinete-digital.page.html b/src/app/pages/gabinete-digital/gabinete-digital.page.html index 355a8c3f9..6c6e6ea80 100644 --- a/src/app/pages/gabinete-digital/gabinete-digital.page.html +++ b/src/app/pages/gabinete-digital/gabinete-digital.page.html @@ -71,7 +71,8 @@
- Agenda {{task.Agenda || task.workflowInstanceDataFields.Agenda}} do Presidente da República + + Agenda {{task.Agenda || task.workflowInstanceDataFields.Agenda}} do Titular A sua agenda {{task.Agenda || task.workflowInstanceDataFields.Agenda}} @@ -227,14 +228,15 @@
-

Despacho do Presidente da República

+ +

Despacho do Titular

Despachos criados por mim

{{ despachoprstore.count }} Documentos

- +
@@ -372,7 +374,6 @@
- diff --git a/src/app/pages/gabinete-digital/gabinete-digital.page.ts b/src/app/pages/gabinete-digital/gabinete-digital.page.ts index 71af3bee3..1d21c855d 100644 --- a/src/app/pages/gabinete-digital/gabinete-digital.page.ts +++ b/src/app/pages/gabinete-digital/gabinete-digital.page.ts @@ -106,6 +106,8 @@ export class GabineteDigitalPage implements OnInit { AllProcess = [] + // workerList : Worker + @ViewChild(ExpedientsPage) expedientesPage: ExpedientsPage; @ViewChild(PendentesPage) pendentesListPage: PendentesPage; @ViewChild(EventsToApprovePage) eventsToApprove: EventsToApprovePage; @@ -126,6 +128,12 @@ export class GabineteDigitalPage implements OnInit { public NotificationsService: NotificationsService ) { + // this.workerList = new Worker(new URL('./list.worker.js', import.meta.url)); + + // this.workerList.onmessage = (oEvent) => { + // this.AllProcess = oEvent.data + // } + window.onresize = (event) => { // if not mobile remove all component if (window.innerWidth < 701) { @@ -157,8 +165,8 @@ export class GabineteDigitalPage implements OnInit { } const pathname = window.location.pathname - this.router.events.forEach((event) => { - if (event instanceof NavigationEnd && event.url == pathname) { + //this.router.events.forEach((event) => { + //if (event instanceof NavigationEnd && event.url == pathname) { this.waitForDomService.selector({ selector: 'app-gabinete-digital ion-content .aside-wrapper', callback: () => { @@ -171,88 +179,96 @@ export class GabineteDigitalPage implements OnInit { } } }) - } - }); + //} + //}); this.hideRefreshButton(); - this.waitForDomService.selector({ - selector: 'app-gabinete-digital ion-content .aside-wrapper', - callback: () => { - // console.log('SECOND CALL') - this.loadAllProcesses(); - } - }) + // this.waitForDomService.selector({ + // selector: 'app-gabinete-digital ion-content .aside-wrapper', + // callback: () => { + // // console.log('SECOND CALL') + // this.loadAllProcesses(); + // } + // }) this.backgroundservice.registerBackService('Online', () => { // this.loadAllProcesses(); }); - this.NotificationsService.registerCallback( - 'despachos', - () => { - this.LoadCounts(); - console.log('refresh with notification') - } - ) - this.NotificationsService.registerCallback( - 'despachos-pr', - () => { - this.LoadCounts(); - console.log('refresh with notification') - } - ) - this.NotificationsService.registerCallback( - 'expediente', - () => { - this.LoadCounts(); - console.log('refresh with notification') - } - ) - this.NotificationsService.registerCallback( - 'gabinete-digital', - () => { - this.LoadCounts(); - console.log('refresh with notification') - } - ) - this.NotificationsService.registerCallback( - 'parecer', - () => { - this.LoadCounts(); - console.log('refresh with notification') - } - ) - this.NotificationsService.registerCallback( - 'deferimento', - () => { - this.LoadCounts(); - console.log('refresh with notification') - } - ) - this.NotificationsService.registerCallback( - 'diplomas-assinar', - () => { - this.LoadCounts(); - console.log('refresh with notification') - } - ) - this.NotificationsService.registerCallback( - 'diplomas', - () => { - this.LoadCounts(); - console.log('refresh with notification') - } - ) - this.NotificationsService.registerCallback( - 'expedientes-pr', - () => { - this.LoadCounts(); - console.log('refresh with notification') - } - ) + // this.NotificationsService.registerCallback({ + // type:'despachos', + // funx:() => { + // // this.loadCount(); + // console.log('refresh with notification') + // } + // }) + // this.NotificationsService.registerCallback({ + // type:'*', + // funx:() => { + // // this.LoadCounts(); + // console.log('refresh with notification *') + // } + // }) + + // this.NotificationsService.registerCallback({ + // type:'despachos-pr', + // funx:() => { + // // this.LoadCounts(); + // console.log('refresh with notification') + // } + // }) + // this.NotificationsService.registerCallback({ + // type:'expediente', + // funx: () => { + // this.LoadCounts(); + // console.log('refresh with notification') + // } + // }) + // this.NotificationsService.registerCallback({ + // type:'gabinete-digital', + // funx:() => { + // this.LoadCounts(); + // console.log('refresh with notification') + // } + // }) + // this.NotificationsService.registerCallback({ + // type:'parecer', + // funx: () => { + // this.LoadCounts(); + // console.log('refresh with notification') + // } + // }) + // this.NotificationsService.registerCallback({ + // type: 'deferimento', + // funx: () => { + // this.LoadCounts(); + // console.log('refresh with notification') + // } + // }) + // this.NotificationsService.registerCallback({ + // type: 'diplomas-assinar', + // funx: () => { + // this.LoadCounts(); + // console.log('refresh with notification') + // } + // }) + // this.NotificationsService.registerCallback({ + // type: 'diplomas', + // funx: () => { + // this.LoadCounts(); + // console.log('refresh with notification') + // } + // }) + // this.NotificationsService.registerCallback({ + // type: 'expedientes-pr', + // funx: () => { + // this.LoadCounts(); + // console.log('refresh with notification') + // } + // }) } @@ -570,7 +586,19 @@ export class GabineteDigitalPage implements OnInit { updateAllProcess() { this.AllProcess = this.expedientegbstore.list.concat(this.pedidosstore.listparecer).concat(this.pedidosstore.listdeferimento) .concat(this.despachoprstore.list).concat(this.eventoaprovacaostore.listmd).concat(this.eventoaprovacaostore.listpr).concat(this.despachoStore.list) - // .concat(this.deplomasStore.diplomasParaAssinarList).concat(this.deplomasStore.diplomasAssinadoList).concat(this.deplomasStore.DiplomaGerarList) + .concat(this.deplomasStore.diplomasParaAssinarList).concat(this.deplomasStore.diplomasAssinadoList).concat(this.deplomasStore.DiplomaGerarList).concat(this.pendentesstore.list) + + // try{ + // this.workerList.postMessage([ + // this.expedientegbstore.list,this.pedidosstore.listparecer,this.pedidosstore.listdeferimento, + // this.despachoprstore.list, this.eventoaprovacaostore.listmd, this.eventoaprovacaostore.listpr, this.despachoStore.list, + // this.deplomasStore.diplomasParaAssinarList, this.deplomasStore.diplomasAssinadoList, this.deplomasStore.DiplomaGerarList + // ]) + // } catch (e) { + // this.AllProcess = this.expedientegbstore.list.concat(this.pedidosstore.listparecer).concat(this.pedidosstore.listdeferimento) + // .concat(this.despachoprstore.list).concat(this.eventoaprovacaostore.listmd).concat(this.eventoaprovacaostore.listpr).concat(this.despachoStore.list) + // .concat(this.deplomasStore.diplomasParaAssinarList).concat(this.deplomasStore.diplomasAssinadoList).concat(this.deplomasStore.DiplomaGerarList) + // } } get getAllProcessCount() { diff --git a/src/app/pages/gabinete-digital/list.worker.js b/src/app/pages/gabinete-digital/list.worker.js new file mode 100644 index 000000000..adcecfb94 --- /dev/null +++ b/src/app/pages/gabinete-digital/list.worker.js @@ -0,0 +1,10 @@ +onmessage = function(oEvent) { + + + const list = Event.data + var a = [] + postMessage( + a.concat.apply([], [list]) + ); + +}; \ No newline at end of file diff --git a/src/app/pages/inactivity/inactivity.page.html b/src/app/pages/inactivity/inactivity.page.html index 9357d666e..88a12aaf3 100644 --- a/src/app/pages/inactivity/inactivity.page.html +++ b/src/app/pages/inactivity/inactivity.page.html @@ -7,8 +7,8 @@
diff --git a/src/app/pages/login/login.page.html b/src/app/pages/login/login.page.html index 60acee88b..0513e99e6 100644 --- a/src/app/pages/login/login.page.html +++ b/src/app/pages/login/login.page.html @@ -7,9 +7,9 @@
diff --git a/src/app/pages/login/login.page.ts b/src/app/pages/login/login.page.ts index 246760293..fa40f36f4 100644 --- a/src/app/pages/login/login.page.ts +++ b/src/app/pages/login/login.page.ts @@ -123,6 +123,7 @@ export class LoginPage implements OnInit { if (attempt.UserId == SessionStore.user.UserId) { await this.authService.SetSession(attempt, this.userattempt); + this.changeProfileService.run(); if(attempt.ChatData) { diff --git a/src/app/pages/publications/edit-action/edit-action.page.ts b/src/app/pages/publications/edit-action/edit-action.page.ts index 59517d6af..714f77c3c 100644 --- a/src/app/pages/publications/edit-action/edit-action.page.ts +++ b/src/app/pages/publications/edit-action/edit-action.page.ts @@ -25,7 +25,7 @@ export class EditActionPage implements OnInit { public minDate = new Date().toISOString() public maxDate: any; public stepHour = 1; - public stepMinute = 5; + public stepMinute = 15; public stepSecond = 5; public dateControlStart = new FormControl(moment("DD MM YYYY hh")); public dateControlEnd = new FormControl(moment("DD MM YYYY hh")); diff --git a/src/app/pages/publications/new-action/new-action.page.html b/src/app/pages/publications/new-action/new-action.page.html index e1410f6c7..853c838b8 100644 --- a/src/app/pages/publications/new-action/new-action.page.html +++ b/src/app/pages/publications/new-action/new-action.page.html @@ -44,7 +44,7 @@ [formControl]="dateControlStart" [disabled]="disabled" > - + - + this.currentDate.getTime())) { + if ((this.folder.DateBegin < this.folder.DateEnd)) { validado = true; - }else{ + } else { validado = false; } return validado == true ? ['ok']: []; @@ -111,8 +111,8 @@ export class NewActionPage implements OnInit { runValidation() { this.validateFrom = true; - if(new Date(this.folder.DateBegin).toISOString() > new Date(this.folder.DateEnd).toISOString()){ - this.toastService.badRequest("A data de início não pode ser superior a data de fim"); + if(new Date(this.folder.DateBegin).getTime() > new Date(this.folder.DateEnd).getTime()){ + this.toastService._badRequest("A data de início não pode ser superior a data de fim"); } } @@ -171,4 +171,42 @@ export class NewActionPage implements OnInit { this.modalController.dismiss(); } + + roundTimeQuarterHour() { + var timeToReturn = new Date(); + var minutes = timeToReturn.getMinutes(); + var hours = timeToReturn.getHours(); + + var m = (Math.round(minutes/15) * 15) % 60; + var h = minutes > 52 ? (hours === 23 ? 0 : ++hours) : hours; + + if (m == 0) { + if(minutes > m){ + m = m + 15; + } + timeToReturn.setHours(h); + timeToReturn.setMinutes(m); + }else{ + if(minutes > m) { + + m = m + 15; + + timeToReturn.setHours(h); + timeToReturn.setMinutes(m); + }else { + timeToReturn.setHours(h); + timeToReturn.setMinutes(m); + } + } + + return timeToReturn; + } + + setStartDate(){ + this.dateControlStart = new FormControl(moment(this.roundTimeQuarterHour())); + } + + setEndDate(){ + this.dateControlEnd = this.dateControlStart; + } } diff --git a/src/app/pages/publications/new-publication/new-publication.page.ts b/src/app/pages/publications/new-publication/new-publication.page.ts index e08e53da1..baf605d77 100644 --- a/src/app/pages/publications/new-publication/new-publication.page.ts +++ b/src/app/pages/publications/new-publication/new-publication.page.ts @@ -44,7 +44,7 @@ export class NewPublicationPage implements OnInit { public minDate = new Date().toISOString().slice(0, 10) public endMinDate = new Date(new Date().getTime() + 15 * 60000); public stepHour = 1; - public stepMinute = 5; + public stepMinute = 15; public stepSecond = 5; public color: ThemePalette = 'primary'; diff --git a/src/app/pages/publications/publications.page.html b/src/app/pages/publications/publications.page.html index 43c3d51b6..ed4d18038 100644 --- a/src/app/pages/publications/publications.page.html +++ b/src/app/pages/publications/publications.page.html @@ -15,7 +15,7 @@
- +
diff --git a/src/app/pages/publications/publications.page.ts b/src/app/pages/publications/publications.page.ts index 6762f50a2..a8ffc6082 100644 --- a/src/app/pages/publications/publications.page.ts +++ b/src/app/pages/publications/publications.page.ts @@ -24,7 +24,7 @@ import { PermissionService } from 'src/app/services/permission.service'; styleUrls: ['./publications.page.scss'], }) export class PublicationsPage implements OnInit { - showLoader: boolean; + showLoader: boolean = false publicationFolder: PublicationFolder; publication: Publication; @@ -57,7 +57,6 @@ export class PublicationsPage implements OnInit { hideRefreshBtn = true; showSlidingOptions = true; idSelected: string; - skeletonLoader: boolean; constructor( private router: Router, @@ -138,13 +137,10 @@ export class PublicationsPage implements OnInit { return this.theDate.getDate() + " de " + (this.months[this.theDate.getMonth()]) + " de " + this.theDate.getFullYear() } - loadList = false getActions() { - if(this.loadList == false) { - this.loadList = true + if(this.showLoader == false) { this.showLoader = true; - this.skeletonLoader = true; this.publications.GetPublicationFolderList().subscribe(async res => { const folders: PublicationFolder[] = this.getPublicationFolderMap(res) @@ -162,13 +158,9 @@ export class PublicationsPage implements OnInit { } this.showLoader = false; - this.skeletonLoader = false; - this.loadList = false }, (error) => { this.showLoader = false; - this.skeletonLoader = false; - this.loadList = false }); } @@ -268,8 +260,9 @@ export class PublicationsPage implements OnInit { } finally { loader.remove() + this.refreshing() } - this.refreshing() + } async AddPublicationFolder(item?: any) { diff --git a/src/app/pages/search/search.page.html b/src/app/pages/search/search.page.html index c6e78e75d..c9785f51b 100644 --- a/src/app/pages/search/search.page.html +++ b/src/app/pages/search/search.page.html @@ -27,29 +27,35 @@
-