@tagplus/components 5.2.8 → 5.2.9

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 (93) hide show
  1. package/dist/tp.common.js +1 -1
  2. package/dist/tp.common.js.map +1 -1
  3. package/dist/{tp.common.lang-tp-en-js.js → tp.common.lang-en-js.js} +2 -2
  4. package/dist/tp.common.lang-en-js.js.map +1 -0
  5. package/dist/tp.umd.js +1 -1
  6. package/dist/tp.umd.js.map +1 -1
  7. package/dist/{tp.umd.lang-tp-en-js.js → tp.umd.lang-en-js.js} +2 -2
  8. package/dist/tp.umd.lang-en-js.js.map +1 -0
  9. package/dist/tp.umd.min.js +1 -1
  10. package/dist/tp.umd.min.js.map +1 -1
  11. package/dist/{tp.umd.min.lang-tp-en-js.js → tp.umd.min.lang-en-js.js} +2 -2
  12. package/dist/tp.umd.min.lang-en-js.js.map +1 -0
  13. package/package.json +2 -7
  14. package/dist/tp.common.lang-tp-en-js.js.map +0 -1
  15. package/dist/tp.umd.lang-tp-en-js.js.map +0 -1
  16. package/dist/tp.umd.min.lang-tp-en-js.js.map +0 -1
  17. package/src/assets/scss/_fonts.scss +0 -28
  18. package/src/assets/scss/_functions.scss +0 -22
  19. package/src/assets/scss/_helpers.scss +0 -116
  20. package/src/assets/scss/_mixins.scss +0 -69
  21. package/src/assets/scss/_overrides.scss +0 -22
  22. package/src/assets/scss/_resass.scss +0 -92
  23. package/src/assets/scss/_variables.scss +0 -26
  24. package/src/assets/scss/index.scss +0 -8
  25. package/src/components/Autosuggest/Autosuggest.vue +0 -362
  26. package/src/components/Autosuggest/Multisuggest.vue +0 -22
  27. package/src/components/Autosuggest/autosuggest-props.js +0 -210
  28. package/src/components/Autosuggest/autosuggest-style.scss +0 -127
  29. package/src/components/Autosuggest/core.js +0 -63
  30. package/src/components/Autosuggest/index.js +0 -5
  31. package/src/components/Autosuggest/multisuggest-props.js +0 -9
  32. package/src/components/Autosuggest/option.vue +0 -136
  33. package/src/components/Autosuggest/select-dropdown.vue +0 -64
  34. package/src/components/Autosuggest/useOption.js +0 -120
  35. package/src/components/Autosuggest/useSelect.js +0 -1133
  36. package/src/components/AutosuggestTest.vue +0 -56
  37. package/src/components/CardExemplo.vue +0 -49
  38. package/src/components/CodeSample.vue +0 -78
  39. package/src/components/Inline/Inline.vue +0 -141
  40. package/src/components/Inline/index.js +0 -3
  41. package/src/components/InputNumber/InputNumber.vue +0 -381
  42. package/src/components/InputNumber/index.js +0 -3
  43. package/src/components/InputNumber/input-number.js +0 -135
  44. package/src/components/Loader/Loader.vue +0 -306
  45. package/src/components/Loader/animations.scss +0 -81
  46. package/src/components/Loader/index.js +0 -3
  47. package/src/components/Money/Money.vue +0 -73
  48. package/src/components/Money/index.js +0 -3
  49. package/src/components/Multisuggest/index.js +0 -2
  50. package/src/components/MultisuggestTest.vue +0 -56
  51. package/src/components/OptionsList/OptionsList.vue +0 -62
  52. package/src/components/OptionsList/index.js +0 -3
  53. package/src/components/OptionsListItem/OptionsListItem.vue +0 -195
  54. package/src/components/OptionsListItem/index.js +0 -3
  55. package/src/components/Percent/Percent.vue +0 -75
  56. package/src/components/Percent/index.js +0 -3
  57. package/src/components/Skeleton/Skeleton.vue +0 -142
  58. package/src/components/Skeleton/index.js +0 -3
  59. package/src/components/Step/Step.vue +0 -237
  60. package/src/components/Step/index.js +0 -3
  61. package/src/components/Steps/Steps.vue +0 -15
  62. package/src/components/Steps/index.js +0 -3
  63. package/src/components/TesteToCurrency.vue +0 -171
  64. package/src/components/Tip/Tip.vue +0 -210
  65. package/src/components/Tip/index.js +0 -3
  66. package/src/components/ValueSelector.vue +0 -60
  67. package/src/components/autosuggestMixin.js +0 -301
  68. package/src/components/index.js +0 -34
  69. package/src/locale/i18nCreator.js +0 -166
  70. package/src/locale/lang/en.js +0 -35
  71. package/src/locale/lang/pt-br.js +0 -35
  72. package/src/main.js +0 -21
  73. package/src/mixins/floatFormatter.js +0 -49
  74. package/src/plugins/currency.js +0 -100
  75. package/src/utils/browser.js +0 -6
  76. package/src/utils/constants.js +0 -3
  77. package/src/utils/error.js +0 -22
  78. package/src/utils/filters.js +0 -71
  79. package/src/utils/helpers.js +0 -41
  80. package/src/utils/i18n.js +0 -2
  81. package/src/utils/icon.js +0 -35
  82. package/src/utils/index.js +0 -20
  83. package/src/utils/objects.js +0 -17
  84. package/src/utils/runtime.js +0 -86
  85. package/src/utils/scroll.js +0 -100
  86. package/src/utils/strings.js +0 -17
  87. package/src/utils/style.js +0 -80
  88. package/src/utils/types.js +0 -39
  89. package/src/utils/use-derived-namespace.js +0 -112
  90. package/src/utils/use-form-common-props.js +0 -41
  91. package/src/utils/use-form-item.js +0 -80
  92. package/src/utils/use-id.js +0 -40
  93. package/src/utils/use-input.js +0 -33
