@nixweb/nixloc-ui 0.0.300 → 0.0.301

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.
Files changed (158) hide show
  1. package/package.json +1 -1
  2. package/src/App.vue +13 -0
  3. package/src/component/forms/Button.vue +163 -0
  4. package/src/component/forms/ButtonFilter.vue +75 -0
  5. package/src/component/forms/ButtonGroup.vue +67 -0
  6. package/src/component/forms/ButtonSub.vue +98 -0
  7. package/src/component/forms/ButtonToggle.vue +77 -0
  8. package/src/component/forms/CheckboxGroup.vue +69 -0
  9. package/src/component/forms/CheckboxServer.vue +192 -0
  10. package/src/component/forms/CheckboxSimple.vue +60 -0
  11. package/src/component/forms/Color.vue +38 -0
  12. package/src/component/forms/DateTime.vue +170 -0
  13. package/src/component/forms/DateYearMonth.vue +193 -0
  14. package/src/component/forms/Dropdown.vue +236 -0
  15. package/src/component/forms/EditorHtml.vue +132 -0
  16. package/src/component/forms/FileUpload.vue +170 -0
  17. package/src/component/forms/ImageUpload.vue +214 -0
  18. package/src/component/forms/IncrementDecrement.vue +148 -0
  19. package/src/component/forms/InputAddressGoogle.vue +171 -0
  20. package/src/component/forms/InputCallToAction.vue +135 -0
  21. package/src/component/forms/InputDecimal.vue +153 -0
  22. package/src/component/forms/InputDecimalDiscount.vue +78 -0
  23. package/src/component/forms/InputNumber.vue +160 -0
  24. package/src/component/forms/InputPassword.vue +148 -0
  25. package/src/component/forms/InputTag.vue +125 -0
  26. package/src/component/forms/InputText.vue +174 -0
  27. package/src/component/forms/InputTextEdit.vue +69 -0
  28. package/src/component/forms/InputWhatsApp.vue +48 -0
  29. package/src/component/forms/Modal.vue +57 -0
  30. package/src/component/forms/RadioGroup.vue +91 -0
  31. package/src/component/forms/Select.vue +378 -0
  32. package/src/component/forms/SelectStatic.vue +198 -0
  33. package/src/component/forms/SideBar.vue +100 -0
  34. package/src/component/forms/Slider.vue +18 -0
  35. package/src/component/forms/TextArea.vue +138 -0
  36. package/src/component/forms/Toggle.vue +72 -0
  37. package/src/component/layout/Account.vue +131 -0
  38. package/src/component/layout/Alert.vue +88 -0
  39. package/src/component/layout/Badge.vue +111 -0
  40. package/src/component/layout/BarFloating.vue +68 -0
  41. package/src/component/layout/FixedBar.vue +103 -0
  42. package/src/component/layout/Gantt.vue +128 -0
  43. package/src/component/layout/Header.vue +56 -0
  44. package/src/component/layout/HideShow.vue +62 -0
  45. package/src/component/layout/IconMolded.vue +59 -0
  46. package/src/component/layout/LoadingFullPage.vue +27 -0
  47. package/src/component/layout/Menu.vue +287 -0
  48. package/src/component/layout/Molded.vue +30 -0
  49. package/src/component/layout/NewAccount.vue +136 -0
  50. package/src/component/layout/NewHeader.vue +60 -0
  51. package/src/component/layout/NewIconMolded.vue +71 -0
  52. package/src/component/layout/NewMenu.vue +456 -0
  53. package/src/component/layout/Panel.vue +185 -0
  54. package/src/component/layout/Popover.vue +126 -0
  55. package/src/component/layout/ScrollBar.vue +57 -0
  56. package/src/component/layout/Tab.vue +135 -0
  57. package/src/component/layout/Tag.vue +97 -0
  58. package/src/component/layout/Wizard.vue +211 -0
  59. package/src/component/rental/DisplayCalculatePeriod.vue +49 -0
  60. package/src/component/rental/DisplayPeriodRent.vue +55 -0
  61. package/src/component/rental/DisplayTotalization.vue +86 -0
  62. package/src/component/report/Fields.vue +109 -0
  63. package/src/component/report/Report.vue +314 -0
  64. package/src/component/report/ReportTable.vue +112 -0
  65. package/src/component/report/Totalization.vue +34 -0
  66. package/src/component/shared/CodeEditor.vue +128 -0
  67. package/src/component/shared/Collapse.vue +131 -0
  68. package/src/component/shared/Confirmation.vue +74 -0
  69. package/src/component/shared/DocumentEditor.vue +99 -0
  70. package/src/component/shared/DocumentPreview.vue +81 -0
  71. package/src/component/shared/DocumentPublic.vue +33 -0
  72. package/src/component/shared/ExportExcel.vue +56 -0
  73. package/src/component/shared/ExportPDF.vue +116 -0
  74. package/src/component/shared/FullCalendar.vue +174 -0
  75. package/src/component/shared/HeaderReport.vue +47 -0
  76. package/src/component/shared/HorizontalFilter.vue +64 -0
  77. package/src/component/shared/ListNotifications.vue +70 -0
  78. package/src/component/shared/Loading.vue +107 -0
  79. package/src/component/shared/LoadingCard.vue +65 -0
  80. package/src/component/shared/LoadingMoreButton.vue +23 -0
  81. package/src/component/shared/Messages.vue +109 -0
  82. package/src/component/shared/PDFViewer.vue +24 -0
  83. package/src/component/shared/Pagination.vue +108 -0
  84. package/src/component/shared/ParameterLegend.vue +169 -0
  85. package/src/component/shared/ProgressBar.vue +25 -0
  86. package/src/component/shared/QueryButton.vue +66 -0
  87. package/src/component/shared/Report.vue +200 -0
  88. package/src/component/shared/SaveCancel.vue +99 -0
  89. package/src/component/shared/Search.vue +174 -0
  90. package/src/component/shared/SelectOption.vue +162 -0
  91. package/src/component/shared/Table.vue +174 -0
  92. package/src/component/shared/TableButton.vue +36 -0
  93. package/src/component/shared/TableDraggable.vue +117 -0
  94. package/src/component/shared/TableImport.vue +93 -0
  95. package/src/component/shared/TableItem.vue +214 -0
  96. package/src/component/shared/TableTotalPerPage.vue +78 -0
  97. package/src/component/shared/TableTotalRecords.vue +44 -0
  98. package/src/component/shared/TableTotalization.vue +47 -0
  99. package/src/component/shared/TimeLine.vue +42 -0
  100. package/src/component/shared/Timer.vue +78 -0
  101. package/src/component/shared/Tip.vue +42 -0
  102. package/src/component/shared/Toast.vue +69 -0
  103. package/src/component/shared/ToggleTheme.vue +128 -0
  104. package/src/component/shared/TotalizationReport.vue +86 -0
  105. package/src/component/shared/VerticalFilter.vue +97 -0
  106. package/src/component/shared/automation/ActivitiesList.vue +44 -0
  107. package/src/component/shared/automation/AddRule.vue +61 -0
  108. package/src/component/shared/automation/AutomationBuilder.vue +27 -0
  109. package/src/component/shared/automation/DynamicComponentList.vue +86 -0
  110. package/src/component/shared/automation/SelectRule.vue +98 -0
  111. package/src/component/shared/automation/components/BillingByRent.vue +98 -0
  112. package/src/component/shared/automation/components/SendEmail.vue +94 -0
  113. package/src/component/shared/file-manager/FileManager.vue +391 -0
  114. package/src/component/shared/filter-builder/FilterBuilder.vue +221 -0
  115. package/src/component/shared/filter-builder/FilterQuery.vue +94 -0
  116. package/src/component/shared/query-builder/AddRule.vue +203 -0
  117. package/src/component/shared/query-builder/ConvertToOdata.js +86 -0
  118. package/src/component/shared/query-builder/DynamicComponent.vue +161 -0
  119. package/src/component/shared/query-builder/DynamicComponentList.vue +70 -0
  120. package/src/component/shared/query-builder/Fields.vue +93 -0
  121. package/src/component/shared/query-builder/QueryBuilder.vue +69 -0
  122. package/src/component/shared/query-builder/Rules.vue +68 -0
  123. package/src/component/shared/query-builder/SelectRule.vue +97 -0
  124. package/src/component/shared/query-builder/Tags.vue +59 -0
  125. package/src/component/shared/query-builder/utilities.js +22 -0
  126. package/src/component/signature/Payment.vue +161 -0
  127. package/src/component/signature/Warning.vue +76 -0
  128. package/src/component/template/ListViewWithDataHandler.vue +429 -0
  129. package/src/component/template/ReportCreateUpdate.vue +110 -0
  130. package/src/component/template/ViewTemplateConfiguration.vue +64 -0
  131. package/src/component/template/ViewTemplateDocumentView.vue +213 -0
  132. package/src/component/template/ViewTemplateImportFile.vue +347 -0
  133. package/src/component/template/ViewTemplateReportList.vue +217 -0
  134. package/src/component/template/ViewTemplateReportPreview.vue +432 -0
  135. package/src/component/template/ViewTemplateSelectOption.vue +46 -0
  136. package/src/component/template/ViewTemplateWithSalveCancel.vue +32 -0
  137. package/src/component/template/ViewTemplateWithTable.vue +62 -0
  138. package/src/component/template/model/Report.js +6 -0
  139. package/src/component/training/Course.vue +344 -0
  140. package/src/component/training/CourseView.vue +190 -0
  141. package/src/component/value-objects/Address.js +11 -0
  142. package/src/component/value-objects/Address.vue +157 -0
  143. package/src/component/value-objects/Contact.js +7 -0
  144. package/src/component/value-objects/Contact.vue +106 -0
  145. package/src/component/value-objects/Person.js +10 -0
  146. package/src/component/value-objects/Person.vue +129 -0
  147. package/src/config/axios.js +9 -0
  148. package/src/config/dicas.js +15 -0
  149. package/src/config/router.js +14 -0
  150. package/src/config/token.js +15 -0
  151. package/src/main.js +23 -0
  152. package/src/store/modules/automation.js +31 -0
  153. package/src/store/modules/generic.js +816 -0
  154. package/src/store/modules/report.js +278 -0
  155. package/src/store/modules/user.js +67 -0
  156. package/src/store/modules/util.js +26 -0
  157. package/src/store/modules/validation.js +39 -0
  158. package/src/store/store.js +14 -0
