maz-ui 2.3.10 → 3.0.0-beta.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 (198) hide show
  1. package/dist/cjs/index.js +1 -0
  2. package/dist/cjs/index.js.map +1 -0
  3. package/dist/cjs/no_photo-4ae7c0fa.js +1 -0
  4. package/dist/cjs/no_photo-4ae7c0fa.js.map +1 -0
  5. package/dist/index.js +16 -0
  6. package/dist/index.js.map +1 -0
  7. package/dist/main.css +1454 -0
  8. package/dist/no_photo-a72545e4.js +2 -0
  9. package/dist/no_photo-a72545e4.js.map +1 -0
  10. package/dist/package.json +136 -0
  11. package/dist/types/components/MazArrowIcon.vue.d.ts +37 -0
  12. package/dist/types/components/MazAvatar.vue.d.ts +110 -0
  13. package/dist/types/components/MazBackDrop.vue.d.ts +90 -0
  14. package/dist/types/components/MazBottomSheet.vue.d.ts +31 -0
  15. package/dist/types/components/MazBtn.vue.d.ts +120 -0
  16. package/dist/types/components/MazCard.vue.d.ts +149 -0
  17. package/dist/types/components/MazCheckbox.vue.d.ts +40 -0
  18. package/dist/types/components/MazDialog.vue.d.ts +15 -0
  19. package/dist/types/components/MazDropzone/index.vue.d.ts +90 -0
  20. package/dist/types/components/MazGallery.vue.d.ts +117 -0
  21. package/dist/types/components/MazIcon.vue.d.ts +63 -0
  22. package/dist/types/components/MazInput.vue.d.ts +206 -0
  23. package/dist/types/components/MazInputPrice.vue.d.ts +47 -0
  24. package/dist/types/components/MazLazyImg.vue.d.ts +69 -0
  25. package/dist/types/components/MazPhoneNumberInput/constantes/locales.d.ts +11 -0
  26. package/dist/types/components/MazPhoneNumberInput/index.vue.d.ts +195 -0
  27. package/dist/types/components/MazPhoneNumberInput/types.d.ts +19 -0
  28. package/dist/types/components/MazPhoneNumberInput/utils/countries-name-list-by-iso-code.d.ts +3 -0
  29. package/dist/types/components/MazPhoneNumberInput/utils/index.d.ts +15 -0
  30. package/dist/types/components/MazSelect.vue.d.ts +110 -0
  31. package/dist/types/components/MazSpinner.vue.d.ts +25 -0
  32. package/dist/types/components/MazTransitionExpand.vue.d.ts +4 -0
  33. package/dist/types/components/index.d.ts +18 -0
  34. package/dist/types/components/types.d.ts +50 -0
  35. package/dist/types/components_tmp/MazCalendar/types.d.ts +16 -0
  36. package/dist/types/components_tmp/MazChart/includes.d.ts +11 -0
  37. package/dist/types/components_tmp/MazMap/map-module/create-html-marker.d.ts +18 -0
  38. package/dist/types/components_tmp/MazMap/map-module/map.d.ts +43 -0
  39. package/dist/types/components_tmp/MazMap/map-module/script-loader.d.ts +17 -0
  40. package/dist/types/components_tmp/MazPromiseDialog/use-maz-promise-dialog.d.ts +28 -0
  41. package/dist/types/components_tmp/MazSlider/utils.d.ts +15 -0
  42. package/dist/types/components_tmp/MazTabs/maz-tabs.composable.d.ts +3 -0
  43. package/dist/types/components_tmp/toaster/index.d.ts +3 -0
  44. package/dist/types/components_tmp/toaster/positions.d.ts +8 -0
  45. package/dist/types/components_tmp/toaster/timer.d.ts +11 -0
  46. package/dist/types/components_tmp/toaster/use-toast.d.ts +21 -0
  47. package/dist/types/directives/click-outside.directive.d.ts +10 -0
  48. package/dist/types/directives/closable.directive.d.ts +5 -0
  49. package/dist/types/directives/index.d.ts +4 -0
  50. package/dist/types/directives/v-lazy-img/index.d.ts +9 -0
  51. package/dist/types/directives/v-lazy-img/lazy-img-handler.d.ts +38 -0
  52. package/dist/types/directives/v-lazy-img/lazy-img.directive.d.ts +3 -0
  53. package/dist/types/directives/v-lazy-img/types.d.ts +51 -0
  54. package/dist/types/directives/zoom-img.directive.d.ts +5 -0
  55. package/dist/types/filters/capitalize.d.ts +1 -0
  56. package/dist/types/filters/currency.d.ts +5 -0
  57. package/dist/types/filters/date.d.ts +1 -0
  58. package/dist/types/filters/index.d.ts +5 -0
  59. package/dist/types/filters/number.d.ts +1 -0
  60. package/dist/types/filters/telephone.d.ts +1 -0
  61. package/dist/types/index.d.ts +7 -0
  62. package/dist/types/index.esm.d.ts +8 -0
  63. package/dist/types/utils/debounce.d.ts +7 -0
  64. package/dist/types/utils/index.d.ts +1 -0
  65. package/dist/types/utils/injectStrict.d.ts +1 -0
  66. package/package.json +103 -84
  67. package/LICENSE +0 -21
  68. package/README.md +0 -66
  69. package/bin/index.js +0 -63
  70. package/bin/lib/_constantes/default-colors.js +0 -69
  71. package/bin/lib/index.d.ts +0 -2
  72. package/bin/lib/index.js +0 -145
  73. package/bin/lib/methods/generate-root-css.js +0 -49
  74. package/bin/lib/methods/get-theme-settings.js +0 -58
  75. package/bin/lib/methods/set-css-vars.js +0 -11
  76. package/lib/css/base.css +0 -1
  77. package/lib/css/index.css +0 -1
  78. package/lib/css/maz-avatar.css +0 -1
  79. package/lib/css/maz-bottom-sheet.css +0 -1
  80. package/lib/css/maz-btn-group.css +0 -1
  81. package/lib/css/maz-btn.css +0 -0
  82. package/lib/css/maz-card.css +0 -1
  83. package/lib/css/maz-carousel.css +0 -1
  84. package/lib/css/maz-checkbox.css +0 -1
  85. package/lib/css/maz-collapse.css +0 -1
  86. package/lib/css/maz-dialog.css +0 -1
  87. package/lib/css/maz-draggable-list.css +0 -1
  88. package/lib/css/maz-dropdown.css +0 -1
  89. package/lib/css/maz-dropzone.css +0 -1
  90. package/lib/css/maz-flex.css +0 -0
  91. package/lib/css/maz-gallery.css +0 -0
  92. package/lib/css/maz-img.css +0 -1
  93. package/lib/css/maz-input-tags.css +0 -1
  94. package/lib/css/maz-input.css +0 -0
  95. package/lib/css/maz-list-item.css +0 -1
  96. package/lib/css/maz-list.css +0 -1
  97. package/lib/css/maz-loader.css +0 -0
  98. package/lib/css/maz-pagination.css +0 -1
  99. package/lib/css/maz-phone-number-input.css +0 -1
  100. package/lib/css/maz-picker.css +0 -1
  101. package/lib/css/maz-plotly.css +0 -0
  102. package/lib/css/maz-progress-bar.css +0 -1
  103. package/lib/css/maz-radio.css +0 -1
  104. package/lib/css/maz-read-more.css +0 -1
  105. package/lib/css/maz-responsive-menu.css +0 -1
  106. package/lib/css/maz-search.css +0 -1
  107. package/lib/css/maz-select.css +0 -0
  108. package/lib/css/maz-sidebar.css +0 -1
  109. package/lib/css/maz-slider.css +0 -1
  110. package/lib/css/maz-spinner.css +0 -0
  111. package/lib/css/maz-stepper.css +0 -1
  112. package/lib/css/maz-switch.css +0 -1
  113. package/lib/css/maz-tabs-bar.css +0 -1
  114. package/lib/css/maz-tabs-content-item.css +0 -1
  115. package/lib/css/maz-tabs-content.css +0 -1
  116. package/lib/css/maz-transition-expand.css +0 -0
  117. package/lib/index.d.ts +0 -1
  118. package/lib/index.js +0 -1
  119. package/lib/maz-avatar.d.ts +0 -3
  120. package/lib/maz-avatar.js +0 -430
  121. package/lib/maz-bottom-sheet.d.ts +0 -3
  122. package/lib/maz-bottom-sheet.js +0 -1046
  123. package/lib/maz-btn-group.d.ts +0 -3
  124. package/lib/maz-btn-group.js +0 -908
  125. package/lib/maz-btn.d.ts +0 -3
  126. package/lib/maz-btn.js +0 -765
  127. package/lib/maz-card.d.ts +0 -3
  128. package/lib/maz-card.js +0 -571
  129. package/lib/maz-carousel.d.ts +0 -3
  130. package/lib/maz-carousel.js +0 -569
  131. package/lib/maz-checkbox.d.ts +0 -3
  132. package/lib/maz-checkbox.js +0 -359
  133. package/lib/maz-collapse.d.ts +0 -3
  134. package/lib/maz-collapse.js +0 -1239
  135. package/lib/maz-dialog.d.ts +0 -3
  136. package/lib/maz-dialog.js +0 -1315
  137. package/lib/maz-draggable-list.d.ts +0 -3
  138. package/lib/maz-draggable-list.js +0 -439
  139. package/lib/maz-dropdown.d.ts +0 -3
  140. package/lib/maz-dropdown.js +0 -438
  141. package/lib/maz-dropzone.d.ts +0 -3
  142. package/lib/maz-dropzone.js +0 -664
  143. package/lib/maz-flex.d.ts +0 -3
  144. package/lib/maz-flex.js +0 -427
  145. package/lib/maz-gallery.d.ts +0 -3
  146. package/lib/maz-gallery.js +0 -673
  147. package/lib/maz-img.d.ts +0 -3
  148. package/lib/maz-img.js +0 -613
  149. package/lib/maz-input-tags.d.ts +0 -3
  150. package/lib/maz-input-tags.js +0 -1208
  151. package/lib/maz-input.d.ts +0 -3
  152. package/lib/maz-input.js +0 -1076
  153. package/lib/maz-list-item.d.ts +0 -3
  154. package/lib/maz-list-item.js +0 -304
  155. package/lib/maz-list.d.ts +0 -3
  156. package/lib/maz-list.js +0 -331
  157. package/lib/maz-loader.d.ts +0 -3
  158. package/lib/maz-loader.js +0 -304
  159. package/lib/maz-pagination.d.ts +0 -3
  160. package/lib/maz-pagination.js +0 -1415
  161. package/lib/maz-phone-number-input.d.ts +0 -3
  162. package/lib/maz-phone-number-input.js +0 -3778
  163. package/lib/maz-picker.d.ts +0 -3
  164. package/lib/maz-picker.js +0 -6472
  165. package/lib/maz-plotly.d.ts +0 -3
  166. package/lib/maz-plotly.js +0 -500
  167. package/lib/maz-progress-bar.d.ts +0 -3
  168. package/lib/maz-progress-bar.js +0 -398
  169. package/lib/maz-radio.d.ts +0 -3
  170. package/lib/maz-radio.js +0 -358
  171. package/lib/maz-read-more.d.ts +0 -3
  172. package/lib/maz-read-more.js +0 -344
  173. package/lib/maz-responsive-menu.d.ts +0 -3
  174. package/lib/maz-responsive-menu.js +0 -438
  175. package/lib/maz-search.d.ts +0 -3
  176. package/lib/maz-search.js +0 -1590
  177. package/lib/maz-select.d.ts +0 -3
  178. package/lib/maz-select.js +0 -2743
  179. package/lib/maz-sidebar.d.ts +0 -3
  180. package/lib/maz-sidebar.js +0 -815
  181. package/lib/maz-slider.d.ts +0 -3
  182. package/lib/maz-slider.js +0 -1014
  183. package/lib/maz-spinner.d.ts +0 -3
  184. package/lib/maz-spinner.js +0 -329
  185. package/lib/maz-stepper.d.ts +0 -3
  186. package/lib/maz-stepper.js +0 -1012
  187. package/lib/maz-switch.d.ts +0 -3
  188. package/lib/maz-switch.js +0 -375
  189. package/lib/maz-tabs-bar.d.ts +0 -3
  190. package/lib/maz-tabs-bar.js +0 -428
  191. package/lib/maz-tabs-content-item.d.ts +0 -3
  192. package/lib/maz-tabs-content-item.js +0 -376
  193. package/lib/maz-tabs-content.d.ts +0 -3
  194. package/lib/maz-tabs-content.js +0 -367
  195. package/lib/maz-transition-expand.d.ts +0 -3
  196. package/lib/maz-transition-expand.js +0 -328
  197. package/lib/maz-ui.common.d.ts +0 -1
  198. package/lib/maz-ui.common.js +0 -17200