@@ -1,62 +0,0 @@
1
- <template>
2
- <ul :class="[justifyContent, 'tp-options-list', disabled ? 'disabled' : '']">
3
- <!-- Conteúdo do OptionList -->
4
- <slot />
5
- </ul>
6
- </template>
7
-
8
- <script>
9
- import { defineComponent } from 'vue'
10
- /**
11
- * Container de uma lista de opções
12
- * `<tp-options-list></tp-options-list>`
13
- */
14
- export default defineComponent({
15
- name: 'TpOptionsList',
16
- props: {
17
- justifyContent: {
18
- // 'space-between' / 'space-around' / (any flex property)
19
- type: String,
20
- default: 'space-between'
21
- },
22
- disabled: {
23
- type: Boolean,
24
- default: false
25
- }
26
- }
27
- })
28
- </script>
29
-
30
- <style lang="scss" scoped>
31
- .tp-options-list {
32
- list-style: none;
33
- display: flex;
34
- flex-wrap: wrap;
35
-
36
- &.space-between {
37
- justify-content: space-between;
38
- }
39
-
40
- &.center {
41
- justify-content: center;
42
- }
43
-
44
- &.disabled {
45
- pointer-events: none;
46
- cursor: default;
47
- filter: grayscale(100%);
48
- }
49
-
50
- div,
51
- li {
52
- // só aplicar em telas grandes
53
- @media screen and (width >= 992px) {
54
- margin-right: 10px;
55
- }
56
- }
57
- }
58
-
59
- ul {
60
- padding-inline-start: 0;
61
- }
62
- </style>
@@ -1,3 +0,0 @@
1
- import OptionsList from './OptionsList'
2
-
3
- export default OptionsList
@@ -1,195 +0,0 @@
1
- <template>
2
- <li
3
- :id="id"
4
- :class="[
5
- 'tp-options-list-item',
6
- itemType,
7
- active === optValue ? 'active' : '',
8
- ]"
9
- tabindex="0"
10
- @click="updateOption"
11
- @keyup.enter="updateOption"
12
- >
13
- <div :class="['icon', direction]">
14
- <em :class="[icon, 'options-icon']" />
15
- <p class="text">
16
- <span v-for="(text, index) in texts" :key="index">
17
- {{ text }}
18
- </span>
19
- </p>
20
- </div>
21
- <sup v-if="badge" class="option-item-badge" />
22
- </li>
23
- </template>
24
-
25
- <script>
26
- import { defineComponent } from 'vue'
27
- export default defineComponent({
28
- name: 'TpOptionsListItem',
29
- props: {
30
- itemType: {
31
- type: String,
32
- default: ''
33
- },
34
- name: {
35
- type: String,
36
- default: ''
37
- },
38
- optValue: {
39
- type: [String, Boolean, Number],
40
- default: null
41
- },
42
- icon: {
43
- type: String,
44
- default: ''
45
- },
46
- badge: {
47
- type: Boolean,
48
- default: false
49
- },
50
- direction: {
51
- type: String,
52
- default: ''
53
- },
54
- id: {
55
- type: String,
56
- default: ''
57
- },
58
- texts: {
59
- type: Array,
60
- default: null
61
- },
62
- checked: {
63
- type: Boolean,
64
- default: false
65
- },
66
- type: {
67
- type: String,
68
- default: ''
69
- },
70
- active: {
71
- type: String,
72
- default: ''
73
- }
74
- },
75
- emits: ['input', 'updateValor'],
76
- methods: {
77
- updateOption () {
78
- this.$emit('updateValor', this.optValue)
79
- this.$emit('input', this.optValue)
80
- }
81
- }
82
- })
83
- </script>
84
-
85
- <style lang="scss" scoped>
86
- .tp-options-list-item {
87
- position: relative;
88
- height: 84px;
89
- min-width: 114px;
90
- border: 1px solid #dde5ee;
91
- border-radius: 6px;
92
- cursor: pointer;
93
- white-space: nowrap;
94
- display: flex;
95
- align-items: center;
96
- justify-content: center;
97
- background: #fff;
98
- transition: border-color 150ms ease-in-out;
99
- margin-right: 15px;
100
- margin-top: 15px;
101
-
102
- &.entrada {
103
- @include option-list-item-hover(#08a19e);
104
- @include option-list-item-checked(#08a19e);
105
- }
106
-
107
- &.saida {
108
- @include option-list-item-hover(#ff7675);
109
- @include option-list-item-checked(#ff7675);
110
- }
111
-
112
- &.default {
113
- @include option-list-item-hover(#437cf9);
114
- @include option-list-item-checked(#437cf9);
115
- }
116
-
117
- &.entrada,
118
- &.saida {
119
- @include r(1024) {
120
- max-width: 165px;
121
- }
122
- }
123
-
124
- &:focus {
125
- border: 1px solid #437cf9;
126
- }
127
-
128
- .icon {
129
- color: #565b66;
130
- display: flex;
131
- align-items: center;
132
-
133
- // text-align: center;
134
- transition: color 150ms ease-in-out;
135
- line-height: 1.75em;
136
- min-width: 120px;
137
-
138
- .text {
139
- span {
140
- display: block;
141
- }
142
- }
143
-
144
- .options-icon {
145
- font-size: 24px;
146
- }
147
-
148
- &.vertical {
149
- flex-direction: column;
150
-
151
- .text {
152
- span {
153
- font-size: 14px;
154
- }
155
- }
156
-
157
- .options-icon {
158
- font-size: 24px;
159
- }
160
- }
161
-
162
- &.horizontal {
163
- justify-content: space-around;
164
- min-width: 130px;
165
-
166
- .text {
167
- text-align: center;
168
- width: 70px;
169
-
170
- span {
171
- &:first-child {
172
- font-weight: $bold;
173
- }
174
- }
175
- }
176
-
177
- .options-icon {
178
- font-size: 47px;
179
- }
180
- }
181
- }
182
- }
183
-
184
- .option-item-badge {
185
- background-color: #f56c6c;
186
- border: 1px solid #fff;
187
- position: absolute;
188
- top: 0;
189
- transform: translateY(-50%) translateX(100%);
190
- height: 12px;
191
- width: 12px;
192
- right: 5px;
193
- border-radius: 50%;
194
- }
195
- </style>
@@ -1,3 +0,0 @@
1
- import OptionsListItem from './OptionsListItem'
2
-
3
- export default OptionsListItem
@@ -1,75 +0,0 @@
1
- <template>
2
- <el-input
3
- :id="`${_id}`"
4
- class="tp-percent"
5
- :model-value="formattedValue"
6
- v-bind="$attrs"
7
- :maxlength="maxlength"
8
- @input="input"
9
- @change="handleChange"
10
- @focus="$event.target.select()"
11
- >
12
- <template v-if="!removePrepend" #prepend>
13
- %
14
- </template>
15
- <template v-if="showAppend" #append>
16
- %
17
- </template>
18
- </el-input>
19
- </template>
20
-
21
- <script>
22
- import { defineComponent } from 'vue'
23
- import floatFormatterMixin from 'tp-ui/mixins/floatFormatter'
24
-
25
- export default defineComponent({
26
- name: 'TpPercent',
27
- mixins: [floatFormatterMixin],
28
- inheritAttrs: false,
29
- props: {
30
- id: {
31
- type: String,
32
- required: false,
33
- default: null
34
- },
35
-
36
- // remove o simbolo em prepend
37
- removePrepend: {
38
- type: Boolean,
39
- default: false
40
- },
41
-
42
- // coloca o simbolo no append
43
- showAppend: {
44
- type: Boolean,
45
- default: false
46
- },
47
-
48
- // valor do campo. Pode ser usado como v-model também
49
- value: {
50
- type: [Number, String],
51
- default: 0
52
- },
53
-
54
- // tamanho máximo do campo. limitado por padrão a 21 caracteres por limitações do JS
55
- maxlength: {
56
- type: Number,
57
- default: 21
58
- }
59
- },
60
-
61
- computed: {
62
- _id () {
63
- return this.id || this.$options.name
64
- }
65
- }
66
- })
67
- </script>
68
-
69
- <style lang="scss" scoped>
70
- .tp-percent {
71
- & input {
72
- text-align: right;
73
- }
74
- }
75
- </style>
@@ -1,3 +0,0 @@
1
- import Percent from './Percent'
2
-
3
- export default Percent
@@ -1,142 +0,0 @@
1
- <template>
2
- <div class="tp-skeleton">
3
- <span
4
- v-for="item in count"
5
- :key="item"
6
- :class="{ circle: circle }"
7
- :style="`--duration:${duration}; --item:${item}; width: ${cWidth}; height: ${cHeight}`"
8
- >
9
- &nbsp;
10
- </span>
11
- </div>
12
- </template>
13
-
14
- <script>
15
- import { defineComponent } from 'vue'
16
- /**
17
- * Placeholder de elemententos enquanto estão sendo carregados.
18
- * Exibe retângulos e circulos para mostrar ao usuario a estrutura dos dados que serão exibidos.
19
- * `<tp-skeleton />`
20
- */
21
- export default defineComponent({
22
- name: 'TpSkeleton',
23
- props: {
24
- /**
25
- * Quantos itens em sequencia
26
- */
27
- count: {
28
- type: Number,
29
- required: false,
30
- default: 1
31
- },
32
-
33
- /**
34
- * Quanto tempo dura um ciclo da animação em segundos
35
- */
36
- duration: {
37
- type: Number,
38
- required: false,
39
- default: 1
40
- },
41
-
42
- /**
43
- * Largura em "%"". Quando círculo, em "px"
44
- *
45
- */
46
- width: {
47
- type: Number,
48
- required: false,
49
- default: null
50
- },
51
-
52
- /**
53
- * Altura em "em"". Ignorado quando circulo e utiliza-se o mesmo parametro do width
54
- */
55
- height: {
56
- type: Number,
57
- required: false,
58
- default: null
59
- },
60
-
61
- /**
62
- * Flag que identifica se será um círculo
63
- */
64
- circle: {
65
- type: Boolean,
66
- required: false,
67
- default: false
68
- }
69
- },
70
-
71
- computed: {
72
- cWidth () {
73
- if (this.circle && this.width) {
74
- return `${this.width}px`
75
- }
76
-
77
- return `${this.width}%`
78
- },
79
-
80
- cHeight () {
81
- if (this.circle && this.width) {
82
- return `${this.width}px`
83
- }
84
-
85
- return `${this.height}em`
86
- }
87
- }
88
- })
89
- </script>
90
-
91
- <style lang="scss" scoped>
92
- @keyframes skeleton {
93
- 0% {
94
- background-position: -200px 0;
95
- }
96
-
97
- 100% {
98
- background-position: calc(200px + 100%) 0;
99
- }
100
- }
101
-
102
- .tp-skeleton {
103
- display: block;
104
- height: 100%;
105
-
106
- /* stylelint-disable-next-line custom-property-pattern */
107
- --baseColor: #ebeef2;
108
-
109
- span {
110
- /* stylelint-disable-next-line custom-property-pattern */
111
- $base-color: var(--baseColor);
112
-
113
- background-color: var($base-color);
114
- background-image: linear-gradient(
115
- 90deg,
116
- var($base-color),
117
- color-mix($--color-white, $--border-color-light, 70%),
118
- var($base-color)
119
- );
120
- background-size: 200px 100%;
121
- background-repeat: no-repeat;
122
- background-position: -200px 0;
123
- border-radius: $--border-radius-base;
124
- display: inline-block;
125
- line-height: 20px;
126
- margin-bottom: 3px;
127
- width: 100%;
128
- min-height: 15px;
129
- animation-name: skeleton;
130
- animation-duration: calc(var(--duration) * 1s);
131
- animation-timing-function: ease-in-out;
132
- animation-iteration-count: infinite;
133
-
134
- // animation-delay: calc(var(--item) * 300ms);
135
-
136
- &.circle {
137
- width: inherit;
138
- border-radius: 50%;
139
- }
140
- }
141
- }
142
- </style>
@@ -1,3 +0,0 @@
1
- import Skeleton from './Skeleton'
2
-
3
- export default Skeleton