@mdsfe/mds-ui 0.4.2 → 0.4.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (50) hide show
  1. package/dist/affix.js +504 -0
  2. package/dist/alert.js +471 -0
  3. package/dist/anchor.js +514 -0
  4. package/dist/avatar.js +441 -0
  5. package/dist/backtop.js +464 -0
  6. package/dist/badge.js +434 -0
  7. package/dist/bordershadow.js +316 -0
  8. package/dist/breadcrumb.js +426 -0
  9. package/dist/button.js +564 -0
  10. package/dist/carousel.js +2 -2
  11. package/dist/cascader.js +4 -4
  12. package/dist/cascaderpanel.js +10 -10
  13. package/dist/collapse.js +2 -2
  14. package/dist/divider.js +2 -2
  15. package/dist/drawer.js +4 -4
  16. package/dist/empty.js +2 -2
  17. package/dist/form.js +2 -2
  18. package/dist/input.js +2 -2
  19. package/dist/inputnumber.js +2 -2
  20. package/dist/layout.js +2 -2
  21. package/dist/list.js +2 -2
  22. package/dist/loading.js +2 -2
  23. package/dist/menu.js +4 -4
  24. package/dist/message.js +2 -2
  25. package/dist/modal.js +2 -2
  26. package/dist/notification.js +7 -7
  27. package/dist/pagination.js +4 -4
  28. package/dist/popconfirm.js +2 -2
  29. package/dist/popover.js +2 -2
  30. package/dist/progress.js +2 -2
  31. package/dist/radio.js +2 -2
  32. package/dist/rate.js +2 -2
  33. package/dist/select.js +7 -7
  34. package/dist/slider.js +2 -2
  35. package/dist/slottable.js +4 -4
  36. package/dist/steps.js +2 -2
  37. package/dist/style/icon.css +1 -1
  38. package/dist/switch.js +2 -2
  39. package/dist/table.js +6 -6
  40. package/dist/tabs.js +2 -2
  41. package/dist/tag.js +2 -2
  42. package/dist/text.js +2 -2
  43. package/dist/timeline.js +2 -2
  44. package/dist/timepicker.js +2 -2
  45. package/dist/tooltip.js +2 -2
  46. package/dist/transfer.js +6 -6
  47. package/dist/transition.js +2 -2
  48. package/dist/tree.js +2 -2
  49. package/dist/typography.js +2 -2
  50. package/package.json +1 -1
