@nixweb/nixloc-ui 0.0.128 → 0.0.129

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 (84) hide show
  1. package/package.json +87 -79
  2. package/src/App.vue +13 -13
  3. package/src/component/forms/Button.vue +171 -170
  4. package/src/component/forms/ButtonGroup.vue +57 -0
  5. package/src/component/forms/ButtonSub.vue +98 -0
  6. package/src/component/forms/CheckboxGroup.vue +73 -72
  7. package/src/component/forms/CheckboxSimple.vue +46 -46
  8. package/src/component/forms/Color.vue +38 -38
  9. package/src/component/forms/DateTime.vue +167 -167
  10. package/src/component/forms/Dropdown.vue +242 -218
  11. package/src/component/forms/EditorHtml.vue +126 -126
  12. package/src/component/forms/FileUpload.vue +185 -185
  13. package/src/component/forms/IncrementDecrement.vue +7 -2
  14. package/src/component/forms/InputDecimal.vue +150 -142
  15. package/src/component/forms/InputDecimalDiscount.vue +92 -0
  16. package/src/component/forms/InputNumber.vue +160 -154
  17. package/src/component/forms/InputPassword.vue +135 -135
  18. package/src/component/forms/InputText.vue +174 -162
  19. package/src/component/forms/InputTextEdit.vue +68 -0
  20. package/src/component/forms/Modal.vue +65 -65
  21. package/src/component/forms/RadioGroup.vue +50 -50
  22. package/src/component/forms/Select.vue +351 -349
  23. package/src/component/forms/SelectStatic.vue +127 -127
  24. package/src/component/forms/Slider.vue +18 -18
  25. package/src/component/forms/TextArea.vue +126 -126
  26. package/src/component/forms/Toggle.vue +3 -1
  27. package/src/component/layout/Account.vue +3 -3
  28. package/src/component/layout/Alert.vue +92 -92
  29. package/src/component/layout/Badge.vue +104 -103
  30. package/src/component/layout/FixedBar.vue +100 -100
  31. package/src/component/layout/Gantt.vue +130 -0
  32. package/src/component/layout/Header.vue +38 -38
  33. package/src/component/layout/IconMolded.vue +48 -0
  34. package/src/component/layout/LoadingFullPage.vue +27 -27
  35. package/src/component/layout/Menu.vue +213 -210
  36. package/src/component/layout/Molded.vue +28 -28
  37. package/src/component/layout/Panel.vue +140 -140
  38. package/src/component/layout/Popover.vue +126 -126
  39. package/src/component/layout/ScrollBar.vue +42 -42
  40. package/src/component/layout/Wizard.vue +211 -211
  41. package/src/component/rental/DisplayCalculatePeriod.vue +49 -0
  42. package/src/component/rental/DisplayPeriodRent.vue +19 -44
  43. package/src/component/rental/DisplayTotalization.vue +11 -2
  44. package/src/component/shared/Collapse.vue +131 -131
  45. package/src/component/shared/Confirmation.vue +21 -2
  46. package/src/component/shared/DocumentPreview.vue +2 -1
  47. package/src/component/shared/ExportPDF.vue +116 -116
  48. package/src/component/shared/FullCalendar.vue +159 -0
  49. package/src/component/shared/HorizontalFilter.vue +59 -59
  50. package/src/component/shared/Loading.vue +107 -107
  51. package/src/component/shared/LoadingMoreButton.vue +23 -23
  52. package/src/component/shared/Messages.vue +81 -81
  53. package/src/component/shared/PDFViewer.vue +22 -22
  54. package/src/component/shared/Pagination.vue +52 -52
  55. package/src/component/shared/ProgressBar.vue +22 -22
  56. package/src/component/shared/QueryButton.vue +66 -66
  57. package/src/component/shared/SaveCancel.vue +3 -2
  58. package/src/component/shared/Search.vue +154 -154
  59. package/src/component/shared/Table.vue +163 -163
  60. package/src/component/shared/TableButton.vue +36 -36
  61. package/src/component/shared/TableTotalization.vue +47 -47
  62. package/src/component/shared/TimeLine.vue +47 -0
  63. package/src/component/shared/Tip.vue +42 -42
  64. package/src/component/shared/Toast.vue +54 -54
  65. package/src/component/shared/VerticalFilter.vue +97 -97
  66. package/src/component/shared/query-builder/AddRule.vue +181 -181
  67. package/src/component/shared/query-builder/DynamicComponentList.vue +73 -73
  68. package/src/component/shared/query-builder/QueryBuilder.vue +69 -69
  69. package/src/component/shared/query-builder/utilities.js +21 -21
  70. package/src/component/template/ListViewWithDataHandler.vue +260 -260
  71. package/src/component/template/ViewTemplateConfiguration.vue +64 -64
  72. package/src/component/template/ViewTemplateReportList.vue +1 -1
  73. package/src/component/template/ViewTemplateReportPreview.vue +0 -1
  74. package/src/component/template/ViewTemplateWithSalveCancel.vue +32 -32
  75. package/src/component/template/ViewTemplateWithTable.vue +56 -56
  76. package/src/config/axios.js +9 -9
  77. package/src/config/dicas.js +14 -14
  78. package/src/config/router.js +13 -13
  79. package/src/config/token.js +14 -14
  80. package/src/main.js +23 -23
  81. package/src/store/modules/generic.js +543 -512
  82. package/src/store/modules/user.js +3 -0
  83. package/src/store/modules/validation.js +38 -38
  84. package/src/store/store.js +13 -13
