maz-ui 2.3.13 → 2.4.2

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 (237) hide show
  1. package/components/MazArrowIcon.d.ts +43 -0
  2. package/components/MazArrowIcon.js +1 -0
  3. package/components/MazAvatar.d.ts +149 -0
  4. package/components/MazAvatar.js +3 -0
  5. package/components/MazBackdrop.d.ts +89 -0
  6. package/components/MazBackdrop.js +3 -0
  7. package/components/MazBadge.d.ts +68 -0
  8. package/components/MazBadge.js +1 -0
  9. package/components/MazBottomSheet.d.ts +29 -0
  10. package/components/MazBottomSheet.js +3 -0
  11. package/components/MazBtn.d.ts +171 -0
  12. package/components/MazBtn.js +3 -0
  13. package/components/MazCard.d.ts +183 -0
  14. package/components/MazCard.js +3 -0
  15. package/components/MazCarousel.d.ts +16 -0
  16. package/components/MazCarousel.js +3 -0
  17. package/components/MazChart/includes.d.ts +11 -0
  18. package/components/MazChart.d.ts +114 -0
  19. package/components/MazChart.js +1 -0
  20. package/components/MazCheckbox.d.ts +49 -0
  21. package/components/MazCheckbox.js +1 -0
  22. package/components/MazDialog.d.ts +29 -0
  23. package/components/MazDialog.js +3 -0
  24. package/components/MazDialogPromise/use-maz-dialog-promise.d.ts +30 -0
  25. package/components/MazDialogPromise.d.ts +28 -0
  26. package/components/MazDialogPromise.js +3 -0
  27. package/components/MazDrawer.d.ts +59 -0
  28. package/components/MazDrawer.js +3 -0
  29. package/components/MazDropzone.d.ts +128 -0
  30. package/components/MazDropzone.js +3 -0
  31. package/components/MazGallery.d.ts +144 -0
  32. package/components/MazGallery.js +3 -0
  33. package/components/MazIcon.d.ts +66 -0
  34. package/components/MazIcon.js +3 -0
  35. package/components/MazInput.d.ts +276 -0
  36. package/components/MazInput.js +3 -0
  37. package/components/MazInputNumber.d.ts +67 -0
  38. package/components/MazInputNumber.js +3 -0
  39. package/components/MazInputPrice.d.ts +64 -0
  40. package/components/MazInputPrice.js +3 -0
  41. package/components/MazInputTags.d.ts +96 -0
  42. package/components/MazInputTags.js +3 -0
  43. package/components/MazLazyImg.d.ts +80 -0
  44. package/components/MazLazyImg.js +3 -0
  45. package/components/MazPhoneNumberInput/constantes/locales.d.ts +12 -0
  46. package/components/MazPhoneNumberInput/types.d.ts +21 -0
  47. package/components/MazPhoneNumberInput/utils/countries-name-list-by-iso-code.d.ts +2 -0
  48. package/components/MazPhoneNumberInput/utils/index.d.ts +12 -0
  49. package/components/MazPhoneNumberInput.d.ts +255 -0
  50. package/components/MazPhoneNumberInput.js +3 -0
  51. package/components/MazPicker/MazPickerCalendar.vue.d.ts +137 -0
  52. package/components/MazPicker/MazPickerCalendarMonth/MazPickerCalendarDays.vue.d.ts +22 -0
  53. package/components/MazPicker/MazPickerCalendarMonth/MazPickerCalendarGrid.vue.d.ts +114 -0
  54. package/components/MazPicker/MazPickerCalendarMonth/MazPickerCalendarMonth.vue.d.ts +124 -0
  55. package/components/MazPicker/MazPickerCalendarSwitcher.vue.d.ts +38 -0
  56. package/components/MazPicker/MazPickerContainer.vue.d.ts +212 -0
  57. package/components/MazPicker/MazPickerHeader.vue.d.ts +84 -0
  58. package/components/MazPicker/MazPickerMonthSwitcher.vue.d.ts +43 -0
  59. package/components/MazPicker/MazPickerShortcuts.vue.d.ts +62 -0
  60. package/components/MazPicker/MazPickerTime.vue.d.ts +129 -0
  61. package/components/MazPicker/MazPickerYearSwitcher.vue.d.ts +35 -0
  62. package/components/MazPicker/types.d.ts +15 -0
  63. package/components/MazPicker/utils.d.ts +54 -0
  64. package/components/MazPicker.d.ts +313 -0
  65. package/components/MazPicker.js +3 -0
  66. package/components/MazRadioButtons.d.ts +69 -0
  67. package/components/MazRadioButtons.js +1 -0
  68. package/components/MazSelect.d.ts +176 -0
  69. package/components/MazSelect.js +3 -0
  70. package/components/MazSlider/utils.d.ts +15 -0
  71. package/components/MazSlider.d.ts +96 -0
  72. package/components/MazSlider.js +3 -0
  73. package/components/MazSpinner.d.ts +30 -0
  74. package/components/MazSpinner.js +1 -0
  75. package/components/MazStepper.d.ts +73 -0
  76. package/components/MazStepper.js +1 -0
  77. package/components/MazSwitch.d.ts +56 -0
  78. package/components/MazSwitch.js +1 -0
  79. package/components/MazTabsBar.d.ts +49 -0
  80. package/components/MazTabsBar.js +3 -0
  81. package/components/MazTabsContent.d.ts +16 -0
  82. package/components/MazTabsContent.js +1 -0
  83. package/components/MazTabsContentItem.d.ts +14 -0
  84. package/components/MazTabsContentItem.js +3 -0
  85. package/components/MazTextarea/textarea-autogrow.d.ts +9 -0
  86. package/components/MazTextarea.d.ts +125 -0
  87. package/components/MazTextarea.js +1 -0
  88. package/components/MazTransitionExpand.d.ts +4 -0
  89. package/components/MazTransitionExpand.js +1 -0
  90. package/components/index.d.ts +34 -0
  91. package/components/index.js +36 -0
  92. package/components/no_photo-a72545e4.js +1 -0
  93. package/components/types.d.ts +17 -0
  94. package/css/aos.css +1 -0
  95. package/css/main.css +1 -0
  96. package/maz-ui.d.ts +307 -0
  97. package/modules/index.js +3 -0
  98. package/modules/no_photo-a72545e4.js +1 -0
  99. package/package.json +145 -81
  100. package/tailwindcss/tailwind.config.js +65 -0
  101. package/tailwindcss/utils/colors.js +28 -0
  102. package/tailwindcss/variables/breakpoints.js +15 -0
  103. package/tailwindcss/variables/colors.js +44 -0
  104. package/tailwindcss/variables/utilities.js +20 -0
  105. package/tailwindcss/variables/z-indexes.js +15 -0
  106. package/LICENSE +0 -21
  107. package/README.md +0 -66
  108. package/bin/index.js +0 -63
  109. package/bin/lib/_constantes/default-colors.js +0 -69
  110. package/bin/lib/index.d.ts +0 -2
  111. package/bin/lib/index.js +0 -145
  112. package/bin/lib/methods/generate-root-css.js +0 -49
  113. package/bin/lib/methods/get-theme-settings.js +0 -58
  114. package/bin/lib/methods/set-css-vars.js +0 -11
  115. package/lib/css/base.css +0 -1
  116. package/lib/css/index.css +0 -1
  117. package/lib/css/maz-avatar.css +0 -1
  118. package/lib/css/maz-bottom-sheet.css +0 -1
  119. package/lib/css/maz-btn-group.css +0 -1
  120. package/lib/css/maz-btn.css +0 -0
  121. package/lib/css/maz-card.css +0 -1
  122. package/lib/css/maz-carousel.css +0 -1
  123. package/lib/css/maz-checkbox.css +0 -1
  124. package/lib/css/maz-collapse.css +0 -1
  125. package/lib/css/maz-dialog.css +0 -1
  126. package/lib/css/maz-draggable-list.css +0 -1
  127. package/lib/css/maz-dropdown.css +0 -1
  128. package/lib/css/maz-dropzone.css +0 -1
  129. package/lib/css/maz-flex.css +0 -0
  130. package/lib/css/maz-gallery.css +0 -0
  131. package/lib/css/maz-img.css +0 -1
  132. package/lib/css/maz-input-tags.css +0 -1
  133. package/lib/css/maz-input.css +0 -0
  134. package/lib/css/maz-list-item.css +0 -1
  135. package/lib/css/maz-list.css +0 -1
  136. package/lib/css/maz-loader.css +0 -0
  137. package/lib/css/maz-pagination.css +0 -1
  138. package/lib/css/maz-phone-number-input.css +0 -1
  139. package/lib/css/maz-picker.css +0 -1
  140. package/lib/css/maz-plotly.css +0 -0
  141. package/lib/css/maz-progress-bar.css +0 -1
  142. package/lib/css/maz-radio.css +0 -1
  143. package/lib/css/maz-read-more.css +0 -1
  144. package/lib/css/maz-responsive-menu.css +0 -1
  145. package/lib/css/maz-search.css +0 -1
  146. package/lib/css/maz-select.css +0 -0
  147. package/lib/css/maz-sidebar.css +0 -1
  148. package/lib/css/maz-slider.css +0 -1
  149. package/lib/css/maz-spinner.css +0 -0
  150. package/lib/css/maz-stepper.css +0 -1
  151. package/lib/css/maz-switch.css +0 -1
  152. package/lib/css/maz-tabs-bar.css +0 -1
  153. package/lib/css/maz-tabs-content-item.css +0 -1
  154. package/lib/css/maz-tabs-content.css +0 -1
  155. package/lib/css/maz-transition-expand.css +0 -0
  156. package/lib/index.d.ts +0 -1
  157. package/lib/index.js +0 -1
  158. package/lib/maz-avatar.d.ts +0 -3
  159. package/lib/maz-avatar.js +0 -430
  160. package/lib/maz-bottom-sheet.d.ts +0 -3
  161. package/lib/maz-bottom-sheet.js +0 -1045
  162. package/lib/maz-btn-group.d.ts +0 -3
  163. package/lib/maz-btn-group.js +0 -907
  164. package/lib/maz-btn.d.ts +0 -3
  165. package/lib/maz-btn.js +0 -764
  166. package/lib/maz-card.d.ts +0 -3
  167. package/lib/maz-card.js +0 -572
  168. package/lib/maz-carousel.d.ts +0 -3
  169. package/lib/maz-carousel.js +0 -569
  170. package/lib/maz-checkbox.d.ts +0 -3
  171. package/lib/maz-checkbox.js +0 -359
  172. package/lib/maz-collapse.d.ts +0 -3
  173. package/lib/maz-collapse.js +0 -1238
  174. package/lib/maz-dialog.d.ts +0 -3
  175. package/lib/maz-dialog.js +0 -1315
  176. package/lib/maz-draggable-list.d.ts +0 -3
  177. package/lib/maz-draggable-list.js +0 -439
  178. package/lib/maz-dropdown.d.ts +0 -3
  179. package/lib/maz-dropdown.js +0 -438
  180. package/lib/maz-dropzone.d.ts +0 -3
  181. package/lib/maz-dropzone.js +0 -664
  182. package/lib/maz-flex.d.ts +0 -3
  183. package/lib/maz-flex.js +0 -427
  184. package/lib/maz-gallery.d.ts +0 -3
  185. package/lib/maz-gallery.js +0 -672
  186. package/lib/maz-img.d.ts +0 -3
  187. package/lib/maz-img.js +0 -612
  188. package/lib/maz-input-tags.d.ts +0 -3
  189. package/lib/maz-input-tags.js +0 -1207
  190. package/lib/maz-input.d.ts +0 -3
  191. package/lib/maz-input.js +0 -1076
  192. package/lib/maz-list-item.d.ts +0 -3
  193. package/lib/maz-list-item.js +0 -304
  194. package/lib/maz-list.d.ts +0 -3
  195. package/lib/maz-list.js +0 -331
  196. package/lib/maz-loader.d.ts +0 -3
  197. package/lib/maz-loader.js +0 -304
  198. package/lib/maz-pagination.d.ts +0 -3
  199. package/lib/maz-pagination.js +0 -1414
  200. package/lib/maz-phone-number-input.d.ts +0 -3
  201. package/lib/maz-phone-number-input.js +0 -3776
  202. package/lib/maz-picker.d.ts +0 -3
  203. package/lib/maz-picker.js +0 -6474
  204. package/lib/maz-plotly.d.ts +0 -3
  205. package/lib/maz-plotly.js +0 -500
  206. package/lib/maz-progress-bar.d.ts +0 -3
  207. package/lib/maz-progress-bar.js +0 -398
  208. package/lib/maz-radio.d.ts +0 -3
  209. package/lib/maz-radio.js +0 -358
  210. package/lib/maz-read-more.d.ts +0 -3
  211. package/lib/maz-read-more.js +0 -344
  212. package/lib/maz-responsive-menu.d.ts +0 -3
  213. package/lib/maz-responsive-menu.js +0 -438
  214. package/lib/maz-search.d.ts +0 -3
  215. package/lib/maz-search.js +0 -1590
  216. package/lib/maz-select.d.ts +0 -3
  217. package/lib/maz-select.js +0 -2740
  218. package/lib/maz-sidebar.d.ts +0 -3
  219. package/lib/maz-sidebar.js +0 -815
  220. package/lib/maz-slider.d.ts +0 -3
  221. package/lib/maz-slider.js +0 -1014
  222. package/lib/maz-spinner.d.ts +0 -3
  223. package/lib/maz-spinner.js +0 -328
  224. package/lib/maz-stepper.d.ts +0 -3
  225. package/lib/maz-stepper.js +0 -1011
  226. package/lib/maz-switch.d.ts +0 -3
  227. package/lib/maz-switch.js +0 -375
  228. package/lib/maz-tabs-bar.d.ts +0 -3
  229. package/lib/maz-tabs-bar.js +0 -428
  230. package/lib/maz-tabs-content-item.d.ts +0 -3
  231. package/lib/maz-tabs-content-item.js +0 -376
  232. package/lib/maz-tabs-content.d.ts +0 -3
  233. package/lib/maz-tabs-content.js +0 -367
  234. package/lib/maz-transition-expand.d.ts +0 -3
  235. package/lib/maz-transition-expand.js +0 -328
  236. package/lib/maz-ui.common.d.ts +0 -1
  237. package/lib/maz-ui.common.js +0 -17202
