@tagplus/components 5.3.3 → 5.3.4
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/dist/demo.html +1 -0
- package/dist/fonts/bevi-bold.7e4dcd11.woff +0 -0
- package/dist/fonts/bevi-bold.873def84.woff2 +0 -0
- package/dist/fonts/bevi-medium.6187e050.woff2 +0 -0
- package/dist/fonts/bevi-medium.65b3056d.woff +0 -0
- package/dist/fonts/bevi-regular.c89f126e.woff +0 -0
- package/dist/fonts/bevi-regular.f81e4b8f.woff2 +0 -0
- package/dist/tp.common.js +2 -0
- package/dist/tp.common.js.map +1 -0
- package/dist/tp.css +167 -0
- package/dist/tp.umd.js +2 -0
- package/dist/tp.umd.js.map +1 -0
- package/dist/tp.umd.min.js +2 -0
- package/dist/tp.umd.min.js.map +1 -0
- package/package.json +62 -84
- package/src/assets/scss/_fonts.scss +27 -0
- package/src/assets/scss/_functions.scss +22 -0
- package/src/assets/scss/_helpers.scss +112 -0
- package/src/assets/scss/_mixins.scss +69 -0
- package/src/assets/scss/_overrides.scss +69 -0
- package/src/assets/scss/_resass.scss +83 -0
- package/src/assets/scss/_variables.scss +27 -0
- package/src/assets/scss/index.scss +11 -0
- package/src/components/Autosuggest/Autosuggest.vue +791 -0
- package/src/components/Autosuggest/index.js +3 -0
- package/src/components/Dialog/Dialog.vue +253 -0
- package/src/components/Dialog/index.js +3 -0
- package/src/components/Inline/Inline.vue +149 -0
- package/src/components/Inline/index.js +3 -0
- package/src/components/InputNumber/InputNumber.vue +430 -0
- package/src/components/InputNumber/index.js +3 -0
- package/src/components/Loader/Loader.vue +317 -0
- package/src/components/Loader/animations.scss +68 -0
- package/src/components/Loader/index.js +3 -0
- package/src/components/Money/Money.vue +82 -0
- package/src/components/Money/index.js +3 -0
- package/src/components/Multisuggest/Multisuggest.vue +858 -0
- package/src/components/Multisuggest/index.js +3 -0
- package/src/components/OptionsList/OptionsList.vue +61 -0
- package/src/components/OptionsList/index.js +3 -0
- package/src/components/OptionsListItem/OptionsListItem.vue +191 -0
- package/src/components/OptionsListItem/index.js +3 -0
- package/src/components/Percent/Percent.vue +81 -0
- package/src/components/Percent/index.js +3 -0
- package/src/components/Skeleton/Skeleton.vue +137 -0
- package/src/components/Skeleton/index.js +3 -0
- package/src/components/Step/Step.vue +230 -0
- package/src/components/Step/index.js +3 -0
- package/src/components/Steps/Steps.vue +18 -0
- package/src/components/Steps/index.js +3 -0
- package/src/components/Tip/Tip.vue +193 -0
- package/src/components/Tip/index.js +3 -0
- package/src/components/index.js +31 -0
- package/src/locale/index.js +78 -0
- package/{dist → src/locale}/lang/en.js +2 -3
- package/{dist → src/locale}/lang/pt-br.js +2 -3
- package/src/main.js +26 -0
- package/src/mixins/floatFormatter.js +53 -0
- package/src/mixins/locale.js +9 -0
- package/src/utils/currency.js +180 -0
- package/src/utils/filters.js +84 -0
- package/dist/es/_virtual/_plugin-vue_export-helper.mjs +0 -10
- package/dist/es/components.css +0 -2391
- package/dist/es/node_modules/@element-plus/icons-vue/dist/index.mjs +0 -148
- package/dist/es/node_modules/@popperjs/core/lib/enums.mjs +0 -22
- package/dist/es/node_modules/@vue/shared/dist/shared.esm-bundler.mjs +0 -28
- package/dist/es/node_modules/@vueuse/core/index.mjs +0 -172
- package/dist/es/node_modules/@vueuse/shared/index.mjs +0 -68
- package/dist/es/node_modules/element-plus/es/constants/size.mjs +0 -4
- package/dist/es/node_modules/element-plus/es/hooks/use-focus-controller/index.mjs +0 -64
- package/dist/es/node_modules/element-plus/es/hooks/use-id/index.mjs +0 -30
- package/dist/es/node_modules/element-plus/es/hooks/use-locale/index.mjs +0 -29
- package/dist/es/node_modules/element-plus/es/hooks/use-namespace/index.mjs +0 -79
- package/dist/es/node_modules/element-plus/es/hooks/use-prop/index.mjs +0 -11
- package/dist/es/node_modules/element-plus/es/hooks/use-size/index.mjs +0 -20
- package/dist/es/node_modules/element-plus/es/locale/lang/en.mjs +0 -182
- package/dist/es/node_modules/element-plus/es/utils/error.mjs +0 -16
- package/dist/es/node_modules/element-plus/es/utils/types.mjs +0 -9
- package/dist/es/node_modules/element-plus/es/utils/vue/props/runtime.mjs +0 -42
- package/dist/es/src/components/Autosuggest/Autosuggest.vue.mjs +0 -446
- package/dist/es/src/components/Autosuggest/Multisuggest.vue.mjs +0 -17
- package/dist/es/src/components/Autosuggest/autosuggest-props.mjs +0 -204
- package/dist/es/src/components/Autosuggest/core.mjs +0 -56
- package/dist/es/src/components/Autosuggest/multisuggest-props.mjs +0 -11
- package/dist/es/src/components/Autosuggest/option.vue.mjs +0 -118
- package/dist/es/src/components/Autosuggest/select-dropdown.vue.mjs +0 -62
- package/dist/es/src/components/Autosuggest/useOption.mjs +0 -93
- package/dist/es/src/components/Autosuggest/useSelect.mjs +0 -803
- package/dist/es/src/components/Inline/Inline.vue.mjs +0 -125
- package/dist/es/src/components/Inline/index.mjs +0 -4
- package/dist/es/src/components/InputNumber/InputNumber.vue.mjs +0 -360
- package/dist/es/src/components/InputNumber/index.mjs +0 -4
- package/dist/es/src/components/InputNumber/input-number.mjs +0 -128
- package/dist/es/src/components/Loader/Loader.vue.mjs +0 -59
- package/dist/es/src/components/Loader/index.mjs +0 -4
- package/dist/es/src/components/Money/Money.vue.mjs +0 -72
- package/dist/es/src/components/Money/index.mjs +0 -4
- package/dist/es/src/components/Multisuggest/index.mjs +0 -4
- package/dist/es/src/components/OptionsList/OptionsList.vue.mjs +0 -28
- package/dist/es/src/components/OptionsList/index.mjs +0 -4
- package/dist/es/src/components/OptionsListItem/OptionsListItem.vue.mjs +0 -96
- package/dist/es/src/components/OptionsListItem/index.mjs +0 -4
- package/dist/es/src/components/Percent/Percent.vue.mjs +0 -73
- package/dist/es/src/components/Percent/index.mjs +0 -4
- package/dist/es/src/components/Skeleton/Skeleton.vue.mjs +0 -79
- package/dist/es/src/components/Skeleton/index.mjs +0 -4
- package/dist/es/src/components/Step/Step.vue.mjs +0 -206
- package/dist/es/src/components/Step/index.mjs +0 -4
- package/dist/es/src/components/Steps/Steps.vue.mjs +0 -15
- package/dist/es/src/components/Steps/index.mjs +0 -4
- package/dist/es/src/components/Tip/Tip.vue.mjs +0 -160
- package/dist/es/src/components/Tip/index.mjs +0 -4
- package/dist/es/src/components/index.mjs +0 -22
- package/dist/es/src/locale/i18nCreator.mjs +0 -93
- package/dist/es/src/locale/lang/pt-br.mjs +0 -21
- package/dist/es/src/main.mjs +0 -18
- package/dist/es/src/mixins/floatFormatter.mjs +0 -42
- package/dist/es/src/plugins/currency.mjs +0 -69
- package/dist/es/src/utils/constants.mjs +0 -6
- package/dist/es/src/utils/error.mjs +0 -20
- package/dist/es/src/utils/i18n.mjs +0 -4
- package/dist/es/src/utils/icon.mjs +0 -9
- package/dist/es/src/utils/index.mjs +0 -8
- package/dist/es/src/utils/runtime.mjs +0 -50
- package/dist/es/src/utils/scroll.mjs +0 -26
- package/dist/es/src/utils/strings.mjs +0 -4
- package/dist/es/src/utils/types.mjs +0 -9
- package/dist/es/src/utils/use-derived-namespace.mjs +0 -15
- package/dist/es/src/utils/use-form-common-props.mjs +0 -25
- package/dist/es/src/utils/use-form-item.mjs +0 -61
- package/dist/es/src/utils/use-id.mjs +0 -35
- package/dist/es/src/utils/use-input.mjs +0 -31
- package/dist/lib/_virtual/_plugin-vue_export-helper.js +0 -10
- package/dist/lib/components.css +0 -2391
- package/dist/lib/node_modules/@element-plus/icons-vue/dist/index.js +0 -148
- package/dist/lib/node_modules/@popperjs/core/lib/enums.js +0 -22
- package/dist/lib/node_modules/@vue/shared/dist/shared.esm-bundler.js +0 -28
- package/dist/lib/node_modules/@vueuse/core/index.js +0 -170
- package/dist/lib/node_modules/@vueuse/shared/index.js +0 -68
- package/dist/lib/node_modules/element-plus/es/constants/size.js +0 -4
- package/dist/lib/node_modules/element-plus/es/hooks/use-focus-controller/index.js +0 -64
- package/dist/lib/node_modules/element-plus/es/hooks/use-id/index.js +0 -30
- package/dist/lib/node_modules/element-plus/es/hooks/use-locale/index.js +0 -29
- package/dist/lib/node_modules/element-plus/es/hooks/use-namespace/index.js +0 -79
- package/dist/lib/node_modules/element-plus/es/hooks/use-prop/index.js +0 -11
- package/dist/lib/node_modules/element-plus/es/hooks/use-size/index.js +0 -20
- package/dist/lib/node_modules/element-plus/es/locale/lang/en.js +0 -182
- package/dist/lib/node_modules/element-plus/es/utils/error.js +0 -16
- package/dist/lib/node_modules/element-plus/es/utils/types.js +0 -9
- package/dist/lib/node_modules/element-plus/es/utils/vue/props/runtime.js +0 -42
- package/dist/lib/src/components/Autosuggest/Autosuggest.vue.js +0 -446
- package/dist/lib/src/components/Autosuggest/Multisuggest.vue.js +0 -17
- package/dist/lib/src/components/Autosuggest/autosuggest-props.js +0 -204
- package/dist/lib/src/components/Autosuggest/core.js +0 -56
- package/dist/lib/src/components/Autosuggest/multisuggest-props.js +0 -11
- package/dist/lib/src/components/Autosuggest/option.vue.js +0 -118
- package/dist/lib/src/components/Autosuggest/select-dropdown.vue.js +0 -62
- package/dist/lib/src/components/Autosuggest/useOption.js +0 -93
- package/dist/lib/src/components/Autosuggest/useSelect.js +0 -803
- package/dist/lib/src/components/Inline/Inline.vue.js +0 -125
- package/dist/lib/src/components/Inline/index.js +0 -4
- package/dist/lib/src/components/InputNumber/InputNumber.vue.js +0 -360
- package/dist/lib/src/components/InputNumber/index.js +0 -4
- package/dist/lib/src/components/InputNumber/input-number.js +0 -128
- package/dist/lib/src/components/Loader/Loader.vue.js +0 -59
- package/dist/lib/src/components/Loader/index.js +0 -4
- package/dist/lib/src/components/Money/Money.vue.js +0 -72
- package/dist/lib/src/components/Money/index.js +0 -4
- package/dist/lib/src/components/Multisuggest/index.js +0 -4
- package/dist/lib/src/components/OptionsList/OptionsList.vue.js +0 -28
- package/dist/lib/src/components/OptionsList/index.js +0 -4
- package/dist/lib/src/components/OptionsListItem/OptionsListItem.vue.js +0 -96
- package/dist/lib/src/components/OptionsListItem/index.js +0 -4
- package/dist/lib/src/components/Percent/Percent.vue.js +0 -73
- package/dist/lib/src/components/Percent/index.js +0 -4
- package/dist/lib/src/components/Skeleton/Skeleton.vue.js +0 -79
- package/dist/lib/src/components/Skeleton/index.js +0 -4
- package/dist/lib/src/components/Step/Step.vue.js +0 -206
- package/dist/lib/src/components/Step/index.js +0 -4
- package/dist/lib/src/components/Steps/Steps.vue.js +0 -15
- package/dist/lib/src/components/Steps/index.js +0 -4
- package/dist/lib/src/components/Tip/Tip.vue.js +0 -160
- package/dist/lib/src/components/Tip/index.js +0 -4
- package/dist/lib/src/components/index.js +0 -22
- package/dist/lib/src/locale/i18nCreator.js +0 -93
- package/dist/lib/src/locale/lang/pt-br.js +0 -21
- package/dist/lib/src/main.js +0 -18
- package/dist/lib/src/mixins/floatFormatter.js +0 -42
- package/dist/lib/src/plugins/currency.js +0 -69
- package/dist/lib/src/utils/constants.js +0 -6
- package/dist/lib/src/utils/error.js +0 -20
- package/dist/lib/src/utils/i18n.js +0 -4
- package/dist/lib/src/utils/icon.js +0 -9
- package/dist/lib/src/utils/index.js +0 -8
- package/dist/lib/src/utils/runtime.js +0 -50
- package/dist/lib/src/utils/scroll.js +0 -26
- package/dist/lib/src/utils/strings.js +0 -4
- package/dist/lib/src/utils/types.js +0 -12
- package/dist/lib/src/utils/use-derived-namespace.js +0 -15
- package/dist/lib/src/utils/use-form-common-props.js +0 -25
- package/dist/lib/src/utils/use-form-item.js +0 -61
- package/dist/lib/src/utils/use-id.js +0 -35
- package/dist/lib/src/utils/use-input.js +0 -31
|
@@ -1,72 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: "Module" } });
|
|
3
|
-
const vue = require("vue");
|
|
4
|
-
const floatFormatter = require("../../mixins/floatFormatter.js");
|
|
5
|
-
;/* empty css */
|
|
6
|
-
const _pluginVue_exportHelper = require("../../../_virtual/_plugin-vue_export-helper.js");
|
|
7
|
-
const _sfc_main = vue.defineComponent({
|
|
8
|
-
name: "TpMoney",
|
|
9
|
-
mixins: [floatFormatter.default],
|
|
10
|
-
inheritAttrs: false,
|
|
11
|
-
props: {
|
|
12
|
-
id: {
|
|
13
|
-
type: String,
|
|
14
|
-
required: false,
|
|
15
|
-
default: null
|
|
16
|
-
},
|
|
17
|
-
// remove o simbolo em prepend
|
|
18
|
-
removePrepend: {
|
|
19
|
-
type: Boolean,
|
|
20
|
-
default: false
|
|
21
|
-
},
|
|
22
|
-
// valor do campo. Pode ser usado como v-model também
|
|
23
|
-
modelValue: {
|
|
24
|
-
type: [Number, String],
|
|
25
|
-
default: 0
|
|
26
|
-
},
|
|
27
|
-
// tamanho máximo do campo. limitado por padrão a 21 caracteres por limitações do JS
|
|
28
|
-
maxlength: {
|
|
29
|
-
type: Number,
|
|
30
|
-
default: 21
|
|
31
|
-
}
|
|
32
|
-
},
|
|
33
|
-
computed: {
|
|
34
|
-
_id() {
|
|
35
|
-
return this.id || this.$options.name;
|
|
36
|
-
},
|
|
37
|
-
prepend() {
|
|
38
|
-
return this.$t("tp.money.currency");
|
|
39
|
-
}
|
|
40
|
-
}
|
|
41
|
-
});
|
|
42
|
-
function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
43
|
-
const _component_el_input = vue.resolveComponent("el-input");
|
|
44
|
-
return vue.openBlock(), vue.createBlock(_component_el_input, vue.mergeProps({
|
|
45
|
-
id: `${_ctx._id}`,
|
|
46
|
-
class: "tp-money",
|
|
47
|
-
"model-value": _ctx.formattedValue
|
|
48
|
-
}, _ctx.$attrs, {
|
|
49
|
-
maxlength: _ctx.maxlength,
|
|
50
|
-
onInput: _ctx.input,
|
|
51
|
-
onChange: _ctx.handleChange,
|
|
52
|
-
onFocus: _cache[0] || (_cache[0] = ($event) => $event.target.select())
|
|
53
|
-
}), vue.createSlots({ _: 2 }, [
|
|
54
|
-
!_ctx.removePrepend ? {
|
|
55
|
-
name: "prepend",
|
|
56
|
-
fn: vue.withCtx(() => [
|
|
57
|
-
vue.createTextVNode(vue.toDisplayString(_ctx.prepend), 1)
|
|
58
|
-
]),
|
|
59
|
-
key: "0"
|
|
60
|
-
} : void 0,
|
|
61
|
-
vue.renderList(_ctx.$slots, (_, slot) => {
|
|
62
|
-
return {
|
|
63
|
-
name: slot,
|
|
64
|
-
fn: vue.withCtx((scope) => [
|
|
65
|
-
vue.renderSlot(_ctx.$slots, slot, vue.normalizeProps(vue.guardReactiveProps(scope)), void 0, true)
|
|
66
|
-
])
|
|
67
|
-
};
|
|
68
|
-
})
|
|
69
|
-
]), 1040, ["id", "model-value", "maxlength", "onInput", "onChange"]);
|
|
70
|
-
}
|
|
71
|
-
const Money = /* @__PURE__ */ _pluginVue_exportHelper.default(_sfc_main, [["render", _sfc_render], ["__scopeId", "data-v-9d3eeac0"]]);
|
|
72
|
-
exports.default = Money;
|
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: "Module" } });
|
|
3
|
-
const vue = require("vue");
|
|
4
|
-
;/* empty css */
|
|
5
|
-
const _pluginVue_exportHelper = require("../../../_virtual/_plugin-vue_export-helper.js");
|
|
6
|
-
const _sfc_main = vue.defineComponent({
|
|
7
|
-
name: "TpOptionsList",
|
|
8
|
-
props: {
|
|
9
|
-
justifyContent: {
|
|
10
|
-
// 'space-between' / 'space-around' / (any flex property)
|
|
11
|
-
type: String,
|
|
12
|
-
default: "space-between"
|
|
13
|
-
},
|
|
14
|
-
disabled: {
|
|
15
|
-
type: Boolean,
|
|
16
|
-
default: false
|
|
17
|
-
}
|
|
18
|
-
}
|
|
19
|
-
});
|
|
20
|
-
function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
21
|
-
return vue.openBlock(), vue.createElementBlock("ul", {
|
|
22
|
-
class: vue.normalizeClass([_ctx.justifyContent, "tp-options-list", _ctx.disabled ? "disabled" : ""])
|
|
23
|
-
}, [
|
|
24
|
-
vue.renderSlot(_ctx.$slots, "default", {}, void 0, true)
|
|
25
|
-
], 2);
|
|
26
|
-
}
|
|
27
|
-
const OptionsList = /* @__PURE__ */ _pluginVue_exportHelper.default(_sfc_main, [["render", _sfc_render], ["__scopeId", "data-v-c8c0f83e"]]);
|
|
28
|
-
exports.default = OptionsList;
|
|
@@ -1,96 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: "Module" } });
|
|
3
|
-
const vue = require("vue");
|
|
4
|
-
;/* empty css */
|
|
5
|
-
const _pluginVue_exportHelper = require("../../../_virtual/_plugin-vue_export-helper.js");
|
|
6
|
-
const _sfc_main = vue.defineComponent({
|
|
7
|
-
name: "TpOptionsListItem",
|
|
8
|
-
props: {
|
|
9
|
-
itemType: {
|
|
10
|
-
type: String,
|
|
11
|
-
default: ""
|
|
12
|
-
},
|
|
13
|
-
name: {
|
|
14
|
-
type: String,
|
|
15
|
-
default: ""
|
|
16
|
-
},
|
|
17
|
-
optValue: {
|
|
18
|
-
type: [String, Boolean, Number],
|
|
19
|
-
default: null
|
|
20
|
-
},
|
|
21
|
-
icon: {
|
|
22
|
-
type: String,
|
|
23
|
-
default: ""
|
|
24
|
-
},
|
|
25
|
-
badge: {
|
|
26
|
-
type: Boolean,
|
|
27
|
-
default: false
|
|
28
|
-
},
|
|
29
|
-
direction: {
|
|
30
|
-
type: String,
|
|
31
|
-
default: ""
|
|
32
|
-
},
|
|
33
|
-
id: {
|
|
34
|
-
type: String,
|
|
35
|
-
default: ""
|
|
36
|
-
},
|
|
37
|
-
texts: {
|
|
38
|
-
type: Array,
|
|
39
|
-
default: null
|
|
40
|
-
},
|
|
41
|
-
checked: {
|
|
42
|
-
type: Boolean,
|
|
43
|
-
default: false
|
|
44
|
-
},
|
|
45
|
-
type: {
|
|
46
|
-
type: String,
|
|
47
|
-
default: ""
|
|
48
|
-
},
|
|
49
|
-
active: {
|
|
50
|
-
type: String,
|
|
51
|
-
default: ""
|
|
52
|
-
}
|
|
53
|
-
},
|
|
54
|
-
emits: ["input", "updateValor"],
|
|
55
|
-
methods: {
|
|
56
|
-
updateOption() {
|
|
57
|
-
this.$emit("updateValor", this.optValue);
|
|
58
|
-
this.$emit("input", this.optValue);
|
|
59
|
-
}
|
|
60
|
-
}
|
|
61
|
-
});
|
|
62
|
-
const _hoisted_1 = ["id"];
|
|
63
|
-
const _hoisted_2 = { class: "text" };
|
|
64
|
-
const _hoisted_3 = {
|
|
65
|
-
key: 0,
|
|
66
|
-
class: "option-item-badge"
|
|
67
|
-
};
|
|
68
|
-
function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
69
|
-
return vue.openBlock(), vue.createElementBlock("li", {
|
|
70
|
-
id: _ctx.id,
|
|
71
|
-
class: vue.normalizeClass([
|
|
72
|
-
"tp-options-list-item",
|
|
73
|
-
_ctx.itemType,
|
|
74
|
-
_ctx.active === _ctx.optValue ? "active" : ""
|
|
75
|
-
]),
|
|
76
|
-
tabindex: "0",
|
|
77
|
-
onClick: _cache[0] || (_cache[0] = (...args) => _ctx.updateOption && _ctx.updateOption(...args)),
|
|
78
|
-
onKeyup: _cache[1] || (_cache[1] = vue.withKeys((...args) => _ctx.updateOption && _ctx.updateOption(...args), ["enter"]))
|
|
79
|
-
}, [
|
|
80
|
-
vue.createElementVNode("div", {
|
|
81
|
-
class: vue.normalizeClass(["icon", _ctx.direction])
|
|
82
|
-
}, [
|
|
83
|
-
vue.createElementVNode("em", {
|
|
84
|
-
class: vue.normalizeClass([_ctx.icon, "options-icon"])
|
|
85
|
-
}, null, 2),
|
|
86
|
-
vue.createElementVNode("p", _hoisted_2, [
|
|
87
|
-
(vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(_ctx.texts, (text, index) => {
|
|
88
|
-
return vue.openBlock(), vue.createElementBlock("span", { key: index }, vue.toDisplayString(text), 1);
|
|
89
|
-
}), 128))
|
|
90
|
-
])
|
|
91
|
-
], 2),
|
|
92
|
-
_ctx.badge ? (vue.openBlock(), vue.createElementBlock("sup", _hoisted_3)) : vue.createCommentVNode("", true)
|
|
93
|
-
], 42, _hoisted_1);
|
|
94
|
-
}
|
|
95
|
-
const OptionsListItem = /* @__PURE__ */ _pluginVue_exportHelper.default(_sfc_main, [["render", _sfc_render], ["__scopeId", "data-v-ace81497"]]);
|
|
96
|
-
exports.default = OptionsListItem;
|
|
@@ -1,73 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: "Module" } });
|
|
3
|
-
const vue = require("vue");
|
|
4
|
-
const floatFormatter = require("../../mixins/floatFormatter.js");
|
|
5
|
-
;/* empty css */
|
|
6
|
-
const _pluginVue_exportHelper = require("../../../_virtual/_plugin-vue_export-helper.js");
|
|
7
|
-
const _sfc_main = vue.defineComponent({
|
|
8
|
-
name: "TpPercent",
|
|
9
|
-
mixins: [floatFormatter.default],
|
|
10
|
-
inheritAttrs: false,
|
|
11
|
-
props: {
|
|
12
|
-
id: {
|
|
13
|
-
type: String,
|
|
14
|
-
required: false,
|
|
15
|
-
default: null
|
|
16
|
-
},
|
|
17
|
-
// remove o simbolo em prepend
|
|
18
|
-
removePrepend: {
|
|
19
|
-
type: Boolean,
|
|
20
|
-
default: false
|
|
21
|
-
},
|
|
22
|
-
// coloca o simbolo no append
|
|
23
|
-
showAppend: {
|
|
24
|
-
type: Boolean,
|
|
25
|
-
default: false
|
|
26
|
-
},
|
|
27
|
-
// valor do campo. Pode ser usado como v-model também
|
|
28
|
-
value: {
|
|
29
|
-
type: [Number, String],
|
|
30
|
-
default: 0
|
|
31
|
-
},
|
|
32
|
-
// tamanho máximo do campo. limitado por padrão a 21 caracteres por limitações do JS
|
|
33
|
-
maxlength: {
|
|
34
|
-
type: Number,
|
|
35
|
-
default: 21
|
|
36
|
-
}
|
|
37
|
-
},
|
|
38
|
-
computed: {
|
|
39
|
-
_id() {
|
|
40
|
-
return this.id || this.$options.name;
|
|
41
|
-
}
|
|
42
|
-
}
|
|
43
|
-
});
|
|
44
|
-
function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
45
|
-
const _component_el_input = vue.resolveComponent("el-input");
|
|
46
|
-
return vue.openBlock(), vue.createBlock(_component_el_input, vue.mergeProps({
|
|
47
|
-
id: `${_ctx._id}`,
|
|
48
|
-
class: "tp-percent",
|
|
49
|
-
"model-value": _ctx.formattedValue
|
|
50
|
-
}, _ctx.$attrs, {
|
|
51
|
-
maxlength: _ctx.maxlength,
|
|
52
|
-
onInput: _ctx.input,
|
|
53
|
-
onChange: _ctx.handleChange,
|
|
54
|
-
onFocus: _cache[0] || (_cache[0] = ($event) => $event.target.select())
|
|
55
|
-
}), vue.createSlots({ _: 2 }, [
|
|
56
|
-
!_ctx.removePrepend ? {
|
|
57
|
-
name: "prepend",
|
|
58
|
-
fn: vue.withCtx(() => [
|
|
59
|
-
_cache[1] || (_cache[1] = vue.createTextVNode(" % "))
|
|
60
|
-
]),
|
|
61
|
-
key: "0"
|
|
62
|
-
} : void 0,
|
|
63
|
-
_ctx.showAppend ? {
|
|
64
|
-
name: "append",
|
|
65
|
-
fn: vue.withCtx(() => [
|
|
66
|
-
_cache[2] || (_cache[2] = vue.createTextVNode(" % "))
|
|
67
|
-
]),
|
|
68
|
-
key: "1"
|
|
69
|
-
} : void 0
|
|
70
|
-
]), 1040, ["id", "model-value", "maxlength", "onInput", "onChange"]);
|
|
71
|
-
}
|
|
72
|
-
const Percent = /* @__PURE__ */ _pluginVue_exportHelper.default(_sfc_main, [["render", _sfc_render], ["__scopeId", "data-v-36120bea"]]);
|
|
73
|
-
exports.default = Percent;
|
|
@@ -1,79 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: "Module" } });
|
|
3
|
-
const vue = require("vue");
|
|
4
|
-
;/* empty css */
|
|
5
|
-
const _pluginVue_exportHelper = require("../../../_virtual/_plugin-vue_export-helper.js");
|
|
6
|
-
const _sfc_main = vue.defineComponent({
|
|
7
|
-
name: "TpSkeleton",
|
|
8
|
-
props: {
|
|
9
|
-
/**
|
|
10
|
-
* Quantos itens em sequencia
|
|
11
|
-
*/
|
|
12
|
-
count: {
|
|
13
|
-
type: Number,
|
|
14
|
-
required: false,
|
|
15
|
-
default: 1
|
|
16
|
-
},
|
|
17
|
-
/**
|
|
18
|
-
* Quanto tempo dura um ciclo da animação em segundos
|
|
19
|
-
*/
|
|
20
|
-
duration: {
|
|
21
|
-
type: Number,
|
|
22
|
-
required: false,
|
|
23
|
-
default: 1
|
|
24
|
-
},
|
|
25
|
-
/**
|
|
26
|
-
* Largura em "%"". Quando círculo, em "px"
|
|
27
|
-
*
|
|
28
|
-
*/
|
|
29
|
-
width: {
|
|
30
|
-
type: Number,
|
|
31
|
-
required: false,
|
|
32
|
-
default: null
|
|
33
|
-
},
|
|
34
|
-
/**
|
|
35
|
-
* Altura em "em"". Ignorado quando circulo e utiliza-se o mesmo parametro do width
|
|
36
|
-
*/
|
|
37
|
-
height: {
|
|
38
|
-
type: Number,
|
|
39
|
-
required: false,
|
|
40
|
-
default: null
|
|
41
|
-
},
|
|
42
|
-
/**
|
|
43
|
-
* Flag que identifica se será um círculo
|
|
44
|
-
*/
|
|
45
|
-
circle: {
|
|
46
|
-
type: Boolean,
|
|
47
|
-
required: false,
|
|
48
|
-
default: false
|
|
49
|
-
}
|
|
50
|
-
},
|
|
51
|
-
computed: {
|
|
52
|
-
cWidth() {
|
|
53
|
-
if (this.circle && this.width) {
|
|
54
|
-
return `${this.width}px`;
|
|
55
|
-
}
|
|
56
|
-
return `${this.width}%`;
|
|
57
|
-
},
|
|
58
|
-
cHeight() {
|
|
59
|
-
if (this.circle && this.width) {
|
|
60
|
-
return `${this.width}px`;
|
|
61
|
-
}
|
|
62
|
-
return `${this.height}em`;
|
|
63
|
-
}
|
|
64
|
-
}
|
|
65
|
-
});
|
|
66
|
-
const _hoisted_1 = { class: "tp-skeleton" };
|
|
67
|
-
function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
68
|
-
return vue.openBlock(), vue.createElementBlock("div", _hoisted_1, [
|
|
69
|
-
(vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(_ctx.count, (item) => {
|
|
70
|
-
return vue.openBlock(), vue.createElementBlock("span", {
|
|
71
|
-
key: item,
|
|
72
|
-
class: vue.normalizeClass({ circle: _ctx.circle }),
|
|
73
|
-
style: vue.normalizeStyle(`--duration:${_ctx.duration}; --item:${item}; width: ${_ctx.cWidth}; height: ${_ctx.cHeight}`)
|
|
74
|
-
}, " ", 6);
|
|
75
|
-
}), 128))
|
|
76
|
-
]);
|
|
77
|
-
}
|
|
78
|
-
const Skeleton = /* @__PURE__ */ _pluginVue_exportHelper.default(_sfc_main, [["render", _sfc_render], ["__scopeId", "data-v-3fc0709e"]]);
|
|
79
|
-
exports.default = Skeleton;
|
|
@@ -1,206 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: "Module" } });
|
|
3
|
-
const vue = require("vue");
|
|
4
|
-
;/* empty css */
|
|
5
|
-
const _pluginVue_exportHelper = require("../../../_virtual/_plugin-vue_export-helper.js");
|
|
6
|
-
const _sfc_main = vue.defineComponent({
|
|
7
|
-
name: "TpStep",
|
|
8
|
-
props: {
|
|
9
|
-
title: {
|
|
10
|
-
type: String,
|
|
11
|
-
default: ""
|
|
12
|
-
},
|
|
13
|
-
icon: {
|
|
14
|
-
type: String,
|
|
15
|
-
default: ""
|
|
16
|
-
},
|
|
17
|
-
description: {
|
|
18
|
-
type: String,
|
|
19
|
-
default: ""
|
|
20
|
-
},
|
|
21
|
-
status: {
|
|
22
|
-
type: String,
|
|
23
|
-
default: ""
|
|
24
|
-
}
|
|
25
|
-
},
|
|
26
|
-
data() {
|
|
27
|
-
return {
|
|
28
|
-
index: -1,
|
|
29
|
-
lineStyle: {},
|
|
30
|
-
internalStatus: ""
|
|
31
|
-
};
|
|
32
|
-
},
|
|
33
|
-
computed: {
|
|
34
|
-
currentStatus() {
|
|
35
|
-
return this.internalStatus;
|
|
36
|
-
},
|
|
37
|
-
prevStatus() {
|
|
38
|
-
const prevStep = this.$parent.steps[this.index - 1];
|
|
39
|
-
return prevStep ? prevStep.currentStatus : "wait";
|
|
40
|
-
},
|
|
41
|
-
isCenter() {
|
|
42
|
-
return this.$parent.alignCenter;
|
|
43
|
-
},
|
|
44
|
-
isVertical() {
|
|
45
|
-
return this.$parent.direction === "vertical";
|
|
46
|
-
},
|
|
47
|
-
isSimple() {
|
|
48
|
-
return this.$parent.simple;
|
|
49
|
-
},
|
|
50
|
-
isLast() {
|
|
51
|
-
const parent = this.$parent;
|
|
52
|
-
return parent.steps[parent.steps.length - 1] === this;
|
|
53
|
-
},
|
|
54
|
-
stepsCount() {
|
|
55
|
-
return this.$parent.steps.length;
|
|
56
|
-
},
|
|
57
|
-
space() {
|
|
58
|
-
const {
|
|
59
|
-
isSimple,
|
|
60
|
-
$parent: { space }
|
|
61
|
-
} = this;
|
|
62
|
-
return isSimple ? "" : space;
|
|
63
|
-
},
|
|
64
|
-
style: function() {
|
|
65
|
-
const style = {};
|
|
66
|
-
const parent = this.$parent;
|
|
67
|
-
const len = parent.steps.length;
|
|
68
|
-
const space = typeof this.space === "number" ? `${this.space}px` : this.space ? this.space : `${100 / (len - (this.isCenter ? 0 : 1))}%`;
|
|
69
|
-
style.flexBasis = space;
|
|
70
|
-
if (this.isVertical) return style;
|
|
71
|
-
if (this.isLast) {
|
|
72
|
-
style.maxWidth = `${100 / this.stepsCount}%`;
|
|
73
|
-
} else {
|
|
74
|
-
style.marginRight = `${-this.$parent.stepOffset}px`;
|
|
75
|
-
}
|
|
76
|
-
return style;
|
|
77
|
-
}
|
|
78
|
-
},
|
|
79
|
-
watch: {
|
|
80
|
-
status() {
|
|
81
|
-
this.updateStatus(this.$parent.active);
|
|
82
|
-
this.internalStatus = this.status;
|
|
83
|
-
}
|
|
84
|
-
},
|
|
85
|
-
beforeCreate() {
|
|
86
|
-
this.$parent.steps.push(this);
|
|
87
|
-
},
|
|
88
|
-
beforeUnmount() {
|
|
89
|
-
const steps = this.$parent.steps;
|
|
90
|
-
const index = steps.indexOf(this);
|
|
91
|
-
if (index >= 0) {
|
|
92
|
-
steps.splice(index, 1);
|
|
93
|
-
}
|
|
94
|
-
},
|
|
95
|
-
mounted() {
|
|
96
|
-
const unwatch = this.$watch("index", () => {
|
|
97
|
-
this.$watch("$parent.active", this.updateStatus, { immediate: true });
|
|
98
|
-
this.$watch(
|
|
99
|
-
"$parent.processStatus",
|
|
100
|
-
() => {
|
|
101
|
-
const activeIndex = this.$parent.active;
|
|
102
|
-
this.updateStatus(activeIndex);
|
|
103
|
-
},
|
|
104
|
-
{ immediate: true }
|
|
105
|
-
);
|
|
106
|
-
unwatch();
|
|
107
|
-
});
|
|
108
|
-
},
|
|
109
|
-
methods: {
|
|
110
|
-
updateStatus(val) {
|
|
111
|
-
const prevChild = this.$parent.$children[this.index - 1];
|
|
112
|
-
if (this.status === "error") {
|
|
113
|
-
this.internalStatus = "error";
|
|
114
|
-
} else if (val > this.index) {
|
|
115
|
-
this.internalStatus = this.$parent.finishStatus;
|
|
116
|
-
} else if (val === this.index && this.prevStatus !== "error") {
|
|
117
|
-
this.internalStatus = this.$parent.processStatus;
|
|
118
|
-
} else if (this.$parent.newItem && this.prevStatus !== "error") {
|
|
119
|
-
this.internalStatus = "wait";
|
|
120
|
-
}
|
|
121
|
-
if (prevChild) prevChild.calcProgress(this.internalStatus);
|
|
122
|
-
},
|
|
123
|
-
calcProgress(status) {
|
|
124
|
-
let step = 100;
|
|
125
|
-
const style = {};
|
|
126
|
-
style.transitionDelay = `${150 * this.index}ms`;
|
|
127
|
-
if (status === "wait") {
|
|
128
|
-
step = 0;
|
|
129
|
-
style.transitionDelay = `${-50 * this.index}ms`;
|
|
130
|
-
}
|
|
131
|
-
style.borderWidth = step && !this.isSimple ? "1px" : 0;
|
|
132
|
-
this.$parent.direction === "vertical" ? style.height = `${step}%` : style.width = `${step}%`;
|
|
133
|
-
this.lineStyle = style;
|
|
134
|
-
}
|
|
135
|
-
}
|
|
136
|
-
});
|
|
137
|
-
const _hoisted_1 = {
|
|
138
|
-
key: 1,
|
|
139
|
-
class: "el-step__icon-inner"
|
|
140
|
-
};
|
|
141
|
-
const _hoisted_2 = { class: "el-step__main" };
|
|
142
|
-
const _hoisted_3 = {
|
|
143
|
-
key: 0,
|
|
144
|
-
class: "el-step__arrow"
|
|
145
|
-
};
|
|
146
|
-
function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
147
|
-
return vue.openBlock(), vue.createElementBlock("div", {
|
|
148
|
-
class: vue.normalizeClass(["el-step", [
|
|
149
|
-
!_ctx.isSimple && `is-${_ctx.$parent.direction}`,
|
|
150
|
-
_ctx.isSimple && "is-simple",
|
|
151
|
-
_ctx.isLast && !_ctx.space && !_ctx.isCenter && "is-flex",
|
|
152
|
-
_ctx.isCenter && !_ctx.isVertical && !_ctx.isSimple && "is-center"
|
|
153
|
-
]]),
|
|
154
|
-
style: vue.normalizeStyle(_ctx.style)
|
|
155
|
-
}, [
|
|
156
|
-
vue.createElementVNode("div", {
|
|
157
|
-
class: vue.normalizeClass(["el-step__head", `is-${_ctx.currentStatus === "active" ? "finish" : _ctx.currentStatus}`])
|
|
158
|
-
}, [
|
|
159
|
-
vue.createElementVNode("div", {
|
|
160
|
-
class: "el-step__line",
|
|
161
|
-
style: vue.normalizeStyle(_ctx.isLast ? "" : { marginRight: _ctx.$parent.stepOffset + "px" })
|
|
162
|
-
}, [
|
|
163
|
-
vue.createElementVNode("em", {
|
|
164
|
-
class: "el-step__line-inner",
|
|
165
|
-
style: vue.normalizeStyle(_ctx.lineStyle)
|
|
166
|
-
}, null, 4)
|
|
167
|
-
], 4),
|
|
168
|
-
vue.createElementVNode("div", {
|
|
169
|
-
class: vue.normalizeClass(["el-step__icon", `is-${_ctx.icon ? "icon" : "text"}`])
|
|
170
|
-
}, [
|
|
171
|
-
_ctx.currentStatus !== "success" && _ctx.currentStatus !== "error" ? vue.renderSlot(_ctx.$slots, "icon", { key: 0 }, () => [
|
|
172
|
-
_ctx.icon ? (vue.openBlock(), vue.createElementBlock("em", {
|
|
173
|
-
key: 0,
|
|
174
|
-
class: vue.normalizeClass(["el-step__icon-inner", [_ctx.icon]])
|
|
175
|
-
}, null, 2)) : vue.createCommentVNode("", true),
|
|
176
|
-
!_ctx.icon && !_ctx.isSimple ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_1, vue.toDisplayString(_ctx.index + 1), 1)) : vue.createCommentVNode("", true)
|
|
177
|
-
], true) : (vue.openBlock(), vue.createElementBlock("em", {
|
|
178
|
-
key: 1,
|
|
179
|
-
class: vue.normalizeClass([[
|
|
180
|
-
"el-icon-" + (_ctx.currentStatus === "success" ? "check" : "close")
|
|
181
|
-
], "el-step__icon-inner is-status"])
|
|
182
|
-
}, null, 2))
|
|
183
|
-
], 2)
|
|
184
|
-
], 2),
|
|
185
|
-
vue.createElementVNode("div", _hoisted_2, [
|
|
186
|
-
vue.createElementVNode("div", {
|
|
187
|
-
ref: "title",
|
|
188
|
-
class: vue.normalizeClass(["el-step__title", ["is-" + _ctx.currentStatus]])
|
|
189
|
-
}, [
|
|
190
|
-
vue.renderSlot(_ctx.$slots, "title", {}, () => [
|
|
191
|
-
vue.createTextVNode(vue.toDisplayString(_ctx.title), 1)
|
|
192
|
-
], true)
|
|
193
|
-
], 2),
|
|
194
|
-
_ctx.isSimple ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_3)) : (vue.openBlock(), vue.createElementBlock("div", {
|
|
195
|
-
key: 1,
|
|
196
|
-
class: vue.normalizeClass(["el-step__description", ["is-" + _ctx.currentStatus]])
|
|
197
|
-
}, [
|
|
198
|
-
vue.renderSlot(_ctx.$slots, "description", {}, () => [
|
|
199
|
-
vue.createTextVNode(vue.toDisplayString(_ctx.description), 1)
|
|
200
|
-
], true)
|
|
201
|
-
], 2))
|
|
202
|
-
])
|
|
203
|
-
], 6);
|
|
204
|
-
}
|
|
205
|
-
const Step = /* @__PURE__ */ _pluginVue_exportHelper.default(_sfc_main, [["render", _sfc_render], ["__scopeId", "data-v-3c497fa9"]]);
|
|
206
|
-
exports.default = Step;
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: "Module" } });
|
|
3
|
-
const vue = require("vue");
|
|
4
|
-
const elementPlus = require("element-plus");
|
|
5
|
-
const _sfc_main = vue.defineComponent({
|
|
6
|
-
name: "TpSteps",
|
|
7
|
-
extends: elementPlus.ElSteps,
|
|
8
|
-
props: {
|
|
9
|
-
newItem: {
|
|
10
|
-
type: Boolean,
|
|
11
|
-
default: false
|
|
12
|
-
}
|
|
13
|
-
}
|
|
14
|
-
});
|
|
15
|
-
exports.default = _sfc_main;
|