@nixweb/nixloc-ui 1.19.0 → 1.21.0

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 (110) hide show
  1. package/package.json +1 -1
  2. package/src/component/forms/ButtonFilter.vue +104 -104
  3. package/src/component/forms/ButtonGroup.vue +66 -66
  4. package/src/component/forms/ButtonGroupInline.vue +210 -210
  5. package/src/component/forms/ButtonSub.vue +97 -97
  6. package/src/component/forms/ButtonToggle.vue +76 -76
  7. package/src/component/forms/DateYearMonth.vue +192 -192
  8. package/src/component/forms/ImageUpload.vue +214 -214
  9. package/src/component/forms/IncrementDecrement.vue +151 -151
  10. package/src/component/forms/InputAddressGoogle.vue +171 -171
  11. package/src/component/forms/InputCallToAction.vue +135 -135
  12. package/src/component/forms/InputDecimalDiscount.vue +146 -146
  13. package/src/component/forms/InputTag.vue +124 -124
  14. package/src/component/forms/InputTextEdit.vue +69 -69
  15. package/src/component/forms/InputWhatsApp.vue +47 -47
  16. package/src/component/forms/SideBar.vue +99 -99
  17. package/src/component/forms/Toggle.vue +72 -72
  18. package/src/component/layout/Account.vue +131 -131
  19. package/src/component/layout/AnimatedPhrase.vue +68 -68
  20. package/src/component/layout/BarFloating.vue +67 -67
  21. package/src/component/layout/BottomActionsBar.vue +205 -205
  22. package/src/component/layout/ColorPicker.vue +175 -175
  23. package/src/component/layout/Gantt.vue +128 -128
  24. package/src/component/layout/HideShow.vue +61 -61
  25. package/src/component/layout/IconMolded.vue +58 -58
  26. package/src/component/layout/IconPicker.vue +161 -161
  27. package/src/component/layout/NewAccount.vue +136 -136
  28. package/src/component/layout/NewHeader.vue +59 -59
  29. package/src/component/layout/NewIconMolded.vue +70 -70
  30. package/src/component/layout/NewMenu.vue +472 -472
  31. package/src/component/layout/Tab.vue +259 -259
  32. package/src/component/layout/Tag.vue +97 -97
  33. package/src/component/layout/Tooltip.vue +155 -155
  34. package/src/component/layout/Zoom.vue +111 -111
  35. package/src/component/rental/DisplayCalculatePeriod.vue +48 -48
  36. package/src/component/rental/DisplayPeriodRent.vue +55 -55
  37. package/src/component/rental/DisplayTotalization.vue +86 -86
  38. package/src/component/report/Fields.vue +108 -108
  39. package/src/component/report/Report.vue +377 -377
  40. package/src/component/report/ReportTable.vue +111 -111
  41. package/src/component/report/Totalization.vue +33 -33
  42. package/src/component/shared/CodeEditor.vue +128 -128
  43. package/src/component/shared/Confirmation.vue +74 -74
  44. package/src/component/shared/DocumentEditor.vue +99 -99
  45. package/src/component/shared/DocumentPreview.vue +117 -105
  46. package/src/component/shared/DocumentPublic.vue +33 -33
  47. package/src/component/shared/ExportExcel.vue +56 -56
  48. package/src/component/shared/FullCalendar.vue +175 -175
  49. package/src/component/shared/HeaderReport.vue +47 -47
  50. package/src/component/shared/ListNotifications.vue +70 -70
  51. package/src/component/shared/Loading.vue +1 -4
  52. package/src/component/shared/LoadingCard.vue +64 -64
  53. package/src/component/shared/ParameterLegend.vue +169 -169
  54. package/src/component/shared/Report.vue +250 -250
  55. package/src/component/shared/SaveCancel.vue +99 -117
  56. package/src/component/shared/SelectOption.vue +162 -162
  57. package/src/component/shared/TableDraggable.vue +117 -117
  58. package/src/component/shared/TableImport.vue +93 -93
  59. package/src/component/shared/TableItem.vue +228 -228
  60. package/src/component/shared/TableTotalPerPage.vue +114 -114
  61. package/src/component/shared/TableTotalRecords.vue +44 -44
  62. package/src/component/shared/TimeLine.vue +41 -41
  63. package/src/component/shared/Timer.vue +77 -77
  64. package/src/component/shared/ToggleTheme.vue +127 -127
  65. package/src/component/shared/TotalizationReport.vue +86 -86
  66. package/src/component/shared/actions/ActionButtons.vue +53 -53
  67. package/src/component/shared/actions/ActionErrorContent.vue +103 -103
  68. package/src/component/shared/actions/ActionFooter.vue +93 -99
  69. package/src/component/shared/actions/ActionHeader.vue +110 -110
  70. package/src/component/shared/actions/ActionItemList.vue +143 -143
  71. package/src/component/shared/actions/ActionsOptions.vue +209 -209
  72. package/src/component/shared/actions/ActionsSelected.vue +262 -262
  73. package/src/component/shared/automation/ActivitiesList.vue +43 -43
  74. package/src/component/shared/automation/AddRule.vue +60 -60
  75. package/src/component/shared/automation/AutomationBuilder.vue +26 -26
  76. package/src/component/shared/automation/DynamicComponentList.vue +85 -85
  77. package/src/component/shared/automation/SelectRule.vue +97 -97
  78. package/src/component/shared/automation/components/BillingByRent.vue +97 -97
  79. package/src/component/shared/automation/components/SendEmail.vue +93 -93
  80. package/src/component/shared/file-manager/FileManager.vue +390 -390
  81. package/src/component/shared/filter-builder/FilterBuilder.vue +220 -220
  82. package/src/component/shared/filter-builder/FilterQuery.vue +95 -95
  83. package/src/component/shared/query-builder/ConvertToOdata.js +86 -86
  84. package/src/component/shared/query-builder/DynamicComponent.vue +161 -161
  85. package/src/component/shared/query-builder/Fields.vue +93 -93
  86. package/src/component/shared/query-builder/Rules.vue +68 -68
  87. package/src/component/shared/query-builder/SelectRule.vue +97 -97
  88. package/src/component/shared/query-builder/Tags.vue +59 -59
  89. package/src/component/signature/Payment.vue +160 -160
  90. package/src/component/signature/Warning.vue +75 -75
  91. package/src/component/template/ReportCreateUpdate.vue +110 -110
  92. package/src/component/template/ViewTemplateDocumentView.vue +213 -213
  93. package/src/component/template/ViewTemplateImportFile.vue +347 -347
  94. package/src/component/template/ViewTemplateReportList.vue +240 -240
  95. package/src/component/template/ViewTemplateReportPreview.vue +521 -521
  96. package/src/component/template/ViewTemplateSelectOption.vue +46 -46
  97. package/src/component/template/model/Report.js +5 -5
  98. package/src/component/training/Course.vue +343 -343
  99. package/src/component/training/CourseView.vue +198 -198
  100. package/src/component/value-objects/Address.js +10 -10
  101. package/src/component/value-objects/Address.vue +173 -173
  102. package/src/component/value-objects/Contact.js +6 -6
  103. package/src/component/value-objects/Contact.vue +106 -106
  104. package/src/component/value-objects/Person.js +10 -10
  105. package/src/component/value-objects/Person.vue +130 -130
  106. package/src/store/modules/automation.js +30 -30
  107. package/src/store/modules/generic.js +16 -6
  108. package/src/store/modules/report.js +277 -277
  109. package/src/store/modules/user.js +69 -69
  110. package/src/store/modules/util.js +25 -25
