@nixweb/nixloc-ui 0.0.300 → 0.0.301

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 (158) hide show
  1. package/package.json +1 -1
  2. package/src/App.vue +13 -0
  3. package/src/component/forms/Button.vue +163 -0
  4. package/src/component/forms/ButtonFilter.vue +75 -0
  5. package/src/component/forms/ButtonGroup.vue +67 -0
  6. package/src/component/forms/ButtonSub.vue +98 -0
  7. package/src/component/forms/ButtonToggle.vue +77 -0
  8. package/src/component/forms/CheckboxGroup.vue +69 -0
  9. package/src/component/forms/CheckboxServer.vue +192 -0
  10. package/src/component/forms/CheckboxSimple.vue +60 -0
  11. package/src/component/forms/Color.vue +38 -0
  12. package/src/component/forms/DateTime.vue +170 -0
  13. package/src/component/forms/DateYearMonth.vue +193 -0
  14. package/src/component/forms/Dropdown.vue +236 -0
  15. package/src/component/forms/EditorHtml.vue +132 -0
  16. package/src/component/forms/FileUpload.vue +170 -0
  17. package/src/component/forms/ImageUpload.vue +214 -0
  18. package/src/component/forms/IncrementDecrement.vue +148 -0
  19. package/src/component/forms/InputAddressGoogle.vue +171 -0
  20. package/src/component/forms/InputCallToAction.vue +135 -0
  21. package/src/component/forms/InputDecimal.vue +153 -0
  22. package/src/component/forms/InputDecimalDiscount.vue +78 -0
  23. package/src/component/forms/InputNumber.vue +160 -0
  24. package/src/component/forms/InputPassword.vue +148 -0
  25. package/src/component/forms/InputTag.vue +125 -0
  26. package/src/component/forms/InputText.vue +174 -0
  27. package/src/component/forms/InputTextEdit.vue +69 -0
  28. package/src/component/forms/InputWhatsApp.vue +48 -0
  29. package/src/component/forms/Modal.vue +57 -0
  30. package/src/component/forms/RadioGroup.vue +91 -0
  31. package/src/component/forms/Select.vue +378 -0
  32. package/src/component/forms/SelectStatic.vue +198 -0
  33. package/src/component/forms/SideBar.vue +100 -0
  34. package/src/component/forms/Slider.vue +18 -0
  35. package/src/component/forms/TextArea.vue +138 -0
  36. package/src/component/forms/Toggle.vue +72 -0
  37. package/src/component/layout/Account.vue +131 -0
  38. package/src/component/layout/Alert.vue +88 -0
  39. package/src/component/layout/Badge.vue +111 -0
  40. package/src/component/layout/BarFloating.vue +68 -0
  41. package/src/component/layout/FixedBar.vue +103 -0
  42. package/src/component/layout/Gantt.vue +128 -0
  43. package/src/component/layout/Header.vue +56 -0
  44. package/src/component/layout/HideShow.vue +62 -0
  45. package/src/component/layout/IconMolded.vue +59 -0
  46. package/src/component/layout/LoadingFullPage.vue +27 -0
  47. package/src/component/layout/Menu.vue +287 -0
  48. package/src/component/layout/Molded.vue +30 -0
  49. package/src/component/layout/NewAccount.vue +136 -0
  50. package/src/component/layout/NewHeader.vue +60 -0
  51. package/src/component/layout/NewIconMolded.vue +71 -0
  52. package/src/component/layout/NewMenu.vue +456 -0
  53. package/src/component/layout/Panel.vue +185 -0
  54. package/src/component/layout/Popover.vue +126 -0
  55. package/src/component/layout/ScrollBar.vue +57 -0
  56. package/src/component/layout/Tab.vue +135 -0
  57. package/src/component/layout/Tag.vue +97 -0
  58. package/src/component/layout/Wizard.vue +211 -0
  59. package/src/component/rental/DisplayCalculatePeriod.vue +49 -0
  60. package/src/component/rental/DisplayPeriodRent.vue +55 -0
  61. package/src/component/rental/DisplayTotalization.vue +86 -0
  62. package/src/component/report/Fields.vue +109 -0
  63. package/src/component/report/Report.vue +314 -0
  64. package/src/component/report/ReportTable.vue +112 -0
  65. package/src/component/report/Totalization.vue +34 -0
  66. package/src/component/shared/CodeEditor.vue +128 -0
  67. package/src/component/shared/Collapse.vue +131 -0
  68. package/src/component/shared/Confirmation.vue +74 -0
  69. package/src/component/shared/DocumentEditor.vue +99 -0
  70. package/src/component/shared/DocumentPreview.vue +81 -0
  71. package/src/component/shared/DocumentPublic.vue +33 -0
  72. package/src/component/shared/ExportExcel.vue +56 -0
  73. package/src/component/shared/ExportPDF.vue +116 -0
  74. package/src/component/shared/FullCalendar.vue +174 -0
  75. package/src/component/shared/HeaderReport.vue +47 -0
  76. package/src/component/shared/HorizontalFilter.vue +64 -0
  77. package/src/component/shared/ListNotifications.vue +70 -0
  78. package/src/component/shared/Loading.vue +107 -0
  79. package/src/component/shared/LoadingCard.vue +65 -0
  80. package/src/component/shared/LoadingMoreButton.vue +23 -0
  81. package/src/component/shared/Messages.vue +109 -0
  82. package/src/component/shared/PDFViewer.vue +24 -0
  83. package/src/component/shared/Pagination.vue +108 -0
  84. package/src/component/shared/ParameterLegend.vue +169 -0
  85. package/src/component/shared/ProgressBar.vue +25 -0
  86. package/src/component/shared/QueryButton.vue +66 -0
  87. package/src/component/shared/Report.vue +200 -0
  88. package/src/component/shared/SaveCancel.vue +99 -0
  89. package/src/component/shared/Search.vue +174 -0
  90. package/src/component/shared/SelectOption.vue +162 -0
  91. package/src/component/shared/Table.vue +174 -0
  92. package/src/component/shared/TableButton.vue +36 -0
  93. package/src/component/shared/TableDraggable.vue +117 -0
  94. package/src/component/shared/TableImport.vue +93 -0
  95. package/src/component/shared/TableItem.vue +214 -0
  96. package/src/component/shared/TableTotalPerPage.vue +78 -0
  97. package/src/component/shared/TableTotalRecords.vue +44 -0
  98. package/src/component/shared/TableTotalization.vue +47 -0
  99. package/src/component/shared/TimeLine.vue +42 -0
  100. package/src/component/shared/Timer.vue +78 -0
  101. package/src/component/shared/Tip.vue +42 -0
  102. package/src/component/shared/Toast.vue +69 -0
  103. package/src/component/shared/ToggleTheme.vue +128 -0
  104. package/src/component/shared/TotalizationReport.vue +86 -0
  105. package/src/component/shared/VerticalFilter.vue +97 -0
  106. package/src/component/shared/automation/ActivitiesList.vue +44 -0
  107. package/src/component/shared/automation/AddRule.vue +61 -0
  108. package/src/component/shared/automation/AutomationBuilder.vue +27 -0
  109. package/src/component/shared/automation/DynamicComponentList.vue +86 -0
  110. package/src/component/shared/automation/SelectRule.vue +98 -0
  111. package/src/component/shared/automation/components/BillingByRent.vue +98 -0
  112. package/src/component/shared/automation/components/SendEmail.vue +94 -0
  113. package/src/component/shared/file-manager/FileManager.vue +391 -0
  114. package/src/component/shared/filter-builder/FilterBuilder.vue +221 -0
  115. package/src/component/shared/filter-builder/FilterQuery.vue +94 -0
  116. package/src/component/shared/query-builder/AddRule.vue +203 -0
  117. package/src/component/shared/query-builder/ConvertToOdata.js +86 -0
  118. package/src/component/shared/query-builder/DynamicComponent.vue +161 -0
  119. package/src/component/shared/query-builder/DynamicComponentList.vue +70 -0
  120. package/src/component/shared/query-builder/Fields.vue +93 -0
  121. package/src/component/shared/query-builder/QueryBuilder.vue +69 -0
  122. package/src/component/shared/query-builder/Rules.vue +68 -0
  123. package/src/component/shared/query-builder/SelectRule.vue +97 -0
  124. package/src/component/shared/query-builder/Tags.vue +59 -0
  125. package/src/component/shared/query-builder/utilities.js +22 -0
  126. package/src/component/signature/Payment.vue +161 -0
  127. package/src/component/signature/Warning.vue +76 -0
  128. package/src/component/template/ListViewWithDataHandler.vue +429 -0
  129. package/src/component/template/ReportCreateUpdate.vue +110 -0
  130. package/src/component/template/ViewTemplateConfiguration.vue +64 -0
  131. package/src/component/template/ViewTemplateDocumentView.vue +213 -0
  132. package/src/component/template/ViewTemplateImportFile.vue +347 -0
  133. package/src/component/template/ViewTemplateReportList.vue +217 -0
  134. package/src/component/template/ViewTemplateReportPreview.vue +432 -0
  135. package/src/component/template/ViewTemplateSelectOption.vue +46 -0
  136. package/src/component/template/ViewTemplateWithSalveCancel.vue +32 -0
  137. package/src/component/template/ViewTemplateWithTable.vue +62 -0
  138. package/src/component/template/model/Report.js +6 -0
  139. package/src/component/training/Course.vue +344 -0
  140. package/src/component/training/CourseView.vue +190 -0
  141. package/src/component/value-objects/Address.js +11 -0
  142. package/src/component/value-objects/Address.vue +157 -0
  143. package/src/component/value-objects/Contact.js +7 -0
  144. package/src/component/value-objects/Contact.vue +106 -0
  145. package/src/component/value-objects/Person.js +10 -0
  146. package/src/component/value-objects/Person.vue +129 -0
  147. package/src/config/axios.js +9 -0
  148. package/src/config/dicas.js +15 -0
  149. package/src/config/router.js +14 -0
  150. package/src/config/token.js +15 -0
  151. package/src/main.js +23 -0
  152. package/src/store/modules/automation.js +31 -0
  153. package/src/store/modules/generic.js +816 -0
  154. package/src/store/modules/report.js +278 -0
  155. package/src/store/modules/user.js +67 -0
  156. package/src/store/modules/util.js +26 -0
  157. package/src/store/modules/validation.js +39 -0
  158. package/src/store/store.js +14 -0
