@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,81 +1,81 @@
1
- <template>
2
- <div>
3
- <div :class="{ 'div-message': !modal.open }" v-if="storageNotification.length > 0">
4
- <div v-for="notification in storageNotification">
5
- <Alert type="danger">
6
- {{ notification.message }}
7
- </Alert>
8
- </div>
9
- <b-alert
10
- v-show="false"
11
- :show="countdown"
12
- dismissible
13
- variant="danger"
14
- @dismissed="countdown = 0"
15
- @dismiss-count-down="countdownChanged"
16
- >
17
- </b-alert>
18
- </div>
19
- </div>
20
- </template>
21
-
22
- <script>
23
- import Alert from "../layout/Alert.vue";
24
- import { mapState, mapMutations } from "vuex";
25
-
26
- export default {
27
- components: { Alert },
28
- name: "Messages",
29
- data() {
30
- return {
31
- maxSeconds: 10,
32
- countdown: 10,
33
- storageNotification: [],
34
- };
35
- },
36
- computed: {
37
- ...mapState("generic", ["notifications", "modal"]),
38
- },
39
- watch: {
40
- notifications() {
41
- if (this.notifications.length > 0) {
42
- this.storageNotification = this.notifications;
43
- this.countdown = 5;
44
- }
45
- },
46
- countdown() {
47
- if (this.countdown === 0) {
48
- this.storageNotification = [];
49
- this.removeNotificarions();
50
- }
51
- },
52
- },
53
- methods: {
54
- ...mapMutations("generic", ["removeNotificarions"]),
55
- countdownChanged(countdown) {
56
- this.countdown = countdown;
57
- },
58
- messages(notifications) {
59
- var message = "";
60
- notifications.forEach(function (notification) {
61
- message += notification.message + " ";
62
- });
63
-
64
- return message;
65
- },
66
- },
67
- };
68
- </script>
69
- <style scoped>
70
- .div-message {
71
- margin-top: 15px;
72
- }
73
-
74
- .div-message-modal {
75
- margin-bottom: 5px;
76
- }
77
-
78
- .invalid {
79
- color: #f0134d;
80
- }
81
- </style>
1
+ <template>
2
+ <div>
3
+ <div :class="{ 'div-message': !modal.open }" v-if="storageNotification.length > 0">
4
+ <div v-for="notification in storageNotification">
5
+ <Alert type="danger">
6
+ {{ notification.message }}
7
+ </Alert>
8
+ </div>
9
+ <b-alert
10
+ v-show="false"
11
+ :show="countdown"
12
+ dismissible
13
+ variant="danger"
14
+ @dismissed="countdown = 0"
15
+ @dismiss-count-down="countdownChanged"
16
+ >
17
+ </b-alert>
18
+ </div>
19
+ </div>
20
+ </template>
21
+
22
+ <script>
23
+ import Alert from "../layout/Alert.vue";
24
+ import { mapState, mapMutations } from "vuex";
25
+
26
+ export default {
27
+ components: { Alert },
28
+ name: "Messages",
29
+ data() {
30
+ return {
31
+ maxSeconds: 10,
32
+ countdown: 10,
33
+ storageNotification: [],
34
+ };
35
+ },
36
+ computed: {
37
+ ...mapState("generic", ["notifications", "modal"]),
38
+ },
39
+ watch: {
40
+ notifications() {
41
+ if (this.notifications.length > 0) {
42
+ this.storageNotification = this.notifications;
43
+ this.countdown = 5;
44
+ }
45
+ },
46
+ countdown() {
47
+ if (this.countdown === 0) {
48
+ this.storageNotification = [];
49
+ this.removeNotificarions();
50
+ }
51
+ },
52
+ },
53
+ methods: {
54
+ ...mapMutations("generic", ["removeNotificarions"]),
55
+ countdownChanged(countdown) {
56
+ this.countdown = countdown;
57
+ },
58
+ messages(notifications) {
59
+ var message = "";
60
+ notifications.forEach(function (notification) {
61
+ message += notification.message + " ";
62
+ });
63
+
64
+ return message;
65
+ },
66
+ },
67
+ };
68
+ </script>
69
+ <style scoped>
70
+ .div-message {
71
+ margin-top: 15px;
72
+ }
73
+
74
+ .div-message-modal {
75
+ margin-bottom: 5px;
76
+ }
77
+
78
+ .invalid {
79
+ color: #f0134d;
80
+ }
81
+ </style>
@@ -1,22 +1,22 @@
1
- <template>
2
- <!-- used `style="height: 100vh;"` because without it in the Firefox 89 and Chrome 91 (June 2021) the `vue-pdf-app` is not rendering on the page, just empty space without any errors (since `vue-pdf-app` does not have height and it is the top tag in the generated markup ) -->
3
- <!-- or you can just wrap `vue-pdf-app` in <div> tag and set height for it via CSS (like in `Script tag (unpkg)` example below) -->
4
- <div>
5
- <vue-pdf-app
6
- style="height: 100vh"
7
- pdf="https://file-examples-com.github.io/uploads/2017/10/file-example_PDF_1MB.pdf"
8
- ></vue-pdf-app>
9
- </div>
10
- </template>
11
-
12
- <script>
13
- import VuePdfApp from "vue-pdf-app";
14
-
15
- export default {
16
- components: {
17
- VuePdfApp,
18
- },
19
- };
20
- </script>
21
-
22
- <style scoped></style>
1
+ <template>
2
+ <!-- used `style="height: 100vh;"` because without it in the Firefox 89 and Chrome 91 (June 2021) the `vue-pdf-app` is not rendering on the page, just empty space without any errors (since `vue-pdf-app` does not have height and it is the top tag in the generated markup ) -->
3
+ <!-- or you can just wrap `vue-pdf-app` in <div> tag and set height for it via CSS (like in `Script tag (unpkg)` example below) -->
4
+ <div>
5
+ <vue-pdf-app
6
+ style="height: 100vh"
7
+ pdf="https://file-examples-com.github.io/uploads/2017/10/file-example_PDF_1MB.pdf"
8
+ ></vue-pdf-app>
9
+ </div>
10
+ </template>
11
+
12
+ <script>
13
+ import VuePdfApp from "vue-pdf-app";
14
+
15
+ export default {
16
+ components: {
17
+ VuePdfApp,
18
+ },
19
+ };
20
+ </script>
21
+
22
+ <style scoped></style>
@@ -1,52 +1,52 @@
1
- <template>
2
- <div>
3
- <b-pagination
4
- v-model="pagination(_key).currentPage"
5
- prev-text="Anterior"
6
- next-text="Próximo"
7
- align="right"
8
- :hide-goto-end-buttons="true"
9
- :per-page="pagination(_key).totalPerPage"
10
- :total-rows="totalRecords"
11
- ></b-pagination>
12
- </div>
13
- </template>
14
-
15
- <script>
16
- import { mapGetters, mapMutations } from "vuex";
17
-
18
- export default {
19
- name: "Pagination",
20
- props: {
21
- _key: String,
22
- totalRecords: Number,
23
- },
24
- created() {
25
- this.addPagination({
26
- key: this._key,
27
- currentPage: 1,
28
- totalPerPage: 10,
29
- });
30
- },
31
- computed: {
32
- ...mapGetters("generic", ["pagination"]),
33
- },
34
- methods: {
35
- ...mapMutations("generic", ["addPagination"]),
36
- },
37
- };
38
- </script>
39
-
40
- <style>
41
- .page-item {
42
- font-size: 13px !important;
43
- }
44
-
45
- .page-item.active .page-link {
46
- font-size: 13px !important;
47
- z-index: 3 !important;
48
- color: #fff !important;
49
- background-color: #d98621 !important;
50
- border-color: #d98621 !important;
51
- }
52
- </style>
1
+ <template>
2
+ <div>
3
+ <b-pagination
4
+ v-model="pagination(_key).currentPage"
5
+ prev-text="Anterior"
6
+ next-text="Próximo"
7
+ align="right"
8
+ :hide-goto-end-buttons="true"
9
+ :per-page="pagination(_key).totalPerPage"
10
+ :total-rows="totalRecords"
11
+ ></b-pagination>
12
+ </div>
13
+ </template>
14
+
15
+ <script>
16
+ import { mapGetters, mapMutations } from "vuex";
17
+
18
+ export default {
19
+ name: "Pagination",
20
+ props: {
21
+ _key: String,
22
+ totalRecords: Number,
23
+ },
24
+ created() {
25
+ this.addPagination({
26
+ key: this._key,
27
+ currentPage: 1,
28
+ totalPerPage: 10,
29
+ });
30
+ },
31
+ computed: {
32
+ ...mapGetters("generic", ["pagination"]),
33
+ },
34
+ methods: {
35
+ ...mapMutations("generic", ["addPagination"]),
36
+ },
37
+ };
38
+ </script>
39
+
40
+ <style>
41
+ .page-item {
42
+ font-size: 13px !important;
43
+ }
44
+
45
+ .page-item.active .page-link {
46
+ font-size: 13px !important;
47
+ z-index: 3 !important;
48
+ color: #fff !important;
49
+ background-color: #d98621 !important;
50
+ border-color: #d98621 !important;
51
+ }
52
+ </style>
@@ -1,22 +1,22 @@
1
- <template>
2
- <div>
3
- <progress-bar :size="size" :text="text" :val="value" :max="max"></progress-bar>
4
- </div>
5
- </template>
6
- <script>
7
- import ProgressBar from "vue-simple-progress";
8
-
9
- // não mudar o nome Progress para ProgressBar
10
- export default {
11
- name: "Progress",
12
- components: {
13
- ProgressBar,
14
- },
15
- props: {
16
- text: String,
17
- value: Number,
18
- max: Number,
19
- size: String,
20
- },
21
- };
22
- </script>
1
+ <template>
2
+ <div>
3
+ <progress-bar :size="size" :text="text" :val="value" :max="max"></progress-bar>
4
+ </div>
5
+ </template>
6
+ <script>
7
+ import ProgressBar from "vue-simple-progress";
8
+
9
+ // não mudar o nome Progress para ProgressBar
10
+ export default {
11
+ name: "Progress",
12
+ components: {
13
+ ProgressBar,
14
+ },
15
+ props: {
16
+ text: String,
17
+ value: Number,
18
+ max: Number,
19
+ size: String,
20
+ },
21
+ };
22
+ </script>
@@ -1,66 +1,66 @@
1
- <template>
2
- <div>
3
- <div class="alignment" v-for="item in items" :key="item.title">
4
- <button
5
- :class="{
6
- 'button-query': true,
7
- }"
8
- @click="execute(item.valor)"
9
- >
10
- <span class="icon"> <i :class="item.classIcon"></i></span>
11
- <span class="title">{{ item.title }}</span>
12
- </button>
13
- </div>
14
- </div>
15
- </template>
16
- <script>
17
- export default {
18
- name: "QueryButton",
19
- props: ["items", "value", "clicked"],
20
- data() {
21
- return {
22
- currentValue: 0,
23
- };
24
- },
25
- methods: {
26
- execute(valor) {
27
- this.currentValue = valor;
28
- this.$emit("input", valor);
29
- if (this.clicked) this.clicked();
30
- },
31
- },
32
- };
33
- </script>
34
- <style scoped>
35
- .button-query {
36
- cursor: pointer;
37
- height: 35px;
38
- border: 1px solid #d5d5d5;
39
- background-color: white;
40
- border-radius: 3px;
41
- padding-left: 10px;
42
- padding-right: 7px;
43
- margin-right: 10px;
44
- margin-bottom: 10px;
45
- font-size: 16px;
46
- font-weight: normal;
47
- }
48
-
49
- .button-query:hover {
50
- background-color: #d98621;
51
- color: white;
52
- border: none;
53
- }
54
-
55
- .icon {
56
- font-size: 13px;
57
- }
58
-
59
- .title {
60
- font-size: 16px;
61
- }
62
-
63
- .alignment {
64
- display: inline-block;
65
- }
66
- </style>
1
+ <template>
2
+ <div>
3
+ <div class="alignment" v-for="item in items" :key="item.title">
4
+ <button
5
+ :class="{
6
+ 'button-query': true,
7
+ }"
8
+ @click="execute(item.valor)"
9
+ >
10
+ <span class="icon"> <i :class="item.classIcon"></i></span>
11
+ <span class="title">{{ item.title }}</span>
12
+ </button>
13
+ </div>
14
+ </div>
15
+ </template>
16
+ <script>
17
+ export default {
18
+ name: "QueryButton",
19
+ props: ["items", "value", "clicked"],
20
+ data() {
21
+ return {
22
+ currentValue: 0,
23
+ };
24
+ },
25
+ methods: {
26
+ execute(valor) {
27
+ this.currentValue = valor;
28
+ this.$emit("input", valor);
29
+ if (this.clicked) this.clicked();
30
+ },
31
+ },
32
+ };
33
+ </script>
34
+ <style scoped>
35
+ .button-query {
36
+ cursor: pointer;
37
+ height: 35px;
38
+ border: 1px solid #d5d5d5;
39
+ background-color: white;
40
+ border-radius: 3px;
41
+ padding-left: 10px;
42
+ padding-right: 7px;
43
+ margin-right: 10px;
44
+ margin-bottom: 10px;
45
+ font-size: 16px;
46
+ font-weight: normal;
47
+ }
48
+
49
+ .button-query:hover {
50
+ background-color: #d98621;
51
+ color: white;
52
+ border: none;
53
+ }
54
+
55
+ .icon {
56
+ font-size: 13px;
57
+ }
58
+
59
+ .title {
60
+ font-size: 16px;
61
+ }
62
+
63
+ .alignment {
64
+ display: inline-block;
65
+ }
66
+ </style>
@@ -7,12 +7,13 @@
7
7
  eventName="cancelSaveCancel"
8
8
  title="Cancelar"
9
9
  type="danger"
10
- size="medium"
10
+ size="small"
11
11
  :clicked="cancel"
12
12
  />
13
13
  <Button
14
14
  _key="saveSaveCancel"
15
15
  eventName="saveSaveCancel"
16
+ classIcon="fa-solid fa-floppy-disk"
16
17
  title="Salvar"
17
18
  type="success"
18
19
  :disabled="!isFormValid(formName)"
@@ -71,7 +72,7 @@ export default {
71
72
  };
72
73
  </script>
73
74
  <style scoped>
74
- .margin{
75
+ .margin {
75
76
  margin-left: 0px;
76
77
  }
77
78
  </style>