@topvisor/ui 1.4.3-fixGroupSelector.2 → 1.4.3-fixGroupSelector.6
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/.chunks/{core-DoIr-EAf.es.js → core-Dgj_YGWh.es.js} +4 -4
- package/.chunks/{core-DoIr-EAf.es.js.map → core-Dgj_YGWh.es.js.map} +1 -1
- package/.chunks/{datepicker-DPgavbKe.es.js → datepicker-qToxk2nN.es.js} +2 -2
- package/.chunks/{datepicker-DPgavbKe.es.js.map → datepicker-qToxk2nN.es.js.map} +1 -1
- package/.chunks/{dialog_regionSelectorRegions-D7x41iZu.es.js → dialog_regionSelectorRegions-qDW2Ejsv.es.js} +5 -5
- package/.chunks/{dialog_regionSelectorRegions-D7x41iZu.es.js.map → dialog_regionSelectorRegions-qDW2Ejsv.es.js.map} +1 -1
- package/.chunks/{dialogs.vue_vue_type_script_setup_true_lang-D8WYUfXI.es.js → dialogs.vue_vue_type_script_setup_true_lang-CJ97l1ST.es.js} +3 -3
- package/.chunks/{dialogs.vue_vue_type_script_setup_true_lang-D8WYUfXI.es.js.map → dialogs.vue_vue_type_script_setup_true_lang-CJ97l1ST.es.js.map} +1 -1
- package/.chunks/{forms-BpbQYyEQ.es.js → forms-DtC-EKJL.es.js} +24 -24
- package/.chunks/{forms-BpbQYyEQ.es.js.map → forms-DtC-EKJL.es.js.map} +1 -1
- package/.chunks/lazy-DDNqYkXn.amd.js +2 -0
- package/.chunks/lazy-DDNqYkXn.amd.js.map +1 -0
- package/.chunks/{lazy-40pjr8cZ.es.js → lazy-HKSyLh72.es.js} +23 -19
- package/.chunks/lazy-HKSyLh72.es.js.map +1 -0
- package/.chunks/{notice-Ckc8r96E.es.js → notice-BvQl911b.es.js} +3 -3
- package/.chunks/{notice-Ckc8r96E.es.js.map → notice-BvQl911b.es.js.map} +1 -1
- package/.chunks/{page.vue_vue_type_script_setup_true_lang-D3_o-DIM.es.js → page.vue_vue_type_script_setup_true_lang-Dd5-B4Ss.es.js} +9 -9
- package/.chunks/{page.vue_vue_type_script_setup_true_lang-D3_o-DIM.es.js.map → page.vue_vue_type_script_setup_true_lang-Dd5-B4Ss.es.js.map} +1 -1
- package/.chunks/{policy.vue_vue_type_style_index_0_lang-BFldQm5e.es.js → policy.vue_vue_type_style_index_0_lang-Bv3LwNDC.es.js} +34 -34
- package/.chunks/{policy.vue_vue_type_style_index_0_lang-BFldQm5e.es.js.map → policy.vue_vue_type_style_index_0_lang-Bv3LwNDC.es.js.map} +1 -1
- package/.chunks/{policy.vue_vue_type_style_index_0_lang-CR-aHxza.amd.js → policy.vue_vue_type_style_index_0_lang-Da7rztT5.amd.js} +2 -2
- package/.chunks/{policy.vue_vue_type_style_index_0_lang-CR-aHxza.amd.js.map → policy.vue_vue_type_style_index_0_lang-Da7rztT5.amd.js.map} +1 -1
- package/.chunks/{popup-DpyyE2Cs.es.js → popup-OuDglAOF.es.js} +2 -2
- package/.chunks/{popup-DpyyE2Cs.es.js.map → popup-OuDglAOF.es.js.map} +1 -1
- package/.chunks/{popupHint.vue_vue_type_style_index_0_lang-CdQostog.amd.js → popupHint.vue_vue_type_style_index_0_lang-Bu_HvFoW.amd.js} +2 -2
- package/.chunks/{popupHint.vue_vue_type_style_index_0_lang-CdQostog.amd.js.map → popupHint.vue_vue_type_style_index_0_lang-Bu_HvFoW.amd.js.map} +1 -1
- package/.chunks/{popupHint.vue_vue_type_style_index_0_lang-if4Qli-k.es.js → popupHint.vue_vue_type_style_index_0_lang-DAQIAxvu.es.js} +5 -5
- package/.chunks/{popupHint.vue_vue_type_style_index_0_lang-if4Qli-k.es.js.map → popupHint.vue_vue_type_style_index_0_lang-DAQIAxvu.es.js.map} +1 -1
- package/.chunks/{utils-MzIaxkRQ.es.js → utils-BNzP9anP.es.js} +2 -2
- package/.chunks/{utils-MzIaxkRQ.es.js.map → utils-BNzP9anP.es.js.map} +1 -1
- package/.chunks/{utils-CyE38wuQ.es.js → utils-Dma85ehT.es.js} +3 -3
- package/.chunks/{utils-CyE38wuQ.es.js.map → utils-Dma85ehT.es.js.map} +1 -1
- package/.chunks/{widgetInput.vue_vue_type_script_setup_true_lang-Dy8jWadl.es.js → widgetInput.vue_vue_type_script_setup_true_lang-CX_BOcVY.es.js} +6 -6
- package/.chunks/{widgetInput.vue_vue_type_script_setup_true_lang-Dy8jWadl.es.js.map → widgetInput.vue_vue_type_script_setup_true_lang-CX_BOcVY.es.js.map} +1 -1
- package/api/index.amd.js +1 -1
- package/api/index.js +6 -6
- package/charts/charts.js +14 -14
- package/core/app.js +15 -15
- package/dialog/dialog.js +6 -6
- package/extra/extra.js +2 -2
- package/forms/forms.js +1 -1
- package/formsExt/formsExt.amd.js +1 -1
- package/formsExt/formsExt.js +21 -21
- package/layout/layout.js +7 -7
- package/package.json +2 -2
- package/popup/popup.amd.js +1 -1
- package/popup/popup.js +9 -9
- package/popup/worker.js +2 -2
- package/project/project.amd.js +1 -1
- package/project/project.amd.js.map +1 -1
- package/project/project.js +9 -9
- package/src/components/project/groupSelector/folders/utils.d.ts +6 -26
- package/src/components/project/groupSelector/groups/groups.vue.d.ts +2 -4
- package/src/components/project/groupSelector/groups/utils.d.ts +17 -56
- package/src/components/project/projectSelector/projectSelector.vue.d.ts +2 -4
- package/src/components/project/projectSelector/utils.d.ts +14 -4
- package/tabs/tabs.js +5 -5
- package/tabsView/tabsView.amd.js +1 -1
- package/tabsView/tabsView.js +12 -12
- package/utils/clipboard.js +1 -1
- package/utils/date.js +1 -1
- package/utils/device.js +1 -1
- package/utils/lodash.js +1 -1
- package/utils/price.js +1 -1
- package/utils/searchers.js +3 -3
- package/utils/string.js +1 -1
- package/.chunks/lazy-40pjr8cZ.es.js.map +0 -1
- package/.chunks/lazy-DSFLxvj4.amd.js +0 -2
- package/.chunks/lazy-DSFLxvj4.amd.js.map +0 -1
package/formsExt/formsExt.amd.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
define(["require","exports","vue","../.chunks/forms-DDNzqU6o.amd","../.chunks/policy.vue_vue_type_style_index_0_lang-
|
|
1
|
+
define(["require","exports","vue","../.chunks/forms-DDNzqU6o.amd","../.chunks/policy.vue_vue_type_style_index_0_lang-Da7rztT5.amd"],(function(z,d,e,m,f){"use strict";if(typeof e>"u")var e=window.Vue;const y={class:"top-editArea_footer"},k=e.defineComponent({__name:"editArea",props:{defaultValue:{default:""},title:{},cancelText:{default:"Cancel"},submitText:{default:"Send"},closeText:{default:"Close"},isFocused:{type:Boolean},forceShowCloseBtn:{type:Boolean},attachToKeyboard:{type:Boolean},modelValue:{},name:{},placeholder:{},styling:{},rows:{},minHeight:{},expandable:{type:Boolean,default:!0},disabled:{type:Boolean},readonly:{type:Boolean},isError:{type:Boolean},hint:{},maxLength:{}},emits:["submit","close","clickOnTitle"],setup(t,{emit:o}){const l=t,n=o,i=e.ref(l.defaultValue),s=e.ref(l.isFocused),r=e.computed(()=>i.value!==l.defaultValue),a=p=>{n("submit",p),i.value=l.defaultValue},c=()=>{if(l.forceShowCloseBtn&&!r.value){n("close");return}i.value=l.defaultValue},N=()=>{l.attachToKeyboard&&n("clickOnTitle")};return(p,u)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass({"top-editArea":!0,"top-editArea-attachedToKeyboard":t.attachToKeyboard})},[t.title||p.$slots.caption?(e.openBlock(),e.createElementBlock("div",{key:0,class:"top-editArea_caption",onClick:u[0]||(u[0]=v=>N())},[e.renderSlot(p.$slots,"caption",{},()=>[e.createTextVNode(e.toDisplayString(t.title),1)])])):e.createCommentVNode("",!0),e.createElementVNode("div",{class:e.normalizeClass({"top-editArea_form":!0,"top-forms-focusable":!0,"top-as-input":!0,"top-error":t.isError,"top-focus":s.value})},[e.createVNode(m._sfc_main$3,{modelValue:i.value,"onUpdate:modelValue":u[1]||(u[1]=v=>i.value=v),name:t.name,placeholder:t.placeholder,rows:t.rows,minHeight:t.minHeight,expandable:t.expandable,disabled:t.disabled,readonly:t.readonly,isError:t.isError,hint:t.hint,class:"top-editArea_element",onFocus:u[2]||(u[2]=()=>s.value=!0),onBlur:u[3]||(u[3]=()=>s.value=!1),onKeyup:[e.withKeys(c,["esc"]),u[4]||(u[4]=e.withKeys(e.withModifiers(v=>a(i.value),["ctrl"]),["enter"]))]},null,8,["modelValue","name","placeholder","rows","minHeight","expandable","disabled","readonly","isError","hint"]),e.createElementVNode("div",y,[r.value||t.forceShowCloseBtn?(e.openBlock(),e.createBlock(m._sfc_main$1,{key:0,icon:p.$core.state.isMobile?"":"",class:"top-editArea_button",color:"theme",styling:"soft",onClick:c},e.createSlots({_:2},[p.$core.state.isMobile?void 0:{name:"default",fn:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(t.cancelText),1)]),key:"0"}]),1032,["icon"])):e.createCommentVNode("",!0),r.value?(e.openBlock(),e.createBlock(m._sfc_main$1,{key:1,class:"top-editArea_button",icon:p.$core.state.isMobile?"":"",onClick:u[5]||(u[5]=v=>a(i.value))},e.createSlots({_:2},[p.$core.state.isMobile?void 0:{name:"default",fn:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(t.submitText),1)]),key:"0"}]),1032,["icon"])):e.createCommentVNode("",!0)])],2)],2))}}),B={class:"top-editInput"},h=e.defineComponent({__name:"editInput",props:{modelValue:{},alwaysShowSubmitBtn:{type:Boolean},input:{},button:{}},emits:["update:modelValue"],setup(t,{emit:o}){const l=t,n=e.ref(l.modelValue);e.watch(()=>l.modelValue,()=>{n.value=l.modelValue});const i=o,s=()=>{i("update:modelValue",n.value)};return(r,a)=>(e.openBlock(),e.createElementBlock("div",B,[e.createVNode(m._sfc_main,e.mergeProps(t.input,{onKeydownCapture:a[0]||(a[0]=e.withKeys(e.withModifiers(c=>n.value=t.modelValue,["stop"]),["esc"])),onKeydown:e.withKeys(e.withModifiers(s,["stop"]),["enter"]),modelValue:n.value,"onUpdate:modelValue":a[1]||(a[1]=c=>n.value=c)}),e.createSlots({_:2},[r.$slots.caption?{name:"caption",fn:e.withCtx(()=>[e.renderSlot(r.$slots,"caption")]),key:"0"}:void 0]),1040,["onKeydown","modelValue"]),n.value!==t.modelValue||t.alwaysShowSubmitBtn?(e.openBlock(),e.createBlock(m._sfc_main$1,e.mergeProps({key:0,icon:"",styling:"soft"},t.button,{onClick:s}),null,16)):e.createCommentVNode("",!0)]))}}),V=e.defineComponent({__name:"optionGroup",props:e.mergeModels({modelValue:{},items:{},size:{default:"s"},showIndicator:{type:Boolean},isError:{type:Boolean}},{modelValue:{required:!0},modelModifiers:{}}),emits:["update:modelValue"],setup(t){const o=e.useModel(t,"modelValue"),l=t,n=e.ref(null);e.watch(o,()=>{const s=l.items.map(r=>r.value);Array.isArray(o.value)?o.value.find(a=>!s.includes(a))&&(o.value=o.value.filter(a=>s.includes(a))):s.includes(o.value)||(o.value=s[0]??""),n.value?.querySelector(".radioGroup_item-selected")?.scrollIntoView()},{immediate:!0});const i="optionGroup-"+Math.random();return(s,r)=>(e.openBlock(),e.createElementBlock("div",{ref_key:"elRef",ref:n,class:e.normalizeClass({"top-optionGroup":!0,["top-optionGroup-showIndicator_"+Number(t.showIndicator)]:!0,"top-scrollBarXHidding":!0,["top-size_"+t.size]:!!t.size,"top-error":t.isError})},[Array.isArray(o.value)?(e.openBlock(!0),e.createElementBlock(e.Fragment,{key:0},e.renderList(t.items,a=>(e.openBlock(),e.createBlock(m._sfc_main$4,{class:e.normalizeClass({"top-optionGroup_item-selected":o.value.includes(a.value),"top-optionGroup_item":!0}),modelValue:o.value,"onUpdate:modelValue":r[0]||(r[0]=c=>o.value=c),value:a.value,title:a.title,disabled:a.disabled,isError:t.isError,"data-top-icon":a.icon},e.createSlots({_:2},[a.label?{name:"default",fn:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(a.label),1)]),key:"0"}:void 0]),1032,["class","modelValue","value","title","disabled","isError","data-top-icon"]))),256)):(e.openBlock(!0),e.createElementBlock(e.Fragment,{key:1},e.renderList(t.items,a=>(e.openBlock(),e.createBlock(m._sfc_main$5,{class:e.normalizeClass({"top-optionGroup_item-selected":a.value===o.value,"top-optionGroup_item":!0}),modelValue:o.value,"onUpdate:modelValue":r[1]||(r[1]=c=>o.value=c),name:i,value:a.value,title:a.title,disabled:a.disabled,isError:t.isError,"data-top-icon":a.icon},e.createSlots({_:2},[a.label?{name:"default",fn:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(a.label),1)]),key:"0"}:void 0]),1032,["class","modelValue","value","title","disabled","isError","data-top-icon"]))),256))],2))}}),b=e.defineComponent({__name:"radioGroup",props:e.mergeModels({modelValue:{},items:{},size:{},showIndicator:{type:Boolean},isError:{type:Boolean}},{modelValue:{required:!0},modelModifiers:{}}),emits:["update:modelValue"],setup(t){const o=e.useModel(t,"modelValue");return(l,n)=>(e.openBlock(),e.createBlock(V,{class:"top-radioGroup",modelValue:o.value,"onUpdate:modelValue":n[0]||(n[0]=i=>o.value=i),items:l.$props.items,size:l.$props.size,showIndicator:l.$props.showIndicator,isError:l.$props.isError},{default:e.withCtx(()=>[e.renderSlot(l.$slots,"default")]),_:3},8,["modelValue","items","size","showIndicator","isError"]))}}),w=e.defineComponent({__name:"checkboxGroup",props:e.mergeModels({modelValue:{},items:{},size:{},showIndicator:{type:Boolean},isError:{type:Boolean}},{modelValue:{required:!0},modelModifiers:{}}),emits:["update:modelValue"],setup(t){const o=e.useModel(t,"modelValue");return(l,n)=>(e.openBlock(),e.createBlock(V,{class:"top-checkboxGroup",modelValue:o.value,"onUpdate:modelValue":n[0]||(n[0]=i=>o.value=i),items:l.$props.items,size:l.$props.size,showIndicator:l.$props.showIndicator,isError:l.$props.isError},{default:e.withCtx(()=>[e.renderSlot(l.$slots,"default")]),_:3},8,["modelValue","items","size","showIndicator","isError"]))}}),$=["data-top-icon"],E={class:"top-info_text"},C={key:0,class:"top-info_value"},T=e.defineComponent({__name:"info",props:{icon:{},styling:{default:"default"},size:{default:"default"}},setup(t){return(o,l)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass({"top-info":!0,["top-size_"+t.size]:!0,["top-info-styling_"+t.styling]:!0}),"data-top-icon":t.icon},[e.createElementVNode("div",E,[e.renderSlot(o.$slots,"default")]),o.$slots.additional?(e.openBlock(),e.createElementBlock("span",C,[e.renderSlot(o.$slots,"additional")])):e.createCommentVNode("",!0)],10,$))}}),S={key:0,class:"top-policy"},g={class:"top-policy_title"},I=["innerHTML"],M=e.defineComponent({__name:"policy",props:{title:{},description:{},acceptText:{}},emits:["accept"],setup(t,{emit:o}){const l=o,n=e.ref(!0),i=()=>{n.value=!1,l("accept")};return(s,r)=>n.value?(e.openBlock(),e.createElementBlock("div",S,[e.createElementVNode("div",g,e.toDisplayString(t.title),1),e.createElementVNode("div",{class:"top-policy_description",innerHTML:t.description},null,8,I),e.createVNode(e.unref(m._sfc_main$1),{size:"m",onClick:i},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(t.acceptText),1)]),_:1})])):e.createCommentVNode("",!0)}});d.ITEM_ID_ALL=f.ITEM_ID_ALL,d.ITEM_ID_NEW=f.ITEM_ID_NEW,d.TopMenu=f._sfc_main,d.TopSelector2=f._sfc_main$1,d.apiSetSearchParamsFilter=f.apiSetSearchParamsFilter,d.TopCheckboxGroup=w,d.TopEditArea=k,d.TopEditInput=h,d.TopInfo=T,d.TopPolicy=M,d.TopRadioGroup=b,Object.defineProperty(d,Symbol.toStringTag,{value:"Module"})}));
|
|
2
2
|
//# sourceMappingURL=formsExt.amd.js.map
|
package/formsExt/formsExt.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { defineComponent as y, ref as w, computed as F,
|
|
2
|
-
import { g as N, e as I, _ as U, h as q, j as D } from "../.chunks/forms-
|
|
3
|
-
import {
|
|
1
|
+
import { defineComponent as y, ref as w, computed as F, openBlock as i, createElementBlock as c, normalizeClass as V, renderSlot as h, createTextVNode as b, toDisplayString as f, createCommentVNode as $, createElementVNode as k, createVNode as z, withKeys as B, withModifiers as g, createBlock as v, createSlots as E, withCtx as p, watch as K, mergeProps as M, useModel as A, Fragment as G, renderList as S, mergeModels as C, unref as L } from "vue";
|
|
2
|
+
import { g as N, e as I, _ as U, h as q, j as D } from "../.chunks/forms-DtC-EKJL.es.js";
|
|
3
|
+
import { I as ne, a as re, _ as ue, b as de, c as ce } from "../.chunks/policy.vue_vue_type_style_index_0_lang-Bv3LwNDC.es.js";
|
|
4
4
|
const O = { class: "top-editArea_footer" }, _ = /* @__PURE__ */ y({
|
|
5
5
|
__name: "editArea",
|
|
6
6
|
props: {
|
|
@@ -50,9 +50,9 @@ const O = { class: "top-editArea_footer" }, _ = /* @__PURE__ */ y({
|
|
|
50
50
|
onClick: u[0] || (u[0] = (T) => x())
|
|
51
51
|
}, [
|
|
52
52
|
h(m.$slots, "caption", {}, () => [
|
|
53
|
-
|
|
53
|
+
b(f(e.title), 1)
|
|
54
54
|
])
|
|
55
|
-
])) :
|
|
55
|
+
])) : $("", !0),
|
|
56
56
|
k("div", {
|
|
57
57
|
class: V({
|
|
58
58
|
"top-editArea_form": !0,
|
|
@@ -94,11 +94,11 @@ const O = { class: "top-editArea_footer" }, _ = /* @__PURE__ */ y({
|
|
|
94
94
|
m.$core.state.isMobile ? void 0 : {
|
|
95
95
|
name: "default",
|
|
96
96
|
fn: p(() => [
|
|
97
|
-
|
|
97
|
+
b(f(e.cancelText), 1)
|
|
98
98
|
]),
|
|
99
99
|
key: "0"
|
|
100
100
|
}
|
|
101
|
-
]), 1032, ["icon"])) :
|
|
101
|
+
]), 1032, ["icon"])) : $("", !0),
|
|
102
102
|
n.value ? (i(), v(I, {
|
|
103
103
|
key: 1,
|
|
104
104
|
class: "top-editArea_button",
|
|
@@ -108,11 +108,11 @@ const O = { class: "top-editArea_footer" }, _ = /* @__PURE__ */ y({
|
|
|
108
108
|
m.$core.state.isMobile ? void 0 : {
|
|
109
109
|
name: "default",
|
|
110
110
|
fn: p(() => [
|
|
111
|
-
|
|
111
|
+
b(f(e.submitText), 1)
|
|
112
112
|
]),
|
|
113
113
|
key: "0"
|
|
114
114
|
}
|
|
115
|
-
]), 1032, ["icon"])) :
|
|
115
|
+
]), 1032, ["icon"])) : $("", !0)
|
|
116
116
|
])
|
|
117
117
|
], 2)
|
|
118
118
|
], 2));
|
|
@@ -153,12 +153,12 @@ const O = { class: "top-editArea_footer" }, _ = /* @__PURE__ */ y({
|
|
|
153
153
|
key: 0,
|
|
154
154
|
icon: "",
|
|
155
155
|
styling: "soft"
|
|
156
|
-
}, e.button, { onClick: r }), null, 16)) :
|
|
156
|
+
}, e.button, { onClick: r }), null, 16)) : $("", !0)
|
|
157
157
|
]));
|
|
158
158
|
}
|
|
159
159
|
}), H = /* @__PURE__ */ y({
|
|
160
160
|
__name: "optionGroup",
|
|
161
|
-
props: /* @__PURE__ */
|
|
161
|
+
props: /* @__PURE__ */ C({
|
|
162
162
|
modelValue: {},
|
|
163
163
|
items: {},
|
|
164
164
|
size: { default: "s" },
|
|
@@ -172,7 +172,7 @@ const O = { class: "top-editArea_footer" }, _ = /* @__PURE__ */ y({
|
|
|
172
172
|
}),
|
|
173
173
|
emits: ["update:modelValue"],
|
|
174
174
|
setup(e) {
|
|
175
|
-
const o =
|
|
175
|
+
const o = A(e, "modelValue"), t = e, a = w(null);
|
|
176
176
|
K(o, () => {
|
|
177
177
|
const r = t.items.map((n) => n.value);
|
|
178
178
|
Array.isArray(o.value) ? o.value.find((l) => !r.includes(l)) && (o.value = o.value.filter((l) => r.includes(l))) : r.includes(o.value) || (o.value = r[0] ?? ""), a.value?.querySelector(".radioGroup_item-selected")?.scrollIntoView();
|
|
@@ -205,7 +205,7 @@ const O = { class: "top-editArea_footer" }, _ = /* @__PURE__ */ y({
|
|
|
205
205
|
l.label ? {
|
|
206
206
|
name: "default",
|
|
207
207
|
fn: p(() => [
|
|
208
|
-
|
|
208
|
+
b(f(l.label), 1)
|
|
209
209
|
]),
|
|
210
210
|
key: "0"
|
|
211
211
|
} : void 0
|
|
@@ -226,7 +226,7 @@ const O = { class: "top-editArea_footer" }, _ = /* @__PURE__ */ y({
|
|
|
226
226
|
l.label ? {
|
|
227
227
|
name: "default",
|
|
228
228
|
fn: p(() => [
|
|
229
|
-
|
|
229
|
+
b(f(l.label), 1)
|
|
230
230
|
]),
|
|
231
231
|
key: "0"
|
|
232
232
|
} : void 0
|
|
@@ -235,7 +235,7 @@ const O = { class: "top-editArea_footer" }, _ = /* @__PURE__ */ y({
|
|
|
235
235
|
}
|
|
236
236
|
}), oe = /* @__PURE__ */ y({
|
|
237
237
|
__name: "radioGroup",
|
|
238
|
-
props: /* @__PURE__ */
|
|
238
|
+
props: /* @__PURE__ */ C({
|
|
239
239
|
modelValue: {},
|
|
240
240
|
items: {},
|
|
241
241
|
size: {},
|
|
@@ -249,7 +249,7 @@ const O = { class: "top-editArea_footer" }, _ = /* @__PURE__ */ y({
|
|
|
249
249
|
}),
|
|
250
250
|
emits: ["update:modelValue"],
|
|
251
251
|
setup(e) {
|
|
252
|
-
const o =
|
|
252
|
+
const o = A(e, "modelValue");
|
|
253
253
|
return (t, a) => (i(), v(H, {
|
|
254
254
|
class: "top-radioGroup",
|
|
255
255
|
modelValue: o.value,
|
|
@@ -267,7 +267,7 @@ const O = { class: "top-editArea_footer" }, _ = /* @__PURE__ */ y({
|
|
|
267
267
|
}
|
|
268
268
|
}), te = /* @__PURE__ */ y({
|
|
269
269
|
__name: "checkboxGroup",
|
|
270
|
-
props: /* @__PURE__ */
|
|
270
|
+
props: /* @__PURE__ */ C({
|
|
271
271
|
modelValue: {},
|
|
272
272
|
items: {},
|
|
273
273
|
size: {},
|
|
@@ -281,7 +281,7 @@ const O = { class: "top-editArea_footer" }, _ = /* @__PURE__ */ y({
|
|
|
281
281
|
}),
|
|
282
282
|
emits: ["update:modelValue"],
|
|
283
283
|
setup(e) {
|
|
284
|
-
const o =
|
|
284
|
+
const o = A(e, "modelValue");
|
|
285
285
|
return (t, a) => (i(), v(H, {
|
|
286
286
|
class: "top-checkboxGroup",
|
|
287
287
|
modelValue: o.value,
|
|
@@ -321,7 +321,7 @@ const O = { class: "top-editArea_footer" }, _ = /* @__PURE__ */ y({
|
|
|
321
321
|
]),
|
|
322
322
|
o.$slots.additional ? (i(), c("span", j, [
|
|
323
323
|
h(o.$slots, "additional")
|
|
324
|
-
])) :
|
|
324
|
+
])) : $("", !0)
|
|
325
325
|
], 10, R));
|
|
326
326
|
}
|
|
327
327
|
}), X = {
|
|
@@ -350,11 +350,11 @@ const O = { class: "top-editArea_footer" }, _ = /* @__PURE__ */ y({
|
|
|
350
350
|
onClick: s
|
|
351
351
|
}, {
|
|
352
352
|
default: p(() => [
|
|
353
|
-
|
|
353
|
+
b(f(e.acceptText), 1)
|
|
354
354
|
]),
|
|
355
355
|
_: 1
|
|
356
356
|
})
|
|
357
|
-
])) :
|
|
357
|
+
])) : $("", !0);
|
|
358
358
|
}
|
|
359
359
|
});
|
|
360
360
|
export {
|
package/layout/layout.js
CHANGED
|
@@ -3,8 +3,8 @@
|
|
|
3
3
|
const fileNames = ['../assets/layout.css'].map(fileName => import.meta.resolve(fileName));
|
|
4
4
|
_autoloadCSSCore.insertCSSLinkToPage(fileNames, true);
|
|
5
5
|
|
|
6
|
-
import { defineComponent as r,
|
|
7
|
-
import { k as l } from "../.chunks/forms-
|
|
6
|
+
import { defineComponent as r, openBlock as t, createElementBlock as e, normalizeClass as c, renderSlot as n, createCommentVNode as _, createVNode as d, withCtx as i } from "vue";
|
|
7
|
+
import { k as l } from "../.chunks/forms-DtC-EKJL.es.js";
|
|
8
8
|
const p = /* @__PURE__ */ r({
|
|
9
9
|
__name: "rows",
|
|
10
10
|
props: {
|
|
@@ -12,7 +12,7 @@ const p = /* @__PURE__ */ r({
|
|
|
12
12
|
},
|
|
13
13
|
setup(o) {
|
|
14
14
|
const s = o;
|
|
15
|
-
return (a, v) => (
|
|
15
|
+
return (a, v) => (t(), e("div", {
|
|
16
16
|
class: c({
|
|
17
17
|
"top-rows": !0,
|
|
18
18
|
["top-rows-gap_" + s.gap]: !0
|
|
@@ -27,8 +27,8 @@ const p = /* @__PURE__ */ r({
|
|
|
27
27
|
}, C = /* @__PURE__ */ r({
|
|
28
28
|
__name: "islandRows",
|
|
29
29
|
setup(o) {
|
|
30
|
-
return (s, a) => (
|
|
31
|
-
s.$slots.title ? (
|
|
30
|
+
return (s, a) => (t(), e("div", u, [
|
|
31
|
+
s.$slots.title ? (t(), e("div", w, [
|
|
32
32
|
n(s.$slots, "title")
|
|
33
33
|
])) : _("", !0),
|
|
34
34
|
d(p, {
|
|
@@ -44,13 +44,13 @@ const p = /* @__PURE__ */ r({
|
|
|
44
44
|
}
|
|
45
45
|
}), f = {}, m = { class: "top-islandRows_row" };
|
|
46
46
|
function R(o, s) {
|
|
47
|
-
return
|
|
47
|
+
return t(), e("div", m, [
|
|
48
48
|
n(o.$slots, "default")
|
|
49
49
|
]);
|
|
50
50
|
}
|
|
51
51
|
const b = /* @__PURE__ */ l(f, [["render", R]]), $ = {}, h = { class: "top-islandRows_subTitle" };
|
|
52
52
|
function T(o, s) {
|
|
53
|
-
return
|
|
53
|
+
return t(), e("div", h, [
|
|
54
54
|
n(o.$slots, "default")
|
|
55
55
|
]);
|
|
56
56
|
}
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@topvisor/ui",
|
|
3
3
|
"private": false,
|
|
4
|
-
"version": "1.4.3-fixGroupSelector.
|
|
4
|
+
"version": "1.4.3-fixGroupSelector.6",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"description": "Topvisor UI-kit Vue",
|
|
7
7
|
"author": "Topvisor",
|
|
@@ -28,7 +28,7 @@
|
|
|
28
28
|
"@monaco-editor/loader": "^1.5.0",
|
|
29
29
|
"@rive-app/canvas-lite": "^2.30.4",
|
|
30
30
|
"pinia": "2.3.1",
|
|
31
|
-
"vue": "^3.5.
|
|
31
|
+
"vue": "^3.5.30"
|
|
32
32
|
},
|
|
33
33
|
"overrides": {
|
|
34
34
|
"storybook": "$storybook"
|
package/popup/popup.amd.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
define(["require","exports","../.chunks/popupHint.vue_vue_type_style_index_0_lang-
|
|
1
|
+
define(["require","exports","../.chunks/popupHint.vue_vue_type_style_index_0_lang-Bu_HvFoW.amd","../.chunks/widgetInput.vue_vue_type_script_setup_true_lang-CkOmb3VD.amd","vue","../.chunks/forms-DDNzqU6o.amd"],(function(V,l,d,k,e,$){"use strict";if(typeof e>"u")var e=window.Vue;const T=e.defineComponent({__name:"popupAlert",props:{submitText:{},id:{},class:{},transitionDuration:{},footerSupportLink:{},pos:{},notch:{type:Boolean},openByFocusInput:{type:Boolean},openByHover:{type:Boolean},disabled:{type:Boolean},posBy:{},data:{}},emits:["open","close","scrollContentList"],setup(f){const c=f,{submitText:i,...p}=c;return(o,t)=>(e.openBlock(),e.createBlock(d._sfc_main,e.mergeProps({class:"top-popupAlert"},p,{onOpen:t[0]||(t[0]=s=>o.$emit("open",s)),onClose:t[1]||(t[1]=s=>o.$emit("close",s)),onScrollContentList:t[2]||(t[2]=(...s)=>o.$emit("scrollContentList",...s))}),e.createSlots({opener:e.withCtx(()=>[e.renderSlot(o.$slots,"opener")]),footer:e.withCtx(()=>[e.renderSlot(o.$slots,"footer"),e.createVNode($._sfc_main$1,null,{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(i)||o.$i18n.Common.Close),1)]),_:1})]),_:2},[o.$slots.header?{name:"header",fn:e.withCtx(()=>[e.renderSlot(o.$slots,"header")]),key:"0"}:void 0,o.$slots.default?{name:"content",fn:e.withCtx(()=>[e.renderSlot(o.$slots,"default")]),key:"1"}:void 0]),1040))}}),w=e.defineComponent({__name:"popupConfirm",props:{cancelText:{},submitText:{},isWarning:{type:Boolean},id:{},class:{},transitionDuration:{},footerSupportLink:{},pos:{},notch:{type:Boolean},openByFocusInput:{type:Boolean},openByHover:{type:Boolean},disabled:{type:Boolean},posBy:{},data:{}},emits:["open","close","scrollContentList","submit"],setup(f,{emit:c}){const i=f,p=c,o=e.ref(!1),t=()=>{o.value=!0,p("submit")},s=r=>{if(o.value){o.value=!1;return}p("close",r)},{submitText:a,cancelText:B,isWarning:S,...y}=i;return(r,u)=>(e.openBlock(),e.createBlock(d._sfc_main,e.mergeProps({class:"top-popupConfirm"},y,{onOpen:u[0]||(u[0]=n=>r.$emit("open",n)),onClose:u[1]||(u[1]=n=>s(n)),onScrollContentList:u[2]||(u[2]=(...n)=>r.$emit("scrollContentList",...n))}),e.createSlots({opener:e.withCtx(()=>[e.renderSlot(r.$slots,"opener")]),footer:e.withCtx(()=>[e.renderSlot(r.$slots,"footer"),e.createVNode($._sfc_main$1,{color:"theme"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(B)||r.$i18n.Common.Cancel),1)]),_:1}),e.createVNode($._sfc_main$1,{onClick:t,color:e.unref(S)?"red":"blue"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(a)||r.$i18n.Common.Continue),1)]),_:1},8,["color"])]),_:2},[r.$slots.header?{name:"header",fn:e.withCtx(()=>[e.renderSlot(r.$slots,"header")]),key:"0"}:void 0,r.$slots.default?{name:"content",fn:e.withCtx(()=>[e.renderSlot(r.$slots,"default")]),key:"1"}:void 0]),1040))}}),b=e.defineComponent({__name:"popupPrompt",props:{submitText:{},cancelText:{},defaultValue:{},id:{},class:{},transitionDuration:{},footerSupportLink:{},pos:{},notch:{type:Boolean},openByFocusInput:{type:Boolean},openByHover:{type:Boolean},disabled:{type:Boolean},posBy:{},data:{}},emits:["open","close","scrollContentList","submit"],setup(f,{emit:c}){const i=f,p=c,o=()=>s.value=i.defaultValue??"",t=e.ref(!1),s=e.ref();e.watch(()=>i.defaultValue,()=>o(),{immediate:!0});const a=()=>{t.value=!0},B=n=>{if(t.value){t.value=!1,p("submit",s.value),o();return}o(),p("close",n)},{submitText:S,cancelText:y,defaultValue:r,...u}=i;return(n,m)=>(e.openBlock(),e.createBlock(d._sfc_main,e.mergeProps({class:"top-popupPrompt"},u,{onOpen:m[1]||(m[1]=C=>n.$emit("open",C)),onClose:m[2]||(m[2]=C=>B(C)),onScrollContentList:m[3]||(m[3]=(...C)=>n.$emit("scrollContentList",...C))}),e.createSlots({opener:e.withCtx(()=>[e.renderSlot(n.$slots,"opener")]),footer:e.withCtx(()=>[e.renderSlot(n.$slots,"footer"),e.createVNode($._sfc_main$1,{color:"theme"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(y)||n.$i18n.Common.Cancel),1)]),_:1}),e.createVNode($._sfc_main$1,{onClick:a},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(S)||n.$i18n.Common.OK),1)]),_:1})]),_:2},[n.$slots.header?{name:"header",fn:e.withCtx(()=>[e.renderSlot(n.$slots,"header")]),key:"0"}:void 0,n.$slots.default?{name:"content",fn:e.withCtx(()=>[e.renderSlot(n.$slots,"default"),e.createVNode(k._sfc_main,{modelValue:s.value,"onUpdate:modelValue":m[0]||(m[0]=C=>s.value=C),modelModifiers:{trim:!0}},null,8,["modelValue"])]),key:"1"}:void 0]),1040))}}),h=e.defineComponent({__name:"popupHint",props:{hint:{},id:{},class:{},transitionDuration:{},footerSupportLink:{},pos:{},notch:{type:Boolean},openByFocusInput:{type:Boolean},openByHover:{type:Boolean},disabled:{type:Boolean},posBy:{},data:{}},setup(f){const c=f,{hint:i,...p}=c;return(o,t)=>{const s=e.resolveDirective("top-tooltip");return e.openBlock(),e.createBlock(d._sfc_main,e.mergeProps({class:"top-popupHint"},p,{onOpen:t[0]||(t[0]=a=>o.$emit("open",a)),onClose:t[1]||(t[1]=a=>o.$emit("close",a)),onScrollContentList:t[2]||(t[2]=(...a)=>o.$emit("scrollContentList",...a))}),e.createSlots({opener:e.withCtx(()=>[e.withDirectives(e.createVNode($._sfc_main$2,{hint:e.unref(i),class:"top-popupHint_opener"},null,8,["hint"]),[[s]])]),_:2},[o.$slots.default?{name:"content",fn:e.withCtx(()=>[e.renderSlot(o.$slots,"default")]),key:"0"}:void 0]),1040)}}});l.TopPopup=d._sfc_main,l.TopPopupListItem=d._sfc_main$1,l.TopPopupOpener=d._sfc_main$2,l.TopPopupWidgetInput=k._sfc_main,l.TopPopupAlert=T,l.TopPopupConfirm=w,l.TopPopupHint=h,l.TopPopupPrompt=b,Object.defineProperty(l,Symbol.toStringTag,{value:"Module"})}));
|
|
2
2
|
//# sourceMappingURL=popup.amd.js.map
|
package/popup/popup.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { _ as b } from "../.chunks/popupHint.vue_vue_type_style_index_0_lang-
|
|
2
|
-
import {
|
|
3
|
-
import { _ as O } from "../.chunks/widgetInput.vue_vue_type_script_setup_true_lang-
|
|
4
|
-
import { defineComponent as T,
|
|
5
|
-
import { e as c, f as A } from "../.chunks/forms-
|
|
1
|
+
import { _ as b } from "../.chunks/popupHint.vue_vue_type_style_index_0_lang-DAQIAxvu.es.js";
|
|
2
|
+
import { a as G, b as J } from "../.chunks/popupHint.vue_vue_type_style_index_0_lang-DAQIAxvu.es.js";
|
|
3
|
+
import { _ as O } from "../.chunks/widgetInput.vue_vue_type_script_setup_true_lang-CX_BOcVY.es.js";
|
|
4
|
+
import { defineComponent as T, openBlock as L, createBlock as P, mergeProps as k, createSlots as S, withCtx as t, renderSlot as l, createVNode as y, createTextVNode as B, toDisplayString as v, unref as C, ref as I, watch as g, resolveDirective as F, withDirectives as w } from "vue";
|
|
5
|
+
import { e as c, f as A } from "../.chunks/forms-DtC-EKJL.es.js";
|
|
6
6
|
const U = /* @__PURE__ */ T({
|
|
7
7
|
__name: "popupAlert",
|
|
8
8
|
props: {
|
|
@@ -25,7 +25,7 @@ const U = /* @__PURE__ */ T({
|
|
|
25
25
|
submitText: r,
|
|
26
26
|
...i
|
|
27
27
|
} = f;
|
|
28
|
-
return (o, e) => (
|
|
28
|
+
return (o, e) => (L(), P(b, k({ class: "top-popupAlert" }, i, {
|
|
29
29
|
onOpen: e[0] || (e[0] = (s) => o.$emit("open", s)),
|
|
30
30
|
onClose: e[1] || (e[1] = (s) => o.$emit("close", s)),
|
|
31
31
|
onScrollContentList: e[2] || (e[2] = (...s) => o.$emit("scrollContentList", ...s))
|
|
@@ -94,7 +94,7 @@ const U = /* @__PURE__ */ T({
|
|
|
94
94
|
isWarning: H,
|
|
95
95
|
...D
|
|
96
96
|
} = r;
|
|
97
|
-
return (p, u) => (
|
|
97
|
+
return (p, u) => (L(), P(b, k({ class: "top-popupConfirm" }, D, {
|
|
98
98
|
onOpen: u[0] || (u[0] = (n) => p.$emit("open", n)),
|
|
99
99
|
onClose: u[1] || (u[1] = (n) => s(n)),
|
|
100
100
|
onScrollContentList: u[2] || (u[2] = (...n) => p.$emit("scrollContentList", ...n))
|
|
@@ -174,7 +174,7 @@ const U = /* @__PURE__ */ T({
|
|
|
174
174
|
defaultValue: p,
|
|
175
175
|
...u
|
|
176
176
|
} = r;
|
|
177
|
-
return (n, m) => (
|
|
177
|
+
return (n, m) => (L(), P(b, k({ class: "top-popupPrompt" }, u, {
|
|
178
178
|
onOpen: m[1] || (m[1] = ($) => n.$emit("open", $)),
|
|
179
179
|
onClose: m[2] || (m[2] = ($) => V($)),
|
|
180
180
|
onScrollContentList: m[3] || (m[3] = (...$) => n.$emit("scrollContentList", ...$))
|
|
@@ -243,7 +243,7 @@ const U = /* @__PURE__ */ T({
|
|
|
243
243
|
} = f;
|
|
244
244
|
return (o, e) => {
|
|
245
245
|
const s = F("top-tooltip");
|
|
246
|
-
return
|
|
246
|
+
return L(), P(b, k({ class: "top-popupHint" }, i, {
|
|
247
247
|
onOpen: e[0] || (e[0] = (a) => o.$emit("open", a)),
|
|
248
248
|
onClose: e[1] || (e[1] = (a) => o.$emit("close", a)),
|
|
249
249
|
onScrollContentList: e[2] || (e[2] = (...a) => o.$emit("scrollContentList", ...a))
|
package/popup/worker.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { C as Core } from "../.chunks/forms-
|
|
1
|
+
import { C as Core } from "../.chunks/forms-DtC-EKJL.es.js";
|
|
2
2
|
import DOM from "../utils/dom.js";
|
|
3
3
|
class Worker {
|
|
4
4
|
/**
|
|
@@ -53,7 +53,7 @@ class Worker {
|
|
|
53
53
|
*/
|
|
54
54
|
static async open(elOpener, options) {
|
|
55
55
|
elOpener instanceof HTMLElement && (elOpener.dataset.topPopupOpened = "opened");
|
|
56
|
-
const { TopLibPopup } = await import("../.chunks/popup-
|
|
56
|
+
const { TopLibPopup } = await import("../.chunks/popup-OuDglAOF.es.js");
|
|
57
57
|
if (Core.$) {
|
|
58
58
|
const $elOpener = Core.$(elOpener);
|
|
59
59
|
if ($elOpener.data("aftershow")) {
|