maz-ui 2.3.13 → 2.4.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (237) hide show
  1. package/components/MazArrowIcon.d.ts +43 -0
  2. package/components/MazArrowIcon.js +1 -0
  3. package/components/MazAvatar.d.ts +149 -0
  4. package/components/MazAvatar.js +3 -0
  5. package/components/MazBackdrop.d.ts +89 -0
  6. package/components/MazBackdrop.js +3 -0
  7. package/components/MazBadge.d.ts +68 -0
  8. package/components/MazBadge.js +1 -0
  9. package/components/MazBottomSheet.d.ts +29 -0
  10. package/components/MazBottomSheet.js +3 -0
  11. package/components/MazBtn.d.ts +171 -0
  12. package/components/MazBtn.js +3 -0
  13. package/components/MazCard.d.ts +183 -0
  14. package/components/MazCard.js +3 -0
  15. package/components/MazCarousel.d.ts +16 -0
  16. package/components/MazCarousel.js +3 -0
  17. package/components/MazChart/includes.d.ts +11 -0
  18. package/components/MazChart.d.ts +114 -0
  19. package/components/MazChart.js +1 -0
  20. package/components/MazCheckbox.d.ts +49 -0
  21. package/components/MazCheckbox.js +1 -0
  22. package/components/MazDialog.d.ts +29 -0
  23. package/components/MazDialog.js +3 -0
  24. package/components/MazDialogPromise/use-maz-dialog-promise.d.ts +30 -0
  25. package/components/MazDialogPromise.d.ts +28 -0
  26. package/components/MazDialogPromise.js +3 -0
  27. package/components/MazDrawer.d.ts +59 -0
  28. package/components/MazDrawer.js +3 -0
  29. package/components/MazDropzone.d.ts +128 -0
  30. package/components/MazDropzone.js +3 -0
  31. package/components/MazGallery.d.ts +144 -0
  32. package/components/MazGallery.js +3 -0
  33. package/components/MazIcon.d.ts +66 -0
  34. package/components/MazIcon.js +3 -0
  35. package/components/MazInput.d.ts +276 -0
  36. package/components/MazInput.js +3 -0
  37. package/components/MazInputNumber.d.ts +67 -0
  38. package/components/MazInputNumber.js +3 -0
  39. package/components/MazInputPrice.d.ts +64 -0
  40. package/components/MazInputPrice.js +3 -0
  41. package/components/MazInputTags.d.ts +96 -0
  42. package/components/MazInputTags.js +3 -0
  43. package/components/MazLazyImg.d.ts +80 -0
  44. package/components/MazLazyImg.js +3 -0
  45. package/components/MazPhoneNumberInput/constantes/locales.d.ts +12 -0
  46. package/components/MazPhoneNumberInput/types.d.ts +21 -0
  47. package/components/MazPhoneNumberInput/utils/countries-name-list-by-iso-code.d.ts +2 -0
  48. package/components/MazPhoneNumberInput/utils/index.d.ts +12 -0
  49. package/components/MazPhoneNumberInput.d.ts +255 -0
  50. package/components/MazPhoneNumberInput.js +3 -0
  51. package/components/MazPicker/MazPickerCalendar.vue.d.ts +137 -0
  52. package/components/MazPicker/MazPickerCalendarMonth/MazPickerCalendarDays.vue.d.ts +22 -0
  53. package/components/MazPicker/MazPickerCalendarMonth/MazPickerCalendarGrid.vue.d.ts +114 -0
  54. package/components/MazPicker/MazPickerCalendarMonth/MazPickerCalendarMonth.vue.d.ts +124 -0
  55. package/components/MazPicker/MazPickerCalendarSwitcher.vue.d.ts +38 -0
  56. package/components/MazPicker/MazPickerContainer.vue.d.ts +212 -0
  57. package/components/MazPicker/MazPickerHeader.vue.d.ts +84 -0
  58. package/components/MazPicker/MazPickerMonthSwitcher.vue.d.ts +43 -0
  59. package/components/MazPicker/MazPickerShortcuts.vue.d.ts +62 -0
  60. package/components/MazPicker/MazPickerTime.vue.d.ts +129 -0
  61. package/components/MazPicker/MazPickerYearSwitcher.vue.d.ts +35 -0
  62. package/components/MazPicker/types.d.ts +15 -0
  63. package/components/MazPicker/utils.d.ts +54 -0
  64. package/components/MazPicker.d.ts +313 -0
  65. package/components/MazPicker.js +3 -0
  66. package/components/MazRadioButtons.d.ts +69 -0
  67. package/components/MazRadioButtons.js +1 -0
  68. package/components/MazSelect.d.ts +176 -0
  69. package/components/MazSelect.js +3 -0
  70. package/components/MazSlider/utils.d.ts +15 -0
  71. package/components/MazSlider.d.ts +96 -0
  72. package/components/MazSlider.js +3 -0
  73. package/components/MazSpinner.d.ts +30 -0
  74. package/components/MazSpinner.js +1 -0
  75. package/components/MazStepper.d.ts +73 -0
  76. package/components/MazStepper.js +1 -0
  77. package/components/MazSwitch.d.ts +56 -0
  78. package/components/MazSwitch.js +1 -0
  79. package/components/MazTabsBar.d.ts +49 -0
  80. package/components/MazTabsBar.js +3 -0
  81. package/components/MazTabsContent.d.ts +16 -0
  82. package/components/MazTabsContent.js +1 -0
  83. package/components/MazTabsContentItem.d.ts +14 -0
  84. package/components/MazTabsContentItem.js +3 -0
  85. package/components/MazTextarea/textarea-autogrow.d.ts +9 -0
  86. package/components/MazTextarea.d.ts +125 -0
  87. package/components/MazTextarea.js +1 -0
  88. package/components/MazTransitionExpand.d.ts +4 -0
  89. package/components/MazTransitionExpand.js +1 -0
  90. package/components/index.d.ts +34 -0
  91. package/components/index.js +36 -0
  92. package/components/no_photo-a72545e4.js +1 -0
  93. package/components/types.d.ts +17 -0
  94. package/css/aos.css +1 -0
  95. package/css/main.css +1 -0
  96. package/maz-ui.d.ts +307 -0
  97. package/modules/index.js +3 -0
  98. package/modules/no_photo-a72545e4.js +1 -0
  99. package/package.json +145 -81
  100. package/tailwindcss/tailwind.config.js +65 -0
  101. package/tailwindcss/utils/colors.js +28 -0
  102. package/tailwindcss/variables/breakpoints.js +15 -0
  103. package/tailwindcss/variables/colors.js +44 -0
  104. package/tailwindcss/variables/utilities.js +20 -0
  105. package/tailwindcss/variables/z-indexes.js +15 -0
  106. package/LICENSE +0 -21
  107. package/README.md +0 -66
  108. package/bin/index.js +0 -63
  109. package/bin/lib/_constantes/default-colors.js +0 -69
  110. package/bin/lib/index.d.ts +0 -2
  111. package/bin/lib/index.js +0 -145
  112. package/bin/lib/methods/generate-root-css.js +0 -49
  113. package/bin/lib/methods/get-theme-settings.js +0 -58
  114. package/bin/lib/methods/set-css-vars.js +0 -11
  115. package/lib/css/base.css +0 -1
  116. package/lib/css/index.css +0 -1
  117. package/lib/css/maz-avatar.css +0 -1
  118. package/lib/css/maz-bottom-sheet.css +0 -1
  119. package/lib/css/maz-btn-group.css +0 -1
  120. package/lib/css/maz-btn.css +0 -0
  121. package/lib/css/maz-card.css +0 -1
  122. package/lib/css/maz-carousel.css +0 -1
  123. package/lib/css/maz-checkbox.css +0 -1
  124. package/lib/css/maz-collapse.css +0 -1
  125. package/lib/css/maz-dialog.css +0 -1
  126. package/lib/css/maz-draggable-list.css +0 -1
  127. package/lib/css/maz-dropdown.css +0 -1
  128. package/lib/css/maz-dropzone.css +0 -1
  129. package/lib/css/maz-flex.css +0 -0
  130. package/lib/css/maz-gallery.css +0 -0
  131. package/lib/css/maz-img.css +0 -1
  132. package/lib/css/maz-input-tags.css +0 -1
  133. package/lib/css/maz-input.css +0 -0
  134. package/lib/css/maz-list-item.css +0 -1
  135. package/lib/css/maz-list.css +0 -1
  136. package/lib/css/maz-loader.css +0 -0
  137. package/lib/css/maz-pagination.css +0 -1
  138. package/lib/css/maz-phone-number-input.css +0 -1
  139. package/lib/css/maz-picker.css +0 -1
  140. package/lib/css/maz-plotly.css +0 -0
  141. package/lib/css/maz-progress-bar.css +0 -1
  142. package/lib/css/maz-radio.css +0 -1
  143. package/lib/css/maz-read-more.css +0 -1
  144. package/lib/css/maz-responsive-menu.css +0 -1
  145. package/lib/css/maz-search.css +0 -1
  146. package/lib/css/maz-select.css +0 -0
  147. package/lib/css/maz-sidebar.css +0 -1
  148. package/lib/css/maz-slider.css +0 -1
  149. package/lib/css/maz-spinner.css +0 -0
  150. package/lib/css/maz-stepper.css +0 -1
  151. package/lib/css/maz-switch.css +0 -1
  152. package/lib/css/maz-tabs-bar.css +0 -1
  153. package/lib/css/maz-tabs-content-item.css +0 -1
  154. package/lib/css/maz-tabs-content.css +0 -1
  155. package/lib/css/maz-transition-expand.css +0 -0
  156. package/lib/index.d.ts +0 -1
  157. package/lib/index.js +0 -1
  158. package/lib/maz-avatar.d.ts +0 -3
  159. package/lib/maz-avatar.js +0 -430
  160. package/lib/maz-bottom-sheet.d.ts +0 -3
  161. package/lib/maz-bottom-sheet.js +0 -1045
  162. package/lib/maz-btn-group.d.ts +0 -3
  163. package/lib/maz-btn-group.js +0 -907
  164. package/lib/maz-btn.d.ts +0 -3
  165. package/lib/maz-btn.js +0 -764
  166. package/lib/maz-card.d.ts +0 -3
  167. package/lib/maz-card.js +0 -572
  168. package/lib/maz-carousel.d.ts +0 -3
  169. package/lib/maz-carousel.js +0 -569
  170. package/lib/maz-checkbox.d.ts +0 -3
  171. package/lib/maz-checkbox.js +0 -359
  172. package/lib/maz-collapse.d.ts +0 -3
  173. package/lib/maz-collapse.js +0 -1238
  174. package/lib/maz-dialog.d.ts +0 -3
  175. package/lib/maz-dialog.js +0 -1315
  176. package/lib/maz-draggable-list.d.ts +0 -3
  177. package/lib/maz-draggable-list.js +0 -439
  178. package/lib/maz-dropdown.d.ts +0 -3
  179. package/lib/maz-dropdown.js +0 -438
  180. package/lib/maz-dropzone.d.ts +0 -3
  181. package/lib/maz-dropzone.js +0 -664
  182. package/lib/maz-flex.d.ts +0 -3
  183. package/lib/maz-flex.js +0 -427
  184. package/lib/maz-gallery.d.ts +0 -3
  185. package/lib/maz-gallery.js +0 -672
  186. package/lib/maz-img.d.ts +0 -3
  187. package/lib/maz-img.js +0 -612
  188. package/lib/maz-input-tags.d.ts +0 -3
  189. package/lib/maz-input-tags.js +0 -1207
  190. package/lib/maz-input.d.ts +0 -3
  191. package/lib/maz-input.js +0 -1076
  192. package/lib/maz-list-item.d.ts +0 -3
  193. package/lib/maz-list-item.js +0 -304
  194. package/lib/maz-list.d.ts +0 -3
  195. package/lib/maz-list.js +0 -331
  196. package/lib/maz-loader.d.ts +0 -3
  197. package/lib/maz-loader.js +0 -304
  198. package/lib/maz-pagination.d.ts +0 -3
  199. package/lib/maz-pagination.js +0 -1414
  200. package/lib/maz-phone-number-input.d.ts +0 -3
  201. package/lib/maz-phone-number-input.js +0 -3776
  202. package/lib/maz-picker.d.ts +0 -3
  203. package/lib/maz-picker.js +0 -6474
  204. package/lib/maz-plotly.d.ts +0 -3
  205. package/lib/maz-plotly.js +0 -500
  206. package/lib/maz-progress-bar.d.ts +0 -3
  207. package/lib/maz-progress-bar.js +0 -398
  208. package/lib/maz-radio.d.ts +0 -3
  209. package/lib/maz-radio.js +0 -358
  210. package/lib/maz-read-more.d.ts +0 -3
  211. package/lib/maz-read-more.js +0 -344
  212. package/lib/maz-responsive-menu.d.ts +0 -3
  213. package/lib/maz-responsive-menu.js +0 -438
  214. package/lib/maz-search.d.ts +0 -3
  215. package/lib/maz-search.js +0 -1590
  216. package/lib/maz-select.d.ts +0 -3
  217. package/lib/maz-select.js +0 -2740
  218. package/lib/maz-sidebar.d.ts +0 -3
  219. package/lib/maz-sidebar.js +0 -815
  220. package/lib/maz-slider.d.ts +0 -3
  221. package/lib/maz-slider.js +0 -1014
  222. package/lib/maz-spinner.d.ts +0 -3
  223. package/lib/maz-spinner.js +0 -328
  224. package/lib/maz-stepper.d.ts +0 -3
  225. package/lib/maz-stepper.js +0 -1011
  226. package/lib/maz-switch.d.ts +0 -3
  227. package/lib/maz-switch.js +0 -375
  228. package/lib/maz-tabs-bar.d.ts +0 -3
  229. package/lib/maz-tabs-bar.js +0 -428
  230. package/lib/maz-tabs-content-item.d.ts +0 -3
  231. package/lib/maz-tabs-content-item.js +0 -376
  232. package/lib/maz-tabs-content.d.ts +0 -3
  233. package/lib/maz-tabs-content.js +0 -367
  234. package/lib/maz-transition-expand.d.ts +0 -3
  235. package/lib/maz-transition-expand.js +0 -328
  236. package/lib/maz-ui.common.d.ts +0 -1
  237. package/lib/maz-ui.common.js +0 -17202
