maz-ui 2.3.12 → 3.0.0-beta.13
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.
- package/css/main.css +1454 -0
- package/lib/cjs/index.js +1 -0
- package/lib/cjs/index.js.map +1 -0
- package/lib/cjs/no_photo-4ae7c0fa.js +1 -0
- package/lib/cjs/no_photo-4ae7c0fa.js.map +1 -0
- package/lib/index.js +16 -1
- package/lib/index.js.map +1 -0
- package/lib/no_photo-a72545e4.js +2 -0
- package/lib/no_photo-a72545e4.js.map +1 -0
- package/package.json +103 -84
- package/types/components/MazArrowIcon.vue.d.ts +37 -0
- package/types/components/MazAvatar.vue.d.ts +110 -0
- package/types/components/MazBackDrop.vue.d.ts +90 -0
- package/types/components/MazBottomSheet.vue.d.ts +31 -0
- package/types/components/MazBtn.vue.d.ts +120 -0
- package/types/components/MazCard.vue.d.ts +149 -0
- package/types/components/MazCheckbox.vue.d.ts +40 -0
- package/types/components/MazDialog.vue.d.ts +15 -0
- package/types/components/MazDropzone/index.vue.d.ts +91 -0
- package/types/components/MazGallery.vue.d.ts +117 -0
- package/types/components/MazIcon.vue.d.ts +63 -0
- package/types/components/MazInput.vue.d.ts +206 -0
- package/types/components/MazInputPrice.vue.d.ts +47 -0
- package/types/components/MazLazyImg.vue.d.ts +69 -0
- package/types/components/MazPhoneNumberInput/constantes/locales.d.ts +11 -0
- package/types/components/MazPhoneNumberInput/index.vue.d.ts +195 -0
- package/types/components/MazPhoneNumberInput/types.d.ts +19 -0
- package/types/components/MazPhoneNumberInput/utils/countries-name-list-by-iso-code.d.ts +3 -0
- package/types/components/MazPhoneNumberInput/utils/index.d.ts +15 -0
- package/types/components/MazSelect.vue.d.ts +110 -0
- package/types/components/MazSpinner.vue.d.ts +25 -0
- package/types/components/MazTransitionExpand.vue.d.ts +4 -0
- package/types/components/index.d.ts +18 -0
- package/types/components/types.d.ts +50 -0
- package/types/components_tmp/MazCalendar/types.d.ts +16 -0
- package/types/components_tmp/MazChart/includes.d.ts +11 -0
- package/types/components_tmp/MazMap/map-module/create-html-marker.d.ts +18 -0
- package/types/components_tmp/MazMap/map-module/map.d.ts +43 -0
- package/types/components_tmp/MazMap/map-module/script-loader.d.ts +17 -0
- package/types/components_tmp/MazPromiseDialog/use-maz-promise-dialog.d.ts +28 -0
- package/types/components_tmp/MazSlider/utils.d.ts +15 -0
- package/types/components_tmp/MazTabs/maz-tabs.composable.d.ts +3 -0
- package/types/components_tmp/toaster/index.d.ts +3 -0
- package/types/components_tmp/toaster/positions.d.ts +8 -0
- package/types/components_tmp/toaster/timer.d.ts +11 -0
- package/types/components_tmp/toaster/use-toast.d.ts +21 -0
- package/types/directives/click-outside.directive.d.ts +10 -0
- package/types/directives/closable.directive.d.ts +5 -0
- package/types/directives/index.d.ts +4 -0
- package/types/directives/v-lazy-img/index.d.ts +9 -0
- package/types/directives/v-lazy-img/lazy-img-handler.d.ts +38 -0
- package/types/directives/v-lazy-img/lazy-img.directive.d.ts +3 -0
- package/types/directives/v-lazy-img/types.d.ts +51 -0
- package/types/directives/zoom-img.directive.d.ts +5 -0
- package/types/filters/capitalize.d.ts +1 -0
- package/types/filters/currency.d.ts +5 -0
- package/types/filters/date.d.ts +1 -0
- package/types/filters/index.d.ts +5 -0
- package/types/filters/number.d.ts +1 -0
- package/types/filters/telephone.d.ts +1 -0
- package/types/index.d.ts +9 -0
- package/types/index.esm.d.ts +10 -0
- package/types/utils/debounce.d.ts +7 -0
- package/types/utils/index.d.ts +1 -0
- package/types/utils/injectStrict.d.ts +1 -0
- package/LICENSE +0 -21
- package/README.md +0 -66
- package/bin/index.js +0 -63
- package/bin/lib/_constantes/default-colors.js +0 -69
- package/bin/lib/index.d.ts +0 -2
- package/bin/lib/index.js +0 -145
- package/bin/lib/methods/generate-root-css.js +0 -49
- package/bin/lib/methods/get-theme-settings.js +0 -58
- package/bin/lib/methods/set-css-vars.js +0 -11
- package/lib/css/base.css +0 -1
- package/lib/css/index.css +0 -1
- package/lib/css/maz-avatar.css +0 -1
- package/lib/css/maz-bottom-sheet.css +0 -1
- package/lib/css/maz-btn-group.css +0 -1
- package/lib/css/maz-btn.css +0 -0
- package/lib/css/maz-card.css +0 -1
- package/lib/css/maz-carousel.css +0 -1
- package/lib/css/maz-checkbox.css +0 -1
- package/lib/css/maz-collapse.css +0 -1
- package/lib/css/maz-dialog.css +0 -1
- package/lib/css/maz-draggable-list.css +0 -1
- package/lib/css/maz-dropdown.css +0 -1
- package/lib/css/maz-dropzone.css +0 -1
- package/lib/css/maz-flex.css +0 -0
- package/lib/css/maz-gallery.css +0 -0
- package/lib/css/maz-img.css +0 -1
- package/lib/css/maz-input-tags.css +0 -1
- package/lib/css/maz-input.css +0 -0
- package/lib/css/maz-list-item.css +0 -1
- package/lib/css/maz-list.css +0 -1
- package/lib/css/maz-loader.css +0 -0
- package/lib/css/maz-pagination.css +0 -1
- package/lib/css/maz-phone-number-input.css +0 -1
- package/lib/css/maz-picker.css +0 -1
- package/lib/css/maz-plotly.css +0 -0
- package/lib/css/maz-progress-bar.css +0 -1
- package/lib/css/maz-radio.css +0 -1
- package/lib/css/maz-read-more.css +0 -1
- package/lib/css/maz-responsive-menu.css +0 -1
- package/lib/css/maz-search.css +0 -1
- package/lib/css/maz-select.css +0 -0
- package/lib/css/maz-sidebar.css +0 -1
- package/lib/css/maz-slider.css +0 -1
- package/lib/css/maz-spinner.css +0 -0
- package/lib/css/maz-stepper.css +0 -1
- package/lib/css/maz-switch.css +0 -1
- package/lib/css/maz-tabs-bar.css +0 -1
- package/lib/css/maz-tabs-content-item.css +0 -1
- package/lib/css/maz-tabs-content.css +0 -1
- package/lib/css/maz-transition-expand.css +0 -0
- package/lib/index.d.ts +0 -1
- package/lib/maz-avatar.d.ts +0 -3
- package/lib/maz-avatar.js +0 -430
- package/lib/maz-bottom-sheet.d.ts +0 -3
- package/lib/maz-bottom-sheet.js +0 -1045
- package/lib/maz-btn-group.d.ts +0 -3
- package/lib/maz-btn-group.js +0 -907
- package/lib/maz-btn.d.ts +0 -3
- package/lib/maz-btn.js +0 -764
- package/lib/maz-card.d.ts +0 -3
- package/lib/maz-card.js +0 -572
- package/lib/maz-carousel.d.ts +0 -3
- package/lib/maz-carousel.js +0 -569
- package/lib/maz-checkbox.d.ts +0 -3
- package/lib/maz-checkbox.js +0 -359
- package/lib/maz-collapse.d.ts +0 -3
- package/lib/maz-collapse.js +0 -1238
- package/lib/maz-dialog.d.ts +0 -3
- package/lib/maz-dialog.js +0 -1315
- package/lib/maz-draggable-list.d.ts +0 -3
- package/lib/maz-draggable-list.js +0 -439
- package/lib/maz-dropdown.d.ts +0 -3
- package/lib/maz-dropdown.js +0 -438
- package/lib/maz-dropzone.d.ts +0 -3
- package/lib/maz-dropzone.js +0 -664
- package/lib/maz-flex.d.ts +0 -3
- package/lib/maz-flex.js +0 -427
- package/lib/maz-gallery.d.ts +0 -3
- package/lib/maz-gallery.js +0 -672
- package/lib/maz-img.d.ts +0 -3
- package/lib/maz-img.js +0 -612
- package/lib/maz-input-tags.d.ts +0 -3
- package/lib/maz-input-tags.js +0 -1207
- package/lib/maz-input.d.ts +0 -3
- package/lib/maz-input.js +0 -1076
- package/lib/maz-list-item.d.ts +0 -3
- package/lib/maz-list-item.js +0 -304
- package/lib/maz-list.d.ts +0 -3
- package/lib/maz-list.js +0 -331
- package/lib/maz-loader.d.ts +0 -3
- package/lib/maz-loader.js +0 -304
- package/lib/maz-pagination.d.ts +0 -3
- package/lib/maz-pagination.js +0 -1414
- package/lib/maz-phone-number-input.d.ts +0 -3
- package/lib/maz-phone-number-input.js +0 -3782
- package/lib/maz-picker.d.ts +0 -3
- package/lib/maz-picker.js +0 -6474
- package/lib/maz-plotly.d.ts +0 -3
- package/lib/maz-plotly.js +0 -500
- package/lib/maz-progress-bar.d.ts +0 -3
- package/lib/maz-progress-bar.js +0 -398
- package/lib/maz-radio.d.ts +0 -3
- package/lib/maz-radio.js +0 -358
- package/lib/maz-read-more.d.ts +0 -3
- package/lib/maz-read-more.js +0 -344
- package/lib/maz-responsive-menu.d.ts +0 -3
- package/lib/maz-responsive-menu.js +0 -438
- package/lib/maz-search.d.ts +0 -3
- package/lib/maz-search.js +0 -1590
- package/lib/maz-select.d.ts +0 -3
- package/lib/maz-select.js +0 -2740
- package/lib/maz-sidebar.d.ts +0 -3
- package/lib/maz-sidebar.js +0 -815
- package/lib/maz-slider.d.ts +0 -3
- package/lib/maz-slider.js +0 -1014
- package/lib/maz-spinner.d.ts +0 -3
- package/lib/maz-spinner.js +0 -328
- package/lib/maz-stepper.d.ts +0 -3
- package/lib/maz-stepper.js +0 -1011
- package/lib/maz-switch.d.ts +0 -3
- package/lib/maz-switch.js +0 -375
- package/lib/maz-tabs-bar.d.ts +0 -3
- package/lib/maz-tabs-bar.js +0 -428
- package/lib/maz-tabs-content-item.d.ts +0 -3
- package/lib/maz-tabs-content-item.js +0 -376
- package/lib/maz-tabs-content.d.ts +0 -3
- package/lib/maz-tabs-content.js +0 -367
- package/lib/maz-transition-expand.d.ts +0 -3
- package/lib/maz-transition-expand.js +0 -328
- package/lib/maz-ui.common.d.ts +0 -1
- package/lib/maz-ui.common.js +0 -17208
package/lib/maz-plotly.d.ts
DELETED
package/lib/maz-plotly.js
DELETED
|
@@ -1,500 +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 = 24);
|
|
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
|
-
/***/ 10:
|
|
198
|
-
/***/ (function(module, exports) {
|
|
199
|
-
|
|
200
|
-
module.exports = require("plotly.js-dist");
|
|
201
|
-
|
|
202
|
-
/***/ }),
|
|
203
|
-
|
|
204
|
-
/***/ 2:
|
|
205
|
-
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
206
|
-
|
|
207
|
-
"use strict";
|
|
208
|
-
/* harmony default export */ __webpack_exports__["a"] = ({
|
|
209
|
-
data: function data() {
|
|
210
|
-
return {
|
|
211
|
-
uniqueId: null
|
|
212
|
-
};
|
|
213
|
-
},
|
|
214
|
-
mounted: function mounted() {
|
|
215
|
-
var id = this.id || this.$attrs.id;
|
|
216
|
-
this.uniqueId = id ? "".concat(id) : "".concat(this.$options.name, "-").concat(this._uid);
|
|
217
|
-
}
|
|
218
|
-
});
|
|
219
|
-
|
|
220
|
-
/***/ }),
|
|
221
|
-
|
|
222
|
-
/***/ 24:
|
|
223
|
-
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
224
|
-
|
|
225
|
-
"use strict";
|
|
226
|
-
// ESM COMPAT FLAG
|
|
227
|
-
__webpack_require__.r(__webpack_exports__);
|
|
228
|
-
|
|
229
|
-
// CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./packages/components/MazPlotly/_main.vue?vue&type=template&id=66102fb0&
|
|
230
|
-
var render = function () {
|
|
231
|
-
var _vm = this
|
|
232
|
-
var _h = _vm.$createElement
|
|
233
|
-
var _c = _vm._self._c || _h
|
|
234
|
-
return _c("div", {
|
|
235
|
-
staticClass: "maz-base-component maz-plotly",
|
|
236
|
-
attrs: { id: _vm.uniqueId },
|
|
237
|
-
})
|
|
238
|
-
}
|
|
239
|
-
var staticRenderFns = []
|
|
240
|
-
render._withStripped = true
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
// CONCATENATED MODULE: ./packages/components/MazPlotly/_main.vue?vue&type=template&id=66102fb0&
|
|
244
|
-
|
|
245
|
-
// EXTERNAL MODULE: external "plotly.js-dist"
|
|
246
|
-
var external_plotly_js_dist_ = __webpack_require__(10);
|
|
247
|
-
var external_plotly_js_dist_default = /*#__PURE__*/__webpack_require__.n(external_plotly_js_dist_);
|
|
248
|
-
|
|
249
|
-
// CONCATENATED MODULE: ./packages/components/MazPlotly/events.js
|
|
250
|
-
var eventsName = ['AfterExport', 'AfterPlot', 'Animated', 'AnimatingFrame', 'AnimationInterrupted', 'AutoSize', 'BeforeExport', 'ButtonClicked', 'Click', 'ClickAnnotation', 'Deselect', 'DoubleClick', 'Framework', 'Hover', 'LegendClick', 'LegendDoubleClick', 'Relayout', 'Restyle', 'Redraw', 'Selected', 'Selecting', 'SliderChange', 'SliderEnd', 'SliderStart', 'Transitioning', 'TransitionInterrupted', 'Unhover'];
|
|
251
|
-
var events = eventsName.map(function (evt) {
|
|
252
|
-
return evt.toLocaleLowerCase();
|
|
253
|
-
}).map(function (eventName) {
|
|
254
|
-
return {
|
|
255
|
-
completeName: 'plotly_' + eventName,
|
|
256
|
-
handler: function handler(context) {
|
|
257
|
-
return function () {
|
|
258
|
-
for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
|
|
259
|
-
args[_key] = arguments[_key];
|
|
260
|
-
}
|
|
261
|
-
|
|
262
|
-
context.$emit.apply(context, [eventName].concat(args));
|
|
263
|
-
};
|
|
264
|
-
}
|
|
265
|
-
};
|
|
266
|
-
});
|
|
267
|
-
/* harmony default export */ var MazPlotly_events = (events);
|
|
268
|
-
// CONCATENATED MODULE: ./packages/components/MazPlotly/methods.js
|
|
269
|
-
|
|
270
|
-
var plotlyFunctions = ['restyle', 'relayout', 'update', 'addTraces', 'deleteTraces', 'moveTraces', 'extendTraces', 'prependTraces', 'purge'];
|
|
271
|
-
var methods = plotlyFunctions.reduce(function (all, functionName) {
|
|
272
|
-
all[functionName] = function () {
|
|
273
|
-
for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
|
|
274
|
-
args[_key] = arguments[_key];
|
|
275
|
-
}
|
|
276
|
-
|
|
277
|
-
return external_plotly_js_dist_default.a[functionName].apply(external_plotly_js_dist_default.a, [this.$el].concat(args));
|
|
278
|
-
};
|
|
279
|
-
|
|
280
|
-
return all;
|
|
281
|
-
}, {});
|
|
282
|
-
/* harmony default export */ var MazPlotly_methods = (methods);
|
|
283
|
-
// CONCATENATED MODULE: ./packages/components/MazPlotly/helper.js
|
|
284
|
-
var cached = function cached(fn) {
|
|
285
|
-
var cache = Object.create(null);
|
|
286
|
-
return function cachedFn(str) {
|
|
287
|
-
var hit = cache[str];
|
|
288
|
-
return hit || (cache[str] = fn(str));
|
|
289
|
-
};
|
|
290
|
-
};
|
|
291
|
-
|
|
292
|
-
var regex = /-(\w)/g;
|
|
293
|
-
var camelize = cached(function (str) {
|
|
294
|
-
return str.replace(regex, function (_, c) {
|
|
295
|
-
return c ? c.toUpperCase() : '';
|
|
296
|
-
});
|
|
297
|
-
});
|
|
298
|
-
|
|
299
|
-
// EXTERNAL MODULE: ./packages/mixins/uniqueId.js
|
|
300
|
-
var uniqueId = __webpack_require__(2);
|
|
301
|
-
|
|
302
|
-
// CONCATENATED MODULE: ./node_modules/babel-loader/lib!./node_modules/vue-loader/lib??vue-loader-options!./packages/components/MazPlotly/_main.vue?vue&type=script&lang=js&
|
|
303
|
-
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; }
|
|
304
|
-
|
|
305
|
-
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; }
|
|
306
|
-
|
|
307
|
-
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; }
|
|
308
|
-
|
|
309
|
-
//
|
|
310
|
-
//
|
|
311
|
-
//
|
|
312
|
-
//
|
|
313
|
-
//
|
|
314
|
-
//
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
/* harmony default export */ var _mainvue_type_script_lang_js_ = ({
|
|
321
|
-
name: 'MazPlotly',
|
|
322
|
-
mixins: [uniqueId["a" /* default */]],
|
|
323
|
-
inheritAttrs: false,
|
|
324
|
-
props: {
|
|
325
|
-
data: {
|
|
326
|
-
type: Array,
|
|
327
|
-
default: null
|
|
328
|
-
},
|
|
329
|
-
layout: {
|
|
330
|
-
type: Object,
|
|
331
|
-
default: null
|
|
332
|
-
},
|
|
333
|
-
id: {
|
|
334
|
-
type: String,
|
|
335
|
-
default: null
|
|
336
|
-
}
|
|
337
|
-
},
|
|
338
|
-
data: function data() {
|
|
339
|
-
return {
|
|
340
|
-
scheduled: null,
|
|
341
|
-
innerLayout: _objectSpread({}, this.layout)
|
|
342
|
-
};
|
|
343
|
-
},
|
|
344
|
-
computed: {
|
|
345
|
-
options: function options() {
|
|
346
|
-
var _this = this;
|
|
347
|
-
|
|
348
|
-
var optionsFromAttrs = Object.keys(this.$attrs).reduce(function (acc, key) {
|
|
349
|
-
acc[camelize(key)] = _this.$attrs[key];
|
|
350
|
-
return acc;
|
|
351
|
-
}, {});
|
|
352
|
-
return _objectSpread({
|
|
353
|
-
responsive: false
|
|
354
|
-
}, optionsFromAttrs);
|
|
355
|
-
}
|
|
356
|
-
},
|
|
357
|
-
watch: {
|
|
358
|
-
data: {
|
|
359
|
-
handler: function handler() {
|
|
360
|
-
this.schedule({
|
|
361
|
-
replot: true
|
|
362
|
-
});
|
|
363
|
-
},
|
|
364
|
-
deep: true
|
|
365
|
-
},
|
|
366
|
-
options: {
|
|
367
|
-
handler: function handler(value, old) {
|
|
368
|
-
if (JSON.stringify(value) === JSON.stringify(old)) {
|
|
369
|
-
return;
|
|
370
|
-
}
|
|
371
|
-
|
|
372
|
-
this.schedule({
|
|
373
|
-
replot: true
|
|
374
|
-
});
|
|
375
|
-
},
|
|
376
|
-
deep: true
|
|
377
|
-
},
|
|
378
|
-
layout: function layout(_layout) {
|
|
379
|
-
this.innerLayout = _objectSpread({}, _layout);
|
|
380
|
-
this.schedule({
|
|
381
|
-
replot: false
|
|
382
|
-
});
|
|
383
|
-
}
|
|
384
|
-
},
|
|
385
|
-
mounted: function mounted() {
|
|
386
|
-
var _this2 = this;
|
|
387
|
-
|
|
388
|
-
external_plotly_js_dist_default.a.newPlot(this.$el, this.data, this.innerLayout, this.options);
|
|
389
|
-
MazPlotly_events.forEach(function (evt) {
|
|
390
|
-
_this2.$el.on(evt.completeName, evt.handler(_this2));
|
|
391
|
-
});
|
|
392
|
-
|
|
393
|
-
if (typeof window !== 'undefined') {
|
|
394
|
-
window.addEventListener('resize', this.onResize);
|
|
395
|
-
}
|
|
396
|
-
},
|
|
397
|
-
beforeDestroy: function beforeDestroy() {
|
|
398
|
-
var _this3 = this;
|
|
399
|
-
|
|
400
|
-
MazPlotly_events.forEach(function (event) {
|
|
401
|
-
return _this3.$el.removeAllListeners(event.completeName);
|
|
402
|
-
});
|
|
403
|
-
external_plotly_js_dist_default.a.purge(this.$el);
|
|
404
|
-
|
|
405
|
-
if (typeof window !== 'undefined') {
|
|
406
|
-
window.removeEventListener('resize', this.onResize);
|
|
407
|
-
}
|
|
408
|
-
},
|
|
409
|
-
methods: _objectSpread(_objectSpread({}, MazPlotly_methods), {}, {
|
|
410
|
-
onResize: function onResize() {
|
|
411
|
-
external_plotly_js_dist_default.a.Plots.resize(this.$el);
|
|
412
|
-
},
|
|
413
|
-
schedule: function schedule(context) {
|
|
414
|
-
var _this4 = this;
|
|
415
|
-
|
|
416
|
-
var scheduled = this.scheduled;
|
|
417
|
-
|
|
418
|
-
if (scheduled) {
|
|
419
|
-
scheduled.replot = scheduled.replot || context.replot;
|
|
420
|
-
return;
|
|
421
|
-
}
|
|
422
|
-
|
|
423
|
-
this.scheduled = context;
|
|
424
|
-
this.$nextTick(function () {
|
|
425
|
-
var replot = _this4.scheduled.replot;
|
|
426
|
-
_this4.scheduled = null;
|
|
427
|
-
|
|
428
|
-
if (replot) {
|
|
429
|
-
_this4.react();
|
|
430
|
-
|
|
431
|
-
return;
|
|
432
|
-
}
|
|
433
|
-
|
|
434
|
-
_this4.relayout(_this4.innerLayout);
|
|
435
|
-
});
|
|
436
|
-
},
|
|
437
|
-
toImage: function toImage(options) {
|
|
438
|
-
var allOptions = Object.assign(this.getPrintOptions(), options);
|
|
439
|
-
return external_plotly_js_dist_default.a.toImage(this.$el, allOptions);
|
|
440
|
-
},
|
|
441
|
-
downloadImage: function downloadImage(options) {
|
|
442
|
-
var filename = "plot--".concat(new Date().toISOString());
|
|
443
|
-
var allOptions = Object.assign(this.getPrintOptions(), {
|
|
444
|
-
filename: filename
|
|
445
|
-
}, options);
|
|
446
|
-
return external_plotly_js_dist_default.a.downloadImage(this.$el, allOptions);
|
|
447
|
-
},
|
|
448
|
-
getPrintOptions: function getPrintOptions() {
|
|
449
|
-
var $el = this.$el;
|
|
450
|
-
return {
|
|
451
|
-
format: 'png',
|
|
452
|
-
width: $el.clientWidth,
|
|
453
|
-
height: $el.clientHeight
|
|
454
|
-
};
|
|
455
|
-
},
|
|
456
|
-
react: function react() {
|
|
457
|
-
external_plotly_js_dist_default.a.react(this.$el, this.data, this.innerLayout, this.options);
|
|
458
|
-
}
|
|
459
|
-
})
|
|
460
|
-
});
|
|
461
|
-
// CONCATENATED MODULE: ./packages/components/MazPlotly/_main.vue?vue&type=script&lang=js&
|
|
462
|
-
/* harmony default export */ var MazPlotly_mainvue_type_script_lang_js_ = (_mainvue_type_script_lang_js_);
|
|
463
|
-
// EXTERNAL MODULE: ./node_modules/vue-loader/lib/runtime/componentNormalizer.js
|
|
464
|
-
var componentNormalizer = __webpack_require__(0);
|
|
465
|
-
|
|
466
|
-
// CONCATENATED MODULE: ./packages/components/MazPlotly/_main.vue
|
|
467
|
-
|
|
468
|
-
|
|
469
|
-
|
|
470
|
-
|
|
471
|
-
|
|
472
|
-
/* normalize component */
|
|
473
|
-
|
|
474
|
-
var component = Object(componentNormalizer["a" /* default */])(
|
|
475
|
-
MazPlotly_mainvue_type_script_lang_js_,
|
|
476
|
-
render,
|
|
477
|
-
staticRenderFns,
|
|
478
|
-
false,
|
|
479
|
-
null,
|
|
480
|
-
null,
|
|
481
|
-
null
|
|
482
|
-
|
|
483
|
-
)
|
|
484
|
-
|
|
485
|
-
/* hot reload */
|
|
486
|
-
if (false) { var api; }
|
|
487
|
-
component.options.__file = "packages/components/MazPlotly/_main.vue"
|
|
488
|
-
/* harmony default export */ var _main = (component.exports);
|
|
489
|
-
// CONCATENATED MODULE: ./packages/components/MazPlotly/index.js
|
|
490
|
-
|
|
491
|
-
|
|
492
|
-
_main.install = function (Vue) {
|
|
493
|
-
Vue.component(_main.name, _main);
|
|
494
|
-
};
|
|
495
|
-
|
|
496
|
-
/* harmony default export */ var MazPlotly = __webpack_exports__["default"] = (_main);
|
|
497
|
-
|
|
498
|
-
/***/ })
|
|
499
|
-
|
|
500
|
-
/******/ });
|