@nixweb/nixloc-ui 1.9.0 → 1.11.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 (68) hide show
  1. package/@nixweb/nixloc-ui/package.json +88 -88
  2. package/@nixweb/nixloc-ui/src/App.vue +13 -13
  3. package/@nixweb/nixloc-ui/src/component/forms/Button.vue +163 -163
  4. package/@nixweb/nixloc-ui/src/component/forms/CheckboxGroup.vue +69 -69
  5. package/@nixweb/nixloc-ui/src/component/forms/CheckboxServer.vue +192 -192
  6. package/@nixweb/nixloc-ui/src/component/forms/CheckboxSimple.vue +60 -60
  7. package/@nixweb/nixloc-ui/src/component/forms/Color.vue +38 -38
  8. package/@nixweb/nixloc-ui/src/component/forms/DateTime.vue +170 -170
  9. package/@nixweb/nixloc-ui/src/component/forms/Dropdown.vue +236 -236
  10. package/@nixweb/nixloc-ui/src/component/forms/EditorHtml.vue +132 -132
  11. package/@nixweb/nixloc-ui/src/component/forms/FileUpload.vue +170 -170
  12. package/@nixweb/nixloc-ui/src/component/forms/InputDecimal.vue +153 -153
  13. package/@nixweb/nixloc-ui/src/component/forms/InputNumber.vue +160 -160
  14. package/@nixweb/nixloc-ui/src/component/forms/InputPassword.vue +148 -148
  15. package/@nixweb/nixloc-ui/src/component/forms/InputText.vue +174 -174
  16. package/@nixweb/nixloc-ui/src/component/forms/Modal.vue +57 -57
  17. package/@nixweb/nixloc-ui/src/component/forms/RadioGroup.vue +91 -91
  18. package/@nixweb/nixloc-ui/src/component/forms/Select.vue +378 -378
  19. package/@nixweb/nixloc-ui/src/component/forms/SelectStatic.vue +198 -198
  20. package/@nixweb/nixloc-ui/src/component/forms/Slider.vue +18 -18
  21. package/@nixweb/nixloc-ui/src/component/forms/TextArea.vue +138 -138
  22. package/@nixweb/nixloc-ui/src/component/layout/Alert.vue +88 -88
  23. package/@nixweb/nixloc-ui/src/component/layout/Badge.vue +111 -111
  24. package/@nixweb/nixloc-ui/src/component/layout/FixedBar.vue +103 -103
  25. package/@nixweb/nixloc-ui/src/component/layout/Header.vue +56 -56
  26. package/@nixweb/nixloc-ui/src/component/layout/LoadingFullPage.vue +27 -27
  27. package/@nixweb/nixloc-ui/src/component/layout/Menu.vue +287 -287
  28. package/@nixweb/nixloc-ui/src/component/layout/Molded.vue +30 -30
  29. package/@nixweb/nixloc-ui/src/component/layout/Panel.vue +185 -185
  30. package/@nixweb/nixloc-ui/src/component/layout/Popover.vue +126 -126
  31. package/@nixweb/nixloc-ui/src/component/layout/ScrollBar.vue +57 -57
  32. package/@nixweb/nixloc-ui/src/component/layout/Wizard.vue +211 -211
  33. package/@nixweb/nixloc-ui/src/component/shared/Collapse.vue +131 -131
  34. package/@nixweb/nixloc-ui/src/component/shared/ExportPDF.vue +116 -116
  35. package/@nixweb/nixloc-ui/src/component/shared/HorizontalFilter.vue +64 -64
  36. package/@nixweb/nixloc-ui/src/component/shared/Loading.vue +107 -107
  37. package/@nixweb/nixloc-ui/src/component/shared/LoadingMoreButton.vue +23 -23
  38. package/@nixweb/nixloc-ui/src/component/shared/Messages.vue +109 -109
  39. package/@nixweb/nixloc-ui/src/component/shared/PDFViewer.vue +24 -24
  40. package/@nixweb/nixloc-ui/src/component/shared/Pagination.vue +108 -108
  41. package/@nixweb/nixloc-ui/src/component/shared/ProgressBar.vue +25 -25
  42. package/@nixweb/nixloc-ui/src/component/shared/QueryButton.vue +66 -66
  43. package/@nixweb/nixloc-ui/src/component/shared/Search.vue +174 -174
  44. package/@nixweb/nixloc-ui/src/component/shared/Table.vue +174 -174
  45. package/@nixweb/nixloc-ui/src/component/shared/TableButton.vue +36 -36
  46. package/@nixweb/nixloc-ui/src/component/shared/TableTotalization.vue +47 -47
  47. package/@nixweb/nixloc-ui/src/component/shared/Tip.vue +42 -42
  48. package/@nixweb/nixloc-ui/src/component/shared/Toast.vue +69 -69
  49. package/@nixweb/nixloc-ui/src/component/shared/VerticalFilter.vue +97 -97
  50. package/@nixweb/nixloc-ui/src/component/shared/query-builder/AddRule.vue +203 -203
  51. package/@nixweb/nixloc-ui/src/component/shared/query-builder/DynamicComponentList.vue +70 -70
  52. package/@nixweb/nixloc-ui/src/component/shared/query-builder/QueryBuilder.vue +69 -69
  53. package/@nixweb/nixloc-ui/src/component/shared/query-builder/utilities.js +21 -21
  54. package/@nixweb/nixloc-ui/src/component/template/ListViewWithDataHandler.vue +429 -429
  55. package/@nixweb/nixloc-ui/src/component/template/ViewTemplateConfiguration.vue +64 -64
  56. package/@nixweb/nixloc-ui/src/component/template/ViewTemplateWithSalveCancel.vue +32 -32
  57. package/@nixweb/nixloc-ui/src/component/template/ViewTemplateWithTable.vue +62 -62
  58. package/@nixweb/nixloc-ui/src/config/axios.js +9 -9
  59. package/@nixweb/nixloc-ui/src/config/dicas.js +14 -14
  60. package/@nixweb/nixloc-ui/src/config/router.js +13 -13
  61. package/@nixweb/nixloc-ui/src/config/token.js +14 -14
  62. package/@nixweb/nixloc-ui/src/main.js +23 -23
  63. package/@nixweb/nixloc-ui/src/store/modules/generic.js +815 -815
  64. package/@nixweb/nixloc-ui/src/store/modules/validation.js +38 -38
  65. package/@nixweb/nixloc-ui/src/store/store.js +13 -13
  66. package/package.json +1 -1
  67. package/src/component/training/CourseView.vue +16 -7
  68. package/src/component/value-objects/Address.vue +4 -2
