vft 0.0.281 → 0.0.283
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/attributes.json +1 -1
- package/dist/index.css +1 -1
- package/es/components/autocomplete/autocomplete.vue.d.ts +4 -4
- package/es/components/autocomplete/index.d.ts +12 -12
- package/es/components/carousel/use-carousel.js +1 -1
- package/es/components/input/input.vue2.js +4 -4
- package/es/components/popper/index.d.ts +3 -3
- package/es/components/select/index.d.ts +11 -11
- package/es/components/select/select.vue.d.ts +11 -11
- package/es/components/select/useSelect.d.ts +8 -8
- package/es/components/super-form/super-form.vue2.js +63 -61
- package/es/components/table/index.d.ts +538 -236
- package/es/components/table/table.vue.d.ts +105 -37
- package/es/components/table/table.vue2.js +194 -100
- package/es/components/table/use/use-columns.d.ts +1 -1
- package/es/components/tooltip/index.d.ts +3 -3
- package/es/components/upload/index.d.ts +12 -12
- package/es/components/upload/upload.vue.d.ts +4 -4
- package/es/components/upload/use-handlers.d.ts +4 -4
- package/es/package.json.d.ts +3 -3
- package/es/package.json.js +1 -1
- package/es/utils/vue/vnode.js +1 -1
- package/lib/components/autocomplete/autocomplete.vue.d.ts +4 -4
- package/lib/components/autocomplete/index.d.ts +12 -12
- package/lib/components/input/input.vue2.cjs +1 -1
- package/lib/components/popper/index.d.ts +3 -3
- package/lib/components/select/index.d.ts +11 -11
- package/lib/components/select/select.vue.d.ts +11 -11
- package/lib/components/select/useSelect.d.ts +8 -8
- package/lib/components/super-form/super-form.vue2.cjs +1 -1
- package/lib/components/table/index.d.ts +538 -236
- package/lib/components/table/table.vue.d.ts +105 -37
- package/lib/components/table/table.vue2.cjs +1 -1
- package/lib/components/table/use/use-columns.d.ts +1 -1
- package/lib/components/tooltip/index.d.ts +3 -3
- package/lib/components/upload/index.d.ts +12 -12
- package/lib/components/upload/upload.vue.d.ts +4 -4
- package/lib/components/upload/use-handlers.d.ts +4 -4
- package/lib/package.json.cjs +1 -1
- package/lib/package.json.d.ts +3 -3
- package/package.json +9 -9
- package/tags.json +1 -1
- package/theme-style/base.css +1 -1
- package/theme-style/dark/css-vars.css +1 -1
- package/theme-style/index.css +1 -1
- package/theme-style/src/common/var.scss +6 -4
- package/theme-style/src/dark/css-vars.scss +35 -0
- package/theme-style/src/dark/var.scss +15 -0
- package/theme-style/src/table.scss +13 -51
- package/theme-style/src/var.scss +8 -3
- package/theme-style/vft-md-comment.css +1 -1
- package/theme-style/vft-md-container.css +1 -1
- package/theme-style/vft-table.css +1 -1
- package/theme-style/vft-var.css +1 -1
- package/web-types.json +1 -1
- package/theme-style/src/tabss.scss +0 -604
- package/theme-style/vft-tabss.css +0 -1
|
@@ -153,7 +153,7 @@ declare const useSelect: (props: SelectV2Props, emit: any) => {
|
|
|
153
153
|
$el: any;
|
|
154
154
|
$options: import("vue").ComponentOptionsBase<Readonly<import("vue").ExtractPropTypes<{
|
|
155
155
|
role: {
|
|
156
|
-
type: import("vue").PropType<"dialog" | "menu" | "grid" | "
|
|
156
|
+
type: import("vue").PropType<"dialog" | "menu" | "grid" | "tree" | "group" | "listbox" | "tooltip" | "navigation">;
|
|
157
157
|
};
|
|
158
158
|
showArrow: {
|
|
159
159
|
type: import("vue").PropType<boolean>;
|
|
@@ -337,7 +337,7 @@ declare const useSelect: (props: SelectV2Props, emit: any) => {
|
|
|
337
337
|
$watch<T extends string | ((...args: any) => any)>(source: T, cb: T extends (...args: any) => infer R ? (...args: [R, R, import("@vue/reactivity").OnCleanup]) => any : (...args: [any, any, import("@vue/reactivity").OnCleanup]) => any, options?: import("vue").WatchOptions): import("vue").WatchStopHandle;
|
|
338
338
|
} & Readonly<{}> & Omit<Readonly<import("vue").ExtractPropTypes<{
|
|
339
339
|
role: {
|
|
340
|
-
type: import("vue").PropType<"dialog" | "menu" | "grid" | "
|
|
340
|
+
type: import("vue").PropType<"dialog" | "menu" | "grid" | "tree" | "group" | "listbox" | "tooltip" | "navigation">;
|
|
341
341
|
};
|
|
342
342
|
showArrow: {
|
|
343
343
|
type: import("vue").PropType<boolean>;
|
|
@@ -571,7 +571,7 @@ declare const useSelect: (props: SelectV2Props, emit: any) => {
|
|
|
571
571
|
$el: any;
|
|
572
572
|
$options: import("vue").ComponentOptionsBase<Readonly<import("vue").ExtractPropTypes<{
|
|
573
573
|
role: {
|
|
574
|
-
type: import("vue").PropType<"dialog" | "menu" | "grid" | "
|
|
574
|
+
type: import("vue").PropType<"dialog" | "menu" | "grid" | "tree" | "group" | "listbox" | "tooltip" | "navigation">;
|
|
575
575
|
};
|
|
576
576
|
showArrow: {
|
|
577
577
|
type: import("vue").PropType<boolean>;
|
|
@@ -755,7 +755,7 @@ declare const useSelect: (props: SelectV2Props, emit: any) => {
|
|
|
755
755
|
$watch<T extends string | ((...args: any) => any)>(source: T, cb: T extends (...args: any) => infer R ? (...args: [R, R, import("@vue/reactivity").OnCleanup]) => any : (...args: [any, any, import("@vue/reactivity").OnCleanup]) => any, options?: import("vue").WatchOptions): import("vue").WatchStopHandle;
|
|
756
756
|
} & Readonly<{}> & Omit<Readonly<import("vue").ExtractPropTypes<{
|
|
757
757
|
role: {
|
|
758
|
-
type: import("vue").PropType<"dialog" | "menu" | "grid" | "
|
|
758
|
+
type: import("vue").PropType<"dialog" | "menu" | "grid" | "tree" | "group" | "listbox" | "tooltip" | "navigation">;
|
|
759
759
|
};
|
|
760
760
|
showArrow: {
|
|
761
761
|
type: import("vue").PropType<boolean>;
|
|
@@ -990,7 +990,7 @@ declare const useSelect: (props: SelectV2Props, emit: any) => {
|
|
|
990
990
|
$el: any;
|
|
991
991
|
$options: import("vue").ComponentOptionsBase<Readonly<import("vue").ExtractPropTypes<{
|
|
992
992
|
role: {
|
|
993
|
-
type: import("vue").PropType<"dialog" | "menu" | "grid" | "
|
|
993
|
+
type: import("vue").PropType<"dialog" | "menu" | "grid" | "tree" | "group" | "listbox" | "tooltip" | "navigation">;
|
|
994
994
|
};
|
|
995
995
|
showArrow: {
|
|
996
996
|
type: import("vue").PropType<boolean>;
|
|
@@ -1174,7 +1174,7 @@ declare const useSelect: (props: SelectV2Props, emit: any) => {
|
|
|
1174
1174
|
$watch<T extends string | ((...args: any) => any)>(source: T, cb: T extends (...args: any) => infer R ? (...args: [R, R, import("@vue/reactivity").OnCleanup]) => any : (...args: [any, any, import("@vue/reactivity").OnCleanup]) => any, options?: import("vue").WatchOptions): import("vue").WatchStopHandle;
|
|
1175
1175
|
} & Readonly<{}> & Omit<Readonly<import("vue").ExtractPropTypes<{
|
|
1176
1176
|
role: {
|
|
1177
|
-
type: import("vue").PropType<"dialog" | "menu" | "grid" | "
|
|
1177
|
+
type: import("vue").PropType<"dialog" | "menu" | "grid" | "tree" | "group" | "listbox" | "tooltip" | "navigation">;
|
|
1178
1178
|
};
|
|
1179
1179
|
showArrow: {
|
|
1180
1180
|
type: import("vue").PropType<boolean>;
|
|
@@ -1408,7 +1408,7 @@ declare const useSelect: (props: SelectV2Props, emit: any) => {
|
|
|
1408
1408
|
$el: any;
|
|
1409
1409
|
$options: import("vue").ComponentOptionsBase<Readonly<import("vue").ExtractPropTypes<{
|
|
1410
1410
|
role: {
|
|
1411
|
-
type: import("vue").PropType<"dialog" | "menu" | "grid" | "
|
|
1411
|
+
type: import("vue").PropType<"dialog" | "menu" | "grid" | "tree" | "group" | "listbox" | "tooltip" | "navigation">;
|
|
1412
1412
|
};
|
|
1413
1413
|
showArrow: {
|
|
1414
1414
|
type: import("vue").PropType<boolean>;
|
|
@@ -1592,7 +1592,7 @@ declare const useSelect: (props: SelectV2Props, emit: any) => {
|
|
|
1592
1592
|
$watch<T extends string | ((...args: any) => any)>(source: T, cb: T extends (...args: any) => infer R ? (...args: [R, R, import("@vue/reactivity").OnCleanup]) => any : (...args: [any, any, import("@vue/reactivity").OnCleanup]) => any, options?: import("vue").WatchOptions): import("vue").WatchStopHandle;
|
|
1593
1593
|
} & Readonly<{}> & Omit<Readonly<import("vue").ExtractPropTypes<{
|
|
1594
1594
|
role: {
|
|
1595
|
-
type: import("vue").PropType<"dialog" | "menu" | "grid" | "
|
|
1595
|
+
type: import("vue").PropType<"dialog" | "menu" | "grid" | "tree" | "group" | "listbox" | "tooltip" | "navigation">;
|
|
1596
1596
|
};
|
|
1597
1597
|
showArrow: {
|
|
1598
1598
|
type: import("vue").PropType<boolean>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),U=require("../col/index.cjs"),W=require("../form/index.cjs"),J=require("../row/index.cjs"),
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),U=require("../col/index.cjs"),W=require("../form/index.cjs"),J=require("../row/index.cjs"),M=require("@vueuse/core"),m=require("@vft/utils");require("../../utils/ns-cover.cjs");require("lodash-es");const Q=require("../../hooks/use-namespace/index.cjs");require("../../hooks/use-model-toggle/index.cjs");require("@popperjs/core");require("../../hooks/use-z-index/index.cjs");const X=require("./super-form-action.vue2.cjs"),Y=require("./super-form-item.vue2.cjs"),Z=require("./use/use-auto-focus.cjs"),ee=require("./use/use-form-context.cjs"),te=require("./use/use-form-events.cjs"),oe=require("./use/use-form-values.cjs"),ne=e.defineComponent({name:"vft-super-form"}),re=e.defineComponent({...ne,props:{size:{default:"default"},rowProps:{default:{gutter:20}},baseColProps:{},quickColSpan:{default:3},autoSetPlaceHolder:{type:Boolean,default:!0},schemas:{},autoFocusFirstItem:{type:Boolean,default:!1},submitOnReset:{type:Boolean},mergeDynamicData:{},fieldMapToTime:{},autoSubmitOnEnter:{type:Boolean,default:!0},rulesMessageJoinLabel:{type:Boolean,default:!0},submitOnChange:{type:Boolean},showActionButtonGroup:{type:Boolean,default:!0},autoCleanErrorMessage:{type:Boolean},beforeSubmitFunc:{},submitFunc:{},watchDataIsChange:{type:Boolean},compFullWidth:{type:Boolean,default:!1},actionInline:{type:Boolean,default:!1},resetFunc:{},customLayout:{type:Boolean,default:!1},showResetButton:{type:Boolean,default:!1},showSubmitButton:{type:Boolean,default:!0},showCommonButton:{type:Boolean,default:!1},resetButtonOptions:{},submitButtonOptions:{},commonButtonOptions:{},actionRowOptions:{},disabled:{type:Boolean},model:{},rules:{},labelPosition:{default:"right"},requireAsteriskPosition:{default:"left"},labelWidth:{default:"auto"},labelSuffix:{},inline:{type:Boolean},inlineMessage:{type:Boolean},statusIcon:{type:Boolean},showMessage:{type:Boolean,default:!0},validateOnRuleChange:{type:Boolean,default:!0},hideRequiredAsterisk:{type:Boolean,default:!1},scrollToError:{type:Boolean},scrollIntoViewOptions:{type:Boolean}},emits:["register","reset","submit","field-value-change"],setup(D,{expose:T,emit:x}){const $=Q.useNamespace("super-form"),F=D,k=x,L=e.useAttrs(),s=e.reactive({}),p=e.ref({}),i=e.ref(!1),c=e.ref({}),w=e.ref(),d=e.ref(null),C=e.ref(),o=e.computed(()=>({...F,...e.unref(c)})),a=e.computed(()=>({...L,...F,...e.unref(o)})),u=e.computed(()=>{const t=e.unref(w);return m.cloneDeep(t)}),{handleFormValues:N,initDefault:S}=oe.useFormValues({getProps:o,defaultValueRef:p,getSchema:u,formModel:s});Z.useAutoFocus({getSchema:u,getProps:o,isInitedDefault:i,formElRef:d});const{handleSubmit:l,setFieldsValue:B,clearValidate:q,validate:_,validateField:P,getFieldsValue:h,updateSchema:v,resetSchema:f,appendSchemaByField:A,removeSchemaByField:O,resetFields:y,scrollToField:G,getFieldValue:R}=te.useFormEvents({emit:k,getProps:o,formModel:s,getSchema:u,defaultValueRef:p,formElRef:d,schemaRef:w,handleFormValues:N,initValues:C});ee.createFormContext({resetAction:y,submitAction:l}),e.watch(()=>e.unref(o).model,()=>{const{model:t}=e.unref(o);t&&B(t)},{immediate:!0}),e.watch(()=>e.unref(o).schemas,(t,n)=>{m.isEqual(t,n)||f(t??[])}),e.watch(()=>u.value,t=>{e.nextTick(()=>{}),!e.unref(i)&&t?.length&&(S(),i.value=!0,o.value?.watchDataIsChange&&M.useTimeoutFn(()=>{C.value=h()},40))}),e.watch(()=>s,M.useDebounceFn(()=>{e.unref(o).submitOnChange&&l()},300),{deep:!0});async function V(t){c.value=m.deepMerge(e.unref(c)||{},t),i.value||(f(c.value?.schemas??[]),S())}function z(t,n,r){s[t]=n,r&&r.itemProps}function H(t){const{autoSubmitOnEnter:n}=e.unref(o);if(n&&t.key==="Enter"&&t.target&&t.target instanceof HTMLElement){const r=t.target;r&&r.tagName&&r.tagName.toUpperCase()==="INPUT"&&l()}}const E={getFieldsValue:h,getFieldValue:R,setFieldsValue:B,resetFields:y,updateSchema:v,resetSchema:f,setProps:V,removeSchemaByField:O,appendSchemaByField:A,clearValidate:q,validateField:P,validate:_,submit:l,scrollToField:G};k("register",E);const j=e.computed(()=>m.pick(o.value,["showResetButton","showCommonButton","showSubmitButton","resetButtonOptions","submitButtonOptions","commonButtonOptions","actionRowOptions","actionSpan"])),g=e.useSlots(),b=t=>t?e.h(X.default,j.value,{resetBefore:n=>g.resetBefore?.(n),submitBefore:n=>g.submitBefore?.(n),submitAfter:n=>g.submitAfter?.(n)}):null;return T({getFieldsValue:h,getFieldValue:R,setFieldsValue:B,resetFields:y,updateSchema:v,resetSchema:f,setProps:V,removeSchemaByField:O,appendSchemaByField:A,clearValidate:q,validateField:P,validate:_,submit:l,getSchema:u}),(t,n)=>u.value?.length?(e.openBlock(),e.createBlock(e.unref(W.VftForm),e.mergeProps({key:0},a.value,{ref_key:"formElRef",ref:d,class:e.unref($).b(),model:s,onSubmit:n[0]||(n[0]=e.withModifiers(()=>{},["prevent"])),onKeypress:e.withKeys(H,["enter"])}),{default:e.withCtx(()=>[u.value?.length?(e.openBlock(),e.createBlock(e.unref(J.VftRow),e.normalizeProps(e.mergeProps({key:0},a.value?.rowProps)),{default:e.withCtx(()=>[e.renderSlot(t.$slots,"formHeader"),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(u.value,r=>(e.openBlock(),e.createBlock(Y.default,{key:r.field,"form-action-type":E,schema:r,"form-props":o.value,"all-default-values":p.value,"form-model":s,"set-form-model":z,"update-schema":e.unref(v)},e.createSlots({_:2},[e.renderList(Object.keys(t.$slots),I=>({name:I,fn:e.withCtx(K=>[e.renderSlot(t.$slots,I,e.mergeProps({ref_for:!0},K||{}))])}))]),1032,["schema","form-props","all-default-values","form-model","update-schema"]))),128)),o.value?.customLayout?(e.openBlock(),e.createBlock(e.resolveDynamicComponent(b(o.value?.showActionButtonGroup&&o.value?.actionInline)),{key:1})):(e.openBlock(),e.createBlock(e.unref(U.VftCol),e.normalizeProps(e.mergeProps({key:0},a.value?.quickColSpan?{span:Math.ceil(24/a.value?.quickColSpan),...a.value?.baseColProps}:{})),{default:e.withCtx(()=>[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(b(o.value?.showActionButtonGroup&&o.value?.actionInline))))]),_:1},16))]),_:3},16)):e.createCommentVNode("",!0),(e.openBlock(),e.createBlock(e.resolveDynamicComponent(b(o.value?.showActionButtonGroup&&!o.value?.actionInline)))),e.renderSlot(t.$slots,"formFooter")]),_:3},16,["class","model"])):e.createCommentVNode("",!0)}});exports.default=re;
|