Ohm-Management - Projektarbeit B-ME
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

index.js 3.4KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102
  1. 'use strict';
  2. Object.defineProperty(exports, "__esModule", {
  3. value: true
  4. });
  5. exports.VSelect = undefined;
  6. var _VSelect = require('./VSelect');
  7. var _VSelect2 = _interopRequireDefault(_VSelect);
  8. var _VOverflowBtn = require('../VOverflowBtn');
  9. var _VOverflowBtn2 = _interopRequireDefault(_VOverflowBtn);
  10. var _VAutocomplete = require('../VAutocomplete');
  11. var _VAutocomplete2 = _interopRequireDefault(_VAutocomplete);
  12. var _VCombobox = require('../VCombobox');
  13. var _VCombobox2 = _interopRequireDefault(_VCombobox);
  14. var _rebuildFunctionalSlots = require('../../util/rebuildFunctionalSlots');
  15. var _rebuildFunctionalSlots2 = _interopRequireDefault(_rebuildFunctionalSlots);
  16. var _dedupeModelListeners = require('../../util/dedupeModelListeners');
  17. var _dedupeModelListeners2 = _interopRequireDefault(_dedupeModelListeners);
  18. var _console = require('../../util/console');
  19. function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
  20. /* @vue/component */
  21. var wrapper = {
  22. functional: true,
  23. $_wrapperFor: _VSelect2.default,
  24. props: {
  25. // VAutoComplete
  26. /** @deprecated */
  27. autocomplete: Boolean,
  28. /** @deprecated */
  29. combobox: Boolean,
  30. multiple: Boolean,
  31. /** @deprecated */
  32. tags: Boolean,
  33. // VOverflowBtn
  34. /** @deprecated */
  35. editable: Boolean,
  36. /** @deprecated */
  37. overflow: Boolean,
  38. /** @deprecated */
  39. segmented: Boolean
  40. },
  41. render: function render(h, _ref) {
  42. var props = _ref.props,
  43. data = _ref.data,
  44. slots = _ref.slots,
  45. parent = _ref.parent;
  46. (0, _dedupeModelListeners2.default)(data);
  47. var children = (0, _rebuildFunctionalSlots2.default)(slots(), h);
  48. if (props.autocomplete) {
  49. (0, _console.deprecate)('<v-select autocomplete>', '<v-autocomplete>', wrapper, parent);
  50. }
  51. if (props.combobox) {
  52. (0, _console.deprecate)('<v-select combobox>', '<v-combobox>', wrapper, parent);
  53. }
  54. if (props.tags) {
  55. (0, _console.deprecate)('<v-select tags>', '<v-combobox multiple>', wrapper, parent);
  56. }
  57. if (props.overflow) {
  58. (0, _console.deprecate)('<v-select overflow>', '<v-overflow-btn>', wrapper, parent);
  59. }
  60. if (props.segmented) {
  61. (0, _console.deprecate)('<v-select segmented>', '<v-overflow-btn segmented>', wrapper, parent);
  62. }
  63. if (props.editable) {
  64. (0, _console.deprecate)('<v-select editable>', '<v-overflow-btn editable>', wrapper, parent);
  65. }
  66. data.attrs = data.attrs || {};
  67. if (props.combobox || props.tags) {
  68. data.attrs.multiple = props.tags;
  69. return h(_VCombobox2.default, data, children);
  70. } else if (props.autocomplete) {
  71. data.attrs.multiple = props.multiple;
  72. return h(_VAutocomplete2.default, data, children);
  73. } else if (props.overflow || props.segmented || props.editable) {
  74. data.attrs.segmented = props.segmented;
  75. data.attrs.editable = props.editable;
  76. return h(_VOverflowBtn2.default, data, children);
  77. } else {
  78. data.attrs.multiple = props.multiple;
  79. return h(_VSelect2.default, data, children);
  80. }
  81. }
  82. };
  83. exports.VSelect = wrapper;
  84. exports.default = wrapper;
  85. //# sourceMappingURL=index.js.map