@@ -1,170 +1,170 @@
1
- <template>
2
- <div class="form-group">
3
- <label>
4
- <span class="title">{{ title }} </span>
5
- <span class="required" v-if="required">*</span>
6
- <Tip :field="field" :formName="formName" />
7
- </label>
8
- <div class="inner-addon right-addon">
9
- <i v-if="notifications.length > 0 && formDirty" class="required glyphicon fas fa-exclamation-triangle"></i>
10
- <date-picker lang="pt-br" :disabled="disabled" :range="range" @confirm="executeConfirm" @change="executeConfirm"
11
- @clear="close" :confirm="confirm" :confirm-text="confirmText" :format="format" value-type="format"
12
- :time-picker-options="{
13
- start: '07:00',
14
- step: '00:30',
15
- end: '23:30',
16
- format: 'HH:mm',
17
- }" width="100%" :placeholder="placeholder" :type="type" v-model="valueLocal"
18
- :class="{ 'is-invalid': notifications.length > 0 && formDirty }"></date-picker>
19
- </div>
20
-
21
- <div v-if="formDirty">
22
- <div v-for="message in notifications" :key="message">
23
- <span class="invalid">{{ message }}</span>
24
- </div>
25
- </div>
26
- </div>
27
- </template>
28
-
29
- <script>
30
- import Tip from "../shared/Tip";
31
- import DatePicker from "vue2-datepicker";
32
-
33
- import { mapState, mapMutations, mapGetters } from "vuex";
34
-
35
- export default {
36
- components: { Tip, DatePicker },
37
- name: "Data",
38
- mixins: [],
39
- props: [
40
- "title",
41
- "field",
42
- "fieldTarget",
43
- "placeholder",
44
- "formName",
45
- "required",
46
- "disabled",
47
- "format",
48
- "type",
49
- "value",
50
- "range",
51
- "confirm",
52
- "confirmText",
53
- "markFormDirty",
54
- ],
55
- data() {
56
- return {
57
- notifications: [],
58
- formDirty: false,
59
- valueLocal: "",
60
- markFormDirtyLocal: false,
61
- };
62
- },
63
- created() {
64
- this.validate();
65
- this.valueLocal = this.value;
66
-
67
- if (this.markFormDirty == undefined) this.markFormDirtyLocal = true;
68
- },
69
- methods: {
70
- ...mapMutations("validation", [
71
- "addValidation",
72
- "removeValidation",
73
- "updateFormDirty",
74
- ]),
75
- ...mapMutations("generic", ["addFilter", "removeTag", "addEvent"]),
76
- validate() {
77
- this.notifications = [];
78
-
79
- if (this.required && this.valueLocal.length == 0) {
80
- var message = `${this.title} não pode ser vazio!`;
81
- this.notifications.push(message);
82
- }
83
- },
84
- executeConfirm() {
85
- if (this.range) {
86
- if (this.fieldTarget) {
87
- let obj = {
88
- fieldTarget: this.fieldTarget,
89
- value: { start: this.valueLocal[0], end: this.valueLocal[1] },
90
- };
91
- this.addFilter(obj);
92
- }
93
- }
94
- },
95
- close() {
96
- this.removeTag("period");
97
- this.addEvent({ name: "tagRemoved", data: "period" });
98
- },
99
- },
100
- computed: {
101
- ...mapState("validation", ["resetForm", "validations"]),
102
- ...mapGetters("generic", ["event"]),
103
- },
104
- watch: {
105
- valueLocal() {
106
- this.validate();
107
- this.formDirty = true;
108
- if (this.markFormDirtyLocal) this.updateFormDirty(true);
109
- this.$emit("input", this.valueLocal);
110
- },
111
- value() {
112
- this.valueLocal = this.value;
113
- if (this.markFormDirty) this.updateFormDirty(true);
114
- },
115
- notifications() {
116
- let self = this;
117
- this.notifications.forEach(function (notification) {
118
- let obj = {
119
- key: self.field + "&" + self.formName,
120
- formName: self.formName,
121
- notification: notification,
122
- };
123
- self.addValidation(obj);
124
- });
125
-
126
- if (this.notifications.length == 0) {
127
- let obj = {
128
- key: self.field + "&" + self.formName,
129
- formName: self.formName,
130
- };
131
- self.removeValidation(obj);
132
- }
133
- },
134
- resetForm: {
135
- handler(form) {
136
- if (form.name == this.formName) this.formDirty = false;
137
- },
138
- deep: true,
139
- },
140
- event: {
141
- handler(event) {
142
- if (event.name == "tagRemoved") {
143
- this.valueLocal = [];
144
-
145
- }
146
- },
147
- deep: true,
148
- },
149
- },
150
- };
151
- </script>
152
-
153
- <style scoped>
154
- .title {
155
- font-size: 14px !important;
156
- font-weight: 400 !important;
157
- color: #0a0a0a;
158
- letter-spacing: 0.5px !important;
159
- }
160
-
161
- .success {
162
- color: #94aa2a;
163
- font-size: 14px;
164
- }
165
-
166
- .invalid {
167
- color: #f0134d;
168
- font-size: 14px;
169
- }
170
- </style>
1
+ <template>
2
+ <div class="form-group">
3
+ <label>
4
+ <span class="title">{{ title }} </span>
5
+ <span class="required" v-if="required">*</span>
6
+ <Tip :field="field" :formName="formName" />
7
+ </label>
8
+ <div class="inner-addon right-addon">
9
+ <i v-if="notifications.length > 0 && formDirty" class="required glyphicon fas fa-exclamation-triangle"></i>
10
+ <date-picker lang="pt-br" :disabled="disabled" :range="range" @confirm="executeConfirm" @change="executeConfirm"
11
+ @clear="close" :confirm="confirm" :confirm-text="confirmText" :format="format" value-type="format"
12
+ :time-picker-options="{
13
+ start: '07:00',
14
+ step: '00:30',
15
+ end: '23:30',
16
+ format: 'HH:mm',
17
+ }" width="100%" :placeholder="placeholder" :type="type" v-model="valueLocal"
18
+ :class="{ 'is-invalid': notifications.length > 0 && formDirty }"></date-picker>
19
+ </div>
20
+
21
+ <div v-if="formDirty">
22
+ <div v-for="message in notifications" :key="message">
23
+ <span class="invalid">{{ message }}</span>
24
+ </div>
25
+ </div>
26
+ </div>
27
+ </template>
28
+
29
+ <script>
30
+ import Tip from "../shared/Tip";
31
+ import DatePicker from "vue2-datepicker";
32
+
33
+ import { mapState, mapMutations, mapGetters } from "vuex";
34
+
35
+ export default {
36
+ components: { Tip, DatePicker },
37
+ name: "Data",
38
+ mixins: [],
39
+ props: [
40
+ "title",
41
+ "field",
42
+ "fieldTarget",
43
+ "placeholder",
44
+ "formName",
45
+ "required",
46
+ "disabled",
47
+ "format",
48
+ "type",
49
+ "value",
50
+ "range",
51
+ "confirm",
52
+ "confirmText",
53
+ "markFormDirty",
54
+ ],
55
+ data() {
56
+ return {
57
+ notifications: [],
58
+ formDirty: false,
59
+ valueLocal: "",
60
+ markFormDirtyLocal: false,
61
+ };
62
+ },
63
+ created() {
64
+ this.validate();
65
+ this.valueLocal = this.value;
66
+
67
+ if (this.markFormDirty == undefined) this.markFormDirtyLocal = true;
68
+ },
69
+ methods: {
70
+ ...mapMutations("validation", [
71
+ "addValidation",
72
+ "removeValidation",
73
+ "updateFormDirty",
74
+ ]),
75
+ ...mapMutations("generic", ["addFilter", "removeTag", "addEvent"]),
76
+ validate() {
77
+ this.notifications = [];
78
+
79
+ if (this.required && this.valueLocal.length == 0) {
80
+ var message = `${this.title} não pode ser vazio!`;
81
+ this.notifications.push(message);
82
+ }
83
+ },
84
+ executeConfirm() {
85
+ if (this.range) {
86
+ if (this.fieldTarget) {
87
+ let obj = {
88
+ fieldTarget: this.fieldTarget,
89
+ value: { start: this.valueLocal[0], end: this.valueLocal[1] },
90
+ };
91
+ this.addFilter(obj);
92
+ }
93
+ }
94
+ },
95
+ close() {
96
+ this.removeTag("period");
97
+ this.addEvent({ name: "tagRemoved", data: "period" });
98
+ },
99
+ },
100
+ computed: {
101
+ ...mapState("validation", ["resetForm", "validations"]),
102
+ ...mapGetters("generic", ["event"]),
103
+ },
104
+ watch: {
105
+ valueLocal() {
106
+ this.validate();
107
+ this.formDirty = true;
108
+ if (this.markFormDirtyLocal) this.updateFormDirty(true);
109
+ this.$emit("input", this.valueLocal);
110
+ },
111
+ value() {
112
+ this.valueLocal = this.value;
113
+ if (this.markFormDirty) this.updateFormDirty(true);
114
+ },
115
+ notifications() {
116
+ let self = this;
117
+ this.notifications.forEach(function (notification) {
118
+ let obj = {
119
+ key: self.field + "&" + self.formName,
120
+ formName: self.formName,
121
+ notification: notification,
122
+ };
123
+ self.addValidation(obj);
124
+ });
125
+
126
+ if (this.notifications.length == 0) {
127
+ let obj = {
128
+ key: self.field + "&" + self.formName,
129
+ formName: self.formName,
130
+ };
131
+ self.removeValidation(obj);
132
+ }
133
+ },
134
+ resetForm: {
135
+ handler(form) {
136
+ if (form.name == this.formName) this.formDirty = false;
137
+ },
138
+ deep: true,
139
+ },
140
+ event: {
141
+ handler(event) {
142
+ if (event.name == "tagRemoved") {
143
+ this.valueLocal = [];
144
+
145
+ }
146
+ },
147
+ deep: true,
148
+ },
149
+ },
150
+ };
151
+ </script>
152
+
153
+ <style scoped>
154
+ .title {
155
+ font-size: 14px !important;
156
+ font-weight: 400 !important;
157
+ color: #0a0a0a;
158
+ letter-spacing: 0.5px !important;
159
+ }
160
+
161
+ .success {
162
+ color: #94aa2a;
163
+ font-size: 14px;
164
+ }
165
+
166
+ .invalid {
167
+ color: #f0134d;
168
+ font-size: 14px;
169
+ }
170
+ </style>