@@ -1,56 +1,56 @@
1
- <template>
2
- <div>
3
- <download-excel :fields="column" :data="data" :before-finish="exportFinished" worksheet="Planilha"
4
- :name="`${nameFile}.xls`">
5
- <i class="fas fa-file-excel"></i>
6
- </download-excel>
7
- </div>
8
- </template>
9
-
10
- <script>
11
- import Button from "@nixweb/nixloc-ui/src/component/forms/Button";
12
-
13
- import { mapMutations } from "vuex";
14
-
15
- export default {
16
- name: "ExportExcel",
17
- props: {
18
- header: Array,
19
- data: Array,
20
- nameFile: String
21
- },
22
- components: {
23
- Button,
24
- },
25
- data() {
26
- return {
27
- json_meta: [
28
- [
29
- {
30
- key: "charset",
31
- value: "utf-8",
32
- },
33
- ],
34
- ],
35
- };
36
- },
37
- methods: {
38
- ...mapMutations("generic", ["removeLoading"]),
39
- exportFinished() {
40
- this.removeLoading(["exportExcel"]);
41
- },
42
- },
43
- computed: {
44
- column() {
45
- var object = this.header.reduce(
46
- (obj, item) => Object.assign(obj, { [item.title]: item.field }),
47
- {}
48
- );
49
- return object;
50
- },
51
- fileName() {
52
- return this.nameFile;
53
- },
54
- },
55
- };
56
- </script>
1
+ <template>
2
+ <div>
3
+ <download-excel :fields="column" :data="data" :before-finish="exportFinished" worksheet="Planilha"
4
+ :name="`${nameFile}.xls`">
5
+ <i class="fas fa-file-excel"></i>
6
+ </download-excel>
7
+ </div>
8
+ </template>
9
+
10
+ <script>
11
+ import Button from "@nixweb/nixloc-ui/src/component/forms/Button";
12
+
13
+ import { mapMutations } from "vuex";
14
+
15
+ export default {
16
+ name: "ExportExcel",
17
+ props: {
18
+ header: Array,
19
+ data: Array,
20
+ nameFile: String
21
+ },
22
+ components: {
23
+ Button,
24
+ },
25
+ data() {
26
+ return {
27
+ json_meta: [
28
+ [
29
+ {
30
+ key: "charset",
31
+ value: "utf-8",
32
+ },
33
+ ],
34
+ ],
35
+ };
36
+ },
37
+ methods: {
38
+ ...mapMutations("generic", ["removeLoading"]),
39
+ exportFinished() {
40
+ this.removeLoading(["exportExcel"]);
41
+ },
42
+ },
43
+ computed: {
44
+ column() {
45
+ var object = this.header.reduce(
46
+ (obj, item) => Object.assign(obj, { [item.title]: item.field }),
47
+ {}
48
+ );
49
+ return object;
50
+ },
51
+ fileName() {
52
+ return this.nameFile;
53
+ },
54
+ },
55
+ };
56
+ </script>
@@ -1,176 +1,176 @@
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
-
77
- if (event.name == "updateCalendar") {
78
- event.data.forEach(item => {
79
- this.calendarOptions.events.push(item);
80
- });
81
- }
82
-
83
-
84
- if (event.name == "cleanCalendar")
85
- this.calendarOptions.events = [];
86
- },
87
- deep: true,
88
- },
89
- },
90
- };
91
- </script>
92
- <style>
93
- .fc .fc-daygrid-day.fc-day-today {
94
- background-color: #f1f3f4;
95
- }
96
-
97
- .fc-button-primary {
98
- background-color: #4bb4e2 !important;
99
- border-color: white !important;
100
- border: 0px !important;
101
- margin-left: 5px !important;
102
- border-radius: 15px !important;
103
- font-size: 13px !important;
104
- cursor: pointer !important;
105
- border: none !important;
106
- min-width: 33px !important;
107
- font-weight: normal !important;
108
- font-style: normal !important;
109
- letter-spacing: 1px !important;
110
- -webkit-box-shadow: 0px 10px 20px -6px rgb(0 0 0 / 12%) !important;
111
- -moz-box-shadow: 0px 10px 20px -6px rgba(0, 0, 0, 0.12) !important;
112
- box-shadow: 0px 10px 20px -6px rgb(0 0 0 / 12%) !important;
113
- }
114
-
115
- .fc-timeGridDay-button {
116
- background-color: #577696 !important;
117
- border-color: white !important;
118
- }
119
-
120
- .fc-dayGridWeek-button {
121
- background-color: #577696 !important;
122
- border-color: white !important;
123
- }
124
-
125
- .fc-dayGridMonth-button {
126
- background-color: #577696 !important;
127
- border-color: white !important;
128
- }
129
-
130
- .fc-listYear-button {
131
- background-color: #577696 !important;
132
- border-color: white !important;
133
- }
134
-
135
- .fc .fc-daygrid-day-number {
136
- font-size: 16px !important;
137
- }
138
-
139
- .fc-button-active {
140
- background-color: #89ceeb !important;
141
- }
142
-
143
- .fc-event-title {
144
- color: black !important;
145
- cursor: pointer !important;
146
- }
147
-
148
- .fc-event-time {
149
- color: black !important;
150
- font-weight: normal !important;
151
- }
152
-
153
- .fc-list-day-side-text {
154
- color: black !important;
155
- }
156
-
157
- .fc-list-day-text {
158
- color: black !important;
159
- }
160
-
161
- .fc-col-header-cell-cushion {
162
- color: black !important;
163
- }
164
-
165
- .fc-daygrid-day-number {
166
- color: black !important;
167
- }
168
-
169
- .fc-list-event-title {
170
- cursor: pointer !important;
171
- }
172
-
173
- .fc-button-primary:hover {
174
- background: #3e90b3 !important;
175
- }
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
+
77
+ if (event.name == "updateCalendar") {
78
+ event.data.forEach(item => {
79
+ this.calendarOptions.events.push(item);
80
+ });
81
+ }
82
+
83
+
84
+ if (event.name == "cleanCalendar")
85
+ this.calendarOptions.events = [];
86
+ },
87
+ deep: true,
88
+ },
89
+ },
90
+ };
91
+ </script>
92
+ <style>
93
+ .fc .fc-daygrid-day.fc-day-today {
94
+ background-color: #f1f3f4;
95
+ }
96
+
97
+ .fc-button-primary {
98
+ background-color: #4bb4e2 !important;
99
+ border-color: white !important;
100
+ border: 0px !important;
101
+ margin-left: 5px !important;
102
+ border-radius: 15px !important;
103
+ font-size: 13px !important;
104
+ cursor: pointer !important;
105
+ border: none !important;
106
+ min-width: 33px !important;
107
+ font-weight: normal !important;
108
+ font-style: normal !important;
109
+ letter-spacing: 1px !important;
110
+ -webkit-box-shadow: 0px 10px 20px -6px rgb(0 0 0 / 12%) !important;
111
+ -moz-box-shadow: 0px 10px 20px -6px rgba(0, 0, 0, 0.12) !important;
112
+ box-shadow: 0px 10px 20px -6px rgb(0 0 0 / 12%) !important;
113
+ }
114
+
115
+ .fc-timeGridDay-button {
116
+ background-color: #577696 !important;
117
+ border-color: white !important;
118
+ }
119
+
120
+ .fc-dayGridWeek-button {
121
+ background-color: #577696 !important;
122
+ border-color: white !important;
123
+ }
124
+
125
+ .fc-dayGridMonth-button {
126
+ background-color: #577696 !important;
127
+ border-color: white !important;
128
+ }
129
+
130
+ .fc-listYear-button {
131
+ background-color: #577696 !important;
132
+ border-color: white !important;
133
+ }
134
+
135
+ .fc .fc-daygrid-day-number {
136
+ font-size: 16px !important;
137
+ }
138
+
139
+ .fc-button-active {
140
+ background-color: #89ceeb !important;
141
+ }
142
+
143
+ .fc-event-title {
144
+ color: black !important;
145
+ cursor: pointer !important;
146
+ }
147
+
148
+ .fc-event-time {
149
+ color: black !important;
150
+ font-weight: normal !important;
151
+ }
152
+
153
+ .fc-list-day-side-text {
154
+ color: black !important;
155
+ }
156
+
157
+ .fc-list-day-text {
158
+ color: black !important;
159
+ }
160
+
161
+ .fc-col-header-cell-cushion {
162
+ color: black !important;
163
+ }
164
+
165
+ .fc-daygrid-day-number {
166
+ color: black !important;
167
+ }
168
+
169
+ .fc-list-event-title {
170
+ cursor: pointer !important;
171
+ }
172
+
173
+ .fc-button-primary:hover {
174
+ background: #3e90b3 !important;
175
+ }
176
176
  </style>
@@ -1,47 +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>
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>