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.js
DELETED
|
@@ -1,1076 +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 = 8);
|
|
86
|
-
/******/ })
|
|
87
|
-
/************************************************************************/
|
|
88
|
-
/******/ ([
|
|
89
|
-
/* 0 */
|
|
90
|
-
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
91
|
-
|
|
92
|
-
"use strict";
|
|
93
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return normalizeComponent; });
|
|
94
|
-
/* globals __VUE_SSR_CONTEXT__ */
|
|
95
|
-
|
|
96
|
-
// IMPORTANT: Do NOT use ES2015 features in this file (except for modules).
|
|
97
|
-
// This module is a runtime utility for cleaner component module output and will
|
|
98
|
-
// be included in the final webpack user bundle.
|
|
99
|
-
|
|
100
|
-
function normalizeComponent (
|
|
101
|
-
scriptExports,
|
|
102
|
-
render,
|
|
103
|
-
staticRenderFns,
|
|
104
|
-
functionalTemplate,
|
|
105
|
-
injectStyles,
|
|
106
|
-
scopeId,
|
|
107
|
-
moduleIdentifier, /* server only */
|
|
108
|
-
shadowMode /* vue-cli only */
|
|
109
|
-
) {
|
|
110
|
-
// Vue.extend constructor export interop
|
|
111
|
-
var options = typeof scriptExports === 'function'
|
|
112
|
-
? scriptExports.options
|
|
113
|
-
: scriptExports
|
|
114
|
-
|
|
115
|
-
// render functions
|
|
116
|
-
if (render) {
|
|
117
|
-
options.render = render
|
|
118
|
-
options.staticRenderFns = staticRenderFns
|
|
119
|
-
options._compiled = true
|
|
120
|
-
}
|
|
121
|
-
|
|
122
|
-
// functional template
|
|
123
|
-
if (functionalTemplate) {
|
|
124
|
-
options.functional = true
|
|
125
|
-
}
|
|
126
|
-
|
|
127
|
-
// scopedId
|
|
128
|
-
if (scopeId) {
|
|
129
|
-
options._scopeId = 'data-v-' + scopeId
|
|
130
|
-
}
|
|
131
|
-
|
|
132
|
-
var hook
|
|
133
|
-
if (moduleIdentifier) { // server build
|
|
134
|
-
hook = function (context) {
|
|
135
|
-
// 2.3 injection
|
|
136
|
-
context =
|
|
137
|
-
context || // cached call
|
|
138
|
-
(this.$vnode && this.$vnode.ssrContext) || // stateful
|
|
139
|
-
(this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional
|
|
140
|
-
// 2.2 with runInNewContext: true
|
|
141
|
-
if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {
|
|
142
|
-
context = __VUE_SSR_CONTEXT__
|
|
143
|
-
}
|
|
144
|
-
// inject component styles
|
|
145
|
-
if (injectStyles) {
|
|
146
|
-
injectStyles.call(this, context)
|
|
147
|
-
}
|
|
148
|
-
// register component module identifier for async chunk inferrence
|
|
149
|
-
if (context && context._registeredComponents) {
|
|
150
|
-
context._registeredComponents.add(moduleIdentifier)
|
|
151
|
-
}
|
|
152
|
-
}
|
|
153
|
-
// used by ssr in case component is cached and beforeCreate
|
|
154
|
-
// never gets called
|
|
155
|
-
options._ssrRegister = hook
|
|
156
|
-
} else if (injectStyles) {
|
|
157
|
-
hook = shadowMode
|
|
158
|
-
? function () {
|
|
159
|
-
injectStyles.call(
|
|
160
|
-
this,
|
|
161
|
-
(options.functional ? this.parent : this).$root.$options.shadowRoot
|
|
162
|
-
)
|
|
163
|
-
}
|
|
164
|
-
: injectStyles
|
|
165
|
-
}
|
|
166
|
-
|
|
167
|
-
if (hook) {
|
|
168
|
-
if (options.functional) {
|
|
169
|
-
// for template-only hot-reload because in that case the render fn doesn't
|
|
170
|
-
// go through the normalizer
|
|
171
|
-
options._injectStyles = hook
|
|
172
|
-
// register for functional component in vue file
|
|
173
|
-
var originalRender = options.render
|
|
174
|
-
options.render = function renderWithStyleInjection (h, context) {
|
|
175
|
-
hook.call(context)
|
|
176
|
-
return originalRender(h, context)
|
|
177
|
-
}
|
|
178
|
-
} else {
|
|
179
|
-
// inject component registration as beforeCreate hook
|
|
180
|
-
var existing = options.beforeCreate
|
|
181
|
-
options.beforeCreate = existing
|
|
182
|
-
? [].concat(existing, hook)
|
|
183
|
-
: [hook]
|
|
184
|
-
}
|
|
185
|
-
}
|
|
186
|
-
|
|
187
|
-
return {
|
|
188
|
-
exports: scriptExports,
|
|
189
|
-
options: options
|
|
190
|
-
}
|
|
191
|
-
}
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
/***/ }),
|
|
195
|
-
/* 1 */,
|
|
196
|
-
/* 2 */
|
|
197
|
-
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
198
|
-
|
|
199
|
-
"use strict";
|
|
200
|
-
/* harmony default export */ __webpack_exports__["a"] = ({
|
|
201
|
-
data: function data() {
|
|
202
|
-
return {
|
|
203
|
-
uniqueId: null
|
|
204
|
-
};
|
|
205
|
-
},
|
|
206
|
-
mounted: function mounted() {
|
|
207
|
-
var id = this.id || this.$attrs.id;
|
|
208
|
-
this.uniqueId = id ? "".concat(id) : "".concat(this.$options.name, "-").concat(this._uid);
|
|
209
|
-
}
|
|
210
|
-
});
|
|
211
|
-
|
|
212
|
-
/***/ }),
|
|
213
|
-
/* 3 */,
|
|
214
|
-
/* 4 */,
|
|
215
|
-
/* 5 */,
|
|
216
|
-
/* 6 */
|
|
217
|
-
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
218
|
-
|
|
219
|
-
"use strict";
|
|
220
|
-
|
|
221
|
-
// EXPORTS
|
|
222
|
-
__webpack_require__.d(__webpack_exports__, "a", function() { return /* reexport */ debounce; });
|
|
223
|
-
__webpack_require__.d(__webpack_exports__, "b", function() { return /* reexport */ pascalCaseToKebabCase; });
|
|
224
|
-
|
|
225
|
-
// CONCATENATED MODULE: ./packages/utils/debounce.js
|
|
226
|
-
/* harmony default export */ var debounce = (function (func, delay) {
|
|
227
|
-
var debounceTimer;
|
|
228
|
-
return function () {
|
|
229
|
-
var context = this;
|
|
230
|
-
var args = arguments;
|
|
231
|
-
clearTimeout(debounceTimer);
|
|
232
|
-
debounceTimer = setTimeout(function () {
|
|
233
|
-
return func.apply(context, args);
|
|
234
|
-
}, delay);
|
|
235
|
-
};
|
|
236
|
-
});
|
|
237
|
-
// CONCATENATED MODULE: ./packages/utils/pascalCaseToKebabCase.js
|
|
238
|
-
/* harmony default export */ var pascalCaseToKebabCase = (function (string) {
|
|
239
|
-
return string.replace(/([a-z0-9])([A-Z])/g, '$1-$2').replace(/([A-Z])([A-Z])(?=[a-z])/g, '$1-$2').toLowerCase();
|
|
240
|
-
});
|
|
241
|
-
// CONCATENATED MODULE: ./packages/utils/index.js
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
/***/ }),
|
|
246
|
-
/* 7 */,
|
|
247
|
-
/* 8 */
|
|
248
|
-
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
249
|
-
|
|
250
|
-
"use strict";
|
|
251
|
-
// ESM COMPAT FLAG
|
|
252
|
-
__webpack_require__.r(__webpack_exports__);
|
|
253
|
-
|
|
254
|
-
// CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./packages/components/MazInput/_main.vue?vue&type=template&id=5b617c72&
|
|
255
|
-
var render = function () {
|
|
256
|
-
var _vm = this
|
|
257
|
-
var _h = _vm.$createElement
|
|
258
|
-
var _c = _vm._self._c || _h
|
|
259
|
-
return _c(
|
|
260
|
-
"div",
|
|
261
|
-
{
|
|
262
|
-
ref: "parent",
|
|
263
|
-
staticClass:
|
|
264
|
-
"maz-base-component maz-input maz-border maz-border-color maz-border-color-hover maz-border-solid maz-border-radius",
|
|
265
|
-
class: [
|
|
266
|
-
{
|
|
267
|
-
"is-focused": _vm.isFocus || _vm.focus,
|
|
268
|
-
"is-valid": _vm.success,
|
|
269
|
-
"has-value": _vm.value,
|
|
270
|
-
"is-textarea": _vm.textarea,
|
|
271
|
-
"has-error": _vm.error,
|
|
272
|
-
"has-warning": _vm.warning,
|
|
273
|
-
"is-disabled": _vm.disabled,
|
|
274
|
-
"maz-is-dark": _vm.dark,
|
|
275
|
-
"has-hint": _vm.hint,
|
|
276
|
-
"has-no-label": !_vm.hasLabel && !_vm.hint,
|
|
277
|
-
"has-left-icon": _vm.hasLeftIcon(),
|
|
278
|
-
},
|
|
279
|
-
"maz-input--" + _vm.size,
|
|
280
|
-
"has-" + _vm.leftNumberIcon + "-right-icon",
|
|
281
|
-
"maz-input--" + _vm.color,
|
|
282
|
-
],
|
|
283
|
-
on: { click: _vm.focusInput },
|
|
284
|
-
},
|
|
285
|
-
[
|
|
286
|
-
_vm.hasLeftIcon()
|
|
287
|
-
? _c(
|
|
288
|
-
"div",
|
|
289
|
-
{
|
|
290
|
-
staticClass: "maz-input__icon maz-flex left",
|
|
291
|
-
class: [
|
|
292
|
-
_vm.textarea ? "maz-align-start maz-pt-2" : "maz-align-center",
|
|
293
|
-
],
|
|
294
|
-
},
|
|
295
|
-
[
|
|
296
|
-
_vm._t("icon-left", function () {
|
|
297
|
-
return [
|
|
298
|
-
_c("i", { staticClass: "material-icons" }, [
|
|
299
|
-
_vm._v(_vm._s(_vm.leftIconName)),
|
|
300
|
-
]),
|
|
301
|
-
]
|
|
302
|
-
}),
|
|
303
|
-
],
|
|
304
|
-
2
|
|
305
|
-
)
|
|
306
|
-
: _vm._e(),
|
|
307
|
-
_vm.hasRightIcon()
|
|
308
|
-
? _c(
|
|
309
|
-
"div",
|
|
310
|
-
{
|
|
311
|
-
staticClass: "maz-input__icon maz-flex right",
|
|
312
|
-
class: [
|
|
313
|
-
_vm.textarea ? "maz-align-start maz-pt-2" : "maz-align-center",
|
|
314
|
-
],
|
|
315
|
-
},
|
|
316
|
-
[
|
|
317
|
-
_vm._t("icon-right", function () {
|
|
318
|
-
return [
|
|
319
|
-
_c("i", { staticClass: "material-icons" }, [
|
|
320
|
-
_vm._v(_vm._s(_vm.rightIconName)),
|
|
321
|
-
]),
|
|
322
|
-
]
|
|
323
|
-
}),
|
|
324
|
-
],
|
|
325
|
-
2
|
|
326
|
-
)
|
|
327
|
-
: _vm._e(),
|
|
328
|
-
_vm.getType === "checkbox" && !_vm.textarea
|
|
329
|
-
? _c(
|
|
330
|
-
"input",
|
|
331
|
-
_vm._b(
|
|
332
|
-
{
|
|
333
|
-
directives: [
|
|
334
|
-
{
|
|
335
|
-
name: "model",
|
|
336
|
-
rawName: "v-model",
|
|
337
|
-
value: _vm.inputValue,
|
|
338
|
-
expression: "inputValue",
|
|
339
|
-
},
|
|
340
|
-
],
|
|
341
|
-
ref: "MazInput",
|
|
342
|
-
staticClass: "maz-input__input maz-border-radius",
|
|
343
|
-
class: {
|
|
344
|
-
"has-right-icon":
|
|
345
|
-
_vm.hasClearBtn || _vm.hasPasswordBtn || _vm.hasRightIcon(),
|
|
346
|
-
},
|
|
347
|
-
attrs: {
|
|
348
|
-
id: _vm.uniqueId,
|
|
349
|
-
placeholder: _vm.placeholderValue,
|
|
350
|
-
"aria-label": _vm.placeholder,
|
|
351
|
-
disabled: _vm.disabled,
|
|
352
|
-
required: _vm.required,
|
|
353
|
-
readonly: _vm.readonly,
|
|
354
|
-
type: "checkbox",
|
|
355
|
-
},
|
|
356
|
-
domProps: {
|
|
357
|
-
checked: Array.isArray(_vm.inputValue)
|
|
358
|
-
? _vm._i(_vm.inputValue, null) > -1
|
|
359
|
-
: _vm.inputValue,
|
|
360
|
-
},
|
|
361
|
-
on: {
|
|
362
|
-
keydown: _vm.keyDown,
|
|
363
|
-
keyup: _vm.keyUp,
|
|
364
|
-
focus: _vm.onFocus,
|
|
365
|
-
blur: _vm.onBlur,
|
|
366
|
-
paste: _vm.onPaste,
|
|
367
|
-
change: [
|
|
368
|
-
function ($event) {
|
|
369
|
-
var $$a = _vm.inputValue,
|
|
370
|
-
$$el = $event.target,
|
|
371
|
-
$$c = $$el.checked ? true : false
|
|
372
|
-
if (Array.isArray($$a)) {
|
|
373
|
-
var $$v = null,
|
|
374
|
-
$$i = _vm._i($$a, $$v)
|
|
375
|
-
if ($$el.checked) {
|
|
376
|
-
$$i < 0 && (_vm.inputValue = $$a.concat([$$v]))
|
|
377
|
-
} else {
|
|
378
|
-
$$i > -1 &&
|
|
379
|
-
(_vm.inputValue = $$a
|
|
380
|
-
.slice(0, $$i)
|
|
381
|
-
.concat($$a.slice($$i + 1)))
|
|
382
|
-
}
|
|
383
|
-
} else {
|
|
384
|
-
_vm.inputValue = $$c
|
|
385
|
-
}
|
|
386
|
-
},
|
|
387
|
-
_vm.onChange,
|
|
388
|
-
],
|
|
389
|
-
click: function ($event) {
|
|
390
|
-
return _vm.$emit("click", $event)
|
|
391
|
-
},
|
|
392
|
-
},
|
|
393
|
-
},
|
|
394
|
-
"input",
|
|
395
|
-
_vm.$attrs,
|
|
396
|
-
false
|
|
397
|
-
)
|
|
398
|
-
)
|
|
399
|
-
: _vm.getType === "radio" && !_vm.textarea
|
|
400
|
-
? _c(
|
|
401
|
-
"input",
|
|
402
|
-
_vm._b(
|
|
403
|
-
{
|
|
404
|
-
directives: [
|
|
405
|
-
{
|
|
406
|
-
name: "model",
|
|
407
|
-
rawName: "v-model",
|
|
408
|
-
value: _vm.inputValue,
|
|
409
|
-
expression: "inputValue",
|
|
410
|
-
},
|
|
411
|
-
],
|
|
412
|
-
ref: "MazInput",
|
|
413
|
-
staticClass: "maz-input__input maz-border-radius",
|
|
414
|
-
class: {
|
|
415
|
-
"has-right-icon":
|
|
416
|
-
_vm.hasClearBtn || _vm.hasPasswordBtn || _vm.hasRightIcon(),
|
|
417
|
-
},
|
|
418
|
-
attrs: {
|
|
419
|
-
id: _vm.uniqueId,
|
|
420
|
-
placeholder: _vm.placeholderValue,
|
|
421
|
-
"aria-label": _vm.placeholder,
|
|
422
|
-
disabled: _vm.disabled,
|
|
423
|
-
required: _vm.required,
|
|
424
|
-
readonly: _vm.readonly,
|
|
425
|
-
type: "radio",
|
|
426
|
-
},
|
|
427
|
-
domProps: { checked: _vm._q(_vm.inputValue, null) },
|
|
428
|
-
on: {
|
|
429
|
-
keydown: _vm.keyDown,
|
|
430
|
-
keyup: _vm.keyUp,
|
|
431
|
-
focus: _vm.onFocus,
|
|
432
|
-
blur: _vm.onBlur,
|
|
433
|
-
paste: _vm.onPaste,
|
|
434
|
-
change: [
|
|
435
|
-
function ($event) {
|
|
436
|
-
_vm.inputValue = null
|
|
437
|
-
},
|
|
438
|
-
_vm.onChange,
|
|
439
|
-
],
|
|
440
|
-
click: function ($event) {
|
|
441
|
-
return _vm.$emit("click", $event)
|
|
442
|
-
},
|
|
443
|
-
},
|
|
444
|
-
},
|
|
445
|
-
"input",
|
|
446
|
-
_vm.$attrs,
|
|
447
|
-
false
|
|
448
|
-
)
|
|
449
|
-
)
|
|
450
|
-
: !_vm.textarea
|
|
451
|
-
? _c(
|
|
452
|
-
"input",
|
|
453
|
-
_vm._b(
|
|
454
|
-
{
|
|
455
|
-
directives: [
|
|
456
|
-
{
|
|
457
|
-
name: "model",
|
|
458
|
-
rawName: "v-model",
|
|
459
|
-
value: _vm.inputValue,
|
|
460
|
-
expression: "inputValue",
|
|
461
|
-
},
|
|
462
|
-
],
|
|
463
|
-
ref: "MazInput",
|
|
464
|
-
staticClass: "maz-input__input maz-border-radius",
|
|
465
|
-
class: {
|
|
466
|
-
"has-right-icon":
|
|
467
|
-
_vm.hasClearBtn || _vm.hasPasswordBtn || _vm.hasRightIcon(),
|
|
468
|
-
},
|
|
469
|
-
attrs: {
|
|
470
|
-
id: _vm.uniqueId,
|
|
471
|
-
placeholder: _vm.placeholderValue,
|
|
472
|
-
"aria-label": _vm.placeholder,
|
|
473
|
-
disabled: _vm.disabled,
|
|
474
|
-
required: _vm.required,
|
|
475
|
-
readonly: _vm.readonly,
|
|
476
|
-
type: _vm.getType,
|
|
477
|
-
},
|
|
478
|
-
domProps: { value: _vm.inputValue },
|
|
479
|
-
on: {
|
|
480
|
-
keydown: _vm.keyDown,
|
|
481
|
-
keyup: _vm.keyUp,
|
|
482
|
-
focus: _vm.onFocus,
|
|
483
|
-
blur: _vm.onBlur,
|
|
484
|
-
paste: _vm.onPaste,
|
|
485
|
-
change: _vm.onChange,
|
|
486
|
-
click: function ($event) {
|
|
487
|
-
return _vm.$emit("click", $event)
|
|
488
|
-
},
|
|
489
|
-
input: function ($event) {
|
|
490
|
-
if ($event.target.composing) {
|
|
491
|
-
return
|
|
492
|
-
}
|
|
493
|
-
_vm.inputValue = $event.target.value
|
|
494
|
-
},
|
|
495
|
-
},
|
|
496
|
-
},
|
|
497
|
-
"input",
|
|
498
|
-
_vm.$attrs,
|
|
499
|
-
false
|
|
500
|
-
)
|
|
501
|
-
)
|
|
502
|
-
: _c(
|
|
503
|
-
"textarea",
|
|
504
|
-
_vm._b(
|
|
505
|
-
{
|
|
506
|
-
directives: [
|
|
507
|
-
{
|
|
508
|
-
name: "model",
|
|
509
|
-
rawName: "v-model",
|
|
510
|
-
value: _vm.inputValue,
|
|
511
|
-
expression: "inputValue",
|
|
512
|
-
},
|
|
513
|
-
],
|
|
514
|
-
ref: "MazInput",
|
|
515
|
-
staticClass: "maz-input__input maz-textarea",
|
|
516
|
-
attrs: {
|
|
517
|
-
id: _vm.uniqueId,
|
|
518
|
-
placeholder: _vm.placeholderValue,
|
|
519
|
-
type: _vm.type,
|
|
520
|
-
required: _vm.required,
|
|
521
|
-
readonly: _vm.readonly,
|
|
522
|
-
},
|
|
523
|
-
domProps: { value: _vm.inputValue },
|
|
524
|
-
on: {
|
|
525
|
-
keydown: _vm.keyDown,
|
|
526
|
-
keyup: _vm.keyUp,
|
|
527
|
-
focus: _vm.onFocus,
|
|
528
|
-
blur: _vm.onBlur,
|
|
529
|
-
paste: _vm.onPaste,
|
|
530
|
-
change: _vm.onChange,
|
|
531
|
-
click: function ($event) {
|
|
532
|
-
return _vm.$emit("click", $event)
|
|
533
|
-
},
|
|
534
|
-
input: function ($event) {
|
|
535
|
-
if ($event.target.composing) {
|
|
536
|
-
return
|
|
537
|
-
}
|
|
538
|
-
_vm.inputValue = $event.target.value
|
|
539
|
-
},
|
|
540
|
-
},
|
|
541
|
-
},
|
|
542
|
-
"textarea",
|
|
543
|
-
_vm.$attrs,
|
|
544
|
-
false
|
|
545
|
-
)
|
|
546
|
-
),
|
|
547
|
-
_vm.hasLabel || _vm.hint
|
|
548
|
-
? _c(
|
|
549
|
-
"label",
|
|
550
|
-
{
|
|
551
|
-
ref: "label",
|
|
552
|
-
staticClass: "maz-input__label",
|
|
553
|
-
class: _vm.error ? "maz-text-danger" : null,
|
|
554
|
-
attrs: { for: _vm.uniqueId, tabindex: "-1" },
|
|
555
|
-
on: { click: _vm.focusInput },
|
|
556
|
-
},
|
|
557
|
-
[
|
|
558
|
-
_vm._v(
|
|
559
|
-
"\n " +
|
|
560
|
-
_vm._s(_vm.hintValue || _vm.placeholderValue) +
|
|
561
|
-
"\n "
|
|
562
|
-
),
|
|
563
|
-
]
|
|
564
|
-
)
|
|
565
|
-
: _vm._e(),
|
|
566
|
-
_c("transition-group", { attrs: { name: "maz-scale" } }, [
|
|
567
|
-
_vm.hasClearBtn
|
|
568
|
-
? _c(
|
|
569
|
-
"button",
|
|
570
|
-
{
|
|
571
|
-
key: "clear-button",
|
|
572
|
-
staticClass:
|
|
573
|
-
"maz-input__toggle-btn --clear maz-flex maz-flex-center",
|
|
574
|
-
class: { "has-right-icon": _vm.hasRightIcon() },
|
|
575
|
-
attrs: { title: "clear", type: "button", tabindex: "-1" },
|
|
576
|
-
on: {
|
|
577
|
-
click: function ($event) {
|
|
578
|
-
$event.stopPropagation()
|
|
579
|
-
return _vm.clear.apply(null, arguments)
|
|
580
|
-
},
|
|
581
|
-
},
|
|
582
|
-
},
|
|
583
|
-
[
|
|
584
|
-
_c(
|
|
585
|
-
"i",
|
|
586
|
-
{ staticClass: "maz-input__toggle-btn__icon material-icons" },
|
|
587
|
-
[_vm._v("\n close\n ")]
|
|
588
|
-
),
|
|
589
|
-
]
|
|
590
|
-
)
|
|
591
|
-
: _vm._e(),
|
|
592
|
-
_vm.hasPasswordBtn
|
|
593
|
-
? _c(
|
|
594
|
-
"button",
|
|
595
|
-
{
|
|
596
|
-
key: "password-button",
|
|
597
|
-
staticClass:
|
|
598
|
-
"maz-input__toggle-btn password maz-flex maz-flex-center",
|
|
599
|
-
class: {
|
|
600
|
-
"has-clear-btn": _vm.hasClearBtn,
|
|
601
|
-
"has-right-icon": _vm.hasRightIcon(),
|
|
602
|
-
},
|
|
603
|
-
attrs: { title: "clear", type: "button", tabindex: "-1" },
|
|
604
|
-
on: {
|
|
605
|
-
click: function ($event) {
|
|
606
|
-
_vm.showPassword = !_vm.showPassword
|
|
607
|
-
},
|
|
608
|
-
},
|
|
609
|
-
},
|
|
610
|
-
[
|
|
611
|
-
_c(
|
|
612
|
-
"i",
|
|
613
|
-
{ staticClass: "maz-input__toggle-btn__icon material-icons" },
|
|
614
|
-
[
|
|
615
|
-
_vm._v(
|
|
616
|
-
"\n " +
|
|
617
|
-
_vm._s(
|
|
618
|
-
_vm.showPassword ? "visibility_off" : "visibility"
|
|
619
|
-
) +
|
|
620
|
-
"\n "
|
|
621
|
-
),
|
|
622
|
-
]
|
|
623
|
-
),
|
|
624
|
-
]
|
|
625
|
-
)
|
|
626
|
-
: _vm._e(),
|
|
627
|
-
]),
|
|
628
|
-
_vm.loading
|
|
629
|
-
? _c(
|
|
630
|
-
"div",
|
|
631
|
-
{
|
|
632
|
-
staticClass: "maz-input__loader",
|
|
633
|
-
class: { textarea: _vm.textarea },
|
|
634
|
-
},
|
|
635
|
-
[_c("div", { staticClass: "maz-input__loader__progress-bar" })]
|
|
636
|
-
)
|
|
637
|
-
: _vm._e(),
|
|
638
|
-
],
|
|
639
|
-
1
|
|
640
|
-
)
|
|
641
|
-
}
|
|
642
|
-
var staticRenderFns = []
|
|
643
|
-
render._withStripped = true
|
|
644
|
-
|
|
645
|
-
|
|
646
|
-
// CONCATENATED MODULE: ./packages/components/MazInput/_main.vue?vue&type=template&id=5b617c72&
|
|
647
|
-
|
|
648
|
-
// EXTERNAL MODULE: ./packages/mixins/uniqueId.js
|
|
649
|
-
var uniqueId = __webpack_require__(2);
|
|
650
|
-
|
|
651
|
-
// EXTERNAL MODULE: ./packages/utils/index.js + 2 modules
|
|
652
|
-
var utils = __webpack_require__(6);
|
|
653
|
-
|
|
654
|
-
// CONCATENATED MODULE: ./node_modules/babel-loader/lib!./node_modules/vue-loader/lib??vue-loader-options!./packages/components/MazInput/_main.vue?vue&type=script&lang=js&
|
|
655
|
-
function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); }
|
|
656
|
-
|
|
657
|
-
//
|
|
658
|
-
//
|
|
659
|
-
//
|
|
660
|
-
//
|
|
661
|
-
//
|
|
662
|
-
//
|
|
663
|
-
//
|
|
664
|
-
//
|
|
665
|
-
//
|
|
666
|
-
//
|
|
667
|
-
//
|
|
668
|
-
//
|
|
669
|
-
//
|
|
670
|
-
//
|
|
671
|
-
//
|
|
672
|
-
//
|
|
673
|
-
//
|
|
674
|
-
//
|
|
675
|
-
//
|
|
676
|
-
//
|
|
677
|
-
//
|
|
678
|
-
//
|
|
679
|
-
//
|
|
680
|
-
//
|
|
681
|
-
//
|
|
682
|
-
//
|
|
683
|
-
//
|
|
684
|
-
//
|
|
685
|
-
//
|
|
686
|
-
//
|
|
687
|
-
//
|
|
688
|
-
//
|
|
689
|
-
//
|
|
690
|
-
//
|
|
691
|
-
//
|
|
692
|
-
//
|
|
693
|
-
//
|
|
694
|
-
//
|
|
695
|
-
//
|
|
696
|
-
//
|
|
697
|
-
//
|
|
698
|
-
//
|
|
699
|
-
//
|
|
700
|
-
//
|
|
701
|
-
//
|
|
702
|
-
//
|
|
703
|
-
//
|
|
704
|
-
//
|
|
705
|
-
//
|
|
706
|
-
//
|
|
707
|
-
//
|
|
708
|
-
//
|
|
709
|
-
//
|
|
710
|
-
//
|
|
711
|
-
//
|
|
712
|
-
//
|
|
713
|
-
//
|
|
714
|
-
//
|
|
715
|
-
//
|
|
716
|
-
//
|
|
717
|
-
//
|
|
718
|
-
//
|
|
719
|
-
//
|
|
720
|
-
//
|
|
721
|
-
//
|
|
722
|
-
//
|
|
723
|
-
//
|
|
724
|
-
//
|
|
725
|
-
//
|
|
726
|
-
//
|
|
727
|
-
//
|
|
728
|
-
//
|
|
729
|
-
//
|
|
730
|
-
//
|
|
731
|
-
//
|
|
732
|
-
//
|
|
733
|
-
//
|
|
734
|
-
//
|
|
735
|
-
//
|
|
736
|
-
//
|
|
737
|
-
//
|
|
738
|
-
//
|
|
739
|
-
//
|
|
740
|
-
//
|
|
741
|
-
//
|
|
742
|
-
//
|
|
743
|
-
//
|
|
744
|
-
//
|
|
745
|
-
//
|
|
746
|
-
//
|
|
747
|
-
//
|
|
748
|
-
//
|
|
749
|
-
//
|
|
750
|
-
//
|
|
751
|
-
//
|
|
752
|
-
//
|
|
753
|
-
//
|
|
754
|
-
//
|
|
755
|
-
//
|
|
756
|
-
//
|
|
757
|
-
//
|
|
758
|
-
//
|
|
759
|
-
//
|
|
760
|
-
//
|
|
761
|
-
//
|
|
762
|
-
//
|
|
763
|
-
//
|
|
764
|
-
//
|
|
765
|
-
//
|
|
766
|
-
//
|
|
767
|
-
//
|
|
768
|
-
//
|
|
769
|
-
//
|
|
770
|
-
//
|
|
771
|
-
//
|
|
772
|
-
//
|
|
773
|
-
//
|
|
774
|
-
//
|
|
775
|
-
//
|
|
776
|
-
//
|
|
777
|
-
//
|
|
778
|
-
//
|
|
779
|
-
//
|
|
780
|
-
//
|
|
781
|
-
//
|
|
782
|
-
//
|
|
783
|
-
//
|
|
784
|
-
//
|
|
785
|
-
//
|
|
786
|
-
//
|
|
787
|
-
//
|
|
788
|
-
//
|
|
789
|
-
//
|
|
790
|
-
//
|
|
791
|
-
//
|
|
792
|
-
//
|
|
793
|
-
//
|
|
794
|
-
//
|
|
795
|
-
//
|
|
796
|
-
//
|
|
797
|
-
//
|
|
798
|
-
//
|
|
799
|
-
//
|
|
800
|
-
//
|
|
801
|
-
//
|
|
802
|
-
//
|
|
803
|
-
|
|
804
|
-
|
|
805
|
-
var DEBOUNCE = 500;
|
|
806
|
-
/**
|
|
807
|
-
* > Beautiful input UI with loading & error manager
|
|
808
|
-
*/
|
|
809
|
-
|
|
810
|
-
/* harmony default export */ var _mainvue_type_script_lang_js_ = ({
|
|
811
|
-
name: 'MazInput',
|
|
812
|
-
mixins: [uniqueId["a" /* default */]],
|
|
813
|
-
props: {
|
|
814
|
-
// value of the input
|
|
815
|
-
value: {
|
|
816
|
-
validator: function validator(prop) {
|
|
817
|
-
return ['string', 'number'].includes(_typeof(prop)) || prop === null;
|
|
818
|
-
},
|
|
819
|
-
default: null
|
|
820
|
-
},
|
|
821
|
-
// input id
|
|
822
|
-
id: {
|
|
823
|
-
type: String,
|
|
824
|
-
default: null
|
|
825
|
-
},
|
|
826
|
-
// value of the input
|
|
827
|
-
placeholder: {
|
|
828
|
-
type: String,
|
|
829
|
-
default: 'Enter text'
|
|
830
|
-
},
|
|
831
|
-
// replace the label if is present
|
|
832
|
-
hint: {
|
|
833
|
-
type: String,
|
|
834
|
-
default: null
|
|
835
|
-
},
|
|
836
|
-
// input size (`'lg'` / `'sm'`)
|
|
837
|
-
size: {
|
|
838
|
-
type: String,
|
|
839
|
-
default: null
|
|
840
|
-
},
|
|
841
|
-
// is the input size (`text` or `number`)
|
|
842
|
-
type: {
|
|
843
|
-
type: String,
|
|
844
|
-
default: 'text'
|
|
845
|
-
},
|
|
846
|
-
// should be a [material icon](https://material.io/resources/icons/) name
|
|
847
|
-
leftIconName: {
|
|
848
|
-
type: String,
|
|
849
|
-
default: null
|
|
850
|
-
},
|
|
851
|
-
// should be a [material icon](https://material.io/resources/icons/) name
|
|
852
|
-
rightIconName: {
|
|
853
|
-
type: String,
|
|
854
|
-
default: null
|
|
855
|
-
},
|
|
856
|
-
// When is `true` the input has the error style
|
|
857
|
-
error: {
|
|
858
|
-
type: Boolean,
|
|
859
|
-
default: false
|
|
860
|
-
},
|
|
861
|
-
// When is `true` the input has the warning style
|
|
862
|
-
warning: {
|
|
863
|
-
type: Boolean,
|
|
864
|
-
default: false
|
|
865
|
-
},
|
|
866
|
-
// When is `true` the input is disable
|
|
867
|
-
disabled: {
|
|
868
|
-
type: Boolean,
|
|
869
|
-
default: false
|
|
870
|
-
},
|
|
871
|
-
// When is `true` the input has the dark theme
|
|
872
|
-
dark: {
|
|
873
|
-
type: Boolean,
|
|
874
|
-
default: false
|
|
875
|
-
},
|
|
876
|
-
// When is `true` the input is on readonly mode
|
|
877
|
-
readonly: {
|
|
878
|
-
type: Boolean,
|
|
879
|
-
default: false
|
|
880
|
-
},
|
|
881
|
-
// When is `true` the input has the valid style
|
|
882
|
-
success: {
|
|
883
|
-
type: Boolean,
|
|
884
|
-
default: false
|
|
885
|
-
},
|
|
886
|
-
// When is `true` the input become required & has the `*` symbol
|
|
887
|
-
required: {
|
|
888
|
-
type: Boolean,
|
|
889
|
-
default: false
|
|
890
|
-
},
|
|
891
|
-
// When is `true` the input is a textarea
|
|
892
|
-
textarea: {
|
|
893
|
-
type: Boolean,
|
|
894
|
-
default: false
|
|
895
|
-
},
|
|
896
|
-
// When is `true` the input has a progress bar animated
|
|
897
|
-
loading: {
|
|
898
|
-
type: Boolean,
|
|
899
|
-
default: false
|
|
900
|
-
},
|
|
901
|
-
// When is `true` the input can be clear with a button on the right
|
|
902
|
-
clearable: {
|
|
903
|
-
type: Boolean,
|
|
904
|
-
default: false
|
|
905
|
-
},
|
|
906
|
-
// When is `true` the input has not label (top placeholder when value is not empty)
|
|
907
|
-
noLabel: {
|
|
908
|
-
type: Boolean,
|
|
909
|
-
default: false
|
|
910
|
-
},
|
|
911
|
-
// When is `true` and is `required`, the `*` symbol is not showing
|
|
912
|
-
noRequiredSymbol: {
|
|
913
|
-
type: Boolean,
|
|
914
|
-
default: false
|
|
915
|
-
},
|
|
916
|
-
// force focus style input
|
|
917
|
-
focus: {
|
|
918
|
-
type: Boolean,
|
|
919
|
-
default: false
|
|
920
|
-
},
|
|
921
|
-
// color name in basic colors
|
|
922
|
-
color: {
|
|
923
|
-
type: String,
|
|
924
|
-
default: 'primary'
|
|
925
|
-
},
|
|
926
|
-
// Add a debounce of 500ms to emit the value
|
|
927
|
-
debounce: {
|
|
928
|
-
type: Boolean,
|
|
929
|
-
default: false
|
|
930
|
-
}
|
|
931
|
-
},
|
|
932
|
-
data: function data() {
|
|
933
|
-
return {
|
|
934
|
-
isFocus: false,
|
|
935
|
-
showPassword: false
|
|
936
|
-
};
|
|
937
|
-
},
|
|
938
|
-
computed: {
|
|
939
|
-
inputValue: {
|
|
940
|
-
get: function get() {
|
|
941
|
-
return this.value;
|
|
942
|
-
},
|
|
943
|
-
set: function set(value) {
|
|
944
|
-
var valueToEmit = this.hasNumberType ? !value ? 0 : parseInt(value) : value;
|
|
945
|
-
this.emitValue(valueToEmit);
|
|
946
|
-
}
|
|
947
|
-
},
|
|
948
|
-
placeholderValue: function placeholderValue() {
|
|
949
|
-
var placeholder = this.placeholder;
|
|
950
|
-
if (this.required && placeholder && !this.noRequiredSymbol) placeholder += ' *';
|
|
951
|
-
return placeholder;
|
|
952
|
-
},
|
|
953
|
-
hintValue: function hintValue() {
|
|
954
|
-
var hint = this.hint;
|
|
955
|
-
if (this.required && hint) hint += ' *';
|
|
956
|
-
return hint;
|
|
957
|
-
},
|
|
958
|
-
hasNumberType: function hasNumberType() {
|
|
959
|
-
return this.type === 'number';
|
|
960
|
-
},
|
|
961
|
-
hasLabel: function hasLabel() {
|
|
962
|
-
return !this.noLabel;
|
|
963
|
-
},
|
|
964
|
-
getType: function getType() {
|
|
965
|
-
return this.showPassword ? 'text' : this.type;
|
|
966
|
-
},
|
|
967
|
-
hasPasswordBtn: function hasPasswordBtn() {
|
|
968
|
-
return this.type === 'password' && this.inputValue;
|
|
969
|
-
},
|
|
970
|
-
hasClearBtn: function hasClearBtn() {
|
|
971
|
-
return this.clearable && this.inputValue && !this.textarea;
|
|
972
|
-
},
|
|
973
|
-
leftNumberIcon: function leftNumberIcon() {
|
|
974
|
-
var array = [!!this.hasRightIcon(), !!this.hasClearBtn, !!this.hasPasswordBtn];
|
|
975
|
-
return array.filter(function (a) {
|
|
976
|
-
return a;
|
|
977
|
-
}).length;
|
|
978
|
-
}
|
|
979
|
-
},
|
|
980
|
-
methods: {
|
|
981
|
-
debounceValue: Object(utils["a" /* debounce */])(function (value) {
|
|
982
|
-
// return the input value (in `@input` or `v-model`)
|
|
983
|
-
// @arg input
|
|
984
|
-
this.$emit('input', value);
|
|
985
|
-
}, DEBOUNCE),
|
|
986
|
-
emitValue: function emitValue(value) {
|
|
987
|
-
if (this.debounce) return this.debounceValue(value);
|
|
988
|
-
this.$emit('input', value);
|
|
989
|
-
},
|
|
990
|
-
hasLeftIcon: function hasLeftIcon() {
|
|
991
|
-
return this.leftIconName || this.$slots['icon-left'];
|
|
992
|
-
},
|
|
993
|
-
hasRightIcon: function hasRightIcon() {
|
|
994
|
-
return this.rightIconName || this.$slots['icon-right'];
|
|
995
|
-
},
|
|
996
|
-
focusInput: function focusInput() {
|
|
997
|
-
this.$refs.MazInput.focus();
|
|
998
|
-
},
|
|
999
|
-
onFocus: function onFocus(e) {
|
|
1000
|
-
// sent the focus event
|
|
1001
|
-
// @arg event
|
|
1002
|
-
this.$emit('focus', e);
|
|
1003
|
-
this.isFocus = true;
|
|
1004
|
-
},
|
|
1005
|
-
onBlur: function onBlur(e) {
|
|
1006
|
-
// sent the blur event
|
|
1007
|
-
// @arg event
|
|
1008
|
-
this.$emit('blur', e);
|
|
1009
|
-
this.isFocus = false;
|
|
1010
|
-
},
|
|
1011
|
-
onPaste: function onPaste(e) {
|
|
1012
|
-
// sent when text is past in the textfield
|
|
1013
|
-
// @arg event
|
|
1014
|
-
this.$emit('paste', e);
|
|
1015
|
-
},
|
|
1016
|
-
onChange: function onChange(e) {
|
|
1017
|
-
// sent on input change
|
|
1018
|
-
// @arg event
|
|
1019
|
-
this.$emit('change', e);
|
|
1020
|
-
},
|
|
1021
|
-
clear: function clear() {
|
|
1022
|
-
this.$emit('input', this.hasNumberType ? 0 : ''); // sent when the input is clear
|
|
1023
|
-
|
|
1024
|
-
this.$emit('clear');
|
|
1025
|
-
},
|
|
1026
|
-
keyUp: function keyUp(e) {
|
|
1027
|
-
// sent the keyup event
|
|
1028
|
-
// @arg event
|
|
1029
|
-
this.$emit('keyup', e);
|
|
1030
|
-
},
|
|
1031
|
-
keyDown: function keyDown(e) {
|
|
1032
|
-
// sent the keydown event
|
|
1033
|
-
// @arg event
|
|
1034
|
-
this.$emit('keydown', e);
|
|
1035
|
-
}
|
|
1036
|
-
}
|
|
1037
|
-
});
|
|
1038
|
-
// CONCATENATED MODULE: ./packages/components/MazInput/_main.vue?vue&type=script&lang=js&
|
|
1039
|
-
/* harmony default export */ var MazInput_mainvue_type_script_lang_js_ = (_mainvue_type_script_lang_js_);
|
|
1040
|
-
// EXTERNAL MODULE: ./node_modules/vue-loader/lib/runtime/componentNormalizer.js
|
|
1041
|
-
var componentNormalizer = __webpack_require__(0);
|
|
1042
|
-
|
|
1043
|
-
// CONCATENATED MODULE: ./packages/components/MazInput/_main.vue
|
|
1044
|
-
|
|
1045
|
-
|
|
1046
|
-
|
|
1047
|
-
|
|
1048
|
-
|
|
1049
|
-
/* normalize component */
|
|
1050
|
-
|
|
1051
|
-
var component = Object(componentNormalizer["a" /* default */])(
|
|
1052
|
-
MazInput_mainvue_type_script_lang_js_,
|
|
1053
|
-
render,
|
|
1054
|
-
staticRenderFns,
|
|
1055
|
-
false,
|
|
1056
|
-
null,
|
|
1057
|
-
null,
|
|
1058
|
-
null
|
|
1059
|
-
|
|
1060
|
-
)
|
|
1061
|
-
|
|
1062
|
-
/* hot reload */
|
|
1063
|
-
if (false) { var api; }
|
|
1064
|
-
component.options.__file = "packages/components/MazInput/_main.vue"
|
|
1065
|
-
/* harmony default export */ var _main = (component.exports);
|
|
1066
|
-
// CONCATENATED MODULE: ./packages/components/MazInput/index.js
|
|
1067
|
-
|
|
1068
|
-
|
|
1069
|
-
_main.install = function (Vue) {
|
|
1070
|
-
Vue.component(_main.name, _main);
|
|
1071
|
-
};
|
|
1072
|
-
|
|
1073
|
-
/* harmony default export */ var MazInput = __webpack_exports__["default"] = (_main);
|
|
1074
|
-
|
|
1075
|
-
/***/ })
|
|
1076
|
-
/******/ ]);
|