@gct-paas/design-web 0.1.4-dev.11 → 0.1.4-dev.12

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 (39) hide show
  1. package/dist/index.esm.min.js +775 -0
  2. package/dist/index.min.css +2 -1
  3. package/es/_virtual/_plugin-vue_export-helper.mjs +7 -8
  4. package/es/components/I18nSelect/index.mjs +7 -0
  5. package/es/components/I18nSelect/src/i18n-modal.vue.mjs +5 -151
  6. package/es/components/I18nSelect/src/i18n-modal.vue_vue_type_script_setup_true_lang.mjs +128 -0
  7. package/es/components/I18nSelect/src/i18n-select-btn.vue.mjs +7 -7
  8. package/es/components/I18nSelect/src/i18n-select-btn.vue_vue_type_script_setup_true_name_i18n-select-btn_lang.mjs +116 -0
  9. package/es/components/I18nSelect/src/i18n-select-container.vue.mjs +7 -7
  10. package/es/components/I18nSelect/src/i18n-select-container.vue_vue_type_script_setup_true_name_i18n-select-container_lang.mjs +217 -0
  11. package/es/components/I18nSelect/src/i18n-select-input-form.vue.mjs +5 -57
  12. package/es/components/I18nSelect/src/i18n-select-input-form.vue_vue_type_script_setup_true_name_i18n-select-input-form_lang.mjs +56 -0
  13. package/es/components/I18nSelect/src/i18n-select-input.vue.mjs +7 -7
  14. package/es/components/I18nSelect/src/i18n-select-input.vue_vue_type_script_setup_true_name_i18n-select-input_lang.mjs +125 -0
  15. package/es/components/I18nSelect/src/i18n-select-modal.vue.mjs +5 -21
  16. package/es/components/I18nSelect/src/i18n-select-modal.vue_vue_type_script_setup_true_lang.mjs +19 -0
  17. package/es/components/I18nSelect/src/i18n-select-textarea-form.vue.mjs +5 -57
  18. package/es/components/I18nSelect/src/i18n-select-textarea-form.vue_vue_type_script_setup_true_name_i18n-select-input-form_lang.mjs +56 -0
  19. package/es/components/I18nSelect/src/i18n-select-textarea.vue.mjs +7 -7
  20. package/es/components/I18nSelect/src/i18n-select-textarea.vue_vue_type_script_setup_true_name_i18n-select-input_lang.mjs +86 -0
  21. package/es/components/I18nSelect/src/useI18nSelect.mjs +43 -48
  22. package/es/components/index.mjs +8 -0
  23. package/es/index.mjs +14 -15
  24. package/package.json +8 -8
  25. package/dist/index.esm.min.mjs +0 -836
  26. package/dist/index.min.cjs +0 -1
  27. package/dist/index.system.min.js +0 -1
  28. package/es/components/I18nSelect/src/i18n-modal.vue2.mjs +0 -5
  29. package/es/components/I18nSelect/src/i18n-select-btn.vue2.mjs +0 -138
  30. package/es/components/I18nSelect/src/i18n-select-container.vue2.mjs +0 -250
  31. package/es/components/I18nSelect/src/i18n-select-input-form.vue2.mjs +0 -5
  32. package/es/components/I18nSelect/src/i18n-select-input.vue2.mjs +0 -129
  33. package/es/components/I18nSelect/src/i18n-select-modal.vue2.mjs +0 -5
  34. package/es/components/I18nSelect/src/i18n-select-textarea-form.vue2.mjs +0 -5
  35. package/es/components/I18nSelect/src/i18n-select-textarea.vue2.mjs +0 -93
  36. /package/es/components/I18nSelect/src/{i18n-select-btn.css → i18n-select-btn.vue_vue_type_style_index_0_scoped_dc8ffb2c_lang.css} +0 -0
  37. /package/es/components/I18nSelect/src/{i18n-select-container.css → i18n-select-container.vue_vue_type_style_index_0_scoped_0160ed5e_lang.css} +0 -0
  38. /package/es/components/I18nSelect/src/{i18n-select-input.css → i18n-select-input.vue_vue_type_style_index_0_scoped_412e1309_lang.css} +0 -0
  39. /package/es/components/I18nSelect/src/{i18n-select-textarea.css → i18n-select-textarea.vue_vue_type_style_index_0_scoped_cd95c416_lang.css} +0 -0