@@ -1,908 +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 = 30);
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
- /***/ 2:
198
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
199
-
200
- "use strict";
201
- /* harmony default export */ __webpack_exports__["a"] = ({
202
- data: function data() {
203
- return {
204
- uniqueId: null
205
- };
206
- },
207
- mounted: function mounted() {
208
- var id = this.id || this.$attrs.id;
209
- this.uniqueId = id ? "".concat(id) : "".concat(this.$options.name, "-").concat(this._uid);
210
- }
211
- });
212
-
213
- /***/ }),
214
-
215
- /***/ 30:
216
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
217
-
218
- "use strict";
219
- // ESM COMPAT FLAG
220
- __webpack_require__.r(__webpack_exports__);
221
-
222
- // CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./packages/components/MazBtnGroup/_main.vue?vue&type=template&id=ff748a06&
223
- var render = function() {
224
- var _vm = this
225
- var _h = _vm.$createElement
226
- var _c = _vm._self._c || _h
227
- return _c(
228
- "div",
229
- { staticClass: "maz-base-component maz-btn-group maz-flex" },
230
- _vm._l(_vm.items, function(ref, i) {
231
- var label = ref.label
232
- var val = ref.value
233
- var icon = ref.icon
234
- var rightIcon = ref.rightIcon
235
- var leftIcon = ref.leftIcon
236
- return _c(
237
- "MazBtn",
238
- _vm._b(
239
- {
240
- key: "maz-btn-group-item-" + i,
241
- staticClass: "maz-btn-group__item",
242
- attrs: {
243
- active: val === _vm.value,
244
- "left-icon-name": leftIcon,
245
- "right-icon-name": rightIcon,
246
- "icon-name": icon
247
- },
248
- on: {
249
- click: function($event) {
250
- return _vm.$emit("input", val)
251
- }
252
- }
253
- },
254
- "MazBtn",
255
- _vm.$attrs,
256
- false
257
- ),
258
- [label ? [_vm._v("\n " + _vm._s(label) + "\n ")] : _vm._e()],
259
- 2
260
- )
261
- }),
262
- 1
263
- )
264
- }
265
- var staticRenderFns = []
266
- render._withStripped = true
267
-
268
-
269
- // CONCATENATED MODULE: ./packages/components/MazBtnGroup/_main.vue?vue&type=template&id=ff748a06&
270
-
271
- // EXTERNAL MODULE: ./packages/components/MazBtn/index.js + 5 modules
272
- var MazBtn = __webpack_require__(4);
273
-
274
- // CONCATENATED MODULE: ./node_modules/babel-loader/lib!./node_modules/vue-loader/lib??vue-loader-options!./packages/components/MazBtnGroup/_main.vue?vue&type=script&lang=js&
275
- function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof(obj); }
276
-
277
- //
278
- //
279
- //
280
- //
281
- //
282
- //
283
- //
284
- //
285
- //
286
- //
287
- //
288
- //
289
- //
290
- //
291
- //
292
- //
293
- //
294
- //
295
- //
296
- //
297
-
298
- /* harmony default export */ var _mainvue_type_script_lang_js_ = ({
299
- name: 'MazBtnGroup',
300
- components: {
301
- MazBtn: MazBtn["default"]
302
- },
303
- props: {
304
- value: {
305
- required: true,
306
- validator: function validator(prop) {
307
- return ['string', 'number', 'boolean'].includes(_typeof(prop)) || prop === null;
308
- }
309
- },
310
- items: {
311
- type: Array,
312
- required: true
313
- }
314
- }
315
- });
316
- // CONCATENATED MODULE: ./packages/components/MazBtnGroup/_main.vue?vue&type=script&lang=js&
317
- /* harmony default export */ var MazBtnGroup_mainvue_type_script_lang_js_ = (_mainvue_type_script_lang_js_);
318
- // EXTERNAL MODULE: ./node_modules/vue-loader/lib/runtime/componentNormalizer.js
319
- var componentNormalizer = __webpack_require__(0);
320
-
321
- // CONCATENATED MODULE: ./packages/components/MazBtnGroup/_main.vue
322
-
323
-
324
-
325
-
326
-
327
- /* normalize component */
328
-
329
- var component = Object(componentNormalizer["a" /* default */])(
330
- MazBtnGroup_mainvue_type_script_lang_js_,
331
- render,
332
- staticRenderFns,
333
- false,
334
- null,
335
- null,
336
- null
337
-
338
- )
339
-
340
- /* hot reload */
341
- if (false) { var api; }
342
- component.options.__file = "packages/components/MazBtnGroup/_main.vue"
343
- /* harmony default export */ var _main = (component.exports);
344
- // CONCATENATED MODULE: ./packages/components/MazBtnGroup/index.js
345
-
346
-
347
- _main.install = function (Vue) {
348
- Vue.component(_main.name, _main);
349
- };
350
-
351
- /* harmony default export */ var MazBtnGroup = __webpack_exports__["default"] = (_main);
352
-
353
- /***/ }),
354
-
355
- /***/ 4:
356
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
357
-
358
- "use strict";
359
- // ESM COMPAT FLAG
360
- __webpack_require__.r(__webpack_exports__);
361
-
362
- // 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&
363
- var render = function() {
364
- var _vm = this
365
- var _h = _vm.$createElement
366
- var _c = _vm._self._c || _h
367
- return _c(
368
- _vm.componentType,
369
- _vm._b(
370
- {
371
- tag: "component",
372
- staticClass: "maz-base-component maz-btn maz-inline-flex",
373
- class: [
374
- _vm.classes,
375
- {
376
- "maz-text-hidden": _vm.loading
377
- }
378
- ],
379
- attrs: {
380
- id: _vm.uniqueId,
381
- type: _vm.isLink ? null : _vm.type,
382
- disabled: _vm.isLink ? null : _vm.isDisabled
383
- },
384
- on: {
385
- click: function($event) {
386
- return _vm.handleClick($event)
387
- },
388
- mouseenter: function($event) {
389
- return _vm.emitMouseEnter($event)
390
- },
391
- mouseleave: function($event) {
392
- return _vm.emitMouseLeave($event)
393
- },
394
- focus: function($event) {
395
- return _vm.emitFocus($event)
396
- },
397
- blur: function($event) {
398
- return _vm.emitBlur($event)
399
- }
400
- }
401
- },
402
- "component",
403
- _vm.$attrs,
404
- false
405
- ),
406
- [
407
- _vm.hasLeftIcon() || _vm.hasMainIcon()
408
- ? _c(
409
- "div",
410
- {
411
- staticClass: "maz-flex maz-flex-center maz-btn__icon-left",
412
- class: {
413
- "maz-mr-2": !_vm.fab && _vm.hasSlotDefault()
414
- }
415
- },
416
- [
417
- _vm._t("icon-left" || false, function() {
418
- return [
419
- _c("i", { staticClass: "material-icons" }, [
420
- _vm._v(_vm._s(_vm.leftIconName || _vm.iconName))
421
- ])
422
- ]
423
- })
424
- ],
425
- 2
426
- )
427
- : _vm._e(),
428
- _c(
429
- "span",
430
- {
431
- staticClass:
432
- "maz-flex maz-align-center maz-h-100 maz-overflow-hidden",
433
- class: [_vm.textClasses, { "maz-flex-1": _vm.hasSlotDefault() }]
434
- },
435
- [_vm._t("default")],
436
- 2
437
- ),
438
- _vm.hasRightIcon()
439
- ? _c(
440
- "div",
441
- {
442
- staticClass: "maz-flex maz-flex-center maz-btn__icon-right",
443
- class: {
444
- "maz-ml-2": !_vm.fab && _vm.hasSlotDefault()
445
- }
446
- },
447
- [
448
- _vm._t("icon-right", function() {
449
- return [
450
- _c("i", { staticClass: "material-icons" }, [
451
- _vm._v(_vm._s(_vm.rightIconName))
452
- ])
453
- ]
454
- })
455
- ],
456
- 2
457
- )
458
- : _vm._e(),
459
- _vm.loading
460
- ? _c(
461
- "div",
462
- { staticClass: "maz-btn__spinner maz-flex maz-flex-center" },
463
- [_c("MazSpinner", { attrs: { size: 25, color: _vm.color } })],
464
- 1
465
- )
466
- : _vm._e()
467
- ]
468
- )
469
- }
470
- var staticRenderFns = []
471
- render._withStripped = true
472
-
473
-
474
- // CONCATENATED MODULE: ./packages/components/MazBtn/_main.vue?vue&type=template&id=247f3a44&
475
-
476
- // EXTERNAL MODULE: ./packages/components/MazSpinner/index.js + 5 modules
477
- var MazSpinner = __webpack_require__(5);
478
-
479
- // EXTERNAL MODULE: ./packages/mixins/uniqueId.js
480
- var uniqueId = __webpack_require__(2);
481
-
482
- // 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&
483
- function _toConsumableArray(arr) { return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableSpread(); }
484
-
485
- 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."); }
486
-
487
- 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); }
488
-
489
- function _iterableToArray(iter) { if (typeof Symbol !== "undefined" && Symbol.iterator in Object(iter)) return Array.from(iter); }
490
-
491
- function _arrayWithoutHoles(arr) { if (Array.isArray(arr)) return _arrayLikeToArray(arr); }
492
-
493
- 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; }
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
- //
527
- //
528
- //
529
- //
530
- //
531
- //
532
- //
533
- //
534
- //
535
- //
536
- //
537
- //
538
- //
539
- //
540
- //
541
- //
542
- //
543
- //
544
- //
545
- //
546
- //
547
- //
548
- //
549
- //
550
- //
551
- //
552
- //
553
- //
554
- //
555
- //
556
- //
557
- //
558
- //
559
- //
560
- //
561
- //
562
-
563
-
564
- /**
565
- * > Simple button component
566
- */
567
-
568
- /* harmony default export */ var _mainvue_type_script_lang_js_ = ({
569
- name: 'MazBtn',
570
- components: {
571
- MazSpinner: MazSpinner["default"]
572
- },
573
- mixins: [uniqueId["a" /* default */]],
574
- inheritAttrs: false,
575
- props: {
576
- // is the id of the button
577
- id: {
578
- type: String,
579
- default: null
580
- },
581
- // is color type (`primary` / `secondary` / `third` / `success` / `danger` / `grey` / `info` / `warning` / `light` / `dark` / `default` / `white` / `black`)
582
- color: {
583
- type: String,
584
- default: 'primary'
585
- },
586
- // is the button type (button, submit or something else)
587
- type: {
588
- type: String,
589
- default: 'button'
590
- },
591
- // button size (`xl`, `lg` / `md` / `sm` / `mini`)
592
- size: {
593
- type: String,
594
- default: 'md'
595
- },
596
- // is a `boolean` to show the loader & disable it
597
- loading: {
598
- type: Boolean,
599
- default: false
600
- },
601
- // is a `boolean` to disable the button
602
- disabled: {
603
- type: Boolean,
604
- default: false
605
- },
606
- // apply the outline style
607
- outline: {
608
- type: Boolean,
609
- default: false
610
- },
611
- // apply the rounded style
612
- rounded: {
613
- type: Boolean,
614
- default: false
615
- },
616
- // apply the fab style
617
- fab: {
618
- type: Boolean,
619
- default: false
620
- },
621
- // apply the focus style
622
- active: {
623
- type: Boolean,
624
- default: false
625
- },
626
- // take 100% of the width
627
- block: {
628
- type: Boolean,
629
- default: false
630
- },
631
- // remove shadow/elevation
632
- noShadow: {
633
- type: Boolean,
634
- default: false
635
- },
636
- // should be a [material icon](https://material.io/resources/icons/) name (usefull with fab buttons)
637
- iconName: {
638
- type: String,
639
- default: null
640
- },
641
- // should be a [material icon](https://material.io/resources/icons/) name
642
- leftIconName: {
643
- type: String,
644
- default: null
645
- },
646
- // should be a [material icon](https://material.io/resources/icons/) name
647
- rightIconName: {
648
- type: String,
649
- default: null
650
- },
651
- // align text to left (for block button)
652
- justifyStart: {
653
- type: Boolean,
654
- default: false
655
- },
656
- // align text to right (for block button)
657
- justifyEnd: {
658
- type: Boolean,
659
- default: false
660
- }
661
- },
662
- computed: {
663
- componentType: function componentType() {
664
- var _this$$attrs = this.$attrs,
665
- href = _this$$attrs.href,
666
- to = _this$$attrs.to;
667
- if (href) return 'a';else if (to) return 'router-link';
668
- return 'button';
669
- },
670
- isLink: function isLink() {
671
- return this.componentType === 'a';
672
- },
673
- isDisabled: function isDisabled() {
674
- var disabled = this.disabled,
675
- loading = this.loading;
676
- return loading || disabled;
677
- },
678
- classes: function classes() {
679
- var color = this.color,
680
- size = this.size,
681
- outline = this.outline,
682
- rounded = this.rounded,
683
- fab = this.fab,
684
- active = this.active,
685
- block = this.block,
686
- noShadow = this.noShadow,
687
- hasRightIcon = this.hasRightIcon,
688
- hasLeftIcon = this.hasLeftIcon,
689
- hasIcon = this.hasIcon,
690
- hasSlotDefault = this.hasSlotDefault;
691
- 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]));
692
- },
693
- textClasses: function textClasses() {
694
- var justifyStart = this.justifyStart,
695
- justifyEnd = this.justifyEnd;
696
- return [].concat(_toConsumableArray(justifyStart ? ['maz-justify-start'] : [null]), _toConsumableArray(justifyEnd ? ['maz-justify-end'] : [null]), _toConsumableArray(!justifyStart && !justifyEnd ? ['maz-justify-center'] : [null]));
697
- }
698
- },
699
- methods: {
700
- hasSlotDefault: function hasSlotDefault() {
701
- return this.$slots['default'];
702
- },
703
- hasIcon: function hasIcon() {
704
- return this.hasLeftIcon() || this.hasRightIcon() || this.hasMainIcon();
705
- },
706
- hasMainIcon: function hasMainIcon() {
707
- return this.iconName || this.$slots['icon'];
708
- },
709
- hasLeftIcon: function hasLeftIcon() {
710
- return this.leftIconName || this.$slots['icon-left'];
711
- },
712
- hasRightIcon: function hasRightIcon() {
713
- return this.rightIconName || this.$slots['icon-right'];
714
- },
715
- handleClick: function handleClick(e) {
716
- // return click event
717
- this.$emit('click', e);
718
- },
719
- emitMouseEnter: function emitMouseEnter(e) {
720
- // return mouseenter event
721
- this.$emit('mouseenter', e);
722
- },
723
- emitMouseLeave: function emitMouseLeave(e) {
724
- // return mouseleave event
725
- this.$emit('mouseleave', e);
726
- },
727
- emitFocus: function emitFocus(e) {
728
- // return focus event
729
- this.$emit('focus', e);
730
- },
731
- emitBlur: function emitBlur(e) {
732
- // return blur event
733
- this.$emit('blur', e);
734
- }
735
- }
736
- });
737
- // CONCATENATED MODULE: ./packages/components/MazBtn/_main.vue?vue&type=script&lang=js&
738
- /* harmony default export */ var MazBtn_mainvue_type_script_lang_js_ = (_mainvue_type_script_lang_js_);
739
- // EXTERNAL MODULE: ./node_modules/vue-loader/lib/runtime/componentNormalizer.js
740
- var componentNormalizer = __webpack_require__(0);
741
-
742
- // CONCATENATED MODULE: ./packages/components/MazBtn/_main.vue
743
-
744
-
745
-
746
-
747
-
748
- /* normalize component */
749
-
750
- var component = Object(componentNormalizer["a" /* default */])(
751
- MazBtn_mainvue_type_script_lang_js_,
752
- render,
753
- staticRenderFns,
754
- false,
755
- null,
756
- null,
757
- null
758
-
759
- )
760
-
761
- /* hot reload */
762
- if (false) { var api; }
763
- component.options.__file = "packages/components/MazBtn/_main.vue"
764
- /* harmony default export */ var _main = (component.exports);
765
- // CONCATENATED MODULE: ./packages/components/MazBtn/index.js
766
-
767
-
768
- _main.install = function (Vue) {
769
- Vue.component(_main.name, _main);
770
- };
771
-
772
- /* harmony default export */ var MazBtn = __webpack_exports__["default"] = (_main);
773
-
774
- /***/ }),
775
-
776
- /***/ 5:
777
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
778
-
779
- "use strict";
780
- // ESM COMPAT FLAG
781
- __webpack_require__.r(__webpack_exports__);
782
-
783
- // 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&
784
- var render = function() {
785
- var _vm = this
786
- var _h = _vm.$createElement
787
- var _c = _vm._self._c || _h
788
- return _c(
789
- "svg",
790
- {
791
- staticClass: "maz-base-component maz-spinner maz-spinner-anim",
792
- class: [
793
- {
794
- "spinner-anim__white": _vm.dark
795
- },
796
- _vm.fillColorClass
797
- ],
798
- staticStyle: { "enable-background": "new 0 0 50 50" },
799
- attrs: {
800
- width: _vm.size + "px",
801
- height: _vm.size + "px",
802
- version: "1.1",
803
- xmlns: "http://www.w3.org/2000/svg",
804
- x: "0px",
805
- y: "0px",
806
- viewBox: "0 0 50 50",
807
- "xml:space": "preserve"
808
- }
809
- },
810
- [
811
- _c("path", {
812
- attrs: {
813
- d:
814
- "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"
815
- }
816
- })
817
- ]
818
- )
819
- }
820
- var staticRenderFns = []
821
- render._withStripped = true
822
-
823
-
824
- // CONCATENATED MODULE: ./packages/components/MazSpinner/_main.vue?vue&type=template&id=67a8ca41&
825
-
826
- // 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&
827
- //
828
- //
829
- //
830
- //
831
- //
832
- //
833
- //
834
- //
835
- //
836
- //
837
- //
838
- //
839
- //
840
- //
841
- //
842
- //
843
- //
844
- //
845
- //
846
- //
847
- /* harmony default export */ var _mainvue_type_script_lang_js_ = ({
848
- name: 'MazSpinner',
849
- props: {
850
- size: {
851
- type: Number,
852
- default: 40
853
- },
854
- dark: {
855
- type: Boolean,
856
- default: false
857
- },
858
- color: {
859
- type: String,
860
- default: 'primary'
861
- }
862
- },
863
- computed: {
864
- fillColorClass: function fillColorClass() {
865
- return "maz-fill-".concat(this.color);
866
- }
867
- }
868
- });
869
- // CONCATENATED MODULE: ./packages/components/MazSpinner/_main.vue?vue&type=script&lang=js&
870
- /* harmony default export */ var MazSpinner_mainvue_type_script_lang_js_ = (_mainvue_type_script_lang_js_);
871
- // EXTERNAL MODULE: ./node_modules/vue-loader/lib/runtime/componentNormalizer.js
872
- var componentNormalizer = __webpack_require__(0);
873
-
874
- // CONCATENATED MODULE: ./packages/components/MazSpinner/_main.vue
875
-
876
-
877
-
878
-
879
-
880
- /* normalize component */
881
-
882
- var component = Object(componentNormalizer["a" /* default */])(
883
- MazSpinner_mainvue_type_script_lang_js_,
884
- render,
885
- staticRenderFns,
886
- false,
887
- null,
888
- null,
889
- null
890
-
891
- )
892
-
893
- /* hot reload */
894
- if (false) { var api; }
895
- component.options.__file = "packages/components/MazSpinner/_main.vue"
896
- /* harmony default export */ var _main = (component.exports);
897
- // CONCATENATED MODULE: ./packages/components/MazSpinner/index.js
898
-
899
-
900
- _main.install = function (Vue) {
901
- Vue.component(_main.name, _main);
902
- };
903
-
904
- /* harmony default export */ var MazSpinner = __webpack_exports__["default"] = (_main);
905
-
906
- /***/ })
907
-
908
- /******/ });