@@ -1,664 +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 = 38);
86
- /******/ })
87
- /************************************************************************/
88
- /******/ ({
89
-
90
- /***/ 0:
91
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
92
-
93
- "use strict";
94
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return normalizeComponent; });
95
- /* globals __VUE_SSR_CONTEXT__ */
96
-
97
- // IMPORTANT: Do NOT use ES2015 features in this file (except for modules).
98
- // This module is a runtime utility for cleaner component module output and will
99
- // be included in the final webpack user bundle.
100
-
101
- function normalizeComponent (
102
- scriptExports,
103
- render,
104
- staticRenderFns,
105
- functionalTemplate,
106
- injectStyles,
107
- scopeId,
108
- moduleIdentifier, /* server only */
109
- shadowMode /* vue-cli only */
110
- ) {
111
- // Vue.extend constructor export interop
112
- var options = typeof scriptExports === 'function'
113
- ? scriptExports.options
114
- : scriptExports
115
-
116
- // render functions
117
- if (render) {
118
- options.render = render
119
- options.staticRenderFns = staticRenderFns
120
- options._compiled = true
121
- }
122
-
123
- // functional template
124
- if (functionalTemplate) {
125
- options.functional = true
126
- }
127
-
128
- // scopedId
129
- if (scopeId) {
130
- options._scopeId = 'data-v-' + scopeId
131
- }
132
-
133
- var hook
134
- if (moduleIdentifier) { // server build
135
- hook = function (context) {
136
- // 2.3 injection
137
- context =
138
- context || // cached call
139
- (this.$vnode && this.$vnode.ssrContext) || // stateful
140
- (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional
141
- // 2.2 with runInNewContext: true
142
- if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {
143
- context = __VUE_SSR_CONTEXT__
144
- }
145
- // inject component styles
146
- if (injectStyles) {
147
- injectStyles.call(this, context)
148
- }
149
- // register component module identifier for async chunk inferrence
150
- if (context && context._registeredComponents) {
151
- context._registeredComponents.add(moduleIdentifier)
152
- }
153
- }
154
- // used by ssr in case component is cached and beforeCreate
155
- // never gets called
156
- options._ssrRegister = hook
157
- } else if (injectStyles) {
158
- hook = shadowMode
159
- ? function () {
160
- injectStyles.call(
161
- this,
162
- (options.functional ? this.parent : this).$root.$options.shadowRoot
163
- )
164
- }
165
- : injectStyles
166
- }
167
-
168
- if (hook) {
169
- if (options.functional) {
170
- // for template-only hot-reload because in that case the render fn doesn't
171
- // go through the normalizer
172
- options._injectStyles = hook
173
- // register for functional component in vue file
174
- var originalRender = options.render
175
- options.render = function renderWithStyleInjection (h, context) {
176
- hook.call(context)
177
- return originalRender(h, context)
178
- }
179
- } else {
180
- // inject component registration as beforeCreate hook
181
- var existing = options.beforeCreate
182
- options.beforeCreate = existing
183
- ? [].concat(existing, hook)
184
- : [hook]
185
- }
186
- }
187
-
188
- return {
189
- exports: scriptExports,
190
- options: options
191
- }
192
- }
193
-
194
-
195
- /***/ }),
196
-
197
- /***/ 1:
198
- /***/ (function(module, exports, __webpack_require__) {
199
-
200
- module.exports = __webpack_require__(9);
201
-
202
-
203
- /***/ }),
204
-
205
- /***/ 18:
206
- /***/ (function(module, exports) {
207
-
208
- module.exports = require("vue2-dropzone");
209
-
210
- /***/ }),
211
-
212
- /***/ 38:
213
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
214
-
215
- "use strict";
216
- // ESM COMPAT FLAG
217
- __webpack_require__.r(__webpack_exports__);
218
-
219
- // CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./packages/components/MazDropzone/_main.vue?vue&type=template&id=210abe95&
220
- var render = function () {
221
- var _vm = this
222
- var _h = _vm.$createElement
223
- var _c = _vm._self._c || _h
224
- return _c(
225
- "VueDropzone",
226
- _vm._b(
227
- {
228
- ref: "mazDropzone",
229
- staticClass:
230
- "maz-base-component maz-dropzone maz-w-100 maz-h-100 maz-flex maz-flex-center",
231
- class: { "maz-is-dark": _vm.dark },
232
- attrs: {
233
- id: _vm.id,
234
- tabindex: "0",
235
- options: _vm.dropzoneOptions,
236
- "duplicate-check": _vm.duplicateCheck,
237
- },
238
- on: {
239
- "vdropzone-file-added": _vm.fileAdded,
240
- "vdropzone-thumbnail": _vm.thumbnail,
241
- "vdropzone-error": _vm.fileError,
242
- "vdropzone-error-multiple": _vm.fileMultipleError,
243
- "vdropzone-removed-file": _vm.fileRemoved,
244
- "vdropzone-sending": _vm.sending,
245
- "vdropzone-max-files-reached": _vm.maxFilesReached,
246
- "vdropzone-success": _vm.fileUploadSuccess,
247
- "vdropzone-success-multiple": _vm.fileUploadMultipleSuccess,
248
- "vdropzone-duplicate-file": _vm.duplicateFile,
249
- "vdropzone-s3-upload-success": _vm.s3UploadSuccess,
250
- "vdropzone-s3-upload-error": _vm.s3UploadError,
251
- "vdropzone-queue-complete": _vm.queueComplete,
252
- },
253
- nativeOn: {
254
- keydown: function ($event) {
255
- return _vm.keyDown.apply(null, arguments)
256
- },
257
- },
258
- },
259
- "VueDropzone",
260
- _vm.$attrs,
261
- false
262
- )
263
- )
264
- }
265
- var staticRenderFns = []
266
- render._withStripped = true
267
-
268
-
269
- // CONCATENATED MODULE: ./packages/components/MazDropzone/_main.vue?vue&type=template&id=210abe95&
270
-
271
- // EXTERNAL MODULE: ./node_modules/@babel/runtime/regenerator/index.js
272
- var regenerator = __webpack_require__(1);
273
- var regenerator_default = /*#__PURE__*/__webpack_require__.n(regenerator);
274
-
275
- // EXTERNAL MODULE: external "vue2-dropzone"
276
- var external_vue2_dropzone_ = __webpack_require__(18);
277
- var external_vue2_dropzone_default = /*#__PURE__*/__webpack_require__.n(external_vue2_dropzone_);
278
-
279
- // CONCATENATED MODULE: ./node_modules/babel-loader/lib!./node_modules/vue-loader/lib??vue-loader-options!./packages/components/MazDropzone/_main.vue?vue&type=script&lang=js&
280
-
281
-
282
- 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); } }
283
-
284
- 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); }); }; }
285
-
286
- function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
287
-
288
- function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
289
-
290
- function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
291
-
292
- //
293
- //
294
- //
295
- //
296
- //
297
- //
298
- //
299
- //
300
- //
301
- //
302
- //
303
- //
304
- //
305
- //
306
- //
307
- //
308
- //
309
- //
310
- //
311
- //
312
- //
313
- //
314
- //
315
- //
316
- //
317
- //
318
- //
319
-
320
- /**
321
- * @module component - mazDropzone
322
- * @param {string} url
323
- * @param {string} acceptedFiles
324
- * @param {string} paramName
325
- * @param {object} headers
326
- * @param {object} translations
327
- * @param {number} maxFiles
328
- * @param {number} maxFilesize
329
- * @emits file-upload-success
330
- * @emits file-upload-error
331
- */
332
-
333
- /* harmony default export */ var _mainvue_type_script_lang_js_ = ({
334
- name: 'MazDropzone',
335
- components: {
336
- VueDropzone: external_vue2_dropzone_default.a
337
- },
338
- props: {
339
- // URL to upload files
340
- url: {
341
- type: String,
342
- required: true
343
- },
344
- // Id of component
345
- id: {
346
- type: String,
347
- default: 'MazDropzone'
348
- },
349
- // File type accepted
350
- acceptedFiles: {
351
- type: String,
352
- default: 'image/*'
353
- },
354
- // File name uploaded
355
- paramName: {
356
- type: String,
357
- default: null
358
- },
359
- // Set request headers with your own (token, jwt)
360
- headers: {
361
- type: Object,
362
- default: null
363
- },
364
- // Messages translations (error, success)
365
- translations: {
366
- type: Object,
367
- default: null
368
- },
369
- // Max files number
370
- maxFiles: {
371
- type: Number,
372
- default: 1
373
- },
374
- // Max files size
375
- maxFilesize: {
376
- type: Number,
377
- default: 2
378
- },
379
- // User can remove files with a button
380
- addRemoveLinks: {
381
- type: Boolean,
382
- default: true
383
- },
384
- // Set dark theme
385
- dark: {
386
- type: Boolean,
387
- default: false
388
- },
389
- // If error remove all files in area
390
- removeFilesOnError: {
391
- type: Boolean,
392
- default: false
393
- },
394
- // If error remove file in area
395
- removeFileOnError: {
396
- type: Boolean,
397
- default: false
398
- },
399
- // Not upload immediatly the files
400
- autoProcessQueue: {
401
- type: Boolean,
402
- default: true
403
- },
404
- // Check files to avoid duplicates
405
- duplicateCheck: {
406
- type: Boolean,
407
- default: false
408
- },
409
- // Upload multiple files in only one request
410
- uploadMultiple: {
411
- type: Boolean,
412
- default: false
413
- }
414
- },
415
- computed: {
416
- t: function t() {
417
- var defaultTranslation = {
418
- chooseOrDropAFile: 'Choose or drop a file',
419
- filesDescriptions: "(PNG or JPG under ".concat(this.maxFilesize, "MB)"),
420
- browserIsNotSupported: 'Your browser is not supported',
421
- fileIsTooBig: "File(s) too big (max: ".concat(this.maxFilesize, " MB)"),
422
- invalidFileType: "Invalid file(s) (PNG or JPG under ".concat(this.maxFilesize, "MB)"),
423
- dictRemoveFile: 'Remove',
424
- dictCancelUpload: 'Cancel upload',
425
- dictMaxFilesExceeded: "You can not upload any more files. (max: ".concat(this.maxFiles, " files)")
426
- };
427
- return _objectSpread(_objectSpread({}, defaultTranslation), this.translations);
428
- },
429
- dropzoneOptions: function dropzoneOptions() {
430
- return _objectSpread(_objectSpread({
431
- url: this.url,
432
- acceptedFiles: this.acceptedFiles,
433
- maxFilesize: this.maxFilesize,
434
- maxFiles: this.maxFiles,
435
- autoProcessQueue: this.autoProcessQueue,
436
- uploadMultiple: this.uploadMultiple
437
- }, this.paramName ? {
438
- paramName: this.paramName
439
- } : {}), {}, {
440
- dictDefaultMessage: "\n <i class=\"material-icons\" aria-hidden=\"true\">cloud_upload</i>\n <br />\n <span>".concat(this.t.chooseOrDropAFile, "</span>\n <br />\n <span class=\"fs-12\">").concat(this.t.filesDescriptions, "</span>\n "),
441
- dictFallbackMessage: this.t.browserIsNotSupported,
442
- dictFileTooBig: this.t.fileIsTooBig,
443
- dictInvalidFileType: this.t.invalidFileType,
444
- dictRemoveFile: this.t.dictRemoveFile,
445
- dictCancelUpload: this.t.dictCancelUpload,
446
- dictMaxFilesExceeded: this.t.dictMaxFilesExceeded,
447
- addRemoveLinks: this.addRemoveLinks,
448
- previewTemplate: "\n <div class=\"dz-preview dz-file-preview maz-flex-1\">\n <div class=\"dz-image\">\n <div data-dz-thumbnail-bg></div>\n </div>\n <div class=\"dz-details maz-flex maz-direction-column maz-align-center maz-justify-center\">\n <div class=\"dz-filename\"><span data-dz-name></span></div>\n <div class=\"dz-size\"><span data-dz-size></span></div>\n </div>\n <div class=\"dz-progress\">\n <span class=\"dz-upload\" data-dz-uploadprogress></span>\n </div>\n <div class=\"dz-success-mark maz-text-center\">\n <i class=\"material-icons\" aria-hidden=\"true\">done</i>\n </div>\n <div class=\"dz-error-mark maz-text-center\">\n <i class=\"material-icons\" aria-hidden=\"true\">error_outline</i>\n </div>\n </div>\n ",
449
- headers: this.headers
450
- });
451
- }
452
- },
453
- watch: {
454
- url: function url(val) {
455
- this.$refs.mazDropzone.setOption('url', val);
456
- }
457
- },
458
- mounted: function mounted() {
459
- this.$refs.mazDropzone.setOption('url', this.url);
460
- },
461
- methods: {
462
- keyDown: function keyDown(e) {
463
- var _this = this;
464
-
465
- return _asyncToGenerator( /*#__PURE__*/regenerator_default.a.mark(function _callee() {
466
- return regenerator_default.a.wrap(function _callee$(_context) {
467
- while (1) {
468
- switch (_context.prev = _context.next) {
469
- case 0:
470
- _context.next = 2;
471
- return _this.$nextTick();
472
-
473
- case 2:
474
- if (e.keyCode === 13 || e.keyCode === 32) {
475
- e.preventDefault();
476
-
477
- _this.$refs.mazDropzone.$el.click();
478
- }
479
-
480
- case 3:
481
- case "end":
482
- return _context.stop();
483
- }
484
- }
485
- }, _callee);
486
- }))();
487
- },
488
- thumbnail: function thumbnail(file, dataUrl) {
489
- var j;
490
- var len;
491
- var ref;
492
- var thumbnailElement;
493
-
494
- if (file.previewElement) {
495
- file.previewElement.classList.remove('dz-file-preview');
496
- ref = file.previewElement.querySelectorAll('[data-dz-thumbnail-bg]');
497
-
498
- for (j = 0, len = ref.length; j < len; j++) {
499
- thumbnailElement = ref[j];
500
- thumbnailElement.alt = file.name;
501
- thumbnailElement.style.backgroundImage = "url('".concat(dataUrl, "')");
502
- }
503
-
504
- return setTimeout(function () {
505
- return function () {
506
- return file.previewElement.classList.add('dz-image-preview');
507
- };
508
- }(this), 1);
509
- }
510
- },
511
- removeAllFiles: function removeAllFiles() {
512
- return this.$refs.mazDropzone.removeAllFiles();
513
- },
514
- removeFile: function removeFile(file) {
515
- return this.$refs.mazDropzone.removeFile(file);
516
- },
517
- processQueue: function processQueue() {
518
- return this.$refs.mazDropzone.processQueue();
519
- },
520
- getAcceptedFiles: function getAcceptedFiles() {
521
- return this.$refs.mazDropzone.getAcceptedFiles();
522
- },
523
- getRejectedFiles: function getRejectedFiles() {
524
- return this.$refs.mazDropzone.getRejectedFiles();
525
- },
526
- getQueuedFiles: function getQueuedFiles() {
527
- return this.$refs.mazDropzone.getQueuedFiles();
528
- },
529
- getUploadingFiles: function getUploadingFiles() {
530
- return this.$refs.mazDropzone.getUploadingFiles();
531
- },
532
- disable: function disable() {
533
- return this.$refs.mazDropzone.disable();
534
- },
535
- enable: function enable() {
536
- return this.$refs.mazDropzone.enable();
537
- },
538
- setOption: function setOption(optionName, value) {
539
- return this.$refs.mazDropzone.setOption(optionName, value);
540
- },
541
- manuallyAddFile: function manuallyAddFile(file, fileUrl) {
542
- return this.$refs.mazDropzone.manuallyAddFile(file, fileUrl);
543
- },
544
- setAWSSigningURL: function setAWSSigningURL(url) {
545
- return this.$refs.mazDropzone.setAWSSigningURL(url);
546
- },
547
- fileAdded: function fileAdded(file) {
548
- // Called whenever a new file is dropped in the zone.
549
- // @arg File
550
- this.$emit('file-added', file);
551
- },
552
- fileUploadSuccess: function fileUploadSuccess(file, response) {
553
- // Called when the file is successfully sent.
554
- // @arg Response, File
555
- this.$emit('file-upload-success', file, response);
556
- },
557
- fileUploadMultipleSuccess: function fileUploadMultipleSuccess(files, response, xhr) {
558
- // Called when the file is successfully sent.
559
- // @arg Response, Files, XHR
560
- this.$emit('file-upload-multiple-success', response, files, xhr);
561
- },
562
- fileError: function fileError(file, error, xhr) {
563
- // Called when an error occured while uploading the file.
564
- // @arg Error, File, XHR
565
- this.$emit('file-upload-error', error, file, xhr);
566
- if (this.removeFilesOnError) this.removeAllFiles();
567
- if (this.removeFileOnError) this.removeFile(file);
568
- },
569
- fileMultipleError: function fileMultipleError(files, error) {
570
- var _this2 = this;
571
-
572
- // Called when an error occured while uploading the file.
573
- // @arg Error
574
- this.$emit('file-upload-multiple-error', error);
575
-
576
- if (this.removeFileOnError) {
577
- files.forEach(function (f) {
578
- _this2.removeFile(f);
579
- });
580
- }
581
- },
582
- maxFilesReached: function maxFilesReached(file) {
583
- // Called when the number of files accepted reaches the maxFiles limit.
584
- // @arg File
585
- this.$emit('max-files-reached', file);
586
- },
587
- s3UploadError: function s3UploadError(e) {
588
- // If error occures in AWS S3 upload.
589
- // @arg errorMessage
590
- this.$emit('s3-upload-error', e);
591
- },
592
- s3UploadSuccess: function s3UploadSuccess(e) {
593
- // When file is uploaded to AWS S3 successfully.
594
- // @arg s3ObjectLocation
595
- this.$emit('s3-upload-success', e);
596
- },
597
- fileRemoved: function fileRemoved(e) {
598
- // A file was removed from the dropzone.
599
- // @arg File
600
- this.$emit('file-removed', e);
601
- },
602
- sending: function sending(file, xhr, formData) {
603
- // Modify the request and add addtional parameters to request before sending.
604
- // @arg file, xhr, formData
605
- this.$emit('file-sending', file, xhr, formData);
606
- },
607
- duplicateFile: function duplicateFile(file) {
608
- // Fired when duplicateCheck is enabled and duplicate file is found.
609
- // @arg file
610
- this.$emit('duplicate-file', file);
611
- },
612
- queueComplete: function queueComplete(e) {
613
- // Fired when queue has been completely processed/ uploaded.
614
- this.$emit('queue-complete', e);
615
- }
616
- }
617
- });
618
- // CONCATENATED MODULE: ./packages/components/MazDropzone/_main.vue?vue&type=script&lang=js&
619
- /* harmony default export */ var MazDropzone_mainvue_type_script_lang_js_ = (_mainvue_type_script_lang_js_);
620
- // EXTERNAL MODULE: ./node_modules/vue-loader/lib/runtime/componentNormalizer.js
621
- var componentNormalizer = __webpack_require__(0);
622
-
623
- // CONCATENATED MODULE: ./packages/components/MazDropzone/_main.vue
624
-
625
-
626
-
627
-
628
-
629
- /* normalize component */
630
-
631
- var component = Object(componentNormalizer["a" /* default */])(
632
- MazDropzone_mainvue_type_script_lang_js_,
633
- render,
634
- staticRenderFns,
635
- false,
636
- null,
637
- null,
638
- null
639
-
640
- )
641
-
642
- /* hot reload */
643
- if (false) { var api; }
644
- component.options.__file = "packages/components/MazDropzone/_main.vue"
645
- /* harmony default export */ var _main = (component.exports);
646
- // CONCATENATED MODULE: ./packages/components/MazDropzone/index.js
647
-
648
-
649
- _main.install = function (Vue) {
650
- Vue.component(_main.name, _main);
651
- };
652
-
653
- /* harmony default export */ var MazDropzone = __webpack_exports__["default"] = (_main);
654
-
655
- /***/ }),
656
-
657
- /***/ 9:
658
- /***/ (function(module, exports) {
659
-
660
- module.exports = require("regenerator-runtime");
661
-
662
- /***/ })
663
-
664
- /******/ });
package/lib/maz-flex.d.ts DELETED
@@ -1,3 +0,0 @@
1
-
2
- /* Automatically generated by './build/generate-types-declarations.js' */
3
- declare module 'maz-ui/lib/maz-flex';