maz-ui 2.3.10 → 3.0.0-beta.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (198) hide show
  1. package/dist/cjs/index.js +1 -0
  2. package/dist/cjs/index.js.map +1 -0
  3. package/dist/cjs/no_photo-4ae7c0fa.js +1 -0
  4. package/dist/cjs/no_photo-4ae7c0fa.js.map +1 -0
  5. package/dist/index.js +16 -0
  6. package/dist/index.js.map +1 -0
  7. package/dist/main.css +1454 -0
  8. package/dist/no_photo-a72545e4.js +2 -0
  9. package/dist/no_photo-a72545e4.js.map +1 -0
  10. package/dist/package.json +136 -0
  11. package/dist/types/components/MazArrowIcon.vue.d.ts +37 -0
  12. package/dist/types/components/MazAvatar.vue.d.ts +110 -0
  13. package/dist/types/components/MazBackDrop.vue.d.ts +90 -0
  14. package/dist/types/components/MazBottomSheet.vue.d.ts +31 -0
  15. package/dist/types/components/MazBtn.vue.d.ts +120 -0
  16. package/dist/types/components/MazCard.vue.d.ts +149 -0
  17. package/dist/types/components/MazCheckbox.vue.d.ts +40 -0
  18. package/dist/types/components/MazDialog.vue.d.ts +15 -0
  19. package/dist/types/components/MazDropzone/index.vue.d.ts +90 -0
  20. package/dist/types/components/MazGallery.vue.d.ts +117 -0
  21. package/dist/types/components/MazIcon.vue.d.ts +63 -0
  22. package/dist/types/components/MazInput.vue.d.ts +206 -0
  23. package/dist/types/components/MazInputPrice.vue.d.ts +47 -0
  24. package/dist/types/components/MazLazyImg.vue.d.ts +69 -0
  25. package/dist/types/components/MazPhoneNumberInput/constantes/locales.d.ts +11 -0
  26. package/dist/types/components/MazPhoneNumberInput/index.vue.d.ts +195 -0
  27. package/dist/types/components/MazPhoneNumberInput/types.d.ts +19 -0
  28. package/dist/types/components/MazPhoneNumberInput/utils/countries-name-list-by-iso-code.d.ts +3 -0
  29. package/dist/types/components/MazPhoneNumberInput/utils/index.d.ts +15 -0
  30. package/dist/types/components/MazSelect.vue.d.ts +110 -0
  31. package/dist/types/components/MazSpinner.vue.d.ts +25 -0
  32. package/dist/types/components/MazTransitionExpand.vue.d.ts +4 -0
  33. package/dist/types/components/index.d.ts +18 -0
  34. package/dist/types/components/types.d.ts +50 -0
  35. package/dist/types/components_tmp/MazCalendar/types.d.ts +16 -0
  36. package/dist/types/components_tmp/MazChart/includes.d.ts +11 -0
  37. package/dist/types/components_tmp/MazMap/map-module/create-html-marker.d.ts +18 -0
  38. package/dist/types/components_tmp/MazMap/map-module/map.d.ts +43 -0
  39. package/dist/types/components_tmp/MazMap/map-module/script-loader.d.ts +17 -0
  40. package/dist/types/components_tmp/MazPromiseDialog/use-maz-promise-dialog.d.ts +28 -0
  41. package/dist/types/components_tmp/MazSlider/utils.d.ts +15 -0
  42. package/dist/types/components_tmp/MazTabs/maz-tabs.composable.d.ts +3 -0
  43. package/dist/types/components_tmp/toaster/index.d.ts +3 -0
  44. package/dist/types/components_tmp/toaster/positions.d.ts +8 -0
  45. package/dist/types/components_tmp/toaster/timer.d.ts +11 -0
  46. package/dist/types/components_tmp/toaster/use-toast.d.ts +21 -0
  47. package/dist/types/directives/click-outside.directive.d.ts +10 -0
  48. package/dist/types/directives/closable.directive.d.ts +5 -0
  49. package/dist/types/directives/index.d.ts +4 -0
  50. package/dist/types/directives/v-lazy-img/index.d.ts +9 -0
  51. package/dist/types/directives/v-lazy-img/lazy-img-handler.d.ts +38 -0
  52. package/dist/types/directives/v-lazy-img/lazy-img.directive.d.ts +3 -0
  53. package/dist/types/directives/v-lazy-img/types.d.ts +51 -0
  54. package/dist/types/directives/zoom-img.directive.d.ts +5 -0
  55. package/dist/types/filters/capitalize.d.ts +1 -0
  56. package/dist/types/filters/currency.d.ts +5 -0
  57. package/dist/types/filters/date.d.ts +1 -0
  58. package/dist/types/filters/index.d.ts +5 -0
  59. package/dist/types/filters/number.d.ts +1 -0
  60. package/dist/types/filters/telephone.d.ts +1 -0
  61. package/dist/types/index.d.ts +7 -0
  62. package/dist/types/index.esm.d.ts +8 -0
  63. package/dist/types/utils/debounce.d.ts +7 -0
  64. package/dist/types/utils/index.d.ts +1 -0
  65. package/dist/types/utils/injectStrict.d.ts +1 -0
  66. package/package.json +103 -84
  67. package/LICENSE +0 -21
  68. package/README.md +0 -66
  69. package/bin/index.js +0 -63
  70. package/bin/lib/_constantes/default-colors.js +0 -69
  71. package/bin/lib/index.d.ts +0 -2
  72. package/bin/lib/index.js +0 -145
  73. package/bin/lib/methods/generate-root-css.js +0 -49
  74. package/bin/lib/methods/get-theme-settings.js +0 -58
  75. package/bin/lib/methods/set-css-vars.js +0 -11
  76. package/lib/css/base.css +0 -1
  77. package/lib/css/index.css +0 -1
  78. package/lib/css/maz-avatar.css +0 -1
  79. package/lib/css/maz-bottom-sheet.css +0 -1
  80. package/lib/css/maz-btn-group.css +0 -1
  81. package/lib/css/maz-btn.css +0 -0
  82. package/lib/css/maz-card.css +0 -1
  83. package/lib/css/maz-carousel.css +0 -1
  84. package/lib/css/maz-checkbox.css +0 -1
  85. package/lib/css/maz-collapse.css +0 -1
  86. package/lib/css/maz-dialog.css +0 -1
  87. package/lib/css/maz-draggable-list.css +0 -1
  88. package/lib/css/maz-dropdown.css +0 -1
  89. package/lib/css/maz-dropzone.css +0 -1
  90. package/lib/css/maz-flex.css +0 -0
  91. package/lib/css/maz-gallery.css +0 -0
  92. package/lib/css/maz-img.css +0 -1
  93. package/lib/css/maz-input-tags.css +0 -1
  94. package/lib/css/maz-input.css +0 -0
  95. package/lib/css/maz-list-item.css +0 -1
  96. package/lib/css/maz-list.css +0 -1
  97. package/lib/css/maz-loader.css +0 -0
  98. package/lib/css/maz-pagination.css +0 -1
  99. package/lib/css/maz-phone-number-input.css +0 -1
  100. package/lib/css/maz-picker.css +0 -1
  101. package/lib/css/maz-plotly.css +0 -0
  102. package/lib/css/maz-progress-bar.css +0 -1
  103. package/lib/css/maz-radio.css +0 -1
  104. package/lib/css/maz-read-more.css +0 -1
  105. package/lib/css/maz-responsive-menu.css +0 -1
  106. package/lib/css/maz-search.css +0 -1
  107. package/lib/css/maz-select.css +0 -0
  108. package/lib/css/maz-sidebar.css +0 -1
  109. package/lib/css/maz-slider.css +0 -1
  110. package/lib/css/maz-spinner.css +0 -0
  111. package/lib/css/maz-stepper.css +0 -1
  112. package/lib/css/maz-switch.css +0 -1
  113. package/lib/css/maz-tabs-bar.css +0 -1
  114. package/lib/css/maz-tabs-content-item.css +0 -1
  115. package/lib/css/maz-tabs-content.css +0 -1
  116. package/lib/css/maz-transition-expand.css +0 -0
  117. package/lib/index.d.ts +0 -1
  118. package/lib/index.js +0 -1
  119. package/lib/maz-avatar.d.ts +0 -3
  120. package/lib/maz-avatar.js +0 -430
  121. package/lib/maz-bottom-sheet.d.ts +0 -3
  122. package/lib/maz-bottom-sheet.js +0 -1046
  123. package/lib/maz-btn-group.d.ts +0 -3
  124. package/lib/maz-btn-group.js +0 -908
  125. package/lib/maz-btn.d.ts +0 -3
  126. package/lib/maz-btn.js +0 -765
  127. package/lib/maz-card.d.ts +0 -3
  128. package/lib/maz-card.js +0 -571
  129. package/lib/maz-carousel.d.ts +0 -3
  130. package/lib/maz-carousel.js +0 -569
  131. package/lib/maz-checkbox.d.ts +0 -3
  132. package/lib/maz-checkbox.js +0 -359
  133. package/lib/maz-collapse.d.ts +0 -3
  134. package/lib/maz-collapse.js +0 -1239
  135. package/lib/maz-dialog.d.ts +0 -3
  136. package/lib/maz-dialog.js +0 -1315
  137. package/lib/maz-draggable-list.d.ts +0 -3
  138. package/lib/maz-draggable-list.js +0 -439
  139. package/lib/maz-dropdown.d.ts +0 -3
  140. package/lib/maz-dropdown.js +0 -438
  141. package/lib/maz-dropzone.d.ts +0 -3
  142. package/lib/maz-dropzone.js +0 -664
  143. package/lib/maz-flex.d.ts +0 -3
  144. package/lib/maz-flex.js +0 -427
  145. package/lib/maz-gallery.d.ts +0 -3
  146. package/lib/maz-gallery.js +0 -673
  147. package/lib/maz-img.d.ts +0 -3
  148. package/lib/maz-img.js +0 -613
  149. package/lib/maz-input-tags.d.ts +0 -3
  150. package/lib/maz-input-tags.js +0 -1208
  151. package/lib/maz-input.d.ts +0 -3
  152. package/lib/maz-input.js +0 -1076
  153. package/lib/maz-list-item.d.ts +0 -3
  154. package/lib/maz-list-item.js +0 -304
  155. package/lib/maz-list.d.ts +0 -3
  156. package/lib/maz-list.js +0 -331
  157. package/lib/maz-loader.d.ts +0 -3
  158. package/lib/maz-loader.js +0 -304
  159. package/lib/maz-pagination.d.ts +0 -3
  160. package/lib/maz-pagination.js +0 -1415
  161. package/lib/maz-phone-number-input.d.ts +0 -3
  162. package/lib/maz-phone-number-input.js +0 -3778
  163. package/lib/maz-picker.d.ts +0 -3
  164. package/lib/maz-picker.js +0 -6472
  165. package/lib/maz-plotly.d.ts +0 -3
  166. package/lib/maz-plotly.js +0 -500
  167. package/lib/maz-progress-bar.d.ts +0 -3
  168. package/lib/maz-progress-bar.js +0 -398
  169. package/lib/maz-radio.d.ts +0 -3
  170. package/lib/maz-radio.js +0 -358
  171. package/lib/maz-read-more.d.ts +0 -3
  172. package/lib/maz-read-more.js +0 -344
  173. package/lib/maz-responsive-menu.d.ts +0 -3
  174. package/lib/maz-responsive-menu.js +0 -438
  175. package/lib/maz-search.d.ts +0 -3
  176. package/lib/maz-search.js +0 -1590
  177. package/lib/maz-select.d.ts +0 -3
  178. package/lib/maz-select.js +0 -2743
  179. package/lib/maz-sidebar.d.ts +0 -3
  180. package/lib/maz-sidebar.js +0 -815
  181. package/lib/maz-slider.d.ts +0 -3
  182. package/lib/maz-slider.js +0 -1014
  183. package/lib/maz-spinner.d.ts +0 -3
  184. package/lib/maz-spinner.js +0 -329
  185. package/lib/maz-stepper.d.ts +0 -3
  186. package/lib/maz-stepper.js +0 -1012
  187. package/lib/maz-switch.d.ts +0 -3
  188. package/lib/maz-switch.js +0 -375
  189. package/lib/maz-tabs-bar.d.ts +0 -3
  190. package/lib/maz-tabs-bar.js +0 -428
  191. package/lib/maz-tabs-content-item.d.ts +0 -3
  192. package/lib/maz-tabs-content-item.js +0 -376
  193. package/lib/maz-tabs-content.d.ts +0 -3
  194. package/lib/maz-tabs-content.js +0 -367
  195. package/lib/maz-transition-expand.d.ts +0 -3
  196. package/lib/maz-transition-expand.js +0 -328
  197. package/lib/maz-ui.common.d.ts +0 -1
  198. package/lib/maz-ui.common.js +0 -17200