@@ -0,0 +1,138 @@
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
+
11
+ <textarea :disabled="disabled" rows="4" cols="50" type="text" :placeholder="placeholder" v-bind:value="value"
12
+ v-on:input="$emit('input', $event.target.value)"
13
+ :class="{ 'is-invalid': notifications.length > 0 && formDirty }">
14
+ </textarea>
15
+ </div>
16
+
17
+ <div v-if="formDirty">
18
+ <div v-for="message in notifications" :key="message">
19
+ <span class="invalid">{{ message }}</span>
20
+ </div>
21
+ </div>
22
+ </div>
23
+ </template>
24
+
25
+ <script>
26
+ import Tip from "../shared/Tip.vue";
27
+ import { mapState, mapMutations } from "vuex";
28
+
29
+ export default {
30
+ components: { Tip },
31
+ name: "TextArea",
32
+ props: {
33
+ title: String,
34
+ field: String,
35
+ placeholder: String,
36
+ disabled: Boolean,
37
+ formName: String,
38
+ required: Boolean,
39
+ maxLength: Number,
40
+ value: String,
41
+ },
42
+ data() {
43
+ return {
44
+ notifications: [],
45
+ formDirty: false,
46
+ };
47
+ },
48
+ created() {
49
+ this.validate();
50
+ },
51
+ methods: {
52
+ ...mapMutations("validation", [
53
+ "addValidation",
54
+ "removeValidation",
55
+ "updateFormDirty",
56
+ ]),
57
+ validate() {
58
+ this.notifications = [];
59
+
60
+ if (this.required && this.value.length == 0) {
61
+ var message = `${this.title} não pode ser vazio!`;
62
+ this.notifications.push(message);
63
+ }
64
+
65
+ if (this.maxLength > 0) {
66
+ if (this.value.length > this.maxLength) {
67
+ var message = `Máximo de ${this.maxLength} caracteres!`;
68
+ this.notifications.push(message);
69
+ }
70
+ }
71
+ },
72
+ },
73
+ computed: {
74
+ ...mapState("validation", ["resetForm", "validations"]),
75
+ },
76
+ watch: {
77
+ value() {
78
+ this.validate();
79
+ this.formDirty = true;
80
+ this.updateFormDirty(true);
81
+ },
82
+ notifications() {
83
+ let self = this;
84
+ this.notifications.forEach(function (notification) {
85
+ let obj = {
86
+ key: self.field + "&" + self.formName,
87
+ formName: self.formName,
88
+ notification: notification,
89
+ };
90
+ self.addValidation(obj);
91
+ });
92
+
93
+ if (this.notifications.length == 0) {
94
+ let obj = {
95
+ key: self.field + "&" + self.formName,
96
+ formName: self.formName,
97
+ };
98
+ self.removeValidation(obj);
99
+ }
100
+ },
101
+ resetForm: {
102
+ handler(form) {
103
+ if (form.nome == this.formName) this.formDirty = false;
104
+ },
105
+ deep: true,
106
+ },
107
+ },
108
+ };
109
+ </script>
110
+
111
+ <style scoped>
112
+ textarea {
113
+ width: 100%;
114
+ border: 1px #DBDEE0 solid;
115
+ border-radius: 5px;
116
+ color: #35495E;
117
+ padding-left: 10px;
118
+ padding-right: 10px;
119
+ font-weight: normal !important;
120
+ font-size: 14px;
121
+ }
122
+
123
+ textarea:disabled {
124
+ background-color: white !important;
125
+ opacity: 0.5;
126
+ }
127
+
128
+
129
+ .success {
130
+ color: #94aa2a;
131
+ font-size: 14px;
132
+ }
133
+
134
+ .invalid {
135
+ color: #f0134d;
136
+ font-size: 14px;
137
+ }
138
+ </style>
@@ -0,0 +1,72 @@
1
+ <template>
2
+ <div class="main">
3
+ <b-row>
4
+ <b-col xs="6" sm="6" md="6" lg="6" xl="6">
5
+ <span class="title">
6
+ <i class="toggle-icon" :class="classIcon"></i> {{ title }}
7
+ </span>
8
+ <br />
9
+ </b-col>
10
+ <b-col xs="6" sm="6" md="6" lg="4" xl="4">
11
+ <VueToggles height="23" width="60" checkedText="Sim" uncheckedText="Não" :checkedBg="color"
12
+ uncheckedBg="lightgrey" :disabled="disabled" :value="value" @click="clicked" />
13
+ </b-col>
14
+ </b-row>
15
+ </div>
16
+ </template>
17
+
18
+ <script>
19
+ import VueToggles from "vue-toggles";
20
+
21
+ export default {
22
+ name: "Toggle",
23
+ components: {
24
+ VueToggles,
25
+ },
26
+ props: {
27
+ title: String,
28
+ color: String,
29
+ classIcon: String,
30
+ disabled: {
31
+ type: Boolean,
32
+ default: false,
33
+ },
34
+ params: Object,
35
+ changed: Function,
36
+ value: Boolean,
37
+ },
38
+ data() {
39
+ return {
40
+ valueLocal: false,
41
+ };
42
+ },
43
+ created() {
44
+ this.valueLocal = this.value;
45
+ },
46
+ methods: {
47
+ clicked() {
48
+ this.valueLocal = !this.valueLocal;
49
+ this.$emit("input", this.valueLocal);
50
+ if (this.changed) this.changed(this.params);
51
+ },
52
+ },
53
+ };
54
+ </script>
55
+
56
+ <style scoped>
57
+ .main {
58
+ padding: 5px;
59
+ }
60
+
61
+ .toggle-icon {
62
+ font-size: 14px;
63
+ margin-right: 5px;
64
+ margin-bottom: 2px;
65
+ }
66
+
67
+ .title {
68
+ margin-left: -3px;
69
+ padding-right: 35px;
70
+ margin-bottom: 50px !important;
71
+ }
72
+ </style>
@@ -0,0 +1,131 @@
1
+ <template>
2
+ <div>
3
+ <div class="icon-logout" @click="execute">
4
+ <i class="fa-duotone fa-right-from-bracket"></i>
5
+ </div>
6
+ <div class="profile-container" v-if="hideShow">
7
+ <div class="item-header text-center">
8
+ <span>Conta</span>
9
+ </div>
10
+ <div class="profile-content" v-for="item in items" :key="item.title">
11
+ <div class="item-content" @click="navegateTo(item.routeName)">
12
+ <div class="title-container">
13
+ <span>
14
+ <i :class="item.classIcon"></i>
15
+ <span class="title-profile title-input">{{ item.title }}</span>
16
+ </span>
17
+ </div>
18
+ </div>
19
+ </div>
20
+ <div class="profile-content" @click="execute">
21
+ <div class="item-content">
22
+ <div class="title-container">
23
+ <span>
24
+ <i class="fas fa-sign-in"></i>
25
+ <span class="title-profile title-input">Sair</span>
26
+ </span>
27
+ </div>
28
+ </div>
29
+ </div>
30
+ </div>
31
+ </div>
32
+ </template>
33
+ <script>
34
+ export default {
35
+ name: "Account",
36
+ props: {
37
+ items: [],
38
+ exited: Function,
39
+ },
40
+ data() {
41
+ return {
42
+ hideShow: false,
43
+ };
44
+ },
45
+ methods: {
46
+ navegateTo(routeName) {
47
+ this.$router.push({ name: routeName });
48
+ this.hideShow = false;
49
+ },
50
+ execute() {
51
+ if (this.exited) this.exited();
52
+ },
53
+ },
54
+ };
55
+ </script>
56
+ <style scoped>
57
+ .icon-logout {
58
+ margin-top: -37px;
59
+ padding-right: 18px;
60
+ cursor: pointer;
61
+ position: fixed;
62
+ float: right;
63
+ left: auto;
64
+ right: 0;
65
+ color: white;
66
+ font-size: 20px;
67
+ }
68
+
69
+ img {
70
+ border-radius: 50%;
71
+ height: 40px;
72
+ width: 40px;
73
+ }
74
+
75
+ .profile-container {
76
+ position: fixed;
77
+ float: right;
78
+ left: auto;
79
+ right: 0;
80
+ margin-right: 20px;
81
+ height: 100%;
82
+ z-index: 1000;
83
+ width: 190px;
84
+ margin-top: 26px;
85
+ background-color: white;
86
+ height: auto;
87
+ border-bottom: 1px solid #e9ebec;
88
+ }
89
+
90
+ .profile-content {
91
+ right: 0;
92
+ height: 100%;
93
+ z-index: 101;
94
+ width: 190px;
95
+ height: auto;
96
+ }
97
+
98
+ .item-header {
99
+ padding: 8px 20px;
100
+ background: #f8f8f8;
101
+ border-left: 1px solid #e9ebec;
102
+ border-right: 1px solid #e9ebec;
103
+ border-top: 1px solid #e9ebec;
104
+ }
105
+
106
+ .item-content {
107
+ padding-left: 15px;
108
+ height: 45px;
109
+ background: white;
110
+ border: 1px solid #e9ebec;
111
+ border-bottom: 0px solid #e9ebec;
112
+ cursor: pointer;
113
+ }
114
+
115
+ .item-content:hover {
116
+ background: #f8f8f8;
117
+ }
118
+
119
+ .title-container {
120
+ padding-top: 10px;
121
+ }
122
+
123
+ .title-container:hover {
124
+ padding-top: 10px;
125
+ color: #37597c;
126
+ }
127
+
128
+ .title-profile {
129
+ padding-left: 10px;
130
+ }
131
+ </style>
@@ -0,0 +1,88 @@
1
+ <template>
2
+ <div>
3
+ <div class="warning" :class="{
4
+ 'alert-primary': type === 'primary',
5
+ 'alert-success': type === 'success',
6
+ 'alert-warning': type === 'warning',
7
+ 'alert-info': type === 'info',
8
+ 'alert-danger': type === 'danger',
9
+ }">
10
+ <span v-if="type === 'success'" class="success-icon">
11
+ <i class="fas fa-check-circle"></i>
12
+ </span>
13
+ <span v-if="type === 'danger'" class="danger-icon">
14
+ <i class="fas fa-times-circle"></i></span>
15
+ <span v-if="type === 'warning'" class="warning-icon">
16
+ <i class="fas fa-exclamation-triangle"></i></span>
17
+ <span v-if="type === 'info'" class="info-icon">
18
+ <i class="fas fa-exclamation-circle"></i></span>
19
+ <span class="message">
20
+ <slot></slot>
21
+ </span>
22
+ </div>
23
+ </div>
24
+ </template>
25
+ <script>
26
+ export default {
27
+ name: "Alert",
28
+ props: {
29
+ type: String,
30
+ },
31
+ };
32
+ </script>
33
+ <style scoped>
34
+ .warning {
35
+ box-sizing: border-box;
36
+ margin-bottom: 10px;
37
+ color: rgba(0, 0, 0, 0.65);
38
+ font-size: 14px;
39
+ font-variant: tabular-nums;
40
+ line-height: 1.5;
41
+ list-style: none;
42
+ font-feature-settings: "tnum";
43
+ position: relative;
44
+ padding: 8px 15px 8px 10px;
45
+ word-wrap: break-word;
46
+ border-radius: 4px;
47
+ }
48
+
49
+ .message {
50
+ margin-left: 5px;
51
+ }
52
+
53
+ .alert-success {
54
+ background-color: #f6ffed !important;
55
+ border: 1px solid #b7eb8f !important;
56
+ }
57
+
58
+ .alert-warning {
59
+ background-color: #fffbe6;
60
+ border: 1px solid #ffe58f;
61
+ }
62
+
63
+ .alert-info {
64
+ background-color: #e6f7ff;
65
+ border: 1px solid #91d5ff;
66
+ }
67
+
68
+ .alert-danger {
69
+ background-color: #fff1f0;
70
+ border: 1px solid #ffa39e;
71
+ }
72
+
73
+ .success-icon {
74
+ color: #52c41a;
75
+ }
76
+
77
+ .warning-icon {
78
+ color: #faad14;
79
+ }
80
+
81
+ .info-icon {
82
+ color: #1890ff;
83
+ }
84
+
85
+ .danger-icon {
86
+ color: red;
87
+ }
88
+ </style>
@@ -0,0 +1,111 @@
1
+ <template>
2
+ <div class="side-by-side">
3
+ <div
4
+ class="badge"
5
+ :class="{
6
+ small: size === 'small',
7
+ medium: size === 'medium',
8
+ large: size === 'large',
9
+ blue: type === 'blue',
10
+ primary: type === 'primary',
11
+ success: type === 'success',
12
+ warning: type === 'warning',
13
+ info: type === 'info',
14
+ edit: type === 'edit',
15
+ danger: type === 'danger',
16
+ }"
17
+ >
18
+ <i :class="classIcon"></i> <span>{{ title }}</span>
19
+ </div>
20
+ </div>
21
+ </template>
22
+
23
+ <script>
24
+ export default {
25
+ name: "Badge",
26
+ props: {
27
+ title: String,
28
+ type: String,
29
+ size: String,
30
+ classIcon: String,
31
+ },
32
+ };
33
+ </script>
34
+
35
+ <style scoped>
36
+ .badge {
37
+ margin-left: 10px;
38
+ padding: 8px 12px;
39
+ cursor: pointer;
40
+ border: none;
41
+ border-radius: 5px !important;
42
+ font-size: 14px;
43
+ font-weight: 400;
44
+ -webkit-box-shadow: 0px 10px 20px -6px rgb(0 0 0 / 12%);
45
+ -moz-box-shadow: 0px 10px 20px -6px rgba(0, 0, 0, 0.12);
46
+ box-shadow: 0px 10px 20px -6px rgb(0 0 0 / 12%);
47
+ }
48
+
49
+ .small {
50
+ padding: 5px 10px;
51
+ font-size: 13px;
52
+ }
53
+
54
+ .medium {
55
+ padding: 7px 12px !important;
56
+ font-size: 13px;
57
+ }
58
+
59
+ .large {
60
+ padding: 11px 16px !important;
61
+ font-size: 14px;
62
+ }
63
+
64
+ .disabled {
65
+ background: #bbbbbb !important;
66
+ border-color: #bbbbbb !important;
67
+ color: #fff;
68
+ }
69
+
70
+ .blue {
71
+ background: #007bff;
72
+ border-color: #007bff;
73
+ color: #fff;
74
+ }
75
+
76
+ .primary {
77
+ background: #577696;
78
+ border-color: #577696;
79
+ color: #fff;
80
+ }
81
+
82
+ .success {
83
+ color: #fff;
84
+ background: #38a169;
85
+ border-color: #38a169;
86
+ }
87
+
88
+ .info {
89
+ color: #fff;
90
+ border-color: #4ab4e2;
91
+ background: #4ab4e2;
92
+ }
93
+
94
+ .edit {
95
+ color: #fff;
96
+ border-color: #7b7f83;
97
+ background: #7b7f83;
98
+ }
99
+
100
+ .warning {
101
+ color: #fff;
102
+ border-color: #f1bc31;
103
+ background: #f1bc31;
104
+ }
105
+
106
+ .danger {
107
+ color: #fff;
108
+ border-color: #f0134d;
109
+ background: #f0134d;
110
+ }
111
+ </style>
@@ -0,0 +1,68 @@
1
+ <template>
2
+ <div>
3
+ <transition name="fade">
4
+ <div v-if="showFloating" class="div-fixed footer-bar">
5
+ <slot></slot>
6
+ </div>
7
+ </transition>
8
+ </div>
9
+ </template>
10
+ <script>
11
+ export default {
12
+ name: "BarFloating",
13
+ props: {
14
+ distance: {
15
+ type: Number,
16
+ default: 0,
17
+ }
18
+ },
19
+ data() {
20
+ return {
21
+ showFloating: true,
22
+ }
23
+ },
24
+ mounted() {
25
+ window.addEventListener('scroll', this.checkPosition);
26
+ },
27
+ destroyed() {
28
+ window.removeEventListener('scroll', this.checkPosition);
29
+ },
30
+ methods: {
31
+ checkPosition() {
32
+ if (this.distance == 0) {
33
+ return true;
34
+ }
35
+ else {
36
+ const currentPosition = window.scrollY;
37
+ if (currentPosition > this.distance) {
38
+ this.showFloating = true;
39
+ } else {
40
+ this.showFloating = false;
41
+ }
42
+ }
43
+ }
44
+ }
45
+ }
46
+ </script>
47
+ <style scoped>
48
+ .div-fixed {
49
+ position: fixed;
50
+ top: 90%;
51
+ left: 57%;
52
+ transform: translate(-50%, -50%);
53
+ width: 75%;
54
+ opacity: 1;
55
+ transition: opacity 1s ease;
56
+ z-index: 1000;
57
+ }
58
+
59
+ .fade-enter-active,
60
+ .fade-leave-active {
61
+ transition: opacity 0.5s;
62
+ }
63
+
64
+ .fade-enter,
65
+ .fade-leave-to {
66
+ opacity: 0;
67
+ }
68
+ </style>
@@ -0,0 +1,103 @@
1
+ <template>
2
+ <div>
3
+ <div v-show="!isLoading('panel')" class="bar side-by-side" :style="'min-height:' + height + 'px; background-color:' + backgroundColor
4
+ " :class="{
5
+ top: position == 'top',
6
+ footer: position == 'footer',
7
+ none: position == 'none',
8
+ }">
9
+ <div class="size">
10
+ <div :class="{ 'side-by-side': showButtonClose }">
11
+ <slot></slot>
12
+ </div>
13
+ <div :class="{ 'side-by-side': showButtonClose }" class="close-icon" v-if="position == 'top' && showButtonClose"
14
+ @click="close">
15
+ <i class="fa-regular fa-xmark"></i>
16
+ </div>
17
+ </div>
18
+ </div>
19
+ </div>
20
+ </template>
21
+
22
+ <script>
23
+ import { mapGetters, mapMutations } from "vuex";
24
+
25
+ export default {
26
+ name: "FixedBar",
27
+ props: {
28
+ showButtonClose: {
29
+ type: Boolean,
30
+ default: false,
31
+ },
32
+ position: {
33
+ type: String,
34
+ default: "top",
35
+ },
36
+ height: {
37
+ type: Number,
38
+ default: 70,
39
+ },
40
+ backgroundColor: {
41
+ type: String,
42
+ default: "white",
43
+ },
44
+ },
45
+ computed: {
46
+ ...mapGetters("generic", ["isLoading"]),
47
+ },
48
+ methods: {
49
+ ...mapMutations("generic", ["addEvent"]),
50
+ close() {
51
+ this.addEvent({ name: "closedFixedBar" });
52
+ },
53
+ },
54
+ };
55
+ </script>
56
+
57
+ <style scoped>
58
+ .bar {
59
+ position: fixed;
60
+ width: 100%;
61
+ z-index: 20;
62
+ padding: 18px;
63
+ padding-left: 100px;
64
+ }
65
+
66
+ .size {
67
+ max-width: 1600px;
68
+ margin: auto;
69
+ }
70
+
71
+ .none {
72
+ left: 0;
73
+ right: 0;
74
+ }
75
+
76
+ .top {
77
+ top: 0;
78
+ left: 0;
79
+ right: 0;
80
+ border-bottom: 0px solid #e1e1e2;
81
+ box-shadow: 0px 10px 20px -6px rgb(0 0 0 / 5%);
82
+ border-bottom: 0px solid #eff0f1;
83
+ }
84
+
85
+ .footer {
86
+ left: 0;
87
+ bottom: 0px;
88
+ border-top: 0px solid #e1e1e2;
89
+ box-shadow: 0px 10px 20px -6px rgb(0 0 0 / 5%);
90
+ border-top: 0px solid #eff0f1;
91
+ }
92
+
93
+ .close-icon {
94
+ float: right;
95
+ font-size: 30px;
96
+ font-weight: 400;
97
+ line-height: 1;
98
+ color: #b9babb;
99
+ text-shadow: 0 1px 0 #fff;
100
+ padding-right: 80px;
101
+ cursor: pointer;
102
+ }
103
+ </style>