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.
- package/components/MazArrowIcon.d.ts +43 -0
- package/components/MazArrowIcon.js +1 -0
- package/components/MazAvatar.d.ts +149 -0
- package/components/MazAvatar.js +3 -0
- package/components/MazBackdrop.d.ts +89 -0
- package/components/MazBackdrop.js +3 -0
- package/components/MazBadge.d.ts +68 -0
- package/components/MazBadge.js +1 -0
- package/components/MazBottomSheet.d.ts +29 -0
- package/components/MazBottomSheet.js +3 -0
- package/components/MazBtn.d.ts +171 -0
- package/components/MazBtn.js +3 -0
- package/components/MazCard.d.ts +183 -0
- package/components/MazCard.js +3 -0
- package/components/MazCarousel.d.ts +16 -0
- package/components/MazCarousel.js +3 -0
- package/components/MazChart/includes.d.ts +11 -0
- package/components/MazChart.d.ts +114 -0
- package/components/MazChart.js +1 -0
- package/components/MazCheckbox.d.ts +49 -0
- package/components/MazCheckbox.js +1 -0
- package/components/MazDialog.d.ts +29 -0
- package/components/MazDialog.js +3 -0
- package/components/MazDialogPromise/use-maz-dialog-promise.d.ts +30 -0
- package/components/MazDialogPromise.d.ts +28 -0
- package/components/MazDialogPromise.js +3 -0
- package/components/MazDrawer.d.ts +59 -0
- package/components/MazDrawer.js +3 -0
- package/components/MazDropzone.d.ts +128 -0
- package/components/MazDropzone.js +3 -0
- package/components/MazGallery.d.ts +144 -0
- package/components/MazGallery.js +3 -0
- package/components/MazIcon.d.ts +66 -0
- package/components/MazIcon.js +3 -0
- package/components/MazInput.d.ts +276 -0
- package/components/MazInput.js +3 -0
- package/components/MazInputNumber.d.ts +67 -0
- package/components/MazInputNumber.js +3 -0
- package/components/MazInputPrice.d.ts +64 -0
- package/components/MazInputPrice.js +3 -0
- package/components/MazInputTags.d.ts +96 -0
- package/components/MazInputTags.js +3 -0
- package/components/MazLazyImg.d.ts +80 -0
- package/components/MazLazyImg.js +3 -0
- package/components/MazPhoneNumberInput/constantes/locales.d.ts +12 -0
- package/components/MazPhoneNumberInput/types.d.ts +21 -0
- package/components/MazPhoneNumberInput/utils/countries-name-list-by-iso-code.d.ts +2 -0
- package/components/MazPhoneNumberInput/utils/index.d.ts +12 -0
- package/components/MazPhoneNumberInput.d.ts +255 -0
- package/components/MazPhoneNumberInput.js +3 -0
- package/components/MazPicker/MazPickerCalendar.vue.d.ts +137 -0
- package/components/MazPicker/MazPickerCalendarMonth/MazPickerCalendarDays.vue.d.ts +22 -0
- package/components/MazPicker/MazPickerCalendarMonth/MazPickerCalendarGrid.vue.d.ts +114 -0
- package/components/MazPicker/MazPickerCalendarMonth/MazPickerCalendarMonth.vue.d.ts +124 -0
- package/components/MazPicker/MazPickerCalendarSwitcher.vue.d.ts +38 -0
- package/components/MazPicker/MazPickerContainer.vue.d.ts +212 -0
- package/components/MazPicker/MazPickerHeader.vue.d.ts +84 -0
- package/components/MazPicker/MazPickerMonthSwitcher.vue.d.ts +43 -0
- package/components/MazPicker/MazPickerShortcuts.vue.d.ts +62 -0
- package/components/MazPicker/MazPickerTime.vue.d.ts +129 -0
- package/components/MazPicker/MazPickerYearSwitcher.vue.d.ts +35 -0
- package/components/MazPicker/types.d.ts +15 -0
- package/components/MazPicker/utils.d.ts +54 -0
- package/components/MazPicker.d.ts +313 -0
- package/components/MazPicker.js +3 -0
- package/components/MazRadioButtons.d.ts +69 -0
- package/components/MazRadioButtons.js +1 -0
- package/components/MazSelect.d.ts +176 -0
- package/components/MazSelect.js +3 -0
- package/components/MazSlider/utils.d.ts +15 -0
- package/components/MazSlider.d.ts +96 -0
- package/components/MazSlider.js +3 -0
- package/components/MazSpinner.d.ts +30 -0
- package/components/MazSpinner.js +1 -0
- package/components/MazStepper.d.ts +73 -0
- package/components/MazStepper.js +1 -0
- package/components/MazSwitch.d.ts +56 -0
- package/components/MazSwitch.js +1 -0
- package/components/MazTabsBar.d.ts +49 -0
- package/components/MazTabsBar.js +3 -0
- package/components/MazTabsContent.d.ts +16 -0
- package/components/MazTabsContent.js +1 -0
- package/components/MazTabsContentItem.d.ts +14 -0
- package/components/MazTabsContentItem.js +3 -0
- package/components/MazTextarea/textarea-autogrow.d.ts +9 -0
- package/components/MazTextarea.d.ts +125 -0
- package/components/MazTextarea.js +1 -0
- package/components/MazTransitionExpand.d.ts +4 -0
- package/components/MazTransitionExpand.js +1 -0
- package/components/index.d.ts +34 -0
- package/components/index.js +36 -0
- package/components/no_photo-a72545e4.js +1 -0
- package/components/types.d.ts +17 -0
- package/css/aos.css +1 -0
- package/css/main.css +1 -0
- package/maz-ui.d.ts +307 -0
- package/modules/index.js +3 -0
- package/modules/no_photo-a72545e4.js +1 -0
- package/package.json +145 -81
- package/tailwindcss/tailwind.config.js +65 -0
- package/tailwindcss/utils/colors.js +28 -0
- package/tailwindcss/variables/breakpoints.js +15 -0
- package/tailwindcss/variables/colors.js +44 -0
- package/tailwindcss/variables/utilities.js +20 -0
- package/tailwindcss/variables/z-indexes.js +15 -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/index.js +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 -3776
- 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 -17202
package/lib/maz-input-tags.js
DELETED
|
@@ -1,1207 +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 = 41);
|
|
86
|
-
/******/ })
|
|
87
|
-
/************************************************************************/
|
|
88
|
-
/******/ ({
|
|
89
|
-
|
|
90
|
-
/***/ 0:
|
|
91
|
-
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
92
|
-
|
|
93
|
-
"use strict";
|
|
94
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return normalizeComponent; });
|
|
95
|
-
/* globals __VUE_SSR_CONTEXT__ */
|
|
96
|
-
|
|
97
|
-
// IMPORTANT: Do NOT use ES2015 features in this file (except for modules).
|
|
98
|
-
// This module is a runtime utility for cleaner component module output and will
|
|
99
|
-
// be included in the final webpack user bundle.
|
|
100
|
-
|
|
101
|
-
function normalizeComponent (
|
|
102
|
-
scriptExports,
|
|
103
|
-
render,
|
|
104
|
-
staticRenderFns,
|
|
105
|
-
functionalTemplate,
|
|
106
|
-
injectStyles,
|
|
107
|
-
scopeId,
|
|
108
|
-
moduleIdentifier, /* server only */
|
|
109
|
-
shadowMode /* vue-cli only */
|
|
110
|
-
) {
|
|
111
|
-
// Vue.extend constructor export interop
|
|
112
|
-
var options = typeof scriptExports === 'function'
|
|
113
|
-
? scriptExports.options
|
|
114
|
-
: scriptExports
|
|
115
|
-
|
|
116
|
-
// render functions
|
|
117
|
-
if (render) {
|
|
118
|
-
options.render = render
|
|
119
|
-
options.staticRenderFns = staticRenderFns
|
|
120
|
-
options._compiled = true
|
|
121
|
-
}
|
|
122
|
-
|
|
123
|
-
// functional template
|
|
124
|
-
if (functionalTemplate) {
|
|
125
|
-
options.functional = true
|
|
126
|
-
}
|
|
127
|
-
|
|
128
|
-
// scopedId
|
|
129
|
-
if (scopeId) {
|
|
130
|
-
options._scopeId = 'data-v-' + scopeId
|
|
131
|
-
}
|
|
132
|
-
|
|
133
|
-
var hook
|
|
134
|
-
if (moduleIdentifier) { // server build
|
|
135
|
-
hook = function (context) {
|
|
136
|
-
// 2.3 injection
|
|
137
|
-
context =
|
|
138
|
-
context || // cached call
|
|
139
|
-
(this.$vnode && this.$vnode.ssrContext) || // stateful
|
|
140
|
-
(this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional
|
|
141
|
-
// 2.2 with runInNewContext: true
|
|
142
|
-
if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {
|
|
143
|
-
context = __VUE_SSR_CONTEXT__
|
|
144
|
-
}
|
|
145
|
-
// inject component styles
|
|
146
|
-
if (injectStyles) {
|
|
147
|
-
injectStyles.call(this, context)
|
|
148
|
-
}
|
|
149
|
-
// register component module identifier for async chunk inferrence
|
|
150
|
-
if (context && context._registeredComponents) {
|
|
151
|
-
context._registeredComponents.add(moduleIdentifier)
|
|
152
|
-
}
|
|
153
|
-
}
|
|
154
|
-
// used by ssr in case component is cached and beforeCreate
|
|
155
|
-
// never gets called
|
|
156
|
-
options._ssrRegister = hook
|
|
157
|
-
} else if (injectStyles) {
|
|
158
|
-
hook = shadowMode
|
|
159
|
-
? function () {
|
|
160
|
-
injectStyles.call(
|
|
161
|
-
this,
|
|
162
|
-
(options.functional ? this.parent : this).$root.$options.shadowRoot
|
|
163
|
-
)
|
|
164
|
-
}
|
|
165
|
-
: injectStyles
|
|
166
|
-
}
|
|
167
|
-
|
|
168
|
-
if (hook) {
|
|
169
|
-
if (options.functional) {
|
|
170
|
-
// for template-only hot-reload because in that case the render fn doesn't
|
|
171
|
-
// go through the normalizer
|
|
172
|
-
options._injectStyles = hook
|
|
173
|
-
// register for functional component in vue file
|
|
174
|
-
var originalRender = options.render
|
|
175
|
-
options.render = function renderWithStyleInjection (h, context) {
|
|
176
|
-
hook.call(context)
|
|
177
|
-
return originalRender(h, context)
|
|
178
|
-
}
|
|
179
|
-
} else {
|
|
180
|
-
// inject component registration as beforeCreate hook
|
|
181
|
-
var existing = options.beforeCreate
|
|
182
|
-
options.beforeCreate = existing
|
|
183
|
-
? [].concat(existing, hook)
|
|
184
|
-
: [hook]
|
|
185
|
-
}
|
|
186
|
-
}
|
|
187
|
-
|
|
188
|
-
return {
|
|
189
|
-
exports: scriptExports,
|
|
190
|
-
options: options
|
|
191
|
-
}
|
|
192
|
-
}
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
/***/ }),
|
|
196
|
-
|
|
197
|
-
/***/ 2:
|
|
198
|
-
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
199
|
-
|
|
200
|
-
"use strict";
|
|
201
|
-
/* harmony default export */ __webpack_exports__["a"] = ({
|
|
202
|
-
data: function data() {
|
|
203
|
-
return {
|
|
204
|
-
uniqueId: null
|
|
205
|
-
};
|
|
206
|
-
},
|
|
207
|
-
mounted: function mounted() {
|
|
208
|
-
var id = this.id || this.$attrs.id;
|
|
209
|
-
this.uniqueId = id ? "".concat(id) : "".concat(this.$options.name, "-").concat(this._uid);
|
|
210
|
-
}
|
|
211
|
-
});
|
|
212
|
-
|
|
213
|
-
/***/ }),
|
|
214
|
-
|
|
215
|
-
/***/ 4:
|
|
216
|
-
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
217
|
-
|
|
218
|
-
"use strict";
|
|
219
|
-
// ESM COMPAT FLAG
|
|
220
|
-
__webpack_require__.r(__webpack_exports__);
|
|
221
|
-
|
|
222
|
-
// CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./packages/components/MazBtn/_main.vue?vue&type=template&id=247f3a44&
|
|
223
|
-
var render = function () {
|
|
224
|
-
var _vm = this
|
|
225
|
-
var _h = _vm.$createElement
|
|
226
|
-
var _c = _vm._self._c || _h
|
|
227
|
-
return _c(
|
|
228
|
-
_vm.componentType,
|
|
229
|
-
_vm._b(
|
|
230
|
-
{
|
|
231
|
-
tag: "component",
|
|
232
|
-
staticClass: "maz-base-component maz-btn maz-inline-flex",
|
|
233
|
-
class: [
|
|
234
|
-
_vm.classes,
|
|
235
|
-
{
|
|
236
|
-
"maz-text-hidden": _vm.loading,
|
|
237
|
-
},
|
|
238
|
-
],
|
|
239
|
-
attrs: {
|
|
240
|
-
id: _vm.uniqueId,
|
|
241
|
-
type: _vm.isLink ? null : _vm.type,
|
|
242
|
-
disabled: _vm.isLink ? null : _vm.isDisabled,
|
|
243
|
-
},
|
|
244
|
-
on: {
|
|
245
|
-
click: function ($event) {
|
|
246
|
-
return _vm.handleClick($event)
|
|
247
|
-
},
|
|
248
|
-
mouseenter: function ($event) {
|
|
249
|
-
return _vm.emitMouseEnter($event)
|
|
250
|
-
},
|
|
251
|
-
mouseleave: function ($event) {
|
|
252
|
-
return _vm.emitMouseLeave($event)
|
|
253
|
-
},
|
|
254
|
-
focus: function ($event) {
|
|
255
|
-
return _vm.emitFocus($event)
|
|
256
|
-
},
|
|
257
|
-
blur: function ($event) {
|
|
258
|
-
return _vm.emitBlur($event)
|
|
259
|
-
},
|
|
260
|
-
},
|
|
261
|
-
},
|
|
262
|
-
"component",
|
|
263
|
-
_vm.$attrs,
|
|
264
|
-
false
|
|
265
|
-
),
|
|
266
|
-
[
|
|
267
|
-
_vm.hasLeftIcon() || _vm.hasMainIcon()
|
|
268
|
-
? _c(
|
|
269
|
-
"div",
|
|
270
|
-
{
|
|
271
|
-
staticClass: "maz-flex maz-flex-center maz-btn__icon-left",
|
|
272
|
-
class: {
|
|
273
|
-
"maz-mr-2": !_vm.fab && _vm.hasSlotDefault(),
|
|
274
|
-
},
|
|
275
|
-
},
|
|
276
|
-
[
|
|
277
|
-
_vm._t("icon-left" || false, function () {
|
|
278
|
-
return [
|
|
279
|
-
_c("i", { staticClass: "material-icons" }, [
|
|
280
|
-
_vm._v(_vm._s(_vm.leftIconName || _vm.iconName)),
|
|
281
|
-
]),
|
|
282
|
-
]
|
|
283
|
-
}),
|
|
284
|
-
],
|
|
285
|
-
2
|
|
286
|
-
)
|
|
287
|
-
: _vm._e(),
|
|
288
|
-
_c(
|
|
289
|
-
"span",
|
|
290
|
-
{
|
|
291
|
-
staticClass:
|
|
292
|
-
"maz-flex maz-align-center maz-h-100 maz-overflow-hidden",
|
|
293
|
-
class: [_vm.textClasses, { "maz-flex-1": _vm.hasSlotDefault() }],
|
|
294
|
-
},
|
|
295
|
-
[_vm._t("default")],
|
|
296
|
-
2
|
|
297
|
-
),
|
|
298
|
-
_vm.hasRightIcon()
|
|
299
|
-
? _c(
|
|
300
|
-
"div",
|
|
301
|
-
{
|
|
302
|
-
staticClass: "maz-flex maz-flex-center maz-btn__icon-right",
|
|
303
|
-
class: {
|
|
304
|
-
"maz-ml-2": !_vm.fab && _vm.hasSlotDefault(),
|
|
305
|
-
},
|
|
306
|
-
},
|
|
307
|
-
[
|
|
308
|
-
_vm._t("icon-right", function () {
|
|
309
|
-
return [
|
|
310
|
-
_c("i", { staticClass: "material-icons" }, [
|
|
311
|
-
_vm._v(_vm._s(_vm.rightIconName)),
|
|
312
|
-
]),
|
|
313
|
-
]
|
|
314
|
-
}),
|
|
315
|
-
],
|
|
316
|
-
2
|
|
317
|
-
)
|
|
318
|
-
: _vm._e(),
|
|
319
|
-
_vm.loading
|
|
320
|
-
? _c(
|
|
321
|
-
"div",
|
|
322
|
-
{ staticClass: "maz-btn__spinner maz-flex maz-flex-center" },
|
|
323
|
-
[_c("MazSpinner", { attrs: { size: 25, color: _vm.color } })],
|
|
324
|
-
1
|
|
325
|
-
)
|
|
326
|
-
: _vm._e(),
|
|
327
|
-
]
|
|
328
|
-
)
|
|
329
|
-
}
|
|
330
|
-
var staticRenderFns = []
|
|
331
|
-
render._withStripped = true
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
// CONCATENATED MODULE: ./packages/components/MazBtn/_main.vue?vue&type=template&id=247f3a44&
|
|
335
|
-
|
|
336
|
-
// EXTERNAL MODULE: ./packages/components/MazSpinner/index.js + 5 modules
|
|
337
|
-
var MazSpinner = __webpack_require__(5);
|
|
338
|
-
|
|
339
|
-
// EXTERNAL MODULE: ./packages/mixins/uniqueId.js
|
|
340
|
-
var uniqueId = __webpack_require__(2);
|
|
341
|
-
|
|
342
|
-
// CONCATENATED MODULE: ./node_modules/babel-loader/lib!./node_modules/vue-loader/lib??vue-loader-options!./packages/components/MazBtn/_main.vue?vue&type=script&lang=js&
|
|
343
|
-
function _toConsumableArray(arr) { return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableSpread(); }
|
|
344
|
-
|
|
345
|
-
function _nonIterableSpread() { throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
|
|
346
|
-
|
|
347
|
-
function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
|
|
348
|
-
|
|
349
|
-
function _iterableToArray(iter) { if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter); }
|
|
350
|
-
|
|
351
|
-
function _arrayWithoutHoles(arr) { if (Array.isArray(arr)) return _arrayLikeToArray(arr); }
|
|
352
|
-
|
|
353
|
-
function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) { arr2[i] = arr[i]; } return arr2; }
|
|
354
|
-
|
|
355
|
-
//
|
|
356
|
-
//
|
|
357
|
-
//
|
|
358
|
-
//
|
|
359
|
-
//
|
|
360
|
-
//
|
|
361
|
-
//
|
|
362
|
-
//
|
|
363
|
-
//
|
|
364
|
-
//
|
|
365
|
-
//
|
|
366
|
-
//
|
|
367
|
-
//
|
|
368
|
-
//
|
|
369
|
-
//
|
|
370
|
-
//
|
|
371
|
-
//
|
|
372
|
-
//
|
|
373
|
-
//
|
|
374
|
-
//
|
|
375
|
-
//
|
|
376
|
-
//
|
|
377
|
-
//
|
|
378
|
-
//
|
|
379
|
-
//
|
|
380
|
-
//
|
|
381
|
-
//
|
|
382
|
-
//
|
|
383
|
-
//
|
|
384
|
-
//
|
|
385
|
-
//
|
|
386
|
-
//
|
|
387
|
-
//
|
|
388
|
-
//
|
|
389
|
-
//
|
|
390
|
-
//
|
|
391
|
-
//
|
|
392
|
-
//
|
|
393
|
-
//
|
|
394
|
-
//
|
|
395
|
-
//
|
|
396
|
-
//
|
|
397
|
-
//
|
|
398
|
-
//
|
|
399
|
-
//
|
|
400
|
-
//
|
|
401
|
-
//
|
|
402
|
-
//
|
|
403
|
-
//
|
|
404
|
-
//
|
|
405
|
-
//
|
|
406
|
-
//
|
|
407
|
-
//
|
|
408
|
-
//
|
|
409
|
-
//
|
|
410
|
-
//
|
|
411
|
-
//
|
|
412
|
-
//
|
|
413
|
-
//
|
|
414
|
-
//
|
|
415
|
-
//
|
|
416
|
-
//
|
|
417
|
-
//
|
|
418
|
-
//
|
|
419
|
-
//
|
|
420
|
-
//
|
|
421
|
-
//
|
|
422
|
-
|
|
423
|
-
|
|
424
|
-
/**
|
|
425
|
-
* > Simple button component
|
|
426
|
-
*/
|
|
427
|
-
|
|
428
|
-
/* harmony default export */ var _mainvue_type_script_lang_js_ = ({
|
|
429
|
-
name: 'MazBtn',
|
|
430
|
-
components: {
|
|
431
|
-
MazSpinner: MazSpinner["default"]
|
|
432
|
-
},
|
|
433
|
-
mixins: [uniqueId["a" /* default */]],
|
|
434
|
-
inheritAttrs: false,
|
|
435
|
-
props: {
|
|
436
|
-
// is the id of the button
|
|
437
|
-
id: {
|
|
438
|
-
type: String,
|
|
439
|
-
default: null
|
|
440
|
-
},
|
|
441
|
-
// is color type (`primary` / `secondary` / `third` / `success` / `danger` / `grey` / `info` / `warning` / `light` / `dark` / `default` / `white` / `black`)
|
|
442
|
-
color: {
|
|
443
|
-
type: String,
|
|
444
|
-
default: 'primary'
|
|
445
|
-
},
|
|
446
|
-
// is the button type (button, submit or something else)
|
|
447
|
-
type: {
|
|
448
|
-
type: String,
|
|
449
|
-
default: 'button'
|
|
450
|
-
},
|
|
451
|
-
// button size (`xl`, `lg` / `md` / `sm` / `mini`)
|
|
452
|
-
size: {
|
|
453
|
-
type: String,
|
|
454
|
-
default: 'md'
|
|
455
|
-
},
|
|
456
|
-
// is a `boolean` to show the loader & disable it
|
|
457
|
-
loading: {
|
|
458
|
-
type: Boolean,
|
|
459
|
-
default: false
|
|
460
|
-
},
|
|
461
|
-
// is a `boolean` to disable the button
|
|
462
|
-
disabled: {
|
|
463
|
-
type: Boolean,
|
|
464
|
-
default: false
|
|
465
|
-
},
|
|
466
|
-
// apply the outline style
|
|
467
|
-
outline: {
|
|
468
|
-
type: Boolean,
|
|
469
|
-
default: false
|
|
470
|
-
},
|
|
471
|
-
// apply the rounded style
|
|
472
|
-
rounded: {
|
|
473
|
-
type: Boolean,
|
|
474
|
-
default: false
|
|
475
|
-
},
|
|
476
|
-
// apply the fab style
|
|
477
|
-
fab: {
|
|
478
|
-
type: Boolean,
|
|
479
|
-
default: false
|
|
480
|
-
},
|
|
481
|
-
// apply the focus style
|
|
482
|
-
active: {
|
|
483
|
-
type: Boolean,
|
|
484
|
-
default: false
|
|
485
|
-
},
|
|
486
|
-
// take 100% of the width
|
|
487
|
-
block: {
|
|
488
|
-
type: Boolean,
|
|
489
|
-
default: false
|
|
490
|
-
},
|
|
491
|
-
// remove shadow/elevation
|
|
492
|
-
noShadow: {
|
|
493
|
-
type: Boolean,
|
|
494
|
-
default: false
|
|
495
|
-
},
|
|
496
|
-
// should be a [material icon](https://material.io/resources/icons/) name (usefull with fab buttons)
|
|
497
|
-
iconName: {
|
|
498
|
-
type: String,
|
|
499
|
-
default: null
|
|
500
|
-
},
|
|
501
|
-
// should be a [material icon](https://material.io/resources/icons/) name
|
|
502
|
-
leftIconName: {
|
|
503
|
-
type: String,
|
|
504
|
-
default: null
|
|
505
|
-
},
|
|
506
|
-
// should be a [material icon](https://material.io/resources/icons/) name
|
|
507
|
-
rightIconName: {
|
|
508
|
-
type: String,
|
|
509
|
-
default: null
|
|
510
|
-
},
|
|
511
|
-
// align text to left (for block button)
|
|
512
|
-
justifyStart: {
|
|
513
|
-
type: Boolean,
|
|
514
|
-
default: false
|
|
515
|
-
},
|
|
516
|
-
// align text to right (for block button)
|
|
517
|
-
justifyEnd: {
|
|
518
|
-
type: Boolean,
|
|
519
|
-
default: false
|
|
520
|
-
}
|
|
521
|
-
},
|
|
522
|
-
computed: {
|
|
523
|
-
componentType: function componentType() {
|
|
524
|
-
var _this$$attrs = this.$attrs,
|
|
525
|
-
href = _this$$attrs.href,
|
|
526
|
-
to = _this$$attrs.to;
|
|
527
|
-
if (href) return 'a';else if (to) return 'router-link';
|
|
528
|
-
return 'button';
|
|
529
|
-
},
|
|
530
|
-
isLink: function isLink() {
|
|
531
|
-
return this.componentType === 'a';
|
|
532
|
-
},
|
|
533
|
-
isDisabled: function isDisabled() {
|
|
534
|
-
var disabled = this.disabled,
|
|
535
|
-
loading = this.loading;
|
|
536
|
-
return loading || disabled;
|
|
537
|
-
},
|
|
538
|
-
classes: function classes() {
|
|
539
|
-
var color = this.color,
|
|
540
|
-
size = this.size,
|
|
541
|
-
outline = this.outline,
|
|
542
|
-
rounded = this.rounded,
|
|
543
|
-
fab = this.fab,
|
|
544
|
-
active = this.active,
|
|
545
|
-
block = this.block,
|
|
546
|
-
noShadow = this.noShadow,
|
|
547
|
-
hasRightIcon = this.hasRightIcon,
|
|
548
|
-
hasLeftIcon = this.hasLeftIcon,
|
|
549
|
-
hasIcon = this.hasIcon,
|
|
550
|
-
hasSlotDefault = this.hasSlotDefault;
|
|
551
|
-
return [].concat(_toConsumableArray(color ? ["maz-btn--".concat(color)] : [null]), _toConsumableArray(size ? ["maz-btn--".concat(size)] : [null]), _toConsumableArray(outline ? ['maz-btn--outline'] : [null]), _toConsumableArray(rounded ? ['maz-btn--rounded'] : [null]), _toConsumableArray(block ? ['maz-btn--block'] : [null]), _toConsumableArray(fab ? ['maz-btn--fab'] : [null]), _toConsumableArray(active ? ['maz-active'] : [null]), _toConsumableArray(noShadow ? ['maz-no-shadow'] : [null]), _toConsumableArray(hasLeftIcon() ? ['maz-btn--icon--left'] : [null]), _toConsumableArray(hasRightIcon() ? ['maz-btn--icon--right'] : [null]), _toConsumableArray(hasIcon() ? ['maz-btn--icon'] : [null]), _toConsumableArray(!hasSlotDefault() ? ['maz-btn--no-text'] : [null]));
|
|
552
|
-
},
|
|
553
|
-
textClasses: function textClasses() {
|
|
554
|
-
var justifyStart = this.justifyStart,
|
|
555
|
-
justifyEnd = this.justifyEnd;
|
|
556
|
-
return [].concat(_toConsumableArray(justifyStart ? ['maz-justify-start'] : [null]), _toConsumableArray(justifyEnd ? ['maz-justify-end'] : [null]), _toConsumableArray(!justifyStart && !justifyEnd ? ['maz-justify-center'] : [null]));
|
|
557
|
-
}
|
|
558
|
-
},
|
|
559
|
-
methods: {
|
|
560
|
-
hasSlotDefault: function hasSlotDefault() {
|
|
561
|
-
return this.$slots['default'];
|
|
562
|
-
},
|
|
563
|
-
hasIcon: function hasIcon() {
|
|
564
|
-
return this.hasLeftIcon() || this.hasRightIcon() || this.hasMainIcon();
|
|
565
|
-
},
|
|
566
|
-
hasMainIcon: function hasMainIcon() {
|
|
567
|
-
return this.iconName || this.$slots['icon'];
|
|
568
|
-
},
|
|
569
|
-
hasLeftIcon: function hasLeftIcon() {
|
|
570
|
-
return this.leftIconName || this.$slots['icon-left'];
|
|
571
|
-
},
|
|
572
|
-
hasRightIcon: function hasRightIcon() {
|
|
573
|
-
return this.rightIconName || this.$slots['icon-right'];
|
|
574
|
-
},
|
|
575
|
-
handleClick: function handleClick(e) {
|
|
576
|
-
// return click event
|
|
577
|
-
this.$emit('click', e);
|
|
578
|
-
},
|
|
579
|
-
emitMouseEnter: function emitMouseEnter(e) {
|
|
580
|
-
// return mouseenter event
|
|
581
|
-
this.$emit('mouseenter', e);
|
|
582
|
-
},
|
|
583
|
-
emitMouseLeave: function emitMouseLeave(e) {
|
|
584
|
-
// return mouseleave event
|
|
585
|
-
this.$emit('mouseleave', e);
|
|
586
|
-
},
|
|
587
|
-
emitFocus: function emitFocus(e) {
|
|
588
|
-
// return focus event
|
|
589
|
-
this.$emit('focus', e);
|
|
590
|
-
},
|
|
591
|
-
emitBlur: function emitBlur(e) {
|
|
592
|
-
// return blur event
|
|
593
|
-
this.$emit('blur', e);
|
|
594
|
-
}
|
|
595
|
-
}
|
|
596
|
-
});
|
|
597
|
-
// CONCATENATED MODULE: ./packages/components/MazBtn/_main.vue?vue&type=script&lang=js&
|
|
598
|
-
/* harmony default export */ var MazBtn_mainvue_type_script_lang_js_ = (_mainvue_type_script_lang_js_);
|
|
599
|
-
// EXTERNAL MODULE: ./node_modules/vue-loader/lib/runtime/componentNormalizer.js
|
|
600
|
-
var componentNormalizer = __webpack_require__(0);
|
|
601
|
-
|
|
602
|
-
// CONCATENATED MODULE: ./packages/components/MazBtn/_main.vue
|
|
603
|
-
|
|
604
|
-
|
|
605
|
-
|
|
606
|
-
|
|
607
|
-
|
|
608
|
-
/* normalize component */
|
|
609
|
-
|
|
610
|
-
var component = Object(componentNormalizer["a" /* default */])(
|
|
611
|
-
MazBtn_mainvue_type_script_lang_js_,
|
|
612
|
-
render,
|
|
613
|
-
staticRenderFns,
|
|
614
|
-
false,
|
|
615
|
-
null,
|
|
616
|
-
null,
|
|
617
|
-
null
|
|
618
|
-
|
|
619
|
-
)
|
|
620
|
-
|
|
621
|
-
/* hot reload */
|
|
622
|
-
if (false) { var api; }
|
|
623
|
-
component.options.__file = "packages/components/MazBtn/_main.vue"
|
|
624
|
-
/* harmony default export */ var _main = (component.exports);
|
|
625
|
-
// CONCATENATED MODULE: ./packages/components/MazBtn/index.js
|
|
626
|
-
|
|
627
|
-
|
|
628
|
-
_main.install = function (Vue) {
|
|
629
|
-
Vue.component(_main.name, _main);
|
|
630
|
-
};
|
|
631
|
-
|
|
632
|
-
/* harmony default export */ var MazBtn = __webpack_exports__["default"] = (_main);
|
|
633
|
-
|
|
634
|
-
/***/ }),
|
|
635
|
-
|
|
636
|
-
/***/ 41:
|
|
637
|
-
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
638
|
-
|
|
639
|
-
"use strict";
|
|
640
|
-
// ESM COMPAT FLAG
|
|
641
|
-
__webpack_require__.r(__webpack_exports__);
|
|
642
|
-
|
|
643
|
-
// CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./packages/components/MazInputTags/_main.vue?vue&type=template&id=f4f57e2a&
|
|
644
|
-
var render = function () {
|
|
645
|
-
var _vm = this
|
|
646
|
-
var _h = _vm.$createElement
|
|
647
|
-
var _c = _vm._self._c || _h
|
|
648
|
-
return _c(
|
|
649
|
-
"div",
|
|
650
|
-
{
|
|
651
|
-
staticClass:
|
|
652
|
-
"maz-base-component maz-input-tags maz-flex maz-flex-wrap maz-align-center maz-border-color-hover",
|
|
653
|
-
class: [
|
|
654
|
-
{
|
|
655
|
-
"is-focused": _vm.isFocus,
|
|
656
|
-
"is-valid": _vm.success,
|
|
657
|
-
"has-value": _vm.value,
|
|
658
|
-
"has-error": _vm.error,
|
|
659
|
-
"is-disabled": _vm.disabled,
|
|
660
|
-
"maz-is-dark": _vm.dark,
|
|
661
|
-
},
|
|
662
|
-
"maz-input-tags--" + _vm.size,
|
|
663
|
-
"maz-input-tags--" + _vm.color,
|
|
664
|
-
],
|
|
665
|
-
on: {
|
|
666
|
-
"!focus": function ($event) {
|
|
667
|
-
_vm.isFocus = true
|
|
668
|
-
},
|
|
669
|
-
"!blur": function ($event) {
|
|
670
|
-
_vm.isFocus = false
|
|
671
|
-
},
|
|
672
|
-
},
|
|
673
|
-
},
|
|
674
|
-
[
|
|
675
|
-
_c(
|
|
676
|
-
"transition-group",
|
|
677
|
-
{
|
|
678
|
-
staticClass: "maz-flex maz-flex-wrap maz-align-center maz-flex-1",
|
|
679
|
-
attrs: { tag: "div", name: "maz-tags" },
|
|
680
|
-
},
|
|
681
|
-
[
|
|
682
|
-
_vm._l(_vm.tags, function (tag, i) {
|
|
683
|
-
return _c(
|
|
684
|
-
"MazBtn",
|
|
685
|
-
{
|
|
686
|
-
key: "tag-" + i,
|
|
687
|
-
staticClass: "maz-input-tags__tag maz-flex maz-align-center",
|
|
688
|
-
attrs: {
|
|
689
|
-
disabled: _vm.disabled,
|
|
690
|
-
color: _vm.color,
|
|
691
|
-
size: _vm.size,
|
|
692
|
-
},
|
|
693
|
-
on: {
|
|
694
|
-
click: function ($event) {
|
|
695
|
-
$event.stopPropagation()
|
|
696
|
-
return _vm.removeTag(i)
|
|
697
|
-
},
|
|
698
|
-
},
|
|
699
|
-
},
|
|
700
|
-
[
|
|
701
|
-
_c("span", { staticClass: "maz-input-tags__tag__text" }, [
|
|
702
|
-
_vm._v("\n " + _vm._s(tag) + "\n "),
|
|
703
|
-
]),
|
|
704
|
-
_c(
|
|
705
|
-
"i",
|
|
706
|
-
{ staticClass: "maz-input-tags__tag__clear material-icons" },
|
|
707
|
-
[_vm._v("\n close\n ")]
|
|
708
|
-
),
|
|
709
|
-
]
|
|
710
|
-
)
|
|
711
|
-
}),
|
|
712
|
-
_c(
|
|
713
|
-
"input",
|
|
714
|
-
_vm._b(
|
|
715
|
-
{
|
|
716
|
-
directives: [
|
|
717
|
-
{
|
|
718
|
-
name: "model",
|
|
719
|
-
rawName: "v-model",
|
|
720
|
-
value: _vm.inputValue,
|
|
721
|
-
expression: "inputValue",
|
|
722
|
-
},
|
|
723
|
-
],
|
|
724
|
-
key: "input-tags",
|
|
725
|
-
staticClass: "maz-input-tags__input maz-flex-1",
|
|
726
|
-
attrs: {
|
|
727
|
-
type: "text",
|
|
728
|
-
placeholder: _vm.placeholder,
|
|
729
|
-
"aria-label": _vm.placeholder,
|
|
730
|
-
disabled: _vm.disabled,
|
|
731
|
-
readonly: _vm.readonly,
|
|
732
|
-
},
|
|
733
|
-
domProps: { value: _vm.inputValue },
|
|
734
|
-
on: {
|
|
735
|
-
keydown: [
|
|
736
|
-
function ($event) {
|
|
737
|
-
if (
|
|
738
|
-
!$event.type.indexOf("key") &&
|
|
739
|
-
_vm._k($event.keyCode, "enter", 13, $event.key, "Enter")
|
|
740
|
-
) {
|
|
741
|
-
return null
|
|
742
|
-
}
|
|
743
|
-
$event.preventDefault()
|
|
744
|
-
return _vm.addTags.apply(null, arguments)
|
|
745
|
-
},
|
|
746
|
-
function ($event) {
|
|
747
|
-
if (
|
|
748
|
-
!$event.type.indexOf("key") &&
|
|
749
|
-
_vm._k($event.keyCode, "delete", [8, 46], $event.key, [
|
|
750
|
-
"Backspace",
|
|
751
|
-
"Delete",
|
|
752
|
-
"Del",
|
|
753
|
-
])
|
|
754
|
-
) {
|
|
755
|
-
return null
|
|
756
|
-
}
|
|
757
|
-
return _vm.removeLastTag.apply(null, arguments)
|
|
758
|
-
},
|
|
759
|
-
],
|
|
760
|
-
input: function ($event) {
|
|
761
|
-
if ($event.target.composing) {
|
|
762
|
-
return
|
|
763
|
-
}
|
|
764
|
-
_vm.inputValue = $event.target.value
|
|
765
|
-
},
|
|
766
|
-
},
|
|
767
|
-
},
|
|
768
|
-
"input",
|
|
769
|
-
_vm.$attrs,
|
|
770
|
-
false
|
|
771
|
-
)
|
|
772
|
-
),
|
|
773
|
-
_vm.hasClearBtn
|
|
774
|
-
? _c(
|
|
775
|
-
"button",
|
|
776
|
-
{
|
|
777
|
-
key: "clear-button",
|
|
778
|
-
staticClass:
|
|
779
|
-
"maz-input-tags__toggle-btn --clear maz-flex maz-flex-center",
|
|
780
|
-
attrs: {
|
|
781
|
-
title: "clear",
|
|
782
|
-
type: "button",
|
|
783
|
-
tabindex: "-1",
|
|
784
|
-
disabled: _vm.disabled,
|
|
785
|
-
},
|
|
786
|
-
on: { click: _vm.cleanTags },
|
|
787
|
-
},
|
|
788
|
-
[
|
|
789
|
-
_c("span", {
|
|
790
|
-
staticClass: "maz-input-tags__toggle-btn__effect",
|
|
791
|
-
}),
|
|
792
|
-
_c(
|
|
793
|
-
"i",
|
|
794
|
-
{
|
|
795
|
-
staticClass:
|
|
796
|
-
"maz-input-tags__toggle-btn__icon material-icons",
|
|
797
|
-
},
|
|
798
|
-
[_vm._v("\n close\n ")]
|
|
799
|
-
),
|
|
800
|
-
]
|
|
801
|
-
)
|
|
802
|
-
: _vm._e(),
|
|
803
|
-
],
|
|
804
|
-
2
|
|
805
|
-
),
|
|
806
|
-
_vm.loading
|
|
807
|
-
? _c("div", { staticClass: "maz-input-tags__loader" }, [
|
|
808
|
-
_c("div", { staticClass: "maz-input__loader__progress-bar" }),
|
|
809
|
-
])
|
|
810
|
-
: _vm._e(),
|
|
811
|
-
],
|
|
812
|
-
1
|
|
813
|
-
)
|
|
814
|
-
}
|
|
815
|
-
var staticRenderFns = []
|
|
816
|
-
render._withStripped = true
|
|
817
|
-
|
|
818
|
-
|
|
819
|
-
// CONCATENATED MODULE: ./packages/components/MazInputTags/_main.vue?vue&type=template&id=f4f57e2a&
|
|
820
|
-
|
|
821
|
-
// EXTERNAL MODULE: ./packages/mixins/uniqueId.js
|
|
822
|
-
var uniqueId = __webpack_require__(2);
|
|
823
|
-
|
|
824
|
-
// EXTERNAL MODULE: ./packages/components/MazBtn/index.js + 5 modules
|
|
825
|
-
var MazBtn = __webpack_require__(4);
|
|
826
|
-
|
|
827
|
-
// CONCATENATED MODULE: ./node_modules/babel-loader/lib!./node_modules/vue-loader/lib??vue-loader-options!./packages/components/MazInputTags/_main.vue?vue&type=script&lang=js&
|
|
828
|
-
//
|
|
829
|
-
//
|
|
830
|
-
//
|
|
831
|
-
//
|
|
832
|
-
//
|
|
833
|
-
//
|
|
834
|
-
//
|
|
835
|
-
//
|
|
836
|
-
//
|
|
837
|
-
//
|
|
838
|
-
//
|
|
839
|
-
//
|
|
840
|
-
//
|
|
841
|
-
//
|
|
842
|
-
//
|
|
843
|
-
//
|
|
844
|
-
//
|
|
845
|
-
//
|
|
846
|
-
//
|
|
847
|
-
//
|
|
848
|
-
//
|
|
849
|
-
//
|
|
850
|
-
//
|
|
851
|
-
//
|
|
852
|
-
//
|
|
853
|
-
//
|
|
854
|
-
//
|
|
855
|
-
//
|
|
856
|
-
//
|
|
857
|
-
//
|
|
858
|
-
//
|
|
859
|
-
//
|
|
860
|
-
//
|
|
861
|
-
//
|
|
862
|
-
//
|
|
863
|
-
//
|
|
864
|
-
//
|
|
865
|
-
//
|
|
866
|
-
//
|
|
867
|
-
//
|
|
868
|
-
//
|
|
869
|
-
//
|
|
870
|
-
//
|
|
871
|
-
//
|
|
872
|
-
//
|
|
873
|
-
//
|
|
874
|
-
//
|
|
875
|
-
//
|
|
876
|
-
//
|
|
877
|
-
//
|
|
878
|
-
//
|
|
879
|
-
//
|
|
880
|
-
//
|
|
881
|
-
//
|
|
882
|
-
//
|
|
883
|
-
//
|
|
884
|
-
//
|
|
885
|
-
//
|
|
886
|
-
//
|
|
887
|
-
//
|
|
888
|
-
//
|
|
889
|
-
//
|
|
890
|
-
//
|
|
891
|
-
//
|
|
892
|
-
//
|
|
893
|
-
//
|
|
894
|
-
//
|
|
895
|
-
//
|
|
896
|
-
//
|
|
897
|
-
//
|
|
898
|
-
//
|
|
899
|
-
//
|
|
900
|
-
//
|
|
901
|
-
//
|
|
902
|
-
//
|
|
903
|
-
|
|
904
|
-
|
|
905
|
-
/**
|
|
906
|
-
* > UI Input tags
|
|
907
|
-
*/
|
|
908
|
-
|
|
909
|
-
/* harmony default export */ var _mainvue_type_script_lang_js_ = ({
|
|
910
|
-
name: 'MazInputTags',
|
|
911
|
-
components: {
|
|
912
|
-
MazBtn: MazBtn["default"]
|
|
913
|
-
},
|
|
914
|
-
mixins: [uniqueId["a" /* default */]],
|
|
915
|
-
props: {
|
|
916
|
-
// Input value, can be a `Array` of `String` or `null`
|
|
917
|
-
value: {
|
|
918
|
-
validator: function validator(prop) {
|
|
919
|
-
return Array.isArray(prop) || prop === null;
|
|
920
|
-
},
|
|
921
|
-
required: true
|
|
922
|
-
},
|
|
923
|
-
// input id
|
|
924
|
-
id: {
|
|
925
|
-
type: String,
|
|
926
|
-
default: null
|
|
927
|
-
},
|
|
928
|
-
// input placeholder
|
|
929
|
-
placeholder: {
|
|
930
|
-
type: String,
|
|
931
|
-
default: 'Add tags'
|
|
932
|
-
},
|
|
933
|
-
// When is `true` the input is disable
|
|
934
|
-
disabled: {
|
|
935
|
-
type: Boolean,
|
|
936
|
-
default: false
|
|
937
|
-
},
|
|
938
|
-
// When is `true` the input has the dark theme
|
|
939
|
-
dark: {
|
|
940
|
-
type: Boolean,
|
|
941
|
-
default: false
|
|
942
|
-
},
|
|
943
|
-
// When is `true` the input is on readonly mode
|
|
944
|
-
readonly: {
|
|
945
|
-
type: Boolean,
|
|
946
|
-
default: false
|
|
947
|
-
},
|
|
948
|
-
// When is `true` the input has the error style (red)
|
|
949
|
-
error: {
|
|
950
|
-
type: Boolean,
|
|
951
|
-
default: false
|
|
952
|
-
},
|
|
953
|
-
// When is `true` the input has the valid style (green)
|
|
954
|
-
success: {
|
|
955
|
-
type: Boolean,
|
|
956
|
-
default: false
|
|
957
|
-
},
|
|
958
|
-
// When is `true` the input become required & has the `*` symbol
|
|
959
|
-
required: {
|
|
960
|
-
type: Boolean,
|
|
961
|
-
default: false
|
|
962
|
-
},
|
|
963
|
-
// When is `true` the input is a textarea
|
|
964
|
-
loading: {
|
|
965
|
-
type: Boolean,
|
|
966
|
-
default: false
|
|
967
|
-
},
|
|
968
|
-
// When is `true` the input can be clear with a button on the right
|
|
969
|
-
clearable: {
|
|
970
|
-
type: Boolean,
|
|
971
|
-
default: false
|
|
972
|
-
},
|
|
973
|
-
// input size (`'lg'` / `'sm'`)
|
|
974
|
-
size: {
|
|
975
|
-
type: String,
|
|
976
|
-
default: null
|
|
977
|
-
},
|
|
978
|
-
// color option
|
|
979
|
-
color: {
|
|
980
|
-
type: String,
|
|
981
|
-
default: 'primary'
|
|
982
|
-
}
|
|
983
|
-
},
|
|
984
|
-
data: function data() {
|
|
985
|
-
return {
|
|
986
|
-
inputValue: null,
|
|
987
|
-
isFocus: false
|
|
988
|
-
};
|
|
989
|
-
},
|
|
990
|
-
computed: {
|
|
991
|
-
tags: {
|
|
992
|
-
get: function get() {
|
|
993
|
-
return this.value;
|
|
994
|
-
},
|
|
995
|
-
set: function set(value) {
|
|
996
|
-
if (!value) return;
|
|
997
|
-
|
|
998
|
-
if (Array.isArray(this.tags)) {
|
|
999
|
-
var tagsArray = JSON.parse(JSON.stringify(this.tags));
|
|
1000
|
-
tagsArray.push(value); // return the list of current tags
|
|
1001
|
-
// @arg `Array` or `null`
|
|
1002
|
-
|
|
1003
|
-
this.$emit('input', tagsArray);
|
|
1004
|
-
} else {
|
|
1005
|
-
// return the list of tags (`Array` of `String`)
|
|
1006
|
-
this.$emit('input', Array(value));
|
|
1007
|
-
}
|
|
1008
|
-
}
|
|
1009
|
-
},
|
|
1010
|
-
hasClearBtn: function hasClearBtn() {
|
|
1011
|
-
return this.clearable && this.tags && this.tags.length;
|
|
1012
|
-
}
|
|
1013
|
-
},
|
|
1014
|
-
methods: {
|
|
1015
|
-
addTags: function addTags() {
|
|
1016
|
-
this.tags = this.inputValue;
|
|
1017
|
-
this.inputValue = null;
|
|
1018
|
-
},
|
|
1019
|
-
removeLastTag: function removeLastTag() {
|
|
1020
|
-
if (this.inputValue === null || this.inputValue === '') {
|
|
1021
|
-
var tagsArray = JSON.parse(JSON.stringify(this.tags));
|
|
1022
|
-
tagsArray.pop();
|
|
1023
|
-
this.$emit('input', tagsArray);
|
|
1024
|
-
}
|
|
1025
|
-
},
|
|
1026
|
-
removeTag: function removeTag(i) {
|
|
1027
|
-
var tagsArray = JSON.parse(JSON.stringify(this.tags));
|
|
1028
|
-
tagsArray.splice(i, 1);
|
|
1029
|
-
this.$emit('input', tagsArray);
|
|
1030
|
-
},
|
|
1031
|
-
cleanTags: function cleanTags() {
|
|
1032
|
-
this.$emit('input', null);
|
|
1033
|
-
this.inputValue = null;
|
|
1034
|
-
}
|
|
1035
|
-
}
|
|
1036
|
-
});
|
|
1037
|
-
// CONCATENATED MODULE: ./packages/components/MazInputTags/_main.vue?vue&type=script&lang=js&
|
|
1038
|
-
/* harmony default export */ var MazInputTags_mainvue_type_script_lang_js_ = (_mainvue_type_script_lang_js_);
|
|
1039
|
-
// EXTERNAL MODULE: ./node_modules/vue-loader/lib/runtime/componentNormalizer.js
|
|
1040
|
-
var componentNormalizer = __webpack_require__(0);
|
|
1041
|
-
|
|
1042
|
-
// CONCATENATED MODULE: ./packages/components/MazInputTags/_main.vue
|
|
1043
|
-
|
|
1044
|
-
|
|
1045
|
-
|
|
1046
|
-
|
|
1047
|
-
|
|
1048
|
-
/* normalize component */
|
|
1049
|
-
|
|
1050
|
-
var component = Object(componentNormalizer["a" /* default */])(
|
|
1051
|
-
MazInputTags_mainvue_type_script_lang_js_,
|
|
1052
|
-
render,
|
|
1053
|
-
staticRenderFns,
|
|
1054
|
-
false,
|
|
1055
|
-
null,
|
|
1056
|
-
null,
|
|
1057
|
-
null
|
|
1058
|
-
|
|
1059
|
-
)
|
|
1060
|
-
|
|
1061
|
-
/* hot reload */
|
|
1062
|
-
if (false) { var api; }
|
|
1063
|
-
component.options.__file = "packages/components/MazInputTags/_main.vue"
|
|
1064
|
-
/* harmony default export */ var _main = (component.exports);
|
|
1065
|
-
// CONCATENATED MODULE: ./packages/components/MazInputTags/index.js
|
|
1066
|
-
|
|
1067
|
-
|
|
1068
|
-
_main.install = function (Vue) {
|
|
1069
|
-
Vue.component(_main.name, _main);
|
|
1070
|
-
};
|
|
1071
|
-
|
|
1072
|
-
/* harmony default export */ var MazInputTags = __webpack_exports__["default"] = (_main);
|
|
1073
|
-
|
|
1074
|
-
/***/ }),
|
|
1075
|
-
|
|
1076
|
-
/***/ 5:
|
|
1077
|
-
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
1078
|
-
|
|
1079
|
-
"use strict";
|
|
1080
|
-
// ESM COMPAT FLAG
|
|
1081
|
-
__webpack_require__.r(__webpack_exports__);
|
|
1082
|
-
|
|
1083
|
-
// CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./packages/components/MazSpinner/_main.vue?vue&type=template&id=67a8ca41&
|
|
1084
|
-
var render = function () {
|
|
1085
|
-
var _vm = this
|
|
1086
|
-
var _h = _vm.$createElement
|
|
1087
|
-
var _c = _vm._self._c || _h
|
|
1088
|
-
return _c(
|
|
1089
|
-
"svg",
|
|
1090
|
-
{
|
|
1091
|
-
staticClass: "maz-base-component maz-spinner maz-spinner-anim",
|
|
1092
|
-
class: [
|
|
1093
|
-
{
|
|
1094
|
-
"spinner-anim__white": _vm.dark,
|
|
1095
|
-
},
|
|
1096
|
-
_vm.fillColorClass,
|
|
1097
|
-
],
|
|
1098
|
-
staticStyle: { "enable-background": "new 0 0 50 50" },
|
|
1099
|
-
attrs: {
|
|
1100
|
-
width: _vm.size + "px",
|
|
1101
|
-
height: _vm.size + "px",
|
|
1102
|
-
version: "1.1",
|
|
1103
|
-
xmlns: "http://www.w3.org/2000/svg",
|
|
1104
|
-
x: "0px",
|
|
1105
|
-
y: "0px",
|
|
1106
|
-
viewBox: "0 0 50 50",
|
|
1107
|
-
"xml:space": "preserve",
|
|
1108
|
-
},
|
|
1109
|
-
},
|
|
1110
|
-
[
|
|
1111
|
-
_c("path", {
|
|
1112
|
-
attrs: {
|
|
1113
|
-
d: "M43.935,25.145c0-10.318-8.364-18.683-18.683-18.683c-10.318,0-18.683,8.365-18.683,18.683h4.068c0-8.071,6.543-14.615,14.615-14.615c8.072,0,14.615,6.543,14.615,14.615H43.935z",
|
|
1114
|
-
},
|
|
1115
|
-
}),
|
|
1116
|
-
]
|
|
1117
|
-
)
|
|
1118
|
-
}
|
|
1119
|
-
var staticRenderFns = []
|
|
1120
|
-
render._withStripped = true
|
|
1121
|
-
|
|
1122
|
-
|
|
1123
|
-
// CONCATENATED MODULE: ./packages/components/MazSpinner/_main.vue?vue&type=template&id=67a8ca41&
|
|
1124
|
-
|
|
1125
|
-
// CONCATENATED MODULE: ./node_modules/babel-loader/lib!./node_modules/vue-loader/lib??vue-loader-options!./packages/components/MazSpinner/_main.vue?vue&type=script&lang=js&
|
|
1126
|
-
//
|
|
1127
|
-
//
|
|
1128
|
-
//
|
|
1129
|
-
//
|
|
1130
|
-
//
|
|
1131
|
-
//
|
|
1132
|
-
//
|
|
1133
|
-
//
|
|
1134
|
-
//
|
|
1135
|
-
//
|
|
1136
|
-
//
|
|
1137
|
-
//
|
|
1138
|
-
//
|
|
1139
|
-
//
|
|
1140
|
-
//
|
|
1141
|
-
//
|
|
1142
|
-
//
|
|
1143
|
-
//
|
|
1144
|
-
//
|
|
1145
|
-
//
|
|
1146
|
-
/* harmony default export */ var _mainvue_type_script_lang_js_ = ({
|
|
1147
|
-
name: 'MazSpinner',
|
|
1148
|
-
props: {
|
|
1149
|
-
size: {
|
|
1150
|
-
type: Number,
|
|
1151
|
-
default: 40
|
|
1152
|
-
},
|
|
1153
|
-
dark: {
|
|
1154
|
-
type: Boolean,
|
|
1155
|
-
default: false
|
|
1156
|
-
},
|
|
1157
|
-
color: {
|
|
1158
|
-
type: String,
|
|
1159
|
-
default: 'primary'
|
|
1160
|
-
}
|
|
1161
|
-
},
|
|
1162
|
-
computed: {
|
|
1163
|
-
fillColorClass: function fillColorClass() {
|
|
1164
|
-
return "maz-fill-".concat(this.color);
|
|
1165
|
-
}
|
|
1166
|
-
}
|
|
1167
|
-
});
|
|
1168
|
-
// CONCATENATED MODULE: ./packages/components/MazSpinner/_main.vue?vue&type=script&lang=js&
|
|
1169
|
-
/* harmony default export */ var MazSpinner_mainvue_type_script_lang_js_ = (_mainvue_type_script_lang_js_);
|
|
1170
|
-
// EXTERNAL MODULE: ./node_modules/vue-loader/lib/runtime/componentNormalizer.js
|
|
1171
|
-
var componentNormalizer = __webpack_require__(0);
|
|
1172
|
-
|
|
1173
|
-
// CONCATENATED MODULE: ./packages/components/MazSpinner/_main.vue
|
|
1174
|
-
|
|
1175
|
-
|
|
1176
|
-
|
|
1177
|
-
|
|
1178
|
-
|
|
1179
|
-
/* normalize component */
|
|
1180
|
-
|
|
1181
|
-
var component = Object(componentNormalizer["a" /* default */])(
|
|
1182
|
-
MazSpinner_mainvue_type_script_lang_js_,
|
|
1183
|
-
render,
|
|
1184
|
-
staticRenderFns,
|
|
1185
|
-
false,
|
|
1186
|
-
null,
|
|
1187
|
-
null,
|
|
1188
|
-
null
|
|
1189
|
-
|
|
1190
|
-
)
|
|
1191
|
-
|
|
1192
|
-
/* hot reload */
|
|
1193
|
-
if (false) { var api; }
|
|
1194
|
-
component.options.__file = "packages/components/MazSpinner/_main.vue"
|
|
1195
|
-
/* harmony default export */ var _main = (component.exports);
|
|
1196
|
-
// CONCATENATED MODULE: ./packages/components/MazSpinner/index.js
|
|
1197
|
-
|
|
1198
|
-
|
|
1199
|
-
_main.install = function (Vue) {
|
|
1200
|
-
Vue.component(_main.name, _main);
|
|
1201
|
-
};
|
|
1202
|
-
|
|
1203
|
-
/* harmony default export */ var MazSpinner = __webpack_exports__["default"] = (_main);
|
|
1204
|
-
|
|
1205
|
-
/***/ })
|
|
1206
|
-
|
|
1207
|
-
/******/ });
|