@gct-paas/core-web 0.1.6-dev.2 → 0.1.6-dev.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.
- package/dist/{components-pQ55MIpq.js → components-4-8OfvJi.js} +1 -1
- package/dist/icon-next-picker-B_S_yInJ.js +1 -0
- package/dist/index.min.css +1 -1
- package/dist/loader.esm.min.js +1 -1
- package/dist/{template-6yiNrzBh.js → template-Cf-wq8-9.js} +1 -1
- package/es/components/I18nSelect/src/i18n-select-btn.vue.mjs +2 -2
- package/es/components/I18nSelect/src/i18n-select-btn.vue_vue_type_script_setup_true_name_i18n-select-btn_lang.mjs +4 -1
- package/es/components/I18nSelect/src/{i18n-select-btn.vue_vue_type_style_index_0_scoped_b86f4068_lang.css → i18n-select-btn.vue_vue_type_style_index_0_scoped_ab917ea8_lang.css} +18 -13
- package/es/components/icon-next-picker/icon-next-picker.vue_vue_type_script_setup_true_name_IconNextPicker_lang.mjs +6 -3
- package/es/components/icon-next-picker/icon-next-picker.vue_vue_type_style_index_0_lang.css +3 -0
- package/es/modules/gct-table/editor/gct-table-date/gct-table-date.mjs +1 -1
- package/es/modules/gct-table/editor/gct-table-text/gct-table-text.mjs +1 -1
- package/package.json +7 -7
- package/dist/icon-next-picker-CvCosnvS.js +0 -1
- /package/es/modules/gct-table/editor/{gct-table-text/gct-table-text.css → gct-table-date/gct-table-date.css} +0 -0
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import _plugin_vue_export_helper_default from "../../../_virtual/_plugin-vue_export-helper.mjs";
|
|
2
2
|
import i18n_select_btn_vue_vue_type_script_setup_true_name_i18n_select_btn_lang_default from "./i18n-select-btn.vue_vue_type_script_setup_true_name_i18n-select-btn_lang.mjs";
|
|
3
|
-
import './i18n-select-btn.
|
|
3
|
+
import './i18n-select-btn.vue_vue_type_style_index_0_scoped_ab917ea8_lang.css';/* empty css */
|
|
4
4
|
//#region src/components/I18nSelect/src/i18n-select-btn.vue
|
|
5
|
-
var i18n_select_btn_default = /* @__PURE__ */ _plugin_vue_export_helper_default(i18n_select_btn_vue_vue_type_script_setup_true_name_i18n_select_btn_lang_default, [["__scopeId", "data-v-
|
|
5
|
+
var i18n_select_btn_default = /* @__PURE__ */ _plugin_vue_export_helper_default(i18n_select_btn_vue_vue_type_script_setup_true_name_i18n_select_btn_lang_default, [["__scopeId", "data-v-ab917ea8"]]);
|
|
6
6
|
//#endregion
|
|
7
7
|
export { i18n_select_btn_default as default };
|
|
@@ -94,7 +94,10 @@ var i18n_select_btn_vue_vue_type_script_setup_true_name_i18n_select_btn_lang_def
|
|
|
94
94
|
])]),
|
|
95
95
|
_: 1
|
|
96
96
|
})) : (openBlock(), createBlock(_component_a_button, mergeProps({ key: 2 }, __props.buttonExtraProps, {
|
|
97
|
-
class: {
|
|
97
|
+
class: {
|
|
98
|
+
"is-highlight": isHighlight.value,
|
|
99
|
+
"i18n-select-btn__a-btn": true
|
|
100
|
+
},
|
|
98
101
|
style: {
|
|
99
102
|
"--btn-width": __props.btnWidth,
|
|
100
103
|
"--btn-height": __props.btnHeight
|
|
@@ -1,47 +1,52 @@
|
|
|
1
|
-
.ant-btn[data-v-
|
|
1
|
+
.ant-btn[data-v-ab917ea8] {
|
|
2
2
|
background-color: #fff !important;
|
|
3
3
|
}
|
|
4
|
-
.ant-btn.ant-btn-icon-only[data-v-
|
|
4
|
+
.ant-btn.ant-btn-icon-only[data-v-ab917ea8] {
|
|
5
5
|
width: var(--btn-width, 32px);
|
|
6
6
|
height: var(--btn-height, 32px);
|
|
7
7
|
}
|
|
8
|
-
.ant-btn.ant-btn-icon-only.ant-btn-sm[data-v-
|
|
8
|
+
.ant-btn.ant-btn-icon-only.ant-btn-sm[data-v-ab917ea8] {
|
|
9
9
|
width: 28px;
|
|
10
10
|
height: 28px;
|
|
11
11
|
padding: 0 6px;
|
|
12
12
|
}
|
|
13
|
-
.ant-btn:hover .i18n-icon[data-v-
|
|
13
|
+
.ant-btn:hover .i18n-icon[data-v-ab917ea8] {
|
|
14
14
|
transition: all 0.3s cubic-bezier(0.645, 0.045, 0.355, 1);
|
|
15
15
|
color: var(--ant-primary-color);
|
|
16
16
|
}
|
|
17
|
-
.ant-btn.is-highlight[data-v-
|
|
17
|
+
.ant-btn.is-highlight[data-v-ab917ea8] {
|
|
18
18
|
color: var(--ant-primary-color);
|
|
19
19
|
border-color: var(--ant-primary-color);
|
|
20
20
|
}
|
|
21
|
-
.ant-btn.is-highlight .i18n-icon[data-v-
|
|
21
|
+
.ant-btn.is-highlight .i18n-icon[data-v-ab917ea8] {
|
|
22
22
|
color: var(--ant-primary-color);
|
|
23
23
|
}
|
|
24
|
-
.i18n-
|
|
24
|
+
.i18n-select-btn__a-btn[data-v-ab917ea8] {
|
|
25
|
+
display: inline-flex;
|
|
26
|
+
justify-content: center;
|
|
27
|
+
align-items: center;
|
|
28
|
+
}
|
|
29
|
+
.i18n-icon[data-v-ab917ea8] {
|
|
25
30
|
color: #7f8695;
|
|
26
31
|
display: flex !important;
|
|
27
32
|
}
|
|
28
|
-
.simple-btn[data-v-
|
|
33
|
+
.simple-btn[data-v-ab917ea8]:hover {
|
|
29
34
|
color: var(--ant-primary-color);
|
|
30
35
|
}
|
|
31
|
-
.simple-btn.is-highlight[data-v-
|
|
36
|
+
.simple-btn.is-highlight[data-v-ab917ea8] {
|
|
32
37
|
color: var(--ant-primary-color);
|
|
33
38
|
}
|
|
34
|
-
.i18n-tooltip-title[data-v-
|
|
39
|
+
.i18n-tooltip-title[data-v-ab917ea8] {
|
|
35
40
|
color: #303133;
|
|
36
41
|
font-size: 16px;
|
|
37
42
|
line-height: 1;
|
|
38
43
|
margin-bottom: 12px;
|
|
39
44
|
}
|
|
40
|
-
.i18n-tooltip-item[data-v-
|
|
45
|
+
.i18n-tooltip-item[data-v-ab917ea8] {
|
|
41
46
|
color: #606266;
|
|
42
47
|
font-size: 14px;
|
|
43
48
|
}
|
|
44
|
-
.custom-i18n-btn[data-v-
|
|
49
|
+
.custom-i18n-btn[data-v-ab917ea8] {
|
|
45
50
|
vertical-align: middle;
|
|
46
51
|
background: #fff;
|
|
47
52
|
color: #303133;
|
|
@@ -52,7 +57,7 @@
|
|
|
52
57
|
align-items: center;
|
|
53
58
|
padding: 0;
|
|
54
59
|
}
|
|
55
|
-
.custom-i18n-btn.reg-i18n[data-v-
|
|
60
|
+
.custom-i18n-btn.reg-i18n[data-v-ab917ea8] {
|
|
56
61
|
position: absolute;
|
|
57
62
|
right: -32px;
|
|
58
63
|
bottom: 0;
|
|
@@ -237,6 +237,7 @@ var icon_next_picker_vue_vue_type_script_setup_true_name_IconNextPicker_lang_def
|
|
|
237
237
|
return (_ctx, _cache) => {
|
|
238
238
|
const _component_a_input = resolveComponent("a-input");
|
|
239
239
|
const _component_a_tree = resolveComponent("a-tree");
|
|
240
|
+
const _component_OverlayScrollbarsComponent = resolveComponent("OverlayScrollbarsComponent");
|
|
240
241
|
const _component_overlayScrollbarsComponent = resolveComponent("overlayScrollbarsComponent");
|
|
241
242
|
const _component_CheckOutlined = resolveComponent("CheckOutlined");
|
|
242
243
|
const _component_a_empty = resolveComponent("a-empty");
|
|
@@ -262,9 +263,10 @@ var icon_next_picker_vue_vue_type_script_setup_true_name_IconNextPicker_lang_def
|
|
|
262
263
|
prefix: withCtx(() => [..._cache[6] || (_cache[6] = [createElementVNode("i", { class: "iconfont icon-sousuo1" }, null, -1)])]),
|
|
263
264
|
_: 1
|
|
264
265
|
}, 8, ["value"])]), createVNode(_component_a_spin, { spinning: spinning.value }, {
|
|
265
|
-
default: withCtx(() => [createElementVNode("div", _hoisted_3, [createElementVNode("div", _hoisted_4, [createVNode(
|
|
266
|
+
default: withCtx(() => [createElementVNode("div", _hoisted_3, [createElementVNode("div", _hoisted_4, [createVNode(_component_OverlayScrollbarsComponent, {
|
|
266
267
|
ref_key: "TreeScrollRef",
|
|
267
|
-
ref: TreeScrollRef
|
|
268
|
+
ref: TreeScrollRef,
|
|
269
|
+
class: "icon-picker-next__scrollbar"
|
|
268
270
|
}, {
|
|
269
271
|
default: withCtx(() => [catTree.value.length > 0 ? (openBlock(), createBlock(_component_a_tree, {
|
|
270
272
|
key: 0,
|
|
@@ -290,7 +292,8 @@ var icon_next_picker_vue_vue_type_script_setup_true_name_IconNextPicker_lang_def
|
|
|
290
292
|
}, 512)]), createElementVNode("div", _hoisted_6, [catIcons.value?.length > 0 ? (openBlock(), createElementBlock(Fragment, { key: 0 }, [
|
|
291
293
|
createElementVNode("div", _hoisted_7, [createVNode(_component_overlayScrollbarsComponent, {
|
|
292
294
|
ref_key: "IconsScrollRef",
|
|
293
|
-
ref: IconsScrollRef
|
|
295
|
+
ref: IconsScrollRef,
|
|
296
|
+
class: "icon-picker-next__scrollbar"
|
|
294
297
|
}, {
|
|
295
298
|
default: withCtx(() => [createElementVNode("ul", _hoisted_8, [(openBlock(true), createElementBlock(Fragment, null, renderList(catIcons.value, (icon) => {
|
|
296
299
|
return openBlock(), createElementBlock("li", {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { useGctFormValue } from "../../../gct-form/hooks/use-gct-form-value/use-gct-form-value.mjs";
|
|
2
2
|
import "../../../gct-form/index.mjs";
|
|
3
|
-
import '
|
|
3
|
+
import './gct-table-date.css';/* empty css */
|
|
4
4
|
import { createVNode, defineComponent, mergeProps, resolveComponent } from "vue";
|
|
5
5
|
import { useNamespace } from "@gct-paas/core";
|
|
6
6
|
//#region src/modules/gct-table/editor/gct-table-date/gct-table-date.tsx
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { useGctFormValueByText } from "../../../gct-form/hooks/use-gct-form-value/use-gct-form-value.mjs";
|
|
2
2
|
import "../../../gct-form/index.mjs";
|
|
3
|
-
import '
|
|
3
|
+
import '../gct-table-date/gct-table-date.css';/* empty css */
|
|
4
4
|
import { createVNode, defineComponent, mergeProps, resolveComponent } from "vue";
|
|
5
5
|
import { useNamespace } from "@gct-paas/core";
|
|
6
6
|
//#region src/modules/gct-table/editor/gct-table-text/gct-table-text.tsx
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@gct-paas/core-web",
|
|
3
|
-
"version": "0.1.6-dev.
|
|
3
|
+
"version": "0.1.6-dev.4",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "paas 平台网页端核心包",
|
|
6
6
|
"loader": "dist/loader.esm.min.js",
|
|
@@ -63,18 +63,18 @@
|
|
|
63
63
|
"vxe-table": "npm:@gct-paas/vxe-table@4.6.19",
|
|
64
64
|
"wujie": "^1.0.29",
|
|
65
65
|
"wujie-vue3": "^1.0.29",
|
|
66
|
-
"@gct-paas/core": "0.1.6-dev.
|
|
67
|
-
"@gct-paas/core-components": "0.1.6-dev.
|
|
68
|
-
"@gct-paas/scss": "0.1.6-dev.
|
|
66
|
+
"@gct-paas/core": "0.1.6-dev.4",
|
|
67
|
+
"@gct-paas/core-components": "0.1.6-dev.4",
|
|
68
|
+
"@gct-paas/scss": "0.1.6-dev.4"
|
|
69
69
|
},
|
|
70
70
|
"peerDependencies": {
|
|
71
71
|
"@gct-paas/api": "^0.1.4-dev.4",
|
|
72
72
|
"@types/sortablejs": "^1.15.1",
|
|
73
73
|
"vant": ">=4",
|
|
74
74
|
"vue": ">=3",
|
|
75
|
-
"@gct-paas/core": "0.1.6-dev.
|
|
76
|
-
"@gct-paas/
|
|
77
|
-
"@gct-paas/
|
|
75
|
+
"@gct-paas/core": "0.1.6-dev.4",
|
|
76
|
+
"@gct-paas/core-components": "0.1.6-dev.4",
|
|
77
|
+
"@gct-paas/scss": "0.1.6-dev.4"
|
|
78
78
|
},
|
|
79
79
|
"devDependencies": {
|
|
80
80
|
"@types/bwip-js": "^3.2.3"
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{usePlatformConfigStore as e}from"@gct-paas/core";import{Fragment as l,computed as a,createBlock as o,createCommentVNode as n,createElementBlock as t,createElementVNode as i,createVNode as c,defineComponent as u,nextTick as r,normalizeClass as s,normalizeStyle as d,openBlock as v,ref as p,renderList as k,resolveComponent as _,toDisplayString as g,unref as m,vModelText as f,withCtx as y,withDirectives as h}from"vue";import{cloneDeep as C,debounce as b}from"lodash-es";import{Empty as F,Form as x}from"ant-design-vue";import{IconNamespaceEnum as w,IconNext as I,useIconAsset as E,useIconPark as S,useIconPlatform as B}from"@gct-paas/core-components";var A={class:"icon-picker-next"},V={class:"p-12px"},z={class:"flex icon-picker-next__container"},P={class:"icon-picker-next__cats"},j=["title","data-id","onClick"],D={class:"icon-picker-next__panel"},R={class:"icon-picker-next__icons"},U={class:"icon__list"},L=["title","data-id","onClick"],M={key:0,class:"color__setting"},N={class:"color__list"},T=["onClick"],q={class:"color__input"},G={key:1,class:"color__setting"},O={class:"color__list"},W=["onClick"],H={class:"color__input"},J={key:1,class:"flex items-center justify-center h-full"},K="#FFFFFF",Q=/* @__PURE__ */u({__name:"icon-next-picker",props:{value:{type:String,required:!0},disabled:{type:Boolean,default:!1},color:{type:String,default:"#FFFFFF"},size:{type:Number,default:30},showColor:{type:Boolean,default:!1},background:{type:String},showBackground:{type:Boolean,default:!1}},emits:["update:value","update:color","update:background"],setup(u,{emit:Q}){const{themeSetting:X}=e(),Y=u,Z=Q,{getIconAssetCats:$}=E(),{getIconParkCats:ee}=S(),{getIconPlatformCats:le}=B(),{onFieldChange:ae}=x.useInjectFormItemContext(),oe=p(),ne=p(),te=p(!1),ie=["#3370FF","#0DAA9C","#EF3232","#EFA332","#18C8D3","#A33FF2"],ce=[K,...ie],ue=["transparent",...ie],re=p(K),se=p(!1),de=p(K),ve=p(!1);let pe=[];const ke=p([]),_e=p([]),ge=p([]),me=p(""),fe=a(()=>_e.value.length>0&&!_e.value[0].id.startsWith(w.Asset)),ye=()=>{let e,l=ke.value[0]||{};var a;l&&(e=l.icons?l:null===(a=l.children)||void 0===a?void 0:a[0]),e?(ge.value=[e.id],_e.value=e.icons):(ge.value=[],_e.value=[])},he=async e=>{if(e){if(te.value=!0,pe.length>0)ke.value=pe;else{const e=ee(),l=await $(),a=le();pe=l.concat(e).concat(a),ke.value=pe}Y.color?ce.includes(Y.color)?(re.value=K,se.value=!1):(re.value=Y.color,se.value=!0):Z("update:color",K),Y.background?ue.includes(Y.background)?(de.value=K,ve.value=!1):(de.value=Y.background,ve.value=!0):Z("update:background","#3370FF"),(async()=>{if(Y.value){let a=ke.value.reduce((e,l)=>("children"in l?e.push(...l.children):e.push(l),e),[]).find(e=>e.icons.map(e=>e.id).includes(Y.value));var e,l;a?(ge.value=[a.id],_e.value=a.icons,await r(),null===(e=oe.value)||void 0===e||null===(e=e.getElement())||void 0===e||e.scrollIntoView({block:"center"}),null===(l=ne.value)||void 0===l||null===(l=l.getElement())||void 0===l||l.scrollIntoView({block:"center"})):ye()}else ye()})(),te.value=!1}else me.value=""};function Ce(e,l){return e.map(e=>{const a=["children","icons"].find(l=>!!e[l]);return a?(e[a]=Ce(e[a],l),e[a].length>0?e:void 0):e._filter_.some(e=>e.includes(l))?e:void 0}).filter(Boolean)}const be=b(e=>{var l;te.value=!0;const a=null===(l=e.target.value)||void 0===l?void 0:l.trim();ke.value=a?Ce(C(pe),a):pe,ye(),te.value=!1},500),Fe=(e,l=!1)=>{se.value=l,Z("update:color",e),ae()},xe=()=>{se.value&&(Z("update:color",re.value),ae())},we=(e,l=!1)=>{ve.value=l,Z("update:background",e),ae()},Ie=()=>{ve.value&&(Z("update:background",de.value),ae())};return(e,a)=>{const r=_("a-input"),p=_("a-tree"),C=_("overlayScrollbarsComponent"),b=_("CheckOutlined"),x=_("a-empty"),w=_("a-spin"),E=_("a-popover");return v(),t("div",A,[c(E,{placement:"bottomLeft",trigger:"click","overlay-class-name":"icon-picker-next__popover",onVisibleChange:he},{content:y(()=>[i("div",V,[c(r,{value:me.value,"onUpdate:value":a[0]||(a[0]=e=>me.value=e),class:"icon-picker-next__search",placeholder:"搜索图标","allow-clear":"",onChange:a[1]||(a[1]=e=>{te.value=!0,m(be)(e)})},{prefix:y(()=>[...a[6]||(a[6]=[i("i",{class:"iconfont icon-sousuo1"},null,-1)])]),_:1},8,["value"])]),c(w,{spinning:te.value},{default:y(()=>{var e;return[i("div",z,[i("div",P,[c(C,{ref_key:"TreeScrollRef",ref:oe},{default:y(()=>[ke.value.length>0?(v(),o(p,{key:0,"selected-keys":ge.value,"default-expand-all":"","block-node":"","field-names":{children:"children",title:"name",key:"id"},"tree-data":ke.value},{title:y(({data:e})=>[i("div",{class:"ell",title:e.name,"data-id":e.id,onClick:l=>(e=>{(null==e?void 0:e.children)&&(null==e?void 0:e.children.length)||(_e.value=e.icons??[],ge.value=[e.id])})(e)},g(e.name),9,j)]),_:1},8,["selected-keys","tree-data"])):n("",!0)]),_:1},512)]),i("div",D,[(null===(e=_e.value)||void 0===e?void 0:e.length)>0?(v(),t(l,{key:0},[i("div",R,[c(C,{ref_key:"IconsScrollRef",ref:ne},{default:y(()=>[i("ul",U,[(v(!0),t(l,null,k(_e.value,e=>(v(),t("li",{key:e.name,style:d({"--background":u.background||m(X).themeColor}),class:s({"icon-picker-next--selected":e.id===u.value}),title:e.name,"data-id":e.id,onClick:l=>function(e){Z("update:value",e),ae()}(e.id)},[c(m(I),{value:e.id,color:e.id===u.value?u.color:K},null,8,["value","color"])],14,L))),128))])]),_:1},512)]),u.showBackground?(v(),t("div",M,[a[7]||(a[7]=i("div",{class:"color__title"},"背景颜色",-1)),i("div",N,[(v(),t(l,null,k(ue,e=>i("span",{key:e,class:s(["color__item","color__item--"+e]),style:d({backgroundColor:e}),onClick:()=>we(e)},[u.background===e?(v(),o(b,{key:0})):n("",!0)],14,T)),64))]),i("div",q,[i("div",{class:"color__preview",style:d({"--custom-bg":de.value}),onClick:a[2]||(a[2]=()=>we(de.value,!0))},[ve.value?(v(),o(b,{key:0})):n("",!0)],4),h(i("input",{"onUpdate:modelValue":a[3]||(a[3]=e=>de.value=e),type:"text",onBlur:Ie},null,544),[[f,de.value]])])])):n("",!0),u.showColor&&fe.value?(v(),t("div",G,[a[8]||(a[8]=i("div",{class:"color__title"},"图标色",-1)),i("div",O,[(v(),t(l,null,k(ce,e=>i("span",{key:e,class:"color__item",style:d({backgroundColor:e}),onClick:()=>Fe(e)},[u.color===e?(v(),o(b,{key:0})):n("",!0)],12,W)),64))]),i("div",H,[i("div",{class:"color__preview",style:d({"--custom-bg":re.value}),onClick:a[4]||(a[4]=()=>Fe(re.value,!0))},[se.value?(v(),o(b,{key:0})):n("",!0)],4),h(i("input",{"onUpdate:modelValue":a[5]||(a[5]=e=>re.value=e),type:"text",onBlur:xe},null,544),[[f,re.value]])])])):n("",!0)],64)):(v(),t("div",J,[c(x,{image:m(F).PRESENTED_IMAGE_SIMPLE,description:null},null,8,["image"])]))])])]}),_:1},8,["spinning"])]),default:y(()=>[i("div",{class:s(["icon-picker-next__trigger cursor-pointer",{"icon-picker-next--selected":u.value}]),style:d({"--background":u.background||m(X).themeColor})},[u.value?(v(),o(m(I),{key:0,value:u.value,size:u.size,color:u.color},null,8,["value","size","color"])):n("",!0),a[9]||(a[9]=i("div",null,[i("i",{class:"iconfont icon-bianji"})],-1))],6)]),_:1})])}}});export{Q as default};
|
|
File without changes
|