@tagplus/components 5.2.19 → 5.3.0
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/es/_virtual/_plugin-vue_export-helper.mjs +10 -0
- package/dist/es/components.css +2391 -0
- package/dist/es/node_modules/@element-plus/icons-vue/dist/index.mjs +148 -0
- package/dist/es/node_modules/@popperjs/core/lib/enums.mjs +22 -0
- package/dist/es/node_modules/@vue/shared/dist/shared.esm-bundler.mjs +28 -0
- package/dist/es/node_modules/@vueuse/core/index.mjs +172 -0
- package/dist/es/node_modules/@vueuse/shared/index.mjs +68 -0
- package/dist/es/node_modules/element-plus/es/constants/size.mjs +4 -0
- package/dist/es/node_modules/element-plus/es/hooks/use-focus-controller/index.mjs +64 -0
- package/dist/es/node_modules/element-plus/es/hooks/use-id/index.mjs +30 -0
- package/dist/es/node_modules/element-plus/es/hooks/use-locale/index.mjs +29 -0
- package/dist/es/node_modules/element-plus/es/hooks/use-namespace/index.mjs +79 -0
- package/dist/es/node_modules/element-plus/es/hooks/use-prop/index.mjs +11 -0
- package/dist/es/node_modules/element-plus/es/hooks/use-size/index.mjs +20 -0
- package/dist/es/node_modules/element-plus/es/locale/lang/en.mjs +182 -0
- package/dist/es/node_modules/element-plus/es/utils/error.mjs +16 -0
- package/dist/es/node_modules/element-plus/es/utils/types.mjs +9 -0
- package/dist/es/node_modules/element-plus/es/utils/vue/props/runtime.mjs +42 -0
- package/dist/es/src/components/Autosuggest/Autosuggest.vue.mjs +446 -0
- package/dist/es/src/components/Autosuggest/Multisuggest.vue.mjs +17 -0
- package/dist/es/src/components/Autosuggest/autosuggest-props.mjs +204 -0
- package/dist/es/src/components/Autosuggest/core.mjs +56 -0
- package/dist/es/src/components/Autosuggest/multisuggest-props.mjs +11 -0
- package/dist/es/src/components/Autosuggest/option.vue.mjs +118 -0
- package/dist/es/src/components/Autosuggest/select-dropdown.vue.mjs +62 -0
- package/dist/es/src/components/Autosuggest/useOption.mjs +93 -0
- package/dist/es/src/components/Autosuggest/useSelect.mjs +803 -0
- package/dist/es/src/components/Inline/Inline.vue.mjs +125 -0
- package/dist/es/src/components/Inline/index.mjs +4 -0
- package/dist/es/src/components/InputNumber/InputNumber.vue.mjs +360 -0
- package/dist/es/src/components/InputNumber/index.mjs +4 -0
- package/dist/es/src/components/InputNumber/input-number.mjs +128 -0
- package/dist/es/src/components/Loader/Loader.vue.mjs +59 -0
- package/dist/es/src/components/Loader/index.mjs +4 -0
- package/dist/es/src/components/Money/Money.vue.mjs +72 -0
- package/dist/es/src/components/Money/index.mjs +4 -0
- package/dist/es/src/components/Multisuggest/index.mjs +4 -0
- package/dist/es/src/components/OptionsList/OptionsList.vue.mjs +28 -0
- package/dist/es/src/components/OptionsList/index.mjs +4 -0
- package/dist/es/src/components/OptionsListItem/OptionsListItem.vue.mjs +96 -0
- package/dist/es/src/components/OptionsListItem/index.mjs +4 -0
- package/dist/es/src/components/Percent/Percent.vue.mjs +73 -0
- package/dist/es/src/components/Percent/index.mjs +4 -0
- package/dist/es/src/components/Skeleton/Skeleton.vue.mjs +79 -0
- package/dist/es/src/components/Skeleton/index.mjs +4 -0
- package/dist/es/src/components/Step/Step.vue.mjs +206 -0
- package/dist/es/src/components/Step/index.mjs +4 -0
- package/dist/es/src/components/Steps/Steps.vue.mjs +15 -0
- package/dist/es/src/components/Steps/index.mjs +4 -0
- package/dist/es/src/components/Tip/Tip.vue.mjs +160 -0
- package/dist/es/src/components/Tip/index.mjs +4 -0
- package/dist/es/src/components/index.mjs +32 -0
- package/dist/es/src/locale/i18nCreator.mjs +93 -0
- package/dist/es/src/locale/lang/pt-br.mjs +21 -0
- package/dist/es/src/main.mjs +17 -0
- package/dist/es/src/mixins/floatFormatter.mjs +42 -0
- package/dist/es/src/plugins/currency.mjs +69 -0
- package/dist/es/src/utils/constants.mjs +6 -0
- package/dist/es/src/utils/error.mjs +22 -0
- package/dist/es/src/utils/i18n.mjs +4 -0
- package/dist/es/src/utils/icon.mjs +9 -0
- package/dist/es/src/utils/index.mjs +11 -0
- package/dist/es/src/utils/runtime.mjs +50 -0
- package/dist/es/src/utils/scroll.mjs +28 -0
- package/dist/es/src/utils/strings.mjs +4 -0
- package/dist/es/src/utils/types.mjs +9 -0
- package/dist/es/src/utils/use-derived-namespace.mjs +15 -0
- package/dist/es/src/utils/use-form-common-props.mjs +25 -0
- package/dist/es/src/utils/use-form-item.mjs +61 -0
- package/dist/es/src/utils/use-id.mjs +35 -0
- package/dist/es/src/utils/use-input.mjs +31 -0
- package/dist/lib/_virtual/_plugin-vue_export-helper.js +10 -0
- package/dist/lib/components.css +2391 -0
- package/dist/lib/node_modules/@element-plus/icons-vue/dist/index.js +148 -0
- package/dist/lib/node_modules/@popperjs/core/lib/enums.js +22 -0
- package/dist/lib/node_modules/@vue/shared/dist/shared.esm-bundler.js +28 -0
- package/dist/lib/node_modules/@vueuse/core/index.js +170 -0
- package/dist/lib/node_modules/@vueuse/shared/index.js +68 -0
- package/dist/lib/node_modules/element-plus/es/constants/size.js +4 -0
- package/dist/lib/node_modules/element-plus/es/hooks/use-focus-controller/index.js +64 -0
- package/dist/lib/node_modules/element-plus/es/hooks/use-id/index.js +30 -0
- package/dist/lib/node_modules/element-plus/es/hooks/use-locale/index.js +29 -0
- package/dist/lib/node_modules/element-plus/es/hooks/use-namespace/index.js +79 -0
- package/dist/lib/node_modules/element-plus/es/hooks/use-prop/index.js +11 -0
- package/dist/lib/node_modules/element-plus/es/hooks/use-size/index.js +20 -0
- package/dist/lib/node_modules/element-plus/es/locale/lang/en.js +182 -0
- package/dist/lib/node_modules/element-plus/es/utils/error.js +16 -0
- package/dist/lib/node_modules/element-plus/es/utils/types.js +9 -0
- package/dist/lib/node_modules/element-plus/es/utils/vue/props/runtime.js +42 -0
- package/dist/lib/src/components/Autosuggest/Autosuggest.vue.js +446 -0
- package/dist/lib/src/components/Autosuggest/Multisuggest.vue.js +17 -0
- package/dist/lib/src/components/Autosuggest/autosuggest-props.js +204 -0
- package/dist/lib/src/components/Autosuggest/core.js +56 -0
- package/dist/lib/src/components/Autosuggest/multisuggest-props.js +11 -0
- package/dist/lib/src/components/Autosuggest/option.vue.js +118 -0
- package/dist/lib/src/components/Autosuggest/select-dropdown.vue.js +62 -0
- package/dist/lib/src/components/Autosuggest/useOption.js +93 -0
- package/dist/lib/src/components/Autosuggest/useSelect.js +803 -0
- package/dist/lib/src/components/Inline/Inline.vue.js +125 -0
- package/dist/lib/src/components/Inline/index.js +4 -0
- package/dist/lib/src/components/InputNumber/InputNumber.vue.js +360 -0
- package/dist/lib/src/components/InputNumber/index.js +4 -0
- package/dist/lib/src/components/InputNumber/input-number.js +128 -0
- package/dist/lib/src/components/Loader/Loader.vue.js +59 -0
- package/dist/lib/src/components/Loader/index.js +4 -0
- package/dist/lib/src/components/Money/Money.vue.js +72 -0
- package/dist/lib/src/components/Money/index.js +4 -0
- package/dist/lib/src/components/Multisuggest/index.js +4 -0
- package/dist/lib/src/components/OptionsList/OptionsList.vue.js +28 -0
- package/dist/lib/src/components/OptionsList/index.js +4 -0
- package/dist/lib/src/components/OptionsListItem/OptionsListItem.vue.js +96 -0
- package/dist/lib/src/components/OptionsListItem/index.js +4 -0
- package/dist/lib/src/components/Percent/Percent.vue.js +73 -0
- package/dist/lib/src/components/Percent/index.js +4 -0
- package/dist/lib/src/components/Skeleton/Skeleton.vue.js +79 -0
- package/dist/lib/src/components/Skeleton/index.js +4 -0
- package/dist/lib/src/components/Step/Step.vue.js +206 -0
- package/dist/lib/src/components/Step/index.js +4 -0
- package/dist/lib/src/components/Steps/Steps.vue.js +15 -0
- package/dist/lib/src/components/Steps/index.js +4 -0
- package/dist/lib/src/components/Tip/Tip.vue.js +160 -0
- package/dist/lib/src/components/Tip/index.js +4 -0
- package/dist/lib/src/components/index.js +32 -0
- package/dist/lib/src/locale/i18nCreator.js +93 -0
- package/dist/lib/src/locale/lang/pt-br.js +21 -0
- package/dist/lib/src/main.js +17 -0
- package/dist/lib/src/mixins/floatFormatter.js +42 -0
- package/dist/lib/src/plugins/currency.js +69 -0
- package/dist/lib/src/utils/constants.js +6 -0
- package/dist/lib/src/utils/error.js +22 -0
- package/dist/lib/src/utils/i18n.js +4 -0
- package/dist/lib/src/utils/icon.js +9 -0
- package/dist/lib/src/utils/index.js +14 -0
- package/dist/lib/src/utils/runtime.js +50 -0
- package/dist/lib/src/utils/scroll.js +28 -0
- package/dist/lib/src/utils/strings.js +4 -0
- package/dist/lib/src/utils/types.js +12 -0
- package/dist/lib/src/utils/use-derived-namespace.js +15 -0
- package/dist/lib/src/utils/use-form-common-props.js +25 -0
- package/dist/lib/src/utils/use-form-item.js +61 -0
- package/dist/lib/src/utils/use-id.js +35 -0
- package/dist/lib/src/utils/use-input.js +31 -0
- package/package.json +19 -17
- package/dist/main.bundle.js +0 -2
- package/dist/main.bundle.js.LICENSE.txt +0 -15
- package/dist/main.css +0 -11
- package/src/locale/i18nCreator.js +0 -170
- package/src/locale/lang/en.js +0 -35
- package/src/locale/lang/pt-br.js +0 -35
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
/*! #__NO_SIDE_EFFECTS__ */
|
|
2
|
-
|
|
3
|
-
/*! Element Plus Icons Vue v2.3.1 */
|
|
4
|
-
|
|
5
|
-
/**
|
|
6
|
-
* @vue/runtime-dom v3.5.13
|
|
7
|
-
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
|
8
|
-
* @license MIT
|
|
9
|
-
**/
|
|
10
|
-
|
|
11
|
-
/**
|
|
12
|
-
* @vue/shared v3.5.13
|
|
13
|
-
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
|
14
|
-
* @license MIT
|
|
15
|
-
**/
|
package/dist/main.css
DELETED
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
.tp-autosuggest-clear-icon[data-v-6cc4b88f]{margin:6px 6px 1px 6px}[data-v-6cc4b88f] .el-select__input-wrapper{width:100%}[data-v-6cc4b88f] .el-select__input-wrapper .el-input .el-input__inner{width:100%}[data-v-6cc4b88f] .el-select__input-wrapper .el-input .el-input-group__prepend{padding:0}[data-v-6cc4b88f] .el-select__input-wrapper .el-input .el-input-group__prepend::after{display:none}[data-v-6cc4b88f] .el-select__input-wrapper .el-input .el-input__wrapper{box-shadow:none;border-top:1px solid var(--el-input-border-color);border-bottom:1px solid var(--el-input-border-color);padding-left:8px}[data-v-6cc4b88f] .el-select__input-wrapper .el-input .el-input__wrapper .el-select__placeholder{padding-left:16px !important}[data-v-6cc4b88f] .el-select__input-wrapper .el-input.is-disabled .el-input__wrapper,[data-v-6cc4b88f] .el-select__input-wrapper .el-input.is-disabled .el-tag{cursor:not-allowed}[data-v-6cc4b88f] .el-select__input-wrapper .el-input .el-input-group__append{padding:0}[data-v-6cc4b88f] .el-select__input-wrapper .el-input .el-input-group__append .el-input__close{width:40px}[data-v-6cc4b88f] .el-select__input-wrapper .el-input .el-input-group__append .el-input__close .tp-btn-close{margin:auto}[data-v-6cc4b88f] .el-select__input-wrapper .el-input .el-input-group__prepend,[data-v-6cc4b88f] .el-select__input-wrapper .el-input .el-input-group__append{background-color:var(--el-input-bg-color, var(--el-fill-color-blank))}[data-v-6cc4b88f] .el-select__input-wrapper .el-input .el-input-group__prepend,[data-v-6cc4b88f] .el-select__input-wrapper .el-input .el-input-group__append,[data-v-6cc4b88f] .el-select__input-wrapper .el-input .tp-autosuggest-clear-icon{cursor:pointer;color:#606266}.tp-autosuggest-vertical-divider[data-v-6cc4b88f]{height:33.59px;margin:0}.tp-autosuggest-input-prepend-icon[data-v-6cc4b88f]{display:flex;margin:0 10px -2px 12px}.tp-autosuggest-loading[data-v-6cc4b88f]{text-align:center;font-size:1.5em;padding:10px;margin:0}.tp-select-dropdown__list.el-select-dropdown__list li.el-select-dropdown__item[data-v-6cc4b88f]{line-height:1.5em;height:auto;padding:12px;position:relative;transition:100ms all linear}.tp-select-dropdown__list.el-select-dropdown__list li.el-select-dropdown__item.hover[data-v-6cc4b88f]{padding-left:20px}.tp-select-dropdown__list.el-select-dropdown__list li.el-select-dropdown__item.hover[data-v-6cc4b88f]::before{position:absolute;display:inline-block;width:4px;top:5px;bottom:5px;left:5px;background:#409eff;border-radius:2px}.tp-select-dropdown__list.el-select-dropdown__list li.el-select-dropdown__item.selected[data-v-6cc4b88f]{color:#606266}.tp-select-dropdown__list.el-select-dropdown__list li.el-select-dropdown__item.created a[data-v-6cc4b88f]{color:#409eff;font-weight:normal;border-bottom:1px solid #409eff;line-height:1.5em;display:inline-block}.tp-select-dropdown__list.el-select-dropdown__list li.el-select-dropdown__item small[data-v-6cc4b88f]{font-size:14px;color:color-mix(#FFFFFF, #909399, 40%)}
|
|
2
|
-
.tp-inline .el-input-group__append[data-v-08702a00],.tp-inline .el-input-group__append button.el-button[data-v-08702a00]{background-color:#409eff;border-color:#409eff;color:#fff;height:100%;border-radius:0}.tp-inline>span[data-v-08702a00]{display:inline-block;padding:12px 0}.tp-inline a[data-v-08702a00]{cursor:pointer;display:inline-block;color:#303133;border-bottom:1px dotted rgba(0,0,0,0)}.tp-inline a[data-v-08702a00]:focus,.tp-inline a[data-v-08702a00]:hover{border-bottom-color:#303133}
|
|
3
|
-
.tp-money input[data-v-7f0602d9]{text-align:right}
|
|
4
|
-
.tp-percent input[data-v-3a5253f7]{text-align:right}
|
|
5
|
-
.tp-options-list[data-v-c3fd7818]{list-style:none;display:flex;flex-wrap:wrap}.tp-options-list.space-between[data-v-c3fd7818]{justify-content:space-between}.tp-options-list.center[data-v-c3fd7818]{justify-content:center}.tp-options-list.disabled[data-v-c3fd7818]{pointer-events:none;cursor:default;filter:grayscale(100%)}@media screen and (width >= 992px){.tp-options-list div[data-v-c3fd7818],.tp-options-list li[data-v-c3fd7818]{margin-right:10px}}ul[data-v-c3fd7818]{padding-inline-start:0}
|
|
6
|
-
.tp-options-list-item[data-v-10c6c97a]{position:relative;height:84px;min-width:114px;border:1px solid #dde5ee;border-radius:6px;cursor:pointer;white-space:nowrap;display:flex;align-items:center;justify-content:center;background:#fff;transition:border-color 150ms ease-in-out;margin-right:15px;margin-top:15px}.tp-options-list-item.entrada[data-v-10c6c97a]:hover{border-color:#08a19e}.tp-options-list-item.entrada:hover .icon[data-v-10c6c97a]{color:#08a19e}.tp-options-list-item.entrada.active[data-v-10c6c97a]{border-color:#08a19e;background:rgba(8,161,158,.1)}.tp-options-list-item.entrada.active .icon[data-v-10c6c97a]{color:#08a19e}.tp-options-list-item.saida[data-v-10c6c97a]:hover{border-color:#ff7675}.tp-options-list-item.saida:hover .icon[data-v-10c6c97a]{color:#ff7675}.tp-options-list-item.saida.active[data-v-10c6c97a]{border-color:#ff7675;background:rgba(255,118,117,.1)}.tp-options-list-item.saida.active .icon[data-v-10c6c97a]{color:#ff7675}.tp-options-list-item.default[data-v-10c6c97a]:hover{border-color:#437cf9}.tp-options-list-item.default:hover .icon[data-v-10c6c97a]{color:#437cf9}.tp-options-list-item.default.active[data-v-10c6c97a]{border-color:#437cf9;background:rgba(67,124,249,.1)}.tp-options-list-item.default.active .icon[data-v-10c6c97a]{color:#437cf9}@media(width >= 1024px){.tp-options-list-item.entrada[data-v-10c6c97a],.tp-options-list-item.saida[data-v-10c6c97a]{max-width:165px}}.tp-options-list-item[data-v-10c6c97a]:focus{border:1px solid #437cf9}.tp-options-list-item .icon[data-v-10c6c97a]{color:#565b66;display:flex;align-items:center;transition:color 150ms ease-in-out;line-height:1.75em;min-width:120px}.tp-options-list-item .icon .text span[data-v-10c6c97a]{display:block}.tp-options-list-item .icon .options-icon[data-v-10c6c97a]{font-size:24px}.tp-options-list-item .icon.vertical[data-v-10c6c97a]{flex-direction:column}.tp-options-list-item .icon.vertical .text span[data-v-10c6c97a]{font-size:14px}.tp-options-list-item .icon.vertical .options-icon[data-v-10c6c97a]{font-size:24px}.tp-options-list-item .icon.horizontal[data-v-10c6c97a]{justify-content:space-around;min-width:130px}.tp-options-list-item .icon.horizontal .text[data-v-10c6c97a]{text-align:center;width:70px}.tp-options-list-item .icon.horizontal .text span[data-v-10c6c97a]:first-child{font-weight:700}.tp-options-list-item .icon.horizontal .options-icon[data-v-10c6c97a]{font-size:47px}.option-item-badge[data-v-10c6c97a]{background-color:#f56c6c;border:1px solid #fff;position:absolute;top:0;transform:translateY(-50%) translateX(100%);height:12px;width:12px;right:5px;border-radius:50%}
|
|
7
|
-
@keyframes expande-26caac20{0%{transform:scale(0);opacity:1}25%{transform:scale(1);opacity:1}40%{transform:scale(0.8);opacity:0}50%{transform:scale(0);opacity:0}100%{opacity:0;transform:scale(0)}}@keyframes expandeInterno-26caac20{0%,10%,100%{transform:scale(0)}50%{transform:scale(2)}}@keyframes residuo-26caac20{0%,30%{opacity:0}40%{opacity:.5}60%{opacity:1}70%{opacity:0}100%{opacity:0;transform:scale(1.2)}}@keyframes icone-26caac20{0%,15%{opacity:1;transform:scale(0.1)}35%{opacity:1;transform:scale(1)}85%{opacity:1;transform:scale(1.2)}100%{opacity:0;transform:scale(1.8)}}.tp-loader[data-v-26caac20]{position:fixed;inset:0;z-index:5000}.tp-loader>.overlay[data-v-26caac20]{position:absolute;width:100%;height:100%;inset:0;background-color:#fff;opacity:1}.tp-loader .wrapper[data-v-26caac20]{text-align:center;display:flex;align-items:center;justify-content:center;flex-direction:column;height:100%}.tp-loader .wrapper>svg[data-v-26caac20]{position:relative;z-index:98;margin-top:-10px}.tp-loader .wrapper .circulo[data-v-26caac20]{transform-origin:30% 32%}.tp-loader .wrapper #circulo[data-v-26caac20]{animation-name:expande-26caac20;animation-duration:2s;animation-direction:normal;animation-iteration-count:infinite;animation-timing-function:linear}.tp-loader .wrapper #circulo-interno[data-v-26caac20]{animation-name:expandeInterno-26caac20;animation-duration:2s;animation-direction:normal;animation-iteration-count:infinite;animation-timing-function:linear}.tp-loader .wrapper .icones[data-v-26caac20]{position:absolute;z-index:99;width:50px;height:50px;display:inline-flex;align-items:center;justify-content:center;flex-direction:row}.tp-loader .wrapper .icones i[data-v-26caac20]{font-size:3em;position:absolute;display:inline-block;width:100%;line-height:100%;opacity:0;transform-origin:center center;color:#409eff;animation-name:icone-26caac20;animation-duration:2s;animation-timing-function:ease-out;animation-iteration-count:1;animation-delay:calc(var(--iconsItem)*2s)}.tp-loader .wrapper .icones i[data-v-26caac20]:last-child{animation-iteration-count:infinite}.tp-loader .wrapper #bola .residuo[data-v-26caac20]{animation-name:residuo-26caac20;animation-duration:2s;animation-direction:reverse;animation-iteration-count:infinite;animation-timing-function:ease-in;transform:scale(0.1)}.tp-loader .wrapper #bola .residuo.top[data-v-26caac20]{transform-origin:30% 0}.tp-loader .wrapper #bola .residuo.top.right[data-v-26caac20]{transform-origin:45% 5%;transform:translate(40px, -40px) scale(0.1)}.tp-loader .wrapper #bola .residuo.top.left[data-v-26caac20]{transform-origin:15% 5%;transform:translate(-40px, -40px) scale(0.1)}.tp-loader .wrapper #bola .residuo.bottom[data-v-26caac20]{transform-origin:30% 70%}.tp-loader .wrapper #bola .residuo.bottom.right[data-v-26caac20]{transform-origin:45% 65%;transform:translate(40px, 40px) scale(0.1)}.tp-loader .wrapper #bola .residuo.bottom.left[data-v-26caac20]{transform-origin:15% 65%;transform:translate(-40px, 40px) scale(0.1)}.tp-loader .wrapper #bola .residuo.middle.right[data-v-26caac20]{transform-origin:65% 35%}.tp-loader .wrapper #bola .residuo.middle.left[data-v-26caac20]{transform-origin:0 35%}.tp-loader .wrapper .texto[data-v-26caac20]{position:absolute;display:inline-flex;z-index:5001;color:#303133;margin-top:100px;font-size:1.5em;font-weight:bold}
|
|
8
|
-
@keyframes skeleton-7573558d{0%{background-position:-200px 0}100%{background-position:calc(200px + 100%) 0}}.tp-skeleton[data-v-7573558d]{display:block;height:100%;--baseColor: #ebeef2}.tp-skeleton span[data-v-7573558d]{background-color:var(--baseColor);background-image:linear-gradient(90deg, var(--baseColor), color-mix(#FFFFFF, #E4E7ED, 70%), var(--baseColor));background-size:200px 100%;background-repeat:no-repeat;background-position:-200px 0;border-radius:4px;display:inline-block;line-height:20px;margin-bottom:3px;width:100%;min-height:15px;animation-name:skeleton-7573558d;animation-duration:calc(var(--duration)*1s);animation-timing-function:ease-in-out;animation-iteration-count:infinite}.tp-skeleton span.circle[data-v-7573558d]{width:inherit;border-radius:50%}
|
|
9
|
-
.icone[data-v-49302764]{align-self:start}.far.fa-lightbulb-on[data-v-49302764]{font-size:20px}.grid-content[data-v-49302764]{flex-wrap:wrap;border-radius:4px;background-color:rgba(76,135,251,.1);border:solid 1px rgba(76,135,251,.2);padding:1rem;font-size:14px;line-height:24px;color:#586d93}.info-text[data-v-49302764]{font-size:12px;font-stretch:normal;font-style:normal;line-height:1.33;letter-spacing:normal;text-align:left}.tp-tip-error[data-v-49302764]{background:rgba(245,108,108,.1019607843) 0% 0% no-repeat padding-box;border:1px solid #ff6077}.tp-tip-error[data-v-49302764] strong,.tp-tip-error[data-v-49302764] b,.tp-tip-error[data-v-49302764] em{color:#ff425f}.tp-tip-warning[data-v-49302764]{background:#fff9ea 0% 0% no-repeat padding-box;border:1px solid #ffc437}.tp-tip-warning[data-v-49302764] strong,.tp-tip-warning[data-v-49302764] b,.tp-tip-warning[data-v-49302764] em{color:#ffc437}.tp-tip-success[data-v-49302764]{background:#f3fcfc 0% 0% no-repeat padding-box;border:1px solid #08a19e}.tp-tip-success[data-v-49302764] strong,.tp-tip-success[data-v-49302764] b,.tp-tip-success[data-v-49302764] em{color:#08a19e}.tp-close-button[data-v-49302764]{cursor:pointer}.tp-title[data-v-49302764]{font-size:16px}.tp-text[data-v-49302764]{height:auto;transition:.4s opacity ease-out}.tp-vanish[data-v-49302764]{position:absolute;max-height:0;transform:scale(0);opacity:0;transition:0s opacity linear}
|
|
10
|
-
.tp-autosuggest-clear-icon[data-v-0bc4bdbb]{margin:6px 6px 1px 6px}[data-v-0bc4bdbb] .el-select__input-wrapper{width:100%}[data-v-0bc4bdbb] .el-select__input-wrapper .el-input .el-input__inner{width:100%}[data-v-0bc4bdbb] .el-select__input-wrapper .el-input .el-input-group__prepend{padding:0}[data-v-0bc4bdbb] .el-select__input-wrapper .el-input .el-input-group__prepend::after{display:none}[data-v-0bc4bdbb] .el-select__input-wrapper .el-input .el-input__wrapper{box-shadow:none;border-top:1px solid var(--el-input-border-color);border-bottom:1px solid var(--el-input-border-color);padding-left:8px}[data-v-0bc4bdbb] .el-select__input-wrapper .el-input .el-input__wrapper .el-select__placeholder{padding-left:16px !important}[data-v-0bc4bdbb] .el-select__input-wrapper .el-input.is-disabled .el-input__wrapper,[data-v-0bc4bdbb] .el-select__input-wrapper .el-input.is-disabled .el-tag{cursor:not-allowed}[data-v-0bc4bdbb] .el-select__input-wrapper .el-input .el-input-group__append{padding:0}[data-v-0bc4bdbb] .el-select__input-wrapper .el-input .el-input-group__append .el-input__close{width:40px}[data-v-0bc4bdbb] .el-select__input-wrapper .el-input .el-input-group__append .el-input__close .tp-btn-close{margin:auto}[data-v-0bc4bdbb] .el-select__input-wrapper .el-input .el-input-group__prepend,[data-v-0bc4bdbb] .el-select__input-wrapper .el-input .el-input-group__append{background-color:var(--el-input-bg-color, var(--el-fill-color-blank))}[data-v-0bc4bdbb] .el-select__input-wrapper .el-input .el-input-group__prepend,[data-v-0bc4bdbb] .el-select__input-wrapper .el-input .el-input-group__append,[data-v-0bc4bdbb] .el-select__input-wrapper .el-input .tp-autosuggest-clear-icon{cursor:pointer;color:#606266}.tp-autosuggest-vertical-divider[data-v-0bc4bdbb]{height:33.59px;margin:0}.tp-autosuggest-input-prepend-icon[data-v-0bc4bdbb]{display:flex;margin:0 10px -2px 12px}.tp-autosuggest-loading[data-v-0bc4bdbb]{text-align:center;font-size:1.5em;padding:10px;margin:0}.tp-select-dropdown__list.el-select-dropdown__list li.el-select-dropdown__item[data-v-0bc4bdbb]{line-height:1.5em;height:auto;padding:12px;position:relative;transition:100ms all linear}.tp-select-dropdown__list.el-select-dropdown__list li.el-select-dropdown__item.hover[data-v-0bc4bdbb]{padding-left:20px}.tp-select-dropdown__list.el-select-dropdown__list li.el-select-dropdown__item.hover[data-v-0bc4bdbb]::before{position:absolute;display:inline-block;width:4px;top:5px;bottom:5px;left:5px;background:#409eff;border-radius:2px}.tp-select-dropdown__list.el-select-dropdown__list li.el-select-dropdown__item.selected[data-v-0bc4bdbb]{color:#606266}.tp-select-dropdown__list.el-select-dropdown__list li.el-select-dropdown__item.created a[data-v-0bc4bdbb]{color:#409eff;font-weight:normal;border-bottom:1px solid #409eff;line-height:1.5em;display:inline-block}.tp-select-dropdown__list.el-select-dropdown__list li.el-select-dropdown__item small[data-v-0bc4bdbb]{font-size:14px;color:color-mix(#FFFFFF, #909399, 40%)}
|
|
11
|
-
.el-step__head.is-process[data-v-ec358bd8]{color:#2d6eda;border-color:#2d6eda}
|
|
@@ -1,170 +0,0 @@
|
|
|
1
|
-
import { createI18n } from 'vue-i18n'
|
|
2
|
-
import { reactive } from 'vue'
|
|
3
|
-
|
|
4
|
-
let i18n
|
|
5
|
-
|
|
6
|
-
const loadedLanguages = []
|
|
7
|
-
|
|
8
|
-
const i18nHelper = {
|
|
9
|
-
global: false,
|
|
10
|
-
importLangFile: false,
|
|
11
|
-
/**
|
|
12
|
-
* Eventos que podem ser observados com watch
|
|
13
|
-
*/
|
|
14
|
-
hooks: reactive({
|
|
15
|
-
onLanguageChanged: ''
|
|
16
|
-
})
|
|
17
|
-
}
|
|
18
|
-
|
|
19
|
-
/**
|
|
20
|
-
* Asynchronously imports and processes custom language files for the i18n instance.
|
|
21
|
-
* If the importLangFile function is provided in the i18nHelper options, it will be used to import the custom language file.
|
|
22
|
-
* If the imported file does not have a default export, it will be wrapped in a default export.
|
|
23
|
-
* @param {String} filename - The name of the language file to be imported.
|
|
24
|
-
* @returns {Promise<Object>} - A promise that resolves to an object containing the custom language messages.
|
|
25
|
-
* @throws {Error} - Throws an error if the importLangFile function is not provided or if it does not return an object.
|
|
26
|
-
*/
|
|
27
|
-
const importLangFiles = async function (filename) {
|
|
28
|
-
let langsCustom = {}
|
|
29
|
-
|
|
30
|
-
if (i18nHelper.importLangFile && typeof i18nHelper.importLangFile === 'function') {
|
|
31
|
-
langsCustom = await i18nHelper.importLangFile(filename)
|
|
32
|
-
if (!(Object.keys(langsCustom).length === 1 && langsCustom.default)) {
|
|
33
|
-
langsCustom.default = langsCustom
|
|
34
|
-
}
|
|
35
|
-
}
|
|
36
|
-
|
|
37
|
-
return langsCustom
|
|
38
|
-
}
|
|
39
|
-
|
|
40
|
-
/**
|
|
41
|
-
* Essa função deve ser impementada no i18nHelper para executar ações após trocar a linguagem,
|
|
42
|
-
* como salvar nos cookies ou session a linguagem atual
|
|
43
|
-
*
|
|
44
|
-
* @param {String} locale - The locale string representing the language to be set.
|
|
45
|
-
* @throws {Error} Throws an error if the onLanguageSet function is not implemented.
|
|
46
|
-
* @returns {void}
|
|
47
|
-
*/
|
|
48
|
-
i18nHelper.onLanguageSet = function (locale) {
|
|
49
|
-
throw new Error('Implemente a função onLanguageSet na definição do plugin i18n')
|
|
50
|
-
}
|
|
51
|
-
|
|
52
|
-
/**
|
|
53
|
-
* Sets the current language and updates the i18n instance accordingly.
|
|
54
|
-
* Triggers the onLanguageChanged hook and calls the onLanguageSet function.
|
|
55
|
-
* @param {String} locale - The locale string representing the language to be set. EX: 'pt-br', 'en'
|
|
56
|
-
* @returns {String} - The updated locale string.
|
|
57
|
-
*/
|
|
58
|
-
i18nHelper.setI18nLanguage = function (locale) {
|
|
59
|
-
if (i18n.mode === 'legacy') {
|
|
60
|
-
i18n.global.locale = locale
|
|
61
|
-
} else {
|
|
62
|
-
i18n.global.locale.value = locale
|
|
63
|
-
}
|
|
64
|
-
|
|
65
|
-
i18nHelper.hooks.onLanguageChanged = locale
|
|
66
|
-
document.querySelector('html').setAttribute('lang', locale)
|
|
67
|
-
i18nHelper.onLanguageSet(locale)
|
|
68
|
-
return locale
|
|
69
|
-
}
|
|
70
|
-
|
|
71
|
-
/**
|
|
72
|
-
* Asynchronously loads and sets the current language for the i18n instance.
|
|
73
|
-
* If the language is already loaded, it returns immediately.
|
|
74
|
-
* @param {String} locale - The locale string representing the language to be set. EX: 'pt-br', 'en'
|
|
75
|
-
* @returns {Promise}
|
|
76
|
-
*/
|
|
77
|
-
i18nHelper.loadLanguageAsync = async function (locale) {
|
|
78
|
-
// If the language was already loaded
|
|
79
|
-
if (loadedLanguages.includes(locale)) {
|
|
80
|
-
return locale
|
|
81
|
-
}
|
|
82
|
-
|
|
83
|
-
// load locale messages with dynamic import
|
|
84
|
-
const messages = await importLangFiles(locale)
|
|
85
|
-
// set locale and locale message
|
|
86
|
-
i18n.global.setLocaleMessage(locale, messages.default)
|
|
87
|
-
loadedLanguages.push(locale)
|
|
88
|
-
return locale
|
|
89
|
-
}
|
|
90
|
-
|
|
91
|
-
/**
|
|
92
|
-
* Asynchronously sets up and initializes the i18n instance with the provided options.
|
|
93
|
-
* If the i18n instance is already created, it returns the existing instance.
|
|
94
|
-
*
|
|
95
|
-
* @param {Object} [options={}] - An optional object containing configuration options for the i18n instance.
|
|
96
|
-
* @param {String} [options.locale='pt-br'] - The default locale for the i18n instance.
|
|
97
|
-
* @param {Object} [options.i18nOptions] - Additional options to be passed to the createI18n function.
|
|
98
|
-
*
|
|
99
|
-
* @returns {Promise<I18n>} - A promise that resolves to the initialized i18n instance.
|
|
100
|
-
*/
|
|
101
|
-
async function setupI18n (options = {}) {
|
|
102
|
-
if (!i18n) {
|
|
103
|
-
const locale = options.locale || 'pt-br'
|
|
104
|
-
|
|
105
|
-
i18n = createI18n({
|
|
106
|
-
legacy: false,
|
|
107
|
-
locale,
|
|
108
|
-
missing: (locale, key) => {
|
|
109
|
-
console.warn(`translation missing: locale=${locale}, key=${key}`)
|
|
110
|
-
},
|
|
111
|
-
...options
|
|
112
|
-
})
|
|
113
|
-
|
|
114
|
-
await i18nHelper.loadLanguageAsync(locale)
|
|
115
|
-
i18nHelper.setI18nLanguage(locale)
|
|
116
|
-
}
|
|
117
|
-
return i18n
|
|
118
|
-
}
|
|
119
|
-
|
|
120
|
-
/**
|
|
121
|
-
* A plugin for Vue.js that initializes and configures the i18n instance with customizable options.
|
|
122
|
-
* It also provides a helper object for managing language settings and loading language files asynchronously.
|
|
123
|
-
*
|
|
124
|
-
* @param {Object} options - An object containing configuration options for the plugin.
|
|
125
|
-
* @param {Object} options.i18nHelper - An object containing custom functions for managing language settings.
|
|
126
|
-
* @param {Function} [options.i18nHelper.importLangFile] - A function for asynchronously importing custom language files.
|
|
127
|
-
* @param {Function} [options.i18nHelper.onLanguageSet] - A function to be called after setting the language.
|
|
128
|
-
* @param {Object} [options.i18nOptions] - Additional options to be passed to the createI18n function.
|
|
129
|
-
* @param {Function} [postInstall] - A function to be called after the plugin is installed.
|
|
130
|
-
*
|
|
131
|
-
* @returns {Object} - An object with an install function for Vue.js plugins.
|
|
132
|
-
*/
|
|
133
|
-
export default async (options = {}, postInstall = (app, options, i18nHelper) => {}) => {
|
|
134
|
-
// Validating the options
|
|
135
|
-
const keys = Object.keys(options).filter(key => !['i18nHelper', 'i18nOptions'].includes(key))
|
|
136
|
-
if (keys.length) {
|
|
137
|
-
throw new Error(`Invalid options: ${keys.join(', ')}, expected { i18nOptions, i18nHelper }`)
|
|
138
|
-
}
|
|
139
|
-
|
|
140
|
-
// Overriding the importLangFile function if provided in options
|
|
141
|
-
if (options.i18nHelper && typeof options.i18nHelper.importLangFile === 'function') {
|
|
142
|
-
i18nHelper.importLangFile = options.i18nHelper.importLangFile
|
|
143
|
-
}
|
|
144
|
-
|
|
145
|
-
// Overriding the onLanguageSet function if provided in options
|
|
146
|
-
if (options.i18nHelper && typeof options.i18nHelper.onLanguageSet === 'function') {
|
|
147
|
-
i18nHelper.onLanguageSet = options.i18nHelper.onLanguageSet
|
|
148
|
-
}
|
|
149
|
-
|
|
150
|
-
let i18nOptions = {}
|
|
151
|
-
// Using provided i18nOptions if available
|
|
152
|
-
if (options.i18nOptions && typeof options.i18nOptions === 'object') {
|
|
153
|
-
i18nOptions = options.i18nOptions
|
|
154
|
-
}
|
|
155
|
-
|
|
156
|
-
// Initializing the i18n instance with the provided options
|
|
157
|
-
i18n = await setupI18n(i18nOptions)
|
|
158
|
-
|
|
159
|
-
i18nHelper.global = i18n.global
|
|
160
|
-
|
|
161
|
-
return {
|
|
162
|
-
install: (app, opts) => {
|
|
163
|
-
// Installing the original i18n instance
|
|
164
|
-
i18n.install(app, i18nOptions)
|
|
165
|
-
if (typeof postInstall === 'function') {
|
|
166
|
-
postInstall(app, options, i18nHelper)
|
|
167
|
-
}
|
|
168
|
-
}
|
|
169
|
-
}
|
|
170
|
-
}
|
package/src/locale/lang/en.js
DELETED
|
@@ -1,35 +0,0 @@
|
|
|
1
|
-
import enLocale from 'element-plus/es/locale/lang/en'
|
|
2
|
-
|
|
3
|
-
export default {
|
|
4
|
-
...enLocale,
|
|
5
|
-
lingua: 'English',
|
|
6
|
-
|
|
7
|
-
tp: {
|
|
8
|
-
money: {
|
|
9
|
-
currency: '$'
|
|
10
|
-
}
|
|
11
|
-
},
|
|
12
|
-
|
|
13
|
-
locale: {
|
|
14
|
-
// locale name equals filename reference
|
|
15
|
-
name: 'en',
|
|
16
|
-
|
|
17
|
-
// IANA.ORG convetions according to W3C
|
|
18
|
-
prefix: 'en-US',
|
|
19
|
-
|
|
20
|
-
number: {
|
|
21
|
-
decimal: '.',
|
|
22
|
-
thousands: '',
|
|
23
|
-
prefix: '',
|
|
24
|
-
suffix: '',
|
|
25
|
-
precision: 2
|
|
26
|
-
},
|
|
27
|
-
|
|
28
|
-
date: {
|
|
29
|
-
format: 'YYYY-MM-DD'
|
|
30
|
-
}
|
|
31
|
-
},
|
|
32
|
-
common: {
|
|
33
|
-
placeholder: 'placeholder'
|
|
34
|
-
}
|
|
35
|
-
}
|
package/src/locale/lang/pt-br.js
DELETED
|
@@ -1,35 +0,0 @@
|
|
|
1
|
-
import ptbrLocale from 'element-plus/es/locale/lang/pt-br'
|
|
2
|
-
|
|
3
|
-
export default {
|
|
4
|
-
...ptbrLocale,
|
|
5
|
-
lingua: 'Português',
|
|
6
|
-
|
|
7
|
-
tp: {
|
|
8
|
-
money: {
|
|
9
|
-
currency: 'R$'
|
|
10
|
-
}
|
|
11
|
-
},
|
|
12
|
-
|
|
13
|
-
locale: {
|
|
14
|
-
// locale name equals filename reference
|
|
15
|
-
name: 'pt-br',
|
|
16
|
-
|
|
17
|
-
// IANA.ORG convetions according to W3C
|
|
18
|
-
prefix: 'pt-BR',
|
|
19
|
-
|
|
20
|
-
number: {
|
|
21
|
-
decimal: ',',
|
|
22
|
-
thousands: '.',
|
|
23
|
-
prefix: '',
|
|
24
|
-
suffix: '',
|
|
25
|
-
precision: 2
|
|
26
|
-
},
|
|
27
|
-
|
|
28
|
-
date: {
|
|
29
|
-
format: 'DD/MM/YYYY'
|
|
30
|
-
}
|
|
31
|
-
},
|
|
32
|
-
common: {
|
|
33
|
-
placeholder: 'placeholder'
|
|
34
|
-
}
|
|
35
|
-
}
|