@@ -1,93 +0,0 @@
1
- import { defineComponent, computed, ref, resolveComponent, openBlock, createElementBlock, createVNode, mergeProps } from 'vue';
2
- import I18nSelectBtn from './i18n-select-btn.vue.mjs';
3
- import { isEmpty, omit } from 'lodash-es';
4
-
5
- const _hoisted_1 = { class: "inline-block w100% relative" };
6
- const _sfc_main = /* @__PURE__ */ defineComponent({
7
- __name: "i18n-select-textarea",
8
- props: {
9
- attr: {},
10
- inputExtraProps: {},
11
- i18nConfig: {},
12
- i18nText: {},
13
- placeholderText: {},
14
- rows: {},
15
- style: {}
16
- },
17
- emits: [
18
- "update:i18nText",
19
- "update:i18nConfig",
20
- "on-i18n-select",
21
- "clickOutside",
22
- "focus"
23
- ],
24
- setup(__props, { emit: __emit }) {
25
- const props = __props;
26
- const emit = __emit;
27
- const inputValue = computed({
28
- get() {
29
- return props.i18nText ?? "";
30
- },
31
- set(value) {
32
- emit("update:i18nText", value);
33
- }
34
- });
35
- const i18nConfigState = computed(() => {
36
- if (isEmpty(props.i18nConfig)) {
37
- return {};
38
- }
39
- if (typeof props.i18nConfig === "string") {
40
- return JSON.parse(props.i18nConfig) ?? {};
41
- }
42
- return props.i18nConfig ?? {};
43
- });
44
- const i18nValue = computed(() => {
45
- return i18nConfigState.value?.[props.attr];
46
- });
47
- const handleSelectI18n = (params) => {
48
- if (params) {
49
- if (isEmpty(inputValue.value)) {
50
- emit("update:i18nText", params.i18nTitle);
51
- }
52
- emit(
53
- "update:i18nConfig",
54
- JSON.stringify(
55
- isEmpty(params) ? omit(i18nConfigState.value, props.attr) : { ...i18nConfigState.value, [props.attr]: params.i18nKey }
56
- )
57
- );
58
- emit("on-i18n-select", params);
59
- }
60
- };
61
- const inputRef = ref();
62
- const handleFocus = () => {
63
- emit("focus", inputRef.value);
64
- };
65
- return (_ctx, _cache) => {
66
- const _component_a_textarea = resolveComponent("a-textarea");
67
- return openBlock(), createElementBlock("div", _hoisted_1, [
68
- createVNode(_component_a_textarea, mergeProps({
69
- ref_key: "inputRef",
70
- ref: inputRef,
71
- value: inputValue.value,
72
- "onUpdate:value": _cache[0] || (_cache[0] = ($event) => inputValue.value = $event),
73
- placeholder: __props.placeholderText
74
- }, __props.inputExtraProps, {
75
- style: {
76
- resize: "none",
77
- ...__props.style
78
- },
79
- onFocus: handleFocus
80
- }), null, 16, ["value", "placeholder", "style"]),
81
- createVNode(I18nSelectBtn, {
82
- "i18n-value": i18nValue.value,
83
- "simple-btn": true,
84
- type: "text",
85
- onOnSelectI18n: handleSelectI18n,
86
- onClosed: _cache[1] || (_cache[1] = ($event) => emit("clickOutside"))
87
- }, null, 8, ["i18n-value"])
88
- ]);
89
- };
90
- }
91
- });
92
-
93
- export { _sfc_main as default };