package/dist/alert.js CHANGED
@@ -0,0 +1,471 @@
1
+ (function webpackUniversalModuleDefinition(root, factory) {
2
+ if(typeof exports === 'object' && typeof module === 'object')
3
+ module.exports = factory();
4
+ else if(typeof define === 'function' && define.amd)
5
+ define([], factory);
6
+ else {
7
+ var a = factory();
8
+ for(var i in a) (typeof exports === 'object' ? exports : root)[i] = a[i];
9
+ }
10
+ })(window, function() {
11
+ return /******/ (function(modules) { // webpackBootstrap
12
+ /******/ // The module cache
13
+ /******/ var installedModules = {};
14
+ /******/
15
+ /******/ // The require function
16
+ /******/ function __webpack_require__(moduleId) {
17
+ /******/
18
+ /******/ // Check if module is in cache
19
+ /******/ if(installedModules[moduleId]) {
20
+ /******/ return installedModules[moduleId].exports;
21
+ /******/ }
22
+ /******/ // Create a new module (and put it into the cache)
23
+ /******/ var module = installedModules[moduleId] = {
24
+ /******/ i: moduleId,
25
+ /******/ l: false,
26
+ /******/ exports: {}
27
+ /******/ };
28
+ /******/
29
+ /******/ // Execute the module function
30
+ /******/ modules[moduleId].call(module.exports, module, module.exports, __webpack_require__);
31
+ /******/
32
+ /******/ // Flag the module as loaded
33
+ /******/ module.l = true;
34
+ /******/
35
+ /******/ // Return the exports of the module
36
+ /******/ return module.exports;
37
+ /******/ }
38
+ /******/
39
+ /******/
40
+ /******/ // expose the modules object (__webpack_modules__)
41
+ /******/ __webpack_require__.m = modules;
42
+ /******/
43
+ /******/ // expose the module cache
44
+ /******/ __webpack_require__.c = installedModules;
45
+ /******/
46
+ /******/ // define getter function for harmony exports
47
+ /******/ __webpack_require__.d = function(exports, name, getter) {
48
+ /******/ if(!__webpack_require__.o(exports, name)) {
49
+ /******/ Object.defineProperty(exports, name, { enumerable: true, get: getter });
50
+ /******/ }
51
+ /******/ };
52
+ /******/
53
+ /******/ // define __esModule on exports
54
+ /******/ __webpack_require__.r = function(exports) {
55
+ /******/ if(typeof Symbol !== 'undefined' && Symbol.toStringTag) {
56
+ /******/ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
57
+ /******/ }
58
+ /******/ Object.defineProperty(exports, '__esModule', { value: true });
59
+ /******/ };
60
+ /******/
61
+ /******/ // create a fake namespace object
62
+ /******/ // mode & 1: value is a module id, require it
63
+ /******/ // mode & 2: merge all properties of value into the ns
64
+ /******/ // mode & 4: return value when already ns object
65
+ /******/ // mode & 8|1: behave like require
66
+ /******/ __webpack_require__.t = function(value, mode) {
67
+ /******/ if(mode & 1) value = __webpack_require__(value);
68
+ /******/ if(mode & 8) return value;
69
+ /******/ if((mode & 4) && typeof value === 'object' && value && value.__esModule) return value;
70
+ /******/ var ns = Object.create(null);
71
+ /******/ __webpack_require__.r(ns);
72
+ /******/ Object.defineProperty(ns, 'default', { enumerable: true, value: value });
73
+ /******/ if(mode & 2 && typeof value != 'string') for(var key in value) __webpack_require__.d(ns, key, function(key) { return value[key]; }.bind(null, key));
74
+ /******/ return ns;
75
+ /******/ };
76
+ /******/
77
+ /******/ // getDefaultExport function for compatibility with non-harmony modules
78
+ /******/ __webpack_require__.n = function(module) {
79
+ /******/ var getter = module && module.__esModule ?
80
+ /******/ function getDefault() { return module['default']; } :
81
+ /******/ function getModuleExports() { return module; };
82
+ /******/ __webpack_require__.d(getter, 'a', getter);
83
+ /******/ return getter;
84
+ /******/ };
85
+ /******/
86
+ /******/ // Object.prototype.hasOwnProperty.call
87
+ /******/ __webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); };
88
+ /******/
89
+ /******/ // __webpack_public_path__
90
+ /******/ __webpack_require__.p = "";
91
+ /******/
92
+ /******/
93
+ /******/ // Load entry module and return exports
94
+ /******/ return __webpack_require__(__webpack_require__.s = 120);
95
+ /******/ })
96
+ /************************************************************************/
97
+ /******/ ({
98
+
99
+ /***/ 0:
100
+ /***/ (function(module, __webpack_exports__, __webpack_require__) {
101
+
102
+ "use strict";
103
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return normalizeComponent; });
104
+ /* globals __VUE_SSR_CONTEXT__ */
105
+
106
+ // IMPORTANT: Do NOT use ES2015 features in this file (except for modules).
107
+ // This module is a runtime utility for cleaner component module output and will
108
+ // be included in the final webpack user bundle.
109
+
110
+ function normalizeComponent(
111
+ scriptExports,
112
+ render,
113
+ staticRenderFns,
114
+ functionalTemplate,
115
+ injectStyles,
116
+ scopeId,
117
+ moduleIdentifier /* server only */,
118
+ shadowMode /* vue-cli only */
119
+ ) {
120
+ // Vue.extend constructor export interop
121
+ var options =
122
+ typeof scriptExports === 'function' ? scriptExports.options : scriptExports
123
+
124
+ // render functions
125
+ if (render) {
126
+ options.render = render
127
+ options.staticRenderFns = staticRenderFns
128
+ options._compiled = true
129
+ }
130
+
131
+ // functional template
132
+ if (functionalTemplate) {
133
+ options.functional = true
134
+ }
135
+
136
+ // scopedId
137
+ if (scopeId) {
138
+ options._scopeId = 'data-v-' + scopeId
139
+ }
140
+
141
+ var hook
142
+ if (moduleIdentifier) {
143
+ // server build
144
+ hook = function (context) {
145
+ // 2.3 injection
146
+ context =
147
+ context || // cached call
148
+ (this.$vnode && this.$vnode.ssrContext) || // stateful
149
+ (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional
150
+ // 2.2 with runInNewContext: true
151
+ if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {
152
+ context = __VUE_SSR_CONTEXT__
153
+ }
154
+ // inject component styles
155
+ if (injectStyles) {
156
+ injectStyles.call(this, context)
157
+ }
158
+ // register component module identifier for async chunk inferrence
159
+ if (context && context._registeredComponents) {
160
+ context._registeredComponents.add(moduleIdentifier)
161
+ }
162
+ }
163
+ // used by ssr in case component is cached and beforeCreate
164
+ // never gets called
165
+ options._ssrRegister = hook
166
+ } else if (injectStyles) {
167
+ hook = shadowMode
168
+ ? function () {
169
+ injectStyles.call(
170
+ this,
171
+ (options.functional ? this.parent : this).$root.$options.shadowRoot
172
+ )
173
+ }
174
+ : injectStyles
175
+ }
176
+
177
+ if (hook) {
178
+ if (options.functional) {
179
+ // for template-only hot-reload because in that case the render fn doesn't
180
+ // go through the normalizer
181
+ options._injectStyles = hook
182
+ // register for functional component in vue file
183
+ var originalRender = options.render
184
+ options.render = function renderWithStyleInjection(h, context) {
185
+ hook.call(context)
186
+ return originalRender(h, context)
187
+ }
188
+ } else {
189
+ // inject component registration as beforeCreate hook
190
+ var existing = options.beforeCreate
191
+ options.beforeCreate = existing ? [].concat(existing, hook) : [hook]
192
+ }
193
+ }
194
+
195
+ return {
196
+ exports: scriptExports,
197
+ options: options
198
+ }
199
+ }
200
+
201
+
202
+ /***/ }),
203
+
204
+ /***/ 120:
205
+ /***/ (function(module, __webpack_exports__, __webpack_require__) {
206
+
207
+ "use strict";
208
+ // ESM COMPAT FLAG
209
+ __webpack_require__.r(__webpack_exports__);
210
+
211
+ // EXTERNAL MODULE: ./components/style/mixins-only.less
212
+ var mixins_only = __webpack_require__(140);
213
+
214
+ // EXTERNAL MODULE: ./components/alert/style/index.less
215
+ var style = __webpack_require__(142);
216
+
217
+ // CONCATENATED MODULE: ./components/alert/style/index.js
218
+
219
+
220
+ // CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./components/alert/alert.vue?vue&type=template&id=03f20c75
221
+ var render = function () {
222
+ var _vm = this
223
+ var _h = _vm.$createElement
224
+ var _c = _vm._self._c || _h
225
+ return _c("mds-transition", { attrs: { type: "animate" } }, [
226
+ _c(
227
+ "div",
228
+ {
229
+ directives: [
230
+ {
231
+ name: "show",
232
+ rawName: "v-show",
233
+ value: _vm.visible,
234
+ expression: "visible",
235
+ },
236
+ ],
237
+ class: [
238
+ _vm.prefixCls,
239
+ _vm.typeClass,
240
+ _vm.center ? "is-center" : "",
241
+ "is-" + _vm.effect,
242
+ ],
243
+ attrs: { role: "alert" },
244
+ },
245
+ [
246
+ _vm.showIcon
247
+ ? _c(
248
+ "span",
249
+ [
250
+ _c("mds-icon", {
251
+ class: [_vm.prefixCls + "__icon", _vm.isBigIcon],
252
+ attrs: { type: _vm.iconClass },
253
+ }),
254
+ ],
255
+ 1
256
+ )
257
+ : _vm._e(),
258
+ _c("div", { class: _vm.prefixCls + "__content" }, [
259
+ _vm.message || _vm.$slots.message
260
+ ? _c(
261
+ "span",
262
+ { class: [_vm.prefixCls + "__message", _vm.isBoldTitle] },
263
+ [_vm._t("message", [_vm._v(_vm._s(_vm.message))])],
264
+ 2
265
+ )
266
+ : _vm._e(),
267
+ _vm.$slots.default && !_vm.description
268
+ ? _c(
269
+ "p",
270
+ { class: _vm.prefixCls + "__description" },
271
+ [_vm._t("default")],
272
+ 2
273
+ )
274
+ : _vm._e(),
275
+ _vm.description && !_vm.$slots.default
276
+ ? _c("p", { class: _vm.prefixCls + "__description" }, [
277
+ _vm._v(_vm._s(_vm.description)),
278
+ ])
279
+ : _vm._e(),
280
+ _c(
281
+ "span",
282
+ {
283
+ directives: [
284
+ {
285
+ name: "show",
286
+ rawName: "v-show",
287
+ value: _vm.closable,
288
+ expression: "closable",
289
+ },
290
+ ],
291
+ class: _vm.prefixCls + "__closebtn",
292
+ on: {
293
+ click: function ($event) {
294
+ return _vm.close()
295
+ },
296
+ },
297
+ },
298
+ [
299
+ _vm.closeText !== ""
300
+ ? _c("i", [_vm._v(_vm._s(_vm.closeText))])
301
+ : _c("mds-icon", { attrs: { type: "line-close" } }),
302
+ ],
303
+ 1
304
+ ),
305
+ ]),
306
+ ]
307
+ ),
308
+ ])
309
+ }
310
+ var staticRenderFns = []
311
+ render._withStripped = true
312
+
313
+
314
+ // CONCATENATED MODULE: ./components/alert/alert.vue?vue&type=template&id=03f20c75
315
+
316
+ // CONCATENATED MODULE: ./node_modules/babel-loader/lib!./node_modules/vue-loader/lib??vue-loader-options!./components/alert/alert.vue?vue&type=script&lang=js
317
+ //
318
+ //
319
+ //
320
+ //
321
+ //
322
+ //
323
+ //
324
+ //
325
+ //
326
+ //
327
+ //
328
+ //
329
+ //
330
+ //
331
+ //
332
+ //
333
+ //
334
+ //
335
+ //
336
+ //
337
+ //
338
+ //
339
+ //
340
+ //
341
+ //
342
+ //
343
+ //
344
+
345
+ var TYPE_CLASSES_MAP = {
346
+ 'success': 'fill-solid-right-circle',
347
+ // 'warning': 'line-warning',
348
+ 'normal': 'line-exclamation-circle',
349
+ 'warning': 'fill-solid-exclamation-circle',
350
+ 'error': 'fill-solid-wrong-circle',
351
+ 'info': 'fill-solid-info-circle',
352
+ 'question': 'line-question-circle'
353
+ };
354
+
355
+ /* harmony default export */ var alertvue_type_script_lang_js = ({
356
+ name: 'MdsAlert',
357
+ props: {
358
+ prefixCls: {
359
+ type: String,
360
+ default: 'mds-alert'
361
+ },
362
+ message: {
363
+ type: String,
364
+ default: ''
365
+ },
366
+ description: {
367
+ type: String,
368
+ default: ''
369
+ },
370
+ type: {
371
+ type: String,
372
+ default: 'normal'
373
+ },
374
+ closable: {
375
+ type: Boolean,
376
+ default: true
377
+ },
378
+ closeText: {
379
+ type: String,
380
+ default: ''
381
+ },
382
+ showIcon: Boolean,
383
+ center: Boolean,
384
+ effect: {
385
+ type: String,
386
+ default: 'light',
387
+ validator: function validator(value) {
388
+ return ['light', 'dark'].indexOf(value) !== -1;
389
+ }
390
+ }
391
+ },
392
+ data: function data() {
393
+ return {
394
+ visible: true
395
+ };
396
+ },
397
+
398
+ methods: {
399
+ close: function close() {
400
+ this.visible = false;
401
+ this.$emit('close');
402
+ }
403
+ },
404
+ computed: {
405
+ typeClass: function typeClass() {
406
+ return 'mds-alert--' + this.type;
407
+ },
408
+ iconClass: function iconClass() {
409
+ return TYPE_CLASSES_MAP[this.type] || TYPE_CLASSES_MAP['info'];
410
+ },
411
+ isBigIcon: function isBigIcon() {
412
+ return this.description || this.$slots.default ? 'is-big' : '';
413
+ },
414
+ isBoldTitle: function isBoldTitle() {
415
+ return this.description || this.$slots.default ? 'is-bold' : '';
416
+ }
417
+ }
418
+ });
419
+ // CONCATENATED MODULE: ./components/alert/alert.vue?vue&type=script&lang=js
420
+ /* harmony default export */ var alert_alertvue_type_script_lang_js = (alertvue_type_script_lang_js);
421
+ // EXTERNAL MODULE: ./node_modules/vue-loader/lib/runtime/componentNormalizer.js
422
+ var componentNormalizer = __webpack_require__(0);
423
+
424
+ // CONCATENATED MODULE: ./components/alert/alert.vue
425
+
426
+
427
+
428
+
429
+
430
+ /* normalize component */
431
+
432
+ var component = Object(componentNormalizer["a" /* default */])(
433
+ alert_alertvue_type_script_lang_js,
434
+ render,
435
+ staticRenderFns,
436
+ false,
437
+ null,
438
+ null,
439
+ null
440
+
441
+ )
442
+
443
+ /* harmony default export */ var alert_alert = (component.exports);
444
+ // CONCATENATED MODULE: ./components/alert/index.js
445
+
446
+
447
+
448
+ alert_alert.install = function (Vue) {
449
+ Vue.component(alert_alert.name, alert_alert);
450
+ };
451
+
452
+ /* harmony default export */ var components_alert = __webpack_exports__["default"] = (alert_alert);
453
+
454
+ /***/ }),
455
+
456
+ /***/ 140:
457
+ /***/ (function(module, exports) {
458
+
459
+ // removed by extract-text-webpack-plugin
460
+
461
+ /***/ }),
462
+
463
+ /***/ 142:
464
+ /***/ (function(module, exports) {
465
+
466
+ // removed by extract-text-webpack-plugin
467
+
468
+ /***/ })
469
+
470
+ /******/ });
471
+ });