@tagplus/components 4.7.3 → 4.7.5
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/tp.common.js +2 -1
- package/dist/tp.common.js.LICENSE.txt +9 -0
- package/dist/tp.common.js.map +1 -1
- package/dist/tp.common.lang-en-js.js +2 -0
- package/dist/tp.common.lang-en-js.js.map +1 -0
- package/dist/tp.css +12 -167
- package/dist/tp.umd.js +2 -1
- package/dist/tp.umd.js.LICENSE.txt +9 -0
- package/dist/tp.umd.js.map +1 -1
- package/dist/tp.umd.lang-en-js.js +2 -0
- package/dist/tp.umd.lang-en-js.js.map +1 -0
- package/dist/tp.umd.min.js +2 -1
- package/dist/tp.umd.min.js.LICENSE.txt +9 -0
- package/dist/tp.umd.min.js.map +1 -1
- package/dist/tp.umd.min.lang-en-js.js +2 -0
- package/dist/tp.umd.min.lang-en-js.js.map +1 -0
- package/package.json +39 -41
- package/src/assets/scss/_fonts.scss +24 -23
- package/src/assets/scss/_helpers.scss +4 -12
- package/src/assets/scss/_mixins.scss +2 -2
- package/src/assets/scss/_overrides.scss +5 -52
- package/src/assets/scss/_resass.scss +21 -12
- package/src/assets/scss/_variables.scss +0 -1
- package/src/assets/scss/index.scss +1 -4
- package/src/components/Autosuggest/Autosuggest.vue +340 -762
- package/src/components/Autosuggest/Multisuggest.vue +22 -0
- package/src/components/Autosuggest/autosuggest-props.js +210 -0
- package/src/components/Autosuggest/autosuggest-style.scss +127 -0
- package/src/components/Autosuggest/core.js +63 -0
- package/src/components/Autosuggest/index.js +2 -0
- package/src/components/Autosuggest/multisuggest-props.js +9 -0
- package/src/components/Autosuggest/option.vue +136 -0
- package/src/components/Autosuggest/select-dropdown.vue +64 -0
- package/src/components/Autosuggest/useOption.js +120 -0
- package/src/components/Autosuggest/useSelect.js +1133 -0
- package/src/components/AutosuggestTest.vue +56 -0
- package/src/components/CardExemplo.vue +49 -0
- package/src/components/CodeSample.vue +78 -0
- package/src/components/Inline/Inline.vue +24 -32
- package/src/components/InputNumber/InputNumber.vue +329 -378
- package/src/components/InputNumber/input-number.js +135 -0
- package/src/components/Loader/Loader.vue +42 -53
- package/src/components/Loader/animations.scss +13 -0
- package/src/components/Money/Money.vue +11 -20
- package/src/components/Multisuggest/index.js +2 -3
- package/src/components/MultisuggestTest.vue +56 -0
- package/src/components/OptionsList/OptionsList.vue +7 -6
- package/src/components/OptionsListItem/OptionsListItem.vue +46 -42
- package/src/components/Percent/Percent.vue +8 -14
- package/src/components/Skeleton/Skeleton.vue +16 -11
- package/src/components/Step/Step.vue +42 -35
- package/src/components/Steps/Steps.vue +4 -7
- package/src/components/TesteToCurrency.vue +171 -0
- package/src/components/Tip/Tip.vue +63 -77
- package/src/components/ValueSelector.vue +60 -0
- package/src/components/autosuggestMixin.js +301 -0
- package/src/components/index.js +4 -1
- package/src/locale/i18n.js +114 -0
- package/src/locale/lang/en.js +3 -2
- package/src/locale/lang/pt-br.js +3 -2
- package/src/main.js +11 -13
- package/src/mixins/floatFormatter.js +12 -16
- package/src/{utils → plugins}/currency.js +10 -64
- package/src/utils/browser.js +6 -0
- package/src/utils/constants.js +3 -0
- package/src/utils/error.js +22 -0
- package/src/utils/filters.js +1 -14
- package/src/utils/helpers.js +41 -0
- package/src/utils/i18n.js +2 -0
- package/src/utils/icon.js +35 -0
- package/src/utils/index.js +20 -0
- package/src/utils/objects.js +17 -0
- package/src/utils/runtime.js +86 -0
- package/src/utils/scroll.js +100 -0
- package/src/utils/strings.js +17 -0
- package/src/utils/style.js +80 -0
- package/src/utils/types.js +39 -0
- package/src/utils/use-derived-namespace.js +112 -0
- package/src/utils/use-form-common-props.js +41 -0
- package/src/utils/use-form-item.js +80 -0
- package/src/utils/use-id.js +40 -0
- package/src/utils/use-input.js +33 -0
- package/src/components/Dialog/Dialog.vue +0 -253
- package/src/components/Dialog/index.js +0 -3
- package/src/components/Multisuggest/Multisuggest.vue +0 -858
- package/src/locale/index.js +0 -78
- package/src/mixins/locale.js +0 -9
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use strict";(("undefined"!=typeof self?self:this).webpackChunktp=("undefined"!=typeof self?self:this).webpackChunktp||[]).push([[275],{48167:function(e,n,f){f.r(n);var l=f(33088);n.default={...l.default,lingua:"English",tp:{money:{currency:"$"}},locale:{name:"en",prefix:"en-US",number:{decimal:".",thousands:"",prefix:"",suffix:"",precision:2},date:{format:"YYYY-MM-DD"}},common:{placeholder:"placeholder"}}}}]);
|
|
2
|
+
//# sourceMappingURL=tp.umd.min.lang-en-js.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"tp.umd.min.lang-en-js.js","mappings":"oLAEA,cACKA,EAAAA,QACHC,OAAQ,UAERC,GAAI,CACFC,MAAO,CACLC,SAAU,MAIdC,OAAQ,CAENC,KAAM,KAGNC,OAAQ,QAERC,OAAQ,CACNC,QAAS,IACTC,UAAW,GACXH,OAAQ,GACRI,OAAQ,GACRC,UAAW,GAGbC,KAAM,CACJC,OAAQ,eAGZC,OAAQ,CACNC,YAAa,e","sources":["webpack://tp/./src/locale/lang/en.js"],"sourcesContent":["import enLocale from 'element-plus/es/locale/lang/en'\n\nexport default {\n ...enLocale,\n lingua: 'English',\n\n tp: {\n money: {\n currency: '$'\n }\n },\n\n locale: {\n // locale name equals filename reference\n name: 'en',\n\n // IANA.ORG convetions according to W3C\n prefix: 'en-US',\n\n number: {\n decimal: '.',\n thousands: '',\n prefix: '',\n suffix: '',\n precision: 2\n },\n\n date: {\n format: 'YYYY-MM-DD'\n }\n },\n common: {\n placeholder: 'placeholder'\n }\n}\n"],"names":["enLocale","lingua","tp","money","currency","locale","name","prefix","number","decimal","thousands","suffix","precision","date","format","common","placeholder"],"sourceRoot":""}
|
package/package.json
CHANGED
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
"email": "bruno@tagplus.com.br"
|
|
9
9
|
}
|
|
10
10
|
],
|
|
11
|
-
"version": "4.7.
|
|
11
|
+
"version": "4.7.5",
|
|
12
12
|
"main": "./dist/tp.common.js",
|
|
13
13
|
"directories": {
|
|
14
14
|
"lib": "src/lib"
|
|
@@ -19,13 +19,11 @@
|
|
|
19
19
|
"src"
|
|
20
20
|
],
|
|
21
21
|
"engines": {
|
|
22
|
-
"node": ">=
|
|
22
|
+
"node": ">=18.0"
|
|
23
23
|
},
|
|
24
24
|
"lint-staged": {
|
|
25
|
-
"*.{js,vue
|
|
26
|
-
|
|
27
|
-
"jest": {
|
|
28
|
-
"testEnvironment": "node"
|
|
25
|
+
"*.{js,vue}": "eslint",
|
|
26
|
+
"*.{css,vue}": "stylelint"
|
|
29
27
|
},
|
|
30
28
|
"license": "MIT",
|
|
31
29
|
"scripts": {
|
|
@@ -34,7 +32,7 @@
|
|
|
34
32
|
"doc": "npm run docs",
|
|
35
33
|
"docs": "nodemon --exec \"vuese gen && vuese serve\" --watch ./src -e js,vue,scss",
|
|
36
34
|
"docs:gen": "vuese gen",
|
|
37
|
-
"lint": "eslint --cache --ext .js,.vue --ignore-path .gitignore .",
|
|
35
|
+
"lint": "stylelint **/*.scss --fix & eslint --cache --ext .js,.vue --ignore-path .gitignore .",
|
|
38
36
|
"pub:major": "npm run build && npm version major && npm publish --access public",
|
|
39
37
|
"pub:minor": "npm run build && npm version minor && npm publish --access public",
|
|
40
38
|
"pub": "npm run build && npm version patch && npm publish --access public",
|
|
@@ -43,49 +41,49 @@
|
|
|
43
41
|
"start": "npm run serve",
|
|
44
42
|
"install:clean": "rm -rf package-lock.json yarn.lock & rm -rf node_modules & npm install",
|
|
45
43
|
"install:clear": "npm run install:clean",
|
|
46
|
-
"test": "jest",
|
|
47
|
-
"test:coverage": "jest --collectCoverage",
|
|
48
|
-
"test:unit": "vue-cli-service test:unit",
|
|
49
44
|
"prepare": "husky install"
|
|
50
45
|
},
|
|
51
46
|
"dependencies": {
|
|
47
|
+
"@element-plus/hooks": "^0.0.5",
|
|
48
|
+
"@element-plus/utils": "^0.0.5",
|
|
52
49
|
"@vue/babel-preset-app": "^5.0.8",
|
|
53
50
|
"axios": "^0.27.2",
|
|
54
|
-
"core-js": "^3.
|
|
55
|
-
"element-
|
|
56
|
-
"element-
|
|
57
|
-
"js-cookie": "^3.0.
|
|
58
|
-
"
|
|
59
|
-
"vue
|
|
60
|
-
"vue-
|
|
51
|
+
"core-js": "^3.36.0",
|
|
52
|
+
"element-plus": "^2.5.5",
|
|
53
|
+
"element-theme-chalk": "^2.15.14",
|
|
54
|
+
"js-cookie": "^3.0.5",
|
|
55
|
+
"throttle-debounce": "^5.0.0",
|
|
56
|
+
"vue": "^3.4.19",
|
|
57
|
+
"vue-axios": "^3.5.2",
|
|
58
|
+
"vue-i18n": "^9.9.1"
|
|
61
59
|
},
|
|
62
60
|
"devDependencies": {
|
|
63
|
-
"@babel/core": "^7.
|
|
64
|
-
"@babel/eslint-parser": "^7.
|
|
61
|
+
"@babel/core": "^7.23.9",
|
|
62
|
+
"@babel/eslint-parser": "^7.23.10",
|
|
63
|
+
"@stylistic/eslint-plugin": "^1.6.1",
|
|
64
|
+
"@stylistic/eslint-plugin-migrate": "^1.6.1",
|
|
65
65
|
"@vue/cli-plugin-babel": "^5.0.8",
|
|
66
|
-
"@vue/
|
|
67
|
-
"@
|
|
68
|
-
"@vuese/cli": "^2.10.0",
|
|
69
|
-
"babel-jest": "^24.9.0",
|
|
66
|
+
"@vue/compiler-sfc": "^3.4.19",
|
|
67
|
+
"@vuese/cli": "^2.14.3",
|
|
70
68
|
"babel-plugin-module-resolver": "^4.1.0",
|
|
71
69
|
"babel-plugin-require-context-hook": "^1.0.0",
|
|
72
|
-
"eslint": "^8.
|
|
73
|
-
"eslint-config-
|
|
74
|
-
"eslint-config-standard": "^17.
|
|
75
|
-
"eslint-
|
|
76
|
-
"
|
|
77
|
-
"
|
|
78
|
-
"
|
|
79
|
-
"
|
|
80
|
-
"
|
|
81
|
-
"
|
|
82
|
-
"
|
|
83
|
-
"
|
|
84
|
-
"
|
|
85
|
-
"
|
|
86
|
-
"
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
"
|
|
70
|
+
"eslint": "^8.56.0",
|
|
71
|
+
"eslint-config-alloy": "^5.1.2",
|
|
72
|
+
"eslint-config-standard": "^17.1.0",
|
|
73
|
+
"eslint-plugin-vue": "^9.21.1",
|
|
74
|
+
"husky": "^8.0.3",
|
|
75
|
+
"lint-staged": "^13.3.0",
|
|
76
|
+
"nodemon": "^2.0.22",
|
|
77
|
+
"sass": "^1.70.0",
|
|
78
|
+
"sass-loader": "^13.3.3",
|
|
79
|
+
"stylelint": "^15.11.0",
|
|
80
|
+
"stylelint-config-recommended-scss": "^12.0.0",
|
|
81
|
+
"stylelint-config-recommended-vue": "^1.5.0",
|
|
82
|
+
"stylelint-config-standard-scss": "^9.0.0",
|
|
83
|
+
"vue-eslint-parser": "^9.4.2",
|
|
84
|
+
"webpack": "^5.90.1"
|
|
85
|
+
},
|
|
86
|
+
"overrides": {
|
|
87
|
+
"vue": "^3.4.19"
|
|
90
88
|
}
|
|
91
89
|
}
|
|
@@ -1,27 +1,28 @@
|
|
|
1
1
|
@font-face {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
2
|
+
font-family: bevi;
|
|
3
|
+
src: url('/fonts/bevi-regular.woff2') format('woff2'),
|
|
4
|
+
url('/fonts/bevi-regular.woff') format('woff');
|
|
5
|
+
font-weight: normal;
|
|
6
|
+
font-style: normal;
|
|
7
|
+
}
|
|
8
8
|
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
9
|
+
@font-face {
|
|
10
|
+
font-family: bevi;
|
|
11
|
+
src: url('/fonts/bevi-medium.woff2') format('woff2'),
|
|
12
|
+
url('/fonts/bevi-medium.woff') format('woff');
|
|
13
|
+
font-weight: 500;
|
|
14
|
+
font-style: normal;
|
|
15
|
+
}
|
|
16
16
|
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
17
|
+
@font-face {
|
|
18
|
+
font-family: bevi;
|
|
19
|
+
src: url('/fonts/bevi-bold.woff2') format('woff2'),
|
|
20
|
+
url('/fonts/bevi-bold.woff') format('woff');
|
|
21
|
+
font-weight: bold;
|
|
22
|
+
font-style: normal;
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
* {
|
|
26
|
+
font-family: bevi, sans-serif;
|
|
27
|
+
}
|
|
27
28
|
|
|
@@ -7,15 +7,19 @@
|
|
|
7
7
|
&--default {
|
|
8
8
|
color: $--color-text-primary;
|
|
9
9
|
}
|
|
10
|
+
|
|
10
11
|
&--regular {
|
|
11
12
|
color: $--color-text-regular;
|
|
12
13
|
}
|
|
14
|
+
|
|
13
15
|
&--primary {
|
|
14
16
|
color: $--color-primary;
|
|
15
17
|
}
|
|
18
|
+
|
|
16
19
|
&--danger {
|
|
17
20
|
color: $--color-danger;
|
|
18
21
|
}
|
|
22
|
+
|
|
19
23
|
&--success {
|
|
20
24
|
color: $--color-success;
|
|
21
25
|
}
|
|
@@ -92,27 +96,15 @@
|
|
|
92
96
|
display: block;
|
|
93
97
|
}
|
|
94
98
|
|
|
95
|
-
.flexContent {
|
|
96
|
-
display: flex;
|
|
97
|
-
}
|
|
98
|
-
|
|
99
99
|
.justify-between {
|
|
100
100
|
justify-content: space-between;
|
|
101
101
|
}
|
|
102
102
|
|
|
103
|
-
.justify-content-end {
|
|
104
|
-
justify-content: end;
|
|
105
|
-
}
|
|
106
|
-
|
|
107
103
|
.text-helper-info {
|
|
108
104
|
font-size: 13px;
|
|
109
105
|
color: #565b66;
|
|
110
106
|
}
|
|
111
107
|
|
|
112
|
-
.c-pointer {
|
|
113
|
-
cursor: pointer;
|
|
114
|
-
}
|
|
115
|
-
|
|
116
108
|
.no-font-weight {
|
|
117
109
|
font-weight: initial !important;
|
|
118
110
|
}
|
|
@@ -5,12 +5,12 @@
|
|
|
5
5
|
opacity: 1; /* Firefox */
|
|
6
6
|
}
|
|
7
7
|
|
|
8
|
-
|
|
8
|
+
:input-placeholder {
|
|
9
9
|
/* Internet Explorer 10-11 */
|
|
10
10
|
color: rgba($color, $opacity);
|
|
11
11
|
}
|
|
12
12
|
|
|
13
|
-
|
|
13
|
+
::input-placeholder {
|
|
14
14
|
/* Microsoft Edge */
|
|
15
15
|
color: rgba($color, $opacity);
|
|
16
16
|
}
|
|
@@ -2,48 +2,14 @@ input,
|
|
|
2
2
|
.el-select-dropdown__empty,
|
|
3
3
|
.el-select-dropdown__list,
|
|
4
4
|
.el-autosuggest-suggestion {
|
|
5
|
-
font-family:
|
|
5
|
+
font-family: bevi, sans-serif;
|
|
6
6
|
}
|
|
7
7
|
|
|
8
|
+
.el-input {
|
|
9
|
+
height: 48px;
|
|
8
10
|
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
* Sobrescrita de itens quando em grupo / com prepend
|
|
12
|
-
*/
|
|
13
|
-
.el-input.el-input-group.el-input-group--prepend {
|
|
14
|
-
border: 1px solid $--border-color-light;
|
|
15
|
-
border-radius: $--border-radius-base;
|
|
16
|
-
transition: border-color 150ms ease-in-out;
|
|
17
|
-
|
|
18
|
-
&:hover,
|
|
19
|
-
&:focus-within {
|
|
20
|
-
border-color: $--color-primary;
|
|
21
|
-
}
|
|
22
|
-
}
|
|
23
|
-
|
|
24
|
-
.el-input-group__append {
|
|
25
|
-
background-color: transparent;
|
|
26
|
-
}
|
|
27
|
-
.el-input-group__prepend {
|
|
28
|
-
background: transparent;
|
|
29
|
-
position: relative;
|
|
30
|
-
padding: 0 15px;
|
|
31
|
-
border: 0;
|
|
32
|
-
cursor: default;
|
|
33
|
-
|
|
34
|
-
& + input {
|
|
35
|
-
border: 0;
|
|
36
|
-
}
|
|
37
|
-
|
|
38
|
-
&::after {
|
|
39
|
-
content: "";
|
|
40
|
-
position: absolute;
|
|
41
|
-
right: 0;
|
|
42
|
-
height: 70%;
|
|
43
|
-
width: 1px;
|
|
44
|
-
background: $--border-color-light;
|
|
45
|
-
top: 50%;
|
|
46
|
-
transform: translateY(-50%);
|
|
11
|
+
input {
|
|
12
|
+
height: 100%;
|
|
47
13
|
}
|
|
48
14
|
}
|
|
49
15
|
|
|
@@ -53,17 +19,4 @@ input,
|
|
|
53
19
|
border-color: $--color-danger;
|
|
54
20
|
}
|
|
55
21
|
}
|
|
56
|
-
}
|
|
57
|
-
|
|
58
|
-
.el-select .el-input{
|
|
59
|
-
height: 48px;
|
|
60
|
-
}
|
|
61
|
-
|
|
62
|
-
.el-input {
|
|
63
|
-
height: 48px;
|
|
64
|
-
}
|
|
65
|
-
|
|
66
|
-
input.el-input__inner {
|
|
67
|
-
height: 100%;
|
|
68
|
-
margin-right: 50px;
|
|
69
22
|
}
|
|
@@ -29,55 +29,64 @@
|
|
|
29
29
|
* @link https://github.com/ahmadawais/ReSass.git
|
|
30
30
|
* @version 1.0.0
|
|
31
31
|
*/
|
|
32
|
-
@mixin r(
|
|
32
|
+
@mixin r($point) {
|
|
33
33
|
@if $point==240 {
|
|
34
|
-
@media (
|
|
34
|
+
@media (width >=240px) {
|
|
35
35
|
@content;
|
|
36
36
|
}
|
|
37
37
|
}
|
|
38
|
+
|
|
38
39
|
@if $point==320 {
|
|
39
|
-
@media (
|
|
40
|
+
@media (width >=320px) {
|
|
40
41
|
@content;
|
|
41
42
|
}
|
|
42
43
|
}
|
|
44
|
+
|
|
43
45
|
@if $point==480 {
|
|
44
|
-
@media (
|
|
46
|
+
@media (width >=480px) {
|
|
45
47
|
@content;
|
|
46
48
|
}
|
|
47
49
|
}
|
|
50
|
+
|
|
48
51
|
@if $point==600 {
|
|
49
|
-
@media (
|
|
52
|
+
@media (width >=600px) {
|
|
50
53
|
@content;
|
|
51
54
|
}
|
|
52
55
|
}
|
|
56
|
+
|
|
53
57
|
@if $point==767 {
|
|
54
|
-
@media (
|
|
58
|
+
@media (width <=767px) {
|
|
55
59
|
@content;
|
|
56
60
|
}
|
|
57
61
|
}
|
|
62
|
+
|
|
58
63
|
@if $point==768 {
|
|
59
|
-
@media (
|
|
64
|
+
@media (width >=768px) {
|
|
60
65
|
@content;
|
|
61
66
|
}
|
|
62
67
|
}
|
|
68
|
+
|
|
63
69
|
@if $point==1024 {
|
|
64
|
-
@media (
|
|
70
|
+
@media (width >=1024px) {
|
|
65
71
|
@content;
|
|
66
72
|
}
|
|
67
73
|
}
|
|
74
|
+
|
|
68
75
|
@if $point==1140 {
|
|
69
|
-
@media (
|
|
76
|
+
@media (width >=1140px) {
|
|
70
77
|
@content;
|
|
71
78
|
}
|
|
72
79
|
}
|
|
80
|
+
|
|
73
81
|
@if $point==1280 {
|
|
74
|
-
@media (
|
|
82
|
+
@media (width >=1280px) {
|
|
75
83
|
@content;
|
|
76
84
|
}
|
|
77
85
|
}
|
|
86
|
+
|
|
78
87
|
@if $point==1500 {
|
|
79
|
-
@media (
|
|
88
|
+
@media (width >=1500px) {
|
|
80
89
|
@content;
|
|
81
90
|
}
|
|
82
91
|
}
|
|
83
|
-
}
|
|
92
|
+
}
|
|
@@ -1,11 +1,8 @@
|
|
|
1
|
-
@import "~element-theme-chalk/src/common/var
|
|
2
|
-
|
|
1
|
+
@import "~element-theme-chalk/src/common/var";
|
|
3
2
|
@import "variables";
|
|
4
3
|
@import "mixins";
|
|
5
4
|
@import "resass";
|
|
6
|
-
|
|
7
5
|
@import "helpers";
|
|
8
6
|
@import "functions";
|
|
9
7
|
@import "fonts";
|
|
10
|
-
|
|
11
8
|
@import "overrides";
|