@topvisor/ui 1.4.3-fixSelector2.0 → 1.4.3-fixTabsView.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/.chunks/{core-Baaq63Be.es.js → core-Dgj_YGWh.es.js} +94 -87
- package/.chunks/{core-Baaq63Be.es.js.map → core-Dgj_YGWh.es.js.map} +1 -1
- package/.chunks/{core-DCw0zLc3.amd.js → core-DzDFXOdI.amd.js} +2 -2
- package/.chunks/{core-DCw0zLc3.amd.js.map → core-DzDFXOdI.amd.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-Bv3LwNDC.es.js +519 -0
- package/.chunks/policy.vue_vue_type_style_index_0_lang-Bv3LwNDC.es.js.map +1 -0
- package/.chunks/policy.vue_vue_type_style_index_0_lang-Da7rztT5.amd.js +2 -0
- package/.chunks/policy.vue_vue_type_style_index_0_lang-Da7rztT5.amd.js.map +1 -0
- 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/assets/policy.css +1 -1
- package/assets/project.css +1 -1
- package/assets/tabsView.css +1 -1
- package/charts/charts.js +14 -14
- package/core/app.amd.js +1 -1
- 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/icomoon/Topvisor icons.json +285 -229
- package/icomoon/demo.html +29 -1
- package/icomoon/fonts/Topvisor-2.eot +0 -0
- package/icomoon/fonts/Topvisor-2.svg +2 -0
- package/icomoon/fonts/Topvisor-2.ttf +0 -0
- package/icomoon/fonts/Topvisor-2.woff +0 -0
- package/icomoon/selection.json +1 -1
- package/icomoon/style.css +11 -5
- 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 +1008 -629
- package/project/project.js.map +1 -1
- package/src/components/formsExt/selector2/composables/useMenu.d.ts +1 -1
- package/src/components/formsExt/selector2/selector2.vue.d.ts +2 -0
- package/src/components/formsExt/selector2/types.d.ts +35 -1
- package/src/components/formsExt/selector2/utils.d.ts +2 -0
- package/src/components/project/groupSelector/folders/utils.d.ts +6 -26
- package/src/components/project/groupSelector/groupSelector.vue.d.ts +1 -1
- package/src/components/project/groupSelector/groups/groups.vue.d.ts +13 -6
- package/src/components/project/groupSelector/groups/utils.d.ts +18 -53
- package/src/components/project/groupSelector/utils.d.ts +37 -0
- package/src/components/project/project.d.ts +2 -0
- package/src/components/project/projectSelector/cache.d.ts +29 -0
- package/src/components/project/projectSelector/projectSelector.vue.d.ts +128 -0
- package/src/components/project/projectSelector/submenu/submenu.vue.d.ts +4 -0
- package/src/components/project/projectSelector/submenu/types.d.ts +17 -0
- package/src/components/project/projectSelector/types.d.ts +48 -0
- package/src/components/project/projectSelector/utils.d.ts +240 -0
- package/src/components/tabsView/tabsView/menu.vue.d.ts +2 -6
- package/src/core/directives/tooltip.d.ts +2 -6
- package/tabs/tabs.js +5 -5
- package/tabsView/tabsView.amd.js +1 -1
- package/tabsView/tabsView.amd.js.map +1 -1
- package/tabsView/tabsView.js +93 -104
- package/tabsView/tabsView.js.map +1 -1
- 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.amd.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/.chunks/policy.vue_vue_type_style_index_0_lang-BDyhjT5Y.amd.js +0 -2
- package/.chunks/policy.vue_vue_type_style_index_0_lang-BDyhjT5Y.amd.js.map +0 -1
- package/.chunks/policy.vue_vue_type_style_index_0_lang-DVl9DBpl.es.js +0 -498
- package/.chunks/policy.vue_vue_type_style_index_0_lang-DVl9DBpl.es.js.map +0 -1
package/core/app.js
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import { d as c } from "../.chunks/forms-
|
|
2
|
-
import { C as
|
|
3
|
-
import { c as
|
|
1
|
+
import { d as c } from "../.chunks/forms-DtC-EKJL.es.js";
|
|
2
|
+
import { C as I, i as T, u as b, a as y } from "../.chunks/forms-DtC-EKJL.es.js";
|
|
3
|
+
import { c as G } from "../.chunks/core-Dgj_YGWh.es.js";
|
|
4
4
|
import { watch as h } from "vue";
|
|
5
5
|
import { guestLinkToClipboard as p } from "../utils/clipboard.js";
|
|
6
6
|
import { camelToSnakeCase as d } from "../utils/string.js";
|
|
7
7
|
import { getHash as f, setHash as g } from "../utils/route.js";
|
|
8
|
-
import { u as
|
|
9
|
-
import { T as
|
|
8
|
+
import { u as A, a as D } from "../.chunks/utils-BNzP9anP.es.js";
|
|
9
|
+
import { T as L } from "../.chunks/dialogs.vue_vue_type_script_setup_true_lang-CJ97l1ST.es.js";
|
|
10
10
|
class l {
|
|
11
11
|
#s;
|
|
12
12
|
#t;
|
|
@@ -195,19 +195,19 @@ class l {
|
|
|
195
195
|
}, { immediate: !0 });
|
|
196
196
|
}
|
|
197
197
|
}
|
|
198
|
-
const
|
|
198
|
+
const w = (n) => {
|
|
199
199
|
const t = n;
|
|
200
200
|
!t.options.tpaNamesUrlHash?.length && !t.options.tpaNamesStorage?.length && !t.options.tpaNamesStorageLocal?.length && !t.options.tpaNamesGuestLink?.length || new l(t);
|
|
201
201
|
};
|
|
202
202
|
export {
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
203
|
+
I as Core,
|
|
204
|
+
L as TopDialogWorker,
|
|
205
|
+
G as corePlugin,
|
|
206
|
+
T as i18nPlugin,
|
|
207
|
+
w as piniaTPAPlugin,
|
|
208
|
+
A as useAsyncTopDialog,
|
|
209
|
+
b as useI18n,
|
|
210
|
+
y as useI18nLang,
|
|
211
|
+
D as useTopDialog
|
|
212
212
|
};
|
|
213
213
|
//# sourceMappingURL=app.js.map
|
package/dialog/dialog.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { _ as k, a as B } from "../.chunks/page.vue_vue_type_script_setup_true_lang-
|
|
2
|
-
import { defineComponent as l, ref as i, onUpdated as u,
|
|
3
|
-
import { b as v } from "../.chunks/utils-
|
|
1
|
+
import { _ as k, a as B } from "../.chunks/page.vue_vue_type_script_setup_true_lang-Dd5-B4Ss.es.js";
|
|
2
|
+
import { defineComponent as l, ref as i, onUpdated as u, openBlock as t, createBlock as m, KeepAlive as c, unref as s, resolveDynamicComponent as d, mergeProps as g, createCommentVNode as f } from "vue";
|
|
3
|
+
import { b as v } from "../.chunks/utils-BNzP9anP.es.js";
|
|
4
4
|
const C = {
|
|
5
5
|
name: {
|
|
6
6
|
type: String,
|
|
@@ -39,14 +39,14 @@ const C = {
|
|
|
39
39
|
p(n.component, o);
|
|
40
40
|
});
|
|
41
41
|
}
|
|
42
|
-
return (o, r) => (
|
|
42
|
+
return (o, r) => (t(), m(c, {
|
|
43
43
|
include: e.keepAlive ? "" : "none"
|
|
44
44
|
}, [
|
|
45
|
-
|
|
45
|
+
s(a).needShowPage(e.name) ? (t(), m(d(e.component), g({ key: 0 }, n, {
|
|
46
46
|
name: e.name,
|
|
47
47
|
order: e.order,
|
|
48
48
|
prevName: e.prevName
|
|
49
|
-
}), null, 16, ["name", "order", "prevName"])) :
|
|
49
|
+
}), null, 16, ["name", "order", "prevName"])) : f("", !0)
|
|
50
50
|
], 1032, ["include"]));
|
|
51
51
|
}
|
|
52
52
|
});
|
package/extra/extra.js
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
const fileNames = ['../assets/extra.css'].map(fileName => import.meta.resolve(fileName));
|
|
4
4
|
_autoloadCSSCore.insertCSSLinkToPage(fileNames, true);
|
|
5
5
|
|
|
6
|
-
import { defineComponent as c, ref as p, watch as u, onUnmounted as v,
|
|
6
|
+
import { defineComponent as c, ref as p, watch as u, onUnmounted as v, openBlock as d, createElementBlock as y } from "vue";
|
|
7
7
|
const B = /* @__PURE__ */ c({
|
|
8
8
|
__name: "rive",
|
|
9
9
|
props: {
|
|
@@ -61,7 +61,7 @@ const B = /* @__PURE__ */ c({
|
|
|
61
61
|
e.riveInstance = new o.Rive(r);
|
|
62
62
|
}), v(() => {
|
|
63
63
|
e.riveInstance?.cleanup();
|
|
64
|
-
}), l(e), (t, r) => (
|
|
64
|
+
}), l(e), (t, r) => (d(), y("canvas", {
|
|
65
65
|
ref_key: "el",
|
|
66
66
|
ref: a,
|
|
67
67
|
class: "top-rive"
|
package/forms/forms.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { m as p, e as T, Q as s, h as t, n as e, f as r, _ as n, o as i, p as l, T as u, s as b, j as c, q as d, r as h, g as x } from "../.chunks/forms-
|
|
1
|
+
import { m as p, e as T, Q as s, h as t, n as e, f as r, _ as n, o as i, p as l, T as u, s as b, j as c, q as d, r as h, g as x } from "../.chunks/forms-DtC-EKJL.es.js";
|
|
2
2
|
export {
|
|
3
3
|
p as TopAvatar,
|
|
4
4
|
T as TopButton,
|
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 {
|