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