@@ -0,0 +1,174 @@
1
+ <template>
2
+ <div>
3
+ <Loading type="line" :center="false" v-show="loading" />
4
+ <FullCalendar :options="calendarOptions" />
5
+ </div>
6
+ </template>
7
+
8
+ <script>
9
+ import "@fullcalendar/core/vdom"; // solves problem with Vite
10
+ import FullCalendar from "@fullcalendar/vue";
11
+ import dayGridPlugin from "@fullcalendar/daygrid";
12
+ import timeGridPlugin from "@fullcalendar/timegrid";
13
+ import listPlugin from "@fullcalendar/list";
14
+
15
+ import interactionPlugin from "@fullcalendar/interaction";
16
+ import Loading from "@nixweb/nixloc-ui/src/component/shared/Loading.vue";
17
+
18
+ import { mapGetters } from "vuex";
19
+
20
+ export default {
21
+ components: {
22
+ FullCalendar,
23
+ Loading,
24
+ },
25
+ props: {
26
+ changedCalendar: Function,
27
+ clickedCalendar: Function,
28
+ clickedEvent: Function,
29
+ loading: Boolean,
30
+ },
31
+ data() {
32
+ return {
33
+ calendarOptions: {
34
+ plugins: [dayGridPlugin, timeGridPlugin, listPlugin, interactionPlugin],
35
+ initialView: "dayGridMonth",
36
+ locale: "pt-br",
37
+ allDayText: "Dia inteiro",
38
+ headerToolbar: {
39
+ start: "today prev,next",
40
+ center: "title",
41
+ end: "timeGridDay,dayGridWeek,dayGridMonth,listYear",
42
+ },
43
+ buttonText: {
44
+ today: "Hoje",
45
+ month: "Mês",
46
+ week: "Semana",
47
+ day: "Dia",
48
+ list: "Ano",
49
+ },
50
+ dateClick: this.handleDateClick,
51
+ eventClick: this.handleEventClick,
52
+ viewDidMount: this.handleEventRender,
53
+ datesSet: this.handleChange,
54
+ events: [],
55
+ },
56
+ };
57
+ },
58
+ computed: {
59
+ ...mapGetters("generic", ["event"]),
60
+ },
61
+ methods: {
62
+ handleChange(arg) {
63
+ if (this.changedCalendar) this.changedCalendar(arg);
64
+ },
65
+ handleEventRender(arg) { },
66
+ handleDateClick: function (arg) {
67
+ if (this.clickedCalendar) this.clickedCalendar(arg);
68
+ },
69
+ handleEventClick: function (arg) {
70
+ if (this.clickedEvent) this.clickedEvent(arg.event._def);
71
+ },
72
+ },
73
+ watch: {
74
+ event: {
75
+ handler(event) {
76
+ if (event.name == "updateCalendar")
77
+ event.data.forEach(item => {
78
+ this.calendarOptions.events.push(item);
79
+ });
80
+
81
+ if (event.name == "cleanCalendar")
82
+ this.calendarOptions.events = [];
83
+ },
84
+ deep: true,
85
+ },
86
+ },
87
+ };
88
+ </script>
89
+ <style>
90
+ .fc .fc-daygrid-day.fc-day-today {
91
+ background-color: #f1f3f4;
92
+ }
93
+
94
+ .fc-button-primary {
95
+ background-color: #4bb4e2 !important;
96
+ border-color: white !important;
97
+ border: 0px !important;
98
+ margin-left: 5px !important;
99
+ border-radius: 15px !important;
100
+ font-size: 13px !important;
101
+ cursor: pointer !important;
102
+ border: none !important;
103
+ min-width: 33px !important;
104
+ font-weight: normal !important;
105
+ font-style: normal !important;
106
+ letter-spacing: 1px !important;
107
+ -webkit-box-shadow: 0px 10px 20px -6px rgb(0 0 0 / 12%) !important;
108
+ -moz-box-shadow: 0px 10px 20px -6px rgba(0, 0, 0, 0.12) !important;
109
+ box-shadow: 0px 10px 20px -6px rgb(0 0 0 / 12%) !important;
110
+ }
111
+
112
+ .fc-timeGridDay-button {
113
+ background-color: #577696 !important;
114
+ border-color: white !important;
115
+ }
116
+
117
+ .fc-dayGridWeek-button {
118
+ background-color: #577696 !important;
119
+ border-color: white !important;
120
+ }
121
+
122
+ .fc-dayGridMonth-button {
123
+ background-color: #577696 !important;
124
+ border-color: white !important;
125
+ }
126
+
127
+ .fc-listYear-button {
128
+ background-color: #577696 !important;
129
+ border-color: white !important;
130
+ }
131
+
132
+ .fc .fc-daygrid-day-number {
133
+ font-size: 16px !important;
134
+ }
135
+
136
+ .fc-button-active {
137
+ background-color: #89ceeb !important;
138
+ }
139
+
140
+ .fc-event-title {
141
+ color: black !important;
142
+ cursor: pointer !important;
143
+ }
144
+
145
+ .fc-event-time {
146
+ color: black !important;
147
+ font-weight: normal !important;
148
+ }
149
+
150
+ .fc-list-day-side-text {
151
+ color: black !important;
152
+ }
153
+
154
+ .fc-list-day-text {
155
+ color: black !important;
156
+ }
157
+
158
+ .fc-col-header-cell-cushion {
159
+ color: black !important;
160
+ }
161
+
162
+ .fc-daygrid-day-number {
163
+ color: black !important;
164
+ }
165
+
166
+ .fc-list-event-title {
167
+ cursor: pointer !important;
168
+ }
169
+
170
+ .fc-button-primary:hover {
171
+ background: #3e90b3 !important;
172
+ }
173
+
174
+ </style>
@@ -0,0 +1,47 @@
1
+ <template>
2
+ <div class="div-header">
3
+ <div class="title-report-header">
4
+ <span v-if="!title">
5
+ Relatório
6
+ <span>{{ $route.params.name }}</span>
7
+ </span>
8
+ <span v-else>
9
+ <span>{{ title }}</span>
10
+ </span>
11
+ </div>
12
+ <div v-if="!title" class="side-by-side div-tag" v-for="tag in tags" :key="tag.id">
13
+ <span>{{ tag.title }}</span> <span>{{ tag.value }}</span>
14
+ <span>,</span>
15
+ </div>
16
+ </div>
17
+ </template>
18
+
19
+ <script>
20
+ import { mapGetters } from "vuex";
21
+
22
+ export default {
23
+ name: "HeaderReport",
24
+ props: {
25
+ title: String
26
+ },
27
+ computed: {
28
+ ...mapGetters("report", ["tags"]),
29
+ fileName() {
30
+ return this.$route.matched[0].props.default.report;
31
+ },
32
+ },
33
+ };
34
+ </script>
35
+ <style scoped>
36
+ .div-header {
37
+ margin-bottom: 20px;
38
+ }
39
+
40
+ .div-tag {
41
+ margin-right: 10px;
42
+ }
43
+
44
+ .title-report-header {
45
+ font-size: 18px;
46
+ }
47
+ </style>
@@ -0,0 +1,64 @@
1
+ <template>
2
+ <div class="filter-horizontal">
3
+ <Collapse :buttonShow="{
4
+ title: 'Mais filtros',
5
+ icon: 'fas fa-arrow-alt-circle-down',
6
+ type: 'info',
7
+ }" :buttonHide="{
8
+ title: 'Menos filtros',
9
+ icon: 'fas fa-arrow-alt-circle-up',
10
+ type: 'warning',
11
+ }">
12
+ <slot name="content-filter-horizontal"></slot>
13
+ </Collapse>
14
+ </div>
15
+ </template>
16
+
17
+ <script>
18
+ import Collapse from "./Collapse.vue";
19
+ import SelectStatic from "../forms/SelectStatic.vue";
20
+ import Select from "../forms/Select";
21
+
22
+ import { mapMutations, mapState } from "vuex";
23
+
24
+ export default {
25
+ name: "ListViewWithHandlerData",
26
+ components: { Select, SelectStatic, Collapse },
27
+ props: {
28
+ showTotalPerPage: {
29
+ type: Boolean,
30
+ default: true,
31
+ },
32
+ },
33
+ data() {
34
+ return {
35
+ initialValue: {}
36
+ }
37
+ },
38
+ created() {
39
+ this.initialValue = { content: this.paginations.totalPerPage, id: this.paginations.totalPerPage }
40
+ },
41
+ computed: {
42
+ ...mapState("generic", ["paginations"]),
43
+ totalPerPage: {
44
+ get() {
45
+ return this.$store.state.generic.paginations.totalPerPage;
46
+ },
47
+ set(value) {
48
+ this.updateTotalPerPage(value);
49
+ },
50
+ },
51
+ },
52
+ methods: {
53
+ ...mapMutations("generic", [
54
+ "updateTotalPerPage",
55
+ ]),
56
+ }
57
+ };
58
+ </script>
59
+
60
+ <style scoped>
61
+ .filter-horizontal {
62
+ margin-bottom: 5px;
63
+ }
64
+ </style>
@@ -0,0 +1,70 @@
1
+ <template>
2
+ <div>
3
+ <ScrollBar :minHeight="400" :maxHeight="400">
4
+ <div>
5
+ <br />
6
+ <table class="table table-responsive-xs">
7
+ <thead>
8
+ <tr>
9
+ <th class="title-header">Mensagem</th>
10
+ </tr>
11
+ </thead>
12
+ <tbody v-for="error in listError">
13
+ <tr>
14
+ <td>
15
+ <span class="message"> {{ error }}</span>
16
+ </td>
17
+ </tr>
18
+ </tbody>
19
+ </table>
20
+ </div>
21
+ </ScrollBar>
22
+ </div>
23
+ </template>
24
+
25
+ <script>
26
+ import ScrollBar from "@nixweb/nixloc-ui/src/component/layout/ScrollBar.vue";
27
+
28
+ export default {
29
+ name: "ListNotifications",
30
+ props: {
31
+ listError: Array,
32
+ },
33
+ components: {
34
+ ScrollBar,
35
+ },
36
+ };
37
+ </script><style scoped>
38
+ .table th,
39
+ .table td {
40
+ height: 10px !important;
41
+ padding-left: 5px !important;
42
+ padding-top: 7px !important;
43
+ padding-bottom: 5px !important;
44
+ padding-right: 5px !important;
45
+ padding-left: 10px !important;
46
+ border-bottom: 0px !important;
47
+ }
48
+
49
+ .title-header {
50
+ font-size: 14px;
51
+ color: #757d8c;
52
+ font-weight: 400;
53
+ }
54
+
55
+ .tabela-principal {
56
+ font-size: 14px;
57
+ max-width: 200px;
58
+ }
59
+
60
+ .tabela-descricao {
61
+ white-space: nowrap;
62
+ overflow: hidden;
63
+ text-overflow: ellipsis;
64
+ max-width: 200px;
65
+ }
66
+
67
+ .message {
68
+ color: red;
69
+ }
70
+ </style>
@@ -0,0 +1,107 @@
1
+ <template>
2
+ <div>
3
+ <div v-if="type == 'bubbles'" :class="{ loading: center }">
4
+ <vue-loading
5
+ type="bubbles"
6
+ :color="color"
7
+ :size="{ width: width + 'px', height: height + 'px' }"
8
+ ></vue-loading>
9
+ </div>
10
+ <div v-if="type == 'line'">
11
+ <div class="loader">
12
+ <div class="loader__element"></div>
13
+ </div>
14
+ </div>
15
+ <div :class="{ 'loading-text': center }">
16
+ <div>
17
+ <div class="message">{{ message }}</div>
18
+ </div>
19
+ </div>
20
+ </div>
21
+ </template>
22
+
23
+ <script>
24
+ export default {
25
+ name: "Loading",
26
+ props: {
27
+ height: {
28
+ type: Number,
29
+ default: 70,
30
+ },
31
+ width: {
32
+ type: Number,
33
+ default: 70,
34
+ },
35
+ center: {
36
+ type: Boolean,
37
+ default: true,
38
+ },
39
+ color: {
40
+ type: String,
41
+ default: "#D98621",
42
+ },
43
+ type: {
44
+ type: String,
45
+ default: "bubbles",
46
+ },
47
+ message: String,
48
+ },
49
+ };
50
+ </script>
51
+
52
+ <style scoped>
53
+ .loading {
54
+ position: absolute;
55
+ left: 50%;
56
+ top: 50%;
57
+ -webkit-transform: translate(-50%, -50%);
58
+ transform: translate(-50%, -50%);
59
+ }
60
+
61
+ .loading-text {
62
+ position: absolute;
63
+ left: 50%;
64
+ top: 45%;
65
+ -webkit-transform: translate(-50%, -50%);
66
+ transform: translate(-50%, -50%);
67
+ }
68
+
69
+ .message {
70
+ font-size: 15px;
71
+ margin-top: 5px;
72
+ }
73
+
74
+ .loader {
75
+ overflow: hidden;
76
+ width: 100%;
77
+ height: 100%;
78
+ top: 0;
79
+ left: 0;
80
+ display: flex;
81
+ align-items: center;
82
+ align-content: center;
83
+ justify-content: flex-start;
84
+ z-index: 100000;
85
+ }
86
+
87
+ .loader__element {
88
+ height: 3px;
89
+ width: 100%;
90
+ background: #fbf2e8;
91
+ }
92
+
93
+ .loader__element:before {
94
+ content: "";
95
+ display: block;
96
+ background-color: #fca944;
97
+ height: 3px;
98
+ width: 0;
99
+ animation: getWidth 1s ease-in infinite;
100
+ }
101
+
102
+ @keyframes getWidth {
103
+ 100% {
104
+ width: 100%;
105
+ }
106
+ }
107
+ </style>
@@ -0,0 +1,65 @@
1
+ <template>
2
+ <div class="loading-skeleton" :style="'height:' + height + 'px'">
3
+ <div v-for="index in totalLine" :key="index" class="line"
4
+ :style="{ height: getRandomHeight() + 'px', width: '100%' }"></div>
5
+ </div>
6
+ </template>
7
+
8
+ <script>
9
+ export default {
10
+ name: "LoadingCard",
11
+ props: {
12
+ totalLine: {
13
+ type: Number,
14
+ default: 3,
15
+ validator(value) {
16
+ return value >= 1 && value <= 10;
17
+ }
18
+ },
19
+ height: {
20
+ type: Number,
21
+ default: 200,
22
+ validator(value) {
23
+ return value > 0;
24
+ }
25
+ }
26
+ },
27
+ methods: {
28
+ getRandomHeight() {
29
+ const minHeight = 10;
30
+ const maxHeight = 30;
31
+ return Math.floor(Math.random() * (maxHeight - minHeight + 1)) + minHeight;
32
+ }
33
+ }
34
+ };
35
+ </script>
36
+
37
+ <style scoped>
38
+ .loading-skeleton {
39
+ display: flex;
40
+ flex-direction: column;
41
+ gap: 12px;
42
+ max-width: 400px;
43
+ margin: 0 auto;
44
+ overflow: hidden;
45
+ }
46
+
47
+ .line {
48
+ width: 100%;
49
+ background: linear-gradient(90deg, #f0f0f0 25%, #d8d8d8 50%, #f0f0f0 75%);
50
+ background-size: 200% 100%;
51
+ animation: shimmer 1.5s infinite linear;
52
+ border-radius: 4px;
53
+ opacity: 0.4;
54
+ }
55
+
56
+ @keyframes shimmer {
57
+ 0% {
58
+ background-position: -200% 0;
59
+ }
60
+
61
+ 100% {
62
+ background-position: 200% 0;
63
+ }
64
+ }
65
+ </style>
@@ -0,0 +1,23 @@
1
+ <template>
2
+ <div>
3
+ <Button
4
+ key="loadingMore"
5
+ eventName="loadingMore"
6
+ type="warning"
7
+ title="Carregar mais..."
8
+ classIcon="fas fa-redo"
9
+ size="medium"
10
+ />
11
+ </div>
12
+ </template>
13
+ <script>
14
+ import Button from "../forms/Button.vue";
15
+ export default {
16
+ name: "LoadingMoreButton",
17
+ components: { Button },
18
+ data() {
19
+ return {};
20
+ },
21
+ methods: {},
22
+ };
23
+ </script>
@@ -0,0 +1,109 @@
1
+ <template>
2
+ <div>
3
+ <div :class="{ 'div-message': !modal.open }" v-if="storageNotification.length > 0">
4
+ <Alert type="danger">
5
+ <div class="side-by-side" v-for="(notification, index) in storageNotification" :key="index">
6
+ <div class="side-by-side text">
7
+ {{ notification.message }}
8
+ </div>
9
+ </div>
10
+ <div class="progress-bar-container">
11
+ <div class="progress-bar" :style="{ width: progressWidth + '%' }"></div>
12
+ </div>
13
+ </Alert>
14
+ </div>
15
+ </div>
16
+ </template>
17
+
18
+ <script>
19
+ import Alert from "../layout/Alert.vue";
20
+ import { mapState, mapMutations } from "vuex";
21
+
22
+ export default {
23
+ components: { Alert },
24
+ name: "Messages",
25
+ data() {
26
+ return {
27
+ maxSeconds: 10,
28
+ countdown: 10,
29
+ storageNotification: [],
30
+ progressWidth: 100,
31
+ };
32
+ },
33
+ computed: {
34
+ ...mapState("generic", ["notifications", "modal"]),
35
+ },
36
+ watch: {
37
+ notifications() {
38
+ if (this.notifications.length > 0) {
39
+ this.storageNotification = this.notifications;
40
+ this.countdown = this.maxSeconds;
41
+ this.progressWidth = 100;
42
+ this.startCountdown();
43
+ }
44
+ },
45
+ countdown(newCountdown) {
46
+ if (newCountdown === 0) {
47
+ this.storageNotification = [];
48
+ this.removeNotificarions();
49
+ }
50
+ },
51
+ },
52
+ methods: {
53
+ ...mapMutations("generic", ["removeNotificarions"]),
54
+
55
+ startCountdown() {
56
+ this.countdownInterval = setInterval(() => {
57
+ if (this.countdown > 0) {
58
+ this.countdown--;
59
+ this.updateProgressBar();
60
+ } else {
61
+ clearInterval(this.countdownInterval);
62
+ }
63
+ }, 1000);
64
+ },
65
+
66
+ updateProgressBar() {
67
+ // Atualiza a largura da barra de progresso
68
+ this.progressWidth = (this.countdown / this.maxSeconds) * 100;
69
+ },
70
+ },
71
+ };
72
+ </script>
73
+
74
+ <style scoped>
75
+ .div-message {
76
+ margin-top: 50px;
77
+ transition: all 0.5s ease !important;
78
+ z-index: 2000;
79
+ }
80
+
81
+ .side-by-side {
82
+ display: flex;
83
+ justify-content: space-between;
84
+ }
85
+
86
+ .text {
87
+ margin-right: 10px;
88
+ }
89
+
90
+ .progress-bar-container {
91
+ width: 100%;
92
+ height: 3px;
93
+ background-color: #e0e0e0;
94
+ border-radius: 5px;
95
+ margin-top: 10px;
96
+ }
97
+
98
+ .progress-bar {
99
+ height: 100%;
100
+ background-color: #FF0201;
101
+ border-radius: 50px;
102
+ transition: width 1s ease-out;
103
+ }
104
+
105
+ .div-countdown {
106
+ margin-top: 10px;
107
+ font-size: 16px;
108
+ }
109
+ </style>
@@ -0,0 +1,24 @@
1
+ <template>
2
+ <div>
3
+ <iframe src="https://espaco.blob.core.windows.net/nixloc-preview/H0R078NIPG6BXT8703S0_3.pdf" width="100%" height="800px"></iframe>
4
+ </div>
5
+ </template>
6
+
7
+ <script>
8
+
9
+ export default {
10
+ name: "PDFViewer",
11
+ props: {
12
+ pdfSrc: String,
13
+ }
14
+ };
15
+ </script>
16
+
17
+ <style>
18
+ iframe {
19
+ width: 100%;
20
+ height: 800px;
21
+ border: 0px;
22
+ border-radius: 10px;
23
+ }
24
+ </style>