@@ -1,140 +1,140 @@
1
- <template>
2
- <div class="panel">
3
- <Toast />
4
- <Loading v-show="isLoading('panel')" />
5
- <div v-show="!isLoading('panel')">
6
- <div v-show="showVerticalFilter">
7
- <VerticalFilter>
8
- <slot name="content-filter"></slot>
9
- </VerticalFilter>
10
- </div>
11
- <div class="local-container">
12
- <Messages v-if="!modal.open" />
13
- <div class="row">
14
- <div class="col-10">
15
- <div class="div-title">
16
- <span class="module">
17
- <span class="icon"><i class="fas fa-compass"></i></span>
18
- {{ module }} |</span
19
- >
20
- <span class="title"> {{ title }}</span>
21
- </div>
22
- </div>
23
- <div class="col-2 text-right" v-show="currentRoute != 'Dashboard'">
24
- <div class="c-back" @click="back()">
25
- <span class="g-espaco-esquerda">Voltar</span>
26
- </div>
27
- </div>
28
- </div>
29
- <br v-show="showButtons" />
30
- <div class="row" v-show="showButtons">
31
- <div class="col-12" v-show="showButtons">
32
- <slot name="content-buttons"></slot>
33
- </div>
34
- </div>
35
- <br v-show="showButtons || showSearch" />
36
- <div v-show="showButtons || showSearch">
37
- <div>
38
- <div v-show="showSearch"><Search /></div>
39
- </div>
40
- </div>
41
- <br v-show="showSearch" />
42
- <div>
43
- <slot name="content-main"></slot>
44
- </div>
45
- </div>
46
- </div>
47
- <br /><br /><br />
48
- </div>
49
- </template>
50
-
51
- <script>
52
- import Toast from "../shared/Toast.vue";
53
- import Messages from "../shared/Messages.vue";
54
- import Search from "../shared/Search.vue";
55
- import Loading from "../shared/Loading.vue";
56
- import VerticalFilter from "../shared/VerticalFilter";
57
-
58
- import { mapState, mapGetters, mapMutations } from "vuex";
59
-
60
- export default {
61
- name: "Panel",
62
- components: {
63
- Loading,
64
- VerticalFilter,
65
- Search,
66
- Messages,
67
- Toast,
68
- },
69
- props: {
70
- module: String,
71
- title: String,
72
- showVerticalFilter: Boolean,
73
- showSearch: Boolean,
74
- showButtons: Boolean,
75
- },
76
- data() {
77
- return {
78
- currentRoute: this.$route.name,
79
- };
80
- },
81
- created() {
82
- this.addLoading("panel");
83
- },
84
- updated() {
85
- this.currentRoute = this.$route.name;
86
- },
87
- computed: {
88
- ...mapGetters("generic", ["isLoading"]),
89
- ...mapState("generic", ["modal"]),
90
- },
91
- methods: {
92
- ...mapMutations("generic", ["addLoading"]),
93
- back() {
94
- window.history.back();
95
- },
96
- },
97
- };
98
- </script>
99
- <style scoped>
100
- .local-container {
101
- margin: auto;
102
- padding-left: 130px;
103
- max-width: 1400px;
104
- }
105
-
106
- .div-title {
107
- margin-top: 15px;
108
- }
109
-
110
- .module {
111
- font-size: 16px;
112
- font-weight: 400;
113
- }
114
-
115
- .title {
116
- font-size: 18px;
117
- font-weight: 400;
118
- }
119
-
120
- .icon {
121
- opacity: 0.8;
122
- font-size: 20px;
123
- }
124
-
125
- .c-back {
126
- margin-top: 20px;
127
- margin-right: 12px;
128
- font-size: 16px;
129
- cursor: pointer;
130
- color: #8ca1b7;
131
- }
132
-
133
- .c-back:hover {
134
- color: #8ca1b7;
135
- }
136
-
137
- .panel {
138
- padding: 25px;
139
- }
140
- </style>
1
+ <template>
2
+ <div class="panel">
3
+ <Toast />
4
+ <Loading v-show="isLoading('panel')" />
5
+ <div v-show="!isLoading('panel')">
6
+ <div v-show="showVerticalFilter">
7
+ <VerticalFilter>
8
+ <slot name="content-filter"></slot>
9
+ </VerticalFilter>
10
+ </div>
11
+ <div class="local-container">
12
+ <Messages v-if="!modal.open" />
13
+ <div class="row">
14
+ <div class="col-10">
15
+ <div class="div-title">
16
+ <span class="module">
17
+ <span class="icon"><i class="fas fa-compass"></i></span>
18
+ {{ module }} |</span
19
+ >
20
+ <span class="title"> {{ title }}</span>
21
+ </div>
22
+ </div>
23
+ <div class="col-2 text-right" v-show="currentRoute != 'Dashboard'">
24
+ <div class="c-back" @click="back()">
25
+ <span class="g-espaco-esquerda">Voltar</span>
26
+ </div>
27
+ </div>
28
+ </div>
29
+ <br v-show="showButtons" />
30
+ <div class="row" v-show="showButtons">
31
+ <div class="col-12" v-show="showButtons">
32
+ <slot name="content-buttons"></slot>
33
+ </div>
34
+ </div>
35
+ <br v-show="showButtons || showSearch" />
36
+ <div v-show="showButtons || showSearch">
37
+ <div>
38
+ <div v-show="showSearch"><Search /></div>
39
+ </div>
40
+ </div>
41
+ <br v-show="showSearch" />
42
+ <div>
43
+ <slot name="content-main"></slot>
44
+ </div>
45
+ </div>
46
+ </div>
47
+ <br /><br /><br />
48
+ </div>
49
+ </template>
50
+
51
+ <script>
52
+ import Toast from "../shared/Toast.vue";
53
+ import Messages from "../shared/Messages.vue";
54
+ import Search from "../shared/Search.vue";
55
+ import Loading from "../shared/Loading.vue";
56
+ import VerticalFilter from "../shared/VerticalFilter";
57
+
58
+ import { mapState, mapGetters, mapMutations } from "vuex";
59
+
60
+ export default {
61
+ name: "Panel",
62
+ components: {
63
+ Loading,
64
+ VerticalFilter,
65
+ Search,
66
+ Messages,
67
+ Toast,
68
+ },
69
+ props: {
70
+ module: String,
71
+ title: String,
72
+ showVerticalFilter: Boolean,
73
+ showSearch: Boolean,
74
+ showButtons: Boolean,
75
+ },
76
+ data() {
77
+ return {
78
+ currentRoute: this.$route.name,
79
+ };
80
+ },
81
+ created() {
82
+ this.addLoading("panel");
83
+ },
84
+ updated() {
85
+ this.currentRoute = this.$route.name;
86
+ },
87
+ computed: {
88
+ ...mapGetters("generic", ["isLoading"]),
89
+ ...mapState("generic", ["modal"]),
90
+ },
91
+ methods: {
92
+ ...mapMutations("generic", ["addLoading"]),
93
+ back() {
94
+ window.history.back();
95
+ },
96
+ },
97
+ };
98
+ </script>
99
+ <style scoped>
100
+ .local-container {
101
+ margin: auto;
102
+ padding-left: 130px;
103
+ max-width: 1500px;
104
+ }
105
+
106
+ .div-title {
107
+ margin-top: 15px;
108
+ }
109
+
110
+ .module {
111
+ font-size: 16px;
112
+ font-weight: 400;
113
+ }
114
+
115
+ .title {
116
+ font-size: 18px;
117
+ font-weight: 400;
118
+ }
119
+
120
+ .icon {
121
+ opacity: 0.8;
122
+ font-size: 20px;
123
+ }
124
+
125
+ .c-back {
126
+ margin-top: 20px;
127
+ margin-right: 12px;
128
+ font-size: 16px;
129
+ cursor: pointer;
130
+ color: #8ca1b7;
131
+ }
132
+
133
+ .c-back:hover {
134
+ color: #8ca1b7;
135
+ }
136
+
137
+ .panel {
138
+ padding: 25px;
139
+ }
140
+ </style>
@@ -1,126 +1,126 @@
1
- <template>
2
- <div>
3
- <div class="center">
4
- <span class="qs">? <span class="popover above">Hey bro, cool popover!</span></span>
5
- </div>
6
- </div>
7
- </template>
8
-
9
- <script>
10
- export default {
11
- name: "Popover",
12
- props: {
13
- nome: String,
14
- width: Number,
15
- },
16
- };
17
- </script>
18
- <style lang="scss" scoped>
19
- .center {
20
- margin: 100px auto;
21
- width: 30px;
22
- }
23
-
24
- /* The element to hover over */
25
- .qs {
26
- background-color: #02bdda;
27
- border-radius: 16px;
28
- color: #e3fbff;
29
- cursor: default;
30
- display: inline-block;
31
- font-family: "Helvetica", sans-serif;
32
- font-size: 18px;
33
- font-weight: bold;
34
- height: 30px;
35
- line-height: 30px;
36
- position: relative;
37
- text-align: center;
38
- width: 30px;
39
-
40
- .popover {
41
- background-color: rgba(0, 0, 0, 0.85);
42
- border-radius: 5px;
43
- bottom: 42px;
44
- box-shadow: 0 0 5px rgba(0, 0, 0, 0.4);
45
- color: #fff;
46
- display: none;
47
- font-size: 12px;
48
- font-family: "Helvetica", sans-serif;
49
- left: -95px;
50
- padding: 7px 10px;
51
- position: absolute;
52
- width: 200px;
53
- z-index: 4;
54
-
55
- &:before {
56
- border-top: 7px solid rgba(0, 0, 0, 0.85);
57
- border-right: 7px solid transparent;
58
- border-left: 7px solid transparent;
59
- bottom: -7px;
60
- content: "";
61
- display: block;
62
- left: 50%;
63
- margin-left: -7px;
64
- position: absolute;
65
- }
66
- }
67
-
68
- &:hover {
69
- .popover {
70
- display: block;
71
- -webkit-animation: fade-in 0.3s linear 1, move-up 0.3s linear 1;
72
- -moz-animation: fade-in 0.3s linear 1, move-up 0.3s linear 1;
73
- -ms-animation: fade-in 0.3s linear 1, move-up 0.3s linear 1;
74
- }
75
- }
76
- }
77
-
78
- @-webkit-keyframes fade-in {
79
- from {
80
- opacity: 0;
81
- }
82
- to {
83
- opacity: 1;
84
- }
85
- }
86
- @-moz-keyframes fade-in {
87
- from {
88
- opacity: 0;
89
- }
90
- to {
91
- opacity: 1;
92
- }
93
- }
94
- @-ms-keyframes fade-in {
95
- from {
96
- opacity: 0;
97
- }
98
- to {
99
- opacity: 1;
100
- }
101
- }
102
- @-webkit-keyframes move-up {
103
- from {
104
- bottom: 30px;
105
- }
106
- to {
107
- bottom: 42px;
108
- }
109
- }
110
- @-moz-keyframes move-up {
111
- from {
112
- bottom: 30px;
113
- }
114
- to {
115
- bottom: 42px;
116
- }
117
- }
118
- @-ms-keyframes move-up {
119
- from {
120
- bottom: 30px;
121
- }
122
- to {
123
- bottom: 42px;
124
- }
125
- }
126
- </style>
1
+ <template>
2
+ <div>
3
+ <div class="center">
4
+ <span class="qs">? <span class="popover above">Hey bro, cool popover!</span></span>
5
+ </div>
6
+ </div>
7
+ </template>
8
+
9
+ <script>
10
+ export default {
11
+ name: "Popover",
12
+ props: {
13
+ nome: String,
14
+ width: Number,
15
+ },
16
+ };
17
+ </script>
18
+ <style lang="scss" scoped>
19
+ .center {
20
+ margin: 100px auto;
21
+ width: 30px;
22
+ }
23
+
24
+ /* The element to hover over */
25
+ .qs {
26
+ background-color: #02bdda;
27
+ border-radius: 16px;
28
+ color: #e3fbff;
29
+ cursor: default;
30
+ display: inline-block;
31
+ font-family: "Helvetica", sans-serif;
32
+ font-size: 18px;
33
+ font-weight: bold;
34
+ height: 30px;
35
+ line-height: 30px;
36
+ position: relative;
37
+ text-align: center;
38
+ width: 30px;
39
+
40
+ .popover {
41
+ background-color: rgba(0, 0, 0, 0.85);
42
+ border-radius: 5px;
43
+ bottom: 42px;
44
+ box-shadow: 0 0 5px rgba(0, 0, 0, 0.4);
45
+ color: #fff;
46
+ display: none;
47
+ font-size: 12px;
48
+ font-family: "Helvetica", sans-serif;
49
+ left: -95px;
50
+ padding: 7px 10px;
51
+ position: absolute;
52
+ width: 200px;
53
+ z-index: 4;
54
+
55
+ &:before {
56
+ border-top: 7px solid rgba(0, 0, 0, 0.85);
57
+ border-right: 7px solid transparent;
58
+ border-left: 7px solid transparent;
59
+ bottom: -7px;
60
+ content: "";
61
+ display: block;
62
+ left: 50%;
63
+ margin-left: -7px;
64
+ position: absolute;
65
+ }
66
+ }
67
+
68
+ &:hover {
69
+ .popover {
70
+ display: block;
71
+ -webkit-animation: fade-in 0.3s linear 1, move-up 0.3s linear 1;
72
+ -moz-animation: fade-in 0.3s linear 1, move-up 0.3s linear 1;
73
+ -ms-animation: fade-in 0.3s linear 1, move-up 0.3s linear 1;
74
+ }
75
+ }
76
+ }
77
+
78
+ @-webkit-keyframes fade-in {
79
+ from {
80
+ opacity: 0;
81
+ }
82
+ to {
83
+ opacity: 1;
84
+ }
85
+ }
86
+ @-moz-keyframes fade-in {
87
+ from {
88
+ opacity: 0;
89
+ }
90
+ to {
91
+ opacity: 1;
92
+ }
93
+ }
94
+ @-ms-keyframes fade-in {
95
+ from {
96
+ opacity: 0;
97
+ }
98
+ to {
99
+ opacity: 1;
100
+ }
101
+ }
102
+ @-webkit-keyframes move-up {
103
+ from {
104
+ bottom: 30px;
105
+ }
106
+ to {
107
+ bottom: 42px;
108
+ }
109
+ }
110
+ @-moz-keyframes move-up {
111
+ from {
112
+ bottom: 30px;
113
+ }
114
+ to {
115
+ bottom: 42px;
116
+ }
117
+ }
118
+ @-ms-keyframes move-up {
119
+ from {
120
+ bottom: 30px;
121
+ }
122
+ to {
123
+ bottom: 42px;
124
+ }
125
+ }
126
+ </style>
@@ -1,42 +1,42 @@
1
- <template>
2
- <div
3
- :id="id"
4
- class="scrollbar"
5
- :style="'max-height:' + maxHeight + 'px' + ';' + 'min-height:' + minHeight + 'px'"
6
- >
7
- <slot></slot>
8
- </div>
9
- </template>
10
-
11
- <script>
12
- import { mapMutations } from "vuex";
13
-
14
- export default {
15
- name: "ScrollBar",
16
- props: {
17
- id: String,
18
- maxHeight: Number,
19
- minHeight: Number,
20
- endScrollBar: Function,
21
- },
22
- mounted() {
23
- const listElm = document.querySelector("#" + this.id);
24
- if (listElm != null)
25
- listElm.addEventListener("scroll", (e) => {
26
- if (listElm.scrollTop + listElm.clientHeight >= listElm.scrollHeight) {
27
- if (this.endScrollBar) this.endScrollBar();
28
- }
29
- });
30
- },
31
- methods: {
32
- ...mapMutations("generic", ["addEvent"]),
33
- },
34
- };
35
- </script>
36
-
37
- <style scoped>
38
- div {
39
- overflow-y: visible;
40
- overflow-x: hidden;
41
- }
42
- </style>
1
+ <template>
2
+ <div
3
+ :id="id"
4
+ class="scrollbar"
5
+ :style="'max-height:' + maxHeight + 'px' + ';' + 'min-height:' + minHeight + 'px'"
6
+ >
7
+ <slot></slot>
8
+ </div>
9
+ </template>
10
+
11
+ <script>
12
+ import { mapMutations } from "vuex";
13
+
14
+ export default {
15
+ name: "ScrollBar",
16
+ props: {
17
+ id: String,
18
+ maxHeight: Number,
19
+ minHeight: Number,
20
+ endScrollBar: Function,
21
+ },
22
+ mounted() {
23
+ const listElm = document.querySelector("#" + this.id);
24
+ if (listElm != null)
25
+ listElm.addEventListener("scroll", (e) => {
26
+ if (listElm.scrollTop + listElm.clientHeight >= listElm.scrollHeight) {
27
+ if (this.endScrollBar) this.endScrollBar();
28
+ }
29
+ });
30
+ },
31
+ methods: {
32
+ ...mapMutations("generic", ["addEvent"]),
33
+ },
34
+ };
35
+ </script>
36
+
37
+ <style scoped>
38
+ div {
39
+ overflow-y: visible;
40
+ overflow-x: hidden;
41
+ }
42
+ </style>