@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
@@ -0,0 +1,98 @@
1
+ <template>
2
+ <div>
3
+ <div class="div-table-sub">
4
+ <div class="btn-close" @click="show" v-if="!open">
5
+ <i class="icon-table-sub fa-solid fa-arrow-left"></i>
6
+ </div>
7
+ <div class="btn-close" @click="hide" v-else>
8
+ <i class="icon-table-sub fa-solid fa-arrow-down"></i>
9
+ </div>
10
+ </div>
11
+ </div>
12
+ </template>
13
+ <script>
14
+ import { mapActions, mapMutations } from "vuex";
15
+
16
+ export default {
17
+ name: "ButtonSub",
18
+ props: {
19
+ itemId: String,
20
+ urlGet: String,
21
+ eventNameShow: String,
22
+ eventNameHide: String,
23
+ propsParam: Object,
24
+ value: Object,
25
+ },
26
+ data() {
27
+ return {
28
+ open: false,
29
+ baseParams: {
30
+ search: undefined,
31
+ filter: "contains",
32
+ currentPage: 1,
33
+ totalPerPage: 20,
34
+ },
35
+ };
36
+ },
37
+ methods: {
38
+ ...mapActions("generic", ["getApi"]),
39
+ ...mapMutations("generic", ["addEvent"]),
40
+ getAll() {
41
+ this.$emit("input", { loading: true, itemId: this.itemId });
42
+ let params = {
43
+ url: this.urlGet,
44
+ obj: { ...this.propsParam, ...this.baseParams },
45
+ };
46
+ this.getApi(params).then((response) => {
47
+ this.addEvent({
48
+ name: this.eventNameShow,
49
+ data: { itemId: this.itemId, data: response.content.data },
50
+ });
51
+
52
+ let self = this;
53
+ setTimeout(function () {
54
+ self.$emit("input", { loading: false, itemId: this.itemId });
55
+ }, 500);
56
+ });
57
+ },
58
+ show() {
59
+ this.open = true;
60
+ this.getAll();
61
+ },
62
+ hide() {
63
+ this.open = false;
64
+ this.addEvent({
65
+ name: this.eventNameHide,
66
+ data: { itemId: this.itemId, data: [] },
67
+ });
68
+ },
69
+ },
70
+ };
71
+ </script>
72
+ <style scoped>
73
+ .div-table-sub {
74
+ overflow-y: hidden !important;
75
+ overflow-x: hidden !important;
76
+ background-color: #ececec;
77
+ border-radius: 50px;
78
+ height: 35px;
79
+ width: 35px;
80
+ margin-left: 10px;
81
+ cursor: pointer;
82
+ }
83
+
84
+ .div-table-sub:hover {
85
+ background-color: #dfdfdf;
86
+ }
87
+
88
+ .icon-table-sub {
89
+ font-size: 16px;
90
+ padding-top: 10px;
91
+ padding-right: 10px;
92
+ }
93
+
94
+ .btn-close {
95
+ margin-left: 10px;
96
+ height: 30px;
97
+ }
98
+ </style>
@@ -1,72 +1,73 @@
1
- <template>
2
- <div>
3
- <b-form-group :label="title">
4
- <b-form-checkbox-group
5
- v-model="selected"
6
- :options="options"
7
- :stacked="stacked"
8
- @click.native="execute"
9
- ></b-form-checkbox-group>
10
- </b-form-group>
11
- </div>
12
- </template>
13
-
14
- <script>
15
- import { mapMutations } from "vuex";
16
-
17
- export default {
18
- name: "CheckboxGroup",
19
- props: {
20
- title: String,
21
- options: Array,
22
- params: Object,
23
- changed: Function,
24
- clicked: Function,
25
- initialValue: Array,
26
- value: Array,
27
- stacked: {
28
- type: Boolean,
29
- default: false,
30
- },
31
- markFormDirty: {
32
- type: Boolean,
33
- default: true,
34
- },
35
- },
36
- data() {
37
- return {
38
- selected: [],
39
- };
40
- },
41
- mounted() {
42
- if (this.initialValue) this.selected = this.initialValue;
43
- },
44
- methods: {
45
- ...mapMutations("validation", ["updateFormDirty"]),
46
- execute(event) {
47
- if (this.markFormDirty) this.updateFormDirty(true);
48
- this.$emit("input", this.selected);
49
- let self = this;
50
- setTimeout(function () {
51
- // adicionado o pointerId para prevenir que não seja executado em duplicidade
52
- if (self.clicked && event.pointerId === 1) self.clicked(self.params);
53
- }, 100);
54
- },
55
- },
56
- watch: {
57
- selected: {
58
- handler(value) {
59
- this.$emit("input", value);
60
- if (this.changed) this.changed(this.params);
61
- },
62
- deep: true,
63
- },
64
- initialValue: {
65
- handler(value) {
66
- if (this.initialValue) this.selected = this.initialValue;
67
- },
68
- deep: true,
69
- },
70
- },
71
- };
72
- </script>
1
+ <template>
2
+ <div>
3
+ <b-form-group :label="title">
4
+ <b-form-checkbox-group
5
+ v-model="selected"
6
+ :options="options"
7
+ :stacked="stacked"
8
+ disabled-field="disabled"
9
+ @click.native="execute"
10
+ ></b-form-checkbox-group>
11
+ </b-form-group>
12
+ </div>
13
+ </template>
14
+
15
+ <script>
16
+ import { mapMutations } from "vuex";
17
+
18
+ export default {
19
+ name: "CheckboxGroup",
20
+ props: {
21
+ title: String,
22
+ options: Array,
23
+ params: Object,
24
+ changed: Function,
25
+ clicked: Function,
26
+ initialValue: Array,
27
+ value: Array,
28
+ stacked: {
29
+ type: Boolean,
30
+ default: false,
31
+ },
32
+ markFormDirty: {
33
+ type: Boolean,
34
+ default: true,
35
+ },
36
+ },
37
+ data() {
38
+ return {
39
+ selected: [],
40
+ };
41
+ },
42
+ mounted() {
43
+ if (this.initialValue) this.selected = this.initialValue;
44
+ },
45
+ methods: {
46
+ ...mapMutations("validation", ["updateFormDirty"]),
47
+ execute(event) {
48
+ if (this.markFormDirty) this.updateFormDirty(true);
49
+ this.$emit("input", this.selected);
50
+ let self = this;
51
+ setTimeout(function () {
52
+ // adicionado o pointerId para prevenir que não seja executado em duplicidade
53
+ if (self.clicked && event.pointerId === 1) self.clicked(self.params);
54
+ }, 100);
55
+ },
56
+ },
57
+ watch: {
58
+ selected: {
59
+ handler(value) {
60
+ this.$emit("input", value);
61
+ if (this.changed) this.changed(this.params);
62
+ },
63
+ deep: true,
64
+ },
65
+ initialValue: {
66
+ handler(value) {
67
+ if (this.initialValue) this.selected = this.initialValue;
68
+ },
69
+ deep: true,
70
+ },
71
+ },
72
+ };
73
+ </script>
@@ -1,46 +1,46 @@
1
- <template>
2
- <div>
3
- <b-form-checkbox v-model="valueLocal" :value="true" :unchecked-value="false">
4
- {{ title }}
5
- <Tip :field="field" :formName="formName" />
6
- </b-form-checkbox>
7
- </div>
8
- </template>
9
-
10
- <script>
11
- import Tip from "../shared/Tip.vue";
12
-
13
- import { mapMutations } from "vuex";
14
-
15
- export default {
16
- components: { Tip },
17
- name: "CheckboxSimple",
18
- props: {
19
- title: String,
20
- formName: String,
21
- field: String,
22
- value: Boolean,
23
- markFormDirty: {
24
- type: Boolean,
25
- default: true,
26
- },
27
- },
28
- data() {
29
- return {
30
- valueLocal: false,
31
- };
32
- },
33
- methods: {
34
- ...mapMutations("validation", ["updateFormDirty"]),
35
- },
36
- watch: {
37
- value() {
38
- this.valueLocal = this.value;
39
- },
40
- valueLocal() {
41
- this.$emit("input", this.valueLocal);
42
- if (this.markFormDirty) this.updateFormDirty(true);
43
- },
44
- },
45
- };
46
- </script>
1
+ <template>
2
+ <div>
3
+ <b-form-checkbox v-model="valueLocal" :value="true" :unchecked-value="false">
4
+ {{ title }}
5
+ <Tip :field="field" :formName="formName" />
6
+ </b-form-checkbox>
7
+ </div>
8
+ </template>
9
+
10
+ <script>
11
+ import Tip from "../shared/Tip.vue";
12
+
13
+ import { mapMutations } from "vuex";
14
+
15
+ export default {
16
+ components: { Tip },
17
+ name: "CheckboxSimple",
18
+ props: {
19
+ title: String,
20
+ formName: String,
21
+ field: String,
22
+ value: Boolean,
23
+ markFormDirty: {
24
+ type: Boolean,
25
+ default: true,
26
+ },
27
+ },
28
+ data() {
29
+ return {
30
+ valueLocal: false,
31
+ };
32
+ },
33
+ methods: {
34
+ ...mapMutations("validation", ["updateFormDirty"]),
35
+ },
36
+ watch: {
37
+ value() {
38
+ this.valueLocal = this.value;
39
+ },
40
+ valueLocal() {
41
+ this.$emit("input", this.valueLocal);
42
+ if (this.markFormDirty) this.updateFormDirty(true);
43
+ },
44
+ },
45
+ };
46
+ </script>
@@ -1,38 +1,38 @@
1
- <template>
2
- <div class="form-group">
3
- <div>
4
- <span class="title">{{ title }} </span>
5
- <compact-picker v-model.trim="color.hex" />
6
- </div>
7
- </div>
8
- </template>
9
-
10
- <script>
11
- import { Chrome } from "vue-color";
12
-
13
- export default {
14
- name: "Color",
15
- components: {
16
- "compact-picker": Chrome,
17
- },
18
- props: {
19
- title: String,
20
- field: String,
21
- formName: String,
22
- value: String,
23
- },
24
- data() {
25
- return {
26
- color: { hex: "#40BF84" },
27
- };
28
- },
29
- watch: {
30
- value() {
31
- this.color.hex = this.value;
32
- },
33
- "color.hex": function (value) {
34
- if (value.hex) this.$emit("input", value.hex);
35
- },
36
- },
37
- };
38
- </script>
1
+ <template>
2
+ <div class="form-group">
3
+ <div>
4
+ <span class="title">{{ title }} </span>
5
+ <compact-picker v-model.trim="color.hex" />
6
+ </div>
7
+ </div>
8
+ </template>
9
+
10
+ <script>
11
+ import { Chrome } from "vue-color";
12
+
13
+ export default {
14
+ name: "Color",
15
+ components: {
16
+ "compact-picker": Chrome,
17
+ },
18
+ props: {
19
+ title: String,
20
+ field: String,
21
+ formName: String,
22
+ value: String,
23
+ },
24
+ data() {
25
+ return {
26
+ color: { hex: "#40BF84" },
27
+ };
28
+ },
29
+ watch: {
30
+ value() {
31
+ this.color.hex = this.value;
32
+ },
33
+ "color.hex": function (value) {
34
+ if (value.hex) this.$emit("input", value.hex);
35
+ },
36
+ },
37
+ };
38
+ </script>