@@ -1,673 +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 = 26);
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
- /***/ 13:
198
- /***/ (function(module, exports) {
199
-
200
- module.exports = require("vue-zoom-img");
201
-
202
- /***/ }),
203
-
204
- /***/ 26:
205
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
206
-
207
- "use strict";
208
- // ESM COMPAT FLAG
209
- __webpack_require__.r(__webpack_exports__);
210
-
211
- // CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./packages/components/MazGallery/_main.vue?vue&type=template&id=74afc78c&
212
- var render = function() {
213
- var _vm = this
214
- var _h = _vm.$createElement
215
- var _c = _vm._self._c || _h
216
- return _vm.images.length || _vm.hasEmptyLayer
217
- ? _c(
218
- "div",
219
- {
220
- staticClass: "maz-gallery maz-base-component maz-flex",
221
- class: { "maz-border-radius": _vm.radius },
222
- style: [_vm.sizeStyle]
223
- },
224
- [
225
- _c(
226
- "section",
227
- { staticClass: "maz-gallery__wrapper maz-flex maz-flex-1" },
228
- [
229
- _vm._l(_vm.imagesShown, function(image, i) {
230
- return _c(
231
- "figure",
232
- {
233
- key: i,
234
- staticClass: "maz-gallery__item maz-flex maz-flex-center",
235
- class: ["maz-gallery__item--" + (i + 1)]
236
- },
237
- [
238
- _c("img", {
239
- directives: [
240
- {
241
- name: "zoom-img",
242
- rawName: "v-zoom-img",
243
- value: {
244
- src: image.slug,
245
- alt: image.alt,
246
- disabled:
247
- !_vm.zoom || _vm.shouldHaveRemainingLayer(i),
248
- blur: _vm.blur,
249
- scale: _vm.scale
250
- },
251
- expression:
252
- "{ src: image.slug, alt: image.alt, disabled: !zoom || shouldHaveRemainingLayer(i), blur: blur, scale: scale }"
253
- },
254
- {
255
- name: "lazy-img",
256
- rawName: "v-lazy-img:background-image",
257
- value: { slug: image.slug, disabled: !_vm.lazy },
258
- expression: "{ slug: image.slug, disabled: !lazy }",
259
- arg: "background-image"
260
- }
261
- ],
262
- staticClass: "maz-gallery__item__image maz-flex-1",
263
- attrs: {
264
- src:
265
- "data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7",
266
- alt: image.alt
267
- }
268
- }),
269
- _vm.shouldHaveRemainingLayer(i)
270
- ? _c(
271
- "div",
272
- {
273
- directives: [
274
- {
275
- name: "zoom-img",
276
- rawName: "v-zoom-img",
277
- value: {
278
- src: image.slug,
279
- alt: image.alt,
280
- disabled: !_vm.zoom,
281
- blur: _vm.blur,
282
- scale: _vm.scale
283
- },
284
- expression:
285
- "{ src: image.slug, alt: image.alt, disabled: !zoom, blur: blur, scale: scale }"
286
- }
287
- ],
288
- staticClass:
289
- "maz-gallery__remaining-layer maz-flex maz-flex-center maz-bg-overlay"
290
- },
291
- [
292
- _c("span", [
293
- _vm._v("+" + _vm._s(_vm.numberImagesRemaining))
294
- ])
295
- ]
296
- )
297
- : _vm._e()
298
- ]
299
- )
300
- }),
301
- _vm.hasEmptyLayer && !_vm.images.length
302
- ? _c(
303
- "div",
304
- {
305
- staticClass:
306
- "maz-bg-color-light maz-flex maz-flex-center maz-w-100",
307
- class: { "maz-border-radius": _vm.radius },
308
- style: [_vm.sizeStyle]
309
- },
310
- [
311
- _c(
312
- "i",
313
- { staticClass: "material-icons maz-text-muted" },
314
- [_vm._v("no_photography")]
315
- )
316
- ]
317
- )
318
- : _vm._e()
319
- ],
320
- 2
321
- ),
322
- _vm._l(_vm.imagesHidden, function(image, i) {
323
- return _c("div", {
324
- directives: [
325
- {
326
- name: "zoom-img",
327
- rawName: "v-zoom-img",
328
- value: { src: image.slug, disabled: !_vm.zoom },
329
- expression: "{ src: image.slug, disabled: !zoom }"
330
- }
331
- ],
332
- key: i,
333
- staticClass: "maz-gallery__hidden"
334
- })
335
- })
336
- ],
337
- 2
338
- )
339
- : _vm._e()
340
- }
341
- var staticRenderFns = []
342
- render._withStripped = true
343
-
344
-
345
- // CONCATENATED MODULE: ./packages/components/MazGallery/_main.vue?vue&type=template&id=74afc78c&
346
-
347
- // EXTERNAL MODULE: external "vue-zoom-img"
348
- var external_vue_zoom_img_ = __webpack_require__(13);
349
- var external_vue_zoom_img_default = /*#__PURE__*/__webpack_require__.n(external_vue_zoom_img_);
350
-
351
- // CONCATENATED MODULE: ./packages/directives/v-lazy-img/index.js
352
- 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); }
353
-
354
- var observers = [];
355
-
356
- var success = function success(el) {
357
- setTimeout(function () {
358
- return el.classList.add('maz-lazy-loaded');
359
- }, 100);
360
- };
361
-
362
- var error = function error(el) {
363
- setTimeout(function () {
364
- return el.classList.add('maz-lazy-loaded');
365
- }, 100);
366
- };
367
-
368
- var loadImage = function loadImage(el, binding) {
369
- var valueNormalized = _typeof(binding.value) === 'object' ? binding.value : {
370
- slug: binding.value,
371
- disabled: false
372
- };
373
- el.addEventListener('load', function () {
374
- return success(el);
375
- });
376
- el.addEventListener('error', function () {
377
- return error(el);
378
- });
379
-
380
- if (binding.arg === 'background-image') {
381
- el.style.backgroundImage = "url('".concat(valueNormalized.slug, "')");
382
- success(el);
383
- } else {
384
- el.src = valueNormalized.slug;
385
- }
386
- };
387
-
388
- var handleIntersect = function handleIntersect(el, binding, entries, observer) {
389
- observers.push(observer);
390
- entries.forEach(function (entry) {
391
- if (entry.isIntersecting) {
392
- loadImage(el, binding);
393
- observer.unobserve(el);
394
- }
395
- });
396
- };
397
-
398
- var createObserver = function createObserver(el, binding) {
399
- var options = {
400
- root: null,
401
- threshold: '0'
402
- };
403
- var observer = new IntersectionObserver(function (entries, observer) {
404
- return handleIntersect(el, binding, entries, observer);
405
- }, options);
406
- observer.observe(el);
407
- };
408
-
409
- var imageHandler = function imageHandler(el, binding, type) {
410
- if (type === 'update') {
411
- // Clean all previous observers
412
- observers.forEach(function (observer) {
413
- return observer.unobserve(el);
414
- });
415
- }
416
-
417
- if (window.IntersectionObserver) {
418
- createObserver(el, binding);
419
- } else {
420
- loadImage(el, binding);
421
- }
422
- };
423
-
424
- /* harmony default export */ var v_lazy_img = ({
425
- bind: function bind(el, binding) {
426
- return imageHandler(el, binding, 'bind');
427
- },
428
- update: function update(el, binding) {
429
- return imageHandler(el, binding, 'update');
430
- },
431
- unbind: function unbind(el, binding) {
432
- if (binding.arg === 'background-image') el.style.backgroundImage = undefined;
433
- el.classList.remove('maz-lazy-loaded');
434
- el.classList.remove('maz-lazy-error');
435
- el.removeEventListener('load', function () {
436
- return success(el);
437
- });
438
- el.removeEventListener('error', function () {
439
- return error(el);
440
- });
441
- observers.forEach(function (observer) {
442
- return observer.unobserve(el);
443
- });
444
- observers = [];
445
- }
446
- });
447
- // CONCATENATED MODULE: ./node_modules/babel-loader/lib!./node_modules/vue-loader/lib??vue-loader-options!./packages/components/MazGallery/_main.vue?vue&type=script&lang=js&
448
- function _mainvue_type_script_lang_js_typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _mainvue_type_script_lang_js_typeof = function _typeof(obj) { return typeof obj; }; } else { _mainvue_type_script_lang_js_typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _mainvue_type_script_lang_js_typeof(obj); }
449
-
450
- function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); keys.push.apply(keys, symbols); } return keys; }
451
-
452
- function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys(Object(source), true).forEach(function (key) { _defineProperty(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; }
453
-
454
- 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; }
455
-
456
- //
457
- //
458
- //
459
- //
460
- //
461
- //
462
- //
463
- //
464
- //
465
- //
466
- //
467
- //
468
- //
469
- //
470
- //
471
- //
472
- //
473
- //
474
- //
475
- //
476
- //
477
- //
478
- //
479
- //
480
- //
481
- //
482
- //
483
- //
484
- //
485
- //
486
- //
487
- //
488
- //
489
- //
490
- //
491
- //
492
- //
493
- //
494
- //
495
- //
496
- //
497
- //
498
- //
499
- //
500
- //
501
- //
502
- //
503
- //
504
- //
505
-
506
-
507
- /* harmony default export */ var _mainvue_type_script_lang_js_ = ({
508
- name: 'MazGallery',
509
- directives: {
510
- 'zoom-img': external_vue_zoom_img_default.a,
511
- 'lazy-img': v_lazy_img
512
- },
513
- props: {
514
- // Array of string or object: `['https://via.placeholder.com/500', 'https://via.placeholder.com/600']` or `[{ slug: 'https://via.placeholder.com/500', alt: 'image descripton' }, { slug: 'https://via.placeholder.com/600', alt: 'image descripton' }]`
515
- images: {
516
- type: Array,
517
- default: Array
518
- },
519
- // Images count shown (max: 5)
520
- imagesShownCount: {
521
- type: Number,
522
- default: 5
523
- },
524
- // Remove transparent layer with the remain count (ex: +2)
525
- noRemaining: {
526
- type: Boolean,
527
- default: false
528
- },
529
- // Height of gallery
530
- height: {
531
- type: [Number, String],
532
- default: 150
533
- },
534
- // Remove default height
535
- noHeight: {
536
- type: Boolean,
537
- default: false
538
- },
539
- // Width of gallery
540
- width: {
541
- type: [Number, String],
542
- default: '100%'
543
- },
544
- // Remove default width
545
- noWidth: {
546
- type: Boolean,
547
- default: false
548
- },
549
- // Add the default border radius to gallery
550
- radius: {
551
- type: Boolean,
552
- default: true
553
- },
554
- // Add feature to show the carousel images on click
555
- zoom: {
556
- type: Boolean,
557
- default: true
558
- },
559
- // Layer with photography icon when no images is provided
560
- hasEmptyLayer: {
561
- type: Boolean,
562
- default: true
563
- },
564
- // Lazy load image - if false, images are directly loaded
565
- lazy: {
566
- type: Boolean,
567
- default: true
568
- },
569
- // Blur animation effect on image hover
570
- blur: {
571
- type: Boolean,
572
- default: true
573
- },
574
- // Scale animation effect on image hover
575
- scale: {
576
- type: Boolean,
577
- default: true
578
- }
579
- },
580
- computed: {
581
- sizeStyle: function sizeStyle() {
582
- var height = this.height,
583
- width = this.width,
584
- noWidth = this.noWidth,
585
- noHeight = this.noHeight;
586
- return _objectSpread(_objectSpread({}, !noWidth ? {
587
- flex: "0 0 ".concat(Number.isInteger(width) ? "".concat(width, "px") : width),
588
- width: Number.isInteger(width) ? "".concat(width, "px") : width
589
- } : {}), !noHeight ? {
590
- height: Number.isInteger(height) ? "".concat(height, "px") : "".concat(height),
591
- minHeight: Number.isInteger(height) ? "".concat(height, "px") : "".concat(height)
592
- } : {});
593
- },
594
- imagesCount: function imagesCount() {
595
- var imagesShownCount = this.imagesShownCount;
596
- return imagesShownCount <= 5 ? imagesShownCount : 5;
597
- },
598
- numberImagesRemaining: function numberImagesRemaining() {
599
- var images = this.images,
600
- imagesCount = this.imagesCount;
601
- return images.length - (images.length < imagesCount ? images.length : imagesCount);
602
- },
603
- imagesNormalized: function imagesNormalized() {
604
- var images = this.images;
605
- return images.map(function (i) {
606
- return _mainvue_type_script_lang_js_typeof(i) === 'object' ? i : {
607
- slug: i,
608
- alt: null
609
- };
610
- });
611
- },
612
- imagesShown: function imagesShown() {
613
- var imagesNormalized = this.imagesNormalized,
614
- imagesCount = this.imagesCount;
615
- return imagesNormalized.slice(0, imagesCount);
616
- },
617
- imagesHidden: function imagesHidden() {
618
- var imagesNormalized = this.imagesNormalized,
619
- imagesCount = this.imagesCount,
620
- images = this.images;
621
- return imagesNormalized.slice(imagesCount, images.length);
622
- }
623
- },
624
- created: function created() {
625
- var imagesShownCount = this.imagesShownCount;
626
- if (imagesShownCount > 5) console.warn('[MazUI](maz-gallery) The maximum of "images-shown-count" is 5');
627
- },
628
- methods: {
629
- shouldHaveRemainingLayer: function shouldHaveRemainingLayer(i) {
630
- return this.numberImagesRemaining && i + 1 === this.imagesShown.length && !this.noRemaining;
631
- }
632
- }
633
- });
634
- // CONCATENATED MODULE: ./packages/components/MazGallery/_main.vue?vue&type=script&lang=js&
635
- /* harmony default export */ var MazGallery_mainvue_type_script_lang_js_ = (_mainvue_type_script_lang_js_);
636
- // EXTERNAL MODULE: ./node_modules/vue-loader/lib/runtime/componentNormalizer.js
637
- var componentNormalizer = __webpack_require__(0);
638
-
639
- // CONCATENATED MODULE: ./packages/components/MazGallery/_main.vue
640
-
641
-
642
-
643
-
644
-
645
- /* normalize component */
646
-
647
- var component = Object(componentNormalizer["a" /* default */])(
648
- MazGallery_mainvue_type_script_lang_js_,
649
- render,
650
- staticRenderFns,
651
- false,
652
- null,
653
- null,
654
- null
655
-
656
- )
657
-
658
- /* hot reload */
659
- if (false) { var api; }
660
- component.options.__file = "packages/components/MazGallery/_main.vue"
661
- /* harmony default export */ var _main = (component.exports);
662
- // CONCATENATED MODULE: ./packages/components/MazGallery/index.js
663
-
664
-
665
- _main.install = function (Vue) {
666
- Vue.component(_main.name, _main);
667
- };
668
-
669
- /* harmony default export */ var MazGallery = __webpack_exports__["default"] = (_main);
670
-
671
- /***/ })
672
-
673
- /******/ });
package/lib/maz-img.d.ts DELETED
@@ -1,3 +0,0 @@
1
-
2
- /* Automatically generated by './build/generate-types-declarations.js' */
3
- declare module 'maz-ui/lib/maz-img';