package/lib/maz-dialog.js DELETED
@@ -1,1315 +0,0 @@
1
- module.exports =
2
- /******/ (function(modules) { // webpackBootstrap
3
- /******/ // The module cache
4
- /******/ var installedModules = {};
5
- /******/
6
- /******/ // The require function
7
- /******/ function __webpack_require__(moduleId) {
8
- /******/
9
- /******/ // Check if module is in cache
10
- /******/ if(installedModules[moduleId]) {
11
- /******/ return installedModules[moduleId].exports;
12
- /******/ }
13
- /******/ // Create a new module (and put it into the cache)
14
- /******/ var module = installedModules[moduleId] = {
15
- /******/ i: moduleId,
16
- /******/ l: false,
17
- /******/ exports: {}
18
- /******/ };
19
- /******/
20
- /******/ // Execute the module function
21
- /******/ modules[moduleId].call(module.exports, module, module.exports, __webpack_require__);
22
- /******/
23
- /******/ // Flag the module as loaded
24
- /******/ module.l = true;
25
- /******/
26
- /******/ // Return the exports of the module
27
- /******/ return module.exports;
28
- /******/ }
29
- /******/
30
- /******/
31
- /******/ // expose the modules object (__webpack_modules__)
32
- /******/ __webpack_require__.m = modules;
33
- /******/
34
- /******/ // expose the module cache
35
- /******/ __webpack_require__.c = installedModules;
36
- /******/
37
- /******/ // define getter function for harmony exports
38
- /******/ __webpack_require__.d = function(exports, name, getter) {
39
- /******/ if(!__webpack_require__.o(exports, name)) {
40
- /******/ Object.defineProperty(exports, name, { enumerable: true, get: getter });
41
- /******/ }
42
- /******/ };
43
- /******/
44
- /******/ // define __esModule on exports
45
- /******/ __webpack_require__.r = function(exports) {
46
- /******/ if(typeof Symbol !== 'undefined' && Symbol.toStringTag) {
47
- /******/ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
48
- /******/ }
49
- /******/ Object.defineProperty(exports, '__esModule', { value: true });
50
- /******/ };
51
- /******/
52
- /******/ // create a fake namespace object
53
- /******/ // mode & 1: value is a module id, require it
54
- /******/ // mode & 2: merge all properties of value into the ns
55
- /******/ // mode & 4: return value when already ns object
56
- /******/ // mode & 8|1: behave like require
57
- /******/ __webpack_require__.t = function(value, mode) {
58
- /******/ if(mode & 1) value = __webpack_require__(value);
59
- /******/ if(mode & 8) return value;
60
- /******/ if((mode & 4) && typeof value === 'object' && value && value.__esModule) return value;
61
- /******/ var ns = Object.create(null);
62
- /******/ __webpack_require__.r(ns);
63
- /******/ Object.defineProperty(ns, 'default', { enumerable: true, value: value });
64
- /******/ if(mode & 2 && typeof value != 'string') for(var key in value) __webpack_require__.d(ns, key, function(key) { return value[key]; }.bind(null, key));
65
- /******/ return ns;
66
- /******/ };
67
- /******/
68
- /******/ // getDefaultExport function for compatibility with non-harmony modules
69
- /******/ __webpack_require__.n = function(module) {
70
- /******/ var getter = module && module.__esModule ?
71
- /******/ function getDefault() { return module['default']; } :
72
- /******/ function getModuleExports() { return module; };
73
- /******/ __webpack_require__.d(getter, 'a', getter);
74
- /******/ return getter;
75
- /******/ };
76
- /******/
77
- /******/ // Object.prototype.hasOwnProperty.call
78
- /******/ __webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); };
79
- /******/
80
- /******/ // __webpack_public_path__
81
- /******/ __webpack_require__.p = "/dist/";
82
- /******/
83
- /******/
84
- /******/ // Load entry module and return exports
85
- /******/ return __webpack_require__(__webpack_require__.s = 35);
86
- /******/ })
87
- /************************************************************************/
88
- /******/ ({
89
-
90
- /***/ 0:
91
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
92
-
93
- "use strict";
94
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return normalizeComponent; });
95
- /* globals __VUE_SSR_CONTEXT__ */
96
-
97
- // IMPORTANT: Do NOT use ES2015 features in this file (except for modules).
98
- // This module is a runtime utility for cleaner component module output and will
99
- // be included in the final webpack user bundle.
100
-
101
- function normalizeComponent (
102
- scriptExports,
103
- render,
104
- staticRenderFns,
105
- functionalTemplate,
106
- injectStyles,
107
- scopeId,
108
- moduleIdentifier, /* server only */
109
- shadowMode /* vue-cli only */
110
- ) {
111
- // Vue.extend constructor export interop
112
- var options = typeof scriptExports === 'function'
113
- ? scriptExports.options
114
- : scriptExports
115
-
116
- // render functions
117
- if (render) {
118
- options.render = render
119
- options.staticRenderFns = staticRenderFns
120
- options._compiled = true
121
- }
122
-
123
- // functional template
124
- if (functionalTemplate) {
125
- options.functional = true
126
- }
127
-
128
- // scopedId
129
- if (scopeId) {
130
- options._scopeId = 'data-v-' + scopeId
131
- }
132
-
133
- var hook
134
- if (moduleIdentifier) { // server build
135
- hook = function (context) {
136
- // 2.3 injection
137
- context =
138
- context || // cached call
139
- (this.$vnode && this.$vnode.ssrContext) || // stateful
140
- (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional
141
- // 2.2 with runInNewContext: true
142
- if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {
143
- context = __VUE_SSR_CONTEXT__
144
- }
145
- // inject component styles
146
- if (injectStyles) {
147
- injectStyles.call(this, context)
148
- }
149
- // register component module identifier for async chunk inferrence
150
- if (context && context._registeredComponents) {
151
- context._registeredComponents.add(moduleIdentifier)
152
- }
153
- }
154
- // used by ssr in case component is cached and beforeCreate
155
- // never gets called
156
- options._ssrRegister = hook
157
- } else if (injectStyles) {
158
- hook = shadowMode
159
- ? function () {
160
- injectStyles.call(
161
- this,
162
- (options.functional ? this.parent : this).$root.$options.shadowRoot
163
- )
164
- }
165
- : injectStyles
166
- }
167
-
168
- if (hook) {
169
- if (options.functional) {
170
- // for template-only hot-reload because in that case the render fn doesn't
171
- // go through the normalizer
172
- options._injectStyles = hook
173
- // register for functional component in vue file
174
- var originalRender = options.render
175
- options.render = function renderWithStyleInjection (h, context) {
176
- hook.call(context)
177
- return originalRender(h, context)
178
- }
179
- } else {
180
- // inject component registration as beforeCreate hook
181
- var existing = options.beforeCreate
182
- options.beforeCreate = existing
183
- ? [].concat(existing, hook)
184
- : [hook]
185
- }
186
- }
187
-
188
- return {
189
- exports: scriptExports,
190
- options: options
191
- }
192
- }
193
-
194
-
195
- /***/ }),
196
-
197
- /***/ 1:
198
- /***/ (function(module, exports, __webpack_require__) {
199
-
200
- module.exports = __webpack_require__(9);
201
-
202
-
203
- /***/ }),
204
-
205
- /***/ 12:
206
- /***/ (function(module, exports) {
207
-
208
- module.exports = require("v-click-outside");
209
-
210
- /***/ }),
211
-
212
- /***/ 2:
213
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
214
-
215
- "use strict";
216
- /* harmony default export */ __webpack_exports__["a"] = ({
217
- data: function data() {
218
- return {
219
- uniqueId: null
220
- };
221
- },
222
- mounted: function mounted() {
223
- var id = this.id || this.$attrs.id;
224
- this.uniqueId = id ? "".concat(id) : "".concat(this.$options.name, "-").concat(this._uid);
225
- }
226
- });
227
-
228
- /***/ }),
229
-
230
- /***/ 35:
231
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
232
-
233
- "use strict";
234
- // ESM COMPAT FLAG
235
- __webpack_require__.r(__webpack_exports__);
236
-
237
- // CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./packages/components/MazDialog/_main.vue?vue&type=template&id=0553327c&
238
- var render = function () {
239
- var _vm = this
240
- var _h = _vm.$createElement
241
- var _c = _vm._self._c || _h
242
- return _c(
243
- "transition",
244
- {
245
- attrs: { name: "maz-dialog-fade" },
246
- on: { "after-enter": _vm.afterEnter, "after-leave": _vm.afterLeave },
247
- },
248
- [
249
- _vm.value
250
- ? _c(
251
- "div",
252
- {
253
- staticClass: "maz-base-component maz-dialog maz-dialog--mask",
254
- class: {
255
- "maz-dialog--success": _vm.success,
256
- "maz-dialog--danger": _vm.danger,
257
- "maz-dialog--fullsize": _vm.fullsize,
258
- "maz-is-dark": _vm.dark,
259
- },
260
- },
261
- [
262
- _c(
263
- "div",
264
- {
265
- staticClass: "maz-dialog__wrapper maz-flex maz-align-center",
266
- },
267
- [
268
- _c(
269
- "div",
270
- {
271
- directives: [
272
- {
273
- name: "click-outside",
274
- rawName: "v-click-outside",
275
- value: _vm.vcoConfig,
276
- expression: "vcoConfig",
277
- },
278
- ],
279
- staticClass:
280
- "maz-dialog__container maz-dialog-animation maz-elevation maz-flex maz-direction-column maz-bg-color maz-border-radius",
281
- style: _vm.widthStyle,
282
- },
283
- [
284
- !_vm.noHeader
285
- ? _c(
286
- "div",
287
- {
288
- staticClass:
289
- "maz-dialog__header maz-flex maz-space-between maz-align-center maz-p-3",
290
- },
291
- [
292
- _vm._t("title", function () {
293
- return [
294
- _c(
295
- "p",
296
- {
297
- staticClass: "maz-dialog__header__title",
298
- },
299
- [
300
- _vm._v(
301
- "\n " +
302
- _vm._s(_vm.title) +
303
- "\n "
304
- ),
305
- ]
306
- ),
307
- ]
308
- }),
309
- !_vm.noClose
310
- ? _c(
311
- "div",
312
- {
313
- staticClass: "maz-flex close-modal",
314
- on: {
315
- click: function ($event) {
316
- return _vm.$emit("input", false)
317
- },
318
- },
319
- },
320
- [
321
- _c(
322
- "i",
323
- { staticClass: "material-icons" },
324
- [
325
- _vm._v(
326
- "\n close\n "
327
- ),
328
- ]
329
- ),
330
- ]
331
- )
332
- : _vm._e(),
333
- ],
334
- 2
335
- )
336
- : _vm._e(),
337
- _c(
338
- "div",
339
- {
340
- staticClass:
341
- "maz-dialog__body maz-p-3 maz-text-color",
342
- },
343
- [
344
- _vm._t("default", function () {
345
- return [_c("p", [_vm._v("Content")])]
346
- }),
347
- ],
348
- 2
349
- ),
350
- !_vm.noFooter
351
- ? _c(
352
- "div",
353
- {
354
- staticClass:
355
- "maz-dialog__footer maz-flex maz-align-end maz-justify-end maz-p-3",
356
- },
357
- [
358
- _vm._t("footer", function () {
359
- return [
360
- _c(
361
- "MazBtn",
362
- {
363
- attrs: {
364
- color: "default",
365
- outline: "",
366
- size: "md",
367
- },
368
- on: { click: _vm.closeDialog },
369
- },
370
- [
371
- _vm._v(
372
- "\n Close\n "
373
- ),
374
- ]
375
- ),
376
- !_vm.noConfirm
377
- ? _c(
378
- "MazBtn",
379
- {
380
- staticClass: "maz-ml-3",
381
- attrs: {
382
- size: "md",
383
- color: _vm.buttonConfirmColor,
384
- },
385
- on: {
386
- click: function ($event) {
387
- return _vm.onConfirm($event)
388
- },
389
- },
390
- },
391
- [
392
- _vm._v(
393
- "\n Confirm\n "
394
- ),
395
- ]
396
- )
397
- : _vm._e(),
398
- ]
399
- }),
400
- ],
401
- 2
402
- )
403
- : _vm._e(),
404
- ]
405
- ),
406
- ]
407
- ),
408
- ]
409
- )
410
- : _vm._e(),
411
- ]
412
- )
413
- }
414
- var staticRenderFns = []
415
- render._withStripped = true
416
-
417
-
418
- // CONCATENATED MODULE: ./packages/components/MazDialog/_main.vue?vue&type=template&id=0553327c&
419
-
420
- // EXTERNAL MODULE: ./node_modules/@babel/runtime/regenerator/index.js
421
- var regenerator = __webpack_require__(1);
422
- var regenerator_default = /*#__PURE__*/__webpack_require__.n(regenerator);
423
-
424
- // EXTERNAL MODULE: external "v-click-outside"
425
- var external_v_click_outside_ = __webpack_require__(12);
426
- var external_v_click_outside_default = /*#__PURE__*/__webpack_require__.n(external_v_click_outside_);
427
-
428
- // EXTERNAL MODULE: ./packages/components/MazBtn/index.js + 5 modules
429
- var MazBtn = __webpack_require__(4);
430
-
431
- // CONCATENATED MODULE: ./node_modules/babel-loader/lib!./node_modules/vue-loader/lib??vue-loader-options!./packages/components/MazDialog/_main.vue?vue&type=script&lang=js&
432
-
433
-
434
- function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) { try { var info = gen[key](arg); var value = info.value; } catch (error) { reject(error); return; } if (info.done) { resolve(value); } else { Promise.resolve(value).then(_next, _throw); } }
435
-
436
- function _asyncToGenerator(fn) { return function () { var self = this, args = arguments; return new Promise(function (resolve, reject) { var gen = fn.apply(self, args); function _next(value) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, "next", value); } function _throw(err) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, "throw", err); } _next(undefined); }); }; }
437
-
438
- //
439
- //
440
- //
441
- //
442
- //
443
- //
444
- //
445
- //
446
- //
447
- //
448
- //
449
- //
450
- //
451
- //
452
- //
453
- //
454
- //
455
- //
456
- //
457
- //
458
- //
459
- //
460
- //
461
- //
462
- //
463
- //
464
- //
465
- //
466
- //
467
- //
468
- //
469
- //
470
- //
471
- //
472
- //
473
- //
474
- //
475
- //
476
- //
477
- //
478
- //
479
- //
480
- //
481
- //
482
- //
483
- //
484
- //
485
- //
486
- //
487
- //
488
- //
489
- //
490
- //
491
- //
492
- //
493
- //
494
- //
495
- //
496
- //
497
- //
498
- //
499
- //
500
- //
501
- //
502
- //
503
- //
504
- //
505
- //
506
- //
507
- //
508
- //
509
- //
510
- //
511
- //
512
- //
513
- //
514
- //
515
- //
516
- //
517
- //
518
- //
519
- //
520
- //
521
- //
522
- //
523
-
524
-
525
-
526
- var addListerner = function addListerner(keyPressHandler) {
527
- if (typeof window === 'undefined') return null;
528
- window.addEventListener('keydown', keyPressHandler);
529
- };
530
-
531
- var removeListerner = function removeListerner(keyPressHandler) {
532
- if (typeof window === 'undefined') return null;
533
- window.removeEventListener('keydown', keyPressHandler);
534
- };
535
-
536
- /* harmony default export */ var _mainvue_type_script_lang_js_ = ({
537
- name: 'MazDialog',
538
- components: {
539
- MazBtn: MazBtn["default"]
540
- },
541
- directives: {
542
- clickOutside: external_v_click_outside_default.a.directive
543
- },
544
- props: {
545
- // `true` if dialog is open / `false` if is close
546
- value: {
547
- type: Boolean,
548
- required: true
549
- },
550
- // is the `max-width` of the dialog (number in pixels)
551
- maxWidth: {
552
- type: [Number || String],
553
- default: null
554
- },
555
- // is the `width` of the dialog (number in pixels)
556
- width: {
557
- type: [Number || String],
558
- default: null
559
- },
560
- // if is `true`, is not possible to close he dialog with a click outside
561
- persistent: {
562
- type: Boolean,
563
- default: false
564
- },
565
- // remove the header
566
- noHeader: {
567
- type: Boolean,
568
- default: false
569
- },
570
- // remove the footer
571
- noFooter: {
572
- type: Boolean,
573
- default: false
574
- },
575
- // remove the close button
576
- noClose: {
577
- type: Boolean,
578
- default: false
579
- },
580
- // remove the confirm button
581
- noConfirm: {
582
- type: Boolean,
583
- default: false
584
- },
585
- // add "success" style to the dialog
586
- success: {
587
- type: Boolean,
588
- default: false
589
- },
590
- // add "danger" style to the dialog
591
- danger: {
592
- type: Boolean,
593
- default: false
594
- },
595
- // add "dark" style to the dialog
596
- dark: {
597
- type: Boolean,
598
- default: false
599
- },
600
- // exclude elements classes (elements sometimes can close the dialog)
601
- excludedClasses: {
602
- type: Array,
603
- default: Array
604
- },
605
- // make dialog fullsize
606
- fullsize: {
607
- type: Boolean,
608
- default: false
609
- },
610
- // title of the dialog
611
- title: {
612
- type: String,
613
- default: 'Header title'
614
- }
615
- },
616
- computed: {
617
- widthStyle: function widthStyle() {
618
- var fullsize = this.fullsize,
619
- maxWidth = this.maxWidth,
620
- width = this.width;
621
- return {
622
- maxWidth: fullsize & !maxWidth ? null : Number.isInteger(maxWidth) ? "".concat(maxWidth, "px") : maxWidth,
623
- width: fullsize && !width ? null : Number.isInteger(width) ? "".concat(width, "px") : width
624
- };
625
- },
626
- buttonConfirmColor: function buttonConfirmColor() {
627
- return this.danger ? 'danger' : this.success ? 'success' : 'primary';
628
- },
629
- vcoConfig: function vcoConfig() {
630
- return {
631
- handler: this.closeDialog,
632
- middleware: this.preventClickOutside,
633
- events: ['click'],
634
- isActive: !this.fullsize
635
- };
636
- }
637
- },
638
- watch: {
639
- value: {
640
- handler: function handler(value) {
641
- var _this = this;
642
-
643
- return _asyncToGenerator( /*#__PURE__*/regenerator_default.a.mark(function _callee() {
644
- return regenerator_default.a.wrap(function _callee$(_context) {
645
- while (1) {
646
- switch (_context.prev = _context.next) {
647
- case 0:
648
- if (!value) {
649
- _context.next = 6;
650
- break;
651
- }
652
-
653
- addListerner(_this.keyPressHandler);
654
- _context.next = 4;
655
- return _this.$nextTick();
656
-
657
- case 4:
658
- _context.next = 7;
659
- break;
660
-
661
- case 6:
662
- removeListerner(_this.keyPressHandler);
663
-
664
- case 7:
665
- case "end":
666
- return _context.stop();
667
- }
668
- }
669
- }, _callee);
670
- }))();
671
- },
672
- immediate: true
673
- }
674
- },
675
- beforeDestroy: function beforeDestroy() {
676
- removeListerner(this.keyPressHandler);
677
- },
678
- methods: {
679
- keyPressHandler: function keyPressHandler(e) {
680
- if (e.keyCode === 27) {
681
- // escape
682
- this.closeDialog();
683
- }
684
- },
685
- preventClickOutside: function preventClickOutside() {
686
- var excludedClasses = this.excludedClasses;
687
- if (!event && !event.target || !event.target.classList) return true;
688
- var eventClasses = Array.from(event.target.classList);
689
- return !eventClasses.some(function (c) {
690
- return excludedClasses.includes(c);
691
- });
692
- },
693
- closeDialog: function closeDialog() {
694
- if (!this.persistent) {
695
- // sent when dialog is close
696
- // @arg Boolean `false`
697
- this.$emit('input', false);
698
- }
699
- },
700
- afterEnter: function afterEnter(e) {
701
- // sent when after dialog is open
702
- // @arg event
703
- this.$emit('opened', e);
704
- },
705
- afterLeave: function afterLeave(e) {
706
- // sent when after dialog is close
707
- // @arg event
708
- this.$emit('closed', e);
709
- },
710
- onConfirm: function onConfirm(e) {
711
- // sent when you click on confirm button
712
- // @arg event
713
- this.$emit('confirm', e);
714
- }
715
- }
716
- });
717
- // CONCATENATED MODULE: ./packages/components/MazDialog/_main.vue?vue&type=script&lang=js&
718
- /* harmony default export */ var MazDialog_mainvue_type_script_lang_js_ = (_mainvue_type_script_lang_js_);
719
- // EXTERNAL MODULE: ./node_modules/vue-loader/lib/runtime/componentNormalizer.js
720
- var componentNormalizer = __webpack_require__(0);
721
-
722
- // CONCATENATED MODULE: ./packages/components/MazDialog/_main.vue
723
-
724
-
725
-
726
-
727
-
728
- /* normalize component */
729
-
730
- var component = Object(componentNormalizer["a" /* default */])(
731
- MazDialog_mainvue_type_script_lang_js_,
732
- render,
733
- staticRenderFns,
734
- false,
735
- null,
736
- null,
737
- null
738
-
739
- )
740
-
741
- /* hot reload */
742
- if (false) { var api; }
743
- component.options.__file = "packages/components/MazDialog/_main.vue"
744
- /* harmony default export */ var _main = (component.exports);
745
- // CONCATENATED MODULE: ./packages/components/MazDialog/index.js
746
-
747
-
748
- _main.install = function (Vue) {
749
- Vue.component(_main.name, _main);
750
- };
751
-
752
- /* harmony default export */ var MazDialog = __webpack_exports__["default"] = (_main);
753
-
754
- /***/ }),
755
-
756
- /***/ 4:
757
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
758
-
759
- "use strict";
760
- // ESM COMPAT FLAG
761
- __webpack_require__.r(__webpack_exports__);
762
-
763
- // CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./packages/components/MazBtn/_main.vue?vue&type=template&id=247f3a44&
764
- var render = function () {
765
- var _vm = this
766
- var _h = _vm.$createElement
767
- var _c = _vm._self._c || _h
768
- return _c(
769
- _vm.componentType,
770
- _vm._b(
771
- {
772
- tag: "component",
773
- staticClass: "maz-base-component maz-btn maz-inline-flex",
774
- class: [
775
- _vm.classes,
776
- {
777
- "maz-text-hidden": _vm.loading,
778
- },
779
- ],
780
- attrs: {
781
- id: _vm.uniqueId,
782
- type: _vm.isLink ? null : _vm.type,
783
- disabled: _vm.isLink ? null : _vm.isDisabled,
784
- },
785
- on: {
786
- click: function ($event) {
787
- return _vm.handleClick($event)
788
- },
789
- mouseenter: function ($event) {
790
- return _vm.emitMouseEnter($event)
791
- },
792
- mouseleave: function ($event) {
793
- return _vm.emitMouseLeave($event)
794
- },
795
- focus: function ($event) {
796
- return _vm.emitFocus($event)
797
- },
798
- blur: function ($event) {
799
- return _vm.emitBlur($event)
800
- },
801
- },
802
- },
803
- "component",
804
- _vm.$attrs,
805
- false
806
- ),
807
- [
808
- _vm.hasLeftIcon() || _vm.hasMainIcon()
809
- ? _c(
810
- "div",
811
- {
812
- staticClass: "maz-flex maz-flex-center maz-btn__icon-left",
813
- class: {
814
- "maz-mr-2": !_vm.fab && _vm.hasSlotDefault(),
815
- },
816
- },
817
- [
818
- _vm._t("icon-left" || false, function () {
819
- return [
820
- _c("i", { staticClass: "material-icons" }, [
821
- _vm._v(_vm._s(_vm.leftIconName || _vm.iconName)),
822
- ]),
823
- ]
824
- }),
825
- ],
826
- 2
827
- )
828
- : _vm._e(),
829
- _c(
830
- "span",
831
- {
832
- staticClass:
833
- "maz-flex maz-align-center maz-h-100 maz-overflow-hidden",
834
- class: [_vm.textClasses, { "maz-flex-1": _vm.hasSlotDefault() }],
835
- },
836
- [_vm._t("default")],
837
- 2
838
- ),
839
- _vm.hasRightIcon()
840
- ? _c(
841
- "div",
842
- {
843
- staticClass: "maz-flex maz-flex-center maz-btn__icon-right",
844
- class: {
845
- "maz-ml-2": !_vm.fab && _vm.hasSlotDefault(),
846
- },
847
- },
848
- [
849
- _vm._t("icon-right", function () {
850
- return [
851
- _c("i", { staticClass: "material-icons" }, [
852
- _vm._v(_vm._s(_vm.rightIconName)),
853
- ]),
854
- ]
855
- }),
856
- ],
857
- 2
858
- )
859
- : _vm._e(),
860
- _vm.loading
861
- ? _c(
862
- "div",
863
- { staticClass: "maz-btn__spinner maz-flex maz-flex-center" },
864
- [_c("MazSpinner", { attrs: { size: 25, color: _vm.color } })],
865
- 1
866
- )
867
- : _vm._e(),
868
- ]
869
- )
870
- }
871
- var staticRenderFns = []
872
- render._withStripped = true
873
-
874
-
875
- // CONCATENATED MODULE: ./packages/components/MazBtn/_main.vue?vue&type=template&id=247f3a44&
876
-
877
- // EXTERNAL MODULE: ./packages/components/MazSpinner/index.js + 5 modules
878
- var MazSpinner = __webpack_require__(5);
879
-
880
- // EXTERNAL MODULE: ./packages/mixins/uniqueId.js
881
- var uniqueId = __webpack_require__(2);
882
-
883
- // CONCATENATED MODULE: ./node_modules/babel-loader/lib!./node_modules/vue-loader/lib??vue-loader-options!./packages/components/MazBtn/_main.vue?vue&type=script&lang=js&
884
- function _toConsumableArray(arr) { return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableSpread(); }
885
-
886
- function _nonIterableSpread() { throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
887
-
888
- function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
889
-
890
- function _iterableToArray(iter) { if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter); }
891
-
892
- function _arrayWithoutHoles(arr) { if (Array.isArray(arr)) return _arrayLikeToArray(arr); }
893
-
894
- function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) { arr2[i] = arr[i]; } return arr2; }
895
-
896
- //
897
- //
898
- //
899
- //
900
- //
901
- //
902
- //
903
- //
904
- //
905
- //
906
- //
907
- //
908
- //
909
- //
910
- //
911
- //
912
- //
913
- //
914
- //
915
- //
916
- //
917
- //
918
- //
919
- //
920
- //
921
- //
922
- //
923
- //
924
- //
925
- //
926
- //
927
- //
928
- //
929
- //
930
- //
931
- //
932
- //
933
- //
934
- //
935
- //
936
- //
937
- //
938
- //
939
- //
940
- //
941
- //
942
- //
943
- //
944
- //
945
- //
946
- //
947
- //
948
- //
949
- //
950
- //
951
- //
952
- //
953
- //
954
- //
955
- //
956
- //
957
- //
958
- //
959
- //
960
- //
961
- //
962
- //
963
-
964
-
965
- /**
966
- * > Simple button component
967
- */
968
-
969
- /* harmony default export */ var _mainvue_type_script_lang_js_ = ({
970
- name: 'MazBtn',
971
- components: {
972
- MazSpinner: MazSpinner["default"]
973
- },
974
- mixins: [uniqueId["a" /* default */]],
975
- inheritAttrs: false,
976
- props: {
977
- // is the id of the button
978
- id: {
979
- type: String,
980
- default: null
981
- },
982
- // is color type (`primary` / `secondary` / `third` / `success` / `danger` / `grey` / `info` / `warning` / `light` / `dark` / `default` / `white` / `black`)
983
- color: {
984
- type: String,
985
- default: 'primary'
986
- },
987
- // is the button type (button, submit or something else)
988
- type: {
989
- type: String,
990
- default: 'button'
991
- },
992
- // button size (`xl`, `lg` / `md` / `sm` / `mini`)
993
- size: {
994
- type: String,
995
- default: 'md'
996
- },
997
- // is a `boolean` to show the loader & disable it
998
- loading: {
999
- type: Boolean,
1000
- default: false
1001
- },
1002
- // is a `boolean` to disable the button
1003
- disabled: {
1004
- type: Boolean,
1005
- default: false
1006
- },
1007
- // apply the outline style
1008
- outline: {
1009
- type: Boolean,
1010
- default: false
1011
- },
1012
- // apply the rounded style
1013
- rounded: {
1014
- type: Boolean,
1015
- default: false
1016
- },
1017
- // apply the fab style
1018
- fab: {
1019
- type: Boolean,
1020
- default: false
1021
- },
1022
- // apply the focus style
1023
- active: {
1024
- type: Boolean,
1025
- default: false
1026
- },
1027
- // take 100% of the width
1028
- block: {
1029
- type: Boolean,
1030
- default: false
1031
- },
1032
- // remove shadow/elevation
1033
- noShadow: {
1034
- type: Boolean,
1035
- default: false
1036
- },
1037
- // should be a [material icon](https://material.io/resources/icons/) name (usefull with fab buttons)
1038
- iconName: {
1039
- type: String,
1040
- default: null
1041
- },
1042
- // should be a [material icon](https://material.io/resources/icons/) name
1043
- leftIconName: {
1044
- type: String,
1045
- default: null
1046
- },
1047
- // should be a [material icon](https://material.io/resources/icons/) name
1048
- rightIconName: {
1049
- type: String,
1050
- default: null
1051
- },
1052
- // align text to left (for block button)
1053
- justifyStart: {
1054
- type: Boolean,
1055
- default: false
1056
- },
1057
- // align text to right (for block button)
1058
- justifyEnd: {
1059
- type: Boolean,
1060
- default: false
1061
- }
1062
- },
1063
- computed: {
1064
- componentType: function componentType() {
1065
- var _this$$attrs = this.$attrs,
1066
- href = _this$$attrs.href,
1067
- to = _this$$attrs.to;
1068
- if (href) return 'a';else if (to) return 'router-link';
1069
- return 'button';
1070
- },
1071
- isLink: function isLink() {
1072
- return this.componentType === 'a';
1073
- },
1074
- isDisabled: function isDisabled() {
1075
- var disabled = this.disabled,
1076
- loading = this.loading;
1077
- return loading || disabled;
1078
- },
1079
- classes: function classes() {
1080
- var color = this.color,
1081
- size = this.size,
1082
- outline = this.outline,
1083
- rounded = this.rounded,
1084
- fab = this.fab,
1085
- active = this.active,
1086
- block = this.block,
1087
- noShadow = this.noShadow,
1088
- hasRightIcon = this.hasRightIcon,
1089
- hasLeftIcon = this.hasLeftIcon,
1090
- hasIcon = this.hasIcon,
1091
- hasSlotDefault = this.hasSlotDefault;
1092
- return [].concat(_toConsumableArray(color ? ["maz-btn--".concat(color)] : [null]), _toConsumableArray(size ? ["maz-btn--".concat(size)] : [null]), _toConsumableArray(outline ? ['maz-btn--outline'] : [null]), _toConsumableArray(rounded ? ['maz-btn--rounded'] : [null]), _toConsumableArray(block ? ['maz-btn--block'] : [null]), _toConsumableArray(fab ? ['maz-btn--fab'] : [null]), _toConsumableArray(active ? ['maz-active'] : [null]), _toConsumableArray(noShadow ? ['maz-no-shadow'] : [null]), _toConsumableArray(hasLeftIcon() ? ['maz-btn--icon--left'] : [null]), _toConsumableArray(hasRightIcon() ? ['maz-btn--icon--right'] : [null]), _toConsumableArray(hasIcon() ? ['maz-btn--icon'] : [null]), _toConsumableArray(!hasSlotDefault() ? ['maz-btn--no-text'] : [null]));
1093
- },
1094
- textClasses: function textClasses() {
1095
- var justifyStart = this.justifyStart,
1096
- justifyEnd = this.justifyEnd;
1097
- return [].concat(_toConsumableArray(justifyStart ? ['maz-justify-start'] : [null]), _toConsumableArray(justifyEnd ? ['maz-justify-end'] : [null]), _toConsumableArray(!justifyStart && !justifyEnd ? ['maz-justify-center'] : [null]));
1098
- }
1099
- },
1100
- methods: {
1101
- hasSlotDefault: function hasSlotDefault() {
1102
- return this.$slots['default'];
1103
- },
1104
- hasIcon: function hasIcon() {
1105
- return this.hasLeftIcon() || this.hasRightIcon() || this.hasMainIcon();
1106
- },
1107
- hasMainIcon: function hasMainIcon() {
1108
- return this.iconName || this.$slots['icon'];
1109
- },
1110
- hasLeftIcon: function hasLeftIcon() {
1111
- return this.leftIconName || this.$slots['icon-left'];
1112
- },
1113
- hasRightIcon: function hasRightIcon() {
1114
- return this.rightIconName || this.$slots['icon-right'];
1115
- },
1116
- handleClick: function handleClick(e) {
1117
- // return click event
1118
- this.$emit('click', e);
1119
- },
1120
- emitMouseEnter: function emitMouseEnter(e) {
1121
- // return mouseenter event
1122
- this.$emit('mouseenter', e);
1123
- },
1124
- emitMouseLeave: function emitMouseLeave(e) {
1125
- // return mouseleave event
1126
- this.$emit('mouseleave', e);
1127
- },
1128
- emitFocus: function emitFocus(e) {
1129
- // return focus event
1130
- this.$emit('focus', e);
1131
- },
1132
- emitBlur: function emitBlur(e) {
1133
- // return blur event
1134
- this.$emit('blur', e);
1135
- }
1136
- }
1137
- });
1138
- // CONCATENATED MODULE: ./packages/components/MazBtn/_main.vue?vue&type=script&lang=js&
1139
- /* harmony default export */ var MazBtn_mainvue_type_script_lang_js_ = (_mainvue_type_script_lang_js_);
1140
- // EXTERNAL MODULE: ./node_modules/vue-loader/lib/runtime/componentNormalizer.js
1141
- var componentNormalizer = __webpack_require__(0);
1142
-
1143
- // CONCATENATED MODULE: ./packages/components/MazBtn/_main.vue
1144
-
1145
-
1146
-
1147
-
1148
-
1149
- /* normalize component */
1150
-
1151
- var component = Object(componentNormalizer["a" /* default */])(
1152
- MazBtn_mainvue_type_script_lang_js_,
1153
- render,
1154
- staticRenderFns,
1155
- false,
1156
- null,
1157
- null,
1158
- null
1159
-
1160
- )
1161
-
1162
- /* hot reload */
1163
- if (false) { var api; }
1164
- component.options.__file = "packages/components/MazBtn/_main.vue"
1165
- /* harmony default export */ var _main = (component.exports);
1166
- // CONCATENATED MODULE: ./packages/components/MazBtn/index.js
1167
-
1168
-
1169
- _main.install = function (Vue) {
1170
- Vue.component(_main.name, _main);
1171
- };
1172
-
1173
- /* harmony default export */ var MazBtn = __webpack_exports__["default"] = (_main);
1174
-
1175
- /***/ }),
1176
-
1177
- /***/ 5:
1178
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
1179
-
1180
- "use strict";
1181
- // ESM COMPAT FLAG
1182
- __webpack_require__.r(__webpack_exports__);
1183
-
1184
- // CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./packages/components/MazSpinner/_main.vue?vue&type=template&id=67a8ca41&
1185
- var render = function () {
1186
- var _vm = this
1187
- var _h = _vm.$createElement
1188
- var _c = _vm._self._c || _h
1189
- return _c(
1190
- "svg",
1191
- {
1192
- staticClass: "maz-base-component maz-spinner maz-spinner-anim",
1193
- class: [
1194
- {
1195
- "spinner-anim__white": _vm.dark,
1196
- },
1197
- _vm.fillColorClass,
1198
- ],
1199
- staticStyle: { "enable-background": "new 0 0 50 50" },
1200
- attrs: {
1201
- width: _vm.size + "px",
1202
- height: _vm.size + "px",
1203
- version: "1.1",
1204
- xmlns: "http://www.w3.org/2000/svg",
1205
- x: "0px",
1206
- y: "0px",
1207
- viewBox: "0 0 50 50",
1208
- "xml:space": "preserve",
1209
- },
1210
- },
1211
- [
1212
- _c("path", {
1213
- attrs: {
1214
- d: "M43.935,25.145c0-10.318-8.364-18.683-18.683-18.683c-10.318,0-18.683,8.365-18.683,18.683h4.068c0-8.071,6.543-14.615,14.615-14.615c8.072,0,14.615,6.543,14.615,14.615H43.935z",
1215
- },
1216
- }),
1217
- ]
1218
- )
1219
- }
1220
- var staticRenderFns = []
1221
- render._withStripped = true
1222
-
1223
-
1224
- // CONCATENATED MODULE: ./packages/components/MazSpinner/_main.vue?vue&type=template&id=67a8ca41&
1225
-
1226
- // CONCATENATED MODULE: ./node_modules/babel-loader/lib!./node_modules/vue-loader/lib??vue-loader-options!./packages/components/MazSpinner/_main.vue?vue&type=script&lang=js&
1227
- //
1228
- //
1229
- //
1230
- //
1231
- //
1232
- //
1233
- //
1234
- //
1235
- //
1236
- //
1237
- //
1238
- //
1239
- //
1240
- //
1241
- //
1242
- //
1243
- //
1244
- //
1245
- //
1246
- //
1247
- /* harmony default export */ var _mainvue_type_script_lang_js_ = ({
1248
- name: 'MazSpinner',
1249
- props: {
1250
- size: {
1251
- type: Number,
1252
- default: 40
1253
- },
1254
- dark: {
1255
- type: Boolean,
1256
- default: false
1257
- },
1258
- color: {
1259
- type: String,
1260
- default: 'primary'
1261
- }
1262
- },
1263
- computed: {
1264
- fillColorClass: function fillColorClass() {
1265
- return "maz-fill-".concat(this.color);
1266
- }
1267
- }
1268
- });
1269
- // CONCATENATED MODULE: ./packages/components/MazSpinner/_main.vue?vue&type=script&lang=js&
1270
- /* harmony default export */ var MazSpinner_mainvue_type_script_lang_js_ = (_mainvue_type_script_lang_js_);
1271
- // EXTERNAL MODULE: ./node_modules/vue-loader/lib/runtime/componentNormalizer.js
1272
- var componentNormalizer = __webpack_require__(0);
1273
-
1274
- // CONCATENATED MODULE: ./packages/components/MazSpinner/_main.vue
1275
-
1276
-
1277
-
1278
-
1279
-
1280
- /* normalize component */
1281
-
1282
- var component = Object(componentNormalizer["a" /* default */])(
1283
- MazSpinner_mainvue_type_script_lang_js_,
1284
- render,
1285
- staticRenderFns,
1286
- false,
1287
- null,
1288
- null,
1289
- null
1290
-
1291
- )
1292
-
1293
- /* hot reload */
1294
- if (false) { var api; }
1295
- component.options.__file = "packages/components/MazSpinner/_main.vue"
1296
- /* harmony default export */ var _main = (component.exports);
1297
- // CONCATENATED MODULE: ./packages/components/MazSpinner/index.js
1298
-
1299
-
1300
- _main.install = function (Vue) {
1301
- Vue.component(_main.name, _main);
1302
- };
1303
-
1304
- /* harmony default export */ var MazSpinner = __webpack_exports__["default"] = (_main);
1305
-
1306
- /***/ }),
1307
-
1308
- /***/ 9:
1309
- /***/ (function(module, exports) {
1310
-
1311
- module.exports = require("regenerator-runtime");
1312
-
1313
- /***/ })
1314
-
1315
- /******/ });