@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,57 +1,57 @@
1
- <template>
2
- <div>
3
- <vodal :duration="80" :show="modal.open" @hide="hide()" :width="width" :height="height" :closeOnEsc="closeOnEsc"
4
- :closeButton="closeButton" :closeOnClickMask="false">
5
- <div class="d-block text-left">
6
- <Messages v-if="!vodal.open" />
7
- <div class="title">{{ title }}</div>
8
- <hr class="hr" />
9
- <slot></slot>
10
- </div>
11
- <div slot="modal-footer"></div>
12
- </vodal>
13
- </div>
14
- </template>
15
-
16
- <script>
17
- import Messages from "@nixweb/nixloc-ui/src/component/shared/Messages";
18
- import Vodal from "vodal";
19
-
20
- import { mapState, mapMutations } from "vuex";
21
-
22
- export default {
23
- name: "Modal",
24
- props: {
25
- title: String,
26
- width: Number,
27
- height: Number,
28
- closeOnEsc: {
29
- type: Boolean,
30
- default: true,
31
- },
32
- closeButton: {
33
- type: Boolean,
34
- default: true,
35
- },
36
- onHideModal: Function,
37
- },
38
- components: { Messages, Vodal },
39
- computed: {
40
- ...mapState("generic", ["modal", "vodal"]),
41
- },
42
- methods: {
43
- ...mapMutations("generic", ["hideModal"]),
44
- hide() {
45
- if (this.onHideModal) this.onHideModal();
46
- this.hideModal();
47
- },
48
- },
49
- };
50
- </script>
51
-
52
- <style scoped>
53
- .title {
54
- font-size: 18px;
55
- margin-bottom: 5px;
56
- }
57
- </style>
1
+ <template>
2
+ <div>
3
+ <vodal :duration="80" :show="modal.open" @hide="hide()" :width="width" :height="height" :closeOnEsc="closeOnEsc"
4
+ :closeButton="closeButton" :closeOnClickMask="false">
5
+ <div class="d-block text-left">
6
+ <Messages v-if="!vodal.open" />
7
+ <div class="title">{{ title }}</div>
8
+ <hr class="hr" />
9
+ <slot></slot>
10
+ </div>
11
+ <div slot="modal-footer"></div>
12
+ </vodal>
13
+ </div>
14
+ </template>
15
+
16
+ <script>
17
+ import Messages from "@nixweb/nixloc-ui/src/component/shared/Messages";
18
+ import Vodal from "vodal";
19
+
20
+ import { mapState, mapMutations } from "vuex";
21
+
22
+ export default {
23
+ name: "Modal",
24
+ props: {
25
+ title: String,
26
+ width: Number,
27
+ height: Number,
28
+ closeOnEsc: {
29
+ type: Boolean,
30
+ default: true,
31
+ },
32
+ closeButton: {
33
+ type: Boolean,
34
+ default: true,
35
+ },
36
+ onHideModal: Function,
37
+ },
38
+ components: { Messages, Vodal },
39
+ computed: {
40
+ ...mapState("generic", ["modal", "vodal"]),
41
+ },
42
+ methods: {
43
+ ...mapMutations("generic", ["hideModal"]),
44
+ hide() {
45
+ if (this.onHideModal) this.onHideModal();
46
+ this.hideModal();
47
+ },
48
+ },
49
+ };
50
+ </script>
51
+
52
+ <style scoped>
53
+ .title {
54
+ font-size: 18px;
55
+ margin-bottom: 5px;
56
+ }
57
+ </style>
@@ -1,91 +1,91 @@
1
- <template>
2
- <div>
3
- <span class="title">{{ title }}</span>
4
- <div class="options">
5
- <b-form-group>
6
- <b-form-radio-group v-model="selected" :options="options" :disabled="disabled"
7
- :stacked="stacked"></b-form-radio-group>
8
- </b-form-group>
9
- </div>
10
- </div>
11
- </template>
12
-
13
- <script>
14
- import Tip from "../shared/Tip.vue";
15
-
16
- import { mapMutations, mapGetters } from "vuex";
17
-
18
- export default {
19
- components: { Tip },
20
- name: "options",
21
- props: {
22
- title: String,
23
- options: Array,
24
- initialFieldTarget: String,
25
- fieldTarget: String,
26
- disabled: Boolean,
27
- stacked: Boolean,
28
- markFormDirty: {
29
- type: Boolean,
30
- default: true,
31
- },
32
- changed: Function,
33
- value: Number,
34
- },
35
- data() {
36
- return {
37
- selected: this.value,
38
- };
39
- },
40
- mounted() {
41
- if (this.initialFieldTarget) {
42
- let value = this.initialFieldTarget.value;
43
- let obj = { tag: `${this.title}: ${value}`, fieldTarget: this.fieldTarget, value: value };
44
- this.addFilter(obj);
45
- }
46
- },
47
- computed: {
48
- ...mapGetters("generic", ["event"]),
49
- },
50
- methods: {
51
- ...mapMutations("validation", ["updateFormDirty"]),
52
- ...mapMutations("generic", ["addFilter"]),
53
- },
54
- watch: {
55
- value() {
56
- this.selected = this.value;
57
- },
58
- selected() {
59
- this.$emit("input", this.selected);
60
-
61
- if (this.markFormDirty) this.updateFormDirty(true);
62
- if (this.changed) this.changed();
63
- if (this.fieldTarget) {
64
- let obj = { tag: `${this.title}: ${this.selected}`, fieldTarget: this.fieldTarget, value: this.selected };
65
- this.addFilter(obj);
66
- }
67
- },
68
- event: {
69
- handler(event) {
70
- if (event.name == "tagRemoved") {
71
- if (this.fieldTarget == event.data)
72
- this.$emit("input", "");
73
- }
74
- },
75
- deep: true,
76
- },
77
- },
78
- };
79
- </script>
80
- <style>
81
- .custom-control-label {
82
- font-size: 13px !important;
83
- font-weight: 400 !important;
84
- text-transform: uppercase;
85
- color: #778498;
86
- }
87
-
88
- .options {
89
- margin-top: 5px;
90
- }
91
- </style>
1
+ <template>
2
+ <div>
3
+ <span class="title">{{ title }}</span>
4
+ <div class="options">
5
+ <b-form-group>
6
+ <b-form-radio-group v-model="selected" :options="options" :disabled="disabled"
7
+ :stacked="stacked"></b-form-radio-group>
8
+ </b-form-group>
9
+ </div>
10
+ </div>
11
+ </template>
12
+
13
+ <script>
14
+ import Tip from "../shared/Tip.vue";
15
+
16
+ import { mapMutations, mapGetters } from "vuex";
17
+
18
+ export default {
19
+ components: { Tip },
20
+ name: "options",
21
+ props: {
22
+ title: String,
23
+ options: Array,
24
+ initialFieldTarget: String,
25
+ fieldTarget: String,
26
+ disabled: Boolean,
27
+ stacked: Boolean,
28
+ markFormDirty: {
29
+ type: Boolean,
30
+ default: true,
31
+ },
32
+ changed: Function,
33
+ value: Number,
34
+ },
35
+ data() {
36
+ return {
37
+ selected: this.value,
38
+ };
39
+ },
40
+ mounted() {
41
+ if (this.initialFieldTarget) {
42
+ let value = this.initialFieldTarget.value;
43
+ let obj = { tag: `${this.title}: ${value}`, fieldTarget: this.fieldTarget, value: value };
44
+ this.addFilter(obj);
45
+ }
46
+ },
47
+ computed: {
48
+ ...mapGetters("generic", ["event"]),
49
+ },
50
+ methods: {
51
+ ...mapMutations("validation", ["updateFormDirty"]),
52
+ ...mapMutations("generic", ["addFilter"]),
53
+ },
54
+ watch: {
55
+ value() {
56
+ this.selected = this.value;
57
+ },
58
+ selected() {
59
+ this.$emit("input", this.selected);
60
+
61
+ if (this.markFormDirty) this.updateFormDirty(true);
62
+ if (this.changed) this.changed();
63
+ if (this.fieldTarget) {
64
+ let obj = { tag: `${this.title}: ${this.selected}`, fieldTarget: this.fieldTarget, value: this.selected };
65
+ this.addFilter(obj);
66
+ }
67
+ },
68
+ event: {
69
+ handler(event) {
70
+ if (event.name == "tagRemoved") {
71
+ if (this.fieldTarget == event.data)
72
+ this.$emit("input", "");
73
+ }
74
+ },
75
+ deep: true,
76
+ },
77
+ },
78
+ };
79
+ </script>
80
+ <style>
81
+ .custom-control-label {
82
+ font-size: 13px !important;
83
+ font-weight: 400 !important;
84
+ text-transform: uppercase;
85
+ color: #778498;
86
+ }
87
+
88
+ .options {
89
+ margin-top: 5px;
90
+ }
91
+ </style>