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
package/lib/maz-select.js DELETED
@@ -1,2743 +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 = 16);
86
- /******/ })
87
- /************************************************************************/
88
- /******/ ([
89
- /* 0 */
90
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
91
-
92
- "use strict";
93
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return normalizeComponent; });
94
- /* globals __VUE_SSR_CONTEXT__ */
95
-
96
- // IMPORTANT: Do NOT use ES2015 features in this file (except for modules).
97
- // This module is a runtime utility for cleaner component module output and will
98
- // be included in the final webpack user bundle.
99
-
100
- function normalizeComponent (
101
- scriptExports,
102
- render,
103
- staticRenderFns,
104
- functionalTemplate,
105
- injectStyles,
106
- scopeId,
107
- moduleIdentifier, /* server only */
108
- shadowMode /* vue-cli only */
109
- ) {
110
- // Vue.extend constructor export interop
111
- var options = typeof scriptExports === 'function'
112
- ? scriptExports.options
113
- : scriptExports
114
-
115
- // render functions
116
- if (render) {
117
- options.render = render
118
- options.staticRenderFns = staticRenderFns
119
- options._compiled = true
120
- }
121
-
122
- // functional template
123
- if (functionalTemplate) {
124
- options.functional = true
125
- }
126
-
127
- // scopedId
128
- if (scopeId) {
129
- options._scopeId = 'data-v-' + scopeId
130
- }
131
-
132
- var hook
133
- if (moduleIdentifier) { // server build
134
- hook = function (context) {
135
- // 2.3 injection
136
- context =
137
- context || // cached call
138
- (this.$vnode && this.$vnode.ssrContext) || // stateful
139
- (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional
140
- // 2.2 with runInNewContext: true
141
- if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {
142
- context = __VUE_SSR_CONTEXT__
143
- }
144
- // inject component styles
145
- if (injectStyles) {
146
- injectStyles.call(this, context)
147
- }
148
- // register component module identifier for async chunk inferrence
149
- if (context && context._registeredComponents) {
150
- context._registeredComponents.add(moduleIdentifier)
151
- }
152
- }
153
- // used by ssr in case component is cached and beforeCreate
154
- // never gets called
155
- options._ssrRegister = hook
156
- } else if (injectStyles) {
157
- hook = shadowMode
158
- ? function () {
159
- injectStyles.call(
160
- this,
161
- (options.functional ? this.parent : this).$root.$options.shadowRoot
162
- )
163
- }
164
- : injectStyles
165
- }
166
-
167
- if (hook) {
168
- if (options.functional) {
169
- // for template-only hot-reload because in that case the render fn doesn't
170
- // go through the normalizer
171
- options._injectStyles = hook
172
- // register for functional component in vue file
173
- var originalRender = options.render
174
- options.render = function renderWithStyleInjection (h, context) {
175
- hook.call(context)
176
- return originalRender(h, context)
177
- }
178
- } else {
179
- // inject component registration as beforeCreate hook
180
- var existing = options.beforeCreate
181
- options.beforeCreate = existing
182
- ? [].concat(existing, hook)
183
- : [hook]
184
- }
185
- }
186
-
187
- return {
188
- exports: scriptExports,
189
- options: options
190
- }
191
- }
192
-
193
-
194
- /***/ }),
195
- /* 1 */
196
- /***/ (function(module, exports, __webpack_require__) {
197
-
198
- module.exports = __webpack_require__(9);
199
-
200
-
201
- /***/ }),
202
- /* 2 */
203
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
204
-
205
- "use strict";
206
- /* harmony default export */ __webpack_exports__["a"] = ({
207
- data: function data() {
208
- return {
209
- uniqueId: null
210
- };
211
- },
212
- mounted: function mounted() {
213
- var id = this.id || this.$attrs.id;
214
- this.uniqueId = id ? "".concat(id) : "".concat(this.$options.name, "-").concat(this._uid);
215
- }
216
- });
217
-
218
- /***/ }),
219
- /* 3 */,
220
- /* 4 */
221
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
222
-
223
- "use strict";
224
- // ESM COMPAT FLAG
225
- __webpack_require__.r(__webpack_exports__);
226
-
227
- // 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&
228
- var render = function() {
229
- var _vm = this
230
- var _h = _vm.$createElement
231
- var _c = _vm._self._c || _h
232
- return _c(
233
- _vm.componentType,
234
- _vm._b(
235
- {
236
- tag: "component",
237
- staticClass: "maz-base-component maz-btn maz-inline-flex",
238
- class: [
239
- _vm.classes,
240
- {
241
- "maz-text-hidden": _vm.loading
242
- }
243
- ],
244
- attrs: {
245
- id: _vm.uniqueId,
246
- type: _vm.isLink ? null : _vm.type,
247
- disabled: _vm.isLink ? null : _vm.isDisabled
248
- },
249
- on: {
250
- click: function($event) {
251
- return _vm.handleClick($event)
252
- },
253
- mouseenter: function($event) {
254
- return _vm.emitMouseEnter($event)
255
- },
256
- mouseleave: function($event) {
257
- return _vm.emitMouseLeave($event)
258
- },
259
- focus: function($event) {
260
- return _vm.emitFocus($event)
261
- },
262
- blur: function($event) {
263
- return _vm.emitBlur($event)
264
- }
265
- }
266
- },
267
- "component",
268
- _vm.$attrs,
269
- false
270
- ),
271
- [
272
- _vm.hasLeftIcon() || _vm.hasMainIcon()
273
- ? _c(
274
- "div",
275
- {
276
- staticClass: "maz-flex maz-flex-center maz-btn__icon-left",
277
- class: {
278
- "maz-mr-2": !_vm.fab && _vm.hasSlotDefault()
279
- }
280
- },
281
- [
282
- _vm._t("icon-left" || false, function() {
283
- return [
284
- _c("i", { staticClass: "material-icons" }, [
285
- _vm._v(_vm._s(_vm.leftIconName || _vm.iconName))
286
- ])
287
- ]
288
- })
289
- ],
290
- 2
291
- )
292
- : _vm._e(),
293
- _c(
294
- "span",
295
- {
296
- staticClass:
297
- "maz-flex maz-align-center maz-h-100 maz-overflow-hidden",
298
- class: [_vm.textClasses, { "maz-flex-1": _vm.hasSlotDefault() }]
299
- },
300
- [_vm._t("default")],
301
- 2
302
- ),
303
- _vm.hasRightIcon()
304
- ? _c(
305
- "div",
306
- {
307
- staticClass: "maz-flex maz-flex-center maz-btn__icon-right",
308
- class: {
309
- "maz-ml-2": !_vm.fab && _vm.hasSlotDefault()
310
- }
311
- },
312
- [
313
- _vm._t("icon-right", function() {
314
- return [
315
- _c("i", { staticClass: "material-icons" }, [
316
- _vm._v(_vm._s(_vm.rightIconName))
317
- ])
318
- ]
319
- })
320
- ],
321
- 2
322
- )
323
- : _vm._e(),
324
- _vm.loading
325
- ? _c(
326
- "div",
327
- { staticClass: "maz-btn__spinner maz-flex maz-flex-center" },
328
- [_c("MazSpinner", { attrs: { size: 25, color: _vm.color } })],
329
- 1
330
- )
331
- : _vm._e()
332
- ]
333
- )
334
- }
335
- var staticRenderFns = []
336
- render._withStripped = true
337
-
338
-
339
- // CONCATENATED MODULE: ./packages/components/MazBtn/_main.vue?vue&type=template&id=247f3a44&
340
-
341
- // EXTERNAL MODULE: ./packages/components/MazSpinner/index.js + 5 modules
342
- var MazSpinner = __webpack_require__(5);
343
-
344
- // EXTERNAL MODULE: ./packages/mixins/uniqueId.js
345
- var uniqueId = __webpack_require__(2);
346
-
347
- // 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&
348
- function _toConsumableArray(arr) { return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableSpread(); }
349
-
350
- 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."); }
351
-
352
- 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); }
353
-
354
- function _iterableToArray(iter) { if (typeof Symbol !== "undefined" && Symbol.iterator in Object(iter)) return Array.from(iter); }
355
-
356
- function _arrayWithoutHoles(arr) { if (Array.isArray(arr)) return _arrayLikeToArray(arr); }
357
-
358
- 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; }
359
-
360
- //
361
- //
362
- //
363
- //
364
- //
365
- //
366
- //
367
- //
368
- //
369
- //
370
- //
371
- //
372
- //
373
- //
374
- //
375
- //
376
- //
377
- //
378
- //
379
- //
380
- //
381
- //
382
- //
383
- //
384
- //
385
- //
386
- //
387
- //
388
- //
389
- //
390
- //
391
- //
392
- //
393
- //
394
- //
395
- //
396
- //
397
- //
398
- //
399
- //
400
- //
401
- //
402
- //
403
- //
404
- //
405
- //
406
- //
407
- //
408
- //
409
- //
410
- //
411
- //
412
- //
413
- //
414
- //
415
- //
416
- //
417
- //
418
- //
419
- //
420
- //
421
- //
422
- //
423
- //
424
- //
425
- //
426
- //
427
-
428
-
429
- /**
430
- * > Simple button component
431
- */
432
-
433
- /* harmony default export */ var _mainvue_type_script_lang_js_ = ({
434
- name: 'MazBtn',
435
- components: {
436
- MazSpinner: MazSpinner["default"]
437
- },
438
- mixins: [uniqueId["a" /* default */]],
439
- inheritAttrs: false,
440
- props: {
441
- // is the id of the button
442
- id: {
443
- type: String,
444
- default: null
445
- },
446
- // is color type (`primary` / `secondary` / `third` / `success` / `danger` / `grey` / `info` / `warning` / `light` / `dark` / `default` / `white` / `black`)
447
- color: {
448
- type: String,
449
- default: 'primary'
450
- },
451
- // is the button type (button, submit or something else)
452
- type: {
453
- type: String,
454
- default: 'button'
455
- },
456
- // button size (`xl`, `lg` / `md` / `sm` / `mini`)
457
- size: {
458
- type: String,
459
- default: 'md'
460
- },
461
- // is a `boolean` to show the loader & disable it
462
- loading: {
463
- type: Boolean,
464
- default: false
465
- },
466
- // is a `boolean` to disable the button
467
- disabled: {
468
- type: Boolean,
469
- default: false
470
- },
471
- // apply the outline style
472
- outline: {
473
- type: Boolean,
474
- default: false
475
- },
476
- // apply the rounded style
477
- rounded: {
478
- type: Boolean,
479
- default: false
480
- },
481
- // apply the fab style
482
- fab: {
483
- type: Boolean,
484
- default: false
485
- },
486
- // apply the focus style
487
- active: {
488
- type: Boolean,
489
- default: false
490
- },
491
- // take 100% of the width
492
- block: {
493
- type: Boolean,
494
- default: false
495
- },
496
- // remove shadow/elevation
497
- noShadow: {
498
- type: Boolean,
499
- default: false
500
- },
501
- // should be a [material icon](https://material.io/resources/icons/) name (usefull with fab buttons)
502
- iconName: {
503
- type: String,
504
- default: null
505
- },
506
- // should be a [material icon](https://material.io/resources/icons/) name
507
- leftIconName: {
508
- type: String,
509
- default: null
510
- },
511
- // should be a [material icon](https://material.io/resources/icons/) name
512
- rightIconName: {
513
- type: String,
514
- default: null
515
- },
516
- // align text to left (for block button)
517
- justifyStart: {
518
- type: Boolean,
519
- default: false
520
- },
521
- // align text to right (for block button)
522
- justifyEnd: {
523
- type: Boolean,
524
- default: false
525
- }
526
- },
527
- computed: {
528
- componentType: function componentType() {
529
- var _this$$attrs = this.$attrs,
530
- href = _this$$attrs.href,
531
- to = _this$$attrs.to;
532
- if (href) return 'a';else if (to) return 'router-link';
533
- return 'button';
534
- },
535
- isLink: function isLink() {
536
- return this.componentType === 'a';
537
- },
538
- isDisabled: function isDisabled() {
539
- var disabled = this.disabled,
540
- loading = this.loading;
541
- return loading || disabled;
542
- },
543
- classes: function classes() {
544
- var color = this.color,
545
- size = this.size,
546
- outline = this.outline,
547
- rounded = this.rounded,
548
- fab = this.fab,
549
- active = this.active,
550
- block = this.block,
551
- noShadow = this.noShadow,
552
- hasRightIcon = this.hasRightIcon,
553
- hasLeftIcon = this.hasLeftIcon,
554
- hasIcon = this.hasIcon,
555
- hasSlotDefault = this.hasSlotDefault;
556
- 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]));
557
- },
558
- textClasses: function textClasses() {
559
- var justifyStart = this.justifyStart,
560
- justifyEnd = this.justifyEnd;
561
- return [].concat(_toConsumableArray(justifyStart ? ['maz-justify-start'] : [null]), _toConsumableArray(justifyEnd ? ['maz-justify-end'] : [null]), _toConsumableArray(!justifyStart && !justifyEnd ? ['maz-justify-center'] : [null]));
562
- }
563
- },
564
- methods: {
565
- hasSlotDefault: function hasSlotDefault() {
566
- return this.$slots['default'];
567
- },
568
- hasIcon: function hasIcon() {
569
- return this.hasLeftIcon() || this.hasRightIcon() || this.hasMainIcon();
570
- },
571
- hasMainIcon: function hasMainIcon() {
572
- return this.iconName || this.$slots['icon'];
573
- },
574
- hasLeftIcon: function hasLeftIcon() {
575
- return this.leftIconName || this.$slots['icon-left'];
576
- },
577
- hasRightIcon: function hasRightIcon() {
578
- return this.rightIconName || this.$slots['icon-right'];
579
- },
580
- handleClick: function handleClick(e) {
581
- // return click event
582
- this.$emit('click', e);
583
- },
584
- emitMouseEnter: function emitMouseEnter(e) {
585
- // return mouseenter event
586
- this.$emit('mouseenter', e);
587
- },
588
- emitMouseLeave: function emitMouseLeave(e) {
589
- // return mouseleave event
590
- this.$emit('mouseleave', e);
591
- },
592
- emitFocus: function emitFocus(e) {
593
- // return focus event
594
- this.$emit('focus', e);
595
- },
596
- emitBlur: function emitBlur(e) {
597
- // return blur event
598
- this.$emit('blur', e);
599
- }
600
- }
601
- });
602
- // CONCATENATED MODULE: ./packages/components/MazBtn/_main.vue?vue&type=script&lang=js&
603
- /* harmony default export */ var MazBtn_mainvue_type_script_lang_js_ = (_mainvue_type_script_lang_js_);
604
- // EXTERNAL MODULE: ./node_modules/vue-loader/lib/runtime/componentNormalizer.js
605
- var componentNormalizer = __webpack_require__(0);
606
-
607
- // CONCATENATED MODULE: ./packages/components/MazBtn/_main.vue
608
-
609
-
610
-
611
-
612
-
613
- /* normalize component */
614
-
615
- var component = Object(componentNormalizer["a" /* default */])(
616
- MazBtn_mainvue_type_script_lang_js_,
617
- render,
618
- staticRenderFns,
619
- false,
620
- null,
621
- null,
622
- null
623
-
624
- )
625
-
626
- /* hot reload */
627
- if (false) { var api; }
628
- component.options.__file = "packages/components/MazBtn/_main.vue"
629
- /* harmony default export */ var _main = (component.exports);
630
- // CONCATENATED MODULE: ./packages/components/MazBtn/index.js
631
-
632
-
633
- _main.install = function (Vue) {
634
- Vue.component(_main.name, _main);
635
- };
636
-
637
- /* harmony default export */ var MazBtn = __webpack_exports__["default"] = (_main);
638
-
639
- /***/ }),
640
- /* 5 */
641
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
642
-
643
- "use strict";
644
- // ESM COMPAT FLAG
645
- __webpack_require__.r(__webpack_exports__);
646
-
647
- // 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&
648
- var render = function() {
649
- var _vm = this
650
- var _h = _vm.$createElement
651
- var _c = _vm._self._c || _h
652
- return _c(
653
- "svg",
654
- {
655
- staticClass: "maz-base-component maz-spinner maz-spinner-anim",
656
- class: [
657
- {
658
- "spinner-anim__white": _vm.dark
659
- },
660
- _vm.fillColorClass
661
- ],
662
- staticStyle: { "enable-background": "new 0 0 50 50" },
663
- attrs: {
664
- width: _vm.size + "px",
665
- height: _vm.size + "px",
666
- version: "1.1",
667
- xmlns: "http://www.w3.org/2000/svg",
668
- x: "0px",
669
- y: "0px",
670
- viewBox: "0 0 50 50",
671
- "xml:space": "preserve"
672
- }
673
- },
674
- [
675
- _c("path", {
676
- attrs: {
677
- d:
678
- "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"
679
- }
680
- })
681
- ]
682
- )
683
- }
684
- var staticRenderFns = []
685
- render._withStripped = true
686
-
687
-
688
- // CONCATENATED MODULE: ./packages/components/MazSpinner/_main.vue?vue&type=template&id=67a8ca41&
689
-
690
- // 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&
691
- //
692
- //
693
- //
694
- //
695
- //
696
- //
697
- //
698
- //
699
- //
700
- //
701
- //
702
- //
703
- //
704
- //
705
- //
706
- //
707
- //
708
- //
709
- //
710
- //
711
- /* harmony default export */ var _mainvue_type_script_lang_js_ = ({
712
- name: 'MazSpinner',
713
- props: {
714
- size: {
715
- type: Number,
716
- default: 40
717
- },
718
- dark: {
719
- type: Boolean,
720
- default: false
721
- },
722
- color: {
723
- type: String,
724
- default: 'primary'
725
- }
726
- },
727
- computed: {
728
- fillColorClass: function fillColorClass() {
729
- return "maz-fill-".concat(this.color);
730
- }
731
- }
732
- });
733
- // CONCATENATED MODULE: ./packages/components/MazSpinner/_main.vue?vue&type=script&lang=js&
734
- /* harmony default export */ var MazSpinner_mainvue_type_script_lang_js_ = (_mainvue_type_script_lang_js_);
735
- // EXTERNAL MODULE: ./node_modules/vue-loader/lib/runtime/componentNormalizer.js
736
- var componentNormalizer = __webpack_require__(0);
737
-
738
- // CONCATENATED MODULE: ./packages/components/MazSpinner/_main.vue
739
-
740
-
741
-
742
-
743
-
744
- /* normalize component */
745
-
746
- var component = Object(componentNormalizer["a" /* default */])(
747
- MazSpinner_mainvue_type_script_lang_js_,
748
- render,
749
- staticRenderFns,
750
- false,
751
- null,
752
- null,
753
- null
754
-
755
- )
756
-
757
- /* hot reload */
758
- if (false) { var api; }
759
- component.options.__file = "packages/components/MazSpinner/_main.vue"
760
- /* harmony default export */ var _main = (component.exports);
761
- // CONCATENATED MODULE: ./packages/components/MazSpinner/index.js
762
-
763
-
764
- _main.install = function (Vue) {
765
- Vue.component(_main.name, _main);
766
- };
767
-
768
- /* harmony default export */ var MazSpinner = __webpack_exports__["default"] = (_main);
769
-
770
- /***/ }),
771
- /* 6 */
772
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
773
-
774
- "use strict";
775
-
776
- // EXPORTS
777
- __webpack_require__.d(__webpack_exports__, "a", function() { return /* reexport */ debounce; });
778
- __webpack_require__.d(__webpack_exports__, "b", function() { return /* reexport */ pascalCaseToKebabCase; });
779
-
780
- // CONCATENATED MODULE: ./packages/utils/debounce.js
781
- /* harmony default export */ var debounce = (function (func, delay) {
782
- var debounceTimer;
783
- return function () {
784
- var context = this;
785
- var args = arguments;
786
- clearTimeout(debounceTimer);
787
- debounceTimer = setTimeout(function () {
788
- return func.apply(context, args);
789
- }, delay);
790
- };
791
- });
792
- // CONCATENATED MODULE: ./packages/utils/pascalCaseToKebabCase.js
793
- /* harmony default export */ var pascalCaseToKebabCase = (function (string) {
794
- return string.replace(/([a-z0-9])([A-Z])/g, '$1-$2').replace(/([A-Z])([A-Z])(?=[a-z])/g, '$1-$2').toLowerCase();
795
- });
796
- // CONCATENATED MODULE: ./packages/utils/index.js
797
-
798
-
799
-
800
- /***/ }),
801
- /* 7 */,
802
- /* 8 */
803
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
804
-
805
- "use strict";
806
- // ESM COMPAT FLAG
807
- __webpack_require__.r(__webpack_exports__);
808
-
809
- // CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./packages/components/MazInput/_main.vue?vue&type=template&id=5b617c72&
810
- var render = function() {
811
- var _vm = this
812
- var _h = _vm.$createElement
813
- var _c = _vm._self._c || _h
814
- return _c(
815
- "div",
816
- {
817
- ref: "parent",
818
- staticClass:
819
- "maz-base-component maz-input maz-border maz-border-color maz-border-color-hover maz-border-solid maz-border-radius",
820
- class: [
821
- {
822
- "is-focused": _vm.isFocus || _vm.focus,
823
- "is-valid": _vm.success,
824
- "has-value": _vm.value,
825
- "is-textarea": _vm.textarea,
826
- "has-error": _vm.error,
827
- "has-warning": _vm.warning,
828
- "is-disabled": _vm.disabled,
829
- "maz-is-dark": _vm.dark,
830
- "has-hint": _vm.hint,
831
- "has-no-label": !_vm.hasLabel && !_vm.hint,
832
- "has-left-icon": _vm.hasLeftIcon()
833
- },
834
- "maz-input--" + _vm.size,
835
- "has-" + _vm.leftNumberIcon + "-right-icon",
836
- "maz-input--" + _vm.color
837
- ],
838
- on: { click: _vm.focusInput }
839
- },
840
- [
841
- _vm.hasLeftIcon()
842
- ? _c(
843
- "div",
844
- {
845
- staticClass: "maz-input__icon maz-flex left",
846
- class: [
847
- _vm.textarea ? "maz-align-start maz-pt-2" : "maz-align-center"
848
- ]
849
- },
850
- [
851
- _vm._t("icon-left", function() {
852
- return [
853
- _c("i", { staticClass: "material-icons" }, [
854
- _vm._v(_vm._s(_vm.leftIconName))
855
- ])
856
- ]
857
- })
858
- ],
859
- 2
860
- )
861
- : _vm._e(),
862
- _vm.hasRightIcon()
863
- ? _c(
864
- "div",
865
- {
866
- staticClass: "maz-input__icon maz-flex right",
867
- class: [
868
- _vm.textarea ? "maz-align-start maz-pt-2" : "maz-align-center"
869
- ]
870
- },
871
- [
872
- _vm._t("icon-right", function() {
873
- return [
874
- _c("i", { staticClass: "material-icons" }, [
875
- _vm._v(_vm._s(_vm.rightIconName))
876
- ])
877
- ]
878
- })
879
- ],
880
- 2
881
- )
882
- : _vm._e(),
883
- _vm.getType === "checkbox" && !_vm.textarea
884
- ? _c(
885
- "input",
886
- _vm._b(
887
- {
888
- directives: [
889
- {
890
- name: "model",
891
- rawName: "v-model",
892
- value: _vm.inputValue,
893
- expression: "inputValue"
894
- }
895
- ],
896
- ref: "MazInput",
897
- staticClass: "maz-input__input maz-border-radius",
898
- class: {
899
- "has-right-icon":
900
- _vm.hasClearBtn || _vm.hasPasswordBtn || _vm.hasRightIcon()
901
- },
902
- attrs: {
903
- id: _vm.uniqueId,
904
- placeholder: _vm.placeholderValue,
905
- "aria-label": _vm.placeholder,
906
- disabled: _vm.disabled,
907
- required: _vm.required,
908
- readonly: _vm.readonly,
909
- type: "checkbox"
910
- },
911
- domProps: {
912
- checked: Array.isArray(_vm.inputValue)
913
- ? _vm._i(_vm.inputValue, null) > -1
914
- : _vm.inputValue
915
- },
916
- on: {
917
- keydown: _vm.keyDown,
918
- keyup: _vm.keyUp,
919
- focus: _vm.onFocus,
920
- blur: _vm.onBlur,
921
- paste: _vm.onPaste,
922
- change: [
923
- function($event) {
924
- var $$a = _vm.inputValue,
925
- $$el = $event.target,
926
- $$c = $$el.checked ? true : false
927
- if (Array.isArray($$a)) {
928
- var $$v = null,
929
- $$i = _vm._i($$a, $$v)
930
- if ($$el.checked) {
931
- $$i < 0 && (_vm.inputValue = $$a.concat([$$v]))
932
- } else {
933
- $$i > -1 &&
934
- (_vm.inputValue = $$a
935
- .slice(0, $$i)
936
- .concat($$a.slice($$i + 1)))
937
- }
938
- } else {
939
- _vm.inputValue = $$c
940
- }
941
- },
942
- _vm.onChange
943
- ],
944
- click: function($event) {
945
- return _vm.$emit("click", $event)
946
- }
947
- }
948
- },
949
- "input",
950
- _vm.$attrs,
951
- false
952
- )
953
- )
954
- : _vm.getType === "radio" && !_vm.textarea
955
- ? _c(
956
- "input",
957
- _vm._b(
958
- {
959
- directives: [
960
- {
961
- name: "model",
962
- rawName: "v-model",
963
- value: _vm.inputValue,
964
- expression: "inputValue"
965
- }
966
- ],
967
- ref: "MazInput",
968
- staticClass: "maz-input__input maz-border-radius",
969
- class: {
970
- "has-right-icon":
971
- _vm.hasClearBtn || _vm.hasPasswordBtn || _vm.hasRightIcon()
972
- },
973
- attrs: {
974
- id: _vm.uniqueId,
975
- placeholder: _vm.placeholderValue,
976
- "aria-label": _vm.placeholder,
977
- disabled: _vm.disabled,
978
- required: _vm.required,
979
- readonly: _vm.readonly,
980
- type: "radio"
981
- },
982
- domProps: { checked: _vm._q(_vm.inputValue, null) },
983
- on: {
984
- keydown: _vm.keyDown,
985
- keyup: _vm.keyUp,
986
- focus: _vm.onFocus,
987
- blur: _vm.onBlur,
988
- paste: _vm.onPaste,
989
- change: [
990
- function($event) {
991
- _vm.inputValue = null
992
- },
993
- _vm.onChange
994
- ],
995
- click: function($event) {
996
- return _vm.$emit("click", $event)
997
- }
998
- }
999
- },
1000
- "input",
1001
- _vm.$attrs,
1002
- false
1003
- )
1004
- )
1005
- : !_vm.textarea
1006
- ? _c(
1007
- "input",
1008
- _vm._b(
1009
- {
1010
- directives: [
1011
- {
1012
- name: "model",
1013
- rawName: "v-model",
1014
- value: _vm.inputValue,
1015
- expression: "inputValue"
1016
- }
1017
- ],
1018
- ref: "MazInput",
1019
- staticClass: "maz-input__input maz-border-radius",
1020
- class: {
1021
- "has-right-icon":
1022
- _vm.hasClearBtn || _vm.hasPasswordBtn || _vm.hasRightIcon()
1023
- },
1024
- attrs: {
1025
- id: _vm.uniqueId,
1026
- placeholder: _vm.placeholderValue,
1027
- "aria-label": _vm.placeholder,
1028
- disabled: _vm.disabled,
1029
- required: _vm.required,
1030
- readonly: _vm.readonly,
1031
- type: _vm.getType
1032
- },
1033
- domProps: { value: _vm.inputValue },
1034
- on: {
1035
- keydown: _vm.keyDown,
1036
- keyup: _vm.keyUp,
1037
- focus: _vm.onFocus,
1038
- blur: _vm.onBlur,
1039
- paste: _vm.onPaste,
1040
- change: _vm.onChange,
1041
- click: function($event) {
1042
- return _vm.$emit("click", $event)
1043
- },
1044
- input: function($event) {
1045
- if ($event.target.composing) {
1046
- return
1047
- }
1048
- _vm.inputValue = $event.target.value
1049
- }
1050
- }
1051
- },
1052
- "input",
1053
- _vm.$attrs,
1054
- false
1055
- )
1056
- )
1057
- : _c(
1058
- "textarea",
1059
- _vm._b(
1060
- {
1061
- directives: [
1062
- {
1063
- name: "model",
1064
- rawName: "v-model",
1065
- value: _vm.inputValue,
1066
- expression: "inputValue"
1067
- }
1068
- ],
1069
- ref: "MazInput",
1070
- staticClass: "maz-input__input maz-textarea",
1071
- attrs: {
1072
- id: _vm.uniqueId,
1073
- placeholder: _vm.placeholderValue,
1074
- type: _vm.type,
1075
- required: _vm.required,
1076
- readonly: _vm.readonly
1077
- },
1078
- domProps: { value: _vm.inputValue },
1079
- on: {
1080
- keydown: _vm.keyDown,
1081
- keyup: _vm.keyUp,
1082
- focus: _vm.onFocus,
1083
- blur: _vm.onBlur,
1084
- paste: _vm.onPaste,
1085
- change: _vm.onChange,
1086
- click: function($event) {
1087
- return _vm.$emit("click", $event)
1088
- },
1089
- input: function($event) {
1090
- if ($event.target.composing) {
1091
- return
1092
- }
1093
- _vm.inputValue = $event.target.value
1094
- }
1095
- }
1096
- },
1097
- "textarea",
1098
- _vm.$attrs,
1099
- false
1100
- )
1101
- ),
1102
- _vm.hasLabel || _vm.hint
1103
- ? _c(
1104
- "label",
1105
- {
1106
- ref: "label",
1107
- staticClass: "maz-input__label",
1108
- class: _vm.error ? "maz-text-danger" : null,
1109
- attrs: { for: _vm.uniqueId, tabindex: "-1" },
1110
- on: { click: _vm.focusInput }
1111
- },
1112
- [
1113
- _vm._v(
1114
- "\n " +
1115
- _vm._s(_vm.hintValue || _vm.placeholderValue) +
1116
- "\n "
1117
- )
1118
- ]
1119
- )
1120
- : _vm._e(),
1121
- _c("transition-group", { attrs: { name: "maz-scale" } }, [
1122
- _vm.hasClearBtn
1123
- ? _c(
1124
- "button",
1125
- {
1126
- key: "clear-button",
1127
- staticClass:
1128
- "maz-input__toggle-btn --clear maz-flex maz-flex-center",
1129
- class: { "has-right-icon": _vm.hasRightIcon() },
1130
- attrs: { title: "clear", type: "button", tabindex: "-1" },
1131
- on: {
1132
- click: function($event) {
1133
- $event.stopPropagation()
1134
- return _vm.clear.apply(null, arguments)
1135
- }
1136
- }
1137
- },
1138
- [
1139
- _c(
1140
- "i",
1141
- { staticClass: "maz-input__toggle-btn__icon material-icons" },
1142
- [_vm._v("\n close\n ")]
1143
- )
1144
- ]
1145
- )
1146
- : _vm._e(),
1147
- _vm.hasPasswordBtn
1148
- ? _c(
1149
- "button",
1150
- {
1151
- key: "password-button",
1152
- staticClass:
1153
- "maz-input__toggle-btn password maz-flex maz-flex-center",
1154
- class: {
1155
- "has-clear-btn": _vm.hasClearBtn,
1156
- "has-right-icon": _vm.hasRightIcon()
1157
- },
1158
- attrs: { title: "clear", type: "button", tabindex: "-1" },
1159
- on: {
1160
- click: function($event) {
1161
- _vm.showPassword = !_vm.showPassword
1162
- }
1163
- }
1164
- },
1165
- [
1166
- _c(
1167
- "i",
1168
- { staticClass: "maz-input__toggle-btn__icon material-icons" },
1169
- [
1170
- _vm._v(
1171
- "\n " +
1172
- _vm._s(
1173
- _vm.showPassword ? "visibility_off" : "visibility"
1174
- ) +
1175
- "\n "
1176
- )
1177
- ]
1178
- )
1179
- ]
1180
- )
1181
- : _vm._e()
1182
- ]),
1183
- _vm.loading
1184
- ? _c(
1185
- "div",
1186
- {
1187
- staticClass: "maz-input__loader",
1188
- class: { textarea: _vm.textarea }
1189
- },
1190
- [_c("div", { staticClass: "maz-input__loader__progress-bar" })]
1191
- )
1192
- : _vm._e()
1193
- ],
1194
- 1
1195
- )
1196
- }
1197
- var staticRenderFns = []
1198
- render._withStripped = true
1199
-
1200
-
1201
- // CONCATENATED MODULE: ./packages/components/MazInput/_main.vue?vue&type=template&id=5b617c72&
1202
-
1203
- // EXTERNAL MODULE: ./packages/mixins/uniqueId.js
1204
- var uniqueId = __webpack_require__(2);
1205
-
1206
- // EXTERNAL MODULE: ./packages/utils/index.js + 2 modules
1207
- var utils = __webpack_require__(6);
1208
-
1209
- // CONCATENATED MODULE: ./node_modules/babel-loader/lib!./node_modules/vue-loader/lib??vue-loader-options!./packages/components/MazInput/_main.vue?vue&type=script&lang=js&
1210
- 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); }
1211
-
1212
- //
1213
- //
1214
- //
1215
- //
1216
- //
1217
- //
1218
- //
1219
- //
1220
- //
1221
- //
1222
- //
1223
- //
1224
- //
1225
- //
1226
- //
1227
- //
1228
- //
1229
- //
1230
- //
1231
- //
1232
- //
1233
- //
1234
- //
1235
- //
1236
- //
1237
- //
1238
- //
1239
- //
1240
- //
1241
- //
1242
- //
1243
- //
1244
- //
1245
- //
1246
- //
1247
- //
1248
- //
1249
- //
1250
- //
1251
- //
1252
- //
1253
- //
1254
- //
1255
- //
1256
- //
1257
- //
1258
- //
1259
- //
1260
- //
1261
- //
1262
- //
1263
- //
1264
- //
1265
- //
1266
- //
1267
- //
1268
- //
1269
- //
1270
- //
1271
- //
1272
- //
1273
- //
1274
- //
1275
- //
1276
- //
1277
- //
1278
- //
1279
- //
1280
- //
1281
- //
1282
- //
1283
- //
1284
- //
1285
- //
1286
- //
1287
- //
1288
- //
1289
- //
1290
- //
1291
- //
1292
- //
1293
- //
1294
- //
1295
- //
1296
- //
1297
- //
1298
- //
1299
- //
1300
- //
1301
- //
1302
- //
1303
- //
1304
- //
1305
- //
1306
- //
1307
- //
1308
- //
1309
- //
1310
- //
1311
- //
1312
- //
1313
- //
1314
- //
1315
- //
1316
- //
1317
- //
1318
- //
1319
- //
1320
- //
1321
- //
1322
- //
1323
- //
1324
- //
1325
- //
1326
- //
1327
- //
1328
- //
1329
- //
1330
- //
1331
- //
1332
- //
1333
- //
1334
- //
1335
- //
1336
- //
1337
- //
1338
- //
1339
- //
1340
- //
1341
- //
1342
- //
1343
- //
1344
- //
1345
- //
1346
- //
1347
- //
1348
- //
1349
- //
1350
- //
1351
- //
1352
- //
1353
- //
1354
- //
1355
- //
1356
- //
1357
- //
1358
-
1359
-
1360
- var DEBOUNCE = 500;
1361
- /**
1362
- * > Beautiful input UI with loading & error manager
1363
- */
1364
-
1365
- /* harmony default export */ var _mainvue_type_script_lang_js_ = ({
1366
- name: 'MazInput',
1367
- mixins: [uniqueId["a" /* default */]],
1368
- props: {
1369
- // value of the input
1370
- value: {
1371
- validator: function validator(prop) {
1372
- return ['string', 'number'].includes(_typeof(prop)) || prop === null;
1373
- },
1374
- default: null
1375
- },
1376
- // input id
1377
- id: {
1378
- type: String,
1379
- default: null
1380
- },
1381
- // value of the input
1382
- placeholder: {
1383
- type: String,
1384
- default: 'Enter text'
1385
- },
1386
- // replace the label if is present
1387
- hint: {
1388
- type: String,
1389
- default: null
1390
- },
1391
- // input size (`'lg'` / `'sm'`)
1392
- size: {
1393
- type: String,
1394
- default: null
1395
- },
1396
- // is the input size (`text` or `number`)
1397
- type: {
1398
- type: String,
1399
- default: 'text'
1400
- },
1401
- // should be a [material icon](https://material.io/resources/icons/) name
1402
- leftIconName: {
1403
- type: String,
1404
- default: null
1405
- },
1406
- // should be a [material icon](https://material.io/resources/icons/) name
1407
- rightIconName: {
1408
- type: String,
1409
- default: null
1410
- },
1411
- // When is `true` the input has the error style
1412
- error: {
1413
- type: Boolean,
1414
- default: false
1415
- },
1416
- // When is `true` the input has the warning style
1417
- warning: {
1418
- type: Boolean,
1419
- default: false
1420
- },
1421
- // When is `true` the input is disable
1422
- disabled: {
1423
- type: Boolean,
1424
- default: false
1425
- },
1426
- // When is `true` the input has the dark theme
1427
- dark: {
1428
- type: Boolean,
1429
- default: false
1430
- },
1431
- // When is `true` the input is on readonly mode
1432
- readonly: {
1433
- type: Boolean,
1434
- default: false
1435
- },
1436
- // When is `true` the input has the valid style
1437
- success: {
1438
- type: Boolean,
1439
- default: false
1440
- },
1441
- // When is `true` the input become required & has the `*` symbol
1442
- required: {
1443
- type: Boolean,
1444
- default: false
1445
- },
1446
- // When is `true` the input is a textarea
1447
- textarea: {
1448
- type: Boolean,
1449
- default: false
1450
- },
1451
- // When is `true` the input has a progress bar animated
1452
- loading: {
1453
- type: Boolean,
1454
- default: false
1455
- },
1456
- // When is `true` the input can be clear with a button on the right
1457
- clearable: {
1458
- type: Boolean,
1459
- default: false
1460
- },
1461
- // When is `true` the input has not label (top placeholder when value is not empty)
1462
- noLabel: {
1463
- type: Boolean,
1464
- default: false
1465
- },
1466
- // When is `true` and is `required`, the `*` symbol is not showing
1467
- noRequiredSymbol: {
1468
- type: Boolean,
1469
- default: false
1470
- },
1471
- // force focus style input
1472
- focus: {
1473
- type: Boolean,
1474
- default: false
1475
- },
1476
- // color name in basic colors
1477
- color: {
1478
- type: String,
1479
- default: 'primary'
1480
- },
1481
- // Add a debounce of 500ms to emit the value
1482
- debounce: {
1483
- type: Boolean,
1484
- default: false
1485
- }
1486
- },
1487
- data: function data() {
1488
- return {
1489
- isFocus: false,
1490
- showPassword: false
1491
- };
1492
- },
1493
- computed: {
1494
- inputValue: {
1495
- get: function get() {
1496
- return this.value;
1497
- },
1498
- set: function set(value) {
1499
- var valueToEmit = this.hasNumberType ? !value ? 0 : parseInt(value) : value;
1500
- this.emitValue(valueToEmit);
1501
- }
1502
- },
1503
- placeholderValue: function placeholderValue() {
1504
- var placeholder = this.placeholder;
1505
- if (this.required && placeholder && !this.noRequiredSymbol) placeholder += ' *';
1506
- return placeholder;
1507
- },
1508
- hintValue: function hintValue() {
1509
- var hint = this.hint;
1510
- if (this.required && hint) hint += ' *';
1511
- return hint;
1512
- },
1513
- hasNumberType: function hasNumberType() {
1514
- return this.type === 'number';
1515
- },
1516
- hasLabel: function hasLabel() {
1517
- return !this.noLabel;
1518
- },
1519
- getType: function getType() {
1520
- return this.showPassword ? 'text' : this.type;
1521
- },
1522
- hasPasswordBtn: function hasPasswordBtn() {
1523
- return this.type === 'password' && this.inputValue;
1524
- },
1525
- hasClearBtn: function hasClearBtn() {
1526
- return this.clearable && this.inputValue && !this.textarea;
1527
- },
1528
- leftNumberIcon: function leftNumberIcon() {
1529
- var array = [!!this.hasRightIcon(), !!this.hasClearBtn, !!this.hasPasswordBtn];
1530
- return array.filter(function (a) {
1531
- return a;
1532
- }).length;
1533
- }
1534
- },
1535
- methods: {
1536
- debounceValue: Object(utils["a" /* debounce */])(function (value) {
1537
- // return the input value (in `@input` or `v-model`)
1538
- // @arg input
1539
- this.$emit('input', value);
1540
- }, DEBOUNCE),
1541
- emitValue: function emitValue(value) {
1542
- if (this.debounce) return this.debounceValue(value);
1543
- this.$emit('input', value);
1544
- },
1545
- hasLeftIcon: function hasLeftIcon() {
1546
- return this.leftIconName || this.$slots['icon-left'];
1547
- },
1548
- hasRightIcon: function hasRightIcon() {
1549
- return this.rightIconName || this.$slots['icon-right'];
1550
- },
1551
- focusInput: function focusInput() {
1552
- this.$refs.MazInput.focus();
1553
- },
1554
- onFocus: function onFocus(e) {
1555
- // sent the focus event
1556
- // @arg event
1557
- this.$emit('focus', e);
1558
- this.isFocus = true;
1559
- },
1560
- onBlur: function onBlur(e) {
1561
- // sent the blur event
1562
- // @arg event
1563
- this.$emit('blur', e);
1564
- this.isFocus = false;
1565
- },
1566
- onPaste: function onPaste(e) {
1567
- // sent when text is past in the textfield
1568
- // @arg event
1569
- this.$emit('paste', e);
1570
- },
1571
- onChange: function onChange(e) {
1572
- // sent on input change
1573
- // @arg event
1574
- this.$emit('change', e);
1575
- },
1576
- clear: function clear() {
1577
- this.$emit('input', this.hasNumberType ? 0 : ''); // sent when the input is clear
1578
-
1579
- this.$emit('clear');
1580
- },
1581
- keyUp: function keyUp(e) {
1582
- // sent the keyup event
1583
- // @arg event
1584
- this.$emit('keyup', e);
1585
- },
1586
- keyDown: function keyDown(e) {
1587
- // sent the keydown event
1588
- // @arg event
1589
- this.$emit('keydown', e);
1590
- }
1591
- }
1592
- });
1593
- // CONCATENATED MODULE: ./packages/components/MazInput/_main.vue?vue&type=script&lang=js&
1594
- /* harmony default export */ var MazInput_mainvue_type_script_lang_js_ = (_mainvue_type_script_lang_js_);
1595
- // EXTERNAL MODULE: ./node_modules/vue-loader/lib/runtime/componentNormalizer.js
1596
- var componentNormalizer = __webpack_require__(0);
1597
-
1598
- // CONCATENATED MODULE: ./packages/components/MazInput/_main.vue
1599
-
1600
-
1601
-
1602
-
1603
-
1604
- /* normalize component */
1605
-
1606
- var component = Object(componentNormalizer["a" /* default */])(
1607
- MazInput_mainvue_type_script_lang_js_,
1608
- render,
1609
- staticRenderFns,
1610
- false,
1611
- null,
1612
- null,
1613
- null
1614
-
1615
- )
1616
-
1617
- /* hot reload */
1618
- if (false) { var api; }
1619
- component.options.__file = "packages/components/MazInput/_main.vue"
1620
- /* harmony default export */ var _main = (component.exports);
1621
- // CONCATENATED MODULE: ./packages/components/MazInput/index.js
1622
-
1623
-
1624
- _main.install = function (Vue) {
1625
- Vue.component(_main.name, _main);
1626
- };
1627
-
1628
- /* harmony default export */ var MazInput = __webpack_exports__["default"] = (_main);
1629
-
1630
- /***/ }),
1631
- /* 9 */
1632
- /***/ (function(module, exports) {
1633
-
1634
- module.exports = require("regenerator-runtime");
1635
-
1636
- /***/ }),
1637
- /* 10 */,
1638
- /* 11 */,
1639
- /* 12 */,
1640
- /* 13 */,
1641
- /* 14 */,
1642
- /* 15 */,
1643
- /* 16 */
1644
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
1645
-
1646
- "use strict";
1647
- // ESM COMPAT FLAG
1648
- __webpack_require__.r(__webpack_exports__);
1649
-
1650
- // CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./packages/components/MazSelect/_main.vue?vue&type=template&id=2fb08d76&
1651
- var render = function() {
1652
- var _vm = this
1653
- var _h = _vm.$createElement
1654
- var _c = _vm._self._c || _h
1655
- return _c(
1656
- "div",
1657
- {
1658
- staticClass: "maz-base-component maz-select",
1659
- class: [
1660
- {
1661
- "has-list-open": _vm.hasOpenList,
1662
- "maz-is-dark": _vm.dark
1663
- },
1664
- "maz-select--" + _vm.color,
1665
- "maz-select--" + _vm.size
1666
- ],
1667
- on: {
1668
- "!blur": function($event) {
1669
- return _vm.closeList($event)
1670
- }
1671
- }
1672
- },
1673
- [
1674
- _vm.multiple
1675
- ? _c(
1676
- "div",
1677
- {
1678
- ref: "SelectedTags",
1679
- staticClass: "maz-select__tags maz-flex maz-align-center",
1680
- class: {
1681
- "maz-left-offset": _vm.hasLeftIcon
1682
- }
1683
- },
1684
- [
1685
- _c(
1686
- "transition-group",
1687
- {
1688
- ref: "SelectedTagsContainer",
1689
- staticClass: "maz-flex maz-align-center maz-h-100",
1690
- attrs: { tag: "div", name: "maz-tags" }
1691
- },
1692
- _vm._l(_vm.selectedOptions, function(option, i) {
1693
- return _c(
1694
- "MazBtn",
1695
- {
1696
- key: "tags-" + i,
1697
- staticClass: "maz-select__tag maz-flex maz-align-center",
1698
- attrs: {
1699
- disabled: _vm.disabled,
1700
- color: _vm.color,
1701
- size: _vm.size
1702
- },
1703
- on: {
1704
- click: function($event) {
1705
- $event.preventDefault()
1706
- $event.stopPropagation()
1707
- return _vm.removeOption(option[_vm.config.valueKey])
1708
- }
1709
- }
1710
- },
1711
- [
1712
- _c("span", { staticClass: "maz-select__tag__text" }, [
1713
- _vm._v(
1714
- "\n " +
1715
- _vm._s(option[_vm.config.labelKey]) +
1716
- "\n "
1717
- )
1718
- ]),
1719
- _c(
1720
- "i",
1721
- {
1722
- staticClass: "maz-select__tag__clear material-icons"
1723
- },
1724
- [_vm._v("\n close\n ")]
1725
- )
1726
- ]
1727
- )
1728
- }),
1729
- 1
1730
- )
1731
- ],
1732
- 1
1733
- )
1734
- : _vm._e(),
1735
- _c(
1736
- "MazInput",
1737
- _vm._b(
1738
- {
1739
- ref: "textField",
1740
- attrs: {
1741
- value: _vm.valueShown,
1742
- readonly: "",
1743
- "no-label": _vm.hasNoLabel,
1744
- color: _vm.color,
1745
- size: _vm.size,
1746
- placeholder: _vm.placeholderShown,
1747
- disabled: _vm.disabled,
1748
- focus: _vm.hasOpenList
1749
- },
1750
- on: {
1751
- clear: function($event) {
1752
- return _vm.emitValues(null)
1753
- },
1754
- keydown: function($event) {
1755
- _vm.search ? null : _vm.keyboardNav($event)
1756
- },
1757
- keyup: function($event) {
1758
- return _vm.$emit("keyup", $event)
1759
- },
1760
- blur: function($event) {
1761
- return _vm.$emit("blur", $event)
1762
- },
1763
- change: function($event) {
1764
- return _vm.$emit("change", $event)
1765
- },
1766
- paste: function($event) {
1767
- return _vm.$emit("paste", $event)
1768
- },
1769
- click: function($event) {
1770
- return _vm.$emit("click", $event)
1771
- },
1772
- focus: _vm.openList
1773
- }
1774
- },
1775
- "MazInput",
1776
- _vm.$attrs,
1777
- false
1778
- ),
1779
- [
1780
- _vm._t("icon-left", null, { slot: "icon-left" }),
1781
- _c(
1782
- "div",
1783
- {
1784
- staticClass: "maz-select__toggle maz-flex maz-flex-center",
1785
- attrs: { slot: "icon-right", tabindex: "-1" },
1786
- slot: "icon-right"
1787
- },
1788
- [
1789
- _vm._t("arrow", function() {
1790
- return [
1791
- _c(
1792
- "svg",
1793
- {
1794
- staticClass: "maz-select__toggle__arrow",
1795
- attrs: {
1796
- mlns: "http://www.w3.org/2000/svg",
1797
- width: "24",
1798
- height: "24",
1799
- viewBox: "0 0 24 24"
1800
- }
1801
- },
1802
- [
1803
- _c("path", {
1804
- staticClass: "arrow",
1805
- attrs: {
1806
- d:
1807
- "M7.41 8.59L12 13.17l4.59-4.58L18 10l-6 6-6-6 1.41-1.41z"
1808
- }
1809
- }),
1810
- _c("path", {
1811
- attrs: { fill: "none", d: "M0 0h24v24H0V0z" }
1812
- })
1813
- ]
1814
- )
1815
- ]
1816
- })
1817
- ],
1818
- 2
1819
- )
1820
- ],
1821
- 2
1822
- ),
1823
- _c("transition", { attrs: { name: _vm.listTransition } }, [
1824
- _c(
1825
- "div",
1826
- {
1827
- directives: [
1828
- {
1829
- name: "show",
1830
- rawName: "v-show",
1831
- value: _vm.hasOpenList,
1832
- expression: "hasOpenList"
1833
- }
1834
- ],
1835
- staticClass: "maz-select__options-list maz-flex maz-elevation",
1836
- class: [
1837
- _vm.hasPositionTop
1838
- ? "maz-select__options-list--top maz-direction-column-reverse"
1839
- : "maz-direction-column",
1840
- { "maz-select__options-list--right": _vm.hasPositionRight }
1841
- ],
1842
- style: [_vm.itemListSize]
1843
- },
1844
- [
1845
- _vm.search
1846
- ? _c("MazInput", {
1847
- ref: "SearchInput",
1848
- staticClass: "maz-m-1",
1849
- attrs: {
1850
- color: _vm.color,
1851
- value: _vm.searchQuery,
1852
- placeholder: _vm.searchPlaceholder,
1853
- size: "sm",
1854
- "no-label": "",
1855
- name: "new_search_in_options",
1856
- autocomplete: "off"
1857
- },
1858
- on: {
1859
- input: _vm.searchInOptions,
1860
- keydown: [
1861
- _vm.keyboardNav,
1862
- function($event) {
1863
- if (
1864
- !$event.type.indexOf("key") &&
1865
- _vm._k($event.keyCode, "esc", 27, $event.key, [
1866
- "Esc",
1867
- "Escape"
1868
- ])
1869
- ) {
1870
- return null
1871
- }
1872
- return _vm.closeList.apply(null, arguments)
1873
- }
1874
- ]
1875
- }
1876
- })
1877
- : _vm._e(),
1878
- _c(
1879
- "div",
1880
- {
1881
- ref: "optionsList",
1882
- staticClass:
1883
- "maz-select__options-list__items maz-flex maz-direction-column"
1884
- },
1885
- [
1886
- _vm._l(_vm.optionsShown, function(option, i) {
1887
- return _c(
1888
- "button",
1889
- {
1890
- key: i,
1891
- staticClass:
1892
- "maz-select__options-list__item flex maz-align-center maz-text-left",
1893
- class: [
1894
- {
1895
- selected:
1896
- _vm.values.length &&
1897
- _vm.values.includes(option[_vm.config.valueKey])
1898
- },
1899
- {
1900
- "keyboard-selected":
1901
- _vm.tmpValue === option[_vm.config.valueKey]
1902
- }
1903
- ],
1904
- style: [_vm.optionHeight],
1905
- attrs: { tabindex: "-1", type: "button" },
1906
- on: {
1907
- click: function($event) {
1908
- $event.preventDefault()
1909
- $event.stopPropagation()
1910
- return _vm.updateValue(option[_vm.config.valueKey])
1911
- }
1912
- }
1913
- },
1914
- [
1915
- _vm._t(
1916
- "default",
1917
- function() {
1918
- return [
1919
- _c(
1920
- "span",
1921
- {
1922
- staticClass: "maz-dots-text",
1923
- class: [
1924
- {
1925
- "maz-text-muted": !option[
1926
- _vm.config.valueKey
1927
- ]
1928
- },
1929
- _vm.values.includes(
1930
- option[_vm.config.valueKey]
1931
- )
1932
- ? "maz-text-white"
1933
- : "maz-text-color"
1934
- ]
1935
- },
1936
- [
1937
- _vm._v(
1938
- "\n " +
1939
- _vm._s(option[_vm.config.labelKey]) +
1940
- "\n "
1941
- )
1942
- ]
1943
- )
1944
- ]
1945
- },
1946
- {
1947
- option: Object.assign({}, option, {
1948
- isSelected: _vm.values.includes(
1949
- option[_vm.config.valueKey]
1950
- )
1951
- }),
1952
- tag: "div"
1953
- }
1954
- )
1955
- ],
1956
- 2
1957
- )
1958
- }),
1959
- !_vm.optionsShown.length
1960
- ? _vm._t(
1961
- "no-results",
1962
- function() {
1963
- return [
1964
- _c(
1965
- "div",
1966
- {
1967
- staticClass:
1968
- "maz-select__options-list__no-results maz-p-1 maz-flex maz-flex-center"
1969
- },
1970
- [
1971
- _c(
1972
- "i",
1973
- {
1974
- staticClass: "material-icons maz-text-danger"
1975
- },
1976
- [
1977
- _vm._v(
1978
- "\n search_off\n "
1979
- )
1980
- ]
1981
- )
1982
- ]
1983
- )
1984
- ]
1985
- },
1986
- { tag: "div" }
1987
- )
1988
- : _vm._e()
1989
- ],
1990
- 2
1991
- )
1992
- ],
1993
- 1
1994
- )
1995
- ])
1996
- ],
1997
- 1
1998
- )
1999
- }
2000
- var staticRenderFns = []
2001
- render._withStripped = true
2002
-
2003
-
2004
- // CONCATENATED MODULE: ./packages/components/MazSelect/_main.vue?vue&type=template&id=2fb08d76&
2005
-
2006
- // EXTERNAL MODULE: ./node_modules/@babel/runtime/regenerator/index.js
2007
- var regenerator = __webpack_require__(1);
2008
- var regenerator_default = /*#__PURE__*/__webpack_require__.n(regenerator);
2009
-
2010
- // EXTERNAL MODULE: ./packages/components/MazInput/index.js + 5 modules
2011
- var MazInput = __webpack_require__(8);
2012
-
2013
- // EXTERNAL MODULE: ./packages/components/MazBtn/index.js + 5 modules
2014
- var MazBtn = __webpack_require__(4);
2015
-
2016
- // EXTERNAL MODULE: ./packages/mixins/uniqueId.js
2017
- var uniqueId = __webpack_require__(2);
2018
-
2019
- // CONCATENATED MODULE: ./node_modules/babel-loader/lib!./node_modules/vue-loader/lib??vue-loader-options!./packages/components/MazSelect/_main.vue?vue&type=script&lang=js&
2020
-
2021
-
2022
- 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); } }
2023
-
2024
- 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); }); }; }
2025
-
2026
- function _toConsumableArray(arr) { return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableSpread(); }
2027
-
2028
- 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."); }
2029
-
2030
- 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); }
2031
-
2032
- function _iterableToArray(iter) { if (typeof Symbol !== "undefined" && Symbol.iterator in Object(iter)) return Array.from(iter); }
2033
-
2034
- function _arrayWithoutHoles(arr) { if (Array.isArray(arr)) return _arrayLikeToArray(arr); }
2035
-
2036
- 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; }
2037
-
2038
- 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); }
2039
-
2040
- //
2041
- //
2042
- //
2043
- //
2044
- //
2045
- //
2046
- //
2047
- //
2048
- //
2049
- //
2050
- //
2051
- //
2052
- //
2053
- //
2054
- //
2055
- //
2056
- //
2057
- //
2058
- //
2059
- //
2060
- //
2061
- //
2062
- //
2063
- //
2064
- //
2065
- //
2066
- //
2067
- //
2068
- //
2069
- //
2070
- //
2071
- //
2072
- //
2073
- //
2074
- //
2075
- //
2076
- //
2077
- //
2078
- //
2079
- //
2080
- //
2081
- //
2082
- //
2083
- //
2084
- //
2085
- //
2086
- //
2087
- //
2088
- //
2089
- //
2090
- //
2091
- //
2092
- //
2093
- //
2094
- //
2095
- //
2096
- //
2097
- //
2098
- //
2099
- //
2100
- //
2101
- //
2102
- //
2103
- //
2104
- //
2105
- //
2106
- //
2107
- //
2108
- //
2109
- //
2110
- //
2111
- //
2112
- //
2113
- //
2114
- //
2115
- //
2116
- //
2117
- //
2118
- //
2119
- //
2120
- //
2121
- //
2122
- //
2123
- //
2124
- //
2125
- //
2126
- //
2127
- //
2128
- //
2129
- //
2130
- //
2131
- //
2132
- //
2133
- //
2134
- //
2135
- //
2136
- //
2137
- //
2138
- //
2139
- //
2140
- //
2141
- //
2142
- //
2143
- //
2144
- //
2145
- //
2146
- //
2147
- //
2148
- //
2149
- //
2150
- //
2151
- //
2152
- //
2153
- //
2154
- //
2155
- //
2156
- //
2157
- //
2158
- //
2159
- //
2160
- //
2161
- //
2162
- //
2163
- //
2164
- //
2165
- //
2166
- //
2167
- //
2168
- //
2169
- //
2170
- //
2171
- //
2172
- //
2173
- //
2174
- //
2175
- //
2176
- //
2177
- //
2178
- //
2179
- //
2180
- //
2181
- //
2182
- //
2183
- //
2184
- //
2185
- //
2186
- //
2187
- //
2188
- //
2189
- //
2190
- //
2191
- //
2192
- //
2193
- //
2194
- //
2195
- //
2196
- //
2197
- //
2198
- //
2199
- //
2200
- //
2201
- //
2202
- //
2203
- //
2204
- //
2205
- //
2206
- //
2207
- //
2208
- //
2209
- //
2210
- //
2211
-
2212
-
2213
-
2214
- /**
2215
- * > Beautiful select input
2216
- */
2217
-
2218
- /* harmony default export */ var _mainvue_type_script_lang_js_ = ({
2219
- name: 'MazSelect',
2220
- components: {
2221
- MazInput: MazInput["default"],
2222
- MazBtn: MazBtn["default"]
2223
- },
2224
- mixins: [uniqueId["a" /* default */]],
2225
- props: {
2226
- // is the value of the input
2227
- value: {
2228
- required: true,
2229
- validator: function validator(prop) {
2230
- return ['number', 'string', 'boolean'].includes(_typeof(prop)) || Array.isArray(prop) || prop === null;
2231
- }
2232
- },
2233
- // list of the options
2234
- options: {
2235
- type: Array,
2236
- required: true
2237
- },
2238
- // When is `true` the select is disabled
2239
- disabled: {
2240
- type: Boolean,
2241
- default: false
2242
- },
2243
- // When is `true` the select has the dark style
2244
- dark: {
2245
- type: Boolean,
2246
- default: false
2247
- },
2248
- // Item in list height in pixel
2249
- itemHeight: {
2250
- type: Number,
2251
- default: 35
2252
- },
2253
- // List height in pixel
2254
- listHeight: {
2255
- type: Number,
2256
- default: 260
2257
- },
2258
- // List width in pixel or percent (:list-width="100", list-width="100%")
2259
- listWidth: {
2260
- type: [Number, String],
2261
- default: null
2262
- },
2263
- // The select has no label in the input
2264
- placeholder: {
2265
- type: String,
2266
- default: 'Select option'
2267
- },
2268
- // When is `true` the select you select multiple values
2269
- noLabel: {
2270
- type: Boolean,
2271
- default: false
2272
- },
2273
- // When is `true` the select you select multiple values
2274
- multiple: {
2275
- type: Boolean,
2276
- default: false
2277
- },
2278
- // When is `true` the select has an input to search in options
2279
- search: {
2280
- type: Boolean,
2281
- default: false
2282
- },
2283
- // the search input placeholder
2284
- searchPlaceholder: {
2285
- type: String,
2286
- default: 'Search in options'
2287
- },
2288
- // the search input placeholder
2289
- color: {
2290
- type: String,
2291
- default: 'primary'
2292
- },
2293
- // input size
2294
- size: {
2295
- type: String,
2296
- default: 'md'
2297
- },
2298
- // When is `true` the option list is open
2299
- open: {
2300
- type: Boolean,
2301
- default: false
2302
- },
2303
- // set the position of option list (`top`, `top right`, `bottom right`)
2304
- position: {
2305
- type: String,
2306
- default: 'left bottom'
2307
- },
2308
- // set label key and value key - Ex: `{ labelKey: '<your_object_key>', valueKey: '<your_object_key>', searchKey: '<your_object_key>' }`
2309
- config: {
2310
- type: Object,
2311
- default: function _default() {
2312
- return {
2313
- labelKey: 'label',
2314
- valueKey: 'value',
2315
- searchKey: 'label'
2316
- };
2317
- }
2318
- },
2319
- // force value shown on input
2320
- inputValue: {
2321
- type: String,
2322
- default: null
2323
- }
2324
- },
2325
- data: function data() {
2326
- return {
2327
- listIsOpen: false,
2328
- query: '',
2329
- tmpValue: null,
2330
- searchQuery: null,
2331
- filteredOptions: null
2332
- };
2333
- },
2334
- computed: {
2335
- hasPositionTop: function hasPositionTop() {
2336
- return this.position.includes('top');
2337
- },
2338
- hasPositionRight: function hasPositionRight() {
2339
- return this.position.includes('right');
2340
- },
2341
- listTransition: function listTransition() {
2342
- return this.position.includes('bottom') ? 'maz-slide' : 'maz-slideinvert';
2343
- },
2344
- hasOpenList: function hasOpenList() {
2345
- return this.open || this.listIsOpen;
2346
- },
2347
- values: function values() {
2348
- var multiple = this.multiple,
2349
- value = this.value,
2350
- options = this.options;
2351
- if (!options) throw new Error('[MazSelect] options should be provide');
2352
- if (multiple && !Array.isArray(value) && value !== null) throw new Error('[MazSelect] value should be an array or null');
2353
- if (!multiple && Array.isArray(value)) throw new Error('[MazSelect] value should be a string, a number or null');
2354
- return value ? multiple ? _toConsumableArray(value) : [value] : [];
2355
- },
2356
- hasLeftIcon: function hasLeftIcon() {
2357
- return this.$attrs.leftIconName || this.$slots['icon-left'];
2358
- },
2359
- placeholderShown: function placeholderShown() {
2360
- var placeholder = this.placeholder,
2361
- multiple = this.multiple,
2362
- values = this.values;
2363
- return multiple && values.length ? null : placeholder;
2364
- },
2365
- hasNoLabel: function hasNoLabel() {
2366
- return this.multiple || this.noLabel;
2367
- },
2368
- optionHeight: function optionHeight() {
2369
- return {
2370
- height: "".concat(this.itemHeight, "px"),
2371
- flex: "0 0 ".concat(this.itemHeight, "px")
2372
- };
2373
- },
2374
- itemListSize: function itemListSize() {
2375
- var listHeight = this.listHeight,
2376
- listWidth = this.listWidth;
2377
- var width = !Number.isInteger(listWidth) ? listWidth : "".concat(listWidth, "px");
2378
- return {
2379
- maxHeight: "".concat(listHeight, "px"),
2380
- width: width,
2381
- maxWidth: width
2382
- };
2383
- },
2384
- tmpValueIndex: function tmpValueIndex() {
2385
- var config = this.config,
2386
- tmpValue = this.tmpValue,
2387
- optionsShown = this.optionsShown;
2388
- return optionsShown.findIndex(function (c) {
2389
- return c[config.valueKey] === tmpValue;
2390
- });
2391
- },
2392
- selectedValueIndex: function selectedValueIndex() {
2393
- var values = this.values,
2394
- options = this.options,
2395
- config = this.config;
2396
- return values.length ? options.findIndex(function (c) {
2397
- return c[config.valueKey] === values[values.length - 1];
2398
- }) : null;
2399
- },
2400
- valueShown: function valueShown() {
2401
- if (this.inputValue) return this.inputValue;
2402
- var multiple = this.multiple,
2403
- options = this.options,
2404
- values = this.values,
2405
- value = this.value,
2406
- config = this.config;
2407
- var valueSelected = options.find(function (o) {
2408
- return o[config.valueKey] === value;
2409
- });
2410
- var result = valueSelected && valueSelected[config.valueKey] && !multiple ? valueSelected[config.labelKey] : values[0] ? ' ' : null;
2411
- return result;
2412
- },
2413
- optionsShown: function optionsShown() {
2414
- return this.filteredOptions || this.options;
2415
- },
2416
- selectedOptions: function selectedOptions() {
2417
- var values = this.values,
2418
- options = this.options,
2419
- config = this.config;
2420
- var optionsSelected = [];
2421
- values.forEach(function (v) {
2422
- return optionsSelected.push(options.find(function (o) {
2423
- return v === o[config.valueKey];
2424
- }));
2425
- });
2426
- return optionsSelected;
2427
- }
2428
- },
2429
- watch: {
2430
- value: {
2431
- handler: function handler() {
2432
- var multiple = this.multiple;
2433
- if (multiple) this.scrollTags();
2434
- },
2435
- immediate: true
2436
- }
2437
- },
2438
- methods: {
2439
- scrollTags: function scrollTags() {
2440
- var _this = this;
2441
-
2442
- return _asyncToGenerator( /*#__PURE__*/regenerator_default.a.mark(function _callee() {
2443
- var _SelectedTagsContaine, _SelectedTagsContaine2;
2444
-
2445
- var _this$$refs, SelectedTags, SelectedTagsContainer;
2446
-
2447
- return regenerator_default.a.wrap(function _callee$(_context) {
2448
- while (1) {
2449
- switch (_context.prev = _context.next) {
2450
- case 0:
2451
- _context.next = 2;
2452
- return _this.$nextTick();
2453
-
2454
- case 2:
2455
- _this$$refs = _this.$refs, SelectedTags = _this$$refs.SelectedTags, SelectedTagsContainer = _this$$refs.SelectedTagsContainer;
2456
- if (SelectedTags) SelectedTags.scrollLeft = (_SelectedTagsContaine = SelectedTagsContainer === null || SelectedTagsContainer === void 0 ? void 0 : (_SelectedTagsContaine2 = SelectedTagsContainer.$el) === null || _SelectedTagsContaine2 === void 0 ? void 0 : _SelectedTagsContaine2.clientWidth) !== null && _SelectedTagsContaine !== void 0 ? _SelectedTagsContaine : null;
2457
-
2458
- case 4:
2459
- case "end":
2460
- return _context.stop();
2461
- }
2462
- }
2463
- }, _callee);
2464
- }))();
2465
- },
2466
- removeOption: function removeOption(value) {
2467
- var values = this.values,
2468
- multiple = this.multiple;
2469
- var leftValues = values.filter(function (v) {
2470
- return v !== value;
2471
- });
2472
- var valueToReturn = leftValues.length ? multiple ? leftValues : leftValues[0] : null;
2473
- this.emitValues(valueToReturn);
2474
- },
2475
- closeList: function closeList() {
2476
- var e = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
2477
- if (this.$el.contains(e.relatedTarget)) return e.preventDefault();
2478
- this.$emit('close');
2479
- this.listIsOpen = false;
2480
- this.isFocus = false;
2481
- },
2482
- openList: function openList(e) {
2483
- this.$emit('focus', e);
2484
- var disabled = this.disabled,
2485
- search = this.search,
2486
- values = this.values;
2487
-
2488
- if (!disabled) {
2489
- if (disabled) return; // sent when the list is open
2490
-
2491
- this.$emit('open');
2492
- this.isFocus = true;
2493
- this.listIsOpen = true;
2494
- this.selectFirstValue();
2495
- if (search) this.focusSearchInput();
2496
- if (values.length) this.scrollToSelectedOnFocus(this.selectedValueIndex);
2497
- }
2498
- },
2499
- clearSearch: function clearSearch() {
2500
- this.searchQuery = null;
2501
- this.filteredOptions = null;
2502
- },
2503
- reset: function reset() {
2504
- var _this2 = this;
2505
-
2506
- return _asyncToGenerator( /*#__PURE__*/regenerator_default.a.mark(function _callee2() {
2507
- return regenerator_default.a.wrap(function _callee2$(_context2) {
2508
- while (1) {
2509
- switch (_context2.prev = _context2.next) {
2510
- case 0:
2511
- _this2.clearSearch();
2512
-
2513
- if (!_this2.multiple) {
2514
- _context2.next = 3;
2515
- break;
2516
- }
2517
-
2518
- return _context2.abrupt("return");
2519
-
2520
- case 3:
2521
- _this2.closeList();
2522
-
2523
- case 4:
2524
- case "end":
2525
- return _context2.stop();
2526
- }
2527
- }
2528
- }, _callee2);
2529
- }))();
2530
- },
2531
- selectFirstValue: function selectFirstValue() {
2532
- var multiple = this.multiple,
2533
- value = this.value,
2534
- options = this.options,
2535
- config = this.config;
2536
- if (value || multiple) return;
2537
- var valueToReturn = options[0][config.valueKey] || null;
2538
- this.tmpValue = valueToReturn;
2539
- this.emitValues(valueToReturn, true);
2540
- },
2541
- updateValue: function updateValue(value) {
2542
- var multiple = this.multiple,
2543
- values = this.values,
2544
- removeOption = this.removeOption;
2545
- if (values.includes(value) && multiple) return removeOption(value);
2546
- this.tmpValue = value;
2547
- if (value) values.push(value);
2548
- var valueToReturn = multiple && value ? values : value;
2549
- this.emitValues(valueToReturn);
2550
- },
2551
- focusSearchInput: function focusSearchInput() {
2552
- var _this3 = this;
2553
-
2554
- return _asyncToGenerator( /*#__PURE__*/regenerator_default.a.mark(function _callee3() {
2555
- var SearchInput;
2556
- return regenerator_default.a.wrap(function _callee3$(_context3) {
2557
- while (1) {
2558
- switch (_context3.prev = _context3.next) {
2559
- case 0:
2560
- _context3.next = 2;
2561
- return _this3.$nextTick();
2562
-
2563
- case 2:
2564
- SearchInput = _this3.$refs.SearchInput;
2565
- SearchInput.$el.querySelector('input').focus();
2566
-
2567
- case 4:
2568
- case "end":
2569
- return _context3.stop();
2570
- }
2571
- }
2572
- }, _callee3);
2573
- }))();
2574
- },
2575
- emitValues: function emitValues(values, noReset) {
2576
- var _this4 = this;
2577
-
2578
- return _asyncToGenerator( /*#__PURE__*/regenerator_default.a.mark(function _callee4() {
2579
- return regenerator_default.a.wrap(function _callee4$(_context4) {
2580
- while (1) {
2581
- switch (_context4.prev = _context4.next) {
2582
- case 0:
2583
- // return the select input
2584
- // @arg the option value selected
2585
- _this4.$emit('input', values);
2586
-
2587
- if (!noReset) {
2588
- _context4.next = 3;
2589
- break;
2590
- }
2591
-
2592
- return _context4.abrupt("return");
2593
-
2594
- case 3:
2595
- _context4.next = 5;
2596
- return _this4.$nextTick();
2597
-
2598
- case 5:
2599
- _this4.reset();
2600
-
2601
- case 6:
2602
- case "end":
2603
- return _context4.stop();
2604
- }
2605
- }
2606
- }, _callee4);
2607
- }))();
2608
- },
2609
- scrollToSelectedOnFocus: function scrollToSelectedOnFocus(arrayIndex) {
2610
- var _this5 = this;
2611
-
2612
- return _asyncToGenerator( /*#__PURE__*/regenerator_default.a.mark(function _callee5() {
2613
- return regenerator_default.a.wrap(function _callee5$(_context5) {
2614
- while (1) {
2615
- switch (_context5.prev = _context5.next) {
2616
- case 0:
2617
- _context5.next = 2;
2618
- return _this5.$nextTick();
2619
-
2620
- case 2:
2621
- _this5.$refs.optionsList.scrollTop = arrayIndex * _this5.itemHeight - _this5.itemHeight * 3;
2622
-
2623
- case 3:
2624
- case "end":
2625
- return _context5.stop();
2626
- }
2627
- }
2628
- }, _callee5);
2629
- }))();
2630
- },
2631
- keyboardNav: function keyboardNav(e) {
2632
- var code = e.keyCode;
2633
- var hasOpenList = this.hasOpenList,
2634
- tmpValueIndex = this.tmpValueIndex,
2635
- optionsShown = this.optionsShown,
2636
- openList = this.openList,
2637
- tmpValue = this.tmpValue,
2638
- search = this.search,
2639
- config = this.config;
2640
-
2641
- if (code === 40 || code === 38) {
2642
- e.preventDefault();
2643
- if (!hasOpenList) openList();
2644
- var index = code === 40 ? tmpValueIndex + 1 : tmpValueIndex - 1;
2645
-
2646
- if (index === -1 || index >= optionsShown.length) {
2647
- index = index === -1 ? optionsShown.length - 1 : 0;
2648
- }
2649
-
2650
- this.tmpValue = optionsShown[index][config.valueKey];
2651
- this.scrollToSelectedOnFocus(index);
2652
- } else if (code === 13) {
2653
- // enter key
2654
- e.preventDefault();
2655
- hasOpenList ? this.updateValue(tmpValue) : this.openList();
2656
- } else if (code === 27) {
2657
- // escape key
2658
- this.closeList();
2659
- } else if (!search) {
2660
- // typing an option's name
2661
- this.searching(e);
2662
- }
2663
- },
2664
- searching: function searching(e) {
2665
- var _this6 = this;
2666
-
2667
- var config = this.config,
2668
- options = this.options;
2669
- var code = e.keyCode;
2670
- clearTimeout(queryTimer);
2671
- var queryTimer = setTimeout(function () {
2672
- _this6.query = '';
2673
- }, 2000);
2674
- var q = String.fromCharCode(code);
2675
-
2676
- if (code === 8 && this.query !== '') {
2677
- this.query = this.query.substring(0, this.query.length - 1);
2678
- } else if (/[a-zA-Z-e ]/.test(q)) {
2679
- if (!this.hasOpenList) this.openList();
2680
- this.query += q.toLowerCase();
2681
- var resultIndex = options.findIndex(function (o) {
2682
- _this6.tmpValue = o[config.valueKey];
2683
- return o[config.searchKey].toLowerCase().includes(_this6.query);
2684
- });
2685
-
2686
- if (resultIndex !== -1) {
2687
- this.scrollToSelectedOnFocus(resultIndex);
2688
- }
2689
- }
2690
- },
2691
- searchInOptions: function searchInOptions(query) {
2692
- var config = this.config,
2693
- options = this.options;
2694
- this.searchQuery = query === '' ? null : query;
2695
- if (!this.searchQuery) return this.filteredOptions = options;
2696
- var searchQuery = query.toLowerCase();
2697
- var filteredOptions = options.filter(function (o) {
2698
- return o[config.valueKey] && o[config.searchKey].toLowerCase().includes(searchQuery) || o[config.labelKey] && o[config.labelKey].includes(searchQuery);
2699
- });
2700
- this.tmpValue = filteredOptions.length ? filteredOptions[0][config.valueKey] : null;
2701
- this.filteredOptions = filteredOptions;
2702
- }
2703
- }
2704
- });
2705
- // CONCATENATED MODULE: ./packages/components/MazSelect/_main.vue?vue&type=script&lang=js&
2706
- /* harmony default export */ var MazSelect_mainvue_type_script_lang_js_ = (_mainvue_type_script_lang_js_);
2707
- // EXTERNAL MODULE: ./node_modules/vue-loader/lib/runtime/componentNormalizer.js
2708
- var componentNormalizer = __webpack_require__(0);
2709
-
2710
- // CONCATENATED MODULE: ./packages/components/MazSelect/_main.vue
2711
-
2712
-
2713
-
2714
-
2715
-
2716
- /* normalize component */
2717
-
2718
- var component = Object(componentNormalizer["a" /* default */])(
2719
- MazSelect_mainvue_type_script_lang_js_,
2720
- render,
2721
- staticRenderFns,
2722
- false,
2723
- null,
2724
- null,
2725
- null
2726
-
2727
- )
2728
-
2729
- /* hot reload */
2730
- if (false) { var api; }
2731
- component.options.__file = "packages/components/MazSelect/_main.vue"
2732
- /* harmony default export */ var _main = (component.exports);
2733
- // CONCATENATED MODULE: ./packages/components/MazSelect/index.js
2734
-
2735
-
2736
- _main.install = function (Vue) {
2737
- Vue.component(_main.name, _main);
2738
- };
2739
-
2740
- /* harmony default export */ var MazSelect = __webpack_exports__["default"] = (_main);
2741
-
2742
- /***/ })
2743
- /******/ ]);